x86: Add VERIFY_COPY_RELOC
[deliverable/binutils-gdb.git] / gdb / ChangeLog
CommitLineData
2fd9d7ca
PA
12017-10-05 Pedro Alves <palves@redhat.com>
2
3 * linux-nat.c (linux_child_follow_fork): When following the parent
4 and detaching the child, consult the parent thread's architecture
5 instead of the child's.
6
d13b8493
UW
72017-10-05 Ulrich Weigand <uweigand@de.ibm.com>
8
9 * ax.h: Do not include "doublest.h".
10 (union agent_val): Remove.
11
3b4b2f16
UW
122017-10-05 Ulrich Weigand <uweigand@de.ibm.com>
13
14 * dfp.h (MAX_DECIMAL_STRING): Move to dfp.c.
15 (decimal_to_string): Return std::string object.
16 (decimal_from_string): Accept std::string object. Return bool.
17 (decimal_from_integral, decimal_from_doublest): Remove.
18 (decimal_from_longest): Add prototype.
19 (decimal_from_ulongest): Likewise.
20 (decimal_to_longest): Likewise.
21 (decimal_from_doublest): Likewise.
22 * dfp.c: Do not include "gdbtypes.h" or "value.h".
23 (MAX_DECIMAL_STRING): Move here.
24 (decimal_to_string): Return std::string object.
25 (decimal_from_string): Accept std::string object. Return bool.
26 (decimal_from_integral): Remove, replace by ...
27 (decimal_from_longest, decimal_from_ulongest): ... these new functions.
28 (decimal_to_longest): New function.
29 (decimal_from_floating): Remove, replace by ...
30 (decimal_from_doublest): ... this new function.
31 (decimal_to_doublest): Update to new decimal_to_string interface.
32
33 * value.c (unpack_long): Use decimal_to_longest.
34 * valops.c (value_cast): Use decimal_from_doublest instead of
35 decimal_from_floating. Use decimal_from_[u]longest isntead of
36 decimal_from_integral.
37 * valarith.c (value_args_as_decimal): Likewise.
38 * valprint.c (print_decimal_floating): Update to new
39 decimal_to_string interface.
40 * printcmd.c (printf_decfloat): Likewise.
41 * c-exp.y (parse_number): Update to new decimal_from_string interface.
42
1841ee5d
UW
432017-10-05 Ulrich Weigand <uweigand@de.ibm.com>
44
45 * doublest.h: Do not include "floatformat.h". Remove stale comments.
46 * gdbtypes.c: Include "floatformat.h".
47 * value.c: Likewise.
48 * m68k-tdep.c: Likewise.
49
50 * findvar.c: Do not include "floatformat.h".
51 * amd64-darwin-tdep.c: Likewise.
52 * arm-linux-tdep.c: Likewise.
53 * i386-darwin-tdep.c: Likewise.
54 * i387-tdep.c: Likewise.
55 * m68k-linux-tdep.c: Likewise.
56 * mep-tdep.c: Likewise.
57 * mips-tdep.c: Likewise.
58 * nios2-tdep.c: Likewise.
59 * s390-linux-tdep.c: Likewise.
60 * sparc-obsd-tdep.c: Likewise.
61 * sparc-tdep.c: Likewise.
62 * sparc64-tdep.c: Likewise.
63 * spu-tdep.c: Likewise.
64 * tic6x-tdep.c: Likewise.
65 * tilegx-tdep.c: Likewise.
66 * vax-tdep.c: Likewise.
67 * xstormy16-tdep.c: Likewise.
68 * xtensa-tdep.c: Likewise.
69
70 * top.c: Do not include "doublest.h".
71 * aarch64-tdep.c: Likewise.
72 * alpha-tdep.c: Likewise.
73 * arm-linux-tdep.c: Likewise.
74 * m68k-linux-tdep.c: Likewise.
75 * tilegx-tdep.c: Likewise.
76 * xstormy16-tdep.c: Likewise.
77
a80a6471
JB
782017-10-05 John Baldwin <jhb@FreeBSD.org>
79
80 * mips-fbsd-tdep.c (MIPS_INST_ADDIU_A0_SP_N32): Define.
81 (mipsn32_fbsd_sigframe): Define.
82 (mips_fbsd_init_abi): Install mipsn32_fbsd_sigframe unwinder
83 for FreeBSD/mipsn32.
84
12c4bd7f
JB
852017-10-05 John Baldwin <jhb@FreeBSD.org>
86
87 * fbsd-tdep.c (fbsd_print_auxv_entry): Handle AT_EHDRFLAGS and
88 AT_HWCAP.
89
c91933e9
TG
902017-10-05 Tristan Gingold <tgingold@free.fr>
91
92 * MAINTAINERS (Misc): Update my email address.
93
5cd63fda
PA
942017-10-04 Pedro Alves <palves@redhat.com>
95
96 * remote.c (get_remote_arch_state): New 'gdbarch' parameter. Use
97 it instead of target_gdbarch.
98 (get_remote_state, get_remote_packet_size): Adjust
99 get_remote_arch_state calls, passing down target_gdbarch
100 explicitly.
101 (packet_reg_from_regnum, packet_reg_from_pnum): New parameter
102 'gdbarch' and use it instead of target_gdbarch.
103 (get_memory_packet_size): Adjust get_remote_arch_state calls,
104 passing down target_gdbarch explicitly.
105 (struct stop_reply) <arch>: New field.
106 (remote_parse_stop_reply): Use the stopped thread's architecture,
107 not the current inferior's. Save the architecture in the
108 stop_reply.
109 (process_stop_reply): Use the stop reply's architecture.
110 (process_g_packet, remote_fetch_registers)
111 (remote_prepare_to_store, store_registers_using_G)
112 (remote_store_registers): Adjust get_remote_arch_state calls,
113 using the regcache's architecture.
114 (remote_get_trace_status): Adjust get_remote_arch_state calls,
115 passing down target_gdbarch explicitly.
116 * spu-multiarch.c (spu_thread_architecture): Defer to the target
117 beneath instead of calling target_gdbarch.
118 * target.c (default_thread_architecture): Use the specified
119 inferior's architecture, instead of the current inferior's
120 architecture (via target_gdbarch).
121
ed4227b7
PA
1222017-10-04 Pedro Alves <palves@redhat.com>
123
124 * regcache.c (get_thread_arch_regcache): Remove null_ptid special
125 case.
126 (regcache_print): Handle !target_has_registers here instead.
127
55b11ddf
PA
1282017-10-04 Pedro Alves <palves@redhat.com>
129
130 * frame.c (create_test_frame): Delete.
131 * frame.h (create_test_frame): Delete.
132 * gdbarch-selftests.c: Include gdbthread.h and target.h.
133 (class regcache_test): Delete.
134 (test_target_has_registers, test_target_has_stack)
135 (test_target_has_memory, test_target_prepare_to_store)
136 (test_target_store_registers): New functions.
137 (test_target_ops): New class.
138 (register_to_value_test): Error out if there's already a
139 process_stratum (or higher) target pushed. Create a fuller mock
140 environment, with mock target_ops, inferior, address space, thread
141 and inferior_ptid.
142 * progspace.c (struct address_space): Move to ...
143 * progspace.h (struct address_space): ... here.
144 * regcache.h (regcache::~regcache, regcache::raw_write)
145 [GDB_SELF_TEST]: No longer virtual.
146
4c71c105
SM
1472017-10-04 Simon Marchi <simon.marchi@ericsson.com>
148
149 * mi/mi-main.c (list_available_thread_groups): Reverse filter logic.
150
73dcd72d
PA
1512017-10-04 Pedro Alves <palves@redhat.com>
152
153 * guile/scm-breakpoint.c (gdbscm_breakpoint_commands): Move code
154 out of 'between TRY and CATCH'.
155
44704526
PA
1562017-10-04 Pedro Alves <palves@redhat.com>
157
158 * cli/cli-cmds.c (complete_command): Add missing END_CATCH.
159 * common/common-exceptions.h (TRY): Open an outermost scope.
160 Expand intro comment.
161 (CATCH): Reindent.
162 (END_CATCH): Close the outermost scope.
163 * completer.c (complete_line_internal): Add missing END_CATCH.
164
bc3b087d
SDJ
1652017-10-04 Sergio Durigan Junior <sergiodj@redhat.com>
166
167 * NEWS (Changes since GDB 8.0): Add entry about new
168 'set-cwd-on-gdbserver' feature.
169 (New remote packets): Add entry for QSetWorkingDir.
170 * common/common-inferior.h (set_inferior_cwd): New prototype.
171 * infcmd.c (set_inferior_cwd): Remove "static".
172 (show_cwd_command): Expand text to include remote debugging.
173 * remote.c: Add PACKET_QSetWorkingDir.
174 (remote_protocol_features) <QSetWorkingDir>: New entry for
175 PACKET_QSetWorkingDir.
176 (extended_remote_set_inferior_cwd): New function.
177 (extended_remote_create_inferior): Call
178 "extended_remote_set_inferior_cwd".
179 (_initialize_remote): Call "add_packet_config_cmd" for
180 QSetWorkingDir.
181
d092c5a2
SDJ
1822017-10-04 Sergio Durigan Junior <sergiodj@redhat.com>
183
184 * NEWS (New commands): Mention "set/show cwd".
185 * cli/cli-cmds.c (_initialize_cli_cmds): Mention "set cwd" on
186 "cd" command's help text.
187 * common/common-inferior.h (get_inferior_cwd): New prototype.
188 * infcmd.c (inferior_cwd_scratch): New global variable.
189 (set_inferior_cwd): New function.
190 (get_inferior_cwd): Likewise.
191 (set_cwd_command): Likewise.
192 (show_cwd_command): Likewise.
193 (_initialize_infcmd): Add "set/show cwd" commands.
194 * inferior.h (class inferior) <cwd>: New field.
195 * nat/fork-inferior.c: Include "gdb_tilde_expand.h".
196 (fork_inferior): Change inferior's cwd before its execution.
197 * windows-nat.c (windows_create_inferior): Pass inferior's cwd
198 to CreateProcess.
199
7da0a886
SDJ
2002017-10-04 Sergio Durigan Junior <sergiodj@redhat.com>
201
202 * Makefile.in (SFILES): Add gdb_tilde_expand.c.
203 (HFILES_NO_SRCDIR): Add gdb_tilde_expand.h.
204 (COMMON_OBS): Add gdb_tilde_expand.o.
205 * common/gdb_tilde_expand.c: New file.
206 * common/gdb_tilde_expand.h: Likewise.
207
db8dd160
MR
2082017-10-03 Maciej W. Rozycki <macro@imgtec.com>
209
210 * gdbarch.sh (objfile): Remove duplicate declaration.
211 * gdbarch.h: Regenerate.
212
f8bfbf22
TT
2132017-10-03 Tom Tromey <tom@tromey.com>
214
215 * utils.c (internal_vproblem): Use string_vprintf.
216
5178ed48
TT
2172017-10-03 Tom Tromey <tom@tromey.com>
218
219 * printcmd.c (info_symbol_command): Use std::string.
220
8cff8730
TT
2212017-10-03 Tom Tromey <tom@tromey.com>
222
223 * top.c (gdb_safe_append_history): Use std::string.
224
895b8f30
TT
2252017-10-03 Tom Tromey <tom@tromey.com>
226
227 * event-top.c (stdin_event_handler): Update.
228 * main.c (captured_main_1): Update.
229 * top.h (make_delete_ui_cleanup): Remove.
230 (struct ui): Add constructor and destructor.
231 (new_ui, delete_ui): Remove.
232 * top.c (make_delete_ui_cleanup): Remove.
233 (new_ui_command): Use std::unique_ptr.
234 (delete_ui_cleanup): Remove.
235 (ui::ui): Rename from new_ui. Update.
236 (free_ui): Remove.
237 (ui::~ui): Rename from delete_ui. Update.
238
0efef640
TT
2392017-10-03 Tom Tromey <tom@tromey.com>
240
241 * symfile.c (load_progress): Use gdb::byte_vector.
242
245ad7d3
TT
2432017-10-03 Tom Tromey <tom@tromey.com>
244
245 * mi/mi-main.c (mi_cmd_trace_frame_collected): Remove unused
246 declaration.
247 * printcmd.c (x_command): Remove unused declaration.
248 * symfile.c (symbol_file_command): Remove unused declaration.
249
e05550d7
TT
2502017-10-03 Tom Tromey <tom@tromey.com>
251
252 * utils.c (internal_vproblem): Use std::string.
253 (defaulted_query): Likewise.
254
b95de2b7
TT
2552017-10-03 Tom Tromey <tom@tromey.com>
256
257 * guile/scm-ports.c (ioscm_with_output_to_port_worker): Update.
258 * top.c (execute_command_to_string): Update.
259 * utils.c (make_cleanup_restore_page_info): Remove.
260 (do_restore_page_info_cleanup): Remove.
261 (set_batch_flag_and_restore_page_info):
262 New.
263 (make_cleanup_restore_page_info): Remove.
264 (set_batch_flag_and_make_cleanup_restore_page_info): Remove.
265 (~set_batch_flag_and_restore_page_info): New
266 (make_cleanup_restore_uinteger): Remove.
267 (make_cleanup_restore_integer): Remove.
268 (struct restore_integer_closure): Remove.
269 (restore_integer): Remove.
270 * utils.h (struct set_batch_flag_and_restore_page_info): New
271 class.
272 (set_batch_flag_and_make_cleanup_restore_page_info): Remove.
273 (make_cleanup_restore_page_info): Remove.
274 (make_cleanup_restore_uinteger) Remove.
275 (make_cleanup_restore_integer) Remove.
276
07036511
TT
2772017-10-03 Tom Tromey <tom@tromey.com>
278
279 * record-full.h (record_full_gdb_operation_disable_set): Return
280 scoped_restore_tmpl<int>.
281 * infrun.c (adjust_pc_after_break): Update.
282 (handle_signal_stop): Update.
283 * record-full.c (record_full_gdb_operation_disable_set): Return
284 scoped_restore_tmpl<int>.
285 (record_full_wait_1, record_full_insert_breakpoint)
286 (record_full_remove_breakpoint, record_full_save)
287 (record_full_goto_insn): Update.
288
45320ffa
TT
2892017-10-02 Tom Tromey <tom@tromey.com>
290
291 PR rust/22236:
292 * rust-lang.c (rust_val_print_str): New function.
293 (val_print_struct): Call it.
294 (rust_subscript): Preserve name of slice type.
295
b3e3859b
TT
2962017-10-02 Tom Tromey <tom@tromey.com>
297
298 * rust-lang.c (rust_subscript): Handle slices in
299 EVAL_AVOID_SIDE_EFFECTS case.
300
01af5e0d
TT
3012017-10-02 Tom Tromey <tom@tromey.com>
302
303 * rust-lang.c (rust_slice_type_p): Recognize &str as a slice type.
304
888e3ddb
TT
3052017-10-02 Tom Tromey <tom@tromey.com>
306
307 * rust-lang.h (rust_slice_type): Add "extern".
308
cc536b21
PA
3092017-10-02 Tom Tromey <tom@tromey.com>
310 Pedro Alves <palves@redhat.com>
311
312 * ada-lang.h (ada_exc_info::operator<): Make const.
313 (ada_exc_info::operator==): Make const.
314 * ada-lang.c (ada_exc_info::operator<, ada_exc_info::operator==):
315 Make const.
316
386c8614
TT
3172017-09-29 Tom Tromey <tom@tromey.com>
318
319 * target.c (read_whatever_is_readable): Change type of "result".
320 Update.
321 (free_memory_read_result_vector): Remove.
322 (read_memory_robust): Change return type. Update.
323 * mi/mi-main.c (mi_cmd_data_read_memory_bytes): Update. Use
324 bin2hex, std::string.
325 * target.h (memory_read_result_s): Remove typedef.
326 (free_memory_read_result_vector): Remove.
327 (read_memory_robust): Return std::vector.
328
789c4b5e
TT
3292017-09-29 Tom Tromey <tom@tromey.com>
330
331 * mi/mi-main.c (captured_mi_execute_command): Use scope_restore.
332
ab816a27
TT
3332017-09-29 Tom Tromey <tom@tromey.com>
334
335 * mi/mi-cmd-info.c (mi_cmd_info_ada_exceptions): Update.
336 * ada-lang.h (struct ada_exc_info): Remove typedef. Declare
337 operator< and operator==.
338 (ada_exceptions_list): Return a std::vector.
339 * ada-lang.c (ada_exc_info::operator<): Rename from
340 compare_ada_exception_info.
341 (ada_exc_info::operator==): New.
342 (sort_remove_dups_ada_exceptions_list): Change type of
343 "exceptions".
344 (ada_add_standard_exceptions, ada_add_exceptions_from_frame)
345 (ada_add_global_exceptions): Likewise.
346 (ada_exceptions_list_1): Return a std::vector.
347 (ada_exceptions_list): Likewise.
348
52f9abe4
TT
3492017-09-29 Tom Tromey <tom@tromey.com>
350
351 * mi/mi-main.c (struct print_one_inferior_data) <inferiors>: Now a
352 'std::set *'.
353 (print_one_inferior): Update.
354 (free_vector_of_ints): Remove.
355 (list_available_thread_groups): Change "ids" to std::set.
356 (mi_cmd_list_thread_groups): Update.
357 (struct collect_cores_data) <core>: Now a std::set.
358 (collect_cores): Update.
359 (unique): Remove.
360 (print_one_inferior): Update.
361
dcd5ddcc
TT
3622017-09-29 Tom Tromey <tom@tromey.com>
363
364 * mi/mi-main.c (mi_execute_cli_command): Use std::string.
365 (mi_execute_async_cli_command): Likewise.
366 (mi_cmd_trace_frame_collected): Use field_fmt.
367
45d288cc
TT
3682017-09-29 Tom Tromey <tom@tromey.com>
369
370 * mi/mi-main.c (mi_cmd_data_write_memory_bytes): Use
371 gdb::byte_vector.
372
6afe2f4a
TT
3732017-09-29 Tom Tromey <tom@tromey.com>
374
375 * mi/mi-parse.c (mi_parse): Remove unused declaration.
376
9813429a
TT
3772017-09-29 Tom Tromey <tom@tromey.com>
378
379 * mi/mi-cmd-disas.c (mi_cmd_disassemble): Don't copy "oarg".
380
2d6960b4
TT
3812017-09-29 Tom Tromey <tom@tromey.com>
382
383 * varobj.h (varobj_gen_name): Return std::string.
384 * varobj.c (varobj_gen_name): Return std::string.
385 * mi/mi-cmd-var.c (mi_cmd_var_create): Use std::string.
386 (mi_cmd_var_delete): Don't copy "name".
387
784c453a
TT
3882017-09-29 Tom Tromey <tom@tromey.com>
389
390 * mi/mi-cmd-break.c (mi_argv_to_format): Return std::string.
391 (mi_cmd_break_insert_1): Update.
392
a9bc57b9
TT
3932017-09-29 Tom Tromey <tom@tromey.com>
394
395 * target.h (make_scoped_defer_target_commit_resume): Update.
396 * target.c (make_scoped_defer_target_commit_resume): Rename from
397 make_cleanup_defer_target_commit_resume. Return a
398 scoped_restore.
399 * infrun.c (proceed): Use make_scoped_defer_target_commit_resume.
400
9754d8c4
TT
4012017-09-29 Tom Tromey <tom@tromey.com>
402
403 * main.c (captured_main_1): Remove unused declaration.
404 * spu-multiarch.c (parse_spufs_run): Remove unused declaration.
405
99ef965c
TT
4062017-09-29 Tom Tromey <tom@tromey.com>
407
408 * symtab.c (search_symbols): Remove unused outer cleanup.
409 (make_source_files_completion_list): Remove unused declaration.
410
42518ba7
TT
4112017-09-29 Tom Tromey <tom@tromey.com>
412
413 * mt-tdep.c (mt_push_dummy_call): Use gdb::byte_vector.
414
726b2169
TT
4152017-09-29 Tom Tromey <tom@tromey.com>
416
417 * xstormy16-tdep.c (xstormy16_push_dummy_call): Use
418 gdb::byte_vector.
419
55b06432
TT
4202017-09-29 Tom Tromey <tom@tromey.com>
421
422 * complaints.c (vcomplaint): Use std::string.
423
8abcee91
TT
4242017-09-29 Tom Tromey <tom@tromey.com>
425
426 * tracepoint.c (trace_variable_command): Use std::string.
427 (encode_actions_1): Remove unused declarations.
428 (create_tsv_from_upload): Use std::string.
429
6ad94bc7
TT
4302017-09-29 Tom Tromey <tom@tromey.com>
431
432 * cp-support.c (gdb_demangle): Use std::string.
433
2003f3d8
TT
4342017-09-29 Tom Tromey <tom@tromey.com>
435
436 * stack.c (parse_frame_specification): Use std::string
437 (info_frame_command): Use gdb::unique_xmalloc_ptr.
438
8f8accb5
TT
4392017-09-29 Tom Tromey <tom@tromey.com>
440
441 * tilegx-tdep.c (tilegx_push_dummy_call): Use gdb::byte_vector.
442
200aa7b1
TT
4432017-09-29 Tom Tromey <tom@tromey.com>
444
445 * utils.c (vfprintf_maybe_filtered): Use std::string.
446 (vfprintf_unfiltered): Likewise.
447
606aae8a
TT
4482017-09-29 Tom Tromey <tom@tromey.com>
449
450 * event-top.c (top_level_prompt): Return std::string.
451 (display_gdb_prompt): Update.
452
bd413795
TT
4532017-09-29 Tom Tromey <tom@tromey.com>
454
455 * unittests/common-utils-selftests.c (format): New function.
456 (string_vprintf_tests): New function.
457 (_initialize_common_utils_selftests): Register new tests.
458 * common/common-utils.c (string_vprintf): New function.
459 * common/common-utils.h (string_vprintf): Declare.
460
256642e8
PA
4612017-09-29 Pedro Alves <palves@redhat.com>
462
463 * common/rsp-low.c (unpack_varlen_hex): Constify.
464 * common/rsp-low.h (unpack_varlen_hex): Constify.
465 * linux-nat.c (linux_child_static_tracepoint_markers_by_strid):
466 Constify.
467 * remote.c (remote_set_permissions, read_ptid)
468 (remote_current_thread, remote_get_threads_with_qthreadinfo)
469 (remote_static_tracepoint_marker_at)
470 (remote_static_tracepoint_markers_by_strid)
471 (stop_reply_extract_thread, remote_parse_stop_reply): Constify.
472 * tracepoint.c (parse_trace_status, parse_tracepoint_status)
473 (parse_tracepoint_definition, parse_tsv_definition)
474 (parse_static_tracepoint_marker_definition): Constify.
475 * tracepoint.h (parse_static_tracepoint_marker_definition)
476 (parse_trace_status, parse_tracepoint_status)
477 (parse_tracepoint_definition, parse_tsv_definition): Constify.
478
b6bb3468
PA
4792017-09-29 Pedro Alves <palves@redhat.com>
480
481 * remote.c (target_buf, target_buf_size): Delete.
482 (remote_get_noisy_reply): Remove buf_p and sizeof_buf parameters.
483 Use the connection's packet buffer instead.
484 All callers adjusted.
485 (_initialize_remote): Remove references to target_buf and
486 target_buf_size.
487
b2f8eb7a
PA
4882017-09-28 Pedro Alves <palves@redhat.com>
489
490 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
491 unittests/common-utils-selftests.c.
492 (SUBDIR_UNITTESTS_OBS): Add common-utils-selftests.o.
493 (COMMON_OBS): Remove utils-selftests.o.
494 * utils-selftests.c: Move to ...
495 * unittests/common-utils-selftests.c: ... here and rename self
496 test to "string_printf".
497
08302ed2
DE
4982017-09-28 Alexander Shaposhnikov <alexander.v.shaposhnikov@gmail.com> (tiny patch)
499
500 * dwarf2read.c (open_and_init_dwp_file): Protect against dwp_file
501 having NULL cus or tus.
502
96a5a1d3
UW
5032017-09-27 Ulrich Weigand <uweigand@de.ibm.com>
504
505 * arm-tdep.c: (convert_from_extended): Remove.
506 (convert_to_extended): Likewise.
507 (arm_extract_return_value): Use convert_typed_floating.
508 (arm_store_return_value): Likewise.
509
510 * sh-tdep.h (struct gdbarch_tdep): Add sh_littlebyte_bigword_type.
511 * sh-tdep.c: Do not include "floatformat.h".
512 (sh_littlebyte_bigword_type): New function.
513 (sh_register_convert_to_virtual): Use convert_typed_floating.
514 (sh_register_convert_to_raw): Likewise.
515 * sh64-tdep.c: (struct gdbarch_tdep): Add sh_littlebyte_bigword_type.
516 (sh64_littlebyte_bigword_type): New function.
517 (sh64_extract_return_value): Use convert_typed_floating.
518 (sh64_register_convert_to_virtual): Likewise.
519 (sh64_register_convert_to_raw): Likewise.
520
0db7851f
UW
5212017-09-27 Ulrich Weigand <uweigand@de.ibm.com>
522
523 * doublest.h (floatformat_from_type): Move to gdbtypes.h.
524 * doublest.c (floatformat_from_type): Move to gdbtypes.c.
525
526 * gdbtypes.h (union type_specific): Make field floatformat hold
527 just a single struct floatformat, not an array.
528 (floatformat_from_type): Move here.
529 * gdbtypes.c (floatformat_from_type): Move here. Update to
530 changed TYPE_FLOATFORMAT definition.
531 (verify_floatformat): Update to changed TYPE_FLOATFORMAT.
532 (recursive_dump_type): Likewise.
533 (init_float_type): Install correct floatformat for byte order.
534 (arch_float_type): Likewise.
535
77b7c781
UW
5362017-09-27 Ulrich Weigand <uweigand@de.ibm.com>
537
538 * gdbtypes.c (init_type): Change incoming argument from
539 length-in-bytes to length-in-bits. Assert length is a
540 multiple of TARGET_CHAR_BITS.
541 (arch_type, arch_flags_type): Likewise.
542 (init_integer_type): Update call to init_type.
543 (init_character_type): Likewise.
544 (init_boolean_type): Likewise.
545 (init_float_type): Likewise.
546 (init_decfloat_type): Likewise.
547 (init_complex_type): Likewise.
548 (init_pointer_type): Likewise.
549 (objfile_type): Likewise.
550 (arch_integer_type): Update call to arch_type.
551 (arch_character_type): Likewise.
552 (arch_boolean_type): Likewise.
553 (arch_float_type): Likewise.
554 (arch_decfloat_type): Likewise.
555 (arch_complex_type): Likewise.
556 (arch_pointer_type): Likewise.
557 (gdbtypes_post_init): Likewise.
558
559 * dwarf2read.c (dwarf2_init_float_type): Update call to init_type.
560 (read_base_type): Likewise.
561 * mdebugread.c (basic_type): Likewise.
562 * stabsread.c (dbx_init_float_type): Likewise.
563 (rs6000_builtin_type): Likewise.
564 (read_range_type): Likewise. Also, fix call to init_integer_type
565 with erroneous length argument.
566
567 * ada-lang.c (ada_language_arch_info): Update call to arch_type.
568 * d-lang.c (build_d_types): Likewise.
569 * f-lang.c (build_fortran_types): Likewise.
570 * go-lang.c (build_go_types): Likewise.
571 * opencl-lang.c (build_opencl_types): Likewise.
572 * jit.c (finalize_symtab): Likewise.
573 * gnu-v3-abi.c (build_gdb_vtable_type): Likewise.
574 (build_std_type_info_type): Likewise.
575 * target-descriptions.c (tdesc_gdb_type): Likewise. Also,
576 update call to arch_flags_type.
577
578 * linux-tdep.c (linux_get_siginfo_type_with_fields): Update call to
579 arch_type.
580 * fbsd-tdep.c (fbsd_get_siginfo_type): Likewise.
581 * windows-tdep.c (windows_get_tlb_type): Likewise.
582
583 * avr-tdep.c (avr_gdbarch_init): Update call to arch_type.
584 * ft32-tdep.c (ft32_gdbarch_init): Likewise.
585 * m32c-tdep.c (make_types): Likewise.
586 * rl78-tdep.c (rl78_gdbarch_init): Likewise.
587 (rl78_psw_type): Update call to arch_flags_type.
588 * m68k-tdep.c (m68k_ps_type): Update call to arch_flags_type.
589 * rx-tdep.c (rx_psw_type): Likewise.
590 (rx_fpsw_type): Likewise.
591 * sparc-tdep.c (sparc_psr_type): Likewise.
592 (sparc_fsr_type): Likewise.
593 * sparc64-tdep.c (sparc64_pstate_type): Likewise.
594 (sparc64_ccr_type): Likewise.
595 (sparc64_fsr_type): Likewise.
596 (sparc64_fprs_type): Likewise.
597
f21b4d5c
TT
5982017-09-27 Tom Tromey <tom@tromey.com>
599
600 * findcmd.c (find_command): Constify.
601
643c2ffa
TT
6022017-09-27 Tom Tromey <tom@tromey.com>
603
604 * ada-tasks.c (task_command_1, task_command): Constify.
605
510e5e56
TT
6062017-09-27 Tom Tromey <tom@tromey.com>
607
608 * symtab.c (maintenance_print_symbol_cache)
609 (maintenance_flush_symbol_cache)
610 (maintenance_print_symbol_cache_statistics): Constify.
611
e503b191
TT
6122017-09-27 Tom Tromey <tom@tromey.com>
613
614 * inferior.c (detach_inferior_command, kill_inferior_command)
615 (inferior_command): Constify.
616
4e001312
TT
6172017-09-27 Tom Tromey <tom@tromey.com>
618
619 * regcache.c (regcache_print, maintenance_print_registers)
620 (maintenance_print_raw_registers)
621 (maintenance_print_cooked_registers)
622 (maintenance_print_register_groups)
623 (maintenance_print_remote_registers): Constify.
624
77763700
TT
6252017-09-27 Tom Tromey <tom@tromey.com>
626
627 * printcmd.c (map_display_numbers, undisplay_command)
628 (enable_disable_display_command, enable_display_command)
629 (disable_display_command): Constify.
630
4495129a
TT
6312017-09-27 Tom Tromey <tom@tromey.com>
632
633 * breakpoint.h (delete_command): Don't declare.
634 * breakpoint.c (delete_command, enable_once_command)
635 (enable_count_command, enable_delete_command, breakpoint_1)
636 (maintenance_info_breakpoints, stopin_command, stopat_command)
637 (delete_command, delete_trace_command, save_breakpoints)
638 (save_breakpoints_command, save_tracepoints_command): Constify.
639
3088cf40
TT
6402017-09-27 Tom Tromey <tom@tromey.com>
641
642 * macrocmd.c (macro_expand_command, macro_expand_once_command)
643 (skip_ws, extract_identifier, macro_define_command)
644 (macro_undef_command, macro_list_command): Constify.
645
69f476a3
TT
6462017-09-27 Tom Tromey <tom@tromey.com>
647
648 * infcmd.c (environment_info, set_environment_command)
649 (unset_environment_command, path_info, info_proc_cmd_1)
650 (info_proc_cmd_mappings, info_proc_cmd_stat)
651 (info_proc_cmd_status, info_proc_cmd_cwd, info_proc_cmd_cmdline)
652 (info_proc_cmd_exe, info_proc_cmd_all): Constify.
653
c4a3e68e
TT
6542017-09-27 Tom Tromey <tom@tromey.com>
655
656 * i386-tdep.c (i386_mpx_info_bounds, i386_mpx_set_bounds):
657 Constify.
658
c9d31bd6
TT
6592017-09-27 Tom Tromey <tom@tromey.com>
660
661 * symfile-mem.c (add_symbol_file_from_memory_command): Constify.
662
1f3f85eb
TT
6632017-09-27 Tom Tromey <tom@tromey.com>
664
665 * demangle.c (demangle_command): Constify.
666
9c504b5d
TT
6672017-09-27 Tom Tromey <tom@tromey.com>
668
669 * progspace.c (maintenance_info_program_spaces_command):
670 Constify.
671
6663cf91
TT
6722017-09-27 Tom Tromey <tom@tromey.com>
673
674 * compile/compile.c (check_raw_argument, compile_file_command)
675 (compile_code_command, compile_print_command): Constify.
676
34e5fa26
TT
6772017-09-27 Tom Tromey <tom@tromey.com>
678
679 * reggroups.c (maintenance_print_reggroups): Constify.
680
8384c356
TT
6812017-09-27 Tom Tromey <tom@tromey.com>
682
683 * dwarf2read.c (save_gdb_index_command): Constify.
684
884beb0c
TT
6852017-09-27 Tom Tromey <tom@tromey.com>
686
687 * stap-probe.c (info_probes_stap_command): Constify.
688
e0b2930c
TT
6892017-09-27 Tom Tromey <tom@tromey.com>
690
691 * fork-child.c (unset_exec_wrapper_command): Constify.
692
f938677d
TT
6932017-09-27 Tom Tromey <tom@tromey.com>
694
695 * btrace.c (get_uint, get_context_size, no_chunk)
696 (maint_btrace_packet_history_cmd)
697 (maint_btrace_clear_packet_history_cmd, maint_btrace_clear_cmd)
698 (maint_info_btrace_cmd): Constify.
699
8949cb87
TT
7002017-09-27 Tom Tromey <tom@tromey.com>
701
702 * reverse.c (delete_bookmark_command): Constify.
703
ac88e2de
TT
7042017-09-27 Tom Tromey <tom@tromey.com>
705
706 * remote.c (set_memory_packet_size)
707 (set_memory_write_packet_size, show_memory_write_packet_size)
708 (set_memory_read_packet_size, show_memory_read_packet_size)
709 (compare_sections_command, packet_command, remote_put_command)
710 (remote_get_command, remote_delete_command): Constify.
711
bd4c9dfe
TT
7122017-09-27 Tom Tromey <tom@tromey.com>
713
714 * mips-tdep.c (show_mipsfpu_command, set_mipsfpu_single_command)
715 (set_mipsfpu_double_command, set_mipsfpu_none_command)
716 (set_mipsfpu_auto_command): Constify.
717
5e93d4c6
TT
7182017-09-27 Tom Tromey <tom@tromey.com>
719
720 * cli/cli-cmds.h (cd_command): Constify.
721 * cli/cli-cmds.c (cd_command): Constify.
722
fc41a75b
TT
7232017-09-27 Tom Tromey <tom@tromey.com>
724
725 * thread.c (thread_name_command, thread_find_command): Constify.
726
67810076
TT
7272017-09-27 Tom Tromey <tom@tromey.com>
728
729 * probe.c (enable_probes_command, disable_probes_command):
730 Constify.
731
1d8b34a7
TT
7322017-09-27 Tom Tromey <tom@tromey.com>
733
734 * symfile.c (symbol_file_command): Constify.
735 * gdbcore.h (deprecated_file_changed_hook): Constify.
736 * exec.c (deprecated_file_changed_hook, exec_file_command)
737 (file_command): Constify.
738 * defs.h (symbol_file_command): Constify.
739
442019e1
TT
7402017-09-27 Tom Tromey <tom@tromey.com>
741
742 * remote-fileio.c (set_system_call_allowed)
743 (show_system_call_allowed): Constify.
744
2983f7cb
TT
7452017-09-27 Tom Tromey <tom@tromey.com>
746
747 * tracepoint.c (delete_trace_variable_command)
748 (tfind_end_command, tfind_start_command, tfind_pc_command)
749 (tfind_tracepoint_command, tfind_line_command)
750 (tfind_range_command, tfind_outside_command): Constify.
751
4fd41b24
TT
7522017-09-27 Tom Tromey <tom@tromey.com>
753
754 * ax-gdb.c (maint_agent_printf_command, agent_command)
755 (agent_eval_command): Constify.
756
f2fc3015
TT
7572017-09-27 Tom Tromey <tom@tromey.com>
758
759 * tracepoint.c (info_scope_command): Constify.
760 * python/python.c (gdbpy_decode_line): Constify.
761 * python/py-breakpoint.c (bppy_init): Constify.
762 * mi/mi-cmd-break.c (mi_cmd_break_insert_1): Constify.
763 * location.h: (new_linespec_location)
764 (string_to_event_location_basic, string_to_event_location):
765 Constify.
766 * location.c (new_linespec_location)
767 (string_to_event_location_basic, string_to_event_location):
768 Constify.
769 * linespec.h (decode_line_with_current_source)
770 (decode_line_with_last_displayed, linespec_lex_to_end): Constify.
771 * linespec.c (linespec_lex_to_end)
772 (decode_line_with_current_source)
773 (decode_line_with_last_displayed): Constify.
774 * guile/scm-breakpoint.c (gdbscm_register_breakpoint_x):
775 Constify.
776 * cli/cli-cmds.c (edit_command, list_command): Constify.
777 * breakpoint.h (until_break_command, watch_command_wrapper)
778 (awatch_command_wrapper, rwatch_command_wrapper)
779 (init_ada_exception_breakpoint): Constify.
780 * breakpoint.c (break_command_1, dprintf_command)
781 (break_range_command, watch_command_wrapper)
782 (rwatch_command_wrapper, awatch_command_wrapper)
783 (until_break_command, init_ada_exception_breakpoint)
784 (strace_marker_create_sals_from_location, trace_command)
785 (ftrace_command, strace_command, struct tracepoint): Constify.
786 * ax-gdb.c (agent_command_1): Constify.
787 * ada-lang.c (ada_exception_sal): Constify.
788
8c2f95f4
TT
7892017-09-27 Tom Tromey <tom@tromey.com>
790
791 * record.c (cmd_record_delete, cmd_record_stop, cmd_record_save)
792 (cmd_record_goto_begin, cmd_record_goto_end, get_insn_number)
793 (get_context_size, no_chunk, get_insn_history_modifiers)
794 (cmd_record_insn_history, get_call_history_modifiers)
795 (cmd_record_call_history): Constify.
796
a0d65762
TT
7972017-09-27 Tom Tromey <tom@tromey.com>
798
799 * source.c (show_substitute_path_command)
800 (unset_substitute_path_command, set_substitute_path_command):
801 Constify.
802
58971144
TT
8032017-09-27 Tom Tromey <tom@tromey.com>
804
805 * typeprint.c (maintenance_print_type): Constify.
806 * maint.c (maintenance_dump_me, maintenance_demangle)
807 (maintenance_time_display, maintenance_info_sections)
808 (maintenance_print_statistics, maintenance_deprecate)
809 (maintenance_undeprecate): Constify.
810 (maintenance_do_deprecate): Constify. Use std::string.
811 (maintenance_selftest): Constify.
812 * gdbtypes.h (maintenance_print_type): Constify.
813
c482f52c
TT
8142017-09-27 Tom Tromey <tom@tromey.com>
815
816 * hppa-tdep.c (unwind_command): Constify.
817
e100df1a
TT
8182017-09-27 Tom Tromey <tom@tromey.com>
819
820 * target-descriptions.c (unset_tdesc_filename_cmd)
821 (maint_print_c_tdesc_cmd, maintenance_check_xml_descriptions):
822 Constify.
823
31d56ade
TT
8242017-09-27 Tom Tromey <tom@tromey.com>
825
826 * dummy-frame.c (maintenance_print_dummy_frames): Constify.
827
b961da0b
TT
8282017-09-27 Tom Tromey <tom@tromey.com>
829
830 * tui/tui.c (tui_enable_command, tui_disable_command): Constify.
831
e2d8ae16
TT
8322017-09-27 Tom Tromey <tom@tromey.com>
833
834 * tui/tui-regs.c (tui_reg_command): Constify.
835
863779b0
TT
8362017-09-27 Tom Tromey <tom@tromey.com>
837
838 * skip.c (skip_file_command, skip_function_command)
839 (skip_enable_command, skip_disable_command, skip_delete_command):
840 Constify.
841
cdb34d4a
TT
8422017-09-27 Tom Tromey <tom@tromey.com>
843
844 * record-btrace.c (cmd_record_btrace_bts_start)
845 (cmd_record_btrace_pt_start): Constify.
846
e99c83e7
TT
8472017-09-27 Tom Tromey <tom@tromey.com>
848
849 * symmisc.c (maintenance_print_symbols)
850 (maintenance_print_msymbols, maintenance_print_objfiles)
851 (maintenance_info_symtabs, maintenance_check_symtabs)
852 (maintenance_expand_symtabs, maintenance_info_line_tables):
853 Constify.
854
32faf971
TT
8552017-09-27 Tom Tromey <tom@tromey.com>
856
857 * top.c (new_ui_command): Constify.
858
2cf311eb
TT
8592017-09-27 Tom Tromey <tom@tromey.com>
860
861 * symfile.c (add_symbol_file_command)
862 (remove_symbol_file_command, list_overlays_command)
863 (map_overlay_command, unmap_overlay_command)
864 (overlay_auto_command, overlay_manual_command)
865 (overlay_off_command, overlay_load_command): Constify.
866
e6738699
TT
8672017-09-27 Tom Tromey <tom@tromey.com>
868
869 * spu-tdep.c (info_spu_event_command, info_spu_signal_command)
870 (info_spu_mailbox_command, info_spu_dma_command)
871 (info_spu_proxydma_command): Constify.
872
aa360cd5
TT
8732017-09-27 Tom Tromey <tom@tromey.com>
874
875 * cli/cli-logging.c (set_logging_on, set_logging_off): Constify.
876
898241a5
TT
8772017-09-27 Tom Tromey <tom@tromey.com>
878
879 * cli/cli-script.c (user_defined_command): Constify.
880
2d0ac106
TT
8812017-09-27 Tom Tromey <tom@tromey.com>
882
883 * cli/cli-dump.c (dump_memory_command, dump_value_command)
884 (dump_srec_memory, dump_srec_value, dump_ihex_memory)
885 (dump_ihex_value, dump_verilog_memory, dump_verilog_value)
886 (dump_tekhex_memory, dump_tekhex_value, dump_binary_memory)
887 (dump_binary_value, append_binary_memory, append_binary_value):
888 Constify.
889 (struct dump_context) <func>: Constify.
890 (add_dump_command): Update.
891
dede02ce
TT
8922017-09-27 Tom Tromey <tom@tromey.com>
893
894 * cli/cli-cmds.c (show_version, show_configuration)
895 (source_command, show_user): Constify.
896
d3cb6b99
TT
8972017-09-27 Tom Tromey <tom@tromey.com>
898
899 * target.c (maintenance_print_target_stack): Constify.
900
1970a12f
TT
9012017-09-27 Tom Tromey <tom@tromey.com>
902
903 * interps.c (interpreter_exec_cmd): Constify.
904
41243651
TT
9052017-09-27 Tom Tromey <tom@tromey.com>
906
907 * record-full.c (cmd_record_full_restore): Constify.
908
4465d9db
TT
9092017-09-27 Tom Tromey <tom@tromey.com>
910
911 * memattr.c (enable_mem_command, disable_mem_command)
912 (delete_mem_command): Constify.
913
ad25e423
TT
9142017-09-27 Tom Tromey <tom@tromey.com>
915
916 * value.c (show_convenience): Constify.
917
d64097b1
TT
9182017-09-27 Tom Tromey <tom@tromey.com>
919
920 * gdbcore.h (core_file_command): Update.
921 * corefile.c (core_file_command): Constify.
922
4d4589ef
TT
9232017-09-27 Tom Tromey <tom@tromey.com>
924
925 * user-regs.c (maintenance_print_user_registers): Constify.
926
32a7bf17
TT
9272017-09-27 Tom Tromey <tom@tromey.com>
928
929 * cp-namespace.c (maintenance_cplus_namespace): Constify.
930
4a475551
TT
9312017-09-27 Tom Tromey <tom@tromey.com>
932
933 * cp-support.c (first_component_command): Constify.
934
990b9f9f
TT
9352017-09-27 Tom Tromey <tom@tromey.com>
936
937 * psymtab.c (maintenance_print_psymbols)
938 (maintenance_info_psymtabs, maintenance_check_psymtabs):
939 Constify.
940
c281872e
TT
9412017-09-27 Tom Tromey <tom@tromey.com>
942
943 * windows-tdep.c (display_tib): Constify.
944
5b64bf74
TT
9452017-09-27 Tom Tromey <tom@tromey.com>
946
947 * linux-fork.c (delete_checkpoint_command)
948 (detach_checkpoint_command): Constify.
949
4ada038f
TT
9502017-09-27 Tom Tromey <tom@tromey.com>
951
952 * cp-abi.c (set_cp_abi_cmd, show_cp_abi_cmd): Constify.
953
57f5a81b
TT
9542017-09-27 Tom Tromey <tom@tromey.com>
955
956 * arc-tdep.c (dump_arc_instruction_command): Constify.
957
b0a8e6c4
TT
9582017-09-27 Tom Tromey <tom@tromey.com>
959
960 * valprint.c (set_radix, show_radix): Constify.
961
8d97dc1c
TT
9622017-09-27 Tom Tromey <tom@tromey.com>
963
964 * dtrace-probe.c (info_probes_dtrace_command): Constify.
965
eb7c454d
TT
9662017-09-27 Tom Tromey <tom@tromey.com>
967
968 * command.h (not_just_help_class_command): Update.
969 * cli/cli-decode.h (not_just_help_class_command): Update.
970 * cli/cli-decode.c (not_just_help_class_command): Constify.
971
e4e33335
TT
9722017-09-27 Tom Tromey <tom@tromey.com>
973
974 * gdb_bfd.c (maintenance_info_bfds): Constify.
975
0450cc4c
TT
9762017-09-27 Tom Tromey <tom@tromey.com>
977
978 * cli/cli-decode.c (add_cmd, set_cmd_cfunc): New function
979 overloads.
980 (do_add_cmd): Rename from add_cmd. Don't call set_cmd_cfunc.
981 (do_const_cfunc): New function.
982 (cmd_cfunc_eq): New overload.
983 (cli_user_command_p): Check do_const_cfunc.
984 * cli/cli-decode.h (struct cmd_list_element) <function>: New field
985 const_cfunc.
986 * command.h (add_cmd): Add const overload and no-function
987 overload.
988 (set_cmd_cfunc): Add const overload.
989 (cmd_const_cfunc_ftype): Declare.
990 (cmd_cfunc_eq): Add const overload.
991 * breakpoint.c, cli-cmds.c, cli-dump.c, guile/scm-cmd.c,
992 python/py-cmd.c, target.c, tracepoint.c: Use no-function add_cmd
993 overload.
994
a9bbfbd8
TT
9952017-09-27 Tom Tromey <tom@tromey.com>
996
997 * macroexp.c (get_next_token_for_substitution): New function.
998 (substitute_args): Call it. Check for __VA_OPT__.
999
5230b05a
WT
10002017-09-26 Walfred Tedeschi <walfred.tedeschi@intel.com>
1001 Pedro Alves <palves@redhat.com>
1002
1003 * dwarf2read.c (dwarf2_cu): Remove field producer_is_icc and add
1004 producer_is_icc_lt_14.
1005 (producer_is_icc_lt_14): New function.
1006 (check_producer): Add code for checking version of ICC.
1007 (producer_is_icc): Move to producer.c.
1008 (read_structure_type): Restrict ICC workaround to ICC<14.
1009 * producer.c: Include selftest.h.
1010 (producer_is_icc, producer_parsing_tests, _initialize_producer):
1011 New functions.
1012 * producer.h (producer_is_icc): New declaration.
1013
b32b108a
WT
10142017-09-26 Walfred Tedeschi <walfred.tedeschi@intel.com>
1015
1016 * Makefile.in (SFILES): Add producer.c.
1017 (COMMON_OBS): Add producer.o
1018 * amd64-tdep.c (producer.h): Add new include.
1019 * dwarf2read.c (producer.h): Add new include.
1020 * producer.c: New file.
1021 * producer.h: New file.
1022 * utils.c (producer_is_gcc, producer_is_gcc_ge_4): Move to
1023 producer.c.
1024 * utils.h (producer_is_gcc, producer_is_gcc_ge_4): Move to
1025 producer.h.
1026
5007d765
MK
10272017-09-26 Matthias Klose <doko@ubuntu.com>
1028
1029 * configure.ac: Search ncursesw before ncurses.
1030 Check ncursesw/ncurses.h before ncurses/ncurses.h.
1031 * gdb_curses.h: Include <ncursesw/ncurses.h>
1032 * config.in, configure: Regenerate.
1033
281c4447
RO
10342017-09-26 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1035
1036 PR gdb/22185
1037 * configure.host <*-*-solaris2.[01], *-*-solaris2.[2-9]*>: Mark as
1038 obsolete.
1039 Use gdb_host sol2 for i[34567]86-*-solaris2*, x86_64-*-solaris2*.
1040 Remove i386sol2 support.
1041 * configure.nat <i386sol2>: Remove.
1042 <sol2-64>: Fold into ...
1043 <sol2>: ... this.
1044 Move common settings to default section.
1045 Add sol-thread.o.
1046 * configure.tgt <i[34567]86-*-solaris2.1[0-9]*,
1047 x86_64-*-solaris2.1[0-9]*>: Rename to ...
1048 <i[34567]86-*-solaris2*, x86_64-*-solaris2*>: ... this.
1049 <i[34567]86-*-solaris*>: Remove.
1050 <sparc-*-solaris2.[0-6], sparc-*-solaris2.[0-6].*>: Remove.
1051
1052 * configure.ac: Remove wctype in libw check.
1053 (_MSE_INT_H): Don't define on Solaris 7-9.
1054 <solaris*>: Remove libthread_db.so.1 check.
1055 * configure: Regenerate.
1056 * config.in: Regenerate.
1057
1058 * proc-service.c: Remove PROC_SERVICE_IS_OLD handling.
1059 (gdb_ps_prochandle_t, gdb_ps_read_buf_t, gdb_ps_write_buf_t)
1060 (gdb_ps_size_t): Remove.
1061 Use base types in users.
1062 * sol-thread.c: Likewise, also for gdb_ps_addr_t.
1063
1064 * NEWS (Changes since GDB 8.0): Document Solaris 2.0-9 removal.
1065
39b06c20
RO
10662017-09-26 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1067
1068 PR build/22206
1069 * sparc64-tdep.c (adi_tag_fd): Print pid as long.
1070 (adi_is_addr_mapped): Likewise.
1071 (PSR_ICC): Don't redefine.
1072 (PSR_IMPL): Likewise.
1073
6c3e20f1
TT
10742017-09-25 Tom Tromey <tom@tromey.com>
1075
1076 * regcache.c (regcache::dump): Use string_printf.
1077
b292235f
TT
10782017-09-25 Tom Tromey <tom@tromey.com>
1079
1080 * regcache.c (class regcache_invalidator): New.
1081 (struct register_to_invalidate): Remove.
1082 (make_cleanup_regcache_invalidate): Remove.
1083 (regcache::raw_write): Use regcache_invalidator.
1084
9ac86b52
TT
10852017-09-25 Tom Tromey <tom@tromey.com>
1086
1087 * spu-tdep.c (spu2ppu_sniffer): Update.
1088 * regcache.h (make_cleanup_regcache_xfree): Don't declare.
1089 * regcache.c (do_regcache_xfree, make_cleanup_regcache_xfree):
1090 Remove.
1091 * ppc-linux-tdep.c (ppu2spu_sniffer): Update.
1092 * mi/mi-main.c (mi_cmd_data_list_changed_registers): Update.
1093 * frame.h (frame_save_as_regcache): Return std::unique_ptr.
1094 * frame.c (frame_save_as_regcache): Return std::unique_ptr.
1095 (frame_pop): Update.
1096
c0e383c6
TT
10972017-09-25 Tom Tromey <tom@tromey.com>
1098
1099 * spu-tdep.c (spu2ppu_dealloc_cache): Use delete.
1100 * regcache.h (regcache_xfree): Don't declare.
1101 * regcache.c (regcache_xfree): Remove.
1102 (do_regcache_xfree): Use delete.
1103 * ppc-linux-tdep.c (ppu2spu_dealloc_cache): Use delete.
1104 * linux-fork.c (free_fork): Use delete.
1105 (fork_save_infrun_state): Likewise.
1106 * jit.c (jit_dealloc_cache): Use delete.
1107 * infrun.c (discard_infcall_suspend_state): Use delete.
1108
791199cc
TT
11092017-09-25 Tom Tromey <tom@tromey.com>
1110
1111 * regcache.h (regcache_xmalloc): Don't declare.
1112 (regcache_raw_set_cached_value): Update comment.
1113 * regcache.c (regcache_xmalloc): Remove.
1114 * ppc-linux-tdep.c (ppu2spu_sniffer): Use new.
1115 * jit.c (jit_frame_sniffer): Use new.
1116 * frame.c (frame_save_as_regcache): Use new.
1117
289e23aa
AA
11182017-09-25 Andreas Arnez <arnez@linux.vnet.ibm.com>
1119
1120 * NEWS: Advertise support for guarded-storage registers on IBM z.
1121
1b63490c
AA
11222017-09-25 Andreas Arnez <arnez@linux.vnet.ibm.com>
1123
1124 * s390-linux-nat.c (have_regset_gs): New static variable.
1125 (s390_linux_fetch_inferior_registers): Handle guarded-storage
1126 control block and guarded-storage broadcast control regsets.
1127 (s390_read_description): Detect whether the target has
1128 guarded-storage support, return appropriate tdesc.
1129 * s390-linux-tdep.c (features/s390-gs-linux64.c): New include.
1130 (features/s390x-gs-linux64.c): Likewise.
1131 (struct gdbarch_tdep) <have_gs>: New field.
1132 (s390_regmap_gs, s390_regmap_gsbc, s390_gs_regset)
1133 (s390_gsbc_regset): New variables.
1134 (s390_iterate_over_regset_sections): Iterate over s390_gs_regset
1135 and s390_gsbc_regset, if applicable.
1136 (s390_core_read_description): Check whether core file was from a
1137 target with guarded-storage support; include appropriate regsets.
1138 (s390_gdbarch_init): Add registers for guarded-storage support.
1139 (_initialize_s390_tdep): Initialize new target descriptions that
1140 include registers for guarded-storage support.
1141 * s390-linux-tdep.h (HWCAP_S390_GS, S390_GSD_REGNUM)
1142 (S390_GSSM_REGNUM, S390_GSEPLA_REGNUM)
1143 (S390_BC_GSD_REGNUM, S390_BC_GSSM_REGNUM): New defines.
1144 (S390_NUM_REGS): Adjust macro definition.
1145 (s390_gs_regset, s390_gsbc_regset, tdesc_s390_gs_linux64)
1146 (tdesc_s390x_gs_linux64): New declarations.
1147
96235dc1
AA
11482017-09-25 Andreas Arnez <arnez@linux.vnet.ibm.com>
1149
1150 * features/s390-gs-linux64.xml: New file.
1151 * features/s390-gs.xml: New file.
1152 * features/s390-gsbc.xml: New file.
1153 * features/s390x-gs-linux64.xml: New file.
1154 * features/Makefile (WHICH): Add s390-gs-linux64 and
1155 s390x-gs-linux64.
1156 (s390-gs-linux64-expedite, s390x-gs-linux64-expedite): New macros.
1157 (XMLTOC): Add s390-gs-linux64.xml and s390x-linux64.xml.
1158 * features/s390-gs-linux64.c: New generated file.
1159 * features/s390x-gs-linux64.c: New file.
1160 * regformats/s390-gs-linux64.dat: New file.
1161 * regformats/s390x-gs-linux64.dat: New file.
1162
b4a7c699
TT
11632017-09-23 Tom Tromey <tom@tromey.com>
1164
1165 * defs.h (make_cleanup_override_quit_handler): Don't declare.
1166
c2f97536
TT
11672017-09-22 Tom Tromey <tom@tromey.com>
1168
1169 * utils.c (class scoped_input_handler) <m_quit_handler>: Change
1170 type to scoped_restore_tmpl.
1171 <scoped_input_handler>: Initialize m_quit_handler directly.
1172
43573013
SDJ
11732017-09-22 Sergio Durigan Junior <sergiodj@redhat.com>
1174
1175 * cli/cli-cmds.c (pwd_command): Use "getcwd (NULL, 0)".
1176 (cd_command): Likewise. Free "current_directory" before
1177 assigning to it.
1178 * main.c (captured_main_1): Use "getcwd (NULL, 0)".
1179 * mi/mi-cmd-env.c (mi_cmd_env_pwd): Likewise.
1180 * top.c (gdb_dirbuf): Remove global declaration.
1181 * top.h (gdb_dirbuf): Likewise.
1182
6ec2e0f5
SDJ
11832017-09-22 Sergio Durigan Junior <sergiodj@redhat.com>
1184
1185 * gnulib/aclocal.m4: Regenerate.
1186 * gnulib/config.in: Regenerate.
1187 * gnulib/configure: Regenerate.
1188 * gnulib/import/Makefile.am: Regenerate.
1189 * gnulib/import/Makefile.in: Regenerate.
1190 * gnulib/import/assure.h: New file.
1191 * gnulib/import/at-func.c: Likewise
1192 * gnulib/import/chdir-long.c: New file.
1193 * gnulib/import/chdir-long.h: New file.
1194 * gnulib/import/cloexec.c: New file.
1195 * gnulib/import/cloexec.h: New file.
1196 * gnulib/import/close.c: New file.
1197 * gnulib/import/closedir.c: New file.
1198 * gnulib/import/dirent-private.h: New file.
1199 * gnulib/import/dup-safer.c: New file.
1200 * gnulib/import/dup.c: New file.
1201 * gnulib/import/dup2.c: New file.
1202 * gnulib/import/error.c: New file.
1203 * gnulib/import/error.h: New file.
1204 * gnulib/import/exitfail.c: New file.
1205 * gnulib/import/exitfail.h: New file.
1206 * gnulib/import/fchdir.c: New file.
1207 * gnulib/import/fcntl.c: New file.
1208 * gnulib/import/fcntl.in.h: New file.
1209 * gnulib/import/fd-hook.c: New file.
1210 * gnulib/import/fd-hook.h: New file.
1211 * gnulib/import/fd-safer.c: New file.
1212 * gnulib/import/fdopendir.c: New file.
1213 * gnulib/import/filename.h: New file.
1214 * gnulib/import/filenamecat-lgpl.c: New file.
1215 * gnulib/import/filenamecat.h: New file.
1216 * gnulib/import/fstat.c: New file.
1217 * gnulib/import/fstatat.c: New file.
1218 * gnulib/import/getcwd-lgpl.c: New file.
1219 * gnulib/import/getcwd.c: New file.
1220 * gnulib/import/getdtablesize.c: New file.
1221 * gnulib/import/getlogin_r.c: New file.
1222 * gnulib/import/getprogname.c: New file.
1223 * gnulib/import/getprogname.h: New file.
1224 * gnulib/import/gettext.h: New file.
1225 * gnulib/import/glob-libc.h: New file.
1226 * gnulib/import/glob.c: New file.
1227 * gnulib/import/glob.in.h: New file.
1228 * gnulib/import/intprops.h: New file.
1229 * gnulib/import/m4/chdir-long.m4: New file.
1230 * gnulib/import/m4/close.m4: New file.
1231 * gnulib/import/m4/closedir.m4: New file.
1232 * gnulib/import/m4/d-ino.m4: New file.
1233 * gnulib/import/m4/d-type.m4: New file.
1234 * gnulib/import/m4/dup.m4: New file.
1235 * gnulib/import/m4/dup2.m4: New file.
1236 * gnulib/import/m4/error.m4: New file.
1237 * gnulib/import/m4/fchdir.m4: New file.
1238 * gnulib/import/m4/fcntl.m4: New file.
1239 * gnulib/import/m4/fcntl_h.m4: New file.
1240 * gnulib/import/m4/fdopendir.m4: New file.
1241 * gnulib/import/m4/filenamecat.m4: New file.
1242 * gnulib/import/m4/fstat.m4: New file.
1243 * gnulib/import/m4/fstatat.m4: New file.
1244 * gnulib/import/m4/getcwd-abort-bug.m4: New file.
1245 * gnulib/import/m4/getcwd-path-max.m4: New file.
1246 * gnulib/import/m4/getcwd.m4: New file.
1247 * gnulib/import/m4/getdtablesize.m4: New file.
1248 * gnulib/import/m4/getlogin_r.m4: New file.
1249 * gnulib/import/m4/getprogname.m4: New file.
1250 * gnulib/import/m4/glob.m4: New file.
1251 * gnulib/import/m4/gnulib-cache.m4: Regenerate.
1252 * gnulib/import/m4/gnulib-comp.m4: Regenerate.
1253 * gnulib/import/m4/mempcpy.m4: New file.
1254 * gnulib/import/m4/memrchr.m4: New file.
1255 * gnulib/import/m4/mode_t.m4: New file.
1256 * gnulib/import/m4/msvc-inval.m4: New file.
1257 * gnulib/import/m4/msvc-nothrow.m4: New file.
1258 * gnulib/import/m4/open.m4: New file.
1259 * gnulib/import/m4/openat.m4: New file.
1260 * gnulib/import/m4/opendir.m4: New file.
1261 * gnulib/import/m4/readdir.m4: New file.
1262 * gnulib/import/m4/realloc.m4: New file.
1263 * gnulib/import/m4/rewinddir.m4: New file.
1264 * gnulib/import/m4/save-cwd.m4: New file.
1265 * gnulib/import/m4/strdup.m4: New file.
1266 * gnulib/import/m4/strerror.m4: New file.
1267 * gnulib/import/m4/unistd-safer.m4: New file.
1268 * gnulib/import/mempcpy.c: New file.
1269 * gnulib/import/memrchr.c: New file.
1270 * gnulib/import/msvc-inval.c: New file.
1271 * gnulib/import/msvc-inval.h: New file.
1272 * gnulib/import/msvc-nothrow.c: New file.
1273 * gnulib/import/msvc-nothrow.h: New file.
1274 * gnulib/import/open.c: New file.
1275 * gnulib/import/openat-die.c: New file.
1276 * gnulib/import/openat-priv.h: New file.
1277 * gnulib/import/openat-proc.c: New file.
1278 * gnulib/import/openat.c: New file.
1279 * gnulib/import/openat.h: New file.
1280 * gnulib/import/opendir.c: New file.
1281 * gnulib/import/pipe-safer.c: New file.
1282 * gnulib/import/readdir.c: New file.
1283 * gnulib/import/realloc.c: New file.
1284 * gnulib/import/rewinddir.c: New file.
1285 * gnulib/import/save-cwd.c: New file.
1286 * gnulib/import/save-cwd.h: New file.
1287 * gnulib/import/strdup.c: New file.
1288 * gnulib/import/strerror-override.c: New file.
1289 * gnulib/import/strerror-override.h: New file.
1290 * gnulib/import/strerror.c: New file.
1291 * gnulib/import/unistd--.h: New file.
1292 * gnulib/import/unistd-safer.h: New file.
1293 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add
1294 "getcwd" and "glob".
1295 * ser-tcp.c: Undefine "close" before redefining it.
1296
432ae719
SM
12972017-09-21 Simon Marchi <simon.marchi@ericsson.com>
1298
1299 * guile/scm-value.c (gdbscm_value_address): Initialize address,
1300 get rid of res_val.
1301
4fa7574e
RO
13022017-09-22 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1303
1304 * configure.nat <i386sol2,i386>: Add fork-inferior.o to NATDEPFILES.
1305 <sol2,sparc>: Likewise.
1306 <sol2-64,i386>: Likewise.
1307
1308 * warning.m4 (AM_GDB_WARNINGS): Disable -Wunknown-pragmas,
1309 -Wdeprecated-declarations on *-*-solaris*.
1310 * configure: Regenerate.
1311
1312 * procfs.c: Include "nat/inferior.h".
1313 (procfs_info_proc): Fix typo.
1314
f6327dcb
KB
13152017-09-21 Kevin Buettner <kevinb@redhat.com>
1316
1317 * remote.c (vector): Include.
1318 (struct private_thread_info): Add field, thread_handle.
1319 (free_private_thread_info): Deallocate storage associated with
1320 thread handle.
1321 (get_private_info_thread): Initialize `thread_handle' field.
1322 (struct thread_item): Add field, thread_handle.
1323 (clear_threads_listing_context): Deallocate storage associated
1324 with thread handle.
1325 (start_thread): Add support for "handle" attribute.
1326 (thread_attributes): Add "handle".
1327 (remote_get_threads_with_qthreadinfo): Initialize thread_handle
1328 field.
1329 (remote_update_thread_list): Update thread_handle.
1330 (remote_thread_handle_to_thread_info): New function.
1331 (init_remote_ops): Initialize to_thread_handle_to_thread_info.
1332
fbbe5337
KB
13332017-09-21 Kevin Buettner <kevinb@redhat.com>
1334
1335 * python/py-inferior.c (gdbpy_thread_from_thread_handle): New
1336 function.
1337 (inferior_object_methods): Add gdbpy_thread_from_thread_handle.
1338 * python/python-internal.h (thread_object_type): Declare.
1339
e04ee09e
KB
13402017-09-21 Kevin Buettner <kevinb@redhat.com>
1341
1342 * target.h (struct target_ops): Add to_thread_handle_to_thread_info.
1343 (target_thread_handle_to_thread_info): Declare.
1344 * target.c (target_thread_handle_to_thread_info): New function.
1345 * target-delegates.c: Regenerate.
1346 * gdbthread.h (find_thread_by_handle): Declare.
1347 * thread.c (find_thread_by_handle): New function.
1348 * linux-thread-db.c (thread_db_thread_handle_to_thread_info): New
1349 function.
1350 (init_thread_db_ops): Register thread_db_thread_handle_to_thread_info.
1351
1e5b66ed
SM
13522017-09-21 Simon Marchi <simon.marchi@ericsson.com>
1353
1354 * nat/linux-waitpid.c (linux_debug): Add ATTRIBUTE_PRINTF.
1355
ebe48ba0
SM
13562017-09-21 Simon Marchi <simon.marchi@ericsson.com>
1357
1358 * microblaze-tdep.c (microblaze_debug): Add ATTRIBUTE_PRINTF.
1359
0a0bf5dc
YQ
13602017-09-21 Yao Qi <yao.qi@linaro.org>
1361
1362 * configure.tgt (aarch64*-*-freebsd*): Add fbsd-tdep.o solib-svr4.o
1363 to gdb_target_obs.
1364
d1b0a7bf
TT
13652017-09-20 Tom Tromey <tom@tromey.com>
1366
1367 * breakpoint.c (struct counted_command_line): Remove.
1368 (breakpoint_commands): Update.
1369 (alloc_counted_command_line, incref_counted_command_line)
1370 (decref_counted_command_line, do_cleanup_counted_command_line)
1371 (make_cleanup_decref_counted_command_line): Remove.
1372 (breakpoint_set_commands, commands_command_1, ~bpstats, bpstats)
1373 (bpstat_clear_actions, bpstat_do_actions_1, watchpoint_check)
1374 (bpstat_stop_status, print_one_breakpoint_location, ~breakpoint)
1375 (save_breakpoints): Update.
1376 * breakpoint.h (counted_command_line): Now a typedef to
1377 shared_ptr.
1378 (struct breakpoint) <commands>: Now a counted_command_line.
1379 (struct bpstats) <command>: Likewise.
1380
48649e1b
TT
13812017-09-20 Tom Tromey <tom@tromey.com>
1382
1383 * breakpoint.c (struct commands_info, do_map_commands_command):
1384 Remove.
1385 (commands_command_1): Update.
1386 (iterate_over_related_breakpoints): Take a function_view.
1387 (do_delete_breakpoint, do_map_delete_breakpoint): Remove.
1388 (delete_command): Update.
1389 (map_breakpoint_numbers): Take a function_view.
1390 (do_disable_breakpoint, do_map_delete_breakpoint): Remove.
1391 (disable_command): Update.
1392 (do_enable_breakpoint, do_map_enable_breakpoint): Remove.
1393 (enable_command): Update.
1394 (struct disp_data, do_enable_breakpoint_disp)
1395 (do_map_enable_once_breakpoint, do_map_enable_count_breakpoint)
1396 (do_map_enable_delete_breakpoint): Remove.
1397 (enable_once_command, enable_count_command, enable_delete_command)
1398 (delete_trace_variable_command): Update.
1399
04afa70c
TT
14002017-09-20 Tom Tromey <tom@tromey.com>
1401
1402 * breakpoint.c (~bpstats): Rename from bpstat_free. Update.
1403 (bpstat_clear): Use delete.
1404 (bpstats): New constructors.
1405 (bpstat_copy, bpstat_stop_status): Use new.
1406 (dprintf_after_condition_true): Update.
1407 * breakpoint.h (bpstats::bpstats): Add constructors.
1408 (bpstats::~bpstats): Add destructor.
1409
c83833f4
PA
14102017-09-20 Pedro Alves <palves@redhat.com>
1411
1412 * eval.c (make_params): Delete, refactored as ...
1413 (class fake_method): ... this new type's ctor.
1414 (fake_method::~fake_method): New.
1415 (evaluate_subexp_standard): Use 'fake_method'.
1416
223ffa71
TT
14172017-09-20 Tom Tromey <tom@tromey.com>
1418
1419 * windows-nat.c (get_windows_debug_event, windows_wait)
1420 (do_initial_windows_stuff, windows_attach): Update.
1421 * utils.c (vwarning, internal_vproblem): Update.
1422 (ui_unregister_input_event_handler_cleanup)
1423 (prepare_to_handle_input): Remove.
1424 (class scoped_input_handler): New.
1425 (defaulted_query, prompt_for_continue): Update.
1426 * tui/tui-hooks.c (tui_refresh_frame_and_register_information):
1427 Update.
1428 * top.c (undo_terminal_modifications_before_exit): Update.
1429 * target/target.h (target_terminal_init, target_terminal_inferior)
1430 (target_terminal_ours): Don't declare.
1431 (class target_terminal): New.
1432 * target.h (target_terminal_is_inferior, target_terminal_is_ours)
1433 (target_terminal_ours_for_output)
1434 (make_cleanup_restore_target_terminal): Don't declare.
1435 (target_terminal_info): Remove.
1436 * target.c (enum terminal_state, terminal_state): Remove.
1437 (target_terminal::terminal_state): Define.
1438 (target_terminal::init): Rename from target_terminal_init.
1439 (target_terminal::inferior): Rename from
1440 target_terminal_inferior.
1441 (target_terminal::ours): Rename from target_terminal_ours.
1442 (target_terminal::ours_for_output): Rename from
1443 target_terminal_ours_for_output.
1444 (target_terminal::info): New method.
1445 (cleanup_restore_target_terminal)
1446 (make_cleanup_restore_target_terminal): Remove.
1447 * solib.c (handle_solib_event): Update.
1448 * remote.c (remote_serial_quit_handler): Update.
1449 (remote_terminal_inferior, remote_wait_as): Update.
1450 * record-full.c (record_full_wait_1): Update.
1451 * nto-procfs.c (procfs_create_inferior): Update.
1452 * nat/fork-inferior.c (startup_inferior): Update.
1453 * mi/mi-interp.c (mi_new_thread, mi_thread_exit)
1454 (mi_record_changed, mi_inferior_added, mi_inferior_appeared)
1455 (mi_inferior_exit, mi_inferior_removed, mi_traceframe_changed)
1456 (mi_tsv_created, mi_tsv_deleted, mi_tsv_modified)
1457 (mi_breakpoint_created, mi_breakpoint_deleted)
1458 (mi_breakpoint_modified, mi_on_resume, mi_solib_loaded)
1459 (mi_solib_unloaded, mi_command_param_changed, mi_memory_changed)
1460 (mi_user_selected_context_changed, report_initial_inferior):
1461 Update.
1462 * linux-nat.c (linux_nat_attach, linux_nat_terminal_ours)
1463 (linux_nat_terminal_inferior): Update.
1464 * infrun.c (follow_fork_inferior)
1465 (handle_vfork_child_exec_or_exit, do_target_resume)
1466 (check_curr_ui_sync_execution_done, handle_inferior_event_1)
1467 (handle_signal_stop, maybe_remove_breakpoints, normal_stop):
1468 Update.
1469 * inflow.c (child_terminal_init, info_terminal_command): Update.
1470 * infcmd.c (post_create_inferior, continue_1, prepare_one_step)
1471 (attach_command): Update.
1472 * infcall.c (call_thread_fsm_should_stop): Update.
1473 * gnu-nat.c (gnu_attach): Update.
1474 * extension.c (struct active_ext_lang_state)
1475 (restore_active_ext_lang): Update.
1476 * exceptions.c (print_flush): Update.
1477 * event-top.c (async_enable_stdin, default_quit_handler): Update.
1478 (struct quit_handler_cleanup_data, restore_quit_handler)
1479 (restore_quit_handler_dtor, make_cleanup_override_quit_handler):
1480 Remove.
1481 * cp-support.c (gdb_demangle): Update.
1482 * breakpoint.c (update_inserted_breakpoint_locations)
1483 (insert_breakpoint_locations, handle_jit_event)
1484 (disable_breakpoints_in_unloaded_shlib): Update.
1485 * annotate.c (annotate_breakpoints_invalid)
1486 (annotate_frames_invalid): Update.
1487
013af3fc
TT
14882017-09-20 Tom Tromey <tom@tromey.com>
1489
1490 * main.c (catch_command_errors): Rename from
1491 catch_command_errors_const.
1492 (captured_main_1): Update.
1493
06871ae8
PA
14942017-09-20 Pedro Alves <palves@redhat.com>
1495
1496 * cli/cli-cmds.c (list_command): Use print_sal_location.
1497 (print_sal_location): New function.
1498 (ambiguous_line_spec): Use print_sal_location.
1499 * linespec.c (symbol_to_sal): Record the symbol in the sal.
1500 * symtab.c (find_function_start_sal): Likewise.
1501 * symtab.h (symtab_and_line::symbol): New field.
1502
e5f25bc5
PA
15032017-09-20 Pedro Alves <palves@redhat.com>
1504
1505 * linespec.c (minsym_found): Handle non-text minsyms.
1506 (symbol_to_sal): Record a sal.pc for non-block, non-label symbols.
1507
1b7fa39e
WT
15082017-09-20 Walfred Tedeschi <walfred.tedeschi@intel.com>
1509
1510 * features/Makefile (i386-avx-mpx-avx512-pku.dat): Add missing
1511 backslash.
1512
37dd0825
WT
15132017-09-20 Walfred Tedeschi <walfred.tedeschi@intel.com>
1514
1515 * gdb.arch/i386-avx512.c (move_zmm_data_to_reg): Use
1516 vmovups instead vmovaps.
1517 (move_zmm_data_to_memory): Use vmovups instead vmovaps.
1518
4e5a4f58
JB
15192017-09-19 John Baldwin <jhb@FreeBSD.org>
1520
1521 * NEWS (Changes since GDB 8.0): Add starti.
1522 * infcmd.c (enum run_break): New.
1523 (run_command_1): Queue pending event for RUN_STOP_AT_FIRST_INSN
1524 case.
1525 (run_command): Use enum run_how.
1526 (start_command): Likewise.
1527 (starti_command): New function.
1528 (RUN_ARGS_HELP): New macro.
1529 (_initialize_infcmd): Use RUN_ARGS_HELP for run and start
1530 commands. Add starti command.
1531
aa70c9f1
YQ
15322017-09-19 Yao Qi <yao.qi@linaro.org>
1533
1534 * Makefile.in (monitor.o): Remove the rule.
1535
d6541620
YQ
15362017-09-19 Yao Qi <yao.qi@linaro.org>
1537
1538 * annotate.h (struct annotate_arg_emitter): Use
1539 DISABLE_COPY_AND_ASSIGN.
1540 * common/refcounted-object.h (refcounted_object): Likewise.
1541 * completer.h (struct completion_result): Likewise.
1542 * dwarf2read.c (struct dwarf2_per_objfile): Likewise.
1543 * filename-seen-cache.h (filename_seen_cache): Likewise.
1544 * gdbcore.h (thread_section_name): Likewise.
1545 * gdb_regex.h (compiled_regex): Likewise.
1546 * gdbthread.h (scoped_restore_current_thread): Likewise.
1547 * inferior.h (scoped_restore_current_inferior): Likewise.
1548 * jit.c (jit_reader): Likewise.
1549 * linespec.h (struct linespec_result): Likewise.
1550 * mi/mi-parse.h (struct mi_parse): Likewise.
1551 * nat/fork-inferior.c (execv_argv): Likewise.
1552 * progspace.h (scoped_restore_current_program_space): Likewise.
1553 * python/python-internal.h (class gdbpy_enter): Likewise.
1554 * regcache.h (regcache): Likewise.
1555 * target-descriptions.c (struct tdesc_reg): Likewise.
1556 (struct tdesc_type): Likewise.
1557 (struct tdesc_feature): Likewise.
1558 * ui-out.h (ui_out_emit_type): Likewise.
1559
0615127c
SM
15602017-09-18 Simon Marchi <simon.marchi@ericsson.com>
1561
1562 * dwarf2expr.c (dwarf_expr_context::execute_stack_op): Remove
1563 label abort_expression.
1564
5e187554
SM
15652017-09-16 Simon Marchi <simon.marchi@ericsson.com>
1566
1567 * common/buffer.c (buffer_xml_printf): Adjust.
1568 * common/xml-utils.c (xml_escape_text): Change return type to
1569 std::string, update code accordingly.
1570 * common/xml-utils.h (xml_escape_text): Change return type to
1571 std::string.
1572 * rs6000-aix-tdep.c (rs6000_aix_shared_library_to_xml): Adjust.
1573 * windows-tdep.c (windows_xfer_shared_library): Adjust.
1574 * unittests/xml-utils-selftests.c (test_xml_escape_text):
1575 Adjust.
1576
c3d7b541
SM
15772017-09-16 Simon Marchi <simon.marchi@ericsson.com>
1578
1579 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add new source file.
1580 (SUBDIR_UNITTESTS_OBS): Add new object file.
1581 * unittests/xml-utils-selftests.c: New file.
1582
1526853e
SM
15832017-09-16 Simon Marchi <simon.marchi@ericsson.com>
1584
1585 * common/selftest.h (selftest): New struct/interface.
1586 (register_test): Add name parameter, add new overload.
1587 (run_tests): Add filter parameter.
1588 (for_each_selftest_ftype): New typedef.
1589 (for_each_selftest): New declaration.
1590 * common/selftest.c (tests): Change type to
1591 map<string, unique_ptr<selftest>>.
1592 (simple_selftest): New struct.
1593 (register_test): New function.
1594 (register_test): Add name parameter and use it.
1595 (run_tests): Add filter parameter and use it. Add prints.
1596 Adjust to vector -> map change.
1597 * aarch64-tdep.c (_initialize_aarch64_tdep): Add names when
1598 registering selftests.
1599 * arm-tdep.c (_initialize_arm_tdep): Likewise.
1600 * disasm-selftests.c (_initialize_disasm_selftests): Likewise.
1601 * dwarf2-frame.c (_initialize_dwarf2_frame): Likewise.
1602 * dwarf2loc.c (_initialize_dwarf2loc): Likewise.
1603 * findvar.c (_initialize_findvar): Likewise.
1604 * gdbarch-selftests.c (_initialize_gdbarch_selftests): Likewise.
1605 * maint.c (maintenance_selftest): Update call to run_tests.
1606 (maintenance_info_selftests): New function.
1607 (_initialize_maint_cmds): Register "maintenance info selftests"
1608 command. Update "maintenance selftest" doc.
1609 * regcache.c (_initialize_regcache): Add names when registering
1610 selftests.
1611 * rust-exp.y (_initialize_rust_exp): Likewise.
1612 * selftest-arch.c (gdbarch_selftest): New struct.
1613 (gdbarch_tests): Remove.
1614 (register_test_foreach_arch): Add name parameter. Call
1615 register_test.
1616 (tests_with_arch): Remove, move most content to
1617 gdbarch_selftest::operator().
1618 (_initialize_selftests_foreach_arch): Remove.
1619 * selftest-arch.h (register_test_foreach_arch): Add name
1620 parameter.
1621 (run_tests_with_arch): New declaration.
1622 * utils-selftests.c (_initialize_utils_selftests): Add names
1623 when registering selftests.
1624 * utils.c (_initialize_utils): Likewise.
1625 * unittests/array-view-selftests.c
1626 (_initialize_array_view_selftests): Likewise.
1627 * unittests/environ-selftests.c (_initialize_environ_selftests):
1628 Likewise.
1629 * unittests/function-view-selftests.c
1630 (_initialize_function_view_selftests): Likewise.
1631 * unittests/offset-type-selftests.c
1632 (_initialize_offset_type_selftests): Likewise.
1633 * unittests/optional-selftests.c
1634 (_initialize_optional_selftests): Likewise.
1635 * unittests/scoped_restore-selftests.c
1636 (_initialize_scoped_restore_selftests): Likewise.
1637 * NEWS: Document "maintenance selftest" and "maint info
1638 selftests".
1639
5846367a
SM
16402017-09-16 Simon Marchi <simon.marchi@ericsson.com>
1641
1642 * mi/mi-main.c (mi_load_progress): Restore current_uiout using a
1643 scoped_restore.
1644
bd77e8ff
SM
16452017-09-16 Simon Marchi <simon.marchi@ericsson.com>
1646
1647 * mi/mi-main.c (mi_load_progress): Make uiout variable
1648 a unique_ptr.
1649
26a67918
PA
16502017-09-15 Pedro Alves <palves@redhat.com>
1651
1652 * compile/compile-c-types.c (convert_enum, convert_int)
1653 (convert_float): Adjust to refer to int_type_v0 and float_type_v0.
1654
3f8a7804
SM
16552017-09-15 Simon Marchi <simon.marchi@ericsson.com>
1656
1657 * dwarf2read.c (copy_string): Remove.
1658 (parse_macro_definition): Replace copy_string with savestring.
1659
8d200706
YQ
16602017-09-15 Yao Qi <yao.qi@linaro.org>
1661
1662 * configure.tgt (i[34567]86-*-darwin*): Append amd64.o to
1663 gdb_target_obs.
1664 (i[34567]86-*-solaris2.1[0-9]* | x86_64-*-solaris2.1[0-9]*):
1665 Likewise.
1666 (i[34567]86-*-linux*): Likewise.
1667
d185219d
SM
16682017-09-14 Simon Marchi <simon.marchi@ericsson.com>
1669
1670 * dwarf2expr.h (dwarf_stack_value): Add constructor.
1671 (dwarf_expr_context) <~dwarf_expr_context>: Define as default.
1672 <stack>: Change type to std::vector.
1673 <stack_len, stack_allocated>: Remove.
1674 <grow_stack>: Remove.
1675 * dwarf2expr.c (dwarf_expr_context::dwarf_expr_context): Adjust.
1676 (dwarf_expr_context::~dwarf_expr_context): Remove.
1677 (dwarf_expr_context::grow_stack): Remove.
1678 (dwarf_expr_context::push): Adjust.
1679 (dwarf_expr_context::pop): Adjust.
1680 (dwarf_expr_context::fetch): Adjust.
1681 (dwarf_expr_context::fetch_in_stack_memory): Adjust.
1682 (dwarf_expr_context::stack_empty_p): Adjust.
1683 (dwarf_expr_context::execute_stack_op): Adjust.
1684
eccd80d6
SM
16852017-09-14 Simon Marchi <simon.marchi@ericsson.com>
1686
1687 * dwarf2expr.h (dwarf_expr_context) <stack_empty_p>: Change
1688 return type to bool.
1689 * dwarf2expr.c (dwarf_expr_context::stack_empty_p): Likewise.
1690
69009882
SM
16912017-09-14 Simon Marchi <simon.marchi@ericsson.com>
1692
1693 * dwarf2expr.h (dwarf_expr_piece) <v.mem.in_stack_memory>:
1694 Change type to bool.
1695 (dwarf_stack_value) <in_stack_memory>: Likewise.
1696 (dwarf_expr_context) <push_address>: Change parameter type to
1697 bool.
1698 <fetch_in_stack_memory>: Change return type to bool.
1699 <push>: Change parameter type to bool.
1700 * dwarf2expr.c (dwarf_expr_context::push): Change parameter type
1701 to bool.
1702 (dwarf_expr_context::push_address): Likewise.
1703 (dwarf_expr_context::fetch_in_stack_memory): Change return type
1704 to bool.
1705 (dwarf_expr_context::execute_stack_op): Adjust.
1706 * dwarf2loc.c (dwarf2_evaluate_loc_desc_full): Adjust.
1707
1e467161
SM
17082017-09-14 Simon Marchi <simon.marchi@ericsson.com>
1709
1710 * dwarf2expr.h (struct dwarf_expr_piece): Move up.
1711 (struct dwarf_expr_context) <n_pieces>: Remove.
1712 <pieces>: Change type to std::vector.
1713 * dwarf2expr.c (dwarf_expr_context::dwarf_expr_context): Adjust.
1714 (dwarf_expr_context::~dwarf_expr_context): Don't manually free
1715 pieces.
1716 (dwarf_expr_context::add_piece): Adjust.
1717 * dwarf2loc.c (struct piece_closure): Initialize fields.
1718 <n_pieces>: Remove.
1719 <pieces>: Change type to std::vector.
1720 (allocate_piece_closure): Adjust, change parameter to
1721 std::vector rvalue and std::move it to piece_closure.
1722 (rw_pieced_value): Adjust.
1723 (check_pieced_synthetic_pointer): Adjust.
1724 (indirect_synthetic_pointer): Adjust.
1725 (coerce_pieced_ref): Adjust.
1726 (free_pieced_value_closure): Adjust. Use delete to free
1727 piece_closure.
1728 (dwarf2_evaluate_loc_desc_full): Adjust. std::move ctx.pieces
1729 to allocate_piece_closure.
1730 (dwarf2_loc_desc_get_symbol_read_needs): Adjust.
1731
0782db84
SM
17322017-09-12 Simon Marchi <simon.marchi@ericsson.com>
1733
1734 * probe.h (probe_ops_cp): Remove typedef.
1735 (DEF_VEC_P (probe_ops_cp)): Remove.
1736 (all_probe_ops): Change type to std::vector.
1737 * probe.c (info_probes_for_ops): Adjust to vector change.
1738 (probe_linespec_to_ops): Likewise.
1739 (all_probe_ops): Change type to std::vector.
1740 (_initialize_probe): Adjust to vector change.
1741 * dtrace-probe.c (_initialize_dtrace_probe): Likewise.
1742 * elfread.c (elf_get_probes): Likewise.
1743 * stap-probe.c (_initialize_stap_probe): Likewise.
1744
1eac6bea
SM
17452017-09-12 Simon Marchi <simon.marchi@ericsson.com>
1746
1747 * probe.h (struct bound_probe): Define constructors.
1748 * probe.c (bound_probe_s): Remove typedef.
1749 (DEF_VEC_O (bound_probe_s)): Remove VEC.
1750 (collect_probes): Change return type to std::vector, remove
1751 cleanup.
1752 (compare_probes): Return bool, change parameter type. Change
1753 semantic to "less than".
1754 (gen_ui_out_table_header_info): Change parameter to std::vector
1755 and update.
1756 (exists_probe_with_pops): Likewise.
1757 (info_probes_for_ops): Update to std::vector change.
1758 (enable_probes_command): Likewise.
1759 (disable_probes_command): Likewise.
1760
aaa63a31
SM
17612017-09-12 Simon Marchi <simon.marchi@ericsson.com>
1762
1763 * probe.h (struct probe_ops) <get_probes>: Change parameter from
1764 vec to std::vector.
1765 * probe.c (parse_probes_in_pspace): Update.
1766 (find_probes_in_objfile): Update.
1767 (find_probe_by_pc): Update.
1768 (collect_probes): Update.
1769 (probe_any_get_probes): Update.
1770 * symfile.h (struct sym_probe_fns) <sym_get_probes> Change
1771 return type to reference to std::vector.
1772 * dtrace-probe.c (dtrace_process_dof_probe): Change parameter to
1773 std::vector and update.
1774 (dtrace_process_dof): Likewise.
1775 (dtrace_get_probes): Likewise.
1776 * elfread.c (elf_get_probes): Change return type to std::vector,
1777 store an std::vector in bfd_data.
1778 (probe_key_free): Update to std::vector.
1779 * stap-probe.c (handle_stap_probe): Change parameter to
1780 std::vector and update.
1781 (stap_get_probes): Likewise.
1782 * symfile-debug.c (debug_sym_get_probes): Change return type to
1783 std::vector and update.
1784
cb85b21b
TT
17852017-09-11 Tom Tromey <tom@tromey.com>
1786
1787 * breakpoint.c (program_breakpoint_here_p): Update.
1788 * target.c (make_scoped_restore_show_memory_breakpoints): Rename
1789 from make_show_memory_breakpoints_cleanup. Return a
1790 scoped_restore_tmpl<int>.
1791 (restore_show_memory_breakpoints): Remove.
1792 * ppc-linux-tdep.c (ppc_linux_memory_remove_breakpoint): Update.
1793 * mem-break.c (memory_validate_breakpoint): Update.
1794 * ia64-tdep.c (ia64_memory_insert_breakpoint): Update.
1795 (ia64_memory_remove_breakpoint): Update.
1796 (ia64_breakpoint_from_pc): Update.
1797 * target.h (make_scoped_restore_show_memory_breakpoints): Rename
1798 from make_show_memory_breakpoints_cleanup.
1799
8fbc99ef
TT
18002017-09-11 Tom Tromey <tom@tromey.com>
1801
1802 * d-namespace.c (d_lookup_symbol): Use std::string.
1803 (find_symbol_in_baseclass): Likewise.
1804
50feb4bd
TT
18052017-09-11 Tom Tromey <tom@tromey.com>
1806
1807 * ctf.c (ctf_start): Use std::string.
1808
c6dc63a1
TT
18092017-09-11 Tom Tromey <tom@tromey.com>
1810
1811 * ada-lang.c (is_known_support_routine): Update.
1812 (ada_unhandled_exception_name_addr_from_raise): Update.
1813 * guile/scm-frame.c (gdbscm_frame_name): Update.
1814 * python/py-frame.c (frapy_name): Update.
1815 (frapy_function): Update.
1816 * stack.h (find_frame_funname): Update.
1817 * stack.c (find_frame_funname): Return unique_xmalloc_ptr.
1818 (print_frame): Update.
1819
d6b9b80f
TT
18202017-09-11 Tom Tromey <tom@tromey.com>
1821
1822 * findcmd.c (put_bits): Take a gdb::byte_vector.
1823 (parse_find_args): Return gdb::byte_vector. "args" now const.
1824 Remove "pattern_bufp" and "pattern_lenp" parameters. Remove
1825 cleanups.
1826 (find_command): Update.
1827
a9921622
TT
18282017-09-11 Tom Tromey <tom@tromey.com>
1829
1830 * cli/cli-script.c (class scoped_restore_hook_in): New.
1831 (clear_hook_in_cleanup): Remove.
1832 (execute_cmd_pre_hook, execute_cmd_post_hook): Use
1833 scoped_restore_hook_in.
1834
be0d7abb
TT
18352017-09-11 Tom Tromey <tom@tromey.com>
1836
1837 * cli/cli-script.c (restore_interp): Remove.
1838 (read_command_lines): Use scoped_restore_interp.
1839 * interps.c (scoped_restore_interp::set_temp): Rename from
1840 interp_set_temp.
1841 * interps.h (class scoped_restore_interp): New.
1842 (interp_set_temp): Remove.
1843
00f675ff
TT
18442017-09-11 Tom Tromey <tom@tromey.com>
1845
1846 * mi/mi-cmd-catch.c (mi_cmd_catch_assert)
1847 (mi_cmd_catch_exception, mi_catch_load_unload): Update.
1848 * mi/mi-cmd-break.c (setup_breakpoint_reporting): Return a
1849 scoped_restore.
1850 (mi_cmd_break_insert_1): Update.
1851 * mi/mi-cmd-break.h (setup_breakpoint_reporting): Return a
1852 scoped_restore.
1853
cb791d59
TT
18542017-09-11 Tom Tromey <tom@tromey.com>
1855
1856 * demangle.c (demangle_command): Update.
1857 * breakpoint.c (disable_command): Update.
1858 (enable_command): Update.
1859 (find_location_by_number): Make "number" const. Use
1860 get_number_trailer.
1861 * cli/cli-utils.c (extract_arg): Return std::string.
1862 * probe.c (parse_probe_linespec): Update. Change types.
1863 (collect_probes): Take string arguments.
1864 (parse_probe_linespec): Likewise.
1865 (info_probes_for_ops): Update.
1866 (enable_probes_command): Update.
1867 (disable_probes_command): Update.
1868 * break-catch-sig.c (catch_signal_split_args): Update.
1869 * mi/mi-parse.c (mi_parse): Update.
1870
2039bd9f
TT
18712017-09-11 Tom Tromey <tom@tromey.com>
1872
1873 * language.h (language_enum): Make argument const.
1874 * language.c (language_enum): Make argument const.
1875
f1735a53
TT
18762017-09-11 Tom Tromey <tom@tromey.com>
1877
1878 * common/common-utils.h (skip_to_space): Remove macro, redeclare
1879 as function.
1880 (skip_to_space): Rename from skip_to_space_const.
1881 * common/common-utils.c (skip_to_space): New function.
1882 (skip_to_space): Rename from skip_to_space_const.
1883 * cli/cli-utils.h (get_number): Rename from get_number_const.
1884 (extract_arg): Rename from extract_arg_const.
1885 * cli/cli-utils.c (get_number): Rename from get_number_const.
1886 (extract_arg): Rename from extract_arg_const.
1887 (number_or_range_parser::get_number): Use ::get_number.
1888 * aarch64-linux-tdep.c, ada-lang.c, arm-linux-tdep.c, ax-gdb.c,
1889 break-catch-throw.c, breakpoint.c, cli/cli-cmds.c, cli/cli-dump.c,
1890 cli/cli-script.c, cli/cli-setshow.c, compile/compile.c,
1891 completer.c, demangle.c, disasm.c, findcmd.c, linespec.c,
1892 linux-tdep.c, linux-thread-db.c, location.c, mi/mi-parse.c,
1893 minsyms.c, nat/linux-procfs.c, printcmd.c, probe.c,
1894 python/py-breakpoint.c, record.c, rust-exp.y, serial.c, stack.c,
1895 stap-probe.c, tid-parse.c, tracepoint.c: Update all callers.
1896
7d221d74
TT
18972017-09-11 Tom Tromey <tom@tromey.com>
1898
1899 * python/python.c (do_start_initialization): Use
1900 py-event-types.def to initialize types.
1901 Define all object type structures.
1902 * python/python-internal.h: Don't declare event initialization
1903 functions.
1904 * python/py-threadevent.c (thread_event_object_type): Don't
1905 define.
1906 * python/py-stopevent.c (stop_event_object_type): Don't define.
1907 * python/py-signalevent.c (signal_event_object_type): Don't
1908 declare or define.
1909 * python/py-newobjfileevent.c (new_objfile_event_object_type)
1910 (clear_objfiles_event_object_type): Don't declare or define.
1911 * python/py-infevents.c (inferior_call_pre_event_object_type)
1912 (inferior_call_post_event_object_type)
1913 (register_changed_event_object_type)
1914 (memory_changed_event_object_type): Don't declare or define.
1915 * python/py-inferior.c (new_thread_event_object_type)
1916 (new_inferior_event_object_type)
1917 (inferior_deleted_event_object_type): Don't declare or define.
1918 * python/py-exitedevent.c (exited_event_object_type): Don't
1919 declare or define.
1920 * python/py-evts.c (gdbpy_initialize_py_events): Use
1921 py-all-events.def.
1922 * python/py-events.h (thread_event_object_type): Don't declare.
1923 (events_object): Use py-all-events.def.
1924 * python/py-event.h (GDBPY_NEW_EVENT_TYPE): Remove. Use
1925 py-event-types.def.
1926 * python/py-event-types.def: New file.
1927 * python/py-continueevent.c (create_continue_event_object): Don't
1928 declare or define.
1929 * python/py-bpevent.c (breakpoint_event_object_type): Don't
1930 declare or define.
1931 * python/py-all-events.def: New file.
1932
35c61a1d
TT
19332017-09-11 Tom Tromey <tom@tromey.com>
1934
1935 * python/py-threadevent.c (create_thread_event_object): Return
1936 gdbpy_ref.
1937 * python/py-stopevent.h (create_stop_event_object)
1938 (create_breakpoint_event_object, create_signal_event_object):
1939 Update.
1940 * python/py-stopevent.c (create_stop_event_object): Return
1941 gdbpy_ref.
1942 (emit_stop_event): Update.
1943 * python/py-signalevent.c (create_signal_event_object): Return
1944 gdbpy_ref.
1945 * python/py-infevents.c (create_inferior_call_event_object):
1946 Update.
1947 * python/py-event.h (create_event_object)
1948 (create_thread_event_object): Update.
1949 * python/py-event.c (create_event_object): Return gdbpy_ref.
1950 * python/py-continueevent.c: Return gdbpy_ref.
1951 * python/py-bpevent.c (create_breakpoint_event_object): Return
1952 gdbpy_ref.
1953
7c96f8c1
TT
19542017-09-11 Tom Tromey <tom@tromey.com>
1955
1956 PR python/15622:
1957 * NEWS: Add entry.
1958 * python/python.c (do_start_initialization): Initialize new event
1959 types.
1960 * python/python-internal.h (gdbpy_initialize_new_inferior_event)
1961 (gdbpy_initialize_inferior_deleted_event)
1962 (gdbpy_initialize_new_thread_event): Declare.
1963 * python/py-threadevent.c (create_thread_event_object): Add option
1964 "thread" parameter.
1965 * python/py-inferior.c (new_thread_event_object_type)
1966 (new_inferior_event_object_type)
1967 (inferior_deleted_event_object_type): Declare.
1968 (python_new_inferior, python_inferior_deleted): New functions.
1969 (add_thread_object): Emit new_thread event.
1970 (gdbpy_initialize_inferior): Attach new functions to corresponding
1971 observers.
1972 (new_thread, new_inferior, inferior_deleted): Define new event
1973 types.
1974 * python/py-evts.c (gdbpy_initialize_py_events): Add new
1975 registries.
1976 * python/py-events.h (events_object) <new_inferior,
1977 inferior_deleted, new_thread>: New fields.
1978 * python/py-event.h (create_thread_event_breakpoint): Add optional
1979 "thread" parameter.
1980
72542b8e
AB
19812017-09-10 Andrew Burgess <andrew.burgess@embecosm.com>
1982
1983 * utils.c (abort_with_message): Don't compare gdb_stderr to NULL,
1984 check current_ui instead.
1985 (internal_vproblem): Likewise.
1986
0d64823e
SM
19872017-09-09 Simon Marchi <simon.marchi@ericsson.com>
1988
1989 * thread.c (print_thread_info_1): Remove unnecessary calls to
1990 uiout->is_mi_like_p.
1991
eb1e02fd
TT
19922017-09-09 Tom Tromey <tom@tromey.com>
1993
1994 * namespace.h (add_using_directive): Update.
1995 * namespace.c (add_using_directive): Change type of excludes to
1996 std::vector.
1997 * dwarf2read.c (read_import_statement): Use std::vector.
1998 (read_namespace): Update.
1999 * cp-namespace.c (cp_scan_for_anonymous_namespaces): Update.
2000
0fc21fd8
TT
20012017-09-09 Tom Tromey <tom@tromey.com>
2002
2003 * linespec.c (create_sals_line_offset): Use gdb::def_vector.
2004
49663d05
TT
20052017-09-09 Tom Tromey <tom@tromey.com>
2006
2007 * p-valprint.c (pascal_object_print_value): Use gdb::byte_vector.
2008
0b868b60
TT
20092017-09-09 Tom Tromey <tom@tromey.com>
2010
2011 * stack.c (func_command): Use gdb::def_vector.
2012
c0470d48
TT
20132017-09-09 Tom Tromey <tom@tromey.com>
2014
2015 * mi/mi-cmd-var.c (mi_cmd_var_list_children): Use gdb::optional,
2016 ui_out_emit_list, ui_out_emit_tuple.
2017 (mi_cmd_var_update): Likewise.
2018
ca5909c7
TT
20192017-09-09 Tom Tromey <tom@tromey.com>
2020
2021 * mi/mi-interp.c (mi_user_selected_context_changed): Use
2022 ui_out_redirect_pop.
2023 * guile/scm-ports.c (ioscm_with_output_to_port_worker): Use
2024 ui_out_redirect_pop.
2025 * utils.c (do_ui_out_redirect_pop)
2026 (make_cleanup_ui_out_redirect_pop): Remove.
2027 * top.c (execute_command_to_string): Use ui_out_redirect_pop.
2028 * utils.h (make_cleanup_ui_out_redirect_pop): Remove.
2029 * ui-out.h (ui_out_redirect_pop): New class.
2030
e6a2252a
TT
20312017-09-09 Tom Tromey <tom@tromey.com>
2032
2033 * mi/mi-main.c (output_cores): Use ui_out_emit_list.
2034 (list_available_thread_groups, mi_cmd_list_thread_groups)
2035 (mi_cmd_data_list_changed_registers, mi_cmd_data_read_memory)
2036 (mi_cmd_data_read_memory_bytes, mi_cmd_trace_frame_collected):
2037 Likewise.
2038
393702cd
TT
20392017-09-09 Tom Tromey <tom@tromey.com>
2040
2041 * disasm.c (gdb_pretty_print_disassembler::pretty_print_insn): Use
2042 ui_out_emit_tuple.
2043
76f9c9cf
TT
20442017-09-09 Tom Tromey <tom@tromey.com>
2045
2046 * target.c (flash_erase_command): Use ui_out_emit_tuple.
2047 * stack.c (print_frame): Use ui_out_emit_tuple.
2048 * spu-tdep.c (info_spu_event_command): Use ui_out_emit_tuple.
2049 (info_spu_mailbox_command, info_spu_dma_command)
2050 (info_spu_proxydma_command): Likewise.
2051 * mi/mi-main.c (mi_cmd_trace_frame_collected): Use
2052 ui_out_emit_tuple, gdb::byte_vector, bin2hex.
2053 * mi/mi-cmd-file.c (mi_cmd_file_list_shared_libraries): Use
2054 ui_out_emit_tuple.
2055 * breakpoint.c (print_it_watchpoint): Use ui_out_emit_tuple.
2056
dc9fe180
TT
20572017-09-09 Tom Tromey <tom@tromey.com>
2058
2059 * ui-out.h (make_cleanup_ui_out_table_begin_end): Remove.
2060 (class ui_out_emit_table): Update comment.
2061 * ui-out.c (do_cleanup_table_end)
2062 (make_cleanup_ui_out_table_begin_end): Remove.
2063 * spu-tdep.c (info_spu_mailbox_list): Use ui_out_emit_table.
2064 (info_spu_dma_cmdlist): Likewise.
2065 * probe.c (info_probes_for_ops): Use ui_out_emit_table.
2066 * darwin-nat-info.c (darwin_debug_regions_recurse): Use
2067 ui_out_emit_table.
2068
f8cc3da6
TT
20692017-09-09 Tom Tromey <tom@tromey.com>
2070
2071 * thread.c (print_thread_info_1): Use ui_out_emit_table,
2072 ui_out_emit_list, gdb::optional.
2073
481695ed
JB
20742017-09-09 John Baldwin <jhb@FreeBSD.org>
2075
2076 * aarch64-linux-nat.c: Remove _initialize_aarch64_linux_nat
2077 prototype.
2078 * aarch64-linux-tdep.c: Remove _initialize_aarch64_linux_tdep
2079 prototype.
2080 * aarch64-newlib-tdep.c: Remove _initialize_aarch64_newlib_tdep
2081 prototype.
2082 * aarch64-tdep.c: Remove _initialize_aarch64_tdep prototype.
2083 * ada-exp.y: Remove _initialize_ada_exp prototype.
2084 * ada-lang.c: Remove _initialize_ada_language prototype.
2085 * ada-tasks.c: Remove _initialize_tasks prototype.
2086 * addrmap.c: Remove _initialize_addrmap prototype.
2087 * agent.c: Remove _initialize_agent prototype.
2088 * aix-thread.c: Remove _initialize_aix_thread prototype.
2089 * alpha-bsd-nat.c: Remove _initialize_alphabsd_nat prototype.
2090 * alpha-linux-nat.c: Remove _initialize_alpha_linux_nat prototype.
2091 * alpha-linux-tdep.c: Remove _initialize_alpha_linux_tdep
2092 prototype.
2093 * alpha-nbsd-tdep.c: Remove _initialize_alphanbsd_tdep prototype.
2094 * alpha-obsd-tdep.c: Remove _initialize_alphaobsd_tdep prototype.
2095 * alpha-tdep.c: Remove _initialize_alpha_tdep prototype.
2096 * amd64-darwin-tdep.c: Remove _initialize_amd64_darwin_tdep
2097 prototype.
2098 * amd64-dicos-tdep.c: Remove _initialize_amd64_dicos_tdep
2099 prototype.
2100 * amd64-fbsd-nat.c: Remove _initialize_amd64fbsd_nat prototype.
2101 * amd64-fbsd-tdep.c: Remove _initialize_amd64fbsd_tdep prototype.
2102 * amd64-linux-nat.c: Remove _initialize_amd64_linux_nat prototype.
2103 * amd64-linux-tdep.c: Remove _initialize_amd64_linux_tdep
2104 prototype.
2105 * amd64-nbsd-nat.c: Remove _initialize_amd64nbsd_nat prototype.
2106 * amd64-nbsd-tdep.c: Remove _initialize_amd64nbsd_tdep prototype.
2107 * amd64-obsd-nat.c: Remove _initialize_amd64obsd_nat prototype.
2108 * amd64-obsd-tdep.c: Remove _initialize_amd64obsd_tdep prototype.
2109 * amd64-sol2-tdep.c: Remove _initialize_amd64_sol2_tdep prototype.
2110 * amd64-tdep.c: Remove _initialize_amd64_tdep prototype.
2111 * amd64-windows-nat.c: Remove _initialize_amd64_windows_nat
2112 prototype.
2113 * amd64-windows-tdep.c: Remove _initialize_amd64_windows_tdep
2114 prototype.
2115 * annotate.c: Remove _initialize_annotate prototype.
2116 * arc-newlib-tdep.c: Remove _initialize_arc_newlib_tdep prototype.
2117 * arc-tdep.c: Remove _initialize_arc_tdep prototype.
2118 * arch-utils.c: Remove _initialize_gdbarch_utils prototype.
2119 * arm-linux-nat.c: Remove _initialize_arm_linux_nat prototype.
2120 * arm-linux-tdep.c: Remove _initialize_arm_linux_tdep prototype.
2121 * arm-nbsd-tdep.c: Remove _initialize_arm_netbsd_tdep prototype.
2122 * arm-obsd-tdep.c: Remove _initialize_armobsd_tdep prototype.
2123 * arm-symbian-tdep.c: Remove _initialize_arm_symbian_tdep
2124 prototype.
2125 * arm-tdep.c: Remove _initialize_arm_tdep prototype.
2126 * arm-wince-tdep.c: Remove _initialize_arm_wince_tdep prototype.
2127 * auto-load.c: Remove _initialize_auto_load prototype.
2128 * auxv.c: Remove _initialize_auxv prototype.
2129 * avr-tdep.c: Remove _initialize_avr_tdep prototype.
2130 * ax-gdb.c: Remove _initialize_ax_gdb prototype.
2131 * bfin-linux-tdep.c: Remove _initialize_bfin_linux_tdep prototype.
2132 * bfin-tdep.c: Remove _initialize_bfin_tdep prototype.
2133 * break-catch-sig.c: Remove _initialize_break_catch_sig prototype.
2134 * break-catch-syscall.c: Remove _initialize_break_catch_syscall
2135 prototype.
2136 * break-catch-throw.c: Remove _initialize_break_catch_throw
2137 prototype.
2138 * breakpoint.c: Remove _initialize_breakpoint prototype.
2139 * bsd-uthread.c: Remove _initialize_bsd_uthread prototype.
2140 * btrace.c: Remove _initialize_btrace prototype.
2141 * charset.c: Remove _initialize_charset prototype.
2142 * cli/cli-cmds.c: Remove _initialize_cli_cmds prototype.
2143 * cli/cli-dump.c: Remove _initialize_cli_dump prototype.
2144 * cli/cli-interp.c: Remove _initialize_cli_interp prototype.
2145 * cli/cli-logging.c: Remove _initialize_cli_logging prototype.
2146 * cli/cli-script.c: Remove _initialize_cli_script prototype.
2147 * coff-pe-read.c: Remove _initialize_coff_pe_read prototype.
2148 * coffread.c: Remove _initialize_coffread prototype.
2149 * compile/compile.c: Remove _initialize_compile prototype.
2150 * complaints.c: Remove _initialize_complaints prototype.
2151 * completer.c: Remove _initialize_completer prototype.
2152 * copying.awk: Remove _initialize_copying prototype.
2153 * copying.c: Regenerate.
2154 * core-regset.c: Remove _initialize_core_regset prototype.
2155 * corefile.c: Remove _initialize_core prototype.
2156 * corelow.c: Remove _initialize_corelow prototype.
2157 * cp-abi.c: Remove _initialize_cp_abi prototype.
2158 * cp-namespace.c: Remove _initialize_cp_namespace prototype.
2159 * cp-support.c: Remove _initialize_cp_support prototype.
2160 * cp-valprint.c: Remove _initialize_cp_valprint prototype.
2161 * cris-linux-tdep.c: Remove _initialize_cris_linux_tdep prototype.
2162 * cris-tdep.c: Remove _initialize_cris_tdep prototype.
2163 * ctf.c: Remove _initialize_ctf prototype.
2164 * d-lang.c: Remove _initialize_d_language prototype.
2165 * darwin-nat-info.c: Remove _initialize_darwin_info_commands
2166 prototype.
2167 * darwin-nat.c: Remove _initialize_darwin_inferior prototype.
2168 * dbxread.c: Remove _initialize_dbxread prototype.
2169 * dcache.c: Remove _initialize_dcache prototype.
2170 * demangle.c: Remove _initialize_demangler prototype.
2171 * disasm-selftests.c: Remove _initialize_disasm_selftests
2172 prototype.
2173 * disasm.c: Remove _initialize_disasm prototype.
2174 * dtrace-probe.c: Remove _initialize_dtrace_probe prototype.
2175 * dummy-frame.c: Remove _initialize_dummy_frame prototype.
2176 * dwarf2-frame-tailcall.c: Remove _initialize_tailcall_frame
2177 prototype.
2178 * dwarf2-frame.c: Remove _initialize_dwarf2_frame prototype.
2179 * dwarf2expr.c: Remove _initialize_dwarf2expr prototype.
2180 * dwarf2loc.c: Remove _initialize_dwarf2loc prototype.
2181 * dwarf2read.c: Remove _initialize_dwarf2_read prototype.
2182 * elfread.c: Remove _initialize_elfread prototype.
2183 * exec.c: Remove _initialize_exec prototype.
2184 * extension.c: Remove _initialize_extension prototype.
2185 * f-lang.c: Remove _initialize_f_language prototype.
2186 * f-valprint.c: Remove _initialize_f_valprint prototype.
2187 * fbsd-nat.c: Remove _initialize_fbsd_nat prototype.
2188 * fbsd-tdep.c: Remove _initialize_fbsd_tdep prototype.
2189 * filesystem.c: Remove _initialize_filesystem prototype.
2190 * findcmd.c: Remove _initialize_mem_search prototype.
2191 * fork-child.c: Remove _initialize_fork_child prototype.
2192 * frame-base.c: Remove _initialize_frame_base prototype.
2193 * frame-unwind.c: Remove _initialize_frame_unwind prototype.
2194 * frame.c: Remove _initialize_frame prototype.
2195 * frv-linux-tdep.c: Remove _initialize_frv_linux_tdep prototype.
2196 * frv-tdep.c: Remove _initialize_frv_tdep prototype.
2197 * ft32-tdep.c: Remove _initialize_ft32_tdep prototype.
2198 * gcore.c: Remove _initialize_gcore prototype.
2199 * gdb_bfd.c: Remove _initialize_gdb_bfd prototype.
2200 * gdbarch.c: Regenerate.
2201 * gdbarch.sh: Remove _initialize_gdbarch prototype.
2202 * gdbtypes.c: Remove _initialize_gdbtypes prototype.
2203 * gnu-nat.c: Remove _initialize_gnu_nat prototype.
2204 * gnu-v2-abi.c: Remove _initialize_gnu_v2_abi prototype.
2205 * gnu-v3-abi.c: Remove _initialize_gnu_v3_abi prototype.
2206 * go-lang.c: Remove _initialize_go_language prototype.
2207 * go32-nat.c: Remove _initialize_go32_nat prototype.
2208 * guile/guile.c: Remove _initialize_guile prototype.
2209 * h8300-tdep.c: Remove _initialize_h8300_tdep prototype.
2210 * hppa-linux-nat.c: Remove _initialize_hppa_linux_nat prototype.
2211 * hppa-linux-tdep.c: Remove _initialize_hppa_linux_tdep prototype.
2212 * hppa-nbsd-nat.c: Remove _initialize_hppanbsd_nat prototype.
2213 * hppa-nbsd-tdep.c: Remove _initialize_hppanbsd_tdep prototype.
2214 * hppa-obsd-nat.c: Remove _initialize_hppaobsd_nat prototype.
2215 * hppa-obsd-tdep.c: Remove _initialize_hppaobsd_tdep prototype.
2216 * hppa-tdep.c: Remove _initialize_hppa_tdep prototype.
2217 * i386-bsd-nat.c: Remove _initialize_i386bsd_nat prototype.
2218 * i386-cygwin-tdep.c: Remove _initialize_i386_cygwin_tdep
2219 prototype.
2220 * i386-darwin-tdep.c: Remove _initialize_i386_darwin_tdep
2221 prototype.
2222 * i386-dicos-tdep.c: Remove _initialize_i386_dicos_tdep prototype.
2223 * i386-fbsd-nat.c: Remove _initialize_i386fbsd_nat prototype.
2224 * i386-fbsd-tdep.c: Remove _initialize_i386fbsd_tdep prototype.
2225 * i386-gnu-nat.c: Remove _initialize_i386gnu_nat prototype.
2226 * i386-gnu-tdep.c: Remove _initialize_i386gnu_tdep prototype.
2227 * i386-linux-nat.c: Remove _initialize_i386_linux_nat prototype.
2228 * i386-linux-tdep.c: Remove _initialize_i386_linux_tdep prototype.
2229 * i386-nbsd-nat.c: Remove _initialize_i386nbsd_nat prototype.
2230 * i386-nbsd-tdep.c: Remove _initialize_i386nbsd_tdep prototype.
2231 * i386-nto-tdep.c: Remove _initialize_i386nto_tdep prototype.
2232 * i386-obsd-nat.c: Remove _initialize_i386obsd_nat prototype.
2233 * i386-obsd-tdep.c: Remove _initialize_i386obsd_tdep prototype.
2234 * i386-sol2-nat.c: Remove _initialize_amd64_sol2_nat prototype.
2235 * i386-sol2-tdep.c: Remove _initialize_amd64_sol2_tdep prototype.
2236 * i386-tdep.c: Remove _initialize_i386_tdep prototype.
2237 * i386-windows-nat.c: Remove _initialize_i386_windows_nat
2238 prototype.
2239 * ia64-libunwind-tdep.c: Remove _initialize_libunwind_frame
2240 prototype.
2241 * ia64-linux-nat.c: Remove _initialize_ia64_linux_nat prototype.
2242 * ia64-linux-tdep.c: Remove _initialize_ia64_linux_tdep prototype.
2243 * ia64-tdep.c: Remove _initialize_ia64_tdep prototype.
2244 * ia64-vms-tdep.c: Remove _initialize_ia64_vms_tdep prototype.
2245 * infcall.c: Remove _initialize_infcall prototype.
2246 * infcmd.c: Remove _initialize_infcmd prototype.
2247 * inferior.c: Remove _initialize_inferiors prototype.
2248 * inflow.c: Remove _initialize_inflow prototype.
2249 * infrun.c: Remove _initialize_infrun prototype.
2250 * interps.c: Remove _initialize_interpreter prototype.
2251 * iq2000-tdep.c: Remove _initialize_iq2000_tdep prototype.
2252 * jit.c: Remove _initialize_jit prototype.
2253 * language.c: Remove _initialize_language prototype.
2254 * linux-fork.c: Remove _initialize_linux_fork prototype.
2255 * linux-nat.c: Remove _initialize_linux_nat prototype.
2256 * linux-tdep.c: Remove _initialize_linux_tdep prototype.
2257 * linux-thread-db.c: Remove _initialize_thread_db prototype.
2258 * lm32-tdep.c: Remove _initialize_lm32_tdep prototype.
2259 * m2-lang.c: Remove _initialize_m2_language prototype.
2260 * m32c-tdep.c: Remove _initialize_m32c_tdep prototype.
2261 * m32r-linux-nat.c: Remove _initialize_m32r_linux_nat prototype.
2262 * m32r-linux-tdep.c: Remove _initialize_m32r_linux_tdep prototype.
2263 * m32r-tdep.c: Remove _initialize_m32r_tdep prototype.
2264 * m68hc11-tdep.c: Remove _initialize_m68hc11_tdep prototype.
2265 * m68k-bsd-nat.c: Remove _initialize_m68kbsd_nat prototype.
2266 * m68k-bsd-tdep.c: Remove _initialize_m68kbsd_tdep prototype.
2267 * m68k-linux-nat.c: Remove _initialize_m68k_linux_tdep prototype.
2268 * m68k-linux-tdep.c: Remove _initialize_m68k_linux_tdep prototype.
2269 * m68k-tdep.c: Remove _initialize_m68k_tdep prototype.
2270 * m88k-bsd-nat.c: Remove _initialize_m68kbsd_nat prototype.
2271 * m88k-tdep.c: Remove _initialize_m68kbsd_tdep prototype.
2272 * machoread.c: Remove _initialize_machoread prototype.
2273 * macrocmd.c: Remove _initialize_macrocmd prototype.
2274 * macroscope.c: Remove _initialize_macroscope prototype.
2275 * maint.c: Remove _initialize_maint_cmds prototype.
2276 * mdebugread.c: Remove _initialize_mdebugread prototype.
2277 * memattr.c: Remove _initialize_mem prototype.
2278 * mep-tdep.c: Remove _initialize_mep_tdep prototype.
2279 * mi/mi-cmd-env.c: Remove _initialize_mi_cmd_env prototype.
2280 * mi/mi-cmds.c: Remove _initialize_mi_cmds prototype.
2281 * mi/mi-interp.c: Remove _initialize_mi_interp prototype.
2282 * mi/mi-main.c: Remove _initialize_mi_main prototype.
2283 * microblaze-linux-tdep.c: Remove
2284 _initialize_microblaze_linux_tdep prototype.
2285 * microblaze-tdep.c: Remove _initialize_microblaze_tdep prototype.
2286 * mips-fbsd-nat.c: Remove _initialize_mips_fbsd_nat prototype.
2287 * mips-fbsd-tdep.c: Remove _initialize_mips_fbsd_tdep prototype.
2288 * mips-linux-nat.c: Remove _initialize_mips_linux_nat prototype.
2289 * mips-linux-tdep.c: Remove _initialize_mips_linux_tdep prototype.
2290 * mips-nbsd-nat.c: Remove _initialize_mipsnbsd_nat prototype.
2291 * mips-nbsd-tdep.c: Remove _initialize_mipsnbsd_tdep prototype.
2292 * mips-sde-tdep.c: Remove _initialize_mips_sde_tdep prototype.
2293 * mips-tdep.c: Remove _initialize_mips_tdep prototype.
2294 * mips64-obsd-nat.c: Remove _initialize_mips64obsd_nat prototype.
2295 * mips64-obsd-tdep.c: Remove _initialize_mips64obsd_tdep
2296 prototype.
2297 * mipsread.c: Remove _initialize_mipsread prototype.
2298 * mn10300-linux-tdep.c: Remove _initialize_mn10300_linux_tdep
2299 prototype.
2300 * mn10300-tdep.c: Remove _initialize_mn10300_tdep prototype.
2301 * moxie-tdep.c: Remove _initialize_moxie_tdep prototype.
2302 * msp430-tdep.c: Remove _initialize_msp430_tdep prototype.
2303 * mt-tdep.c: Remove _initialize_mt_tdep prototype.
2304 * nds32-tdep.c: Remove _initialize_nds32_tdep prototype.
2305 * nios2-linux-tdep.c: Remove _initialize_nios2_linux_tdep
2306 prototype.
2307 * nios2-tdep.c: Remove _initialize_nios2_tdep prototype.
2308 * nto-procfs.c: Remove _initialize_procfs prototype.
2309 * nto-tdep.c: Remove _initialize_nto_tdep prototype.
2310 * objc-lang.c: Remove _initialize_objc_language prototype.
2311 * objfiles.c: Remove _initialize_objfiles prototype.
2312 * observer.c: Remove observer_test_first_notification_function,
2313 observer_test_second_notification_function,
2314 observer_test_third_notification_function, and
2315 _initialize_observer prototypes.
2316 * opencl-lang.c: Remove _initialize_opencl_language prototypes.
2317 * osabi.c: Remove _initialize_gdb_osabi prototype.
2318 * osdata.c: Remove _initialize_osdata prototype.
2319 * p-valprint.c: Remove _initialize_pascal_valprint prototype.
2320 * parse.c: Remove _initialize_parse prototype.
2321 * ppc-fbsd-nat.c: Remove _initialize_ppcfbsd_nat prototype.
2322 * ppc-fbsd-tdep.c: Remove _initialize_ppcfbsd_tdep prototype.
2323 * ppc-linux-nat.c: Remove _initialize_ppc_linux_nat prototype.
2324 * ppc-linux-tdep.c: Remove _initialize_ppc_linux_tdep prototype.
2325 * ppc-nbsd-nat.c: Remove _initialize_ppcnbsd_nat prototype.
2326 * ppc-nbsd-tdep.c: Remove _initialize_ppcnbsd_tdep prototype.
2327 * ppc-obsd-nat.c: Remove _initialize_ppcobsd_nat prototype.
2328 * ppc-obsd-tdep.c: Remove _initialize_ppcobsd_tdep prototype.
2329 * printcmd.c: Remove _initialize_printcmd prototype.
2330 * probe.c: Remove _initialize_probe prototype.
2331 * proc-api.c: Remove _initialize_proc_api prototype.
2332 * proc-events.c: Remove _initialize_proc_events prototype.
2333 * proc-service.c: Remove _initialize_proc_service prototype.
2334 * procfs.c: Remove _initialize_procfs prototype.
2335 * psymtab.c: Remove _initialize_psymtab prototype.
2336 * python/python.c: Remove _initialize_python prototype.
2337 * ravenscar-thread.c: Remove _initialize_ravenscar prototype.
2338 * record-btrace.c: Remove _initialize_record_btrace prototype.
2339 * record-full.c: Remove _initialize_record_full prototype.
2340 * record.c: Remove _initialize_record prototype.
2341 * regcache.c: Remove _initialize_regcache prototype.
2342 * reggroups.c: Remove _initialize_reggroup prototype.
2343 * remote-notif.c: Remove _initialize_notif prototype.
2344 * remote-sim.c: Remove _initialize_remote_sim prototype.
2345 * remote.c: Remove _initialize_remote prototype.
2346 * reverse.c: Remove _initialize_reverse prototype.
2347 * rl78-tdep.c: Remove _initialize_rl78_tdep prototype.
2348 * rs6000-aix-tdep.c: Remove _initialize_rs6000_aix_tdep prototype.
2349 * rs6000-lynx178-tdep.c: Remove _initialize_rs6000_lynx178_tdep
2350 prototype.
2351 * rs6000-nat.c: Remove _initialize_rs6000_nat prototype.
2352 * rs6000-tdep.c: Remove _initialize_rs6000_tdep prototype.
2353 * rust-exp.y: Remove _initialize_rust_exp prototype.
2354 * rx-tdep.c: Remove _initialize_rx_tdep prototype.
2355 * s390-linux-nat.c: Remove _initialize_s390_nat prototype.
2356 * s390-linux-tdep.c: Remove _initialize_s390_tdep prototype.
2357 * score-tdep.c: Remove _initialize_score_tdep prototype.
2358 * selftest-arch.c: Remove _initialize_selftests_foreach_arch
2359 prototype.
2360 * ser-go32.c: Remove _initialize_ser_dos prototype.
2361 * ser-mingw.c: Remove _initialize_ser_windows prototype.
2362 * ser-pipe.c: Remove _initialize_ser_pipe prototype.
2363 * ser-tcp.c: Remove _initialize_ser_tcp prototype.
2364 * ser-unix.c: Remove _initialize_ser_hardwire prototype.
2365 * serial.c: Remove _initialize_serial prototype.
2366 * sh-linux-tdep.c: Remove _initialize_sh_linux_tdep prototype.
2367 * sh-nbsd-nat.c: Remove _initialize_shnbsd_nat prototype.
2368 * sh-nbsd-tdep.c: Remove _initialize_shnbsd_tdep prototype.
2369 * sh-tdep.c: Remove _initialize_sh_tdep prototype.
2370 * skip.c: Remove _initialize_step_skip prototype.
2371 * sol-thread.c: Remove _initialize_sol_thread prototype.
2372 * solib-aix.c: Remove _initialize_solib_aix prototype.
2373 * solib-darwin.c: Remove _initialize_darwin_solib prototype.
2374 * solib-dsbt.c: Remove _initialize_dsbt_solib prototype.
2375 * solib-frv.c: Remove _initialize_frv_solib prototype.
2376 * solib-spu.c: Remove _initialize_spu_solib prototype.
2377 * solib-svr4.c: Remove _initialize_svr4_solib prototype.
2378 * solib-target.c: Remove _initialize_solib_target prototype.
2379 * solib.c: Remove _initialize_solib prototype.
2380 * source.c: Remove _initialize_source prototype.
2381 * sparc-linux-nat.c: Remove _initialize_sparc_linux_nat prototype.
2382 * sparc-linux-tdep.c: Remove _initialize_sparc_linux_tdep
2383 prototype.
2384 * sparc-nat.c: Remove _initialize_sparc_nat prototype.
2385 * sparc-nbsd-nat.c: Remove _initialize_sparcnbsd_nat prototype.
2386 * sparc-nbsd-tdep.c: Remove _initialize_sparcnbsd_tdep prototype.
2387 * sparc-obsd-tdep.c: Remove _initialize_sparc32obsd_tdep
2388 prototype.
2389 * sparc-sol2-nat.c: Remove _initialize_sparc_sol2_nat prototype.
2390 * sparc-sol2-tdep.c: Remove _initialize_sparc_sol2_tdep prototype.
2391 * sparc-tdep.c: Remove _initialize_sparc_tdep prototype.
2392 * sparc64-fbsd-nat.c: Remove _initialize_sparc64fbsd_nat
2393 prototype.
2394 * sparc64-fbsd-tdep.c: Remove _initialize_sparc64fbsd_tdep
2395 prototype.
2396 * sparc64-linux-nat.c: Remove _initialize_sparc64_linux_nat
2397 prototype.
2398 * sparc64-linux-tdep.c: Remove _initialize_sparc64_linux_tdep
2399 prototype.
2400 * sparc64-nat.c: Remove _initialize_sparc64_nat prototype.
2401 * sparc64-nbsd-nat.c: Remove _initialize_sparc64nbsd_nat
2402 prototype.
2403 * sparc64-nbsd-tdep.c: Remove _initialize_sparc64nbsd_tdep
2404 prototype.
2405 * sparc64-obsd-nat.c: Remove _initialize_sparc64obsd_nat
2406 prototype.
2407 * sparc64-obsd-tdep.c: Remove _initialize_sparc64obsd_tdep
2408 prototype.
2409 * sparc64-sol2-tdep.c: Remove _initialize_sparc64_sol2_tdep
2410 prototype.
2411 * spu-linux-nat.c: Remove _initialize_spu_nat prototype.
2412 * spu-multiarch.c: Remove _initialize_spu_multiarch prototype.
2413 * spu-tdep.c: Remove _initialize_spu_tdep prototype.
2414 * stabsread.c: Remove _initialize_stabsread prototype.
2415 * stack.c: Remove _initialize_stack prototype.
2416 * stap-probe.c: Remove _initialize_stap_probe prototype.
2417 * std-regs.c: Remove _initialize_frame_reg prototype.
2418 * symfile-debug.c: Remove _initialize_symfile_debug prototype.
2419 * symfile-mem.c: Remove _initialize_symfile_mem prototype.
2420 * symfile.c: Remove _initialize_symfile prototype.
2421 * symmisc.c: Remove _initialize_symmisc prototype.
2422 * symtab.c: Remove _initialize_symtab prototype.
2423 * target-dcache.c: Remove _initialize_target_dcache prototype.
2424 * target-descriptions.c: Remove _initialize_target_descriptions
2425 prototype.
2426 * thread.c: Remove _initialize_thread prototype.
2427 * tic6x-linux-tdep.c: Remove _initialize_tic6x_linux_tdep
2428 prototype.
2429 * tic6x-tdep.c: Remove _initialize_tic6x_tdep prototype.
2430 * tilegx-linux-nat.c: Remove _initialize_tile_linux_nat prototype.
2431 * tilegx-linux-tdep.c: Remove _initialize_tilegx_linux_tdep
2432 prototype.
2433 * tilegx-tdep.c: Remove _initialize_tilegx_tdep prototype.
2434 * tracefile-tfile.c: Remove _initialize_tracefile_tfile prototype.
2435 * tracefile.c: Remove _initialize_tracefile prototype.
2436 * tracepoint.c: Remove _initialize_tracepoint prototype.
2437 * tui/tui-hooks.c: Remove _initialize_tui_hooks prototype.
2438 * tui/tui-interp.c: Remove _initialize_tui_interp prototype.
2439 * tui/tui-layout.c: Remove _initialize_tui_layout prototype.
2440 * tui/tui-regs.c: Remove _initialize_tui_regs prototype.
2441 * tui/tui-stack.c: Remove _initialize_tui_stack prototype.
2442 * tui/tui-win.c: Remove _initialize_tui_win prototype.
2443 * tui/tui.c: Remove _initialize_tui prototype.
2444 * typeprint.c: Remove _initialize_typeprint prototype.
2445 * user-regs.c: Remove _initialize_user_regs prototype.
2446 * utils.c: Remove _initialize_utils prototype.
2447 * v850-tdep.c: Remove _initialize_v850_tdep prototype.
2448 * valarith.c: Remove _initialize_valarith prototype.
2449 * valops.c: Remove _initialize_valops prototype.
2450 * valprint.c: Remove _initialize_valprint prototype.
2451 * value.c: Remove _initialize_values prototype.
2452 * varobj.c: Remove _initialize_varobj prototype.
2453 * vax-bsd-nat.c: Remove _initialize_vaxbsd_nat prototype.
2454 * vax-nbsd-tdep.c: Remove _initialize_vaxnbsd_tdep prototype.
2455 * vax-tdep.c: Remove _initialize_vax_tdep prototype.
2456 * windows-nat.c: Remove _initialize_windows_nat,
2457 _initialize_check_for_gdb_ini, and _initialize_loadable
2458 prototypes.
2459 * windows-tdep.c: Remove _initialize_windows_tdep prototype.
2460 * xcoffread.c: Remove _initialize_xcoffread prototype.
2461 * xml-support.c: Remove _initialize_xml_support prototype.
2462 * xstormy16-tdep.c: Remove _initialize_xstormy16_tdep prototype.
2463 * xtensa-linux-nat.c: Remove _initialize_xtensa_linux_nat
2464 prototype.
2465 * xtensa-linux-tdep.c: Remove _initialize_xtensa_linux_tdep
2466 prototype.
2467 * xtensa-tdep.c: Remove _initialize_xtensa_tdep prototype.
2468
a611b5cb
KS
24692017-09-08 Keith Seitz <keiths@redhat.com>
2470
2471 * dwarf2read.c (struct field_info) <fnfields>: Remove unused
2472 field.
2473
469412dd
CW
24742017-09-08 Christoph Weinmann <christoph.t.weinmann@intel.com>
2475
2476 * f-valprint.c (f_val_print): Remove check for one byte
2477 sized integers. Remove printing of character type.
2478
a5ad232b
FP
24792017-09-08 Frank Penczek <frank.penczek@intel.com>
2480 Christoph Weinmann <christoph.t.weinmann@intel.com>
2481 Bernhard Heckel <bernhard.heckel@intel.com>
2482
2483 * f-typeprint.c (f_type_print_base): Use fprintfi_filtered
2484 to maintain proper indentation when printing pointers/refs.
2485
e5014227
JB
24862017-09-07 Joel Brobecker <brobecker@adacore.com>
2487
2488 GDB 8.0.1 released.
2489
63c99141
JB
24902017-09-07 Joel Brobecker <brobecker@adacore.com>
2491
2492 * NEWS (Changes in GDB 7.11): Remove entry for QStartupWithShell.
2493
69c1e056
TT
24942017-09-05 Tom Tromey <tom@tromey.com>
2495
2496 * parse.c (funcall_chain): Now a std::vector.
2497 (start_arglist, end_arglist): Simplify.
2498 (free_funcalls): Remove.
2499 (parse_exp_in_context_1): Remove cleanup.
2500
fef704bf
TT
25012017-09-05 Tom Tromey <tom@tromey.com>
2502
2503 * go-exp.y (go_parse): Don't create a cleanup.
2504
5613c585
TT
25052017-09-05 Tom Tromey <tom@tromey.com>
2506
2507 * d-exp.y (PrimaryExpression): Use std::string.
2508 (d_parse): Don't create a cleanup.
2509
eae49211
TT
25102017-09-05 Tom Tromey <tom@tromey.com>
2511
2512 * utils.c (do_clear_parser_state): Remove.
2513 (make_cleanup_clear_parser_state): Remove.
2514 * p-exp.y (pascal_parse): Use scoped_restore.
2515 * m2-exp.y (m2_parse): Use scoped_restore.
2516 * f-exp.y (f_parse): Use scoped_restore.
2517 * d-exp.y (d_parse): Use scoped_restore.
2518 * c-exp.y (c_parse): Use scoped_restore.
2519 * ada-exp.y (ada_parse): Use scoped_restore.
2520 * utils.h (make_cleanup_clear_parser_state): Remove.
2521
73b9be8b
KS
25222017-09-06 Keith Seitz <keiths@redhat.com>
2523
2524 * dwarf2read.c (dw2_linkage_name_attr): New function.
2525 (dw2_linkage_name): New function.
2526 (dwarf2_compute_name, dwarf2_physname, read_call_site_scope)
2527 (guess_full_die_structure_name, dwarf2_name): Use dw2_linkage_name.
2528 (anonymous_struct_prefix, dwarf2_name): Use dw2_linkage_name_attr.
2529
a102602b
KR
25302017-09-06 Kamil Rytarowski <n54@gmx.com>
2531
2532 * config/djgpp/djconfig.sh: Correct shell portability issue.
2533
28ad437d
KR
25342017-09-06 Kamil Rytarowski <n54@gmx.com>
2535
2536 * configure.nat: Define HAVE_NATIVE_GCORE_HOST on NetBSD.
2537
351787dd
JB
25382017-09-06 John Baldwin <jhb@FreeBSD.org>
2539
2540 * Makefile.in (ALLDEPFILES): Add mips-fbsd-nat.c.
2541 * NEWS: Mention new FreeBSD/mips native configuration.
2542 * configure.host: Add aarch64*-*-freebsd*.
2543 * configure.nat: Likewise.
2544 * aarch64-fbsd-nat.c: New file.
2545
c0f84956
JB
25462017-09-06 John Baldwin <jhb@FreeBSD.org>
2547
2548 * Makefile.in (ALL_64_TARGET_OBS): Add aarch64-fbsd-tdep.o.
2549 (ALLDEPFILES): Add aarch64-fbsd-tdep.c.
2550 * NEWS: Mention new FreeBSD/aarch64 target.
2551 * configure.tgt: Add aarch64*-*-freebsd*.
2552 * aarch64-fbsd-tdep.c: New file.
2553 * aarch64-fbsd-tdep.h: New file.
2554
7610297a
KR
25552017-09-06 Kamil Rytarowski <n54@gmx.com>
2556
2557 * MAINTAINERS (Write After Approval): Add Kamil Rytarowski.
2558
fbd1b771
JK
25592017-09-06 Jan Kratochvil <jan.kratochvil@redhat.com>
2560
2561 * parse.c (find_minsym_type_and_address): Don't relocate addresses
2562 of TLS symbols.
2563
5ca79eae
PW
25642017-09-05 Philippe Waroquiers <philippe.waroquiers@skynet.be>
2565
2566 * objfiles.c (get_objfile_bfd_data): Remove useless obstack_init
2567 call.
2568
bf93d7ba
SM
25692017-09-05 Simon Marchi <simon.marchi@ericsson.com>
2570
2571 * infrun.c (follow_exec): Call add_thread after
2572 target_find_description.
2573
1bb7c059
SM
25742017-09-05 Simon Marchi <simon.marchi@ericsson.com>
2575
2576 * infrun.c (handle_inferior_event_1): When exec'ing, read
2577 stop_pc after follow_exec.
2578
fc809827
SM
25792017-09-05 Simon Marchi <simon.marchi@ericsson.com>
2580
2581 * remote.c (process_g_packet): Update error message.
2582
d2fcdd85
YQ
25832017-09-05 Yao Qi <yao.qi@linaro.org>
2584
2585 * configure.tgt (gdb_target_obs): Add i386.o for x86_64-*
2586 targets.
2587
e69570ee
PA
25882017-09-05 Pedro Alves <palves@redhat.com>
2589
2590 * eval.c (eval_call, evaluate_funcall): New functions, factored
2591 out from ...
2592 (evaluate_subexp_standard): ... this.
2593
22916b07
YQ
25942017-09-05 Yao Qi <yao.qi@linaro.org>
2595
2596 * amd64-tdep.c (amd64_target_description): Create target
2597 descriptions.
2598 (_initialize_amd64_tdep): Don't call functions
2599 initialize_tdesc_amd64_*. Add self tests.
2600 * arch/amd64.c (amd64_create_target_description): Add parameter
2601 is_linux. Call set_tdesc_osabi if is_linux is true.
2602 * arch/amd64.h (amd64_create_target_description): Update the
2603 declaration.
2604 * arch/i386.c (i386_create_target_description): Add parameter
2605 is_linux. Call set_tdesc_osabi if is_linux is true.
2606 * arch/i386.h (i386_create_target_description): Update
2607 declaration.
2608 * configure.tgt: Add i386.o to gdb_target_obs.
2609 * features/Makefile (XMLTOC): Remove i386/*.xml.
2610 * features/i386/amd64-avx-avx512.c: Remove.
2611 * features/i386/amd64-avx-mpx-avx512-pku.c: Remove.
2612 * features/i386/amd64-avx-mpx.c: Remove.
2613 * features/i386/amd64-avx.c: Remove.
2614 * features/i386/amd64-mpx.c: Remove.
2615 * features/i386/amd64.c: Remove.
2616 * features/i386/i386-avx-avx512.c: Remove.
2617 * features/i386/i386-avx-mpx-avx512-pku.c: Remove.
2618 * features/i386/i386-avx-mpx.c: Remove.
2619 * features/i386/i386-avx.c: Remove.
2620 * features/i386/i386-mmx.c: Remove.
2621 * features/i386/i386-mpx.c: Remove.
2622 * features/i386/i386.c: Remove.
2623 * i386-tdep.c: Don't include features/i386/i386*.c., include
2624 target-descriptions.h and arch/i386.h.
2625 (i386_target_description): Create target descriptions.
2626 (i386_gdbarch_init): Don't call initialize_tdesc_i386_*
2627 functions. Do self tests.
2628
0854b7b1
YQ
26292017-09-05 Yao Qi <yao.qi@linaro.org>
2630
2631 * features/Makefile (XMLTOC): Remove i386/amd64XXX-linux.xml.
2632 * features/i386/amd64-avx-avx512-linux.c: Removed.
2633 * features/i386/amd64-avx-linux.c: Removed.
2634 * features/i386/amd64-avx-mpx-avx512-pku-linux.c: Removed.
2635 * features/i386/amd64-avx-mpx-linux.c: Removed.
2636 * features/i386/amd64-linux.c: Removed.
2637 * features/i386/amd64-mpx-linux.c: Removed.
2638 * features/i386/x32-avx-avx512-linux.c: Removed.
2639 * features/i386/x32-avx-linux.c: Removed.
2640 * features/i386/x32-linux.c: Removed.
2641
b4570e4b
YQ
26422017-09-05 Yao Qi <yao.qi@linaro.org>
2643
2644 * amd64-linux-tdep.c: Include arch/amd64.h. Don't include
2645 features/i386/*.c.
2646 (amd64_linux_read_description): Call
2647 amd64_create_target_description.
2648 * arch/amd64.c: New file.
2649 * arch/amd64.h: New file.
2650 * configure.tgt (x86_64-*-linux*): Append amd64.o.
2651 * Makefile.in (ALL_64_TARGET_OBS): Append amd64.o.
2652
6c73f67f
YQ
26532017-09-05 Yao Qi <yao.qi@linaro.org>
2654
2655 * amd64-linux-tdep.c: Don't include amd64-XXX-linux and
2656 x32-XXX-linux.c. Include 64bit-XX.c and x32-XX.c.
2657 (amd64_linux_read_description): Create target descriptions.
2658 (_initialize_amd64_linux_tdep): Don't call initialize_tdesc_XXX
2659 functions. Add unit tests.
2660 * features/Makefile (FEATURE_XMLFILES): Append 64bit-XXX.xml and
2661 x32-core.xml.
2662 * features/i386/64bit-avx.c: Generated.
2663 * features/i386/64bit-avx512.c: Generated.
2664 * features/i386/64bit-core.c: Generated.
2665 * features/i386/64bit-linux.c: Generated.
2666 * features/i386/64bit-mpx.c: Generated.
2667 * features/i386/64bit-pkeys.c: Generated.
2668 * features/i386/64bit-segments.c: Generated.
2669 * features/i386/64bit-sse.c: Generated.
2670 * features/i386/x32-core.c: Generated.
2671 * target-descriptions.c (maint_print_c_tdesc_cmd): Print feature
2672 c files for amd64-linux and x32-linux.
2673
9d3d478b
YQ
26742017-09-05 Yao Qi <yao.qi@linaro.org>
2675
2676 * amd64-linux-tdep.c (amd64_linux_read_description): New
2677 function.
2678 (amd64_linux_core_read_description): Call
2679 amd64_linux_read_description.
2680 (amd64_linux_init_abi): Likewise.
2681 (amd64_x32_linux_init_abi): Likewise.
2682 * amd64-linux-tdep.h (amd64_linux_read_description): Declare.
2683 * x86-linux-nat.c (x86_linux_read_description): Call
2684 amd64_linux_read_description.
2685
b9f1d50f
YQ
26862017-09-05 Yao Qi <yao.qi@linaro.org>
2687
2688 * amd64-linux-tdep.c (amd64_linux_core_read_description): Update
2689 comments.
2690
188c9e6d
YQ
26912017-09-05 Yao Qi <yao.qi@linaro.org>
2692
2693 * features/Makefile (XMLTOC): Remove i386/i386-XX-linux.xml.
2694 * features/i386/i386-avx-avx512-linux.c: Remove.
2695 * features/i386/i386-avx-linux.c: Remove.
2696 * features/i386/i386-avx-mpx-avx512-pku-linux.c: Remove.
2697 * features/i386/i386-avx-mpx-linux.c: Remove.
2698 * features/i386/i386-linux.c: Remove.
2699 * features/i386/i386-mmx-linux.c: Remove.
2700 * features/i386/i386-mpx-linux.c: Remove.
2701
5f035c07
YQ
27022017-09-05 Yao Qi <yao.qi@linaro.org>
2703
2704 * Makefile.in (ALL_TARGET_OBS): Add i386.o.
2705 (SFILES): Add arch/i386.c.
2706 (HFILES_NO_SRCDIR): Add arch/i386.h.
2707 * arch/i386.c: New file.
2708 * arch/i386.h: New file.
2709 * arch/tdesc.h (allocate_target_description): Declare.
2710 (set_tdesc_architecture): Declare.
2711 (set_tdesc_osabi): Declare.
2712 * configure.tgt (i[34567]86-*-linux*): Add i386.o.
2713 * i386-linux-tdep.c: Don't include ../features/i386/32bit-XXX.c.
2714 include arch/i386.h.
2715 (i386_linux_read_description): Remove code and call
2716 i386_create_target_description.
2717 (set_tdesc_architecture): New function.
2718 (set_tdesc_osabi): New function.
2719 * target-descriptions.h (allocate_target_description): Remove.
2720
0abe8a89
YQ
27212017-09-05 Yao Qi <yao.qi@linaro.org>
2722
2723 * arch/tdesc.h (tdesc_create_feature): Add an argument xml.
2724 * target-descriptions.c (tdesc_create_feature): Likewise, and
2725 adjust code.
2726 * features/i386/32bit-avx.c: Re-generated.
2727 * features/i386/32bit-avx512.c: Re-generated.
2728 * features/i386/32bit-core.c: Re-generated.
2729 * features/i386/32bit-linux.c: Re-generated.
2730 * features/i386/32bit-mpx.c: Re-generated.
2731 * features/i386/32bit-pkeys.c: Re-generated.
2732 * features/i386/32bit-sse.c: Re-generated.
2733
0a188386
YQ
27342017-09-05 Yao Qi <yao.qi@linaro.org>
2735
2736 * regformats/regdef.h (struct reg): Override operator == and !=.
2737
f49ff000
YQ
27382017-09-05 Yao Qi <yao.qi@linaro.org>
2739
2740 * arch/tdesc.h: New file.
2741 * regformats/regdat.sh: Generate code using tdesc_create_reg.
2742 * target-descriptions.c: Update comments.
2743 * target-descriptions.h: Include "arch/tdesc.h". Remove the
2744 declarations.
2745 * features/i386/32bit-avx.c: Re-generated.
2746 * features/i386/32bit-avx512.c: Re-generated.
2747 * features/i386/32bit-core.c: Re-generated.
2748 * features/i386/32bit-linux.c: Re-generated.
2749 * features/i386/32bit-mpx.c: Re-generated.
2750 * features/i386/32bit-pkeys.c: Re-generated.
2751 * features/i386/32bit-sse.c: Re-generated.
2752
f7000548
YQ
27532017-09-05 Yao Qi <yao.qi@linaro.org>
2754
2755 * regformats/regdat.sh: Update generated code.
2756
c9a5e2a5
YQ
27572017-09-05 Yao Qi <yao.qi@linaro.org>
2758
2759 * regformats/regdat.sh: Adjust code order.
2760
d6b687ac
SM
27612017-09-05 Simon Marchi <simon.marchi@ericsson.com>
2762
2763 * expprint.c (dump_subexp_body_standard): Use constant format
2764 string in fprintf_filtered call.
2765
a379bfd0
JB
27662017-09-04 John Baldwin <jhb@FreeBSD.org>
2767
2768 * configure.nat: Add "x86-nat.o x86-dregs.o" for NetBSD/amd64 and
2769 NetBSD/i386.
2770 * x86-bsd-nat.c [!DBREG_DRX && __NetBSD__]: Define DBREG_DRX.
2771
f7efc967
JB
27722017-09-04 John Baldwin <jhb@FreeBSD.org>
2773
2774 * bsd-kvm.o: Make <sys/user.h> conditional on HAVE_SYS_USER_H.
2775
c49fbc6c
JB
27762017-09-04 John Baldwin <jhb@FreeBSD.org>
2777
2778 * bsd-kvm.o: Define _KMEMUSER.
2779 * configure.ac: Define _KMEMUSER when checking for "struct lwp".
2780 * configure: Regenerate.
2781
26562e73
JB
27822017-09-04 John Baldwin <jhb@FreeBSD.org>
2783
2784 * amd64-fbsd-nat.c: Add include of "x86-xstate.h".
2785 * i386-fbsd-nat.c: Likewise.
2786
31cf1487
JB
27872017-09-04 John Baldwin <jhb@FreeBSD.org>
2788
2789 * unittests/array-view-selftests.c: Add include of <array>.
2790
5b9f8a7c
JB
27912017-09-04 John Baldwin <jhb@FreeBSD.org>
2792
2793 * spu-tdep.c (flush_ea_cache): Add missing argument to
2794 call_function_by_hand.
2795
d69cf9b2
PA
27962017-09-04 Pedro Alves <palves@redhat.com>
2797
2798 * NEWS (Safer support for debugging with no debug info): New.
2799
3693fdb3
PA
28002017-09-04 Pedro Alves <palves@redhat.com>
2801
2802 * c-exp.y (function_method, function_method_void): Add current
2803 instance flags to TYPE_INSTANCE.
2804 * dwarf2read.c (check_modifier): New.
2805 (compute_delayed_physnames): Assert that only C++ adds delayed
2806 physnames. Mark fn_fields as const/volatile depending on
2807 physname.
2808 * eval.c (make_params): New type_instance_flags parameter. Use
2809 it as the new type's instance flags.
2810 (evaluate_subexp_standard) <TYPE_INSTANCE>: Extract the instance
2811 flags element and pass it to make_params.
2812 * expprint.c (print_subexp_standard) <TYPE_INSTANCE>: Handle
2813 instance flags element.
2814 (dump_subexp_body_standard) <TYPE_INSTANCE>: Likewise.
2815 * gdbtypes.h: Include "enum-flags.h".
2816 (type_instance_flags): New enum-flags type.
2817 (TYPE_CONST, TYPE_VOLATILE, TYPE_RESTRICT, TYPE_ATOMIC)
2818 (TYPE_CODE_SPACE, TYPE_DATA_SPACE): Return boolean.
2819 * parse.c (operator_length_standard) <TYPE_INSTANCE>: Adjust.
2820 (follow_type_instance_flags): New function.
2821 (operator_check_standard) <TYPE_INSTANCE>: Adjust.
2822 * parser-defs.h (follow_type_instance_flags): Declare.
2823 * valops.c (value_struct_elt_for_reference): const/volatile must
2824 match too.
2825
e68cb8e0
PA
28262017-09-04 Pedro Alves <palves@redhat.com>
2827
2828 * cp-namespace.c (cp_search_static_and_baseclasses): Handle
2829 function/method scopes; lookup the nested name as a function local
2830 static variable.
2831
858be34c
PA
28322017-09-04 Pedro Alves <palves@redhat.com>
2833
2834 (%type <voidval>): Add function_method.
2835 * c-exp.y (exp): New production for calls with no arguments.
2836 (function_method, function_method_void_or_typelist): New
2837 productions.
2838 (exp): New production for "method()::static_var".
2839 * eval.c (evaluate_subexp_standard): Handle OP_FUNC_STATIC_VAR.
2840 * expprint.c (print_subexp_standard, dump_subexp_body_standard):
2841 Handle OP_FUNC_STATIC_VAR.
2842 * parse.c (operator_length_standard):
2843 Handle OP_FUNC_STATIC_VAR.
2844
dd5901a6
PA
28452017-09-04 Pedro Alves <palves@redhat.com>
2846
2847 * eval.c (evaluate_subexp_standard): Remove UNOP_MEMVAL_TLS
2848 handling.
2849 * expprint.c (print_subexp_standard, dump_subexp_body_standard):
2850 Ditto.
2851 * parse.c (operator_length_standard, operator_check_standard):
2852 Ditto.
2853 * std-operator.def (UNOP_MEMVAL_TLS): Delete.
2854
46a4882b
PA
28552017-09-04 Pedro Alves <palves@redhat.com>
2856
2857 * ax-gdb.c: Include "typeprint.h".
2858 (gen_expr_for_cast): New function.
2859 (gen_expr) <OP_CAST, OP_CAST_TYPE>: Use it.
2860 <OP_VAR_VALUE, OP_MSYM_VAR_VALUE>: Error out if the variable's
2861 type is unknown.
2862 * dwarf2read.c (new_symbol_full): Fallback to int instead of
2863 nodebug_data_symbol.
2864 * eval.c: Include "typeprint.h".
2865 (evaluate_subexp_standard) <OP_VAR_VALUE, OP_VAR_MSYM_VALUE>:
2866 Error out if symbol has unknown type.
2867 <UNOP_CAST, UNOP_CAST_TYPE>: Common bits factored out to
2868 evaluate_subexp_for_cast.
2869 (evaluate_subexp_for_address, evaluate_subexp_for_sizeof): Handle
2870 OP_VAR_MSYM_VALUE.
2871 (evaluate_subexp_for_cast): New function.
2872 * gdbtypes.c (init_nodebug_var_type): New function.
2873 (objfile_type): Use it to initialize types of variables with no
2874 debug info.
2875 * typeprint.c (error_unknown_type): New.
2876 * typeprint.h (error_unknown_type): New declaration.
2877 * compile/compile-c-types.c (convert_type_basic): Handle
2878 TYPE_CODE_ERROR; warn and fallback to int for variables with
2879 unknown type.
2880
fe13dfec
PA
28812017-09-04 Pedro Alves <palves@redhat.com>
2882
2883 * eval.c (evaluate_var_value): New function, factored out from ...
2884 (evaluate_subexp_standard): ... here.
2885
d008ee21
PA
28862017-09-04 Pedro Alves <palves@redhat.com>
2887
2888 * eval.c (evaluate_subexp_standard) <UNOP_COMPLEMENT, UNOP_ADDR>:
2889 Remove useless assignments to 'op'.
2890
827d0c51
PA
28912017-09-04 Pedro Alves <palves@redhat.com>
2892
2893 * eval.c (eval_skip_value): New function.
2894 (evaluate_subexp_standard): Use it.
2895
2c5a2be1
PA
28962017-09-04 Pedro Alves <palves@redhat.com>
2897
2898 * eval.c (evaluate_subexp_standard): <OP_FUNCALL>: Extract
2899 function name from symbol/minsym and pass it to
2900 error_call_unknown_return_type.
2901
74ea4be4
PA
29022017-09-04 Pedro Alves <palves@redhat.com>
2903
2904 * ada-lang.c (resolve_subexp): Handle OP_VAR_MSYM_VALUE.
2905 * ax-gdb.c (gen_msym_var_ref): New function.
2906 (gen_expr): Handle OP_VAR_MSYM_VALUE.
2907 * eval.c (evaluate_var_msym_value): New function.
2908 * eval.c (evaluate_subexp_standard): Handle OP_VAR_MSYM_VALUE.
2909 <OP_FUNCALL>: Extract function name from symbol/minsym and pass it
2910 to call_function_by_hand.
2911 * expprint.c (print_subexp_standard, dump_subexp_body_standard):
2912 Handle OP_VAR_MSYM_VALUE.
2913 (union exp_element) <msymbol>: New field.
2914 * minsyms.h (struct type): Forward declare.
2915 (find_minsym_type_and_address): Declare.
2916 * parse.c (write_exp_elt_msym): New function.
2917 (write_exp_msymbol): Delete, refactored as ...
2918 (find_minsym_type_and_address): ... this new function.
2919 (write_exp_msymbol): Reimplement using OP_VAR_MSYM_VALUE.
2920 (operator_length_standard, operator_check_standard): Handle
2921 OP_VAR_MSYM_VALUE.
2922 * std-operator.def (OP_VAR_MSYM_VALUE): New.
2923
7022349d
PA
29242017-09-04 Pedro Alves <palves@redhat.com>
2925
2926 * ada-lang.c (ada_evaluate_subexp) <TYPE_CODE_FUNC>: Don't handle
2927 TYPE_GNU_IFUNC specially here. Throw error if return type is
2928 unknown.
2929 * ada-typeprint.c (print_func_type): Handle functions with unknown
2930 return type.
2931 * c-typeprint.c (c_type_print_base): Handle functions and methods
2932 with unknown return type.
2933 * compile/compile-c-symbols.c (convert_symbol_bmsym)
2934 <mst_text_gnu_ifunc>: Use nodebug_text_gnu_ifunc_symbol.
2935 * compile/compile-c-types.c: Include "objfiles.h".
2936 (convert_func): For functions with unknown return type, warn and
2937 default to int.
2938 * compile/compile-object-run.c (compile_object_run): Adjust call
2939 to call_function_by_hand_dummy.
2940 * elfread.c (elf_gnu_ifunc_resolve_addr): Adjust call to
2941 call_function_by_hand.
2942 * eval.c (evaluate_subexp_standard): Adjust calls to
2943 call_function_by_hand. Handle functions and methods with unknown
2944 return type. Pass expect_type to call_function_by_hand.
2945 * f-typeprint.c (f_type_print_base): Handle functions with unknown
2946 return type.
2947 * gcore.c (call_target_sbrk): Adjust call to
2948 call_function_by_hand.
2949 * gdbtypes.c (objfile_type): Leave nodebug text symbol with NULL
2950 return type instead of int. Make nodebug_text_gnu_ifunc_symbol be
2951 an integer address type instead of nodebug.
2952 * guile/scm-value.c (gdbscm_value_call): Adjust call to
2953 call_function_by_hand.
2954 * infcall.c (error_call_unknown_return_type): New function.
2955 (call_function_by_hand): New "default_return_type" parameter.
2956 Pass it down.
2957 (call_function_by_hand_dummy): New "default_return_type"
2958 parameter. Use it instead of defaulting to int. If there's no
2959 default and the return type is unknown, throw an error. If
2960 there's a default return type, and the called function has no
2961 debug info, then assume the function is prototyped.
2962 * infcall.h (call_function_by_hand, call_function_by_hand_dummy):
2963 New "default_return_type" parameter.
2964 (error_call_unknown_return_type): New declaration.
2965 * linux-fork.c (call_lseek): Cast return type of lseek.
2966 (inferior_call_waitpid, checkpoint_command): Adjust calls to
2967 call_function_by_hand.
2968 * linux-tdep.c (linux_infcall_mmap, linux_infcall_munmap): Adjust
2969 calls to call_function_by_hand.
2970 * m2-typeprint.c (m2_procedure): Handle functions with unknown
2971 return type.
2972 * objc-lang.c (lookup_objc_class, lookup_child_selector)
2973 (value_nsstring, print_object_command): Adjust calls to
2974 call_function_by_hand.
2975 * p-typeprint.c (pascal_type_print_varspec_prefix): Handle
2976 functions with unknown return type.
2977 (pascal_type_print_func_varspec_suffix): New function.
2978 (pascal_type_print_varspec_suffix) <TYPE_CODE_FUNC,
2979 TYPE_CODE_METHOD>: Use it.
2980 * python/py-value.c (valpy_call): Adjust call to
2981 call_function_by_hand.
2982 * rust-lang.c (rust_evaluate_funcall): Adjust call to
2983 call_function_by_hand.
2984 * valarith.c (value_x_binop, value_x_unop): Adjust calls to
2985 call_function_by_hand.
2986 * valops.c (value_allocate_space_in_inferior): Adjust call to
2987 call_function_by_hand.
2988 * typeprint.c (type_print_unknown_return_type): New function.
2989 * typeprint.h (type_print_unknown_return_type): New declaration.
2990
54990598
PA
29912017-09-04 Pedro Alves <palves@redhat.com>
2992
2993 * gdbtypes.c (lookup_function_type_with_arguments): Mark function
2994 types with more than one parameter as prototyped.
2995
9a24775b
PA
29962017-09-04 Pedro Alves <palves@redhat.com>
2997
2998 * cli/cli-cmds.c (print_disassembly, disassemble_current_function)
2999 (disassemble_command): Use gdb_disassembly_flags instead of bare
3000 int.
3001 * disasm.c (gdb_pretty_print_disassembler::pretty_print_insn)
3002 (dump_insns, do_mixed_source_and_assembly_deprecated)
3003 (do_mixed_source_and_assembly, do_assembly_only, gdb_disassembly):
3004 Use gdb_disassembly_flags instead of bare int.
3005 * disasm.h (DISASSEMBLY_SOURCE_DEPRECATED, DISASSEMBLY_RAW_INSN)
3006 (DISASSEMBLY_OMIT_FNAME, DISASSEMBLY_FILENAME)
3007 (DISASSEMBLY_OMIT_PC, DISASSEMBLY_SOURCE)
3008 (DISASSEMBLY_SPECULATIVE): No longer macros. Instead they're...
3009 (enum gdb_disassembly_flag): ... values of this new enumeration.
3010 (gdb_disassembly_flags): Define.
3011 (gdb_disassembly)
3012 (gdb_pretty_print_disassembler::pretty_print_insn): Use it.
3013 * mi/mi-cmd-disas.c (mi_cmd_disassemble): Use
3014 gdb_disassembly_flags instead of bare int.
3015 * record-btrace.c (btrace_insn_history)
3016 (record_btrace_insn_history, record_btrace_insn_history_range)
3017 (record_btrace_insn_history_from): Use gdb_disassembly_flags
3018 instead of bare int.
3019 * record.c (get_insn_history_modifiers, cmd_record_insn_history):
3020 Use gdb_disassembly_flags instead of bare int.
3021 * target-debug.h (target_debug_print_gdb_disassembly_flags):
3022 Define.
3023 * target-delegates.c: Regenerate.
3024 * target.c (target_insn_history, target_insn_history_from)
3025 (target_insn_history_range): Use gdb_disassembly_flags instead of
3026 bare int.
3027 * target.h: Include "disasm.h".
3028 (struct target_ops) <to_insn_history, to_insn_history_from,
3029 to_insn_history_range>: Use gdb_disassembly_flags instead of bare
3030 int.
3031 (target_insn_history, target_insn_history_from)
3032 (target_insn_history_range): Use gdb_disassembly_flags instead of
3033 bare int.
3034
80a65e9b
SM
30352017-09-04 Simon Marchi <simon.marchi@ericsson.com>
3036
3037 * cli/cli-script.c (build_command_line): For if/while commands,
3038 check whether args is empty.
3039
6b66338c
SM
30402017-09-04 Simon Marchi <simon.marchi@ericsson.com>
3041
3042 * cli/cli-script.h (enum misc_command_type): Move from defs.h.
3043 (enum command_control_type): Likewise.
3044 (struct command_line): Likewise.
3045 (free_command_lines): Likewise.
3046 (struct command_lines_deleter): Likewise.
3047 (command_line_up): Likewise.
3048 (read_command_lines): Likewise.
3049 (read_command_lines_1): Likewise.
3050 * defs.h (enum misc_command_type): Move to cli/cli-script.h.
3051 (enum command_control_type): Likewise.
3052 (struct command_line): Likewise.
3053 (free_command_lines): Likewise.
3054 (struct command_lines_deleter): Likewise.
3055 (command_line_up): Likewise.
3056 (read_command_lines): Likewise.
3057 (read_command_lines_1): Likewise.
3058 * breakpoint.h: Include cli/cli-script.h.
3059 * extension-priv.h: Likewise.
3060 * gdbcmd.h: Likewise.
3061
51abb421
PA
30622017-09-04 Pedro Alves <palves@redhat.com>
3063
3064 * ada-lang.c (is_known_support_routine): Move sal declaration to
3065 where it is initialized.
3066 * breakpoint.c (create_internal_breakpoint, init_catchpoint)
3067 (parse_breakpoint_sals, decode_static_tracepoint_spec)
3068 (clear_command, update_static_tracepoint): Remove init_sal
3069 references. Move declarations closer to initializations.
3070 * cli/cli-cmds.c (list_command): Move sal declarations closer to
3071 initializations.
3072 * elfread.c (elf_gnu_ifunc_resolver_stop): Remove init_sal
3073 references. Move sal declarations closer to initializations.
3074 * frame.c (find_frame_sal): Return a symtab_and_line via function
3075 return instead of output parameter. Remove init_sal references.
3076 * frame.h (find_frame_sal): Return a symtab_and_line via function
3077 return instead of output parameter.
3078 * guile/scm-frame.c (gdbscm_frame_sal): Adjust.
3079 * guile/scm-symtab.c (stscm_make_sal_smob): Use in-place new
3080 instead of memset.
3081 (gdbscm_find_pc_line): Remove init_sal reference.
3082 * infcall.c (call_function_by_hand_dummy): Remove init_sal
3083 references. Move declarations closer to initializations.
3084 * infcmd.c (set_step_frame): Update. Move declarations closer to
3085 initializations.
3086 (finish_backward): Remove init_sal references. Move declarations
3087 closer to initializations.
3088 * infrun.c (process_event_stop_test, handle_step_into_function)
3089 (insert_hp_step_resume_breakpoint_at_frame)
3090 (insert_step_resume_breakpoint_at_caller): Likewise.
3091 * linespec.c (create_sals_line_offset, decode_digits_ordinary)
3092 (symbol_to_sal): Likewise.
3093 * probe.c (parse_probes_in_pspace): Remove init_sal reference.
3094 * python/py-frame.c (frapy_find_sal): Move sal declaration closer
3095 to its initialization.
3096 * reverse.c (save_bookmark_command): Use new/delete. Remove
3097 init_sal references. Move declarations closer to initializations.
3098 * source.c (get_current_source_symtab_and_line): Remove brace
3099 initialization.
3100 (set_current_source_symtab_and_line): Now takes the sal by const
3101 reference. Remove brace initialization.
3102 (line_info): Remove init_sal reference.
3103 * source.h (set_current_source_symtab_and_line): Now takes a
3104 symtab_and_line via const reference.
3105 * stack.c (set_current_sal_from_frame): Adjust.
3106 (print_frame_info): Adjust.
3107 (get_last_displayed_sal): Return the sal via function return
3108 instead of via output parameter. Simplify.
3109 (frame_info): Adjust.
3110 * stack.h (get_last_displayed_sal): Return the sal via function
3111 return instead of via output parameter.
3112 * symtab.c (init_sal): Delete.
3113 (find_pc_sect_line): Remove init_sal references. Move
3114 declarations closer to initializations.
3115 (find_function_start_sal): Remove init_sal references. Move
3116 declarations closer to initializations.
3117 * symtab.h (struct symtab_and_line): In-class initialize all
3118 fields.
3119 * tracepoint.c (set_traceframe_context)
3120 (print_one_static_tracepoint_marker): Remove init_sal references.
3121 Move declarations closer to initializations.
3122 * tui/tui-disasm.c (tui_show_disassem_and_update_source): Adjust.
3123 * tui/tui-stack.c (tui_show_frame_info): Adjust. Move
3124 declarations closer to initializations.
3125 * tui/tui-winsource.c (tui_update_source_window_as_is): Remove
3126 init_sal references. Adjust.
3127
6c5b2ebe
PA
31282017-09-04 Pedro Alves <palves@redhat.com>
3129
3130 * ax-gdb.c (agent_command_1): Use range-for.
3131 * break-catch-throw.c (re_set_exception_catchpoint): Update.
3132 * breakpoint.c: Include "common/array-view.h".
3133 (init_breakpoint_sal, create_breakpoint_sal): Change sals
3134 parameter from struct symtabs_and_lines to
3135 array_view<symtab_and_line>. Adjust. Use range-for. Update.
3136 (breakpoint_sals_to_pc): Change sals parameter from struct
3137 symtabs_and_lines to std::vector reference.
3138 (check_fast_tracepoint_sals): Change sals parameter from struct
3139 symtabs_and_lines to std::array_view. Use range-for.
3140 (decode_static_tracepoint_spec): Return a std::vector instead of
3141 symtabs_and_lines. Update.
3142 (create_breakpoint): Update.
3143 (break_range_command, until_break_command, clear_command): Update.
3144 (base_breakpoint_decode_location, bkpt_decode_location)
3145 (bkpt_probe_create_sals_from_location)
3146 (bkpt_probe_decode_location, tracepoint_decode_location)
3147 (tracepoint_probe_decode_location)
3148 (strace_marker_create_sals_from_location): Return a std::vector
3149 instead of symtabs_and_lines.
3150 (strace_marker_create_breakpoints_sal): Update.
3151 (strace_marker_decode_location): Return a std::vector instead of
3152 symtabs_and_lines. Update.
3153 (update_breakpoint_locations): Change struct symtabs_and_lines
3154 parameters to gdb::array_view. Adjust.
3155 (location_to_sals): Return a std::vector instead of
3156 symtabs_and_lines. Update.
3157 (breakpoint_re_set_default): Use std::vector instead of struct
3158 symtabs_and_lines.
3159 (decode_location_default): Return a std::vector instead of
3160 symtabs_and_lines. Update.
3161 * breakpoint.h: Include "common/array-view.h".
3162 (struct breakpoint_ops) <decode_location>: Now returns a
3163 std::vector instead of returning a symtabs_and_lines via output
3164 parameter.
3165 (update_breakpoint_locations): Change sals parameters to use
3166 gdb::array_view.
3167 * cli/cli-cmds.c (edit_command, list_command): Update to use
3168 std::vector and gdb::array_view.
3169 (ambiguous_line_spec): Adjust to use gdb::array_view and
3170 range-for.
3171 (compare_symtabs): Rename to ...
3172 (cmp_symtabs): ... this. Change parameters to symtab_and_line
3173 const reference and adjust.
3174 (filter_sals): Rewrite using std::vector and standard algorithms.
3175 * elfread.c (elf_gnu_ifunc_resolver_return_stop): Simplify.
3176 (jump_command): Update to use std::vector.
3177 * linespec.c (struct linespec_state) <canonical_names>: Update
3178 comment.
3179 (add_sal_to_sals_basic): Delete.
3180 (add_sal_to_sals, filter_results, convert_results_to_lsals)
3181 (decode_line_2, create_sals_line_offset)
3182 (convert_address_location_to_sals, convert_linespec_to_sals)
3183 (convert_explicit_location_to_sals, parse_linespec)
3184 (event_location_to_sals, decode_line_full, decode_line_1)
3185 (decode_line_with_current_source)
3186 (decode_line_with_last_displayed, decode_objc)
3187 (decode_digits_list_mode, decode_digits_ordinary, minsym_found)
3188 (linespec_result::~linespec_result): Adjust to use std::vector
3189 instead of symtabs_and_lines.
3190 * linespec.h (linespec_sals::sals): Now a std::vector.
3191 (struct linespec_result): Use std::vector, bool, and in-class
3192 initialization.
3193 (decode_line_1, decode_line_with_current_source)
3194 (decode_line_with_last_displayed): Return std::vector.
3195 * macrocmd.c (info_macros_command): Use std::vector.
3196 * mi/mi-main.c (mi_cmd_trace_find): Use std::vector.
3197 * probe.c (parse_probes_in_pspace, parse_probes): Adjust to use
3198 std::vector.
3199 * probe.h (parse_probes): Return a std::vector.
3200 * python/python.c (gdbpy_decode_line): Use std::vector and
3201 gdb::array_view.
3202 * source.c (select_source_symtab, line_info): Use std::vector.
3203 * stack.c (func_command): Use std::vector.
3204 * symtab.h (struct symtabs_and_lines): Delete.
3205 * tracepoint.c (tfind_line_command, scope_info): Use std::vector.
3206
7c44b49c
PA
32072017-09-04 Pedro Alves <palves@redhat.com>
3208
3209 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
3210 unittests/array-view-selftests.c.
3211 (SUBDIR_UNITTESTS_OBS): Add array-view-selftests.o.
3212 * common/array-view.h: New file.
3213 * unittests/array-view-selftests.c: New file.
3214
e439fa14
PA
32152017-09-04 Pedro Alves <palves@redhat.com>
3216
3217 * cli/cli-cmds.c (edit_command): Pass message to
3218 ambiguous_line_spec.
3219 (list_command): Pass message to ambiguous_line_spec. Say
3220 "first"/"last" instead of "start" and "end" to be consistent with
3221 the manual.
3222 (ambiguous_line_spec): Add 'format' and vararg parameters. Use
3223 them to print formatted message.
3224
7525b645
PA
32252017-09-04 Pedro Alves <palves@redhat.com>
3226
3227 * btrace.c (ftrace_add_pt): Pass btrace_insn to
3228 ftrace_update_insns by reference instead of pointer.
3229
badc0020
YQ
32302017-09-04 Yao Qi <yao.qi@linaro.org>
3231
3232 * i386-go32-tdep.c: Include x86-xstate.h.
3233 (i386_go32_init_abi): Call i386_target_description.
3234 * i386-tdep.c (i386_target_description): Return tdesc_i386_mmx
3235 if xcr0 is X86_XSTATE_X87_MASK.
3236 * i386-tdep.h (tdesc_i386): Remove the declaration.
3237 (tdesc_i386_mmx): Likewise.
3238
d78bdb54
YQ
32392017-09-04 Yao Qi <yao.qi@linaro.org>
3240
3241 * i386-fbsd-tdep.c (i386fbsd_core_read_xcr0): Return
3242 X86_XSTATE_SSE_MASK instead of 0.
3243
ca1fa5ee
YQ
32442017-09-04 Yao Qi <yao.qi@linaro.org>
3245
3246 * amd64-fbsd-nat.c (amd64fbsd_read_description): Call
3247 i386_target_description.
3248 * i386-fbsd-nat.c (i386fbsd_read_description): Call
3249 i386_target_description.
3250 * i386-tdep.c (i386_gdbarch_init): Likewise.
3251
2434b019
YQ
32522017-09-04 Yao Qi <yao.qi@linaro.org>
3253
3254 * amd64-darwin-tdep.c: Include "x86-xstate.h".
3255 (x86_darwin_init_abi_64): Call amd64_target_description.
3256 * amd64-dicos-tdep.c: Likewise.
3257 * amd64-fbsd-nat.c: Likewise.
3258 * amd64-fbsd-tdep.c: Likewise.
3259 * amd64-nbsd-tdep.c: Likewise.
3260 * amd64-obsd-tdep.c: Likewise.
3261 * amd64-sol2-tdep.c: Likewise.
3262 * amd64-windows-tdep.c: Likewise.
3263 * amd64-tdep.h (tdesc_amd64): Remove the declaration.
3264
0860c437
SM
32652017-09-04 Simon Marchi <simon.marchi@ericsson.com>
3266
3267 * btrace.h (btrace_insn_s, DEF_VEC_O (btrace_insn_s)): Remove.
3268 (btrace_function) <insn>: Change type to use std::vector.
3269 * btrace.c (ftrace_debug, ftrace_call_num_insn,
3270 ftrace_find_call, ftrace_new_gap, ftrace_update_function,
3271 ftrace_update_insns, ftrace_compute_global_level_offset,
3272 btrace_stitch_bts, btrace_clear, btrace_insn_get,
3273 btrace_insn_end, btrace_insn_next, btrace_insn_prev): Adjust to
3274 change to std::vector.
3275 (ftrace_update_insns): Adjust to change to std::vector, change
3276 type of INSN parameter.
3277 (btrace_compute_ftrace_bts): Adjust call to ftrace_update_insns.
3278 * record-btrace.c (btrace_call_history_insn_range,
3279 btrace_compute_src_line_range,
3280 record_btrace_frame_prev_register): Adjust to change to
3281 std::vector.
3282 * python/py-record-btrace.c (recpy_bt_func_instructions): Adjust
3283 to change to std::vector.
3284
0638b7f9
TT
32852017-09-03 Tom Tromey <tom@tromey.com>
3286
3287 * corefile.c (reopen_exec_file): Use std::string.
3288
8f84fb0e
TT
32892017-09-03 Tom Tromey <tom@tromey.com>
3290
3291 * compile/compile.c (compile_register_name_mangled): Return
3292 std::string.
3293 * compile/compile-loc2c.c (pushf_register_address): Update.
3294 (pushf_register): Update.
3295 * compile/compile-c-types.c (convert_array): Update.
3296 * compile/compile-c-symbols.c (generate_vla_size): Update.
3297 (error_symbol_once): Use a gdb::unique_xmalloc_ptr.
3298 (symbol_substitution_name): Return a gdb::unique_xmalloc_ptr.
3299 (convert_one_symbol): Update.
3300 (generate_c_for_for_one_variable): Update.
3301 * compile/compile-c-support.c (c_get_range_decl_name): Return a
3302 std::string.
3303 (generate_register_struct): Update.
3304 * compile/compile-internal.h (c_get_range_decl_name): Return a
3305 std::string.
3306 (compile_register_name_mangled): Return std::string.
3307
18e9961f
TT
33082017-09-03 Tom Tromey <tom@tromey.com>
3309
3310 * utils.c (perror_string): Return a std::string.
3311 (throw_perror_with_name, perror_warning_with_name): Update.
3312
45343786
TT
33132017-09-03 Tom Tromey <tom@tromey.com>
3314
3315 * demangle.c (demangle_command): Use std::string,
3316 unique_xmalloc_ptr.
3317
b57af503
TT
33182017-09-03 Tom Tromey <tom@tromey.com>
3319
3320 * cli/cli-setshow.c (do_set_command): Use std::string.
3321
6eecf35f
TT
33222017-09-03 Tom Tromey <tom@tromey.com>
3323
3324 * cli/cli-cmds.c (cd_command): Use gdb::unique_xmalloc_ptr.
3325
56496dd4
TT
33262017-09-03 Tom Tromey <tom@tromey.com>
3327
3328 * mi/mi-interp.c (mi_cmd_interpreter_exec): Use std::string.
3329
e91a1fa7
TT
33302017-09-03 Tom Tromey <tom@tromey.com>
3331
3332 * mi/mi-cmd-env.c (env_execute_cli_command): Use
3333 gdb::unique_xmalloc_ptr.
3334
7ffd83d7
TT
33352017-09-03 Tom Tromey <tom@tromey.com>
3336
3337 * thread.c (print_thread_info_1): Use string_printf.
3338 (thread_apply_command, thread_apply_all_command): Use
3339 std::string.
3340
1ccbe998
TT
33412017-09-03 Tom Tromey <tom@tromey.com>
3342
3343 * valprint.c (val_print_string): Update.
3344 * gdbcore.h (memory_error_message): Return std::string.
3345 * corefile.c (memory_error_message): Return std::string.
3346 (memory_error): Update.
3347 * breakpoint.c (insert_bp_location): Update.
3348
23fdd69e
SM
33492017-09-03 Simon Marchi <simon.marchi@ericsson.com>
3350
3351 * target/waitstatus.h (target_waitstatus_to_string): Change
3352 return type to std::string.
3353 * target/waitstatus.c (target_waitstatus_to_string): Return
3354 std::string.
3355 * target.h (target_waitstatus_to_string): Remove declaration.
3356 * infrun.c (resume, clear_proceed_status_thread,
3357 print_target_wait_results, do_target_wait, save_waitstatus,
3358 stop_all_threads): Adjust.
3359 * record-btrace.c (record_btrace_wait): Adjust.
3360 * target-debug.h
3361 (target_debug_print_struct_target_waitstatus_p): Adjust.
3362
5c811d30
JK
33632017-09-01 Jan Kratochvil <jan.kratochvil@redhat.com>
3364
3365 PR gdb/22046
3366 * nat/linux-procfs.c (parse_proc_status_state): Fix PROC_STATE_STOPPED
3367 detection.
3368
0a2dde4a
SDJ
33692017-08-31 Sergio Durigan Junior <sergiodj@redhat.com>
3370
3371 * NEWS (Changes since GDB 8.0): Add entry mentioning new support
3372 for setting/unsetting environment variables on the remote target.
3373 (New remote packets): Add entries for QEnvironmentHexEncoded,
3374 QEnvironmentUnset and QEnvironmentReset.
3375 * common/environ.c (gdb_environ::operator=): Extend method to
3376 handle m_user_set_env_list and m_user_unset_env_list.
3377 (gdb_environ::clear): Likewise.
3378 (match_var_in_string): Change type of first parameter from 'char
3379 *' to 'const char *'.
3380 (gdb_environ::set): Extend method to handle
3381 m_user_set_env_list and m_user_unset_env_list.
3382 (gdb_environ::unset): Likewise.
3383 (gdb_environ::clear_user_set_env): New method.
3384 (gdb_environ::user_set_envp): Likewise.
3385 (gdb_environ::user_unset_envp): Likewise.
3386 * common/environ.h (gdb_environ): Handle m_user_set_env_list and
3387 m_user_unset_env_list on move constructor/assignment.
3388 (unset): Add new default parameter 'update_unset_list = true'.
3389 (clear_user_set_env): New method.
3390 (user_set_envp): Likewise.
3391 (user_unset_envp): Likewise.
3392 (m_user_set_env_list): New std::set.
3393 (m_user_unset_env_list): Likewise.
3394 * common/rsp-low.c (hex2str): New function.
3395 (bin2hex): New overload for bin2hex function.
3396 * common/rsp-low.c (hex2str): New prototype.
3397 (str2hex): New overload prototype.
3398 * remote.c: Include "environ.h". Add QEnvironmentHexEncoded,
3399 QEnvironmentUnset and QEnvironmentReset.
3400 (remote_protocol_features): Add QEnvironmentHexEncoded,
3401 QEnvironmentUnset and QEnvironmentReset packets.
3402 (send_environment_packet): New function.
3403 (extended_remote_environment_support): Likewise.
3404 (extended_remote_create_inferior): Call
3405 extended_remote_environment_support.
3406 (_initialize_remote): Add QEnvironmentHexEncoded,
3407 QEnvironmentUnset and QEnvironmentReset packet configs.
3408 * unittests/environ-selftests.c (gdb_selftest_env_var):
3409 New variable.
3410 (test_vector_initialization): New function.
3411 (test_init_from_host_environ): Likewise.
3412 (test_reinit_from_host_environ): Likewise.
3413 (test_set_A_unset_B_unset_A_cannot_find_A_can_find_B):
3414 Likewise.
3415 (test_unset_set_empty_vector): Likewise.
3416 (test_vector_clear): Likewise.
3417 (test_std_move): Likewise.
3418 (test_move_constructor):
3419 (test_self_move): Likewise.
3420 (test_set_unset_reset): Likewise.
3421 (run_tests): Rewrite in terms of the functions above.
3422
654670a4
WP
34232017-08-31 Weimin Pan <weimin.pan@oracle.com>
3424
3425 * sparc64-tdep.c (adi_stat_t): Fix comment formatting.
3426 (adi_available): Use a temp variable of type CORE_ADDR as argument
3427 3 when calling target_auxv_search.
3428 (adi_normalize_address): Use masks and xor operators to calculate
3429 normalized address.
3430 (adi_read_versions, adi_write_versions, adi_print_versions)
3431 (do_examine, do_assign): Use paddress.
3432
7755ddb7
JB
34332017-08-29 John Baldwin <jhb@FreeBSD.org>
3434
3435 * mips-fbsd-nat.c (getfpregs_supplies): Return true for FIR.
3436 * mips-fbsd-tdep.c (mips_fbsd_supply_fpregs): Split supply of FSR
3437 out of loop and add supply of FIR.
3438 (mips_fbsd_collect_fpregs): Split collect of FSR out of loop and
3439 add collect of FIR.
3440
fd437cbc
SM
34412017-08-28 Simon Marchi <simon.marchi@ericsson.com>
3442
3804a343 3443 PR gdb/21827
fd437cbc
SM
3444 * cli/cli-script.c (define_command): Don't convert command name
3445 to lower case.
3446
988f6b3d
JB
34472017-08-25 Joel Brobecker <brobecker@adacore.com>
3448
3449 * ada-lang.c (ada_lookup_struct_elt_type): Remove parameter "dispp".
3450 Update all callers accordingly. Remove all code blocks handling
3451 the case where DISPP is not NULL.
3452
663c44ac
JK
34532017-08-24 Jan Kratochvil <jan.kratochvil@redhat.com>
3454
3455 PR symtab/22003
3456 * dwarf2read.c (dwarf2_const_value_attr, dump_die_shallow)
3457 (dwarf2_get_attr_constant_value, dwarf2_fetch_constant_bytes)
3458 (skip_form_bytes, attr_form_is_constant): Handle DW_FORM_implicit_const.
3459
f1902523
JK
34602017-08-24 Jan Kratochvil <jan.kratochvil@redhat.com>
3461
3462 * dwarf2read.c (build_type_psymtabs_reader): New prototype.
3463 (process_psymtab_comp_unit): Accept IS_DEBUG_TYPES.
3464 (read_comp_units_from_section): New parameter abbrev_section, use
3465 read_and_check_comp_unit_head, allocate signatured_type if needed.
3466 (create_all_comp_units): Update read_comp_units_from_section caller.
3467
87215ad1
SDJ
34682017-08-23 Pedro Alves <palves@redhat.com>
3469
3470 PR remote/21852
3471 * remote.c (add_current_inferior_and_thread): Set inferior_ptid
3472 to null_ptid and switch to thread without reading the registers
3473 after adding the inferior.
3474
6e41ddec
JK
34752017-08-23 Jan Kratochvil <jan.kratochvil@redhat.com>
3476
3477 * NEWS (Changes since GDB 8.0): Add set compile-gcc and show
3478 compile-gcc.
3479 * compile/compile.c (compile_gcc, show_compile_gcc): New.
3480 (compile_to_object): Implement compile_gcc.
3481 (_initialize_compile): Install "set compile-gcc". Initialize
3482 compile_gcc.
3483
e68c32d5
JK
34842017-08-23 Jan Kratochvil <jan.kratochvil@redhat.com>
3485
3486 * compile/compile.c (compile_to_object): Conditionally call
3487 set_verbose. Conditionally call compile or compile_v0.
3488
58afddc6
WP
34892017-08-07 Weimin Pan <weimin.pan@oracle.com>
3490
3491 * sparc64-tdep.h: (adi_normalize_address): New export.
3492 * sparc-nat.h: (open_adi_tag_fd): New export.
3493 * sparc64-linux-nat.c: (open_adi_tag_fd): New function.
3494 * sparc64-linux-tdep.c:
3495 (SEGV_ACCADI, SEGV_ADIDERR, SEGV_ADIPERR) New defines.
3496 (sparc64_linux_handle_segmentation_fault): New function.
3497 (sparc64_linux_init_abi): Register
3498 sparc64_linux_handle_segmentation_fault
3499 * sparc64-tdep.c: Include cli-utils.h,gdbcmd.h,auxv.h.
3500 (sparc64_addr_bits_remove): New function.
3501 (sparc64_init_abi): Register sparc64_addr_bits_remove.
3502 (MAX_PROC_NAME_SIZE): New macro.
3503 (AT_ADI_BLKSZ, AT_ADI_NBITS, AT_ADI_UEONADI) New defines.
3504 (sparc64adilist): New variable.
3505 (adi_proc_list): New variable.
3506 (find_adi_info): New function.
3507 (add_adi_info): New function.
3508 (get_adi_info_proc): New function.
3509 (get_adi_info): New function.
3510 (info_adi_command): New function.
3511 (read_maps_entry): New function.
3512 (adi_available): New function.
3513 (adi_normalize_address): New function.
3514 (adi_align_address): New function.
3515 (adi_convert_byte_count): New function.
3516 (adi_tag_fd): New function.
3517 (adi_is_addr_mapped): New function.
3518 (adi_read_versions): New function.
3519 (adi_write_versions): New function.
3520 (adi_print_versions): New function.
3521 (do_examine): New function.
3522 (do_assign): New function.
3523 (adi_examine_command): New function.
3524 (adi_assign_command): New function.
3525 (_initialize_sparc64_adi_tdep): New function.
3526
11db9430
SM
35272017-08-22 Simon Marchi <simon.marchi@ericsson.com>
3528
3529 * breakpoint.c (breakpoints_info): Rename to ...
3530 (info_breakpoints_command): ... this.
3531 (watchpoints_info): Rename to ...
3532 (info_watchpoints_command): ... this.
3533 (tracepoints_info): Rename to ...
3534 (info_tracepoints_command): ... this.
3535 (_initialize_breakpoint): Adjust.
3536 * dcache.c (dcache_info): Rename to ...
3537 (info_display_command): ... this.
3538 (_initialize_dcache): Adjust.
3539 * frame.h (args_info): Rename to ...
3540 (info_args_command): ... this.
3541 (locals_info): Rename to ...
3542 (info_locals_command): ... this.
3543 * infcmd.c (nofp_registers_info): Rename to ...
3544 (info_registers_command): ... this.
3545 (float_info): Rename to ...
3546 (info_float_command): ... this.
3547 (program_info): Rename to ...
3548 (info_program_command): ... this.
3549 (all_registers_info): Rename to ...
3550 (info_all_registers_command): ... this.
3551 (vector_info): Rename to ...
3552 (info_vector_command): ... this.
3553 (float_info): Rename to ...
3554 (info_float_command): ... this.
3555 (_initialize_infcmd): Adjust.
3556 * inferior.h (term_info): Rename to ...
3557 (info_terminal_command): ... this.
3558 * inflow.c (term_info): Rename to ...
3559 (info_terminal_command): ... this.
3560 (_initialize_inflow): Adjust.
3561 * infrun.c (signals_info): Rename to ...
3562 (info_signals_command): ... this.
3563 (_initialize_infrun): Adjust.
3564 * objc-lang.c (classes_info): Rename to ...
3565 (info_classes_command): ... this.
3566 (selectors_info): Rename to ...
3567 (info_selectors_command): ... this.
3568 (_initialize_objc_language): Adjust.
3569 * printcmd.c (sym_info): Rename to ...
3570 (info_symbol_command): ... this.
3571 (address_info): Rename to ...
3572 (info_address_command): ... this.
3573 (display_info): Rename to ...
3574 (info_display_command): ... this.
3575 (_initialize_printcmd): Adjust.
3576 * reverse.c (bookmarks_info): Rename to ...
3577 (info_breakpoints_command): ... this.
3578 (_initialize_reverse): Adjust.
3579 * ser-go32.c (dos_info): Rename to ...
3580 (info_serial_command): ... this.
3581 (_initialize_ser_dos): Adjust.
3582 * skip.c (skip_info): Rename to ...
3583 (info_skip_command): ... this.
3584 (_initialize_step_skip): Adjust.
3585 * source.c (line_info): Rename to ...
3586 (info_line_command): ... this.
3587 (source_info): Rename to ...
3588 (info_source_command)
3589 * stack.c (frame_info): Rename to ...
3590 (info_frame_command): ... this.
3591 (locals_info): Rename to ...
3592 (info_locals_command): ... this.
3593 (args_info): Rename to ...
3594 (info_args_command): ... this.
3595 (_initialize_stack): Adjust.
3596 * symtab.c (sources_info): Rename to ...
3597 (info_sources_command): ... this.
3598 (variables_info): Rename to ...
3599 (info_variables_command): ... this.
3600 (functions_info): Rename to ...
3601 (info_functions_command): ... this.
3602 (types_info): Rename to ...
3603 (info_types_command): ... this.
3604 (_initialize_symtab): Adjust.
3605 * target.c (target_info): Rename to ...
3606 (info_target_command): ... this.
3607 (initialize_targets): Adjust.
3608 * tracepoint.c (tvariables_info): Rename to ...
3609 (info_tvariables_command): ... this.
3610 (scope_info): Rename to ...
3611 (info_scope_command): ... this.
3612 (trace_dump_actions): Adjust.
3613 (_initialize_tracepoint): Adjust.
3614
b270e6f9
TT
36152017-08-22 Tom Tromey <tom@tromey.com>
3616
3617 * breakpoint.h (install_breakpoint): Update.
3618 * breakpoint.c (add_solib_catchpoint): Update.
3619 (install_breakpoint): Change argument to a std::unique_ptr.
3620 (create_fork_vfork_event_catchpoint): Use std::unique_ptr.
3621 (create_breakpoint_sal, create_breakpoint): Update.
3622 (watch_command_1, catch_exec_command_1)
3623 (strace_marker_create_breakpoints_sal): Use std::unique_ptr.
3624 (add_to_breakpoint_chain): Change argument to a std::unique_ptr.
3625 Return the breakpoint.
3626 (set_raw_breakpoint_without_location, set_raw_breakpoint)
3627 (new_single_step_breakpoint): Update.
3628 * break-catch-throw.c (handle_gnu_v3_exceptions): Use
3629 std::unique_ptr.
3630 * break-catch-syscall.c (create_syscall_event_catchpoint): Use
3631 std::unique_ptr.
3632 * break-catch-sig.c (create_signal_catchpoint): Use
3633 std::unique_ptr.
3634 * ada-lang.c (create_ada_exception_catchpoint): Use
3635 std::unique_ptr.
3636
36bd8eaa
TT
36372017-08-22 Tom Tromey <tom@tromey.com>
3638
3639 * breakpoint.c (add_solib_catchpoint): Use std::unique_ptr.
3640
56f37645
TT
36412017-08-22 Tom Tromey <tom@tromey.com>
3642
3643 * psymtab.c (psymtab_search_name): Return a unique_xmalloc_ptr.
3644 (lookup_partial_symbol): Update.
3645
0b581c69
TT
36462017-08-22 Tom Tromey <tom@tromey.com>
3647
3648 * source.h (rewrite_source_path): Return a unique_xmalloc_ptr.
3649 * source.c (rewrite_source_path): Return a unique_xmalloc_ptr.
3650 (find_and_open_source, symtab_to_fullname): Update.
3651 * psymtab.c (psymtab_to_fullname): Update.
3652
14278e1f
TT
36532017-08-22 Tom Tromey <tom@tromey.com>
3654
3655 * exec.c (exec_file_attach): Update.
3656 * linux-thread-db.c (try_thread_db_load): Update.
3657 * guile/scm-safe-call.c (gdbscm_safe_source_script): Update.
3658 * utils.c (gdb_realpath): Change return type.
3659 (gdb_realpath_keepfile): Update.
3660 (gdb_realpath_check_trailer, gdb_realpath_tests): New functions.
3661 (_initialize_utils): Register the new self test.
3662 * source.c (openp): Update.
3663 (find_and_open_source): Update.
3664 * nto-tdep.c (nto_find_and_open_solib): Update.
3665 * main.c (set_gdb_data_directory): Update.
3666 (captured_main_1): Update.
3667 * dwarf2read.c (dwarf2_get_dwz_file): Update
3668 (dw2_map_symbol_filenames): Update.
3669 * auto-load.c (auto_load_safe_path_vec_update): Update.
3670 (filename_is_in_auto_load_safe_path_vec): Change type of
3671 "filename_realp".
3672 (auto_load_objfile_script): Update.
3673 (file_is_auto_load_safe): Update. Use std::string.
3674 * utils.h (gdb_realpath): Return a gdb::unique_xmalloc_ptr.
3675
4971c9a7
TT
36762017-08-22 Tom Tromey <tom@tromey.com>
3677
3678 * utils.c (gdb_realpath_keepfile): Return a
3679 gdb::unique_xmalloc_ptr.
3680 * exec.c (exec_file_attach): Update.
3681 * utils.h (gdb_realpath_keepfile): Return a
3682 gdb::unique_xmalloc_ptr.
3683
e3e41d58
TT
36842017-08-22 Tom Tromey <tom@tromey.com>
3685
3686 * compile/compile.c (compile_file_command): Use
3687 gdb::unique_xmalloc_ptr, std::string.
3688 * utils.c (gdb_abspath): Change return type.
3689 * source.c (openp): Update.
3690 * objfiles.c (allocate_objfile): Update.
3691 * main.c (set_gdb_data_directory): Update.
3692 * utils.h (gdb_abspath): Return a gdb::unique_xmalloc_ptr.
3693
0d999a6e
ZZ
36942017-08-22 Zhouyi Zhou <zhouzhouyi@gmail.com>
3695
3696 * cli-cmds.c (list_commands): List actual code around more than
3697 one location.
3698
329d5e7e
JB
36992017-08-21 John Baldwin <jhb@FreeBSD.org>
3700
3701 * fbsd-nat.c (fbsd_add_threads): Use array type for `lwps'.
3702
bf223d3e
PA
37032017-08-21 Pedro Alves <palves@redhat.com>
3704
3705 PR gdb/19487
3706 * c-exp.y (variable production): Handle function aliases.
3707 * minsyms.c (msymbol_is_text): New function.
3708 * minsyms.h (msymbol_is_text): Declare.
3709 * symtab.c (find_function_alias_target): New function.
3710 * symtab.h (find_function_alias_target): Declare.
3711
c973d0aa
PA
37122017-08-21 Pedro Alves <palves@redhat.com>
3713
3714 * eval.c (evaluate_subexp_standard) <OP_TYPE>: Don't dig past
3715 typedefs.
3716 * typeprint.c (whatis_exp): If handling "whatis", and expression
3717 is OP_TYPE, strip one typedef level. Otherwise don't strip
3718 typedefs here.
3719 * valops.c (value_cast): Save "to" type before resolving
3720 stubs/typedefs. Use that type as resulting value's type.
3721
2989a365
TT
37222017-08-18 Tom Tromey <tom@tromey.com>
3723 Pedro Alves <palves@redhat.com>
3724
3725 * spu-multiarch.c (parse_spufs_run): Use scoped_restore.
3726 * sol-thread.c (sol_thread_resume, sol_thread_wait)
3727 (sol_thread_xfer_partial, rw_common): Use scoped_restore.
3728 * procfs.c (procfs_do_thread_registers): Use scoped_restore.
3729 * proc-service.c (ps_xfer_memory): Use scoped_restore.
3730 * linux-tdep.c (linux_corefile_thread): Remove a cleanup.
3731 (linux_get_siginfo_data): Add "thread" argument. Use
3732 scoped_restore.
3733 * linux-nat.c (linux_child_follow_fork)
3734 (check_stopped_by_watchpoint): Use scoped_restore.
3735 * infrun.c (displaced_step_prepare_throw, write_memory_ptid)
3736 (THREAD_STOPPED_BY, handle_signal_stop): Use scoped_restore.
3737 (restore_inferior_ptid, save_inferior_ptid): Remove.
3738 * btrace.c (btrace_fetch): Use scoped_restore.
3739 * bsd-uthread.c (bsd_uthread_fetch_registers)
3740 (bsd_uthread_store_registers): Use scoped_restore.
3741 * breakpoint.c (reattach_breakpoints, detach_breakpoints): Use
3742 scoped_restore.
3743 * aix-thread.c (aix_thread_resume, aix_thread_wait)
3744 (aix_thread_xfer_partial): Use scoped_restore.
3745 * inferior.h (save_inferior_ptid): Remove.
3746
e60eb288
YQ
37472017-08-18 Yao Qi <yao.qi@linaro.org>
3748
3749 PR tdep/21818
3750 * arm-tdep.c (gdb_print_insn_arm): Mark
3751 USER_SPECIFIED_MACHINE_TYPE if exec_bfd isn't NULL.
3752
6d580b63
YQ
37532017-08-18 Yao Qi <yao.qi@linaro.org>
3754
3755 * NEWS: Mention GDBserver's new option "--selftest".
3756 * Makefile.in (SFILES): Remove selftest.c, add common/selftest.c.
3757 * selftest.c: Move it to common/selftest.c.
3758 * selftest.h: Move it to common/selftest.h.
3759 * selftest-arch.c (reset): New function.
3760 (tests_with_arch): Call reset.
3761
86dcbf50
YQ
37622017-08-18 Yao Qi <yao.qi@linaro.org>
3763
3764 * selftest.c (run_tests): Don't call QUIT. Call debug_printf
3765 instead of exception_fprintf and printf_filtered.
3766
7649770c
YQ
37672017-08-18 Yao Qi <yao.qi@linaro.org>
3768
3769 * selftest.c (register_self_test): Rename it to
3770 selftests::register_test.
3771 (run_self_tests): selftest::run_tests.
3772 * selftest.h: Update declarations.
3773 * selftest-arch.c (register_self_test_foreach_arch): Rename it to
3774 selftests::register_test_foreach_arch.
3775 * selftest-arch.h: Update declaration.
3776 * aarch64-tdep.c: Update.
3777 * arm-tdep.c: Likewise.
3778 * disasm-selftests.c: Likewise.
3779 * dwarf2loc.c: Likewise.
3780 * dwarf2-frame.c: Likewise.
3781 * findvar.c: Likewise.
3782 * gdbarch-selftests.c: Likewise.
3783 * maint.c (maintenance_selftest): Likewise.
3784 * regcache.c: Likewise.
3785 * rust-exp.y: Likewise.
3786 * selftest-arch.c: Likewise.
3787 * unittests/environ-selftests.c: Likewise.
3788 * unittests/function-view-selftests.c: Likewise.
3789 * unittests/offset-type-selftests.c: Likewise.
3790 * unittests/optional-selftests.c: Likewise.
3791 * unittests/scoped_restore-selftests.c: Likewise.
3792 * utils-selftests.c: Likewise.
3793
b0cba12e
PA
37942017-08-17 Pedro Alves <palves@redhat.com>
3795
3796 * cli/cli-cmds.c (source_command): Delete 'old_source_verbose'
3797 local.
3798
4c8aa72d
PA
37992017-08-17 Pedro Alves <palves@redhat.com>
3800
3801 * dwarf2read.c (struct dwarf2_cu) <line_header_die_owner>: New
3802 field.
3803 (reset_die_in_process): Delete, replaced by ...
3804 (process_die_scope): ... this new class. Make it responsible for
3805 freeing cu->line_header too.
3806 (process_die): Use process_die_scope.
3807 (handle_DW_AT_stmt_list): Record the line header's owner CU/DIE in
3808 cu->line_header_die_owner. Don't release the line header if it's
3809 owned by the CU.
3810 (setup_type_unit_groups): Make the CU/DIE own the line header.
3811 Don't release the line header here.
3812
ba713918
AL
38132017-08-17 Alex Lindsay <alexlindsay239@gmail.com> (tiny change)
3814
3815 * elfread.c (elf_read_minimal_symbols): xfree synthsyms.
3816
44d0fb3a
RK
38172017-08-17 Ruslan Kabatsayev <b7.10110111@gmail.com>
3818
3819 * NEWS: Mention new shortcuts for nexti and stepi in TUI
3820 Single-Key mode
3821
a5afdb16
RK
38222017-08-16 Ruslan Kabatsayev <b7.10110111@gmail.com>
3823
3824 * tui/tui.c (tui_commands): Add "nexti" and "stepi" to the Single-Key
3825 mode command list.
3826
47613aeb
SH
38272017-08-15 Stafford Horne <shorne@gmail.com>
3828
3829 * MAINTAINERS (Write After Approval): Add Stafford Horne.
3830
9c3cc999
SH
38312017-08-15 Stafford Horne <shorne@gmail.com>
3832
3833 * xtensa-tdep.c (xtensa_init_reggroups): Use xstrdup for cpname.
3834
206726fb
SDJ
38352017-08-15 Sergio Durigan Junior <sergiodj@redhat.com>
3836
3837 PR gdb/21954
3838 * infcmd.c (unset_environment_command): Use the 'clear' method on
3839 the environment instead of resetting it.
3840
0335ac6d
JB
38412017-08-15 John Baldwin <jhb@FreeBSD.org>
3842
3843 * fbsd-nat.c (fbsd_convert_siginfo): Fix compile on big-endian
3844 platforms.
3845
d3abe1c8
TT
38462017-08-14 Tom Tromey <tom@tromey.com>
3847
3848 * valprint.c (print_octal_chars): Use HOST_CHAR_BIT.
3849 (print_binary_chars): Likewise.
3850 (BITS_IN_BYTES): Remove.
3851
d6382fff
TT
38522017-08-14 Tom Tromey <tom@tromey.com>
3853
3854 PR gdb/21675
3855 * valprint.c (LOW_ZERO): Change value to 034.
3856 (print_octal_chars): Add static_asserts for octal constants.
3857 * printcmd.c (print_scalar_formatted): Add 'd' case.
3858
f978cb06
TT
38592017-08-11 Tom Tromey <tom@tromey.com>
3860
3861 * symfile.c (add_symbol_file_command): Use std::vector.
3862
2f5404b3
TT
38632017-08-14 Tom Tromey <tom@tromey.com>
3864
3865 * break-catch-throw.c (handle_gnu_v3_exceptions): Use std::move.
3866 * break-catch-syscall.c (create_syscall_event_catchpoint): Use
3867 std::move.
3868 * break-catch-sig.c (create_signal_catchpoint): Use std::move.
3869
de7985c3
PA
38702017-08-11 Pedro Alves <palves@redhat.com>
3871
3872 * infrun.c (process_event_stop_test): Adjust
3873 function_name_is_marked_for_skip call.
3874 * skip.c: Include <list>.
3875 (skiplist_entry): Make it a class with private fields, and
3876 getters/setters.
3877 (skiplist_entry_chain): Delete.
3878 (skiplist_entries): New.
3879 (skiplist_entry_count): Delete.
3880 (highest_skiplist_entry_num): New.
3881 (ALL_SKIPLIST_ENTRIES, ALL_SKIPLIST_ENTRIES_SAFE): Delete.
3882 (add_skiplist_entry): Delete.
3883 (skiplist_entry::skiplist_entry): New.
3884 (skiplist_entry::add_entry): New.
3885 (skip_file_command, skip_function): Adjust.
3886 (compile_skip_regexp): Delete.
3887 (skip_command): Don't compile regexp here. Adjust to use
3888 skiplist_entry::add_entry.
3889 (skip_info): Adjust to use range-for and getters.
3890 (skip_enable_command, skip_disable_command): Adjust to use
3891 range-for and setters.
3892 (skip_delete_command): Adjust to use std::list.
3893 (add_skiplist_entry): Delete.
3894 (skip_file_p): Delete, refactored as ...
3895 (skiplist_entry::do_skip_file_p): ... this new method.
3896 (skip_gfile_p): Delete, refactored as ...
3897 (skiplist_entry::do_gskip_file_p): ... this new method.
3898 (skip_function_p, skip_rfunction_p): Delete, refactored as ...
3899 (skiplist_entry::skip_function_p): ... this new method.
3900 (function_name_is_marked_for_skip): Now returns bool, and takes
3901 the function sal by const reference. Adjust to use range-for and
3902 skiplist_entry methods.
3903 (_initialize_step_skip): Remove references to
3904 skiplist_entry_chain, skiplist_entry_count.
3905 * skip.h (function_name_is_marked_for_skip): Now returns bool, and
3906 takes the function sal by const reference.
3907
be7d3cd5
YQ
39082017-08-11 Yao Qi <yao.qi@linaro.org>
3909
3910 * dwarf2-frame.c (clear_pointer_cleanup): Remove.
3911 (dwarf2_frame_cache): Remove reset_cache_cleanup.
3912 (dwarf2_frame_cache):
3913 * frame-unwind.c (frame_unwind_try_unwinder): Catch
3914 RETURN_MASK_ALL and set *this_case to NULL.
3915 * frame-unwind.h: Update comments.
3916
1c90d9f0
YQ
39172017-08-11 Yao Qi <yao.qi@linaro.org>
3918
3919 * dwarf2-frame.c (dwarf2_frame_state_alloc_regs): Remove.
3920 (dwarf2_frame_state_copy_regs): Remove.
3921 (dwarf2_frame_state_free_regs): Remove.
3922 (dwarf2_frame_state::~dwarf2_frame_state): Remove.
3923 (dwarf2_restore_rule): Call method .alloc_regs instead of
3924 dwarf2_frame_state_alloc_regs.
3925 (execute_cfa_program): Likewise. Call dwarf2_frame_state_reg_info
3926 constructor. Call std::move.
3927 (dwarf2_fetch_cfa_info): Don't call dwarf2_frame_state_copy_regs.
3928 (dwarf2_frame_cache): Likewise.
3929
3930 [GDB_SELF_TEST]: Include selftest.h and
3931 selftest-arch.h.
3932 [GDB_SELF_TEST] (execute_cfa_program_test): New function.
3933 (_initialize_dwarf2_frame) [GDB_SELF_TEST]: Register
3934 execute_cfa_program_test.
3935
3936 * dwarf2-frame.h (dwarf2_frame_state_reg_info): Add ctor, dtor,
3937 copy ctor, assignment operator, move assignment.
3938 <alloc_regs>: New method.
3939 <swap>: New method.
3940 (struct dwarf2_frame_state): Delete dtor.
3941 (dwarf2_frame_state_alloc_regs): Remove declaration.
3942 * sparc-tdep.c (sparc_execute_dwarf_cfa_vendor_op): Don't call
3943 dwarf2_frame_state_alloc_regs, use .alloc_regs instead.
3944
afe37d6b
YQ
39452017-08-11 Yao Qi <yao.qi@linaro.org>
3946
3947 * dwarf2-frame.c (dwarf2_frame_state_free): Remove.
3948 (dwarf2_frame_state::dwarf2_frame_state): New.
3949 (dwarf2_frame_state::~dwarf2_frame_state): New.
3950 (dwarf2_fetch_cfa_info): Update.
3951 (dwarf2_frame_cache): Remove old_chain. Change 'fs' to an object
3952 rather than a pointer. Update code.
3953 * dwarf2-frame.h (struct dwarf2_frame_state): Declare ctor and
3954 dtor.
3955 <data_align, code_align, retaddr_column>: Change them to const.
3956 <armcc_cfa_offsets_sf, armcc_cfa_offsets_reversed>: Change them
3957 to bool.
3958
b348037f
YQ
39592017-08-11 Yao Qi <yao.qi@linaro.org>
3960
3961 * dwarf2-frame.h (struct dwarf2_frame_state_reg) <exp_len>: Remove.
3962 <loc.exp>: New field.
3963 * dwarf2-frame.c (execute_cfa_program): Update.
3964 (dwarf2_frame_prev_register): Update.
3965
e7c9de26
PA
39662017-08-10 Pedro Alves <palves@redhat.com>
3967
3968 * common/gdb_unique_ptr.h (xfree_deleter<T[]>): Define.
3969
e8c6b620
JB
39702017-08-09 John Baldwin <jhb@FreeBSD.org>
3971
3972 * fbsd-nat.c (struct fbsd_fork_info): Remove.
3973 (fbsd_pending_children): Use std::list.
3974 (fbsd_remember_child): Likewise.
3975 (fbsd_is_child_pending): Likewise.
3976 (fbsd_pending_vfork_done): Use std::forward_list.
3977 (fbsd_add_vfork_done): Likewise.
3978 (fbsd_is_vfork_done_pending): Likewise.
3979 (fbsd_next_vfork_done): Likewise.
3980
e4a26669
JB
39812017-08-09 John Baldwin <jhb@FreeBSD.org>
3982
3983 * fbsd-nat.c [HAVE_KINFO_GETVMMAP] (struct free_deleter): New.
3984 (fbsd_find_memory_regions): Use free_deleter with std::unique_ptr.
3985 [!HAVE_KINFO_GETVMMAP] (fbsd_find_memory_regions): Use std::string
3986 for `mapfilename'.
3987 (fbsd_xfer_partial): Use gdb::byte_vector.
af3881e6 3988 (fbsd_add_threads): Use gdb::unique_xmalloc_ptr.
e4a26669 3989
142311d3
JB
39902017-08-09 John Baldwin <jhb@FreeBSD.org>
3991
3992 * fbsd-nat.c: [!HAVE_KINFO_GETVMMAP]: Include <sys/user.h> and
3993 "filestuff.h".
3994 (fbsd_find_memory_regions): Fix `mapfile' initialization.
3995
42fa2e0e
TT
39962017-08-09 Tom Tromey <tom@tromey.com>
3997
3998 * skip.c (skiplist_entry): New constructor.
3999 (skiplist_entry::enabled, skiplist_entry::function_is_regexp)
4000 (skiplist_entry::file_is_glob): Now bool.
4001 (skiplist_entry::file, skiplist_entry::function): Now
4002 std::string.
4003 (make_skip_entry): Return a unique_ptr. Use new.
4004 (free_skiplist_entry, free_skiplist_entry_cleanup)
4005 (make_free_skiplist_entry_cleanup): Remove.
4006 (skip_command, skip_disable_command, add_skiplist_entry)
4007 (skip_form_bytes, compile_skip_regexp, skip_command, skip_info)
4008 (skip_file_p, skip_gfile_p, skip_function_p, skip_rfunction_p)
4009 (function_name_is_marked_for_skip): Update.
4010 (skip_delete_command): Update. Use delete.
4011
cd3af38d
JW
40122017-08-09 Jiong Wang <jiong.wang@arm.com>
4013
4014 * aarch64-linux-tdep.c: Include "auxv.h" and "elf/common.h".
4015 (aarch64_linux_core_read_description): New function.
4016 (aarch64_linux_init_abi): Register gdbarch_core_read_description.
4017
29592bde
PA
40182017-08-09 Pedro Alves <palves@redhat.com>
4019
4020 * cp-name-parser.y (cp_comp_to_string): Return a
4021 gdb::unique_xmalloc_ptr<char>.
4022 * cp-support.c (replace_typedefs_qualified_name)
4023 (replace_typedefs): Adjust to use gdb::unique_xmalloc_ptr<char>.
4024 (cp_canonicalize_string_full): Use op= instead of explicit
4025 convertion.
4026 (cp_class_name_from_physname, method_name_from_physname)
4027 (cp_func_name, cp_remove_params): Adjust to use
4028 gdb::unique_xmalloc_ptr<char>.
4029 * cp-support.h (cp_comp_to_string): Return a
4030 gdb::unique_xmalloc_ptr<char>.
4031 * python/py-type.c (typy_lookup_type): Adjust to use
4032 gdb::unique_xmalloc_ptr<char>.
4033
b3340438
L
40342017-08-09 H.J. Lu <hongjiu.lu@intel.com>
4035
4036 * dwarf2read.c (dwarf2_string_attr): Fix a typo.
4037
e88e8651
YQ
40382017-08-09 Alex Lindsay <alexlindsay239@gmail.com>
4039 Yao Qi <yao.qi@linaro.org>
4040
4041 * cp-support.c (cp_canonicalize_string_full): Use
4042 gdb::unique_xmalloc_ptr<char>.
4043 (cp_canonicalize_string): Likewise.
4044
f5a29eb0
YQ
40452017-08-09 Yao Qi <yao.qi@linaro.org>
4046
4047 * features/Makefile (WHICH): Remove i386/ non-linux stuff.
4048 * regformats/i386/amd64-avx-avx512.dat: Remove.
4049 * regformats/i386/amd64-avx-mpx-avx512-pku.dat: Remove.
4050 * regformats/i386/amd64-avx-mpx.dat:Remove.
4051 * regformats/i386/amd64-avx.dat: Remove.
4052 * regformats/i386/amd64-mpx.dat: Remove.
4053 * regformats/i386/i386-avx-avx512.dat: Remove.
4054 * regformats/i386/i386-avx-mpx-avx512-pku.dat: Remove.
4055 * regformats/i386/i386-avx-mpx.dat: Remove.
4056 * regformats/i386/i386-mmx.dat: Remove.
4057 * regformats/i386/i386-mpx.dat: Remove.
4058
57757c2f
YQ
40592017-08-09 Yao Qi <yao.qi@linaro.org>
4060
4061 * amd64-tdep.h (tdesc_x32): Remove the declaration.
4062 * amd64-tdep.c: Don't include features/i386/x32*.c.
4063 (_initialize_amd64_tdep): Don't call initialize_tdesc_x32*
4064 functions.
4065 * features/Makefile (WHICH): Remove i386/x32, i386/x32-avx,
4066 and i386/x32-avx-avx512.
4067 (XMLTOC): Remove i386/x32-avx.xml, i386/x32-avx-avx512.xml,
4068 and i386/x32.xml.
4069 * features/i386/x32-avx-avx512.c: Removed.
4070 * features/i386/x32-avx-avx512.xml: Removed.
4071 * features/i386/x32-avx.c: Removed.
4072 * features/i386/x32-avx.xml: Removed.
4073 * features/i386/x32.c: Removed.
4074 * features/i386/x32.xml: Removed.
4075 * regformats/i386/x32-avx-avx512.dat: Removed.
4076 * regformats/i386/x32-avx.dat: Removed.
4077 * regformats/i386/x32.dat: Removed.
4078
ba7b109b
MR
40792017-08-07 Maciej W. Rozycki <macro@imgtec.com>
4080
4081 PR breakpoints/21886
4082 * mem-break.c (default_memory_insert_breakpoint): Use
4083 `->placed_address' rather than `->reqstd_address' for the
4084 breakpoint location.
4085
e347efc3
MR
40862017-08-07 Maciej W. Rozycki <macro@imgtec.com>
4087
4088 * arch-utils.c (default_print_insn): Remove arch/mach/endian
4089 assertions.
4090
0dba2a6c
MR
40912017-08-07 Maciej W. Rozycki <macro@imgtec.com>
4092
4093 * gdbarch.sh (gdbarch_info): Replace the `tdep_info' member with
4094 a union of `tdep_info', `tdesc_data' and `id'.
4095 * aarch64-tdep.c (aarch64_gdbarch_init): Use `info.tdesc_data'
4096 rather than `info.tdep_info'.
4097 * amd64-linux-tdep.c (amd64_linux_init_abi): Likewise.
4098 * i386-linux-tdep.c (i386_linux_init_abi): Likewise.
4099 * i386-tdep.c (i386_gdbarch_init): Likewise.
4100 * mips-linux-tdep.c (mips_linux_init_abi): Likewise.
4101 * mips-tdep.c (mips_gdbarch_init): Likewise.
4102 * nds32-tdep.c (nds32_gdbarch_init): Likewise.
4103 * rs6000-tdep.c (rs6000_gdbarch_init): Likewise.
4104 * ppc-linux-tdep.c (ppu2spu_sniffer): Use `info.id' rather than
4105 `info.tdep_info'.
4106 (ppc_linux_init_abi): Use `info.tdesc_data' rather than
4107 `info.tdep_info'.
4108 * sparc-tdep.c (sparc32_gdbarch_init): Likewise.
4109 * spu-multiarch.c (spu_gdbarch): Use `info.id' rather than
4110 `info.tdep_info'.
4111 * spu-tdep.c (spu_gdbarch_init): Likewise.
4112 * gdbarch.h: Regenerate.
4113
16eb6b2d
LS
41142017-08-07 Leszek Swirski <leszeks@google.com>
4115
7b005726 4116 PR symtab/20899
16eb6b2d
LS
4117 * dwarf2read.c (dwarf2_string_attr): Allow DW_FORM_GNU_strp_alt.
4118
74cbb09e
SM
41192017-08-07 Simon Marchi <simon.marchi@ericsson.com>
4120
4121 * remote-sim.c (gdbsim_load): Remove char **argv local variable.
4122 (gdbsim_open): Rename gdb_argv args object to argv.
4123
ee0c3293
TT
41242017-08-05 Tom Tromey <tom@tromey.com>
4125
4126 * compile/compile-object-load.c (compile_object_load): Use
4127 gdb::unique_xmalloc_ptr.
4128 * cli/cli-dump.c (scan_filename): Rename from
4129 scan_filename_with_cleanup. Change return type.
4130 (scan_expression): Rename from scan_expression_with_cleanup.
4131 Change return type.
4132 (dump_memory_to_file, dump_value_to_file, restore_command):
4133 Use gdb::unique_xmalloc_ptr. Update.
4134 * cli/cli-cmds.c (find_and_open_script): Use
4135 gdb::unique_xmalloc_ptr.
4136 * tracefile-tfile.c (tfile_open): Use gdb::unique_xmalloc_ptr.
4137 * symmisc.c (maintenance_print_symbols)
4138 (maintenance_print_msymbols): Use gdb::unique_xmalloc_ptr.
4139 * symfile.c (symfile_bfd_open, generic_load)
4140 (add_symbol_file_command, remove_symbol_file_command): Use
4141 gdb::unique_xmalloc_ptr.
4142 * source.c (openp): Use gdb::unique_xmalloc_ptr.
4143 * psymtab.c (maintenance_print_psymbols): Use
4144 gdb::unique_xmalloc_ptr.
4145 * corelow.c (core_open): Use gdb::unique_xmalloc_ptr.
4146 * breakpoint.c (save_breakpoints): Use gdb::unique_xmalloc_ptr.
4147 * solib.c (solib_map_sections): Use gdb::unique_xmalloc_ptr.
4148 (reload_shared_libraries_1): Likewise.
4149
3232fabd
TT
41502017-08-05 Tom Tromey <tom@tromey.com>
4151
4152 * rust-exp.y (rust_op_ptr, set_field): Remove typedefs.
4153 (rust_op_vector, rust_set_vector): New typedefs.
4154 (current_parser): New global.
4155 (work_obstack): Change to pointer type. Update all users.
4156 (rust_ast, pstate): Remove globals.
4157 (struct rust_parser): New.
4158 (%union) <params, field_inits>: Change type.
4159 (start, tuple_expr, unit_expr, struct_expr_list, literal)
4160 (field_expr, expr_list, maybe_expr_list, type_list): Update.
4161 (ast_call_ish, ast_path, ast_function_type, ast_tuple_type)
4162 (convert_params_to_types, convert_params_to_expression): Change
4163 type of "params".
4164 (ast_string): Change type of "fields".
4165 (rust_parse): Make a rust_parser. Remove cleanups.
4166 (rust_lex_tests): Make and install an auto_obstack.
4167
f02fd774
YQ
41682017-08-04 Yao Qi <yao.qi@linaro.org>
4169
4170 * configure.srv (ipa_x32_linux_regobj): New.
4171 * linux-amd64-ipa.c (get_ipa_tdesc): Use X86_TDESC_AVX_AVX512
4172 instead of X86_TDESC_AVX512.
4173 (initialize_low_tracepoint): Call
4174 init_registers_x32_avx_avx512_linux.
4175
91975afd
YQ
41762017-08-04 Yao Qi <yao.qi@linaro.org>
4177
4178 * utils.h (gdb_argv): Add namespace std for nullptr_t.
4179
2331fa3a
RK
41802017-08-03 Ruslan Kabatsayev <b7.10110111@gmail.com>
4181
4182 * MAINTAINERS (Write After Approval): Add Ruslan Kabatsayev.
4183
744e4fe1
TT
41842017-08-03 Tom Tromey <tom@tromey.com>
4185
4186 * utils.c (make_cleanup_freeargv, do_freeargv, gdb_buildargv):
4187 Remove.
4188 * utils.h (make_cleanup_freeargv, gdb_buildargv): Remove.
4189
1c034b67
TT
41902017-08-03 Tom Tromey <tom@tromey.com>
4191
4192 * python/py-param.c (compute_enum_values): Use gdb_argv.
4193
773a1edc
TT
41942017-08-03 Tom Tromey <tom@tromey.com>
4195
4196 * utils.h (struct gdb_argv_deleter): New.
4197 (gdb_argv): New class.
4198 * utils.c (gdb_argv::reset): New method.
4199 * tracepoint.c (delete_trace_variable_command): Use gdb_argv.
4200 * tracefile.c (tsave_command): Use gdb_argv.
4201 * top.c (new_ui_command): Use gdb_argv.
4202 * symmisc.c (maintenance_print_symbols)
4203 (maintenance_print_msymbols, maintenance_expand_symtabs): Use gdb_argv.
4204 * symfile.c (symbol_file_command, generic_load)
4205 (remove_symbol_file_command): Use gdb_argv.
4206 * stack.c (backtrace_command): Use gdb_argv.
4207 * source.c (add_path, show_substitute_path_command)
4208 (unset_substitute_path_command, set_substitute_path_command):
4209 Use gdb_argv.
4210 * skip.c (skip_command): Use gdb_argv. Use gdb_buildargv.
4211 * ser-mingw.c (pipe_windows_open): Use gdb_argv.
4212 * remote.c (extended_remote_run, remote_put_command)
4213 (remote_get_command, remote_delete_command): Use gdb_argv.
4214 * remote-sim.c (gdbsim_load, gdbsim_create_inferior)
4215 (gdbsim_open): Use gdb_argv.
4216 * python/py-cmd.c (gdbpy_string_to_argv): Use gdb_argv.
4217 * psymtab.c (maintenance_print_psymbols): Use gdb_argv.
4218 * procfs.c (procfs_info_proc): Use gdb_argv.
4219 * interps.c (interpreter_exec_cmd): Use gdb_argv.
4220 * infrun.c (handle_command): Use gdb_argv.
4221 * inferior.c (add_inferior_command, clone_inferior_command):
4222 Use gdb_argv.
4223 * guile/scm-string.c (gdbscm_string_to_argv): Use gdb_argv.
4224 * exec.c (exec_file_command): Use gdb_argv.
4225 * cli/cli-cmds.c (alias_command): Use gdb_argv.
4226 * compile/compile.c (build_argc_argv): Use gdb_argv.
4227
0d50bde3
TT
42282017-08-03 Tom Tromey <tom@tromey.com>
4229
4230 * python/python.c (gdbpy_decode_line): Use unique_xmalloc_ptr.
4231
7f968c89
TT
42322017-08-03 Tom Tromey <tom@tromey.com>
4233
4234 * python/python.c (compute_python_string): Return std::string.
4235 (gdbpy_eval_from_control_command): Update.
4236 (do_start_initialization): Use std::string.
4237 * python/py-varobj.c (py_varobj_iter_next): Use string_printf, not
4238 xstrprintf.
4239 * python/py-breakpoint.c (local_setattro): Use string_printf, not
4240 xstrprintf.
4241
3c9ebddd
TT
42422017-08-03 Tom Tromey <tom@tromey.com>
4243
4244 * top.h (do_restore_instream_cleanup): Remove.
4245 * top.c (do_restore_instream_cleanup): Remove.
4246 (read_command_file): Use scoped_restore.
4247 * cli/cli-script.c (execute_user_command): Use scoped_restore.
4248
b51b225e
TT
42492017-08-03 Tom Tromey <tom@tromey.com>
4250
4251 * cli/cli-script.c (execute_user_command)
4252 (execute_control_command): Use scoped_restore.
4253
ac991630
TT
42542017-08-03 Tom Tromey <tom@tromey.com>
4255
4256 * cli/cli-script.c (do_restore_user_call_depth): Remove.
4257 (execute_user_command): Remove user_call_depth; use
4258 user_args_stack's size instead.
4259
898e0c8e
TT
42602017-08-03 Tom Tromey <tom@tromey.com>
4261
4262 * top.h (in_user_command): Remove.
4263 * top.c (in_user_command): Remove.
4264 * cli/cli-script.c (do_restore_user_call_depth)
4265 (execute_user_command): Update.
4266
26fcd5d7
TT
42672017-08-03 Tom Tromey <tom@tromey.com>
4268
4269 * valops.c (search_struct_method): Use gdb::byte_vector.
4270 * valarith.c (value_concat): Use std::vector.
4271 * target.c (memory_xfer_partial): Use gdb::byte_vector.
4272 (simple_search_memory): Likewise.
4273 * printcmd.c (find_string_backward): Use gdb::byte_vector.
4274 * mi/mi-main.c (mi_cmd_data_write_memory): Use gdb::byte_vector.
4275 * gcore.c (gcore_copy_callback): Use gdb::byte_vector.
4276 * elfread.c (elf_rel_plt_read): Use std::string.
4277 * cp-valprint.c (cp_print_value): Use gdb::byte_vector.
4278 * cli/cli-dump.c (restore_section_callback): Use
4279 gdb::byte_vector.
4280
7c218e6c
TT
42812017-08-03 Tom Tromey <tom@tromey.com>
4282
4283 * jit.c (jit_reader_load_command): Use unique_xmalloc_ptr.
4284
31b68d4a
TT
42852017-08-03 Tom Tromey <tom@tromey.com>
4286
4287 * tui/tui-regs.c (tui_restore_gdbout): Remove.
4288 (tui_register_format): Use scoped_restore.
4289
2ec845e7
TT
42902017-08-03 Tom Tromey <tom@tromey.com>
4291
4292 * reverse.c (exec_direction_default): Remove.
4293 (exec_reverse_once): Use scoped_restore.
4294 * remote.c (restore_remote_timeout): Remove.
4295 (remote_flash_erase, remote_flash_write, remote_flash_done)
4296 (readchar, remote_serial_write): Use scoped_restore.
4297 * cli/cli-script.c (struct source_cleanup_lines_args)
4298 (source_cleanup_lines): Remove.
4299 (script_from_file): Use scoped_restore.
4300 * cli/cli-cmds.c (source_verbose_cleanup): Remove.
4301 (source_command): Use scoped_restore.
4302
b3bc8453
TT
43032017-08-03 Tom Tromey <tom@tromey.com>
4304
4305 * utils.h (make_cleanup_free_so): Remove.
4306 * utils.c (do_free_so, make_cleanup_free_so): Remove.
4307 * solist.h (struct so_deleter): New.
4308 (so_list_up): New typedef.
4309 * solib-svr4.c (svr4_read_so_list): Use so_list_up.
4310
e3ad2841
TT
43112017-08-03 Tom Tromey <tom@tromey.com>
4312
4313 * utils.h (make_cleanup_restore_current_language): Remove.
4314 * utils.c (do_restore_current_language)
4315 (make_cleanup_restore_current_language): Remove.
4316 * parse.c (parse_exp_in_context_1)
4317 (parse_expression_with_language): Use
4318 scoped_restore_current_language.
4319 * mi/mi-main.c (mi_cmd_execute): Use
4320 scoped_restore_current_language.
4321 * language.h (scoped_restore_current_language): New class.
4322
b80cf838
TT
43232017-08-03 Tom Tromey <tom@tromey.com>
4324
4325 * compile/compile.c (cleanup_unlink_file): Remove.
4326 (compile_to_object): Use gdb::unlinker.
4327 (eval_compile_command): Likewise.
4328
fad0444a
TT
43292017-08-03 Tom Tromey <tom@tromey.com>
4330
4331 * utils.h (make_cleanup_fclose): Remove.
4332 * utils.c (do_fclose_cleanup, make_cleanup_fclose): Remove.
4333
6e7bc05c
TT
43342017-08-03 Tom Tromey <tom@tromey.com>
4335
4336 * top.c (open_terminal_stream): Return gdb_file_up.
4337 (new_ui_command): Update.
4338
4a45905b
TT
43392017-08-03 Tom Tromey <tom@tromey.com>
4340
4341 * source.c (print_source_lines_base, forward_search_command)
4342 (reverse_search_command): Use gdb_file_up.
4343
7cd06d6e
TT
43442017-08-03 Tom Tromey <tom@tromey.com>
4345
4346 * fbsd-nat.c (fbsd_find_memory_regions): Update.
4347
ed166945
TT
43482017-08-03 Tom Tromey <tom@tromey.com>
4349
4350 * cli/cli-cmds.c (find_and_open_script): Change return type.
4351 Remove "streamp" and "full_path" parameters.
4352 (source_script_with_search): Update.
4353 * auto-load.c (source_script_file): Update.
4354 * cli/cli-cmds.h (find_and_open_script): Change type.
4355 (open_script): New struct.
4356
d419f42d
TT
43572017-08-03 Tom Tromey <tom@tromey.com>
4358
4359 * xml-support.c (xml_fetch_content_from_file): Update.
4360 * ui-file.c (stdio_file::open): Update.
4361 * tracefile-tfile.c (tfile_start): Update.
4362 * remote.c (remote_file_put, remote_file_get): Update.
4363 * nat/linux-procfs.c (linux_proc_get_int)
4364 (linux_proc_pid_get_state, linux_proc_tid_get_name): Update.
4365 * nat/linux-osdata.c (linux_common_core_of_thread): Update.
4366 (command_from_pid, commandline_from_pid, linux_xfer_osdata_cpus)
4367 (print_sockets, linux_xfer_osdata_shm, linux_xfer_osdata_sem)
4368 (linux_xfer_osdata_msg, linux_xfer_osdata_modules): Update.
4369 * nat/linux-btrace.c (linux_determine_kernel_start): Update.
4370 * linux-nat.c (linux_proc_pending_signals): Update.
4371 * dwarf2read.c (write_psymtabs_to_index): Use gdb_file_up.
4372 (file_closer): Remove.
4373 * compile/compile.c (compile_to_object): Update.
4374 * common/filestuff.h (struct gdb_file_deleter): New.
4375 (gdb_file_up): New typedef.
4376 (gdb_fopen_cloexec): Change return type.
4377 * common/filestuff.c (gdb_fopen_cloexec): Return gdb_file_up.
4378 * cli/cli-dump.c (fopen_with_cleanup): Remove.
4379 (dump_binary_file, restore_binary_file): Update.
4380 * auto-load.c (auto_load_objfile_script_1): Update.
4381
4a2b031d
TT
43822017-08-03 Tom Tromey <tom@tromey.com>
4383
4384 * tracepoint.c (tvariables_info_1): Use ui_out_emit_table.
4385 (info_static_tracepoint_markers_command): Likewise.
4386 * solib.c (info_sharedlibrary_command): Use ui_out_emit_table.
4387 * skip.c (skip_info): Use ui_out_emit_table.
4388 * progspace.c (print_program_space): Use ui_out_emit_table.
4389 * osdata.c (info_osdata): Use ui_out_emit_table.
4390 * mi/mi-cmd-info.c (mi_cmd_info_ada_exceptions): Use
4391 ui_out_emit_table.
4392 * linux-thread-db.c (info_auto_load_libthread_db): Use
4393 ui_out_emit_table.
4394 * inferior.c (print_inferior): Use ui_out_emit_table.
4395 * gdb_bfd.c (maintenance_info_bfds): Use ui_out_emit_table.
4396 * breakpoint.c (breakpoint_1): Use ui_out_emit_table.
4397 * auto-load.c (auto_load_info_scripts): Use ui_out_emit_table.
4398 * ada-tasks.c (print_ada_task_info): Use ui_out_emit_table.
4399 * ui-out.h (class ui_out_emit_table): New.
4400
a4f320fd
MR
44012017-08-02 Maciej W. Rozycki <macro@imgtec.com>
4402
4403 * mips-tdep.c (mips_fpu_type_str): New function.
4404 (mips_dump_tdep): Call it.
4405
a2f1f308
MR
44062017-08-01 Maciej W. Rozycki <macro@imgtec.com>
4407
4408 * mips-tdep.c (mips_gdbarch_init): Use MIPS_FPU_TYPE to access
4409 `->mips_fpu_type'.
4410
7e5ed83b
XR
44112017-07-31 Xavier Roirand <roirand@adacore.com>
4412
4413 * solib-darwin.c (DYLD_VERSION_MAX): Increase value.
4414
4c9dc811
XR
44152017-07-27 Xavier Roirand <roirand@adacore.com>
4416
4417 * MAINTAINERS (Write After Approval): Add Xavier Roirand.
4418
27d41eac
YQ
44192017-07-26 Yao Qi <yao.qi@linaro.org>
4420
4421 * cli/cli-cmds.c (maintenancechecklist): New variable.
4422 * gdbcmd.h (maintenancechecklist): Declare it.
4423 * i386-linux-tdep.c (_initialize_i386_linux_tdep) [GDB_SELF_TEST]:
4424 Call i386_linux_read_description with different masks.
4425 * maint.c (maintenance_check_command): New function.
4426 (_initialize_maint_cmds): Call add_prefix_cmd.
4427 * target-descriptions.c (tdesc_reg): override operator != and ==.
4428 (tdesc_type): Likewise.
4429 (tdesc_feature): Likewise.
4430 (target_desc): Likewise.
4431 [GDB_SELF_TEST] (selftests::record_xml_tdesc): New function.
4432 (maintenance_check_xml_descriptions): New function.
4433 (_initialize_target_descriptions) Add command "xml-descriptions".
4434 * target-descriptions.h (selftests::record_xml_tdesc): Declare.
4435
ea03d0d3
YQ
44362017-07-26 Yao Qi <yao.qi@linaro.org>
4437
4438 * i386-linux-tdep.c: Don't include features/i386/i386-*linux.c.
4439 Include features/i386/32bit-*.c.
4440 (i386_linux_read_description): Generate target description if it
4441 doesn't exist.
4442 (_initialize_i386_linux_tdep): Don't call _initialize_tdesc_i386
4443 functions.
4444 * features/i386/32bit-linux.c: Re-generated.
4445 * features/i386/32bit-sse.c: Likewise.
4446 * target-descriptions.c (print_c_feature::visit): Print code to
4447 set register number if needed.
4448 (print_c_feature) <m_next_regnum>: New field.
4449
25aa13e5
YQ
44502017-07-26 Yao Qi <yao.qi@linaro.org>
4451
4452 * features/Makefile (CFILES): Rename with TDESC_CFILES.
4453 (FEATURE_XMLFILES): New.
4454 (FEATURE_CFILES): New.
4455 New rules.
4456 (clean-cfiles): Remove generated c files.
4457 * features/i386/32bit-avx.c: Generated.
4458 * features/i386/32bit-avx512.c: Generated.
4459 * features/i386/32bit-core.c: Generated.
4460 * features/i386/32bit-linux.c: Generated.
4461 * features/i386/32bit-mpx.c: Generated.
4462 * features/i386/32bit-pkeys.c: Generated.
4463 * features/i386/32bit-sse.c: Generated.
4464 * target-descriptions.c: Include algorithm.
4465 (tdesc_element_visitor): Add method visit_end.
4466 (print_c_tdesc): Implement visit_end.
4467 (print_c_tdesc:: m_filename_after_features): Move it to
4468 protected.
4469 (print_c_feature): New class.
4470 (maint_print_c_tdesc_cmd): Use print_c_feature if XML file
4471 name starts with "i386/32bit-".
4472
6eb1e6a8
YQ
44732017-07-26 Yao Qi <yao.qi@linaro.org>
4474
4475 * target-descriptions.c (tdesc_element_visitor): New class.
4476 (tdesc_element): New class.
4477 (tdesc_reg): Inherit from tdesc_element.
4478 (tdesc_reg::accept): New function.
4479 (tdesc_type): Inherit from tdesc_element.
4480 (tdesc_type::accept): New function.
4481 (tdesc_feature): Inherit from tdesc_element.
4482 (tdesc_feature::accept): New function.
4483 (target_desc): Inherit from tdesc_element.
4484 (target_desc::target_desc): New.
4485 (target_desc::~target_desc): New.
4486 (target_desc::accept): New.
4487 (allocate_target_description): Use new.
4488 (free_target_description): Use delete.
4489 (print_c_tdesc): New class.
4490 (maint_print_c_tdesc_cmd): Adjust.
4491
4492 * features/aarch64.c: Re-generated.
4493 * features/arc-arcompact.c: Re-generated.
4494 * features/arc-v2.c: Re-generated.
4495 * features/arm/arm-with-iwmmxt.c: Re-generated.
4496 * features/arm/arm-with-m.c: Re-generated.
4497 * features/arm/arm-with-m-fpa-layout.c: Re-generated.
4498 * features/arm/arm-with-m-vfp-d16.c: Re-generated.
4499 * features/arm/arm-with-neon.c: Re-generated.
4500 * features/arm/arm-with-vfpv2.c: Re-generated.
4501 * features/arm/arm-with-vfpv3.c: Re-generated.
4502 * features/i386/amd64-avx-avx512.c: Re-generated.
4503 * features/i386/amd64-avx-avx512-linux.c: Re-generated.
4504 * features/i386/amd64-avx.c: Re-generated.
4505 * features/i386/amd64-avx-linux.c: Re-generated.
4506 * features/i386/amd64-avx-mpx-avx512-pku.c: Re-generated.
4507 * features/i386/amd64-avx-mpx-avx512-pku-linux.c: Re-generated.
4508 * features/i386/amd64-avx-mpx.c: Re-generated.
4509 * features/i386/amd64-avx-mpx-linux.c: Re-generated.
4510 * features/i386/amd64.c: Re-generated.
4511 * features/i386/amd64-linux.c: Re-generated.
4512 * features/i386/amd64-mpx.c: Re-generated.
4513 * features/i386/amd64-mpx-linux.c: Re-generated.
4514 * features/i386/i386-avx-avx512.c: Re-generated.
4515 * features/i386/i386-avx-avx512-linux.c: Re-generated.
4516 * features/i386/i386-avx.c: Re-generated.
4517 * features/i386/i386-avx-linux.c: Re-generated.
4518 * features/i386/i386-avx-mpx-avx512-pku.c: Re-generated.
4519 * features/i386/i386-avx-mpx-avx512-pku-linux.c: Re-generated.
4520 * features/i386/i386-avx-mpx.c: Re-generated.
4521 * features/i386/i386-avx-mpx-linux.c: Re-generated.
4522 * features/i386/i386.c: Re-generated.
4523 * features/i386/i386-linux.c: Re-generated.
4524 * features/i386/i386-mmx.c: Re-generated.
4525 * features/i386/i386-mmx-linux.c: Re-generated.
4526 * features/i386/i386-mpx.c: Re-generated.
4527 * features/i386/i386-mpx-linux.c: Re-generated.
4528 * features/i386/x32-avx-avx512.c: Re-generated.
4529 * features/i386/x32-avx-avx512-linux.c: Re-generated.
4530 * features/i386/x32-avx.c: Re-generated.
4531 * features/i386/x32-avx-linux.c: Re-generated.
4532 * features/i386/x32.c: Re-generated.
4533 * features/i386/x32-linux.c: Re-generated.
4534 * features/microblaze.c: Re-generated.
4535 * features/microblaze-with-stack-protect.c: Re-generated.
4536 * features/mips64-dsp-linux.c: Re-generated.
4537 * features/mips64-linux.c: Re-generated.
4538 * features/mips-dsp-linux.c: Re-generated.
4539 * features/mips-linux.c: Re-generated.
4540 * features/nds32.c: Re-generated.
4541 * features/nios2.c: Re-generated.
4542 * features/nios2-linux.c: Re-generated.
4543 * features/rs6000/powerpc-32.c: Re-generated.
4544 * features/rs6000/powerpc-32l.c: Re-generated.
4545 * features/rs6000/powerpc-403.c: Re-generated.
4546 * features/rs6000/powerpc-403gc.c : Re-generated.
4547 * features/rs6000/powerpc-405.c: Re-generated.
4548 * features/rs6000/powerpc-505.c: Re-generated.
4549 * features/rs6000/powerpc-601.c: Re-generated.
4550 * features/rs6000/powerpc-602.c: Re-generated.
4551 * features/rs6000/powerpc-603.c: Re-generated.
4552 * features/rs6000/powerpc-604.c: Re-generated.
4553 * features/rs6000/powerpc-64.c: Re-generated.
4554 * features/rs6000/powerpc-64l.c: Re-generated.
4555 * features/rs6000/powerpc-7400.c: Re-generated.
4556 * features/rs6000/powerpc-750.c: Re-generated.
4557 * features/rs6000/powerpc-860.c: Re-generated.
4558 * features/rs6000/powerpc-altivec32.c: Re-generated.
4559 * features/rs6000/powerpc-altivec32l.c: Re-generated.
4560 * features/rs6000/powerpc-altivec64.c: Re-generated.
4561 * features/rs6000/powerpc-altivec64l.c: Re-generated.
4562 * features/rs6000/powerpc-cell32l.c: Re-generated.
4563 * features/rs6000/powerpc-cell64l.c: Re-generated.
4564 * features/rs6000/powerpc-e500.c: Re-generated.
4565 * features/rs6000/powerpc-e500l.c: Re-generated.
4566 * features/rs6000/powerpc-isa205-32l.c: Re-generated.
4567 * features/rs6000/powerpc-isa205-64l.c: Re-generated.
4568 * features/rs6000/powerpc-isa205-altivec32l.c: Re-generated.
4569 * features/rs6000/powerpc-isa205-altivec64l.c: Re-generated.
4570 * features/rs6000/powerpc-isa205-vsx32l.c: Re-generated.
4571 * features/rs6000/powerpc-isa205-vsx64l.c: Re-generated.
4572 * features/rs6000/powerpc-vsx32.c: Re-generated.
4573 * features/rs6000/powerpc-vsx32l.c: Re-generated.
4574 * features/rs6000/powerpc-vsx64.c: Re-generated.
4575 * features/rs6000/powerpc-vsx64l.c: Re-generated.
4576 * features/rs6000/rs6000.c: Re-generated.
4577 * features/s390-linux32.c: Re-generated.
4578 * features/s390-linux32v1.c: Re-generated.
4579 * features/s390-linux32v2.c: Re-generated.
4580 * features/s390-linux64.c: Re-generated.
4581 * features/s390-linux64v1.c: Re-generated.
4582 * features/s390-linux64v2.c: Re-generated.
4583 * features/s390-te-linux64.c: Re-generated.
4584 * features/s390-tevx-linux64.c: Re-generated.
4585 * features/s390-vx-linux64.c: Re-generated.
4586 * features/s390x-linux64.c: Re-generated.
4587 * features/s390x-linux64v1.c: Re-generated.
4588 * features/s390x-linux64v2.c: Re-generated.
4589 * features/s390x-te-linux64.c: Re-generated.
4590 * features/s390x-tevx-linux64.c: Re-generated.
4591 * features/s390x-vx-linux64.c: Re-generated.
4592 * features/sparc/sparc32-solaris.c: Re-generated.
4593 * features/sparc/sparc64-solaris.c: Re-generated.
4594 * features/tic6x-c62x.c: Re-generated.
4595 * features/tic6x-c62x-linux.c: Re-generated.
4596 * features/tic6x-c64x.c: Re-generated.
4597 * features/tic6x-c64x-linux.c: Re-generated.
4598 * features/tic6x-c64xp.c: Re-generated.
4599 * features/tic6x-c64xp-linux.c: Re-generated.
4600
35b4818d
YQ
46012017-07-26 Yao Qi <yao.qi@linaro.org>
4602
4603 * i386-linux-tdep.c (i386_linux_read_description): New function.
4604 (i386_linux_core_read_description): Call
4605 i386_linux_read_description.
4606 * i386-linux-tdep.h (i386_linux_read_description): Declare.
4607 (tdesc_i386_linux, tdesc_i386_mmx_linux): Remove declarations.
4608 (tdesc_i386_avx_linux, tdesc_i386_mpx_linux): Likewise
4609 (tdesc_i386_avx_mpx_linux, tdesc_i386_avx_avx512_linux): Likewise.
4610 (tdesc_i386_avx_mpx_avx512_pku_linux): Likewise.
4611 * x86-linux-nat.c (x86_linux_read_description): Call
4612 i386_linux_read_description.
4613
8e2141c6
YQ
46142017-07-26 Yao Qi <yao.qi@linaro.org>
4615
4616 * NEWS: Mention it.
4617 * features/Makefile (%.c: %.xml): Pass the xml file name to
4618 command "maint print c-tdesc".
4619 * target-descriptions.c (maint_print_c_tdesc_cmd): Get file
4620 name from 'arg'.
4621
b468ff4c
YQ
46222017-07-26 Yao Qi <yao.qi@linaro.org>
4623
4624 * target-descriptions.c (target_desc): Add ctor and dtor. Do
4625 in-class initialization.
4626 (tdesc_create_feature): Call new instead of XCNEW.
4627 (free_target_description): Ue delete.
4628
b9c0e1b4
JB
46292017-07-25 John Baldwin <jhb@FreeBSD.org>
4630
4631 * configure.nat: Add "-lkvm" for NetBSD/sparc64 and fix typo.
4632
a04b5337
YQ
46332017-07-25 Yao Qi <yao.qi@linaro.org>
4634
4635 * amd64-tdep.c (amd64_init_abi): Make argument default_tdesc
4636 constant.
4637 (amd64_x32_init_abi): Likewise.
4638 * amd64-tdep.h (amd64_init_abi): Update declaration.
4639 (amd64_x32_init_abi): Likewise.
4640
02ad7fc2
YQ
46412017-07-25 Yao Qi <yao.qi@linaro.org>
4642
4643 PR tdep/21717
4644 * arm-linux-nat.c (arm_linux_fetch_inferior_registers): Update
4645 condition for FPSCR.
4646 (arm_linux_store_inferior_registers): Likewise.
4647
b6f48cb0
TT
46482017-07-22 Tom Tromey <tom@tromey.com>
4649
4650 * break-catch-syscall.c (struct catch_syscall_inferior_data)
4651 <syscalls_counts>: Now a std::vector.
4652 (get_catch_syscall_inferior_data): Use "new".
4653 (catch_syscall_inferior_data_cleanup): Use "delete".
4654 (insert_catch_syscall, remove_catch_syscall)
4655 (clear_syscall_counts): Update.
4656
e12c9b7a
TT
46572017-07-22 Tom Tromey <tom@tromey.com>
4658
4659 * break-catch-syscall.c (syscall_catchpoint)
4660 <syscalls_to_be_caught>: Now a std::vector<int>
4661 (~syscall_catchpoint): Remove.
4662 (insert_catch_syscall, remove_catch_syscall)
4663 (breakpoint_hit_catch_syscall, print_one_catch_syscall)
4664 (print_mention_catch_syscall, print_recreate_catch_syscall):
4665 Update.
4666 (create_syscall_event_catchpoint): Change type of "filter"
4667 parameter.
4668 (catch_syscall_split_args): Return a std::vector.
4669 (catch_syscall_command_1, catching_syscall_number_1): Update.
4670
4fa8aeac
TT
46712017-07-22 Tom Tromey <tom@tromey.com>
4672
4673 * break-catch-throw.c (struct exception_catchpoint)
4674 <exception_rx>: Now a std::string.
4675 (~exception_catchpoint): Remove.
4676 (print_one_detail_exception_catchpoint): Update.
4677 (handle_gnu_v3_exceptions): Change type of except_rx.
4678 (extract_exception_regexp): Return a std::string.
4679 (catch_exception_command_1): Update.
4680
f746a154
TT
46812017-07-22 Tom Tromey <tom@tromey.com>
4682
4683 * break-catch-sig.c (gdb_signal_type): Remove typedef.
4684 (struct signal_catchpoint) <signals_to_be_caught>: Now a
4685 std::vector.
4686 <catch_all>: Now a bool.
4687 (~signal_catchpoint): Remove.
4688 (signal_catchpoint_insert_location)
4689 (signal_catchpoint_remove_location)
4690 (signal_catchpoint_breakpoint_hit, signal_catchpoint_print_one)
4691 (signal_catchpoint_print_mention)
4692 (signal_catchpoint_print_recreate)
4693 (signal_catchpoint_explains_signal): Update.
4694 (create_signal_catchpoint): Change type of "filter" and
4695 "catch_all".
4696 (catch_signal_split_args): Return a std::vector. Change type of
4697 "catch_all".
4698 (catch_signal_command): Update.
4699
47e77640
PA
47002017-07-20 Pedro Alves <palves@redhat.com>
4701
4702 * ada-lang.c (ada_language_defn): Make extern.
4703 (_initialize_ada_language): Remove add_language call.
4704 * c-lang.c (c_language_defn, cplus_language_defn)
4705 (asm_language_defn, minimal_language_defn): Make extern.
4706 (_initialize_c_language): Delete.
4707 * completer.c (compare_cstrings): Delete, moved to utils.h.
4708 * d-lang.c (d_language_defn): Make extern.
4709 (_initialize_d_language): Remove add_language calls.
4710 * defs.h (enum language): Add comment.
4711 * f-lang.c (f_language_defn): Make extern.
4712 (_initialize_f_language): Remove add_language call.
4713 * go-lang.c (go_language_defn): Make extern.
4714 (_initialize_go_language): Remove add_language call.
4715 * language.c: Include <algorithm>.
4716 (languages): Redefine as const array.
4717 (languages_size, languages_allocsize, DEFAULT_ALLOCSIZE): Delete.
4718 (set_language_command): Handle "local". Use for-range loop.
4719 (set_language): Remove loop.
4720 (language_enum): Rewrite.
4721 (language_def, language_str): Remove loops.
4722 (add_language): Delete.
4723 (add_set_language_command): New, based on add_languages.
4724 (skip_language_trampoline): Adjust.
4725 (local_language_defn): Delete.
4726 (language_gdbarch_post_init): Adjust.
4727 (_initialize_language): Remove add_language calls. Call
4728 add_set_language_command.
4729 * language.h (add_language): Delete.
4730 (auto_language_defn)
4731 (unknown_language_defn, minimal_language_defn, ada_language_defn)
4732 (asm_language_defn, c_language_defn, cplus_language_defn)
4733 (d_language_defn, f_language_defn, go_language_defn)
4734 (m2_language_defn, objc_language_defn, opencl_language_defn)
4735 (pascal_language_defn, rust_language_defn): Declare.
4736 * m2-lang.c (m2_language_defn): Make extern.
4737 (_initialize_m2_language): Remove add_language call.
4738 * objc-lang.c (objc_language_defn): Make extern.
4739 (_initialize_objc_language): Remove add_language call.
4740 * opencl-lang.c (opencl_language_defn): Make extern.
4741 (_initialize_opencl_language): Remove add_language call.
4742 * p-lang.c (pascal_language_defn): Make extern.
4743 (_initialize_pascal_language): Delete.
4744 * rust-lang.c (rust_language_defn): Make extern.
4745 (_initialize_rust_language): Delete.
4746 * utils.h (compare_cstrings): New static inline function.
4747
edb0c9cb
PA
47482017-07-20 Pedro Alves <palves@redhat.com>
4749
4750 * ada-lang.c (ada_to_fixed_type_1): Adjust.
4751 (get_var_value): Constify parameters.
4752 (get_int_var_value): Change prototype.
4753 (to_fixed_range_type): Adjust.
4754 * ada-lang.h (get_int_var_value): Change prototype.
4755
a778f165
PA
47562017-07-20 Pedro Alves <palves@redhat.com>
4757
4758 * dwarf2read.c (dw2_lookup_symbol): Use
4759 SYMBOL_MATCHES_SEARCH_NAME.
4760 * psymtab.c (psym_lookup_symbol): Use SYMBOL_MATCHES_SEARCH_NAME.
4761
42edd901
PA
47622017-07-20 Pedro Alves <palves@redhat.com>
4763
4764 * block.c (block_iter_name_step, block_iter_name_first)
4765 (block_iter_name_next): Delete.
4766 (block_lookup_symbol_primary): Adjust to use
4767 dict_iter_match_first/dict_iter_match_next.
4768 * block.h (block_iter_name_first, block_iter_name_next): Delete
4769 declarations.
4770 (ALL_BLOCK_SYMBOLS_WITH_NAME): Adjust to use
4771 dict_iter_match_first/dict_iter_match_next.
4772
cf325299
PA
47732017-07-20 Pedro Alves <palves@redhat.com>
4774
4775 * cp-support.c (cp_find_first_component_aux): Add missing case for
4776 end of string.
4777
c5ed0576
DB
47782017-07-18 David Blaikie <dblaikie@gmail.com>
4779
4780 * dwarf2read.c (create_cus_hash_table): Re-add lost initialization
4781 of dwo_cu's dwo_file.
4782
27841e76
YQ
47832017-07-18 Yao Qi <yao.qi@linaro.org>
4784
4785 * remote.c (store_registers_using_G): Remove one line comment.
4786
cfb7e58b
YQ
47872017-07-18 Yao Qi <yao.qi@linaro.org>
4788
4789 * regcache.c (regcache_cpy): Simplify it.
4790 (regcache::cpy_no_passthrough): Remove it.
4791 * regcache.h (cpy_no_passthrough): Remove it.
4792 (regcache_dup, regcache_cpy): Update comments.
4793
386535dd
PA
47942017-07-18 Pedro Alves <palves@redhat.com>
4795
4796 * remote-sim.c (sim_command_completer): Adjust to work with a
4797 completion_tracker instead of a VEC.
4798
c45ec17c
PA
47992017-07-17 Pedro Alves <palves@redhat.com>
4800
4801 * completer.c (complete_source_filenames): New function.
4802 (complete_address_and_linespec_locations): New function.
4803 (location_completer): Use complete_address_and_linespec_locations.
4804 (completion_tracker::build_completion_result): Honor the tracker's
4805 request to suppress append.
4806 * completer.h (completion_tracker::suppress_append_ws)
4807 (completion_tracker::set_suppress_append_ws): New methods.
4808 (completion_tracker::m_suppress_append_ws): New field.
4809 (complete_source_filenames): New declaration.
4810 * linespec.c (linespec_complete_what): New.
4811 (struct ls_parser) <complete_what, completion_word,
4812 completion_quote_char, completion_quote_end, completion_tracker>:
4813 New fields.
4814 (string_find_incomplete_keyword_at_end): New.
4815 (linespec_lexer_lex_string): Record quote char. If in completion
4816 mode, don't throw.
4817 (linespec_lexer_consume_token): Advance the completion word point.
4818 (linespec_lexer_peek_token): Save/restore completion info.
4819 (save_stream_and_consume_token): New.
4820 (set_completion_after_number): New.
4821 (linespec_parse_basic): Set what to complete next depending on
4822 token. Handle function and label completions specially.
4823 (parse_linespec): Disable objc shortcut in completion mode. Set
4824 what to complete next depending on token type. Skip keyword if in
4825 completion mode.
4826 (complete_linespec_component, linespec_complete): New.
4827 * linespec.h (linespec_complete): Declare.
4828
be966d42
PA
48292017-07-17 Pedro Alves <palves@redhat.com>
4830
4831 * linespec.c (linespec_lexer_lex_string, find_toplevel_char):
4832 Handle 'operator<' / 'operator<<'.
4833
a2459270
PA
48342017-07-17 Pedro Alves <palves@redhat.com>
4835
4836 * completer.c (collect_explicit_location_matches): Handle
4837 MATCH_LABEL.
4838 (convert_explicit_location_to_linespec): New, factored out from
4839 ...
4840 (convert_explicit_location_to_sals): ... this.
4841 (complete_label): New.
4842 (linespec_complete_label, find_label_symbols_in_block): New.
4843 (find_label_symbols): Add completion_mode parameter and adjust to
4844 call find_label_symbols_in_block.
4845 * linespec.h (linespec_complete_label): Declare.
4846
c6756f62
PA
48472017-07-17 Pedro Alves <palves@redhat.com>
4848
4849 * ada-lang.c (ada_collect_symbol_completion_matches): Add
4850 complete_symbol_mode parameter.
4851 * cli/cli-cmds.c (complete_command): Get the completion result out
4852 of the handle_brkchars tracker if used a custom word point.
4853 * completer.c: Include "linespec.h".
4854 (enum explicit_location_match_type) <MATCH_LINE>: New enumerator.
4855 (advance_to_expression_complete_word_point): New.
4856 (completion_tracker::completes_to_completion_word): New.
4857 (complete_files_symbols): Pass down
4858 complete_symbol_mode::EXPRESSION.
4859 (explicit_options, probe_options): New.
4860 (collect_explicit_location_matches): Complete on the
4861 explictit_loc->foo instead of word. Use
4862 linespec_complete_function. Handle MATCH_LINE. Handle offering
4863 keyword and options completions.
4864 (backup_text_ptr): Delete.
4865 (skip_keyword): New.
4866 (complete_explicit_location): Remove 'word' parameter. Add
4867 language, quoted_arg_start and quoted_arg_end parameters.
4868 Rewrite, parsing left to right.
4869 (location_completer): Rewrite.
4870 (location_completer_handle_brkchars): New function.
4871 (symbol_completer): Pass down complete_symbol_mode::EXPRESSION.
4872 (enum complete_line_internal_reason): Adjust comments.
4873 (completion_tracker::discard_completions): New.
4874 (completer_handle_brkchars_func_for_completer): Handle
4875 location_completer.
4876 (gdb_custom_word_point_brkchars)
4877 (gdb_org_rl_basic_quote_characters): New.
4878 (gdb_completion_word_break_characters_throw)
4879 (completion_find_completion_word): Handle trackers that use a
4880 custom word point.
4881 (completion_tracker::advance_custom_word_point_by): New.
4882 (completion_tracker::build_completion_result): Don't rely on
4883 readline appending the quote char.
4884 (gdb_rl_attempted_completion_function_throw): Handle trackers that
4885 use a custom word point.
4886 (gdb_rl_attempted_completion_function): Restore
4887 rl_basic_quote_characters.
4888 * completer.h (class completion_tracker): Extend intro comment.
4889 (completion_tracker::set_quote_char)
4890 (completion_tracker::quote_char)
4891 (completion_tracker::set_use_custom_word_point)
4892 (completion_tracker::use_custom_word_point)
4893 (completion_tracker::custom_word_point)
4894 (completion_tracker::set_custom_word_point)
4895 (completion_tracker::advance_custom_word_point_by)
4896 (completion_tracker::completes_to_completion_word)
4897 (completion_tracker::discard_completions): New methods.
4898 (completion_tracker::m_quote_char)
4899 (completion_tracker::m_use_custom_word_point)
4900 (completion_tracker::m_custom_word_point): New fields.
4901 (advance_to_expression_complete_word_point): Declare.
4902 * f-lang.c (f_collect_symbol_completion_matches): Add
4903 complete_symbol_mode parameter.
4904 * language.h (struct language_defn)
4905 <la_collect_symbol_completion_matches>: Add complete_symbol_mode
4906 parameter.
4907 * linespec.c (linespec_keywords): Add NULL terminator. Make extern.
4908 (linespec_complete_function): New function.
4909 (linespec_lexer_lex_keyword): Adjust.
4910 * linespec.h (linespec_keywords, linespec_complete_function): New
4911 declarations.
4912 * location.c (find_end_quote): New function.
4913 (explicit_location_lex_one): Add explicit_completion_info
4914 parameter. Save quoting info. Don't throw if being called for
4915 completion. Don't handle Ada operators here.
4916 (is_cp_operator, skip_op_false_positives, first_of)
4917 (explicit_location_lex_one_function): New function.
4918 (string_to_explicit_location): Replace 'dont_throw' parameter with
4919 an explicit_completion_info pointer parameter. Handle it. Don't
4920 use explicit_location_lex_one to lex function names. Use
4921 explicit_location_lex_one_function instead.
4922 * location.h (struct explicit_completion_info): New.
4923 (string_to_explicit_location): Replace 'dont_throw' parameter with
4924 an explicit_completion_info pointer parameter.
4925 * symtab.c (default_collect_symbol_completion_matches_break_on):
4926 Add complete_symbol_mode parameter. Handle LINESPEC mode.
4927 (default_collect_symbol_completion_matches)
4928 (collect_symbol_completion_matches): Add complete_symbol_mode
4929 parameter.
4930 (collect_symbol_completion_matches_type): Pass down
4931 complete_symbol_mode::EXPRESSION.
4932 (collect_file_symbol_completion_matches): Add complete_symbol_mode
4933 parameter. Handle LINESPEC mode.
4934 * symtab.h (complete_symbol_mode): New.
4935 (default_collect_symbol_completion_matches_break_on)
4936 (default_collect_symbol_completion_matches)
4937 (collect_symbol_completion_matches)
4938 (collect_file_symbol_completion_matches): Add complete_symbol_mode
4939 parameter.
4940
1d550c82
PA
49412017-07-17 Pedro Alves <palves@redhat.com>
4942
4943 * utils.c (enum class strncmp_iw_mode): New.
4944 (strcmp_iw): Rename to ...
4945 (strncmp_iw_with_mode): ... this. Add string2_len and mode
4946 parameters. Handle them.
4947 (strncmp_iw): New.
4948 (strcmp_iw): Reimplement as wrapper around strncmp_iw_with_mode.
4949 * utils.h (strncmp_iw): Declare.
4950 (strcmp_iw): Move describing comments here.
4951
8090b426
PA
49522017-07-17 Pedro Alves <palves@redhat.com>
4953
4954 * c-exp.y (operator_stoken): Use CP_OPERATOR_LEN and
4955 CP_OPERATOR_STR.
4956 * c-typeprint.c (is_type_conversion_operator): Use
4957 CP_OPERATOR_STR.
4958 * cp-support.c (LENGTH_OF_OPERATOR): Delete.
4959 (cp_find_first_component_aux): Use CP_OPERATOR_STR and
4960 CP_OPERATOR_LEN.
4961 * cp-support.h (CP_OPERATOR_STR, CP_OPERATOR_LEN): New.
4962 * gnu-v2-abi.c (gnuv2_is_operator_name): Use CP_OPERATOR_STR.
4963 * gnu-v3-abi.c (gnuv3_is_operator_name): Use CP_OPERATOR_STR.
4964 * linespec.c (linespec_lexer_lex_string): Use CP_OPERATOR_LEN and
4965 CP_OPERATOR_STR.
4966 * location.c: Include "cp-support.h".
4967 (explicit_location_lex_one): Use CP_OPERATOR_LEN and
4968 CP_OPERATOR_STR.
4969 * symtab.c (operator_chars): Use CP_OPERATOR_STR and
4970 CP_OPERATOR_LEN.
4971
6a2c1b87
PA
49722017-07-17 Pedro Alves <palves@redhat.com>
4973
4974 * cli/cli-cmds.c (complete_command): Use a completion tracker
4975 along with completion_find_completion_word for handle_brkchars
4976 phase.
4977 * completer.c (RL_QF_SINGLE_QUOTE, RL_QF_DOUBLE_QUOTE)
4978 (RL_QF_BACKSLASH, RL_QF_OTHER_QUOTE): New.
4979 (struct gdb_rl_completion_word_info): New.
4980 (gdb_rl_find_completion_word): New.
4981 (completion_find_completion_word): New.
4982 * completer.h (completion_find_completion_word): Declare.
4983
eb3ff9a5
PA
49842017-07-17 Pedro Alves <palves@redhat.com>
4985
4986 * ada-lang.c (symbol_completion_match): Adjust comments.
4987 (symbol_completion_add): Replace vector parameter with
4988 completion_tracker parameter. Use it.
4989 (ada_make_symbol_completion_list): Rename to...
4990 (ada_collect_symbol_completion_matches): ... this. Add
4991 completion_tracker parameter and use it.
4992 (ada_language_defn): Adjust.
4993 * break-catch-syscall.c (catch_syscall_completer): Adjust
4994 prototype and work with completion_tracker instead of VEC.
4995 * breakpoint.c (condition_completer): Adjust prototype and work
4996 with completion_tracker instead of VEC.
4997 * c-lang.c (c_language_defn, cplus_language_defn)
4998 (asm_language_defn, minimal_language_defn): Adjust to renames.
4999 * cli/cli-cmds.c (complete_command): Rework using
5000 completion_tracker. Catch exceptions when completing.
5001 * cli/cli-decode.c (integer_unlimited_completer)
5002 (complete_on_cmdlist, complete_on_enum): Adjust prototype and work
5003 with completion_tracker instead of VEC.
5004 * command.h (struct completion_tracker): Forward declare.
5005 (completer_ftype, completer_handle_brkchars_ftype): Change
5006 types.
5007 (complete_on_cmdlist, complete_on_enum): Adjust.
5008 * completer.c: Include <algorithm>.
5009 (struct gdb_completer_state): New.
5010 (current_completion): New global.
5011 (readline_line_completion_function): Delete.
5012 (noop_completer, filename_completer)
5013 (filename_completer_handle_brkchars, complete_files_symbols)
5014 (linespec_location_completer): Adjust to work with a
5015 completion_tracker instead of a VEC.
5016 (string_or_empty): New.
5017 (collect_explicit_location_matches): Adjust to work with a
5018 completion_tracker instead of a VEC.
5019 (explicit_location_completer): Rename to ...
5020 (complete_explicit_location): ... this and adjust to work with a
5021 completion_tracker instead of a VEC.
5022 (location_completer): Adjust to work with a completion_tracker
5023 instead of a VEC.
5024 (add_struct_fields): Adjust to work with a completion_list instead
5025 of VEC.
5026 (expression_completer): Rename to ...
5027 (complete_expression): ... this and adjust to work with a
5028 completion_tracker instead of a VEC. Use complete_files_symbols.
5029 (expression_completer): Reimplement on top of complete_expression.
5030 (symbol_completer): Adjust to work with a completion_tracker
5031 instead of a VEC.
5032 (enum complete_line_internal_reason): Add describing comments.
5033 (complete_line_internal_normal_command): Adjust to work with a
5034 completion_tracker instead of a VEC.
5035 (complete_line_internal): Rename to ...
5036 (complete_line_internal_1): ... this and adjust to work with a
5037 completion_tracker instead of a VEC. Assert TEXT is NULL in the
5038 handle_brkchars phase.
5039 (new_completion_tracker): Delete.
5040 (complete_line_internal): Reimplement as TRY/CATCH wrapper around
5041 complete_line_internal_1.
5042 (free_completion_tracker): Delete.
5043 (INITIAL_COMPLETION_HTAB_SIZE): New.
5044 (completion_tracker::completion_tracker)
5045 (completion_tracker::~completion_tracker): New.
5046 (maybe_add_completion): Delete.
5047 (completion_tracker::maybe_add_completion)
5048 (completion_tracker::add_completion)
5049 (completion_tracker::add_completions): New.
5050 (throw_max_completions_reached_error): Delete.
5051 (complete_line): Adjust to work with a completion_tracker instead
5052 of a VEC. Don't create a completion_tracker_t or check for max
5053 completions here.
5054 (command_completer, command_completer_handle_brkchars)
5055 (signal_completer, reg_or_group_completer_1)
5056 (reg_or_group_completer, default_completer_handle_brkchars):
5057 Adjust to work with a completion_tracker.
5058 (gdb_completion_word_break_characters_throw): New.
5059 (gdb_completion_word_break_characters): Reimplement.
5060 (line_completion_function): Delete.
5061 (completion_tracker::recompute_lowest_common_denominator)
5062 (expand_preserving_ws)
5063 (completion_tracker::build_completion_result)
5064 (completion_result::completion_result)
5065 (completion_result::completion_result)
5066 (completion_result::~completion_result)
5067 (completion_result::completion_result)
5068 (completion_result::release_match_list, compare_cstrings)
5069 (completion_result::sort_match_list)
5070 (completion_result::reset_match_list)
5071 (gdb_rl_attempted_completion_function_throw)
5072 (gdb_rl_attempted_completion_function): New.
5073 * completer.h (completion_list, struct completion_result)
5074 (class completion_tracker): New.
5075 (complete_line): Add completion_tracker parameter.
5076 (readline_line_completion_function): Delete.
5077 (gdb_rl_attempted_completion_function): New.
5078 (noop_completer, filename_completer, expression_completer)
5079 (location_completer, symbol_completer, command_completer)
5080 (signal_completer, reg_or_group_completer): Update prototypes.
5081 (completion_tracker_t, new_completion_tracker)
5082 (make_cleanup_free_completion_tracker): Delete.
5083 (enum maybe_add_completion_enum): Delete.
5084 (maybe_add_completion): Delete.
5085 (throw_max_completions_reached_error): Delete.
5086 * corefile.c (complete_set_gnutarget): Adjust to work with a
5087 completion_tracker instead of a VEC.
5088 * cp-abi.c (cp_abi_completer): Adjust to work with a
5089 completion_tracker instead of a VEC.
5090 * d-lang.c (d_language_defn): Adjust.
5091 * disasm.c (disassembler_options_completer): Adjust to work with a
5092 completion_tracker instead of a VEC.
5093 * f-lang.c (f_make_symbol_completion_list): Rename to ...
5094 (f_collect_symbol_completion_matches): ... this. Adjust to work
5095 with a completion_tracker instead of a VEC.
5096 (f_language_defn): Adjust.
5097 * go-lang.c (go_language_defn): Adjust.
5098 * guile/scm-cmd.c (cmdscm_add_completion, cmdscm_completer):
5099 Adjust to work with a completion_tracker instead of a VEC.
5100 * infrun.c (handle_completer): Likewise.
5101 * interps.c (interpreter_completer): Likewise.
5102 * interps.h (interpreter_completer): Likewise.
5103 * language.c (unknown_language_defn, auto_language_defn)
5104 (local_language_defn): Adjust.
5105 * language.h (language_defn::la_make_symbol_completion_list):
5106 Rename to ...
5107 (language_defn::la_collect_symbol_completion_matches): ... this
5108 and adjust to work with a completion_tracker instead of a VEC.
5109 * m2-lang.c (m2_language_defn): Adjust.
5110 * objc-lang.c (objc_language_defn): Adjust.
5111 * opencl-lang.c (opencl_language_defn): Adjust.
5112 * p-lang.c (pascal_language_defn): Adjust.
5113 * python/py-cmd.c (cmdpy_completer_helper): Handle NULL word.
5114 (cmdpy_completer_handle_brkchars, cmdpy_completer): Adjust to work
5115 with a completion_tracker.
5116 * rust-lang.c (rust_language_defn): Adjust.
5117 * symtab.c (free_completion_list, do_free_completion_list)
5118 (return_val, completion_tracker): Delete.
5119 (completion_list_add_name, completion_list_add_symbol)
5120 (completion_list_add_msymbol, completion_list_objc_symbol)
5121 (completion_list_add_fields, add_symtab_completions): Add
5122 completion_tracker parameter and use it.
5123 (default_make_symbol_completion_list_break_on_1): Rename to...
5124 (default_collect_symbol_completion_matches_break_on): ... this.
5125 Add completion_tracker parameter and use it instead of allocating
5126 a completion tracker here.
5127 (default_make_symbol_completion_list_break_on): Delete old
5128 implementation.
5129 (default_make_symbol_completion_list): Delete.
5130 (default_collect_symbol_completion_matches): New.
5131 (make_symbol_completion_list): Delete.
5132 (collect_symbol_completion_matches): New.
5133 (make_symbol_completion_type): Rename to ...
5134 (collect_symbol_completion_matches_type): ... this. Add
5135 completion_tracker parameter and use it instead of VEC.
5136 (make_file_symbol_completion_list_1): Rename to...
5137 (collect_file_symbol_completion_matches): ... this. Add
5138 completion_tracker parameter and use it instead of VEC.
5139 (make_file_symbol_completion_list): Delete.
5140 (add_filename_to_list): Use completion_list instead of a VEC.
5141 (add_partial_filename_data::list): Now a completion_list.
5142 (make_source_files_completion_list): Work with a completion_list
5143 instead of a VEC.
5144 * symtab.h: Include "completer.h".
5145 (default_make_symbol_completion_list_break_on)
5146 (default_make_symbol_completion_list, make_symbol_completion_list)
5147 (make_symbol_completion_type, make_file_symbol_completion_list)
5148 (make_source_files_completion_list): Delete.
5149 (default_collect_symbol_completion_matches_break_on)
5150 (default_collect_symbol_completion_matches)
5151 (collect_symbol_completion_matches)
5152 (collect_symbol_completion_matches_type)
5153 (collect_file_symbol_completion_matches)
5154 (make_source_files_completion_list): New.
5155 * top.c (init_main): Don't install a rl_completion_entry_function
5156 hook. Install a rl_attempted_completion_function hook instead.
5157 * tui/tui-layout.c (layout_completer): Adjust to work with a
5158 completion_tracker.
5159 * tui/tui-regs.c (tui_reggroup_completer):
5160 * tui/tui-win.c (window_name_completer, focus_completer)
5161 (winheight_completer): Adjust to work with a completion_tracker.
5162 * value.c: Include "completer.h".
5163 (complete_internalvar): Adjust to work with a completion_tracker.
5164 * value.h (complete_internalvar): Likewise.
5165
6e1dbf8c
PA
51662017-07-17 Pedro Alves <palves@redhat.com>
5167
5168 * cli/cli-decode.c (set_cmd_completer_handle_brkchars): Adjust to
5169 renames.
5170 * cli/cli-decode.h (struct cmd_list_element) <completer>: Move
5171 comments to completer_ftype's declaration.
5172 <completer_handle_brkchars>: Change type to
5173 completer_handle_brkchars_ftype.
5174 * command.h (completer_ftype): Add describing comment and give
5175 names to parameters.
5176 (completer_ftype_void): Rename to ...
5177 (completer_handle_brkchars_ftype) ... this. Add describing comment.
5178 (set_cmd_completer_handle_brkchars): Adjust.
5179 * completer.c (filename_completer_handle_brkchars): New function.
5180 (complete_line_internal_normal_command): New function, factored
5181 out from ...
5182 (complete_line_internal): ... here.
5183 (command_completer_handle_brkchars)
5184 (default_completer_handle_brkchars)
5185 (completer_handle_brkchars_func_for_completer): New functions.
5186 * completer.h (set_gdb_completion_word_break_characters): Delete
5187 declaration.
5188 (completer_handle_brkchars_func_for_completer): New declaration.
5189 * python/py-cmd.c (cmdpy_completer_handle_brkchars): Adjust to use
5190 completer_handle_brkchars_func_for_completer.
5191
78b13106
PA
51922017-07-17 Pedro Alves <palves@redhat.com>
5193
5194 * completer.c (symbol_completer): New function, based on
5195 make_symbol_completion_list_fn.
5196 * completer.h (symbol_completer): New declaration.
5197 * guile/scm-cmd.c (cmdscm_completers): Adjust.
5198 * python/py-cmd.c (completers): Adjust.
5199 * symtab.c (make_symbol_completion_list_fn): Delete.
5200 * symtab.h (make_symbol_completion_list_fn): Delete.
5201 * cli/cli-decode.c (add_cmd): Adjust.
5202
bbf2f4df
PA
52032017-07-17 Pedro Alves <palves@redhat.com>
5204
5205 * Makefile.in (COMMON_OBS): Add filename-seen-cache.o.
5206 * dwarf2read.c: Include "filename-seen-cache.h".
5207 * dwarf2read.c (dwarf2_per_objfile) <filenames_cache>: New field.
5208 (dw2_map_symbol_filenames): Build and use a filenames_seen_cache.
5209 * filename-seen-cache.c: New file.
5210 * filename-seen-cache.h: New file.
5211 * symtab.c: Include "filename-seen-cache.h".
5212 (struct filename_seen_cache, INITIAL_FILENAME_SEEN_CACHE_SIZE)
5213 (create_filename_seen_cache, clear_filename_seen_cache)
5214 (delete_filename_seen_cache, filename_seen): Delete, parts moved
5215 to filename-seen-cache.h/filename-seen-cache.c.
5216 (output_source_filename, sources_info)
5217 (maybe_add_partial_symtab_filename)
5218 (make_source_files_completion_list): Adjust to use
5219 filename_seen_cache.
5220
330cdd98
PA
52212017-07-17 Pedro Alves <palves@redhat.com>
5222
5223 * dwarf2read.c (dwarf2_per_objfile): In-class initialize all
5224 fields.
5225 (dwarf2_per_objfile::dwarf2_per_objfile(objfile*, const
5226 dwarf2_debug_sections*)): New.
5227 (dwarf2_per_objfile::dwarf2_per_objfile(const
5228 dwarf2_per_objfile&)): Declare as deleted.
5229 (dwarf2_per_objfile::operator=): Declare as deleted.
5230 (dwarf2_per_objfile::dwarf2_per_objfile)
5231 (dwarf2_per_objfile::~dwarf2_per_objfile)
5232 (dwarf2_per_objfile::free_cached_comp_units): New.
5233 (dwarf2_has_info): dwarf2_per_objfile initialization code moved to
5234 ctor. Call dwarf2_per_objfile's ctor manually.
5235 (dwarf2_locate_sections): Deleted/refactored as ...
5236 (dwarf2_per_objfile::locate_sections): ... this new method.
5237 (free_cached_comp_units): Defer to
5238 dwarf2_per_objfile::free_cached_comp_units.
5239 (dwarf2_free_objfile): Call dwarf2_per_objfile's dtor manually.
5240
8880f2a9
TT
52412017-07-14 Tom Tromey <tom@tromey.com>
5242
5243 PR rust/21764:
5244 * rust-exp.y (convert_ast_to_expression): Add "want_type"
5245 parameter.
5246 <UNOP_SIZEOF>: Split into separate case.
5247 <UNOP_VAR_VALUE>: Handle want_type. Add error case.
5248
65547233
TT
52492017-07-14 Tom Tromey <tom@tromey.com>
5250
5251 PR rust/21763:
5252 * symtab.c (symbol_matches_domain): Add language_rust to special
5253 case.
5254 * rust-exp.y (convert_ast_to_expression) <OP_VAR_VALUE>: Don't
5255 treat LOC_TYPEDEF symbols as variables.
5256
8f14146e
PA
52572017-07-14 Pedro Alves <palves@redhat.com>
5258
5259 * symtab.c (make_file_symbol_completion_list_1): Iterate over
5260 symtabs matching all symtabs with SRCFILE as file name instead of
5261 only considering the first hit, with lookup_symtab.
5262
2347965c
SM
52632017-07-14 Simon Marchi <simon.marchi@ericsson.com>
5264
5265 * ax-gdb.c (gen_aggregate_elt_ref): Remove operand_name and
5266 operator_name parameters.
5267 (gen_expr): Update function call.
5268
40f4af28
SM
52692017-07-14 Simon Marchi <simon.marchi@ericsson.com>
5270
5271 * dwarf2loc.h (dwarf2_compile_expr_to_ax): Remove gdbarch
5272 parameter.
5273 * symtab.h (struct symbol_computed_ops::tracepoint_var_ref):
5274 Likewise.
5275 * dwarf2loc.c (dwarf2_compile_expr_to_ax): Remove gdbarch
5276 parameter, use agent_expr::gdbarch instead, update function
5277 calls.
5278 (locexpr_tracepoint_var_ref): Likewise.
5279 (loclist_tracepoint_var_ref): Likewise.
5280 * ax-gdb.c (gen_trace_static_fields): Likewise.
5281 (gen_traced_pop): Likewise.
5282 (gen_frame_args_address): Likewise.
5283 (gen_frame_locals_address): Likewise.
5284 (gen_var_ref): Likewise.
5285 (gen_struct_ref_recursive): Likewise.
5286 (gen_static_field): Likewise.
5287 (gen_maybe_namespace_elt): Likewise.
5288 (gen_expr): Likewise.
5289 (gen_trace_for_var): Likewise.
5290 (gen_trace_for_expr): Likewise.
5291 (gen_trace_for_return_address): Likewise.
5292
053f8057
SM
52932017-07-14 Simon Marchi <simon.marchi@ericsson.com>
5294
5295 * ax-gdb.c (gen_deref, gen_address_of): Remove unused ax
5296 parameter.
5297 (gen_struct_ref, gen_expr, gen_expr_binop_rest): Update call.
5298
6661ad48
SM
52992017-07-14 Simon Marchi <simon.marchi@ericsson.com>
5300
5301 * ax-gdb.c (gen_usual_unary): Remove exp parameter, get gdbarch
5302 from ax, update calls.
5303 (gen_usual_arithmetic): Likewise.
5304 (gen_integral_promotions): Likewise.
5305 (gen_bitfield_ref): Likewise.
5306 (gen_primitive_field): Likewise.
5307 (gen_struct_ref_recursive): Likewise.
5308 (gen_struct_ref): Likewise.
5309 (gen_maybe_namespace_elt): Likewise.
5310 (gen_struct_elt_for_reference): Likewise.
5311 (gen_namespace_elt): Likewise.
5312 (gen_aggregate_elt_ref): Likewise.
5313 (gen_expr): Get gdbarch from ax, update calls.
5314 (gen_expr_binop_rest): Likewise.
5315
c55a47e7
PA
53162017-07-13 Pedro Alves <palves@redhat.com>
5317
5318 * amd64-darwin-tdep.c (x86_darwin_init_abi_64): Pass tdesc_amd64
5319 as default tdesc.
5320 * amd64-dicos-tdep.c (amd64_dicos_init_abi):
5321 * amd64-fbsd-tdep.c (amd64fbsd_init_abi):
5322 * amd64-linux-tdep.c (amd64_linux_init_abi): Pass
5323 tdesc_amd64_linux as default tdesc. Get final tdesc from the
5324 tdep.
5325 (amd64_x32_linux_init_abi): Pass tdesc_x32_linux as default tdesc.
5326 Get final tdesc from the tdep.
5327 * amd64-nbsd-tdep.c (amd64nbsd_init_abi): Pass tdesc_amd64 as
5328 default tdesc.
5329 * amd64-obsd-tdep.c (amd64obsd_init_abi): Likewise.
5330 * amd64-sol2-tdep.c (amd64_sol2_init_abi): Likewise.
5331 * amd64-tdep.c (amd64_init_abi): Add 'default_tdesc' parameter.
5332 Use it as default tdesc.
5333 (amd64_x32_init_abi): Add 'default_tdesc' parameter, and pass it
5334 down to amd_init_abi. No longer handle fallback tdesc here.
5335 * amd64-tdep.h (tdesc_x32): Declare.
5336 (amd64_init_abi, amd64_x32_init_abi): Add 'default_tdesc'
5337 parameter.
5338 * amd64-windows-tdep.c (amd64_windows_init_abi): Pass tdesc_amd64
5339 as default tdesc.
5340
55efceab
AA
53412017-07-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
5342
5343 * s390-linux-tdep.c (s390_process_record): Add support for
5344 instructions new in arch12.
5345
0aa37b65
JB
53462017-07-11 John Baldwin <jhb@FreeBSD.org>
5347
5348 * amd64-bsd-nat.c (amd64bsd_fetch_inferior_registers): Use
5349 PT_GETFSBASE and PT_GETGSBASE.
5350 (amd64bsd_store_inferior_registers): Use PT_SETFSBASE and
5351 PT_SETGSBASE.
5352
48aeef91
JB
53532017-07-11 John Baldwin <jhb@FreeBSD.org>
5354
5355 * features/Makefile (amd64.dat, amd64-avx.dat, amd64-mpx.dat)
5356 (amd64-avx-mpx.dat, amd64-avx-avx512.dat)
5357 (amd64-avx-mpx-avx512-pku.dat): Add i386/64bit-segments.xml in
5358 those rules.
5359 * features/i386/amd64-avx-avx512.xml: Add 64bit-segments.xml.
5360 * features/i386/amd64-avx-mpx-avx512-pku.xml: Add 64bit-segments.xml.
5361 * features/i386/amd64-avx-mpx.xml: Add 64bit-segments.xml.
5362 * features/i386/amd64-avx.xml: Add 64bit-segments.xml.
5363 * features/i386/amd64-mpx.xml: Add 64bit-segments.xml.
5364 * features/i386/amd64.xml: Add 64bit-segments.xml.
5365 * features/i386/amd64-avx-avx512.c: Regenerated.
5366 * features/i386/amd64-avx-mpx-avx512-pku.c: Regenerated.
5367 * features/i386/amd64-avx-mpx.c: Regenerated.
5368 * features/i386/amd64-avx.c: Regenerated.
5369 * features/i386/amd64-mpx.c: Regenerated.
5370 * features/i386/amd64.c: Regenerated.
5371 * regformats/i386/amd64-avx-avx512.dat: Regenerated.
5372 * regformats/i386/amd64-avx-mpx-avx512-pku.dat: Regenerated.
5373 * regformats/i386/amd64-avx-mpx.dat: Regenerated.
5374 * regformats/i386/amd64-avx.dat: Regenerated.
5375 * regformats/i386/amd64-mpx.dat: Regenerated.
5376 * regformats/i386/amd64.dat: Regenerated.
5377
77c501bc
YQ
53782017-07-10 Yao Qi <yao.qi@linaro.org>
5379
5380 * features/i386/amd64-avx-avx512-linux.c: Re-generated.
5381 * features/i386/amd64-avx-mpx-avx512-pku-linux.c: Re-generated.
5382
6dc8d757
AK
53832017-07-10 Anton Kolesov <Anton.Kolesov@synopsys.com>
5384
5385 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add setenv and
5386 unsetenv.
5387 * gnulib/aclocal.m4: Regenerate.
5388 * gnulib/config.in: Regenerate.
5389 * gnulib/configure: Regenerate.
5390 * gnulib/import/Makefile.am: Regenerate.
5391 * gnulib/import/Makefile.in: Regenerate.
5392 * gnulib/import/m4/gnulib-cache.m4: Regenerate.
5393 * gnulib/import/m4/gnulib-comp.m4: Regenerate.
5394 * gnulib/import/m4/environ.m4: New file.
5395 * gnulib/import/m4/setenv.m4: New file.
5396 * gnulib/import/setenv.c: New file.
5397 * gnulib/import/unsetenv.c: New file.
5398
266934d1
SM
53992017-07-09 Simon Marchi <simon.marchi@ericsson.com>
5400
5401 * compile/compile-loc2c.c (do_compile_dwarf_expr_to_c): Read
5402 address when op is DW_OP_addr.
5403
03278692
TT
54042017-07-09 Tom Tromey <tom@tromey.com>
5405
5406 * dwarf2loc.c (dwarf2_evaluate_loc_desc_full): Reverse size
5407 check and apply to outer type.
5408
4b654465
JB
54092017-07-07 John Baldwin <jhb@FreeBSD.org>
5410
5411 * fbsd-tdep.c (LWPINFO_OFFSET, LWPINFO_PL_FLAGS)
5412 (LWPINFO64_PL_SIGINFO, LWPINFO32_PL_SIGINFO, PL_FLAG_SI)
5413 (SIZE64_SIGINFO_T, SIZE32_SIGINFO_T, fbsd_core_xfer_siginfo): New.
5414 (fbsd_init_abi): Install gdbarch "core_xfer_siginfo" method.
5415
2af9fc44
JB
54162017-07-07 John Baldwin <jhb@FreeBSD.org>
5417
5418 * fbsd-tdep.c (fbsd_core_thread_name): Use thread_section_name.
5419
382b69bb
JB
54202017-07-07 John Baldwin <jhb@FreeBSD.org>
5421
5422 * corelow.c (get_core_siginfo): Remove.
5423 (core_xfer_partial): Use the gdbarch "core_xfer_siginfo" method
5424 instead of get_core_siginfo.
5425 * gdbarch.sh (core_xfer_siginfo): New gdbarch callback.
5426 * gdbarch.h: Re-generate.
5427 * gdbarch.c: Re-generate.
5428 * linux-tdep.c (linux_core_xfer_siginfo): New.
5429 (linux_init_abi): Install gdbarch "core_xfer_siginfo" method.
5430
6e5eab33
JB
54312017-07-07 John Baldwin <jhb@FreeBSD.org>
5432
5433 * corelow.c (thread_section_name): Move to ...
5434 * gdbcore.h (thread_section_name): ... here.
5435
929edea9
JB
54362017-07-07 John Baldwin <jhb@FreeBSD.org>
5437
5438 * fbsd-nat.c [PT_LWPINFO && __LP64__] (union sigval32)
5439 (struct siginfo32): New.
5440 [PT_LWPINFO] (fbsd_siginfo_size, fbsd_convert_siginfo): New.
5441 (fbsd_xfer_partial) [PT_LWPINFO]: Handle TARGET_OBJECT_SIGNAL_INFO
5442 via ptrace(PT_LWPINFO).
5443
762c974a
JB
54442017-07-07 John Baldwin <jhb@FreeBSD.org>
5445
5446 * fbsd-tdep.c (fbsd_gdbarch_data_handle, struct fbsd_gdbarch_data)
5447 (init_fbsd_gdbarch_data, get_fbsd_gdbarch_data)
5448 (fbsd_get_siginfo_type): New.
5449 (fbsd_init_abi): Install gdbarch "get_siginfo_type" method.
5450 (_initialize_fbsd_tdep): New.
5451
33c5cd75
DB
54522017-07-06 David Blaikie <dblaikie@gmail.com>
5453
5454 * dwarf2read.c (struct dwo_file): Use a htab of dwo_unit* (rather than
5455 a singular dwo_unit*) to support multiple CUs in the same way that
5456 multiple TUs are supported.
5457 (create_cus_hash_table): Replace create_dwo_cu with a function for
5458 parsing multiple CUs from a DWO file.
5459 (open_and_init_dwo_file): Use create_cus_hash_table rather than
5460 create_dwo_cu.
5461 (lookup_dwo_cutu): Lookup CU in the hash table in the dwo_file with
5462 htab_find, rather than comparing the signature to a singleton CU in
5463 the dwo_file.
5464
8455d262
PA
54652017-07-06 Pedro Alves <palves@redhat.com>
5466
5467 * python/py-unwind.c (pyuw_dealloc_cache): Fix for loop condition.
5468
4da3eb35
PA
54692017-07-04 Pedro Alves <palves@redhat.com>
5470
5471 * gdbtypes.c (recursive_dump_type): Don't reference TYPE_STATIC.
5472 * gdbtypes.h (TYPE_STATIC): Delete.
5473 (struct fn_field) <is_public, is_abstract, is_static, is_final,
5474 is_synchronized, is_native>: Delete.
5475 <dummy>: Bump.
5476 (TYPE_FN_FIELD_PUBLIC, TYPE_FN_FIELD_STATIC, TYPE_FN_FIELD_FINAL)
5477 (TYPE_FN_FIELD_SYNCHRONIZED, TYPE_FN_FIELD_NATIVE)
5478 (TYPE_FN_FIELD_ABSTRACT): Delete.
5479
5bfd255c
SM
54802017-07-03 Simon Marchi <simon.marchi@ericsson.com>
5481
5482 * buffer.h (buffer_finish): Fix spelling mistakes.
5483
25c54127
EZ
54842017-07-01 Eli Zaretskii <eliz@gnu.org>
5485
5486 * .dir-locals.el: Automatically switch to C-style comments in
5487 versions of Emacs that support the feature.
5488
dc4bde35
SDJ
54892017-06-30 Sergio Durigan Junior <sergiodj@redhat.com>
5490 Pedro Alves <palves@redhat.com>
5491
5492 PR cli/21688
5493 * cli/cli-script.c (command_name_equals_not_inline): Remove function.
5494 (process_next_line): New variable 'inline_cmd'.
5495 Adjust 'if' clauses for "python", "compile" and "guile" to use
5496 'command_name_equals' and check for '!inline_cmd'.
5497
51ed89aa
SDJ
54982017-06-30 Sergio Durigan Junior <sergiodj@redhat.com>
5499
5500 PR cli/21688
5501 * cli/cli-script.c (command_name_equals_not_inline): New function.
5502 (process_next_line): Adjust 'if' clauses for "python", "compile"
5503 and "guile" to use command_name_equals_not_inline.
5504
eb17d413
PA
55052017-06-29 Pedro Alves <palves@redhat.com>
5506
5507 * completer.c (expression_completer): Call
5508 linespec_location_completer instead of location_completer.
5509
195bcdd5
PA
55102017-06-29 Pedro Alves <palves@redhat.com>
5511
5512 * completer.c (expression_completer): Remove code that recomputes
5513 'text' from 'word'.
5514
adc764e7
YQ
55152017-06-29 Yao Qi <yao.qi@linaro.org>
5516
5517 * regformats/regdat.sh: Generate code with
5518 "ifndef IN_PROCESS_AGENT".
5519
6e75794e
PA
55202017-06-28 Pedro Alves <palves@redhat.com>
5521
5522 * command.h: Include "common/scoped_restore.h".
5523
bc491f2e
YQ
55242017-06-28 Yao Qi <yao.qi@linaro.org>
5525
5526 * mi/mi-cmd-break.c (mi_argv_to_format): Use obstack_grow_str
5527 instead of obstack_grow.
5528
41664b45
DG
55292017-06-28 Doug Gilmore <Doug.Gilmore@imgtec.com>
5530
5531 PR gdb/21337
5532 * symfile.c (reread_symbols): Call objfiles_changed just before
5533 read_symbols.
5534
6da67eb1
PA
55352017-06-27 Pedro Alves <palves@redhat.com>
5536
5537 * symtab.c (COMPLETION_LIST_ADD_SYMBOL)
5538 (MCOMPLETION_LIST_ADD_SYMBOL): Delete macros, replace with ...
5539 (completion_list_add_symbol, completion_list_add_msymbol):
5540 ... these new functions.
5541 (add_symtab_completions)
5542 (default_make_symbol_completion_list_break_on_1): Adjust.
5543
23732b1e
PA
55442017-06-27 Pedro Alves <palves@redhat.com>
5545
5546 * objfiles.c (get_objfile_bfd_data): Call bfd_alloc instead of
5547 bfd_zalloc. Call objfile_per_bfd_storage's ctor.
5548 (free_objfile_per_bfd_storage): Call objfile_per_bfd_storage's
5549 dtor.
5550 * objfiles.h (objfile_per_bfd_storage): Add ctor. Make
5551 'storage_obstack' field an auto_obstack. In-class initialize all
5552 non-bitfield fields. Make minsyms_read bool.
5553 * symfile.c (read_symbols): Adjust.
5554
a4d1e79a
AH
55552017-06-27 Alan Hayward <alan.hayward@arm.com>
5556
5557 * remote-sim.c (gdbsim_fetch_register): Use byte_vector.
5558 (gdbsim_store_register): Likewise.
5559
8268c778
PA
55602017-06-27 Pedro Alves <palves@redhat.com>
5561
5562 * c-exp.y (name_obstack): Now an auto_obstack.
5563 (yylex): Use auto_obstack::clear.
5564 (c_parse): Use auto_obstack::clear instead of reinitializing and
5565 freeing the obstack.
5566 * c-lang.c (evaluate_subexp_c): Use auto_obstack.
5567 * d-exp.y (name_obstack): Now an auto_obstack.
5568 (yylex): Use auto_obstack::clear.
5569 (d_parse): Use auto_obstack::clear instead of reinitializing and
5570 freeing the obstack.
5571 * dwarf2loc.c (fetch_const_value_from_synthetic_pointer): Use
5572 auto_obstack.
5573 * dwarf2read.c (create_addrmap_from_index)
5574 (dwarf2_build_psymtabs_hard)
5575 (update_enumeration_type_from_children): Likewise.
5576 * gdb_obstack.h (auto_obstack): New type.
5577 * go-exp.y (name_obstack): Now an auto_obstack.
5578 (build_packaged_name): Use auto_obstack::clear.
5579 (go_parse): Use auto_obstack::clear instead of reinitializing and
5580 freeing the obstack.
5581 * linux-tdep.c (linux_make_mappings_corefile_notes): Use
5582 auto_obstack.
5583 * printcmd.c (printf_wide_c_string, ui_printf): Use auto_obstack.
5584 * rust-exp.y (work_obstack): Now an auto_obstack.
5585 (rust_parse, rust_lex_tests): Use auto_obstack::clear instead of
5586 reinitializing and freeing the obstack.
5587 * utils.c (do_obstack_free, make_cleanup_obstack_free): Delete.
5588 (host_char_to_target): Use auto_obstack.
5589 * utils.h (make_cleanup_obstack_free): Delete declaration.
5590 * valprint.c (generic_emit_char, generic_printstr): Use
5591 auto_obstack.
5592
db665f42
SM
55932017-06-27 Simon Marchi <simon.marchi@ericsson.com>
5594
5595 * darwin-nat.c (darwin_check_new_threads): Don't handle dummy
5596 thread.
5597 (darwin_init_thread_list): Don't update dummy thread.
5598 (darwin_create_inferior, darwin_attach): Don't add a dummy thread.
5599
873c0814
SM
56002017-06-26 Simon Marchi <simon.marchi@ericsson.com>
5601
5602 * record-full.c (netorder16): Remove.
5603
8b5a7a6e
SM
56042017-06-26 Simon Marchi <simon.marchi@ericsson.com>
5605
5606 * common/diagnostics.h: Define macros for GCC.
5607 (DIAGNOSTIC_IGNORE_UNUSED_FUNCTION): New macro.
5608 * common/vec.h: Include diagnostics.h.
5609 (DIAGNOSTIC_IGNORE_UNUSED_VEC_FUNCTION): New macro.
5610 (DEF_VEC_I, DEF_VEC_P, DEF_VEC_O): Ignore -Wunused-function
5611 warning.
5612
d1435379
SM
56132017-06-26 Simon Marchi <simon.marchi@ericsson.com>
5614
5615 * common/diagnostics.h (DIAGNOSTIC_IGNORE_DEPRECATED_REGISTER):
5616 New macro.
5617 * ada-lex.l: Ignore deprecated register warnings.
5618
cc75e0fd
SM
56192017-06-25 Simon Marchi <simon.marchi@ericsson.com>
5620
5621 * main.c (get_init_files): Replace "SYSTEM_GDBINIT +
5622 datadir_len" with "&SYSTEM_GDBINIT[datadir_len]".
5623
07809eaf
SM
56242017-06-25 Simon Marchi <simon.marchi@ericsson.com>
5625
5626 * dtrace-probe.c (dtrace_process_dof_probe): Put semi-colon on
5627 its own line.
5628
f076f034
SM
56292017-06-25 Simon Marchi <simon.marchi@ericsson.com>
5630
5631 * nat/x86-dregs.c (x86_show_dr): Print registers one per line.
5632
0dd5cbc5
AH
56332017-06-23 Alan Hayward <alan.hayward@arm.com>
5634
5635 * xtensa-tdep.c (XTENSA_MAX_REGISTER_SIZE): Add.
5636 (xtensa_register_write_masked): Use XTENSA_MAX_REGISTER_SIZE.
5637 (xtensa_register_read_masked): Likewise.
5638
d4c6ce5b
SDJ
56392017-06-22 Sergio Durigan Junior <sergiodj@redhat.com>
5640
5641 * common/environ.c (gdb_environ::unset): Update comment.
5642
16892a03
AH
56432017-06-22 Alan Hayward <alan.hayward@arm.com>
5644
5645 * python/py-unwind.c (pyuw_sniffer): Allocate space for
5646 registers.
5647
d7dcbefc
AH
56482017-06-22 Alan Hayward <alan.hayward@arm.com>
5649
5650 * record-full.c (record_full_exec_insn): Use byte_vector.
5651
b30ff123
YQ
56522017-06-22 Yao Qi <yao.qi@linaro.org>
5653
5654 * regformats/i386/amd64-avx-mpx-avx512-pku-linux.dat: Regenerated.
5655 * regformats/i386/amd64-avx-mpx-avx512-pku.dat: Regenerated.
5656
4fa847d7
AH
56572017-06-22 Alan Hayward <alan.hayward@arm.com>
5658
5659 * remote.c (cached_reg): Move from here...
5660 * regcache.h (cached_reg): ...to here.
5661 * python/py-unwind.c (struct reg_info): Remove.
5662 (cached_frame_info): Use cached_reg_t.
5663 (pyuw_prev_register): Likewise.
5664 (pyuw_sniffer): Use cached_reg_t and allocate registers.
5665 (pyuw_dealloc_cache): Free all registers.
5666
f4906a9a
PA
56672017-06-22 Pedro Alves <palves@redhat.com>
5668 Simon Marchi <simon.marchi@ericsson.com>
5669
5670 * unittests/environ-selftests.c (run_tests): Ignore -Wself-move
5671 warning.
5672 * common/diagnostics.h: New file.
5673
b45a1208
PA
56742017-06-22 Pedro Alves <palves@redhat.com>
5675
5676 * common/agent.h: Add include guards.
5677
e4da2c61
SM
56782017-06-21 Simon Marchi <simon.marchi@ericsson.com>
5679
5680 * target.h (struct target_ops) <to_xfer_partial>: Update doc to
5681 talk about addressable units instead of bytes.
5682
96160d60
SDJ
56832017-06-20 Sergio Durigan Junior <sergiodj@redhat.com>
5684
5685 * common/environ.c (gdb_environ::unset): Use '::iterator' instead
5686 of '::const_iterator'.
5687
9a6c7d9c
SDJ
56882017-06-20 Sergio Durigan Junior <sergiodj@redhat.com>
5689
5690 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
5691 'unittests/environ-selftests.c'.
5692 (SUBDIR_UNITTESTS_OBS): Add 'environ-selftests.o'.
5693 * charset.c (find_charset_names): Declare object 'iconv_env'.
5694 Update code to use 'iconv_env' object. Remove call to
5695 'free_environ'.
5696 * common/environ.c: Include <utility>.
5697 (make_environ): Delete function.
5698 (free_environ): Delete function.
5699 (gdb_environ::clear): New function.
5700 (gdb_environ::operator=): New function.
5701 (gdb_environ::get): Likewise.
5702 (environ_vector): Delete function.
5703 (set_in_environ): Delete function.
5704 (gdb_environ::set): New function.
5705 (unset_in_environ): Delete function.
5706 (gdb_environ::unset): New function.
5707 (gdb_environ::envp): Likewise.
5708 * common/environ.h: Include <vector>.
5709 (struct gdb_environ): Delete; transform into...
5710 (class gdb_environ): ... this class.
5711 (free_environ): Delete prototype.
5712 (init_environ, get_in_environ, set_in_environ, unset_in_environ,
5713 environ_vector): Likewise.
5714 * infcmd.c (run_command_1): Update code to call
5715 'envp' from 'gdb_environ' class.
5716 (environment_info): Update code to call methods from 'gdb_environ'
5717 class.
5718 (unset_environment_command): Likewise.
5719 (path_info): Likewise.
5720 (path_command): Likewise.
5721 * inferior.c (inferior::~inferior): Delete call to 'free_environ'.
5722 (inferior::inferior): Initialize 'environment' using the host's
5723 information.
5724 * inferior.h: Remove forward declaration of 'struct gdb_environ'.
5725 Include "environ.h".
5726 (class inferior) <environment>: Change type from 'struct
5727 gdb_environ' to 'gdb_environ'.
5728 * mi/mi-cmd-env.c (mi_cmd_env_path): Update code to call
5729 methods from 'gdb_environ' class.
5730 * solib.c (solib_find_1): Likewise
5731 * unittests/environ-selftests.c: New file.
5732
75c554cf
YQ
57332017-06-20 Yao Qi <yao.qi@linaro.org>
5734
5735 * features/i386/i386-linux.xml: Exchange the order of including
5736 32bit-linux.xml and 32bit-sse.xml.
5737 * features/i386/i386-linux.c: Regenerated.
5738
72ddacb7
YQ
57392017-06-20 Yao Qi <yao.qi@linaro.org>
5740
5741 * target-descriptions.c (tdesc_reg): Add ctor, dtor.
5742 Delete copy ctor and assignment operator.
5743 (tdesc_type): Likewise.
5744 (tdesc_feature): Likewise.
5745 (tdesc_free_reg): Remove.
5746 (tdesc_create_reg): Use new.
5747 (tdesc_free_type): Remove.
5748 (tdesc_create_vector): Use new.
5749 (tdesc_create_union): Likewise.
5750 (tdesc_create_flags): Likewise.
5751 (tdesc_create_enum): Likewise.
5752 (tdesc_free_feature): Delete.
5753 (free_target_description): Use delete.
5754
325c9fd4
JB
57552017-06-19 John Baldwin <jhb@FreeBSD.org>
5756
5757 * mips-tdep.c (print_gp_register_row): Don't error for unavailable
5758 registers.
5759
16b7a719
PA
57602017-06-19 Pedro Alves <palves@redhat.com>
5761
5762 * dwarf2read.c (write_psymtabs_to_index): Construct file_closer
5763 after gdb::unlinker.
5764
1c8e01c9
SDJ
57652017-06-19 Sergio Durigan Junior <sergiodj@redhat.com>
5766
5767 * mi/mi-cm-env.c (_initialize_mi_cmd_env): Use getenv instead of
5768 gdb_environ to access an environment variable.
5769
ffce45d2
TP
57702017-06-18 Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
5771
5772 * nat/linux-ptrace.c (linux_fork_to_function): Add cast to
5773 gdb_byte*.
5774
1d4fbac9
SM
57752017-06-17 Simon Marchi <simon.marchi@ericsson.com>
5776
5777 * nat/fork-inferior.h (trace_start_error): Add ATTRIBUTE_PRINTF.
5778
8465943a
SM
57792017-06-17 Simon Marchi <simon.marchi@ericsson.com>
5780
5781 * configure: Re-generate.
5782 * warning.m4 (build_warnings): Add -Wno-mismatched-tags.
5783
3e019bdc
SM
57842017-06-17 Simon Marchi <simon.marchi@ericsson.com>
5785
5786 * configure: Re-generate.
5787 * warning.m4: Pass -Werror to compiler when checking for
5788 supported warning flags.
5789
cf0dd6f0
SM
57902017-06-17 Simon Marchi <simon.marchi@ericsson.com>
5791
5792 * Makefile.in (COMPILE.pre): Add "-x c++".
5793
6f98355c
YQ
57942017-06-16 Alan Hayward <alan.hayward@arm.com>
5795 Pedro Alves <palves@redhat.com>
5796 Yao Qi <yao.qi@linaro.org>
5797
5798 * defs.h (RequireLongest): New.
5799 (extract_integer): Declare function template.
5800 (extract_signed_integer): Remove the declaration, but define it
5801 static inline.
5802 (extract_unsigned_integer): Likewise.
5803 (store_integer): Declare function template.
5804 (store_signed_integer): Remove the declaration, but define it
5805 static inline.
5806 (store_unsigned_integer): Likewise.
5807 * findvar.c (extract_integer): New function template.
5808 (extract_signed_integer): Remove.
5809 (extract_unsigned_integer): Remove.
5810 (extract_integer<LONGEST>, extract_integer<ULONGEST>): Explicit
5811 instantiations.
5812 (store_integer): New function template.
5813 (store_signed_integer): Remove.
5814 (store_unsigned_integer): Remove.
5815 (store_integer): Explicit instantiations.
5816 * regcache.c (regcache_raw_read_signed): Update.
5817 (regcache::raw_read): New function.
5818 (regcache::raw_read_signed): Remove.
5819 (regcache::raw_read_unsigned): Remove.
5820 (regcache_raw_read_unsigned): Update.
5821 (regcache_raw_write_unsigned): Update.
5822 (regcache::raw_write_signed): Remove.
5823 (regcache::raw_write): New function.
5824 (regcache_cooked_read_signed): Update.
5825 (regcache::raw_write_unsigned): Remove.
5826 (regcache::cooked_read_signed): Remove.
5827 (regcache_cooked_read_unsigned): Update.
5828 (regcache::cooked_read_unsigned): Remove.
5829 (regcache_cooked_write_signed): Update.
5830 (regcache_cooked_write_unsigned): Update.
5831 * regcache.h (regcache) <raw_read_signed>: Remove.
5832 <raw_write_signed, raw_read_unsigned, raw_write_unsigned>: Remove.
5833 <raw_read, raw_write>: New.
5834 <cooked_read_signed, cooked_write_signed>: Remove.
5835 <cooked_write_unsigned, cooked_read_unsigned>: Remove.
5836 <cooked_read, cooked_write>: New.
5837 * sh64-tdep.c (sh64_pseudo_register_read): Update.
5838 (sh64_pseudo_register_write): Update.
5839
a87dc45a
AK
58402017-06-16 Anton Kolesov <anton.kolesov@synopsys.com>
5841
5842 * arc-tdep.c (arc_disassembler_options): New variable.
5843 (arc_gdbarch_init): Set and use it. Use arc_delayed_print_insn instead
5844 of default_print_insn.
5845 (arc_delayed_print_insn): Set info->section when needed,
5846 use default_print_insn to retrieve a disassembler.
5847
45159d6a
SDJ
58482017-06-14 Sergio Durigan Junior <sergiodj@redhat.com>
5849
5850 PR gdb/21574
5851 * infcmd.c (_initialize_infcmd): Expand "help run" documentation
5852 to mention $SHELL and startup-with-shell.
5853
b46c4cf0
MF
58542017-06-14 Max Filippov <jcmvbkbc@gmail.com>
5855
5856 * MAINTAINERS: Move Maxim Grigoriev to the Past Maintainers.
5857
6394c606
YQ
58582017-06-14 Yao Qi <yao.qi@linaro.org>
5859
5860 * aarch64-tdep.c (aarch64_gdb_print_insn): Call
5861 default_print_insn instead of print_insn_aarch64.
5862 * arm-tdep.c (gdb_print_insn_arm): Call
5863 default_print_insn instead of print_insn_big_arm
5864 and print_insn_little_arm.
5865 * i386-tdep.c (i386_print_insn): Call default_print_insn
5866 instead of print_insn_i386.
5867 * ia64-tdep.c (ia64_print_insn): Call
5868 default_print_insn instead of print_insn_ia64.
5869 * mips-tdep.c (gdb_print_insn_mips): Call
5870 default_print_insn instead of print_insn_big_mips
5871 and print_insn_little_mips.
5872 * spu-tdep.c (gdb_print_insn_spu): Call default_print_insn
5873 instead of print_insn_spu.
5874
d5722aa2
PA
58752017-06-14 Pedro Alves <palves@redhat.com>
5876
5877 * ada-lang.c: Include "common/byte-vector.h".
5878 (ada_value_primitive_packed_val): Use gdb::byte_vector.
5879 * charset.c (wchar_iterator::iterate): Resize the vector instead
5880 of reserving it.
5881 * common/byte-vector.h: Include "common/def-vector.h".
5882 (wchar_iterator::m_out): Now a gdb::def_vector<gdb_wchar_t>.
5883 * cli/cli-dump.c: Include "common/byte-vector.h".
5884 (dump_memory_to_file, restore_binary_file): Use gdb::byte_vector.
5885 * common/byte-vector.h: New file.
5886 * common/def-vector.h: New file.
5887 * common/default-init-alloc.h: New file.
5888 * dwarf2loc.c: Include "common/byte-vector.h".
5889 (rw_pieced_value): Use gdb::byte_vector, and resize the vector
5890 instead of reserving it.
5891 * dwarf2read.c: Include "common/byte-vector.h".
5892 (data_buf::m_vec): Now a gdb::byte_vector.
5893 * gdb_regex.c: Include "common/def-vector.h".
5894 (compiled_regex::compiled_regex): Use gdb::def_vector<char>.
5895 * mi/mi-main.c: Include "common/byte-vector.h".
5896 (mi_cmd_data_read_memory): Use gdb::byte_vector.
5897 * printcmd.c: Include "common/byte-vector.h".
5898 (print_scalar_formatted): Use gdb::byte_vector.
5899 * valprint.c: Include "common/byte-vector.h".
5900 (maybe_negate_by_bytes, print_decimal_chars): Use
5901 gdb::byte_vector.
5902
01ec7a27
SM
59032017-06-13 Simon Marchi <simon.marchi@ericsson.com>
5904
5905 * darwin-nat.c: Include "nat/fork-inferior.h".
5906
848d9074
SM
59072017-06-13 Simon Marchi <simon.marchi@ericsson.com>
5908
5909 * configure.nat: Factor out Darwin bits that are not
5910 architecture-specific. Add fork-inferior.o.
5911
3b912944
SM
59122017-06-13 Simon Marchi <simon.marchi@ericsson.com>
5913
5914 * configure.nat: Factor out AIX bits that are not
5915 architecture-specific. Add fork-inferior.o.
5916
55acdf22
AA
59172017-06-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
5918
5919 * dwarf2loc.c (rw_pieced_value): New. Merge logic from...
5920 (read_pieced_value, write_pieced_value): ...here. Reduce to
5921 wrappers that just call rw_pieced_value.
5922
f65e2044
AA
59232017-06-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
5924
5925 * dwarf2loc.c (write_pieced_value): When writing the data for a
5926 memory piece, use write_memory_with_notification instead of
5927 write_memory.
5928
23f945bf
AA
59292017-06-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
5930
5931 * valops.c (read_value_memory): Change embedded_offset to
5932 represent a bit offset instead of a byte offset.
5933 * value.h (read_value_memory): Adjust comment.
5934
f236533e
AA
59352017-06-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
5936
5937 * dwarf2loc.c (read_pieced_value): Remove unnecessary variables
5938 dest_offset_bits and source_offset_bits.
5939 (write_pieced_value): Likewise.
5940
65d84b76
AA
59412017-06-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
5942
5943 * dwarf2loc.c (read_pieced_value): Respect the piece offset, as
5944 given by DW_OP_bit_piece.
5945 (write_pieced_value): Likewise.
5946
242d31ab
AA
59472017-06-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
5948
5949 * dwarf2loc.c (read_pieced_value): Move the buffer allocation and
5950 some other preparations to the places where sufficient information
5951 is available.
5952 (write_pieced_value): Likewise.
5953
03c8af18
AA
59542017-06-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
5955
5956 * dwarf2loc.c (bits_to_bytes): New function.
5957 (read_pieced_value): Fix offset calculations for register pieces
5958 on big-endian targets.
5959 (write_pieced_value): Likewise.
5960
840989c1
AA
59612017-06-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
5962
5963 * dwarf2loc.c (read_pieced_value): Remove buffer_size variable.
5964 (write_pieced_value): Likewise.
5965
359b19bb
AA
59662017-06-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
5967
5968 * dwarf2loc.c (write_pieced_value): When writing to a bit-field,
5969 transfer the source value's least significant bits, instead of its
5970 lowest-addressed ones. Rename type_len to max_offset.
5971 (read_pieced_value): Mirror above changes to write_pieced_value as
5972 applicable.
5973
07c9ca3b
AA
59742017-06-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
5975
5976 * dwarf2loc.c (write_pieced_value): In DWARF_VALUE_MEMORY,
5977 truncate full bytes from dest_offset_bits before using it as an
5978 offset into the buffer.
5979
f1cc9874
AA
59802017-06-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
5981
5982 * dwarf2loc.c (write_pieced_value): Include transfer size in
5983 byte-wise check.
5984
cdaac320
AA
59852017-06-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
5986
5987 * dwarf2loc.c (write_pieced_value): Fix copy/paste error in the
5988 calculation of this_size.
5989
af547a96
AA
59902017-06-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
5991
5992 * dwarf2loc.c (read_pieced_value): Respect parent value's offset
5993 when targeting a bit-field.
5994 (write_pieced_value): Likewise.
5995
ddd7882a
AA
59962017-06-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
5997
5998 * dwarf2loc.c (struct piece_closure) <addr_size>: Remove field.
5999 (allocate_piece_closure): Drop addr_size parameter.
6000 (dwarf2_evaluate_loc_desc_full): Adjust call to
6001 allocate_piece_closure.
6002
e9352324
AA
60032017-06-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
6004
6005 PR gdb/21226
6006 * dwarf2loc.c (read_pieced_value): Anchor stack value pieces at
6007 the LSB end, independent of endianness.
6008
d5d1163e
AA
60092017-06-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
6010
6011 * dwarf2loc.c (write_pieced_value): Fix order of calculations for
6012 size capping.
6013
032bb6ea
YQ
60142017-06-13 Yao Qi <yao.qi@linaro.org>
6015
6016 * mips-linux-nat.c: Move include features/mips*-linux.c to
6017 mips-linux-tdep.c.
6018 (_initialize_mips_linux_nat): Move initialize_tdesc_mips* calls
6019 to mips-linux-tdep.c.
6020 * mips-linux-tdep.c: Include features/mips*-linux.c
6021 (_initialize_mips_linux_tdep): Call initialize_tdesc_mips*
6022 functions.
6023 * mips-linux-tdep.h (tdesc_mips_linux): Declare.
6024 (tdesc_mips_dsp_linux, tdesc_mips64_linux): Declare.
6025 (tdesc_mips64_dsp_linux): Declare.
6026
f12f6bad
TT
60272017-06-12 Tom Tromey <tom@tromey.com>
6028
6029 * valprint.h (val_print_type_code_int): Remove.
6030 * valprint.c (generic_val_print_int): Always call
6031 val_print_scalar_formatted.
6032 (val_print_type_code_int): Remove.
6033 * printcmd.c (print_scalar_formatted): Handle options->format==0.
6034 * f-valprint.c (f_val_print): Use val_print_scalar_formatted.
6035 * c-valprint.c (c_val_print_int): Use val_print_scalar_formatted.
6036 * ada-valprint.c (ada_val_print_num): Use
6037 val_print_scalar_formatted.
6038
d9109c80
TT
60392017-06-12 Tom Tromey <tom@tromey.com>
6040
6041 * printcmd.c (print_scalar_formatted): Unify the two switches.
6042 Don't convert scalars to LONGEST.
6043
4ac0cb1c
TT
60442017-06-12 Tom Tromey <tom@tromey.com>
6045
6046 PR exp/16225:
6047 * valprint.h (print_decimal_chars): Update.
6048 * valprint.c (maybe_negate_by_bytes): New function.
6049 (print_decimal_chars): Add "is_signed" argument.
6050 * printcmd.c (print_scalar_formatted): Update.
6051
30a25466
TT
60522017-06-12 Tom Tromey <tom@tromey.com>
6053
6054 PR exp/16225:
6055 * valprint.h (print_binary_chars, print_hex_chars): Update.
6056 * valprint.c (val_print_type_code_int): Update.
6057 (print_binary_chars): Add "zero_pad" argument.
6058 (emit_octal_digit): New function.
6059 (print_octal_chars): Don't zero-pad.
6060 (print_decimal_chars): Likewise.
6061 (print_hex_chars): Add "zero_pad" argument.
6062 * sh64-tdep.c (sh64_do_fp_register): Update.
6063 * regcache.c (regcache::dump): Update.
6064 * printcmd.c (print_scalar_formatted): Update.
6065 * infcmd.c (default_print_one_register_info): Update.
6066
b3464d03
PA
60672017-06-12 Pedro Alves <palves@redhat.com>
6068 Alan Hayward <alan.hayward@arm.com>
6069
6070 * mips-tdep.c (MAX_MIPS_ABI_REGSIZE): New.
6071 (mips_eabi_push_dummy_call): Rename local 'regsize' to
6072 'abi_regsize'. Rename local array 'valbuf' to 'ref_valbuf', and
6073 use MAX_MIPS_ABI_REGSIZE instead of MAX_REGISTER_SIZE to size it.
6074 Assert that abi_regsize bytes fit in 'ref_valbuf'.
6075
4b76cda9
PA
60762017-06-12 Pedro Alves <palves@redhat.com>
6077
6078 * dwarf2read.c (mapped_symtab::data): Now a vector of
6079 symtab_index_entry instead of vector of
6080 std::unique_ptr<symtab_index_entry>. All users adjusted to check
6081 whether an element's name is NULL instead of checking whether the
6082 element itself is NULL.
6083 (find_slot): Change return type. Adjust.
6084 (hash_expand, , add_index_entry, uniquify_cu_indices)
6085 (write_hash_table): Adjust.
6086
e8f8bcb3
PA
60872017-06-12 Pedro Alves <palves@redhat.com>
6088
6089 * dwarf2read.c (recursively_count_psymbols): New function.
6090 (write_psymtabs_to_index): Call it to compute number of psyms and
6091 pass estimate size of psyms_seen to unordered_set's ctor.
6092
70a1152b
PA
60932017-06-12 Pedro Alves <palves@redhat.com>
6094
6095 * dwarf2read.c (write_hash_table): Check if key already exists
6096 before emplacing.
6097
c2f134ac
PA
60982017-06-12 Pedro Alves <palves@redhat.com>
6099
6100 * dwarf2read.c (data_buf::append_space): Rename to...
6101 (data_buf::grow): ... this, and make private. Adjust all callers.
6102 (data_buf::append_uint): New method.
6103 (add_address_entry, write_one_signatured_type)
6104 (write_psymtabs_to_index): Use it.
6105
a81e6d4d
PA
61062017-06-12 Pedro Alves <palves@redhat.com>
6107
6108 * dwarf2read.c (file_write(FILE *, const void *, size_t)): Delete.
6109 (file_write (FILE *, const std::vector<Elem>&)): Delete.
6110 (data_buf::file_write): Call ::fwrite directly.
6111
6fd931f2
PA
61122017-06-12 Pedro Alves <palves@redhat.com>
6113
6114 * dwarf2read.c (uniquify_cu_indices): Use std::unique and
6115 std::vector::erase.
6116
bc8f2430
JK
61172017-06-12 Jan Kratochvil <jan.kratochvil@redhat.com>
6118
6119 Code cleanup: C++ify .gdb_index producer.
6120 * dwarf2read.c: Include <unordered_set> and <unordered_map>.
6121 (MAYBE_SWAP) [WORDS_BIGENDIAN]: Cast to offset_type.
6122 (struct strtab_entry, hash_strtab_entry, eq_strtab_entry)
6123 (create_strtab, add_string): Remove.
6124 (file_write, data_buf): New.
6125 (struct symtab_index_entry): Use std::vector for cu_indices.
6126 (struct mapped_symtab): Use std::vector for data.
6127 (hash_symtab_entry, eq_symtab_entry, delete_symtab_entry)
6128 (create_symbol_hash_table, create_mapped_symtab, cleanup_mapped_symtab):
6129 Remove.
6130 (find_slot): Change return type. Update it to the new data structures.
6131 (hash_expand, add_index_entry): Update it to the new data structures.
6132 (offset_type_compare): Remove.
6133 (uniquify_cu_indices): Update it to the new data structures.
6134 (c_str_view, c_str_view_hasher, vector_hasher): New.
6135 (add_indices_to_cpool): Remove.
6136 (write_hash_table): Update it to the new data structures.
6137 (struct psymtab_cu_index_map, hash_psymtab_cu_index)
6138 (eq_psymtab_cu_index): Remove.
6139 (psym_index_map): New typedef.
6140 (struct addrmap_index_data): Change addr_obstack pointer to data_buf
6141 reference and std::unordered_map for cu_index_htab.
6142 (add_address_entry, add_address_entry_worker, write_address_map)
6143 (write_psymbols): Update it to the new data structures.
6144 (write_obstack): Remove.
6145 (struct signatured_type_index_data): Change types_list to a data_buf
6146 reference and psyms_seen to a std::unordered_set reference.
6147 (write_one_signatured_type, recursively_write_psymbols)
6148 (write_psymtabs_to_index): Update it to the new data structures.
6149
c4dcb155
SM
61502017-06-11 Simon Marchi <simon.marchi@ericsson.com>
6151
6152 * NEWS (Changes since GDB 8.0): Announce {set,show} debug
6153 separate-debug-file commands.
6154 * symfile.h (separate_debug_file_debug): New global.
6155 * symfile.c (separate_debug_file_debug): New global.
6156 (separate_debug_file_exists, find_separate_debug_file): Add
6157 debug output.
6158 (_initialize_symfile): Add "set debug separate-debug-file"
6159 command.
6160 * build-id.c (build_id_to_debug_bfd,
6161 find_separate_debug_file_by_buildid): Add debug output.
6162
6d45d4b4
SM
61632017-06-10 Simon Marchi <simon.marchi@polymtl.ca>
6164
6165 * gdbarch.sh (displaced_step_free_closure): Remove.
6166 * gdbarch.h, gdbarch.c: Re-generate.
6167 * aarch64-linux-tdep.c (aarch64_linux_init_abi): Don't set
6168 displaced_step_free_closure.
6169 * amd64-linux-tdep.c (amd64_linux_init_abi_common): Likewise.
6170 * arm-linux-tdep.c (arm_linux_init_abi): Likewise.
6171 * i386-linux-tdep.c (i386_linux_init_abi): Likewise.
6172 * rs6000-aix-tdep.c (rs6000_aix_init_osabi): Likewise.
6173 * rs6000-tdep.c (rs6000_gdbarch_init): Likewise.
6174 * s390-linux-tdep.c (s390_gdbarch_init): Likewise.
6175 * arch-utils.h (simple_displaced_step_free_closure): Remove.
6176 * arch-utils.c (simple_displaced_step_free_closure): Remove.
6177 * infrun.c (displaced_step_clear): Call xfree instead of
6178 gdbarch_displaced_step_free_closure.
6179
2f91880f
SDJ
61802017-06-08 Sergio Durigan Junior <sergiodj@redhat.com>
6181
6182 * common/common-utils.c (stringify_argv): Check for "arg[0] !=
6183 NULL".
6184
b8b6e72f
AH
61852017-06-08 Alan Hayward <alan.hayward@arm.com>
6186
6187 * mn10300-tdep.c (MN10300_MAX_REGISTER_SIZE): Add.
6188 (mn10300_extract_return_value): Use MN10300_MAX_REGISTER_SIZE.
6189 (mn10300_push_dummy_call): Likewise.
6190
5369082e
AH
61912017-06-08 Alan Hayward <alan.hayward@arm.com>
6192
6193 * mi/mi-main.c (register_changed_p): Use value_contents_eq.
6194
ff4ca5ac
AH
61952017-06-08 Alan Hayward <alan.hayward@arm.com>
6196
6197 * mi/mi-main.c (register_changed_p): Use cooked_read_value.
6198
aefd8b33
SDJ
61992017-06-07 Sergio Durigan Junior <sergiodj@redhat.com>
6200
6201 * NEWS (Changes since GDB 8.0): Announce that GDBserver is now
6202 able to start inferiors using a shell.
6203 (New remote packets): Announce new packet "QStartupWithShell".
6204 * remote.c: Add PACKET_QStartupWithShell.
6205 (extended_remote_create_inferior): Handle new
6206 PACKET_QStartupWithShell.
6207 (remote_protocol_features) <QStartupWithShell>: New entry for
6208 PACKET_QStartupWithShell.
6209 (_initialize_remote): Call "add_packet_config_cmd" for
6210 QStartupShell.
6211
2090129c
SDJ
62122017-06-07 Sergio Durigan Junior <sergiodj@redhat.com>
6213 Pedro Alves <palves@redhat.com>
6214
6215 * Makefile.in (HFILES_NO_SRCDIR): Add "common/common-inferior.h"
6216 and "nat/fork-inferior.h".
6217 * common/common-inferior.h: New file, with contents from
6218 "gdb/inferior.h".
6219 * commom/common-utils.c: Include "common-utils.h".
6220 (stringify_argv): New function.
6221 * common/common-utils.h (stringify_argv): New prototype.
6222 * configure.nat: Add "fork-inferior.o" as a dependency for
6223 "*linux*", "fbsd*" and "nbsd*" hosts.
6224 * corefile.c (get_exec_file): Update comment.
6225 * darwin-nat.c (darwin_ptrace_him): Call "gdb_startup_inferior"
6226 instead of "startup_inferior".
6227 (darwin_create_inferior): Call "add_thread_silent" after
6228 "fork_inferior".
6229 * fork-child.c: Cleanup unnecessary includes.
6230 (SHELL_FILE): Move to "common/common-fork-child.c".
6231 (environ): Likewise.
6232 (exec_wrapper): Initialize.
6233 (get_exec_wrapper): New function.
6234 (breakup_args): Move to "common/common-fork-child.c"; rename to
6235 "breakup_args_for_exec".
6236 (escape_bang_in_quoted_argument): Move to
6237 "common/common-fork-child.c".
6238 (saved_ui): New variable.
6239 (prefork_hook): New function.
6240 (postfork_hook): Likewise.
6241 (postfork_child_hook): Likewise.
6242 (gdb_startup_inferior): Likewise.
6243 (fork_inferior): Move to "common/common-fork-child.c". Update
6244 function to support gdbserver.
6245 (startup_inferior): Likewise.
6246 * gdbcore.h (get_exec_file): Remove declaration.
6247 * gnu-nat.c (gnu_create_inferior): Call "gdb_startup_inferior"
6248 instead of "startup_inferior". Call "add_thread_silent" after
6249 "fork_inferior".
6250 * inf-ptrace.c: Include "nat/fork-inferior.h" and "utils.h".
6251 (inf_ptrace_create_inferior): Call "gdb_startup_inferior"
6252 instead of "startup_inferior". Call "add_thread_silent" after
6253 "fork_inferior".
6254 * inferior.h: Include "common-inferior.h".
6255 (trace_start_error): Move to "common/common-utils.h".
6256 (trace_start_error_with_name): Likewise.
6257 (fork_inferior): Move prototype to "nat/fork-inferior.h".
6258 (startup_inferior): Likewise.
6259 (gdb_startup_inferior): New prototype.
6260 * nat/fork-inferior.c: New file, with contents from "fork-child.c".
6261 * nat/fork-inferior.h: New file.
6262 * procfs.c (procfs_init_inferior): Call "gdb_startup_inferior"
6263 instead of "startup_inferior". Call "add_thread_silent" after
6264 "fork_inferior".
6265 * target.h (target_terminal_init): Move prototype to
6266 "target/target.h".
6267 (target_terminal_inferior): Likewise.
6268 (target_terminal_ours): Likewise.
6269 * target/target.h (target_terminal_init): New prototype, moved
6270 from "target.h".
6271 (target_terminal_inferior): Likewise.
6272 (target_terminal_ours): Likewise.
6273 * utils.c (gdb_flush_out_err): New function.
6274
043a4934
SDJ
62752017-06-07 Sergio Durigan Junior <sergiodj@redhat.com>
6276
6277 * Makefile.in (HFILES_NO_SRCDIR): Add "common/common-gdbthread.h".
6278 * common/common-gdbthread.h: New file, with parts from
6279 "gdb/gdbthread.h".
6280 * gdbthread.h: Include "common-gdbthread.h".
6281 (switch_to_thread): Moved to "common/common-gdbthread.h".
6282
15652511
SDJ
62832017-06-07 Sergio Durigan Junior <sergiodj@redhat.com>
6284
6285 * Makefile.in (SFILES): Add "common/job-control.c".
6286 (HFILES_NO_SRCDIR): Add "common/job-control.h".
6287 (COMMON_OBS): Add "job-control.o".
6288 * common/job-control.c: New file, with contents from
6289 "gdb/inflow.c".
6290 * common/job-control.h: New file, with contents from "terminal.h".
6291 * fork-child.c: Include "job-control.h".
6292 * inflow.c: Include "job-control.h".
6293 (gdb_setpgid): Move to "common/common-inflow.c".
6294 (_initialize_inflow): Move setting of "job_control" to
6295 "handle_job_control".
6296 * terminal.h (job_control): Moved to "common/common-terminal.h".
6297 (gdb_setpgid): Likewise.
6298 * top.c: Include "job_control.h".
6299 * utils.c: Likewise.
6300 (job_control): Moved to "job-control.c".
6301
2d7cc5c7
PA
63022017-06-07 Pedro Alves <palves@redhat.com>
6303
6304 * Makefile.in (SFILES): Add gdb_regex.c.
6305 (COMMON_OBS): Add gdb_regex.o.
6306 * ada-lang.c (ada_add_standard_exceptions)
6307 (ada_add_exceptions_from_frame, name_matches_regex)
6308 (ada_add_global_exceptions, ada_exceptions_list_1): Change regex
6309 parameter type to compiled_regex. Adjust.
6310 (ada_exceptions_list): Use compiled_regex.
6311 * break-catch-throw.c (exception_catchpoint::pattern): Now a
6312 std::unique_ptr<compiled_regex>.
6313 (exception_catchpoint::~exception_catchpoint): Remove regfree
6314 call.
6315 (check_status_exception_catchpoint): Adjust to use compiled_regex.
6316 (handle_gnu_v3_exceptions): Adjust to use compiled_regex.
6317 * breakpoint.c (solib_catchpoint::compiled): Now a
6318 std::unique_ptr<compiled_regex>.
6319 (solib_catchpoint::~solib_catchpoint): Remove regfree call.
6320 (check_status_catch_solib): Adjust to use compiled_regex.
6321 (add_solib_catchpoint): Adjust to use compiled_regex.
6322 * cli/cli-cmds.c (apropos_command): Use compiled_regex.
6323 * cli/cli-decode.c (apropos_cmd): Change regex parameter to
6324 compiled_regex reference. Adjust to use it.
6325 * cli/cli-decode.h: Remove struct re_pattern_buffer forward
6326 declaration. Include "gdb_regex.h".
6327 (apropos_cmd): Change regex parameter to compiled_regex reference.
6328 * gdb_regex.c: New file.
6329 * gdb_regex.h (make_regfree_cleanup, get_regcomp_error): Delete
6330 declarations.
6331 (class compiled_regex): New.
6332 * linux-tdep.c: Include "common/gdb_optional.h".
6333 (struct mapping_regexes): New, factored out from
6334 mapping_is_anonymous_p, and adjusted to use compiled_regex.
6335 (mapping_is_anonymous_p): Use mapping_regexes wrapped in a
6336 gdb::optional and remove cleanups. Adjust to compiled_regex.
6337 * probe.c: Include "common/gdb_optional.h".
6338 (collect_probes): Use compiled_regex and gdb::optional and remove
6339 cleanups.
6340 * skip.c: Include "common/gdb_optional.h".
6341 (skiplist_entry::compiled_function_regexp): Now a
6342 gdb::optional<compiled_regex>.
6343 (skiplist_entry::compiled_function_regexp_is_valid): Delete field.
6344 (free_skiplist_entry): Remove regfree call.
6345 (compile_skip_regexp, skip_rfunction_p): Adjust to use
6346 compiled_regex and gdb::optional.
6347 * symtab.c: Include "common/gdb_optional.h".
6348 (search_symbols): Use compiled_regex and gdb::optional.
6349 * utils.c (do_regfree_cleanup, make_regfree_cleanup)
6350 (get_regcomp_error, compile_rx_or_error): Delete. Some bits moved
6351 to gdb_regex.c.
6352
50d6adef
AH
63532017-06-07 Alan Hayward <alan.hayward@arm.com>
6354
6355 * regcache.c (regcache::save): Avoid buffer use.
6356 (regcache::dump): Likewise.
6357
4a8a33c8
AH
63582017-06-07 Alan Hayward <alan.hayward@arm.com>
6359
6360 * sh-tdep.c (sh_pseudo_register_read): Remove
6361 MAX_REGISTER_SIZE.
6362 (sh_pseudo_register_write): Likewise.
6363 * sh64-tdep.c (sh64_pseudo_register_read): Likewise.
6364 (sh64_pseudo_register_write): Likewise
6365
d1be909e
AH
63662017-06-07 Alan Hayward <alan.hayward@arm.com>
6367
6368 * aarch64-tdep.c (aarch64_store_return_value): Use
6369 V_REGISTER_SIZE.
6370 (aarch64_pseudo_read_value): Likewise.
6371 (aarch64_pseudo_write): Likewise.
6372
f4a65042
YQ
63732017-06-06 Yao Qi <yao.qi@linaro.org>
6374
6375 * regformats/regdef.h (set_register_cache): Remove the
6376 declaration.
6377
9f7fb0aa
AH
63782017-06-06 Alan Hayward <alan.hayward@arm.com>
6379
6380 * frame.c (frame_unwind_register_signed): Use
6381 frame_unwind_register_value.
6382
e1e01040
PA
63832017-06-06 Pedro Alves <palves@redhat.com>
6384
6385 PR breakpoints/21553
6386 * breakpoint.c (create_breakpoints_sal_default)
6387 (init_breakpoint_sal, create_breakpoint_sal): Use
6388 gdb::unique_xmalloc_ptr for string parameters.
6389 (create_breakpoint): Constify 'extra_string' and 'cond_string'
6390 parameters. Replace cleanups with gdb::unique_xmalloc_ptr.
6391 (base_breakpoint_create_breakpoints_sal)
6392 (bkpt_create_breakpoints_sal, tracepoint_create_breakpoints_sal)
6393 (strace_marker_create_breakpoints_sal)
6394 (create_breakpoints_sal_default): Use gdb::unique_xmalloc_ptr for
6395 string parameters.
6396 * breakpoint.h (breakpoint_ops::create_breakpoints_sal): Use
6397 gdb::unique_xmalloc_ptr for string parameters.
6398 (create_breakpoint): Constify 'extra_string' and 'cond_string'
6399 parameters.
6400
fbe654c8
AH
64012017-06-06 Alan Hayward <alan.hayward@arm.com>
6402
6403 * alpha-tdep.c (alpha_register_to_value): Use
6404 get_frame_register_value.
6405 (alpha_value_to_register): Use ALPHA_REGISTER_SIZE.
6406
ae0d01d6
AH
64072017-06-06 Alan Hayward <alan.hayward@arm.com>
6408
6409 * ia64-tdep.c (IA64_MAX_FP_REGISTER_SIZE) Add.
6410 (ia64_register_to_value): Use IA64_MAX_FP_REGISTER_SIZE.
6411 (ia64_value_to_register): Likewise.
6412 (ia64_extract_return_value): Likewise.
6413 (ia64_store_return_value): Likewise.
6414 (ia64_push_dummy_call): Likewise.
6415
49cf576c
JB
64162017-06-04 Joel Brobecker <brobecker@adacore.com>
6417
6418 GDB 8.0 released.
6419
26b6a6ab
SM
64202017-06-03 Simon Marchi <simon.marchi@ericsson.com>
6421
6422 * x86-linux-nat.c (struct arch_lwp_info): Remove.
6423
22827c51
SM
64242017-06-03 Simon Marchi <simon.marchi@polymtl.ca>
6425
6426 * linux-nat.c (linux_nat_post_attach_wait): Remove FIRST
6427 parameter.
6428 (linux_nat_attach): Adjust call to linux_nat_post_attach_wait.
6429
0e05cf3a
SM
64302017-06-02 Simon Marchi <simon.marchi@ericsson.com>
6431
6432 * event-loop.c (poll_timers): Unallocate timer using delete
6433 instead of xfree.
6434
c1fc2657
SM
64352017-06-02 Simon Marchi <simon.marchi@polymtl.ca>
6436
6437 * breakpoint.h (struct breakpoint_ops) <dtor>: Remove.
6438 (struct breakpoint) <~breakpoint>: New.
6439 (struct watchpoint): Inherit from breakpoint.
6440 <~watchpoint>: New.
6441 <base>: Remove.
6442 (struct tracepoint): Inherit from breakpoint.
6443 <base>: Remove.
6444 * breakpoint.c (longjmp_breakpoint_ops): Remove.
6445 (struct longjmp_breakpoint): Inherit from breakpoint.
6446 <~longjmp_breakpoint>: New.
6447 <base>: Remove.
6448 (new_breakpoint_from_type): Remove casts.
6449 (watchpoint_in_thread_scope): Remove reference to base field.
6450 (watchpoint_del_at_next_stop): Likewise.
6451 (update_watchpoint): Likewise.
6452 (watchpoint_check): Likewise.
6453 (bpstat_check_watchpoint): Likewise.
6454 (set_longjmp_breakpoint): Likewise.
6455 (struct fork_catchpoint): Inherit from breakpoint.
6456 <base>: Remove.
6457 (struct solib_catchpoint): Inherit from breakpoint.
6458 <~solib_catchpoint>: New.
6459 <base>: Remove.
6460 (dtor_catch_solib): Change to ...
6461 (solib_catchpoint::~solib_catchpoint): ... this.
6462 (breakpoint_hit_catch_solib): Remove reference to base field.
6463 (add_solib_catchpoint): Likewise.
6464 (create_fork_vfork_event_catchpoint): Likewise.
6465 (struct exec_catchpoint): Inherit from breakpoint.
6466 <~exec_catchpoint>: New.
6467 <base>: Remove.
6468 (dtor_catch_exec): Change to ...
6469 (exec_catchpoint::~exec_catchpoint): ... this.
6470 (dtor_watchpoint): Change to ...
6471 (watchpoint::~watchpoint): ... this.
6472 (watch_command_1): Remove reference to base field.
6473 (catch_exec_command_1): Likewise.
6474 (base_breakpoint_dtor): Change to ...
6475 (breakpoint::~breakpoint): ... this.
6476 (base_breakpoint_ops): Remove dtor field value.
6477 (longjmp_bkpt_dtor): Change to ...
6478 (longjmp_breakpoint::~longjmp_breakpoint): ... this.
6479 (strace_marker_create_breakpoints_sal): Remove reference to base
6480 field.
6481 (delete_breakpoint): Don't manually call breakpoint destructor.
6482 (create_tracepoint_from_upload): Remove reference to base field.
6483 (trace_pass_set_count): Likewise.
6484 (initialize_breakpoint_ops): Don't initialize
6485 momentary_breakpoint_ops, don't set dtors.
6486 * ada-lang.c (struct ada_catchpoint): Inherit from breakpoint.
6487 <~ada_catchpoint>: New.
6488 <base>: Remove.
6489 (create_excep_cond_exprs): Remove reference to base field.
6490 (dtor_exception): Change to ...
6491 (ada_catchpoint::~ada_catchpoint): ... this.
6492 (dtor_catch_exception): Remove.
6493 (dtor_catch_exception_unhandled): Remove.
6494 (dtor_catch_assert): Remove.
6495 (create_ada_exception_catchpoint): Remove reference to base
6496 field.
6497 (initialize_ada_catchpoint_ops): Don't set dtors.
6498 * break-catch-sig.c (struct signal_catchpoint): Inherit from
6499 breakpoint.
6500 <~signal_catchpoint>: New.
6501 <base>: Remove.
6502 (signal_catchpoint_dtor): Change to ...
6503 (signal_catchpoint::~signal_catchpoint): ... this.
6504 (create_signal_catchpoint): Remove reference to base field.
6505 (initialize_signal_catchpoint_ops): Don't set dtor.
6506 * break-catch-syscall.c (struct syscall_catchpoint): Inherit
6507 from breakpoint.
6508 <~syscall_catchpoint>: New.
6509 <base>: Remove.
6510 (dtor_catch_syscall): Change to ...
6511 (syscall_catchpoint::~syscall_catchpoint): ... this.
6512 (create_syscall_event_catchpoint): Remove reference to base
6513 field.
6514 (initialize_syscall_catchpoint_ops): Don't set dtor.
6515 * break-catch-throw.c (struct exception_catchpoint): Inherit
6516 from breakpoint.
6517 <~exception_catchpoint>: New.
6518 <base>: Remove.
6519 (dtor_exception_catchpoint): Change to ...
6520 (exception_catchpoint::~exception_catchpoint): ... this.
6521 (handle_gnu_v3_exceptions): Remove reference to base field.
6522 (initialize_throw_catchpoint_ops): Don't set dtor.
6523 * ctf.c (ctf_get_traceframe_address): Remove reference to base
6524 field.
6525 * remote.c (remote_get_tracepoint_status): Likewise.
6526 * tracefile-tfile.c (tfile_get_traceframe_address): Likewise.
6527 * tracefile.c (tracefile_fetch_registers): Likewise.
6528 * tracepoint.c (actions_command): Likewise.
6529 (validate_actionline): Likewise.
6530 (tfind_1): Likewise.
6531 (get_traceframe_location): Likewise.
6532 (find_matching_tracepoint_location): Likewise.
6533 (parse_tracepoint_status): Likewise.
6534 * mi/mi-cmd-break.c (mi_cmd_break_passcount): Likewise.
6535
3b0871f4
SM
65362017-06-02 Simon Marchi <simon.marchi@polymtl.ca>
6537
6538 * breakpoint.c (struct longjmp_breakpoint): New struct.
6539 (is_tracepoint_type): Change return type to bool.
6540 (is_longjmp_type): New function.
6541 (new_breakpoint_from_type): Handle longjmp kinds of breakpoints.
6542 (set_raw_breakpoint_without_location): Use
6543 new_breakpoint_from_type.
6544 (set_raw_breakpoint): Likewise.
6545
a5e364af
SM
65462017-06-02 Simon Marchi <simon.marchi@polymtl.ca>
6547
6548 * breakpoint.c (new_breakpoint_from_type): New function.
6549 (create_breakpoint_sal): Use new_breakpoint_from_type and
6550 unique_ptr.
6551 (create_breakpoint): Likewise.
6552
ae3b3f34
SM
65532017-05-31 Simon Marchi <simon.marchi@ericsson.com>
6554
6555 * memattr.c (mem_info_command): Rename to ...
6556 (info_mem_command): ... this.
6557 (mem_enable_command): Rename to ...
6558 (enable_mem_command): ... this.
6559 (mem_disable_command): Rename to ...
6560 (disable_mem_command): ... this.
6561 (mem_delete_command): Rename to ...
6562 (delete_mem_command): ... this.
6563 (_initialize_mem): Adjust function names.
6564
13ace077
MM
65652017-05-31 Markus Metzger <markus.t.metzger@intel.com>
6566
6567 * btrace.c (handle_pt_insn_events): New.
6568 (ftrace_add_pt): Call handle_pt_insn_events. Rename ERRCODE into
6569 STATUS. Split into this and ...
6570 (handle_pt_insn_event_flags): ... this.
6571
c56ccc05
MM
65722017-05-31 Markus Metzger <markus.t.metzger@intel.com>
6573
6574 * configure.ac: Check for pt_insn_event, struct pt_insn.enabled,
6575 and struct pt_insn.resynced.
6576 * configure: Regenerated.
6577 * config.in: Regenerated.
6578
08c3f6d2
TW
65792017-05-30 Tim Wiederhake <tim.wiederhake@intel.com>
6580
6581 * btrace.c (ftrace_find_call_by_number): New function.
6582 (ftrace_new_function): Store objects, not pointers.
6583 (ftrace_find_call_by_number, ftrace_new_return, ftrace_new_switch,
6584 ftrace_new_gap, ftrace_update_function,
6585 ftrace_compute_global_level_offset, btrace_stich_bts, btrace_clear,
6586 btrace_insn_get, btrace_insn_get_error, btrace_insn_end,
6587 btrace_insn_next, btrace_insn_prev, ptrace_find_insn_by_number,
6588 btrace_ends_with_single_insn, btrace_call_get): Account for
6589 btrace_thread_info::functions now storing objects.
6590 * btrace.h (struct btrace_thread_info): Add constructor.
6591 (struct btrace_thread_info) <functions>: Make std::vector.
6592 (struct btrace_thread_info) <prev, next, up, insn, errcode, flags):
6593 Initialize with default values.
6594 * record-btrace.c (record_btrace_frame_sniffer): Account for
6595 btrace_thread_info::functions now storing objects.
6596
8ffd39f2
TW
65972017-05-30 Tim Wiederhake <tim.wiederhake@intel.com>
6598
6599 * btrace.c: Remove typedef bfun_s.
6600 (ftrace_new_gap): Directly add gaps to the list of gaps.
6601 (btrace_bridge_gaps, btrace_compute_ftrace_bts, pt_btrace_insn_flags,
6602 ftrace_add_pt, btrace_compute_ftrace_pt, btrace_compute_ftrace_1,
6603 btrace_finalize_ftrace, btrace_compute_ftrace): Use std::vector
6604 instead of gdb VEC.
6605
4aeb0dfc
TW
66062017-05-30 Tim Wiederhake <tim.wiederhake@intel.com>
6607
6608 * btrace.c (ftrace_fixup_caller, ftrace_new_return, ftrace_connect_bfun,
6609 ftrace_bridge_gap): Replace references to btrace_thread_info::segment
6610 with btrace_thread_info::next_segment and
6611 btrace_thread_info::prev_segment.
6612 * btrace.h: Remove struct btrace_func_link.
6613 (struct btrace_function): Replace pair of function segment pointers
6614 with pair of indices.
6615 * python/py-record-btrace.c (btpy_call_prev_sibling,
6616 btpy_call_next_sibling): Replace references to
6617 btrace_thread_info::segment with btrace_thread_info::next_segment and
6618 btrace_thread_info::prev_segment.
6619 * record-btrace.c (record_btrace_frame_this_id): Use
6620 btrace_find_call_by_number.
6621
eb8f2b9c
TW
66222017-05-30 Tim Wiederhake <tim.wiederhake@intel.com>
6623
6624 * btrace.c (ftrace_new_function, ftrace_fixup_level,
6625 ftrace_connect_bfun, ftrace_bridge_gap, btrace_bridge_gaps,
6626 btrace_insn_next, btrace_insn_prev): Remove references to
6627 btrace_thread_info::flow.
6628 * btrace.h (struct btrace_function): Remove FLOW.
6629
42bfe59e
TW
66302017-05-30 Tim Wiederhake <tim.wiederhake@intel.com>
6631
6632 * btrace.c (ftrace_find_call_by_number): New function.
6633 (ftrace_update_caller, ftrace_new_call, ftrace_new_tailcall,
6634 ftrace_get_caller, ftrace_find_call, ftrace_new_return,
6635 ftrace_match_backtrace, ftrace_connect_bfun, ftrace_connect_backtrace,
6636 ftrace_bridge_gap, btrace_bridge_gaps): Use btrace_function::up as an
6637 index.
6638 * btrace.h (struct btrace_function): Turn UP into an index.
6639 * python/py-record-btrace.c (btpy_call_up): Use btrace_function::up
6640 as an index.
6641 * record-btrace.c (record_btrace_frame_unwind_stop_reason,
6642 record_btrace_frame_prev_register, record_btrace_frame_sniffer,
6643 record_btrace_tailcall_frame_sniffe): Use btrace_find_call_by_number.
6644
b54b03bd
TW
66452017-05-30 Tim Wiederhake <tim.wiederhake@intel.com>
6646
6647 * btrace.c (ftrace_new_function, ftrace_new_call, ftrace_new_tailcall,
6648 ftrace_new_return, ftrace_new_switch, ftrace_new_gap,
6649 ftrace_update_function, ftrace_compute_global_level_offset,
6650 btrace_compute_ftrace_bts, ftrace_add_pt, btrace_compute_ftrace_pt,
6651 btrace_stitch_bts, btrace_fetch, btrace_clear, btrace_insn_number,
6652 btrace_insn_end, btrace_is_empty): Remove references to
6653 btrace_thread_info::begin and btrace_thread_info::end.
6654 * btrace.h (struct btrace_thread_info): Remove BEGIN and END.
6655 (struct btrace_thread_info) <functions>: Adjust comment.
6656 * record-btrace.c (record_btrace_start_replaying): Remove reference to
6657 btrace_thread_info::begin.
6658
8286623c
TW
66592017-05-30 Tim Wiederhake <tim.wiederhake@intel.com>
6660
6661 * btrace.c (ftrace_new_function, ftrace_new_call, ftrace_new_tailcall,
6662 ftrace_new_return, ftrace_new_switch, ftrace_new_gap,
6663 ftrace_update_function): Remove arguments that implicitly were always
6664 BTINFO->END.
6665 (btrace_compute_ftrace_bts, ftrace_add_pt, btrace_compute_ftrace_pt):
6666 Don't pass BTINFO->END.
6667
a0f1b963
TW
66682017-05-30 Tim Wiederhake <tim.wiederhake@intel.com>
6669
6670 * btrace.c: (btrace_insn_get, btrace_insn_get_error, btrace_insn_number,
6671 btrace_insn_begin, btrace_insn_end, btrace_insn_next, btrace_insn_prev,
6672 btrace_find_insn_by_number): Replace function segment pointer with
6673 index.
6674 (btrace_insn_cmp): Simplify.
6675 * btrace.h: (struct btrace_insn_iterator) Rename index to
6676 insn_index. Replace function segment pointer with index into function
6677 segment vector.
6678 * record-btrace.c (record_btrace_call_history): Replace function
6679 segment pointer use with index.
6680 (record_btrace_frame_sniffer): Retrieve function call segment through
6681 vector.
6682 (record_btrace_set_replay): Remove defunc't safety check.
6683
f158f208
TW
66842017-05-30 Tim Wiederhake <tim.wiederhake@intel.com>
6685
6686 * btrace.c (btrace_ends_with_single_insn): New function.
6687 (btrace_call_get, btrace_call_number, btrace_call_begin,
6688 btrace_call_end, btrace_call_next, btrace_call_prev,
6689 btrace_find_call_by_number): Use index into call segment vector
6690 instead of pointer.
6691 (btrace_call_cmp): Simplify.
6692 * btrace.h (struct btrace_call_iterator): Replace function call segment
6693 pointer with index into vector.
6694 * record-btrace.c (record_btrace_call_history): Use index instead of
6695 pointer.
6696
521103fd
TW
66972017-05-30 Tim Wiederhake <tim.wiederhake@intel.com>
6698
6699 * btrace.c (btrace_insn_begin, btrace_insn_end,
6700 btrace_find_insn_by_number): Add btinfo to iterator.
6701 * btrace.h (struct btrace_insn_iterator): Add btinfo.
6702
17b89b34
TW
67032017-05-30 Tim Wiederhake <tim.wiederhake@intel.com>
6704
6705 * btrace.c (ftrace_new_function): Add btrace_thread_info to arguments
6706 and save pointers directly.
6707 (ftrace_new_call, ftrace_new_tailcall, ftrace_new_return,
6708 ftrace_new_switch, ftrace_new_gap, ftrace_update_function,
6709 ftrace_add_pt): Add btrace_thread_info to arguments. Adjust for
6710 changed signature of functions.
6711 (btrace_compute_ftrace_pt): Adjust for changed signature of functions.
6712 (btrace_fetch): Remove code that adds btrace_function pointers to
6713 vector of btrace_functions.
6714 (btrace_clear): Simplify freeing vector of btrace_functions.
6715
2b51eddc
TW
67162017-05-30 Tim Wiederhake <tim.wiederhake@intel.com>
6717
6718 * btrace.c (btrace_fetch, btrace_clear, btrace_find_insn_by_number):
6719 Replace VEC_* with std::vector functions.
6720 * btrace.h: Add include: vector. Remove typedef for DEF_VEC_P.
6721 (struct btrace_thread_info)<functions>: Change type to std::vector.
6722
db6be0d5
SM
67232017-05-30 Simon Marchi <simon.marchi@ericsson.com>
6724
6725 * NEWS (Changes in GDB 8.0): Remove extra empty line. Move
6726 "Removed targets and native configurations" up. Merge duplicate
6727 "New commands" sub-sections. Add "New options" sub-sections.
6728
b057297a
AH
67292017-05-26 Alan Hayward <alan.hayward@arm.com>
6730
6731 * defs.h (copy_integer_to_size): New declaration.
6732 * findvar.c (copy_integer_to_size): New function.
6733 (do_cint_test): New selftest function.
6734 (copy_integer_to_size_test): Likewise.
6735 (_initialize_findvar): Likewise.
6736 * mips-fbsd-tdep.c (mips_fbsd_supply_reg): Use raw_supply_integer.
6737 (mips_fbsd_collect_reg): Use raw_collect_integer.
6738 * mips-linux-tdep.c (supply_32bit_reg): Use raw_supply_integer.
6739 (mips64_fill_gregset): Use raw_collect_integer
6740 (mips64_fill_fpregset): Use raw_supply_integer.
6741 * regcache.c (regcache::raw_supply_integer): New function.
6742 (regcache::raw_collect_integer): Likewise.
6743 * regcache.h: (regcache::raw_supply_integer): New declaration.
6744 (regcache::raw_collect_integer): Likewise.
6745
b77b02a5
YQ
67462017-05-24 Yao Qi <yao.qi@linaro.org>
6747
6748 * Makefile.in (SFILES): Add gdbarch-selftests.c.
6749 (COMMON_OBS): Add gdbarch-selftests.o.
6750 * frame.c [GDB_SELF_TESTS] (create_new_frame): New function.
6751 * frame.h [GDB_SELF_TESTS] (create_new_frame): Declare.
6752 * gdbarch-selftests.c: New file.
6753 * regcache.h (regcache) <~regcache>: Mark it virtual if
6754 GDB_SELF_TEST.
6755 <raw_write>: Likewise.
6756
e521e87e
YQ
67572017-05-24 Yao Qi <yao.qi@linaro.org>
6758
6759 * regcache.c (current_regcache): Change it to
6760 regcache::current_regcache.
6761 (regcache_observer_target_changed): Update.
6762 (regcache_thread_ptid_changed): Make it a regcache static
6763 method.
6764 (regcache_thread_ptid_changed): Update.
6765 (class regcache_access): New.
6766 (current_regcache_test): Update.
6767 (_initialize_regcache): Update.
6768 * regcache.h: Include forward_list.
6769 (regcache): Declare regcache_thread_ptid_changed and declare
6770 registers_changed_ptid as friend.
6771
d8e07dda
YQ
67722017-05-24 Yao Qi <yao.qi@linaro.org>
6773
6774 * i387-tdep.c (i387_register_to_value): Use register_size
6775 instead of TYPE_LENGTH.
6776 * m68k-tdep.c (m68k_register_to_value): Likewise.
6777
8c8f9122
YQ
67782017-05-24 Yao Qi <yao.qi@linaro.org>
6779
6780 * i387-tdep.c (i387_convert_register_p): Return false if type
6781 code isn't TYPE_CODE_FLT.
6782
68fce50f
YQ
67832017-05-24 Yao Qi <yao.qi@linaro.org>
6784
6785 * alpha-tdep.c (alpha_convert_register_p): Return true if type
6786 length is 4.
6787 (alpha_register_to_value): Remove type length check.
6788 (alpha_value_to_register): Likewise.
6789
88954b49
YQ
67902017-05-24 Yao Qi <yao.qi@linaro.org>
6791
6792 * ia64-tdep.c (ia64_convert_register_p): Check type's code is
6793 TYPE_CODE_FLT.
6794
e3ec9b69
YQ
67952017-05-24 Yao Qi <yao.qi@linaro.org>
6796
6797 * m68k-tdep.c (m68k_convert_register_p): Check type's code is
6798 TYPE_CODE_FLT or not.
6799
cdd238da
YQ
68002017-05-24 Yao Qi <yao.qi@linaro.org>
6801
6802 * alpha-tdep.c (alpha_gdbarch_init): Use XCNEW instead of XNEW.
6803 * avr-tdep.c (avr_gdbarch_init): Likewise.
6804 * bfin-tdep.c (bfin_gdbarch_init): Likewise.
6805 * cris-tdep.c (cris_gdbarch_init): Likewise.
6806 * ft32-tdep.c (ft32_gdbarch_init): Likewise.
6807 * lm32-tdep.c (lm32_gdbarch_init): Likewise.
6808 * m32r-tdep.c (m32r_gdbarch_init): Likewise.
6809 * m68hc11-tdep.c (m68hc11_gdbarch_init): Likewise.
6810 * mep-tdep.c (mep_gdbarch_init): Likewise.
6811 * microblaze-tdep.c (microblaze_gdbarch_init): Likewise.
6812 * mips-tdep.c (mips_gdbarch_init): Likewise.
6813 * mn10300-tdep.c (mn10300_gdbarch_init): Likewise.
6814 * moxie-tdep.c (moxie_gdbarch_init): Likewise.
6815 * msp430-tdep.c (msp430_gdbarch_init): Likewise.
6816 * sh64-tdep.c (sh64_gdbarch_init): Likewise.
6817 * v850-tdep.c (v850_gdbarch_init): Likewise.
6818
7a3929c4
YQ
68192017-05-24 Yao Qi <yao.qi@linaro.org>
6820
6821 * selftest-arch.c (tests_with_arch): Call registers_changed
6822 and reinit_frame_cache.
6823 * selftest.c (run_self_tests): Likewise.
6824
f4985dba
YQ
68252017-05-24 Yao Qi <yao.qi@linaro.org>
6826
6827 * rs6000-tdep.c (gdb_print_insn_powerpc): Remove.
6828 (rs6000_gdbarch_init): Don't call set_gdbarch_print_insn.
6829
ab20fa4a
YQ
68302017-05-24 Yao Qi <yao.qi@linaro.org>
6831
6832 * rl78-tdep.c (rl78_gdbarch_init): Don't call
6833 set_gdbarch_print_insn.
6834
f532ab94
YQ
68352017-05-24 Yao Qi <yao.qi@linaro.org>
6836
6837 * h8300-tdep.c (h8300_gdbarch_init): Don't call
6838 set_gdbarch_print_insn.
6839
39503f82
YQ
68402017-05-24 Yao Qi <yao.qi@linaro.org>
6841
6842 * alpha-tdep.c (alpha_gdbarch_init): Don't call
6843 set_gdbarch_print_insn.
6844 * arc-tdep.c (arc_gdbarch_init): Likewise.
6845 * arch-utils.c: include dis-asm.h.
6846 (default_print_insn): New function.
6847 * arch-utils.h (default_print_insn): Declare.
6848 * avr-tdep.c (avr_gdbarch_init): Don't call set_gdbarch_print_insn.
6849 * bfin-tdep.c (bfin_gdbarch_init): Likewise.
6850 * cris-tdep.c (cris_delayed_get_disassembler): Remove.
6851 (cris_gdbarch_init): Don't call set_gdbarch_print_insn.
6852 * frv-tdep.c (frv_gdbarch_init): Likewise.
6853 * ft32-tdep.c (ft32_gdbarch_init): Likewise.
6854 * gdbarch.sh (print_insn): Use default_print_insn.
6855 * gdbarch.c: Regenerated.
6856 * hppa-tdep.c (hppa_gdbarch_init): Likewise.
6857 * iq2000-tdep.c (iq2000_gdbarch_init): Likewise.
6858 * lm32-tdep.c (lm32_gdbarch_init): Likewise.
6859 * m32c-tdep.c (m32c_gdbarch_init): Likewise.
6860 * m32r-tdep.c (m32r_gdbarch_init): Likewise.
6861 * m68hc11-tdep.c (gdb_print_insn_m68hc11): Remove.
6862 (m68hc11_gdbarch_init): Don't call set_gdbarch_print_insn.
6863 * m68k-tdep.c (m68k_gdbarch_init): Likewise.
6864 * m88k-tdep.c (m88k_gdbarch_init): Likewise.
6865 * microblaze-tdep.c (microblaze_gdbarch_init): Likewise.
6866 * mn10300-tdep.c (mn10300_gdbarch_init): Likewise.
6867 * moxie-tdep.c (moxie_gdbarch_init): Likewise.
6868 * msp430-tdep.c (msp430_gdbarch_init): Likewise.
6869 * mt-tdep.c (mt_gdbarch_init): Likewise.
6870 * nds32-tdep.c (nds32_gdbarch_init): Likewise.
6871 * nios2-tdep.c (nios2_print_insn): Remove.
6872 (nios2_gdbarch_init): Don't call set_gdbarch_print_insn.
6873 * rx-tdep.c (rx_gdbarch_init): Likewise.
6874 * s390-linux-tdep.c (s390_gdbarch_init): Likewise.
6875 * score-tdep.c (score_print_insn): Remove.
6876 (score_gdbarch_init): Don't call set_gdbarch_print_insn.
6877 * sh-tdep.c (sh_gdbarch_init): Likewise.
6878 * sh64-tdep.c (sh64_gdbarch_init): Likewise.
6879 * sparc-tdep.c (sparc32_gdbarch_init): Likewise.
6880 * tic6x-tdep.c (tic6x_print_insn): Remove.
6881 (tic6x_gdbarch_init): Don't call set_gdbarch_print_insn.
6882 * tilegx-tdep.c (tilegx_gdbarch_init): Likewise.
6883 * v850-tdep.c (v850_gdbarch_init): Likewise.
6884 * vax-tdep.c (vax_gdbarch_init): Likewise.
6885 * xstormy16-tdep.c (xstormy16_gdbarch_init): Likewise.
6886 * xtensa-tdep.c (xtensa_gdbarch_init): Likewise.
6887
f7241d4f
JB
68882017-05-23 John Baldwin <jhb@FreeBSD.org>
6889
6890 * mips-fbsd-tdep.c (MIPS_PC_REGNUM): Remove.
6891 (MIPS_FP0_REGNUM): Remove.
6892 (MIPS_FSR_REGNUM): Remove.
6893 (mips_fbsd_supply_fpregs): Use mips_regnum.
6894 (mips_fbsd_supply_gregs): Likewise.
6895 (mips_fbsd_collect_fpregs): Likewise.
6896 (mips_fbsd_collect_gregs): Likewise.
6897
d489d81d
JB
68982017-05-23 John Baldwin <jhb@FreeBSD.org>
6899
6900 * mips-fbsd-nat.c (getregs_supplies): Fix upper bound comparison.
6901 (getpfpregs_supplies): New function.
6902 (mips_fbsd_fetch_inferior_registers): Remove early exit and use
6903 getfpregs_supplies.
6904 (mips_fbsd_store_inferior_registers): Likewise.
6905
e11b3cdc
PA
69062017-05-22 Pedro Alves <palves@redhat.com>
6907
6908 * MAINTAINERS (Host/Native): Add John Baldwin as FreeBSD
6909 maintainer.
6910
0f068fb5
AH
69112017-05-22 Alan Hayward <alan.hayward@arm.com>
6912
6913 * ppc-linux-nat.c (fetch_register): Use PPC_MAX_REGISTER_SIZE.
6914 (store_register): Likewise.
6915 * ppc-sysv-tdep.c (ppc_sysv_abi_push_dummy_call): Likewise.
6916 (get_decimal_float_return_value): Likewise.
6917 (do_ppc_sysv_return_value): Likewise.
6918 (ppc64_sysv_abi_push_integer): Likewise.
6919 (ppc64_sysv_abi_push_freg): Likewise.
6920 (ppc64_sysv_abi_return_value_base): Likewise.
6921 (ppc64_sysv_abi_return_value): Likewise.
6922 * rs6000-aix-tdep.c (rs6000_push_dummy_call): Likewise.
6923 * rs6000-lynx178-tdep.c (rs6000_lynx178_push_dummy_call): Likewise.
6924 * rs6000-nat.c: Likewise.
6925 * rs6000-tdep.c (rs6000_register_to_value): Likewise.
6926 (rs6000_value_to_register): Likewise.
6927 * ppc-tdep.h (PPC_MAX_REGISTER_SIZE): Add.
6928
e6cf65f2
TT
69292017-05-21 Tom Tromey <tom@tromey.com>
6930
6931 PR rust/21466:
6932 * rust-lang.c (rust_print_type) <TYPE_CODE_ARRAY>: Print unsized
6933 arrays as "[T]", not "[T; ]".
6934
43cc5389
TT
69352017-05-19 Tom Tromey <tom@tromey.com>
6936
6937 PR rust/21484:
6938 * rust-lang.c (exp_descriptor_rust): New function.
6939 (rust_language_defn): Use it.
6940 * p-lang.c (pascal_language_defn): Update.
6941 * opencl-lang.c (opencl_language_defn): Update.
6942 * objc-lang.c (objc_language_defn): Update.
6943 * m2-lang.c (m2_language_defn): Update.
6944 * language.h (struct language_defn)
6945 <la_watch_location_expression>: New member.
6946 * language.c (unknown_language_defn, auto_language_defn)
6947 (local_language_defn): Update.
6948 * go-lang.c (go_language_defn): Update.
6949 * f-lang.c (f_language_defn): Update.
6950 * d-lang.c (d_language_defn): Update.
6951 * c-lang.h (c_watch_location_expression): Declare.
6952 * c-lang.c (c_watch_location_expression): New function.
6953 (c_language_defn, cplus_language_defn, asm_language_defn)
6954 (minimal_language_defn): Use it.
6955 * breakpoint.c (watch_command_1): Call
6956 la_watch_location_expression.
6957 * ada-lang.c (ada_language_defn): Update.
6958
7a6e7fcc
RO
69592017-05-19 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
6960
6e7e1744
RO
6961 PR tui/21482
6962 * gdb_curses.h (NOMACROS): Define.
6963 (NCURSES_NOMACROS): Define.
6964
69652017-05-19 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
6966
6967 PR tui/21482
7a6e7fcc
RO
6968 * tui/tui-windata.c (tui_erase_data_content): Cast last mvwaddstr
6969 arg to char *.
6970 * tui/tui-wingeneral.c (box_win): Likewise.
6971 * tui/tui-winsource.c (tui_erase_source_content): Likewise.
6972 (tui_show_source_line): Likewise.
6973 (tui_show_exec_info_content): Likewise.
6974
1933fd8e
VM
69752017-05-19 Vladimir Mezentsev <vladimir.mezentsev@oracle.com>
6976
6977 * sparc-tdep.c (sparc_structure_return_p)
6978 (sparc_arg_on_registers_p): New functions.
6979 (sparc32_store_arguments): Use them.
6980 * sparc64-tdep.c (sparc64_16_byte_align_p)
6981 (sparc64_store_floating_fields, sparc64_extract_floating_fields):
6982 Handle TYPE_CODE_ARRAY.
6983
21873064
YQ
69842017-05-17 Yao Qi <yao.qi@linaro.org>
6985
6986 * cli/cli-decode.c (add_alias_cmd): New function.
6987 * command.h (add_alias_cmd): Declare.
6988 * infcmd.c (_initialize_infcmd): Don't call add_com_alias,
6989 instead call add_alias_cmd.
6990
2b351b19
PA
69912017-05-17 Pedro Alves <palves@redhat.com>
6992
6993 * Makefile.in (nat_extra_makefile_frag): Rename to ...
6994 (nat_makefile_frag): ... this. All references updated.
6995 * configure.ac: Likewise.
6996 * configure.nat: Likewise. Enhance comments.
6997 * configure: Regenerate.
6998
5f2ad7a3
RO
69992017-05-15 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
7000
7001 * procfs.c (procfs_create_inferior): Change prototype to match
7002 definition.
7003
adf3dde5
EZ
70042017-05-13 Eli Zaretskii <eliz@gnu.org>
7005
7006 * tui/tui.c (tui_enable): Cast "unknown" to 'char *' to avoid a
7007 C++ compiler warning.
7008
6830f270
TT
70092017-05-12 Tom Tromey <tom@tromey.com>
7010
7011 PR rust/21483:
7012 * rust-lang.c (rust_evaluate_subexp) <STRUCTOP_STRUCT>: Don't
7013 recurse, just call value_struct_elt directly.
7014
68f2f2e3
TT
70152017-05-12 Tom Tromey <tom@tromey.com>
7016
7017 * rust-lang.c (rust_dump_subexp_body) <STRUCTOP_ANONYMOUS,
7018 OP_RUST_ARRAY>: Fix.
7019
256afbc2
TT
70202017-05-12 Tom Tromey <tom@tromey.com>
7021
7022 * rust-lang.c (rust_print_subexp): Replace "return" with "break".
7023
94bb8dfe
YQ
70242017-05-09 Yao Qi <yao.qi@linaro.org>
7025
7026 * regcache.c: Include <forward_list>.
7027 (struct regcache_list): Remove.
7028 (current_regcache): Update.
7029 (get_thread_arch_aspace_regcache): Update for std::forward_list.
7030 (regcache_thread_ptid_changed): Likewise.
7031 (registers_changed_ptid): Likewise.
7032 (current_regcache_size): Likewise.
7033
8248946c
YQ
70342017-05-09 Yao Qi <yao.qi@linaro.org>
7035
7036 * regcache.c [GDB_SELF_TEST]: Include selftest.h.
7037 (current_regcache_size): New function.
7038 (current_regcache_test): New function.
7039 (_initialize_regcache) [GDB_SELF_TEST]: Register the unit test.
7040
313c5961
AH
70412017-05-08 Alan Hayward <alan.hayward@arm.com>
7042
7043 * mips-tdep.c (mips_o32_return_value): Remove unused buffer.
7044 (print_gp_register_row): Use get_frame_register_value.
7045
27bfc1d1
AH
70462017-05-08 Alan Hayward <alan.hayward@arm.com>
7047
7048 * mips-linux-tdep.c (mips_supply_gregset): Use raw_supply_zeroed.
7049 (mips_supply_fpregset): Likewise.
7050 (mips64_supply_gregset): Likewise.
7051
146e6c5c
AH
70522017-05-08 Alan Hayward <alan.hayward@arm.com>
7053
7054 * mn10300-linux-tdep.c (am33_supply_gregset_method): Use
7055 regcache->raw_supply_zeroed.
7056
e50f25ec
SDJ
70572017-05-06 Sergio Durigan Junior <sergiodj@redhat.com>
7058
7059 * configure.nat: Rearrange 'case' statements to match
7060 host before cpu.
7061
21ea5acd
SDJ
70622017-05-06 Sergio Durigan Junior <sergiodj@redhat.com>
7063
7064 * Makefile.in: Remove "@host_makefile_frag@". Add variables
7065 NAT_FILE, NATDEPFILES, NAT_CDEPS, LOADLIBES, MH_CFLAGS, XM_CLIBS,
7066 NAT_GENERATED_FILES, HAVE_NATIVE_GCORE_HOST. Add
7067 "@nat_extra_makefile_frag@".
7068 (Makefile): Remove dependency on "@frags@".
7069 ($(GNULIB_BUILDDIR)/Makefile): Likewise.
7070 (data-directory/Makefile): Likewise.
7071 * config/aarch64/linux.mh: Deleted; moved contents to
7072 "gdb/configure.nat".
7073 * config/alpha/alpha-linux.mh: Likewise.
7074 * config/alpha/nbsd.mh: Likewise.
7075 * config/arm/linux.mh: Likewise.
7076 * config/arm/nbsdelf.mh: Likewise.
7077 * config/i386/cygwin.mh: Likewise.
7078 * config/i386/cygwin64.mh: Likewise.
7079 * config/i386/darwin.mh: Likewise.
7080 * config/i386/fbsd.mh: Likewise.
7081 * config/i386/fbsd64.mh: Likewise.
7082 * config/i386/go32.mh: Likewise.
7083 * config/i386/i386gnu.mh: Likewise.
7084 * config/i386/i386sol2.mh: Likewise.
7085 * config/i386/linux.mh: Likewise.
7086 * config/i386/linux64.mh: Likewise.
7087 * config/i386/mingw.mh: Likewise.
7088 * config/i386/mingw64.mh: Likewise.
7089 * config/i386/nbsd64.mh: Likewise.
7090 * config/i386/nbsdelf.mh: Likewise.
7091 * config/i386/nto.mh: Likewise.
7092 * config/i386/obsd.mh: Likewise.
7093 * config/i386/obsd64.mh: Likewise.
7094 * config/i386/sol2-64.mh: Likewise.
7095 * config/ia64/linux.mh: Likewise.
7096 * config/m32r/linux.mh: Likewise.
7097 * config/m68k/linux.mh: Likewise.
7098 * config/m68k/nbsdelf.mh: Likewise.
7099 * config/m68k/obsd.mh: Likewise.
7100 * config/m88k/obsd.mh: Likewise.
7101 * config/mips/fbsd.mh: Likewise.
7102 * config/mips/linux.mh: Likewise.
7103 * config/mips/nbsd.mh: Likewise.
7104 * config/mips/obsd64.mh: Likewise.
7105 * config/pa/linux.mh: Likewise.
7106 * config/pa/nbsd.mh: Likewise.
7107 * config/pa/obsd.mh: Likewise.
7108 * config/powerpc/aix.mh: Likewise.
7109 * config/powerpc/fbsd.mh: Likewise.
7110 * config/powerpc/linux.mh: Likewise.
7111 * config/powerpc/nbsd.mh: Likewise.
7112 * config/powerpc/obsd.mh: Likewise.
7113 * config/powerpc/ppc64-linux.mh: Likewise.
7114 * config/powerpc/spu-linux.mh: Likewise.
7115 * config/s390/linux.mh: Likewise.
7116 * config/sh/nbsd.mh: Likewise.
7117 * config/sparc/fbsd.mh: Likewise.
7118 * config/sparc/linux.mh: Likewise.
7119 * config/sparc/linux64.mh: Likewise.
7120 * config/sparc/nbsd64.mh: Likewise.
7121 * config/sparc/nbsdelf.mh: Likewise.
7122 * config/sparc/obsd64.mh: Likewise.
7123 * config/sparc/sol2.mh: Likewise.
7124 * config/tilegx/linux.mh: Likewise.
7125 * config/vax/nbsdelf.mh: Likewise.
7126 * config/vax/obsd.mh: Likewise.
7127 * config/xtensa/linux.mh: Likewise.
7128 * config/i386/i386gnu.mn: New file, with excerpts from
7129 "config/i386/i386gnu.mh".
7130 * configure: Regenerate.
7131 * configure.ac: Rewrite code to use "gdb/configure.nat" instead of
7132 *.mh files under "gdb/config".
7133 * configure.nat: New file, with contents from the
7134 "gdb/config/*/*.mh" files.
7135
7ed1acaf
TW
71362017-05-05 Tim Wiederhake <tim.wiederhake@intel.com>
7137
7138 * btrace.c (btrace_clear): Free insn vector.
7139
e13cb306
PA
71402017-05-05 Pedro Alves <palves@redhat.com>
7141
7142 * warning.m4 (build_warnings): Add -Wno-error=maybe-uninitialized.
7143 * configure: Regenerate.
7144
5ed8105e
PA
71452017-05-04 Pedro Alves <palves@redhat.com>
7146
7147 * Makefile.in (SFILES): Add progspace-and-thread.c.
7148 (HFILES_NO_SRCDIR): Add progspace-and-thread.h.
7149 (COMMON_OBS): Add progspace-and-thread.o.
7150 * breakpoint.c: Include "progspace-and-thread.h".
7151 (update_inserted_breakpoint_locations)
7152 (insert_breakpoint_locations, create_longjmp_master_breakpoint):
7153 Use scoped_restore_current_pspace_and_thread.
7154 (create_std_terminate_master_breakpoint): Use
7155 scoped_restore_current_program_space.
7156 (remove_breakpoint): Use scoped_restore_current_pspace_and_thread.
7157 (print_breakpoint_location): Use
7158 scoped_restore_current_program_space.
7159 (bp_loc_is_permanent): Use
7160 scoped_restore_current_pspace_and_thread.
7161 (resolve_sal_pc): Use scoped_restore_current_pspace_and_thread.
7162 (download_tracepoint_locations): Use
7163 scoped_restore_current_pspace_and_thread.
7164 (breakpoint_re_set): Use scoped_restore_current_pspace_and_thread.
7165 * exec.c (exec_close_1): Use scoped_restore_current_program_space.
7166 (enum step_over_calls_kind): Moved from inferior.h.
7167 (class scoped_restore_current_thread): New class.
7168 * gdbthread.h (make_cleanup_restore_current_thread): Delete
7169 declaration.
7170 (scoped_restore_current_thread): New class.
7171 * infcmd.c: Include "common/gdb_optional.h".
7172 (continue_1, proceed_after_attach): Use
7173 scoped_restore_current_thread.
7174 (notice_new_inferior): Use scoped_restore_current_thread.
7175 * inferior.c: Include "progspace-and-thread.h".
7176 (restore_inferior, save_current_inferior): Delete.
7177 (add_inferior_command, clone_inferior_command): Use
7178 scoped_restore_current_pspace_and_thread.
7179 * inferior.h (scoped_restore_current_inferior): New class.
7180 * infrun.c: Include "progspace-and-thread.h" and
7181 "common/gdb_optional.h".
7182 (follow_fork_inferior): Use
7183 scoped_restore_current_pspace_and_thread.
7184 (scoped_restore_exited_inferior): New class.
7185 (handle_vfork_child_exec_or_exit): Use
7186 scoped_restore_exited_inferior,
7187 scoped_restore_current_pspace_and_thread,
7188 scoped_restore_current_thread and scoped_restore.
7189 (fetch_inferior_event): Use scoped_restore_current_thread.
7190 * linespec.c (decode_line_full, decode_line_1): Use
7191 scoped_restore_current_program_space.
7192 * mi/mi-main.c: Include "progspace-and-thread.h".
7193 (exec_continue): Use scoped_restore_current_thread.
7194 (mi_cmd_exec_run): Use scoped_restore_current_pspace_and_thread.
7195 (mi_cmd_trace_frame_collected): Use scoped_restore_current_thread.
7196 * proc-service.c (ps_pglobal_lookup): Use
7197 scoped_restore_current_program_space.
7198 * progspace-and-thread.c: New file.
7199 * progspace-and-thread.h: New file.
7200 * progspace.c (release_program_space, clone_program_space): Use
7201 scoped_restore_current_program_space.
7202 (restore_program_space, save_current_program_space)
7203 (save_current_space_and_thread): Delete.
7204 (switch_to_program_space_and_thread): Moved to
7205 progspace-and-thread.c.
7206 * progspace.h (save_current_program_space)
7207 (save_current_space_and_thread): Delete declarations.
7208 (scoped_restore_current_program_space): New class.
7209 * remote.c (remote_btrace_maybe_reopen): Use
7210 scoped_restore_current_thread.
7211 * symtab.c: Include "progspace-and-thread.h".
7212 (skip_prologue_sal): Use scoped_restore_current_pspace_and_thread.
7213 * thread.c (print_thread_info_1): Use
7214 scoped_restore_current_thread.
7215 (struct current_thread_cleanup): Delete.
7216 (do_restore_current_thread_cleanup)
7217 (restore_current_thread_cleanup_dtor): Rename/convert both to ...
7218 (scoped_restore_current_thread::~scoped_restore_current_thread):
7219 ... this new dtor.
7220 (make_cleanup_restore_current_thread): Rename/convert to ...
7221 (scoped_restore_current_thread::scoped_restore_current_thread):
7222 ... this new ctor.
7223 (thread_apply_all_command): Use scoped_restore_current_thread.
7224 (thread_apply_command): Use scoped_restore_current_thread.
7225 * tracepoint.c (tdump_command): Use scoped_restore_current_thread.
7226 * varobj.c (value_of_root_1): Use scoped_restore_current_thread.
7227
f6223dbb
PA
72282017-05-04 Pedro Alves <palves@redhat.com>
7229
7230 * thread.c (make_cleanup_restore_current_thread): Move
7231 find_thread_ptid call before the is_stopped call. Assert that the
7232 thread is found. Replace is_stopped call by checking the thread's
7233 state directly. Remove unnecessary NULL-thread check.
7234
3c3ae77e
PA
72352017-05-04 Pedro Alves <palves@redhat.com>
7236
7237 * corelow.c (thread_section_name): New class.
7238 (get_core_register_section, get_core_siginfo): Use it.
7239
45eba0ab
AA
72402017-05-04 Andreas Arnez <arnez@linux.vnet.ibm.com>
7241
7242 * corelow.c (sniff_core_bfd): Remove extra semicolon.
7243 (get_core_register_section): Remove xfree of NULL pointer.
7244
f81fdd35
AH
72452017-05-03 Alan Hayward <alan.hayward@arm.com>
7246
7247 * frv-linux-tdep.c (frv_linux_supply_gregset): Use raw_supply_zeroed.
7248 * regcache.c (regcache::raw_supply_zeroed): New function.
7249 * regcache.h (regcache::raw_supply_zeroed): New declaration.
7250
35837774
SM
72512017-05-03 Simon Marchi <simon.marchi@ericsson.com>
7252
7253 * gdbarch.sh: Remove commented out definition of
7254 TARGET_CHAR_BIT.
7255 * gdbarch.h: Re-generate.
7256
c94fee56
SDJ
72572017-05-03 Sergio Durigan Junior <sergiodj@redhat.com>
7258
7259 * configure: Regenerate.
7260
d17f7b36
SM
72612017-05-02 Simon Marchi <simon.marchi@ericsson.com>
7262
7263 * solib-target.c (solib_target_relocate_section_addresses):
7264 Remove num_section_bases, num_bases, segment_bases variables.
7265
b560ebd6
SM
72662017-05-02 Simon Marchi <simon.marchi@polymtl.ca>
7267
7268 * common/gdb_vecs.h (DEF_VEC_I (CORE_ADDR)): Remove.
7269
f2f46dfc
SM
72702017-05-02 Simon Marchi <simon.marchi@polymtl.ca>
7271
7272 * solib-target.c: Include <vector>
7273 (struct lm_info_target) <~lm_info_target>: Remove.
7274 <segment_bases, section_bases>: Change type to
7275 std::vector<CORE_ADDR>.
7276 (library_list_start_segment, library_list_start_section,
7277 library_list_end_library,
7278 solib_target_relocate_section_addresses): Adjust.
7279
a0ff9e1a
SM
72802017-05-02 Simon Marchi <simon.marchi@polymtl.ca>
7281
7282 * gdbarch.sh (software_single_step): Change return type to
7283 std::vector<CORE_ADDR>.
7284 * gdbarch.c, gdbarch.h: Re-generate.
7285 * arch/arm-get-next-pcs.c (thumb_deal_with_atomic_sequence_raw):
7286 Adjust.
7287 (arm_deal_with_atomic_sequence_raw): Adjust.
7288 (thumb_get_next_pcs_raw): Adjust.
7289 (arm_get_next_pcs_raw): Adjust.
7290 (arm_get_next_pcs): Adjust.
7291 * arch/arm-get-next-pcs.h (arm_get_next_pcs): Adjust.
7292 * aarch64-tdep.c (aarch64_software_single_step): Adjust.
7293 * alpha-tdep.c (alpha_deal_with_atomic_sequence): Adjust.
7294 (alpha_software_single_step): Adjust.
7295 * alpha-tdep.h (alpha_software_single_step): Adjust.
7296 * arm-linux-tdep.c (arm_linux_software_single_step): Adjust.
7297 * arm-tdep.c (arm_software_single_step): Adjust.
7298 (arm_breakpoint_kind_from_current_state): Adjust.
7299 * arm-tdep.h (arm_software_single_step): Adjust.
7300 * breakpoint.c (insert_single_step_breakpoint): Adjust.
7301 * cris-tdep.c (cris_software_single_step): Adjust.
7302 * mips-tdep.c (mips_deal_with_atomic_sequence): Adjust.
7303 (micromips_deal_with_atomic_sequence): Adjust.
7304 (deal_with_atomic_sequence): Adjust.
7305 (mips_software_single_step): Adjust.
7306 * mips-tdep.h (mips_software_single_step): Adjust.
7307 * moxie-tdep.c (moxie_software_single_step): Adjust.
7308 * nios2-tdep.c (nios2_software_single_step): Adjust.
7309 * ppc-tdep.h (ppc_deal_with_atomic_sequence): Adjust.
7310 * rs6000-aix-tdep.c (rs6000_software_single_step): Adjust.
7311 * rs6000-tdep.c (ppc_deal_with_atomic_sequence): Adjust.
7312 * s390-linux-tdep.c (s390_software_single_step): Adjust.
7313 * sparc-tdep.c (sparc_software_single_step): Adjust.
7314 * spu-tdep.c (spu_software_single_step): Adjust.
7315 * tic6x-tdep.c (tic6x_software_single_step): Adjust.
7316
ea480a30
SM
73172017-05-02 Simon Marchi <simon.marchi@polymtl.ca>
7318
7319 * gdbarch.sh: Use semi-colon as field separator instead of colon.
7320 * gdbarch.h: Re-generate.
7321
d050f7d7
TW
73222017-05-01 Tim Wiederhake <tim.wiederhake@intel.com>
7323
7324 * Makefile.in (SUBDIR_PYTHON_OBS): Add py-instruction.o.
7325 (SUBDIR_PYTHON_SRCS): Add py-instruction.c.
7326 * python/py-instruction.c, python/py-instruction.h: New file.
7327 * python/py-record.c: Add py-instruction.h include.
7328 (gdbpy_initialize_record): Make gdb.Instruction a super class of
7329 gdb.RecordInstruction.
7330 * python/python-internal.h: Add gdbpy_initialize_instruction
7331 declaration.
7332 * python/python.c (do_start_initialization): Add
7333 gdbpy_initialize_instruction.
7334
14f819c8
TW
73352017-05-01 Tim Wiederhake <tim.wiederhake@intel.com>
7336
7337 * python/py-record-btrace.c (BTPY_REQUIRE_VALID_CALL, btpy_call_type):
7338 Remove.
7339 (btrace_func_from_recpy_func): New function.
7340 (btpy_call_new, btpy_number, btpy_hash, btpy_richcompare): Remove.
7341 (btpy_call_level, btpy_call_symbol, btpy_call_instructions,
7342 btpy_call_up, btpy_call_prev_sibling, btpy_call_next_sibling): Rename to ...
7343 (recpy_bt_func_level, recpy_bt_func_symbol, recpy_bt_func_instructions,
7344 recpy_bt_func_up, recpy_bt_func_prev, recpy_bt_func_next): This.
7345 Also, use new helper functions.
7346 (btpy_list_item): Use new helper functions.
7347 (recpy_bt_function_call_history): Use new type name.
7348 (btpy_call_getset): Remove.
7349 (gdbpy_initialize_btrace): Remove code to initialize
7350 gdb.BtraceFunctionCall.
7351 * python/py-record-btrace.h (recpy_bt_func_number, recpy_btb_func_level,
7352 recpy_btb_func_symbol, recpy_bt_func_instructions, recpy_bt_func_up,
7353 recpy_bt_func_prev, recpy_bt_func_next): New export.
7354 * python/py-record.c (recpy_func_type): New static object.
7355 (recpy_func_new, recpy_func_level, recpy_func_symbol,
7356 recpy_func_instructions, recpy_func_up, recpy_func_prev,
7357 recpy_func_next): New function.
7358 (recpy_element_hash, recpy_element_richcompare): Updated comment.
7359 (recpy_func_getset): New static object.
7360 (gdbpy_initialize_record): Add code to initialize gdb.RecordInstruction.
7361 * python/py-record.h (recpy_func_type, recpy_func_new): New export.
7362
0ed5da75
TW
73632017-05-01 Tim Wiederhake <tim.wiederhake@intel.com>
7364
7365 * python/py-record-btrace.c (BTPY_REQUIRE_VALID_INSN): Remove.
7366 (btpy_object, btpy_insn_type, btpy_new): Remove.
7367 (btpy_list_object): Use gdb.RecordInstruction type instead of
7368 gdb.BtraceInstruction type.
7369 (btrace_insn_from_recpy_insn): New function.
7370 (btpy_insn_or_gap_new): Adjust comment. Use recpy_insn_new instead of
7371 btpy_new.
7372 (btpy_call_new, btpy_list_item): Do not use btpy_new anymore.
7373 (btpy_number, btpy_hash, btpy_call_level, btpy_call_symbol,
7374 btpy_call_instructions, btpy_call_up, btpy_call_prev_sibling,
7375 btpy_call_next_sibling, btpy_richcompare): Use recpy_element_object
7376 instead of btpy_object.
7377 (btpy_insn_sal, btpy_insn_pc, btpy_insn_size, btpy_insn_is_speculative,
7378 btpy_insn_data, btpy_insn_decode): Rename to ...
7379 (recpy_bt_insn_sal, recpy_bt_insn_pc, recpy_bt_insn_size,
7380 recpy_bt_insn_is_speculative, recpy_bt_insn_data,
7381 recpy_bt_insn_decode): This. Also, use new helper functions.
7382 (btpy_list_position, recpy_bt_goto): Use recpy_element_object and
7383 recpy_insn_type.
7384 (btpy_insn_getset): Remove.
7385 (gdbpy_initialize_btrace): Remove code to initialize
7386 gdb.BtraceInstruction. Use recpy_element_object.
7387 * python/py-record-btrace.h (recpy_bt_insn_number, recpy_bt_insn_sal,
7388 recpy_bt_insn_pc, recpy_bt_insn_data, recpy_bt_insn_decoded,
7389 recpy_bt_insn_size, recpy_bt_insn_is_speculative): New export.
7390 * python/py-record.c (recpy_insn_type): New static object.
7391 (recpy_insn_new, recpy_insn_sal, recpy_insn_pc, recpy_insn_data,
7392 recpy_insn_decoded, recpy_insn_size, recpy_insn_is_speculative,
7393 recpy_element_number, recpy_element_hash, recpy_element_richcompare):
7394 New function.
7395 (recpy_insn_getset): New static object.
7396 (gdbpy_initialize_record): Initialize gdb.RecordInstruction.
7397 * python/py-record.h (recpy_element_object): New typedef.
7398 (recpy_insn_type, recpy_insn_new): New export.
7399
913aeadd
TW
74002017-05-01 Tim Wiederhake <tim.wiederhake@intel.com>
7401
7402 * py-record-btrace.c (btpy_insn_new): Removed.
7403 (btpy_insn_or_gap_new): New function.
7404 (btpy_insn_error): Removed.
7405 (btpy_insn_sal, btpy_insn_pc, btpy_insn_size, btpy_insn_is_speculative,
7406 btpy_insn_data, btpy_insn_decode): Remove code path for gaps.
7407 (recpy_bt_replay_position, recpy_bt_begin, recpy_bt_end): Call
7408 btpy_insn_or_gap_new instead of btpy_insn_new.
7409 (btpy_insn_getset): Remove btpy_insn_error.
7410 * py-record.c (recpy_gap_type): New static object.
7411 (recpy_gap_object): New typedef.
7412 (recpy_gap_new, recpy_gap_number, recpy_gap_reason_code,
7413 recpy_gap_reason_string): New function.
7414 (recpy_gap_getset): New static object.
7415 (gdbpy_initialize_record): Initialize gdb.RecordGap type.
7416 * py-record.h (recpy_gap_new): New export.
7417
a3be24ad
TW
74182017-05-01 Tim Wiederhake <tim.wiederhake@intel.com>
7419
7420 * python/py-record.c (recpy_ptid): Remove.
7421 (recpy_record_getset): Remove recpy_ptid.
7422
ae20e79a
TW
74232017-05-01 Tim Wiederhake <tim.wiederhake@intel.com>
7424
7425 * btrace.c (btrace_fetch): Set inferior_ptid.
7426 * python/py-record-btrace.c: Add "py-record.h" include.
7427 (recpy_bt_format, recpy_bt_replay_position, recpy_bt_begin,
7428 recpy_bt_end, recpy_bt_instruction_history,
7429 recpy_bt_function_call_history, recpy_bt_goto): Use ptid stored
7430 in gdb.Record object instead of current ptid.
7431 * python/py-record.c: Include new "py-record.h" file.
7432 (recpy_record_object): Moved to py-record.h.
7433 * python/py-record.h: New file.
7434
8d0050ea
TW
74352017-05-01 Tim Wiederhake <tim.wiederhake@intel.com>
7436
7437 * python/py-record-btrace.c (BTPY_REQUIRE_VALID_INSN,
7438 BTPY_REQUIRE_VALID_CALL, recpy_bt_function_call_history): Fix
7439 indentation.
7440
3f380b50
JB
74412017-05-01 Joel Brobecker <brobecker@adacore.com>
7442
7443 * MAINTAINERS: Move Daniel Jacobowitz and Mark Kettenis to
7444 the past maintainers section.
7445
07495424
YQ
74462017-04-28 Yao Qi <yao.qi@linaro.org>
7447
7448 * infcmd.c (get_return_value): Use regcache ctor, and remove
7449 cleanup.
7450
deb1fa3e
YQ
74512017-04-28 Yao Qi <yao.qi@linaro.org>
7452 Pedro Alves <palves@redhat.com>
7453
7454 * regcache.c (regcache::regcache): New tag dispatch ctor.
7455 (do_cooked_read): Moved above.
7456 (regcache_dup): Use the tag dispatch ctor..
7457 * regcache.h (regcache): Declare ctor, delete copy ctor and
7458 assignment operator, remove friend regcache_dup.
7459
b421c83c
YQ
74602017-04-28 Yao Qi <yao.qi@linaro.org>
7461
7462 * regcache.c (regcache_dup): Assert !src->m_readonly_p and
7463 call method save instead of regcache_cpy.
7464 * regcache.h (struct regcache): Make regcache_dup a friend.
7465
ef79d9a3
YQ
74662017-04-28 Yao Qi <yao.qi@linaro.org>
7467
7468 * regcache.c (struct regcache): Move to regcache.h
7469 (regcache::arch): New method.
7470 (regcache_get_ptid): Update.
7471 (get_regcache_arch): Call arch method.
7472 (get_regcache_aspace): Call method aspace.
7473 (register_buffer): Change it to method.
7474 (regcache_save): Change it to regcache::save.
7475 (regcache_restore): Likewise.
7476 (regcache_cpy_no_passthrough): Remove the declaration.
7477 (regcache_cpy): Call methods restore and cpy_no_passthrough.
7478 (regcache_cpy_no_passthrough): Change it to method
7479 cpy_no_passthrough.
7480 (regcache_register_status): Change it to method
7481 get_register_status.
7482 (regcache_invalidate): Change it to method invalidate.
7483 (regcache_thread_ptid_changed): Use methods ptid and set_ptid.
7484 (regcache_raw_update): Change it to method raw_update.
7485 (regcache_raw_read): Likewise.
7486 (regcache_raw_read_signed): Likewise.
7487 (regcache_raw_read_unsigned): Likewise.
7488 (regcache_raw_write_signed): Likewise.
7489 (regcache_raw_write_unsigned): Likewise.
7490 (regcache_cooked_read): Likewise.
7491 (regcache_cooked_read_value): Likewise.
7492 (regcache_cooked_read_signed): Likewise.
7493 (regcache_cooked_read_unsigned): Likewise.
7494 (regcache_cooked_write_signed): Likewise.
7495 (regcache_cooked_write_unsigned): Likewise.
7496 (regcache_raw_set_cached_value): Likewise.
7497 (regcache_raw_write): Likewise.
7498 (regcache_cooked_write): Likewise.
7499 (regcache_xfer_part): Likewise.
7500 (regcache_raw_read_part): Likewise.
7501 (regcache_raw_write_part): Likewise.
7502 (regcache_cooked_read_part): Likewise.
7503 (regcache_cooked_write_part): Likewise.
7504 (regcache_raw_supply): Likewise.
7505 (regcache_raw_collect): Likewise.
7506 (regcache_transfer_regset): Likewise.
7507 (regcache_supply_regset): Likewise.
7508 (regcache_collect_regset): Likewise.
7509 (regcache_debug_print_register): Likewise.
7510 (enum regcache_dump_what): Move it to regcache.h.
7511 (regcache_dump): Change it to method dump.
7512 * regcache.h (enum regcache_dump_what): New.
7513 (class regcache): New.
7514 * target.c (target_fetch_registers): Call method
7515 debug_print_register.
7516 (target_store_registers): Likewise.
7517
f8fdb78e
SM
75182017-04-28 Simon Marchi <simon.marchi@ericsson.com>
7519
7520 * windows-nat.c (struct lm_info_windows): Initialize field.
7521 (windows_make_so): Allocate lm_info_windows with new.
7522 (windows_free_so): Free lm_info_windows with delete.
7523
9ccbfd7b
SM
75242017-04-28 Simon Marchi <simon.marchi@ericsson.com>
7525
7526 * solib-darwin.c (struct lm_info_darwin): Initialize field.
7527 (darwin_current_sos): Allocate lm_info_darwin with new, remove
7528 cleanup.
7529 (darwin_free_so): Free lm_info_darwin with delete.
7530
76e75227
SM
75312017-04-28 Simon Marchi <simon.marchi@ericsson.com>
7532
7533 * solib-svr4.h (struct lm_info_svr4): Initialize fields.
7534 <l_addr_p>: Change type to bool.
7535 * solib-svr4.c (lm_info_read): Allocate lm_info_svr4 with new.
7536 (svr4_free_so): Free lm_info_svr4 with delete.
7537 (svr4_copy_library_list): Replace memcpy with call to copy
7538 constructor.
7539 (library_list_start_library, svr4_default_sos): Allocate
7540 lm_info_svr4 with new.
7541
51046d9e
SM
75422017-04-28 Simon Marchi <simon.marchi@ericsson.com>
7543
7544 * solib-target.c (struct lm_info_target): Add destructor,
7545 initialize fields.
7546 <name>: Change type to std::string.
7547 (library_list_start_library): Allocate lm_info_target with new.
7548 (solib_target_free_library_list): Free lm_info_target with
7549 delete.
7550 (solib_target_current_sos): Adapt to std::string.
7551 (solib_target_free_so): Free lm_info_target with delete.
7552
4023ae76
SM
75532017-04-28 Simon Marchi <simon.marchi@ericsson.com>
7554
7555 * solib-frv.c (struct lm_info_frv): Add destructor, initialize
7556 fields.
7557 (frv_current_sos): Allocate lm_info_frv with new.
7558 (frv_relocate_main_executable): Free lm_info_frv with delete,
7559 allocate with new.
7560 (frv_clear_solib, frv_free_so): Free lm_info_frv with delete.
7561
af43057b
SM
75622017-04-28 Simon Marchi <simon.marchi@ericsson.com>
7563
7564 * solib-frv.c (struct lm_info_frv): Fix indentation.
7565
b0911207
SM
75662017-04-28 Simon Marchi <simon.marchi@ericsson.com>
7567
7568 * solib-dsbt.c (struct lm_info_dsbt): Add destructor, initialize
7569 map field.
7570 (dsbt_current_sos): Allocate lm_info_dsbt with new.
7571 (dsbt_relocate_main_executable): Free lm_info_dsbt with delete
7572 and allocate with new.
7573 (dsbt_clear_solib, dsbt_free_so): Free lm_info_dsbt with delete.
7574
6c401f72
SM
75752017-04-28 Simon Marchi <simon.marchi@ericsson.com>
7576
7577 * solib-aix.c (struct lm_info_aix): Initialize fields in-class.
7578 <filename, member_name>: Change type to std::string.
7579 (solib_aix_new_lm_info, solib_aix_xfree_lm_info): Remove.
7580 (library_list_start_library): Allocate lm_info_aix with new.
7581 (solib_aix_free_library_list, solib_aix_free_so): Free with delete.
7582 (solib_aix_current_sos): Adapt to std::string, copy lm_info_aix
7583 with copy constructor.
7584
d0e449a1
SM
75852017-04-28 Simon Marchi <simon.marchi@ericsson.com>
7586
7587 * solist.h (struct lm_info): Remove.
7588 (struct lm_info_base): New class.
7589 (struct so_list) <lm_info>: Change type to lm_info_base *.
7590 * nto-tdep.c (struct lm_info): Remove.
7591 (lm_addr): Adjust.
7592 * solib-aix.c (struct lm_info): Rename to ...
7593 (struct lm_info_aix): ... this. Extend lm_info_base.
7594 (lm_info_p): Rename to ...
7595 (lm_info_aix_p): ... this, and adjust.
7596 (solib_aix_new_lm_info, solib_aix_xfree_lm_info,
7597 solib_aix_parse_libraries, library_list_start_library,
7598 solib_aix_free_library_list, solib_aix_parse_libraries,
7599 solib_aix_get_library_list,
7600 solib_aix_relocate_section_addresses, solib_aix_free_so,
7601 solib_aix_get_section_offsets,
7602 solib_aix_solib_create_inferior_hook, solib_aix_current_sos):
7603 Adjust.
7604 (struct solib_aix_inferior_data) <library_list>: Adjust.
7605 * solib-darwin.c (struct lm_info): Rename to ...
7606 (struct lm_info_darwin): ... this. Extend lm_info_base.
7607 (darwin_current_sos, darwin_relocate_section_addresses): Adjust.
7608 * solib-dsbt.c (struct lm_info): Rename to ...
7609 (struct lm_info_dsbt): ... this. Extend lm_info_base.
7610 (struct dsbt_info) <main_executable_lm_info): Adjust.
7611 (dsbt_current_sos, dsbt_relocate_main_executable, dsbt_free_so,
7612 dsbt_relocate_section_addresses): Adjust.
7613 * solib-frv.c (struct lm_info): Rename to ...
7614 (struct lm_info_frv): ... this. Extend lm_info_base.
7615 (main_executable_lm_info): Adjust.
7616 (frv_current_sos, frv_relocate_main_executable, frv_free_so,
7617 frv_relocate_section_addresses, frv_fdpic_find_global_pointer,
7618 find_canonical_descriptor_in_load_object,
7619 frv_fdpic_find_canonical_descriptor): Adjust.
7620 * solib-svr4.c (struct lm_info): Move to solib-svr4.h, renamed
7621 to lm_info_svr4.
7622 (lm_info_read, lm_addr_check, svr4_keep_data_in_core,
7623 svr4_clear_so, svr4_copy_library_list,
7624 library_list_start_library, svr4_default_sos, svr4_read_so_list,
7625 svr4_current_sos, svr4_fetch_objfile_link_map,
7626 solist_update_incremental): Adjust.
7627 * solib-svr4.h (struct lm_info_svr4): Move here from
7628 solib-svr4.c.
7629 * solib-target.c (struct lm_info): Rename to ...
7630 (struct lm_info_target): ... this. Extend lm_info_base.
7631 (lm_info_p): Rename to ...
7632 (lm_info_target_p): ... this.
7633 (solib_target_parse_libraries, library_list_start_segment,
7634 library_list_start_section, library_list_start_library,
7635 library_list_end_library, solib_target_free_library_list,
7636 solib_target_current_sos, solib_target_free_so,
7637 solib_target_relocate_section_addresses): Adjust.
7638 * windows-nat.c (struct lm_info): Rename to ...
7639 (struct lm_info_windows): ... this. Extend lm_info_base.
7640 (windows_make_so, handle_load_dll, handle_unload_dll,
7641 windows_xfer_shared_libraries): Adjust.
7642
434a4023
SM
76432017-04-28 Simon Marchi <simon.marchi@ericsson.com>
7644
7645 * solib-darwin.c (struct darwin_so_list): Remove.
7646 (darwin_current_sos): Allocate an so_list object instead of a
7647 darwin_so_list, separately allocate an lm_info object.
7648 (darwin_free_so): Free lm_info.
7649
428544e8
JB
76502017-04-28 John Baldwin <jhb@FreeBSD.org>
7651
7652 * mips-tdep.c (print_gp_register_row): Replace printf_filtered
7653 with fprintf_filtered.
7654
4621115f
YQ
76552017-04-28 Yao Qi <yao.qi@linaro.org>
7656
7657 * regcache.c (regcache::regcache): New function.
7658 (regcache::~regcache): New function.
7659 (regcache_xmalloc_1): Remove.
7660 (regcache_xmalloc): Call new regcache.
7661 (regcache_xfree): Call delete regcache.
7662 (get_thread_arch_aspace_regcache): Call new regcache.
7663
339053c2
YQ
76642017-04-28 Yao Qi <yao.qi@linaro.org>
7665
7666 * mips-linux-nat.c (mips_linux_new_thread): Use ptid method
7667 lwp instead of ptid_get_lwp.
7668
7974a605
YQ
76692017-04-28 Yao Qi <yao.qi@linaro.org>
7670
7671 * mips-linux-nat.c (mips_linux_new_thread): Get lwpid from
7672 lwp_info instead of getting from inferior_ptid.
7673
e15c3eb4
KS
76742017-04-27 Keith Seitz <keiths@redhat.com>
7675
7676 * gdbtypes.c (LVALUE_REFERENCE_TO_RVALUE_BINDING_BADNESS)
7677 DIFFERENT_REFERENCE_TYPE_BADNESS): Remove.
7678 (CV_CONVERSION_BADNESS): Define.
7679 (rank_one_type): Remove overly restrictive rvalue reference
7680 rank checks.
7681 Add cv-qualifier checks and subranks for type equality.
7682 * gdbtypes.h (REFERENCE_CONVERSION_RVALUE,
7683 REFERENCE_CONVERSION_CONST_LVALUE, CV_CONVERSION_BADNESS,
7684 CV_CONVERSION_CONST, CV_CONVERSION_VOLATILE): Declare.
7685
72bc1d24
SM
76862017-04-27 Simon Marchi <simon.marchi@ericsson.com>
7687
7688 * python/py-inferior.c (inferior_to_inferior_object): Increment reference
7689 count when creating the object.
7690
55bcecda
UW
76912017-04-27 Sangamesh Mallayya <sangamesh.swamy@in.ibm.com>
7692 Ulrich Weigand <uweigand@de.ibm.com>
7693
7694 * xcoffread.c (read_xcoff_symtab): Read correct function auxiliary
7695 entry if xlc -qfuncsect or gcc -ffunction-sections compiler option
7696 is used in AIX.
7697 (read_xcoff_symtab): Handle C_WEAKEXT storage class.
7698 (process_xcoff_symbol): Likewise.
7699 (scan_xcoff_symtab): Likewise.
7700
5c99fcf8
AH
77012017-04-26 Alan Hayward <alan.hayward@arm.com>
7702
7703 * ia64-tdep.c (examine_prologue): Use get_frame_register_unsigned.
7704 (ia64_sigtramp_frame_prev_register): Use read_memory_unsigned_integer.
7705 (ia64_access_reg): Use get_frame_register_unsigned.
7706 (ia64_access_rse_reg): Likewise.
7707 (ia64_libunwind_frame_prev_register): Likewise.
7708
b41c5a85
JW
77092017-04-26 Jiong Wang <jiong.wang@arm.com>
7710
7711 * gdbarch.sh: New gdbarch method execute_dwarf_cfa_vendor_op.
7712 * gdbarch.c: Regenerated.
7713 * gdbarch.h: Regenerated.
7714 * dwarf2-frame.c (dwarf2_frame_state_alloc_regs): Made the
7715 visibility external.
7716 (execute_cfa_program): Call execute_dwarf_cfa_vendor_op for CFI
7717 between DW_CFA_lo_user and DW_CFA_high_user inclusive.
7718 (enum cfa_how_kind): Move to ...
7719 (struct dwarf2_frame_state_reg_info): Likewise.
7720 (struct dwarf2_frame_state): Likewise.
7721 * dwarf2-frame.h: ... here.
7722 (dwarf2_frame_state_alloc_regs): New declaration.
7723 * sparc-tdep.c (sparc_execute_dwarf_cfa_vendor_op): New function.
7724 (sparc32_gdbarch_init): Register execute_dwarf_cfa_vendor_op hook.
7725
c185f580
AH
77262017-04-26 Alan Hayward <alan.hayward@arm.com>
7727
7728 * xtensa-tdep.c (xtensa_pseudo_register_read): Use
7729 regcache_raw_read_unsigned.
7730 (xtensa_pseudo_register_write): Likewise.
7731
19c45594
AH
77322017-04-26 Alan Hayward <alan.hayward@arm.com>
7733
7734 * nds32-tdep.c (nds32_pseudo_register_read): Abort on errors.
7735 (nds32_pseudo_register_write): Likewise.
7736
4658f12e
YQ
77372017-04-25 Yao Qi <yao.qi@linaro.org>
7738
7739 * regcache.c (struct regcache) <readonly_p>: Change its type
7740 to bool.
7741 (regcache_xmalloc_1): Update parameter type and callers update.
7742
d581dda8
YQ
77432017-04-25 Yao Qi <yao.qi@linaro.org>
7744
7745 * aarch64-tdep.c (aarch64_gdbarch_init): Don't call
7746 set_gdbarch_wchar_bit.
7747 * arm-tdep.c (arm_gdbarch_init): Likewise.
7748
debed3db
PA
77492017-04-25 Pedro Alves <palves@redhat.com>
7750
7751 * common/poison.h [!HAVE_IS_TRIVIALLY_COPYABLE] (IsRelocatable)
7752 (BothAreRelocatable, memcopy, memmove): Don't define.
7753 * common/traits.h (__has_feature, HAVE_IS_TRIVIALLY_COPYABLE): New
7754 macros.
7755
b0b92aeb
PA
77562017-04-25 Pedro Alves <palves@redhat.com>
7757
7758 * common/common-defs.h: Include "common/poison.h".
7759 * common/function-view.h: (Not, Or, Requires): Move to traits.h
7760 and adjust.
7761 * common/poison.h: New file.
7762 * common/traits.h: Include <type_traits>.
7763 (Not, Or, Requires): New, moved from common/function-view.h.
7764
16c4d54a
PA
77652017-04-25 Pedro Alves <palves@redhat.com>
7766
7767 * breakpoint.h (struct breakpoint): In-class initialize all
7768 fields. Make boolean fields "bool".
7769 * breakpoint.c (init_raw_breakpoint_without_location): Remove
7770 memset call and initializations no longer necessary.
7771
b5c36682
PA
77722017-04-25 Pedro Alves <palves@redhat.com>
7773
7774 * btrace.c (pt_btrace_insn_flags): Change parameter type to
7775 reference.
7776 (pt_btrace_insn): New function.
7777 (ftrace_add_pt): Remove memset call and use pt_btrace_insn.
7778
5625a286
PA
77792017-04-25 Pedro Alves <palves@redhat.com>
7780
7781 * ada-lang.c (ada_catchpoint_location): Now a "class". Remove
7782 "base" field and inherit from "bp_location" instead. Add
7783 non-default ctor.
7784 (allocate_location_exception): Use new non-default ctor.
7785 * breakpoint.c (get_first_locp_gte_addr): Remove memset call.
7786 (init_bp_location): Convert to ...
7787 (bp_location::bp_location): ... this new ctor, and remove memset
7788 call.
7789 (base_breakpoint_allocate_location): Use the new non-default ctor.
7790 * breakpoint.h (bp_location): Now a class. Declare default and
7791 non-default ctors. In-class initialize all members.
7792 (init_bp_location): Remove declaration.
7793
23bcc18f
PA
77942017-04-25 Pedro Alves <palves@redhat.com>
7795
7796 * common/enum-flags.h (enum_flags): Don't implement copy ctor and
7797 assignment operator.
7798
e1ba3053
YQ
77992017-04-24 Yao Qi <yao.qi@linaro.org>
7800
7801 * doublest.c (convert_doublest_to_floatformat): Call
7802 floatformat_totalsize_bytes.
7803
10f489e5
TT
78042017-04-22 Tom Tromey <tom@tromey.com>
7805
7806 * mi/mi-cmd-file.c (mi_cmd_file_list_shared_libraries): Use
7807 ui_out_emit_list.
7808 * stack.c (print_frame): Use ui_out_emit_list.
7809 * mi/mi-symbol-cmds.c (mi_cmd_symbol_list_lines): Use
7810 ui_out_emit_list.
7811 * mi/mi-main.c (print_one_inferior)
7812 (mi_cmd_data_list_register_names)
7813 (mi_cmd_data_list_register_values, mi_cmd_list_features)
7814 (mi_cmd_list_target_features, mi_cmd_trace_frame_collected): Use
7815 ui_out_emit_list.
7816 * mi/mi-interp.c (mi_on_normal_stop_1): Use ui_out_emit_list.
7817 (mi_output_solib_attribs): Use ui_out_emit_list,
7818 ui_out_emit_tuple.
7819 * mi/mi-cmd-var.c (varobj_update_one): Use ui_out_emit_list.
7820 * mi/mi-cmd-stack.c (mi_cmd_stack_list_frames)
7821 (mi_cmd_stack_list_args, list_args_or_locals): Use
7822 ui_out_emit_list.
7823 * disasm.c (do_assembly_only): Use ui_out_emit_list.
7824 * breakpoint.c (print_solib_event, output_thread_groups): Use
7825 ui_out_emit_list.
7826
0092b74d
TT
78272017-04-22 Tom Tromey <tom@tromey.com>
7828
7829 * mi/mi-main.c (print_variable_or_computed): Use ui_out_emit_tuple.
7830 * mi/mi-cmd-var.c (varobj_update_one): Use ui_out_emit_tuple.
7831 * mi/mi-cmd-stack.c (list_arg_or_local): Use ui_out_emit_tuple.
7832
a14a62dd
TT
78332017-04-22 Tom Tromey <tom@tromey.com>
7834
7835 * tracepoint.c (tvariables_info_1)
7836 (print_one_static_tracepoint_marker): Use ui_out_emit_tuple.
7837
46b9c129
TT
78382017-04-22 Tom Tromey <tom@tromey.com>
7839
7840 * stack.c (print_frame_arg): Use ui_out_emit_tuple,
7841 annotate_arg_emitter.
7842 * breakpoint.c (print_mention_watchpoint)
7843 (print_mention_masked_watchpoint): Use ui_out_emit_tuple.
7844 * annotate.h (struct annotate_arg_emitter): New.
7845
2e783024
TT
78462017-04-22 Tom Tromey <tom@tromey.com>
7847
7848 * record-btrace.c (record_btrace_insn_history)
7849 (record_btrace_insn_history_range, record_btrace_call_history)
7850 (record_btrace_call_history_range): Use ui_out_emit_tuple.
7851 * thread.c (do_captured_list_thread_ids, print_thread_info_1): Use
7852 ui_out_emit_tuple.
7853 * stack.c (print_frame_info): Use ui_out_emit_tuple.
7854 * solib.c (info_sharedlibrary_command): Use ui_out_emit_tuple.
7855 * skip.c (skip_info): Use ui_out_emit_tuple.
7856 * remote.c (show_remote_cmd): Use ui_out_emit_tuple.
7857 * progspace.c (print_program_space): Use ui_out_emit_tuple.
7858 * probe.c (info_probes_for_ops): Use ui_out_emit_tuple.
7859 * osdata.c (info_osdata): Use ui_out_emit_tuple.
7860 * mi/mi-symbol-cmds.c (mi_cmd_symbol_list_lines): Use
7861 ui_out_emit_tuple.
7862 * mi/mi-main.c (print_one_inferior, list_available_thread_groups)
7863 (output_register, mi_cmd_data_read_memory)
7864 (mi_cmd_data_read_memory_bytes, mi_load_progress)
7865 (mi_cmd_trace_frame_collected): Use ui_out_emit_tuple.
7866 * mi/mi-cmd-var.c (mi_cmd_var_list_children, varobj_update_one):
7867 Use ui_out_emit_tuple.
7868 * mi/mi-cmd-stack.c (mi_cmd_stack_list_args): Use
7869 ui_out_emit_tuple.
7870 * mi/mi-cmd-info.c (mi_cmd_info_ada_exceptions)
7871 (mi_cmd_info_gdb_mi_command): Use ui_out_emit_tuple.
7872 * linux-thread-db.c (info_auto_load_libthread_db): Use
7873 ui_out_emit_tuple.
7874 * inferior.c (print_inferior): Use ui_out_emit_tuple.
7875 * gdb_bfd.c (print_one_bfd): Use ui_out_emit_tuple.
7876 * disasm.c (do_mixed_source_and_assembly_deprecated)
7877 (do_mixed_source_and_assembly): Use ui_out_emit_tuple.
7878 * cp-abi.c (list_cp_abis): Use ui_out_emit_tuple.
7879 * cli/cli-setshow.c (cmd_show_list): Use ui_out_emit_tuple.
7880 * breakpoint.c (print_one_breakpoint_location)
7881 (print_one_breakpoint): Use ui_out_emit_tuple.
7882 * auto-load.c (print_script, info_auto_load_cmd): Use
7883 ui_out_emit_tuple.
7884 * ada-tasks.c (print_ada_task_info): Use ui_out_emit_tuple.
7885
9be21bb4
SM
78862017-04-21 Simon Marchi <simon.marchi@ericsson.com>
7887
7888 * thread.c (print_thread_info_1): Remove dead code.
7889
0d4c07af
JK
78902017-04-21 Jan Kratochvil <jan.kratochvil@redhat.com>
7891
7892 * aarch64-tdep.c (selftests::aarch64_process_record_test): Make it #if
7893 GDB_SELF_TEST.
7894 * arm-tdep.c (selftests::arm_record_test): Likewise.
7895
4daf993d
YQ
78962017-04-21 Yao Qi <yao.qi@linaro.org>
7897
7898 * regcache.c (regcache_restore): Remove argument 2. Replace
7899 argument 3 with regcache. Get register status from
7900 src->register_status and get register contents from
7901 register_buffer (src, regnum).
7902 (regcache_cpy): Update.
7903
a6c21d4a
PA
79042017-04-19 Pedro Alves <palves@redhat.com>
7905
7906 * gdbthread.h (thread): Add missing closing parenthesis in
7907 comment.
7908
3a3fd0fd
PA
79092017-04-19 Pedro Alves <palves@redhat.com>
7910
7911 * common/refcounted-object.h: New file.
7912 * gdbthread.h: Include "common/refcounted-object.h".
7913 (thread_info): Inherit from refcounted_object and add comments.
7914 (thread_info::incref, thread_info::decref)
7915 (thread_info::m_refcount): Delete.
7916 (thread_info::deletable): Use the refcounted_object::refcount()
7917 method.
7918 * inferior.c (current_inferior_): Add comment.
7919 (set_current_inferior): Increment/decrement refcounts.
7920 (prune_inferiors, remove_inferior_command): Skip inferiors marked
7921 not-deletable instead of comparing with the current inferior.
7922 (initialize_inferiors): Increment the initial inferior's refcount.
7923 * inferior.h (struct inferior): Forward declare.
7924 Include "common/refcounted-object.h".
7925 (current_inferior, set_current_inferior): Move declaration to
7926 before struct inferior's definition, and fix comment.
7927 (inferior): Inherit from refcounted_object. Add comments.
7928 * thread.c (switch_to_thread_no_regs): Reference the thread's
7929 inferior pointer directly instead of doing a ptid lookup.
7930 (switch_to_no_thread): New function.
7931 (switch_to_thread(thread_info *)): New function, factored out
7932 from ...
7933 (switch_to_thread(ptid_t)): ... this.
7934 (restore_current_thread): Delete.
7935 (current_thread_cleanup): Remove 'inf_id' and 'was_removable'
7936 fields, and add 'inf' field.
7937 (do_restore_current_thread_cleanup): Check whether old->inf is
7938 alive instead of looking up an inferior by ptid. Use
7939 switch_to_thread and switch_to_no_thread.
7940 (restore_current_thread_cleanup_dtor): Use old->inf directly
7941 instead of lookup up an inferior by id. Decref the inferior.
7942 Don't restore 'removable'.
7943 (make_cleanup_restore_current_thread): Same the inferior pointer
7944 in old, instead of the inferior number. Incref the inferior.
7945 Don't save/clear 'removable'.
7946
9bcb1f16
PA
79472017-04-19 Pedro Alves <palves@redhat.com>
7948
7949 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
7950 unittests/scoped_restore-selftests.c.
7951 (SUBDIR_UNITTESTS_OBS): Add scoped_restore-selftests.o.
7952 * common/scoped_restore.h (scoped_restore_base): Make "class".
7953 (scoped_restore_base::release): New public method.
7954 (scoped_restore_base::scoped_restore_base): New protected ctor.
7955 (scoped_restore_base::m_saved_var): New protected field.
7956 (scoped_restore_tmpl::scoped_restore_tmpl(T*)): Initialize the
7957 scoped_restore_base base class instead of m_saved_var directly.
7958 (scoped_restore_tmpl::scoped_restore_tmpl(T*, T2)): Likewise.
7959 (scoped_restore_tmpl::scoped_restore_tmpl(const
7960 scoped_restore_tmpl<T>&)): Likewise.
7961 (scoped_restore_tmpl::~scoped_restore_tmpl): Use the saved_var
7962 method.
7963 (scoped_restore_tmpl::saved_var): New method.
7964 (scoped_restore_tmpl::m_saved_var): Delete.
7965 * inferior.h (inferior::detaching): Now a bool.
7966 * infrun.c (prepare_for_detach): Use a scoped_restore instead of a
7967 cleanup.
7968 * unittests/scoped_restore-selftests.c: New file.
7969
26fcd539
PA
79702017-04-19 Pedro Alves <palves@redhat.com>
7971
7972 * Makefile.in (SUBDIR_UNITTESTS_SRCS, SUBDIR_UNITTESTS_OBS):
7973 Re-sort in alphabetic order.
7974
fdd243b0
PA
79752017-04-18 Pedro Alves <palves@redhat.com>
7976
7977 * xml-support.c (obstack_xml_printf): Delete.
7978 * xml-support.h (obstack_xml_printf): Delete.
7979
4895cde2
PA
79802017-04-18 Pedro Alves <palves@redhat.com>
7981
7982 * xml-support.c (gdb_xml_parser) <use_dtd, dtd_name, parse,
7983 vdebug, verror, body_text, start_element, end_element, name,
7984 user_data, set_is_xinclude, set_error, expat_parser>: New methods.
7985 <name, user_data, expat_parser, scopes, error, last_line, dtd_name,
7986 is_xinclude>: Make private and add m_ prefix.
7987 (gdb_xml_parser::body_text): New method, based on ...
7988 (gdb_xml_body_text): ... this. Adjust.
7989 (gdb_xml_parser::vdebug): New method, based on ...
7990 (gdb_xml_debug): ... this. Adjust.
7991 (gdb_xml_parser::verror): New method, based on ...
7992 (gdb_xml_error): ... this. Adjust.
7993 (gdb_xml_parser::start_element): New method, based on ...
7994 (gdb_xml_start_element): ... this. Adjust.
7995 (gdb_xml_start_element_wrapper): Defer to
7996 gdb_xml_parser::start_element and gdb_xml_parser::set_error.
7997 (gdb_xml_parser::end_element): New method, based on ...
7998 (gdb_xml_end_element_wrapper): ... this. Adjust.
7999 (gdb_xml_parser::~gdb_xml_parser): Adjust.
8000 (gdb_xml_parser::gdb_xml_parser): Adjust to field renames.
8001 (gdb_xml_parser::use_dtd): New method, based on ...
8002 (gdb_xml_use_dtd): ... this. Adjust.
8003 (gdb_xml_parser::parse): New method, based on ...
8004 (gdb_xml_parse): ... this. Adjust.
8005 (gdb_xml_parse_quick): Adjust to call the parser's parse method.
8006 (xinclude_start_include): Adjust to call the parser's name method.
8007 (xml_xinclude_default, xml_xinclude_start_doctype)
8008 (xml_xinclude_end_doctype): Adjust to call the parser's user_data
8009 method.
8010 (xml_process_xincludes): Adjust to call parser methods.
8011 * xml-support.h (gdb_xml_use_dtd, gdb_xml_parse): Delete
8012 declarations.
8013
bd8a901f
PA
80142017-04-18 Pedro Alves <palves@redhat.com>
8015
8016 * tracefile-tfile.c (tfile_write_tdesc): Adjust to use
8017 gdb::optional<std::string>.
8018 * xml-support.c: Include <string>.
8019 (scope_level::scope_level(scope_level &&))
8020 (scope_level::~scope_level): Delete.
8021 (scope_level::body): Now a std::string.
8022 (gdb_xml_body_text, gdb_xml_end_element): Adjust.
8023 (xinclude_parsing_data::xinclude_parsing_data): Add 'output'
8024 parameter.
8025 (xinclude_parsing_data::~xinclude_parsing_data): Delete.
8026 (xinclude_parsing_data::output): Now a std::string reference.
8027 (xinclude_start_include): Adjust.
8028 (xml_xinclude_default): Adjust.
8029 (xml_process_xincludes): Add 'output' parameter, and return bool.
8030 * xml-support.h (xml_process_xincludes): Add 'output' parameter,
8031 and return bool.
8032 * xml-tdesc.c: Include <unordered_map> and <string>.
8033 (tdesc_xml_cache): Delete.
8034 (tdesc_xml_cache_s): Delete.
8035 (xml_cache): Now an std::unordered_map.
8036 (tdesc_parse_xml): Adjust to use std::string and unordered_map.
8037 (target_fetch_description_xml): Change return type to
8038 gdb::optional<std::string>, and adjust.
8039 * xml-tdesc.h: Include "common/gdb_optional.h" and <string>.
8040 (target_fetch_description_xml): Change return type to
8041 gdb::optional<std::string>.
8042
d35d1958
PA
80432017-04-18 Pedro Alves <palves@redhat.com>
8044
8045 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
8046 unittests/optional-selftests.c.
8047 (SUBDIR_UNITTESTS_OBS): Add optional-selftests.o.
8048 * unittests/optional-selftests.c: New file.
8049 * unittests/optional/assignment/1.cc: New file.
8050 * unittests/optional/assignment/2.cc: New file.
8051 * unittests/optional/assignment/3.cc: New file.
8052 * unittests/optional/assignment/4.cc: New file.
8053 * unittests/optional/assignment/5.cc: New file.
8054 * unittests/optional/assignment/6.cc: New file.
8055 * unittests/optional/assignment/7.cc: New file.
8056 * unittests/optional/cons/copy.cc: New file.
8057 * unittests/optional/cons/default.cc: New file.
8058 * unittests/optional/cons/move.cc: New file.
8059 * unittests/optional/cons/value.cc: New file.
8060 * unittests/optional/in_place.cc: New file.
8061 * unittests/optional/observers/1.cc: New file.
8062 * unittests/optional/observers/2.cc: New file.
8063
22796e97
PA
80642017-04-18 Pedro Alves <palves@redhat.com>
8065
8066 * common/gdb_optional.h: Include common/traits.h.
8067 (in_place_t): New type.
8068 (in_place): New constexpr variable.
8069 (optional::optional): Remove member initialization of
8070 m_instantiated.
8071 (optional::optional(in_place_t...)): New constructor.
8072 (optional::~optional): Use reset.
8073 (optional::optional(const optional&)): New.
8074 (optional::optional(const optional&&)): New.
8075 (optional::optional(T &)): New.
8076 (optional::optional(T &&)): New.
8077 (operator::operator=(const optional &)): New.
8078 (operator::operator=(optional &&)): New.
8079 (operator::operator= (const T &))
8080 (operator::operator= (T &&))
8081 (operator::emplace (Args &&... args)): Return a T&. Use reset.
8082 (operator::reset): New.
8083 (operator::m_instantiated):: Add in-class initializer.
8084 * common/traits.h: Include <type_traits>.
8085 (struct And): New types.
8086
a7fc9b61
PA
80872017-04-18 Pedro Alves <palves@redhat.com>
8088
8089 * xml-support.c: Include <vector>.
8090 (scope_level::scope_level(const gdb_xml_element *))
8091 (scope_level::scope_level(scope_level&&)): New.
8092 (scope_level::~scope_level): New.
8093 (scope_level_s): Delete.
8094 (gdb_xml_parser::scopes): Now a std::vector.
8095 (gdb_xml_body_text, gdb_xml_start_element, gdb_xml_end_element):
8096 Use std::vector.
8097 (gdb_xml_parser::~gdb_xml_parser): Remove now unnecessary
8098 scope cleanup code.
8099 (gdb_xml_parser::gdb_xml_parser): Remove explicit initialization
8100 of the scopes member. Use std::vector::emplace_back.
8101
010151c9
PA
81022017-04-18 Pedro Alves <palves@redhat.com>
8103
8104 * xml-support.c (gdb_xml_parser): Add ctor/dtor. Make is_xinclude
8105 a bool.
8106 (gdb_xml_end_element): Change type of first parameter.
8107 (gdb_xml_cleanup): Rename to ...
8108 (gdb_xml_parser::~gdb_xml_parser): ... this.
8109 (gdb_xml_create_parser_and_cleanup): Delete with ...
8110 (gdb_xml_parser::gdb_xml_parser): ... creation parts factored out
8111 to this new ctor.
8112 (gdb_xml_parse_quick): Create a local gdb_xml_parser instead of
8113 using gdb_xml_create_parser_and_cleanup.
8114 (xinclude_parsing_data): Add ctor/dtor.
8115 (xml_xinclude_cleanup): Delete.
8116 (xml_process_xincludes): Create a local xinclude_parsing_data
8117 instead of heap-allocating one. Create a local gdb_xml_parser
8118 instead of heap-allocating one with
8119 gdb_xml_create_parser_and_cleanup.
8120
d56060f0
JB
81212017-04-18 John Baldwin <jhb@FreeBSD.org>
8122
8123 PR threads/20743
8124 * fbsd-nat.c (resume_one_thread_cb): Remove.
8125 (resume_all_threads_cb): Remove.
8126 (fbsd_resume): Use ALL_NON_EXITED_THREADS instead of
8127 iterate_over_threads.
8128
305d16a9
JB
81292017-04-17 Joel Brobecker <brobecker@adacore.com>
8130
8131 * NEWS: Create a new section for the next release branch.
8132 Rename the section of the current branch, now that it has
8133 been cut.
8134
8bb57231
JB
81352017-04-17 Joel Brobecker <brobecker@adacore.com>
8136
8137 GDB 8.0 branch created (725bf5cf125783c2a7ca4ab63d3768e220bab2db):
8138 * version.in: Bump version to 8.0.50.DATE-git.
8139
096c92dd
SDJ
81402017-04-13 Sergio Durigan Junior <sergiodj@redhat.com>
8141
8142 PR gdb/21385
8143 * windows-nat.c (windows_create_inferior): Declare 'allargs'
8144 independently of the host, and fix build breakage on Cygwin.
8145
0550c955
PA
81462017-04-13 Pedro Alves <palves@redhat.com>
8147
8148 * inferior.c (free_inferior): Convert to ...
8149 (inferior::~inferior): ... this dtor.
8150 (inferior::inferior): New ctor, factored out from ...
8151 (add_inferior_silent): ... here. Allocate the inferior with a new
8152 expression.
8153 (delete_inferior): Call delete instead of free_inferior.
8154 * inferior.h (gdb_environ, continuation): Forward declare.
8155 (inferior): Now a class. Add in-class initialization to all
8156 members. Make boolean fields bool, except 'detaching'.
8157 (inferior::inferior): New explicit ctor.
8158 (inferior::~inferior): New.
8159
e3d60dfc
PA
81602017-04-13 Pedro Alves <palves@redhat.com>
8161
8162 * inferior.c (init_inferior_list): Delete.
8163 * inferior.h (init_inferior_list): Delete.
8164
5fd69d0a
PA
81652017-04-13 Pedro Alves <palves@redhat.com>
8166
8167 PR threads/13217
8168 * gdb.threads/threadapply.exp (thr_apply_detach): New procedure.
8169 (top level): Call it twice, with different thread sets.
8170
c6609450
PA
81712017-04-13 Pedro Alves <palves@redhat.com>
8172
8173 * thread.c: Include <algorithm>.
8174 (thread_array_cleanup): Delete.
8175 (scoped_inc_dec_ref): New class.
8176 (live_threads_count): New function.
8177 (set_thread_refcount): Delete.
8178 (tp_array_compar_ascending): Now a bool.
8179 (tp_array_compar): Convert to a std::sort comparison function.
8180 (thread_apply_all_command): Use std::vector and scoped_inc_dec_ref
8181 and live_threads_count.
8182
2a00d7ce
PA
81832017-04-13 Pedro Alves <palves@redhat.com>
8184
8185 * infrun.c (follow_fork_inferior): Also switch the current
8186 inferior.
8187
441d7c93
PA
81882017-04-13 Pedro Alves <palves@redhat.com>
8189
8190 * breakpoint.c (watch_command_1): Save watchpoint-frame info
8191 before calling create_internal_breakpoint.
8192
808480f6
PA
81932017-04-13 Pedro Alves <palves@redhat.com>
8194
8195 * fork-child.c (execv_argv): New class.
8196 (breakup_args): Refactored as ...
8197 (execv_argv::init_for_no_shell): .. this method of execv_argv.
8198 Copy arguments to storage and replace separators with NULL
8199 terminators in place.
8200 (escape_bang_in_quoted_argument): Adjust to return bool.
8201 (execv_argv::execv_argv): New ctor.
8202 (execv_argv::init_for_shell): New method, factored out from
8203 fork_inferior. Don't strdup strings into the vector.
8204 (fork_inferior): Eliminate "shell" local and use execv_argv. Use
8205 Remove free_vector_argv call.
8206
ad3d022a
YQ
82072017-04-13 Yao Qi <yao.qi@linaro.org>
8208
8209 * rx-tdep.c (rx_fpsw_type): Check tdep->rx_fpsw_type instead of
8210 tdep->rx_psw_type.
8211
e6ddc3bf
YQ
82122017-04-13 Yao Qi <yao.qi@linaro.org>
8213
8214 * rl78-tdep.c (rl78_gdbarch_init): Use XCNEW instead of XNEW.
8215 * rx-tdep.c (rx_gdbarch_init): Likewise.
8216
bfb8cf90
PA
82172017-04-13 Pedro Alves <palves@redhat.com>
8218
8219 * breakpoint.h (struct breakpoint): Reindent.
8220
f5336ca5
PA
82212017-04-13 Pedro Alves <palves@redhat.com>
8222
8223 * breakpoint.c (bp_location): Rename to ...
8224 (bp_locations): ... this. All references updated.
8225 (bp_location_count): Rename to ...
8226 (bp_locations_count): ... this. All references updated.
8227 (bp_location_placed_address_before_address_max): Rename to ...
8228 (bp_locations_placed_address_before_address_max): ... this. All
8229 references updated.
8230 (bp_location_shadow_len_after_address_max): Rename to ...
8231 (bp_locations_shadow_len_after_address_max): ... this. All
8232 references updated.
8233 (bp_location_compare_addrs): Rename to ...
8234 (bp_locations_compare_addrs): ... this. All references updated.
8235 (bp_location_compare):Rename to ...
8236 (bp_locations_compare): ... this. All references updated.
8237 (bp_location_target_extensions_update): Rename to ...
8238 (bp_locations_target_extensions_update): ... this. All references
8239 updated.
8240
be628ab8
SDJ
82412017-04-12 Sergio Durigan Junior <sergiodj@redhat.com>
8242
8243 * Makefile.in (HFILES_NO_SRCDIR): Add "common/gdb_termios.h".
8244 * common/common.m4: Check headers 'termios.h', 'termio.h' and
8245 'sgtty.h'.
8246 * common/gdb_termios.h: New file, with parts of "terminal.h".
8247 * inflow.c: Include "gdb_termios.h".
8248 * ser-unix.c: Include "gdb_termios.h".
8249 * terminal.h: Move terminal-related defines to
8250 "common/gdb_termios.h".
8251
8e9e35b1
TT
82522017-04-12 Tom Tromey <tom@tromey.com>
8253
8254 * probe.c (parse_probes): Update.
8255 * location.h (delete_event_location): Don't declare.
8256 (event_location_deleter::operator()): Update.
8257 * location.c (event_location_deleter::operator()): Rename from
8258 delete_event_location.
8259 * linespec.h (linespec_result) <location>: Change type to
8260 event_location_up.
8261 * linespec.c (canonicalize_linespec, event_location_to_sals)
8262 (decode_objc): Update.
8263 (linespec_result): Don't call delete_event_location.
8264 * breakpoint.c (create_breakpoints_sal)
8265 (bkpt_probe_create_sals_from_location)
8266 (strace_marker_create_sals_from_location): Update.
8267
16e802b9
TT
82682017-04-12 Tom Tromey <tom@tromey.com>
8269
8270 * linespec.h (struct linespec_result): Add constructor and
8271 destructor.
8272 (init_linespec_result, destroy_linespec_result)
8273 (make_cleanup_destroy_linespec_result): Don't declare.
8274 * linespec.c (init_linespec_result): Remove.
8275 (linespec_result::~linespec_result): Rename from
8276 destroy_linespec_result. Update.
8277 (cleanup_linespec_result, make_cleanup_destroy_linespec_result):
8278 Remove.
8279 * breakpoint.c (create_breakpoint, break_range_command)
8280 (decode_location_default): Update.
8281 * ax-gdb.c (agent_command_1): Update.
8282
d28cd78a
TT
82832017-04-12 Tom Tromey <tom@tromey.com>
8284
8285 * remote.c (remote_download_tracepoint): Update.
8286 * python/py-breakpoint.c (bppy_get_location): Update.
8287 * guile/scm-breakpoint.c (bpscm_print_breakpoint_smob)
8288 (gdbscm_breakpoint_location): Update.
8289 * elfread.c (elf_gnu_ifunc_resolver_return_stop): Update.
8290 * breakpoint.h (struct breakpoint) <location, location_range_end>:
8291 Change type to event_location_up.
8292 * breakpoint.c (create_overlay_event_breakpoint)
8293 (create_longjmp_master_breakpoint)
8294 (create_std_terminate_master_breakpoint)
8295 (create_exception_master_breakpoint)
8296 (breakpoint_event_location_empty_p, print_breakpoint_location)
8297 (print_one_breakpoint_location, create_thread_event_breakpoint)
8298 (init_breakpoint_sal, create_breakpoint)
8299 (print_recreate_ranged_breakpoint, break_range_command)
8300 (init_ada_exception_breakpoint, say_where): Update.
8301 (base_breakpoint_dtor): Don't call delete_event_location.
8302 (bkpt_print_recreate, tracepoint_print_recreate)
8303 (dprintf_print_recreate, update_static_tracepoint)
8304 (breakpoint_re_set_default): Update.
8305
711799d5
TT
83062017-04-12 Tom Tromey <tom@tromey.com>
8307
8308 * compile/compile-loc2c.c (compute_stack_depth_worker): Change
8309 type of "to_do". Update.
8310 (compute_stack_depth): Use std::vector.
8311
52d214d3
TT
83122017-04-12 Tom Tromey <tom@tromey.com>
8313
8314 * printcmd.c (find_instruction_backward): Use std::vector.
8315
4c404b8b
TT
83162017-04-12 Tom Tromey <tom@tromey.com>
8317
8318 * symfile.c (objfilep): Remove typedef.
8319 (reread_symbols): Use a std::vector.
8320
156d9eab
TT
83212017-04-12 Tom Tromey <tom@tromey.com>
8322
8323 * mi/mi-main.c (exec_direction_forward): Remove.
8324 (exec_reverse_continue, mi_execute_command): Use scoped_restore.
8325 * guile/scm-ports.c (ioscm_with_output_to_port_worker): Use
8326 scoped_restore.
8327 * guile/guile.c (guile_repl_command, guile_command)
8328 (gdbscm_execute_gdb_command): Use scoped_restore.
8329 * go-exp.y (go_parse): Use scoped_restore.
8330 * d-exp.y (d_parse): Use scoped_restore.
8331 * cli/cli-decode.c (cmd_func): Use scoped_restore.
8332 * c-exp.y (c_parse): Use scoped_restore.
8333
4d89769a
TT
83342017-04-12 Tom Tromey <tom@tromey.com>
8335
8336 * mi/mi-parse.h (struct mi_parse): Add constructor, destructor.
8337 (mi_parse): Update return type.
8338 (mi_parse_free): Remove.
8339 * mi/mi-parse.c (mi_parse::mi_parse): New constructor.
8340 (mi_parse::~mi_parse): Rename from mi_parse_free.
8341 (mi_parse_cleanup): Remove.
8342 (mi_parse): Return a unique_ptr. Use new.
8343 * mi/mi-main.c (mi_execute_command): Update.
8344
4b217cc7
TT
83452017-04-12 Tom Tromey <tom@tromey.com>
8346
8347 * location.c (explicit_location_lex_one): Return a
8348 unique_xmalloc_ptr.
8349 (string_to_explicit_location): Update. Remove cleanups.
8350
59d3651b
TT
83512017-04-12 Tom Tromey <tom@tromey.com>
8352
8353 * gnu-v3-abi.c (value_and_voffset_p): Remove typedef.
8354 (compare_value_and_voffset): Change type. Update.
8355 (compute_vtable_size): Change type of "offset_vec".
8356 (gnuv3_print_vtable): Use std::vector. Remove cleanups.
8357 (gnuv3_get_typeid): Remove extraneous declaration.
8358
b24b0d6c
TT
83592017-04-12 Tom Tromey <tom@tromey.com>
8360
8361 * charset.h (wchar_iterator): Fix comment.
8362
80a3b8c5
TT
83632017-04-12 Tom Tromey <tom@tromey.com>
8364
8365 * charset.c (iconv_wrapper): New class.
8366 (cleanup_iconv): Remove.
8367 (convert_between_encodings): Use it.
8368
c83dd867
TT
83692017-04-12 Tom Tromey <tom@tromey.com>
8370
8371 * symfile.h (increment_reading_symtab): Update type.
8372 * symfile.c (decrement_reading_symtab): Remove.
8373 (increment_reading_symtab): Return a scoped_restore_tmpl<int>.
8374 * psymtab.c (psymtab_to_symtab): Update.
8375 * dwarf2read.c (dw2_instantiate_symtab): Update.
8376
0e8621a0
TT
83772017-04-12 Tom Tromey <tom@tromey.com>
8378
8379 * jit.c (struct jit_reader): Declare separately. Add constructor
8380 and destructor. Change type of "handle".
8381 (loaded_jit_reader): Define separately.
8382 (jit_reader_load): Update. New "new".
8383 (jit_reader_unload_command): Use "delete".
8384 * gdb-dlfcn.h (struct dlclose_deleter): New.
8385 (gdb_dlhandle_up): New typedef.
8386 (gdb_dlopen, gdb_dlsym): Update types.
8387 (gdb_dlclose): Remove.
8388 * gdb-dlfcn.c (gdb_dlopen): Return a gdb_dlhandle_up.
8389 (gdb_dlsym): Change type of "handle".
8390 (make_cleanup_dlclose): Remove.
8391 (dlclose_deleter::operator()): Rename from gdb_dlclose.
8392 * compile/compile-c-support.c (load_libcc): Update.
8393
67d89901
TT
83942017-04-12 Tom Tromey <tom@tromey.com>
8395
8396 * symtab.h (find_pcs_for_symtab_line): Change return type.
8397 * symtab.c (find_pcs_for_symtab_line): Change return type.
8398 * python/py-linetable.c (build_line_table_tuple_from_pcs): Change
8399 type of "vec". Update.
8400 (ltpy_get_pcs_for_line): Update.
8401 * linespec.c (decode_digits_ordinary): Update.
8402
93921405
TT
84032017-04-12 Tom Tromey <tom@tromey.com>
8404
8405 * tracepoint.c (actions_command): Update.
8406 * python/python.c (python_command, python_interactive_command):
8407 Update.
8408 * mi/mi-cmd-break.c (mi_cmd_break_commands): Update.
8409 * guile/guile.c (guile_command): Update.
8410 * defs.h (read_command_lines, read_command_lines_1): Return
8411 command_line_up.
8412 (command_lines_deleter): New struct.
8413 (command_line_up): New typedef.
8414 * compile/compile.c (compile_code_command)
8415 (compile_print_command): Update.
8416 * cli/cli-script.h (get_command_line, copy_command_lines): Return
8417 command_line_up.
8418 (make_cleanup_free_command_lines): Remove.
8419 * cli/cli-script.c (get_command_line, read_command_lines_1)
8420 (copy_command_lines): Return command_line_up.
8421 (while_command, if_command, read_command_lines, define_command)
8422 (document_command): Update.
8423 (do_free_command_lines_cleanup, make_cleanup_free_command_lines):
8424 Remove.
8425 * breakpoint.h (breakpoint_set_commands): Change type of
8426 "commands".
8427 * breakpoint.c (breakpoint_set_commands): Change type of
8428 "commands". Update.
8429 (do_map_commands_command, update_dprintf_command_list)
8430 (create_tracepoint_from_upload): Update.
8431
ffc2605c
TT
84322017-04-12 Tom Tromey <tom@tromey.com>
8433
8434 * tracepoint.c (scope_info): Update.
8435 * spu-tdep.c (spu_catch_start): Update.
8436 * python/python.c (gdbpy_decode_line): Update.
8437 * python/py-finishbreakpoint.c (bpfinishpy_init): Update.
8438 * python/py-breakpoint.c (bppy_init): Update.
8439 * probe.c (parse_probes): Update.
8440 * mi/mi-cmd-break.c (mi_cmd_break_insert_1): Update.
8441 * location.h (event_location_deleter): New struct.
8442 (event_location_up): New typedef.
8443 (new_linespec_location, new_address_location, new_probe_location)
8444 (new_explicit_location, copy_event_location)
8445 (string_to_event_location, string_to_event_location_basic)
8446 (string_to_explicit_location): Update return type.
8447 (make_cleanup_delete_event_location): Remove.
8448 * location.c (new_linespec_location, new_address_location)
8449 (new_probe_location, new_explicit_location, copy_event_location):
8450 Return event_location_up.
8451 (delete_event_location_cleanup)
8452 (make_cleanup_delete_event_location): Remove.
8453 (string_to_explicit_location, string_to_event_location_basic)
8454 (string_to_event_location): Return event_location_up.
8455 * linespec.c (canonicalize_linespec, event_location_to_sals)
8456 (decode_line_with_current_source)
8457 (decode_line_with_last_displayed, decode_objc): Update.
8458 * guile/scm-breakpoint.c (gdbscm_register_breakpoint_x): Update.
8459 * completer.c (location_completer): Update.
8460 * cli/cli-cmds.c (edit_command, list_command): Update.
8461 * breakpoint.c (create_overlay_event_breakpoint)
8462 (create_longjmp_master_breakpoint)
8463 (create_std_terminate_master_breakpoint)
8464 (create_exception_master_breakpoint)
8465 (create_thread_event_breakpoint): Update.
8466 (init_breakpoint_sal): Update. Remove some dead code.
8467 (create_breakpoint_sal): Change type of "location". Update.
8468 (create_breakpoints_sal, create_breakpoint, break_command_1)
8469 (dprintf_command, break_range_command, until_break_command)
8470 (init_ada_exception_breakpoint)
8471 (strace_marker_create_sals_from_location)
8472 (update_static_tracepoint, trace_command, ftrace_command)
8473 (strace_command, create_tracepoint_from_upload): Update.
8474 * break-catch-throw.c (re_set_exception_catchpoint): Update.
8475 * ax-gdb.c (agent_command_1): Update.
8476
8f10c932
PA
84772017-04-12 Pedro Alves <palves@redhat.com>
8478
8479 * Makefile.in (ALL_TARGET_OBS): Add i386-go32-tdep.o.
8480 * configure.tgt: Handle i[34567]86-*-go32* and
8481 i[34567]86-*-msdosdjgpp*.
8482 * i386-tdep.c (i386_svr4_reg_to_regnum):
8483 Make extern.
8484 (i386_go32_init_abi, i386_coff_osabi_sniffer): Moved to
8485 i386-go32-tdep.c.
8486 (_initialize_i386_tdep): DJGPP bits moved to i386-go32-tdep.c.
8487 * i386-go32-tdep.c: New file.
8488 * i386-tdep.h (tdesc_i386_mmx, i386_svr4_reg_to_regnum): New
8489 declarations.
8490
0a31ccfb
SM
84912017-04-12 Simon Marchi <simon.marchi@ericsson.com>
8492
8493 * aix-thread.c (pd_status2str): Change return type to const char *.
8494
e9bb3fbb
PA
84952017-04-12 Pedro Alves <palves@redhat.com>
8496
8497 * i386-tdep.c (i386_elf_init_abi, i386_go32_init_abi): Remove
8498 calls to set_gdbarch_gnu_triplet_regexp.
8499
53375380
PA
85002017-04-12 Pedro Alves <palves@redhat.com>
8501
8502 PR gdb/21323
8503 * c-lang.c (cplus_primitive_types) <cplus_primitive_type_wchar_t>:
8504 New enum value.
8505 (cplus_language_arch_info): Register cplus_primitive_type_wchar_t.
8506 * gdbtypes.h (struct builtin_type) <builtin_wchar>: New field.
8507 * gdbtypes.c (gdbtypes_post_init): Create the "wchar_t" type.
8508 * gdbarch.sh (wchar_bit, wchar_signed): New per-arch values.
8509 * gdbarch.h, gdbarch.c: Regenerate.
8510 * aarch64-tdep.c (aarch64_gdbarch_init): Override
8511 gdbarch_wchar_bit and gdbarch_wchar_signed.
8512 * alpha-tdep.c (alpha_gdbarch_init): Likewise.
8513 * arm-tdep.c (arm_gdbarch_init): Likewise.
8514 * avr-tdep.c (avr_gdbarch_init): Likewise.
8515 * h8300-tdep.c (h8300_gdbarch_init): Likewise.
8516 * i386-nto-tdep.c (i386nto_init_abi): Likewise.
8517 * i386-tdep.c (i386_go32_init_abi): Likewise.
8518 * m32r-tdep.c (m32r_gdbarch_init): Likewise.
8519 * moxie-tdep.c (moxie_gdbarch_init): Likewise.
8520 * nds32-tdep.c (nds32_gdbarch_init): Likewise.
8521 * rs6000-aix-tdep.c (rs6000_aix_init_osabi): Likewise.
8522 * sh-tdep.c (sh_gdbarch_init): Likewise.
8523 * sparc-tdep.c (sparc32_gdbarch_init): Likewise.
8524 * sparc64-tdep.c (sparc64_init_abi): Likewise.
8525 * windows-tdep.c (windows_init_abi): Likewise.
8526 * xstormy16-tdep.c (xstormy16_gdbarch_init): Likewise.
8527
53e710ac
PA
85282017-04-12 Pedro Alves <palves@redhat.com>
8529
8530 PR c++/21323
8531 * c-lang.c (cplus_primitive_types) <cplus_primitive_type_char16_t,
8532 cplus_primitive_type_char32_t>: New enum values.
8533 (cplus_language_arch_info): Register cplus_primitive_type_char16_t
8534 and cplus_primitive_type_char32_t.
8535 * dwarf2read.c (read_base_type) <DW_ATE_UTF>: If bit size is 16 or
8536 32, use the archtecture's built-in type for char16_t and char32_t,
8537 respectively. Otherwise, fallback to init_integer_type as before,
8538 but make the type unsigned, and issue a complaint.
8539 * gdbtypes.c (gdbtypes_post_init): Make char16_t and char32_t unsigned.
8540
ab0538b8
AH
85412017-04-12 Alan Hayward <alan.hayward@arm.com>
8542
5e0e0422 8543 * m32r-tdep.c (M32R_ARG_REGISTER_SIZE): Added.
ab0538b8
AH
8544 (m32r_push_dummy_call): Use M32R_ARG_REGISTER_SIZE.
8545
5430098f
SDJ
85462017-04-12 Sergio Durigan Junior <sergiodj@redhat.com>
8547
8548 * windows-nat.c (windows_create_inferior): Declare 'toexec' as
8549 'const char *'.
8550
7c5ded6a
SDJ
85512017-04-12 Sergio Durigan Junior <sergiodj@redhat.com>
8552
8553 * common/common-utils.c (free_vector_argv): New function.
8554 * common/common-utils.h: Include <vector>.
8555 (free_vector_argv): New prototype.
8556 * darwin-nat.c (darwin_create_inferior): Rewrite function
8557 prototype in order to constify "exec_file" and accept a
8558 "std::string" for "allargs".
8559 * fork-child.c: Include <vector>.
8560 (breakup_args): Rewrite function, using C++.
8561 (fork_inferior): Rewrite function header, constify "exec_file_arg"
8562 and accept "std::string" for "allargs". Update the code to
8563 calculate "argv" based on "allargs". Update calls to "exec_fun"
8564 and "execvp".
8565 * gnu-nat.c (gnu_create_inferior): Rewrite function prototype in
8566 order to constify "exec_file" and accept a "std::string" for
8567 "allargs".
8568 * go32-nat.c (go32_create_inferior): Likewise.
8569 * inf-ptrace.c (inf_ptrace_create_inferior): Likewise.
8570 * infcmd.c (run_command_1): Constify "exec_file". Use
8571 "std::string" for inferior arguments.
8572 * inferior.h (fork_inferior): Update prototype.
8573 * linux-nat.c (linux_nat_create_inferior): Rewrite function
8574 prototype in order to constify "exec_file" and accept a
8575 "std::string" for "allargs".
8576 * nto-procfs.c (procfs_create_inferior): Likewise.
8577 * procfs.c (procfs_create_inferior): Likewise.
8578 * remote-sim.c (gdbsim_create_inferior): Likewise.
8579 * remote.c (extended_remote_run): Update code to accept
8580 "std::string" as argument.
8581 (extended_remote_create_inferior): Rewrite function prototype in
8582 order to constify "exec_file" and accept a "std::string" for
8583 "allargs".
8584 * rs6000-nat.c (super_create_inferior): Likewise.
8585 (rs6000_create_inferior): Likewise.
8586 * target.h (struct target_ops) <to_create_inferior>: Likewise.
8587 * windows-nat.c (windows_create_inferior): Likewise.
8588
ae0eee42
PA
85892017-04-11 Pedro Alves <palves@redhat.com>
8590
8591 * thread.c: Fix whitespace throughout.
8592
a6acac06
PR
85932017-04-11 Philipp Rudo <prudo@linux.vnet.ibm.com>
8594
8595 * linux-nat.c (linux_nat_detach): Remove delete_lwp call.
8596
64403bd1
AH
85972017-04-11 Alan Hayward <alan.hayward@arm.com>
8598
8599 * arm-tdep.c (arm_store_return_value): Use FP_REGISTER_SIZE
8600
a5bef50f
SDJ
86012017-04-10 Sergio Durigan Junior <sergiodj@redhat.com>
8602
8603 PR gdb/21364
8604 * osdata.c (info_osdata): Check if 'type' is an empty string
8605 instead of NULL.
8606
9295a5a9
PA
86072017-04-10 Pedro Alves <palves@redhat.com>
8608
8609 * thread.c (add_thread_silent, delete_thread_1, find_thread_ptid)
8610 (ptid_to_global_thread_id, in_thread_list)
8611 (do_captured_list_thread_ids, set_resumed, set_running)
8612 (set_executing, set_stop_requested, finish_thread_state)
8613 (validate_registers_access, can_access_registers_ptid)
8614 (print_thread_info_1, switch_to_thread)
8615 (do_restore_current_thread_cleanup)
8616 (make_cleanup_restore_current_thread, thread_command)
8617 (thread_name_command): Use operator== instead of ptid_equal.
8618
996812e3
PA
86192017-04-10 Pedro Alves <palves@redhat.com>
8620
8621 * thread.c (struct current_thread_cleanup) <next>: Delete field.
8622 (current_thread_cleanup_chain): Delete.
8623 (restore_current_thread_cleanup_dtor)
8624 (make_cleanup_restore_current_thread): Remove references to
8625 current_thread_cleanup_chain.
8626
845b344f
AH
86272017-04-10 Alan Hayward <alan.hayward@arm.com>
8628
8629 * msp430-tdep.c (msp430_pseudo_register_read): Never return
8630 REG_UNKNOWN.
8631
803bdfe4
YQ
86322017-04-10 Yao Qi <yao.qi@linaro.org>
8633
8634 PR gdb/19942
8635 * gdbthread.h (thread_info::deletable): New method.
8636 (thread_info::incref): New method.
8637 (thread_info::decref): New method.
8638 (thread_info::refcount): Move it to private.
8639 * infrun.c (save_stop_context): Call inc_refcount.
8640 (release_stop_context_cleanup): Likewise.
8641 * thread.c (set_thread_exited): New function.
8642 (init_thread_list): Delete "tp" only it is deletable, otherwise
8643 call set_thread_exited.
8644 (delete_thread_1): Call set_thread_exited.
8645 (current_thread_cleanup) <inferior_pid>: Remove.
8646 <thread>: New field.
8647 (restore_current_thread_ptid_changed): Removed.
8648 (do_restore_current_thread_cleanup): Adjust.
8649 (restore_current_thread_cleanup_dtor): Don't call
8650 find_thread_ptid.
8651 (set_thread_refcount): Use dec_refcount.
8652 (make_cleanup_restore_current_thread): Adjust.
8653 (thread_apply_all_command): Call inc_refcount.
8654 (_initialize_thread): Don't call
8655 observer_attach_thread_ptid_changed.
8656
8c25b497
YQ
86572017-04-10 Yao Qi <yao.qi@linaro.org>
8658
8659 * thread.c (delete_thread_1): Hoist code on marking thread as
8660 exited.
8661
8473b447
SM
86622017-04-09 Simon Marchi <simon.marchi@polymtl.ca>
8663
8664 * windows-nat.c (windows_detach): Initialize ptid with
8665 minus_one_ptid.
8666
6670ec13
SM
86672017-04-07 Simon Marchi <simon.marchi@ericsson.com>
8668
8669 * unittests/ptid-selftests.c: Fix erroneous assert messages.
8670
ba2f91bb
AH
86712017-04-07 Alan Hayward <alan.hayward@arm.com>
8672
8673 * bfin-tdep.c (BFIN_MAX_REGISTER_SIZE): Add.
8674 (bfin_pseudo_register_read): Use BFIN_MAX_REGISTER_SIZE.
8675 (bfin_pseudo_register_write): Likewise
8676
436252de
SM
86772017-04-06 Simon Marchi <simon.marchi@ericsson.com>
8678
8679 * common/ptid.h (struct ptid): Change to...
8680 (class ptid_t): ... this.
8681 <ptid_t>: New constructors.
8682 <pid, lwp_p, lwp, tid_p, tid, is_pid, operator==, operator!=,
8683 matches>: New methods.
8684 <make_null, make_minus_one>: New static methods.
8685 <pid>: Rename to...
8686 <m_pid>: ...this.
8687 <lwp>: Rename to...
8688 <m_lwp>: ...this.
8689 <tid>: Rename to...
8690 <m_tid>: ...this.
8691 (ptid_build, ptid_get_pid, ptid_get_lwp, ptid_get_tid, ptid_equal,
8692 ptid_is_pid, ptid_lwp_p, ptid_tid_p, ptid_match): Take ptid arguments
8693 as references, move comment to class ptid_t.
8694 * common/ptid.c (null_ptid, minus_one_ptid): Initialize with
8695 ptid_t static methods.
8696 (ptid_build, pid_to_ptid, ptid_get_pid, ptid_get_tid,
8697 ptid_equal, ptid_is_pid, ptid_lwp_p, ptid_tid_p, ptid_match):
8698 Take ptid arguments as references, implement using ptid_t methods.
8699 * unittests/ptid-selftests.c: New file.
8700 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
8701 unittests/ptid-selftests.c.
8702 (SUBDIR_UNITTESTS_OBS): Add unittests/ptid-selftests.o.
8703
0dedf377
TP
87042017-04-06 Thomas Preud'homme <thomas.preudhomme@arm.com>
8705
8706 * python/python.c (python_run_simple_file): Cast mode literal to
8707 non-const char pointer as expected by PyFile_FromString.
8708
4e9868d4
SM
87092017-04-05 Simon Marchi <simon.marchi@ericsson.com>
8710
8711 * common/ptid.c (ptid_lwp_p, ptid_tid_p): Remove comparison with
8712 minus_one_ptid and null_ptid.
8713
9bf2a700
PA
87142017-04-05 Pedro Alves <palves@redhat.com>
8715
8716 * warning.m4 (build_warnings): Remove -Wno-write-strings.
8717 * configure: Regenerate.
8718
a121b7c1
PA
87192017-04-05 Pedro Alves <palves@redhat.com>
8720
8721 * ada-exp.y (yyerror): Constify.
8722 * ada-lang.c (bound_name, get_selections)
8723 (ada_variant_discrim_type)
8724 (ada_variant_discrim_name, ada_value_struct_elt)
8725 (ada_lookup_struct_elt_type, is_unchecked_variant)
8726 (ada_which_variant_applies, standard_exc, ada_get_next_arg)
8727 (catch_ada_exception_command_split)
8728 (catch_ada_assert_command_split, catch_assert_command)
8729 (ada_op_name): Constify.
8730 * ada-lang.h (ada_yyerror, get_selections)
8731 (ada_variant_discrim_name, ada_value_struct_elt): Constify.
8732 * arc-tdep.c (arc_print_frame_cache): Constify.
8733 * arm-tdep.c (arm_skip_stub): Constify.
8734 * ax-gdb.c (gen_binop, gen_struct_ref_recursive, gen_struct_ref)
8735 (gen_aggregate_elt_ref): Constify.
8736 * bcache.c (print_bcache_statistics): Constify.
8737 * bcache.h (print_bcache_statistics): Constify.
8738 * break-catch-throw.c (catch_exception_command_1):
8739 * breakpoint.c (struct ep_type_description::description):
8740 Constify.
8741 (add_solib_catchpoint): Constify.
8742 (catch_fork_command_1): Add cast.
8743 (add_catch_command): Constify.
8744 * breakpoint.h (add_catch_command, add_solib_catchpoint):
8745 Constify.
8746 * bsd-uthread.c (bsd_uthread_state): Constify.
8747 * buildsym.c (patch_subfile_names): Constify.
8748 * buildsym.h (next_symbol_text_func, patch_subfile_names):
8749 Constify.
8750 * c-exp.y (yyerror): Constify.
8751 (token::oper): Constify.
8752 * c-lang.h (c_yyerror, cp_print_class_member): Constify.
8753 * c-varobj.c (cplus_describe_child): Constify.
8754 * charset.c (find_charset_names): Add cast.
8755 (find_charset_names): Constify array and add const_cast.
8756 * cli/cli-cmds.c (complete_command, cd_command): Constify.
8757 (edit_command): Constify.
8758 * cli/cli-decode.c (lookup_cmd): Constify.
8759 * cli/cli-dump.c (dump_memory_command, dump_value_command):
8760 Constify.
8761 (struct dump_context): Constify.
8762 (add_dump_command, restore_command): Constify.
8763 * cli/cli-script.c (get_command_line): Constify.
8764 * cli/cli-script.h (get_command_line): Constify.
8765 * cli/cli-utils.c (check_for_argument): Constify.
8766 * cli/cli-utils.h (check_for_argument): Constify.
8767 * coff-pe-read.c (struct read_pe_section_data): Constify.
8768 * command.h (lookup_cmd): Constify.
8769 * common/print-utils.c (decimal2str): Constify.
8770 * completer.c (gdb_print_filename): Constify.
8771 * corefile.c (set_gnutarget): Constify.
8772 * cp-name-parser.y (yyerror): Constify.
8773 * cp-valprint.c (cp_print_class_member): Constify.
8774 * cris-tdep.c (cris_register_name, crisv32_register_name):
8775 Constify.
8776 * d-exp.y (yyerror): Constify.
8777 (struct token::oper): Constify.
8778 * d-lang.h (d_yyerror): Constify.
8779 * dbxread.c (struct header_file_location::name): Constify.
8780 (add_old_header_file, add_new_header_file, last_function_name)
8781 (dbx_next_symbol_text, add_bincl_to_list)
8782 (find_corresponding_bincl_psymtab, set_namestring)
8783 (find_stab_function_addr, read_dbx_symtab, start_psymtab)
8784 (dbx_end_psymtab, read_ofile_symtab, process_one_symbol):
8785 * defs.h (command_line_input, print_address_symbolic)
8786 (deprecated_readline_begin_hook): Constify.
8787 * dwarf2read.c (anonymous_struct_prefix, dwarf_bool_name):
8788 Constify.
8789 * event-top.c (handle_line_of_input): Constify and add cast.
8790 * exceptions.c (catch_errors): Constify.
8791 * exceptions.h (catch_errors): Constify.
8792 * expprint.c (print_subexp_standard, op_string, op_name)
8793 (op_name_standard, dump_raw_expression, dump_raw_expression):
8794 * expression.h (op_name, op_string, dump_raw_expression):
8795 Constify.
8796 * f-exp.y (yyerror): Constify.
8797 (struct token::oper): Constify.
8798 (struct f77_boolean_val::name): Constify.
8799 * f-lang.c (f_word_break_characters): Constify.
8800 * f-lang.h (f_yyerror): Constify.
8801 * fork-child.c (fork_inferior): Add cast.
8802 * frv-tdep.c (struct gdbarch_tdep::register_names): Constify.
8803 (new_variant): Constify.
8804 * gdbarch.sh (pstring_ptr, pstring_list): Constify.
8805 * gdbarch.c: Regenerate.
8806 * gdbcore.h (set_gnutarget): Constify.
8807 * go-exp.y (yyerror): Constify.
8808 (token::oper): Constify.
8809 * go-lang.h (go_yyerror): Constify.
8810 * go32-nat.c (go32_sysinfo): Constify.
8811 * guile/scm-breakpoint.c (gdbscm_breakpoint_expression): Constify.
8812 * guile/scm-cmd.c (cmdscm_function): Constify.
8813 * guile/scm-param.c (pascm_param_value): Constify.
8814 * h8300-tdep.c (h8300_register_name, h8300s_register_name)
8815 (h8300sx_register_name): Constify.
8816 * hppa-tdep.c (hppa32_register_name, hppa64_register_name):
8817 Constify.
8818 * ia64-tdep.c (ia64_register_names): Constify.
8819 * infcmd.c (construct_inferior_arguments): Constify.
8820 (path_command, attach_post_wait): Constify.
8821 * language.c (show_range_command, show_case_command)
8822 (unk_lang_error): Constify.
8823 * language.h (language_defn::la_error)
8824 (language_defn::la_name_of_this): Constify.
8825 * linespec.c (decode_line_2): Constify.
8826 * linux-thread-db.c (thread_db_err_str): Constify.
8827 * lm32-tdep.c (lm32_register_name): Constify.
8828 * m2-exp.y (yyerror): Constify.
8829 * m2-lang.h (m2_yyerror): Constify.
8830 * m32r-tdep.c (m32r_register_names): Constify and make static.
8831 * m68hc11-tdep.c (m68hc11_register_names): Constify.
8832 * m88k-tdep.c (m88k_register_name): Constify.
8833 * macroexp.c (appendmem): Constify.
8834 * mdebugread.c (fdr_name, add_data_symbol, parse_type)
8835 (upgrade_type, parse_external, parse_partial_symbols)
8836 (mdebug_next_symbol_text, cross_ref, mylookup_symbol, new_psymtab)
8837 (new_symbol): Constify.
8838 * memattr.c (mem_info_command): Constify.
8839 * mep-tdep.c (register_name_from_keyword): Constify.
8840 * mi/mi-cmd-env.c (mi_cmd_env_path, _initialize_mi_cmd_env):
8841 Constify.
8842 * mi/mi-cmd-stack.c (list_args_or_locals): Constify.
8843 * mi/mi-cmd-var.c (mi_cmd_var_show_attributes): Constify.
8844 * mi/mi-main.c (captured_mi_execute_command): Constify and add
8845 cast.
8846 (mi_execute_async_cli_command): Constify.
8847 * mips-tdep.c (mips_register_name): Constify.
8848 * mn10300-tdep.c (register_name, mn10300_generic_register_name)
8849 (am33_register_name, am33_2_register_name)
8850 * moxie-tdep.c (moxie_register_names): Constify.
8851 * nat/linux-osdata.c (osdata_type): Constify fields.
8852 * nto-tdep.c (nto_parse_redirection): Constify.
8853 * objc-lang.c (lookup_struct_typedef, lookup_objc_class)
8854 (lookup_child_selector): Constify.
8855 (objc_methcall::name): Constify.
8856 * objc-lang.h (lookup_objc_class, lookup_child_selector)
8857 (lookup_struct_typedef): Constify.
8858 * objfiles.c (pc_in_section): Constify.
8859 * objfiles.h (pc_in_section): Constify.
8860 * p-exp.y (struct token::oper): Constify.
8861 (yyerror): Constify.
8862 * p-lang.h (pascal_yyerror): Constify.
8863 * parser-defs.h (op_name_standard): Constify.
8864 (op_print::string): Constify.
8865 (exp_descriptor::op_name): Constify.
8866 * printcmd.c (print_address_symbolic): Constify.
8867 * psymtab.c (print_partial_symbols): Constify.
8868 * python/py-breakpoint.c (stop_func): Constify.
8869 (bppy_get_expression): Constify.
8870 * python/py-cmd.c (cmdpy_completer::name): Constify.
8871 (cmdpy_function): Constify.
8872 * python/py-event.c (evpy_add_attribute)
8873 (gdbpy_initialize_event_generic): Constify.
8874 * python/py-event.h (evpy_add_attribute)
8875 (gdbpy_initialize_event_generic): Constify.
8876 * python/py-evts.c (add_new_registry): Constify.
8877 * python/py-finishbreakpoint.c (outofscope_func): Constify.
8878 * python/py-framefilter.c (get_py_iter_from_func): Constify.
8879 * python/py-inferior.c (get_buffer): Add cast.
8880 * python/py-param.c (parm_constant::name): Constify.
8881 * python/py-unwind.c (fprint_frame_id): Constify.
8882 * python/python.c (gdbpy_parameter_value): Constify.
8883 * remote-fileio.c (remote_fio_func_map): Make 'name' const.
8884 * remote.c (memory_packet_config::name): Constify.
8885 (show_packet_config_cmd, remote_write_bytes)
8886 (remote_buffer_add_string):
8887 * reverse.c (exec_reverse_once): Constify.
8888 * rs6000-tdep.c (variant::name, variant::description): Constify.
8889 * rust-exp.y (rustyyerror): Constify.
8890 * rust-lang.c (rust_op_name): Constify.
8891 * rust-lang.h (rustyyerror): Constify.
8892 * serial.h (serial_ops::name): Constify.
8893 * sh-tdep.c (sh_sh_register_name, sh_sh3_register_name)
8894 (sh_sh3e_register_name, sh_sh2e_register_name)
8895 (sh_sh2a_register_name, sh_sh2a_nofpu_register_name)
8896 (sh_sh_dsp_register_name, sh_sh3_dsp_register_name)
8897 (sh_sh4_register_name, sh_sh4_nofpu_register_name)
8898 (sh_sh4al_dsp_register_name): Constify.
8899 * sh64-tdep.c (sh64_register_name): Constify.
8900 * solib-darwin.c (lookup_symbol_from_bfd): Constify.
8901 * spu-tdep.c (spu_register_name, info_spu_dma_cmdlist): Constify.
8902 * stabsread.c (patch_block_stabs, read_type_number)
8903 (ref_map::stabs, ref_add, process_reference)
8904 (symbol_reference_defined, define_symbol, define_symbol)
8905 (error_type, read_type, read_member_functions, read_cpp_abbrev)
8906 (read_one_struct_field, read_struct_fields, read_baseclasses)
8907 (read_tilde_fields, read_struct_type, read_array_type)
8908 (read_enum_type, read_sun_builtin_type, read_sun_floating_type)
8909 (read_huge_number, read_range_type, read_args, common_block_start)
8910 (find_name_end): Constify.
8911 * stabsread.h (common_block_start, define_symbol)
8912 (process_one_symbol, symbol_reference_defined, ref_add):
8913 * symfile.c (get_section_index, add_symbol_file_command):
8914 * symfile.h (get_section_index): Constify.
8915 * target-descriptions.c (tdesc_type::name): Constify.
8916 (tdesc_free_type): Add cast.
8917 * target.c (find_default_run_target):
8918 (add_deprecated_target_alias, find_default_run_target)
8919 (target_announce_detach): Constify.
8920 (do_option): Constify.
8921 * target.h (add_deprecated_target_alias): Constify.
8922 * thread.c (print_thread_info_1): Constify.
8923 * top.c (deprecated_readline_begin_hook, command_line_input):
8924 Constify.
8925 (init_main): Add casts.
8926 * top.h (handle_line_of_input): Constify.
8927 * tracefile-tfile.c (tfile_write_uploaded_tsv): Constify.
8928 * tracepoint.c (tvariables_info_1, trace_status_mi): Constify.
8929 (tfind_command): Rename to ...
8930 (tfind_command_1): ... this and constify.
8931 (tfind_command): New function.
8932 (tfind_end_command, tfind_start_command): Adjust.
8933 (encode_source_string): Constify.
8934 * tracepoint.h (encode_source_string): Constify.
8935 * tui/tui-data.c (tui_partial_win_by_name): Constify.
8936 * tui/tui-data.h (tui_partial_win_by_name): Constify.
8937 * tui/tui-source.c (tui_set_source_content_nil): Constify.
8938 * tui/tui-source.h (tui_set_source_content_nil): Constify.
8939 * tui/tui-win.c (parse_scrolling_args): Constify.
8940 * tui/tui-windata.c (tui_erase_data_content): Constify.
8941 * tui/tui-windata.h (tui_erase_data_content): Constify.
8942 * tui/tui-winsource.c (tui_erase_source_content): Constify.
8943 * tui/tui.c (tui_enable): Add cast.
8944 * utils.c (defaulted_query): Constify.
8945 (init_page_info): Add cast.
8946 (puts_debug, subset_compare): Constify.
8947 * utils.h (subset_compare): Constify.
8948 * varobj.c (varobj_format_string): Constify.
8949 * varobj.h (varobj_format_string): Constify.
8950 * vax-tdep.c (vax_register_name): Constify.
8951 * windows-nat.c (windows_detach): Constify.
8952 * xcoffread.c (process_linenos, xcoff_next_symbol_text): Constify.
8953 * xml-support.c (gdb_xml_end_element): Constify.
8954 * xml-tdesc.c (tdesc_start_reg): Constify.
8955 * xstormy16-tdep.c (xstormy16_register_name): Constify.
8956 * xtensa-tdep.c (xtensa_find_register_by_name): Constify.
8957 * xtensa-tdep.h (xtensa_register_t::name): Constify.
8958
995816ba
PA
89592017-04-05 Pedro Alves <palves@redhat.com>
8960
8961 * proc-api.c (struct trans): Constify.
8962 (procfs_note): Constify.
8963 * proc-events.c (struct trans, syscall_table):
8964 * proc-flags.c (struct trans): Constify.
8965 * proc-utils.h (procfs_note): Constify.
8966 * proc-why.c (struct trans): Constify.
8967 * procfs.c (dead_procinfo, find_syscall, proc_warn, proc_error)
8968 (procfs_detach): Constify.
8969 * sol-thread.c (struct string_map): Constify.
8970 (td_err_string, td_state_string): Constify.
8971
3e83a920
PA
89722017-04-05 Pedro Alves <palves@redhat.com>
8973
8974 * proc-api.c (procfs_filename): Don't initialize
8975 procfs_filename.
8976 (prepare_to_trace): Assume procfs_filename is non-NULL.
8977 (_initialize_proc_api): Give procfs_filename a default value here.
8978
63160a43
PA
89792017-04-05 Pedro Alves <palves@redhat.com>
8980
8981 * break-catch-throw.c (handle_gnu_v3_exceptions): Constify
8982 'cond_string' parameter.
8983 (extract_exception_regexp): Constify 'string' parameter.
8984 (catch_exception_command_1): Constify.
8985 * breakpoint.c (init_catchpoint)
8986 (create_fork_vfork_event_catchpoint): Constify 'cond_string'
8987 parameter.
8988 (ep_parse_optional_if_clause, catch_fork_command_1)
8989 (catch_exec_command_1): Constify.
8990 * breakpoint.h (init_catchpoint): Constify 'cond_string'
8991 parameter.
8992 (ep_parse_optional_if_clause): Constify.
8993 * cli/cli-utils.c (remove_trailing_whitespace)
8994 (check_for_argument): Constify.
8995 * cli/cli-utils.h (remove_trailing_whitespace): Constify and add
8996 non-const overload.
8997 (check_for_argument): Likewise.
8998
9b2eba3d
PA
89992017-04-05 Pedro Alves <palves@redhat.com>
9000
9001 * event-top.c (command_line_handler): Add cast to execute_command
9002 call.
9003 * record-btrace.c (cmd_record_btrace_bts_start)
9004 (cmd_record_btrace_pt_start, cmd_record_btrace_start)
9005 (cmd_record_btrace_start): Add cast to execute_command call.
9006 * record-full.c (record_full_goto_insn):
9007 * record.c (record_start, record_stop): Add cast to
9008 execute_command_to_string calls.
9009 (cmd_record_start): Add cast to execute_command calls.
9010
2adadf51
PA
90112017-04-05 Pedro Alves <palves@redhat.com>
9012
9013 * python/python-internal.h (gdb_PyArg_ParseTupleAndKeywords): New
9014 static inline function.
9015 * python/py-arch.c (archpy_disassemble): Constify 'keywords'
9016 array and use gdb_PyArg_ParseTupleAndKeywords.
9017 * python/py-cmd.c (cmdpy_init): Likewise.
9018 * python/py-finishbreakpoint.c (bpfinishpy_init): Likewise.
9019 * python/py-inferior.c (infpy_read_memory, infpy_write_memory)
9020 (infpy_search_memory): Likewise.
9021 * python/py-objfile.c (objfpy_add_separate_debug_file)
9022 (gdbpy_lookup_objfile): Likewise.
9023 * python/py-symbol.c (gdbpy_lookup_symbol)
9024 (gdbpy_lookup_global_symbol): Likewise.
9025 * python/py-type.c (gdbpy_lookup_type): Likewise.
9026 * python/py-value.c (valpy_lazy_string, valpy_string): Likewise.
9027 * python/python.c (execute_gdb_command, gdbpy_write, gdbpy_flush):
9028 Likewise.
9029
0d1f4ceb
PA
90302017-04-05 Pedro Alves <palves@redhat.com>
9031
9032 * python/python-internal.h (gdb_PyGetSetDef): New type.
9033 * python/py-block.c (block_object_getset)
9034 (breakpoint_object_getset): Now a gdb_PyGetSetDef array.
9035 * python/py-event.c (event_object_getset)
9036 (finish_breakpoint_object_getset): Likewise.
9037 * python/py-inferior.c (inferior_object_getset): Likewise.
9038 * python/py-infthread.c (thread_object_getset): Likewise.
9039 * python/py-lazy-string.c (lazy_string_object_getset): Likewise.
9040 * python/py-linetable.c (linetable_entry_object_getset): Likewise.
9041 * python/py-objfile.c (objfile_getset): Likewise.
9042 * python/py-progspace.c (pspace_getset): Likewise.
9043 * python/py-record-btrace.c (btpy_insn_getset, btpy_call_getset):
9044 Likewise.
9045 * python/py-record.c (recpy_record_getset): Likewise.
9046 * python/py-symbol.c (symbol_object_getset): Likewise.
9047 * python/py-symtab.c (symtab_object_getset, sal_object_getset):
9048 Likewise.
9049 * python/py-type.c (type_object_getset, field_object_getset):
9050 Likewise.
9051 * python/py-value.c (value_object_getset): Likewise.
9052
4d759979
PA
90532017-04-05 Pedro Alves <palves@redhat.com>
9054
9055 * python/python-internal.h (gdb_PyObject_CallMethod)
9056 (gdb_PyErr_NewException, gdb_PySys_GetObject, gdb_PySys_SetPath):
9057 New functions.
9058 (GDB_PYSYS_SETPATH_CHAR, PyObject_CallMethod, PyErr_NewException)
9059 (PySys_GetObject, PySys_SetPath): New macros.
9060
fdf9e36f
PA
90612017-04-05 Pedro Alves <palves@redhat.com>
9062
9063 * mi/mi-cmd-info.c (mi_cmd_info_os): Call info_osdata instead of
9064 info_osdata_command.
9065 * osdata.c (info_osdata_command): Rename to ...
9066 (info_osdata): ... this. Constify 'type' parameter, and remove
9067 the 'from_tty' parameter. Accept NULL TYPE.
9068 (info_osdata_command): New function.
9069 * osdata.h (info_osdata_command): Remove declaration.
9070 (info_osdata): New declaration.
9071
9f33b8b7
PA
90722017-04-05 Pedro Alves <palves@redhat.com>
9073
9074 * mi/mi-cmd-break.c (mi_cmd_break_insert_1, mi_cmd_break_insert)
9075 (mi_cmd_dprintf_insert, mi_cmd_break_passcount)
9076 (mi_cmd_break_watch, mi_cmd_break_commands): Constify 'command'
9077 parameter.
9078 * mi/mi-cmd-catch.c (mi_cmd_catch_assert, mi_cmd_catch_exception)
9079 (mi_cmd_catch_load, mi_cmd_catch_unload): Constify cmd' parameter.
9080 * mi/mi-cmd-disas.c (mi_cmd_disassemble): Constify 'command'
9081 parameter.
9082 * mi/mi-cmd-env.c (mi_cmd_env_pwd, mi_cmd_env_cd, mi_cmd_env_path)
9083 (mi_cmd_env_dir, mi_cmd_inferior_tty_set, _cmd_inferior_tty_show)
9084 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_file)
9085 (mi_cmd_file_list_exec_source_files)
9086 (mi_cmd_file_list_shared_libraries): Constify 'command' parameter.
9087 * mi/mi-cmd-info.c (mi_cmd_info_ada_exceptions)
9088 (mi_cmd_info_gdb_mi_command, mi_cmd_info_os): Constify 'command'
9089 parameter.
9090 * mi/mi-cmd-stack.c (mi_cmd_enable_frame_filters)
9091 (mi_cmd_stack_list_frames, mi_cmd_stack_info_depth)
9092 (mi_cmd_stack_list_locals, mi_cmd_stack_list_args)
9093 (mi_cmd_stack_list_variables, mi_cmd_stack_select_frame)
9094 (mi_cmd_stack_info_frame): Constify 'command' parameter.
9095 * mi/mi-cmd-target.c (mi_cmd_target_file_get)
9096 (mi_cmd_target_file_put, mi_cmd_target_file_delete): Constify
9097 'command' parameter.
9098 * mi/mi-cmd-var.c (mi_cmd_var_create, mi_cmd_var_delete)
9099 (mi_cmd_var_set_format, mi_cmd_var_set_visualizer)
9100 (mi_cmd_var_set_frozen, mi_cmd_var_show_format)
9101 (mi_cmd_var_info_num_children, mi_cmd_var_list_children)
9102 (mi_cmd_var_info_type, mi_cmd_var_info_path_expression)
9103 (mi_cmd_var_info_expression, mi_cmd_var_show_attributes)
9104 (mi_cmd_var_evaluate_expression, mi_cmd_var_assign)
9105 (mi_cmd_var_update, mi_cmd_enable_pretty_printing)
9106 (mi_cmd_var_set_update_range): Constify 'command' parameter.
9107 * mi/mi-cmds.h (mi_cmd_argv_ftype): Constify 'command' parameter.
9108 * mi/mi-interp.c (mi_cmd_interpreter_exec): Constify 'command'
9109 parameter.
9110 * mi/mi-main.c (mi_cmd_gdb_exit, mi_cmd_exec_next)
9111 (mi_cmd_exec_next_instruction, mi_cmd_exec_step)
9112 (mi_cmd_exec_step_instruction, mi_cmd_exec_finish)
9113 (mi_cmd_exec_return ,mi_cmd_exec_jump, mi_cmd_exec_continue)
9114 (mi_cmd_exec_interrupt, mi_cmd_exec_run, mi_cmd_target_detach)
9115 (mi_cmd_target_flash_erase, mi_cmd_thread_select)
9116 (mi_cmd_thread_list_ids, mi_cmd_thread_info)
9117 (mi_cmd_list_thread_groups, mi_cmd_data_list_register_names)
9118 (mi_cmd_data_list_changed_registers)
9119 (mi_cmd_data_write_register_values)
9120 (mi_cmd_data_evaluate_expression, mi_cmd_data_read_memory)
9121 (mi_cmd_data_read_memory_bytes, mi_cmd_data_write_memory)
9122 (mi_cmd_data_write_memory_bytes, mi_cmd_enable_timings)
9123 (mi_cmd_list_features, mi_cmd_list_target_features)
9124 (mi_cmd_add_inferior, mi_cmd_remove_inferior)
9125 (mi_cmd_trace_define_variable, mi_cmd_trace_list_variables)
9126 (mi_cmd_trace_find, mi_cmd_trace_save, mi_cmd_trace_start)
9127 (mi_cmd_trace_status, mi_cmd_trace_stop, mi_cmd_ada_task_info)
9128 (mi_cmd_trace_frame_collected): Constify 'command'
9129 parameter.
9130 * mi/mi-symbol-cmds.c (mi_cmd_symbol_list_lines): Constify
9131 'command' parameter.
9132
67cb5b2d
PA
91332017-04-05 Pedro Alves <palves@redhat.com>
9134
9135 * ada-lang.c (ada_completer_word_break_characters): Now a const
9136 array.
9137 (ada_get_gdb_completer_word_break_characters): Constify.
9138 * completer.c (gdb_completer_command_word_break_characters)
9139 (gdb_completer_file_name_break_characters)
9140 (gdb_completer_quote_characters): Now const arrays.
9141 (get_gdb_completer_quote_characters): Constify.
9142 (set_rl_completer_word_break_characters): New function.
9143 (set_gdb_completion_word_break_characters)
9144 (complete_line_internal): Use it.
9145 * completer.h (get_gdb_completer_quote_characters): Constify.
9146 (set_rl_completer_word_break_characters): Declare.
9147 * f-lang.c (f_word_break_characters): Constify.
9148 * language.c (default_word_break_characters): Constify.
9149 * language.h (language_defn::la_word_break_characters): Constify.
9150 (default_word_break_characters): Constify.
9151 * top.c (init_main): Use set_rl_completer_word_break_characters.
9152
7a114964
PA
91532017-04-05 Pedro Alves <palves@redhat.com>
9154
9155 * aix-thread.c (aix_thread_pid_to_str)
9156 (aix_thread_extra_thread_info): Constify.
9157 * bsd-kvm.c (bsd_kvm_pid_to_str): Constify.
9158 * bsd-uthread.c (bsd_uthread_extra_thread_info)
9159 (bsd_uthread_pid_to_str): Constify.
9160 * corelow.c (core_pid_to_str): Constify.
9161 * darwin-nat.c (darwin_pid_to_str): Constify.
9162 * fbsd-nat.c (fbsd_pid_to_str): Constify.
9163 * fbsd-tdep.c (fbsd_core_pid_to_str, gdbarch_core_pid_to_str):
9164 Constify.
9165 * gnu-nat.c (gnu_pid_to_str): Constify.
9166 * go32-nat.c (go32_pid_to_str): Constify.
9167 * i386-cygwin-tdep.c (i386_windows_core_pid_to_str): Constify.
9168 * inf-ptrace.c (inf_ptrace_pid_to_str): Constify.
9169 * inferior.c (inferior_pid_to_str): Constify.
9170 * linux-nat.c (linux_nat_pid_to_str): Constify.
9171 * linux-tdep.c (linux_core_pid_to_str): Constify.
9172 * linux-thread-db.c (thread_db_pid_to_str)
9173 (thread_db_extra_thread_info): Constify.
9174 * nto-tdep.c (nto_extra_thread_info): Constify.
9175 * nto-tdep.h (nto_extra_thread_info): Constify.
9176 * obsd-nat.c (obsd_pid_to_str): Constify.
9177 * procfs.c (procfs_pid_to_str): Constify.
9178 * ravenscar-thread.c (ravenscar_extra_thread_info)
9179 (ravenscar_pid_to_str): Constify.
9180 * remote-sim.c (gdbsim_pid_to_str): Constify.
9181 * remote.c (remote_threads_extra_info, remote_pid_to_str):
9182 Constify.
9183 * sol-thread.c (solaris_pid_to_str): Constify.
9184 * sol2-tdep.c (sol2_core_pid_to_str): Constify.
9185 * sol2-tdep.h (sol2_core_pid_to_str): Constify.
9186 * target.c (default_pid_to_str, target_pid_to_str)
9187 (normal_pid_to_str, default_pid_to_str): Constify.
9188 * target.h (target_ops::to_pid_to_str)
9189 (target_ops::to_extra_thread_info): Constify.
9190 (target_pid_to_str, normal_pid_to_str): Constify.
9191 * windows-nat.c (windows_pid_to_str): Constify.
9192 * gdbarch.sh (core_pid_to_str): Constify.
9193 * target-delegates.c: Regenerate.
9194 * gdbarch.h, gdbarch.c: Regenerate.
9195
69bbf465
PA
91962017-04-05 Pedro Alves <palves@redhat.com>
9197
9198 * main.c (captured_main_1): Use gdb::unique_xmalloc_ptr to manage
9199 the memory of the temporary warning_pre_print override.
9200 * utils.c (warning_pre_print): Constify.
9201 * utils.h (warning_pre_print): Constify.
9202
be47f9e8
PA
92032017-04-05 Pedro Alves <palves@redhat.com>
9204
9205 * cli/cli-cmds.c (shell_escape): Constify 'arg' parameter.
9206 (shell_command): New function.
9207 (make_command): Use std::string.
9208 (init_cli_cmds): Register shell_command instead of shell_escape.
9209
bde6261a
PA
92102017-04-05 Pedro Alves <palves@redhat.com>
9211
9212 * breakpoint.c (dprintf_function, dprintf_channel): Don't initialize.
9213 * tracepoint.c (default_collect): Don't initialize.
9214
b38ef47f
PA
92152017-04-05 Pedro Alves <palves@redhat.com>
9216
9217 * macroexp.c (macro_buffer::shared): Now a bool.
9218 (init_buffer): Update.
9219 (init_shared_buffer): Constify 'addr' parameter.
9220 (substitute_args, expand, macro_expand, macro_expand_next): Remove
9221 casts.
9222
f995bbe8
PA
92232017-04-05 Pedro Alves <palves@redhat.com>
9224
9225 * arm-tdep.c (show_disassembly_style_sfunc): Constify local.
9226 * disasm.c (set_disassembler_options): Constify local.
9227 * i386-tdep.c (i386_print_insn): Remove cast and FIXME comment.
9228
4a596fe2
SDJ
92292017-04-05 Sergio Durigan Junior <sergiodj@redhat.com>
9230
9231 PR gdb/21352
9232 * tracefile.c (tsave_command): Fix argument parsing for '-r'
9233 option.
9234
2cad08ea
YQ
92352017-04-05 Yao Qi <yao.qi@linaro.org>
9236
9237 * frame.c (frame_unwind_register_unsigned): Call
9238 frame_unwind_register_value.
9239
55a98976
YQ
92402017-04-05 Yao Qi <yao.qi@linaro.org>
9241
9242 * gdb.threads/thread-specific-bp.exp (check_thread_specific_breakpoint):
9243 Use gdb_test_multiple, and don't match anchor.
9244
4ac40124
PA
92452017-04-05 Pedro Alves <palves@redhat.com>
9246
9247 * MAINTAINERS (Global Maintainers): Add Simon Marchi.
9248 (Write After Approval): Remove Simon Marchi.
9249
c053b654
PA
92502017-04-05 Pedro Alves <palves@redhat.com>
9251
9252 * common/gdb_optional.h (optional::optional): Make constexpr and
9253 initialize m_dummy.
9254
4c7bf4f9
JB
92552017-04-04 John Baldwin <jhb@FreeBSD.org>
9256
9257 * amd64-fbsd-tdep.c: Remove "bsd-uthread.h" include.
9258 (amd64fbsd_jmp_buf_reg_offset): Remove.
9259 (amd64fbsd_supply_uthread): Remove function.
9260 (amd64fbsd_collect_uthread): Remove function.
9261 (amd64fbsd_init_abi): Don't set bsd-uthread callbacks.
9262 * configure.tgt (i[34567]86-*-freebsd*): Remove bsd-uthread.o.
9263 (x86_64-*-freebsd*): Remove bsd-uthread.o.
9264 (fbsd-nat.c): Update comment.
9265 * i386-fbsd-tdep.c: Remove "bsd-uthread.h" include.
9266 (i386fbsd_jmp_buf_reg_offset): Remove.
9267 (i386fbsd_supply_uthread): Remove function.
9268 (i386fbsd_collect_uthread): Remove function.
9269 (i386fbsd_init_abi): Don't set bsd-uthread callbacks.
9270
1e1a8bef
JB
92712017-04-04 John Baldwin <jhb@FreeBSD.org>
9272
9273 * Makefile.in (ALL_64_TARGET_OBS): Remove alpha-fbsd-tdep.o.
9274 (ALLDEPFILES): Remove alpha-fbsd-tdep.c
9275 * NEWS: Mention that support for FreeBSD/alpha was removed.
9276 * alpha-fbsd-tdep.c: Delete file.
9277 * config/alpha/fbsd.mh: Delete file.
9278 * configure.host: Delete alpha*-*-freebsd* and
9279 alpha*-*-kfreebsd*-gnu.
9280 * configure.tgt: Delete alpha*-*-freebsd* and
9281 alpha*-*-kfreebsd*-gnu.
9282
49907934
JB
92832017-04-04 John Baldwin <jhb@FreeBSD.org>
9284
9285 * amd64-bsd-nat.c (amd64bsd_fetch_inferior_registers,
9286 amd64bsd_store_inferior_registers): Use ptid from regcache.
9287
6f77053d
PA
92882017-04-04 Pedro Alves <palves@redhat.com>
9289
9290 * dwarf2read.c (lnp_state_machine): Now a class. Initialize all
9291 data fields, make them private and add "m_" prefixes.
9292 (lnp_state_machine::lnp_state_machine): New ctor.
9293 (record_line, check_line_address, handle_set_discriminator)
9294 (handle_set_address, handle_advance_pc, handle_special_opcode)
9295 (handle_advance_line, handle_set_file, handle_negate_stmt)
9296 (handle_const_add_pc, handle_fixed_advance_pc, handle_copy)
9297 (end_sequence, advance_line): New methods.
9298 (m_gdbarch, m_record_lines_p): New fields.
9299 (lnp_reader_state): Delete.
9300 (dwarf_record_line): Rename to ...
9301 (lnp_state_machine::record_line): ... adjust.
9302 (init_lnp_state_machine): Delete.
9303 (lnp_state_machine::lnp_state_machine): New.
9304 (check_line_address): Rename to ...
9305 (lnp_state_machine::check_line_address): This.
9306 (dwarf_decode_lines_1): Remove reference to "reader_state".
9307 Adjust lnp_state_machine having a non-default ctor. Use bool.
9308 State machine internal state manipulation moved to
9309 lnp_state_machine methods.
9310
9c541725
PA
93112017-04-04 Pedro Alves <palves@redhat.com>
9312
9313 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
9314 unittests/offset-type-selftests.c.
9315 (SUBDIR_UNITTESTS_OBS): Add offset-type-selftests.o.
9316 * common/offset-type.h: New file.
9317 * common/preprocessor.h: New file.
9318 * common/traits.h: New file.
9319 * common/valid-expr.h: New file.
9320 * dwarf2expr.c: Include "common/underlying.h". Adjust to use
9321 sect_offset and cu_offset strong typedefs throughout.
9322 * dwarf2expr.h: Adjust to use sect_offset and cu_offset strong
9323 typedefs throughout.
9324 * dwarf2loc.c: Include "common/underlying.h". Adjust to use
9325 sect_offset and cu_offset strong typedefs throughout.
9326 * dwarf2read.c: Adjust to use sect_offset and cu_offset strong
9327 typedefs throughout.
9328 * gdbtypes.h: Include "common/offset-type.h".
9329 (cu_offset): Now an offset type (strong typedef) instead of a
9330 struct.
9331 (sect_offset): Likewise.
9332 (union call_site_parameter_u): Rename "param_offset" field to
9333 "param_cu_off".
9334 * unittests/offset-type-selftests.c: New file.
9335
ecfb656c
PA
93362017-04-04 Pedro Alves <palves@redhat.com>
9337
9338 * common/underlying.h: New file.
9339 * dwarf2read.c: Include "common/gdb_optional.h" and
9340 "common/underlying.h".
9341 (dir_index, file_name_index): New types.
9342 (file_entry): Use them.
9343 (file_entry::include): Use to_underlying.
9344 (line_header::add_file_name): Use dir_index.
9345 (read_formatted_entries): Use gdb::optional. Read form before
9346 writting to file_entry.
9347 (dwarf_decode_line_header): Use dir_index.
9348 (lnp_state_machine::current_file): Use to_underlying.
9349 (lnp_state_machine::file): Change type to file_name_index.
9350 (dwarf_record_line): Use to_underlying.
9351 (init_lnp_state_machine): Use file_name_index.
9352 (dwarf_decode_lines_1): Use dir_index and file_name_index.
9353
d194f1fe
PA
93542017-04-04 Pedro Alves <palves@redhat.com>
9355
9356 * common/gdb_optional.h (gdb::optiona): Add operator->, operator*,
9357 operator bool, has_value and get methods.
9358
fff8551c
PA
93592017-04-04 Pedro Alves <palves@redhat.com>
9360
9361 * dwarf2read.c (struct file_entry): Add ctors, and initialize all
9362 fields.
9363 (line_header): Initialize all data fields. Change type of
9364 standard_opcode_lengths to std::unique_ptr<unsigned char[]>.
9365 Change type of include_dirs to std::vector<const char *>. Remove
9366 num_include_dirs, include_dirs_size. Change type of file_names to
9367 std::vector<file_entry>. Remove num_file_names, file_names_size.
9368 (line_header::line_header): New.
9369 (line_header::add_include_dir, line_header::add_file_name): New
9370 methods.
9371 (line_header::include_dir_at): Remove NULL check.
9372 (line_header::file_name_at): Add const overload.
9373 (line_header_up): New unique_ptr typedef.
9374 (dw2_get_file_names_reader): Use line_header_up. Adjust to use
9375 std::vector. Remove free_line_header call.
9376 (dwarf2_build_include_psymtabs): Use line_header_up. Remove
9377 free_line_header call.
9378 (free_cu_line_header): Delete.
9379 (handle_DW_AT_stmt_list, handle_DW_AT_stmt_list)
9380 (setup_type_unit_groups): Use line_header_up instead of cleanups.
9381 Adjust to use std::vector.
9382 (free_line_header): Delete.
9383 (free_line_header_voidp): Use delete.
9384 (add_include_dir): Replace with ...
9385 (line_header::add_include_dir): ... this method. Use std::vector.
9386 (add_file_name): Replace with ...
9387 (line_header::add_file_name): ... this method. Use std::vector.
9388 (add_include_dir_stub): Delete.
9389 (read_formatted_entries): Remove memset.
9390 (dwarf_decode_line_header): Return a line_header_up instead of a
9391 raw pointer. Remove cleanup handling. Pass lambdas to
9392 read_formatted_entries. Adjust to use line_header methods.
9393 (dwarf_decode_lines_1): Adjust to use line_header methods.
9394 (dwarf_decode_lines, file_file_name, file_full_name): Adjust to
9395 use std::vector.
9396
d62a8ae2
SM
93972017-04-04 Simon Marchi <simon.marchi@polymtl.ca>
9398
9399 * remote.c (set_general_thread, set_continue_thread): Use ptid_t
9400 instead of struct ptid.
9401
db3a1dc7
AH
94022017-05-04 Alan Hayward <alan.hayward@arm.com>
9403
9404 * frame.c (get_frame_register_bytes): Unwind using value.
9405 (put_frame_register_bytes): Likewise.
9406
b1b45502
IB
94072017-03-30 Iain Buclaw <ibuclaw@gdcproject.org>
9408
9409 * d-exp.y (type_aggregate_p): Treat TYPE_CODE_MODULE as being
9410 aggregate-like.
9411
ec13808e
JK
94122017-03-29 Jan Kratochvil <jan.kratochvil@redhat.com>
9413
9414 * auto-load.c (auto_load_section_scripts): Check SEC_HAS_CONTENTS.
9415
12316564
YQ
94162017-03-29 Yao Qi <yao.qi@linaro.org>
9417
9418 * gdbthread.h (struct thread_info): Declare constructor and
9419 destructor. Add some in-class member initializers.
9420 * thread.c (free_thread): Remove.
9421 (init_thread_list): Call delete instead of free_thread.
9422 (new_thread): Call thread_info constructor.
9423 (thread_info::thread_info): New function.
9424 (thread_info::~thread_info): New function.
9425 (delete_thread_1): Call delete instead of free_thread.
9426 (make_cleanup_restore_current_thread): Move tp and frame to
9427 inner block.
9428
fe5f7374
AK
94292017-03-28 Anton Kolesov <anton.kolesov@synopsys.com>
9430
9431 * arc-tdep.c (arc_frame_cache): Add support for prologue analysis.
9432 (arc_skip_prologue): Likewise.
9433 (arc_make_frame_cache): Likewise.
9434 (arc_pv_get_operand): New function.
9435 (arc_is_in_prologue): Likewise.
9436 (arc_analyze_prologue): Likewise.
9437 (arc_print_frame_cache): Likewise.
9438 (MAX_PROLOGUE_LENGTH): New constant.
9439
eea78757
AK
94402017-03-28 Anton Kolesov <anton.kolesov@synopsys.com>
9441
9442 * configure.tgt: Add arc-insn.o.
9443 * arc-tdep.c (arc_delayed_print_insn): Make non-static.
9444 (dump_arc_instruction_command): New function.
9445 (arc_fprintf_disasm): Likewise.
9446 (arc_disassemble_info): Likewise.
9447 (arc_insn_get_operand_value): Likewise.
9448 (arc_insn_get_operand_value_signed): Likewise.
9449 (arc_insn_get_memory_base_reg): Likewise.
9450 (arc_insn_get_memory_offset): Likewise.
9451 (arc_insn_get_branch_target): Likewise.
9452 (arc_insn_dump): Likewise.
9453 (arc_insn_get_linear_next_pc): Likewise.
9454 * arc-tdep.h (arc_delayed_print_insn): Add function declaration.
9455 (arc_disassemble_info): Likewise.
9456 (arc_insn_get_branch_target): Likewise.
9457 (arc_insn_get_linear_next_pc): Likewise.
9458 * NEWS: Mention new "maint print arc arc-instruction".
9459
3be78afd
AK
94602017-03-28 Anton Kolesov <anton.kolesov@synopsys.com>
9461
9462 * arc-tdep (maintenance_print_arc_list): New variable.
9463 (maintenance_print_arc_command): New function.
9464
296ec4fa
AK
94652017-03-28 Anton Kolesov <anton.kolesov@synopsys.com>
9466
9467 * arc-tdep.c (core_v2_register_names, core_arcompact_register_names)
9468 Add "limm" and "reserved".
9469 (arc_cannot_fetch_register, arc_cannot_store_register): Add
9470 ARC_RESERVED_REGNUM and ARC_LIMM_REGNUM.
9471 * arc-tdep.h (arc_regnum): Likewise.
9472
f74f865e
MF
94732017-03-27 Max Filippov <jcmvbkbc@gmail.com>
9474
9475 * xtensa-linux-nat.c (fill_gregset): Call regcache_raw_collect
9476 for THREADPTR register.
9477 (supply_gregset_reg): Call regcache_raw_supply for THREADPTR
9478 register.
9479 * xtensa-tdep.c (XTENSA_DBREGN_UREG): New definition.
9480 (xtensa_derive_tdep): Initialize tdep->threadptr_regnum.
9481 * xtensa-tdep.h (gdbarch_tdep::threadptr_regnum): New field.
9482
0d0bf81a
MF
94832017-03-27 Max Filippov <jcmvbkbc@gmail.com>
9484
9485 * xtensa-tdep.c (xtensa_pseudo_register_read): Treat all
9486 registers above gdbarch_num_regs (gdbarch) as privileged in
9487 call0 ABI.
9488
0ce4291e
MF
94892017-03-27 Max Filippov <jcmvbkbc@gmail.com>
9490
9491 * xtensa-linux-nat.c (fill_gregset): Call regcache_raw_collect
9492 for a single specified register or for all registers in
9493 a0_base..a0_base + C0_NREGS range.
9494 (supply_gregset_reg): Call regcache_raw_supply for a single
9495 specified register or for all registers in a0_base..a0_base +
9496 C0_NREGS range.
9497
c56054f9
MF
94982017-03-27 Max Filippov <jcmvbkbc@gmail.com>
9499
9500 * arch/xtensa.h (C0_NREGS): Add definition.
9501 * xtensa-tdep.c (C0_NREGS): Remove definition.
9502
a4398628
MF
95032017-03-27 Max Filippov <jcmvbkbc@gmail.com>
9504
9505 * xtensa-tdep.c (xtensa_scan_prologue, call0_analyze_prologue):
9506 Drop xtensa_default_isa initialization.
9507 (xtensa_gdbarch_init): Initialize xtensa_default_isa.
9508
8c43009f
PA
95092017-03-27 Pedro Alves <palves@redhat.com>
9510
9511 * dwarf2read.c (file_entry) <dir_index>: Add comment.
9512 (file_entry::include_dir): New method.
9513 (line_header::include_dir_at, line_header::file_name_at): New
9514 methods.
9515 (setup_type_unit_groups, setup_type_unit_groups)
9516 (psymtab_include_file_name): Simplify using the new methods.
9517 (lnp_state_machine) <the_line_header>: New field.
9518 <file>: Add comment.
9519 (lnp_state_machine::current_file): New method.
9520 (dwarf_record_line): Simplify using the new methods.
9521 (init_lnp_state_machine): Initialize the "the_line_header" field.
9522 (dwarf_decode_lines_1, dwarf_decode_lines, file_file_name):
9523 Simplify using the new methods.
9524
a7e80b9e
PA
95252017-03-27 Pedro Alves <palves@redhat.com>
9526
9527 * cp-name-parser.y (make_empty): Delete.
9528 (demangler_special, nested_name, ptr_operator, array_indicator)
9529 (direct_declarator, declarator_1): Use fill_comp instead of
9530 make_empty.
9531
21047726
PA
95322017-03-27 Pedro Alves <palves@redhat.com>
9533
9534 * xml-support.h (gdb_xml_debug): Pass a "first-to-check" argument
9535 to ATTRIBUTE_PRINTF.
9536 * solib-target.c (library_list_start_list): Print "string" not
9537 "version".
9538 * xml-tdesc.c (tdesc_start_field): Pass "field_name" to
9539 gdb_xml_error call.
9540
d721ba37
PA
95412017-03-27 Pedro Alves <palves@redhat.com>
9542
9543 * dwarf2read.c (struct file_and_directory): New.
9544 (dwarf2_get_dwz_file): Adjust to use std::string.
9545 (dw2_get_file_names_reader): Adjust to use file_and_directory.
9546 (find_file_and_directory): Adjust to return a file_and_directory
9547 object.
9548 (read_file_scope): Adjust to use file_and_directory. Remove
9549 make_cleanup/do_cleanups calls.
9550 (open_and_init_dwp_file): Adjust to use std::string. Remove
9551 make_cleanup/do_cleanups calls.
9552 * python/python.c (do_start_initialization): Adjust to ldirname
9553 returning a std::string.
9554 * utils.c (ldirname): Now returns a std::string.
9555 * utils.h (ldirname): Change return type to std::string.
9556 * xml-syscall.c (xml_init_syscalls_info): Adjust to ldirname
9557 returning a std::string.
9558 * xml-tdesc.c (file_read_description_xml): Likewise.
9559
ed771251
AH
95602017-03-24 Alan Hayward <alan.hayward@arm.com>
9561
9562 * regcache.c (regcache_debug_print_register): New function.
9563 * regcache.h (regcache_debug_print_register): New declaration.
9564 * target.c (debug_print_register): Remove.
9565 (target_fetch_registers): Call regcache_debug_print_register.
9566 (target_store_registers): Likewise.
9567
568c1b9f
PB
95682017-03-24 Pádraig Brady <pbrady@fb.com>
9569
9570 * dwarf2read.c (setup_type_unit_groups): Ensure dir_index doesn't
9571 reference beyond the 'lh->include_dirs' array before accessing to
9572 it.
9573 (psymtab_include_file_name): Likewise.
9574 (dwarf_decode_lines_1): Likewise.
9575 (dwarf_decode_lines): Likewise.
9576 (file_file_name): Likewise.
9577
3e00d44f
SM
95782017-03-23 Simon Marchi <simon.marchi@ericsson.com>
9579
9580 * fbsd-tdep.c (fbsd_corefile_thread): Don't set/restore
9581 inferior_ptid.
9582 * proc-service.c (ps_lgetregs, ps_lsetregs, ps_lgetfpregs,
9583 ps_lsetfpregs): Likewise.
9584 * regcache.c (regcache_raw_update, regcache_raw_write): Likewise.
9585 * sol-thread.c (ps_lgetregs, ps_lsetregs, ps_lgetfpregs,
9586 ps_lsetfpregs): Likewise.
9587 * target.c (target_fetch_registers, target_store_registers):
9588 Remove asserts.
9589
077ae656
AH
95902017-03-23 Alan Hayward <alan.hayward@arm.com>
9591
9592 * sol-thread.c (sol_thread_store_registers): Remove regcache calls.
9593
1e2b521d
YQ
95942017-03-23 Yao Qi <yao.qi@linaro.org>
9595
9596 * aarch64-tdep.c (aarch64_process_record_test): Declare.
9597 (_initialize_aarch64_tdep): Register it.
9598 (aarch64_record_load_store): Handle PRFM instruction.
9599 (aarch64_process_record_test): New function.
9600
33877125
YQ
96012017-03-23 Yao Qi <yao.qi@linaro.org>
9602
9603 * aarch64-tdep.c (aarch64_record_load_store): Fix code
9604 indentation.
9605
a0eef940
YQ
96062017-03-23 Yao Qi <yao.qi@linaro.org>
9607
9608 * aarch64-tdep.c: Remove AARCH64_RECORD_FAILURE.
9609
3f2a3564
PR
96102017-03-23 Philipp Rudo <prudo@linux.vnet.ibm.com>
9611
9612 python/python.c (do_start_initialization): Fix memory leak.
9613
b67aeab0
SM
96142017-03-22 Simon Marchi <simon.marchi@polymtl.ca>
9615
9616 * inf-ptrace.c (inf_ptrace_xfer_partial): Get pid from ptid
9617 using get_ptrace_pid.
9618 * linux-nat.c (linux_nat_xfer_partial): Don't set/restore
9619 inferior_ptid.
9620 (linux_proc_xfer_partial, linux_proc_xfer_spu): Use lwp of
9621 inferior_ptid instead of pid.
9622
ffdbe864
YQ
96232017-03-22 Yao Qi <yao.qi@linaro.org>
9624
9625 * aarch64-tdep.c: Wrap locally used classes in anonymous
9626 namespace.
9627 * arm-tdep.c: Likewise.
9628 * linespec.c: Likewise.
9629 * ui-out.c: Likewise.
9630
9d736fbf
JG
96312017-03-22 Jonah Graham <jonah@kichwacoders.com>
9632
9633 PR gdb/19637
9634 * python/lib/gdb/printer/bound_registers.py: Import sys.
9635
3de88e9a
SM
96362017-03-21 Simon Marchi <simon.marchi@ericsson.com>
9637
9638 * windows-nat.c (do_windows_fetch_inferior_registers): Add
9639 windows_thread_info parameter and use it instead of
9640 current_thread.
9641 (windows_fetch_inferior_registers): Don't set current_thread,
9642 pass the thread to do_windows_fetch_inferior_registers. Use
9643 ptid from regcache instead of inferior_ptid.
9644 (do_windows_store_inferior_registers): Add windows_thread_info
9645 parameter and use it instead of current_thread.
9646 (windows_store_inferior_registers): Don't set current_thread,
9647 pass the thread to do_windows_store_inferior_registers. Use
9648 ptid from regcache instead of inferior_ptid.
9649
0e7b8f61
SM
96502017-03-21 Simon Marchi <simon.marchi@ericsson.com>
9651
9652 * ser-mingw.c (ser_windows_raw): Remove reference to
9653 struct serial::current_timeout.
9654
5badf10a
IR
96552017-03-21 Ivo Raisr <ivo.raisr@oracle.com>
9656
9657 PR tdep/20928
9658 * gdb/sparc-tdep.h (gdbarch_tdep) <sparc64_ccr_type>: New field.
9659 * gdb/sparc64-tdep.c (sparc64_ccr_type): New function.
9660 (sparc64_fsr_type): Fix %fsr decoding.
9661
cee59b3f
TW
96622017-03-21 Tim Wiederhake <tim.wiederhake@intel.com>
9663
9664 * python/py-record-btrace.c (btpy_insn_data): Change return type
9665 for Python 2.
9666
639a9038
SM
96672017-03-20 Simon Marchi <simon.marchi@polymtl.ca>
9668
9669 * spu-linux-nat.c (spu_fetch_inferior_registers,
9670 spu_store_inferior_registers): Use ptid from regcache, set and
9671 restore inferior_ptid.
9672 * spu-multiarch.c (spu_fetch_registers, spu_store_registers):
9673 Likewise.
9674
bcc0c096
SM
96752017-03-20 Simon Marchi <simon.marchi@polymtl.ca>
9676
9677 * i386-linux-nat.c (fetch_register, store_register,
9678 i386_linux_fetch_inferior_registers,
9679 i386_linux_store_inferior_registers): Use ptid from regcache.
9680 * ia64-linux-nat.c (ia64_linux_fetch_register,
9681 ia64_linux_store_register): Likewise.
9682 * inf-ptrace.c (inf_ptrace_fetch_register,
9683 inf_ptrace_store_register): Likewise.
9684 * m32r-linux-nat.c (m32r_linux_fetch_inferior_registers,
9685 m32r_linux_store_inferior_registers): Likewise.
9686 * m68k-bsd-nat.c (m68kbsd_fetch_inferior_registers,
9687 m68kbsd_store_inferior_registers): Likewise.
9688 * m68k-linux-nat.c (fetch_register, store_register,
9689 m68k_linux_fetch_inferior_registers,
9690 m68k_linux_store_inferior_registers): Likewise.
9691 * m88k-bsd-nat.c (m88kbsd_fetch_inferior_registers,
9692 m88kbsd_store_inferior_registers): Likewise.
9693 * mips-fbsd-nat.c (mips_fbsd_fetch_inferior_registers,
9694 mips_fbsd_store_inferior_registers): Likewise.
9695 * mips-linux-nat.c (mips64_linux_regsets_fetch_registers,
9696 mips64_linux_regsets_store_registers): Likewise.
9697 * mips-nbsd-nat.c (mipsnbsd_fetch_inferior_registers,
9698 mipsnbsd_store_inferior_registers): Likewise.
9699 * mips-obsd-nat.c (mips64obsd_fetch_inferior_registers,
9700 mips64obsd_store_inferior_registers): Likewise.
9701 * nto-procfs.c (procfs_fetch_registers, procfs_store_registers):
9702 Likewise.
9703 * ppc-fbsd-nat.c (ppcfbsd_fetch_inferior_registers,
9704 ppcfbsd_store_inferior_registers): Likewise.
9705 * ppc-linux-nat.c (ppc_linux_fetch_inferior_registers,
9706 ppc_linux_store_inferior_registers): Likewise.
9707 * ppc-nbsd-nat.c (ppcnbsd_fetch_inferior_registers,
9708 ppcnbsd_store_inferior_registers): Likewise.
9709 * ppc-obsd-nat.c (ppcobsd_fetch_registers,
9710 ppcobsd_store_registers): Likewise.
9711 * procfs.c (procfs_fetch_registers, procfs_store_registers):
9712 Likewise.
9713 * ravenscar-thread.c (ravenscar_fetch_registers,
9714 ravenscar_store_registers, ravenscar_prepare_to_store):
9715 Likewise.
9716 * record-btrace.c (record_btrace_fetch_registers,
9717 record_btrace_store_registers, record_btrace_prepare_to_store):
9718 Likewise.
9719 * remote-sim.c (gdbsim_fetch_register, gdbsim_store_register):
9720 Lookup inferior using ptid from regcache, instead of
9721 current_inferior.
9722 * remote.c (remote_fetch_registers, remote_store_registers): Use
9723 ptid from regcache.
9724 * rs6000-nat.c (fetch_register, store_register): Likewise.
9725 * s390-linux-nat.c (s390_linux_fetch_inferior_registers,
9726 s390_linux_store_inferior_registers): Likewise.
9727 * sh-nbsd-nat.c (shnbsd_fetch_inferior_registers,
9728 shnbsd_store_inferior_registers): Likewise.
9729 * sol-thread.c (sol_thread_fetch_registers,
9730 sol_thread_store_registers): Likewise.
9731 * sparc-nat.c (sparc_fetch_inferior_registers,
9732 sparc_store_inferior_registers): Likewise.
9733 * tilegx-linux-nat.c (fetch_inferior_registers,
9734 store_inferior_registers): Likewise.
9735 * vax-bsd-nat.c (vaxbsd_fetch_inferior_registers,
9736 vaxbsd_store_inferior_registers): Likewise.
9737 * xtensa-linux-nat.c (fetch_gregs, store_gregs, fetch_xtregs,
9738 store_xtregs): Likewise.
9739
c0f55cc6
AV
97402017-03-20 Artemiy Volkov <artemiyv@acm.org>
9741
9742 PR gdb/14441
9743 * NEWS: Mention support for rvalue references in GDB and python.
9744 * doc/gdb.texinfo (C Plus Plus Expressions): Mention that GDB
9745 supports both lvalue and rvalue references.
9746
15c0a2a9
AV
97472017-03-20 Artemiy Volkov <artemiyv@acm.org>
9748
9749 PR gdb/14441
9750 * gdbtypes.c (rank_one_type): Implement overloading
9751 resolution rules regarding rvalue references.
9752
aa006118
AV
97532017-03-20 Artemiy Volkov <artemiyv@acm.org>
9754
9755 PR gdb/14441
9756 * aarch64-tdep.c (aarch64_type_align)
9757 (aarch64_extract_return_value, aarch64_store_return_value): Change
9758 lvalue reference type checks to general reference type checks.
9759 * amd64-tdep.c (amd64_classify): Likewise.
9760 * amd64-windows-tdep.c (amd64_windows_passed_by_integer_register):
9761 Likewise.
9762 * arm-tdep.c (arm_type_align, arm_extract_return_value)
9763 (arm_store_return_value): Likewise.
9764 * ax-gdb.c (gen_fetch, gen_cast): Likewise.
9765 * c-typeprint.c (c_print_type): Likewise.
9766 * c-varobj.c (adjust_value_for_child_access, c_value_of_variable)
9767 (cplus_number_of_children, cplus_describe_child): Likewise.
9768 * compile/compile-c-symbols.c (generate_vla_size): Likewise.
9769 * completer.c (expression_completer): Likewise.
9770 * cp-support.c (make_symbol_overload_list_adl_namespace):
9771 Likewise.
9772 * darwin-nat-info.c (info_mach_region_command): Likewise.
9773 * dwarf2loc.c (entry_data_value_coerce_ref)
9774 (value_of_dwarf_reg_entry): Likewise.
9775 * eval.c (ptrmath_type_p, evaluate_subexp_standard)
9776 (evaluate_subexp_for_address, evaluate_subexp_for_sizeof):
9777 Likewise.
9778 * findvar.c (extract_typed_address, store_typed_address):
9779 Likewise.
9780 * gdbtypes.c (rank_one_type): Likewise.
9781 * hppa-tdep.c (hppa64_integral_or_pointer_p): Likewise.
9782 * infcall.c (value_arg_coerce): Likewise.
9783 * language.c (pointer_type): Likewise.
9784 * m32c-tdep.c (m32c_reg_arg_type, m32c_m16c_address_to_pointer):
9785 Likewise.
9786 * m88k-tdep.c (m88k_integral_or_pointer_p): Likewise.
9787 * mn10300-tdep.c (mn10300_type_align): Likewise.
9788 * msp430-tdep.c (msp430_push_dummy_call): Likewise.
9789 * ppc-sysv-tdep.c (do_ppc_sysv_return_value)
9790 (ppc64_sysv_abi_push_param, ppc64_sysv_abi_return_value):
9791 Likewise.
9792 * printcmd.c (print_formatted, x_command): Likewise.
9793 * python/py-type.c (typy_get_composite, typy_template_argument):
9794 Likewise.
9795 * python/py-value.c (valpy_referenced_value)
9796 (valpy_get_dynamic_type, value_has_field): Likewise.
9797 * s390-linux-tdep.c (s390_function_arg_integer): Likewise.
9798 * sparc-tdep.c (sparc_integral_or_pointer_p): Likewise.
9799 * sparc64-tdep.c (sparc64_integral_or_pointer_p): Likewise.
9800 * spu-tdep.c (spu_scalar_value_p): Likewise.
9801 * symtab.c (lookup_symbol_aux): Likewise.
9802 * typeprint.c (whatis_exp, print_type_scalar): Likewise.
9803 * valarith.c (binop_types_user_defined_p, unop_user_defined_p):
9804 Likewise.
9805 * valops.c (value_cast_pointers, value_cast)
9806 (value_reinterpret_cast, value_dynamic_cast, value_addr, typecmp)
9807 (value_struct_elt, value_struct_elt_bitpos)
9808 (value_find_oload_method_list, find_overload_match)
9809 (value_rtti_indirect_type): Likewise.
9810 * valprint.c (val_print_scalar_type_p, generic_val_print):
9811 Likewise.
9812 * value.c (value_actual_type, value_as_address, unpack_long)
9813 (pack_long, pack_unsigned_long, coerce_ref_if_computed)
9814 (coerce_ref): Likewise.
9815 * varobj.c (varobj_get_value_type): Likewise.
9816
3fcf899d
AV
98172017-03-20 Artemiy Volkov <artemiyv@acm.org>
9818
9819 PR gdb/14441
9820 * doc/python.texi (Types in Python): Add TYPE_CODE_RVALUE_REF to
9821 table of constants.
9822 * python/lib/gdb/command/explore.py: Support exploring values
9823 of rvalue reference types.
9824 * python/lib/gdb/types.py: Implement get_basic_type() for
9825 rvalue reference types.
9826 * python/py-type.c (pyty_codes) <TYPE_CODE_RVALUE_REF>: New
9827 constant.
9828 * python/py-value.c (valpy_getitem): Add an rvalue reference
9829 check.
9830 (valpy_reference_value): Add new parameter "refcode".
9831 (valpy_lvalue_reference_value, valpy_rvalue_reference_value):
9832 New wrappers for valpy_reference_value().
9833 * python/py-xmethods.c (gdbpy_get_xmethod_result_type)
9834 (gdbpy_invoke_xmethod): Likewise.
9835
4297a3f0
AV
98362017-03-20 Artemiy Volkov <artemiyv@acm.org>
9837
9838 PR gdb/14441
9839 * dwarf2read.c (process_die, read_type_die_1): Handle the
9840 DW_TAG_rvalue_reference_type DIE.
9841 (read_tag_reference_type): Add new parameter "refcode".
9842
e1cb3213
AV
98432017-03-20 Artemiy Volkov <artemiyv@acm.org>
9844
9845 PR gdb/14441
9846 * c-typeprint.c (c_print_type, c_type_print_varspec_prefix)
9847 (c_type_print_modifier, c_type_print_varspec_suffix)
9848 (c_type_print_base): Support printing rvalue reference types.
9849 * c-valprint.c (c_val_print, c_value_print): Support printing
9850 rvalue reference values.
9851
e4347c89
AV
98522017-03-20 Artemiy Volkov <artemiyv@acm.org>
9853
9854 PR gdb/14441
9855 * cp-name-parser.y (ptr_operator): Handle the '&&' token in
9856 typename.
9857 * cp-support.c (replace_typedefs): Handle
9858 DEMANGLE_COMPONENT_RVALUE_REFERENCE.
9859 * python/py-type.c (typy_lookup_type): Likewise.
9860
53cc15f5
AV
98612017-03-20 Artemiy Volkov <artemiyv@acm.org>
9862
9863 PR gdb/14441
9864 * c-exp.y (ptr_operator): Handle the '&&' token in the typename.
9865 * parse.c (insert_type): Change assert statement.
9866 (follow_types): Handle rvalue reference types.
9867 * parser-defs.h (enum type_pieces) <tp_rvalue_reference>: New
9868 constant.
9869
a65cfae5
AV
98702017-03-20 Artemiy Volkov <artemiyv@acm.org>
9871
9872 PR gdb/14441
9873 * ada-lang.c (ada_evaluate_subexp): Adhere to the new
9874 value_ref() interface.
9875 * c-valprint.c (c_value_print): Likewise.
9876 * infcall.c (value_arg_coerce): Likewise.
9877 * python/py-value.c (valpy_reference_value): Likewise.
9878 * valops.c (value_cast, value_reinterpret_cast)
9879 (value_dynamic_cast, typecmp): Likewise.
9880 (value_ref): Parameterize by kind of return value reference type.
9881 * value.h (value_ref): Add new parameter "refcode".
9882
3b224330
AV
98832017-03-20 Artemiy Volkov <artemiyv@acm.org>
9884
9885 PR gdb/14441
9886 * dwarf2read.c (read_tag_reference_type): Use
9887 lookup_lvalue_reference_type() instead of lookup_reference_type().
9888 * eval.c (evaluate_subexp_standard): Likewise.
9889 * f-exp.y: Likewise.
9890 * gdbtypes.c (make_reference_type, lookup_reference_type):
9891 Generalize with rvalue reference types.
9892 (lookup_lvalue_reference_type, lookup_rvalue_reference_type): New
9893 convenience wrappers for lookup_reference_type().
9894 * gdbtypes.h (make_reference_type, lookup_reference_type): Add a
9895 reference kind parameter.
9896 (lookup_lvalue_reference_type, lookup_rvalue_reference_type): Add
9897 wrappers for lookup_reference_type().
9898 * guile/scm-type.c (gdbscm_type_reference): Use
9899 lookup_lvalue_reference_type() instead of lookup_reference_type().
9900 * guile/scm-value.c (gdbscm_value_dynamic_type): Likewise.
9901 * parse.c (follow_types): Likewise.
9902 * python/py-type.c (typy_reference, typy_lookup_type): Likewise.
9903 * python/py-value.c (valpy_get_dynamic_type, valpy_getitem):
9904 Likewise.
9905 * python/py-xmethods.c (gdbpy_get_xmethod_result_type)
9906 (gdbpy_invoke_xmethod): Likewise.
9907 * stabsread.c: Provide extra argument to make_reference_type()
9908 call.
9909 * valops.c (value_ref, value_rtti_indirect_type): Use
9910 lookup_lvalue_reference_type() instead of lookup_reference_type().
9911
f9aeb8d4
AV
99122017-03-20 Artemiy Volkov <artemiyv@acm.org>
9913
9914 PR gdb/14441
9915 * gdbtypes.h (enum type_code) <TYPE_CODE_RVALUE_REF>: New constant.
9916 (TYPE_IS_REFERENCE): New macro.
9917 (struct type): Add rvalue_reference_type field.
9918 (TYPE_RVALUE_REFERENCE_TYPE): New macro.
9919
51457a05
MAL
99202017-03-20 Marc-Andre Laperle <marc-andre.laperle@ericsson.com>
9921
9922 * NEWS: Add an entry about new '-file-list-shared-libraries' command.
9923 * mi/mi-cmd-file.c (mi_cmd_file_list_shared_libraries):
9924 New function definition.
9925 * mi/mi-cmds.c (mi_cmds): Add -file-list-shared-libraries command.
9926 * mi/mi-cmds.h (mi_cmd_file_list_shared_libraries):
9927 New function declaration.
9928 * mi/mi-interp.c (mi_output_solib_attribs): New Function.
9929 * mi/mi-interp.h: New file.
9930 * solib.c (info_sharedlibrary_command): Replace for loop with
9931 ALL_SO_LIBS macro
9932 * solib.h (update_solib_list): New function declaration.
9933 (so_list_head): Move macro.
9934 * solist.h (ALL_SO_LIBS): New macro.
9935
e696b3ad
MAL
99362017-03-20 Marc-Andre Laperle <marc-andre.laperle@ericsson.com>
9937
9938 * infcmd.c (post_create_inferior): Remove unused argument in
9939 call to solib_add.
9940 * remote.c (remote_start_remote): Likewise.
9941 * solib-frv.c (frv_fetch_objfile_link_map): Likewise.
9942 * solib-svr4.c: (svr4_fetch_objfile_link_map): Likewise.
9943 (enable_break): Likewise.
9944 * solib.c (update_solib_list): Remove unused target argument
9945 and its documentation.
9946 (solib_add): Remove unused target argument. Remove unused
9947 argument in call to update_solib_list.
9948 (info_sharedlibrary_command): Remove unused argument in call
9949 to update_solib_list.
9950 (sharedlibrary_command): Remove unused argument in call to
9951 solib_add.
9952 (handle_solib_event): Likewise.
9953 (reload_shared_libraries): Likewise.
9954 * solib.h (solib_add): Remove unused target argument.
9955
dcb84eda
AA
99562017-03-20 Andreas Arnez <arnez@linux.vnet.ibm.com>
9957
9958 * s390-linux-tdep.c (is_rsi, is_rie): Remove functions.
9959 (s390_displaced_step_fixup): Cover relative branches with the
9960 default fixup handling. This fixes lack of support for some
9961 relative branch instructions.
9962
d9cb6cdc
SM
99632017-03-17 Simon Marchi <simon.marchi@polymtl.ca>
9964
9965 * i386-gnu-nat.c (gnu_fetch_registers, gnu_store_registers): Use
9966 ptid from regcache.
9967
1afaf9f4
SM
99682017-03-17 Simon Marchi <simon.marchi@polymtl.ca>
9969
9970 * i386-darwin-nat.c (i386_darwin_fetch_inferior_registers,
9971 i386_darwin_store_inferior_registers): Use ptid from regcache.
9972
aac12e24
SM
99732017-03-17 Simon Marchi <simon.marchi@polymtl.ca>
9974
9975 * i386-bsd-nat.c (i386bsd_fetch_inferior_registers,
9976 i386bsd_store_inferior_registers): Use ptid from regcache.
9977
bbe1eef1
SM
99782017-03-17 Simon Marchi <simon.marchi@polymtl.ca>
9979
9980 * hppa-obsd-nat.c (hppaobsd_fetch_registers,
9981 hppaobsd_store_registers): Use ptid from regcache.
9982
10799020
SM
99832017-03-17 Simon Marchi <simon.marchi@polymtl.ca>
9984
9985 * hppa-nbsd-nat.c (hppanbsd_fetch_registers,
9986 hppanbsd_store_registers): Use ptid from regcache.
9987
00204cf7
SM
99882017-03-17 Simon Marchi <simon.marchi@polymtl.ca>
9989
9990 * hppa-linux-nat.c (fetch_register, store_register): Use ptid
9991 from regcache. Use get_ptrace_pid.
9992
11a33714
SM
99932017-03-17 Simon Marchi <simon.marchi@polymtl.ca>
9994
9995 * corelow.c (get_core_register_section): Use ptid from regcache,
9996 update doc.
9997
317cd492
SM
99982017-03-17 Simon Marchi <simon.marchi@polymtl.ca>
9999
10000 * bsd-uthread.c (bsd_uthread_fetch_registers,
10001 bsd_uthread_store_registers): Use ptid from regcache, set and
10002 restore inferior_ptid.
10003
9ac8a7c2
SM
100042017-03-17 Simon Marchi <simon.marchi@polymtl.ca>
10005
10006 * arm-nbsd-nat.c (fetch_register, fetch_regs, fetch_fp_register,
10007 fetch_fp_regs, store_register, store_regs, store_fp_register,
10008 store_fp_regs): Use ptid from regcache.
10009
4ac4bb6a
SM
100102017-03-17 Simon Marchi <simon.marchi@polymtl.ca>
10011
10012 * arm-linux-nat.c (fetch_fpregs, store_fpregs, fetch_regs,
10013 store_regs, fetch_wmmx_regs, store_wmmx_regs, fetch_vfp_regs,
10014 store_vfp_regs): Use ptid from regcache.
10015
9bcbdca8
PA
100162017-03-17 Pedro Alves <palves@redhat.com>
10017
10018 PR remote/21188
10019 * ser-base.c (ser_base_wait_for): Add comment.
10020 (do_ser_base_readchar): Improve comment based on the ser-unix.c's
10021 version.
10022 * ser-unix.c (hardwire_raw): Remove reference to
10023 scb->current_timeout.
10024 (wait_for, do_hardwire_readchar, hardwire_readchar): Delete.
10025 (hardwire_ops): Install ser_base_readchar instead of
10026 hardwire_readchar.
10027 * serial.h (struct serial) <current_timeout, timeout_remaining>:
10028 Remove fields.
10029
7503099f
JG
100302017-03-17 Jonah Graham <jonah@kichwacoders.com>
10031
10032 PR gdb/19637
10033 * python/lib/gdb/printer/bound_registers.py: Add support for
10034 Python 3.
10035
7942e96e
AA
100362017-03-16 Andreas Arnez <arnez@linux.vnet.ibm.com>
10037
10038 * dwarf2loc.c (indirect_synthetic_pointer): Get data type of
10039 pointed-to DIE and pass it to dwarf2_evaluate_loc_desc_full.
10040 (dwarf2_evaluate_loc_desc_full): New parameter subobj_type; rename
10041 byte_offset to subobj_byte_offset. Fix the handling of
10042 DWARF_VALUE_STACK on big-endian targets when coming via an
10043 implicit pointer.
10044 (dwarf2_evaluate_loc_desc): Adjust call to
10045 dwarf2_evaluate_loc_desc_full.
10046 * dwarf2loc.h (dwarf2_fetch_die_type_sect_off): New declaration.
10047 * dwarf2read.c (dwarf2_fetch_die_type_sect_off): New function.
10048
ba14f379
YQ
100492017-03-16 Yao Qi <yao.qi@linaro.org>
10050
10051 * arm-tdep.c (thumb_record_misc): Decode CBNZ, CBZ, REV16,
10052 and REVSH instructions.
10053
b121eeb9
YQ
100542017-03-16 Yao Qi <yao.qi@linaro.org>
10055
10056 * arm-tdep.c [GDB_SELF_TEST]: include "selftests.h".
10057 (arm_record_test): Declare.
10058 (_initialize_arm_tdep) [GDB_SELF_TEST]: call register_self_test.
10059 (thumb_record_ld_st_reg_offset): Rewrite the opcode matching to
10060 align with the manual.
10061 (thumb_record_misc): Adjust the code order to align with the
10062 manual.
10063 (thumb2_record_decode_insn_handler): Fix instruction matching.
10064 (instruction_reader_thumb): New class.
10065 (arm_record_test): New function.
10066
728a7913
YQ
100672017-03-16 Yao Qi <yao.qi@linaro.org>
10068
10069 * arm-tdep.c (abstract_memory_reader): New class.
10070 (instruction_reader): New class.
10071 (extract_arm_insn): Add argument 'reader'. Callers updated.
10072 (decode_insn): Likewise.
10073
34b43320
DE
100742017-03-16 Doug Evans <dje@google.com>
10075
a7c0469f
DE
10076 * guile/scm-lazy-string.c (lazy_string_smob): Clarify use of LENGTH
10077 member. Change type of TYPE member to SCM. All uses updated.
10078 (lsscm_make_lazy_string_smob): Add assert.
10079 (lsscm_make_lazy_string): Flag bad length values.
10080 (lsscm_elt_type): New function.
10081 (gdbscm_lazy_string_to_value): Rewrite to use
10082 lsscm_safe_lazy_string_to_value.
10083 (lsscm_safe_lazy_string_to_value): Fix handling of TYPE_CODE_PTR.
10084 * guile/scm-value.c (gdbscm_value_to_lazy_string): Flag bad length
10085 values. Fix TYPE_CODE_PTR. Handle TYPE_CODE_ARRAY. Handle typedefs
10086 in incoming type.
10087 * guile/guile-internal.h (tyscm_scm_to_type): Declare.
10088 * guile/scm-type.c (tyscm_scm_to_type): New function.
10089
100902017-03-15 Doug Evans <dje@google.com>
10091
34b43320
DE
10092 PR python/17728, python/18439, python/18779
10093 * python/py-lazy-string.c (lazy_string_object): Clarify use of LENGTH
10094 member. Change type of TYPE member to PyObject *. All uses updated.
10095 (stpy_convert_to_value): Fix handling of TYPE_CODE_PTR.
10096 (gdbpy_create_lazy_string_object): Flag bad length values.
10097 Handle TYPE_CODE_ARRAY with possibly different user-provided length.
10098 Handle typedefs in incoming type.
10099 (stpy_lazy_string_elt_type): New function.
10100 (gdbpy_extract_lazy_string): Call it.
10101 * python/py-value.c (valpy_lazy_string): Flag bad length values.
10102 Fix handling of TYPE_CODE_PTR. Handle TYPE_CODE_ARRAY. Handle
10103 typedefs in incoming type.
10104
a3a5fecc
DE
101052017-03-16 Doug Evans <dje@google.com>
10106
10107 * guile/guile-internal.h (tyscm_scm_to_type): Declare.
10108 * guile/scm-type.c (tyscm_scm_to_type): New function.
10109
28f1c605
JW
101102017-03-16 Jiong Wang <jiong.wang@arm.com>
10111
10112 * inf-ptrace.c (inf_ptrace_peek_poke): Change the type to
10113 "ULONGEST" for "skip".
10114
87c336f6
AA
101152017-03-14 Andreas Arnez <arnez@linux.vnet.ibm.com>
10116
10117 PR gdb/21220
10118 * inf-ptrace.c (inf_ptrace_xfer_partial): In "case
10119 TARGET_OBJECT_MEMORY", extract the logic for ptrace peek/poke...
10120 (inf_ptrace_peek_poke): ...here. New function. Now also loop
10121 over ptrace peek/poke until end of buffer or error.
10122
cf81cf60
SM
101232017-03-14 Simon Marchi <simon.marchi@ericsson.com>
10124
10125 * parse.c (length_of_subexp): Make static.
10126 * parser-defs.h (length_of_subexp): Remove.
10127
a379284a
AA
101282017-03-14 Andreas Arnez <arnez@linux.vnet.ibm.com>
10129
10130 * linux-nat.c (linux_proc_xfer_partial): Handle write operations
10131 as well.
10132
8a6200ba
PA
101332017-03-14 Pedro Alves <palves@redhat.com>
10134
10135 * cp-name-parser.y (cp_demangled_name_to_comp): Update comment.
10136 (main): Use std::unique_ptr. Remove calls to
10137 cp_demangled_name_parse_free.
10138
f79ec206
SM
101392017-03-13 Simon Marchi <simon.marchi@polymtl.ca>
10140
10141 * alpha-bsd-nat.c (alphabsd_fetch_inferior_registers,
10142 alphabsd_store_inferior_registers): Use regcache->ptid instead
10143 of inferior_ptid.
10144
edb5fb00
SM
101452017-03-13 Simon Marchi <simon.marchi@polymtl.ca>
10146
10147 * aix-thread.c (aix_thread_fetch_registers,
10148 aix_thread_store_registers): Use regcache->ptid instead of
10149 inferior_ptid.
10150
55119686
SM
101512017-03-13 Simon Marchi <simon.marchi@polymtl.ca>
10152
10153 * aarch64-linux-nat.c (fetch_gregs_from_thread,
10154 store_gregs_to_thread, fetch_fpregs_from_thread,
10155 store_fpregs_to_thread): Use regcache->ptid instead of
10156 inferior_ptid.
10157
6a06fbb7
SM
101582017-03-13 Simon Marchi <simon.marchi@polymtl.ca>
10159
10160 * amd64-linux-nat.c (amd64_linux_fetch_inferior_registers,
10161 amd64_linux_fetch_inferior_registers): Use regcache->ptid
10162 instead of inferior_ptid.
10163
c6386875
SM
101642017-03-13 Simon Marchi <simon.marchi@polymtl.ca>
10165
10166 * target.c (target_fetch_registers, target_store_registers): Add
10167 assert.
10168
ddaaf0fb
SM
101692017-03-13 Simon Marchi <simon.marchi@polymtl.ca>
10170
10171 * regcache.h (regcache_get_ptid): New function.
10172 * regcache.c (regcache_get_ptid): New function.
10173
b9da89d1 101742017-03-13 Mark Wielaard <mark@klomp.org>
10175
10176 * cp-name-parser.y (make_empty): Initialize d_printing to zero.
10177
5f4d1085
KS
101782017-03-10 Keith Seitz <keiths@redhat.com>
10179
10180 PR c++/8218
10181 * c-typeprint.c (cp_type_print_method_args): Skip artificial arguments.
10182
c65d6b55
PA
101832017-03-08 Pedro Alves <palves@redhat.com>
10184
10185 PR gdb/18360
10186 * infrun.c (start_step_over, do_target_resume, resume)
10187 (restart_threads): Assert we're not resuming a thread that is
10188 meant to be stopped.
10189 (infrun_thread_stop_requested_callback): Delete.
10190 (infrun_thread_stop_requested): If the thread is internally
10191 stopped, queue a pending stop event and clear the thread's
10192 inline-frame state.
10193 (handle_stop_requested): New function.
10194 (handle_syscall_event, handle_inferior_event_1): Use
10195 handle_stop_requested.
10196 (handle_stop_requested): New function.
10197 (handle_signal_stop): Set the thread's stop_signal here instead of
10198 at caller.
10199 (finish_step_over): Clear step over info unconditionally.
10200 (handle_signal_stop): If the user had interrupted the event
10201 thread, consider the stop a random signal.
10202 (handle_signal_stop) <signal arrived while stepping over
10203 breakpoint>: Don't restart threads here.
10204 (stop_waiting): Don't clear step-over info here.
10205
15c22686
PA
102062017-03-08 Pedro Alves <palves@redhat.com>
10207
10208 PR 21206
10209 * common/gdb_unlinker.h (unlinker::unlinker): Attribute nonnull
10210 goes to argument 2, not 1.
10211
6e5d74e7
PA
102122017-03-08 Pedro Alves <palves@redhat.com>
10213
10214 PR cli/21218
10215 * top.c (gdb_readline_wrapper): Avoid passing NULL to
10216 display_gdb_prompt.
10217 (command_line_input): Add comment.
10218
9753a2f6
PA
102192017-03-08 Pedro Alves <palves@redhat.com>
10220
10221 PR tui/21216
10222 * tui/tui-file.c (tui_file::write): New.
10223 * tui/tui-file.h (tui_file): Override "write".
10224 * tui/tui-io.c (do_tui_putc, update_start_line): New functions,
10225 factored out from ...
10226 (tui_puts): ... here.
10227 (tui_putc): Use them.
10228 (tui_write): New function.
10229 * tui/tui-io.h (tui_write): Declare.
10230
1672e0d9
SDJ
102312017-03-07 Sergio Durigan Junior <sergiodj@redhat.com>
10232
10233 * Makefile.in (SFILES): Replace "environ.c" with
10234 "common/environ.c".
10235 (HFILES_NO_SRCDIR): Likewise, for "environ.h".
10236 * environ.c: Include "common-defs.h" instead of "defs.h. Moved
10237 to...
10238 * common/environ.c: ... here.
10239 * environ.h: Moved to...
10240 * common/environ.h: ... here.
10241
f7bb4e3a
PB
102422017-03-07 Peter Bergner <bergner@vnet.ibm.com>
10243
10244 * gdbarch.sh (pstring_ptr): New static function.
10245 (gdbarch_disassembler_options): Use it.
10246 (gdbarch_verify_disassembler_options): Print valid_disassembler_options,
10247 not valid_disassembler_option->name.
10248 * gdbarch.c: Regenerate.
10249
e45ced6c
PB
102502017-03-07 Peter Bergner <bergner@vnet.ibm.com>
10251
10252 * config/powerpc/ppc64-linux.mh (MH_CFLAGS): Delete.
10253
5f6fd321
PA
102542017-03-07 Pedro Alves <palves@redhat.com>
10255
10256 * tui/tui-regs.c (tui_restore_gdbout): Don't delete gdb_stdout.
10257
6dbb839a 102582017-03-07 Walfred Tedeschi <walfred.tedeschi@intel.com>
4a612d6f
WT
10259
10260 * i387-tdep.h (i387_reset_bnd_regs): Add function definition.
10261 * i387-tdep.c (i387_reset_bnd_regs): Add function implementation.
10262 * i386-tdep.c (i386_push_dummy_call): Call i387_reset_bnd_regs.
6dbb839a 10263 * amd64-tdep.c (amd64_push_dummy_call): Call i387_reset_bnd_regs.
4a612d6f 10264
d274ecf4
SM
102652017-03-06 Simon Marchi <simon.marchi@ericsson.com>
10266
10267 * xtensa-linux-nat.c (fetch_gregs): Remove const.
10268
df97be55
SM
102692017-03-03 Simon Marchi <simon.marchi@ericsson.com>
10270
10271 * remote.c (remote_add_target_side_commands): Use range-based
10272 for loop.
10273
7d45f3df
YQ
102742017-03-03 Yao Qi <yao.qi@linaro.org>
10275
10276 PR gdb/21165
10277 * ada-valprint.c (ada_val_print_ref): Call value_fetch_lazy if
10278 value is lazy.
10279 * valprint.c (common_val_print): Likewise.
10280
65b48a81
PB
102812017-02-28 Peter Bergner <bergner@vnet.ibm.com>
10282
10283 * NEWS: Mention new set/show disassembler-options commands.
10284 * doc/gdb.texinfo: Document new set/show disassembler-options commands.
10285 * disasm.c: Include "arch-utils.h", "gdbcmd.h" and "safe-ctype.h".
10286 (prospective_options): New static variable.
10287 (gdb_disassembler::gdb_disassembler): Initialize
10288 m_di.disassembler_options.
10289 (gdb_buffered_insn_length_init_dis): Initilize di->disassembler_options.
10290 (get_disassembler_options): New function.
10291 (set_disassembler_options): Likewise.
10292 (set_disassembler_options_sfunc): Likewise.
10293 (show_disassembler_options_sfunc): Likewise.
10294 (disassembler_options_completer): Likewise.
10295 (_initialize_disasm): Likewise.
10296 * disasm.h (get_disassembler_options): New prototype.
10297 (set_disassembler_options): Likewise.
10298 * gdbarch.sh (gdbarch_disassembler_options): New variable.
10299 (gdbarch_verify_disassembler_options): Likewise.
10300 * gdbarch.c: Regenerate.
10301 * gdbarch.h: Likewise.
10302 * arm-tdep.c (num_disassembly_options): Delete.
10303 (set_disassembly_style): Likewise.
10304 (arm_disassembler_options): New static variable.
10305 (set_disassembly_style_sfunc): Convert short style name into long
10306 option name. Call set_disassembler_options.
10307 (show_disassembly_style_sfunc): New function.
10308 (arm_gdbarch_init): Call set_gdbarch_disassembler_options and
10309 set_gdbarch_verify_disassembler_options.
10310 (_initialize_arm_tdep): Delete regnames variable and update callers.
10311 (arm_disassembler_options): Initialize.
10312 (disasm_options): New variable.
10313 (num_disassembly_options): Rename from this...
10314 (num_disassembly_styles): ...to this. Compute by scanning through
10315 disasm_options.
10316 (valid_disassembly_styles): Initialize using disasm_options.
10317 Remove calls to parse_arm_disassembler_option, get_arm_regnames and
10318 set_arm_regname_option.
10319 Pass show_disassembly_style_sfunc to the "disassembler" setshow command.
10320 * rs6000-tdep.c (powerpc_disassembler_options): New static variable.
10321 (rs6000_gdbarch_init): Call set_gdbarch_disassembler_options and
10322 set_gdbarch_verify_disassembler_options.
10323 * s390-tdep.c (s390_disassembler_options): New static variable.
10324 (s390_gdbarch_init):all set_gdbarch_disassembler_options and
10325 set_gdbarch_verify_disassembler_options.
10326
d538e36d
SM
103272017-02-27 Simon Marchi <simon.marchi@ericsson.com>
10328
10329 * remote.c (remote_add_target_side_condition): Remove "struct"
10330 keyword from range-based for loop.
10331
83621223
SM
103322017-02-27 Simon Marchi <simon.marchi@ericsson.com>
10333
10334 * remote.c (remote_add_target_side_condition): Use range-based
10335 for loop. Update comment.
10336
2123df0e
YQ
103372017-02-27 Yao Qi <yao.qi@linaro.org>
10338
10339 * f-typeprint.c (f_print_type): Check "varstring" is empty first.
10340
8e368124
AH
103412017-02-26 Alan Hayward <alan.hayward@arm.com>
10342
10343 * regcache.c (regcache_raw_update): New function.
10344 (regcache_raw_read): Move code to regcache_raw_update.
10345 * regcache.h (regcache_raw_update): New declaration.
10346 * remote.c (remote_prepare_to_store): Call regcache_raw_update.
10347
a49dd8dd
JK
103482017-02-26 Jan Kratochvil <jan.kratochvil@redhat.com>
10349
10350 * dwarf2read.c (create_debug_type_hash_table): Initialize
10351 header.signature and header.type_offset_in_tu.
10352
34e4bae9
PA
103532017-02-24 Pedro Alves <palves@redhat.com>
10354
10355 * symtab.c (make_file_symbol_completion_list_1): Use
10356 add_symtab_completions.
10357
b0e4b369
AH
103582017-02-24 Alan Hayward <alan.hayward@arm.com>
10359
10360 * stack.c (frame_info): Use frame_unwind_register_value to avoid buf.
10361
975c21ab
AH
103622017-02-24 Alan Hayward <alan.hayward@arm.com>
10363
10364 * i386-tdep.c (i386_pseudo_register_read_into_value): Use
10365 I386_MAX_REGISTER_SIZE.
10366 (i386_pseudo_register_write): Likewise.
10367 (i386_process_record): Likewise.
10368 * i387-tdep.c (i387_supply_xsave): Likewise.
10369 * m68k-linux-nat.c (fetch_register): Use M68K_MAX_REGISTER_SIZE.
10370 (store_register): Likewise.
10371
14bc53a8
PA
103722017-02-23 Pedro Alves <palves@redhat.com>
10373
10374 * ada-lang.c: Include "common/function-view.h".
10375 (ada_iterate_over_symbols): Adjust to use function_view as
10376 callback type.
10377 (struct add_partial_datum, ada_complete_symbol_matcher): Delete.
10378 (ada_make_symbol_completion_list): Use a lambda.
10379 (ada_exc_search_name_matches): Delete.
10380 (name_matches_regex): New.
10381 (ada_add_global_exceptions): Use a lambda and name_matches_regex.
10382 * compile/compile-c-support.c: Include "common/function-view.h".
10383 (print_one_macro): Change prototype to accept a ui_file pointer.
10384 (write_macro_definitions): Use a lambda.
10385 * dwarf2read.c: Include "common/function-view.h".
10386 (dw2_map_expand_apply, dw2_map_symtabs_matching_filename)
10387 (dw2_expand_symtabs_matching): Adjust to use function_view as
10388 callback type.
10389 * language.h: Include "common/function-view.h".
10390 (struct language_defn) <la_iterate_over_symbols>: Adjust to use
10391 function_view as callback type.
10392 (LA_ITERATE_OVER_SYMBOLS): Remove DATA parameter.
10393 * linespec.c: Include "common/function-view.h".
10394 (collect_info::add_symbol): New method.
10395 (struct symbol_and_data_callback, iterate_inline_only, struct
10396 symbol_matcher_data, iterate_name_matcher): Delete.
10397 (iterate_over_all_matching_symtabs): Adjust to use function_view
10398 as callback type and lambdas.
10399 (iterate_over_file_blocks): Adjust to use function_view as
10400 callback type.
10401 (decode_compound_collector): Now a class with private fields.
10402 (decode_compound_collector::release_symbols): New method.
10403 (collect_one_symbol): Rename to...
10404 (decode_compound_collector::operator()): ... this and adjust.
10405 (lookup_prefix_sym): decode_compound_collector construction bits
10406 move to decode_compound_collector ctor. Pass the
10407 decode_compound_collector object directly as callback. Remove
10408 cleanups and use decode_compound_collector::release_symbols
10409 instead.
10410 (symtab_collector): Now a class with private fields.
10411 (symtab_collector::release_symtabs): New method.
10412 (add_symtabs_to_list): Rename to...
10413 (symtab_collector::operator()): ... this and adjust.
10414 (collect_symtabs_from_filename): symtab_collector construction
10415 bits move to symtab_collector ctor. Pass the symtab_collector
10416 object directly as callback. Remove cleanups and use
10417 symtab_collector::release_symtabs instead.
10418 (collect_symbols): Delete.
10419 (add_matching_symbols_to_info): Use lambdas.
10420 * macrocmd.c (print_macro_callback): Delete.
10421 (info_macro_command): Use a lambda.
10422 (info_macros_command): Pass print_macro_definition as callable
10423 directly.
10424 (print_one_macro): Remove 'ignore' parameter.
10425 (macro_list_command): Adjust.
10426 * macrotab.c (macro_for_each_data::fn): Now a function_view.
10427 (macro_for_each_data::user_data): Delete field.
10428 (foreach_macro): Adjust to call the function_view.
10429 (macro_for_each): Adjust to use function_view as callback type.
10430 (foreach_macro_in_scope): Adjust to call the function_view.
10431 (macro_for_each_in_scope): Adjust to use function_view as callback
10432 type.
10433 * macrotab.h: Include "common/function-view.h".
10434 (macro_callback_fn): Declare a prototype instead of a pointer.
10435 Remove "user_data" parameter.
10436 (macro_for_each, macro_for_each_in_scope): Adjust to use
10437 function_view as callback type.
10438 * psymtab.c (partial_map_expand_apply)
10439 (psym_map_symtabs_matching_filename, recursively_search_psymtabs):
10440 Adjust to use function_view as callback type and to return bool.
10441 (psym_expand_symtabs_matching): Adjust to use function_view as
10442 callback types.
10443 * symfile-debug.c (debug_qf_map_symtabs_matching_filename): Adjust
10444 to use function_view as callback type and to return bool.
10445 (debug_qf_expand_symtabs_matching): Adjust to use function_view as
10446 callback types.
10447 * symfile.c (expand_symtabs_matching): Adjust to use function_view
10448 as callback types.
10449 * symfile.h: Include "common/function-view.h".
10450 (expand_symtabs_file_matcher_ftype)
10451 (expand_symtabs_symbol_matcher_ftype)
10452 (expand_symtabs_exp_notify_ftype): Remove "data" parameter and
10453 return bool.
10454 (quick_symbol_functions::map_symtabs_matching_filename)
10455 (quick_symbol_functions::expand_symtabs_matching): Adjust to use
10456 function_view as callback type and return bool.
10457 (expand_symtabs_matching): Adjust to use function_view as callback
10458 type.
10459 (maintenance_expand_name_matcher)
10460 (maintenance_expand_file_matcher): Delete.
10461 (maintenance_expand_symtabs): Use lambdas.
10462 * symtab.c (iterate_over_some_symtabs): Adjust to use
10463 function_view as callback types and return bool.
10464 (iterate_over_symtabs): Likewise. Use unique_xmalloc_ptr instead
10465 of a cleanup.
10466 (lookup_symtab_callback): Delete.
10467 (lookup_symtab): Use a lambda.
10468 (iterate_over_symbols): Adjust to use function_view as callback
10469 type.
10470 (struct search_symbols_data, search_symbols_file_matches)
10471 (search_symbols_name_matches): Delete.
10472 (search_symbols): Use a pair of lambdas.
10473 (struct add_name_data, add_macro_name, symbol_completion_matcher)
10474 (symtab_expansion_callback): Delete.
10475 (default_make_symbol_completion_list_break_on_1): Use lambdas.
10476 * symtab.h: Include "common/function-view.h".
10477 (iterate_over_some_symtabs): Adjust to use function_view as
10478 callback type and return bool.
10479 (iterate_over_symtabs): Adjust to use function_view as callback
10480 type.
10481 (symbol_found_callback_ftype): Remove 'data' parameter and return
10482 bool.
10483 (iterate_over_symbols): Adjust to use function_view as callback
10484 type.
10485
07e253aa
PA
104862017-02-23 Pedro Alves <palves@redhat.com>
10487
10488 * Makefile.in (SUBDIR_UNITTESTS_SRCS, SUBDIR_UNITTESTS_OBS): New.
10489 (%.o) <unittests/%.c>: New pattern.
10490 * configure.ac ($development): Add $(SUBDIR_UNITTESTS_OBS) to
10491 CONFIG_OBS, and $(SUBDIR_UNITTESTS_SRCS) to CONFIG_SRCS.
10492 * common/function-view.h: New file.
10493 * unittests/function-view-selftests.c: New file.
10494 * configure: Regenerate.
10495
8eaf5320
SM
104962017-02-23 Simon Marchi <simon.marchi@ericsson.com>
10497
10498 * bsd-uthread.c (bsd_uthread_thread_alive): Use ptid instead of
10499 inferior_ptid.
10500 * go32-nat.c (go32_thread_alive): Likewise.
10501
38768751
YQ
105022017-02-23 Yao Qi <yao.qi@linaro.org>
10503
10504 * varobj-iter.h (varobj_iter_delete): Call xfree instead of
10505 delete.
10506
0a8beaba
YQ
105072017-02-23 Yao Qi <yao.qi@linaro.org>
10508
10509 * varobj.c (varobj_clear_saved_item): Use delete instead of
10510 xfree.
10511 (update_dynamic_varobj_children): Likewise.
10512
58fdfd2c
JK
105132017-02-21 Jan Kratochvil <jan.kratochvil@redhat.com>
10514
10515 * dwarf2read.c (dwarf2_record_block_ranges): Add forgotten BASEADDR.
10516
1b90b139
SM
105172017-02-21 Simon Marchi <simon.marchi@ericsson.com>
10518
10519 * common/enum-flags.h (enum_flags::enum_flags): Initialize
10520 m_enum_value to 0 in default constructor.
10521
2039d74e
EBM
105222017-02-21 Edjunior Barbosa Machado <emachado@linux.vnet.ibm.com>
10523
10524 * rs6000-tdep.c (LOAD_AND_RESERVE_MASK): Rename from LWARX_MASK.
10525 (STORE_CONDITIONAL_MASK): Rename from STWCX_MASK.
10526 (LBARX_INSTRUCTION, LHARX_INSTRUCTION, LQARX_INSTRUCTION,
10527 STBCX_INSTRUCTION, STHCX_INSTRUCTION, STQCX_INSTRUCTION): New defines.
10528 (IS_LOAD_AND_RESERVE_INSN, IS_STORE_CONDITIONAL_INSN): New macros.
10529 (ppc_displaced_step_copy_insn): Use IS_LOAD_AND_RESERVE_INSN.
10530 (ppc_deal_with_atomic_sequence): Use IS_LOAD_AND_RESERVE_INSN and
10531 IS_STORE_CONDITIONAL_INSN.
10532
7814882a
JK
105332017-02-21 Jan Kratochvil <jan.kratochvil@redhat.com>
10534
10535 * dwarf2_rnglists_process: Initialize range_beginning and range_end.
10536
0ae60b63
JK
105372017-02-20 Jan Kratochvil <jan.kratochvil@redhat.com>
10538
10539 * NEWS (Changes since GDB 7.12): Add DWARF-5.
10540
0224619f
JK
105412017-02-20 Jan Kratochvil <jan.kratochvil@redhat.com>
10542
10543 * dwarf2read.c (skip_one_die, read_attribute_value)
10544 (dwarf2_const_value_attr, dump_die_shallow)
10545 (dwarf2_get_attr_constant_value, dwarf2_fetch_constant_bytes)
10546 (skip_form_bytes, attr_form_is_constant): Handle DW_FORM_data16.
10547
0af92d60
JK
105482017-02-20 Jan Kratochvil <jan.kratochvil@redhat.com>
10549
10550 * dwarf2read.c (read_file_scope): Rename DW_MACRO_GNU_*.
10551 (dwarf_parse_macro_header): Accept DWARF version 5.
10552 (dwarf_decode_macro_bytes, dwarf_decode_macros): Rename DW_MACRO_GNU_*.
10553
216f72a1
JK
105542017-02-20 Jan Kratochvil <jan.kratochvil@redhat.com>
10555
10556 * block.c (call_site_for_pc): Rename DW_OP_GNU_*, DW_TAG_GNU_* and
10557 DW_AT_GNU_*.
10558 * common/common-exceptions.h (enum errors): Likewise.
10559 * dwarf2-frame.c (class dwarf_expr_executor): Likewise.
10560 * dwarf2expr.c (dwarf_block_to_dwarf_reg)
10561 (dwarf_expr_context::execute_stack_op): Likewise.
10562 * dwarf2expr.h (struct dwarf_expr_context, struct dwarf_expr_piece):
10563 Likewise.
10564 * dwarf2loc.c (dwarf_evaluate_loc_desc::get_base_type)
10565 (dwarf_evaluate_loc_desc::push_dwarf_reg_entry_value)
10566 (show_entry_values_debug, call_site_to_target_addr)
10567 (func_addr_to_tail_call_list, func_verify_no_selftailcall)
10568 (dwarf_expr_reg_to_entry_parameter, dwarf_entry_parameter_to_value)
10569 (entry_data_value_free_closure, value_of_dwarf_reg_entry)
10570 (value_of_dwarf_block_entry, indirect_pieced_value)
10571 (symbol_needs_eval_context::push_dwarf_reg_entry_value):
10572 (disassemble_dwarf_expression): Likewise.
10573 * dwarf2read.c (process_die, inherit_abstract_dies)
10574 (read_call_site_scope): Likewise.
10575 * gdbtypes.h (struct func_type, struct call_site_parameter)
10576 (struct call_site): Likewise.
10577 * stack.c (read_frame_arg): Likewise.
10578 * std-operator.def (OP_VAR_ENTRY_VALUE): Likewise.
10579
43988095
JK
105802017-02-20 Jan Kratochvil <jan.kratochvil@redhat.com>
10581
10582 * defs.h (read_unsigned_leb128): New declaration.
10583 * dwarf2loc.c (decode_debug_loclists_addresses): New function.
10584 (decode_debug_loc_dwo_addresses): Update DEBUG_LOC_* to DW_LLE_*.
10585 (dwarf2_find_location_expression): Call also
10586 decode_debug_loclists_addresses. Handle DWARF-5 ULEB128 length.
10587 * dwarf2loc.h (dwarf2_version): New declaration.
10588 * dwarf2read.c (struct dwarf2_per_objfile): Add loclists, line_str,
10589 rnglists.
10590 (dwarf2_elf_names): Add .debug_loclists, .debug_line_str,
10591 .debug_rnglists.
10592 (struct dwop_section_names): Add loclists_dwo.
10593 (dwop_section_names): Add .debug_loclists.dwo.
10594 (struct comp_unit_head): Add unit_type, signature, type_offset_in_tu.
10595 (struct dwarf2_per_cu_data): Add dwarf_version.
10596 (struct dwo_sections): Add loclists.
10597 (struct attr_abbrev): Add implicit_const.
10598 (read_indirect_line_string): New declaration.
10599 (read_unsigned_leb128): Delete declaration.
10600 (rcuh_kind): New definition.
10601 (read_and_check_comp_unit_head): Change parameter
10602 is_debug_types_section to section_kind.
10603 (dwarf2_locate_sections): Handle loclists, line_str and rnglists.
10604 (read_comp_unit_head): Change parameter abfd to section, add parameter
10605 section_kind. Handle DWARF-5.
10606 (error_check_comp_unit_head): Accept also DWARF version 5.
10607 (read_and_check_comp_unit_head): Change parameter
10608 is_debug_types_section to section_kind.
10609 (read_and_check_type_unit_head): Delete function.
10610 (read_abbrev_offset): Handle DWARF-5.
10611 (create_debug_type_hash_table): Add parameter section_kind. Process
10612 only DW_UT_type. Use signature and type_offset_in_tu from struct
10613 comp_unit_head.
10614 (create_debug_types_hash_table): Update create_debug_type_hash_table
10615 caller.
10616 (create_all_type_units): Call create_debug_type_hash_table.
10617 (read_cutu_die_from_dwo, init_cutu_and_read_dies): Change
10618 read_and_check_type_unit_head caller to read_and_check_comp_unit_head
10619 caller.
10620 (skip_one_die): Handle DW_FORM_implicit_const.
10621 (dwarf2_rnglists_process): New function.
10622 (dwarf2_ranges_process): Call dwarf2_rnglists_process for DWARF-5.
10623 (abbrev_table_read_table): Handle DW_FORM_implicit_const.
10624 (read_attribute_value): Handle DW_FORM_implicit_const,
10625 DW_FORM_line_strp.
10626 (read_attribute): Handle DW_FORM_implicit_const.
10627 (read_indirect_string_at_offset_from): New function from
10628 read_indirect_string_at_offset.
10629 (read_indirect_string_at_offset): Call
10630 read_indirect_string_at_offset_from.
10631 (read_indirect_line_string_at_offset): New function.
10632 (read_indirect_string): New function comment.
10633 (read_indirect_line_string): New function.
10634 (read_unsigned_leb128): Make it global.
10635 (dwarf2_string_attr): Handle DWARF-5.
10636 (add_include_dir_stub, read_formatted_entries): New functions.
10637 (dwarf_decode_line_header, dump_die_shallow, cu_debug_loc_section):
10638 Handle DWARF-5.
10639 (per_cu_header_read_in): Update read_comp_unit_head caller.
10640 (dwarf2_version): New function.
10641 * symfile.h (struct dwarf2_debug_sections): Add loclists, line_str and
10642 rnglists.
10643 * xcoffread.c (dwarf2_xcoff_names): Update struct dwarf2_debug_sections
10644 fields.
10645
22d2f3ab
JK
106462017-02-20 Jan Kratochvil <jan.kratochvil@redhat.com>
10647
10648 * dwarf2read.c (abbrev_table_read_table): Read the data only once.
10649
5f46c5a5
JK
106502017-02-20 Jan Kratochvil <jan.kratochvil@redhat.com>
10651
10652 * dwarf2read.c (dwarf2_ranges_process): New function from
10653 dwarf2_ranges_read.
10654 (dwarf2_ranges_read, dwarf2_record_block_ranges): Use
10655 dwarf2_ranges_process.
10656
78d4d2c5
JK
106572017-02-20 Jan Kratochvil <jan.kratochvil@redhat.com>
10658
10659 * dwarf2read.c (create_debug_type_hash_table): New function from
10660 create_debug_types_hash_table.
10661 (create_debug_types_hash_table): Call create_debug_type_hash_table.
10662 (create_all_type_units, open_and_init_dwo_file): Update
10663 create_debug_types_hash_table callers.
10664
1b076f25
SDJ
106652017-02-20 Sergio Durigan Junior <sergiodj@redhat.com>
10666
10667 PR gdb/16188
10668 * fork-child.c (trace_start_error): Fix thinko. va_end should
10669 refer to 'ap', not 'args'.
10670
0db8980c
SDJ
106712017-02-20 Sergio Durigan Junior <sergiodj@redhat.com>
10672 Pedro Alves <palves@redhat.com>
10673
10674 PR gdb/16188
10675 * darwin-nat.c (darwin_ptrace_me): Check if calls to system
10676 calls succeeded.
10677 * fork-child.c (trace_start_error): New function.
10678 (trace_start_error_with_name): Likewise.
10679 * gnu-nat.c (gnu_ptrace_me): Check if call to PTRACE succeeded.
10680 * inf-ptrace.c (inf_ptrace_me): Likewise.
10681 * inferior.h (trace_start_error): New prototype.
10682 (trace_start_error_with_name): Likewise.
10683
99e8a4f9
SDJ
106842017-02-15 Sergio Durigan Junior <sergiodj@redhat.com>
10685
10686 PR gdb/21164
10687 * psymtab.c (maintenance_print_psymbols): Verify if 'argv' is not
10688 NULL before using it.
10689 * symmisc.c (maintenance_print_symbols): Likewise.
10690 (maintenance_print_msymbols): Likewise.
10691
4e746bb6
TW
106922017-02-14 Tim Wiederhake <tim.wiederhake@intel.com>
10693
10694 * NEWS: Add record Python bindings entry.
10695
106962017-02-14 Tim Wiederhake <tim.wiederhake@intel.com>
10697
10698 * Makefile.in (SUBDIR_PYTHON_OBS): Add py-record-btrace.o,
10699 py-record-full.o.
10700 (SUBDIR_PYTHON_SRCS): Add py-record-btrace.c, py-record-full.c.
10701 * python/py-record-btrace.c, python/py-record-btrace.h,
10702 python/py-record-full.c, python/py-record-full.h: New file.
10703 * python/py-record.c: Add include for py-record-btrace.h and
10704 py-record-full.h.
10705 (recpy_method, recpy_format, recpy_goto, recpy_replay_position,
10706 recpy_instruction_history, recpy_function_call_history, recpy_begin,
10707 recpy_end): Use functions from py-record-btrace.c and py-record-full.c.
10708 * python/python-internal.h (PyInt_FromSsize_t, PyInt_AsSsize_t):
10709 New definition.
10710 (gdbpy_initialize_btrace): New export.
10711 * python/python.c (_initialize_python): Add gdbpy_initialize_btrace.
10712
107132017-02-14 Tim Wiederhake <tim.wiederhake@intel.com>
10714
10715 * Makefile.in (SUBDIR_PYTHON_OBS): Add python/py-record.o.
10716 (SUBDIR_PYTHON_SRCS): Add python/py-record.c.
10717 * python/py-record.c: New file.
10718 * python/python-internal.h (gdbpy_start_recording,
10719 gdbpy_current_recording, gdpy_stop_recording,
10720 gdbpy_initialize_record): New export.
10721 * python/python.c (_initialize_python): Add gdbpy_initialize_record.
10722 (python_GdbMethods): Add gdbpy_start_recording,
10723 gdbpy_current_recording and gdbpy_stop_recording.
10724
107252017-02-14 Tim Wiederhake <tim.wiederhake@intel.com>
10726
10727 * record-btrace.c (record_btrace_record_method): New function.
10728 (init_record_btrace_ops): Initialize to_record_method.
10729 * record-full.c (record_full_record_method): New function.
10730 (init_record_full_ops, init_record_full_core_ops): Add
10731 record_full_record_method.
10732 * record.h (enum record_method): New enum.
10733 * target-debug.h (target_debug_print_enum_record_method: New define.
10734 * target-delegates.c: Regenerate.
10735 * target.c (target_record_method): New function.
10736 * target.h: Include record.h.
10737 (struct target_ops) <to_record_method>: New field.
10738 (target_record_method): New export.
10739
107402017-02-14 Tim Wiederhake <tim.wiederhake@intel.com>
10741
10742 * record.h (record_start, record_stop): New export.
10743 * record.c (record_start, record_stop): New function.
10744
107452017-02-14 Tim Wiederhake <tim.wiederhake@intel.com>
10746
10747 * btrace.c (btrace_fetch): Copy function call segments pointer
10748 into a vector.
10749 (btrace_clear): Clear the vector.
10750 (btrace_find_insn_by_number): Use binary search to find the correct
10751 function call segment.
10752 * btrace.h (brace_fun_p): New typedef.
10753 (struct btrace_thread_info) <functions>: New field.
10754
107552017-02-14 Tim Wiederhake <tim.wiederhake@intel.com>
10756
10757 * record-btrace.c (btrace_ui_out_decode_error): Move most of it ...
10758 * btrace.c (btrace_decode_error): ... here. New function.
10759 * btrace.h (btrace_decode_error): New export.
10760
107612017-02-14 Tim Wiederhake <tim.wiederhake@intel.com>
10762
10763 * btrace.c (ftrace_call_num_insn, btrace_insn_get_error): New function.
10764 (ftrace_new_function, btrace_insn_number, btrace_insn_cmp,
10765 btrace_find_insn_by_number): Remove special case for gaps.
10766 * btrace.h (btrace_insn_get_error): New export.
10767 (btrace_insn_number, btrace_find_insn_by_number): Adjust comment.
10768 * record-btrace.c (btrace_insn_history): Print number for gaps.
10769 (record_btrace_info, record_btrace_goto): Handle gaps.
10770
3f77c769
TT
107712017-02-14 Tom Tromey <tom@tromey.com>
10772
10773 PR python/13598:
10774 * python/python.c (gdbpy_before_prompt_hook): Emit before_prompt
10775 event.
10776 * python/py-evts.c (gdbpy_initialize_py_events): Add
10777 before_prompt registry.
10778 * python/py-events.h (events_object) <before_prompt>: New field.
10779
4c2c7ac6
MM
107802017-02-14 Markus Metzger <markus.t.metzger@intel.com>
10781
10782 * btrace.c (ftrace_new_switch): Preserve up link and flags.
10783
5cf30ebf
LM
107842017-02-13 Luis Machado <lgustavo@codesourcery.com>
10785
10786 * symfile (_initialize_symfile): Add usage text to the load command's
10787 help text.
10788
26a06916
SM
107892017-02-10 Simon Marchi <simon.marchi@ericsson.com>
10790
10791 * utils.c (defaulted_query): Don't query on secondary UIs.
10792
0b145e37
TT
107932017-02-10 Tom Tromey <tom@tromey.com>
10794
10795 * rust-lang.c (rust_get_disr_info): Remove unused variable.
10796
2d8365c4
TT
107972017-02-10 Tom Tromey <tom@tromey.com>
10798
10799 * python/py-value.c (valpy_richcompare_throw): Remove unnecessary
10800 "cleanup" local.
10801 * python/py-type.c (typy_legacy_template_argument): Remove
10802 unnecessary "cleanup" local.
10803
2bb8f231
TT
108042017-02-10 Tom Tromey <tom@tromey.com>
10805
10806 * python/python.c (do_start_initialization): New function, from
10807 _initialize_python.
10808 (_initialize_python): Call do_start_initialization.
10809 * python/py-linetable.c (ltpy_iternext): Use explicit returns, not
10810 goto.
10811
1bdfaf42
TT
108122017-02-10 Tom Tromey <tom@tromey.com>
10813
10814 * python/py-prettyprint.c (pretty_print_one_value): Use
10815 gdbpy_ref.
10816
88b6faea
TT
108172017-02-10 Tom Tromey <tom@tromey.com>
10818
10819 * python/py-cmd.c (cmdpy_destroyer): Use gdbpy_ref.
10820 * python/py-breakpoint.c (gdbpy_breakpoint_deleted): Use
10821 gdbpy_ref.
10822 * python/py-type.c (field_new): Use gdbpy_ref.
10823 * python/py-symtab.c (symtab_and_line_to_sal_object): Use
10824 gdbpy_ref.
10825 * python/py-progspace.c (pspy_new): Use gdbpy_ref.
10826 (py_free_pspace): Likewise.
10827 (pspace_to_pspace_object): Likewise.
10828 * python/py-objfile.c (objfpy_new): Use gdbpy_ref.
10829 (py_free_objfile): Likewise.
10830 (objfile_to_objfile_object): Likewise.
10831 * python/py-inferior.c (delete_thread_object): Use
10832 gdbpy_ref.
10833 (infpy_read_memory): Likewise.
10834 (py_free_inferior): Likewise.
10835 * python/py-evtregistry.c (create_eventregistry_object): Use
10836 gdbpy_ref.
10837 * python/py-event.c (create_event_object): Use gdbpy_ref.
10838
7780f186
TT
108392017-02-10 Tom Tromey <tom@tromey.com>
10840
10841 * python/py-ref.h (gdbpy_ref_policy): Now a template.
10842 (gdbpy_ref): Now a template; allow subclasses of PyObject to be
10843 used.
10844 * python/py-arch.c, python/py-bpevent.c, python/py-breakpoint.c,
10845 python/py-cmd.c, python/py-continueevent.c, python/py-event.c,
10846 python/py-exitedevent.c, python/py-finishbreakpoint.c,
10847 python/py-framefilter.c, python/py-function.c,
10848 python/py-inferior.c, python/py-infevents.c,
10849 python/py-linetable.c, python/py-newobjfileevent.c,
10850 python/py-param.c, python/py-prettyprint.c, python/py-ref.h,
10851 python/py-signalevent.c, python/py-stopevent.c,
10852 python/py-symbol.c, python/py-threadevent.c, python/py-type.c,
10853 python/py-unwind.c, python/py-utils.c, python/py-value.c,
10854 python/py-varobj.c, python/py-xmethods.c, python/python.c,
10855 varobj.c: Change gdbpy_ref to gdbpy_ref<>.
10856
d4b0bb18
TT
108572017-02-10 Tom Tromey <tom@tromey.com>
10858
10859 * ui-out.h (ui_out_emit_type): New class.
10860 (ui_out_emit_tuple, ui_out_emit_list): New typedefs.
10861 * python/py-framefilter.c (py_print_single_arg): Use gdb::optional
10862 and ui_out_emit_tuple.
10863 (enumerate_locals): Likewise.
10864 (py_mi_print_variables, py_print_locals, py_print_args): Use
10865 ui_out_emit_list.
10866 (py_print_frame): Use gdb::optional, ui_out_emit_tuple,
10867 ui_out_emit_list.
10868 * common/gdb_optional.h: New file.
10869
f67f945c
MG
108702017-02-10 Martin Galvan <martingalvan@sourceware.org>
10871
10872 * MAINTAINERS (Write After Approval): Update my e-mail address.
10873
18da0c51
MG
108742017-02-10 Martin Galvan <martingalvan@sourceware.org>
10875
10876 PR gdb/21122
10877 * breakpoint.c (_initialize_breakpoint): Update the help description
10878 of the 'commands' command to indicate that it takes a list argument.
10879
62c14536
SM
108802017-02-09 Simon Marchi <simon.marchi@ericsson.com>
10881
10882 * interps.c (current_interp_set_logging): Remove "return".
10883
ff6fa247
GB
108842017-02-09 Gary Benson <gbenson@redhat.com>
10885
10886 * symtab.c (add_symtab_completions): Prevent NULL pointer
10887 dereference.
10888
a474bd8e
PA
108892017-02-08 Pedro Alves <palves@redhat.com>
10890
10891 * interps.c (interp::interp): Remove reference to quiet_p.
10892 (interp_set): Make static. Remove dead "Switching to" output
10893 code.
10894 (interp_quiet_p, interp_set_quiet): Delete.
10895 (interpreter_exec_cmd): Don't set the interpreter quiet.
10896 * interps.h (interp_quiet_p): Make static.
10897 (class interp) <quiet_p>: Remove field
10898
3d7b173c
JG
108992017-02-08 Jerome Guitton <guitton@adacore.com>
10900
604c4576
JG
10901 * cli/cli-decode.c (find_command_name_length): Make it extern.
10902 * cli/cli-decode.h (find_command_name_length): Declare.
10903 * cli/cli-script.c (command_name_equals, line_first_arg):
10904 New functions.
10905 (process_next_line): Use cli-decode to parse command names.
10906 (build_command_line): Make args a constant pointer.
10907
109082017-02-08 Jerome Guitton <guitton@adacore.com>
6dbb839a 10909
3d7b173c
JG
10910 * cli-decode.c (lookup_cmd_1, lookup_cmd_composition):
10911 Remove case-insensitive search.
10912
1291063d
JM
109132017-02-07 Jose E. Marchesi <jose.marchesi@oracle.com>
10914
10915 * sparc-tdep.c (sparc32_gdbarch_init): Do not place a + operator
10916 at the end of the line. Avoids an ARI warning.
10917
20b477a7
LM
109182017-02-06 Luis Machado <lgustavo@codesourcery.com>
10919
10920 * NEWS: Mention support for record/replay of Intel 64 rdrand and
10921 rdseed instructions.
10922 i386-tdep.c (i386_process_record): Handle Intel 64 rdrand and rseed.
10923
3f7b46f2
IR
109242017-02-06 Ivo Raisr <ivo.raisr@oracle.com>
10925
10926 PR tdep/20936
10927 Provide and use sparc32 and sparc64 target description XML files.
10928 * features/sparc/sparc32-cp0.xml, features/sparc/sparc32-cpu.xml,
10929 features/sparc/sparc32-fpu.xml: New files for sparc 32-bit.
10930 * features/sparc/sparc64-cp0.xml, features/sparc/sparc64-cpu.xml,
10931 features/sparc/sparc64-fpu.xml: New files for sparc 64-bit.
10932 * features/sparc/sparc32-solaris.xml: New file.
10933 * features/sparc/sparc64-solaris.xml: New file.
10934 * features/sparc/sparc32-solaris.c: Generated.
10935 * features/sparc/sparc64-solaris.c: Generated.
10936 * sparc-tdep.h: Account for differences in target descriptions.
10937 * sparc-tdep.c (sparc32_register_name): Use target provided registers.
10938 (sparc32_register_type): Use target provided registers.
10939 (validate_tdesc_registers): New function.
10940 (sparc32_gdbarch_init): Use tdesc_has_registers.
10941 Set pseudoregister functions.
10942 * sparc64-tdep.c (sparc64_register_name): Use target provided registers.
10943 (sparc64_register_type): Use target provided registers.
10944 (sparc64_init_abi): Set pseudoregister functions.
10945
f0fd41c1
TT
109462017-02-03 Tom Tromey <tom@tromey.com>
10947
10948 PR rust/21097:
10949 * rust-lang.c (rust_print_type) <TYPE_CODE_UNION>: Handle enums
10950 with a single member.
10951
d6f9b0fb
PA
109522017-02-03 Pedro Alves <palves@redhat.com>
10953
10954 * cli/cli-interp.c (cli_interp_base::cli_interp_base)
10955 (cli_interp_base::~cli_interp_base): New.
10956 (cli_interp): New struct.
10957 (as_cli_interp): Cast the interp itself to cli_interp.
10958 (cli_interpreter_pre_command_loop): Rename to ...
10959 (cli_interp_base::pre_command_loop): ... this. Remove 'self'
10960 parameter.
10961 (cli_interpreter_init): Rename to ...
10962 (cli_interp::init): ... this. Remove 'self' parameter. Use
10963 boolean. Make extern.
10964 (cli_interpreter_resume): Rename to ...
10965 (cli_interp::resume): ... this. Remove 'data' parameter. Make
10966 extern.
10967 (cli_interpreter_suspend): Rename to ...
10968 (cli_interp::suspend): ... this. Remove 'data' parameter. Make
10969 extern.
10970 (cli_interpreter_exec): Rename to ...
10971 (cli_interp::exec): ... this. Remove 'data' parameter. Make
10972 extern.
10973 (cli_interpreter_supports_command_editing): Rename to ...
10974 (cli_interp_base::supports_command_editing): ... this. Remove
10975 'interp' parameter. Make extern.
10976 (cli_ui_out): Rename to ...
10977 (cli_interp::interp_ui_out): ... this. Remove 'interp' parameter.
10978 Make extern.
10979 (cli_set_logging): Rename to ...
10980 (cli_interp_base::set_logging): ... this. Remove 'interp'
10981 parameter. Make extern.
10982 (cli_interp_procs): Delete.
10983 (cli_interp_factory): Adjust to use "new".
10984 * cli/cli-interp.h: Include "interps.h".
10985 (struct cli_interp_base): New struct.
10986 * interps.c (struct interp): Delete. Fields moved to interps.h.
10987 (interp_new): Delete.
10988 (interp::interp, interp::~interp): New.
10989 (interp_set): Use bool, and return void. Assume the interpreter
10990 has suspend, init and resume methods, and that the all return
10991 void.
10992 (set_top_level_interpreter): interp_set returns void.
10993 (interp_ui_out): Adapt.
10994 (current_interp_set_logging): Adapt.
10995 (interp_data): Delete.
10996 (interp_pre_command_loop, interp_supports_command_editing): Adapt.
10997 (interp_exec): Adapt.
10998 (top_level_interpreter_data): Delete.
10999 * interps.h (interp_init_ftype, interp_resume_ftype)
11000 (interp_suspend_ftype, interp_exec_ftype)
11001 (interp_pre_command_loop_ftype, interp_ui_out_ftype): Delete.
11002 (class interp): New.
11003 (interp_new): Delete.
11004 (interp_set): Now returns void. Use bool.
11005 (interp_data, top_level_interpreter_data): Delete.
11006 * mi/mi-common.h: Include interps.h.
11007 (class mi_interp): Inherit from interp. Define a ctor. Declare
11008 init, resume, suspect, exec, interp_ui_out, set_logging and
11009 pre_command_loop methods.
11010 * mi/mi-interp.c (as_mi_interp): Cast the interp itself.
11011 (mi_interpreter_init): Rename to ...
11012 (mi_interp::init): ... this. Remove the 'interp' parameter, use
11013 bool, return void and make extern. Adjust.
11014 (mi_interpreter_resume): ... Rename to ...
11015 (mi_interp::resume): ... this. Remove the 'data' parameter,
11016 return void and make extern. Adjust.
11017 (mi_interpreter_suspend): ... Rename to ...
11018 (mi_interp::suspend): ... this. Remove the 'data' parameter,
11019 return void and make extern. Adjust.
11020 (mi_interpreter_exec): ... Rename to ...
11021 (mi_interp::exec): ... this. Remove the 'data' parameter and make
11022 extern. Adjust.
11023 (mi_interpreter_pre_command_loop): ... Rename to ...
11024 (mi_interp::pre_command_loop): ... this. Remove the 'self'
11025 parameter and make extern.
11026 (mi_on_normal_stop_1): Adjust.
11027 (mi_ui_out): Rename to ...
11028 (mi_interp::interp_ui_out): ... this. Remove the 'interp'
11029 parameter and make extern. Adjust.
11030 (mi_set_logging): Rename to ...
11031 (mi_interp::set_logging): ... this. Remove the 'interp'
11032 parameter and make extern. Adjust.
11033 (mi_interp_procs): Delete.
11034 (mi_interp_factory): Adjust to use 'new'.
11035 * mi/mi-main.c (mi_cmd_gdb_exit, captured_mi_execute_command)
11036 (mi_print_exception, mi_execute_command, mi_load_progress):
11037 Adjust.
11038 * tui/tui-interp.c (tui_interp): New class.
11039 (as_tui_interp): Return a tui_interp pointer.
11040 (tui_on_normal_stop, tui_on_signal_received)
11041 (tui_on_end_stepping_range, tui_on_signal_exited, tui_on_exited)
11042 (tui_on_no_history, tui_on_user_selected_context_changed): Adjust
11043 to use interp::interp_ui_out.
11044 (tui_init): Rename to ...
11045 (tui_interp::init): ... this. Remove the 'self' parameter, use
11046 bool, return void and make extern. Adjust.
11047 (tui_resume): Rename to ...
11048 (tui_interp::resume): ... this. Remove the 'data' parameter,
11049 return void and make extern. Adjust.
11050 (tui_suspend): Rename to ...
11051 (tui_interp::suspend): ... this. Remove the 'data' parameter,
11052 return void and make extern. Adjust.
11053 (tui_ui_out): Rename to ...
11054 (tui_interp::interp_ui_out): ... this. Remove the 'self'
11055 parameter, and make extern. Adjust.
11056 (tui_exec): Rename to ...
11057 (tui_interp::exec): ... this. Remove the 'data' parameter and
11058 make extern.
11059 (tui_interp_procs): Delete.
11060 (tui_interp_factory): Use "new".
11061
65c40c95
TT
110622017-02-02 Tom Tromey <tom@tromey.com>
11063
11064 * rust-exp.y (ends_raw_string, space_then_number)
11065 (rust_identifier_start_p): Return bool.
11066 * rust-lang.c (rust_tuple_type_p, rust_underscore_fields)
11067 (rust_tuple_struct_type_p, rust_tuple_variant_type_p)
11068 (rust_slice_type_p, rust_range_type_p, rust_u8_type_p)
11069 (rust_chartype_p): Return bool.
11070 (val_print_struct, rust_print_struct_def, rust_print_type):
11071 Update.
11072 * rust-lang.h (rust_tuple_type_p, rust_tuple_struct_type_p):
11073 Return bool.
11074
b50f188d
TT
110752017-02-02 Tom Tromey <tom@tromey.com>
11076
11077 * rust-lang.c: Reindent.
11078
03c85b11
TT
110792017-02-02 Tom Tromey <tom@tromey.com>
11080
11081 * rust-lang.h (rust_crate_for_block): Update.
11082 * rust-lang.c (rust_crate_for_block): Return std::string.
11083 (rust_get_disr_info): Use std:;string, not
11084 gdb::unique_xmalloc_ptr.
11085 * rust-exp.y (crate_name): Update.
11086
9b6da501
PA
110872017-02-02 Pedro Alves <palves@redhat.com>
11088
11089 * disasm-selftests.c (print_one_insn_test): Move the "verbose"
11090 field out of gdb_disassembler_test and make it static.
11091
ec4cb20b
PA
110922017-02-02 Pedro Alves <palves@redhat.com>
11093
11094 * mi/mi-common.h (struct mi_interp): Delete the mi2_interp,
11095 mi1_interp and mi_interp fields.
11096
5be5dbf0
PA
110972017-02-02 Pedro Alves <palves@redhat.com>
11098
616268b6
PA
11099 * cli/cli-interp.c (struct saved_output_files, saved_output):
11100 Moved from cli/cli-logging.c.
11101 (cli_set_logging): New function.
11102 (cli_interp_procs): Install cli_set_logging.
11103 * cli/cli-interp.h (make_logging_output, cli_set_logging):
11104 Declare.
11105 * cli/cli-logging.c (struct saved_output_files, saved_output):
11106 Moved to cli/cli-interp.c.
11107 (pop_output_files): Don't save outputs here.
11108 (make_logging_output): New function.
11109 (handle_redirections): Don't build tee nor save previous outputs
11110 here.
11111 * interps.c (current_interp_set_logging): Change prototype.
11112 Assume there's always a set_logging_proc method installed.
11113 * interps.h (interp_set_logging_ftype): Change prototype.
11114 (current_interp_set_logging): Change prototype and adjust comment.
11115 * mi/mi-interp.c (mi_set_logging): Change protototype. Adjust to
11116 use make_logging_output.
11117 * tui/tui-interp.c (tui_interp_procs): Install cli_set_logging.
111182017-02-02 Pedro Alves <palves@redhat.com>
11119
5be5dbf0
PA
11120 * cli/cli-logging.c (maybe_warn_already_logging): New factored out
11121 from ...
11122 (set_logging_overwrite): ... here.
11123 (logging_no_redirect_file): Delete.
11124 (set_logging_redirect): Don't handle redirection on the fly.
11125 Instead warn that "logging off" / "logging on" is necessary.
11126 (pop_output_files): Delete references to logging_no_redirect_file.
11127 (show_logging_command): Always speak in terms of what will happen
11128 once logging is reenabled.
11129
c99cc448
PA
111302017-02-02 Pedro Alves <palves@redhat.com>
11131
11132 * disasm.h (gdb_pretty_print_disassembler): Tweak intro comment.
11133
8b172ce7
PA
111342017-02-02 Pedro Alves <palves@redhat.com>
11135
11136 * disasm.c (gdb_pretty_print_insn): Rename to ...
11137 (gdb_pretty_print_disassembler::pretty_print_insn): ... this.
11138 Remove gdbarch parameter. Adapt to clear the object's buffers
11139 instead of allocating new buffers, and to print using the object's
11140 gdb_disassembler instead of calling gdb_print_insn.
11141 (dump_insns): Use gdb_pretty_print_disassembler.
11142 * disasm.h (gdb_pretty_print_insn): Delete declaration.
11143 (gdb_pretty_print_disassembler): New class.
11144 * record-btrace.c (btrace_insn_history): Use
11145 gdb_pretty_print_disassembler.
11146
d7e74731
PA
111472017-02-02 Pedro Alves <palves@redhat.com>
11148
11149 * ada-lang.c (type_as_string): Use string_file.
11150 * ada-valprint.c (ada_print_floating): Use string_file.
11151 * ada-varobj.c (ada_varobj_scalar_image)
11152 (ada_varobj_get_value_image): Use string_file.
11153 * aix-thread.c (aix_thread_extra_thread_info): Use string_file.
11154 * arm-tdep.c (_initialize_arm_tdep): Use string_printf.
11155 * breakpoint.c (update_inserted_breakpoint_locations)
11156 (insert_breakpoint_locations, reattach_breakpoints)
11157 (print_breakpoint_location, print_one_detail_ranged_breakpoint)
11158 (print_it_watchpoint): Use string_file.
11159 (save_breakpoints): Use stdio_file.
11160 * c-exp.y (oper): Use string_file.
11161 * cli/cli-logging.c (set_logging_redirect): Use ui_file_up and
11162 tee_file.
11163 (pop_output_files): Use delete.
11164 (handle_redirections): Use stdio_file and tee_file.
11165 * cli/cli-setshow.c (do_show_command): Use string_file.
11166 * compile/compile-c-support.c (c_compute_program): Use
11167 string_file.
11168 * compile/compile-c-symbols.c (generate_vla_size): Take a
11169 'string_file &' instead of a 'ui_file *'.
11170 (generate_c_for_for_one_variable): Take a 'string_file &' instead
11171 of a 'ui_file *'. Use string_file.
11172 (generate_c_for_variable_locations): Take a 'string_file &'
11173 instead of a 'ui_file *'.
11174 * compile/compile-internal.h (generate_c_for_for_one_variable):
11175 Take a 'string_file &' instead of a 'ui_file *'.
11176 * compile/compile-loc2c.c (push, pushf, unary, binary)
11177 (print_label, pushf_register_address, pushf_register)
11178 (do_compile_dwarf_expr_to_c): Take a 'string_file &' instead of a
11179 'ui_file *'. Adjust.
11180 * compile/compile.c (compile_to_object): Use string_file.
11181 * compile/compile.h (compile_dwarf_expr_to_c)
11182 (compile_dwarf_bounds_to_c): Take a 'string_file &' instead of a
11183 'ui_file *'.
11184 * cp-support.c (inspect_type): Use string_file and obstack_copy0.
11185 (replace_typedefs_qualified_name): Use string_file and
11186 obstack_copy0.
11187 * disasm.c (gdb_pretty_print_insn): Use string_file.
11188 (gdb_disassembly): Adjust reference the null_stream global.
11189 (do_ui_file_delete): Delete.
11190 (gdb_insn_length): Use null_stream.
11191 * dummy-frame.c (maintenance_print_dummy_frames): Use stdio_file.
11192 * dwarf2loc.c (dwarf2_compile_property_to_c)
11193 (locexpr_generate_c_location, loclist_generate_c_location): Take a
11194 'string_file &' instead of a 'ui_file *'.
11195 * dwarf2loc.h (dwarf2_compile_property_to_c): Likewise.
11196 * dwarf2read.c (do_ui_file_peek_last): Delete.
11197 (dwarf2_compute_name): Use string_file.
11198 * event-top.c (gdb_setup_readline): Use stdio_file.
11199 * gdbarch.sh (verify_gdbarch): Use string_file.
11200 * gdbtypes.c (safe_parse_type): Use null_stream.
11201 * guile/scm-breakpoint.c (gdbscm_breakpoint_commands): Use
11202 string_file.
11203 * guile/scm-disasm.c (gdbscm_print_insn_from_port): Take a
11204 'string_file *' instead of a 'ui_file *'.
11205 (gdbscm_arch_disassemble): Use string_file.
11206 * guile/scm-frame.c (frscm_print_frame_smob): Use string_file.
11207 * guile/scm-ports.c (class ioscm_file_port): Now a class that
11208 inherits from ui_file.
11209 (ioscm_file_port_delete, ioscm_file_port_rewind)
11210 (ioscm_file_port_put): Delete.
11211 (ioscm_file_port_write): Rename to ...
11212 (ioscm_file_port::write): ... this. Remove file_port_magic
11213 checks.
11214 (ioscm_file_port_new): Delete.
11215 (ioscm_with_output_to_port_worker): Use ioscm_file_port and
11216 ui_file_up.
11217 * guile/scm-type.c (tyscm_type_name): Use string_file.
11218 * guile/scm-value.c (vlscm_print_value_smob, gdbscm_value_print):
11219 Use string_file.
11220 * infcmd.c (print_return_value_1): Use string_file.
11221 * infrun.c (print_target_wait_results): Use string_file.
11222 * language.c (add_language): Use string_file.
11223 * location.c (explicit_to_string_internal): Use string_file.
11224 * main.c (captured_main_1): Use null_file.
11225 * maint.c (maintenance_print_architecture): Use stdio_file.
11226 * mi/mi-cmd-stack.c (list_arg_or_local): Use string_file.
11227 * mi/mi-common.h (struct mi_interp) <out, err, log, targ,
11228 event_channel>: Change type to mi_console_file pointer.
11229 * mi/mi-console.c (mi_console_file_fputs, mi_console_file_flush)
11230 (mi_console_file_delete): Delete.
11231 (struct mi_console_file): Delete.
11232 (mi_console_file_magic): Delete.
11233 (mi_console_file_new): Delete.
11234 (mi_console_file::mi_console_file): New.
11235 (mi_console_file_delete): Delete.
11236 (mi_console_file_fputs): Delete.
11237 (mi_console_file::write): New.
11238 (mi_console_raw_packet): Delete.
11239 (mi_console_file::flush): New.
11240 (mi_console_file_flush): Delete.
11241 (mi_console_set_raw): Rename to ...
11242 (mi_console_file::set_raw): ... this.
11243 * mi/mi-console.h (class mi_console_file): New class.
11244 (mi_console_file_new, mi_console_set_raw): Delete.
11245 * mi/mi-interp.c (mi_interpreter_init): Use mi_console_file.
11246 (mi_set_logging): Use delete and tee_file. Adjust.
11247 * mi/mi-main.c (output_register): Use string_file.
11248 (mi_cmd_data_evaluate_expression): Use string_file.
11249 (mi_cmd_data_read_memory): Use string_file.
11250 (mi_cmd_execute, print_variable_or_computed): Use string_file.
11251 * mi/mi-out.c (mi_ui_out::main_stream): New.
11252 (mi_ui_out::rewind): Use main_stream and
11253 string_file.
11254 (mi_ui_out::put): Use main_stream and string_file.
11255 (mi_ui_out::mi_ui_out): Remove 'stream' parameter.
11256 Allocate a 'string_file' instead.
11257 (mi_out_new): Don't allocate a mem_fileopen stream here.
11258 * mi/mi-out.h (mi_ui_out::mi_ui_out): Remove 'stream' parameter.
11259 (mi_ui_out::main_stream): Declare method.
11260 * printcmd.c (eval_command): Use string_file.
11261 * psymtab.c (maintenance_print_psymbols): Use stdio_file.
11262 * python/py-arch.c (archpy_disassemble): Use string_file.
11263 * python/py-breakpoint.c (bppy_get_commands): Use string_file.
11264 * python/py-frame.c (frapy_str): Use string_file.
11265 * python/py-framefilter.c (py_print_type, py_print_single_arg):
11266 Use string_file.
11267 * python/py-type.c (typy_str): Use string_file.
11268 * python/py-unwind.c (unwind_infopy_str): Use string_file.
11269 * python/py-value.c (valpy_str): Use string_file.
11270 * record-btrace.c (btrace_insn_history): Use string_file.
11271 * regcache.c (regcache_print): Use stdio_file.
11272 * reggroups.c (maintenance_print_reggroups): Use stdio_file.
11273 * remote.c (escape_buffer): Use string_file.
11274 * rust-lang.c (rust_get_disr_info): Use string_file.
11275 * serial.c (serial_open_ops_1): Use stdio_file.
11276 (do_serial_close): Use delete.
11277 * stack.c (print_frame_arg): Use string_file.
11278 (print_frame_args): Remove local mem_fileopen stream, not used.
11279 (print_frame): Use string_file.
11280 * symmisc.c (maintenance_print_symbols): Use stdio_file.
11281 * symtab.h (struct symbol_computed_ops) <generate_c_location>:
11282 Take a 'string_file *' instead of a 'ui_file *'.
11283 * top.c (new_ui): Use stdio_file and stderr_file.
11284 (free_ui): Use delete.
11285 (execute_command_to_string): Use string_file.
11286 (quit_confirm): Use string_file.
11287 * tracepoint.c (collection_list::append_exp): Use string_file.
11288 * tui/tui-disasm.c (tui_disassemble): Use string_file.
11289 * tui/tui-file.c: Don't include "ui-file.h".
11290 (enum streamtype, struct tui_stream): Delete.
11291 (tui_file_new, tui_file_delete, tui_fileopen, tui_sfileopen)
11292 (tui_file_isatty, tui_file_rewind, tui_file_put): Delete.
11293 (tui_file::tui_file): New method.
11294 (tui_file_fputs): Delete.
11295 (tui_file_get_strbuf): Delete.
11296 (tui_file::puts): New method.
11297 (tui_file_adjust_strbuf): Delete.
11298 (tui_file_flush): Delete.
11299 (tui_file::flush): New method.
11300 * tui/tui-file.h: Tweak intro comment.
11301 Include ui-file.h.
11302 (tui_fileopen, tui_sfileopen, tui_file_get_strbuf)
11303 (tui_file_adjust_strbuf): Delete declarations.
11304 (class tui_file): New class.
11305 * tui/tui-io.c (tui_initialize_io): Use tui_file.
11306 * tui/tui-regs.c (tui_restore_gdbout): Use delete.
11307 (tui_register_format): Use string_stream.
11308 * tui/tui-stack.c (tui_make_status_line): Use string_file.
11309 (tui_get_function_from_frame): Use string_file.
11310 * typeprint.c (type_to_string): Use string_file.
11311 * ui-file.c (struct ui_file, ui_file_magic, ui_file_new): Delete.
11312 (null_stream): New global.
11313 (ui_file_delete): Delete.
11314 (ui_file::ui_file): New.
11315 (null_file_isatty): Delete.
11316 (ui_file::~ui_file): New.
11317 (null_file_rewind): Delete.
11318 (ui_file::printf): New.
11319 (null_file_put): Delete.
11320 (null_file_flush): Delete.
11321 (ui_file::putstr): New.
11322 (null_file_write): Delete.
11323 (ui_file::putstrn): New.
11324 (null_file_read): Delete.
11325 (ui_file::putc): New.
11326 (null_file_fputs): Delete.
11327 (null_file_write_async_safe): Delete.
11328 (ui_file::vprintf): New.
11329 (null_file_delete): Delete.
11330 (null_file::write): New.
11331 (null_file_fseek): Delete.
11332 (null_file::puts): New.
11333 (ui_file_data): Delete.
11334 (null_file::write_async_safe): New.
11335 (gdb_flush, ui_file_isatty): Adjust.
11336 (ui_file_put, ui_file_rewind): Delete.
11337 (ui_file_write): Adjust.
11338 (ui_file_write_for_put): Delete.
11339 (ui_file_write_async_safe, ui_file_read): Adjust.
11340 (ui_file_fseek): Delete.
11341 (fputs_unfiltered): Adjust.
11342 (set_ui_file_flush, set_ui_file_isatty, set_ui_file_rewind)
11343 (set_ui_file_put, set_ui_file_write, set_ui_file_write_async_safe)
11344 (set_ui_file_read, set_ui_file_fputs, set_ui_file_fseek)
11345 (set_ui_file_data): Delete.
11346 (string_file::~string_file, string_file::write)
11347 (struct accumulated_ui_file, do_ui_file_xstrdup, ui_file_xstrdup)
11348 (do_ui_file_as_string, ui_file_as_string): Delete.
11349 (do_ui_file_obsavestring, ui_file_obsavestring): Delete.
11350 (struct mem_file): Delete.
11351 (mem_file_new): Delete.
11352 (stdio_file::stdio_file): New.
11353 (mem_file_delete): Delete.
11354 (stdio_file::stdio_file): New.
11355 (mem_fileopen): Delete.
11356 (stdio_file::~stdio_file): New.
11357 (mem_file_rewind): Delete.
11358 (stdio_file::set_stream): New.
11359 (mem_file_put): Delete.
11360 (stdio_file::open): New.
11361 (mem_file_write): Delete.
11362 (stdio_file_magic, struct stdio_file): Delete.
11363 (stdio_file_new, stdio_file_delete, stdio_file_flush): Delete.
11364 (stdio_file::flush): New.
11365 (stdio_file_read): Rename to ...
11366 (stdio_file::read): ... this. Adjust.
11367 (stdio_file_write): Rename to ...
11368 (stdio_file::write): ... this. Adjust.
11369 (stdio_file_write_async_safe): Rename to ...
11370 (stdio_file::write_async_safe) ... this. Adjust.
11371 (stdio_file_fputs): Rename to ...
11372 (stdio_file::puts) ... this. Adjust.
11373 (stdio_file_isatty): Delete.
11374 (stdio_file_fseek): Delete.
11375 (stdio_file::isatty): New.
11376 (stderr_file_write): Rename to ...
11377 (stderr_file::write) ... this. Adjust.
11378 (stderr_file_fputs): Rename to ...
11379 (stderr_file::puts) ... this. Adjust.
11380 (stderr_fileopen, stdio_fileopen, gdb_fopen): Delete.
11381 (stderr_file::stderr_file): New.
11382 (tee_file_magic): Delete.
11383 (struct tee_file): Delete.
11384 (tee_file::tee_file): New.
11385 (tee_file_new): Delete.
11386 (tee_file::~tee_file): New.
11387 (tee_file_delete): Delete.
11388 (tee_file_flush): Rename to ...
11389 (tee_file::flush): ... this. Adjust.
11390 (tee_file_write): Rename to ...
11391 (tee_file::write): ... this. Adjust.
11392 (tee_file::write_async_safe): New.
11393 (tee_file_fputs): Rename to ...
11394 (tee_file::puts): ... this. Adjust.
11395 (tee_file_isatty): Rename to ...
11396 (tee_file::isatty): ... this. Adjust.
11397 * ui-file.h (struct obstack, struct ui_file): Don't
11398 forward-declare.
11399 (ui_file_new, ui_file_flush_ftype, set_ui_file_flush)
11400 (ui_file_write_ftype)
11401 (set_ui_file_write, ui_file_fputs_ftype, set_ui_file_fputs)
11402 (ui_file_write_async_safe_ftype, set_ui_file_write_async_safe)
11403 (ui_file_read_ftype, set_ui_file_read, ui_file_isatty_ftype)
11404 (set_ui_file_isatty, ui_file_rewind_ftype, set_ui_file_rewind)
11405 (ui_file_put_method_ftype, ui_file_put_ftype, set_ui_file_put)
11406 (ui_file_delete_ftype, set_ui_file_data, ui_file_fseek_ftype)
11407 (set_ui_file_fseek): Delete.
11408 (ui_file_data, ui_file_delete, ui_file_rewind)
11409 (struct ui_file): New.
11410 (ui_file_up): New.
11411 (class null_file): New.
11412 (null_stream): Declare.
11413 (ui_file_write_for_put, ui_file_put): Delete.
11414 (ui_file_xstrdup, ui_file_as_string, ui_file_obsavestring):
11415 Delete.
11416 (ui_file_fseek, mem_fileopen, stdio_fileopen, stderr_fileopen)
11417 (gdb_fopen, tee_file_new): Delete.
11418 (struct string_file): New.
11419 (struct stdio_file): New.
11420 (stdio_file_up): New.
11421 (struct stderr_file): New.
11422 (class tee_file): New.
11423 * ui-out.c (ui_out::field_stream): Take a 'string_file &' instead
11424 of a 'ui_file *'. Adjust.
11425 * ui-out.h (class ui_out) <field_stream>: Likewise.
11426 * utils.c (do_ui_file_delete, make_cleanup_ui_file_delete)
11427 (null_stream): Delete.
11428 (error_stream): Take a 'string_file &' instead of a 'ui_file *'.
11429 Adjust.
11430 * utils.h (struct ui_file): Delete forward declaration..
11431 (make_cleanup_ui_file_delete, null_stream): Delete declarations.
11432 (error_stream): Take a 'string_file &' instead of a
11433 'ui_file *'.
11434 * varobj.c (varobj_value_get_print_value): Use string_file.
11435 * xtensa-tdep.c (xtensa_verify_config): Use string_file.
11436 * gdbarch.c: Regenerate.
11437
187808b0
PA
114382017-02-02 Pedro Alves <palves@redhat.com>
11439
11440 * disasm.c (gdb_disassembler::pretty_print_insn): Rename to...
11441 (gdb_pretty_print_insn): ... this. Now a free function. Add back
11442 a 'gdbarch' parameter. Allocate a mem_fileopen stream here.
11443 Adjust to call gdb_print_insn instead of
11444 gdb_disassembler::print_insn.
11445 (dump_insns, do_mixed_source_and_assembly_deprecated)
11446 (do_mixed_source_and_assembly, do_assembly_only): Add back a
11447 'gdbarch' parameter. Remove gdb_disassembler parameter.
11448 (gdb_disassembly): Don't allocate a gdb_disassembler here.
11449 * disasm.h (gdb_disassembler::pretty_print_insn): Delete
11450 declaration.
11451 (gdb_pretty_print_insn): Re-add declaration.
11452 * record-btrace.c (btrace_insn_history): Don't allocate a
11453 gdb_disassembler here. Adjust to call gdb_pretty_print_insn.
11454
7a8eb317
SM
114552017-02-01 Simon Marchi <simon.marchi@polymtl.ca>
11456
11457 * disasm.h (gdb_disassembly): Remove file_string parameter.
11458 * disasm.c (gdb_disassembly): Likewise.
11459 * cli/cli-cmds.c (print_disassembly): Adapt.
11460 * mi/mi-cmd-disas.c (mi_cmd_disassemble): Likewise.
11461 * stack.c (do_gdb_disassembly): Likewise.
11462
7346ef59
AA
114632017-02-01 Andreas Arnez <arnez@linux.vnet.ibm.com>
11464
11465 * dwarf2loc.c (dwarf2_evaluate_loc_desc_full): For
11466 DWARF_VALUE_LITERAL, no longer ignore the offset on big-endian
11467 targets. And if the implicit value is longer than needed, extract
11468 the first bytes instead of the "least significant" ones.
11469
cd4007e4
MM
114702017-02-01 Markus Metzger <markus.t.metzger@intel.com>
11471
11472 * btrace.c (btrace_enable): Do not call btrace_add_pc for
11473 BTRACE_FORMAT_PT or if can_access_registers_ptid returns false.
11474 (btrace_fetch): Assert can_access_registers_ptid.
11475 * record-btrace.c (require_btrace_thread, record_btrace_info): Call
11476 validate_registers_access.
11477
cf77c34e
MM
114782017-02-01 Markus Metzger <markus.t.metzger@intel.com>
11479
11480 * gdbthread.h (can_access_registers_ptid): New.
11481 * thread.c (can_access_registers_ptid): New.
11482
be85ce7d
PA
114832017-02-01 Pedro Alves <palves@redhat.com>
11484
11485 * i386-tdep.c (i386_fast_tracepoint_valid_at): Use gdb_insn_length.
11486
29b0b251
PA
114872017-01-31 Pedro Alves <palves@redhat.com>
11488
11489 * mi/mi-interp.c (mi_breakpoint_created, mi_breakpoint_modified):
11490 Fix typos.
11491
289b5b24
PA
114922017-01-31 Pedro Alves <palves@redhat.com>
11493
11494 * stack.c (print_frame_args): Remove local mem_fileopen stream,
11495 not used.
11496
b47413b4
PA
114972017-01-31 Pedro Alves <palves@redhat.com>
11498
11499 * varobj.c (varobj_value_get_print_value): Remove xstrdup call.
11500
60adb36c
PA
115012017-01-31 Pedro Alves <palves@redhat.com>
11502
11503 * common/scoped_restore.h
11504 (scoped_restore_tmpl::scoped_restore_tmpl): Template on T2, and
11505 change the value's parameter type to T2.
11506 (make_scoped_restore): Likewise.
11507
2735833d
WT
115082017-01-27 Walfred Tedeschi <walfred.tedeschi@intel.com>
11509 Richard Henderson <rth@redhat.com>
11510
11511 * amd64-linux-nat.c (PTRACE_ARCH_PRCTL): New define.
11512 (amd64_linux_fetch_inferior_registers): Add case to fetch FS_BASE
11513 GS_BASE for older kernels.
11514 (amd64_linux_store_inferior_registers): Add case to store FS_BASE
11515 GS_BASE for older kernels.
11516 * amd64-linux-tdep.c (amd64_linux_gregset_reg_offset): Add FS_BASE
11517 and GS_BASE to the offset table.
11518 (amd64_linux_register_reggroup_p): Add FS_BASE and GS_BASE to the
11519 system register group.
11520 * amd64-nat.c (amd64_native_gregset_reg_offset): Implements case
11521 for older kernels.
11522 * amd64-tdep.c (amd64_init_abi): Add segment registers for the
11523 amd64 ABI.
11524 * amd64-tdep.h (amd64_regnum): Add AMD64_FSBASE_REGNUM and
11525 AMD64_GSBASE_REGNUM.
11526 (AMD64_NUM_REGS): Set to AMD64_GSBASE_REGNUM + 1.
11527 * features/Makefile (amd64-linux.dat, amd64-avx-linux.dat)
11528 (amd64-mpx-linux.dat, amd64-avx512-linux.dat, x32-linux.dat)
11529 (x32-avx-linux.dat, x32-avx512-linux.dat): Add
11530 i386/64bit-segments.xml in those rules.
11531 * features/i386/64bit-segments.xml: New file.
11532 * features/i386/amd64-avx-mpx-linux.xml: Add 64bit-segments.xml.
11533 * features/i386/amd64-avx-linux.xml: Add 64bit-segments.xml.
11534 * features/i386/amd64-avx512-linux.xml: Add 64bit-segments.xml.
11535 * features/i386/amd64-mpx-linux.xml: Add 64bit-segments.xml.
11536 * features/i386/x32-avx512-linux.xml: Add 64bit-segments.xml.
11537 * features/i386/x32-avx-linux.xml: Add 64bit-segments.xml.
11538 * features/i386/amd64-linux.xml: Add 64bit-segments.xml.
11539 * features/i386/amd64-avx-linux.c: Regenerated.
11540 * features/i386/amd64-avx-mpx-linux.c: Regenerated.
11541 * features/i386/amd64-avx-mpx.c: Regenerated.
11542 * features/i386/amd64-avx512-linux.c: Regenerated.
11543 * features/i386/amd64-linux.c: Regenerated.
11544 * features/i386/amd64-mpx-linux.c: Regenerated.
11545 * features/i386/i386-avx-mpx-linux.c: Regenerated.
11546 * features/i386/i386-avx-mpx.c: Regenerated.
11547 * features/i386/x32-avx-linux.c: Regenerated.
11548 * features/i386/x32-avx512-linux.c: Regenerated.
11549 * regformats/i386/amd64-avx-linux.dat: Regenerated.
11550 * regformats/i386/amd64-avx-mpx-linux.dat: Regenerated.
11551 * regformats/i386/amd64-avx512-linux.dat: Regenerated.
11552 * regformats/i386/amd64-linux.dat: Regenerated.
11553 * regformats/i386/amd64-mpx-linux.dat: Regenerated.
11554 * regformats/i386/x32-avx-linux.dat: Regenerated.
11555 * regformats/i386/x32-avx512-linux.dat: Regenerated.
11556 * regformats/i386/x32-linux.dat: Regenerated.
11557
8884e97e
WT
115582017-01-27 Walfred Tedeschi <walfred.tedeschi@intel.com>
11559
11560 * amd64-linux-tdep.h (AMD64_LINUX_ORIG_RAX_REGNUM):
11561 Set to AMD64_NUM_REGS.
11562
7005d26a
WT
115632017-01-27 Walfred Tedeschi <walfred.tedeschi@intel.com>
11564
11565 * amd64-nat.c (amd64_native_gregset_reg_offset): Simplify logic
11566 that checks validity of a register number.
11567
4bd2e1b2
KC
115682017-01-27 Kees Cook <keescook@google.com>
11569
11570 * gdb/arm-linux-nat.c (arm_linux_fetch_inferior_registers): Call
11571 fetch_fpregs if target has fpa registers.
11572 (arm_linux_store_inferior_registers): Call store_fpregs if target
11573 has fpa registers.
11574
7cf1de6c
AA
115752017-01-26 Andreas Arnez <arnez@linux.vnet.ibm.com>
11576
11577 * cris-tdep.c (cris_gdbarch_init): Remove check for
11578 info.byte_order and force it to BFD_ENDIAN_LITTLE.
11579
874a1c8c
AT
115802017-01-26 Antoine Tremblay <antoine.tremblay@ericsson.com>
11581
11582 * corelow.c (get_core_register_section): Check for regset
11583 existence before checking for REGSET_VARIABLE_SIZE.
11584
d8b49cf0
YQ
115852017-01-26 Yao Qi <yao.qi@linaro.org>
11586 Pedro Alves <palves@redhat.com>
11587
11588 PR gdb/20939
11589 * disasm.c (gdb_disassembler::dis_asm_memory_error): Don't
11590 call memory_error, save memaddr instead.
11591 (gdb_disassembler::print_insn): If gdbarch_print_insn returns
11592 negative, cal memory_error.
11593 * disasm.h (gdb_disassembler) <m_err_memaddr>: New field.
11594
658ca58c
YQ
115952017-01-26 Yao Qi <yao.qi@linaro.org>
11596
11597 * disasm-selftests.c (memory_error_test): New function.
11598 (_initialize_disasm_selftests): Register memory_error_test.
11599
79843d45
YQ
116002017-01-26 Yao Qi <yao.qi@linaro.org>
11601
11602 * Makefile.in (SFILES): Add disasm-selftests.c and
11603 selftest-arch.c.
11604 (COMMON_OBS): Add disasm-selftests.o and selftest-arch.o.
11605 * disasm-selftests.c: New file.
11606 * selftest-arch.c: New file.
11607 * selftest-arch.h: New file.
11608
8cafda32
YQ
116092017-01-26 Yao Qi <yao.qi@linaro.org>
11610
11611 * mep-tdep.c (mep_gdb_print_insn): Set info->arch
11612 to bfd_arch_mep. Don't return 0 if section is not
11613 found. Call print_insn_mep.
11614
e47ad6c0
YQ
116152017-01-26 Pedro Alves <palves@redhat.com>
11616 Yao Qi <yao.qi@linaro.org>
11617
11618 * arm-tdep.c: Include "disasm.h".
11619 (gdb_print_insn_arm): Update code to get gdbarch.
11620 * disasm.c (dis_asm_read_memory): Change it to
11621 gdb_disassembler::dis_asm_read_memory.
11622 (dis_asm_memory_error): Likewise.
11623 (dis_asm_print_address): Likewise.
11624 (gdb_pretty_print_insn): Change it to
11625 gdb_disassembler::pretty_print_insn.
11626 (dump_insns): Add one argument gdb_disassemlber. All
11627 callers updated.
11628 (do_mixed_source_and_assembly_deprecated): Likewise.
11629 (do_mixed_source_and_assembly): Likewise.
11630 (do_assembly_only): Likewise.
11631 (gdb_disassembler::gdb_disassembler): New.
11632 (gdb_disassembler::print_insn): New.
11633 * disasm.h (class gdb_disassembler): New.
11634 (gdb_pretty_print_insn): Remove declaration.
11635 (gdb_disassemble_info): Likewise.
11636 * guile/scm-disasm.c (class gdbscm_disassembler): New.
11637 (gdbscm_disasm_read_memory_worker): Update.
11638 (gdbscm_disasm_read_memory): Update.
11639 (gdbscm_disasm_memory_error): Remove.
11640 (gdbscm_disasm_print_address): Remove.
11641 (gdbscm_disassembler::gdbscm_disassembler): New.
11642 (gdbscm_print_insn_from_port): Update.
11643 * mips-tdep.c: Include disasm.h.
11644 (gdb_print_insn_mips): Update code to get gdbarch.
11645 * record-btrace.c (btrace_insn_history): Update.
11646 * spu-tdep.c: Include disasm.h.
11647 (struct spu_dis_asm_data): Remove.
11648 (struct spu_dis_asm_info): New.
11649 (spu_dis_asm_print_address): Use spu_dis_asm_info to get
11650 SPU id.
11651 (gdb_print_insn_spu): Cast disassemble_info to
11652 spu_dis_asm_info.
11653
80d75874
YQ
116542017-01-26 Yao Qi <yao.qi@linaro.org>
11655
11656 * disasm.c (do_ui_file_delete): Delete.
11657 (gdb_insn_length): Move code creating stream to ...
11658 * utils.c (null_stream): ... here. New function.
11659 * utils.h (null_stream): Declare.
11660
60685cd0
SM
116612017-01-23 Simon Marchi <simon.marchi@polymtl.ca>
11662
11663 * python/py-inferior.c (find_thread_object): Return directly
11664 from the loop. Remove "found" variable.
11665
eb1cdb62
JB
116662017-01-21 Joel Brobecker <brobecker@adacore.com>
11667
11668 GDB 7.12.1 released.
11669
b1ce6568
SM
116702017-01-20 Simon Marchi <simon.marchi@ericsson.com>
11671
11672 * python/py-function.c (fnpy_call): Reorder declarations to have
11673 the gdbpy_enter object declared first.
11674 * python/py-xmethods.c (gdbpy_get_xmethod_arg_types): Likewise.
11675
6f8b0407
SM
116762017-01-20 Simon Marchi <simon.marchi@ericsson.com>
11677
fec93fb1 11678 PR python/21068
6f8b0407
SM
11679 * python/python-internal.h (PyMem_RawMalloc): Define for
11680 Python < 3.4.
11681 * python/py-gdb-readline.c (gdbpy_readline_wrapper): Use
11682 PyMem_RawMalloc instead of PyMem_Malloc.
11683
78cbbba8
LM
116842017-01-20 Mike Wrighton <mike_wrighton@codesourcery.com>
11685 Luis Machado <lgustavo@codesourcery.com>
11686
11687 * NEWS (New commands): Mention flash-erase.
11688 (New MI commands): Mention target-flash-erase.
11689 * mi/mi-cmds.c (mi_cmd_target_flash_erase): Add target-flash-erase MI
11690 command.
11691 * mi/mi-cmds.h (mi_cmd_target_flash_erase): New declaration.
11692 * mi/mi-main.c (mi_cmd_target_flash_erase): New function.
11693 * target.c (flash_erase_command): New function.
11694 (initialize_targets): Add new flash-erase command.
11695 * target.h (flash_erase_command): New declaration.
11696
2132fe85
JB
116972017-01-20 Joel Brobecker <brobecker@adacore.com>
11698
11699 * nat/linux-ptrace.c: Only include <sys/procfs.h> if
11700 HAVE_SYS_PROCFS_H is defined.
11701
d1dff226
AH
117022017-01-18 Alan Hayward <alan.hayward@arm.com>
11703
11704 * remote.c (struct cached_reg): Change data into a pointer.
11705 * (stop_reply_dtr): Free data pointers before deleting vector.
11706 (process_stop_reply): Likewise.
11707 (remote_parse_stop_reply): Allocate space for data
11708
9890e433
AH
117092017-01-18 Alan Hayward <alan.hayward@arm.com>
11710
11711 * amd64-tdep.c (amd64_pseudo_register_read_value): remove
11712 MAX_REGISTER_SIZE.
11713 (amd64_pseudo_register_read_value): Likewise.
11714 * remote.c (fetch_register_using_p): Remove MAX_REGISTER_SIZE.
11715 (store_register_using_P): Likewise.
11716 * regcache.c (regcache_xfer_part): Likewise.
11717
7a36499a
IR
117182017-01-16 Ivo Raisr <ivo.raisr@oracle.com>
11719
11720 Split real and pseudo registers.
11721 * sparc-tdep.h (SPARC_CORE_REGISTERS): New macro.
11722 (sparc32_pseudo_regnum): New enum.
11723 * sparc64-tdep.h (sparc64_pseudo_regnum): New enum.
11724 * sparc-tdep.c (SPARC32_FPU_REGISTERS): New macro.
11725 (SPARC32_CP0_REGISTERS): New macro.
11726 (sparc32_pseudo_register_name): New function.
11727 (sparc32_register_name): Use sparc32_pseudo_register_name.
11728 (sparc32_pseudo_register_type): New function.
11729 (sparc32_register_type): Use sparc32_pseudo_register_type.
11730 (sparc32_pseudo_register_read, sparc32_pseudo_register_write): Handle
11731 pseudo register numbers.
11732 * sparc64-tdep.c SPARC64_FPU_REGISTERS): New macro.
11733 (SPARC64_CP0_REGISTERS): New macro.
11734 (sparc64_pseudo_register_name): New function.
11735 (sparc64_register_name): Use sparc64_pseudo_register_name.
11736 (sparc64_pseudo_register_type): New function.
11737 (sparc64_register_type): Use sparc64_pseudo_register_type.
11738 (sparc64_pseudo_register_read, sparc64_pseudo_register_write): Handle
11739 pseudo register numbers.
11740 (sparc64_store_floating_fields, sparc64_extract_floating_fields,
11741 sparc64_store_arguments): Handle pseudo register numbers.
11742
6f8976bf
YQ
117432017-01-13 Yao Qi <yao.qi@linaro.org>
11744
11745 * remote.c (REMOTE_DEBUG_MAX_CHAR): New macro.
11746 (putpkt_binary): Print only REMOTE_DEBUG_MAX_CHAR chars in debug
11747 output.
11748 (getpkt_or_notif_sane_1): Likewise.
11749
e4241ace
YQ
117502017-01-13 Yao Qi <yao.qi@linaro.org>
11751
11752 * Makefile.in (checker-headers): Use CXX and CXX_DIALET instead
11753 of CC. Pass "-x c++-header" instead of "-x c".
11754
3015c064
SM
117552017-01-12 Simon Marchi <simon.marchi@ericsson.com>
11756
11757 * remote.c (remote_can_async_p): Update comment.
11758
fde1b17d
SM
117592017-01-12 Simon Marchi <simon.marchi@ericsson.com>
11760
11761 * linux-nat.c (linux_nat_can_async_p): Update comment.
11762
ca1ca08b
SM
117632017-01-12 Simon Marchi <simon.marchi@ericsson.com>
11764
11765 * serial.c (serial_open): Forget about "pc" and "lpt" serial interface.
11766
4ad2da73
SM
117672017-01-11 Simon Marchi <simon.marchi@ericsson.com>
11768
11769 * cli/cli-decode.c (lookup_cmd_1): Fix typo in comment.
11770
c8b23b3f
TT
117712017-01-10 Tom Tromey <tom@tromey.com>
11772
11773 * python/py-type.c (typy_legacy_template_argument): Update.
11774 * cp-support.h (struct demangle_parse_info) (demangle_parse_info,
11775 ~demangle_parse_info): Declare new members.
11776 (cp_demangled_name_to_comp): Return unique_ptr.
11777 (cp_demangled_name_parse_free)
11778 (make_cleanup_cp_demangled_name_parse_free)
11779 (cp_new_demangle_parse_info): Remove.
11780 * cp-support.c (do_demangled_name_parse_free_cleanup)
11781 (make_cleanup_cp_demangled_name_parse_free): Remove.
11782 (inspect_type, cp_canonicalize_string_full)
11783 (cp_canonicalize_string): Update.
11784 (mangled_name_to_comp): Change return type.
11785 (cp_class_name_from_physname, method_name_from_physname)
11786 (cp_func_name, cp_remove_params): Update.
11787 * cp-name-parser.y (demangle_parse_info): New constructor, from
11788 cp_new_demangle_parse_info.
11789 (~demangle_parse_info): New destructor, from
11790 cp_demangled_name_parse_free.
11791 (cp_merge_demangle_parse_infos): Update.
11792 (cp_demangled_name_to_comp): Change return type.
11793
1ac32117
TT
117942017-01-10 Tom Tromey <tom@tromey.com>
11795
11796 * top.c (prevent_dont_repeat): Change return type.
11797 * python/python.c (execute_gdb_command): Use std::string.
11798 Update.
11799 * guile/guile.c (gdbscm_execute_gdb_command): Update.
11800 * command.h (prevent_dont_repeat): Change return type.
11801 * breakpoint.c (bpstat_do_actions_1): Update.
11802
0cf08227
TT
118032017-01-10 Tom Tromey <tom@tromey.com>
11804
11805 * value.h (scoped_value_mark::~scoped_value_mark): Call
11806 free_to_mark.
11807 (scoped_value_mark::free_to_mark): New method.
11808 * dwarf2loc.c (dwarf2_evaluate_loc_desc_full): Use
11809 scoped_value_mark.
11810
eb115069
TT
118112017-01-10 Tom Tromey <tom@tromey.com>
11812
11813 * python/py-value.c (valpy_dereference, valpy_referenced_value)
11814 (valpy_reference_value, valpy_const_value, valpy_get_address)
11815 (valpy_get_dynamic_type, valpy_lazy_string, valpy_do_cast)
11816 (valpy_getitem, valpy_call, valpy_binop_throw, valpy_negative)
11817 (valpy_absolute, valpy_richcompare_throw): Use scoped_value_mark.
11818 * dwarf2loc.c (dwarf2_loc_desc_get_symbol_read_needs): Use
11819 scoped_value_mark.
11820 * dwarf2-frame.c (execute_stack_op): Use scoped_value_mark.
11821 * value.h (scoped_value_mark): New class.
11822
906768f9
TT
118232017-01-10 Tom Tromey <tom@tromey.com>
11824
11825 * dwarf2read.c (dwarf2_build_psymtabs): Use psymtab_discarder.
11826 * psympriv.h (make_cleanup_discard_psymtabs): Don't declare.
11827 * psymtab.c (discard_psymtabs_upto): Remove.
11828 (make_cleanup_discard_psymtabs): Remove.
11829 (struct psymtab_state): Remove.
11830
bef155c3
TT
118312017-01-10 Tom Tromey <tom@tromey.com>
11832
11833 * record-full.c (record_full_save_cleanups): Remove.
11834 (record_full_save): Use gdb::unlinker.
11835 * gcore.c (do_bfd_delete_cleanup): Remove.
11836 (gcore_command): Use gdb::unlinker, unique_xmalloc_ptr. Remove
11837 cleanups.
11838 * dwarf2read.c (unlink_if_set): Remove.
11839 (write_psymtabs_to_index): Use gdb::unlinker.
11840 * common/gdb_unlinker.h: New file.
11841
192b62ce
TT
118422017-01-10 Tom Tromey <tom@tromey.com>
11843
11844 * windows-tdep.c (windows_xfer_shared_library): Update.
11845 * windows-nat.c (windows_make_so): Update.
11846 * utils.h (make_cleanup_bfd_unref): Remove.
11847 * utils.c (do_bfd_close_cleanup, make_cleanup_bfd_unref): Remove.
11848 * symfile.h (symfile_bfd_open)
11849 (find_separate_debug_file_in_section): Return gdb_bfd_ref_ptr.
11850 * symfile.c (read_symbols, symbol_file_add)
11851 (separate_debug_file_exists): Update.
11852 (symfile_bfd_open): Return gdb_bfd_ref_ptr.
11853 (generic_load, reread_symbols): Update.
11854 * symfile-mem.c (symbol_file_add_from_memory): Update.
11855 * spu-linux-nat.c (spu_bfd_open): Return gdb_bfd_ref_ptr.
11856 (spu_symbol_file_add_from_memory): Update.
11857 * solist.h (struct target_so_ops) <bfd_open>: Return
11858 gdb_bfd_ref_ptr.
11859 (solib_bfd_fopen, solib_bfd_open): Return gdb_bfd_ref_ptr.
11860 * solib.c (solib_bfd_fopen, solib_bfd_open): Return
11861 gdb_bfd_ref_ptr.
11862 (solib_map_sections, reload_shared_libraries_1): Update.
11863 * solib-svr4.c (enable_break): Update.
11864 * solib-spu.c (spu_bfd_fopen): Return gdb_bfd_ref_ptr.
11865 * solib-frv.c (enable_break2): Update.
11866 * solib-dsbt.c (enable_break): Update.
11867 * solib-darwin.c (gdb_bfd_mach_o_fat_extract): Return
11868 gdb_bfd_ref_ptr.
11869 (darwin_solib_get_all_image_info_addr_at_init): Update.
11870 (darwin_bfd_open): Return gdb_bfd_ref_ptr.
11871 * solib-aix.c (solib_aix_bfd_open): Return gdb_bfd_ref_ptr.
11872 * record-full.c (record_full_save): Update.
11873 * python/py-objfile.c (objfpy_add_separate_debug_file): Update.
11874 * procfs.c (insert_dbx_link_bpt_in_file): Update.
11875 * minidebug.c (find_separate_debug_file_in_section): Return
11876 gdb_bfd_ref_ptr.
11877 * machoread.c (macho_add_oso_symfile): Change abfd to
11878 gdb_bfd_ref_ptr.
11879 (macho_symfile_read_all_oso): Update.
11880 (macho_check_dsym): Return gdb_bfd_ref_ptr.
11881 (macho_symfile_read): Update.
11882 * jit.c (bfd_open_from_target_memory): Return gdb_bfd_ref_ptr.
11883 (jit_bfd_try_read_symtab): Update.
11884 * gdb_bfd.h (gdb_bfd_open, gdb_bfd_fopen, gdb_bfd_openr)
11885 (gdb_bfd_openw, gdb_bfd_openr_iovec)
11886 (gdb_bfd_openr_next_archived_file, gdb_bfd_fdopenr): Return
11887 gdb_bfd_ref_ptr.
11888 (gdb_bfd_ref_policy): New struct.
11889 (gdb_bfd_ref_ptr): New typedef.
11890 * gdb_bfd.c (gdb_bfd_open, gdb_bfd_fopen, gdb_bfd_openr)
11891 (gdb_bfd_openw, gdb_bfd_openr_iovec)
11892 (gdb_bfd_openr_next_archived_file, gdb_bfd_fdopenr): Return
11893 gdb_bfd_ref_ptr.
11894 * gcore.h (create_gcore_bfd): Return gdb_bfd_ref_ptr.
11895 * gcore.c (create_gcore_bfd): Return gdb_bfd_ref_ptr.
11896 (gcore_command): Update.
11897 * exec.c (exec_file_attach): Update.
11898 * elfread.c (elf_symfile_read): Update.
11899 * dwarf2read.c (dwarf2_get_dwz_file): Update.
11900 (try_open_dwop_file, open_dwo_file): Return gdb_bfd_ref_ptr.
11901 (open_and_init_dwo_file): Update.
11902 (open_dwp_file): Return gdb_bfd_ref_ptr.
11903 (open_and_init_dwp_file): Update.
11904 * corelow.c (core_open): Update.
11905 * compile/compile-object-load.c (compile_object_load): Update.
11906 * common/gdb_ref_ptr.h (ref_ptr::operator->): New operator.
11907 * coffread.c (coff_symfile_read): Update.
11908 * cli/cli-dump.c (bfd_openr_or_error, bfd_openw_or_error): Return
11909 gdb_bfd_ref_ptr. Rename.
11910 (dump_bfd_file, restore_command): Update.
11911 * build-id.h (build_id_to_debug_bfd): Return gdb_bfd_ref_ptr.
11912 * build-id.c (build_id_to_debug_bfd): Return gdb_bfd_ref_ptr.
11913 (find_separate_debug_file_by_buildid): Update.
11914
50315b21
TT
119152017-01-10 Tom Tromey <tom@tromey.com>
11916
11917 * common/gdb_ref_ptr.h: New file.
11918 * python/py-ref.h (struct gdbpy_ref_policy): New.
11919 (gdbpy_ref): Now a typedef.
11920
fc4007c9
TT
119212017-01-10 Tom Tromey <tom@tromey.com>
11922
11923 * utils.h (make_cleanup_htab_delete): Don't declare.
11924 * utils.c (do_htab_delete_cleanup, make_cleanup_htab_delete):
11925 Remove.
11926 * linespec.c (decode_compound_collector): Add constructor,
11927 destructor.
11928 (lookup_prefix_sym): Remove cleanup.
11929 (symtab_collector): Add constructor, destructor.
11930 (collect_symtabs_from_filename): Remove cleanup.
11931 * disasm.c (do_mixed_source_and_assembly): Use htab_up.
11932 * compile/compile-c-symbols.c (generate_c_for_variable_locations):
11933 Use htab_up.
11934 * gnu-v3-abi.c (gnuv3_print_vtable): Use htab_up.
11935 * dwarf2read.c (dw2_expand_symtabs_matching)
11936 (dw2_map_symbol_filenames, dwarf_decode_macros)
11937 (write_psymtabs_to_index): Use htab_up.
11938 * dwarf2loc.c (func_verify_no_selftailcall)
11939 (call_site_find_chain_1, func_verify_no_selftailcall)
11940 (chain_candidate, call_site_find_chain_1): Use std::unordered_set,
11941 std::vector, gdb::unique_xmalloc_ptr.
11942 (call_sitep): Remove typedef.
11943 (dwarf2_locexpr_baton_eval): Remove unused variable.
11944
8dbcee67
TT
119452017-01-10 Tom Tromey <tom@tromey.com>
11946
11947 * python/python-internal.h (make_cleanup_py_decref)
11948 (make_cleanup_py_xdecref): Don't declare.
11949 * python/py-utils.c (py_decref, make_cleanup_py_decref)
11950 (py_xdecref, make_cleanup_py_xdecref): Remove.
11951
13df46cc
TT
119522017-01-10 Tom Tromey <tom@tromey.com>
11953
11954 * python/py-framefilter.c (py_mi_print_variables): Use gdbpy_ref.
11955 (py_print_locals, enumerate_locals, py_print_args): Use gdbpy_ref.
11956
06fc9bf7
TT
119572017-01-10 Tom Tromey <tom@tromey.com>
11958
11959 * python/py-framefilter.c (enumerate_args): Use gdbpy_ref.
11960
830a4934
TT
119612017-01-10 Tom Tromey <tom@tromey.com>
11962
11963 * python/py-utils.c (unicode_to_encoded_string)
11964 (python_string_to_target_string)
11965 (python_string_to_target_python_string)
11966 (python_string_to_host_string, gdbpy_obj_to_string)
11967 (get_addr_from_python): Use gdbpy_ref.
11968
4586d543
TT
119692017-01-10 Tom Tromey <tom@tromey.com>
11970
11971 * python/py-unwind.c (pyuw_object_attribute_to_pointer): Use
11972 gdbpy_ref.
11973
59876f8f
TT
119742017-01-10 Tom Tromey <tom@tromey.com>
11975
11976 * python/python.c (eval_python_command, gdbpy_decode_line)
11977 (gdbpy_run_events, gdbpy_start_type_printers)
11978 (gdbpy_apply_type_printers): Use gdbpy_ref.
11979
97d83487
TT
119802017-01-10 Tom Tromey <tom@tromey.com>
11981
11982 * python/py-param.c (get_doc_string, compute_enum_values): Use
11983 gdbpy_ref.
11984
9205649a
TT
119852017-01-10 Tom Tromey <tom@tromey.com>
11986
11987 * python/py-inferior.c (find_thread_object, build_inferior_list):
11988 Use gdbpy_ref.
11989
74c49d45
TT
119902017-01-10 Tom Tromey <tom@tromey.com>
11991
11992 * python/py-framefilter.c (py_print_frame): Use gdbpy_ref.
11993
16361ffb
TT
119942017-01-10 Tom Tromey <tom@tromey.com>
11995
11996 * python/py-finishbreakpoint.c (bpfinishpy_out_of_scope): Use
11997 gdbpy_ref.
11998
905f2cca
TT
119992017-01-10 Tom Tromey <tom@tromey.com>
12000
12001 * python/py-cmd.c (cmdpy_completer_helper): Use gdbpy_ref. Remove
12002 extra incref.
12003 (cmdpy_completer_handle_brkchars, cmdpy_completer, cmdpy_init):
12004 Use gdbpy_ref.
12005
64081434
TT
120062017-01-10 Tom Tromey <tom@tromey.com>
12007
12008 * python/py-breakpoint.c (gdbpy_breakpoint_cond_says_stop): Use
12009 gdbpy_ref.
12010
59e9e831
TT
120112017-01-10 Tom Tromey <tom@tromey.com>
12012
12013 * python/py-arch.c (archpy_disassemble): Use gdbpy_ref. Don't
12014 decref results of PyArg_ParseTupleAndKeywords.
12015
9de10f6d
TT
120162017-01-10 Tom Tromey <tom@tromey.com>
12017
12018 * python/python.c (python_run_simple_file): Use
12019 unique_xmalloc_ptr, gdbpy_ref.
12020
2bd5759d
TT
120212017-01-10 Tom Tromey <tom@tromey.com>
12022
12023 * python/py-prettyprint.c (print_stack_unless_memory_error)
12024 (print_string_repr, print_children): Use gdbpy_ref.
12025 (dummy_python_frame): New class.
12026 (dummy_python_frame::dummy_python_frame): Rename from
12027 push_dummy_python_frame.
12028 (py_restore_tstate): Remove.
12029
3b4e0e01
TT
120302017-01-10 Tom Tromey <tom@tromey.com>
12031
12032 * python/py-framefilter.c (py_print_frame): Use gdbpy_ref.
12033
17a22718
TT
120342017-01-10 Tom Tromey <tom@tromey.com>
12035
12036 * python/python.c (ensure_python_env, restore_python_env):
12037 Remove.
12038 * python/python-internal.h (ensure_python_env): Don't declare.
12039 * varobj.h (varobj_ensure_python_env): Don't declare.
12040 * varobj.c (varobj_ensure_python_env): Remove.
12041
68cdc557
TT
120422017-01-10 Tom Tromey <tom@tromey.com>
12043
12044 * varobj.c (varobj_value_get_print_value): Use
12045 gdbpy_enter_varobj.
12046
1eba6383
TT
120472017-01-10 Tom Tromey <tom@tromey.com>
12048
12049 * python/py-prettyprint.c (print_string_repr, print_children):
12050 Update.
12051 * python/py-lazy-string.c (gdbpy_extract_lazy_string): Change type
12052 of "encoding".
12053 * varobj.c (varobj_value_get_print_value): Update.
12054 * python/python-internal.h (gdbpy_extract_lazy_string): Update.
12055
bde7b3e3
TT
120562017-01-10 Tom Tromey <tom@tromey.com>
12057
12058 * varobj.c (varobj_get_display_hint)
12059 (dynamic_varobj_has_child_method, install_new_value_visualizer)
12060 (varobj_set_visualizer, free_variable): Use
12061 gdbpy_enter_varobj.
12062
a7785f8c
TT
120632017-01-10 Tom Tromey <tom@tromey.com>
12064
12065 * python/python.c (python_command): Use gdbpy_enter, gdbpy_ref.
12066 (do_finish_initialization): New function. Use gdbpy_ref.
12067 (gdbpy_finish_initialization): Use gdbpy_enter. Call
12068 do_finish_initialization.
12069
2865bfce
TT
120702017-01-10 Tom Tromey <tom@tromey.com>
12071
12072 * python/py-param.c (get_set_value, get_show_value): Use
12073 gdbpy_enter, gdbpy_ref.
12074
0e9dcc75
TT
120752017-01-10 Tom Tromey <tom@tromey.com>
12076
12077 * python/py-function.c (fnpy_call): Use gdbpy_enter, gdbpy_ref.
12078
12a5cedd
TT
120792017-01-10 Tom Tromey <tom@tromey.com>
12080
12081 * python/py-cmd.c (cmdpy_function): Use gdbpy_enter, gdbpy_ref.
12082
788f2586
TT
120832017-01-10 Tom Tromey <tom@tromey.com>
12084
12085 * python/py-varobj.c (py_varobj_iter_dtor, py_varobj_iter_next):
12086 Use gdbpy_enter_varobj.
12087
6cd67bea
TT
120882017-01-10 Tom Tromey <tom@tromey.com>
12089
12090 * varobj.c (gdbpy_enter_varobj): New constructor.
12091 * python/python-internal.h (gdbpy_enter_varobj): New class.
12092 * python/py-varobj.c (py_varobj_get_iterator): Use
12093 gdbpy_enter_varobj.
12094
14b122bf
TT
120952017-01-10 Tom Tromey <tom@tromey.com>
12096
12097 * python/py-xmethods.c (gdbpy_get_xmethod_result_type): Use
12098 gdbpy_enter, gdbpy_ref, unique_xmalloc_ptr.
12099 (gdbpy_invoke_xmethod): Use gdbpy_ref, gdbpy_enter.
12100 (gdbpy_get_xmethod_arg_types): Use gdbpy_ref,
12101 unique_xmalloc_ptr.
12102 (gdbpy_get_xmethod_arg_types): Use gdbpy_ref, gdbpy_enter.
12103
bf1ca3b9
TT
121042017-01-10 Tom Tromey <tom@tromey.com>
12105
12106 * python/py-xmethods.c (invoke_match_method): Use
12107 gdbpy_ref.
12108
572a5524
TT
121092017-01-10 Tom Tromey <tom@tromey.com>
12110
12111 * python/py-xmethods.c (gdbpy_get_matching_xmethod_workers): use
12112 gdbpy_enter, gdbpy_ref.
12113
396a78b6
TT
121142017-01-10 Tom Tromey <tom@tromey.com>
12115
12116 * python/python.c (python_interactive_command): Use gdbpy_enter.
12117
a88b13c7
TT
121182017-01-10 Tom Tromey <tom@tromey.com>
12119
12120 * python/python.c (gdbpy_before_prompt_hook): Use gdbpy_enter,
12121 gdbpy_ref.
12122
e9f0c363
TT
121232017-01-10 Tom Tromey <tom@tromey.com>
12124
12125 * python/py-prettyprint.c (gdbpy_apply_val_pretty_printer): Use
12126 gdbpy_enter, gdbpy_ref, unique_xmalloc_ptr.
12127
6349f452
TT
121282017-01-10 Tom Tromey <tom@tromey.com>
12129
12130 * utils.h (htab_deleter): New struct.
12131 (htab_up): New typedef.
12132 * python/py-framefilter.c (gdbpy_apply_frame_filter): Use
12133 gdbpy_enter, gdbpy_ref, htab_up.
12134
c0171de6
TT
121352017-01-10 Tom Tromey <tom@tromey.com>
12136
12137 * python/py-unwind.c (pending_frame_invalidate): Remove.
12138 (pyuw_sniffer): Use gdbpy_enter and gdbpy_ref.
12139
f18e226f
TT
121402017-01-10 Tom Tromey <tom@tromey.com>
12141
12142 * python/py-xmethods.c (gdbpy_free_xmethod_worker_data)
12143 (gdbpy_clone_xmethod_worker_data): Use gdbpy_enter.
12144
c57af3f1
TT
121452017-01-10 Tom Tromey <tom@tromey.com>
12146
12147 * python/py-type.c (save_objfile_types): Use gdbpy_enter.
12148
60e600ec
TT
121492017-01-10 Tom Tromey <tom@tromey.com>
12150
12151 * python/python.c (gdbpy_eval_from_control_command)
12152 (gdbpy_source_script, gdbpy_run_events)
12153 (gdbpy_source_objfile_script, gdbpy_execute_objfile_script)
12154 (gdbpy_free_type_printers, gdbpy_finish_initialization): Use
12155 gdbpy_enter.
12156
bf7da5b0
TT
121572017-01-10 Tom Tromey <tom@tromey.com>
12158
12159 * python/py-progspace.c (py_free_pspace): Use gdbpy_enter.
12160
2d38bced
TT
121612017-01-10 Tom Tromey <tom@tromey.com>
12162
12163 * python/py-objfile.c (py_free_objfile): Use gdbpy_enter.
12164
07bc7329
TT
121652017-01-10 Tom Tromey <tom@tromey.com>
12166
12167 * python/py-inferior.c (python_on_normal_stop, python_on_resume)
12168 (python_on_inferior_call_pre, python_on_inferior_call_post)
12169 (python_on_memory_change, python_on_register_change)
12170 (python_inferior_exit, python_new_objfile, add_thread_object)
12171 (delete_thread_object, py_free_inferior): Use gdbpy_enter.
12172
6e7c365e
TT
121732017-01-10 Tom Tromey <tom@tromey.com>
12174
12175 * python/py-finishbreakpoint.c (bpfinishpy_handle_stop)
12176 (bpfinishpy_handle_exit): Use gdbpy_enter.
12177
6ba0cd40
TT
121782017-01-10 Tom Tromey <tom@tromey.com>
12179
12180 * python/py-cmd.c (cmdpy_destroyer)
12181 (cmdpy_completer_handle_brkchars, cmdpy_completer): Use
12182 gdbpy_enter.
12183
de2dc875
TT
121842017-01-10 Tom Tromey <tom@tromey.com>
12185
12186 * python/py-breakpoint.c (gdbpy_breakpoint_cond_says_stop): Use
12187 gdbpy_enter.
12188 (gdbpy_breakpoint_has_cond): Likewise.
12189
4ecee2c4
TT
121902017-01-10 Tom Tromey <tom@tromey.com>
12191
12192 * python/python.c (gdbpy_enter): New constructor.
12193 (~gdbpy_enter): New destructor.
12194 (restore_python_env, ensure_python_env): Rewrite.
12195 * python/python-internal.h (gdbpy_enter): New class.
12196
37fce74f
TT
121972017-01-10 Tom Tromey <tom@tromey.com>
12198
12199 * python/py-symbol.c (gdbpy_lookup_symbol): Use gdbpy_ref.
12200
53a0cca3
TT
122012017-01-10 Tom Tromey <tom@tromey.com>
12202
12203 * python/py-value.c (value_has_field, get_field_flag)
12204 (get_field_type, valpy_getitem, convert_value_from_python): Use
12205 gdbpy_ref.
12206
ff3724f5
TT
122072017-01-10 Tom Tromey <tom@tromey.com>
12208
12209 * python/python.c (gdbpy_progspaces, gdbpy_objfiles): Use
12210 gdbpy_ref.
12211
0700aea5
TT
122122017-01-10 Tom Tromey <tom@tromey.com>
12213
12214 * python/py-prettyprint.c (search_pp_list)
12215 (find_pretty_printer_from_objfiles)
12216 (find_pretty_printer_from_progspace)
12217 (find_pretty_printer_from_gdb, find_pretty_printer)
12218 (gdbpy_get_display_hint, gdbpy_get_varobj_pretty_printer): Use
12219 gdbpy_ref.
12220
1bb44c9f
TT
122212017-01-10 Tom Tromey <tom@tromey.com>
12222
12223 * python/py-param.c (call_doc_function): Use gdbpy_ref.
12224
87ce03fd
TT
122252017-01-10 Tom Tromey <tom@tromey.com>
12226
12227 * python/py-linetable.c (build_line_table_tuple_from_pcs)
12228 (ltpy_get_all_source_lines): Use gdbpy_ref.
12229
ee0a3fb8
TT
122302017-01-10 Tom Tromey <tom@tromey.com>
12231
12232 * python/py-framefilter.c (extract_sym, extract_value)
12233 (get_py_iter_from_func, bootstrap_python_frame_filters): Use
12234 gdbpy_ref.
12235
bf2a52fa
TT
122362017-01-10 Tom Tromey <tom@tromey.com>
12237
12238 * python/py-breakpoint.c (gdbpy_breakpoints): Use gdbpy_ref.
12239
f59fe7f8
TT
122402017-01-10 Tom Tromey <tom@tromey.com>
12241
12242 * python/py-inferior.c (gdbpy_inferiors): Use gdbpy_ref.
12243
80bd970a
TT
122442017-01-10 Tom Tromey <tom@tromey.com>
12245
12246 * python/py-function.c (convert_values_to_python, fnpy_init): Use
12247 gdbpy_ref.
12248
d1b3de2e
TT
122492017-01-10 Tom Tromey <tom@tromey.com>
12250
12251 * python/py-cmd.c (gdbpy_string_to_argv): Use gdbpy_ref.
12252
3bb43384
TT
122532017-01-10 Tom Tromey <tom@tromey.com>
12254
12255 * python/py-type.c (convert_field, make_fielditem, typy_fields)
12256 (typy_range): Use gdbpy_ref.
12257
abf5651e
TT
122582017-01-10 Tom Tromey <tom@tromey.com>
12259
12260 * python/py-threadevent.c (create_thread_event_object): Use
12261 gdbpy_ref.
12262 * python/py-stopevent.c (create_stop_event_object): Simplify.
12263 (emit_stop_event): Use gdbpy_ref.
12264 * python/py-signalevent.c (create_signal_event_object): Use
12265 gdbpy_ref.
12266 * python/py-newobjfileevent.c (create_new_objfile_event_object)
12267 (emit_new_objfile_event, create_clear_objfiles_event_object)
12268 (emit_clear_objfiles_event): Use gdbpy_ref.
12269 * python/py-infevents.c (create_inferior_call_event_object)
12270 (create_register_changed_event_object)
12271 (create_memory_changed_event_object, emit_inferior_call_event)
12272 (emit_memory_changed_event, emit_register_changed_event): Use
12273 gdbpy_ref.
12274 * python/py-exitedevent.c (create_exited_event_object)
12275 (emit_exited_event): Use gdbpy_ref.
12276 * python/py-event.h (evpy_emit_event): Remove
12277 CPYCHECKER_STEALS_REFERENCE_TO_ARG annotation.
12278 * python/py-event.c (evpy_emit_event): Use gdbpy_ref.
12279 * python/py-continueevent.c (emit_continue_event): Use
12280 gdbpy_ref.
12281 * python/py-breakpoint.c (gdbpy_breakpoint_created)
12282 (gdbpy_breakpoint_deleted, gdbpy_breakpoint_modified): Use
12283 gdbpy_ref.
12284 * python/py-bpevent.c (create_breakpoint_event_object): Use
12285 gdbpy_ref.
12286
a68ff33e
TT
122872017-01-10 Tom Tromey <tom@tromey.com>
12288
12289 * python/py-ref.h: New file.
12290
7becfd03
SM
122912017-01-10 Simon Marchi <simon.marchi@ericsson.com>
12292
12293 * cli-out.c (cli_ui_out::do_redirect): Change return type to
12294 void.
12295 * cli-out.h (cli_ui_out::do_redirect): Likewise.
12296 * mi/mi-out.c (mi_ui_out::do_redirect): Likewise.
12297 * mi/mi-out.h (mi_ui_out::do_redirect): Likewise.
12298 * ui-out.c (ui_out::redirect): Likewise.
12299 * ui-out.h (ui_out::redirect, ui_out::do_redirect): Likewise.
12300 * cli/cli-logging.c (set_logging_redirect): Update call site of
12301 ui_out::redirect.
12302 (handle_redirections): Likewise.
12303 * scm-ports.c (ioscm_with_output_to_port_worker): Likewise.
12304 * top.c (execute_command_to_string): Likewise.
12305 * utils.c (do_ui_out_redirect_pop): Likewise.
12306
df294654
SM
123072017-01-10 Simon Marchi <simon.marchi@ericsson.com>
12308
12309 * stack.c (_initialize_stack): Update "frame" command help message.
12310
f5e6296e
IB
123112017-01-08 Iain Buclaw <ibuclaw@gdcproject.org>
12312
12313 * d-exp.y (CastExpression): Emit UNOP_CAST_TYPE.
12314
0e2d6fa6
YQ
123152017-01-06 Yao Qi <yao.qi@linaro.org>
12316
12317 * x86-linux-nat.h: Include gdb_proc_service.h.
12318
44d6d3f9
YQ
123192017-01-06 Yao Qi <yao.qi@linaro.org>
12320
12321 * ser-base.h: Include serial.h.
12322
656731fe
YQ
123232017-01-06 Yao Qi <yao.qi@linaro.org>
12324
12325 * ppc-linux-tdep.h: Include ppc-tdep.h.
12326
1ca8f924
YQ
123272017-01-06 Yao Qi <yao.qi@linaro.org>
12328
12329 * nat/amd64-linux-siginfo.h: Include signal.h.
12330
bc3008c4
YQ
123312017-01-06 Yao Qi <yao.qi@linaro.org>
12332
12333 * nat/aarch64-linux-hw-point.h: Include break-common.h.
12334
66c80d03
YQ
123352017-01-06 Yao Qi <yao.qi@linaro.org>
12336
12337 * mi/mi-parse.h: Include mi-cmds.h.
12338
051d2dda
YQ
123392017-01-06 Yao Qi <yao.qi@linaro.org>
12340
12341 * inf-loop.c: Don't include "target.h".
12342 * inf-loop.h: Include it here.
12343
8018d34f
YQ
123442017-01-06 Yao Qi <yao.qi@linaro.org>
12345
12346 * dfp.h: Include "dboulest.h" and "expression.h".
12347
c0b8369c
YQ
123482017-01-06 Yao Qi <yao.qi@linaro.org>
12349
12350 * ax-gdb.h: Include "ax.h".
12351
ad5cba2a
YQ
123522017-01-06 Yao Qi <yao.qi@linaro.org>
12353
12354 * Makefile.in (HFILES_NO_SRCDIR): Replace gdb_ptrace.h
12355 with nat/gdb_ptrace.h.
12356
1c33cd7f
YQ
123572017-01-05 Yao Qi <yao.qi@linaro.org>
12358
12359 * mips-fbsd-tdep.c (mips_fbsd_sigframe_init): Move && to
12360 new line.
12361 (mips64_fbsd_sigframe_init): Likewise.
12362
c988ac1d
JB
123632017-01-04 John Baldwin <jhb@FreeBSD.org>
12364
12365 * mips-fbsd-tdep.c (_initialize_mips_fbsd_tdep): Use
12366 GDB_OSABI_FREEBSD instead of GDB_OSABI_FREEBSD_ELF.
12367
b268007c
JB
123682017-01-04 John Baldwin <jhb@FreeBSD.org>
12369
12370 * Makefile.in (ALLDEPFILES): Add mips-fbsd-nat.c.
12371 * NEWS: Mention new FreeBSD/mips native configuration.
12372 * config/mips/fbsd.mh: New file.
12373 * configure.host: Add mips*-*-freebsd*.
12374 * mips-fbsd-nat.c: New file.
12375
387360da
JB
123762017-01-04 John Baldwin <jhb@FreeBSD.org>
12377
12378 * Makefile.in (ALL_TARGET_OBS): Add mips-fbsd-tdep.o.
12379 (ALLDEPFILES): Add mips-fbsd-tdep.c.
12380 * NEWS: Mention new FreeBSD/mips target.
12381 * configure.tgt: Add mips*-*-freebsd*.
12382 * mips-fbsd-tdep.c: New file.
12383 * mips-fbsd-tdep.h: New file.
12384
2aaaf250
YQ
123852017-01-04 Yao Qi <yao.qi@linaro.org>
12386
12387 * dwarf2loc.c (write_pieced_value): Don't use VALUE_FRAME_ID (to),
12388 use c->frame_id when the piece location is DWARF_VALUE_REGISTER.
12389
61baf725
JB
123902017-01-01 Joel Brobecker <brobecker@adacore.com>
12391
6dbb839a 12392 Update copyright year range in all GDB files.
61baf725 12393
c113e7ff 123942017-01-01 Joel Brobecker <brobecker@adacore.com>
ce0db137 12395
c113e7ff 12396 * config/djgpp/fnchange.lst: Add entry for gdb/ChangeLog-2016.
ce0db137 12397
c113e7ff 12398For older changes see ChangeLog-2016.
c906108c
SS
12399\f
12400Local Variables:
12401mode: change-log
12402left-margin: 8
12403fill-column: 74
12404version-control: never
57da7796 12405coding: utf-8
c906108c 12406End:
This page took 2.595058 seconds and 4 git commands to generate.