Move arm.o arm-get-next-pcs.o arm-linux.o to arch/
[deliverable/binutils-gdb.git] / gdb / ChangeLog
CommitLineData
71917808
YQ
12017-10-06 Yao Qi <yao.qi@linaro.org>
2
3 * Makefile.in (ALL_TARGET_OBS): Replace arm.o, arm-get-next-pcs.o,
4 and arm-linux.o with arch/arm.o, arch/arm-get-next-pcs.o and
5 arch/arm-linux.o respectively.
6 * configure.tgt: Likewise.
7
2081b2b2
YQ
82017-10-06 Yao Qi <yao.qi@linaro.org>
9
10 * Makefile.in (ALL_TARGET_OBS): Rename i386.o to arch/i386.o.
11 * configure.tgt (i386_tobjs): Replace i386.o with arch/i386.o.
12
a1b85d28
PA
132017-10-06 Pedro Alves <palves@redhat.com>
14
15 * windows-nat.c: Include <algorithm>.
16
d97987e2
YQ
172017-10-06 Yao Qi <yao.qi@linaro.org>
18
19 * configure.tgt (i386_tobjs): New variable.
20 (amd64_tobjs): New variable.
21 Set $cpu_obs and $os_obs.
22
f38307f5
YQ
232017-10-06 Yao Qi <yao.qi@linaro.org>
24
25 * Makefile.in (CONFIG_SRC_SUBDIR): New.
26 (ALL_64_TARGET_OBS): Replace amd64.o with arch/amd64.o.
27 (clean): Remove object files and dependency files.
28 (distclean): Remove the directory.
29 * configure.ac: Invoke AC_CONFIG_COMMANDS.
30 * configure: Re-generated.
31 * configure.tgt: Replace amd64.o with arch/amd64.o.
32
2f924de6
JM
332017-10-05 Jose E. Marchesi <jose.marchesi@oracle.com>
34
35 PR build/22188
36 * arm-tdep.c (arm_decode_misc_memhint_neon): Fix decoding of CPS
37 and SETEND.
38
2fd9d7ca
PA
392017-10-05 Pedro Alves <palves@redhat.com>
40
41 * linux-nat.c (linux_child_follow_fork): When following the parent
42 and detaching the child, consult the parent thread's architecture
43 instead of the child's.
44
d13b8493
UW
452017-10-05 Ulrich Weigand <uweigand@de.ibm.com>
46
47 * ax.h: Do not include "doublest.h".
48 (union agent_val): Remove.
49
3b4b2f16
UW
502017-10-05 Ulrich Weigand <uweigand@de.ibm.com>
51
52 * dfp.h (MAX_DECIMAL_STRING): Move to dfp.c.
53 (decimal_to_string): Return std::string object.
54 (decimal_from_string): Accept std::string object. Return bool.
55 (decimal_from_integral, decimal_from_doublest): Remove.
56 (decimal_from_longest): Add prototype.
57 (decimal_from_ulongest): Likewise.
58 (decimal_to_longest): Likewise.
59 (decimal_from_doublest): Likewise.
60 * dfp.c: Do not include "gdbtypes.h" or "value.h".
61 (MAX_DECIMAL_STRING): Move here.
62 (decimal_to_string): Return std::string object.
63 (decimal_from_string): Accept std::string object. Return bool.
64 (decimal_from_integral): Remove, replace by ...
65 (decimal_from_longest, decimal_from_ulongest): ... these new functions.
66 (decimal_to_longest): New function.
67 (decimal_from_floating): Remove, replace by ...
68 (decimal_from_doublest): ... this new function.
69 (decimal_to_doublest): Update to new decimal_to_string interface.
70
71 * value.c (unpack_long): Use decimal_to_longest.
72 * valops.c (value_cast): Use decimal_from_doublest instead of
73 decimal_from_floating. Use decimal_from_[u]longest isntead of
74 decimal_from_integral.
75 * valarith.c (value_args_as_decimal): Likewise.
76 * valprint.c (print_decimal_floating): Update to new
77 decimal_to_string interface.
78 * printcmd.c (printf_decfloat): Likewise.
79 * c-exp.y (parse_number): Update to new decimal_from_string interface.
80
1841ee5d
UW
812017-10-05 Ulrich Weigand <uweigand@de.ibm.com>
82
83 * doublest.h: Do not include "floatformat.h". Remove stale comments.
84 * gdbtypes.c: Include "floatformat.h".
85 * value.c: Likewise.
86 * m68k-tdep.c: Likewise.
87
88 * findvar.c: Do not include "floatformat.h".
89 * amd64-darwin-tdep.c: Likewise.
90 * arm-linux-tdep.c: Likewise.
91 * i386-darwin-tdep.c: Likewise.
92 * i387-tdep.c: Likewise.
93 * m68k-linux-tdep.c: Likewise.
94 * mep-tdep.c: Likewise.
95 * mips-tdep.c: Likewise.
96 * nios2-tdep.c: Likewise.
97 * s390-linux-tdep.c: Likewise.
98 * sparc-obsd-tdep.c: Likewise.
99 * sparc-tdep.c: Likewise.
100 * sparc64-tdep.c: Likewise.
101 * spu-tdep.c: Likewise.
102 * tic6x-tdep.c: Likewise.
103 * tilegx-tdep.c: Likewise.
104 * vax-tdep.c: Likewise.
105 * xstormy16-tdep.c: Likewise.
106 * xtensa-tdep.c: Likewise.
107
108 * top.c: Do not include "doublest.h".
109 * aarch64-tdep.c: Likewise.
110 * alpha-tdep.c: Likewise.
111 * arm-linux-tdep.c: Likewise.
112 * m68k-linux-tdep.c: Likewise.
113 * tilegx-tdep.c: Likewise.
114 * xstormy16-tdep.c: Likewise.
115
a80a6471
JB
1162017-10-05 John Baldwin <jhb@FreeBSD.org>
117
118 * mips-fbsd-tdep.c (MIPS_INST_ADDIU_A0_SP_N32): Define.
119 (mipsn32_fbsd_sigframe): Define.
120 (mips_fbsd_init_abi): Install mipsn32_fbsd_sigframe unwinder
121 for FreeBSD/mipsn32.
122
12c4bd7f
JB
1232017-10-05 John Baldwin <jhb@FreeBSD.org>
124
125 * fbsd-tdep.c (fbsd_print_auxv_entry): Handle AT_EHDRFLAGS and
126 AT_HWCAP.
127
c91933e9
TG
1282017-10-05 Tristan Gingold <tgingold@free.fr>
129
130 * MAINTAINERS (Misc): Update my email address.
131
5cd63fda
PA
1322017-10-04 Pedro Alves <palves@redhat.com>
133
134 * remote.c (get_remote_arch_state): New 'gdbarch' parameter. Use
135 it instead of target_gdbarch.
136 (get_remote_state, get_remote_packet_size): Adjust
137 get_remote_arch_state calls, passing down target_gdbarch
138 explicitly.
139 (packet_reg_from_regnum, packet_reg_from_pnum): New parameter
140 'gdbarch' and use it instead of target_gdbarch.
141 (get_memory_packet_size): Adjust get_remote_arch_state calls,
142 passing down target_gdbarch explicitly.
143 (struct stop_reply) <arch>: New field.
144 (remote_parse_stop_reply): Use the stopped thread's architecture,
145 not the current inferior's. Save the architecture in the
146 stop_reply.
147 (process_stop_reply): Use the stop reply's architecture.
148 (process_g_packet, remote_fetch_registers)
149 (remote_prepare_to_store, store_registers_using_G)
150 (remote_store_registers): Adjust get_remote_arch_state calls,
151 using the regcache's architecture.
152 (remote_get_trace_status): Adjust get_remote_arch_state calls,
153 passing down target_gdbarch explicitly.
154 * spu-multiarch.c (spu_thread_architecture): Defer to the target
155 beneath instead of calling target_gdbarch.
156 * target.c (default_thread_architecture): Use the specified
157 inferior's architecture, instead of the current inferior's
158 architecture (via target_gdbarch).
159
ed4227b7
PA
1602017-10-04 Pedro Alves <palves@redhat.com>
161
162 * regcache.c (get_thread_arch_regcache): Remove null_ptid special
163 case.
164 (regcache_print): Handle !target_has_registers here instead.
165
55b11ddf
PA
1662017-10-04 Pedro Alves <palves@redhat.com>
167
168 * frame.c (create_test_frame): Delete.
169 * frame.h (create_test_frame): Delete.
170 * gdbarch-selftests.c: Include gdbthread.h and target.h.
171 (class regcache_test): Delete.
172 (test_target_has_registers, test_target_has_stack)
173 (test_target_has_memory, test_target_prepare_to_store)
174 (test_target_store_registers): New functions.
175 (test_target_ops): New class.
176 (register_to_value_test): Error out if there's already a
177 process_stratum (or higher) target pushed. Create a fuller mock
178 environment, with mock target_ops, inferior, address space, thread
179 and inferior_ptid.
180 * progspace.c (struct address_space): Move to ...
181 * progspace.h (struct address_space): ... here.
182 * regcache.h (regcache::~regcache, regcache::raw_write)
183 [GDB_SELF_TEST]: No longer virtual.
184
4c71c105
SM
1852017-10-04 Simon Marchi <simon.marchi@ericsson.com>
186
187 * mi/mi-main.c (list_available_thread_groups): Reverse filter logic.
188
73dcd72d
PA
1892017-10-04 Pedro Alves <palves@redhat.com>
190
191 * guile/scm-breakpoint.c (gdbscm_breakpoint_commands): Move code
192 out of 'between TRY and CATCH'.
193
44704526
PA
1942017-10-04 Pedro Alves <palves@redhat.com>
195
196 * cli/cli-cmds.c (complete_command): Add missing END_CATCH.
197 * common/common-exceptions.h (TRY): Open an outermost scope.
198 Expand intro comment.
199 (CATCH): Reindent.
200 (END_CATCH): Close the outermost scope.
201 * completer.c (complete_line_internal): Add missing END_CATCH.
202
bc3b087d
SDJ
2032017-10-04 Sergio Durigan Junior <sergiodj@redhat.com>
204
205 * NEWS (Changes since GDB 8.0): Add entry about new
206 'set-cwd-on-gdbserver' feature.
207 (New remote packets): Add entry for QSetWorkingDir.
208 * common/common-inferior.h (set_inferior_cwd): New prototype.
209 * infcmd.c (set_inferior_cwd): Remove "static".
210 (show_cwd_command): Expand text to include remote debugging.
211 * remote.c: Add PACKET_QSetWorkingDir.
212 (remote_protocol_features) <QSetWorkingDir>: New entry for
213 PACKET_QSetWorkingDir.
214 (extended_remote_set_inferior_cwd): New function.
215 (extended_remote_create_inferior): Call
216 "extended_remote_set_inferior_cwd".
217 (_initialize_remote): Call "add_packet_config_cmd" for
218 QSetWorkingDir.
219
d092c5a2
SDJ
2202017-10-04 Sergio Durigan Junior <sergiodj@redhat.com>
221
222 * NEWS (New commands): Mention "set/show cwd".
223 * cli/cli-cmds.c (_initialize_cli_cmds): Mention "set cwd" on
224 "cd" command's help text.
225 * common/common-inferior.h (get_inferior_cwd): New prototype.
226 * infcmd.c (inferior_cwd_scratch): New global variable.
227 (set_inferior_cwd): New function.
228 (get_inferior_cwd): Likewise.
229 (set_cwd_command): Likewise.
230 (show_cwd_command): Likewise.
231 (_initialize_infcmd): Add "set/show cwd" commands.
232 * inferior.h (class inferior) <cwd>: New field.
233 * nat/fork-inferior.c: Include "gdb_tilde_expand.h".
234 (fork_inferior): Change inferior's cwd before its execution.
235 * windows-nat.c (windows_create_inferior): Pass inferior's cwd
236 to CreateProcess.
237
7da0a886
SDJ
2382017-10-04 Sergio Durigan Junior <sergiodj@redhat.com>
239
240 * Makefile.in (SFILES): Add gdb_tilde_expand.c.
241 (HFILES_NO_SRCDIR): Add gdb_tilde_expand.h.
242 (COMMON_OBS): Add gdb_tilde_expand.o.
243 * common/gdb_tilde_expand.c: New file.
244 * common/gdb_tilde_expand.h: Likewise.
245
db8dd160
MR
2462017-10-03 Maciej W. Rozycki <macro@imgtec.com>
247
248 * gdbarch.sh (objfile): Remove duplicate declaration.
249 * gdbarch.h: Regenerate.
250
f8bfbf22
TT
2512017-10-03 Tom Tromey <tom@tromey.com>
252
253 * utils.c (internal_vproblem): Use string_vprintf.
254
5178ed48
TT
2552017-10-03 Tom Tromey <tom@tromey.com>
256
257 * printcmd.c (info_symbol_command): Use std::string.
258
8cff8730
TT
2592017-10-03 Tom Tromey <tom@tromey.com>
260
261 * top.c (gdb_safe_append_history): Use std::string.
262
895b8f30
TT
2632017-10-03 Tom Tromey <tom@tromey.com>
264
265 * event-top.c (stdin_event_handler): Update.
266 * main.c (captured_main_1): Update.
267 * top.h (make_delete_ui_cleanup): Remove.
268 (struct ui): Add constructor and destructor.
269 (new_ui, delete_ui): Remove.
270 * top.c (make_delete_ui_cleanup): Remove.
271 (new_ui_command): Use std::unique_ptr.
272 (delete_ui_cleanup): Remove.
273 (ui::ui): Rename from new_ui. Update.
274 (free_ui): Remove.
275 (ui::~ui): Rename from delete_ui. Update.
276
0efef640
TT
2772017-10-03 Tom Tromey <tom@tromey.com>
278
279 * symfile.c (load_progress): Use gdb::byte_vector.
280
245ad7d3
TT
2812017-10-03 Tom Tromey <tom@tromey.com>
282
283 * mi/mi-main.c (mi_cmd_trace_frame_collected): Remove unused
284 declaration.
285 * printcmd.c (x_command): Remove unused declaration.
286 * symfile.c (symbol_file_command): Remove unused declaration.
287
e05550d7
TT
2882017-10-03 Tom Tromey <tom@tromey.com>
289
290 * utils.c (internal_vproblem): Use std::string.
291 (defaulted_query): Likewise.
292
b95de2b7
TT
2932017-10-03 Tom Tromey <tom@tromey.com>
294
295 * guile/scm-ports.c (ioscm_with_output_to_port_worker): Update.
296 * top.c (execute_command_to_string): Update.
297 * utils.c (make_cleanup_restore_page_info): Remove.
298 (do_restore_page_info_cleanup): Remove.
299 (set_batch_flag_and_restore_page_info):
300 New.
301 (make_cleanup_restore_page_info): Remove.
302 (set_batch_flag_and_make_cleanup_restore_page_info): Remove.
303 (~set_batch_flag_and_restore_page_info): New
304 (make_cleanup_restore_uinteger): Remove.
305 (make_cleanup_restore_integer): Remove.
306 (struct restore_integer_closure): Remove.
307 (restore_integer): Remove.
308 * utils.h (struct set_batch_flag_and_restore_page_info): New
309 class.
310 (set_batch_flag_and_make_cleanup_restore_page_info): Remove.
311 (make_cleanup_restore_page_info): Remove.
312 (make_cleanup_restore_uinteger) Remove.
313 (make_cleanup_restore_integer) Remove.
314
07036511
TT
3152017-10-03 Tom Tromey <tom@tromey.com>
316
317 * record-full.h (record_full_gdb_operation_disable_set): Return
318 scoped_restore_tmpl<int>.
319 * infrun.c (adjust_pc_after_break): Update.
320 (handle_signal_stop): Update.
321 * record-full.c (record_full_gdb_operation_disable_set): Return
322 scoped_restore_tmpl<int>.
323 (record_full_wait_1, record_full_insert_breakpoint)
324 (record_full_remove_breakpoint, record_full_save)
325 (record_full_goto_insn): Update.
326
45320ffa
TT
3272017-10-02 Tom Tromey <tom@tromey.com>
328
329 PR rust/22236:
330 * rust-lang.c (rust_val_print_str): New function.
331 (val_print_struct): Call it.
332 (rust_subscript): Preserve name of slice type.
333
b3e3859b
TT
3342017-10-02 Tom Tromey <tom@tromey.com>
335
336 * rust-lang.c (rust_subscript): Handle slices in
337 EVAL_AVOID_SIDE_EFFECTS case.
338
01af5e0d
TT
3392017-10-02 Tom Tromey <tom@tromey.com>
340
341 * rust-lang.c (rust_slice_type_p): Recognize &str as a slice type.
342
888e3ddb
TT
3432017-10-02 Tom Tromey <tom@tromey.com>
344
345 * rust-lang.h (rust_slice_type): Add "extern".
346
cc536b21
PA
3472017-10-02 Tom Tromey <tom@tromey.com>
348 Pedro Alves <palves@redhat.com>
349
350 * ada-lang.h (ada_exc_info::operator<): Make const.
351 (ada_exc_info::operator==): Make const.
352 * ada-lang.c (ada_exc_info::operator<, ada_exc_info::operator==):
353 Make const.
354
386c8614
TT
3552017-09-29 Tom Tromey <tom@tromey.com>
356
357 * target.c (read_whatever_is_readable): Change type of "result".
358 Update.
359 (free_memory_read_result_vector): Remove.
360 (read_memory_robust): Change return type. Update.
361 * mi/mi-main.c (mi_cmd_data_read_memory_bytes): Update. Use
362 bin2hex, std::string.
363 * target.h (memory_read_result_s): Remove typedef.
364 (free_memory_read_result_vector): Remove.
365 (read_memory_robust): Return std::vector.
366
789c4b5e
TT
3672017-09-29 Tom Tromey <tom@tromey.com>
368
369 * mi/mi-main.c (captured_mi_execute_command): Use scope_restore.
370
ab816a27
TT
3712017-09-29 Tom Tromey <tom@tromey.com>
372
373 * mi/mi-cmd-info.c (mi_cmd_info_ada_exceptions): Update.
374 * ada-lang.h (struct ada_exc_info): Remove typedef. Declare
375 operator< and operator==.
376 (ada_exceptions_list): Return a std::vector.
377 * ada-lang.c (ada_exc_info::operator<): Rename from
378 compare_ada_exception_info.
379 (ada_exc_info::operator==): New.
380 (sort_remove_dups_ada_exceptions_list): Change type of
381 "exceptions".
382 (ada_add_standard_exceptions, ada_add_exceptions_from_frame)
383 (ada_add_global_exceptions): Likewise.
384 (ada_exceptions_list_1): Return a std::vector.
385 (ada_exceptions_list): Likewise.
386
52f9abe4
TT
3872017-09-29 Tom Tromey <tom@tromey.com>
388
389 * mi/mi-main.c (struct print_one_inferior_data) <inferiors>: Now a
390 'std::set *'.
391 (print_one_inferior): Update.
392 (free_vector_of_ints): Remove.
393 (list_available_thread_groups): Change "ids" to std::set.
394 (mi_cmd_list_thread_groups): Update.
395 (struct collect_cores_data) <core>: Now a std::set.
396 (collect_cores): Update.
397 (unique): Remove.
398 (print_one_inferior): Update.
399
dcd5ddcc
TT
4002017-09-29 Tom Tromey <tom@tromey.com>
401
402 * mi/mi-main.c (mi_execute_cli_command): Use std::string.
403 (mi_execute_async_cli_command): Likewise.
404 (mi_cmd_trace_frame_collected): Use field_fmt.
405
45d288cc
TT
4062017-09-29 Tom Tromey <tom@tromey.com>
407
408 * mi/mi-main.c (mi_cmd_data_write_memory_bytes): Use
409 gdb::byte_vector.
410
6afe2f4a
TT
4112017-09-29 Tom Tromey <tom@tromey.com>
412
413 * mi/mi-parse.c (mi_parse): Remove unused declaration.
414
9813429a
TT
4152017-09-29 Tom Tromey <tom@tromey.com>
416
417 * mi/mi-cmd-disas.c (mi_cmd_disassemble): Don't copy "oarg".
418
2d6960b4
TT
4192017-09-29 Tom Tromey <tom@tromey.com>
420
421 * varobj.h (varobj_gen_name): Return std::string.
422 * varobj.c (varobj_gen_name): Return std::string.
423 * mi/mi-cmd-var.c (mi_cmd_var_create): Use std::string.
424 (mi_cmd_var_delete): Don't copy "name".
425
784c453a
TT
4262017-09-29 Tom Tromey <tom@tromey.com>
427
428 * mi/mi-cmd-break.c (mi_argv_to_format): Return std::string.
429 (mi_cmd_break_insert_1): Update.
430
a9bc57b9
TT
4312017-09-29 Tom Tromey <tom@tromey.com>
432
433 * target.h (make_scoped_defer_target_commit_resume): Update.
434 * target.c (make_scoped_defer_target_commit_resume): Rename from
435 make_cleanup_defer_target_commit_resume. Return a
436 scoped_restore.
437 * infrun.c (proceed): Use make_scoped_defer_target_commit_resume.
438
9754d8c4
TT
4392017-09-29 Tom Tromey <tom@tromey.com>
440
441 * main.c (captured_main_1): Remove unused declaration.
442 * spu-multiarch.c (parse_spufs_run): Remove unused declaration.
443
99ef965c
TT
4442017-09-29 Tom Tromey <tom@tromey.com>
445
446 * symtab.c (search_symbols): Remove unused outer cleanup.
447 (make_source_files_completion_list): Remove unused declaration.
448
42518ba7
TT
4492017-09-29 Tom Tromey <tom@tromey.com>
450
451 * mt-tdep.c (mt_push_dummy_call): Use gdb::byte_vector.
452
726b2169
TT
4532017-09-29 Tom Tromey <tom@tromey.com>
454
455 * xstormy16-tdep.c (xstormy16_push_dummy_call): Use
456 gdb::byte_vector.
457
55b06432
TT
4582017-09-29 Tom Tromey <tom@tromey.com>
459
460 * complaints.c (vcomplaint): Use std::string.
461
8abcee91
TT
4622017-09-29 Tom Tromey <tom@tromey.com>
463
464 * tracepoint.c (trace_variable_command): Use std::string.
465 (encode_actions_1): Remove unused declarations.
466 (create_tsv_from_upload): Use std::string.
467
6ad94bc7
TT
4682017-09-29 Tom Tromey <tom@tromey.com>
469
470 * cp-support.c (gdb_demangle): Use std::string.
471
2003f3d8
TT
4722017-09-29 Tom Tromey <tom@tromey.com>
473
474 * stack.c (parse_frame_specification): Use std::string
475 (info_frame_command): Use gdb::unique_xmalloc_ptr.
476
8f8accb5
TT
4772017-09-29 Tom Tromey <tom@tromey.com>
478
479 * tilegx-tdep.c (tilegx_push_dummy_call): Use gdb::byte_vector.
480
200aa7b1
TT
4812017-09-29 Tom Tromey <tom@tromey.com>
482
483 * utils.c (vfprintf_maybe_filtered): Use std::string.
484 (vfprintf_unfiltered): Likewise.
485
606aae8a
TT
4862017-09-29 Tom Tromey <tom@tromey.com>
487
488 * event-top.c (top_level_prompt): Return std::string.
489 (display_gdb_prompt): Update.
490
bd413795
TT
4912017-09-29 Tom Tromey <tom@tromey.com>
492
493 * unittests/common-utils-selftests.c (format): New function.
494 (string_vprintf_tests): New function.
495 (_initialize_common_utils_selftests): Register new tests.
496 * common/common-utils.c (string_vprintf): New function.
497 * common/common-utils.h (string_vprintf): Declare.
498
256642e8
PA
4992017-09-29 Pedro Alves <palves@redhat.com>
500
501 * common/rsp-low.c (unpack_varlen_hex): Constify.
502 * common/rsp-low.h (unpack_varlen_hex): Constify.
503 * linux-nat.c (linux_child_static_tracepoint_markers_by_strid):
504 Constify.
505 * remote.c (remote_set_permissions, read_ptid)
506 (remote_current_thread, remote_get_threads_with_qthreadinfo)
507 (remote_static_tracepoint_marker_at)
508 (remote_static_tracepoint_markers_by_strid)
509 (stop_reply_extract_thread, remote_parse_stop_reply): Constify.
510 * tracepoint.c (parse_trace_status, parse_tracepoint_status)
511 (parse_tracepoint_definition, parse_tsv_definition)
512 (parse_static_tracepoint_marker_definition): Constify.
513 * tracepoint.h (parse_static_tracepoint_marker_definition)
514 (parse_trace_status, parse_tracepoint_status)
515 (parse_tracepoint_definition, parse_tsv_definition): Constify.
516
b6bb3468
PA
5172017-09-29 Pedro Alves <palves@redhat.com>
518
519 * remote.c (target_buf, target_buf_size): Delete.
520 (remote_get_noisy_reply): Remove buf_p and sizeof_buf parameters.
521 Use the connection's packet buffer instead.
522 All callers adjusted.
523 (_initialize_remote): Remove references to target_buf and
524 target_buf_size.
525
b2f8eb7a
PA
5262017-09-28 Pedro Alves <palves@redhat.com>
527
528 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
529 unittests/common-utils-selftests.c.
530 (SUBDIR_UNITTESTS_OBS): Add common-utils-selftests.o.
531 (COMMON_OBS): Remove utils-selftests.o.
532 * utils-selftests.c: Move to ...
533 * unittests/common-utils-selftests.c: ... here and rename self
534 test to "string_printf".
535
08302ed2
DE
5362017-09-28 Alexander Shaposhnikov <alexander.v.shaposhnikov@gmail.com> (tiny patch)
537
538 * dwarf2read.c (open_and_init_dwp_file): Protect against dwp_file
539 having NULL cus or tus.
540
96a5a1d3
UW
5412017-09-27 Ulrich Weigand <uweigand@de.ibm.com>
542
543 * arm-tdep.c: (convert_from_extended): Remove.
544 (convert_to_extended): Likewise.
545 (arm_extract_return_value): Use convert_typed_floating.
546 (arm_store_return_value): Likewise.
547
548 * sh-tdep.h (struct gdbarch_tdep): Add sh_littlebyte_bigword_type.
549 * sh-tdep.c: Do not include "floatformat.h".
550 (sh_littlebyte_bigword_type): New function.
551 (sh_register_convert_to_virtual): Use convert_typed_floating.
552 (sh_register_convert_to_raw): Likewise.
553 * sh64-tdep.c: (struct gdbarch_tdep): Add sh_littlebyte_bigword_type.
554 (sh64_littlebyte_bigword_type): New function.
555 (sh64_extract_return_value): Use convert_typed_floating.
556 (sh64_register_convert_to_virtual): Likewise.
557 (sh64_register_convert_to_raw): Likewise.
558
0db7851f
UW
5592017-09-27 Ulrich Weigand <uweigand@de.ibm.com>
560
561 * doublest.h (floatformat_from_type): Move to gdbtypes.h.
562 * doublest.c (floatformat_from_type): Move to gdbtypes.c.
563
564 * gdbtypes.h (union type_specific): Make field floatformat hold
565 just a single struct floatformat, not an array.
566 (floatformat_from_type): Move here.
567 * gdbtypes.c (floatformat_from_type): Move here. Update to
568 changed TYPE_FLOATFORMAT definition.
569 (verify_floatformat): Update to changed TYPE_FLOATFORMAT.
570 (recursive_dump_type): Likewise.
571 (init_float_type): Install correct floatformat for byte order.
572 (arch_float_type): Likewise.
573
77b7c781
UW
5742017-09-27 Ulrich Weigand <uweigand@de.ibm.com>
575
576 * gdbtypes.c (init_type): Change incoming argument from
577 length-in-bytes to length-in-bits. Assert length is a
578 multiple of TARGET_CHAR_BITS.
579 (arch_type, arch_flags_type): Likewise.
580 (init_integer_type): Update call to init_type.
581 (init_character_type): Likewise.
582 (init_boolean_type): Likewise.
583 (init_float_type): Likewise.
584 (init_decfloat_type): Likewise.
585 (init_complex_type): Likewise.
586 (init_pointer_type): Likewise.
587 (objfile_type): Likewise.
588 (arch_integer_type): Update call to arch_type.
589 (arch_character_type): Likewise.
590 (arch_boolean_type): Likewise.
591 (arch_float_type): Likewise.
592 (arch_decfloat_type): Likewise.
593 (arch_complex_type): Likewise.
594 (arch_pointer_type): Likewise.
595 (gdbtypes_post_init): Likewise.
596
597 * dwarf2read.c (dwarf2_init_float_type): Update call to init_type.
598 (read_base_type): Likewise.
599 * mdebugread.c (basic_type): Likewise.
600 * stabsread.c (dbx_init_float_type): Likewise.
601 (rs6000_builtin_type): Likewise.
602 (read_range_type): Likewise. Also, fix call to init_integer_type
603 with erroneous length argument.
604
605 * ada-lang.c (ada_language_arch_info): Update call to arch_type.
606 * d-lang.c (build_d_types): Likewise.
607 * f-lang.c (build_fortran_types): Likewise.
608 * go-lang.c (build_go_types): Likewise.
609 * opencl-lang.c (build_opencl_types): Likewise.
610 * jit.c (finalize_symtab): Likewise.
611 * gnu-v3-abi.c (build_gdb_vtable_type): Likewise.
612 (build_std_type_info_type): Likewise.
613 * target-descriptions.c (tdesc_gdb_type): Likewise. Also,
614 update call to arch_flags_type.
615
616 * linux-tdep.c (linux_get_siginfo_type_with_fields): Update call to
617 arch_type.
618 * fbsd-tdep.c (fbsd_get_siginfo_type): Likewise.
619 * windows-tdep.c (windows_get_tlb_type): Likewise.
620
621 * avr-tdep.c (avr_gdbarch_init): Update call to arch_type.
622 * ft32-tdep.c (ft32_gdbarch_init): Likewise.
623 * m32c-tdep.c (make_types): Likewise.
624 * rl78-tdep.c (rl78_gdbarch_init): Likewise.
625 (rl78_psw_type): Update call to arch_flags_type.
626 * m68k-tdep.c (m68k_ps_type): Update call to arch_flags_type.
627 * rx-tdep.c (rx_psw_type): Likewise.
628 (rx_fpsw_type): Likewise.
629 * sparc-tdep.c (sparc_psr_type): Likewise.
630 (sparc_fsr_type): Likewise.
631 * sparc64-tdep.c (sparc64_pstate_type): Likewise.
632 (sparc64_ccr_type): Likewise.
633 (sparc64_fsr_type): Likewise.
634 (sparc64_fprs_type): Likewise.
635
f21b4d5c
TT
6362017-09-27 Tom Tromey <tom@tromey.com>
637
638 * findcmd.c (find_command): Constify.
639
643c2ffa
TT
6402017-09-27 Tom Tromey <tom@tromey.com>
641
642 * ada-tasks.c (task_command_1, task_command): Constify.
643
510e5e56
TT
6442017-09-27 Tom Tromey <tom@tromey.com>
645
646 * symtab.c (maintenance_print_symbol_cache)
647 (maintenance_flush_symbol_cache)
648 (maintenance_print_symbol_cache_statistics): Constify.
649
e503b191
TT
6502017-09-27 Tom Tromey <tom@tromey.com>
651
652 * inferior.c (detach_inferior_command, kill_inferior_command)
653 (inferior_command): Constify.
654
4e001312
TT
6552017-09-27 Tom Tromey <tom@tromey.com>
656
657 * regcache.c (regcache_print, maintenance_print_registers)
658 (maintenance_print_raw_registers)
659 (maintenance_print_cooked_registers)
660 (maintenance_print_register_groups)
661 (maintenance_print_remote_registers): Constify.
662
77763700
TT
6632017-09-27 Tom Tromey <tom@tromey.com>
664
665 * printcmd.c (map_display_numbers, undisplay_command)
666 (enable_disable_display_command, enable_display_command)
667 (disable_display_command): Constify.
668
4495129a
TT
6692017-09-27 Tom Tromey <tom@tromey.com>
670
671 * breakpoint.h (delete_command): Don't declare.
672 * breakpoint.c (delete_command, enable_once_command)
673 (enable_count_command, enable_delete_command, breakpoint_1)
674 (maintenance_info_breakpoints, stopin_command, stopat_command)
675 (delete_command, delete_trace_command, save_breakpoints)
676 (save_breakpoints_command, save_tracepoints_command): Constify.
677
3088cf40
TT
6782017-09-27 Tom Tromey <tom@tromey.com>
679
680 * macrocmd.c (macro_expand_command, macro_expand_once_command)
681 (skip_ws, extract_identifier, macro_define_command)
682 (macro_undef_command, macro_list_command): Constify.
683
69f476a3
TT
6842017-09-27 Tom Tromey <tom@tromey.com>
685
686 * infcmd.c (environment_info, set_environment_command)
687 (unset_environment_command, path_info, info_proc_cmd_1)
688 (info_proc_cmd_mappings, info_proc_cmd_stat)
689 (info_proc_cmd_status, info_proc_cmd_cwd, info_proc_cmd_cmdline)
690 (info_proc_cmd_exe, info_proc_cmd_all): Constify.
691
c4a3e68e
TT
6922017-09-27 Tom Tromey <tom@tromey.com>
693
694 * i386-tdep.c (i386_mpx_info_bounds, i386_mpx_set_bounds):
695 Constify.
696
c9d31bd6
TT
6972017-09-27 Tom Tromey <tom@tromey.com>
698
699 * symfile-mem.c (add_symbol_file_from_memory_command): Constify.
700
1f3f85eb
TT
7012017-09-27 Tom Tromey <tom@tromey.com>
702
703 * demangle.c (demangle_command): Constify.
704
9c504b5d
TT
7052017-09-27 Tom Tromey <tom@tromey.com>
706
707 * progspace.c (maintenance_info_program_spaces_command):
708 Constify.
709
6663cf91
TT
7102017-09-27 Tom Tromey <tom@tromey.com>
711
712 * compile/compile.c (check_raw_argument, compile_file_command)
713 (compile_code_command, compile_print_command): Constify.
714
34e5fa26
TT
7152017-09-27 Tom Tromey <tom@tromey.com>
716
717 * reggroups.c (maintenance_print_reggroups): Constify.
718
8384c356
TT
7192017-09-27 Tom Tromey <tom@tromey.com>
720
721 * dwarf2read.c (save_gdb_index_command): Constify.
722
884beb0c
TT
7232017-09-27 Tom Tromey <tom@tromey.com>
724
725 * stap-probe.c (info_probes_stap_command): Constify.
726
e0b2930c
TT
7272017-09-27 Tom Tromey <tom@tromey.com>
728
729 * fork-child.c (unset_exec_wrapper_command): Constify.
730
f938677d
TT
7312017-09-27 Tom Tromey <tom@tromey.com>
732
733 * btrace.c (get_uint, get_context_size, no_chunk)
734 (maint_btrace_packet_history_cmd)
735 (maint_btrace_clear_packet_history_cmd, maint_btrace_clear_cmd)
736 (maint_info_btrace_cmd): Constify.
737
8949cb87
TT
7382017-09-27 Tom Tromey <tom@tromey.com>
739
740 * reverse.c (delete_bookmark_command): Constify.
741
ac88e2de
TT
7422017-09-27 Tom Tromey <tom@tromey.com>
743
744 * remote.c (set_memory_packet_size)
745 (set_memory_write_packet_size, show_memory_write_packet_size)
746 (set_memory_read_packet_size, show_memory_read_packet_size)
747 (compare_sections_command, packet_command, remote_put_command)
748 (remote_get_command, remote_delete_command): Constify.
749
bd4c9dfe
TT
7502017-09-27 Tom Tromey <tom@tromey.com>
751
752 * mips-tdep.c (show_mipsfpu_command, set_mipsfpu_single_command)
753 (set_mipsfpu_double_command, set_mipsfpu_none_command)
754 (set_mipsfpu_auto_command): Constify.
755
5e93d4c6
TT
7562017-09-27 Tom Tromey <tom@tromey.com>
757
758 * cli/cli-cmds.h (cd_command): Constify.
759 * cli/cli-cmds.c (cd_command): Constify.
760
fc41a75b
TT
7612017-09-27 Tom Tromey <tom@tromey.com>
762
763 * thread.c (thread_name_command, thread_find_command): Constify.
764
67810076
TT
7652017-09-27 Tom Tromey <tom@tromey.com>
766
767 * probe.c (enable_probes_command, disable_probes_command):
768 Constify.
769
1d8b34a7
TT
7702017-09-27 Tom Tromey <tom@tromey.com>
771
772 * symfile.c (symbol_file_command): Constify.
773 * gdbcore.h (deprecated_file_changed_hook): Constify.
774 * exec.c (deprecated_file_changed_hook, exec_file_command)
775 (file_command): Constify.
776 * defs.h (symbol_file_command): Constify.
777
442019e1
TT
7782017-09-27 Tom Tromey <tom@tromey.com>
779
780 * remote-fileio.c (set_system_call_allowed)
781 (show_system_call_allowed): Constify.
782
2983f7cb
TT
7832017-09-27 Tom Tromey <tom@tromey.com>
784
785 * tracepoint.c (delete_trace_variable_command)
786 (tfind_end_command, tfind_start_command, tfind_pc_command)
787 (tfind_tracepoint_command, tfind_line_command)
788 (tfind_range_command, tfind_outside_command): Constify.
789
4fd41b24
TT
7902017-09-27 Tom Tromey <tom@tromey.com>
791
792 * ax-gdb.c (maint_agent_printf_command, agent_command)
793 (agent_eval_command): Constify.
794
f2fc3015
TT
7952017-09-27 Tom Tromey <tom@tromey.com>
796
797 * tracepoint.c (info_scope_command): Constify.
798 * python/python.c (gdbpy_decode_line): Constify.
799 * python/py-breakpoint.c (bppy_init): Constify.
800 * mi/mi-cmd-break.c (mi_cmd_break_insert_1): Constify.
801 * location.h: (new_linespec_location)
802 (string_to_event_location_basic, string_to_event_location):
803 Constify.
804 * location.c (new_linespec_location)
805 (string_to_event_location_basic, string_to_event_location):
806 Constify.
807 * linespec.h (decode_line_with_current_source)
808 (decode_line_with_last_displayed, linespec_lex_to_end): Constify.
809 * linespec.c (linespec_lex_to_end)
810 (decode_line_with_current_source)
811 (decode_line_with_last_displayed): Constify.
812 * guile/scm-breakpoint.c (gdbscm_register_breakpoint_x):
813 Constify.
814 * cli/cli-cmds.c (edit_command, list_command): Constify.
815 * breakpoint.h (until_break_command, watch_command_wrapper)
816 (awatch_command_wrapper, rwatch_command_wrapper)
817 (init_ada_exception_breakpoint): Constify.
818 * breakpoint.c (break_command_1, dprintf_command)
819 (break_range_command, watch_command_wrapper)
820 (rwatch_command_wrapper, awatch_command_wrapper)
821 (until_break_command, init_ada_exception_breakpoint)
822 (strace_marker_create_sals_from_location, trace_command)
823 (ftrace_command, strace_command, struct tracepoint): Constify.
824 * ax-gdb.c (agent_command_1): Constify.
825 * ada-lang.c (ada_exception_sal): Constify.
826
8c2f95f4
TT
8272017-09-27 Tom Tromey <tom@tromey.com>
828
829 * record.c (cmd_record_delete, cmd_record_stop, cmd_record_save)
830 (cmd_record_goto_begin, cmd_record_goto_end, get_insn_number)
831 (get_context_size, no_chunk, get_insn_history_modifiers)
832 (cmd_record_insn_history, get_call_history_modifiers)
833 (cmd_record_call_history): Constify.
834
a0d65762
TT
8352017-09-27 Tom Tromey <tom@tromey.com>
836
837 * source.c (show_substitute_path_command)
838 (unset_substitute_path_command, set_substitute_path_command):
839 Constify.
840
58971144
TT
8412017-09-27 Tom Tromey <tom@tromey.com>
842
843 * typeprint.c (maintenance_print_type): Constify.
844 * maint.c (maintenance_dump_me, maintenance_demangle)
845 (maintenance_time_display, maintenance_info_sections)
846 (maintenance_print_statistics, maintenance_deprecate)
847 (maintenance_undeprecate): Constify.
848 (maintenance_do_deprecate): Constify. Use std::string.
849 (maintenance_selftest): Constify.
850 * gdbtypes.h (maintenance_print_type): Constify.
851
c482f52c
TT
8522017-09-27 Tom Tromey <tom@tromey.com>
853
854 * hppa-tdep.c (unwind_command): Constify.
855
e100df1a
TT
8562017-09-27 Tom Tromey <tom@tromey.com>
857
858 * target-descriptions.c (unset_tdesc_filename_cmd)
859 (maint_print_c_tdesc_cmd, maintenance_check_xml_descriptions):
860 Constify.
861
31d56ade
TT
8622017-09-27 Tom Tromey <tom@tromey.com>
863
864 * dummy-frame.c (maintenance_print_dummy_frames): Constify.
865
b961da0b
TT
8662017-09-27 Tom Tromey <tom@tromey.com>
867
868 * tui/tui.c (tui_enable_command, tui_disable_command): Constify.
869
e2d8ae16
TT
8702017-09-27 Tom Tromey <tom@tromey.com>
871
872 * tui/tui-regs.c (tui_reg_command): Constify.
873
863779b0
TT
8742017-09-27 Tom Tromey <tom@tromey.com>
875
876 * skip.c (skip_file_command, skip_function_command)
877 (skip_enable_command, skip_disable_command, skip_delete_command):
878 Constify.
879
cdb34d4a
TT
8802017-09-27 Tom Tromey <tom@tromey.com>
881
882 * record-btrace.c (cmd_record_btrace_bts_start)
883 (cmd_record_btrace_pt_start): Constify.
884
e99c83e7
TT
8852017-09-27 Tom Tromey <tom@tromey.com>
886
887 * symmisc.c (maintenance_print_symbols)
888 (maintenance_print_msymbols, maintenance_print_objfiles)
889 (maintenance_info_symtabs, maintenance_check_symtabs)
890 (maintenance_expand_symtabs, maintenance_info_line_tables):
891 Constify.
892
32faf971
TT
8932017-09-27 Tom Tromey <tom@tromey.com>
894
895 * top.c (new_ui_command): Constify.
896
2cf311eb
TT
8972017-09-27 Tom Tromey <tom@tromey.com>
898
899 * symfile.c (add_symbol_file_command)
900 (remove_symbol_file_command, list_overlays_command)
901 (map_overlay_command, unmap_overlay_command)
902 (overlay_auto_command, overlay_manual_command)
903 (overlay_off_command, overlay_load_command): Constify.
904
e6738699
TT
9052017-09-27 Tom Tromey <tom@tromey.com>
906
907 * spu-tdep.c (info_spu_event_command, info_spu_signal_command)
908 (info_spu_mailbox_command, info_spu_dma_command)
909 (info_spu_proxydma_command): Constify.
910
aa360cd5
TT
9112017-09-27 Tom Tromey <tom@tromey.com>
912
913 * cli/cli-logging.c (set_logging_on, set_logging_off): Constify.
914
898241a5
TT
9152017-09-27 Tom Tromey <tom@tromey.com>
916
917 * cli/cli-script.c (user_defined_command): Constify.
918
2d0ac106
TT
9192017-09-27 Tom Tromey <tom@tromey.com>
920
921 * cli/cli-dump.c (dump_memory_command, dump_value_command)
922 (dump_srec_memory, dump_srec_value, dump_ihex_memory)
923 (dump_ihex_value, dump_verilog_memory, dump_verilog_value)
924 (dump_tekhex_memory, dump_tekhex_value, dump_binary_memory)
925 (dump_binary_value, append_binary_memory, append_binary_value):
926 Constify.
927 (struct dump_context) <func>: Constify.
928 (add_dump_command): Update.
929
dede02ce
TT
9302017-09-27 Tom Tromey <tom@tromey.com>
931
932 * cli/cli-cmds.c (show_version, show_configuration)
933 (source_command, show_user): Constify.
934
d3cb6b99
TT
9352017-09-27 Tom Tromey <tom@tromey.com>
936
937 * target.c (maintenance_print_target_stack): Constify.
938
1970a12f
TT
9392017-09-27 Tom Tromey <tom@tromey.com>
940
941 * interps.c (interpreter_exec_cmd): Constify.
942
41243651
TT
9432017-09-27 Tom Tromey <tom@tromey.com>
944
945 * record-full.c (cmd_record_full_restore): Constify.
946
4465d9db
TT
9472017-09-27 Tom Tromey <tom@tromey.com>
948
949 * memattr.c (enable_mem_command, disable_mem_command)
950 (delete_mem_command): Constify.
951
ad25e423
TT
9522017-09-27 Tom Tromey <tom@tromey.com>
953
954 * value.c (show_convenience): Constify.
955
d64097b1
TT
9562017-09-27 Tom Tromey <tom@tromey.com>
957
958 * gdbcore.h (core_file_command): Update.
959 * corefile.c (core_file_command): Constify.
960
4d4589ef
TT
9612017-09-27 Tom Tromey <tom@tromey.com>
962
963 * user-regs.c (maintenance_print_user_registers): Constify.
964
32a7bf17
TT
9652017-09-27 Tom Tromey <tom@tromey.com>
966
967 * cp-namespace.c (maintenance_cplus_namespace): Constify.
968
4a475551
TT
9692017-09-27 Tom Tromey <tom@tromey.com>
970
971 * cp-support.c (first_component_command): Constify.
972
990b9f9f
TT
9732017-09-27 Tom Tromey <tom@tromey.com>
974
975 * psymtab.c (maintenance_print_psymbols)
976 (maintenance_info_psymtabs, maintenance_check_psymtabs):
977 Constify.
978
c281872e
TT
9792017-09-27 Tom Tromey <tom@tromey.com>
980
981 * windows-tdep.c (display_tib): Constify.
982
5b64bf74
TT
9832017-09-27 Tom Tromey <tom@tromey.com>
984
985 * linux-fork.c (delete_checkpoint_command)
986 (detach_checkpoint_command): Constify.
987
4ada038f
TT
9882017-09-27 Tom Tromey <tom@tromey.com>
989
990 * cp-abi.c (set_cp_abi_cmd, show_cp_abi_cmd): Constify.
991
57f5a81b
TT
9922017-09-27 Tom Tromey <tom@tromey.com>
993
994 * arc-tdep.c (dump_arc_instruction_command): Constify.
995
b0a8e6c4
TT
9962017-09-27 Tom Tromey <tom@tromey.com>
997
998 * valprint.c (set_radix, show_radix): Constify.
999
8d97dc1c
TT
10002017-09-27 Tom Tromey <tom@tromey.com>
1001
1002 * dtrace-probe.c (info_probes_dtrace_command): Constify.
1003
eb7c454d
TT
10042017-09-27 Tom Tromey <tom@tromey.com>
1005
1006 * command.h (not_just_help_class_command): Update.
1007 * cli/cli-decode.h (not_just_help_class_command): Update.
1008 * cli/cli-decode.c (not_just_help_class_command): Constify.
1009
e4e33335
TT
10102017-09-27 Tom Tromey <tom@tromey.com>
1011
1012 * gdb_bfd.c (maintenance_info_bfds): Constify.
1013
0450cc4c
TT
10142017-09-27 Tom Tromey <tom@tromey.com>
1015
1016 * cli/cli-decode.c (add_cmd, set_cmd_cfunc): New function
1017 overloads.
1018 (do_add_cmd): Rename from add_cmd. Don't call set_cmd_cfunc.
1019 (do_const_cfunc): New function.
1020 (cmd_cfunc_eq): New overload.
1021 (cli_user_command_p): Check do_const_cfunc.
1022 * cli/cli-decode.h (struct cmd_list_element) <function>: New field
1023 const_cfunc.
1024 * command.h (add_cmd): Add const overload and no-function
1025 overload.
1026 (set_cmd_cfunc): Add const overload.
1027 (cmd_const_cfunc_ftype): Declare.
1028 (cmd_cfunc_eq): Add const overload.
1029 * breakpoint.c, cli-cmds.c, cli-dump.c, guile/scm-cmd.c,
1030 python/py-cmd.c, target.c, tracepoint.c: Use no-function add_cmd
1031 overload.
1032
a9bbfbd8
TT
10332017-09-27 Tom Tromey <tom@tromey.com>
1034
1035 * macroexp.c (get_next_token_for_substitution): New function.
1036 (substitute_args): Call it. Check for __VA_OPT__.
1037
5230b05a
WT
10382017-09-26 Walfred Tedeschi <walfred.tedeschi@intel.com>
1039 Pedro Alves <palves@redhat.com>
1040
1041 * dwarf2read.c (dwarf2_cu): Remove field producer_is_icc and add
1042 producer_is_icc_lt_14.
1043 (producer_is_icc_lt_14): New function.
1044 (check_producer): Add code for checking version of ICC.
1045 (producer_is_icc): Move to producer.c.
1046 (read_structure_type): Restrict ICC workaround to ICC<14.
1047 * producer.c: Include selftest.h.
1048 (producer_is_icc, producer_parsing_tests, _initialize_producer):
1049 New functions.
1050 * producer.h (producer_is_icc): New declaration.
1051
b32b108a
WT
10522017-09-26 Walfred Tedeschi <walfred.tedeschi@intel.com>
1053
1054 * Makefile.in (SFILES): Add producer.c.
1055 (COMMON_OBS): Add producer.o
1056 * amd64-tdep.c (producer.h): Add new include.
1057 * dwarf2read.c (producer.h): Add new include.
1058 * producer.c: New file.
1059 * producer.h: New file.
1060 * utils.c (producer_is_gcc, producer_is_gcc_ge_4): Move to
1061 producer.c.
1062 * utils.h (producer_is_gcc, producer_is_gcc_ge_4): Move to
1063 producer.h.
1064
5007d765
MK
10652017-09-26 Matthias Klose <doko@ubuntu.com>
1066
1067 * configure.ac: Search ncursesw before ncurses.
1068 Check ncursesw/ncurses.h before ncurses/ncurses.h.
1069 * gdb_curses.h: Include <ncursesw/ncurses.h>
1070 * config.in, configure: Regenerate.
1071
281c4447
RO
10722017-09-26 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1073
1074 PR gdb/22185
1075 * configure.host <*-*-solaris2.[01], *-*-solaris2.[2-9]*>: Mark as
1076 obsolete.
1077 Use gdb_host sol2 for i[34567]86-*-solaris2*, x86_64-*-solaris2*.
1078 Remove i386sol2 support.
1079 * configure.nat <i386sol2>: Remove.
1080 <sol2-64>: Fold into ...
1081 <sol2>: ... this.
1082 Move common settings to default section.
1083 Add sol-thread.o.
1084 * configure.tgt <i[34567]86-*-solaris2.1[0-9]*,
1085 x86_64-*-solaris2.1[0-9]*>: Rename to ...
1086 <i[34567]86-*-solaris2*, x86_64-*-solaris2*>: ... this.
1087 <i[34567]86-*-solaris*>: Remove.
1088 <sparc-*-solaris2.[0-6], sparc-*-solaris2.[0-6].*>: Remove.
1089
1090 * configure.ac: Remove wctype in libw check.
1091 (_MSE_INT_H): Don't define on Solaris 7-9.
1092 <solaris*>: Remove libthread_db.so.1 check.
1093 * configure: Regenerate.
1094 * config.in: Regenerate.
1095
1096 * proc-service.c: Remove PROC_SERVICE_IS_OLD handling.
1097 (gdb_ps_prochandle_t, gdb_ps_read_buf_t, gdb_ps_write_buf_t)
1098 (gdb_ps_size_t): Remove.
1099 Use base types in users.
1100 * sol-thread.c: Likewise, also for gdb_ps_addr_t.
1101
1102 * NEWS (Changes since GDB 8.0): Document Solaris 2.0-9 removal.
1103
39b06c20
RO
11042017-09-26 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1105
1106 PR build/22206
1107 * sparc64-tdep.c (adi_tag_fd): Print pid as long.
1108 (adi_is_addr_mapped): Likewise.
1109 (PSR_ICC): Don't redefine.
1110 (PSR_IMPL): Likewise.
1111
6c3e20f1
TT
11122017-09-25 Tom Tromey <tom@tromey.com>
1113
1114 * regcache.c (regcache::dump): Use string_printf.
1115
b292235f
TT
11162017-09-25 Tom Tromey <tom@tromey.com>
1117
1118 * regcache.c (class regcache_invalidator): New.
1119 (struct register_to_invalidate): Remove.
1120 (make_cleanup_regcache_invalidate): Remove.
1121 (regcache::raw_write): Use regcache_invalidator.
1122
9ac86b52
TT
11232017-09-25 Tom Tromey <tom@tromey.com>
1124
1125 * spu-tdep.c (spu2ppu_sniffer): Update.
1126 * regcache.h (make_cleanup_regcache_xfree): Don't declare.
1127 * regcache.c (do_regcache_xfree, make_cleanup_regcache_xfree):
1128 Remove.
1129 * ppc-linux-tdep.c (ppu2spu_sniffer): Update.
1130 * mi/mi-main.c (mi_cmd_data_list_changed_registers): Update.
1131 * frame.h (frame_save_as_regcache): Return std::unique_ptr.
1132 * frame.c (frame_save_as_regcache): Return std::unique_ptr.
1133 (frame_pop): Update.
1134
c0e383c6
TT
11352017-09-25 Tom Tromey <tom@tromey.com>
1136
1137 * spu-tdep.c (spu2ppu_dealloc_cache): Use delete.
1138 * regcache.h (regcache_xfree): Don't declare.
1139 * regcache.c (regcache_xfree): Remove.
1140 (do_regcache_xfree): Use delete.
1141 * ppc-linux-tdep.c (ppu2spu_dealloc_cache): Use delete.
1142 * linux-fork.c (free_fork): Use delete.
1143 (fork_save_infrun_state): Likewise.
1144 * jit.c (jit_dealloc_cache): Use delete.
1145 * infrun.c (discard_infcall_suspend_state): Use delete.
1146
791199cc
TT
11472017-09-25 Tom Tromey <tom@tromey.com>
1148
1149 * regcache.h (regcache_xmalloc): Don't declare.
1150 (regcache_raw_set_cached_value): Update comment.
1151 * regcache.c (regcache_xmalloc): Remove.
1152 * ppc-linux-tdep.c (ppu2spu_sniffer): Use new.
1153 * jit.c (jit_frame_sniffer): Use new.
1154 * frame.c (frame_save_as_regcache): Use new.
1155
289e23aa
AA
11562017-09-25 Andreas Arnez <arnez@linux.vnet.ibm.com>
1157
1158 * NEWS: Advertise support for guarded-storage registers on IBM z.
1159
1b63490c
AA
11602017-09-25 Andreas Arnez <arnez@linux.vnet.ibm.com>
1161
1162 * s390-linux-nat.c (have_regset_gs): New static variable.
1163 (s390_linux_fetch_inferior_registers): Handle guarded-storage
1164 control block and guarded-storage broadcast control regsets.
1165 (s390_read_description): Detect whether the target has
1166 guarded-storage support, return appropriate tdesc.
1167 * s390-linux-tdep.c (features/s390-gs-linux64.c): New include.
1168 (features/s390x-gs-linux64.c): Likewise.
1169 (struct gdbarch_tdep) <have_gs>: New field.
1170 (s390_regmap_gs, s390_regmap_gsbc, s390_gs_regset)
1171 (s390_gsbc_regset): New variables.
1172 (s390_iterate_over_regset_sections): Iterate over s390_gs_regset
1173 and s390_gsbc_regset, if applicable.
1174 (s390_core_read_description): Check whether core file was from a
1175 target with guarded-storage support; include appropriate regsets.
1176 (s390_gdbarch_init): Add registers for guarded-storage support.
1177 (_initialize_s390_tdep): Initialize new target descriptions that
1178 include registers for guarded-storage support.
1179 * s390-linux-tdep.h (HWCAP_S390_GS, S390_GSD_REGNUM)
1180 (S390_GSSM_REGNUM, S390_GSEPLA_REGNUM)
1181 (S390_BC_GSD_REGNUM, S390_BC_GSSM_REGNUM): New defines.
1182 (S390_NUM_REGS): Adjust macro definition.
1183 (s390_gs_regset, s390_gsbc_regset, tdesc_s390_gs_linux64)
1184 (tdesc_s390x_gs_linux64): New declarations.
1185
96235dc1
AA
11862017-09-25 Andreas Arnez <arnez@linux.vnet.ibm.com>
1187
1188 * features/s390-gs-linux64.xml: New file.
1189 * features/s390-gs.xml: New file.
1190 * features/s390-gsbc.xml: New file.
1191 * features/s390x-gs-linux64.xml: New file.
1192 * features/Makefile (WHICH): Add s390-gs-linux64 and
1193 s390x-gs-linux64.
1194 (s390-gs-linux64-expedite, s390x-gs-linux64-expedite): New macros.
1195 (XMLTOC): Add s390-gs-linux64.xml and s390x-linux64.xml.
1196 * features/s390-gs-linux64.c: New generated file.
1197 * features/s390x-gs-linux64.c: New file.
1198 * regformats/s390-gs-linux64.dat: New file.
1199 * regformats/s390x-gs-linux64.dat: New file.
1200
b4a7c699
TT
12012017-09-23 Tom Tromey <tom@tromey.com>
1202
1203 * defs.h (make_cleanup_override_quit_handler): Don't declare.
1204
c2f97536
TT
12052017-09-22 Tom Tromey <tom@tromey.com>
1206
1207 * utils.c (class scoped_input_handler) <m_quit_handler>: Change
1208 type to scoped_restore_tmpl.
1209 <scoped_input_handler>: Initialize m_quit_handler directly.
1210
43573013
SDJ
12112017-09-22 Sergio Durigan Junior <sergiodj@redhat.com>
1212
1213 * cli/cli-cmds.c (pwd_command): Use "getcwd (NULL, 0)".
1214 (cd_command): Likewise. Free "current_directory" before
1215 assigning to it.
1216 * main.c (captured_main_1): Use "getcwd (NULL, 0)".
1217 * mi/mi-cmd-env.c (mi_cmd_env_pwd): Likewise.
1218 * top.c (gdb_dirbuf): Remove global declaration.
1219 * top.h (gdb_dirbuf): Likewise.
1220
6ec2e0f5
SDJ
12212017-09-22 Sergio Durigan Junior <sergiodj@redhat.com>
1222
1223 * gnulib/aclocal.m4: Regenerate.
1224 * gnulib/config.in: Regenerate.
1225 * gnulib/configure: Regenerate.
1226 * gnulib/import/Makefile.am: Regenerate.
1227 * gnulib/import/Makefile.in: Regenerate.
1228 * gnulib/import/assure.h: New file.
1229 * gnulib/import/at-func.c: Likewise
1230 * gnulib/import/chdir-long.c: New file.
1231 * gnulib/import/chdir-long.h: New file.
1232 * gnulib/import/cloexec.c: New file.
1233 * gnulib/import/cloexec.h: New file.
1234 * gnulib/import/close.c: New file.
1235 * gnulib/import/closedir.c: New file.
1236 * gnulib/import/dirent-private.h: New file.
1237 * gnulib/import/dup-safer.c: New file.
1238 * gnulib/import/dup.c: New file.
1239 * gnulib/import/dup2.c: New file.
1240 * gnulib/import/error.c: New file.
1241 * gnulib/import/error.h: New file.
1242 * gnulib/import/exitfail.c: New file.
1243 * gnulib/import/exitfail.h: New file.
1244 * gnulib/import/fchdir.c: New file.
1245 * gnulib/import/fcntl.c: New file.
1246 * gnulib/import/fcntl.in.h: New file.
1247 * gnulib/import/fd-hook.c: New file.
1248 * gnulib/import/fd-hook.h: New file.
1249 * gnulib/import/fd-safer.c: New file.
1250 * gnulib/import/fdopendir.c: New file.
1251 * gnulib/import/filename.h: New file.
1252 * gnulib/import/filenamecat-lgpl.c: New file.
1253 * gnulib/import/filenamecat.h: New file.
1254 * gnulib/import/fstat.c: New file.
1255 * gnulib/import/fstatat.c: New file.
1256 * gnulib/import/getcwd-lgpl.c: New file.
1257 * gnulib/import/getcwd.c: New file.
1258 * gnulib/import/getdtablesize.c: New file.
1259 * gnulib/import/getlogin_r.c: New file.
1260 * gnulib/import/getprogname.c: New file.
1261 * gnulib/import/getprogname.h: New file.
1262 * gnulib/import/gettext.h: New file.
1263 * gnulib/import/glob-libc.h: New file.
1264 * gnulib/import/glob.c: New file.
1265 * gnulib/import/glob.in.h: New file.
1266 * gnulib/import/intprops.h: New file.
1267 * gnulib/import/m4/chdir-long.m4: New file.
1268 * gnulib/import/m4/close.m4: New file.
1269 * gnulib/import/m4/closedir.m4: New file.
1270 * gnulib/import/m4/d-ino.m4: New file.
1271 * gnulib/import/m4/d-type.m4: New file.
1272 * gnulib/import/m4/dup.m4: New file.
1273 * gnulib/import/m4/dup2.m4: New file.
1274 * gnulib/import/m4/error.m4: New file.
1275 * gnulib/import/m4/fchdir.m4: New file.
1276 * gnulib/import/m4/fcntl.m4: New file.
1277 * gnulib/import/m4/fcntl_h.m4: New file.
1278 * gnulib/import/m4/fdopendir.m4: New file.
1279 * gnulib/import/m4/filenamecat.m4: New file.
1280 * gnulib/import/m4/fstat.m4: New file.
1281 * gnulib/import/m4/fstatat.m4: New file.
1282 * gnulib/import/m4/getcwd-abort-bug.m4: New file.
1283 * gnulib/import/m4/getcwd-path-max.m4: New file.
1284 * gnulib/import/m4/getcwd.m4: New file.
1285 * gnulib/import/m4/getdtablesize.m4: New file.
1286 * gnulib/import/m4/getlogin_r.m4: New file.
1287 * gnulib/import/m4/getprogname.m4: New file.
1288 * gnulib/import/m4/glob.m4: New file.
1289 * gnulib/import/m4/gnulib-cache.m4: Regenerate.
1290 * gnulib/import/m4/gnulib-comp.m4: Regenerate.
1291 * gnulib/import/m4/mempcpy.m4: New file.
1292 * gnulib/import/m4/memrchr.m4: New file.
1293 * gnulib/import/m4/mode_t.m4: New file.
1294 * gnulib/import/m4/msvc-inval.m4: New file.
1295 * gnulib/import/m4/msvc-nothrow.m4: New file.
1296 * gnulib/import/m4/open.m4: New file.
1297 * gnulib/import/m4/openat.m4: New file.
1298 * gnulib/import/m4/opendir.m4: New file.
1299 * gnulib/import/m4/readdir.m4: New file.
1300 * gnulib/import/m4/realloc.m4: New file.
1301 * gnulib/import/m4/rewinddir.m4: New file.
1302 * gnulib/import/m4/save-cwd.m4: New file.
1303 * gnulib/import/m4/strdup.m4: New file.
1304 * gnulib/import/m4/strerror.m4: New file.
1305 * gnulib/import/m4/unistd-safer.m4: New file.
1306 * gnulib/import/mempcpy.c: New file.
1307 * gnulib/import/memrchr.c: New file.
1308 * gnulib/import/msvc-inval.c: New file.
1309 * gnulib/import/msvc-inval.h: New file.
1310 * gnulib/import/msvc-nothrow.c: New file.
1311 * gnulib/import/msvc-nothrow.h: New file.
1312 * gnulib/import/open.c: New file.
1313 * gnulib/import/openat-die.c: New file.
1314 * gnulib/import/openat-priv.h: New file.
1315 * gnulib/import/openat-proc.c: New file.
1316 * gnulib/import/openat.c: New file.
1317 * gnulib/import/openat.h: New file.
1318 * gnulib/import/opendir.c: New file.
1319 * gnulib/import/pipe-safer.c: New file.
1320 * gnulib/import/readdir.c: New file.
1321 * gnulib/import/realloc.c: New file.
1322 * gnulib/import/rewinddir.c: New file.
1323 * gnulib/import/save-cwd.c: New file.
1324 * gnulib/import/save-cwd.h: New file.
1325 * gnulib/import/strdup.c: New file.
1326 * gnulib/import/strerror-override.c: New file.
1327 * gnulib/import/strerror-override.h: New file.
1328 * gnulib/import/strerror.c: New file.
1329 * gnulib/import/unistd--.h: New file.
1330 * gnulib/import/unistd-safer.h: New file.
1331 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add
1332 "getcwd" and "glob".
1333 * ser-tcp.c: Undefine "close" before redefining it.
1334
432ae719
SM
13352017-09-21 Simon Marchi <simon.marchi@ericsson.com>
1336
1337 * guile/scm-value.c (gdbscm_value_address): Initialize address,
1338 get rid of res_val.
1339
4fa7574e
RO
13402017-09-22 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1341
1342 * configure.nat <i386sol2,i386>: Add fork-inferior.o to NATDEPFILES.
1343 <sol2,sparc>: Likewise.
1344 <sol2-64,i386>: Likewise.
1345
1346 * warning.m4 (AM_GDB_WARNINGS): Disable -Wunknown-pragmas,
1347 -Wdeprecated-declarations on *-*-solaris*.
1348 * configure: Regenerate.
1349
1350 * procfs.c: Include "nat/inferior.h".
1351 (procfs_info_proc): Fix typo.
1352
f6327dcb
KB
13532017-09-21 Kevin Buettner <kevinb@redhat.com>
1354
1355 * remote.c (vector): Include.
1356 (struct private_thread_info): Add field, thread_handle.
1357 (free_private_thread_info): Deallocate storage associated with
1358 thread handle.
1359 (get_private_info_thread): Initialize `thread_handle' field.
1360 (struct thread_item): Add field, thread_handle.
1361 (clear_threads_listing_context): Deallocate storage associated
1362 with thread handle.
1363 (start_thread): Add support for "handle" attribute.
1364 (thread_attributes): Add "handle".
1365 (remote_get_threads_with_qthreadinfo): Initialize thread_handle
1366 field.
1367 (remote_update_thread_list): Update thread_handle.
1368 (remote_thread_handle_to_thread_info): New function.
1369 (init_remote_ops): Initialize to_thread_handle_to_thread_info.
1370
fbbe5337
KB
13712017-09-21 Kevin Buettner <kevinb@redhat.com>
1372
1373 * python/py-inferior.c (gdbpy_thread_from_thread_handle): New
1374 function.
1375 (inferior_object_methods): Add gdbpy_thread_from_thread_handle.
1376 * python/python-internal.h (thread_object_type): Declare.
1377
e04ee09e
KB
13782017-09-21 Kevin Buettner <kevinb@redhat.com>
1379
1380 * target.h (struct target_ops): Add to_thread_handle_to_thread_info.
1381 (target_thread_handle_to_thread_info): Declare.
1382 * target.c (target_thread_handle_to_thread_info): New function.
1383 * target-delegates.c: Regenerate.
1384 * gdbthread.h (find_thread_by_handle): Declare.
1385 * thread.c (find_thread_by_handle): New function.
1386 * linux-thread-db.c (thread_db_thread_handle_to_thread_info): New
1387 function.
1388 (init_thread_db_ops): Register thread_db_thread_handle_to_thread_info.
1389
1e5b66ed
SM
13902017-09-21 Simon Marchi <simon.marchi@ericsson.com>
1391
1392 * nat/linux-waitpid.c (linux_debug): Add ATTRIBUTE_PRINTF.
1393
ebe48ba0
SM
13942017-09-21 Simon Marchi <simon.marchi@ericsson.com>
1395
1396 * microblaze-tdep.c (microblaze_debug): Add ATTRIBUTE_PRINTF.
1397
0a0bf5dc
YQ
13982017-09-21 Yao Qi <yao.qi@linaro.org>
1399
1400 * configure.tgt (aarch64*-*-freebsd*): Add fbsd-tdep.o solib-svr4.o
1401 to gdb_target_obs.
1402
d1b0a7bf
TT
14032017-09-20 Tom Tromey <tom@tromey.com>
1404
1405 * breakpoint.c (struct counted_command_line): Remove.
1406 (breakpoint_commands): Update.
1407 (alloc_counted_command_line, incref_counted_command_line)
1408 (decref_counted_command_line, do_cleanup_counted_command_line)
1409 (make_cleanup_decref_counted_command_line): Remove.
1410 (breakpoint_set_commands, commands_command_1, ~bpstats, bpstats)
1411 (bpstat_clear_actions, bpstat_do_actions_1, watchpoint_check)
1412 (bpstat_stop_status, print_one_breakpoint_location, ~breakpoint)
1413 (save_breakpoints): Update.
1414 * breakpoint.h (counted_command_line): Now a typedef to
1415 shared_ptr.
1416 (struct breakpoint) <commands>: Now a counted_command_line.
1417 (struct bpstats) <command>: Likewise.
1418
48649e1b
TT
14192017-09-20 Tom Tromey <tom@tromey.com>
1420
1421 * breakpoint.c (struct commands_info, do_map_commands_command):
1422 Remove.
1423 (commands_command_1): Update.
1424 (iterate_over_related_breakpoints): Take a function_view.
1425 (do_delete_breakpoint, do_map_delete_breakpoint): Remove.
1426 (delete_command): Update.
1427 (map_breakpoint_numbers): Take a function_view.
1428 (do_disable_breakpoint, do_map_delete_breakpoint): Remove.
1429 (disable_command): Update.
1430 (do_enable_breakpoint, do_map_enable_breakpoint): Remove.
1431 (enable_command): Update.
1432 (struct disp_data, do_enable_breakpoint_disp)
1433 (do_map_enable_once_breakpoint, do_map_enable_count_breakpoint)
1434 (do_map_enable_delete_breakpoint): Remove.
1435 (enable_once_command, enable_count_command, enable_delete_command)
1436 (delete_trace_variable_command): Update.
1437
04afa70c
TT
14382017-09-20 Tom Tromey <tom@tromey.com>
1439
1440 * breakpoint.c (~bpstats): Rename from bpstat_free. Update.
1441 (bpstat_clear): Use delete.
1442 (bpstats): New constructors.
1443 (bpstat_copy, bpstat_stop_status): Use new.
1444 (dprintf_after_condition_true): Update.
1445 * breakpoint.h (bpstats::bpstats): Add constructors.
1446 (bpstats::~bpstats): Add destructor.
1447
c83833f4
PA
14482017-09-20 Pedro Alves <palves@redhat.com>
1449
1450 * eval.c (make_params): Delete, refactored as ...
1451 (class fake_method): ... this new type's ctor.
1452 (fake_method::~fake_method): New.
1453 (evaluate_subexp_standard): Use 'fake_method'.
1454
223ffa71
TT
14552017-09-20 Tom Tromey <tom@tromey.com>
1456
1457 * windows-nat.c (get_windows_debug_event, windows_wait)
1458 (do_initial_windows_stuff, windows_attach): Update.
1459 * utils.c (vwarning, internal_vproblem): Update.
1460 (ui_unregister_input_event_handler_cleanup)
1461 (prepare_to_handle_input): Remove.
1462 (class scoped_input_handler): New.
1463 (defaulted_query, prompt_for_continue): Update.
1464 * tui/tui-hooks.c (tui_refresh_frame_and_register_information):
1465 Update.
1466 * top.c (undo_terminal_modifications_before_exit): Update.
1467 * target/target.h (target_terminal_init, target_terminal_inferior)
1468 (target_terminal_ours): Don't declare.
1469 (class target_terminal): New.
1470 * target.h (target_terminal_is_inferior, target_terminal_is_ours)
1471 (target_terminal_ours_for_output)
1472 (make_cleanup_restore_target_terminal): Don't declare.
1473 (target_terminal_info): Remove.
1474 * target.c (enum terminal_state, terminal_state): Remove.
1475 (target_terminal::terminal_state): Define.
1476 (target_terminal::init): Rename from target_terminal_init.
1477 (target_terminal::inferior): Rename from
1478 target_terminal_inferior.
1479 (target_terminal::ours): Rename from target_terminal_ours.
1480 (target_terminal::ours_for_output): Rename from
1481 target_terminal_ours_for_output.
1482 (target_terminal::info): New method.
1483 (cleanup_restore_target_terminal)
1484 (make_cleanup_restore_target_terminal): Remove.
1485 * solib.c (handle_solib_event): Update.
1486 * remote.c (remote_serial_quit_handler): Update.
1487 (remote_terminal_inferior, remote_wait_as): Update.
1488 * record-full.c (record_full_wait_1): Update.
1489 * nto-procfs.c (procfs_create_inferior): Update.
1490 * nat/fork-inferior.c (startup_inferior): Update.
1491 * mi/mi-interp.c (mi_new_thread, mi_thread_exit)
1492 (mi_record_changed, mi_inferior_added, mi_inferior_appeared)
1493 (mi_inferior_exit, mi_inferior_removed, mi_traceframe_changed)
1494 (mi_tsv_created, mi_tsv_deleted, mi_tsv_modified)
1495 (mi_breakpoint_created, mi_breakpoint_deleted)
1496 (mi_breakpoint_modified, mi_on_resume, mi_solib_loaded)
1497 (mi_solib_unloaded, mi_command_param_changed, mi_memory_changed)
1498 (mi_user_selected_context_changed, report_initial_inferior):
1499 Update.
1500 * linux-nat.c (linux_nat_attach, linux_nat_terminal_ours)
1501 (linux_nat_terminal_inferior): Update.
1502 * infrun.c (follow_fork_inferior)
1503 (handle_vfork_child_exec_or_exit, do_target_resume)
1504 (check_curr_ui_sync_execution_done, handle_inferior_event_1)
1505 (handle_signal_stop, maybe_remove_breakpoints, normal_stop):
1506 Update.
1507 * inflow.c (child_terminal_init, info_terminal_command): Update.
1508 * infcmd.c (post_create_inferior, continue_1, prepare_one_step)
1509 (attach_command): Update.
1510 * infcall.c (call_thread_fsm_should_stop): Update.
1511 * gnu-nat.c (gnu_attach): Update.
1512 * extension.c (struct active_ext_lang_state)
1513 (restore_active_ext_lang): Update.
1514 * exceptions.c (print_flush): Update.
1515 * event-top.c (async_enable_stdin, default_quit_handler): Update.
1516 (struct quit_handler_cleanup_data, restore_quit_handler)
1517 (restore_quit_handler_dtor, make_cleanup_override_quit_handler):
1518 Remove.
1519 * cp-support.c (gdb_demangle): Update.
1520 * breakpoint.c (update_inserted_breakpoint_locations)
1521 (insert_breakpoint_locations, handle_jit_event)
1522 (disable_breakpoints_in_unloaded_shlib): Update.
1523 * annotate.c (annotate_breakpoints_invalid)
1524 (annotate_frames_invalid): Update.
1525
013af3fc
TT
15262017-09-20 Tom Tromey <tom@tromey.com>
1527
1528 * main.c (catch_command_errors): Rename from
1529 catch_command_errors_const.
1530 (captured_main_1): Update.
1531
06871ae8
PA
15322017-09-20 Pedro Alves <palves@redhat.com>
1533
1534 * cli/cli-cmds.c (list_command): Use print_sal_location.
1535 (print_sal_location): New function.
1536 (ambiguous_line_spec): Use print_sal_location.
1537 * linespec.c (symbol_to_sal): Record the symbol in the sal.
1538 * symtab.c (find_function_start_sal): Likewise.
1539 * symtab.h (symtab_and_line::symbol): New field.
1540
e5f25bc5
PA
15412017-09-20 Pedro Alves <palves@redhat.com>
1542
1543 * linespec.c (minsym_found): Handle non-text minsyms.
1544 (symbol_to_sal): Record a sal.pc for non-block, non-label symbols.
1545
1b7fa39e
WT
15462017-09-20 Walfred Tedeschi <walfred.tedeschi@intel.com>
1547
1548 * features/Makefile (i386-avx-mpx-avx512-pku.dat): Add missing
1549 backslash.
1550
37dd0825
WT
15512017-09-20 Walfred Tedeschi <walfred.tedeschi@intel.com>
1552
1553 * gdb.arch/i386-avx512.c (move_zmm_data_to_reg): Use
1554 vmovups instead vmovaps.
1555 (move_zmm_data_to_memory): Use vmovups instead vmovaps.
1556
4e5a4f58
JB
15572017-09-19 John Baldwin <jhb@FreeBSD.org>
1558
1559 * NEWS (Changes since GDB 8.0): Add starti.
1560 * infcmd.c (enum run_break): New.
1561 (run_command_1): Queue pending event for RUN_STOP_AT_FIRST_INSN
1562 case.
1563 (run_command): Use enum run_how.
1564 (start_command): Likewise.
1565 (starti_command): New function.
1566 (RUN_ARGS_HELP): New macro.
1567 (_initialize_infcmd): Use RUN_ARGS_HELP for run and start
1568 commands. Add starti command.
1569
aa70c9f1
YQ
15702017-09-19 Yao Qi <yao.qi@linaro.org>
1571
1572 * Makefile.in (monitor.o): Remove the rule.
1573
d6541620
YQ
15742017-09-19 Yao Qi <yao.qi@linaro.org>
1575
1576 * annotate.h (struct annotate_arg_emitter): Use
1577 DISABLE_COPY_AND_ASSIGN.
1578 * common/refcounted-object.h (refcounted_object): Likewise.
1579 * completer.h (struct completion_result): Likewise.
1580 * dwarf2read.c (struct dwarf2_per_objfile): Likewise.
1581 * filename-seen-cache.h (filename_seen_cache): Likewise.
1582 * gdbcore.h (thread_section_name): Likewise.
1583 * gdb_regex.h (compiled_regex): Likewise.
1584 * gdbthread.h (scoped_restore_current_thread): Likewise.
1585 * inferior.h (scoped_restore_current_inferior): Likewise.
1586 * jit.c (jit_reader): Likewise.
1587 * linespec.h (struct linespec_result): Likewise.
1588 * mi/mi-parse.h (struct mi_parse): Likewise.
1589 * nat/fork-inferior.c (execv_argv): Likewise.
1590 * progspace.h (scoped_restore_current_program_space): Likewise.
1591 * python/python-internal.h (class gdbpy_enter): Likewise.
1592 * regcache.h (regcache): Likewise.
1593 * target-descriptions.c (struct tdesc_reg): Likewise.
1594 (struct tdesc_type): Likewise.
1595 (struct tdesc_feature): Likewise.
1596 * ui-out.h (ui_out_emit_type): Likewise.
1597
0615127c
SM
15982017-09-18 Simon Marchi <simon.marchi@ericsson.com>
1599
1600 * dwarf2expr.c (dwarf_expr_context::execute_stack_op): Remove
1601 label abort_expression.
1602
5e187554
SM
16032017-09-16 Simon Marchi <simon.marchi@ericsson.com>
1604
1605 * common/buffer.c (buffer_xml_printf): Adjust.
1606 * common/xml-utils.c (xml_escape_text): Change return type to
1607 std::string, update code accordingly.
1608 * common/xml-utils.h (xml_escape_text): Change return type to
1609 std::string.
1610 * rs6000-aix-tdep.c (rs6000_aix_shared_library_to_xml): Adjust.
1611 * windows-tdep.c (windows_xfer_shared_library): Adjust.
1612 * unittests/xml-utils-selftests.c (test_xml_escape_text):
1613 Adjust.
1614
c3d7b541
SM
16152017-09-16 Simon Marchi <simon.marchi@ericsson.com>
1616
1617 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add new source file.
1618 (SUBDIR_UNITTESTS_OBS): Add new object file.
1619 * unittests/xml-utils-selftests.c: New file.
1620
1526853e
SM
16212017-09-16 Simon Marchi <simon.marchi@ericsson.com>
1622
1623 * common/selftest.h (selftest): New struct/interface.
1624 (register_test): Add name parameter, add new overload.
1625 (run_tests): Add filter parameter.
1626 (for_each_selftest_ftype): New typedef.
1627 (for_each_selftest): New declaration.
1628 * common/selftest.c (tests): Change type to
1629 map<string, unique_ptr<selftest>>.
1630 (simple_selftest): New struct.
1631 (register_test): New function.
1632 (register_test): Add name parameter and use it.
1633 (run_tests): Add filter parameter and use it. Add prints.
1634 Adjust to vector -> map change.
1635 * aarch64-tdep.c (_initialize_aarch64_tdep): Add names when
1636 registering selftests.
1637 * arm-tdep.c (_initialize_arm_tdep): Likewise.
1638 * disasm-selftests.c (_initialize_disasm_selftests): Likewise.
1639 * dwarf2-frame.c (_initialize_dwarf2_frame): Likewise.
1640 * dwarf2loc.c (_initialize_dwarf2loc): Likewise.
1641 * findvar.c (_initialize_findvar): Likewise.
1642 * gdbarch-selftests.c (_initialize_gdbarch_selftests): Likewise.
1643 * maint.c (maintenance_selftest): Update call to run_tests.
1644 (maintenance_info_selftests): New function.
1645 (_initialize_maint_cmds): Register "maintenance info selftests"
1646 command. Update "maintenance selftest" doc.
1647 * regcache.c (_initialize_regcache): Add names when registering
1648 selftests.
1649 * rust-exp.y (_initialize_rust_exp): Likewise.
1650 * selftest-arch.c (gdbarch_selftest): New struct.
1651 (gdbarch_tests): Remove.
1652 (register_test_foreach_arch): Add name parameter. Call
1653 register_test.
1654 (tests_with_arch): Remove, move most content to
1655 gdbarch_selftest::operator().
1656 (_initialize_selftests_foreach_arch): Remove.
1657 * selftest-arch.h (register_test_foreach_arch): Add name
1658 parameter.
1659 (run_tests_with_arch): New declaration.
1660 * utils-selftests.c (_initialize_utils_selftests): Add names
1661 when registering selftests.
1662 * utils.c (_initialize_utils): Likewise.
1663 * unittests/array-view-selftests.c
1664 (_initialize_array_view_selftests): Likewise.
1665 * unittests/environ-selftests.c (_initialize_environ_selftests):
1666 Likewise.
1667 * unittests/function-view-selftests.c
1668 (_initialize_function_view_selftests): Likewise.
1669 * unittests/offset-type-selftests.c
1670 (_initialize_offset_type_selftests): Likewise.
1671 * unittests/optional-selftests.c
1672 (_initialize_optional_selftests): Likewise.
1673 * unittests/scoped_restore-selftests.c
1674 (_initialize_scoped_restore_selftests): Likewise.
1675 * NEWS: Document "maintenance selftest" and "maint info
1676 selftests".
1677
5846367a
SM
16782017-09-16 Simon Marchi <simon.marchi@ericsson.com>
1679
1680 * mi/mi-main.c (mi_load_progress): Restore current_uiout using a
1681 scoped_restore.
1682
bd77e8ff
SM
16832017-09-16 Simon Marchi <simon.marchi@ericsson.com>
1684
1685 * mi/mi-main.c (mi_load_progress): Make uiout variable
1686 a unique_ptr.
1687
26a67918
PA
16882017-09-15 Pedro Alves <palves@redhat.com>
1689
1690 * compile/compile-c-types.c (convert_enum, convert_int)
1691 (convert_float): Adjust to refer to int_type_v0 and float_type_v0.
1692
3f8a7804
SM
16932017-09-15 Simon Marchi <simon.marchi@ericsson.com>
1694
1695 * dwarf2read.c (copy_string): Remove.
1696 (parse_macro_definition): Replace copy_string with savestring.
1697
8d200706
YQ
16982017-09-15 Yao Qi <yao.qi@linaro.org>
1699
1700 * configure.tgt (i[34567]86-*-darwin*): Append amd64.o to
1701 gdb_target_obs.
1702 (i[34567]86-*-solaris2.1[0-9]* | x86_64-*-solaris2.1[0-9]*):
1703 Likewise.
1704 (i[34567]86-*-linux*): Likewise.
1705
d185219d
SM
17062017-09-14 Simon Marchi <simon.marchi@ericsson.com>
1707
1708 * dwarf2expr.h (dwarf_stack_value): Add constructor.
1709 (dwarf_expr_context) <~dwarf_expr_context>: Define as default.
1710 <stack>: Change type to std::vector.
1711 <stack_len, stack_allocated>: Remove.
1712 <grow_stack>: Remove.
1713 * dwarf2expr.c (dwarf_expr_context::dwarf_expr_context): Adjust.
1714 (dwarf_expr_context::~dwarf_expr_context): Remove.
1715 (dwarf_expr_context::grow_stack): Remove.
1716 (dwarf_expr_context::push): Adjust.
1717 (dwarf_expr_context::pop): Adjust.
1718 (dwarf_expr_context::fetch): Adjust.
1719 (dwarf_expr_context::fetch_in_stack_memory): Adjust.
1720 (dwarf_expr_context::stack_empty_p): Adjust.
1721 (dwarf_expr_context::execute_stack_op): Adjust.
1722
eccd80d6
SM
17232017-09-14 Simon Marchi <simon.marchi@ericsson.com>
1724
1725 * dwarf2expr.h (dwarf_expr_context) <stack_empty_p>: Change
1726 return type to bool.
1727 * dwarf2expr.c (dwarf_expr_context::stack_empty_p): Likewise.
1728
69009882
SM
17292017-09-14 Simon Marchi <simon.marchi@ericsson.com>
1730
1731 * dwarf2expr.h (dwarf_expr_piece) <v.mem.in_stack_memory>:
1732 Change type to bool.
1733 (dwarf_stack_value) <in_stack_memory>: Likewise.
1734 (dwarf_expr_context) <push_address>: Change parameter type to
1735 bool.
1736 <fetch_in_stack_memory>: Change return type to bool.
1737 <push>: Change parameter type to bool.
1738 * dwarf2expr.c (dwarf_expr_context::push): Change parameter type
1739 to bool.
1740 (dwarf_expr_context::push_address): Likewise.
1741 (dwarf_expr_context::fetch_in_stack_memory): Change return type
1742 to bool.
1743 (dwarf_expr_context::execute_stack_op): Adjust.
1744 * dwarf2loc.c (dwarf2_evaluate_loc_desc_full): Adjust.
1745
1e467161
SM
17462017-09-14 Simon Marchi <simon.marchi@ericsson.com>
1747
1748 * dwarf2expr.h (struct dwarf_expr_piece): Move up.
1749 (struct dwarf_expr_context) <n_pieces>: Remove.
1750 <pieces>: Change type to std::vector.
1751 * dwarf2expr.c (dwarf_expr_context::dwarf_expr_context): Adjust.
1752 (dwarf_expr_context::~dwarf_expr_context): Don't manually free
1753 pieces.
1754 (dwarf_expr_context::add_piece): Adjust.
1755 * dwarf2loc.c (struct piece_closure): Initialize fields.
1756 <n_pieces>: Remove.
1757 <pieces>: Change type to std::vector.
1758 (allocate_piece_closure): Adjust, change parameter to
1759 std::vector rvalue and std::move it to piece_closure.
1760 (rw_pieced_value): Adjust.
1761 (check_pieced_synthetic_pointer): Adjust.
1762 (indirect_synthetic_pointer): Adjust.
1763 (coerce_pieced_ref): Adjust.
1764 (free_pieced_value_closure): Adjust. Use delete to free
1765 piece_closure.
1766 (dwarf2_evaluate_loc_desc_full): Adjust. std::move ctx.pieces
1767 to allocate_piece_closure.
1768 (dwarf2_loc_desc_get_symbol_read_needs): Adjust.
1769
0782db84
SM
17702017-09-12 Simon Marchi <simon.marchi@ericsson.com>
1771
1772 * probe.h (probe_ops_cp): Remove typedef.
1773 (DEF_VEC_P (probe_ops_cp)): Remove.
1774 (all_probe_ops): Change type to std::vector.
1775 * probe.c (info_probes_for_ops): Adjust to vector change.
1776 (probe_linespec_to_ops): Likewise.
1777 (all_probe_ops): Change type to std::vector.
1778 (_initialize_probe): Adjust to vector change.
1779 * dtrace-probe.c (_initialize_dtrace_probe): Likewise.
1780 * elfread.c (elf_get_probes): Likewise.
1781 * stap-probe.c (_initialize_stap_probe): Likewise.
1782
1eac6bea
SM
17832017-09-12 Simon Marchi <simon.marchi@ericsson.com>
1784
1785 * probe.h (struct bound_probe): Define constructors.
1786 * probe.c (bound_probe_s): Remove typedef.
1787 (DEF_VEC_O (bound_probe_s)): Remove VEC.
1788 (collect_probes): Change return type to std::vector, remove
1789 cleanup.
1790 (compare_probes): Return bool, change parameter type. Change
1791 semantic to "less than".
1792 (gen_ui_out_table_header_info): Change parameter to std::vector
1793 and update.
1794 (exists_probe_with_pops): Likewise.
1795 (info_probes_for_ops): Update to std::vector change.
1796 (enable_probes_command): Likewise.
1797 (disable_probes_command): Likewise.
1798
aaa63a31
SM
17992017-09-12 Simon Marchi <simon.marchi@ericsson.com>
1800
1801 * probe.h (struct probe_ops) <get_probes>: Change parameter from
1802 vec to std::vector.
1803 * probe.c (parse_probes_in_pspace): Update.
1804 (find_probes_in_objfile): Update.
1805 (find_probe_by_pc): Update.
1806 (collect_probes): Update.
1807 (probe_any_get_probes): Update.
1808 * symfile.h (struct sym_probe_fns) <sym_get_probes> Change
1809 return type to reference to std::vector.
1810 * dtrace-probe.c (dtrace_process_dof_probe): Change parameter to
1811 std::vector and update.
1812 (dtrace_process_dof): Likewise.
1813 (dtrace_get_probes): Likewise.
1814 * elfread.c (elf_get_probes): Change return type to std::vector,
1815 store an std::vector in bfd_data.
1816 (probe_key_free): Update to std::vector.
1817 * stap-probe.c (handle_stap_probe): Change parameter to
1818 std::vector and update.
1819 (stap_get_probes): Likewise.
1820 * symfile-debug.c (debug_sym_get_probes): Change return type to
1821 std::vector and update.
1822
cb85b21b
TT
18232017-09-11 Tom Tromey <tom@tromey.com>
1824
1825 * breakpoint.c (program_breakpoint_here_p): Update.
1826 * target.c (make_scoped_restore_show_memory_breakpoints): Rename
1827 from make_show_memory_breakpoints_cleanup. Return a
1828 scoped_restore_tmpl<int>.
1829 (restore_show_memory_breakpoints): Remove.
1830 * ppc-linux-tdep.c (ppc_linux_memory_remove_breakpoint): Update.
1831 * mem-break.c (memory_validate_breakpoint): Update.
1832 * ia64-tdep.c (ia64_memory_insert_breakpoint): Update.
1833 (ia64_memory_remove_breakpoint): Update.
1834 (ia64_breakpoint_from_pc): Update.
1835 * target.h (make_scoped_restore_show_memory_breakpoints): Rename
1836 from make_show_memory_breakpoints_cleanup.
1837
8fbc99ef
TT
18382017-09-11 Tom Tromey <tom@tromey.com>
1839
1840 * d-namespace.c (d_lookup_symbol): Use std::string.
1841 (find_symbol_in_baseclass): Likewise.
1842
50feb4bd
TT
18432017-09-11 Tom Tromey <tom@tromey.com>
1844
1845 * ctf.c (ctf_start): Use std::string.
1846
c6dc63a1
TT
18472017-09-11 Tom Tromey <tom@tromey.com>
1848
1849 * ada-lang.c (is_known_support_routine): Update.
1850 (ada_unhandled_exception_name_addr_from_raise): Update.
1851 * guile/scm-frame.c (gdbscm_frame_name): Update.
1852 * python/py-frame.c (frapy_name): Update.
1853 (frapy_function): Update.
1854 * stack.h (find_frame_funname): Update.
1855 * stack.c (find_frame_funname): Return unique_xmalloc_ptr.
1856 (print_frame): Update.
1857
d6b9b80f
TT
18582017-09-11 Tom Tromey <tom@tromey.com>
1859
1860 * findcmd.c (put_bits): Take a gdb::byte_vector.
1861 (parse_find_args): Return gdb::byte_vector. "args" now const.
1862 Remove "pattern_bufp" and "pattern_lenp" parameters. Remove
1863 cleanups.
1864 (find_command): Update.
1865
a9921622
TT
18662017-09-11 Tom Tromey <tom@tromey.com>
1867
1868 * cli/cli-script.c (class scoped_restore_hook_in): New.
1869 (clear_hook_in_cleanup): Remove.
1870 (execute_cmd_pre_hook, execute_cmd_post_hook): Use
1871 scoped_restore_hook_in.
1872
be0d7abb
TT
18732017-09-11 Tom Tromey <tom@tromey.com>
1874
1875 * cli/cli-script.c (restore_interp): Remove.
1876 (read_command_lines): Use scoped_restore_interp.
1877 * interps.c (scoped_restore_interp::set_temp): Rename from
1878 interp_set_temp.
1879 * interps.h (class scoped_restore_interp): New.
1880 (interp_set_temp): Remove.
1881
00f675ff
TT
18822017-09-11 Tom Tromey <tom@tromey.com>
1883
1884 * mi/mi-cmd-catch.c (mi_cmd_catch_assert)
1885 (mi_cmd_catch_exception, mi_catch_load_unload): Update.
1886 * mi/mi-cmd-break.c (setup_breakpoint_reporting): Return a
1887 scoped_restore.
1888 (mi_cmd_break_insert_1): Update.
1889 * mi/mi-cmd-break.h (setup_breakpoint_reporting): Return a
1890 scoped_restore.
1891
cb791d59
TT
18922017-09-11 Tom Tromey <tom@tromey.com>
1893
1894 * demangle.c (demangle_command): Update.
1895 * breakpoint.c (disable_command): Update.
1896 (enable_command): Update.
1897 (find_location_by_number): Make "number" const. Use
1898 get_number_trailer.
1899 * cli/cli-utils.c (extract_arg): Return std::string.
1900 * probe.c (parse_probe_linespec): Update. Change types.
1901 (collect_probes): Take string arguments.
1902 (parse_probe_linespec): Likewise.
1903 (info_probes_for_ops): Update.
1904 (enable_probes_command): Update.
1905 (disable_probes_command): Update.
1906 * break-catch-sig.c (catch_signal_split_args): Update.
1907 * mi/mi-parse.c (mi_parse): Update.
1908
2039bd9f
TT
19092017-09-11 Tom Tromey <tom@tromey.com>
1910
1911 * language.h (language_enum): Make argument const.
1912 * language.c (language_enum): Make argument const.
1913
f1735a53
TT
19142017-09-11 Tom Tromey <tom@tromey.com>
1915
1916 * common/common-utils.h (skip_to_space): Remove macro, redeclare
1917 as function.
1918 (skip_to_space): Rename from skip_to_space_const.
1919 * common/common-utils.c (skip_to_space): New function.
1920 (skip_to_space): Rename from skip_to_space_const.
1921 * cli/cli-utils.h (get_number): Rename from get_number_const.
1922 (extract_arg): Rename from extract_arg_const.
1923 * cli/cli-utils.c (get_number): Rename from get_number_const.
1924 (extract_arg): Rename from extract_arg_const.
1925 (number_or_range_parser::get_number): Use ::get_number.
1926 * aarch64-linux-tdep.c, ada-lang.c, arm-linux-tdep.c, ax-gdb.c,
1927 break-catch-throw.c, breakpoint.c, cli/cli-cmds.c, cli/cli-dump.c,
1928 cli/cli-script.c, cli/cli-setshow.c, compile/compile.c,
1929 completer.c, demangle.c, disasm.c, findcmd.c, linespec.c,
1930 linux-tdep.c, linux-thread-db.c, location.c, mi/mi-parse.c,
1931 minsyms.c, nat/linux-procfs.c, printcmd.c, probe.c,
1932 python/py-breakpoint.c, record.c, rust-exp.y, serial.c, stack.c,
1933 stap-probe.c, tid-parse.c, tracepoint.c: Update all callers.
1934
7d221d74
TT
19352017-09-11 Tom Tromey <tom@tromey.com>
1936
1937 * python/python.c (do_start_initialization): Use
1938 py-event-types.def to initialize types.
1939 Define all object type structures.
1940 * python/python-internal.h: Don't declare event initialization
1941 functions.
1942 * python/py-threadevent.c (thread_event_object_type): Don't
1943 define.
1944 * python/py-stopevent.c (stop_event_object_type): Don't define.
1945 * python/py-signalevent.c (signal_event_object_type): Don't
1946 declare or define.
1947 * python/py-newobjfileevent.c (new_objfile_event_object_type)
1948 (clear_objfiles_event_object_type): Don't declare or define.
1949 * python/py-infevents.c (inferior_call_pre_event_object_type)
1950 (inferior_call_post_event_object_type)
1951 (register_changed_event_object_type)
1952 (memory_changed_event_object_type): Don't declare or define.
1953 * python/py-inferior.c (new_thread_event_object_type)
1954 (new_inferior_event_object_type)
1955 (inferior_deleted_event_object_type): Don't declare or define.
1956 * python/py-exitedevent.c (exited_event_object_type): Don't
1957 declare or define.
1958 * python/py-evts.c (gdbpy_initialize_py_events): Use
1959 py-all-events.def.
1960 * python/py-events.h (thread_event_object_type): Don't declare.
1961 (events_object): Use py-all-events.def.
1962 * python/py-event.h (GDBPY_NEW_EVENT_TYPE): Remove. Use
1963 py-event-types.def.
1964 * python/py-event-types.def: New file.
1965 * python/py-continueevent.c (create_continue_event_object): Don't
1966 declare or define.
1967 * python/py-bpevent.c (breakpoint_event_object_type): Don't
1968 declare or define.
1969 * python/py-all-events.def: New file.
1970
35c61a1d
TT
19712017-09-11 Tom Tromey <tom@tromey.com>
1972
1973 * python/py-threadevent.c (create_thread_event_object): Return
1974 gdbpy_ref.
1975 * python/py-stopevent.h (create_stop_event_object)
1976 (create_breakpoint_event_object, create_signal_event_object):
1977 Update.
1978 * python/py-stopevent.c (create_stop_event_object): Return
1979 gdbpy_ref.
1980 (emit_stop_event): Update.
1981 * python/py-signalevent.c (create_signal_event_object): Return
1982 gdbpy_ref.
1983 * python/py-infevents.c (create_inferior_call_event_object):
1984 Update.
1985 * python/py-event.h (create_event_object)
1986 (create_thread_event_object): Update.
1987 * python/py-event.c (create_event_object): Return gdbpy_ref.
1988 * python/py-continueevent.c: Return gdbpy_ref.
1989 * python/py-bpevent.c (create_breakpoint_event_object): Return
1990 gdbpy_ref.
1991
7c96f8c1
TT
19922017-09-11 Tom Tromey <tom@tromey.com>
1993
1994 PR python/15622:
1995 * NEWS: Add entry.
1996 * python/python.c (do_start_initialization): Initialize new event
1997 types.
1998 * python/python-internal.h (gdbpy_initialize_new_inferior_event)
1999 (gdbpy_initialize_inferior_deleted_event)
2000 (gdbpy_initialize_new_thread_event): Declare.
2001 * python/py-threadevent.c (create_thread_event_object): Add option
2002 "thread" parameter.
2003 * python/py-inferior.c (new_thread_event_object_type)
2004 (new_inferior_event_object_type)
2005 (inferior_deleted_event_object_type): Declare.
2006 (python_new_inferior, python_inferior_deleted): New functions.
2007 (add_thread_object): Emit new_thread event.
2008 (gdbpy_initialize_inferior): Attach new functions to corresponding
2009 observers.
2010 (new_thread, new_inferior, inferior_deleted): Define new event
2011 types.
2012 * python/py-evts.c (gdbpy_initialize_py_events): Add new
2013 registries.
2014 * python/py-events.h (events_object) <new_inferior,
2015 inferior_deleted, new_thread>: New fields.
2016 * python/py-event.h (create_thread_event_breakpoint): Add optional
2017 "thread" parameter.
2018
72542b8e
AB
20192017-09-10 Andrew Burgess <andrew.burgess@embecosm.com>
2020
2021 * utils.c (abort_with_message): Don't compare gdb_stderr to NULL,
2022 check current_ui instead.
2023 (internal_vproblem): Likewise.
2024
0d64823e
SM
20252017-09-09 Simon Marchi <simon.marchi@ericsson.com>
2026
2027 * thread.c (print_thread_info_1): Remove unnecessary calls to
2028 uiout->is_mi_like_p.
2029
eb1e02fd
TT
20302017-09-09 Tom Tromey <tom@tromey.com>
2031
2032 * namespace.h (add_using_directive): Update.
2033 * namespace.c (add_using_directive): Change type of excludes to
2034 std::vector.
2035 * dwarf2read.c (read_import_statement): Use std::vector.
2036 (read_namespace): Update.
2037 * cp-namespace.c (cp_scan_for_anonymous_namespaces): Update.
2038
0fc21fd8
TT
20392017-09-09 Tom Tromey <tom@tromey.com>
2040
2041 * linespec.c (create_sals_line_offset): Use gdb::def_vector.
2042
49663d05
TT
20432017-09-09 Tom Tromey <tom@tromey.com>
2044
2045 * p-valprint.c (pascal_object_print_value): Use gdb::byte_vector.
2046
0b868b60
TT
20472017-09-09 Tom Tromey <tom@tromey.com>
2048
2049 * stack.c (func_command): Use gdb::def_vector.
2050
c0470d48
TT
20512017-09-09 Tom Tromey <tom@tromey.com>
2052
2053 * mi/mi-cmd-var.c (mi_cmd_var_list_children): Use gdb::optional,
2054 ui_out_emit_list, ui_out_emit_tuple.
2055 (mi_cmd_var_update): Likewise.
2056
ca5909c7
TT
20572017-09-09 Tom Tromey <tom@tromey.com>
2058
2059 * mi/mi-interp.c (mi_user_selected_context_changed): Use
2060 ui_out_redirect_pop.
2061 * guile/scm-ports.c (ioscm_with_output_to_port_worker): Use
2062 ui_out_redirect_pop.
2063 * utils.c (do_ui_out_redirect_pop)
2064 (make_cleanup_ui_out_redirect_pop): Remove.
2065 * top.c (execute_command_to_string): Use ui_out_redirect_pop.
2066 * utils.h (make_cleanup_ui_out_redirect_pop): Remove.
2067 * ui-out.h (ui_out_redirect_pop): New class.
2068
e6a2252a
TT
20692017-09-09 Tom Tromey <tom@tromey.com>
2070
2071 * mi/mi-main.c (output_cores): Use ui_out_emit_list.
2072 (list_available_thread_groups, mi_cmd_list_thread_groups)
2073 (mi_cmd_data_list_changed_registers, mi_cmd_data_read_memory)
2074 (mi_cmd_data_read_memory_bytes, mi_cmd_trace_frame_collected):
2075 Likewise.
2076
393702cd
TT
20772017-09-09 Tom Tromey <tom@tromey.com>
2078
2079 * disasm.c (gdb_pretty_print_disassembler::pretty_print_insn): Use
2080 ui_out_emit_tuple.
2081
76f9c9cf
TT
20822017-09-09 Tom Tromey <tom@tromey.com>
2083
2084 * target.c (flash_erase_command): Use ui_out_emit_tuple.
2085 * stack.c (print_frame): Use ui_out_emit_tuple.
2086 * spu-tdep.c (info_spu_event_command): Use ui_out_emit_tuple.
2087 (info_spu_mailbox_command, info_spu_dma_command)
2088 (info_spu_proxydma_command): Likewise.
2089 * mi/mi-main.c (mi_cmd_trace_frame_collected): Use
2090 ui_out_emit_tuple, gdb::byte_vector, bin2hex.
2091 * mi/mi-cmd-file.c (mi_cmd_file_list_shared_libraries): Use
2092 ui_out_emit_tuple.
2093 * breakpoint.c (print_it_watchpoint): Use ui_out_emit_tuple.
2094
dc9fe180
TT
20952017-09-09 Tom Tromey <tom@tromey.com>
2096
2097 * ui-out.h (make_cleanup_ui_out_table_begin_end): Remove.
2098 (class ui_out_emit_table): Update comment.
2099 * ui-out.c (do_cleanup_table_end)
2100 (make_cleanup_ui_out_table_begin_end): Remove.
2101 * spu-tdep.c (info_spu_mailbox_list): Use ui_out_emit_table.
2102 (info_spu_dma_cmdlist): Likewise.
2103 * probe.c (info_probes_for_ops): Use ui_out_emit_table.
2104 * darwin-nat-info.c (darwin_debug_regions_recurse): Use
2105 ui_out_emit_table.
2106
f8cc3da6
TT
21072017-09-09 Tom Tromey <tom@tromey.com>
2108
2109 * thread.c (print_thread_info_1): Use ui_out_emit_table,
2110 ui_out_emit_list, gdb::optional.
2111
481695ed
JB
21122017-09-09 John Baldwin <jhb@FreeBSD.org>
2113
2114 * aarch64-linux-nat.c: Remove _initialize_aarch64_linux_nat
2115 prototype.
2116 * aarch64-linux-tdep.c: Remove _initialize_aarch64_linux_tdep
2117 prototype.
2118 * aarch64-newlib-tdep.c: Remove _initialize_aarch64_newlib_tdep
2119 prototype.
2120 * aarch64-tdep.c: Remove _initialize_aarch64_tdep prototype.
2121 * ada-exp.y: Remove _initialize_ada_exp prototype.
2122 * ada-lang.c: Remove _initialize_ada_language prototype.
2123 * ada-tasks.c: Remove _initialize_tasks prototype.
2124 * addrmap.c: Remove _initialize_addrmap prototype.
2125 * agent.c: Remove _initialize_agent prototype.
2126 * aix-thread.c: Remove _initialize_aix_thread prototype.
2127 * alpha-bsd-nat.c: Remove _initialize_alphabsd_nat prototype.
2128 * alpha-linux-nat.c: Remove _initialize_alpha_linux_nat prototype.
2129 * alpha-linux-tdep.c: Remove _initialize_alpha_linux_tdep
2130 prototype.
2131 * alpha-nbsd-tdep.c: Remove _initialize_alphanbsd_tdep prototype.
2132 * alpha-obsd-tdep.c: Remove _initialize_alphaobsd_tdep prototype.
2133 * alpha-tdep.c: Remove _initialize_alpha_tdep prototype.
2134 * amd64-darwin-tdep.c: Remove _initialize_amd64_darwin_tdep
2135 prototype.
2136 * amd64-dicos-tdep.c: Remove _initialize_amd64_dicos_tdep
2137 prototype.
2138 * amd64-fbsd-nat.c: Remove _initialize_amd64fbsd_nat prototype.
2139 * amd64-fbsd-tdep.c: Remove _initialize_amd64fbsd_tdep prototype.
2140 * amd64-linux-nat.c: Remove _initialize_amd64_linux_nat prototype.
2141 * amd64-linux-tdep.c: Remove _initialize_amd64_linux_tdep
2142 prototype.
2143 * amd64-nbsd-nat.c: Remove _initialize_amd64nbsd_nat prototype.
2144 * amd64-nbsd-tdep.c: Remove _initialize_amd64nbsd_tdep prototype.
2145 * amd64-obsd-nat.c: Remove _initialize_amd64obsd_nat prototype.
2146 * amd64-obsd-tdep.c: Remove _initialize_amd64obsd_tdep prototype.
2147 * amd64-sol2-tdep.c: Remove _initialize_amd64_sol2_tdep prototype.
2148 * amd64-tdep.c: Remove _initialize_amd64_tdep prototype.
2149 * amd64-windows-nat.c: Remove _initialize_amd64_windows_nat
2150 prototype.
2151 * amd64-windows-tdep.c: Remove _initialize_amd64_windows_tdep
2152 prototype.
2153 * annotate.c: Remove _initialize_annotate prototype.
2154 * arc-newlib-tdep.c: Remove _initialize_arc_newlib_tdep prototype.
2155 * arc-tdep.c: Remove _initialize_arc_tdep prototype.
2156 * arch-utils.c: Remove _initialize_gdbarch_utils prototype.
2157 * arm-linux-nat.c: Remove _initialize_arm_linux_nat prototype.
2158 * arm-linux-tdep.c: Remove _initialize_arm_linux_tdep prototype.
2159 * arm-nbsd-tdep.c: Remove _initialize_arm_netbsd_tdep prototype.
2160 * arm-obsd-tdep.c: Remove _initialize_armobsd_tdep prototype.
2161 * arm-symbian-tdep.c: Remove _initialize_arm_symbian_tdep
2162 prototype.
2163 * arm-tdep.c: Remove _initialize_arm_tdep prototype.
2164 * arm-wince-tdep.c: Remove _initialize_arm_wince_tdep prototype.
2165 * auto-load.c: Remove _initialize_auto_load prototype.
2166 * auxv.c: Remove _initialize_auxv prototype.
2167 * avr-tdep.c: Remove _initialize_avr_tdep prototype.
2168 * ax-gdb.c: Remove _initialize_ax_gdb prototype.
2169 * bfin-linux-tdep.c: Remove _initialize_bfin_linux_tdep prototype.
2170 * bfin-tdep.c: Remove _initialize_bfin_tdep prototype.
2171 * break-catch-sig.c: Remove _initialize_break_catch_sig prototype.
2172 * break-catch-syscall.c: Remove _initialize_break_catch_syscall
2173 prototype.
2174 * break-catch-throw.c: Remove _initialize_break_catch_throw
2175 prototype.
2176 * breakpoint.c: Remove _initialize_breakpoint prototype.
2177 * bsd-uthread.c: Remove _initialize_bsd_uthread prototype.
2178 * btrace.c: Remove _initialize_btrace prototype.
2179 * charset.c: Remove _initialize_charset prototype.
2180 * cli/cli-cmds.c: Remove _initialize_cli_cmds prototype.
2181 * cli/cli-dump.c: Remove _initialize_cli_dump prototype.
2182 * cli/cli-interp.c: Remove _initialize_cli_interp prototype.
2183 * cli/cli-logging.c: Remove _initialize_cli_logging prototype.
2184 * cli/cli-script.c: Remove _initialize_cli_script prototype.
2185 * coff-pe-read.c: Remove _initialize_coff_pe_read prototype.
2186 * coffread.c: Remove _initialize_coffread prototype.
2187 * compile/compile.c: Remove _initialize_compile prototype.
2188 * complaints.c: Remove _initialize_complaints prototype.
2189 * completer.c: Remove _initialize_completer prototype.
2190 * copying.awk: Remove _initialize_copying prototype.
2191 * copying.c: Regenerate.
2192 * core-regset.c: Remove _initialize_core_regset prototype.
2193 * corefile.c: Remove _initialize_core prototype.
2194 * corelow.c: Remove _initialize_corelow prototype.
2195 * cp-abi.c: Remove _initialize_cp_abi prototype.
2196 * cp-namespace.c: Remove _initialize_cp_namespace prototype.
2197 * cp-support.c: Remove _initialize_cp_support prototype.
2198 * cp-valprint.c: Remove _initialize_cp_valprint prototype.
2199 * cris-linux-tdep.c: Remove _initialize_cris_linux_tdep prototype.
2200 * cris-tdep.c: Remove _initialize_cris_tdep prototype.
2201 * ctf.c: Remove _initialize_ctf prototype.
2202 * d-lang.c: Remove _initialize_d_language prototype.
2203 * darwin-nat-info.c: Remove _initialize_darwin_info_commands
2204 prototype.
2205 * darwin-nat.c: Remove _initialize_darwin_inferior prototype.
2206 * dbxread.c: Remove _initialize_dbxread prototype.
2207 * dcache.c: Remove _initialize_dcache prototype.
2208 * demangle.c: Remove _initialize_demangler prototype.
2209 * disasm-selftests.c: Remove _initialize_disasm_selftests
2210 prototype.
2211 * disasm.c: Remove _initialize_disasm prototype.
2212 * dtrace-probe.c: Remove _initialize_dtrace_probe prototype.
2213 * dummy-frame.c: Remove _initialize_dummy_frame prototype.
2214 * dwarf2-frame-tailcall.c: Remove _initialize_tailcall_frame
2215 prototype.
2216 * dwarf2-frame.c: Remove _initialize_dwarf2_frame prototype.
2217 * dwarf2expr.c: Remove _initialize_dwarf2expr prototype.
2218 * dwarf2loc.c: Remove _initialize_dwarf2loc prototype.
2219 * dwarf2read.c: Remove _initialize_dwarf2_read prototype.
2220 * elfread.c: Remove _initialize_elfread prototype.
2221 * exec.c: Remove _initialize_exec prototype.
2222 * extension.c: Remove _initialize_extension prototype.
2223 * f-lang.c: Remove _initialize_f_language prototype.
2224 * f-valprint.c: Remove _initialize_f_valprint prototype.
2225 * fbsd-nat.c: Remove _initialize_fbsd_nat prototype.
2226 * fbsd-tdep.c: Remove _initialize_fbsd_tdep prototype.
2227 * filesystem.c: Remove _initialize_filesystem prototype.
2228 * findcmd.c: Remove _initialize_mem_search prototype.
2229 * fork-child.c: Remove _initialize_fork_child prototype.
2230 * frame-base.c: Remove _initialize_frame_base prototype.
2231 * frame-unwind.c: Remove _initialize_frame_unwind prototype.
2232 * frame.c: Remove _initialize_frame prototype.
2233 * frv-linux-tdep.c: Remove _initialize_frv_linux_tdep prototype.
2234 * frv-tdep.c: Remove _initialize_frv_tdep prototype.
2235 * ft32-tdep.c: Remove _initialize_ft32_tdep prototype.
2236 * gcore.c: Remove _initialize_gcore prototype.
2237 * gdb_bfd.c: Remove _initialize_gdb_bfd prototype.
2238 * gdbarch.c: Regenerate.
2239 * gdbarch.sh: Remove _initialize_gdbarch prototype.
2240 * gdbtypes.c: Remove _initialize_gdbtypes prototype.
2241 * gnu-nat.c: Remove _initialize_gnu_nat prototype.
2242 * gnu-v2-abi.c: Remove _initialize_gnu_v2_abi prototype.
2243 * gnu-v3-abi.c: Remove _initialize_gnu_v3_abi prototype.
2244 * go-lang.c: Remove _initialize_go_language prototype.
2245 * go32-nat.c: Remove _initialize_go32_nat prototype.
2246 * guile/guile.c: Remove _initialize_guile prototype.
2247 * h8300-tdep.c: Remove _initialize_h8300_tdep prototype.
2248 * hppa-linux-nat.c: Remove _initialize_hppa_linux_nat prototype.
2249 * hppa-linux-tdep.c: Remove _initialize_hppa_linux_tdep prototype.
2250 * hppa-nbsd-nat.c: Remove _initialize_hppanbsd_nat prototype.
2251 * hppa-nbsd-tdep.c: Remove _initialize_hppanbsd_tdep prototype.
2252 * hppa-obsd-nat.c: Remove _initialize_hppaobsd_nat prototype.
2253 * hppa-obsd-tdep.c: Remove _initialize_hppaobsd_tdep prototype.
2254 * hppa-tdep.c: Remove _initialize_hppa_tdep prototype.
2255 * i386-bsd-nat.c: Remove _initialize_i386bsd_nat prototype.
2256 * i386-cygwin-tdep.c: Remove _initialize_i386_cygwin_tdep
2257 prototype.
2258 * i386-darwin-tdep.c: Remove _initialize_i386_darwin_tdep
2259 prototype.
2260 * i386-dicos-tdep.c: Remove _initialize_i386_dicos_tdep prototype.
2261 * i386-fbsd-nat.c: Remove _initialize_i386fbsd_nat prototype.
2262 * i386-fbsd-tdep.c: Remove _initialize_i386fbsd_tdep prototype.
2263 * i386-gnu-nat.c: Remove _initialize_i386gnu_nat prototype.
2264 * i386-gnu-tdep.c: Remove _initialize_i386gnu_tdep prototype.
2265 * i386-linux-nat.c: Remove _initialize_i386_linux_nat prototype.
2266 * i386-linux-tdep.c: Remove _initialize_i386_linux_tdep prototype.
2267 * i386-nbsd-nat.c: Remove _initialize_i386nbsd_nat prototype.
2268 * i386-nbsd-tdep.c: Remove _initialize_i386nbsd_tdep prototype.
2269 * i386-nto-tdep.c: Remove _initialize_i386nto_tdep prototype.
2270 * i386-obsd-nat.c: Remove _initialize_i386obsd_nat prototype.
2271 * i386-obsd-tdep.c: Remove _initialize_i386obsd_tdep prototype.
2272 * i386-sol2-nat.c: Remove _initialize_amd64_sol2_nat prototype.
2273 * i386-sol2-tdep.c: Remove _initialize_amd64_sol2_tdep prototype.
2274 * i386-tdep.c: Remove _initialize_i386_tdep prototype.
2275 * i386-windows-nat.c: Remove _initialize_i386_windows_nat
2276 prototype.
2277 * ia64-libunwind-tdep.c: Remove _initialize_libunwind_frame
2278 prototype.
2279 * ia64-linux-nat.c: Remove _initialize_ia64_linux_nat prototype.
2280 * ia64-linux-tdep.c: Remove _initialize_ia64_linux_tdep prototype.
2281 * ia64-tdep.c: Remove _initialize_ia64_tdep prototype.
2282 * ia64-vms-tdep.c: Remove _initialize_ia64_vms_tdep prototype.
2283 * infcall.c: Remove _initialize_infcall prototype.
2284 * infcmd.c: Remove _initialize_infcmd prototype.
2285 * inferior.c: Remove _initialize_inferiors prototype.
2286 * inflow.c: Remove _initialize_inflow prototype.
2287 * infrun.c: Remove _initialize_infrun prototype.
2288 * interps.c: Remove _initialize_interpreter prototype.
2289 * iq2000-tdep.c: Remove _initialize_iq2000_tdep prototype.
2290 * jit.c: Remove _initialize_jit prototype.
2291 * language.c: Remove _initialize_language prototype.
2292 * linux-fork.c: Remove _initialize_linux_fork prototype.
2293 * linux-nat.c: Remove _initialize_linux_nat prototype.
2294 * linux-tdep.c: Remove _initialize_linux_tdep prototype.
2295 * linux-thread-db.c: Remove _initialize_thread_db prototype.
2296 * lm32-tdep.c: Remove _initialize_lm32_tdep prototype.
2297 * m2-lang.c: Remove _initialize_m2_language prototype.
2298 * m32c-tdep.c: Remove _initialize_m32c_tdep prototype.
2299 * m32r-linux-nat.c: Remove _initialize_m32r_linux_nat prototype.
2300 * m32r-linux-tdep.c: Remove _initialize_m32r_linux_tdep prototype.
2301 * m32r-tdep.c: Remove _initialize_m32r_tdep prototype.
2302 * m68hc11-tdep.c: Remove _initialize_m68hc11_tdep prototype.
2303 * m68k-bsd-nat.c: Remove _initialize_m68kbsd_nat prototype.
2304 * m68k-bsd-tdep.c: Remove _initialize_m68kbsd_tdep prototype.
2305 * m68k-linux-nat.c: Remove _initialize_m68k_linux_tdep prototype.
2306 * m68k-linux-tdep.c: Remove _initialize_m68k_linux_tdep prototype.
2307 * m68k-tdep.c: Remove _initialize_m68k_tdep prototype.
2308 * m88k-bsd-nat.c: Remove _initialize_m68kbsd_nat prototype.
2309 * m88k-tdep.c: Remove _initialize_m68kbsd_tdep prototype.
2310 * machoread.c: Remove _initialize_machoread prototype.
2311 * macrocmd.c: Remove _initialize_macrocmd prototype.
2312 * macroscope.c: Remove _initialize_macroscope prototype.
2313 * maint.c: Remove _initialize_maint_cmds prototype.
2314 * mdebugread.c: Remove _initialize_mdebugread prototype.
2315 * memattr.c: Remove _initialize_mem prototype.
2316 * mep-tdep.c: Remove _initialize_mep_tdep prototype.
2317 * mi/mi-cmd-env.c: Remove _initialize_mi_cmd_env prototype.
2318 * mi/mi-cmds.c: Remove _initialize_mi_cmds prototype.
2319 * mi/mi-interp.c: Remove _initialize_mi_interp prototype.
2320 * mi/mi-main.c: Remove _initialize_mi_main prototype.
2321 * microblaze-linux-tdep.c: Remove
2322 _initialize_microblaze_linux_tdep prototype.
2323 * microblaze-tdep.c: Remove _initialize_microblaze_tdep prototype.
2324 * mips-fbsd-nat.c: Remove _initialize_mips_fbsd_nat prototype.
2325 * mips-fbsd-tdep.c: Remove _initialize_mips_fbsd_tdep prototype.
2326 * mips-linux-nat.c: Remove _initialize_mips_linux_nat prototype.
2327 * mips-linux-tdep.c: Remove _initialize_mips_linux_tdep prototype.
2328 * mips-nbsd-nat.c: Remove _initialize_mipsnbsd_nat prototype.
2329 * mips-nbsd-tdep.c: Remove _initialize_mipsnbsd_tdep prototype.
2330 * mips-sde-tdep.c: Remove _initialize_mips_sde_tdep prototype.
2331 * mips-tdep.c: Remove _initialize_mips_tdep prototype.
2332 * mips64-obsd-nat.c: Remove _initialize_mips64obsd_nat prototype.
2333 * mips64-obsd-tdep.c: Remove _initialize_mips64obsd_tdep
2334 prototype.
2335 * mipsread.c: Remove _initialize_mipsread prototype.
2336 * mn10300-linux-tdep.c: Remove _initialize_mn10300_linux_tdep
2337 prototype.
2338 * mn10300-tdep.c: Remove _initialize_mn10300_tdep prototype.
2339 * moxie-tdep.c: Remove _initialize_moxie_tdep prototype.
2340 * msp430-tdep.c: Remove _initialize_msp430_tdep prototype.
2341 * mt-tdep.c: Remove _initialize_mt_tdep prototype.
2342 * nds32-tdep.c: Remove _initialize_nds32_tdep prototype.
2343 * nios2-linux-tdep.c: Remove _initialize_nios2_linux_tdep
2344 prototype.
2345 * nios2-tdep.c: Remove _initialize_nios2_tdep prototype.
2346 * nto-procfs.c: Remove _initialize_procfs prototype.
2347 * nto-tdep.c: Remove _initialize_nto_tdep prototype.
2348 * objc-lang.c: Remove _initialize_objc_language prototype.
2349 * objfiles.c: Remove _initialize_objfiles prototype.
2350 * observer.c: Remove observer_test_first_notification_function,
2351 observer_test_second_notification_function,
2352 observer_test_third_notification_function, and
2353 _initialize_observer prototypes.
2354 * opencl-lang.c: Remove _initialize_opencl_language prototypes.
2355 * osabi.c: Remove _initialize_gdb_osabi prototype.
2356 * osdata.c: Remove _initialize_osdata prototype.
2357 * p-valprint.c: Remove _initialize_pascal_valprint prototype.
2358 * parse.c: Remove _initialize_parse prototype.
2359 * ppc-fbsd-nat.c: Remove _initialize_ppcfbsd_nat prototype.
2360 * ppc-fbsd-tdep.c: Remove _initialize_ppcfbsd_tdep prototype.
2361 * ppc-linux-nat.c: Remove _initialize_ppc_linux_nat prototype.
2362 * ppc-linux-tdep.c: Remove _initialize_ppc_linux_tdep prototype.
2363 * ppc-nbsd-nat.c: Remove _initialize_ppcnbsd_nat prototype.
2364 * ppc-nbsd-tdep.c: Remove _initialize_ppcnbsd_tdep prototype.
2365 * ppc-obsd-nat.c: Remove _initialize_ppcobsd_nat prototype.
2366 * ppc-obsd-tdep.c: Remove _initialize_ppcobsd_tdep prototype.
2367 * printcmd.c: Remove _initialize_printcmd prototype.
2368 * probe.c: Remove _initialize_probe prototype.
2369 * proc-api.c: Remove _initialize_proc_api prototype.
2370 * proc-events.c: Remove _initialize_proc_events prototype.
2371 * proc-service.c: Remove _initialize_proc_service prototype.
2372 * procfs.c: Remove _initialize_procfs prototype.
2373 * psymtab.c: Remove _initialize_psymtab prototype.
2374 * python/python.c: Remove _initialize_python prototype.
2375 * ravenscar-thread.c: Remove _initialize_ravenscar prototype.
2376 * record-btrace.c: Remove _initialize_record_btrace prototype.
2377 * record-full.c: Remove _initialize_record_full prototype.
2378 * record.c: Remove _initialize_record prototype.
2379 * regcache.c: Remove _initialize_regcache prototype.
2380 * reggroups.c: Remove _initialize_reggroup prototype.
2381 * remote-notif.c: Remove _initialize_notif prototype.
2382 * remote-sim.c: Remove _initialize_remote_sim prototype.
2383 * remote.c: Remove _initialize_remote prototype.
2384 * reverse.c: Remove _initialize_reverse prototype.
2385 * rl78-tdep.c: Remove _initialize_rl78_tdep prototype.
2386 * rs6000-aix-tdep.c: Remove _initialize_rs6000_aix_tdep prototype.
2387 * rs6000-lynx178-tdep.c: Remove _initialize_rs6000_lynx178_tdep
2388 prototype.
2389 * rs6000-nat.c: Remove _initialize_rs6000_nat prototype.
2390 * rs6000-tdep.c: Remove _initialize_rs6000_tdep prototype.
2391 * rust-exp.y: Remove _initialize_rust_exp prototype.
2392 * rx-tdep.c: Remove _initialize_rx_tdep prototype.
2393 * s390-linux-nat.c: Remove _initialize_s390_nat prototype.
2394 * s390-linux-tdep.c: Remove _initialize_s390_tdep prototype.
2395 * score-tdep.c: Remove _initialize_score_tdep prototype.
2396 * selftest-arch.c: Remove _initialize_selftests_foreach_arch
2397 prototype.
2398 * ser-go32.c: Remove _initialize_ser_dos prototype.
2399 * ser-mingw.c: Remove _initialize_ser_windows prototype.
2400 * ser-pipe.c: Remove _initialize_ser_pipe prototype.
2401 * ser-tcp.c: Remove _initialize_ser_tcp prototype.
2402 * ser-unix.c: Remove _initialize_ser_hardwire prototype.
2403 * serial.c: Remove _initialize_serial prototype.
2404 * sh-linux-tdep.c: Remove _initialize_sh_linux_tdep prototype.
2405 * sh-nbsd-nat.c: Remove _initialize_shnbsd_nat prototype.
2406 * sh-nbsd-tdep.c: Remove _initialize_shnbsd_tdep prototype.
2407 * sh-tdep.c: Remove _initialize_sh_tdep prototype.
2408 * skip.c: Remove _initialize_step_skip prototype.
2409 * sol-thread.c: Remove _initialize_sol_thread prototype.
2410 * solib-aix.c: Remove _initialize_solib_aix prototype.
2411 * solib-darwin.c: Remove _initialize_darwin_solib prototype.
2412 * solib-dsbt.c: Remove _initialize_dsbt_solib prototype.
2413 * solib-frv.c: Remove _initialize_frv_solib prototype.
2414 * solib-spu.c: Remove _initialize_spu_solib prototype.
2415 * solib-svr4.c: Remove _initialize_svr4_solib prototype.
2416 * solib-target.c: Remove _initialize_solib_target prototype.
2417 * solib.c: Remove _initialize_solib prototype.
2418 * source.c: Remove _initialize_source prototype.
2419 * sparc-linux-nat.c: Remove _initialize_sparc_linux_nat prototype.
2420 * sparc-linux-tdep.c: Remove _initialize_sparc_linux_tdep
2421 prototype.
2422 * sparc-nat.c: Remove _initialize_sparc_nat prototype.
2423 * sparc-nbsd-nat.c: Remove _initialize_sparcnbsd_nat prototype.
2424 * sparc-nbsd-tdep.c: Remove _initialize_sparcnbsd_tdep prototype.
2425 * sparc-obsd-tdep.c: Remove _initialize_sparc32obsd_tdep
2426 prototype.
2427 * sparc-sol2-nat.c: Remove _initialize_sparc_sol2_nat prototype.
2428 * sparc-sol2-tdep.c: Remove _initialize_sparc_sol2_tdep prototype.
2429 * sparc-tdep.c: Remove _initialize_sparc_tdep prototype.
2430 * sparc64-fbsd-nat.c: Remove _initialize_sparc64fbsd_nat
2431 prototype.
2432 * sparc64-fbsd-tdep.c: Remove _initialize_sparc64fbsd_tdep
2433 prototype.
2434 * sparc64-linux-nat.c: Remove _initialize_sparc64_linux_nat
2435 prototype.
2436 * sparc64-linux-tdep.c: Remove _initialize_sparc64_linux_tdep
2437 prototype.
2438 * sparc64-nat.c: Remove _initialize_sparc64_nat prototype.
2439 * sparc64-nbsd-nat.c: Remove _initialize_sparc64nbsd_nat
2440 prototype.
2441 * sparc64-nbsd-tdep.c: Remove _initialize_sparc64nbsd_tdep
2442 prototype.
2443 * sparc64-obsd-nat.c: Remove _initialize_sparc64obsd_nat
2444 prototype.
2445 * sparc64-obsd-tdep.c: Remove _initialize_sparc64obsd_tdep
2446 prototype.
2447 * sparc64-sol2-tdep.c: Remove _initialize_sparc64_sol2_tdep
2448 prototype.
2449 * spu-linux-nat.c: Remove _initialize_spu_nat prototype.
2450 * spu-multiarch.c: Remove _initialize_spu_multiarch prototype.
2451 * spu-tdep.c: Remove _initialize_spu_tdep prototype.
2452 * stabsread.c: Remove _initialize_stabsread prototype.
2453 * stack.c: Remove _initialize_stack prototype.
2454 * stap-probe.c: Remove _initialize_stap_probe prototype.
2455 * std-regs.c: Remove _initialize_frame_reg prototype.
2456 * symfile-debug.c: Remove _initialize_symfile_debug prototype.
2457 * symfile-mem.c: Remove _initialize_symfile_mem prototype.
2458 * symfile.c: Remove _initialize_symfile prototype.
2459 * symmisc.c: Remove _initialize_symmisc prototype.
2460 * symtab.c: Remove _initialize_symtab prototype.
2461 * target-dcache.c: Remove _initialize_target_dcache prototype.
2462 * target-descriptions.c: Remove _initialize_target_descriptions
2463 prototype.
2464 * thread.c: Remove _initialize_thread prototype.
2465 * tic6x-linux-tdep.c: Remove _initialize_tic6x_linux_tdep
2466 prototype.
2467 * tic6x-tdep.c: Remove _initialize_tic6x_tdep prototype.
2468 * tilegx-linux-nat.c: Remove _initialize_tile_linux_nat prototype.
2469 * tilegx-linux-tdep.c: Remove _initialize_tilegx_linux_tdep
2470 prototype.
2471 * tilegx-tdep.c: Remove _initialize_tilegx_tdep prototype.
2472 * tracefile-tfile.c: Remove _initialize_tracefile_tfile prototype.
2473 * tracefile.c: Remove _initialize_tracefile prototype.
2474 * tracepoint.c: Remove _initialize_tracepoint prototype.
2475 * tui/tui-hooks.c: Remove _initialize_tui_hooks prototype.
2476 * tui/tui-interp.c: Remove _initialize_tui_interp prototype.
2477 * tui/tui-layout.c: Remove _initialize_tui_layout prototype.
2478 * tui/tui-regs.c: Remove _initialize_tui_regs prototype.
2479 * tui/tui-stack.c: Remove _initialize_tui_stack prototype.
2480 * tui/tui-win.c: Remove _initialize_tui_win prototype.
2481 * tui/tui.c: Remove _initialize_tui prototype.
2482 * typeprint.c: Remove _initialize_typeprint prototype.
2483 * user-regs.c: Remove _initialize_user_regs prototype.
2484 * utils.c: Remove _initialize_utils prototype.
2485 * v850-tdep.c: Remove _initialize_v850_tdep prototype.
2486 * valarith.c: Remove _initialize_valarith prototype.
2487 * valops.c: Remove _initialize_valops prototype.
2488 * valprint.c: Remove _initialize_valprint prototype.
2489 * value.c: Remove _initialize_values prototype.
2490 * varobj.c: Remove _initialize_varobj prototype.
2491 * vax-bsd-nat.c: Remove _initialize_vaxbsd_nat prototype.
2492 * vax-nbsd-tdep.c: Remove _initialize_vaxnbsd_tdep prototype.
2493 * vax-tdep.c: Remove _initialize_vax_tdep prototype.
2494 * windows-nat.c: Remove _initialize_windows_nat,
2495 _initialize_check_for_gdb_ini, and _initialize_loadable
2496 prototypes.
2497 * windows-tdep.c: Remove _initialize_windows_tdep prototype.
2498 * xcoffread.c: Remove _initialize_xcoffread prototype.
2499 * xml-support.c: Remove _initialize_xml_support prototype.
2500 * xstormy16-tdep.c: Remove _initialize_xstormy16_tdep prototype.
2501 * xtensa-linux-nat.c: Remove _initialize_xtensa_linux_nat
2502 prototype.
2503 * xtensa-linux-tdep.c: Remove _initialize_xtensa_linux_tdep
2504 prototype.
2505 * xtensa-tdep.c: Remove _initialize_xtensa_tdep prototype.
2506
a611b5cb
KS
25072017-09-08 Keith Seitz <keiths@redhat.com>
2508
2509 * dwarf2read.c (struct field_info) <fnfields>: Remove unused
2510 field.
2511
469412dd
CW
25122017-09-08 Christoph Weinmann <christoph.t.weinmann@intel.com>
2513
2514 * f-valprint.c (f_val_print): Remove check for one byte
2515 sized integers. Remove printing of character type.
2516
a5ad232b
FP
25172017-09-08 Frank Penczek <frank.penczek@intel.com>
2518 Christoph Weinmann <christoph.t.weinmann@intel.com>
2519 Bernhard Heckel <bernhard.heckel@intel.com>
2520
2521 * f-typeprint.c (f_type_print_base): Use fprintfi_filtered
2522 to maintain proper indentation when printing pointers/refs.
2523
e5014227
JB
25242017-09-07 Joel Brobecker <brobecker@adacore.com>
2525
2526 GDB 8.0.1 released.
2527
63c99141
JB
25282017-09-07 Joel Brobecker <brobecker@adacore.com>
2529
2530 * NEWS (Changes in GDB 7.11): Remove entry for QStartupWithShell.
2531
69c1e056
TT
25322017-09-05 Tom Tromey <tom@tromey.com>
2533
2534 * parse.c (funcall_chain): Now a std::vector.
2535 (start_arglist, end_arglist): Simplify.
2536 (free_funcalls): Remove.
2537 (parse_exp_in_context_1): Remove cleanup.
2538
fef704bf
TT
25392017-09-05 Tom Tromey <tom@tromey.com>
2540
2541 * go-exp.y (go_parse): Don't create a cleanup.
2542
5613c585
TT
25432017-09-05 Tom Tromey <tom@tromey.com>
2544
2545 * d-exp.y (PrimaryExpression): Use std::string.
2546 (d_parse): Don't create a cleanup.
2547
eae49211
TT
25482017-09-05 Tom Tromey <tom@tromey.com>
2549
2550 * utils.c (do_clear_parser_state): Remove.
2551 (make_cleanup_clear_parser_state): Remove.
2552 * p-exp.y (pascal_parse): Use scoped_restore.
2553 * m2-exp.y (m2_parse): Use scoped_restore.
2554 * f-exp.y (f_parse): Use scoped_restore.
2555 * d-exp.y (d_parse): Use scoped_restore.
2556 * c-exp.y (c_parse): Use scoped_restore.
2557 * ada-exp.y (ada_parse): Use scoped_restore.
2558 * utils.h (make_cleanup_clear_parser_state): Remove.
2559
73b9be8b
KS
25602017-09-06 Keith Seitz <keiths@redhat.com>
2561
2562 * dwarf2read.c (dw2_linkage_name_attr): New function.
2563 (dw2_linkage_name): New function.
2564 (dwarf2_compute_name, dwarf2_physname, read_call_site_scope)
2565 (guess_full_die_structure_name, dwarf2_name): Use dw2_linkage_name.
2566 (anonymous_struct_prefix, dwarf2_name): Use dw2_linkage_name_attr.
2567
a102602b
KR
25682017-09-06 Kamil Rytarowski <n54@gmx.com>
2569
2570 * config/djgpp/djconfig.sh: Correct shell portability issue.
2571
28ad437d
KR
25722017-09-06 Kamil Rytarowski <n54@gmx.com>
2573
2574 * configure.nat: Define HAVE_NATIVE_GCORE_HOST on NetBSD.
2575
351787dd
JB
25762017-09-06 John Baldwin <jhb@FreeBSD.org>
2577
2578 * Makefile.in (ALLDEPFILES): Add mips-fbsd-nat.c.
2579 * NEWS: Mention new FreeBSD/mips native configuration.
2580 * configure.host: Add aarch64*-*-freebsd*.
2581 * configure.nat: Likewise.
2582 * aarch64-fbsd-nat.c: New file.
2583
c0f84956
JB
25842017-09-06 John Baldwin <jhb@FreeBSD.org>
2585
2586 * Makefile.in (ALL_64_TARGET_OBS): Add aarch64-fbsd-tdep.o.
2587 (ALLDEPFILES): Add aarch64-fbsd-tdep.c.
2588 * NEWS: Mention new FreeBSD/aarch64 target.
2589 * configure.tgt: Add aarch64*-*-freebsd*.
2590 * aarch64-fbsd-tdep.c: New file.
2591 * aarch64-fbsd-tdep.h: New file.
2592
7610297a
KR
25932017-09-06 Kamil Rytarowski <n54@gmx.com>
2594
2595 * MAINTAINERS (Write After Approval): Add Kamil Rytarowski.
2596
fbd1b771
JK
25972017-09-06 Jan Kratochvil <jan.kratochvil@redhat.com>
2598
2599 * parse.c (find_minsym_type_and_address): Don't relocate addresses
2600 of TLS symbols.
2601
5ca79eae
PW
26022017-09-05 Philippe Waroquiers <philippe.waroquiers@skynet.be>
2603
2604 * objfiles.c (get_objfile_bfd_data): Remove useless obstack_init
2605 call.
2606
bf93d7ba
SM
26072017-09-05 Simon Marchi <simon.marchi@ericsson.com>
2608
2609 * infrun.c (follow_exec): Call add_thread after
2610 target_find_description.
2611
1bb7c059
SM
26122017-09-05 Simon Marchi <simon.marchi@ericsson.com>
2613
2614 * infrun.c (handle_inferior_event_1): When exec'ing, read
2615 stop_pc after follow_exec.
2616
fc809827
SM
26172017-09-05 Simon Marchi <simon.marchi@ericsson.com>
2618
2619 * remote.c (process_g_packet): Update error message.
2620
d2fcdd85
YQ
26212017-09-05 Yao Qi <yao.qi@linaro.org>
2622
2623 * configure.tgt (gdb_target_obs): Add i386.o for x86_64-*
2624 targets.
2625
e69570ee
PA
26262017-09-05 Pedro Alves <palves@redhat.com>
2627
2628 * eval.c (eval_call, evaluate_funcall): New functions, factored
2629 out from ...
2630 (evaluate_subexp_standard): ... this.
2631
22916b07
YQ
26322017-09-05 Yao Qi <yao.qi@linaro.org>
2633
2634 * amd64-tdep.c (amd64_target_description): Create target
2635 descriptions.
2636 (_initialize_amd64_tdep): Don't call functions
2637 initialize_tdesc_amd64_*. Add self tests.
2638 * arch/amd64.c (amd64_create_target_description): Add parameter
2639 is_linux. Call set_tdesc_osabi if is_linux is true.
2640 * arch/amd64.h (amd64_create_target_description): Update the
2641 declaration.
2642 * arch/i386.c (i386_create_target_description): Add parameter
2643 is_linux. Call set_tdesc_osabi if is_linux is true.
2644 * arch/i386.h (i386_create_target_description): Update
2645 declaration.
2646 * configure.tgt: Add i386.o to gdb_target_obs.
2647 * features/Makefile (XMLTOC): Remove i386/*.xml.
2648 * features/i386/amd64-avx-avx512.c: Remove.
2649 * features/i386/amd64-avx-mpx-avx512-pku.c: Remove.
2650 * features/i386/amd64-avx-mpx.c: Remove.
2651 * features/i386/amd64-avx.c: Remove.
2652 * features/i386/amd64-mpx.c: Remove.
2653 * features/i386/amd64.c: Remove.
2654 * features/i386/i386-avx-avx512.c: Remove.
2655 * features/i386/i386-avx-mpx-avx512-pku.c: Remove.
2656 * features/i386/i386-avx-mpx.c: Remove.
2657 * features/i386/i386-avx.c: Remove.
2658 * features/i386/i386-mmx.c: Remove.
2659 * features/i386/i386-mpx.c: Remove.
2660 * features/i386/i386.c: Remove.
2661 * i386-tdep.c: Don't include features/i386/i386*.c., include
2662 target-descriptions.h and arch/i386.h.
2663 (i386_target_description): Create target descriptions.
2664 (i386_gdbarch_init): Don't call initialize_tdesc_i386_*
2665 functions. Do self tests.
2666
0854b7b1
YQ
26672017-09-05 Yao Qi <yao.qi@linaro.org>
2668
2669 * features/Makefile (XMLTOC): Remove i386/amd64XXX-linux.xml.
2670 * features/i386/amd64-avx-avx512-linux.c: Removed.
2671 * features/i386/amd64-avx-linux.c: Removed.
2672 * features/i386/amd64-avx-mpx-avx512-pku-linux.c: Removed.
2673 * features/i386/amd64-avx-mpx-linux.c: Removed.
2674 * features/i386/amd64-linux.c: Removed.
2675 * features/i386/amd64-mpx-linux.c: Removed.
2676 * features/i386/x32-avx-avx512-linux.c: Removed.
2677 * features/i386/x32-avx-linux.c: Removed.
2678 * features/i386/x32-linux.c: Removed.
2679
b4570e4b
YQ
26802017-09-05 Yao Qi <yao.qi@linaro.org>
2681
2682 * amd64-linux-tdep.c: Include arch/amd64.h. Don't include
2683 features/i386/*.c.
2684 (amd64_linux_read_description): Call
2685 amd64_create_target_description.
2686 * arch/amd64.c: New file.
2687 * arch/amd64.h: New file.
2688 * configure.tgt (x86_64-*-linux*): Append amd64.o.
2689 * Makefile.in (ALL_64_TARGET_OBS): Append amd64.o.
2690
6c73f67f
YQ
26912017-09-05 Yao Qi <yao.qi@linaro.org>
2692
2693 * amd64-linux-tdep.c: Don't include amd64-XXX-linux and
2694 x32-XXX-linux.c. Include 64bit-XX.c and x32-XX.c.
2695 (amd64_linux_read_description): Create target descriptions.
2696 (_initialize_amd64_linux_tdep): Don't call initialize_tdesc_XXX
2697 functions. Add unit tests.
2698 * features/Makefile (FEATURE_XMLFILES): Append 64bit-XXX.xml and
2699 x32-core.xml.
2700 * features/i386/64bit-avx.c: Generated.
2701 * features/i386/64bit-avx512.c: Generated.
2702 * features/i386/64bit-core.c: Generated.
2703 * features/i386/64bit-linux.c: Generated.
2704 * features/i386/64bit-mpx.c: Generated.
2705 * features/i386/64bit-pkeys.c: Generated.
2706 * features/i386/64bit-segments.c: Generated.
2707 * features/i386/64bit-sse.c: Generated.
2708 * features/i386/x32-core.c: Generated.
2709 * target-descriptions.c (maint_print_c_tdesc_cmd): Print feature
2710 c files for amd64-linux and x32-linux.
2711
9d3d478b
YQ
27122017-09-05 Yao Qi <yao.qi@linaro.org>
2713
2714 * amd64-linux-tdep.c (amd64_linux_read_description): New
2715 function.
2716 (amd64_linux_core_read_description): Call
2717 amd64_linux_read_description.
2718 (amd64_linux_init_abi): Likewise.
2719 (amd64_x32_linux_init_abi): Likewise.
2720 * amd64-linux-tdep.h (amd64_linux_read_description): Declare.
2721 * x86-linux-nat.c (x86_linux_read_description): Call
2722 amd64_linux_read_description.
2723
b9f1d50f
YQ
27242017-09-05 Yao Qi <yao.qi@linaro.org>
2725
2726 * amd64-linux-tdep.c (amd64_linux_core_read_description): Update
2727 comments.
2728
188c9e6d
YQ
27292017-09-05 Yao Qi <yao.qi@linaro.org>
2730
2731 * features/Makefile (XMLTOC): Remove i386/i386-XX-linux.xml.
2732 * features/i386/i386-avx-avx512-linux.c: Remove.
2733 * features/i386/i386-avx-linux.c: Remove.
2734 * features/i386/i386-avx-mpx-avx512-pku-linux.c: Remove.
2735 * features/i386/i386-avx-mpx-linux.c: Remove.
2736 * features/i386/i386-linux.c: Remove.
2737 * features/i386/i386-mmx-linux.c: Remove.
2738 * features/i386/i386-mpx-linux.c: Remove.
2739
5f035c07
YQ
27402017-09-05 Yao Qi <yao.qi@linaro.org>
2741
2742 * Makefile.in (ALL_TARGET_OBS): Add i386.o.
2743 (SFILES): Add arch/i386.c.
2744 (HFILES_NO_SRCDIR): Add arch/i386.h.
2745 * arch/i386.c: New file.
2746 * arch/i386.h: New file.
2747 * arch/tdesc.h (allocate_target_description): Declare.
2748 (set_tdesc_architecture): Declare.
2749 (set_tdesc_osabi): Declare.
2750 * configure.tgt (i[34567]86-*-linux*): Add i386.o.
2751 * i386-linux-tdep.c: Don't include ../features/i386/32bit-XXX.c.
2752 include arch/i386.h.
2753 (i386_linux_read_description): Remove code and call
2754 i386_create_target_description.
2755 (set_tdesc_architecture): New function.
2756 (set_tdesc_osabi): New function.
2757 * target-descriptions.h (allocate_target_description): Remove.
2758
0abe8a89
YQ
27592017-09-05 Yao Qi <yao.qi@linaro.org>
2760
2761 * arch/tdesc.h (tdesc_create_feature): Add an argument xml.
2762 * target-descriptions.c (tdesc_create_feature): Likewise, and
2763 adjust code.
2764 * features/i386/32bit-avx.c: Re-generated.
2765 * features/i386/32bit-avx512.c: Re-generated.
2766 * features/i386/32bit-core.c: Re-generated.
2767 * features/i386/32bit-linux.c: Re-generated.
2768 * features/i386/32bit-mpx.c: Re-generated.
2769 * features/i386/32bit-pkeys.c: Re-generated.
2770 * features/i386/32bit-sse.c: Re-generated.
2771
0a188386
YQ
27722017-09-05 Yao Qi <yao.qi@linaro.org>
2773
2774 * regformats/regdef.h (struct reg): Override operator == and !=.
2775
f49ff000
YQ
27762017-09-05 Yao Qi <yao.qi@linaro.org>
2777
2778 * arch/tdesc.h: New file.
2779 * regformats/regdat.sh: Generate code using tdesc_create_reg.
2780 * target-descriptions.c: Update comments.
2781 * target-descriptions.h: Include "arch/tdesc.h". Remove the
2782 declarations.
2783 * features/i386/32bit-avx.c: Re-generated.
2784 * features/i386/32bit-avx512.c: Re-generated.
2785 * features/i386/32bit-core.c: Re-generated.
2786 * features/i386/32bit-linux.c: Re-generated.
2787 * features/i386/32bit-mpx.c: Re-generated.
2788 * features/i386/32bit-pkeys.c: Re-generated.
2789 * features/i386/32bit-sse.c: Re-generated.
2790
f7000548
YQ
27912017-09-05 Yao Qi <yao.qi@linaro.org>
2792
2793 * regformats/regdat.sh: Update generated code.
2794
c9a5e2a5
YQ
27952017-09-05 Yao Qi <yao.qi@linaro.org>
2796
2797 * regformats/regdat.sh: Adjust code order.
2798
d6b687ac
SM
27992017-09-05 Simon Marchi <simon.marchi@ericsson.com>
2800
2801 * expprint.c (dump_subexp_body_standard): Use constant format
2802 string in fprintf_filtered call.
2803
a379bfd0
JB
28042017-09-04 John Baldwin <jhb@FreeBSD.org>
2805
2806 * configure.nat: Add "x86-nat.o x86-dregs.o" for NetBSD/amd64 and
2807 NetBSD/i386.
2808 * x86-bsd-nat.c [!DBREG_DRX && __NetBSD__]: Define DBREG_DRX.
2809
f7efc967
JB
28102017-09-04 John Baldwin <jhb@FreeBSD.org>
2811
2812 * bsd-kvm.o: Make <sys/user.h> conditional on HAVE_SYS_USER_H.
2813
c49fbc6c
JB
28142017-09-04 John Baldwin <jhb@FreeBSD.org>
2815
2816 * bsd-kvm.o: Define _KMEMUSER.
2817 * configure.ac: Define _KMEMUSER when checking for "struct lwp".
2818 * configure: Regenerate.
2819
26562e73
JB
28202017-09-04 John Baldwin <jhb@FreeBSD.org>
2821
2822 * amd64-fbsd-nat.c: Add include of "x86-xstate.h".
2823 * i386-fbsd-nat.c: Likewise.
2824
31cf1487
JB
28252017-09-04 John Baldwin <jhb@FreeBSD.org>
2826
2827 * unittests/array-view-selftests.c: Add include of <array>.
2828
5b9f8a7c
JB
28292017-09-04 John Baldwin <jhb@FreeBSD.org>
2830
2831 * spu-tdep.c (flush_ea_cache): Add missing argument to
2832 call_function_by_hand.
2833
d69cf9b2
PA
28342017-09-04 Pedro Alves <palves@redhat.com>
2835
2836 * NEWS (Safer support for debugging with no debug info): New.
2837
3693fdb3
PA
28382017-09-04 Pedro Alves <palves@redhat.com>
2839
2840 * c-exp.y (function_method, function_method_void): Add current
2841 instance flags to TYPE_INSTANCE.
2842 * dwarf2read.c (check_modifier): New.
2843 (compute_delayed_physnames): Assert that only C++ adds delayed
2844 physnames. Mark fn_fields as const/volatile depending on
2845 physname.
2846 * eval.c (make_params): New type_instance_flags parameter. Use
2847 it as the new type's instance flags.
2848 (evaluate_subexp_standard) <TYPE_INSTANCE>: Extract the instance
2849 flags element and pass it to make_params.
2850 * expprint.c (print_subexp_standard) <TYPE_INSTANCE>: Handle
2851 instance flags element.
2852 (dump_subexp_body_standard) <TYPE_INSTANCE>: Likewise.
2853 * gdbtypes.h: Include "enum-flags.h".
2854 (type_instance_flags): New enum-flags type.
2855 (TYPE_CONST, TYPE_VOLATILE, TYPE_RESTRICT, TYPE_ATOMIC)
2856 (TYPE_CODE_SPACE, TYPE_DATA_SPACE): Return boolean.
2857 * parse.c (operator_length_standard) <TYPE_INSTANCE>: Adjust.
2858 (follow_type_instance_flags): New function.
2859 (operator_check_standard) <TYPE_INSTANCE>: Adjust.
2860 * parser-defs.h (follow_type_instance_flags): Declare.
2861 * valops.c (value_struct_elt_for_reference): const/volatile must
2862 match too.
2863
e68cb8e0
PA
28642017-09-04 Pedro Alves <palves@redhat.com>
2865
2866 * cp-namespace.c (cp_search_static_and_baseclasses): Handle
2867 function/method scopes; lookup the nested name as a function local
2868 static variable.
2869
858be34c
PA
28702017-09-04 Pedro Alves <palves@redhat.com>
2871
2872 (%type <voidval>): Add function_method.
2873 * c-exp.y (exp): New production for calls with no arguments.
2874 (function_method, function_method_void_or_typelist): New
2875 productions.
2876 (exp): New production for "method()::static_var".
2877 * eval.c (evaluate_subexp_standard): Handle OP_FUNC_STATIC_VAR.
2878 * expprint.c (print_subexp_standard, dump_subexp_body_standard):
2879 Handle OP_FUNC_STATIC_VAR.
2880 * parse.c (operator_length_standard):
2881 Handle OP_FUNC_STATIC_VAR.
2882
dd5901a6
PA
28832017-09-04 Pedro Alves <palves@redhat.com>
2884
2885 * eval.c (evaluate_subexp_standard): Remove UNOP_MEMVAL_TLS
2886 handling.
2887 * expprint.c (print_subexp_standard, dump_subexp_body_standard):
2888 Ditto.
2889 * parse.c (operator_length_standard, operator_check_standard):
2890 Ditto.
2891 * std-operator.def (UNOP_MEMVAL_TLS): Delete.
2892
46a4882b
PA
28932017-09-04 Pedro Alves <palves@redhat.com>
2894
2895 * ax-gdb.c: Include "typeprint.h".
2896 (gen_expr_for_cast): New function.
2897 (gen_expr) <OP_CAST, OP_CAST_TYPE>: Use it.
2898 <OP_VAR_VALUE, OP_MSYM_VAR_VALUE>: Error out if the variable's
2899 type is unknown.
2900 * dwarf2read.c (new_symbol_full): Fallback to int instead of
2901 nodebug_data_symbol.
2902 * eval.c: Include "typeprint.h".
2903 (evaluate_subexp_standard) <OP_VAR_VALUE, OP_VAR_MSYM_VALUE>:
2904 Error out if symbol has unknown type.
2905 <UNOP_CAST, UNOP_CAST_TYPE>: Common bits factored out to
2906 evaluate_subexp_for_cast.
2907 (evaluate_subexp_for_address, evaluate_subexp_for_sizeof): Handle
2908 OP_VAR_MSYM_VALUE.
2909 (evaluate_subexp_for_cast): New function.
2910 * gdbtypes.c (init_nodebug_var_type): New function.
2911 (objfile_type): Use it to initialize types of variables with no
2912 debug info.
2913 * typeprint.c (error_unknown_type): New.
2914 * typeprint.h (error_unknown_type): New declaration.
2915 * compile/compile-c-types.c (convert_type_basic): Handle
2916 TYPE_CODE_ERROR; warn and fallback to int for variables with
2917 unknown type.
2918
fe13dfec
PA
29192017-09-04 Pedro Alves <palves@redhat.com>
2920
2921 * eval.c (evaluate_var_value): New function, factored out from ...
2922 (evaluate_subexp_standard): ... here.
2923
d008ee21
PA
29242017-09-04 Pedro Alves <palves@redhat.com>
2925
2926 * eval.c (evaluate_subexp_standard) <UNOP_COMPLEMENT, UNOP_ADDR>:
2927 Remove useless assignments to 'op'.
2928
827d0c51
PA
29292017-09-04 Pedro Alves <palves@redhat.com>
2930
2931 * eval.c (eval_skip_value): New function.
2932 (evaluate_subexp_standard): Use it.
2933
2c5a2be1
PA
29342017-09-04 Pedro Alves <palves@redhat.com>
2935
2936 * eval.c (evaluate_subexp_standard): <OP_FUNCALL>: Extract
2937 function name from symbol/minsym and pass it to
2938 error_call_unknown_return_type.
2939
74ea4be4
PA
29402017-09-04 Pedro Alves <palves@redhat.com>
2941
2942 * ada-lang.c (resolve_subexp): Handle OP_VAR_MSYM_VALUE.
2943 * ax-gdb.c (gen_msym_var_ref): New function.
2944 (gen_expr): Handle OP_VAR_MSYM_VALUE.
2945 * eval.c (evaluate_var_msym_value): New function.
2946 * eval.c (evaluate_subexp_standard): Handle OP_VAR_MSYM_VALUE.
2947 <OP_FUNCALL>: Extract function name from symbol/minsym and pass it
2948 to call_function_by_hand.
2949 * expprint.c (print_subexp_standard, dump_subexp_body_standard):
2950 Handle OP_VAR_MSYM_VALUE.
2951 (union exp_element) <msymbol>: New field.
2952 * minsyms.h (struct type): Forward declare.
2953 (find_minsym_type_and_address): Declare.
2954 * parse.c (write_exp_elt_msym): New function.
2955 (write_exp_msymbol): Delete, refactored as ...
2956 (find_minsym_type_and_address): ... this new function.
2957 (write_exp_msymbol): Reimplement using OP_VAR_MSYM_VALUE.
2958 (operator_length_standard, operator_check_standard): Handle
2959 OP_VAR_MSYM_VALUE.
2960 * std-operator.def (OP_VAR_MSYM_VALUE): New.
2961
7022349d
PA
29622017-09-04 Pedro Alves <palves@redhat.com>
2963
2964 * ada-lang.c (ada_evaluate_subexp) <TYPE_CODE_FUNC>: Don't handle
2965 TYPE_GNU_IFUNC specially here. Throw error if return type is
2966 unknown.
2967 * ada-typeprint.c (print_func_type): Handle functions with unknown
2968 return type.
2969 * c-typeprint.c (c_type_print_base): Handle functions and methods
2970 with unknown return type.
2971 * compile/compile-c-symbols.c (convert_symbol_bmsym)
2972 <mst_text_gnu_ifunc>: Use nodebug_text_gnu_ifunc_symbol.
2973 * compile/compile-c-types.c: Include "objfiles.h".
2974 (convert_func): For functions with unknown return type, warn and
2975 default to int.
2976 * compile/compile-object-run.c (compile_object_run): Adjust call
2977 to call_function_by_hand_dummy.
2978 * elfread.c (elf_gnu_ifunc_resolve_addr): Adjust call to
2979 call_function_by_hand.
2980 * eval.c (evaluate_subexp_standard): Adjust calls to
2981 call_function_by_hand. Handle functions and methods with unknown
2982 return type. Pass expect_type to call_function_by_hand.
2983 * f-typeprint.c (f_type_print_base): Handle functions with unknown
2984 return type.
2985 * gcore.c (call_target_sbrk): Adjust call to
2986 call_function_by_hand.
2987 * gdbtypes.c (objfile_type): Leave nodebug text symbol with NULL
2988 return type instead of int. Make nodebug_text_gnu_ifunc_symbol be
2989 an integer address type instead of nodebug.
2990 * guile/scm-value.c (gdbscm_value_call): Adjust call to
2991 call_function_by_hand.
2992 * infcall.c (error_call_unknown_return_type): New function.
2993 (call_function_by_hand): New "default_return_type" parameter.
2994 Pass it down.
2995 (call_function_by_hand_dummy): New "default_return_type"
2996 parameter. Use it instead of defaulting to int. If there's no
2997 default and the return type is unknown, throw an error. If
2998 there's a default return type, and the called function has no
2999 debug info, then assume the function is prototyped.
3000 * infcall.h (call_function_by_hand, call_function_by_hand_dummy):
3001 New "default_return_type" parameter.
3002 (error_call_unknown_return_type): New declaration.
3003 * linux-fork.c (call_lseek): Cast return type of lseek.
3004 (inferior_call_waitpid, checkpoint_command): Adjust calls to
3005 call_function_by_hand.
3006 * linux-tdep.c (linux_infcall_mmap, linux_infcall_munmap): Adjust
3007 calls to call_function_by_hand.
3008 * m2-typeprint.c (m2_procedure): Handle functions with unknown
3009 return type.
3010 * objc-lang.c (lookup_objc_class, lookup_child_selector)
3011 (value_nsstring, print_object_command): Adjust calls to
3012 call_function_by_hand.
3013 * p-typeprint.c (pascal_type_print_varspec_prefix): Handle
3014 functions with unknown return type.
3015 (pascal_type_print_func_varspec_suffix): New function.
3016 (pascal_type_print_varspec_suffix) <TYPE_CODE_FUNC,
3017 TYPE_CODE_METHOD>: Use it.
3018 * python/py-value.c (valpy_call): Adjust call to
3019 call_function_by_hand.
3020 * rust-lang.c (rust_evaluate_funcall): Adjust call to
3021 call_function_by_hand.
3022 * valarith.c (value_x_binop, value_x_unop): Adjust calls to
3023 call_function_by_hand.
3024 * valops.c (value_allocate_space_in_inferior): Adjust call to
3025 call_function_by_hand.
3026 * typeprint.c (type_print_unknown_return_type): New function.
3027 * typeprint.h (type_print_unknown_return_type): New declaration.
3028
54990598
PA
30292017-09-04 Pedro Alves <palves@redhat.com>
3030
3031 * gdbtypes.c (lookup_function_type_with_arguments): Mark function
3032 types with more than one parameter as prototyped.
3033
9a24775b
PA
30342017-09-04 Pedro Alves <palves@redhat.com>
3035
3036 * cli/cli-cmds.c (print_disassembly, disassemble_current_function)
3037 (disassemble_command): Use gdb_disassembly_flags instead of bare
3038 int.
3039 * disasm.c (gdb_pretty_print_disassembler::pretty_print_insn)
3040 (dump_insns, do_mixed_source_and_assembly_deprecated)
3041 (do_mixed_source_and_assembly, do_assembly_only, gdb_disassembly):
3042 Use gdb_disassembly_flags instead of bare int.
3043 * disasm.h (DISASSEMBLY_SOURCE_DEPRECATED, DISASSEMBLY_RAW_INSN)
3044 (DISASSEMBLY_OMIT_FNAME, DISASSEMBLY_FILENAME)
3045 (DISASSEMBLY_OMIT_PC, DISASSEMBLY_SOURCE)
3046 (DISASSEMBLY_SPECULATIVE): No longer macros. Instead they're...
3047 (enum gdb_disassembly_flag): ... values of this new enumeration.
3048 (gdb_disassembly_flags): Define.
3049 (gdb_disassembly)
3050 (gdb_pretty_print_disassembler::pretty_print_insn): Use it.
3051 * mi/mi-cmd-disas.c (mi_cmd_disassemble): Use
3052 gdb_disassembly_flags instead of bare int.
3053 * record-btrace.c (btrace_insn_history)
3054 (record_btrace_insn_history, record_btrace_insn_history_range)
3055 (record_btrace_insn_history_from): Use gdb_disassembly_flags
3056 instead of bare int.
3057 * record.c (get_insn_history_modifiers, cmd_record_insn_history):
3058 Use gdb_disassembly_flags instead of bare int.
3059 * target-debug.h (target_debug_print_gdb_disassembly_flags):
3060 Define.
3061 * target-delegates.c: Regenerate.
3062 * target.c (target_insn_history, target_insn_history_from)
3063 (target_insn_history_range): Use gdb_disassembly_flags instead of
3064 bare int.
3065 * target.h: Include "disasm.h".
3066 (struct target_ops) <to_insn_history, to_insn_history_from,
3067 to_insn_history_range>: Use gdb_disassembly_flags instead of bare
3068 int.
3069 (target_insn_history, target_insn_history_from)
3070 (target_insn_history_range): Use gdb_disassembly_flags instead of
3071 bare int.
3072
80a65e9b
SM
30732017-09-04 Simon Marchi <simon.marchi@ericsson.com>
3074
3075 * cli/cli-script.c (build_command_line): For if/while commands,
3076 check whether args is empty.
3077
6b66338c
SM
30782017-09-04 Simon Marchi <simon.marchi@ericsson.com>
3079
3080 * cli/cli-script.h (enum misc_command_type): Move from defs.h.
3081 (enum command_control_type): Likewise.
3082 (struct command_line): Likewise.
3083 (free_command_lines): Likewise.
3084 (struct command_lines_deleter): Likewise.
3085 (command_line_up): Likewise.
3086 (read_command_lines): Likewise.
3087 (read_command_lines_1): Likewise.
3088 * defs.h (enum misc_command_type): Move to cli/cli-script.h.
3089 (enum command_control_type): Likewise.
3090 (struct command_line): Likewise.
3091 (free_command_lines): Likewise.
3092 (struct command_lines_deleter): Likewise.
3093 (command_line_up): Likewise.
3094 (read_command_lines): Likewise.
3095 (read_command_lines_1): Likewise.
3096 * breakpoint.h: Include cli/cli-script.h.
3097 * extension-priv.h: Likewise.
3098 * gdbcmd.h: Likewise.
3099
51abb421
PA
31002017-09-04 Pedro Alves <palves@redhat.com>
3101
3102 * ada-lang.c (is_known_support_routine): Move sal declaration to
3103 where it is initialized.
3104 * breakpoint.c (create_internal_breakpoint, init_catchpoint)
3105 (parse_breakpoint_sals, decode_static_tracepoint_spec)
3106 (clear_command, update_static_tracepoint): Remove init_sal
3107 references. Move declarations closer to initializations.
3108 * cli/cli-cmds.c (list_command): Move sal declarations closer to
3109 initializations.
3110 * elfread.c (elf_gnu_ifunc_resolver_stop): Remove init_sal
3111 references. Move sal declarations closer to initializations.
3112 * frame.c (find_frame_sal): Return a symtab_and_line via function
3113 return instead of output parameter. Remove init_sal references.
3114 * frame.h (find_frame_sal): Return a symtab_and_line via function
3115 return instead of output parameter.
3116 * guile/scm-frame.c (gdbscm_frame_sal): Adjust.
3117 * guile/scm-symtab.c (stscm_make_sal_smob): Use in-place new
3118 instead of memset.
3119 (gdbscm_find_pc_line): Remove init_sal reference.
3120 * infcall.c (call_function_by_hand_dummy): Remove init_sal
3121 references. Move declarations closer to initializations.
3122 * infcmd.c (set_step_frame): Update. Move declarations closer to
3123 initializations.
3124 (finish_backward): Remove init_sal references. Move declarations
3125 closer to initializations.
3126 * infrun.c (process_event_stop_test, handle_step_into_function)
3127 (insert_hp_step_resume_breakpoint_at_frame)
3128 (insert_step_resume_breakpoint_at_caller): Likewise.
3129 * linespec.c (create_sals_line_offset, decode_digits_ordinary)
3130 (symbol_to_sal): Likewise.
3131 * probe.c (parse_probes_in_pspace): Remove init_sal reference.
3132 * python/py-frame.c (frapy_find_sal): Move sal declaration closer
3133 to its initialization.
3134 * reverse.c (save_bookmark_command): Use new/delete. Remove
3135 init_sal references. Move declarations closer to initializations.
3136 * source.c (get_current_source_symtab_and_line): Remove brace
3137 initialization.
3138 (set_current_source_symtab_and_line): Now takes the sal by const
3139 reference. Remove brace initialization.
3140 (line_info): Remove init_sal reference.
3141 * source.h (set_current_source_symtab_and_line): Now takes a
3142 symtab_and_line via const reference.
3143 * stack.c (set_current_sal_from_frame): Adjust.
3144 (print_frame_info): Adjust.
3145 (get_last_displayed_sal): Return the sal via function return
3146 instead of via output parameter. Simplify.
3147 (frame_info): Adjust.
3148 * stack.h (get_last_displayed_sal): Return the sal via function
3149 return instead of via output parameter.
3150 * symtab.c (init_sal): Delete.
3151 (find_pc_sect_line): Remove init_sal references. Move
3152 declarations closer to initializations.
3153 (find_function_start_sal): Remove init_sal references. Move
3154 declarations closer to initializations.
3155 * symtab.h (struct symtab_and_line): In-class initialize all
3156 fields.
3157 * tracepoint.c (set_traceframe_context)
3158 (print_one_static_tracepoint_marker): Remove init_sal references.
3159 Move declarations closer to initializations.
3160 * tui/tui-disasm.c (tui_show_disassem_and_update_source): Adjust.
3161 * tui/tui-stack.c (tui_show_frame_info): Adjust. Move
3162 declarations closer to initializations.
3163 * tui/tui-winsource.c (tui_update_source_window_as_is): Remove
3164 init_sal references. Adjust.
3165
6c5b2ebe
PA
31662017-09-04 Pedro Alves <palves@redhat.com>
3167
3168 * ax-gdb.c (agent_command_1): Use range-for.
3169 * break-catch-throw.c (re_set_exception_catchpoint): Update.
3170 * breakpoint.c: Include "common/array-view.h".
3171 (init_breakpoint_sal, create_breakpoint_sal): Change sals
3172 parameter from struct symtabs_and_lines to
3173 array_view<symtab_and_line>. Adjust. Use range-for. Update.
3174 (breakpoint_sals_to_pc): Change sals parameter from struct
3175 symtabs_and_lines to std::vector reference.
3176 (check_fast_tracepoint_sals): Change sals parameter from struct
3177 symtabs_and_lines to std::array_view. Use range-for.
3178 (decode_static_tracepoint_spec): Return a std::vector instead of
3179 symtabs_and_lines. Update.
3180 (create_breakpoint): Update.
3181 (break_range_command, until_break_command, clear_command): Update.
3182 (base_breakpoint_decode_location, bkpt_decode_location)
3183 (bkpt_probe_create_sals_from_location)
3184 (bkpt_probe_decode_location, tracepoint_decode_location)
3185 (tracepoint_probe_decode_location)
3186 (strace_marker_create_sals_from_location): Return a std::vector
3187 instead of symtabs_and_lines.
3188 (strace_marker_create_breakpoints_sal): Update.
3189 (strace_marker_decode_location): Return a std::vector instead of
3190 symtabs_and_lines. Update.
3191 (update_breakpoint_locations): Change struct symtabs_and_lines
3192 parameters to gdb::array_view. Adjust.
3193 (location_to_sals): Return a std::vector instead of
3194 symtabs_and_lines. Update.
3195 (breakpoint_re_set_default): Use std::vector instead of struct
3196 symtabs_and_lines.
3197 (decode_location_default): Return a std::vector instead of
3198 symtabs_and_lines. Update.
3199 * breakpoint.h: Include "common/array-view.h".
3200 (struct breakpoint_ops) <decode_location>: Now returns a
3201 std::vector instead of returning a symtabs_and_lines via output
3202 parameter.
3203 (update_breakpoint_locations): Change sals parameters to use
3204 gdb::array_view.
3205 * cli/cli-cmds.c (edit_command, list_command): Update to use
3206 std::vector and gdb::array_view.
3207 (ambiguous_line_spec): Adjust to use gdb::array_view and
3208 range-for.
3209 (compare_symtabs): Rename to ...
3210 (cmp_symtabs): ... this. Change parameters to symtab_and_line
3211 const reference and adjust.
3212 (filter_sals): Rewrite using std::vector and standard algorithms.
3213 * elfread.c (elf_gnu_ifunc_resolver_return_stop): Simplify.
3214 (jump_command): Update to use std::vector.
3215 * linespec.c (struct linespec_state) <canonical_names>: Update
3216 comment.
3217 (add_sal_to_sals_basic): Delete.
3218 (add_sal_to_sals, filter_results, convert_results_to_lsals)
3219 (decode_line_2, create_sals_line_offset)
3220 (convert_address_location_to_sals, convert_linespec_to_sals)
3221 (convert_explicit_location_to_sals, parse_linespec)
3222 (event_location_to_sals, decode_line_full, decode_line_1)
3223 (decode_line_with_current_source)
3224 (decode_line_with_last_displayed, decode_objc)
3225 (decode_digits_list_mode, decode_digits_ordinary, minsym_found)
3226 (linespec_result::~linespec_result): Adjust to use std::vector
3227 instead of symtabs_and_lines.
3228 * linespec.h (linespec_sals::sals): Now a std::vector.
3229 (struct linespec_result): Use std::vector, bool, and in-class
3230 initialization.
3231 (decode_line_1, decode_line_with_current_source)
3232 (decode_line_with_last_displayed): Return std::vector.
3233 * macrocmd.c (info_macros_command): Use std::vector.
3234 * mi/mi-main.c (mi_cmd_trace_find): Use std::vector.
3235 * probe.c (parse_probes_in_pspace, parse_probes): Adjust to use
3236 std::vector.
3237 * probe.h (parse_probes): Return a std::vector.
3238 * python/python.c (gdbpy_decode_line): Use std::vector and
3239 gdb::array_view.
3240 * source.c (select_source_symtab, line_info): Use std::vector.
3241 * stack.c (func_command): Use std::vector.
3242 * symtab.h (struct symtabs_and_lines): Delete.
3243 * tracepoint.c (tfind_line_command, scope_info): Use std::vector.
3244
7c44b49c
PA
32452017-09-04 Pedro Alves <palves@redhat.com>
3246
3247 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
3248 unittests/array-view-selftests.c.
3249 (SUBDIR_UNITTESTS_OBS): Add array-view-selftests.o.
3250 * common/array-view.h: New file.
3251 * unittests/array-view-selftests.c: New file.
3252
e439fa14
PA
32532017-09-04 Pedro Alves <palves@redhat.com>
3254
3255 * cli/cli-cmds.c (edit_command): Pass message to
3256 ambiguous_line_spec.
3257 (list_command): Pass message to ambiguous_line_spec. Say
3258 "first"/"last" instead of "start" and "end" to be consistent with
3259 the manual.
3260 (ambiguous_line_spec): Add 'format' and vararg parameters. Use
3261 them to print formatted message.
3262
7525b645
PA
32632017-09-04 Pedro Alves <palves@redhat.com>
3264
3265 * btrace.c (ftrace_add_pt): Pass btrace_insn to
3266 ftrace_update_insns by reference instead of pointer.
3267
badc0020
YQ
32682017-09-04 Yao Qi <yao.qi@linaro.org>
3269
3270 * i386-go32-tdep.c: Include x86-xstate.h.
3271 (i386_go32_init_abi): Call i386_target_description.
3272 * i386-tdep.c (i386_target_description): Return tdesc_i386_mmx
3273 if xcr0 is X86_XSTATE_X87_MASK.
3274 * i386-tdep.h (tdesc_i386): Remove the declaration.
3275 (tdesc_i386_mmx): Likewise.
3276
d78bdb54
YQ
32772017-09-04 Yao Qi <yao.qi@linaro.org>
3278
3279 * i386-fbsd-tdep.c (i386fbsd_core_read_xcr0): Return
3280 X86_XSTATE_SSE_MASK instead of 0.
3281
ca1fa5ee
YQ
32822017-09-04 Yao Qi <yao.qi@linaro.org>
3283
3284 * amd64-fbsd-nat.c (amd64fbsd_read_description): Call
3285 i386_target_description.
3286 * i386-fbsd-nat.c (i386fbsd_read_description): Call
3287 i386_target_description.
3288 * i386-tdep.c (i386_gdbarch_init): Likewise.
3289
2434b019
YQ
32902017-09-04 Yao Qi <yao.qi@linaro.org>
3291
3292 * amd64-darwin-tdep.c: Include "x86-xstate.h".
3293 (x86_darwin_init_abi_64): Call amd64_target_description.
3294 * amd64-dicos-tdep.c: Likewise.
3295 * amd64-fbsd-nat.c: Likewise.
3296 * amd64-fbsd-tdep.c: Likewise.
3297 * amd64-nbsd-tdep.c: Likewise.
3298 * amd64-obsd-tdep.c: Likewise.
3299 * amd64-sol2-tdep.c: Likewise.
3300 * amd64-windows-tdep.c: Likewise.
3301 * amd64-tdep.h (tdesc_amd64): Remove the declaration.
3302
0860c437
SM
33032017-09-04 Simon Marchi <simon.marchi@ericsson.com>
3304
3305 * btrace.h (btrace_insn_s, DEF_VEC_O (btrace_insn_s)): Remove.
3306 (btrace_function) <insn>: Change type to use std::vector.
3307 * btrace.c (ftrace_debug, ftrace_call_num_insn,
3308 ftrace_find_call, ftrace_new_gap, ftrace_update_function,
3309 ftrace_update_insns, ftrace_compute_global_level_offset,
3310 btrace_stitch_bts, btrace_clear, btrace_insn_get,
3311 btrace_insn_end, btrace_insn_next, btrace_insn_prev): Adjust to
3312 change to std::vector.
3313 (ftrace_update_insns): Adjust to change to std::vector, change
3314 type of INSN parameter.
3315 (btrace_compute_ftrace_bts): Adjust call to ftrace_update_insns.
3316 * record-btrace.c (btrace_call_history_insn_range,
3317 btrace_compute_src_line_range,
3318 record_btrace_frame_prev_register): Adjust to change to
3319 std::vector.
3320 * python/py-record-btrace.c (recpy_bt_func_instructions): Adjust
3321 to change to std::vector.
3322
0638b7f9
TT
33232017-09-03 Tom Tromey <tom@tromey.com>
3324
3325 * corefile.c (reopen_exec_file): Use std::string.
3326
8f84fb0e
TT
33272017-09-03 Tom Tromey <tom@tromey.com>
3328
3329 * compile/compile.c (compile_register_name_mangled): Return
3330 std::string.
3331 * compile/compile-loc2c.c (pushf_register_address): Update.
3332 (pushf_register): Update.
3333 * compile/compile-c-types.c (convert_array): Update.
3334 * compile/compile-c-symbols.c (generate_vla_size): Update.
3335 (error_symbol_once): Use a gdb::unique_xmalloc_ptr.
3336 (symbol_substitution_name): Return a gdb::unique_xmalloc_ptr.
3337 (convert_one_symbol): Update.
3338 (generate_c_for_for_one_variable): Update.
3339 * compile/compile-c-support.c (c_get_range_decl_name): Return a
3340 std::string.
3341 (generate_register_struct): Update.
3342 * compile/compile-internal.h (c_get_range_decl_name): Return a
3343 std::string.
3344 (compile_register_name_mangled): Return std::string.
3345
18e9961f
TT
33462017-09-03 Tom Tromey <tom@tromey.com>
3347
3348 * utils.c (perror_string): Return a std::string.
3349 (throw_perror_with_name, perror_warning_with_name): Update.
3350
45343786
TT
33512017-09-03 Tom Tromey <tom@tromey.com>
3352
3353 * demangle.c (demangle_command): Use std::string,
3354 unique_xmalloc_ptr.
3355
b57af503
TT
33562017-09-03 Tom Tromey <tom@tromey.com>
3357
3358 * cli/cli-setshow.c (do_set_command): Use std::string.
3359
6eecf35f
TT
33602017-09-03 Tom Tromey <tom@tromey.com>
3361
3362 * cli/cli-cmds.c (cd_command): Use gdb::unique_xmalloc_ptr.
3363
56496dd4
TT
33642017-09-03 Tom Tromey <tom@tromey.com>
3365
3366 * mi/mi-interp.c (mi_cmd_interpreter_exec): Use std::string.
3367
e91a1fa7
TT
33682017-09-03 Tom Tromey <tom@tromey.com>
3369
3370 * mi/mi-cmd-env.c (env_execute_cli_command): Use
3371 gdb::unique_xmalloc_ptr.
3372
7ffd83d7
TT
33732017-09-03 Tom Tromey <tom@tromey.com>
3374
3375 * thread.c (print_thread_info_1): Use string_printf.
3376 (thread_apply_command, thread_apply_all_command): Use
3377 std::string.
3378
1ccbe998
TT
33792017-09-03 Tom Tromey <tom@tromey.com>
3380
3381 * valprint.c (val_print_string): Update.
3382 * gdbcore.h (memory_error_message): Return std::string.
3383 * corefile.c (memory_error_message): Return std::string.
3384 (memory_error): Update.
3385 * breakpoint.c (insert_bp_location): Update.
3386
23fdd69e
SM
33872017-09-03 Simon Marchi <simon.marchi@ericsson.com>
3388
3389 * target/waitstatus.h (target_waitstatus_to_string): Change
3390 return type to std::string.
3391 * target/waitstatus.c (target_waitstatus_to_string): Return
3392 std::string.
3393 * target.h (target_waitstatus_to_string): Remove declaration.
3394 * infrun.c (resume, clear_proceed_status_thread,
3395 print_target_wait_results, do_target_wait, save_waitstatus,
3396 stop_all_threads): Adjust.
3397 * record-btrace.c (record_btrace_wait): Adjust.
3398 * target-debug.h
3399 (target_debug_print_struct_target_waitstatus_p): Adjust.
3400
5c811d30
JK
34012017-09-01 Jan Kratochvil <jan.kratochvil@redhat.com>
3402
3403 PR gdb/22046
3404 * nat/linux-procfs.c (parse_proc_status_state): Fix PROC_STATE_STOPPED
3405 detection.
3406
0a2dde4a
SDJ
34072017-08-31 Sergio Durigan Junior <sergiodj@redhat.com>
3408
3409 * NEWS (Changes since GDB 8.0): Add entry mentioning new support
3410 for setting/unsetting environment variables on the remote target.
3411 (New remote packets): Add entries for QEnvironmentHexEncoded,
3412 QEnvironmentUnset and QEnvironmentReset.
3413 * common/environ.c (gdb_environ::operator=): Extend method to
3414 handle m_user_set_env_list and m_user_unset_env_list.
3415 (gdb_environ::clear): Likewise.
3416 (match_var_in_string): Change type of first parameter from 'char
3417 *' to 'const char *'.
3418 (gdb_environ::set): Extend method to handle
3419 m_user_set_env_list and m_user_unset_env_list.
3420 (gdb_environ::unset): Likewise.
3421 (gdb_environ::clear_user_set_env): New method.
3422 (gdb_environ::user_set_envp): Likewise.
3423 (gdb_environ::user_unset_envp): Likewise.
3424 * common/environ.h (gdb_environ): Handle m_user_set_env_list and
3425 m_user_unset_env_list on move constructor/assignment.
3426 (unset): Add new default parameter 'update_unset_list = true'.
3427 (clear_user_set_env): New method.
3428 (user_set_envp): Likewise.
3429 (user_unset_envp): Likewise.
3430 (m_user_set_env_list): New std::set.
3431 (m_user_unset_env_list): Likewise.
3432 * common/rsp-low.c (hex2str): New function.
3433 (bin2hex): New overload for bin2hex function.
3434 * common/rsp-low.c (hex2str): New prototype.
3435 (str2hex): New overload prototype.
3436 * remote.c: Include "environ.h". Add QEnvironmentHexEncoded,
3437 QEnvironmentUnset and QEnvironmentReset.
3438 (remote_protocol_features): Add QEnvironmentHexEncoded,
3439 QEnvironmentUnset and QEnvironmentReset packets.
3440 (send_environment_packet): New function.
3441 (extended_remote_environment_support): Likewise.
3442 (extended_remote_create_inferior): Call
3443 extended_remote_environment_support.
3444 (_initialize_remote): Add QEnvironmentHexEncoded,
3445 QEnvironmentUnset and QEnvironmentReset packet configs.
3446 * unittests/environ-selftests.c (gdb_selftest_env_var):
3447 New variable.
3448 (test_vector_initialization): New function.
3449 (test_init_from_host_environ): Likewise.
3450 (test_reinit_from_host_environ): Likewise.
3451 (test_set_A_unset_B_unset_A_cannot_find_A_can_find_B):
3452 Likewise.
3453 (test_unset_set_empty_vector): Likewise.
3454 (test_vector_clear): Likewise.
3455 (test_std_move): Likewise.
3456 (test_move_constructor):
3457 (test_self_move): Likewise.
3458 (test_set_unset_reset): Likewise.
3459 (run_tests): Rewrite in terms of the functions above.
3460
654670a4
WP
34612017-08-31 Weimin Pan <weimin.pan@oracle.com>
3462
3463 * sparc64-tdep.c (adi_stat_t): Fix comment formatting.
3464 (adi_available): Use a temp variable of type CORE_ADDR as argument
3465 3 when calling target_auxv_search.
3466 (adi_normalize_address): Use masks and xor operators to calculate
3467 normalized address.
3468 (adi_read_versions, adi_write_versions, adi_print_versions)
3469 (do_examine, do_assign): Use paddress.
3470
7755ddb7
JB
34712017-08-29 John Baldwin <jhb@FreeBSD.org>
3472
3473 * mips-fbsd-nat.c (getfpregs_supplies): Return true for FIR.
3474 * mips-fbsd-tdep.c (mips_fbsd_supply_fpregs): Split supply of FSR
3475 out of loop and add supply of FIR.
3476 (mips_fbsd_collect_fpregs): Split collect of FSR out of loop and
3477 add collect of FIR.
3478
fd437cbc
SM
34792017-08-28 Simon Marchi <simon.marchi@ericsson.com>
3480
3804a343 3481 PR gdb/21827
fd437cbc
SM
3482 * cli/cli-script.c (define_command): Don't convert command name
3483 to lower case.
3484
988f6b3d
JB
34852017-08-25 Joel Brobecker <brobecker@adacore.com>
3486
3487 * ada-lang.c (ada_lookup_struct_elt_type): Remove parameter "dispp".
3488 Update all callers accordingly. Remove all code blocks handling
3489 the case where DISPP is not NULL.
3490
663c44ac
JK
34912017-08-24 Jan Kratochvil <jan.kratochvil@redhat.com>
3492
3493 PR symtab/22003
3494 * dwarf2read.c (dwarf2_const_value_attr, dump_die_shallow)
3495 (dwarf2_get_attr_constant_value, dwarf2_fetch_constant_bytes)
3496 (skip_form_bytes, attr_form_is_constant): Handle DW_FORM_implicit_const.
3497
f1902523
JK
34982017-08-24 Jan Kratochvil <jan.kratochvil@redhat.com>
3499
3500 * dwarf2read.c (build_type_psymtabs_reader): New prototype.
3501 (process_psymtab_comp_unit): Accept IS_DEBUG_TYPES.
3502 (read_comp_units_from_section): New parameter abbrev_section, use
3503 read_and_check_comp_unit_head, allocate signatured_type if needed.
3504 (create_all_comp_units): Update read_comp_units_from_section caller.
3505
87215ad1
SDJ
35062017-08-23 Pedro Alves <palves@redhat.com>
3507
3508 PR remote/21852
3509 * remote.c (add_current_inferior_and_thread): Set inferior_ptid
3510 to null_ptid and switch to thread without reading the registers
3511 after adding the inferior.
3512
6e41ddec
JK
35132017-08-23 Jan Kratochvil <jan.kratochvil@redhat.com>
3514
3515 * NEWS (Changes since GDB 8.0): Add set compile-gcc and show
3516 compile-gcc.
3517 * compile/compile.c (compile_gcc, show_compile_gcc): New.
3518 (compile_to_object): Implement compile_gcc.
3519 (_initialize_compile): Install "set compile-gcc". Initialize
3520 compile_gcc.
3521
e68c32d5
JK
35222017-08-23 Jan Kratochvil <jan.kratochvil@redhat.com>
3523
3524 * compile/compile.c (compile_to_object): Conditionally call
3525 set_verbose. Conditionally call compile or compile_v0.
3526
58afddc6
WP
35272017-08-07 Weimin Pan <weimin.pan@oracle.com>
3528
3529 * sparc64-tdep.h: (adi_normalize_address): New export.
3530 * sparc-nat.h: (open_adi_tag_fd): New export.
3531 * sparc64-linux-nat.c: (open_adi_tag_fd): New function.
3532 * sparc64-linux-tdep.c:
3533 (SEGV_ACCADI, SEGV_ADIDERR, SEGV_ADIPERR) New defines.
3534 (sparc64_linux_handle_segmentation_fault): New function.
3535 (sparc64_linux_init_abi): Register
3536 sparc64_linux_handle_segmentation_fault
3537 * sparc64-tdep.c: Include cli-utils.h,gdbcmd.h,auxv.h.
3538 (sparc64_addr_bits_remove): New function.
3539 (sparc64_init_abi): Register sparc64_addr_bits_remove.
3540 (MAX_PROC_NAME_SIZE): New macro.
3541 (AT_ADI_BLKSZ, AT_ADI_NBITS, AT_ADI_UEONADI) New defines.
3542 (sparc64adilist): New variable.
3543 (adi_proc_list): New variable.
3544 (find_adi_info): New function.
3545 (add_adi_info): New function.
3546 (get_adi_info_proc): New function.
3547 (get_adi_info): New function.
3548 (info_adi_command): New function.
3549 (read_maps_entry): New function.
3550 (adi_available): New function.
3551 (adi_normalize_address): New function.
3552 (adi_align_address): New function.
3553 (adi_convert_byte_count): New function.
3554 (adi_tag_fd): New function.
3555 (adi_is_addr_mapped): New function.
3556 (adi_read_versions): New function.
3557 (adi_write_versions): New function.
3558 (adi_print_versions): New function.
3559 (do_examine): New function.
3560 (do_assign): New function.
3561 (adi_examine_command): New function.
3562 (adi_assign_command): New function.
3563 (_initialize_sparc64_adi_tdep): New function.
3564
11db9430
SM
35652017-08-22 Simon Marchi <simon.marchi@ericsson.com>
3566
3567 * breakpoint.c (breakpoints_info): Rename to ...
3568 (info_breakpoints_command): ... this.
3569 (watchpoints_info): Rename to ...
3570 (info_watchpoints_command): ... this.
3571 (tracepoints_info): Rename to ...
3572 (info_tracepoints_command): ... this.
3573 (_initialize_breakpoint): Adjust.
3574 * dcache.c (dcache_info): Rename to ...
3575 (info_display_command): ... this.
3576 (_initialize_dcache): Adjust.
3577 * frame.h (args_info): Rename to ...
3578 (info_args_command): ... this.
3579 (locals_info): Rename to ...
3580 (info_locals_command): ... this.
3581 * infcmd.c (nofp_registers_info): Rename to ...
3582 (info_registers_command): ... this.
3583 (float_info): Rename to ...
3584 (info_float_command): ... this.
3585 (program_info): Rename to ...
3586 (info_program_command): ... this.
3587 (all_registers_info): Rename to ...
3588 (info_all_registers_command): ... this.
3589 (vector_info): Rename to ...
3590 (info_vector_command): ... this.
3591 (float_info): Rename to ...
3592 (info_float_command): ... this.
3593 (_initialize_infcmd): Adjust.
3594 * inferior.h (term_info): Rename to ...
3595 (info_terminal_command): ... this.
3596 * inflow.c (term_info): Rename to ...
3597 (info_terminal_command): ... this.
3598 (_initialize_inflow): Adjust.
3599 * infrun.c (signals_info): Rename to ...
3600 (info_signals_command): ... this.
3601 (_initialize_infrun): Adjust.
3602 * objc-lang.c (classes_info): Rename to ...
3603 (info_classes_command): ... this.
3604 (selectors_info): Rename to ...
3605 (info_selectors_command): ... this.
3606 (_initialize_objc_language): Adjust.
3607 * printcmd.c (sym_info): Rename to ...
3608 (info_symbol_command): ... this.
3609 (address_info): Rename to ...
3610 (info_address_command): ... this.
3611 (display_info): Rename to ...
3612 (info_display_command): ... this.
3613 (_initialize_printcmd): Adjust.
3614 * reverse.c (bookmarks_info): Rename to ...
3615 (info_breakpoints_command): ... this.
3616 (_initialize_reverse): Adjust.
3617 * ser-go32.c (dos_info): Rename to ...
3618 (info_serial_command): ... this.
3619 (_initialize_ser_dos): Adjust.
3620 * skip.c (skip_info): Rename to ...
3621 (info_skip_command): ... this.
3622 (_initialize_step_skip): Adjust.
3623 * source.c (line_info): Rename to ...
3624 (info_line_command): ... this.
3625 (source_info): Rename to ...
3626 (info_source_command)
3627 * stack.c (frame_info): Rename to ...
3628 (info_frame_command): ... this.
3629 (locals_info): Rename to ...
3630 (info_locals_command): ... this.
3631 (args_info): Rename to ...
3632 (info_args_command): ... this.
3633 (_initialize_stack): Adjust.
3634 * symtab.c (sources_info): Rename to ...
3635 (info_sources_command): ... this.
3636 (variables_info): Rename to ...
3637 (info_variables_command): ... this.
3638 (functions_info): Rename to ...
3639 (info_functions_command): ... this.
3640 (types_info): Rename to ...
3641 (info_types_command): ... this.
3642 (_initialize_symtab): Adjust.
3643 * target.c (target_info): Rename to ...
3644 (info_target_command): ... this.
3645 (initialize_targets): Adjust.
3646 * tracepoint.c (tvariables_info): Rename to ...
3647 (info_tvariables_command): ... this.
3648 (scope_info): Rename to ...
3649 (info_scope_command): ... this.
3650 (trace_dump_actions): Adjust.
3651 (_initialize_tracepoint): Adjust.
3652
b270e6f9
TT
36532017-08-22 Tom Tromey <tom@tromey.com>
3654
3655 * breakpoint.h (install_breakpoint): Update.
3656 * breakpoint.c (add_solib_catchpoint): Update.
3657 (install_breakpoint): Change argument to a std::unique_ptr.
3658 (create_fork_vfork_event_catchpoint): Use std::unique_ptr.
3659 (create_breakpoint_sal, create_breakpoint): Update.
3660 (watch_command_1, catch_exec_command_1)
3661 (strace_marker_create_breakpoints_sal): Use std::unique_ptr.
3662 (add_to_breakpoint_chain): Change argument to a std::unique_ptr.
3663 Return the breakpoint.
3664 (set_raw_breakpoint_without_location, set_raw_breakpoint)
3665 (new_single_step_breakpoint): Update.
3666 * break-catch-throw.c (handle_gnu_v3_exceptions): Use
3667 std::unique_ptr.
3668 * break-catch-syscall.c (create_syscall_event_catchpoint): Use
3669 std::unique_ptr.
3670 * break-catch-sig.c (create_signal_catchpoint): Use
3671 std::unique_ptr.
3672 * ada-lang.c (create_ada_exception_catchpoint): Use
3673 std::unique_ptr.
3674
36bd8eaa
TT
36752017-08-22 Tom Tromey <tom@tromey.com>
3676
3677 * breakpoint.c (add_solib_catchpoint): Use std::unique_ptr.
3678
56f37645
TT
36792017-08-22 Tom Tromey <tom@tromey.com>
3680
3681 * psymtab.c (psymtab_search_name): Return a unique_xmalloc_ptr.
3682 (lookup_partial_symbol): Update.
3683
0b581c69
TT
36842017-08-22 Tom Tromey <tom@tromey.com>
3685
3686 * source.h (rewrite_source_path): Return a unique_xmalloc_ptr.
3687 * source.c (rewrite_source_path): Return a unique_xmalloc_ptr.
3688 (find_and_open_source, symtab_to_fullname): Update.
3689 * psymtab.c (psymtab_to_fullname): Update.
3690
14278e1f
TT
36912017-08-22 Tom Tromey <tom@tromey.com>
3692
3693 * exec.c (exec_file_attach): Update.
3694 * linux-thread-db.c (try_thread_db_load): Update.
3695 * guile/scm-safe-call.c (gdbscm_safe_source_script): Update.
3696 * utils.c (gdb_realpath): Change return type.
3697 (gdb_realpath_keepfile): Update.
3698 (gdb_realpath_check_trailer, gdb_realpath_tests): New functions.
3699 (_initialize_utils): Register the new self test.
3700 * source.c (openp): Update.
3701 (find_and_open_source): Update.
3702 * nto-tdep.c (nto_find_and_open_solib): Update.
3703 * main.c (set_gdb_data_directory): Update.
3704 (captured_main_1): Update.
3705 * dwarf2read.c (dwarf2_get_dwz_file): Update
3706 (dw2_map_symbol_filenames): Update.
3707 * auto-load.c (auto_load_safe_path_vec_update): Update.
3708 (filename_is_in_auto_load_safe_path_vec): Change type of
3709 "filename_realp".
3710 (auto_load_objfile_script): Update.
3711 (file_is_auto_load_safe): Update. Use std::string.
3712 * utils.h (gdb_realpath): Return a gdb::unique_xmalloc_ptr.
3713
4971c9a7
TT
37142017-08-22 Tom Tromey <tom@tromey.com>
3715
3716 * utils.c (gdb_realpath_keepfile): Return a
3717 gdb::unique_xmalloc_ptr.
3718 * exec.c (exec_file_attach): Update.
3719 * utils.h (gdb_realpath_keepfile): Return a
3720 gdb::unique_xmalloc_ptr.
3721
e3e41d58
TT
37222017-08-22 Tom Tromey <tom@tromey.com>
3723
3724 * compile/compile.c (compile_file_command): Use
3725 gdb::unique_xmalloc_ptr, std::string.
3726 * utils.c (gdb_abspath): Change return type.
3727 * source.c (openp): Update.
3728 * objfiles.c (allocate_objfile): Update.
3729 * main.c (set_gdb_data_directory): Update.
3730 * utils.h (gdb_abspath): Return a gdb::unique_xmalloc_ptr.
3731
0d999a6e
ZZ
37322017-08-22 Zhouyi Zhou <zhouzhouyi@gmail.com>
3733
3734 * cli-cmds.c (list_commands): List actual code around more than
3735 one location.
3736
329d5e7e
JB
37372017-08-21 John Baldwin <jhb@FreeBSD.org>
3738
3739 * fbsd-nat.c (fbsd_add_threads): Use array type for `lwps'.
3740
bf223d3e
PA
37412017-08-21 Pedro Alves <palves@redhat.com>
3742
3743 PR gdb/19487
3744 * c-exp.y (variable production): Handle function aliases.
3745 * minsyms.c (msymbol_is_text): New function.
3746 * minsyms.h (msymbol_is_text): Declare.
3747 * symtab.c (find_function_alias_target): New function.
3748 * symtab.h (find_function_alias_target): Declare.
3749
c973d0aa
PA
37502017-08-21 Pedro Alves <palves@redhat.com>
3751
3752 * eval.c (evaluate_subexp_standard) <OP_TYPE>: Don't dig past
3753 typedefs.
3754 * typeprint.c (whatis_exp): If handling "whatis", and expression
3755 is OP_TYPE, strip one typedef level. Otherwise don't strip
3756 typedefs here.
3757 * valops.c (value_cast): Save "to" type before resolving
3758 stubs/typedefs. Use that type as resulting value's type.
3759
2989a365
TT
37602017-08-18 Tom Tromey <tom@tromey.com>
3761 Pedro Alves <palves@redhat.com>
3762
3763 * spu-multiarch.c (parse_spufs_run): Use scoped_restore.
3764 * sol-thread.c (sol_thread_resume, sol_thread_wait)
3765 (sol_thread_xfer_partial, rw_common): Use scoped_restore.
3766 * procfs.c (procfs_do_thread_registers): Use scoped_restore.
3767 * proc-service.c (ps_xfer_memory): Use scoped_restore.
3768 * linux-tdep.c (linux_corefile_thread): Remove a cleanup.
3769 (linux_get_siginfo_data): Add "thread" argument. Use
3770 scoped_restore.
3771 * linux-nat.c (linux_child_follow_fork)
3772 (check_stopped_by_watchpoint): Use scoped_restore.
3773 * infrun.c (displaced_step_prepare_throw, write_memory_ptid)
3774 (THREAD_STOPPED_BY, handle_signal_stop): Use scoped_restore.
3775 (restore_inferior_ptid, save_inferior_ptid): Remove.
3776 * btrace.c (btrace_fetch): Use scoped_restore.
3777 * bsd-uthread.c (bsd_uthread_fetch_registers)
3778 (bsd_uthread_store_registers): Use scoped_restore.
3779 * breakpoint.c (reattach_breakpoints, detach_breakpoints): Use
3780 scoped_restore.
3781 * aix-thread.c (aix_thread_resume, aix_thread_wait)
3782 (aix_thread_xfer_partial): Use scoped_restore.
3783 * inferior.h (save_inferior_ptid): Remove.
3784
e60eb288
YQ
37852017-08-18 Yao Qi <yao.qi@linaro.org>
3786
3787 PR tdep/21818
3788 * arm-tdep.c (gdb_print_insn_arm): Mark
3789 USER_SPECIFIED_MACHINE_TYPE if exec_bfd isn't NULL.
3790
6d580b63
YQ
37912017-08-18 Yao Qi <yao.qi@linaro.org>
3792
3793 * NEWS: Mention GDBserver's new option "--selftest".
3794 * Makefile.in (SFILES): Remove selftest.c, add common/selftest.c.
3795 * selftest.c: Move it to common/selftest.c.
3796 * selftest.h: Move it to common/selftest.h.
3797 * selftest-arch.c (reset): New function.
3798 (tests_with_arch): Call reset.
3799
86dcbf50
YQ
38002017-08-18 Yao Qi <yao.qi@linaro.org>
3801
3802 * selftest.c (run_tests): Don't call QUIT. Call debug_printf
3803 instead of exception_fprintf and printf_filtered.
3804
7649770c
YQ
38052017-08-18 Yao Qi <yao.qi@linaro.org>
3806
3807 * selftest.c (register_self_test): Rename it to
3808 selftests::register_test.
3809 (run_self_tests): selftest::run_tests.
3810 * selftest.h: Update declarations.
3811 * selftest-arch.c (register_self_test_foreach_arch): Rename it to
3812 selftests::register_test_foreach_arch.
3813 * selftest-arch.h: Update declaration.
3814 * aarch64-tdep.c: Update.
3815 * arm-tdep.c: Likewise.
3816 * disasm-selftests.c: Likewise.
3817 * dwarf2loc.c: Likewise.
3818 * dwarf2-frame.c: Likewise.
3819 * findvar.c: Likewise.
3820 * gdbarch-selftests.c: Likewise.
3821 * maint.c (maintenance_selftest): Likewise.
3822 * regcache.c: Likewise.
3823 * rust-exp.y: Likewise.
3824 * selftest-arch.c: Likewise.
3825 * unittests/environ-selftests.c: Likewise.
3826 * unittests/function-view-selftests.c: Likewise.
3827 * unittests/offset-type-selftests.c: Likewise.
3828 * unittests/optional-selftests.c: Likewise.
3829 * unittests/scoped_restore-selftests.c: Likewise.
3830 * utils-selftests.c: Likewise.
3831
b0cba12e
PA
38322017-08-17 Pedro Alves <palves@redhat.com>
3833
3834 * cli/cli-cmds.c (source_command): Delete 'old_source_verbose'
3835 local.
3836
4c8aa72d
PA
38372017-08-17 Pedro Alves <palves@redhat.com>
3838
3839 * dwarf2read.c (struct dwarf2_cu) <line_header_die_owner>: New
3840 field.
3841 (reset_die_in_process): Delete, replaced by ...
3842 (process_die_scope): ... this new class. Make it responsible for
3843 freeing cu->line_header too.
3844 (process_die): Use process_die_scope.
3845 (handle_DW_AT_stmt_list): Record the line header's owner CU/DIE in
3846 cu->line_header_die_owner. Don't release the line header if it's
3847 owned by the CU.
3848 (setup_type_unit_groups): Make the CU/DIE own the line header.
3849 Don't release the line header here.
3850
ba713918
AL
38512017-08-17 Alex Lindsay <alexlindsay239@gmail.com> (tiny change)
3852
3853 * elfread.c (elf_read_minimal_symbols): xfree synthsyms.
3854
44d0fb3a
RK
38552017-08-17 Ruslan Kabatsayev <b7.10110111@gmail.com>
3856
3857 * NEWS: Mention new shortcuts for nexti and stepi in TUI
3858 Single-Key mode
3859
a5afdb16
RK
38602017-08-16 Ruslan Kabatsayev <b7.10110111@gmail.com>
3861
3862 * tui/tui.c (tui_commands): Add "nexti" and "stepi" to the Single-Key
3863 mode command list.
3864
47613aeb
SH
38652017-08-15 Stafford Horne <shorne@gmail.com>
3866
3867 * MAINTAINERS (Write After Approval): Add Stafford Horne.
3868
9c3cc999
SH
38692017-08-15 Stafford Horne <shorne@gmail.com>
3870
3871 * xtensa-tdep.c (xtensa_init_reggroups): Use xstrdup for cpname.
3872
206726fb
SDJ
38732017-08-15 Sergio Durigan Junior <sergiodj@redhat.com>
3874
3875 PR gdb/21954
3876 * infcmd.c (unset_environment_command): Use the 'clear' method on
3877 the environment instead of resetting it.
3878
0335ac6d
JB
38792017-08-15 John Baldwin <jhb@FreeBSD.org>
3880
3881 * fbsd-nat.c (fbsd_convert_siginfo): Fix compile on big-endian
3882 platforms.
3883
d3abe1c8
TT
38842017-08-14 Tom Tromey <tom@tromey.com>
3885
3886 * valprint.c (print_octal_chars): Use HOST_CHAR_BIT.
3887 (print_binary_chars): Likewise.
3888 (BITS_IN_BYTES): Remove.
3889
d6382fff
TT
38902017-08-14 Tom Tromey <tom@tromey.com>
3891
3892 PR gdb/21675
3893 * valprint.c (LOW_ZERO): Change value to 034.
3894 (print_octal_chars): Add static_asserts for octal constants.
3895 * printcmd.c (print_scalar_formatted): Add 'd' case.
3896
f978cb06
TT
38972017-08-11 Tom Tromey <tom@tromey.com>
3898
3899 * symfile.c (add_symbol_file_command): Use std::vector.
3900
2f5404b3
TT
39012017-08-14 Tom Tromey <tom@tromey.com>
3902
3903 * break-catch-throw.c (handle_gnu_v3_exceptions): Use std::move.
3904 * break-catch-syscall.c (create_syscall_event_catchpoint): Use
3905 std::move.
3906 * break-catch-sig.c (create_signal_catchpoint): Use std::move.
3907
de7985c3
PA
39082017-08-11 Pedro Alves <palves@redhat.com>
3909
3910 * infrun.c (process_event_stop_test): Adjust
3911 function_name_is_marked_for_skip call.
3912 * skip.c: Include <list>.
3913 (skiplist_entry): Make it a class with private fields, and
3914 getters/setters.
3915 (skiplist_entry_chain): Delete.
3916 (skiplist_entries): New.
3917 (skiplist_entry_count): Delete.
3918 (highest_skiplist_entry_num): New.
3919 (ALL_SKIPLIST_ENTRIES, ALL_SKIPLIST_ENTRIES_SAFE): Delete.
3920 (add_skiplist_entry): Delete.
3921 (skiplist_entry::skiplist_entry): New.
3922 (skiplist_entry::add_entry): New.
3923 (skip_file_command, skip_function): Adjust.
3924 (compile_skip_regexp): Delete.
3925 (skip_command): Don't compile regexp here. Adjust to use
3926 skiplist_entry::add_entry.
3927 (skip_info): Adjust to use range-for and getters.
3928 (skip_enable_command, skip_disable_command): Adjust to use
3929 range-for and setters.
3930 (skip_delete_command): Adjust to use std::list.
3931 (add_skiplist_entry): Delete.
3932 (skip_file_p): Delete, refactored as ...
3933 (skiplist_entry::do_skip_file_p): ... this new method.
3934 (skip_gfile_p): Delete, refactored as ...
3935 (skiplist_entry::do_gskip_file_p): ... this new method.
3936 (skip_function_p, skip_rfunction_p): Delete, refactored as ...
3937 (skiplist_entry::skip_function_p): ... this new method.
3938 (function_name_is_marked_for_skip): Now returns bool, and takes
3939 the function sal by const reference. Adjust to use range-for and
3940 skiplist_entry methods.
3941 (_initialize_step_skip): Remove references to
3942 skiplist_entry_chain, skiplist_entry_count.
3943 * skip.h (function_name_is_marked_for_skip): Now returns bool, and
3944 takes the function sal by const reference.
3945
be7d3cd5
YQ
39462017-08-11 Yao Qi <yao.qi@linaro.org>
3947
3948 * dwarf2-frame.c (clear_pointer_cleanup): Remove.
3949 (dwarf2_frame_cache): Remove reset_cache_cleanup.
3950 (dwarf2_frame_cache):
3951 * frame-unwind.c (frame_unwind_try_unwinder): Catch
3952 RETURN_MASK_ALL and set *this_case to NULL.
3953 * frame-unwind.h: Update comments.
3954
1c90d9f0
YQ
39552017-08-11 Yao Qi <yao.qi@linaro.org>
3956
3957 * dwarf2-frame.c (dwarf2_frame_state_alloc_regs): Remove.
3958 (dwarf2_frame_state_copy_regs): Remove.
3959 (dwarf2_frame_state_free_regs): Remove.
3960 (dwarf2_frame_state::~dwarf2_frame_state): Remove.
3961 (dwarf2_restore_rule): Call method .alloc_regs instead of
3962 dwarf2_frame_state_alloc_regs.
3963 (execute_cfa_program): Likewise. Call dwarf2_frame_state_reg_info
3964 constructor. Call std::move.
3965 (dwarf2_fetch_cfa_info): Don't call dwarf2_frame_state_copy_regs.
3966 (dwarf2_frame_cache): Likewise.
3967
3968 [GDB_SELF_TEST]: Include selftest.h and
3969 selftest-arch.h.
3970 [GDB_SELF_TEST] (execute_cfa_program_test): New function.
3971 (_initialize_dwarf2_frame) [GDB_SELF_TEST]: Register
3972 execute_cfa_program_test.
3973
3974 * dwarf2-frame.h (dwarf2_frame_state_reg_info): Add ctor, dtor,
3975 copy ctor, assignment operator, move assignment.
3976 <alloc_regs>: New method.
3977 <swap>: New method.
3978 (struct dwarf2_frame_state): Delete dtor.
3979 (dwarf2_frame_state_alloc_regs): Remove declaration.
3980 * sparc-tdep.c (sparc_execute_dwarf_cfa_vendor_op): Don't call
3981 dwarf2_frame_state_alloc_regs, use .alloc_regs instead.
3982
afe37d6b
YQ
39832017-08-11 Yao Qi <yao.qi@linaro.org>
3984
3985 * dwarf2-frame.c (dwarf2_frame_state_free): Remove.
3986 (dwarf2_frame_state::dwarf2_frame_state): New.
3987 (dwarf2_frame_state::~dwarf2_frame_state): New.
3988 (dwarf2_fetch_cfa_info): Update.
3989 (dwarf2_frame_cache): Remove old_chain. Change 'fs' to an object
3990 rather than a pointer. Update code.
3991 * dwarf2-frame.h (struct dwarf2_frame_state): Declare ctor and
3992 dtor.
3993 <data_align, code_align, retaddr_column>: Change them to const.
3994 <armcc_cfa_offsets_sf, armcc_cfa_offsets_reversed>: Change them
3995 to bool.
3996
b348037f
YQ
39972017-08-11 Yao Qi <yao.qi@linaro.org>
3998
3999 * dwarf2-frame.h (struct dwarf2_frame_state_reg) <exp_len>: Remove.
4000 <loc.exp>: New field.
4001 * dwarf2-frame.c (execute_cfa_program): Update.
4002 (dwarf2_frame_prev_register): Update.
4003
e7c9de26
PA
40042017-08-10 Pedro Alves <palves@redhat.com>
4005
4006 * common/gdb_unique_ptr.h (xfree_deleter<T[]>): Define.
4007
e8c6b620
JB
40082017-08-09 John Baldwin <jhb@FreeBSD.org>
4009
4010 * fbsd-nat.c (struct fbsd_fork_info): Remove.
4011 (fbsd_pending_children): Use std::list.
4012 (fbsd_remember_child): Likewise.
4013 (fbsd_is_child_pending): Likewise.
4014 (fbsd_pending_vfork_done): Use std::forward_list.
4015 (fbsd_add_vfork_done): Likewise.
4016 (fbsd_is_vfork_done_pending): Likewise.
4017 (fbsd_next_vfork_done): Likewise.
4018
e4a26669
JB
40192017-08-09 John Baldwin <jhb@FreeBSD.org>
4020
4021 * fbsd-nat.c [HAVE_KINFO_GETVMMAP] (struct free_deleter): New.
4022 (fbsd_find_memory_regions): Use free_deleter with std::unique_ptr.
4023 [!HAVE_KINFO_GETVMMAP] (fbsd_find_memory_regions): Use std::string
4024 for `mapfilename'.
4025 (fbsd_xfer_partial): Use gdb::byte_vector.
af3881e6 4026 (fbsd_add_threads): Use gdb::unique_xmalloc_ptr.
e4a26669 4027
142311d3
JB
40282017-08-09 John Baldwin <jhb@FreeBSD.org>
4029
4030 * fbsd-nat.c: [!HAVE_KINFO_GETVMMAP]: Include <sys/user.h> and
4031 "filestuff.h".
4032 (fbsd_find_memory_regions): Fix `mapfile' initialization.
4033
42fa2e0e
TT
40342017-08-09 Tom Tromey <tom@tromey.com>
4035
4036 * skip.c (skiplist_entry): New constructor.
4037 (skiplist_entry::enabled, skiplist_entry::function_is_regexp)
4038 (skiplist_entry::file_is_glob): Now bool.
4039 (skiplist_entry::file, skiplist_entry::function): Now
4040 std::string.
4041 (make_skip_entry): Return a unique_ptr. Use new.
4042 (free_skiplist_entry, free_skiplist_entry_cleanup)
4043 (make_free_skiplist_entry_cleanup): Remove.
4044 (skip_command, skip_disable_command, add_skiplist_entry)
4045 (skip_form_bytes, compile_skip_regexp, skip_command, skip_info)
4046 (skip_file_p, skip_gfile_p, skip_function_p, skip_rfunction_p)
4047 (function_name_is_marked_for_skip): Update.
4048 (skip_delete_command): Update. Use delete.
4049
cd3af38d
JW
40502017-08-09 Jiong Wang <jiong.wang@arm.com>
4051
4052 * aarch64-linux-tdep.c: Include "auxv.h" and "elf/common.h".
4053 (aarch64_linux_core_read_description): New function.
4054 (aarch64_linux_init_abi): Register gdbarch_core_read_description.
4055
29592bde
PA
40562017-08-09 Pedro Alves <palves@redhat.com>
4057
4058 * cp-name-parser.y (cp_comp_to_string): Return a
4059 gdb::unique_xmalloc_ptr<char>.
4060 * cp-support.c (replace_typedefs_qualified_name)
4061 (replace_typedefs): Adjust to use gdb::unique_xmalloc_ptr<char>.
4062 (cp_canonicalize_string_full): Use op= instead of explicit
4063 convertion.
4064 (cp_class_name_from_physname, method_name_from_physname)
4065 (cp_func_name, cp_remove_params): Adjust to use
4066 gdb::unique_xmalloc_ptr<char>.
4067 * cp-support.h (cp_comp_to_string): Return a
4068 gdb::unique_xmalloc_ptr<char>.
4069 * python/py-type.c (typy_lookup_type): Adjust to use
4070 gdb::unique_xmalloc_ptr<char>.
4071
b3340438
L
40722017-08-09 H.J. Lu <hongjiu.lu@intel.com>
4073
4074 * dwarf2read.c (dwarf2_string_attr): Fix a typo.
4075
e88e8651
YQ
40762017-08-09 Alex Lindsay <alexlindsay239@gmail.com>
4077 Yao Qi <yao.qi@linaro.org>
4078
4079 * cp-support.c (cp_canonicalize_string_full): Use
4080 gdb::unique_xmalloc_ptr<char>.
4081 (cp_canonicalize_string): Likewise.
4082
f5a29eb0
YQ
40832017-08-09 Yao Qi <yao.qi@linaro.org>
4084
4085 * features/Makefile (WHICH): Remove i386/ non-linux stuff.
4086 * regformats/i386/amd64-avx-avx512.dat: Remove.
4087 * regformats/i386/amd64-avx-mpx-avx512-pku.dat: Remove.
4088 * regformats/i386/amd64-avx-mpx.dat:Remove.
4089 * regformats/i386/amd64-avx.dat: Remove.
4090 * regformats/i386/amd64-mpx.dat: Remove.
4091 * regformats/i386/i386-avx-avx512.dat: Remove.
4092 * regformats/i386/i386-avx-mpx-avx512-pku.dat: Remove.
4093 * regformats/i386/i386-avx-mpx.dat: Remove.
4094 * regformats/i386/i386-mmx.dat: Remove.
4095 * regformats/i386/i386-mpx.dat: Remove.
4096
57757c2f
YQ
40972017-08-09 Yao Qi <yao.qi@linaro.org>
4098
4099 * amd64-tdep.h (tdesc_x32): Remove the declaration.
4100 * amd64-tdep.c: Don't include features/i386/x32*.c.
4101 (_initialize_amd64_tdep): Don't call initialize_tdesc_x32*
4102 functions.
4103 * features/Makefile (WHICH): Remove i386/x32, i386/x32-avx,
4104 and i386/x32-avx-avx512.
4105 (XMLTOC): Remove i386/x32-avx.xml, i386/x32-avx-avx512.xml,
4106 and i386/x32.xml.
4107 * features/i386/x32-avx-avx512.c: Removed.
4108 * features/i386/x32-avx-avx512.xml: Removed.
4109 * features/i386/x32-avx.c: Removed.
4110 * features/i386/x32-avx.xml: Removed.
4111 * features/i386/x32.c: Removed.
4112 * features/i386/x32.xml: Removed.
4113 * regformats/i386/x32-avx-avx512.dat: Removed.
4114 * regformats/i386/x32-avx.dat: Removed.
4115 * regformats/i386/x32.dat: Removed.
4116
ba7b109b
MR
41172017-08-07 Maciej W. Rozycki <macro@imgtec.com>
4118
4119 PR breakpoints/21886
4120 * mem-break.c (default_memory_insert_breakpoint): Use
4121 `->placed_address' rather than `->reqstd_address' for the
4122 breakpoint location.
4123
e347efc3
MR
41242017-08-07 Maciej W. Rozycki <macro@imgtec.com>
4125
4126 * arch-utils.c (default_print_insn): Remove arch/mach/endian
4127 assertions.
4128
0dba2a6c
MR
41292017-08-07 Maciej W. Rozycki <macro@imgtec.com>
4130
4131 * gdbarch.sh (gdbarch_info): Replace the `tdep_info' member with
4132 a union of `tdep_info', `tdesc_data' and `id'.
4133 * aarch64-tdep.c (aarch64_gdbarch_init): Use `info.tdesc_data'
4134 rather than `info.tdep_info'.
4135 * amd64-linux-tdep.c (amd64_linux_init_abi): Likewise.
4136 * i386-linux-tdep.c (i386_linux_init_abi): Likewise.
4137 * i386-tdep.c (i386_gdbarch_init): Likewise.
4138 * mips-linux-tdep.c (mips_linux_init_abi): Likewise.
4139 * mips-tdep.c (mips_gdbarch_init): Likewise.
4140 * nds32-tdep.c (nds32_gdbarch_init): Likewise.
4141 * rs6000-tdep.c (rs6000_gdbarch_init): Likewise.
4142 * ppc-linux-tdep.c (ppu2spu_sniffer): Use `info.id' rather than
4143 `info.tdep_info'.
4144 (ppc_linux_init_abi): Use `info.tdesc_data' rather than
4145 `info.tdep_info'.
4146 * sparc-tdep.c (sparc32_gdbarch_init): Likewise.
4147 * spu-multiarch.c (spu_gdbarch): Use `info.id' rather than
4148 `info.tdep_info'.
4149 * spu-tdep.c (spu_gdbarch_init): Likewise.
4150 * gdbarch.h: Regenerate.
4151
16eb6b2d
LS
41522017-08-07 Leszek Swirski <leszeks@google.com>
4153
7b005726 4154 PR symtab/20899
16eb6b2d
LS
4155 * dwarf2read.c (dwarf2_string_attr): Allow DW_FORM_GNU_strp_alt.
4156
74cbb09e
SM
41572017-08-07 Simon Marchi <simon.marchi@ericsson.com>
4158
4159 * remote-sim.c (gdbsim_load): Remove char **argv local variable.
4160 (gdbsim_open): Rename gdb_argv args object to argv.
4161
ee0c3293
TT
41622017-08-05 Tom Tromey <tom@tromey.com>
4163
4164 * compile/compile-object-load.c (compile_object_load): Use
4165 gdb::unique_xmalloc_ptr.
4166 * cli/cli-dump.c (scan_filename): Rename from
4167 scan_filename_with_cleanup. Change return type.
4168 (scan_expression): Rename from scan_expression_with_cleanup.
4169 Change return type.
4170 (dump_memory_to_file, dump_value_to_file, restore_command):
4171 Use gdb::unique_xmalloc_ptr. Update.
4172 * cli/cli-cmds.c (find_and_open_script): Use
4173 gdb::unique_xmalloc_ptr.
4174 * tracefile-tfile.c (tfile_open): Use gdb::unique_xmalloc_ptr.
4175 * symmisc.c (maintenance_print_symbols)
4176 (maintenance_print_msymbols): Use gdb::unique_xmalloc_ptr.
4177 * symfile.c (symfile_bfd_open, generic_load)
4178 (add_symbol_file_command, remove_symbol_file_command): Use
4179 gdb::unique_xmalloc_ptr.
4180 * source.c (openp): Use gdb::unique_xmalloc_ptr.
4181 * psymtab.c (maintenance_print_psymbols): Use
4182 gdb::unique_xmalloc_ptr.
4183 * corelow.c (core_open): Use gdb::unique_xmalloc_ptr.
4184 * breakpoint.c (save_breakpoints): Use gdb::unique_xmalloc_ptr.
4185 * solib.c (solib_map_sections): Use gdb::unique_xmalloc_ptr.
4186 (reload_shared_libraries_1): Likewise.
4187
3232fabd
TT
41882017-08-05 Tom Tromey <tom@tromey.com>
4189
4190 * rust-exp.y (rust_op_ptr, set_field): Remove typedefs.
4191 (rust_op_vector, rust_set_vector): New typedefs.
4192 (current_parser): New global.
4193 (work_obstack): Change to pointer type. Update all users.
4194 (rust_ast, pstate): Remove globals.
4195 (struct rust_parser): New.
4196 (%union) <params, field_inits>: Change type.
4197 (start, tuple_expr, unit_expr, struct_expr_list, literal)
4198 (field_expr, expr_list, maybe_expr_list, type_list): Update.
4199 (ast_call_ish, ast_path, ast_function_type, ast_tuple_type)
4200 (convert_params_to_types, convert_params_to_expression): Change
4201 type of "params".
4202 (ast_string): Change type of "fields".
4203 (rust_parse): Make a rust_parser. Remove cleanups.
4204 (rust_lex_tests): Make and install an auto_obstack.
4205
f02fd774
YQ
42062017-08-04 Yao Qi <yao.qi@linaro.org>
4207
4208 * configure.srv (ipa_x32_linux_regobj): New.
4209 * linux-amd64-ipa.c (get_ipa_tdesc): Use X86_TDESC_AVX_AVX512
4210 instead of X86_TDESC_AVX512.
4211 (initialize_low_tracepoint): Call
4212 init_registers_x32_avx_avx512_linux.
4213
91975afd
YQ
42142017-08-04 Yao Qi <yao.qi@linaro.org>
4215
4216 * utils.h (gdb_argv): Add namespace std for nullptr_t.
4217
2331fa3a
RK
42182017-08-03 Ruslan Kabatsayev <b7.10110111@gmail.com>
4219
4220 * MAINTAINERS (Write After Approval): Add Ruslan Kabatsayev.
4221
744e4fe1
TT
42222017-08-03 Tom Tromey <tom@tromey.com>
4223
4224 * utils.c (make_cleanup_freeargv, do_freeargv, gdb_buildargv):
4225 Remove.
4226 * utils.h (make_cleanup_freeargv, gdb_buildargv): Remove.
4227
1c034b67
TT
42282017-08-03 Tom Tromey <tom@tromey.com>
4229
4230 * python/py-param.c (compute_enum_values): Use gdb_argv.
4231
773a1edc
TT
42322017-08-03 Tom Tromey <tom@tromey.com>
4233
4234 * utils.h (struct gdb_argv_deleter): New.
4235 (gdb_argv): New class.
4236 * utils.c (gdb_argv::reset): New method.
4237 * tracepoint.c (delete_trace_variable_command): Use gdb_argv.
4238 * tracefile.c (tsave_command): Use gdb_argv.
4239 * top.c (new_ui_command): Use gdb_argv.
4240 * symmisc.c (maintenance_print_symbols)
4241 (maintenance_print_msymbols, maintenance_expand_symtabs): Use gdb_argv.
4242 * symfile.c (symbol_file_command, generic_load)
4243 (remove_symbol_file_command): Use gdb_argv.
4244 * stack.c (backtrace_command): Use gdb_argv.
4245 * source.c (add_path, show_substitute_path_command)
4246 (unset_substitute_path_command, set_substitute_path_command):
4247 Use gdb_argv.
4248 * skip.c (skip_command): Use gdb_argv. Use gdb_buildargv.
4249 * ser-mingw.c (pipe_windows_open): Use gdb_argv.
4250 * remote.c (extended_remote_run, remote_put_command)
4251 (remote_get_command, remote_delete_command): Use gdb_argv.
4252 * remote-sim.c (gdbsim_load, gdbsim_create_inferior)
4253 (gdbsim_open): Use gdb_argv.
4254 * python/py-cmd.c (gdbpy_string_to_argv): Use gdb_argv.
4255 * psymtab.c (maintenance_print_psymbols): Use gdb_argv.
4256 * procfs.c (procfs_info_proc): Use gdb_argv.
4257 * interps.c (interpreter_exec_cmd): Use gdb_argv.
4258 * infrun.c (handle_command): Use gdb_argv.
4259 * inferior.c (add_inferior_command, clone_inferior_command):
4260 Use gdb_argv.
4261 * guile/scm-string.c (gdbscm_string_to_argv): Use gdb_argv.
4262 * exec.c (exec_file_command): Use gdb_argv.
4263 * cli/cli-cmds.c (alias_command): Use gdb_argv.
4264 * compile/compile.c (build_argc_argv): Use gdb_argv.
4265
0d50bde3
TT
42662017-08-03 Tom Tromey <tom@tromey.com>
4267
4268 * python/python.c (gdbpy_decode_line): Use unique_xmalloc_ptr.
4269
7f968c89
TT
42702017-08-03 Tom Tromey <tom@tromey.com>
4271
4272 * python/python.c (compute_python_string): Return std::string.
4273 (gdbpy_eval_from_control_command): Update.
4274 (do_start_initialization): Use std::string.
4275 * python/py-varobj.c (py_varobj_iter_next): Use string_printf, not
4276 xstrprintf.
4277 * python/py-breakpoint.c (local_setattro): Use string_printf, not
4278 xstrprintf.
4279
3c9ebddd
TT
42802017-08-03 Tom Tromey <tom@tromey.com>
4281
4282 * top.h (do_restore_instream_cleanup): Remove.
4283 * top.c (do_restore_instream_cleanup): Remove.
4284 (read_command_file): Use scoped_restore.
4285 * cli/cli-script.c (execute_user_command): Use scoped_restore.
4286
b51b225e
TT
42872017-08-03 Tom Tromey <tom@tromey.com>
4288
4289 * cli/cli-script.c (execute_user_command)
4290 (execute_control_command): Use scoped_restore.
4291
ac991630
TT
42922017-08-03 Tom Tromey <tom@tromey.com>
4293
4294 * cli/cli-script.c (do_restore_user_call_depth): Remove.
4295 (execute_user_command): Remove user_call_depth; use
4296 user_args_stack's size instead.
4297
898e0c8e
TT
42982017-08-03 Tom Tromey <tom@tromey.com>
4299
4300 * top.h (in_user_command): Remove.
4301 * top.c (in_user_command): Remove.
4302 * cli/cli-script.c (do_restore_user_call_depth)
4303 (execute_user_command): Update.
4304
26fcd5d7
TT
43052017-08-03 Tom Tromey <tom@tromey.com>
4306
4307 * valops.c (search_struct_method): Use gdb::byte_vector.
4308 * valarith.c (value_concat): Use std::vector.
4309 * target.c (memory_xfer_partial): Use gdb::byte_vector.
4310 (simple_search_memory): Likewise.
4311 * printcmd.c (find_string_backward): Use gdb::byte_vector.
4312 * mi/mi-main.c (mi_cmd_data_write_memory): Use gdb::byte_vector.
4313 * gcore.c (gcore_copy_callback): Use gdb::byte_vector.
4314 * elfread.c (elf_rel_plt_read): Use std::string.
4315 * cp-valprint.c (cp_print_value): Use gdb::byte_vector.
4316 * cli/cli-dump.c (restore_section_callback): Use
4317 gdb::byte_vector.
4318
7c218e6c
TT
43192017-08-03 Tom Tromey <tom@tromey.com>
4320
4321 * jit.c (jit_reader_load_command): Use unique_xmalloc_ptr.
4322
31b68d4a
TT
43232017-08-03 Tom Tromey <tom@tromey.com>
4324
4325 * tui/tui-regs.c (tui_restore_gdbout): Remove.
4326 (tui_register_format): Use scoped_restore.
4327
2ec845e7
TT
43282017-08-03 Tom Tromey <tom@tromey.com>
4329
4330 * reverse.c (exec_direction_default): Remove.
4331 (exec_reverse_once): Use scoped_restore.
4332 * remote.c (restore_remote_timeout): Remove.
4333 (remote_flash_erase, remote_flash_write, remote_flash_done)
4334 (readchar, remote_serial_write): Use scoped_restore.
4335 * cli/cli-script.c (struct source_cleanup_lines_args)
4336 (source_cleanup_lines): Remove.
4337 (script_from_file): Use scoped_restore.
4338 * cli/cli-cmds.c (source_verbose_cleanup): Remove.
4339 (source_command): Use scoped_restore.
4340
b3bc8453
TT
43412017-08-03 Tom Tromey <tom@tromey.com>
4342
4343 * utils.h (make_cleanup_free_so): Remove.
4344 * utils.c (do_free_so, make_cleanup_free_so): Remove.
4345 * solist.h (struct so_deleter): New.
4346 (so_list_up): New typedef.
4347 * solib-svr4.c (svr4_read_so_list): Use so_list_up.
4348
e3ad2841
TT
43492017-08-03 Tom Tromey <tom@tromey.com>
4350
4351 * utils.h (make_cleanup_restore_current_language): Remove.
4352 * utils.c (do_restore_current_language)
4353 (make_cleanup_restore_current_language): Remove.
4354 * parse.c (parse_exp_in_context_1)
4355 (parse_expression_with_language): Use
4356 scoped_restore_current_language.
4357 * mi/mi-main.c (mi_cmd_execute): Use
4358 scoped_restore_current_language.
4359 * language.h (scoped_restore_current_language): New class.
4360
b80cf838
TT
43612017-08-03 Tom Tromey <tom@tromey.com>
4362
4363 * compile/compile.c (cleanup_unlink_file): Remove.
4364 (compile_to_object): Use gdb::unlinker.
4365 (eval_compile_command): Likewise.
4366
fad0444a
TT
43672017-08-03 Tom Tromey <tom@tromey.com>
4368
4369 * utils.h (make_cleanup_fclose): Remove.
4370 * utils.c (do_fclose_cleanup, make_cleanup_fclose): Remove.
4371
6e7bc05c
TT
43722017-08-03 Tom Tromey <tom@tromey.com>
4373
4374 * top.c (open_terminal_stream): Return gdb_file_up.
4375 (new_ui_command): Update.
4376
4a45905b
TT
43772017-08-03 Tom Tromey <tom@tromey.com>
4378
4379 * source.c (print_source_lines_base, forward_search_command)
4380 (reverse_search_command): Use gdb_file_up.
4381
7cd06d6e
TT
43822017-08-03 Tom Tromey <tom@tromey.com>
4383
4384 * fbsd-nat.c (fbsd_find_memory_regions): Update.
4385
ed166945
TT
43862017-08-03 Tom Tromey <tom@tromey.com>
4387
4388 * cli/cli-cmds.c (find_and_open_script): Change return type.
4389 Remove "streamp" and "full_path" parameters.
4390 (source_script_with_search): Update.
4391 * auto-load.c (source_script_file): Update.
4392 * cli/cli-cmds.h (find_and_open_script): Change type.
4393 (open_script): New struct.
4394
d419f42d
TT
43952017-08-03 Tom Tromey <tom@tromey.com>
4396
4397 * xml-support.c (xml_fetch_content_from_file): Update.
4398 * ui-file.c (stdio_file::open): Update.
4399 * tracefile-tfile.c (tfile_start): Update.
4400 * remote.c (remote_file_put, remote_file_get): Update.
4401 * nat/linux-procfs.c (linux_proc_get_int)
4402 (linux_proc_pid_get_state, linux_proc_tid_get_name): Update.
4403 * nat/linux-osdata.c (linux_common_core_of_thread): Update.
4404 (command_from_pid, commandline_from_pid, linux_xfer_osdata_cpus)
4405 (print_sockets, linux_xfer_osdata_shm, linux_xfer_osdata_sem)
4406 (linux_xfer_osdata_msg, linux_xfer_osdata_modules): Update.
4407 * nat/linux-btrace.c (linux_determine_kernel_start): Update.
4408 * linux-nat.c (linux_proc_pending_signals): Update.
4409 * dwarf2read.c (write_psymtabs_to_index): Use gdb_file_up.
4410 (file_closer): Remove.
4411 * compile/compile.c (compile_to_object): Update.
4412 * common/filestuff.h (struct gdb_file_deleter): New.
4413 (gdb_file_up): New typedef.
4414 (gdb_fopen_cloexec): Change return type.
4415 * common/filestuff.c (gdb_fopen_cloexec): Return gdb_file_up.
4416 * cli/cli-dump.c (fopen_with_cleanup): Remove.
4417 (dump_binary_file, restore_binary_file): Update.
4418 * auto-load.c (auto_load_objfile_script_1): Update.
4419
4a2b031d
TT
44202017-08-03 Tom Tromey <tom@tromey.com>
4421
4422 * tracepoint.c (tvariables_info_1): Use ui_out_emit_table.
4423 (info_static_tracepoint_markers_command): Likewise.
4424 * solib.c (info_sharedlibrary_command): Use ui_out_emit_table.
4425 * skip.c (skip_info): Use ui_out_emit_table.
4426 * progspace.c (print_program_space): Use ui_out_emit_table.
4427 * osdata.c (info_osdata): Use ui_out_emit_table.
4428 * mi/mi-cmd-info.c (mi_cmd_info_ada_exceptions): Use
4429 ui_out_emit_table.
4430 * linux-thread-db.c (info_auto_load_libthread_db): Use
4431 ui_out_emit_table.
4432 * inferior.c (print_inferior): Use ui_out_emit_table.
4433 * gdb_bfd.c (maintenance_info_bfds): Use ui_out_emit_table.
4434 * breakpoint.c (breakpoint_1): Use ui_out_emit_table.
4435 * auto-load.c (auto_load_info_scripts): Use ui_out_emit_table.
4436 * ada-tasks.c (print_ada_task_info): Use ui_out_emit_table.
4437 * ui-out.h (class ui_out_emit_table): New.
4438
a4f320fd
MR
44392017-08-02 Maciej W. Rozycki <macro@imgtec.com>
4440
4441 * mips-tdep.c (mips_fpu_type_str): New function.
4442 (mips_dump_tdep): Call it.
4443
a2f1f308
MR
44442017-08-01 Maciej W. Rozycki <macro@imgtec.com>
4445
4446 * mips-tdep.c (mips_gdbarch_init): Use MIPS_FPU_TYPE to access
4447 `->mips_fpu_type'.
4448
7e5ed83b
XR
44492017-07-31 Xavier Roirand <roirand@adacore.com>
4450
4451 * solib-darwin.c (DYLD_VERSION_MAX): Increase value.
4452
4c9dc811
XR
44532017-07-27 Xavier Roirand <roirand@adacore.com>
4454
4455 * MAINTAINERS (Write After Approval): Add Xavier Roirand.
4456
27d41eac
YQ
44572017-07-26 Yao Qi <yao.qi@linaro.org>
4458
4459 * cli/cli-cmds.c (maintenancechecklist): New variable.
4460 * gdbcmd.h (maintenancechecklist): Declare it.
4461 * i386-linux-tdep.c (_initialize_i386_linux_tdep) [GDB_SELF_TEST]:
4462 Call i386_linux_read_description with different masks.
4463 * maint.c (maintenance_check_command): New function.
4464 (_initialize_maint_cmds): Call add_prefix_cmd.
4465 * target-descriptions.c (tdesc_reg): override operator != and ==.
4466 (tdesc_type): Likewise.
4467 (tdesc_feature): Likewise.
4468 (target_desc): Likewise.
4469 [GDB_SELF_TEST] (selftests::record_xml_tdesc): New function.
4470 (maintenance_check_xml_descriptions): New function.
4471 (_initialize_target_descriptions) Add command "xml-descriptions".
4472 * target-descriptions.h (selftests::record_xml_tdesc): Declare.
4473
ea03d0d3
YQ
44742017-07-26 Yao Qi <yao.qi@linaro.org>
4475
4476 * i386-linux-tdep.c: Don't include features/i386/i386-*linux.c.
4477 Include features/i386/32bit-*.c.
4478 (i386_linux_read_description): Generate target description if it
4479 doesn't exist.
4480 (_initialize_i386_linux_tdep): Don't call _initialize_tdesc_i386
4481 functions.
4482 * features/i386/32bit-linux.c: Re-generated.
4483 * features/i386/32bit-sse.c: Likewise.
4484 * target-descriptions.c (print_c_feature::visit): Print code to
4485 set register number if needed.
4486 (print_c_feature) <m_next_regnum>: New field.
4487
25aa13e5
YQ
44882017-07-26 Yao Qi <yao.qi@linaro.org>
4489
4490 * features/Makefile (CFILES): Rename with TDESC_CFILES.
4491 (FEATURE_XMLFILES): New.
4492 (FEATURE_CFILES): New.
4493 New rules.
4494 (clean-cfiles): Remove generated c files.
4495 * features/i386/32bit-avx.c: Generated.
4496 * features/i386/32bit-avx512.c: Generated.
4497 * features/i386/32bit-core.c: Generated.
4498 * features/i386/32bit-linux.c: Generated.
4499 * features/i386/32bit-mpx.c: Generated.
4500 * features/i386/32bit-pkeys.c: Generated.
4501 * features/i386/32bit-sse.c: Generated.
4502 * target-descriptions.c: Include algorithm.
4503 (tdesc_element_visitor): Add method visit_end.
4504 (print_c_tdesc): Implement visit_end.
4505 (print_c_tdesc:: m_filename_after_features): Move it to
4506 protected.
4507 (print_c_feature): New class.
4508 (maint_print_c_tdesc_cmd): Use print_c_feature if XML file
4509 name starts with "i386/32bit-".
4510
6eb1e6a8
YQ
45112017-07-26 Yao Qi <yao.qi@linaro.org>
4512
4513 * target-descriptions.c (tdesc_element_visitor): New class.
4514 (tdesc_element): New class.
4515 (tdesc_reg): Inherit from tdesc_element.
4516 (tdesc_reg::accept): New function.
4517 (tdesc_type): Inherit from tdesc_element.
4518 (tdesc_type::accept): New function.
4519 (tdesc_feature): Inherit from tdesc_element.
4520 (tdesc_feature::accept): New function.
4521 (target_desc): Inherit from tdesc_element.
4522 (target_desc::target_desc): New.
4523 (target_desc::~target_desc): New.
4524 (target_desc::accept): New.
4525 (allocate_target_description): Use new.
4526 (free_target_description): Use delete.
4527 (print_c_tdesc): New class.
4528 (maint_print_c_tdesc_cmd): Adjust.
4529
4530 * features/aarch64.c: Re-generated.
4531 * features/arc-arcompact.c: Re-generated.
4532 * features/arc-v2.c: Re-generated.
4533 * features/arm/arm-with-iwmmxt.c: Re-generated.
4534 * features/arm/arm-with-m.c: Re-generated.
4535 * features/arm/arm-with-m-fpa-layout.c: Re-generated.
4536 * features/arm/arm-with-m-vfp-d16.c: Re-generated.
4537 * features/arm/arm-with-neon.c: Re-generated.
4538 * features/arm/arm-with-vfpv2.c: Re-generated.
4539 * features/arm/arm-with-vfpv3.c: Re-generated.
4540 * features/i386/amd64-avx-avx512.c: Re-generated.
4541 * features/i386/amd64-avx-avx512-linux.c: Re-generated.
4542 * features/i386/amd64-avx.c: Re-generated.
4543 * features/i386/amd64-avx-linux.c: Re-generated.
4544 * features/i386/amd64-avx-mpx-avx512-pku.c: Re-generated.
4545 * features/i386/amd64-avx-mpx-avx512-pku-linux.c: Re-generated.
4546 * features/i386/amd64-avx-mpx.c: Re-generated.
4547 * features/i386/amd64-avx-mpx-linux.c: Re-generated.
4548 * features/i386/amd64.c: Re-generated.
4549 * features/i386/amd64-linux.c: Re-generated.
4550 * features/i386/amd64-mpx.c: Re-generated.
4551 * features/i386/amd64-mpx-linux.c: Re-generated.
4552 * features/i386/i386-avx-avx512.c: Re-generated.
4553 * features/i386/i386-avx-avx512-linux.c: Re-generated.
4554 * features/i386/i386-avx.c: Re-generated.
4555 * features/i386/i386-avx-linux.c: Re-generated.
4556 * features/i386/i386-avx-mpx-avx512-pku.c: Re-generated.
4557 * features/i386/i386-avx-mpx-avx512-pku-linux.c: Re-generated.
4558 * features/i386/i386-avx-mpx.c: Re-generated.
4559 * features/i386/i386-avx-mpx-linux.c: Re-generated.
4560 * features/i386/i386.c: Re-generated.
4561 * features/i386/i386-linux.c: Re-generated.
4562 * features/i386/i386-mmx.c: Re-generated.
4563 * features/i386/i386-mmx-linux.c: Re-generated.
4564 * features/i386/i386-mpx.c: Re-generated.
4565 * features/i386/i386-mpx-linux.c: Re-generated.
4566 * features/i386/x32-avx-avx512.c: Re-generated.
4567 * features/i386/x32-avx-avx512-linux.c: Re-generated.
4568 * features/i386/x32-avx.c: Re-generated.
4569 * features/i386/x32-avx-linux.c: Re-generated.
4570 * features/i386/x32.c: Re-generated.
4571 * features/i386/x32-linux.c: Re-generated.
4572 * features/microblaze.c: Re-generated.
4573 * features/microblaze-with-stack-protect.c: Re-generated.
4574 * features/mips64-dsp-linux.c: Re-generated.
4575 * features/mips64-linux.c: Re-generated.
4576 * features/mips-dsp-linux.c: Re-generated.
4577 * features/mips-linux.c: Re-generated.
4578 * features/nds32.c: Re-generated.
4579 * features/nios2.c: Re-generated.
4580 * features/nios2-linux.c: Re-generated.
4581 * features/rs6000/powerpc-32.c: Re-generated.
4582 * features/rs6000/powerpc-32l.c: Re-generated.
4583 * features/rs6000/powerpc-403.c: Re-generated.
4584 * features/rs6000/powerpc-403gc.c : Re-generated.
4585 * features/rs6000/powerpc-405.c: Re-generated.
4586 * features/rs6000/powerpc-505.c: Re-generated.
4587 * features/rs6000/powerpc-601.c: Re-generated.
4588 * features/rs6000/powerpc-602.c: Re-generated.
4589 * features/rs6000/powerpc-603.c: Re-generated.
4590 * features/rs6000/powerpc-604.c: Re-generated.
4591 * features/rs6000/powerpc-64.c: Re-generated.
4592 * features/rs6000/powerpc-64l.c: Re-generated.
4593 * features/rs6000/powerpc-7400.c: Re-generated.
4594 * features/rs6000/powerpc-750.c: Re-generated.
4595 * features/rs6000/powerpc-860.c: Re-generated.
4596 * features/rs6000/powerpc-altivec32.c: Re-generated.
4597 * features/rs6000/powerpc-altivec32l.c: Re-generated.
4598 * features/rs6000/powerpc-altivec64.c: Re-generated.
4599 * features/rs6000/powerpc-altivec64l.c: Re-generated.
4600 * features/rs6000/powerpc-cell32l.c: Re-generated.
4601 * features/rs6000/powerpc-cell64l.c: Re-generated.
4602 * features/rs6000/powerpc-e500.c: Re-generated.
4603 * features/rs6000/powerpc-e500l.c: Re-generated.
4604 * features/rs6000/powerpc-isa205-32l.c: Re-generated.
4605 * features/rs6000/powerpc-isa205-64l.c: Re-generated.
4606 * features/rs6000/powerpc-isa205-altivec32l.c: Re-generated.
4607 * features/rs6000/powerpc-isa205-altivec64l.c: Re-generated.
4608 * features/rs6000/powerpc-isa205-vsx32l.c: Re-generated.
4609 * features/rs6000/powerpc-isa205-vsx64l.c: Re-generated.
4610 * features/rs6000/powerpc-vsx32.c: Re-generated.
4611 * features/rs6000/powerpc-vsx32l.c: Re-generated.
4612 * features/rs6000/powerpc-vsx64.c: Re-generated.
4613 * features/rs6000/powerpc-vsx64l.c: Re-generated.
4614 * features/rs6000/rs6000.c: Re-generated.
4615 * features/s390-linux32.c: Re-generated.
4616 * features/s390-linux32v1.c: Re-generated.
4617 * features/s390-linux32v2.c: Re-generated.
4618 * features/s390-linux64.c: Re-generated.
4619 * features/s390-linux64v1.c: Re-generated.
4620 * features/s390-linux64v2.c: Re-generated.
4621 * features/s390-te-linux64.c: Re-generated.
4622 * features/s390-tevx-linux64.c: Re-generated.
4623 * features/s390-vx-linux64.c: Re-generated.
4624 * features/s390x-linux64.c: Re-generated.
4625 * features/s390x-linux64v1.c: Re-generated.
4626 * features/s390x-linux64v2.c: Re-generated.
4627 * features/s390x-te-linux64.c: Re-generated.
4628 * features/s390x-tevx-linux64.c: Re-generated.
4629 * features/s390x-vx-linux64.c: Re-generated.
4630 * features/sparc/sparc32-solaris.c: Re-generated.
4631 * features/sparc/sparc64-solaris.c: Re-generated.
4632 * features/tic6x-c62x.c: Re-generated.
4633 * features/tic6x-c62x-linux.c: Re-generated.
4634 * features/tic6x-c64x.c: Re-generated.
4635 * features/tic6x-c64x-linux.c: Re-generated.
4636 * features/tic6x-c64xp.c: Re-generated.
4637 * features/tic6x-c64xp-linux.c: Re-generated.
4638
35b4818d
YQ
46392017-07-26 Yao Qi <yao.qi@linaro.org>
4640
4641 * i386-linux-tdep.c (i386_linux_read_description): New function.
4642 (i386_linux_core_read_description): Call
4643 i386_linux_read_description.
4644 * i386-linux-tdep.h (i386_linux_read_description): Declare.
4645 (tdesc_i386_linux, tdesc_i386_mmx_linux): Remove declarations.
4646 (tdesc_i386_avx_linux, tdesc_i386_mpx_linux): Likewise
4647 (tdesc_i386_avx_mpx_linux, tdesc_i386_avx_avx512_linux): Likewise.
4648 (tdesc_i386_avx_mpx_avx512_pku_linux): Likewise.
4649 * x86-linux-nat.c (x86_linux_read_description): Call
4650 i386_linux_read_description.
4651
8e2141c6
YQ
46522017-07-26 Yao Qi <yao.qi@linaro.org>
4653
4654 * NEWS: Mention it.
4655 * features/Makefile (%.c: %.xml): Pass the xml file name to
4656 command "maint print c-tdesc".
4657 * target-descriptions.c (maint_print_c_tdesc_cmd): Get file
4658 name from 'arg'.
4659
b468ff4c
YQ
46602017-07-26 Yao Qi <yao.qi@linaro.org>
4661
4662 * target-descriptions.c (target_desc): Add ctor and dtor. Do
4663 in-class initialization.
4664 (tdesc_create_feature): Call new instead of XCNEW.
4665 (free_target_description): Ue delete.
4666
b9c0e1b4
JB
46672017-07-25 John Baldwin <jhb@FreeBSD.org>
4668
4669 * configure.nat: Add "-lkvm" for NetBSD/sparc64 and fix typo.
4670
a04b5337
YQ
46712017-07-25 Yao Qi <yao.qi@linaro.org>
4672
4673 * amd64-tdep.c (amd64_init_abi): Make argument default_tdesc
4674 constant.
4675 (amd64_x32_init_abi): Likewise.
4676 * amd64-tdep.h (amd64_init_abi): Update declaration.
4677 (amd64_x32_init_abi): Likewise.
4678
02ad7fc2
YQ
46792017-07-25 Yao Qi <yao.qi@linaro.org>
4680
4681 PR tdep/21717
4682 * arm-linux-nat.c (arm_linux_fetch_inferior_registers): Update
4683 condition for FPSCR.
4684 (arm_linux_store_inferior_registers): Likewise.
4685
b6f48cb0
TT
46862017-07-22 Tom Tromey <tom@tromey.com>
4687
4688 * break-catch-syscall.c (struct catch_syscall_inferior_data)
4689 <syscalls_counts>: Now a std::vector.
4690 (get_catch_syscall_inferior_data): Use "new".
4691 (catch_syscall_inferior_data_cleanup): Use "delete".
4692 (insert_catch_syscall, remove_catch_syscall)
4693 (clear_syscall_counts): Update.
4694
e12c9b7a
TT
46952017-07-22 Tom Tromey <tom@tromey.com>
4696
4697 * break-catch-syscall.c (syscall_catchpoint)
4698 <syscalls_to_be_caught>: Now a std::vector<int>
4699 (~syscall_catchpoint): Remove.
4700 (insert_catch_syscall, remove_catch_syscall)
4701 (breakpoint_hit_catch_syscall, print_one_catch_syscall)
4702 (print_mention_catch_syscall, print_recreate_catch_syscall):
4703 Update.
4704 (create_syscall_event_catchpoint): Change type of "filter"
4705 parameter.
4706 (catch_syscall_split_args): Return a std::vector.
4707 (catch_syscall_command_1, catching_syscall_number_1): Update.
4708
4fa8aeac
TT
47092017-07-22 Tom Tromey <tom@tromey.com>
4710
4711 * break-catch-throw.c (struct exception_catchpoint)
4712 <exception_rx>: Now a std::string.
4713 (~exception_catchpoint): Remove.
4714 (print_one_detail_exception_catchpoint): Update.
4715 (handle_gnu_v3_exceptions): Change type of except_rx.
4716 (extract_exception_regexp): Return a std::string.
4717 (catch_exception_command_1): Update.
4718
f746a154
TT
47192017-07-22 Tom Tromey <tom@tromey.com>
4720
4721 * break-catch-sig.c (gdb_signal_type): Remove typedef.
4722 (struct signal_catchpoint) <signals_to_be_caught>: Now a
4723 std::vector.
4724 <catch_all>: Now a bool.
4725 (~signal_catchpoint): Remove.
4726 (signal_catchpoint_insert_location)
4727 (signal_catchpoint_remove_location)
4728 (signal_catchpoint_breakpoint_hit, signal_catchpoint_print_one)
4729 (signal_catchpoint_print_mention)
4730 (signal_catchpoint_print_recreate)
4731 (signal_catchpoint_explains_signal): Update.
4732 (create_signal_catchpoint): Change type of "filter" and
4733 "catch_all".
4734 (catch_signal_split_args): Return a std::vector. Change type of
4735 "catch_all".
4736 (catch_signal_command): Update.
4737
47e77640
PA
47382017-07-20 Pedro Alves <palves@redhat.com>
4739
4740 * ada-lang.c (ada_language_defn): Make extern.
4741 (_initialize_ada_language): Remove add_language call.
4742 * c-lang.c (c_language_defn, cplus_language_defn)
4743 (asm_language_defn, minimal_language_defn): Make extern.
4744 (_initialize_c_language): Delete.
4745 * completer.c (compare_cstrings): Delete, moved to utils.h.
4746 * d-lang.c (d_language_defn): Make extern.
4747 (_initialize_d_language): Remove add_language calls.
4748 * defs.h (enum language): Add comment.
4749 * f-lang.c (f_language_defn): Make extern.
4750 (_initialize_f_language): Remove add_language call.
4751 * go-lang.c (go_language_defn): Make extern.
4752 (_initialize_go_language): Remove add_language call.
4753 * language.c: Include <algorithm>.
4754 (languages): Redefine as const array.
4755 (languages_size, languages_allocsize, DEFAULT_ALLOCSIZE): Delete.
4756 (set_language_command): Handle "local". Use for-range loop.
4757 (set_language): Remove loop.
4758 (language_enum): Rewrite.
4759 (language_def, language_str): Remove loops.
4760 (add_language): Delete.
4761 (add_set_language_command): New, based on add_languages.
4762 (skip_language_trampoline): Adjust.
4763 (local_language_defn): Delete.
4764 (language_gdbarch_post_init): Adjust.
4765 (_initialize_language): Remove add_language calls. Call
4766 add_set_language_command.
4767 * language.h (add_language): Delete.
4768 (auto_language_defn)
4769 (unknown_language_defn, minimal_language_defn, ada_language_defn)
4770 (asm_language_defn, c_language_defn, cplus_language_defn)
4771 (d_language_defn, f_language_defn, go_language_defn)
4772 (m2_language_defn, objc_language_defn, opencl_language_defn)
4773 (pascal_language_defn, rust_language_defn): Declare.
4774 * m2-lang.c (m2_language_defn): Make extern.
4775 (_initialize_m2_language): Remove add_language call.
4776 * objc-lang.c (objc_language_defn): Make extern.
4777 (_initialize_objc_language): Remove add_language call.
4778 * opencl-lang.c (opencl_language_defn): Make extern.
4779 (_initialize_opencl_language): Remove add_language call.
4780 * p-lang.c (pascal_language_defn): Make extern.
4781 (_initialize_pascal_language): Delete.
4782 * rust-lang.c (rust_language_defn): Make extern.
4783 (_initialize_rust_language): Delete.
4784 * utils.h (compare_cstrings): New static inline function.
4785
edb0c9cb
PA
47862017-07-20 Pedro Alves <palves@redhat.com>
4787
4788 * ada-lang.c (ada_to_fixed_type_1): Adjust.
4789 (get_var_value): Constify parameters.
4790 (get_int_var_value): Change prototype.
4791 (to_fixed_range_type): Adjust.
4792 * ada-lang.h (get_int_var_value): Change prototype.
4793
a778f165
PA
47942017-07-20 Pedro Alves <palves@redhat.com>
4795
4796 * dwarf2read.c (dw2_lookup_symbol): Use
4797 SYMBOL_MATCHES_SEARCH_NAME.
4798 * psymtab.c (psym_lookup_symbol): Use SYMBOL_MATCHES_SEARCH_NAME.
4799
42edd901
PA
48002017-07-20 Pedro Alves <palves@redhat.com>
4801
4802 * block.c (block_iter_name_step, block_iter_name_first)
4803 (block_iter_name_next): Delete.
4804 (block_lookup_symbol_primary): Adjust to use
4805 dict_iter_match_first/dict_iter_match_next.
4806 * block.h (block_iter_name_first, block_iter_name_next): Delete
4807 declarations.
4808 (ALL_BLOCK_SYMBOLS_WITH_NAME): Adjust to use
4809 dict_iter_match_first/dict_iter_match_next.
4810
cf325299
PA
48112017-07-20 Pedro Alves <palves@redhat.com>
4812
4813 * cp-support.c (cp_find_first_component_aux): Add missing case for
4814 end of string.
4815
c5ed0576
DB
48162017-07-18 David Blaikie <dblaikie@gmail.com>
4817
4818 * dwarf2read.c (create_cus_hash_table): Re-add lost initialization
4819 of dwo_cu's dwo_file.
4820
27841e76
YQ
48212017-07-18 Yao Qi <yao.qi@linaro.org>
4822
4823 * remote.c (store_registers_using_G): Remove one line comment.
4824
cfb7e58b
YQ
48252017-07-18 Yao Qi <yao.qi@linaro.org>
4826
4827 * regcache.c (regcache_cpy): Simplify it.
4828 (regcache::cpy_no_passthrough): Remove it.
4829 * regcache.h (cpy_no_passthrough): Remove it.
4830 (regcache_dup, regcache_cpy): Update comments.
4831
386535dd
PA
48322017-07-18 Pedro Alves <palves@redhat.com>
4833
4834 * remote-sim.c (sim_command_completer): Adjust to work with a
4835 completion_tracker instead of a VEC.
4836
c45ec17c
PA
48372017-07-17 Pedro Alves <palves@redhat.com>
4838
4839 * completer.c (complete_source_filenames): New function.
4840 (complete_address_and_linespec_locations): New function.
4841 (location_completer): Use complete_address_and_linespec_locations.
4842 (completion_tracker::build_completion_result): Honor the tracker's
4843 request to suppress append.
4844 * completer.h (completion_tracker::suppress_append_ws)
4845 (completion_tracker::set_suppress_append_ws): New methods.
4846 (completion_tracker::m_suppress_append_ws): New field.
4847 (complete_source_filenames): New declaration.
4848 * linespec.c (linespec_complete_what): New.
4849 (struct ls_parser) <complete_what, completion_word,
4850 completion_quote_char, completion_quote_end, completion_tracker>:
4851 New fields.
4852 (string_find_incomplete_keyword_at_end): New.
4853 (linespec_lexer_lex_string): Record quote char. If in completion
4854 mode, don't throw.
4855 (linespec_lexer_consume_token): Advance the completion word point.
4856 (linespec_lexer_peek_token): Save/restore completion info.
4857 (save_stream_and_consume_token): New.
4858 (set_completion_after_number): New.
4859 (linespec_parse_basic): Set what to complete next depending on
4860 token. Handle function and label completions specially.
4861 (parse_linespec): Disable objc shortcut in completion mode. Set
4862 what to complete next depending on token type. Skip keyword if in
4863 completion mode.
4864 (complete_linespec_component, linespec_complete): New.
4865 * linespec.h (linespec_complete): Declare.
4866
be966d42
PA
48672017-07-17 Pedro Alves <palves@redhat.com>
4868
4869 * linespec.c (linespec_lexer_lex_string, find_toplevel_char):
4870 Handle 'operator<' / 'operator<<'.
4871
a2459270
PA
48722017-07-17 Pedro Alves <palves@redhat.com>
4873
4874 * completer.c (collect_explicit_location_matches): Handle
4875 MATCH_LABEL.
4876 (convert_explicit_location_to_linespec): New, factored out from
4877 ...
4878 (convert_explicit_location_to_sals): ... this.
4879 (complete_label): New.
4880 (linespec_complete_label, find_label_symbols_in_block): New.
4881 (find_label_symbols): Add completion_mode parameter and adjust to
4882 call find_label_symbols_in_block.
4883 * linespec.h (linespec_complete_label): Declare.
4884
c6756f62
PA
48852017-07-17 Pedro Alves <palves@redhat.com>
4886
4887 * ada-lang.c (ada_collect_symbol_completion_matches): Add
4888 complete_symbol_mode parameter.
4889 * cli/cli-cmds.c (complete_command): Get the completion result out
4890 of the handle_brkchars tracker if used a custom word point.
4891 * completer.c: Include "linespec.h".
4892 (enum explicit_location_match_type) <MATCH_LINE>: New enumerator.
4893 (advance_to_expression_complete_word_point): New.
4894 (completion_tracker::completes_to_completion_word): New.
4895 (complete_files_symbols): Pass down
4896 complete_symbol_mode::EXPRESSION.
4897 (explicit_options, probe_options): New.
4898 (collect_explicit_location_matches): Complete on the
4899 explictit_loc->foo instead of word. Use
4900 linespec_complete_function. Handle MATCH_LINE. Handle offering
4901 keyword and options completions.
4902 (backup_text_ptr): Delete.
4903 (skip_keyword): New.
4904 (complete_explicit_location): Remove 'word' parameter. Add
4905 language, quoted_arg_start and quoted_arg_end parameters.
4906 Rewrite, parsing left to right.
4907 (location_completer): Rewrite.
4908 (location_completer_handle_brkchars): New function.
4909 (symbol_completer): Pass down complete_symbol_mode::EXPRESSION.
4910 (enum complete_line_internal_reason): Adjust comments.
4911 (completion_tracker::discard_completions): New.
4912 (completer_handle_brkchars_func_for_completer): Handle
4913 location_completer.
4914 (gdb_custom_word_point_brkchars)
4915 (gdb_org_rl_basic_quote_characters): New.
4916 (gdb_completion_word_break_characters_throw)
4917 (completion_find_completion_word): Handle trackers that use a
4918 custom word point.
4919 (completion_tracker::advance_custom_word_point_by): New.
4920 (completion_tracker::build_completion_result): Don't rely on
4921 readline appending the quote char.
4922 (gdb_rl_attempted_completion_function_throw): Handle trackers that
4923 use a custom word point.
4924 (gdb_rl_attempted_completion_function): Restore
4925 rl_basic_quote_characters.
4926 * completer.h (class completion_tracker): Extend intro comment.
4927 (completion_tracker::set_quote_char)
4928 (completion_tracker::quote_char)
4929 (completion_tracker::set_use_custom_word_point)
4930 (completion_tracker::use_custom_word_point)
4931 (completion_tracker::custom_word_point)
4932 (completion_tracker::set_custom_word_point)
4933 (completion_tracker::advance_custom_word_point_by)
4934 (completion_tracker::completes_to_completion_word)
4935 (completion_tracker::discard_completions): New methods.
4936 (completion_tracker::m_quote_char)
4937 (completion_tracker::m_use_custom_word_point)
4938 (completion_tracker::m_custom_word_point): New fields.
4939 (advance_to_expression_complete_word_point): Declare.
4940 * f-lang.c (f_collect_symbol_completion_matches): Add
4941 complete_symbol_mode parameter.
4942 * language.h (struct language_defn)
4943 <la_collect_symbol_completion_matches>: Add complete_symbol_mode
4944 parameter.
4945 * linespec.c (linespec_keywords): Add NULL terminator. Make extern.
4946 (linespec_complete_function): New function.
4947 (linespec_lexer_lex_keyword): Adjust.
4948 * linespec.h (linespec_keywords, linespec_complete_function): New
4949 declarations.
4950 * location.c (find_end_quote): New function.
4951 (explicit_location_lex_one): Add explicit_completion_info
4952 parameter. Save quoting info. Don't throw if being called for
4953 completion. Don't handle Ada operators here.
4954 (is_cp_operator, skip_op_false_positives, first_of)
4955 (explicit_location_lex_one_function): New function.
4956 (string_to_explicit_location): Replace 'dont_throw' parameter with
4957 an explicit_completion_info pointer parameter. Handle it. Don't
4958 use explicit_location_lex_one to lex function names. Use
4959 explicit_location_lex_one_function instead.
4960 * location.h (struct explicit_completion_info): New.
4961 (string_to_explicit_location): Replace 'dont_throw' parameter with
4962 an explicit_completion_info pointer parameter.
4963 * symtab.c (default_collect_symbol_completion_matches_break_on):
4964 Add complete_symbol_mode parameter. Handle LINESPEC mode.
4965 (default_collect_symbol_completion_matches)
4966 (collect_symbol_completion_matches): Add complete_symbol_mode
4967 parameter.
4968 (collect_symbol_completion_matches_type): Pass down
4969 complete_symbol_mode::EXPRESSION.
4970 (collect_file_symbol_completion_matches): Add complete_symbol_mode
4971 parameter. Handle LINESPEC mode.
4972 * symtab.h (complete_symbol_mode): New.
4973 (default_collect_symbol_completion_matches_break_on)
4974 (default_collect_symbol_completion_matches)
4975 (collect_symbol_completion_matches)
4976 (collect_file_symbol_completion_matches): Add complete_symbol_mode
4977 parameter.
4978
1d550c82
PA
49792017-07-17 Pedro Alves <palves@redhat.com>
4980
4981 * utils.c (enum class strncmp_iw_mode): New.
4982 (strcmp_iw): Rename to ...
4983 (strncmp_iw_with_mode): ... this. Add string2_len and mode
4984 parameters. Handle them.
4985 (strncmp_iw): New.
4986 (strcmp_iw): Reimplement as wrapper around strncmp_iw_with_mode.
4987 * utils.h (strncmp_iw): Declare.
4988 (strcmp_iw): Move describing comments here.
4989
8090b426
PA
49902017-07-17 Pedro Alves <palves@redhat.com>
4991
4992 * c-exp.y (operator_stoken): Use CP_OPERATOR_LEN and
4993 CP_OPERATOR_STR.
4994 * c-typeprint.c (is_type_conversion_operator): Use
4995 CP_OPERATOR_STR.
4996 * cp-support.c (LENGTH_OF_OPERATOR): Delete.
4997 (cp_find_first_component_aux): Use CP_OPERATOR_STR and
4998 CP_OPERATOR_LEN.
4999 * cp-support.h (CP_OPERATOR_STR, CP_OPERATOR_LEN): New.
5000 * gnu-v2-abi.c (gnuv2_is_operator_name): Use CP_OPERATOR_STR.
5001 * gnu-v3-abi.c (gnuv3_is_operator_name): Use CP_OPERATOR_STR.
5002 * linespec.c (linespec_lexer_lex_string): Use CP_OPERATOR_LEN and
5003 CP_OPERATOR_STR.
5004 * location.c: Include "cp-support.h".
5005 (explicit_location_lex_one): Use CP_OPERATOR_LEN and
5006 CP_OPERATOR_STR.
5007 * symtab.c (operator_chars): Use CP_OPERATOR_STR and
5008 CP_OPERATOR_LEN.
5009
6a2c1b87
PA
50102017-07-17 Pedro Alves <palves@redhat.com>
5011
5012 * cli/cli-cmds.c (complete_command): Use a completion tracker
5013 along with completion_find_completion_word for handle_brkchars
5014 phase.
5015 * completer.c (RL_QF_SINGLE_QUOTE, RL_QF_DOUBLE_QUOTE)
5016 (RL_QF_BACKSLASH, RL_QF_OTHER_QUOTE): New.
5017 (struct gdb_rl_completion_word_info): New.
5018 (gdb_rl_find_completion_word): New.
5019 (completion_find_completion_word): New.
5020 * completer.h (completion_find_completion_word): Declare.
5021
eb3ff9a5
PA
50222017-07-17 Pedro Alves <palves@redhat.com>
5023
5024 * ada-lang.c (symbol_completion_match): Adjust comments.
5025 (symbol_completion_add): Replace vector parameter with
5026 completion_tracker parameter. Use it.
5027 (ada_make_symbol_completion_list): Rename to...
5028 (ada_collect_symbol_completion_matches): ... this. Add
5029 completion_tracker parameter and use it.
5030 (ada_language_defn): Adjust.
5031 * break-catch-syscall.c (catch_syscall_completer): Adjust
5032 prototype and work with completion_tracker instead of VEC.
5033 * breakpoint.c (condition_completer): Adjust prototype and work
5034 with completion_tracker instead of VEC.
5035 * c-lang.c (c_language_defn, cplus_language_defn)
5036 (asm_language_defn, minimal_language_defn): Adjust to renames.
5037 * cli/cli-cmds.c (complete_command): Rework using
5038 completion_tracker. Catch exceptions when completing.
5039 * cli/cli-decode.c (integer_unlimited_completer)
5040 (complete_on_cmdlist, complete_on_enum): Adjust prototype and work
5041 with completion_tracker instead of VEC.
5042 * command.h (struct completion_tracker): Forward declare.
5043 (completer_ftype, completer_handle_brkchars_ftype): Change
5044 types.
5045 (complete_on_cmdlist, complete_on_enum): Adjust.
5046 * completer.c: Include <algorithm>.
5047 (struct gdb_completer_state): New.
5048 (current_completion): New global.
5049 (readline_line_completion_function): Delete.
5050 (noop_completer, filename_completer)
5051 (filename_completer_handle_brkchars, complete_files_symbols)
5052 (linespec_location_completer): Adjust to work with a
5053 completion_tracker instead of a VEC.
5054 (string_or_empty): New.
5055 (collect_explicit_location_matches): Adjust to work with a
5056 completion_tracker instead of a VEC.
5057 (explicit_location_completer): Rename to ...
5058 (complete_explicit_location): ... this and adjust to work with a
5059 completion_tracker instead of a VEC.
5060 (location_completer): Adjust to work with a completion_tracker
5061 instead of a VEC.
5062 (add_struct_fields): Adjust to work with a completion_list instead
5063 of VEC.
5064 (expression_completer): Rename to ...
5065 (complete_expression): ... this and adjust to work with a
5066 completion_tracker instead of a VEC. Use complete_files_symbols.
5067 (expression_completer): Reimplement on top of complete_expression.
5068 (symbol_completer): Adjust to work with a completion_tracker
5069 instead of a VEC.
5070 (enum complete_line_internal_reason): Add describing comments.
5071 (complete_line_internal_normal_command): Adjust to work with a
5072 completion_tracker instead of a VEC.
5073 (complete_line_internal): Rename to ...
5074 (complete_line_internal_1): ... this and adjust to work with a
5075 completion_tracker instead of a VEC. Assert TEXT is NULL in the
5076 handle_brkchars phase.
5077 (new_completion_tracker): Delete.
5078 (complete_line_internal): Reimplement as TRY/CATCH wrapper around
5079 complete_line_internal_1.
5080 (free_completion_tracker): Delete.
5081 (INITIAL_COMPLETION_HTAB_SIZE): New.
5082 (completion_tracker::completion_tracker)
5083 (completion_tracker::~completion_tracker): New.
5084 (maybe_add_completion): Delete.
5085 (completion_tracker::maybe_add_completion)
5086 (completion_tracker::add_completion)
5087 (completion_tracker::add_completions): New.
5088 (throw_max_completions_reached_error): Delete.
5089 (complete_line): Adjust to work with a completion_tracker instead
5090 of a VEC. Don't create a completion_tracker_t or check for max
5091 completions here.
5092 (command_completer, command_completer_handle_brkchars)
5093 (signal_completer, reg_or_group_completer_1)
5094 (reg_or_group_completer, default_completer_handle_brkchars):
5095 Adjust to work with a completion_tracker.
5096 (gdb_completion_word_break_characters_throw): New.
5097 (gdb_completion_word_break_characters): Reimplement.
5098 (line_completion_function): Delete.
5099 (completion_tracker::recompute_lowest_common_denominator)
5100 (expand_preserving_ws)
5101 (completion_tracker::build_completion_result)
5102 (completion_result::completion_result)
5103 (completion_result::completion_result)
5104 (completion_result::~completion_result)
5105 (completion_result::completion_result)
5106 (completion_result::release_match_list, compare_cstrings)
5107 (completion_result::sort_match_list)
5108 (completion_result::reset_match_list)
5109 (gdb_rl_attempted_completion_function_throw)
5110 (gdb_rl_attempted_completion_function): New.
5111 * completer.h (completion_list, struct completion_result)
5112 (class completion_tracker): New.
5113 (complete_line): Add completion_tracker parameter.
5114 (readline_line_completion_function): Delete.
5115 (gdb_rl_attempted_completion_function): New.
5116 (noop_completer, filename_completer, expression_completer)
5117 (location_completer, symbol_completer, command_completer)
5118 (signal_completer, reg_or_group_completer): Update prototypes.
5119 (completion_tracker_t, new_completion_tracker)
5120 (make_cleanup_free_completion_tracker): Delete.
5121 (enum maybe_add_completion_enum): Delete.
5122 (maybe_add_completion): Delete.
5123 (throw_max_completions_reached_error): Delete.
5124 * corefile.c (complete_set_gnutarget): Adjust to work with a
5125 completion_tracker instead of a VEC.
5126 * cp-abi.c (cp_abi_completer): Adjust to work with a
5127 completion_tracker instead of a VEC.
5128 * d-lang.c (d_language_defn): Adjust.
5129 * disasm.c (disassembler_options_completer): Adjust to work with a
5130 completion_tracker instead of a VEC.
5131 * f-lang.c (f_make_symbol_completion_list): Rename to ...
5132 (f_collect_symbol_completion_matches): ... this. Adjust to work
5133 with a completion_tracker instead of a VEC.
5134 (f_language_defn): Adjust.
5135 * go-lang.c (go_language_defn): Adjust.
5136 * guile/scm-cmd.c (cmdscm_add_completion, cmdscm_completer):
5137 Adjust to work with a completion_tracker instead of a VEC.
5138 * infrun.c (handle_completer): Likewise.
5139 * interps.c (interpreter_completer): Likewise.
5140 * interps.h (interpreter_completer): Likewise.
5141 * language.c (unknown_language_defn, auto_language_defn)
5142 (local_language_defn): Adjust.
5143 * language.h (language_defn::la_make_symbol_completion_list):
5144 Rename to ...
5145 (language_defn::la_collect_symbol_completion_matches): ... this
5146 and adjust to work with a completion_tracker instead of a VEC.
5147 * m2-lang.c (m2_language_defn): Adjust.
5148 * objc-lang.c (objc_language_defn): Adjust.
5149 * opencl-lang.c (opencl_language_defn): Adjust.
5150 * p-lang.c (pascal_language_defn): Adjust.
5151 * python/py-cmd.c (cmdpy_completer_helper): Handle NULL word.
5152 (cmdpy_completer_handle_brkchars, cmdpy_completer): Adjust to work
5153 with a completion_tracker.
5154 * rust-lang.c (rust_language_defn): Adjust.
5155 * symtab.c (free_completion_list, do_free_completion_list)
5156 (return_val, completion_tracker): Delete.
5157 (completion_list_add_name, completion_list_add_symbol)
5158 (completion_list_add_msymbol, completion_list_objc_symbol)
5159 (completion_list_add_fields, add_symtab_completions): Add
5160 completion_tracker parameter and use it.
5161 (default_make_symbol_completion_list_break_on_1): Rename to...
5162 (default_collect_symbol_completion_matches_break_on): ... this.
5163 Add completion_tracker parameter and use it instead of allocating
5164 a completion tracker here.
5165 (default_make_symbol_completion_list_break_on): Delete old
5166 implementation.
5167 (default_make_symbol_completion_list): Delete.
5168 (default_collect_symbol_completion_matches): New.
5169 (make_symbol_completion_list): Delete.
5170 (collect_symbol_completion_matches): New.
5171 (make_symbol_completion_type): Rename to ...
5172 (collect_symbol_completion_matches_type): ... this. Add
5173 completion_tracker parameter and use it instead of VEC.
5174 (make_file_symbol_completion_list_1): Rename to...
5175 (collect_file_symbol_completion_matches): ... this. Add
5176 completion_tracker parameter and use it instead of VEC.
5177 (make_file_symbol_completion_list): Delete.
5178 (add_filename_to_list): Use completion_list instead of a VEC.
5179 (add_partial_filename_data::list): Now a completion_list.
5180 (make_source_files_completion_list): Work with a completion_list
5181 instead of a VEC.
5182 * symtab.h: Include "completer.h".
5183 (default_make_symbol_completion_list_break_on)
5184 (default_make_symbol_completion_list, make_symbol_completion_list)
5185 (make_symbol_completion_type, make_file_symbol_completion_list)
5186 (make_source_files_completion_list): Delete.
5187 (default_collect_symbol_completion_matches_break_on)
5188 (default_collect_symbol_completion_matches)
5189 (collect_symbol_completion_matches)
5190 (collect_symbol_completion_matches_type)
5191 (collect_file_symbol_completion_matches)
5192 (make_source_files_completion_list): New.
5193 * top.c (init_main): Don't install a rl_completion_entry_function
5194 hook. Install a rl_attempted_completion_function hook instead.
5195 * tui/tui-layout.c (layout_completer): Adjust to work with a
5196 completion_tracker.
5197 * tui/tui-regs.c (tui_reggroup_completer):
5198 * tui/tui-win.c (window_name_completer, focus_completer)
5199 (winheight_completer): Adjust to work with a completion_tracker.
5200 * value.c: Include "completer.h".
5201 (complete_internalvar): Adjust to work with a completion_tracker.
5202 * value.h (complete_internalvar): Likewise.
5203
6e1dbf8c
PA
52042017-07-17 Pedro Alves <palves@redhat.com>
5205
5206 * cli/cli-decode.c (set_cmd_completer_handle_brkchars): Adjust to
5207 renames.
5208 * cli/cli-decode.h (struct cmd_list_element) <completer>: Move
5209 comments to completer_ftype's declaration.
5210 <completer_handle_brkchars>: Change type to
5211 completer_handle_brkchars_ftype.
5212 * command.h (completer_ftype): Add describing comment and give
5213 names to parameters.
5214 (completer_ftype_void): Rename to ...
5215 (completer_handle_brkchars_ftype) ... this. Add describing comment.
5216 (set_cmd_completer_handle_brkchars): Adjust.
5217 * completer.c (filename_completer_handle_brkchars): New function.
5218 (complete_line_internal_normal_command): New function, factored
5219 out from ...
5220 (complete_line_internal): ... here.
5221 (command_completer_handle_brkchars)
5222 (default_completer_handle_brkchars)
5223 (completer_handle_brkchars_func_for_completer): New functions.
5224 * completer.h (set_gdb_completion_word_break_characters): Delete
5225 declaration.
5226 (completer_handle_brkchars_func_for_completer): New declaration.
5227 * python/py-cmd.c (cmdpy_completer_handle_brkchars): Adjust to use
5228 completer_handle_brkchars_func_for_completer.
5229
78b13106
PA
52302017-07-17 Pedro Alves <palves@redhat.com>
5231
5232 * completer.c (symbol_completer): New function, based on
5233 make_symbol_completion_list_fn.
5234 * completer.h (symbol_completer): New declaration.
5235 * guile/scm-cmd.c (cmdscm_completers): Adjust.
5236 * python/py-cmd.c (completers): Adjust.
5237 * symtab.c (make_symbol_completion_list_fn): Delete.
5238 * symtab.h (make_symbol_completion_list_fn): Delete.
5239 * cli/cli-decode.c (add_cmd): Adjust.
5240
bbf2f4df
PA
52412017-07-17 Pedro Alves <palves@redhat.com>
5242
5243 * Makefile.in (COMMON_OBS): Add filename-seen-cache.o.
5244 * dwarf2read.c: Include "filename-seen-cache.h".
5245 * dwarf2read.c (dwarf2_per_objfile) <filenames_cache>: New field.
5246 (dw2_map_symbol_filenames): Build and use a filenames_seen_cache.
5247 * filename-seen-cache.c: New file.
5248 * filename-seen-cache.h: New file.
5249 * symtab.c: Include "filename-seen-cache.h".
5250 (struct filename_seen_cache, INITIAL_FILENAME_SEEN_CACHE_SIZE)
5251 (create_filename_seen_cache, clear_filename_seen_cache)
5252 (delete_filename_seen_cache, filename_seen): Delete, parts moved
5253 to filename-seen-cache.h/filename-seen-cache.c.
5254 (output_source_filename, sources_info)
5255 (maybe_add_partial_symtab_filename)
5256 (make_source_files_completion_list): Adjust to use
5257 filename_seen_cache.
5258
330cdd98
PA
52592017-07-17 Pedro Alves <palves@redhat.com>
5260
5261 * dwarf2read.c (dwarf2_per_objfile): In-class initialize all
5262 fields.
5263 (dwarf2_per_objfile::dwarf2_per_objfile(objfile*, const
5264 dwarf2_debug_sections*)): New.
5265 (dwarf2_per_objfile::dwarf2_per_objfile(const
5266 dwarf2_per_objfile&)): Declare as deleted.
5267 (dwarf2_per_objfile::operator=): Declare as deleted.
5268 (dwarf2_per_objfile::dwarf2_per_objfile)
5269 (dwarf2_per_objfile::~dwarf2_per_objfile)
5270 (dwarf2_per_objfile::free_cached_comp_units): New.
5271 (dwarf2_has_info): dwarf2_per_objfile initialization code moved to
5272 ctor. Call dwarf2_per_objfile's ctor manually.
5273 (dwarf2_locate_sections): Deleted/refactored as ...
5274 (dwarf2_per_objfile::locate_sections): ... this new method.
5275 (free_cached_comp_units): Defer to
5276 dwarf2_per_objfile::free_cached_comp_units.
5277 (dwarf2_free_objfile): Call dwarf2_per_objfile's dtor manually.
5278
8880f2a9
TT
52792017-07-14 Tom Tromey <tom@tromey.com>
5280
5281 PR rust/21764:
5282 * rust-exp.y (convert_ast_to_expression): Add "want_type"
5283 parameter.
5284 <UNOP_SIZEOF>: Split into separate case.
5285 <UNOP_VAR_VALUE>: Handle want_type. Add error case.
5286
65547233
TT
52872017-07-14 Tom Tromey <tom@tromey.com>
5288
5289 PR rust/21763:
5290 * symtab.c (symbol_matches_domain): Add language_rust to special
5291 case.
5292 * rust-exp.y (convert_ast_to_expression) <OP_VAR_VALUE>: Don't
5293 treat LOC_TYPEDEF symbols as variables.
5294
8f14146e
PA
52952017-07-14 Pedro Alves <palves@redhat.com>
5296
5297 * symtab.c (make_file_symbol_completion_list_1): Iterate over
5298 symtabs matching all symtabs with SRCFILE as file name instead of
5299 only considering the first hit, with lookup_symtab.
5300
2347965c
SM
53012017-07-14 Simon Marchi <simon.marchi@ericsson.com>
5302
5303 * ax-gdb.c (gen_aggregate_elt_ref): Remove operand_name and
5304 operator_name parameters.
5305 (gen_expr): Update function call.
5306
40f4af28
SM
53072017-07-14 Simon Marchi <simon.marchi@ericsson.com>
5308
5309 * dwarf2loc.h (dwarf2_compile_expr_to_ax): Remove gdbarch
5310 parameter.
5311 * symtab.h (struct symbol_computed_ops::tracepoint_var_ref):
5312 Likewise.
5313 * dwarf2loc.c (dwarf2_compile_expr_to_ax): Remove gdbarch
5314 parameter, use agent_expr::gdbarch instead, update function
5315 calls.
5316 (locexpr_tracepoint_var_ref): Likewise.
5317 (loclist_tracepoint_var_ref): Likewise.
5318 * ax-gdb.c (gen_trace_static_fields): Likewise.
5319 (gen_traced_pop): Likewise.
5320 (gen_frame_args_address): Likewise.
5321 (gen_frame_locals_address): Likewise.
5322 (gen_var_ref): Likewise.
5323 (gen_struct_ref_recursive): Likewise.
5324 (gen_static_field): Likewise.
5325 (gen_maybe_namespace_elt): Likewise.
5326 (gen_expr): Likewise.
5327 (gen_trace_for_var): Likewise.
5328 (gen_trace_for_expr): Likewise.
5329 (gen_trace_for_return_address): Likewise.
5330
053f8057
SM
53312017-07-14 Simon Marchi <simon.marchi@ericsson.com>
5332
5333 * ax-gdb.c (gen_deref, gen_address_of): Remove unused ax
5334 parameter.
5335 (gen_struct_ref, gen_expr, gen_expr_binop_rest): Update call.
5336
6661ad48
SM
53372017-07-14 Simon Marchi <simon.marchi@ericsson.com>
5338
5339 * ax-gdb.c (gen_usual_unary): Remove exp parameter, get gdbarch
5340 from ax, update calls.
5341 (gen_usual_arithmetic): Likewise.
5342 (gen_integral_promotions): Likewise.
5343 (gen_bitfield_ref): Likewise.
5344 (gen_primitive_field): Likewise.
5345 (gen_struct_ref_recursive): Likewise.
5346 (gen_struct_ref): Likewise.
5347 (gen_maybe_namespace_elt): Likewise.
5348 (gen_struct_elt_for_reference): Likewise.
5349 (gen_namespace_elt): Likewise.
5350 (gen_aggregate_elt_ref): Likewise.
5351 (gen_expr): Get gdbarch from ax, update calls.
5352 (gen_expr_binop_rest): Likewise.
5353
c55a47e7
PA
53542017-07-13 Pedro Alves <palves@redhat.com>
5355
5356 * amd64-darwin-tdep.c (x86_darwin_init_abi_64): Pass tdesc_amd64
5357 as default tdesc.
5358 * amd64-dicos-tdep.c (amd64_dicos_init_abi):
5359 * amd64-fbsd-tdep.c (amd64fbsd_init_abi):
5360 * amd64-linux-tdep.c (amd64_linux_init_abi): Pass
5361 tdesc_amd64_linux as default tdesc. Get final tdesc from the
5362 tdep.
5363 (amd64_x32_linux_init_abi): Pass tdesc_x32_linux as default tdesc.
5364 Get final tdesc from the tdep.
5365 * amd64-nbsd-tdep.c (amd64nbsd_init_abi): Pass tdesc_amd64 as
5366 default tdesc.
5367 * amd64-obsd-tdep.c (amd64obsd_init_abi): Likewise.
5368 * amd64-sol2-tdep.c (amd64_sol2_init_abi): Likewise.
5369 * amd64-tdep.c (amd64_init_abi): Add 'default_tdesc' parameter.
5370 Use it as default tdesc.
5371 (amd64_x32_init_abi): Add 'default_tdesc' parameter, and pass it
5372 down to amd_init_abi. No longer handle fallback tdesc here.
5373 * amd64-tdep.h (tdesc_x32): Declare.
5374 (amd64_init_abi, amd64_x32_init_abi): Add 'default_tdesc'
5375 parameter.
5376 * amd64-windows-tdep.c (amd64_windows_init_abi): Pass tdesc_amd64
5377 as default tdesc.
5378
55efceab
AA
53792017-07-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
5380
5381 * s390-linux-tdep.c (s390_process_record): Add support for
5382 instructions new in arch12.
5383
0aa37b65
JB
53842017-07-11 John Baldwin <jhb@FreeBSD.org>
5385
5386 * amd64-bsd-nat.c (amd64bsd_fetch_inferior_registers): Use
5387 PT_GETFSBASE and PT_GETGSBASE.
5388 (amd64bsd_store_inferior_registers): Use PT_SETFSBASE and
5389 PT_SETGSBASE.
5390
48aeef91
JB
53912017-07-11 John Baldwin <jhb@FreeBSD.org>
5392
5393 * features/Makefile (amd64.dat, amd64-avx.dat, amd64-mpx.dat)
5394 (amd64-avx-mpx.dat, amd64-avx-avx512.dat)
5395 (amd64-avx-mpx-avx512-pku.dat): Add i386/64bit-segments.xml in
5396 those rules.
5397 * features/i386/amd64-avx-avx512.xml: Add 64bit-segments.xml.
5398 * features/i386/amd64-avx-mpx-avx512-pku.xml: Add 64bit-segments.xml.
5399 * features/i386/amd64-avx-mpx.xml: Add 64bit-segments.xml.
5400 * features/i386/amd64-avx.xml: Add 64bit-segments.xml.
5401 * features/i386/amd64-mpx.xml: Add 64bit-segments.xml.
5402 * features/i386/amd64.xml: Add 64bit-segments.xml.
5403 * features/i386/amd64-avx-avx512.c: Regenerated.
5404 * features/i386/amd64-avx-mpx-avx512-pku.c: Regenerated.
5405 * features/i386/amd64-avx-mpx.c: Regenerated.
5406 * features/i386/amd64-avx.c: Regenerated.
5407 * features/i386/amd64-mpx.c: Regenerated.
5408 * features/i386/amd64.c: Regenerated.
5409 * regformats/i386/amd64-avx-avx512.dat: Regenerated.
5410 * regformats/i386/amd64-avx-mpx-avx512-pku.dat: Regenerated.
5411 * regformats/i386/amd64-avx-mpx.dat: Regenerated.
5412 * regformats/i386/amd64-avx.dat: Regenerated.
5413 * regformats/i386/amd64-mpx.dat: Regenerated.
5414 * regformats/i386/amd64.dat: Regenerated.
5415
77c501bc
YQ
54162017-07-10 Yao Qi <yao.qi@linaro.org>
5417
5418 * features/i386/amd64-avx-avx512-linux.c: Re-generated.
5419 * features/i386/amd64-avx-mpx-avx512-pku-linux.c: Re-generated.
5420
6dc8d757
AK
54212017-07-10 Anton Kolesov <Anton.Kolesov@synopsys.com>
5422
5423 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add setenv and
5424 unsetenv.
5425 * gnulib/aclocal.m4: Regenerate.
5426 * gnulib/config.in: Regenerate.
5427 * gnulib/configure: Regenerate.
5428 * gnulib/import/Makefile.am: Regenerate.
5429 * gnulib/import/Makefile.in: Regenerate.
5430 * gnulib/import/m4/gnulib-cache.m4: Regenerate.
5431 * gnulib/import/m4/gnulib-comp.m4: Regenerate.
5432 * gnulib/import/m4/environ.m4: New file.
5433 * gnulib/import/m4/setenv.m4: New file.
5434 * gnulib/import/setenv.c: New file.
5435 * gnulib/import/unsetenv.c: New file.
5436
266934d1
SM
54372017-07-09 Simon Marchi <simon.marchi@ericsson.com>
5438
5439 * compile/compile-loc2c.c (do_compile_dwarf_expr_to_c): Read
5440 address when op is DW_OP_addr.
5441
03278692
TT
54422017-07-09 Tom Tromey <tom@tromey.com>
5443
5444 * dwarf2loc.c (dwarf2_evaluate_loc_desc_full): Reverse size
5445 check and apply to outer type.
5446
4b654465
JB
54472017-07-07 John Baldwin <jhb@FreeBSD.org>
5448
5449 * fbsd-tdep.c (LWPINFO_OFFSET, LWPINFO_PL_FLAGS)
5450 (LWPINFO64_PL_SIGINFO, LWPINFO32_PL_SIGINFO, PL_FLAG_SI)
5451 (SIZE64_SIGINFO_T, SIZE32_SIGINFO_T, fbsd_core_xfer_siginfo): New.
5452 (fbsd_init_abi): Install gdbarch "core_xfer_siginfo" method.
5453
2af9fc44
JB
54542017-07-07 John Baldwin <jhb@FreeBSD.org>
5455
5456 * fbsd-tdep.c (fbsd_core_thread_name): Use thread_section_name.
5457
382b69bb
JB
54582017-07-07 John Baldwin <jhb@FreeBSD.org>
5459
5460 * corelow.c (get_core_siginfo): Remove.
5461 (core_xfer_partial): Use the gdbarch "core_xfer_siginfo" method
5462 instead of get_core_siginfo.
5463 * gdbarch.sh (core_xfer_siginfo): New gdbarch callback.
5464 * gdbarch.h: Re-generate.
5465 * gdbarch.c: Re-generate.
5466 * linux-tdep.c (linux_core_xfer_siginfo): New.
5467 (linux_init_abi): Install gdbarch "core_xfer_siginfo" method.
5468
6e5eab33
JB
54692017-07-07 John Baldwin <jhb@FreeBSD.org>
5470
5471 * corelow.c (thread_section_name): Move to ...
5472 * gdbcore.h (thread_section_name): ... here.
5473
929edea9
JB
54742017-07-07 John Baldwin <jhb@FreeBSD.org>
5475
5476 * fbsd-nat.c [PT_LWPINFO && __LP64__] (union sigval32)
5477 (struct siginfo32): New.
5478 [PT_LWPINFO] (fbsd_siginfo_size, fbsd_convert_siginfo): New.
5479 (fbsd_xfer_partial) [PT_LWPINFO]: Handle TARGET_OBJECT_SIGNAL_INFO
5480 via ptrace(PT_LWPINFO).
5481
762c974a
JB
54822017-07-07 John Baldwin <jhb@FreeBSD.org>
5483
5484 * fbsd-tdep.c (fbsd_gdbarch_data_handle, struct fbsd_gdbarch_data)
5485 (init_fbsd_gdbarch_data, get_fbsd_gdbarch_data)
5486 (fbsd_get_siginfo_type): New.
5487 (fbsd_init_abi): Install gdbarch "get_siginfo_type" method.
5488 (_initialize_fbsd_tdep): New.
5489
33c5cd75
DB
54902017-07-06 David Blaikie <dblaikie@gmail.com>
5491
5492 * dwarf2read.c (struct dwo_file): Use a htab of dwo_unit* (rather than
5493 a singular dwo_unit*) to support multiple CUs in the same way that
5494 multiple TUs are supported.
5495 (create_cus_hash_table): Replace create_dwo_cu with a function for
5496 parsing multiple CUs from a DWO file.
5497 (open_and_init_dwo_file): Use create_cus_hash_table rather than
5498 create_dwo_cu.
5499 (lookup_dwo_cutu): Lookup CU in the hash table in the dwo_file with
5500 htab_find, rather than comparing the signature to a singleton CU in
5501 the dwo_file.
5502
8455d262
PA
55032017-07-06 Pedro Alves <palves@redhat.com>
5504
5505 * python/py-unwind.c (pyuw_dealloc_cache): Fix for loop condition.
5506
4da3eb35
PA
55072017-07-04 Pedro Alves <palves@redhat.com>
5508
5509 * gdbtypes.c (recursive_dump_type): Don't reference TYPE_STATIC.
5510 * gdbtypes.h (TYPE_STATIC): Delete.
5511 (struct fn_field) <is_public, is_abstract, is_static, is_final,
5512 is_synchronized, is_native>: Delete.
5513 <dummy>: Bump.
5514 (TYPE_FN_FIELD_PUBLIC, TYPE_FN_FIELD_STATIC, TYPE_FN_FIELD_FINAL)
5515 (TYPE_FN_FIELD_SYNCHRONIZED, TYPE_FN_FIELD_NATIVE)
5516 (TYPE_FN_FIELD_ABSTRACT): Delete.
5517
5bfd255c
SM
55182017-07-03 Simon Marchi <simon.marchi@ericsson.com>
5519
5520 * buffer.h (buffer_finish): Fix spelling mistakes.
5521
25c54127
EZ
55222017-07-01 Eli Zaretskii <eliz@gnu.org>
5523
5524 * .dir-locals.el: Automatically switch to C-style comments in
5525 versions of Emacs that support the feature.
5526
dc4bde35
SDJ
55272017-06-30 Sergio Durigan Junior <sergiodj@redhat.com>
5528 Pedro Alves <palves@redhat.com>
5529
5530 PR cli/21688
5531 * cli/cli-script.c (command_name_equals_not_inline): Remove function.
5532 (process_next_line): New variable 'inline_cmd'.
5533 Adjust 'if' clauses for "python", "compile" and "guile" to use
5534 'command_name_equals' and check for '!inline_cmd'.
5535
51ed89aa
SDJ
55362017-06-30 Sergio Durigan Junior <sergiodj@redhat.com>
5537
5538 PR cli/21688
5539 * cli/cli-script.c (command_name_equals_not_inline): New function.
5540 (process_next_line): Adjust 'if' clauses for "python", "compile"
5541 and "guile" to use command_name_equals_not_inline.
5542
eb17d413
PA
55432017-06-29 Pedro Alves <palves@redhat.com>
5544
5545 * completer.c (expression_completer): Call
5546 linespec_location_completer instead of location_completer.
5547
195bcdd5
PA
55482017-06-29 Pedro Alves <palves@redhat.com>
5549
5550 * completer.c (expression_completer): Remove code that recomputes
5551 'text' from 'word'.
5552
adc764e7
YQ
55532017-06-29 Yao Qi <yao.qi@linaro.org>
5554
5555 * regformats/regdat.sh: Generate code with
5556 "ifndef IN_PROCESS_AGENT".
5557
6e75794e
PA
55582017-06-28 Pedro Alves <palves@redhat.com>
5559
5560 * command.h: Include "common/scoped_restore.h".
5561
bc491f2e
YQ
55622017-06-28 Yao Qi <yao.qi@linaro.org>
5563
5564 * mi/mi-cmd-break.c (mi_argv_to_format): Use obstack_grow_str
5565 instead of obstack_grow.
5566
41664b45
DG
55672017-06-28 Doug Gilmore <Doug.Gilmore@imgtec.com>
5568
5569 PR gdb/21337
5570 * symfile.c (reread_symbols): Call objfiles_changed just before
5571 read_symbols.
5572
6da67eb1
PA
55732017-06-27 Pedro Alves <palves@redhat.com>
5574
5575 * symtab.c (COMPLETION_LIST_ADD_SYMBOL)
5576 (MCOMPLETION_LIST_ADD_SYMBOL): Delete macros, replace with ...
5577 (completion_list_add_symbol, completion_list_add_msymbol):
5578 ... these new functions.
5579 (add_symtab_completions)
5580 (default_make_symbol_completion_list_break_on_1): Adjust.
5581
23732b1e
PA
55822017-06-27 Pedro Alves <palves@redhat.com>
5583
5584 * objfiles.c (get_objfile_bfd_data): Call bfd_alloc instead of
5585 bfd_zalloc. Call objfile_per_bfd_storage's ctor.
5586 (free_objfile_per_bfd_storage): Call objfile_per_bfd_storage's
5587 dtor.
5588 * objfiles.h (objfile_per_bfd_storage): Add ctor. Make
5589 'storage_obstack' field an auto_obstack. In-class initialize all
5590 non-bitfield fields. Make minsyms_read bool.
5591 * symfile.c (read_symbols): Adjust.
5592
a4d1e79a
AH
55932017-06-27 Alan Hayward <alan.hayward@arm.com>
5594
5595 * remote-sim.c (gdbsim_fetch_register): Use byte_vector.
5596 (gdbsim_store_register): Likewise.
5597
8268c778
PA
55982017-06-27 Pedro Alves <palves@redhat.com>
5599
5600 * c-exp.y (name_obstack): Now an auto_obstack.
5601 (yylex): Use auto_obstack::clear.
5602 (c_parse): Use auto_obstack::clear instead of reinitializing and
5603 freeing the obstack.
5604 * c-lang.c (evaluate_subexp_c): Use auto_obstack.
5605 * d-exp.y (name_obstack): Now an auto_obstack.
5606 (yylex): Use auto_obstack::clear.
5607 (d_parse): Use auto_obstack::clear instead of reinitializing and
5608 freeing the obstack.
5609 * dwarf2loc.c (fetch_const_value_from_synthetic_pointer): Use
5610 auto_obstack.
5611 * dwarf2read.c (create_addrmap_from_index)
5612 (dwarf2_build_psymtabs_hard)
5613 (update_enumeration_type_from_children): Likewise.
5614 * gdb_obstack.h (auto_obstack): New type.
5615 * go-exp.y (name_obstack): Now an auto_obstack.
5616 (build_packaged_name): Use auto_obstack::clear.
5617 (go_parse): Use auto_obstack::clear instead of reinitializing and
5618 freeing the obstack.
5619 * linux-tdep.c (linux_make_mappings_corefile_notes): Use
5620 auto_obstack.
5621 * printcmd.c (printf_wide_c_string, ui_printf): Use auto_obstack.
5622 * rust-exp.y (work_obstack): Now an auto_obstack.
5623 (rust_parse, rust_lex_tests): Use auto_obstack::clear instead of
5624 reinitializing and freeing the obstack.
5625 * utils.c (do_obstack_free, make_cleanup_obstack_free): Delete.
5626 (host_char_to_target): Use auto_obstack.
5627 * utils.h (make_cleanup_obstack_free): Delete declaration.
5628 * valprint.c (generic_emit_char, generic_printstr): Use
5629 auto_obstack.
5630
db665f42
SM
56312017-06-27 Simon Marchi <simon.marchi@ericsson.com>
5632
5633 * darwin-nat.c (darwin_check_new_threads): Don't handle dummy
5634 thread.
5635 (darwin_init_thread_list): Don't update dummy thread.
5636 (darwin_create_inferior, darwin_attach): Don't add a dummy thread.
5637
873c0814
SM
56382017-06-26 Simon Marchi <simon.marchi@ericsson.com>
5639
5640 * record-full.c (netorder16): Remove.
5641
8b5a7a6e
SM
56422017-06-26 Simon Marchi <simon.marchi@ericsson.com>
5643
5644 * common/diagnostics.h: Define macros for GCC.
5645 (DIAGNOSTIC_IGNORE_UNUSED_FUNCTION): New macro.
5646 * common/vec.h: Include diagnostics.h.
5647 (DIAGNOSTIC_IGNORE_UNUSED_VEC_FUNCTION): New macro.
5648 (DEF_VEC_I, DEF_VEC_P, DEF_VEC_O): Ignore -Wunused-function
5649 warning.
5650
d1435379
SM
56512017-06-26 Simon Marchi <simon.marchi@ericsson.com>
5652
5653 * common/diagnostics.h (DIAGNOSTIC_IGNORE_DEPRECATED_REGISTER):
5654 New macro.
5655 * ada-lex.l: Ignore deprecated register warnings.
5656
cc75e0fd
SM
56572017-06-25 Simon Marchi <simon.marchi@ericsson.com>
5658
5659 * main.c (get_init_files): Replace "SYSTEM_GDBINIT +
5660 datadir_len" with "&SYSTEM_GDBINIT[datadir_len]".
5661
07809eaf
SM
56622017-06-25 Simon Marchi <simon.marchi@ericsson.com>
5663
5664 * dtrace-probe.c (dtrace_process_dof_probe): Put semi-colon on
5665 its own line.
5666
f076f034
SM
56672017-06-25 Simon Marchi <simon.marchi@ericsson.com>
5668
5669 * nat/x86-dregs.c (x86_show_dr): Print registers one per line.
5670
0dd5cbc5
AH
56712017-06-23 Alan Hayward <alan.hayward@arm.com>
5672
5673 * xtensa-tdep.c (XTENSA_MAX_REGISTER_SIZE): Add.
5674 (xtensa_register_write_masked): Use XTENSA_MAX_REGISTER_SIZE.
5675 (xtensa_register_read_masked): Likewise.
5676
d4c6ce5b
SDJ
56772017-06-22 Sergio Durigan Junior <sergiodj@redhat.com>
5678
5679 * common/environ.c (gdb_environ::unset): Update comment.
5680
16892a03
AH
56812017-06-22 Alan Hayward <alan.hayward@arm.com>
5682
5683 * python/py-unwind.c (pyuw_sniffer): Allocate space for
5684 registers.
5685
d7dcbefc
AH
56862017-06-22 Alan Hayward <alan.hayward@arm.com>
5687
5688 * record-full.c (record_full_exec_insn): Use byte_vector.
5689
b30ff123
YQ
56902017-06-22 Yao Qi <yao.qi@linaro.org>
5691
5692 * regformats/i386/amd64-avx-mpx-avx512-pku-linux.dat: Regenerated.
5693 * regformats/i386/amd64-avx-mpx-avx512-pku.dat: Regenerated.
5694
4fa847d7
AH
56952017-06-22 Alan Hayward <alan.hayward@arm.com>
5696
5697 * remote.c (cached_reg): Move from here...
5698 * regcache.h (cached_reg): ...to here.
5699 * python/py-unwind.c (struct reg_info): Remove.
5700 (cached_frame_info): Use cached_reg_t.
5701 (pyuw_prev_register): Likewise.
5702 (pyuw_sniffer): Use cached_reg_t and allocate registers.
5703 (pyuw_dealloc_cache): Free all registers.
5704
f4906a9a
PA
57052017-06-22 Pedro Alves <palves@redhat.com>
5706 Simon Marchi <simon.marchi@ericsson.com>
5707
5708 * unittests/environ-selftests.c (run_tests): Ignore -Wself-move
5709 warning.
5710 * common/diagnostics.h: New file.
5711
b45a1208
PA
57122017-06-22 Pedro Alves <palves@redhat.com>
5713
5714 * common/agent.h: Add include guards.
5715
e4da2c61
SM
57162017-06-21 Simon Marchi <simon.marchi@ericsson.com>
5717
5718 * target.h (struct target_ops) <to_xfer_partial>: Update doc to
5719 talk about addressable units instead of bytes.
5720
96160d60
SDJ
57212017-06-20 Sergio Durigan Junior <sergiodj@redhat.com>
5722
5723 * common/environ.c (gdb_environ::unset): Use '::iterator' instead
5724 of '::const_iterator'.
5725
9a6c7d9c
SDJ
57262017-06-20 Sergio Durigan Junior <sergiodj@redhat.com>
5727
5728 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
5729 'unittests/environ-selftests.c'.
5730 (SUBDIR_UNITTESTS_OBS): Add 'environ-selftests.o'.
5731 * charset.c (find_charset_names): Declare object 'iconv_env'.
5732 Update code to use 'iconv_env' object. Remove call to
5733 'free_environ'.
5734 * common/environ.c: Include <utility>.
5735 (make_environ): Delete function.
5736 (free_environ): Delete function.
5737 (gdb_environ::clear): New function.
5738 (gdb_environ::operator=): New function.
5739 (gdb_environ::get): Likewise.
5740 (environ_vector): Delete function.
5741 (set_in_environ): Delete function.
5742 (gdb_environ::set): New function.
5743 (unset_in_environ): Delete function.
5744 (gdb_environ::unset): New function.
5745 (gdb_environ::envp): Likewise.
5746 * common/environ.h: Include <vector>.
5747 (struct gdb_environ): Delete; transform into...
5748 (class gdb_environ): ... this class.
5749 (free_environ): Delete prototype.
5750 (init_environ, get_in_environ, set_in_environ, unset_in_environ,
5751 environ_vector): Likewise.
5752 * infcmd.c (run_command_1): Update code to call
5753 'envp' from 'gdb_environ' class.
5754 (environment_info): Update code to call methods from 'gdb_environ'
5755 class.
5756 (unset_environment_command): Likewise.
5757 (path_info): Likewise.
5758 (path_command): Likewise.
5759 * inferior.c (inferior::~inferior): Delete call to 'free_environ'.
5760 (inferior::inferior): Initialize 'environment' using the host's
5761 information.
5762 * inferior.h: Remove forward declaration of 'struct gdb_environ'.
5763 Include "environ.h".
5764 (class inferior) <environment>: Change type from 'struct
5765 gdb_environ' to 'gdb_environ'.
5766 * mi/mi-cmd-env.c (mi_cmd_env_path): Update code to call
5767 methods from 'gdb_environ' class.
5768 * solib.c (solib_find_1): Likewise
5769 * unittests/environ-selftests.c: New file.
5770
75c554cf
YQ
57712017-06-20 Yao Qi <yao.qi@linaro.org>
5772
5773 * features/i386/i386-linux.xml: Exchange the order of including
5774 32bit-linux.xml and 32bit-sse.xml.
5775 * features/i386/i386-linux.c: Regenerated.
5776
72ddacb7
YQ
57772017-06-20 Yao Qi <yao.qi@linaro.org>
5778
5779 * target-descriptions.c (tdesc_reg): Add ctor, dtor.
5780 Delete copy ctor and assignment operator.
5781 (tdesc_type): Likewise.
5782 (tdesc_feature): Likewise.
5783 (tdesc_free_reg): Remove.
5784 (tdesc_create_reg): Use new.
5785 (tdesc_free_type): Remove.
5786 (tdesc_create_vector): Use new.
5787 (tdesc_create_union): Likewise.
5788 (tdesc_create_flags): Likewise.
5789 (tdesc_create_enum): Likewise.
5790 (tdesc_free_feature): Delete.
5791 (free_target_description): Use delete.
5792
325c9fd4
JB
57932017-06-19 John Baldwin <jhb@FreeBSD.org>
5794
5795 * mips-tdep.c (print_gp_register_row): Don't error for unavailable
5796 registers.
5797
16b7a719
PA
57982017-06-19 Pedro Alves <palves@redhat.com>
5799
5800 * dwarf2read.c (write_psymtabs_to_index): Construct file_closer
5801 after gdb::unlinker.
5802
1c8e01c9
SDJ
58032017-06-19 Sergio Durigan Junior <sergiodj@redhat.com>
5804
5805 * mi/mi-cm-env.c (_initialize_mi_cmd_env): Use getenv instead of
5806 gdb_environ to access an environment variable.
5807
ffce45d2
TP
58082017-06-18 Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
5809
5810 * nat/linux-ptrace.c (linux_fork_to_function): Add cast to
5811 gdb_byte*.
5812
1d4fbac9
SM
58132017-06-17 Simon Marchi <simon.marchi@ericsson.com>
5814
5815 * nat/fork-inferior.h (trace_start_error): Add ATTRIBUTE_PRINTF.
5816
8465943a
SM
58172017-06-17 Simon Marchi <simon.marchi@ericsson.com>
5818
5819 * configure: Re-generate.
5820 * warning.m4 (build_warnings): Add -Wno-mismatched-tags.
5821
3e019bdc
SM
58222017-06-17 Simon Marchi <simon.marchi@ericsson.com>
5823
5824 * configure: Re-generate.
5825 * warning.m4: Pass -Werror to compiler when checking for
5826 supported warning flags.
5827
cf0dd6f0
SM
58282017-06-17 Simon Marchi <simon.marchi@ericsson.com>
5829
5830 * Makefile.in (COMPILE.pre): Add "-x c++".
5831
6f98355c
YQ
58322017-06-16 Alan Hayward <alan.hayward@arm.com>
5833 Pedro Alves <palves@redhat.com>
5834 Yao Qi <yao.qi@linaro.org>
5835
5836 * defs.h (RequireLongest): New.
5837 (extract_integer): Declare function template.
5838 (extract_signed_integer): Remove the declaration, but define it
5839 static inline.
5840 (extract_unsigned_integer): Likewise.
5841 (store_integer): Declare function template.
5842 (store_signed_integer): Remove the declaration, but define it
5843 static inline.
5844 (store_unsigned_integer): Likewise.
5845 * findvar.c (extract_integer): New function template.
5846 (extract_signed_integer): Remove.
5847 (extract_unsigned_integer): Remove.
5848 (extract_integer<LONGEST>, extract_integer<ULONGEST>): Explicit
5849 instantiations.
5850 (store_integer): New function template.
5851 (store_signed_integer): Remove.
5852 (store_unsigned_integer): Remove.
5853 (store_integer): Explicit instantiations.
5854 * regcache.c (regcache_raw_read_signed): Update.
5855 (regcache::raw_read): New function.
5856 (regcache::raw_read_signed): Remove.
5857 (regcache::raw_read_unsigned): Remove.
5858 (regcache_raw_read_unsigned): Update.
5859 (regcache_raw_write_unsigned): Update.
5860 (regcache::raw_write_signed): Remove.
5861 (regcache::raw_write): New function.
5862 (regcache_cooked_read_signed): Update.
5863 (regcache::raw_write_unsigned): Remove.
5864 (regcache::cooked_read_signed): Remove.
5865 (regcache_cooked_read_unsigned): Update.
5866 (regcache::cooked_read_unsigned): Remove.
5867 (regcache_cooked_write_signed): Update.
5868 (regcache_cooked_write_unsigned): Update.
5869 * regcache.h (regcache) <raw_read_signed>: Remove.
5870 <raw_write_signed, raw_read_unsigned, raw_write_unsigned>: Remove.
5871 <raw_read, raw_write>: New.
5872 <cooked_read_signed, cooked_write_signed>: Remove.
5873 <cooked_write_unsigned, cooked_read_unsigned>: Remove.
5874 <cooked_read, cooked_write>: New.
5875 * sh64-tdep.c (sh64_pseudo_register_read): Update.
5876 (sh64_pseudo_register_write): Update.
5877
a87dc45a
AK
58782017-06-16 Anton Kolesov <anton.kolesov@synopsys.com>
5879
5880 * arc-tdep.c (arc_disassembler_options): New variable.
5881 (arc_gdbarch_init): Set and use it. Use arc_delayed_print_insn instead
5882 of default_print_insn.
5883 (arc_delayed_print_insn): Set info->section when needed,
5884 use default_print_insn to retrieve a disassembler.
5885
45159d6a
SDJ
58862017-06-14 Sergio Durigan Junior <sergiodj@redhat.com>
5887
5888 PR gdb/21574
5889 * infcmd.c (_initialize_infcmd): Expand "help run" documentation
5890 to mention $SHELL and startup-with-shell.
5891
b46c4cf0
MF
58922017-06-14 Max Filippov <jcmvbkbc@gmail.com>
5893
5894 * MAINTAINERS: Move Maxim Grigoriev to the Past Maintainers.
5895
6394c606
YQ
58962017-06-14 Yao Qi <yao.qi@linaro.org>
5897
5898 * aarch64-tdep.c (aarch64_gdb_print_insn): Call
5899 default_print_insn instead of print_insn_aarch64.
5900 * arm-tdep.c (gdb_print_insn_arm): Call
5901 default_print_insn instead of print_insn_big_arm
5902 and print_insn_little_arm.
5903 * i386-tdep.c (i386_print_insn): Call default_print_insn
5904 instead of print_insn_i386.
5905 * ia64-tdep.c (ia64_print_insn): Call
5906 default_print_insn instead of print_insn_ia64.
5907 * mips-tdep.c (gdb_print_insn_mips): Call
5908 default_print_insn instead of print_insn_big_mips
5909 and print_insn_little_mips.
5910 * spu-tdep.c (gdb_print_insn_spu): Call default_print_insn
5911 instead of print_insn_spu.
5912
d5722aa2
PA
59132017-06-14 Pedro Alves <palves@redhat.com>
5914
5915 * ada-lang.c: Include "common/byte-vector.h".
5916 (ada_value_primitive_packed_val): Use gdb::byte_vector.
5917 * charset.c (wchar_iterator::iterate): Resize the vector instead
5918 of reserving it.
5919 * common/byte-vector.h: Include "common/def-vector.h".
5920 (wchar_iterator::m_out): Now a gdb::def_vector<gdb_wchar_t>.
5921 * cli/cli-dump.c: Include "common/byte-vector.h".
5922 (dump_memory_to_file, restore_binary_file): Use gdb::byte_vector.
5923 * common/byte-vector.h: New file.
5924 * common/def-vector.h: New file.
5925 * common/default-init-alloc.h: New file.
5926 * dwarf2loc.c: Include "common/byte-vector.h".
5927 (rw_pieced_value): Use gdb::byte_vector, and resize the vector
5928 instead of reserving it.
5929 * dwarf2read.c: Include "common/byte-vector.h".
5930 (data_buf::m_vec): Now a gdb::byte_vector.
5931 * gdb_regex.c: Include "common/def-vector.h".
5932 (compiled_regex::compiled_regex): Use gdb::def_vector<char>.
5933 * mi/mi-main.c: Include "common/byte-vector.h".
5934 (mi_cmd_data_read_memory): Use gdb::byte_vector.
5935 * printcmd.c: Include "common/byte-vector.h".
5936 (print_scalar_formatted): Use gdb::byte_vector.
5937 * valprint.c: Include "common/byte-vector.h".
5938 (maybe_negate_by_bytes, print_decimal_chars): Use
5939 gdb::byte_vector.
5940
01ec7a27
SM
59412017-06-13 Simon Marchi <simon.marchi@ericsson.com>
5942
5943 * darwin-nat.c: Include "nat/fork-inferior.h".
5944
848d9074
SM
59452017-06-13 Simon Marchi <simon.marchi@ericsson.com>
5946
5947 * configure.nat: Factor out Darwin bits that are not
5948 architecture-specific. Add fork-inferior.o.
5949
3b912944
SM
59502017-06-13 Simon Marchi <simon.marchi@ericsson.com>
5951
5952 * configure.nat: Factor out AIX bits that are not
5953 architecture-specific. Add fork-inferior.o.
5954
55acdf22
AA
59552017-06-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
5956
5957 * dwarf2loc.c (rw_pieced_value): New. Merge logic from...
5958 (read_pieced_value, write_pieced_value): ...here. Reduce to
5959 wrappers that just call rw_pieced_value.
5960
f65e2044
AA
59612017-06-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
5962
5963 * dwarf2loc.c (write_pieced_value): When writing the data for a
5964 memory piece, use write_memory_with_notification instead of
5965 write_memory.
5966
23f945bf
AA
59672017-06-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
5968
5969 * valops.c (read_value_memory): Change embedded_offset to
5970 represent a bit offset instead of a byte offset.
5971 * value.h (read_value_memory): Adjust comment.
5972
f236533e
AA
59732017-06-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
5974
5975 * dwarf2loc.c (read_pieced_value): Remove unnecessary variables
5976 dest_offset_bits and source_offset_bits.
5977 (write_pieced_value): Likewise.
5978
65d84b76
AA
59792017-06-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
5980
5981 * dwarf2loc.c (read_pieced_value): Respect the piece offset, as
5982 given by DW_OP_bit_piece.
5983 (write_pieced_value): Likewise.
5984
242d31ab
AA
59852017-06-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
5986
5987 * dwarf2loc.c (read_pieced_value): Move the buffer allocation and
5988 some other preparations to the places where sufficient information
5989 is available.
5990 (write_pieced_value): Likewise.
5991
03c8af18
AA
59922017-06-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
5993
5994 * dwarf2loc.c (bits_to_bytes): New function.
5995 (read_pieced_value): Fix offset calculations for register pieces
5996 on big-endian targets.
5997 (write_pieced_value): Likewise.
5998
840989c1
AA
59992017-06-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
6000
6001 * dwarf2loc.c (read_pieced_value): Remove buffer_size variable.
6002 (write_pieced_value): Likewise.
6003
359b19bb
AA
60042017-06-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
6005
6006 * dwarf2loc.c (write_pieced_value): When writing to a bit-field,
6007 transfer the source value's least significant bits, instead of its
6008 lowest-addressed ones. Rename type_len to max_offset.
6009 (read_pieced_value): Mirror above changes to write_pieced_value as
6010 applicable.
6011
07c9ca3b
AA
60122017-06-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
6013
6014 * dwarf2loc.c (write_pieced_value): In DWARF_VALUE_MEMORY,
6015 truncate full bytes from dest_offset_bits before using it as an
6016 offset into the buffer.
6017
f1cc9874
AA
60182017-06-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
6019
6020 * dwarf2loc.c (write_pieced_value): Include transfer size in
6021 byte-wise check.
6022
cdaac320
AA
60232017-06-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
6024
6025 * dwarf2loc.c (write_pieced_value): Fix copy/paste error in the
6026 calculation of this_size.
6027
af547a96
AA
60282017-06-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
6029
6030 * dwarf2loc.c (read_pieced_value): Respect parent value's offset
6031 when targeting a bit-field.
6032 (write_pieced_value): Likewise.
6033
ddd7882a
AA
60342017-06-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
6035
6036 * dwarf2loc.c (struct piece_closure) <addr_size>: Remove field.
6037 (allocate_piece_closure): Drop addr_size parameter.
6038 (dwarf2_evaluate_loc_desc_full): Adjust call to
6039 allocate_piece_closure.
6040
e9352324
AA
60412017-06-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
6042
6043 PR gdb/21226
6044 * dwarf2loc.c (read_pieced_value): Anchor stack value pieces at
6045 the LSB end, independent of endianness.
6046
d5d1163e
AA
60472017-06-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
6048
6049 * dwarf2loc.c (write_pieced_value): Fix order of calculations for
6050 size capping.
6051
032bb6ea
YQ
60522017-06-13 Yao Qi <yao.qi@linaro.org>
6053
6054 * mips-linux-nat.c: Move include features/mips*-linux.c to
6055 mips-linux-tdep.c.
6056 (_initialize_mips_linux_nat): Move initialize_tdesc_mips* calls
6057 to mips-linux-tdep.c.
6058 * mips-linux-tdep.c: Include features/mips*-linux.c
6059 (_initialize_mips_linux_tdep): Call initialize_tdesc_mips*
6060 functions.
6061 * mips-linux-tdep.h (tdesc_mips_linux): Declare.
6062 (tdesc_mips_dsp_linux, tdesc_mips64_linux): Declare.
6063 (tdesc_mips64_dsp_linux): Declare.
6064
f12f6bad
TT
60652017-06-12 Tom Tromey <tom@tromey.com>
6066
6067 * valprint.h (val_print_type_code_int): Remove.
6068 * valprint.c (generic_val_print_int): Always call
6069 val_print_scalar_formatted.
6070 (val_print_type_code_int): Remove.
6071 * printcmd.c (print_scalar_formatted): Handle options->format==0.
6072 * f-valprint.c (f_val_print): Use val_print_scalar_formatted.
6073 * c-valprint.c (c_val_print_int): Use val_print_scalar_formatted.
6074 * ada-valprint.c (ada_val_print_num): Use
6075 val_print_scalar_formatted.
6076
d9109c80
TT
60772017-06-12 Tom Tromey <tom@tromey.com>
6078
6079 * printcmd.c (print_scalar_formatted): Unify the two switches.
6080 Don't convert scalars to LONGEST.
6081
4ac0cb1c
TT
60822017-06-12 Tom Tromey <tom@tromey.com>
6083
6084 PR exp/16225:
6085 * valprint.h (print_decimal_chars): Update.
6086 * valprint.c (maybe_negate_by_bytes): New function.
6087 (print_decimal_chars): Add "is_signed" argument.
6088 * printcmd.c (print_scalar_formatted): Update.
6089
30a25466
TT
60902017-06-12 Tom Tromey <tom@tromey.com>
6091
6092 PR exp/16225:
6093 * valprint.h (print_binary_chars, print_hex_chars): Update.
6094 * valprint.c (val_print_type_code_int): Update.
6095 (print_binary_chars): Add "zero_pad" argument.
6096 (emit_octal_digit): New function.
6097 (print_octal_chars): Don't zero-pad.
6098 (print_decimal_chars): Likewise.
6099 (print_hex_chars): Add "zero_pad" argument.
6100 * sh64-tdep.c (sh64_do_fp_register): Update.
6101 * regcache.c (regcache::dump): Update.
6102 * printcmd.c (print_scalar_formatted): Update.
6103 * infcmd.c (default_print_one_register_info): Update.
6104
b3464d03
PA
61052017-06-12 Pedro Alves <palves@redhat.com>
6106 Alan Hayward <alan.hayward@arm.com>
6107
6108 * mips-tdep.c (MAX_MIPS_ABI_REGSIZE): New.
6109 (mips_eabi_push_dummy_call): Rename local 'regsize' to
6110 'abi_regsize'. Rename local array 'valbuf' to 'ref_valbuf', and
6111 use MAX_MIPS_ABI_REGSIZE instead of MAX_REGISTER_SIZE to size it.
6112 Assert that abi_regsize bytes fit in 'ref_valbuf'.
6113
4b76cda9
PA
61142017-06-12 Pedro Alves <palves@redhat.com>
6115
6116 * dwarf2read.c (mapped_symtab::data): Now a vector of
6117 symtab_index_entry instead of vector of
6118 std::unique_ptr<symtab_index_entry>. All users adjusted to check
6119 whether an element's name is NULL instead of checking whether the
6120 element itself is NULL.
6121 (find_slot): Change return type. Adjust.
6122 (hash_expand, , add_index_entry, uniquify_cu_indices)
6123 (write_hash_table): Adjust.
6124
e8f8bcb3
PA
61252017-06-12 Pedro Alves <palves@redhat.com>
6126
6127 * dwarf2read.c (recursively_count_psymbols): New function.
6128 (write_psymtabs_to_index): Call it to compute number of psyms and
6129 pass estimate size of psyms_seen to unordered_set's ctor.
6130
70a1152b
PA
61312017-06-12 Pedro Alves <palves@redhat.com>
6132
6133 * dwarf2read.c (write_hash_table): Check if key already exists
6134 before emplacing.
6135
c2f134ac
PA
61362017-06-12 Pedro Alves <palves@redhat.com>
6137
6138 * dwarf2read.c (data_buf::append_space): Rename to...
6139 (data_buf::grow): ... this, and make private. Adjust all callers.
6140 (data_buf::append_uint): New method.
6141 (add_address_entry, write_one_signatured_type)
6142 (write_psymtabs_to_index): Use it.
6143
a81e6d4d
PA
61442017-06-12 Pedro Alves <palves@redhat.com>
6145
6146 * dwarf2read.c (file_write(FILE *, const void *, size_t)): Delete.
6147 (file_write (FILE *, const std::vector<Elem>&)): Delete.
6148 (data_buf::file_write): Call ::fwrite directly.
6149
6fd931f2
PA
61502017-06-12 Pedro Alves <palves@redhat.com>
6151
6152 * dwarf2read.c (uniquify_cu_indices): Use std::unique and
6153 std::vector::erase.
6154
bc8f2430
JK
61552017-06-12 Jan Kratochvil <jan.kratochvil@redhat.com>
6156
6157 Code cleanup: C++ify .gdb_index producer.
6158 * dwarf2read.c: Include <unordered_set> and <unordered_map>.
6159 (MAYBE_SWAP) [WORDS_BIGENDIAN]: Cast to offset_type.
6160 (struct strtab_entry, hash_strtab_entry, eq_strtab_entry)
6161 (create_strtab, add_string): Remove.
6162 (file_write, data_buf): New.
6163 (struct symtab_index_entry): Use std::vector for cu_indices.
6164 (struct mapped_symtab): Use std::vector for data.
6165 (hash_symtab_entry, eq_symtab_entry, delete_symtab_entry)
6166 (create_symbol_hash_table, create_mapped_symtab, cleanup_mapped_symtab):
6167 Remove.
6168 (find_slot): Change return type. Update it to the new data structures.
6169 (hash_expand, add_index_entry): Update it to the new data structures.
6170 (offset_type_compare): Remove.
6171 (uniquify_cu_indices): Update it to the new data structures.
6172 (c_str_view, c_str_view_hasher, vector_hasher): New.
6173 (add_indices_to_cpool): Remove.
6174 (write_hash_table): Update it to the new data structures.
6175 (struct psymtab_cu_index_map, hash_psymtab_cu_index)
6176 (eq_psymtab_cu_index): Remove.
6177 (psym_index_map): New typedef.
6178 (struct addrmap_index_data): Change addr_obstack pointer to data_buf
6179 reference and std::unordered_map for cu_index_htab.
6180 (add_address_entry, add_address_entry_worker, write_address_map)
6181 (write_psymbols): Update it to the new data structures.
6182 (write_obstack): Remove.
6183 (struct signatured_type_index_data): Change types_list to a data_buf
6184 reference and psyms_seen to a std::unordered_set reference.
6185 (write_one_signatured_type, recursively_write_psymbols)
6186 (write_psymtabs_to_index): Update it to the new data structures.
6187
c4dcb155
SM
61882017-06-11 Simon Marchi <simon.marchi@ericsson.com>
6189
6190 * NEWS (Changes since GDB 8.0): Announce {set,show} debug
6191 separate-debug-file commands.
6192 * symfile.h (separate_debug_file_debug): New global.
6193 * symfile.c (separate_debug_file_debug): New global.
6194 (separate_debug_file_exists, find_separate_debug_file): Add
6195 debug output.
6196 (_initialize_symfile): Add "set debug separate-debug-file"
6197 command.
6198 * build-id.c (build_id_to_debug_bfd,
6199 find_separate_debug_file_by_buildid): Add debug output.
6200
6d45d4b4
SM
62012017-06-10 Simon Marchi <simon.marchi@polymtl.ca>
6202
6203 * gdbarch.sh (displaced_step_free_closure): Remove.
6204 * gdbarch.h, gdbarch.c: Re-generate.
6205 * aarch64-linux-tdep.c (aarch64_linux_init_abi): Don't set
6206 displaced_step_free_closure.
6207 * amd64-linux-tdep.c (amd64_linux_init_abi_common): Likewise.
6208 * arm-linux-tdep.c (arm_linux_init_abi): Likewise.
6209 * i386-linux-tdep.c (i386_linux_init_abi): Likewise.
6210 * rs6000-aix-tdep.c (rs6000_aix_init_osabi): Likewise.
6211 * rs6000-tdep.c (rs6000_gdbarch_init): Likewise.
6212 * s390-linux-tdep.c (s390_gdbarch_init): Likewise.
6213 * arch-utils.h (simple_displaced_step_free_closure): Remove.
6214 * arch-utils.c (simple_displaced_step_free_closure): Remove.
6215 * infrun.c (displaced_step_clear): Call xfree instead of
6216 gdbarch_displaced_step_free_closure.
6217
2f91880f
SDJ
62182017-06-08 Sergio Durigan Junior <sergiodj@redhat.com>
6219
6220 * common/common-utils.c (stringify_argv): Check for "arg[0] !=
6221 NULL".
6222
b8b6e72f
AH
62232017-06-08 Alan Hayward <alan.hayward@arm.com>
6224
6225 * mn10300-tdep.c (MN10300_MAX_REGISTER_SIZE): Add.
6226 (mn10300_extract_return_value): Use MN10300_MAX_REGISTER_SIZE.
6227 (mn10300_push_dummy_call): Likewise.
6228
5369082e
AH
62292017-06-08 Alan Hayward <alan.hayward@arm.com>
6230
6231 * mi/mi-main.c (register_changed_p): Use value_contents_eq.
6232
ff4ca5ac
AH
62332017-06-08 Alan Hayward <alan.hayward@arm.com>
6234
6235 * mi/mi-main.c (register_changed_p): Use cooked_read_value.
6236
aefd8b33
SDJ
62372017-06-07 Sergio Durigan Junior <sergiodj@redhat.com>
6238
6239 * NEWS (Changes since GDB 8.0): Announce that GDBserver is now
6240 able to start inferiors using a shell.
6241 (New remote packets): Announce new packet "QStartupWithShell".
6242 * remote.c: Add PACKET_QStartupWithShell.
6243 (extended_remote_create_inferior): Handle new
6244 PACKET_QStartupWithShell.
6245 (remote_protocol_features) <QStartupWithShell>: New entry for
6246 PACKET_QStartupWithShell.
6247 (_initialize_remote): Call "add_packet_config_cmd" for
6248 QStartupShell.
6249
2090129c
SDJ
62502017-06-07 Sergio Durigan Junior <sergiodj@redhat.com>
6251 Pedro Alves <palves@redhat.com>
6252
6253 * Makefile.in (HFILES_NO_SRCDIR): Add "common/common-inferior.h"
6254 and "nat/fork-inferior.h".
6255 * common/common-inferior.h: New file, with contents from
6256 "gdb/inferior.h".
6257 * commom/common-utils.c: Include "common-utils.h".
6258 (stringify_argv): New function.
6259 * common/common-utils.h (stringify_argv): New prototype.
6260 * configure.nat: Add "fork-inferior.o" as a dependency for
6261 "*linux*", "fbsd*" and "nbsd*" hosts.
6262 * corefile.c (get_exec_file): Update comment.
6263 * darwin-nat.c (darwin_ptrace_him): Call "gdb_startup_inferior"
6264 instead of "startup_inferior".
6265 (darwin_create_inferior): Call "add_thread_silent" after
6266 "fork_inferior".
6267 * fork-child.c: Cleanup unnecessary includes.
6268 (SHELL_FILE): Move to "common/common-fork-child.c".
6269 (environ): Likewise.
6270 (exec_wrapper): Initialize.
6271 (get_exec_wrapper): New function.
6272 (breakup_args): Move to "common/common-fork-child.c"; rename to
6273 "breakup_args_for_exec".
6274 (escape_bang_in_quoted_argument): Move to
6275 "common/common-fork-child.c".
6276 (saved_ui): New variable.
6277 (prefork_hook): New function.
6278 (postfork_hook): Likewise.
6279 (postfork_child_hook): Likewise.
6280 (gdb_startup_inferior): Likewise.
6281 (fork_inferior): Move to "common/common-fork-child.c". Update
6282 function to support gdbserver.
6283 (startup_inferior): Likewise.
6284 * gdbcore.h (get_exec_file): Remove declaration.
6285 * gnu-nat.c (gnu_create_inferior): Call "gdb_startup_inferior"
6286 instead of "startup_inferior". Call "add_thread_silent" after
6287 "fork_inferior".
6288 * inf-ptrace.c: Include "nat/fork-inferior.h" and "utils.h".
6289 (inf_ptrace_create_inferior): Call "gdb_startup_inferior"
6290 instead of "startup_inferior". Call "add_thread_silent" after
6291 "fork_inferior".
6292 * inferior.h: Include "common-inferior.h".
6293 (trace_start_error): Move to "common/common-utils.h".
6294 (trace_start_error_with_name): Likewise.
6295 (fork_inferior): Move prototype to "nat/fork-inferior.h".
6296 (startup_inferior): Likewise.
6297 (gdb_startup_inferior): New prototype.
6298 * nat/fork-inferior.c: New file, with contents from "fork-child.c".
6299 * nat/fork-inferior.h: New file.
6300 * procfs.c (procfs_init_inferior): Call "gdb_startup_inferior"
6301 instead of "startup_inferior". Call "add_thread_silent" after
6302 "fork_inferior".
6303 * target.h (target_terminal_init): Move prototype to
6304 "target/target.h".
6305 (target_terminal_inferior): Likewise.
6306 (target_terminal_ours): Likewise.
6307 * target/target.h (target_terminal_init): New prototype, moved
6308 from "target.h".
6309 (target_terminal_inferior): Likewise.
6310 (target_terminal_ours): Likewise.
6311 * utils.c (gdb_flush_out_err): New function.
6312
043a4934
SDJ
63132017-06-07 Sergio Durigan Junior <sergiodj@redhat.com>
6314
6315 * Makefile.in (HFILES_NO_SRCDIR): Add "common/common-gdbthread.h".
6316 * common/common-gdbthread.h: New file, with parts from
6317 "gdb/gdbthread.h".
6318 * gdbthread.h: Include "common-gdbthread.h".
6319 (switch_to_thread): Moved to "common/common-gdbthread.h".
6320
15652511
SDJ
63212017-06-07 Sergio Durigan Junior <sergiodj@redhat.com>
6322
6323 * Makefile.in (SFILES): Add "common/job-control.c".
6324 (HFILES_NO_SRCDIR): Add "common/job-control.h".
6325 (COMMON_OBS): Add "job-control.o".
6326 * common/job-control.c: New file, with contents from
6327 "gdb/inflow.c".
6328 * common/job-control.h: New file, with contents from "terminal.h".
6329 * fork-child.c: Include "job-control.h".
6330 * inflow.c: Include "job-control.h".
6331 (gdb_setpgid): Move to "common/common-inflow.c".
6332 (_initialize_inflow): Move setting of "job_control" to
6333 "handle_job_control".
6334 * terminal.h (job_control): Moved to "common/common-terminal.h".
6335 (gdb_setpgid): Likewise.
6336 * top.c: Include "job_control.h".
6337 * utils.c: Likewise.
6338 (job_control): Moved to "job-control.c".
6339
2d7cc5c7
PA
63402017-06-07 Pedro Alves <palves@redhat.com>
6341
6342 * Makefile.in (SFILES): Add gdb_regex.c.
6343 (COMMON_OBS): Add gdb_regex.o.
6344 * ada-lang.c (ada_add_standard_exceptions)
6345 (ada_add_exceptions_from_frame, name_matches_regex)
6346 (ada_add_global_exceptions, ada_exceptions_list_1): Change regex
6347 parameter type to compiled_regex. Adjust.
6348 (ada_exceptions_list): Use compiled_regex.
6349 * break-catch-throw.c (exception_catchpoint::pattern): Now a
6350 std::unique_ptr<compiled_regex>.
6351 (exception_catchpoint::~exception_catchpoint): Remove regfree
6352 call.
6353 (check_status_exception_catchpoint): Adjust to use compiled_regex.
6354 (handle_gnu_v3_exceptions): Adjust to use compiled_regex.
6355 * breakpoint.c (solib_catchpoint::compiled): Now a
6356 std::unique_ptr<compiled_regex>.
6357 (solib_catchpoint::~solib_catchpoint): Remove regfree call.
6358 (check_status_catch_solib): Adjust to use compiled_regex.
6359 (add_solib_catchpoint): Adjust to use compiled_regex.
6360 * cli/cli-cmds.c (apropos_command): Use compiled_regex.
6361 * cli/cli-decode.c (apropos_cmd): Change regex parameter to
6362 compiled_regex reference. Adjust to use it.
6363 * cli/cli-decode.h: Remove struct re_pattern_buffer forward
6364 declaration. Include "gdb_regex.h".
6365 (apropos_cmd): Change regex parameter to compiled_regex reference.
6366 * gdb_regex.c: New file.
6367 * gdb_regex.h (make_regfree_cleanup, get_regcomp_error): Delete
6368 declarations.
6369 (class compiled_regex): New.
6370 * linux-tdep.c: Include "common/gdb_optional.h".
6371 (struct mapping_regexes): New, factored out from
6372 mapping_is_anonymous_p, and adjusted to use compiled_regex.
6373 (mapping_is_anonymous_p): Use mapping_regexes wrapped in a
6374 gdb::optional and remove cleanups. Adjust to compiled_regex.
6375 * probe.c: Include "common/gdb_optional.h".
6376 (collect_probes): Use compiled_regex and gdb::optional and remove
6377 cleanups.
6378 * skip.c: Include "common/gdb_optional.h".
6379 (skiplist_entry::compiled_function_regexp): Now a
6380 gdb::optional<compiled_regex>.
6381 (skiplist_entry::compiled_function_regexp_is_valid): Delete field.
6382 (free_skiplist_entry): Remove regfree call.
6383 (compile_skip_regexp, skip_rfunction_p): Adjust to use
6384 compiled_regex and gdb::optional.
6385 * symtab.c: Include "common/gdb_optional.h".
6386 (search_symbols): Use compiled_regex and gdb::optional.
6387 * utils.c (do_regfree_cleanup, make_regfree_cleanup)
6388 (get_regcomp_error, compile_rx_or_error): Delete. Some bits moved
6389 to gdb_regex.c.
6390
50d6adef
AH
63912017-06-07 Alan Hayward <alan.hayward@arm.com>
6392
6393 * regcache.c (regcache::save): Avoid buffer use.
6394 (regcache::dump): Likewise.
6395
4a8a33c8
AH
63962017-06-07 Alan Hayward <alan.hayward@arm.com>
6397
6398 * sh-tdep.c (sh_pseudo_register_read): Remove
6399 MAX_REGISTER_SIZE.
6400 (sh_pseudo_register_write): Likewise.
6401 * sh64-tdep.c (sh64_pseudo_register_read): Likewise.
6402 (sh64_pseudo_register_write): Likewise
6403
d1be909e
AH
64042017-06-07 Alan Hayward <alan.hayward@arm.com>
6405
6406 * aarch64-tdep.c (aarch64_store_return_value): Use
6407 V_REGISTER_SIZE.
6408 (aarch64_pseudo_read_value): Likewise.
6409 (aarch64_pseudo_write): Likewise.
6410
f4a65042
YQ
64112017-06-06 Yao Qi <yao.qi@linaro.org>
6412
6413 * regformats/regdef.h (set_register_cache): Remove the
6414 declaration.
6415
9f7fb0aa
AH
64162017-06-06 Alan Hayward <alan.hayward@arm.com>
6417
6418 * frame.c (frame_unwind_register_signed): Use
6419 frame_unwind_register_value.
6420
e1e01040
PA
64212017-06-06 Pedro Alves <palves@redhat.com>
6422
6423 PR breakpoints/21553
6424 * breakpoint.c (create_breakpoints_sal_default)
6425 (init_breakpoint_sal, create_breakpoint_sal): Use
6426 gdb::unique_xmalloc_ptr for string parameters.
6427 (create_breakpoint): Constify 'extra_string' and 'cond_string'
6428 parameters. Replace cleanups with gdb::unique_xmalloc_ptr.
6429 (base_breakpoint_create_breakpoints_sal)
6430 (bkpt_create_breakpoints_sal, tracepoint_create_breakpoints_sal)
6431 (strace_marker_create_breakpoints_sal)
6432 (create_breakpoints_sal_default): Use gdb::unique_xmalloc_ptr for
6433 string parameters.
6434 * breakpoint.h (breakpoint_ops::create_breakpoints_sal): Use
6435 gdb::unique_xmalloc_ptr for string parameters.
6436 (create_breakpoint): Constify 'extra_string' and 'cond_string'
6437 parameters.
6438
fbe654c8
AH
64392017-06-06 Alan Hayward <alan.hayward@arm.com>
6440
6441 * alpha-tdep.c (alpha_register_to_value): Use
6442 get_frame_register_value.
6443 (alpha_value_to_register): Use ALPHA_REGISTER_SIZE.
6444
ae0d01d6
AH
64452017-06-06 Alan Hayward <alan.hayward@arm.com>
6446
6447 * ia64-tdep.c (IA64_MAX_FP_REGISTER_SIZE) Add.
6448 (ia64_register_to_value): Use IA64_MAX_FP_REGISTER_SIZE.
6449 (ia64_value_to_register): Likewise.
6450 (ia64_extract_return_value): Likewise.
6451 (ia64_store_return_value): Likewise.
6452 (ia64_push_dummy_call): Likewise.
6453
49cf576c
JB
64542017-06-04 Joel Brobecker <brobecker@adacore.com>
6455
6456 GDB 8.0 released.
6457
26b6a6ab
SM
64582017-06-03 Simon Marchi <simon.marchi@ericsson.com>
6459
6460 * x86-linux-nat.c (struct arch_lwp_info): Remove.
6461
22827c51
SM
64622017-06-03 Simon Marchi <simon.marchi@polymtl.ca>
6463
6464 * linux-nat.c (linux_nat_post_attach_wait): Remove FIRST
6465 parameter.
6466 (linux_nat_attach): Adjust call to linux_nat_post_attach_wait.
6467
0e05cf3a
SM
64682017-06-02 Simon Marchi <simon.marchi@ericsson.com>
6469
6470 * event-loop.c (poll_timers): Unallocate timer using delete
6471 instead of xfree.
6472
c1fc2657
SM
64732017-06-02 Simon Marchi <simon.marchi@polymtl.ca>
6474
6475 * breakpoint.h (struct breakpoint_ops) <dtor>: Remove.
6476 (struct breakpoint) <~breakpoint>: New.
6477 (struct watchpoint): Inherit from breakpoint.
6478 <~watchpoint>: New.
6479 <base>: Remove.
6480 (struct tracepoint): Inherit from breakpoint.
6481 <base>: Remove.
6482 * breakpoint.c (longjmp_breakpoint_ops): Remove.
6483 (struct longjmp_breakpoint): Inherit from breakpoint.
6484 <~longjmp_breakpoint>: New.
6485 <base>: Remove.
6486 (new_breakpoint_from_type): Remove casts.
6487 (watchpoint_in_thread_scope): Remove reference to base field.
6488 (watchpoint_del_at_next_stop): Likewise.
6489 (update_watchpoint): Likewise.
6490 (watchpoint_check): Likewise.
6491 (bpstat_check_watchpoint): Likewise.
6492 (set_longjmp_breakpoint): Likewise.
6493 (struct fork_catchpoint): Inherit from breakpoint.
6494 <base>: Remove.
6495 (struct solib_catchpoint): Inherit from breakpoint.
6496 <~solib_catchpoint>: New.
6497 <base>: Remove.
6498 (dtor_catch_solib): Change to ...
6499 (solib_catchpoint::~solib_catchpoint): ... this.
6500 (breakpoint_hit_catch_solib): Remove reference to base field.
6501 (add_solib_catchpoint): Likewise.
6502 (create_fork_vfork_event_catchpoint): Likewise.
6503 (struct exec_catchpoint): Inherit from breakpoint.
6504 <~exec_catchpoint>: New.
6505 <base>: Remove.
6506 (dtor_catch_exec): Change to ...
6507 (exec_catchpoint::~exec_catchpoint): ... this.
6508 (dtor_watchpoint): Change to ...
6509 (watchpoint::~watchpoint): ... this.
6510 (watch_command_1): Remove reference to base field.
6511 (catch_exec_command_1): Likewise.
6512 (base_breakpoint_dtor): Change to ...
6513 (breakpoint::~breakpoint): ... this.
6514 (base_breakpoint_ops): Remove dtor field value.
6515 (longjmp_bkpt_dtor): Change to ...
6516 (longjmp_breakpoint::~longjmp_breakpoint): ... this.
6517 (strace_marker_create_breakpoints_sal): Remove reference to base
6518 field.
6519 (delete_breakpoint): Don't manually call breakpoint destructor.
6520 (create_tracepoint_from_upload): Remove reference to base field.
6521 (trace_pass_set_count): Likewise.
6522 (initialize_breakpoint_ops): Don't initialize
6523 momentary_breakpoint_ops, don't set dtors.
6524 * ada-lang.c (struct ada_catchpoint): Inherit from breakpoint.
6525 <~ada_catchpoint>: New.
6526 <base>: Remove.
6527 (create_excep_cond_exprs): Remove reference to base field.
6528 (dtor_exception): Change to ...
6529 (ada_catchpoint::~ada_catchpoint): ... this.
6530 (dtor_catch_exception): Remove.
6531 (dtor_catch_exception_unhandled): Remove.
6532 (dtor_catch_assert): Remove.
6533 (create_ada_exception_catchpoint): Remove reference to base
6534 field.
6535 (initialize_ada_catchpoint_ops): Don't set dtors.
6536 * break-catch-sig.c (struct signal_catchpoint): Inherit from
6537 breakpoint.
6538 <~signal_catchpoint>: New.
6539 <base>: Remove.
6540 (signal_catchpoint_dtor): Change to ...
6541 (signal_catchpoint::~signal_catchpoint): ... this.
6542 (create_signal_catchpoint): Remove reference to base field.
6543 (initialize_signal_catchpoint_ops): Don't set dtor.
6544 * break-catch-syscall.c (struct syscall_catchpoint): Inherit
6545 from breakpoint.
6546 <~syscall_catchpoint>: New.
6547 <base>: Remove.
6548 (dtor_catch_syscall): Change to ...
6549 (syscall_catchpoint::~syscall_catchpoint): ... this.
6550 (create_syscall_event_catchpoint): Remove reference to base
6551 field.
6552 (initialize_syscall_catchpoint_ops): Don't set dtor.
6553 * break-catch-throw.c (struct exception_catchpoint): Inherit
6554 from breakpoint.
6555 <~exception_catchpoint>: New.
6556 <base>: Remove.
6557 (dtor_exception_catchpoint): Change to ...
6558 (exception_catchpoint::~exception_catchpoint): ... this.
6559 (handle_gnu_v3_exceptions): Remove reference to base field.
6560 (initialize_throw_catchpoint_ops): Don't set dtor.
6561 * ctf.c (ctf_get_traceframe_address): Remove reference to base
6562 field.
6563 * remote.c (remote_get_tracepoint_status): Likewise.
6564 * tracefile-tfile.c (tfile_get_traceframe_address): Likewise.
6565 * tracefile.c (tracefile_fetch_registers): Likewise.
6566 * tracepoint.c (actions_command): Likewise.
6567 (validate_actionline): Likewise.
6568 (tfind_1): Likewise.
6569 (get_traceframe_location): Likewise.
6570 (find_matching_tracepoint_location): Likewise.
6571 (parse_tracepoint_status): Likewise.
6572 * mi/mi-cmd-break.c (mi_cmd_break_passcount): Likewise.
6573
3b0871f4
SM
65742017-06-02 Simon Marchi <simon.marchi@polymtl.ca>
6575
6576 * breakpoint.c (struct longjmp_breakpoint): New struct.
6577 (is_tracepoint_type): Change return type to bool.
6578 (is_longjmp_type): New function.
6579 (new_breakpoint_from_type): Handle longjmp kinds of breakpoints.
6580 (set_raw_breakpoint_without_location): Use
6581 new_breakpoint_from_type.
6582 (set_raw_breakpoint): Likewise.
6583
a5e364af
SM
65842017-06-02 Simon Marchi <simon.marchi@polymtl.ca>
6585
6586 * breakpoint.c (new_breakpoint_from_type): New function.
6587 (create_breakpoint_sal): Use new_breakpoint_from_type and
6588 unique_ptr.
6589 (create_breakpoint): Likewise.
6590
ae3b3f34
SM
65912017-05-31 Simon Marchi <simon.marchi@ericsson.com>
6592
6593 * memattr.c (mem_info_command): Rename to ...
6594 (info_mem_command): ... this.
6595 (mem_enable_command): Rename to ...
6596 (enable_mem_command): ... this.
6597 (mem_disable_command): Rename to ...
6598 (disable_mem_command): ... this.
6599 (mem_delete_command): Rename to ...
6600 (delete_mem_command): ... this.
6601 (_initialize_mem): Adjust function names.
6602
13ace077
MM
66032017-05-31 Markus Metzger <markus.t.metzger@intel.com>
6604
6605 * btrace.c (handle_pt_insn_events): New.
6606 (ftrace_add_pt): Call handle_pt_insn_events. Rename ERRCODE into
6607 STATUS. Split into this and ...
6608 (handle_pt_insn_event_flags): ... this.
6609
c56ccc05
MM
66102017-05-31 Markus Metzger <markus.t.metzger@intel.com>
6611
6612 * configure.ac: Check for pt_insn_event, struct pt_insn.enabled,
6613 and struct pt_insn.resynced.
6614 * configure: Regenerated.
6615 * config.in: Regenerated.
6616
08c3f6d2
TW
66172017-05-30 Tim Wiederhake <tim.wiederhake@intel.com>
6618
6619 * btrace.c (ftrace_find_call_by_number): New function.
6620 (ftrace_new_function): Store objects, not pointers.
6621 (ftrace_find_call_by_number, ftrace_new_return, ftrace_new_switch,
6622 ftrace_new_gap, ftrace_update_function,
6623 ftrace_compute_global_level_offset, btrace_stich_bts, btrace_clear,
6624 btrace_insn_get, btrace_insn_get_error, btrace_insn_end,
6625 btrace_insn_next, btrace_insn_prev, ptrace_find_insn_by_number,
6626 btrace_ends_with_single_insn, btrace_call_get): Account for
6627 btrace_thread_info::functions now storing objects.
6628 * btrace.h (struct btrace_thread_info): Add constructor.
6629 (struct btrace_thread_info) <functions>: Make std::vector.
6630 (struct btrace_thread_info) <prev, next, up, insn, errcode, flags):
6631 Initialize with default values.
6632 * record-btrace.c (record_btrace_frame_sniffer): Account for
6633 btrace_thread_info::functions now storing objects.
6634
8ffd39f2
TW
66352017-05-30 Tim Wiederhake <tim.wiederhake@intel.com>
6636
6637 * btrace.c: Remove typedef bfun_s.
6638 (ftrace_new_gap): Directly add gaps to the list of gaps.
6639 (btrace_bridge_gaps, btrace_compute_ftrace_bts, pt_btrace_insn_flags,
6640 ftrace_add_pt, btrace_compute_ftrace_pt, btrace_compute_ftrace_1,
6641 btrace_finalize_ftrace, btrace_compute_ftrace): Use std::vector
6642 instead of gdb VEC.
6643
4aeb0dfc
TW
66442017-05-30 Tim Wiederhake <tim.wiederhake@intel.com>
6645
6646 * btrace.c (ftrace_fixup_caller, ftrace_new_return, ftrace_connect_bfun,
6647 ftrace_bridge_gap): Replace references to btrace_thread_info::segment
6648 with btrace_thread_info::next_segment and
6649 btrace_thread_info::prev_segment.
6650 * btrace.h: Remove struct btrace_func_link.
6651 (struct btrace_function): Replace pair of function segment pointers
6652 with pair of indices.
6653 * python/py-record-btrace.c (btpy_call_prev_sibling,
6654 btpy_call_next_sibling): Replace references to
6655 btrace_thread_info::segment with btrace_thread_info::next_segment and
6656 btrace_thread_info::prev_segment.
6657 * record-btrace.c (record_btrace_frame_this_id): Use
6658 btrace_find_call_by_number.
6659
eb8f2b9c
TW
66602017-05-30 Tim Wiederhake <tim.wiederhake@intel.com>
6661
6662 * btrace.c (ftrace_new_function, ftrace_fixup_level,
6663 ftrace_connect_bfun, ftrace_bridge_gap, btrace_bridge_gaps,
6664 btrace_insn_next, btrace_insn_prev): Remove references to
6665 btrace_thread_info::flow.
6666 * btrace.h (struct btrace_function): Remove FLOW.
6667
42bfe59e
TW
66682017-05-30 Tim Wiederhake <tim.wiederhake@intel.com>
6669
6670 * btrace.c (ftrace_find_call_by_number): New function.
6671 (ftrace_update_caller, ftrace_new_call, ftrace_new_tailcall,
6672 ftrace_get_caller, ftrace_find_call, ftrace_new_return,
6673 ftrace_match_backtrace, ftrace_connect_bfun, ftrace_connect_backtrace,
6674 ftrace_bridge_gap, btrace_bridge_gaps): Use btrace_function::up as an
6675 index.
6676 * btrace.h (struct btrace_function): Turn UP into an index.
6677 * python/py-record-btrace.c (btpy_call_up): Use btrace_function::up
6678 as an index.
6679 * record-btrace.c (record_btrace_frame_unwind_stop_reason,
6680 record_btrace_frame_prev_register, record_btrace_frame_sniffer,
6681 record_btrace_tailcall_frame_sniffe): Use btrace_find_call_by_number.
6682
b54b03bd
TW
66832017-05-30 Tim Wiederhake <tim.wiederhake@intel.com>
6684
6685 * btrace.c (ftrace_new_function, ftrace_new_call, ftrace_new_tailcall,
6686 ftrace_new_return, ftrace_new_switch, ftrace_new_gap,
6687 ftrace_update_function, ftrace_compute_global_level_offset,
6688 btrace_compute_ftrace_bts, ftrace_add_pt, btrace_compute_ftrace_pt,
6689 btrace_stitch_bts, btrace_fetch, btrace_clear, btrace_insn_number,
6690 btrace_insn_end, btrace_is_empty): Remove references to
6691 btrace_thread_info::begin and btrace_thread_info::end.
6692 * btrace.h (struct btrace_thread_info): Remove BEGIN and END.
6693 (struct btrace_thread_info) <functions>: Adjust comment.
6694 * record-btrace.c (record_btrace_start_replaying): Remove reference to
6695 btrace_thread_info::begin.
6696
8286623c
TW
66972017-05-30 Tim Wiederhake <tim.wiederhake@intel.com>
6698
6699 * btrace.c (ftrace_new_function, ftrace_new_call, ftrace_new_tailcall,
6700 ftrace_new_return, ftrace_new_switch, ftrace_new_gap,
6701 ftrace_update_function): Remove arguments that implicitly were always
6702 BTINFO->END.
6703 (btrace_compute_ftrace_bts, ftrace_add_pt, btrace_compute_ftrace_pt):
6704 Don't pass BTINFO->END.
6705
a0f1b963
TW
67062017-05-30 Tim Wiederhake <tim.wiederhake@intel.com>
6707
6708 * btrace.c: (btrace_insn_get, btrace_insn_get_error, btrace_insn_number,
6709 btrace_insn_begin, btrace_insn_end, btrace_insn_next, btrace_insn_prev,
6710 btrace_find_insn_by_number): Replace function segment pointer with
6711 index.
6712 (btrace_insn_cmp): Simplify.
6713 * btrace.h: (struct btrace_insn_iterator) Rename index to
6714 insn_index. Replace function segment pointer with index into function
6715 segment vector.
6716 * record-btrace.c (record_btrace_call_history): Replace function
6717 segment pointer use with index.
6718 (record_btrace_frame_sniffer): Retrieve function call segment through
6719 vector.
6720 (record_btrace_set_replay): Remove defunc't safety check.
6721
f158f208
TW
67222017-05-30 Tim Wiederhake <tim.wiederhake@intel.com>
6723
6724 * btrace.c (btrace_ends_with_single_insn): New function.
6725 (btrace_call_get, btrace_call_number, btrace_call_begin,
6726 btrace_call_end, btrace_call_next, btrace_call_prev,
6727 btrace_find_call_by_number): Use index into call segment vector
6728 instead of pointer.
6729 (btrace_call_cmp): Simplify.
6730 * btrace.h (struct btrace_call_iterator): Replace function call segment
6731 pointer with index into vector.
6732 * record-btrace.c (record_btrace_call_history): Use index instead of
6733 pointer.
6734
521103fd
TW
67352017-05-30 Tim Wiederhake <tim.wiederhake@intel.com>
6736
6737 * btrace.c (btrace_insn_begin, btrace_insn_end,
6738 btrace_find_insn_by_number): Add btinfo to iterator.
6739 * btrace.h (struct btrace_insn_iterator): Add btinfo.
6740
17b89b34
TW
67412017-05-30 Tim Wiederhake <tim.wiederhake@intel.com>
6742
6743 * btrace.c (ftrace_new_function): Add btrace_thread_info to arguments
6744 and save pointers directly.
6745 (ftrace_new_call, ftrace_new_tailcall, ftrace_new_return,
6746 ftrace_new_switch, ftrace_new_gap, ftrace_update_function,
6747 ftrace_add_pt): Add btrace_thread_info to arguments. Adjust for
6748 changed signature of functions.
6749 (btrace_compute_ftrace_pt): Adjust for changed signature of functions.
6750 (btrace_fetch): Remove code that adds btrace_function pointers to
6751 vector of btrace_functions.
6752 (btrace_clear): Simplify freeing vector of btrace_functions.
6753
2b51eddc
TW
67542017-05-30 Tim Wiederhake <tim.wiederhake@intel.com>
6755
6756 * btrace.c (btrace_fetch, btrace_clear, btrace_find_insn_by_number):
6757 Replace VEC_* with std::vector functions.
6758 * btrace.h: Add include: vector. Remove typedef for DEF_VEC_P.
6759 (struct btrace_thread_info)<functions>: Change type to std::vector.
6760
db6be0d5
SM
67612017-05-30 Simon Marchi <simon.marchi@ericsson.com>
6762
6763 * NEWS (Changes in GDB 8.0): Remove extra empty line. Move
6764 "Removed targets and native configurations" up. Merge duplicate
6765 "New commands" sub-sections. Add "New options" sub-sections.
6766
b057297a
AH
67672017-05-26 Alan Hayward <alan.hayward@arm.com>
6768
6769 * defs.h (copy_integer_to_size): New declaration.
6770 * findvar.c (copy_integer_to_size): New function.
6771 (do_cint_test): New selftest function.
6772 (copy_integer_to_size_test): Likewise.
6773 (_initialize_findvar): Likewise.
6774 * mips-fbsd-tdep.c (mips_fbsd_supply_reg): Use raw_supply_integer.
6775 (mips_fbsd_collect_reg): Use raw_collect_integer.
6776 * mips-linux-tdep.c (supply_32bit_reg): Use raw_supply_integer.
6777 (mips64_fill_gregset): Use raw_collect_integer
6778 (mips64_fill_fpregset): Use raw_supply_integer.
6779 * regcache.c (regcache::raw_supply_integer): New function.
6780 (regcache::raw_collect_integer): Likewise.
6781 * regcache.h: (regcache::raw_supply_integer): New declaration.
6782 (regcache::raw_collect_integer): Likewise.
6783
b77b02a5
YQ
67842017-05-24 Yao Qi <yao.qi@linaro.org>
6785
6786 * Makefile.in (SFILES): Add gdbarch-selftests.c.
6787 (COMMON_OBS): Add gdbarch-selftests.o.
6788 * frame.c [GDB_SELF_TESTS] (create_new_frame): New function.
6789 * frame.h [GDB_SELF_TESTS] (create_new_frame): Declare.
6790 * gdbarch-selftests.c: New file.
6791 * regcache.h (regcache) <~regcache>: Mark it virtual if
6792 GDB_SELF_TEST.
6793 <raw_write>: Likewise.
6794
e521e87e
YQ
67952017-05-24 Yao Qi <yao.qi@linaro.org>
6796
6797 * regcache.c (current_regcache): Change it to
6798 regcache::current_regcache.
6799 (regcache_observer_target_changed): Update.
6800 (regcache_thread_ptid_changed): Make it a regcache static
6801 method.
6802 (regcache_thread_ptid_changed): Update.
6803 (class regcache_access): New.
6804 (current_regcache_test): Update.
6805 (_initialize_regcache): Update.
6806 * regcache.h: Include forward_list.
6807 (regcache): Declare regcache_thread_ptid_changed and declare
6808 registers_changed_ptid as friend.
6809
d8e07dda
YQ
68102017-05-24 Yao Qi <yao.qi@linaro.org>
6811
6812 * i387-tdep.c (i387_register_to_value): Use register_size
6813 instead of TYPE_LENGTH.
6814 * m68k-tdep.c (m68k_register_to_value): Likewise.
6815
8c8f9122
YQ
68162017-05-24 Yao Qi <yao.qi@linaro.org>
6817
6818 * i387-tdep.c (i387_convert_register_p): Return false if type
6819 code isn't TYPE_CODE_FLT.
6820
68fce50f
YQ
68212017-05-24 Yao Qi <yao.qi@linaro.org>
6822
6823 * alpha-tdep.c (alpha_convert_register_p): Return true if type
6824 length is 4.
6825 (alpha_register_to_value): Remove type length check.
6826 (alpha_value_to_register): Likewise.
6827
88954b49
YQ
68282017-05-24 Yao Qi <yao.qi@linaro.org>
6829
6830 * ia64-tdep.c (ia64_convert_register_p): Check type's code is
6831 TYPE_CODE_FLT.
6832
e3ec9b69
YQ
68332017-05-24 Yao Qi <yao.qi@linaro.org>
6834
6835 * m68k-tdep.c (m68k_convert_register_p): Check type's code is
6836 TYPE_CODE_FLT or not.
6837
cdd238da
YQ
68382017-05-24 Yao Qi <yao.qi@linaro.org>
6839
6840 * alpha-tdep.c (alpha_gdbarch_init): Use XCNEW instead of XNEW.
6841 * avr-tdep.c (avr_gdbarch_init): Likewise.
6842 * bfin-tdep.c (bfin_gdbarch_init): Likewise.
6843 * cris-tdep.c (cris_gdbarch_init): Likewise.
6844 * ft32-tdep.c (ft32_gdbarch_init): Likewise.
6845 * lm32-tdep.c (lm32_gdbarch_init): Likewise.
6846 * m32r-tdep.c (m32r_gdbarch_init): Likewise.
6847 * m68hc11-tdep.c (m68hc11_gdbarch_init): Likewise.
6848 * mep-tdep.c (mep_gdbarch_init): Likewise.
6849 * microblaze-tdep.c (microblaze_gdbarch_init): Likewise.
6850 * mips-tdep.c (mips_gdbarch_init): Likewise.
6851 * mn10300-tdep.c (mn10300_gdbarch_init): Likewise.
6852 * moxie-tdep.c (moxie_gdbarch_init): Likewise.
6853 * msp430-tdep.c (msp430_gdbarch_init): Likewise.
6854 * sh64-tdep.c (sh64_gdbarch_init): Likewise.
6855 * v850-tdep.c (v850_gdbarch_init): Likewise.
6856
7a3929c4
YQ
68572017-05-24 Yao Qi <yao.qi@linaro.org>
6858
6859 * selftest-arch.c (tests_with_arch): Call registers_changed
6860 and reinit_frame_cache.
6861 * selftest.c (run_self_tests): Likewise.
6862
f4985dba
YQ
68632017-05-24 Yao Qi <yao.qi@linaro.org>
6864
6865 * rs6000-tdep.c (gdb_print_insn_powerpc): Remove.
6866 (rs6000_gdbarch_init): Don't call set_gdbarch_print_insn.
6867
ab20fa4a
YQ
68682017-05-24 Yao Qi <yao.qi@linaro.org>
6869
6870 * rl78-tdep.c (rl78_gdbarch_init): Don't call
6871 set_gdbarch_print_insn.
6872
f532ab94
YQ
68732017-05-24 Yao Qi <yao.qi@linaro.org>
6874
6875 * h8300-tdep.c (h8300_gdbarch_init): Don't call
6876 set_gdbarch_print_insn.
6877
39503f82
YQ
68782017-05-24 Yao Qi <yao.qi@linaro.org>
6879
6880 * alpha-tdep.c (alpha_gdbarch_init): Don't call
6881 set_gdbarch_print_insn.
6882 * arc-tdep.c (arc_gdbarch_init): Likewise.
6883 * arch-utils.c: include dis-asm.h.
6884 (default_print_insn): New function.
6885 * arch-utils.h (default_print_insn): Declare.
6886 * avr-tdep.c (avr_gdbarch_init): Don't call set_gdbarch_print_insn.
6887 * bfin-tdep.c (bfin_gdbarch_init): Likewise.
6888 * cris-tdep.c (cris_delayed_get_disassembler): Remove.
6889 (cris_gdbarch_init): Don't call set_gdbarch_print_insn.
6890 * frv-tdep.c (frv_gdbarch_init): Likewise.
6891 * ft32-tdep.c (ft32_gdbarch_init): Likewise.
6892 * gdbarch.sh (print_insn): Use default_print_insn.
6893 * gdbarch.c: Regenerated.
6894 * hppa-tdep.c (hppa_gdbarch_init): Likewise.
6895 * iq2000-tdep.c (iq2000_gdbarch_init): Likewise.
6896 * lm32-tdep.c (lm32_gdbarch_init): Likewise.
6897 * m32c-tdep.c (m32c_gdbarch_init): Likewise.
6898 * m32r-tdep.c (m32r_gdbarch_init): Likewise.
6899 * m68hc11-tdep.c (gdb_print_insn_m68hc11): Remove.
6900 (m68hc11_gdbarch_init): Don't call set_gdbarch_print_insn.
6901 * m68k-tdep.c (m68k_gdbarch_init): Likewise.
6902 * m88k-tdep.c (m88k_gdbarch_init): Likewise.
6903 * microblaze-tdep.c (microblaze_gdbarch_init): Likewise.
6904 * mn10300-tdep.c (mn10300_gdbarch_init): Likewise.
6905 * moxie-tdep.c (moxie_gdbarch_init): Likewise.
6906 * msp430-tdep.c (msp430_gdbarch_init): Likewise.
6907 * mt-tdep.c (mt_gdbarch_init): Likewise.
6908 * nds32-tdep.c (nds32_gdbarch_init): Likewise.
6909 * nios2-tdep.c (nios2_print_insn): Remove.
6910 (nios2_gdbarch_init): Don't call set_gdbarch_print_insn.
6911 * rx-tdep.c (rx_gdbarch_init): Likewise.
6912 * s390-linux-tdep.c (s390_gdbarch_init): Likewise.
6913 * score-tdep.c (score_print_insn): Remove.
6914 (score_gdbarch_init): Don't call set_gdbarch_print_insn.
6915 * sh-tdep.c (sh_gdbarch_init): Likewise.
6916 * sh64-tdep.c (sh64_gdbarch_init): Likewise.
6917 * sparc-tdep.c (sparc32_gdbarch_init): Likewise.
6918 * tic6x-tdep.c (tic6x_print_insn): Remove.
6919 (tic6x_gdbarch_init): Don't call set_gdbarch_print_insn.
6920 * tilegx-tdep.c (tilegx_gdbarch_init): Likewise.
6921 * v850-tdep.c (v850_gdbarch_init): Likewise.
6922 * vax-tdep.c (vax_gdbarch_init): Likewise.
6923 * xstormy16-tdep.c (xstormy16_gdbarch_init): Likewise.
6924 * xtensa-tdep.c (xtensa_gdbarch_init): Likewise.
6925
f7241d4f
JB
69262017-05-23 John Baldwin <jhb@FreeBSD.org>
6927
6928 * mips-fbsd-tdep.c (MIPS_PC_REGNUM): Remove.
6929 (MIPS_FP0_REGNUM): Remove.
6930 (MIPS_FSR_REGNUM): Remove.
6931 (mips_fbsd_supply_fpregs): Use mips_regnum.
6932 (mips_fbsd_supply_gregs): Likewise.
6933 (mips_fbsd_collect_fpregs): Likewise.
6934 (mips_fbsd_collect_gregs): Likewise.
6935
d489d81d
JB
69362017-05-23 John Baldwin <jhb@FreeBSD.org>
6937
6938 * mips-fbsd-nat.c (getregs_supplies): Fix upper bound comparison.
6939 (getpfpregs_supplies): New function.
6940 (mips_fbsd_fetch_inferior_registers): Remove early exit and use
6941 getfpregs_supplies.
6942 (mips_fbsd_store_inferior_registers): Likewise.
6943
e11b3cdc
PA
69442017-05-22 Pedro Alves <palves@redhat.com>
6945
6946 * MAINTAINERS (Host/Native): Add John Baldwin as FreeBSD
6947 maintainer.
6948
0f068fb5
AH
69492017-05-22 Alan Hayward <alan.hayward@arm.com>
6950
6951 * ppc-linux-nat.c (fetch_register): Use PPC_MAX_REGISTER_SIZE.
6952 (store_register): Likewise.
6953 * ppc-sysv-tdep.c (ppc_sysv_abi_push_dummy_call): Likewise.
6954 (get_decimal_float_return_value): Likewise.
6955 (do_ppc_sysv_return_value): Likewise.
6956 (ppc64_sysv_abi_push_integer): Likewise.
6957 (ppc64_sysv_abi_push_freg): Likewise.
6958 (ppc64_sysv_abi_return_value_base): Likewise.
6959 (ppc64_sysv_abi_return_value): Likewise.
6960 * rs6000-aix-tdep.c (rs6000_push_dummy_call): Likewise.
6961 * rs6000-lynx178-tdep.c (rs6000_lynx178_push_dummy_call): Likewise.
6962 * rs6000-nat.c: Likewise.
6963 * rs6000-tdep.c (rs6000_register_to_value): Likewise.
6964 (rs6000_value_to_register): Likewise.
6965 * ppc-tdep.h (PPC_MAX_REGISTER_SIZE): Add.
6966
e6cf65f2
TT
69672017-05-21 Tom Tromey <tom@tromey.com>
6968
6969 PR rust/21466:
6970 * rust-lang.c (rust_print_type) <TYPE_CODE_ARRAY>: Print unsized
6971 arrays as "[T]", not "[T; ]".
6972
43cc5389
TT
69732017-05-19 Tom Tromey <tom@tromey.com>
6974
6975 PR rust/21484:
6976 * rust-lang.c (exp_descriptor_rust): New function.
6977 (rust_language_defn): Use it.
6978 * p-lang.c (pascal_language_defn): Update.
6979 * opencl-lang.c (opencl_language_defn): Update.
6980 * objc-lang.c (objc_language_defn): Update.
6981 * m2-lang.c (m2_language_defn): Update.
6982 * language.h (struct language_defn)
6983 <la_watch_location_expression>: New member.
6984 * language.c (unknown_language_defn, auto_language_defn)
6985 (local_language_defn): Update.
6986 * go-lang.c (go_language_defn): Update.
6987 * f-lang.c (f_language_defn): Update.
6988 * d-lang.c (d_language_defn): Update.
6989 * c-lang.h (c_watch_location_expression): Declare.
6990 * c-lang.c (c_watch_location_expression): New function.
6991 (c_language_defn, cplus_language_defn, asm_language_defn)
6992 (minimal_language_defn): Use it.
6993 * breakpoint.c (watch_command_1): Call
6994 la_watch_location_expression.
6995 * ada-lang.c (ada_language_defn): Update.
6996
7a6e7fcc
RO
69972017-05-19 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
6998
6e7e1744
RO
6999 PR tui/21482
7000 * gdb_curses.h (NOMACROS): Define.
7001 (NCURSES_NOMACROS): Define.
7002
70032017-05-19 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
7004
7005 PR tui/21482
7a6e7fcc
RO
7006 * tui/tui-windata.c (tui_erase_data_content): Cast last mvwaddstr
7007 arg to char *.
7008 * tui/tui-wingeneral.c (box_win): Likewise.
7009 * tui/tui-winsource.c (tui_erase_source_content): Likewise.
7010 (tui_show_source_line): Likewise.
7011 (tui_show_exec_info_content): Likewise.
7012
1933fd8e
VM
70132017-05-19 Vladimir Mezentsev <vladimir.mezentsev@oracle.com>
7014
7015 * sparc-tdep.c (sparc_structure_return_p)
7016 (sparc_arg_on_registers_p): New functions.
7017 (sparc32_store_arguments): Use them.
7018 * sparc64-tdep.c (sparc64_16_byte_align_p)
7019 (sparc64_store_floating_fields, sparc64_extract_floating_fields):
7020 Handle TYPE_CODE_ARRAY.
7021
21873064
YQ
70222017-05-17 Yao Qi <yao.qi@linaro.org>
7023
7024 * cli/cli-decode.c (add_alias_cmd): New function.
7025 * command.h (add_alias_cmd): Declare.
7026 * infcmd.c (_initialize_infcmd): Don't call add_com_alias,
7027 instead call add_alias_cmd.
7028
2b351b19
PA
70292017-05-17 Pedro Alves <palves@redhat.com>
7030
7031 * Makefile.in (nat_extra_makefile_frag): Rename to ...
7032 (nat_makefile_frag): ... this. All references updated.
7033 * configure.ac: Likewise.
7034 * configure.nat: Likewise. Enhance comments.
7035 * configure: Regenerate.
7036
5f2ad7a3
RO
70372017-05-15 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
7038
7039 * procfs.c (procfs_create_inferior): Change prototype to match
7040 definition.
7041
adf3dde5
EZ
70422017-05-13 Eli Zaretskii <eliz@gnu.org>
7043
7044 * tui/tui.c (tui_enable): Cast "unknown" to 'char *' to avoid a
7045 C++ compiler warning.
7046
6830f270
TT
70472017-05-12 Tom Tromey <tom@tromey.com>
7048
7049 PR rust/21483:
7050 * rust-lang.c (rust_evaluate_subexp) <STRUCTOP_STRUCT>: Don't
7051 recurse, just call value_struct_elt directly.
7052
68f2f2e3
TT
70532017-05-12 Tom Tromey <tom@tromey.com>
7054
7055 * rust-lang.c (rust_dump_subexp_body) <STRUCTOP_ANONYMOUS,
7056 OP_RUST_ARRAY>: Fix.
7057
256afbc2
TT
70582017-05-12 Tom Tromey <tom@tromey.com>
7059
7060 * rust-lang.c (rust_print_subexp): Replace "return" with "break".
7061
94bb8dfe
YQ
70622017-05-09 Yao Qi <yao.qi@linaro.org>
7063
7064 * regcache.c: Include <forward_list>.
7065 (struct regcache_list): Remove.
7066 (current_regcache): Update.
7067 (get_thread_arch_aspace_regcache): Update for std::forward_list.
7068 (regcache_thread_ptid_changed): Likewise.
7069 (registers_changed_ptid): Likewise.
7070 (current_regcache_size): Likewise.
7071
8248946c
YQ
70722017-05-09 Yao Qi <yao.qi@linaro.org>
7073
7074 * regcache.c [GDB_SELF_TEST]: Include selftest.h.
7075 (current_regcache_size): New function.
7076 (current_regcache_test): New function.
7077 (_initialize_regcache) [GDB_SELF_TEST]: Register the unit test.
7078
313c5961
AH
70792017-05-08 Alan Hayward <alan.hayward@arm.com>
7080
7081 * mips-tdep.c (mips_o32_return_value): Remove unused buffer.
7082 (print_gp_register_row): Use get_frame_register_value.
7083
27bfc1d1
AH
70842017-05-08 Alan Hayward <alan.hayward@arm.com>
7085
7086 * mips-linux-tdep.c (mips_supply_gregset): Use raw_supply_zeroed.
7087 (mips_supply_fpregset): Likewise.
7088 (mips64_supply_gregset): Likewise.
7089
146e6c5c
AH
70902017-05-08 Alan Hayward <alan.hayward@arm.com>
7091
7092 * mn10300-linux-tdep.c (am33_supply_gregset_method): Use
7093 regcache->raw_supply_zeroed.
7094
e50f25ec
SDJ
70952017-05-06 Sergio Durigan Junior <sergiodj@redhat.com>
7096
7097 * configure.nat: Rearrange 'case' statements to match
7098 host before cpu.
7099
21ea5acd
SDJ
71002017-05-06 Sergio Durigan Junior <sergiodj@redhat.com>
7101
7102 * Makefile.in: Remove "@host_makefile_frag@". Add variables
7103 NAT_FILE, NATDEPFILES, NAT_CDEPS, LOADLIBES, MH_CFLAGS, XM_CLIBS,
7104 NAT_GENERATED_FILES, HAVE_NATIVE_GCORE_HOST. Add
7105 "@nat_extra_makefile_frag@".
7106 (Makefile): Remove dependency on "@frags@".
7107 ($(GNULIB_BUILDDIR)/Makefile): Likewise.
7108 (data-directory/Makefile): Likewise.
7109 * config/aarch64/linux.mh: Deleted; moved contents to
7110 "gdb/configure.nat".
7111 * config/alpha/alpha-linux.mh: Likewise.
7112 * config/alpha/nbsd.mh: Likewise.
7113 * config/arm/linux.mh: Likewise.
7114 * config/arm/nbsdelf.mh: Likewise.
7115 * config/i386/cygwin.mh: Likewise.
7116 * config/i386/cygwin64.mh: Likewise.
7117 * config/i386/darwin.mh: Likewise.
7118 * config/i386/fbsd.mh: Likewise.
7119 * config/i386/fbsd64.mh: Likewise.
7120 * config/i386/go32.mh: Likewise.
7121 * config/i386/i386gnu.mh: Likewise.
7122 * config/i386/i386sol2.mh: Likewise.
7123 * config/i386/linux.mh: Likewise.
7124 * config/i386/linux64.mh: Likewise.
7125 * config/i386/mingw.mh: Likewise.
7126 * config/i386/mingw64.mh: Likewise.
7127 * config/i386/nbsd64.mh: Likewise.
7128 * config/i386/nbsdelf.mh: Likewise.
7129 * config/i386/nto.mh: Likewise.
7130 * config/i386/obsd.mh: Likewise.
7131 * config/i386/obsd64.mh: Likewise.
7132 * config/i386/sol2-64.mh: Likewise.
7133 * config/ia64/linux.mh: Likewise.
7134 * config/m32r/linux.mh: Likewise.
7135 * config/m68k/linux.mh: Likewise.
7136 * config/m68k/nbsdelf.mh: Likewise.
7137 * config/m68k/obsd.mh: Likewise.
7138 * config/m88k/obsd.mh: Likewise.
7139 * config/mips/fbsd.mh: Likewise.
7140 * config/mips/linux.mh: Likewise.
7141 * config/mips/nbsd.mh: Likewise.
7142 * config/mips/obsd64.mh: Likewise.
7143 * config/pa/linux.mh: Likewise.
7144 * config/pa/nbsd.mh: Likewise.
7145 * config/pa/obsd.mh: Likewise.
7146 * config/powerpc/aix.mh: Likewise.
7147 * config/powerpc/fbsd.mh: Likewise.
7148 * config/powerpc/linux.mh: Likewise.
7149 * config/powerpc/nbsd.mh: Likewise.
7150 * config/powerpc/obsd.mh: Likewise.
7151 * config/powerpc/ppc64-linux.mh: Likewise.
7152 * config/powerpc/spu-linux.mh: Likewise.
7153 * config/s390/linux.mh: Likewise.
7154 * config/sh/nbsd.mh: Likewise.
7155 * config/sparc/fbsd.mh: Likewise.
7156 * config/sparc/linux.mh: Likewise.
7157 * config/sparc/linux64.mh: Likewise.
7158 * config/sparc/nbsd64.mh: Likewise.
7159 * config/sparc/nbsdelf.mh: Likewise.
7160 * config/sparc/obsd64.mh: Likewise.
7161 * config/sparc/sol2.mh: Likewise.
7162 * config/tilegx/linux.mh: Likewise.
7163 * config/vax/nbsdelf.mh: Likewise.
7164 * config/vax/obsd.mh: Likewise.
7165 * config/xtensa/linux.mh: Likewise.
7166 * config/i386/i386gnu.mn: New file, with excerpts from
7167 "config/i386/i386gnu.mh".
7168 * configure: Regenerate.
7169 * configure.ac: Rewrite code to use "gdb/configure.nat" instead of
7170 *.mh files under "gdb/config".
7171 * configure.nat: New file, with contents from the
7172 "gdb/config/*/*.mh" files.
7173
7ed1acaf
TW
71742017-05-05 Tim Wiederhake <tim.wiederhake@intel.com>
7175
7176 * btrace.c (btrace_clear): Free insn vector.
7177
e13cb306
PA
71782017-05-05 Pedro Alves <palves@redhat.com>
7179
7180 * warning.m4 (build_warnings): Add -Wno-error=maybe-uninitialized.
7181 * configure: Regenerate.
7182
5ed8105e
PA
71832017-05-04 Pedro Alves <palves@redhat.com>
7184
7185 * Makefile.in (SFILES): Add progspace-and-thread.c.
7186 (HFILES_NO_SRCDIR): Add progspace-and-thread.h.
7187 (COMMON_OBS): Add progspace-and-thread.o.
7188 * breakpoint.c: Include "progspace-and-thread.h".
7189 (update_inserted_breakpoint_locations)
7190 (insert_breakpoint_locations, create_longjmp_master_breakpoint):
7191 Use scoped_restore_current_pspace_and_thread.
7192 (create_std_terminate_master_breakpoint): Use
7193 scoped_restore_current_program_space.
7194 (remove_breakpoint): Use scoped_restore_current_pspace_and_thread.
7195 (print_breakpoint_location): Use
7196 scoped_restore_current_program_space.
7197 (bp_loc_is_permanent): Use
7198 scoped_restore_current_pspace_and_thread.
7199 (resolve_sal_pc): Use scoped_restore_current_pspace_and_thread.
7200 (download_tracepoint_locations): Use
7201 scoped_restore_current_pspace_and_thread.
7202 (breakpoint_re_set): Use scoped_restore_current_pspace_and_thread.
7203 * exec.c (exec_close_1): Use scoped_restore_current_program_space.
7204 (enum step_over_calls_kind): Moved from inferior.h.
7205 (class scoped_restore_current_thread): New class.
7206 * gdbthread.h (make_cleanup_restore_current_thread): Delete
7207 declaration.
7208 (scoped_restore_current_thread): New class.
7209 * infcmd.c: Include "common/gdb_optional.h".
7210 (continue_1, proceed_after_attach): Use
7211 scoped_restore_current_thread.
7212 (notice_new_inferior): Use scoped_restore_current_thread.
7213 * inferior.c: Include "progspace-and-thread.h".
7214 (restore_inferior, save_current_inferior): Delete.
7215 (add_inferior_command, clone_inferior_command): Use
7216 scoped_restore_current_pspace_and_thread.
7217 * inferior.h (scoped_restore_current_inferior): New class.
7218 * infrun.c: Include "progspace-and-thread.h" and
7219 "common/gdb_optional.h".
7220 (follow_fork_inferior): Use
7221 scoped_restore_current_pspace_and_thread.
7222 (scoped_restore_exited_inferior): New class.
7223 (handle_vfork_child_exec_or_exit): Use
7224 scoped_restore_exited_inferior,
7225 scoped_restore_current_pspace_and_thread,
7226 scoped_restore_current_thread and scoped_restore.
7227 (fetch_inferior_event): Use scoped_restore_current_thread.
7228 * linespec.c (decode_line_full, decode_line_1): Use
7229 scoped_restore_current_program_space.
7230 * mi/mi-main.c: Include "progspace-and-thread.h".
7231 (exec_continue): Use scoped_restore_current_thread.
7232 (mi_cmd_exec_run): Use scoped_restore_current_pspace_and_thread.
7233 (mi_cmd_trace_frame_collected): Use scoped_restore_current_thread.
7234 * proc-service.c (ps_pglobal_lookup): Use
7235 scoped_restore_current_program_space.
7236 * progspace-and-thread.c: New file.
7237 * progspace-and-thread.h: New file.
7238 * progspace.c (release_program_space, clone_program_space): Use
7239 scoped_restore_current_program_space.
7240 (restore_program_space, save_current_program_space)
7241 (save_current_space_and_thread): Delete.
7242 (switch_to_program_space_and_thread): Moved to
7243 progspace-and-thread.c.
7244 * progspace.h (save_current_program_space)
7245 (save_current_space_and_thread): Delete declarations.
7246 (scoped_restore_current_program_space): New class.
7247 * remote.c (remote_btrace_maybe_reopen): Use
7248 scoped_restore_current_thread.
7249 * symtab.c: Include "progspace-and-thread.h".
7250 (skip_prologue_sal): Use scoped_restore_current_pspace_and_thread.
7251 * thread.c (print_thread_info_1): Use
7252 scoped_restore_current_thread.
7253 (struct current_thread_cleanup): Delete.
7254 (do_restore_current_thread_cleanup)
7255 (restore_current_thread_cleanup_dtor): Rename/convert both to ...
7256 (scoped_restore_current_thread::~scoped_restore_current_thread):
7257 ... this new dtor.
7258 (make_cleanup_restore_current_thread): Rename/convert to ...
7259 (scoped_restore_current_thread::scoped_restore_current_thread):
7260 ... this new ctor.
7261 (thread_apply_all_command): Use scoped_restore_current_thread.
7262 (thread_apply_command): Use scoped_restore_current_thread.
7263 * tracepoint.c (tdump_command): Use scoped_restore_current_thread.
7264 * varobj.c (value_of_root_1): Use scoped_restore_current_thread.
7265
f6223dbb
PA
72662017-05-04 Pedro Alves <palves@redhat.com>
7267
7268 * thread.c (make_cleanup_restore_current_thread): Move
7269 find_thread_ptid call before the is_stopped call. Assert that the
7270 thread is found. Replace is_stopped call by checking the thread's
7271 state directly. Remove unnecessary NULL-thread check.
7272
3c3ae77e
PA
72732017-05-04 Pedro Alves <palves@redhat.com>
7274
7275 * corelow.c (thread_section_name): New class.
7276 (get_core_register_section, get_core_siginfo): Use it.
7277
45eba0ab
AA
72782017-05-04 Andreas Arnez <arnez@linux.vnet.ibm.com>
7279
7280 * corelow.c (sniff_core_bfd): Remove extra semicolon.
7281 (get_core_register_section): Remove xfree of NULL pointer.
7282
f81fdd35
AH
72832017-05-03 Alan Hayward <alan.hayward@arm.com>
7284
7285 * frv-linux-tdep.c (frv_linux_supply_gregset): Use raw_supply_zeroed.
7286 * regcache.c (regcache::raw_supply_zeroed): New function.
7287 * regcache.h (regcache::raw_supply_zeroed): New declaration.
7288
35837774
SM
72892017-05-03 Simon Marchi <simon.marchi@ericsson.com>
7290
7291 * gdbarch.sh: Remove commented out definition of
7292 TARGET_CHAR_BIT.
7293 * gdbarch.h: Re-generate.
7294
c94fee56
SDJ
72952017-05-03 Sergio Durigan Junior <sergiodj@redhat.com>
7296
7297 * configure: Regenerate.
7298
d17f7b36
SM
72992017-05-02 Simon Marchi <simon.marchi@ericsson.com>
7300
7301 * solib-target.c (solib_target_relocate_section_addresses):
7302 Remove num_section_bases, num_bases, segment_bases variables.
7303
b560ebd6
SM
73042017-05-02 Simon Marchi <simon.marchi@polymtl.ca>
7305
7306 * common/gdb_vecs.h (DEF_VEC_I (CORE_ADDR)): Remove.
7307
f2f46dfc
SM
73082017-05-02 Simon Marchi <simon.marchi@polymtl.ca>
7309
7310 * solib-target.c: Include <vector>
7311 (struct lm_info_target) <~lm_info_target>: Remove.
7312 <segment_bases, section_bases>: Change type to
7313 std::vector<CORE_ADDR>.
7314 (library_list_start_segment, library_list_start_section,
7315 library_list_end_library,
7316 solib_target_relocate_section_addresses): Adjust.
7317
a0ff9e1a
SM
73182017-05-02 Simon Marchi <simon.marchi@polymtl.ca>
7319
7320 * gdbarch.sh (software_single_step): Change return type to
7321 std::vector<CORE_ADDR>.
7322 * gdbarch.c, gdbarch.h: Re-generate.
7323 * arch/arm-get-next-pcs.c (thumb_deal_with_atomic_sequence_raw):
7324 Adjust.
7325 (arm_deal_with_atomic_sequence_raw): Adjust.
7326 (thumb_get_next_pcs_raw): Adjust.
7327 (arm_get_next_pcs_raw): Adjust.
7328 (arm_get_next_pcs): Adjust.
7329 * arch/arm-get-next-pcs.h (arm_get_next_pcs): Adjust.
7330 * aarch64-tdep.c (aarch64_software_single_step): Adjust.
7331 * alpha-tdep.c (alpha_deal_with_atomic_sequence): Adjust.
7332 (alpha_software_single_step): Adjust.
7333 * alpha-tdep.h (alpha_software_single_step): Adjust.
7334 * arm-linux-tdep.c (arm_linux_software_single_step): Adjust.
7335 * arm-tdep.c (arm_software_single_step): Adjust.
7336 (arm_breakpoint_kind_from_current_state): Adjust.
7337 * arm-tdep.h (arm_software_single_step): Adjust.
7338 * breakpoint.c (insert_single_step_breakpoint): Adjust.
7339 * cris-tdep.c (cris_software_single_step): Adjust.
7340 * mips-tdep.c (mips_deal_with_atomic_sequence): Adjust.
7341 (micromips_deal_with_atomic_sequence): Adjust.
7342 (deal_with_atomic_sequence): Adjust.
7343 (mips_software_single_step): Adjust.
7344 * mips-tdep.h (mips_software_single_step): Adjust.
7345 * moxie-tdep.c (moxie_software_single_step): Adjust.
7346 * nios2-tdep.c (nios2_software_single_step): Adjust.
7347 * ppc-tdep.h (ppc_deal_with_atomic_sequence): Adjust.
7348 * rs6000-aix-tdep.c (rs6000_software_single_step): Adjust.
7349 * rs6000-tdep.c (ppc_deal_with_atomic_sequence): Adjust.
7350 * s390-linux-tdep.c (s390_software_single_step): Adjust.
7351 * sparc-tdep.c (sparc_software_single_step): Adjust.
7352 * spu-tdep.c (spu_software_single_step): Adjust.
7353 * tic6x-tdep.c (tic6x_software_single_step): Adjust.
7354
ea480a30
SM
73552017-05-02 Simon Marchi <simon.marchi@polymtl.ca>
7356
7357 * gdbarch.sh: Use semi-colon as field separator instead of colon.
7358 * gdbarch.h: Re-generate.
7359
d050f7d7
TW
73602017-05-01 Tim Wiederhake <tim.wiederhake@intel.com>
7361
7362 * Makefile.in (SUBDIR_PYTHON_OBS): Add py-instruction.o.
7363 (SUBDIR_PYTHON_SRCS): Add py-instruction.c.
7364 * python/py-instruction.c, python/py-instruction.h: New file.
7365 * python/py-record.c: Add py-instruction.h include.
7366 (gdbpy_initialize_record): Make gdb.Instruction a super class of
7367 gdb.RecordInstruction.
7368 * python/python-internal.h: Add gdbpy_initialize_instruction
7369 declaration.
7370 * python/python.c (do_start_initialization): Add
7371 gdbpy_initialize_instruction.
7372
14f819c8
TW
73732017-05-01 Tim Wiederhake <tim.wiederhake@intel.com>
7374
7375 * python/py-record-btrace.c (BTPY_REQUIRE_VALID_CALL, btpy_call_type):
7376 Remove.
7377 (btrace_func_from_recpy_func): New function.
7378 (btpy_call_new, btpy_number, btpy_hash, btpy_richcompare): Remove.
7379 (btpy_call_level, btpy_call_symbol, btpy_call_instructions,
7380 btpy_call_up, btpy_call_prev_sibling, btpy_call_next_sibling): Rename to ...
7381 (recpy_bt_func_level, recpy_bt_func_symbol, recpy_bt_func_instructions,
7382 recpy_bt_func_up, recpy_bt_func_prev, recpy_bt_func_next): This.
7383 Also, use new helper functions.
7384 (btpy_list_item): Use new helper functions.
7385 (recpy_bt_function_call_history): Use new type name.
7386 (btpy_call_getset): Remove.
7387 (gdbpy_initialize_btrace): Remove code to initialize
7388 gdb.BtraceFunctionCall.
7389 * python/py-record-btrace.h (recpy_bt_func_number, recpy_btb_func_level,
7390 recpy_btb_func_symbol, recpy_bt_func_instructions, recpy_bt_func_up,
7391 recpy_bt_func_prev, recpy_bt_func_next): New export.
7392 * python/py-record.c (recpy_func_type): New static object.
7393 (recpy_func_new, recpy_func_level, recpy_func_symbol,
7394 recpy_func_instructions, recpy_func_up, recpy_func_prev,
7395 recpy_func_next): New function.
7396 (recpy_element_hash, recpy_element_richcompare): Updated comment.
7397 (recpy_func_getset): New static object.
7398 (gdbpy_initialize_record): Add code to initialize gdb.RecordInstruction.
7399 * python/py-record.h (recpy_func_type, recpy_func_new): New export.
7400
0ed5da75
TW
74012017-05-01 Tim Wiederhake <tim.wiederhake@intel.com>
7402
7403 * python/py-record-btrace.c (BTPY_REQUIRE_VALID_INSN): Remove.
7404 (btpy_object, btpy_insn_type, btpy_new): Remove.
7405 (btpy_list_object): Use gdb.RecordInstruction type instead of
7406 gdb.BtraceInstruction type.
7407 (btrace_insn_from_recpy_insn): New function.
7408 (btpy_insn_or_gap_new): Adjust comment. Use recpy_insn_new instead of
7409 btpy_new.
7410 (btpy_call_new, btpy_list_item): Do not use btpy_new anymore.
7411 (btpy_number, btpy_hash, btpy_call_level, btpy_call_symbol,
7412 btpy_call_instructions, btpy_call_up, btpy_call_prev_sibling,
7413 btpy_call_next_sibling, btpy_richcompare): Use recpy_element_object
7414 instead of btpy_object.
7415 (btpy_insn_sal, btpy_insn_pc, btpy_insn_size, btpy_insn_is_speculative,
7416 btpy_insn_data, btpy_insn_decode): Rename to ...
7417 (recpy_bt_insn_sal, recpy_bt_insn_pc, recpy_bt_insn_size,
7418 recpy_bt_insn_is_speculative, recpy_bt_insn_data,
7419 recpy_bt_insn_decode): This. Also, use new helper functions.
7420 (btpy_list_position, recpy_bt_goto): Use recpy_element_object and
7421 recpy_insn_type.
7422 (btpy_insn_getset): Remove.
7423 (gdbpy_initialize_btrace): Remove code to initialize
7424 gdb.BtraceInstruction. Use recpy_element_object.
7425 * python/py-record-btrace.h (recpy_bt_insn_number, recpy_bt_insn_sal,
7426 recpy_bt_insn_pc, recpy_bt_insn_data, recpy_bt_insn_decoded,
7427 recpy_bt_insn_size, recpy_bt_insn_is_speculative): New export.
7428 * python/py-record.c (recpy_insn_type): New static object.
7429 (recpy_insn_new, recpy_insn_sal, recpy_insn_pc, recpy_insn_data,
7430 recpy_insn_decoded, recpy_insn_size, recpy_insn_is_speculative,
7431 recpy_element_number, recpy_element_hash, recpy_element_richcompare):
7432 New function.
7433 (recpy_insn_getset): New static object.
7434 (gdbpy_initialize_record): Initialize gdb.RecordInstruction.
7435 * python/py-record.h (recpy_element_object): New typedef.
7436 (recpy_insn_type, recpy_insn_new): New export.
7437
913aeadd
TW
74382017-05-01 Tim Wiederhake <tim.wiederhake@intel.com>
7439
7440 * py-record-btrace.c (btpy_insn_new): Removed.
7441 (btpy_insn_or_gap_new): New function.
7442 (btpy_insn_error): Removed.
7443 (btpy_insn_sal, btpy_insn_pc, btpy_insn_size, btpy_insn_is_speculative,
7444 btpy_insn_data, btpy_insn_decode): Remove code path for gaps.
7445 (recpy_bt_replay_position, recpy_bt_begin, recpy_bt_end): Call
7446 btpy_insn_or_gap_new instead of btpy_insn_new.
7447 (btpy_insn_getset): Remove btpy_insn_error.
7448 * py-record.c (recpy_gap_type): New static object.
7449 (recpy_gap_object): New typedef.
7450 (recpy_gap_new, recpy_gap_number, recpy_gap_reason_code,
7451 recpy_gap_reason_string): New function.
7452 (recpy_gap_getset): New static object.
7453 (gdbpy_initialize_record): Initialize gdb.RecordGap type.
7454 * py-record.h (recpy_gap_new): New export.
7455
a3be24ad
TW
74562017-05-01 Tim Wiederhake <tim.wiederhake@intel.com>
7457
7458 * python/py-record.c (recpy_ptid): Remove.
7459 (recpy_record_getset): Remove recpy_ptid.
7460
ae20e79a
TW
74612017-05-01 Tim Wiederhake <tim.wiederhake@intel.com>
7462
7463 * btrace.c (btrace_fetch): Set inferior_ptid.
7464 * python/py-record-btrace.c: Add "py-record.h" include.
7465 (recpy_bt_format, recpy_bt_replay_position, recpy_bt_begin,
7466 recpy_bt_end, recpy_bt_instruction_history,
7467 recpy_bt_function_call_history, recpy_bt_goto): Use ptid stored
7468 in gdb.Record object instead of current ptid.
7469 * python/py-record.c: Include new "py-record.h" file.
7470 (recpy_record_object): Moved to py-record.h.
7471 * python/py-record.h: New file.
7472
8d0050ea
TW
74732017-05-01 Tim Wiederhake <tim.wiederhake@intel.com>
7474
7475 * python/py-record-btrace.c (BTPY_REQUIRE_VALID_INSN,
7476 BTPY_REQUIRE_VALID_CALL, recpy_bt_function_call_history): Fix
7477 indentation.
7478
3f380b50
JB
74792017-05-01 Joel Brobecker <brobecker@adacore.com>
7480
7481 * MAINTAINERS: Move Daniel Jacobowitz and Mark Kettenis to
7482 the past maintainers section.
7483
07495424
YQ
74842017-04-28 Yao Qi <yao.qi@linaro.org>
7485
7486 * infcmd.c (get_return_value): Use regcache ctor, and remove
7487 cleanup.
7488
deb1fa3e
YQ
74892017-04-28 Yao Qi <yao.qi@linaro.org>
7490 Pedro Alves <palves@redhat.com>
7491
7492 * regcache.c (regcache::regcache): New tag dispatch ctor.
7493 (do_cooked_read): Moved above.
7494 (regcache_dup): Use the tag dispatch ctor..
7495 * regcache.h (regcache): Declare ctor, delete copy ctor and
7496 assignment operator, remove friend regcache_dup.
7497
b421c83c
YQ
74982017-04-28 Yao Qi <yao.qi@linaro.org>
7499
7500 * regcache.c (regcache_dup): Assert !src->m_readonly_p and
7501 call method save instead of regcache_cpy.
7502 * regcache.h (struct regcache): Make regcache_dup a friend.
7503
ef79d9a3
YQ
75042017-04-28 Yao Qi <yao.qi@linaro.org>
7505
7506 * regcache.c (struct regcache): Move to regcache.h
7507 (regcache::arch): New method.
7508 (regcache_get_ptid): Update.
7509 (get_regcache_arch): Call arch method.
7510 (get_regcache_aspace): Call method aspace.
7511 (register_buffer): Change it to method.
7512 (regcache_save): Change it to regcache::save.
7513 (regcache_restore): Likewise.
7514 (regcache_cpy_no_passthrough): Remove the declaration.
7515 (regcache_cpy): Call methods restore and cpy_no_passthrough.
7516 (regcache_cpy_no_passthrough): Change it to method
7517 cpy_no_passthrough.
7518 (regcache_register_status): Change it to method
7519 get_register_status.
7520 (regcache_invalidate): Change it to method invalidate.
7521 (regcache_thread_ptid_changed): Use methods ptid and set_ptid.
7522 (regcache_raw_update): Change it to method raw_update.
7523 (regcache_raw_read): Likewise.
7524 (regcache_raw_read_signed): Likewise.
7525 (regcache_raw_read_unsigned): Likewise.
7526 (regcache_raw_write_signed): Likewise.
7527 (regcache_raw_write_unsigned): Likewise.
7528 (regcache_cooked_read): Likewise.
7529 (regcache_cooked_read_value): Likewise.
7530 (regcache_cooked_read_signed): Likewise.
7531 (regcache_cooked_read_unsigned): Likewise.
7532 (regcache_cooked_write_signed): Likewise.
7533 (regcache_cooked_write_unsigned): Likewise.
7534 (regcache_raw_set_cached_value): Likewise.
7535 (regcache_raw_write): Likewise.
7536 (regcache_cooked_write): Likewise.
7537 (regcache_xfer_part): Likewise.
7538 (regcache_raw_read_part): Likewise.
7539 (regcache_raw_write_part): Likewise.
7540 (regcache_cooked_read_part): Likewise.
7541 (regcache_cooked_write_part): Likewise.
7542 (regcache_raw_supply): Likewise.
7543 (regcache_raw_collect): Likewise.
7544 (regcache_transfer_regset): Likewise.
7545 (regcache_supply_regset): Likewise.
7546 (regcache_collect_regset): Likewise.
7547 (regcache_debug_print_register): Likewise.
7548 (enum regcache_dump_what): Move it to regcache.h.
7549 (regcache_dump): Change it to method dump.
7550 * regcache.h (enum regcache_dump_what): New.
7551 (class regcache): New.
7552 * target.c (target_fetch_registers): Call method
7553 debug_print_register.
7554 (target_store_registers): Likewise.
7555
f8fdb78e
SM
75562017-04-28 Simon Marchi <simon.marchi@ericsson.com>
7557
7558 * windows-nat.c (struct lm_info_windows): Initialize field.
7559 (windows_make_so): Allocate lm_info_windows with new.
7560 (windows_free_so): Free lm_info_windows with delete.
7561
9ccbfd7b
SM
75622017-04-28 Simon Marchi <simon.marchi@ericsson.com>
7563
7564 * solib-darwin.c (struct lm_info_darwin): Initialize field.
7565 (darwin_current_sos): Allocate lm_info_darwin with new, remove
7566 cleanup.
7567 (darwin_free_so): Free lm_info_darwin with delete.
7568
76e75227
SM
75692017-04-28 Simon Marchi <simon.marchi@ericsson.com>
7570
7571 * solib-svr4.h (struct lm_info_svr4): Initialize fields.
7572 <l_addr_p>: Change type to bool.
7573 * solib-svr4.c (lm_info_read): Allocate lm_info_svr4 with new.
7574 (svr4_free_so): Free lm_info_svr4 with delete.
7575 (svr4_copy_library_list): Replace memcpy with call to copy
7576 constructor.
7577 (library_list_start_library, svr4_default_sos): Allocate
7578 lm_info_svr4 with new.
7579
51046d9e
SM
75802017-04-28 Simon Marchi <simon.marchi@ericsson.com>
7581
7582 * solib-target.c (struct lm_info_target): Add destructor,
7583 initialize fields.
7584 <name>: Change type to std::string.
7585 (library_list_start_library): Allocate lm_info_target with new.
7586 (solib_target_free_library_list): Free lm_info_target with
7587 delete.
7588 (solib_target_current_sos): Adapt to std::string.
7589 (solib_target_free_so): Free lm_info_target with delete.
7590
4023ae76
SM
75912017-04-28 Simon Marchi <simon.marchi@ericsson.com>
7592
7593 * solib-frv.c (struct lm_info_frv): Add destructor, initialize
7594 fields.
7595 (frv_current_sos): Allocate lm_info_frv with new.
7596 (frv_relocate_main_executable): Free lm_info_frv with delete,
7597 allocate with new.
7598 (frv_clear_solib, frv_free_so): Free lm_info_frv with delete.
7599
af43057b
SM
76002017-04-28 Simon Marchi <simon.marchi@ericsson.com>
7601
7602 * solib-frv.c (struct lm_info_frv): Fix indentation.
7603
b0911207
SM
76042017-04-28 Simon Marchi <simon.marchi@ericsson.com>
7605
7606 * solib-dsbt.c (struct lm_info_dsbt): Add destructor, initialize
7607 map field.
7608 (dsbt_current_sos): Allocate lm_info_dsbt with new.
7609 (dsbt_relocate_main_executable): Free lm_info_dsbt with delete
7610 and allocate with new.
7611 (dsbt_clear_solib, dsbt_free_so): Free lm_info_dsbt with delete.
7612
6c401f72
SM
76132017-04-28 Simon Marchi <simon.marchi@ericsson.com>
7614
7615 * solib-aix.c (struct lm_info_aix): Initialize fields in-class.
7616 <filename, member_name>: Change type to std::string.
7617 (solib_aix_new_lm_info, solib_aix_xfree_lm_info): Remove.
7618 (library_list_start_library): Allocate lm_info_aix with new.
7619 (solib_aix_free_library_list, solib_aix_free_so): Free with delete.
7620 (solib_aix_current_sos): Adapt to std::string, copy lm_info_aix
7621 with copy constructor.
7622
d0e449a1
SM
76232017-04-28 Simon Marchi <simon.marchi@ericsson.com>
7624
7625 * solist.h (struct lm_info): Remove.
7626 (struct lm_info_base): New class.
7627 (struct so_list) <lm_info>: Change type to lm_info_base *.
7628 * nto-tdep.c (struct lm_info): Remove.
7629 (lm_addr): Adjust.
7630 * solib-aix.c (struct lm_info): Rename to ...
7631 (struct lm_info_aix): ... this. Extend lm_info_base.
7632 (lm_info_p): Rename to ...
7633 (lm_info_aix_p): ... this, and adjust.
7634 (solib_aix_new_lm_info, solib_aix_xfree_lm_info,
7635 solib_aix_parse_libraries, library_list_start_library,
7636 solib_aix_free_library_list, solib_aix_parse_libraries,
7637 solib_aix_get_library_list,
7638 solib_aix_relocate_section_addresses, solib_aix_free_so,
7639 solib_aix_get_section_offsets,
7640 solib_aix_solib_create_inferior_hook, solib_aix_current_sos):
7641 Adjust.
7642 (struct solib_aix_inferior_data) <library_list>: Adjust.
7643 * solib-darwin.c (struct lm_info): Rename to ...
7644 (struct lm_info_darwin): ... this. Extend lm_info_base.
7645 (darwin_current_sos, darwin_relocate_section_addresses): Adjust.
7646 * solib-dsbt.c (struct lm_info): Rename to ...
7647 (struct lm_info_dsbt): ... this. Extend lm_info_base.
7648 (struct dsbt_info) <main_executable_lm_info): Adjust.
7649 (dsbt_current_sos, dsbt_relocate_main_executable, dsbt_free_so,
7650 dsbt_relocate_section_addresses): Adjust.
7651 * solib-frv.c (struct lm_info): Rename to ...
7652 (struct lm_info_frv): ... this. Extend lm_info_base.
7653 (main_executable_lm_info): Adjust.
7654 (frv_current_sos, frv_relocate_main_executable, frv_free_so,
7655 frv_relocate_section_addresses, frv_fdpic_find_global_pointer,
7656 find_canonical_descriptor_in_load_object,
7657 frv_fdpic_find_canonical_descriptor): Adjust.
7658 * solib-svr4.c (struct lm_info): Move to solib-svr4.h, renamed
7659 to lm_info_svr4.
7660 (lm_info_read, lm_addr_check, svr4_keep_data_in_core,
7661 svr4_clear_so, svr4_copy_library_list,
7662 library_list_start_library, svr4_default_sos, svr4_read_so_list,
7663 svr4_current_sos, svr4_fetch_objfile_link_map,
7664 solist_update_incremental): Adjust.
7665 * solib-svr4.h (struct lm_info_svr4): Move here from
7666 solib-svr4.c.
7667 * solib-target.c (struct lm_info): Rename to ...
7668 (struct lm_info_target): ... this. Extend lm_info_base.
7669 (lm_info_p): Rename to ...
7670 (lm_info_target_p): ... this.
7671 (solib_target_parse_libraries, library_list_start_segment,
7672 library_list_start_section, library_list_start_library,
7673 library_list_end_library, solib_target_free_library_list,
7674 solib_target_current_sos, solib_target_free_so,
7675 solib_target_relocate_section_addresses): Adjust.
7676 * windows-nat.c (struct lm_info): Rename to ...
7677 (struct lm_info_windows): ... this. Extend lm_info_base.
7678 (windows_make_so, handle_load_dll, handle_unload_dll,
7679 windows_xfer_shared_libraries): Adjust.
7680
434a4023
SM
76812017-04-28 Simon Marchi <simon.marchi@ericsson.com>
7682
7683 * solib-darwin.c (struct darwin_so_list): Remove.
7684 (darwin_current_sos): Allocate an so_list object instead of a
7685 darwin_so_list, separately allocate an lm_info object.
7686 (darwin_free_so): Free lm_info.
7687
428544e8
JB
76882017-04-28 John Baldwin <jhb@FreeBSD.org>
7689
7690 * mips-tdep.c (print_gp_register_row): Replace printf_filtered
7691 with fprintf_filtered.
7692
4621115f
YQ
76932017-04-28 Yao Qi <yao.qi@linaro.org>
7694
7695 * regcache.c (regcache::regcache): New function.
7696 (regcache::~regcache): New function.
7697 (regcache_xmalloc_1): Remove.
7698 (regcache_xmalloc): Call new regcache.
7699 (regcache_xfree): Call delete regcache.
7700 (get_thread_arch_aspace_regcache): Call new regcache.
7701
339053c2
YQ
77022017-04-28 Yao Qi <yao.qi@linaro.org>
7703
7704 * mips-linux-nat.c (mips_linux_new_thread): Use ptid method
7705 lwp instead of ptid_get_lwp.
7706
7974a605
YQ
77072017-04-28 Yao Qi <yao.qi@linaro.org>
7708
7709 * mips-linux-nat.c (mips_linux_new_thread): Get lwpid from
7710 lwp_info instead of getting from inferior_ptid.
7711
e15c3eb4
KS
77122017-04-27 Keith Seitz <keiths@redhat.com>
7713
7714 * gdbtypes.c (LVALUE_REFERENCE_TO_RVALUE_BINDING_BADNESS)
7715 DIFFERENT_REFERENCE_TYPE_BADNESS): Remove.
7716 (CV_CONVERSION_BADNESS): Define.
7717 (rank_one_type): Remove overly restrictive rvalue reference
7718 rank checks.
7719 Add cv-qualifier checks and subranks for type equality.
7720 * gdbtypes.h (REFERENCE_CONVERSION_RVALUE,
7721 REFERENCE_CONVERSION_CONST_LVALUE, CV_CONVERSION_BADNESS,
7722 CV_CONVERSION_CONST, CV_CONVERSION_VOLATILE): Declare.
7723
72bc1d24
SM
77242017-04-27 Simon Marchi <simon.marchi@ericsson.com>
7725
7726 * python/py-inferior.c (inferior_to_inferior_object): Increment reference
7727 count when creating the object.
7728
55bcecda
UW
77292017-04-27 Sangamesh Mallayya <sangamesh.swamy@in.ibm.com>
7730 Ulrich Weigand <uweigand@de.ibm.com>
7731
7732 * xcoffread.c (read_xcoff_symtab): Read correct function auxiliary
7733 entry if xlc -qfuncsect or gcc -ffunction-sections compiler option
7734 is used in AIX.
7735 (read_xcoff_symtab): Handle C_WEAKEXT storage class.
7736 (process_xcoff_symbol): Likewise.
7737 (scan_xcoff_symtab): Likewise.
7738
5c99fcf8
AH
77392017-04-26 Alan Hayward <alan.hayward@arm.com>
7740
7741 * ia64-tdep.c (examine_prologue): Use get_frame_register_unsigned.
7742 (ia64_sigtramp_frame_prev_register): Use read_memory_unsigned_integer.
7743 (ia64_access_reg): Use get_frame_register_unsigned.
7744 (ia64_access_rse_reg): Likewise.
7745 (ia64_libunwind_frame_prev_register): Likewise.
7746
b41c5a85
JW
77472017-04-26 Jiong Wang <jiong.wang@arm.com>
7748
7749 * gdbarch.sh: New gdbarch method execute_dwarf_cfa_vendor_op.
7750 * gdbarch.c: Regenerated.
7751 * gdbarch.h: Regenerated.
7752 * dwarf2-frame.c (dwarf2_frame_state_alloc_regs): Made the
7753 visibility external.
7754 (execute_cfa_program): Call execute_dwarf_cfa_vendor_op for CFI
7755 between DW_CFA_lo_user and DW_CFA_high_user inclusive.
7756 (enum cfa_how_kind): Move to ...
7757 (struct dwarf2_frame_state_reg_info): Likewise.
7758 (struct dwarf2_frame_state): Likewise.
7759 * dwarf2-frame.h: ... here.
7760 (dwarf2_frame_state_alloc_regs): New declaration.
7761 * sparc-tdep.c (sparc_execute_dwarf_cfa_vendor_op): New function.
7762 (sparc32_gdbarch_init): Register execute_dwarf_cfa_vendor_op hook.
7763
c185f580
AH
77642017-04-26 Alan Hayward <alan.hayward@arm.com>
7765
7766 * xtensa-tdep.c (xtensa_pseudo_register_read): Use
7767 regcache_raw_read_unsigned.
7768 (xtensa_pseudo_register_write): Likewise.
7769
19c45594
AH
77702017-04-26 Alan Hayward <alan.hayward@arm.com>
7771
7772 * nds32-tdep.c (nds32_pseudo_register_read): Abort on errors.
7773 (nds32_pseudo_register_write): Likewise.
7774
4658f12e
YQ
77752017-04-25 Yao Qi <yao.qi@linaro.org>
7776
7777 * regcache.c (struct regcache) <readonly_p>: Change its type
7778 to bool.
7779 (regcache_xmalloc_1): Update parameter type and callers update.
7780
d581dda8
YQ
77812017-04-25 Yao Qi <yao.qi@linaro.org>
7782
7783 * aarch64-tdep.c (aarch64_gdbarch_init): Don't call
7784 set_gdbarch_wchar_bit.
7785 * arm-tdep.c (arm_gdbarch_init): Likewise.
7786
debed3db
PA
77872017-04-25 Pedro Alves <palves@redhat.com>
7788
7789 * common/poison.h [!HAVE_IS_TRIVIALLY_COPYABLE] (IsRelocatable)
7790 (BothAreRelocatable, memcopy, memmove): Don't define.
7791 * common/traits.h (__has_feature, HAVE_IS_TRIVIALLY_COPYABLE): New
7792 macros.
7793
b0b92aeb
PA
77942017-04-25 Pedro Alves <palves@redhat.com>
7795
7796 * common/common-defs.h: Include "common/poison.h".
7797 * common/function-view.h: (Not, Or, Requires): Move to traits.h
7798 and adjust.
7799 * common/poison.h: New file.
7800 * common/traits.h: Include <type_traits>.
7801 (Not, Or, Requires): New, moved from common/function-view.h.
7802
16c4d54a
PA
78032017-04-25 Pedro Alves <palves@redhat.com>
7804
7805 * breakpoint.h (struct breakpoint): In-class initialize all
7806 fields. Make boolean fields "bool".
7807 * breakpoint.c (init_raw_breakpoint_without_location): Remove
7808 memset call and initializations no longer necessary.
7809
b5c36682
PA
78102017-04-25 Pedro Alves <palves@redhat.com>
7811
7812 * btrace.c (pt_btrace_insn_flags): Change parameter type to
7813 reference.
7814 (pt_btrace_insn): New function.
7815 (ftrace_add_pt): Remove memset call and use pt_btrace_insn.
7816
5625a286
PA
78172017-04-25 Pedro Alves <palves@redhat.com>
7818
7819 * ada-lang.c (ada_catchpoint_location): Now a "class". Remove
7820 "base" field and inherit from "bp_location" instead. Add
7821 non-default ctor.
7822 (allocate_location_exception): Use new non-default ctor.
7823 * breakpoint.c (get_first_locp_gte_addr): Remove memset call.
7824 (init_bp_location): Convert to ...
7825 (bp_location::bp_location): ... this new ctor, and remove memset
7826 call.
7827 (base_breakpoint_allocate_location): Use the new non-default ctor.
7828 * breakpoint.h (bp_location): Now a class. Declare default and
7829 non-default ctors. In-class initialize all members.
7830 (init_bp_location): Remove declaration.
7831
23bcc18f
PA
78322017-04-25 Pedro Alves <palves@redhat.com>
7833
7834 * common/enum-flags.h (enum_flags): Don't implement copy ctor and
7835 assignment operator.
7836
e1ba3053
YQ
78372017-04-24 Yao Qi <yao.qi@linaro.org>
7838
7839 * doublest.c (convert_doublest_to_floatformat): Call
7840 floatformat_totalsize_bytes.
7841
10f489e5
TT
78422017-04-22 Tom Tromey <tom@tromey.com>
7843
7844 * mi/mi-cmd-file.c (mi_cmd_file_list_shared_libraries): Use
7845 ui_out_emit_list.
7846 * stack.c (print_frame): Use ui_out_emit_list.
7847 * mi/mi-symbol-cmds.c (mi_cmd_symbol_list_lines): Use
7848 ui_out_emit_list.
7849 * mi/mi-main.c (print_one_inferior)
7850 (mi_cmd_data_list_register_names)
7851 (mi_cmd_data_list_register_values, mi_cmd_list_features)
7852 (mi_cmd_list_target_features, mi_cmd_trace_frame_collected): Use
7853 ui_out_emit_list.
7854 * mi/mi-interp.c (mi_on_normal_stop_1): Use ui_out_emit_list.
7855 (mi_output_solib_attribs): Use ui_out_emit_list,
7856 ui_out_emit_tuple.
7857 * mi/mi-cmd-var.c (varobj_update_one): Use ui_out_emit_list.
7858 * mi/mi-cmd-stack.c (mi_cmd_stack_list_frames)
7859 (mi_cmd_stack_list_args, list_args_or_locals): Use
7860 ui_out_emit_list.
7861 * disasm.c (do_assembly_only): Use ui_out_emit_list.
7862 * breakpoint.c (print_solib_event, output_thread_groups): Use
7863 ui_out_emit_list.
7864
0092b74d
TT
78652017-04-22 Tom Tromey <tom@tromey.com>
7866
7867 * mi/mi-main.c (print_variable_or_computed): Use ui_out_emit_tuple.
7868 * mi/mi-cmd-var.c (varobj_update_one): Use ui_out_emit_tuple.
7869 * mi/mi-cmd-stack.c (list_arg_or_local): Use ui_out_emit_tuple.
7870
a14a62dd
TT
78712017-04-22 Tom Tromey <tom@tromey.com>
7872
7873 * tracepoint.c (tvariables_info_1)
7874 (print_one_static_tracepoint_marker): Use ui_out_emit_tuple.
7875
46b9c129
TT
78762017-04-22 Tom Tromey <tom@tromey.com>
7877
7878 * stack.c (print_frame_arg): Use ui_out_emit_tuple,
7879 annotate_arg_emitter.
7880 * breakpoint.c (print_mention_watchpoint)
7881 (print_mention_masked_watchpoint): Use ui_out_emit_tuple.
7882 * annotate.h (struct annotate_arg_emitter): New.
7883
2e783024
TT
78842017-04-22 Tom Tromey <tom@tromey.com>
7885
7886 * record-btrace.c (record_btrace_insn_history)
7887 (record_btrace_insn_history_range, record_btrace_call_history)
7888 (record_btrace_call_history_range): Use ui_out_emit_tuple.
7889 * thread.c (do_captured_list_thread_ids, print_thread_info_1): Use
7890 ui_out_emit_tuple.
7891 * stack.c (print_frame_info): Use ui_out_emit_tuple.
7892 * solib.c (info_sharedlibrary_command): Use ui_out_emit_tuple.
7893 * skip.c (skip_info): Use ui_out_emit_tuple.
7894 * remote.c (show_remote_cmd): Use ui_out_emit_tuple.
7895 * progspace.c (print_program_space): Use ui_out_emit_tuple.
7896 * probe.c (info_probes_for_ops): Use ui_out_emit_tuple.
7897 * osdata.c (info_osdata): Use ui_out_emit_tuple.
7898 * mi/mi-symbol-cmds.c (mi_cmd_symbol_list_lines): Use
7899 ui_out_emit_tuple.
7900 * mi/mi-main.c (print_one_inferior, list_available_thread_groups)
7901 (output_register, mi_cmd_data_read_memory)
7902 (mi_cmd_data_read_memory_bytes, mi_load_progress)
7903 (mi_cmd_trace_frame_collected): Use ui_out_emit_tuple.
7904 * mi/mi-cmd-var.c (mi_cmd_var_list_children, varobj_update_one):
7905 Use ui_out_emit_tuple.
7906 * mi/mi-cmd-stack.c (mi_cmd_stack_list_args): Use
7907 ui_out_emit_tuple.
7908 * mi/mi-cmd-info.c (mi_cmd_info_ada_exceptions)
7909 (mi_cmd_info_gdb_mi_command): Use ui_out_emit_tuple.
7910 * linux-thread-db.c (info_auto_load_libthread_db): Use
7911 ui_out_emit_tuple.
7912 * inferior.c (print_inferior): Use ui_out_emit_tuple.
7913 * gdb_bfd.c (print_one_bfd): Use ui_out_emit_tuple.
7914 * disasm.c (do_mixed_source_and_assembly_deprecated)
7915 (do_mixed_source_and_assembly): Use ui_out_emit_tuple.
7916 * cp-abi.c (list_cp_abis): Use ui_out_emit_tuple.
7917 * cli/cli-setshow.c (cmd_show_list): Use ui_out_emit_tuple.
7918 * breakpoint.c (print_one_breakpoint_location)
7919 (print_one_breakpoint): Use ui_out_emit_tuple.
7920 * auto-load.c (print_script, info_auto_load_cmd): Use
7921 ui_out_emit_tuple.
7922 * ada-tasks.c (print_ada_task_info): Use ui_out_emit_tuple.
7923
9be21bb4
SM
79242017-04-21 Simon Marchi <simon.marchi@ericsson.com>
7925
7926 * thread.c (print_thread_info_1): Remove dead code.
7927
0d4c07af
JK
79282017-04-21 Jan Kratochvil <jan.kratochvil@redhat.com>
7929
7930 * aarch64-tdep.c (selftests::aarch64_process_record_test): Make it #if
7931 GDB_SELF_TEST.
7932 * arm-tdep.c (selftests::arm_record_test): Likewise.
7933
4daf993d
YQ
79342017-04-21 Yao Qi <yao.qi@linaro.org>
7935
7936 * regcache.c (regcache_restore): Remove argument 2. Replace
7937 argument 3 with regcache. Get register status from
7938 src->register_status and get register contents from
7939 register_buffer (src, regnum).
7940 (regcache_cpy): Update.
7941
a6c21d4a
PA
79422017-04-19 Pedro Alves <palves@redhat.com>
7943
7944 * gdbthread.h (thread): Add missing closing parenthesis in
7945 comment.
7946
3a3fd0fd
PA
79472017-04-19 Pedro Alves <palves@redhat.com>
7948
7949 * common/refcounted-object.h: New file.
7950 * gdbthread.h: Include "common/refcounted-object.h".
7951 (thread_info): Inherit from refcounted_object and add comments.
7952 (thread_info::incref, thread_info::decref)
7953 (thread_info::m_refcount): Delete.
7954 (thread_info::deletable): Use the refcounted_object::refcount()
7955 method.
7956 * inferior.c (current_inferior_): Add comment.
7957 (set_current_inferior): Increment/decrement refcounts.
7958 (prune_inferiors, remove_inferior_command): Skip inferiors marked
7959 not-deletable instead of comparing with the current inferior.
7960 (initialize_inferiors): Increment the initial inferior's refcount.
7961 * inferior.h (struct inferior): Forward declare.
7962 Include "common/refcounted-object.h".
7963 (current_inferior, set_current_inferior): Move declaration to
7964 before struct inferior's definition, and fix comment.
7965 (inferior): Inherit from refcounted_object. Add comments.
7966 * thread.c (switch_to_thread_no_regs): Reference the thread's
7967 inferior pointer directly instead of doing a ptid lookup.
7968 (switch_to_no_thread): New function.
7969 (switch_to_thread(thread_info *)): New function, factored out
7970 from ...
7971 (switch_to_thread(ptid_t)): ... this.
7972 (restore_current_thread): Delete.
7973 (current_thread_cleanup): Remove 'inf_id' and 'was_removable'
7974 fields, and add 'inf' field.
7975 (do_restore_current_thread_cleanup): Check whether old->inf is
7976 alive instead of looking up an inferior by ptid. Use
7977 switch_to_thread and switch_to_no_thread.
7978 (restore_current_thread_cleanup_dtor): Use old->inf directly
7979 instead of lookup up an inferior by id. Decref the inferior.
7980 Don't restore 'removable'.
7981 (make_cleanup_restore_current_thread): Same the inferior pointer
7982 in old, instead of the inferior number. Incref the inferior.
7983 Don't save/clear 'removable'.
7984
9bcb1f16
PA
79852017-04-19 Pedro Alves <palves@redhat.com>
7986
7987 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
7988 unittests/scoped_restore-selftests.c.
7989 (SUBDIR_UNITTESTS_OBS): Add scoped_restore-selftests.o.
7990 * common/scoped_restore.h (scoped_restore_base): Make "class".
7991 (scoped_restore_base::release): New public method.
7992 (scoped_restore_base::scoped_restore_base): New protected ctor.
7993 (scoped_restore_base::m_saved_var): New protected field.
7994 (scoped_restore_tmpl::scoped_restore_tmpl(T*)): Initialize the
7995 scoped_restore_base base class instead of m_saved_var directly.
7996 (scoped_restore_tmpl::scoped_restore_tmpl(T*, T2)): Likewise.
7997 (scoped_restore_tmpl::scoped_restore_tmpl(const
7998 scoped_restore_tmpl<T>&)): Likewise.
7999 (scoped_restore_tmpl::~scoped_restore_tmpl): Use the saved_var
8000 method.
8001 (scoped_restore_tmpl::saved_var): New method.
8002 (scoped_restore_tmpl::m_saved_var): Delete.
8003 * inferior.h (inferior::detaching): Now a bool.
8004 * infrun.c (prepare_for_detach): Use a scoped_restore instead of a
8005 cleanup.
8006 * unittests/scoped_restore-selftests.c: New file.
8007
26fcd539
PA
80082017-04-19 Pedro Alves <palves@redhat.com>
8009
8010 * Makefile.in (SUBDIR_UNITTESTS_SRCS, SUBDIR_UNITTESTS_OBS):
8011 Re-sort in alphabetic order.
8012
fdd243b0
PA
80132017-04-18 Pedro Alves <palves@redhat.com>
8014
8015 * xml-support.c (obstack_xml_printf): Delete.
8016 * xml-support.h (obstack_xml_printf): Delete.
8017
4895cde2
PA
80182017-04-18 Pedro Alves <palves@redhat.com>
8019
8020 * xml-support.c (gdb_xml_parser) <use_dtd, dtd_name, parse,
8021 vdebug, verror, body_text, start_element, end_element, name,
8022 user_data, set_is_xinclude, set_error, expat_parser>: New methods.
8023 <name, user_data, expat_parser, scopes, error, last_line, dtd_name,
8024 is_xinclude>: Make private and add m_ prefix.
8025 (gdb_xml_parser::body_text): New method, based on ...
8026 (gdb_xml_body_text): ... this. Adjust.
8027 (gdb_xml_parser::vdebug): New method, based on ...
8028 (gdb_xml_debug): ... this. Adjust.
8029 (gdb_xml_parser::verror): New method, based on ...
8030 (gdb_xml_error): ... this. Adjust.
8031 (gdb_xml_parser::start_element): New method, based on ...
8032 (gdb_xml_start_element): ... this. Adjust.
8033 (gdb_xml_start_element_wrapper): Defer to
8034 gdb_xml_parser::start_element and gdb_xml_parser::set_error.
8035 (gdb_xml_parser::end_element): New method, based on ...
8036 (gdb_xml_end_element_wrapper): ... this. Adjust.
8037 (gdb_xml_parser::~gdb_xml_parser): Adjust.
8038 (gdb_xml_parser::gdb_xml_parser): Adjust to field renames.
8039 (gdb_xml_parser::use_dtd): New method, based on ...
8040 (gdb_xml_use_dtd): ... this. Adjust.
8041 (gdb_xml_parser::parse): New method, based on ...
8042 (gdb_xml_parse): ... this. Adjust.
8043 (gdb_xml_parse_quick): Adjust to call the parser's parse method.
8044 (xinclude_start_include): Adjust to call the parser's name method.
8045 (xml_xinclude_default, xml_xinclude_start_doctype)
8046 (xml_xinclude_end_doctype): Adjust to call the parser's user_data
8047 method.
8048 (xml_process_xincludes): Adjust to call parser methods.
8049 * xml-support.h (gdb_xml_use_dtd, gdb_xml_parse): Delete
8050 declarations.
8051
bd8a901f
PA
80522017-04-18 Pedro Alves <palves@redhat.com>
8053
8054 * tracefile-tfile.c (tfile_write_tdesc): Adjust to use
8055 gdb::optional<std::string>.
8056 * xml-support.c: Include <string>.
8057 (scope_level::scope_level(scope_level &&))
8058 (scope_level::~scope_level): Delete.
8059 (scope_level::body): Now a std::string.
8060 (gdb_xml_body_text, gdb_xml_end_element): Adjust.
8061 (xinclude_parsing_data::xinclude_parsing_data): Add 'output'
8062 parameter.
8063 (xinclude_parsing_data::~xinclude_parsing_data): Delete.
8064 (xinclude_parsing_data::output): Now a std::string reference.
8065 (xinclude_start_include): Adjust.
8066 (xml_xinclude_default): Adjust.
8067 (xml_process_xincludes): Add 'output' parameter, and return bool.
8068 * xml-support.h (xml_process_xincludes): Add 'output' parameter,
8069 and return bool.
8070 * xml-tdesc.c: Include <unordered_map> and <string>.
8071 (tdesc_xml_cache): Delete.
8072 (tdesc_xml_cache_s): Delete.
8073 (xml_cache): Now an std::unordered_map.
8074 (tdesc_parse_xml): Adjust to use std::string and unordered_map.
8075 (target_fetch_description_xml): Change return type to
8076 gdb::optional<std::string>, and adjust.
8077 * xml-tdesc.h: Include "common/gdb_optional.h" and <string>.
8078 (target_fetch_description_xml): Change return type to
8079 gdb::optional<std::string>.
8080
d35d1958
PA
80812017-04-18 Pedro Alves <palves@redhat.com>
8082
8083 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
8084 unittests/optional-selftests.c.
8085 (SUBDIR_UNITTESTS_OBS): Add optional-selftests.o.
8086 * unittests/optional-selftests.c: New file.
8087 * unittests/optional/assignment/1.cc: New file.
8088 * unittests/optional/assignment/2.cc: New file.
8089 * unittests/optional/assignment/3.cc: New file.
8090 * unittests/optional/assignment/4.cc: New file.
8091 * unittests/optional/assignment/5.cc: New file.
8092 * unittests/optional/assignment/6.cc: New file.
8093 * unittests/optional/assignment/7.cc: New file.
8094 * unittests/optional/cons/copy.cc: New file.
8095 * unittests/optional/cons/default.cc: New file.
8096 * unittests/optional/cons/move.cc: New file.
8097 * unittests/optional/cons/value.cc: New file.
8098 * unittests/optional/in_place.cc: New file.
8099 * unittests/optional/observers/1.cc: New file.
8100 * unittests/optional/observers/2.cc: New file.
8101
22796e97
PA
81022017-04-18 Pedro Alves <palves@redhat.com>
8103
8104 * common/gdb_optional.h: Include common/traits.h.
8105 (in_place_t): New type.
8106 (in_place): New constexpr variable.
8107 (optional::optional): Remove member initialization of
8108 m_instantiated.
8109 (optional::optional(in_place_t...)): New constructor.
8110 (optional::~optional): Use reset.
8111 (optional::optional(const optional&)): New.
8112 (optional::optional(const optional&&)): New.
8113 (optional::optional(T &)): New.
8114 (optional::optional(T &&)): New.
8115 (operator::operator=(const optional &)): New.
8116 (operator::operator=(optional &&)): New.
8117 (operator::operator= (const T &))
8118 (operator::operator= (T &&))
8119 (operator::emplace (Args &&... args)): Return a T&. Use reset.
8120 (operator::reset): New.
8121 (operator::m_instantiated):: Add in-class initializer.
8122 * common/traits.h: Include <type_traits>.
8123 (struct And): New types.
8124
a7fc9b61
PA
81252017-04-18 Pedro Alves <palves@redhat.com>
8126
8127 * xml-support.c: Include <vector>.
8128 (scope_level::scope_level(const gdb_xml_element *))
8129 (scope_level::scope_level(scope_level&&)): New.
8130 (scope_level::~scope_level): New.
8131 (scope_level_s): Delete.
8132 (gdb_xml_parser::scopes): Now a std::vector.
8133 (gdb_xml_body_text, gdb_xml_start_element, gdb_xml_end_element):
8134 Use std::vector.
8135 (gdb_xml_parser::~gdb_xml_parser): Remove now unnecessary
8136 scope cleanup code.
8137 (gdb_xml_parser::gdb_xml_parser): Remove explicit initialization
8138 of the scopes member. Use std::vector::emplace_back.
8139
010151c9
PA
81402017-04-18 Pedro Alves <palves@redhat.com>
8141
8142 * xml-support.c (gdb_xml_parser): Add ctor/dtor. Make is_xinclude
8143 a bool.
8144 (gdb_xml_end_element): Change type of first parameter.
8145 (gdb_xml_cleanup): Rename to ...
8146 (gdb_xml_parser::~gdb_xml_parser): ... this.
8147 (gdb_xml_create_parser_and_cleanup): Delete with ...
8148 (gdb_xml_parser::gdb_xml_parser): ... creation parts factored out
8149 to this new ctor.
8150 (gdb_xml_parse_quick): Create a local gdb_xml_parser instead of
8151 using gdb_xml_create_parser_and_cleanup.
8152 (xinclude_parsing_data): Add ctor/dtor.
8153 (xml_xinclude_cleanup): Delete.
8154 (xml_process_xincludes): Create a local xinclude_parsing_data
8155 instead of heap-allocating one. Create a local gdb_xml_parser
8156 instead of heap-allocating one with
8157 gdb_xml_create_parser_and_cleanup.
8158
d56060f0
JB
81592017-04-18 John Baldwin <jhb@FreeBSD.org>
8160
8161 PR threads/20743
8162 * fbsd-nat.c (resume_one_thread_cb): Remove.
8163 (resume_all_threads_cb): Remove.
8164 (fbsd_resume): Use ALL_NON_EXITED_THREADS instead of
8165 iterate_over_threads.
8166
305d16a9
JB
81672017-04-17 Joel Brobecker <brobecker@adacore.com>
8168
8169 * NEWS: Create a new section for the next release branch.
8170 Rename the section of the current branch, now that it has
8171 been cut.
8172
8bb57231
JB
81732017-04-17 Joel Brobecker <brobecker@adacore.com>
8174
8175 GDB 8.0 branch created (725bf5cf125783c2a7ca4ab63d3768e220bab2db):
8176 * version.in: Bump version to 8.0.50.DATE-git.
8177
096c92dd
SDJ
81782017-04-13 Sergio Durigan Junior <sergiodj@redhat.com>
8179
8180 PR gdb/21385
8181 * windows-nat.c (windows_create_inferior): Declare 'allargs'
8182 independently of the host, and fix build breakage on Cygwin.
8183
0550c955
PA
81842017-04-13 Pedro Alves <palves@redhat.com>
8185
8186 * inferior.c (free_inferior): Convert to ...
8187 (inferior::~inferior): ... this dtor.
8188 (inferior::inferior): New ctor, factored out from ...
8189 (add_inferior_silent): ... here. Allocate the inferior with a new
8190 expression.
8191 (delete_inferior): Call delete instead of free_inferior.
8192 * inferior.h (gdb_environ, continuation): Forward declare.
8193 (inferior): Now a class. Add in-class initialization to all
8194 members. Make boolean fields bool, except 'detaching'.
8195 (inferior::inferior): New explicit ctor.
8196 (inferior::~inferior): New.
8197
e3d60dfc
PA
81982017-04-13 Pedro Alves <palves@redhat.com>
8199
8200 * inferior.c (init_inferior_list): Delete.
8201 * inferior.h (init_inferior_list): Delete.
8202
5fd69d0a
PA
82032017-04-13 Pedro Alves <palves@redhat.com>
8204
8205 PR threads/13217
8206 * gdb.threads/threadapply.exp (thr_apply_detach): New procedure.
8207 (top level): Call it twice, with different thread sets.
8208
c6609450
PA
82092017-04-13 Pedro Alves <palves@redhat.com>
8210
8211 * thread.c: Include <algorithm>.
8212 (thread_array_cleanup): Delete.
8213 (scoped_inc_dec_ref): New class.
8214 (live_threads_count): New function.
8215 (set_thread_refcount): Delete.
8216 (tp_array_compar_ascending): Now a bool.
8217 (tp_array_compar): Convert to a std::sort comparison function.
8218 (thread_apply_all_command): Use std::vector and scoped_inc_dec_ref
8219 and live_threads_count.
8220
2a00d7ce
PA
82212017-04-13 Pedro Alves <palves@redhat.com>
8222
8223 * infrun.c (follow_fork_inferior): Also switch the current
8224 inferior.
8225
441d7c93
PA
82262017-04-13 Pedro Alves <palves@redhat.com>
8227
8228 * breakpoint.c (watch_command_1): Save watchpoint-frame info
8229 before calling create_internal_breakpoint.
8230
808480f6
PA
82312017-04-13 Pedro Alves <palves@redhat.com>
8232
8233 * fork-child.c (execv_argv): New class.
8234 (breakup_args): Refactored as ...
8235 (execv_argv::init_for_no_shell): .. this method of execv_argv.
8236 Copy arguments to storage and replace separators with NULL
8237 terminators in place.
8238 (escape_bang_in_quoted_argument): Adjust to return bool.
8239 (execv_argv::execv_argv): New ctor.
8240 (execv_argv::init_for_shell): New method, factored out from
8241 fork_inferior. Don't strdup strings into the vector.
8242 (fork_inferior): Eliminate "shell" local and use execv_argv. Use
8243 Remove free_vector_argv call.
8244
ad3d022a
YQ
82452017-04-13 Yao Qi <yao.qi@linaro.org>
8246
8247 * rx-tdep.c (rx_fpsw_type): Check tdep->rx_fpsw_type instead of
8248 tdep->rx_psw_type.
8249
e6ddc3bf
YQ
82502017-04-13 Yao Qi <yao.qi@linaro.org>
8251
8252 * rl78-tdep.c (rl78_gdbarch_init): Use XCNEW instead of XNEW.
8253 * rx-tdep.c (rx_gdbarch_init): Likewise.
8254
bfb8cf90
PA
82552017-04-13 Pedro Alves <palves@redhat.com>
8256
8257 * breakpoint.h (struct breakpoint): Reindent.
8258
f5336ca5
PA
82592017-04-13 Pedro Alves <palves@redhat.com>
8260
8261 * breakpoint.c (bp_location): Rename to ...
8262 (bp_locations): ... this. All references updated.
8263 (bp_location_count): Rename to ...
8264 (bp_locations_count): ... this. All references updated.
8265 (bp_location_placed_address_before_address_max): Rename to ...
8266 (bp_locations_placed_address_before_address_max): ... this. All
8267 references updated.
8268 (bp_location_shadow_len_after_address_max): Rename to ...
8269 (bp_locations_shadow_len_after_address_max): ... this. All
8270 references updated.
8271 (bp_location_compare_addrs): Rename to ...
8272 (bp_locations_compare_addrs): ... this. All references updated.
8273 (bp_location_compare):Rename to ...
8274 (bp_locations_compare): ... this. All references updated.
8275 (bp_location_target_extensions_update): Rename to ...
8276 (bp_locations_target_extensions_update): ... this. All references
8277 updated.
8278
be628ab8
SDJ
82792017-04-12 Sergio Durigan Junior <sergiodj@redhat.com>
8280
8281 * Makefile.in (HFILES_NO_SRCDIR): Add "common/gdb_termios.h".
8282 * common/common.m4: Check headers 'termios.h', 'termio.h' and
8283 'sgtty.h'.
8284 * common/gdb_termios.h: New file, with parts of "terminal.h".
8285 * inflow.c: Include "gdb_termios.h".
8286 * ser-unix.c: Include "gdb_termios.h".
8287 * terminal.h: Move terminal-related defines to
8288 "common/gdb_termios.h".
8289
8e9e35b1
TT
82902017-04-12 Tom Tromey <tom@tromey.com>
8291
8292 * probe.c (parse_probes): Update.
8293 * location.h (delete_event_location): Don't declare.
8294 (event_location_deleter::operator()): Update.
8295 * location.c (event_location_deleter::operator()): Rename from
8296 delete_event_location.
8297 * linespec.h (linespec_result) <location>: Change type to
8298 event_location_up.
8299 * linespec.c (canonicalize_linespec, event_location_to_sals)
8300 (decode_objc): Update.
8301 (linespec_result): Don't call delete_event_location.
8302 * breakpoint.c (create_breakpoints_sal)
8303 (bkpt_probe_create_sals_from_location)
8304 (strace_marker_create_sals_from_location): Update.
8305
16e802b9
TT
83062017-04-12 Tom Tromey <tom@tromey.com>
8307
8308 * linespec.h (struct linespec_result): Add constructor and
8309 destructor.
8310 (init_linespec_result, destroy_linespec_result)
8311 (make_cleanup_destroy_linespec_result): Don't declare.
8312 * linespec.c (init_linespec_result): Remove.
8313 (linespec_result::~linespec_result): Rename from
8314 destroy_linespec_result. Update.
8315 (cleanup_linespec_result, make_cleanup_destroy_linespec_result):
8316 Remove.
8317 * breakpoint.c (create_breakpoint, break_range_command)
8318 (decode_location_default): Update.
8319 * ax-gdb.c (agent_command_1): Update.
8320
d28cd78a
TT
83212017-04-12 Tom Tromey <tom@tromey.com>
8322
8323 * remote.c (remote_download_tracepoint): Update.
8324 * python/py-breakpoint.c (bppy_get_location): Update.
8325 * guile/scm-breakpoint.c (bpscm_print_breakpoint_smob)
8326 (gdbscm_breakpoint_location): Update.
8327 * elfread.c (elf_gnu_ifunc_resolver_return_stop): Update.
8328 * breakpoint.h (struct breakpoint) <location, location_range_end>:
8329 Change type to event_location_up.
8330 * breakpoint.c (create_overlay_event_breakpoint)
8331 (create_longjmp_master_breakpoint)
8332 (create_std_terminate_master_breakpoint)
8333 (create_exception_master_breakpoint)
8334 (breakpoint_event_location_empty_p, print_breakpoint_location)
8335 (print_one_breakpoint_location, create_thread_event_breakpoint)
8336 (init_breakpoint_sal, create_breakpoint)
8337 (print_recreate_ranged_breakpoint, break_range_command)
8338 (init_ada_exception_breakpoint, say_where): Update.
8339 (base_breakpoint_dtor): Don't call delete_event_location.
8340 (bkpt_print_recreate, tracepoint_print_recreate)
8341 (dprintf_print_recreate, update_static_tracepoint)
8342 (breakpoint_re_set_default): Update.
8343
711799d5
TT
83442017-04-12 Tom Tromey <tom@tromey.com>
8345
8346 * compile/compile-loc2c.c (compute_stack_depth_worker): Change
8347 type of "to_do". Update.
8348 (compute_stack_depth): Use std::vector.
8349
52d214d3
TT
83502017-04-12 Tom Tromey <tom@tromey.com>
8351
8352 * printcmd.c (find_instruction_backward): Use std::vector.
8353
4c404b8b
TT
83542017-04-12 Tom Tromey <tom@tromey.com>
8355
8356 * symfile.c (objfilep): Remove typedef.
8357 (reread_symbols): Use a std::vector.
8358
156d9eab
TT
83592017-04-12 Tom Tromey <tom@tromey.com>
8360
8361 * mi/mi-main.c (exec_direction_forward): Remove.
8362 (exec_reverse_continue, mi_execute_command): Use scoped_restore.
8363 * guile/scm-ports.c (ioscm_with_output_to_port_worker): Use
8364 scoped_restore.
8365 * guile/guile.c (guile_repl_command, guile_command)
8366 (gdbscm_execute_gdb_command): Use scoped_restore.
8367 * go-exp.y (go_parse): Use scoped_restore.
8368 * d-exp.y (d_parse): Use scoped_restore.
8369 * cli/cli-decode.c (cmd_func): Use scoped_restore.
8370 * c-exp.y (c_parse): Use scoped_restore.
8371
4d89769a
TT
83722017-04-12 Tom Tromey <tom@tromey.com>
8373
8374 * mi/mi-parse.h (struct mi_parse): Add constructor, destructor.
8375 (mi_parse): Update return type.
8376 (mi_parse_free): Remove.
8377 * mi/mi-parse.c (mi_parse::mi_parse): New constructor.
8378 (mi_parse::~mi_parse): Rename from mi_parse_free.
8379 (mi_parse_cleanup): Remove.
8380 (mi_parse): Return a unique_ptr. Use new.
8381 * mi/mi-main.c (mi_execute_command): Update.
8382
4b217cc7
TT
83832017-04-12 Tom Tromey <tom@tromey.com>
8384
8385 * location.c (explicit_location_lex_one): Return a
8386 unique_xmalloc_ptr.
8387 (string_to_explicit_location): Update. Remove cleanups.
8388
59d3651b
TT
83892017-04-12 Tom Tromey <tom@tromey.com>
8390
8391 * gnu-v3-abi.c (value_and_voffset_p): Remove typedef.
8392 (compare_value_and_voffset): Change type. Update.
8393 (compute_vtable_size): Change type of "offset_vec".
8394 (gnuv3_print_vtable): Use std::vector. Remove cleanups.
8395 (gnuv3_get_typeid): Remove extraneous declaration.
8396
b24b0d6c
TT
83972017-04-12 Tom Tromey <tom@tromey.com>
8398
8399 * charset.h (wchar_iterator): Fix comment.
8400
80a3b8c5
TT
84012017-04-12 Tom Tromey <tom@tromey.com>
8402
8403 * charset.c (iconv_wrapper): New class.
8404 (cleanup_iconv): Remove.
8405 (convert_between_encodings): Use it.
8406
c83dd867
TT
84072017-04-12 Tom Tromey <tom@tromey.com>
8408
8409 * symfile.h (increment_reading_symtab): Update type.
8410 * symfile.c (decrement_reading_symtab): Remove.
8411 (increment_reading_symtab): Return a scoped_restore_tmpl<int>.
8412 * psymtab.c (psymtab_to_symtab): Update.
8413 * dwarf2read.c (dw2_instantiate_symtab): Update.
8414
0e8621a0
TT
84152017-04-12 Tom Tromey <tom@tromey.com>
8416
8417 * jit.c (struct jit_reader): Declare separately. Add constructor
8418 and destructor. Change type of "handle".
8419 (loaded_jit_reader): Define separately.
8420 (jit_reader_load): Update. New "new".
8421 (jit_reader_unload_command): Use "delete".
8422 * gdb-dlfcn.h (struct dlclose_deleter): New.
8423 (gdb_dlhandle_up): New typedef.
8424 (gdb_dlopen, gdb_dlsym): Update types.
8425 (gdb_dlclose): Remove.
8426 * gdb-dlfcn.c (gdb_dlopen): Return a gdb_dlhandle_up.
8427 (gdb_dlsym): Change type of "handle".
8428 (make_cleanup_dlclose): Remove.
8429 (dlclose_deleter::operator()): Rename from gdb_dlclose.
8430 * compile/compile-c-support.c (load_libcc): Update.
8431
67d89901
TT
84322017-04-12 Tom Tromey <tom@tromey.com>
8433
8434 * symtab.h (find_pcs_for_symtab_line): Change return type.
8435 * symtab.c (find_pcs_for_symtab_line): Change return type.
8436 * python/py-linetable.c (build_line_table_tuple_from_pcs): Change
8437 type of "vec". Update.
8438 (ltpy_get_pcs_for_line): Update.
8439 * linespec.c (decode_digits_ordinary): Update.
8440
93921405
TT
84412017-04-12 Tom Tromey <tom@tromey.com>
8442
8443 * tracepoint.c (actions_command): Update.
8444 * python/python.c (python_command, python_interactive_command):
8445 Update.
8446 * mi/mi-cmd-break.c (mi_cmd_break_commands): Update.
8447 * guile/guile.c (guile_command): Update.
8448 * defs.h (read_command_lines, read_command_lines_1): Return
8449 command_line_up.
8450 (command_lines_deleter): New struct.
8451 (command_line_up): New typedef.
8452 * compile/compile.c (compile_code_command)
8453 (compile_print_command): Update.
8454 * cli/cli-script.h (get_command_line, copy_command_lines): Return
8455 command_line_up.
8456 (make_cleanup_free_command_lines): Remove.
8457 * cli/cli-script.c (get_command_line, read_command_lines_1)
8458 (copy_command_lines): Return command_line_up.
8459 (while_command, if_command, read_command_lines, define_command)
8460 (document_command): Update.
8461 (do_free_command_lines_cleanup, make_cleanup_free_command_lines):
8462 Remove.
8463 * breakpoint.h (breakpoint_set_commands): Change type of
8464 "commands".
8465 * breakpoint.c (breakpoint_set_commands): Change type of
8466 "commands". Update.
8467 (do_map_commands_command, update_dprintf_command_list)
8468 (create_tracepoint_from_upload): Update.
8469
ffc2605c
TT
84702017-04-12 Tom Tromey <tom@tromey.com>
8471
8472 * tracepoint.c (scope_info): Update.
8473 * spu-tdep.c (spu_catch_start): Update.
8474 * python/python.c (gdbpy_decode_line): Update.
8475 * python/py-finishbreakpoint.c (bpfinishpy_init): Update.
8476 * python/py-breakpoint.c (bppy_init): Update.
8477 * probe.c (parse_probes): Update.
8478 * mi/mi-cmd-break.c (mi_cmd_break_insert_1): Update.
8479 * location.h (event_location_deleter): New struct.
8480 (event_location_up): New typedef.
8481 (new_linespec_location, new_address_location, new_probe_location)
8482 (new_explicit_location, copy_event_location)
8483 (string_to_event_location, string_to_event_location_basic)
8484 (string_to_explicit_location): Update return type.
8485 (make_cleanup_delete_event_location): Remove.
8486 * location.c (new_linespec_location, new_address_location)
8487 (new_probe_location, new_explicit_location, copy_event_location):
8488 Return event_location_up.
8489 (delete_event_location_cleanup)
8490 (make_cleanup_delete_event_location): Remove.
8491 (string_to_explicit_location, string_to_event_location_basic)
8492 (string_to_event_location): Return event_location_up.
8493 * linespec.c (canonicalize_linespec, event_location_to_sals)
8494 (decode_line_with_current_source)
8495 (decode_line_with_last_displayed, decode_objc): Update.
8496 * guile/scm-breakpoint.c (gdbscm_register_breakpoint_x): Update.
8497 * completer.c (location_completer): Update.
8498 * cli/cli-cmds.c (edit_command, list_command): Update.
8499 * breakpoint.c (create_overlay_event_breakpoint)
8500 (create_longjmp_master_breakpoint)
8501 (create_std_terminate_master_breakpoint)
8502 (create_exception_master_breakpoint)
8503 (create_thread_event_breakpoint): Update.
8504 (init_breakpoint_sal): Update. Remove some dead code.
8505 (create_breakpoint_sal): Change type of "location". Update.
8506 (create_breakpoints_sal, create_breakpoint, break_command_1)
8507 (dprintf_command, break_range_command, until_break_command)
8508 (init_ada_exception_breakpoint)
8509 (strace_marker_create_sals_from_location)
8510 (update_static_tracepoint, trace_command, ftrace_command)
8511 (strace_command, create_tracepoint_from_upload): Update.
8512 * break-catch-throw.c (re_set_exception_catchpoint): Update.
8513 * ax-gdb.c (agent_command_1): Update.
8514
8f10c932
PA
85152017-04-12 Pedro Alves <palves@redhat.com>
8516
8517 * Makefile.in (ALL_TARGET_OBS): Add i386-go32-tdep.o.
8518 * configure.tgt: Handle i[34567]86-*-go32* and
8519 i[34567]86-*-msdosdjgpp*.
8520 * i386-tdep.c (i386_svr4_reg_to_regnum):
8521 Make extern.
8522 (i386_go32_init_abi, i386_coff_osabi_sniffer): Moved to
8523 i386-go32-tdep.c.
8524 (_initialize_i386_tdep): DJGPP bits moved to i386-go32-tdep.c.
8525 * i386-go32-tdep.c: New file.
8526 * i386-tdep.h (tdesc_i386_mmx, i386_svr4_reg_to_regnum): New
8527 declarations.
8528
0a31ccfb
SM
85292017-04-12 Simon Marchi <simon.marchi@ericsson.com>
8530
8531 * aix-thread.c (pd_status2str): Change return type to const char *.
8532
e9bb3fbb
PA
85332017-04-12 Pedro Alves <palves@redhat.com>
8534
8535 * i386-tdep.c (i386_elf_init_abi, i386_go32_init_abi): Remove
8536 calls to set_gdbarch_gnu_triplet_regexp.
8537
53375380
PA
85382017-04-12 Pedro Alves <palves@redhat.com>
8539
8540 PR gdb/21323
8541 * c-lang.c (cplus_primitive_types) <cplus_primitive_type_wchar_t>:
8542 New enum value.
8543 (cplus_language_arch_info): Register cplus_primitive_type_wchar_t.
8544 * gdbtypes.h (struct builtin_type) <builtin_wchar>: New field.
8545 * gdbtypes.c (gdbtypes_post_init): Create the "wchar_t" type.
8546 * gdbarch.sh (wchar_bit, wchar_signed): New per-arch values.
8547 * gdbarch.h, gdbarch.c: Regenerate.
8548 * aarch64-tdep.c (aarch64_gdbarch_init): Override
8549 gdbarch_wchar_bit and gdbarch_wchar_signed.
8550 * alpha-tdep.c (alpha_gdbarch_init): Likewise.
8551 * arm-tdep.c (arm_gdbarch_init): Likewise.
8552 * avr-tdep.c (avr_gdbarch_init): Likewise.
8553 * h8300-tdep.c (h8300_gdbarch_init): Likewise.
8554 * i386-nto-tdep.c (i386nto_init_abi): Likewise.
8555 * i386-tdep.c (i386_go32_init_abi): Likewise.
8556 * m32r-tdep.c (m32r_gdbarch_init): Likewise.
8557 * moxie-tdep.c (moxie_gdbarch_init): Likewise.
8558 * nds32-tdep.c (nds32_gdbarch_init): Likewise.
8559 * rs6000-aix-tdep.c (rs6000_aix_init_osabi): Likewise.
8560 * sh-tdep.c (sh_gdbarch_init): Likewise.
8561 * sparc-tdep.c (sparc32_gdbarch_init): Likewise.
8562 * sparc64-tdep.c (sparc64_init_abi): Likewise.
8563 * windows-tdep.c (windows_init_abi): Likewise.
8564 * xstormy16-tdep.c (xstormy16_gdbarch_init): Likewise.
8565
53e710ac
PA
85662017-04-12 Pedro Alves <palves@redhat.com>
8567
8568 PR c++/21323
8569 * c-lang.c (cplus_primitive_types) <cplus_primitive_type_char16_t,
8570 cplus_primitive_type_char32_t>: New enum values.
8571 (cplus_language_arch_info): Register cplus_primitive_type_char16_t
8572 and cplus_primitive_type_char32_t.
8573 * dwarf2read.c (read_base_type) <DW_ATE_UTF>: If bit size is 16 or
8574 32, use the archtecture's built-in type for char16_t and char32_t,
8575 respectively. Otherwise, fallback to init_integer_type as before,
8576 but make the type unsigned, and issue a complaint.
8577 * gdbtypes.c (gdbtypes_post_init): Make char16_t and char32_t unsigned.
8578
ab0538b8
AH
85792017-04-12 Alan Hayward <alan.hayward@arm.com>
8580
5e0e0422 8581 * m32r-tdep.c (M32R_ARG_REGISTER_SIZE): Added.
ab0538b8
AH
8582 (m32r_push_dummy_call): Use M32R_ARG_REGISTER_SIZE.
8583
5430098f
SDJ
85842017-04-12 Sergio Durigan Junior <sergiodj@redhat.com>
8585
8586 * windows-nat.c (windows_create_inferior): Declare 'toexec' as
8587 'const char *'.
8588
7c5ded6a
SDJ
85892017-04-12 Sergio Durigan Junior <sergiodj@redhat.com>
8590
8591 * common/common-utils.c (free_vector_argv): New function.
8592 * common/common-utils.h: Include <vector>.
8593 (free_vector_argv): New prototype.
8594 * darwin-nat.c (darwin_create_inferior): Rewrite function
8595 prototype in order to constify "exec_file" and accept a
8596 "std::string" for "allargs".
8597 * fork-child.c: Include <vector>.
8598 (breakup_args): Rewrite function, using C++.
8599 (fork_inferior): Rewrite function header, constify "exec_file_arg"
8600 and accept "std::string" for "allargs". Update the code to
8601 calculate "argv" based on "allargs". Update calls to "exec_fun"
8602 and "execvp".
8603 * gnu-nat.c (gnu_create_inferior): Rewrite function prototype in
8604 order to constify "exec_file" and accept a "std::string" for
8605 "allargs".
8606 * go32-nat.c (go32_create_inferior): Likewise.
8607 * inf-ptrace.c (inf_ptrace_create_inferior): Likewise.
8608 * infcmd.c (run_command_1): Constify "exec_file". Use
8609 "std::string" for inferior arguments.
8610 * inferior.h (fork_inferior): Update prototype.
8611 * linux-nat.c (linux_nat_create_inferior): Rewrite function
8612 prototype in order to constify "exec_file" and accept a
8613 "std::string" for "allargs".
8614 * nto-procfs.c (procfs_create_inferior): Likewise.
8615 * procfs.c (procfs_create_inferior): Likewise.
8616 * remote-sim.c (gdbsim_create_inferior): Likewise.
8617 * remote.c (extended_remote_run): Update code to accept
8618 "std::string" as argument.
8619 (extended_remote_create_inferior): Rewrite function prototype in
8620 order to constify "exec_file" and accept a "std::string" for
8621 "allargs".
8622 * rs6000-nat.c (super_create_inferior): Likewise.
8623 (rs6000_create_inferior): Likewise.
8624 * target.h (struct target_ops) <to_create_inferior>: Likewise.
8625 * windows-nat.c (windows_create_inferior): Likewise.
8626
ae0eee42
PA
86272017-04-11 Pedro Alves <palves@redhat.com>
8628
8629 * thread.c: Fix whitespace throughout.
8630
a6acac06
PR
86312017-04-11 Philipp Rudo <prudo@linux.vnet.ibm.com>
8632
8633 * linux-nat.c (linux_nat_detach): Remove delete_lwp call.
8634
64403bd1
AH
86352017-04-11 Alan Hayward <alan.hayward@arm.com>
8636
8637 * arm-tdep.c (arm_store_return_value): Use FP_REGISTER_SIZE
8638
a5bef50f
SDJ
86392017-04-10 Sergio Durigan Junior <sergiodj@redhat.com>
8640
8641 PR gdb/21364
8642 * osdata.c (info_osdata): Check if 'type' is an empty string
8643 instead of NULL.
8644
9295a5a9
PA
86452017-04-10 Pedro Alves <palves@redhat.com>
8646
8647 * thread.c (add_thread_silent, delete_thread_1, find_thread_ptid)
8648 (ptid_to_global_thread_id, in_thread_list)
8649 (do_captured_list_thread_ids, set_resumed, set_running)
8650 (set_executing, set_stop_requested, finish_thread_state)
8651 (validate_registers_access, can_access_registers_ptid)
8652 (print_thread_info_1, switch_to_thread)
8653 (do_restore_current_thread_cleanup)
8654 (make_cleanup_restore_current_thread, thread_command)
8655 (thread_name_command): Use operator== instead of ptid_equal.
8656
996812e3
PA
86572017-04-10 Pedro Alves <palves@redhat.com>
8658
8659 * thread.c (struct current_thread_cleanup) <next>: Delete field.
8660 (current_thread_cleanup_chain): Delete.
8661 (restore_current_thread_cleanup_dtor)
8662 (make_cleanup_restore_current_thread): Remove references to
8663 current_thread_cleanup_chain.
8664
845b344f
AH
86652017-04-10 Alan Hayward <alan.hayward@arm.com>
8666
8667 * msp430-tdep.c (msp430_pseudo_register_read): Never return
8668 REG_UNKNOWN.
8669
803bdfe4
YQ
86702017-04-10 Yao Qi <yao.qi@linaro.org>
8671
8672 PR gdb/19942
8673 * gdbthread.h (thread_info::deletable): New method.
8674 (thread_info::incref): New method.
8675 (thread_info::decref): New method.
8676 (thread_info::refcount): Move it to private.
8677 * infrun.c (save_stop_context): Call inc_refcount.
8678 (release_stop_context_cleanup): Likewise.
8679 * thread.c (set_thread_exited): New function.
8680 (init_thread_list): Delete "tp" only it is deletable, otherwise
8681 call set_thread_exited.
8682 (delete_thread_1): Call set_thread_exited.
8683 (current_thread_cleanup) <inferior_pid>: Remove.
8684 <thread>: New field.
8685 (restore_current_thread_ptid_changed): Removed.
8686 (do_restore_current_thread_cleanup): Adjust.
8687 (restore_current_thread_cleanup_dtor): Don't call
8688 find_thread_ptid.
8689 (set_thread_refcount): Use dec_refcount.
8690 (make_cleanup_restore_current_thread): Adjust.
8691 (thread_apply_all_command): Call inc_refcount.
8692 (_initialize_thread): Don't call
8693 observer_attach_thread_ptid_changed.
8694
8c25b497
YQ
86952017-04-10 Yao Qi <yao.qi@linaro.org>
8696
8697 * thread.c (delete_thread_1): Hoist code on marking thread as
8698 exited.
8699
8473b447
SM
87002017-04-09 Simon Marchi <simon.marchi@polymtl.ca>
8701
8702 * windows-nat.c (windows_detach): Initialize ptid with
8703 minus_one_ptid.
8704
6670ec13
SM
87052017-04-07 Simon Marchi <simon.marchi@ericsson.com>
8706
8707 * unittests/ptid-selftests.c: Fix erroneous assert messages.
8708
ba2f91bb
AH
87092017-04-07 Alan Hayward <alan.hayward@arm.com>
8710
8711 * bfin-tdep.c (BFIN_MAX_REGISTER_SIZE): Add.
8712 (bfin_pseudo_register_read): Use BFIN_MAX_REGISTER_SIZE.
8713 (bfin_pseudo_register_write): Likewise
8714
436252de
SM
87152017-04-06 Simon Marchi <simon.marchi@ericsson.com>
8716
8717 * common/ptid.h (struct ptid): Change to...
8718 (class ptid_t): ... this.
8719 <ptid_t>: New constructors.
8720 <pid, lwp_p, lwp, tid_p, tid, is_pid, operator==, operator!=,
8721 matches>: New methods.
8722 <make_null, make_minus_one>: New static methods.
8723 <pid>: Rename to...
8724 <m_pid>: ...this.
8725 <lwp>: Rename to...
8726 <m_lwp>: ...this.
8727 <tid>: Rename to...
8728 <m_tid>: ...this.
8729 (ptid_build, ptid_get_pid, ptid_get_lwp, ptid_get_tid, ptid_equal,
8730 ptid_is_pid, ptid_lwp_p, ptid_tid_p, ptid_match): Take ptid arguments
8731 as references, move comment to class ptid_t.
8732 * common/ptid.c (null_ptid, minus_one_ptid): Initialize with
8733 ptid_t static methods.
8734 (ptid_build, pid_to_ptid, ptid_get_pid, ptid_get_tid,
8735 ptid_equal, ptid_is_pid, ptid_lwp_p, ptid_tid_p, ptid_match):
8736 Take ptid arguments as references, implement using ptid_t methods.
8737 * unittests/ptid-selftests.c: New file.
8738 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
8739 unittests/ptid-selftests.c.
8740 (SUBDIR_UNITTESTS_OBS): Add unittests/ptid-selftests.o.
8741
0dedf377
TP
87422017-04-06 Thomas Preud'homme <thomas.preudhomme@arm.com>
8743
8744 * python/python.c (python_run_simple_file): Cast mode literal to
8745 non-const char pointer as expected by PyFile_FromString.
8746
4e9868d4
SM
87472017-04-05 Simon Marchi <simon.marchi@ericsson.com>
8748
8749 * common/ptid.c (ptid_lwp_p, ptid_tid_p): Remove comparison with
8750 minus_one_ptid and null_ptid.
8751
9bf2a700
PA
87522017-04-05 Pedro Alves <palves@redhat.com>
8753
8754 * warning.m4 (build_warnings): Remove -Wno-write-strings.
8755 * configure: Regenerate.
8756
a121b7c1
PA
87572017-04-05 Pedro Alves <palves@redhat.com>
8758
8759 * ada-exp.y (yyerror): Constify.
8760 * ada-lang.c (bound_name, get_selections)
8761 (ada_variant_discrim_type)
8762 (ada_variant_discrim_name, ada_value_struct_elt)
8763 (ada_lookup_struct_elt_type, is_unchecked_variant)
8764 (ada_which_variant_applies, standard_exc, ada_get_next_arg)
8765 (catch_ada_exception_command_split)
8766 (catch_ada_assert_command_split, catch_assert_command)
8767 (ada_op_name): Constify.
8768 * ada-lang.h (ada_yyerror, get_selections)
8769 (ada_variant_discrim_name, ada_value_struct_elt): Constify.
8770 * arc-tdep.c (arc_print_frame_cache): Constify.
8771 * arm-tdep.c (arm_skip_stub): Constify.
8772 * ax-gdb.c (gen_binop, gen_struct_ref_recursive, gen_struct_ref)
8773 (gen_aggregate_elt_ref): Constify.
8774 * bcache.c (print_bcache_statistics): Constify.
8775 * bcache.h (print_bcache_statistics): Constify.
8776 * break-catch-throw.c (catch_exception_command_1):
8777 * breakpoint.c (struct ep_type_description::description):
8778 Constify.
8779 (add_solib_catchpoint): Constify.
8780 (catch_fork_command_1): Add cast.
8781 (add_catch_command): Constify.
8782 * breakpoint.h (add_catch_command, add_solib_catchpoint):
8783 Constify.
8784 * bsd-uthread.c (bsd_uthread_state): Constify.
8785 * buildsym.c (patch_subfile_names): Constify.
8786 * buildsym.h (next_symbol_text_func, patch_subfile_names):
8787 Constify.
8788 * c-exp.y (yyerror): Constify.
8789 (token::oper): Constify.
8790 * c-lang.h (c_yyerror, cp_print_class_member): Constify.
8791 * c-varobj.c (cplus_describe_child): Constify.
8792 * charset.c (find_charset_names): Add cast.
8793 (find_charset_names): Constify array and add const_cast.
8794 * cli/cli-cmds.c (complete_command, cd_command): Constify.
8795 (edit_command): Constify.
8796 * cli/cli-decode.c (lookup_cmd): Constify.
8797 * cli/cli-dump.c (dump_memory_command, dump_value_command):
8798 Constify.
8799 (struct dump_context): Constify.
8800 (add_dump_command, restore_command): Constify.
8801 * cli/cli-script.c (get_command_line): Constify.
8802 * cli/cli-script.h (get_command_line): Constify.
8803 * cli/cli-utils.c (check_for_argument): Constify.
8804 * cli/cli-utils.h (check_for_argument): Constify.
8805 * coff-pe-read.c (struct read_pe_section_data): Constify.
8806 * command.h (lookup_cmd): Constify.
8807 * common/print-utils.c (decimal2str): Constify.
8808 * completer.c (gdb_print_filename): Constify.
8809 * corefile.c (set_gnutarget): Constify.
8810 * cp-name-parser.y (yyerror): Constify.
8811 * cp-valprint.c (cp_print_class_member): Constify.
8812 * cris-tdep.c (cris_register_name, crisv32_register_name):
8813 Constify.
8814 * d-exp.y (yyerror): Constify.
8815 (struct token::oper): Constify.
8816 * d-lang.h (d_yyerror): Constify.
8817 * dbxread.c (struct header_file_location::name): Constify.
8818 (add_old_header_file, add_new_header_file, last_function_name)
8819 (dbx_next_symbol_text, add_bincl_to_list)
8820 (find_corresponding_bincl_psymtab, set_namestring)
8821 (find_stab_function_addr, read_dbx_symtab, start_psymtab)
8822 (dbx_end_psymtab, read_ofile_symtab, process_one_symbol):
8823 * defs.h (command_line_input, print_address_symbolic)
8824 (deprecated_readline_begin_hook): Constify.
8825 * dwarf2read.c (anonymous_struct_prefix, dwarf_bool_name):
8826 Constify.
8827 * event-top.c (handle_line_of_input): Constify and add cast.
8828 * exceptions.c (catch_errors): Constify.
8829 * exceptions.h (catch_errors): Constify.
8830 * expprint.c (print_subexp_standard, op_string, op_name)
8831 (op_name_standard, dump_raw_expression, dump_raw_expression):
8832 * expression.h (op_name, op_string, dump_raw_expression):
8833 Constify.
8834 * f-exp.y (yyerror): Constify.
8835 (struct token::oper): Constify.
8836 (struct f77_boolean_val::name): Constify.
8837 * f-lang.c (f_word_break_characters): Constify.
8838 * f-lang.h (f_yyerror): Constify.
8839 * fork-child.c (fork_inferior): Add cast.
8840 * frv-tdep.c (struct gdbarch_tdep::register_names): Constify.
8841 (new_variant): Constify.
8842 * gdbarch.sh (pstring_ptr, pstring_list): Constify.
8843 * gdbarch.c: Regenerate.
8844 * gdbcore.h (set_gnutarget): Constify.
8845 * go-exp.y (yyerror): Constify.
8846 (token::oper): Constify.
8847 * go-lang.h (go_yyerror): Constify.
8848 * go32-nat.c (go32_sysinfo): Constify.
8849 * guile/scm-breakpoint.c (gdbscm_breakpoint_expression): Constify.
8850 * guile/scm-cmd.c (cmdscm_function): Constify.
8851 * guile/scm-param.c (pascm_param_value): Constify.
8852 * h8300-tdep.c (h8300_register_name, h8300s_register_name)
8853 (h8300sx_register_name): Constify.
8854 * hppa-tdep.c (hppa32_register_name, hppa64_register_name):
8855 Constify.
8856 * ia64-tdep.c (ia64_register_names): Constify.
8857 * infcmd.c (construct_inferior_arguments): Constify.
8858 (path_command, attach_post_wait): Constify.
8859 * language.c (show_range_command, show_case_command)
8860 (unk_lang_error): Constify.
8861 * language.h (language_defn::la_error)
8862 (language_defn::la_name_of_this): Constify.
8863 * linespec.c (decode_line_2): Constify.
8864 * linux-thread-db.c (thread_db_err_str): Constify.
8865 * lm32-tdep.c (lm32_register_name): Constify.
8866 * m2-exp.y (yyerror): Constify.
8867 * m2-lang.h (m2_yyerror): Constify.
8868 * m32r-tdep.c (m32r_register_names): Constify and make static.
8869 * m68hc11-tdep.c (m68hc11_register_names): Constify.
8870 * m88k-tdep.c (m88k_register_name): Constify.
8871 * macroexp.c (appendmem): Constify.
8872 * mdebugread.c (fdr_name, add_data_symbol, parse_type)
8873 (upgrade_type, parse_external, parse_partial_symbols)
8874 (mdebug_next_symbol_text, cross_ref, mylookup_symbol, new_psymtab)
8875 (new_symbol): Constify.
8876 * memattr.c (mem_info_command): Constify.
8877 * mep-tdep.c (register_name_from_keyword): Constify.
8878 * mi/mi-cmd-env.c (mi_cmd_env_path, _initialize_mi_cmd_env):
8879 Constify.
8880 * mi/mi-cmd-stack.c (list_args_or_locals): Constify.
8881 * mi/mi-cmd-var.c (mi_cmd_var_show_attributes): Constify.
8882 * mi/mi-main.c (captured_mi_execute_command): Constify and add
8883 cast.
8884 (mi_execute_async_cli_command): Constify.
8885 * mips-tdep.c (mips_register_name): Constify.
8886 * mn10300-tdep.c (register_name, mn10300_generic_register_name)
8887 (am33_register_name, am33_2_register_name)
8888 * moxie-tdep.c (moxie_register_names): Constify.
8889 * nat/linux-osdata.c (osdata_type): Constify fields.
8890 * nto-tdep.c (nto_parse_redirection): Constify.
8891 * objc-lang.c (lookup_struct_typedef, lookup_objc_class)
8892 (lookup_child_selector): Constify.
8893 (objc_methcall::name): Constify.
8894 * objc-lang.h (lookup_objc_class, lookup_child_selector)
8895 (lookup_struct_typedef): Constify.
8896 * objfiles.c (pc_in_section): Constify.
8897 * objfiles.h (pc_in_section): Constify.
8898 * p-exp.y (struct token::oper): Constify.
8899 (yyerror): Constify.
8900 * p-lang.h (pascal_yyerror): Constify.
8901 * parser-defs.h (op_name_standard): Constify.
8902 (op_print::string): Constify.
8903 (exp_descriptor::op_name): Constify.
8904 * printcmd.c (print_address_symbolic): Constify.
8905 * psymtab.c (print_partial_symbols): Constify.
8906 * python/py-breakpoint.c (stop_func): Constify.
8907 (bppy_get_expression): Constify.
8908 * python/py-cmd.c (cmdpy_completer::name): Constify.
8909 (cmdpy_function): Constify.
8910 * python/py-event.c (evpy_add_attribute)
8911 (gdbpy_initialize_event_generic): Constify.
8912 * python/py-event.h (evpy_add_attribute)
8913 (gdbpy_initialize_event_generic): Constify.
8914 * python/py-evts.c (add_new_registry): Constify.
8915 * python/py-finishbreakpoint.c (outofscope_func): Constify.
8916 * python/py-framefilter.c (get_py_iter_from_func): Constify.
8917 * python/py-inferior.c (get_buffer): Add cast.
8918 * python/py-param.c (parm_constant::name): Constify.
8919 * python/py-unwind.c (fprint_frame_id): Constify.
8920 * python/python.c (gdbpy_parameter_value): Constify.
8921 * remote-fileio.c (remote_fio_func_map): Make 'name' const.
8922 * remote.c (memory_packet_config::name): Constify.
8923 (show_packet_config_cmd, remote_write_bytes)
8924 (remote_buffer_add_string):
8925 * reverse.c (exec_reverse_once): Constify.
8926 * rs6000-tdep.c (variant::name, variant::description): Constify.
8927 * rust-exp.y (rustyyerror): Constify.
8928 * rust-lang.c (rust_op_name): Constify.
8929 * rust-lang.h (rustyyerror): Constify.
8930 * serial.h (serial_ops::name): Constify.
8931 * sh-tdep.c (sh_sh_register_name, sh_sh3_register_name)
8932 (sh_sh3e_register_name, sh_sh2e_register_name)
8933 (sh_sh2a_register_name, sh_sh2a_nofpu_register_name)
8934 (sh_sh_dsp_register_name, sh_sh3_dsp_register_name)
8935 (sh_sh4_register_name, sh_sh4_nofpu_register_name)
8936 (sh_sh4al_dsp_register_name): Constify.
8937 * sh64-tdep.c (sh64_register_name): Constify.
8938 * solib-darwin.c (lookup_symbol_from_bfd): Constify.
8939 * spu-tdep.c (spu_register_name, info_spu_dma_cmdlist): Constify.
8940 * stabsread.c (patch_block_stabs, read_type_number)
8941 (ref_map::stabs, ref_add, process_reference)
8942 (symbol_reference_defined, define_symbol, define_symbol)
8943 (error_type, read_type, read_member_functions, read_cpp_abbrev)
8944 (read_one_struct_field, read_struct_fields, read_baseclasses)
8945 (read_tilde_fields, read_struct_type, read_array_type)
8946 (read_enum_type, read_sun_builtin_type, read_sun_floating_type)
8947 (read_huge_number, read_range_type, read_args, common_block_start)
8948 (find_name_end): Constify.
8949 * stabsread.h (common_block_start, define_symbol)
8950 (process_one_symbol, symbol_reference_defined, ref_add):
8951 * symfile.c (get_section_index, add_symbol_file_command):
8952 * symfile.h (get_section_index): Constify.
8953 * target-descriptions.c (tdesc_type::name): Constify.
8954 (tdesc_free_type): Add cast.
8955 * target.c (find_default_run_target):
8956 (add_deprecated_target_alias, find_default_run_target)
8957 (target_announce_detach): Constify.
8958 (do_option): Constify.
8959 * target.h (add_deprecated_target_alias): Constify.
8960 * thread.c (print_thread_info_1): Constify.
8961 * top.c (deprecated_readline_begin_hook, command_line_input):
8962 Constify.
8963 (init_main): Add casts.
8964 * top.h (handle_line_of_input): Constify.
8965 * tracefile-tfile.c (tfile_write_uploaded_tsv): Constify.
8966 * tracepoint.c (tvariables_info_1, trace_status_mi): Constify.
8967 (tfind_command): Rename to ...
8968 (tfind_command_1): ... this and constify.
8969 (tfind_command): New function.
8970 (tfind_end_command, tfind_start_command): Adjust.
8971 (encode_source_string): Constify.
8972 * tracepoint.h (encode_source_string): Constify.
8973 * tui/tui-data.c (tui_partial_win_by_name): Constify.
8974 * tui/tui-data.h (tui_partial_win_by_name): Constify.
8975 * tui/tui-source.c (tui_set_source_content_nil): Constify.
8976 * tui/tui-source.h (tui_set_source_content_nil): Constify.
8977 * tui/tui-win.c (parse_scrolling_args): Constify.
8978 * tui/tui-windata.c (tui_erase_data_content): Constify.
8979 * tui/tui-windata.h (tui_erase_data_content): Constify.
8980 * tui/tui-winsource.c (tui_erase_source_content): Constify.
8981 * tui/tui.c (tui_enable): Add cast.
8982 * utils.c (defaulted_query): Constify.
8983 (init_page_info): Add cast.
8984 (puts_debug, subset_compare): Constify.
8985 * utils.h (subset_compare): Constify.
8986 * varobj.c (varobj_format_string): Constify.
8987 * varobj.h (varobj_format_string): Constify.
8988 * vax-tdep.c (vax_register_name): Constify.
8989 * windows-nat.c (windows_detach): Constify.
8990 * xcoffread.c (process_linenos, xcoff_next_symbol_text): Constify.
8991 * xml-support.c (gdb_xml_end_element): Constify.
8992 * xml-tdesc.c (tdesc_start_reg): Constify.
8993 * xstormy16-tdep.c (xstormy16_register_name): Constify.
8994 * xtensa-tdep.c (xtensa_find_register_by_name): Constify.
8995 * xtensa-tdep.h (xtensa_register_t::name): Constify.
8996
995816ba
PA
89972017-04-05 Pedro Alves <palves@redhat.com>
8998
8999 * proc-api.c (struct trans): Constify.
9000 (procfs_note): Constify.
9001 * proc-events.c (struct trans, syscall_table):
9002 * proc-flags.c (struct trans): Constify.
9003 * proc-utils.h (procfs_note): Constify.
9004 * proc-why.c (struct trans): Constify.
9005 * procfs.c (dead_procinfo, find_syscall, proc_warn, proc_error)
9006 (procfs_detach): Constify.
9007 * sol-thread.c (struct string_map): Constify.
9008 (td_err_string, td_state_string): Constify.
9009
3e83a920
PA
90102017-04-05 Pedro Alves <palves@redhat.com>
9011
9012 * proc-api.c (procfs_filename): Don't initialize
9013 procfs_filename.
9014 (prepare_to_trace): Assume procfs_filename is non-NULL.
9015 (_initialize_proc_api): Give procfs_filename a default value here.
9016
63160a43
PA
90172017-04-05 Pedro Alves <palves@redhat.com>
9018
9019 * break-catch-throw.c (handle_gnu_v3_exceptions): Constify
9020 'cond_string' parameter.
9021 (extract_exception_regexp): Constify 'string' parameter.
9022 (catch_exception_command_1): Constify.
9023 * breakpoint.c (init_catchpoint)
9024 (create_fork_vfork_event_catchpoint): Constify 'cond_string'
9025 parameter.
9026 (ep_parse_optional_if_clause, catch_fork_command_1)
9027 (catch_exec_command_1): Constify.
9028 * breakpoint.h (init_catchpoint): Constify 'cond_string'
9029 parameter.
9030 (ep_parse_optional_if_clause): Constify.
9031 * cli/cli-utils.c (remove_trailing_whitespace)
9032 (check_for_argument): Constify.
9033 * cli/cli-utils.h (remove_trailing_whitespace): Constify and add
9034 non-const overload.
9035 (check_for_argument): Likewise.
9036
9b2eba3d
PA
90372017-04-05 Pedro Alves <palves@redhat.com>
9038
9039 * event-top.c (command_line_handler): Add cast to execute_command
9040 call.
9041 * record-btrace.c (cmd_record_btrace_bts_start)
9042 (cmd_record_btrace_pt_start, cmd_record_btrace_start)
9043 (cmd_record_btrace_start): Add cast to execute_command call.
9044 * record-full.c (record_full_goto_insn):
9045 * record.c (record_start, record_stop): Add cast to
9046 execute_command_to_string calls.
9047 (cmd_record_start): Add cast to execute_command calls.
9048
2adadf51
PA
90492017-04-05 Pedro Alves <palves@redhat.com>
9050
9051 * python/python-internal.h (gdb_PyArg_ParseTupleAndKeywords): New
9052 static inline function.
9053 * python/py-arch.c (archpy_disassemble): Constify 'keywords'
9054 array and use gdb_PyArg_ParseTupleAndKeywords.
9055 * python/py-cmd.c (cmdpy_init): Likewise.
9056 * python/py-finishbreakpoint.c (bpfinishpy_init): Likewise.
9057 * python/py-inferior.c (infpy_read_memory, infpy_write_memory)
9058 (infpy_search_memory): Likewise.
9059 * python/py-objfile.c (objfpy_add_separate_debug_file)
9060 (gdbpy_lookup_objfile): Likewise.
9061 * python/py-symbol.c (gdbpy_lookup_symbol)
9062 (gdbpy_lookup_global_symbol): Likewise.
9063 * python/py-type.c (gdbpy_lookup_type): Likewise.
9064 * python/py-value.c (valpy_lazy_string, valpy_string): Likewise.
9065 * python/python.c (execute_gdb_command, gdbpy_write, gdbpy_flush):
9066 Likewise.
9067
0d1f4ceb
PA
90682017-04-05 Pedro Alves <palves@redhat.com>
9069
9070 * python/python-internal.h (gdb_PyGetSetDef): New type.
9071 * python/py-block.c (block_object_getset)
9072 (breakpoint_object_getset): Now a gdb_PyGetSetDef array.
9073 * python/py-event.c (event_object_getset)
9074 (finish_breakpoint_object_getset): Likewise.
9075 * python/py-inferior.c (inferior_object_getset): Likewise.
9076 * python/py-infthread.c (thread_object_getset): Likewise.
9077 * python/py-lazy-string.c (lazy_string_object_getset): Likewise.
9078 * python/py-linetable.c (linetable_entry_object_getset): Likewise.
9079 * python/py-objfile.c (objfile_getset): Likewise.
9080 * python/py-progspace.c (pspace_getset): Likewise.
9081 * python/py-record-btrace.c (btpy_insn_getset, btpy_call_getset):
9082 Likewise.
9083 * python/py-record.c (recpy_record_getset): Likewise.
9084 * python/py-symbol.c (symbol_object_getset): Likewise.
9085 * python/py-symtab.c (symtab_object_getset, sal_object_getset):
9086 Likewise.
9087 * python/py-type.c (type_object_getset, field_object_getset):
9088 Likewise.
9089 * python/py-value.c (value_object_getset): Likewise.
9090
4d759979
PA
90912017-04-05 Pedro Alves <palves@redhat.com>
9092
9093 * python/python-internal.h (gdb_PyObject_CallMethod)
9094 (gdb_PyErr_NewException, gdb_PySys_GetObject, gdb_PySys_SetPath):
9095 New functions.
9096 (GDB_PYSYS_SETPATH_CHAR, PyObject_CallMethod, PyErr_NewException)
9097 (PySys_GetObject, PySys_SetPath): New macros.
9098
fdf9e36f
PA
90992017-04-05 Pedro Alves <palves@redhat.com>
9100
9101 * mi/mi-cmd-info.c (mi_cmd_info_os): Call info_osdata instead of
9102 info_osdata_command.
9103 * osdata.c (info_osdata_command): Rename to ...
9104 (info_osdata): ... this. Constify 'type' parameter, and remove
9105 the 'from_tty' parameter. Accept NULL TYPE.
9106 (info_osdata_command): New function.
9107 * osdata.h (info_osdata_command): Remove declaration.
9108 (info_osdata): New declaration.
9109
9f33b8b7
PA
91102017-04-05 Pedro Alves <palves@redhat.com>
9111
9112 * mi/mi-cmd-break.c (mi_cmd_break_insert_1, mi_cmd_break_insert)
9113 (mi_cmd_dprintf_insert, mi_cmd_break_passcount)
9114 (mi_cmd_break_watch, mi_cmd_break_commands): Constify 'command'
9115 parameter.
9116 * mi/mi-cmd-catch.c (mi_cmd_catch_assert, mi_cmd_catch_exception)
9117 (mi_cmd_catch_load, mi_cmd_catch_unload): Constify cmd' parameter.
9118 * mi/mi-cmd-disas.c (mi_cmd_disassemble): Constify 'command'
9119 parameter.
9120 * mi/mi-cmd-env.c (mi_cmd_env_pwd, mi_cmd_env_cd, mi_cmd_env_path)
9121 (mi_cmd_env_dir, mi_cmd_inferior_tty_set, _cmd_inferior_tty_show)
9122 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_file)
9123 (mi_cmd_file_list_exec_source_files)
9124 (mi_cmd_file_list_shared_libraries): Constify 'command' parameter.
9125 * mi/mi-cmd-info.c (mi_cmd_info_ada_exceptions)
9126 (mi_cmd_info_gdb_mi_command, mi_cmd_info_os): Constify 'command'
9127 parameter.
9128 * mi/mi-cmd-stack.c (mi_cmd_enable_frame_filters)
9129 (mi_cmd_stack_list_frames, mi_cmd_stack_info_depth)
9130 (mi_cmd_stack_list_locals, mi_cmd_stack_list_args)
9131 (mi_cmd_stack_list_variables, mi_cmd_stack_select_frame)
9132 (mi_cmd_stack_info_frame): Constify 'command' parameter.
9133 * mi/mi-cmd-target.c (mi_cmd_target_file_get)
9134 (mi_cmd_target_file_put, mi_cmd_target_file_delete): Constify
9135 'command' parameter.
9136 * mi/mi-cmd-var.c (mi_cmd_var_create, mi_cmd_var_delete)
9137 (mi_cmd_var_set_format, mi_cmd_var_set_visualizer)
9138 (mi_cmd_var_set_frozen, mi_cmd_var_show_format)
9139 (mi_cmd_var_info_num_children, mi_cmd_var_list_children)
9140 (mi_cmd_var_info_type, mi_cmd_var_info_path_expression)
9141 (mi_cmd_var_info_expression, mi_cmd_var_show_attributes)
9142 (mi_cmd_var_evaluate_expression, mi_cmd_var_assign)
9143 (mi_cmd_var_update, mi_cmd_enable_pretty_printing)
9144 (mi_cmd_var_set_update_range): Constify 'command' parameter.
9145 * mi/mi-cmds.h (mi_cmd_argv_ftype): Constify 'command' parameter.
9146 * mi/mi-interp.c (mi_cmd_interpreter_exec): Constify 'command'
9147 parameter.
9148 * mi/mi-main.c (mi_cmd_gdb_exit, mi_cmd_exec_next)
9149 (mi_cmd_exec_next_instruction, mi_cmd_exec_step)
9150 (mi_cmd_exec_step_instruction, mi_cmd_exec_finish)
9151 (mi_cmd_exec_return ,mi_cmd_exec_jump, mi_cmd_exec_continue)
9152 (mi_cmd_exec_interrupt, mi_cmd_exec_run, mi_cmd_target_detach)
9153 (mi_cmd_target_flash_erase, mi_cmd_thread_select)
9154 (mi_cmd_thread_list_ids, mi_cmd_thread_info)
9155 (mi_cmd_list_thread_groups, mi_cmd_data_list_register_names)
9156 (mi_cmd_data_list_changed_registers)
9157 (mi_cmd_data_write_register_values)
9158 (mi_cmd_data_evaluate_expression, mi_cmd_data_read_memory)
9159 (mi_cmd_data_read_memory_bytes, mi_cmd_data_write_memory)
9160 (mi_cmd_data_write_memory_bytes, mi_cmd_enable_timings)
9161 (mi_cmd_list_features, mi_cmd_list_target_features)
9162 (mi_cmd_add_inferior, mi_cmd_remove_inferior)
9163 (mi_cmd_trace_define_variable, mi_cmd_trace_list_variables)
9164 (mi_cmd_trace_find, mi_cmd_trace_save, mi_cmd_trace_start)
9165 (mi_cmd_trace_status, mi_cmd_trace_stop, mi_cmd_ada_task_info)
9166 (mi_cmd_trace_frame_collected): Constify 'command'
9167 parameter.
9168 * mi/mi-symbol-cmds.c (mi_cmd_symbol_list_lines): Constify
9169 'command' parameter.
9170
67cb5b2d
PA
91712017-04-05 Pedro Alves <palves@redhat.com>
9172
9173 * ada-lang.c (ada_completer_word_break_characters): Now a const
9174 array.
9175 (ada_get_gdb_completer_word_break_characters): Constify.
9176 * completer.c (gdb_completer_command_word_break_characters)
9177 (gdb_completer_file_name_break_characters)
9178 (gdb_completer_quote_characters): Now const arrays.
9179 (get_gdb_completer_quote_characters): Constify.
9180 (set_rl_completer_word_break_characters): New function.
9181 (set_gdb_completion_word_break_characters)
9182 (complete_line_internal): Use it.
9183 * completer.h (get_gdb_completer_quote_characters): Constify.
9184 (set_rl_completer_word_break_characters): Declare.
9185 * f-lang.c (f_word_break_characters): Constify.
9186 * language.c (default_word_break_characters): Constify.
9187 * language.h (language_defn::la_word_break_characters): Constify.
9188 (default_word_break_characters): Constify.
9189 * top.c (init_main): Use set_rl_completer_word_break_characters.
9190
7a114964
PA
91912017-04-05 Pedro Alves <palves@redhat.com>
9192
9193 * aix-thread.c (aix_thread_pid_to_str)
9194 (aix_thread_extra_thread_info): Constify.
9195 * bsd-kvm.c (bsd_kvm_pid_to_str): Constify.
9196 * bsd-uthread.c (bsd_uthread_extra_thread_info)
9197 (bsd_uthread_pid_to_str): Constify.
9198 * corelow.c (core_pid_to_str): Constify.
9199 * darwin-nat.c (darwin_pid_to_str): Constify.
9200 * fbsd-nat.c (fbsd_pid_to_str): Constify.
9201 * fbsd-tdep.c (fbsd_core_pid_to_str, gdbarch_core_pid_to_str):
9202 Constify.
9203 * gnu-nat.c (gnu_pid_to_str): Constify.
9204 * go32-nat.c (go32_pid_to_str): Constify.
9205 * i386-cygwin-tdep.c (i386_windows_core_pid_to_str): Constify.
9206 * inf-ptrace.c (inf_ptrace_pid_to_str): Constify.
9207 * inferior.c (inferior_pid_to_str): Constify.
9208 * linux-nat.c (linux_nat_pid_to_str): Constify.
9209 * linux-tdep.c (linux_core_pid_to_str): Constify.
9210 * linux-thread-db.c (thread_db_pid_to_str)
9211 (thread_db_extra_thread_info): Constify.
9212 * nto-tdep.c (nto_extra_thread_info): Constify.
9213 * nto-tdep.h (nto_extra_thread_info): Constify.
9214 * obsd-nat.c (obsd_pid_to_str): Constify.
9215 * procfs.c (procfs_pid_to_str): Constify.
9216 * ravenscar-thread.c (ravenscar_extra_thread_info)
9217 (ravenscar_pid_to_str): Constify.
9218 * remote-sim.c (gdbsim_pid_to_str): Constify.
9219 * remote.c (remote_threads_extra_info, remote_pid_to_str):
9220 Constify.
9221 * sol-thread.c (solaris_pid_to_str): Constify.
9222 * sol2-tdep.c (sol2_core_pid_to_str): Constify.
9223 * sol2-tdep.h (sol2_core_pid_to_str): Constify.
9224 * target.c (default_pid_to_str, target_pid_to_str)
9225 (normal_pid_to_str, default_pid_to_str): Constify.
9226 * target.h (target_ops::to_pid_to_str)
9227 (target_ops::to_extra_thread_info): Constify.
9228 (target_pid_to_str, normal_pid_to_str): Constify.
9229 * windows-nat.c (windows_pid_to_str): Constify.
9230 * gdbarch.sh (core_pid_to_str): Constify.
9231 * target-delegates.c: Regenerate.
9232 * gdbarch.h, gdbarch.c: Regenerate.
9233
69bbf465
PA
92342017-04-05 Pedro Alves <palves@redhat.com>
9235
9236 * main.c (captured_main_1): Use gdb::unique_xmalloc_ptr to manage
9237 the memory of the temporary warning_pre_print override.
9238 * utils.c (warning_pre_print): Constify.
9239 * utils.h (warning_pre_print): Constify.
9240
be47f9e8
PA
92412017-04-05 Pedro Alves <palves@redhat.com>
9242
9243 * cli/cli-cmds.c (shell_escape): Constify 'arg' parameter.
9244 (shell_command): New function.
9245 (make_command): Use std::string.
9246 (init_cli_cmds): Register shell_command instead of shell_escape.
9247
bde6261a
PA
92482017-04-05 Pedro Alves <palves@redhat.com>
9249
9250 * breakpoint.c (dprintf_function, dprintf_channel): Don't initialize.
9251 * tracepoint.c (default_collect): Don't initialize.
9252
b38ef47f
PA
92532017-04-05 Pedro Alves <palves@redhat.com>
9254
9255 * macroexp.c (macro_buffer::shared): Now a bool.
9256 (init_buffer): Update.
9257 (init_shared_buffer): Constify 'addr' parameter.
9258 (substitute_args, expand, macro_expand, macro_expand_next): Remove
9259 casts.
9260
f995bbe8
PA
92612017-04-05 Pedro Alves <palves@redhat.com>
9262
9263 * arm-tdep.c (show_disassembly_style_sfunc): Constify local.
9264 * disasm.c (set_disassembler_options): Constify local.
9265 * i386-tdep.c (i386_print_insn): Remove cast and FIXME comment.
9266
4a596fe2
SDJ
92672017-04-05 Sergio Durigan Junior <sergiodj@redhat.com>
9268
9269 PR gdb/21352
9270 * tracefile.c (tsave_command): Fix argument parsing for '-r'
9271 option.
9272
2cad08ea
YQ
92732017-04-05 Yao Qi <yao.qi@linaro.org>
9274
9275 * frame.c (frame_unwind_register_unsigned): Call
9276 frame_unwind_register_value.
9277
55a98976
YQ
92782017-04-05 Yao Qi <yao.qi@linaro.org>
9279
9280 * gdb.threads/thread-specific-bp.exp (check_thread_specific_breakpoint):
9281 Use gdb_test_multiple, and don't match anchor.
9282
4ac40124
PA
92832017-04-05 Pedro Alves <palves@redhat.com>
9284
9285 * MAINTAINERS (Global Maintainers): Add Simon Marchi.
9286 (Write After Approval): Remove Simon Marchi.
9287
c053b654
PA
92882017-04-05 Pedro Alves <palves@redhat.com>
9289
9290 * common/gdb_optional.h (optional::optional): Make constexpr and
9291 initialize m_dummy.
9292
4c7bf4f9
JB
92932017-04-04 John Baldwin <jhb@FreeBSD.org>
9294
9295 * amd64-fbsd-tdep.c: Remove "bsd-uthread.h" include.
9296 (amd64fbsd_jmp_buf_reg_offset): Remove.
9297 (amd64fbsd_supply_uthread): Remove function.
9298 (amd64fbsd_collect_uthread): Remove function.
9299 (amd64fbsd_init_abi): Don't set bsd-uthread callbacks.
9300 * configure.tgt (i[34567]86-*-freebsd*): Remove bsd-uthread.o.
9301 (x86_64-*-freebsd*): Remove bsd-uthread.o.
9302 (fbsd-nat.c): Update comment.
9303 * i386-fbsd-tdep.c: Remove "bsd-uthread.h" include.
9304 (i386fbsd_jmp_buf_reg_offset): Remove.
9305 (i386fbsd_supply_uthread): Remove function.
9306 (i386fbsd_collect_uthread): Remove function.
9307 (i386fbsd_init_abi): Don't set bsd-uthread callbacks.
9308
1e1a8bef
JB
93092017-04-04 John Baldwin <jhb@FreeBSD.org>
9310
9311 * Makefile.in (ALL_64_TARGET_OBS): Remove alpha-fbsd-tdep.o.
9312 (ALLDEPFILES): Remove alpha-fbsd-tdep.c
9313 * NEWS: Mention that support for FreeBSD/alpha was removed.
9314 * alpha-fbsd-tdep.c: Delete file.
9315 * config/alpha/fbsd.mh: Delete file.
9316 * configure.host: Delete alpha*-*-freebsd* and
9317 alpha*-*-kfreebsd*-gnu.
9318 * configure.tgt: Delete alpha*-*-freebsd* and
9319 alpha*-*-kfreebsd*-gnu.
9320
49907934
JB
93212017-04-04 John Baldwin <jhb@FreeBSD.org>
9322
9323 * amd64-bsd-nat.c (amd64bsd_fetch_inferior_registers,
9324 amd64bsd_store_inferior_registers): Use ptid from regcache.
9325
6f77053d
PA
93262017-04-04 Pedro Alves <palves@redhat.com>
9327
9328 * dwarf2read.c (lnp_state_machine): Now a class. Initialize all
9329 data fields, make them private and add "m_" prefixes.
9330 (lnp_state_machine::lnp_state_machine): New ctor.
9331 (record_line, check_line_address, handle_set_discriminator)
9332 (handle_set_address, handle_advance_pc, handle_special_opcode)
9333 (handle_advance_line, handle_set_file, handle_negate_stmt)
9334 (handle_const_add_pc, handle_fixed_advance_pc, handle_copy)
9335 (end_sequence, advance_line): New methods.
9336 (m_gdbarch, m_record_lines_p): New fields.
9337 (lnp_reader_state): Delete.
9338 (dwarf_record_line): Rename to ...
9339 (lnp_state_machine::record_line): ... adjust.
9340 (init_lnp_state_machine): Delete.
9341 (lnp_state_machine::lnp_state_machine): New.
9342 (check_line_address): Rename to ...
9343 (lnp_state_machine::check_line_address): This.
9344 (dwarf_decode_lines_1): Remove reference to "reader_state".
9345 Adjust lnp_state_machine having a non-default ctor. Use bool.
9346 State machine internal state manipulation moved to
9347 lnp_state_machine methods.
9348
9c541725
PA
93492017-04-04 Pedro Alves <palves@redhat.com>
9350
9351 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
9352 unittests/offset-type-selftests.c.
9353 (SUBDIR_UNITTESTS_OBS): Add offset-type-selftests.o.
9354 * common/offset-type.h: New file.
9355 * common/preprocessor.h: New file.
9356 * common/traits.h: New file.
9357 * common/valid-expr.h: New file.
9358 * dwarf2expr.c: Include "common/underlying.h". Adjust to use
9359 sect_offset and cu_offset strong typedefs throughout.
9360 * dwarf2expr.h: Adjust to use sect_offset and cu_offset strong
9361 typedefs throughout.
9362 * dwarf2loc.c: Include "common/underlying.h". Adjust to use
9363 sect_offset and cu_offset strong typedefs throughout.
9364 * dwarf2read.c: Adjust to use sect_offset and cu_offset strong
9365 typedefs throughout.
9366 * gdbtypes.h: Include "common/offset-type.h".
9367 (cu_offset): Now an offset type (strong typedef) instead of a
9368 struct.
9369 (sect_offset): Likewise.
9370 (union call_site_parameter_u): Rename "param_offset" field to
9371 "param_cu_off".
9372 * unittests/offset-type-selftests.c: New file.
9373
ecfb656c
PA
93742017-04-04 Pedro Alves <palves@redhat.com>
9375
9376 * common/underlying.h: New file.
9377 * dwarf2read.c: Include "common/gdb_optional.h" and
9378 "common/underlying.h".
9379 (dir_index, file_name_index): New types.
9380 (file_entry): Use them.
9381 (file_entry::include): Use to_underlying.
9382 (line_header::add_file_name): Use dir_index.
9383 (read_formatted_entries): Use gdb::optional. Read form before
9384 writting to file_entry.
9385 (dwarf_decode_line_header): Use dir_index.
9386 (lnp_state_machine::current_file): Use to_underlying.
9387 (lnp_state_machine::file): Change type to file_name_index.
9388 (dwarf_record_line): Use to_underlying.
9389 (init_lnp_state_machine): Use file_name_index.
9390 (dwarf_decode_lines_1): Use dir_index and file_name_index.
9391
d194f1fe
PA
93922017-04-04 Pedro Alves <palves@redhat.com>
9393
9394 * common/gdb_optional.h (gdb::optiona): Add operator->, operator*,
9395 operator bool, has_value and get methods.
9396
fff8551c
PA
93972017-04-04 Pedro Alves <palves@redhat.com>
9398
9399 * dwarf2read.c (struct file_entry): Add ctors, and initialize all
9400 fields.
9401 (line_header): Initialize all data fields. Change type of
9402 standard_opcode_lengths to std::unique_ptr<unsigned char[]>.
9403 Change type of include_dirs to std::vector<const char *>. Remove
9404 num_include_dirs, include_dirs_size. Change type of file_names to
9405 std::vector<file_entry>. Remove num_file_names, file_names_size.
9406 (line_header::line_header): New.
9407 (line_header::add_include_dir, line_header::add_file_name): New
9408 methods.
9409 (line_header::include_dir_at): Remove NULL check.
9410 (line_header::file_name_at): Add const overload.
9411 (line_header_up): New unique_ptr typedef.
9412 (dw2_get_file_names_reader): Use line_header_up. Adjust to use
9413 std::vector. Remove free_line_header call.
9414 (dwarf2_build_include_psymtabs): Use line_header_up. Remove
9415 free_line_header call.
9416 (free_cu_line_header): Delete.
9417 (handle_DW_AT_stmt_list, handle_DW_AT_stmt_list)
9418 (setup_type_unit_groups): Use line_header_up instead of cleanups.
9419 Adjust to use std::vector.
9420 (free_line_header): Delete.
9421 (free_line_header_voidp): Use delete.
9422 (add_include_dir): Replace with ...
9423 (line_header::add_include_dir): ... this method. Use std::vector.
9424 (add_file_name): Replace with ...
9425 (line_header::add_file_name): ... this method. Use std::vector.
9426 (add_include_dir_stub): Delete.
9427 (read_formatted_entries): Remove memset.
9428 (dwarf_decode_line_header): Return a line_header_up instead of a
9429 raw pointer. Remove cleanup handling. Pass lambdas to
9430 read_formatted_entries. Adjust to use line_header methods.
9431 (dwarf_decode_lines_1): Adjust to use line_header methods.
9432 (dwarf_decode_lines, file_file_name, file_full_name): Adjust to
9433 use std::vector.
9434
d62a8ae2
SM
94352017-04-04 Simon Marchi <simon.marchi@polymtl.ca>
9436
9437 * remote.c (set_general_thread, set_continue_thread): Use ptid_t
9438 instead of struct ptid.
9439
db3a1dc7
AH
94402017-05-04 Alan Hayward <alan.hayward@arm.com>
9441
9442 * frame.c (get_frame_register_bytes): Unwind using value.
9443 (put_frame_register_bytes): Likewise.
9444
b1b45502
IB
94452017-03-30 Iain Buclaw <ibuclaw@gdcproject.org>
9446
9447 * d-exp.y (type_aggregate_p): Treat TYPE_CODE_MODULE as being
9448 aggregate-like.
9449
ec13808e
JK
94502017-03-29 Jan Kratochvil <jan.kratochvil@redhat.com>
9451
9452 * auto-load.c (auto_load_section_scripts): Check SEC_HAS_CONTENTS.
9453
12316564
YQ
94542017-03-29 Yao Qi <yao.qi@linaro.org>
9455
9456 * gdbthread.h (struct thread_info): Declare constructor and
9457 destructor. Add some in-class member initializers.
9458 * thread.c (free_thread): Remove.
9459 (init_thread_list): Call delete instead of free_thread.
9460 (new_thread): Call thread_info constructor.
9461 (thread_info::thread_info): New function.
9462 (thread_info::~thread_info): New function.
9463 (delete_thread_1): Call delete instead of free_thread.
9464 (make_cleanup_restore_current_thread): Move tp and frame to
9465 inner block.
9466
fe5f7374
AK
94672017-03-28 Anton Kolesov <anton.kolesov@synopsys.com>
9468
9469 * arc-tdep.c (arc_frame_cache): Add support for prologue analysis.
9470 (arc_skip_prologue): Likewise.
9471 (arc_make_frame_cache): Likewise.
9472 (arc_pv_get_operand): New function.
9473 (arc_is_in_prologue): Likewise.
9474 (arc_analyze_prologue): Likewise.
9475 (arc_print_frame_cache): Likewise.
9476 (MAX_PROLOGUE_LENGTH): New constant.
9477
eea78757
AK
94782017-03-28 Anton Kolesov <anton.kolesov@synopsys.com>
9479
9480 * configure.tgt: Add arc-insn.o.
9481 * arc-tdep.c (arc_delayed_print_insn): Make non-static.
9482 (dump_arc_instruction_command): New function.
9483 (arc_fprintf_disasm): Likewise.
9484 (arc_disassemble_info): Likewise.
9485 (arc_insn_get_operand_value): Likewise.
9486 (arc_insn_get_operand_value_signed): Likewise.
9487 (arc_insn_get_memory_base_reg): Likewise.
9488 (arc_insn_get_memory_offset): Likewise.
9489 (arc_insn_get_branch_target): Likewise.
9490 (arc_insn_dump): Likewise.
9491 (arc_insn_get_linear_next_pc): Likewise.
9492 * arc-tdep.h (arc_delayed_print_insn): Add function declaration.
9493 (arc_disassemble_info): Likewise.
9494 (arc_insn_get_branch_target): Likewise.
9495 (arc_insn_get_linear_next_pc): Likewise.
9496 * NEWS: Mention new "maint print arc arc-instruction".
9497
3be78afd
AK
94982017-03-28 Anton Kolesov <anton.kolesov@synopsys.com>
9499
9500 * arc-tdep (maintenance_print_arc_list): New variable.
9501 (maintenance_print_arc_command): New function.
9502
296ec4fa
AK
95032017-03-28 Anton Kolesov <anton.kolesov@synopsys.com>
9504
9505 * arc-tdep.c (core_v2_register_names, core_arcompact_register_names)
9506 Add "limm" and "reserved".
9507 (arc_cannot_fetch_register, arc_cannot_store_register): Add
9508 ARC_RESERVED_REGNUM and ARC_LIMM_REGNUM.
9509 * arc-tdep.h (arc_regnum): Likewise.
9510
f74f865e
MF
95112017-03-27 Max Filippov <jcmvbkbc@gmail.com>
9512
9513 * xtensa-linux-nat.c (fill_gregset): Call regcache_raw_collect
9514 for THREADPTR register.
9515 (supply_gregset_reg): Call regcache_raw_supply for THREADPTR
9516 register.
9517 * xtensa-tdep.c (XTENSA_DBREGN_UREG): New definition.
9518 (xtensa_derive_tdep): Initialize tdep->threadptr_regnum.
9519 * xtensa-tdep.h (gdbarch_tdep::threadptr_regnum): New field.
9520
0d0bf81a
MF
95212017-03-27 Max Filippov <jcmvbkbc@gmail.com>
9522
9523 * xtensa-tdep.c (xtensa_pseudo_register_read): Treat all
9524 registers above gdbarch_num_regs (gdbarch) as privileged in
9525 call0 ABI.
9526
0ce4291e
MF
95272017-03-27 Max Filippov <jcmvbkbc@gmail.com>
9528
9529 * xtensa-linux-nat.c (fill_gregset): Call regcache_raw_collect
9530 for a single specified register or for all registers in
9531 a0_base..a0_base + C0_NREGS range.
9532 (supply_gregset_reg): Call regcache_raw_supply for a single
9533 specified register or for all registers in a0_base..a0_base +
9534 C0_NREGS range.
9535
c56054f9
MF
95362017-03-27 Max Filippov <jcmvbkbc@gmail.com>
9537
9538 * arch/xtensa.h (C0_NREGS): Add definition.
9539 * xtensa-tdep.c (C0_NREGS): Remove definition.
9540
a4398628
MF
95412017-03-27 Max Filippov <jcmvbkbc@gmail.com>
9542
9543 * xtensa-tdep.c (xtensa_scan_prologue, call0_analyze_prologue):
9544 Drop xtensa_default_isa initialization.
9545 (xtensa_gdbarch_init): Initialize xtensa_default_isa.
9546
8c43009f
PA
95472017-03-27 Pedro Alves <palves@redhat.com>
9548
9549 * dwarf2read.c (file_entry) <dir_index>: Add comment.
9550 (file_entry::include_dir): New method.
9551 (line_header::include_dir_at, line_header::file_name_at): New
9552 methods.
9553 (setup_type_unit_groups, setup_type_unit_groups)
9554 (psymtab_include_file_name): Simplify using the new methods.
9555 (lnp_state_machine) <the_line_header>: New field.
9556 <file>: Add comment.
9557 (lnp_state_machine::current_file): New method.
9558 (dwarf_record_line): Simplify using the new methods.
9559 (init_lnp_state_machine): Initialize the "the_line_header" field.
9560 (dwarf_decode_lines_1, dwarf_decode_lines, file_file_name):
9561 Simplify using the new methods.
9562
a7e80b9e
PA
95632017-03-27 Pedro Alves <palves@redhat.com>
9564
9565 * cp-name-parser.y (make_empty): Delete.
9566 (demangler_special, nested_name, ptr_operator, array_indicator)
9567 (direct_declarator, declarator_1): Use fill_comp instead of
9568 make_empty.
9569
21047726
PA
95702017-03-27 Pedro Alves <palves@redhat.com>
9571
9572 * xml-support.h (gdb_xml_debug): Pass a "first-to-check" argument
9573 to ATTRIBUTE_PRINTF.
9574 * solib-target.c (library_list_start_list): Print "string" not
9575 "version".
9576 * xml-tdesc.c (tdesc_start_field): Pass "field_name" to
9577 gdb_xml_error call.
9578
d721ba37
PA
95792017-03-27 Pedro Alves <palves@redhat.com>
9580
9581 * dwarf2read.c (struct file_and_directory): New.
9582 (dwarf2_get_dwz_file): Adjust to use std::string.
9583 (dw2_get_file_names_reader): Adjust to use file_and_directory.
9584 (find_file_and_directory): Adjust to return a file_and_directory
9585 object.
9586 (read_file_scope): Adjust to use file_and_directory. Remove
9587 make_cleanup/do_cleanups calls.
9588 (open_and_init_dwp_file): Adjust to use std::string. Remove
9589 make_cleanup/do_cleanups calls.
9590 * python/python.c (do_start_initialization): Adjust to ldirname
9591 returning a std::string.
9592 * utils.c (ldirname): Now returns a std::string.
9593 * utils.h (ldirname): Change return type to std::string.
9594 * xml-syscall.c (xml_init_syscalls_info): Adjust to ldirname
9595 returning a std::string.
9596 * xml-tdesc.c (file_read_description_xml): Likewise.
9597
ed771251
AH
95982017-03-24 Alan Hayward <alan.hayward@arm.com>
9599
9600 * regcache.c (regcache_debug_print_register): New function.
9601 * regcache.h (regcache_debug_print_register): New declaration.
9602 * target.c (debug_print_register): Remove.
9603 (target_fetch_registers): Call regcache_debug_print_register.
9604 (target_store_registers): Likewise.
9605
568c1b9f
PB
96062017-03-24 Pádraig Brady <pbrady@fb.com>
9607
9608 * dwarf2read.c (setup_type_unit_groups): Ensure dir_index doesn't
9609 reference beyond the 'lh->include_dirs' array before accessing to
9610 it.
9611 (psymtab_include_file_name): Likewise.
9612 (dwarf_decode_lines_1): Likewise.
9613 (dwarf_decode_lines): Likewise.
9614 (file_file_name): Likewise.
9615
3e00d44f
SM
96162017-03-23 Simon Marchi <simon.marchi@ericsson.com>
9617
9618 * fbsd-tdep.c (fbsd_corefile_thread): Don't set/restore
9619 inferior_ptid.
9620 * proc-service.c (ps_lgetregs, ps_lsetregs, ps_lgetfpregs,
9621 ps_lsetfpregs): Likewise.
9622 * regcache.c (regcache_raw_update, regcache_raw_write): Likewise.
9623 * sol-thread.c (ps_lgetregs, ps_lsetregs, ps_lgetfpregs,
9624 ps_lsetfpregs): Likewise.
9625 * target.c (target_fetch_registers, target_store_registers):
9626 Remove asserts.
9627
077ae656
AH
96282017-03-23 Alan Hayward <alan.hayward@arm.com>
9629
9630 * sol-thread.c (sol_thread_store_registers): Remove regcache calls.
9631
1e2b521d
YQ
96322017-03-23 Yao Qi <yao.qi@linaro.org>
9633
9634 * aarch64-tdep.c (aarch64_process_record_test): Declare.
9635 (_initialize_aarch64_tdep): Register it.
9636 (aarch64_record_load_store): Handle PRFM instruction.
9637 (aarch64_process_record_test): New function.
9638
33877125
YQ
96392017-03-23 Yao Qi <yao.qi@linaro.org>
9640
9641 * aarch64-tdep.c (aarch64_record_load_store): Fix code
9642 indentation.
9643
a0eef940
YQ
96442017-03-23 Yao Qi <yao.qi@linaro.org>
9645
9646 * aarch64-tdep.c: Remove AARCH64_RECORD_FAILURE.
9647
3f2a3564
PR
96482017-03-23 Philipp Rudo <prudo@linux.vnet.ibm.com>
9649
9650 python/python.c (do_start_initialization): Fix memory leak.
9651
b67aeab0
SM
96522017-03-22 Simon Marchi <simon.marchi@polymtl.ca>
9653
9654 * inf-ptrace.c (inf_ptrace_xfer_partial): Get pid from ptid
9655 using get_ptrace_pid.
9656 * linux-nat.c (linux_nat_xfer_partial): Don't set/restore
9657 inferior_ptid.
9658 (linux_proc_xfer_partial, linux_proc_xfer_spu): Use lwp of
9659 inferior_ptid instead of pid.
9660
ffdbe864
YQ
96612017-03-22 Yao Qi <yao.qi@linaro.org>
9662
9663 * aarch64-tdep.c: Wrap locally used classes in anonymous
9664 namespace.
9665 * arm-tdep.c: Likewise.
9666 * linespec.c: Likewise.
9667 * ui-out.c: Likewise.
9668
9d736fbf
JG
96692017-03-22 Jonah Graham <jonah@kichwacoders.com>
9670
9671 PR gdb/19637
9672 * python/lib/gdb/printer/bound_registers.py: Import sys.
9673
3de88e9a
SM
96742017-03-21 Simon Marchi <simon.marchi@ericsson.com>
9675
9676 * windows-nat.c (do_windows_fetch_inferior_registers): Add
9677 windows_thread_info parameter and use it instead of
9678 current_thread.
9679 (windows_fetch_inferior_registers): Don't set current_thread,
9680 pass the thread to do_windows_fetch_inferior_registers. Use
9681 ptid from regcache instead of inferior_ptid.
9682 (do_windows_store_inferior_registers): Add windows_thread_info
9683 parameter and use it instead of current_thread.
9684 (windows_store_inferior_registers): Don't set current_thread,
9685 pass the thread to do_windows_store_inferior_registers. Use
9686 ptid from regcache instead of inferior_ptid.
9687
0e7b8f61
SM
96882017-03-21 Simon Marchi <simon.marchi@ericsson.com>
9689
9690 * ser-mingw.c (ser_windows_raw): Remove reference to
9691 struct serial::current_timeout.
9692
5badf10a
IR
96932017-03-21 Ivo Raisr <ivo.raisr@oracle.com>
9694
9695 PR tdep/20928
9696 * gdb/sparc-tdep.h (gdbarch_tdep) <sparc64_ccr_type>: New field.
9697 * gdb/sparc64-tdep.c (sparc64_ccr_type): New function.
9698 (sparc64_fsr_type): Fix %fsr decoding.
9699
cee59b3f
TW
97002017-03-21 Tim Wiederhake <tim.wiederhake@intel.com>
9701
9702 * python/py-record-btrace.c (btpy_insn_data): Change return type
9703 for Python 2.
9704
639a9038
SM
97052017-03-20 Simon Marchi <simon.marchi@polymtl.ca>
9706
9707 * spu-linux-nat.c (spu_fetch_inferior_registers,
9708 spu_store_inferior_registers): Use ptid from regcache, set and
9709 restore inferior_ptid.
9710 * spu-multiarch.c (spu_fetch_registers, spu_store_registers):
9711 Likewise.
9712
bcc0c096
SM
97132017-03-20 Simon Marchi <simon.marchi@polymtl.ca>
9714
9715 * i386-linux-nat.c (fetch_register, store_register,
9716 i386_linux_fetch_inferior_registers,
9717 i386_linux_store_inferior_registers): Use ptid from regcache.
9718 * ia64-linux-nat.c (ia64_linux_fetch_register,
9719 ia64_linux_store_register): Likewise.
9720 * inf-ptrace.c (inf_ptrace_fetch_register,
9721 inf_ptrace_store_register): Likewise.
9722 * m32r-linux-nat.c (m32r_linux_fetch_inferior_registers,
9723 m32r_linux_store_inferior_registers): Likewise.
9724 * m68k-bsd-nat.c (m68kbsd_fetch_inferior_registers,
9725 m68kbsd_store_inferior_registers): Likewise.
9726 * m68k-linux-nat.c (fetch_register, store_register,
9727 m68k_linux_fetch_inferior_registers,
9728 m68k_linux_store_inferior_registers): Likewise.
9729 * m88k-bsd-nat.c (m88kbsd_fetch_inferior_registers,
9730 m88kbsd_store_inferior_registers): Likewise.
9731 * mips-fbsd-nat.c (mips_fbsd_fetch_inferior_registers,
9732 mips_fbsd_store_inferior_registers): Likewise.
9733 * mips-linux-nat.c (mips64_linux_regsets_fetch_registers,
9734 mips64_linux_regsets_store_registers): Likewise.
9735 * mips-nbsd-nat.c (mipsnbsd_fetch_inferior_registers,
9736 mipsnbsd_store_inferior_registers): Likewise.
9737 * mips-obsd-nat.c (mips64obsd_fetch_inferior_registers,
9738 mips64obsd_store_inferior_registers): Likewise.
9739 * nto-procfs.c (procfs_fetch_registers, procfs_store_registers):
9740 Likewise.
9741 * ppc-fbsd-nat.c (ppcfbsd_fetch_inferior_registers,
9742 ppcfbsd_store_inferior_registers): Likewise.
9743 * ppc-linux-nat.c (ppc_linux_fetch_inferior_registers,
9744 ppc_linux_store_inferior_registers): Likewise.
9745 * ppc-nbsd-nat.c (ppcnbsd_fetch_inferior_registers,
9746 ppcnbsd_store_inferior_registers): Likewise.
9747 * ppc-obsd-nat.c (ppcobsd_fetch_registers,
9748 ppcobsd_store_registers): Likewise.
9749 * procfs.c (procfs_fetch_registers, procfs_store_registers):
9750 Likewise.
9751 * ravenscar-thread.c (ravenscar_fetch_registers,
9752 ravenscar_store_registers, ravenscar_prepare_to_store):
9753 Likewise.
9754 * record-btrace.c (record_btrace_fetch_registers,
9755 record_btrace_store_registers, record_btrace_prepare_to_store):
9756 Likewise.
9757 * remote-sim.c (gdbsim_fetch_register, gdbsim_store_register):
9758 Lookup inferior using ptid from regcache, instead of
9759 current_inferior.
9760 * remote.c (remote_fetch_registers, remote_store_registers): Use
9761 ptid from regcache.
9762 * rs6000-nat.c (fetch_register, store_register): Likewise.
9763 * s390-linux-nat.c (s390_linux_fetch_inferior_registers,
9764 s390_linux_store_inferior_registers): Likewise.
9765 * sh-nbsd-nat.c (shnbsd_fetch_inferior_registers,
9766 shnbsd_store_inferior_registers): Likewise.
9767 * sol-thread.c (sol_thread_fetch_registers,
9768 sol_thread_store_registers): Likewise.
9769 * sparc-nat.c (sparc_fetch_inferior_registers,
9770 sparc_store_inferior_registers): Likewise.
9771 * tilegx-linux-nat.c (fetch_inferior_registers,
9772 store_inferior_registers): Likewise.
9773 * vax-bsd-nat.c (vaxbsd_fetch_inferior_registers,
9774 vaxbsd_store_inferior_registers): Likewise.
9775 * xtensa-linux-nat.c (fetch_gregs, store_gregs, fetch_xtregs,
9776 store_xtregs): Likewise.
9777
c0f55cc6
AV
97782017-03-20 Artemiy Volkov <artemiyv@acm.org>
9779
9780 PR gdb/14441
9781 * NEWS: Mention support for rvalue references in GDB and python.
9782 * doc/gdb.texinfo (C Plus Plus Expressions): Mention that GDB
9783 supports both lvalue and rvalue references.
9784
15c0a2a9
AV
97852017-03-20 Artemiy Volkov <artemiyv@acm.org>
9786
9787 PR gdb/14441
9788 * gdbtypes.c (rank_one_type): Implement overloading
9789 resolution rules regarding rvalue references.
9790
aa006118
AV
97912017-03-20 Artemiy Volkov <artemiyv@acm.org>
9792
9793 PR gdb/14441
9794 * aarch64-tdep.c (aarch64_type_align)
9795 (aarch64_extract_return_value, aarch64_store_return_value): Change
9796 lvalue reference type checks to general reference type checks.
9797 * amd64-tdep.c (amd64_classify): Likewise.
9798 * amd64-windows-tdep.c (amd64_windows_passed_by_integer_register):
9799 Likewise.
9800 * arm-tdep.c (arm_type_align, arm_extract_return_value)
9801 (arm_store_return_value): Likewise.
9802 * ax-gdb.c (gen_fetch, gen_cast): Likewise.
9803 * c-typeprint.c (c_print_type): Likewise.
9804 * c-varobj.c (adjust_value_for_child_access, c_value_of_variable)
9805 (cplus_number_of_children, cplus_describe_child): Likewise.
9806 * compile/compile-c-symbols.c (generate_vla_size): Likewise.
9807 * completer.c (expression_completer): Likewise.
9808 * cp-support.c (make_symbol_overload_list_adl_namespace):
9809 Likewise.
9810 * darwin-nat-info.c (info_mach_region_command): Likewise.
9811 * dwarf2loc.c (entry_data_value_coerce_ref)
9812 (value_of_dwarf_reg_entry): Likewise.
9813 * eval.c (ptrmath_type_p, evaluate_subexp_standard)
9814 (evaluate_subexp_for_address, evaluate_subexp_for_sizeof):
9815 Likewise.
9816 * findvar.c (extract_typed_address, store_typed_address):
9817 Likewise.
9818 * gdbtypes.c (rank_one_type): Likewise.
9819 * hppa-tdep.c (hppa64_integral_or_pointer_p): Likewise.
9820 * infcall.c (value_arg_coerce): Likewise.
9821 * language.c (pointer_type): Likewise.
9822 * m32c-tdep.c (m32c_reg_arg_type, m32c_m16c_address_to_pointer):
9823 Likewise.
9824 * m88k-tdep.c (m88k_integral_or_pointer_p): Likewise.
9825 * mn10300-tdep.c (mn10300_type_align): Likewise.
9826 * msp430-tdep.c (msp430_push_dummy_call): Likewise.
9827 * ppc-sysv-tdep.c (do_ppc_sysv_return_value)
9828 (ppc64_sysv_abi_push_param, ppc64_sysv_abi_return_value):
9829 Likewise.
9830 * printcmd.c (print_formatted, x_command): Likewise.
9831 * python/py-type.c (typy_get_composite, typy_template_argument):
9832 Likewise.
9833 * python/py-value.c (valpy_referenced_value)
9834 (valpy_get_dynamic_type, value_has_field): Likewise.
9835 * s390-linux-tdep.c (s390_function_arg_integer): Likewise.
9836 * sparc-tdep.c (sparc_integral_or_pointer_p): Likewise.
9837 * sparc64-tdep.c (sparc64_integral_or_pointer_p): Likewise.
9838 * spu-tdep.c (spu_scalar_value_p): Likewise.
9839 * symtab.c (lookup_symbol_aux): Likewise.
9840 * typeprint.c (whatis_exp, print_type_scalar): Likewise.
9841 * valarith.c (binop_types_user_defined_p, unop_user_defined_p):
9842 Likewise.
9843 * valops.c (value_cast_pointers, value_cast)
9844 (value_reinterpret_cast, value_dynamic_cast, value_addr, typecmp)
9845 (value_struct_elt, value_struct_elt_bitpos)
9846 (value_find_oload_method_list, find_overload_match)
9847 (value_rtti_indirect_type): Likewise.
9848 * valprint.c (val_print_scalar_type_p, generic_val_print):
9849 Likewise.
9850 * value.c (value_actual_type, value_as_address, unpack_long)
9851 (pack_long, pack_unsigned_long, coerce_ref_if_computed)
9852 (coerce_ref): Likewise.
9853 * varobj.c (varobj_get_value_type): Likewise.
9854
3fcf899d
AV
98552017-03-20 Artemiy Volkov <artemiyv@acm.org>
9856
9857 PR gdb/14441
9858 * doc/python.texi (Types in Python): Add TYPE_CODE_RVALUE_REF to
9859 table of constants.
9860 * python/lib/gdb/command/explore.py: Support exploring values
9861 of rvalue reference types.
9862 * python/lib/gdb/types.py: Implement get_basic_type() for
9863 rvalue reference types.
9864 * python/py-type.c (pyty_codes) <TYPE_CODE_RVALUE_REF>: New
9865 constant.
9866 * python/py-value.c (valpy_getitem): Add an rvalue reference
9867 check.
9868 (valpy_reference_value): Add new parameter "refcode".
9869 (valpy_lvalue_reference_value, valpy_rvalue_reference_value):
9870 New wrappers for valpy_reference_value().
9871 * python/py-xmethods.c (gdbpy_get_xmethod_result_type)
9872 (gdbpy_invoke_xmethod): Likewise.
9873
4297a3f0
AV
98742017-03-20 Artemiy Volkov <artemiyv@acm.org>
9875
9876 PR gdb/14441
9877 * dwarf2read.c (process_die, read_type_die_1): Handle the
9878 DW_TAG_rvalue_reference_type DIE.
9879 (read_tag_reference_type): Add new parameter "refcode".
9880
e1cb3213
AV
98812017-03-20 Artemiy Volkov <artemiyv@acm.org>
9882
9883 PR gdb/14441
9884 * c-typeprint.c (c_print_type, c_type_print_varspec_prefix)
9885 (c_type_print_modifier, c_type_print_varspec_suffix)
9886 (c_type_print_base): Support printing rvalue reference types.
9887 * c-valprint.c (c_val_print, c_value_print): Support printing
9888 rvalue reference values.
9889
e4347c89
AV
98902017-03-20 Artemiy Volkov <artemiyv@acm.org>
9891
9892 PR gdb/14441
9893 * cp-name-parser.y (ptr_operator): Handle the '&&' token in
9894 typename.
9895 * cp-support.c (replace_typedefs): Handle
9896 DEMANGLE_COMPONENT_RVALUE_REFERENCE.
9897 * python/py-type.c (typy_lookup_type): Likewise.
9898
53cc15f5
AV
98992017-03-20 Artemiy Volkov <artemiyv@acm.org>
9900
9901 PR gdb/14441
9902 * c-exp.y (ptr_operator): Handle the '&&' token in the typename.
9903 * parse.c (insert_type): Change assert statement.
9904 (follow_types): Handle rvalue reference types.
9905 * parser-defs.h (enum type_pieces) <tp_rvalue_reference>: New
9906 constant.
9907
a65cfae5
AV
99082017-03-20 Artemiy Volkov <artemiyv@acm.org>
9909
9910 PR gdb/14441
9911 * ada-lang.c (ada_evaluate_subexp): Adhere to the new
9912 value_ref() interface.
9913 * c-valprint.c (c_value_print): Likewise.
9914 * infcall.c (value_arg_coerce): Likewise.
9915 * python/py-value.c (valpy_reference_value): Likewise.
9916 * valops.c (value_cast, value_reinterpret_cast)
9917 (value_dynamic_cast, typecmp): Likewise.
9918 (value_ref): Parameterize by kind of return value reference type.
9919 * value.h (value_ref): Add new parameter "refcode".
9920
3b224330
AV
99212017-03-20 Artemiy Volkov <artemiyv@acm.org>
9922
9923 PR gdb/14441
9924 * dwarf2read.c (read_tag_reference_type): Use
9925 lookup_lvalue_reference_type() instead of lookup_reference_type().
9926 * eval.c (evaluate_subexp_standard): Likewise.
9927 * f-exp.y: Likewise.
9928 * gdbtypes.c (make_reference_type, lookup_reference_type):
9929 Generalize with rvalue reference types.
9930 (lookup_lvalue_reference_type, lookup_rvalue_reference_type): New
9931 convenience wrappers for lookup_reference_type().
9932 * gdbtypes.h (make_reference_type, lookup_reference_type): Add a
9933 reference kind parameter.
9934 (lookup_lvalue_reference_type, lookup_rvalue_reference_type): Add
9935 wrappers for lookup_reference_type().
9936 * guile/scm-type.c (gdbscm_type_reference): Use
9937 lookup_lvalue_reference_type() instead of lookup_reference_type().
9938 * guile/scm-value.c (gdbscm_value_dynamic_type): Likewise.
9939 * parse.c (follow_types): Likewise.
9940 * python/py-type.c (typy_reference, typy_lookup_type): Likewise.
9941 * python/py-value.c (valpy_get_dynamic_type, valpy_getitem):
9942 Likewise.
9943 * python/py-xmethods.c (gdbpy_get_xmethod_result_type)
9944 (gdbpy_invoke_xmethod): Likewise.
9945 * stabsread.c: Provide extra argument to make_reference_type()
9946 call.
9947 * valops.c (value_ref, value_rtti_indirect_type): Use
9948 lookup_lvalue_reference_type() instead of lookup_reference_type().
9949
f9aeb8d4
AV
99502017-03-20 Artemiy Volkov <artemiyv@acm.org>
9951
9952 PR gdb/14441
9953 * gdbtypes.h (enum type_code) <TYPE_CODE_RVALUE_REF>: New constant.
9954 (TYPE_IS_REFERENCE): New macro.
9955 (struct type): Add rvalue_reference_type field.
9956 (TYPE_RVALUE_REFERENCE_TYPE): New macro.
9957
51457a05
MAL
99582017-03-20 Marc-Andre Laperle <marc-andre.laperle@ericsson.com>
9959
9960 * NEWS: Add an entry about new '-file-list-shared-libraries' command.
9961 * mi/mi-cmd-file.c (mi_cmd_file_list_shared_libraries):
9962 New function definition.
9963 * mi/mi-cmds.c (mi_cmds): Add -file-list-shared-libraries command.
9964 * mi/mi-cmds.h (mi_cmd_file_list_shared_libraries):
9965 New function declaration.
9966 * mi/mi-interp.c (mi_output_solib_attribs): New Function.
9967 * mi/mi-interp.h: New file.
9968 * solib.c (info_sharedlibrary_command): Replace for loop with
9969 ALL_SO_LIBS macro
9970 * solib.h (update_solib_list): New function declaration.
9971 (so_list_head): Move macro.
9972 * solist.h (ALL_SO_LIBS): New macro.
9973
e696b3ad
MAL
99742017-03-20 Marc-Andre Laperle <marc-andre.laperle@ericsson.com>
9975
9976 * infcmd.c (post_create_inferior): Remove unused argument in
9977 call to solib_add.
9978 * remote.c (remote_start_remote): Likewise.
9979 * solib-frv.c (frv_fetch_objfile_link_map): Likewise.
9980 * solib-svr4.c: (svr4_fetch_objfile_link_map): Likewise.
9981 (enable_break): Likewise.
9982 * solib.c (update_solib_list): Remove unused target argument
9983 and its documentation.
9984 (solib_add): Remove unused target argument. Remove unused
9985 argument in call to update_solib_list.
9986 (info_sharedlibrary_command): Remove unused argument in call
9987 to update_solib_list.
9988 (sharedlibrary_command): Remove unused argument in call to
9989 solib_add.
9990 (handle_solib_event): Likewise.
9991 (reload_shared_libraries): Likewise.
9992 * solib.h (solib_add): Remove unused target argument.
9993
dcb84eda
AA
99942017-03-20 Andreas Arnez <arnez@linux.vnet.ibm.com>
9995
9996 * s390-linux-tdep.c (is_rsi, is_rie): Remove functions.
9997 (s390_displaced_step_fixup): Cover relative branches with the
9998 default fixup handling. This fixes lack of support for some
9999 relative branch instructions.
10000
d9cb6cdc
SM
100012017-03-17 Simon Marchi <simon.marchi@polymtl.ca>
10002
10003 * i386-gnu-nat.c (gnu_fetch_registers, gnu_store_registers): Use
10004 ptid from regcache.
10005
1afaf9f4
SM
100062017-03-17 Simon Marchi <simon.marchi@polymtl.ca>
10007
10008 * i386-darwin-nat.c (i386_darwin_fetch_inferior_registers,
10009 i386_darwin_store_inferior_registers): Use ptid from regcache.
10010
aac12e24
SM
100112017-03-17 Simon Marchi <simon.marchi@polymtl.ca>
10012
10013 * i386-bsd-nat.c (i386bsd_fetch_inferior_registers,
10014 i386bsd_store_inferior_registers): Use ptid from regcache.
10015
bbe1eef1
SM
100162017-03-17 Simon Marchi <simon.marchi@polymtl.ca>
10017
10018 * hppa-obsd-nat.c (hppaobsd_fetch_registers,
10019 hppaobsd_store_registers): Use ptid from regcache.
10020
10799020
SM
100212017-03-17 Simon Marchi <simon.marchi@polymtl.ca>
10022
10023 * hppa-nbsd-nat.c (hppanbsd_fetch_registers,
10024 hppanbsd_store_registers): Use ptid from regcache.
10025
00204cf7
SM
100262017-03-17 Simon Marchi <simon.marchi@polymtl.ca>
10027
10028 * hppa-linux-nat.c (fetch_register, store_register): Use ptid
10029 from regcache. Use get_ptrace_pid.
10030
11a33714
SM
100312017-03-17 Simon Marchi <simon.marchi@polymtl.ca>
10032
10033 * corelow.c (get_core_register_section): Use ptid from regcache,
10034 update doc.
10035
317cd492
SM
100362017-03-17 Simon Marchi <simon.marchi@polymtl.ca>
10037
10038 * bsd-uthread.c (bsd_uthread_fetch_registers,
10039 bsd_uthread_store_registers): Use ptid from regcache, set and
10040 restore inferior_ptid.
10041
9ac8a7c2
SM
100422017-03-17 Simon Marchi <simon.marchi@polymtl.ca>
10043
10044 * arm-nbsd-nat.c (fetch_register, fetch_regs, fetch_fp_register,
10045 fetch_fp_regs, store_register, store_regs, store_fp_register,
10046 store_fp_regs): Use ptid from regcache.
10047
4ac4bb6a
SM
100482017-03-17 Simon Marchi <simon.marchi@polymtl.ca>
10049
10050 * arm-linux-nat.c (fetch_fpregs, store_fpregs, fetch_regs,
10051 store_regs, fetch_wmmx_regs, store_wmmx_regs, fetch_vfp_regs,
10052 store_vfp_regs): Use ptid from regcache.
10053
9bcbdca8
PA
100542017-03-17 Pedro Alves <palves@redhat.com>
10055
10056 PR remote/21188
10057 * ser-base.c (ser_base_wait_for): Add comment.
10058 (do_ser_base_readchar): Improve comment based on the ser-unix.c's
10059 version.
10060 * ser-unix.c (hardwire_raw): Remove reference to
10061 scb->current_timeout.
10062 (wait_for, do_hardwire_readchar, hardwire_readchar): Delete.
10063 (hardwire_ops): Install ser_base_readchar instead of
10064 hardwire_readchar.
10065 * serial.h (struct serial) <current_timeout, timeout_remaining>:
10066 Remove fields.
10067
7503099f
JG
100682017-03-17 Jonah Graham <jonah@kichwacoders.com>
10069
10070 PR gdb/19637
10071 * python/lib/gdb/printer/bound_registers.py: Add support for
10072 Python 3.
10073
7942e96e
AA
100742017-03-16 Andreas Arnez <arnez@linux.vnet.ibm.com>
10075
10076 * dwarf2loc.c (indirect_synthetic_pointer): Get data type of
10077 pointed-to DIE and pass it to dwarf2_evaluate_loc_desc_full.
10078 (dwarf2_evaluate_loc_desc_full): New parameter subobj_type; rename
10079 byte_offset to subobj_byte_offset. Fix the handling of
10080 DWARF_VALUE_STACK on big-endian targets when coming via an
10081 implicit pointer.
10082 (dwarf2_evaluate_loc_desc): Adjust call to
10083 dwarf2_evaluate_loc_desc_full.
10084 * dwarf2loc.h (dwarf2_fetch_die_type_sect_off): New declaration.
10085 * dwarf2read.c (dwarf2_fetch_die_type_sect_off): New function.
10086
ba14f379
YQ
100872017-03-16 Yao Qi <yao.qi@linaro.org>
10088
10089 * arm-tdep.c (thumb_record_misc): Decode CBNZ, CBZ, REV16,
10090 and REVSH instructions.
10091
b121eeb9
YQ
100922017-03-16 Yao Qi <yao.qi@linaro.org>
10093
10094 * arm-tdep.c [GDB_SELF_TEST]: include "selftests.h".
10095 (arm_record_test): Declare.
10096 (_initialize_arm_tdep) [GDB_SELF_TEST]: call register_self_test.
10097 (thumb_record_ld_st_reg_offset): Rewrite the opcode matching to
10098 align with the manual.
10099 (thumb_record_misc): Adjust the code order to align with the
10100 manual.
10101 (thumb2_record_decode_insn_handler): Fix instruction matching.
10102 (instruction_reader_thumb): New class.
10103 (arm_record_test): New function.
10104
728a7913
YQ
101052017-03-16 Yao Qi <yao.qi@linaro.org>
10106
10107 * arm-tdep.c (abstract_memory_reader): New class.
10108 (instruction_reader): New class.
10109 (extract_arm_insn): Add argument 'reader'. Callers updated.
10110 (decode_insn): Likewise.
10111
34b43320
DE
101122017-03-16 Doug Evans <dje@google.com>
10113
a7c0469f
DE
10114 * guile/scm-lazy-string.c (lazy_string_smob): Clarify use of LENGTH
10115 member. Change type of TYPE member to SCM. All uses updated.
10116 (lsscm_make_lazy_string_smob): Add assert.
10117 (lsscm_make_lazy_string): Flag bad length values.
10118 (lsscm_elt_type): New function.
10119 (gdbscm_lazy_string_to_value): Rewrite to use
10120 lsscm_safe_lazy_string_to_value.
10121 (lsscm_safe_lazy_string_to_value): Fix handling of TYPE_CODE_PTR.
10122 * guile/scm-value.c (gdbscm_value_to_lazy_string): Flag bad length
10123 values. Fix TYPE_CODE_PTR. Handle TYPE_CODE_ARRAY. Handle typedefs
10124 in incoming type.
10125 * guile/guile-internal.h (tyscm_scm_to_type): Declare.
10126 * guile/scm-type.c (tyscm_scm_to_type): New function.
10127
101282017-03-15 Doug Evans <dje@google.com>
10129
34b43320
DE
10130 PR python/17728, python/18439, python/18779
10131 * python/py-lazy-string.c (lazy_string_object): Clarify use of LENGTH
10132 member. Change type of TYPE member to PyObject *. All uses updated.
10133 (stpy_convert_to_value): Fix handling of TYPE_CODE_PTR.
10134 (gdbpy_create_lazy_string_object): Flag bad length values.
10135 Handle TYPE_CODE_ARRAY with possibly different user-provided length.
10136 Handle typedefs in incoming type.
10137 (stpy_lazy_string_elt_type): New function.
10138 (gdbpy_extract_lazy_string): Call it.
10139 * python/py-value.c (valpy_lazy_string): Flag bad length values.
10140 Fix handling of TYPE_CODE_PTR. Handle TYPE_CODE_ARRAY. Handle
10141 typedefs in incoming type.
10142
a3a5fecc
DE
101432017-03-16 Doug Evans <dje@google.com>
10144
10145 * guile/guile-internal.h (tyscm_scm_to_type): Declare.
10146 * guile/scm-type.c (tyscm_scm_to_type): New function.
10147
28f1c605
JW
101482017-03-16 Jiong Wang <jiong.wang@arm.com>
10149
10150 * inf-ptrace.c (inf_ptrace_peek_poke): Change the type to
10151 "ULONGEST" for "skip".
10152
87c336f6
AA
101532017-03-14 Andreas Arnez <arnez@linux.vnet.ibm.com>
10154
10155 PR gdb/21220
10156 * inf-ptrace.c (inf_ptrace_xfer_partial): In "case
10157 TARGET_OBJECT_MEMORY", extract the logic for ptrace peek/poke...
10158 (inf_ptrace_peek_poke): ...here. New function. Now also loop
10159 over ptrace peek/poke until end of buffer or error.
10160
cf81cf60
SM
101612017-03-14 Simon Marchi <simon.marchi@ericsson.com>
10162
10163 * parse.c (length_of_subexp): Make static.
10164 * parser-defs.h (length_of_subexp): Remove.
10165
a379284a
AA
101662017-03-14 Andreas Arnez <arnez@linux.vnet.ibm.com>
10167
10168 * linux-nat.c (linux_proc_xfer_partial): Handle write operations
10169 as well.
10170
8a6200ba
PA
101712017-03-14 Pedro Alves <palves@redhat.com>
10172
10173 * cp-name-parser.y (cp_demangled_name_to_comp): Update comment.
10174 (main): Use std::unique_ptr. Remove calls to
10175 cp_demangled_name_parse_free.
10176
f79ec206
SM
101772017-03-13 Simon Marchi <simon.marchi@polymtl.ca>
10178
10179 * alpha-bsd-nat.c (alphabsd_fetch_inferior_registers,
10180 alphabsd_store_inferior_registers): Use regcache->ptid instead
10181 of inferior_ptid.
10182
edb5fb00
SM
101832017-03-13 Simon Marchi <simon.marchi@polymtl.ca>
10184
10185 * aix-thread.c (aix_thread_fetch_registers,
10186 aix_thread_store_registers): Use regcache->ptid instead of
10187 inferior_ptid.
10188
55119686
SM
101892017-03-13 Simon Marchi <simon.marchi@polymtl.ca>
10190
10191 * aarch64-linux-nat.c (fetch_gregs_from_thread,
10192 store_gregs_to_thread, fetch_fpregs_from_thread,
10193 store_fpregs_to_thread): Use regcache->ptid instead of
10194 inferior_ptid.
10195
6a06fbb7
SM
101962017-03-13 Simon Marchi <simon.marchi@polymtl.ca>
10197
10198 * amd64-linux-nat.c (amd64_linux_fetch_inferior_registers,
10199 amd64_linux_fetch_inferior_registers): Use regcache->ptid
10200 instead of inferior_ptid.
10201
c6386875
SM
102022017-03-13 Simon Marchi <simon.marchi@polymtl.ca>
10203
10204 * target.c (target_fetch_registers, target_store_registers): Add
10205 assert.
10206
ddaaf0fb
SM
102072017-03-13 Simon Marchi <simon.marchi@polymtl.ca>
10208
10209 * regcache.h (regcache_get_ptid): New function.
10210 * regcache.c (regcache_get_ptid): New function.
10211
b9da89d1 102122017-03-13 Mark Wielaard <mark@klomp.org>
10213
10214 * cp-name-parser.y (make_empty): Initialize d_printing to zero.
10215
5f4d1085
KS
102162017-03-10 Keith Seitz <keiths@redhat.com>
10217
10218 PR c++/8218
10219 * c-typeprint.c (cp_type_print_method_args): Skip artificial arguments.
10220
c65d6b55
PA
102212017-03-08 Pedro Alves <palves@redhat.com>
10222
10223 PR gdb/18360
10224 * infrun.c (start_step_over, do_target_resume, resume)
10225 (restart_threads): Assert we're not resuming a thread that is
10226 meant to be stopped.
10227 (infrun_thread_stop_requested_callback): Delete.
10228 (infrun_thread_stop_requested): If the thread is internally
10229 stopped, queue a pending stop event and clear the thread's
10230 inline-frame state.
10231 (handle_stop_requested): New function.
10232 (handle_syscall_event, handle_inferior_event_1): Use
10233 handle_stop_requested.
10234 (handle_stop_requested): New function.
10235 (handle_signal_stop): Set the thread's stop_signal here instead of
10236 at caller.
10237 (finish_step_over): Clear step over info unconditionally.
10238 (handle_signal_stop): If the user had interrupted the event
10239 thread, consider the stop a random signal.
10240 (handle_signal_stop) <signal arrived while stepping over
10241 breakpoint>: Don't restart threads here.
10242 (stop_waiting): Don't clear step-over info here.
10243
15c22686
PA
102442017-03-08 Pedro Alves <palves@redhat.com>
10245
10246 PR 21206
10247 * common/gdb_unlinker.h (unlinker::unlinker): Attribute nonnull
10248 goes to argument 2, not 1.
10249
6e5d74e7
PA
102502017-03-08 Pedro Alves <palves@redhat.com>
10251
10252 PR cli/21218
10253 * top.c (gdb_readline_wrapper): Avoid passing NULL to
10254 display_gdb_prompt.
10255 (command_line_input): Add comment.
10256
9753a2f6
PA
102572017-03-08 Pedro Alves <palves@redhat.com>
10258
10259 PR tui/21216
10260 * tui/tui-file.c (tui_file::write): New.
10261 * tui/tui-file.h (tui_file): Override "write".
10262 * tui/tui-io.c (do_tui_putc, update_start_line): New functions,
10263 factored out from ...
10264 (tui_puts): ... here.
10265 (tui_putc): Use them.
10266 (tui_write): New function.
10267 * tui/tui-io.h (tui_write): Declare.
10268
1672e0d9
SDJ
102692017-03-07 Sergio Durigan Junior <sergiodj@redhat.com>
10270
10271 * Makefile.in (SFILES): Replace "environ.c" with
10272 "common/environ.c".
10273 (HFILES_NO_SRCDIR): Likewise, for "environ.h".
10274 * environ.c: Include "common-defs.h" instead of "defs.h. Moved
10275 to...
10276 * common/environ.c: ... here.
10277 * environ.h: Moved to...
10278 * common/environ.h: ... here.
10279
f7bb4e3a
PB
102802017-03-07 Peter Bergner <bergner@vnet.ibm.com>
10281
10282 * gdbarch.sh (pstring_ptr): New static function.
10283 (gdbarch_disassembler_options): Use it.
10284 (gdbarch_verify_disassembler_options): Print valid_disassembler_options,
10285 not valid_disassembler_option->name.
10286 * gdbarch.c: Regenerate.
10287
e45ced6c
PB
102882017-03-07 Peter Bergner <bergner@vnet.ibm.com>
10289
10290 * config/powerpc/ppc64-linux.mh (MH_CFLAGS): Delete.
10291
5f6fd321
PA
102922017-03-07 Pedro Alves <palves@redhat.com>
10293
10294 * tui/tui-regs.c (tui_restore_gdbout): Don't delete gdb_stdout.
10295
6dbb839a 102962017-03-07 Walfred Tedeschi <walfred.tedeschi@intel.com>
4a612d6f
WT
10297
10298 * i387-tdep.h (i387_reset_bnd_regs): Add function definition.
10299 * i387-tdep.c (i387_reset_bnd_regs): Add function implementation.
10300 * i386-tdep.c (i386_push_dummy_call): Call i387_reset_bnd_regs.
6dbb839a 10301 * amd64-tdep.c (amd64_push_dummy_call): Call i387_reset_bnd_regs.
4a612d6f 10302
d274ecf4
SM
103032017-03-06 Simon Marchi <simon.marchi@ericsson.com>
10304
10305 * xtensa-linux-nat.c (fetch_gregs): Remove const.
10306
df97be55
SM
103072017-03-03 Simon Marchi <simon.marchi@ericsson.com>
10308
10309 * remote.c (remote_add_target_side_commands): Use range-based
10310 for loop.
10311
7d45f3df
YQ
103122017-03-03 Yao Qi <yao.qi@linaro.org>
10313
10314 PR gdb/21165
10315 * ada-valprint.c (ada_val_print_ref): Call value_fetch_lazy if
10316 value is lazy.
10317 * valprint.c (common_val_print): Likewise.
10318
65b48a81
PB
103192017-02-28 Peter Bergner <bergner@vnet.ibm.com>
10320
10321 * NEWS: Mention new set/show disassembler-options commands.
10322 * doc/gdb.texinfo: Document new set/show disassembler-options commands.
10323 * disasm.c: Include "arch-utils.h", "gdbcmd.h" and "safe-ctype.h".
10324 (prospective_options): New static variable.
10325 (gdb_disassembler::gdb_disassembler): Initialize
10326 m_di.disassembler_options.
10327 (gdb_buffered_insn_length_init_dis): Initilize di->disassembler_options.
10328 (get_disassembler_options): New function.
10329 (set_disassembler_options): Likewise.
10330 (set_disassembler_options_sfunc): Likewise.
10331 (show_disassembler_options_sfunc): Likewise.
10332 (disassembler_options_completer): Likewise.
10333 (_initialize_disasm): Likewise.
10334 * disasm.h (get_disassembler_options): New prototype.
10335 (set_disassembler_options): Likewise.
10336 * gdbarch.sh (gdbarch_disassembler_options): New variable.
10337 (gdbarch_verify_disassembler_options): Likewise.
10338 * gdbarch.c: Regenerate.
10339 * gdbarch.h: Likewise.
10340 * arm-tdep.c (num_disassembly_options): Delete.
10341 (set_disassembly_style): Likewise.
10342 (arm_disassembler_options): New static variable.
10343 (set_disassembly_style_sfunc): Convert short style name into long
10344 option name. Call set_disassembler_options.
10345 (show_disassembly_style_sfunc): New function.
10346 (arm_gdbarch_init): Call set_gdbarch_disassembler_options and
10347 set_gdbarch_verify_disassembler_options.
10348 (_initialize_arm_tdep): Delete regnames variable and update callers.
10349 (arm_disassembler_options): Initialize.
10350 (disasm_options): New variable.
10351 (num_disassembly_options): Rename from this...
10352 (num_disassembly_styles): ...to this. Compute by scanning through
10353 disasm_options.
10354 (valid_disassembly_styles): Initialize using disasm_options.
10355 Remove calls to parse_arm_disassembler_option, get_arm_regnames and
10356 set_arm_regname_option.
10357 Pass show_disassembly_style_sfunc to the "disassembler" setshow command.
10358 * rs6000-tdep.c (powerpc_disassembler_options): New static variable.
10359 (rs6000_gdbarch_init): Call set_gdbarch_disassembler_options and
10360 set_gdbarch_verify_disassembler_options.
10361 * s390-tdep.c (s390_disassembler_options): New static variable.
10362 (s390_gdbarch_init):all set_gdbarch_disassembler_options and
10363 set_gdbarch_verify_disassembler_options.
10364
d538e36d
SM
103652017-02-27 Simon Marchi <simon.marchi@ericsson.com>
10366
10367 * remote.c (remote_add_target_side_condition): Remove "struct"
10368 keyword from range-based for loop.
10369
83621223
SM
103702017-02-27 Simon Marchi <simon.marchi@ericsson.com>
10371
10372 * remote.c (remote_add_target_side_condition): Use range-based
10373 for loop. Update comment.
10374
2123df0e
YQ
103752017-02-27 Yao Qi <yao.qi@linaro.org>
10376
10377 * f-typeprint.c (f_print_type): Check "varstring" is empty first.
10378
8e368124
AH
103792017-02-26 Alan Hayward <alan.hayward@arm.com>
10380
10381 * regcache.c (regcache_raw_update): New function.
10382 (regcache_raw_read): Move code to regcache_raw_update.
10383 * regcache.h (regcache_raw_update): New declaration.
10384 * remote.c (remote_prepare_to_store): Call regcache_raw_update.
10385
a49dd8dd
JK
103862017-02-26 Jan Kratochvil <jan.kratochvil@redhat.com>
10387
10388 * dwarf2read.c (create_debug_type_hash_table): Initialize
10389 header.signature and header.type_offset_in_tu.
10390
34e4bae9
PA
103912017-02-24 Pedro Alves <palves@redhat.com>
10392
10393 * symtab.c (make_file_symbol_completion_list_1): Use
10394 add_symtab_completions.
10395
b0e4b369
AH
103962017-02-24 Alan Hayward <alan.hayward@arm.com>
10397
10398 * stack.c (frame_info): Use frame_unwind_register_value to avoid buf.
10399
975c21ab
AH
104002017-02-24 Alan Hayward <alan.hayward@arm.com>
10401
10402 * i386-tdep.c (i386_pseudo_register_read_into_value): Use
10403 I386_MAX_REGISTER_SIZE.
10404 (i386_pseudo_register_write): Likewise.
10405 (i386_process_record): Likewise.
10406 * i387-tdep.c (i387_supply_xsave): Likewise.
10407 * m68k-linux-nat.c (fetch_register): Use M68K_MAX_REGISTER_SIZE.
10408 (store_register): Likewise.
10409
14bc53a8
PA
104102017-02-23 Pedro Alves <palves@redhat.com>
10411
10412 * ada-lang.c: Include "common/function-view.h".
10413 (ada_iterate_over_symbols): Adjust to use function_view as
10414 callback type.
10415 (struct add_partial_datum, ada_complete_symbol_matcher): Delete.
10416 (ada_make_symbol_completion_list): Use a lambda.
10417 (ada_exc_search_name_matches): Delete.
10418 (name_matches_regex): New.
10419 (ada_add_global_exceptions): Use a lambda and name_matches_regex.
10420 * compile/compile-c-support.c: Include "common/function-view.h".
10421 (print_one_macro): Change prototype to accept a ui_file pointer.
10422 (write_macro_definitions): Use a lambda.
10423 * dwarf2read.c: Include "common/function-view.h".
10424 (dw2_map_expand_apply, dw2_map_symtabs_matching_filename)
10425 (dw2_expand_symtabs_matching): Adjust to use function_view as
10426 callback type.
10427 * language.h: Include "common/function-view.h".
10428 (struct language_defn) <la_iterate_over_symbols>: Adjust to use
10429 function_view as callback type.
10430 (LA_ITERATE_OVER_SYMBOLS): Remove DATA parameter.
10431 * linespec.c: Include "common/function-view.h".
10432 (collect_info::add_symbol): New method.
10433 (struct symbol_and_data_callback, iterate_inline_only, struct
10434 symbol_matcher_data, iterate_name_matcher): Delete.
10435 (iterate_over_all_matching_symtabs): Adjust to use function_view
10436 as callback type and lambdas.
10437 (iterate_over_file_blocks): Adjust to use function_view as
10438 callback type.
10439 (decode_compound_collector): Now a class with private fields.
10440 (decode_compound_collector::release_symbols): New method.
10441 (collect_one_symbol): Rename to...
10442 (decode_compound_collector::operator()): ... this and adjust.
10443 (lookup_prefix_sym): decode_compound_collector construction bits
10444 move to decode_compound_collector ctor. Pass the
10445 decode_compound_collector object directly as callback. Remove
10446 cleanups and use decode_compound_collector::release_symbols
10447 instead.
10448 (symtab_collector): Now a class with private fields.
10449 (symtab_collector::release_symtabs): New method.
10450 (add_symtabs_to_list): Rename to...
10451 (symtab_collector::operator()): ... this and adjust.
10452 (collect_symtabs_from_filename): symtab_collector construction
10453 bits move to symtab_collector ctor. Pass the symtab_collector
10454 object directly as callback. Remove cleanups and use
10455 symtab_collector::release_symtabs instead.
10456 (collect_symbols): Delete.
10457 (add_matching_symbols_to_info): Use lambdas.
10458 * macrocmd.c (print_macro_callback): Delete.
10459 (info_macro_command): Use a lambda.
10460 (info_macros_command): Pass print_macro_definition as callable
10461 directly.
10462 (print_one_macro): Remove 'ignore' parameter.
10463 (macro_list_command): Adjust.
10464 * macrotab.c (macro_for_each_data::fn): Now a function_view.
10465 (macro_for_each_data::user_data): Delete field.
10466 (foreach_macro): Adjust to call the function_view.
10467 (macro_for_each): Adjust to use function_view as callback type.
10468 (foreach_macro_in_scope): Adjust to call the function_view.
10469 (macro_for_each_in_scope): Adjust to use function_view as callback
10470 type.
10471 * macrotab.h: Include "common/function-view.h".
10472 (macro_callback_fn): Declare a prototype instead of a pointer.
10473 Remove "user_data" parameter.
10474 (macro_for_each, macro_for_each_in_scope): Adjust to use
10475 function_view as callback type.
10476 * psymtab.c (partial_map_expand_apply)
10477 (psym_map_symtabs_matching_filename, recursively_search_psymtabs):
10478 Adjust to use function_view as callback type and to return bool.
10479 (psym_expand_symtabs_matching): Adjust to use function_view as
10480 callback types.
10481 * symfile-debug.c (debug_qf_map_symtabs_matching_filename): Adjust
10482 to use function_view as callback type and to return bool.
10483 (debug_qf_expand_symtabs_matching): Adjust to use function_view as
10484 callback types.
10485 * symfile.c (expand_symtabs_matching): Adjust to use function_view
10486 as callback types.
10487 * symfile.h: Include "common/function-view.h".
10488 (expand_symtabs_file_matcher_ftype)
10489 (expand_symtabs_symbol_matcher_ftype)
10490 (expand_symtabs_exp_notify_ftype): Remove "data" parameter and
10491 return bool.
10492 (quick_symbol_functions::map_symtabs_matching_filename)
10493 (quick_symbol_functions::expand_symtabs_matching): Adjust to use
10494 function_view as callback type and return bool.
10495 (expand_symtabs_matching): Adjust to use function_view as callback
10496 type.
10497 (maintenance_expand_name_matcher)
10498 (maintenance_expand_file_matcher): Delete.
10499 (maintenance_expand_symtabs): Use lambdas.
10500 * symtab.c (iterate_over_some_symtabs): Adjust to use
10501 function_view as callback types and return bool.
10502 (iterate_over_symtabs): Likewise. Use unique_xmalloc_ptr instead
10503 of a cleanup.
10504 (lookup_symtab_callback): Delete.
10505 (lookup_symtab): Use a lambda.
10506 (iterate_over_symbols): Adjust to use function_view as callback
10507 type.
10508 (struct search_symbols_data, search_symbols_file_matches)
10509 (search_symbols_name_matches): Delete.
10510 (search_symbols): Use a pair of lambdas.
10511 (struct add_name_data, add_macro_name, symbol_completion_matcher)
10512 (symtab_expansion_callback): Delete.
10513 (default_make_symbol_completion_list_break_on_1): Use lambdas.
10514 * symtab.h: Include "common/function-view.h".
10515 (iterate_over_some_symtabs): Adjust to use function_view as
10516 callback type and return bool.
10517 (iterate_over_symtabs): Adjust to use function_view as callback
10518 type.
10519 (symbol_found_callback_ftype): Remove 'data' parameter and return
10520 bool.
10521 (iterate_over_symbols): Adjust to use function_view as callback
10522 type.
10523
07e253aa
PA
105242017-02-23 Pedro Alves <palves@redhat.com>
10525
10526 * Makefile.in (SUBDIR_UNITTESTS_SRCS, SUBDIR_UNITTESTS_OBS): New.
10527 (%.o) <unittests/%.c>: New pattern.
10528 * configure.ac ($development): Add $(SUBDIR_UNITTESTS_OBS) to
10529 CONFIG_OBS, and $(SUBDIR_UNITTESTS_SRCS) to CONFIG_SRCS.
10530 * common/function-view.h: New file.
10531 * unittests/function-view-selftests.c: New file.
10532 * configure: Regenerate.
10533
8eaf5320
SM
105342017-02-23 Simon Marchi <simon.marchi@ericsson.com>
10535
10536 * bsd-uthread.c (bsd_uthread_thread_alive): Use ptid instead of
10537 inferior_ptid.
10538 * go32-nat.c (go32_thread_alive): Likewise.
10539
38768751
YQ
105402017-02-23 Yao Qi <yao.qi@linaro.org>
10541
10542 * varobj-iter.h (varobj_iter_delete): Call xfree instead of
10543 delete.
10544
0a8beaba
YQ
105452017-02-23 Yao Qi <yao.qi@linaro.org>
10546
10547 * varobj.c (varobj_clear_saved_item): Use delete instead of
10548 xfree.
10549 (update_dynamic_varobj_children): Likewise.
10550
58fdfd2c
JK
105512017-02-21 Jan Kratochvil <jan.kratochvil@redhat.com>
10552
10553 * dwarf2read.c (dwarf2_record_block_ranges): Add forgotten BASEADDR.
10554
1b90b139
SM
105552017-02-21 Simon Marchi <simon.marchi@ericsson.com>
10556
10557 * common/enum-flags.h (enum_flags::enum_flags): Initialize
10558 m_enum_value to 0 in default constructor.
10559
2039d74e
EBM
105602017-02-21 Edjunior Barbosa Machado <emachado@linux.vnet.ibm.com>
10561
10562 * rs6000-tdep.c (LOAD_AND_RESERVE_MASK): Rename from LWARX_MASK.
10563 (STORE_CONDITIONAL_MASK): Rename from STWCX_MASK.
10564 (LBARX_INSTRUCTION, LHARX_INSTRUCTION, LQARX_INSTRUCTION,
10565 STBCX_INSTRUCTION, STHCX_INSTRUCTION, STQCX_INSTRUCTION): New defines.
10566 (IS_LOAD_AND_RESERVE_INSN, IS_STORE_CONDITIONAL_INSN): New macros.
10567 (ppc_displaced_step_copy_insn): Use IS_LOAD_AND_RESERVE_INSN.
10568 (ppc_deal_with_atomic_sequence): Use IS_LOAD_AND_RESERVE_INSN and
10569 IS_STORE_CONDITIONAL_INSN.
10570
7814882a
JK
105712017-02-21 Jan Kratochvil <jan.kratochvil@redhat.com>
10572
10573 * dwarf2_rnglists_process: Initialize range_beginning and range_end.
10574
0ae60b63
JK
105752017-02-20 Jan Kratochvil <jan.kratochvil@redhat.com>
10576
10577 * NEWS (Changes since GDB 7.12): Add DWARF-5.
10578
0224619f
JK
105792017-02-20 Jan Kratochvil <jan.kratochvil@redhat.com>
10580
10581 * dwarf2read.c (skip_one_die, read_attribute_value)
10582 (dwarf2_const_value_attr, dump_die_shallow)
10583 (dwarf2_get_attr_constant_value, dwarf2_fetch_constant_bytes)
10584 (skip_form_bytes, attr_form_is_constant): Handle DW_FORM_data16.
10585
0af92d60
JK
105862017-02-20 Jan Kratochvil <jan.kratochvil@redhat.com>
10587
10588 * dwarf2read.c (read_file_scope): Rename DW_MACRO_GNU_*.
10589 (dwarf_parse_macro_header): Accept DWARF version 5.
10590 (dwarf_decode_macro_bytes, dwarf_decode_macros): Rename DW_MACRO_GNU_*.
10591
216f72a1
JK
105922017-02-20 Jan Kratochvil <jan.kratochvil@redhat.com>
10593
10594 * block.c (call_site_for_pc): Rename DW_OP_GNU_*, DW_TAG_GNU_* and
10595 DW_AT_GNU_*.
10596 * common/common-exceptions.h (enum errors): Likewise.
10597 * dwarf2-frame.c (class dwarf_expr_executor): Likewise.
10598 * dwarf2expr.c (dwarf_block_to_dwarf_reg)
10599 (dwarf_expr_context::execute_stack_op): Likewise.
10600 * dwarf2expr.h (struct dwarf_expr_context, struct dwarf_expr_piece):
10601 Likewise.
10602 * dwarf2loc.c (dwarf_evaluate_loc_desc::get_base_type)
10603 (dwarf_evaluate_loc_desc::push_dwarf_reg_entry_value)
10604 (show_entry_values_debug, call_site_to_target_addr)
10605 (func_addr_to_tail_call_list, func_verify_no_selftailcall)
10606 (dwarf_expr_reg_to_entry_parameter, dwarf_entry_parameter_to_value)
10607 (entry_data_value_free_closure, value_of_dwarf_reg_entry)
10608 (value_of_dwarf_block_entry, indirect_pieced_value)
10609 (symbol_needs_eval_context::push_dwarf_reg_entry_value):
10610 (disassemble_dwarf_expression): Likewise.
10611 * dwarf2read.c (process_die, inherit_abstract_dies)
10612 (read_call_site_scope): Likewise.
10613 * gdbtypes.h (struct func_type, struct call_site_parameter)
10614 (struct call_site): Likewise.
10615 * stack.c (read_frame_arg): Likewise.
10616 * std-operator.def (OP_VAR_ENTRY_VALUE): Likewise.
10617
43988095
JK
106182017-02-20 Jan Kratochvil <jan.kratochvil@redhat.com>
10619
10620 * defs.h (read_unsigned_leb128): New declaration.
10621 * dwarf2loc.c (decode_debug_loclists_addresses): New function.
10622 (decode_debug_loc_dwo_addresses): Update DEBUG_LOC_* to DW_LLE_*.
10623 (dwarf2_find_location_expression): Call also
10624 decode_debug_loclists_addresses. Handle DWARF-5 ULEB128 length.
10625 * dwarf2loc.h (dwarf2_version): New declaration.
10626 * dwarf2read.c (struct dwarf2_per_objfile): Add loclists, line_str,
10627 rnglists.
10628 (dwarf2_elf_names): Add .debug_loclists, .debug_line_str,
10629 .debug_rnglists.
10630 (struct dwop_section_names): Add loclists_dwo.
10631 (dwop_section_names): Add .debug_loclists.dwo.
10632 (struct comp_unit_head): Add unit_type, signature, type_offset_in_tu.
10633 (struct dwarf2_per_cu_data): Add dwarf_version.
10634 (struct dwo_sections): Add loclists.
10635 (struct attr_abbrev): Add implicit_const.
10636 (read_indirect_line_string): New declaration.
10637 (read_unsigned_leb128): Delete declaration.
10638 (rcuh_kind): New definition.
10639 (read_and_check_comp_unit_head): Change parameter
10640 is_debug_types_section to section_kind.
10641 (dwarf2_locate_sections): Handle loclists, line_str and rnglists.
10642 (read_comp_unit_head): Change parameter abfd to section, add parameter
10643 section_kind. Handle DWARF-5.
10644 (error_check_comp_unit_head): Accept also DWARF version 5.
10645 (read_and_check_comp_unit_head): Change parameter
10646 is_debug_types_section to section_kind.
10647 (read_and_check_type_unit_head): Delete function.
10648 (read_abbrev_offset): Handle DWARF-5.
10649 (create_debug_type_hash_table): Add parameter section_kind. Process
10650 only DW_UT_type. Use signature and type_offset_in_tu from struct
10651 comp_unit_head.
10652 (create_debug_types_hash_table): Update create_debug_type_hash_table
10653 caller.
10654 (create_all_type_units): Call create_debug_type_hash_table.
10655 (read_cutu_die_from_dwo, init_cutu_and_read_dies): Change
10656 read_and_check_type_unit_head caller to read_and_check_comp_unit_head
10657 caller.
10658 (skip_one_die): Handle DW_FORM_implicit_const.
10659 (dwarf2_rnglists_process): New function.
10660 (dwarf2_ranges_process): Call dwarf2_rnglists_process for DWARF-5.
10661 (abbrev_table_read_table): Handle DW_FORM_implicit_const.
10662 (read_attribute_value): Handle DW_FORM_implicit_const,
10663 DW_FORM_line_strp.
10664 (read_attribute): Handle DW_FORM_implicit_const.
10665 (read_indirect_string_at_offset_from): New function from
10666 read_indirect_string_at_offset.
10667 (read_indirect_string_at_offset): Call
10668 read_indirect_string_at_offset_from.
10669 (read_indirect_line_string_at_offset): New function.
10670 (read_indirect_string): New function comment.
10671 (read_indirect_line_string): New function.
10672 (read_unsigned_leb128): Make it global.
10673 (dwarf2_string_attr): Handle DWARF-5.
10674 (add_include_dir_stub, read_formatted_entries): New functions.
10675 (dwarf_decode_line_header, dump_die_shallow, cu_debug_loc_section):
10676 Handle DWARF-5.
10677 (per_cu_header_read_in): Update read_comp_unit_head caller.
10678 (dwarf2_version): New function.
10679 * symfile.h (struct dwarf2_debug_sections): Add loclists, line_str and
10680 rnglists.
10681 * xcoffread.c (dwarf2_xcoff_names): Update struct dwarf2_debug_sections
10682 fields.
10683
22d2f3ab
JK
106842017-02-20 Jan Kratochvil <jan.kratochvil@redhat.com>
10685
10686 * dwarf2read.c (abbrev_table_read_table): Read the data only once.
10687
5f46c5a5
JK
106882017-02-20 Jan Kratochvil <jan.kratochvil@redhat.com>
10689
10690 * dwarf2read.c (dwarf2_ranges_process): New function from
10691 dwarf2_ranges_read.
10692 (dwarf2_ranges_read, dwarf2_record_block_ranges): Use
10693 dwarf2_ranges_process.
10694
78d4d2c5
JK
106952017-02-20 Jan Kratochvil <jan.kratochvil@redhat.com>
10696
10697 * dwarf2read.c (create_debug_type_hash_table): New function from
10698 create_debug_types_hash_table.
10699 (create_debug_types_hash_table): Call create_debug_type_hash_table.
10700 (create_all_type_units, open_and_init_dwo_file): Update
10701 create_debug_types_hash_table callers.
10702
1b076f25
SDJ
107032017-02-20 Sergio Durigan Junior <sergiodj@redhat.com>
10704
10705 PR gdb/16188
10706 * fork-child.c (trace_start_error): Fix thinko. va_end should
10707 refer to 'ap', not 'args'.
10708
0db8980c
SDJ
107092017-02-20 Sergio Durigan Junior <sergiodj@redhat.com>
10710 Pedro Alves <palves@redhat.com>
10711
10712 PR gdb/16188
10713 * darwin-nat.c (darwin_ptrace_me): Check if calls to system
10714 calls succeeded.
10715 * fork-child.c (trace_start_error): New function.
10716 (trace_start_error_with_name): Likewise.
10717 * gnu-nat.c (gnu_ptrace_me): Check if call to PTRACE succeeded.
10718 * inf-ptrace.c (inf_ptrace_me): Likewise.
10719 * inferior.h (trace_start_error): New prototype.
10720 (trace_start_error_with_name): Likewise.
10721
99e8a4f9
SDJ
107222017-02-15 Sergio Durigan Junior <sergiodj@redhat.com>
10723
10724 PR gdb/21164
10725 * psymtab.c (maintenance_print_psymbols): Verify if 'argv' is not
10726 NULL before using it.
10727 * symmisc.c (maintenance_print_symbols): Likewise.
10728 (maintenance_print_msymbols): Likewise.
10729
4e746bb6
TW
107302017-02-14 Tim Wiederhake <tim.wiederhake@intel.com>
10731
10732 * NEWS: Add record Python bindings entry.
10733
107342017-02-14 Tim Wiederhake <tim.wiederhake@intel.com>
10735
10736 * Makefile.in (SUBDIR_PYTHON_OBS): Add py-record-btrace.o,
10737 py-record-full.o.
10738 (SUBDIR_PYTHON_SRCS): Add py-record-btrace.c, py-record-full.c.
10739 * python/py-record-btrace.c, python/py-record-btrace.h,
10740 python/py-record-full.c, python/py-record-full.h: New file.
10741 * python/py-record.c: Add include for py-record-btrace.h and
10742 py-record-full.h.
10743 (recpy_method, recpy_format, recpy_goto, recpy_replay_position,
10744 recpy_instruction_history, recpy_function_call_history, recpy_begin,
10745 recpy_end): Use functions from py-record-btrace.c and py-record-full.c.
10746 * python/python-internal.h (PyInt_FromSsize_t, PyInt_AsSsize_t):
10747 New definition.
10748 (gdbpy_initialize_btrace): New export.
10749 * python/python.c (_initialize_python): Add gdbpy_initialize_btrace.
10750
107512017-02-14 Tim Wiederhake <tim.wiederhake@intel.com>
10752
10753 * Makefile.in (SUBDIR_PYTHON_OBS): Add python/py-record.o.
10754 (SUBDIR_PYTHON_SRCS): Add python/py-record.c.
10755 * python/py-record.c: New file.
10756 * python/python-internal.h (gdbpy_start_recording,
10757 gdbpy_current_recording, gdpy_stop_recording,
10758 gdbpy_initialize_record): New export.
10759 * python/python.c (_initialize_python): Add gdbpy_initialize_record.
10760 (python_GdbMethods): Add gdbpy_start_recording,
10761 gdbpy_current_recording and gdbpy_stop_recording.
10762
107632017-02-14 Tim Wiederhake <tim.wiederhake@intel.com>
10764
10765 * record-btrace.c (record_btrace_record_method): New function.
10766 (init_record_btrace_ops): Initialize to_record_method.
10767 * record-full.c (record_full_record_method): New function.
10768 (init_record_full_ops, init_record_full_core_ops): Add
10769 record_full_record_method.
10770 * record.h (enum record_method): New enum.
10771 * target-debug.h (target_debug_print_enum_record_method: New define.
10772 * target-delegates.c: Regenerate.
10773 * target.c (target_record_method): New function.
10774 * target.h: Include record.h.
10775 (struct target_ops) <to_record_method>: New field.
10776 (target_record_method): New export.
10777
107782017-02-14 Tim Wiederhake <tim.wiederhake@intel.com>
10779
10780 * record.h (record_start, record_stop): New export.
10781 * record.c (record_start, record_stop): New function.
10782
107832017-02-14 Tim Wiederhake <tim.wiederhake@intel.com>
10784
10785 * btrace.c (btrace_fetch): Copy function call segments pointer
10786 into a vector.
10787 (btrace_clear): Clear the vector.
10788 (btrace_find_insn_by_number): Use binary search to find the correct
10789 function call segment.
10790 * btrace.h (brace_fun_p): New typedef.
10791 (struct btrace_thread_info) <functions>: New field.
10792
107932017-02-14 Tim Wiederhake <tim.wiederhake@intel.com>
10794
10795 * record-btrace.c (btrace_ui_out_decode_error): Move most of it ...
10796 * btrace.c (btrace_decode_error): ... here. New function.
10797 * btrace.h (btrace_decode_error): New export.
10798
107992017-02-14 Tim Wiederhake <tim.wiederhake@intel.com>
10800
10801 * btrace.c (ftrace_call_num_insn, btrace_insn_get_error): New function.
10802 (ftrace_new_function, btrace_insn_number, btrace_insn_cmp,
10803 btrace_find_insn_by_number): Remove special case for gaps.
10804 * btrace.h (btrace_insn_get_error): New export.
10805 (btrace_insn_number, btrace_find_insn_by_number): Adjust comment.
10806 * record-btrace.c (btrace_insn_history): Print number for gaps.
10807 (record_btrace_info, record_btrace_goto): Handle gaps.
10808
3f77c769
TT
108092017-02-14 Tom Tromey <tom@tromey.com>
10810
10811 PR python/13598:
10812 * python/python.c (gdbpy_before_prompt_hook): Emit before_prompt
10813 event.
10814 * python/py-evts.c (gdbpy_initialize_py_events): Add
10815 before_prompt registry.
10816 * python/py-events.h (events_object) <before_prompt>: New field.
10817
4c2c7ac6
MM
108182017-02-14 Markus Metzger <markus.t.metzger@intel.com>
10819
10820 * btrace.c (ftrace_new_switch): Preserve up link and flags.
10821
5cf30ebf
LM
108222017-02-13 Luis Machado <lgustavo@codesourcery.com>
10823
10824 * symfile (_initialize_symfile): Add usage text to the load command's
10825 help text.
10826
26a06916
SM
108272017-02-10 Simon Marchi <simon.marchi@ericsson.com>
10828
10829 * utils.c (defaulted_query): Don't query on secondary UIs.
10830
0b145e37
TT
108312017-02-10 Tom Tromey <tom@tromey.com>
10832
10833 * rust-lang.c (rust_get_disr_info): Remove unused variable.
10834
2d8365c4
TT
108352017-02-10 Tom Tromey <tom@tromey.com>
10836
10837 * python/py-value.c (valpy_richcompare_throw): Remove unnecessary
10838 "cleanup" local.
10839 * python/py-type.c (typy_legacy_template_argument): Remove
10840 unnecessary "cleanup" local.
10841
2bb8f231
TT
108422017-02-10 Tom Tromey <tom@tromey.com>
10843
10844 * python/python.c (do_start_initialization): New function, from
10845 _initialize_python.
10846 (_initialize_python): Call do_start_initialization.
10847 * python/py-linetable.c (ltpy_iternext): Use explicit returns, not
10848 goto.
10849
1bdfaf42
TT
108502017-02-10 Tom Tromey <tom@tromey.com>
10851
10852 * python/py-prettyprint.c (pretty_print_one_value): Use
10853 gdbpy_ref.
10854
88b6faea
TT
108552017-02-10 Tom Tromey <tom@tromey.com>
10856
10857 * python/py-cmd.c (cmdpy_destroyer): Use gdbpy_ref.
10858 * python/py-breakpoint.c (gdbpy_breakpoint_deleted): Use
10859 gdbpy_ref.
10860 * python/py-type.c (field_new): Use gdbpy_ref.
10861 * python/py-symtab.c (symtab_and_line_to_sal_object): Use
10862 gdbpy_ref.
10863 * python/py-progspace.c (pspy_new): Use gdbpy_ref.
10864 (py_free_pspace): Likewise.
10865 (pspace_to_pspace_object): Likewise.
10866 * python/py-objfile.c (objfpy_new): Use gdbpy_ref.
10867 (py_free_objfile): Likewise.
10868 (objfile_to_objfile_object): Likewise.
10869 * python/py-inferior.c (delete_thread_object): Use
10870 gdbpy_ref.
10871 (infpy_read_memory): Likewise.
10872 (py_free_inferior): Likewise.
10873 * python/py-evtregistry.c (create_eventregistry_object): Use
10874 gdbpy_ref.
10875 * python/py-event.c (create_event_object): Use gdbpy_ref.
10876
7780f186
TT
108772017-02-10 Tom Tromey <tom@tromey.com>
10878
10879 * python/py-ref.h (gdbpy_ref_policy): Now a template.
10880 (gdbpy_ref): Now a template; allow subclasses of PyObject to be
10881 used.
10882 * python/py-arch.c, python/py-bpevent.c, python/py-breakpoint.c,
10883 python/py-cmd.c, python/py-continueevent.c, python/py-event.c,
10884 python/py-exitedevent.c, python/py-finishbreakpoint.c,
10885 python/py-framefilter.c, python/py-function.c,
10886 python/py-inferior.c, python/py-infevents.c,
10887 python/py-linetable.c, python/py-newobjfileevent.c,
10888 python/py-param.c, python/py-prettyprint.c, python/py-ref.h,
10889 python/py-signalevent.c, python/py-stopevent.c,
10890 python/py-symbol.c, python/py-threadevent.c, python/py-type.c,
10891 python/py-unwind.c, python/py-utils.c, python/py-value.c,
10892 python/py-varobj.c, python/py-xmethods.c, python/python.c,
10893 varobj.c: Change gdbpy_ref to gdbpy_ref<>.
10894
d4b0bb18
TT
108952017-02-10 Tom Tromey <tom@tromey.com>
10896
10897 * ui-out.h (ui_out_emit_type): New class.
10898 (ui_out_emit_tuple, ui_out_emit_list): New typedefs.
10899 * python/py-framefilter.c (py_print_single_arg): Use gdb::optional
10900 and ui_out_emit_tuple.
10901 (enumerate_locals): Likewise.
10902 (py_mi_print_variables, py_print_locals, py_print_args): Use
10903 ui_out_emit_list.
10904 (py_print_frame): Use gdb::optional, ui_out_emit_tuple,
10905 ui_out_emit_list.
10906 * common/gdb_optional.h: New file.
10907
f67f945c
MG
109082017-02-10 Martin Galvan <martingalvan@sourceware.org>
10909
10910 * MAINTAINERS (Write After Approval): Update my e-mail address.
10911
18da0c51
MG
109122017-02-10 Martin Galvan <martingalvan@sourceware.org>
10913
10914 PR gdb/21122
10915 * breakpoint.c (_initialize_breakpoint): Update the help description
10916 of the 'commands' command to indicate that it takes a list argument.
10917
62c14536
SM
109182017-02-09 Simon Marchi <simon.marchi@ericsson.com>
10919
10920 * interps.c (current_interp_set_logging): Remove "return".
10921
ff6fa247
GB
109222017-02-09 Gary Benson <gbenson@redhat.com>
10923
10924 * symtab.c (add_symtab_completions): Prevent NULL pointer
10925 dereference.
10926
a474bd8e
PA
109272017-02-08 Pedro Alves <palves@redhat.com>
10928
10929 * interps.c (interp::interp): Remove reference to quiet_p.
10930 (interp_set): Make static. Remove dead "Switching to" output
10931 code.
10932 (interp_quiet_p, interp_set_quiet): Delete.
10933 (interpreter_exec_cmd): Don't set the interpreter quiet.
10934 * interps.h (interp_quiet_p): Make static.
10935 (class interp) <quiet_p>: Remove field
10936
3d7b173c
JG
109372017-02-08 Jerome Guitton <guitton@adacore.com>
10938
604c4576
JG
10939 * cli/cli-decode.c (find_command_name_length): Make it extern.
10940 * cli/cli-decode.h (find_command_name_length): Declare.
10941 * cli/cli-script.c (command_name_equals, line_first_arg):
10942 New functions.
10943 (process_next_line): Use cli-decode to parse command names.
10944 (build_command_line): Make args a constant pointer.
10945
109462017-02-08 Jerome Guitton <guitton@adacore.com>
6dbb839a 10947
3d7b173c
JG
10948 * cli-decode.c (lookup_cmd_1, lookup_cmd_composition):
10949 Remove case-insensitive search.
10950
1291063d
JM
109512017-02-07 Jose E. Marchesi <jose.marchesi@oracle.com>
10952
10953 * sparc-tdep.c (sparc32_gdbarch_init): Do not place a + operator
10954 at the end of the line. Avoids an ARI warning.
10955
20b477a7
LM
109562017-02-06 Luis Machado <lgustavo@codesourcery.com>
10957
10958 * NEWS: Mention support for record/replay of Intel 64 rdrand and
10959 rdseed instructions.
10960 i386-tdep.c (i386_process_record): Handle Intel 64 rdrand and rseed.
10961
3f7b46f2
IR
109622017-02-06 Ivo Raisr <ivo.raisr@oracle.com>
10963
10964 PR tdep/20936
10965 Provide and use sparc32 and sparc64 target description XML files.
10966 * features/sparc/sparc32-cp0.xml, features/sparc/sparc32-cpu.xml,
10967 features/sparc/sparc32-fpu.xml: New files for sparc 32-bit.
10968 * features/sparc/sparc64-cp0.xml, features/sparc/sparc64-cpu.xml,
10969 features/sparc/sparc64-fpu.xml: New files for sparc 64-bit.
10970 * features/sparc/sparc32-solaris.xml: New file.
10971 * features/sparc/sparc64-solaris.xml: New file.
10972 * features/sparc/sparc32-solaris.c: Generated.
10973 * features/sparc/sparc64-solaris.c: Generated.
10974 * sparc-tdep.h: Account for differences in target descriptions.
10975 * sparc-tdep.c (sparc32_register_name): Use target provided registers.
10976 (sparc32_register_type): Use target provided registers.
10977 (validate_tdesc_registers): New function.
10978 (sparc32_gdbarch_init): Use tdesc_has_registers.
10979 Set pseudoregister functions.
10980 * sparc64-tdep.c (sparc64_register_name): Use target provided registers.
10981 (sparc64_register_type): Use target provided registers.
10982 (sparc64_init_abi): Set pseudoregister functions.
10983
f0fd41c1
TT
109842017-02-03 Tom Tromey <tom@tromey.com>
10985
10986 PR rust/21097:
10987 * rust-lang.c (rust_print_type) <TYPE_CODE_UNION>: Handle enums
10988 with a single member.
10989
d6f9b0fb
PA
109902017-02-03 Pedro Alves <palves@redhat.com>
10991
10992 * cli/cli-interp.c (cli_interp_base::cli_interp_base)
10993 (cli_interp_base::~cli_interp_base): New.
10994 (cli_interp): New struct.
10995 (as_cli_interp): Cast the interp itself to cli_interp.
10996 (cli_interpreter_pre_command_loop): Rename to ...
10997 (cli_interp_base::pre_command_loop): ... this. Remove 'self'
10998 parameter.
10999 (cli_interpreter_init): Rename to ...
11000 (cli_interp::init): ... this. Remove 'self' parameter. Use
11001 boolean. Make extern.
11002 (cli_interpreter_resume): Rename to ...
11003 (cli_interp::resume): ... this. Remove 'data' parameter. Make
11004 extern.
11005 (cli_interpreter_suspend): Rename to ...
11006 (cli_interp::suspend): ... this. Remove 'data' parameter. Make
11007 extern.
11008 (cli_interpreter_exec): Rename to ...
11009 (cli_interp::exec): ... this. Remove 'data' parameter. Make
11010 extern.
11011 (cli_interpreter_supports_command_editing): Rename to ...
11012 (cli_interp_base::supports_command_editing): ... this. Remove
11013 'interp' parameter. Make extern.
11014 (cli_ui_out): Rename to ...
11015 (cli_interp::interp_ui_out): ... this. Remove 'interp' parameter.
11016 Make extern.
11017 (cli_set_logging): Rename to ...
11018 (cli_interp_base::set_logging): ... this. Remove 'interp'
11019 parameter. Make extern.
11020 (cli_interp_procs): Delete.
11021 (cli_interp_factory): Adjust to use "new".
11022 * cli/cli-interp.h: Include "interps.h".
11023 (struct cli_interp_base): New struct.
11024 * interps.c (struct interp): Delete. Fields moved to interps.h.
11025 (interp_new): Delete.
11026 (interp::interp, interp::~interp): New.
11027 (interp_set): Use bool, and return void. Assume the interpreter
11028 has suspend, init and resume methods, and that the all return
11029 void.
11030 (set_top_level_interpreter): interp_set returns void.
11031 (interp_ui_out): Adapt.
11032 (current_interp_set_logging): Adapt.
11033 (interp_data): Delete.
11034 (interp_pre_command_loop, interp_supports_command_editing): Adapt.
11035 (interp_exec): Adapt.
11036 (top_level_interpreter_data): Delete.
11037 * interps.h (interp_init_ftype, interp_resume_ftype)
11038 (interp_suspend_ftype, interp_exec_ftype)
11039 (interp_pre_command_loop_ftype, interp_ui_out_ftype): Delete.
11040 (class interp): New.
11041 (interp_new): Delete.
11042 (interp_set): Now returns void. Use bool.
11043 (interp_data, top_level_interpreter_data): Delete.
11044 * mi/mi-common.h: Include interps.h.
11045 (class mi_interp): Inherit from interp. Define a ctor. Declare
11046 init, resume, suspect, exec, interp_ui_out, set_logging and
11047 pre_command_loop methods.
11048 * mi/mi-interp.c (as_mi_interp): Cast the interp itself.
11049 (mi_interpreter_init): Rename to ...
11050 (mi_interp::init): ... this. Remove the 'interp' parameter, use
11051 bool, return void and make extern. Adjust.
11052 (mi_interpreter_resume): ... Rename to ...
11053 (mi_interp::resume): ... this. Remove the 'data' parameter,
11054 return void and make extern. Adjust.
11055 (mi_interpreter_suspend): ... Rename to ...
11056 (mi_interp::suspend): ... this. Remove the 'data' parameter,
11057 return void and make extern. Adjust.
11058 (mi_interpreter_exec): ... Rename to ...
11059 (mi_interp::exec): ... this. Remove the 'data' parameter and make
11060 extern. Adjust.
11061 (mi_interpreter_pre_command_loop): ... Rename to ...
11062 (mi_interp::pre_command_loop): ... this. Remove the 'self'
11063 parameter and make extern.
11064 (mi_on_normal_stop_1): Adjust.
11065 (mi_ui_out): Rename to ...
11066 (mi_interp::interp_ui_out): ... this. Remove the 'interp'
11067 parameter and make extern. Adjust.
11068 (mi_set_logging): Rename to ...
11069 (mi_interp::set_logging): ... this. Remove the 'interp'
11070 parameter and make extern. Adjust.
11071 (mi_interp_procs): Delete.
11072 (mi_interp_factory): Adjust to use 'new'.
11073 * mi/mi-main.c (mi_cmd_gdb_exit, captured_mi_execute_command)
11074 (mi_print_exception, mi_execute_command, mi_load_progress):
11075 Adjust.
11076 * tui/tui-interp.c (tui_interp): New class.
11077 (as_tui_interp): Return a tui_interp pointer.
11078 (tui_on_normal_stop, tui_on_signal_received)
11079 (tui_on_end_stepping_range, tui_on_signal_exited, tui_on_exited)
11080 (tui_on_no_history, tui_on_user_selected_context_changed): Adjust
11081 to use interp::interp_ui_out.
11082 (tui_init): Rename to ...
11083 (tui_interp::init): ... this. Remove the 'self' parameter, use
11084 bool, return void and make extern. Adjust.
11085 (tui_resume): Rename to ...
11086 (tui_interp::resume): ... this. Remove the 'data' parameter,
11087 return void and make extern. Adjust.
11088 (tui_suspend): Rename to ...
11089 (tui_interp::suspend): ... this. Remove the 'data' parameter,
11090 return void and make extern. Adjust.
11091 (tui_ui_out): Rename to ...
11092 (tui_interp::interp_ui_out): ... this. Remove the 'self'
11093 parameter, and make extern. Adjust.
11094 (tui_exec): Rename to ...
11095 (tui_interp::exec): ... this. Remove the 'data' parameter and
11096 make extern.
11097 (tui_interp_procs): Delete.
11098 (tui_interp_factory): Use "new".
11099
65c40c95
TT
111002017-02-02 Tom Tromey <tom@tromey.com>
11101
11102 * rust-exp.y (ends_raw_string, space_then_number)
11103 (rust_identifier_start_p): Return bool.
11104 * rust-lang.c (rust_tuple_type_p, rust_underscore_fields)
11105 (rust_tuple_struct_type_p, rust_tuple_variant_type_p)
11106 (rust_slice_type_p, rust_range_type_p, rust_u8_type_p)
11107 (rust_chartype_p): Return bool.
11108 (val_print_struct, rust_print_struct_def, rust_print_type):
11109 Update.
11110 * rust-lang.h (rust_tuple_type_p, rust_tuple_struct_type_p):
11111 Return bool.
11112
b50f188d
TT
111132017-02-02 Tom Tromey <tom@tromey.com>
11114
11115 * rust-lang.c: Reindent.
11116
03c85b11
TT
111172017-02-02 Tom Tromey <tom@tromey.com>
11118
11119 * rust-lang.h (rust_crate_for_block): Update.
11120 * rust-lang.c (rust_crate_for_block): Return std::string.
11121 (rust_get_disr_info): Use std:;string, not
11122 gdb::unique_xmalloc_ptr.
11123 * rust-exp.y (crate_name): Update.
11124
9b6da501
PA
111252017-02-02 Pedro Alves <palves@redhat.com>
11126
11127 * disasm-selftests.c (print_one_insn_test): Move the "verbose"
11128 field out of gdb_disassembler_test and make it static.
11129
ec4cb20b
PA
111302017-02-02 Pedro Alves <palves@redhat.com>
11131
11132 * mi/mi-common.h (struct mi_interp): Delete the mi2_interp,
11133 mi1_interp and mi_interp fields.
11134
5be5dbf0
PA
111352017-02-02 Pedro Alves <palves@redhat.com>
11136
616268b6
PA
11137 * cli/cli-interp.c (struct saved_output_files, saved_output):
11138 Moved from cli/cli-logging.c.
11139 (cli_set_logging): New function.
11140 (cli_interp_procs): Install cli_set_logging.
11141 * cli/cli-interp.h (make_logging_output, cli_set_logging):
11142 Declare.
11143 * cli/cli-logging.c (struct saved_output_files, saved_output):
11144 Moved to cli/cli-interp.c.
11145 (pop_output_files): Don't save outputs here.
11146 (make_logging_output): New function.
11147 (handle_redirections): Don't build tee nor save previous outputs
11148 here.
11149 * interps.c (current_interp_set_logging): Change prototype.
11150 Assume there's always a set_logging_proc method installed.
11151 * interps.h (interp_set_logging_ftype): Change prototype.
11152 (current_interp_set_logging): Change prototype and adjust comment.
11153 * mi/mi-interp.c (mi_set_logging): Change protototype. Adjust to
11154 use make_logging_output.
11155 * tui/tui-interp.c (tui_interp_procs): Install cli_set_logging.
111562017-02-02 Pedro Alves <palves@redhat.com>
11157
5be5dbf0
PA
11158 * cli/cli-logging.c (maybe_warn_already_logging): New factored out
11159 from ...
11160 (set_logging_overwrite): ... here.
11161 (logging_no_redirect_file): Delete.
11162 (set_logging_redirect): Don't handle redirection on the fly.
11163 Instead warn that "logging off" / "logging on" is necessary.
11164 (pop_output_files): Delete references to logging_no_redirect_file.
11165 (show_logging_command): Always speak in terms of what will happen
11166 once logging is reenabled.
11167
c99cc448
PA
111682017-02-02 Pedro Alves <palves@redhat.com>
11169
11170 * disasm.h (gdb_pretty_print_disassembler): Tweak intro comment.
11171
8b172ce7
PA
111722017-02-02 Pedro Alves <palves@redhat.com>
11173
11174 * disasm.c (gdb_pretty_print_insn): Rename to ...
11175 (gdb_pretty_print_disassembler::pretty_print_insn): ... this.
11176 Remove gdbarch parameter. Adapt to clear the object's buffers
11177 instead of allocating new buffers, and to print using the object's
11178 gdb_disassembler instead of calling gdb_print_insn.
11179 (dump_insns): Use gdb_pretty_print_disassembler.
11180 * disasm.h (gdb_pretty_print_insn): Delete declaration.
11181 (gdb_pretty_print_disassembler): New class.
11182 * record-btrace.c (btrace_insn_history): Use
11183 gdb_pretty_print_disassembler.
11184
d7e74731
PA
111852017-02-02 Pedro Alves <palves@redhat.com>
11186
11187 * ada-lang.c (type_as_string): Use string_file.
11188 * ada-valprint.c (ada_print_floating): Use string_file.
11189 * ada-varobj.c (ada_varobj_scalar_image)
11190 (ada_varobj_get_value_image): Use string_file.
11191 * aix-thread.c (aix_thread_extra_thread_info): Use string_file.
11192 * arm-tdep.c (_initialize_arm_tdep): Use string_printf.
11193 * breakpoint.c (update_inserted_breakpoint_locations)
11194 (insert_breakpoint_locations, reattach_breakpoints)
11195 (print_breakpoint_location, print_one_detail_ranged_breakpoint)
11196 (print_it_watchpoint): Use string_file.
11197 (save_breakpoints): Use stdio_file.
11198 * c-exp.y (oper): Use string_file.
11199 * cli/cli-logging.c (set_logging_redirect): Use ui_file_up and
11200 tee_file.
11201 (pop_output_files): Use delete.
11202 (handle_redirections): Use stdio_file and tee_file.
11203 * cli/cli-setshow.c (do_show_command): Use string_file.
11204 * compile/compile-c-support.c (c_compute_program): Use
11205 string_file.
11206 * compile/compile-c-symbols.c (generate_vla_size): Take a
11207 'string_file &' instead of a 'ui_file *'.
11208 (generate_c_for_for_one_variable): Take a 'string_file &' instead
11209 of a 'ui_file *'. Use string_file.
11210 (generate_c_for_variable_locations): Take a 'string_file &'
11211 instead of a 'ui_file *'.
11212 * compile/compile-internal.h (generate_c_for_for_one_variable):
11213 Take a 'string_file &' instead of a 'ui_file *'.
11214 * compile/compile-loc2c.c (push, pushf, unary, binary)
11215 (print_label, pushf_register_address, pushf_register)
11216 (do_compile_dwarf_expr_to_c): Take a 'string_file &' instead of a
11217 'ui_file *'. Adjust.
11218 * compile/compile.c (compile_to_object): Use string_file.
11219 * compile/compile.h (compile_dwarf_expr_to_c)
11220 (compile_dwarf_bounds_to_c): Take a 'string_file &' instead of a
11221 'ui_file *'.
11222 * cp-support.c (inspect_type): Use string_file and obstack_copy0.
11223 (replace_typedefs_qualified_name): Use string_file and
11224 obstack_copy0.
11225 * disasm.c (gdb_pretty_print_insn): Use string_file.
11226 (gdb_disassembly): Adjust reference the null_stream global.
11227 (do_ui_file_delete): Delete.
11228 (gdb_insn_length): Use null_stream.
11229 * dummy-frame.c (maintenance_print_dummy_frames): Use stdio_file.
11230 * dwarf2loc.c (dwarf2_compile_property_to_c)
11231 (locexpr_generate_c_location, loclist_generate_c_location): Take a
11232 'string_file &' instead of a 'ui_file *'.
11233 * dwarf2loc.h (dwarf2_compile_property_to_c): Likewise.
11234 * dwarf2read.c (do_ui_file_peek_last): Delete.
11235 (dwarf2_compute_name): Use string_file.
11236 * event-top.c (gdb_setup_readline): Use stdio_file.
11237 * gdbarch.sh (verify_gdbarch): Use string_file.
11238 * gdbtypes.c (safe_parse_type): Use null_stream.
11239 * guile/scm-breakpoint.c (gdbscm_breakpoint_commands): Use
11240 string_file.
11241 * guile/scm-disasm.c (gdbscm_print_insn_from_port): Take a
11242 'string_file *' instead of a 'ui_file *'.
11243 (gdbscm_arch_disassemble): Use string_file.
11244 * guile/scm-frame.c (frscm_print_frame_smob): Use string_file.
11245 * guile/scm-ports.c (class ioscm_file_port): Now a class that
11246 inherits from ui_file.
11247 (ioscm_file_port_delete, ioscm_file_port_rewind)
11248 (ioscm_file_port_put): Delete.
11249 (ioscm_file_port_write): Rename to ...
11250 (ioscm_file_port::write): ... this. Remove file_port_magic
11251 checks.
11252 (ioscm_file_port_new): Delete.
11253 (ioscm_with_output_to_port_worker): Use ioscm_file_port and
11254 ui_file_up.
11255 * guile/scm-type.c (tyscm_type_name): Use string_file.
11256 * guile/scm-value.c (vlscm_print_value_smob, gdbscm_value_print):
11257 Use string_file.
11258 * infcmd.c (print_return_value_1): Use string_file.
11259 * infrun.c (print_target_wait_results): Use string_file.
11260 * language.c (add_language): Use string_file.
11261 * location.c (explicit_to_string_internal): Use string_file.
11262 * main.c (captured_main_1): Use null_file.
11263 * maint.c (maintenance_print_architecture): Use stdio_file.
11264 * mi/mi-cmd-stack.c (list_arg_or_local): Use string_file.
11265 * mi/mi-common.h (struct mi_interp) <out, err, log, targ,
11266 event_channel>: Change type to mi_console_file pointer.
11267 * mi/mi-console.c (mi_console_file_fputs, mi_console_file_flush)
11268 (mi_console_file_delete): Delete.
11269 (struct mi_console_file): Delete.
11270 (mi_console_file_magic): Delete.
11271 (mi_console_file_new): Delete.
11272 (mi_console_file::mi_console_file): New.
11273 (mi_console_file_delete): Delete.
11274 (mi_console_file_fputs): Delete.
11275 (mi_console_file::write): New.
11276 (mi_console_raw_packet): Delete.
11277 (mi_console_file::flush): New.
11278 (mi_console_file_flush): Delete.
11279 (mi_console_set_raw): Rename to ...
11280 (mi_console_file::set_raw): ... this.
11281 * mi/mi-console.h (class mi_console_file): New class.
11282 (mi_console_file_new, mi_console_set_raw): Delete.
11283 * mi/mi-interp.c (mi_interpreter_init): Use mi_console_file.
11284 (mi_set_logging): Use delete and tee_file. Adjust.
11285 * mi/mi-main.c (output_register): Use string_file.
11286 (mi_cmd_data_evaluate_expression): Use string_file.
11287 (mi_cmd_data_read_memory): Use string_file.
11288 (mi_cmd_execute, print_variable_or_computed): Use string_file.
11289 * mi/mi-out.c (mi_ui_out::main_stream): New.
11290 (mi_ui_out::rewind): Use main_stream and
11291 string_file.
11292 (mi_ui_out::put): Use main_stream and string_file.
11293 (mi_ui_out::mi_ui_out): Remove 'stream' parameter.
11294 Allocate a 'string_file' instead.
11295 (mi_out_new): Don't allocate a mem_fileopen stream here.
11296 * mi/mi-out.h (mi_ui_out::mi_ui_out): Remove 'stream' parameter.
11297 (mi_ui_out::main_stream): Declare method.
11298 * printcmd.c (eval_command): Use string_file.
11299 * psymtab.c (maintenance_print_psymbols): Use stdio_file.
11300 * python/py-arch.c (archpy_disassemble): Use string_file.
11301 * python/py-breakpoint.c (bppy_get_commands): Use string_file.
11302 * python/py-frame.c (frapy_str): Use string_file.
11303 * python/py-framefilter.c (py_print_type, py_print_single_arg):
11304 Use string_file.
11305 * python/py-type.c (typy_str): Use string_file.
11306 * python/py-unwind.c (unwind_infopy_str): Use string_file.
11307 * python/py-value.c (valpy_str): Use string_file.
11308 * record-btrace.c (btrace_insn_history): Use string_file.
11309 * regcache.c (regcache_print): Use stdio_file.
11310 * reggroups.c (maintenance_print_reggroups): Use stdio_file.
11311 * remote.c (escape_buffer): Use string_file.
11312 * rust-lang.c (rust_get_disr_info): Use string_file.
11313 * serial.c (serial_open_ops_1): Use stdio_file.
11314 (do_serial_close): Use delete.
11315 * stack.c (print_frame_arg): Use string_file.
11316 (print_frame_args): Remove local mem_fileopen stream, not used.
11317 (print_frame): Use string_file.
11318 * symmisc.c (maintenance_print_symbols): Use stdio_file.
11319 * symtab.h (struct symbol_computed_ops) <generate_c_location>:
11320 Take a 'string_file *' instead of a 'ui_file *'.
11321 * top.c (new_ui): Use stdio_file and stderr_file.
11322 (free_ui): Use delete.
11323 (execute_command_to_string): Use string_file.
11324 (quit_confirm): Use string_file.
11325 * tracepoint.c (collection_list::append_exp): Use string_file.
11326 * tui/tui-disasm.c (tui_disassemble): Use string_file.
11327 * tui/tui-file.c: Don't include "ui-file.h".
11328 (enum streamtype, struct tui_stream): Delete.
11329 (tui_file_new, tui_file_delete, tui_fileopen, tui_sfileopen)
11330 (tui_file_isatty, tui_file_rewind, tui_file_put): Delete.
11331 (tui_file::tui_file): New method.
11332 (tui_file_fputs): Delete.
11333 (tui_file_get_strbuf): Delete.
11334 (tui_file::puts): New method.
11335 (tui_file_adjust_strbuf): Delete.
11336 (tui_file_flush): Delete.
11337 (tui_file::flush): New method.
11338 * tui/tui-file.h: Tweak intro comment.
11339 Include ui-file.h.
11340 (tui_fileopen, tui_sfileopen, tui_file_get_strbuf)
11341 (tui_file_adjust_strbuf): Delete declarations.
11342 (class tui_file): New class.
11343 * tui/tui-io.c (tui_initialize_io): Use tui_file.
11344 * tui/tui-regs.c (tui_restore_gdbout): Use delete.
11345 (tui_register_format): Use string_stream.
11346 * tui/tui-stack.c (tui_make_status_line): Use string_file.
11347 (tui_get_function_from_frame): Use string_file.
11348 * typeprint.c (type_to_string): Use string_file.
11349 * ui-file.c (struct ui_file, ui_file_magic, ui_file_new): Delete.
11350 (null_stream): New global.
11351 (ui_file_delete): Delete.
11352 (ui_file::ui_file): New.
11353 (null_file_isatty): Delete.
11354 (ui_file::~ui_file): New.
11355 (null_file_rewind): Delete.
11356 (ui_file::printf): New.
11357 (null_file_put): Delete.
11358 (null_file_flush): Delete.
11359 (ui_file::putstr): New.
11360 (null_file_write): Delete.
11361 (ui_file::putstrn): New.
11362 (null_file_read): Delete.
11363 (ui_file::putc): New.
11364 (null_file_fputs): Delete.
11365 (null_file_write_async_safe): Delete.
11366 (ui_file::vprintf): New.
11367 (null_file_delete): Delete.
11368 (null_file::write): New.
11369 (null_file_fseek): Delete.
11370 (null_file::puts): New.
11371 (ui_file_data): Delete.
11372 (null_file::write_async_safe): New.
11373 (gdb_flush, ui_file_isatty): Adjust.
11374 (ui_file_put, ui_file_rewind): Delete.
11375 (ui_file_write): Adjust.
11376 (ui_file_write_for_put): Delete.
11377 (ui_file_write_async_safe, ui_file_read): Adjust.
11378 (ui_file_fseek): Delete.
11379 (fputs_unfiltered): Adjust.
11380 (set_ui_file_flush, set_ui_file_isatty, set_ui_file_rewind)
11381 (set_ui_file_put, set_ui_file_write, set_ui_file_write_async_safe)
11382 (set_ui_file_read, set_ui_file_fputs, set_ui_file_fseek)
11383 (set_ui_file_data): Delete.
11384 (string_file::~string_file, string_file::write)
11385 (struct accumulated_ui_file, do_ui_file_xstrdup, ui_file_xstrdup)
11386 (do_ui_file_as_string, ui_file_as_string): Delete.
11387 (do_ui_file_obsavestring, ui_file_obsavestring): Delete.
11388 (struct mem_file): Delete.
11389 (mem_file_new): Delete.
11390 (stdio_file::stdio_file): New.
11391 (mem_file_delete): Delete.
11392 (stdio_file::stdio_file): New.
11393 (mem_fileopen): Delete.
11394 (stdio_file::~stdio_file): New.
11395 (mem_file_rewind): Delete.
11396 (stdio_file::set_stream): New.
11397 (mem_file_put): Delete.
11398 (stdio_file::open): New.
11399 (mem_file_write): Delete.
11400 (stdio_file_magic, struct stdio_file): Delete.
11401 (stdio_file_new, stdio_file_delete, stdio_file_flush): Delete.
11402 (stdio_file::flush): New.
11403 (stdio_file_read): Rename to ...
11404 (stdio_file::read): ... this. Adjust.
11405 (stdio_file_write): Rename to ...
11406 (stdio_file::write): ... this. Adjust.
11407 (stdio_file_write_async_safe): Rename to ...
11408 (stdio_file::write_async_safe) ... this. Adjust.
11409 (stdio_file_fputs): Rename to ...
11410 (stdio_file::puts) ... this. Adjust.
11411 (stdio_file_isatty): Delete.
11412 (stdio_file_fseek): Delete.
11413 (stdio_file::isatty): New.
11414 (stderr_file_write): Rename to ...
11415 (stderr_file::write) ... this. Adjust.
11416 (stderr_file_fputs): Rename to ...
11417 (stderr_file::puts) ... this. Adjust.
11418 (stderr_fileopen, stdio_fileopen, gdb_fopen): Delete.
11419 (stderr_file::stderr_file): New.
11420 (tee_file_magic): Delete.
11421 (struct tee_file): Delete.
11422 (tee_file::tee_file): New.
11423 (tee_file_new): Delete.
11424 (tee_file::~tee_file): New.
11425 (tee_file_delete): Delete.
11426 (tee_file_flush): Rename to ...
11427 (tee_file::flush): ... this. Adjust.
11428 (tee_file_write): Rename to ...
11429 (tee_file::write): ... this. Adjust.
11430 (tee_file::write_async_safe): New.
11431 (tee_file_fputs): Rename to ...
11432 (tee_file::puts): ... this. Adjust.
11433 (tee_file_isatty): Rename to ...
11434 (tee_file::isatty): ... this. Adjust.
11435 * ui-file.h (struct obstack, struct ui_file): Don't
11436 forward-declare.
11437 (ui_file_new, ui_file_flush_ftype, set_ui_file_flush)
11438 (ui_file_write_ftype)
11439 (set_ui_file_write, ui_file_fputs_ftype, set_ui_file_fputs)
11440 (ui_file_write_async_safe_ftype, set_ui_file_write_async_safe)
11441 (ui_file_read_ftype, set_ui_file_read, ui_file_isatty_ftype)
11442 (set_ui_file_isatty, ui_file_rewind_ftype, set_ui_file_rewind)
11443 (ui_file_put_method_ftype, ui_file_put_ftype, set_ui_file_put)
11444 (ui_file_delete_ftype, set_ui_file_data, ui_file_fseek_ftype)
11445 (set_ui_file_fseek): Delete.
11446 (ui_file_data, ui_file_delete, ui_file_rewind)
11447 (struct ui_file): New.
11448 (ui_file_up): New.
11449 (class null_file): New.
11450 (null_stream): Declare.
11451 (ui_file_write_for_put, ui_file_put): Delete.
11452 (ui_file_xstrdup, ui_file_as_string, ui_file_obsavestring):
11453 Delete.
11454 (ui_file_fseek, mem_fileopen, stdio_fileopen, stderr_fileopen)
11455 (gdb_fopen, tee_file_new): Delete.
11456 (struct string_file): New.
11457 (struct stdio_file): New.
11458 (stdio_file_up): New.
11459 (struct stderr_file): New.
11460 (class tee_file): New.
11461 * ui-out.c (ui_out::field_stream): Take a 'string_file &' instead
11462 of a 'ui_file *'. Adjust.
11463 * ui-out.h (class ui_out) <field_stream>: Likewise.
11464 * utils.c (do_ui_file_delete, make_cleanup_ui_file_delete)
11465 (null_stream): Delete.
11466 (error_stream): Take a 'string_file &' instead of a 'ui_file *'.
11467 Adjust.
11468 * utils.h (struct ui_file): Delete forward declaration..
11469 (make_cleanup_ui_file_delete, null_stream): Delete declarations.
11470 (error_stream): Take a 'string_file &' instead of a
11471 'ui_file *'.
11472 * varobj.c (varobj_value_get_print_value): Use string_file.
11473 * xtensa-tdep.c (xtensa_verify_config): Use string_file.
11474 * gdbarch.c: Regenerate.
11475
187808b0
PA
114762017-02-02 Pedro Alves <palves@redhat.com>
11477
11478 * disasm.c (gdb_disassembler::pretty_print_insn): Rename to...
11479 (gdb_pretty_print_insn): ... this. Now a free function. Add back
11480 a 'gdbarch' parameter. Allocate a mem_fileopen stream here.
11481 Adjust to call gdb_print_insn instead of
11482 gdb_disassembler::print_insn.
11483 (dump_insns, do_mixed_source_and_assembly_deprecated)
11484 (do_mixed_source_and_assembly, do_assembly_only): Add back a
11485 'gdbarch' parameter. Remove gdb_disassembler parameter.
11486 (gdb_disassembly): Don't allocate a gdb_disassembler here.
11487 * disasm.h (gdb_disassembler::pretty_print_insn): Delete
11488 declaration.
11489 (gdb_pretty_print_insn): Re-add declaration.
11490 * record-btrace.c (btrace_insn_history): Don't allocate a
11491 gdb_disassembler here. Adjust to call gdb_pretty_print_insn.
11492
7a8eb317
SM
114932017-02-01 Simon Marchi <simon.marchi@polymtl.ca>
11494
11495 * disasm.h (gdb_disassembly): Remove file_string parameter.
11496 * disasm.c (gdb_disassembly): Likewise.
11497 * cli/cli-cmds.c (print_disassembly): Adapt.
11498 * mi/mi-cmd-disas.c (mi_cmd_disassemble): Likewise.
11499 * stack.c (do_gdb_disassembly): Likewise.
11500
7346ef59
AA
115012017-02-01 Andreas Arnez <arnez@linux.vnet.ibm.com>
11502
11503 * dwarf2loc.c (dwarf2_evaluate_loc_desc_full): For
11504 DWARF_VALUE_LITERAL, no longer ignore the offset on big-endian
11505 targets. And if the implicit value is longer than needed, extract
11506 the first bytes instead of the "least significant" ones.
11507
cd4007e4
MM
115082017-02-01 Markus Metzger <markus.t.metzger@intel.com>
11509
11510 * btrace.c (btrace_enable): Do not call btrace_add_pc for
11511 BTRACE_FORMAT_PT or if can_access_registers_ptid returns false.
11512 (btrace_fetch): Assert can_access_registers_ptid.
11513 * record-btrace.c (require_btrace_thread, record_btrace_info): Call
11514 validate_registers_access.
11515
cf77c34e
MM
115162017-02-01 Markus Metzger <markus.t.metzger@intel.com>
11517
11518 * gdbthread.h (can_access_registers_ptid): New.
11519 * thread.c (can_access_registers_ptid): New.
11520
be85ce7d
PA
115212017-02-01 Pedro Alves <palves@redhat.com>
11522
11523 * i386-tdep.c (i386_fast_tracepoint_valid_at): Use gdb_insn_length.
11524
29b0b251
PA
115252017-01-31 Pedro Alves <palves@redhat.com>
11526
11527 * mi/mi-interp.c (mi_breakpoint_created, mi_breakpoint_modified):
11528 Fix typos.
11529
289b5b24
PA
115302017-01-31 Pedro Alves <palves@redhat.com>
11531
11532 * stack.c (print_frame_args): Remove local mem_fileopen stream,
11533 not used.
11534
b47413b4
PA
115352017-01-31 Pedro Alves <palves@redhat.com>
11536
11537 * varobj.c (varobj_value_get_print_value): Remove xstrdup call.
11538
60adb36c
PA
115392017-01-31 Pedro Alves <palves@redhat.com>
11540
11541 * common/scoped_restore.h
11542 (scoped_restore_tmpl::scoped_restore_tmpl): Template on T2, and
11543 change the value's parameter type to T2.
11544 (make_scoped_restore): Likewise.
11545
2735833d
WT
115462017-01-27 Walfred Tedeschi <walfred.tedeschi@intel.com>
11547 Richard Henderson <rth@redhat.com>
11548
11549 * amd64-linux-nat.c (PTRACE_ARCH_PRCTL): New define.
11550 (amd64_linux_fetch_inferior_registers): Add case to fetch FS_BASE
11551 GS_BASE for older kernels.
11552 (amd64_linux_store_inferior_registers): Add case to store FS_BASE
11553 GS_BASE for older kernels.
11554 * amd64-linux-tdep.c (amd64_linux_gregset_reg_offset): Add FS_BASE
11555 and GS_BASE to the offset table.
11556 (amd64_linux_register_reggroup_p): Add FS_BASE and GS_BASE to the
11557 system register group.
11558 * amd64-nat.c (amd64_native_gregset_reg_offset): Implements case
11559 for older kernels.
11560 * amd64-tdep.c (amd64_init_abi): Add segment registers for the
11561 amd64 ABI.
11562 * amd64-tdep.h (amd64_regnum): Add AMD64_FSBASE_REGNUM and
11563 AMD64_GSBASE_REGNUM.
11564 (AMD64_NUM_REGS): Set to AMD64_GSBASE_REGNUM + 1.
11565 * features/Makefile (amd64-linux.dat, amd64-avx-linux.dat)
11566 (amd64-mpx-linux.dat, amd64-avx512-linux.dat, x32-linux.dat)
11567 (x32-avx-linux.dat, x32-avx512-linux.dat): Add
11568 i386/64bit-segments.xml in those rules.
11569 * features/i386/64bit-segments.xml: New file.
11570 * features/i386/amd64-avx-mpx-linux.xml: Add 64bit-segments.xml.
11571 * features/i386/amd64-avx-linux.xml: Add 64bit-segments.xml.
11572 * features/i386/amd64-avx512-linux.xml: Add 64bit-segments.xml.
11573 * features/i386/amd64-mpx-linux.xml: Add 64bit-segments.xml.
11574 * features/i386/x32-avx512-linux.xml: Add 64bit-segments.xml.
11575 * features/i386/x32-avx-linux.xml: Add 64bit-segments.xml.
11576 * features/i386/amd64-linux.xml: Add 64bit-segments.xml.
11577 * features/i386/amd64-avx-linux.c: Regenerated.
11578 * features/i386/amd64-avx-mpx-linux.c: Regenerated.
11579 * features/i386/amd64-avx-mpx.c: Regenerated.
11580 * features/i386/amd64-avx512-linux.c: Regenerated.
11581 * features/i386/amd64-linux.c: Regenerated.
11582 * features/i386/amd64-mpx-linux.c: Regenerated.
11583 * features/i386/i386-avx-mpx-linux.c: Regenerated.
11584 * features/i386/i386-avx-mpx.c: Regenerated.
11585 * features/i386/x32-avx-linux.c: Regenerated.
11586 * features/i386/x32-avx512-linux.c: Regenerated.
11587 * regformats/i386/amd64-avx-linux.dat: Regenerated.
11588 * regformats/i386/amd64-avx-mpx-linux.dat: Regenerated.
11589 * regformats/i386/amd64-avx512-linux.dat: Regenerated.
11590 * regformats/i386/amd64-linux.dat: Regenerated.
11591 * regformats/i386/amd64-mpx-linux.dat: Regenerated.
11592 * regformats/i386/x32-avx-linux.dat: Regenerated.
11593 * regformats/i386/x32-avx512-linux.dat: Regenerated.
11594 * regformats/i386/x32-linux.dat: Regenerated.
11595
8884e97e
WT
115962017-01-27 Walfred Tedeschi <walfred.tedeschi@intel.com>
11597
11598 * amd64-linux-tdep.h (AMD64_LINUX_ORIG_RAX_REGNUM):
11599 Set to AMD64_NUM_REGS.
11600
7005d26a
WT
116012017-01-27 Walfred Tedeschi <walfred.tedeschi@intel.com>
11602
11603 * amd64-nat.c (amd64_native_gregset_reg_offset): Simplify logic
11604 that checks validity of a register number.
11605
4bd2e1b2
KC
116062017-01-27 Kees Cook <keescook@google.com>
11607
11608 * gdb/arm-linux-nat.c (arm_linux_fetch_inferior_registers): Call
11609 fetch_fpregs if target has fpa registers.
11610 (arm_linux_store_inferior_registers): Call store_fpregs if target
11611 has fpa registers.
11612
7cf1de6c
AA
116132017-01-26 Andreas Arnez <arnez@linux.vnet.ibm.com>
11614
11615 * cris-tdep.c (cris_gdbarch_init): Remove check for
11616 info.byte_order and force it to BFD_ENDIAN_LITTLE.
11617
874a1c8c
AT
116182017-01-26 Antoine Tremblay <antoine.tremblay@ericsson.com>
11619
11620 * corelow.c (get_core_register_section): Check for regset
11621 existence before checking for REGSET_VARIABLE_SIZE.
11622
d8b49cf0
YQ
116232017-01-26 Yao Qi <yao.qi@linaro.org>
11624 Pedro Alves <palves@redhat.com>
11625
11626 PR gdb/20939
11627 * disasm.c (gdb_disassembler::dis_asm_memory_error): Don't
11628 call memory_error, save memaddr instead.
11629 (gdb_disassembler::print_insn): If gdbarch_print_insn returns
11630 negative, cal memory_error.
11631 * disasm.h (gdb_disassembler) <m_err_memaddr>: New field.
11632
658ca58c
YQ
116332017-01-26 Yao Qi <yao.qi@linaro.org>
11634
11635 * disasm-selftests.c (memory_error_test): New function.
11636 (_initialize_disasm_selftests): Register memory_error_test.
11637
79843d45
YQ
116382017-01-26 Yao Qi <yao.qi@linaro.org>
11639
11640 * Makefile.in (SFILES): Add disasm-selftests.c and
11641 selftest-arch.c.
11642 (COMMON_OBS): Add disasm-selftests.o and selftest-arch.o.
11643 * disasm-selftests.c: New file.
11644 * selftest-arch.c: New file.
11645 * selftest-arch.h: New file.
11646
8cafda32
YQ
116472017-01-26 Yao Qi <yao.qi@linaro.org>
11648
11649 * mep-tdep.c (mep_gdb_print_insn): Set info->arch
11650 to bfd_arch_mep. Don't return 0 if section is not
11651 found. Call print_insn_mep.
11652
e47ad6c0
YQ
116532017-01-26 Pedro Alves <palves@redhat.com>
11654 Yao Qi <yao.qi@linaro.org>
11655
11656 * arm-tdep.c: Include "disasm.h".
11657 (gdb_print_insn_arm): Update code to get gdbarch.
11658 * disasm.c (dis_asm_read_memory): Change it to
11659 gdb_disassembler::dis_asm_read_memory.
11660 (dis_asm_memory_error): Likewise.
11661 (dis_asm_print_address): Likewise.
11662 (gdb_pretty_print_insn): Change it to
11663 gdb_disassembler::pretty_print_insn.
11664 (dump_insns): Add one argument gdb_disassemlber. All
11665 callers updated.
11666 (do_mixed_source_and_assembly_deprecated): Likewise.
11667 (do_mixed_source_and_assembly): Likewise.
11668 (do_assembly_only): Likewise.
11669 (gdb_disassembler::gdb_disassembler): New.
11670 (gdb_disassembler::print_insn): New.
11671 * disasm.h (class gdb_disassembler): New.
11672 (gdb_pretty_print_insn): Remove declaration.
11673 (gdb_disassemble_info): Likewise.
11674 * guile/scm-disasm.c (class gdbscm_disassembler): New.
11675 (gdbscm_disasm_read_memory_worker): Update.
11676 (gdbscm_disasm_read_memory): Update.
11677 (gdbscm_disasm_memory_error): Remove.
11678 (gdbscm_disasm_print_address): Remove.
11679 (gdbscm_disassembler::gdbscm_disassembler): New.
11680 (gdbscm_print_insn_from_port): Update.
11681 * mips-tdep.c: Include disasm.h.
11682 (gdb_print_insn_mips): Update code to get gdbarch.
11683 * record-btrace.c (btrace_insn_history): Update.
11684 * spu-tdep.c: Include disasm.h.
11685 (struct spu_dis_asm_data): Remove.
11686 (struct spu_dis_asm_info): New.
11687 (spu_dis_asm_print_address): Use spu_dis_asm_info to get
11688 SPU id.
11689 (gdb_print_insn_spu): Cast disassemble_info to
11690 spu_dis_asm_info.
11691
80d75874
YQ
116922017-01-26 Yao Qi <yao.qi@linaro.org>
11693
11694 * disasm.c (do_ui_file_delete): Delete.
11695 (gdb_insn_length): Move code creating stream to ...
11696 * utils.c (null_stream): ... here. New function.
11697 * utils.h (null_stream): Declare.
11698
60685cd0
SM
116992017-01-23 Simon Marchi <simon.marchi@polymtl.ca>
11700
11701 * python/py-inferior.c (find_thread_object): Return directly
11702 from the loop. Remove "found" variable.
11703
eb1cdb62
JB
117042017-01-21 Joel Brobecker <brobecker@adacore.com>
11705
11706 GDB 7.12.1 released.
11707
b1ce6568
SM
117082017-01-20 Simon Marchi <simon.marchi@ericsson.com>
11709
11710 * python/py-function.c (fnpy_call): Reorder declarations to have
11711 the gdbpy_enter object declared first.
11712 * python/py-xmethods.c (gdbpy_get_xmethod_arg_types): Likewise.
11713
6f8b0407
SM
117142017-01-20 Simon Marchi <simon.marchi@ericsson.com>
11715
fec93fb1 11716 PR python/21068
6f8b0407
SM
11717 * python/python-internal.h (PyMem_RawMalloc): Define for
11718 Python < 3.4.
11719 * python/py-gdb-readline.c (gdbpy_readline_wrapper): Use
11720 PyMem_RawMalloc instead of PyMem_Malloc.
11721
78cbbba8
LM
117222017-01-20 Mike Wrighton <mike_wrighton@codesourcery.com>
11723 Luis Machado <lgustavo@codesourcery.com>
11724
11725 * NEWS (New commands): Mention flash-erase.
11726 (New MI commands): Mention target-flash-erase.
11727 * mi/mi-cmds.c (mi_cmd_target_flash_erase): Add target-flash-erase MI
11728 command.
11729 * mi/mi-cmds.h (mi_cmd_target_flash_erase): New declaration.
11730 * mi/mi-main.c (mi_cmd_target_flash_erase): New function.
11731 * target.c (flash_erase_command): New function.
11732 (initialize_targets): Add new flash-erase command.
11733 * target.h (flash_erase_command): New declaration.
11734
2132fe85
JB
117352017-01-20 Joel Brobecker <brobecker@adacore.com>
11736
11737 * nat/linux-ptrace.c: Only include <sys/procfs.h> if
11738 HAVE_SYS_PROCFS_H is defined.
11739
d1dff226
AH
117402017-01-18 Alan Hayward <alan.hayward@arm.com>
11741
11742 * remote.c (struct cached_reg): Change data into a pointer.
11743 * (stop_reply_dtr): Free data pointers before deleting vector.
11744 (process_stop_reply): Likewise.
11745 (remote_parse_stop_reply): Allocate space for data
11746
9890e433
AH
117472017-01-18 Alan Hayward <alan.hayward@arm.com>
11748
11749 * amd64-tdep.c (amd64_pseudo_register_read_value): remove
11750 MAX_REGISTER_SIZE.
11751 (amd64_pseudo_register_read_value): Likewise.
11752 * remote.c (fetch_register_using_p): Remove MAX_REGISTER_SIZE.
11753 (store_register_using_P): Likewise.
11754 * regcache.c (regcache_xfer_part): Likewise.
11755
7a36499a
IR
117562017-01-16 Ivo Raisr <ivo.raisr@oracle.com>
11757
11758 Split real and pseudo registers.
11759 * sparc-tdep.h (SPARC_CORE_REGISTERS): New macro.
11760 (sparc32_pseudo_regnum): New enum.
11761 * sparc64-tdep.h (sparc64_pseudo_regnum): New enum.
11762 * sparc-tdep.c (SPARC32_FPU_REGISTERS): New macro.
11763 (SPARC32_CP0_REGISTERS): New macro.
11764 (sparc32_pseudo_register_name): New function.
11765 (sparc32_register_name): Use sparc32_pseudo_register_name.
11766 (sparc32_pseudo_register_type): New function.
11767 (sparc32_register_type): Use sparc32_pseudo_register_type.
11768 (sparc32_pseudo_register_read, sparc32_pseudo_register_write): Handle
11769 pseudo register numbers.
11770 * sparc64-tdep.c SPARC64_FPU_REGISTERS): New macro.
11771 (SPARC64_CP0_REGISTERS): New macro.
11772 (sparc64_pseudo_register_name): New function.
11773 (sparc64_register_name): Use sparc64_pseudo_register_name.
11774 (sparc64_pseudo_register_type): New function.
11775 (sparc64_register_type): Use sparc64_pseudo_register_type.
11776 (sparc64_pseudo_register_read, sparc64_pseudo_register_write): Handle
11777 pseudo register numbers.
11778 (sparc64_store_floating_fields, sparc64_extract_floating_fields,
11779 sparc64_store_arguments): Handle pseudo register numbers.
11780
6f8976bf
YQ
117812017-01-13 Yao Qi <yao.qi@linaro.org>
11782
11783 * remote.c (REMOTE_DEBUG_MAX_CHAR): New macro.
11784 (putpkt_binary): Print only REMOTE_DEBUG_MAX_CHAR chars in debug
11785 output.
11786 (getpkt_or_notif_sane_1): Likewise.
11787
e4241ace
YQ
117882017-01-13 Yao Qi <yao.qi@linaro.org>
11789
11790 * Makefile.in (checker-headers): Use CXX and CXX_DIALET instead
11791 of CC. Pass "-x c++-header" instead of "-x c".
11792
3015c064
SM
117932017-01-12 Simon Marchi <simon.marchi@ericsson.com>
11794
11795 * remote.c (remote_can_async_p): Update comment.
11796
fde1b17d
SM
117972017-01-12 Simon Marchi <simon.marchi@ericsson.com>
11798
11799 * linux-nat.c (linux_nat_can_async_p): Update comment.
11800
ca1ca08b
SM
118012017-01-12 Simon Marchi <simon.marchi@ericsson.com>
11802
11803 * serial.c (serial_open): Forget about "pc" and "lpt" serial interface.
11804
4ad2da73
SM
118052017-01-11 Simon Marchi <simon.marchi@ericsson.com>
11806
11807 * cli/cli-decode.c (lookup_cmd_1): Fix typo in comment.
11808
c8b23b3f
TT
118092017-01-10 Tom Tromey <tom@tromey.com>
11810
11811 * python/py-type.c (typy_legacy_template_argument): Update.
11812 * cp-support.h (struct demangle_parse_info) (demangle_parse_info,
11813 ~demangle_parse_info): Declare new members.
11814 (cp_demangled_name_to_comp): Return unique_ptr.
11815 (cp_demangled_name_parse_free)
11816 (make_cleanup_cp_demangled_name_parse_free)
11817 (cp_new_demangle_parse_info): Remove.
11818 * cp-support.c (do_demangled_name_parse_free_cleanup)
11819 (make_cleanup_cp_demangled_name_parse_free): Remove.
11820 (inspect_type, cp_canonicalize_string_full)
11821 (cp_canonicalize_string): Update.
11822 (mangled_name_to_comp): Change return type.
11823 (cp_class_name_from_physname, method_name_from_physname)
11824 (cp_func_name, cp_remove_params): Update.
11825 * cp-name-parser.y (demangle_parse_info): New constructor, from
11826 cp_new_demangle_parse_info.
11827 (~demangle_parse_info): New destructor, from
11828 cp_demangled_name_parse_free.
11829 (cp_merge_demangle_parse_infos): Update.
11830 (cp_demangled_name_to_comp): Change return type.
11831
1ac32117
TT
118322017-01-10 Tom Tromey <tom@tromey.com>
11833
11834 * top.c (prevent_dont_repeat): Change return type.
11835 * python/python.c (execute_gdb_command): Use std::string.
11836 Update.
11837 * guile/guile.c (gdbscm_execute_gdb_command): Update.
11838 * command.h (prevent_dont_repeat): Change return type.
11839 * breakpoint.c (bpstat_do_actions_1): Update.
11840
0cf08227
TT
118412017-01-10 Tom Tromey <tom@tromey.com>
11842
11843 * value.h (scoped_value_mark::~scoped_value_mark): Call
11844 free_to_mark.
11845 (scoped_value_mark::free_to_mark): New method.
11846 * dwarf2loc.c (dwarf2_evaluate_loc_desc_full): Use
11847 scoped_value_mark.
11848
eb115069
TT
118492017-01-10 Tom Tromey <tom@tromey.com>
11850
11851 * python/py-value.c (valpy_dereference, valpy_referenced_value)
11852 (valpy_reference_value, valpy_const_value, valpy_get_address)
11853 (valpy_get_dynamic_type, valpy_lazy_string, valpy_do_cast)
11854 (valpy_getitem, valpy_call, valpy_binop_throw, valpy_negative)
11855 (valpy_absolute, valpy_richcompare_throw): Use scoped_value_mark.
11856 * dwarf2loc.c (dwarf2_loc_desc_get_symbol_read_needs): Use
11857 scoped_value_mark.
11858 * dwarf2-frame.c (execute_stack_op): Use scoped_value_mark.
11859 * value.h (scoped_value_mark): New class.
11860
906768f9
TT
118612017-01-10 Tom Tromey <tom@tromey.com>
11862
11863 * dwarf2read.c (dwarf2_build_psymtabs): Use psymtab_discarder.
11864 * psympriv.h (make_cleanup_discard_psymtabs): Don't declare.
11865 * psymtab.c (discard_psymtabs_upto): Remove.
11866 (make_cleanup_discard_psymtabs): Remove.
11867 (struct psymtab_state): Remove.
11868
bef155c3
TT
118692017-01-10 Tom Tromey <tom@tromey.com>
11870
11871 * record-full.c (record_full_save_cleanups): Remove.
11872 (record_full_save): Use gdb::unlinker.
11873 * gcore.c (do_bfd_delete_cleanup): Remove.
11874 (gcore_command): Use gdb::unlinker, unique_xmalloc_ptr. Remove
11875 cleanups.
11876 * dwarf2read.c (unlink_if_set): Remove.
11877 (write_psymtabs_to_index): Use gdb::unlinker.
11878 * common/gdb_unlinker.h: New file.
11879
192b62ce
TT
118802017-01-10 Tom Tromey <tom@tromey.com>
11881
11882 * windows-tdep.c (windows_xfer_shared_library): Update.
11883 * windows-nat.c (windows_make_so): Update.
11884 * utils.h (make_cleanup_bfd_unref): Remove.
11885 * utils.c (do_bfd_close_cleanup, make_cleanup_bfd_unref): Remove.
11886 * symfile.h (symfile_bfd_open)
11887 (find_separate_debug_file_in_section): Return gdb_bfd_ref_ptr.
11888 * symfile.c (read_symbols, symbol_file_add)
11889 (separate_debug_file_exists): Update.
11890 (symfile_bfd_open): Return gdb_bfd_ref_ptr.
11891 (generic_load, reread_symbols): Update.
11892 * symfile-mem.c (symbol_file_add_from_memory): Update.
11893 * spu-linux-nat.c (spu_bfd_open): Return gdb_bfd_ref_ptr.
11894 (spu_symbol_file_add_from_memory): Update.
11895 * solist.h (struct target_so_ops) <bfd_open>: Return
11896 gdb_bfd_ref_ptr.
11897 (solib_bfd_fopen, solib_bfd_open): Return gdb_bfd_ref_ptr.
11898 * solib.c (solib_bfd_fopen, solib_bfd_open): Return
11899 gdb_bfd_ref_ptr.
11900 (solib_map_sections, reload_shared_libraries_1): Update.
11901 * solib-svr4.c (enable_break): Update.
11902 * solib-spu.c (spu_bfd_fopen): Return gdb_bfd_ref_ptr.
11903 * solib-frv.c (enable_break2): Update.
11904 * solib-dsbt.c (enable_break): Update.
11905 * solib-darwin.c (gdb_bfd_mach_o_fat_extract): Return
11906 gdb_bfd_ref_ptr.
11907 (darwin_solib_get_all_image_info_addr_at_init): Update.
11908 (darwin_bfd_open): Return gdb_bfd_ref_ptr.
11909 * solib-aix.c (solib_aix_bfd_open): Return gdb_bfd_ref_ptr.
11910 * record-full.c (record_full_save): Update.
11911 * python/py-objfile.c (objfpy_add_separate_debug_file): Update.
11912 * procfs.c (insert_dbx_link_bpt_in_file): Update.
11913 * minidebug.c (find_separate_debug_file_in_section): Return
11914 gdb_bfd_ref_ptr.
11915 * machoread.c (macho_add_oso_symfile): Change abfd to
11916 gdb_bfd_ref_ptr.
11917 (macho_symfile_read_all_oso): Update.
11918 (macho_check_dsym): Return gdb_bfd_ref_ptr.
11919 (macho_symfile_read): Update.
11920 * jit.c (bfd_open_from_target_memory): Return gdb_bfd_ref_ptr.
11921 (jit_bfd_try_read_symtab): Update.
11922 * gdb_bfd.h (gdb_bfd_open, gdb_bfd_fopen, gdb_bfd_openr)
11923 (gdb_bfd_openw, gdb_bfd_openr_iovec)
11924 (gdb_bfd_openr_next_archived_file, gdb_bfd_fdopenr): Return
11925 gdb_bfd_ref_ptr.
11926 (gdb_bfd_ref_policy): New struct.
11927 (gdb_bfd_ref_ptr): New typedef.
11928 * gdb_bfd.c (gdb_bfd_open, gdb_bfd_fopen, gdb_bfd_openr)
11929 (gdb_bfd_openw, gdb_bfd_openr_iovec)
11930 (gdb_bfd_openr_next_archived_file, gdb_bfd_fdopenr): Return
11931 gdb_bfd_ref_ptr.
11932 * gcore.h (create_gcore_bfd): Return gdb_bfd_ref_ptr.
11933 * gcore.c (create_gcore_bfd): Return gdb_bfd_ref_ptr.
11934 (gcore_command): Update.
11935 * exec.c (exec_file_attach): Update.
11936 * elfread.c (elf_symfile_read): Update.
11937 * dwarf2read.c (dwarf2_get_dwz_file): Update.
11938 (try_open_dwop_file, open_dwo_file): Return gdb_bfd_ref_ptr.
11939 (open_and_init_dwo_file): Update.
11940 (open_dwp_file): Return gdb_bfd_ref_ptr.
11941 (open_and_init_dwp_file): Update.
11942 * corelow.c (core_open): Update.
11943 * compile/compile-object-load.c (compile_object_load): Update.
11944 * common/gdb_ref_ptr.h (ref_ptr::operator->): New operator.
11945 * coffread.c (coff_symfile_read): Update.
11946 * cli/cli-dump.c (bfd_openr_or_error, bfd_openw_or_error): Return
11947 gdb_bfd_ref_ptr. Rename.
11948 (dump_bfd_file, restore_command): Update.
11949 * build-id.h (build_id_to_debug_bfd): Return gdb_bfd_ref_ptr.
11950 * build-id.c (build_id_to_debug_bfd): Return gdb_bfd_ref_ptr.
11951 (find_separate_debug_file_by_buildid): Update.
11952
50315b21
TT
119532017-01-10 Tom Tromey <tom@tromey.com>
11954
11955 * common/gdb_ref_ptr.h: New file.
11956 * python/py-ref.h (struct gdbpy_ref_policy): New.
11957 (gdbpy_ref): Now a typedef.
11958
fc4007c9
TT
119592017-01-10 Tom Tromey <tom@tromey.com>
11960
11961 * utils.h (make_cleanup_htab_delete): Don't declare.
11962 * utils.c (do_htab_delete_cleanup, make_cleanup_htab_delete):
11963 Remove.
11964 * linespec.c (decode_compound_collector): Add constructor,
11965 destructor.
11966 (lookup_prefix_sym): Remove cleanup.
11967 (symtab_collector): Add constructor, destructor.
11968 (collect_symtabs_from_filename): Remove cleanup.
11969 * disasm.c (do_mixed_source_and_assembly): Use htab_up.
11970 * compile/compile-c-symbols.c (generate_c_for_variable_locations):
11971 Use htab_up.
11972 * gnu-v3-abi.c (gnuv3_print_vtable): Use htab_up.
11973 * dwarf2read.c (dw2_expand_symtabs_matching)
11974 (dw2_map_symbol_filenames, dwarf_decode_macros)
11975 (write_psymtabs_to_index): Use htab_up.
11976 * dwarf2loc.c (func_verify_no_selftailcall)
11977 (call_site_find_chain_1, func_verify_no_selftailcall)
11978 (chain_candidate, call_site_find_chain_1): Use std::unordered_set,
11979 std::vector, gdb::unique_xmalloc_ptr.
11980 (call_sitep): Remove typedef.
11981 (dwarf2_locexpr_baton_eval): Remove unused variable.
11982
8dbcee67
TT
119832017-01-10 Tom Tromey <tom@tromey.com>
11984
11985 * python/python-internal.h (make_cleanup_py_decref)
11986 (make_cleanup_py_xdecref): Don't declare.
11987 * python/py-utils.c (py_decref, make_cleanup_py_decref)
11988 (py_xdecref, make_cleanup_py_xdecref): Remove.
11989
13df46cc
TT
119902017-01-10 Tom Tromey <tom@tromey.com>
11991
11992 * python/py-framefilter.c (py_mi_print_variables): Use gdbpy_ref.
11993 (py_print_locals, enumerate_locals, py_print_args): Use gdbpy_ref.
11994
06fc9bf7
TT
119952017-01-10 Tom Tromey <tom@tromey.com>
11996
11997 * python/py-framefilter.c (enumerate_args): Use gdbpy_ref.
11998
830a4934
TT
119992017-01-10 Tom Tromey <tom@tromey.com>
12000
12001 * python/py-utils.c (unicode_to_encoded_string)
12002 (python_string_to_target_string)
12003 (python_string_to_target_python_string)
12004 (python_string_to_host_string, gdbpy_obj_to_string)
12005 (get_addr_from_python): Use gdbpy_ref.
12006
4586d543
TT
120072017-01-10 Tom Tromey <tom@tromey.com>
12008
12009 * python/py-unwind.c (pyuw_object_attribute_to_pointer): Use
12010 gdbpy_ref.
12011
59876f8f
TT
120122017-01-10 Tom Tromey <tom@tromey.com>
12013
12014 * python/python.c (eval_python_command, gdbpy_decode_line)
12015 (gdbpy_run_events, gdbpy_start_type_printers)
12016 (gdbpy_apply_type_printers): Use gdbpy_ref.
12017
97d83487
TT
120182017-01-10 Tom Tromey <tom@tromey.com>
12019
12020 * python/py-param.c (get_doc_string, compute_enum_values): Use
12021 gdbpy_ref.
12022
9205649a
TT
120232017-01-10 Tom Tromey <tom@tromey.com>
12024
12025 * python/py-inferior.c (find_thread_object, build_inferior_list):
12026 Use gdbpy_ref.
12027
74c49d45
TT
120282017-01-10 Tom Tromey <tom@tromey.com>
12029
12030 * python/py-framefilter.c (py_print_frame): Use gdbpy_ref.
12031
16361ffb
TT
120322017-01-10 Tom Tromey <tom@tromey.com>
12033
12034 * python/py-finishbreakpoint.c (bpfinishpy_out_of_scope): Use
12035 gdbpy_ref.
12036
905f2cca
TT
120372017-01-10 Tom Tromey <tom@tromey.com>
12038
12039 * python/py-cmd.c (cmdpy_completer_helper): Use gdbpy_ref. Remove
12040 extra incref.
12041 (cmdpy_completer_handle_brkchars, cmdpy_completer, cmdpy_init):
12042 Use gdbpy_ref.
12043
64081434
TT
120442017-01-10 Tom Tromey <tom@tromey.com>
12045
12046 * python/py-breakpoint.c (gdbpy_breakpoint_cond_says_stop): Use
12047 gdbpy_ref.
12048
59e9e831
TT
120492017-01-10 Tom Tromey <tom@tromey.com>
12050
12051 * python/py-arch.c (archpy_disassemble): Use gdbpy_ref. Don't
12052 decref results of PyArg_ParseTupleAndKeywords.
12053
9de10f6d
TT
120542017-01-10 Tom Tromey <tom@tromey.com>
12055
12056 * python/python.c (python_run_simple_file): Use
12057 unique_xmalloc_ptr, gdbpy_ref.
12058
2bd5759d
TT
120592017-01-10 Tom Tromey <tom@tromey.com>
12060
12061 * python/py-prettyprint.c (print_stack_unless_memory_error)
12062 (print_string_repr, print_children): Use gdbpy_ref.
12063 (dummy_python_frame): New class.
12064 (dummy_python_frame::dummy_python_frame): Rename from
12065 push_dummy_python_frame.
12066 (py_restore_tstate): Remove.
12067
3b4e0e01
TT
120682017-01-10 Tom Tromey <tom@tromey.com>
12069
12070 * python/py-framefilter.c (py_print_frame): Use gdbpy_ref.
12071
17a22718
TT
120722017-01-10 Tom Tromey <tom@tromey.com>
12073
12074 * python/python.c (ensure_python_env, restore_python_env):
12075 Remove.
12076 * python/python-internal.h (ensure_python_env): Don't declare.
12077 * varobj.h (varobj_ensure_python_env): Don't declare.
12078 * varobj.c (varobj_ensure_python_env): Remove.
12079
68cdc557
TT
120802017-01-10 Tom Tromey <tom@tromey.com>
12081
12082 * varobj.c (varobj_value_get_print_value): Use
12083 gdbpy_enter_varobj.
12084
1eba6383
TT
120852017-01-10 Tom Tromey <tom@tromey.com>
12086
12087 * python/py-prettyprint.c (print_string_repr, print_children):
12088 Update.
12089 * python/py-lazy-string.c (gdbpy_extract_lazy_string): Change type
12090 of "encoding".
12091 * varobj.c (varobj_value_get_print_value): Update.
12092 * python/python-internal.h (gdbpy_extract_lazy_string): Update.
12093
bde7b3e3
TT
120942017-01-10 Tom Tromey <tom@tromey.com>
12095
12096 * varobj.c (varobj_get_display_hint)
12097 (dynamic_varobj_has_child_method, install_new_value_visualizer)
12098 (varobj_set_visualizer, free_variable): Use
12099 gdbpy_enter_varobj.
12100
a7785f8c
TT
121012017-01-10 Tom Tromey <tom@tromey.com>
12102
12103 * python/python.c (python_command): Use gdbpy_enter, gdbpy_ref.
12104 (do_finish_initialization): New function. Use gdbpy_ref.
12105 (gdbpy_finish_initialization): Use gdbpy_enter. Call
12106 do_finish_initialization.
12107
2865bfce
TT
121082017-01-10 Tom Tromey <tom@tromey.com>
12109
12110 * python/py-param.c (get_set_value, get_show_value): Use
12111 gdbpy_enter, gdbpy_ref.
12112
0e9dcc75
TT
121132017-01-10 Tom Tromey <tom@tromey.com>
12114
12115 * python/py-function.c (fnpy_call): Use gdbpy_enter, gdbpy_ref.
12116
12a5cedd
TT
121172017-01-10 Tom Tromey <tom@tromey.com>
12118
12119 * python/py-cmd.c (cmdpy_function): Use gdbpy_enter, gdbpy_ref.
12120
788f2586
TT
121212017-01-10 Tom Tromey <tom@tromey.com>
12122
12123 * python/py-varobj.c (py_varobj_iter_dtor, py_varobj_iter_next):
12124 Use gdbpy_enter_varobj.
12125
6cd67bea
TT
121262017-01-10 Tom Tromey <tom@tromey.com>
12127
12128 * varobj.c (gdbpy_enter_varobj): New constructor.
12129 * python/python-internal.h (gdbpy_enter_varobj): New class.
12130 * python/py-varobj.c (py_varobj_get_iterator): Use
12131 gdbpy_enter_varobj.
12132
14b122bf
TT
121332017-01-10 Tom Tromey <tom@tromey.com>
12134
12135 * python/py-xmethods.c (gdbpy_get_xmethod_result_type): Use
12136 gdbpy_enter, gdbpy_ref, unique_xmalloc_ptr.
12137 (gdbpy_invoke_xmethod): Use gdbpy_ref, gdbpy_enter.
12138 (gdbpy_get_xmethod_arg_types): Use gdbpy_ref,
12139 unique_xmalloc_ptr.
12140 (gdbpy_get_xmethod_arg_types): Use gdbpy_ref, gdbpy_enter.
12141
bf1ca3b9
TT
121422017-01-10 Tom Tromey <tom@tromey.com>
12143
12144 * python/py-xmethods.c (invoke_match_method): Use
12145 gdbpy_ref.
12146
572a5524
TT
121472017-01-10 Tom Tromey <tom@tromey.com>
12148
12149 * python/py-xmethods.c (gdbpy_get_matching_xmethod_workers): use
12150 gdbpy_enter, gdbpy_ref.
12151
396a78b6
TT
121522017-01-10 Tom Tromey <tom@tromey.com>
12153
12154 * python/python.c (python_interactive_command): Use gdbpy_enter.
12155
a88b13c7
TT
121562017-01-10 Tom Tromey <tom@tromey.com>
12157
12158 * python/python.c (gdbpy_before_prompt_hook): Use gdbpy_enter,
12159 gdbpy_ref.
12160
e9f0c363
TT
121612017-01-10 Tom Tromey <tom@tromey.com>
12162
12163 * python/py-prettyprint.c (gdbpy_apply_val_pretty_printer): Use
12164 gdbpy_enter, gdbpy_ref, unique_xmalloc_ptr.
12165
6349f452
TT
121662017-01-10 Tom Tromey <tom@tromey.com>
12167
12168 * utils.h (htab_deleter): New struct.
12169 (htab_up): New typedef.
12170 * python/py-framefilter.c (gdbpy_apply_frame_filter): Use
12171 gdbpy_enter, gdbpy_ref, htab_up.
12172
c0171de6
TT
121732017-01-10 Tom Tromey <tom@tromey.com>
12174
12175 * python/py-unwind.c (pending_frame_invalidate): Remove.
12176 (pyuw_sniffer): Use gdbpy_enter and gdbpy_ref.
12177
f18e226f
TT
121782017-01-10 Tom Tromey <tom@tromey.com>
12179
12180 * python/py-xmethods.c (gdbpy_free_xmethod_worker_data)
12181 (gdbpy_clone_xmethod_worker_data): Use gdbpy_enter.
12182
c57af3f1
TT
121832017-01-10 Tom Tromey <tom@tromey.com>
12184
12185 * python/py-type.c (save_objfile_types): Use gdbpy_enter.
12186
60e600ec
TT
121872017-01-10 Tom Tromey <tom@tromey.com>
12188
12189 * python/python.c (gdbpy_eval_from_control_command)
12190 (gdbpy_source_script, gdbpy_run_events)
12191 (gdbpy_source_objfile_script, gdbpy_execute_objfile_script)
12192 (gdbpy_free_type_printers, gdbpy_finish_initialization): Use
12193 gdbpy_enter.
12194
bf7da5b0
TT
121952017-01-10 Tom Tromey <tom@tromey.com>
12196
12197 * python/py-progspace.c (py_free_pspace): Use gdbpy_enter.
12198
2d38bced
TT
121992017-01-10 Tom Tromey <tom@tromey.com>
12200
12201 * python/py-objfile.c (py_free_objfile): Use gdbpy_enter.
12202
07bc7329
TT
122032017-01-10 Tom Tromey <tom@tromey.com>
12204
12205 * python/py-inferior.c (python_on_normal_stop, python_on_resume)
12206 (python_on_inferior_call_pre, python_on_inferior_call_post)
12207 (python_on_memory_change, python_on_register_change)
12208 (python_inferior_exit, python_new_objfile, add_thread_object)
12209 (delete_thread_object, py_free_inferior): Use gdbpy_enter.
12210
6e7c365e
TT
122112017-01-10 Tom Tromey <tom@tromey.com>
12212
12213 * python/py-finishbreakpoint.c (bpfinishpy_handle_stop)
12214 (bpfinishpy_handle_exit): Use gdbpy_enter.
12215
6ba0cd40
TT
122162017-01-10 Tom Tromey <tom@tromey.com>
12217
12218 * python/py-cmd.c (cmdpy_destroyer)
12219 (cmdpy_completer_handle_brkchars, cmdpy_completer): Use
12220 gdbpy_enter.
12221
de2dc875
TT
122222017-01-10 Tom Tromey <tom@tromey.com>
12223
12224 * python/py-breakpoint.c (gdbpy_breakpoint_cond_says_stop): Use
12225 gdbpy_enter.
12226 (gdbpy_breakpoint_has_cond): Likewise.
12227
4ecee2c4
TT
122282017-01-10 Tom Tromey <tom@tromey.com>
12229
12230 * python/python.c (gdbpy_enter): New constructor.
12231 (~gdbpy_enter): New destructor.
12232 (restore_python_env, ensure_python_env): Rewrite.
12233 * python/python-internal.h (gdbpy_enter): New class.
12234
37fce74f
TT
122352017-01-10 Tom Tromey <tom@tromey.com>
12236
12237 * python/py-symbol.c (gdbpy_lookup_symbol): Use gdbpy_ref.
12238
53a0cca3
TT
122392017-01-10 Tom Tromey <tom@tromey.com>
12240
12241 * python/py-value.c (value_has_field, get_field_flag)
12242 (get_field_type, valpy_getitem, convert_value_from_python): Use
12243 gdbpy_ref.
12244
ff3724f5
TT
122452017-01-10 Tom Tromey <tom@tromey.com>
12246
12247 * python/python.c (gdbpy_progspaces, gdbpy_objfiles): Use
12248 gdbpy_ref.
12249
0700aea5
TT
122502017-01-10 Tom Tromey <tom@tromey.com>
12251
12252 * python/py-prettyprint.c (search_pp_list)
12253 (find_pretty_printer_from_objfiles)
12254 (find_pretty_printer_from_progspace)
12255 (find_pretty_printer_from_gdb, find_pretty_printer)
12256 (gdbpy_get_display_hint, gdbpy_get_varobj_pretty_printer): Use
12257 gdbpy_ref.
12258
1bb44c9f
TT
122592017-01-10 Tom Tromey <tom@tromey.com>
12260
12261 * python/py-param.c (call_doc_function): Use gdbpy_ref.
12262
87ce03fd
TT
122632017-01-10 Tom Tromey <tom@tromey.com>
12264
12265 * python/py-linetable.c (build_line_table_tuple_from_pcs)
12266 (ltpy_get_all_source_lines): Use gdbpy_ref.
12267
ee0a3fb8
TT
122682017-01-10 Tom Tromey <tom@tromey.com>
12269
12270 * python/py-framefilter.c (extract_sym, extract_value)
12271 (get_py_iter_from_func, bootstrap_python_frame_filters): Use
12272 gdbpy_ref.
12273
bf2a52fa
TT
122742017-01-10 Tom Tromey <tom@tromey.com>
12275
12276 * python/py-breakpoint.c (gdbpy_breakpoints): Use gdbpy_ref.
12277
f59fe7f8
TT
122782017-01-10 Tom Tromey <tom@tromey.com>
12279
12280 * python/py-inferior.c (gdbpy_inferiors): Use gdbpy_ref.
12281
80bd970a
TT
122822017-01-10 Tom Tromey <tom@tromey.com>
12283
12284 * python/py-function.c (convert_values_to_python, fnpy_init): Use
12285 gdbpy_ref.
12286
d1b3de2e
TT
122872017-01-10 Tom Tromey <tom@tromey.com>
12288
12289 * python/py-cmd.c (gdbpy_string_to_argv): Use gdbpy_ref.
12290
3bb43384
TT
122912017-01-10 Tom Tromey <tom@tromey.com>
12292
12293 * python/py-type.c (convert_field, make_fielditem, typy_fields)
12294 (typy_range): Use gdbpy_ref.
12295
abf5651e
TT
122962017-01-10 Tom Tromey <tom@tromey.com>
12297
12298 * python/py-threadevent.c (create_thread_event_object): Use
12299 gdbpy_ref.
12300 * python/py-stopevent.c (create_stop_event_object): Simplify.
12301 (emit_stop_event): Use gdbpy_ref.
12302 * python/py-signalevent.c (create_signal_event_object): Use
12303 gdbpy_ref.
12304 * python/py-newobjfileevent.c (create_new_objfile_event_object)
12305 (emit_new_objfile_event, create_clear_objfiles_event_object)
12306 (emit_clear_objfiles_event): Use gdbpy_ref.
12307 * python/py-infevents.c (create_inferior_call_event_object)
12308 (create_register_changed_event_object)
12309 (create_memory_changed_event_object, emit_inferior_call_event)
12310 (emit_memory_changed_event, emit_register_changed_event): Use
12311 gdbpy_ref.
12312 * python/py-exitedevent.c (create_exited_event_object)
12313 (emit_exited_event): Use gdbpy_ref.
12314 * python/py-event.h (evpy_emit_event): Remove
12315 CPYCHECKER_STEALS_REFERENCE_TO_ARG annotation.
12316 * python/py-event.c (evpy_emit_event): Use gdbpy_ref.
12317 * python/py-continueevent.c (emit_continue_event): Use
12318 gdbpy_ref.
12319 * python/py-breakpoint.c (gdbpy_breakpoint_created)
12320 (gdbpy_breakpoint_deleted, gdbpy_breakpoint_modified): Use
12321 gdbpy_ref.
12322 * python/py-bpevent.c (create_breakpoint_event_object): Use
12323 gdbpy_ref.
12324
a68ff33e
TT
123252017-01-10 Tom Tromey <tom@tromey.com>
12326
12327 * python/py-ref.h: New file.
12328
7becfd03
SM
123292017-01-10 Simon Marchi <simon.marchi@ericsson.com>
12330
12331 * cli-out.c (cli_ui_out::do_redirect): Change return type to
12332 void.
12333 * cli-out.h (cli_ui_out::do_redirect): Likewise.
12334 * mi/mi-out.c (mi_ui_out::do_redirect): Likewise.
12335 * mi/mi-out.h (mi_ui_out::do_redirect): Likewise.
12336 * ui-out.c (ui_out::redirect): Likewise.
12337 * ui-out.h (ui_out::redirect, ui_out::do_redirect): Likewise.
12338 * cli/cli-logging.c (set_logging_redirect): Update call site of
12339 ui_out::redirect.
12340 (handle_redirections): Likewise.
12341 * scm-ports.c (ioscm_with_output_to_port_worker): Likewise.
12342 * top.c (execute_command_to_string): Likewise.
12343 * utils.c (do_ui_out_redirect_pop): Likewise.
12344
df294654
SM
123452017-01-10 Simon Marchi <simon.marchi@ericsson.com>
12346
12347 * stack.c (_initialize_stack): Update "frame" command help message.
12348
f5e6296e
IB
123492017-01-08 Iain Buclaw <ibuclaw@gdcproject.org>
12350
12351 * d-exp.y (CastExpression): Emit UNOP_CAST_TYPE.
12352
0e2d6fa6
YQ
123532017-01-06 Yao Qi <yao.qi@linaro.org>
12354
12355 * x86-linux-nat.h: Include gdb_proc_service.h.
12356
44d6d3f9
YQ
123572017-01-06 Yao Qi <yao.qi@linaro.org>
12358
12359 * ser-base.h: Include serial.h.
12360
656731fe
YQ
123612017-01-06 Yao Qi <yao.qi@linaro.org>
12362
12363 * ppc-linux-tdep.h: Include ppc-tdep.h.
12364
1ca8f924
YQ
123652017-01-06 Yao Qi <yao.qi@linaro.org>
12366
12367 * nat/amd64-linux-siginfo.h: Include signal.h.
12368
bc3008c4
YQ
123692017-01-06 Yao Qi <yao.qi@linaro.org>
12370
12371 * nat/aarch64-linux-hw-point.h: Include break-common.h.
12372
66c80d03
YQ
123732017-01-06 Yao Qi <yao.qi@linaro.org>
12374
12375 * mi/mi-parse.h: Include mi-cmds.h.
12376
051d2dda
YQ
123772017-01-06 Yao Qi <yao.qi@linaro.org>
12378
12379 * inf-loop.c: Don't include "target.h".
12380 * inf-loop.h: Include it here.
12381
8018d34f
YQ
123822017-01-06 Yao Qi <yao.qi@linaro.org>
12383
12384 * dfp.h: Include "dboulest.h" and "expression.h".
12385
c0b8369c
YQ
123862017-01-06 Yao Qi <yao.qi@linaro.org>
12387
12388 * ax-gdb.h: Include "ax.h".
12389
ad5cba2a
YQ
123902017-01-06 Yao Qi <yao.qi@linaro.org>
12391
12392 * Makefile.in (HFILES_NO_SRCDIR): Replace gdb_ptrace.h
12393 with nat/gdb_ptrace.h.
12394
1c33cd7f
YQ
123952017-01-05 Yao Qi <yao.qi@linaro.org>
12396
12397 * mips-fbsd-tdep.c (mips_fbsd_sigframe_init): Move && to
12398 new line.
12399 (mips64_fbsd_sigframe_init): Likewise.
12400
c988ac1d
JB
124012017-01-04 John Baldwin <jhb@FreeBSD.org>
12402
12403 * mips-fbsd-tdep.c (_initialize_mips_fbsd_tdep): Use
12404 GDB_OSABI_FREEBSD instead of GDB_OSABI_FREEBSD_ELF.
12405
b268007c
JB
124062017-01-04 John Baldwin <jhb@FreeBSD.org>
12407
12408 * Makefile.in (ALLDEPFILES): Add mips-fbsd-nat.c.
12409 * NEWS: Mention new FreeBSD/mips native configuration.
12410 * config/mips/fbsd.mh: New file.
12411 * configure.host: Add mips*-*-freebsd*.
12412 * mips-fbsd-nat.c: New file.
12413
387360da
JB
124142017-01-04 John Baldwin <jhb@FreeBSD.org>
12415
12416 * Makefile.in (ALL_TARGET_OBS): Add mips-fbsd-tdep.o.
12417 (ALLDEPFILES): Add mips-fbsd-tdep.c.
12418 * NEWS: Mention new FreeBSD/mips target.
12419 * configure.tgt: Add mips*-*-freebsd*.
12420 * mips-fbsd-tdep.c: New file.
12421 * mips-fbsd-tdep.h: New file.
12422
2aaaf250
YQ
124232017-01-04 Yao Qi <yao.qi@linaro.org>
12424
12425 * dwarf2loc.c (write_pieced_value): Don't use VALUE_FRAME_ID (to),
12426 use c->frame_id when the piece location is DWARF_VALUE_REGISTER.
12427
61baf725
JB
124282017-01-01 Joel Brobecker <brobecker@adacore.com>
12429
6dbb839a 12430 Update copyright year range in all GDB files.
61baf725 12431
c113e7ff 124322017-01-01 Joel Brobecker <brobecker@adacore.com>
ce0db137 12433
c113e7ff 12434 * config/djgpp/fnchange.lst: Add entry for gdb/ChangeLog-2016.
ce0db137 12435
c113e7ff 12436For older changes see ChangeLog-2016.
c906108c
SS
12437\f
12438Local Variables:
12439mode: change-log
12440left-margin: 8
12441fill-column: 74
12442version-control: never
57da7796 12443coding: utf-8
c906108c 12444End:
This page took 3.877082 seconds and 4 git commands to generate.