Move code out of 'between TRY and CATCH'
[deliverable/binutils-gdb.git] / gdb / ChangeLog
CommitLineData
73dcd72d
PA
12017-10-04 Pedro Alves <palves@redhat.com>
2
3 * guile/scm-breakpoint.c (gdbscm_breakpoint_commands): Move code
4 out of 'between TRY and CATCH'.
5
44704526
PA
62017-10-04 Pedro Alves <palves@redhat.com>
7
8 * cli/cli-cmds.c (complete_command): Add missing END_CATCH.
9 * common/common-exceptions.h (TRY): Open an outermost scope.
10 Expand intro comment.
11 (CATCH): Reindent.
12 (END_CATCH): Close the outermost scope.
13 * completer.c (complete_line_internal): Add missing END_CATCH.
14
bc3b087d
SDJ
152017-10-04 Sergio Durigan Junior <sergiodj@redhat.com>
16
17 * NEWS (Changes since GDB 8.0): Add entry about new
18 'set-cwd-on-gdbserver' feature.
19 (New remote packets): Add entry for QSetWorkingDir.
20 * common/common-inferior.h (set_inferior_cwd): New prototype.
21 * infcmd.c (set_inferior_cwd): Remove "static".
22 (show_cwd_command): Expand text to include remote debugging.
23 * remote.c: Add PACKET_QSetWorkingDir.
24 (remote_protocol_features) <QSetWorkingDir>: New entry for
25 PACKET_QSetWorkingDir.
26 (extended_remote_set_inferior_cwd): New function.
27 (extended_remote_create_inferior): Call
28 "extended_remote_set_inferior_cwd".
29 (_initialize_remote): Call "add_packet_config_cmd" for
30 QSetWorkingDir.
31
d092c5a2
SDJ
322017-10-04 Sergio Durigan Junior <sergiodj@redhat.com>
33
34 * NEWS (New commands): Mention "set/show cwd".
35 * cli/cli-cmds.c (_initialize_cli_cmds): Mention "set cwd" on
36 "cd" command's help text.
37 * common/common-inferior.h (get_inferior_cwd): New prototype.
38 * infcmd.c (inferior_cwd_scratch): New global variable.
39 (set_inferior_cwd): New function.
40 (get_inferior_cwd): Likewise.
41 (set_cwd_command): Likewise.
42 (show_cwd_command): Likewise.
43 (_initialize_infcmd): Add "set/show cwd" commands.
44 * inferior.h (class inferior) <cwd>: New field.
45 * nat/fork-inferior.c: Include "gdb_tilde_expand.h".
46 (fork_inferior): Change inferior's cwd before its execution.
47 * windows-nat.c (windows_create_inferior): Pass inferior's cwd
48 to CreateProcess.
49
7da0a886
SDJ
502017-10-04 Sergio Durigan Junior <sergiodj@redhat.com>
51
52 * Makefile.in (SFILES): Add gdb_tilde_expand.c.
53 (HFILES_NO_SRCDIR): Add gdb_tilde_expand.h.
54 (COMMON_OBS): Add gdb_tilde_expand.o.
55 * common/gdb_tilde_expand.c: New file.
56 * common/gdb_tilde_expand.h: Likewise.
57
db8dd160
MR
582017-10-03 Maciej W. Rozycki <macro@imgtec.com>
59
60 * gdbarch.sh (objfile): Remove duplicate declaration.
61 * gdbarch.h: Regenerate.
62
f8bfbf22
TT
632017-10-03 Tom Tromey <tom@tromey.com>
64
65 * utils.c (internal_vproblem): Use string_vprintf.
66
5178ed48
TT
672017-10-03 Tom Tromey <tom@tromey.com>
68
69 * printcmd.c (info_symbol_command): Use std::string.
70
8cff8730
TT
712017-10-03 Tom Tromey <tom@tromey.com>
72
73 * top.c (gdb_safe_append_history): Use std::string.
74
895b8f30
TT
752017-10-03 Tom Tromey <tom@tromey.com>
76
77 * event-top.c (stdin_event_handler): Update.
78 * main.c (captured_main_1): Update.
79 * top.h (make_delete_ui_cleanup): Remove.
80 (struct ui): Add constructor and destructor.
81 (new_ui, delete_ui): Remove.
82 * top.c (make_delete_ui_cleanup): Remove.
83 (new_ui_command): Use std::unique_ptr.
84 (delete_ui_cleanup): Remove.
85 (ui::ui): Rename from new_ui. Update.
86 (free_ui): Remove.
87 (ui::~ui): Rename from delete_ui. Update.
88
0efef640
TT
892017-10-03 Tom Tromey <tom@tromey.com>
90
91 * symfile.c (load_progress): Use gdb::byte_vector.
92
245ad7d3
TT
932017-10-03 Tom Tromey <tom@tromey.com>
94
95 * mi/mi-main.c (mi_cmd_trace_frame_collected): Remove unused
96 declaration.
97 * printcmd.c (x_command): Remove unused declaration.
98 * symfile.c (symbol_file_command): Remove unused declaration.
99
e05550d7
TT
1002017-10-03 Tom Tromey <tom@tromey.com>
101
102 * utils.c (internal_vproblem): Use std::string.
103 (defaulted_query): Likewise.
104
b95de2b7
TT
1052017-10-03 Tom Tromey <tom@tromey.com>
106
107 * guile/scm-ports.c (ioscm_with_output_to_port_worker): Update.
108 * top.c (execute_command_to_string): Update.
109 * utils.c (make_cleanup_restore_page_info): Remove.
110 (do_restore_page_info_cleanup): Remove.
111 (set_batch_flag_and_restore_page_info):
112 New.
113 (make_cleanup_restore_page_info): Remove.
114 (set_batch_flag_and_make_cleanup_restore_page_info): Remove.
115 (~set_batch_flag_and_restore_page_info): New
116 (make_cleanup_restore_uinteger): Remove.
117 (make_cleanup_restore_integer): Remove.
118 (struct restore_integer_closure): Remove.
119 (restore_integer): Remove.
120 * utils.h (struct set_batch_flag_and_restore_page_info): New
121 class.
122 (set_batch_flag_and_make_cleanup_restore_page_info): Remove.
123 (make_cleanup_restore_page_info): Remove.
124 (make_cleanup_restore_uinteger) Remove.
125 (make_cleanup_restore_integer) Remove.
126
07036511
TT
1272017-10-03 Tom Tromey <tom@tromey.com>
128
129 * record-full.h (record_full_gdb_operation_disable_set): Return
130 scoped_restore_tmpl<int>.
131 * infrun.c (adjust_pc_after_break): Update.
132 (handle_signal_stop): Update.
133 * record-full.c (record_full_gdb_operation_disable_set): Return
134 scoped_restore_tmpl<int>.
135 (record_full_wait_1, record_full_insert_breakpoint)
136 (record_full_remove_breakpoint, record_full_save)
137 (record_full_goto_insn): Update.
138
45320ffa
TT
1392017-10-02 Tom Tromey <tom@tromey.com>
140
141 PR rust/22236:
142 * rust-lang.c (rust_val_print_str): New function.
143 (val_print_struct): Call it.
144 (rust_subscript): Preserve name of slice type.
145
b3e3859b
TT
1462017-10-02 Tom Tromey <tom@tromey.com>
147
148 * rust-lang.c (rust_subscript): Handle slices in
149 EVAL_AVOID_SIDE_EFFECTS case.
150
01af5e0d
TT
1512017-10-02 Tom Tromey <tom@tromey.com>
152
153 * rust-lang.c (rust_slice_type_p): Recognize &str as a slice type.
154
888e3ddb
TT
1552017-10-02 Tom Tromey <tom@tromey.com>
156
157 * rust-lang.h (rust_slice_type): Add "extern".
158
cc536b21
PA
1592017-10-02 Tom Tromey <tom@tromey.com>
160 Pedro Alves <palves@redhat.com>
161
162 * ada-lang.h (ada_exc_info::operator<): Make const.
163 (ada_exc_info::operator==): Make const.
164 * ada-lang.c (ada_exc_info::operator<, ada_exc_info::operator==):
165 Make const.
166
386c8614
TT
1672017-09-29 Tom Tromey <tom@tromey.com>
168
169 * target.c (read_whatever_is_readable): Change type of "result".
170 Update.
171 (free_memory_read_result_vector): Remove.
172 (read_memory_robust): Change return type. Update.
173 * mi/mi-main.c (mi_cmd_data_read_memory_bytes): Update. Use
174 bin2hex, std::string.
175 * target.h (memory_read_result_s): Remove typedef.
176 (free_memory_read_result_vector): Remove.
177 (read_memory_robust): Return std::vector.
178
789c4b5e
TT
1792017-09-29 Tom Tromey <tom@tromey.com>
180
181 * mi/mi-main.c (captured_mi_execute_command): Use scope_restore.
182
ab816a27
TT
1832017-09-29 Tom Tromey <tom@tromey.com>
184
185 * mi/mi-cmd-info.c (mi_cmd_info_ada_exceptions): Update.
186 * ada-lang.h (struct ada_exc_info): Remove typedef. Declare
187 operator< and operator==.
188 (ada_exceptions_list): Return a std::vector.
189 * ada-lang.c (ada_exc_info::operator<): Rename from
190 compare_ada_exception_info.
191 (ada_exc_info::operator==): New.
192 (sort_remove_dups_ada_exceptions_list): Change type of
193 "exceptions".
194 (ada_add_standard_exceptions, ada_add_exceptions_from_frame)
195 (ada_add_global_exceptions): Likewise.
196 (ada_exceptions_list_1): Return a std::vector.
197 (ada_exceptions_list): Likewise.
198
52f9abe4
TT
1992017-09-29 Tom Tromey <tom@tromey.com>
200
201 * mi/mi-main.c (struct print_one_inferior_data) <inferiors>: Now a
202 'std::set *'.
203 (print_one_inferior): Update.
204 (free_vector_of_ints): Remove.
205 (list_available_thread_groups): Change "ids" to std::set.
206 (mi_cmd_list_thread_groups): Update.
207 (struct collect_cores_data) <core>: Now a std::set.
208 (collect_cores): Update.
209 (unique): Remove.
210 (print_one_inferior): Update.
211
dcd5ddcc
TT
2122017-09-29 Tom Tromey <tom@tromey.com>
213
214 * mi/mi-main.c (mi_execute_cli_command): Use std::string.
215 (mi_execute_async_cli_command): Likewise.
216 (mi_cmd_trace_frame_collected): Use field_fmt.
217
45d288cc
TT
2182017-09-29 Tom Tromey <tom@tromey.com>
219
220 * mi/mi-main.c (mi_cmd_data_write_memory_bytes): Use
221 gdb::byte_vector.
222
6afe2f4a
TT
2232017-09-29 Tom Tromey <tom@tromey.com>
224
225 * mi/mi-parse.c (mi_parse): Remove unused declaration.
226
9813429a
TT
2272017-09-29 Tom Tromey <tom@tromey.com>
228
229 * mi/mi-cmd-disas.c (mi_cmd_disassemble): Don't copy "oarg".
230
2d6960b4
TT
2312017-09-29 Tom Tromey <tom@tromey.com>
232
233 * varobj.h (varobj_gen_name): Return std::string.
234 * varobj.c (varobj_gen_name): Return std::string.
235 * mi/mi-cmd-var.c (mi_cmd_var_create): Use std::string.
236 (mi_cmd_var_delete): Don't copy "name".
237
784c453a
TT
2382017-09-29 Tom Tromey <tom@tromey.com>
239
240 * mi/mi-cmd-break.c (mi_argv_to_format): Return std::string.
241 (mi_cmd_break_insert_1): Update.
242
a9bc57b9
TT
2432017-09-29 Tom Tromey <tom@tromey.com>
244
245 * target.h (make_scoped_defer_target_commit_resume): Update.
246 * target.c (make_scoped_defer_target_commit_resume): Rename from
247 make_cleanup_defer_target_commit_resume. Return a
248 scoped_restore.
249 * infrun.c (proceed): Use make_scoped_defer_target_commit_resume.
250
9754d8c4
TT
2512017-09-29 Tom Tromey <tom@tromey.com>
252
253 * main.c (captured_main_1): Remove unused declaration.
254 * spu-multiarch.c (parse_spufs_run): Remove unused declaration.
255
99ef965c
TT
2562017-09-29 Tom Tromey <tom@tromey.com>
257
258 * symtab.c (search_symbols): Remove unused outer cleanup.
259 (make_source_files_completion_list): Remove unused declaration.
260
42518ba7
TT
2612017-09-29 Tom Tromey <tom@tromey.com>
262
263 * mt-tdep.c (mt_push_dummy_call): Use gdb::byte_vector.
264
726b2169
TT
2652017-09-29 Tom Tromey <tom@tromey.com>
266
267 * xstormy16-tdep.c (xstormy16_push_dummy_call): Use
268 gdb::byte_vector.
269
55b06432
TT
2702017-09-29 Tom Tromey <tom@tromey.com>
271
272 * complaints.c (vcomplaint): Use std::string.
273
8abcee91
TT
2742017-09-29 Tom Tromey <tom@tromey.com>
275
276 * tracepoint.c (trace_variable_command): Use std::string.
277 (encode_actions_1): Remove unused declarations.
278 (create_tsv_from_upload): Use std::string.
279
6ad94bc7
TT
2802017-09-29 Tom Tromey <tom@tromey.com>
281
282 * cp-support.c (gdb_demangle): Use std::string.
283
2003f3d8
TT
2842017-09-29 Tom Tromey <tom@tromey.com>
285
286 * stack.c (parse_frame_specification): Use std::string
287 (info_frame_command): Use gdb::unique_xmalloc_ptr.
288
8f8accb5
TT
2892017-09-29 Tom Tromey <tom@tromey.com>
290
291 * tilegx-tdep.c (tilegx_push_dummy_call): Use gdb::byte_vector.
292
200aa7b1
TT
2932017-09-29 Tom Tromey <tom@tromey.com>
294
295 * utils.c (vfprintf_maybe_filtered): Use std::string.
296 (vfprintf_unfiltered): Likewise.
297
606aae8a
TT
2982017-09-29 Tom Tromey <tom@tromey.com>
299
300 * event-top.c (top_level_prompt): Return std::string.
301 (display_gdb_prompt): Update.
302
bd413795
TT
3032017-09-29 Tom Tromey <tom@tromey.com>
304
305 * unittests/common-utils-selftests.c (format): New function.
306 (string_vprintf_tests): New function.
307 (_initialize_common_utils_selftests): Register new tests.
308 * common/common-utils.c (string_vprintf): New function.
309 * common/common-utils.h (string_vprintf): Declare.
310
256642e8
PA
3112017-09-29 Pedro Alves <palves@redhat.com>
312
313 * common/rsp-low.c (unpack_varlen_hex): Constify.
314 * common/rsp-low.h (unpack_varlen_hex): Constify.
315 * linux-nat.c (linux_child_static_tracepoint_markers_by_strid):
316 Constify.
317 * remote.c (remote_set_permissions, read_ptid)
318 (remote_current_thread, remote_get_threads_with_qthreadinfo)
319 (remote_static_tracepoint_marker_at)
320 (remote_static_tracepoint_markers_by_strid)
321 (stop_reply_extract_thread, remote_parse_stop_reply): Constify.
322 * tracepoint.c (parse_trace_status, parse_tracepoint_status)
323 (parse_tracepoint_definition, parse_tsv_definition)
324 (parse_static_tracepoint_marker_definition): Constify.
325 * tracepoint.h (parse_static_tracepoint_marker_definition)
326 (parse_trace_status, parse_tracepoint_status)
327 (parse_tracepoint_definition, parse_tsv_definition): Constify.
328
b6bb3468
PA
3292017-09-29 Pedro Alves <palves@redhat.com>
330
331 * remote.c (target_buf, target_buf_size): Delete.
332 (remote_get_noisy_reply): Remove buf_p and sizeof_buf parameters.
333 Use the connection's packet buffer instead.
334 All callers adjusted.
335 (_initialize_remote): Remove references to target_buf and
336 target_buf_size.
337
b2f8eb7a
PA
3382017-09-28 Pedro Alves <palves@redhat.com>
339
340 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
341 unittests/common-utils-selftests.c.
342 (SUBDIR_UNITTESTS_OBS): Add common-utils-selftests.o.
343 (COMMON_OBS): Remove utils-selftests.o.
344 * utils-selftests.c: Move to ...
345 * unittests/common-utils-selftests.c: ... here and rename self
346 test to "string_printf".
347
08302ed2
DE
3482017-09-28 Alexander Shaposhnikov <alexander.v.shaposhnikov@gmail.com> (tiny patch)
349
350 * dwarf2read.c (open_and_init_dwp_file): Protect against dwp_file
351 having NULL cus or tus.
352
96a5a1d3
UW
3532017-09-27 Ulrich Weigand <uweigand@de.ibm.com>
354
355 * arm-tdep.c: (convert_from_extended): Remove.
356 (convert_to_extended): Likewise.
357 (arm_extract_return_value): Use convert_typed_floating.
358 (arm_store_return_value): Likewise.
359
360 * sh-tdep.h (struct gdbarch_tdep): Add sh_littlebyte_bigword_type.
361 * sh-tdep.c: Do not include "floatformat.h".
362 (sh_littlebyte_bigword_type): New function.
363 (sh_register_convert_to_virtual): Use convert_typed_floating.
364 (sh_register_convert_to_raw): Likewise.
365 * sh64-tdep.c: (struct gdbarch_tdep): Add sh_littlebyte_bigword_type.
366 (sh64_littlebyte_bigword_type): New function.
367 (sh64_extract_return_value): Use convert_typed_floating.
368 (sh64_register_convert_to_virtual): Likewise.
369 (sh64_register_convert_to_raw): Likewise.
370
0db7851f
UW
3712017-09-27 Ulrich Weigand <uweigand@de.ibm.com>
372
373 * doublest.h (floatformat_from_type): Move to gdbtypes.h.
374 * doublest.c (floatformat_from_type): Move to gdbtypes.c.
375
376 * gdbtypes.h (union type_specific): Make field floatformat hold
377 just a single struct floatformat, not an array.
378 (floatformat_from_type): Move here.
379 * gdbtypes.c (floatformat_from_type): Move here. Update to
380 changed TYPE_FLOATFORMAT definition.
381 (verify_floatformat): Update to changed TYPE_FLOATFORMAT.
382 (recursive_dump_type): Likewise.
383 (init_float_type): Install correct floatformat for byte order.
384 (arch_float_type): Likewise.
385
77b7c781
UW
3862017-09-27 Ulrich Weigand <uweigand@de.ibm.com>
387
388 * gdbtypes.c (init_type): Change incoming argument from
389 length-in-bytes to length-in-bits. Assert length is a
390 multiple of TARGET_CHAR_BITS.
391 (arch_type, arch_flags_type): Likewise.
392 (init_integer_type): Update call to init_type.
393 (init_character_type): Likewise.
394 (init_boolean_type): Likewise.
395 (init_float_type): Likewise.
396 (init_decfloat_type): Likewise.
397 (init_complex_type): Likewise.
398 (init_pointer_type): Likewise.
399 (objfile_type): Likewise.
400 (arch_integer_type): Update call to arch_type.
401 (arch_character_type): Likewise.
402 (arch_boolean_type): Likewise.
403 (arch_float_type): Likewise.
404 (arch_decfloat_type): Likewise.
405 (arch_complex_type): Likewise.
406 (arch_pointer_type): Likewise.
407 (gdbtypes_post_init): Likewise.
408
409 * dwarf2read.c (dwarf2_init_float_type): Update call to init_type.
410 (read_base_type): Likewise.
411 * mdebugread.c (basic_type): Likewise.
412 * stabsread.c (dbx_init_float_type): Likewise.
413 (rs6000_builtin_type): Likewise.
414 (read_range_type): Likewise. Also, fix call to init_integer_type
415 with erroneous length argument.
416
417 * ada-lang.c (ada_language_arch_info): Update call to arch_type.
418 * d-lang.c (build_d_types): Likewise.
419 * f-lang.c (build_fortran_types): Likewise.
420 * go-lang.c (build_go_types): Likewise.
421 * opencl-lang.c (build_opencl_types): Likewise.
422 * jit.c (finalize_symtab): Likewise.
423 * gnu-v3-abi.c (build_gdb_vtable_type): Likewise.
424 (build_std_type_info_type): Likewise.
425 * target-descriptions.c (tdesc_gdb_type): Likewise. Also,
426 update call to arch_flags_type.
427
428 * linux-tdep.c (linux_get_siginfo_type_with_fields): Update call to
429 arch_type.
430 * fbsd-tdep.c (fbsd_get_siginfo_type): Likewise.
431 * windows-tdep.c (windows_get_tlb_type): Likewise.
432
433 * avr-tdep.c (avr_gdbarch_init): Update call to arch_type.
434 * ft32-tdep.c (ft32_gdbarch_init): Likewise.
435 * m32c-tdep.c (make_types): Likewise.
436 * rl78-tdep.c (rl78_gdbarch_init): Likewise.
437 (rl78_psw_type): Update call to arch_flags_type.
438 * m68k-tdep.c (m68k_ps_type): Update call to arch_flags_type.
439 * rx-tdep.c (rx_psw_type): Likewise.
440 (rx_fpsw_type): Likewise.
441 * sparc-tdep.c (sparc_psr_type): Likewise.
442 (sparc_fsr_type): Likewise.
443 * sparc64-tdep.c (sparc64_pstate_type): Likewise.
444 (sparc64_ccr_type): Likewise.
445 (sparc64_fsr_type): Likewise.
446 (sparc64_fprs_type): Likewise.
447
f21b4d5c
TT
4482017-09-27 Tom Tromey <tom@tromey.com>
449
450 * findcmd.c (find_command): Constify.
451
643c2ffa
TT
4522017-09-27 Tom Tromey <tom@tromey.com>
453
454 * ada-tasks.c (task_command_1, task_command): Constify.
455
510e5e56
TT
4562017-09-27 Tom Tromey <tom@tromey.com>
457
458 * symtab.c (maintenance_print_symbol_cache)
459 (maintenance_flush_symbol_cache)
460 (maintenance_print_symbol_cache_statistics): Constify.
461
e503b191
TT
4622017-09-27 Tom Tromey <tom@tromey.com>
463
464 * inferior.c (detach_inferior_command, kill_inferior_command)
465 (inferior_command): Constify.
466
4e001312
TT
4672017-09-27 Tom Tromey <tom@tromey.com>
468
469 * regcache.c (regcache_print, maintenance_print_registers)
470 (maintenance_print_raw_registers)
471 (maintenance_print_cooked_registers)
472 (maintenance_print_register_groups)
473 (maintenance_print_remote_registers): Constify.
474
77763700
TT
4752017-09-27 Tom Tromey <tom@tromey.com>
476
477 * printcmd.c (map_display_numbers, undisplay_command)
478 (enable_disable_display_command, enable_display_command)
479 (disable_display_command): Constify.
480
4495129a
TT
4812017-09-27 Tom Tromey <tom@tromey.com>
482
483 * breakpoint.h (delete_command): Don't declare.
484 * breakpoint.c (delete_command, enable_once_command)
485 (enable_count_command, enable_delete_command, breakpoint_1)
486 (maintenance_info_breakpoints, stopin_command, stopat_command)
487 (delete_command, delete_trace_command, save_breakpoints)
488 (save_breakpoints_command, save_tracepoints_command): Constify.
489
3088cf40
TT
4902017-09-27 Tom Tromey <tom@tromey.com>
491
492 * macrocmd.c (macro_expand_command, macro_expand_once_command)
493 (skip_ws, extract_identifier, macro_define_command)
494 (macro_undef_command, macro_list_command): Constify.
495
69f476a3
TT
4962017-09-27 Tom Tromey <tom@tromey.com>
497
498 * infcmd.c (environment_info, set_environment_command)
499 (unset_environment_command, path_info, info_proc_cmd_1)
500 (info_proc_cmd_mappings, info_proc_cmd_stat)
501 (info_proc_cmd_status, info_proc_cmd_cwd, info_proc_cmd_cmdline)
502 (info_proc_cmd_exe, info_proc_cmd_all): Constify.
503
c4a3e68e
TT
5042017-09-27 Tom Tromey <tom@tromey.com>
505
506 * i386-tdep.c (i386_mpx_info_bounds, i386_mpx_set_bounds):
507 Constify.
508
c9d31bd6
TT
5092017-09-27 Tom Tromey <tom@tromey.com>
510
511 * symfile-mem.c (add_symbol_file_from_memory_command): Constify.
512
1f3f85eb
TT
5132017-09-27 Tom Tromey <tom@tromey.com>
514
515 * demangle.c (demangle_command): Constify.
516
9c504b5d
TT
5172017-09-27 Tom Tromey <tom@tromey.com>
518
519 * progspace.c (maintenance_info_program_spaces_command):
520 Constify.
521
6663cf91
TT
5222017-09-27 Tom Tromey <tom@tromey.com>
523
524 * compile/compile.c (check_raw_argument, compile_file_command)
525 (compile_code_command, compile_print_command): Constify.
526
34e5fa26
TT
5272017-09-27 Tom Tromey <tom@tromey.com>
528
529 * reggroups.c (maintenance_print_reggroups): Constify.
530
8384c356
TT
5312017-09-27 Tom Tromey <tom@tromey.com>
532
533 * dwarf2read.c (save_gdb_index_command): Constify.
534
884beb0c
TT
5352017-09-27 Tom Tromey <tom@tromey.com>
536
537 * stap-probe.c (info_probes_stap_command): Constify.
538
e0b2930c
TT
5392017-09-27 Tom Tromey <tom@tromey.com>
540
541 * fork-child.c (unset_exec_wrapper_command): Constify.
542
f938677d
TT
5432017-09-27 Tom Tromey <tom@tromey.com>
544
545 * btrace.c (get_uint, get_context_size, no_chunk)
546 (maint_btrace_packet_history_cmd)
547 (maint_btrace_clear_packet_history_cmd, maint_btrace_clear_cmd)
548 (maint_info_btrace_cmd): Constify.
549
8949cb87
TT
5502017-09-27 Tom Tromey <tom@tromey.com>
551
552 * reverse.c (delete_bookmark_command): Constify.
553
ac88e2de
TT
5542017-09-27 Tom Tromey <tom@tromey.com>
555
556 * remote.c (set_memory_packet_size)
557 (set_memory_write_packet_size, show_memory_write_packet_size)
558 (set_memory_read_packet_size, show_memory_read_packet_size)
559 (compare_sections_command, packet_command, remote_put_command)
560 (remote_get_command, remote_delete_command): Constify.
561
bd4c9dfe
TT
5622017-09-27 Tom Tromey <tom@tromey.com>
563
564 * mips-tdep.c (show_mipsfpu_command, set_mipsfpu_single_command)
565 (set_mipsfpu_double_command, set_mipsfpu_none_command)
566 (set_mipsfpu_auto_command): Constify.
567
5e93d4c6
TT
5682017-09-27 Tom Tromey <tom@tromey.com>
569
570 * cli/cli-cmds.h (cd_command): Constify.
571 * cli/cli-cmds.c (cd_command): Constify.
572
fc41a75b
TT
5732017-09-27 Tom Tromey <tom@tromey.com>
574
575 * thread.c (thread_name_command, thread_find_command): Constify.
576
67810076
TT
5772017-09-27 Tom Tromey <tom@tromey.com>
578
579 * probe.c (enable_probes_command, disable_probes_command):
580 Constify.
581
1d8b34a7
TT
5822017-09-27 Tom Tromey <tom@tromey.com>
583
584 * symfile.c (symbol_file_command): Constify.
585 * gdbcore.h (deprecated_file_changed_hook): Constify.
586 * exec.c (deprecated_file_changed_hook, exec_file_command)
587 (file_command): Constify.
588 * defs.h (symbol_file_command): Constify.
589
442019e1
TT
5902017-09-27 Tom Tromey <tom@tromey.com>
591
592 * remote-fileio.c (set_system_call_allowed)
593 (show_system_call_allowed): Constify.
594
2983f7cb
TT
5952017-09-27 Tom Tromey <tom@tromey.com>
596
597 * tracepoint.c (delete_trace_variable_command)
598 (tfind_end_command, tfind_start_command, tfind_pc_command)
599 (tfind_tracepoint_command, tfind_line_command)
600 (tfind_range_command, tfind_outside_command): Constify.
601
4fd41b24
TT
6022017-09-27 Tom Tromey <tom@tromey.com>
603
604 * ax-gdb.c (maint_agent_printf_command, agent_command)
605 (agent_eval_command): Constify.
606
f2fc3015
TT
6072017-09-27 Tom Tromey <tom@tromey.com>
608
609 * tracepoint.c (info_scope_command): Constify.
610 * python/python.c (gdbpy_decode_line): Constify.
611 * python/py-breakpoint.c (bppy_init): Constify.
612 * mi/mi-cmd-break.c (mi_cmd_break_insert_1): Constify.
613 * location.h: (new_linespec_location)
614 (string_to_event_location_basic, string_to_event_location):
615 Constify.
616 * location.c (new_linespec_location)
617 (string_to_event_location_basic, string_to_event_location):
618 Constify.
619 * linespec.h (decode_line_with_current_source)
620 (decode_line_with_last_displayed, linespec_lex_to_end): Constify.
621 * linespec.c (linespec_lex_to_end)
622 (decode_line_with_current_source)
623 (decode_line_with_last_displayed): Constify.
624 * guile/scm-breakpoint.c (gdbscm_register_breakpoint_x):
625 Constify.
626 * cli/cli-cmds.c (edit_command, list_command): Constify.
627 * breakpoint.h (until_break_command, watch_command_wrapper)
628 (awatch_command_wrapper, rwatch_command_wrapper)
629 (init_ada_exception_breakpoint): Constify.
630 * breakpoint.c (break_command_1, dprintf_command)
631 (break_range_command, watch_command_wrapper)
632 (rwatch_command_wrapper, awatch_command_wrapper)
633 (until_break_command, init_ada_exception_breakpoint)
634 (strace_marker_create_sals_from_location, trace_command)
635 (ftrace_command, strace_command, struct tracepoint): Constify.
636 * ax-gdb.c (agent_command_1): Constify.
637 * ada-lang.c (ada_exception_sal): Constify.
638
8c2f95f4
TT
6392017-09-27 Tom Tromey <tom@tromey.com>
640
641 * record.c (cmd_record_delete, cmd_record_stop, cmd_record_save)
642 (cmd_record_goto_begin, cmd_record_goto_end, get_insn_number)
643 (get_context_size, no_chunk, get_insn_history_modifiers)
644 (cmd_record_insn_history, get_call_history_modifiers)
645 (cmd_record_call_history): Constify.
646
a0d65762
TT
6472017-09-27 Tom Tromey <tom@tromey.com>
648
649 * source.c (show_substitute_path_command)
650 (unset_substitute_path_command, set_substitute_path_command):
651 Constify.
652
58971144
TT
6532017-09-27 Tom Tromey <tom@tromey.com>
654
655 * typeprint.c (maintenance_print_type): Constify.
656 * maint.c (maintenance_dump_me, maintenance_demangle)
657 (maintenance_time_display, maintenance_info_sections)
658 (maintenance_print_statistics, maintenance_deprecate)
659 (maintenance_undeprecate): Constify.
660 (maintenance_do_deprecate): Constify. Use std::string.
661 (maintenance_selftest): Constify.
662 * gdbtypes.h (maintenance_print_type): Constify.
663
c482f52c
TT
6642017-09-27 Tom Tromey <tom@tromey.com>
665
666 * hppa-tdep.c (unwind_command): Constify.
667
e100df1a
TT
6682017-09-27 Tom Tromey <tom@tromey.com>
669
670 * target-descriptions.c (unset_tdesc_filename_cmd)
671 (maint_print_c_tdesc_cmd, maintenance_check_xml_descriptions):
672 Constify.
673
31d56ade
TT
6742017-09-27 Tom Tromey <tom@tromey.com>
675
676 * dummy-frame.c (maintenance_print_dummy_frames): Constify.
677
b961da0b
TT
6782017-09-27 Tom Tromey <tom@tromey.com>
679
680 * tui/tui.c (tui_enable_command, tui_disable_command): Constify.
681
e2d8ae16
TT
6822017-09-27 Tom Tromey <tom@tromey.com>
683
684 * tui/tui-regs.c (tui_reg_command): Constify.
685
863779b0
TT
6862017-09-27 Tom Tromey <tom@tromey.com>
687
688 * skip.c (skip_file_command, skip_function_command)
689 (skip_enable_command, skip_disable_command, skip_delete_command):
690 Constify.
691
cdb34d4a
TT
6922017-09-27 Tom Tromey <tom@tromey.com>
693
694 * record-btrace.c (cmd_record_btrace_bts_start)
695 (cmd_record_btrace_pt_start): Constify.
696
e99c83e7
TT
6972017-09-27 Tom Tromey <tom@tromey.com>
698
699 * symmisc.c (maintenance_print_symbols)
700 (maintenance_print_msymbols, maintenance_print_objfiles)
701 (maintenance_info_symtabs, maintenance_check_symtabs)
702 (maintenance_expand_symtabs, maintenance_info_line_tables):
703 Constify.
704
32faf971
TT
7052017-09-27 Tom Tromey <tom@tromey.com>
706
707 * top.c (new_ui_command): Constify.
708
2cf311eb
TT
7092017-09-27 Tom Tromey <tom@tromey.com>
710
711 * symfile.c (add_symbol_file_command)
712 (remove_symbol_file_command, list_overlays_command)
713 (map_overlay_command, unmap_overlay_command)
714 (overlay_auto_command, overlay_manual_command)
715 (overlay_off_command, overlay_load_command): Constify.
716
e6738699
TT
7172017-09-27 Tom Tromey <tom@tromey.com>
718
719 * spu-tdep.c (info_spu_event_command, info_spu_signal_command)
720 (info_spu_mailbox_command, info_spu_dma_command)
721 (info_spu_proxydma_command): Constify.
722
aa360cd5
TT
7232017-09-27 Tom Tromey <tom@tromey.com>
724
725 * cli/cli-logging.c (set_logging_on, set_logging_off): Constify.
726
898241a5
TT
7272017-09-27 Tom Tromey <tom@tromey.com>
728
729 * cli/cli-script.c (user_defined_command): Constify.
730
2d0ac106
TT
7312017-09-27 Tom Tromey <tom@tromey.com>
732
733 * cli/cli-dump.c (dump_memory_command, dump_value_command)
734 (dump_srec_memory, dump_srec_value, dump_ihex_memory)
735 (dump_ihex_value, dump_verilog_memory, dump_verilog_value)
736 (dump_tekhex_memory, dump_tekhex_value, dump_binary_memory)
737 (dump_binary_value, append_binary_memory, append_binary_value):
738 Constify.
739 (struct dump_context) <func>: Constify.
740 (add_dump_command): Update.
741
dede02ce
TT
7422017-09-27 Tom Tromey <tom@tromey.com>
743
744 * cli/cli-cmds.c (show_version, show_configuration)
745 (source_command, show_user): Constify.
746
d3cb6b99
TT
7472017-09-27 Tom Tromey <tom@tromey.com>
748
749 * target.c (maintenance_print_target_stack): Constify.
750
1970a12f
TT
7512017-09-27 Tom Tromey <tom@tromey.com>
752
753 * interps.c (interpreter_exec_cmd): Constify.
754
41243651
TT
7552017-09-27 Tom Tromey <tom@tromey.com>
756
757 * record-full.c (cmd_record_full_restore): Constify.
758
4465d9db
TT
7592017-09-27 Tom Tromey <tom@tromey.com>
760
761 * memattr.c (enable_mem_command, disable_mem_command)
762 (delete_mem_command): Constify.
763
ad25e423
TT
7642017-09-27 Tom Tromey <tom@tromey.com>
765
766 * value.c (show_convenience): Constify.
767
d64097b1
TT
7682017-09-27 Tom Tromey <tom@tromey.com>
769
770 * gdbcore.h (core_file_command): Update.
771 * corefile.c (core_file_command): Constify.
772
4d4589ef
TT
7732017-09-27 Tom Tromey <tom@tromey.com>
774
775 * user-regs.c (maintenance_print_user_registers): Constify.
776
32a7bf17
TT
7772017-09-27 Tom Tromey <tom@tromey.com>
778
779 * cp-namespace.c (maintenance_cplus_namespace): Constify.
780
4a475551
TT
7812017-09-27 Tom Tromey <tom@tromey.com>
782
783 * cp-support.c (first_component_command): Constify.
784
990b9f9f
TT
7852017-09-27 Tom Tromey <tom@tromey.com>
786
787 * psymtab.c (maintenance_print_psymbols)
788 (maintenance_info_psymtabs, maintenance_check_psymtabs):
789 Constify.
790
c281872e
TT
7912017-09-27 Tom Tromey <tom@tromey.com>
792
793 * windows-tdep.c (display_tib): Constify.
794
5b64bf74
TT
7952017-09-27 Tom Tromey <tom@tromey.com>
796
797 * linux-fork.c (delete_checkpoint_command)
798 (detach_checkpoint_command): Constify.
799
4ada038f
TT
8002017-09-27 Tom Tromey <tom@tromey.com>
801
802 * cp-abi.c (set_cp_abi_cmd, show_cp_abi_cmd): Constify.
803
57f5a81b
TT
8042017-09-27 Tom Tromey <tom@tromey.com>
805
806 * arc-tdep.c (dump_arc_instruction_command): Constify.
807
b0a8e6c4
TT
8082017-09-27 Tom Tromey <tom@tromey.com>
809
810 * valprint.c (set_radix, show_radix): Constify.
811
8d97dc1c
TT
8122017-09-27 Tom Tromey <tom@tromey.com>
813
814 * dtrace-probe.c (info_probes_dtrace_command): Constify.
815
eb7c454d
TT
8162017-09-27 Tom Tromey <tom@tromey.com>
817
818 * command.h (not_just_help_class_command): Update.
819 * cli/cli-decode.h (not_just_help_class_command): Update.
820 * cli/cli-decode.c (not_just_help_class_command): Constify.
821
e4e33335
TT
8222017-09-27 Tom Tromey <tom@tromey.com>
823
824 * gdb_bfd.c (maintenance_info_bfds): Constify.
825
0450cc4c
TT
8262017-09-27 Tom Tromey <tom@tromey.com>
827
828 * cli/cli-decode.c (add_cmd, set_cmd_cfunc): New function
829 overloads.
830 (do_add_cmd): Rename from add_cmd. Don't call set_cmd_cfunc.
831 (do_const_cfunc): New function.
832 (cmd_cfunc_eq): New overload.
833 (cli_user_command_p): Check do_const_cfunc.
834 * cli/cli-decode.h (struct cmd_list_element) <function>: New field
835 const_cfunc.
836 * command.h (add_cmd): Add const overload and no-function
837 overload.
838 (set_cmd_cfunc): Add const overload.
839 (cmd_const_cfunc_ftype): Declare.
840 (cmd_cfunc_eq): Add const overload.
841 * breakpoint.c, cli-cmds.c, cli-dump.c, guile/scm-cmd.c,
842 python/py-cmd.c, target.c, tracepoint.c: Use no-function add_cmd
843 overload.
844
a9bbfbd8
TT
8452017-09-27 Tom Tromey <tom@tromey.com>
846
847 * macroexp.c (get_next_token_for_substitution): New function.
848 (substitute_args): Call it. Check for __VA_OPT__.
849
5230b05a
WT
8502017-09-26 Walfred Tedeschi <walfred.tedeschi@intel.com>
851 Pedro Alves <palves@redhat.com>
852
853 * dwarf2read.c (dwarf2_cu): Remove field producer_is_icc and add
854 producer_is_icc_lt_14.
855 (producer_is_icc_lt_14): New function.
856 (check_producer): Add code for checking version of ICC.
857 (producer_is_icc): Move to producer.c.
858 (read_structure_type): Restrict ICC workaround to ICC<14.
859 * producer.c: Include selftest.h.
860 (producer_is_icc, producer_parsing_tests, _initialize_producer):
861 New functions.
862 * producer.h (producer_is_icc): New declaration.
863
b32b108a
WT
8642017-09-26 Walfred Tedeschi <walfred.tedeschi@intel.com>
865
866 * Makefile.in (SFILES): Add producer.c.
867 (COMMON_OBS): Add producer.o
868 * amd64-tdep.c (producer.h): Add new include.
869 * dwarf2read.c (producer.h): Add new include.
870 * producer.c: New file.
871 * producer.h: New file.
872 * utils.c (producer_is_gcc, producer_is_gcc_ge_4): Move to
873 producer.c.
874 * utils.h (producer_is_gcc, producer_is_gcc_ge_4): Move to
875 producer.h.
876
5007d765
MK
8772017-09-26 Matthias Klose <doko@ubuntu.com>
878
879 * configure.ac: Search ncursesw before ncurses.
880 Check ncursesw/ncurses.h before ncurses/ncurses.h.
881 * gdb_curses.h: Include <ncursesw/ncurses.h>
882 * config.in, configure: Regenerate.
883
281c4447
RO
8842017-09-26 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
885
886 PR gdb/22185
887 * configure.host <*-*-solaris2.[01], *-*-solaris2.[2-9]*>: Mark as
888 obsolete.
889 Use gdb_host sol2 for i[34567]86-*-solaris2*, x86_64-*-solaris2*.
890 Remove i386sol2 support.
891 * configure.nat <i386sol2>: Remove.
892 <sol2-64>: Fold into ...
893 <sol2>: ... this.
894 Move common settings to default section.
895 Add sol-thread.o.
896 * configure.tgt <i[34567]86-*-solaris2.1[0-9]*,
897 x86_64-*-solaris2.1[0-9]*>: Rename to ...
898 <i[34567]86-*-solaris2*, x86_64-*-solaris2*>: ... this.
899 <i[34567]86-*-solaris*>: Remove.
900 <sparc-*-solaris2.[0-6], sparc-*-solaris2.[0-6].*>: Remove.
901
902 * configure.ac: Remove wctype in libw check.
903 (_MSE_INT_H): Don't define on Solaris 7-9.
904 <solaris*>: Remove libthread_db.so.1 check.
905 * configure: Regenerate.
906 * config.in: Regenerate.
907
908 * proc-service.c: Remove PROC_SERVICE_IS_OLD handling.
909 (gdb_ps_prochandle_t, gdb_ps_read_buf_t, gdb_ps_write_buf_t)
910 (gdb_ps_size_t): Remove.
911 Use base types in users.
912 * sol-thread.c: Likewise, also for gdb_ps_addr_t.
913
914 * NEWS (Changes since GDB 8.0): Document Solaris 2.0-9 removal.
915
39b06c20
RO
9162017-09-26 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
917
918 PR build/22206
919 * sparc64-tdep.c (adi_tag_fd): Print pid as long.
920 (adi_is_addr_mapped): Likewise.
921 (PSR_ICC): Don't redefine.
922 (PSR_IMPL): Likewise.
923
6c3e20f1
TT
9242017-09-25 Tom Tromey <tom@tromey.com>
925
926 * regcache.c (regcache::dump): Use string_printf.
927
b292235f
TT
9282017-09-25 Tom Tromey <tom@tromey.com>
929
930 * regcache.c (class regcache_invalidator): New.
931 (struct register_to_invalidate): Remove.
932 (make_cleanup_regcache_invalidate): Remove.
933 (regcache::raw_write): Use regcache_invalidator.
934
9ac86b52
TT
9352017-09-25 Tom Tromey <tom@tromey.com>
936
937 * spu-tdep.c (spu2ppu_sniffer): Update.
938 * regcache.h (make_cleanup_regcache_xfree): Don't declare.
939 * regcache.c (do_regcache_xfree, make_cleanup_regcache_xfree):
940 Remove.
941 * ppc-linux-tdep.c (ppu2spu_sniffer): Update.
942 * mi/mi-main.c (mi_cmd_data_list_changed_registers): Update.
943 * frame.h (frame_save_as_regcache): Return std::unique_ptr.
944 * frame.c (frame_save_as_regcache): Return std::unique_ptr.
945 (frame_pop): Update.
946
c0e383c6
TT
9472017-09-25 Tom Tromey <tom@tromey.com>
948
949 * spu-tdep.c (spu2ppu_dealloc_cache): Use delete.
950 * regcache.h (regcache_xfree): Don't declare.
951 * regcache.c (regcache_xfree): Remove.
952 (do_regcache_xfree): Use delete.
953 * ppc-linux-tdep.c (ppu2spu_dealloc_cache): Use delete.
954 * linux-fork.c (free_fork): Use delete.
955 (fork_save_infrun_state): Likewise.
956 * jit.c (jit_dealloc_cache): Use delete.
957 * infrun.c (discard_infcall_suspend_state): Use delete.
958
791199cc
TT
9592017-09-25 Tom Tromey <tom@tromey.com>
960
961 * regcache.h (regcache_xmalloc): Don't declare.
962 (regcache_raw_set_cached_value): Update comment.
963 * regcache.c (regcache_xmalloc): Remove.
964 * ppc-linux-tdep.c (ppu2spu_sniffer): Use new.
965 * jit.c (jit_frame_sniffer): Use new.
966 * frame.c (frame_save_as_regcache): Use new.
967
289e23aa
AA
9682017-09-25 Andreas Arnez <arnez@linux.vnet.ibm.com>
969
970 * NEWS: Advertise support for guarded-storage registers on IBM z.
971
1b63490c
AA
9722017-09-25 Andreas Arnez <arnez@linux.vnet.ibm.com>
973
974 * s390-linux-nat.c (have_regset_gs): New static variable.
975 (s390_linux_fetch_inferior_registers): Handle guarded-storage
976 control block and guarded-storage broadcast control regsets.
977 (s390_read_description): Detect whether the target has
978 guarded-storage support, return appropriate tdesc.
979 * s390-linux-tdep.c (features/s390-gs-linux64.c): New include.
980 (features/s390x-gs-linux64.c): Likewise.
981 (struct gdbarch_tdep) <have_gs>: New field.
982 (s390_regmap_gs, s390_regmap_gsbc, s390_gs_regset)
983 (s390_gsbc_regset): New variables.
984 (s390_iterate_over_regset_sections): Iterate over s390_gs_regset
985 and s390_gsbc_regset, if applicable.
986 (s390_core_read_description): Check whether core file was from a
987 target with guarded-storage support; include appropriate regsets.
988 (s390_gdbarch_init): Add registers for guarded-storage support.
989 (_initialize_s390_tdep): Initialize new target descriptions that
990 include registers for guarded-storage support.
991 * s390-linux-tdep.h (HWCAP_S390_GS, S390_GSD_REGNUM)
992 (S390_GSSM_REGNUM, S390_GSEPLA_REGNUM)
993 (S390_BC_GSD_REGNUM, S390_BC_GSSM_REGNUM): New defines.
994 (S390_NUM_REGS): Adjust macro definition.
995 (s390_gs_regset, s390_gsbc_regset, tdesc_s390_gs_linux64)
996 (tdesc_s390x_gs_linux64): New declarations.
997
96235dc1
AA
9982017-09-25 Andreas Arnez <arnez@linux.vnet.ibm.com>
999
1000 * features/s390-gs-linux64.xml: New file.
1001 * features/s390-gs.xml: New file.
1002 * features/s390-gsbc.xml: New file.
1003 * features/s390x-gs-linux64.xml: New file.
1004 * features/Makefile (WHICH): Add s390-gs-linux64 and
1005 s390x-gs-linux64.
1006 (s390-gs-linux64-expedite, s390x-gs-linux64-expedite): New macros.
1007 (XMLTOC): Add s390-gs-linux64.xml and s390x-linux64.xml.
1008 * features/s390-gs-linux64.c: New generated file.
1009 * features/s390x-gs-linux64.c: New file.
1010 * regformats/s390-gs-linux64.dat: New file.
1011 * regformats/s390x-gs-linux64.dat: New file.
1012
b4a7c699
TT
10132017-09-23 Tom Tromey <tom@tromey.com>
1014
1015 * defs.h (make_cleanup_override_quit_handler): Don't declare.
1016
c2f97536
TT
10172017-09-22 Tom Tromey <tom@tromey.com>
1018
1019 * utils.c (class scoped_input_handler) <m_quit_handler>: Change
1020 type to scoped_restore_tmpl.
1021 <scoped_input_handler>: Initialize m_quit_handler directly.
1022
43573013
SDJ
10232017-09-22 Sergio Durigan Junior <sergiodj@redhat.com>
1024
1025 * cli/cli-cmds.c (pwd_command): Use "getcwd (NULL, 0)".
1026 (cd_command): Likewise. Free "current_directory" before
1027 assigning to it.
1028 * main.c (captured_main_1): Use "getcwd (NULL, 0)".
1029 * mi/mi-cmd-env.c (mi_cmd_env_pwd): Likewise.
1030 * top.c (gdb_dirbuf): Remove global declaration.
1031 * top.h (gdb_dirbuf): Likewise.
1032
6ec2e0f5
SDJ
10332017-09-22 Sergio Durigan Junior <sergiodj@redhat.com>
1034
1035 * gnulib/aclocal.m4: Regenerate.
1036 * gnulib/config.in: Regenerate.
1037 * gnulib/configure: Regenerate.
1038 * gnulib/import/Makefile.am: Regenerate.
1039 * gnulib/import/Makefile.in: Regenerate.
1040 * gnulib/import/assure.h: New file.
1041 * gnulib/import/at-func.c: Likewise
1042 * gnulib/import/chdir-long.c: New file.
1043 * gnulib/import/chdir-long.h: New file.
1044 * gnulib/import/cloexec.c: New file.
1045 * gnulib/import/cloexec.h: New file.
1046 * gnulib/import/close.c: New file.
1047 * gnulib/import/closedir.c: New file.
1048 * gnulib/import/dirent-private.h: New file.
1049 * gnulib/import/dup-safer.c: New file.
1050 * gnulib/import/dup.c: New file.
1051 * gnulib/import/dup2.c: New file.
1052 * gnulib/import/error.c: New file.
1053 * gnulib/import/error.h: New file.
1054 * gnulib/import/exitfail.c: New file.
1055 * gnulib/import/exitfail.h: New file.
1056 * gnulib/import/fchdir.c: New file.
1057 * gnulib/import/fcntl.c: New file.
1058 * gnulib/import/fcntl.in.h: New file.
1059 * gnulib/import/fd-hook.c: New file.
1060 * gnulib/import/fd-hook.h: New file.
1061 * gnulib/import/fd-safer.c: New file.
1062 * gnulib/import/fdopendir.c: New file.
1063 * gnulib/import/filename.h: New file.
1064 * gnulib/import/filenamecat-lgpl.c: New file.
1065 * gnulib/import/filenamecat.h: New file.
1066 * gnulib/import/fstat.c: New file.
1067 * gnulib/import/fstatat.c: New file.
1068 * gnulib/import/getcwd-lgpl.c: New file.
1069 * gnulib/import/getcwd.c: New file.
1070 * gnulib/import/getdtablesize.c: New file.
1071 * gnulib/import/getlogin_r.c: New file.
1072 * gnulib/import/getprogname.c: New file.
1073 * gnulib/import/getprogname.h: New file.
1074 * gnulib/import/gettext.h: New file.
1075 * gnulib/import/glob-libc.h: New file.
1076 * gnulib/import/glob.c: New file.
1077 * gnulib/import/glob.in.h: New file.
1078 * gnulib/import/intprops.h: New file.
1079 * gnulib/import/m4/chdir-long.m4: New file.
1080 * gnulib/import/m4/close.m4: New file.
1081 * gnulib/import/m4/closedir.m4: New file.
1082 * gnulib/import/m4/d-ino.m4: New file.
1083 * gnulib/import/m4/d-type.m4: New file.
1084 * gnulib/import/m4/dup.m4: New file.
1085 * gnulib/import/m4/dup2.m4: New file.
1086 * gnulib/import/m4/error.m4: New file.
1087 * gnulib/import/m4/fchdir.m4: New file.
1088 * gnulib/import/m4/fcntl.m4: New file.
1089 * gnulib/import/m4/fcntl_h.m4: New file.
1090 * gnulib/import/m4/fdopendir.m4: New file.
1091 * gnulib/import/m4/filenamecat.m4: New file.
1092 * gnulib/import/m4/fstat.m4: New file.
1093 * gnulib/import/m4/fstatat.m4: New file.
1094 * gnulib/import/m4/getcwd-abort-bug.m4: New file.
1095 * gnulib/import/m4/getcwd-path-max.m4: New file.
1096 * gnulib/import/m4/getcwd.m4: New file.
1097 * gnulib/import/m4/getdtablesize.m4: New file.
1098 * gnulib/import/m4/getlogin_r.m4: New file.
1099 * gnulib/import/m4/getprogname.m4: New file.
1100 * gnulib/import/m4/glob.m4: New file.
1101 * gnulib/import/m4/gnulib-cache.m4: Regenerate.
1102 * gnulib/import/m4/gnulib-comp.m4: Regenerate.
1103 * gnulib/import/m4/mempcpy.m4: New file.
1104 * gnulib/import/m4/memrchr.m4: New file.
1105 * gnulib/import/m4/mode_t.m4: New file.
1106 * gnulib/import/m4/msvc-inval.m4: New file.
1107 * gnulib/import/m4/msvc-nothrow.m4: New file.
1108 * gnulib/import/m4/open.m4: New file.
1109 * gnulib/import/m4/openat.m4: New file.
1110 * gnulib/import/m4/opendir.m4: New file.
1111 * gnulib/import/m4/readdir.m4: New file.
1112 * gnulib/import/m4/realloc.m4: New file.
1113 * gnulib/import/m4/rewinddir.m4: New file.
1114 * gnulib/import/m4/save-cwd.m4: New file.
1115 * gnulib/import/m4/strdup.m4: New file.
1116 * gnulib/import/m4/strerror.m4: New file.
1117 * gnulib/import/m4/unistd-safer.m4: New file.
1118 * gnulib/import/mempcpy.c: New file.
1119 * gnulib/import/memrchr.c: New file.
1120 * gnulib/import/msvc-inval.c: New file.
1121 * gnulib/import/msvc-inval.h: New file.
1122 * gnulib/import/msvc-nothrow.c: New file.
1123 * gnulib/import/msvc-nothrow.h: New file.
1124 * gnulib/import/open.c: New file.
1125 * gnulib/import/openat-die.c: New file.
1126 * gnulib/import/openat-priv.h: New file.
1127 * gnulib/import/openat-proc.c: New file.
1128 * gnulib/import/openat.c: New file.
1129 * gnulib/import/openat.h: New file.
1130 * gnulib/import/opendir.c: New file.
1131 * gnulib/import/pipe-safer.c: New file.
1132 * gnulib/import/readdir.c: New file.
1133 * gnulib/import/realloc.c: New file.
1134 * gnulib/import/rewinddir.c: New file.
1135 * gnulib/import/save-cwd.c: New file.
1136 * gnulib/import/save-cwd.h: New file.
1137 * gnulib/import/strdup.c: New file.
1138 * gnulib/import/strerror-override.c: New file.
1139 * gnulib/import/strerror-override.h: New file.
1140 * gnulib/import/strerror.c: New file.
1141 * gnulib/import/unistd--.h: New file.
1142 * gnulib/import/unistd-safer.h: New file.
1143 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add
1144 "getcwd" and "glob".
1145 * ser-tcp.c: Undefine "close" before redefining it.
1146
432ae719
SM
11472017-09-21 Simon Marchi <simon.marchi@ericsson.com>
1148
1149 * guile/scm-value.c (gdbscm_value_address): Initialize address,
1150 get rid of res_val.
1151
4fa7574e
RO
11522017-09-22 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1153
1154 * configure.nat <i386sol2,i386>: Add fork-inferior.o to NATDEPFILES.
1155 <sol2,sparc>: Likewise.
1156 <sol2-64,i386>: Likewise.
1157
1158 * warning.m4 (AM_GDB_WARNINGS): Disable -Wunknown-pragmas,
1159 -Wdeprecated-declarations on *-*-solaris*.
1160 * configure: Regenerate.
1161
1162 * procfs.c: Include "nat/inferior.h".
1163 (procfs_info_proc): Fix typo.
1164
f6327dcb
KB
11652017-09-21 Kevin Buettner <kevinb@redhat.com>
1166
1167 * remote.c (vector): Include.
1168 (struct private_thread_info): Add field, thread_handle.
1169 (free_private_thread_info): Deallocate storage associated with
1170 thread handle.
1171 (get_private_info_thread): Initialize `thread_handle' field.
1172 (struct thread_item): Add field, thread_handle.
1173 (clear_threads_listing_context): Deallocate storage associated
1174 with thread handle.
1175 (start_thread): Add support for "handle" attribute.
1176 (thread_attributes): Add "handle".
1177 (remote_get_threads_with_qthreadinfo): Initialize thread_handle
1178 field.
1179 (remote_update_thread_list): Update thread_handle.
1180 (remote_thread_handle_to_thread_info): New function.
1181 (init_remote_ops): Initialize to_thread_handle_to_thread_info.
1182
fbbe5337
KB
11832017-09-21 Kevin Buettner <kevinb@redhat.com>
1184
1185 * python/py-inferior.c (gdbpy_thread_from_thread_handle): New
1186 function.
1187 (inferior_object_methods): Add gdbpy_thread_from_thread_handle.
1188 * python/python-internal.h (thread_object_type): Declare.
1189
e04ee09e
KB
11902017-09-21 Kevin Buettner <kevinb@redhat.com>
1191
1192 * target.h (struct target_ops): Add to_thread_handle_to_thread_info.
1193 (target_thread_handle_to_thread_info): Declare.
1194 * target.c (target_thread_handle_to_thread_info): New function.
1195 * target-delegates.c: Regenerate.
1196 * gdbthread.h (find_thread_by_handle): Declare.
1197 * thread.c (find_thread_by_handle): New function.
1198 * linux-thread-db.c (thread_db_thread_handle_to_thread_info): New
1199 function.
1200 (init_thread_db_ops): Register thread_db_thread_handle_to_thread_info.
1201
1e5b66ed
SM
12022017-09-21 Simon Marchi <simon.marchi@ericsson.com>
1203
1204 * nat/linux-waitpid.c (linux_debug): Add ATTRIBUTE_PRINTF.
1205
ebe48ba0
SM
12062017-09-21 Simon Marchi <simon.marchi@ericsson.com>
1207
1208 * microblaze-tdep.c (microblaze_debug): Add ATTRIBUTE_PRINTF.
1209
0a0bf5dc
YQ
12102017-09-21 Yao Qi <yao.qi@linaro.org>
1211
1212 * configure.tgt (aarch64*-*-freebsd*): Add fbsd-tdep.o solib-svr4.o
1213 to gdb_target_obs.
1214
d1b0a7bf
TT
12152017-09-20 Tom Tromey <tom@tromey.com>
1216
1217 * breakpoint.c (struct counted_command_line): Remove.
1218 (breakpoint_commands): Update.
1219 (alloc_counted_command_line, incref_counted_command_line)
1220 (decref_counted_command_line, do_cleanup_counted_command_line)
1221 (make_cleanup_decref_counted_command_line): Remove.
1222 (breakpoint_set_commands, commands_command_1, ~bpstats, bpstats)
1223 (bpstat_clear_actions, bpstat_do_actions_1, watchpoint_check)
1224 (bpstat_stop_status, print_one_breakpoint_location, ~breakpoint)
1225 (save_breakpoints): Update.
1226 * breakpoint.h (counted_command_line): Now a typedef to
1227 shared_ptr.
1228 (struct breakpoint) <commands>: Now a counted_command_line.
1229 (struct bpstats) <command>: Likewise.
1230
48649e1b
TT
12312017-09-20 Tom Tromey <tom@tromey.com>
1232
1233 * breakpoint.c (struct commands_info, do_map_commands_command):
1234 Remove.
1235 (commands_command_1): Update.
1236 (iterate_over_related_breakpoints): Take a function_view.
1237 (do_delete_breakpoint, do_map_delete_breakpoint): Remove.
1238 (delete_command): Update.
1239 (map_breakpoint_numbers): Take a function_view.
1240 (do_disable_breakpoint, do_map_delete_breakpoint): Remove.
1241 (disable_command): Update.
1242 (do_enable_breakpoint, do_map_enable_breakpoint): Remove.
1243 (enable_command): Update.
1244 (struct disp_data, do_enable_breakpoint_disp)
1245 (do_map_enable_once_breakpoint, do_map_enable_count_breakpoint)
1246 (do_map_enable_delete_breakpoint): Remove.
1247 (enable_once_command, enable_count_command, enable_delete_command)
1248 (delete_trace_variable_command): Update.
1249
04afa70c
TT
12502017-09-20 Tom Tromey <tom@tromey.com>
1251
1252 * breakpoint.c (~bpstats): Rename from bpstat_free. Update.
1253 (bpstat_clear): Use delete.
1254 (bpstats): New constructors.
1255 (bpstat_copy, bpstat_stop_status): Use new.
1256 (dprintf_after_condition_true): Update.
1257 * breakpoint.h (bpstats::bpstats): Add constructors.
1258 (bpstats::~bpstats): Add destructor.
1259
c83833f4
PA
12602017-09-20 Pedro Alves <palves@redhat.com>
1261
1262 * eval.c (make_params): Delete, refactored as ...
1263 (class fake_method): ... this new type's ctor.
1264 (fake_method::~fake_method): New.
1265 (evaluate_subexp_standard): Use 'fake_method'.
1266
223ffa71
TT
12672017-09-20 Tom Tromey <tom@tromey.com>
1268
1269 * windows-nat.c (get_windows_debug_event, windows_wait)
1270 (do_initial_windows_stuff, windows_attach): Update.
1271 * utils.c (vwarning, internal_vproblem): Update.
1272 (ui_unregister_input_event_handler_cleanup)
1273 (prepare_to_handle_input): Remove.
1274 (class scoped_input_handler): New.
1275 (defaulted_query, prompt_for_continue): Update.
1276 * tui/tui-hooks.c (tui_refresh_frame_and_register_information):
1277 Update.
1278 * top.c (undo_terminal_modifications_before_exit): Update.
1279 * target/target.h (target_terminal_init, target_terminal_inferior)
1280 (target_terminal_ours): Don't declare.
1281 (class target_terminal): New.
1282 * target.h (target_terminal_is_inferior, target_terminal_is_ours)
1283 (target_terminal_ours_for_output)
1284 (make_cleanup_restore_target_terminal): Don't declare.
1285 (target_terminal_info): Remove.
1286 * target.c (enum terminal_state, terminal_state): Remove.
1287 (target_terminal::terminal_state): Define.
1288 (target_terminal::init): Rename from target_terminal_init.
1289 (target_terminal::inferior): Rename from
1290 target_terminal_inferior.
1291 (target_terminal::ours): Rename from target_terminal_ours.
1292 (target_terminal::ours_for_output): Rename from
1293 target_terminal_ours_for_output.
1294 (target_terminal::info): New method.
1295 (cleanup_restore_target_terminal)
1296 (make_cleanup_restore_target_terminal): Remove.
1297 * solib.c (handle_solib_event): Update.
1298 * remote.c (remote_serial_quit_handler): Update.
1299 (remote_terminal_inferior, remote_wait_as): Update.
1300 * record-full.c (record_full_wait_1): Update.
1301 * nto-procfs.c (procfs_create_inferior): Update.
1302 * nat/fork-inferior.c (startup_inferior): Update.
1303 * mi/mi-interp.c (mi_new_thread, mi_thread_exit)
1304 (mi_record_changed, mi_inferior_added, mi_inferior_appeared)
1305 (mi_inferior_exit, mi_inferior_removed, mi_traceframe_changed)
1306 (mi_tsv_created, mi_tsv_deleted, mi_tsv_modified)
1307 (mi_breakpoint_created, mi_breakpoint_deleted)
1308 (mi_breakpoint_modified, mi_on_resume, mi_solib_loaded)
1309 (mi_solib_unloaded, mi_command_param_changed, mi_memory_changed)
1310 (mi_user_selected_context_changed, report_initial_inferior):
1311 Update.
1312 * linux-nat.c (linux_nat_attach, linux_nat_terminal_ours)
1313 (linux_nat_terminal_inferior): Update.
1314 * infrun.c (follow_fork_inferior)
1315 (handle_vfork_child_exec_or_exit, do_target_resume)
1316 (check_curr_ui_sync_execution_done, handle_inferior_event_1)
1317 (handle_signal_stop, maybe_remove_breakpoints, normal_stop):
1318 Update.
1319 * inflow.c (child_terminal_init, info_terminal_command): Update.
1320 * infcmd.c (post_create_inferior, continue_1, prepare_one_step)
1321 (attach_command): Update.
1322 * infcall.c (call_thread_fsm_should_stop): Update.
1323 * gnu-nat.c (gnu_attach): Update.
1324 * extension.c (struct active_ext_lang_state)
1325 (restore_active_ext_lang): Update.
1326 * exceptions.c (print_flush): Update.
1327 * event-top.c (async_enable_stdin, default_quit_handler): Update.
1328 (struct quit_handler_cleanup_data, restore_quit_handler)
1329 (restore_quit_handler_dtor, make_cleanup_override_quit_handler):
1330 Remove.
1331 * cp-support.c (gdb_demangle): Update.
1332 * breakpoint.c (update_inserted_breakpoint_locations)
1333 (insert_breakpoint_locations, handle_jit_event)
1334 (disable_breakpoints_in_unloaded_shlib): Update.
1335 * annotate.c (annotate_breakpoints_invalid)
1336 (annotate_frames_invalid): Update.
1337
013af3fc
TT
13382017-09-20 Tom Tromey <tom@tromey.com>
1339
1340 * main.c (catch_command_errors): Rename from
1341 catch_command_errors_const.
1342 (captured_main_1): Update.
1343
06871ae8
PA
13442017-09-20 Pedro Alves <palves@redhat.com>
1345
1346 * cli/cli-cmds.c (list_command): Use print_sal_location.
1347 (print_sal_location): New function.
1348 (ambiguous_line_spec): Use print_sal_location.
1349 * linespec.c (symbol_to_sal): Record the symbol in the sal.
1350 * symtab.c (find_function_start_sal): Likewise.
1351 * symtab.h (symtab_and_line::symbol): New field.
1352
e5f25bc5
PA
13532017-09-20 Pedro Alves <palves@redhat.com>
1354
1355 * linespec.c (minsym_found): Handle non-text minsyms.
1356 (symbol_to_sal): Record a sal.pc for non-block, non-label symbols.
1357
1b7fa39e
WT
13582017-09-20 Walfred Tedeschi <walfred.tedeschi@intel.com>
1359
1360 * features/Makefile (i386-avx-mpx-avx512-pku.dat): Add missing
1361 backslash.
1362
37dd0825
WT
13632017-09-20 Walfred Tedeschi <walfred.tedeschi@intel.com>
1364
1365 * gdb.arch/i386-avx512.c (move_zmm_data_to_reg): Use
1366 vmovups instead vmovaps.
1367 (move_zmm_data_to_memory): Use vmovups instead vmovaps.
1368
4e5a4f58
JB
13692017-09-19 John Baldwin <jhb@FreeBSD.org>
1370
1371 * NEWS (Changes since GDB 8.0): Add starti.
1372 * infcmd.c (enum run_break): New.
1373 (run_command_1): Queue pending event for RUN_STOP_AT_FIRST_INSN
1374 case.
1375 (run_command): Use enum run_how.
1376 (start_command): Likewise.
1377 (starti_command): New function.
1378 (RUN_ARGS_HELP): New macro.
1379 (_initialize_infcmd): Use RUN_ARGS_HELP for run and start
1380 commands. Add starti command.
1381
aa70c9f1
YQ
13822017-09-19 Yao Qi <yao.qi@linaro.org>
1383
1384 * Makefile.in (monitor.o): Remove the rule.
1385
d6541620
YQ
13862017-09-19 Yao Qi <yao.qi@linaro.org>
1387
1388 * annotate.h (struct annotate_arg_emitter): Use
1389 DISABLE_COPY_AND_ASSIGN.
1390 * common/refcounted-object.h (refcounted_object): Likewise.
1391 * completer.h (struct completion_result): Likewise.
1392 * dwarf2read.c (struct dwarf2_per_objfile): Likewise.
1393 * filename-seen-cache.h (filename_seen_cache): Likewise.
1394 * gdbcore.h (thread_section_name): Likewise.
1395 * gdb_regex.h (compiled_regex): Likewise.
1396 * gdbthread.h (scoped_restore_current_thread): Likewise.
1397 * inferior.h (scoped_restore_current_inferior): Likewise.
1398 * jit.c (jit_reader): Likewise.
1399 * linespec.h (struct linespec_result): Likewise.
1400 * mi/mi-parse.h (struct mi_parse): Likewise.
1401 * nat/fork-inferior.c (execv_argv): Likewise.
1402 * progspace.h (scoped_restore_current_program_space): Likewise.
1403 * python/python-internal.h (class gdbpy_enter): Likewise.
1404 * regcache.h (regcache): Likewise.
1405 * target-descriptions.c (struct tdesc_reg): Likewise.
1406 (struct tdesc_type): Likewise.
1407 (struct tdesc_feature): Likewise.
1408 * ui-out.h (ui_out_emit_type): Likewise.
1409
0615127c
SM
14102017-09-18 Simon Marchi <simon.marchi@ericsson.com>
1411
1412 * dwarf2expr.c (dwarf_expr_context::execute_stack_op): Remove
1413 label abort_expression.
1414
5e187554
SM
14152017-09-16 Simon Marchi <simon.marchi@ericsson.com>
1416
1417 * common/buffer.c (buffer_xml_printf): Adjust.
1418 * common/xml-utils.c (xml_escape_text): Change return type to
1419 std::string, update code accordingly.
1420 * common/xml-utils.h (xml_escape_text): Change return type to
1421 std::string.
1422 * rs6000-aix-tdep.c (rs6000_aix_shared_library_to_xml): Adjust.
1423 * windows-tdep.c (windows_xfer_shared_library): Adjust.
1424 * unittests/xml-utils-selftests.c (test_xml_escape_text):
1425 Adjust.
1426
c3d7b541
SM
14272017-09-16 Simon Marchi <simon.marchi@ericsson.com>
1428
1429 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add new source file.
1430 (SUBDIR_UNITTESTS_OBS): Add new object file.
1431 * unittests/xml-utils-selftests.c: New file.
1432
1526853e
SM
14332017-09-16 Simon Marchi <simon.marchi@ericsson.com>
1434
1435 * common/selftest.h (selftest): New struct/interface.
1436 (register_test): Add name parameter, add new overload.
1437 (run_tests): Add filter parameter.
1438 (for_each_selftest_ftype): New typedef.
1439 (for_each_selftest): New declaration.
1440 * common/selftest.c (tests): Change type to
1441 map<string, unique_ptr<selftest>>.
1442 (simple_selftest): New struct.
1443 (register_test): New function.
1444 (register_test): Add name parameter and use it.
1445 (run_tests): Add filter parameter and use it. Add prints.
1446 Adjust to vector -> map change.
1447 * aarch64-tdep.c (_initialize_aarch64_tdep): Add names when
1448 registering selftests.
1449 * arm-tdep.c (_initialize_arm_tdep): Likewise.
1450 * disasm-selftests.c (_initialize_disasm_selftests): Likewise.
1451 * dwarf2-frame.c (_initialize_dwarf2_frame): Likewise.
1452 * dwarf2loc.c (_initialize_dwarf2loc): Likewise.
1453 * findvar.c (_initialize_findvar): Likewise.
1454 * gdbarch-selftests.c (_initialize_gdbarch_selftests): Likewise.
1455 * maint.c (maintenance_selftest): Update call to run_tests.
1456 (maintenance_info_selftests): New function.
1457 (_initialize_maint_cmds): Register "maintenance info selftests"
1458 command. Update "maintenance selftest" doc.
1459 * regcache.c (_initialize_regcache): Add names when registering
1460 selftests.
1461 * rust-exp.y (_initialize_rust_exp): Likewise.
1462 * selftest-arch.c (gdbarch_selftest): New struct.
1463 (gdbarch_tests): Remove.
1464 (register_test_foreach_arch): Add name parameter. Call
1465 register_test.
1466 (tests_with_arch): Remove, move most content to
1467 gdbarch_selftest::operator().
1468 (_initialize_selftests_foreach_arch): Remove.
1469 * selftest-arch.h (register_test_foreach_arch): Add name
1470 parameter.
1471 (run_tests_with_arch): New declaration.
1472 * utils-selftests.c (_initialize_utils_selftests): Add names
1473 when registering selftests.
1474 * utils.c (_initialize_utils): Likewise.
1475 * unittests/array-view-selftests.c
1476 (_initialize_array_view_selftests): Likewise.
1477 * unittests/environ-selftests.c (_initialize_environ_selftests):
1478 Likewise.
1479 * unittests/function-view-selftests.c
1480 (_initialize_function_view_selftests): Likewise.
1481 * unittests/offset-type-selftests.c
1482 (_initialize_offset_type_selftests): Likewise.
1483 * unittests/optional-selftests.c
1484 (_initialize_optional_selftests): Likewise.
1485 * unittests/scoped_restore-selftests.c
1486 (_initialize_scoped_restore_selftests): Likewise.
1487 * NEWS: Document "maintenance selftest" and "maint info
1488 selftests".
1489
5846367a
SM
14902017-09-16 Simon Marchi <simon.marchi@ericsson.com>
1491
1492 * mi/mi-main.c (mi_load_progress): Restore current_uiout using a
1493 scoped_restore.
1494
bd77e8ff
SM
14952017-09-16 Simon Marchi <simon.marchi@ericsson.com>
1496
1497 * mi/mi-main.c (mi_load_progress): Make uiout variable
1498 a unique_ptr.
1499
26a67918
PA
15002017-09-15 Pedro Alves <palves@redhat.com>
1501
1502 * compile/compile-c-types.c (convert_enum, convert_int)
1503 (convert_float): Adjust to refer to int_type_v0 and float_type_v0.
1504
3f8a7804
SM
15052017-09-15 Simon Marchi <simon.marchi@ericsson.com>
1506
1507 * dwarf2read.c (copy_string): Remove.
1508 (parse_macro_definition): Replace copy_string with savestring.
1509
8d200706
YQ
15102017-09-15 Yao Qi <yao.qi@linaro.org>
1511
1512 * configure.tgt (i[34567]86-*-darwin*): Append amd64.o to
1513 gdb_target_obs.
1514 (i[34567]86-*-solaris2.1[0-9]* | x86_64-*-solaris2.1[0-9]*):
1515 Likewise.
1516 (i[34567]86-*-linux*): Likewise.
1517
d185219d
SM
15182017-09-14 Simon Marchi <simon.marchi@ericsson.com>
1519
1520 * dwarf2expr.h (dwarf_stack_value): Add constructor.
1521 (dwarf_expr_context) <~dwarf_expr_context>: Define as default.
1522 <stack>: Change type to std::vector.
1523 <stack_len, stack_allocated>: Remove.
1524 <grow_stack>: Remove.
1525 * dwarf2expr.c (dwarf_expr_context::dwarf_expr_context): Adjust.
1526 (dwarf_expr_context::~dwarf_expr_context): Remove.
1527 (dwarf_expr_context::grow_stack): Remove.
1528 (dwarf_expr_context::push): Adjust.
1529 (dwarf_expr_context::pop): Adjust.
1530 (dwarf_expr_context::fetch): Adjust.
1531 (dwarf_expr_context::fetch_in_stack_memory): Adjust.
1532 (dwarf_expr_context::stack_empty_p): Adjust.
1533 (dwarf_expr_context::execute_stack_op): Adjust.
1534
eccd80d6
SM
15352017-09-14 Simon Marchi <simon.marchi@ericsson.com>
1536
1537 * dwarf2expr.h (dwarf_expr_context) <stack_empty_p>: Change
1538 return type to bool.
1539 * dwarf2expr.c (dwarf_expr_context::stack_empty_p): Likewise.
1540
69009882
SM
15412017-09-14 Simon Marchi <simon.marchi@ericsson.com>
1542
1543 * dwarf2expr.h (dwarf_expr_piece) <v.mem.in_stack_memory>:
1544 Change type to bool.
1545 (dwarf_stack_value) <in_stack_memory>: Likewise.
1546 (dwarf_expr_context) <push_address>: Change parameter type to
1547 bool.
1548 <fetch_in_stack_memory>: Change return type to bool.
1549 <push>: Change parameter type to bool.
1550 * dwarf2expr.c (dwarf_expr_context::push): Change parameter type
1551 to bool.
1552 (dwarf_expr_context::push_address): Likewise.
1553 (dwarf_expr_context::fetch_in_stack_memory): Change return type
1554 to bool.
1555 (dwarf_expr_context::execute_stack_op): Adjust.
1556 * dwarf2loc.c (dwarf2_evaluate_loc_desc_full): Adjust.
1557
1e467161
SM
15582017-09-14 Simon Marchi <simon.marchi@ericsson.com>
1559
1560 * dwarf2expr.h (struct dwarf_expr_piece): Move up.
1561 (struct dwarf_expr_context) <n_pieces>: Remove.
1562 <pieces>: Change type to std::vector.
1563 * dwarf2expr.c (dwarf_expr_context::dwarf_expr_context): Adjust.
1564 (dwarf_expr_context::~dwarf_expr_context): Don't manually free
1565 pieces.
1566 (dwarf_expr_context::add_piece): Adjust.
1567 * dwarf2loc.c (struct piece_closure): Initialize fields.
1568 <n_pieces>: Remove.
1569 <pieces>: Change type to std::vector.
1570 (allocate_piece_closure): Adjust, change parameter to
1571 std::vector rvalue and std::move it to piece_closure.
1572 (rw_pieced_value): Adjust.
1573 (check_pieced_synthetic_pointer): Adjust.
1574 (indirect_synthetic_pointer): Adjust.
1575 (coerce_pieced_ref): Adjust.
1576 (free_pieced_value_closure): Adjust. Use delete to free
1577 piece_closure.
1578 (dwarf2_evaluate_loc_desc_full): Adjust. std::move ctx.pieces
1579 to allocate_piece_closure.
1580 (dwarf2_loc_desc_get_symbol_read_needs): Adjust.
1581
0782db84
SM
15822017-09-12 Simon Marchi <simon.marchi@ericsson.com>
1583
1584 * probe.h (probe_ops_cp): Remove typedef.
1585 (DEF_VEC_P (probe_ops_cp)): Remove.
1586 (all_probe_ops): Change type to std::vector.
1587 * probe.c (info_probes_for_ops): Adjust to vector change.
1588 (probe_linespec_to_ops): Likewise.
1589 (all_probe_ops): Change type to std::vector.
1590 (_initialize_probe): Adjust to vector change.
1591 * dtrace-probe.c (_initialize_dtrace_probe): Likewise.
1592 * elfread.c (elf_get_probes): Likewise.
1593 * stap-probe.c (_initialize_stap_probe): Likewise.
1594
1eac6bea
SM
15952017-09-12 Simon Marchi <simon.marchi@ericsson.com>
1596
1597 * probe.h (struct bound_probe): Define constructors.
1598 * probe.c (bound_probe_s): Remove typedef.
1599 (DEF_VEC_O (bound_probe_s)): Remove VEC.
1600 (collect_probes): Change return type to std::vector, remove
1601 cleanup.
1602 (compare_probes): Return bool, change parameter type. Change
1603 semantic to "less than".
1604 (gen_ui_out_table_header_info): Change parameter to std::vector
1605 and update.
1606 (exists_probe_with_pops): Likewise.
1607 (info_probes_for_ops): Update to std::vector change.
1608 (enable_probes_command): Likewise.
1609 (disable_probes_command): Likewise.
1610
aaa63a31
SM
16112017-09-12 Simon Marchi <simon.marchi@ericsson.com>
1612
1613 * probe.h (struct probe_ops) <get_probes>: Change parameter from
1614 vec to std::vector.
1615 * probe.c (parse_probes_in_pspace): Update.
1616 (find_probes_in_objfile): Update.
1617 (find_probe_by_pc): Update.
1618 (collect_probes): Update.
1619 (probe_any_get_probes): Update.
1620 * symfile.h (struct sym_probe_fns) <sym_get_probes> Change
1621 return type to reference to std::vector.
1622 * dtrace-probe.c (dtrace_process_dof_probe): Change parameter to
1623 std::vector and update.
1624 (dtrace_process_dof): Likewise.
1625 (dtrace_get_probes): Likewise.
1626 * elfread.c (elf_get_probes): Change return type to std::vector,
1627 store an std::vector in bfd_data.
1628 (probe_key_free): Update to std::vector.
1629 * stap-probe.c (handle_stap_probe): Change parameter to
1630 std::vector and update.
1631 (stap_get_probes): Likewise.
1632 * symfile-debug.c (debug_sym_get_probes): Change return type to
1633 std::vector and update.
1634
cb85b21b
TT
16352017-09-11 Tom Tromey <tom@tromey.com>
1636
1637 * breakpoint.c (program_breakpoint_here_p): Update.
1638 * target.c (make_scoped_restore_show_memory_breakpoints): Rename
1639 from make_show_memory_breakpoints_cleanup. Return a
1640 scoped_restore_tmpl<int>.
1641 (restore_show_memory_breakpoints): Remove.
1642 * ppc-linux-tdep.c (ppc_linux_memory_remove_breakpoint): Update.
1643 * mem-break.c (memory_validate_breakpoint): Update.
1644 * ia64-tdep.c (ia64_memory_insert_breakpoint): Update.
1645 (ia64_memory_remove_breakpoint): Update.
1646 (ia64_breakpoint_from_pc): Update.
1647 * target.h (make_scoped_restore_show_memory_breakpoints): Rename
1648 from make_show_memory_breakpoints_cleanup.
1649
8fbc99ef
TT
16502017-09-11 Tom Tromey <tom@tromey.com>
1651
1652 * d-namespace.c (d_lookup_symbol): Use std::string.
1653 (find_symbol_in_baseclass): Likewise.
1654
50feb4bd
TT
16552017-09-11 Tom Tromey <tom@tromey.com>
1656
1657 * ctf.c (ctf_start): Use std::string.
1658
c6dc63a1
TT
16592017-09-11 Tom Tromey <tom@tromey.com>
1660
1661 * ada-lang.c (is_known_support_routine): Update.
1662 (ada_unhandled_exception_name_addr_from_raise): Update.
1663 * guile/scm-frame.c (gdbscm_frame_name): Update.
1664 * python/py-frame.c (frapy_name): Update.
1665 (frapy_function): Update.
1666 * stack.h (find_frame_funname): Update.
1667 * stack.c (find_frame_funname): Return unique_xmalloc_ptr.
1668 (print_frame): Update.
1669
d6b9b80f
TT
16702017-09-11 Tom Tromey <tom@tromey.com>
1671
1672 * findcmd.c (put_bits): Take a gdb::byte_vector.
1673 (parse_find_args): Return gdb::byte_vector. "args" now const.
1674 Remove "pattern_bufp" and "pattern_lenp" parameters. Remove
1675 cleanups.
1676 (find_command): Update.
1677
a9921622
TT
16782017-09-11 Tom Tromey <tom@tromey.com>
1679
1680 * cli/cli-script.c (class scoped_restore_hook_in): New.
1681 (clear_hook_in_cleanup): Remove.
1682 (execute_cmd_pre_hook, execute_cmd_post_hook): Use
1683 scoped_restore_hook_in.
1684
be0d7abb
TT
16852017-09-11 Tom Tromey <tom@tromey.com>
1686
1687 * cli/cli-script.c (restore_interp): Remove.
1688 (read_command_lines): Use scoped_restore_interp.
1689 * interps.c (scoped_restore_interp::set_temp): Rename from
1690 interp_set_temp.
1691 * interps.h (class scoped_restore_interp): New.
1692 (interp_set_temp): Remove.
1693
00f675ff
TT
16942017-09-11 Tom Tromey <tom@tromey.com>
1695
1696 * mi/mi-cmd-catch.c (mi_cmd_catch_assert)
1697 (mi_cmd_catch_exception, mi_catch_load_unload): Update.
1698 * mi/mi-cmd-break.c (setup_breakpoint_reporting): Return a
1699 scoped_restore.
1700 (mi_cmd_break_insert_1): Update.
1701 * mi/mi-cmd-break.h (setup_breakpoint_reporting): Return a
1702 scoped_restore.
1703
cb791d59
TT
17042017-09-11 Tom Tromey <tom@tromey.com>
1705
1706 * demangle.c (demangle_command): Update.
1707 * breakpoint.c (disable_command): Update.
1708 (enable_command): Update.
1709 (find_location_by_number): Make "number" const. Use
1710 get_number_trailer.
1711 * cli/cli-utils.c (extract_arg): Return std::string.
1712 * probe.c (parse_probe_linespec): Update. Change types.
1713 (collect_probes): Take string arguments.
1714 (parse_probe_linespec): Likewise.
1715 (info_probes_for_ops): Update.
1716 (enable_probes_command): Update.
1717 (disable_probes_command): Update.
1718 * break-catch-sig.c (catch_signal_split_args): Update.
1719 * mi/mi-parse.c (mi_parse): Update.
1720
2039bd9f
TT
17212017-09-11 Tom Tromey <tom@tromey.com>
1722
1723 * language.h (language_enum): Make argument const.
1724 * language.c (language_enum): Make argument const.
1725
f1735a53
TT
17262017-09-11 Tom Tromey <tom@tromey.com>
1727
1728 * common/common-utils.h (skip_to_space): Remove macro, redeclare
1729 as function.
1730 (skip_to_space): Rename from skip_to_space_const.
1731 * common/common-utils.c (skip_to_space): New function.
1732 (skip_to_space): Rename from skip_to_space_const.
1733 * cli/cli-utils.h (get_number): Rename from get_number_const.
1734 (extract_arg): Rename from extract_arg_const.
1735 * cli/cli-utils.c (get_number): Rename from get_number_const.
1736 (extract_arg): Rename from extract_arg_const.
1737 (number_or_range_parser::get_number): Use ::get_number.
1738 * aarch64-linux-tdep.c, ada-lang.c, arm-linux-tdep.c, ax-gdb.c,
1739 break-catch-throw.c, breakpoint.c, cli/cli-cmds.c, cli/cli-dump.c,
1740 cli/cli-script.c, cli/cli-setshow.c, compile/compile.c,
1741 completer.c, demangle.c, disasm.c, findcmd.c, linespec.c,
1742 linux-tdep.c, linux-thread-db.c, location.c, mi/mi-parse.c,
1743 minsyms.c, nat/linux-procfs.c, printcmd.c, probe.c,
1744 python/py-breakpoint.c, record.c, rust-exp.y, serial.c, stack.c,
1745 stap-probe.c, tid-parse.c, tracepoint.c: Update all callers.
1746
7d221d74
TT
17472017-09-11 Tom Tromey <tom@tromey.com>
1748
1749 * python/python.c (do_start_initialization): Use
1750 py-event-types.def to initialize types.
1751 Define all object type structures.
1752 * python/python-internal.h: Don't declare event initialization
1753 functions.
1754 * python/py-threadevent.c (thread_event_object_type): Don't
1755 define.
1756 * python/py-stopevent.c (stop_event_object_type): Don't define.
1757 * python/py-signalevent.c (signal_event_object_type): Don't
1758 declare or define.
1759 * python/py-newobjfileevent.c (new_objfile_event_object_type)
1760 (clear_objfiles_event_object_type): Don't declare or define.
1761 * python/py-infevents.c (inferior_call_pre_event_object_type)
1762 (inferior_call_post_event_object_type)
1763 (register_changed_event_object_type)
1764 (memory_changed_event_object_type): Don't declare or define.
1765 * python/py-inferior.c (new_thread_event_object_type)
1766 (new_inferior_event_object_type)
1767 (inferior_deleted_event_object_type): Don't declare or define.
1768 * python/py-exitedevent.c (exited_event_object_type): Don't
1769 declare or define.
1770 * python/py-evts.c (gdbpy_initialize_py_events): Use
1771 py-all-events.def.
1772 * python/py-events.h (thread_event_object_type): Don't declare.
1773 (events_object): Use py-all-events.def.
1774 * python/py-event.h (GDBPY_NEW_EVENT_TYPE): Remove. Use
1775 py-event-types.def.
1776 * python/py-event-types.def: New file.
1777 * python/py-continueevent.c (create_continue_event_object): Don't
1778 declare or define.
1779 * python/py-bpevent.c (breakpoint_event_object_type): Don't
1780 declare or define.
1781 * python/py-all-events.def: New file.
1782
35c61a1d
TT
17832017-09-11 Tom Tromey <tom@tromey.com>
1784
1785 * python/py-threadevent.c (create_thread_event_object): Return
1786 gdbpy_ref.
1787 * python/py-stopevent.h (create_stop_event_object)
1788 (create_breakpoint_event_object, create_signal_event_object):
1789 Update.
1790 * python/py-stopevent.c (create_stop_event_object): Return
1791 gdbpy_ref.
1792 (emit_stop_event): Update.
1793 * python/py-signalevent.c (create_signal_event_object): Return
1794 gdbpy_ref.
1795 * python/py-infevents.c (create_inferior_call_event_object):
1796 Update.
1797 * python/py-event.h (create_event_object)
1798 (create_thread_event_object): Update.
1799 * python/py-event.c (create_event_object): Return gdbpy_ref.
1800 * python/py-continueevent.c: Return gdbpy_ref.
1801 * python/py-bpevent.c (create_breakpoint_event_object): Return
1802 gdbpy_ref.
1803
7c96f8c1
TT
18042017-09-11 Tom Tromey <tom@tromey.com>
1805
1806 PR python/15622:
1807 * NEWS: Add entry.
1808 * python/python.c (do_start_initialization): Initialize new event
1809 types.
1810 * python/python-internal.h (gdbpy_initialize_new_inferior_event)
1811 (gdbpy_initialize_inferior_deleted_event)
1812 (gdbpy_initialize_new_thread_event): Declare.
1813 * python/py-threadevent.c (create_thread_event_object): Add option
1814 "thread" parameter.
1815 * python/py-inferior.c (new_thread_event_object_type)
1816 (new_inferior_event_object_type)
1817 (inferior_deleted_event_object_type): Declare.
1818 (python_new_inferior, python_inferior_deleted): New functions.
1819 (add_thread_object): Emit new_thread event.
1820 (gdbpy_initialize_inferior): Attach new functions to corresponding
1821 observers.
1822 (new_thread, new_inferior, inferior_deleted): Define new event
1823 types.
1824 * python/py-evts.c (gdbpy_initialize_py_events): Add new
1825 registries.
1826 * python/py-events.h (events_object) <new_inferior,
1827 inferior_deleted, new_thread>: New fields.
1828 * python/py-event.h (create_thread_event_breakpoint): Add optional
1829 "thread" parameter.
1830
72542b8e
AB
18312017-09-10 Andrew Burgess <andrew.burgess@embecosm.com>
1832
1833 * utils.c (abort_with_message): Don't compare gdb_stderr to NULL,
1834 check current_ui instead.
1835 (internal_vproblem): Likewise.
1836
0d64823e
SM
18372017-09-09 Simon Marchi <simon.marchi@ericsson.com>
1838
1839 * thread.c (print_thread_info_1): Remove unnecessary calls to
1840 uiout->is_mi_like_p.
1841
eb1e02fd
TT
18422017-09-09 Tom Tromey <tom@tromey.com>
1843
1844 * namespace.h (add_using_directive): Update.
1845 * namespace.c (add_using_directive): Change type of excludes to
1846 std::vector.
1847 * dwarf2read.c (read_import_statement): Use std::vector.
1848 (read_namespace): Update.
1849 * cp-namespace.c (cp_scan_for_anonymous_namespaces): Update.
1850
0fc21fd8
TT
18512017-09-09 Tom Tromey <tom@tromey.com>
1852
1853 * linespec.c (create_sals_line_offset): Use gdb::def_vector.
1854
49663d05
TT
18552017-09-09 Tom Tromey <tom@tromey.com>
1856
1857 * p-valprint.c (pascal_object_print_value): Use gdb::byte_vector.
1858
0b868b60
TT
18592017-09-09 Tom Tromey <tom@tromey.com>
1860
1861 * stack.c (func_command): Use gdb::def_vector.
1862
c0470d48
TT
18632017-09-09 Tom Tromey <tom@tromey.com>
1864
1865 * mi/mi-cmd-var.c (mi_cmd_var_list_children): Use gdb::optional,
1866 ui_out_emit_list, ui_out_emit_tuple.
1867 (mi_cmd_var_update): Likewise.
1868
ca5909c7
TT
18692017-09-09 Tom Tromey <tom@tromey.com>
1870
1871 * mi/mi-interp.c (mi_user_selected_context_changed): Use
1872 ui_out_redirect_pop.
1873 * guile/scm-ports.c (ioscm_with_output_to_port_worker): Use
1874 ui_out_redirect_pop.
1875 * utils.c (do_ui_out_redirect_pop)
1876 (make_cleanup_ui_out_redirect_pop): Remove.
1877 * top.c (execute_command_to_string): Use ui_out_redirect_pop.
1878 * utils.h (make_cleanup_ui_out_redirect_pop): Remove.
1879 * ui-out.h (ui_out_redirect_pop): New class.
1880
e6a2252a
TT
18812017-09-09 Tom Tromey <tom@tromey.com>
1882
1883 * mi/mi-main.c (output_cores): Use ui_out_emit_list.
1884 (list_available_thread_groups, mi_cmd_list_thread_groups)
1885 (mi_cmd_data_list_changed_registers, mi_cmd_data_read_memory)
1886 (mi_cmd_data_read_memory_bytes, mi_cmd_trace_frame_collected):
1887 Likewise.
1888
393702cd
TT
18892017-09-09 Tom Tromey <tom@tromey.com>
1890
1891 * disasm.c (gdb_pretty_print_disassembler::pretty_print_insn): Use
1892 ui_out_emit_tuple.
1893
76f9c9cf
TT
18942017-09-09 Tom Tromey <tom@tromey.com>
1895
1896 * target.c (flash_erase_command): Use ui_out_emit_tuple.
1897 * stack.c (print_frame): Use ui_out_emit_tuple.
1898 * spu-tdep.c (info_spu_event_command): Use ui_out_emit_tuple.
1899 (info_spu_mailbox_command, info_spu_dma_command)
1900 (info_spu_proxydma_command): Likewise.
1901 * mi/mi-main.c (mi_cmd_trace_frame_collected): Use
1902 ui_out_emit_tuple, gdb::byte_vector, bin2hex.
1903 * mi/mi-cmd-file.c (mi_cmd_file_list_shared_libraries): Use
1904 ui_out_emit_tuple.
1905 * breakpoint.c (print_it_watchpoint): Use ui_out_emit_tuple.
1906
dc9fe180
TT
19072017-09-09 Tom Tromey <tom@tromey.com>
1908
1909 * ui-out.h (make_cleanup_ui_out_table_begin_end): Remove.
1910 (class ui_out_emit_table): Update comment.
1911 * ui-out.c (do_cleanup_table_end)
1912 (make_cleanup_ui_out_table_begin_end): Remove.
1913 * spu-tdep.c (info_spu_mailbox_list): Use ui_out_emit_table.
1914 (info_spu_dma_cmdlist): Likewise.
1915 * probe.c (info_probes_for_ops): Use ui_out_emit_table.
1916 * darwin-nat-info.c (darwin_debug_regions_recurse): Use
1917 ui_out_emit_table.
1918
f8cc3da6
TT
19192017-09-09 Tom Tromey <tom@tromey.com>
1920
1921 * thread.c (print_thread_info_1): Use ui_out_emit_table,
1922 ui_out_emit_list, gdb::optional.
1923
481695ed
JB
19242017-09-09 John Baldwin <jhb@FreeBSD.org>
1925
1926 * aarch64-linux-nat.c: Remove _initialize_aarch64_linux_nat
1927 prototype.
1928 * aarch64-linux-tdep.c: Remove _initialize_aarch64_linux_tdep
1929 prototype.
1930 * aarch64-newlib-tdep.c: Remove _initialize_aarch64_newlib_tdep
1931 prototype.
1932 * aarch64-tdep.c: Remove _initialize_aarch64_tdep prototype.
1933 * ada-exp.y: Remove _initialize_ada_exp prototype.
1934 * ada-lang.c: Remove _initialize_ada_language prototype.
1935 * ada-tasks.c: Remove _initialize_tasks prototype.
1936 * addrmap.c: Remove _initialize_addrmap prototype.
1937 * agent.c: Remove _initialize_agent prototype.
1938 * aix-thread.c: Remove _initialize_aix_thread prototype.
1939 * alpha-bsd-nat.c: Remove _initialize_alphabsd_nat prototype.
1940 * alpha-linux-nat.c: Remove _initialize_alpha_linux_nat prototype.
1941 * alpha-linux-tdep.c: Remove _initialize_alpha_linux_tdep
1942 prototype.
1943 * alpha-nbsd-tdep.c: Remove _initialize_alphanbsd_tdep prototype.
1944 * alpha-obsd-tdep.c: Remove _initialize_alphaobsd_tdep prototype.
1945 * alpha-tdep.c: Remove _initialize_alpha_tdep prototype.
1946 * amd64-darwin-tdep.c: Remove _initialize_amd64_darwin_tdep
1947 prototype.
1948 * amd64-dicos-tdep.c: Remove _initialize_amd64_dicos_tdep
1949 prototype.
1950 * amd64-fbsd-nat.c: Remove _initialize_amd64fbsd_nat prototype.
1951 * amd64-fbsd-tdep.c: Remove _initialize_amd64fbsd_tdep prototype.
1952 * amd64-linux-nat.c: Remove _initialize_amd64_linux_nat prototype.
1953 * amd64-linux-tdep.c: Remove _initialize_amd64_linux_tdep
1954 prototype.
1955 * amd64-nbsd-nat.c: Remove _initialize_amd64nbsd_nat prototype.
1956 * amd64-nbsd-tdep.c: Remove _initialize_amd64nbsd_tdep prototype.
1957 * amd64-obsd-nat.c: Remove _initialize_amd64obsd_nat prototype.
1958 * amd64-obsd-tdep.c: Remove _initialize_amd64obsd_tdep prototype.
1959 * amd64-sol2-tdep.c: Remove _initialize_amd64_sol2_tdep prototype.
1960 * amd64-tdep.c: Remove _initialize_amd64_tdep prototype.
1961 * amd64-windows-nat.c: Remove _initialize_amd64_windows_nat
1962 prototype.
1963 * amd64-windows-tdep.c: Remove _initialize_amd64_windows_tdep
1964 prototype.
1965 * annotate.c: Remove _initialize_annotate prototype.
1966 * arc-newlib-tdep.c: Remove _initialize_arc_newlib_tdep prototype.
1967 * arc-tdep.c: Remove _initialize_arc_tdep prototype.
1968 * arch-utils.c: Remove _initialize_gdbarch_utils prototype.
1969 * arm-linux-nat.c: Remove _initialize_arm_linux_nat prototype.
1970 * arm-linux-tdep.c: Remove _initialize_arm_linux_tdep prototype.
1971 * arm-nbsd-tdep.c: Remove _initialize_arm_netbsd_tdep prototype.
1972 * arm-obsd-tdep.c: Remove _initialize_armobsd_tdep prototype.
1973 * arm-symbian-tdep.c: Remove _initialize_arm_symbian_tdep
1974 prototype.
1975 * arm-tdep.c: Remove _initialize_arm_tdep prototype.
1976 * arm-wince-tdep.c: Remove _initialize_arm_wince_tdep prototype.
1977 * auto-load.c: Remove _initialize_auto_load prototype.
1978 * auxv.c: Remove _initialize_auxv prototype.
1979 * avr-tdep.c: Remove _initialize_avr_tdep prototype.
1980 * ax-gdb.c: Remove _initialize_ax_gdb prototype.
1981 * bfin-linux-tdep.c: Remove _initialize_bfin_linux_tdep prototype.
1982 * bfin-tdep.c: Remove _initialize_bfin_tdep prototype.
1983 * break-catch-sig.c: Remove _initialize_break_catch_sig prototype.
1984 * break-catch-syscall.c: Remove _initialize_break_catch_syscall
1985 prototype.
1986 * break-catch-throw.c: Remove _initialize_break_catch_throw
1987 prototype.
1988 * breakpoint.c: Remove _initialize_breakpoint prototype.
1989 * bsd-uthread.c: Remove _initialize_bsd_uthread prototype.
1990 * btrace.c: Remove _initialize_btrace prototype.
1991 * charset.c: Remove _initialize_charset prototype.
1992 * cli/cli-cmds.c: Remove _initialize_cli_cmds prototype.
1993 * cli/cli-dump.c: Remove _initialize_cli_dump prototype.
1994 * cli/cli-interp.c: Remove _initialize_cli_interp prototype.
1995 * cli/cli-logging.c: Remove _initialize_cli_logging prototype.
1996 * cli/cli-script.c: Remove _initialize_cli_script prototype.
1997 * coff-pe-read.c: Remove _initialize_coff_pe_read prototype.
1998 * coffread.c: Remove _initialize_coffread prototype.
1999 * compile/compile.c: Remove _initialize_compile prototype.
2000 * complaints.c: Remove _initialize_complaints prototype.
2001 * completer.c: Remove _initialize_completer prototype.
2002 * copying.awk: Remove _initialize_copying prototype.
2003 * copying.c: Regenerate.
2004 * core-regset.c: Remove _initialize_core_regset prototype.
2005 * corefile.c: Remove _initialize_core prototype.
2006 * corelow.c: Remove _initialize_corelow prototype.
2007 * cp-abi.c: Remove _initialize_cp_abi prototype.
2008 * cp-namespace.c: Remove _initialize_cp_namespace prototype.
2009 * cp-support.c: Remove _initialize_cp_support prototype.
2010 * cp-valprint.c: Remove _initialize_cp_valprint prototype.
2011 * cris-linux-tdep.c: Remove _initialize_cris_linux_tdep prototype.
2012 * cris-tdep.c: Remove _initialize_cris_tdep prototype.
2013 * ctf.c: Remove _initialize_ctf prototype.
2014 * d-lang.c: Remove _initialize_d_language prototype.
2015 * darwin-nat-info.c: Remove _initialize_darwin_info_commands
2016 prototype.
2017 * darwin-nat.c: Remove _initialize_darwin_inferior prototype.
2018 * dbxread.c: Remove _initialize_dbxread prototype.
2019 * dcache.c: Remove _initialize_dcache prototype.
2020 * demangle.c: Remove _initialize_demangler prototype.
2021 * disasm-selftests.c: Remove _initialize_disasm_selftests
2022 prototype.
2023 * disasm.c: Remove _initialize_disasm prototype.
2024 * dtrace-probe.c: Remove _initialize_dtrace_probe prototype.
2025 * dummy-frame.c: Remove _initialize_dummy_frame prototype.
2026 * dwarf2-frame-tailcall.c: Remove _initialize_tailcall_frame
2027 prototype.
2028 * dwarf2-frame.c: Remove _initialize_dwarf2_frame prototype.
2029 * dwarf2expr.c: Remove _initialize_dwarf2expr prototype.
2030 * dwarf2loc.c: Remove _initialize_dwarf2loc prototype.
2031 * dwarf2read.c: Remove _initialize_dwarf2_read prototype.
2032 * elfread.c: Remove _initialize_elfread prototype.
2033 * exec.c: Remove _initialize_exec prototype.
2034 * extension.c: Remove _initialize_extension prototype.
2035 * f-lang.c: Remove _initialize_f_language prototype.
2036 * f-valprint.c: Remove _initialize_f_valprint prototype.
2037 * fbsd-nat.c: Remove _initialize_fbsd_nat prototype.
2038 * fbsd-tdep.c: Remove _initialize_fbsd_tdep prototype.
2039 * filesystem.c: Remove _initialize_filesystem prototype.
2040 * findcmd.c: Remove _initialize_mem_search prototype.
2041 * fork-child.c: Remove _initialize_fork_child prototype.
2042 * frame-base.c: Remove _initialize_frame_base prototype.
2043 * frame-unwind.c: Remove _initialize_frame_unwind prototype.
2044 * frame.c: Remove _initialize_frame prototype.
2045 * frv-linux-tdep.c: Remove _initialize_frv_linux_tdep prototype.
2046 * frv-tdep.c: Remove _initialize_frv_tdep prototype.
2047 * ft32-tdep.c: Remove _initialize_ft32_tdep prototype.
2048 * gcore.c: Remove _initialize_gcore prototype.
2049 * gdb_bfd.c: Remove _initialize_gdb_bfd prototype.
2050 * gdbarch.c: Regenerate.
2051 * gdbarch.sh: Remove _initialize_gdbarch prototype.
2052 * gdbtypes.c: Remove _initialize_gdbtypes prototype.
2053 * gnu-nat.c: Remove _initialize_gnu_nat prototype.
2054 * gnu-v2-abi.c: Remove _initialize_gnu_v2_abi prototype.
2055 * gnu-v3-abi.c: Remove _initialize_gnu_v3_abi prototype.
2056 * go-lang.c: Remove _initialize_go_language prototype.
2057 * go32-nat.c: Remove _initialize_go32_nat prototype.
2058 * guile/guile.c: Remove _initialize_guile prototype.
2059 * h8300-tdep.c: Remove _initialize_h8300_tdep prototype.
2060 * hppa-linux-nat.c: Remove _initialize_hppa_linux_nat prototype.
2061 * hppa-linux-tdep.c: Remove _initialize_hppa_linux_tdep prototype.
2062 * hppa-nbsd-nat.c: Remove _initialize_hppanbsd_nat prototype.
2063 * hppa-nbsd-tdep.c: Remove _initialize_hppanbsd_tdep prototype.
2064 * hppa-obsd-nat.c: Remove _initialize_hppaobsd_nat prototype.
2065 * hppa-obsd-tdep.c: Remove _initialize_hppaobsd_tdep prototype.
2066 * hppa-tdep.c: Remove _initialize_hppa_tdep prototype.
2067 * i386-bsd-nat.c: Remove _initialize_i386bsd_nat prototype.
2068 * i386-cygwin-tdep.c: Remove _initialize_i386_cygwin_tdep
2069 prototype.
2070 * i386-darwin-tdep.c: Remove _initialize_i386_darwin_tdep
2071 prototype.
2072 * i386-dicos-tdep.c: Remove _initialize_i386_dicos_tdep prototype.
2073 * i386-fbsd-nat.c: Remove _initialize_i386fbsd_nat prototype.
2074 * i386-fbsd-tdep.c: Remove _initialize_i386fbsd_tdep prototype.
2075 * i386-gnu-nat.c: Remove _initialize_i386gnu_nat prototype.
2076 * i386-gnu-tdep.c: Remove _initialize_i386gnu_tdep prototype.
2077 * i386-linux-nat.c: Remove _initialize_i386_linux_nat prototype.
2078 * i386-linux-tdep.c: Remove _initialize_i386_linux_tdep prototype.
2079 * i386-nbsd-nat.c: Remove _initialize_i386nbsd_nat prototype.
2080 * i386-nbsd-tdep.c: Remove _initialize_i386nbsd_tdep prototype.
2081 * i386-nto-tdep.c: Remove _initialize_i386nto_tdep prototype.
2082 * i386-obsd-nat.c: Remove _initialize_i386obsd_nat prototype.
2083 * i386-obsd-tdep.c: Remove _initialize_i386obsd_tdep prototype.
2084 * i386-sol2-nat.c: Remove _initialize_amd64_sol2_nat prototype.
2085 * i386-sol2-tdep.c: Remove _initialize_amd64_sol2_tdep prototype.
2086 * i386-tdep.c: Remove _initialize_i386_tdep prototype.
2087 * i386-windows-nat.c: Remove _initialize_i386_windows_nat
2088 prototype.
2089 * ia64-libunwind-tdep.c: Remove _initialize_libunwind_frame
2090 prototype.
2091 * ia64-linux-nat.c: Remove _initialize_ia64_linux_nat prototype.
2092 * ia64-linux-tdep.c: Remove _initialize_ia64_linux_tdep prototype.
2093 * ia64-tdep.c: Remove _initialize_ia64_tdep prototype.
2094 * ia64-vms-tdep.c: Remove _initialize_ia64_vms_tdep prototype.
2095 * infcall.c: Remove _initialize_infcall prototype.
2096 * infcmd.c: Remove _initialize_infcmd prototype.
2097 * inferior.c: Remove _initialize_inferiors prototype.
2098 * inflow.c: Remove _initialize_inflow prototype.
2099 * infrun.c: Remove _initialize_infrun prototype.
2100 * interps.c: Remove _initialize_interpreter prototype.
2101 * iq2000-tdep.c: Remove _initialize_iq2000_tdep prototype.
2102 * jit.c: Remove _initialize_jit prototype.
2103 * language.c: Remove _initialize_language prototype.
2104 * linux-fork.c: Remove _initialize_linux_fork prototype.
2105 * linux-nat.c: Remove _initialize_linux_nat prototype.
2106 * linux-tdep.c: Remove _initialize_linux_tdep prototype.
2107 * linux-thread-db.c: Remove _initialize_thread_db prototype.
2108 * lm32-tdep.c: Remove _initialize_lm32_tdep prototype.
2109 * m2-lang.c: Remove _initialize_m2_language prototype.
2110 * m32c-tdep.c: Remove _initialize_m32c_tdep prototype.
2111 * m32r-linux-nat.c: Remove _initialize_m32r_linux_nat prototype.
2112 * m32r-linux-tdep.c: Remove _initialize_m32r_linux_tdep prototype.
2113 * m32r-tdep.c: Remove _initialize_m32r_tdep prototype.
2114 * m68hc11-tdep.c: Remove _initialize_m68hc11_tdep prototype.
2115 * m68k-bsd-nat.c: Remove _initialize_m68kbsd_nat prototype.
2116 * m68k-bsd-tdep.c: Remove _initialize_m68kbsd_tdep prototype.
2117 * m68k-linux-nat.c: Remove _initialize_m68k_linux_tdep prototype.
2118 * m68k-linux-tdep.c: Remove _initialize_m68k_linux_tdep prototype.
2119 * m68k-tdep.c: Remove _initialize_m68k_tdep prototype.
2120 * m88k-bsd-nat.c: Remove _initialize_m68kbsd_nat prototype.
2121 * m88k-tdep.c: Remove _initialize_m68kbsd_tdep prototype.
2122 * machoread.c: Remove _initialize_machoread prototype.
2123 * macrocmd.c: Remove _initialize_macrocmd prototype.
2124 * macroscope.c: Remove _initialize_macroscope prototype.
2125 * maint.c: Remove _initialize_maint_cmds prototype.
2126 * mdebugread.c: Remove _initialize_mdebugread prototype.
2127 * memattr.c: Remove _initialize_mem prototype.
2128 * mep-tdep.c: Remove _initialize_mep_tdep prototype.
2129 * mi/mi-cmd-env.c: Remove _initialize_mi_cmd_env prototype.
2130 * mi/mi-cmds.c: Remove _initialize_mi_cmds prototype.
2131 * mi/mi-interp.c: Remove _initialize_mi_interp prototype.
2132 * mi/mi-main.c: Remove _initialize_mi_main prototype.
2133 * microblaze-linux-tdep.c: Remove
2134 _initialize_microblaze_linux_tdep prototype.
2135 * microblaze-tdep.c: Remove _initialize_microblaze_tdep prototype.
2136 * mips-fbsd-nat.c: Remove _initialize_mips_fbsd_nat prototype.
2137 * mips-fbsd-tdep.c: Remove _initialize_mips_fbsd_tdep prototype.
2138 * mips-linux-nat.c: Remove _initialize_mips_linux_nat prototype.
2139 * mips-linux-tdep.c: Remove _initialize_mips_linux_tdep prototype.
2140 * mips-nbsd-nat.c: Remove _initialize_mipsnbsd_nat prototype.
2141 * mips-nbsd-tdep.c: Remove _initialize_mipsnbsd_tdep prototype.
2142 * mips-sde-tdep.c: Remove _initialize_mips_sde_tdep prototype.
2143 * mips-tdep.c: Remove _initialize_mips_tdep prototype.
2144 * mips64-obsd-nat.c: Remove _initialize_mips64obsd_nat prototype.
2145 * mips64-obsd-tdep.c: Remove _initialize_mips64obsd_tdep
2146 prototype.
2147 * mipsread.c: Remove _initialize_mipsread prototype.
2148 * mn10300-linux-tdep.c: Remove _initialize_mn10300_linux_tdep
2149 prototype.
2150 * mn10300-tdep.c: Remove _initialize_mn10300_tdep prototype.
2151 * moxie-tdep.c: Remove _initialize_moxie_tdep prototype.
2152 * msp430-tdep.c: Remove _initialize_msp430_tdep prototype.
2153 * mt-tdep.c: Remove _initialize_mt_tdep prototype.
2154 * nds32-tdep.c: Remove _initialize_nds32_tdep prototype.
2155 * nios2-linux-tdep.c: Remove _initialize_nios2_linux_tdep
2156 prototype.
2157 * nios2-tdep.c: Remove _initialize_nios2_tdep prototype.
2158 * nto-procfs.c: Remove _initialize_procfs prototype.
2159 * nto-tdep.c: Remove _initialize_nto_tdep prototype.
2160 * objc-lang.c: Remove _initialize_objc_language prototype.
2161 * objfiles.c: Remove _initialize_objfiles prototype.
2162 * observer.c: Remove observer_test_first_notification_function,
2163 observer_test_second_notification_function,
2164 observer_test_third_notification_function, and
2165 _initialize_observer prototypes.
2166 * opencl-lang.c: Remove _initialize_opencl_language prototypes.
2167 * osabi.c: Remove _initialize_gdb_osabi prototype.
2168 * osdata.c: Remove _initialize_osdata prototype.
2169 * p-valprint.c: Remove _initialize_pascal_valprint prototype.
2170 * parse.c: Remove _initialize_parse prototype.
2171 * ppc-fbsd-nat.c: Remove _initialize_ppcfbsd_nat prototype.
2172 * ppc-fbsd-tdep.c: Remove _initialize_ppcfbsd_tdep prototype.
2173 * ppc-linux-nat.c: Remove _initialize_ppc_linux_nat prototype.
2174 * ppc-linux-tdep.c: Remove _initialize_ppc_linux_tdep prototype.
2175 * ppc-nbsd-nat.c: Remove _initialize_ppcnbsd_nat prototype.
2176 * ppc-nbsd-tdep.c: Remove _initialize_ppcnbsd_tdep prototype.
2177 * ppc-obsd-nat.c: Remove _initialize_ppcobsd_nat prototype.
2178 * ppc-obsd-tdep.c: Remove _initialize_ppcobsd_tdep prototype.
2179 * printcmd.c: Remove _initialize_printcmd prototype.
2180 * probe.c: Remove _initialize_probe prototype.
2181 * proc-api.c: Remove _initialize_proc_api prototype.
2182 * proc-events.c: Remove _initialize_proc_events prototype.
2183 * proc-service.c: Remove _initialize_proc_service prototype.
2184 * procfs.c: Remove _initialize_procfs prototype.
2185 * psymtab.c: Remove _initialize_psymtab prototype.
2186 * python/python.c: Remove _initialize_python prototype.
2187 * ravenscar-thread.c: Remove _initialize_ravenscar prototype.
2188 * record-btrace.c: Remove _initialize_record_btrace prototype.
2189 * record-full.c: Remove _initialize_record_full prototype.
2190 * record.c: Remove _initialize_record prototype.
2191 * regcache.c: Remove _initialize_regcache prototype.
2192 * reggroups.c: Remove _initialize_reggroup prototype.
2193 * remote-notif.c: Remove _initialize_notif prototype.
2194 * remote-sim.c: Remove _initialize_remote_sim prototype.
2195 * remote.c: Remove _initialize_remote prototype.
2196 * reverse.c: Remove _initialize_reverse prototype.
2197 * rl78-tdep.c: Remove _initialize_rl78_tdep prototype.
2198 * rs6000-aix-tdep.c: Remove _initialize_rs6000_aix_tdep prototype.
2199 * rs6000-lynx178-tdep.c: Remove _initialize_rs6000_lynx178_tdep
2200 prototype.
2201 * rs6000-nat.c: Remove _initialize_rs6000_nat prototype.
2202 * rs6000-tdep.c: Remove _initialize_rs6000_tdep prototype.
2203 * rust-exp.y: Remove _initialize_rust_exp prototype.
2204 * rx-tdep.c: Remove _initialize_rx_tdep prototype.
2205 * s390-linux-nat.c: Remove _initialize_s390_nat prototype.
2206 * s390-linux-tdep.c: Remove _initialize_s390_tdep prototype.
2207 * score-tdep.c: Remove _initialize_score_tdep prototype.
2208 * selftest-arch.c: Remove _initialize_selftests_foreach_arch
2209 prototype.
2210 * ser-go32.c: Remove _initialize_ser_dos prototype.
2211 * ser-mingw.c: Remove _initialize_ser_windows prototype.
2212 * ser-pipe.c: Remove _initialize_ser_pipe prototype.
2213 * ser-tcp.c: Remove _initialize_ser_tcp prototype.
2214 * ser-unix.c: Remove _initialize_ser_hardwire prototype.
2215 * serial.c: Remove _initialize_serial prototype.
2216 * sh-linux-tdep.c: Remove _initialize_sh_linux_tdep prototype.
2217 * sh-nbsd-nat.c: Remove _initialize_shnbsd_nat prototype.
2218 * sh-nbsd-tdep.c: Remove _initialize_shnbsd_tdep prototype.
2219 * sh-tdep.c: Remove _initialize_sh_tdep prototype.
2220 * skip.c: Remove _initialize_step_skip prototype.
2221 * sol-thread.c: Remove _initialize_sol_thread prototype.
2222 * solib-aix.c: Remove _initialize_solib_aix prototype.
2223 * solib-darwin.c: Remove _initialize_darwin_solib prototype.
2224 * solib-dsbt.c: Remove _initialize_dsbt_solib prototype.
2225 * solib-frv.c: Remove _initialize_frv_solib prototype.
2226 * solib-spu.c: Remove _initialize_spu_solib prototype.
2227 * solib-svr4.c: Remove _initialize_svr4_solib prototype.
2228 * solib-target.c: Remove _initialize_solib_target prototype.
2229 * solib.c: Remove _initialize_solib prototype.
2230 * source.c: Remove _initialize_source prototype.
2231 * sparc-linux-nat.c: Remove _initialize_sparc_linux_nat prototype.
2232 * sparc-linux-tdep.c: Remove _initialize_sparc_linux_tdep
2233 prototype.
2234 * sparc-nat.c: Remove _initialize_sparc_nat prototype.
2235 * sparc-nbsd-nat.c: Remove _initialize_sparcnbsd_nat prototype.
2236 * sparc-nbsd-tdep.c: Remove _initialize_sparcnbsd_tdep prototype.
2237 * sparc-obsd-tdep.c: Remove _initialize_sparc32obsd_tdep
2238 prototype.
2239 * sparc-sol2-nat.c: Remove _initialize_sparc_sol2_nat prototype.
2240 * sparc-sol2-tdep.c: Remove _initialize_sparc_sol2_tdep prototype.
2241 * sparc-tdep.c: Remove _initialize_sparc_tdep prototype.
2242 * sparc64-fbsd-nat.c: Remove _initialize_sparc64fbsd_nat
2243 prototype.
2244 * sparc64-fbsd-tdep.c: Remove _initialize_sparc64fbsd_tdep
2245 prototype.
2246 * sparc64-linux-nat.c: Remove _initialize_sparc64_linux_nat
2247 prototype.
2248 * sparc64-linux-tdep.c: Remove _initialize_sparc64_linux_tdep
2249 prototype.
2250 * sparc64-nat.c: Remove _initialize_sparc64_nat prototype.
2251 * sparc64-nbsd-nat.c: Remove _initialize_sparc64nbsd_nat
2252 prototype.
2253 * sparc64-nbsd-tdep.c: Remove _initialize_sparc64nbsd_tdep
2254 prototype.
2255 * sparc64-obsd-nat.c: Remove _initialize_sparc64obsd_nat
2256 prototype.
2257 * sparc64-obsd-tdep.c: Remove _initialize_sparc64obsd_tdep
2258 prototype.
2259 * sparc64-sol2-tdep.c: Remove _initialize_sparc64_sol2_tdep
2260 prototype.
2261 * spu-linux-nat.c: Remove _initialize_spu_nat prototype.
2262 * spu-multiarch.c: Remove _initialize_spu_multiarch prototype.
2263 * spu-tdep.c: Remove _initialize_spu_tdep prototype.
2264 * stabsread.c: Remove _initialize_stabsread prototype.
2265 * stack.c: Remove _initialize_stack prototype.
2266 * stap-probe.c: Remove _initialize_stap_probe prototype.
2267 * std-regs.c: Remove _initialize_frame_reg prototype.
2268 * symfile-debug.c: Remove _initialize_symfile_debug prototype.
2269 * symfile-mem.c: Remove _initialize_symfile_mem prototype.
2270 * symfile.c: Remove _initialize_symfile prototype.
2271 * symmisc.c: Remove _initialize_symmisc prototype.
2272 * symtab.c: Remove _initialize_symtab prototype.
2273 * target-dcache.c: Remove _initialize_target_dcache prototype.
2274 * target-descriptions.c: Remove _initialize_target_descriptions
2275 prototype.
2276 * thread.c: Remove _initialize_thread prototype.
2277 * tic6x-linux-tdep.c: Remove _initialize_tic6x_linux_tdep
2278 prototype.
2279 * tic6x-tdep.c: Remove _initialize_tic6x_tdep prototype.
2280 * tilegx-linux-nat.c: Remove _initialize_tile_linux_nat prototype.
2281 * tilegx-linux-tdep.c: Remove _initialize_tilegx_linux_tdep
2282 prototype.
2283 * tilegx-tdep.c: Remove _initialize_tilegx_tdep prototype.
2284 * tracefile-tfile.c: Remove _initialize_tracefile_tfile prototype.
2285 * tracefile.c: Remove _initialize_tracefile prototype.
2286 * tracepoint.c: Remove _initialize_tracepoint prototype.
2287 * tui/tui-hooks.c: Remove _initialize_tui_hooks prototype.
2288 * tui/tui-interp.c: Remove _initialize_tui_interp prototype.
2289 * tui/tui-layout.c: Remove _initialize_tui_layout prototype.
2290 * tui/tui-regs.c: Remove _initialize_tui_regs prototype.
2291 * tui/tui-stack.c: Remove _initialize_tui_stack prototype.
2292 * tui/tui-win.c: Remove _initialize_tui_win prototype.
2293 * tui/tui.c: Remove _initialize_tui prototype.
2294 * typeprint.c: Remove _initialize_typeprint prototype.
2295 * user-regs.c: Remove _initialize_user_regs prototype.
2296 * utils.c: Remove _initialize_utils prototype.
2297 * v850-tdep.c: Remove _initialize_v850_tdep prototype.
2298 * valarith.c: Remove _initialize_valarith prototype.
2299 * valops.c: Remove _initialize_valops prototype.
2300 * valprint.c: Remove _initialize_valprint prototype.
2301 * value.c: Remove _initialize_values prototype.
2302 * varobj.c: Remove _initialize_varobj prototype.
2303 * vax-bsd-nat.c: Remove _initialize_vaxbsd_nat prototype.
2304 * vax-nbsd-tdep.c: Remove _initialize_vaxnbsd_tdep prototype.
2305 * vax-tdep.c: Remove _initialize_vax_tdep prototype.
2306 * windows-nat.c: Remove _initialize_windows_nat,
2307 _initialize_check_for_gdb_ini, and _initialize_loadable
2308 prototypes.
2309 * windows-tdep.c: Remove _initialize_windows_tdep prototype.
2310 * xcoffread.c: Remove _initialize_xcoffread prototype.
2311 * xml-support.c: Remove _initialize_xml_support prototype.
2312 * xstormy16-tdep.c: Remove _initialize_xstormy16_tdep prototype.
2313 * xtensa-linux-nat.c: Remove _initialize_xtensa_linux_nat
2314 prototype.
2315 * xtensa-linux-tdep.c: Remove _initialize_xtensa_linux_tdep
2316 prototype.
2317 * xtensa-tdep.c: Remove _initialize_xtensa_tdep prototype.
2318
a611b5cb
KS
23192017-09-08 Keith Seitz <keiths@redhat.com>
2320
2321 * dwarf2read.c (struct field_info) <fnfields>: Remove unused
2322 field.
2323
469412dd
CW
23242017-09-08 Christoph Weinmann <christoph.t.weinmann@intel.com>
2325
2326 * f-valprint.c (f_val_print): Remove check for one byte
2327 sized integers. Remove printing of character type.
2328
a5ad232b
FP
23292017-09-08 Frank Penczek <frank.penczek@intel.com>
2330 Christoph Weinmann <christoph.t.weinmann@intel.com>
2331 Bernhard Heckel <bernhard.heckel@intel.com>
2332
2333 * f-typeprint.c (f_type_print_base): Use fprintfi_filtered
2334 to maintain proper indentation when printing pointers/refs.
2335
e5014227
JB
23362017-09-07 Joel Brobecker <brobecker@adacore.com>
2337
2338 GDB 8.0.1 released.
2339
63c99141
JB
23402017-09-07 Joel Brobecker <brobecker@adacore.com>
2341
2342 * NEWS (Changes in GDB 7.11): Remove entry for QStartupWithShell.
2343
69c1e056
TT
23442017-09-05 Tom Tromey <tom@tromey.com>
2345
2346 * parse.c (funcall_chain): Now a std::vector.
2347 (start_arglist, end_arglist): Simplify.
2348 (free_funcalls): Remove.
2349 (parse_exp_in_context_1): Remove cleanup.
2350
fef704bf
TT
23512017-09-05 Tom Tromey <tom@tromey.com>
2352
2353 * go-exp.y (go_parse): Don't create a cleanup.
2354
5613c585
TT
23552017-09-05 Tom Tromey <tom@tromey.com>
2356
2357 * d-exp.y (PrimaryExpression): Use std::string.
2358 (d_parse): Don't create a cleanup.
2359
eae49211
TT
23602017-09-05 Tom Tromey <tom@tromey.com>
2361
2362 * utils.c (do_clear_parser_state): Remove.
2363 (make_cleanup_clear_parser_state): Remove.
2364 * p-exp.y (pascal_parse): Use scoped_restore.
2365 * m2-exp.y (m2_parse): Use scoped_restore.
2366 * f-exp.y (f_parse): Use scoped_restore.
2367 * d-exp.y (d_parse): Use scoped_restore.
2368 * c-exp.y (c_parse): Use scoped_restore.
2369 * ada-exp.y (ada_parse): Use scoped_restore.
2370 * utils.h (make_cleanup_clear_parser_state): Remove.
2371
73b9be8b
KS
23722017-09-06 Keith Seitz <keiths@redhat.com>
2373
2374 * dwarf2read.c (dw2_linkage_name_attr): New function.
2375 (dw2_linkage_name): New function.
2376 (dwarf2_compute_name, dwarf2_physname, read_call_site_scope)
2377 (guess_full_die_structure_name, dwarf2_name): Use dw2_linkage_name.
2378 (anonymous_struct_prefix, dwarf2_name): Use dw2_linkage_name_attr.
2379
a102602b
KR
23802017-09-06 Kamil Rytarowski <n54@gmx.com>
2381
2382 * config/djgpp/djconfig.sh: Correct shell portability issue.
2383
28ad437d
KR
23842017-09-06 Kamil Rytarowski <n54@gmx.com>
2385
2386 * configure.nat: Define HAVE_NATIVE_GCORE_HOST on NetBSD.
2387
351787dd
JB
23882017-09-06 John Baldwin <jhb@FreeBSD.org>
2389
2390 * Makefile.in (ALLDEPFILES): Add mips-fbsd-nat.c.
2391 * NEWS: Mention new FreeBSD/mips native configuration.
2392 * configure.host: Add aarch64*-*-freebsd*.
2393 * configure.nat: Likewise.
2394 * aarch64-fbsd-nat.c: New file.
2395
c0f84956
JB
23962017-09-06 John Baldwin <jhb@FreeBSD.org>
2397
2398 * Makefile.in (ALL_64_TARGET_OBS): Add aarch64-fbsd-tdep.o.
2399 (ALLDEPFILES): Add aarch64-fbsd-tdep.c.
2400 * NEWS: Mention new FreeBSD/aarch64 target.
2401 * configure.tgt: Add aarch64*-*-freebsd*.
2402 * aarch64-fbsd-tdep.c: New file.
2403 * aarch64-fbsd-tdep.h: New file.
2404
7610297a
KR
24052017-09-06 Kamil Rytarowski <n54@gmx.com>
2406
2407 * MAINTAINERS (Write After Approval): Add Kamil Rytarowski.
2408
fbd1b771
JK
24092017-09-06 Jan Kratochvil <jan.kratochvil@redhat.com>
2410
2411 * parse.c (find_minsym_type_and_address): Don't relocate addresses
2412 of TLS symbols.
2413
5ca79eae
PW
24142017-09-05 Philippe Waroquiers <philippe.waroquiers@skynet.be>
2415
2416 * objfiles.c (get_objfile_bfd_data): Remove useless obstack_init
2417 call.
2418
bf93d7ba
SM
24192017-09-05 Simon Marchi <simon.marchi@ericsson.com>
2420
2421 * infrun.c (follow_exec): Call add_thread after
2422 target_find_description.
2423
1bb7c059
SM
24242017-09-05 Simon Marchi <simon.marchi@ericsson.com>
2425
2426 * infrun.c (handle_inferior_event_1): When exec'ing, read
2427 stop_pc after follow_exec.
2428
fc809827
SM
24292017-09-05 Simon Marchi <simon.marchi@ericsson.com>
2430
2431 * remote.c (process_g_packet): Update error message.
2432
d2fcdd85
YQ
24332017-09-05 Yao Qi <yao.qi@linaro.org>
2434
2435 * configure.tgt (gdb_target_obs): Add i386.o for x86_64-*
2436 targets.
2437
e69570ee
PA
24382017-09-05 Pedro Alves <palves@redhat.com>
2439
2440 * eval.c (eval_call, evaluate_funcall): New functions, factored
2441 out from ...
2442 (evaluate_subexp_standard): ... this.
2443
22916b07
YQ
24442017-09-05 Yao Qi <yao.qi@linaro.org>
2445
2446 * amd64-tdep.c (amd64_target_description): Create target
2447 descriptions.
2448 (_initialize_amd64_tdep): Don't call functions
2449 initialize_tdesc_amd64_*. Add self tests.
2450 * arch/amd64.c (amd64_create_target_description): Add parameter
2451 is_linux. Call set_tdesc_osabi if is_linux is true.
2452 * arch/amd64.h (amd64_create_target_description): Update the
2453 declaration.
2454 * arch/i386.c (i386_create_target_description): Add parameter
2455 is_linux. Call set_tdesc_osabi if is_linux is true.
2456 * arch/i386.h (i386_create_target_description): Update
2457 declaration.
2458 * configure.tgt: Add i386.o to gdb_target_obs.
2459 * features/Makefile (XMLTOC): Remove i386/*.xml.
2460 * features/i386/amd64-avx-avx512.c: Remove.
2461 * features/i386/amd64-avx-mpx-avx512-pku.c: Remove.
2462 * features/i386/amd64-avx-mpx.c: Remove.
2463 * features/i386/amd64-avx.c: Remove.
2464 * features/i386/amd64-mpx.c: Remove.
2465 * features/i386/amd64.c: Remove.
2466 * features/i386/i386-avx-avx512.c: Remove.
2467 * features/i386/i386-avx-mpx-avx512-pku.c: Remove.
2468 * features/i386/i386-avx-mpx.c: Remove.
2469 * features/i386/i386-avx.c: Remove.
2470 * features/i386/i386-mmx.c: Remove.
2471 * features/i386/i386-mpx.c: Remove.
2472 * features/i386/i386.c: Remove.
2473 * i386-tdep.c: Don't include features/i386/i386*.c., include
2474 target-descriptions.h and arch/i386.h.
2475 (i386_target_description): Create target descriptions.
2476 (i386_gdbarch_init): Don't call initialize_tdesc_i386_*
2477 functions. Do self tests.
2478
0854b7b1
YQ
24792017-09-05 Yao Qi <yao.qi@linaro.org>
2480
2481 * features/Makefile (XMLTOC): Remove i386/amd64XXX-linux.xml.
2482 * features/i386/amd64-avx-avx512-linux.c: Removed.
2483 * features/i386/amd64-avx-linux.c: Removed.
2484 * features/i386/amd64-avx-mpx-avx512-pku-linux.c: Removed.
2485 * features/i386/amd64-avx-mpx-linux.c: Removed.
2486 * features/i386/amd64-linux.c: Removed.
2487 * features/i386/amd64-mpx-linux.c: Removed.
2488 * features/i386/x32-avx-avx512-linux.c: Removed.
2489 * features/i386/x32-avx-linux.c: Removed.
2490 * features/i386/x32-linux.c: Removed.
2491
b4570e4b
YQ
24922017-09-05 Yao Qi <yao.qi@linaro.org>
2493
2494 * amd64-linux-tdep.c: Include arch/amd64.h. Don't include
2495 features/i386/*.c.
2496 (amd64_linux_read_description): Call
2497 amd64_create_target_description.
2498 * arch/amd64.c: New file.
2499 * arch/amd64.h: New file.
2500 * configure.tgt (x86_64-*-linux*): Append amd64.o.
2501 * Makefile.in (ALL_64_TARGET_OBS): Append amd64.o.
2502
6c73f67f
YQ
25032017-09-05 Yao Qi <yao.qi@linaro.org>
2504
2505 * amd64-linux-tdep.c: Don't include amd64-XXX-linux and
2506 x32-XXX-linux.c. Include 64bit-XX.c and x32-XX.c.
2507 (amd64_linux_read_description): Create target descriptions.
2508 (_initialize_amd64_linux_tdep): Don't call initialize_tdesc_XXX
2509 functions. Add unit tests.
2510 * features/Makefile (FEATURE_XMLFILES): Append 64bit-XXX.xml and
2511 x32-core.xml.
2512 * features/i386/64bit-avx.c: Generated.
2513 * features/i386/64bit-avx512.c: Generated.
2514 * features/i386/64bit-core.c: Generated.
2515 * features/i386/64bit-linux.c: Generated.
2516 * features/i386/64bit-mpx.c: Generated.
2517 * features/i386/64bit-pkeys.c: Generated.
2518 * features/i386/64bit-segments.c: Generated.
2519 * features/i386/64bit-sse.c: Generated.
2520 * features/i386/x32-core.c: Generated.
2521 * target-descriptions.c (maint_print_c_tdesc_cmd): Print feature
2522 c files for amd64-linux and x32-linux.
2523
9d3d478b
YQ
25242017-09-05 Yao Qi <yao.qi@linaro.org>
2525
2526 * amd64-linux-tdep.c (amd64_linux_read_description): New
2527 function.
2528 (amd64_linux_core_read_description): Call
2529 amd64_linux_read_description.
2530 (amd64_linux_init_abi): Likewise.
2531 (amd64_x32_linux_init_abi): Likewise.
2532 * amd64-linux-tdep.h (amd64_linux_read_description): Declare.
2533 * x86-linux-nat.c (x86_linux_read_description): Call
2534 amd64_linux_read_description.
2535
b9f1d50f
YQ
25362017-09-05 Yao Qi <yao.qi@linaro.org>
2537
2538 * amd64-linux-tdep.c (amd64_linux_core_read_description): Update
2539 comments.
2540
188c9e6d
YQ
25412017-09-05 Yao Qi <yao.qi@linaro.org>
2542
2543 * features/Makefile (XMLTOC): Remove i386/i386-XX-linux.xml.
2544 * features/i386/i386-avx-avx512-linux.c: Remove.
2545 * features/i386/i386-avx-linux.c: Remove.
2546 * features/i386/i386-avx-mpx-avx512-pku-linux.c: Remove.
2547 * features/i386/i386-avx-mpx-linux.c: Remove.
2548 * features/i386/i386-linux.c: Remove.
2549 * features/i386/i386-mmx-linux.c: Remove.
2550 * features/i386/i386-mpx-linux.c: Remove.
2551
5f035c07
YQ
25522017-09-05 Yao Qi <yao.qi@linaro.org>
2553
2554 * Makefile.in (ALL_TARGET_OBS): Add i386.o.
2555 (SFILES): Add arch/i386.c.
2556 (HFILES_NO_SRCDIR): Add arch/i386.h.
2557 * arch/i386.c: New file.
2558 * arch/i386.h: New file.
2559 * arch/tdesc.h (allocate_target_description): Declare.
2560 (set_tdesc_architecture): Declare.
2561 (set_tdesc_osabi): Declare.
2562 * configure.tgt (i[34567]86-*-linux*): Add i386.o.
2563 * i386-linux-tdep.c: Don't include ../features/i386/32bit-XXX.c.
2564 include arch/i386.h.
2565 (i386_linux_read_description): Remove code and call
2566 i386_create_target_description.
2567 (set_tdesc_architecture): New function.
2568 (set_tdesc_osabi): New function.
2569 * target-descriptions.h (allocate_target_description): Remove.
2570
0abe8a89
YQ
25712017-09-05 Yao Qi <yao.qi@linaro.org>
2572
2573 * arch/tdesc.h (tdesc_create_feature): Add an argument xml.
2574 * target-descriptions.c (tdesc_create_feature): Likewise, and
2575 adjust code.
2576 * features/i386/32bit-avx.c: Re-generated.
2577 * features/i386/32bit-avx512.c: Re-generated.
2578 * features/i386/32bit-core.c: Re-generated.
2579 * features/i386/32bit-linux.c: Re-generated.
2580 * features/i386/32bit-mpx.c: Re-generated.
2581 * features/i386/32bit-pkeys.c: Re-generated.
2582 * features/i386/32bit-sse.c: Re-generated.
2583
0a188386
YQ
25842017-09-05 Yao Qi <yao.qi@linaro.org>
2585
2586 * regformats/regdef.h (struct reg): Override operator == and !=.
2587
f49ff000
YQ
25882017-09-05 Yao Qi <yao.qi@linaro.org>
2589
2590 * arch/tdesc.h: New file.
2591 * regformats/regdat.sh: Generate code using tdesc_create_reg.
2592 * target-descriptions.c: Update comments.
2593 * target-descriptions.h: Include "arch/tdesc.h". Remove the
2594 declarations.
2595 * features/i386/32bit-avx.c: Re-generated.
2596 * features/i386/32bit-avx512.c: Re-generated.
2597 * features/i386/32bit-core.c: Re-generated.
2598 * features/i386/32bit-linux.c: Re-generated.
2599 * features/i386/32bit-mpx.c: Re-generated.
2600 * features/i386/32bit-pkeys.c: Re-generated.
2601 * features/i386/32bit-sse.c: Re-generated.
2602
f7000548
YQ
26032017-09-05 Yao Qi <yao.qi@linaro.org>
2604
2605 * regformats/regdat.sh: Update generated code.
2606
c9a5e2a5
YQ
26072017-09-05 Yao Qi <yao.qi@linaro.org>
2608
2609 * regformats/regdat.sh: Adjust code order.
2610
d6b687ac
SM
26112017-09-05 Simon Marchi <simon.marchi@ericsson.com>
2612
2613 * expprint.c (dump_subexp_body_standard): Use constant format
2614 string in fprintf_filtered call.
2615
a379bfd0
JB
26162017-09-04 John Baldwin <jhb@FreeBSD.org>
2617
2618 * configure.nat: Add "x86-nat.o x86-dregs.o" for NetBSD/amd64 and
2619 NetBSD/i386.
2620 * x86-bsd-nat.c [!DBREG_DRX && __NetBSD__]: Define DBREG_DRX.
2621
f7efc967
JB
26222017-09-04 John Baldwin <jhb@FreeBSD.org>
2623
2624 * bsd-kvm.o: Make <sys/user.h> conditional on HAVE_SYS_USER_H.
2625
c49fbc6c
JB
26262017-09-04 John Baldwin <jhb@FreeBSD.org>
2627
2628 * bsd-kvm.o: Define _KMEMUSER.
2629 * configure.ac: Define _KMEMUSER when checking for "struct lwp".
2630 * configure: Regenerate.
2631
26562e73
JB
26322017-09-04 John Baldwin <jhb@FreeBSD.org>
2633
2634 * amd64-fbsd-nat.c: Add include of "x86-xstate.h".
2635 * i386-fbsd-nat.c: Likewise.
2636
31cf1487
JB
26372017-09-04 John Baldwin <jhb@FreeBSD.org>
2638
2639 * unittests/array-view-selftests.c: Add include of <array>.
2640
5b9f8a7c
JB
26412017-09-04 John Baldwin <jhb@FreeBSD.org>
2642
2643 * spu-tdep.c (flush_ea_cache): Add missing argument to
2644 call_function_by_hand.
2645
d69cf9b2
PA
26462017-09-04 Pedro Alves <palves@redhat.com>
2647
2648 * NEWS (Safer support for debugging with no debug info): New.
2649
3693fdb3
PA
26502017-09-04 Pedro Alves <palves@redhat.com>
2651
2652 * c-exp.y (function_method, function_method_void): Add current
2653 instance flags to TYPE_INSTANCE.
2654 * dwarf2read.c (check_modifier): New.
2655 (compute_delayed_physnames): Assert that only C++ adds delayed
2656 physnames. Mark fn_fields as const/volatile depending on
2657 physname.
2658 * eval.c (make_params): New type_instance_flags parameter. Use
2659 it as the new type's instance flags.
2660 (evaluate_subexp_standard) <TYPE_INSTANCE>: Extract the instance
2661 flags element and pass it to make_params.
2662 * expprint.c (print_subexp_standard) <TYPE_INSTANCE>: Handle
2663 instance flags element.
2664 (dump_subexp_body_standard) <TYPE_INSTANCE>: Likewise.
2665 * gdbtypes.h: Include "enum-flags.h".
2666 (type_instance_flags): New enum-flags type.
2667 (TYPE_CONST, TYPE_VOLATILE, TYPE_RESTRICT, TYPE_ATOMIC)
2668 (TYPE_CODE_SPACE, TYPE_DATA_SPACE): Return boolean.
2669 * parse.c (operator_length_standard) <TYPE_INSTANCE>: Adjust.
2670 (follow_type_instance_flags): New function.
2671 (operator_check_standard) <TYPE_INSTANCE>: Adjust.
2672 * parser-defs.h (follow_type_instance_flags): Declare.
2673 * valops.c (value_struct_elt_for_reference): const/volatile must
2674 match too.
2675
e68cb8e0
PA
26762017-09-04 Pedro Alves <palves@redhat.com>
2677
2678 * cp-namespace.c (cp_search_static_and_baseclasses): Handle
2679 function/method scopes; lookup the nested name as a function local
2680 static variable.
2681
858be34c
PA
26822017-09-04 Pedro Alves <palves@redhat.com>
2683
2684 (%type <voidval>): Add function_method.
2685 * c-exp.y (exp): New production for calls with no arguments.
2686 (function_method, function_method_void_or_typelist): New
2687 productions.
2688 (exp): New production for "method()::static_var".
2689 * eval.c (evaluate_subexp_standard): Handle OP_FUNC_STATIC_VAR.
2690 * expprint.c (print_subexp_standard, dump_subexp_body_standard):
2691 Handle OP_FUNC_STATIC_VAR.
2692 * parse.c (operator_length_standard):
2693 Handle OP_FUNC_STATIC_VAR.
2694
dd5901a6
PA
26952017-09-04 Pedro Alves <palves@redhat.com>
2696
2697 * eval.c (evaluate_subexp_standard): Remove UNOP_MEMVAL_TLS
2698 handling.
2699 * expprint.c (print_subexp_standard, dump_subexp_body_standard):
2700 Ditto.
2701 * parse.c (operator_length_standard, operator_check_standard):
2702 Ditto.
2703 * std-operator.def (UNOP_MEMVAL_TLS): Delete.
2704
46a4882b
PA
27052017-09-04 Pedro Alves <palves@redhat.com>
2706
2707 * ax-gdb.c: Include "typeprint.h".
2708 (gen_expr_for_cast): New function.
2709 (gen_expr) <OP_CAST, OP_CAST_TYPE>: Use it.
2710 <OP_VAR_VALUE, OP_MSYM_VAR_VALUE>: Error out if the variable's
2711 type is unknown.
2712 * dwarf2read.c (new_symbol_full): Fallback to int instead of
2713 nodebug_data_symbol.
2714 * eval.c: Include "typeprint.h".
2715 (evaluate_subexp_standard) <OP_VAR_VALUE, OP_VAR_MSYM_VALUE>:
2716 Error out if symbol has unknown type.
2717 <UNOP_CAST, UNOP_CAST_TYPE>: Common bits factored out to
2718 evaluate_subexp_for_cast.
2719 (evaluate_subexp_for_address, evaluate_subexp_for_sizeof): Handle
2720 OP_VAR_MSYM_VALUE.
2721 (evaluate_subexp_for_cast): New function.
2722 * gdbtypes.c (init_nodebug_var_type): New function.
2723 (objfile_type): Use it to initialize types of variables with no
2724 debug info.
2725 * typeprint.c (error_unknown_type): New.
2726 * typeprint.h (error_unknown_type): New declaration.
2727 * compile/compile-c-types.c (convert_type_basic): Handle
2728 TYPE_CODE_ERROR; warn and fallback to int for variables with
2729 unknown type.
2730
fe13dfec
PA
27312017-09-04 Pedro Alves <palves@redhat.com>
2732
2733 * eval.c (evaluate_var_value): New function, factored out from ...
2734 (evaluate_subexp_standard): ... here.
2735
d008ee21
PA
27362017-09-04 Pedro Alves <palves@redhat.com>
2737
2738 * eval.c (evaluate_subexp_standard) <UNOP_COMPLEMENT, UNOP_ADDR>:
2739 Remove useless assignments to 'op'.
2740
827d0c51
PA
27412017-09-04 Pedro Alves <palves@redhat.com>
2742
2743 * eval.c (eval_skip_value): New function.
2744 (evaluate_subexp_standard): Use it.
2745
2c5a2be1
PA
27462017-09-04 Pedro Alves <palves@redhat.com>
2747
2748 * eval.c (evaluate_subexp_standard): <OP_FUNCALL>: Extract
2749 function name from symbol/minsym and pass it to
2750 error_call_unknown_return_type.
2751
74ea4be4
PA
27522017-09-04 Pedro Alves <palves@redhat.com>
2753
2754 * ada-lang.c (resolve_subexp): Handle OP_VAR_MSYM_VALUE.
2755 * ax-gdb.c (gen_msym_var_ref): New function.
2756 (gen_expr): Handle OP_VAR_MSYM_VALUE.
2757 * eval.c (evaluate_var_msym_value): New function.
2758 * eval.c (evaluate_subexp_standard): Handle OP_VAR_MSYM_VALUE.
2759 <OP_FUNCALL>: Extract function name from symbol/minsym and pass it
2760 to call_function_by_hand.
2761 * expprint.c (print_subexp_standard, dump_subexp_body_standard):
2762 Handle OP_VAR_MSYM_VALUE.
2763 (union exp_element) <msymbol>: New field.
2764 * minsyms.h (struct type): Forward declare.
2765 (find_minsym_type_and_address): Declare.
2766 * parse.c (write_exp_elt_msym): New function.
2767 (write_exp_msymbol): Delete, refactored as ...
2768 (find_minsym_type_and_address): ... this new function.
2769 (write_exp_msymbol): Reimplement using OP_VAR_MSYM_VALUE.
2770 (operator_length_standard, operator_check_standard): Handle
2771 OP_VAR_MSYM_VALUE.
2772 * std-operator.def (OP_VAR_MSYM_VALUE): New.
2773
7022349d
PA
27742017-09-04 Pedro Alves <palves@redhat.com>
2775
2776 * ada-lang.c (ada_evaluate_subexp) <TYPE_CODE_FUNC>: Don't handle
2777 TYPE_GNU_IFUNC specially here. Throw error if return type is
2778 unknown.
2779 * ada-typeprint.c (print_func_type): Handle functions with unknown
2780 return type.
2781 * c-typeprint.c (c_type_print_base): Handle functions and methods
2782 with unknown return type.
2783 * compile/compile-c-symbols.c (convert_symbol_bmsym)
2784 <mst_text_gnu_ifunc>: Use nodebug_text_gnu_ifunc_symbol.
2785 * compile/compile-c-types.c: Include "objfiles.h".
2786 (convert_func): For functions with unknown return type, warn and
2787 default to int.
2788 * compile/compile-object-run.c (compile_object_run): Adjust call
2789 to call_function_by_hand_dummy.
2790 * elfread.c (elf_gnu_ifunc_resolve_addr): Adjust call to
2791 call_function_by_hand.
2792 * eval.c (evaluate_subexp_standard): Adjust calls to
2793 call_function_by_hand. Handle functions and methods with unknown
2794 return type. Pass expect_type to call_function_by_hand.
2795 * f-typeprint.c (f_type_print_base): Handle functions with unknown
2796 return type.
2797 * gcore.c (call_target_sbrk): Adjust call to
2798 call_function_by_hand.
2799 * gdbtypes.c (objfile_type): Leave nodebug text symbol with NULL
2800 return type instead of int. Make nodebug_text_gnu_ifunc_symbol be
2801 an integer address type instead of nodebug.
2802 * guile/scm-value.c (gdbscm_value_call): Adjust call to
2803 call_function_by_hand.
2804 * infcall.c (error_call_unknown_return_type): New function.
2805 (call_function_by_hand): New "default_return_type" parameter.
2806 Pass it down.
2807 (call_function_by_hand_dummy): New "default_return_type"
2808 parameter. Use it instead of defaulting to int. If there's no
2809 default and the return type is unknown, throw an error. If
2810 there's a default return type, and the called function has no
2811 debug info, then assume the function is prototyped.
2812 * infcall.h (call_function_by_hand, call_function_by_hand_dummy):
2813 New "default_return_type" parameter.
2814 (error_call_unknown_return_type): New declaration.
2815 * linux-fork.c (call_lseek): Cast return type of lseek.
2816 (inferior_call_waitpid, checkpoint_command): Adjust calls to
2817 call_function_by_hand.
2818 * linux-tdep.c (linux_infcall_mmap, linux_infcall_munmap): Adjust
2819 calls to call_function_by_hand.
2820 * m2-typeprint.c (m2_procedure): Handle functions with unknown
2821 return type.
2822 * objc-lang.c (lookup_objc_class, lookup_child_selector)
2823 (value_nsstring, print_object_command): Adjust calls to
2824 call_function_by_hand.
2825 * p-typeprint.c (pascal_type_print_varspec_prefix): Handle
2826 functions with unknown return type.
2827 (pascal_type_print_func_varspec_suffix): New function.
2828 (pascal_type_print_varspec_suffix) <TYPE_CODE_FUNC,
2829 TYPE_CODE_METHOD>: Use it.
2830 * python/py-value.c (valpy_call): Adjust call to
2831 call_function_by_hand.
2832 * rust-lang.c (rust_evaluate_funcall): Adjust call to
2833 call_function_by_hand.
2834 * valarith.c (value_x_binop, value_x_unop): Adjust calls to
2835 call_function_by_hand.
2836 * valops.c (value_allocate_space_in_inferior): Adjust call to
2837 call_function_by_hand.
2838 * typeprint.c (type_print_unknown_return_type): New function.
2839 * typeprint.h (type_print_unknown_return_type): New declaration.
2840
54990598
PA
28412017-09-04 Pedro Alves <palves@redhat.com>
2842
2843 * gdbtypes.c (lookup_function_type_with_arguments): Mark function
2844 types with more than one parameter as prototyped.
2845
9a24775b
PA
28462017-09-04 Pedro Alves <palves@redhat.com>
2847
2848 * cli/cli-cmds.c (print_disassembly, disassemble_current_function)
2849 (disassemble_command): Use gdb_disassembly_flags instead of bare
2850 int.
2851 * disasm.c (gdb_pretty_print_disassembler::pretty_print_insn)
2852 (dump_insns, do_mixed_source_and_assembly_deprecated)
2853 (do_mixed_source_and_assembly, do_assembly_only, gdb_disassembly):
2854 Use gdb_disassembly_flags instead of bare int.
2855 * disasm.h (DISASSEMBLY_SOURCE_DEPRECATED, DISASSEMBLY_RAW_INSN)
2856 (DISASSEMBLY_OMIT_FNAME, DISASSEMBLY_FILENAME)
2857 (DISASSEMBLY_OMIT_PC, DISASSEMBLY_SOURCE)
2858 (DISASSEMBLY_SPECULATIVE): No longer macros. Instead they're...
2859 (enum gdb_disassembly_flag): ... values of this new enumeration.
2860 (gdb_disassembly_flags): Define.
2861 (gdb_disassembly)
2862 (gdb_pretty_print_disassembler::pretty_print_insn): Use it.
2863 * mi/mi-cmd-disas.c (mi_cmd_disassemble): Use
2864 gdb_disassembly_flags instead of bare int.
2865 * record-btrace.c (btrace_insn_history)
2866 (record_btrace_insn_history, record_btrace_insn_history_range)
2867 (record_btrace_insn_history_from): Use gdb_disassembly_flags
2868 instead of bare int.
2869 * record.c (get_insn_history_modifiers, cmd_record_insn_history):
2870 Use gdb_disassembly_flags instead of bare int.
2871 * target-debug.h (target_debug_print_gdb_disassembly_flags):
2872 Define.
2873 * target-delegates.c: Regenerate.
2874 * target.c (target_insn_history, target_insn_history_from)
2875 (target_insn_history_range): Use gdb_disassembly_flags instead of
2876 bare int.
2877 * target.h: Include "disasm.h".
2878 (struct target_ops) <to_insn_history, to_insn_history_from,
2879 to_insn_history_range>: Use gdb_disassembly_flags instead of bare
2880 int.
2881 (target_insn_history, target_insn_history_from)
2882 (target_insn_history_range): Use gdb_disassembly_flags instead of
2883 bare int.
2884
80a65e9b
SM
28852017-09-04 Simon Marchi <simon.marchi@ericsson.com>
2886
2887 * cli/cli-script.c (build_command_line): For if/while commands,
2888 check whether args is empty.
2889
6b66338c
SM
28902017-09-04 Simon Marchi <simon.marchi@ericsson.com>
2891
2892 * cli/cli-script.h (enum misc_command_type): Move from defs.h.
2893 (enum command_control_type): Likewise.
2894 (struct command_line): Likewise.
2895 (free_command_lines): Likewise.
2896 (struct command_lines_deleter): Likewise.
2897 (command_line_up): Likewise.
2898 (read_command_lines): Likewise.
2899 (read_command_lines_1): Likewise.
2900 * defs.h (enum misc_command_type): Move to cli/cli-script.h.
2901 (enum command_control_type): Likewise.
2902 (struct command_line): Likewise.
2903 (free_command_lines): Likewise.
2904 (struct command_lines_deleter): Likewise.
2905 (command_line_up): Likewise.
2906 (read_command_lines): Likewise.
2907 (read_command_lines_1): Likewise.
2908 * breakpoint.h: Include cli/cli-script.h.
2909 * extension-priv.h: Likewise.
2910 * gdbcmd.h: Likewise.
2911
51abb421
PA
29122017-09-04 Pedro Alves <palves@redhat.com>
2913
2914 * ada-lang.c (is_known_support_routine): Move sal declaration to
2915 where it is initialized.
2916 * breakpoint.c (create_internal_breakpoint, init_catchpoint)
2917 (parse_breakpoint_sals, decode_static_tracepoint_spec)
2918 (clear_command, update_static_tracepoint): Remove init_sal
2919 references. Move declarations closer to initializations.
2920 * cli/cli-cmds.c (list_command): Move sal declarations closer to
2921 initializations.
2922 * elfread.c (elf_gnu_ifunc_resolver_stop): Remove init_sal
2923 references. Move sal declarations closer to initializations.
2924 * frame.c (find_frame_sal): Return a symtab_and_line via function
2925 return instead of output parameter. Remove init_sal references.
2926 * frame.h (find_frame_sal): Return a symtab_and_line via function
2927 return instead of output parameter.
2928 * guile/scm-frame.c (gdbscm_frame_sal): Adjust.
2929 * guile/scm-symtab.c (stscm_make_sal_smob): Use in-place new
2930 instead of memset.
2931 (gdbscm_find_pc_line): Remove init_sal reference.
2932 * infcall.c (call_function_by_hand_dummy): Remove init_sal
2933 references. Move declarations closer to initializations.
2934 * infcmd.c (set_step_frame): Update. Move declarations closer to
2935 initializations.
2936 (finish_backward): Remove init_sal references. Move declarations
2937 closer to initializations.
2938 * infrun.c (process_event_stop_test, handle_step_into_function)
2939 (insert_hp_step_resume_breakpoint_at_frame)
2940 (insert_step_resume_breakpoint_at_caller): Likewise.
2941 * linespec.c (create_sals_line_offset, decode_digits_ordinary)
2942 (symbol_to_sal): Likewise.
2943 * probe.c (parse_probes_in_pspace): Remove init_sal reference.
2944 * python/py-frame.c (frapy_find_sal): Move sal declaration closer
2945 to its initialization.
2946 * reverse.c (save_bookmark_command): Use new/delete. Remove
2947 init_sal references. Move declarations closer to initializations.
2948 * source.c (get_current_source_symtab_and_line): Remove brace
2949 initialization.
2950 (set_current_source_symtab_and_line): Now takes the sal by const
2951 reference. Remove brace initialization.
2952 (line_info): Remove init_sal reference.
2953 * source.h (set_current_source_symtab_and_line): Now takes a
2954 symtab_and_line via const reference.
2955 * stack.c (set_current_sal_from_frame): Adjust.
2956 (print_frame_info): Adjust.
2957 (get_last_displayed_sal): Return the sal via function return
2958 instead of via output parameter. Simplify.
2959 (frame_info): Adjust.
2960 * stack.h (get_last_displayed_sal): Return the sal via function
2961 return instead of via output parameter.
2962 * symtab.c (init_sal): Delete.
2963 (find_pc_sect_line): Remove init_sal references. Move
2964 declarations closer to initializations.
2965 (find_function_start_sal): Remove init_sal references. Move
2966 declarations closer to initializations.
2967 * symtab.h (struct symtab_and_line): In-class initialize all
2968 fields.
2969 * tracepoint.c (set_traceframe_context)
2970 (print_one_static_tracepoint_marker): Remove init_sal references.
2971 Move declarations closer to initializations.
2972 * tui/tui-disasm.c (tui_show_disassem_and_update_source): Adjust.
2973 * tui/tui-stack.c (tui_show_frame_info): Adjust. Move
2974 declarations closer to initializations.
2975 * tui/tui-winsource.c (tui_update_source_window_as_is): Remove
2976 init_sal references. Adjust.
2977
6c5b2ebe
PA
29782017-09-04 Pedro Alves <palves@redhat.com>
2979
2980 * ax-gdb.c (agent_command_1): Use range-for.
2981 * break-catch-throw.c (re_set_exception_catchpoint): Update.
2982 * breakpoint.c: Include "common/array-view.h".
2983 (init_breakpoint_sal, create_breakpoint_sal): Change sals
2984 parameter from struct symtabs_and_lines to
2985 array_view<symtab_and_line>. Adjust. Use range-for. Update.
2986 (breakpoint_sals_to_pc): Change sals parameter from struct
2987 symtabs_and_lines to std::vector reference.
2988 (check_fast_tracepoint_sals): Change sals parameter from struct
2989 symtabs_and_lines to std::array_view. Use range-for.
2990 (decode_static_tracepoint_spec): Return a std::vector instead of
2991 symtabs_and_lines. Update.
2992 (create_breakpoint): Update.
2993 (break_range_command, until_break_command, clear_command): Update.
2994 (base_breakpoint_decode_location, bkpt_decode_location)
2995 (bkpt_probe_create_sals_from_location)
2996 (bkpt_probe_decode_location, tracepoint_decode_location)
2997 (tracepoint_probe_decode_location)
2998 (strace_marker_create_sals_from_location): Return a std::vector
2999 instead of symtabs_and_lines.
3000 (strace_marker_create_breakpoints_sal): Update.
3001 (strace_marker_decode_location): Return a std::vector instead of
3002 symtabs_and_lines. Update.
3003 (update_breakpoint_locations): Change struct symtabs_and_lines
3004 parameters to gdb::array_view. Adjust.
3005 (location_to_sals): Return a std::vector instead of
3006 symtabs_and_lines. Update.
3007 (breakpoint_re_set_default): Use std::vector instead of struct
3008 symtabs_and_lines.
3009 (decode_location_default): Return a std::vector instead of
3010 symtabs_and_lines. Update.
3011 * breakpoint.h: Include "common/array-view.h".
3012 (struct breakpoint_ops) <decode_location>: Now returns a
3013 std::vector instead of returning a symtabs_and_lines via output
3014 parameter.
3015 (update_breakpoint_locations): Change sals parameters to use
3016 gdb::array_view.
3017 * cli/cli-cmds.c (edit_command, list_command): Update to use
3018 std::vector and gdb::array_view.
3019 (ambiguous_line_spec): Adjust to use gdb::array_view and
3020 range-for.
3021 (compare_symtabs): Rename to ...
3022 (cmp_symtabs): ... this. Change parameters to symtab_and_line
3023 const reference and adjust.
3024 (filter_sals): Rewrite using std::vector and standard algorithms.
3025 * elfread.c (elf_gnu_ifunc_resolver_return_stop): Simplify.
3026 (jump_command): Update to use std::vector.
3027 * linespec.c (struct linespec_state) <canonical_names>: Update
3028 comment.
3029 (add_sal_to_sals_basic): Delete.
3030 (add_sal_to_sals, filter_results, convert_results_to_lsals)
3031 (decode_line_2, create_sals_line_offset)
3032 (convert_address_location_to_sals, convert_linespec_to_sals)
3033 (convert_explicit_location_to_sals, parse_linespec)
3034 (event_location_to_sals, decode_line_full, decode_line_1)
3035 (decode_line_with_current_source)
3036 (decode_line_with_last_displayed, decode_objc)
3037 (decode_digits_list_mode, decode_digits_ordinary, minsym_found)
3038 (linespec_result::~linespec_result): Adjust to use std::vector
3039 instead of symtabs_and_lines.
3040 * linespec.h (linespec_sals::sals): Now a std::vector.
3041 (struct linespec_result): Use std::vector, bool, and in-class
3042 initialization.
3043 (decode_line_1, decode_line_with_current_source)
3044 (decode_line_with_last_displayed): Return std::vector.
3045 * macrocmd.c (info_macros_command): Use std::vector.
3046 * mi/mi-main.c (mi_cmd_trace_find): Use std::vector.
3047 * probe.c (parse_probes_in_pspace, parse_probes): Adjust to use
3048 std::vector.
3049 * probe.h (parse_probes): Return a std::vector.
3050 * python/python.c (gdbpy_decode_line): Use std::vector and
3051 gdb::array_view.
3052 * source.c (select_source_symtab, line_info): Use std::vector.
3053 * stack.c (func_command): Use std::vector.
3054 * symtab.h (struct symtabs_and_lines): Delete.
3055 * tracepoint.c (tfind_line_command, scope_info): Use std::vector.
3056
7c44b49c
PA
30572017-09-04 Pedro Alves <palves@redhat.com>
3058
3059 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
3060 unittests/array-view-selftests.c.
3061 (SUBDIR_UNITTESTS_OBS): Add array-view-selftests.o.
3062 * common/array-view.h: New file.
3063 * unittests/array-view-selftests.c: New file.
3064
e439fa14
PA
30652017-09-04 Pedro Alves <palves@redhat.com>
3066
3067 * cli/cli-cmds.c (edit_command): Pass message to
3068 ambiguous_line_spec.
3069 (list_command): Pass message to ambiguous_line_spec. Say
3070 "first"/"last" instead of "start" and "end" to be consistent with
3071 the manual.
3072 (ambiguous_line_spec): Add 'format' and vararg parameters. Use
3073 them to print formatted message.
3074
7525b645
PA
30752017-09-04 Pedro Alves <palves@redhat.com>
3076
3077 * btrace.c (ftrace_add_pt): Pass btrace_insn to
3078 ftrace_update_insns by reference instead of pointer.
3079
badc0020
YQ
30802017-09-04 Yao Qi <yao.qi@linaro.org>
3081
3082 * i386-go32-tdep.c: Include x86-xstate.h.
3083 (i386_go32_init_abi): Call i386_target_description.
3084 * i386-tdep.c (i386_target_description): Return tdesc_i386_mmx
3085 if xcr0 is X86_XSTATE_X87_MASK.
3086 * i386-tdep.h (tdesc_i386): Remove the declaration.
3087 (tdesc_i386_mmx): Likewise.
3088
d78bdb54
YQ
30892017-09-04 Yao Qi <yao.qi@linaro.org>
3090
3091 * i386-fbsd-tdep.c (i386fbsd_core_read_xcr0): Return
3092 X86_XSTATE_SSE_MASK instead of 0.
3093
ca1fa5ee
YQ
30942017-09-04 Yao Qi <yao.qi@linaro.org>
3095
3096 * amd64-fbsd-nat.c (amd64fbsd_read_description): Call
3097 i386_target_description.
3098 * i386-fbsd-nat.c (i386fbsd_read_description): Call
3099 i386_target_description.
3100 * i386-tdep.c (i386_gdbarch_init): Likewise.
3101
2434b019
YQ
31022017-09-04 Yao Qi <yao.qi@linaro.org>
3103
3104 * amd64-darwin-tdep.c: Include "x86-xstate.h".
3105 (x86_darwin_init_abi_64): Call amd64_target_description.
3106 * amd64-dicos-tdep.c: Likewise.
3107 * amd64-fbsd-nat.c: Likewise.
3108 * amd64-fbsd-tdep.c: Likewise.
3109 * amd64-nbsd-tdep.c: Likewise.
3110 * amd64-obsd-tdep.c: Likewise.
3111 * amd64-sol2-tdep.c: Likewise.
3112 * amd64-windows-tdep.c: Likewise.
3113 * amd64-tdep.h (tdesc_amd64): Remove the declaration.
3114
0860c437
SM
31152017-09-04 Simon Marchi <simon.marchi@ericsson.com>
3116
3117 * btrace.h (btrace_insn_s, DEF_VEC_O (btrace_insn_s)): Remove.
3118 (btrace_function) <insn>: Change type to use std::vector.
3119 * btrace.c (ftrace_debug, ftrace_call_num_insn,
3120 ftrace_find_call, ftrace_new_gap, ftrace_update_function,
3121 ftrace_update_insns, ftrace_compute_global_level_offset,
3122 btrace_stitch_bts, btrace_clear, btrace_insn_get,
3123 btrace_insn_end, btrace_insn_next, btrace_insn_prev): Adjust to
3124 change to std::vector.
3125 (ftrace_update_insns): Adjust to change to std::vector, change
3126 type of INSN parameter.
3127 (btrace_compute_ftrace_bts): Adjust call to ftrace_update_insns.
3128 * record-btrace.c (btrace_call_history_insn_range,
3129 btrace_compute_src_line_range,
3130 record_btrace_frame_prev_register): Adjust to change to
3131 std::vector.
3132 * python/py-record-btrace.c (recpy_bt_func_instructions): Adjust
3133 to change to std::vector.
3134
0638b7f9
TT
31352017-09-03 Tom Tromey <tom@tromey.com>
3136
3137 * corefile.c (reopen_exec_file): Use std::string.
3138
8f84fb0e
TT
31392017-09-03 Tom Tromey <tom@tromey.com>
3140
3141 * compile/compile.c (compile_register_name_mangled): Return
3142 std::string.
3143 * compile/compile-loc2c.c (pushf_register_address): Update.
3144 (pushf_register): Update.
3145 * compile/compile-c-types.c (convert_array): Update.
3146 * compile/compile-c-symbols.c (generate_vla_size): Update.
3147 (error_symbol_once): Use a gdb::unique_xmalloc_ptr.
3148 (symbol_substitution_name): Return a gdb::unique_xmalloc_ptr.
3149 (convert_one_symbol): Update.
3150 (generate_c_for_for_one_variable): Update.
3151 * compile/compile-c-support.c (c_get_range_decl_name): Return a
3152 std::string.
3153 (generate_register_struct): Update.
3154 * compile/compile-internal.h (c_get_range_decl_name): Return a
3155 std::string.
3156 (compile_register_name_mangled): Return std::string.
3157
18e9961f
TT
31582017-09-03 Tom Tromey <tom@tromey.com>
3159
3160 * utils.c (perror_string): Return a std::string.
3161 (throw_perror_with_name, perror_warning_with_name): Update.
3162
45343786
TT
31632017-09-03 Tom Tromey <tom@tromey.com>
3164
3165 * demangle.c (demangle_command): Use std::string,
3166 unique_xmalloc_ptr.
3167
b57af503
TT
31682017-09-03 Tom Tromey <tom@tromey.com>
3169
3170 * cli/cli-setshow.c (do_set_command): Use std::string.
3171
6eecf35f
TT
31722017-09-03 Tom Tromey <tom@tromey.com>
3173
3174 * cli/cli-cmds.c (cd_command): Use gdb::unique_xmalloc_ptr.
3175
56496dd4
TT
31762017-09-03 Tom Tromey <tom@tromey.com>
3177
3178 * mi/mi-interp.c (mi_cmd_interpreter_exec): Use std::string.
3179
e91a1fa7
TT
31802017-09-03 Tom Tromey <tom@tromey.com>
3181
3182 * mi/mi-cmd-env.c (env_execute_cli_command): Use
3183 gdb::unique_xmalloc_ptr.
3184
7ffd83d7
TT
31852017-09-03 Tom Tromey <tom@tromey.com>
3186
3187 * thread.c (print_thread_info_1): Use string_printf.
3188 (thread_apply_command, thread_apply_all_command): Use
3189 std::string.
3190
1ccbe998
TT
31912017-09-03 Tom Tromey <tom@tromey.com>
3192
3193 * valprint.c (val_print_string): Update.
3194 * gdbcore.h (memory_error_message): Return std::string.
3195 * corefile.c (memory_error_message): Return std::string.
3196 (memory_error): Update.
3197 * breakpoint.c (insert_bp_location): Update.
3198
23fdd69e
SM
31992017-09-03 Simon Marchi <simon.marchi@ericsson.com>
3200
3201 * target/waitstatus.h (target_waitstatus_to_string): Change
3202 return type to std::string.
3203 * target/waitstatus.c (target_waitstatus_to_string): Return
3204 std::string.
3205 * target.h (target_waitstatus_to_string): Remove declaration.
3206 * infrun.c (resume, clear_proceed_status_thread,
3207 print_target_wait_results, do_target_wait, save_waitstatus,
3208 stop_all_threads): Adjust.
3209 * record-btrace.c (record_btrace_wait): Adjust.
3210 * target-debug.h
3211 (target_debug_print_struct_target_waitstatus_p): Adjust.
3212
5c811d30
JK
32132017-09-01 Jan Kratochvil <jan.kratochvil@redhat.com>
3214
3215 PR gdb/22046
3216 * nat/linux-procfs.c (parse_proc_status_state): Fix PROC_STATE_STOPPED
3217 detection.
3218
0a2dde4a
SDJ
32192017-08-31 Sergio Durigan Junior <sergiodj@redhat.com>
3220
3221 * NEWS (Changes since GDB 8.0): Add entry mentioning new support
3222 for setting/unsetting environment variables on the remote target.
3223 (New remote packets): Add entries for QEnvironmentHexEncoded,
3224 QEnvironmentUnset and QEnvironmentReset.
3225 * common/environ.c (gdb_environ::operator=): Extend method to
3226 handle m_user_set_env_list and m_user_unset_env_list.
3227 (gdb_environ::clear): Likewise.
3228 (match_var_in_string): Change type of first parameter from 'char
3229 *' to 'const char *'.
3230 (gdb_environ::set): Extend method to handle
3231 m_user_set_env_list and m_user_unset_env_list.
3232 (gdb_environ::unset): Likewise.
3233 (gdb_environ::clear_user_set_env): New method.
3234 (gdb_environ::user_set_envp): Likewise.
3235 (gdb_environ::user_unset_envp): Likewise.
3236 * common/environ.h (gdb_environ): Handle m_user_set_env_list and
3237 m_user_unset_env_list on move constructor/assignment.
3238 (unset): Add new default parameter 'update_unset_list = true'.
3239 (clear_user_set_env): New method.
3240 (user_set_envp): Likewise.
3241 (user_unset_envp): Likewise.
3242 (m_user_set_env_list): New std::set.
3243 (m_user_unset_env_list): Likewise.
3244 * common/rsp-low.c (hex2str): New function.
3245 (bin2hex): New overload for bin2hex function.
3246 * common/rsp-low.c (hex2str): New prototype.
3247 (str2hex): New overload prototype.
3248 * remote.c: Include "environ.h". Add QEnvironmentHexEncoded,
3249 QEnvironmentUnset and QEnvironmentReset.
3250 (remote_protocol_features): Add QEnvironmentHexEncoded,
3251 QEnvironmentUnset and QEnvironmentReset packets.
3252 (send_environment_packet): New function.
3253 (extended_remote_environment_support): Likewise.
3254 (extended_remote_create_inferior): Call
3255 extended_remote_environment_support.
3256 (_initialize_remote): Add QEnvironmentHexEncoded,
3257 QEnvironmentUnset and QEnvironmentReset packet configs.
3258 * unittests/environ-selftests.c (gdb_selftest_env_var):
3259 New variable.
3260 (test_vector_initialization): New function.
3261 (test_init_from_host_environ): Likewise.
3262 (test_reinit_from_host_environ): Likewise.
3263 (test_set_A_unset_B_unset_A_cannot_find_A_can_find_B):
3264 Likewise.
3265 (test_unset_set_empty_vector): Likewise.
3266 (test_vector_clear): Likewise.
3267 (test_std_move): Likewise.
3268 (test_move_constructor):
3269 (test_self_move): Likewise.
3270 (test_set_unset_reset): Likewise.
3271 (run_tests): Rewrite in terms of the functions above.
3272
654670a4
WP
32732017-08-31 Weimin Pan <weimin.pan@oracle.com>
3274
3275 * sparc64-tdep.c (adi_stat_t): Fix comment formatting.
3276 (adi_available): Use a temp variable of type CORE_ADDR as argument
3277 3 when calling target_auxv_search.
3278 (adi_normalize_address): Use masks and xor operators to calculate
3279 normalized address.
3280 (adi_read_versions, adi_write_versions, adi_print_versions)
3281 (do_examine, do_assign): Use paddress.
3282
7755ddb7
JB
32832017-08-29 John Baldwin <jhb@FreeBSD.org>
3284
3285 * mips-fbsd-nat.c (getfpregs_supplies): Return true for FIR.
3286 * mips-fbsd-tdep.c (mips_fbsd_supply_fpregs): Split supply of FSR
3287 out of loop and add supply of FIR.
3288 (mips_fbsd_collect_fpregs): Split collect of FSR out of loop and
3289 add collect of FIR.
3290
fd437cbc
SM
32912017-08-28 Simon Marchi <simon.marchi@ericsson.com>
3292
3804a343 3293 PR gdb/21827
fd437cbc
SM
3294 * cli/cli-script.c (define_command): Don't convert command name
3295 to lower case.
3296
988f6b3d
JB
32972017-08-25 Joel Brobecker <brobecker@adacore.com>
3298
3299 * ada-lang.c (ada_lookup_struct_elt_type): Remove parameter "dispp".
3300 Update all callers accordingly. Remove all code blocks handling
3301 the case where DISPP is not NULL.
3302
663c44ac
JK
33032017-08-24 Jan Kratochvil <jan.kratochvil@redhat.com>
3304
3305 PR symtab/22003
3306 * dwarf2read.c (dwarf2_const_value_attr, dump_die_shallow)
3307 (dwarf2_get_attr_constant_value, dwarf2_fetch_constant_bytes)
3308 (skip_form_bytes, attr_form_is_constant): Handle DW_FORM_implicit_const.
3309
f1902523
JK
33102017-08-24 Jan Kratochvil <jan.kratochvil@redhat.com>
3311
3312 * dwarf2read.c (build_type_psymtabs_reader): New prototype.
3313 (process_psymtab_comp_unit): Accept IS_DEBUG_TYPES.
3314 (read_comp_units_from_section): New parameter abbrev_section, use
3315 read_and_check_comp_unit_head, allocate signatured_type if needed.
3316 (create_all_comp_units): Update read_comp_units_from_section caller.
3317
87215ad1
SDJ
33182017-08-23 Pedro Alves <palves@redhat.com>
3319
3320 PR remote/21852
3321 * remote.c (add_current_inferior_and_thread): Set inferior_ptid
3322 to null_ptid and switch to thread without reading the registers
3323 after adding the inferior.
3324
6e41ddec
JK
33252017-08-23 Jan Kratochvil <jan.kratochvil@redhat.com>
3326
3327 * NEWS (Changes since GDB 8.0): Add set compile-gcc and show
3328 compile-gcc.
3329 * compile/compile.c (compile_gcc, show_compile_gcc): New.
3330 (compile_to_object): Implement compile_gcc.
3331 (_initialize_compile): Install "set compile-gcc". Initialize
3332 compile_gcc.
3333
e68c32d5
JK
33342017-08-23 Jan Kratochvil <jan.kratochvil@redhat.com>
3335
3336 * compile/compile.c (compile_to_object): Conditionally call
3337 set_verbose. Conditionally call compile or compile_v0.
3338
58afddc6
WP
33392017-08-07 Weimin Pan <weimin.pan@oracle.com>
3340
3341 * sparc64-tdep.h: (adi_normalize_address): New export.
3342 * sparc-nat.h: (open_adi_tag_fd): New export.
3343 * sparc64-linux-nat.c: (open_adi_tag_fd): New function.
3344 * sparc64-linux-tdep.c:
3345 (SEGV_ACCADI, SEGV_ADIDERR, SEGV_ADIPERR) New defines.
3346 (sparc64_linux_handle_segmentation_fault): New function.
3347 (sparc64_linux_init_abi): Register
3348 sparc64_linux_handle_segmentation_fault
3349 * sparc64-tdep.c: Include cli-utils.h,gdbcmd.h,auxv.h.
3350 (sparc64_addr_bits_remove): New function.
3351 (sparc64_init_abi): Register sparc64_addr_bits_remove.
3352 (MAX_PROC_NAME_SIZE): New macro.
3353 (AT_ADI_BLKSZ, AT_ADI_NBITS, AT_ADI_UEONADI) New defines.
3354 (sparc64adilist): New variable.
3355 (adi_proc_list): New variable.
3356 (find_adi_info): New function.
3357 (add_adi_info): New function.
3358 (get_adi_info_proc): New function.
3359 (get_adi_info): New function.
3360 (info_adi_command): New function.
3361 (read_maps_entry): New function.
3362 (adi_available): New function.
3363 (adi_normalize_address): New function.
3364 (adi_align_address): New function.
3365 (adi_convert_byte_count): New function.
3366 (adi_tag_fd): New function.
3367 (adi_is_addr_mapped): New function.
3368 (adi_read_versions): New function.
3369 (adi_write_versions): New function.
3370 (adi_print_versions): New function.
3371 (do_examine): New function.
3372 (do_assign): New function.
3373 (adi_examine_command): New function.
3374 (adi_assign_command): New function.
3375 (_initialize_sparc64_adi_tdep): New function.
3376
11db9430
SM
33772017-08-22 Simon Marchi <simon.marchi@ericsson.com>
3378
3379 * breakpoint.c (breakpoints_info): Rename to ...
3380 (info_breakpoints_command): ... this.
3381 (watchpoints_info): Rename to ...
3382 (info_watchpoints_command): ... this.
3383 (tracepoints_info): Rename to ...
3384 (info_tracepoints_command): ... this.
3385 (_initialize_breakpoint): Adjust.
3386 * dcache.c (dcache_info): Rename to ...
3387 (info_display_command): ... this.
3388 (_initialize_dcache): Adjust.
3389 * frame.h (args_info): Rename to ...
3390 (info_args_command): ... this.
3391 (locals_info): Rename to ...
3392 (info_locals_command): ... this.
3393 * infcmd.c (nofp_registers_info): Rename to ...
3394 (info_registers_command): ... this.
3395 (float_info): Rename to ...
3396 (info_float_command): ... this.
3397 (program_info): Rename to ...
3398 (info_program_command): ... this.
3399 (all_registers_info): Rename to ...
3400 (info_all_registers_command): ... this.
3401 (vector_info): Rename to ...
3402 (info_vector_command): ... this.
3403 (float_info): Rename to ...
3404 (info_float_command): ... this.
3405 (_initialize_infcmd): Adjust.
3406 * inferior.h (term_info): Rename to ...
3407 (info_terminal_command): ... this.
3408 * inflow.c (term_info): Rename to ...
3409 (info_terminal_command): ... this.
3410 (_initialize_inflow): Adjust.
3411 * infrun.c (signals_info): Rename to ...
3412 (info_signals_command): ... this.
3413 (_initialize_infrun): Adjust.
3414 * objc-lang.c (classes_info): Rename to ...
3415 (info_classes_command): ... this.
3416 (selectors_info): Rename to ...
3417 (info_selectors_command): ... this.
3418 (_initialize_objc_language): Adjust.
3419 * printcmd.c (sym_info): Rename to ...
3420 (info_symbol_command): ... this.
3421 (address_info): Rename to ...
3422 (info_address_command): ... this.
3423 (display_info): Rename to ...
3424 (info_display_command): ... this.
3425 (_initialize_printcmd): Adjust.
3426 * reverse.c (bookmarks_info): Rename to ...
3427 (info_breakpoints_command): ... this.
3428 (_initialize_reverse): Adjust.
3429 * ser-go32.c (dos_info): Rename to ...
3430 (info_serial_command): ... this.
3431 (_initialize_ser_dos): Adjust.
3432 * skip.c (skip_info): Rename to ...
3433 (info_skip_command): ... this.
3434 (_initialize_step_skip): Adjust.
3435 * source.c (line_info): Rename to ...
3436 (info_line_command): ... this.
3437 (source_info): Rename to ...
3438 (info_source_command)
3439 * stack.c (frame_info): Rename to ...
3440 (info_frame_command): ... this.
3441 (locals_info): Rename to ...
3442 (info_locals_command): ... this.
3443 (args_info): Rename to ...
3444 (info_args_command): ... this.
3445 (_initialize_stack): Adjust.
3446 * symtab.c (sources_info): Rename to ...
3447 (info_sources_command): ... this.
3448 (variables_info): Rename to ...
3449 (info_variables_command): ... this.
3450 (functions_info): Rename to ...
3451 (info_functions_command): ... this.
3452 (types_info): Rename to ...
3453 (info_types_command): ... this.
3454 (_initialize_symtab): Adjust.
3455 * target.c (target_info): Rename to ...
3456 (info_target_command): ... this.
3457 (initialize_targets): Adjust.
3458 * tracepoint.c (tvariables_info): Rename to ...
3459 (info_tvariables_command): ... this.
3460 (scope_info): Rename to ...
3461 (info_scope_command): ... this.
3462 (trace_dump_actions): Adjust.
3463 (_initialize_tracepoint): Adjust.
3464
b270e6f9
TT
34652017-08-22 Tom Tromey <tom@tromey.com>
3466
3467 * breakpoint.h (install_breakpoint): Update.
3468 * breakpoint.c (add_solib_catchpoint): Update.
3469 (install_breakpoint): Change argument to a std::unique_ptr.
3470 (create_fork_vfork_event_catchpoint): Use std::unique_ptr.
3471 (create_breakpoint_sal, create_breakpoint): Update.
3472 (watch_command_1, catch_exec_command_1)
3473 (strace_marker_create_breakpoints_sal): Use std::unique_ptr.
3474 (add_to_breakpoint_chain): Change argument to a std::unique_ptr.
3475 Return the breakpoint.
3476 (set_raw_breakpoint_without_location, set_raw_breakpoint)
3477 (new_single_step_breakpoint): Update.
3478 * break-catch-throw.c (handle_gnu_v3_exceptions): Use
3479 std::unique_ptr.
3480 * break-catch-syscall.c (create_syscall_event_catchpoint): Use
3481 std::unique_ptr.
3482 * break-catch-sig.c (create_signal_catchpoint): Use
3483 std::unique_ptr.
3484 * ada-lang.c (create_ada_exception_catchpoint): Use
3485 std::unique_ptr.
3486
36bd8eaa
TT
34872017-08-22 Tom Tromey <tom@tromey.com>
3488
3489 * breakpoint.c (add_solib_catchpoint): Use std::unique_ptr.
3490
56f37645
TT
34912017-08-22 Tom Tromey <tom@tromey.com>
3492
3493 * psymtab.c (psymtab_search_name): Return a unique_xmalloc_ptr.
3494 (lookup_partial_symbol): Update.
3495
0b581c69
TT
34962017-08-22 Tom Tromey <tom@tromey.com>
3497
3498 * source.h (rewrite_source_path): Return a unique_xmalloc_ptr.
3499 * source.c (rewrite_source_path): Return a unique_xmalloc_ptr.
3500 (find_and_open_source, symtab_to_fullname): Update.
3501 * psymtab.c (psymtab_to_fullname): Update.
3502
14278e1f
TT
35032017-08-22 Tom Tromey <tom@tromey.com>
3504
3505 * exec.c (exec_file_attach): Update.
3506 * linux-thread-db.c (try_thread_db_load): Update.
3507 * guile/scm-safe-call.c (gdbscm_safe_source_script): Update.
3508 * utils.c (gdb_realpath): Change return type.
3509 (gdb_realpath_keepfile): Update.
3510 (gdb_realpath_check_trailer, gdb_realpath_tests): New functions.
3511 (_initialize_utils): Register the new self test.
3512 * source.c (openp): Update.
3513 (find_and_open_source): Update.
3514 * nto-tdep.c (nto_find_and_open_solib): Update.
3515 * main.c (set_gdb_data_directory): Update.
3516 (captured_main_1): Update.
3517 * dwarf2read.c (dwarf2_get_dwz_file): Update
3518 (dw2_map_symbol_filenames): Update.
3519 * auto-load.c (auto_load_safe_path_vec_update): Update.
3520 (filename_is_in_auto_load_safe_path_vec): Change type of
3521 "filename_realp".
3522 (auto_load_objfile_script): Update.
3523 (file_is_auto_load_safe): Update. Use std::string.
3524 * utils.h (gdb_realpath): Return a gdb::unique_xmalloc_ptr.
3525
4971c9a7
TT
35262017-08-22 Tom Tromey <tom@tromey.com>
3527
3528 * utils.c (gdb_realpath_keepfile): Return a
3529 gdb::unique_xmalloc_ptr.
3530 * exec.c (exec_file_attach): Update.
3531 * utils.h (gdb_realpath_keepfile): Return a
3532 gdb::unique_xmalloc_ptr.
3533
e3e41d58
TT
35342017-08-22 Tom Tromey <tom@tromey.com>
3535
3536 * compile/compile.c (compile_file_command): Use
3537 gdb::unique_xmalloc_ptr, std::string.
3538 * utils.c (gdb_abspath): Change return type.
3539 * source.c (openp): Update.
3540 * objfiles.c (allocate_objfile): Update.
3541 * main.c (set_gdb_data_directory): Update.
3542 * utils.h (gdb_abspath): Return a gdb::unique_xmalloc_ptr.
3543
0d999a6e
ZZ
35442017-08-22 Zhouyi Zhou <zhouzhouyi@gmail.com>
3545
3546 * cli-cmds.c (list_commands): List actual code around more than
3547 one location.
3548
329d5e7e
JB
35492017-08-21 John Baldwin <jhb@FreeBSD.org>
3550
3551 * fbsd-nat.c (fbsd_add_threads): Use array type for `lwps'.
3552
bf223d3e
PA
35532017-08-21 Pedro Alves <palves@redhat.com>
3554
3555 PR gdb/19487
3556 * c-exp.y (variable production): Handle function aliases.
3557 * minsyms.c (msymbol_is_text): New function.
3558 * minsyms.h (msymbol_is_text): Declare.
3559 * symtab.c (find_function_alias_target): New function.
3560 * symtab.h (find_function_alias_target): Declare.
3561
c973d0aa
PA
35622017-08-21 Pedro Alves <palves@redhat.com>
3563
3564 * eval.c (evaluate_subexp_standard) <OP_TYPE>: Don't dig past
3565 typedefs.
3566 * typeprint.c (whatis_exp): If handling "whatis", and expression
3567 is OP_TYPE, strip one typedef level. Otherwise don't strip
3568 typedefs here.
3569 * valops.c (value_cast): Save "to" type before resolving
3570 stubs/typedefs. Use that type as resulting value's type.
3571
2989a365
TT
35722017-08-18 Tom Tromey <tom@tromey.com>
3573 Pedro Alves <palves@redhat.com>
3574
3575 * spu-multiarch.c (parse_spufs_run): Use scoped_restore.
3576 * sol-thread.c (sol_thread_resume, sol_thread_wait)
3577 (sol_thread_xfer_partial, rw_common): Use scoped_restore.
3578 * procfs.c (procfs_do_thread_registers): Use scoped_restore.
3579 * proc-service.c (ps_xfer_memory): Use scoped_restore.
3580 * linux-tdep.c (linux_corefile_thread): Remove a cleanup.
3581 (linux_get_siginfo_data): Add "thread" argument. Use
3582 scoped_restore.
3583 * linux-nat.c (linux_child_follow_fork)
3584 (check_stopped_by_watchpoint): Use scoped_restore.
3585 * infrun.c (displaced_step_prepare_throw, write_memory_ptid)
3586 (THREAD_STOPPED_BY, handle_signal_stop): Use scoped_restore.
3587 (restore_inferior_ptid, save_inferior_ptid): Remove.
3588 * btrace.c (btrace_fetch): Use scoped_restore.
3589 * bsd-uthread.c (bsd_uthread_fetch_registers)
3590 (bsd_uthread_store_registers): Use scoped_restore.
3591 * breakpoint.c (reattach_breakpoints, detach_breakpoints): Use
3592 scoped_restore.
3593 * aix-thread.c (aix_thread_resume, aix_thread_wait)
3594 (aix_thread_xfer_partial): Use scoped_restore.
3595 * inferior.h (save_inferior_ptid): Remove.
3596
e60eb288
YQ
35972017-08-18 Yao Qi <yao.qi@linaro.org>
3598
3599 PR tdep/21818
3600 * arm-tdep.c (gdb_print_insn_arm): Mark
3601 USER_SPECIFIED_MACHINE_TYPE if exec_bfd isn't NULL.
3602
6d580b63
YQ
36032017-08-18 Yao Qi <yao.qi@linaro.org>
3604
3605 * NEWS: Mention GDBserver's new option "--selftest".
3606 * Makefile.in (SFILES): Remove selftest.c, add common/selftest.c.
3607 * selftest.c: Move it to common/selftest.c.
3608 * selftest.h: Move it to common/selftest.h.
3609 * selftest-arch.c (reset): New function.
3610 (tests_with_arch): Call reset.
3611
86dcbf50
YQ
36122017-08-18 Yao Qi <yao.qi@linaro.org>
3613
3614 * selftest.c (run_tests): Don't call QUIT. Call debug_printf
3615 instead of exception_fprintf and printf_filtered.
3616
7649770c
YQ
36172017-08-18 Yao Qi <yao.qi@linaro.org>
3618
3619 * selftest.c (register_self_test): Rename it to
3620 selftests::register_test.
3621 (run_self_tests): selftest::run_tests.
3622 * selftest.h: Update declarations.
3623 * selftest-arch.c (register_self_test_foreach_arch): Rename it to
3624 selftests::register_test_foreach_arch.
3625 * selftest-arch.h: Update declaration.
3626 * aarch64-tdep.c: Update.
3627 * arm-tdep.c: Likewise.
3628 * disasm-selftests.c: Likewise.
3629 * dwarf2loc.c: Likewise.
3630 * dwarf2-frame.c: Likewise.
3631 * findvar.c: Likewise.
3632 * gdbarch-selftests.c: Likewise.
3633 * maint.c (maintenance_selftest): Likewise.
3634 * regcache.c: Likewise.
3635 * rust-exp.y: Likewise.
3636 * selftest-arch.c: Likewise.
3637 * unittests/environ-selftests.c: Likewise.
3638 * unittests/function-view-selftests.c: Likewise.
3639 * unittests/offset-type-selftests.c: Likewise.
3640 * unittests/optional-selftests.c: Likewise.
3641 * unittests/scoped_restore-selftests.c: Likewise.
3642 * utils-selftests.c: Likewise.
3643
b0cba12e
PA
36442017-08-17 Pedro Alves <palves@redhat.com>
3645
3646 * cli/cli-cmds.c (source_command): Delete 'old_source_verbose'
3647 local.
3648
4c8aa72d
PA
36492017-08-17 Pedro Alves <palves@redhat.com>
3650
3651 * dwarf2read.c (struct dwarf2_cu) <line_header_die_owner>: New
3652 field.
3653 (reset_die_in_process): Delete, replaced by ...
3654 (process_die_scope): ... this new class. Make it responsible for
3655 freeing cu->line_header too.
3656 (process_die): Use process_die_scope.
3657 (handle_DW_AT_stmt_list): Record the line header's owner CU/DIE in
3658 cu->line_header_die_owner. Don't release the line header if it's
3659 owned by the CU.
3660 (setup_type_unit_groups): Make the CU/DIE own the line header.
3661 Don't release the line header here.
3662
ba713918
AL
36632017-08-17 Alex Lindsay <alexlindsay239@gmail.com> (tiny change)
3664
3665 * elfread.c (elf_read_minimal_symbols): xfree synthsyms.
3666
44d0fb3a
RK
36672017-08-17 Ruslan Kabatsayev <b7.10110111@gmail.com>
3668
3669 * NEWS: Mention new shortcuts for nexti and stepi in TUI
3670 Single-Key mode
3671
a5afdb16
RK
36722017-08-16 Ruslan Kabatsayev <b7.10110111@gmail.com>
3673
3674 * tui/tui.c (tui_commands): Add "nexti" and "stepi" to the Single-Key
3675 mode command list.
3676
47613aeb
SH
36772017-08-15 Stafford Horne <shorne@gmail.com>
3678
3679 * MAINTAINERS (Write After Approval): Add Stafford Horne.
3680
9c3cc999
SH
36812017-08-15 Stafford Horne <shorne@gmail.com>
3682
3683 * xtensa-tdep.c (xtensa_init_reggroups): Use xstrdup for cpname.
3684
206726fb
SDJ
36852017-08-15 Sergio Durigan Junior <sergiodj@redhat.com>
3686
3687 PR gdb/21954
3688 * infcmd.c (unset_environment_command): Use the 'clear' method on
3689 the environment instead of resetting it.
3690
0335ac6d
JB
36912017-08-15 John Baldwin <jhb@FreeBSD.org>
3692
3693 * fbsd-nat.c (fbsd_convert_siginfo): Fix compile on big-endian
3694 platforms.
3695
d3abe1c8
TT
36962017-08-14 Tom Tromey <tom@tromey.com>
3697
3698 * valprint.c (print_octal_chars): Use HOST_CHAR_BIT.
3699 (print_binary_chars): Likewise.
3700 (BITS_IN_BYTES): Remove.
3701
d6382fff
TT
37022017-08-14 Tom Tromey <tom@tromey.com>
3703
3704 PR gdb/21675
3705 * valprint.c (LOW_ZERO): Change value to 034.
3706 (print_octal_chars): Add static_asserts for octal constants.
3707 * printcmd.c (print_scalar_formatted): Add 'd' case.
3708
f978cb06
TT
37092017-08-11 Tom Tromey <tom@tromey.com>
3710
3711 * symfile.c (add_symbol_file_command): Use std::vector.
3712
2f5404b3
TT
37132017-08-14 Tom Tromey <tom@tromey.com>
3714
3715 * break-catch-throw.c (handle_gnu_v3_exceptions): Use std::move.
3716 * break-catch-syscall.c (create_syscall_event_catchpoint): Use
3717 std::move.
3718 * break-catch-sig.c (create_signal_catchpoint): Use std::move.
3719
de7985c3
PA
37202017-08-11 Pedro Alves <palves@redhat.com>
3721
3722 * infrun.c (process_event_stop_test): Adjust
3723 function_name_is_marked_for_skip call.
3724 * skip.c: Include <list>.
3725 (skiplist_entry): Make it a class with private fields, and
3726 getters/setters.
3727 (skiplist_entry_chain): Delete.
3728 (skiplist_entries): New.
3729 (skiplist_entry_count): Delete.
3730 (highest_skiplist_entry_num): New.
3731 (ALL_SKIPLIST_ENTRIES, ALL_SKIPLIST_ENTRIES_SAFE): Delete.
3732 (add_skiplist_entry): Delete.
3733 (skiplist_entry::skiplist_entry): New.
3734 (skiplist_entry::add_entry): New.
3735 (skip_file_command, skip_function): Adjust.
3736 (compile_skip_regexp): Delete.
3737 (skip_command): Don't compile regexp here. Adjust to use
3738 skiplist_entry::add_entry.
3739 (skip_info): Adjust to use range-for and getters.
3740 (skip_enable_command, skip_disable_command): Adjust to use
3741 range-for and setters.
3742 (skip_delete_command): Adjust to use std::list.
3743 (add_skiplist_entry): Delete.
3744 (skip_file_p): Delete, refactored as ...
3745 (skiplist_entry::do_skip_file_p): ... this new method.
3746 (skip_gfile_p): Delete, refactored as ...
3747 (skiplist_entry::do_gskip_file_p): ... this new method.
3748 (skip_function_p, skip_rfunction_p): Delete, refactored as ...
3749 (skiplist_entry::skip_function_p): ... this new method.
3750 (function_name_is_marked_for_skip): Now returns bool, and takes
3751 the function sal by const reference. Adjust to use range-for and
3752 skiplist_entry methods.
3753 (_initialize_step_skip): Remove references to
3754 skiplist_entry_chain, skiplist_entry_count.
3755 * skip.h (function_name_is_marked_for_skip): Now returns bool, and
3756 takes the function sal by const reference.
3757
be7d3cd5
YQ
37582017-08-11 Yao Qi <yao.qi@linaro.org>
3759
3760 * dwarf2-frame.c (clear_pointer_cleanup): Remove.
3761 (dwarf2_frame_cache): Remove reset_cache_cleanup.
3762 (dwarf2_frame_cache):
3763 * frame-unwind.c (frame_unwind_try_unwinder): Catch
3764 RETURN_MASK_ALL and set *this_case to NULL.
3765 * frame-unwind.h: Update comments.
3766
1c90d9f0
YQ
37672017-08-11 Yao Qi <yao.qi@linaro.org>
3768
3769 * dwarf2-frame.c (dwarf2_frame_state_alloc_regs): Remove.
3770 (dwarf2_frame_state_copy_regs): Remove.
3771 (dwarf2_frame_state_free_regs): Remove.
3772 (dwarf2_frame_state::~dwarf2_frame_state): Remove.
3773 (dwarf2_restore_rule): Call method .alloc_regs instead of
3774 dwarf2_frame_state_alloc_regs.
3775 (execute_cfa_program): Likewise. Call dwarf2_frame_state_reg_info
3776 constructor. Call std::move.
3777 (dwarf2_fetch_cfa_info): Don't call dwarf2_frame_state_copy_regs.
3778 (dwarf2_frame_cache): Likewise.
3779
3780 [GDB_SELF_TEST]: Include selftest.h and
3781 selftest-arch.h.
3782 [GDB_SELF_TEST] (execute_cfa_program_test): New function.
3783 (_initialize_dwarf2_frame) [GDB_SELF_TEST]: Register
3784 execute_cfa_program_test.
3785
3786 * dwarf2-frame.h (dwarf2_frame_state_reg_info): Add ctor, dtor,
3787 copy ctor, assignment operator, move assignment.
3788 <alloc_regs>: New method.
3789 <swap>: New method.
3790 (struct dwarf2_frame_state): Delete dtor.
3791 (dwarf2_frame_state_alloc_regs): Remove declaration.
3792 * sparc-tdep.c (sparc_execute_dwarf_cfa_vendor_op): Don't call
3793 dwarf2_frame_state_alloc_regs, use .alloc_regs instead.
3794
afe37d6b
YQ
37952017-08-11 Yao Qi <yao.qi@linaro.org>
3796
3797 * dwarf2-frame.c (dwarf2_frame_state_free): Remove.
3798 (dwarf2_frame_state::dwarf2_frame_state): New.
3799 (dwarf2_frame_state::~dwarf2_frame_state): New.
3800 (dwarf2_fetch_cfa_info): Update.
3801 (dwarf2_frame_cache): Remove old_chain. Change 'fs' to an object
3802 rather than a pointer. Update code.
3803 * dwarf2-frame.h (struct dwarf2_frame_state): Declare ctor and
3804 dtor.
3805 <data_align, code_align, retaddr_column>: Change them to const.
3806 <armcc_cfa_offsets_sf, armcc_cfa_offsets_reversed>: Change them
3807 to bool.
3808
b348037f
YQ
38092017-08-11 Yao Qi <yao.qi@linaro.org>
3810
3811 * dwarf2-frame.h (struct dwarf2_frame_state_reg) <exp_len>: Remove.
3812 <loc.exp>: New field.
3813 * dwarf2-frame.c (execute_cfa_program): Update.
3814 (dwarf2_frame_prev_register): Update.
3815
e7c9de26
PA
38162017-08-10 Pedro Alves <palves@redhat.com>
3817
3818 * common/gdb_unique_ptr.h (xfree_deleter<T[]>): Define.
3819
e8c6b620
JB
38202017-08-09 John Baldwin <jhb@FreeBSD.org>
3821
3822 * fbsd-nat.c (struct fbsd_fork_info): Remove.
3823 (fbsd_pending_children): Use std::list.
3824 (fbsd_remember_child): Likewise.
3825 (fbsd_is_child_pending): Likewise.
3826 (fbsd_pending_vfork_done): Use std::forward_list.
3827 (fbsd_add_vfork_done): Likewise.
3828 (fbsd_is_vfork_done_pending): Likewise.
3829 (fbsd_next_vfork_done): Likewise.
3830
e4a26669
JB
38312017-08-09 John Baldwin <jhb@FreeBSD.org>
3832
3833 * fbsd-nat.c [HAVE_KINFO_GETVMMAP] (struct free_deleter): New.
3834 (fbsd_find_memory_regions): Use free_deleter with std::unique_ptr.
3835 [!HAVE_KINFO_GETVMMAP] (fbsd_find_memory_regions): Use std::string
3836 for `mapfilename'.
3837 (fbsd_xfer_partial): Use gdb::byte_vector.
af3881e6 3838 (fbsd_add_threads): Use gdb::unique_xmalloc_ptr.
e4a26669 3839
142311d3
JB
38402017-08-09 John Baldwin <jhb@FreeBSD.org>
3841
3842 * fbsd-nat.c: [!HAVE_KINFO_GETVMMAP]: Include <sys/user.h> and
3843 "filestuff.h".
3844 (fbsd_find_memory_regions): Fix `mapfile' initialization.
3845
42fa2e0e
TT
38462017-08-09 Tom Tromey <tom@tromey.com>
3847
3848 * skip.c (skiplist_entry): New constructor.
3849 (skiplist_entry::enabled, skiplist_entry::function_is_regexp)
3850 (skiplist_entry::file_is_glob): Now bool.
3851 (skiplist_entry::file, skiplist_entry::function): Now
3852 std::string.
3853 (make_skip_entry): Return a unique_ptr. Use new.
3854 (free_skiplist_entry, free_skiplist_entry_cleanup)
3855 (make_free_skiplist_entry_cleanup): Remove.
3856 (skip_command, skip_disable_command, add_skiplist_entry)
3857 (skip_form_bytes, compile_skip_regexp, skip_command, skip_info)
3858 (skip_file_p, skip_gfile_p, skip_function_p, skip_rfunction_p)
3859 (function_name_is_marked_for_skip): Update.
3860 (skip_delete_command): Update. Use delete.
3861
cd3af38d
JW
38622017-08-09 Jiong Wang <jiong.wang@arm.com>
3863
3864 * aarch64-linux-tdep.c: Include "auxv.h" and "elf/common.h".
3865 (aarch64_linux_core_read_description): New function.
3866 (aarch64_linux_init_abi): Register gdbarch_core_read_description.
3867
29592bde
PA
38682017-08-09 Pedro Alves <palves@redhat.com>
3869
3870 * cp-name-parser.y (cp_comp_to_string): Return a
3871 gdb::unique_xmalloc_ptr<char>.
3872 * cp-support.c (replace_typedefs_qualified_name)
3873 (replace_typedefs): Adjust to use gdb::unique_xmalloc_ptr<char>.
3874 (cp_canonicalize_string_full): Use op= instead of explicit
3875 convertion.
3876 (cp_class_name_from_physname, method_name_from_physname)
3877 (cp_func_name, cp_remove_params): Adjust to use
3878 gdb::unique_xmalloc_ptr<char>.
3879 * cp-support.h (cp_comp_to_string): Return a
3880 gdb::unique_xmalloc_ptr<char>.
3881 * python/py-type.c (typy_lookup_type): Adjust to use
3882 gdb::unique_xmalloc_ptr<char>.
3883
b3340438
L
38842017-08-09 H.J. Lu <hongjiu.lu@intel.com>
3885
3886 * dwarf2read.c (dwarf2_string_attr): Fix a typo.
3887
e88e8651
YQ
38882017-08-09 Alex Lindsay <alexlindsay239@gmail.com>
3889 Yao Qi <yao.qi@linaro.org>
3890
3891 * cp-support.c (cp_canonicalize_string_full): Use
3892 gdb::unique_xmalloc_ptr<char>.
3893 (cp_canonicalize_string): Likewise.
3894
f5a29eb0
YQ
38952017-08-09 Yao Qi <yao.qi@linaro.org>
3896
3897 * features/Makefile (WHICH): Remove i386/ non-linux stuff.
3898 * regformats/i386/amd64-avx-avx512.dat: Remove.
3899 * regformats/i386/amd64-avx-mpx-avx512-pku.dat: Remove.
3900 * regformats/i386/amd64-avx-mpx.dat:Remove.
3901 * regformats/i386/amd64-avx.dat: Remove.
3902 * regformats/i386/amd64-mpx.dat: Remove.
3903 * regformats/i386/i386-avx-avx512.dat: Remove.
3904 * regformats/i386/i386-avx-mpx-avx512-pku.dat: Remove.
3905 * regformats/i386/i386-avx-mpx.dat: Remove.
3906 * regformats/i386/i386-mmx.dat: Remove.
3907 * regformats/i386/i386-mpx.dat: Remove.
3908
57757c2f
YQ
39092017-08-09 Yao Qi <yao.qi@linaro.org>
3910
3911 * amd64-tdep.h (tdesc_x32): Remove the declaration.
3912 * amd64-tdep.c: Don't include features/i386/x32*.c.
3913 (_initialize_amd64_tdep): Don't call initialize_tdesc_x32*
3914 functions.
3915 * features/Makefile (WHICH): Remove i386/x32, i386/x32-avx,
3916 and i386/x32-avx-avx512.
3917 (XMLTOC): Remove i386/x32-avx.xml, i386/x32-avx-avx512.xml,
3918 and i386/x32.xml.
3919 * features/i386/x32-avx-avx512.c: Removed.
3920 * features/i386/x32-avx-avx512.xml: Removed.
3921 * features/i386/x32-avx.c: Removed.
3922 * features/i386/x32-avx.xml: Removed.
3923 * features/i386/x32.c: Removed.
3924 * features/i386/x32.xml: Removed.
3925 * regformats/i386/x32-avx-avx512.dat: Removed.
3926 * regformats/i386/x32-avx.dat: Removed.
3927 * regformats/i386/x32.dat: Removed.
3928
ba7b109b
MR
39292017-08-07 Maciej W. Rozycki <macro@imgtec.com>
3930
3931 PR breakpoints/21886
3932 * mem-break.c (default_memory_insert_breakpoint): Use
3933 `->placed_address' rather than `->reqstd_address' for the
3934 breakpoint location.
3935
e347efc3
MR
39362017-08-07 Maciej W. Rozycki <macro@imgtec.com>
3937
3938 * arch-utils.c (default_print_insn): Remove arch/mach/endian
3939 assertions.
3940
0dba2a6c
MR
39412017-08-07 Maciej W. Rozycki <macro@imgtec.com>
3942
3943 * gdbarch.sh (gdbarch_info): Replace the `tdep_info' member with
3944 a union of `tdep_info', `tdesc_data' and `id'.
3945 * aarch64-tdep.c (aarch64_gdbarch_init): Use `info.tdesc_data'
3946 rather than `info.tdep_info'.
3947 * amd64-linux-tdep.c (amd64_linux_init_abi): Likewise.
3948 * i386-linux-tdep.c (i386_linux_init_abi): Likewise.
3949 * i386-tdep.c (i386_gdbarch_init): Likewise.
3950 * mips-linux-tdep.c (mips_linux_init_abi): Likewise.
3951 * mips-tdep.c (mips_gdbarch_init): Likewise.
3952 * nds32-tdep.c (nds32_gdbarch_init): Likewise.
3953 * rs6000-tdep.c (rs6000_gdbarch_init): Likewise.
3954 * ppc-linux-tdep.c (ppu2spu_sniffer): Use `info.id' rather than
3955 `info.tdep_info'.
3956 (ppc_linux_init_abi): Use `info.tdesc_data' rather than
3957 `info.tdep_info'.
3958 * sparc-tdep.c (sparc32_gdbarch_init): Likewise.
3959 * spu-multiarch.c (spu_gdbarch): Use `info.id' rather than
3960 `info.tdep_info'.
3961 * spu-tdep.c (spu_gdbarch_init): Likewise.
3962 * gdbarch.h: Regenerate.
3963
16eb6b2d
LS
39642017-08-07 Leszek Swirski <leszeks@google.com>
3965
7b005726 3966 PR symtab/20899
16eb6b2d
LS
3967 * dwarf2read.c (dwarf2_string_attr): Allow DW_FORM_GNU_strp_alt.
3968
74cbb09e
SM
39692017-08-07 Simon Marchi <simon.marchi@ericsson.com>
3970
3971 * remote-sim.c (gdbsim_load): Remove char **argv local variable.
3972 (gdbsim_open): Rename gdb_argv args object to argv.
3973
ee0c3293
TT
39742017-08-05 Tom Tromey <tom@tromey.com>
3975
3976 * compile/compile-object-load.c (compile_object_load): Use
3977 gdb::unique_xmalloc_ptr.
3978 * cli/cli-dump.c (scan_filename): Rename from
3979 scan_filename_with_cleanup. Change return type.
3980 (scan_expression): Rename from scan_expression_with_cleanup.
3981 Change return type.
3982 (dump_memory_to_file, dump_value_to_file, restore_command):
3983 Use gdb::unique_xmalloc_ptr. Update.
3984 * cli/cli-cmds.c (find_and_open_script): Use
3985 gdb::unique_xmalloc_ptr.
3986 * tracefile-tfile.c (tfile_open): Use gdb::unique_xmalloc_ptr.
3987 * symmisc.c (maintenance_print_symbols)
3988 (maintenance_print_msymbols): Use gdb::unique_xmalloc_ptr.
3989 * symfile.c (symfile_bfd_open, generic_load)
3990 (add_symbol_file_command, remove_symbol_file_command): Use
3991 gdb::unique_xmalloc_ptr.
3992 * source.c (openp): Use gdb::unique_xmalloc_ptr.
3993 * psymtab.c (maintenance_print_psymbols): Use
3994 gdb::unique_xmalloc_ptr.
3995 * corelow.c (core_open): Use gdb::unique_xmalloc_ptr.
3996 * breakpoint.c (save_breakpoints): Use gdb::unique_xmalloc_ptr.
3997 * solib.c (solib_map_sections): Use gdb::unique_xmalloc_ptr.
3998 (reload_shared_libraries_1): Likewise.
3999
3232fabd
TT
40002017-08-05 Tom Tromey <tom@tromey.com>
4001
4002 * rust-exp.y (rust_op_ptr, set_field): Remove typedefs.
4003 (rust_op_vector, rust_set_vector): New typedefs.
4004 (current_parser): New global.
4005 (work_obstack): Change to pointer type. Update all users.
4006 (rust_ast, pstate): Remove globals.
4007 (struct rust_parser): New.
4008 (%union) <params, field_inits>: Change type.
4009 (start, tuple_expr, unit_expr, struct_expr_list, literal)
4010 (field_expr, expr_list, maybe_expr_list, type_list): Update.
4011 (ast_call_ish, ast_path, ast_function_type, ast_tuple_type)
4012 (convert_params_to_types, convert_params_to_expression): Change
4013 type of "params".
4014 (ast_string): Change type of "fields".
4015 (rust_parse): Make a rust_parser. Remove cleanups.
4016 (rust_lex_tests): Make and install an auto_obstack.
4017
f02fd774
YQ
40182017-08-04 Yao Qi <yao.qi@linaro.org>
4019
4020 * configure.srv (ipa_x32_linux_regobj): New.
4021 * linux-amd64-ipa.c (get_ipa_tdesc): Use X86_TDESC_AVX_AVX512
4022 instead of X86_TDESC_AVX512.
4023 (initialize_low_tracepoint): Call
4024 init_registers_x32_avx_avx512_linux.
4025
91975afd
YQ
40262017-08-04 Yao Qi <yao.qi@linaro.org>
4027
4028 * utils.h (gdb_argv): Add namespace std for nullptr_t.
4029
2331fa3a
RK
40302017-08-03 Ruslan Kabatsayev <b7.10110111@gmail.com>
4031
4032 * MAINTAINERS (Write After Approval): Add Ruslan Kabatsayev.
4033
744e4fe1
TT
40342017-08-03 Tom Tromey <tom@tromey.com>
4035
4036 * utils.c (make_cleanup_freeargv, do_freeargv, gdb_buildargv):
4037 Remove.
4038 * utils.h (make_cleanup_freeargv, gdb_buildargv): Remove.
4039
1c034b67
TT
40402017-08-03 Tom Tromey <tom@tromey.com>
4041
4042 * python/py-param.c (compute_enum_values): Use gdb_argv.
4043
773a1edc
TT
40442017-08-03 Tom Tromey <tom@tromey.com>
4045
4046 * utils.h (struct gdb_argv_deleter): New.
4047 (gdb_argv): New class.
4048 * utils.c (gdb_argv::reset): New method.
4049 * tracepoint.c (delete_trace_variable_command): Use gdb_argv.
4050 * tracefile.c (tsave_command): Use gdb_argv.
4051 * top.c (new_ui_command): Use gdb_argv.
4052 * symmisc.c (maintenance_print_symbols)
4053 (maintenance_print_msymbols, maintenance_expand_symtabs): Use gdb_argv.
4054 * symfile.c (symbol_file_command, generic_load)
4055 (remove_symbol_file_command): Use gdb_argv.
4056 * stack.c (backtrace_command): Use gdb_argv.
4057 * source.c (add_path, show_substitute_path_command)
4058 (unset_substitute_path_command, set_substitute_path_command):
4059 Use gdb_argv.
4060 * skip.c (skip_command): Use gdb_argv. Use gdb_buildargv.
4061 * ser-mingw.c (pipe_windows_open): Use gdb_argv.
4062 * remote.c (extended_remote_run, remote_put_command)
4063 (remote_get_command, remote_delete_command): Use gdb_argv.
4064 * remote-sim.c (gdbsim_load, gdbsim_create_inferior)
4065 (gdbsim_open): Use gdb_argv.
4066 * python/py-cmd.c (gdbpy_string_to_argv): Use gdb_argv.
4067 * psymtab.c (maintenance_print_psymbols): Use gdb_argv.
4068 * procfs.c (procfs_info_proc): Use gdb_argv.
4069 * interps.c (interpreter_exec_cmd): Use gdb_argv.
4070 * infrun.c (handle_command): Use gdb_argv.
4071 * inferior.c (add_inferior_command, clone_inferior_command):
4072 Use gdb_argv.
4073 * guile/scm-string.c (gdbscm_string_to_argv): Use gdb_argv.
4074 * exec.c (exec_file_command): Use gdb_argv.
4075 * cli/cli-cmds.c (alias_command): Use gdb_argv.
4076 * compile/compile.c (build_argc_argv): Use gdb_argv.
4077
0d50bde3
TT
40782017-08-03 Tom Tromey <tom@tromey.com>
4079
4080 * python/python.c (gdbpy_decode_line): Use unique_xmalloc_ptr.
4081
7f968c89
TT
40822017-08-03 Tom Tromey <tom@tromey.com>
4083
4084 * python/python.c (compute_python_string): Return std::string.
4085 (gdbpy_eval_from_control_command): Update.
4086 (do_start_initialization): Use std::string.
4087 * python/py-varobj.c (py_varobj_iter_next): Use string_printf, not
4088 xstrprintf.
4089 * python/py-breakpoint.c (local_setattro): Use string_printf, not
4090 xstrprintf.
4091
3c9ebddd
TT
40922017-08-03 Tom Tromey <tom@tromey.com>
4093
4094 * top.h (do_restore_instream_cleanup): Remove.
4095 * top.c (do_restore_instream_cleanup): Remove.
4096 (read_command_file): Use scoped_restore.
4097 * cli/cli-script.c (execute_user_command): Use scoped_restore.
4098
b51b225e
TT
40992017-08-03 Tom Tromey <tom@tromey.com>
4100
4101 * cli/cli-script.c (execute_user_command)
4102 (execute_control_command): Use scoped_restore.
4103
ac991630
TT
41042017-08-03 Tom Tromey <tom@tromey.com>
4105
4106 * cli/cli-script.c (do_restore_user_call_depth): Remove.
4107 (execute_user_command): Remove user_call_depth; use
4108 user_args_stack's size instead.
4109
898e0c8e
TT
41102017-08-03 Tom Tromey <tom@tromey.com>
4111
4112 * top.h (in_user_command): Remove.
4113 * top.c (in_user_command): Remove.
4114 * cli/cli-script.c (do_restore_user_call_depth)
4115 (execute_user_command): Update.
4116
26fcd5d7
TT
41172017-08-03 Tom Tromey <tom@tromey.com>
4118
4119 * valops.c (search_struct_method): Use gdb::byte_vector.
4120 * valarith.c (value_concat): Use std::vector.
4121 * target.c (memory_xfer_partial): Use gdb::byte_vector.
4122 (simple_search_memory): Likewise.
4123 * printcmd.c (find_string_backward): Use gdb::byte_vector.
4124 * mi/mi-main.c (mi_cmd_data_write_memory): Use gdb::byte_vector.
4125 * gcore.c (gcore_copy_callback): Use gdb::byte_vector.
4126 * elfread.c (elf_rel_plt_read): Use std::string.
4127 * cp-valprint.c (cp_print_value): Use gdb::byte_vector.
4128 * cli/cli-dump.c (restore_section_callback): Use
4129 gdb::byte_vector.
4130
7c218e6c
TT
41312017-08-03 Tom Tromey <tom@tromey.com>
4132
4133 * jit.c (jit_reader_load_command): Use unique_xmalloc_ptr.
4134
31b68d4a
TT
41352017-08-03 Tom Tromey <tom@tromey.com>
4136
4137 * tui/tui-regs.c (tui_restore_gdbout): Remove.
4138 (tui_register_format): Use scoped_restore.
4139
2ec845e7
TT
41402017-08-03 Tom Tromey <tom@tromey.com>
4141
4142 * reverse.c (exec_direction_default): Remove.
4143 (exec_reverse_once): Use scoped_restore.
4144 * remote.c (restore_remote_timeout): Remove.
4145 (remote_flash_erase, remote_flash_write, remote_flash_done)
4146 (readchar, remote_serial_write): Use scoped_restore.
4147 * cli/cli-script.c (struct source_cleanup_lines_args)
4148 (source_cleanup_lines): Remove.
4149 (script_from_file): Use scoped_restore.
4150 * cli/cli-cmds.c (source_verbose_cleanup): Remove.
4151 (source_command): Use scoped_restore.
4152
b3bc8453
TT
41532017-08-03 Tom Tromey <tom@tromey.com>
4154
4155 * utils.h (make_cleanup_free_so): Remove.
4156 * utils.c (do_free_so, make_cleanup_free_so): Remove.
4157 * solist.h (struct so_deleter): New.
4158 (so_list_up): New typedef.
4159 * solib-svr4.c (svr4_read_so_list): Use so_list_up.
4160
e3ad2841
TT
41612017-08-03 Tom Tromey <tom@tromey.com>
4162
4163 * utils.h (make_cleanup_restore_current_language): Remove.
4164 * utils.c (do_restore_current_language)
4165 (make_cleanup_restore_current_language): Remove.
4166 * parse.c (parse_exp_in_context_1)
4167 (parse_expression_with_language): Use
4168 scoped_restore_current_language.
4169 * mi/mi-main.c (mi_cmd_execute): Use
4170 scoped_restore_current_language.
4171 * language.h (scoped_restore_current_language): New class.
4172
b80cf838
TT
41732017-08-03 Tom Tromey <tom@tromey.com>
4174
4175 * compile/compile.c (cleanup_unlink_file): Remove.
4176 (compile_to_object): Use gdb::unlinker.
4177 (eval_compile_command): Likewise.
4178
fad0444a
TT
41792017-08-03 Tom Tromey <tom@tromey.com>
4180
4181 * utils.h (make_cleanup_fclose): Remove.
4182 * utils.c (do_fclose_cleanup, make_cleanup_fclose): Remove.
4183
6e7bc05c
TT
41842017-08-03 Tom Tromey <tom@tromey.com>
4185
4186 * top.c (open_terminal_stream): Return gdb_file_up.
4187 (new_ui_command): Update.
4188
4a45905b
TT
41892017-08-03 Tom Tromey <tom@tromey.com>
4190
4191 * source.c (print_source_lines_base, forward_search_command)
4192 (reverse_search_command): Use gdb_file_up.
4193
7cd06d6e
TT
41942017-08-03 Tom Tromey <tom@tromey.com>
4195
4196 * fbsd-nat.c (fbsd_find_memory_regions): Update.
4197
ed166945
TT
41982017-08-03 Tom Tromey <tom@tromey.com>
4199
4200 * cli/cli-cmds.c (find_and_open_script): Change return type.
4201 Remove "streamp" and "full_path" parameters.
4202 (source_script_with_search): Update.
4203 * auto-load.c (source_script_file): Update.
4204 * cli/cli-cmds.h (find_and_open_script): Change type.
4205 (open_script): New struct.
4206
d419f42d
TT
42072017-08-03 Tom Tromey <tom@tromey.com>
4208
4209 * xml-support.c (xml_fetch_content_from_file): Update.
4210 * ui-file.c (stdio_file::open): Update.
4211 * tracefile-tfile.c (tfile_start): Update.
4212 * remote.c (remote_file_put, remote_file_get): Update.
4213 * nat/linux-procfs.c (linux_proc_get_int)
4214 (linux_proc_pid_get_state, linux_proc_tid_get_name): Update.
4215 * nat/linux-osdata.c (linux_common_core_of_thread): Update.
4216 (command_from_pid, commandline_from_pid, linux_xfer_osdata_cpus)
4217 (print_sockets, linux_xfer_osdata_shm, linux_xfer_osdata_sem)
4218 (linux_xfer_osdata_msg, linux_xfer_osdata_modules): Update.
4219 * nat/linux-btrace.c (linux_determine_kernel_start): Update.
4220 * linux-nat.c (linux_proc_pending_signals): Update.
4221 * dwarf2read.c (write_psymtabs_to_index): Use gdb_file_up.
4222 (file_closer): Remove.
4223 * compile/compile.c (compile_to_object): Update.
4224 * common/filestuff.h (struct gdb_file_deleter): New.
4225 (gdb_file_up): New typedef.
4226 (gdb_fopen_cloexec): Change return type.
4227 * common/filestuff.c (gdb_fopen_cloexec): Return gdb_file_up.
4228 * cli/cli-dump.c (fopen_with_cleanup): Remove.
4229 (dump_binary_file, restore_binary_file): Update.
4230 * auto-load.c (auto_load_objfile_script_1): Update.
4231
4a2b031d
TT
42322017-08-03 Tom Tromey <tom@tromey.com>
4233
4234 * tracepoint.c (tvariables_info_1): Use ui_out_emit_table.
4235 (info_static_tracepoint_markers_command): Likewise.
4236 * solib.c (info_sharedlibrary_command): Use ui_out_emit_table.
4237 * skip.c (skip_info): Use ui_out_emit_table.
4238 * progspace.c (print_program_space): Use ui_out_emit_table.
4239 * osdata.c (info_osdata): Use ui_out_emit_table.
4240 * mi/mi-cmd-info.c (mi_cmd_info_ada_exceptions): Use
4241 ui_out_emit_table.
4242 * linux-thread-db.c (info_auto_load_libthread_db): Use
4243 ui_out_emit_table.
4244 * inferior.c (print_inferior): Use ui_out_emit_table.
4245 * gdb_bfd.c (maintenance_info_bfds): Use ui_out_emit_table.
4246 * breakpoint.c (breakpoint_1): Use ui_out_emit_table.
4247 * auto-load.c (auto_load_info_scripts): Use ui_out_emit_table.
4248 * ada-tasks.c (print_ada_task_info): Use ui_out_emit_table.
4249 * ui-out.h (class ui_out_emit_table): New.
4250
a4f320fd
MR
42512017-08-02 Maciej W. Rozycki <macro@imgtec.com>
4252
4253 * mips-tdep.c (mips_fpu_type_str): New function.
4254 (mips_dump_tdep): Call it.
4255
a2f1f308
MR
42562017-08-01 Maciej W. Rozycki <macro@imgtec.com>
4257
4258 * mips-tdep.c (mips_gdbarch_init): Use MIPS_FPU_TYPE to access
4259 `->mips_fpu_type'.
4260
7e5ed83b
XR
42612017-07-31 Xavier Roirand <roirand@adacore.com>
4262
4263 * solib-darwin.c (DYLD_VERSION_MAX): Increase value.
4264
4c9dc811
XR
42652017-07-27 Xavier Roirand <roirand@adacore.com>
4266
4267 * MAINTAINERS (Write After Approval): Add Xavier Roirand.
4268
27d41eac
YQ
42692017-07-26 Yao Qi <yao.qi@linaro.org>
4270
4271 * cli/cli-cmds.c (maintenancechecklist): New variable.
4272 * gdbcmd.h (maintenancechecklist): Declare it.
4273 * i386-linux-tdep.c (_initialize_i386_linux_tdep) [GDB_SELF_TEST]:
4274 Call i386_linux_read_description with different masks.
4275 * maint.c (maintenance_check_command): New function.
4276 (_initialize_maint_cmds): Call add_prefix_cmd.
4277 * target-descriptions.c (tdesc_reg): override operator != and ==.
4278 (tdesc_type): Likewise.
4279 (tdesc_feature): Likewise.
4280 (target_desc): Likewise.
4281 [GDB_SELF_TEST] (selftests::record_xml_tdesc): New function.
4282 (maintenance_check_xml_descriptions): New function.
4283 (_initialize_target_descriptions) Add command "xml-descriptions".
4284 * target-descriptions.h (selftests::record_xml_tdesc): Declare.
4285
ea03d0d3
YQ
42862017-07-26 Yao Qi <yao.qi@linaro.org>
4287
4288 * i386-linux-tdep.c: Don't include features/i386/i386-*linux.c.
4289 Include features/i386/32bit-*.c.
4290 (i386_linux_read_description): Generate target description if it
4291 doesn't exist.
4292 (_initialize_i386_linux_tdep): Don't call _initialize_tdesc_i386
4293 functions.
4294 * features/i386/32bit-linux.c: Re-generated.
4295 * features/i386/32bit-sse.c: Likewise.
4296 * target-descriptions.c (print_c_feature::visit): Print code to
4297 set register number if needed.
4298 (print_c_feature) <m_next_regnum>: New field.
4299
25aa13e5
YQ
43002017-07-26 Yao Qi <yao.qi@linaro.org>
4301
4302 * features/Makefile (CFILES): Rename with TDESC_CFILES.
4303 (FEATURE_XMLFILES): New.
4304 (FEATURE_CFILES): New.
4305 New rules.
4306 (clean-cfiles): Remove generated c files.
4307 * features/i386/32bit-avx.c: Generated.
4308 * features/i386/32bit-avx512.c: Generated.
4309 * features/i386/32bit-core.c: Generated.
4310 * features/i386/32bit-linux.c: Generated.
4311 * features/i386/32bit-mpx.c: Generated.
4312 * features/i386/32bit-pkeys.c: Generated.
4313 * features/i386/32bit-sse.c: Generated.
4314 * target-descriptions.c: Include algorithm.
4315 (tdesc_element_visitor): Add method visit_end.
4316 (print_c_tdesc): Implement visit_end.
4317 (print_c_tdesc:: m_filename_after_features): Move it to
4318 protected.
4319 (print_c_feature): New class.
4320 (maint_print_c_tdesc_cmd): Use print_c_feature if XML file
4321 name starts with "i386/32bit-".
4322
6eb1e6a8
YQ
43232017-07-26 Yao Qi <yao.qi@linaro.org>
4324
4325 * target-descriptions.c (tdesc_element_visitor): New class.
4326 (tdesc_element): New class.
4327 (tdesc_reg): Inherit from tdesc_element.
4328 (tdesc_reg::accept): New function.
4329 (tdesc_type): Inherit from tdesc_element.
4330 (tdesc_type::accept): New function.
4331 (tdesc_feature): Inherit from tdesc_element.
4332 (tdesc_feature::accept): New function.
4333 (target_desc): Inherit from tdesc_element.
4334 (target_desc::target_desc): New.
4335 (target_desc::~target_desc): New.
4336 (target_desc::accept): New.
4337 (allocate_target_description): Use new.
4338 (free_target_description): Use delete.
4339 (print_c_tdesc): New class.
4340 (maint_print_c_tdesc_cmd): Adjust.
4341
4342 * features/aarch64.c: Re-generated.
4343 * features/arc-arcompact.c: Re-generated.
4344 * features/arc-v2.c: Re-generated.
4345 * features/arm/arm-with-iwmmxt.c: Re-generated.
4346 * features/arm/arm-with-m.c: Re-generated.
4347 * features/arm/arm-with-m-fpa-layout.c: Re-generated.
4348 * features/arm/arm-with-m-vfp-d16.c: Re-generated.
4349 * features/arm/arm-with-neon.c: Re-generated.
4350 * features/arm/arm-with-vfpv2.c: Re-generated.
4351 * features/arm/arm-with-vfpv3.c: Re-generated.
4352 * features/i386/amd64-avx-avx512.c: Re-generated.
4353 * features/i386/amd64-avx-avx512-linux.c: Re-generated.
4354 * features/i386/amd64-avx.c: Re-generated.
4355 * features/i386/amd64-avx-linux.c: Re-generated.
4356 * features/i386/amd64-avx-mpx-avx512-pku.c: Re-generated.
4357 * features/i386/amd64-avx-mpx-avx512-pku-linux.c: Re-generated.
4358 * features/i386/amd64-avx-mpx.c: Re-generated.
4359 * features/i386/amd64-avx-mpx-linux.c: Re-generated.
4360 * features/i386/amd64.c: Re-generated.
4361 * features/i386/amd64-linux.c: Re-generated.
4362 * features/i386/amd64-mpx.c: Re-generated.
4363 * features/i386/amd64-mpx-linux.c: Re-generated.
4364 * features/i386/i386-avx-avx512.c: Re-generated.
4365 * features/i386/i386-avx-avx512-linux.c: Re-generated.
4366 * features/i386/i386-avx.c: Re-generated.
4367 * features/i386/i386-avx-linux.c: Re-generated.
4368 * features/i386/i386-avx-mpx-avx512-pku.c: Re-generated.
4369 * features/i386/i386-avx-mpx-avx512-pku-linux.c: Re-generated.
4370 * features/i386/i386-avx-mpx.c: Re-generated.
4371 * features/i386/i386-avx-mpx-linux.c: Re-generated.
4372 * features/i386/i386.c: Re-generated.
4373 * features/i386/i386-linux.c: Re-generated.
4374 * features/i386/i386-mmx.c: Re-generated.
4375 * features/i386/i386-mmx-linux.c: Re-generated.
4376 * features/i386/i386-mpx.c: Re-generated.
4377 * features/i386/i386-mpx-linux.c: Re-generated.
4378 * features/i386/x32-avx-avx512.c: Re-generated.
4379 * features/i386/x32-avx-avx512-linux.c: Re-generated.
4380 * features/i386/x32-avx.c: Re-generated.
4381 * features/i386/x32-avx-linux.c: Re-generated.
4382 * features/i386/x32.c: Re-generated.
4383 * features/i386/x32-linux.c: Re-generated.
4384 * features/microblaze.c: Re-generated.
4385 * features/microblaze-with-stack-protect.c: Re-generated.
4386 * features/mips64-dsp-linux.c: Re-generated.
4387 * features/mips64-linux.c: Re-generated.
4388 * features/mips-dsp-linux.c: Re-generated.
4389 * features/mips-linux.c: Re-generated.
4390 * features/nds32.c: Re-generated.
4391 * features/nios2.c: Re-generated.
4392 * features/nios2-linux.c: Re-generated.
4393 * features/rs6000/powerpc-32.c: Re-generated.
4394 * features/rs6000/powerpc-32l.c: Re-generated.
4395 * features/rs6000/powerpc-403.c: Re-generated.
4396 * features/rs6000/powerpc-403gc.c : Re-generated.
4397 * features/rs6000/powerpc-405.c: Re-generated.
4398 * features/rs6000/powerpc-505.c: Re-generated.
4399 * features/rs6000/powerpc-601.c: Re-generated.
4400 * features/rs6000/powerpc-602.c: Re-generated.
4401 * features/rs6000/powerpc-603.c: Re-generated.
4402 * features/rs6000/powerpc-604.c: Re-generated.
4403 * features/rs6000/powerpc-64.c: Re-generated.
4404 * features/rs6000/powerpc-64l.c: Re-generated.
4405 * features/rs6000/powerpc-7400.c: Re-generated.
4406 * features/rs6000/powerpc-750.c: Re-generated.
4407 * features/rs6000/powerpc-860.c: Re-generated.
4408 * features/rs6000/powerpc-altivec32.c: Re-generated.
4409 * features/rs6000/powerpc-altivec32l.c: Re-generated.
4410 * features/rs6000/powerpc-altivec64.c: Re-generated.
4411 * features/rs6000/powerpc-altivec64l.c: Re-generated.
4412 * features/rs6000/powerpc-cell32l.c: Re-generated.
4413 * features/rs6000/powerpc-cell64l.c: Re-generated.
4414 * features/rs6000/powerpc-e500.c: Re-generated.
4415 * features/rs6000/powerpc-e500l.c: Re-generated.
4416 * features/rs6000/powerpc-isa205-32l.c: Re-generated.
4417 * features/rs6000/powerpc-isa205-64l.c: Re-generated.
4418 * features/rs6000/powerpc-isa205-altivec32l.c: Re-generated.
4419 * features/rs6000/powerpc-isa205-altivec64l.c: Re-generated.
4420 * features/rs6000/powerpc-isa205-vsx32l.c: Re-generated.
4421 * features/rs6000/powerpc-isa205-vsx64l.c: Re-generated.
4422 * features/rs6000/powerpc-vsx32.c: Re-generated.
4423 * features/rs6000/powerpc-vsx32l.c: Re-generated.
4424 * features/rs6000/powerpc-vsx64.c: Re-generated.
4425 * features/rs6000/powerpc-vsx64l.c: Re-generated.
4426 * features/rs6000/rs6000.c: Re-generated.
4427 * features/s390-linux32.c: Re-generated.
4428 * features/s390-linux32v1.c: Re-generated.
4429 * features/s390-linux32v2.c: Re-generated.
4430 * features/s390-linux64.c: Re-generated.
4431 * features/s390-linux64v1.c: Re-generated.
4432 * features/s390-linux64v2.c: Re-generated.
4433 * features/s390-te-linux64.c: Re-generated.
4434 * features/s390-tevx-linux64.c: Re-generated.
4435 * features/s390-vx-linux64.c: Re-generated.
4436 * features/s390x-linux64.c: Re-generated.
4437 * features/s390x-linux64v1.c: Re-generated.
4438 * features/s390x-linux64v2.c: Re-generated.
4439 * features/s390x-te-linux64.c: Re-generated.
4440 * features/s390x-tevx-linux64.c: Re-generated.
4441 * features/s390x-vx-linux64.c: Re-generated.
4442 * features/sparc/sparc32-solaris.c: Re-generated.
4443 * features/sparc/sparc64-solaris.c: Re-generated.
4444 * features/tic6x-c62x.c: Re-generated.
4445 * features/tic6x-c62x-linux.c: Re-generated.
4446 * features/tic6x-c64x.c: Re-generated.
4447 * features/tic6x-c64x-linux.c: Re-generated.
4448 * features/tic6x-c64xp.c: Re-generated.
4449 * features/tic6x-c64xp-linux.c: Re-generated.
4450
35b4818d
YQ
44512017-07-26 Yao Qi <yao.qi@linaro.org>
4452
4453 * i386-linux-tdep.c (i386_linux_read_description): New function.
4454 (i386_linux_core_read_description): Call
4455 i386_linux_read_description.
4456 * i386-linux-tdep.h (i386_linux_read_description): Declare.
4457 (tdesc_i386_linux, tdesc_i386_mmx_linux): Remove declarations.
4458 (tdesc_i386_avx_linux, tdesc_i386_mpx_linux): Likewise
4459 (tdesc_i386_avx_mpx_linux, tdesc_i386_avx_avx512_linux): Likewise.
4460 (tdesc_i386_avx_mpx_avx512_pku_linux): Likewise.
4461 * x86-linux-nat.c (x86_linux_read_description): Call
4462 i386_linux_read_description.
4463
8e2141c6
YQ
44642017-07-26 Yao Qi <yao.qi@linaro.org>
4465
4466 * NEWS: Mention it.
4467 * features/Makefile (%.c: %.xml): Pass the xml file name to
4468 command "maint print c-tdesc".
4469 * target-descriptions.c (maint_print_c_tdesc_cmd): Get file
4470 name from 'arg'.
4471
b468ff4c
YQ
44722017-07-26 Yao Qi <yao.qi@linaro.org>
4473
4474 * target-descriptions.c (target_desc): Add ctor and dtor. Do
4475 in-class initialization.
4476 (tdesc_create_feature): Call new instead of XCNEW.
4477 (free_target_description): Ue delete.
4478
b9c0e1b4
JB
44792017-07-25 John Baldwin <jhb@FreeBSD.org>
4480
4481 * configure.nat: Add "-lkvm" for NetBSD/sparc64 and fix typo.
4482
a04b5337
YQ
44832017-07-25 Yao Qi <yao.qi@linaro.org>
4484
4485 * amd64-tdep.c (amd64_init_abi): Make argument default_tdesc
4486 constant.
4487 (amd64_x32_init_abi): Likewise.
4488 * amd64-tdep.h (amd64_init_abi): Update declaration.
4489 (amd64_x32_init_abi): Likewise.
4490
02ad7fc2
YQ
44912017-07-25 Yao Qi <yao.qi@linaro.org>
4492
4493 PR tdep/21717
4494 * arm-linux-nat.c (arm_linux_fetch_inferior_registers): Update
4495 condition for FPSCR.
4496 (arm_linux_store_inferior_registers): Likewise.
4497
b6f48cb0
TT
44982017-07-22 Tom Tromey <tom@tromey.com>
4499
4500 * break-catch-syscall.c (struct catch_syscall_inferior_data)
4501 <syscalls_counts>: Now a std::vector.
4502 (get_catch_syscall_inferior_data): Use "new".
4503 (catch_syscall_inferior_data_cleanup): Use "delete".
4504 (insert_catch_syscall, remove_catch_syscall)
4505 (clear_syscall_counts): Update.
4506
e12c9b7a
TT
45072017-07-22 Tom Tromey <tom@tromey.com>
4508
4509 * break-catch-syscall.c (syscall_catchpoint)
4510 <syscalls_to_be_caught>: Now a std::vector<int>
4511 (~syscall_catchpoint): Remove.
4512 (insert_catch_syscall, remove_catch_syscall)
4513 (breakpoint_hit_catch_syscall, print_one_catch_syscall)
4514 (print_mention_catch_syscall, print_recreate_catch_syscall):
4515 Update.
4516 (create_syscall_event_catchpoint): Change type of "filter"
4517 parameter.
4518 (catch_syscall_split_args): Return a std::vector.
4519 (catch_syscall_command_1, catching_syscall_number_1): Update.
4520
4fa8aeac
TT
45212017-07-22 Tom Tromey <tom@tromey.com>
4522
4523 * break-catch-throw.c (struct exception_catchpoint)
4524 <exception_rx>: Now a std::string.
4525 (~exception_catchpoint): Remove.
4526 (print_one_detail_exception_catchpoint): Update.
4527 (handle_gnu_v3_exceptions): Change type of except_rx.
4528 (extract_exception_regexp): Return a std::string.
4529 (catch_exception_command_1): Update.
4530
f746a154
TT
45312017-07-22 Tom Tromey <tom@tromey.com>
4532
4533 * break-catch-sig.c (gdb_signal_type): Remove typedef.
4534 (struct signal_catchpoint) <signals_to_be_caught>: Now a
4535 std::vector.
4536 <catch_all>: Now a bool.
4537 (~signal_catchpoint): Remove.
4538 (signal_catchpoint_insert_location)
4539 (signal_catchpoint_remove_location)
4540 (signal_catchpoint_breakpoint_hit, signal_catchpoint_print_one)
4541 (signal_catchpoint_print_mention)
4542 (signal_catchpoint_print_recreate)
4543 (signal_catchpoint_explains_signal): Update.
4544 (create_signal_catchpoint): Change type of "filter" and
4545 "catch_all".
4546 (catch_signal_split_args): Return a std::vector. Change type of
4547 "catch_all".
4548 (catch_signal_command): Update.
4549
47e77640
PA
45502017-07-20 Pedro Alves <palves@redhat.com>
4551
4552 * ada-lang.c (ada_language_defn): Make extern.
4553 (_initialize_ada_language): Remove add_language call.
4554 * c-lang.c (c_language_defn, cplus_language_defn)
4555 (asm_language_defn, minimal_language_defn): Make extern.
4556 (_initialize_c_language): Delete.
4557 * completer.c (compare_cstrings): Delete, moved to utils.h.
4558 * d-lang.c (d_language_defn): Make extern.
4559 (_initialize_d_language): Remove add_language calls.
4560 * defs.h (enum language): Add comment.
4561 * f-lang.c (f_language_defn): Make extern.
4562 (_initialize_f_language): Remove add_language call.
4563 * go-lang.c (go_language_defn): Make extern.
4564 (_initialize_go_language): Remove add_language call.
4565 * language.c: Include <algorithm>.
4566 (languages): Redefine as const array.
4567 (languages_size, languages_allocsize, DEFAULT_ALLOCSIZE): Delete.
4568 (set_language_command): Handle "local". Use for-range loop.
4569 (set_language): Remove loop.
4570 (language_enum): Rewrite.
4571 (language_def, language_str): Remove loops.
4572 (add_language): Delete.
4573 (add_set_language_command): New, based on add_languages.
4574 (skip_language_trampoline): Adjust.
4575 (local_language_defn): Delete.
4576 (language_gdbarch_post_init): Adjust.
4577 (_initialize_language): Remove add_language calls. Call
4578 add_set_language_command.
4579 * language.h (add_language): Delete.
4580 (auto_language_defn)
4581 (unknown_language_defn, minimal_language_defn, ada_language_defn)
4582 (asm_language_defn, c_language_defn, cplus_language_defn)
4583 (d_language_defn, f_language_defn, go_language_defn)
4584 (m2_language_defn, objc_language_defn, opencl_language_defn)
4585 (pascal_language_defn, rust_language_defn): Declare.
4586 * m2-lang.c (m2_language_defn): Make extern.
4587 (_initialize_m2_language): Remove add_language call.
4588 * objc-lang.c (objc_language_defn): Make extern.
4589 (_initialize_objc_language): Remove add_language call.
4590 * opencl-lang.c (opencl_language_defn): Make extern.
4591 (_initialize_opencl_language): Remove add_language call.
4592 * p-lang.c (pascal_language_defn): Make extern.
4593 (_initialize_pascal_language): Delete.
4594 * rust-lang.c (rust_language_defn): Make extern.
4595 (_initialize_rust_language): Delete.
4596 * utils.h (compare_cstrings): New static inline function.
4597
edb0c9cb
PA
45982017-07-20 Pedro Alves <palves@redhat.com>
4599
4600 * ada-lang.c (ada_to_fixed_type_1): Adjust.
4601 (get_var_value): Constify parameters.
4602 (get_int_var_value): Change prototype.
4603 (to_fixed_range_type): Adjust.
4604 * ada-lang.h (get_int_var_value): Change prototype.
4605
a778f165
PA
46062017-07-20 Pedro Alves <palves@redhat.com>
4607
4608 * dwarf2read.c (dw2_lookup_symbol): Use
4609 SYMBOL_MATCHES_SEARCH_NAME.
4610 * psymtab.c (psym_lookup_symbol): Use SYMBOL_MATCHES_SEARCH_NAME.
4611
42edd901
PA
46122017-07-20 Pedro Alves <palves@redhat.com>
4613
4614 * block.c (block_iter_name_step, block_iter_name_first)
4615 (block_iter_name_next): Delete.
4616 (block_lookup_symbol_primary): Adjust to use
4617 dict_iter_match_first/dict_iter_match_next.
4618 * block.h (block_iter_name_first, block_iter_name_next): Delete
4619 declarations.
4620 (ALL_BLOCK_SYMBOLS_WITH_NAME): Adjust to use
4621 dict_iter_match_first/dict_iter_match_next.
4622
cf325299
PA
46232017-07-20 Pedro Alves <palves@redhat.com>
4624
4625 * cp-support.c (cp_find_first_component_aux): Add missing case for
4626 end of string.
4627
c5ed0576
DB
46282017-07-18 David Blaikie <dblaikie@gmail.com>
4629
4630 * dwarf2read.c (create_cus_hash_table): Re-add lost initialization
4631 of dwo_cu's dwo_file.
4632
27841e76
YQ
46332017-07-18 Yao Qi <yao.qi@linaro.org>
4634
4635 * remote.c (store_registers_using_G): Remove one line comment.
4636
cfb7e58b
YQ
46372017-07-18 Yao Qi <yao.qi@linaro.org>
4638
4639 * regcache.c (regcache_cpy): Simplify it.
4640 (regcache::cpy_no_passthrough): Remove it.
4641 * regcache.h (cpy_no_passthrough): Remove it.
4642 (regcache_dup, regcache_cpy): Update comments.
4643
386535dd
PA
46442017-07-18 Pedro Alves <palves@redhat.com>
4645
4646 * remote-sim.c (sim_command_completer): Adjust to work with a
4647 completion_tracker instead of a VEC.
4648
c45ec17c
PA
46492017-07-17 Pedro Alves <palves@redhat.com>
4650
4651 * completer.c (complete_source_filenames): New function.
4652 (complete_address_and_linespec_locations): New function.
4653 (location_completer): Use complete_address_and_linespec_locations.
4654 (completion_tracker::build_completion_result): Honor the tracker's
4655 request to suppress append.
4656 * completer.h (completion_tracker::suppress_append_ws)
4657 (completion_tracker::set_suppress_append_ws): New methods.
4658 (completion_tracker::m_suppress_append_ws): New field.
4659 (complete_source_filenames): New declaration.
4660 * linespec.c (linespec_complete_what): New.
4661 (struct ls_parser) <complete_what, completion_word,
4662 completion_quote_char, completion_quote_end, completion_tracker>:
4663 New fields.
4664 (string_find_incomplete_keyword_at_end): New.
4665 (linespec_lexer_lex_string): Record quote char. If in completion
4666 mode, don't throw.
4667 (linespec_lexer_consume_token): Advance the completion word point.
4668 (linespec_lexer_peek_token): Save/restore completion info.
4669 (save_stream_and_consume_token): New.
4670 (set_completion_after_number): New.
4671 (linespec_parse_basic): Set what to complete next depending on
4672 token. Handle function and label completions specially.
4673 (parse_linespec): Disable objc shortcut in completion mode. Set
4674 what to complete next depending on token type. Skip keyword if in
4675 completion mode.
4676 (complete_linespec_component, linespec_complete): New.
4677 * linespec.h (linespec_complete): Declare.
4678
be966d42
PA
46792017-07-17 Pedro Alves <palves@redhat.com>
4680
4681 * linespec.c (linespec_lexer_lex_string, find_toplevel_char):
4682 Handle 'operator<' / 'operator<<'.
4683
a2459270
PA
46842017-07-17 Pedro Alves <palves@redhat.com>
4685
4686 * completer.c (collect_explicit_location_matches): Handle
4687 MATCH_LABEL.
4688 (convert_explicit_location_to_linespec): New, factored out from
4689 ...
4690 (convert_explicit_location_to_sals): ... this.
4691 (complete_label): New.
4692 (linespec_complete_label, find_label_symbols_in_block): New.
4693 (find_label_symbols): Add completion_mode parameter and adjust to
4694 call find_label_symbols_in_block.
4695 * linespec.h (linespec_complete_label): Declare.
4696
c6756f62
PA
46972017-07-17 Pedro Alves <palves@redhat.com>
4698
4699 * ada-lang.c (ada_collect_symbol_completion_matches): Add
4700 complete_symbol_mode parameter.
4701 * cli/cli-cmds.c (complete_command): Get the completion result out
4702 of the handle_brkchars tracker if used a custom word point.
4703 * completer.c: Include "linespec.h".
4704 (enum explicit_location_match_type) <MATCH_LINE>: New enumerator.
4705 (advance_to_expression_complete_word_point): New.
4706 (completion_tracker::completes_to_completion_word): New.
4707 (complete_files_symbols): Pass down
4708 complete_symbol_mode::EXPRESSION.
4709 (explicit_options, probe_options): New.
4710 (collect_explicit_location_matches): Complete on the
4711 explictit_loc->foo instead of word. Use
4712 linespec_complete_function. Handle MATCH_LINE. Handle offering
4713 keyword and options completions.
4714 (backup_text_ptr): Delete.
4715 (skip_keyword): New.
4716 (complete_explicit_location): Remove 'word' parameter. Add
4717 language, quoted_arg_start and quoted_arg_end parameters.
4718 Rewrite, parsing left to right.
4719 (location_completer): Rewrite.
4720 (location_completer_handle_brkchars): New function.
4721 (symbol_completer): Pass down complete_symbol_mode::EXPRESSION.
4722 (enum complete_line_internal_reason): Adjust comments.
4723 (completion_tracker::discard_completions): New.
4724 (completer_handle_brkchars_func_for_completer): Handle
4725 location_completer.
4726 (gdb_custom_word_point_brkchars)
4727 (gdb_org_rl_basic_quote_characters): New.
4728 (gdb_completion_word_break_characters_throw)
4729 (completion_find_completion_word): Handle trackers that use a
4730 custom word point.
4731 (completion_tracker::advance_custom_word_point_by): New.
4732 (completion_tracker::build_completion_result): Don't rely on
4733 readline appending the quote char.
4734 (gdb_rl_attempted_completion_function_throw): Handle trackers that
4735 use a custom word point.
4736 (gdb_rl_attempted_completion_function): Restore
4737 rl_basic_quote_characters.
4738 * completer.h (class completion_tracker): Extend intro comment.
4739 (completion_tracker::set_quote_char)
4740 (completion_tracker::quote_char)
4741 (completion_tracker::set_use_custom_word_point)
4742 (completion_tracker::use_custom_word_point)
4743 (completion_tracker::custom_word_point)
4744 (completion_tracker::set_custom_word_point)
4745 (completion_tracker::advance_custom_word_point_by)
4746 (completion_tracker::completes_to_completion_word)
4747 (completion_tracker::discard_completions): New methods.
4748 (completion_tracker::m_quote_char)
4749 (completion_tracker::m_use_custom_word_point)
4750 (completion_tracker::m_custom_word_point): New fields.
4751 (advance_to_expression_complete_word_point): Declare.
4752 * f-lang.c (f_collect_symbol_completion_matches): Add
4753 complete_symbol_mode parameter.
4754 * language.h (struct language_defn)
4755 <la_collect_symbol_completion_matches>: Add complete_symbol_mode
4756 parameter.
4757 * linespec.c (linespec_keywords): Add NULL terminator. Make extern.
4758 (linespec_complete_function): New function.
4759 (linespec_lexer_lex_keyword): Adjust.
4760 * linespec.h (linespec_keywords, linespec_complete_function): New
4761 declarations.
4762 * location.c (find_end_quote): New function.
4763 (explicit_location_lex_one): Add explicit_completion_info
4764 parameter. Save quoting info. Don't throw if being called for
4765 completion. Don't handle Ada operators here.
4766 (is_cp_operator, skip_op_false_positives, first_of)
4767 (explicit_location_lex_one_function): New function.
4768 (string_to_explicit_location): Replace 'dont_throw' parameter with
4769 an explicit_completion_info pointer parameter. Handle it. Don't
4770 use explicit_location_lex_one to lex function names. Use
4771 explicit_location_lex_one_function instead.
4772 * location.h (struct explicit_completion_info): New.
4773 (string_to_explicit_location): Replace 'dont_throw' parameter with
4774 an explicit_completion_info pointer parameter.
4775 * symtab.c (default_collect_symbol_completion_matches_break_on):
4776 Add complete_symbol_mode parameter. Handle LINESPEC mode.
4777 (default_collect_symbol_completion_matches)
4778 (collect_symbol_completion_matches): Add complete_symbol_mode
4779 parameter.
4780 (collect_symbol_completion_matches_type): Pass down
4781 complete_symbol_mode::EXPRESSION.
4782 (collect_file_symbol_completion_matches): Add complete_symbol_mode
4783 parameter. Handle LINESPEC mode.
4784 * symtab.h (complete_symbol_mode): New.
4785 (default_collect_symbol_completion_matches_break_on)
4786 (default_collect_symbol_completion_matches)
4787 (collect_symbol_completion_matches)
4788 (collect_file_symbol_completion_matches): Add complete_symbol_mode
4789 parameter.
4790
1d550c82
PA
47912017-07-17 Pedro Alves <palves@redhat.com>
4792
4793 * utils.c (enum class strncmp_iw_mode): New.
4794 (strcmp_iw): Rename to ...
4795 (strncmp_iw_with_mode): ... this. Add string2_len and mode
4796 parameters. Handle them.
4797 (strncmp_iw): New.
4798 (strcmp_iw): Reimplement as wrapper around strncmp_iw_with_mode.
4799 * utils.h (strncmp_iw): Declare.
4800 (strcmp_iw): Move describing comments here.
4801
8090b426
PA
48022017-07-17 Pedro Alves <palves@redhat.com>
4803
4804 * c-exp.y (operator_stoken): Use CP_OPERATOR_LEN and
4805 CP_OPERATOR_STR.
4806 * c-typeprint.c (is_type_conversion_operator): Use
4807 CP_OPERATOR_STR.
4808 * cp-support.c (LENGTH_OF_OPERATOR): Delete.
4809 (cp_find_first_component_aux): Use CP_OPERATOR_STR and
4810 CP_OPERATOR_LEN.
4811 * cp-support.h (CP_OPERATOR_STR, CP_OPERATOR_LEN): New.
4812 * gnu-v2-abi.c (gnuv2_is_operator_name): Use CP_OPERATOR_STR.
4813 * gnu-v3-abi.c (gnuv3_is_operator_name): Use CP_OPERATOR_STR.
4814 * linespec.c (linespec_lexer_lex_string): Use CP_OPERATOR_LEN and
4815 CP_OPERATOR_STR.
4816 * location.c: Include "cp-support.h".
4817 (explicit_location_lex_one): Use CP_OPERATOR_LEN and
4818 CP_OPERATOR_STR.
4819 * symtab.c (operator_chars): Use CP_OPERATOR_STR and
4820 CP_OPERATOR_LEN.
4821
6a2c1b87
PA
48222017-07-17 Pedro Alves <palves@redhat.com>
4823
4824 * cli/cli-cmds.c (complete_command): Use a completion tracker
4825 along with completion_find_completion_word for handle_brkchars
4826 phase.
4827 * completer.c (RL_QF_SINGLE_QUOTE, RL_QF_DOUBLE_QUOTE)
4828 (RL_QF_BACKSLASH, RL_QF_OTHER_QUOTE): New.
4829 (struct gdb_rl_completion_word_info): New.
4830 (gdb_rl_find_completion_word): New.
4831 (completion_find_completion_word): New.
4832 * completer.h (completion_find_completion_word): Declare.
4833
eb3ff9a5
PA
48342017-07-17 Pedro Alves <palves@redhat.com>
4835
4836 * ada-lang.c (symbol_completion_match): Adjust comments.
4837 (symbol_completion_add): Replace vector parameter with
4838 completion_tracker parameter. Use it.
4839 (ada_make_symbol_completion_list): Rename to...
4840 (ada_collect_symbol_completion_matches): ... this. Add
4841 completion_tracker parameter and use it.
4842 (ada_language_defn): Adjust.
4843 * break-catch-syscall.c (catch_syscall_completer): Adjust
4844 prototype and work with completion_tracker instead of VEC.
4845 * breakpoint.c (condition_completer): Adjust prototype and work
4846 with completion_tracker instead of VEC.
4847 * c-lang.c (c_language_defn, cplus_language_defn)
4848 (asm_language_defn, minimal_language_defn): Adjust to renames.
4849 * cli/cli-cmds.c (complete_command): Rework using
4850 completion_tracker. Catch exceptions when completing.
4851 * cli/cli-decode.c (integer_unlimited_completer)
4852 (complete_on_cmdlist, complete_on_enum): Adjust prototype and work
4853 with completion_tracker instead of VEC.
4854 * command.h (struct completion_tracker): Forward declare.
4855 (completer_ftype, completer_handle_brkchars_ftype): Change
4856 types.
4857 (complete_on_cmdlist, complete_on_enum): Adjust.
4858 * completer.c: Include <algorithm>.
4859 (struct gdb_completer_state): New.
4860 (current_completion): New global.
4861 (readline_line_completion_function): Delete.
4862 (noop_completer, filename_completer)
4863 (filename_completer_handle_brkchars, complete_files_symbols)
4864 (linespec_location_completer): Adjust to work with a
4865 completion_tracker instead of a VEC.
4866 (string_or_empty): New.
4867 (collect_explicit_location_matches): Adjust to work with a
4868 completion_tracker instead of a VEC.
4869 (explicit_location_completer): Rename to ...
4870 (complete_explicit_location): ... this and adjust to work with a
4871 completion_tracker instead of a VEC.
4872 (location_completer): Adjust to work with a completion_tracker
4873 instead of a VEC.
4874 (add_struct_fields): Adjust to work with a completion_list instead
4875 of VEC.
4876 (expression_completer): Rename to ...
4877 (complete_expression): ... this and adjust to work with a
4878 completion_tracker instead of a VEC. Use complete_files_symbols.
4879 (expression_completer): Reimplement on top of complete_expression.
4880 (symbol_completer): Adjust to work with a completion_tracker
4881 instead of a VEC.
4882 (enum complete_line_internal_reason): Add describing comments.
4883 (complete_line_internal_normal_command): Adjust to work with a
4884 completion_tracker instead of a VEC.
4885 (complete_line_internal): Rename to ...
4886 (complete_line_internal_1): ... this and adjust to work with a
4887 completion_tracker instead of a VEC. Assert TEXT is NULL in the
4888 handle_brkchars phase.
4889 (new_completion_tracker): Delete.
4890 (complete_line_internal): Reimplement as TRY/CATCH wrapper around
4891 complete_line_internal_1.
4892 (free_completion_tracker): Delete.
4893 (INITIAL_COMPLETION_HTAB_SIZE): New.
4894 (completion_tracker::completion_tracker)
4895 (completion_tracker::~completion_tracker): New.
4896 (maybe_add_completion): Delete.
4897 (completion_tracker::maybe_add_completion)
4898 (completion_tracker::add_completion)
4899 (completion_tracker::add_completions): New.
4900 (throw_max_completions_reached_error): Delete.
4901 (complete_line): Adjust to work with a completion_tracker instead
4902 of a VEC. Don't create a completion_tracker_t or check for max
4903 completions here.
4904 (command_completer, command_completer_handle_brkchars)
4905 (signal_completer, reg_or_group_completer_1)
4906 (reg_or_group_completer, default_completer_handle_brkchars):
4907 Adjust to work with a completion_tracker.
4908 (gdb_completion_word_break_characters_throw): New.
4909 (gdb_completion_word_break_characters): Reimplement.
4910 (line_completion_function): Delete.
4911 (completion_tracker::recompute_lowest_common_denominator)
4912 (expand_preserving_ws)
4913 (completion_tracker::build_completion_result)
4914 (completion_result::completion_result)
4915 (completion_result::completion_result)
4916 (completion_result::~completion_result)
4917 (completion_result::completion_result)
4918 (completion_result::release_match_list, compare_cstrings)
4919 (completion_result::sort_match_list)
4920 (completion_result::reset_match_list)
4921 (gdb_rl_attempted_completion_function_throw)
4922 (gdb_rl_attempted_completion_function): New.
4923 * completer.h (completion_list, struct completion_result)
4924 (class completion_tracker): New.
4925 (complete_line): Add completion_tracker parameter.
4926 (readline_line_completion_function): Delete.
4927 (gdb_rl_attempted_completion_function): New.
4928 (noop_completer, filename_completer, expression_completer)
4929 (location_completer, symbol_completer, command_completer)
4930 (signal_completer, reg_or_group_completer): Update prototypes.
4931 (completion_tracker_t, new_completion_tracker)
4932 (make_cleanup_free_completion_tracker): Delete.
4933 (enum maybe_add_completion_enum): Delete.
4934 (maybe_add_completion): Delete.
4935 (throw_max_completions_reached_error): Delete.
4936 * corefile.c (complete_set_gnutarget): Adjust to work with a
4937 completion_tracker instead of a VEC.
4938 * cp-abi.c (cp_abi_completer): Adjust to work with a
4939 completion_tracker instead of a VEC.
4940 * d-lang.c (d_language_defn): Adjust.
4941 * disasm.c (disassembler_options_completer): Adjust to work with a
4942 completion_tracker instead of a VEC.
4943 * f-lang.c (f_make_symbol_completion_list): Rename to ...
4944 (f_collect_symbol_completion_matches): ... this. Adjust to work
4945 with a completion_tracker instead of a VEC.
4946 (f_language_defn): Adjust.
4947 * go-lang.c (go_language_defn): Adjust.
4948 * guile/scm-cmd.c (cmdscm_add_completion, cmdscm_completer):
4949 Adjust to work with a completion_tracker instead of a VEC.
4950 * infrun.c (handle_completer): Likewise.
4951 * interps.c (interpreter_completer): Likewise.
4952 * interps.h (interpreter_completer): Likewise.
4953 * language.c (unknown_language_defn, auto_language_defn)
4954 (local_language_defn): Adjust.
4955 * language.h (language_defn::la_make_symbol_completion_list):
4956 Rename to ...
4957 (language_defn::la_collect_symbol_completion_matches): ... this
4958 and adjust to work with a completion_tracker instead of a VEC.
4959 * m2-lang.c (m2_language_defn): Adjust.
4960 * objc-lang.c (objc_language_defn): Adjust.
4961 * opencl-lang.c (opencl_language_defn): Adjust.
4962 * p-lang.c (pascal_language_defn): Adjust.
4963 * python/py-cmd.c (cmdpy_completer_helper): Handle NULL word.
4964 (cmdpy_completer_handle_brkchars, cmdpy_completer): Adjust to work
4965 with a completion_tracker.
4966 * rust-lang.c (rust_language_defn): Adjust.
4967 * symtab.c (free_completion_list, do_free_completion_list)
4968 (return_val, completion_tracker): Delete.
4969 (completion_list_add_name, completion_list_add_symbol)
4970 (completion_list_add_msymbol, completion_list_objc_symbol)
4971 (completion_list_add_fields, add_symtab_completions): Add
4972 completion_tracker parameter and use it.
4973 (default_make_symbol_completion_list_break_on_1): Rename to...
4974 (default_collect_symbol_completion_matches_break_on): ... this.
4975 Add completion_tracker parameter and use it instead of allocating
4976 a completion tracker here.
4977 (default_make_symbol_completion_list_break_on): Delete old
4978 implementation.
4979 (default_make_symbol_completion_list): Delete.
4980 (default_collect_symbol_completion_matches): New.
4981 (make_symbol_completion_list): Delete.
4982 (collect_symbol_completion_matches): New.
4983 (make_symbol_completion_type): Rename to ...
4984 (collect_symbol_completion_matches_type): ... this. Add
4985 completion_tracker parameter and use it instead of VEC.
4986 (make_file_symbol_completion_list_1): Rename to...
4987 (collect_file_symbol_completion_matches): ... this. Add
4988 completion_tracker parameter and use it instead of VEC.
4989 (make_file_symbol_completion_list): Delete.
4990 (add_filename_to_list): Use completion_list instead of a VEC.
4991 (add_partial_filename_data::list): Now a completion_list.
4992 (make_source_files_completion_list): Work with a completion_list
4993 instead of a VEC.
4994 * symtab.h: Include "completer.h".
4995 (default_make_symbol_completion_list_break_on)
4996 (default_make_symbol_completion_list, make_symbol_completion_list)
4997 (make_symbol_completion_type, make_file_symbol_completion_list)
4998 (make_source_files_completion_list): Delete.
4999 (default_collect_symbol_completion_matches_break_on)
5000 (default_collect_symbol_completion_matches)
5001 (collect_symbol_completion_matches)
5002 (collect_symbol_completion_matches_type)
5003 (collect_file_symbol_completion_matches)
5004 (make_source_files_completion_list): New.
5005 * top.c (init_main): Don't install a rl_completion_entry_function
5006 hook. Install a rl_attempted_completion_function hook instead.
5007 * tui/tui-layout.c (layout_completer): Adjust to work with a
5008 completion_tracker.
5009 * tui/tui-regs.c (tui_reggroup_completer):
5010 * tui/tui-win.c (window_name_completer, focus_completer)
5011 (winheight_completer): Adjust to work with a completion_tracker.
5012 * value.c: Include "completer.h".
5013 (complete_internalvar): Adjust to work with a completion_tracker.
5014 * value.h (complete_internalvar): Likewise.
5015
6e1dbf8c
PA
50162017-07-17 Pedro Alves <palves@redhat.com>
5017
5018 * cli/cli-decode.c (set_cmd_completer_handle_brkchars): Adjust to
5019 renames.
5020 * cli/cli-decode.h (struct cmd_list_element) <completer>: Move
5021 comments to completer_ftype's declaration.
5022 <completer_handle_brkchars>: Change type to
5023 completer_handle_brkchars_ftype.
5024 * command.h (completer_ftype): Add describing comment and give
5025 names to parameters.
5026 (completer_ftype_void): Rename to ...
5027 (completer_handle_brkchars_ftype) ... this. Add describing comment.
5028 (set_cmd_completer_handle_brkchars): Adjust.
5029 * completer.c (filename_completer_handle_brkchars): New function.
5030 (complete_line_internal_normal_command): New function, factored
5031 out from ...
5032 (complete_line_internal): ... here.
5033 (command_completer_handle_brkchars)
5034 (default_completer_handle_brkchars)
5035 (completer_handle_brkchars_func_for_completer): New functions.
5036 * completer.h (set_gdb_completion_word_break_characters): Delete
5037 declaration.
5038 (completer_handle_brkchars_func_for_completer): New declaration.
5039 * python/py-cmd.c (cmdpy_completer_handle_brkchars): Adjust to use
5040 completer_handle_brkchars_func_for_completer.
5041
78b13106
PA
50422017-07-17 Pedro Alves <palves@redhat.com>
5043
5044 * completer.c (symbol_completer): New function, based on
5045 make_symbol_completion_list_fn.
5046 * completer.h (symbol_completer): New declaration.
5047 * guile/scm-cmd.c (cmdscm_completers): Adjust.
5048 * python/py-cmd.c (completers): Adjust.
5049 * symtab.c (make_symbol_completion_list_fn): Delete.
5050 * symtab.h (make_symbol_completion_list_fn): Delete.
5051 * cli/cli-decode.c (add_cmd): Adjust.
5052
bbf2f4df
PA
50532017-07-17 Pedro Alves <palves@redhat.com>
5054
5055 * Makefile.in (COMMON_OBS): Add filename-seen-cache.o.
5056 * dwarf2read.c: Include "filename-seen-cache.h".
5057 * dwarf2read.c (dwarf2_per_objfile) <filenames_cache>: New field.
5058 (dw2_map_symbol_filenames): Build and use a filenames_seen_cache.
5059 * filename-seen-cache.c: New file.
5060 * filename-seen-cache.h: New file.
5061 * symtab.c: Include "filename-seen-cache.h".
5062 (struct filename_seen_cache, INITIAL_FILENAME_SEEN_CACHE_SIZE)
5063 (create_filename_seen_cache, clear_filename_seen_cache)
5064 (delete_filename_seen_cache, filename_seen): Delete, parts moved
5065 to filename-seen-cache.h/filename-seen-cache.c.
5066 (output_source_filename, sources_info)
5067 (maybe_add_partial_symtab_filename)
5068 (make_source_files_completion_list): Adjust to use
5069 filename_seen_cache.
5070
330cdd98
PA
50712017-07-17 Pedro Alves <palves@redhat.com>
5072
5073 * dwarf2read.c (dwarf2_per_objfile): In-class initialize all
5074 fields.
5075 (dwarf2_per_objfile::dwarf2_per_objfile(objfile*, const
5076 dwarf2_debug_sections*)): New.
5077 (dwarf2_per_objfile::dwarf2_per_objfile(const
5078 dwarf2_per_objfile&)): Declare as deleted.
5079 (dwarf2_per_objfile::operator=): Declare as deleted.
5080 (dwarf2_per_objfile::dwarf2_per_objfile)
5081 (dwarf2_per_objfile::~dwarf2_per_objfile)
5082 (dwarf2_per_objfile::free_cached_comp_units): New.
5083 (dwarf2_has_info): dwarf2_per_objfile initialization code moved to
5084 ctor. Call dwarf2_per_objfile's ctor manually.
5085 (dwarf2_locate_sections): Deleted/refactored as ...
5086 (dwarf2_per_objfile::locate_sections): ... this new method.
5087 (free_cached_comp_units): Defer to
5088 dwarf2_per_objfile::free_cached_comp_units.
5089 (dwarf2_free_objfile): Call dwarf2_per_objfile's dtor manually.
5090
8880f2a9
TT
50912017-07-14 Tom Tromey <tom@tromey.com>
5092
5093 PR rust/21764:
5094 * rust-exp.y (convert_ast_to_expression): Add "want_type"
5095 parameter.
5096 <UNOP_SIZEOF>: Split into separate case.
5097 <UNOP_VAR_VALUE>: Handle want_type. Add error case.
5098
65547233
TT
50992017-07-14 Tom Tromey <tom@tromey.com>
5100
5101 PR rust/21763:
5102 * symtab.c (symbol_matches_domain): Add language_rust to special
5103 case.
5104 * rust-exp.y (convert_ast_to_expression) <OP_VAR_VALUE>: Don't
5105 treat LOC_TYPEDEF symbols as variables.
5106
8f14146e
PA
51072017-07-14 Pedro Alves <palves@redhat.com>
5108
5109 * symtab.c (make_file_symbol_completion_list_1): Iterate over
5110 symtabs matching all symtabs with SRCFILE as file name instead of
5111 only considering the first hit, with lookup_symtab.
5112
2347965c
SM
51132017-07-14 Simon Marchi <simon.marchi@ericsson.com>
5114
5115 * ax-gdb.c (gen_aggregate_elt_ref): Remove operand_name and
5116 operator_name parameters.
5117 (gen_expr): Update function call.
5118
40f4af28
SM
51192017-07-14 Simon Marchi <simon.marchi@ericsson.com>
5120
5121 * dwarf2loc.h (dwarf2_compile_expr_to_ax): Remove gdbarch
5122 parameter.
5123 * symtab.h (struct symbol_computed_ops::tracepoint_var_ref):
5124 Likewise.
5125 * dwarf2loc.c (dwarf2_compile_expr_to_ax): Remove gdbarch
5126 parameter, use agent_expr::gdbarch instead, update function
5127 calls.
5128 (locexpr_tracepoint_var_ref): Likewise.
5129 (loclist_tracepoint_var_ref): Likewise.
5130 * ax-gdb.c (gen_trace_static_fields): Likewise.
5131 (gen_traced_pop): Likewise.
5132 (gen_frame_args_address): Likewise.
5133 (gen_frame_locals_address): Likewise.
5134 (gen_var_ref): Likewise.
5135 (gen_struct_ref_recursive): Likewise.
5136 (gen_static_field): Likewise.
5137 (gen_maybe_namespace_elt): Likewise.
5138 (gen_expr): Likewise.
5139 (gen_trace_for_var): Likewise.
5140 (gen_trace_for_expr): Likewise.
5141 (gen_trace_for_return_address): Likewise.
5142
053f8057
SM
51432017-07-14 Simon Marchi <simon.marchi@ericsson.com>
5144
5145 * ax-gdb.c (gen_deref, gen_address_of): Remove unused ax
5146 parameter.
5147 (gen_struct_ref, gen_expr, gen_expr_binop_rest): Update call.
5148
6661ad48
SM
51492017-07-14 Simon Marchi <simon.marchi@ericsson.com>
5150
5151 * ax-gdb.c (gen_usual_unary): Remove exp parameter, get gdbarch
5152 from ax, update calls.
5153 (gen_usual_arithmetic): Likewise.
5154 (gen_integral_promotions): Likewise.
5155 (gen_bitfield_ref): Likewise.
5156 (gen_primitive_field): Likewise.
5157 (gen_struct_ref_recursive): Likewise.
5158 (gen_struct_ref): Likewise.
5159 (gen_maybe_namespace_elt): Likewise.
5160 (gen_struct_elt_for_reference): Likewise.
5161 (gen_namespace_elt): Likewise.
5162 (gen_aggregate_elt_ref): Likewise.
5163 (gen_expr): Get gdbarch from ax, update calls.
5164 (gen_expr_binop_rest): Likewise.
5165
c55a47e7
PA
51662017-07-13 Pedro Alves <palves@redhat.com>
5167
5168 * amd64-darwin-tdep.c (x86_darwin_init_abi_64): Pass tdesc_amd64
5169 as default tdesc.
5170 * amd64-dicos-tdep.c (amd64_dicos_init_abi):
5171 * amd64-fbsd-tdep.c (amd64fbsd_init_abi):
5172 * amd64-linux-tdep.c (amd64_linux_init_abi): Pass
5173 tdesc_amd64_linux as default tdesc. Get final tdesc from the
5174 tdep.
5175 (amd64_x32_linux_init_abi): Pass tdesc_x32_linux as default tdesc.
5176 Get final tdesc from the tdep.
5177 * amd64-nbsd-tdep.c (amd64nbsd_init_abi): Pass tdesc_amd64 as
5178 default tdesc.
5179 * amd64-obsd-tdep.c (amd64obsd_init_abi): Likewise.
5180 * amd64-sol2-tdep.c (amd64_sol2_init_abi): Likewise.
5181 * amd64-tdep.c (amd64_init_abi): Add 'default_tdesc' parameter.
5182 Use it as default tdesc.
5183 (amd64_x32_init_abi): Add 'default_tdesc' parameter, and pass it
5184 down to amd_init_abi. No longer handle fallback tdesc here.
5185 * amd64-tdep.h (tdesc_x32): Declare.
5186 (amd64_init_abi, amd64_x32_init_abi): Add 'default_tdesc'
5187 parameter.
5188 * amd64-windows-tdep.c (amd64_windows_init_abi): Pass tdesc_amd64
5189 as default tdesc.
5190
55efceab
AA
51912017-07-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
5192
5193 * s390-linux-tdep.c (s390_process_record): Add support for
5194 instructions new in arch12.
5195
0aa37b65
JB
51962017-07-11 John Baldwin <jhb@FreeBSD.org>
5197
5198 * amd64-bsd-nat.c (amd64bsd_fetch_inferior_registers): Use
5199 PT_GETFSBASE and PT_GETGSBASE.
5200 (amd64bsd_store_inferior_registers): Use PT_SETFSBASE and
5201 PT_SETGSBASE.
5202
48aeef91
JB
52032017-07-11 John Baldwin <jhb@FreeBSD.org>
5204
5205 * features/Makefile (amd64.dat, amd64-avx.dat, amd64-mpx.dat)
5206 (amd64-avx-mpx.dat, amd64-avx-avx512.dat)
5207 (amd64-avx-mpx-avx512-pku.dat): Add i386/64bit-segments.xml in
5208 those rules.
5209 * features/i386/amd64-avx-avx512.xml: Add 64bit-segments.xml.
5210 * features/i386/amd64-avx-mpx-avx512-pku.xml: Add 64bit-segments.xml.
5211 * features/i386/amd64-avx-mpx.xml: Add 64bit-segments.xml.
5212 * features/i386/amd64-avx.xml: Add 64bit-segments.xml.
5213 * features/i386/amd64-mpx.xml: Add 64bit-segments.xml.
5214 * features/i386/amd64.xml: Add 64bit-segments.xml.
5215 * features/i386/amd64-avx-avx512.c: Regenerated.
5216 * features/i386/amd64-avx-mpx-avx512-pku.c: Regenerated.
5217 * features/i386/amd64-avx-mpx.c: Regenerated.
5218 * features/i386/amd64-avx.c: Regenerated.
5219 * features/i386/amd64-mpx.c: Regenerated.
5220 * features/i386/amd64.c: Regenerated.
5221 * regformats/i386/amd64-avx-avx512.dat: Regenerated.
5222 * regformats/i386/amd64-avx-mpx-avx512-pku.dat: Regenerated.
5223 * regformats/i386/amd64-avx-mpx.dat: Regenerated.
5224 * regformats/i386/amd64-avx.dat: Regenerated.
5225 * regformats/i386/amd64-mpx.dat: Regenerated.
5226 * regformats/i386/amd64.dat: Regenerated.
5227
77c501bc
YQ
52282017-07-10 Yao Qi <yao.qi@linaro.org>
5229
5230 * features/i386/amd64-avx-avx512-linux.c: Re-generated.
5231 * features/i386/amd64-avx-mpx-avx512-pku-linux.c: Re-generated.
5232
6dc8d757
AK
52332017-07-10 Anton Kolesov <Anton.Kolesov@synopsys.com>
5234
5235 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add setenv and
5236 unsetenv.
5237 * gnulib/aclocal.m4: Regenerate.
5238 * gnulib/config.in: Regenerate.
5239 * gnulib/configure: Regenerate.
5240 * gnulib/import/Makefile.am: Regenerate.
5241 * gnulib/import/Makefile.in: Regenerate.
5242 * gnulib/import/m4/gnulib-cache.m4: Regenerate.
5243 * gnulib/import/m4/gnulib-comp.m4: Regenerate.
5244 * gnulib/import/m4/environ.m4: New file.
5245 * gnulib/import/m4/setenv.m4: New file.
5246 * gnulib/import/setenv.c: New file.
5247 * gnulib/import/unsetenv.c: New file.
5248
266934d1
SM
52492017-07-09 Simon Marchi <simon.marchi@ericsson.com>
5250
5251 * compile/compile-loc2c.c (do_compile_dwarf_expr_to_c): Read
5252 address when op is DW_OP_addr.
5253
03278692
TT
52542017-07-09 Tom Tromey <tom@tromey.com>
5255
5256 * dwarf2loc.c (dwarf2_evaluate_loc_desc_full): Reverse size
5257 check and apply to outer type.
5258
4b654465
JB
52592017-07-07 John Baldwin <jhb@FreeBSD.org>
5260
5261 * fbsd-tdep.c (LWPINFO_OFFSET, LWPINFO_PL_FLAGS)
5262 (LWPINFO64_PL_SIGINFO, LWPINFO32_PL_SIGINFO, PL_FLAG_SI)
5263 (SIZE64_SIGINFO_T, SIZE32_SIGINFO_T, fbsd_core_xfer_siginfo): New.
5264 (fbsd_init_abi): Install gdbarch "core_xfer_siginfo" method.
5265
2af9fc44
JB
52662017-07-07 John Baldwin <jhb@FreeBSD.org>
5267
5268 * fbsd-tdep.c (fbsd_core_thread_name): Use thread_section_name.
5269
382b69bb
JB
52702017-07-07 John Baldwin <jhb@FreeBSD.org>
5271
5272 * corelow.c (get_core_siginfo): Remove.
5273 (core_xfer_partial): Use the gdbarch "core_xfer_siginfo" method
5274 instead of get_core_siginfo.
5275 * gdbarch.sh (core_xfer_siginfo): New gdbarch callback.
5276 * gdbarch.h: Re-generate.
5277 * gdbarch.c: Re-generate.
5278 * linux-tdep.c (linux_core_xfer_siginfo): New.
5279 (linux_init_abi): Install gdbarch "core_xfer_siginfo" method.
5280
6e5eab33
JB
52812017-07-07 John Baldwin <jhb@FreeBSD.org>
5282
5283 * corelow.c (thread_section_name): Move to ...
5284 * gdbcore.h (thread_section_name): ... here.
5285
929edea9
JB
52862017-07-07 John Baldwin <jhb@FreeBSD.org>
5287
5288 * fbsd-nat.c [PT_LWPINFO && __LP64__] (union sigval32)
5289 (struct siginfo32): New.
5290 [PT_LWPINFO] (fbsd_siginfo_size, fbsd_convert_siginfo): New.
5291 (fbsd_xfer_partial) [PT_LWPINFO]: Handle TARGET_OBJECT_SIGNAL_INFO
5292 via ptrace(PT_LWPINFO).
5293
762c974a
JB
52942017-07-07 John Baldwin <jhb@FreeBSD.org>
5295
5296 * fbsd-tdep.c (fbsd_gdbarch_data_handle, struct fbsd_gdbarch_data)
5297 (init_fbsd_gdbarch_data, get_fbsd_gdbarch_data)
5298 (fbsd_get_siginfo_type): New.
5299 (fbsd_init_abi): Install gdbarch "get_siginfo_type" method.
5300 (_initialize_fbsd_tdep): New.
5301
33c5cd75
DB
53022017-07-06 David Blaikie <dblaikie@gmail.com>
5303
5304 * dwarf2read.c (struct dwo_file): Use a htab of dwo_unit* (rather than
5305 a singular dwo_unit*) to support multiple CUs in the same way that
5306 multiple TUs are supported.
5307 (create_cus_hash_table): Replace create_dwo_cu with a function for
5308 parsing multiple CUs from a DWO file.
5309 (open_and_init_dwo_file): Use create_cus_hash_table rather than
5310 create_dwo_cu.
5311 (lookup_dwo_cutu): Lookup CU in the hash table in the dwo_file with
5312 htab_find, rather than comparing the signature to a singleton CU in
5313 the dwo_file.
5314
8455d262
PA
53152017-07-06 Pedro Alves <palves@redhat.com>
5316
5317 * python/py-unwind.c (pyuw_dealloc_cache): Fix for loop condition.
5318
4da3eb35
PA
53192017-07-04 Pedro Alves <palves@redhat.com>
5320
5321 * gdbtypes.c (recursive_dump_type): Don't reference TYPE_STATIC.
5322 * gdbtypes.h (TYPE_STATIC): Delete.
5323 (struct fn_field) <is_public, is_abstract, is_static, is_final,
5324 is_synchronized, is_native>: Delete.
5325 <dummy>: Bump.
5326 (TYPE_FN_FIELD_PUBLIC, TYPE_FN_FIELD_STATIC, TYPE_FN_FIELD_FINAL)
5327 (TYPE_FN_FIELD_SYNCHRONIZED, TYPE_FN_FIELD_NATIVE)
5328 (TYPE_FN_FIELD_ABSTRACT): Delete.
5329
5bfd255c
SM
53302017-07-03 Simon Marchi <simon.marchi@ericsson.com>
5331
5332 * buffer.h (buffer_finish): Fix spelling mistakes.
5333
25c54127
EZ
53342017-07-01 Eli Zaretskii <eliz@gnu.org>
5335
5336 * .dir-locals.el: Automatically switch to C-style comments in
5337 versions of Emacs that support the feature.
5338
dc4bde35
SDJ
53392017-06-30 Sergio Durigan Junior <sergiodj@redhat.com>
5340 Pedro Alves <palves@redhat.com>
5341
5342 PR cli/21688
5343 * cli/cli-script.c (command_name_equals_not_inline): Remove function.
5344 (process_next_line): New variable 'inline_cmd'.
5345 Adjust 'if' clauses for "python", "compile" and "guile" to use
5346 'command_name_equals' and check for '!inline_cmd'.
5347
51ed89aa
SDJ
53482017-06-30 Sergio Durigan Junior <sergiodj@redhat.com>
5349
5350 PR cli/21688
5351 * cli/cli-script.c (command_name_equals_not_inline): New function.
5352 (process_next_line): Adjust 'if' clauses for "python", "compile"
5353 and "guile" to use command_name_equals_not_inline.
5354
eb17d413
PA
53552017-06-29 Pedro Alves <palves@redhat.com>
5356
5357 * completer.c (expression_completer): Call
5358 linespec_location_completer instead of location_completer.
5359
195bcdd5
PA
53602017-06-29 Pedro Alves <palves@redhat.com>
5361
5362 * completer.c (expression_completer): Remove code that recomputes
5363 'text' from 'word'.
5364
adc764e7
YQ
53652017-06-29 Yao Qi <yao.qi@linaro.org>
5366
5367 * regformats/regdat.sh: Generate code with
5368 "ifndef IN_PROCESS_AGENT".
5369
6e75794e
PA
53702017-06-28 Pedro Alves <palves@redhat.com>
5371
5372 * command.h: Include "common/scoped_restore.h".
5373
bc491f2e
YQ
53742017-06-28 Yao Qi <yao.qi@linaro.org>
5375
5376 * mi/mi-cmd-break.c (mi_argv_to_format): Use obstack_grow_str
5377 instead of obstack_grow.
5378
41664b45
DG
53792017-06-28 Doug Gilmore <Doug.Gilmore@imgtec.com>
5380
5381 PR gdb/21337
5382 * symfile.c (reread_symbols): Call objfiles_changed just before
5383 read_symbols.
5384
6da67eb1
PA
53852017-06-27 Pedro Alves <palves@redhat.com>
5386
5387 * symtab.c (COMPLETION_LIST_ADD_SYMBOL)
5388 (MCOMPLETION_LIST_ADD_SYMBOL): Delete macros, replace with ...
5389 (completion_list_add_symbol, completion_list_add_msymbol):
5390 ... these new functions.
5391 (add_symtab_completions)
5392 (default_make_symbol_completion_list_break_on_1): Adjust.
5393
23732b1e
PA
53942017-06-27 Pedro Alves <palves@redhat.com>
5395
5396 * objfiles.c (get_objfile_bfd_data): Call bfd_alloc instead of
5397 bfd_zalloc. Call objfile_per_bfd_storage's ctor.
5398 (free_objfile_per_bfd_storage): Call objfile_per_bfd_storage's
5399 dtor.
5400 * objfiles.h (objfile_per_bfd_storage): Add ctor. Make
5401 'storage_obstack' field an auto_obstack. In-class initialize all
5402 non-bitfield fields. Make minsyms_read bool.
5403 * symfile.c (read_symbols): Adjust.
5404
a4d1e79a
AH
54052017-06-27 Alan Hayward <alan.hayward@arm.com>
5406
5407 * remote-sim.c (gdbsim_fetch_register): Use byte_vector.
5408 (gdbsim_store_register): Likewise.
5409
8268c778
PA
54102017-06-27 Pedro Alves <palves@redhat.com>
5411
5412 * c-exp.y (name_obstack): Now an auto_obstack.
5413 (yylex): Use auto_obstack::clear.
5414 (c_parse): Use auto_obstack::clear instead of reinitializing and
5415 freeing the obstack.
5416 * c-lang.c (evaluate_subexp_c): Use auto_obstack.
5417 * d-exp.y (name_obstack): Now an auto_obstack.
5418 (yylex): Use auto_obstack::clear.
5419 (d_parse): Use auto_obstack::clear instead of reinitializing and
5420 freeing the obstack.
5421 * dwarf2loc.c (fetch_const_value_from_synthetic_pointer): Use
5422 auto_obstack.
5423 * dwarf2read.c (create_addrmap_from_index)
5424 (dwarf2_build_psymtabs_hard)
5425 (update_enumeration_type_from_children): Likewise.
5426 * gdb_obstack.h (auto_obstack): New type.
5427 * go-exp.y (name_obstack): Now an auto_obstack.
5428 (build_packaged_name): Use auto_obstack::clear.
5429 (go_parse): Use auto_obstack::clear instead of reinitializing and
5430 freeing the obstack.
5431 * linux-tdep.c (linux_make_mappings_corefile_notes): Use
5432 auto_obstack.
5433 * printcmd.c (printf_wide_c_string, ui_printf): Use auto_obstack.
5434 * rust-exp.y (work_obstack): Now an auto_obstack.
5435 (rust_parse, rust_lex_tests): Use auto_obstack::clear instead of
5436 reinitializing and freeing the obstack.
5437 * utils.c (do_obstack_free, make_cleanup_obstack_free): Delete.
5438 (host_char_to_target): Use auto_obstack.
5439 * utils.h (make_cleanup_obstack_free): Delete declaration.
5440 * valprint.c (generic_emit_char, generic_printstr): Use
5441 auto_obstack.
5442
db665f42
SM
54432017-06-27 Simon Marchi <simon.marchi@ericsson.com>
5444
5445 * darwin-nat.c (darwin_check_new_threads): Don't handle dummy
5446 thread.
5447 (darwin_init_thread_list): Don't update dummy thread.
5448 (darwin_create_inferior, darwin_attach): Don't add a dummy thread.
5449
873c0814
SM
54502017-06-26 Simon Marchi <simon.marchi@ericsson.com>
5451
5452 * record-full.c (netorder16): Remove.
5453
8b5a7a6e
SM
54542017-06-26 Simon Marchi <simon.marchi@ericsson.com>
5455
5456 * common/diagnostics.h: Define macros for GCC.
5457 (DIAGNOSTIC_IGNORE_UNUSED_FUNCTION): New macro.
5458 * common/vec.h: Include diagnostics.h.
5459 (DIAGNOSTIC_IGNORE_UNUSED_VEC_FUNCTION): New macro.
5460 (DEF_VEC_I, DEF_VEC_P, DEF_VEC_O): Ignore -Wunused-function
5461 warning.
5462
d1435379
SM
54632017-06-26 Simon Marchi <simon.marchi@ericsson.com>
5464
5465 * common/diagnostics.h (DIAGNOSTIC_IGNORE_DEPRECATED_REGISTER):
5466 New macro.
5467 * ada-lex.l: Ignore deprecated register warnings.
5468
cc75e0fd
SM
54692017-06-25 Simon Marchi <simon.marchi@ericsson.com>
5470
5471 * main.c (get_init_files): Replace "SYSTEM_GDBINIT +
5472 datadir_len" with "&SYSTEM_GDBINIT[datadir_len]".
5473
07809eaf
SM
54742017-06-25 Simon Marchi <simon.marchi@ericsson.com>
5475
5476 * dtrace-probe.c (dtrace_process_dof_probe): Put semi-colon on
5477 its own line.
5478
f076f034
SM
54792017-06-25 Simon Marchi <simon.marchi@ericsson.com>
5480
5481 * nat/x86-dregs.c (x86_show_dr): Print registers one per line.
5482
0dd5cbc5
AH
54832017-06-23 Alan Hayward <alan.hayward@arm.com>
5484
5485 * xtensa-tdep.c (XTENSA_MAX_REGISTER_SIZE): Add.
5486 (xtensa_register_write_masked): Use XTENSA_MAX_REGISTER_SIZE.
5487 (xtensa_register_read_masked): Likewise.
5488
d4c6ce5b
SDJ
54892017-06-22 Sergio Durigan Junior <sergiodj@redhat.com>
5490
5491 * common/environ.c (gdb_environ::unset): Update comment.
5492
16892a03
AH
54932017-06-22 Alan Hayward <alan.hayward@arm.com>
5494
5495 * python/py-unwind.c (pyuw_sniffer): Allocate space for
5496 registers.
5497
d7dcbefc
AH
54982017-06-22 Alan Hayward <alan.hayward@arm.com>
5499
5500 * record-full.c (record_full_exec_insn): Use byte_vector.
5501
b30ff123
YQ
55022017-06-22 Yao Qi <yao.qi@linaro.org>
5503
5504 * regformats/i386/amd64-avx-mpx-avx512-pku-linux.dat: Regenerated.
5505 * regformats/i386/amd64-avx-mpx-avx512-pku.dat: Regenerated.
5506
4fa847d7
AH
55072017-06-22 Alan Hayward <alan.hayward@arm.com>
5508
5509 * remote.c (cached_reg): Move from here...
5510 * regcache.h (cached_reg): ...to here.
5511 * python/py-unwind.c (struct reg_info): Remove.
5512 (cached_frame_info): Use cached_reg_t.
5513 (pyuw_prev_register): Likewise.
5514 (pyuw_sniffer): Use cached_reg_t and allocate registers.
5515 (pyuw_dealloc_cache): Free all registers.
5516
f4906a9a
PA
55172017-06-22 Pedro Alves <palves@redhat.com>
5518 Simon Marchi <simon.marchi@ericsson.com>
5519
5520 * unittests/environ-selftests.c (run_tests): Ignore -Wself-move
5521 warning.
5522 * common/diagnostics.h: New file.
5523
b45a1208
PA
55242017-06-22 Pedro Alves <palves@redhat.com>
5525
5526 * common/agent.h: Add include guards.
5527
e4da2c61
SM
55282017-06-21 Simon Marchi <simon.marchi@ericsson.com>
5529
5530 * target.h (struct target_ops) <to_xfer_partial>: Update doc to
5531 talk about addressable units instead of bytes.
5532
96160d60
SDJ
55332017-06-20 Sergio Durigan Junior <sergiodj@redhat.com>
5534
5535 * common/environ.c (gdb_environ::unset): Use '::iterator' instead
5536 of '::const_iterator'.
5537
9a6c7d9c
SDJ
55382017-06-20 Sergio Durigan Junior <sergiodj@redhat.com>
5539
5540 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
5541 'unittests/environ-selftests.c'.
5542 (SUBDIR_UNITTESTS_OBS): Add 'environ-selftests.o'.
5543 * charset.c (find_charset_names): Declare object 'iconv_env'.
5544 Update code to use 'iconv_env' object. Remove call to
5545 'free_environ'.
5546 * common/environ.c: Include <utility>.
5547 (make_environ): Delete function.
5548 (free_environ): Delete function.
5549 (gdb_environ::clear): New function.
5550 (gdb_environ::operator=): New function.
5551 (gdb_environ::get): Likewise.
5552 (environ_vector): Delete function.
5553 (set_in_environ): Delete function.
5554 (gdb_environ::set): New function.
5555 (unset_in_environ): Delete function.
5556 (gdb_environ::unset): New function.
5557 (gdb_environ::envp): Likewise.
5558 * common/environ.h: Include <vector>.
5559 (struct gdb_environ): Delete; transform into...
5560 (class gdb_environ): ... this class.
5561 (free_environ): Delete prototype.
5562 (init_environ, get_in_environ, set_in_environ, unset_in_environ,
5563 environ_vector): Likewise.
5564 * infcmd.c (run_command_1): Update code to call
5565 'envp' from 'gdb_environ' class.
5566 (environment_info): Update code to call methods from 'gdb_environ'
5567 class.
5568 (unset_environment_command): Likewise.
5569 (path_info): Likewise.
5570 (path_command): Likewise.
5571 * inferior.c (inferior::~inferior): Delete call to 'free_environ'.
5572 (inferior::inferior): Initialize 'environment' using the host's
5573 information.
5574 * inferior.h: Remove forward declaration of 'struct gdb_environ'.
5575 Include "environ.h".
5576 (class inferior) <environment>: Change type from 'struct
5577 gdb_environ' to 'gdb_environ'.
5578 * mi/mi-cmd-env.c (mi_cmd_env_path): Update code to call
5579 methods from 'gdb_environ' class.
5580 * solib.c (solib_find_1): Likewise
5581 * unittests/environ-selftests.c: New file.
5582
75c554cf
YQ
55832017-06-20 Yao Qi <yao.qi@linaro.org>
5584
5585 * features/i386/i386-linux.xml: Exchange the order of including
5586 32bit-linux.xml and 32bit-sse.xml.
5587 * features/i386/i386-linux.c: Regenerated.
5588
72ddacb7
YQ
55892017-06-20 Yao Qi <yao.qi@linaro.org>
5590
5591 * target-descriptions.c (tdesc_reg): Add ctor, dtor.
5592 Delete copy ctor and assignment operator.
5593 (tdesc_type): Likewise.
5594 (tdesc_feature): Likewise.
5595 (tdesc_free_reg): Remove.
5596 (tdesc_create_reg): Use new.
5597 (tdesc_free_type): Remove.
5598 (tdesc_create_vector): Use new.
5599 (tdesc_create_union): Likewise.
5600 (tdesc_create_flags): Likewise.
5601 (tdesc_create_enum): Likewise.
5602 (tdesc_free_feature): Delete.
5603 (free_target_description): Use delete.
5604
325c9fd4
JB
56052017-06-19 John Baldwin <jhb@FreeBSD.org>
5606
5607 * mips-tdep.c (print_gp_register_row): Don't error for unavailable
5608 registers.
5609
16b7a719
PA
56102017-06-19 Pedro Alves <palves@redhat.com>
5611
5612 * dwarf2read.c (write_psymtabs_to_index): Construct file_closer
5613 after gdb::unlinker.
5614
1c8e01c9
SDJ
56152017-06-19 Sergio Durigan Junior <sergiodj@redhat.com>
5616
5617 * mi/mi-cm-env.c (_initialize_mi_cmd_env): Use getenv instead of
5618 gdb_environ to access an environment variable.
5619
ffce45d2
TP
56202017-06-18 Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
5621
5622 * nat/linux-ptrace.c (linux_fork_to_function): Add cast to
5623 gdb_byte*.
5624
1d4fbac9
SM
56252017-06-17 Simon Marchi <simon.marchi@ericsson.com>
5626
5627 * nat/fork-inferior.h (trace_start_error): Add ATTRIBUTE_PRINTF.
5628
8465943a
SM
56292017-06-17 Simon Marchi <simon.marchi@ericsson.com>
5630
5631 * configure: Re-generate.
5632 * warning.m4 (build_warnings): Add -Wno-mismatched-tags.
5633
3e019bdc
SM
56342017-06-17 Simon Marchi <simon.marchi@ericsson.com>
5635
5636 * configure: Re-generate.
5637 * warning.m4: Pass -Werror to compiler when checking for
5638 supported warning flags.
5639
cf0dd6f0
SM
56402017-06-17 Simon Marchi <simon.marchi@ericsson.com>
5641
5642 * Makefile.in (COMPILE.pre): Add "-x c++".
5643
6f98355c
YQ
56442017-06-16 Alan Hayward <alan.hayward@arm.com>
5645 Pedro Alves <palves@redhat.com>
5646 Yao Qi <yao.qi@linaro.org>
5647
5648 * defs.h (RequireLongest): New.
5649 (extract_integer): Declare function template.
5650 (extract_signed_integer): Remove the declaration, but define it
5651 static inline.
5652 (extract_unsigned_integer): Likewise.
5653 (store_integer): Declare function template.
5654 (store_signed_integer): Remove the declaration, but define it
5655 static inline.
5656 (store_unsigned_integer): Likewise.
5657 * findvar.c (extract_integer): New function template.
5658 (extract_signed_integer): Remove.
5659 (extract_unsigned_integer): Remove.
5660 (extract_integer<LONGEST>, extract_integer<ULONGEST>): Explicit
5661 instantiations.
5662 (store_integer): New function template.
5663 (store_signed_integer): Remove.
5664 (store_unsigned_integer): Remove.
5665 (store_integer): Explicit instantiations.
5666 * regcache.c (regcache_raw_read_signed): Update.
5667 (regcache::raw_read): New function.
5668 (regcache::raw_read_signed): Remove.
5669 (regcache::raw_read_unsigned): Remove.
5670 (regcache_raw_read_unsigned): Update.
5671 (regcache_raw_write_unsigned): Update.
5672 (regcache::raw_write_signed): Remove.
5673 (regcache::raw_write): New function.
5674 (regcache_cooked_read_signed): Update.
5675 (regcache::raw_write_unsigned): Remove.
5676 (regcache::cooked_read_signed): Remove.
5677 (regcache_cooked_read_unsigned): Update.
5678 (regcache::cooked_read_unsigned): Remove.
5679 (regcache_cooked_write_signed): Update.
5680 (regcache_cooked_write_unsigned): Update.
5681 * regcache.h (regcache) <raw_read_signed>: Remove.
5682 <raw_write_signed, raw_read_unsigned, raw_write_unsigned>: Remove.
5683 <raw_read, raw_write>: New.
5684 <cooked_read_signed, cooked_write_signed>: Remove.
5685 <cooked_write_unsigned, cooked_read_unsigned>: Remove.
5686 <cooked_read, cooked_write>: New.
5687 * sh64-tdep.c (sh64_pseudo_register_read): Update.
5688 (sh64_pseudo_register_write): Update.
5689
a87dc45a
AK
56902017-06-16 Anton Kolesov <anton.kolesov@synopsys.com>
5691
5692 * arc-tdep.c (arc_disassembler_options): New variable.
5693 (arc_gdbarch_init): Set and use it. Use arc_delayed_print_insn instead
5694 of default_print_insn.
5695 (arc_delayed_print_insn): Set info->section when needed,
5696 use default_print_insn to retrieve a disassembler.
5697
45159d6a
SDJ
56982017-06-14 Sergio Durigan Junior <sergiodj@redhat.com>
5699
5700 PR gdb/21574
5701 * infcmd.c (_initialize_infcmd): Expand "help run" documentation
5702 to mention $SHELL and startup-with-shell.
5703
b46c4cf0
MF
57042017-06-14 Max Filippov <jcmvbkbc@gmail.com>
5705
5706 * MAINTAINERS: Move Maxim Grigoriev to the Past Maintainers.
5707
6394c606
YQ
57082017-06-14 Yao Qi <yao.qi@linaro.org>
5709
5710 * aarch64-tdep.c (aarch64_gdb_print_insn): Call
5711 default_print_insn instead of print_insn_aarch64.
5712 * arm-tdep.c (gdb_print_insn_arm): Call
5713 default_print_insn instead of print_insn_big_arm
5714 and print_insn_little_arm.
5715 * i386-tdep.c (i386_print_insn): Call default_print_insn
5716 instead of print_insn_i386.
5717 * ia64-tdep.c (ia64_print_insn): Call
5718 default_print_insn instead of print_insn_ia64.
5719 * mips-tdep.c (gdb_print_insn_mips): Call
5720 default_print_insn instead of print_insn_big_mips
5721 and print_insn_little_mips.
5722 * spu-tdep.c (gdb_print_insn_spu): Call default_print_insn
5723 instead of print_insn_spu.
5724
d5722aa2
PA
57252017-06-14 Pedro Alves <palves@redhat.com>
5726
5727 * ada-lang.c: Include "common/byte-vector.h".
5728 (ada_value_primitive_packed_val): Use gdb::byte_vector.
5729 * charset.c (wchar_iterator::iterate): Resize the vector instead
5730 of reserving it.
5731 * common/byte-vector.h: Include "common/def-vector.h".
5732 (wchar_iterator::m_out): Now a gdb::def_vector<gdb_wchar_t>.
5733 * cli/cli-dump.c: Include "common/byte-vector.h".
5734 (dump_memory_to_file, restore_binary_file): Use gdb::byte_vector.
5735 * common/byte-vector.h: New file.
5736 * common/def-vector.h: New file.
5737 * common/default-init-alloc.h: New file.
5738 * dwarf2loc.c: Include "common/byte-vector.h".
5739 (rw_pieced_value): Use gdb::byte_vector, and resize the vector
5740 instead of reserving it.
5741 * dwarf2read.c: Include "common/byte-vector.h".
5742 (data_buf::m_vec): Now a gdb::byte_vector.
5743 * gdb_regex.c: Include "common/def-vector.h".
5744 (compiled_regex::compiled_regex): Use gdb::def_vector<char>.
5745 * mi/mi-main.c: Include "common/byte-vector.h".
5746 (mi_cmd_data_read_memory): Use gdb::byte_vector.
5747 * printcmd.c: Include "common/byte-vector.h".
5748 (print_scalar_formatted): Use gdb::byte_vector.
5749 * valprint.c: Include "common/byte-vector.h".
5750 (maybe_negate_by_bytes, print_decimal_chars): Use
5751 gdb::byte_vector.
5752
01ec7a27
SM
57532017-06-13 Simon Marchi <simon.marchi@ericsson.com>
5754
5755 * darwin-nat.c: Include "nat/fork-inferior.h".
5756
848d9074
SM
57572017-06-13 Simon Marchi <simon.marchi@ericsson.com>
5758
5759 * configure.nat: Factor out Darwin bits that are not
5760 architecture-specific. Add fork-inferior.o.
5761
3b912944
SM
57622017-06-13 Simon Marchi <simon.marchi@ericsson.com>
5763
5764 * configure.nat: Factor out AIX bits that are not
5765 architecture-specific. Add fork-inferior.o.
5766
55acdf22
AA
57672017-06-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
5768
5769 * dwarf2loc.c (rw_pieced_value): New. Merge logic from...
5770 (read_pieced_value, write_pieced_value): ...here. Reduce to
5771 wrappers that just call rw_pieced_value.
5772
f65e2044
AA
57732017-06-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
5774
5775 * dwarf2loc.c (write_pieced_value): When writing the data for a
5776 memory piece, use write_memory_with_notification instead of
5777 write_memory.
5778
23f945bf
AA
57792017-06-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
5780
5781 * valops.c (read_value_memory): Change embedded_offset to
5782 represent a bit offset instead of a byte offset.
5783 * value.h (read_value_memory): Adjust comment.
5784
f236533e
AA
57852017-06-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
5786
5787 * dwarf2loc.c (read_pieced_value): Remove unnecessary variables
5788 dest_offset_bits and source_offset_bits.
5789 (write_pieced_value): Likewise.
5790
65d84b76
AA
57912017-06-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
5792
5793 * dwarf2loc.c (read_pieced_value): Respect the piece offset, as
5794 given by DW_OP_bit_piece.
5795 (write_pieced_value): Likewise.
5796
242d31ab
AA
57972017-06-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
5798
5799 * dwarf2loc.c (read_pieced_value): Move the buffer allocation and
5800 some other preparations to the places where sufficient information
5801 is available.
5802 (write_pieced_value): Likewise.
5803
03c8af18
AA
58042017-06-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
5805
5806 * dwarf2loc.c (bits_to_bytes): New function.
5807 (read_pieced_value): Fix offset calculations for register pieces
5808 on big-endian targets.
5809 (write_pieced_value): Likewise.
5810
840989c1
AA
58112017-06-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
5812
5813 * dwarf2loc.c (read_pieced_value): Remove buffer_size variable.
5814 (write_pieced_value): Likewise.
5815
359b19bb
AA
58162017-06-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
5817
5818 * dwarf2loc.c (write_pieced_value): When writing to a bit-field,
5819 transfer the source value's least significant bits, instead of its
5820 lowest-addressed ones. Rename type_len to max_offset.
5821 (read_pieced_value): Mirror above changes to write_pieced_value as
5822 applicable.
5823
07c9ca3b
AA
58242017-06-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
5825
5826 * dwarf2loc.c (write_pieced_value): In DWARF_VALUE_MEMORY,
5827 truncate full bytes from dest_offset_bits before using it as an
5828 offset into the buffer.
5829
f1cc9874
AA
58302017-06-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
5831
5832 * dwarf2loc.c (write_pieced_value): Include transfer size in
5833 byte-wise check.
5834
cdaac320
AA
58352017-06-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
5836
5837 * dwarf2loc.c (write_pieced_value): Fix copy/paste error in the
5838 calculation of this_size.
5839
af547a96
AA
58402017-06-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
5841
5842 * dwarf2loc.c (read_pieced_value): Respect parent value's offset
5843 when targeting a bit-field.
5844 (write_pieced_value): Likewise.
5845
ddd7882a
AA
58462017-06-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
5847
5848 * dwarf2loc.c (struct piece_closure) <addr_size>: Remove field.
5849 (allocate_piece_closure): Drop addr_size parameter.
5850 (dwarf2_evaluate_loc_desc_full): Adjust call to
5851 allocate_piece_closure.
5852
e9352324
AA
58532017-06-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
5854
5855 PR gdb/21226
5856 * dwarf2loc.c (read_pieced_value): Anchor stack value pieces at
5857 the LSB end, independent of endianness.
5858
d5d1163e
AA
58592017-06-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
5860
5861 * dwarf2loc.c (write_pieced_value): Fix order of calculations for
5862 size capping.
5863
032bb6ea
YQ
58642017-06-13 Yao Qi <yao.qi@linaro.org>
5865
5866 * mips-linux-nat.c: Move include features/mips*-linux.c to
5867 mips-linux-tdep.c.
5868 (_initialize_mips_linux_nat): Move initialize_tdesc_mips* calls
5869 to mips-linux-tdep.c.
5870 * mips-linux-tdep.c: Include features/mips*-linux.c
5871 (_initialize_mips_linux_tdep): Call initialize_tdesc_mips*
5872 functions.
5873 * mips-linux-tdep.h (tdesc_mips_linux): Declare.
5874 (tdesc_mips_dsp_linux, tdesc_mips64_linux): Declare.
5875 (tdesc_mips64_dsp_linux): Declare.
5876
f12f6bad
TT
58772017-06-12 Tom Tromey <tom@tromey.com>
5878
5879 * valprint.h (val_print_type_code_int): Remove.
5880 * valprint.c (generic_val_print_int): Always call
5881 val_print_scalar_formatted.
5882 (val_print_type_code_int): Remove.
5883 * printcmd.c (print_scalar_formatted): Handle options->format==0.
5884 * f-valprint.c (f_val_print): Use val_print_scalar_formatted.
5885 * c-valprint.c (c_val_print_int): Use val_print_scalar_formatted.
5886 * ada-valprint.c (ada_val_print_num): Use
5887 val_print_scalar_formatted.
5888
d9109c80
TT
58892017-06-12 Tom Tromey <tom@tromey.com>
5890
5891 * printcmd.c (print_scalar_formatted): Unify the two switches.
5892 Don't convert scalars to LONGEST.
5893
4ac0cb1c
TT
58942017-06-12 Tom Tromey <tom@tromey.com>
5895
5896 PR exp/16225:
5897 * valprint.h (print_decimal_chars): Update.
5898 * valprint.c (maybe_negate_by_bytes): New function.
5899 (print_decimal_chars): Add "is_signed" argument.
5900 * printcmd.c (print_scalar_formatted): Update.
5901
30a25466
TT
59022017-06-12 Tom Tromey <tom@tromey.com>
5903
5904 PR exp/16225:
5905 * valprint.h (print_binary_chars, print_hex_chars): Update.
5906 * valprint.c (val_print_type_code_int): Update.
5907 (print_binary_chars): Add "zero_pad" argument.
5908 (emit_octal_digit): New function.
5909 (print_octal_chars): Don't zero-pad.
5910 (print_decimal_chars): Likewise.
5911 (print_hex_chars): Add "zero_pad" argument.
5912 * sh64-tdep.c (sh64_do_fp_register): Update.
5913 * regcache.c (regcache::dump): Update.
5914 * printcmd.c (print_scalar_formatted): Update.
5915 * infcmd.c (default_print_one_register_info): Update.
5916
b3464d03
PA
59172017-06-12 Pedro Alves <palves@redhat.com>
5918 Alan Hayward <alan.hayward@arm.com>
5919
5920 * mips-tdep.c (MAX_MIPS_ABI_REGSIZE): New.
5921 (mips_eabi_push_dummy_call): Rename local 'regsize' to
5922 'abi_regsize'. Rename local array 'valbuf' to 'ref_valbuf', and
5923 use MAX_MIPS_ABI_REGSIZE instead of MAX_REGISTER_SIZE to size it.
5924 Assert that abi_regsize bytes fit in 'ref_valbuf'.
5925
4b76cda9
PA
59262017-06-12 Pedro Alves <palves@redhat.com>
5927
5928 * dwarf2read.c (mapped_symtab::data): Now a vector of
5929 symtab_index_entry instead of vector of
5930 std::unique_ptr<symtab_index_entry>. All users adjusted to check
5931 whether an element's name is NULL instead of checking whether the
5932 element itself is NULL.
5933 (find_slot): Change return type. Adjust.
5934 (hash_expand, , add_index_entry, uniquify_cu_indices)
5935 (write_hash_table): Adjust.
5936
e8f8bcb3
PA
59372017-06-12 Pedro Alves <palves@redhat.com>
5938
5939 * dwarf2read.c (recursively_count_psymbols): New function.
5940 (write_psymtabs_to_index): Call it to compute number of psyms and
5941 pass estimate size of psyms_seen to unordered_set's ctor.
5942
70a1152b
PA
59432017-06-12 Pedro Alves <palves@redhat.com>
5944
5945 * dwarf2read.c (write_hash_table): Check if key already exists
5946 before emplacing.
5947
c2f134ac
PA
59482017-06-12 Pedro Alves <palves@redhat.com>
5949
5950 * dwarf2read.c (data_buf::append_space): Rename to...
5951 (data_buf::grow): ... this, and make private. Adjust all callers.
5952 (data_buf::append_uint): New method.
5953 (add_address_entry, write_one_signatured_type)
5954 (write_psymtabs_to_index): Use it.
5955
a81e6d4d
PA
59562017-06-12 Pedro Alves <palves@redhat.com>
5957
5958 * dwarf2read.c (file_write(FILE *, const void *, size_t)): Delete.
5959 (file_write (FILE *, const std::vector<Elem>&)): Delete.
5960 (data_buf::file_write): Call ::fwrite directly.
5961
6fd931f2
PA
59622017-06-12 Pedro Alves <palves@redhat.com>
5963
5964 * dwarf2read.c (uniquify_cu_indices): Use std::unique and
5965 std::vector::erase.
5966
bc8f2430
JK
59672017-06-12 Jan Kratochvil <jan.kratochvil@redhat.com>
5968
5969 Code cleanup: C++ify .gdb_index producer.
5970 * dwarf2read.c: Include <unordered_set> and <unordered_map>.
5971 (MAYBE_SWAP) [WORDS_BIGENDIAN]: Cast to offset_type.
5972 (struct strtab_entry, hash_strtab_entry, eq_strtab_entry)
5973 (create_strtab, add_string): Remove.
5974 (file_write, data_buf): New.
5975 (struct symtab_index_entry): Use std::vector for cu_indices.
5976 (struct mapped_symtab): Use std::vector for data.
5977 (hash_symtab_entry, eq_symtab_entry, delete_symtab_entry)
5978 (create_symbol_hash_table, create_mapped_symtab, cleanup_mapped_symtab):
5979 Remove.
5980 (find_slot): Change return type. Update it to the new data structures.
5981 (hash_expand, add_index_entry): Update it to the new data structures.
5982 (offset_type_compare): Remove.
5983 (uniquify_cu_indices): Update it to the new data structures.
5984 (c_str_view, c_str_view_hasher, vector_hasher): New.
5985 (add_indices_to_cpool): Remove.
5986 (write_hash_table): Update it to the new data structures.
5987 (struct psymtab_cu_index_map, hash_psymtab_cu_index)
5988 (eq_psymtab_cu_index): Remove.
5989 (psym_index_map): New typedef.
5990 (struct addrmap_index_data): Change addr_obstack pointer to data_buf
5991 reference and std::unordered_map for cu_index_htab.
5992 (add_address_entry, add_address_entry_worker, write_address_map)
5993 (write_psymbols): Update it to the new data structures.
5994 (write_obstack): Remove.
5995 (struct signatured_type_index_data): Change types_list to a data_buf
5996 reference and psyms_seen to a std::unordered_set reference.
5997 (write_one_signatured_type, recursively_write_psymbols)
5998 (write_psymtabs_to_index): Update it to the new data structures.
5999
c4dcb155
SM
60002017-06-11 Simon Marchi <simon.marchi@ericsson.com>
6001
6002 * NEWS (Changes since GDB 8.0): Announce {set,show} debug
6003 separate-debug-file commands.
6004 * symfile.h (separate_debug_file_debug): New global.
6005 * symfile.c (separate_debug_file_debug): New global.
6006 (separate_debug_file_exists, find_separate_debug_file): Add
6007 debug output.
6008 (_initialize_symfile): Add "set debug separate-debug-file"
6009 command.
6010 * build-id.c (build_id_to_debug_bfd,
6011 find_separate_debug_file_by_buildid): Add debug output.
6012
6d45d4b4
SM
60132017-06-10 Simon Marchi <simon.marchi@polymtl.ca>
6014
6015 * gdbarch.sh (displaced_step_free_closure): Remove.
6016 * gdbarch.h, gdbarch.c: Re-generate.
6017 * aarch64-linux-tdep.c (aarch64_linux_init_abi): Don't set
6018 displaced_step_free_closure.
6019 * amd64-linux-tdep.c (amd64_linux_init_abi_common): Likewise.
6020 * arm-linux-tdep.c (arm_linux_init_abi): Likewise.
6021 * i386-linux-tdep.c (i386_linux_init_abi): Likewise.
6022 * rs6000-aix-tdep.c (rs6000_aix_init_osabi): Likewise.
6023 * rs6000-tdep.c (rs6000_gdbarch_init): Likewise.
6024 * s390-linux-tdep.c (s390_gdbarch_init): Likewise.
6025 * arch-utils.h (simple_displaced_step_free_closure): Remove.
6026 * arch-utils.c (simple_displaced_step_free_closure): Remove.
6027 * infrun.c (displaced_step_clear): Call xfree instead of
6028 gdbarch_displaced_step_free_closure.
6029
2f91880f
SDJ
60302017-06-08 Sergio Durigan Junior <sergiodj@redhat.com>
6031
6032 * common/common-utils.c (stringify_argv): Check for "arg[0] !=
6033 NULL".
6034
b8b6e72f
AH
60352017-06-08 Alan Hayward <alan.hayward@arm.com>
6036
6037 * mn10300-tdep.c (MN10300_MAX_REGISTER_SIZE): Add.
6038 (mn10300_extract_return_value): Use MN10300_MAX_REGISTER_SIZE.
6039 (mn10300_push_dummy_call): Likewise.
6040
5369082e
AH
60412017-06-08 Alan Hayward <alan.hayward@arm.com>
6042
6043 * mi/mi-main.c (register_changed_p): Use value_contents_eq.
6044
ff4ca5ac
AH
60452017-06-08 Alan Hayward <alan.hayward@arm.com>
6046
6047 * mi/mi-main.c (register_changed_p): Use cooked_read_value.
6048
aefd8b33
SDJ
60492017-06-07 Sergio Durigan Junior <sergiodj@redhat.com>
6050
6051 * NEWS (Changes since GDB 8.0): Announce that GDBserver is now
6052 able to start inferiors using a shell.
6053 (New remote packets): Announce new packet "QStartupWithShell".
6054 * remote.c: Add PACKET_QStartupWithShell.
6055 (extended_remote_create_inferior): Handle new
6056 PACKET_QStartupWithShell.
6057 (remote_protocol_features) <QStartupWithShell>: New entry for
6058 PACKET_QStartupWithShell.
6059 (_initialize_remote): Call "add_packet_config_cmd" for
6060 QStartupShell.
6061
2090129c
SDJ
60622017-06-07 Sergio Durigan Junior <sergiodj@redhat.com>
6063 Pedro Alves <palves@redhat.com>
6064
6065 * Makefile.in (HFILES_NO_SRCDIR): Add "common/common-inferior.h"
6066 and "nat/fork-inferior.h".
6067 * common/common-inferior.h: New file, with contents from
6068 "gdb/inferior.h".
6069 * commom/common-utils.c: Include "common-utils.h".
6070 (stringify_argv): New function.
6071 * common/common-utils.h (stringify_argv): New prototype.
6072 * configure.nat: Add "fork-inferior.o" as a dependency for
6073 "*linux*", "fbsd*" and "nbsd*" hosts.
6074 * corefile.c (get_exec_file): Update comment.
6075 * darwin-nat.c (darwin_ptrace_him): Call "gdb_startup_inferior"
6076 instead of "startup_inferior".
6077 (darwin_create_inferior): Call "add_thread_silent" after
6078 "fork_inferior".
6079 * fork-child.c: Cleanup unnecessary includes.
6080 (SHELL_FILE): Move to "common/common-fork-child.c".
6081 (environ): Likewise.
6082 (exec_wrapper): Initialize.
6083 (get_exec_wrapper): New function.
6084 (breakup_args): Move to "common/common-fork-child.c"; rename to
6085 "breakup_args_for_exec".
6086 (escape_bang_in_quoted_argument): Move to
6087 "common/common-fork-child.c".
6088 (saved_ui): New variable.
6089 (prefork_hook): New function.
6090 (postfork_hook): Likewise.
6091 (postfork_child_hook): Likewise.
6092 (gdb_startup_inferior): Likewise.
6093 (fork_inferior): Move to "common/common-fork-child.c". Update
6094 function to support gdbserver.
6095 (startup_inferior): Likewise.
6096 * gdbcore.h (get_exec_file): Remove declaration.
6097 * gnu-nat.c (gnu_create_inferior): Call "gdb_startup_inferior"
6098 instead of "startup_inferior". Call "add_thread_silent" after
6099 "fork_inferior".
6100 * inf-ptrace.c: Include "nat/fork-inferior.h" and "utils.h".
6101 (inf_ptrace_create_inferior): Call "gdb_startup_inferior"
6102 instead of "startup_inferior". Call "add_thread_silent" after
6103 "fork_inferior".
6104 * inferior.h: Include "common-inferior.h".
6105 (trace_start_error): Move to "common/common-utils.h".
6106 (trace_start_error_with_name): Likewise.
6107 (fork_inferior): Move prototype to "nat/fork-inferior.h".
6108 (startup_inferior): Likewise.
6109 (gdb_startup_inferior): New prototype.
6110 * nat/fork-inferior.c: New file, with contents from "fork-child.c".
6111 * nat/fork-inferior.h: New file.
6112 * procfs.c (procfs_init_inferior): Call "gdb_startup_inferior"
6113 instead of "startup_inferior". Call "add_thread_silent" after
6114 "fork_inferior".
6115 * target.h (target_terminal_init): Move prototype to
6116 "target/target.h".
6117 (target_terminal_inferior): Likewise.
6118 (target_terminal_ours): Likewise.
6119 * target/target.h (target_terminal_init): New prototype, moved
6120 from "target.h".
6121 (target_terminal_inferior): Likewise.
6122 (target_terminal_ours): Likewise.
6123 * utils.c (gdb_flush_out_err): New function.
6124
043a4934
SDJ
61252017-06-07 Sergio Durigan Junior <sergiodj@redhat.com>
6126
6127 * Makefile.in (HFILES_NO_SRCDIR): Add "common/common-gdbthread.h".
6128 * common/common-gdbthread.h: New file, with parts from
6129 "gdb/gdbthread.h".
6130 * gdbthread.h: Include "common-gdbthread.h".
6131 (switch_to_thread): Moved to "common/common-gdbthread.h".
6132
15652511
SDJ
61332017-06-07 Sergio Durigan Junior <sergiodj@redhat.com>
6134
6135 * Makefile.in (SFILES): Add "common/job-control.c".
6136 (HFILES_NO_SRCDIR): Add "common/job-control.h".
6137 (COMMON_OBS): Add "job-control.o".
6138 * common/job-control.c: New file, with contents from
6139 "gdb/inflow.c".
6140 * common/job-control.h: New file, with contents from "terminal.h".
6141 * fork-child.c: Include "job-control.h".
6142 * inflow.c: Include "job-control.h".
6143 (gdb_setpgid): Move to "common/common-inflow.c".
6144 (_initialize_inflow): Move setting of "job_control" to
6145 "handle_job_control".
6146 * terminal.h (job_control): Moved to "common/common-terminal.h".
6147 (gdb_setpgid): Likewise.
6148 * top.c: Include "job_control.h".
6149 * utils.c: Likewise.
6150 (job_control): Moved to "job-control.c".
6151
2d7cc5c7
PA
61522017-06-07 Pedro Alves <palves@redhat.com>
6153
6154 * Makefile.in (SFILES): Add gdb_regex.c.
6155 (COMMON_OBS): Add gdb_regex.o.
6156 * ada-lang.c (ada_add_standard_exceptions)
6157 (ada_add_exceptions_from_frame, name_matches_regex)
6158 (ada_add_global_exceptions, ada_exceptions_list_1): Change regex
6159 parameter type to compiled_regex. Adjust.
6160 (ada_exceptions_list): Use compiled_regex.
6161 * break-catch-throw.c (exception_catchpoint::pattern): Now a
6162 std::unique_ptr<compiled_regex>.
6163 (exception_catchpoint::~exception_catchpoint): Remove regfree
6164 call.
6165 (check_status_exception_catchpoint): Adjust to use compiled_regex.
6166 (handle_gnu_v3_exceptions): Adjust to use compiled_regex.
6167 * breakpoint.c (solib_catchpoint::compiled): Now a
6168 std::unique_ptr<compiled_regex>.
6169 (solib_catchpoint::~solib_catchpoint): Remove regfree call.
6170 (check_status_catch_solib): Adjust to use compiled_regex.
6171 (add_solib_catchpoint): Adjust to use compiled_regex.
6172 * cli/cli-cmds.c (apropos_command): Use compiled_regex.
6173 * cli/cli-decode.c (apropos_cmd): Change regex parameter to
6174 compiled_regex reference. Adjust to use it.
6175 * cli/cli-decode.h: Remove struct re_pattern_buffer forward
6176 declaration. Include "gdb_regex.h".
6177 (apropos_cmd): Change regex parameter to compiled_regex reference.
6178 * gdb_regex.c: New file.
6179 * gdb_regex.h (make_regfree_cleanup, get_regcomp_error): Delete
6180 declarations.
6181 (class compiled_regex): New.
6182 * linux-tdep.c: Include "common/gdb_optional.h".
6183 (struct mapping_regexes): New, factored out from
6184 mapping_is_anonymous_p, and adjusted to use compiled_regex.
6185 (mapping_is_anonymous_p): Use mapping_regexes wrapped in a
6186 gdb::optional and remove cleanups. Adjust to compiled_regex.
6187 * probe.c: Include "common/gdb_optional.h".
6188 (collect_probes): Use compiled_regex and gdb::optional and remove
6189 cleanups.
6190 * skip.c: Include "common/gdb_optional.h".
6191 (skiplist_entry::compiled_function_regexp): Now a
6192 gdb::optional<compiled_regex>.
6193 (skiplist_entry::compiled_function_regexp_is_valid): Delete field.
6194 (free_skiplist_entry): Remove regfree call.
6195 (compile_skip_regexp, skip_rfunction_p): Adjust to use
6196 compiled_regex and gdb::optional.
6197 * symtab.c: Include "common/gdb_optional.h".
6198 (search_symbols): Use compiled_regex and gdb::optional.
6199 * utils.c (do_regfree_cleanup, make_regfree_cleanup)
6200 (get_regcomp_error, compile_rx_or_error): Delete. Some bits moved
6201 to gdb_regex.c.
6202
50d6adef
AH
62032017-06-07 Alan Hayward <alan.hayward@arm.com>
6204
6205 * regcache.c (regcache::save): Avoid buffer use.
6206 (regcache::dump): Likewise.
6207
4a8a33c8
AH
62082017-06-07 Alan Hayward <alan.hayward@arm.com>
6209
6210 * sh-tdep.c (sh_pseudo_register_read): Remove
6211 MAX_REGISTER_SIZE.
6212 (sh_pseudo_register_write): Likewise.
6213 * sh64-tdep.c (sh64_pseudo_register_read): Likewise.
6214 (sh64_pseudo_register_write): Likewise
6215
d1be909e
AH
62162017-06-07 Alan Hayward <alan.hayward@arm.com>
6217
6218 * aarch64-tdep.c (aarch64_store_return_value): Use
6219 V_REGISTER_SIZE.
6220 (aarch64_pseudo_read_value): Likewise.
6221 (aarch64_pseudo_write): Likewise.
6222
f4a65042
YQ
62232017-06-06 Yao Qi <yao.qi@linaro.org>
6224
6225 * regformats/regdef.h (set_register_cache): Remove the
6226 declaration.
6227
9f7fb0aa
AH
62282017-06-06 Alan Hayward <alan.hayward@arm.com>
6229
6230 * frame.c (frame_unwind_register_signed): Use
6231 frame_unwind_register_value.
6232
e1e01040
PA
62332017-06-06 Pedro Alves <palves@redhat.com>
6234
6235 PR breakpoints/21553
6236 * breakpoint.c (create_breakpoints_sal_default)
6237 (init_breakpoint_sal, create_breakpoint_sal): Use
6238 gdb::unique_xmalloc_ptr for string parameters.
6239 (create_breakpoint): Constify 'extra_string' and 'cond_string'
6240 parameters. Replace cleanups with gdb::unique_xmalloc_ptr.
6241 (base_breakpoint_create_breakpoints_sal)
6242 (bkpt_create_breakpoints_sal, tracepoint_create_breakpoints_sal)
6243 (strace_marker_create_breakpoints_sal)
6244 (create_breakpoints_sal_default): Use gdb::unique_xmalloc_ptr for
6245 string parameters.
6246 * breakpoint.h (breakpoint_ops::create_breakpoints_sal): Use
6247 gdb::unique_xmalloc_ptr for string parameters.
6248 (create_breakpoint): Constify 'extra_string' and 'cond_string'
6249 parameters.
6250
fbe654c8
AH
62512017-06-06 Alan Hayward <alan.hayward@arm.com>
6252
6253 * alpha-tdep.c (alpha_register_to_value): Use
6254 get_frame_register_value.
6255 (alpha_value_to_register): Use ALPHA_REGISTER_SIZE.
6256
ae0d01d6
AH
62572017-06-06 Alan Hayward <alan.hayward@arm.com>
6258
6259 * ia64-tdep.c (IA64_MAX_FP_REGISTER_SIZE) Add.
6260 (ia64_register_to_value): Use IA64_MAX_FP_REGISTER_SIZE.
6261 (ia64_value_to_register): Likewise.
6262 (ia64_extract_return_value): Likewise.
6263 (ia64_store_return_value): Likewise.
6264 (ia64_push_dummy_call): Likewise.
6265
49cf576c
JB
62662017-06-04 Joel Brobecker <brobecker@adacore.com>
6267
6268 GDB 8.0 released.
6269
26b6a6ab
SM
62702017-06-03 Simon Marchi <simon.marchi@ericsson.com>
6271
6272 * x86-linux-nat.c (struct arch_lwp_info): Remove.
6273
22827c51
SM
62742017-06-03 Simon Marchi <simon.marchi@polymtl.ca>
6275
6276 * linux-nat.c (linux_nat_post_attach_wait): Remove FIRST
6277 parameter.
6278 (linux_nat_attach): Adjust call to linux_nat_post_attach_wait.
6279
0e05cf3a
SM
62802017-06-02 Simon Marchi <simon.marchi@ericsson.com>
6281
6282 * event-loop.c (poll_timers): Unallocate timer using delete
6283 instead of xfree.
6284
c1fc2657
SM
62852017-06-02 Simon Marchi <simon.marchi@polymtl.ca>
6286
6287 * breakpoint.h (struct breakpoint_ops) <dtor>: Remove.
6288 (struct breakpoint) <~breakpoint>: New.
6289 (struct watchpoint): Inherit from breakpoint.
6290 <~watchpoint>: New.
6291 <base>: Remove.
6292 (struct tracepoint): Inherit from breakpoint.
6293 <base>: Remove.
6294 * breakpoint.c (longjmp_breakpoint_ops): Remove.
6295 (struct longjmp_breakpoint): Inherit from breakpoint.
6296 <~longjmp_breakpoint>: New.
6297 <base>: Remove.
6298 (new_breakpoint_from_type): Remove casts.
6299 (watchpoint_in_thread_scope): Remove reference to base field.
6300 (watchpoint_del_at_next_stop): Likewise.
6301 (update_watchpoint): Likewise.
6302 (watchpoint_check): Likewise.
6303 (bpstat_check_watchpoint): Likewise.
6304 (set_longjmp_breakpoint): Likewise.
6305 (struct fork_catchpoint): Inherit from breakpoint.
6306 <base>: Remove.
6307 (struct solib_catchpoint): Inherit from breakpoint.
6308 <~solib_catchpoint>: New.
6309 <base>: Remove.
6310 (dtor_catch_solib): Change to ...
6311 (solib_catchpoint::~solib_catchpoint): ... this.
6312 (breakpoint_hit_catch_solib): Remove reference to base field.
6313 (add_solib_catchpoint): Likewise.
6314 (create_fork_vfork_event_catchpoint): Likewise.
6315 (struct exec_catchpoint): Inherit from breakpoint.
6316 <~exec_catchpoint>: New.
6317 <base>: Remove.
6318 (dtor_catch_exec): Change to ...
6319 (exec_catchpoint::~exec_catchpoint): ... this.
6320 (dtor_watchpoint): Change to ...
6321 (watchpoint::~watchpoint): ... this.
6322 (watch_command_1): Remove reference to base field.
6323 (catch_exec_command_1): Likewise.
6324 (base_breakpoint_dtor): Change to ...
6325 (breakpoint::~breakpoint): ... this.
6326 (base_breakpoint_ops): Remove dtor field value.
6327 (longjmp_bkpt_dtor): Change to ...
6328 (longjmp_breakpoint::~longjmp_breakpoint): ... this.
6329 (strace_marker_create_breakpoints_sal): Remove reference to base
6330 field.
6331 (delete_breakpoint): Don't manually call breakpoint destructor.
6332 (create_tracepoint_from_upload): Remove reference to base field.
6333 (trace_pass_set_count): Likewise.
6334 (initialize_breakpoint_ops): Don't initialize
6335 momentary_breakpoint_ops, don't set dtors.
6336 * ada-lang.c (struct ada_catchpoint): Inherit from breakpoint.
6337 <~ada_catchpoint>: New.
6338 <base>: Remove.
6339 (create_excep_cond_exprs): Remove reference to base field.
6340 (dtor_exception): Change to ...
6341 (ada_catchpoint::~ada_catchpoint): ... this.
6342 (dtor_catch_exception): Remove.
6343 (dtor_catch_exception_unhandled): Remove.
6344 (dtor_catch_assert): Remove.
6345 (create_ada_exception_catchpoint): Remove reference to base
6346 field.
6347 (initialize_ada_catchpoint_ops): Don't set dtors.
6348 * break-catch-sig.c (struct signal_catchpoint): Inherit from
6349 breakpoint.
6350 <~signal_catchpoint>: New.
6351 <base>: Remove.
6352 (signal_catchpoint_dtor): Change to ...
6353 (signal_catchpoint::~signal_catchpoint): ... this.
6354 (create_signal_catchpoint): Remove reference to base field.
6355 (initialize_signal_catchpoint_ops): Don't set dtor.
6356 * break-catch-syscall.c (struct syscall_catchpoint): Inherit
6357 from breakpoint.
6358 <~syscall_catchpoint>: New.
6359 <base>: Remove.
6360 (dtor_catch_syscall): Change to ...
6361 (syscall_catchpoint::~syscall_catchpoint): ... this.
6362 (create_syscall_event_catchpoint): Remove reference to base
6363 field.
6364 (initialize_syscall_catchpoint_ops): Don't set dtor.
6365 * break-catch-throw.c (struct exception_catchpoint): Inherit
6366 from breakpoint.
6367 <~exception_catchpoint>: New.
6368 <base>: Remove.
6369 (dtor_exception_catchpoint): Change to ...
6370 (exception_catchpoint::~exception_catchpoint): ... this.
6371 (handle_gnu_v3_exceptions): Remove reference to base field.
6372 (initialize_throw_catchpoint_ops): Don't set dtor.
6373 * ctf.c (ctf_get_traceframe_address): Remove reference to base
6374 field.
6375 * remote.c (remote_get_tracepoint_status): Likewise.
6376 * tracefile-tfile.c (tfile_get_traceframe_address): Likewise.
6377 * tracefile.c (tracefile_fetch_registers): Likewise.
6378 * tracepoint.c (actions_command): Likewise.
6379 (validate_actionline): Likewise.
6380 (tfind_1): Likewise.
6381 (get_traceframe_location): Likewise.
6382 (find_matching_tracepoint_location): Likewise.
6383 (parse_tracepoint_status): Likewise.
6384 * mi/mi-cmd-break.c (mi_cmd_break_passcount): Likewise.
6385
3b0871f4
SM
63862017-06-02 Simon Marchi <simon.marchi@polymtl.ca>
6387
6388 * breakpoint.c (struct longjmp_breakpoint): New struct.
6389 (is_tracepoint_type): Change return type to bool.
6390 (is_longjmp_type): New function.
6391 (new_breakpoint_from_type): Handle longjmp kinds of breakpoints.
6392 (set_raw_breakpoint_without_location): Use
6393 new_breakpoint_from_type.
6394 (set_raw_breakpoint): Likewise.
6395
a5e364af
SM
63962017-06-02 Simon Marchi <simon.marchi@polymtl.ca>
6397
6398 * breakpoint.c (new_breakpoint_from_type): New function.
6399 (create_breakpoint_sal): Use new_breakpoint_from_type and
6400 unique_ptr.
6401 (create_breakpoint): Likewise.
6402
ae3b3f34
SM
64032017-05-31 Simon Marchi <simon.marchi@ericsson.com>
6404
6405 * memattr.c (mem_info_command): Rename to ...
6406 (info_mem_command): ... this.
6407 (mem_enable_command): Rename to ...
6408 (enable_mem_command): ... this.
6409 (mem_disable_command): Rename to ...
6410 (disable_mem_command): ... this.
6411 (mem_delete_command): Rename to ...
6412 (delete_mem_command): ... this.
6413 (_initialize_mem): Adjust function names.
6414
13ace077
MM
64152017-05-31 Markus Metzger <markus.t.metzger@intel.com>
6416
6417 * btrace.c (handle_pt_insn_events): New.
6418 (ftrace_add_pt): Call handle_pt_insn_events. Rename ERRCODE into
6419 STATUS. Split into this and ...
6420 (handle_pt_insn_event_flags): ... this.
6421
c56ccc05
MM
64222017-05-31 Markus Metzger <markus.t.metzger@intel.com>
6423
6424 * configure.ac: Check for pt_insn_event, struct pt_insn.enabled,
6425 and struct pt_insn.resynced.
6426 * configure: Regenerated.
6427 * config.in: Regenerated.
6428
08c3f6d2
TW
64292017-05-30 Tim Wiederhake <tim.wiederhake@intel.com>
6430
6431 * btrace.c (ftrace_find_call_by_number): New function.
6432 (ftrace_new_function): Store objects, not pointers.
6433 (ftrace_find_call_by_number, ftrace_new_return, ftrace_new_switch,
6434 ftrace_new_gap, ftrace_update_function,
6435 ftrace_compute_global_level_offset, btrace_stich_bts, btrace_clear,
6436 btrace_insn_get, btrace_insn_get_error, btrace_insn_end,
6437 btrace_insn_next, btrace_insn_prev, ptrace_find_insn_by_number,
6438 btrace_ends_with_single_insn, btrace_call_get): Account for
6439 btrace_thread_info::functions now storing objects.
6440 * btrace.h (struct btrace_thread_info): Add constructor.
6441 (struct btrace_thread_info) <functions>: Make std::vector.
6442 (struct btrace_thread_info) <prev, next, up, insn, errcode, flags):
6443 Initialize with default values.
6444 * record-btrace.c (record_btrace_frame_sniffer): Account for
6445 btrace_thread_info::functions now storing objects.
6446
8ffd39f2
TW
64472017-05-30 Tim Wiederhake <tim.wiederhake@intel.com>
6448
6449 * btrace.c: Remove typedef bfun_s.
6450 (ftrace_new_gap): Directly add gaps to the list of gaps.
6451 (btrace_bridge_gaps, btrace_compute_ftrace_bts, pt_btrace_insn_flags,
6452 ftrace_add_pt, btrace_compute_ftrace_pt, btrace_compute_ftrace_1,
6453 btrace_finalize_ftrace, btrace_compute_ftrace): Use std::vector
6454 instead of gdb VEC.
6455
4aeb0dfc
TW
64562017-05-30 Tim Wiederhake <tim.wiederhake@intel.com>
6457
6458 * btrace.c (ftrace_fixup_caller, ftrace_new_return, ftrace_connect_bfun,
6459 ftrace_bridge_gap): Replace references to btrace_thread_info::segment
6460 with btrace_thread_info::next_segment and
6461 btrace_thread_info::prev_segment.
6462 * btrace.h: Remove struct btrace_func_link.
6463 (struct btrace_function): Replace pair of function segment pointers
6464 with pair of indices.
6465 * python/py-record-btrace.c (btpy_call_prev_sibling,
6466 btpy_call_next_sibling): Replace references to
6467 btrace_thread_info::segment with btrace_thread_info::next_segment and
6468 btrace_thread_info::prev_segment.
6469 * record-btrace.c (record_btrace_frame_this_id): Use
6470 btrace_find_call_by_number.
6471
eb8f2b9c
TW
64722017-05-30 Tim Wiederhake <tim.wiederhake@intel.com>
6473
6474 * btrace.c (ftrace_new_function, ftrace_fixup_level,
6475 ftrace_connect_bfun, ftrace_bridge_gap, btrace_bridge_gaps,
6476 btrace_insn_next, btrace_insn_prev): Remove references to
6477 btrace_thread_info::flow.
6478 * btrace.h (struct btrace_function): Remove FLOW.
6479
42bfe59e
TW
64802017-05-30 Tim Wiederhake <tim.wiederhake@intel.com>
6481
6482 * btrace.c (ftrace_find_call_by_number): New function.
6483 (ftrace_update_caller, ftrace_new_call, ftrace_new_tailcall,
6484 ftrace_get_caller, ftrace_find_call, ftrace_new_return,
6485 ftrace_match_backtrace, ftrace_connect_bfun, ftrace_connect_backtrace,
6486 ftrace_bridge_gap, btrace_bridge_gaps): Use btrace_function::up as an
6487 index.
6488 * btrace.h (struct btrace_function): Turn UP into an index.
6489 * python/py-record-btrace.c (btpy_call_up): Use btrace_function::up
6490 as an index.
6491 * record-btrace.c (record_btrace_frame_unwind_stop_reason,
6492 record_btrace_frame_prev_register, record_btrace_frame_sniffer,
6493 record_btrace_tailcall_frame_sniffe): Use btrace_find_call_by_number.
6494
b54b03bd
TW
64952017-05-30 Tim Wiederhake <tim.wiederhake@intel.com>
6496
6497 * btrace.c (ftrace_new_function, ftrace_new_call, ftrace_new_tailcall,
6498 ftrace_new_return, ftrace_new_switch, ftrace_new_gap,
6499 ftrace_update_function, ftrace_compute_global_level_offset,
6500 btrace_compute_ftrace_bts, ftrace_add_pt, btrace_compute_ftrace_pt,
6501 btrace_stitch_bts, btrace_fetch, btrace_clear, btrace_insn_number,
6502 btrace_insn_end, btrace_is_empty): Remove references to
6503 btrace_thread_info::begin and btrace_thread_info::end.
6504 * btrace.h (struct btrace_thread_info): Remove BEGIN and END.
6505 (struct btrace_thread_info) <functions>: Adjust comment.
6506 * record-btrace.c (record_btrace_start_replaying): Remove reference to
6507 btrace_thread_info::begin.
6508
8286623c
TW
65092017-05-30 Tim Wiederhake <tim.wiederhake@intel.com>
6510
6511 * btrace.c (ftrace_new_function, ftrace_new_call, ftrace_new_tailcall,
6512 ftrace_new_return, ftrace_new_switch, ftrace_new_gap,
6513 ftrace_update_function): Remove arguments that implicitly were always
6514 BTINFO->END.
6515 (btrace_compute_ftrace_bts, ftrace_add_pt, btrace_compute_ftrace_pt):
6516 Don't pass BTINFO->END.
6517
a0f1b963
TW
65182017-05-30 Tim Wiederhake <tim.wiederhake@intel.com>
6519
6520 * btrace.c: (btrace_insn_get, btrace_insn_get_error, btrace_insn_number,
6521 btrace_insn_begin, btrace_insn_end, btrace_insn_next, btrace_insn_prev,
6522 btrace_find_insn_by_number): Replace function segment pointer with
6523 index.
6524 (btrace_insn_cmp): Simplify.
6525 * btrace.h: (struct btrace_insn_iterator) Rename index to
6526 insn_index. Replace function segment pointer with index into function
6527 segment vector.
6528 * record-btrace.c (record_btrace_call_history): Replace function
6529 segment pointer use with index.
6530 (record_btrace_frame_sniffer): Retrieve function call segment through
6531 vector.
6532 (record_btrace_set_replay): Remove defunc't safety check.
6533
f158f208
TW
65342017-05-30 Tim Wiederhake <tim.wiederhake@intel.com>
6535
6536 * btrace.c (btrace_ends_with_single_insn): New function.
6537 (btrace_call_get, btrace_call_number, btrace_call_begin,
6538 btrace_call_end, btrace_call_next, btrace_call_prev,
6539 btrace_find_call_by_number): Use index into call segment vector
6540 instead of pointer.
6541 (btrace_call_cmp): Simplify.
6542 * btrace.h (struct btrace_call_iterator): Replace function call segment
6543 pointer with index into vector.
6544 * record-btrace.c (record_btrace_call_history): Use index instead of
6545 pointer.
6546
521103fd
TW
65472017-05-30 Tim Wiederhake <tim.wiederhake@intel.com>
6548
6549 * btrace.c (btrace_insn_begin, btrace_insn_end,
6550 btrace_find_insn_by_number): Add btinfo to iterator.
6551 * btrace.h (struct btrace_insn_iterator): Add btinfo.
6552
17b89b34
TW
65532017-05-30 Tim Wiederhake <tim.wiederhake@intel.com>
6554
6555 * btrace.c (ftrace_new_function): Add btrace_thread_info to arguments
6556 and save pointers directly.
6557 (ftrace_new_call, ftrace_new_tailcall, ftrace_new_return,
6558 ftrace_new_switch, ftrace_new_gap, ftrace_update_function,
6559 ftrace_add_pt): Add btrace_thread_info to arguments. Adjust for
6560 changed signature of functions.
6561 (btrace_compute_ftrace_pt): Adjust for changed signature of functions.
6562 (btrace_fetch): Remove code that adds btrace_function pointers to
6563 vector of btrace_functions.
6564 (btrace_clear): Simplify freeing vector of btrace_functions.
6565
2b51eddc
TW
65662017-05-30 Tim Wiederhake <tim.wiederhake@intel.com>
6567
6568 * btrace.c (btrace_fetch, btrace_clear, btrace_find_insn_by_number):
6569 Replace VEC_* with std::vector functions.
6570 * btrace.h: Add include: vector. Remove typedef for DEF_VEC_P.
6571 (struct btrace_thread_info)<functions>: Change type to std::vector.
6572
db6be0d5
SM
65732017-05-30 Simon Marchi <simon.marchi@ericsson.com>
6574
6575 * NEWS (Changes in GDB 8.0): Remove extra empty line. Move
6576 "Removed targets and native configurations" up. Merge duplicate
6577 "New commands" sub-sections. Add "New options" sub-sections.
6578
b057297a
AH
65792017-05-26 Alan Hayward <alan.hayward@arm.com>
6580
6581 * defs.h (copy_integer_to_size): New declaration.
6582 * findvar.c (copy_integer_to_size): New function.
6583 (do_cint_test): New selftest function.
6584 (copy_integer_to_size_test): Likewise.
6585 (_initialize_findvar): Likewise.
6586 * mips-fbsd-tdep.c (mips_fbsd_supply_reg): Use raw_supply_integer.
6587 (mips_fbsd_collect_reg): Use raw_collect_integer.
6588 * mips-linux-tdep.c (supply_32bit_reg): Use raw_supply_integer.
6589 (mips64_fill_gregset): Use raw_collect_integer
6590 (mips64_fill_fpregset): Use raw_supply_integer.
6591 * regcache.c (regcache::raw_supply_integer): New function.
6592 (regcache::raw_collect_integer): Likewise.
6593 * regcache.h: (regcache::raw_supply_integer): New declaration.
6594 (regcache::raw_collect_integer): Likewise.
6595
b77b02a5
YQ
65962017-05-24 Yao Qi <yao.qi@linaro.org>
6597
6598 * Makefile.in (SFILES): Add gdbarch-selftests.c.
6599 (COMMON_OBS): Add gdbarch-selftests.o.
6600 * frame.c [GDB_SELF_TESTS] (create_new_frame): New function.
6601 * frame.h [GDB_SELF_TESTS] (create_new_frame): Declare.
6602 * gdbarch-selftests.c: New file.
6603 * regcache.h (regcache) <~regcache>: Mark it virtual if
6604 GDB_SELF_TEST.
6605 <raw_write>: Likewise.
6606
e521e87e
YQ
66072017-05-24 Yao Qi <yao.qi@linaro.org>
6608
6609 * regcache.c (current_regcache): Change it to
6610 regcache::current_regcache.
6611 (regcache_observer_target_changed): Update.
6612 (regcache_thread_ptid_changed): Make it a regcache static
6613 method.
6614 (regcache_thread_ptid_changed): Update.
6615 (class regcache_access): New.
6616 (current_regcache_test): Update.
6617 (_initialize_regcache): Update.
6618 * regcache.h: Include forward_list.
6619 (regcache): Declare regcache_thread_ptid_changed and declare
6620 registers_changed_ptid as friend.
6621
d8e07dda
YQ
66222017-05-24 Yao Qi <yao.qi@linaro.org>
6623
6624 * i387-tdep.c (i387_register_to_value): Use register_size
6625 instead of TYPE_LENGTH.
6626 * m68k-tdep.c (m68k_register_to_value): Likewise.
6627
8c8f9122
YQ
66282017-05-24 Yao Qi <yao.qi@linaro.org>
6629
6630 * i387-tdep.c (i387_convert_register_p): Return false if type
6631 code isn't TYPE_CODE_FLT.
6632
68fce50f
YQ
66332017-05-24 Yao Qi <yao.qi@linaro.org>
6634
6635 * alpha-tdep.c (alpha_convert_register_p): Return true if type
6636 length is 4.
6637 (alpha_register_to_value): Remove type length check.
6638 (alpha_value_to_register): Likewise.
6639
88954b49
YQ
66402017-05-24 Yao Qi <yao.qi@linaro.org>
6641
6642 * ia64-tdep.c (ia64_convert_register_p): Check type's code is
6643 TYPE_CODE_FLT.
6644
e3ec9b69
YQ
66452017-05-24 Yao Qi <yao.qi@linaro.org>
6646
6647 * m68k-tdep.c (m68k_convert_register_p): Check type's code is
6648 TYPE_CODE_FLT or not.
6649
cdd238da
YQ
66502017-05-24 Yao Qi <yao.qi@linaro.org>
6651
6652 * alpha-tdep.c (alpha_gdbarch_init): Use XCNEW instead of XNEW.
6653 * avr-tdep.c (avr_gdbarch_init): Likewise.
6654 * bfin-tdep.c (bfin_gdbarch_init): Likewise.
6655 * cris-tdep.c (cris_gdbarch_init): Likewise.
6656 * ft32-tdep.c (ft32_gdbarch_init): Likewise.
6657 * lm32-tdep.c (lm32_gdbarch_init): Likewise.
6658 * m32r-tdep.c (m32r_gdbarch_init): Likewise.
6659 * m68hc11-tdep.c (m68hc11_gdbarch_init): Likewise.
6660 * mep-tdep.c (mep_gdbarch_init): Likewise.
6661 * microblaze-tdep.c (microblaze_gdbarch_init): Likewise.
6662 * mips-tdep.c (mips_gdbarch_init): Likewise.
6663 * mn10300-tdep.c (mn10300_gdbarch_init): Likewise.
6664 * moxie-tdep.c (moxie_gdbarch_init): Likewise.
6665 * msp430-tdep.c (msp430_gdbarch_init): Likewise.
6666 * sh64-tdep.c (sh64_gdbarch_init): Likewise.
6667 * v850-tdep.c (v850_gdbarch_init): Likewise.
6668
7a3929c4
YQ
66692017-05-24 Yao Qi <yao.qi@linaro.org>
6670
6671 * selftest-arch.c (tests_with_arch): Call registers_changed
6672 and reinit_frame_cache.
6673 * selftest.c (run_self_tests): Likewise.
6674
f4985dba
YQ
66752017-05-24 Yao Qi <yao.qi@linaro.org>
6676
6677 * rs6000-tdep.c (gdb_print_insn_powerpc): Remove.
6678 (rs6000_gdbarch_init): Don't call set_gdbarch_print_insn.
6679
ab20fa4a
YQ
66802017-05-24 Yao Qi <yao.qi@linaro.org>
6681
6682 * rl78-tdep.c (rl78_gdbarch_init): Don't call
6683 set_gdbarch_print_insn.
6684
f532ab94
YQ
66852017-05-24 Yao Qi <yao.qi@linaro.org>
6686
6687 * h8300-tdep.c (h8300_gdbarch_init): Don't call
6688 set_gdbarch_print_insn.
6689
39503f82
YQ
66902017-05-24 Yao Qi <yao.qi@linaro.org>
6691
6692 * alpha-tdep.c (alpha_gdbarch_init): Don't call
6693 set_gdbarch_print_insn.
6694 * arc-tdep.c (arc_gdbarch_init): Likewise.
6695 * arch-utils.c: include dis-asm.h.
6696 (default_print_insn): New function.
6697 * arch-utils.h (default_print_insn): Declare.
6698 * avr-tdep.c (avr_gdbarch_init): Don't call set_gdbarch_print_insn.
6699 * bfin-tdep.c (bfin_gdbarch_init): Likewise.
6700 * cris-tdep.c (cris_delayed_get_disassembler): Remove.
6701 (cris_gdbarch_init): Don't call set_gdbarch_print_insn.
6702 * frv-tdep.c (frv_gdbarch_init): Likewise.
6703 * ft32-tdep.c (ft32_gdbarch_init): Likewise.
6704 * gdbarch.sh (print_insn): Use default_print_insn.
6705 * gdbarch.c: Regenerated.
6706 * hppa-tdep.c (hppa_gdbarch_init): Likewise.
6707 * iq2000-tdep.c (iq2000_gdbarch_init): Likewise.
6708 * lm32-tdep.c (lm32_gdbarch_init): Likewise.
6709 * m32c-tdep.c (m32c_gdbarch_init): Likewise.
6710 * m32r-tdep.c (m32r_gdbarch_init): Likewise.
6711 * m68hc11-tdep.c (gdb_print_insn_m68hc11): Remove.
6712 (m68hc11_gdbarch_init): Don't call set_gdbarch_print_insn.
6713 * m68k-tdep.c (m68k_gdbarch_init): Likewise.
6714 * m88k-tdep.c (m88k_gdbarch_init): Likewise.
6715 * microblaze-tdep.c (microblaze_gdbarch_init): Likewise.
6716 * mn10300-tdep.c (mn10300_gdbarch_init): Likewise.
6717 * moxie-tdep.c (moxie_gdbarch_init): Likewise.
6718 * msp430-tdep.c (msp430_gdbarch_init): Likewise.
6719 * mt-tdep.c (mt_gdbarch_init): Likewise.
6720 * nds32-tdep.c (nds32_gdbarch_init): Likewise.
6721 * nios2-tdep.c (nios2_print_insn): Remove.
6722 (nios2_gdbarch_init): Don't call set_gdbarch_print_insn.
6723 * rx-tdep.c (rx_gdbarch_init): Likewise.
6724 * s390-linux-tdep.c (s390_gdbarch_init): Likewise.
6725 * score-tdep.c (score_print_insn): Remove.
6726 (score_gdbarch_init): Don't call set_gdbarch_print_insn.
6727 * sh-tdep.c (sh_gdbarch_init): Likewise.
6728 * sh64-tdep.c (sh64_gdbarch_init): Likewise.
6729 * sparc-tdep.c (sparc32_gdbarch_init): Likewise.
6730 * tic6x-tdep.c (tic6x_print_insn): Remove.
6731 (tic6x_gdbarch_init): Don't call set_gdbarch_print_insn.
6732 * tilegx-tdep.c (tilegx_gdbarch_init): Likewise.
6733 * v850-tdep.c (v850_gdbarch_init): Likewise.
6734 * vax-tdep.c (vax_gdbarch_init): Likewise.
6735 * xstormy16-tdep.c (xstormy16_gdbarch_init): Likewise.
6736 * xtensa-tdep.c (xtensa_gdbarch_init): Likewise.
6737
f7241d4f
JB
67382017-05-23 John Baldwin <jhb@FreeBSD.org>
6739
6740 * mips-fbsd-tdep.c (MIPS_PC_REGNUM): Remove.
6741 (MIPS_FP0_REGNUM): Remove.
6742 (MIPS_FSR_REGNUM): Remove.
6743 (mips_fbsd_supply_fpregs): Use mips_regnum.
6744 (mips_fbsd_supply_gregs): Likewise.
6745 (mips_fbsd_collect_fpregs): Likewise.
6746 (mips_fbsd_collect_gregs): Likewise.
6747
d489d81d
JB
67482017-05-23 John Baldwin <jhb@FreeBSD.org>
6749
6750 * mips-fbsd-nat.c (getregs_supplies): Fix upper bound comparison.
6751 (getpfpregs_supplies): New function.
6752 (mips_fbsd_fetch_inferior_registers): Remove early exit and use
6753 getfpregs_supplies.
6754 (mips_fbsd_store_inferior_registers): Likewise.
6755
e11b3cdc
PA
67562017-05-22 Pedro Alves <palves@redhat.com>
6757
6758 * MAINTAINERS (Host/Native): Add John Baldwin as FreeBSD
6759 maintainer.
6760
0f068fb5
AH
67612017-05-22 Alan Hayward <alan.hayward@arm.com>
6762
6763 * ppc-linux-nat.c (fetch_register): Use PPC_MAX_REGISTER_SIZE.
6764 (store_register): Likewise.
6765 * ppc-sysv-tdep.c (ppc_sysv_abi_push_dummy_call): Likewise.
6766 (get_decimal_float_return_value): Likewise.
6767 (do_ppc_sysv_return_value): Likewise.
6768 (ppc64_sysv_abi_push_integer): Likewise.
6769 (ppc64_sysv_abi_push_freg): Likewise.
6770 (ppc64_sysv_abi_return_value_base): Likewise.
6771 (ppc64_sysv_abi_return_value): Likewise.
6772 * rs6000-aix-tdep.c (rs6000_push_dummy_call): Likewise.
6773 * rs6000-lynx178-tdep.c (rs6000_lynx178_push_dummy_call): Likewise.
6774 * rs6000-nat.c: Likewise.
6775 * rs6000-tdep.c (rs6000_register_to_value): Likewise.
6776 (rs6000_value_to_register): Likewise.
6777 * ppc-tdep.h (PPC_MAX_REGISTER_SIZE): Add.
6778
e6cf65f2
TT
67792017-05-21 Tom Tromey <tom@tromey.com>
6780
6781 PR rust/21466:
6782 * rust-lang.c (rust_print_type) <TYPE_CODE_ARRAY>: Print unsized
6783 arrays as "[T]", not "[T; ]".
6784
43cc5389
TT
67852017-05-19 Tom Tromey <tom@tromey.com>
6786
6787 PR rust/21484:
6788 * rust-lang.c (exp_descriptor_rust): New function.
6789 (rust_language_defn): Use it.
6790 * p-lang.c (pascal_language_defn): Update.
6791 * opencl-lang.c (opencl_language_defn): Update.
6792 * objc-lang.c (objc_language_defn): Update.
6793 * m2-lang.c (m2_language_defn): Update.
6794 * language.h (struct language_defn)
6795 <la_watch_location_expression>: New member.
6796 * language.c (unknown_language_defn, auto_language_defn)
6797 (local_language_defn): Update.
6798 * go-lang.c (go_language_defn): Update.
6799 * f-lang.c (f_language_defn): Update.
6800 * d-lang.c (d_language_defn): Update.
6801 * c-lang.h (c_watch_location_expression): Declare.
6802 * c-lang.c (c_watch_location_expression): New function.
6803 (c_language_defn, cplus_language_defn, asm_language_defn)
6804 (minimal_language_defn): Use it.
6805 * breakpoint.c (watch_command_1): Call
6806 la_watch_location_expression.
6807 * ada-lang.c (ada_language_defn): Update.
6808
7a6e7fcc
RO
68092017-05-19 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
6810
6e7e1744
RO
6811 PR tui/21482
6812 * gdb_curses.h (NOMACROS): Define.
6813 (NCURSES_NOMACROS): Define.
6814
68152017-05-19 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
6816
6817 PR tui/21482
7a6e7fcc
RO
6818 * tui/tui-windata.c (tui_erase_data_content): Cast last mvwaddstr
6819 arg to char *.
6820 * tui/tui-wingeneral.c (box_win): Likewise.
6821 * tui/tui-winsource.c (tui_erase_source_content): Likewise.
6822 (tui_show_source_line): Likewise.
6823 (tui_show_exec_info_content): Likewise.
6824
1933fd8e
VM
68252017-05-19 Vladimir Mezentsev <vladimir.mezentsev@oracle.com>
6826
6827 * sparc-tdep.c (sparc_structure_return_p)
6828 (sparc_arg_on_registers_p): New functions.
6829 (sparc32_store_arguments): Use them.
6830 * sparc64-tdep.c (sparc64_16_byte_align_p)
6831 (sparc64_store_floating_fields, sparc64_extract_floating_fields):
6832 Handle TYPE_CODE_ARRAY.
6833
21873064
YQ
68342017-05-17 Yao Qi <yao.qi@linaro.org>
6835
6836 * cli/cli-decode.c (add_alias_cmd): New function.
6837 * command.h (add_alias_cmd): Declare.
6838 * infcmd.c (_initialize_infcmd): Don't call add_com_alias,
6839 instead call add_alias_cmd.
6840
2b351b19
PA
68412017-05-17 Pedro Alves <palves@redhat.com>
6842
6843 * Makefile.in (nat_extra_makefile_frag): Rename to ...
6844 (nat_makefile_frag): ... this. All references updated.
6845 * configure.ac: Likewise.
6846 * configure.nat: Likewise. Enhance comments.
6847 * configure: Regenerate.
6848
5f2ad7a3
RO
68492017-05-15 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
6850
6851 * procfs.c (procfs_create_inferior): Change prototype to match
6852 definition.
6853
adf3dde5
EZ
68542017-05-13 Eli Zaretskii <eliz@gnu.org>
6855
6856 * tui/tui.c (tui_enable): Cast "unknown" to 'char *' to avoid a
6857 C++ compiler warning.
6858
6830f270
TT
68592017-05-12 Tom Tromey <tom@tromey.com>
6860
6861 PR rust/21483:
6862 * rust-lang.c (rust_evaluate_subexp) <STRUCTOP_STRUCT>: Don't
6863 recurse, just call value_struct_elt directly.
6864
68f2f2e3
TT
68652017-05-12 Tom Tromey <tom@tromey.com>
6866
6867 * rust-lang.c (rust_dump_subexp_body) <STRUCTOP_ANONYMOUS,
6868 OP_RUST_ARRAY>: Fix.
6869
256afbc2
TT
68702017-05-12 Tom Tromey <tom@tromey.com>
6871
6872 * rust-lang.c (rust_print_subexp): Replace "return" with "break".
6873
94bb8dfe
YQ
68742017-05-09 Yao Qi <yao.qi@linaro.org>
6875
6876 * regcache.c: Include <forward_list>.
6877 (struct regcache_list): Remove.
6878 (current_regcache): Update.
6879 (get_thread_arch_aspace_regcache): Update for std::forward_list.
6880 (regcache_thread_ptid_changed): Likewise.
6881 (registers_changed_ptid): Likewise.
6882 (current_regcache_size): Likewise.
6883
8248946c
YQ
68842017-05-09 Yao Qi <yao.qi@linaro.org>
6885
6886 * regcache.c [GDB_SELF_TEST]: Include selftest.h.
6887 (current_regcache_size): New function.
6888 (current_regcache_test): New function.
6889 (_initialize_regcache) [GDB_SELF_TEST]: Register the unit test.
6890
313c5961
AH
68912017-05-08 Alan Hayward <alan.hayward@arm.com>
6892
6893 * mips-tdep.c (mips_o32_return_value): Remove unused buffer.
6894 (print_gp_register_row): Use get_frame_register_value.
6895
27bfc1d1
AH
68962017-05-08 Alan Hayward <alan.hayward@arm.com>
6897
6898 * mips-linux-tdep.c (mips_supply_gregset): Use raw_supply_zeroed.
6899 (mips_supply_fpregset): Likewise.
6900 (mips64_supply_gregset): Likewise.
6901
146e6c5c
AH
69022017-05-08 Alan Hayward <alan.hayward@arm.com>
6903
6904 * mn10300-linux-tdep.c (am33_supply_gregset_method): Use
6905 regcache->raw_supply_zeroed.
6906
e50f25ec
SDJ
69072017-05-06 Sergio Durigan Junior <sergiodj@redhat.com>
6908
6909 * configure.nat: Rearrange 'case' statements to match
6910 host before cpu.
6911
21ea5acd
SDJ
69122017-05-06 Sergio Durigan Junior <sergiodj@redhat.com>
6913
6914 * Makefile.in: Remove "@host_makefile_frag@". Add variables
6915 NAT_FILE, NATDEPFILES, NAT_CDEPS, LOADLIBES, MH_CFLAGS, XM_CLIBS,
6916 NAT_GENERATED_FILES, HAVE_NATIVE_GCORE_HOST. Add
6917 "@nat_extra_makefile_frag@".
6918 (Makefile): Remove dependency on "@frags@".
6919 ($(GNULIB_BUILDDIR)/Makefile): Likewise.
6920 (data-directory/Makefile): Likewise.
6921 * config/aarch64/linux.mh: Deleted; moved contents to
6922 "gdb/configure.nat".
6923 * config/alpha/alpha-linux.mh: Likewise.
6924 * config/alpha/nbsd.mh: Likewise.
6925 * config/arm/linux.mh: Likewise.
6926 * config/arm/nbsdelf.mh: Likewise.
6927 * config/i386/cygwin.mh: Likewise.
6928 * config/i386/cygwin64.mh: Likewise.
6929 * config/i386/darwin.mh: Likewise.
6930 * config/i386/fbsd.mh: Likewise.
6931 * config/i386/fbsd64.mh: Likewise.
6932 * config/i386/go32.mh: Likewise.
6933 * config/i386/i386gnu.mh: Likewise.
6934 * config/i386/i386sol2.mh: Likewise.
6935 * config/i386/linux.mh: Likewise.
6936 * config/i386/linux64.mh: Likewise.
6937 * config/i386/mingw.mh: Likewise.
6938 * config/i386/mingw64.mh: Likewise.
6939 * config/i386/nbsd64.mh: Likewise.
6940 * config/i386/nbsdelf.mh: Likewise.
6941 * config/i386/nto.mh: Likewise.
6942 * config/i386/obsd.mh: Likewise.
6943 * config/i386/obsd64.mh: Likewise.
6944 * config/i386/sol2-64.mh: Likewise.
6945 * config/ia64/linux.mh: Likewise.
6946 * config/m32r/linux.mh: Likewise.
6947 * config/m68k/linux.mh: Likewise.
6948 * config/m68k/nbsdelf.mh: Likewise.
6949 * config/m68k/obsd.mh: Likewise.
6950 * config/m88k/obsd.mh: Likewise.
6951 * config/mips/fbsd.mh: Likewise.
6952 * config/mips/linux.mh: Likewise.
6953 * config/mips/nbsd.mh: Likewise.
6954 * config/mips/obsd64.mh: Likewise.
6955 * config/pa/linux.mh: Likewise.
6956 * config/pa/nbsd.mh: Likewise.
6957 * config/pa/obsd.mh: Likewise.
6958 * config/powerpc/aix.mh: Likewise.
6959 * config/powerpc/fbsd.mh: Likewise.
6960 * config/powerpc/linux.mh: Likewise.
6961 * config/powerpc/nbsd.mh: Likewise.
6962 * config/powerpc/obsd.mh: Likewise.
6963 * config/powerpc/ppc64-linux.mh: Likewise.
6964 * config/powerpc/spu-linux.mh: Likewise.
6965 * config/s390/linux.mh: Likewise.
6966 * config/sh/nbsd.mh: Likewise.
6967 * config/sparc/fbsd.mh: Likewise.
6968 * config/sparc/linux.mh: Likewise.
6969 * config/sparc/linux64.mh: Likewise.
6970 * config/sparc/nbsd64.mh: Likewise.
6971 * config/sparc/nbsdelf.mh: Likewise.
6972 * config/sparc/obsd64.mh: Likewise.
6973 * config/sparc/sol2.mh: Likewise.
6974 * config/tilegx/linux.mh: Likewise.
6975 * config/vax/nbsdelf.mh: Likewise.
6976 * config/vax/obsd.mh: Likewise.
6977 * config/xtensa/linux.mh: Likewise.
6978 * config/i386/i386gnu.mn: New file, with excerpts from
6979 "config/i386/i386gnu.mh".
6980 * configure: Regenerate.
6981 * configure.ac: Rewrite code to use "gdb/configure.nat" instead of
6982 *.mh files under "gdb/config".
6983 * configure.nat: New file, with contents from the
6984 "gdb/config/*/*.mh" files.
6985
7ed1acaf
TW
69862017-05-05 Tim Wiederhake <tim.wiederhake@intel.com>
6987
6988 * btrace.c (btrace_clear): Free insn vector.
6989
e13cb306
PA
69902017-05-05 Pedro Alves <palves@redhat.com>
6991
6992 * warning.m4 (build_warnings): Add -Wno-error=maybe-uninitialized.
6993 * configure: Regenerate.
6994
5ed8105e
PA
69952017-05-04 Pedro Alves <palves@redhat.com>
6996
6997 * Makefile.in (SFILES): Add progspace-and-thread.c.
6998 (HFILES_NO_SRCDIR): Add progspace-and-thread.h.
6999 (COMMON_OBS): Add progspace-and-thread.o.
7000 * breakpoint.c: Include "progspace-and-thread.h".
7001 (update_inserted_breakpoint_locations)
7002 (insert_breakpoint_locations, create_longjmp_master_breakpoint):
7003 Use scoped_restore_current_pspace_and_thread.
7004 (create_std_terminate_master_breakpoint): Use
7005 scoped_restore_current_program_space.
7006 (remove_breakpoint): Use scoped_restore_current_pspace_and_thread.
7007 (print_breakpoint_location): Use
7008 scoped_restore_current_program_space.
7009 (bp_loc_is_permanent): Use
7010 scoped_restore_current_pspace_and_thread.
7011 (resolve_sal_pc): Use scoped_restore_current_pspace_and_thread.
7012 (download_tracepoint_locations): Use
7013 scoped_restore_current_pspace_and_thread.
7014 (breakpoint_re_set): Use scoped_restore_current_pspace_and_thread.
7015 * exec.c (exec_close_1): Use scoped_restore_current_program_space.
7016 (enum step_over_calls_kind): Moved from inferior.h.
7017 (class scoped_restore_current_thread): New class.
7018 * gdbthread.h (make_cleanup_restore_current_thread): Delete
7019 declaration.
7020 (scoped_restore_current_thread): New class.
7021 * infcmd.c: Include "common/gdb_optional.h".
7022 (continue_1, proceed_after_attach): Use
7023 scoped_restore_current_thread.
7024 (notice_new_inferior): Use scoped_restore_current_thread.
7025 * inferior.c: Include "progspace-and-thread.h".
7026 (restore_inferior, save_current_inferior): Delete.
7027 (add_inferior_command, clone_inferior_command): Use
7028 scoped_restore_current_pspace_and_thread.
7029 * inferior.h (scoped_restore_current_inferior): New class.
7030 * infrun.c: Include "progspace-and-thread.h" and
7031 "common/gdb_optional.h".
7032 (follow_fork_inferior): Use
7033 scoped_restore_current_pspace_and_thread.
7034 (scoped_restore_exited_inferior): New class.
7035 (handle_vfork_child_exec_or_exit): Use
7036 scoped_restore_exited_inferior,
7037 scoped_restore_current_pspace_and_thread,
7038 scoped_restore_current_thread and scoped_restore.
7039 (fetch_inferior_event): Use scoped_restore_current_thread.
7040 * linespec.c (decode_line_full, decode_line_1): Use
7041 scoped_restore_current_program_space.
7042 * mi/mi-main.c: Include "progspace-and-thread.h".
7043 (exec_continue): Use scoped_restore_current_thread.
7044 (mi_cmd_exec_run): Use scoped_restore_current_pspace_and_thread.
7045 (mi_cmd_trace_frame_collected): Use scoped_restore_current_thread.
7046 * proc-service.c (ps_pglobal_lookup): Use
7047 scoped_restore_current_program_space.
7048 * progspace-and-thread.c: New file.
7049 * progspace-and-thread.h: New file.
7050 * progspace.c (release_program_space, clone_program_space): Use
7051 scoped_restore_current_program_space.
7052 (restore_program_space, save_current_program_space)
7053 (save_current_space_and_thread): Delete.
7054 (switch_to_program_space_and_thread): Moved to
7055 progspace-and-thread.c.
7056 * progspace.h (save_current_program_space)
7057 (save_current_space_and_thread): Delete declarations.
7058 (scoped_restore_current_program_space): New class.
7059 * remote.c (remote_btrace_maybe_reopen): Use
7060 scoped_restore_current_thread.
7061 * symtab.c: Include "progspace-and-thread.h".
7062 (skip_prologue_sal): Use scoped_restore_current_pspace_and_thread.
7063 * thread.c (print_thread_info_1): Use
7064 scoped_restore_current_thread.
7065 (struct current_thread_cleanup): Delete.
7066 (do_restore_current_thread_cleanup)
7067 (restore_current_thread_cleanup_dtor): Rename/convert both to ...
7068 (scoped_restore_current_thread::~scoped_restore_current_thread):
7069 ... this new dtor.
7070 (make_cleanup_restore_current_thread): Rename/convert to ...
7071 (scoped_restore_current_thread::scoped_restore_current_thread):
7072 ... this new ctor.
7073 (thread_apply_all_command): Use scoped_restore_current_thread.
7074 (thread_apply_command): Use scoped_restore_current_thread.
7075 * tracepoint.c (tdump_command): Use scoped_restore_current_thread.
7076 * varobj.c (value_of_root_1): Use scoped_restore_current_thread.
7077
f6223dbb
PA
70782017-05-04 Pedro Alves <palves@redhat.com>
7079
7080 * thread.c (make_cleanup_restore_current_thread): Move
7081 find_thread_ptid call before the is_stopped call. Assert that the
7082 thread is found. Replace is_stopped call by checking the thread's
7083 state directly. Remove unnecessary NULL-thread check.
7084
3c3ae77e
PA
70852017-05-04 Pedro Alves <palves@redhat.com>
7086
7087 * corelow.c (thread_section_name): New class.
7088 (get_core_register_section, get_core_siginfo): Use it.
7089
45eba0ab
AA
70902017-05-04 Andreas Arnez <arnez@linux.vnet.ibm.com>
7091
7092 * corelow.c (sniff_core_bfd): Remove extra semicolon.
7093 (get_core_register_section): Remove xfree of NULL pointer.
7094
f81fdd35
AH
70952017-05-03 Alan Hayward <alan.hayward@arm.com>
7096
7097 * frv-linux-tdep.c (frv_linux_supply_gregset): Use raw_supply_zeroed.
7098 * regcache.c (regcache::raw_supply_zeroed): New function.
7099 * regcache.h (regcache::raw_supply_zeroed): New declaration.
7100
35837774
SM
71012017-05-03 Simon Marchi <simon.marchi@ericsson.com>
7102
7103 * gdbarch.sh: Remove commented out definition of
7104 TARGET_CHAR_BIT.
7105 * gdbarch.h: Re-generate.
7106
c94fee56
SDJ
71072017-05-03 Sergio Durigan Junior <sergiodj@redhat.com>
7108
7109 * configure: Regenerate.
7110
d17f7b36
SM
71112017-05-02 Simon Marchi <simon.marchi@ericsson.com>
7112
7113 * solib-target.c (solib_target_relocate_section_addresses):
7114 Remove num_section_bases, num_bases, segment_bases variables.
7115
b560ebd6
SM
71162017-05-02 Simon Marchi <simon.marchi@polymtl.ca>
7117
7118 * common/gdb_vecs.h (DEF_VEC_I (CORE_ADDR)): Remove.
7119
f2f46dfc
SM
71202017-05-02 Simon Marchi <simon.marchi@polymtl.ca>
7121
7122 * solib-target.c: Include <vector>
7123 (struct lm_info_target) <~lm_info_target>: Remove.
7124 <segment_bases, section_bases>: Change type to
7125 std::vector<CORE_ADDR>.
7126 (library_list_start_segment, library_list_start_section,
7127 library_list_end_library,
7128 solib_target_relocate_section_addresses): Adjust.
7129
a0ff9e1a
SM
71302017-05-02 Simon Marchi <simon.marchi@polymtl.ca>
7131
7132 * gdbarch.sh (software_single_step): Change return type to
7133 std::vector<CORE_ADDR>.
7134 * gdbarch.c, gdbarch.h: Re-generate.
7135 * arch/arm-get-next-pcs.c (thumb_deal_with_atomic_sequence_raw):
7136 Adjust.
7137 (arm_deal_with_atomic_sequence_raw): Adjust.
7138 (thumb_get_next_pcs_raw): Adjust.
7139 (arm_get_next_pcs_raw): Adjust.
7140 (arm_get_next_pcs): Adjust.
7141 * arch/arm-get-next-pcs.h (arm_get_next_pcs): Adjust.
7142 * aarch64-tdep.c (aarch64_software_single_step): Adjust.
7143 * alpha-tdep.c (alpha_deal_with_atomic_sequence): Adjust.
7144 (alpha_software_single_step): Adjust.
7145 * alpha-tdep.h (alpha_software_single_step): Adjust.
7146 * arm-linux-tdep.c (arm_linux_software_single_step): Adjust.
7147 * arm-tdep.c (arm_software_single_step): Adjust.
7148 (arm_breakpoint_kind_from_current_state): Adjust.
7149 * arm-tdep.h (arm_software_single_step): Adjust.
7150 * breakpoint.c (insert_single_step_breakpoint): Adjust.
7151 * cris-tdep.c (cris_software_single_step): Adjust.
7152 * mips-tdep.c (mips_deal_with_atomic_sequence): Adjust.
7153 (micromips_deal_with_atomic_sequence): Adjust.
7154 (deal_with_atomic_sequence): Adjust.
7155 (mips_software_single_step): Adjust.
7156 * mips-tdep.h (mips_software_single_step): Adjust.
7157 * moxie-tdep.c (moxie_software_single_step): Adjust.
7158 * nios2-tdep.c (nios2_software_single_step): Adjust.
7159 * ppc-tdep.h (ppc_deal_with_atomic_sequence): Adjust.
7160 * rs6000-aix-tdep.c (rs6000_software_single_step): Adjust.
7161 * rs6000-tdep.c (ppc_deal_with_atomic_sequence): Adjust.
7162 * s390-linux-tdep.c (s390_software_single_step): Adjust.
7163 * sparc-tdep.c (sparc_software_single_step): Adjust.
7164 * spu-tdep.c (spu_software_single_step): Adjust.
7165 * tic6x-tdep.c (tic6x_software_single_step): Adjust.
7166
ea480a30
SM
71672017-05-02 Simon Marchi <simon.marchi@polymtl.ca>
7168
7169 * gdbarch.sh: Use semi-colon as field separator instead of colon.
7170 * gdbarch.h: Re-generate.
7171
d050f7d7
TW
71722017-05-01 Tim Wiederhake <tim.wiederhake@intel.com>
7173
7174 * Makefile.in (SUBDIR_PYTHON_OBS): Add py-instruction.o.
7175 (SUBDIR_PYTHON_SRCS): Add py-instruction.c.
7176 * python/py-instruction.c, python/py-instruction.h: New file.
7177 * python/py-record.c: Add py-instruction.h include.
7178 (gdbpy_initialize_record): Make gdb.Instruction a super class of
7179 gdb.RecordInstruction.
7180 * python/python-internal.h: Add gdbpy_initialize_instruction
7181 declaration.
7182 * python/python.c (do_start_initialization): Add
7183 gdbpy_initialize_instruction.
7184
14f819c8
TW
71852017-05-01 Tim Wiederhake <tim.wiederhake@intel.com>
7186
7187 * python/py-record-btrace.c (BTPY_REQUIRE_VALID_CALL, btpy_call_type):
7188 Remove.
7189 (btrace_func_from_recpy_func): New function.
7190 (btpy_call_new, btpy_number, btpy_hash, btpy_richcompare): Remove.
7191 (btpy_call_level, btpy_call_symbol, btpy_call_instructions,
7192 btpy_call_up, btpy_call_prev_sibling, btpy_call_next_sibling): Rename to ...
7193 (recpy_bt_func_level, recpy_bt_func_symbol, recpy_bt_func_instructions,
7194 recpy_bt_func_up, recpy_bt_func_prev, recpy_bt_func_next): This.
7195 Also, use new helper functions.
7196 (btpy_list_item): Use new helper functions.
7197 (recpy_bt_function_call_history): Use new type name.
7198 (btpy_call_getset): Remove.
7199 (gdbpy_initialize_btrace): Remove code to initialize
7200 gdb.BtraceFunctionCall.
7201 * python/py-record-btrace.h (recpy_bt_func_number, recpy_btb_func_level,
7202 recpy_btb_func_symbol, recpy_bt_func_instructions, recpy_bt_func_up,
7203 recpy_bt_func_prev, recpy_bt_func_next): New export.
7204 * python/py-record.c (recpy_func_type): New static object.
7205 (recpy_func_new, recpy_func_level, recpy_func_symbol,
7206 recpy_func_instructions, recpy_func_up, recpy_func_prev,
7207 recpy_func_next): New function.
7208 (recpy_element_hash, recpy_element_richcompare): Updated comment.
7209 (recpy_func_getset): New static object.
7210 (gdbpy_initialize_record): Add code to initialize gdb.RecordInstruction.
7211 * python/py-record.h (recpy_func_type, recpy_func_new): New export.
7212
0ed5da75
TW
72132017-05-01 Tim Wiederhake <tim.wiederhake@intel.com>
7214
7215 * python/py-record-btrace.c (BTPY_REQUIRE_VALID_INSN): Remove.
7216 (btpy_object, btpy_insn_type, btpy_new): Remove.
7217 (btpy_list_object): Use gdb.RecordInstruction type instead of
7218 gdb.BtraceInstruction type.
7219 (btrace_insn_from_recpy_insn): New function.
7220 (btpy_insn_or_gap_new): Adjust comment. Use recpy_insn_new instead of
7221 btpy_new.
7222 (btpy_call_new, btpy_list_item): Do not use btpy_new anymore.
7223 (btpy_number, btpy_hash, btpy_call_level, btpy_call_symbol,
7224 btpy_call_instructions, btpy_call_up, btpy_call_prev_sibling,
7225 btpy_call_next_sibling, btpy_richcompare): Use recpy_element_object
7226 instead of btpy_object.
7227 (btpy_insn_sal, btpy_insn_pc, btpy_insn_size, btpy_insn_is_speculative,
7228 btpy_insn_data, btpy_insn_decode): Rename to ...
7229 (recpy_bt_insn_sal, recpy_bt_insn_pc, recpy_bt_insn_size,
7230 recpy_bt_insn_is_speculative, recpy_bt_insn_data,
7231 recpy_bt_insn_decode): This. Also, use new helper functions.
7232 (btpy_list_position, recpy_bt_goto): Use recpy_element_object and
7233 recpy_insn_type.
7234 (btpy_insn_getset): Remove.
7235 (gdbpy_initialize_btrace): Remove code to initialize
7236 gdb.BtraceInstruction. Use recpy_element_object.
7237 * python/py-record-btrace.h (recpy_bt_insn_number, recpy_bt_insn_sal,
7238 recpy_bt_insn_pc, recpy_bt_insn_data, recpy_bt_insn_decoded,
7239 recpy_bt_insn_size, recpy_bt_insn_is_speculative): New export.
7240 * python/py-record.c (recpy_insn_type): New static object.
7241 (recpy_insn_new, recpy_insn_sal, recpy_insn_pc, recpy_insn_data,
7242 recpy_insn_decoded, recpy_insn_size, recpy_insn_is_speculative,
7243 recpy_element_number, recpy_element_hash, recpy_element_richcompare):
7244 New function.
7245 (recpy_insn_getset): New static object.
7246 (gdbpy_initialize_record): Initialize gdb.RecordInstruction.
7247 * python/py-record.h (recpy_element_object): New typedef.
7248 (recpy_insn_type, recpy_insn_new): New export.
7249
913aeadd
TW
72502017-05-01 Tim Wiederhake <tim.wiederhake@intel.com>
7251
7252 * py-record-btrace.c (btpy_insn_new): Removed.
7253 (btpy_insn_or_gap_new): New function.
7254 (btpy_insn_error): Removed.
7255 (btpy_insn_sal, btpy_insn_pc, btpy_insn_size, btpy_insn_is_speculative,
7256 btpy_insn_data, btpy_insn_decode): Remove code path for gaps.
7257 (recpy_bt_replay_position, recpy_bt_begin, recpy_bt_end): Call
7258 btpy_insn_or_gap_new instead of btpy_insn_new.
7259 (btpy_insn_getset): Remove btpy_insn_error.
7260 * py-record.c (recpy_gap_type): New static object.
7261 (recpy_gap_object): New typedef.
7262 (recpy_gap_new, recpy_gap_number, recpy_gap_reason_code,
7263 recpy_gap_reason_string): New function.
7264 (recpy_gap_getset): New static object.
7265 (gdbpy_initialize_record): Initialize gdb.RecordGap type.
7266 * py-record.h (recpy_gap_new): New export.
7267
a3be24ad
TW
72682017-05-01 Tim Wiederhake <tim.wiederhake@intel.com>
7269
7270 * python/py-record.c (recpy_ptid): Remove.
7271 (recpy_record_getset): Remove recpy_ptid.
7272
ae20e79a
TW
72732017-05-01 Tim Wiederhake <tim.wiederhake@intel.com>
7274
7275 * btrace.c (btrace_fetch): Set inferior_ptid.
7276 * python/py-record-btrace.c: Add "py-record.h" include.
7277 (recpy_bt_format, recpy_bt_replay_position, recpy_bt_begin,
7278 recpy_bt_end, recpy_bt_instruction_history,
7279 recpy_bt_function_call_history, recpy_bt_goto): Use ptid stored
7280 in gdb.Record object instead of current ptid.
7281 * python/py-record.c: Include new "py-record.h" file.
7282 (recpy_record_object): Moved to py-record.h.
7283 * python/py-record.h: New file.
7284
8d0050ea
TW
72852017-05-01 Tim Wiederhake <tim.wiederhake@intel.com>
7286
7287 * python/py-record-btrace.c (BTPY_REQUIRE_VALID_INSN,
7288 BTPY_REQUIRE_VALID_CALL, recpy_bt_function_call_history): Fix
7289 indentation.
7290
3f380b50
JB
72912017-05-01 Joel Brobecker <brobecker@adacore.com>
7292
7293 * MAINTAINERS: Move Daniel Jacobowitz and Mark Kettenis to
7294 the past maintainers section.
7295
07495424
YQ
72962017-04-28 Yao Qi <yao.qi@linaro.org>
7297
7298 * infcmd.c (get_return_value): Use regcache ctor, and remove
7299 cleanup.
7300
deb1fa3e
YQ
73012017-04-28 Yao Qi <yao.qi@linaro.org>
7302 Pedro Alves <palves@redhat.com>
7303
7304 * regcache.c (regcache::regcache): New tag dispatch ctor.
7305 (do_cooked_read): Moved above.
7306 (regcache_dup): Use the tag dispatch ctor..
7307 * regcache.h (regcache): Declare ctor, delete copy ctor and
7308 assignment operator, remove friend regcache_dup.
7309
b421c83c
YQ
73102017-04-28 Yao Qi <yao.qi@linaro.org>
7311
7312 * regcache.c (regcache_dup): Assert !src->m_readonly_p and
7313 call method save instead of regcache_cpy.
7314 * regcache.h (struct regcache): Make regcache_dup a friend.
7315
ef79d9a3
YQ
73162017-04-28 Yao Qi <yao.qi@linaro.org>
7317
7318 * regcache.c (struct regcache): Move to regcache.h
7319 (regcache::arch): New method.
7320 (regcache_get_ptid): Update.
7321 (get_regcache_arch): Call arch method.
7322 (get_regcache_aspace): Call method aspace.
7323 (register_buffer): Change it to method.
7324 (regcache_save): Change it to regcache::save.
7325 (regcache_restore): Likewise.
7326 (regcache_cpy_no_passthrough): Remove the declaration.
7327 (regcache_cpy): Call methods restore and cpy_no_passthrough.
7328 (regcache_cpy_no_passthrough): Change it to method
7329 cpy_no_passthrough.
7330 (regcache_register_status): Change it to method
7331 get_register_status.
7332 (regcache_invalidate): Change it to method invalidate.
7333 (regcache_thread_ptid_changed): Use methods ptid and set_ptid.
7334 (regcache_raw_update): Change it to method raw_update.
7335 (regcache_raw_read): Likewise.
7336 (regcache_raw_read_signed): Likewise.
7337 (regcache_raw_read_unsigned): Likewise.
7338 (regcache_raw_write_signed): Likewise.
7339 (regcache_raw_write_unsigned): Likewise.
7340 (regcache_cooked_read): Likewise.
7341 (regcache_cooked_read_value): Likewise.
7342 (regcache_cooked_read_signed): Likewise.
7343 (regcache_cooked_read_unsigned): Likewise.
7344 (regcache_cooked_write_signed): Likewise.
7345 (regcache_cooked_write_unsigned): Likewise.
7346 (regcache_raw_set_cached_value): Likewise.
7347 (regcache_raw_write): Likewise.
7348 (regcache_cooked_write): Likewise.
7349 (regcache_xfer_part): Likewise.
7350 (regcache_raw_read_part): Likewise.
7351 (regcache_raw_write_part): Likewise.
7352 (regcache_cooked_read_part): Likewise.
7353 (regcache_cooked_write_part): Likewise.
7354 (regcache_raw_supply): Likewise.
7355 (regcache_raw_collect): Likewise.
7356 (regcache_transfer_regset): Likewise.
7357 (regcache_supply_regset): Likewise.
7358 (regcache_collect_regset): Likewise.
7359 (regcache_debug_print_register): Likewise.
7360 (enum regcache_dump_what): Move it to regcache.h.
7361 (regcache_dump): Change it to method dump.
7362 * regcache.h (enum regcache_dump_what): New.
7363 (class regcache): New.
7364 * target.c (target_fetch_registers): Call method
7365 debug_print_register.
7366 (target_store_registers): Likewise.
7367
f8fdb78e
SM
73682017-04-28 Simon Marchi <simon.marchi@ericsson.com>
7369
7370 * windows-nat.c (struct lm_info_windows): Initialize field.
7371 (windows_make_so): Allocate lm_info_windows with new.
7372 (windows_free_so): Free lm_info_windows with delete.
7373
9ccbfd7b
SM
73742017-04-28 Simon Marchi <simon.marchi@ericsson.com>
7375
7376 * solib-darwin.c (struct lm_info_darwin): Initialize field.
7377 (darwin_current_sos): Allocate lm_info_darwin with new, remove
7378 cleanup.
7379 (darwin_free_so): Free lm_info_darwin with delete.
7380
76e75227
SM
73812017-04-28 Simon Marchi <simon.marchi@ericsson.com>
7382
7383 * solib-svr4.h (struct lm_info_svr4): Initialize fields.
7384 <l_addr_p>: Change type to bool.
7385 * solib-svr4.c (lm_info_read): Allocate lm_info_svr4 with new.
7386 (svr4_free_so): Free lm_info_svr4 with delete.
7387 (svr4_copy_library_list): Replace memcpy with call to copy
7388 constructor.
7389 (library_list_start_library, svr4_default_sos): Allocate
7390 lm_info_svr4 with new.
7391
51046d9e
SM
73922017-04-28 Simon Marchi <simon.marchi@ericsson.com>
7393
7394 * solib-target.c (struct lm_info_target): Add destructor,
7395 initialize fields.
7396 <name>: Change type to std::string.
7397 (library_list_start_library): Allocate lm_info_target with new.
7398 (solib_target_free_library_list): Free lm_info_target with
7399 delete.
7400 (solib_target_current_sos): Adapt to std::string.
7401 (solib_target_free_so): Free lm_info_target with delete.
7402
4023ae76
SM
74032017-04-28 Simon Marchi <simon.marchi@ericsson.com>
7404
7405 * solib-frv.c (struct lm_info_frv): Add destructor, initialize
7406 fields.
7407 (frv_current_sos): Allocate lm_info_frv with new.
7408 (frv_relocate_main_executable): Free lm_info_frv with delete,
7409 allocate with new.
7410 (frv_clear_solib, frv_free_so): Free lm_info_frv with delete.
7411
af43057b
SM
74122017-04-28 Simon Marchi <simon.marchi@ericsson.com>
7413
7414 * solib-frv.c (struct lm_info_frv): Fix indentation.
7415
b0911207
SM
74162017-04-28 Simon Marchi <simon.marchi@ericsson.com>
7417
7418 * solib-dsbt.c (struct lm_info_dsbt): Add destructor, initialize
7419 map field.
7420 (dsbt_current_sos): Allocate lm_info_dsbt with new.
7421 (dsbt_relocate_main_executable): Free lm_info_dsbt with delete
7422 and allocate with new.
7423 (dsbt_clear_solib, dsbt_free_so): Free lm_info_dsbt with delete.
7424
6c401f72
SM
74252017-04-28 Simon Marchi <simon.marchi@ericsson.com>
7426
7427 * solib-aix.c (struct lm_info_aix): Initialize fields in-class.
7428 <filename, member_name>: Change type to std::string.
7429 (solib_aix_new_lm_info, solib_aix_xfree_lm_info): Remove.
7430 (library_list_start_library): Allocate lm_info_aix with new.
7431 (solib_aix_free_library_list, solib_aix_free_so): Free with delete.
7432 (solib_aix_current_sos): Adapt to std::string, copy lm_info_aix
7433 with copy constructor.
7434
d0e449a1
SM
74352017-04-28 Simon Marchi <simon.marchi@ericsson.com>
7436
7437 * solist.h (struct lm_info): Remove.
7438 (struct lm_info_base): New class.
7439 (struct so_list) <lm_info>: Change type to lm_info_base *.
7440 * nto-tdep.c (struct lm_info): Remove.
7441 (lm_addr): Adjust.
7442 * solib-aix.c (struct lm_info): Rename to ...
7443 (struct lm_info_aix): ... this. Extend lm_info_base.
7444 (lm_info_p): Rename to ...
7445 (lm_info_aix_p): ... this, and adjust.
7446 (solib_aix_new_lm_info, solib_aix_xfree_lm_info,
7447 solib_aix_parse_libraries, library_list_start_library,
7448 solib_aix_free_library_list, solib_aix_parse_libraries,
7449 solib_aix_get_library_list,
7450 solib_aix_relocate_section_addresses, solib_aix_free_so,
7451 solib_aix_get_section_offsets,
7452 solib_aix_solib_create_inferior_hook, solib_aix_current_sos):
7453 Adjust.
7454 (struct solib_aix_inferior_data) <library_list>: Adjust.
7455 * solib-darwin.c (struct lm_info): Rename to ...
7456 (struct lm_info_darwin): ... this. Extend lm_info_base.
7457 (darwin_current_sos, darwin_relocate_section_addresses): Adjust.
7458 * solib-dsbt.c (struct lm_info): Rename to ...
7459 (struct lm_info_dsbt): ... this. Extend lm_info_base.
7460 (struct dsbt_info) <main_executable_lm_info): Adjust.
7461 (dsbt_current_sos, dsbt_relocate_main_executable, dsbt_free_so,
7462 dsbt_relocate_section_addresses): Adjust.
7463 * solib-frv.c (struct lm_info): Rename to ...
7464 (struct lm_info_frv): ... this. Extend lm_info_base.
7465 (main_executable_lm_info): Adjust.
7466 (frv_current_sos, frv_relocate_main_executable, frv_free_so,
7467 frv_relocate_section_addresses, frv_fdpic_find_global_pointer,
7468 find_canonical_descriptor_in_load_object,
7469 frv_fdpic_find_canonical_descriptor): Adjust.
7470 * solib-svr4.c (struct lm_info): Move to solib-svr4.h, renamed
7471 to lm_info_svr4.
7472 (lm_info_read, lm_addr_check, svr4_keep_data_in_core,
7473 svr4_clear_so, svr4_copy_library_list,
7474 library_list_start_library, svr4_default_sos, svr4_read_so_list,
7475 svr4_current_sos, svr4_fetch_objfile_link_map,
7476 solist_update_incremental): Adjust.
7477 * solib-svr4.h (struct lm_info_svr4): Move here from
7478 solib-svr4.c.
7479 * solib-target.c (struct lm_info): Rename to ...
7480 (struct lm_info_target): ... this. Extend lm_info_base.
7481 (lm_info_p): Rename to ...
7482 (lm_info_target_p): ... this.
7483 (solib_target_parse_libraries, library_list_start_segment,
7484 library_list_start_section, library_list_start_library,
7485 library_list_end_library, solib_target_free_library_list,
7486 solib_target_current_sos, solib_target_free_so,
7487 solib_target_relocate_section_addresses): Adjust.
7488 * windows-nat.c (struct lm_info): Rename to ...
7489 (struct lm_info_windows): ... this. Extend lm_info_base.
7490 (windows_make_so, handle_load_dll, handle_unload_dll,
7491 windows_xfer_shared_libraries): Adjust.
7492
434a4023
SM
74932017-04-28 Simon Marchi <simon.marchi@ericsson.com>
7494
7495 * solib-darwin.c (struct darwin_so_list): Remove.
7496 (darwin_current_sos): Allocate an so_list object instead of a
7497 darwin_so_list, separately allocate an lm_info object.
7498 (darwin_free_so): Free lm_info.
7499
428544e8
JB
75002017-04-28 John Baldwin <jhb@FreeBSD.org>
7501
7502 * mips-tdep.c (print_gp_register_row): Replace printf_filtered
7503 with fprintf_filtered.
7504
4621115f
YQ
75052017-04-28 Yao Qi <yao.qi@linaro.org>
7506
7507 * regcache.c (regcache::regcache): New function.
7508 (regcache::~regcache): New function.
7509 (regcache_xmalloc_1): Remove.
7510 (regcache_xmalloc): Call new regcache.
7511 (regcache_xfree): Call delete regcache.
7512 (get_thread_arch_aspace_regcache): Call new regcache.
7513
339053c2
YQ
75142017-04-28 Yao Qi <yao.qi@linaro.org>
7515
7516 * mips-linux-nat.c (mips_linux_new_thread): Use ptid method
7517 lwp instead of ptid_get_lwp.
7518
7974a605
YQ
75192017-04-28 Yao Qi <yao.qi@linaro.org>
7520
7521 * mips-linux-nat.c (mips_linux_new_thread): Get lwpid from
7522 lwp_info instead of getting from inferior_ptid.
7523
e15c3eb4
KS
75242017-04-27 Keith Seitz <keiths@redhat.com>
7525
7526 * gdbtypes.c (LVALUE_REFERENCE_TO_RVALUE_BINDING_BADNESS)
7527 DIFFERENT_REFERENCE_TYPE_BADNESS): Remove.
7528 (CV_CONVERSION_BADNESS): Define.
7529 (rank_one_type): Remove overly restrictive rvalue reference
7530 rank checks.
7531 Add cv-qualifier checks and subranks for type equality.
7532 * gdbtypes.h (REFERENCE_CONVERSION_RVALUE,
7533 REFERENCE_CONVERSION_CONST_LVALUE, CV_CONVERSION_BADNESS,
7534 CV_CONVERSION_CONST, CV_CONVERSION_VOLATILE): Declare.
7535
72bc1d24
SM
75362017-04-27 Simon Marchi <simon.marchi@ericsson.com>
7537
7538 * python/py-inferior.c (inferior_to_inferior_object): Increment reference
7539 count when creating the object.
7540
55bcecda
UW
75412017-04-27 Sangamesh Mallayya <sangamesh.swamy@in.ibm.com>
7542 Ulrich Weigand <uweigand@de.ibm.com>
7543
7544 * xcoffread.c (read_xcoff_symtab): Read correct function auxiliary
7545 entry if xlc -qfuncsect or gcc -ffunction-sections compiler option
7546 is used in AIX.
7547 (read_xcoff_symtab): Handle C_WEAKEXT storage class.
7548 (process_xcoff_symbol): Likewise.
7549 (scan_xcoff_symtab): Likewise.
7550
5c99fcf8
AH
75512017-04-26 Alan Hayward <alan.hayward@arm.com>
7552
7553 * ia64-tdep.c (examine_prologue): Use get_frame_register_unsigned.
7554 (ia64_sigtramp_frame_prev_register): Use read_memory_unsigned_integer.
7555 (ia64_access_reg): Use get_frame_register_unsigned.
7556 (ia64_access_rse_reg): Likewise.
7557 (ia64_libunwind_frame_prev_register): Likewise.
7558
b41c5a85
JW
75592017-04-26 Jiong Wang <jiong.wang@arm.com>
7560
7561 * gdbarch.sh: New gdbarch method execute_dwarf_cfa_vendor_op.
7562 * gdbarch.c: Regenerated.
7563 * gdbarch.h: Regenerated.
7564 * dwarf2-frame.c (dwarf2_frame_state_alloc_regs): Made the
7565 visibility external.
7566 (execute_cfa_program): Call execute_dwarf_cfa_vendor_op for CFI
7567 between DW_CFA_lo_user and DW_CFA_high_user inclusive.
7568 (enum cfa_how_kind): Move to ...
7569 (struct dwarf2_frame_state_reg_info): Likewise.
7570 (struct dwarf2_frame_state): Likewise.
7571 * dwarf2-frame.h: ... here.
7572 (dwarf2_frame_state_alloc_regs): New declaration.
7573 * sparc-tdep.c (sparc_execute_dwarf_cfa_vendor_op): New function.
7574 (sparc32_gdbarch_init): Register execute_dwarf_cfa_vendor_op hook.
7575
c185f580
AH
75762017-04-26 Alan Hayward <alan.hayward@arm.com>
7577
7578 * xtensa-tdep.c (xtensa_pseudo_register_read): Use
7579 regcache_raw_read_unsigned.
7580 (xtensa_pseudo_register_write): Likewise.
7581
19c45594
AH
75822017-04-26 Alan Hayward <alan.hayward@arm.com>
7583
7584 * nds32-tdep.c (nds32_pseudo_register_read): Abort on errors.
7585 (nds32_pseudo_register_write): Likewise.
7586
4658f12e
YQ
75872017-04-25 Yao Qi <yao.qi@linaro.org>
7588
7589 * regcache.c (struct regcache) <readonly_p>: Change its type
7590 to bool.
7591 (regcache_xmalloc_1): Update parameter type and callers update.
7592
d581dda8
YQ
75932017-04-25 Yao Qi <yao.qi@linaro.org>
7594
7595 * aarch64-tdep.c (aarch64_gdbarch_init): Don't call
7596 set_gdbarch_wchar_bit.
7597 * arm-tdep.c (arm_gdbarch_init): Likewise.
7598
debed3db
PA
75992017-04-25 Pedro Alves <palves@redhat.com>
7600
7601 * common/poison.h [!HAVE_IS_TRIVIALLY_COPYABLE] (IsRelocatable)
7602 (BothAreRelocatable, memcopy, memmove): Don't define.
7603 * common/traits.h (__has_feature, HAVE_IS_TRIVIALLY_COPYABLE): New
7604 macros.
7605
b0b92aeb
PA
76062017-04-25 Pedro Alves <palves@redhat.com>
7607
7608 * common/common-defs.h: Include "common/poison.h".
7609 * common/function-view.h: (Not, Or, Requires): Move to traits.h
7610 and adjust.
7611 * common/poison.h: New file.
7612 * common/traits.h: Include <type_traits>.
7613 (Not, Or, Requires): New, moved from common/function-view.h.
7614
16c4d54a
PA
76152017-04-25 Pedro Alves <palves@redhat.com>
7616
7617 * breakpoint.h (struct breakpoint): In-class initialize all
7618 fields. Make boolean fields "bool".
7619 * breakpoint.c (init_raw_breakpoint_without_location): Remove
7620 memset call and initializations no longer necessary.
7621
b5c36682
PA
76222017-04-25 Pedro Alves <palves@redhat.com>
7623
7624 * btrace.c (pt_btrace_insn_flags): Change parameter type to
7625 reference.
7626 (pt_btrace_insn): New function.
7627 (ftrace_add_pt): Remove memset call and use pt_btrace_insn.
7628
5625a286
PA
76292017-04-25 Pedro Alves <palves@redhat.com>
7630
7631 * ada-lang.c (ada_catchpoint_location): Now a "class". Remove
7632 "base" field and inherit from "bp_location" instead. Add
7633 non-default ctor.
7634 (allocate_location_exception): Use new non-default ctor.
7635 * breakpoint.c (get_first_locp_gte_addr): Remove memset call.
7636 (init_bp_location): Convert to ...
7637 (bp_location::bp_location): ... this new ctor, and remove memset
7638 call.
7639 (base_breakpoint_allocate_location): Use the new non-default ctor.
7640 * breakpoint.h (bp_location): Now a class. Declare default and
7641 non-default ctors. In-class initialize all members.
7642 (init_bp_location): Remove declaration.
7643
23bcc18f
PA
76442017-04-25 Pedro Alves <palves@redhat.com>
7645
7646 * common/enum-flags.h (enum_flags): Don't implement copy ctor and
7647 assignment operator.
7648
e1ba3053
YQ
76492017-04-24 Yao Qi <yao.qi@linaro.org>
7650
7651 * doublest.c (convert_doublest_to_floatformat): Call
7652 floatformat_totalsize_bytes.
7653
10f489e5
TT
76542017-04-22 Tom Tromey <tom@tromey.com>
7655
7656 * mi/mi-cmd-file.c (mi_cmd_file_list_shared_libraries): Use
7657 ui_out_emit_list.
7658 * stack.c (print_frame): Use ui_out_emit_list.
7659 * mi/mi-symbol-cmds.c (mi_cmd_symbol_list_lines): Use
7660 ui_out_emit_list.
7661 * mi/mi-main.c (print_one_inferior)
7662 (mi_cmd_data_list_register_names)
7663 (mi_cmd_data_list_register_values, mi_cmd_list_features)
7664 (mi_cmd_list_target_features, mi_cmd_trace_frame_collected): Use
7665 ui_out_emit_list.
7666 * mi/mi-interp.c (mi_on_normal_stop_1): Use ui_out_emit_list.
7667 (mi_output_solib_attribs): Use ui_out_emit_list,
7668 ui_out_emit_tuple.
7669 * mi/mi-cmd-var.c (varobj_update_one): Use ui_out_emit_list.
7670 * mi/mi-cmd-stack.c (mi_cmd_stack_list_frames)
7671 (mi_cmd_stack_list_args, list_args_or_locals): Use
7672 ui_out_emit_list.
7673 * disasm.c (do_assembly_only): Use ui_out_emit_list.
7674 * breakpoint.c (print_solib_event, output_thread_groups): Use
7675 ui_out_emit_list.
7676
0092b74d
TT
76772017-04-22 Tom Tromey <tom@tromey.com>
7678
7679 * mi/mi-main.c (print_variable_or_computed): Use ui_out_emit_tuple.
7680 * mi/mi-cmd-var.c (varobj_update_one): Use ui_out_emit_tuple.
7681 * mi/mi-cmd-stack.c (list_arg_or_local): Use ui_out_emit_tuple.
7682
a14a62dd
TT
76832017-04-22 Tom Tromey <tom@tromey.com>
7684
7685 * tracepoint.c (tvariables_info_1)
7686 (print_one_static_tracepoint_marker): Use ui_out_emit_tuple.
7687
46b9c129
TT
76882017-04-22 Tom Tromey <tom@tromey.com>
7689
7690 * stack.c (print_frame_arg): Use ui_out_emit_tuple,
7691 annotate_arg_emitter.
7692 * breakpoint.c (print_mention_watchpoint)
7693 (print_mention_masked_watchpoint): Use ui_out_emit_tuple.
7694 * annotate.h (struct annotate_arg_emitter): New.
7695
2e783024
TT
76962017-04-22 Tom Tromey <tom@tromey.com>
7697
7698 * record-btrace.c (record_btrace_insn_history)
7699 (record_btrace_insn_history_range, record_btrace_call_history)
7700 (record_btrace_call_history_range): Use ui_out_emit_tuple.
7701 * thread.c (do_captured_list_thread_ids, print_thread_info_1): Use
7702 ui_out_emit_tuple.
7703 * stack.c (print_frame_info): Use ui_out_emit_tuple.
7704 * solib.c (info_sharedlibrary_command): Use ui_out_emit_tuple.
7705 * skip.c (skip_info): Use ui_out_emit_tuple.
7706 * remote.c (show_remote_cmd): Use ui_out_emit_tuple.
7707 * progspace.c (print_program_space): Use ui_out_emit_tuple.
7708 * probe.c (info_probes_for_ops): Use ui_out_emit_tuple.
7709 * osdata.c (info_osdata): Use ui_out_emit_tuple.
7710 * mi/mi-symbol-cmds.c (mi_cmd_symbol_list_lines): Use
7711 ui_out_emit_tuple.
7712 * mi/mi-main.c (print_one_inferior, list_available_thread_groups)
7713 (output_register, mi_cmd_data_read_memory)
7714 (mi_cmd_data_read_memory_bytes, mi_load_progress)
7715 (mi_cmd_trace_frame_collected): Use ui_out_emit_tuple.
7716 * mi/mi-cmd-var.c (mi_cmd_var_list_children, varobj_update_one):
7717 Use ui_out_emit_tuple.
7718 * mi/mi-cmd-stack.c (mi_cmd_stack_list_args): Use
7719 ui_out_emit_tuple.
7720 * mi/mi-cmd-info.c (mi_cmd_info_ada_exceptions)
7721 (mi_cmd_info_gdb_mi_command): Use ui_out_emit_tuple.
7722 * linux-thread-db.c (info_auto_load_libthread_db): Use
7723 ui_out_emit_tuple.
7724 * inferior.c (print_inferior): Use ui_out_emit_tuple.
7725 * gdb_bfd.c (print_one_bfd): Use ui_out_emit_tuple.
7726 * disasm.c (do_mixed_source_and_assembly_deprecated)
7727 (do_mixed_source_and_assembly): Use ui_out_emit_tuple.
7728 * cp-abi.c (list_cp_abis): Use ui_out_emit_tuple.
7729 * cli/cli-setshow.c (cmd_show_list): Use ui_out_emit_tuple.
7730 * breakpoint.c (print_one_breakpoint_location)
7731 (print_one_breakpoint): Use ui_out_emit_tuple.
7732 * auto-load.c (print_script, info_auto_load_cmd): Use
7733 ui_out_emit_tuple.
7734 * ada-tasks.c (print_ada_task_info): Use ui_out_emit_tuple.
7735
9be21bb4
SM
77362017-04-21 Simon Marchi <simon.marchi@ericsson.com>
7737
7738 * thread.c (print_thread_info_1): Remove dead code.
7739
0d4c07af
JK
77402017-04-21 Jan Kratochvil <jan.kratochvil@redhat.com>
7741
7742 * aarch64-tdep.c (selftests::aarch64_process_record_test): Make it #if
7743 GDB_SELF_TEST.
7744 * arm-tdep.c (selftests::arm_record_test): Likewise.
7745
4daf993d
YQ
77462017-04-21 Yao Qi <yao.qi@linaro.org>
7747
7748 * regcache.c (regcache_restore): Remove argument 2. Replace
7749 argument 3 with regcache. Get register status from
7750 src->register_status and get register contents from
7751 register_buffer (src, regnum).
7752 (regcache_cpy): Update.
7753
a6c21d4a
PA
77542017-04-19 Pedro Alves <palves@redhat.com>
7755
7756 * gdbthread.h (thread): Add missing closing parenthesis in
7757 comment.
7758
3a3fd0fd
PA
77592017-04-19 Pedro Alves <palves@redhat.com>
7760
7761 * common/refcounted-object.h: New file.
7762 * gdbthread.h: Include "common/refcounted-object.h".
7763 (thread_info): Inherit from refcounted_object and add comments.
7764 (thread_info::incref, thread_info::decref)
7765 (thread_info::m_refcount): Delete.
7766 (thread_info::deletable): Use the refcounted_object::refcount()
7767 method.
7768 * inferior.c (current_inferior_): Add comment.
7769 (set_current_inferior): Increment/decrement refcounts.
7770 (prune_inferiors, remove_inferior_command): Skip inferiors marked
7771 not-deletable instead of comparing with the current inferior.
7772 (initialize_inferiors): Increment the initial inferior's refcount.
7773 * inferior.h (struct inferior): Forward declare.
7774 Include "common/refcounted-object.h".
7775 (current_inferior, set_current_inferior): Move declaration to
7776 before struct inferior's definition, and fix comment.
7777 (inferior): Inherit from refcounted_object. Add comments.
7778 * thread.c (switch_to_thread_no_regs): Reference the thread's
7779 inferior pointer directly instead of doing a ptid lookup.
7780 (switch_to_no_thread): New function.
7781 (switch_to_thread(thread_info *)): New function, factored out
7782 from ...
7783 (switch_to_thread(ptid_t)): ... this.
7784 (restore_current_thread): Delete.
7785 (current_thread_cleanup): Remove 'inf_id' and 'was_removable'
7786 fields, and add 'inf' field.
7787 (do_restore_current_thread_cleanup): Check whether old->inf is
7788 alive instead of looking up an inferior by ptid. Use
7789 switch_to_thread and switch_to_no_thread.
7790 (restore_current_thread_cleanup_dtor): Use old->inf directly
7791 instead of lookup up an inferior by id. Decref the inferior.
7792 Don't restore 'removable'.
7793 (make_cleanup_restore_current_thread): Same the inferior pointer
7794 in old, instead of the inferior number. Incref the inferior.
7795 Don't save/clear 'removable'.
7796
9bcb1f16
PA
77972017-04-19 Pedro Alves <palves@redhat.com>
7798
7799 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
7800 unittests/scoped_restore-selftests.c.
7801 (SUBDIR_UNITTESTS_OBS): Add scoped_restore-selftests.o.
7802 * common/scoped_restore.h (scoped_restore_base): Make "class".
7803 (scoped_restore_base::release): New public method.
7804 (scoped_restore_base::scoped_restore_base): New protected ctor.
7805 (scoped_restore_base::m_saved_var): New protected field.
7806 (scoped_restore_tmpl::scoped_restore_tmpl(T*)): Initialize the
7807 scoped_restore_base base class instead of m_saved_var directly.
7808 (scoped_restore_tmpl::scoped_restore_tmpl(T*, T2)): Likewise.
7809 (scoped_restore_tmpl::scoped_restore_tmpl(const
7810 scoped_restore_tmpl<T>&)): Likewise.
7811 (scoped_restore_tmpl::~scoped_restore_tmpl): Use the saved_var
7812 method.
7813 (scoped_restore_tmpl::saved_var): New method.
7814 (scoped_restore_tmpl::m_saved_var): Delete.
7815 * inferior.h (inferior::detaching): Now a bool.
7816 * infrun.c (prepare_for_detach): Use a scoped_restore instead of a
7817 cleanup.
7818 * unittests/scoped_restore-selftests.c: New file.
7819
26fcd539
PA
78202017-04-19 Pedro Alves <palves@redhat.com>
7821
7822 * Makefile.in (SUBDIR_UNITTESTS_SRCS, SUBDIR_UNITTESTS_OBS):
7823 Re-sort in alphabetic order.
7824
fdd243b0
PA
78252017-04-18 Pedro Alves <palves@redhat.com>
7826
7827 * xml-support.c (obstack_xml_printf): Delete.
7828 * xml-support.h (obstack_xml_printf): Delete.
7829
4895cde2
PA
78302017-04-18 Pedro Alves <palves@redhat.com>
7831
7832 * xml-support.c (gdb_xml_parser) <use_dtd, dtd_name, parse,
7833 vdebug, verror, body_text, start_element, end_element, name,
7834 user_data, set_is_xinclude, set_error, expat_parser>: New methods.
7835 <name, user_data, expat_parser, scopes, error, last_line, dtd_name,
7836 is_xinclude>: Make private and add m_ prefix.
7837 (gdb_xml_parser::body_text): New method, based on ...
7838 (gdb_xml_body_text): ... this. Adjust.
7839 (gdb_xml_parser::vdebug): New method, based on ...
7840 (gdb_xml_debug): ... this. Adjust.
7841 (gdb_xml_parser::verror): New method, based on ...
7842 (gdb_xml_error): ... this. Adjust.
7843 (gdb_xml_parser::start_element): New method, based on ...
7844 (gdb_xml_start_element): ... this. Adjust.
7845 (gdb_xml_start_element_wrapper): Defer to
7846 gdb_xml_parser::start_element and gdb_xml_parser::set_error.
7847 (gdb_xml_parser::end_element): New method, based on ...
7848 (gdb_xml_end_element_wrapper): ... this. Adjust.
7849 (gdb_xml_parser::~gdb_xml_parser): Adjust.
7850 (gdb_xml_parser::gdb_xml_parser): Adjust to field renames.
7851 (gdb_xml_parser::use_dtd): New method, based on ...
7852 (gdb_xml_use_dtd): ... this. Adjust.
7853 (gdb_xml_parser::parse): New method, based on ...
7854 (gdb_xml_parse): ... this. Adjust.
7855 (gdb_xml_parse_quick): Adjust to call the parser's parse method.
7856 (xinclude_start_include): Adjust to call the parser's name method.
7857 (xml_xinclude_default, xml_xinclude_start_doctype)
7858 (xml_xinclude_end_doctype): Adjust to call the parser's user_data
7859 method.
7860 (xml_process_xincludes): Adjust to call parser methods.
7861 * xml-support.h (gdb_xml_use_dtd, gdb_xml_parse): Delete
7862 declarations.
7863
bd8a901f
PA
78642017-04-18 Pedro Alves <palves@redhat.com>
7865
7866 * tracefile-tfile.c (tfile_write_tdesc): Adjust to use
7867 gdb::optional<std::string>.
7868 * xml-support.c: Include <string>.
7869 (scope_level::scope_level(scope_level &&))
7870 (scope_level::~scope_level): Delete.
7871 (scope_level::body): Now a std::string.
7872 (gdb_xml_body_text, gdb_xml_end_element): Adjust.
7873 (xinclude_parsing_data::xinclude_parsing_data): Add 'output'
7874 parameter.
7875 (xinclude_parsing_data::~xinclude_parsing_data): Delete.
7876 (xinclude_parsing_data::output): Now a std::string reference.
7877 (xinclude_start_include): Adjust.
7878 (xml_xinclude_default): Adjust.
7879 (xml_process_xincludes): Add 'output' parameter, and return bool.
7880 * xml-support.h (xml_process_xincludes): Add 'output' parameter,
7881 and return bool.
7882 * xml-tdesc.c: Include <unordered_map> and <string>.
7883 (tdesc_xml_cache): Delete.
7884 (tdesc_xml_cache_s): Delete.
7885 (xml_cache): Now an std::unordered_map.
7886 (tdesc_parse_xml): Adjust to use std::string and unordered_map.
7887 (target_fetch_description_xml): Change return type to
7888 gdb::optional<std::string>, and adjust.
7889 * xml-tdesc.h: Include "common/gdb_optional.h" and <string>.
7890 (target_fetch_description_xml): Change return type to
7891 gdb::optional<std::string>.
7892
d35d1958
PA
78932017-04-18 Pedro Alves <palves@redhat.com>
7894
7895 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
7896 unittests/optional-selftests.c.
7897 (SUBDIR_UNITTESTS_OBS): Add optional-selftests.o.
7898 * unittests/optional-selftests.c: New file.
7899 * unittests/optional/assignment/1.cc: New file.
7900 * unittests/optional/assignment/2.cc: New file.
7901 * unittests/optional/assignment/3.cc: New file.
7902 * unittests/optional/assignment/4.cc: New file.
7903 * unittests/optional/assignment/5.cc: New file.
7904 * unittests/optional/assignment/6.cc: New file.
7905 * unittests/optional/assignment/7.cc: New file.
7906 * unittests/optional/cons/copy.cc: New file.
7907 * unittests/optional/cons/default.cc: New file.
7908 * unittests/optional/cons/move.cc: New file.
7909 * unittests/optional/cons/value.cc: New file.
7910 * unittests/optional/in_place.cc: New file.
7911 * unittests/optional/observers/1.cc: New file.
7912 * unittests/optional/observers/2.cc: New file.
7913
22796e97
PA
79142017-04-18 Pedro Alves <palves@redhat.com>
7915
7916 * common/gdb_optional.h: Include common/traits.h.
7917 (in_place_t): New type.
7918 (in_place): New constexpr variable.
7919 (optional::optional): Remove member initialization of
7920 m_instantiated.
7921 (optional::optional(in_place_t...)): New constructor.
7922 (optional::~optional): Use reset.
7923 (optional::optional(const optional&)): New.
7924 (optional::optional(const optional&&)): New.
7925 (optional::optional(T &)): New.
7926 (optional::optional(T &&)): New.
7927 (operator::operator=(const optional &)): New.
7928 (operator::operator=(optional &&)): New.
7929 (operator::operator= (const T &))
7930 (operator::operator= (T &&))
7931 (operator::emplace (Args &&... args)): Return a T&. Use reset.
7932 (operator::reset): New.
7933 (operator::m_instantiated):: Add in-class initializer.
7934 * common/traits.h: Include <type_traits>.
7935 (struct And): New types.
7936
a7fc9b61
PA
79372017-04-18 Pedro Alves <palves@redhat.com>
7938
7939 * xml-support.c: Include <vector>.
7940 (scope_level::scope_level(const gdb_xml_element *))
7941 (scope_level::scope_level(scope_level&&)): New.
7942 (scope_level::~scope_level): New.
7943 (scope_level_s): Delete.
7944 (gdb_xml_parser::scopes): Now a std::vector.
7945 (gdb_xml_body_text, gdb_xml_start_element, gdb_xml_end_element):
7946 Use std::vector.
7947 (gdb_xml_parser::~gdb_xml_parser): Remove now unnecessary
7948 scope cleanup code.
7949 (gdb_xml_parser::gdb_xml_parser): Remove explicit initialization
7950 of the scopes member. Use std::vector::emplace_back.
7951
010151c9
PA
79522017-04-18 Pedro Alves <palves@redhat.com>
7953
7954 * xml-support.c (gdb_xml_parser): Add ctor/dtor. Make is_xinclude
7955 a bool.
7956 (gdb_xml_end_element): Change type of first parameter.
7957 (gdb_xml_cleanup): Rename to ...
7958 (gdb_xml_parser::~gdb_xml_parser): ... this.
7959 (gdb_xml_create_parser_and_cleanup): Delete with ...
7960 (gdb_xml_parser::gdb_xml_parser): ... creation parts factored out
7961 to this new ctor.
7962 (gdb_xml_parse_quick): Create a local gdb_xml_parser instead of
7963 using gdb_xml_create_parser_and_cleanup.
7964 (xinclude_parsing_data): Add ctor/dtor.
7965 (xml_xinclude_cleanup): Delete.
7966 (xml_process_xincludes): Create a local xinclude_parsing_data
7967 instead of heap-allocating one. Create a local gdb_xml_parser
7968 instead of heap-allocating one with
7969 gdb_xml_create_parser_and_cleanup.
7970
d56060f0
JB
79712017-04-18 John Baldwin <jhb@FreeBSD.org>
7972
7973 PR threads/20743
7974 * fbsd-nat.c (resume_one_thread_cb): Remove.
7975 (resume_all_threads_cb): Remove.
7976 (fbsd_resume): Use ALL_NON_EXITED_THREADS instead of
7977 iterate_over_threads.
7978
305d16a9
JB
79792017-04-17 Joel Brobecker <brobecker@adacore.com>
7980
7981 * NEWS: Create a new section for the next release branch.
7982 Rename the section of the current branch, now that it has
7983 been cut.
7984
8bb57231
JB
79852017-04-17 Joel Brobecker <brobecker@adacore.com>
7986
7987 GDB 8.0 branch created (725bf5cf125783c2a7ca4ab63d3768e220bab2db):
7988 * version.in: Bump version to 8.0.50.DATE-git.
7989
096c92dd
SDJ
79902017-04-13 Sergio Durigan Junior <sergiodj@redhat.com>
7991
7992 PR gdb/21385
7993 * windows-nat.c (windows_create_inferior): Declare 'allargs'
7994 independently of the host, and fix build breakage on Cygwin.
7995
0550c955
PA
79962017-04-13 Pedro Alves <palves@redhat.com>
7997
7998 * inferior.c (free_inferior): Convert to ...
7999 (inferior::~inferior): ... this dtor.
8000 (inferior::inferior): New ctor, factored out from ...
8001 (add_inferior_silent): ... here. Allocate the inferior with a new
8002 expression.
8003 (delete_inferior): Call delete instead of free_inferior.
8004 * inferior.h (gdb_environ, continuation): Forward declare.
8005 (inferior): Now a class. Add in-class initialization to all
8006 members. Make boolean fields bool, except 'detaching'.
8007 (inferior::inferior): New explicit ctor.
8008 (inferior::~inferior): New.
8009
e3d60dfc
PA
80102017-04-13 Pedro Alves <palves@redhat.com>
8011
8012 * inferior.c (init_inferior_list): Delete.
8013 * inferior.h (init_inferior_list): Delete.
8014
5fd69d0a
PA
80152017-04-13 Pedro Alves <palves@redhat.com>
8016
8017 PR threads/13217
8018 * gdb.threads/threadapply.exp (thr_apply_detach): New procedure.
8019 (top level): Call it twice, with different thread sets.
8020
c6609450
PA
80212017-04-13 Pedro Alves <palves@redhat.com>
8022
8023 * thread.c: Include <algorithm>.
8024 (thread_array_cleanup): Delete.
8025 (scoped_inc_dec_ref): New class.
8026 (live_threads_count): New function.
8027 (set_thread_refcount): Delete.
8028 (tp_array_compar_ascending): Now a bool.
8029 (tp_array_compar): Convert to a std::sort comparison function.
8030 (thread_apply_all_command): Use std::vector and scoped_inc_dec_ref
8031 and live_threads_count.
8032
2a00d7ce
PA
80332017-04-13 Pedro Alves <palves@redhat.com>
8034
8035 * infrun.c (follow_fork_inferior): Also switch the current
8036 inferior.
8037
441d7c93
PA
80382017-04-13 Pedro Alves <palves@redhat.com>
8039
8040 * breakpoint.c (watch_command_1): Save watchpoint-frame info
8041 before calling create_internal_breakpoint.
8042
808480f6
PA
80432017-04-13 Pedro Alves <palves@redhat.com>
8044
8045 * fork-child.c (execv_argv): New class.
8046 (breakup_args): Refactored as ...
8047 (execv_argv::init_for_no_shell): .. this method of execv_argv.
8048 Copy arguments to storage and replace separators with NULL
8049 terminators in place.
8050 (escape_bang_in_quoted_argument): Adjust to return bool.
8051 (execv_argv::execv_argv): New ctor.
8052 (execv_argv::init_for_shell): New method, factored out from
8053 fork_inferior. Don't strdup strings into the vector.
8054 (fork_inferior): Eliminate "shell" local and use execv_argv. Use
8055 Remove free_vector_argv call.
8056
ad3d022a
YQ
80572017-04-13 Yao Qi <yao.qi@linaro.org>
8058
8059 * rx-tdep.c (rx_fpsw_type): Check tdep->rx_fpsw_type instead of
8060 tdep->rx_psw_type.
8061
e6ddc3bf
YQ
80622017-04-13 Yao Qi <yao.qi@linaro.org>
8063
8064 * rl78-tdep.c (rl78_gdbarch_init): Use XCNEW instead of XNEW.
8065 * rx-tdep.c (rx_gdbarch_init): Likewise.
8066
bfb8cf90
PA
80672017-04-13 Pedro Alves <palves@redhat.com>
8068
8069 * breakpoint.h (struct breakpoint): Reindent.
8070
f5336ca5
PA
80712017-04-13 Pedro Alves <palves@redhat.com>
8072
8073 * breakpoint.c (bp_location): Rename to ...
8074 (bp_locations): ... this. All references updated.
8075 (bp_location_count): Rename to ...
8076 (bp_locations_count): ... this. All references updated.
8077 (bp_location_placed_address_before_address_max): Rename to ...
8078 (bp_locations_placed_address_before_address_max): ... this. All
8079 references updated.
8080 (bp_location_shadow_len_after_address_max): Rename to ...
8081 (bp_locations_shadow_len_after_address_max): ... this. All
8082 references updated.
8083 (bp_location_compare_addrs): Rename to ...
8084 (bp_locations_compare_addrs): ... this. All references updated.
8085 (bp_location_compare):Rename to ...
8086 (bp_locations_compare): ... this. All references updated.
8087 (bp_location_target_extensions_update): Rename to ...
8088 (bp_locations_target_extensions_update): ... this. All references
8089 updated.
8090
be628ab8
SDJ
80912017-04-12 Sergio Durigan Junior <sergiodj@redhat.com>
8092
8093 * Makefile.in (HFILES_NO_SRCDIR): Add "common/gdb_termios.h".
8094 * common/common.m4: Check headers 'termios.h', 'termio.h' and
8095 'sgtty.h'.
8096 * common/gdb_termios.h: New file, with parts of "terminal.h".
8097 * inflow.c: Include "gdb_termios.h".
8098 * ser-unix.c: Include "gdb_termios.h".
8099 * terminal.h: Move terminal-related defines to
8100 "common/gdb_termios.h".
8101
8e9e35b1
TT
81022017-04-12 Tom Tromey <tom@tromey.com>
8103
8104 * probe.c (parse_probes): Update.
8105 * location.h (delete_event_location): Don't declare.
8106 (event_location_deleter::operator()): Update.
8107 * location.c (event_location_deleter::operator()): Rename from
8108 delete_event_location.
8109 * linespec.h (linespec_result) <location>: Change type to
8110 event_location_up.
8111 * linespec.c (canonicalize_linespec, event_location_to_sals)
8112 (decode_objc): Update.
8113 (linespec_result): Don't call delete_event_location.
8114 * breakpoint.c (create_breakpoints_sal)
8115 (bkpt_probe_create_sals_from_location)
8116 (strace_marker_create_sals_from_location): Update.
8117
16e802b9
TT
81182017-04-12 Tom Tromey <tom@tromey.com>
8119
8120 * linespec.h (struct linespec_result): Add constructor and
8121 destructor.
8122 (init_linespec_result, destroy_linespec_result)
8123 (make_cleanup_destroy_linespec_result): Don't declare.
8124 * linespec.c (init_linespec_result): Remove.
8125 (linespec_result::~linespec_result): Rename from
8126 destroy_linespec_result. Update.
8127 (cleanup_linespec_result, make_cleanup_destroy_linespec_result):
8128 Remove.
8129 * breakpoint.c (create_breakpoint, break_range_command)
8130 (decode_location_default): Update.
8131 * ax-gdb.c (agent_command_1): Update.
8132
d28cd78a
TT
81332017-04-12 Tom Tromey <tom@tromey.com>
8134
8135 * remote.c (remote_download_tracepoint): Update.
8136 * python/py-breakpoint.c (bppy_get_location): Update.
8137 * guile/scm-breakpoint.c (bpscm_print_breakpoint_smob)
8138 (gdbscm_breakpoint_location): Update.
8139 * elfread.c (elf_gnu_ifunc_resolver_return_stop): Update.
8140 * breakpoint.h (struct breakpoint) <location, location_range_end>:
8141 Change type to event_location_up.
8142 * breakpoint.c (create_overlay_event_breakpoint)
8143 (create_longjmp_master_breakpoint)
8144 (create_std_terminate_master_breakpoint)
8145 (create_exception_master_breakpoint)
8146 (breakpoint_event_location_empty_p, print_breakpoint_location)
8147 (print_one_breakpoint_location, create_thread_event_breakpoint)
8148 (init_breakpoint_sal, create_breakpoint)
8149 (print_recreate_ranged_breakpoint, break_range_command)
8150 (init_ada_exception_breakpoint, say_where): Update.
8151 (base_breakpoint_dtor): Don't call delete_event_location.
8152 (bkpt_print_recreate, tracepoint_print_recreate)
8153 (dprintf_print_recreate, update_static_tracepoint)
8154 (breakpoint_re_set_default): Update.
8155
711799d5
TT
81562017-04-12 Tom Tromey <tom@tromey.com>
8157
8158 * compile/compile-loc2c.c (compute_stack_depth_worker): Change
8159 type of "to_do". Update.
8160 (compute_stack_depth): Use std::vector.
8161
52d214d3
TT
81622017-04-12 Tom Tromey <tom@tromey.com>
8163
8164 * printcmd.c (find_instruction_backward): Use std::vector.
8165
4c404b8b
TT
81662017-04-12 Tom Tromey <tom@tromey.com>
8167
8168 * symfile.c (objfilep): Remove typedef.
8169 (reread_symbols): Use a std::vector.
8170
156d9eab
TT
81712017-04-12 Tom Tromey <tom@tromey.com>
8172
8173 * mi/mi-main.c (exec_direction_forward): Remove.
8174 (exec_reverse_continue, mi_execute_command): Use scoped_restore.
8175 * guile/scm-ports.c (ioscm_with_output_to_port_worker): Use
8176 scoped_restore.
8177 * guile/guile.c (guile_repl_command, guile_command)
8178 (gdbscm_execute_gdb_command): Use scoped_restore.
8179 * go-exp.y (go_parse): Use scoped_restore.
8180 * d-exp.y (d_parse): Use scoped_restore.
8181 * cli/cli-decode.c (cmd_func): Use scoped_restore.
8182 * c-exp.y (c_parse): Use scoped_restore.
8183
4d89769a
TT
81842017-04-12 Tom Tromey <tom@tromey.com>
8185
8186 * mi/mi-parse.h (struct mi_parse): Add constructor, destructor.
8187 (mi_parse): Update return type.
8188 (mi_parse_free): Remove.
8189 * mi/mi-parse.c (mi_parse::mi_parse): New constructor.
8190 (mi_parse::~mi_parse): Rename from mi_parse_free.
8191 (mi_parse_cleanup): Remove.
8192 (mi_parse): Return a unique_ptr. Use new.
8193 * mi/mi-main.c (mi_execute_command): Update.
8194
4b217cc7
TT
81952017-04-12 Tom Tromey <tom@tromey.com>
8196
8197 * location.c (explicit_location_lex_one): Return a
8198 unique_xmalloc_ptr.
8199 (string_to_explicit_location): Update. Remove cleanups.
8200
59d3651b
TT
82012017-04-12 Tom Tromey <tom@tromey.com>
8202
8203 * gnu-v3-abi.c (value_and_voffset_p): Remove typedef.
8204 (compare_value_and_voffset): Change type. Update.
8205 (compute_vtable_size): Change type of "offset_vec".
8206 (gnuv3_print_vtable): Use std::vector. Remove cleanups.
8207 (gnuv3_get_typeid): Remove extraneous declaration.
8208
b24b0d6c
TT
82092017-04-12 Tom Tromey <tom@tromey.com>
8210
8211 * charset.h (wchar_iterator): Fix comment.
8212
80a3b8c5
TT
82132017-04-12 Tom Tromey <tom@tromey.com>
8214
8215 * charset.c (iconv_wrapper): New class.
8216 (cleanup_iconv): Remove.
8217 (convert_between_encodings): Use it.
8218
c83dd867
TT
82192017-04-12 Tom Tromey <tom@tromey.com>
8220
8221 * symfile.h (increment_reading_symtab): Update type.
8222 * symfile.c (decrement_reading_symtab): Remove.
8223 (increment_reading_symtab): Return a scoped_restore_tmpl<int>.
8224 * psymtab.c (psymtab_to_symtab): Update.
8225 * dwarf2read.c (dw2_instantiate_symtab): Update.
8226
0e8621a0
TT
82272017-04-12 Tom Tromey <tom@tromey.com>
8228
8229 * jit.c (struct jit_reader): Declare separately. Add constructor
8230 and destructor. Change type of "handle".
8231 (loaded_jit_reader): Define separately.
8232 (jit_reader_load): Update. New "new".
8233 (jit_reader_unload_command): Use "delete".
8234 * gdb-dlfcn.h (struct dlclose_deleter): New.
8235 (gdb_dlhandle_up): New typedef.
8236 (gdb_dlopen, gdb_dlsym): Update types.
8237 (gdb_dlclose): Remove.
8238 * gdb-dlfcn.c (gdb_dlopen): Return a gdb_dlhandle_up.
8239 (gdb_dlsym): Change type of "handle".
8240 (make_cleanup_dlclose): Remove.
8241 (dlclose_deleter::operator()): Rename from gdb_dlclose.
8242 * compile/compile-c-support.c (load_libcc): Update.
8243
67d89901
TT
82442017-04-12 Tom Tromey <tom@tromey.com>
8245
8246 * symtab.h (find_pcs_for_symtab_line): Change return type.
8247 * symtab.c (find_pcs_for_symtab_line): Change return type.
8248 * python/py-linetable.c (build_line_table_tuple_from_pcs): Change
8249 type of "vec". Update.
8250 (ltpy_get_pcs_for_line): Update.
8251 * linespec.c (decode_digits_ordinary): Update.
8252
93921405
TT
82532017-04-12 Tom Tromey <tom@tromey.com>
8254
8255 * tracepoint.c (actions_command): Update.
8256 * python/python.c (python_command, python_interactive_command):
8257 Update.
8258 * mi/mi-cmd-break.c (mi_cmd_break_commands): Update.
8259 * guile/guile.c (guile_command): Update.
8260 * defs.h (read_command_lines, read_command_lines_1): Return
8261 command_line_up.
8262 (command_lines_deleter): New struct.
8263 (command_line_up): New typedef.
8264 * compile/compile.c (compile_code_command)
8265 (compile_print_command): Update.
8266 * cli/cli-script.h (get_command_line, copy_command_lines): Return
8267 command_line_up.
8268 (make_cleanup_free_command_lines): Remove.
8269 * cli/cli-script.c (get_command_line, read_command_lines_1)
8270 (copy_command_lines): Return command_line_up.
8271 (while_command, if_command, read_command_lines, define_command)
8272 (document_command): Update.
8273 (do_free_command_lines_cleanup, make_cleanup_free_command_lines):
8274 Remove.
8275 * breakpoint.h (breakpoint_set_commands): Change type of
8276 "commands".
8277 * breakpoint.c (breakpoint_set_commands): Change type of
8278 "commands". Update.
8279 (do_map_commands_command, update_dprintf_command_list)
8280 (create_tracepoint_from_upload): Update.
8281
ffc2605c
TT
82822017-04-12 Tom Tromey <tom@tromey.com>
8283
8284 * tracepoint.c (scope_info): Update.
8285 * spu-tdep.c (spu_catch_start): Update.
8286 * python/python.c (gdbpy_decode_line): Update.
8287 * python/py-finishbreakpoint.c (bpfinishpy_init): Update.
8288 * python/py-breakpoint.c (bppy_init): Update.
8289 * probe.c (parse_probes): Update.
8290 * mi/mi-cmd-break.c (mi_cmd_break_insert_1): Update.
8291 * location.h (event_location_deleter): New struct.
8292 (event_location_up): New typedef.
8293 (new_linespec_location, new_address_location, new_probe_location)
8294 (new_explicit_location, copy_event_location)
8295 (string_to_event_location, string_to_event_location_basic)
8296 (string_to_explicit_location): Update return type.
8297 (make_cleanup_delete_event_location): Remove.
8298 * location.c (new_linespec_location, new_address_location)
8299 (new_probe_location, new_explicit_location, copy_event_location):
8300 Return event_location_up.
8301 (delete_event_location_cleanup)
8302 (make_cleanup_delete_event_location): Remove.
8303 (string_to_explicit_location, string_to_event_location_basic)
8304 (string_to_event_location): Return event_location_up.
8305 * linespec.c (canonicalize_linespec, event_location_to_sals)
8306 (decode_line_with_current_source)
8307 (decode_line_with_last_displayed, decode_objc): Update.
8308 * guile/scm-breakpoint.c (gdbscm_register_breakpoint_x): Update.
8309 * completer.c (location_completer): Update.
8310 * cli/cli-cmds.c (edit_command, list_command): Update.
8311 * breakpoint.c (create_overlay_event_breakpoint)
8312 (create_longjmp_master_breakpoint)
8313 (create_std_terminate_master_breakpoint)
8314 (create_exception_master_breakpoint)
8315 (create_thread_event_breakpoint): Update.
8316 (init_breakpoint_sal): Update. Remove some dead code.
8317 (create_breakpoint_sal): Change type of "location". Update.
8318 (create_breakpoints_sal, create_breakpoint, break_command_1)
8319 (dprintf_command, break_range_command, until_break_command)
8320 (init_ada_exception_breakpoint)
8321 (strace_marker_create_sals_from_location)
8322 (update_static_tracepoint, trace_command, ftrace_command)
8323 (strace_command, create_tracepoint_from_upload): Update.
8324 * break-catch-throw.c (re_set_exception_catchpoint): Update.
8325 * ax-gdb.c (agent_command_1): Update.
8326
8f10c932
PA
83272017-04-12 Pedro Alves <palves@redhat.com>
8328
8329 * Makefile.in (ALL_TARGET_OBS): Add i386-go32-tdep.o.
8330 * configure.tgt: Handle i[34567]86-*-go32* and
8331 i[34567]86-*-msdosdjgpp*.
8332 * i386-tdep.c (i386_svr4_reg_to_regnum):
8333 Make extern.
8334 (i386_go32_init_abi, i386_coff_osabi_sniffer): Moved to
8335 i386-go32-tdep.c.
8336 (_initialize_i386_tdep): DJGPP bits moved to i386-go32-tdep.c.
8337 * i386-go32-tdep.c: New file.
8338 * i386-tdep.h (tdesc_i386_mmx, i386_svr4_reg_to_regnum): New
8339 declarations.
8340
0a31ccfb
SM
83412017-04-12 Simon Marchi <simon.marchi@ericsson.com>
8342
8343 * aix-thread.c (pd_status2str): Change return type to const char *.
8344
e9bb3fbb
PA
83452017-04-12 Pedro Alves <palves@redhat.com>
8346
8347 * i386-tdep.c (i386_elf_init_abi, i386_go32_init_abi): Remove
8348 calls to set_gdbarch_gnu_triplet_regexp.
8349
53375380
PA
83502017-04-12 Pedro Alves <palves@redhat.com>
8351
8352 PR gdb/21323
8353 * c-lang.c (cplus_primitive_types) <cplus_primitive_type_wchar_t>:
8354 New enum value.
8355 (cplus_language_arch_info): Register cplus_primitive_type_wchar_t.
8356 * gdbtypes.h (struct builtin_type) <builtin_wchar>: New field.
8357 * gdbtypes.c (gdbtypes_post_init): Create the "wchar_t" type.
8358 * gdbarch.sh (wchar_bit, wchar_signed): New per-arch values.
8359 * gdbarch.h, gdbarch.c: Regenerate.
8360 * aarch64-tdep.c (aarch64_gdbarch_init): Override
8361 gdbarch_wchar_bit and gdbarch_wchar_signed.
8362 * alpha-tdep.c (alpha_gdbarch_init): Likewise.
8363 * arm-tdep.c (arm_gdbarch_init): Likewise.
8364 * avr-tdep.c (avr_gdbarch_init): Likewise.
8365 * h8300-tdep.c (h8300_gdbarch_init): Likewise.
8366 * i386-nto-tdep.c (i386nto_init_abi): Likewise.
8367 * i386-tdep.c (i386_go32_init_abi): Likewise.
8368 * m32r-tdep.c (m32r_gdbarch_init): Likewise.
8369 * moxie-tdep.c (moxie_gdbarch_init): Likewise.
8370 * nds32-tdep.c (nds32_gdbarch_init): Likewise.
8371 * rs6000-aix-tdep.c (rs6000_aix_init_osabi): Likewise.
8372 * sh-tdep.c (sh_gdbarch_init): Likewise.
8373 * sparc-tdep.c (sparc32_gdbarch_init): Likewise.
8374 * sparc64-tdep.c (sparc64_init_abi): Likewise.
8375 * windows-tdep.c (windows_init_abi): Likewise.
8376 * xstormy16-tdep.c (xstormy16_gdbarch_init): Likewise.
8377
53e710ac
PA
83782017-04-12 Pedro Alves <palves@redhat.com>
8379
8380 PR c++/21323
8381 * c-lang.c (cplus_primitive_types) <cplus_primitive_type_char16_t,
8382 cplus_primitive_type_char32_t>: New enum values.
8383 (cplus_language_arch_info): Register cplus_primitive_type_char16_t
8384 and cplus_primitive_type_char32_t.
8385 * dwarf2read.c (read_base_type) <DW_ATE_UTF>: If bit size is 16 or
8386 32, use the archtecture's built-in type for char16_t and char32_t,
8387 respectively. Otherwise, fallback to init_integer_type as before,
8388 but make the type unsigned, and issue a complaint.
8389 * gdbtypes.c (gdbtypes_post_init): Make char16_t and char32_t unsigned.
8390
ab0538b8
AH
83912017-04-12 Alan Hayward <alan.hayward@arm.com>
8392
5e0e0422 8393 * m32r-tdep.c (M32R_ARG_REGISTER_SIZE): Added.
ab0538b8
AH
8394 (m32r_push_dummy_call): Use M32R_ARG_REGISTER_SIZE.
8395
5430098f
SDJ
83962017-04-12 Sergio Durigan Junior <sergiodj@redhat.com>
8397
8398 * windows-nat.c (windows_create_inferior): Declare 'toexec' as
8399 'const char *'.
8400
7c5ded6a
SDJ
84012017-04-12 Sergio Durigan Junior <sergiodj@redhat.com>
8402
8403 * common/common-utils.c (free_vector_argv): New function.
8404 * common/common-utils.h: Include <vector>.
8405 (free_vector_argv): New prototype.
8406 * darwin-nat.c (darwin_create_inferior): Rewrite function
8407 prototype in order to constify "exec_file" and accept a
8408 "std::string" for "allargs".
8409 * fork-child.c: Include <vector>.
8410 (breakup_args): Rewrite function, using C++.
8411 (fork_inferior): Rewrite function header, constify "exec_file_arg"
8412 and accept "std::string" for "allargs". Update the code to
8413 calculate "argv" based on "allargs". Update calls to "exec_fun"
8414 and "execvp".
8415 * gnu-nat.c (gnu_create_inferior): Rewrite function prototype in
8416 order to constify "exec_file" and accept a "std::string" for
8417 "allargs".
8418 * go32-nat.c (go32_create_inferior): Likewise.
8419 * inf-ptrace.c (inf_ptrace_create_inferior): Likewise.
8420 * infcmd.c (run_command_1): Constify "exec_file". Use
8421 "std::string" for inferior arguments.
8422 * inferior.h (fork_inferior): Update prototype.
8423 * linux-nat.c (linux_nat_create_inferior): Rewrite function
8424 prototype in order to constify "exec_file" and accept a
8425 "std::string" for "allargs".
8426 * nto-procfs.c (procfs_create_inferior): Likewise.
8427 * procfs.c (procfs_create_inferior): Likewise.
8428 * remote-sim.c (gdbsim_create_inferior): Likewise.
8429 * remote.c (extended_remote_run): Update code to accept
8430 "std::string" as argument.
8431 (extended_remote_create_inferior): Rewrite function prototype in
8432 order to constify "exec_file" and accept a "std::string" for
8433 "allargs".
8434 * rs6000-nat.c (super_create_inferior): Likewise.
8435 (rs6000_create_inferior): Likewise.
8436 * target.h (struct target_ops) <to_create_inferior>: Likewise.
8437 * windows-nat.c (windows_create_inferior): Likewise.
8438
ae0eee42
PA
84392017-04-11 Pedro Alves <palves@redhat.com>
8440
8441 * thread.c: Fix whitespace throughout.
8442
a6acac06
PR
84432017-04-11 Philipp Rudo <prudo@linux.vnet.ibm.com>
8444
8445 * linux-nat.c (linux_nat_detach): Remove delete_lwp call.
8446
64403bd1
AH
84472017-04-11 Alan Hayward <alan.hayward@arm.com>
8448
8449 * arm-tdep.c (arm_store_return_value): Use FP_REGISTER_SIZE
8450
a5bef50f
SDJ
84512017-04-10 Sergio Durigan Junior <sergiodj@redhat.com>
8452
8453 PR gdb/21364
8454 * osdata.c (info_osdata): Check if 'type' is an empty string
8455 instead of NULL.
8456
9295a5a9
PA
84572017-04-10 Pedro Alves <palves@redhat.com>
8458
8459 * thread.c (add_thread_silent, delete_thread_1, find_thread_ptid)
8460 (ptid_to_global_thread_id, in_thread_list)
8461 (do_captured_list_thread_ids, set_resumed, set_running)
8462 (set_executing, set_stop_requested, finish_thread_state)
8463 (validate_registers_access, can_access_registers_ptid)
8464 (print_thread_info_1, switch_to_thread)
8465 (do_restore_current_thread_cleanup)
8466 (make_cleanup_restore_current_thread, thread_command)
8467 (thread_name_command): Use operator== instead of ptid_equal.
8468
996812e3
PA
84692017-04-10 Pedro Alves <palves@redhat.com>
8470
8471 * thread.c (struct current_thread_cleanup) <next>: Delete field.
8472 (current_thread_cleanup_chain): Delete.
8473 (restore_current_thread_cleanup_dtor)
8474 (make_cleanup_restore_current_thread): Remove references to
8475 current_thread_cleanup_chain.
8476
845b344f
AH
84772017-04-10 Alan Hayward <alan.hayward@arm.com>
8478
8479 * msp430-tdep.c (msp430_pseudo_register_read): Never return
8480 REG_UNKNOWN.
8481
803bdfe4
YQ
84822017-04-10 Yao Qi <yao.qi@linaro.org>
8483
8484 PR gdb/19942
8485 * gdbthread.h (thread_info::deletable): New method.
8486 (thread_info::incref): New method.
8487 (thread_info::decref): New method.
8488 (thread_info::refcount): Move it to private.
8489 * infrun.c (save_stop_context): Call inc_refcount.
8490 (release_stop_context_cleanup): Likewise.
8491 * thread.c (set_thread_exited): New function.
8492 (init_thread_list): Delete "tp" only it is deletable, otherwise
8493 call set_thread_exited.
8494 (delete_thread_1): Call set_thread_exited.
8495 (current_thread_cleanup) <inferior_pid>: Remove.
8496 <thread>: New field.
8497 (restore_current_thread_ptid_changed): Removed.
8498 (do_restore_current_thread_cleanup): Adjust.
8499 (restore_current_thread_cleanup_dtor): Don't call
8500 find_thread_ptid.
8501 (set_thread_refcount): Use dec_refcount.
8502 (make_cleanup_restore_current_thread): Adjust.
8503 (thread_apply_all_command): Call inc_refcount.
8504 (_initialize_thread): Don't call
8505 observer_attach_thread_ptid_changed.
8506
8c25b497
YQ
85072017-04-10 Yao Qi <yao.qi@linaro.org>
8508
8509 * thread.c (delete_thread_1): Hoist code on marking thread as
8510 exited.
8511
8473b447
SM
85122017-04-09 Simon Marchi <simon.marchi@polymtl.ca>
8513
8514 * windows-nat.c (windows_detach): Initialize ptid with
8515 minus_one_ptid.
8516
6670ec13
SM
85172017-04-07 Simon Marchi <simon.marchi@ericsson.com>
8518
8519 * unittests/ptid-selftests.c: Fix erroneous assert messages.
8520
ba2f91bb
AH
85212017-04-07 Alan Hayward <alan.hayward@arm.com>
8522
8523 * bfin-tdep.c (BFIN_MAX_REGISTER_SIZE): Add.
8524 (bfin_pseudo_register_read): Use BFIN_MAX_REGISTER_SIZE.
8525 (bfin_pseudo_register_write): Likewise
8526
436252de
SM
85272017-04-06 Simon Marchi <simon.marchi@ericsson.com>
8528
8529 * common/ptid.h (struct ptid): Change to...
8530 (class ptid_t): ... this.
8531 <ptid_t>: New constructors.
8532 <pid, lwp_p, lwp, tid_p, tid, is_pid, operator==, operator!=,
8533 matches>: New methods.
8534 <make_null, make_minus_one>: New static methods.
8535 <pid>: Rename to...
8536 <m_pid>: ...this.
8537 <lwp>: Rename to...
8538 <m_lwp>: ...this.
8539 <tid>: Rename to...
8540 <m_tid>: ...this.
8541 (ptid_build, ptid_get_pid, ptid_get_lwp, ptid_get_tid, ptid_equal,
8542 ptid_is_pid, ptid_lwp_p, ptid_tid_p, ptid_match): Take ptid arguments
8543 as references, move comment to class ptid_t.
8544 * common/ptid.c (null_ptid, minus_one_ptid): Initialize with
8545 ptid_t static methods.
8546 (ptid_build, pid_to_ptid, ptid_get_pid, ptid_get_tid,
8547 ptid_equal, ptid_is_pid, ptid_lwp_p, ptid_tid_p, ptid_match):
8548 Take ptid arguments as references, implement using ptid_t methods.
8549 * unittests/ptid-selftests.c: New file.
8550 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
8551 unittests/ptid-selftests.c.
8552 (SUBDIR_UNITTESTS_OBS): Add unittests/ptid-selftests.o.
8553
0dedf377
TP
85542017-04-06 Thomas Preud'homme <thomas.preudhomme@arm.com>
8555
8556 * python/python.c (python_run_simple_file): Cast mode literal to
8557 non-const char pointer as expected by PyFile_FromString.
8558
4e9868d4
SM
85592017-04-05 Simon Marchi <simon.marchi@ericsson.com>
8560
8561 * common/ptid.c (ptid_lwp_p, ptid_tid_p): Remove comparison with
8562 minus_one_ptid and null_ptid.
8563
9bf2a700
PA
85642017-04-05 Pedro Alves <palves@redhat.com>
8565
8566 * warning.m4 (build_warnings): Remove -Wno-write-strings.
8567 * configure: Regenerate.
8568
a121b7c1
PA
85692017-04-05 Pedro Alves <palves@redhat.com>
8570
8571 * ada-exp.y (yyerror): Constify.
8572 * ada-lang.c (bound_name, get_selections)
8573 (ada_variant_discrim_type)
8574 (ada_variant_discrim_name, ada_value_struct_elt)
8575 (ada_lookup_struct_elt_type, is_unchecked_variant)
8576 (ada_which_variant_applies, standard_exc, ada_get_next_arg)
8577 (catch_ada_exception_command_split)
8578 (catch_ada_assert_command_split, catch_assert_command)
8579 (ada_op_name): Constify.
8580 * ada-lang.h (ada_yyerror, get_selections)
8581 (ada_variant_discrim_name, ada_value_struct_elt): Constify.
8582 * arc-tdep.c (arc_print_frame_cache): Constify.
8583 * arm-tdep.c (arm_skip_stub): Constify.
8584 * ax-gdb.c (gen_binop, gen_struct_ref_recursive, gen_struct_ref)
8585 (gen_aggregate_elt_ref): Constify.
8586 * bcache.c (print_bcache_statistics): Constify.
8587 * bcache.h (print_bcache_statistics): Constify.
8588 * break-catch-throw.c (catch_exception_command_1):
8589 * breakpoint.c (struct ep_type_description::description):
8590 Constify.
8591 (add_solib_catchpoint): Constify.
8592 (catch_fork_command_1): Add cast.
8593 (add_catch_command): Constify.
8594 * breakpoint.h (add_catch_command, add_solib_catchpoint):
8595 Constify.
8596 * bsd-uthread.c (bsd_uthread_state): Constify.
8597 * buildsym.c (patch_subfile_names): Constify.
8598 * buildsym.h (next_symbol_text_func, patch_subfile_names):
8599 Constify.
8600 * c-exp.y (yyerror): Constify.
8601 (token::oper): Constify.
8602 * c-lang.h (c_yyerror, cp_print_class_member): Constify.
8603 * c-varobj.c (cplus_describe_child): Constify.
8604 * charset.c (find_charset_names): Add cast.
8605 (find_charset_names): Constify array and add const_cast.
8606 * cli/cli-cmds.c (complete_command, cd_command): Constify.
8607 (edit_command): Constify.
8608 * cli/cli-decode.c (lookup_cmd): Constify.
8609 * cli/cli-dump.c (dump_memory_command, dump_value_command):
8610 Constify.
8611 (struct dump_context): Constify.
8612 (add_dump_command, restore_command): Constify.
8613 * cli/cli-script.c (get_command_line): Constify.
8614 * cli/cli-script.h (get_command_line): Constify.
8615 * cli/cli-utils.c (check_for_argument): Constify.
8616 * cli/cli-utils.h (check_for_argument): Constify.
8617 * coff-pe-read.c (struct read_pe_section_data): Constify.
8618 * command.h (lookup_cmd): Constify.
8619 * common/print-utils.c (decimal2str): Constify.
8620 * completer.c (gdb_print_filename): Constify.
8621 * corefile.c (set_gnutarget): Constify.
8622 * cp-name-parser.y (yyerror): Constify.
8623 * cp-valprint.c (cp_print_class_member): Constify.
8624 * cris-tdep.c (cris_register_name, crisv32_register_name):
8625 Constify.
8626 * d-exp.y (yyerror): Constify.
8627 (struct token::oper): Constify.
8628 * d-lang.h (d_yyerror): Constify.
8629 * dbxread.c (struct header_file_location::name): Constify.
8630 (add_old_header_file, add_new_header_file, last_function_name)
8631 (dbx_next_symbol_text, add_bincl_to_list)
8632 (find_corresponding_bincl_psymtab, set_namestring)
8633 (find_stab_function_addr, read_dbx_symtab, start_psymtab)
8634 (dbx_end_psymtab, read_ofile_symtab, process_one_symbol):
8635 * defs.h (command_line_input, print_address_symbolic)
8636 (deprecated_readline_begin_hook): Constify.
8637 * dwarf2read.c (anonymous_struct_prefix, dwarf_bool_name):
8638 Constify.
8639 * event-top.c (handle_line_of_input): Constify and add cast.
8640 * exceptions.c (catch_errors): Constify.
8641 * exceptions.h (catch_errors): Constify.
8642 * expprint.c (print_subexp_standard, op_string, op_name)
8643 (op_name_standard, dump_raw_expression, dump_raw_expression):
8644 * expression.h (op_name, op_string, dump_raw_expression):
8645 Constify.
8646 * f-exp.y (yyerror): Constify.
8647 (struct token::oper): Constify.
8648 (struct f77_boolean_val::name): Constify.
8649 * f-lang.c (f_word_break_characters): Constify.
8650 * f-lang.h (f_yyerror): Constify.
8651 * fork-child.c (fork_inferior): Add cast.
8652 * frv-tdep.c (struct gdbarch_tdep::register_names): Constify.
8653 (new_variant): Constify.
8654 * gdbarch.sh (pstring_ptr, pstring_list): Constify.
8655 * gdbarch.c: Regenerate.
8656 * gdbcore.h (set_gnutarget): Constify.
8657 * go-exp.y (yyerror): Constify.
8658 (token::oper): Constify.
8659 * go-lang.h (go_yyerror): Constify.
8660 * go32-nat.c (go32_sysinfo): Constify.
8661 * guile/scm-breakpoint.c (gdbscm_breakpoint_expression): Constify.
8662 * guile/scm-cmd.c (cmdscm_function): Constify.
8663 * guile/scm-param.c (pascm_param_value): Constify.
8664 * h8300-tdep.c (h8300_register_name, h8300s_register_name)
8665 (h8300sx_register_name): Constify.
8666 * hppa-tdep.c (hppa32_register_name, hppa64_register_name):
8667 Constify.
8668 * ia64-tdep.c (ia64_register_names): Constify.
8669 * infcmd.c (construct_inferior_arguments): Constify.
8670 (path_command, attach_post_wait): Constify.
8671 * language.c (show_range_command, show_case_command)
8672 (unk_lang_error): Constify.
8673 * language.h (language_defn::la_error)
8674 (language_defn::la_name_of_this): Constify.
8675 * linespec.c (decode_line_2): Constify.
8676 * linux-thread-db.c (thread_db_err_str): Constify.
8677 * lm32-tdep.c (lm32_register_name): Constify.
8678 * m2-exp.y (yyerror): Constify.
8679 * m2-lang.h (m2_yyerror): Constify.
8680 * m32r-tdep.c (m32r_register_names): Constify and make static.
8681 * m68hc11-tdep.c (m68hc11_register_names): Constify.
8682 * m88k-tdep.c (m88k_register_name): Constify.
8683 * macroexp.c (appendmem): Constify.
8684 * mdebugread.c (fdr_name, add_data_symbol, parse_type)
8685 (upgrade_type, parse_external, parse_partial_symbols)
8686 (mdebug_next_symbol_text, cross_ref, mylookup_symbol, new_psymtab)
8687 (new_symbol): Constify.
8688 * memattr.c (mem_info_command): Constify.
8689 * mep-tdep.c (register_name_from_keyword): Constify.
8690 * mi/mi-cmd-env.c (mi_cmd_env_path, _initialize_mi_cmd_env):
8691 Constify.
8692 * mi/mi-cmd-stack.c (list_args_or_locals): Constify.
8693 * mi/mi-cmd-var.c (mi_cmd_var_show_attributes): Constify.
8694 * mi/mi-main.c (captured_mi_execute_command): Constify and add
8695 cast.
8696 (mi_execute_async_cli_command): Constify.
8697 * mips-tdep.c (mips_register_name): Constify.
8698 * mn10300-tdep.c (register_name, mn10300_generic_register_name)
8699 (am33_register_name, am33_2_register_name)
8700 * moxie-tdep.c (moxie_register_names): Constify.
8701 * nat/linux-osdata.c (osdata_type): Constify fields.
8702 * nto-tdep.c (nto_parse_redirection): Constify.
8703 * objc-lang.c (lookup_struct_typedef, lookup_objc_class)
8704 (lookup_child_selector): Constify.
8705 (objc_methcall::name): Constify.
8706 * objc-lang.h (lookup_objc_class, lookup_child_selector)
8707 (lookup_struct_typedef): Constify.
8708 * objfiles.c (pc_in_section): Constify.
8709 * objfiles.h (pc_in_section): Constify.
8710 * p-exp.y (struct token::oper): Constify.
8711 (yyerror): Constify.
8712 * p-lang.h (pascal_yyerror): Constify.
8713 * parser-defs.h (op_name_standard): Constify.
8714 (op_print::string): Constify.
8715 (exp_descriptor::op_name): Constify.
8716 * printcmd.c (print_address_symbolic): Constify.
8717 * psymtab.c (print_partial_symbols): Constify.
8718 * python/py-breakpoint.c (stop_func): Constify.
8719 (bppy_get_expression): Constify.
8720 * python/py-cmd.c (cmdpy_completer::name): Constify.
8721 (cmdpy_function): Constify.
8722 * python/py-event.c (evpy_add_attribute)
8723 (gdbpy_initialize_event_generic): Constify.
8724 * python/py-event.h (evpy_add_attribute)
8725 (gdbpy_initialize_event_generic): Constify.
8726 * python/py-evts.c (add_new_registry): Constify.
8727 * python/py-finishbreakpoint.c (outofscope_func): Constify.
8728 * python/py-framefilter.c (get_py_iter_from_func): Constify.
8729 * python/py-inferior.c (get_buffer): Add cast.
8730 * python/py-param.c (parm_constant::name): Constify.
8731 * python/py-unwind.c (fprint_frame_id): Constify.
8732 * python/python.c (gdbpy_parameter_value): Constify.
8733 * remote-fileio.c (remote_fio_func_map): Make 'name' const.
8734 * remote.c (memory_packet_config::name): Constify.
8735 (show_packet_config_cmd, remote_write_bytes)
8736 (remote_buffer_add_string):
8737 * reverse.c (exec_reverse_once): Constify.
8738 * rs6000-tdep.c (variant::name, variant::description): Constify.
8739 * rust-exp.y (rustyyerror): Constify.
8740 * rust-lang.c (rust_op_name): Constify.
8741 * rust-lang.h (rustyyerror): Constify.
8742 * serial.h (serial_ops::name): Constify.
8743 * sh-tdep.c (sh_sh_register_name, sh_sh3_register_name)
8744 (sh_sh3e_register_name, sh_sh2e_register_name)
8745 (sh_sh2a_register_name, sh_sh2a_nofpu_register_name)
8746 (sh_sh_dsp_register_name, sh_sh3_dsp_register_name)
8747 (sh_sh4_register_name, sh_sh4_nofpu_register_name)
8748 (sh_sh4al_dsp_register_name): Constify.
8749 * sh64-tdep.c (sh64_register_name): Constify.
8750 * solib-darwin.c (lookup_symbol_from_bfd): Constify.
8751 * spu-tdep.c (spu_register_name, info_spu_dma_cmdlist): Constify.
8752 * stabsread.c (patch_block_stabs, read_type_number)
8753 (ref_map::stabs, ref_add, process_reference)
8754 (symbol_reference_defined, define_symbol, define_symbol)
8755 (error_type, read_type, read_member_functions, read_cpp_abbrev)
8756 (read_one_struct_field, read_struct_fields, read_baseclasses)
8757 (read_tilde_fields, read_struct_type, read_array_type)
8758 (read_enum_type, read_sun_builtin_type, read_sun_floating_type)
8759 (read_huge_number, read_range_type, read_args, common_block_start)
8760 (find_name_end): Constify.
8761 * stabsread.h (common_block_start, define_symbol)
8762 (process_one_symbol, symbol_reference_defined, ref_add):
8763 * symfile.c (get_section_index, add_symbol_file_command):
8764 * symfile.h (get_section_index): Constify.
8765 * target-descriptions.c (tdesc_type::name): Constify.
8766 (tdesc_free_type): Add cast.
8767 * target.c (find_default_run_target):
8768 (add_deprecated_target_alias, find_default_run_target)
8769 (target_announce_detach): Constify.
8770 (do_option): Constify.
8771 * target.h (add_deprecated_target_alias): Constify.
8772 * thread.c (print_thread_info_1): Constify.
8773 * top.c (deprecated_readline_begin_hook, command_line_input):
8774 Constify.
8775 (init_main): Add casts.
8776 * top.h (handle_line_of_input): Constify.
8777 * tracefile-tfile.c (tfile_write_uploaded_tsv): Constify.
8778 * tracepoint.c (tvariables_info_1, trace_status_mi): Constify.
8779 (tfind_command): Rename to ...
8780 (tfind_command_1): ... this and constify.
8781 (tfind_command): New function.
8782 (tfind_end_command, tfind_start_command): Adjust.
8783 (encode_source_string): Constify.
8784 * tracepoint.h (encode_source_string): Constify.
8785 * tui/tui-data.c (tui_partial_win_by_name): Constify.
8786 * tui/tui-data.h (tui_partial_win_by_name): Constify.
8787 * tui/tui-source.c (tui_set_source_content_nil): Constify.
8788 * tui/tui-source.h (tui_set_source_content_nil): Constify.
8789 * tui/tui-win.c (parse_scrolling_args): Constify.
8790 * tui/tui-windata.c (tui_erase_data_content): Constify.
8791 * tui/tui-windata.h (tui_erase_data_content): Constify.
8792 * tui/tui-winsource.c (tui_erase_source_content): Constify.
8793 * tui/tui.c (tui_enable): Add cast.
8794 * utils.c (defaulted_query): Constify.
8795 (init_page_info): Add cast.
8796 (puts_debug, subset_compare): Constify.
8797 * utils.h (subset_compare): Constify.
8798 * varobj.c (varobj_format_string): Constify.
8799 * varobj.h (varobj_format_string): Constify.
8800 * vax-tdep.c (vax_register_name): Constify.
8801 * windows-nat.c (windows_detach): Constify.
8802 * xcoffread.c (process_linenos, xcoff_next_symbol_text): Constify.
8803 * xml-support.c (gdb_xml_end_element): Constify.
8804 * xml-tdesc.c (tdesc_start_reg): Constify.
8805 * xstormy16-tdep.c (xstormy16_register_name): Constify.
8806 * xtensa-tdep.c (xtensa_find_register_by_name): Constify.
8807 * xtensa-tdep.h (xtensa_register_t::name): Constify.
8808
995816ba
PA
88092017-04-05 Pedro Alves <palves@redhat.com>
8810
8811 * proc-api.c (struct trans): Constify.
8812 (procfs_note): Constify.
8813 * proc-events.c (struct trans, syscall_table):
8814 * proc-flags.c (struct trans): Constify.
8815 * proc-utils.h (procfs_note): Constify.
8816 * proc-why.c (struct trans): Constify.
8817 * procfs.c (dead_procinfo, find_syscall, proc_warn, proc_error)
8818 (procfs_detach): Constify.
8819 * sol-thread.c (struct string_map): Constify.
8820 (td_err_string, td_state_string): Constify.
8821
3e83a920
PA
88222017-04-05 Pedro Alves <palves@redhat.com>
8823
8824 * proc-api.c (procfs_filename): Don't initialize
8825 procfs_filename.
8826 (prepare_to_trace): Assume procfs_filename is non-NULL.
8827 (_initialize_proc_api): Give procfs_filename a default value here.
8828
63160a43
PA
88292017-04-05 Pedro Alves <palves@redhat.com>
8830
8831 * break-catch-throw.c (handle_gnu_v3_exceptions): Constify
8832 'cond_string' parameter.
8833 (extract_exception_regexp): Constify 'string' parameter.
8834 (catch_exception_command_1): Constify.
8835 * breakpoint.c (init_catchpoint)
8836 (create_fork_vfork_event_catchpoint): Constify 'cond_string'
8837 parameter.
8838 (ep_parse_optional_if_clause, catch_fork_command_1)
8839 (catch_exec_command_1): Constify.
8840 * breakpoint.h (init_catchpoint): Constify 'cond_string'
8841 parameter.
8842 (ep_parse_optional_if_clause): Constify.
8843 * cli/cli-utils.c (remove_trailing_whitespace)
8844 (check_for_argument): Constify.
8845 * cli/cli-utils.h (remove_trailing_whitespace): Constify and add
8846 non-const overload.
8847 (check_for_argument): Likewise.
8848
9b2eba3d
PA
88492017-04-05 Pedro Alves <palves@redhat.com>
8850
8851 * event-top.c (command_line_handler): Add cast to execute_command
8852 call.
8853 * record-btrace.c (cmd_record_btrace_bts_start)
8854 (cmd_record_btrace_pt_start, cmd_record_btrace_start)
8855 (cmd_record_btrace_start): Add cast to execute_command call.
8856 * record-full.c (record_full_goto_insn):
8857 * record.c (record_start, record_stop): Add cast to
8858 execute_command_to_string calls.
8859 (cmd_record_start): Add cast to execute_command calls.
8860
2adadf51
PA
88612017-04-05 Pedro Alves <palves@redhat.com>
8862
8863 * python/python-internal.h (gdb_PyArg_ParseTupleAndKeywords): New
8864 static inline function.
8865 * python/py-arch.c (archpy_disassemble): Constify 'keywords'
8866 array and use gdb_PyArg_ParseTupleAndKeywords.
8867 * python/py-cmd.c (cmdpy_init): Likewise.
8868 * python/py-finishbreakpoint.c (bpfinishpy_init): Likewise.
8869 * python/py-inferior.c (infpy_read_memory, infpy_write_memory)
8870 (infpy_search_memory): Likewise.
8871 * python/py-objfile.c (objfpy_add_separate_debug_file)
8872 (gdbpy_lookup_objfile): Likewise.
8873 * python/py-symbol.c (gdbpy_lookup_symbol)
8874 (gdbpy_lookup_global_symbol): Likewise.
8875 * python/py-type.c (gdbpy_lookup_type): Likewise.
8876 * python/py-value.c (valpy_lazy_string, valpy_string): Likewise.
8877 * python/python.c (execute_gdb_command, gdbpy_write, gdbpy_flush):
8878 Likewise.
8879
0d1f4ceb
PA
88802017-04-05 Pedro Alves <palves@redhat.com>
8881
8882 * python/python-internal.h (gdb_PyGetSetDef): New type.
8883 * python/py-block.c (block_object_getset)
8884 (breakpoint_object_getset): Now a gdb_PyGetSetDef array.
8885 * python/py-event.c (event_object_getset)
8886 (finish_breakpoint_object_getset): Likewise.
8887 * python/py-inferior.c (inferior_object_getset): Likewise.
8888 * python/py-infthread.c (thread_object_getset): Likewise.
8889 * python/py-lazy-string.c (lazy_string_object_getset): Likewise.
8890 * python/py-linetable.c (linetable_entry_object_getset): Likewise.
8891 * python/py-objfile.c (objfile_getset): Likewise.
8892 * python/py-progspace.c (pspace_getset): Likewise.
8893 * python/py-record-btrace.c (btpy_insn_getset, btpy_call_getset):
8894 Likewise.
8895 * python/py-record.c (recpy_record_getset): Likewise.
8896 * python/py-symbol.c (symbol_object_getset): Likewise.
8897 * python/py-symtab.c (symtab_object_getset, sal_object_getset):
8898 Likewise.
8899 * python/py-type.c (type_object_getset, field_object_getset):
8900 Likewise.
8901 * python/py-value.c (value_object_getset): Likewise.
8902
4d759979
PA
89032017-04-05 Pedro Alves <palves@redhat.com>
8904
8905 * python/python-internal.h (gdb_PyObject_CallMethod)
8906 (gdb_PyErr_NewException, gdb_PySys_GetObject, gdb_PySys_SetPath):
8907 New functions.
8908 (GDB_PYSYS_SETPATH_CHAR, PyObject_CallMethod, PyErr_NewException)
8909 (PySys_GetObject, PySys_SetPath): New macros.
8910
fdf9e36f
PA
89112017-04-05 Pedro Alves <palves@redhat.com>
8912
8913 * mi/mi-cmd-info.c (mi_cmd_info_os): Call info_osdata instead of
8914 info_osdata_command.
8915 * osdata.c (info_osdata_command): Rename to ...
8916 (info_osdata): ... this. Constify 'type' parameter, and remove
8917 the 'from_tty' parameter. Accept NULL TYPE.
8918 (info_osdata_command): New function.
8919 * osdata.h (info_osdata_command): Remove declaration.
8920 (info_osdata): New declaration.
8921
9f33b8b7
PA
89222017-04-05 Pedro Alves <palves@redhat.com>
8923
8924 * mi/mi-cmd-break.c (mi_cmd_break_insert_1, mi_cmd_break_insert)
8925 (mi_cmd_dprintf_insert, mi_cmd_break_passcount)
8926 (mi_cmd_break_watch, mi_cmd_break_commands): Constify 'command'
8927 parameter.
8928 * mi/mi-cmd-catch.c (mi_cmd_catch_assert, mi_cmd_catch_exception)
8929 (mi_cmd_catch_load, mi_cmd_catch_unload): Constify cmd' parameter.
8930 * mi/mi-cmd-disas.c (mi_cmd_disassemble): Constify 'command'
8931 parameter.
8932 * mi/mi-cmd-env.c (mi_cmd_env_pwd, mi_cmd_env_cd, mi_cmd_env_path)
8933 (mi_cmd_env_dir, mi_cmd_inferior_tty_set, _cmd_inferior_tty_show)
8934 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_file)
8935 (mi_cmd_file_list_exec_source_files)
8936 (mi_cmd_file_list_shared_libraries): Constify 'command' parameter.
8937 * mi/mi-cmd-info.c (mi_cmd_info_ada_exceptions)
8938 (mi_cmd_info_gdb_mi_command, mi_cmd_info_os): Constify 'command'
8939 parameter.
8940 * mi/mi-cmd-stack.c (mi_cmd_enable_frame_filters)
8941 (mi_cmd_stack_list_frames, mi_cmd_stack_info_depth)
8942 (mi_cmd_stack_list_locals, mi_cmd_stack_list_args)
8943 (mi_cmd_stack_list_variables, mi_cmd_stack_select_frame)
8944 (mi_cmd_stack_info_frame): Constify 'command' parameter.
8945 * mi/mi-cmd-target.c (mi_cmd_target_file_get)
8946 (mi_cmd_target_file_put, mi_cmd_target_file_delete): Constify
8947 'command' parameter.
8948 * mi/mi-cmd-var.c (mi_cmd_var_create, mi_cmd_var_delete)
8949 (mi_cmd_var_set_format, mi_cmd_var_set_visualizer)
8950 (mi_cmd_var_set_frozen, mi_cmd_var_show_format)
8951 (mi_cmd_var_info_num_children, mi_cmd_var_list_children)
8952 (mi_cmd_var_info_type, mi_cmd_var_info_path_expression)
8953 (mi_cmd_var_info_expression, mi_cmd_var_show_attributes)
8954 (mi_cmd_var_evaluate_expression, mi_cmd_var_assign)
8955 (mi_cmd_var_update, mi_cmd_enable_pretty_printing)
8956 (mi_cmd_var_set_update_range): Constify 'command' parameter.
8957 * mi/mi-cmds.h (mi_cmd_argv_ftype): Constify 'command' parameter.
8958 * mi/mi-interp.c (mi_cmd_interpreter_exec): Constify 'command'
8959 parameter.
8960 * mi/mi-main.c (mi_cmd_gdb_exit, mi_cmd_exec_next)
8961 (mi_cmd_exec_next_instruction, mi_cmd_exec_step)
8962 (mi_cmd_exec_step_instruction, mi_cmd_exec_finish)
8963 (mi_cmd_exec_return ,mi_cmd_exec_jump, mi_cmd_exec_continue)
8964 (mi_cmd_exec_interrupt, mi_cmd_exec_run, mi_cmd_target_detach)
8965 (mi_cmd_target_flash_erase, mi_cmd_thread_select)
8966 (mi_cmd_thread_list_ids, mi_cmd_thread_info)
8967 (mi_cmd_list_thread_groups, mi_cmd_data_list_register_names)
8968 (mi_cmd_data_list_changed_registers)
8969 (mi_cmd_data_write_register_values)
8970 (mi_cmd_data_evaluate_expression, mi_cmd_data_read_memory)
8971 (mi_cmd_data_read_memory_bytes, mi_cmd_data_write_memory)
8972 (mi_cmd_data_write_memory_bytes, mi_cmd_enable_timings)
8973 (mi_cmd_list_features, mi_cmd_list_target_features)
8974 (mi_cmd_add_inferior, mi_cmd_remove_inferior)
8975 (mi_cmd_trace_define_variable, mi_cmd_trace_list_variables)
8976 (mi_cmd_trace_find, mi_cmd_trace_save, mi_cmd_trace_start)
8977 (mi_cmd_trace_status, mi_cmd_trace_stop, mi_cmd_ada_task_info)
8978 (mi_cmd_trace_frame_collected): Constify 'command'
8979 parameter.
8980 * mi/mi-symbol-cmds.c (mi_cmd_symbol_list_lines): Constify
8981 'command' parameter.
8982
67cb5b2d
PA
89832017-04-05 Pedro Alves <palves@redhat.com>
8984
8985 * ada-lang.c (ada_completer_word_break_characters): Now a const
8986 array.
8987 (ada_get_gdb_completer_word_break_characters): Constify.
8988 * completer.c (gdb_completer_command_word_break_characters)
8989 (gdb_completer_file_name_break_characters)
8990 (gdb_completer_quote_characters): Now const arrays.
8991 (get_gdb_completer_quote_characters): Constify.
8992 (set_rl_completer_word_break_characters): New function.
8993 (set_gdb_completion_word_break_characters)
8994 (complete_line_internal): Use it.
8995 * completer.h (get_gdb_completer_quote_characters): Constify.
8996 (set_rl_completer_word_break_characters): Declare.
8997 * f-lang.c (f_word_break_characters): Constify.
8998 * language.c (default_word_break_characters): Constify.
8999 * language.h (language_defn::la_word_break_characters): Constify.
9000 (default_word_break_characters): Constify.
9001 * top.c (init_main): Use set_rl_completer_word_break_characters.
9002
7a114964
PA
90032017-04-05 Pedro Alves <palves@redhat.com>
9004
9005 * aix-thread.c (aix_thread_pid_to_str)
9006 (aix_thread_extra_thread_info): Constify.
9007 * bsd-kvm.c (bsd_kvm_pid_to_str): Constify.
9008 * bsd-uthread.c (bsd_uthread_extra_thread_info)
9009 (bsd_uthread_pid_to_str): Constify.
9010 * corelow.c (core_pid_to_str): Constify.
9011 * darwin-nat.c (darwin_pid_to_str): Constify.
9012 * fbsd-nat.c (fbsd_pid_to_str): Constify.
9013 * fbsd-tdep.c (fbsd_core_pid_to_str, gdbarch_core_pid_to_str):
9014 Constify.
9015 * gnu-nat.c (gnu_pid_to_str): Constify.
9016 * go32-nat.c (go32_pid_to_str): Constify.
9017 * i386-cygwin-tdep.c (i386_windows_core_pid_to_str): Constify.
9018 * inf-ptrace.c (inf_ptrace_pid_to_str): Constify.
9019 * inferior.c (inferior_pid_to_str): Constify.
9020 * linux-nat.c (linux_nat_pid_to_str): Constify.
9021 * linux-tdep.c (linux_core_pid_to_str): Constify.
9022 * linux-thread-db.c (thread_db_pid_to_str)
9023 (thread_db_extra_thread_info): Constify.
9024 * nto-tdep.c (nto_extra_thread_info): Constify.
9025 * nto-tdep.h (nto_extra_thread_info): Constify.
9026 * obsd-nat.c (obsd_pid_to_str): Constify.
9027 * procfs.c (procfs_pid_to_str): Constify.
9028 * ravenscar-thread.c (ravenscar_extra_thread_info)
9029 (ravenscar_pid_to_str): Constify.
9030 * remote-sim.c (gdbsim_pid_to_str): Constify.
9031 * remote.c (remote_threads_extra_info, remote_pid_to_str):
9032 Constify.
9033 * sol-thread.c (solaris_pid_to_str): Constify.
9034 * sol2-tdep.c (sol2_core_pid_to_str): Constify.
9035 * sol2-tdep.h (sol2_core_pid_to_str): Constify.
9036 * target.c (default_pid_to_str, target_pid_to_str)
9037 (normal_pid_to_str, default_pid_to_str): Constify.
9038 * target.h (target_ops::to_pid_to_str)
9039 (target_ops::to_extra_thread_info): Constify.
9040 (target_pid_to_str, normal_pid_to_str): Constify.
9041 * windows-nat.c (windows_pid_to_str): Constify.
9042 * gdbarch.sh (core_pid_to_str): Constify.
9043 * target-delegates.c: Regenerate.
9044 * gdbarch.h, gdbarch.c: Regenerate.
9045
69bbf465
PA
90462017-04-05 Pedro Alves <palves@redhat.com>
9047
9048 * main.c (captured_main_1): Use gdb::unique_xmalloc_ptr to manage
9049 the memory of the temporary warning_pre_print override.
9050 * utils.c (warning_pre_print): Constify.
9051 * utils.h (warning_pre_print): Constify.
9052
be47f9e8
PA
90532017-04-05 Pedro Alves <palves@redhat.com>
9054
9055 * cli/cli-cmds.c (shell_escape): Constify 'arg' parameter.
9056 (shell_command): New function.
9057 (make_command): Use std::string.
9058 (init_cli_cmds): Register shell_command instead of shell_escape.
9059
bde6261a
PA
90602017-04-05 Pedro Alves <palves@redhat.com>
9061
9062 * breakpoint.c (dprintf_function, dprintf_channel): Don't initialize.
9063 * tracepoint.c (default_collect): Don't initialize.
9064
b38ef47f
PA
90652017-04-05 Pedro Alves <palves@redhat.com>
9066
9067 * macroexp.c (macro_buffer::shared): Now a bool.
9068 (init_buffer): Update.
9069 (init_shared_buffer): Constify 'addr' parameter.
9070 (substitute_args, expand, macro_expand, macro_expand_next): Remove
9071 casts.
9072
f995bbe8
PA
90732017-04-05 Pedro Alves <palves@redhat.com>
9074
9075 * arm-tdep.c (show_disassembly_style_sfunc): Constify local.
9076 * disasm.c (set_disassembler_options): Constify local.
9077 * i386-tdep.c (i386_print_insn): Remove cast and FIXME comment.
9078
4a596fe2
SDJ
90792017-04-05 Sergio Durigan Junior <sergiodj@redhat.com>
9080
9081 PR gdb/21352
9082 * tracefile.c (tsave_command): Fix argument parsing for '-r'
9083 option.
9084
2cad08ea
YQ
90852017-04-05 Yao Qi <yao.qi@linaro.org>
9086
9087 * frame.c (frame_unwind_register_unsigned): Call
9088 frame_unwind_register_value.
9089
55a98976
YQ
90902017-04-05 Yao Qi <yao.qi@linaro.org>
9091
9092 * gdb.threads/thread-specific-bp.exp (check_thread_specific_breakpoint):
9093 Use gdb_test_multiple, and don't match anchor.
9094
4ac40124
PA
90952017-04-05 Pedro Alves <palves@redhat.com>
9096
9097 * MAINTAINERS (Global Maintainers): Add Simon Marchi.
9098 (Write After Approval): Remove Simon Marchi.
9099
c053b654
PA
91002017-04-05 Pedro Alves <palves@redhat.com>
9101
9102 * common/gdb_optional.h (optional::optional): Make constexpr and
9103 initialize m_dummy.
9104
4c7bf4f9
JB
91052017-04-04 John Baldwin <jhb@FreeBSD.org>
9106
9107 * amd64-fbsd-tdep.c: Remove "bsd-uthread.h" include.
9108 (amd64fbsd_jmp_buf_reg_offset): Remove.
9109 (amd64fbsd_supply_uthread): Remove function.
9110 (amd64fbsd_collect_uthread): Remove function.
9111 (amd64fbsd_init_abi): Don't set bsd-uthread callbacks.
9112 * configure.tgt (i[34567]86-*-freebsd*): Remove bsd-uthread.o.
9113 (x86_64-*-freebsd*): Remove bsd-uthread.o.
9114 (fbsd-nat.c): Update comment.
9115 * i386-fbsd-tdep.c: Remove "bsd-uthread.h" include.
9116 (i386fbsd_jmp_buf_reg_offset): Remove.
9117 (i386fbsd_supply_uthread): Remove function.
9118 (i386fbsd_collect_uthread): Remove function.
9119 (i386fbsd_init_abi): Don't set bsd-uthread callbacks.
9120
1e1a8bef
JB
91212017-04-04 John Baldwin <jhb@FreeBSD.org>
9122
9123 * Makefile.in (ALL_64_TARGET_OBS): Remove alpha-fbsd-tdep.o.
9124 (ALLDEPFILES): Remove alpha-fbsd-tdep.c
9125 * NEWS: Mention that support for FreeBSD/alpha was removed.
9126 * alpha-fbsd-tdep.c: Delete file.
9127 * config/alpha/fbsd.mh: Delete file.
9128 * configure.host: Delete alpha*-*-freebsd* and
9129 alpha*-*-kfreebsd*-gnu.
9130 * configure.tgt: Delete alpha*-*-freebsd* and
9131 alpha*-*-kfreebsd*-gnu.
9132
49907934
JB
91332017-04-04 John Baldwin <jhb@FreeBSD.org>
9134
9135 * amd64-bsd-nat.c (amd64bsd_fetch_inferior_registers,
9136 amd64bsd_store_inferior_registers): Use ptid from regcache.
9137
6f77053d
PA
91382017-04-04 Pedro Alves <palves@redhat.com>
9139
9140 * dwarf2read.c (lnp_state_machine): Now a class. Initialize all
9141 data fields, make them private and add "m_" prefixes.
9142 (lnp_state_machine::lnp_state_machine): New ctor.
9143 (record_line, check_line_address, handle_set_discriminator)
9144 (handle_set_address, handle_advance_pc, handle_special_opcode)
9145 (handle_advance_line, handle_set_file, handle_negate_stmt)
9146 (handle_const_add_pc, handle_fixed_advance_pc, handle_copy)
9147 (end_sequence, advance_line): New methods.
9148 (m_gdbarch, m_record_lines_p): New fields.
9149 (lnp_reader_state): Delete.
9150 (dwarf_record_line): Rename to ...
9151 (lnp_state_machine::record_line): ... adjust.
9152 (init_lnp_state_machine): Delete.
9153 (lnp_state_machine::lnp_state_machine): New.
9154 (check_line_address): Rename to ...
9155 (lnp_state_machine::check_line_address): This.
9156 (dwarf_decode_lines_1): Remove reference to "reader_state".
9157 Adjust lnp_state_machine having a non-default ctor. Use bool.
9158 State machine internal state manipulation moved to
9159 lnp_state_machine methods.
9160
9c541725
PA
91612017-04-04 Pedro Alves <palves@redhat.com>
9162
9163 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
9164 unittests/offset-type-selftests.c.
9165 (SUBDIR_UNITTESTS_OBS): Add offset-type-selftests.o.
9166 * common/offset-type.h: New file.
9167 * common/preprocessor.h: New file.
9168 * common/traits.h: New file.
9169 * common/valid-expr.h: New file.
9170 * dwarf2expr.c: Include "common/underlying.h". Adjust to use
9171 sect_offset and cu_offset strong typedefs throughout.
9172 * dwarf2expr.h: Adjust to use sect_offset and cu_offset strong
9173 typedefs throughout.
9174 * dwarf2loc.c: Include "common/underlying.h". Adjust to use
9175 sect_offset and cu_offset strong typedefs throughout.
9176 * dwarf2read.c: Adjust to use sect_offset and cu_offset strong
9177 typedefs throughout.
9178 * gdbtypes.h: Include "common/offset-type.h".
9179 (cu_offset): Now an offset type (strong typedef) instead of a
9180 struct.
9181 (sect_offset): Likewise.
9182 (union call_site_parameter_u): Rename "param_offset" field to
9183 "param_cu_off".
9184 * unittests/offset-type-selftests.c: New file.
9185
ecfb656c
PA
91862017-04-04 Pedro Alves <palves@redhat.com>
9187
9188 * common/underlying.h: New file.
9189 * dwarf2read.c: Include "common/gdb_optional.h" and
9190 "common/underlying.h".
9191 (dir_index, file_name_index): New types.
9192 (file_entry): Use them.
9193 (file_entry::include): Use to_underlying.
9194 (line_header::add_file_name): Use dir_index.
9195 (read_formatted_entries): Use gdb::optional. Read form before
9196 writting to file_entry.
9197 (dwarf_decode_line_header): Use dir_index.
9198 (lnp_state_machine::current_file): Use to_underlying.
9199 (lnp_state_machine::file): Change type to file_name_index.
9200 (dwarf_record_line): Use to_underlying.
9201 (init_lnp_state_machine): Use file_name_index.
9202 (dwarf_decode_lines_1): Use dir_index and file_name_index.
9203
d194f1fe
PA
92042017-04-04 Pedro Alves <palves@redhat.com>
9205
9206 * common/gdb_optional.h (gdb::optiona): Add operator->, operator*,
9207 operator bool, has_value and get methods.
9208
fff8551c
PA
92092017-04-04 Pedro Alves <palves@redhat.com>
9210
9211 * dwarf2read.c (struct file_entry): Add ctors, and initialize all
9212 fields.
9213 (line_header): Initialize all data fields. Change type of
9214 standard_opcode_lengths to std::unique_ptr<unsigned char[]>.
9215 Change type of include_dirs to std::vector<const char *>. Remove
9216 num_include_dirs, include_dirs_size. Change type of file_names to
9217 std::vector<file_entry>. Remove num_file_names, file_names_size.
9218 (line_header::line_header): New.
9219 (line_header::add_include_dir, line_header::add_file_name): New
9220 methods.
9221 (line_header::include_dir_at): Remove NULL check.
9222 (line_header::file_name_at): Add const overload.
9223 (line_header_up): New unique_ptr typedef.
9224 (dw2_get_file_names_reader): Use line_header_up. Adjust to use
9225 std::vector. Remove free_line_header call.
9226 (dwarf2_build_include_psymtabs): Use line_header_up. Remove
9227 free_line_header call.
9228 (free_cu_line_header): Delete.
9229 (handle_DW_AT_stmt_list, handle_DW_AT_stmt_list)
9230 (setup_type_unit_groups): Use line_header_up instead of cleanups.
9231 Adjust to use std::vector.
9232 (free_line_header): Delete.
9233 (free_line_header_voidp): Use delete.
9234 (add_include_dir): Replace with ...
9235 (line_header::add_include_dir): ... this method. Use std::vector.
9236 (add_file_name): Replace with ...
9237 (line_header::add_file_name): ... this method. Use std::vector.
9238 (add_include_dir_stub): Delete.
9239 (read_formatted_entries): Remove memset.
9240 (dwarf_decode_line_header): Return a line_header_up instead of a
9241 raw pointer. Remove cleanup handling. Pass lambdas to
9242 read_formatted_entries. Adjust to use line_header methods.
9243 (dwarf_decode_lines_1): Adjust to use line_header methods.
9244 (dwarf_decode_lines, file_file_name, file_full_name): Adjust to
9245 use std::vector.
9246
d62a8ae2
SM
92472017-04-04 Simon Marchi <simon.marchi@polymtl.ca>
9248
9249 * remote.c (set_general_thread, set_continue_thread): Use ptid_t
9250 instead of struct ptid.
9251
db3a1dc7
AH
92522017-05-04 Alan Hayward <alan.hayward@arm.com>
9253
9254 * frame.c (get_frame_register_bytes): Unwind using value.
9255 (put_frame_register_bytes): Likewise.
9256
b1b45502
IB
92572017-03-30 Iain Buclaw <ibuclaw@gdcproject.org>
9258
9259 * d-exp.y (type_aggregate_p): Treat TYPE_CODE_MODULE as being
9260 aggregate-like.
9261
ec13808e
JK
92622017-03-29 Jan Kratochvil <jan.kratochvil@redhat.com>
9263
9264 * auto-load.c (auto_load_section_scripts): Check SEC_HAS_CONTENTS.
9265
12316564
YQ
92662017-03-29 Yao Qi <yao.qi@linaro.org>
9267
9268 * gdbthread.h (struct thread_info): Declare constructor and
9269 destructor. Add some in-class member initializers.
9270 * thread.c (free_thread): Remove.
9271 (init_thread_list): Call delete instead of free_thread.
9272 (new_thread): Call thread_info constructor.
9273 (thread_info::thread_info): New function.
9274 (thread_info::~thread_info): New function.
9275 (delete_thread_1): Call delete instead of free_thread.
9276 (make_cleanup_restore_current_thread): Move tp and frame to
9277 inner block.
9278
fe5f7374
AK
92792017-03-28 Anton Kolesov <anton.kolesov@synopsys.com>
9280
9281 * arc-tdep.c (arc_frame_cache): Add support for prologue analysis.
9282 (arc_skip_prologue): Likewise.
9283 (arc_make_frame_cache): Likewise.
9284 (arc_pv_get_operand): New function.
9285 (arc_is_in_prologue): Likewise.
9286 (arc_analyze_prologue): Likewise.
9287 (arc_print_frame_cache): Likewise.
9288 (MAX_PROLOGUE_LENGTH): New constant.
9289
eea78757
AK
92902017-03-28 Anton Kolesov <anton.kolesov@synopsys.com>
9291
9292 * configure.tgt: Add arc-insn.o.
9293 * arc-tdep.c (arc_delayed_print_insn): Make non-static.
9294 (dump_arc_instruction_command): New function.
9295 (arc_fprintf_disasm): Likewise.
9296 (arc_disassemble_info): Likewise.
9297 (arc_insn_get_operand_value): Likewise.
9298 (arc_insn_get_operand_value_signed): Likewise.
9299 (arc_insn_get_memory_base_reg): Likewise.
9300 (arc_insn_get_memory_offset): Likewise.
9301 (arc_insn_get_branch_target): Likewise.
9302 (arc_insn_dump): Likewise.
9303 (arc_insn_get_linear_next_pc): Likewise.
9304 * arc-tdep.h (arc_delayed_print_insn): Add function declaration.
9305 (arc_disassemble_info): Likewise.
9306 (arc_insn_get_branch_target): Likewise.
9307 (arc_insn_get_linear_next_pc): Likewise.
9308 * NEWS: Mention new "maint print arc arc-instruction".
9309
3be78afd
AK
93102017-03-28 Anton Kolesov <anton.kolesov@synopsys.com>
9311
9312 * arc-tdep (maintenance_print_arc_list): New variable.
9313 (maintenance_print_arc_command): New function.
9314
296ec4fa
AK
93152017-03-28 Anton Kolesov <anton.kolesov@synopsys.com>
9316
9317 * arc-tdep.c (core_v2_register_names, core_arcompact_register_names)
9318 Add "limm" and "reserved".
9319 (arc_cannot_fetch_register, arc_cannot_store_register): Add
9320 ARC_RESERVED_REGNUM and ARC_LIMM_REGNUM.
9321 * arc-tdep.h (arc_regnum): Likewise.
9322
f74f865e
MF
93232017-03-27 Max Filippov <jcmvbkbc@gmail.com>
9324
9325 * xtensa-linux-nat.c (fill_gregset): Call regcache_raw_collect
9326 for THREADPTR register.
9327 (supply_gregset_reg): Call regcache_raw_supply for THREADPTR
9328 register.
9329 * xtensa-tdep.c (XTENSA_DBREGN_UREG): New definition.
9330 (xtensa_derive_tdep): Initialize tdep->threadptr_regnum.
9331 * xtensa-tdep.h (gdbarch_tdep::threadptr_regnum): New field.
9332
0d0bf81a
MF
93332017-03-27 Max Filippov <jcmvbkbc@gmail.com>
9334
9335 * xtensa-tdep.c (xtensa_pseudo_register_read): Treat all
9336 registers above gdbarch_num_regs (gdbarch) as privileged in
9337 call0 ABI.
9338
0ce4291e
MF
93392017-03-27 Max Filippov <jcmvbkbc@gmail.com>
9340
9341 * xtensa-linux-nat.c (fill_gregset): Call regcache_raw_collect
9342 for a single specified register or for all registers in
9343 a0_base..a0_base + C0_NREGS range.
9344 (supply_gregset_reg): Call regcache_raw_supply for a single
9345 specified register or for all registers in a0_base..a0_base +
9346 C0_NREGS range.
9347
c56054f9
MF
93482017-03-27 Max Filippov <jcmvbkbc@gmail.com>
9349
9350 * arch/xtensa.h (C0_NREGS): Add definition.
9351 * xtensa-tdep.c (C0_NREGS): Remove definition.
9352
a4398628
MF
93532017-03-27 Max Filippov <jcmvbkbc@gmail.com>
9354
9355 * xtensa-tdep.c (xtensa_scan_prologue, call0_analyze_prologue):
9356 Drop xtensa_default_isa initialization.
9357 (xtensa_gdbarch_init): Initialize xtensa_default_isa.
9358
8c43009f
PA
93592017-03-27 Pedro Alves <palves@redhat.com>
9360
9361 * dwarf2read.c (file_entry) <dir_index>: Add comment.
9362 (file_entry::include_dir): New method.
9363 (line_header::include_dir_at, line_header::file_name_at): New
9364 methods.
9365 (setup_type_unit_groups, setup_type_unit_groups)
9366 (psymtab_include_file_name): Simplify using the new methods.
9367 (lnp_state_machine) <the_line_header>: New field.
9368 <file>: Add comment.
9369 (lnp_state_machine::current_file): New method.
9370 (dwarf_record_line): Simplify using the new methods.
9371 (init_lnp_state_machine): Initialize the "the_line_header" field.
9372 (dwarf_decode_lines_1, dwarf_decode_lines, file_file_name):
9373 Simplify using the new methods.
9374
a7e80b9e
PA
93752017-03-27 Pedro Alves <palves@redhat.com>
9376
9377 * cp-name-parser.y (make_empty): Delete.
9378 (demangler_special, nested_name, ptr_operator, array_indicator)
9379 (direct_declarator, declarator_1): Use fill_comp instead of
9380 make_empty.
9381
21047726
PA
93822017-03-27 Pedro Alves <palves@redhat.com>
9383
9384 * xml-support.h (gdb_xml_debug): Pass a "first-to-check" argument
9385 to ATTRIBUTE_PRINTF.
9386 * solib-target.c (library_list_start_list): Print "string" not
9387 "version".
9388 * xml-tdesc.c (tdesc_start_field): Pass "field_name" to
9389 gdb_xml_error call.
9390
d721ba37
PA
93912017-03-27 Pedro Alves <palves@redhat.com>
9392
9393 * dwarf2read.c (struct file_and_directory): New.
9394 (dwarf2_get_dwz_file): Adjust to use std::string.
9395 (dw2_get_file_names_reader): Adjust to use file_and_directory.
9396 (find_file_and_directory): Adjust to return a file_and_directory
9397 object.
9398 (read_file_scope): Adjust to use file_and_directory. Remove
9399 make_cleanup/do_cleanups calls.
9400 (open_and_init_dwp_file): Adjust to use std::string. Remove
9401 make_cleanup/do_cleanups calls.
9402 * python/python.c (do_start_initialization): Adjust to ldirname
9403 returning a std::string.
9404 * utils.c (ldirname): Now returns a std::string.
9405 * utils.h (ldirname): Change return type to std::string.
9406 * xml-syscall.c (xml_init_syscalls_info): Adjust to ldirname
9407 returning a std::string.
9408 * xml-tdesc.c (file_read_description_xml): Likewise.
9409
ed771251
AH
94102017-03-24 Alan Hayward <alan.hayward@arm.com>
9411
9412 * regcache.c (regcache_debug_print_register): New function.
9413 * regcache.h (regcache_debug_print_register): New declaration.
9414 * target.c (debug_print_register): Remove.
9415 (target_fetch_registers): Call regcache_debug_print_register.
9416 (target_store_registers): Likewise.
9417
568c1b9f
PB
94182017-03-24 Pádraig Brady <pbrady@fb.com>
9419
9420 * dwarf2read.c (setup_type_unit_groups): Ensure dir_index doesn't
9421 reference beyond the 'lh->include_dirs' array before accessing to
9422 it.
9423 (psymtab_include_file_name): Likewise.
9424 (dwarf_decode_lines_1): Likewise.
9425 (dwarf_decode_lines): Likewise.
9426 (file_file_name): Likewise.
9427
3e00d44f
SM
94282017-03-23 Simon Marchi <simon.marchi@ericsson.com>
9429
9430 * fbsd-tdep.c (fbsd_corefile_thread): Don't set/restore
9431 inferior_ptid.
9432 * proc-service.c (ps_lgetregs, ps_lsetregs, ps_lgetfpregs,
9433 ps_lsetfpregs): Likewise.
9434 * regcache.c (regcache_raw_update, regcache_raw_write): Likewise.
9435 * sol-thread.c (ps_lgetregs, ps_lsetregs, ps_lgetfpregs,
9436 ps_lsetfpregs): Likewise.
9437 * target.c (target_fetch_registers, target_store_registers):
9438 Remove asserts.
9439
077ae656
AH
94402017-03-23 Alan Hayward <alan.hayward@arm.com>
9441
9442 * sol-thread.c (sol_thread_store_registers): Remove regcache calls.
9443
1e2b521d
YQ
94442017-03-23 Yao Qi <yao.qi@linaro.org>
9445
9446 * aarch64-tdep.c (aarch64_process_record_test): Declare.
9447 (_initialize_aarch64_tdep): Register it.
9448 (aarch64_record_load_store): Handle PRFM instruction.
9449 (aarch64_process_record_test): New function.
9450
33877125
YQ
94512017-03-23 Yao Qi <yao.qi@linaro.org>
9452
9453 * aarch64-tdep.c (aarch64_record_load_store): Fix code
9454 indentation.
9455
a0eef940
YQ
94562017-03-23 Yao Qi <yao.qi@linaro.org>
9457
9458 * aarch64-tdep.c: Remove AARCH64_RECORD_FAILURE.
9459
3f2a3564
PR
94602017-03-23 Philipp Rudo <prudo@linux.vnet.ibm.com>
9461
9462 python/python.c (do_start_initialization): Fix memory leak.
9463
b67aeab0
SM
94642017-03-22 Simon Marchi <simon.marchi@polymtl.ca>
9465
9466 * inf-ptrace.c (inf_ptrace_xfer_partial): Get pid from ptid
9467 using get_ptrace_pid.
9468 * linux-nat.c (linux_nat_xfer_partial): Don't set/restore
9469 inferior_ptid.
9470 (linux_proc_xfer_partial, linux_proc_xfer_spu): Use lwp of
9471 inferior_ptid instead of pid.
9472
ffdbe864
YQ
94732017-03-22 Yao Qi <yao.qi@linaro.org>
9474
9475 * aarch64-tdep.c: Wrap locally used classes in anonymous
9476 namespace.
9477 * arm-tdep.c: Likewise.
9478 * linespec.c: Likewise.
9479 * ui-out.c: Likewise.
9480
9d736fbf
JG
94812017-03-22 Jonah Graham <jonah@kichwacoders.com>
9482
9483 PR gdb/19637
9484 * python/lib/gdb/printer/bound_registers.py: Import sys.
9485
3de88e9a
SM
94862017-03-21 Simon Marchi <simon.marchi@ericsson.com>
9487
9488 * windows-nat.c (do_windows_fetch_inferior_registers): Add
9489 windows_thread_info parameter and use it instead of
9490 current_thread.
9491 (windows_fetch_inferior_registers): Don't set current_thread,
9492 pass the thread to do_windows_fetch_inferior_registers. Use
9493 ptid from regcache instead of inferior_ptid.
9494 (do_windows_store_inferior_registers): Add windows_thread_info
9495 parameter and use it instead of current_thread.
9496 (windows_store_inferior_registers): Don't set current_thread,
9497 pass the thread to do_windows_store_inferior_registers. Use
9498 ptid from regcache instead of inferior_ptid.
9499
0e7b8f61
SM
95002017-03-21 Simon Marchi <simon.marchi@ericsson.com>
9501
9502 * ser-mingw.c (ser_windows_raw): Remove reference to
9503 struct serial::current_timeout.
9504
5badf10a
IR
95052017-03-21 Ivo Raisr <ivo.raisr@oracle.com>
9506
9507 PR tdep/20928
9508 * gdb/sparc-tdep.h (gdbarch_tdep) <sparc64_ccr_type>: New field.
9509 * gdb/sparc64-tdep.c (sparc64_ccr_type): New function.
9510 (sparc64_fsr_type): Fix %fsr decoding.
9511
cee59b3f
TW
95122017-03-21 Tim Wiederhake <tim.wiederhake@intel.com>
9513
9514 * python/py-record-btrace.c (btpy_insn_data): Change return type
9515 for Python 2.
9516
639a9038
SM
95172017-03-20 Simon Marchi <simon.marchi@polymtl.ca>
9518
9519 * spu-linux-nat.c (spu_fetch_inferior_registers,
9520 spu_store_inferior_registers): Use ptid from regcache, set and
9521 restore inferior_ptid.
9522 * spu-multiarch.c (spu_fetch_registers, spu_store_registers):
9523 Likewise.
9524
bcc0c096
SM
95252017-03-20 Simon Marchi <simon.marchi@polymtl.ca>
9526
9527 * i386-linux-nat.c (fetch_register, store_register,
9528 i386_linux_fetch_inferior_registers,
9529 i386_linux_store_inferior_registers): Use ptid from regcache.
9530 * ia64-linux-nat.c (ia64_linux_fetch_register,
9531 ia64_linux_store_register): Likewise.
9532 * inf-ptrace.c (inf_ptrace_fetch_register,
9533 inf_ptrace_store_register): Likewise.
9534 * m32r-linux-nat.c (m32r_linux_fetch_inferior_registers,
9535 m32r_linux_store_inferior_registers): Likewise.
9536 * m68k-bsd-nat.c (m68kbsd_fetch_inferior_registers,
9537 m68kbsd_store_inferior_registers): Likewise.
9538 * m68k-linux-nat.c (fetch_register, store_register,
9539 m68k_linux_fetch_inferior_registers,
9540 m68k_linux_store_inferior_registers): Likewise.
9541 * m88k-bsd-nat.c (m88kbsd_fetch_inferior_registers,
9542 m88kbsd_store_inferior_registers): Likewise.
9543 * mips-fbsd-nat.c (mips_fbsd_fetch_inferior_registers,
9544 mips_fbsd_store_inferior_registers): Likewise.
9545 * mips-linux-nat.c (mips64_linux_regsets_fetch_registers,
9546 mips64_linux_regsets_store_registers): Likewise.
9547 * mips-nbsd-nat.c (mipsnbsd_fetch_inferior_registers,
9548 mipsnbsd_store_inferior_registers): Likewise.
9549 * mips-obsd-nat.c (mips64obsd_fetch_inferior_registers,
9550 mips64obsd_store_inferior_registers): Likewise.
9551 * nto-procfs.c (procfs_fetch_registers, procfs_store_registers):
9552 Likewise.
9553 * ppc-fbsd-nat.c (ppcfbsd_fetch_inferior_registers,
9554 ppcfbsd_store_inferior_registers): Likewise.
9555 * ppc-linux-nat.c (ppc_linux_fetch_inferior_registers,
9556 ppc_linux_store_inferior_registers): Likewise.
9557 * ppc-nbsd-nat.c (ppcnbsd_fetch_inferior_registers,
9558 ppcnbsd_store_inferior_registers): Likewise.
9559 * ppc-obsd-nat.c (ppcobsd_fetch_registers,
9560 ppcobsd_store_registers): Likewise.
9561 * procfs.c (procfs_fetch_registers, procfs_store_registers):
9562 Likewise.
9563 * ravenscar-thread.c (ravenscar_fetch_registers,
9564 ravenscar_store_registers, ravenscar_prepare_to_store):
9565 Likewise.
9566 * record-btrace.c (record_btrace_fetch_registers,
9567 record_btrace_store_registers, record_btrace_prepare_to_store):
9568 Likewise.
9569 * remote-sim.c (gdbsim_fetch_register, gdbsim_store_register):
9570 Lookup inferior using ptid from regcache, instead of
9571 current_inferior.
9572 * remote.c (remote_fetch_registers, remote_store_registers): Use
9573 ptid from regcache.
9574 * rs6000-nat.c (fetch_register, store_register): Likewise.
9575 * s390-linux-nat.c (s390_linux_fetch_inferior_registers,
9576 s390_linux_store_inferior_registers): Likewise.
9577 * sh-nbsd-nat.c (shnbsd_fetch_inferior_registers,
9578 shnbsd_store_inferior_registers): Likewise.
9579 * sol-thread.c (sol_thread_fetch_registers,
9580 sol_thread_store_registers): Likewise.
9581 * sparc-nat.c (sparc_fetch_inferior_registers,
9582 sparc_store_inferior_registers): Likewise.
9583 * tilegx-linux-nat.c (fetch_inferior_registers,
9584 store_inferior_registers): Likewise.
9585 * vax-bsd-nat.c (vaxbsd_fetch_inferior_registers,
9586 vaxbsd_store_inferior_registers): Likewise.
9587 * xtensa-linux-nat.c (fetch_gregs, store_gregs, fetch_xtregs,
9588 store_xtregs): Likewise.
9589
c0f55cc6
AV
95902017-03-20 Artemiy Volkov <artemiyv@acm.org>
9591
9592 PR gdb/14441
9593 * NEWS: Mention support for rvalue references in GDB and python.
9594 * doc/gdb.texinfo (C Plus Plus Expressions): Mention that GDB
9595 supports both lvalue and rvalue references.
9596
15c0a2a9
AV
95972017-03-20 Artemiy Volkov <artemiyv@acm.org>
9598
9599 PR gdb/14441
9600 * gdbtypes.c (rank_one_type): Implement overloading
9601 resolution rules regarding rvalue references.
9602
aa006118
AV
96032017-03-20 Artemiy Volkov <artemiyv@acm.org>
9604
9605 PR gdb/14441
9606 * aarch64-tdep.c (aarch64_type_align)
9607 (aarch64_extract_return_value, aarch64_store_return_value): Change
9608 lvalue reference type checks to general reference type checks.
9609 * amd64-tdep.c (amd64_classify): Likewise.
9610 * amd64-windows-tdep.c (amd64_windows_passed_by_integer_register):
9611 Likewise.
9612 * arm-tdep.c (arm_type_align, arm_extract_return_value)
9613 (arm_store_return_value): Likewise.
9614 * ax-gdb.c (gen_fetch, gen_cast): Likewise.
9615 * c-typeprint.c (c_print_type): Likewise.
9616 * c-varobj.c (adjust_value_for_child_access, c_value_of_variable)
9617 (cplus_number_of_children, cplus_describe_child): Likewise.
9618 * compile/compile-c-symbols.c (generate_vla_size): Likewise.
9619 * completer.c (expression_completer): Likewise.
9620 * cp-support.c (make_symbol_overload_list_adl_namespace):
9621 Likewise.
9622 * darwin-nat-info.c (info_mach_region_command): Likewise.
9623 * dwarf2loc.c (entry_data_value_coerce_ref)
9624 (value_of_dwarf_reg_entry): Likewise.
9625 * eval.c (ptrmath_type_p, evaluate_subexp_standard)
9626 (evaluate_subexp_for_address, evaluate_subexp_for_sizeof):
9627 Likewise.
9628 * findvar.c (extract_typed_address, store_typed_address):
9629 Likewise.
9630 * gdbtypes.c (rank_one_type): Likewise.
9631 * hppa-tdep.c (hppa64_integral_or_pointer_p): Likewise.
9632 * infcall.c (value_arg_coerce): Likewise.
9633 * language.c (pointer_type): Likewise.
9634 * m32c-tdep.c (m32c_reg_arg_type, m32c_m16c_address_to_pointer):
9635 Likewise.
9636 * m88k-tdep.c (m88k_integral_or_pointer_p): Likewise.
9637 * mn10300-tdep.c (mn10300_type_align): Likewise.
9638 * msp430-tdep.c (msp430_push_dummy_call): Likewise.
9639 * ppc-sysv-tdep.c (do_ppc_sysv_return_value)
9640 (ppc64_sysv_abi_push_param, ppc64_sysv_abi_return_value):
9641 Likewise.
9642 * printcmd.c (print_formatted, x_command): Likewise.
9643 * python/py-type.c (typy_get_composite, typy_template_argument):
9644 Likewise.
9645 * python/py-value.c (valpy_referenced_value)
9646 (valpy_get_dynamic_type, value_has_field): Likewise.
9647 * s390-linux-tdep.c (s390_function_arg_integer): Likewise.
9648 * sparc-tdep.c (sparc_integral_or_pointer_p): Likewise.
9649 * sparc64-tdep.c (sparc64_integral_or_pointer_p): Likewise.
9650 * spu-tdep.c (spu_scalar_value_p): Likewise.
9651 * symtab.c (lookup_symbol_aux): Likewise.
9652 * typeprint.c (whatis_exp, print_type_scalar): Likewise.
9653 * valarith.c (binop_types_user_defined_p, unop_user_defined_p):
9654 Likewise.
9655 * valops.c (value_cast_pointers, value_cast)
9656 (value_reinterpret_cast, value_dynamic_cast, value_addr, typecmp)
9657 (value_struct_elt, value_struct_elt_bitpos)
9658 (value_find_oload_method_list, find_overload_match)
9659 (value_rtti_indirect_type): Likewise.
9660 * valprint.c (val_print_scalar_type_p, generic_val_print):
9661 Likewise.
9662 * value.c (value_actual_type, value_as_address, unpack_long)
9663 (pack_long, pack_unsigned_long, coerce_ref_if_computed)
9664 (coerce_ref): Likewise.
9665 * varobj.c (varobj_get_value_type): Likewise.
9666
3fcf899d
AV
96672017-03-20 Artemiy Volkov <artemiyv@acm.org>
9668
9669 PR gdb/14441
9670 * doc/python.texi (Types in Python): Add TYPE_CODE_RVALUE_REF to
9671 table of constants.
9672 * python/lib/gdb/command/explore.py: Support exploring values
9673 of rvalue reference types.
9674 * python/lib/gdb/types.py: Implement get_basic_type() for
9675 rvalue reference types.
9676 * python/py-type.c (pyty_codes) <TYPE_CODE_RVALUE_REF>: New
9677 constant.
9678 * python/py-value.c (valpy_getitem): Add an rvalue reference
9679 check.
9680 (valpy_reference_value): Add new parameter "refcode".
9681 (valpy_lvalue_reference_value, valpy_rvalue_reference_value):
9682 New wrappers for valpy_reference_value().
9683 * python/py-xmethods.c (gdbpy_get_xmethod_result_type)
9684 (gdbpy_invoke_xmethod): Likewise.
9685
4297a3f0
AV
96862017-03-20 Artemiy Volkov <artemiyv@acm.org>
9687
9688 PR gdb/14441
9689 * dwarf2read.c (process_die, read_type_die_1): Handle the
9690 DW_TAG_rvalue_reference_type DIE.
9691 (read_tag_reference_type): Add new parameter "refcode".
9692
e1cb3213
AV
96932017-03-20 Artemiy Volkov <artemiyv@acm.org>
9694
9695 PR gdb/14441
9696 * c-typeprint.c (c_print_type, c_type_print_varspec_prefix)
9697 (c_type_print_modifier, c_type_print_varspec_suffix)
9698 (c_type_print_base): Support printing rvalue reference types.
9699 * c-valprint.c (c_val_print, c_value_print): Support printing
9700 rvalue reference values.
9701
e4347c89
AV
97022017-03-20 Artemiy Volkov <artemiyv@acm.org>
9703
9704 PR gdb/14441
9705 * cp-name-parser.y (ptr_operator): Handle the '&&' token in
9706 typename.
9707 * cp-support.c (replace_typedefs): Handle
9708 DEMANGLE_COMPONENT_RVALUE_REFERENCE.
9709 * python/py-type.c (typy_lookup_type): Likewise.
9710
53cc15f5
AV
97112017-03-20 Artemiy Volkov <artemiyv@acm.org>
9712
9713 PR gdb/14441
9714 * c-exp.y (ptr_operator): Handle the '&&' token in the typename.
9715 * parse.c (insert_type): Change assert statement.
9716 (follow_types): Handle rvalue reference types.
9717 * parser-defs.h (enum type_pieces) <tp_rvalue_reference>: New
9718 constant.
9719
a65cfae5
AV
97202017-03-20 Artemiy Volkov <artemiyv@acm.org>
9721
9722 PR gdb/14441
9723 * ada-lang.c (ada_evaluate_subexp): Adhere to the new
9724 value_ref() interface.
9725 * c-valprint.c (c_value_print): Likewise.
9726 * infcall.c (value_arg_coerce): Likewise.
9727 * python/py-value.c (valpy_reference_value): Likewise.
9728 * valops.c (value_cast, value_reinterpret_cast)
9729 (value_dynamic_cast, typecmp): Likewise.
9730 (value_ref): Parameterize by kind of return value reference type.
9731 * value.h (value_ref): Add new parameter "refcode".
9732
3b224330
AV
97332017-03-20 Artemiy Volkov <artemiyv@acm.org>
9734
9735 PR gdb/14441
9736 * dwarf2read.c (read_tag_reference_type): Use
9737 lookup_lvalue_reference_type() instead of lookup_reference_type().
9738 * eval.c (evaluate_subexp_standard): Likewise.
9739 * f-exp.y: Likewise.
9740 * gdbtypes.c (make_reference_type, lookup_reference_type):
9741 Generalize with rvalue reference types.
9742 (lookup_lvalue_reference_type, lookup_rvalue_reference_type): New
9743 convenience wrappers for lookup_reference_type().
9744 * gdbtypes.h (make_reference_type, lookup_reference_type): Add a
9745 reference kind parameter.
9746 (lookup_lvalue_reference_type, lookup_rvalue_reference_type): Add
9747 wrappers for lookup_reference_type().
9748 * guile/scm-type.c (gdbscm_type_reference): Use
9749 lookup_lvalue_reference_type() instead of lookup_reference_type().
9750 * guile/scm-value.c (gdbscm_value_dynamic_type): Likewise.
9751 * parse.c (follow_types): Likewise.
9752 * python/py-type.c (typy_reference, typy_lookup_type): Likewise.
9753 * python/py-value.c (valpy_get_dynamic_type, valpy_getitem):
9754 Likewise.
9755 * python/py-xmethods.c (gdbpy_get_xmethod_result_type)
9756 (gdbpy_invoke_xmethod): Likewise.
9757 * stabsread.c: Provide extra argument to make_reference_type()
9758 call.
9759 * valops.c (value_ref, value_rtti_indirect_type): Use
9760 lookup_lvalue_reference_type() instead of lookup_reference_type().
9761
f9aeb8d4
AV
97622017-03-20 Artemiy Volkov <artemiyv@acm.org>
9763
9764 PR gdb/14441
9765 * gdbtypes.h (enum type_code) <TYPE_CODE_RVALUE_REF>: New constant.
9766 (TYPE_IS_REFERENCE): New macro.
9767 (struct type): Add rvalue_reference_type field.
9768 (TYPE_RVALUE_REFERENCE_TYPE): New macro.
9769
51457a05
MAL
97702017-03-20 Marc-Andre Laperle <marc-andre.laperle@ericsson.com>
9771
9772 * NEWS: Add an entry about new '-file-list-shared-libraries' command.
9773 * mi/mi-cmd-file.c (mi_cmd_file_list_shared_libraries):
9774 New function definition.
9775 * mi/mi-cmds.c (mi_cmds): Add -file-list-shared-libraries command.
9776 * mi/mi-cmds.h (mi_cmd_file_list_shared_libraries):
9777 New function declaration.
9778 * mi/mi-interp.c (mi_output_solib_attribs): New Function.
9779 * mi/mi-interp.h: New file.
9780 * solib.c (info_sharedlibrary_command): Replace for loop with
9781 ALL_SO_LIBS macro
9782 * solib.h (update_solib_list): New function declaration.
9783 (so_list_head): Move macro.
9784 * solist.h (ALL_SO_LIBS): New macro.
9785
e696b3ad
MAL
97862017-03-20 Marc-Andre Laperle <marc-andre.laperle@ericsson.com>
9787
9788 * infcmd.c (post_create_inferior): Remove unused argument in
9789 call to solib_add.
9790 * remote.c (remote_start_remote): Likewise.
9791 * solib-frv.c (frv_fetch_objfile_link_map): Likewise.
9792 * solib-svr4.c: (svr4_fetch_objfile_link_map): Likewise.
9793 (enable_break): Likewise.
9794 * solib.c (update_solib_list): Remove unused target argument
9795 and its documentation.
9796 (solib_add): Remove unused target argument. Remove unused
9797 argument in call to update_solib_list.
9798 (info_sharedlibrary_command): Remove unused argument in call
9799 to update_solib_list.
9800 (sharedlibrary_command): Remove unused argument in call to
9801 solib_add.
9802 (handle_solib_event): Likewise.
9803 (reload_shared_libraries): Likewise.
9804 * solib.h (solib_add): Remove unused target argument.
9805
dcb84eda
AA
98062017-03-20 Andreas Arnez <arnez@linux.vnet.ibm.com>
9807
9808 * s390-linux-tdep.c (is_rsi, is_rie): Remove functions.
9809 (s390_displaced_step_fixup): Cover relative branches with the
9810 default fixup handling. This fixes lack of support for some
9811 relative branch instructions.
9812
d9cb6cdc
SM
98132017-03-17 Simon Marchi <simon.marchi@polymtl.ca>
9814
9815 * i386-gnu-nat.c (gnu_fetch_registers, gnu_store_registers): Use
9816 ptid from regcache.
9817
1afaf9f4
SM
98182017-03-17 Simon Marchi <simon.marchi@polymtl.ca>
9819
9820 * i386-darwin-nat.c (i386_darwin_fetch_inferior_registers,
9821 i386_darwin_store_inferior_registers): Use ptid from regcache.
9822
aac12e24
SM
98232017-03-17 Simon Marchi <simon.marchi@polymtl.ca>
9824
9825 * i386-bsd-nat.c (i386bsd_fetch_inferior_registers,
9826 i386bsd_store_inferior_registers): Use ptid from regcache.
9827
bbe1eef1
SM
98282017-03-17 Simon Marchi <simon.marchi@polymtl.ca>
9829
9830 * hppa-obsd-nat.c (hppaobsd_fetch_registers,
9831 hppaobsd_store_registers): Use ptid from regcache.
9832
10799020
SM
98332017-03-17 Simon Marchi <simon.marchi@polymtl.ca>
9834
9835 * hppa-nbsd-nat.c (hppanbsd_fetch_registers,
9836 hppanbsd_store_registers): Use ptid from regcache.
9837
00204cf7
SM
98382017-03-17 Simon Marchi <simon.marchi@polymtl.ca>
9839
9840 * hppa-linux-nat.c (fetch_register, store_register): Use ptid
9841 from regcache. Use get_ptrace_pid.
9842
11a33714
SM
98432017-03-17 Simon Marchi <simon.marchi@polymtl.ca>
9844
9845 * corelow.c (get_core_register_section): Use ptid from regcache,
9846 update doc.
9847
317cd492
SM
98482017-03-17 Simon Marchi <simon.marchi@polymtl.ca>
9849
9850 * bsd-uthread.c (bsd_uthread_fetch_registers,
9851 bsd_uthread_store_registers): Use ptid from regcache, set and
9852 restore inferior_ptid.
9853
9ac8a7c2
SM
98542017-03-17 Simon Marchi <simon.marchi@polymtl.ca>
9855
9856 * arm-nbsd-nat.c (fetch_register, fetch_regs, fetch_fp_register,
9857 fetch_fp_regs, store_register, store_regs, store_fp_register,
9858 store_fp_regs): Use ptid from regcache.
9859
4ac4bb6a
SM
98602017-03-17 Simon Marchi <simon.marchi@polymtl.ca>
9861
9862 * arm-linux-nat.c (fetch_fpregs, store_fpregs, fetch_regs,
9863 store_regs, fetch_wmmx_regs, store_wmmx_regs, fetch_vfp_regs,
9864 store_vfp_regs): Use ptid from regcache.
9865
9bcbdca8
PA
98662017-03-17 Pedro Alves <palves@redhat.com>
9867
9868 PR remote/21188
9869 * ser-base.c (ser_base_wait_for): Add comment.
9870 (do_ser_base_readchar): Improve comment based on the ser-unix.c's
9871 version.
9872 * ser-unix.c (hardwire_raw): Remove reference to
9873 scb->current_timeout.
9874 (wait_for, do_hardwire_readchar, hardwire_readchar): Delete.
9875 (hardwire_ops): Install ser_base_readchar instead of
9876 hardwire_readchar.
9877 * serial.h (struct serial) <current_timeout, timeout_remaining>:
9878 Remove fields.
9879
7503099f
JG
98802017-03-17 Jonah Graham <jonah@kichwacoders.com>
9881
9882 PR gdb/19637
9883 * python/lib/gdb/printer/bound_registers.py: Add support for
9884 Python 3.
9885
7942e96e
AA
98862017-03-16 Andreas Arnez <arnez@linux.vnet.ibm.com>
9887
9888 * dwarf2loc.c (indirect_synthetic_pointer): Get data type of
9889 pointed-to DIE and pass it to dwarf2_evaluate_loc_desc_full.
9890 (dwarf2_evaluate_loc_desc_full): New parameter subobj_type; rename
9891 byte_offset to subobj_byte_offset. Fix the handling of
9892 DWARF_VALUE_STACK on big-endian targets when coming via an
9893 implicit pointer.
9894 (dwarf2_evaluate_loc_desc): Adjust call to
9895 dwarf2_evaluate_loc_desc_full.
9896 * dwarf2loc.h (dwarf2_fetch_die_type_sect_off): New declaration.
9897 * dwarf2read.c (dwarf2_fetch_die_type_sect_off): New function.
9898
ba14f379
YQ
98992017-03-16 Yao Qi <yao.qi@linaro.org>
9900
9901 * arm-tdep.c (thumb_record_misc): Decode CBNZ, CBZ, REV16,
9902 and REVSH instructions.
9903
b121eeb9
YQ
99042017-03-16 Yao Qi <yao.qi@linaro.org>
9905
9906 * arm-tdep.c [GDB_SELF_TEST]: include "selftests.h".
9907 (arm_record_test): Declare.
9908 (_initialize_arm_tdep) [GDB_SELF_TEST]: call register_self_test.
9909 (thumb_record_ld_st_reg_offset): Rewrite the opcode matching to
9910 align with the manual.
9911 (thumb_record_misc): Adjust the code order to align with the
9912 manual.
9913 (thumb2_record_decode_insn_handler): Fix instruction matching.
9914 (instruction_reader_thumb): New class.
9915 (arm_record_test): New function.
9916
728a7913
YQ
99172017-03-16 Yao Qi <yao.qi@linaro.org>
9918
9919 * arm-tdep.c (abstract_memory_reader): New class.
9920 (instruction_reader): New class.
9921 (extract_arm_insn): Add argument 'reader'. Callers updated.
9922 (decode_insn): Likewise.
9923
34b43320
DE
99242017-03-16 Doug Evans <dje@google.com>
9925
a7c0469f
DE
9926 * guile/scm-lazy-string.c (lazy_string_smob): Clarify use of LENGTH
9927 member. Change type of TYPE member to SCM. All uses updated.
9928 (lsscm_make_lazy_string_smob): Add assert.
9929 (lsscm_make_lazy_string): Flag bad length values.
9930 (lsscm_elt_type): New function.
9931 (gdbscm_lazy_string_to_value): Rewrite to use
9932 lsscm_safe_lazy_string_to_value.
9933 (lsscm_safe_lazy_string_to_value): Fix handling of TYPE_CODE_PTR.
9934 * guile/scm-value.c (gdbscm_value_to_lazy_string): Flag bad length
9935 values. Fix TYPE_CODE_PTR. Handle TYPE_CODE_ARRAY. Handle typedefs
9936 in incoming type.
9937 * guile/guile-internal.h (tyscm_scm_to_type): Declare.
9938 * guile/scm-type.c (tyscm_scm_to_type): New function.
9939
99402017-03-15 Doug Evans <dje@google.com>
9941
34b43320
DE
9942 PR python/17728, python/18439, python/18779
9943 * python/py-lazy-string.c (lazy_string_object): Clarify use of LENGTH
9944 member. Change type of TYPE member to PyObject *. All uses updated.
9945 (stpy_convert_to_value): Fix handling of TYPE_CODE_PTR.
9946 (gdbpy_create_lazy_string_object): Flag bad length values.
9947 Handle TYPE_CODE_ARRAY with possibly different user-provided length.
9948 Handle typedefs in incoming type.
9949 (stpy_lazy_string_elt_type): New function.
9950 (gdbpy_extract_lazy_string): Call it.
9951 * python/py-value.c (valpy_lazy_string): Flag bad length values.
9952 Fix handling of TYPE_CODE_PTR. Handle TYPE_CODE_ARRAY. Handle
9953 typedefs in incoming type.
9954
a3a5fecc
DE
99552017-03-16 Doug Evans <dje@google.com>
9956
9957 * guile/guile-internal.h (tyscm_scm_to_type): Declare.
9958 * guile/scm-type.c (tyscm_scm_to_type): New function.
9959
28f1c605
JW
99602017-03-16 Jiong Wang <jiong.wang@arm.com>
9961
9962 * inf-ptrace.c (inf_ptrace_peek_poke): Change the type to
9963 "ULONGEST" for "skip".
9964
87c336f6
AA
99652017-03-14 Andreas Arnez <arnez@linux.vnet.ibm.com>
9966
9967 PR gdb/21220
9968 * inf-ptrace.c (inf_ptrace_xfer_partial): In "case
9969 TARGET_OBJECT_MEMORY", extract the logic for ptrace peek/poke...
9970 (inf_ptrace_peek_poke): ...here. New function. Now also loop
9971 over ptrace peek/poke until end of buffer or error.
9972
cf81cf60
SM
99732017-03-14 Simon Marchi <simon.marchi@ericsson.com>
9974
9975 * parse.c (length_of_subexp): Make static.
9976 * parser-defs.h (length_of_subexp): Remove.
9977
a379284a
AA
99782017-03-14 Andreas Arnez <arnez@linux.vnet.ibm.com>
9979
9980 * linux-nat.c (linux_proc_xfer_partial): Handle write operations
9981 as well.
9982
8a6200ba
PA
99832017-03-14 Pedro Alves <palves@redhat.com>
9984
9985 * cp-name-parser.y (cp_demangled_name_to_comp): Update comment.
9986 (main): Use std::unique_ptr. Remove calls to
9987 cp_demangled_name_parse_free.
9988
f79ec206
SM
99892017-03-13 Simon Marchi <simon.marchi@polymtl.ca>
9990
9991 * alpha-bsd-nat.c (alphabsd_fetch_inferior_registers,
9992 alphabsd_store_inferior_registers): Use regcache->ptid instead
9993 of inferior_ptid.
9994
edb5fb00
SM
99952017-03-13 Simon Marchi <simon.marchi@polymtl.ca>
9996
9997 * aix-thread.c (aix_thread_fetch_registers,
9998 aix_thread_store_registers): Use regcache->ptid instead of
9999 inferior_ptid.
10000
55119686
SM
100012017-03-13 Simon Marchi <simon.marchi@polymtl.ca>
10002
10003 * aarch64-linux-nat.c (fetch_gregs_from_thread,
10004 store_gregs_to_thread, fetch_fpregs_from_thread,
10005 store_fpregs_to_thread): Use regcache->ptid instead of
10006 inferior_ptid.
10007
6a06fbb7
SM
100082017-03-13 Simon Marchi <simon.marchi@polymtl.ca>
10009
10010 * amd64-linux-nat.c (amd64_linux_fetch_inferior_registers,
10011 amd64_linux_fetch_inferior_registers): Use regcache->ptid
10012 instead of inferior_ptid.
10013
c6386875
SM
100142017-03-13 Simon Marchi <simon.marchi@polymtl.ca>
10015
10016 * target.c (target_fetch_registers, target_store_registers): Add
10017 assert.
10018
ddaaf0fb
SM
100192017-03-13 Simon Marchi <simon.marchi@polymtl.ca>
10020
10021 * regcache.h (regcache_get_ptid): New function.
10022 * regcache.c (regcache_get_ptid): New function.
10023
b9da89d1 100242017-03-13 Mark Wielaard <mark@klomp.org>
10025
10026 * cp-name-parser.y (make_empty): Initialize d_printing to zero.
10027
5f4d1085
KS
100282017-03-10 Keith Seitz <keiths@redhat.com>
10029
10030 PR c++/8218
10031 * c-typeprint.c (cp_type_print_method_args): Skip artificial arguments.
10032
c65d6b55
PA
100332017-03-08 Pedro Alves <palves@redhat.com>
10034
10035 PR gdb/18360
10036 * infrun.c (start_step_over, do_target_resume, resume)
10037 (restart_threads): Assert we're not resuming a thread that is
10038 meant to be stopped.
10039 (infrun_thread_stop_requested_callback): Delete.
10040 (infrun_thread_stop_requested): If the thread is internally
10041 stopped, queue a pending stop event and clear the thread's
10042 inline-frame state.
10043 (handle_stop_requested): New function.
10044 (handle_syscall_event, handle_inferior_event_1): Use
10045 handle_stop_requested.
10046 (handle_stop_requested): New function.
10047 (handle_signal_stop): Set the thread's stop_signal here instead of
10048 at caller.
10049 (finish_step_over): Clear step over info unconditionally.
10050 (handle_signal_stop): If the user had interrupted the event
10051 thread, consider the stop a random signal.
10052 (handle_signal_stop) <signal arrived while stepping over
10053 breakpoint>: Don't restart threads here.
10054 (stop_waiting): Don't clear step-over info here.
10055
15c22686
PA
100562017-03-08 Pedro Alves <palves@redhat.com>
10057
10058 PR 21206
10059 * common/gdb_unlinker.h (unlinker::unlinker): Attribute nonnull
10060 goes to argument 2, not 1.
10061
6e5d74e7
PA
100622017-03-08 Pedro Alves <palves@redhat.com>
10063
10064 PR cli/21218
10065 * top.c (gdb_readline_wrapper): Avoid passing NULL to
10066 display_gdb_prompt.
10067 (command_line_input): Add comment.
10068
9753a2f6
PA
100692017-03-08 Pedro Alves <palves@redhat.com>
10070
10071 PR tui/21216
10072 * tui/tui-file.c (tui_file::write): New.
10073 * tui/tui-file.h (tui_file): Override "write".
10074 * tui/tui-io.c (do_tui_putc, update_start_line): New functions,
10075 factored out from ...
10076 (tui_puts): ... here.
10077 (tui_putc): Use them.
10078 (tui_write): New function.
10079 * tui/tui-io.h (tui_write): Declare.
10080
1672e0d9
SDJ
100812017-03-07 Sergio Durigan Junior <sergiodj@redhat.com>
10082
10083 * Makefile.in (SFILES): Replace "environ.c" with
10084 "common/environ.c".
10085 (HFILES_NO_SRCDIR): Likewise, for "environ.h".
10086 * environ.c: Include "common-defs.h" instead of "defs.h. Moved
10087 to...
10088 * common/environ.c: ... here.
10089 * environ.h: Moved to...
10090 * common/environ.h: ... here.
10091
f7bb4e3a
PB
100922017-03-07 Peter Bergner <bergner@vnet.ibm.com>
10093
10094 * gdbarch.sh (pstring_ptr): New static function.
10095 (gdbarch_disassembler_options): Use it.
10096 (gdbarch_verify_disassembler_options): Print valid_disassembler_options,
10097 not valid_disassembler_option->name.
10098 * gdbarch.c: Regenerate.
10099
e45ced6c
PB
101002017-03-07 Peter Bergner <bergner@vnet.ibm.com>
10101
10102 * config/powerpc/ppc64-linux.mh (MH_CFLAGS): Delete.
10103
5f6fd321
PA
101042017-03-07 Pedro Alves <palves@redhat.com>
10105
10106 * tui/tui-regs.c (tui_restore_gdbout): Don't delete gdb_stdout.
10107
6dbb839a 101082017-03-07 Walfred Tedeschi <walfred.tedeschi@intel.com>
4a612d6f
WT
10109
10110 * i387-tdep.h (i387_reset_bnd_regs): Add function definition.
10111 * i387-tdep.c (i387_reset_bnd_regs): Add function implementation.
10112 * i386-tdep.c (i386_push_dummy_call): Call i387_reset_bnd_regs.
6dbb839a 10113 * amd64-tdep.c (amd64_push_dummy_call): Call i387_reset_bnd_regs.
4a612d6f 10114
d274ecf4
SM
101152017-03-06 Simon Marchi <simon.marchi@ericsson.com>
10116
10117 * xtensa-linux-nat.c (fetch_gregs): Remove const.
10118
df97be55
SM
101192017-03-03 Simon Marchi <simon.marchi@ericsson.com>
10120
10121 * remote.c (remote_add_target_side_commands): Use range-based
10122 for loop.
10123
7d45f3df
YQ
101242017-03-03 Yao Qi <yao.qi@linaro.org>
10125
10126 PR gdb/21165
10127 * ada-valprint.c (ada_val_print_ref): Call value_fetch_lazy if
10128 value is lazy.
10129 * valprint.c (common_val_print): Likewise.
10130
65b48a81
PB
101312017-02-28 Peter Bergner <bergner@vnet.ibm.com>
10132
10133 * NEWS: Mention new set/show disassembler-options commands.
10134 * doc/gdb.texinfo: Document new set/show disassembler-options commands.
10135 * disasm.c: Include "arch-utils.h", "gdbcmd.h" and "safe-ctype.h".
10136 (prospective_options): New static variable.
10137 (gdb_disassembler::gdb_disassembler): Initialize
10138 m_di.disassembler_options.
10139 (gdb_buffered_insn_length_init_dis): Initilize di->disassembler_options.
10140 (get_disassembler_options): New function.
10141 (set_disassembler_options): Likewise.
10142 (set_disassembler_options_sfunc): Likewise.
10143 (show_disassembler_options_sfunc): Likewise.
10144 (disassembler_options_completer): Likewise.
10145 (_initialize_disasm): Likewise.
10146 * disasm.h (get_disassembler_options): New prototype.
10147 (set_disassembler_options): Likewise.
10148 * gdbarch.sh (gdbarch_disassembler_options): New variable.
10149 (gdbarch_verify_disassembler_options): Likewise.
10150 * gdbarch.c: Regenerate.
10151 * gdbarch.h: Likewise.
10152 * arm-tdep.c (num_disassembly_options): Delete.
10153 (set_disassembly_style): Likewise.
10154 (arm_disassembler_options): New static variable.
10155 (set_disassembly_style_sfunc): Convert short style name into long
10156 option name. Call set_disassembler_options.
10157 (show_disassembly_style_sfunc): New function.
10158 (arm_gdbarch_init): Call set_gdbarch_disassembler_options and
10159 set_gdbarch_verify_disassembler_options.
10160 (_initialize_arm_tdep): Delete regnames variable and update callers.
10161 (arm_disassembler_options): Initialize.
10162 (disasm_options): New variable.
10163 (num_disassembly_options): Rename from this...
10164 (num_disassembly_styles): ...to this. Compute by scanning through
10165 disasm_options.
10166 (valid_disassembly_styles): Initialize using disasm_options.
10167 Remove calls to parse_arm_disassembler_option, get_arm_regnames and
10168 set_arm_regname_option.
10169 Pass show_disassembly_style_sfunc to the "disassembler" setshow command.
10170 * rs6000-tdep.c (powerpc_disassembler_options): New static variable.
10171 (rs6000_gdbarch_init): Call set_gdbarch_disassembler_options and
10172 set_gdbarch_verify_disassembler_options.
10173 * s390-tdep.c (s390_disassembler_options): New static variable.
10174 (s390_gdbarch_init):all set_gdbarch_disassembler_options and
10175 set_gdbarch_verify_disassembler_options.
10176
d538e36d
SM
101772017-02-27 Simon Marchi <simon.marchi@ericsson.com>
10178
10179 * remote.c (remote_add_target_side_condition): Remove "struct"
10180 keyword from range-based for loop.
10181
83621223
SM
101822017-02-27 Simon Marchi <simon.marchi@ericsson.com>
10183
10184 * remote.c (remote_add_target_side_condition): Use range-based
10185 for loop. Update comment.
10186
2123df0e
YQ
101872017-02-27 Yao Qi <yao.qi@linaro.org>
10188
10189 * f-typeprint.c (f_print_type): Check "varstring" is empty first.
10190
8e368124
AH
101912017-02-26 Alan Hayward <alan.hayward@arm.com>
10192
10193 * regcache.c (regcache_raw_update): New function.
10194 (regcache_raw_read): Move code to regcache_raw_update.
10195 * regcache.h (regcache_raw_update): New declaration.
10196 * remote.c (remote_prepare_to_store): Call regcache_raw_update.
10197
a49dd8dd
JK
101982017-02-26 Jan Kratochvil <jan.kratochvil@redhat.com>
10199
10200 * dwarf2read.c (create_debug_type_hash_table): Initialize
10201 header.signature and header.type_offset_in_tu.
10202
34e4bae9
PA
102032017-02-24 Pedro Alves <palves@redhat.com>
10204
10205 * symtab.c (make_file_symbol_completion_list_1): Use
10206 add_symtab_completions.
10207
b0e4b369
AH
102082017-02-24 Alan Hayward <alan.hayward@arm.com>
10209
10210 * stack.c (frame_info): Use frame_unwind_register_value to avoid buf.
10211
975c21ab
AH
102122017-02-24 Alan Hayward <alan.hayward@arm.com>
10213
10214 * i386-tdep.c (i386_pseudo_register_read_into_value): Use
10215 I386_MAX_REGISTER_SIZE.
10216 (i386_pseudo_register_write): Likewise.
10217 (i386_process_record): Likewise.
10218 * i387-tdep.c (i387_supply_xsave): Likewise.
10219 * m68k-linux-nat.c (fetch_register): Use M68K_MAX_REGISTER_SIZE.
10220 (store_register): Likewise.
10221
14bc53a8
PA
102222017-02-23 Pedro Alves <palves@redhat.com>
10223
10224 * ada-lang.c: Include "common/function-view.h".
10225 (ada_iterate_over_symbols): Adjust to use function_view as
10226 callback type.
10227 (struct add_partial_datum, ada_complete_symbol_matcher): Delete.
10228 (ada_make_symbol_completion_list): Use a lambda.
10229 (ada_exc_search_name_matches): Delete.
10230 (name_matches_regex): New.
10231 (ada_add_global_exceptions): Use a lambda and name_matches_regex.
10232 * compile/compile-c-support.c: Include "common/function-view.h".
10233 (print_one_macro): Change prototype to accept a ui_file pointer.
10234 (write_macro_definitions): Use a lambda.
10235 * dwarf2read.c: Include "common/function-view.h".
10236 (dw2_map_expand_apply, dw2_map_symtabs_matching_filename)
10237 (dw2_expand_symtabs_matching): Adjust to use function_view as
10238 callback type.
10239 * language.h: Include "common/function-view.h".
10240 (struct language_defn) <la_iterate_over_symbols>: Adjust to use
10241 function_view as callback type.
10242 (LA_ITERATE_OVER_SYMBOLS): Remove DATA parameter.
10243 * linespec.c: Include "common/function-view.h".
10244 (collect_info::add_symbol): New method.
10245 (struct symbol_and_data_callback, iterate_inline_only, struct
10246 symbol_matcher_data, iterate_name_matcher): Delete.
10247 (iterate_over_all_matching_symtabs): Adjust to use function_view
10248 as callback type and lambdas.
10249 (iterate_over_file_blocks): Adjust to use function_view as
10250 callback type.
10251 (decode_compound_collector): Now a class with private fields.
10252 (decode_compound_collector::release_symbols): New method.
10253 (collect_one_symbol): Rename to...
10254 (decode_compound_collector::operator()): ... this and adjust.
10255 (lookup_prefix_sym): decode_compound_collector construction bits
10256 move to decode_compound_collector ctor. Pass the
10257 decode_compound_collector object directly as callback. Remove
10258 cleanups and use decode_compound_collector::release_symbols
10259 instead.
10260 (symtab_collector): Now a class with private fields.
10261 (symtab_collector::release_symtabs): New method.
10262 (add_symtabs_to_list): Rename to...
10263 (symtab_collector::operator()): ... this and adjust.
10264 (collect_symtabs_from_filename): symtab_collector construction
10265 bits move to symtab_collector ctor. Pass the symtab_collector
10266 object directly as callback. Remove cleanups and use
10267 symtab_collector::release_symtabs instead.
10268 (collect_symbols): Delete.
10269 (add_matching_symbols_to_info): Use lambdas.
10270 * macrocmd.c (print_macro_callback): Delete.
10271 (info_macro_command): Use a lambda.
10272 (info_macros_command): Pass print_macro_definition as callable
10273 directly.
10274 (print_one_macro): Remove 'ignore' parameter.
10275 (macro_list_command): Adjust.
10276 * macrotab.c (macro_for_each_data::fn): Now a function_view.
10277 (macro_for_each_data::user_data): Delete field.
10278 (foreach_macro): Adjust to call the function_view.
10279 (macro_for_each): Adjust to use function_view as callback type.
10280 (foreach_macro_in_scope): Adjust to call the function_view.
10281 (macro_for_each_in_scope): Adjust to use function_view as callback
10282 type.
10283 * macrotab.h: Include "common/function-view.h".
10284 (macro_callback_fn): Declare a prototype instead of a pointer.
10285 Remove "user_data" parameter.
10286 (macro_for_each, macro_for_each_in_scope): Adjust to use
10287 function_view as callback type.
10288 * psymtab.c (partial_map_expand_apply)
10289 (psym_map_symtabs_matching_filename, recursively_search_psymtabs):
10290 Adjust to use function_view as callback type and to return bool.
10291 (psym_expand_symtabs_matching): Adjust to use function_view as
10292 callback types.
10293 * symfile-debug.c (debug_qf_map_symtabs_matching_filename): Adjust
10294 to use function_view as callback type and to return bool.
10295 (debug_qf_expand_symtabs_matching): Adjust to use function_view as
10296 callback types.
10297 * symfile.c (expand_symtabs_matching): Adjust to use function_view
10298 as callback types.
10299 * symfile.h: Include "common/function-view.h".
10300 (expand_symtabs_file_matcher_ftype)
10301 (expand_symtabs_symbol_matcher_ftype)
10302 (expand_symtabs_exp_notify_ftype): Remove "data" parameter and
10303 return bool.
10304 (quick_symbol_functions::map_symtabs_matching_filename)
10305 (quick_symbol_functions::expand_symtabs_matching): Adjust to use
10306 function_view as callback type and return bool.
10307 (expand_symtabs_matching): Adjust to use function_view as callback
10308 type.
10309 (maintenance_expand_name_matcher)
10310 (maintenance_expand_file_matcher): Delete.
10311 (maintenance_expand_symtabs): Use lambdas.
10312 * symtab.c (iterate_over_some_symtabs): Adjust to use
10313 function_view as callback types and return bool.
10314 (iterate_over_symtabs): Likewise. Use unique_xmalloc_ptr instead
10315 of a cleanup.
10316 (lookup_symtab_callback): Delete.
10317 (lookup_symtab): Use a lambda.
10318 (iterate_over_symbols): Adjust to use function_view as callback
10319 type.
10320 (struct search_symbols_data, search_symbols_file_matches)
10321 (search_symbols_name_matches): Delete.
10322 (search_symbols): Use a pair of lambdas.
10323 (struct add_name_data, add_macro_name, symbol_completion_matcher)
10324 (symtab_expansion_callback): Delete.
10325 (default_make_symbol_completion_list_break_on_1): Use lambdas.
10326 * symtab.h: Include "common/function-view.h".
10327 (iterate_over_some_symtabs): Adjust to use function_view as
10328 callback type and return bool.
10329 (iterate_over_symtabs): Adjust to use function_view as callback
10330 type.
10331 (symbol_found_callback_ftype): Remove 'data' parameter and return
10332 bool.
10333 (iterate_over_symbols): Adjust to use function_view as callback
10334 type.
10335
07e253aa
PA
103362017-02-23 Pedro Alves <palves@redhat.com>
10337
10338 * Makefile.in (SUBDIR_UNITTESTS_SRCS, SUBDIR_UNITTESTS_OBS): New.
10339 (%.o) <unittests/%.c>: New pattern.
10340 * configure.ac ($development): Add $(SUBDIR_UNITTESTS_OBS) to
10341 CONFIG_OBS, and $(SUBDIR_UNITTESTS_SRCS) to CONFIG_SRCS.
10342 * common/function-view.h: New file.
10343 * unittests/function-view-selftests.c: New file.
10344 * configure: Regenerate.
10345
8eaf5320
SM
103462017-02-23 Simon Marchi <simon.marchi@ericsson.com>
10347
10348 * bsd-uthread.c (bsd_uthread_thread_alive): Use ptid instead of
10349 inferior_ptid.
10350 * go32-nat.c (go32_thread_alive): Likewise.
10351
38768751
YQ
103522017-02-23 Yao Qi <yao.qi@linaro.org>
10353
10354 * varobj-iter.h (varobj_iter_delete): Call xfree instead of
10355 delete.
10356
0a8beaba
YQ
103572017-02-23 Yao Qi <yao.qi@linaro.org>
10358
10359 * varobj.c (varobj_clear_saved_item): Use delete instead of
10360 xfree.
10361 (update_dynamic_varobj_children): Likewise.
10362
58fdfd2c
JK
103632017-02-21 Jan Kratochvil <jan.kratochvil@redhat.com>
10364
10365 * dwarf2read.c (dwarf2_record_block_ranges): Add forgotten BASEADDR.
10366
1b90b139
SM
103672017-02-21 Simon Marchi <simon.marchi@ericsson.com>
10368
10369 * common/enum-flags.h (enum_flags::enum_flags): Initialize
10370 m_enum_value to 0 in default constructor.
10371
2039d74e
EBM
103722017-02-21 Edjunior Barbosa Machado <emachado@linux.vnet.ibm.com>
10373
10374 * rs6000-tdep.c (LOAD_AND_RESERVE_MASK): Rename from LWARX_MASK.
10375 (STORE_CONDITIONAL_MASK): Rename from STWCX_MASK.
10376 (LBARX_INSTRUCTION, LHARX_INSTRUCTION, LQARX_INSTRUCTION,
10377 STBCX_INSTRUCTION, STHCX_INSTRUCTION, STQCX_INSTRUCTION): New defines.
10378 (IS_LOAD_AND_RESERVE_INSN, IS_STORE_CONDITIONAL_INSN): New macros.
10379 (ppc_displaced_step_copy_insn): Use IS_LOAD_AND_RESERVE_INSN.
10380 (ppc_deal_with_atomic_sequence): Use IS_LOAD_AND_RESERVE_INSN and
10381 IS_STORE_CONDITIONAL_INSN.
10382
7814882a
JK
103832017-02-21 Jan Kratochvil <jan.kratochvil@redhat.com>
10384
10385 * dwarf2_rnglists_process: Initialize range_beginning and range_end.
10386
0ae60b63
JK
103872017-02-20 Jan Kratochvil <jan.kratochvil@redhat.com>
10388
10389 * NEWS (Changes since GDB 7.12): Add DWARF-5.
10390
0224619f
JK
103912017-02-20 Jan Kratochvil <jan.kratochvil@redhat.com>
10392
10393 * dwarf2read.c (skip_one_die, read_attribute_value)
10394 (dwarf2_const_value_attr, dump_die_shallow)
10395 (dwarf2_get_attr_constant_value, dwarf2_fetch_constant_bytes)
10396 (skip_form_bytes, attr_form_is_constant): Handle DW_FORM_data16.
10397
0af92d60
JK
103982017-02-20 Jan Kratochvil <jan.kratochvil@redhat.com>
10399
10400 * dwarf2read.c (read_file_scope): Rename DW_MACRO_GNU_*.
10401 (dwarf_parse_macro_header): Accept DWARF version 5.
10402 (dwarf_decode_macro_bytes, dwarf_decode_macros): Rename DW_MACRO_GNU_*.
10403
216f72a1
JK
104042017-02-20 Jan Kratochvil <jan.kratochvil@redhat.com>
10405
10406 * block.c (call_site_for_pc): Rename DW_OP_GNU_*, DW_TAG_GNU_* and
10407 DW_AT_GNU_*.
10408 * common/common-exceptions.h (enum errors): Likewise.
10409 * dwarf2-frame.c (class dwarf_expr_executor): Likewise.
10410 * dwarf2expr.c (dwarf_block_to_dwarf_reg)
10411 (dwarf_expr_context::execute_stack_op): Likewise.
10412 * dwarf2expr.h (struct dwarf_expr_context, struct dwarf_expr_piece):
10413 Likewise.
10414 * dwarf2loc.c (dwarf_evaluate_loc_desc::get_base_type)
10415 (dwarf_evaluate_loc_desc::push_dwarf_reg_entry_value)
10416 (show_entry_values_debug, call_site_to_target_addr)
10417 (func_addr_to_tail_call_list, func_verify_no_selftailcall)
10418 (dwarf_expr_reg_to_entry_parameter, dwarf_entry_parameter_to_value)
10419 (entry_data_value_free_closure, value_of_dwarf_reg_entry)
10420 (value_of_dwarf_block_entry, indirect_pieced_value)
10421 (symbol_needs_eval_context::push_dwarf_reg_entry_value):
10422 (disassemble_dwarf_expression): Likewise.
10423 * dwarf2read.c (process_die, inherit_abstract_dies)
10424 (read_call_site_scope): Likewise.
10425 * gdbtypes.h (struct func_type, struct call_site_parameter)
10426 (struct call_site): Likewise.
10427 * stack.c (read_frame_arg): Likewise.
10428 * std-operator.def (OP_VAR_ENTRY_VALUE): Likewise.
10429
43988095
JK
104302017-02-20 Jan Kratochvil <jan.kratochvil@redhat.com>
10431
10432 * defs.h (read_unsigned_leb128): New declaration.
10433 * dwarf2loc.c (decode_debug_loclists_addresses): New function.
10434 (decode_debug_loc_dwo_addresses): Update DEBUG_LOC_* to DW_LLE_*.
10435 (dwarf2_find_location_expression): Call also
10436 decode_debug_loclists_addresses. Handle DWARF-5 ULEB128 length.
10437 * dwarf2loc.h (dwarf2_version): New declaration.
10438 * dwarf2read.c (struct dwarf2_per_objfile): Add loclists, line_str,
10439 rnglists.
10440 (dwarf2_elf_names): Add .debug_loclists, .debug_line_str,
10441 .debug_rnglists.
10442 (struct dwop_section_names): Add loclists_dwo.
10443 (dwop_section_names): Add .debug_loclists.dwo.
10444 (struct comp_unit_head): Add unit_type, signature, type_offset_in_tu.
10445 (struct dwarf2_per_cu_data): Add dwarf_version.
10446 (struct dwo_sections): Add loclists.
10447 (struct attr_abbrev): Add implicit_const.
10448 (read_indirect_line_string): New declaration.
10449 (read_unsigned_leb128): Delete declaration.
10450 (rcuh_kind): New definition.
10451 (read_and_check_comp_unit_head): Change parameter
10452 is_debug_types_section to section_kind.
10453 (dwarf2_locate_sections): Handle loclists, line_str and rnglists.
10454 (read_comp_unit_head): Change parameter abfd to section, add parameter
10455 section_kind. Handle DWARF-5.
10456 (error_check_comp_unit_head): Accept also DWARF version 5.
10457 (read_and_check_comp_unit_head): Change parameter
10458 is_debug_types_section to section_kind.
10459 (read_and_check_type_unit_head): Delete function.
10460 (read_abbrev_offset): Handle DWARF-5.
10461 (create_debug_type_hash_table): Add parameter section_kind. Process
10462 only DW_UT_type. Use signature and type_offset_in_tu from struct
10463 comp_unit_head.
10464 (create_debug_types_hash_table): Update create_debug_type_hash_table
10465 caller.
10466 (create_all_type_units): Call create_debug_type_hash_table.
10467 (read_cutu_die_from_dwo, init_cutu_and_read_dies): Change
10468 read_and_check_type_unit_head caller to read_and_check_comp_unit_head
10469 caller.
10470 (skip_one_die): Handle DW_FORM_implicit_const.
10471 (dwarf2_rnglists_process): New function.
10472 (dwarf2_ranges_process): Call dwarf2_rnglists_process for DWARF-5.
10473 (abbrev_table_read_table): Handle DW_FORM_implicit_const.
10474 (read_attribute_value): Handle DW_FORM_implicit_const,
10475 DW_FORM_line_strp.
10476 (read_attribute): Handle DW_FORM_implicit_const.
10477 (read_indirect_string_at_offset_from): New function from
10478 read_indirect_string_at_offset.
10479 (read_indirect_string_at_offset): Call
10480 read_indirect_string_at_offset_from.
10481 (read_indirect_line_string_at_offset): New function.
10482 (read_indirect_string): New function comment.
10483 (read_indirect_line_string): New function.
10484 (read_unsigned_leb128): Make it global.
10485 (dwarf2_string_attr): Handle DWARF-5.
10486 (add_include_dir_stub, read_formatted_entries): New functions.
10487 (dwarf_decode_line_header, dump_die_shallow, cu_debug_loc_section):
10488 Handle DWARF-5.
10489 (per_cu_header_read_in): Update read_comp_unit_head caller.
10490 (dwarf2_version): New function.
10491 * symfile.h (struct dwarf2_debug_sections): Add loclists, line_str and
10492 rnglists.
10493 * xcoffread.c (dwarf2_xcoff_names): Update struct dwarf2_debug_sections
10494 fields.
10495
22d2f3ab
JK
104962017-02-20 Jan Kratochvil <jan.kratochvil@redhat.com>
10497
10498 * dwarf2read.c (abbrev_table_read_table): Read the data only once.
10499
5f46c5a5
JK
105002017-02-20 Jan Kratochvil <jan.kratochvil@redhat.com>
10501
10502 * dwarf2read.c (dwarf2_ranges_process): New function from
10503 dwarf2_ranges_read.
10504 (dwarf2_ranges_read, dwarf2_record_block_ranges): Use
10505 dwarf2_ranges_process.
10506
78d4d2c5
JK
105072017-02-20 Jan Kratochvil <jan.kratochvil@redhat.com>
10508
10509 * dwarf2read.c (create_debug_type_hash_table): New function from
10510 create_debug_types_hash_table.
10511 (create_debug_types_hash_table): Call create_debug_type_hash_table.
10512 (create_all_type_units, open_and_init_dwo_file): Update
10513 create_debug_types_hash_table callers.
10514
1b076f25
SDJ
105152017-02-20 Sergio Durigan Junior <sergiodj@redhat.com>
10516
10517 PR gdb/16188
10518 * fork-child.c (trace_start_error): Fix thinko. va_end should
10519 refer to 'ap', not 'args'.
10520
0db8980c
SDJ
105212017-02-20 Sergio Durigan Junior <sergiodj@redhat.com>
10522 Pedro Alves <palves@redhat.com>
10523
10524 PR gdb/16188
10525 * darwin-nat.c (darwin_ptrace_me): Check if calls to system
10526 calls succeeded.
10527 * fork-child.c (trace_start_error): New function.
10528 (trace_start_error_with_name): Likewise.
10529 * gnu-nat.c (gnu_ptrace_me): Check if call to PTRACE succeeded.
10530 * inf-ptrace.c (inf_ptrace_me): Likewise.
10531 * inferior.h (trace_start_error): New prototype.
10532 (trace_start_error_with_name): Likewise.
10533
99e8a4f9
SDJ
105342017-02-15 Sergio Durigan Junior <sergiodj@redhat.com>
10535
10536 PR gdb/21164
10537 * psymtab.c (maintenance_print_psymbols): Verify if 'argv' is not
10538 NULL before using it.
10539 * symmisc.c (maintenance_print_symbols): Likewise.
10540 (maintenance_print_msymbols): Likewise.
10541
4e746bb6
TW
105422017-02-14 Tim Wiederhake <tim.wiederhake@intel.com>
10543
10544 * NEWS: Add record Python bindings entry.
10545
105462017-02-14 Tim Wiederhake <tim.wiederhake@intel.com>
10547
10548 * Makefile.in (SUBDIR_PYTHON_OBS): Add py-record-btrace.o,
10549 py-record-full.o.
10550 (SUBDIR_PYTHON_SRCS): Add py-record-btrace.c, py-record-full.c.
10551 * python/py-record-btrace.c, python/py-record-btrace.h,
10552 python/py-record-full.c, python/py-record-full.h: New file.
10553 * python/py-record.c: Add include for py-record-btrace.h and
10554 py-record-full.h.
10555 (recpy_method, recpy_format, recpy_goto, recpy_replay_position,
10556 recpy_instruction_history, recpy_function_call_history, recpy_begin,
10557 recpy_end): Use functions from py-record-btrace.c and py-record-full.c.
10558 * python/python-internal.h (PyInt_FromSsize_t, PyInt_AsSsize_t):
10559 New definition.
10560 (gdbpy_initialize_btrace): New export.
10561 * python/python.c (_initialize_python): Add gdbpy_initialize_btrace.
10562
105632017-02-14 Tim Wiederhake <tim.wiederhake@intel.com>
10564
10565 * Makefile.in (SUBDIR_PYTHON_OBS): Add python/py-record.o.
10566 (SUBDIR_PYTHON_SRCS): Add python/py-record.c.
10567 * python/py-record.c: New file.
10568 * python/python-internal.h (gdbpy_start_recording,
10569 gdbpy_current_recording, gdpy_stop_recording,
10570 gdbpy_initialize_record): New export.
10571 * python/python.c (_initialize_python): Add gdbpy_initialize_record.
10572 (python_GdbMethods): Add gdbpy_start_recording,
10573 gdbpy_current_recording and gdbpy_stop_recording.
10574
105752017-02-14 Tim Wiederhake <tim.wiederhake@intel.com>
10576
10577 * record-btrace.c (record_btrace_record_method): New function.
10578 (init_record_btrace_ops): Initialize to_record_method.
10579 * record-full.c (record_full_record_method): New function.
10580 (init_record_full_ops, init_record_full_core_ops): Add
10581 record_full_record_method.
10582 * record.h (enum record_method): New enum.
10583 * target-debug.h (target_debug_print_enum_record_method: New define.
10584 * target-delegates.c: Regenerate.
10585 * target.c (target_record_method): New function.
10586 * target.h: Include record.h.
10587 (struct target_ops) <to_record_method>: New field.
10588 (target_record_method): New export.
10589
105902017-02-14 Tim Wiederhake <tim.wiederhake@intel.com>
10591
10592 * record.h (record_start, record_stop): New export.
10593 * record.c (record_start, record_stop): New function.
10594
105952017-02-14 Tim Wiederhake <tim.wiederhake@intel.com>
10596
10597 * btrace.c (btrace_fetch): Copy function call segments pointer
10598 into a vector.
10599 (btrace_clear): Clear the vector.
10600 (btrace_find_insn_by_number): Use binary search to find the correct
10601 function call segment.
10602 * btrace.h (brace_fun_p): New typedef.
10603 (struct btrace_thread_info) <functions>: New field.
10604
106052017-02-14 Tim Wiederhake <tim.wiederhake@intel.com>
10606
10607 * record-btrace.c (btrace_ui_out_decode_error): Move most of it ...
10608 * btrace.c (btrace_decode_error): ... here. New function.
10609 * btrace.h (btrace_decode_error): New export.
10610
106112017-02-14 Tim Wiederhake <tim.wiederhake@intel.com>
10612
10613 * btrace.c (ftrace_call_num_insn, btrace_insn_get_error): New function.
10614 (ftrace_new_function, btrace_insn_number, btrace_insn_cmp,
10615 btrace_find_insn_by_number): Remove special case for gaps.
10616 * btrace.h (btrace_insn_get_error): New export.
10617 (btrace_insn_number, btrace_find_insn_by_number): Adjust comment.
10618 * record-btrace.c (btrace_insn_history): Print number for gaps.
10619 (record_btrace_info, record_btrace_goto): Handle gaps.
10620
3f77c769
TT
106212017-02-14 Tom Tromey <tom@tromey.com>
10622
10623 PR python/13598:
10624 * python/python.c (gdbpy_before_prompt_hook): Emit before_prompt
10625 event.
10626 * python/py-evts.c (gdbpy_initialize_py_events): Add
10627 before_prompt registry.
10628 * python/py-events.h (events_object) <before_prompt>: New field.
10629
4c2c7ac6
MM
106302017-02-14 Markus Metzger <markus.t.metzger@intel.com>
10631
10632 * btrace.c (ftrace_new_switch): Preserve up link and flags.
10633
5cf30ebf
LM
106342017-02-13 Luis Machado <lgustavo@codesourcery.com>
10635
10636 * symfile (_initialize_symfile): Add usage text to the load command's
10637 help text.
10638
26a06916
SM
106392017-02-10 Simon Marchi <simon.marchi@ericsson.com>
10640
10641 * utils.c (defaulted_query): Don't query on secondary UIs.
10642
0b145e37
TT
106432017-02-10 Tom Tromey <tom@tromey.com>
10644
10645 * rust-lang.c (rust_get_disr_info): Remove unused variable.
10646
2d8365c4
TT
106472017-02-10 Tom Tromey <tom@tromey.com>
10648
10649 * python/py-value.c (valpy_richcompare_throw): Remove unnecessary
10650 "cleanup" local.
10651 * python/py-type.c (typy_legacy_template_argument): Remove
10652 unnecessary "cleanup" local.
10653
2bb8f231
TT
106542017-02-10 Tom Tromey <tom@tromey.com>
10655
10656 * python/python.c (do_start_initialization): New function, from
10657 _initialize_python.
10658 (_initialize_python): Call do_start_initialization.
10659 * python/py-linetable.c (ltpy_iternext): Use explicit returns, not
10660 goto.
10661
1bdfaf42
TT
106622017-02-10 Tom Tromey <tom@tromey.com>
10663
10664 * python/py-prettyprint.c (pretty_print_one_value): Use
10665 gdbpy_ref.
10666
88b6faea
TT
106672017-02-10 Tom Tromey <tom@tromey.com>
10668
10669 * python/py-cmd.c (cmdpy_destroyer): Use gdbpy_ref.
10670 * python/py-breakpoint.c (gdbpy_breakpoint_deleted): Use
10671 gdbpy_ref.
10672 * python/py-type.c (field_new): Use gdbpy_ref.
10673 * python/py-symtab.c (symtab_and_line_to_sal_object): Use
10674 gdbpy_ref.
10675 * python/py-progspace.c (pspy_new): Use gdbpy_ref.
10676 (py_free_pspace): Likewise.
10677 (pspace_to_pspace_object): Likewise.
10678 * python/py-objfile.c (objfpy_new): Use gdbpy_ref.
10679 (py_free_objfile): Likewise.
10680 (objfile_to_objfile_object): Likewise.
10681 * python/py-inferior.c (delete_thread_object): Use
10682 gdbpy_ref.
10683 (infpy_read_memory): Likewise.
10684 (py_free_inferior): Likewise.
10685 * python/py-evtregistry.c (create_eventregistry_object): Use
10686 gdbpy_ref.
10687 * python/py-event.c (create_event_object): Use gdbpy_ref.
10688
7780f186
TT
106892017-02-10 Tom Tromey <tom@tromey.com>
10690
10691 * python/py-ref.h (gdbpy_ref_policy): Now a template.
10692 (gdbpy_ref): Now a template; allow subclasses of PyObject to be
10693 used.
10694 * python/py-arch.c, python/py-bpevent.c, python/py-breakpoint.c,
10695 python/py-cmd.c, python/py-continueevent.c, python/py-event.c,
10696 python/py-exitedevent.c, python/py-finishbreakpoint.c,
10697 python/py-framefilter.c, python/py-function.c,
10698 python/py-inferior.c, python/py-infevents.c,
10699 python/py-linetable.c, python/py-newobjfileevent.c,
10700 python/py-param.c, python/py-prettyprint.c, python/py-ref.h,
10701 python/py-signalevent.c, python/py-stopevent.c,
10702 python/py-symbol.c, python/py-threadevent.c, python/py-type.c,
10703 python/py-unwind.c, python/py-utils.c, python/py-value.c,
10704 python/py-varobj.c, python/py-xmethods.c, python/python.c,
10705 varobj.c: Change gdbpy_ref to gdbpy_ref<>.
10706
d4b0bb18
TT
107072017-02-10 Tom Tromey <tom@tromey.com>
10708
10709 * ui-out.h (ui_out_emit_type): New class.
10710 (ui_out_emit_tuple, ui_out_emit_list): New typedefs.
10711 * python/py-framefilter.c (py_print_single_arg): Use gdb::optional
10712 and ui_out_emit_tuple.
10713 (enumerate_locals): Likewise.
10714 (py_mi_print_variables, py_print_locals, py_print_args): Use
10715 ui_out_emit_list.
10716 (py_print_frame): Use gdb::optional, ui_out_emit_tuple,
10717 ui_out_emit_list.
10718 * common/gdb_optional.h: New file.
10719
f67f945c
MG
107202017-02-10 Martin Galvan <martingalvan@sourceware.org>
10721
10722 * MAINTAINERS (Write After Approval): Update my e-mail address.
10723
18da0c51
MG
107242017-02-10 Martin Galvan <martingalvan@sourceware.org>
10725
10726 PR gdb/21122
10727 * breakpoint.c (_initialize_breakpoint): Update the help description
10728 of the 'commands' command to indicate that it takes a list argument.
10729
62c14536
SM
107302017-02-09 Simon Marchi <simon.marchi@ericsson.com>
10731
10732 * interps.c (current_interp_set_logging): Remove "return".
10733
ff6fa247
GB
107342017-02-09 Gary Benson <gbenson@redhat.com>
10735
10736 * symtab.c (add_symtab_completions): Prevent NULL pointer
10737 dereference.
10738
a474bd8e
PA
107392017-02-08 Pedro Alves <palves@redhat.com>
10740
10741 * interps.c (interp::interp): Remove reference to quiet_p.
10742 (interp_set): Make static. Remove dead "Switching to" output
10743 code.
10744 (interp_quiet_p, interp_set_quiet): Delete.
10745 (interpreter_exec_cmd): Don't set the interpreter quiet.
10746 * interps.h (interp_quiet_p): Make static.
10747 (class interp) <quiet_p>: Remove field
10748
3d7b173c
JG
107492017-02-08 Jerome Guitton <guitton@adacore.com>
10750
604c4576
JG
10751 * cli/cli-decode.c (find_command_name_length): Make it extern.
10752 * cli/cli-decode.h (find_command_name_length): Declare.
10753 * cli/cli-script.c (command_name_equals, line_first_arg):
10754 New functions.
10755 (process_next_line): Use cli-decode to parse command names.
10756 (build_command_line): Make args a constant pointer.
10757
107582017-02-08 Jerome Guitton <guitton@adacore.com>
6dbb839a 10759
3d7b173c
JG
10760 * cli-decode.c (lookup_cmd_1, lookup_cmd_composition):
10761 Remove case-insensitive search.
10762
1291063d
JM
107632017-02-07 Jose E. Marchesi <jose.marchesi@oracle.com>
10764
10765 * sparc-tdep.c (sparc32_gdbarch_init): Do not place a + operator
10766 at the end of the line. Avoids an ARI warning.
10767
20b477a7
LM
107682017-02-06 Luis Machado <lgustavo@codesourcery.com>
10769
10770 * NEWS: Mention support for record/replay of Intel 64 rdrand and
10771 rdseed instructions.
10772 i386-tdep.c (i386_process_record): Handle Intel 64 rdrand and rseed.
10773
3f7b46f2
IR
107742017-02-06 Ivo Raisr <ivo.raisr@oracle.com>
10775
10776 PR tdep/20936
10777 Provide and use sparc32 and sparc64 target description XML files.
10778 * features/sparc/sparc32-cp0.xml, features/sparc/sparc32-cpu.xml,
10779 features/sparc/sparc32-fpu.xml: New files for sparc 32-bit.
10780 * features/sparc/sparc64-cp0.xml, features/sparc/sparc64-cpu.xml,
10781 features/sparc/sparc64-fpu.xml: New files for sparc 64-bit.
10782 * features/sparc/sparc32-solaris.xml: New file.
10783 * features/sparc/sparc64-solaris.xml: New file.
10784 * features/sparc/sparc32-solaris.c: Generated.
10785 * features/sparc/sparc64-solaris.c: Generated.
10786 * sparc-tdep.h: Account for differences in target descriptions.
10787 * sparc-tdep.c (sparc32_register_name): Use target provided registers.
10788 (sparc32_register_type): Use target provided registers.
10789 (validate_tdesc_registers): New function.
10790 (sparc32_gdbarch_init): Use tdesc_has_registers.
10791 Set pseudoregister functions.
10792 * sparc64-tdep.c (sparc64_register_name): Use target provided registers.
10793 (sparc64_register_type): Use target provided registers.
10794 (sparc64_init_abi): Set pseudoregister functions.
10795
f0fd41c1
TT
107962017-02-03 Tom Tromey <tom@tromey.com>
10797
10798 PR rust/21097:
10799 * rust-lang.c (rust_print_type) <TYPE_CODE_UNION>: Handle enums
10800 with a single member.
10801
d6f9b0fb
PA
108022017-02-03 Pedro Alves <palves@redhat.com>
10803
10804 * cli/cli-interp.c (cli_interp_base::cli_interp_base)
10805 (cli_interp_base::~cli_interp_base): New.
10806 (cli_interp): New struct.
10807 (as_cli_interp): Cast the interp itself to cli_interp.
10808 (cli_interpreter_pre_command_loop): Rename to ...
10809 (cli_interp_base::pre_command_loop): ... this. Remove 'self'
10810 parameter.
10811 (cli_interpreter_init): Rename to ...
10812 (cli_interp::init): ... this. Remove 'self' parameter. Use
10813 boolean. Make extern.
10814 (cli_interpreter_resume): Rename to ...
10815 (cli_interp::resume): ... this. Remove 'data' parameter. Make
10816 extern.
10817 (cli_interpreter_suspend): Rename to ...
10818 (cli_interp::suspend): ... this. Remove 'data' parameter. Make
10819 extern.
10820 (cli_interpreter_exec): Rename to ...
10821 (cli_interp::exec): ... this. Remove 'data' parameter. Make
10822 extern.
10823 (cli_interpreter_supports_command_editing): Rename to ...
10824 (cli_interp_base::supports_command_editing): ... this. Remove
10825 'interp' parameter. Make extern.
10826 (cli_ui_out): Rename to ...
10827 (cli_interp::interp_ui_out): ... this. Remove 'interp' parameter.
10828 Make extern.
10829 (cli_set_logging): Rename to ...
10830 (cli_interp_base::set_logging): ... this. Remove 'interp'
10831 parameter. Make extern.
10832 (cli_interp_procs): Delete.
10833 (cli_interp_factory): Adjust to use "new".
10834 * cli/cli-interp.h: Include "interps.h".
10835 (struct cli_interp_base): New struct.
10836 * interps.c (struct interp): Delete. Fields moved to interps.h.
10837 (interp_new): Delete.
10838 (interp::interp, interp::~interp): New.
10839 (interp_set): Use bool, and return void. Assume the interpreter
10840 has suspend, init and resume methods, and that the all return
10841 void.
10842 (set_top_level_interpreter): interp_set returns void.
10843 (interp_ui_out): Adapt.
10844 (current_interp_set_logging): Adapt.
10845 (interp_data): Delete.
10846 (interp_pre_command_loop, interp_supports_command_editing): Adapt.
10847 (interp_exec): Adapt.
10848 (top_level_interpreter_data): Delete.
10849 * interps.h (interp_init_ftype, interp_resume_ftype)
10850 (interp_suspend_ftype, interp_exec_ftype)
10851 (interp_pre_command_loop_ftype, interp_ui_out_ftype): Delete.
10852 (class interp): New.
10853 (interp_new): Delete.
10854 (interp_set): Now returns void. Use bool.
10855 (interp_data, top_level_interpreter_data): Delete.
10856 * mi/mi-common.h: Include interps.h.
10857 (class mi_interp): Inherit from interp. Define a ctor. Declare
10858 init, resume, suspect, exec, interp_ui_out, set_logging and
10859 pre_command_loop methods.
10860 * mi/mi-interp.c (as_mi_interp): Cast the interp itself.
10861 (mi_interpreter_init): Rename to ...
10862 (mi_interp::init): ... this. Remove the 'interp' parameter, use
10863 bool, return void and make extern. Adjust.
10864 (mi_interpreter_resume): ... Rename to ...
10865 (mi_interp::resume): ... this. Remove the 'data' parameter,
10866 return void and make extern. Adjust.
10867 (mi_interpreter_suspend): ... Rename to ...
10868 (mi_interp::suspend): ... this. Remove the 'data' parameter,
10869 return void and make extern. Adjust.
10870 (mi_interpreter_exec): ... Rename to ...
10871 (mi_interp::exec): ... this. Remove the 'data' parameter and make
10872 extern. Adjust.
10873 (mi_interpreter_pre_command_loop): ... Rename to ...
10874 (mi_interp::pre_command_loop): ... this. Remove the 'self'
10875 parameter and make extern.
10876 (mi_on_normal_stop_1): Adjust.
10877 (mi_ui_out): Rename to ...
10878 (mi_interp::interp_ui_out): ... this. Remove the 'interp'
10879 parameter and make extern. Adjust.
10880 (mi_set_logging): Rename to ...
10881 (mi_interp::set_logging): ... this. Remove the 'interp'
10882 parameter and make extern. Adjust.
10883 (mi_interp_procs): Delete.
10884 (mi_interp_factory): Adjust to use 'new'.
10885 * mi/mi-main.c (mi_cmd_gdb_exit, captured_mi_execute_command)
10886 (mi_print_exception, mi_execute_command, mi_load_progress):
10887 Adjust.
10888 * tui/tui-interp.c (tui_interp): New class.
10889 (as_tui_interp): Return a tui_interp pointer.
10890 (tui_on_normal_stop, tui_on_signal_received)
10891 (tui_on_end_stepping_range, tui_on_signal_exited, tui_on_exited)
10892 (tui_on_no_history, tui_on_user_selected_context_changed): Adjust
10893 to use interp::interp_ui_out.
10894 (tui_init): Rename to ...
10895 (tui_interp::init): ... this. Remove the 'self' parameter, use
10896 bool, return void and make extern. Adjust.
10897 (tui_resume): Rename to ...
10898 (tui_interp::resume): ... this. Remove the 'data' parameter,
10899 return void and make extern. Adjust.
10900 (tui_suspend): Rename to ...
10901 (tui_interp::suspend): ... this. Remove the 'data' parameter,
10902 return void and make extern. Adjust.
10903 (tui_ui_out): Rename to ...
10904 (tui_interp::interp_ui_out): ... this. Remove the 'self'
10905 parameter, and make extern. Adjust.
10906 (tui_exec): Rename to ...
10907 (tui_interp::exec): ... this. Remove the 'data' parameter and
10908 make extern.
10909 (tui_interp_procs): Delete.
10910 (tui_interp_factory): Use "new".
10911
65c40c95
TT
109122017-02-02 Tom Tromey <tom@tromey.com>
10913
10914 * rust-exp.y (ends_raw_string, space_then_number)
10915 (rust_identifier_start_p): Return bool.
10916 * rust-lang.c (rust_tuple_type_p, rust_underscore_fields)
10917 (rust_tuple_struct_type_p, rust_tuple_variant_type_p)
10918 (rust_slice_type_p, rust_range_type_p, rust_u8_type_p)
10919 (rust_chartype_p): Return bool.
10920 (val_print_struct, rust_print_struct_def, rust_print_type):
10921 Update.
10922 * rust-lang.h (rust_tuple_type_p, rust_tuple_struct_type_p):
10923 Return bool.
10924
b50f188d
TT
109252017-02-02 Tom Tromey <tom@tromey.com>
10926
10927 * rust-lang.c: Reindent.
10928
03c85b11
TT
109292017-02-02 Tom Tromey <tom@tromey.com>
10930
10931 * rust-lang.h (rust_crate_for_block): Update.
10932 * rust-lang.c (rust_crate_for_block): Return std::string.
10933 (rust_get_disr_info): Use std:;string, not
10934 gdb::unique_xmalloc_ptr.
10935 * rust-exp.y (crate_name): Update.
10936
9b6da501
PA
109372017-02-02 Pedro Alves <palves@redhat.com>
10938
10939 * disasm-selftests.c (print_one_insn_test): Move the "verbose"
10940 field out of gdb_disassembler_test and make it static.
10941
ec4cb20b
PA
109422017-02-02 Pedro Alves <palves@redhat.com>
10943
10944 * mi/mi-common.h (struct mi_interp): Delete the mi2_interp,
10945 mi1_interp and mi_interp fields.
10946
5be5dbf0
PA
109472017-02-02 Pedro Alves <palves@redhat.com>
10948
616268b6
PA
10949 * cli/cli-interp.c (struct saved_output_files, saved_output):
10950 Moved from cli/cli-logging.c.
10951 (cli_set_logging): New function.
10952 (cli_interp_procs): Install cli_set_logging.
10953 * cli/cli-interp.h (make_logging_output, cli_set_logging):
10954 Declare.
10955 * cli/cli-logging.c (struct saved_output_files, saved_output):
10956 Moved to cli/cli-interp.c.
10957 (pop_output_files): Don't save outputs here.
10958 (make_logging_output): New function.
10959 (handle_redirections): Don't build tee nor save previous outputs
10960 here.
10961 * interps.c (current_interp_set_logging): Change prototype.
10962 Assume there's always a set_logging_proc method installed.
10963 * interps.h (interp_set_logging_ftype): Change prototype.
10964 (current_interp_set_logging): Change prototype and adjust comment.
10965 * mi/mi-interp.c (mi_set_logging): Change protototype. Adjust to
10966 use make_logging_output.
10967 * tui/tui-interp.c (tui_interp_procs): Install cli_set_logging.
109682017-02-02 Pedro Alves <palves@redhat.com>
10969
5be5dbf0
PA
10970 * cli/cli-logging.c (maybe_warn_already_logging): New factored out
10971 from ...
10972 (set_logging_overwrite): ... here.
10973 (logging_no_redirect_file): Delete.
10974 (set_logging_redirect): Don't handle redirection on the fly.
10975 Instead warn that "logging off" / "logging on" is necessary.
10976 (pop_output_files): Delete references to logging_no_redirect_file.
10977 (show_logging_command): Always speak in terms of what will happen
10978 once logging is reenabled.
10979
c99cc448
PA
109802017-02-02 Pedro Alves <palves@redhat.com>
10981
10982 * disasm.h (gdb_pretty_print_disassembler): Tweak intro comment.
10983
8b172ce7
PA
109842017-02-02 Pedro Alves <palves@redhat.com>
10985
10986 * disasm.c (gdb_pretty_print_insn): Rename to ...
10987 (gdb_pretty_print_disassembler::pretty_print_insn): ... this.
10988 Remove gdbarch parameter. Adapt to clear the object's buffers
10989 instead of allocating new buffers, and to print using the object's
10990 gdb_disassembler instead of calling gdb_print_insn.
10991 (dump_insns): Use gdb_pretty_print_disassembler.
10992 * disasm.h (gdb_pretty_print_insn): Delete declaration.
10993 (gdb_pretty_print_disassembler): New class.
10994 * record-btrace.c (btrace_insn_history): Use
10995 gdb_pretty_print_disassembler.
10996
d7e74731
PA
109972017-02-02 Pedro Alves <palves@redhat.com>
10998
10999 * ada-lang.c (type_as_string): Use string_file.
11000 * ada-valprint.c (ada_print_floating): Use string_file.
11001 * ada-varobj.c (ada_varobj_scalar_image)
11002 (ada_varobj_get_value_image): Use string_file.
11003 * aix-thread.c (aix_thread_extra_thread_info): Use string_file.
11004 * arm-tdep.c (_initialize_arm_tdep): Use string_printf.
11005 * breakpoint.c (update_inserted_breakpoint_locations)
11006 (insert_breakpoint_locations, reattach_breakpoints)
11007 (print_breakpoint_location, print_one_detail_ranged_breakpoint)
11008 (print_it_watchpoint): Use string_file.
11009 (save_breakpoints): Use stdio_file.
11010 * c-exp.y (oper): Use string_file.
11011 * cli/cli-logging.c (set_logging_redirect): Use ui_file_up and
11012 tee_file.
11013 (pop_output_files): Use delete.
11014 (handle_redirections): Use stdio_file and tee_file.
11015 * cli/cli-setshow.c (do_show_command): Use string_file.
11016 * compile/compile-c-support.c (c_compute_program): Use
11017 string_file.
11018 * compile/compile-c-symbols.c (generate_vla_size): Take a
11019 'string_file &' instead of a 'ui_file *'.
11020 (generate_c_for_for_one_variable): Take a 'string_file &' instead
11021 of a 'ui_file *'. Use string_file.
11022 (generate_c_for_variable_locations): Take a 'string_file &'
11023 instead of a 'ui_file *'.
11024 * compile/compile-internal.h (generate_c_for_for_one_variable):
11025 Take a 'string_file &' instead of a 'ui_file *'.
11026 * compile/compile-loc2c.c (push, pushf, unary, binary)
11027 (print_label, pushf_register_address, pushf_register)
11028 (do_compile_dwarf_expr_to_c): Take a 'string_file &' instead of a
11029 'ui_file *'. Adjust.
11030 * compile/compile.c (compile_to_object): Use string_file.
11031 * compile/compile.h (compile_dwarf_expr_to_c)
11032 (compile_dwarf_bounds_to_c): Take a 'string_file &' instead of a
11033 'ui_file *'.
11034 * cp-support.c (inspect_type): Use string_file and obstack_copy0.
11035 (replace_typedefs_qualified_name): Use string_file and
11036 obstack_copy0.
11037 * disasm.c (gdb_pretty_print_insn): Use string_file.
11038 (gdb_disassembly): Adjust reference the null_stream global.
11039 (do_ui_file_delete): Delete.
11040 (gdb_insn_length): Use null_stream.
11041 * dummy-frame.c (maintenance_print_dummy_frames): Use stdio_file.
11042 * dwarf2loc.c (dwarf2_compile_property_to_c)
11043 (locexpr_generate_c_location, loclist_generate_c_location): Take a
11044 'string_file &' instead of a 'ui_file *'.
11045 * dwarf2loc.h (dwarf2_compile_property_to_c): Likewise.
11046 * dwarf2read.c (do_ui_file_peek_last): Delete.
11047 (dwarf2_compute_name): Use string_file.
11048 * event-top.c (gdb_setup_readline): Use stdio_file.
11049 * gdbarch.sh (verify_gdbarch): Use string_file.
11050 * gdbtypes.c (safe_parse_type): Use null_stream.
11051 * guile/scm-breakpoint.c (gdbscm_breakpoint_commands): Use
11052 string_file.
11053 * guile/scm-disasm.c (gdbscm_print_insn_from_port): Take a
11054 'string_file *' instead of a 'ui_file *'.
11055 (gdbscm_arch_disassemble): Use string_file.
11056 * guile/scm-frame.c (frscm_print_frame_smob): Use string_file.
11057 * guile/scm-ports.c (class ioscm_file_port): Now a class that
11058 inherits from ui_file.
11059 (ioscm_file_port_delete, ioscm_file_port_rewind)
11060 (ioscm_file_port_put): Delete.
11061 (ioscm_file_port_write): Rename to ...
11062 (ioscm_file_port::write): ... this. Remove file_port_magic
11063 checks.
11064 (ioscm_file_port_new): Delete.
11065 (ioscm_with_output_to_port_worker): Use ioscm_file_port and
11066 ui_file_up.
11067 * guile/scm-type.c (tyscm_type_name): Use string_file.
11068 * guile/scm-value.c (vlscm_print_value_smob, gdbscm_value_print):
11069 Use string_file.
11070 * infcmd.c (print_return_value_1): Use string_file.
11071 * infrun.c (print_target_wait_results): Use string_file.
11072 * language.c (add_language): Use string_file.
11073 * location.c (explicit_to_string_internal): Use string_file.
11074 * main.c (captured_main_1): Use null_file.
11075 * maint.c (maintenance_print_architecture): Use stdio_file.
11076 * mi/mi-cmd-stack.c (list_arg_or_local): Use string_file.
11077 * mi/mi-common.h (struct mi_interp) <out, err, log, targ,
11078 event_channel>: Change type to mi_console_file pointer.
11079 * mi/mi-console.c (mi_console_file_fputs, mi_console_file_flush)
11080 (mi_console_file_delete): Delete.
11081 (struct mi_console_file): Delete.
11082 (mi_console_file_magic): Delete.
11083 (mi_console_file_new): Delete.
11084 (mi_console_file::mi_console_file): New.
11085 (mi_console_file_delete): Delete.
11086 (mi_console_file_fputs): Delete.
11087 (mi_console_file::write): New.
11088 (mi_console_raw_packet): Delete.
11089 (mi_console_file::flush): New.
11090 (mi_console_file_flush): Delete.
11091 (mi_console_set_raw): Rename to ...
11092 (mi_console_file::set_raw): ... this.
11093 * mi/mi-console.h (class mi_console_file): New class.
11094 (mi_console_file_new, mi_console_set_raw): Delete.
11095 * mi/mi-interp.c (mi_interpreter_init): Use mi_console_file.
11096 (mi_set_logging): Use delete and tee_file. Adjust.
11097 * mi/mi-main.c (output_register): Use string_file.
11098 (mi_cmd_data_evaluate_expression): Use string_file.
11099 (mi_cmd_data_read_memory): Use string_file.
11100 (mi_cmd_execute, print_variable_or_computed): Use string_file.
11101 * mi/mi-out.c (mi_ui_out::main_stream): New.
11102 (mi_ui_out::rewind): Use main_stream and
11103 string_file.
11104 (mi_ui_out::put): Use main_stream and string_file.
11105 (mi_ui_out::mi_ui_out): Remove 'stream' parameter.
11106 Allocate a 'string_file' instead.
11107 (mi_out_new): Don't allocate a mem_fileopen stream here.
11108 * mi/mi-out.h (mi_ui_out::mi_ui_out): Remove 'stream' parameter.
11109 (mi_ui_out::main_stream): Declare method.
11110 * printcmd.c (eval_command): Use string_file.
11111 * psymtab.c (maintenance_print_psymbols): Use stdio_file.
11112 * python/py-arch.c (archpy_disassemble): Use string_file.
11113 * python/py-breakpoint.c (bppy_get_commands): Use string_file.
11114 * python/py-frame.c (frapy_str): Use string_file.
11115 * python/py-framefilter.c (py_print_type, py_print_single_arg):
11116 Use string_file.
11117 * python/py-type.c (typy_str): Use string_file.
11118 * python/py-unwind.c (unwind_infopy_str): Use string_file.
11119 * python/py-value.c (valpy_str): Use string_file.
11120 * record-btrace.c (btrace_insn_history): Use string_file.
11121 * regcache.c (regcache_print): Use stdio_file.
11122 * reggroups.c (maintenance_print_reggroups): Use stdio_file.
11123 * remote.c (escape_buffer): Use string_file.
11124 * rust-lang.c (rust_get_disr_info): Use string_file.
11125 * serial.c (serial_open_ops_1): Use stdio_file.
11126 (do_serial_close): Use delete.
11127 * stack.c (print_frame_arg): Use string_file.
11128 (print_frame_args): Remove local mem_fileopen stream, not used.
11129 (print_frame): Use string_file.
11130 * symmisc.c (maintenance_print_symbols): Use stdio_file.
11131 * symtab.h (struct symbol_computed_ops) <generate_c_location>:
11132 Take a 'string_file *' instead of a 'ui_file *'.
11133 * top.c (new_ui): Use stdio_file and stderr_file.
11134 (free_ui): Use delete.
11135 (execute_command_to_string): Use string_file.
11136 (quit_confirm): Use string_file.
11137 * tracepoint.c (collection_list::append_exp): Use string_file.
11138 * tui/tui-disasm.c (tui_disassemble): Use string_file.
11139 * tui/tui-file.c: Don't include "ui-file.h".
11140 (enum streamtype, struct tui_stream): Delete.
11141 (tui_file_new, tui_file_delete, tui_fileopen, tui_sfileopen)
11142 (tui_file_isatty, tui_file_rewind, tui_file_put): Delete.
11143 (tui_file::tui_file): New method.
11144 (tui_file_fputs): Delete.
11145 (tui_file_get_strbuf): Delete.
11146 (tui_file::puts): New method.
11147 (tui_file_adjust_strbuf): Delete.
11148 (tui_file_flush): Delete.
11149 (tui_file::flush): New method.
11150 * tui/tui-file.h: Tweak intro comment.
11151 Include ui-file.h.
11152 (tui_fileopen, tui_sfileopen, tui_file_get_strbuf)
11153 (tui_file_adjust_strbuf): Delete declarations.
11154 (class tui_file): New class.
11155 * tui/tui-io.c (tui_initialize_io): Use tui_file.
11156 * tui/tui-regs.c (tui_restore_gdbout): Use delete.
11157 (tui_register_format): Use string_stream.
11158 * tui/tui-stack.c (tui_make_status_line): Use string_file.
11159 (tui_get_function_from_frame): Use string_file.
11160 * typeprint.c (type_to_string): Use string_file.
11161 * ui-file.c (struct ui_file, ui_file_magic, ui_file_new): Delete.
11162 (null_stream): New global.
11163 (ui_file_delete): Delete.
11164 (ui_file::ui_file): New.
11165 (null_file_isatty): Delete.
11166 (ui_file::~ui_file): New.
11167 (null_file_rewind): Delete.
11168 (ui_file::printf): New.
11169 (null_file_put): Delete.
11170 (null_file_flush): Delete.
11171 (ui_file::putstr): New.
11172 (null_file_write): Delete.
11173 (ui_file::putstrn): New.
11174 (null_file_read): Delete.
11175 (ui_file::putc): New.
11176 (null_file_fputs): Delete.
11177 (null_file_write_async_safe): Delete.
11178 (ui_file::vprintf): New.
11179 (null_file_delete): Delete.
11180 (null_file::write): New.
11181 (null_file_fseek): Delete.
11182 (null_file::puts): New.
11183 (ui_file_data): Delete.
11184 (null_file::write_async_safe): New.
11185 (gdb_flush, ui_file_isatty): Adjust.
11186 (ui_file_put, ui_file_rewind): Delete.
11187 (ui_file_write): Adjust.
11188 (ui_file_write_for_put): Delete.
11189 (ui_file_write_async_safe, ui_file_read): Adjust.
11190 (ui_file_fseek): Delete.
11191 (fputs_unfiltered): Adjust.
11192 (set_ui_file_flush, set_ui_file_isatty, set_ui_file_rewind)
11193 (set_ui_file_put, set_ui_file_write, set_ui_file_write_async_safe)
11194 (set_ui_file_read, set_ui_file_fputs, set_ui_file_fseek)
11195 (set_ui_file_data): Delete.
11196 (string_file::~string_file, string_file::write)
11197 (struct accumulated_ui_file, do_ui_file_xstrdup, ui_file_xstrdup)
11198 (do_ui_file_as_string, ui_file_as_string): Delete.
11199 (do_ui_file_obsavestring, ui_file_obsavestring): Delete.
11200 (struct mem_file): Delete.
11201 (mem_file_new): Delete.
11202 (stdio_file::stdio_file): New.
11203 (mem_file_delete): Delete.
11204 (stdio_file::stdio_file): New.
11205 (mem_fileopen): Delete.
11206 (stdio_file::~stdio_file): New.
11207 (mem_file_rewind): Delete.
11208 (stdio_file::set_stream): New.
11209 (mem_file_put): Delete.
11210 (stdio_file::open): New.
11211 (mem_file_write): Delete.
11212 (stdio_file_magic, struct stdio_file): Delete.
11213 (stdio_file_new, stdio_file_delete, stdio_file_flush): Delete.
11214 (stdio_file::flush): New.
11215 (stdio_file_read): Rename to ...
11216 (stdio_file::read): ... this. Adjust.
11217 (stdio_file_write): Rename to ...
11218 (stdio_file::write): ... this. Adjust.
11219 (stdio_file_write_async_safe): Rename to ...
11220 (stdio_file::write_async_safe) ... this. Adjust.
11221 (stdio_file_fputs): Rename to ...
11222 (stdio_file::puts) ... this. Adjust.
11223 (stdio_file_isatty): Delete.
11224 (stdio_file_fseek): Delete.
11225 (stdio_file::isatty): New.
11226 (stderr_file_write): Rename to ...
11227 (stderr_file::write) ... this. Adjust.
11228 (stderr_file_fputs): Rename to ...
11229 (stderr_file::puts) ... this. Adjust.
11230 (stderr_fileopen, stdio_fileopen, gdb_fopen): Delete.
11231 (stderr_file::stderr_file): New.
11232 (tee_file_magic): Delete.
11233 (struct tee_file): Delete.
11234 (tee_file::tee_file): New.
11235 (tee_file_new): Delete.
11236 (tee_file::~tee_file): New.
11237 (tee_file_delete): Delete.
11238 (tee_file_flush): Rename to ...
11239 (tee_file::flush): ... this. Adjust.
11240 (tee_file_write): Rename to ...
11241 (tee_file::write): ... this. Adjust.
11242 (tee_file::write_async_safe): New.
11243 (tee_file_fputs): Rename to ...
11244 (tee_file::puts): ... this. Adjust.
11245 (tee_file_isatty): Rename to ...
11246 (tee_file::isatty): ... this. Adjust.
11247 * ui-file.h (struct obstack, struct ui_file): Don't
11248 forward-declare.
11249 (ui_file_new, ui_file_flush_ftype, set_ui_file_flush)
11250 (ui_file_write_ftype)
11251 (set_ui_file_write, ui_file_fputs_ftype, set_ui_file_fputs)
11252 (ui_file_write_async_safe_ftype, set_ui_file_write_async_safe)
11253 (ui_file_read_ftype, set_ui_file_read, ui_file_isatty_ftype)
11254 (set_ui_file_isatty, ui_file_rewind_ftype, set_ui_file_rewind)
11255 (ui_file_put_method_ftype, ui_file_put_ftype, set_ui_file_put)
11256 (ui_file_delete_ftype, set_ui_file_data, ui_file_fseek_ftype)
11257 (set_ui_file_fseek): Delete.
11258 (ui_file_data, ui_file_delete, ui_file_rewind)
11259 (struct ui_file): New.
11260 (ui_file_up): New.
11261 (class null_file): New.
11262 (null_stream): Declare.
11263 (ui_file_write_for_put, ui_file_put): Delete.
11264 (ui_file_xstrdup, ui_file_as_string, ui_file_obsavestring):
11265 Delete.
11266 (ui_file_fseek, mem_fileopen, stdio_fileopen, stderr_fileopen)
11267 (gdb_fopen, tee_file_new): Delete.
11268 (struct string_file): New.
11269 (struct stdio_file): New.
11270 (stdio_file_up): New.
11271 (struct stderr_file): New.
11272 (class tee_file): New.
11273 * ui-out.c (ui_out::field_stream): Take a 'string_file &' instead
11274 of a 'ui_file *'. Adjust.
11275 * ui-out.h (class ui_out) <field_stream>: Likewise.
11276 * utils.c (do_ui_file_delete, make_cleanup_ui_file_delete)
11277 (null_stream): Delete.
11278 (error_stream): Take a 'string_file &' instead of a 'ui_file *'.
11279 Adjust.
11280 * utils.h (struct ui_file): Delete forward declaration..
11281 (make_cleanup_ui_file_delete, null_stream): Delete declarations.
11282 (error_stream): Take a 'string_file &' instead of a
11283 'ui_file *'.
11284 * varobj.c (varobj_value_get_print_value): Use string_file.
11285 * xtensa-tdep.c (xtensa_verify_config): Use string_file.
11286 * gdbarch.c: Regenerate.
11287
187808b0
PA
112882017-02-02 Pedro Alves <palves@redhat.com>
11289
11290 * disasm.c (gdb_disassembler::pretty_print_insn): Rename to...
11291 (gdb_pretty_print_insn): ... this. Now a free function. Add back
11292 a 'gdbarch' parameter. Allocate a mem_fileopen stream here.
11293 Adjust to call gdb_print_insn instead of
11294 gdb_disassembler::print_insn.
11295 (dump_insns, do_mixed_source_and_assembly_deprecated)
11296 (do_mixed_source_and_assembly, do_assembly_only): Add back a
11297 'gdbarch' parameter. Remove gdb_disassembler parameter.
11298 (gdb_disassembly): Don't allocate a gdb_disassembler here.
11299 * disasm.h (gdb_disassembler::pretty_print_insn): Delete
11300 declaration.
11301 (gdb_pretty_print_insn): Re-add declaration.
11302 * record-btrace.c (btrace_insn_history): Don't allocate a
11303 gdb_disassembler here. Adjust to call gdb_pretty_print_insn.
11304
7a8eb317
SM
113052017-02-01 Simon Marchi <simon.marchi@polymtl.ca>
11306
11307 * disasm.h (gdb_disassembly): Remove file_string parameter.
11308 * disasm.c (gdb_disassembly): Likewise.
11309 * cli/cli-cmds.c (print_disassembly): Adapt.
11310 * mi/mi-cmd-disas.c (mi_cmd_disassemble): Likewise.
11311 * stack.c (do_gdb_disassembly): Likewise.
11312
7346ef59
AA
113132017-02-01 Andreas Arnez <arnez@linux.vnet.ibm.com>
11314
11315 * dwarf2loc.c (dwarf2_evaluate_loc_desc_full): For
11316 DWARF_VALUE_LITERAL, no longer ignore the offset on big-endian
11317 targets. And if the implicit value is longer than needed, extract
11318 the first bytes instead of the "least significant" ones.
11319
cd4007e4
MM
113202017-02-01 Markus Metzger <markus.t.metzger@intel.com>
11321
11322 * btrace.c (btrace_enable): Do not call btrace_add_pc for
11323 BTRACE_FORMAT_PT or if can_access_registers_ptid returns false.
11324 (btrace_fetch): Assert can_access_registers_ptid.
11325 * record-btrace.c (require_btrace_thread, record_btrace_info): Call
11326 validate_registers_access.
11327
cf77c34e
MM
113282017-02-01 Markus Metzger <markus.t.metzger@intel.com>
11329
11330 * gdbthread.h (can_access_registers_ptid): New.
11331 * thread.c (can_access_registers_ptid): New.
11332
be85ce7d
PA
113332017-02-01 Pedro Alves <palves@redhat.com>
11334
11335 * i386-tdep.c (i386_fast_tracepoint_valid_at): Use gdb_insn_length.
11336
29b0b251
PA
113372017-01-31 Pedro Alves <palves@redhat.com>
11338
11339 * mi/mi-interp.c (mi_breakpoint_created, mi_breakpoint_modified):
11340 Fix typos.
11341
289b5b24
PA
113422017-01-31 Pedro Alves <palves@redhat.com>
11343
11344 * stack.c (print_frame_args): Remove local mem_fileopen stream,
11345 not used.
11346
b47413b4
PA
113472017-01-31 Pedro Alves <palves@redhat.com>
11348
11349 * varobj.c (varobj_value_get_print_value): Remove xstrdup call.
11350
60adb36c
PA
113512017-01-31 Pedro Alves <palves@redhat.com>
11352
11353 * common/scoped_restore.h
11354 (scoped_restore_tmpl::scoped_restore_tmpl): Template on T2, and
11355 change the value's parameter type to T2.
11356 (make_scoped_restore): Likewise.
11357
2735833d
WT
113582017-01-27 Walfred Tedeschi <walfred.tedeschi@intel.com>
11359 Richard Henderson <rth@redhat.com>
11360
11361 * amd64-linux-nat.c (PTRACE_ARCH_PRCTL): New define.
11362 (amd64_linux_fetch_inferior_registers): Add case to fetch FS_BASE
11363 GS_BASE for older kernels.
11364 (amd64_linux_store_inferior_registers): Add case to store FS_BASE
11365 GS_BASE for older kernels.
11366 * amd64-linux-tdep.c (amd64_linux_gregset_reg_offset): Add FS_BASE
11367 and GS_BASE to the offset table.
11368 (amd64_linux_register_reggroup_p): Add FS_BASE and GS_BASE to the
11369 system register group.
11370 * amd64-nat.c (amd64_native_gregset_reg_offset): Implements case
11371 for older kernels.
11372 * amd64-tdep.c (amd64_init_abi): Add segment registers for the
11373 amd64 ABI.
11374 * amd64-tdep.h (amd64_regnum): Add AMD64_FSBASE_REGNUM and
11375 AMD64_GSBASE_REGNUM.
11376 (AMD64_NUM_REGS): Set to AMD64_GSBASE_REGNUM + 1.
11377 * features/Makefile (amd64-linux.dat, amd64-avx-linux.dat)
11378 (amd64-mpx-linux.dat, amd64-avx512-linux.dat, x32-linux.dat)
11379 (x32-avx-linux.dat, x32-avx512-linux.dat): Add
11380 i386/64bit-segments.xml in those rules.
11381 * features/i386/64bit-segments.xml: New file.
11382 * features/i386/amd64-avx-mpx-linux.xml: Add 64bit-segments.xml.
11383 * features/i386/amd64-avx-linux.xml: Add 64bit-segments.xml.
11384 * features/i386/amd64-avx512-linux.xml: Add 64bit-segments.xml.
11385 * features/i386/amd64-mpx-linux.xml: Add 64bit-segments.xml.
11386 * features/i386/x32-avx512-linux.xml: Add 64bit-segments.xml.
11387 * features/i386/x32-avx-linux.xml: Add 64bit-segments.xml.
11388 * features/i386/amd64-linux.xml: Add 64bit-segments.xml.
11389 * features/i386/amd64-avx-linux.c: Regenerated.
11390 * features/i386/amd64-avx-mpx-linux.c: Regenerated.
11391 * features/i386/amd64-avx-mpx.c: Regenerated.
11392 * features/i386/amd64-avx512-linux.c: Regenerated.
11393 * features/i386/amd64-linux.c: Regenerated.
11394 * features/i386/amd64-mpx-linux.c: Regenerated.
11395 * features/i386/i386-avx-mpx-linux.c: Regenerated.
11396 * features/i386/i386-avx-mpx.c: Regenerated.
11397 * features/i386/x32-avx-linux.c: Regenerated.
11398 * features/i386/x32-avx512-linux.c: Regenerated.
11399 * regformats/i386/amd64-avx-linux.dat: Regenerated.
11400 * regformats/i386/amd64-avx-mpx-linux.dat: Regenerated.
11401 * regformats/i386/amd64-avx512-linux.dat: Regenerated.
11402 * regformats/i386/amd64-linux.dat: Regenerated.
11403 * regformats/i386/amd64-mpx-linux.dat: Regenerated.
11404 * regformats/i386/x32-avx-linux.dat: Regenerated.
11405 * regformats/i386/x32-avx512-linux.dat: Regenerated.
11406 * regformats/i386/x32-linux.dat: Regenerated.
11407
8884e97e
WT
114082017-01-27 Walfred Tedeschi <walfred.tedeschi@intel.com>
11409
11410 * amd64-linux-tdep.h (AMD64_LINUX_ORIG_RAX_REGNUM):
11411 Set to AMD64_NUM_REGS.
11412
7005d26a
WT
114132017-01-27 Walfred Tedeschi <walfred.tedeschi@intel.com>
11414
11415 * amd64-nat.c (amd64_native_gregset_reg_offset): Simplify logic
11416 that checks validity of a register number.
11417
4bd2e1b2
KC
114182017-01-27 Kees Cook <keescook@google.com>
11419
11420 * gdb/arm-linux-nat.c (arm_linux_fetch_inferior_registers): Call
11421 fetch_fpregs if target has fpa registers.
11422 (arm_linux_store_inferior_registers): Call store_fpregs if target
11423 has fpa registers.
11424
7cf1de6c
AA
114252017-01-26 Andreas Arnez <arnez@linux.vnet.ibm.com>
11426
11427 * cris-tdep.c (cris_gdbarch_init): Remove check for
11428 info.byte_order and force it to BFD_ENDIAN_LITTLE.
11429
874a1c8c
AT
114302017-01-26 Antoine Tremblay <antoine.tremblay@ericsson.com>
11431
11432 * corelow.c (get_core_register_section): Check for regset
11433 existence before checking for REGSET_VARIABLE_SIZE.
11434
d8b49cf0
YQ
114352017-01-26 Yao Qi <yao.qi@linaro.org>
11436 Pedro Alves <palves@redhat.com>
11437
11438 PR gdb/20939
11439 * disasm.c (gdb_disassembler::dis_asm_memory_error): Don't
11440 call memory_error, save memaddr instead.
11441 (gdb_disassembler::print_insn): If gdbarch_print_insn returns
11442 negative, cal memory_error.
11443 * disasm.h (gdb_disassembler) <m_err_memaddr>: New field.
11444
658ca58c
YQ
114452017-01-26 Yao Qi <yao.qi@linaro.org>
11446
11447 * disasm-selftests.c (memory_error_test): New function.
11448 (_initialize_disasm_selftests): Register memory_error_test.
11449
79843d45
YQ
114502017-01-26 Yao Qi <yao.qi@linaro.org>
11451
11452 * Makefile.in (SFILES): Add disasm-selftests.c and
11453 selftest-arch.c.
11454 (COMMON_OBS): Add disasm-selftests.o and selftest-arch.o.
11455 * disasm-selftests.c: New file.
11456 * selftest-arch.c: New file.
11457 * selftest-arch.h: New file.
11458
8cafda32
YQ
114592017-01-26 Yao Qi <yao.qi@linaro.org>
11460
11461 * mep-tdep.c (mep_gdb_print_insn): Set info->arch
11462 to bfd_arch_mep. Don't return 0 if section is not
11463 found. Call print_insn_mep.
11464
e47ad6c0
YQ
114652017-01-26 Pedro Alves <palves@redhat.com>
11466 Yao Qi <yao.qi@linaro.org>
11467
11468 * arm-tdep.c: Include "disasm.h".
11469 (gdb_print_insn_arm): Update code to get gdbarch.
11470 * disasm.c (dis_asm_read_memory): Change it to
11471 gdb_disassembler::dis_asm_read_memory.
11472 (dis_asm_memory_error): Likewise.
11473 (dis_asm_print_address): Likewise.
11474 (gdb_pretty_print_insn): Change it to
11475 gdb_disassembler::pretty_print_insn.
11476 (dump_insns): Add one argument gdb_disassemlber. All
11477 callers updated.
11478 (do_mixed_source_and_assembly_deprecated): Likewise.
11479 (do_mixed_source_and_assembly): Likewise.
11480 (do_assembly_only): Likewise.
11481 (gdb_disassembler::gdb_disassembler): New.
11482 (gdb_disassembler::print_insn): New.
11483 * disasm.h (class gdb_disassembler): New.
11484 (gdb_pretty_print_insn): Remove declaration.
11485 (gdb_disassemble_info): Likewise.
11486 * guile/scm-disasm.c (class gdbscm_disassembler): New.
11487 (gdbscm_disasm_read_memory_worker): Update.
11488 (gdbscm_disasm_read_memory): Update.
11489 (gdbscm_disasm_memory_error): Remove.
11490 (gdbscm_disasm_print_address): Remove.
11491 (gdbscm_disassembler::gdbscm_disassembler): New.
11492 (gdbscm_print_insn_from_port): Update.
11493 * mips-tdep.c: Include disasm.h.
11494 (gdb_print_insn_mips): Update code to get gdbarch.
11495 * record-btrace.c (btrace_insn_history): Update.
11496 * spu-tdep.c: Include disasm.h.
11497 (struct spu_dis_asm_data): Remove.
11498 (struct spu_dis_asm_info): New.
11499 (spu_dis_asm_print_address): Use spu_dis_asm_info to get
11500 SPU id.
11501 (gdb_print_insn_spu): Cast disassemble_info to
11502 spu_dis_asm_info.
11503
80d75874
YQ
115042017-01-26 Yao Qi <yao.qi@linaro.org>
11505
11506 * disasm.c (do_ui_file_delete): Delete.
11507 (gdb_insn_length): Move code creating stream to ...
11508 * utils.c (null_stream): ... here. New function.
11509 * utils.h (null_stream): Declare.
11510
60685cd0
SM
115112017-01-23 Simon Marchi <simon.marchi@polymtl.ca>
11512
11513 * python/py-inferior.c (find_thread_object): Return directly
11514 from the loop. Remove "found" variable.
11515
eb1cdb62
JB
115162017-01-21 Joel Brobecker <brobecker@adacore.com>
11517
11518 GDB 7.12.1 released.
11519
b1ce6568
SM
115202017-01-20 Simon Marchi <simon.marchi@ericsson.com>
11521
11522 * python/py-function.c (fnpy_call): Reorder declarations to have
11523 the gdbpy_enter object declared first.
11524 * python/py-xmethods.c (gdbpy_get_xmethod_arg_types): Likewise.
11525
6f8b0407
SM
115262017-01-20 Simon Marchi <simon.marchi@ericsson.com>
11527
fec93fb1 11528 PR python/21068
6f8b0407
SM
11529 * python/python-internal.h (PyMem_RawMalloc): Define for
11530 Python < 3.4.
11531 * python/py-gdb-readline.c (gdbpy_readline_wrapper): Use
11532 PyMem_RawMalloc instead of PyMem_Malloc.
11533
78cbbba8
LM
115342017-01-20 Mike Wrighton <mike_wrighton@codesourcery.com>
11535 Luis Machado <lgustavo@codesourcery.com>
11536
11537 * NEWS (New commands): Mention flash-erase.
11538 (New MI commands): Mention target-flash-erase.
11539 * mi/mi-cmds.c (mi_cmd_target_flash_erase): Add target-flash-erase MI
11540 command.
11541 * mi/mi-cmds.h (mi_cmd_target_flash_erase): New declaration.
11542 * mi/mi-main.c (mi_cmd_target_flash_erase): New function.
11543 * target.c (flash_erase_command): New function.
11544 (initialize_targets): Add new flash-erase command.
11545 * target.h (flash_erase_command): New declaration.
11546
2132fe85
JB
115472017-01-20 Joel Brobecker <brobecker@adacore.com>
11548
11549 * nat/linux-ptrace.c: Only include <sys/procfs.h> if
11550 HAVE_SYS_PROCFS_H is defined.
11551
d1dff226
AH
115522017-01-18 Alan Hayward <alan.hayward@arm.com>
11553
11554 * remote.c (struct cached_reg): Change data into a pointer.
11555 * (stop_reply_dtr): Free data pointers before deleting vector.
11556 (process_stop_reply): Likewise.
11557 (remote_parse_stop_reply): Allocate space for data
11558
9890e433
AH
115592017-01-18 Alan Hayward <alan.hayward@arm.com>
11560
11561 * amd64-tdep.c (amd64_pseudo_register_read_value): remove
11562 MAX_REGISTER_SIZE.
11563 (amd64_pseudo_register_read_value): Likewise.
11564 * remote.c (fetch_register_using_p): Remove MAX_REGISTER_SIZE.
11565 (store_register_using_P): Likewise.
11566 * regcache.c (regcache_xfer_part): Likewise.
11567
7a36499a
IR
115682017-01-16 Ivo Raisr <ivo.raisr@oracle.com>
11569
11570 Split real and pseudo registers.
11571 * sparc-tdep.h (SPARC_CORE_REGISTERS): New macro.
11572 (sparc32_pseudo_regnum): New enum.
11573 * sparc64-tdep.h (sparc64_pseudo_regnum): New enum.
11574 * sparc-tdep.c (SPARC32_FPU_REGISTERS): New macro.
11575 (SPARC32_CP0_REGISTERS): New macro.
11576 (sparc32_pseudo_register_name): New function.
11577 (sparc32_register_name): Use sparc32_pseudo_register_name.
11578 (sparc32_pseudo_register_type): New function.
11579 (sparc32_register_type): Use sparc32_pseudo_register_type.
11580 (sparc32_pseudo_register_read, sparc32_pseudo_register_write): Handle
11581 pseudo register numbers.
11582 * sparc64-tdep.c SPARC64_FPU_REGISTERS): New macro.
11583 (SPARC64_CP0_REGISTERS): New macro.
11584 (sparc64_pseudo_register_name): New function.
11585 (sparc64_register_name): Use sparc64_pseudo_register_name.
11586 (sparc64_pseudo_register_type): New function.
11587 (sparc64_register_type): Use sparc64_pseudo_register_type.
11588 (sparc64_pseudo_register_read, sparc64_pseudo_register_write): Handle
11589 pseudo register numbers.
11590 (sparc64_store_floating_fields, sparc64_extract_floating_fields,
11591 sparc64_store_arguments): Handle pseudo register numbers.
11592
6f8976bf
YQ
115932017-01-13 Yao Qi <yao.qi@linaro.org>
11594
11595 * remote.c (REMOTE_DEBUG_MAX_CHAR): New macro.
11596 (putpkt_binary): Print only REMOTE_DEBUG_MAX_CHAR chars in debug
11597 output.
11598 (getpkt_or_notif_sane_1): Likewise.
11599
e4241ace
YQ
116002017-01-13 Yao Qi <yao.qi@linaro.org>
11601
11602 * Makefile.in (checker-headers): Use CXX and CXX_DIALET instead
11603 of CC. Pass "-x c++-header" instead of "-x c".
11604
3015c064
SM
116052017-01-12 Simon Marchi <simon.marchi@ericsson.com>
11606
11607 * remote.c (remote_can_async_p): Update comment.
11608
fde1b17d
SM
116092017-01-12 Simon Marchi <simon.marchi@ericsson.com>
11610
11611 * linux-nat.c (linux_nat_can_async_p): Update comment.
11612
ca1ca08b
SM
116132017-01-12 Simon Marchi <simon.marchi@ericsson.com>
11614
11615 * serial.c (serial_open): Forget about "pc" and "lpt" serial interface.
11616
4ad2da73
SM
116172017-01-11 Simon Marchi <simon.marchi@ericsson.com>
11618
11619 * cli/cli-decode.c (lookup_cmd_1): Fix typo in comment.
11620
c8b23b3f
TT
116212017-01-10 Tom Tromey <tom@tromey.com>
11622
11623 * python/py-type.c (typy_legacy_template_argument): Update.
11624 * cp-support.h (struct demangle_parse_info) (demangle_parse_info,
11625 ~demangle_parse_info): Declare new members.
11626 (cp_demangled_name_to_comp): Return unique_ptr.
11627 (cp_demangled_name_parse_free)
11628 (make_cleanup_cp_demangled_name_parse_free)
11629 (cp_new_demangle_parse_info): Remove.
11630 * cp-support.c (do_demangled_name_parse_free_cleanup)
11631 (make_cleanup_cp_demangled_name_parse_free): Remove.
11632 (inspect_type, cp_canonicalize_string_full)
11633 (cp_canonicalize_string): Update.
11634 (mangled_name_to_comp): Change return type.
11635 (cp_class_name_from_physname, method_name_from_physname)
11636 (cp_func_name, cp_remove_params): Update.
11637 * cp-name-parser.y (demangle_parse_info): New constructor, from
11638 cp_new_demangle_parse_info.
11639 (~demangle_parse_info): New destructor, from
11640 cp_demangled_name_parse_free.
11641 (cp_merge_demangle_parse_infos): Update.
11642 (cp_demangled_name_to_comp): Change return type.
11643
1ac32117
TT
116442017-01-10 Tom Tromey <tom@tromey.com>
11645
11646 * top.c (prevent_dont_repeat): Change return type.
11647 * python/python.c (execute_gdb_command): Use std::string.
11648 Update.
11649 * guile/guile.c (gdbscm_execute_gdb_command): Update.
11650 * command.h (prevent_dont_repeat): Change return type.
11651 * breakpoint.c (bpstat_do_actions_1): Update.
11652
0cf08227
TT
116532017-01-10 Tom Tromey <tom@tromey.com>
11654
11655 * value.h (scoped_value_mark::~scoped_value_mark): Call
11656 free_to_mark.
11657 (scoped_value_mark::free_to_mark): New method.
11658 * dwarf2loc.c (dwarf2_evaluate_loc_desc_full): Use
11659 scoped_value_mark.
11660
eb115069
TT
116612017-01-10 Tom Tromey <tom@tromey.com>
11662
11663 * python/py-value.c (valpy_dereference, valpy_referenced_value)
11664 (valpy_reference_value, valpy_const_value, valpy_get_address)
11665 (valpy_get_dynamic_type, valpy_lazy_string, valpy_do_cast)
11666 (valpy_getitem, valpy_call, valpy_binop_throw, valpy_negative)
11667 (valpy_absolute, valpy_richcompare_throw): Use scoped_value_mark.
11668 * dwarf2loc.c (dwarf2_loc_desc_get_symbol_read_needs): Use
11669 scoped_value_mark.
11670 * dwarf2-frame.c (execute_stack_op): Use scoped_value_mark.
11671 * value.h (scoped_value_mark): New class.
11672
906768f9
TT
116732017-01-10 Tom Tromey <tom@tromey.com>
11674
11675 * dwarf2read.c (dwarf2_build_psymtabs): Use psymtab_discarder.
11676 * psympriv.h (make_cleanup_discard_psymtabs): Don't declare.
11677 * psymtab.c (discard_psymtabs_upto): Remove.
11678 (make_cleanup_discard_psymtabs): Remove.
11679 (struct psymtab_state): Remove.
11680
bef155c3
TT
116812017-01-10 Tom Tromey <tom@tromey.com>
11682
11683 * record-full.c (record_full_save_cleanups): Remove.
11684 (record_full_save): Use gdb::unlinker.
11685 * gcore.c (do_bfd_delete_cleanup): Remove.
11686 (gcore_command): Use gdb::unlinker, unique_xmalloc_ptr. Remove
11687 cleanups.
11688 * dwarf2read.c (unlink_if_set): Remove.
11689 (write_psymtabs_to_index): Use gdb::unlinker.
11690 * common/gdb_unlinker.h: New file.
11691
192b62ce
TT
116922017-01-10 Tom Tromey <tom@tromey.com>
11693
11694 * windows-tdep.c (windows_xfer_shared_library): Update.
11695 * windows-nat.c (windows_make_so): Update.
11696 * utils.h (make_cleanup_bfd_unref): Remove.
11697 * utils.c (do_bfd_close_cleanup, make_cleanup_bfd_unref): Remove.
11698 * symfile.h (symfile_bfd_open)
11699 (find_separate_debug_file_in_section): Return gdb_bfd_ref_ptr.
11700 * symfile.c (read_symbols, symbol_file_add)
11701 (separate_debug_file_exists): Update.
11702 (symfile_bfd_open): Return gdb_bfd_ref_ptr.
11703 (generic_load, reread_symbols): Update.
11704 * symfile-mem.c (symbol_file_add_from_memory): Update.
11705 * spu-linux-nat.c (spu_bfd_open): Return gdb_bfd_ref_ptr.
11706 (spu_symbol_file_add_from_memory): Update.
11707 * solist.h (struct target_so_ops) <bfd_open>: Return
11708 gdb_bfd_ref_ptr.
11709 (solib_bfd_fopen, solib_bfd_open): Return gdb_bfd_ref_ptr.
11710 * solib.c (solib_bfd_fopen, solib_bfd_open): Return
11711 gdb_bfd_ref_ptr.
11712 (solib_map_sections, reload_shared_libraries_1): Update.
11713 * solib-svr4.c (enable_break): Update.
11714 * solib-spu.c (spu_bfd_fopen): Return gdb_bfd_ref_ptr.
11715 * solib-frv.c (enable_break2): Update.
11716 * solib-dsbt.c (enable_break): Update.
11717 * solib-darwin.c (gdb_bfd_mach_o_fat_extract): Return
11718 gdb_bfd_ref_ptr.
11719 (darwin_solib_get_all_image_info_addr_at_init): Update.
11720 (darwin_bfd_open): Return gdb_bfd_ref_ptr.
11721 * solib-aix.c (solib_aix_bfd_open): Return gdb_bfd_ref_ptr.
11722 * record-full.c (record_full_save): Update.
11723 * python/py-objfile.c (objfpy_add_separate_debug_file): Update.
11724 * procfs.c (insert_dbx_link_bpt_in_file): Update.
11725 * minidebug.c (find_separate_debug_file_in_section): Return
11726 gdb_bfd_ref_ptr.
11727 * machoread.c (macho_add_oso_symfile): Change abfd to
11728 gdb_bfd_ref_ptr.
11729 (macho_symfile_read_all_oso): Update.
11730 (macho_check_dsym): Return gdb_bfd_ref_ptr.
11731 (macho_symfile_read): Update.
11732 * jit.c (bfd_open_from_target_memory): Return gdb_bfd_ref_ptr.
11733 (jit_bfd_try_read_symtab): Update.
11734 * gdb_bfd.h (gdb_bfd_open, gdb_bfd_fopen, gdb_bfd_openr)
11735 (gdb_bfd_openw, gdb_bfd_openr_iovec)
11736 (gdb_bfd_openr_next_archived_file, gdb_bfd_fdopenr): Return
11737 gdb_bfd_ref_ptr.
11738 (gdb_bfd_ref_policy): New struct.
11739 (gdb_bfd_ref_ptr): New typedef.
11740 * gdb_bfd.c (gdb_bfd_open, gdb_bfd_fopen, gdb_bfd_openr)
11741 (gdb_bfd_openw, gdb_bfd_openr_iovec)
11742 (gdb_bfd_openr_next_archived_file, gdb_bfd_fdopenr): Return
11743 gdb_bfd_ref_ptr.
11744 * gcore.h (create_gcore_bfd): Return gdb_bfd_ref_ptr.
11745 * gcore.c (create_gcore_bfd): Return gdb_bfd_ref_ptr.
11746 (gcore_command): Update.
11747 * exec.c (exec_file_attach): Update.
11748 * elfread.c (elf_symfile_read): Update.
11749 * dwarf2read.c (dwarf2_get_dwz_file): Update.
11750 (try_open_dwop_file, open_dwo_file): Return gdb_bfd_ref_ptr.
11751 (open_and_init_dwo_file): Update.
11752 (open_dwp_file): Return gdb_bfd_ref_ptr.
11753 (open_and_init_dwp_file): Update.
11754 * corelow.c (core_open): Update.
11755 * compile/compile-object-load.c (compile_object_load): Update.
11756 * common/gdb_ref_ptr.h (ref_ptr::operator->): New operator.
11757 * coffread.c (coff_symfile_read): Update.
11758 * cli/cli-dump.c (bfd_openr_or_error, bfd_openw_or_error): Return
11759 gdb_bfd_ref_ptr. Rename.
11760 (dump_bfd_file, restore_command): Update.
11761 * build-id.h (build_id_to_debug_bfd): Return gdb_bfd_ref_ptr.
11762 * build-id.c (build_id_to_debug_bfd): Return gdb_bfd_ref_ptr.
11763 (find_separate_debug_file_by_buildid): Update.
11764
50315b21
TT
117652017-01-10 Tom Tromey <tom@tromey.com>
11766
11767 * common/gdb_ref_ptr.h: New file.
11768 * python/py-ref.h (struct gdbpy_ref_policy): New.
11769 (gdbpy_ref): Now a typedef.
11770
fc4007c9
TT
117712017-01-10 Tom Tromey <tom@tromey.com>
11772
11773 * utils.h (make_cleanup_htab_delete): Don't declare.
11774 * utils.c (do_htab_delete_cleanup, make_cleanup_htab_delete):
11775 Remove.
11776 * linespec.c (decode_compound_collector): Add constructor,
11777 destructor.
11778 (lookup_prefix_sym): Remove cleanup.
11779 (symtab_collector): Add constructor, destructor.
11780 (collect_symtabs_from_filename): Remove cleanup.
11781 * disasm.c (do_mixed_source_and_assembly): Use htab_up.
11782 * compile/compile-c-symbols.c (generate_c_for_variable_locations):
11783 Use htab_up.
11784 * gnu-v3-abi.c (gnuv3_print_vtable): Use htab_up.
11785 * dwarf2read.c (dw2_expand_symtabs_matching)
11786 (dw2_map_symbol_filenames, dwarf_decode_macros)
11787 (write_psymtabs_to_index): Use htab_up.
11788 * dwarf2loc.c (func_verify_no_selftailcall)
11789 (call_site_find_chain_1, func_verify_no_selftailcall)
11790 (chain_candidate, call_site_find_chain_1): Use std::unordered_set,
11791 std::vector, gdb::unique_xmalloc_ptr.
11792 (call_sitep): Remove typedef.
11793 (dwarf2_locexpr_baton_eval): Remove unused variable.
11794
8dbcee67
TT
117952017-01-10 Tom Tromey <tom@tromey.com>
11796
11797 * python/python-internal.h (make_cleanup_py_decref)
11798 (make_cleanup_py_xdecref): Don't declare.
11799 * python/py-utils.c (py_decref, make_cleanup_py_decref)
11800 (py_xdecref, make_cleanup_py_xdecref): Remove.
11801
13df46cc
TT
118022017-01-10 Tom Tromey <tom@tromey.com>
11803
11804 * python/py-framefilter.c (py_mi_print_variables): Use gdbpy_ref.
11805 (py_print_locals, enumerate_locals, py_print_args): Use gdbpy_ref.
11806
06fc9bf7
TT
118072017-01-10 Tom Tromey <tom@tromey.com>
11808
11809 * python/py-framefilter.c (enumerate_args): Use gdbpy_ref.
11810
830a4934
TT
118112017-01-10 Tom Tromey <tom@tromey.com>
11812
11813 * python/py-utils.c (unicode_to_encoded_string)
11814 (python_string_to_target_string)
11815 (python_string_to_target_python_string)
11816 (python_string_to_host_string, gdbpy_obj_to_string)
11817 (get_addr_from_python): Use gdbpy_ref.
11818
4586d543
TT
118192017-01-10 Tom Tromey <tom@tromey.com>
11820
11821 * python/py-unwind.c (pyuw_object_attribute_to_pointer): Use
11822 gdbpy_ref.
11823
59876f8f
TT
118242017-01-10 Tom Tromey <tom@tromey.com>
11825
11826 * python/python.c (eval_python_command, gdbpy_decode_line)
11827 (gdbpy_run_events, gdbpy_start_type_printers)
11828 (gdbpy_apply_type_printers): Use gdbpy_ref.
11829
97d83487
TT
118302017-01-10 Tom Tromey <tom@tromey.com>
11831
11832 * python/py-param.c (get_doc_string, compute_enum_values): Use
11833 gdbpy_ref.
11834
9205649a
TT
118352017-01-10 Tom Tromey <tom@tromey.com>
11836
11837 * python/py-inferior.c (find_thread_object, build_inferior_list):
11838 Use gdbpy_ref.
11839
74c49d45
TT
118402017-01-10 Tom Tromey <tom@tromey.com>
11841
11842 * python/py-framefilter.c (py_print_frame): Use gdbpy_ref.
11843
16361ffb
TT
118442017-01-10 Tom Tromey <tom@tromey.com>
11845
11846 * python/py-finishbreakpoint.c (bpfinishpy_out_of_scope): Use
11847 gdbpy_ref.
11848
905f2cca
TT
118492017-01-10 Tom Tromey <tom@tromey.com>
11850
11851 * python/py-cmd.c (cmdpy_completer_helper): Use gdbpy_ref. Remove
11852 extra incref.
11853 (cmdpy_completer_handle_brkchars, cmdpy_completer, cmdpy_init):
11854 Use gdbpy_ref.
11855
64081434
TT
118562017-01-10 Tom Tromey <tom@tromey.com>
11857
11858 * python/py-breakpoint.c (gdbpy_breakpoint_cond_says_stop): Use
11859 gdbpy_ref.
11860
59e9e831
TT
118612017-01-10 Tom Tromey <tom@tromey.com>
11862
11863 * python/py-arch.c (archpy_disassemble): Use gdbpy_ref. Don't
11864 decref results of PyArg_ParseTupleAndKeywords.
11865
9de10f6d
TT
118662017-01-10 Tom Tromey <tom@tromey.com>
11867
11868 * python/python.c (python_run_simple_file): Use
11869 unique_xmalloc_ptr, gdbpy_ref.
11870
2bd5759d
TT
118712017-01-10 Tom Tromey <tom@tromey.com>
11872
11873 * python/py-prettyprint.c (print_stack_unless_memory_error)
11874 (print_string_repr, print_children): Use gdbpy_ref.
11875 (dummy_python_frame): New class.
11876 (dummy_python_frame::dummy_python_frame): Rename from
11877 push_dummy_python_frame.
11878 (py_restore_tstate): Remove.
11879
3b4e0e01
TT
118802017-01-10 Tom Tromey <tom@tromey.com>
11881
11882 * python/py-framefilter.c (py_print_frame): Use gdbpy_ref.
11883
17a22718
TT
118842017-01-10 Tom Tromey <tom@tromey.com>
11885
11886 * python/python.c (ensure_python_env, restore_python_env):
11887 Remove.
11888 * python/python-internal.h (ensure_python_env): Don't declare.
11889 * varobj.h (varobj_ensure_python_env): Don't declare.
11890 * varobj.c (varobj_ensure_python_env): Remove.
11891
68cdc557
TT
118922017-01-10 Tom Tromey <tom@tromey.com>
11893
11894 * varobj.c (varobj_value_get_print_value): Use
11895 gdbpy_enter_varobj.
11896
1eba6383
TT
118972017-01-10 Tom Tromey <tom@tromey.com>
11898
11899 * python/py-prettyprint.c (print_string_repr, print_children):
11900 Update.
11901 * python/py-lazy-string.c (gdbpy_extract_lazy_string): Change type
11902 of "encoding".
11903 * varobj.c (varobj_value_get_print_value): Update.
11904 * python/python-internal.h (gdbpy_extract_lazy_string): Update.
11905
bde7b3e3
TT
119062017-01-10 Tom Tromey <tom@tromey.com>
11907
11908 * varobj.c (varobj_get_display_hint)
11909 (dynamic_varobj_has_child_method, install_new_value_visualizer)
11910 (varobj_set_visualizer, free_variable): Use
11911 gdbpy_enter_varobj.
11912
a7785f8c
TT
119132017-01-10 Tom Tromey <tom@tromey.com>
11914
11915 * python/python.c (python_command): Use gdbpy_enter, gdbpy_ref.
11916 (do_finish_initialization): New function. Use gdbpy_ref.
11917 (gdbpy_finish_initialization): Use gdbpy_enter. Call
11918 do_finish_initialization.
11919
2865bfce
TT
119202017-01-10 Tom Tromey <tom@tromey.com>
11921
11922 * python/py-param.c (get_set_value, get_show_value): Use
11923 gdbpy_enter, gdbpy_ref.
11924
0e9dcc75
TT
119252017-01-10 Tom Tromey <tom@tromey.com>
11926
11927 * python/py-function.c (fnpy_call): Use gdbpy_enter, gdbpy_ref.
11928
12a5cedd
TT
119292017-01-10 Tom Tromey <tom@tromey.com>
11930
11931 * python/py-cmd.c (cmdpy_function): Use gdbpy_enter, gdbpy_ref.
11932
788f2586
TT
119332017-01-10 Tom Tromey <tom@tromey.com>
11934
11935 * python/py-varobj.c (py_varobj_iter_dtor, py_varobj_iter_next):
11936 Use gdbpy_enter_varobj.
11937
6cd67bea
TT
119382017-01-10 Tom Tromey <tom@tromey.com>
11939
11940 * varobj.c (gdbpy_enter_varobj): New constructor.
11941 * python/python-internal.h (gdbpy_enter_varobj): New class.
11942 * python/py-varobj.c (py_varobj_get_iterator): Use
11943 gdbpy_enter_varobj.
11944
14b122bf
TT
119452017-01-10 Tom Tromey <tom@tromey.com>
11946
11947 * python/py-xmethods.c (gdbpy_get_xmethod_result_type): Use
11948 gdbpy_enter, gdbpy_ref, unique_xmalloc_ptr.
11949 (gdbpy_invoke_xmethod): Use gdbpy_ref, gdbpy_enter.
11950 (gdbpy_get_xmethod_arg_types): Use gdbpy_ref,
11951 unique_xmalloc_ptr.
11952 (gdbpy_get_xmethod_arg_types): Use gdbpy_ref, gdbpy_enter.
11953
bf1ca3b9
TT
119542017-01-10 Tom Tromey <tom@tromey.com>
11955
11956 * python/py-xmethods.c (invoke_match_method): Use
11957 gdbpy_ref.
11958
572a5524
TT
119592017-01-10 Tom Tromey <tom@tromey.com>
11960
11961 * python/py-xmethods.c (gdbpy_get_matching_xmethod_workers): use
11962 gdbpy_enter, gdbpy_ref.
11963
396a78b6
TT
119642017-01-10 Tom Tromey <tom@tromey.com>
11965
11966 * python/python.c (python_interactive_command): Use gdbpy_enter.
11967
a88b13c7
TT
119682017-01-10 Tom Tromey <tom@tromey.com>
11969
11970 * python/python.c (gdbpy_before_prompt_hook): Use gdbpy_enter,
11971 gdbpy_ref.
11972
e9f0c363
TT
119732017-01-10 Tom Tromey <tom@tromey.com>
11974
11975 * python/py-prettyprint.c (gdbpy_apply_val_pretty_printer): Use
11976 gdbpy_enter, gdbpy_ref, unique_xmalloc_ptr.
11977
6349f452
TT
119782017-01-10 Tom Tromey <tom@tromey.com>
11979
11980 * utils.h (htab_deleter): New struct.
11981 (htab_up): New typedef.
11982 * python/py-framefilter.c (gdbpy_apply_frame_filter): Use
11983 gdbpy_enter, gdbpy_ref, htab_up.
11984
c0171de6
TT
119852017-01-10 Tom Tromey <tom@tromey.com>
11986
11987 * python/py-unwind.c (pending_frame_invalidate): Remove.
11988 (pyuw_sniffer): Use gdbpy_enter and gdbpy_ref.
11989
f18e226f
TT
119902017-01-10 Tom Tromey <tom@tromey.com>
11991
11992 * python/py-xmethods.c (gdbpy_free_xmethod_worker_data)
11993 (gdbpy_clone_xmethod_worker_data): Use gdbpy_enter.
11994
c57af3f1
TT
119952017-01-10 Tom Tromey <tom@tromey.com>
11996
11997 * python/py-type.c (save_objfile_types): Use gdbpy_enter.
11998
60e600ec
TT
119992017-01-10 Tom Tromey <tom@tromey.com>
12000
12001 * python/python.c (gdbpy_eval_from_control_command)
12002 (gdbpy_source_script, gdbpy_run_events)
12003 (gdbpy_source_objfile_script, gdbpy_execute_objfile_script)
12004 (gdbpy_free_type_printers, gdbpy_finish_initialization): Use
12005 gdbpy_enter.
12006
bf7da5b0
TT
120072017-01-10 Tom Tromey <tom@tromey.com>
12008
12009 * python/py-progspace.c (py_free_pspace): Use gdbpy_enter.
12010
2d38bced
TT
120112017-01-10 Tom Tromey <tom@tromey.com>
12012
12013 * python/py-objfile.c (py_free_objfile): Use gdbpy_enter.
12014
07bc7329
TT
120152017-01-10 Tom Tromey <tom@tromey.com>
12016
12017 * python/py-inferior.c (python_on_normal_stop, python_on_resume)
12018 (python_on_inferior_call_pre, python_on_inferior_call_post)
12019 (python_on_memory_change, python_on_register_change)
12020 (python_inferior_exit, python_new_objfile, add_thread_object)
12021 (delete_thread_object, py_free_inferior): Use gdbpy_enter.
12022
6e7c365e
TT
120232017-01-10 Tom Tromey <tom@tromey.com>
12024
12025 * python/py-finishbreakpoint.c (bpfinishpy_handle_stop)
12026 (bpfinishpy_handle_exit): Use gdbpy_enter.
12027
6ba0cd40
TT
120282017-01-10 Tom Tromey <tom@tromey.com>
12029
12030 * python/py-cmd.c (cmdpy_destroyer)
12031 (cmdpy_completer_handle_brkchars, cmdpy_completer): Use
12032 gdbpy_enter.
12033
de2dc875
TT
120342017-01-10 Tom Tromey <tom@tromey.com>
12035
12036 * python/py-breakpoint.c (gdbpy_breakpoint_cond_says_stop): Use
12037 gdbpy_enter.
12038 (gdbpy_breakpoint_has_cond): Likewise.
12039
4ecee2c4
TT
120402017-01-10 Tom Tromey <tom@tromey.com>
12041
12042 * python/python.c (gdbpy_enter): New constructor.
12043 (~gdbpy_enter): New destructor.
12044 (restore_python_env, ensure_python_env): Rewrite.
12045 * python/python-internal.h (gdbpy_enter): New class.
12046
37fce74f
TT
120472017-01-10 Tom Tromey <tom@tromey.com>
12048
12049 * python/py-symbol.c (gdbpy_lookup_symbol): Use gdbpy_ref.
12050
53a0cca3
TT
120512017-01-10 Tom Tromey <tom@tromey.com>
12052
12053 * python/py-value.c (value_has_field, get_field_flag)
12054 (get_field_type, valpy_getitem, convert_value_from_python): Use
12055 gdbpy_ref.
12056
ff3724f5
TT
120572017-01-10 Tom Tromey <tom@tromey.com>
12058
12059 * python/python.c (gdbpy_progspaces, gdbpy_objfiles): Use
12060 gdbpy_ref.
12061
0700aea5
TT
120622017-01-10 Tom Tromey <tom@tromey.com>
12063
12064 * python/py-prettyprint.c (search_pp_list)
12065 (find_pretty_printer_from_objfiles)
12066 (find_pretty_printer_from_progspace)
12067 (find_pretty_printer_from_gdb, find_pretty_printer)
12068 (gdbpy_get_display_hint, gdbpy_get_varobj_pretty_printer): Use
12069 gdbpy_ref.
12070
1bb44c9f
TT
120712017-01-10 Tom Tromey <tom@tromey.com>
12072
12073 * python/py-param.c (call_doc_function): Use gdbpy_ref.
12074
87ce03fd
TT
120752017-01-10 Tom Tromey <tom@tromey.com>
12076
12077 * python/py-linetable.c (build_line_table_tuple_from_pcs)
12078 (ltpy_get_all_source_lines): Use gdbpy_ref.
12079
ee0a3fb8
TT
120802017-01-10 Tom Tromey <tom@tromey.com>
12081
12082 * python/py-framefilter.c (extract_sym, extract_value)
12083 (get_py_iter_from_func, bootstrap_python_frame_filters): Use
12084 gdbpy_ref.
12085
bf2a52fa
TT
120862017-01-10 Tom Tromey <tom@tromey.com>
12087
12088 * python/py-breakpoint.c (gdbpy_breakpoints): Use gdbpy_ref.
12089
f59fe7f8
TT
120902017-01-10 Tom Tromey <tom@tromey.com>
12091
12092 * python/py-inferior.c (gdbpy_inferiors): Use gdbpy_ref.
12093
80bd970a
TT
120942017-01-10 Tom Tromey <tom@tromey.com>
12095
12096 * python/py-function.c (convert_values_to_python, fnpy_init): Use
12097 gdbpy_ref.
12098
d1b3de2e
TT
120992017-01-10 Tom Tromey <tom@tromey.com>
12100
12101 * python/py-cmd.c (gdbpy_string_to_argv): Use gdbpy_ref.
12102
3bb43384
TT
121032017-01-10 Tom Tromey <tom@tromey.com>
12104
12105 * python/py-type.c (convert_field, make_fielditem, typy_fields)
12106 (typy_range): Use gdbpy_ref.
12107
abf5651e
TT
121082017-01-10 Tom Tromey <tom@tromey.com>
12109
12110 * python/py-threadevent.c (create_thread_event_object): Use
12111 gdbpy_ref.
12112 * python/py-stopevent.c (create_stop_event_object): Simplify.
12113 (emit_stop_event): Use gdbpy_ref.
12114 * python/py-signalevent.c (create_signal_event_object): Use
12115 gdbpy_ref.
12116 * python/py-newobjfileevent.c (create_new_objfile_event_object)
12117 (emit_new_objfile_event, create_clear_objfiles_event_object)
12118 (emit_clear_objfiles_event): Use gdbpy_ref.
12119 * python/py-infevents.c (create_inferior_call_event_object)
12120 (create_register_changed_event_object)
12121 (create_memory_changed_event_object, emit_inferior_call_event)
12122 (emit_memory_changed_event, emit_register_changed_event): Use
12123 gdbpy_ref.
12124 * python/py-exitedevent.c (create_exited_event_object)
12125 (emit_exited_event): Use gdbpy_ref.
12126 * python/py-event.h (evpy_emit_event): Remove
12127 CPYCHECKER_STEALS_REFERENCE_TO_ARG annotation.
12128 * python/py-event.c (evpy_emit_event): Use gdbpy_ref.
12129 * python/py-continueevent.c (emit_continue_event): Use
12130 gdbpy_ref.
12131 * python/py-breakpoint.c (gdbpy_breakpoint_created)
12132 (gdbpy_breakpoint_deleted, gdbpy_breakpoint_modified): Use
12133 gdbpy_ref.
12134 * python/py-bpevent.c (create_breakpoint_event_object): Use
12135 gdbpy_ref.
12136
a68ff33e
TT
121372017-01-10 Tom Tromey <tom@tromey.com>
12138
12139 * python/py-ref.h: New file.
12140
7becfd03
SM
121412017-01-10 Simon Marchi <simon.marchi@ericsson.com>
12142
12143 * cli-out.c (cli_ui_out::do_redirect): Change return type to
12144 void.
12145 * cli-out.h (cli_ui_out::do_redirect): Likewise.
12146 * mi/mi-out.c (mi_ui_out::do_redirect): Likewise.
12147 * mi/mi-out.h (mi_ui_out::do_redirect): Likewise.
12148 * ui-out.c (ui_out::redirect): Likewise.
12149 * ui-out.h (ui_out::redirect, ui_out::do_redirect): Likewise.
12150 * cli/cli-logging.c (set_logging_redirect): Update call site of
12151 ui_out::redirect.
12152 (handle_redirections): Likewise.
12153 * scm-ports.c (ioscm_with_output_to_port_worker): Likewise.
12154 * top.c (execute_command_to_string): Likewise.
12155 * utils.c (do_ui_out_redirect_pop): Likewise.
12156
df294654
SM
121572017-01-10 Simon Marchi <simon.marchi@ericsson.com>
12158
12159 * stack.c (_initialize_stack): Update "frame" command help message.
12160
f5e6296e
IB
121612017-01-08 Iain Buclaw <ibuclaw@gdcproject.org>
12162
12163 * d-exp.y (CastExpression): Emit UNOP_CAST_TYPE.
12164
0e2d6fa6
YQ
121652017-01-06 Yao Qi <yao.qi@linaro.org>
12166
12167 * x86-linux-nat.h: Include gdb_proc_service.h.
12168
44d6d3f9
YQ
121692017-01-06 Yao Qi <yao.qi@linaro.org>
12170
12171 * ser-base.h: Include serial.h.
12172
656731fe
YQ
121732017-01-06 Yao Qi <yao.qi@linaro.org>
12174
12175 * ppc-linux-tdep.h: Include ppc-tdep.h.
12176
1ca8f924
YQ
121772017-01-06 Yao Qi <yao.qi@linaro.org>
12178
12179 * nat/amd64-linux-siginfo.h: Include signal.h.
12180
bc3008c4
YQ
121812017-01-06 Yao Qi <yao.qi@linaro.org>
12182
12183 * nat/aarch64-linux-hw-point.h: Include break-common.h.
12184
66c80d03
YQ
121852017-01-06 Yao Qi <yao.qi@linaro.org>
12186
12187 * mi/mi-parse.h: Include mi-cmds.h.
12188
051d2dda
YQ
121892017-01-06 Yao Qi <yao.qi@linaro.org>
12190
12191 * inf-loop.c: Don't include "target.h".
12192 * inf-loop.h: Include it here.
12193
8018d34f
YQ
121942017-01-06 Yao Qi <yao.qi@linaro.org>
12195
12196 * dfp.h: Include "dboulest.h" and "expression.h".
12197
c0b8369c
YQ
121982017-01-06 Yao Qi <yao.qi@linaro.org>
12199
12200 * ax-gdb.h: Include "ax.h".
12201
ad5cba2a
YQ
122022017-01-06 Yao Qi <yao.qi@linaro.org>
12203
12204 * Makefile.in (HFILES_NO_SRCDIR): Replace gdb_ptrace.h
12205 with nat/gdb_ptrace.h.
12206
1c33cd7f
YQ
122072017-01-05 Yao Qi <yao.qi@linaro.org>
12208
12209 * mips-fbsd-tdep.c (mips_fbsd_sigframe_init): Move && to
12210 new line.
12211 (mips64_fbsd_sigframe_init): Likewise.
12212
c988ac1d
JB
122132017-01-04 John Baldwin <jhb@FreeBSD.org>
12214
12215 * mips-fbsd-tdep.c (_initialize_mips_fbsd_tdep): Use
12216 GDB_OSABI_FREEBSD instead of GDB_OSABI_FREEBSD_ELF.
12217
b268007c
JB
122182017-01-04 John Baldwin <jhb@FreeBSD.org>
12219
12220 * Makefile.in (ALLDEPFILES): Add mips-fbsd-nat.c.
12221 * NEWS: Mention new FreeBSD/mips native configuration.
12222 * config/mips/fbsd.mh: New file.
12223 * configure.host: Add mips*-*-freebsd*.
12224 * mips-fbsd-nat.c: New file.
12225
387360da
JB
122262017-01-04 John Baldwin <jhb@FreeBSD.org>
12227
12228 * Makefile.in (ALL_TARGET_OBS): Add mips-fbsd-tdep.o.
12229 (ALLDEPFILES): Add mips-fbsd-tdep.c.
12230 * NEWS: Mention new FreeBSD/mips target.
12231 * configure.tgt: Add mips*-*-freebsd*.
12232 * mips-fbsd-tdep.c: New file.
12233 * mips-fbsd-tdep.h: New file.
12234
2aaaf250
YQ
122352017-01-04 Yao Qi <yao.qi@linaro.org>
12236
12237 * dwarf2loc.c (write_pieced_value): Don't use VALUE_FRAME_ID (to),
12238 use c->frame_id when the piece location is DWARF_VALUE_REGISTER.
12239
61baf725
JB
122402017-01-01 Joel Brobecker <brobecker@adacore.com>
12241
6dbb839a 12242 Update copyright year range in all GDB files.
61baf725 12243
c113e7ff 122442017-01-01 Joel Brobecker <brobecker@adacore.com>
ce0db137 12245
c113e7ff 12246 * config/djgpp/fnchange.lst: Add entry for gdb/ChangeLog-2016.
ce0db137 12247
c113e7ff 12248For older changes see ChangeLog-2016.
c906108c
SS
12249\f
12250Local Variables:
12251mode: change-log
12252left-margin: 8
12253fill-column: 74
12254version-control: never
57da7796 12255coding: utf-8
c906108c 12256End:
This page took 3.633418 seconds and 4 git commands to generate.