]> git.ipfire.org Git - thirdparty/binutils-gdb.git/blob - gdb/ChangeLog
Use TOLOWER in SYMBOL_HASH_NEXT
[thirdparty/binutils-gdb.git] / gdb / ChangeLog
1 2017-11-25 Pedro Alves <palves@redhat.com>
2
3 * dictionary.c: Include "safe-ctype.h".
4 * minsyms.c: Include "safe-ctype.h".
5 * minsyms.c (SYMBOL_HASH_NEXT): Use TOLOWER instead of tolower.
6
7 2017-11-25 Pedro Alves <palves@redhat.com>
8
9 * completer.c (complete_line_internal_1): Skip spaces until the
10 start of the command.
11
12 2017-11-24 Pedro Alves <palves@redhat.com>
13
14 * cp-support.c (cp_symbol_name_matches_1): New, factored out from
15 cp_fq_symbol_name_matches. Pass language_cplus to
16 strncmp_with_mode.
17 (cp_fq_symbol_name_matches): Call cp_symbol_name_matches_1.
18 (selftests::test_cp_symbol_name_cmp): New.
19 (_initialize_cp_support): Register "cp_symbol_name_matches"
20 selftests.
21 * language.c (default_symbol_name_matcher): Pass language_minimal
22 to strncmp_iw_with_mode.
23 * utils.c: Include "cp-support.h" and <algorithm>.
24 (valid_identifier_name_char, cp_skip_operator_token, skip_ws)
25 (cp_is_operator): New functions.
26 (strncmp_iw_with_mode): Use them. Add language parameter. Don't
27 skip whitespace in the symbol name when the lookup name doesn't
28 have spaces, and vice versa.
29 (strncmp_iw, strcmp_iw): Pass language to strncmp_iw_with_mode.
30 * utils.h (strncmp_iw_with_mode): Add language parameter.
31
32 2017-11-24 Joel Brobecker <brobecker@adacore.com>
33
34 * ada-lang.c (ada_exception_message_1, ada_exception_message):
35 New functions.
36 (print_it_exception): If available, display the exception
37 message as well.
38 * NEWS: Document new feature.
39
40 2017-11-24 Ulrich Weigand <uweigand@de.ibm.com>
41
42 * configure.nat <spu-linux>: Add fork-inferior.o to NATDEPFILES.
43
44 2017-11-24 Philipp Rudo <prudo@linux.vnet.ibm.com>
45
46 * dtrace-probe.c (dtrace_probe::build_arg_exprs)
47 (dtrace_probe::is_enabled, dtrace_probe::enable)
48 (dtrace_probe::disable): Remove keyword 'struct' at for-range
49 variable
50 * probe.c (gen_ui_out_table_header_info)
51 (print_ui_out_not_applicables): Remove keyword 'struct' at
52 for-range variable
53
54 2017-11-24 Alan Hayward <alan.hayward@arm.com>
55
56 * configure.tgt: Add arch/aarch64.o
57
58 2017-11-24 Simon Marchi <simon.marchi@polymtl.ca>
59
60 * common/common-utils.h: Include poison.h.
61 (xfree): Remove declaration, add definition with static_assert.
62 * common/common-utils.c (xfree): Remove.
63 * common/poison.h (IsMallocatable): Define.
64 (IsFreeable): Define.
65 (free): Delete for non-freeable types.
66 (xnew): New.
67 (XNEW): Undef and redefine.
68 (xcnew): New.
69 (XCNEW): Undef and redefine.
70 (xdelete): New.
71 (XDELETE): Undef and redefine.
72 (xnewvec): New.
73 (XNEWVEC): Undef and redefine.
74 (xcnewvec): New.
75 (XCNEWVEC): Undef and redefine.
76 (xresizevec): New.
77 (XRESIZEVEC): Undef and redefine.
78 (xdeletevec): New.
79 (XDELETEVEC): Undef and redefine.
80 (xnewvar): New.
81 (XNEWVAR): Undef and redefine.
82 (xcnewvar): New.
83 (XCNEWVAR): Undef and redefine.
84 (xresizevar): New.
85 (XRESIZEVAR): Undef and redefine.
86
87 2017-11-24 Simon Marchi <simon.marchi@polymtl.ca>
88
89 * gdbthread.h (private_thread_info): Define structure type, add
90 virtual pure destructor.
91 (thread_info) <priv>: Change type to unique_ptr.
92 <private_dtor>: Remove.
93 * thread.c (add_thread_with_info): Adjust to use of unique_ptr.
94 (private_thread_info::~private_thread_info): Provide default
95 implementation.
96 (thread_info::~thread_info): Don't call private_dtor nor
97 manually free priv.
98 * aix-thread.c (private_thread_info): Rename to ...
99 (aix_thread_info): ... this.
100 (get_aix_thread_info): New.
101 (sync_threadlists): Adjust.
102 (iter_tid): Adjust.
103 (aix_thread_resume): Adjust.
104 (aix_thread_fetch_registers): Adjust.
105 (aix_thread_store_registers): Adjust.
106 (aix_thread_extra_thread_info): Adjust.
107 * darwin-nat.h (private_thread_info): Rename to ...
108 (darwin_thread_info): ... this.
109 (get_darwin_thread_info): New.
110 * darwin-nat.c (darwin_init_thread_list): Adjust.
111 (darwin_check_new_threads): Adjust.
112 (thread_info_from_private_thread_info): Adjust.
113 * linux-thread-db.c (private_thread_info): Rename to ...
114 (thread_db_thread_info): ... this, initialize fields.
115 (get_thread_db_thread_info): New.
116 <dying>: Change type to bool.
117 (update_thread_state): Adjust to type rename.
118 (record_thread): Adjust to type rename an use of unique_ptr.
119 (thread_db_pid_to_str): Likewise.
120 (thread_db_extra_thread_info): Likewise.
121 (thread_db_thread_handle_to_thread_info): Likewise.
122 (thread_db_get_thread_local_address): Likewise.
123 * nto-tdep.h (private_thread_info): Rename to ...
124 (nto_thread_info): ... this, initialize fields.
125 (get_nto_thread_info): New.
126 <name>: Change type to std::string.
127 * nto-tdep.c (nto_extra_thread_info): Adjust to type rename and
128 use of unique_ptr.
129 * nto-procfs.c (update_thread_private_data_name): Adjust to
130 std::string change, allocate nto_private_thread_info with new.
131 (update_thread_private_data): Adjust to unique_ptr.
132 * remote.c (private_thread_info): Rename to ...
133 (remote_thread_info): ... this, initialize data members with
134 default values.
135 <extra, name>: Change type to std::string.
136 <thread_handle>: Change type to non-pointer.
137 (free_private_thread_info): Remove.
138 (get_private_info_thread): Rename to...
139 (get_remote_thread_info): ... this, change return type, adjust to
140 use of unique_ptr, use remote_thread_info constructor.
141 (remote_add_thread): Adjust.
142 (get_private_info_ptid): Rename to...
143 (get_remote_thread_info): ...this, change return type.
144 (remote_thread_name): Use get_remote_thread_info, adjust to
145 change to std::string.
146 (struct thread_item) <~thread_item>: Remove.
147 <thread_handle>: Make non pointer.
148 (start_thread): Adjust to thread_item::thread_handle type
149 change.
150 (remote_update_thread_list): Adjust to type name change, move
151 strings from temporary to long-lived object instead of
152 duplicating.
153 (remote_threads_extra_info): Use get_remote_thread_info.
154 (process_initial_stop_replies): Likewise.
155 (resume_clear_thread_private_info): Likewise.
156 (remote_resume): Adjust to type name change.
157 (remote_commit_resume): Use get_remote_thread_info.
158 (process_stop_reply): Adjust to type name change.
159 (remote_stopped_by_sw_breakpoint): Use get_remote_thread_info.
160 (remote_stopped_by_hw_breakpoint): Likewise.
161 (remote_stopped_by_watchpoint): Likewise.
162 (remote_stopped_data_address): Likewise.
163 (remote_core_of_thread): Likewise.
164 (remote_thread_handle_to_thread_info): Use
165 get_private_info_thread, adjust to thread_handle field type
166 change.
167
168 2017-11-24 Simon Marchi <simon.marchi@polymtl.ca>
169
170 * remote.c (struct thread_item): Add constructor, disable copy
171 construction and copy assignment, define default move
172 construction and move assignment.
173 <extra, name>: Change type to std::string.
174 <core>: Initialize.
175 <thread_handle>: Make non-pointer.
176 (thread_item_t): Remove typedef.
177 (DEF_VEC_O(thread_item_t)): Remove.
178 (threads_listing_context) <contains_thread>: New method.
179 <remove_thread>: New method.
180 <items>: Change type to std::vector.
181 (clear_threads_listing_context): Remove.
182 (threads_listing_context_remove): Remove.
183 (remote_newthread_step): Use thread_item constructor, adjust to
184 change to std::vector.
185 (start_thread): Use thread_item constructor, adjust to change to
186 std::vector.
187 (end_thread): Adjust to change to std::vector and std::string.
188 (remote_get_threads_with_qthreadinfo): Use thread_item
189 constructor, adjust to std::vector.
190 (remote_update_thread_list): Adjust to change to std::vector and
191 std::string, use threads_listing_context methods.
192 (remove_child_of_pending_fork): Adjust.
193 (remove_new_fork_children): Adjust.
194 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add rsp-low-selftests.c.
195 (SUBDIR_UNITTESTS_OBS): Add rsp-low-selftests.o.
196 * unittests/rsp-low-selftests.c: New file.
197 * common/rsp-low.h: Include common/byte-vector.h.
198 (hex2bin): New overload.
199 * common/rsp-low.c (hex2bin): New overload.
200
201 2017-11-24 Simon Marchi <simon.marchi@ericsson.com>
202
203 * inferior.h (private_inferior): Define structure type, add
204 virtual pure destructor.
205 (inferior) <priv>: Change type to unique_ptr.
206 * inferior.c (private_inferior::~private_inferior): Provide
207 default implementation.
208 (inferior::~inferior): Don't free priv field.
209 (exit_inferior_1): Likewise.
210 * darwin-nat.h (struct darwin_exception_info): Initialize fields.
211 (darwin_exception_info): Remove typedef.
212 (DEF_VEC_O (darwin_thread_t)); Remove.
213 (private_inferior): Rename to ...
214 (darwin_private_inferior): ... this, extend private_inferior.
215 (get_darwin_inferior): New.
216 <threads>: Change type to std::vector of darwin_thread_t pointers.
217 * darwin-nat.c (darwin_check_new_threads): Adjust.
218 (find_inferior_task_it): Adjust.
219 (darwin_find_thread); Adjust.
220 (darwin_suspend_inferior): Adjust.
221 (darwin_resume_inferior): Adjust.
222 (darwin_find_new_inferior): Adjust.
223 (darwin_decode_notify_message): Adjust.
224 (darwin_send_reply): Adjust.
225 (darwin_resume_inferior_threads): Adjust.
226 (darwin_suspend_inferior_threads): Adjust.
227 (darwin_decode_message): Adjust.
228 (darwin_wait): Adjust.
229 (darwin_interrupt): Adjust.
230 (darwin_deallocate_threads): Adjust.
231 (darwin_mourn_inferior): Adjust, don't free private data.
232 (darwin_reply_to_all_pending_messages): Adjust.
233 (darwin_stop_inferior): Adjust.
234 (darwin_setup_exceptions): Adjust.
235 (darwin_kill_inferior): Adjust.
236 (darwin_setup_request_notification): Adjust.
237 (darwin_attach_pid): Adjust.
238 (darwin_init_thread_list): Adjust.
239 (darwin_setup_fake_stop_event): Adjust.
240 (darwin_attach): Adjust.
241 (darwin_detach): Adjust.
242 (darwin_xfer_partial): Adjust.
243 (set_enable_mach_exceptions): Adjust.
244 (darwin_pid_to_exec_file): Adjust.
245 (darwin_get_ada_task_ptid): Adjust.
246 * darwin-nat-info.c (get_task_from_args): Adjust.
247 (info_mach_ports_command): Adjust.
248 (info_mach_region_command): Adjust.
249 (info_mach_exceptions_command): Adjust.
250 * remote.c (private_inferior): Rename to ...
251 (remote_private_inferior): ... this, initialize fields.
252 (get_remote_inferior); New.
253 (remote_commit_resume): Use get_remote_inferior.
254 (check_pending_event_prevents_wildcard_vcont_callback): Likewise.
255
256 2017-11-24 Pedro Alves <palves@redhat.com>
257
258 * NEWS: Mention linespecs and explicit locations, and completion
259 improvements.
260
261 2017-11-24 Yao Qi <yao.qi@linaro.org>
262
263 * regcache.c (regcache::dump): Remove footnote_register_size.
264
265 2017-11-24 Yao Qi <yao.qi@linaro.org>
266
267 * regcache.c (cooked_read_test): Add more test for readonly
268 regcache.
269
270 2017-11-24 Yao Qi <yao.qi@linaro.org>
271
272 * gdbarch-selftests.c (test_target_has_registers): Move it to
273 target.c.
274 (test_target_has_stack): Likewise.
275 (test_target_has_memory): Likewise.
276 (test_target_prepare_to_store): Likewise.
277 (test_target_store_registers): Likewise.
278 (test_target_ops): Likewise.
279 * regcache.c: Include selftest-arch.h and gdbthread.h.
280 (target_ops_no_register): New class.
281 (test_target_fetch_registers): New.
282 (test_target_store_registers): New.
283 (test_target_xfer_partial): New.
284 (readwrite_regcache): New.
285 (cooked_read_test): New.
286 (_initialize_regcache): Register the test.
287 * target.c: (test_target_has_registers): Moved from
288 gdbarch-selftests.c.
289 (test_target_has_stack): Likewise.
290 (test_target_has_memory): Likewise.
291 (test_target_prepare_to_store): Likewise.
292 (test_target_store_registers): Likewise.
293 * target.h (test_target_ops): New class.
294
295 2017-11-24 Alan Hayward <alan.hayward@arm.com>
296
297 * aarch64-tdep.c (_initialize_aarch64_tdep): Add target desc
298 selftest.
299
300 2017-11-24 Alan Hayward <alan.hayward@arm.com>
301
302 * aarch64-tdep.c (_initialize_aarch64_tdep): Remove init.
303 * arch/aarch64.c (aarch64_create_target_description): Create
304 new target description.
305 * features/Makefile: Add new files.
306 * features/aarch64.c: Remove file.
307 * features/aarch64-core.c: New autogenerated file.
308 * features/aarch64-fpu.c: New autogenerated file.
309 * target-descriptions.c (maint_print_c_tdesc_cmd): Check for aarch64.
310
311 2017-11-24 Alan Hayward <alan.hayward@arm.com>
312
313 * Makefile.in: Add new files.
314 * aarch64-linux-nat.c (aarch64_linux_read_description): Call
315 aarch64_read_description.
316 * aarch64-linux-tdep.c (aarch64_linux_core_read_description):
317 Call aarch64_read_description.
318 * aarch64-tdep.c (aarch64_read_description): New function.
319 (aarch64_gdbarch_init): Call aarch64_read_description.
320 * aarch64-tdep.h (aarch64_read_description): New function.
321 * arch/aarch64.c: New file.
322 * configure.tgt: Add new files.
323
324 2017-11-24 Yao Qi <yao.qi@linaro.org>
325
326 * mi/mi-main.c (register_changed_p): Update.
327 * value.c (value_contents_bits_eq): Change return type.
328 (value_contents_eq): Likewise.
329 * value.h: Update comments.
330
331 2017-11-24 Yao Qi <yao.qi@linaro.org>
332
333 * mi/mi-main.c (mi_cmd_data_list_changed_registers): Remove
334 local 'changed'. Remove error.
335 (register_changed_p): Change return type to bool.
336
337 2017-11-24 Yao Qi <yao.qi@linaro.org>
338
339 * arch/tic6x.c: New file.
340 * arch/tic6x.h: New file.
341 * features/Makefile (FEATURE_XMLFILES): Add tic6x-c6xp.xml,
342 tic6x-core.xml and tic6x-gp.xml.
343 * features/tic6x-c6xp.c: Generated.
344 * features/tic6x-core.c: Generated.
345 * features/tic6x-gp.c: Generated.
346 * target-descriptions.c (maint_print_c_tdesc_cmd): Match
347 "tic6x-".
348
349 2017-11-23 Simon Marchi <simon.marchi@ericsson.com>
350
351 * mi/mi-main.c (list_available_thread_groups): Change map value
352 type to std::vector.
353
354 2017-11-23 Simon Marchi <simon.marchi@ericsson.com>
355
356 * osdata.c (osdata_end_column, get_osdata): Remove std::move.
357
358 2017-11-23 Simon Marchi <simon.marchi@ericsson.com>
359
360 * varobj.c (struct varobj_dynamic) <children_requested_>: Rename
361 back to...
362 <children_requested>: ... this.
363 (varobj_get_num_children, varobj_update): Adjust.
364
365 2017-11-23 Simon Marchi <simon.marchi@ericsson.com>
366
367 * ada-varobj.c (ada_value_is_changeable_p): Change int to bool where applicable.
368 (ada_value_has_mutated): Likewise.
369 * c-varobj.c (varobj_is_anonymous_child): Likewise.
370 (c_is_path_expr_parent): Likewise.
371 * mi/mi-cmd-var.c (varobj_update_one): Likewise.
372 (mi_cmd_var_set_frozen): Likewise.
373 (mi_cmd_var_update_iter): Likewise.
374 (mi_cmd_var_update): Likewise.
375 * varobj.c (pretty_printing): Likewise.
376 (varobj_enable_pretty_printing): Likewise.
377 (struct varobj_root) <floating, is_valid>: Likewise.
378 (struct varobj_dynamic) <children_requested>: Likewise.
379 (delete_variable): Likewise.
380 (delete_variable_1): Likewise.
381 (install_variable): Likewise.
382 (update_type_if_necessary): Likewise.
383 (install_new_value): Likewise.
384 (value_of_root): Likewise.
385 (is_root_p): Likewise.
386 (varobj_create): Likewise.
387 (varobj_delete): Likewise.
388 (varobj_has_more): Likewise.
389 (varobj_set_frozen): Likewise.
390 (varobj_get_frozen): Likewise.
391 (install_dynamic_child): Likewise.
392 (dynamic_varobj_has_child_method): Likewise.
393 (update_dynamic_varobj_children): Likewise.
394 (varobj_get_num_children): Likewise.
395 (varobj_list_children): Likewise.
396 (is_path_expr_parent): Likewise.
397 (varobj_default_is_path_expr_parent): Likewise.
398 (varobj_is_dynamic_p): Likewise.
399 (varobj_set_value): Likewise.
400 (varobj_value_has_mutated): Likewise.
401 (varobj_update): Likewise.
402 (check_scope): Likewise.
403 (value_of_root_1): Likewise.
404 (varobj_value_get_print_value): Likewise.
405 (varobj_editable_p): Likewise.
406 (varobj_value_is_changeable_p): Likewise.
407 (varobj_floating_p): Likewise.
408 (varobj_default_value_is_changeable_p): Likewise.
409 (varobj_invalidate_iter): Likewise.
410 * varobj.h (struct varobj_update_result) <type_changed,
411 children_changed, changed, value_installed>: Likewise.
412 (struct varobj) <updated, frozen, not_fetched>: Likewise.
413 (struct lang_varobj_ops) <value_is_changeable_p,
414 value_has_mutated, is_path_expr_parent>: Likewise.
415 (varobj_delete): Likewise.
416 (varobj_set_frozen): Likewise.
417 (varobj_get_frozen): Likewise.
418 (varobj_set_value): Likewise.
419 (varobj_update): Likewise.
420 (varobj_editable_p): Likewise.
421 (varobj_floating_p): Likewise.
422 (varobj_has_more): Likewise.
423 (varobj_is_dynamic_p): Likewise.
424 (varobj_default_value_is_changeable_p): Likewise.
425 (varobj_value_is_changeable_p): Likewise.
426 (varobj_is_anonymous_child): Likewise.
427 (varobj_default_is_path_expr_parent): Likewise.
428
429 2017-11-22 Sergio Durigan Junior <sergiodj@redhat.com>
430
431 * dtrace-probe.c (struct probe_ops dtrace_probe_ops): Delete.
432 (struct dtrace_probe_arg) <dtrace_probe_arg>: New constructor.
433 <type_str>: Convert to 'std::string'.
434 <expr>: Convert to 'expression_up'.
435 (dtrace_probe_arg_s): Delete type and VEC.
436 (dtrace_probe_enabler_s): Likewise.
437 (struct dtrace_probe): Replace by...
438 (class dtrace_static_probe_ops): ...this and...
439 (class dtrace_probe): ...this.
440 (dtrace_probe_is_linespec): Rename to...
441 (dtrace_static_probe_ops::is_linespec): ...this. Adjust code
442 to reflect change.
443 (dtrace_process_dof_probe): Use 'std::vector' instead of VEC.
444 Adjust code. Create new instance of 'dtrace_probe'.
445 (dtrace_build_arg_exprs): Rename to...
446 (dtrace_probe::build_arg_exprs): ...this. Adjust code to
447 reflect change.
448 (dtrace_get_probes): Rename to...
449 (dtrace_static_probe_ops::get_probes): ...this. Adjust code
450 to reflect change.
451 (dtrace_get_arg): Rename to...
452 (dtrace_probe::get_arg_by_number): ...this. Adjust code to
453 reflect change.
454 (dtrace_probe_is_enabled): Rename to...
455 (dtrace_probe::is_enabled): ...this. Adjust code to reflect
456 change.
457 (dtrace_get_probe_address): Rename to...
458 (dtrace_probe::get_relocated_address): ...this. Adjust code
459 to reflect change.
460 (dtrace_get_probe_argument_count): Rename to...
461 (dtrace_probe::get_argument_count): ...this. Adjust code to
462 reflect change.
463 (dtrace_can_evaluate_probe_arguments): Rename to...
464 (dtrace_probe::can_evaluate_arguments): ...this. Adjust code
465 to reflect change.
466 (dtrace_evaluate_probe_argument): Rename to...
467 (dtrace_probe::evaluate_argument): ...this. Adjust code to
468 reflect change.
469 (dtrace_compile_to_ax): Rename to...
470 (dtrace_probe::compile_to_ax): ...this. Adjust code to
471 reflect change.
472 (dtrace_probe_destroy): Delete.
473 (dtrace_type_name): Rename to...
474 (dtrace_static_probe_ops::type_name): ...this. Adjust code to
475 reflect change.
476 (dtrace_probe::get_static_ops): New method.
477 (dtrace_gen_info_probes_table_header): Rename to...
478 (dtrace_static_probe_ops::gen_info_probes_table_header):
479 ...this. Adjust code to reflect change.
480 (dtrace_gen_info_probes_table_values): Rename to...
481 (dtrace_probe::gen_info_probes_table_values): ...this. Adjust
482 code to reflect change.
483 (dtrace_enable_probe): Rename to...
484 (dtrace_probe::enable_probe): ...this. Adjust code to reflect
485 change.
486 (dtrace_disable_probe): Rename to...
487 (dtrace_probe::disable_probe): ...this. Adjust code to reflect
488 change.
489 (struct probe_ops dtrace_probe_ops): Delete.
490 (info_probes_dtrace_command): Call 'info_probes_for_spops'
491 instead of 'info_probes_for_ops'.
492 (_initialize_dtrace_probe): Use 'all_static_probe_ops' instead
493 of 'all_probe_ops'.
494
495 2017-11-22 Sergio Durigan Junior <sergiodj@redhat.com>
496 Simon Marchi <simark@simark.ca>
497
498 * stap-probe.c (struct probe_ops stap_probe_ops): Delete
499 variable.
500 (struct stap_probe_arg) <stap_probe_arg>: New constructor.
501 <aexpr>: Change type to 'expression_up'.
502 (stap_probe_arg_s): Delete type and VEC.
503 (struct stap_probe): Delete. Replace by...
504 (class stap_static_probe_ops): ...this and...
505 (class stap_probe): ...this. Rename variables to add 'm_'
506 prefix. Do not use 'union' for arguments anymore.
507 (stap_get_expected_argument_type): Receive probe name instead
508 of 'struct stap_probe'. Adjust code.
509 (stap_parse_probe_arguments): Rename to...
510 (stap_probe::parse_arguments): ...this. Adjust code to
511 reflect change.
512 (stap_get_probe_address): Rename to...
513 (stap_probe::get_relocated_address): ...this. Adjust code
514 to reflect change.
515 (stap_get_probe_argument_count): Rename to...
516 (stap_probe::get_argument_count): ...this. Adjust code
517 to reflect change.
518 (stap_get_arg): Rename to...
519 (stap_probe::get_arg_by_number'): ...this. Adjust code to
520 reflect change.
521 (can_evaluate_probe_arguments): Rename to...
522 (stap_probe::can_evaluate_arguments): ...this. Adjust code
523 to reflect change.
524 (stap_evaluate_probe_argument): Rename to...
525 (stap_probe::evaluate_argument): ...this. Adjust code
526 to reflect change.
527 (stap_compile_to_ax): Rename to...
528 (stap_probe::compile_to_ax): ...this. Adjust code to
529 reflect change.
530 (stap_probe_destroy): Delete.
531 (stap_modify_semaphore): Adjust comment.
532 (stap_set_semaphore): Rename to...
533 (stap_probe::set_semaphore): ...this. Adjust code to reflect
534 change.
535 (stap_clear_semaphore): Rename to...
536 (stap_probe::clear_semaphore): ...this. Adjust code to
537 reflect change.
538 (stap_probe::get_static_ops): New method.
539 (handle_stap_probe): Adjust code to create instance of
540 'stap_probe'.
541 (stap_get_probes): Rename to...
542 (stap_static_probe_ops::get_probes): ...this. Adjust code to
543 reflect change.
544 (stap_probe_is_linespec): Rename to...
545 (stap_static_probe_ops::is_linespec): ...this. Adjust code to
546 reflect change.
547 (stap_type_name): Rename to...
548 (stap_static_probe_ops::type_name): ...this. Adjust code to
549 reflect change.
550 (stap_gen_info_probes_table_header): Rename to...
551 (stap_static_probe_ops::gen_info_probes_table_header):
552 ...this. Adjust code to reflect change.
553 (stap_gen_info_probes_table_values): Rename to...
554 (stap_probe::gen_info_probes_table_values): ...this. Adjust
555 code to reflect change.
556 (struct probe_ops stap_probe_ops): Delete.
557 (info_probes_stap_command): Use 'info_probes_for_spops'
558 instead of 'info_probes_for_ops'.
559 (_initialize_stap_probe): Use 'all_static_probe_ops' instead
560 of 'all_probe_ops'.
561
562 2017-11-22 Sergio Durigan Junior <sergiodj@redhat.com>
563
564 * break-catch-throw.c (fetch_probe_arguments): Use
565 'probe.prob' instead of 'probe.probe'.
566 * breakpoint.c (create_longjmp_master_breakpoint): Call
567 'can_evaluate_arguments' and 'get_relocated_address' methods
568 from probe.
569 (create_exception_master_breakpoint): Likewise.
570 (add_location_to_breakpoint): Use 'sal->prob' instead of
571 'sal->probe'.
572 (bkpt_probe_insert_location): Call 'set_semaphore' method from
573 probe.
574 (bkpt_probe_remove_location): Likewise, for 'clear_semaphore'.
575 * elfread.c (elf_get_probes): Use 'static_probe_ops' instead
576 of 'probe_ops'.
577 (probe_key_free): Call 'delete' on probe.
578 (check_exception_resume): Use 'probe.prob' instead of
579 'probe.probe'.
580 * location.c (string_to_event_location_basic): Call
581 'probe_linespec_to_static_ops'.
582 * probe.c (class any_static_probe_ops): New class.
583 (any_static_probe_ops any_static_probe_ops): New variable.
584 (parse_probes_in_pspace): Receive 'static_probe_ops' as
585 argument. Adjust code to reflect change.
586 (parse_probes): Use 'static_probe_ops' instead of
587 'probe_ops'. Adjust code to reflect change.
588 (find_probes_in_objfile): Call methods to get name and
589 provider from probe.
590 (find_probe_by_pc): Use 'result.prob' instead of
591 'result.probe'. Call 'get_relocated_address' method from
592 probe.
593 (collect_probes): Adjust comment and argument list to receive
594 'static_probe_ops' instead of 'probe_ops'. Adjust code to
595 reflect change. Call necessary methods from probe.
596 (compare_probes): Call methods to get name and provider from
597 probes.
598 (gen_ui_out_table_header_info): Receive 'static_probe_ops'
599 instead of 'probe_ops'. Use 'std::vector' instead of VEC,
600 adjust code accordingly.
601 (print_ui_out_not_applicables): Likewise.
602 (info_probes_for_ops): Rename to...
603 (info_probes_for_spops): ...this. Receive 'static_probe_ops'
604 as argument instead of 'probe_ops'. Adjust code. Call
605 necessary methods from probe.
606 (info_probes_command): Use 'info_probes_for_spops'.
607 (enable_probes_command): Pass correct argument to
608 'collect_probes'. Call methods from probe.
609 (disable_probes_command): Likewise.
610 (get_probe_address): Move to 'any_static_probe_ops::get_address'.
611 (get_probe_argument_count): Move to
612 'any_static_probe_ops::get_argument_count'.
613 (can_evaluate_probe_arguments): Move to
614 'any_static_probe_ops::can_evaluate_arguments'.
615 (evaluate_probe_argument): Move to
616 'any_static_probe_ops::evaluate_argument'.
617 (probe_safe_evaluate_at_pc): Use 'probe.prob' instead of
618 'probe.probe'.
619 (probe_linespec_to_ops): Rename to...
620 (probe_linespec_to_static_ops): ...this. Adjust code.
621 (probe_any_is_linespec): Rename to...
622 (any_static_probe_ops::is_linespec): ...this.
623 (probe_any_get_probes): Rename to...
624 (any_static_probe_ops::get_probes): ...this.
625 (any_static_probe_ops::type_name): New method.
626 (any_static_probe_ops::gen_info_probes_table_header): New
627 method.
628 (compute_probe_arg): Use 'pc_probe.prob' instead of
629 'pc_probe.probe'. Call methods from probe.
630 (compile_probe_arg): Likewise.
631 (std::vector<const probe_ops *> all_probe_ops): Delete.
632 (std::vector<const static_probe_ops *> all_static_probe_ops):
633 New variable.
634 (_initialize_probe): Use 'all_static_probe_ops' instead of
635 'all_probe_ops'.
636 * probe.h (struct info_probe_column) <field_name>: Delete
637 extraneous newline
638 (info_probe_column_s): Delete type and VEC.
639 (struct probe_ops): Delete. Replace with...
640 (class static_probe_ops): ...this and...
641 (clas probe): ...this.
642 (struct bound_probe) <bound_probe>: Delete extraneous
643 newline. Adjust constructor to receive 'probe' instead of
644 'struct probe'.
645 <probe>: Rename to...
646 <prob>: ...this. Delete extraneous newline.
647 <objfile>: Delete extraneous newline.
648 (register_probe_ops): Delete unused prototype.
649 (info_probes_for_ops): Rename to...
650 (info_probes_for_spops): ...this. Adjust comment.
651 (get_probe_address): Move to 'probe::get_address'.
652 (get_probe_argument_count): Move to
653 'probe::get_argument_count'.
654 (can_evaluate_probe_arguments): Move to
655 'probe::can_evaluate_arguments'.
656 (evaluate_probe_argument): Move to 'probe::evaluate_argument'.
657 * solib-svr4.c (struct svr4_info): Adjust comment.
658 (struct probe_and_action) <probe>: Rename to...
659 <prob>: ...this.
660 (register_solib_event_probe): Receive 'probe' instead of
661 'struct probe' as argument. Use 'prob' instead of 'probe'
662 when applicable.
663 (solib_event_probe_action): Call 'get_argument_count' method
664 from probe. Adjust comment.
665 (svr4_handle_solib_event): Adjust comment. Call
666 'evaluate_argument' method from probe.
667 (svr4_create_probe_breakpoints): Call 'get_relocated_address'
668 from probe.
669 (svr4_create_solib_event_breakpoints): Use 'probe' instead of
670 'struct probe'. Call 'can_evaluate_arguments' from probe.
671 * symfile.h: Forward declare 'class probe' instead of 'struct
672 probe'.
673 * symtab.h: Likewise.
674 (struct symtab_and_line) <probe>: Rename to...
675 <prob>: ...this.
676 * tracepoint.c (start_tracing): Use 'prob' when applicable.
677 Call probe methods.
678 (stop_tracing): Likewise.
679
680 2017-11-22 Joel Brobecker <brobecker@adacore.com>
681
682 * ravenscar-thread.c (ravenscar_inferior_created): Remove
683 trailing newline at end of string in call to warning.
684
685 2017-11-22 Simon Marchi <simon.marchi@polymtl.ca>
686
687 * osdata.h: Include vector isntead of vec.h.
688 (osdata_column_s): Remove typedef.
689 (struct osdata_column): Add constructor.
690 <name, value>: Change type to std::string.
691 (DEF_VEC_O (osdata_column_s)): Remove.
692 (osdata_item_s): Remove typedef.
693 (struct osdata_item) <columns>: Change type to std::vector.
694 (DEF_VEC_O (osdata_item_s)): Remove.
695 (struct osdata): Add constructor.
696 <type>: Change type to std::string.
697 <items>: Change type to std::vector.
698 (osdata_p): Remove typedef.
699 (DEF_VEC_P (osdata_p)): Remove.
700 (osdata_parse): Return a unique_ptr.
701 (osdata_free): Remove.
702 (make_cleanup_osdata_free): Remove.
703 (get_osdata): Return a unique_ptr.
704 (get_osdata_column): Return pointer to std::string, take a
705 reference to osdata_item as parameter.
706 * osdata.c (struct osdata_parsing_data) <osdata>: Change type to
707 unique_ptr.
708 <property_name>: Change type to std::string.
709 (osdata_start_osdata): Allocate osdata with new and adjust.
710 (osdata_start_item): Adjust.
711 (osdata_start_column): Adjust.
712 (osdata_end_column): Adjust.
713 (clear_parsing_data): Remove.
714 (osdata_parse): Return a unique_ptr and adjust, remove cleanup.
715 (osdata_item_clear): Remove.
716 (get_osdata): return a unique_ptr and adjust.
717 (get_osdata_column): Return a pointer to std::string and adjust.
718 (info_osdata): Adjust.
719 * mi/mi-main.c: Include <map>.
720 (free_vector_of_osdata_items): Remove.
721 (list_available_thread_groups): Adjust, use std::map instead of
722 splay tree.
723
724 2017-11-22 Simon Marchi <simon.marchi@ericsson.com>
725
726 * stack.c (iterate_over_block_locals): Add LOC_OPTIMIZED_OUT
727 case in switch.
728
729 2017-11-22 Simon Marchi <simon.marchi@polymtl.ca>
730
731 * varobj.h (DEF_VEC_P (varobj_p)): Remove.
732
733 2017-11-22 Simon Marchi <simon.marchi@polymtl.ca>
734
735 * varobj.h (struct varobj_update_result): Add constructor, add
736 move constructor, disable copy and assign, initialize fields.
737 <newobj>: Change type to std::vector.
738 (varobj_update): Return std::vector.
739 * varobj.c (install_dynamic_child): Change VEC parameters to
740 std::vector and adjust.
741 (update_dynamic_varobj_children): Likewise.
742 (varobj_update): Return std::vector and adjust.
743 * mi/mi-cmd-var.c (varobj_update_one): Adjust to vector changes.
744
745 2017-11-22 Simon Marchi <simon.marchi@polymtl.ca>
746
747 * varobj.h (struct varobj) <parent>: Remove const.
748 <children>: Change type to std::vector.
749 (varobj_list_children): Return std::vector const reference.
750 (varobj_restrict_range): Change parameter type to std::vector
751 const reference.
752 * varobj.c (varobj_has_more): Adjust.
753 (varobj_restrict_range): Change parameter type to std::vector
754 const reference and adjust.
755 (install_dynamic_child): Adjust.
756 (update_dynamic_varobj_children): Adjust.
757 (varobj_list_children): Return std::vector const reference and
758 adjust.
759 (varobj_add_child): Adjust.
760 (update_type_if_necessary): Adjust.
761 (varobj_update): Adjust.
762 (delete_variable_1): Adjust.
763 * ada-varobj.c (ada_value_has_mutated): Adjust.
764 * mi/mi-cmd-var.c (mi_cmd_var_list_children): Adjust.
765
766 2017-11-22 Simon Marchi <simon.marchi@polymtl.ca>
767
768 * varobj.h (struct varobj): Add constructor and destructor,
769 initialize fields.
770 * varobj.c (struct varobj_root): Initialize fields.
771 (struct varobj_dynamic): Initialize fields.
772 (varobj_create): Use unique_ptr instead of cleanup. Create
773 varobj with new instead of new_root_variable.
774 (delete_variable_1): Free variable with delete instead of
775 free_variable.
776 (create_child_with_value): Create variable with new instead of
777 new_variable.
778 (varobj::varobj): New.
779 (varobj::~varobj): New (body mostly coming from free_variable).
780 (new_variable): Remove.
781 (free_variable): Remove.
782 (do_free_variable_cleanup): Remove.
783 (make_cleanup_free_variable): Remove.
784
785 2017-11-22 Ulrich Weigand <uweigand@de.ibm.com>
786
787 * core-regset.c: Remove file.
788 * Makefile.in (ALLDEPFILES): Remove core-regset.c.
789
790 2017-11-22 Ulrich Weigand <uweigand@de.ibm.com>
791
792 * NEWS: Document use of GNU MPFR.
793 * README: Likewise.
794
795 * Makefile.in (LIBMPFR): Add define.
796 (CLIBS): Add $(LIBMPFR).
797 * configure.ac: Add --with-mpfr configure option.
798 * configure: Regenerate.
799 * config.in: Regenerate.
800
801 * target-float.c [HAVE_LIBMPFR]: Include <mpfr.h>.
802 (class mpfr_float_ops): New type.
803 (mpfr_float_ops::from_target): Two new overloaded functions.
804 (mpfr_float_ops::to_target): Likewise.
805 (mpfr_float_ops::to_string): New function.
806 (mpfr_float_ops::from_string): Likewise.
807 (mpfr_float_ops::to_longest): Likewise.
808 (mpfr_float_ops::from_longest): Likewise.
809 (mpfr_float_ops::from_ulongest): Likewise.
810 (mpfr_float_ops::to_host_double): Likewise.
811 (mpfr_float_ops::from_host_double): Likewise.
812 (mpfr_float_ops::convert): Likewise.
813 (mpfr_float_ops::binop): Likewise.
814 (mpfr_float_ops::compare): Likewise.
815 (get_target_float_ops): Use mpfr_float_ops if available.
816
817 2017-11-22 Ulrich Weigand <uweigand@de.ibm.com>
818
819 * target-float.c: Do not include <math.h>.
820 Include <cmath> and <limits>.
821 (DOUBLEST): Do not define.
822 (class target_float_ops): New type.
823 (class host_float_ops): New templated type.
824 (class decimal_float_ops): New type.
825
826 (floatformat_to_doublest): Rename to ...
827 (host_float_ops<T>::from_target): ... this. Use template type T
828 instead of DOUBLEST. Use C++ math routines. Update recursive calls.
829 (host_float_ops<T>::from_target): New overload using a type argument.
830 (floatformat_from_doublest): Rename to ...
831 (host_float_ops<T>::to_target): ... this. Use template type T
832 instead of DOUBLEST. Use C++ math routines. Update recursive calls.
833 (host_float_ops<T>::to_target): New overload using a type argument.
834 (floatformat_printf_format): New function.
835 (struct printf_length_modifier): New templated type.
836 (floatformat_to_string): Rename to ...
837 (host_float_ops<T>::to_string): ... this. Use type instead of
838 floatformat argument. Use floatformat_printf_format and
839 printf_length_modifier. Remove special handling of invalid numbers,
840 infinities and NaN (moved to target_float_to_string).
841 (struct scanf_length_modifier): New templated type.
842 (floatformat_from_string): Rename to ...
843 (host_float_ops<T>::from_string): ... this. Use type instead of
844 floatformat argument. Use scanf_length_modifier.
845 (floatformat_to_longest): Rename to ...
846 (host_float_ops<T>::to_longest): ... this. Use type instead of
847 floatformat argument. Handle out-of-range values deterministically.
848 (floatformat_from_longest): Rename to ...
849 (host_float_ops<T>::from_longest): ... this. Use type instead of
850 floatformat argument.
851 (floatformat_from_ulongest): Rename to ...
852 (host_float_ops<T>::from_ulongest): ... this. Use type instead of
853 floatformat argument.
854 (floatformat_to_host_double): Rename to ...
855 (host_float_ops<T>::to_host_double): ... this. Use type instead of
856 floatformat argument.
857 (floatformat_from_host_double): Rename to ...
858 (host_float_ops<T>::from_host_double): ... this. Use type instead of
859 floatformat argument.
860 (floatformat_convert): Rename to ...
861 (host_float_ops<T>::convert): ... this. Use type instead of
862 floatformat arguments. Remove handling of no-op conversions.
863 (floatformat_binop): Rename to ...
864 (host_float_ops<T>::binop): ... this. Use type instead of
865 floatformat arguments.
866 (floatformat_compare): Rename to ...
867 (host_float_ops<T>::compare): ... this. Use type instead of
868 floatformat arguments.
869
870 (match_endianness): Use type instead of length/byte_order arguments.
871 (set_decnumber_context): Likewise.
872 (decimal_from_number): Likewise. Update calls.
873 (decimal_to_number): Likewise.
874 (decimal_is_zero): Likewise. Update calls. Move to earlier in file.
875 (decimal_float_ops::to_host_double): New dummy function.
876 (decimal_float_ops::from_host_double): Likewise.
877 (decimal_to_string): Rename to ...
878 (decimal_float_ops::to_string): ... this. Use type instead of
879 length/byte_order arguments. Update calls.
880 (decimal_from_string): Rename to ...
881 (decimal_float_ops::from_string): ... this. Use type instead of
882 length/byte_order arguments. Update calls.
883 (decimal_from_longest): Rename to ...
884 (decimal_float_ops::from_longest): ... this. Use type instead of
885 length/byte_order arguments. Update calls.
886 (decimal_from_ulongest): Rename to ...
887 (decimal_float_ops::from_ulongest): ... this. Use type instead of
888 length/byte_order arguments. Update calls.
889 (decimal_to_longest): Rename to ...
890 (decimal_float_ops::to_longest): ... this. Use type instead of
891 length/byte_order arguments. Update calls.
892 (decimal_binop): Rename to ...
893 (decimal_float_ops::binop): ... this. Use type instead of
894 length/byte_order arguments. Update calls.
895 (decimal_compare): Rename to ...
896 (decimal_float_ops::compare): ... this. Use type instead of
897 length/byte_order arguments. Update calls.
898 (decimal_convert): Rename to ...
899 (decimal_float_ops::convert): ... this. Use type instead of
900 length/byte_order arguments. Update calls.
901
902 (target_float_same_category_p): New function.
903 (target_float_same_format_p): Likewise.
904 (target_float_format_length): Likewise.
905 (enum target_float_ops_kind): New type.
906 (get_target_float_ops_kind): New function.
907 (get_target_float_ops): Three new overloaded functions.
908
909 (target_float_is_zero): Update call.
910 (target_float_to_string): Add special handling of invalid numbers,
911 infinities and NaN (moved from floatformat_to_string). Use
912 target_float_ops callback.
913 (target_float_from_string): Use target_float_ops callback.
914 (target_float_to_longest): Likewise.
915 (target_float_from_longest): Likewise.
916 (target_float_from_ulongest): Likewise.
917 (target_float_to_host_double): Likewise.
918 (target_float_from_host_double): Likewise.
919 (target_float_convert): Add special case for no-op conversions.
920 Use target_float_ops callback.
921 (target_float_binop): Use target_float_ops callback.
922 (target_float_compare): Likewise.
923
924 2017-11-22 Yao Qi <yao.qi@linaro.org>
925
926 * python/py-gdb-readline.c (gdbpy_readline_wrapper): Use strcpy.
927
928 2017-11-22 Yao Qi <yao.qi@linaro.org>
929
930 * cli/cli-decode.c (help_list): Use memcpy instead of strncpy.
931 * cp-namespace.c (cp_lookup_transparent_type_loop): Likewise.
932
933 2017-11-21 Jerome Guitton <guitton@adacore.com>
934
935 * ravenscar-thread.c (ravenscar_wait): Update inferior ptid
936 with event ptid from the lower layer before doing the
937 ravenscar-specific update.
938
939 2017-11-21 Joel Brobecker <brobecker@adacore.com>
940
941 * ravenscar-thread.c (is_ravenscar_task): Also verify that
942 the ptid's TID is nonzero.
943
944 2017-11-21 Joel Brobecker <brobecker@adacore.com>
945
946 * ada-lang.h (ada_get_tcb_types_info): Add declaration.
947 * ada-tasks.c (ada_get_tcb_types_info): Renames get_tcb_types_info.
948 Make non-static. Change return type to char *. Adjust code
949 accordingly. Rewrite the function's documentation.
950 (read_atcb): Adjust call to get_tcb_types_info accordingly.
951 * ravenscar-thread.c (ravenscar_inferior_created): Check that
952 we have enough debugging information in the runtime to support
953 Ada task debugging before we enable the ravenscar-thread layer.
954
955 2017-11-21 Joel Brobecker <brobecker@adacore.com>
956
957 * ada-lang.h (ada_get_task_info_from_ptid): Add declaration.
958 * ada-tasks.c (ada_get_task_info_from_ptid): New function.
959 * ravenscar-thread.c: Add into comment.
960 (base_magic_null_ptid): Delete.
961 (base_ptid): Change documentation.
962 (ravenscar_active_task): Renames ravenscar_running_thread.
963 All callers updated throughout.
964 (is_ravenscar_task, ravenscar_get_thread_base_cpu): New function.
965 (ravenscar_task_is_currently_active): Likewise.
966 (get_base_thread_from_ravenscar_task): Ditto.
967 (ravenscar_update_inferior_ptid): Adjust to handle multiple CPUs.
968 (ravenscar_runtime_initialized): Likewise.
969 (get_running_thread_id): Add new parameter "cpu". Adjust
970 implementation to handle this new parameter.
971 (ravenscar_fetch_registers): Small adjustment to use
972 is_ravenscar_task and ravenscar_task_is_currently_active in
973 order to decide whether to use the target beneath or this
974 module's arch_ops.
975 (ravenscar_store_registers, ravenscar_prepare_to_store): Likewise.
976 (ravenscar_stopped_by_sw_breakpoint): Use
977 get_base_thread_from_ravenscar_task to get the underlying
978 thread, rather than using base_ptid.
979 (ravenscar_stopped_by_hw_breakpoint, ravenscar_stopped_by_watchpoint)
980 (ravenscar_stopped_data_address, ravenscar_core_of_thread):
981 Likewise.
982 (ravenscar_inferior_created): Do not set base_magic_null_ptid.
983
984 2017-11-21 Joel Brobecker <brobecker@adacore.com>
985
986 * ada-lang.h (struct ada_task_info) <base_cpu>: New field.
987 * ada-lang.c (struct atcb_fieldno) <base_cpu>: New field.
988 (get_tcb_types_info): Set fieldnos.base_cpu.
989 (read_atcb): Set task_info->base_cpu.
990 (info_task): Print "Base CPU" info if set by runtime.
991
992 2017-11-21 Joel Brobecker <brobecker@adacore.com>
993
994 * ravenscar-thread.c (ravenscar_stopped_by_sw_breakpoint)
995 (ravenscar_stopped_by_hw_breakpoint, ravenscar_stopped_by_watchpoint)
996 (ravenscar_stopped_data_address, ravenscar_core_of_thread):
997 New functions.
998 (init_ravenscar_thread_ops): Set the to_stopped_by_sw_breakpoint,
999 to_stopped_by_hw_breakpoint, to_stopped_by_watchpoint,
1000 to_stopped_data_address and to_core_of_thread fields of
1001 ravenscar_ops.
1002
1003 2017-11-21 Ulrich Weigand <uweigand@de.ibm.com>
1004
1005 * ppc-tdep.h (enum powerpc_long_double_abi): New data type.
1006 (struct gdbarch_tdep): New member long_double_abi.
1007 * rs6000-tdep.c (rs6000_gdbarch_init): Initialize long_double_abi
1008 member of tdep struct based on Tag_GNU_Power_ABI_FP attribute.
1009 * ppc-linux-tdep.c (ppc_linux_init_abi): Install long double data
1010 format depending on long_double_abi tdep member.
1011 (ppc_floatformat_for_type): Handle __ibm128 type.
1012
1013 2017-11-20 Simon Marchi <simon.marchi@polymtl.ca>
1014
1015 * darwin-nat.c (set_enable_mach_exceptions): Constify parameter.
1016
1017 2017-11-21 Pedro Alves <palves@redhat.com>
1018
1019 * dwarf2read.c (mapped_index::find_name_components_bounds)
1020 <completion mode, upper bound>: Use std::lower_bound instead of
1021 std::upper_bound.
1022 (test_mapped_index_find_name_component_bounds): Remove incorrect
1023 "t1_fund" from expected symbols.
1024
1025 2017-11-21 Pedro Alves <palves@redhat.com>
1026
1027 * dwarf2read.c (mapped_index::name_components_casing): New field.
1028 (mapped_index) <build_name_components,
1029 find_name_components_bounds): Declare new methods.
1030 (mapped_index::find_name_components_bounds)
1031 (mapped_index::build_name_components): New methods, factored out
1032 from dw2_expand_symtabs_matching_symbol.
1033 (check_find_bounds_finds)
1034 (test_mapped_index_find_name_component_bounds): New.
1035 (run_test): Rename to ...
1036 (test_dw2_expand_symtabs_matching_symbol): ... this.
1037 (run_test): Reimplement.
1038
1039 2017-11-21 Pedro Alves <palves@redhat.com>
1040
1041 * cp-name-parser.y (cp_ident_is_alpha, cp_ident_is_alnum): New.
1042 (symbol_end): Use cp_ident_is_alnum.
1043 (yylex): Use cp_ident_is_alpha and cp_ident_is_alnum.
1044 * dwarf2read.c (make_sort_after_prefix_name): New function.
1045 (dw2_expand_symtabs_matching_symbol): Use it.
1046 (test_symbols): Add more symbols.
1047 (run_test): Add tests.
1048
1049 2017-11-17 Tom Tromey <tom@tromey.com>
1050
1051 * symtab.h (enum symbol_subclass_kind): New.
1052 (struct symbol) <is_cplus_template_function, is_rust_vtable>:
1053 Remove.
1054 <subclass>: New member.
1055 (SYMBOL_IS_CPLUS_TEMPLATE_FUNCTION): Update.
1056 * rust-lang.c (rust_get_trait_object_pointer): Update.
1057 * dwarf2read.c (read_func_scope): Update.
1058 (read_variable): Update.
1059
1060 2017-11-17 Tom Tromey <tom@tromey.com>
1061
1062 * dwarf2read.c (read_func_scope): Update.
1063 * symtab.h (struct template_symbol): Derive from symbol.
1064 <base>: Remove.
1065
1066 2017-11-17 Tom Tromey <tom@tromey.com>
1067
1068 * symtab.h (struct symbol) <is_rust_vtable>: New member.
1069 (struct rust_vtable_symbol): New.
1070 (find_symbol_at_address): Declare.
1071 * symtab.c (find_symbol_at_address): New function.
1072 * symfile.h (struct quick_symbol_functions)
1073 <find_compunit_symtab_by_address>: New member.
1074 * symfile-debug.c (debug_qf_find_compunit_symtab_by_address): New
1075 function.
1076 (debug_sym_quick_functions): Link to
1077 debug_qf_find_compunit_symtab_by_address.
1078 * rust-lang.c (rust_get_trait_object_pointer): New function.
1079 (rust_evaluate_subexp) <case UNOP_IND>: New case. Call
1080 rust_get_trait_object_pointer.
1081 * psymtab.c (psym_relocate): Clear psymbol_map.
1082 (psym_fill_psymbol_map, psym_find_compunit_symtab_by_address): New
1083 functions.
1084 (psym_functions): Link to psym_find_compunit_symtab_by_address.
1085 * objfiles.h (struct objfile) <psymbol_map>: New member.
1086 * dwarf2read.c (dwarf2_gdb_index_functions): Update.
1087 (process_die) <DW_TAG_variable>: New case. Call read_variable.
1088 (rust_containing_type, read_variable): New functions.
1089
1090 2017-11-17 Simon Marchi <simon.marchi@polymtl.ca>
1091
1092 * common/gdb_vecs.h (DEF_VEC_I (int)): Remove.
1093
1094 2017-11-17 Simon Marchi <simon.marchi@polymtl.ca>
1095
1096 * common/filestuff.c: Include <algorithm>.
1097 (open_fds): Change type to std::vector<int>.
1098 (do_mark_open_fd): Adjust.
1099 (unmark_fd_no_cloexec): Adjust.
1100 (do_close): Adjust.
1101
1102 2017-11-17 Simon Marchi <simon.marchi@polymtl.ca>
1103
1104 * breakpoint.c (output_thread_groups): Take an std::vector.
1105 (print_one_breakpoint_location): Adjust.
1106
1107 2017-11-17 Joel Brobecker <brobecker@adacore.com>
1108
1109 * ada-lang.c (resolve_subexp): Add handling of OP_VAR_MSYM_VALUE.
1110 (ada_evaluate_subexp_for_cast): New function.
1111 (ada_evaluate_subexp) <UNOP_CAST>: Replace code by call to
1112 ada_evaluate_subexp_for_cast.
1113 (ada_evaluate_subexp) <nosideret>: Replace code by call to
1114 eval_skip_value.
1115 * eval.c (evaluate_var_value): Make non-static.
1116 (evaluate_var_msym_value, eval_skip_value): Likewise.
1117 * value.h (evaluate_var_value, evaluate_var_msym_value)
1118 (eval_skip_value): Declare.
1119
1120 2017-11-16 Joel Brobecker <brobecker@adacore.com>
1121
1122 * ada-lang.c (ada_value_cast): Remove parameter "noside".
1123 Update all callers.
1124
1125 2017-11-16 Pedro Alves <palves@redhat.com>
1126
1127 * python/py-unwind.c (pyuw_sniffer): Translate
1128 PyExc_KeyboardInterrupt to a GDB Quit exception.
1129
1130 2017-11-16 Pedro Alves <palves@redhat.com>
1131
1132 * infrun.c (resume_cleanups): Delete.
1133 (resume): No longer install a resume_cleanups cleanup nor call
1134 QUIT.
1135 (proceed): Pass the terminal to the inferior.
1136 (keep_going_pass_signal): No longer install a resume_cleanups
1137 cleanup.
1138
1139 2017-11-16 Pedro Alves <palves@redhat.com>
1140
1141 * inf-loop.c (inferior_event_handler): Don't swallow the exception
1142 if the prompt is blocked.
1143
1144 2017-11-16 Pedro Alves <palves@redhat.com>
1145
1146 * breakpoint.c (insert_bp_location): Replace bp_err and
1147 bp_err_message locals by a gdb_exception local.
1148
1149 2017-11-16 Pedro Alves <palves@redhat.com>
1150
1151 * inflow.c (scoped_ignore_sigttou): New class.
1152 (child_terminal_ours_1, new_tty): Use it.
1153
1154 2017-11-16 Ulrich Weigand <uweigand@de.ibm.com>
1155
1156 * target-float.c (decimal_from_number): Add byte_order argument and
1157 call match_endianness. Error if unknown floating-point type.
1158 (decimal_to_number): Add byte_order argument and call match_endianness.
1159 (decimal_from_longest): Update call. Do not call match_endianness.
1160 (decimal_from_ulongest): Likewise.
1161 (decimal_binop): Likewise.
1162 (decimal_is_zero): Likewise.
1163 (decimal_compare): Likewise.
1164 (decimal_convert): Likewise.
1165
1166 2017-11-16 Phil Muldoon <pmuldoon@redhat.com>
1167
1168 * python/python.c (gdbpy_rbreak): New function.
1169 * NEWS: Document Python rbreak feature.
1170
1171 2017-11-16 Yao Qi <yao.qi@linaro.org>
1172
1173 * features/tic6x-c62x.xml: Remove.
1174 * features/tic6x-c64x.xml: Remove.
1175 * features/tic6x-c64xp.xml: Remove.
1176
1177 2017-11-15 John Baldwin <jhb@FreeBSD.org>
1178
1179 * symtab.h: Include <array>.
1180
1181 2017-11-15 John Baldwin <jhb@FreeBSD.org>
1182
1183 * bsd-kvm.c (bsd_kvm_cmd): Constify 'arg'.
1184 (bsd_kvm_proc_cmd): Likewise.
1185
1186 2017-11-15 Simon Marchi <simon.marchi@ericsson.com>
1187
1188 * tui/tui-win.c (window_name_completer): Replace VEC with
1189 std::vector.
1190
1191 2017-11-15 Andrew Cagney <cagney@gnu.org>
1192
1193 * MAINTAINERS: Remove no-longer applicable entries.
1194
1195 2017-11-15 Andrew Cagney <cagney@gnu.org>
1196
1197 * MAINTAINERS: Move self to Past Maintainers.
1198
1199 2017-11-15 Yao Qi <yao.qi@linaro.org>
1200
1201 * features/Makefile (XMLTOC): Remove nios2-linux.xml.
1202 * features/nios2-linux.c: Remove.
1203 * nios2-linux-tdep.c (_initialize_nios2_linux_tdep): Don't call
1204 initialize_tdesc_nios2_linux.
1205
1206 2017-11-15 Yao Qi <yao.qi@linaro.org>
1207
1208 * m68hc11-tdep.c (M68HC11_NUM_REGS): Change it to
1209 M68HC11_LAST_HARD_REG + 1.
1210
1211 2017-11-14 Paul Carroll <pcarroll@codesourcery.com>
1212
1213 PR gdb/22388
1214 * remote.c (remote_write_bytes_aux, remote_read_bytes_1,
1215 remote_read_bytes, remote_write_qxfer, remote_xfer_partial):
1216 Return TARGET_XFER_EOF if size of returned data is 0.
1217
1218 2017-11-14 Simon Marchi <simon.marchi@ericsson.com>
1219
1220 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
1221 memory-map-selftests.c.
1222 (SUBDIR_UNITTESTS_OBS): Add memory-map-selftests.o.
1223 * memory-map.c (memory_map_start_memory): Fix computation of hi
1224 address.
1225 * unittests/memory-map-selftests.c: New file.
1226
1227 2017-11-09 Joel Brobecker <brobecker@adacore.com>
1228
1229 * ada-lang.c: Fix some typos in the general command documenting
1230 how Ada expressions are being evaluated and how their result
1231 is printed.
1232
1233 2017-11-09 Tom Tromey <tom@tromey.com>
1234
1235 * psymtab.c (psymbol_hash): Do not hash string contents.
1236 (psymbol_compare): Add comment.
1237
1238 2017-11-09 Tom Tromey <tom@tromey.com>
1239
1240 * dictionary.c (dict_hash): Move "TKB" check into the "switch".
1241
1242 2017-11-08 Joel Brobecker <brobecker@adacore.com>
1243
1244 * ada-exp.y (write_var_from_sym): Remove parameter
1245 "orig_left_context". Update all callers.
1246
1247 2017-11-08 Simon Marchi <simon.marchi@ericsson.com>
1248
1249 * tracepoint.h (class collection_list) <stringify>: Return
1250 std::vector<std::string>.
1251 (encode_actions_rsp): Change parameters to
1252 std::vector<std::string> *.
1253 * tracepoint.c (collection_list::stringify): Return
1254 std::vector<std::string> and adjust accordingly.
1255 (encode_actions_rsp): Changee parameters to
1256 std::vector<std::string> and adjust accordingly.
1257 * remote.c (free_actions_list),
1258 free_actions_list_cleanup_wrapper): Remove.
1259 (remote_download_tracepoint): Adjust to std::vector.
1260
1261 2017-11-08 Tom Tromey <tom@tromey.com>
1262
1263 * dwarf2read.c (symbolp): Remove typedef.
1264 (read_func_scope): Use std::vector.
1265 (process_structure_scope): Use std::vector.
1266
1267 2017-11-08 Pedro Alves <palves@redhat.com>
1268
1269 * ada-lang.c (ada_make_symbol_completion_list): Use
1270 completion_skip_symbol.
1271 * symtab.c (symbol_is_function_or_method(minimal_symbol*)): New.
1272 (symbol_is_function_or_method(symbol*)): New.
1273 (add_symtab_completions): Add complete_symbol_mode parameter. Use
1274 completion_skip_symbol.
1275 (default_collect_symbol_completion_matches_break_on): Use
1276 completion_skip_symbol. Pass down mode.
1277 (collect_file_symbol_completion_matches): Pass down mode.
1278 * symtab.h (symbol_is_function_or_method): New declarations.
1279 (completion_skip_symbol): New template function.
1280
1281 2017-11-08 Pedro Alves <palves@redhat.com>
1282
1283 * linespec.c (iterate_over_all_matching_symtabs): Add
1284 search_domain parameter. Pass it down to expand_symtabs_matching.
1285 (decode_objc): Request FUNCTIONS_DOMAIN symbols only.
1286 (lookup_prefix_sym): Adjust by passing ALL_DOMAIN as
1287 search_domain.
1288 (add_all_symbol_names_from_pspace): Add search_domain parameter.
1289 Pass it down.
1290 (find_method, find_function_symbols): Request FUNCTIONS_DOMAIN
1291 symbols.
1292 (add_matching_symbols_to_info): Add search_domain parameter. Pass
1293 it down.
1294
1295 2017-11-08 Pedro Alves <palves@redhat.com>
1296
1297 * ada-lang.c (ada_make_symbol_completion_list): Remove text and
1298 text_len locals and don't pass them down.
1299 * symtab.c (completion_list_add_name): Remove
1300 sym_text/sym_text_len parameters and adjust.
1301 (completion_list_add_symbol, completion_list_add_msymbol)
1302 (completion_list_objc_symbol, completion_list_add_fields)
1303 (add_symtab_completions): Likewise.
1304 (default_collect_symbol_completion_matches_break_on)
1305 (collect_file_symbol_completion_matches): Remove sym_text_len
1306 local and don't pass it down.
1307 * symtab.h (completion_list_add_name): Remove
1308 sym_text/sym_text_len parameters.
1309
1310 2017-11-08 Pedro Alves <palves@redhat.com>
1311
1312 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
1313 unittests/lookup_name_info-selftests.c.
1314 (SUBDIR_UNITTESTS_OBS): Add lookup_name_info-selftests.o.
1315 * cp-support.c: Include "selftest.h".
1316 (cp_remove_params_1): Rename from cp_remove_params. Add
1317 'require_param' parameter, and handle it.
1318 (cp_remove_params): Reimplement.
1319 (cp_remove_params_if_any): New.
1320 (selftests::quote): New.
1321 (selftests::check_remove_params): New.
1322 (selftests::test_cp_remove_params): New.
1323 (_initialize_cp_support): Install
1324 selftests::test_cp_remove_params.
1325 * cp-support.h (cp_remove_params_if_any): Declare.
1326 * dwarf2read.c :Include "selftest.h".
1327 (dw2_expand_symtabs_matching_symbol): Use
1328 lookup_name_info::make_ignore_params.
1329 (selftests::dw2_expand_symtabs_matching::mock_mapped_index)
1330 (selftests::dw2_expand_symtabs_matching::string_or_null)
1331 (selftests::dw2_expand_symtabs_matching::check_match)
1332 (selftests::dw2_expand_symtabs_matching::test_symbols)
1333 (selftests::dw2_expand_symtabs_matching::run_test): New.
1334 (_initialize_dwarf2_read): Register
1335 selftests::dw2_expand_symtabs_matching::run_test.
1336 * psymtab.c (psym_expand_symtabs_matching): Use
1337 lookup_name_info::make_ignore_params.
1338 * symtab.c (demangle_for_lookup_info::demangle_for_lookup_info):
1339 If the lookup name wants to ignore parameters, strip them.
1340 (compare_symbol_name): Remove sym_text/sym_text_len parameters and
1341 code handling '('.
1342 (completion_list_add_name): Don't pass down sym_text/sym_text_len.
1343 (default_collect_symbol_completion_matches_break_on): Don't try to
1344 strip parameters.
1345 * symtab.h (lookup_name_info::lookup_name_info): Add
1346 'ignore_parameters' parameter.
1347 (lookup_name_info::ignore_parameters)
1348 (lookup_name_info::make_ignore_params): New methods.
1349 (lookup_name_info::m_ignore_parameters): New field.
1350 * unittests/lookup_name_info-selftests.c: New file.
1351
1352 2017-11-08 Pedro Alves <palves@redhat.com>
1353
1354 * dwarf2read.c (dw2_expand_marked_cus)
1355 (dw2_expand_symtabs_matching_symbol): Remove forward declarations.
1356 (dw2_expand_symtabs_matching): Move further below.
1357 (dw2_expand_marked_cus): Reindent.
1358
1359 2017-11-08 Pedro Alves <palves@redhat.com>
1360
1361 * dwarf2read.c (byte_swap, MAYBE_SWAP): Move higher up in file.
1362 (struct name_component): New.
1363 (mapped_index::name_components): New field.
1364 (mapped_index::symbol_name_at): New method.
1365 (dwarf2_read_index): Call mapped_index ctor.
1366 (dw2_map_matching_symbols): Add comment about name_components
1367 table.
1368 (dw2_expand_symtabs_matching): Factor part to...
1369 (dw2_expand_symtabs_matching_symbol): ... this new function.
1370 Build name components table, and lookup symbols in it before
1371 calling the name matcher.
1372 (dw2_expand_marked_cus): New, factored out from
1373 dw2_expand_symtabs_matching.
1374 (dwarf2_per_objfile_free): Call the mapped_index's dtor.
1375
1376 2017-11-08 Pedro Alves <palves@redhat.com>
1377
1378 * ada-lang.c (ada_encode): Rename to ..
1379 (ada_encode_1): ... this. Add throw_errors parameter and handle
1380 it.
1381 (ada_encode): Reimplement.
1382 (match_name): Delete, folded into full_name.
1383 (resolve_subexp): No longer pass the encoded name to
1384 ada_lookup_symbol_list.
1385 (should_use_wild_match): Delete.
1386 (name_match_type_from_name): New.
1387 (ada_lookup_simple_minsym): Use lookup_name_info and the
1388 language's symbol_name_matcher_ftype.
1389 (add_symbols_from_enclosing_procs, ada_add_local_symbols)
1390 (ada_add_block_renamings): Adjust to use lookup_name_info.
1391 (ada_lookup_name): New.
1392 (add_nonlocal_symbols, ada_add_all_symbols)
1393 (ada_lookup_symbol_list_worker, ada_lookup_symbol_list)
1394 (ada_iterate_over_symbols): Adjust to use lookup_name_info.
1395 (ada_name_for_lookup): Delete.
1396 (ada_lookup_encoded_symbol): Construct a verbatim name.
1397 (wild_match): Reverse sense of return type. Use bool.
1398 (full_match): Reverse sense of return type. Inline bits of old
1399 match_name here.
1400 (ada_add_block_symbols): Adjust to use lookup_name_info.
1401 (symbol_completion_match): Delete, folded into...
1402 (ada_lookup_name_info::matches): ... .this new method.
1403 (symbol_completion_add): Delete.
1404 (ada_collect_symbol_completion_matches): Add name_match_type
1405 parameter. Adjust to use lookup_name_info and
1406 completion_list_add_name.
1407 (get_var_value, ada_add_global_exceptions): Adjust to use
1408 lookup_name_info.
1409 (ada_get_symbol_name_cmp): Delete.
1410 (do_wild_match, do_full_match): New functions.
1411 (ada_lookup_name_info::ada_lookup_name_info): New method.
1412 (ada_symbol_name_matches, ada_get_symbol_name_matcher): New
1413 functions.
1414 (ada_language_defn): Install ada_get_symbol_name_matcher.
1415 * ada-lex.l (processId): If name starts with '<', copy it
1416 verbatim.
1417 * block.c (block_iter_match_step, block_iter_match_first)
1418 (block_iter_match_next, block_lookup_symbol)
1419 (block_lookup_symbol_primary, block_find_symbol): Adjust to use
1420 lookup_name_info.
1421 * block.h (block_iter_match_first, block_iter_match_next)
1422 (ALL_BLOCK_SYMBOLS_WITH_NAME): Adjust to use lookup_name_info.
1423 * c-lang.c (c_language_defn, cplus_language_defn)
1424 (asm_language_defn, minimal_language_defn): Adjust comments to
1425 refer to la_get_symbol_name_matcher.
1426 * completer.c (complete_files_symbols)
1427 (collect_explicit_location_matches, symbol_completer): Pass a
1428 symbol_name_match_type down.
1429 * completer.h (class completion_match, completion_match_result):
1430 New classes.
1431 (completion_tracker::reset_completion_match_result): New method.
1432 (completion_tracker::m_completion_match_result): New field.
1433 * cp-support.c (make_symbol_overload_list_block): Adjust to use
1434 lookup_name_info.
1435 (cp_fq_symbol_name_matches, cp_get_symbol_name_matcher): New
1436 functions.
1437 * cp-support.h (cp_get_symbol_name_matcher): New declaration.
1438 * d-lang.c: Adjust comments to refer to
1439 la_get_symbol_name_matcher.
1440 * dictionary.c (dict_vector) <iter_match_first, iter_match_next>:
1441 Adjust to use lookup_name_info.
1442 (dict_iter_match_first, dict_iter_match_next)
1443 (iter_match_first_hashed, iter_match_next_hashed)
1444 (iter_match_first_linear, iter_match_next_linear): Adjust to work
1445 with a lookup_name_info.
1446 * dictionary.h (dict_iter_match_first, dict_iter_match_next):
1447 Likewise.
1448 * dwarf2read.c (dw2_lookup_symbol): Adjust to use lookup_name_info.
1449 (dw2_map_matching_symbols): Adjust to use symbol_name_match_type.
1450 (gdb_index_symbol_name_matcher): New class.
1451 (dw2_expand_symtabs_matching) Adjust to use lookup_name_info and
1452 gdb_index_symbol_name_matcher. Accept a NULL symbol_matcher.
1453 * f-lang.c (f_collect_symbol_completion_matches): Adjust to work
1454 with a symbol_name_match_type.
1455 (f_language_defn): Adjust comments to refer to
1456 la_get_symbol_name_matcher.
1457 * go-lang.c (go_language_defn): Adjust comments to refer to
1458 la_get_symbol_name_matcher.
1459 * language.c (default_symbol_name_matcher)
1460 (language_get_symbol_name_matcher): New functions.
1461 (unknown_language_defn, auto_language_defn): Adjust comments to
1462 refer to la_get_symbol_name_matcher.
1463 * language.h (symbol_name_cmp_ftype): Delete.
1464 (language_defn) <la_collect_symbol_completion_matches>: Add match
1465 type parameter.
1466 <la_get_symbol_name_cmp>: Delete field.
1467 <la_get_symbol_name_matcher>: New field.
1468 <la_iterate_over_symbols>: Adjust to use lookup_name_info.
1469 (default_symbol_name_matcher, language_get_symbol_name_matcher):
1470 Declare.
1471 * linespec.c (iterate_over_all_matching_symtabs)
1472 (iterate_over_file_blocks): Adjust to use lookup_name_info.
1473 (find_methods): Add language parameter, and use lookup_name_info
1474 and the language's symbol_name_matcher_ftype.
1475 (linespec_complete_function): Adjust.
1476 (lookup_prefix_sym): Use lookup_name_info.
1477 (add_all_symbol_names_from_pspace): Adjust.
1478 (find_superclass_methods): Add language parameter and pass it
1479 down.
1480 (find_method): Pass symbol language down.
1481 (find_linespec_symbols): Don't demangle or Ada encode here.
1482 (search_minsyms_for_name): Add lookup_name_info parameter.
1483 (add_matching_symbols_to_info): Add name_match_type parameter.
1484 Use lookup_name_info.
1485 * m2-lang.c (m2_language_defn): Adjust comments to refer to
1486 la_get_symbol_name_matcher.
1487 * minsyms.c: Include <algorithm>.
1488 (add_minsym_to_demangled_hash_table): Remove table parameter and
1489 add objfile parameter. Use search_name_hash, and add language to
1490 demangled languages vector.
1491 (struct found_minimal_symbols): New struct.
1492 (lookup_minimal_symbol_mangled, lookup_minimal_symbol_demangled):
1493 New functions.
1494 (lookup_minimal_symbol): Adjust to use them. Don't canonicalize
1495 input names here. Use lookup_name_info instead. Lookup up
1496 demangled names once for each language in the demangled names
1497 vector.
1498 (iterate_over_minimal_symbols): Use lookup_name_info. Lookup up
1499 demangled names once for each language in the demangled names
1500 vector.
1501 (build_minimal_symbol_hash_tables): Adjust.
1502 * minsyms.h (iterate_over_minimal_symbols): Adjust to pass down a
1503 lookup_name_info.
1504 * objc-lang.c (objc_language_defn): Adjust comment to refer to
1505 la_get_symbol_name_matcher.
1506 * objfiles.h: Include <vector>.
1507 (objfile_per_bfd_storage) <demangled_hash_languages>: New field.
1508 * opencl-lang.c (opencl_language_defn): Adjust comment to refer to
1509 la_get_symbol_name_matcher.
1510 * p-lang.c (pascal_language_defn): Adjust comment to refer to
1511 la_get_symbol_name_matcher.
1512 * psymtab.c (psym_lookup_symbol): Use lookup_name_info.
1513 (match_partial_symbol): Use symbol_name_match_type,
1514 lookup_name_info and psymbol_name_matches.
1515 (lookup_partial_symbol): Use lookup_name_info.
1516 (map_block): Use symbol_name_match_type and lookup_name_info.
1517 (psym_map_matching_symbols): Use symbol_name_match_type.
1518 (psymbol_name_matches): New.
1519 (recursively_search_psymtabs): Use lookup_name_info and
1520 psymbol_name_matches. Rename 'kind' parameter to 'domain'.
1521 (psym_expand_symtabs_matching): Use lookup_name_info. Rename
1522 'kind' parameter to 'domain'.
1523 * rust-lang.c (rust_language_defn): Adjust comment to refer to
1524 la_get_symbol_name_matcher.
1525 * symfile-debug.c (debug_qf_map_matching_symbols)
1526 (debug_qf_map_matching_symbols): Use symbol_name_match_type.
1527 (debug_qf_expand_symtabs_matching): Use lookup_name_info.
1528 * symfile.c (expand_symtabs_matching): Use lookup_name_info.
1529 * symfile.h (quick_symbol_functions) <map_matching_symbols>:
1530 Adjust to use symbol_name_match_type.
1531 <expand_symtabs_matching>: Adjust to use lookup_name_info.
1532 (expand_symtabs_matching): Adjust to use lookup_name_info.
1533 * symmisc.c (maintenance_expand_symtabs): Use
1534 lookup_name_info::match_any ().
1535 * symtab.c (symbol_matches_search_name): New.
1536 (eq_symbol_entry): Adjust to use lookup_name_info and the
1537 language's matcher.
1538 (demangle_for_lookup_info::demangle_for_lookup_info): New.
1539 (lookup_name_info::match_any): New.
1540 (iterate_over_symbols, search_symbols): Use lookup_name_info.
1541 (compare_symbol_name): Add language, lookup_name_info and
1542 completion_match_result parameters, and use them.
1543 (completion_list_add_name): Make extern. Add language and
1544 lookup_name_info parameters. Use them.
1545 (completion_list_add_symbol, completion_list_add_msymbol)
1546 (completion_list_objc_symbol): Add lookup_name_info parameters and
1547 adjust. Pass down language.
1548 (completion_list_add_fields): Add lookup_name_info parameters and
1549 adjust. Pass down language.
1550 (add_symtab_completions): Add lookup_name_info parameters and
1551 adjust.
1552 (default_collect_symbol_completion_matches_break_on): Add
1553 name_match_type parameter, and use it. Use lookup_name_info.
1554 (default_collect_symbol_completion_matches)
1555 (collect_symbol_completion_matches): Add name_match_type
1556 parameter, and pass it down.
1557 (collect_symbol_completion_matches_type): Adjust.
1558 (collect_file_symbol_completion_matches): Add name_match_type
1559 parameter, and use lookup_name_info.
1560 * symtab.h: Include <string> and "common/gdb_optional.h".
1561 (enum class symbol_name_match_type): New.
1562 (class ada_lookup_name_info): New.
1563 (struct demangle_for_lookup_info): New.
1564 (class lookup_name_info): New.
1565 (symbol_name_matcher_ftype): New.
1566 (SYMBOL_MATCHES_SEARCH_NAME): Use symbol_matches_search_name.
1567 (symbol_matches_search_name): Declare.
1568 (MSYMBOL_MATCHES_SEARCH_NAME): Delete.
1569 (default_collect_symbol_completion_matches)
1570 (collect_symbol_completion_matches)
1571 (collect_file_symbol_completion_matches): Add name_match_type
1572 parameter.
1573 (iterate_over_symbols): Use lookup_name_info.
1574 (completion_list_add_name): Declare.
1575 * utils.c (enum class strncmp_iw_mode): Moved to utils.h.
1576 (strncmp_iw_with_mode): Now extern.
1577 * utils.h (enum class strncmp_iw_mode): Moved from utils.c.
1578 (strncmp_iw_with_mode): Declare.
1579
1580 2017-11-08 Keith Seitz <keiths@redhat.com>
1581 Pedro Alves <palves@redhat.com>
1582
1583 * ada-lang.c (ada_language_defn): Install
1584 default_search_name_hash.
1585 * buildsym.c (struct buildsym_compunit): <language>: New field.
1586 (finish_block_internal): Pass language when creating dictionaries.
1587 (start_buildsym_compunit, start_symtab): New language parameters.
1588 Use them.
1589 (restart_symtab): Pass down compilation unit's language.
1590 * buildsym.h (enum language): Forward declare.
1591 (start_symtab): New 'language' parameter.
1592 * c-lang.c (c_language_defn, cplus_language_defn)
1593 (asm_language_defn, minimal_language_defn): Install
1594 default_search_name_hash.
1595 * coffread.c (coff_start_symtab): Adjust.
1596 * d-lang.c (d_language_defn): Install default_search_name_hash.
1597 * dbxread.c (struct symloc): Add 'pst_language' field.
1598 (PST_LANGUAGE): Define.
1599 (start_psymtab, read_ofile_symtab): Use it.
1600 (process_one_symbol): New 'language' parameter. Pass it down.
1601 * dictionary.c (struct dictionary) <language>: New field.
1602 (DICT_LANGUAGE): Define.
1603 (dict_create_hashed, dict_create_hashed_expandable)
1604 (dict_create_linear, dict_create_linear_expandable): New parameter
1605 'language'. Set the dictionary's language.
1606 (iter_match_first_hashed): Adjust to rename.
1607 (insert_symbol_hashed): Assert we don't see mismatching
1608 languages. Adjust to rename.
1609 (dict_hash): Rename to ...
1610 (default_search_name_hash): ... this and make extern.
1611 * dictionary.h (struct language_defn): Forward declare.
1612 (dict_create_hashed): New parameter 'language'.
1613 * dwarf2read.c (dwarf2_start_symtab): Pass down language.
1614 * f-lang.c (f_language_defn): Install default_search_name_hash.
1615 * go-lang.c (go_language_defn): Install default_search_name_hash.
1616 * jit.c (finalize_symtab): Pass compunit's language to dictionary
1617 creation.
1618 * language.c (unknown_language_defn, auto_language_defn):
1619 * language.h (language_defn::la_search_name_hash): New field.
1620 (default_search_name_hash): Declare.
1621 * m2-lang.c (m2_language_defn): Install default_search_name_hash.
1622 * mdebugread.c (new_block): New parameter 'language'.
1623 * mdebugread.c (parse_symbol): Pass symbol language to block
1624 allocation.
1625 (psymtab_to_symtab_1): Pass down language.
1626 (new_symtab): Pass compunit's language to block allocation.
1627 * objc-lang.c (objc_language_defn): Install
1628 default_search_name_hash.
1629 * opencl-lang.c (opencl_language_defn):
1630 * p-lang.c (pascal_language_defn): Install
1631 default_search_name_hash.
1632 * rust-lang.c (rust_language_defn): Install
1633 default_search_name_hash.
1634 * stabsread.h (enum language): Forward declare.
1635 (process_one_symbol): Add 'language' parameter.
1636 * symtab.c (search_name_hash): New function.
1637 * symtab.h (search_name_hash): Declare.
1638 * xcoffread.c (read_xcoff_symtab): Pass language to start_symtab.
1639
1640 2017-11-08 Pedro Alves <palves@redhat.com>
1641
1642 * cp-name-parser.y (main): Don't initialize extra_chars.
1643
1644 2017-11-07 Tom Tromey <tom@tromey.com>
1645
1646 * event-top.h (command_handler): Constify.
1647 * record-full.c (cmd_record_full_start): Update.
1648 * thread.c (thread_apply_all_command): Update.
1649 * printcmd.c (eval_command): Update.
1650 * mi/mi-main.c (mi_execute_cli_command): Update.
1651 (mi_execute_async_cli_command): Update.
1652 * tui/tui-stack.c (tui_update_command): Update.
1653 * cli/cli-interp.c (safe_execute_command): Constify.
1654 * record.c (record_start): Update.
1655 (record_start, record_stop, cmd_record_start): Update.
1656 * record-btrace.c (cmd_record_btrace_bts_start): Update.
1657 (cmd_record_btrace_pt_start): Update.
1658 (cmd_record_btrace_start): Update.
1659 (cmd_record_btrace_start): Update.
1660 * reverse.c (exec_reverse_once): Update.
1661 * python/python.c (execute_gdb_command): Don't copy the command.
1662 * event-top.c (command_line_handler): Update.
1663 (command_handler): Constify.
1664 * defs.h (deprecated_call_command_hook): Constify.
1665 * cli/cli-script.h (execute_user_command): Constify.
1666 * cli/cli-script.c (execute_user_command): Constify.
1667 (execute_cmd_pre_hook, execute_cmd_post_hook): Constify.
1668 (enum command_control_type): Update.
1669 * main.c (catch_command_errors): Remove non-const overload.
1670 (catch_command_errors_ftype): Remove.
1671 * python/py-cmd.c (cmdpy_function): Constify.
1672 * guile/scm-cmd.c (cmdscm_function): Constify.
1673 * cli/cli-dump.c (call_dump_func): Constify.
1674 * cli/cli-decode.c (do_const_cfunc): Constify.
1675 (do_sfunc): Constify.
1676 (cmd_func): Constify.
1677 * gdbcmd.h (execute_command, execute_command_to_string): Constify.
1678 * top.h (execute_command): Constify.
1679 * top.c (execute_command): Constify.
1680 (execute_command_to_string): Constify.
1681 (deprecated_call_command_hook): Constify.
1682 * command.h (cmd_func): Constify.
1683 * cli/cli-decode.h (struct cmd_list_element) <func>: Constify.
1684
1685 2017-11-07 Tom Tromey <tom@tromey.com>
1686
1687 * ada-lang.c (catch_ada_exception_command): Constify.
1688 (catch_assert_command): Constify.
1689 * break-catch-throw.c (catch_catch_command, catch_throw_command)
1690 (catch_rethrow_command): Constify.
1691 (catch_exception_command_1): Constify.
1692 * breakpoint.h (add_catch_command): Constify.
1693 * break-catch-syscall.c (catch_syscall_command_1): Constify.
1694 (catch_syscall_split_args): Constify.
1695 * break-catch-sig.c (catch_signal_command): Constify.
1696 (catch_signal_split_args): Constify.
1697 * cli/cli-decode.h (struct cmd_list_element) <function>: Use
1698 cmd_const_sfunc_ftype.
1699 * cli/cli-decode.c (add_setshow_cmd_full): Constify.
1700 (add_setshow_enum_cmd, add_setshow_auto_boolean_cmd)
1701 (add_setshow_boolean_cmd, add_setshow_filename_cmd)
1702 (add_setshow_string_cmd, struct cmd_list_element)
1703 (add_setshow_optional_filename_cmd, add_setshow_integer_cmd)
1704 (add_setshow_uinteger_cmd, add_setshow_zinteger_cmd)
1705 (add_setshow_zuinteger_unlimited_cmd, add_setshow_zuinteger_cmd):
1706 Constify.
1707 (set_cmd_sfunc): Constify.
1708 (empty_sfunc): Constify.
1709 * command.h (add_setshow_enum_cmd, add_setshow_auto_boolean_cmd)
1710 (add_setshow_boolean_cmd, add_setshow_filename_cmd)
1711 (add_setshow_string_cmd, add_setshow_string_noescape_cmd)
1712 (add_setshow_optional_filename_cmd, add_setshow_integer_cmd)
1713 (add_setshow_uinteger_cmd, add_setshow_zinteger_cmd)
1714 (add_setshow_zuinteger_cmd, add_setshow_zuinteger_unlimited_cmd):
1715 Constify.
1716 (set_cmd_sfunc): Constify.
1717 (cmd_sfunc_ftype): Remove.
1718 * compile/compile.c (set_compile_args): Constify.
1719 * infrun.c (set_disable_randomization): Constify.
1720 * infcmd.c (set_args_command, set_cwd_command): Constify.
1721 * breakpoint.c (set_condition_evaluation_mode): Constify.
1722 (add_catch_command): Constify.
1723 (catch_fork_command_1, catch_exec_command_1)
1724 (catch_load_command_1, catch_unload_command_1): Constify.
1725 (catch_load_or_unload): Constify.
1726 * guile/scm-param.c (pascm_set_func): Constify.
1727 (add_setshow_generic): Constify.
1728 * python/py-param.c (get_set_value): Constify.
1729 * top.h (set_verbose): Constify.
1730 * tui/tui-win.c (tui_set_var_cmd): Constify.
1731 * mi/mi-main.c (set_mi_async_command): Constify.
1732 * cli/cli-logging.c (set_logging_overwrite)
1733 (set_logging_redirect): Constify.
1734 * value.c (set_max_value_size): Constify.
1735 * valprint.c (set_input_radix, set_output_radix): Constify.
1736 * utils.c (set_width_command, set_height_command): Constify.
1737 * typeprint.c (set_print_type_methods, set_print_type_typedefs): Constify.
1738 * tracepoint.c (set_disconnected_tracing)
1739 (set_circular_trace_buffer, set_trace_buffer_size)
1740 (set_trace_user, set_trace_notes, set_trace_stop_notes): Constify.
1741 * top.c (set_history_size_command, set_verbose, set_editing)
1742 (set_gdb_datadir, set_history_filename): Constify.
1743 * target.c (set_targetdebug, maint_set_target_async_command)
1744 (maint_set_target_non_stop_command, set_target_permissions)
1745 (set_write_memory_permission): Constify.
1746 (open_target): Constify.
1747 * target-descriptions.c (set_tdesc_filename_cmd): Constify.
1748 * target-dcache.c (set_stack_cache, set_code_cache): Constify.
1749 * symtab.c (set_symbol_cache_size_handler): Constify.
1750 * symfile.c (set_ext_lang_command): Constify.
1751 * symfile-debug.c (set_debug_symfile): Constify.
1752 * source.c (set_directories_command): Constify.
1753 * solib.c (reload_shared_libraries, gdb_sysroot_changed): Constify.
1754 * serial.c (set_parity): Constify.
1755 * rs6000-tdep.c (powerpc_set_soft_float, powerpc_set_vector_abi): Constify.
1756 * remote.c (set_remote_exec_file, set_remotebreak)
1757 (set_remote_protocol_Z_packet_cmd, set_range_stepping): Constify.
1758 * record.c (set_record_insn_history_size)
1759 (set_record_call_history_size): Constify.
1760 * record-full.c (set_record_full_insn_max_num): Constify.
1761 * proc-api.c (set_procfs_trace_cmd, set_procfs_file_cmd): Constify.
1762 * osabi.c (set_osabi): Constify.
1763 * mips-tdep.c (set_mips64_transfers_32bit_regs)
1764 (reinit_frame_cache_sfunc, mips_abi_update): Constify.
1765 * maint.c (maintenance_set_profile_cmd): Constify.
1766 * linux-thread-db.c (set_libthread_db_search_path): Constify.
1767 * language.c (set_language_command, set_range_command)
1768 (set_case_command): Constify.
1769 * infrun.c (set_non_stop, set_observer_mode)
1770 (set_stop_on_solib_events, set_schedlock_func)
1771 (set_exec_direction_func): Constify.
1772 * infcmd.c (set_inferior_tty_command): Constify.
1773 * disasm.c (set_disassembler_options_sfunc): Constify.
1774 * demangle.c (set_demangling_command): Constify.
1775 * dcache.c (set_dcache_size, set_dcache_line_size): Constify.
1776 * cris-tdep.c (set_cris_version, set_cris_mode)
1777 (set_cris_dwarf2_cfi): Constify.
1778 * corefile.c (set_gnutarget_command): Constify.
1779 * charset.c (set_host_charset_sfunc, set_target_charset_sfunc)
1780 (set_target_wide_charset_sfunc): Constify.
1781 * breakpoint.c (update_dprintf_commands): Constify.
1782 * auto-load.c (set_auto_load_dir, set_auto_load_safe_path): Constify.
1783 * arm-tdep.c (set_fp_model_sfunc, arm_set_abi)
1784 (set_disassembly_style_sfunc): Constify.
1785 * arch-utils.c (set_endian, set_architecture): Constify.
1786 * alpha-tdep.c (reinit_frame_cache_sfunc): Constify.
1787 * agent.c (set_can_use_agent): Constify.
1788
1789 2017-11-07 Tom Tromey <tom@tromey.com>
1790
1791 * go32-nat.c (go32_sysinfo, go32_sldt, go32_sgdt, go32_sidt)
1792 (go32_pde, go32_pte, go32_pte_for_address): Constify.
1793 * gnu-nat.c (_parse_bool_arg, show_thread_default_pause_cmd)
1794 (set_thread_default_pause_cmd, set_thread_default_run_cmd)
1795 (show_thread_default_run_cmd, set_thread_default_detach_sc_cmd)
1796 (parse_int_arg, show_thread_default_detach_sc_cmd)
1797 (set_signals_cmd, show_signals_cmd, set_sig_thread_cmd)
1798 (show_sig_thread_cmd, set_stopped_cmd, show_stopped_cmd)
1799 (set_exceptions_cmd, show_exceptions_cmd, set_task_pause_cmd)
1800 (show_task_pause_cmd, set_task_detach_sc_cmd)
1801 (show_task_detach_sc_cmd, set_task_exc_port_cmd)
1802 (set_noninvasive_cmd, set_thread_pause_cmd)
1803 (show_thread_pause_cmd, set_thread_run_cmd, show_thread_run_cmd)
1804 (set_thread_detach_sc_cmd, show_thread_detach_sc_cmd)
1805 (set_thread_exc_port_cmd, thread_takeover_sc_cmd): Constify.
1806 * windows-nat.c (display_selectors): Constify.
1807 * cli/cli-decode.h (struct cmd_list_element) <function>: Remove
1808 non-const "cfunc".
1809 * cli/cli-decode.c (set_cmd_cfunc): Remove non-const overload.
1810 (cmd_cfunc_eq): Likewise.
1811 (struct cmd_list_element): Likewise.
1812 (do_cfunc): Remove.
1813 (cli_user_command_p): Update.
1814 * command.h (add_cmd): Remove non-const overload.
1815 (cmd_cfunc_ftype): Remove typedef.
1816 (cmd_cfunc_eq): Remove non-const overload.
1817 * value.c (show_values): Constify.
1818 * thread.c (thread_apply_all_command): Constify.
1819 * symfile.c (load_command): Constify.
1820 * source.c (directory_command): Constify.
1821 * maint.c (maintenance_internal_error)
1822 (maintenance_demangler_warning, maintenance_space_display)
1823 (maintenance_print_architecture, maintenance_translate_address)
1824 (maintenance_info_selftests, maintenance_internal_warning):
1825 Constify.
1826 * breakpoint.c (disable_trace_command, enable_trace_command):
1827 Constify.
1828 * auto-load.c (info_auto_load_local_gdbinit, add_auto_load_dir):
1829 Constify.
1830 (add_auto_load_safe_path): Constify.
1831 * guile/scm-auto-load.c (info_auto_load_guile_scripts): Constify.
1832 * top.h (show_commands): Constify.
1833 * linux-thread-db.c (info_auto_load_libthread_db): Constify.
1834 * sparc64-tdep.c (adi_examine_command): Constify.
1835 (adi_assign_command): Constify.
1836
1837 2017-11-07 Tom Tromey <tom@tromey.com>
1838
1839 * frame.h (info_locals_command, info_args_command): Constify.
1840 * auto-load.h (auto_load_info_scripts): Constify.
1841 * inferior.h (registers_info): Constify.
1842 * copying.c: Rebuild.
1843 * copying.awk: Constify generated commands.
1844 * auto-load.c (auto_load_info_scripts)
1845 (info_auto_load_gdb_scripts): Constify.
1846 * cli/cli-decode.c (struct cmd_list_element): Take a
1847 cmd_const_cfunc_ftype.
1848 * command.h (add_info): Take a cmd_const_cfunc_ftype.
1849 * tui/tui-win.c (tui_all_windows_info): Constify.
1850 * python/py-auto-load.c (info_auto_load_python_scripts):
1851 Constify.
1852 * cli/cli-cmds.c (show_command): Remove non-const overload.
1853 * tracepoint.c (info_tvariables_command, info_scope_command):
1854 Constify.
1855 (info_static_tracepoint_markers_command): Constify.
1856 * thread.c (info_threads_command): Constify.
1857 (print_thread_info_1): Constify.
1858 * target.c (info_target_command): Constify.
1859 * symtab.c (info_sources_command, info_functions_command)
1860 (info_types_command): Constify.
1861 (info_variables_command): Remove non-const overload.
1862 * symfile.c (info_ext_lang_command): Constify.
1863 * stack.c (info_frame_command, info_locals_command)
1864 (info_args_command): Constify.
1865 (backtrace_command): Remove non-const overload.
1866 * source.c (info_source_command, info_line_command): Constify.
1867 * solib.c (info_sharedlibrary_command): Constify.
1868 * skip.c (info_skip_command): Constify.
1869 * ser-go32.c (info_serial_command): Constify.
1870 * reverse.c (info_bookmarks_command): Constify.
1871 * printcmd.c (info_symbol_command, info_address_command)
1872 (info_display_command): Constify.
1873 * osdata.c (info_osdata_command): Constify.
1874 * objc-lang.c (info_selectors_command, info_classes_command):
1875 Constify.
1876 * nto-procfs.c (procfs_pidlist, procfs_meminfo): Constify.
1877 * memattr.c (info_mem_command): Constify.
1878 * macrocmd.c (info_macro_command, info_macros_command): Constify.
1879 * linux-fork.c (info_checkpoints_command): Constify.
1880 * infrun.c (info_signals_command): Constify.
1881 * inflow.c (info_terminal_command): Constify.
1882 * inferior.c (info_inferiors_command): Constify.
1883 (print_inferior): Constify.
1884 * infcmd.c (info_program_command, info_all_registers_command)
1885 (info_registers_command, info_vector_command)
1886 (info_float_command): Constify.
1887 (registers_info): Constify.
1888 * gnu-nat.c (info_send_rights_cmd, info_recv_rights_cmd)
1889 (info_port_sets_cmd, info_dead_names_cmd, info_port_rights_cmd):
1890 Constify.
1891 * f-valprint.c (info_common_command): Constify.
1892 * dcache.c (info_dcache_command): Constify.
1893 (dcache_info_1): Constify.
1894 * darwin-nat-info.c (info_mach_tasks_command)
1895 (info_mach_task_command, info_mach_ports_command)
1896 (info_mach_port_command, info_mach_threads_command)
1897 (info_mach_thread_command, info_mach_regions_command)
1898 (info_mach_regions_recurse_command, info_mach_region_command)
1899 (info_mach_exceptions_command): Constify.
1900 (get_task_from_args): Constify.
1901 * cp-support.c (info_vtbl_command): Constify.
1902 * breakpoint.c (info_watchpoints_command)
1903 (info_tracepoints_command): Constify.
1904 (info_breakpoints_command): Remove non-const overload.
1905 * avr-tdep.c (avr_io_reg_read_command): Constify.
1906 * auxv.c (info_auxv_command): Constify.
1907 * ada-tasks.c (info_tasks_command): Constify.
1908 (info_task): Constify.
1909 * ada-lang.c (info_exceptions_command): Constify.
1910
1911 2017-11-07 Tom Tromey <tom@tromey.com>
1912
1913 * solib.h (no_shared_libraries): Constify.
1914 * frame.h (return_command): Constify.
1915 * cli/cli-cmds.h (quit_command): Constify.
1916 * top.h (quit_command, execute_command): Constify.
1917 * target.h (flash_erase_command): Constify.
1918 * inferior.h (set_inferior_args, attach_command): Constify.
1919 * tracepoint.h (start_tracing, stop_tracing): Constify.
1920 * breakpoint.h (break_command, tbreak_command)
1921 (hbreak_command_wrapper, thbreak_command_wrapper)
1922 (rbreak_command_wrapper, watch_command_wrapper)
1923 (awatch_command_wrapper, rwatch_command_wrapper)
1924 (get_tracepoint_by_number): Constify.
1925 * symtab.c (info_variables_command, rbreak_command)
1926 (symtab_symbol_info): Constify.
1927 (info_variables_command): Add non-const overload.
1928 * top.c (dont_repeat_command): Constify.
1929 * breakpoint.c (ignore_command, commands_command)
1930 (condition_command, tbreak_command, hbreak_command)
1931 (thbreak_command, clear_command, break_command)
1932 (info_breakpoints_command, watch_command, rwatch_command)
1933 (awatch_command, trace_command, ftrace_command, strace_command)
1934 (trace_pass_command, break_range_command, dprintf_command)
1935 (agent_printf_command, get_tracepoint_by_number)
1936 (watch_maybe_just_location, trace_pass_command): Constify.
1937 (info_breakpoints_command): Add non-const overload.
1938 * tracefile.c (tsave_command): Constify.
1939 * infcmd.c (attach_command, disconnect_command, signal_command)
1940 (queue_signal_command, stepi_command, nexti_command)
1941 (finish_command, next_command, step_command, until_command)
1942 (advance_command, jump_command, continue_command, run_command)
1943 (start_command, starti_command, interrupt_command)
1944 (run_command_1, set_inferior_args, step_1): Constify.
1945 * inferior.c (add_inferior_command, remove_inferior_command)
1946 (clone_inferior_command): Constify.
1947 * linux-fork.c (checkpoint_command, restart_command): Constify.
1948 * windows-nat.c (signal_event_command): Constify.
1949 * guile/guile.c (guile_repl_command, guile_command): Constify.
1950 * printcmd.c (x_command, display_command, printf_command)
1951 (output_command, set_command, call_command, print_command)
1952 (eval_command): Constify.
1953 (non_const_set_command): Remove.
1954 (_initialize_printcmd): Update.
1955 * source.c (forward_search_command, reverse_search_command):
1956 Constify.
1957 * jit.c (jit_reader_load_command, jit_reader_unload_command):
1958 Constify.
1959 * infrun.c (handle_command): Constify.
1960 * memattr.c (mem_command): Constify.
1961 * stack.c (return_command, up_command, up_silently_command)
1962 (down_command, down_silently_command, frame_command)
1963 (backtrace_command, func_command, backtrace_command_1): Constify.
1964 (backtrace_command): Add non-const overload.
1965 * remote-sim.c (simulator_command): Constify.
1966 * exec.c (set_section_command): Constify.
1967 * tracepoint.c (tdump_command, trace_variable_command)
1968 (tstatus_command, tstop_command, tstart_command)
1969 (end_actions_pseudocommand, while_stepping_pseudocommand)
1970 (collect_pseudocommand, teval_pseudocommand, actions_command)
1971 (start_tracing, stop_tracing): Constify.
1972 * value.c (init_if_undefined_command): Constify.
1973 * tui/tui-stack.c (tui_update_command): Constify.
1974 * tui/tui-win.c (tui_refresh_all_command)
1975 (tui_set_tab_width_command, tui_set_win_height_command)
1976 (tui_set_focus_command, tui_scroll_forward_command)
1977 (tui_scroll_backward_command, tui_scroll_left_command)
1978 (tui_scroll_right_command, parse_scrolling_args, tui_set_focus)
1979 (tui_set_win_height): Constify.
1980 * tui/tui-layout.c (tui_layout_command): Constify.
1981 * procfs.c (proc_trace_syscalls, proc_trace_sysentry_cmd)
1982 (proc_trace_sysexit_cmd, proc_untrace_sysentry_cmd)
1983 (proc_untrace_sysexit_cmd): Constify.
1984 * remote.c (threadlist_test_cmd, threadinfo_test_cmd)
1985 (threadset_test_cmd, threadlist_update_test_cmd)
1986 (threadalive_test): Constify.
1987 * objc-lang.c (print_object_command): Constify.
1988 * command.h (add_com): Constify.
1989 * cli/cli-dump.c (restore_command): Constify.
1990 * cli/cli-cmds.c (pwd_command, echo_command, quit_command)
1991 (help_command, complete_command, shell_command, edit_command)
1992 (list_command, disassemble_command, make_command)
1993 (apropos_command, alias_command): Constify.
1994 * cli/cli-script.c (document_command, define_command)
1995 (while_command, if_command, validate_comname): Constify.
1996 * cli/cli-decode.c (struct cmd_list_element): Change type of
1997 "fun".
1998 * target.c (do_monitor_command, flash_erase_command): Constify.
1999 * regcache.c (reg_flush_command): Constify.
2000 * reverse.c (reverse_step, reverse_next, reverse_stepi)
2001 (reverse_nexti, reverse_continue, reverse_finish)
2002 (save_bookmark_command, goto_bookmark_command)
2003 (exec_reverse_once): Constify.
2004 * python/python.c (python_interactive_command, python_command):
2005 Constify.
2006 * typeprint.c (ptype_command, whatis_command, whatis_exp):
2007 Constify.
2008 * solib.c (sharedlibrary_command, no_shared_libraries): Constify.
2009 * gcore.c (gcore_command): Constify.
2010
2011 2017-11-07 Tom Tromey <tom@tromey.com>
2012
2013 * printcmd.c (x_command): Call set_repeat_arguments.
2014 * cli/cli-cmds.c (list_command): Call set_repeat_arguments.
2015 * top.c (repeat_arguments): New global.
2016 (set_repeat_arguments): New function.
2017 (execute_command): Handle repeat_arguments.
2018 (show_commands): Calls set_repeat_arguments.
2019 * command.h (set_repeat_arguments): Declare.
2020
2021 2017-11-07 Tom Tromey <tom@tromey.com>
2022
2023 * stack.c (backtrace_command): Use std::string.
2024 (backtrace_command_1): Make "count_exp" const.
2025
2026 2017-11-07 Tom Tromey <tom@tromey.com>
2027
2028 * source.c (directory_switch, mod_path, add_path): Constify.
2029 * defs.h (add_path, mod_path, directory_switch): Constify.
2030 * mi/mi-cmd-env.c (env_mod_path): Constify.
2031
2032 2017-11-07 Tom Tromey <tom@tromey.com>
2033
2034 * infcmd.c (strip_bg_char): Return gdb::unique_xmalloc_ptr.
2035 (run_command_1, continue_command, step_1, jump_command)
2036 (signal_command, until_command, advance_command, finish_command)
2037 (attach_command): Update.
2038
2039 2017-11-07 Tom Tromey <tom@tromey.com>
2040
2041 * command.h (set_cmd_cfunc): Don't declare.
2042 * cli/cli-decode.c (set_cmd_cfunc): Now static.
2043
2044 2017-11-07 Tom Tromey <tom@tromey.com>
2045
2046 * stack.c (select_frame_command): Constify.
2047 * cli/cli-decode.c (add_com_suppress_notification): Constify.
2048 * command.h (add_com_suppress_notification): Constify.
2049
2050 2017-11-07 Tom Tromey <tom@tromey.com>
2051
2052 * breakpoint.c (stop_command): Constify.
2053 * cli/cli-decode.c (struct cmd_list_element): Constify.
2054 * command.h (add_abbrev_prefix_cmd): Constify.
2055
2056 2017-11-07 Pedro Alves <palves@redhat.com>
2057
2058 * breakpoint.c (extract_bp_kind): New enum.
2059 (extract_bp_num, extract_bp_or_bp_range): New functions, partially
2060 factored out from ...
2061 (extract_bp_number_and_location): ... here.
2062 * cli/cli-utils.c (get_number_trailer): Handle '-$variable'.
2063
2064 2017-11-07 Pedro Alves <palves@redhat.com>
2065
2066 * breakpoint.c (extract_bp_number_and_location): Change return
2067 type to void. Throw error instead of warning.
2068 (enable_disable_command): Adjust.
2069
2070 2017-11-07 Xavier Roirand <roirand@adacore.com>
2071 Pedro Alves <palves@redhat.com>
2072
2073 * breakpoint.c (map_breakpoint_number_range): New, factored out
2074 from ...
2075 (map_breakpoint_numbers): ... here.
2076 (find_location_by_number): Change parameters from string to
2077 breakpoint number and location.
2078 (extract_bp_number_and_location): New function.
2079 (enable_disable_bp_num_loc)
2080 (enable_disable_breakpoint_location_range)
2081 (enable_disable_command): New functions, factored out ...
2082 (enable_command, disable_command): ... these functions, and
2083 adjusted to support ranges.
2084 * NEWS: Document enable/disable breakpoint location range feature.
2085
2086 2017-11-06 Luis Machado <luis.machado@linaro.org>
2087
2088 * MAINTAINERS (Write After Approval): Update my e-mail address.
2089
2090 2017-11-06 Pedro Alves <palves@redhat.com>
2091
2092 * gnu-nat.c (gnu_terminal_init): Delete.
2093 (gnu_target): Don't install gnu_terminal_init.
2094 * inflow.c (child_terminal_init_with_pgrp): Delete, merged with ...
2095 (child_terminal_init): ... this function.
2096
2097 2017-11-06 Pedro Alves <palves@redhat.com>
2098
2099 * common/common.m4 (GDB_AC_COMMON): No longer check termio.h nor
2100 sgtty.h.
2101 * config.in, configure: Regenerate.
2102
2103 2017-11-06 Pedro Alves <palves@redhat.com>
2104
2105 * event-top.c: Check SIGTSTP instead of STOP_SIGNAL thoughout.
2106 (async_init_signals): Adjust.
2107 (handle_stop_sig): Rename to ...
2108 (handle_sigtstp): ... this.
2109 (async_stop_sig): Rename to ...
2110 (async_sigtstp_handler): ... this, and delete STOP_SIGNAL !=
2111 SIGTSTP path.
2112 * event-top.h: Move signal.h include to the top. Check SIGTSTP
2113 instead of STOP_SIGNAL thoughout.
2114 (handle_stop_sig): Rename to ...
2115 (handle_sigtstp): ... this.
2116 * top.c (command_line_input): Replace STOP_SIGNAL -> SIGTSTP.
2117
2118 2017-11-06 Pedro Alves <palves@redhat.com>
2119
2120 * inflow.c (child_terminal_inferior, child_terminal_ours_1): No
2121 longer set flags twice in row.
2122
2123 2017-11-06 Pedro Alves <palves@redhat.com>
2124
2125 * Makefile.in (SER_HARDWIRE): Update comment.
2126 (HFILES_NO_SRCDIR): Remove gdb_termios.h.
2127 * common/gdb_termios.h: Delete file.
2128 * common/job-control.c: Include termios.h and unistd.h instead of
2129 gdb_termios.h.
2130 (gdb_setpgid): Remove HAVE_TERMIOS || TIOCGPGRP preprocessor
2131 check.
2132 (have_job_control): Check HAVE_TERMIOS_H instead of HAVE_TERMIOS.
2133 Remove sgtty code.
2134 * configure.ac: No longer check for termio.h and sgtty.h.
2135 * configure: Regenerate.
2136 * inflow.c: Include termios.h instead of gdb_termios.h. Replace
2137 PROCESS_GROUP_TYPE checks with HAVE_TERMIOS_H checks throughout.
2138 Replace PROCESS_GROUP_TYPE references with pid_t references
2139 throughout.
2140 (gdb_getpgrp): Delete.
2141 (set_initial_gdb_ttystate): Use tcgetpgrp instead of gdb_getpgrp.
2142 (child_terminal_inferior): Remove comment. Remove sgtty code.
2143 (child_terminal_ours_1): Use tcgetpgrp directly instead of
2144 gdb_getpgrp. Use serial_set_tty_state instead aof
2145 serial_noflush_set_tty_state. Remove sgtty code.
2146 * inflow.h: Include unistd.h instead of gdb_termios.h. Replace
2147 PROCESS_GROUP_TYPE check with HAVE_TERMIOS_H check.
2148 (inferior_process_group): Now returns pid_t.
2149 * ser-base.c (ser_base_noflush_set_tty_state): Delete.
2150 * ser-base.h (ser_base_noflush_set_tty_state): Delete.
2151 * ser-event.c (serial_event_ops): Update.
2152 * ser-go32.c (dos_noflush_set_tty_state): Delete.
2153 (dos_ops): Update.
2154 * ser-mingw.c (hardwire_ops, tty_ops, pipe_ops, tcp_ops): Update.
2155 * ser-pipe.c (pipe_ops): Update.
2156 * ser-tcp.c (tcp_ops): Update.
2157 * ser-unix.c: Include termios.h instead of gdb_termios.h. Remove
2158 HAVE_TERMIOS checks.
2159 [HAVE_TERMIO] (struct hardwire_ttystate): Delete.
2160 [HAVE_SGTTY] (struct hardwire_ttystate): Delete.
2161 (get_tty_state, set_tty_state): Drop termio and sgtty code, and
2162 assume termios.
2163 (hardwire_noflush_set_tty_state): Delete.
2164 (hardwire_print_tty_state, hardwire_drain_output)
2165 (hardwire_flush_output, hardwire_flush_input)
2166 (hardwire_send_break, hardwire_raw, hardwire_setbaudrate)
2167 (hardwire_setstopbits, hardwire_setparity): Drop termio and sgtty
2168 code, and assume termios.
2169 (hardwire_ops): Update.
2170 (_initialize_ser_hardwire): Remove HAVE_TERMIOS check.
2171 * serial.c (serial_noflush_set_tty_state): Delete.
2172 * serial.h (serial_noflush_set_tty_state): Delete.
2173 (serial_ops::noflush_set_tty_state): Delete.
2174
2175 2017-11-06 Ulrich Weigand <uweigand@de.ibm.com>
2176
2177 * Makefile.in (SFILES): Remove doublest.c and dfp.c.
2178 (HFILES_NO_SRCDIR): Remove doublest.h and dfp.h.
2179 (COMMON_OBS): Remove doublest.o and dfp.o.
2180 Do not build target-float.c (instead of doublest.c)
2181 with -Wformat-nonliteral.
2182
2183 * doublest.c: Remove file.
2184 * doublest.h: Remove file.
2185 * dfp.c: Remove file.
2186 * dfp.h: Remove file.
2187
2188 * target-float.c: Do not include "doublest.h" and "dfp.h".
2189 (DOUBLEST): Move here from doublest.h.
2190 (enum float_kind): Likewise.
2191 (FLOATFORMAT_CHAR_BIT): Likewise.
2192 (FLOATFORMAT_LARGEST_BYTES): Likewise.
2193 (floatformat_totalsize_bytes): Move here from doublest.c. Make static.
2194 (floatformat_precision): Likewise.
2195 (floatformat_normalize_byteorder, get_field, put_field): Likewise.
2196 (floatformat_is_negative, floatformat_classify, floatformat_mantissa):
2197 Likewise.
2198 (host_float_format, host_double_format, host_long_double_format):
2199 Likewise.
2200 (floatformat_to_string, floatformat_from_string): Likewise.
2201 (floatformat_to_doublest): Likewise. Also, inline the original
2202 convert_floatformat_to_doublest.
2203 (floatformat_from_doublest): Likewise. Also, inline the original
2204 convert_floatformat_from_doublest.
2205
2206 Include "dpd/decimal128.h", "dpd/decimal64.h", and "dpd/decimal32.h".
2207 (MAX_DECIMAL_STRING): Move here from dfp.c.
2208 (match_endianness): Likewise.
2209 (set_decnumber_context, decimal_check_errors): Likewise.
2210 (decimal_from_number, decimal_to_number): Likewise.
2211 (decimal_to_string, decimal_from_string): Likewise. Make static.
2212 (decimal_from_longest, decimal_from_ulongest): Likewise.
2213 (decimal_to_longest): Likewise.
2214 (decimal_binop, decimal_is_zero, decimal_compare): Likewise.
2215 (decimal_convert): Likewise.
2216
2217 2017-11-06 Ulrich Weigand <uweigand@de.ibm.com>
2218
2219 * doublest.c: Do not include "gdbtypes.h".
2220 (extract_typed_floating): Remove.
2221 (store_typed_floating): Remove.
2222 (convert_typed_floating): Remove.
2223 * doublest.h (struct type): Remove.
2224 (DOUBLEST_PRINT_FORMAT): Remove.
2225 (DOUBLEST_SCAN_FORMAT): Remove.
2226 (extract_typed_floating): Remove.
2227 (store_typed_floating): Remove.
2228 (convert_typed_floating): Remove.
2229
2230 * dfp.c (decimal_from_doublest): Remove.
2231 (decimal_to_doublest): Remove.
2232 * dfp.h: Do not include "doublest.h".
2233 (decimal_from_doublest): Remove.
2234 (decimal_to_doublest): Remove.
2235
2236 * value.c: Do not include "doublest.h" and "dfp.h".
2237 (value_as_double): Remove.
2238 (unpack_double): Remove.
2239 (value_from_double): Remove.
2240 (value_from_decfloat): Remove.
2241 * value.h: Do not include "doublest.h".
2242 (value_as_double): Remove.
2243 (unpack_double): Remove.
2244 (value_from_double): Remove.
2245 (value_from_decfloat): Remove.
2246
2247 2017-11-06 Ulrich Weigand <uweigand@de.ibm.com>
2248
2249 * i386-tdep.c: Include "target-float.h". Do not include "doublest.h".
2250 (i386_extract_return_value): Use target_float_convert.
2251 (i386_store_return_value): Likewise.
2252 * i387-tdep.c (i387_register_to_value): Use target_float_convert.
2253 (i387_value_to_register): Likewise.
2254 * ia64-tdep.c: Include "target-float.h". Do not include "doublest.h".
2255 (ia64_register_to_value): Use target_float_convert.
2256 (ia64_value_to_register): Likewise.
2257 (ia64_extract_return_value): Likewise.
2258 (ia64_store_return_value): Likewise.
2259 (ia64_push_dummy_call): Likewise.
2260 * m68k-tdep.c: Include "target-float.h".
2261 (m68k_register_to_value): Use target_float_convert.
2262 (m68k_value_to_register): Likewise.
2263 (m68k_svr4_extract_return_value): Likewise.
2264 (m68k_svr4_store_return_value): Likewise.
2265 * ppc-sysv-tdep.c: Include "target-float.h".
2266 (ppc_sysv_abi_push_dummy_call): Use target_float_convert.
2267 (do_ppc_sysv_return_value): Likewise.
2268 (ppc64_sysv_abi_push_freg): Likewise.
2269 (ppc64_sysv_abi_return_value_base): Likewise.
2270 * rs6000-aix-tdep.c: Include "target-float.h".
2271 (rs6000_push_dummy_call): Use target_float_convert.
2272 (rs6000_return_value): Likewise.
2273 * rs6000-lynx178-tdep.c: Include "target-float.h".
2274 (rs6000_lynx178_push_dummy_call): Use target_float_convert.
2275 (rs6000_lynx178_return_value): Likewise.
2276 * rs6000-tdep.c: Include "target-float.h". Do not include "doublest.h".
2277 (rs6000_register_to_value): Use target_float_convert.
2278 (rs6000_value_to_register): Likewise.
2279 * arm-tdep.c: Include "target-float.h". Do not include "doublest.h".
2280 (arm_extract_return_value): Use target_float_convert.
2281 (arm_store_return_value): Likewise.
2282 * sh-tdep.c: Include "target-float.h". Do not include "doublest.h".
2283 (sh_register_convert_to_virtual): Use target_float_convert.
2284 (sh_register_convert_to_raw): Likewise.
2285 * sh64-tdep.c: Include "target-float.h".
2286 (sh64_extract_return_value): Use target_float_convert.
2287 (sh64_register_convert_to_virtual): Likewise.
2288 (sh64_register_convert_to_raw): Likewise. Fix argument types.
2289
2290 2017-11-06 Ulrich Weigand <uweigand@de.ibm.com>
2291
2292 * target-float.c (floatformat_to_host_double): New function.
2293 (floatformat_from_host_double): Likewise.
2294 (target_float_to_host_double): Likewise.
2295 (target_float_from_host_double): Likewise.
2296 * target-float.h (target_float_to_host_double): Add prototype.
2297 (target_float_from_host_double): Likewise.
2298
2299 * guile/scm-value.c: Include "target-float.h".
2300 (gdbscm_value_to_real): Use target_float_to_host_double.
2301 Handle integer source values via value_as_long.
2302 * guile/scm-math.c: Include "target-float.h". Do not include
2303 "doublest.h", "dfp.h", and "expression.h".
2304 (vlscm_convert_typed_number): Use target_float_from_host_double.
2305 (vlscm_convert_number): Likewise.
2306
2307 * python/py-value.c (valpy_float): Use target_float_to_host_double.
2308 (convert_value_from_python): Use target_float_from_host_double.
2309
2310 2017-11-06 Ulrich Weigand <uweigand@de.ibm.com>
2311
2312 * ada-lang.c (cast_to_fixed): Reimplement in target arithmetic.
2313 (cast_from_fixed): Likewise.
2314 (ada_scaling_type): New function.
2315 (ada_delta): Return value instead of DOUBLEST. Perform target
2316 arithmetic instead of host arithmetic.
2317 (scaling_factor): Rename to ...
2318 (ada_scaling_factor) ... this. Make non-static. Return value instead
2319 of DOUBLEST. Perform target arithmetic instead of host arithmetic.
2320 (ada_fixed_to_float): Remove.
2321 (ada_float_to_fixed): Remove.
2322 * ada-lang.h (ada_fixed_to_float): Remove.
2323 (ada_float_to_fixed): Remove.
2324 (ada_delta): Return value instead of DOUBLEST.
2325 (ada_scaling_factor): Add prototype.
2326
2327 * ada-typeprint.c: Include "target-float.h".
2328 (print_fixed_point_type): Perform target arithmetic instead of
2329 host arithmetic.
2330 * ada-valprint.c: Include "target-float.h".
2331 (ada_val_print_num): Perform target arithmetic instead of
2332 host arithmetic for fixed-point types.
2333
2334 2017-11-06 Ulrich Weigand <uweigand@de.ibm.com>
2335
2336 * target-float.c: Include <math.h>.
2337 (floatformat_binop): New function.
2338 (floatformat_compare): Likewise.
2339 (target_float_binop): Likewise.
2340 (target_float_compare): Likewise.
2341 * target-float.h: Include "expression.h".
2342 (target_float_binop): Add prototype.
2343 (target_float_compare): Likewise.
2344
2345 * valarith.c: Do not include "doublest.h" and "dfp.h".
2346 Include "common/byte-vector.h".
2347 (value_args_as_decimal): Remove, replace by ...
2348 (value_args_as_target_float): ... this function. Handle both
2349 binary and decimal target floating-point formats.
2350 (scalar_binop): Handle both binary and decimal FP using
2351 value_args_as_target_float and target_float_binop.
2352 (value_equal): Handle both binary and decimal FP using
2353 value_args_as_target_float and target_float_compare.
2354 (value_less): Likewise.
2355 (value_pos): Handle all scalar types as simple copy.
2356 (value_neg): Handle all scalar types via BINOP_SUB from 0.
2357 * dfp.c (decimal_binop): Throw error instead of internal_error
2358 when called with an unsupported operation code.
2359
2360 2017-11-06 Ulrich Weigand <uweigand@de.ibm.com>
2361
2362 * target-float.c (target_float_to_string): New function.
2363 (target_float_from_string): New function.
2364 * target-float.h (target_float_to_string): Add prototype.
2365 (target_float_from_string): Add prototype.
2366
2367 * valprint.c: Include "target-float.h". Do not include
2368 "doublest.h" and "dfp.h".
2369 (print_floating): Use target_float_to_string.
2370 * printcmd.c: Include "target-float.h". Do not include "dfp.h".
2371 (printf_floating): Use target_float_to_string.
2372 * i387-tdep.c: Include "target-float.h". Do not include "doublest.h".
2373 (print_i387_value): Use target_float_to_string.
2374 * mips-tdep.c: Include "target-float.h".
2375 (mips_print_fp_register): Use target_float_to_string.
2376 * sh64-tdep.c: Include "target-float.h".
2377 (sh64_do_fp_register): Use target_float_to_string.
2378
2379 * parse.c: Include "target-float.h". Do not include
2380 "doublest.h" and "dfp.h".
2381 (parse_float): Use target_float_from_string.
2382 * stabsread.c: Include "target-float.h". Do not include "doublest.h".
2383 (define_symbol): Use target_float_from_string.
2384 * gdbarch-selftests.c: Include "target-float.h".
2385 (register_to_value_test): Use target_float_from_string.
2386
2387 2017-11-06 Ulrich Weigand <uweigand@de.ibm.com>
2388
2389 * Makefile.c (SFILES): Add target-float.c.
2390 (HFILES_NO_SRCDIR): Add target-float.h.
2391 (COMMON_OBS): Add target-float.o.
2392 * target-float.h: New file.
2393 * target-float.c: New file.
2394
2395 * doublest.c (floatformat_classify): Fix detection of float_zero.
2396
2397 * gdbtypes.c (is_floating_type): New function.
2398 * gdbtypes.h (is_floating_type): Add prototype.
2399
2400 * value.c: Do not include "floatformat.h".
2401 (unpack_double): Use target_float_is_valid.
2402 (is_floating_value): New function.
2403 * value.h (is_floating_value): Add prototype-
2404
2405 * valarith.c: Include "target-float.h".
2406 (value_logical_not): Use target_float_is_zero.
2407
2408 * python/py-value.c: Include "target-float.h".
2409 (valpy_nonzero): Use target_float_is_zero.
2410
2411 2017-11-04 Tom Tromey <tom@tromey.com>
2412
2413 * h8300-tdep.c (h8300_push_dummy_call): Use std::vector.
2414
2415 2017-11-04 Tom Tromey <tom@tromey.com>
2416
2417 * breakpoint.c (set_momentary_breakpoint): Return
2418 breakpoint_up.
2419 (until_break_command): Update.
2420 (new_until_break_fsm): Change argument types to
2421 breakpoint_up.
2422 (set_momentary_breakpoint_at_pc): Return breakpoint_up.
2423 (do_delete_breakpoint_cleanup, make_cleanup_delete_breakpoint):
2424 Remove.
2425 * infcmd.c (finish_forward): Update.
2426 * breakpoint.h (set_momentary_breakpoint)
2427 (set_momentary_breakpoint_at_pc): Return breakpoint_up.
2428 (make_cleanup_delete_breakpoint): Remove.
2429 (struct breakpoint_deleter): New.
2430 (breakpoint_up): New typedef.
2431 * infrun.c (insert_step_resume_breakpoint_at_sal_1): Update.
2432 (insert_exception_resume_breakpoint): Update.
2433 (insert_exception_resume_from_probe): Update.
2434 (insert_longjmp_resume_breakpoint): Update.
2435 * arm-linux-tdep.c (arm_linux_copy_svc): Update.
2436 * elfread.c (elf_gnu_ifunc_resolver_stop): Update.
2437 * infcall.c (call_function_by_hand_dummy): Update
2438
2439 2017-11-04 Tom Tromey <tom@tromey.com>
2440
2441 * c-typeprint.c (c_type_print_base): Use gdb::unique_xmalloc_ptr.
2442
2443 2017-11-04 Tom Tromey <tom@tromey.com>
2444
2445 * linux-tdep.c (linux_core_info_proc_mappings): Use
2446 gdb::def_vector.
2447 (linux_get_siginfo_data): Return gdb::byte_vector. Remove
2448 "size" argument.
2449 (linux_corefile_thread): Update.
2450 (linux_make_corefile_notes): Remove unused variable.
2451
2452 2017-11-04 Tom Tromey <tom@tromey.com>
2453
2454 * ppc-linux-tdep.c (ppc_linux_get_syscall_number): Use
2455 gdb::byte_vector.
2456
2457 2017-11-04 Tom Tromey <tom@tromey.com>
2458
2459 * objfiles.c (do_free_objfile_cleanup): Remove.
2460 * compile/compile-object-load.c (compile_object_load): Update.
2461 * objfiles.h (make_cleanup_free_objfile): Remove.
2462
2463 2017-11-04 Tom Tromey <tom@tromey.com>
2464
2465 * sparc64-tdep.c (do_examine): Use gdb::def_vector.
2466 (adi_read_versions): Change "tags" to "gdb_byte *".
2467 (adi_print_versions): Likewise.
2468
2469 2017-11-04 Tom Tromey <tom@tromey.com>
2470
2471 * breakpoint.c
2472 (scoped_rbreak_breakpoints::scoped_rbreak_breakpoints): Rename
2473 from start_rbreak_breakpoints.
2474 (scoped_rbreak_breakpoints): Rename from end_rbreak_breakpoints.
2475 * breakpoint.h (class scoped_rbreak_breakpoints): New.
2476 (start_rbreak_breakpoints, end_rbreak_breakpoints): Remove.
2477 * symtab.c (do_end_rbreak_breakpoints): Remove.
2478 (rbreak_command): Use scoped_rbreak_breakpoints, std::string.
2479
2480 2017-11-04 Tom Tromey <tom@tromey.com>
2481
2482 * cp-namespace.c (reset_directive_searched): Remove.
2483 (cp_lookup_symbol_via_imports): Use scoped_restore.
2484 * cp-support.c (reset_directive_searched): Remove.
2485 (make_symbol_overload_list_using): Use scoped_restore.
2486 * d-namespace.c (d_lookup_symbol_imports): Use scoped_restore.
2487 (reset_directive_searched): Remove.
2488
2489 2017-11-04 Tom Tromey <tom@tromey.com>
2490
2491 * symfile.c (find_separate_debug_file_by_debuglink): Use
2492 unique_xmalloc_ptr.
2493
2494 2017-11-04 Tom Tromey <tom@tromey.com>
2495
2496 * compile/compile-loc2c.c (compute_stack_depth_worker): Change
2497 type of "info".
2498 (compute_stack_depth): Likewise.
2499 (do_compile_dwarf_expr_to_c): Use std::vector.
2500
2501 2017-11-04 Tom Tromey <tom@tromey.com>
2502
2503 * compile/compile-object-load.c (link_callbacks_einfo): Use
2504 std::string.
2505
2506 2017-11-04 Tom Tromey <tom@tromey.com>
2507
2508 * dwarf2read.c (process_full_comp_unit, process_full_type_unit):
2509 Use scoped_free_pendings.
2510 * dbxread.c (dbx_symfile_read, dbx_psymtab_to_symtab_1): Use
2511 scoped_free_pendings.
2512 * xcoffread.c (xcoff_psymtab_to_symtab_1): Use scoped_free_pendings.
2513 (xcoff_initial_scan): Likewise.
2514 * buildsym.c (reset_symtab_globals): Update comment.
2515 (scoped_free_pendings): Rename from really_free_pendings.
2516 (prepare_for_building): Update comment.
2517 (buildsym_init): Likewise.
2518 * buildsym.h (class scoped_free_pendings): New class.
2519 (really_free_pendings): Don't declare.
2520
2521 2017-11-03 Ulrich Weigand <uweigand@de.ibm.com>
2522
2523 * doublest.c (convert_doublest_to_floatformat): Fix uninitialized
2524 output when converting a zero value to a special byteorder format.
2525
2526 2017-11-02 Yao Qi <yao.qi@linaro.org>
2527
2528 * frame.c (do_frame_register_read): Remove aspace.
2529 * jit.c (jit_frame_sniffer): Likwise.
2530 * ppc-linux-tdep.c (ppu2spu_sniffer): Likewise.
2531 * regcache.c (regcache::regcache): Pass nullptr.
2532 (regcache_print): Caller updated.
2533 * regcache.h (regcache::regcache): Remove one constructor
2534 parameter aspace.
2535
2536 2017-11-02 Yao Qi <yao.qi@linaro.org>
2537
2538 * regcache.h (regcache) <m_readonly_p>: Change it to const bool.
2539
2540 2017-11-02 Yao Qi <yao.qi@linaro.org>
2541
2542 * breakpoint.c (insert_single_step_breakpoints): Update.
2543 * frame.c (struct frame_info) <aspace>: Add const.
2544 (frame_save_as_regcache): Add const.
2545 (get_frame_address_space): Return const address_space *.
2546 * frame.h (get_frame_address_space): Update declaration.
2547 * infrun.c (struct step_over_info) <aspace>: Add const.
2548 (set_step_over_info): Make aspace const.
2549 (displaced_step_prepare_throw): Change variable const.
2550 (resume): Likewise.
2551 (proceed): Likewise.
2552 (adjust_pc_after_break): Likewise.
2553 (save_waitstatus): Likewise.
2554 (handle_signal_stop): Likewise.
2555 (keep_going_pass_signal): Likewise.
2556 * jit.c (jit_frame_sniffer): Add const.
2557 * mips-tdep.c (mips_single_step_through_delay): Likewise.
2558 * ppc-linux-tdep.c (ppu2spu_sniffer): Likewise.
2559 * record-full.c (record_full_wait_1): Likewise.
2560 * regcache.c (regcache::regcache): Change parameter to const.
2561 * regcache.h (regcache::regcache): Likewise.
2562 (regcache::aspace): Return const address_space *.
2563 (regcache) <m_aspace>: Add const.
2564
2565 2017-11-02 Yao Qi <yao.qi@linaro.org>
2566
2567 * darwin-nat.c (cancel_breakpoint): Use regcache->aspace ().
2568 * frame.c (create_sentinel_frame): Likewise.
2569 * infrun.c (displaced_step_prepare_throw): Likewise.
2570 (resume): Likewise.
2571 (thread_still_needs_step_over_bp): Likewise.
2572 (proceed): Likewise.
2573 (do_target_wait): Likewise.
2574 (adjust_pc_after_break): Likewise.
2575 (handle_syscall_event): Likewise.
2576 (save_waitstatus): Likewise.
2577 (handle_inferior_event_1): Likewise.
2578 (handle_signal_stop): Likewise.
2579 (keep_going_pass_signal): Likewise.
2580 * linux-nat.c (status_callback): Likewise.
2581 (save_stop_reason): Likewise.
2582 (resume_stopped_resumed_lwps): Likewise.
2583 * record-full.c (record_full_exec_insn): Likewise.
2584 (record_full_wait_1): Likewise.
2585 * regcache.c (get_regcache_aspace): Remove.
2586 * regcache.h (get_regcache_aspace): Remove.
2587
2588 2017-11-02 Yao Qi <yao.qi@linaro.org>
2589
2590 * regcache.c (struct regcache_descr) <nr_raw_registers>: Remove.
2591 (init_regcache_descr): Use gdbarch_num_regs.
2592 (regcache::regcache): Likewise.
2593 (regcache::get_register_status): Likewise.
2594 (regcache::assert_raw_regnum): Likewise.
2595 (regcache::cooked_read): Likewise.
2596 (regcache::cooked_read_value): Likewise.
2597 (regcache::cooked_write): Likewise.
2598 (regcache::dump): Likewise.
2599 (regcache::num_raw_registers): New method.
2600 * regcache.h (class regcache) <num_raw_registers>: New.
2601
2602 2017-11-02 Yao Qi <yao.qi@linaro.org>
2603
2604 * regcache.c (regcache::assert_regnum): New method.
2605 (regcache::invalidate): Call assert_regnum.
2606 (regcache::raw_update): Likewise.
2607 (regcache::raw_write): Likewise.
2608 (regcache::raw_read_part): Likewise.
2609 (regcache::raw_write_part): Likewise.
2610 (regcache::raw_supply): Likewise.
2611 (regcache::raw_supply_integer): Likewise.
2612 (regcache::raw_supply_zeroed): Likewise.
2613 (regcache::raw_collect): Likewise.
2614 (regcache::raw_collect_integer): Likewise.
2615 * regcache.h (regcache::assert_regnum): Declare.
2616
2617 2017-11-02 Yao Qi <yao.qi@linaro.org>
2618
2619 * regcache.c (regcache::dump): Remove code.
2620
2621 2017-11-02 Yao Qi <yao.qi@linaro.org>
2622
2623 * regcache.c (struct regcache_descr) <sizeof_raw_register_status>:
2624 Remove.
2625 <sizeof_cooked_register_status>: Remove.
2626 (init_regcache_descr): Update.
2627 (regcache::regcache): Use nr_cooked_registers and nr_raw_registers.
2628 (regcache::save): Likewise.
2629 (regcache::dump): Likewise.
2630
2631 2017-11-01 James Bowman <james.bowman@ftdichip.com>
2632
2633 * ft32-tdep.c (ft32_fetch_instruction): New function.
2634 (ft32_analyze_prologue): Use ft32_fetch_instruction().
2635
2636 2017-10-31 Simon Marchi <simon.marchi@polymtl.ca>
2637
2638 * cli/cli-script.c (execute_control_command): Rename to ...
2639 (execute_control_command_1): ... this.
2640 (execute_control_command): New function.
2641
2642 2017-10-31 Simon Marchi <simon.marchi@ericsson.com>
2643
2644 * tracepoint.c (tfind_command): Remove const_cast.
2645
2646 2017-10-30 Mike Gulick <mgulick@mathworks.com>
2647
2648 * Makefile.in (HFILES_NO_SRCDIR): Remove reference to gdb.h.
2649
2650 2017-10-30 Simon Marchi <simon.marchi@ericsson.com>
2651
2652 * common/common-utils.h (in_inclusive_range): New function.
2653 * arm-tdep.c (arm_record_extension_space): Use
2654 in_inclusive_range.
2655 (thumb_record_ld_st_reg_offset): Use in_inclusive_range.
2656 * cris-tdep.c (cris_spec_reg_applicable): Use
2657 in_inclusive_range.
2658
2659 2017-10-30 Pedro Alves <palves@redhat.com>
2660 Simon Marchi <simon.marchi@ericsson.com>
2661
2662 * remote.c (remote_set_syscall_catchpoint): Build a std::string
2663 instead of a gdb::unique_xmalloc_ptr, using string_appendf.
2664
2665 2017-10-30 Pedro Alves <palves@redhat.com>
2666
2667 * common/common-utils.c (string_appendf, string_vappendf): New
2668 functions.
2669 * common/common-utils.h (string_appendf, string_vappendf): New
2670 declarations.
2671 * unittests/common-utils-selftests.c (string_appendf_func)
2672 (test_appendf_func, string_vappendf_wrapper, string_appendf_tests)
2673 (string_vappendf_tests): New functions.
2674 (_initialize_common_utils_selftests): Register "string_appendf" and
2675 "string_vappendf tests".
2676
2677 2017-10-30 Pedro Alves <palves@redhat.com>
2678
2679 * unittests/common-utils-selftests.c (format_func): New typedef.
2680 (string_printf_tests, string_vprintf_tests): Tests factored out
2681 and merged to ...
2682 (test_format_func): ... this new function.
2683 (string_printf_tests, string_vprintf_tests): Reimplement on top of
2684 test_format_func.
2685
2686 2017-10-29 Simon Marchi <simon.marchi@ericsson.com>
2687
2688 * darwin-nat.c: Remove include of gdb.h.
2689
2690 2017-10-29 Simon Marchi <simon.marchi@ericsson.com>
2691
2692 * xtensa-xtregs.c: Fix formatting issues.
2693
2694 2017-10-29 Simon Marchi <simon.marchi@ericsson.com>
2695
2696 * xtensa-xtregs.c (xtensa_regtable_t) <name>: Constify.
2697
2698 2017-10-28 Maksim Dzabraev <dzabraew@gmail.com>
2699
2700 PR python/21213
2701 * python/py-infthread.c (thpy_get_inferior): Increment reference
2702 of inferior before returning it.
2703
2704 2017-10-27 Simon Marchi <simon.marchi@ericsson.com>
2705
2706 * unittests/common-utils-selftests.c (format): Add
2707 ATTRIBUTE_PRINTF.
2708
2709 2017-10-27 Simon Marchi <simon.marchi@polymtl.ca>
2710
2711 * xml-syscall.c (struct syscall_desc): Add constructor.
2712 <name>: Change type to std::string.
2713 (syscall_desc_up): New typedef.
2714 (syscall_desc_p): Remove typeder.
2715 (DEF_VEC_P(syscall_desc_p)): Remove.
2716 (struct syscall_group_desc): Add constructor.
2717 <name>: Change type to std::string.
2718 <syscalls>: Change type to std::vector.
2719 (syscall_group_desc_up): New typedef.
2720 (syscall_group_desc_p): Remove typedef.
2721 (DEF_VEC_P(syscall_group_desc_p)): Remove.
2722 (struct syscalls_info) <syscalls>: Change type to std::vector of
2723 unique_ptr.
2724 <groups>: Likewise.
2725 <my_gdb_datadir>: Change type to std::string.
2726 (syscalls_info_up): New typedef.
2727 (allocate_syscalls_info): Remove.
2728 (syscalls_info_free_syscalls_desc): Remove.
2729 (syscalls_info_free_syscall_group_desc): Remove.
2730 (free_syscalls_info): Remove.
2731 (make_cleanup_free_syscalls_info): Remove.
2732 (syscall_group_create_syscall_group_desc): Adjust.
2733 (syscall_group_add_syscall): Adjust.
2734 (syscall_create_syscall_desc): Adjust.
2735 (syscall_parse_xml): Adjust, use unique_ptr instead of cleanup.
2736 (init_syscalls_info): Adjust.
2737 (syscall_group_get_group_by_name): Adjust.
2738 (xml_get_syscall_number): Adjust.
2739 (xml_get_syscall_name): Adjust.
2740 (xml_list_of_syscalls): Adjust.
2741 (xml_list_syscalls_by_group): Adjust.
2742 (xml_list_of_groups): Adjust.
2743
2744 2017-10-27 Simon Marchi <simon.marchi@ericsson.com>
2745
2746 * probe.h: Don't include gdb_vecs.h.
2747 (DEF_VEC_P (probe_p)): Remove.
2748 (find_probes_in_objfile): Return an std::vector.
2749 * probe.c (find_probes_in_objfile): Likewise.
2750 * breakpoint.c (breakpoint_objfile_data)
2751 <longjmp_probes>: Change type to std::vector.
2752 <exception_probes>: Likewise.
2753 (free_breakpoint_probes): Don't manually free vectors.
2754 (create_longjmp_master_breakpoint): Adjust.
2755 (create_exception_master_breakpoint): Adjust.
2756 * solib-svr4.c (svr4_create_probe_breakpoints): Change
2757 parameter type, adjust.
2758 (svr4_create_solib_event_breakpoints): Adjust.
2759
2760 2017-10-27 Simon Marchi <simon.marchi@ericsson.com>
2761
2762 * breakpoint.c (breakpoint_objfile_data): Initialize fields.
2763 (get_breakpoint_objfile_data): Allocate breakpoint_objfile_data
2764 with new.
2765 (free_breakpoint_probes): Rename to ...
2766 (free_breakpoint_objfile_data): ... this, and call delete on
2767 bp_objfile_data..
2768
2769 2017-10-27 Simon Marchi <simon.marchi@polymtl.ca>
2770
2771 * auto-load.c: Don't include gdb_vecs.h, include algorithm.
2772 (loaded_script_ptr): Remove typedef.
2773 (DEF_VEC_P (loaded_script_ptr)): Remove.
2774 (struct collect_matching_scripts_data): Add constructor.
2775 <scripts_p>: Change type to (pointer to) std::vector.
2776 (collect_matching_scripts_data): Adjust.
2777 (sort_scripts_by_name): Make suitable for std::sort.
2778 (print_scripts): Don't sort vector, adjust to std::vector.
2779 (auto_load_info_scripts): Sort vectors, adjust to std::vector.
2780
2781 2017-10-27 Simon Marchi <simon.marchi@ericsson.com>
2782
2783 * symfile.c (filename_language): Make struct, not typedef. Add
2784 constructor.
2785 <ext>: Change type to std::string.
2786 (DEF_VEC_O (filename_language)): Remove.
2787 (filename_language_table): Change type to std::vector.
2788 (add_filename_language): Adjust.
2789 (set_ext_lang_command): Adjust.
2790 (info_ext_lang_command): Adjust.
2791 (deduce_language_from_filename): Adjust.
2792 (class scoped_restore_filename_language_table): Remove.
2793 (test_filename_language): Use scoped_restore.
2794 (test_set_ext_lang_command): Use scoped_restore, adjust to
2795 std::vector change.
2796
2797 2017-10-27 Simon Marchi <simon.marchi@ericsson.com>
2798
2799 * symfile.c: Include selftest.h.
2800 (class scoped_restore_filename_language_table): New.
2801 (test_filename_language): New test.
2802 (test_set_ext_lang_command): New test.
2803 (_initialize_symfile): Register tests.
2804
2805 2017-10-27 Keith Seitz <keiths@redhat.com>
2806
2807 * breakpoint.c (print_breakpoint_location): Use the symbol saved
2808 in the bp_location, falling back to find_pc_sect_function when
2809 needed.
2810 (add_location_to_breakpoint): Save sal->symbol.
2811 * breakpoint.h (struct bp_location) <symbol>: New field.
2812 * symtab.c (find_function_start_sal): Save the symbol into the SaL.
2813 * symtab.h (struct symtab_and_line) <symbol>: New field.
2814
2815 2017-10-26 Patrick Frants <osscontribute@gmail.com>
2816
2817 PR gdb/13669
2818 * cp-valprint.c (cp_print_value_fields): Use obstack_blank_fast
2819 to rewind obstack.
2820
2821 2017-10-26 Pedro Alves <palves@redhat.com>
2822
2823 * remote.c (remote_async_terminal_ours_p): Delete.
2824 (remote_open_1, remote_terminal_inferior, remote_terminal_ours):
2825 Remove references to 'remote_async_terminal_ours_p'.
2826
2827 2017-10-26 Yao Qi <yao.qi@linaro.org>
2828
2829 * breakpoint.h (regular_breakpoint_inserted_here_p): Remove.
2830
2831 2017-10-26 Yao Qi <yao.qi@linaro.org>
2832
2833 * break-catch-sig.c (signal_catchpoint_breakpoint_hit): Make
2834 aspace const.
2835 * break-catch-syscall.c (breakpoint_hit_catch_syscall):
2836 Likewise.
2837 * breakpoint.c (bpstat_check_location): Remove cast.
2838 (breakpoint_hit_catch_fork): Make aspce const.
2839 (breakpoint_hit_catch_solib): Likewise.
2840 (breakpoint_hit_catch_exec): Likewise.
2841 (breakpoint_hit_ranged_breakpoint): Likewise.
2842 (breakpoint_hit_watchpoint): Likewise.
2843 (base_breakpoint_breakpoint_hit): Likewise.
2844 (bkpt_breakpoint_hit): Likewise.
2845 (dprintf_breakpoint_hit): Likewise.
2846 (tracepoint_breakpoint_hit): Likewise.
2847 * breakpoint.h (breakpoint_ops) <breakpoint_hit>: Likewise.
2848
2849 2017-10-26 Yao Qi <yao.qi@linaro.org>
2850
2851 * breakpoint.c (breakpoint_location_address_match): Change
2852 "struct address_space *" to "const address_space".
2853 (breakpoint_location_address_range_overlap): Likewise.
2854 (breakpoint_here_p): Likewise.
2855 (breakpoint_in_range_p): Likewise.
2856 (moribund_breakpoint_here_p): Likewise.
2857 (bp_location_inserted_here_p): Likewise.
2858 (software_breakpoint_inserted_here_p): Likewise.
2859 (hardware_breakpoint_inserted_here_p): Likewise.
2860 (hardware_watchpoint_inserted_in_range): Likewise.
2861 (bpstat_check_location): Likewise.
2862 (bpstat_stop_status): Likewise.
2863 (breakpoint_address_match): Likewise.
2864 (breakpoint_address_match_range): Likewise.
2865 (breakpoint_location_address_match): Likewise.
2866 (breakpoint_location_address_range_overlap): Likewise.
2867 (insert_single_step_breakpoint): Likewise.
2868 (breakpoint_has_location_inserted_here): Likewise.
2869 (single_step_breakpoint_inserted_here_p): Likewise.
2870 (pc_at_non_inline_function): Likewise.
2871 * breakpoint.h (bpstat_stop_status): Update declaration.
2872 (breakpoint_here_p): Likewise.
2873 (breakpoint_in_range_p): Likewise.
2874 (moribund_breakpoint_here_p): Likewise.
2875 (breakpoint_inserted_here_p): Likewise.
2876 (software_breakpoint_inserted_here_p): Likewise.
2877 (hardware_breakpoint_inserted_here_p): Likewise.
2878 (breakpoint_has_location_inserted_here): Likewise.
2879 (single_step_breakpoint_inserted_here_p): Likewise.
2880 (hardware_watchpoint_inserted_in_range): Likewise.
2881 (breakpoint_address_match): Likewise.
2882 (insert_single_step_breakpoint): Likewise.
2883 (pc_at_non_inline_function): Likewise.
2884 * gdbthread.h (thread_has_single_step_breakpoint_here): Likewise.
2885 * record.c (record_check_stopped_by_breakpoint): Likewise.
2886 * record.h (record_check_stopped_by_breakpoint): Likewise.
2887 * thread.c (thread_has_single_step_breakpoint_here): Likewise.
2888
2889 2017-10-25 Yao Qi <yao.qi@linaro.org>
2890
2891 * aarch32-linux-nat.c (aarch32_gp_regcache_supply): Use
2892 regcache->arch () instead get_regcache_arch.
2893 * aarch64-fbsd-nat.c (aarch64_fbsd_fetch_inferior_registers):
2894 Likewise.
2895 (aarch64_fbsd_store_inferior_registers): Likewise.
2896 * aarch64-linux-nat.c (fetch_gregs_from_thread): Likewise.
2897 (store_gregs_to_thread): Likewise.
2898 (fetch_fpregs_from_thread): Likewise.
2899 (store_fpregs_to_thread): Likewise.
2900 * aarch64-tdep.c (aarch64_extract_return_value): Likewise.
2901 (aarch64_store_return_value): Likewise.
2902 (aarch64_software_single_step): Likewise.
2903 * aix-thread.c (aix_thread_wait): Likewise.
2904 (supply_reg32): Likewise.
2905 (supply_sprs64): Likewise.
2906 (supply_sprs32): Likewise.
2907 (fill_gprs64): Likewise.
2908 (fill_gprs32): Likewise.
2909 (fill_sprs64): Likewise.
2910 (fill_sprs32): Likewise.
2911 (store_regs_user_thread): Likewise.
2912 (store_regs_kernel_thread): Likewise.
2913 * alpha-bsd-nat.c (alphabsd_fetch_inferior_registers): Likewise.
2914 (alphabsd_store_inferior_registers): Likewise.
2915 * alpha-tdep.c (alpha_extract_return_value): Likewise.
2916 (alpha_store_return_value): Likewise.
2917 (alpha_deal_with_atomic_sequence): Likewise.
2918 (alpha_next_pc): Likewise.
2919 (alpha_software_single_step): Likewise.
2920 * amd64-bsd-nat.c (amd64bsd_fetch_inferior_registers): Likewise.
2921 (amd64bsd_store_inferior_registers): Likewise.
2922 * amd64-linux-nat.c (amd64_linux_fetch_inferior_registers):
2923 Likewise.
2924 (amd64_linux_store_inferior_registers): Likewise.
2925 * amd64-nat.c (amd64_supply_native_gregset): Likewise.
2926 (amd64_collect_native_gregset): Likewise.
2927 * amd64-obsd-tdep.c (amd64obsd_supply_uthread): Likewise.
2928 (amd64obsd_collect_uthread): Likewise.
2929 * amd64-tdep.c (amd64_supply_fpregset): Likewise.
2930 (amd64_collect_fpregset): Likewise.
2931 (amd64_supply_fxsave): Likewise.
2932 (amd64_supply_xsave): Likewise.
2933 (amd64_collect_fxsave): Likewise.
2934 (amd64_collect_xsave): Likewise.
2935 * arc-tdep.c (arc_write_pc): Likewise.
2936 * arch-utils.c (default_skip_permanent_breakpoint): Likewise.
2937 * arm-fbsd-nat.c (arm_fbsd_fetch_inferior_registers): Likewise.
2938 (arm_fbsd_store_inferior_registers): Likewise.
2939 * arm-linux-nat.c (fetch_vfp_regs): Likewise.
2940 (store_vfp_regs): Likewise.
2941 (arm_linux_fetch_inferior_registers): Likewise.
2942 (arm_linux_store_inferior_registers): Likewise.
2943 * arm-linux-tdep.c (arm_linux_supply_gregset): Likewise.
2944 (arm_linux_sigreturn_next_pc): Likewise.
2945 (arm_linux_get_next_pcs_syscall_next_pc): Likewise.
2946 * arm-nbsd-nat.c (arm_supply_gregset): Likewise.
2947 (fetch_register): Likewise.
2948 (store_register): Likewise.
2949 * arm-tdep.c (arm_is_thumb): Likewise.
2950 (displaced_in_arm_mode): Likewise.
2951 (bx_write_pc): Likewise.
2952 (arm_get_next_pcs_addr_bits_remove): Likewise.
2953 (arm_software_single_step): Likewise.
2954 (arm_extract_return_value): Likewise.
2955 (arm_store_return_value): Likewise.
2956 (arm_write_pc): Likewise.
2957 * bfin-tdep.c (bfin_extract_return_value): Likewise.
2958 * bsd-uthread.c (bsd_uthread_fetch_registers): Likewise.
2959 (bsd_uthread_store_registers): Likewise.
2960 * core-regset.c (fetch_core_registers): Likewise.
2961 * corelow.c (get_core_registers): Likewise.
2962 * cris-tdep.c (cris_store_return_value): Likewise.
2963 (cris_extract_return_value): Likewise.
2964 (find_step_target): Likewise.
2965 (find_step_target): Likewise.
2966 (cris_software_single_step): Likewise.
2967 * ctf.c (ctf_fetch_registers): Likewise.
2968 * darwin-nat.c (cancel_breakpoint): Likewise.
2969 * fbsd-tdep.c (fbsd_collect_thread_registers): Likewise.
2970 * frv-tdep.c (frv_extract_return_value): Likewise.
2971 * ft32-tdep.c (ft32_store_return_value): Likewise.
2972 (ft32_extract_return_value): Likewise.
2973 * go32-nat.c (fetch_register): Likewise.
2974 (go32_fetch_registers): Likewise.
2975 (go32_store_registers): Likewise.
2976 (store_register): Likewise.
2977 * h8300-tdep.c (h8300_extract_return_value): Likewise.
2978 (h8300_store_return_value): Likewise.
2979 * hppa-linux-nat.c (fetch_register): Likewise.
2980 (store_register): Likewise.
2981 (hppa_linux_fetch_inferior_registers): Likewise.
2982 (hppa_linux_store_inferior_registers): Likewise.
2983 * i386-darwin-nat.c (i386_darwin_fetch_inferior_registers): Likewise.
2984 (i386_darwin_store_inferior_registers): Likewise.
2985 * i386-gnu-nat.c (gnu_fetch_registers): Likewise.
2986 (gnu_store_registers): Likewise.
2987 * i386-linux-nat.c (fetch_register): Likewise.
2988 (store_register): Likewise.
2989 (supply_gregset): Likewise.
2990 (fill_gregset): Likewise.
2991 (i386_linux_fetch_inferior_registers): Likewise.
2992 (i386_linux_store_inferior_registers): Likewise.
2993 (i386_linux_resume): Likewise.
2994 * i386-linux-tdep.c (i386_linux_get_syscall_number_from_regcache):
2995 Likewise.
2996 * i386-nto-tdep.c (i386nto_supply_gregset): Likewise.
2997 * i386-obsd-nat.c (i386obsd_supply_pcb): Likewise.
2998 * i386-obsd-tdep.c (i386obsd_supply_uthread): Likewise.
2999 (i386obsd_collect_uthread): Likewise.
3000 * i386-tdep.c (i386_mmx_regnum_to_fp_regnum): Likewise.
3001 (i386_supply_gregset): Likewise.
3002 (i386_collect_gregset): Likewise.
3003 (i386_supply_fpregset): Likewise.
3004 (i386_collect_fpregset): Likewise.
3005 (i386_mpx_bd_base): Likewise.
3006 * i386-v4-nat.c (supply_fpregset): Likewise.
3007 (fill_fpregset): Likewise.
3008 * i387-tdep.c (i387_supply_fsave): Likewise.
3009 (i387_collect_fsave): Likewise.
3010 (i387_supply_fxsave): Likewise.
3011 (i387_collect_fxsave): Likewise.
3012 (i387_supply_xsave): Likewise.
3013 (i387_collect_xsave): Likewise.
3014 * ia64-linux-nat.c (ia64_linux_fetch_registers): Likewise.
3015 (ia64_linux_store_registers): Likewise.
3016 * ia64-tdep.c (ia64_access_rse_reg): Likewise.
3017 (ia64_extract_return_value): Likewise.
3018 (ia64_store_return_value): Likewise.
3019 (find_func_descr): Likewise.
3020 * inf-child.c (inf_child_fetch_inferior_registers): Likewise.
3021 * inf-ptrace.c (inf_ptrace_fetch_registers): Likewise.
3022 (inf_ptrace_store_registers): Likewise.
3023 * infrun.c (use_displaced_stepping): Likewise.
3024 (displaced_step_prepare_throw): Likewise.
3025 (resume): Likewise.
3026 (proceed): Likewise.
3027 (do_target_wait): Likewise.
3028 (adjust_pc_after_break): Likewise.
3029 (handle_inferior_event_1): Likewise.
3030 (handle_signal_stop): Likewise.
3031 (save_infcall_suspend_state): Likewise.
3032 (restore_infcall_suspend_state): Likewise.
3033 * iq2000-tdep.c (iq2000_extract_return_value): Likewise.
3034 * jit.c (jit_frame_prev_register): Likewise.
3035 * linux-nat.c (save_stop_reason): Likewise.
3036 (linux_nat_wait_1): Likewise.
3037 (resume_stopped_resumed_lwps): Likewise.
3038 * linux-record.c (record_linux_sockaddr): Likewise.
3039 (record_linux_msghdr): Likewise.
3040 (record_linux_system_call): Likewise.
3041 * linux-tdep.c (linux_collect_thread_registers): Likewise.
3042 * lm32-tdep.c (lm32_extract_return_value): Likewise.
3043 (lm32_store_return_value): Likewise.
3044 * m32c-tdep.c (m32c_read_flg): Likewise.
3045 (m32c_pseudo_register_read): Likewise.
3046 (m32c_pseudo_register_write): Likewise.
3047 * m32r-linux-tdep.c (m32r_linux_supply_gregset): Likewise.
3048 (m32r_linux_collect_gregset): Likewise.
3049 * m32r-tdep.c (m32r_store_return_value): Likewise.
3050 (m32r_extract_return_value): Likewise.
3051 * m68k-bsd-nat.c (m68kbsd_supply_fpregset): Likewise.
3052 (m68kbsd_collect_fpregset): Likewise.
3053 * m68k-bsd-tdep.c (m68kbsd_supply_fpregset): Likewise.
3054 * m68k-linux-nat.c (fetch_register): Likewise.
3055 (old_fetch_inferior_registers): Likewise.
3056 (old_store_inferior_registers): Likewise.
3057 (store_regs): Likewise.
3058 * m68k-tdep.c (m68k_svr4_extract_return_value): Likewise.
3059 (m68k_svr4_store_return_value): Likewise.
3060 * m88k-tdep.c (m88k_store_arguments): Likewise.
3061 * mi/mi-main.c (mi_cmd_data_list_changed_registers): Likewise.
3062 (mi_cmd_data_write_register_values): Likewise.
3063 * mips-fbsd-nat.c (mips_fbsd_fetch_inferior_registers): Likewise.
3064 (mips_fbsd_store_inferior_registers): Likewise.
3065 * mips-fbsd-tdep.c (mips_fbsd_supply_fpregs): Likewise.
3066 (mips_fbsd_supply_gregs): Likewise.
3067 (mips_fbsd_collect_fpregs): Likewise.
3068 (mips_fbsd_collect_gregs): Likewise.
3069 (mips_fbsd_supply_fpregset): Likewise.
3070 (mips_fbsd_collect_fpregset): Likewise.
3071 (mips_fbsd_supply_gregset): Likewise.
3072 (mips_fbsd_collect_gregset): Likewise.
3073 * mips-linux-nat.c (supply_gregset): Likewise.
3074 (fill_gregset): Likewise.
3075 (supply_fpregset): Likewise.
3076 (fill_fpregset): Likewise.
3077 * mips-linux-tdep.c (mips_supply_gregset): Likewise.
3078 (mips_fill_gregset): Likewise.
3079 (mips_supply_fpregset): Likewise.
3080 (mips_fill_fpregset): Likewise.
3081 (mips64_supply_gregset): Likewise.
3082 (micromips_linux_sigframe_validate): Likewise.
3083 * mips-nbsd-nat.c (mipsnbsd_fetch_inferior_registers): Likewise.
3084 (mipsnbsd_fetch_inferior_registers): Likewise.
3085 (mipsnbsd_store_inferior_registers): Likewise.
3086 * mips-nbsd-tdep.c (mipsnbsd_supply_fpregset): Likewise.
3087 (mipsnbsd_supply_gregset): Likewise.
3088 (mipsnbsd_iterate_over_regset_sections): Likewise.
3089 (mipsnbsd_supply_reg): Likewise.
3090 (mipsnbsd_supply_fpreg): Likewise.
3091 * mips-tdep.c (mips_in_frame_stub): Likewise.
3092 (mips_dummy_id): Likewise.
3093 (is_octeon_bbit_op): Likewise.
3094 (micromips_bc1_pc): Likewise.
3095 (extended_mips16_next_pc): Likewise.
3096 (mips16_next_pc): Likewise.
3097 (deal_with_atomic_sequence): Likewise.
3098 * moxie-tdep.c (moxie_process_readu): Likewise.
3099 * nios2-tdep.c (nios2_get_next_pc): Likewise.
3100 * nto-procfs.c (procfs_store_registers): Likewise.
3101 * ppc-fbsd-nat.c (ppcfbsd_fetch_inferior_registers): Likewise.
3102 (ppcfbsd_store_inferior_registers): Likewise.
3103 * ppc-linux-nat.c (fetch_vsx_register): Likewise.
3104 (fetch_altivec_register): Likewise.
3105 (get_spe_registers): Likewise.
3106 (fetch_spe_register): Likewise.
3107 (fetch_altivec_registers): Likewise.
3108 (fetch_all_gp_regs): Likewise.
3109 (fetch_all_fp_regs): Likewise.
3110 (store_vsx_register): Likewise.
3111 (store_altivec_register): Likewise.
3112 (set_spe_registers): Likewise.
3113 (store_spe_register): Likewise.
3114 (store_altivec_registers): Likewise.
3115 (store_all_gp_regs): Likewise.
3116 (store_all_fp_regs): Likewise.
3117 * ppc-linux-tdep.c (ppc_linux_supply_gregset): Likewise.
3118 (ppc_linux_collect_gregset): Likewise.
3119 (ppc_canonicalize_syscall): Likewise.
3120 (ppc_linux_record_signal): Likewise.
3121 (ppu2spu_prev_register): Likewise.
3122 * ppc-nbsd-nat.c (ppcnbsd_supply_pcb): Likewise.
3123 * ppc-obsd-nat.c (ppcobsd_fetch_registers): Likewise.
3124 (ppcobsd_store_registers): Likewise.
3125 * ppc-ravenscar-thread.c (ppc_ravenscar_generic_fetch_registers):
3126 Likewise.
3127 (ppc_ravenscar_generic_store_registers): Likewise.
3128 * procfs.c (procfs_fetch_registers): Likewise.
3129 (procfs_store_registers): Likewise.
3130 * ravenscar-thread.c (ravenscar_fetch_registers): Likewise.
3131 (ravenscar_store_registers): Likewise.
3132 (ravenscar_prepare_to_store): Likewise.
3133 * record-btrace.c (record_btrace_fetch_registers): Likewise.
3134 * record-full.c (record_full_wait_1): Likewise.
3135 (record_full_registers_change): Likewise.
3136 (record_full_store_registers): Likewise.
3137 (record_full_core_fetch_registers): Likewise.
3138 (record_full_save): Likewise.
3139 (record_full_goto_insn): Likewise.
3140 * regcache.c (regcache_register_size): Likewise.
3141 (get_regcache_arch): Remove.
3142 (regcache_read_pc): Likewise.
3143 * regcache.h (get_regcache_arch): Remove.
3144 * remote-sim.c (gdbsim_fetch_register): Likewise.
3145 (gdbsim_store_register): Likewise.
3146 * remote.c (fetch_register_using_p): Likewise.
3147 (send_g_packet): Likewise.
3148 (remote_prepare_to_store): Likewise.
3149 (store_registers_using_G): Likewise.
3150 * reverse.c (save_bookmark_command): Likewise.
3151 (goto_bookmark_command): Likewise.
3152 * rs6000-aix-tdep.c (branch_dest): Likewise.
3153 * rs6000-nat.c (rs6000_ptrace64): Likewise.
3154 (fetch_register): Likewise.
3155 * rs6000-tdep.c (ppc_supply_reg): Likewise.
3156 (ppc_collect_reg): Likewise.
3157 (ppc_collect_gregset): Likewise.
3158 (ppc_collect_fpregset): Likewise.
3159 (ppc_collect_vsxregset): Likewise.
3160 (ppc_collect_vrregset): Likewise.
3161 (ppc_displaced_step_hw_singlestep): Likewise.
3162 (rs6000_pseudo_register_read): Likewise.
3163 (rs6000_pseudo_register_write): Likewise.
3164 * s390-linux-nat.c (supply_gregset): Likewise.
3165 (fill_gregset): Likewise.
3166 (s390_linux_fetch_inferior_registers): Likewise.
3167 * s390-linux-tdep.c (s390_write_pc): Likewise.
3168 (s390_software_single_step): Likewise.
3169 (s390_all_but_pc_registers_record): Likewise.
3170 (s390_linux_syscall_record): Likewise.
3171 * sentinel-frame.c (sentinel_frame_prev_arch): Likewise.
3172 * sh-nbsd-nat.c (shnbsd_fetch_inferior_registers): Likewise.
3173 (shnbsd_store_inferior_registers): Likewise.
3174 * sh-tdep.c (sh_extract_return_value_nofpu): Likewise.
3175 (sh_extract_return_value_fpu): Likewise.
3176 (sh_store_return_value_nofpu): Likewise.
3177 (sh_corefile_supply_regset): Likewise.
3178 (sh_corefile_collect_regset): Likewise.
3179 * sh64-tdep.c (sh64_extract_return_value): Likewise.
3180 (sh64_store_return_value): Likewise.
3181 * sparc-linux-tdep.c (sparc32_linux_collect_core_fpregset): Likewise.
3182 * sparc-nat.c (sparc_fetch_inferior_registers): Likewise.
3183 (sparc_store_inferior_registers): Likewise.
3184 * sparc-ravenscar-thread.c (register_in_thread_descriptor_p): Likewise.
3185 (sparc_ravenscar_prepare_to_store): Likewise.
3186 * sparc-tdep.c (sparc32_store_arguments): Likewise.
3187 (sparc_analyze_control_transfer): Likewise.
3188 (sparc_step_trap): Likewise.
3189 (sparc_software_single_step): Likewise.
3190 (sparc32_gdbarch_init): Likewise.
3191 (sparc_supply_rwindow): Likewise.
3192 (sparc_collect_rwindow): Likewise.
3193 * sparc64-linux-tdep.c (sparc64_linux_collect_core_fpregset): Likewise.
3194 * sparc64-nbsd-nat.c (sparc64nbsd_supply_gregset): Likewise.
3195 (sparc64nbsd_collect_gregset): Likewise.
3196 (sparc64nbsd_supply_fpregset): Likewise.
3197 (sparc64nbsd_collect_fpregset): Likewise.
3198 * sparc64-tdep.c (sparc64_store_arguments): Likewise.
3199 (sparc64_supply_gregset): Likewise.
3200 (sparc64_collect_gregset): Likewise.
3201 (sparc64_supply_fpregset): Likewise.
3202 (sparc64_collect_fpregset): Likewise.
3203 * spu-linux-nat.c (spu_fetch_inferior_registers): Likewise.
3204 * spu-tdep.c (spu_unwind_sp): Likewise.
3205 (spu2ppu_prev_register): Likewise.
3206 (spu_memory_remove_breakpoint): Likewise.
3207 * stack.c (return_command): Likewise.
3208 * tic6x-tdep.c (tic6x_extract_signed_field): Likewise.
3209 * tracefile-tfile.c (tfile_fetch_registers): Likewise.
3210 * tracefile.c (trace_save_ctf): Likewise.
3211 * windows-nat.c (do_windows_fetch_inferior_registers): Likewise.
3212 (do_windows_store_inferior_registers): Likewise.
3213 (windows_resume): Likewise.
3214 * xtensa-linux-nat.c (fill_gregset): Likewise.
3215 (supply_gregset_reg): Likewise.
3216 * xtensa-tdep.c (xtensa_register_write_masked): Likewise.
3217 (xtensa_register_read_masked): Likewise.
3218 (xtensa_supply_gregset): Likewise.
3219 (xtensa_extract_return_value): Likewise.
3220 (xtensa_store_return_value): Likewise.
3221
3222 2017-10-25 Ulrich Weigand <uweigand@de.ibm.com>
3223
3224 * doublest.c (floatformat_from_string): New function.
3225 * doublest.h (floatformat_from_string): Add prototype.
3226
3227 * std-operator.def (OP_DOUBLE, OP_DECFLOAT): Remove, replace by ...
3228 (OP_FLOAT): ... this.
3229 * expression.h: Do not include "doublest.h".
3230 (union exp_element): Replace doubleconst and decfloatconst by
3231 new element floatconst.
3232 * ada-lang.c (resolve_subexp): Handle OP_FLOAT instead of OP_DOUBLE.
3233 (ada_evaluate_subexp): Likewise.
3234 * eval.c (evaluate_subexp_standard): Handle OP_FLOAT instead of
3235 OP_DOUBLE and OP_DECFLOAT.
3236 * expprint.c (print_subexp_standard): Likewise.
3237 (dump_subexp_body_standard): Likewise.
3238 * breakpoint.c (watchpoint_exp_is_const): Likewise.
3239
3240 * parse.c: Include "dfp.h".
3241 (write_exp_elt_dblcst, write_exp_elt_decfloatcst): Remove.
3242 (write_exp_elt_floatcst): New function.
3243 (operator_length_standard): Handle OP_FLOAT instead of OP_DOUBLE
3244 and OP_DECFLOAT.
3245 (operator_check_standard): Likewise.
3246 (parse_float): Do not accept suffix. Take type as input. Return bool.
3247 Return target format buffer instead of host DOUBLEST.
3248 Use floatformat_from_string and decimal_from_string to parse
3249 either binary or decimal floating-point types.
3250 (parse_c_float): Remove.
3251 * parser-defs.h: Do not include "doublest.h".
3252 (write_exp_elt_dblcst, write_exp_elt_decfloatcst): Remove.
3253 (write_exp_elt_floatcst): Add prototype.
3254 (parse_float): Update prototype.
3255 (parse_c_float): Remove.
3256
3257 * c-exp.y: Do not include "dfp.h".
3258 (typed_val_float): Use byte buffer instead of DOUBLEST.
3259 (typed_val_decfloat): Remove.
3260 (DECFLOAT): Remove.
3261 (FLOAT): Use OP_FLOAT and write_exp_elt_floatcst.
3262 (parse_number): Update to new parse_float interface.
3263 Parse suffixes and determine type before calling parse_float.
3264 Handle decimal and binary FP types the same way.
3265
3266 * d-exp.y (typed_val_float): Use byte buffer instead of DOUBLEST.
3267 (FLOAT_LITERAL): Use OP_FLOAT and write_exp_elt_floatcst.
3268 (parse_number): Update to new parse_float interface.
3269 Parse suffixes and determine type before calling parse_float.
3270
3271 * f-exp.y: Replace dval by typed_val_float.
3272 (FLOAT): Use OP_FLOAT and write_exp_elt_floatcst.
3273 (parse_number): Use parse_float instead of atof.
3274
3275 * go-exp.y (typed_val_float): Use byte buffer instead of DOUBLEST.
3276 (parse_go_float): Remove.
3277 (FLOAT): Use OP_FLOAT and write_exp_elt_floatcst.
3278 (parse_number): Call parse_float instead of parse_go_float.
3279 Parse suffixes and determine type before calling parse_float.
3280
3281 * p-exp.y (typed_val_float): Use byte buffer instead of DOUBLEST.
3282 (FLOAT): Use OP_FLOAT and write_exp_elt_floatcst.
3283 (parse_number): Update to new parse_float interface.
3284 Parse suffixes and determine type before calling parse_float.
3285
3286 * m2-exp.y: Replace dval by byte buffer val.
3287 (FLOAT): Use OP_FLOAT and write_exp_elt_floatcst.
3288 (parse_number): Call parse_float instead of atof.
3289
3290 * rust-exp.y (typed_val_float): Use byte buffer instead of DOUBLEST.
3291 (lex_number): Call parse_float instead of strtod.
3292 (ast_dliteral): Use OP_FLOAT instead of OP_DOUBLE.
3293 (convert_ast_to_expression): Handle OP_FLOAT instead of OP_DOUBLE.
3294 Use write_exp_elt_floatcst.
3295 (unit_testing): Remove static variable.
3296 (rust_type): Do not check unit_testing.
3297 (rust_lex_tests): Do not set uint_testing. Set up dummy rust_parser.
3298
3299 * ada-exp.y (type_float, type_double): Remove.
3300 (typed_val_float): Use byte buffer instead of DOUBLEST.
3301 (FLOAT): Use OP_FLOAT and write_exp_elt_floatcst.
3302 * ada-lex.l (processReal): Use parse_float instead of sscanf.
3303
3304 2017-10-25 Alan Hayward <alan.hayward@arm.com>
3305
3306 * aarch64-tdep.h (enum aarch64_regnum): Remove.
3307 * arch/aarch64.h: New file.
3308
3309 2017-10-24 Ulrich Weigand <uweigand@de.ibm.com>
3310
3311 * dfp.h (decimal_from_string): Use const reference for argument.
3312 * dfp.c (decimal_from_string): Likewise.
3313
3314 2017-10-24 Ulrich Weigand <uweigand@de.ibm.com>
3315
3316 * i387-tdep.c (print_i387_value): Use floatformat_to_string.
3317 * sh64-tdep.c (sh64_do_fp_register): Likewise.
3318 * mips-tdep.c (mips_print_fp_register): Likewise.
3319
3320 2017-10-24 Ulrich Weigand <uweigand@de.ibm.com>
3321
3322 * common/format.h (enum argclass): Replace decfloat_arg by
3323 dec32float_arg, dec64float_arg, and dec128float_arg.
3324 * common/format.c (parse_format_string): Update to return
3325 new decimal float argument classes.
3326
3327 * printcmd.c (printf_decfloat): Rename to ...
3328 (printf_floating): ... this. Add argclass argument, and use it
3329 instead of parsing the format string again. Add support for
3330 binary floating-point values, using floatformat_to_string.
3331 Convert value to the target format if it doesn't already match.
3332 (ui_printf): Call printf_floating instead of printf_decfloat,
3333 also for double_arg / long_double_arg. Pass argclass.
3334
3335 * dfp.c (decimal_to_string): Add format string argument.
3336 * dfp.h (decimal_to_string): Likewise.
3337
3338 * doublest.c (floatformat_to_string): Add format string argument.
3339 * doublest.h (floatformat_to_string): Likewise.
3340
3341 2017-10-24 Ulrich Weigand <uweigand@de.ibm.com>
3342
3343 * doublest.c (floatformat_precision): New routine.
3344 (floatformat_to_string): Likewise.
3345 * doublest.c (floatformat_to_string): Add prototype.
3346
3347 * printcmd.c (print_scalar_formatted): Only call print_floating
3348 on floating-point types.
3349 * valprint.c: Do not include "floatformat.h".
3350 (generic_val_print_decfloat): Remove.
3351 (generic_val_print): Call generic_val_print_float for both
3352 TYPE_CODE_FLT and TYPE_CODE_DECFLOAT.
3353 (print_floating): Use floatformat_to_string. Handle decimal float.
3354 (print_decimal_floating): Remove, merge into floatformat_to_string.
3355 * value.h (print_decimal_floating): Remove.
3356
3357 * Makefile.in: Do not build doublest.c with -Wformat-nonliteral.
3358
3359 2017-10-24 Ulrich Weigand <uweigand@de.ibm.com>
3360
3361 * buildsym.c (end_symtab_get_static_block): Use std::stable_sort.
3362
3363 2017-10-21 Simon Marchi <simon.marchi@ericsson.com>
3364
3365 * memattr.h: Don't include vec.h.
3366 (struct mem_attrib): Initialize fields.
3367 <unknown>: New static method.
3368 (struct mem_region): Add constructors, operator<, initialize
3369 fields.
3370 * memattr.c: Include algorithm.
3371 (default_mem_attrib, unknown_mem_attrib): Remove.
3372 (user_mem_region_list): New global.
3373 (target_mem_region_list, mem_region_list): Change type to
3374 std::vector<mem_region>.
3375 (mem_use_target): Now a function.
3376 (target_mem_regions_valid): Change type to bool.
3377 (mem_region_lessthan, mem_region_cmp, mem_region_init): Remove.
3378 (require_user_regions): Adjust.
3379 (require_target_regions): Adjust.
3380 (create_mem_region): Adjust.
3381 (lookup_mem_region): Adjust.
3382 (invalidate_target_mem_regions): Adjust.
3383 (mem_clear): Rename to...
3384 (user_mem_clear): ... this, and adjust.
3385 (mem_command): Adjust.
3386 (info_mem_command): Adjust.
3387 (mem_enable, enable_mem_command, mem_disable,
3388 disable_mem_command): Adjust.
3389 (mem_delete): Adjust.
3390 (delete_mem_command): Adjust.
3391 * memory-map.h (parse_memory_map): Return an std::vector.
3392 * memory-map.c (parse_memory_map): Likewise.
3393 (struct memory_map_parsing_data): Add constructor.
3394 <memory_map>: Point to std::vector.
3395 (memory_map_start_memory): Adjust.
3396 (memory_map_end_memory): Adjust.
3397 (memory_map_end_property): Adjust.
3398 (clear_result): Remove.
3399 * remote.c (remote_memory_map): Return an std::vector.
3400 * target-debug.h (target_debug_print_VEC_mem_region_s__p):
3401 Remove.
3402 (target_debug_print_mem_region_vector): New.
3403 * target-delegates.c: Regenerate.
3404 * target.h (mem_region_vector): New typedef.
3405 (to_memory_map): Return mem_region_vector.
3406 (target_memory_map): Return an std::vector.
3407 * target.c (target_memory_map): Return an std::vector.
3408 (flash_erase_command): Adjust.
3409
3410 2017-10-21 Simon Marchi <simon.marchi@ericsson.com>
3411
3412 * memory-map.c (struct memory_map_parsing_data) <property_name>:
3413 Change type to std::string.
3414 (memory_map_start_property): Adjust.
3415 (memory_map_end_property): Adjust.
3416
3417 2017-10-21 Simon Marchi <simon.marchi@polymtl.ca>
3418
3419 * infrun.h: Include common/byte-vector.h.
3420 (struct displaced_step_closure): New struct.
3421 (struct buf_displaced_step_closure): New struct.
3422 * infrun.c (displaced_step_closure::~displaced_step_closure):
3423 Provide default implementation.
3424 (displaced_step_clear): Deallocate step closure with delete.
3425 * aarch64-tdep.c (displaced_step_closure): Rename to ...
3426 (aarch64_displaced_step_closure): ... this, extend
3427 displaced_step_closure.
3428 (aarch64_displaced_step_data) <dsc>: Change type to
3429 aarch64_displaced_step_closure.
3430 (aarch64_displaced_step_copy_insn): Adjust to type change, use
3431 unique_ptr.
3432 (aarch64_displaced_step_fixup): Add cast for displaced step
3433 closure.
3434 * amd64-tdep.c (displaced_step_closure): Rename to ...
3435 (amd64_displaced_step_closure): ... this, extend
3436 displaced_step_closure.
3437 <insn_buf>: Change type to std::vector<gdb_byte>.
3438 <max_len>: Remove.
3439 (fixup_riprel): Change type of DSC parameter, adjust to type
3440 change of insn_buf.
3441 (fixup_displaced_copy): Change type of DSC parameter.
3442 (amd64_displaced_step_copy_insn): Instantiate
3443 amd64_displaced_step_closure.
3444 (amd64_displaced_step_fixup): Add cast for closure type, adjust
3445 to type change of insn_buf.
3446 * arm-linux-tdep.c (arm_linux_cleanup_svc): Change type of
3447 parameter DSC.
3448 (arm_linux_copy_svc): Likewise.
3449 (cleanup_kernel_helper_return): Likewise.
3450 (arm_catch_kernel_helper_return): Likewise.
3451 (arm_linux_displaced_step_copy_insn): Instantiate
3452 arm_displaced_step_closure.
3453 * arm-tdep.c (arm_pc_is_thumb): Add cast for closure.
3454 (displaced_read_reg): Change type of parameter DSC.
3455 (branch_write_pc): Likewise.
3456 (load_write_pc): Likewise.
3457 (alu_write_pc): Likewise.
3458 (displaced_write_reg): Likewise.
3459 (arm_copy_unmodified): Likewise.
3460 (thumb_copy_unmodified_32bit): Likewise.
3461 (thumb_copy_unmodified_16bit): Likewise.
3462 (cleanup_preload): Likewise.
3463 (install_preload): Likewise.
3464 (arm_copy_preload): Likewise.
3465 (thumb2_copy_preload): Likewise.
3466 (install_preload_reg): Likewise.
3467 (arm_copy_preload_reg): Likewise.
3468 (cleanup_copro_load_store): Likewise.
3469 (install_copro_load_store): Likewise.
3470 (arm_copy_copro_load_store) Likewise.
3471 (thumb2_copy_copro_load_store): Likewise.
3472 (cleanup_branch): Likewise.
3473 (install_b_bl_blx): Likewise.
3474 (arm_copy_b_bl_blx): Likewise.
3475 (thumb2_copy_b_bl_blx): Likewise.
3476 (thumb_copy_b): Likewise.
3477 (install_bx_blx_reg): Likewise.
3478 (arm_copy_bx_blx_reg): Likewise.
3479 (thumb_copy_bx_blx_reg): Likewise.
3480 (cleanup_alu_imm): Likewise.
3481 (arm_copy_alu_imm): Likewise.
3482 (thumb2_copy_alu_imm): Likewise.
3483 (cleanup_alu_reg): Likewise.
3484 (install_alu_reg): Likewise.
3485 (arm_copy_alu_reg): Likewise.
3486 (thumb_copy_alu_reg): Likewise.
3487 (cleanup_alu_shifted_reg): Likewise.
3488 (install_alu_shifted_reg): Likewise.
3489 (arm_copy_alu_shifted_reg): Likewise.
3490 (cleanup_load): Likewise.
3491 (cleanup_store): Likewise.
3492 (arm_copy_extra_ld_st): Likewise.
3493 (install_load_store): Likewise.
3494 (thumb2_copy_load_literal): Likewise.
3495 (thumb2_copy_load_reg_imm): Likewise.
3496 (arm_copy_ldr_str_ldrb_strb): Likewise.
3497 (cleanup_block_load_all): Likewise.
3498 (cleanup_block_store_pc): Likewise.
3499 (cleanup_block_load_pc): Likewise.
3500 (arm_copy_block_xfer): Likewise.
3501 (thumb2_copy_block_xfer): Likewise.
3502 (cleanup_svc): Likewise.
3503 (install_svc): Likewise.
3504 (arm_copy_svc): Likewise.
3505 (thumb_copy_svc): Likewise.
3506 (arm_copy_undef): Likewise.
3507 (thumb_32bit_copy_undef): Likewise.
3508 (arm_copy_unpred): Likewise.
3509 (arm_decode_misc_memhint_neon): Likewise.
3510 (arm_decode_unconditional): Likewise.
3511 (arm_decode_miscellaneous): Likewise.
3512 (arm_decode_dp_misc): Likewise.
3513 (arm_decode_ld_st_word_ubyte): Likewise.
3514 (arm_decode_media): Likewise.
3515 (arm_decode_b_bl_ldmstm): Likewise.
3516 (arm_decode_ext_reg_ld_st): Likewise.
3517 (thumb2_decode_dp_shift_reg): Likewise.
3518 (thumb2_decode_ext_reg_ld_st): Likewise.
3519 (arm_decode_svc_copro): Likewise.
3520 (thumb2_decode_svc_copro): Likewise.
3521 (install_pc_relative): Likewise.
3522 (thumb_copy_pc_relative_16bit): Likewise.
3523 (thumb_decode_pc_relative_16bit): Likewise.
3524 (thumb_copy_pc_relative_32bit): Likewise.
3525 (thumb_copy_16bit_ldr_literal): Likewise.
3526 (thumb_copy_cbnz_cbz): Likewise.
3527 (thumb2_copy_table_branch): Likewise.
3528 (cleanup_pop_pc_16bit_all): Likewise.
3529 (thumb_copy_pop_pc_16bit): Likewise.
3530 (thumb_process_displaced_16bit_insn): Likewise.
3531 (decode_thumb_32bit_ld_mem_hints): Likewise.
3532 (thumb_process_displaced_32bit_insn): Likewise.
3533 (thumb_process_displaced_insn): Likewise.
3534 (arm_process_displaced_insn): Likewise.
3535 (arm_displaced_init_closure): Likewise.
3536 (arm_displaced_step_fixup): Add cast for closure.
3537 * arm-tdep.h: Include infrun.h.
3538 (displaced_step_closure): Rename to ...
3539 (arm_displaced_step_closure): ... this, extend
3540 displaced_step_closure.
3541 <u::svc::copy_svc_os>: Change type of parameter DSC.
3542 <cleanup>: Likewise.
3543 (arm_process_displaced_insn): Likewise.
3544 (arm_displaced_init_closure): Likewise.
3545 (displaced_read_reg): Likewise.
3546 (displaced_write_reg): Likewise.
3547 * i386-linux-tdep.c (i386_linux_displaced_step_copy_insn):
3548 Adjust.
3549 * i386-tdep.h: Include infrun.h.
3550 (i386_displaced_step_closure): New typedef.
3551 * i386-tdep.c (i386_displaced_step_copy_insn): Use
3552 i386_displaced_step_closure.
3553 (i386_displaced_step_fixup): Adjust.
3554 * rs6000-tdep.c (ppc_displaced_step_closure): New typedef.
3555 (ppc_displaced_step_copy_insn): Use ppc_displaced_step_closure
3556 and unique_ptr.
3557 (ppc_displaced_step_fixup): Adjust.
3558 * s390-linux-tdep.c (s390_displaced_step_closure): New typedef.
3559 (s390_displaced_step_copy_insn): Use s390_displaced_step_closure
3560 and unique_ptr.
3561 (s390_displaced_step_fixup): Adjust.
3562
3563 2017-10-21 Simon Marchi <simon.marchi@polymtl.ca>
3564
3565 * interps.h (interp_resume, interp_suspend, interp_set_temp):
3566 Remove declarations.
3567
3568 2017-10-20 Tom Tromey <tom@tromey.com>
3569
3570 * gdb_bfd.c (struct gdb_bfd_data) <included_bfds>: Now a
3571 std::vector.
3572 (gdb_bfd_record_inclusion): Update.
3573 (bfdp): Remove typedef.
3574
3575 2017-10-20 Tom Tromey <tom@tromey.com>
3576
3577 * gdb_bfd.c (gdb_bfd_ref): Use new.
3578 (struct gdb_bfd_data): Add constructor, destructor, and member
3579 initializers.
3580 (gdb_bfd_unref): Use delete.
3581
3582 2017-10-20 Tom Tromey <tom@tromey.com>
3583
3584 * exec.c (exec_file_attach): Use new_bfd_ref.
3585 * symfile-mem.c (symbol_file_add_from_memory): Use new_bfd_ref.
3586 * gdb_bfd.c (gdb_bfd_open, gdb_bfd_fopen, gdb_bfd_openr)
3587 (gdb_bfd_openw, gdb_bfd_openr_iovec, gdb_bfd_fdopenr): Use
3588 new_bfd_ref.
3589 * gdb_bfd.h (new_bfd_ref): New function.
3590
3591 2017-10-20 Pedro Alves <palves@redhat.com>
3592
3593 * main.c (captured_command_loop): Add attribute noinline.
3594
3595 2017-10-19 Simon Marchi <simon.marchi@ericsson.com>
3596
3597 * interps.c (struct interp_factory): Add constructor.
3598 (interp_factory_p): Remove typedef.
3599 (DEF_VEC_P(interp_factory_p)): Remove.
3600 (interpreter_factories): Change type to std::vector.
3601 (interp_factory_register): Adjust.
3602 (interp_lookup): Adjust.
3603 (interpreter_completer): Adjust.
3604
3605 2017-10-19 Tom Tromey <tom@tromey.com>
3606
3607 * break-catch-syscall.c (catch_syscall_completer): Use
3608 std::string, gdb::unique_xmalloc_ptr.
3609
3610 2017-10-19 Tom Tromey <tom@tromey.com>
3611
3612 * infcall.c (call_function_by_hand_dummy): Use std::string.
3613
3614 2017-10-19 Tom Tromey <tom@tromey.com>
3615
3616 * mi/mi-main.c (mi_cmd_execute): Update.
3617 * top.h (prepare_execute_command): Return scoped_value_mark.
3618 * value.h (class scoped_value_mark): Use DISABLE_COPY_AND_ASSIGN.
3619 Add move constructor.
3620 * top.c (prepare_execute_command): Return scoped_value_mark.
3621 (execute_command): Update.
3622
3623 2017-10-19 Pedro Alves <palves@redhat.com>
3624
3625 * xml-support.c (xml_fetch_content_from_file): Check fread's
3626 return.
3627
3628 2017-10-19 Pedro Alves <palves@redhat.com>
3629
3630 * ser-base.c (ser_base_read_error_fd): Delete the file handler if
3631 async.
3632 (handle_error_fd): New function.
3633 (ser_base_async): Add/delete an event loop file handler for
3634 error_fd.
3635
3636 2017-10-19 Pedro Alves <palves@redhat.com>
3637
3638 * xml-support.c (xml_fetch_content_from_file): Don't read in
3639 chunks. Instead use fseek to determine the file's size, and read
3640 it in one go.
3641
3642 2017-11-18 Keith Seitz <keiths@redhat.com>
3643
3644 * c-exp.y (oper): Canonicalize conversion operators of user-defined
3645 types.
3646 Add whitespace to front of type name.
3647
3648 2017-10-18 Keith Seitz <keiths@redhat.com>
3649
3650 * dwarf2read.c (dwarf2_add_typedef): Issue a complaint on unhandled
3651 DW_AT_accessibility.
3652
3653 2017-10-18 Yao Qi <yao.qi@linaro.org>
3654
3655 * features/tic6x-c62x-linux.c: Remove.
3656
3657 2017-10-17 Tom Tromey <tom@tromey.com>
3658
3659 * disasm.c (do_mixed_source_and_assembly_deprecated): Use
3660 gdb::optional, ui_out_emit_list, ui_out_emit_tuple.
3661 (do_mixed_source_and_assembly): Likewise.
3662
3663 2017-10-17 Tom Tromey <tom@tromey.com>
3664
3665 * regcache.c (regcache::xfer_part): Remove assertion.
3666
3667 2017-10-17 Pedro Alves <palves@redhat.com>
3668
3669 * xml-support.c (xml_fetch_content_from_file): Call
3670 unique_ptr::release() instead unique_ptr::get() when passing
3671 through xrealloc.
3672
3673 2017-10-17 Yao Qi <yao.qi@linaro.org>
3674
3675 * regcache.c (regcache::xfer_part): Remove parameters read and
3676 write, add parameter is_raw. All callers are updated.
3677
3678 2017-10-16 Keith Seitz <keiths@redhat.com>
3679
3680 * c-typeprint.c (enum access_specifier): Moved here from
3681 c_type_print_base.
3682 (output_access_specifier): New function.
3683 (c_type_print_base): Consider typedefs when assessing
3684 whether access labels are needed.
3685 Use output_access_specifier as needed.
3686 Output access specifier for typedefs, if needed.
3687 * dwarf2read.c (dwarf2_add_typedef): Record DW_AT_accessibility.
3688 * gdbtypes.h (struct typedef_field) <is_protected, is_private>: New
3689 fields.
3690 (TYPE_TYPEDEF_FIELD_PROTECTED, TYPE_TYPEDEF_FIELD_PRIVATE): New
3691 accessor macros.
3692
3693 2017-10-16 Tom Tromey <tom@tromey.com>
3694
3695 * linux-tdep.c (linux_info_proc, linux_find_memory_regions_full)
3696 (linux_fill_prpsinfo, linux_vsyscall_range_raw): Update.
3697 * target.c (target_fileio_read_stralloc): Update.
3698 * sparc64-tdep.c (adi_is_addr_mapped): Update.
3699 * target.h (target_fileio_read_stralloc): Return
3700 unique_xmalloc_ptr.
3701
3702 2017-10-16 Tom Tromey <tom@tromey.com>
3703
3704 * xml-syscall.c (xml_init_syscalls_info): Update.
3705 * xml-support.c (xinclude_start_include): Update.
3706 (xml_fetch_content_from_file): Return unique_xmalloc_ptr.
3707 * xml-support.h (xml_fetch_another): Return unique_xmalloc_ptr.
3708 (xml_fetch_content_from_file): Likewise.
3709 * osdata.c (get_osdata): Update.
3710 * target.h (target_read_stralloc, target_get_osdata): Return
3711 unique_xmalloc_ptr.
3712 * solib-aix.c (solib_aix_get_library_list): Update.
3713 * solib-target.c (solib_target_current_sos): Update.
3714 * solib-svr4.c (svr4_current_sos_via_xfer_libraries): Update.
3715 * xml-tdesc.c (fetch_available_features_from_target): Update.
3716 (target_fetch_description_xml): Update.
3717 (file_read_description_xml): Update.
3718 * remote.c (remote_get_threads_with_qxfer, remote_memory_map)
3719 (remote_traceframe_info, btrace_read_config, remote_read_btrace)
3720 (remote_pid_to_exec_file): Update.
3721 * target.c (target_read_stralloc): Return unique_xmalloc_ptr.
3722 (target_get_osdata): Likewise.
3723
3724 2017-10-16 Tom Tromey <tom@tromey.com>
3725
3726 * remote.c (remote_register_number_and_offset): Use std::vector.
3727 (remote_set_syscall_catchpoint): Use gdb::unique_xmalloc_ptr.
3728 (putpkt_binary): Use gdb::def_vector.
3729 (compare_sections_command): Use gdb::byte_vector.
3730
3731 2017-10-16 Tom Tromey <tom@tromey.com>
3732
3733 * ppc-linux-nat.c (hwdebug_insert_point): Use
3734 gdb::unique_xmalloc_ptr, XDUP.
3735
3736 2017-10-16 Tom Tromey <tom@tromey.com>
3737
3738 * probe.c (parse_probes): Use std::string.
3739 (info_probes_for_ops, enable_probes_command)
3740 (disable_probes_command): Remove cleanups.
3741
3742 2017-10-16 Tom Tromey <tom@tromey.com>
3743
3744 * buildsym.c (block_compar): Remove.
3745 (end_symtab_get_static_block): Use std::vector.
3746
3747 2017-10-16 Simon Marchi <simon.marchi@ericsson.com>
3748
3749 * memrange.h (struct mem_range): Define operator< and operator==.
3750 (mem_range_s): Remove.
3751 (DEF_VEC_O (mem_range_s)): Remove.
3752 (normalize_mem_ranges): Change parameter type to std::vector.
3753 * memrange.c (compare_mem_ranges): Remove.
3754 (normalize_mem_ranges): Change parameter type to std::vector,
3755 adjust to vector change.
3756 * exec.c (section_table_available_memory): Return vector, remove
3757 parameter.
3758 (section_table_read_available_memory): Adjust to std::vector
3759 change.
3760 * remote.c (remote_read_bytes): Adjust to std::vector
3761 change.
3762 * tracepoint.h (traceframe_available_memory): Change parameter
3763 type to std::vector.
3764 * tracepoint.c (traceframe_available_memory): Change parameter
3765 type to std::vector, adjust.
3766 * gdb/mi/mi-main.c (mi_cmd_trace_frame_collected): Adjust to
3767 std::vector change.
3768 * gdb/Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
3769 unittests/memrange-selftests.c.
3770 (SUBDIR_UNITTESTS_OBS): Add memrange-selftests.o.
3771 * gdb/unittests/memrange-selftests.c: New file.
3772
3773 2017-10-16 Pedro Alves <palves@redhat.com>
3774
3775 * elfread.c (probe_key_free): Rename range-for variable.
3776 * probe.c (parse_probes_in_pspace, find_probes_in_objfile)
3777 (find_probe_by_pc, collect_probes): Rename range-for variable.
3778
3779 2017-10-16 Yao Qi <yao.qi@linaro.org>
3780
3781 * features/Makefile (XMLTOC): Remove tic6x-*.xml.
3782 * features/tic6x-c62x.c: Remove.
3783 * features/tic6x-c64x-linux.c: Remove.
3784 * features/tic6x-c64x.c: Remove.
3785 * features/tic6x-c64xp-linux.c: Remove.
3786 * features/tic6x-c64xp.c: Remove.
3787 * tic6x-linux-tdep.c (_initialize_tic6x_linux_tdep): Don't call
3788 initialize_tdesc_tic6x_*_linux functions.
3789 * tic6x-tdep.c (_initialize_tic6x_tdep): Don't call
3790 initialize_tdesc_tic6x_* functions.
3791
3792 2017-10-16 Yao Qi <yao.qi@linaro.org>
3793
3794 * features/Makefile (WHICH): Remove tic6x-c64xp, tic6x-c64x
3795 tic6x-c62x.
3796 * regformats/tic6x-c62x.dat: Remove.
3797 * regformats/tic6x-c64x.dat: Remove.
3798 * regformats/tic6x-c64xp.dat: Remove.
3799
3800 2017-10-15 Simon Marchi <simon.marchi@ericsson.com>
3801
3802 * tracepoint.c (parse_traceframe_info): Return a unique_ptr
3803 (the !HAVE_LIBEXPAT version).
3804
3805 2017-10-14 Simon Marchi <simon.marchi@ericsson.com>
3806
3807 * nat/linux-osdata.c (struct pid_pgid_entry) <operator<>: Make
3808 const.
3809
3810 2017-10-14 Simon Marchi <simon.marchi@polymtl.ca>
3811
3812 * target.h: Include tracepoint.h.
3813 (enum trace_find_type): Move to tracepoint.h.
3814 (struct target_ops) <to_traceframe_info>: Return a unique ptr.
3815 * tracepoint.h: Don't include target.h
3816 (enum trace_find_type): Move from target.h.
3817 (parse_traceframe_info): Return a unique ptr.
3818 * tracepoint.c (current_traceframe_info): Change type to unique
3819 ptr.
3820 (free_traceframe_info): Remove.
3821 (clear_traceframe_info): Don't manually free
3822 current_traceframe_info.
3823 (free_result): Remove.
3824 (parse_traceframe_info): Return a unique ptr.
3825 (get_traceframe_info): Adjust to unique ptr.
3826 * ctf.c (ctf_traceframe_info): Return a unique ptr.
3827 * remote.c (remote_traceframe_info): Return a unique ptr.
3828 * tracefile-tfile.c (tfile_traceframe_info): Return a unique
3829 ptr.
3830 * target-debug.h (target_debug_print_traceframe_info_up): New
3831 macro.
3832 * target-delegates.c: Regenerate.
3833
3834 2017-10-14 Simon Marchi <simon.marchi@polymtl.ca>
3835
3836 * memrange.h (struct mem_range): Add constructors.
3837 * tracepoint.h (struct traceframe_info) <memory>: Change type to
3838 std::vector<mem_range>.
3839 * tracepoint.c (free_traceframe_info): Don't manually free
3840 vector.
3841 (traceframe_info_start_memory): Adjust to vector change.
3842 (traceframe_available_memory): Likewise.
3843 * tracefile-tfile.c (build_traceframe_info): Likewise.
3844 * ctf.c (ctf_traceframe_info): Likewise.
3845
3846 2017-10-14 Simon Marchi <simon.marchi@polymtl.ca>
3847
3848 * tracepoint.h (struct traceframe_info) <tvars>: Change type to
3849 std::vector<int>.
3850 * tracepoint.c (free_traceframe_info): Deallocate with delete.
3851 (traceframe_info_start_tvar): Adjust to vector change.
3852 (parse_traceframe_info): Allocate with new.
3853 * ctf.c (ctf_traceframe_info): Allocate with new, adjust to
3854 vector change.
3855 * tracefile-tfile.c (build_traceframe_info): Adjust to vector
3856 change.
3857 tfile_traceframe_info): Allocate with new.
3858 * mi/mi-main.c (mi_cmd_trace_frame_collected): Adjust to vector
3859 change.
3860
3861 2017-10-14 Simon Marchi <simon.marchi@polymtl.ca>
3862
3863 * tracepoint.c (traceframe_info): Rename to...
3864 (current_traceframe_info): ...this.
3865 (clear_traceframe_info): Adjust.
3866 (get_traceframe_info): Adjust.
3867
3868 2017-10-14 Simon Marchi <simon.marchi@ericsson.com>
3869
3870 * nat/linux-osdata.c: Include algorithm.
3871 (compare_processes): Remove.
3872 (struct pid_pgid_entry): New struct.
3873 (linux_xfer_osdata_processgroups): Use std::vector instead of
3874 XNEWVEC.
3875
3876 2017-10-14 Simon Marchi <simon.marchi@ericsson.com>
3877
3878 * objfiles.h: Don't include symfile.h.
3879 (struct partial_symbol): Remove forward-declaration.
3880 (struct objfile) <global_psymbols, static_psymbols>: Change type
3881 to std::vector<partial_symbol *>.
3882 * objfiles.c (objfile::objfile): Don't memset those fields.
3883 (objfile::~objfile): Don't free those fields.
3884 * psympriv.h (struct psymbol_allocation_list): Remove
3885 forward-declaration.
3886 (add_psymbol_to_list): Change psymbol_allocation_list parameter
3887 to std::vector.
3888 (start_psymtab_common): Change parameters to std::vector.
3889 * psymtab.c: Include algorithm.
3890 (require_partial_symbols): Call shrink_to_fit.
3891 (find_pc_sect_psymbol): Adjust to vector change.
3892 (match_partial_symbol): Likewise.
3893 (lookup_partial_symbol): Likewise.
3894 (psym_relocate): Likewise.
3895 (dump_psymtab): Likewise.
3896 (recursively_search_psymtabs): Likewise.
3897 (compare_psymbols): Remove.
3898 (sort_pst_symbols): Adjust to vector change.
3899 (start_psymtab_common): Likewise.
3900 (end_psymtab_common): Likewise.
3901 (psymbol_bcache_full): De-constify return value.
3902 (add_psymbol_to_bcache): Likewise.
3903 (extend_psymbol_list): Remove.
3904 (append_psymbol_to_list): Adjust to vector change.
3905 (add_psymbol_to_list): Likewise.
3906 (init_psymbol_list): Likewise.
3907 (maintenance_info_psymtabs): Likewise.
3908 (maintenance_check_psymtabs): Likewise.
3909 * symfile.h (struct psymbol_allocation_list): Remove.
3910 * symfile.c (reread_symbols): Adjust to vector change.
3911 * dbxread.c (start_psymtab): Change type of parameters.
3912 (dbx_symfile_read): Adjust to vector change.
3913 (read_dbx_symtab): Likewise.
3914 (start_psymtab): Change type of parameters.
3915 * dwarf2read.c (dwarf2_build_psymtabs): Adjust to vector change.
3916 (create_partial_symtab): Likewise.
3917 (add_partial_symbol): Likewise.
3918 (write_one_signatured_type): Likewise.
3919 (recursively_write_psymbols): Likewise.
3920 * mdebugread.c (parse_partial_symbols): Likewise.
3921 * xcoffread.c (xcoff_start_psymtab): Change type of parameters.
3922 (scan_xcoff_symtab): Adjust to vector change.
3923 (xcoff_initial_scan): Likewise.
3924
3925 2017-10-13 Simon Marchi <simon.marchi@ericsson.com>
3926
3927 * ada-typeprint.c (print_dynamic_range_bound): Use std::string.
3928
3929 2017-10-13 Yao Qi <yao.qi@linaro.org>
3930
3931 * features/Makefile: Remove tic6x-*-expedite, add tic6x-expedite.
3932 Remove s390x-*-expedite, add s390x-expedite.
3933
3934 2017-10-13 Yao Qi <yao.qi@linaro.org>
3935
3936 * features/s390-gs-linux64.c: Regenerated.
3937 * features/s390x-gs-linux64.c: Regenerated.
3938
3939 2017-10-13 Tom Tromey <tom@tromey.com>
3940
3941 * compile/compile-object-run.c (do_module_cleanup): Use delete.
3942 * solib.c (update_solib_list, reload_shared_libraries_1): Use
3943 delete.
3944 * symfile.c (symbol_file_add_with_addrs): Use new.
3945 (symbol_file_add_separate): Update comment.
3946 (syms_from_objfile_1, remove_symbol_file_command): Use delete.
3947 * jit.c (jit_object_close_impl): Use new.
3948 (jit_unregister_code): Use delete.
3949 * objfiles.c (objfile::objfile): Rename from allocate_objfile.
3950 (~objfile): Rename from free_objfile.
3951 (free_objfile_separate_debug, do_free_objfile_cleanup)
3952 (free_all_objfiles, objfile_purge_solibs): Use delete.
3953 * objfiles.h (struct objfile): Add constructor and destructor.
3954 Use DISABLE_COPY_AND_ASSIGN. Add initializers to data members.
3955 (allocate_objfile, free_objfile): Don't declare.
3956 (struct objstats): Add initializers.
3957
3958 2017-10-12 Simon Marchi <simon.marchi@ericsson.com>
3959
3960 * arch-utils.h (simple_displaced_step_copy_insn): Remove.
3961 * arch-utils.c (simple_displaced_step_copy_insn): Remove.
3962 * gdbarch.sh (displaced_step_copy_insn): Adjust comment.
3963 * gdbarch.h: Regenerate.
3964 * i386-linux-tdep.c (i386_linux_displaced_step_copy_insn):
3965 Adjust comment.
3966 * i386-tdep.c (i386_displaced_step_copy_insn): Adjust comment.
3967 (i386_displaced_step_fixup): Adjust comment.
3968 * rs6000-tdep.c (ppc_displaced_step_copy_insn): Adjust comment.
3969
3970 2017-10-12 Tom Tromey <tom@tromey.com>
3971
3972 * prologue-value.h (pv_area::store_would_trash): Return bool.
3973 (pv_area::find_reg): Likewise.
3974 * prologue-value.c (pv_area::store_would_trash): Return bool.
3975 (pv_area::find_reg): Likewise.
3976
3977 2017-10-12 Tom Tromey <tom@tromey.com>
3978
3979 * s390-linux-tdep.c (s390_store, s390_load)
3980 (s390_check_for_saved, s390_analyze_prologue): Update.
3981 * rx-tdep.c (check_for_saved, rx_analyze_prologue): Update.
3982 * rl78-tdep.c (rl78_analyze_prologue, check_for_saved): Update.
3983 * prologue-value.h (class pv_area): Move from prologue-value.c.
3984 Change names of members. Add constructor, destructor, member
3985 functions.
3986 (make_pv_area, free_pv_area, make_cleanup_free_pv_area)
3987 (pv_area_store, pv_area_fetch, pv_area_store_would_trash)
3988 (pv_area_fetch, pv_area_scan): Don't declare.
3989 * prologue-value.c (struct pv_area::area_entry): Now member of
3990 pv_area.
3991 (struct pv_area): Move to prologue-value.h.
3992 (pv_area::pv_area): Rename from make_pv_area.
3993 (pv_area::~pv_area): Rename from free_pv_area.
3994 (do_free_pv_area_cleanup, make_cleanup_free_pv_area): Remove.
3995 (clear_entries, find_entry, overlaps, store_would_trash, store)
3996 (fetch, find_reg, scan): Now member of pv_area.
3997 Remove "area" argument. Update.
3998 * msp430-tdep.c (check_for_saved, msp430_analyze_prologue):
3999 Update.
4000 * mn10300-tdep.c (push_reg, check_for_saved)
4001 (mn10300_analyze_prologue): Update.
4002 * mep-tdep.c (is_arg_spill, check_for_saved)
4003 (mep_analyze_prologue): Update.
4004 * m32c-tdep.c (m32c_pv_push, m32c_srcdest_fetch)
4005 (m32c_srcdest_store, m32c_pv_enter, m32c_is_arg_spill)
4006 (m32c_is_struct_return, m32c_analyze_prologue): Update.
4007 * arm-tdep.c (thumb_analyze_prologue, arm_analyze_prologue):
4008 Update.
4009 * arc-tdep.c (arc_is_in_prologue, arc_analyze_prologue): Update.
4010 * aarch64-tdep.c (aarch64_analyze_prologue): Update.
4011
4012 2017-10-12 Simon Marchi <simon.marchi@ericsson.com>
4013
4014 * linux-nat.h (linux_nat_set_delete_thread): New declaration.
4015 * linux-nat.c (linux_nat_delete_thread): New variable.
4016 (lwp_free): Invoke linux_nat_delete_thread if set.
4017 (linux_nat_set_delete_thread): New function.
4018 * aarch64-linux-nat.c (_initialize_aarch64_linux_nat): Assign
4019 thread delete callback.
4020 * arm-linux-nat.c (arm_linux_delete_thread): New function.
4021 (_initialize_arm_linux_nat): Assign thread delete callback.
4022 * s390-linux-nat.c (s390_delete_thread): New function.
4023 (_initialize_s390_nat): Assign thread delete callback.
4024 * x86-linux-nat.c (x86_linux_add_target): Likewise.
4025 * nat/aarch64-linux.c (aarch64_linux_delete_thread): New
4026 function.
4027 * nat/aarch64-linux.h (aarch64_linux_delete_thread): New
4028 declaration.
4029 * nat/x86-linux.c (x86_linux_delete_thread): New function.
4030 * nat/x86-linux.h (x86_linux_delete_thread): New declaration.
4031
4032 2017-10-09 Tom Tromey <tom@tromey.com>
4033
4034 * tui/tui-win.c (tui_set_win_height, parse_scrolling_args): Use
4035 std::string.
4036 * tui/tui-layout.c (enum tui_status): Use std::string.
4037
4038 2017-10-11 Tom Tromey <tom@tromey.com>
4039
4040 * gdbthread.h (thread_command): Constify.
4041 * inferior.h (detach_command): Constify.
4042 * top.h (set_history, show_history): Constify.
4043 * arm-tdep.c (set_arm_command, show_arm_command): Constify.
4044 * serial.c (serial_set_cmd, serial_show_cmd): Constify.
4045 * bsd-kvm.c (bsd_kvm_cmd): Constify.
4046 * printcmd.c (set_command): Constify.
4047 (non_const_set_command): New function.
4048 * dcache.c (set_dcache_command, show_dcache_command): Constify.
4049 * breakpoint.c (enable_command, disable_command, delete_command)
4050 (catch_command, tcatch_command, set_breakpoint_cmd)
4051 (show_breakpoint_cmd): Constify.
4052 * macrocmd.c (macro_command): Constify.
4053 * infcmd.c (unset_command, kill_command, detach_command)
4054 (info_proc_cmd): Constify.
4055 * i386-tdep.c (set_mpx_cmd, show_mpx_cmd): Constify.
4056 * auto-load.c (show_auto_load_cmd, set_auto_load_cmd)
4057 (info_auto_load_cmd): Constify.
4058 * target-descriptions.c (set_tdesc_cmd, show_tdesc_cmd)
4059 (unset_tdesc_cmd): Constify.
4060 * ada-lang.c (set_ada_command, show_ada_command)
4061 (maint_set_ada_cmd, maint_show_ada_cmd): Constify.
4062 * guile/guile.c (set_guile_command, show_guile_command)
4063 (info_guile_command): Constify.
4064 * tui/tui-win.c (tui_command, set_tui_cmd, show_tui_cmd):
4065 Constify.
4066 * skip.c (skip_command): Constify.
4067 * compile/compile.c (_initialize_compile): Constify.
4068 * dwarf2read.c (set_dwarf_cmd, show_dwarf_cmd): Constify.
4069 * btrace.c (maint_btrace_cmd, maint_btrace_set_cmd)
4070 (maint_btrace_show_cmd, maint_btrace_pt_set_cmd)
4071 (maint_btrace_pt_show_cmd): Constify.
4072 * remote.c (set_remote_cmd, show_remote_cmd, remote_command):
4073 Constify.
4074 * python/python.c (user_show_python, user_set_python): Constify.
4075 * mips-tdep.c (set_mips_command, show_mips_command)
4076 (set_mipsfpu_command): Constify.
4077 * record-btrace.c (cmd_record_btrace_start)
4078 (cmd_set_record_btrace, cmd_show_record_btrace)
4079 (cmd_set_record_btrace_bts, cmd_show_record_btrace_bts)
4080 (cmd_set_record_btrace_pt, cmd_show_record_btrace_pt): Constify.
4081 * rs6000-tdep.c (set_powerpc_command, show_powerpc_command):
4082 Constify.
4083 * symfile.c (overlay_command): Constify.
4084 * spu-tdep.c (set_spu_command, show_spu_command): Constify.
4085 * cli/cli-logging.c (set_logging_command, show_logging_command):
4086 Constify.
4087 * cli/cli-dump.c (dump_command, append_command)
4088 (srec_dump_command, ihex_dump_command, verilog_dump_command)
4089 (tekhex_dump_command, binary_dump_command)
4090 (binary_append_command): Constify.
4091 * cli/cli-decode.c (struct cmd_list_element): Change type of
4092 "fun".
4093 * cli/cli-cmds.c (info_command, show_command, set_debug)
4094 (show_debug): Constify.
4095 (show_command): Add non-const overload.
4096 * top.c (set_history, show_history): Constify.
4097 * sh-tdep.c (set_sh_command, show_sh_command): Constify.
4098 * command.h (add_prefix_cmd): Accept a cmd_const_cfunc_ftype.
4099 * target.c (target_command): Constify.
4100 * sparc64-tdep.c (info_adi_command): Constify.
4101 * record-full.c (cmd_record_full_start): Constify.
4102 (set_record_full_command): Constify. Fix typo.
4103 (show_record_full_command): Constify.
4104 * thread.c (thread_command, thread_apply_command): Constify.
4105 * memattr.c (dummy_cmd): Constify.
4106 * value.c (function_command): Constify.
4107 * frame.c (set_backtrace_cmd, show_backtrace_cmd): Constify.
4108 * probe.c (info_probes_command): Constify.
4109 * ser-tcp.c (set_tcp_cmd, show_tcp_cmd): Constify.
4110 * gnu-nat.c (set_task_cmd, show_task_cmd, set_thread_cmd)
4111 (show_thread_cmd, set_thread_default_cmd)
4112 (show_thread_default_cmd): Constify.
4113 (check_empty): Constify.
4114 * tracepoint.c (tfind_command): Constify.
4115 * cp-support.c (maint_cplus_command): Constify.
4116 * windows-tdep.c (info_w32_command): Constify.
4117 * record.c (cmd_record_start, set_record_command)
4118 (show_record_command, info_record_command, cmd_record_goto):
4119 Constify.
4120 * ravenscar-thread.c (set_ravenscar_command)
4121 (show_ravenscar_command): Constify.
4122 * utils.c (set_internal_problem_cmd, show_internal_problem_cmd):
4123 Constify.
4124 (add_internal_problem_command): Remove casts.
4125 * arc-tdep.c (maintenance_print_arc_command): Constify.
4126 * valprint.c (set_print, show_print, set_print_raw)
4127 (show_print_raw): Constify.
4128 * maint.c (maintenance_command, maintenance_info_command)
4129 (maintenance_print_command, maintenance_set_cmd)
4130 (maintenance_show_cmd, set_per_command_cmd)
4131 (show_per_command_cmd, maintenance_check_command): Constify.
4132 * language.c (set_check, show_check): Constify.
4133 * typeprint.c (show_print_type, set_print_type): Constify.
4134 * go32-nat.c (go32_info_dos_command): Constify.
4135
4136 2017-10-11 Tom Tromey <tom@tromey.com>
4137
4138 * breakpoint.c (prepare_re_set_context): Remove.
4139 (breakpoint_re_set_one): Update. Don't use cleanups.
4140 (breakpoint_re_set): Use scoped_restore, std::string, and
4141 scoped_restore_current_language.
4142
4143 2017-10-11 Tom Tromey <tom@tromey.com>
4144
4145 * breakpoint.c (commands_command_1): Use std::string.
4146 (cleanup_executing_breakpoints): Remove.
4147 (bpstat_do_actions_1): Use scoped_restore.
4148 (bpstat_check_watchpoint): Use std::string.
4149 (decode_static_tracepoint_spec): Likewise.
4150 (break_range_command): Likewise.
4151 (watch_command_1): Likewise.
4152 (compare_breakpoints): Change argument types.
4153 (clear_command): Use std::vector.
4154 (cleanup_executing_breakpoints): Remove.
4155 (update_global_location_list): Use unique_xmalloc_ptr.
4156 (strace_command): Remove unused declaration.
4157
4158 2017-10-11 John Baldwin <jhb@FreeBSD.org>
4159
4160 * Makefile.in (ALLDEPFILES): Add arm-fbsd-nat.c.
4161 * NEWS: Mention new FreeBSD/arm native configuration.
4162 * configure.host: Add arm*-*-freebsd*.
4163 * configure.nat: Likewise.
4164 * arm-fbsd-nat.c: New file.
4165
4166 2017-10-11 John Baldwin <jhb@FreeBSD.org>
4167
4168 * Makefile.in (ALL_TARGET_OBS): Add arm-fbsd-tdep.o.
4169 (ALLDEPFILES): Add arm-fbsd-tdep.c.
4170 * NEWS: Mention new FreeBSD/arm target.
4171 * configure.tgt: Add arm*-*-freebsd*.
4172 * arm-fbsd-tdep.c: New file.
4173 * arm-fbsd-tdep.h: New file.
4174
4175 2017-10-11 Maciej W. Rozycki <macro@imgtec.com>
4176
4177 * linux-tdep.c (linux_make_corefile_notes): Remove call to
4178 `gdbarch_elfcore_write_linux_prpsinfo'.
4179 * gdbarch.sh (elfcore_write_linux_prpsinfo): Remove architecture
4180 method.
4181 (elf_internal_linux_prpsinfo): Remove declaration.
4182 * gdbarch.h: Regenerate.
4183 * gdbarch.c: Regenerate.
4184
4185 2017-10-11 Maciej W. Rozycki <macro@imgtec.com>
4186
4187 * ppc-linux-tdep.c (ppc_linux_init_abi): Remove call to
4188 `set_gdbarch_elfcore_write_linux_prpsinfo'.
4189
4190 2017-10-11 Pedro Alves <palves@redhat.com>
4191
4192 * breakpoint.c (reattach_breakpoints): Delete.
4193 * breakpoint.h (reattach_breakpoints): Delete.
4194
4195 2017-10-11 Simon Marchi <simon.marchi@ericsson.com>
4196
4197 * symfile.c (registered_sym_fns): Make struct, not typedef.
4198 (DEF_VEC_O (registered_sym_fns)): Remove.
4199 (symtab_fns): Change type to std::vector.
4200 (add_symtab_fns): Adjust.
4201 (find_sym_fns): Adjust.
4202
4203 2017-10-11 Anton Kolesov <Anton.Kolesov@synopsys.com>
4204
4205 * arc-tdep.c (arc_gdbarch_init): Pass proper cpu value to disassembler.
4206 * arc-tdep.h (arc_arch_is_em): New function.
4207 (arc_arch_is_hs): Likewise.
4208
4209 2017-10-11 Egeyar Bagcioglu <egeyar.bagcioglu@oracle.com>
4210
4211 * macrotab.h (macro_lookup_inclusion): Remove unnecessary
4212 parentheses in the declaration.
4213 (macro_lookup_inclusion): Likewise.
4214 (macro_lookup_definition): Likewise.
4215 * p-lang.h (pascal_builtin_types): Likewise.
4216 * tui/tui-data.c (tui_win_list): Likewise.
4217 * tui/tui-data.h (tui_win_list): Likewise.
4218 * utils.h (make_cleanup_free_section_addr_info): Likewise.
4219
4220 2017-10-11 Mark Rages <markrages@gmail.com>
4221
4222 * target-memory.c (block_boundaries): Fix for block address not
4223 aligned on block size.
4224
4225 2017-10-10 Pedro Alves <palves@redhat.com>
4226 Tom Tromey <tom@tromey.com>
4227
4228 * breakpoint.c (struct captured_breakpoint_query_args)
4229 (do_captured_breakpoint_query, gdb_breakpoint_query): Delete.
4230 (print_breakpoint): New.
4231 * breakpoint.h (print_breakpoint): Declare.
4232 * common/common-exceptions.h (enum return_reason): Remove
4233 references to catch_exceptions.
4234 * exceptions.c (catch_exceptions, catch_exceptions_with_msg):
4235 Delete.
4236 * exceptions.h (catch_exceptions_ftype, catch_exceptions)
4237 (catch_exception_ftype, catch_exceptions_with_msg): Delete.
4238 * gdb.h: Delete.
4239 * gdbthread.h (thread_select): Declare.
4240 * mi/mi-cmd-break.c: Don't include gdb.h.
4241 (breakpoint_notify): Use print_breakpoint.
4242 * mi/mi-cmd-catch.c: Don't include gdb.h.
4243 * mi/mi-interp.c: Don't include gdb.h.
4244 (mi_print_breakpoint_for_event): New.
4245 (mi_breakpoint_created, mi_breakpoint_modified): Use
4246 mi_print_breakpoint_for_event.
4247 * mi/mi-main.c: Don't include gdb.h.
4248 (mi_cmd_thread_select): Parse the global thread ID here. Use
4249 thread_select instead of gdb_thread_select.
4250 (mi_cmd_thread_list_ids): Output "thread-ids" tuple here instead
4251 of using gdb_list_thread_ids.
4252 * remote-fileio.c (do_remote_fileio_request): Change type. Reply
4253 FILEIO_ENOSYS here.
4254 (remote_fileio_request): Use TRY/CATCH instead of
4255 catch_exceptions.
4256 * symfile-mem.c (struct symbol_file_add_from_memory_args)
4257 (symbol_file_add_from_memory_wrapper): Delete.
4258 (add_vsyscall_page): Use TRY/CATCH instead of catch_exceptions.
4259 * thread.c: Don't include gdb.h.
4260 (do_captured_list_thread_ids, gdb_list_thread_ids): Delete.
4261 (thread_alive): Use thread_select.
4262 (do_captured_thread_select): Delete, parts salvaged as ...
4263 (thread_select): ... this new function.
4264 (gdb_thread_select): Delete.
4265
4266 2017-10-10 Pedro Alves <palves@redhat.com>
4267 Tom Tromey <tom@tromey.com>
4268
4269 * breakpoint.c (breakpoint_cond_eval): Change return type to bool
4270 and reverse logic.
4271 (WP_DELETED, WP_VALUE_CHANGED, WP_VALUE_NOT_CHANGED, WP_IGNORE):
4272 No longer macros. Instead ...
4273 (enum wp_check_result): They're now values of this new
4274 enumeration.
4275 (watchpoint_check): Change return type to wp_check_result and
4276 parameter type to bpstat.
4277 (bpstat_check_watchpoint): Use TRY/CATCH instead of catch_errors.
4278 (bpstat_check_breakpoint_conditions): Use TRY/CATCH instead of
4279 catch_errors. Reverse logic of watchpoint_check call.
4280 (breakpoint_re_set_one): Now returns void and takes a breakpoint
4281 pointer as parameter.
4282 (breakpoint_re_set): Use TRY/CATCH instead of catch_errors.
4283 * common/common-exceptions.c (throw_exception_sjlj): Update
4284 comments to avoid mentioning catch_errors.
4285 * exceptions.c (catch_errors): Delete.
4286 * exceptions.h: Update comments to avoid mentioning catch_errors.
4287 (catch_errors_ftype, catch_errors): Delete.
4288 * infrun.c (normal_stop): Use TRY/CATCH instead of catch_errors.
4289 (hook_stop_stub): Delete.
4290 (restore_selected_frame): Change return type to void, and
4291 parameter type to const frame_id &.
4292 (restore_infcall_control_state): Use TRY/CATCH instead of
4293 catch_errors.
4294 * main.c (captured_command_loop): Return void and remove
4295 parameter. Remove references to catch_errors.
4296 (captured_main): Use TRY/CATCH instead of catch_errors.
4297 * objc-lang.c (objc_submethod_helper_data)
4298 (find_objc_msgcall_submethod_helper): Delete.
4299 (find_objc_msgcall_submethod): Use TRY/CATCH instead of
4300 catch_errors.
4301 * record-full.c (record_full_message): Return void.
4302 (record_full_message_args, record_full_message_wrapper): Delete.
4303 (record_full_message_wrapper_safe): Return bool and use TRY/CATCH
4304 instead of catch_errors.
4305 * solib-aix.c (solib_aix_open_symbol_file_object): Change
4306 parameter type to int.
4307 * solib-darwin.c (open_symbol_file_object): Ditto.
4308 * solib-dsbt.c (open_symbol_file_object): Ditto.
4309 * solib-frv.c (open_symbol_file_object): Ditto.
4310 * solib-svr4.c (open_symbol_file_object): Ditto.
4311 * solib-target.c (solib_target_open_symbol_file_object): Ditto.
4312 * solib.c (update_solib_list): Use TRY/CATCH instead of
4313 catch_errors.
4314 * solist.h (struct target_so_ops) <open_symbol_file_object>:
4315 Change type.
4316 * symmisc.c (struct print_symbol_args): Remove.
4317 (dump_symtab_1): Use TRY/CATCH instead of catch_errors.
4318 (print_symbol): Change type.
4319 * windows-nat.c (handle_load_dll, handle_unload_dll): Return void
4320 and remove parameters.
4321 (catch_errors): New.
4322 (get_windows_debug_event): Adjust.
4323
4324 2017-10-09 Tom Tromey <tom@tromey.com>
4325
4326 * mi/mi-main.c (free_splay_tree): Remove.
4327 (list_available_thread_groups): Use splay_tree_up.
4328 * common/gdb_splay_tree.h: New file.
4329
4330 2017-10-09 Tom Tromey <tom@tromey.com>
4331
4332 * mi/mi-main.c (do_nothing): Remove.
4333 (list_available_thread_groups): Update.
4334
4335 2017-10-09 Pedro Alves <palves@redhat.com>
4336
4337 * infrun.c (handle_inferior_event_1) <TARGET_WAITKIND_EXECD>: Skip
4338 reading registers when switching context.
4339
4340 2017-10-09 John Baldwin <jhb@FreeBSD.org>
4341
4342 * fbsd-nat.c (fbsd_siginfo_size): Use gdbarch_long_bit.
4343 (fbsd_convert_siginfo): Likewise.
4344 * fbsd-tdep.c (fbsd_core_xfer_siginfo): Likewise.
4345
4346 2017-10-09 Simon Marchi <simon.marchi@polymtl.ca>
4347
4348 * configure.ac (try_guile_versions): Remove guile-2.2.
4349 * configure: Regenerate.
4350
4351 2017-10-09 Tom Tromey <tom@tromey.com>
4352
4353 * Makefile.in (COMPILE.post, POSTCOMPILE): Restore $(basename).
4354 (COMPILE.pre): Use $(CXX).
4355
4356 2017-10-09 Pedro Alves <palves@redhat.com>
4357
4358 * cp-support.c (cp_remove_params): Return a gdb::unique_xmalloc_ptr.
4359 Use bool.
4360 (overload_list_add_symbol): Adjust to use gdb::unique_xmalloc_ptr.
4361 * cp-support.h (cp_remove_params): Now returns a
4362 gdb::unique_xmalloc_ptr.
4363 * dwarf2read.c (find_slot_in_mapped_hash): Now returns bool.
4364 Adjust to cp_remove_params returning a gdb::unique_xmalloc_ptr.
4365 * psymtab.c (psymtab_search_name): Adjust to cp_remove_params
4366 returning a gdb::unique_xmalloc_ptr.
4367 (lookup_partial_symbol): Adjust to use gdb::unique_xmalloc_ptr.
4368 * stack.c (find_frame_funname): Adjust to cp_remove_params
4369 returning a gdb::unique_xmalloc_ptr.
4370
4371 2017-10-08 Tom Tromey <tom@tromey.com>
4372
4373 * dwarf2read.c (dwarf2_get_dwz_file): Use
4374 gdb::unique_xmalloc_ptr.
4375 (find_slot_in_mapped_hash): Likewise.
4376 (dwarf2_physname): Likewise.
4377 (create_dwo_unit_in_dwp_v1): Use std::string.
4378 (create_dwo_unit_in_dwp_v2): Likewise.
4379 (lookup_dwo_cutu): Likewise.
4380 (inherit_abstract_dies): Use std::vector.
4381 (read_array_type): Likewise.
4382 (dwarf_decode_macros): Remove unused declaration.
4383 (unsigned_int_compar): Remove.
4384 (dwarf2_build_psymtabs_hard): Use scoped_restore.
4385 (psymtabs_addrmap_cleanup): Remove.
4386
4387 2017-10-08 Tom Tromey <tom@tromey.com>
4388
4389 * frame-unwind.c (frame_unwind_try_unwinder): Update.
4390 * frame.h (frame_cleanup_after_sniffer): Declare.
4391 (frame_prepare_for_sniffer): Return void.
4392 * frame.c (frame_cleanup_after_sniffer): No longer static. Change
4393 type of argument.
4394 (frame_prepare_for_sniffer): Return void.
4395
4396 2017-10-08 Tom Tromey <tom@tromey.com>
4397
4398 * utils.h (make_cleanup_value_free): Remove.
4399 * utils.c (do_value_free, struct cleanup): Remove.
4400 * dwarf2loc.c (dwarf2_evaluate_loc_desc_full) <DWARF_VALUE_STACK>:
4401 Use gdb_value_up.
4402 * value.h (struct value_deleter): New.
4403 (gdb_value_up): New typedef.
4404
4405 2017-10-08 Tom Tromey <tom@tromey.com>
4406
4407 * symtab.c (free_search_symbols, do_free_search_symbols_cleanup)
4408 (make_cleanup_free_search_symbols): Remove.
4409 (search_symbols): Return std::vector.
4410 (symbol_search::compare_search_syms): Now member of
4411 symbol_search. Change arguments.
4412 (sort_search_symbols_remove_dups): Change arguments. Rewrite.
4413 (symtab_symbol_info, rbreak_command): Update.
4414 * symtab.h (struct symbol_search) <next>: Remove.
4415 Add constructors.
4416 (symbol_search::operator<): New function.
4417 (symbol_search::operator==): New function.
4418 (search_symbols): Remove std::vector.
4419 (free_search_symbols, make_cleanup_free_search_symbols): Remove.
4420 (symbol_search::compare_search_syms): Declare.
4421
4422 2017-10-06 Yao Qi <yao.qi@linaro.org>
4423
4424 * Makefile.in (ALL_64_TARGET_OBS): Replace aarch64-insn.o with
4425 arch/aarch64-insn.o.
4426 Remove one rule.
4427 * configure.tgt: Replace aarch64-insn.o with arch/aarch64-insn.o.
4428
4429 2017-10-06 Yao Qi <yao.qi@linaro.org>
4430
4431 * Makefile.in (ALL_TARGET_OBS): Replace arm.o, arm-get-next-pcs.o,
4432 and arm-linux.o with arch/arm.o, arch/arm-get-next-pcs.o and
4433 arch/arm-linux.o respectively.
4434 * configure.tgt: Likewise.
4435
4436 2017-10-06 Yao Qi <yao.qi@linaro.org>
4437
4438 * Makefile.in (ALL_TARGET_OBS): Rename i386.o to arch/i386.o.
4439 * configure.tgt (i386_tobjs): Replace i386.o with arch/i386.o.
4440
4441 2017-10-06 Pedro Alves <palves@redhat.com>
4442
4443 * windows-nat.c: Include <algorithm>.
4444
4445 2017-10-06 Yao Qi <yao.qi@linaro.org>
4446
4447 * configure.tgt (i386_tobjs): New variable.
4448 (amd64_tobjs): New variable.
4449 Set $cpu_obs and $os_obs.
4450
4451 2017-10-06 Yao Qi <yao.qi@linaro.org>
4452
4453 * Makefile.in (CONFIG_SRC_SUBDIR): New.
4454 (ALL_64_TARGET_OBS): Replace amd64.o with arch/amd64.o.
4455 (clean): Remove object files and dependency files.
4456 (distclean): Remove the directory.
4457 * configure.ac: Invoke AC_CONFIG_COMMANDS.
4458 * configure: Re-generated.
4459 * configure.tgt: Replace amd64.o with arch/amd64.o.
4460
4461 2017-10-05 Jose E. Marchesi <jose.marchesi@oracle.com>
4462
4463 PR build/22188
4464 * arm-tdep.c (arm_decode_misc_memhint_neon): Fix decoding of CPS
4465 and SETEND.
4466
4467 2017-10-05 Pedro Alves <palves@redhat.com>
4468
4469 * linux-nat.c (linux_child_follow_fork): When following the parent
4470 and detaching the child, consult the parent thread's architecture
4471 instead of the child's.
4472
4473 2017-10-05 Ulrich Weigand <uweigand@de.ibm.com>
4474
4475 * ax.h: Do not include "doublest.h".
4476 (union agent_val): Remove.
4477
4478 2017-10-05 Ulrich Weigand <uweigand@de.ibm.com>
4479
4480 * dfp.h (MAX_DECIMAL_STRING): Move to dfp.c.
4481 (decimal_to_string): Return std::string object.
4482 (decimal_from_string): Accept std::string object. Return bool.
4483 (decimal_from_integral, decimal_from_doublest): Remove.
4484 (decimal_from_longest): Add prototype.
4485 (decimal_from_ulongest): Likewise.
4486 (decimal_to_longest): Likewise.
4487 (decimal_from_doublest): Likewise.
4488 * dfp.c: Do not include "gdbtypes.h" or "value.h".
4489 (MAX_DECIMAL_STRING): Move here.
4490 (decimal_to_string): Return std::string object.
4491 (decimal_from_string): Accept std::string object. Return bool.
4492 (decimal_from_integral): Remove, replace by ...
4493 (decimal_from_longest, decimal_from_ulongest): ... these new functions.
4494 (decimal_to_longest): New function.
4495 (decimal_from_floating): Remove, replace by ...
4496 (decimal_from_doublest): ... this new function.
4497 (decimal_to_doublest): Update to new decimal_to_string interface.
4498
4499 * value.c (unpack_long): Use decimal_to_longest.
4500 * valops.c (value_cast): Use decimal_from_doublest instead of
4501 decimal_from_floating. Use decimal_from_[u]longest isntead of
4502 decimal_from_integral.
4503 * valarith.c (value_args_as_decimal): Likewise.
4504 * valprint.c (print_decimal_floating): Update to new
4505 decimal_to_string interface.
4506 * printcmd.c (printf_decfloat): Likewise.
4507 * c-exp.y (parse_number): Update to new decimal_from_string interface.
4508
4509 2017-10-05 Ulrich Weigand <uweigand@de.ibm.com>
4510
4511 * doublest.h: Do not include "floatformat.h". Remove stale comments.
4512 * gdbtypes.c: Include "floatformat.h".
4513 * value.c: Likewise.
4514 * m68k-tdep.c: Likewise.
4515
4516 * findvar.c: Do not include "floatformat.h".
4517 * amd64-darwin-tdep.c: Likewise.
4518 * arm-linux-tdep.c: Likewise.
4519 * i386-darwin-tdep.c: Likewise.
4520 * i387-tdep.c: Likewise.
4521 * m68k-linux-tdep.c: Likewise.
4522 * mep-tdep.c: Likewise.
4523 * mips-tdep.c: Likewise.
4524 * nios2-tdep.c: Likewise.
4525 * s390-linux-tdep.c: Likewise.
4526 * sparc-obsd-tdep.c: Likewise.
4527 * sparc-tdep.c: Likewise.
4528 * sparc64-tdep.c: Likewise.
4529 * spu-tdep.c: Likewise.
4530 * tic6x-tdep.c: Likewise.
4531 * tilegx-tdep.c: Likewise.
4532 * vax-tdep.c: Likewise.
4533 * xstormy16-tdep.c: Likewise.
4534 * xtensa-tdep.c: Likewise.
4535
4536 * top.c: Do not include "doublest.h".
4537 * aarch64-tdep.c: Likewise.
4538 * alpha-tdep.c: Likewise.
4539 * arm-linux-tdep.c: Likewise.
4540 * m68k-linux-tdep.c: Likewise.
4541 * tilegx-tdep.c: Likewise.
4542 * xstormy16-tdep.c: Likewise.
4543
4544 2017-10-05 John Baldwin <jhb@FreeBSD.org>
4545
4546 * mips-fbsd-tdep.c (MIPS_INST_ADDIU_A0_SP_N32): Define.
4547 (mipsn32_fbsd_sigframe): Define.
4548 (mips_fbsd_init_abi): Install mipsn32_fbsd_sigframe unwinder
4549 for FreeBSD/mipsn32.
4550
4551 2017-10-05 John Baldwin <jhb@FreeBSD.org>
4552
4553 * fbsd-tdep.c (fbsd_print_auxv_entry): Handle AT_EHDRFLAGS and
4554 AT_HWCAP.
4555
4556 2017-10-05 Tristan Gingold <tgingold@free.fr>
4557
4558 * MAINTAINERS (Misc): Update my email address.
4559
4560 2017-10-04 Pedro Alves <palves@redhat.com>
4561
4562 * remote.c (get_remote_arch_state): New 'gdbarch' parameter. Use
4563 it instead of target_gdbarch.
4564 (get_remote_state, get_remote_packet_size): Adjust
4565 get_remote_arch_state calls, passing down target_gdbarch
4566 explicitly.
4567 (packet_reg_from_regnum, packet_reg_from_pnum): New parameter
4568 'gdbarch' and use it instead of target_gdbarch.
4569 (get_memory_packet_size): Adjust get_remote_arch_state calls,
4570 passing down target_gdbarch explicitly.
4571 (struct stop_reply) <arch>: New field.
4572 (remote_parse_stop_reply): Use the stopped thread's architecture,
4573 not the current inferior's. Save the architecture in the
4574 stop_reply.
4575 (process_stop_reply): Use the stop reply's architecture.
4576 (process_g_packet, remote_fetch_registers)
4577 (remote_prepare_to_store, store_registers_using_G)
4578 (remote_store_registers): Adjust get_remote_arch_state calls,
4579 using the regcache's architecture.
4580 (remote_get_trace_status): Adjust get_remote_arch_state calls,
4581 passing down target_gdbarch explicitly.
4582 * spu-multiarch.c (spu_thread_architecture): Defer to the target
4583 beneath instead of calling target_gdbarch.
4584 * target.c (default_thread_architecture): Use the specified
4585 inferior's architecture, instead of the current inferior's
4586 architecture (via target_gdbarch).
4587
4588 2017-10-04 Pedro Alves <palves@redhat.com>
4589
4590 * regcache.c (get_thread_arch_regcache): Remove null_ptid special
4591 case.
4592 (regcache_print): Handle !target_has_registers here instead.
4593
4594 2017-10-04 Pedro Alves <palves@redhat.com>
4595
4596 * frame.c (create_test_frame): Delete.
4597 * frame.h (create_test_frame): Delete.
4598 * gdbarch-selftests.c: Include gdbthread.h and target.h.
4599 (class regcache_test): Delete.
4600 (test_target_has_registers, test_target_has_stack)
4601 (test_target_has_memory, test_target_prepare_to_store)
4602 (test_target_store_registers): New functions.
4603 (test_target_ops): New class.
4604 (register_to_value_test): Error out if there's already a
4605 process_stratum (or higher) target pushed. Create a fuller mock
4606 environment, with mock target_ops, inferior, address space, thread
4607 and inferior_ptid.
4608 * progspace.c (struct address_space): Move to ...
4609 * progspace.h (struct address_space): ... here.
4610 * regcache.h (regcache::~regcache, regcache::raw_write)
4611 [GDB_SELF_TEST]: No longer virtual.
4612
4613 2017-10-04 Simon Marchi <simon.marchi@ericsson.com>
4614
4615 * mi/mi-main.c (list_available_thread_groups): Reverse filter logic.
4616
4617 2017-10-04 Pedro Alves <palves@redhat.com>
4618
4619 * guile/scm-breakpoint.c (gdbscm_breakpoint_commands): Move code
4620 out of 'between TRY and CATCH'.
4621
4622 2017-10-04 Pedro Alves <palves@redhat.com>
4623
4624 * cli/cli-cmds.c (complete_command): Add missing END_CATCH.
4625 * common/common-exceptions.h (TRY): Open an outermost scope.
4626 Expand intro comment.
4627 (CATCH): Reindent.
4628 (END_CATCH): Close the outermost scope.
4629 * completer.c (complete_line_internal): Add missing END_CATCH.
4630
4631 2017-10-04 Sergio Durigan Junior <sergiodj@redhat.com>
4632
4633 * NEWS (Changes since GDB 8.0): Add entry about new
4634 'set-cwd-on-gdbserver' feature.
4635 (New remote packets): Add entry for QSetWorkingDir.
4636 * common/common-inferior.h (set_inferior_cwd): New prototype.
4637 * infcmd.c (set_inferior_cwd): Remove "static".
4638 (show_cwd_command): Expand text to include remote debugging.
4639 * remote.c: Add PACKET_QSetWorkingDir.
4640 (remote_protocol_features) <QSetWorkingDir>: New entry for
4641 PACKET_QSetWorkingDir.
4642 (extended_remote_set_inferior_cwd): New function.
4643 (extended_remote_create_inferior): Call
4644 "extended_remote_set_inferior_cwd".
4645 (_initialize_remote): Call "add_packet_config_cmd" for
4646 QSetWorkingDir.
4647
4648 2017-10-04 Sergio Durigan Junior <sergiodj@redhat.com>
4649
4650 * NEWS (New commands): Mention "set/show cwd".
4651 * cli/cli-cmds.c (_initialize_cli_cmds): Mention "set cwd" on
4652 "cd" command's help text.
4653 * common/common-inferior.h (get_inferior_cwd): New prototype.
4654 * infcmd.c (inferior_cwd_scratch): New global variable.
4655 (set_inferior_cwd): New function.
4656 (get_inferior_cwd): Likewise.
4657 (set_cwd_command): Likewise.
4658 (show_cwd_command): Likewise.
4659 (_initialize_infcmd): Add "set/show cwd" commands.
4660 * inferior.h (class inferior) <cwd>: New field.
4661 * nat/fork-inferior.c: Include "gdb_tilde_expand.h".
4662 (fork_inferior): Change inferior's cwd before its execution.
4663 * windows-nat.c (windows_create_inferior): Pass inferior's cwd
4664 to CreateProcess.
4665
4666 2017-10-04 Sergio Durigan Junior <sergiodj@redhat.com>
4667
4668 * Makefile.in (SFILES): Add gdb_tilde_expand.c.
4669 (HFILES_NO_SRCDIR): Add gdb_tilde_expand.h.
4670 (COMMON_OBS): Add gdb_tilde_expand.o.
4671 * common/gdb_tilde_expand.c: New file.
4672 * common/gdb_tilde_expand.h: Likewise.
4673
4674 2017-10-03 Maciej W. Rozycki <macro@imgtec.com>
4675
4676 * gdbarch.sh (objfile): Remove duplicate declaration.
4677 * gdbarch.h: Regenerate.
4678
4679 2017-10-03 Tom Tromey <tom@tromey.com>
4680
4681 * utils.c (internal_vproblem): Use string_vprintf.
4682
4683 2017-10-03 Tom Tromey <tom@tromey.com>
4684
4685 * printcmd.c (info_symbol_command): Use std::string.
4686
4687 2017-10-03 Tom Tromey <tom@tromey.com>
4688
4689 * top.c (gdb_safe_append_history): Use std::string.
4690
4691 2017-10-03 Tom Tromey <tom@tromey.com>
4692
4693 * event-top.c (stdin_event_handler): Update.
4694 * main.c (captured_main_1): Update.
4695 * top.h (make_delete_ui_cleanup): Remove.
4696 (struct ui): Add constructor and destructor.
4697 (new_ui, delete_ui): Remove.
4698 * top.c (make_delete_ui_cleanup): Remove.
4699 (new_ui_command): Use std::unique_ptr.
4700 (delete_ui_cleanup): Remove.
4701 (ui::ui): Rename from new_ui. Update.
4702 (free_ui): Remove.
4703 (ui::~ui): Rename from delete_ui. Update.
4704
4705 2017-10-03 Tom Tromey <tom@tromey.com>
4706
4707 * symfile.c (load_progress): Use gdb::byte_vector.
4708
4709 2017-10-03 Tom Tromey <tom@tromey.com>
4710
4711 * mi/mi-main.c (mi_cmd_trace_frame_collected): Remove unused
4712 declaration.
4713 * printcmd.c (x_command): Remove unused declaration.
4714 * symfile.c (symbol_file_command): Remove unused declaration.
4715
4716 2017-10-03 Tom Tromey <tom@tromey.com>
4717
4718 * utils.c (internal_vproblem): Use std::string.
4719 (defaulted_query): Likewise.
4720
4721 2017-10-03 Tom Tromey <tom@tromey.com>
4722
4723 * guile/scm-ports.c (ioscm_with_output_to_port_worker): Update.
4724 * top.c (execute_command_to_string): Update.
4725 * utils.c (make_cleanup_restore_page_info): Remove.
4726 (do_restore_page_info_cleanup): Remove.
4727 (set_batch_flag_and_restore_page_info):
4728 New.
4729 (make_cleanup_restore_page_info): Remove.
4730 (set_batch_flag_and_make_cleanup_restore_page_info): Remove.
4731 (~set_batch_flag_and_restore_page_info): New
4732 (make_cleanup_restore_uinteger): Remove.
4733 (make_cleanup_restore_integer): Remove.
4734 (struct restore_integer_closure): Remove.
4735 (restore_integer): Remove.
4736 * utils.h (struct set_batch_flag_and_restore_page_info): New
4737 class.
4738 (set_batch_flag_and_make_cleanup_restore_page_info): Remove.
4739 (make_cleanup_restore_page_info): Remove.
4740 (make_cleanup_restore_uinteger) Remove.
4741 (make_cleanup_restore_integer) Remove.
4742
4743 2017-10-03 Tom Tromey <tom@tromey.com>
4744
4745 * record-full.h (record_full_gdb_operation_disable_set): Return
4746 scoped_restore_tmpl<int>.
4747 * infrun.c (adjust_pc_after_break): Update.
4748 (handle_signal_stop): Update.
4749 * record-full.c (record_full_gdb_operation_disable_set): Return
4750 scoped_restore_tmpl<int>.
4751 (record_full_wait_1, record_full_insert_breakpoint)
4752 (record_full_remove_breakpoint, record_full_save)
4753 (record_full_goto_insn): Update.
4754
4755 2017-10-02 Tom Tromey <tom@tromey.com>
4756
4757 PR rust/22236:
4758 * rust-lang.c (rust_val_print_str): New function.
4759 (val_print_struct): Call it.
4760 (rust_subscript): Preserve name of slice type.
4761
4762 2017-10-02 Tom Tromey <tom@tromey.com>
4763
4764 * rust-lang.c (rust_subscript): Handle slices in
4765 EVAL_AVOID_SIDE_EFFECTS case.
4766
4767 2017-10-02 Tom Tromey <tom@tromey.com>
4768
4769 * rust-lang.c (rust_slice_type_p): Recognize &str as a slice type.
4770
4771 2017-10-02 Tom Tromey <tom@tromey.com>
4772
4773 * rust-lang.h (rust_slice_type): Add "extern".
4774
4775 2017-10-02 Tom Tromey <tom@tromey.com>
4776 Pedro Alves <palves@redhat.com>
4777
4778 * ada-lang.h (ada_exc_info::operator<): Make const.
4779 (ada_exc_info::operator==): Make const.
4780 * ada-lang.c (ada_exc_info::operator<, ada_exc_info::operator==):
4781 Make const.
4782
4783 2017-09-29 Tom Tromey <tom@tromey.com>
4784
4785 * target.c (read_whatever_is_readable): Change type of "result".
4786 Update.
4787 (free_memory_read_result_vector): Remove.
4788 (read_memory_robust): Change return type. Update.
4789 * mi/mi-main.c (mi_cmd_data_read_memory_bytes): Update. Use
4790 bin2hex, std::string.
4791 * target.h (memory_read_result_s): Remove typedef.
4792 (free_memory_read_result_vector): Remove.
4793 (read_memory_robust): Return std::vector.
4794
4795 2017-09-29 Tom Tromey <tom@tromey.com>
4796
4797 * mi/mi-main.c (captured_mi_execute_command): Use scope_restore.
4798
4799 2017-09-29 Tom Tromey <tom@tromey.com>
4800
4801 * mi/mi-cmd-info.c (mi_cmd_info_ada_exceptions): Update.
4802 * ada-lang.h (struct ada_exc_info): Remove typedef. Declare
4803 operator< and operator==.
4804 (ada_exceptions_list): Return a std::vector.
4805 * ada-lang.c (ada_exc_info::operator<): Rename from
4806 compare_ada_exception_info.
4807 (ada_exc_info::operator==): New.
4808 (sort_remove_dups_ada_exceptions_list): Change type of
4809 "exceptions".
4810 (ada_add_standard_exceptions, ada_add_exceptions_from_frame)
4811 (ada_add_global_exceptions): Likewise.
4812 (ada_exceptions_list_1): Return a std::vector.
4813 (ada_exceptions_list): Likewise.
4814
4815 2017-09-29 Tom Tromey <tom@tromey.com>
4816
4817 * mi/mi-main.c (struct print_one_inferior_data) <inferiors>: Now a
4818 'std::set *'.
4819 (print_one_inferior): Update.
4820 (free_vector_of_ints): Remove.
4821 (list_available_thread_groups): Change "ids" to std::set.
4822 (mi_cmd_list_thread_groups): Update.
4823 (struct collect_cores_data) <core>: Now a std::set.
4824 (collect_cores): Update.
4825 (unique): Remove.
4826 (print_one_inferior): Update.
4827
4828 2017-09-29 Tom Tromey <tom@tromey.com>
4829
4830 * mi/mi-main.c (mi_execute_cli_command): Use std::string.
4831 (mi_execute_async_cli_command): Likewise.
4832 (mi_cmd_trace_frame_collected): Use field_fmt.
4833
4834 2017-09-29 Tom Tromey <tom@tromey.com>
4835
4836 * mi/mi-main.c (mi_cmd_data_write_memory_bytes): Use
4837 gdb::byte_vector.
4838
4839 2017-09-29 Tom Tromey <tom@tromey.com>
4840
4841 * mi/mi-parse.c (mi_parse): Remove unused declaration.
4842
4843 2017-09-29 Tom Tromey <tom@tromey.com>
4844
4845 * mi/mi-cmd-disas.c (mi_cmd_disassemble): Don't copy "oarg".
4846
4847 2017-09-29 Tom Tromey <tom@tromey.com>
4848
4849 * varobj.h (varobj_gen_name): Return std::string.
4850 * varobj.c (varobj_gen_name): Return std::string.
4851 * mi/mi-cmd-var.c (mi_cmd_var_create): Use std::string.
4852 (mi_cmd_var_delete): Don't copy "name".
4853
4854 2017-09-29 Tom Tromey <tom@tromey.com>
4855
4856 * mi/mi-cmd-break.c (mi_argv_to_format): Return std::string.
4857 (mi_cmd_break_insert_1): Update.
4858
4859 2017-09-29 Tom Tromey <tom@tromey.com>
4860
4861 * target.h (make_scoped_defer_target_commit_resume): Update.
4862 * target.c (make_scoped_defer_target_commit_resume): Rename from
4863 make_cleanup_defer_target_commit_resume. Return a
4864 scoped_restore.
4865 * infrun.c (proceed): Use make_scoped_defer_target_commit_resume.
4866
4867 2017-09-29 Tom Tromey <tom@tromey.com>
4868
4869 * main.c (captured_main_1): Remove unused declaration.
4870 * spu-multiarch.c (parse_spufs_run): Remove unused declaration.
4871
4872 2017-09-29 Tom Tromey <tom@tromey.com>
4873
4874 * symtab.c (search_symbols): Remove unused outer cleanup.
4875 (make_source_files_completion_list): Remove unused declaration.
4876
4877 2017-09-29 Tom Tromey <tom@tromey.com>
4878
4879 * mt-tdep.c (mt_push_dummy_call): Use gdb::byte_vector.
4880
4881 2017-09-29 Tom Tromey <tom@tromey.com>
4882
4883 * xstormy16-tdep.c (xstormy16_push_dummy_call): Use
4884 gdb::byte_vector.
4885
4886 2017-09-29 Tom Tromey <tom@tromey.com>
4887
4888 * complaints.c (vcomplaint): Use std::string.
4889
4890 2017-09-29 Tom Tromey <tom@tromey.com>
4891
4892 * tracepoint.c (trace_variable_command): Use std::string.
4893 (encode_actions_1): Remove unused declarations.
4894 (create_tsv_from_upload): Use std::string.
4895
4896 2017-09-29 Tom Tromey <tom@tromey.com>
4897
4898 * cp-support.c (gdb_demangle): Use std::string.
4899
4900 2017-09-29 Tom Tromey <tom@tromey.com>
4901
4902 * stack.c (parse_frame_specification): Use std::string
4903 (info_frame_command): Use gdb::unique_xmalloc_ptr.
4904
4905 2017-09-29 Tom Tromey <tom@tromey.com>
4906
4907 * tilegx-tdep.c (tilegx_push_dummy_call): Use gdb::byte_vector.
4908
4909 2017-09-29 Tom Tromey <tom@tromey.com>
4910
4911 * utils.c (vfprintf_maybe_filtered): Use std::string.
4912 (vfprintf_unfiltered): Likewise.
4913
4914 2017-09-29 Tom Tromey <tom@tromey.com>
4915
4916 * event-top.c (top_level_prompt): Return std::string.
4917 (display_gdb_prompt): Update.
4918
4919 2017-09-29 Tom Tromey <tom@tromey.com>
4920
4921 * unittests/common-utils-selftests.c (format): New function.
4922 (string_vprintf_tests): New function.
4923 (_initialize_common_utils_selftests): Register new tests.
4924 * common/common-utils.c (string_vprintf): New function.
4925 * common/common-utils.h (string_vprintf): Declare.
4926
4927 2017-09-29 Pedro Alves <palves@redhat.com>
4928
4929 * common/rsp-low.c (unpack_varlen_hex): Constify.
4930 * common/rsp-low.h (unpack_varlen_hex): Constify.
4931 * linux-nat.c (linux_child_static_tracepoint_markers_by_strid):
4932 Constify.
4933 * remote.c (remote_set_permissions, read_ptid)
4934 (remote_current_thread, remote_get_threads_with_qthreadinfo)
4935 (remote_static_tracepoint_marker_at)
4936 (remote_static_tracepoint_markers_by_strid)
4937 (stop_reply_extract_thread, remote_parse_stop_reply): Constify.
4938 * tracepoint.c (parse_trace_status, parse_tracepoint_status)
4939 (parse_tracepoint_definition, parse_tsv_definition)
4940 (parse_static_tracepoint_marker_definition): Constify.
4941 * tracepoint.h (parse_static_tracepoint_marker_definition)
4942 (parse_trace_status, parse_tracepoint_status)
4943 (parse_tracepoint_definition, parse_tsv_definition): Constify.
4944
4945 2017-09-29 Pedro Alves <palves@redhat.com>
4946
4947 * remote.c (target_buf, target_buf_size): Delete.
4948 (remote_get_noisy_reply): Remove buf_p and sizeof_buf parameters.
4949 Use the connection's packet buffer instead.
4950 All callers adjusted.
4951 (_initialize_remote): Remove references to target_buf and
4952 target_buf_size.
4953
4954 2017-09-28 Pedro Alves <palves@redhat.com>
4955
4956 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
4957 unittests/common-utils-selftests.c.
4958 (SUBDIR_UNITTESTS_OBS): Add common-utils-selftests.o.
4959 (COMMON_OBS): Remove utils-selftests.o.
4960 * utils-selftests.c: Move to ...
4961 * unittests/common-utils-selftests.c: ... here and rename self
4962 test to "string_printf".
4963
4964 2017-09-28 Alexander Shaposhnikov <alexander.v.shaposhnikov@gmail.com> (tiny patch)
4965
4966 * dwarf2read.c (open_and_init_dwp_file): Protect against dwp_file
4967 having NULL cus or tus.
4968
4969 2017-09-27 Ulrich Weigand <uweigand@de.ibm.com>
4970
4971 * arm-tdep.c: (convert_from_extended): Remove.
4972 (convert_to_extended): Likewise.
4973 (arm_extract_return_value): Use convert_typed_floating.
4974 (arm_store_return_value): Likewise.
4975
4976 * sh-tdep.h (struct gdbarch_tdep): Add sh_littlebyte_bigword_type.
4977 * sh-tdep.c: Do not include "floatformat.h".
4978 (sh_littlebyte_bigword_type): New function.
4979 (sh_register_convert_to_virtual): Use convert_typed_floating.
4980 (sh_register_convert_to_raw): Likewise.
4981 * sh64-tdep.c: (struct gdbarch_tdep): Add sh_littlebyte_bigword_type.
4982 (sh64_littlebyte_bigword_type): New function.
4983 (sh64_extract_return_value): Use convert_typed_floating.
4984 (sh64_register_convert_to_virtual): Likewise.
4985 (sh64_register_convert_to_raw): Likewise.
4986
4987 2017-09-27 Ulrich Weigand <uweigand@de.ibm.com>
4988
4989 * doublest.h (floatformat_from_type): Move to gdbtypes.h.
4990 * doublest.c (floatformat_from_type): Move to gdbtypes.c.
4991
4992 * gdbtypes.h (union type_specific): Make field floatformat hold
4993 just a single struct floatformat, not an array.
4994 (floatformat_from_type): Move here.
4995 * gdbtypes.c (floatformat_from_type): Move here. Update to
4996 changed TYPE_FLOATFORMAT definition.
4997 (verify_floatformat): Update to changed TYPE_FLOATFORMAT.
4998 (recursive_dump_type): Likewise.
4999 (init_float_type): Install correct floatformat for byte order.
5000 (arch_float_type): Likewise.
5001
5002 2017-09-27 Ulrich Weigand <uweigand@de.ibm.com>
5003
5004 * gdbtypes.c (init_type): Change incoming argument from
5005 length-in-bytes to length-in-bits. Assert length is a
5006 multiple of TARGET_CHAR_BITS.
5007 (arch_type, arch_flags_type): Likewise.
5008 (init_integer_type): Update call to init_type.
5009 (init_character_type): Likewise.
5010 (init_boolean_type): Likewise.
5011 (init_float_type): Likewise.
5012 (init_decfloat_type): Likewise.
5013 (init_complex_type): Likewise.
5014 (init_pointer_type): Likewise.
5015 (objfile_type): Likewise.
5016 (arch_integer_type): Update call to arch_type.
5017 (arch_character_type): Likewise.
5018 (arch_boolean_type): Likewise.
5019 (arch_float_type): Likewise.
5020 (arch_decfloat_type): Likewise.
5021 (arch_complex_type): Likewise.
5022 (arch_pointer_type): Likewise.
5023 (gdbtypes_post_init): Likewise.
5024
5025 * dwarf2read.c (dwarf2_init_float_type): Update call to init_type.
5026 (read_base_type): Likewise.
5027 * mdebugread.c (basic_type): Likewise.
5028 * stabsread.c (dbx_init_float_type): Likewise.
5029 (rs6000_builtin_type): Likewise.
5030 (read_range_type): Likewise. Also, fix call to init_integer_type
5031 with erroneous length argument.
5032
5033 * ada-lang.c (ada_language_arch_info): Update call to arch_type.
5034 * d-lang.c (build_d_types): Likewise.
5035 * f-lang.c (build_fortran_types): Likewise.
5036 * go-lang.c (build_go_types): Likewise.
5037 * opencl-lang.c (build_opencl_types): Likewise.
5038 * jit.c (finalize_symtab): Likewise.
5039 * gnu-v3-abi.c (build_gdb_vtable_type): Likewise.
5040 (build_std_type_info_type): Likewise.
5041 * target-descriptions.c (tdesc_gdb_type): Likewise. Also,
5042 update call to arch_flags_type.
5043
5044 * linux-tdep.c (linux_get_siginfo_type_with_fields): Update call to
5045 arch_type.
5046 * fbsd-tdep.c (fbsd_get_siginfo_type): Likewise.
5047 * windows-tdep.c (windows_get_tlb_type): Likewise.
5048
5049 * avr-tdep.c (avr_gdbarch_init): Update call to arch_type.
5050 * ft32-tdep.c (ft32_gdbarch_init): Likewise.
5051 * m32c-tdep.c (make_types): Likewise.
5052 * rl78-tdep.c (rl78_gdbarch_init): Likewise.
5053 (rl78_psw_type): Update call to arch_flags_type.
5054 * m68k-tdep.c (m68k_ps_type): Update call to arch_flags_type.
5055 * rx-tdep.c (rx_psw_type): Likewise.
5056 (rx_fpsw_type): Likewise.
5057 * sparc-tdep.c (sparc_psr_type): Likewise.
5058 (sparc_fsr_type): Likewise.
5059 * sparc64-tdep.c (sparc64_pstate_type): Likewise.
5060 (sparc64_ccr_type): Likewise.
5061 (sparc64_fsr_type): Likewise.
5062 (sparc64_fprs_type): Likewise.
5063
5064 2017-09-27 Tom Tromey <tom@tromey.com>
5065
5066 * findcmd.c (find_command): Constify.
5067
5068 2017-09-27 Tom Tromey <tom@tromey.com>
5069
5070 * ada-tasks.c (task_command_1, task_command): Constify.
5071
5072 2017-09-27 Tom Tromey <tom@tromey.com>
5073
5074 * symtab.c (maintenance_print_symbol_cache)
5075 (maintenance_flush_symbol_cache)
5076 (maintenance_print_symbol_cache_statistics): Constify.
5077
5078 2017-09-27 Tom Tromey <tom@tromey.com>
5079
5080 * inferior.c (detach_inferior_command, kill_inferior_command)
5081 (inferior_command): Constify.
5082
5083 2017-09-27 Tom Tromey <tom@tromey.com>
5084
5085 * regcache.c (regcache_print, maintenance_print_registers)
5086 (maintenance_print_raw_registers)
5087 (maintenance_print_cooked_registers)
5088 (maintenance_print_register_groups)
5089 (maintenance_print_remote_registers): Constify.
5090
5091 2017-09-27 Tom Tromey <tom@tromey.com>
5092
5093 * printcmd.c (map_display_numbers, undisplay_command)
5094 (enable_disable_display_command, enable_display_command)
5095 (disable_display_command): Constify.
5096
5097 2017-09-27 Tom Tromey <tom@tromey.com>
5098
5099 * breakpoint.h (delete_command): Don't declare.
5100 * breakpoint.c (delete_command, enable_once_command)
5101 (enable_count_command, enable_delete_command, breakpoint_1)
5102 (maintenance_info_breakpoints, stopin_command, stopat_command)
5103 (delete_command, delete_trace_command, save_breakpoints)
5104 (save_breakpoints_command, save_tracepoints_command): Constify.
5105
5106 2017-09-27 Tom Tromey <tom@tromey.com>
5107
5108 * macrocmd.c (macro_expand_command, macro_expand_once_command)
5109 (skip_ws, extract_identifier, macro_define_command)
5110 (macro_undef_command, macro_list_command): Constify.
5111
5112 2017-09-27 Tom Tromey <tom@tromey.com>
5113
5114 * infcmd.c (environment_info, set_environment_command)
5115 (unset_environment_command, path_info, info_proc_cmd_1)
5116 (info_proc_cmd_mappings, info_proc_cmd_stat)
5117 (info_proc_cmd_status, info_proc_cmd_cwd, info_proc_cmd_cmdline)
5118 (info_proc_cmd_exe, info_proc_cmd_all): Constify.
5119
5120 2017-09-27 Tom Tromey <tom@tromey.com>
5121
5122 * i386-tdep.c (i386_mpx_info_bounds, i386_mpx_set_bounds):
5123 Constify.
5124
5125 2017-09-27 Tom Tromey <tom@tromey.com>
5126
5127 * symfile-mem.c (add_symbol_file_from_memory_command): Constify.
5128
5129 2017-09-27 Tom Tromey <tom@tromey.com>
5130
5131 * demangle.c (demangle_command): Constify.
5132
5133 2017-09-27 Tom Tromey <tom@tromey.com>
5134
5135 * progspace.c (maintenance_info_program_spaces_command):
5136 Constify.
5137
5138 2017-09-27 Tom Tromey <tom@tromey.com>
5139
5140 * compile/compile.c (check_raw_argument, compile_file_command)
5141 (compile_code_command, compile_print_command): Constify.
5142
5143 2017-09-27 Tom Tromey <tom@tromey.com>
5144
5145 * reggroups.c (maintenance_print_reggroups): Constify.
5146
5147 2017-09-27 Tom Tromey <tom@tromey.com>
5148
5149 * dwarf2read.c (save_gdb_index_command): Constify.
5150
5151 2017-09-27 Tom Tromey <tom@tromey.com>
5152
5153 * stap-probe.c (info_probes_stap_command): Constify.
5154
5155 2017-09-27 Tom Tromey <tom@tromey.com>
5156
5157 * fork-child.c (unset_exec_wrapper_command): Constify.
5158
5159 2017-09-27 Tom Tromey <tom@tromey.com>
5160
5161 * btrace.c (get_uint, get_context_size, no_chunk)
5162 (maint_btrace_packet_history_cmd)
5163 (maint_btrace_clear_packet_history_cmd, maint_btrace_clear_cmd)
5164 (maint_info_btrace_cmd): Constify.
5165
5166 2017-09-27 Tom Tromey <tom@tromey.com>
5167
5168 * reverse.c (delete_bookmark_command): Constify.
5169
5170 2017-09-27 Tom Tromey <tom@tromey.com>
5171
5172 * remote.c (set_memory_packet_size)
5173 (set_memory_write_packet_size, show_memory_write_packet_size)
5174 (set_memory_read_packet_size, show_memory_read_packet_size)
5175 (compare_sections_command, packet_command, remote_put_command)
5176 (remote_get_command, remote_delete_command): Constify.
5177
5178 2017-09-27 Tom Tromey <tom@tromey.com>
5179
5180 * mips-tdep.c (show_mipsfpu_command, set_mipsfpu_single_command)
5181 (set_mipsfpu_double_command, set_mipsfpu_none_command)
5182 (set_mipsfpu_auto_command): Constify.
5183
5184 2017-09-27 Tom Tromey <tom@tromey.com>
5185
5186 * cli/cli-cmds.h (cd_command): Constify.
5187 * cli/cli-cmds.c (cd_command): Constify.
5188
5189 2017-09-27 Tom Tromey <tom@tromey.com>
5190
5191 * thread.c (thread_name_command, thread_find_command): Constify.
5192
5193 2017-09-27 Tom Tromey <tom@tromey.com>
5194
5195 * probe.c (enable_probes_command, disable_probes_command):
5196 Constify.
5197
5198 2017-09-27 Tom Tromey <tom@tromey.com>
5199
5200 * symfile.c (symbol_file_command): Constify.
5201 * gdbcore.h (deprecated_file_changed_hook): Constify.
5202 * exec.c (deprecated_file_changed_hook, exec_file_command)
5203 (file_command): Constify.
5204 * defs.h (symbol_file_command): Constify.
5205
5206 2017-09-27 Tom Tromey <tom@tromey.com>
5207
5208 * remote-fileio.c (set_system_call_allowed)
5209 (show_system_call_allowed): Constify.
5210
5211 2017-09-27 Tom Tromey <tom@tromey.com>
5212
5213 * tracepoint.c (delete_trace_variable_command)
5214 (tfind_end_command, tfind_start_command, tfind_pc_command)
5215 (tfind_tracepoint_command, tfind_line_command)
5216 (tfind_range_command, tfind_outside_command): Constify.
5217
5218 2017-09-27 Tom Tromey <tom@tromey.com>
5219
5220 * ax-gdb.c (maint_agent_printf_command, agent_command)
5221 (agent_eval_command): Constify.
5222
5223 2017-09-27 Tom Tromey <tom@tromey.com>
5224
5225 * tracepoint.c (info_scope_command): Constify.
5226 * python/python.c (gdbpy_decode_line): Constify.
5227 * python/py-breakpoint.c (bppy_init): Constify.
5228 * mi/mi-cmd-break.c (mi_cmd_break_insert_1): Constify.
5229 * location.h: (new_linespec_location)
5230 (string_to_event_location_basic, string_to_event_location):
5231 Constify.
5232 * location.c (new_linespec_location)
5233 (string_to_event_location_basic, string_to_event_location):
5234 Constify.
5235 * linespec.h (decode_line_with_current_source)
5236 (decode_line_with_last_displayed, linespec_lex_to_end): Constify.
5237 * linespec.c (linespec_lex_to_end)
5238 (decode_line_with_current_source)
5239 (decode_line_with_last_displayed): Constify.
5240 * guile/scm-breakpoint.c (gdbscm_register_breakpoint_x):
5241 Constify.
5242 * cli/cli-cmds.c (edit_command, list_command): Constify.
5243 * breakpoint.h (until_break_command, watch_command_wrapper)
5244 (awatch_command_wrapper, rwatch_command_wrapper)
5245 (init_ada_exception_breakpoint): Constify.
5246 * breakpoint.c (break_command_1, dprintf_command)
5247 (break_range_command, watch_command_wrapper)
5248 (rwatch_command_wrapper, awatch_command_wrapper)
5249 (until_break_command, init_ada_exception_breakpoint)
5250 (strace_marker_create_sals_from_location, trace_command)
5251 (ftrace_command, strace_command, struct tracepoint): Constify.
5252 * ax-gdb.c (agent_command_1): Constify.
5253 * ada-lang.c (ada_exception_sal): Constify.
5254
5255 2017-09-27 Tom Tromey <tom@tromey.com>
5256
5257 * record.c (cmd_record_delete, cmd_record_stop, cmd_record_save)
5258 (cmd_record_goto_begin, cmd_record_goto_end, get_insn_number)
5259 (get_context_size, no_chunk, get_insn_history_modifiers)
5260 (cmd_record_insn_history, get_call_history_modifiers)
5261 (cmd_record_call_history): Constify.
5262
5263 2017-09-27 Tom Tromey <tom@tromey.com>
5264
5265 * source.c (show_substitute_path_command)
5266 (unset_substitute_path_command, set_substitute_path_command):
5267 Constify.
5268
5269 2017-09-27 Tom Tromey <tom@tromey.com>
5270
5271 * typeprint.c (maintenance_print_type): Constify.
5272 * maint.c (maintenance_dump_me, maintenance_demangle)
5273 (maintenance_time_display, maintenance_info_sections)
5274 (maintenance_print_statistics, maintenance_deprecate)
5275 (maintenance_undeprecate): Constify.
5276 (maintenance_do_deprecate): Constify. Use std::string.
5277 (maintenance_selftest): Constify.
5278 * gdbtypes.h (maintenance_print_type): Constify.
5279
5280 2017-09-27 Tom Tromey <tom@tromey.com>
5281
5282 * hppa-tdep.c (unwind_command): Constify.
5283
5284 2017-09-27 Tom Tromey <tom@tromey.com>
5285
5286 * target-descriptions.c (unset_tdesc_filename_cmd)
5287 (maint_print_c_tdesc_cmd, maintenance_check_xml_descriptions):
5288 Constify.
5289
5290 2017-09-27 Tom Tromey <tom@tromey.com>
5291
5292 * dummy-frame.c (maintenance_print_dummy_frames): Constify.
5293
5294 2017-09-27 Tom Tromey <tom@tromey.com>
5295
5296 * tui/tui.c (tui_enable_command, tui_disable_command): Constify.
5297
5298 2017-09-27 Tom Tromey <tom@tromey.com>
5299
5300 * tui/tui-regs.c (tui_reg_command): Constify.
5301
5302 2017-09-27 Tom Tromey <tom@tromey.com>
5303
5304 * skip.c (skip_file_command, skip_function_command)
5305 (skip_enable_command, skip_disable_command, skip_delete_command):
5306 Constify.
5307
5308 2017-09-27 Tom Tromey <tom@tromey.com>
5309
5310 * record-btrace.c (cmd_record_btrace_bts_start)
5311 (cmd_record_btrace_pt_start): Constify.
5312
5313 2017-09-27 Tom Tromey <tom@tromey.com>
5314
5315 * symmisc.c (maintenance_print_symbols)
5316 (maintenance_print_msymbols, maintenance_print_objfiles)
5317 (maintenance_info_symtabs, maintenance_check_symtabs)
5318 (maintenance_expand_symtabs, maintenance_info_line_tables):
5319 Constify.
5320
5321 2017-09-27 Tom Tromey <tom@tromey.com>
5322
5323 * top.c (new_ui_command): Constify.
5324
5325 2017-09-27 Tom Tromey <tom@tromey.com>
5326
5327 * symfile.c (add_symbol_file_command)
5328 (remove_symbol_file_command, list_overlays_command)
5329 (map_overlay_command, unmap_overlay_command)
5330 (overlay_auto_command, overlay_manual_command)
5331 (overlay_off_command, overlay_load_command): Constify.
5332
5333 2017-09-27 Tom Tromey <tom@tromey.com>
5334
5335 * spu-tdep.c (info_spu_event_command, info_spu_signal_command)
5336 (info_spu_mailbox_command, info_spu_dma_command)
5337 (info_spu_proxydma_command): Constify.
5338
5339 2017-09-27 Tom Tromey <tom@tromey.com>
5340
5341 * cli/cli-logging.c (set_logging_on, set_logging_off): Constify.
5342
5343 2017-09-27 Tom Tromey <tom@tromey.com>
5344
5345 * cli/cli-script.c (user_defined_command): Constify.
5346
5347 2017-09-27 Tom Tromey <tom@tromey.com>
5348
5349 * cli/cli-dump.c (dump_memory_command, dump_value_command)
5350 (dump_srec_memory, dump_srec_value, dump_ihex_memory)
5351 (dump_ihex_value, dump_verilog_memory, dump_verilog_value)
5352 (dump_tekhex_memory, dump_tekhex_value, dump_binary_memory)
5353 (dump_binary_value, append_binary_memory, append_binary_value):
5354 Constify.
5355 (struct dump_context) <func>: Constify.
5356 (add_dump_command): Update.
5357
5358 2017-09-27 Tom Tromey <tom@tromey.com>
5359
5360 * cli/cli-cmds.c (show_version, show_configuration)
5361 (source_command, show_user): Constify.
5362
5363 2017-09-27 Tom Tromey <tom@tromey.com>
5364
5365 * target.c (maintenance_print_target_stack): Constify.
5366
5367 2017-09-27 Tom Tromey <tom@tromey.com>
5368
5369 * interps.c (interpreter_exec_cmd): Constify.
5370
5371 2017-09-27 Tom Tromey <tom@tromey.com>
5372
5373 * record-full.c (cmd_record_full_restore): Constify.
5374
5375 2017-09-27 Tom Tromey <tom@tromey.com>
5376
5377 * memattr.c (enable_mem_command, disable_mem_command)
5378 (delete_mem_command): Constify.
5379
5380 2017-09-27 Tom Tromey <tom@tromey.com>
5381
5382 * value.c (show_convenience): Constify.
5383
5384 2017-09-27 Tom Tromey <tom@tromey.com>
5385
5386 * gdbcore.h (core_file_command): Update.
5387 * corefile.c (core_file_command): Constify.
5388
5389 2017-09-27 Tom Tromey <tom@tromey.com>
5390
5391 * user-regs.c (maintenance_print_user_registers): Constify.
5392
5393 2017-09-27 Tom Tromey <tom@tromey.com>
5394
5395 * cp-namespace.c (maintenance_cplus_namespace): Constify.
5396
5397 2017-09-27 Tom Tromey <tom@tromey.com>
5398
5399 * cp-support.c (first_component_command): Constify.
5400
5401 2017-09-27 Tom Tromey <tom@tromey.com>
5402
5403 * psymtab.c (maintenance_print_psymbols)
5404 (maintenance_info_psymtabs, maintenance_check_psymtabs):
5405 Constify.
5406
5407 2017-09-27 Tom Tromey <tom@tromey.com>
5408
5409 * windows-tdep.c (display_tib): Constify.
5410
5411 2017-09-27 Tom Tromey <tom@tromey.com>
5412
5413 * linux-fork.c (delete_checkpoint_command)
5414 (detach_checkpoint_command): Constify.
5415
5416 2017-09-27 Tom Tromey <tom@tromey.com>
5417
5418 * cp-abi.c (set_cp_abi_cmd, show_cp_abi_cmd): Constify.
5419
5420 2017-09-27 Tom Tromey <tom@tromey.com>
5421
5422 * arc-tdep.c (dump_arc_instruction_command): Constify.
5423
5424 2017-09-27 Tom Tromey <tom@tromey.com>
5425
5426 * valprint.c (set_radix, show_radix): Constify.
5427
5428 2017-09-27 Tom Tromey <tom@tromey.com>
5429
5430 * dtrace-probe.c (info_probes_dtrace_command): Constify.
5431
5432 2017-09-27 Tom Tromey <tom@tromey.com>
5433
5434 * command.h (not_just_help_class_command): Update.
5435 * cli/cli-decode.h (not_just_help_class_command): Update.
5436 * cli/cli-decode.c (not_just_help_class_command): Constify.
5437
5438 2017-09-27 Tom Tromey <tom@tromey.com>
5439
5440 * gdb_bfd.c (maintenance_info_bfds): Constify.
5441
5442 2017-09-27 Tom Tromey <tom@tromey.com>
5443
5444 * cli/cli-decode.c (add_cmd, set_cmd_cfunc): New function
5445 overloads.
5446 (do_add_cmd): Rename from add_cmd. Don't call set_cmd_cfunc.
5447 (do_const_cfunc): New function.
5448 (cmd_cfunc_eq): New overload.
5449 (cli_user_command_p): Check do_const_cfunc.
5450 * cli/cli-decode.h (struct cmd_list_element) <function>: New field
5451 const_cfunc.
5452 * command.h (add_cmd): Add const overload and no-function
5453 overload.
5454 (set_cmd_cfunc): Add const overload.
5455 (cmd_const_cfunc_ftype): Declare.
5456 (cmd_cfunc_eq): Add const overload.
5457 * breakpoint.c, cli-cmds.c, cli-dump.c, guile/scm-cmd.c,
5458 python/py-cmd.c, target.c, tracepoint.c: Use no-function add_cmd
5459 overload.
5460
5461 2017-09-27 Tom Tromey <tom@tromey.com>
5462
5463 * macroexp.c (get_next_token_for_substitution): New function.
5464 (substitute_args): Call it. Check for __VA_OPT__.
5465
5466 2017-09-26 Walfred Tedeschi <walfred.tedeschi@intel.com>
5467 Pedro Alves <palves@redhat.com>
5468
5469 * dwarf2read.c (dwarf2_cu): Remove field producer_is_icc and add
5470 producer_is_icc_lt_14.
5471 (producer_is_icc_lt_14): New function.
5472 (check_producer): Add code for checking version of ICC.
5473 (producer_is_icc): Move to producer.c.
5474 (read_structure_type): Restrict ICC workaround to ICC<14.
5475 * producer.c: Include selftest.h.
5476 (producer_is_icc, producer_parsing_tests, _initialize_producer):
5477 New functions.
5478 * producer.h (producer_is_icc): New declaration.
5479
5480 2017-09-26 Walfred Tedeschi <walfred.tedeschi@intel.com>
5481
5482 * Makefile.in (SFILES): Add producer.c.
5483 (COMMON_OBS): Add producer.o
5484 * amd64-tdep.c (producer.h): Add new include.
5485 * dwarf2read.c (producer.h): Add new include.
5486 * producer.c: New file.
5487 * producer.h: New file.
5488 * utils.c (producer_is_gcc, producer_is_gcc_ge_4): Move to
5489 producer.c.
5490 * utils.h (producer_is_gcc, producer_is_gcc_ge_4): Move to
5491 producer.h.
5492
5493 2017-09-26 Matthias Klose <doko@ubuntu.com>
5494
5495 * configure.ac: Search ncursesw before ncurses.
5496 Check ncursesw/ncurses.h before ncurses/ncurses.h.
5497 * gdb_curses.h: Include <ncursesw/ncurses.h>
5498 * config.in, configure: Regenerate.
5499
5500 2017-09-26 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
5501
5502 PR gdb/22185
5503 * configure.host <*-*-solaris2.[01], *-*-solaris2.[2-9]*>: Mark as
5504 obsolete.
5505 Use gdb_host sol2 for i[34567]86-*-solaris2*, x86_64-*-solaris2*.
5506 Remove i386sol2 support.
5507 * configure.nat <i386sol2>: Remove.
5508 <sol2-64>: Fold into ...
5509 <sol2>: ... this.
5510 Move common settings to default section.
5511 Add sol-thread.o.
5512 * configure.tgt <i[34567]86-*-solaris2.1[0-9]*,
5513 x86_64-*-solaris2.1[0-9]*>: Rename to ...
5514 <i[34567]86-*-solaris2*, x86_64-*-solaris2*>: ... this.
5515 <i[34567]86-*-solaris*>: Remove.
5516 <sparc-*-solaris2.[0-6], sparc-*-solaris2.[0-6].*>: Remove.
5517
5518 * configure.ac: Remove wctype in libw check.
5519 (_MSE_INT_H): Don't define on Solaris 7-9.
5520 <solaris*>: Remove libthread_db.so.1 check.
5521 * configure: Regenerate.
5522 * config.in: Regenerate.
5523
5524 * proc-service.c: Remove PROC_SERVICE_IS_OLD handling.
5525 (gdb_ps_prochandle_t, gdb_ps_read_buf_t, gdb_ps_write_buf_t)
5526 (gdb_ps_size_t): Remove.
5527 Use base types in users.
5528 * sol-thread.c: Likewise, also for gdb_ps_addr_t.
5529
5530 * NEWS (Changes since GDB 8.0): Document Solaris 2.0-9 removal.
5531
5532 2017-09-26 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
5533
5534 PR build/22206
5535 * sparc64-tdep.c (adi_tag_fd): Print pid as long.
5536 (adi_is_addr_mapped): Likewise.
5537 (PSR_ICC): Don't redefine.
5538 (PSR_IMPL): Likewise.
5539
5540 2017-09-25 Tom Tromey <tom@tromey.com>
5541
5542 * regcache.c (regcache::dump): Use string_printf.
5543
5544 2017-09-25 Tom Tromey <tom@tromey.com>
5545
5546 * regcache.c (class regcache_invalidator): New.
5547 (struct register_to_invalidate): Remove.
5548 (make_cleanup_regcache_invalidate): Remove.
5549 (regcache::raw_write): Use regcache_invalidator.
5550
5551 2017-09-25 Tom Tromey <tom@tromey.com>
5552
5553 * spu-tdep.c (spu2ppu_sniffer): Update.
5554 * regcache.h (make_cleanup_regcache_xfree): Don't declare.
5555 * regcache.c (do_regcache_xfree, make_cleanup_regcache_xfree):
5556 Remove.
5557 * ppc-linux-tdep.c (ppu2spu_sniffer): Update.
5558 * mi/mi-main.c (mi_cmd_data_list_changed_registers): Update.
5559 * frame.h (frame_save_as_regcache): Return std::unique_ptr.
5560 * frame.c (frame_save_as_regcache): Return std::unique_ptr.
5561 (frame_pop): Update.
5562
5563 2017-09-25 Tom Tromey <tom@tromey.com>
5564
5565 * spu-tdep.c (spu2ppu_dealloc_cache): Use delete.
5566 * regcache.h (regcache_xfree): Don't declare.
5567 * regcache.c (regcache_xfree): Remove.
5568 (do_regcache_xfree): Use delete.
5569 * ppc-linux-tdep.c (ppu2spu_dealloc_cache): Use delete.
5570 * linux-fork.c (free_fork): Use delete.
5571 (fork_save_infrun_state): Likewise.
5572 * jit.c (jit_dealloc_cache): Use delete.
5573 * infrun.c (discard_infcall_suspend_state): Use delete.
5574
5575 2017-09-25 Tom Tromey <tom@tromey.com>
5576
5577 * regcache.h (regcache_xmalloc): Don't declare.
5578 (regcache_raw_set_cached_value): Update comment.
5579 * regcache.c (regcache_xmalloc): Remove.
5580 * ppc-linux-tdep.c (ppu2spu_sniffer): Use new.
5581 * jit.c (jit_frame_sniffer): Use new.
5582 * frame.c (frame_save_as_regcache): Use new.
5583
5584 2017-09-25 Andreas Arnez <arnez@linux.vnet.ibm.com>
5585
5586 * NEWS: Advertise support for guarded-storage registers on IBM z.
5587
5588 2017-09-25 Andreas Arnez <arnez@linux.vnet.ibm.com>
5589
5590 * s390-linux-nat.c (have_regset_gs): New static variable.
5591 (s390_linux_fetch_inferior_registers): Handle guarded-storage
5592 control block and guarded-storage broadcast control regsets.
5593 (s390_read_description): Detect whether the target has
5594 guarded-storage support, return appropriate tdesc.
5595 * s390-linux-tdep.c (features/s390-gs-linux64.c): New include.
5596 (features/s390x-gs-linux64.c): Likewise.
5597 (struct gdbarch_tdep) <have_gs>: New field.
5598 (s390_regmap_gs, s390_regmap_gsbc, s390_gs_regset)
5599 (s390_gsbc_regset): New variables.
5600 (s390_iterate_over_regset_sections): Iterate over s390_gs_regset
5601 and s390_gsbc_regset, if applicable.
5602 (s390_core_read_description): Check whether core file was from a
5603 target with guarded-storage support; include appropriate regsets.
5604 (s390_gdbarch_init): Add registers for guarded-storage support.
5605 (_initialize_s390_tdep): Initialize new target descriptions that
5606 include registers for guarded-storage support.
5607 * s390-linux-tdep.h (HWCAP_S390_GS, S390_GSD_REGNUM)
5608 (S390_GSSM_REGNUM, S390_GSEPLA_REGNUM)
5609 (S390_BC_GSD_REGNUM, S390_BC_GSSM_REGNUM): New defines.
5610 (S390_NUM_REGS): Adjust macro definition.
5611 (s390_gs_regset, s390_gsbc_regset, tdesc_s390_gs_linux64)
5612 (tdesc_s390x_gs_linux64): New declarations.
5613
5614 2017-09-25 Andreas Arnez <arnez@linux.vnet.ibm.com>
5615
5616 * features/s390-gs-linux64.xml: New file.
5617 * features/s390-gs.xml: New file.
5618 * features/s390-gsbc.xml: New file.
5619 * features/s390x-gs-linux64.xml: New file.
5620 * features/Makefile (WHICH): Add s390-gs-linux64 and
5621 s390x-gs-linux64.
5622 (s390-gs-linux64-expedite, s390x-gs-linux64-expedite): New macros.
5623 (XMLTOC): Add s390-gs-linux64.xml and s390x-linux64.xml.
5624 * features/s390-gs-linux64.c: New generated file.
5625 * features/s390x-gs-linux64.c: New file.
5626 * regformats/s390-gs-linux64.dat: New file.
5627 * regformats/s390x-gs-linux64.dat: New file.
5628
5629 2017-09-23 Tom Tromey <tom@tromey.com>
5630
5631 * defs.h (make_cleanup_override_quit_handler): Don't declare.
5632
5633 2017-09-22 Tom Tromey <tom@tromey.com>
5634
5635 * utils.c (class scoped_input_handler) <m_quit_handler>: Change
5636 type to scoped_restore_tmpl.
5637 <scoped_input_handler>: Initialize m_quit_handler directly.
5638
5639 2017-09-22 Sergio Durigan Junior <sergiodj@redhat.com>
5640
5641 * cli/cli-cmds.c (pwd_command): Use "getcwd (NULL, 0)".
5642 (cd_command): Likewise. Free "current_directory" before
5643 assigning to it.
5644 * main.c (captured_main_1): Use "getcwd (NULL, 0)".
5645 * mi/mi-cmd-env.c (mi_cmd_env_pwd): Likewise.
5646 * top.c (gdb_dirbuf): Remove global declaration.
5647 * top.h (gdb_dirbuf): Likewise.
5648
5649 2017-09-22 Sergio Durigan Junior <sergiodj@redhat.com>
5650
5651 * gnulib/aclocal.m4: Regenerate.
5652 * gnulib/config.in: Regenerate.
5653 * gnulib/configure: Regenerate.
5654 * gnulib/import/Makefile.am: Regenerate.
5655 * gnulib/import/Makefile.in: Regenerate.
5656 * gnulib/import/assure.h: New file.
5657 * gnulib/import/at-func.c: Likewise
5658 * gnulib/import/chdir-long.c: New file.
5659 * gnulib/import/chdir-long.h: New file.
5660 * gnulib/import/cloexec.c: New file.
5661 * gnulib/import/cloexec.h: New file.
5662 * gnulib/import/close.c: New file.
5663 * gnulib/import/closedir.c: New file.
5664 * gnulib/import/dirent-private.h: New file.
5665 * gnulib/import/dup-safer.c: New file.
5666 * gnulib/import/dup.c: New file.
5667 * gnulib/import/dup2.c: New file.
5668 * gnulib/import/error.c: New file.
5669 * gnulib/import/error.h: New file.
5670 * gnulib/import/exitfail.c: New file.
5671 * gnulib/import/exitfail.h: New file.
5672 * gnulib/import/fchdir.c: New file.
5673 * gnulib/import/fcntl.c: New file.
5674 * gnulib/import/fcntl.in.h: New file.
5675 * gnulib/import/fd-hook.c: New file.
5676 * gnulib/import/fd-hook.h: New file.
5677 * gnulib/import/fd-safer.c: New file.
5678 * gnulib/import/fdopendir.c: New file.
5679 * gnulib/import/filename.h: New file.
5680 * gnulib/import/filenamecat-lgpl.c: New file.
5681 * gnulib/import/filenamecat.h: New file.
5682 * gnulib/import/fstat.c: New file.
5683 * gnulib/import/fstatat.c: New file.
5684 * gnulib/import/getcwd-lgpl.c: New file.
5685 * gnulib/import/getcwd.c: New file.
5686 * gnulib/import/getdtablesize.c: New file.
5687 * gnulib/import/getlogin_r.c: New file.
5688 * gnulib/import/getprogname.c: New file.
5689 * gnulib/import/getprogname.h: New file.
5690 * gnulib/import/gettext.h: New file.
5691 * gnulib/import/glob-libc.h: New file.
5692 * gnulib/import/glob.c: New file.
5693 * gnulib/import/glob.in.h: New file.
5694 * gnulib/import/intprops.h: New file.
5695 * gnulib/import/m4/chdir-long.m4: New file.
5696 * gnulib/import/m4/close.m4: New file.
5697 * gnulib/import/m4/closedir.m4: New file.
5698 * gnulib/import/m4/d-ino.m4: New file.
5699 * gnulib/import/m4/d-type.m4: New file.
5700 * gnulib/import/m4/dup.m4: New file.
5701 * gnulib/import/m4/dup2.m4: New file.
5702 * gnulib/import/m4/error.m4: New file.
5703 * gnulib/import/m4/fchdir.m4: New file.
5704 * gnulib/import/m4/fcntl.m4: New file.
5705 * gnulib/import/m4/fcntl_h.m4: New file.
5706 * gnulib/import/m4/fdopendir.m4: New file.
5707 * gnulib/import/m4/filenamecat.m4: New file.
5708 * gnulib/import/m4/fstat.m4: New file.
5709 * gnulib/import/m4/fstatat.m4: New file.
5710 * gnulib/import/m4/getcwd-abort-bug.m4: New file.
5711 * gnulib/import/m4/getcwd-path-max.m4: New file.
5712 * gnulib/import/m4/getcwd.m4: New file.
5713 * gnulib/import/m4/getdtablesize.m4: New file.
5714 * gnulib/import/m4/getlogin_r.m4: New file.
5715 * gnulib/import/m4/getprogname.m4: New file.
5716 * gnulib/import/m4/glob.m4: New file.
5717 * gnulib/import/m4/gnulib-cache.m4: Regenerate.
5718 * gnulib/import/m4/gnulib-comp.m4: Regenerate.
5719 * gnulib/import/m4/mempcpy.m4: New file.
5720 * gnulib/import/m4/memrchr.m4: New file.
5721 * gnulib/import/m4/mode_t.m4: New file.
5722 * gnulib/import/m4/msvc-inval.m4: New file.
5723 * gnulib/import/m4/msvc-nothrow.m4: New file.
5724 * gnulib/import/m4/open.m4: New file.
5725 * gnulib/import/m4/openat.m4: New file.
5726 * gnulib/import/m4/opendir.m4: New file.
5727 * gnulib/import/m4/readdir.m4: New file.
5728 * gnulib/import/m4/realloc.m4: New file.
5729 * gnulib/import/m4/rewinddir.m4: New file.
5730 * gnulib/import/m4/save-cwd.m4: New file.
5731 * gnulib/import/m4/strdup.m4: New file.
5732 * gnulib/import/m4/strerror.m4: New file.
5733 * gnulib/import/m4/unistd-safer.m4: New file.
5734 * gnulib/import/mempcpy.c: New file.
5735 * gnulib/import/memrchr.c: New file.
5736 * gnulib/import/msvc-inval.c: New file.
5737 * gnulib/import/msvc-inval.h: New file.
5738 * gnulib/import/msvc-nothrow.c: New file.
5739 * gnulib/import/msvc-nothrow.h: New file.
5740 * gnulib/import/open.c: New file.
5741 * gnulib/import/openat-die.c: New file.
5742 * gnulib/import/openat-priv.h: New file.
5743 * gnulib/import/openat-proc.c: New file.
5744 * gnulib/import/openat.c: New file.
5745 * gnulib/import/openat.h: New file.
5746 * gnulib/import/opendir.c: New file.
5747 * gnulib/import/pipe-safer.c: New file.
5748 * gnulib/import/readdir.c: New file.
5749 * gnulib/import/realloc.c: New file.
5750 * gnulib/import/rewinddir.c: New file.
5751 * gnulib/import/save-cwd.c: New file.
5752 * gnulib/import/save-cwd.h: New file.
5753 * gnulib/import/strdup.c: New file.
5754 * gnulib/import/strerror-override.c: New file.
5755 * gnulib/import/strerror-override.h: New file.
5756 * gnulib/import/strerror.c: New file.
5757 * gnulib/import/unistd--.h: New file.
5758 * gnulib/import/unistd-safer.h: New file.
5759 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add
5760 "getcwd" and "glob".
5761 * ser-tcp.c: Undefine "close" before redefining it.
5762
5763 2017-09-21 Simon Marchi <simon.marchi@ericsson.com>
5764
5765 * guile/scm-value.c (gdbscm_value_address): Initialize address,
5766 get rid of res_val.
5767
5768 2017-09-22 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
5769
5770 * configure.nat <i386sol2,i386>: Add fork-inferior.o to NATDEPFILES.
5771 <sol2,sparc>: Likewise.
5772 <sol2-64,i386>: Likewise.
5773
5774 * warning.m4 (AM_GDB_WARNINGS): Disable -Wunknown-pragmas,
5775 -Wdeprecated-declarations on *-*-solaris*.
5776 * configure: Regenerate.
5777
5778 * procfs.c: Include "nat/inferior.h".
5779 (procfs_info_proc): Fix typo.
5780
5781 2017-09-21 Kevin Buettner <kevinb@redhat.com>
5782
5783 * remote.c (vector): Include.
5784 (struct private_thread_info): Add field, thread_handle.
5785 (free_private_thread_info): Deallocate storage associated with
5786 thread handle.
5787 (get_private_info_thread): Initialize `thread_handle' field.
5788 (struct thread_item): Add field, thread_handle.
5789 (clear_threads_listing_context): Deallocate storage associated
5790 with thread handle.
5791 (start_thread): Add support for "handle" attribute.
5792 (thread_attributes): Add "handle".
5793 (remote_get_threads_with_qthreadinfo): Initialize thread_handle
5794 field.
5795 (remote_update_thread_list): Update thread_handle.
5796 (remote_thread_handle_to_thread_info): New function.
5797 (init_remote_ops): Initialize to_thread_handle_to_thread_info.
5798
5799 2017-09-21 Kevin Buettner <kevinb@redhat.com>
5800
5801 * python/py-inferior.c (gdbpy_thread_from_thread_handle): New
5802 function.
5803 (inferior_object_methods): Add gdbpy_thread_from_thread_handle.
5804 * python/python-internal.h (thread_object_type): Declare.
5805
5806 2017-09-21 Kevin Buettner <kevinb@redhat.com>
5807
5808 * target.h (struct target_ops): Add to_thread_handle_to_thread_info.
5809 (target_thread_handle_to_thread_info): Declare.
5810 * target.c (target_thread_handle_to_thread_info): New function.
5811 * target-delegates.c: Regenerate.
5812 * gdbthread.h (find_thread_by_handle): Declare.
5813 * thread.c (find_thread_by_handle): New function.
5814 * linux-thread-db.c (thread_db_thread_handle_to_thread_info): New
5815 function.
5816 (init_thread_db_ops): Register thread_db_thread_handle_to_thread_info.
5817
5818 2017-09-21 Simon Marchi <simon.marchi@ericsson.com>
5819
5820 * nat/linux-waitpid.c (linux_debug): Add ATTRIBUTE_PRINTF.
5821
5822 2017-09-21 Simon Marchi <simon.marchi@ericsson.com>
5823
5824 * microblaze-tdep.c (microblaze_debug): Add ATTRIBUTE_PRINTF.
5825
5826 2017-09-21 Yao Qi <yao.qi@linaro.org>
5827
5828 * configure.tgt (aarch64*-*-freebsd*): Add fbsd-tdep.o solib-svr4.o
5829 to gdb_target_obs.
5830
5831 2017-09-20 Tom Tromey <tom@tromey.com>
5832
5833 * breakpoint.c (struct counted_command_line): Remove.
5834 (breakpoint_commands): Update.
5835 (alloc_counted_command_line, incref_counted_command_line)
5836 (decref_counted_command_line, do_cleanup_counted_command_line)
5837 (make_cleanup_decref_counted_command_line): Remove.
5838 (breakpoint_set_commands, commands_command_1, ~bpstats, bpstats)
5839 (bpstat_clear_actions, bpstat_do_actions_1, watchpoint_check)
5840 (bpstat_stop_status, print_one_breakpoint_location, ~breakpoint)
5841 (save_breakpoints): Update.
5842 * breakpoint.h (counted_command_line): Now a typedef to
5843 shared_ptr.
5844 (struct breakpoint) <commands>: Now a counted_command_line.
5845 (struct bpstats) <command>: Likewise.
5846
5847 2017-09-20 Tom Tromey <tom@tromey.com>
5848
5849 * breakpoint.c (struct commands_info, do_map_commands_command):
5850 Remove.
5851 (commands_command_1): Update.
5852 (iterate_over_related_breakpoints): Take a function_view.
5853 (do_delete_breakpoint, do_map_delete_breakpoint): Remove.
5854 (delete_command): Update.
5855 (map_breakpoint_numbers): Take a function_view.
5856 (do_disable_breakpoint, do_map_delete_breakpoint): Remove.
5857 (disable_command): Update.
5858 (do_enable_breakpoint, do_map_enable_breakpoint): Remove.
5859 (enable_command): Update.
5860 (struct disp_data, do_enable_breakpoint_disp)
5861 (do_map_enable_once_breakpoint, do_map_enable_count_breakpoint)
5862 (do_map_enable_delete_breakpoint): Remove.
5863 (enable_once_command, enable_count_command, enable_delete_command)
5864 (delete_trace_variable_command): Update.
5865
5866 2017-09-20 Tom Tromey <tom@tromey.com>
5867
5868 * breakpoint.c (~bpstats): Rename from bpstat_free. Update.
5869 (bpstat_clear): Use delete.
5870 (bpstats): New constructors.
5871 (bpstat_copy, bpstat_stop_status): Use new.
5872 (dprintf_after_condition_true): Update.
5873 * breakpoint.h (bpstats::bpstats): Add constructors.
5874 (bpstats::~bpstats): Add destructor.
5875
5876 2017-09-20 Pedro Alves <palves@redhat.com>
5877
5878 * eval.c (make_params): Delete, refactored as ...
5879 (class fake_method): ... this new type's ctor.
5880 (fake_method::~fake_method): New.
5881 (evaluate_subexp_standard): Use 'fake_method'.
5882
5883 2017-09-20 Tom Tromey <tom@tromey.com>
5884
5885 * windows-nat.c (get_windows_debug_event, windows_wait)
5886 (do_initial_windows_stuff, windows_attach): Update.
5887 * utils.c (vwarning, internal_vproblem): Update.
5888 (ui_unregister_input_event_handler_cleanup)
5889 (prepare_to_handle_input): Remove.
5890 (class scoped_input_handler): New.
5891 (defaulted_query, prompt_for_continue): Update.
5892 * tui/tui-hooks.c (tui_refresh_frame_and_register_information):
5893 Update.
5894 * top.c (undo_terminal_modifications_before_exit): Update.
5895 * target/target.h (target_terminal_init, target_terminal_inferior)
5896 (target_terminal_ours): Don't declare.
5897 (class target_terminal): New.
5898 * target.h (target_terminal_is_inferior, target_terminal_is_ours)
5899 (target_terminal_ours_for_output)
5900 (make_cleanup_restore_target_terminal): Don't declare.
5901 (target_terminal_info): Remove.
5902 * target.c (enum terminal_state, terminal_state): Remove.
5903 (target_terminal::terminal_state): Define.
5904 (target_terminal::init): Rename from target_terminal_init.
5905 (target_terminal::inferior): Rename from
5906 target_terminal_inferior.
5907 (target_terminal::ours): Rename from target_terminal_ours.
5908 (target_terminal::ours_for_output): Rename from
5909 target_terminal_ours_for_output.
5910 (target_terminal::info): New method.
5911 (cleanup_restore_target_terminal)
5912 (make_cleanup_restore_target_terminal): Remove.
5913 * solib.c (handle_solib_event): Update.
5914 * remote.c (remote_serial_quit_handler): Update.
5915 (remote_terminal_inferior, remote_wait_as): Update.
5916 * record-full.c (record_full_wait_1): Update.
5917 * nto-procfs.c (procfs_create_inferior): Update.
5918 * nat/fork-inferior.c (startup_inferior): Update.
5919 * mi/mi-interp.c (mi_new_thread, mi_thread_exit)
5920 (mi_record_changed, mi_inferior_added, mi_inferior_appeared)
5921 (mi_inferior_exit, mi_inferior_removed, mi_traceframe_changed)
5922 (mi_tsv_created, mi_tsv_deleted, mi_tsv_modified)
5923 (mi_breakpoint_created, mi_breakpoint_deleted)
5924 (mi_breakpoint_modified, mi_on_resume, mi_solib_loaded)
5925 (mi_solib_unloaded, mi_command_param_changed, mi_memory_changed)
5926 (mi_user_selected_context_changed, report_initial_inferior):
5927 Update.
5928 * linux-nat.c (linux_nat_attach, linux_nat_terminal_ours)
5929 (linux_nat_terminal_inferior): Update.
5930 * infrun.c (follow_fork_inferior)
5931 (handle_vfork_child_exec_or_exit, do_target_resume)
5932 (check_curr_ui_sync_execution_done, handle_inferior_event_1)
5933 (handle_signal_stop, maybe_remove_breakpoints, normal_stop):
5934 Update.
5935 * inflow.c (child_terminal_init, info_terminal_command): Update.
5936 * infcmd.c (post_create_inferior, continue_1, prepare_one_step)
5937 (attach_command): Update.
5938 * infcall.c (call_thread_fsm_should_stop): Update.
5939 * gnu-nat.c (gnu_attach): Update.
5940 * extension.c (struct active_ext_lang_state)
5941 (restore_active_ext_lang): Update.
5942 * exceptions.c (print_flush): Update.
5943 * event-top.c (async_enable_stdin, default_quit_handler): Update.
5944 (struct quit_handler_cleanup_data, restore_quit_handler)
5945 (restore_quit_handler_dtor, make_cleanup_override_quit_handler):
5946 Remove.
5947 * cp-support.c (gdb_demangle): Update.
5948 * breakpoint.c (update_inserted_breakpoint_locations)
5949 (insert_breakpoint_locations, handle_jit_event)
5950 (disable_breakpoints_in_unloaded_shlib): Update.
5951 * annotate.c (annotate_breakpoints_invalid)
5952 (annotate_frames_invalid): Update.
5953
5954 2017-09-20 Tom Tromey <tom@tromey.com>
5955
5956 * main.c (catch_command_errors): Rename from
5957 catch_command_errors_const.
5958 (captured_main_1): Update.
5959
5960 2017-09-20 Pedro Alves <palves@redhat.com>
5961
5962 * cli/cli-cmds.c (list_command): Use print_sal_location.
5963 (print_sal_location): New function.
5964 (ambiguous_line_spec): Use print_sal_location.
5965 * linespec.c (symbol_to_sal): Record the symbol in the sal.
5966 * symtab.c (find_function_start_sal): Likewise.
5967 * symtab.h (symtab_and_line::symbol): New field.
5968
5969 2017-09-20 Pedro Alves <palves@redhat.com>
5970
5971 * linespec.c (minsym_found): Handle non-text minsyms.
5972 (symbol_to_sal): Record a sal.pc for non-block, non-label symbols.
5973
5974 2017-09-20 Walfred Tedeschi <walfred.tedeschi@intel.com>
5975
5976 * features/Makefile (i386-avx-mpx-avx512-pku.dat): Add missing
5977 backslash.
5978
5979 2017-09-20 Walfred Tedeschi <walfred.tedeschi@intel.com>
5980
5981 * gdb.arch/i386-avx512.c (move_zmm_data_to_reg): Use
5982 vmovups instead vmovaps.
5983 (move_zmm_data_to_memory): Use vmovups instead vmovaps.
5984
5985 2017-09-19 John Baldwin <jhb@FreeBSD.org>
5986
5987 * NEWS (Changes since GDB 8.0): Add starti.
5988 * infcmd.c (enum run_break): New.
5989 (run_command_1): Queue pending event for RUN_STOP_AT_FIRST_INSN
5990 case.
5991 (run_command): Use enum run_how.
5992 (start_command): Likewise.
5993 (starti_command): New function.
5994 (RUN_ARGS_HELP): New macro.
5995 (_initialize_infcmd): Use RUN_ARGS_HELP for run and start
5996 commands. Add starti command.
5997
5998 2017-09-19 Yao Qi <yao.qi@linaro.org>
5999
6000 * Makefile.in (monitor.o): Remove the rule.
6001
6002 2017-09-19 Yao Qi <yao.qi@linaro.org>
6003
6004 * annotate.h (struct annotate_arg_emitter): Use
6005 DISABLE_COPY_AND_ASSIGN.
6006 * common/refcounted-object.h (refcounted_object): Likewise.
6007 * completer.h (struct completion_result): Likewise.
6008 * dwarf2read.c (struct dwarf2_per_objfile): Likewise.
6009 * filename-seen-cache.h (filename_seen_cache): Likewise.
6010 * gdbcore.h (thread_section_name): Likewise.
6011 * gdb_regex.h (compiled_regex): Likewise.
6012 * gdbthread.h (scoped_restore_current_thread): Likewise.
6013 * inferior.h (scoped_restore_current_inferior): Likewise.
6014 * jit.c (jit_reader): Likewise.
6015 * linespec.h (struct linespec_result): Likewise.
6016 * mi/mi-parse.h (struct mi_parse): Likewise.
6017 * nat/fork-inferior.c (execv_argv): Likewise.
6018 * progspace.h (scoped_restore_current_program_space): Likewise.
6019 * python/python-internal.h (class gdbpy_enter): Likewise.
6020 * regcache.h (regcache): Likewise.
6021 * target-descriptions.c (struct tdesc_reg): Likewise.
6022 (struct tdesc_type): Likewise.
6023 (struct tdesc_feature): Likewise.
6024 * ui-out.h (ui_out_emit_type): Likewise.
6025
6026 2017-09-18 Simon Marchi <simon.marchi@ericsson.com>
6027
6028 * dwarf2expr.c (dwarf_expr_context::execute_stack_op): Remove
6029 label abort_expression.
6030
6031 2017-09-16 Simon Marchi <simon.marchi@ericsson.com>
6032
6033 * common/buffer.c (buffer_xml_printf): Adjust.
6034 * common/xml-utils.c (xml_escape_text): Change return type to
6035 std::string, update code accordingly.
6036 * common/xml-utils.h (xml_escape_text): Change return type to
6037 std::string.
6038 * rs6000-aix-tdep.c (rs6000_aix_shared_library_to_xml): Adjust.
6039 * windows-tdep.c (windows_xfer_shared_library): Adjust.
6040 * unittests/xml-utils-selftests.c (test_xml_escape_text):
6041 Adjust.
6042
6043 2017-09-16 Simon Marchi <simon.marchi@ericsson.com>
6044
6045 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add new source file.
6046 (SUBDIR_UNITTESTS_OBS): Add new object file.
6047 * unittests/xml-utils-selftests.c: New file.
6048
6049 2017-09-16 Simon Marchi <simon.marchi@ericsson.com>
6050
6051 * common/selftest.h (selftest): New struct/interface.
6052 (register_test): Add name parameter, add new overload.
6053 (run_tests): Add filter parameter.
6054 (for_each_selftest_ftype): New typedef.
6055 (for_each_selftest): New declaration.
6056 * common/selftest.c (tests): Change type to
6057 map<string, unique_ptr<selftest>>.
6058 (simple_selftest): New struct.
6059 (register_test): New function.
6060 (register_test): Add name parameter and use it.
6061 (run_tests): Add filter parameter and use it. Add prints.
6062 Adjust to vector -> map change.
6063 * aarch64-tdep.c (_initialize_aarch64_tdep): Add names when
6064 registering selftests.
6065 * arm-tdep.c (_initialize_arm_tdep): Likewise.
6066 * disasm-selftests.c (_initialize_disasm_selftests): Likewise.
6067 * dwarf2-frame.c (_initialize_dwarf2_frame): Likewise.
6068 * dwarf2loc.c (_initialize_dwarf2loc): Likewise.
6069 * findvar.c (_initialize_findvar): Likewise.
6070 * gdbarch-selftests.c (_initialize_gdbarch_selftests): Likewise.
6071 * maint.c (maintenance_selftest): Update call to run_tests.
6072 (maintenance_info_selftests): New function.
6073 (_initialize_maint_cmds): Register "maintenance info selftests"
6074 command. Update "maintenance selftest" doc.
6075 * regcache.c (_initialize_regcache): Add names when registering
6076 selftests.
6077 * rust-exp.y (_initialize_rust_exp): Likewise.
6078 * selftest-arch.c (gdbarch_selftest): New struct.
6079 (gdbarch_tests): Remove.
6080 (register_test_foreach_arch): Add name parameter. Call
6081 register_test.
6082 (tests_with_arch): Remove, move most content to
6083 gdbarch_selftest::operator().
6084 (_initialize_selftests_foreach_arch): Remove.
6085 * selftest-arch.h (register_test_foreach_arch): Add name
6086 parameter.
6087 (run_tests_with_arch): New declaration.
6088 * utils-selftests.c (_initialize_utils_selftests): Add names
6089 when registering selftests.
6090 * utils.c (_initialize_utils): Likewise.
6091 * unittests/array-view-selftests.c
6092 (_initialize_array_view_selftests): Likewise.
6093 * unittests/environ-selftests.c (_initialize_environ_selftests):
6094 Likewise.
6095 * unittests/function-view-selftests.c
6096 (_initialize_function_view_selftests): Likewise.
6097 * unittests/offset-type-selftests.c
6098 (_initialize_offset_type_selftests): Likewise.
6099 * unittests/optional-selftests.c
6100 (_initialize_optional_selftests): Likewise.
6101 * unittests/scoped_restore-selftests.c
6102 (_initialize_scoped_restore_selftests): Likewise.
6103 * NEWS: Document "maintenance selftest" and "maint info
6104 selftests".
6105
6106 2017-09-16 Simon Marchi <simon.marchi@ericsson.com>
6107
6108 * mi/mi-main.c (mi_load_progress): Restore current_uiout using a
6109 scoped_restore.
6110
6111 2017-09-16 Simon Marchi <simon.marchi@ericsson.com>
6112
6113 * mi/mi-main.c (mi_load_progress): Make uiout variable
6114 a unique_ptr.
6115
6116 2017-09-15 Pedro Alves <palves@redhat.com>
6117
6118 * compile/compile-c-types.c (convert_enum, convert_int)
6119 (convert_float): Adjust to refer to int_type_v0 and float_type_v0.
6120
6121 2017-09-15 Simon Marchi <simon.marchi@ericsson.com>
6122
6123 * dwarf2read.c (copy_string): Remove.
6124 (parse_macro_definition): Replace copy_string with savestring.
6125
6126 2017-09-15 Yao Qi <yao.qi@linaro.org>
6127
6128 * configure.tgt (i[34567]86-*-darwin*): Append amd64.o to
6129 gdb_target_obs.
6130 (i[34567]86-*-solaris2.1[0-9]* | x86_64-*-solaris2.1[0-9]*):
6131 Likewise.
6132 (i[34567]86-*-linux*): Likewise.
6133
6134 2017-09-14 Simon Marchi <simon.marchi@ericsson.com>
6135
6136 * dwarf2expr.h (dwarf_stack_value): Add constructor.
6137 (dwarf_expr_context) <~dwarf_expr_context>: Define as default.
6138 <stack>: Change type to std::vector.
6139 <stack_len, stack_allocated>: Remove.
6140 <grow_stack>: Remove.
6141 * dwarf2expr.c (dwarf_expr_context::dwarf_expr_context): Adjust.
6142 (dwarf_expr_context::~dwarf_expr_context): Remove.
6143 (dwarf_expr_context::grow_stack): Remove.
6144 (dwarf_expr_context::push): Adjust.
6145 (dwarf_expr_context::pop): Adjust.
6146 (dwarf_expr_context::fetch): Adjust.
6147 (dwarf_expr_context::fetch_in_stack_memory): Adjust.
6148 (dwarf_expr_context::stack_empty_p): Adjust.
6149 (dwarf_expr_context::execute_stack_op): Adjust.
6150
6151 2017-09-14 Simon Marchi <simon.marchi@ericsson.com>
6152
6153 * dwarf2expr.h (dwarf_expr_context) <stack_empty_p>: Change
6154 return type to bool.
6155 * dwarf2expr.c (dwarf_expr_context::stack_empty_p): Likewise.
6156
6157 2017-09-14 Simon Marchi <simon.marchi@ericsson.com>
6158
6159 * dwarf2expr.h (dwarf_expr_piece) <v.mem.in_stack_memory>:
6160 Change type to bool.
6161 (dwarf_stack_value) <in_stack_memory>: Likewise.
6162 (dwarf_expr_context) <push_address>: Change parameter type to
6163 bool.
6164 <fetch_in_stack_memory>: Change return type to bool.
6165 <push>: Change parameter type to bool.
6166 * dwarf2expr.c (dwarf_expr_context::push): Change parameter type
6167 to bool.
6168 (dwarf_expr_context::push_address): Likewise.
6169 (dwarf_expr_context::fetch_in_stack_memory): Change return type
6170 to bool.
6171 (dwarf_expr_context::execute_stack_op): Adjust.
6172 * dwarf2loc.c (dwarf2_evaluate_loc_desc_full): Adjust.
6173
6174 2017-09-14 Simon Marchi <simon.marchi@ericsson.com>
6175
6176 * dwarf2expr.h (struct dwarf_expr_piece): Move up.
6177 (struct dwarf_expr_context) <n_pieces>: Remove.
6178 <pieces>: Change type to std::vector.
6179 * dwarf2expr.c (dwarf_expr_context::dwarf_expr_context): Adjust.
6180 (dwarf_expr_context::~dwarf_expr_context): Don't manually free
6181 pieces.
6182 (dwarf_expr_context::add_piece): Adjust.
6183 * dwarf2loc.c (struct piece_closure): Initialize fields.
6184 <n_pieces>: Remove.
6185 <pieces>: Change type to std::vector.
6186 (allocate_piece_closure): Adjust, change parameter to
6187 std::vector rvalue and std::move it to piece_closure.
6188 (rw_pieced_value): Adjust.
6189 (check_pieced_synthetic_pointer): Adjust.
6190 (indirect_synthetic_pointer): Adjust.
6191 (coerce_pieced_ref): Adjust.
6192 (free_pieced_value_closure): Adjust. Use delete to free
6193 piece_closure.
6194 (dwarf2_evaluate_loc_desc_full): Adjust. std::move ctx.pieces
6195 to allocate_piece_closure.
6196 (dwarf2_loc_desc_get_symbol_read_needs): Adjust.
6197
6198 2017-09-12 Simon Marchi <simon.marchi@ericsson.com>
6199
6200 * probe.h (probe_ops_cp): Remove typedef.
6201 (DEF_VEC_P (probe_ops_cp)): Remove.
6202 (all_probe_ops): Change type to std::vector.
6203 * probe.c (info_probes_for_ops): Adjust to vector change.
6204 (probe_linespec_to_ops): Likewise.
6205 (all_probe_ops): Change type to std::vector.
6206 (_initialize_probe): Adjust to vector change.
6207 * dtrace-probe.c (_initialize_dtrace_probe): Likewise.
6208 * elfread.c (elf_get_probes): Likewise.
6209 * stap-probe.c (_initialize_stap_probe): Likewise.
6210
6211 2017-09-12 Simon Marchi <simon.marchi@ericsson.com>
6212
6213 * probe.h (struct bound_probe): Define constructors.
6214 * probe.c (bound_probe_s): Remove typedef.
6215 (DEF_VEC_O (bound_probe_s)): Remove VEC.
6216 (collect_probes): Change return type to std::vector, remove
6217 cleanup.
6218 (compare_probes): Return bool, change parameter type. Change
6219 semantic to "less than".
6220 (gen_ui_out_table_header_info): Change parameter to std::vector
6221 and update.
6222 (exists_probe_with_pops): Likewise.
6223 (info_probes_for_ops): Update to std::vector change.
6224 (enable_probes_command): Likewise.
6225 (disable_probes_command): Likewise.
6226
6227 2017-09-12 Simon Marchi <simon.marchi@ericsson.com>
6228
6229 * probe.h (struct probe_ops) <get_probes>: Change parameter from
6230 vec to std::vector.
6231 * probe.c (parse_probes_in_pspace): Update.
6232 (find_probes_in_objfile): Update.
6233 (find_probe_by_pc): Update.
6234 (collect_probes): Update.
6235 (probe_any_get_probes): Update.
6236 * symfile.h (struct sym_probe_fns) <sym_get_probes> Change
6237 return type to reference to std::vector.
6238 * dtrace-probe.c (dtrace_process_dof_probe): Change parameter to
6239 std::vector and update.
6240 (dtrace_process_dof): Likewise.
6241 (dtrace_get_probes): Likewise.
6242 * elfread.c (elf_get_probes): Change return type to std::vector,
6243 store an std::vector in bfd_data.
6244 (probe_key_free): Update to std::vector.
6245 * stap-probe.c (handle_stap_probe): Change parameter to
6246 std::vector and update.
6247 (stap_get_probes): Likewise.
6248 * symfile-debug.c (debug_sym_get_probes): Change return type to
6249 std::vector and update.
6250
6251 2017-09-11 Tom Tromey <tom@tromey.com>
6252
6253 * breakpoint.c (program_breakpoint_here_p): Update.
6254 * target.c (make_scoped_restore_show_memory_breakpoints): Rename
6255 from make_show_memory_breakpoints_cleanup. Return a
6256 scoped_restore_tmpl<int>.
6257 (restore_show_memory_breakpoints): Remove.
6258 * ppc-linux-tdep.c (ppc_linux_memory_remove_breakpoint): Update.
6259 * mem-break.c (memory_validate_breakpoint): Update.
6260 * ia64-tdep.c (ia64_memory_insert_breakpoint): Update.
6261 (ia64_memory_remove_breakpoint): Update.
6262 (ia64_breakpoint_from_pc): Update.
6263 * target.h (make_scoped_restore_show_memory_breakpoints): Rename
6264 from make_show_memory_breakpoints_cleanup.
6265
6266 2017-09-11 Tom Tromey <tom@tromey.com>
6267
6268 * d-namespace.c (d_lookup_symbol): Use std::string.
6269 (find_symbol_in_baseclass): Likewise.
6270
6271 2017-09-11 Tom Tromey <tom@tromey.com>
6272
6273 * ctf.c (ctf_start): Use std::string.
6274
6275 2017-09-11 Tom Tromey <tom@tromey.com>
6276
6277 * ada-lang.c (is_known_support_routine): Update.
6278 (ada_unhandled_exception_name_addr_from_raise): Update.
6279 * guile/scm-frame.c (gdbscm_frame_name): Update.
6280 * python/py-frame.c (frapy_name): Update.
6281 (frapy_function): Update.
6282 * stack.h (find_frame_funname): Update.
6283 * stack.c (find_frame_funname): Return unique_xmalloc_ptr.
6284 (print_frame): Update.
6285
6286 2017-09-11 Tom Tromey <tom@tromey.com>
6287
6288 * findcmd.c (put_bits): Take a gdb::byte_vector.
6289 (parse_find_args): Return gdb::byte_vector. "args" now const.
6290 Remove "pattern_bufp" and "pattern_lenp" parameters. Remove
6291 cleanups.
6292 (find_command): Update.
6293
6294 2017-09-11 Tom Tromey <tom@tromey.com>
6295
6296 * cli/cli-script.c (class scoped_restore_hook_in): New.
6297 (clear_hook_in_cleanup): Remove.
6298 (execute_cmd_pre_hook, execute_cmd_post_hook): Use
6299 scoped_restore_hook_in.
6300
6301 2017-09-11 Tom Tromey <tom@tromey.com>
6302
6303 * cli/cli-script.c (restore_interp): Remove.
6304 (read_command_lines): Use scoped_restore_interp.
6305 * interps.c (scoped_restore_interp::set_temp): Rename from
6306 interp_set_temp.
6307 * interps.h (class scoped_restore_interp): New.
6308 (interp_set_temp): Remove.
6309
6310 2017-09-11 Tom Tromey <tom@tromey.com>
6311
6312 * mi/mi-cmd-catch.c (mi_cmd_catch_assert)
6313 (mi_cmd_catch_exception, mi_catch_load_unload): Update.
6314 * mi/mi-cmd-break.c (setup_breakpoint_reporting): Return a
6315 scoped_restore.
6316 (mi_cmd_break_insert_1): Update.
6317 * mi/mi-cmd-break.h (setup_breakpoint_reporting): Return a
6318 scoped_restore.
6319
6320 2017-09-11 Tom Tromey <tom@tromey.com>
6321
6322 * demangle.c (demangle_command): Update.
6323 * breakpoint.c (disable_command): Update.
6324 (enable_command): Update.
6325 (find_location_by_number): Make "number" const. Use
6326 get_number_trailer.
6327 * cli/cli-utils.c (extract_arg): Return std::string.
6328 * probe.c (parse_probe_linespec): Update. Change types.
6329 (collect_probes): Take string arguments.
6330 (parse_probe_linespec): Likewise.
6331 (info_probes_for_ops): Update.
6332 (enable_probes_command): Update.
6333 (disable_probes_command): Update.
6334 * break-catch-sig.c (catch_signal_split_args): Update.
6335 * mi/mi-parse.c (mi_parse): Update.
6336
6337 2017-09-11 Tom Tromey <tom@tromey.com>
6338
6339 * language.h (language_enum): Make argument const.
6340 * language.c (language_enum): Make argument const.
6341
6342 2017-09-11 Tom Tromey <tom@tromey.com>
6343
6344 * common/common-utils.h (skip_to_space): Remove macro, redeclare
6345 as function.
6346 (skip_to_space): Rename from skip_to_space_const.
6347 * common/common-utils.c (skip_to_space): New function.
6348 (skip_to_space): Rename from skip_to_space_const.
6349 * cli/cli-utils.h (get_number): Rename from get_number_const.
6350 (extract_arg): Rename from extract_arg_const.
6351 * cli/cli-utils.c (get_number): Rename from get_number_const.
6352 (extract_arg): Rename from extract_arg_const.
6353 (number_or_range_parser::get_number): Use ::get_number.
6354 * aarch64-linux-tdep.c, ada-lang.c, arm-linux-tdep.c, ax-gdb.c,
6355 break-catch-throw.c, breakpoint.c, cli/cli-cmds.c, cli/cli-dump.c,
6356 cli/cli-script.c, cli/cli-setshow.c, compile/compile.c,
6357 completer.c, demangle.c, disasm.c, findcmd.c, linespec.c,
6358 linux-tdep.c, linux-thread-db.c, location.c, mi/mi-parse.c,
6359 minsyms.c, nat/linux-procfs.c, printcmd.c, probe.c,
6360 python/py-breakpoint.c, record.c, rust-exp.y, serial.c, stack.c,
6361 stap-probe.c, tid-parse.c, tracepoint.c: Update all callers.
6362
6363 2017-09-11 Tom Tromey <tom@tromey.com>
6364
6365 * python/python.c (do_start_initialization): Use
6366 py-event-types.def to initialize types.
6367 Define all object type structures.
6368 * python/python-internal.h: Don't declare event initialization
6369 functions.
6370 * python/py-threadevent.c (thread_event_object_type): Don't
6371 define.
6372 * python/py-stopevent.c (stop_event_object_type): Don't define.
6373 * python/py-signalevent.c (signal_event_object_type): Don't
6374 declare or define.
6375 * python/py-newobjfileevent.c (new_objfile_event_object_type)
6376 (clear_objfiles_event_object_type): Don't declare or define.
6377 * python/py-infevents.c (inferior_call_pre_event_object_type)
6378 (inferior_call_post_event_object_type)
6379 (register_changed_event_object_type)
6380 (memory_changed_event_object_type): Don't declare or define.
6381 * python/py-inferior.c (new_thread_event_object_type)
6382 (new_inferior_event_object_type)
6383 (inferior_deleted_event_object_type): Don't declare or define.
6384 * python/py-exitedevent.c (exited_event_object_type): Don't
6385 declare or define.
6386 * python/py-evts.c (gdbpy_initialize_py_events): Use
6387 py-all-events.def.
6388 * python/py-events.h (thread_event_object_type): Don't declare.
6389 (events_object): Use py-all-events.def.
6390 * python/py-event.h (GDBPY_NEW_EVENT_TYPE): Remove. Use
6391 py-event-types.def.
6392 * python/py-event-types.def: New file.
6393 * python/py-continueevent.c (create_continue_event_object): Don't
6394 declare or define.
6395 * python/py-bpevent.c (breakpoint_event_object_type): Don't
6396 declare or define.
6397 * python/py-all-events.def: New file.
6398
6399 2017-09-11 Tom Tromey <tom@tromey.com>
6400
6401 * python/py-threadevent.c (create_thread_event_object): Return
6402 gdbpy_ref.
6403 * python/py-stopevent.h (create_stop_event_object)
6404 (create_breakpoint_event_object, create_signal_event_object):
6405 Update.
6406 * python/py-stopevent.c (create_stop_event_object): Return
6407 gdbpy_ref.
6408 (emit_stop_event): Update.
6409 * python/py-signalevent.c (create_signal_event_object): Return
6410 gdbpy_ref.
6411 * python/py-infevents.c (create_inferior_call_event_object):
6412 Update.
6413 * python/py-event.h (create_event_object)
6414 (create_thread_event_object): Update.
6415 * python/py-event.c (create_event_object): Return gdbpy_ref.
6416 * python/py-continueevent.c: Return gdbpy_ref.
6417 * python/py-bpevent.c (create_breakpoint_event_object): Return
6418 gdbpy_ref.
6419
6420 2017-09-11 Tom Tromey <tom@tromey.com>
6421
6422 PR python/15622:
6423 * NEWS: Add entry.
6424 * python/python.c (do_start_initialization): Initialize new event
6425 types.
6426 * python/python-internal.h (gdbpy_initialize_new_inferior_event)
6427 (gdbpy_initialize_inferior_deleted_event)
6428 (gdbpy_initialize_new_thread_event): Declare.
6429 * python/py-threadevent.c (create_thread_event_object): Add option
6430 "thread" parameter.
6431 * python/py-inferior.c (new_thread_event_object_type)
6432 (new_inferior_event_object_type)
6433 (inferior_deleted_event_object_type): Declare.
6434 (python_new_inferior, python_inferior_deleted): New functions.
6435 (add_thread_object): Emit new_thread event.
6436 (gdbpy_initialize_inferior): Attach new functions to corresponding
6437 observers.
6438 (new_thread, new_inferior, inferior_deleted): Define new event
6439 types.
6440 * python/py-evts.c (gdbpy_initialize_py_events): Add new
6441 registries.
6442 * python/py-events.h (events_object) <new_inferior,
6443 inferior_deleted, new_thread>: New fields.
6444 * python/py-event.h (create_thread_event_breakpoint): Add optional
6445 "thread" parameter.
6446
6447 2017-09-10 Andrew Burgess <andrew.burgess@embecosm.com>
6448
6449 * utils.c (abort_with_message): Don't compare gdb_stderr to NULL,
6450 check current_ui instead.
6451 (internal_vproblem): Likewise.
6452
6453 2017-09-09 Simon Marchi <simon.marchi@ericsson.com>
6454
6455 * thread.c (print_thread_info_1): Remove unnecessary calls to
6456 uiout->is_mi_like_p.
6457
6458 2017-09-09 Tom Tromey <tom@tromey.com>
6459
6460 * namespace.h (add_using_directive): Update.
6461 * namespace.c (add_using_directive): Change type of excludes to
6462 std::vector.
6463 * dwarf2read.c (read_import_statement): Use std::vector.
6464 (read_namespace): Update.
6465 * cp-namespace.c (cp_scan_for_anonymous_namespaces): Update.
6466
6467 2017-09-09 Tom Tromey <tom@tromey.com>
6468
6469 * linespec.c (create_sals_line_offset): Use gdb::def_vector.
6470
6471 2017-09-09 Tom Tromey <tom@tromey.com>
6472
6473 * p-valprint.c (pascal_object_print_value): Use gdb::byte_vector.
6474
6475 2017-09-09 Tom Tromey <tom@tromey.com>
6476
6477 * stack.c (func_command): Use gdb::def_vector.
6478
6479 2017-09-09 Tom Tromey <tom@tromey.com>
6480
6481 * mi/mi-cmd-var.c (mi_cmd_var_list_children): Use gdb::optional,
6482 ui_out_emit_list, ui_out_emit_tuple.
6483 (mi_cmd_var_update): Likewise.
6484
6485 2017-09-09 Tom Tromey <tom@tromey.com>
6486
6487 * mi/mi-interp.c (mi_user_selected_context_changed): Use
6488 ui_out_redirect_pop.
6489 * guile/scm-ports.c (ioscm_with_output_to_port_worker): Use
6490 ui_out_redirect_pop.
6491 * utils.c (do_ui_out_redirect_pop)
6492 (make_cleanup_ui_out_redirect_pop): Remove.
6493 * top.c (execute_command_to_string): Use ui_out_redirect_pop.
6494 * utils.h (make_cleanup_ui_out_redirect_pop): Remove.
6495 * ui-out.h (ui_out_redirect_pop): New class.
6496
6497 2017-09-09 Tom Tromey <tom@tromey.com>
6498
6499 * mi/mi-main.c (output_cores): Use ui_out_emit_list.
6500 (list_available_thread_groups, mi_cmd_list_thread_groups)
6501 (mi_cmd_data_list_changed_registers, mi_cmd_data_read_memory)
6502 (mi_cmd_data_read_memory_bytes, mi_cmd_trace_frame_collected):
6503 Likewise.
6504
6505 2017-09-09 Tom Tromey <tom@tromey.com>
6506
6507 * disasm.c (gdb_pretty_print_disassembler::pretty_print_insn): Use
6508 ui_out_emit_tuple.
6509
6510 2017-09-09 Tom Tromey <tom@tromey.com>
6511
6512 * target.c (flash_erase_command): Use ui_out_emit_tuple.
6513 * stack.c (print_frame): Use ui_out_emit_tuple.
6514 * spu-tdep.c (info_spu_event_command): Use ui_out_emit_tuple.
6515 (info_spu_mailbox_command, info_spu_dma_command)
6516 (info_spu_proxydma_command): Likewise.
6517 * mi/mi-main.c (mi_cmd_trace_frame_collected): Use
6518 ui_out_emit_tuple, gdb::byte_vector, bin2hex.
6519 * mi/mi-cmd-file.c (mi_cmd_file_list_shared_libraries): Use
6520 ui_out_emit_tuple.
6521 * breakpoint.c (print_it_watchpoint): Use ui_out_emit_tuple.
6522
6523 2017-09-09 Tom Tromey <tom@tromey.com>
6524
6525 * ui-out.h (make_cleanup_ui_out_table_begin_end): Remove.
6526 (class ui_out_emit_table): Update comment.
6527 * ui-out.c (do_cleanup_table_end)
6528 (make_cleanup_ui_out_table_begin_end): Remove.
6529 * spu-tdep.c (info_spu_mailbox_list): Use ui_out_emit_table.
6530 (info_spu_dma_cmdlist): Likewise.
6531 * probe.c (info_probes_for_ops): Use ui_out_emit_table.
6532 * darwin-nat-info.c (darwin_debug_regions_recurse): Use
6533 ui_out_emit_table.
6534
6535 2017-09-09 Tom Tromey <tom@tromey.com>
6536
6537 * thread.c (print_thread_info_1): Use ui_out_emit_table,
6538 ui_out_emit_list, gdb::optional.
6539
6540 2017-09-09 John Baldwin <jhb@FreeBSD.org>
6541
6542 * aarch64-linux-nat.c: Remove _initialize_aarch64_linux_nat
6543 prototype.
6544 * aarch64-linux-tdep.c: Remove _initialize_aarch64_linux_tdep
6545 prototype.
6546 * aarch64-newlib-tdep.c: Remove _initialize_aarch64_newlib_tdep
6547 prototype.
6548 * aarch64-tdep.c: Remove _initialize_aarch64_tdep prototype.
6549 * ada-exp.y: Remove _initialize_ada_exp prototype.
6550 * ada-lang.c: Remove _initialize_ada_language prototype.
6551 * ada-tasks.c: Remove _initialize_tasks prototype.
6552 * addrmap.c: Remove _initialize_addrmap prototype.
6553 * agent.c: Remove _initialize_agent prototype.
6554 * aix-thread.c: Remove _initialize_aix_thread prototype.
6555 * alpha-bsd-nat.c: Remove _initialize_alphabsd_nat prototype.
6556 * alpha-linux-nat.c: Remove _initialize_alpha_linux_nat prototype.
6557 * alpha-linux-tdep.c: Remove _initialize_alpha_linux_tdep
6558 prototype.
6559 * alpha-nbsd-tdep.c: Remove _initialize_alphanbsd_tdep prototype.
6560 * alpha-obsd-tdep.c: Remove _initialize_alphaobsd_tdep prototype.
6561 * alpha-tdep.c: Remove _initialize_alpha_tdep prototype.
6562 * amd64-darwin-tdep.c: Remove _initialize_amd64_darwin_tdep
6563 prototype.
6564 * amd64-dicos-tdep.c: Remove _initialize_amd64_dicos_tdep
6565 prototype.
6566 * amd64-fbsd-nat.c: Remove _initialize_amd64fbsd_nat prototype.
6567 * amd64-fbsd-tdep.c: Remove _initialize_amd64fbsd_tdep prototype.
6568 * amd64-linux-nat.c: Remove _initialize_amd64_linux_nat prototype.
6569 * amd64-linux-tdep.c: Remove _initialize_amd64_linux_tdep
6570 prototype.
6571 * amd64-nbsd-nat.c: Remove _initialize_amd64nbsd_nat prototype.
6572 * amd64-nbsd-tdep.c: Remove _initialize_amd64nbsd_tdep prototype.
6573 * amd64-obsd-nat.c: Remove _initialize_amd64obsd_nat prototype.
6574 * amd64-obsd-tdep.c: Remove _initialize_amd64obsd_tdep prototype.
6575 * amd64-sol2-tdep.c: Remove _initialize_amd64_sol2_tdep prototype.
6576 * amd64-tdep.c: Remove _initialize_amd64_tdep prototype.
6577 * amd64-windows-nat.c: Remove _initialize_amd64_windows_nat
6578 prototype.
6579 * amd64-windows-tdep.c: Remove _initialize_amd64_windows_tdep
6580 prototype.
6581 * annotate.c: Remove _initialize_annotate prototype.
6582 * arc-newlib-tdep.c: Remove _initialize_arc_newlib_tdep prototype.
6583 * arc-tdep.c: Remove _initialize_arc_tdep prototype.
6584 * arch-utils.c: Remove _initialize_gdbarch_utils prototype.
6585 * arm-linux-nat.c: Remove _initialize_arm_linux_nat prototype.
6586 * arm-linux-tdep.c: Remove _initialize_arm_linux_tdep prototype.
6587 * arm-nbsd-tdep.c: Remove _initialize_arm_netbsd_tdep prototype.
6588 * arm-obsd-tdep.c: Remove _initialize_armobsd_tdep prototype.
6589 * arm-symbian-tdep.c: Remove _initialize_arm_symbian_tdep
6590 prototype.
6591 * arm-tdep.c: Remove _initialize_arm_tdep prototype.
6592 * arm-wince-tdep.c: Remove _initialize_arm_wince_tdep prototype.
6593 * auto-load.c: Remove _initialize_auto_load prototype.
6594 * auxv.c: Remove _initialize_auxv prototype.
6595 * avr-tdep.c: Remove _initialize_avr_tdep prototype.
6596 * ax-gdb.c: Remove _initialize_ax_gdb prototype.
6597 * bfin-linux-tdep.c: Remove _initialize_bfin_linux_tdep prototype.
6598 * bfin-tdep.c: Remove _initialize_bfin_tdep prototype.
6599 * break-catch-sig.c: Remove _initialize_break_catch_sig prototype.
6600 * break-catch-syscall.c: Remove _initialize_break_catch_syscall
6601 prototype.
6602 * break-catch-throw.c: Remove _initialize_break_catch_throw
6603 prototype.
6604 * breakpoint.c: Remove _initialize_breakpoint prototype.
6605 * bsd-uthread.c: Remove _initialize_bsd_uthread prototype.
6606 * btrace.c: Remove _initialize_btrace prototype.
6607 * charset.c: Remove _initialize_charset prototype.
6608 * cli/cli-cmds.c: Remove _initialize_cli_cmds prototype.
6609 * cli/cli-dump.c: Remove _initialize_cli_dump prototype.
6610 * cli/cli-interp.c: Remove _initialize_cli_interp prototype.
6611 * cli/cli-logging.c: Remove _initialize_cli_logging prototype.
6612 * cli/cli-script.c: Remove _initialize_cli_script prototype.
6613 * coff-pe-read.c: Remove _initialize_coff_pe_read prototype.
6614 * coffread.c: Remove _initialize_coffread prototype.
6615 * compile/compile.c: Remove _initialize_compile prototype.
6616 * complaints.c: Remove _initialize_complaints prototype.
6617 * completer.c: Remove _initialize_completer prototype.
6618 * copying.awk: Remove _initialize_copying prototype.
6619 * copying.c: Regenerate.
6620 * core-regset.c: Remove _initialize_core_regset prototype.
6621 * corefile.c: Remove _initialize_core prototype.
6622 * corelow.c: Remove _initialize_corelow prototype.
6623 * cp-abi.c: Remove _initialize_cp_abi prototype.
6624 * cp-namespace.c: Remove _initialize_cp_namespace prototype.
6625 * cp-support.c: Remove _initialize_cp_support prototype.
6626 * cp-valprint.c: Remove _initialize_cp_valprint prototype.
6627 * cris-linux-tdep.c: Remove _initialize_cris_linux_tdep prototype.
6628 * cris-tdep.c: Remove _initialize_cris_tdep prototype.
6629 * ctf.c: Remove _initialize_ctf prototype.
6630 * d-lang.c: Remove _initialize_d_language prototype.
6631 * darwin-nat-info.c: Remove _initialize_darwin_info_commands
6632 prototype.
6633 * darwin-nat.c: Remove _initialize_darwin_inferior prototype.
6634 * dbxread.c: Remove _initialize_dbxread prototype.
6635 * dcache.c: Remove _initialize_dcache prototype.
6636 * demangle.c: Remove _initialize_demangler prototype.
6637 * disasm-selftests.c: Remove _initialize_disasm_selftests
6638 prototype.
6639 * disasm.c: Remove _initialize_disasm prototype.
6640 * dtrace-probe.c: Remove _initialize_dtrace_probe prototype.
6641 * dummy-frame.c: Remove _initialize_dummy_frame prototype.
6642 * dwarf2-frame-tailcall.c: Remove _initialize_tailcall_frame
6643 prototype.
6644 * dwarf2-frame.c: Remove _initialize_dwarf2_frame prototype.
6645 * dwarf2expr.c: Remove _initialize_dwarf2expr prototype.
6646 * dwarf2loc.c: Remove _initialize_dwarf2loc prototype.
6647 * dwarf2read.c: Remove _initialize_dwarf2_read prototype.
6648 * elfread.c: Remove _initialize_elfread prototype.
6649 * exec.c: Remove _initialize_exec prototype.
6650 * extension.c: Remove _initialize_extension prototype.
6651 * f-lang.c: Remove _initialize_f_language prototype.
6652 * f-valprint.c: Remove _initialize_f_valprint prototype.
6653 * fbsd-nat.c: Remove _initialize_fbsd_nat prototype.
6654 * fbsd-tdep.c: Remove _initialize_fbsd_tdep prototype.
6655 * filesystem.c: Remove _initialize_filesystem prototype.
6656 * findcmd.c: Remove _initialize_mem_search prototype.
6657 * fork-child.c: Remove _initialize_fork_child prototype.
6658 * frame-base.c: Remove _initialize_frame_base prototype.
6659 * frame-unwind.c: Remove _initialize_frame_unwind prototype.
6660 * frame.c: Remove _initialize_frame prototype.
6661 * frv-linux-tdep.c: Remove _initialize_frv_linux_tdep prototype.
6662 * frv-tdep.c: Remove _initialize_frv_tdep prototype.
6663 * ft32-tdep.c: Remove _initialize_ft32_tdep prototype.
6664 * gcore.c: Remove _initialize_gcore prototype.
6665 * gdb_bfd.c: Remove _initialize_gdb_bfd prototype.
6666 * gdbarch.c: Regenerate.
6667 * gdbarch.sh: Remove _initialize_gdbarch prototype.
6668 * gdbtypes.c: Remove _initialize_gdbtypes prototype.
6669 * gnu-nat.c: Remove _initialize_gnu_nat prototype.
6670 * gnu-v2-abi.c: Remove _initialize_gnu_v2_abi prototype.
6671 * gnu-v3-abi.c: Remove _initialize_gnu_v3_abi prototype.
6672 * go-lang.c: Remove _initialize_go_language prototype.
6673 * go32-nat.c: Remove _initialize_go32_nat prototype.
6674 * guile/guile.c: Remove _initialize_guile prototype.
6675 * h8300-tdep.c: Remove _initialize_h8300_tdep prototype.
6676 * hppa-linux-nat.c: Remove _initialize_hppa_linux_nat prototype.
6677 * hppa-linux-tdep.c: Remove _initialize_hppa_linux_tdep prototype.
6678 * hppa-nbsd-nat.c: Remove _initialize_hppanbsd_nat prototype.
6679 * hppa-nbsd-tdep.c: Remove _initialize_hppanbsd_tdep prototype.
6680 * hppa-obsd-nat.c: Remove _initialize_hppaobsd_nat prototype.
6681 * hppa-obsd-tdep.c: Remove _initialize_hppaobsd_tdep prototype.
6682 * hppa-tdep.c: Remove _initialize_hppa_tdep prototype.
6683 * i386-bsd-nat.c: Remove _initialize_i386bsd_nat prototype.
6684 * i386-cygwin-tdep.c: Remove _initialize_i386_cygwin_tdep
6685 prototype.
6686 * i386-darwin-tdep.c: Remove _initialize_i386_darwin_tdep
6687 prototype.
6688 * i386-dicos-tdep.c: Remove _initialize_i386_dicos_tdep prototype.
6689 * i386-fbsd-nat.c: Remove _initialize_i386fbsd_nat prototype.
6690 * i386-fbsd-tdep.c: Remove _initialize_i386fbsd_tdep prototype.
6691 * i386-gnu-nat.c: Remove _initialize_i386gnu_nat prototype.
6692 * i386-gnu-tdep.c: Remove _initialize_i386gnu_tdep prototype.
6693 * i386-linux-nat.c: Remove _initialize_i386_linux_nat prototype.
6694 * i386-linux-tdep.c: Remove _initialize_i386_linux_tdep prototype.
6695 * i386-nbsd-nat.c: Remove _initialize_i386nbsd_nat prototype.
6696 * i386-nbsd-tdep.c: Remove _initialize_i386nbsd_tdep prototype.
6697 * i386-nto-tdep.c: Remove _initialize_i386nto_tdep prototype.
6698 * i386-obsd-nat.c: Remove _initialize_i386obsd_nat prototype.
6699 * i386-obsd-tdep.c: Remove _initialize_i386obsd_tdep prototype.
6700 * i386-sol2-nat.c: Remove _initialize_amd64_sol2_nat prototype.
6701 * i386-sol2-tdep.c: Remove _initialize_amd64_sol2_tdep prototype.
6702 * i386-tdep.c: Remove _initialize_i386_tdep prototype.
6703 * i386-windows-nat.c: Remove _initialize_i386_windows_nat
6704 prototype.
6705 * ia64-libunwind-tdep.c: Remove _initialize_libunwind_frame
6706 prototype.
6707 * ia64-linux-nat.c: Remove _initialize_ia64_linux_nat prototype.
6708 * ia64-linux-tdep.c: Remove _initialize_ia64_linux_tdep prototype.
6709 * ia64-tdep.c: Remove _initialize_ia64_tdep prototype.
6710 * ia64-vms-tdep.c: Remove _initialize_ia64_vms_tdep prototype.
6711 * infcall.c: Remove _initialize_infcall prototype.
6712 * infcmd.c: Remove _initialize_infcmd prototype.
6713 * inferior.c: Remove _initialize_inferiors prototype.
6714 * inflow.c: Remove _initialize_inflow prototype.
6715 * infrun.c: Remove _initialize_infrun prototype.
6716 * interps.c: Remove _initialize_interpreter prototype.
6717 * iq2000-tdep.c: Remove _initialize_iq2000_tdep prototype.
6718 * jit.c: Remove _initialize_jit prototype.
6719 * language.c: Remove _initialize_language prototype.
6720 * linux-fork.c: Remove _initialize_linux_fork prototype.
6721 * linux-nat.c: Remove _initialize_linux_nat prototype.
6722 * linux-tdep.c: Remove _initialize_linux_tdep prototype.
6723 * linux-thread-db.c: Remove _initialize_thread_db prototype.
6724 * lm32-tdep.c: Remove _initialize_lm32_tdep prototype.
6725 * m2-lang.c: Remove _initialize_m2_language prototype.
6726 * m32c-tdep.c: Remove _initialize_m32c_tdep prototype.
6727 * m32r-linux-nat.c: Remove _initialize_m32r_linux_nat prototype.
6728 * m32r-linux-tdep.c: Remove _initialize_m32r_linux_tdep prototype.
6729 * m32r-tdep.c: Remove _initialize_m32r_tdep prototype.
6730 * m68hc11-tdep.c: Remove _initialize_m68hc11_tdep prototype.
6731 * m68k-bsd-nat.c: Remove _initialize_m68kbsd_nat prototype.
6732 * m68k-bsd-tdep.c: Remove _initialize_m68kbsd_tdep prototype.
6733 * m68k-linux-nat.c: Remove _initialize_m68k_linux_tdep prototype.
6734 * m68k-linux-tdep.c: Remove _initialize_m68k_linux_tdep prototype.
6735 * m68k-tdep.c: Remove _initialize_m68k_tdep prototype.
6736 * m88k-bsd-nat.c: Remove _initialize_m68kbsd_nat prototype.
6737 * m88k-tdep.c: Remove _initialize_m68kbsd_tdep prototype.
6738 * machoread.c: Remove _initialize_machoread prototype.
6739 * macrocmd.c: Remove _initialize_macrocmd prototype.
6740 * macroscope.c: Remove _initialize_macroscope prototype.
6741 * maint.c: Remove _initialize_maint_cmds prototype.
6742 * mdebugread.c: Remove _initialize_mdebugread prototype.
6743 * memattr.c: Remove _initialize_mem prototype.
6744 * mep-tdep.c: Remove _initialize_mep_tdep prototype.
6745 * mi/mi-cmd-env.c: Remove _initialize_mi_cmd_env prototype.
6746 * mi/mi-cmds.c: Remove _initialize_mi_cmds prototype.
6747 * mi/mi-interp.c: Remove _initialize_mi_interp prototype.
6748 * mi/mi-main.c: Remove _initialize_mi_main prototype.
6749 * microblaze-linux-tdep.c: Remove
6750 _initialize_microblaze_linux_tdep prototype.
6751 * microblaze-tdep.c: Remove _initialize_microblaze_tdep prototype.
6752 * mips-fbsd-nat.c: Remove _initialize_mips_fbsd_nat prototype.
6753 * mips-fbsd-tdep.c: Remove _initialize_mips_fbsd_tdep prototype.
6754 * mips-linux-nat.c: Remove _initialize_mips_linux_nat prototype.
6755 * mips-linux-tdep.c: Remove _initialize_mips_linux_tdep prototype.
6756 * mips-nbsd-nat.c: Remove _initialize_mipsnbsd_nat prototype.
6757 * mips-nbsd-tdep.c: Remove _initialize_mipsnbsd_tdep prototype.
6758 * mips-sde-tdep.c: Remove _initialize_mips_sde_tdep prototype.
6759 * mips-tdep.c: Remove _initialize_mips_tdep prototype.
6760 * mips64-obsd-nat.c: Remove _initialize_mips64obsd_nat prototype.
6761 * mips64-obsd-tdep.c: Remove _initialize_mips64obsd_tdep
6762 prototype.
6763 * mipsread.c: Remove _initialize_mipsread prototype.
6764 * mn10300-linux-tdep.c: Remove _initialize_mn10300_linux_tdep
6765 prototype.
6766 * mn10300-tdep.c: Remove _initialize_mn10300_tdep prototype.
6767 * moxie-tdep.c: Remove _initialize_moxie_tdep prototype.
6768 * msp430-tdep.c: Remove _initialize_msp430_tdep prototype.
6769 * mt-tdep.c: Remove _initialize_mt_tdep prototype.
6770 * nds32-tdep.c: Remove _initialize_nds32_tdep prototype.
6771 * nios2-linux-tdep.c: Remove _initialize_nios2_linux_tdep
6772 prototype.
6773 * nios2-tdep.c: Remove _initialize_nios2_tdep prototype.
6774 * nto-procfs.c: Remove _initialize_procfs prototype.
6775 * nto-tdep.c: Remove _initialize_nto_tdep prototype.
6776 * objc-lang.c: Remove _initialize_objc_language prototype.
6777 * objfiles.c: Remove _initialize_objfiles prototype.
6778 * observer.c: Remove observer_test_first_notification_function,
6779 observer_test_second_notification_function,
6780 observer_test_third_notification_function, and
6781 _initialize_observer prototypes.
6782 * opencl-lang.c: Remove _initialize_opencl_language prototypes.
6783 * osabi.c: Remove _initialize_gdb_osabi prototype.
6784 * osdata.c: Remove _initialize_osdata prototype.
6785 * p-valprint.c: Remove _initialize_pascal_valprint prototype.
6786 * parse.c: Remove _initialize_parse prototype.
6787 * ppc-fbsd-nat.c: Remove _initialize_ppcfbsd_nat prototype.
6788 * ppc-fbsd-tdep.c: Remove _initialize_ppcfbsd_tdep prototype.
6789 * ppc-linux-nat.c: Remove _initialize_ppc_linux_nat prototype.
6790 * ppc-linux-tdep.c: Remove _initialize_ppc_linux_tdep prototype.
6791 * ppc-nbsd-nat.c: Remove _initialize_ppcnbsd_nat prototype.
6792 * ppc-nbsd-tdep.c: Remove _initialize_ppcnbsd_tdep prototype.
6793 * ppc-obsd-nat.c: Remove _initialize_ppcobsd_nat prototype.
6794 * ppc-obsd-tdep.c: Remove _initialize_ppcobsd_tdep prototype.
6795 * printcmd.c: Remove _initialize_printcmd prototype.
6796 * probe.c: Remove _initialize_probe prototype.
6797 * proc-api.c: Remove _initialize_proc_api prototype.
6798 * proc-events.c: Remove _initialize_proc_events prototype.
6799 * proc-service.c: Remove _initialize_proc_service prototype.
6800 * procfs.c: Remove _initialize_procfs prototype.
6801 * psymtab.c: Remove _initialize_psymtab prototype.
6802 * python/python.c: Remove _initialize_python prototype.
6803 * ravenscar-thread.c: Remove _initialize_ravenscar prototype.
6804 * record-btrace.c: Remove _initialize_record_btrace prototype.
6805 * record-full.c: Remove _initialize_record_full prototype.
6806 * record.c: Remove _initialize_record prototype.
6807 * regcache.c: Remove _initialize_regcache prototype.
6808 * reggroups.c: Remove _initialize_reggroup prototype.
6809 * remote-notif.c: Remove _initialize_notif prototype.
6810 * remote-sim.c: Remove _initialize_remote_sim prototype.
6811 * remote.c: Remove _initialize_remote prototype.
6812 * reverse.c: Remove _initialize_reverse prototype.
6813 * rl78-tdep.c: Remove _initialize_rl78_tdep prototype.
6814 * rs6000-aix-tdep.c: Remove _initialize_rs6000_aix_tdep prototype.
6815 * rs6000-lynx178-tdep.c: Remove _initialize_rs6000_lynx178_tdep
6816 prototype.
6817 * rs6000-nat.c: Remove _initialize_rs6000_nat prototype.
6818 * rs6000-tdep.c: Remove _initialize_rs6000_tdep prototype.
6819 * rust-exp.y: Remove _initialize_rust_exp prototype.
6820 * rx-tdep.c: Remove _initialize_rx_tdep prototype.
6821 * s390-linux-nat.c: Remove _initialize_s390_nat prototype.
6822 * s390-linux-tdep.c: Remove _initialize_s390_tdep prototype.
6823 * score-tdep.c: Remove _initialize_score_tdep prototype.
6824 * selftest-arch.c: Remove _initialize_selftests_foreach_arch
6825 prototype.
6826 * ser-go32.c: Remove _initialize_ser_dos prototype.
6827 * ser-mingw.c: Remove _initialize_ser_windows prototype.
6828 * ser-pipe.c: Remove _initialize_ser_pipe prototype.
6829 * ser-tcp.c: Remove _initialize_ser_tcp prototype.
6830 * ser-unix.c: Remove _initialize_ser_hardwire prototype.
6831 * serial.c: Remove _initialize_serial prototype.
6832 * sh-linux-tdep.c: Remove _initialize_sh_linux_tdep prototype.
6833 * sh-nbsd-nat.c: Remove _initialize_shnbsd_nat prototype.
6834 * sh-nbsd-tdep.c: Remove _initialize_shnbsd_tdep prototype.
6835 * sh-tdep.c: Remove _initialize_sh_tdep prototype.
6836 * skip.c: Remove _initialize_step_skip prototype.
6837 * sol-thread.c: Remove _initialize_sol_thread prototype.
6838 * solib-aix.c: Remove _initialize_solib_aix prototype.
6839 * solib-darwin.c: Remove _initialize_darwin_solib prototype.
6840 * solib-dsbt.c: Remove _initialize_dsbt_solib prototype.
6841 * solib-frv.c: Remove _initialize_frv_solib prototype.
6842 * solib-spu.c: Remove _initialize_spu_solib prototype.
6843 * solib-svr4.c: Remove _initialize_svr4_solib prototype.
6844 * solib-target.c: Remove _initialize_solib_target prototype.
6845 * solib.c: Remove _initialize_solib prototype.
6846 * source.c: Remove _initialize_source prototype.
6847 * sparc-linux-nat.c: Remove _initialize_sparc_linux_nat prototype.
6848 * sparc-linux-tdep.c: Remove _initialize_sparc_linux_tdep
6849 prototype.
6850 * sparc-nat.c: Remove _initialize_sparc_nat prototype.
6851 * sparc-nbsd-nat.c: Remove _initialize_sparcnbsd_nat prototype.
6852 * sparc-nbsd-tdep.c: Remove _initialize_sparcnbsd_tdep prototype.
6853 * sparc-obsd-tdep.c: Remove _initialize_sparc32obsd_tdep
6854 prototype.
6855 * sparc-sol2-nat.c: Remove _initialize_sparc_sol2_nat prototype.
6856 * sparc-sol2-tdep.c: Remove _initialize_sparc_sol2_tdep prototype.
6857 * sparc-tdep.c: Remove _initialize_sparc_tdep prototype.
6858 * sparc64-fbsd-nat.c: Remove _initialize_sparc64fbsd_nat
6859 prototype.
6860 * sparc64-fbsd-tdep.c: Remove _initialize_sparc64fbsd_tdep
6861 prototype.
6862 * sparc64-linux-nat.c: Remove _initialize_sparc64_linux_nat
6863 prototype.
6864 * sparc64-linux-tdep.c: Remove _initialize_sparc64_linux_tdep
6865 prototype.
6866 * sparc64-nat.c: Remove _initialize_sparc64_nat prototype.
6867 * sparc64-nbsd-nat.c: Remove _initialize_sparc64nbsd_nat
6868 prototype.
6869 * sparc64-nbsd-tdep.c: Remove _initialize_sparc64nbsd_tdep
6870 prototype.
6871 * sparc64-obsd-nat.c: Remove _initialize_sparc64obsd_nat
6872 prototype.
6873 * sparc64-obsd-tdep.c: Remove _initialize_sparc64obsd_tdep
6874 prototype.
6875 * sparc64-sol2-tdep.c: Remove _initialize_sparc64_sol2_tdep
6876 prototype.
6877 * spu-linux-nat.c: Remove _initialize_spu_nat prototype.
6878 * spu-multiarch.c: Remove _initialize_spu_multiarch prototype.
6879 * spu-tdep.c: Remove _initialize_spu_tdep prototype.
6880 * stabsread.c: Remove _initialize_stabsread prototype.
6881 * stack.c: Remove _initialize_stack prototype.
6882 * stap-probe.c: Remove _initialize_stap_probe prototype.
6883 * std-regs.c: Remove _initialize_frame_reg prototype.
6884 * symfile-debug.c: Remove _initialize_symfile_debug prototype.
6885 * symfile-mem.c: Remove _initialize_symfile_mem prototype.
6886 * symfile.c: Remove _initialize_symfile prototype.
6887 * symmisc.c: Remove _initialize_symmisc prototype.
6888 * symtab.c: Remove _initialize_symtab prototype.
6889 * target-dcache.c: Remove _initialize_target_dcache prototype.
6890 * target-descriptions.c: Remove _initialize_target_descriptions
6891 prototype.
6892 * thread.c: Remove _initialize_thread prototype.
6893 * tic6x-linux-tdep.c: Remove _initialize_tic6x_linux_tdep
6894 prototype.
6895 * tic6x-tdep.c: Remove _initialize_tic6x_tdep prototype.
6896 * tilegx-linux-nat.c: Remove _initialize_tile_linux_nat prototype.
6897 * tilegx-linux-tdep.c: Remove _initialize_tilegx_linux_tdep
6898 prototype.
6899 * tilegx-tdep.c: Remove _initialize_tilegx_tdep prototype.
6900 * tracefile-tfile.c: Remove _initialize_tracefile_tfile prototype.
6901 * tracefile.c: Remove _initialize_tracefile prototype.
6902 * tracepoint.c: Remove _initialize_tracepoint prototype.
6903 * tui/tui-hooks.c: Remove _initialize_tui_hooks prototype.
6904 * tui/tui-interp.c: Remove _initialize_tui_interp prototype.
6905 * tui/tui-layout.c: Remove _initialize_tui_layout prototype.
6906 * tui/tui-regs.c: Remove _initialize_tui_regs prototype.
6907 * tui/tui-stack.c: Remove _initialize_tui_stack prototype.
6908 * tui/tui-win.c: Remove _initialize_tui_win prototype.
6909 * tui/tui.c: Remove _initialize_tui prototype.
6910 * typeprint.c: Remove _initialize_typeprint prototype.
6911 * user-regs.c: Remove _initialize_user_regs prototype.
6912 * utils.c: Remove _initialize_utils prototype.
6913 * v850-tdep.c: Remove _initialize_v850_tdep prototype.
6914 * valarith.c: Remove _initialize_valarith prototype.
6915 * valops.c: Remove _initialize_valops prototype.
6916 * valprint.c: Remove _initialize_valprint prototype.
6917 * value.c: Remove _initialize_values prototype.
6918 * varobj.c: Remove _initialize_varobj prototype.
6919 * vax-bsd-nat.c: Remove _initialize_vaxbsd_nat prototype.
6920 * vax-nbsd-tdep.c: Remove _initialize_vaxnbsd_tdep prototype.
6921 * vax-tdep.c: Remove _initialize_vax_tdep prototype.
6922 * windows-nat.c: Remove _initialize_windows_nat,
6923 _initialize_check_for_gdb_ini, and _initialize_loadable
6924 prototypes.
6925 * windows-tdep.c: Remove _initialize_windows_tdep prototype.
6926 * xcoffread.c: Remove _initialize_xcoffread prototype.
6927 * xml-support.c: Remove _initialize_xml_support prototype.
6928 * xstormy16-tdep.c: Remove _initialize_xstormy16_tdep prototype.
6929 * xtensa-linux-nat.c: Remove _initialize_xtensa_linux_nat
6930 prototype.
6931 * xtensa-linux-tdep.c: Remove _initialize_xtensa_linux_tdep
6932 prototype.
6933 * xtensa-tdep.c: Remove _initialize_xtensa_tdep prototype.
6934
6935 2017-09-08 Keith Seitz <keiths@redhat.com>
6936
6937 * dwarf2read.c (struct field_info) <fnfields>: Remove unused
6938 field.
6939
6940 2017-09-08 Christoph Weinmann <christoph.t.weinmann@intel.com>
6941
6942 * f-valprint.c (f_val_print): Remove check for one byte
6943 sized integers. Remove printing of character type.
6944
6945 2017-09-08 Frank Penczek <frank.penczek@intel.com>
6946 Christoph Weinmann <christoph.t.weinmann@intel.com>
6947 Bernhard Heckel <bernhard.heckel@intel.com>
6948
6949 * f-typeprint.c (f_type_print_base): Use fprintfi_filtered
6950 to maintain proper indentation when printing pointers/refs.
6951
6952 2017-09-07 Joel Brobecker <brobecker@adacore.com>
6953
6954 GDB 8.0.1 released.
6955
6956 2017-09-07 Joel Brobecker <brobecker@adacore.com>
6957
6958 * NEWS (Changes in GDB 7.11): Remove entry for QStartupWithShell.
6959
6960 2017-09-05 Tom Tromey <tom@tromey.com>
6961
6962 * parse.c (funcall_chain): Now a std::vector.
6963 (start_arglist, end_arglist): Simplify.
6964 (free_funcalls): Remove.
6965 (parse_exp_in_context_1): Remove cleanup.
6966
6967 2017-09-05 Tom Tromey <tom@tromey.com>
6968
6969 * go-exp.y (go_parse): Don't create a cleanup.
6970
6971 2017-09-05 Tom Tromey <tom@tromey.com>
6972
6973 * d-exp.y (PrimaryExpression): Use std::string.
6974 (d_parse): Don't create a cleanup.
6975
6976 2017-09-05 Tom Tromey <tom@tromey.com>
6977
6978 * utils.c (do_clear_parser_state): Remove.
6979 (make_cleanup_clear_parser_state): Remove.
6980 * p-exp.y (pascal_parse): Use scoped_restore.
6981 * m2-exp.y (m2_parse): Use scoped_restore.
6982 * f-exp.y (f_parse): Use scoped_restore.
6983 * d-exp.y (d_parse): Use scoped_restore.
6984 * c-exp.y (c_parse): Use scoped_restore.
6985 * ada-exp.y (ada_parse): Use scoped_restore.
6986 * utils.h (make_cleanup_clear_parser_state): Remove.
6987
6988 2017-09-06 Keith Seitz <keiths@redhat.com>
6989
6990 * dwarf2read.c (dw2_linkage_name_attr): New function.
6991 (dw2_linkage_name): New function.
6992 (dwarf2_compute_name, dwarf2_physname, read_call_site_scope)
6993 (guess_full_die_structure_name, dwarf2_name): Use dw2_linkage_name.
6994 (anonymous_struct_prefix, dwarf2_name): Use dw2_linkage_name_attr.
6995
6996 2017-09-06 Kamil Rytarowski <n54@gmx.com>
6997
6998 * config/djgpp/djconfig.sh: Correct shell portability issue.
6999
7000 2017-09-06 Kamil Rytarowski <n54@gmx.com>
7001
7002 * configure.nat: Define HAVE_NATIVE_GCORE_HOST on NetBSD.
7003
7004 2017-09-06 John Baldwin <jhb@FreeBSD.org>
7005
7006 * Makefile.in (ALLDEPFILES): Add mips-fbsd-nat.c.
7007 * NEWS: Mention new FreeBSD/mips native configuration.
7008 * configure.host: Add aarch64*-*-freebsd*.
7009 * configure.nat: Likewise.
7010 * aarch64-fbsd-nat.c: New file.
7011
7012 2017-09-06 John Baldwin <jhb@FreeBSD.org>
7013
7014 * Makefile.in (ALL_64_TARGET_OBS): Add aarch64-fbsd-tdep.o.
7015 (ALLDEPFILES): Add aarch64-fbsd-tdep.c.
7016 * NEWS: Mention new FreeBSD/aarch64 target.
7017 * configure.tgt: Add aarch64*-*-freebsd*.
7018 * aarch64-fbsd-tdep.c: New file.
7019 * aarch64-fbsd-tdep.h: New file.
7020
7021 2017-09-06 Kamil Rytarowski <n54@gmx.com>
7022
7023 * MAINTAINERS (Write After Approval): Add Kamil Rytarowski.
7024
7025 2017-09-06 Jan Kratochvil <jan.kratochvil@redhat.com>
7026
7027 * parse.c (find_minsym_type_and_address): Don't relocate addresses
7028 of TLS symbols.
7029
7030 2017-09-05 Philippe Waroquiers <philippe.waroquiers@skynet.be>
7031
7032 * objfiles.c (get_objfile_bfd_data): Remove useless obstack_init
7033 call.
7034
7035 2017-09-05 Simon Marchi <simon.marchi@ericsson.com>
7036
7037 * infrun.c (follow_exec): Call add_thread after
7038 target_find_description.
7039
7040 2017-09-05 Simon Marchi <simon.marchi@ericsson.com>
7041
7042 * infrun.c (handle_inferior_event_1): When exec'ing, read
7043 stop_pc after follow_exec.
7044
7045 2017-09-05 Simon Marchi <simon.marchi@ericsson.com>
7046
7047 * remote.c (process_g_packet): Update error message.
7048
7049 2017-09-05 Yao Qi <yao.qi@linaro.org>
7050
7051 * configure.tgt (gdb_target_obs): Add i386.o for x86_64-*
7052 targets.
7053
7054 2017-09-05 Pedro Alves <palves@redhat.com>
7055
7056 * eval.c (eval_call, evaluate_funcall): New functions, factored
7057 out from ...
7058 (evaluate_subexp_standard): ... this.
7059
7060 2017-09-05 Yao Qi <yao.qi@linaro.org>
7061
7062 * amd64-tdep.c (amd64_target_description): Create target
7063 descriptions.
7064 (_initialize_amd64_tdep): Don't call functions
7065 initialize_tdesc_amd64_*. Add self tests.
7066 * arch/amd64.c (amd64_create_target_description): Add parameter
7067 is_linux. Call set_tdesc_osabi if is_linux is true.
7068 * arch/amd64.h (amd64_create_target_description): Update the
7069 declaration.
7070 * arch/i386.c (i386_create_target_description): Add parameter
7071 is_linux. Call set_tdesc_osabi if is_linux is true.
7072 * arch/i386.h (i386_create_target_description): Update
7073 declaration.
7074 * configure.tgt: Add i386.o to gdb_target_obs.
7075 * features/Makefile (XMLTOC): Remove i386/*.xml.
7076 * features/i386/amd64-avx-avx512.c: Remove.
7077 * features/i386/amd64-avx-mpx-avx512-pku.c: Remove.
7078 * features/i386/amd64-avx-mpx.c: Remove.
7079 * features/i386/amd64-avx.c: Remove.
7080 * features/i386/amd64-mpx.c: Remove.
7081 * features/i386/amd64.c: Remove.
7082 * features/i386/i386-avx-avx512.c: Remove.
7083 * features/i386/i386-avx-mpx-avx512-pku.c: Remove.
7084 * features/i386/i386-avx-mpx.c: Remove.
7085 * features/i386/i386-avx.c: Remove.
7086 * features/i386/i386-mmx.c: Remove.
7087 * features/i386/i386-mpx.c: Remove.
7088 * features/i386/i386.c: Remove.
7089 * i386-tdep.c: Don't include features/i386/i386*.c., include
7090 target-descriptions.h and arch/i386.h.
7091 (i386_target_description): Create target descriptions.
7092 (i386_gdbarch_init): Don't call initialize_tdesc_i386_*
7093 functions. Do self tests.
7094
7095 2017-09-05 Yao Qi <yao.qi@linaro.org>
7096
7097 * features/Makefile (XMLTOC): Remove i386/amd64XXX-linux.xml.
7098 * features/i386/amd64-avx-avx512-linux.c: Removed.
7099 * features/i386/amd64-avx-linux.c: Removed.
7100 * features/i386/amd64-avx-mpx-avx512-pku-linux.c: Removed.
7101 * features/i386/amd64-avx-mpx-linux.c: Removed.
7102 * features/i386/amd64-linux.c: Removed.
7103 * features/i386/amd64-mpx-linux.c: Removed.
7104 * features/i386/x32-avx-avx512-linux.c: Removed.
7105 * features/i386/x32-avx-linux.c: Removed.
7106 * features/i386/x32-linux.c: Removed.
7107
7108 2017-09-05 Yao Qi <yao.qi@linaro.org>
7109
7110 * amd64-linux-tdep.c: Include arch/amd64.h. Don't include
7111 features/i386/*.c.
7112 (amd64_linux_read_description): Call
7113 amd64_create_target_description.
7114 * arch/amd64.c: New file.
7115 * arch/amd64.h: New file.
7116 * configure.tgt (x86_64-*-linux*): Append amd64.o.
7117 * Makefile.in (ALL_64_TARGET_OBS): Append amd64.o.
7118
7119 2017-09-05 Yao Qi <yao.qi@linaro.org>
7120
7121 * amd64-linux-tdep.c: Don't include amd64-XXX-linux and
7122 x32-XXX-linux.c. Include 64bit-XX.c and x32-XX.c.
7123 (amd64_linux_read_description): Create target descriptions.
7124 (_initialize_amd64_linux_tdep): Don't call initialize_tdesc_XXX
7125 functions. Add unit tests.
7126 * features/Makefile (FEATURE_XMLFILES): Append 64bit-XXX.xml and
7127 x32-core.xml.
7128 * features/i386/64bit-avx.c: Generated.
7129 * features/i386/64bit-avx512.c: Generated.
7130 * features/i386/64bit-core.c: Generated.
7131 * features/i386/64bit-linux.c: Generated.
7132 * features/i386/64bit-mpx.c: Generated.
7133 * features/i386/64bit-pkeys.c: Generated.
7134 * features/i386/64bit-segments.c: Generated.
7135 * features/i386/64bit-sse.c: Generated.
7136 * features/i386/x32-core.c: Generated.
7137 * target-descriptions.c (maint_print_c_tdesc_cmd): Print feature
7138 c files for amd64-linux and x32-linux.
7139
7140 2017-09-05 Yao Qi <yao.qi@linaro.org>
7141
7142 * amd64-linux-tdep.c (amd64_linux_read_description): New
7143 function.
7144 (amd64_linux_core_read_description): Call
7145 amd64_linux_read_description.
7146 (amd64_linux_init_abi): Likewise.
7147 (amd64_x32_linux_init_abi): Likewise.
7148 * amd64-linux-tdep.h (amd64_linux_read_description): Declare.
7149 * x86-linux-nat.c (x86_linux_read_description): Call
7150 amd64_linux_read_description.
7151
7152 2017-09-05 Yao Qi <yao.qi@linaro.org>
7153
7154 * amd64-linux-tdep.c (amd64_linux_core_read_description): Update
7155 comments.
7156
7157 2017-09-05 Yao Qi <yao.qi@linaro.org>
7158
7159 * features/Makefile (XMLTOC): Remove i386/i386-XX-linux.xml.
7160 * features/i386/i386-avx-avx512-linux.c: Remove.
7161 * features/i386/i386-avx-linux.c: Remove.
7162 * features/i386/i386-avx-mpx-avx512-pku-linux.c: Remove.
7163 * features/i386/i386-avx-mpx-linux.c: Remove.
7164 * features/i386/i386-linux.c: Remove.
7165 * features/i386/i386-mmx-linux.c: Remove.
7166 * features/i386/i386-mpx-linux.c: Remove.
7167
7168 2017-09-05 Yao Qi <yao.qi@linaro.org>
7169
7170 * Makefile.in (ALL_TARGET_OBS): Add i386.o.
7171 (SFILES): Add arch/i386.c.
7172 (HFILES_NO_SRCDIR): Add arch/i386.h.
7173 * arch/i386.c: New file.
7174 * arch/i386.h: New file.
7175 * arch/tdesc.h (allocate_target_description): Declare.
7176 (set_tdesc_architecture): Declare.
7177 (set_tdesc_osabi): Declare.
7178 * configure.tgt (i[34567]86-*-linux*): Add i386.o.
7179 * i386-linux-tdep.c: Don't include ../features/i386/32bit-XXX.c.
7180 include arch/i386.h.
7181 (i386_linux_read_description): Remove code and call
7182 i386_create_target_description.
7183 (set_tdesc_architecture): New function.
7184 (set_tdesc_osabi): New function.
7185 * target-descriptions.h (allocate_target_description): Remove.
7186
7187 2017-09-05 Yao Qi <yao.qi@linaro.org>
7188
7189 * arch/tdesc.h (tdesc_create_feature): Add an argument xml.
7190 * target-descriptions.c (tdesc_create_feature): Likewise, and
7191 adjust code.
7192 * features/i386/32bit-avx.c: Re-generated.
7193 * features/i386/32bit-avx512.c: Re-generated.
7194 * features/i386/32bit-core.c: Re-generated.
7195 * features/i386/32bit-linux.c: Re-generated.
7196 * features/i386/32bit-mpx.c: Re-generated.
7197 * features/i386/32bit-pkeys.c: Re-generated.
7198 * features/i386/32bit-sse.c: Re-generated.
7199
7200 2017-09-05 Yao Qi <yao.qi@linaro.org>
7201
7202 * regformats/regdef.h (struct reg): Override operator == and !=.
7203
7204 2017-09-05 Yao Qi <yao.qi@linaro.org>
7205
7206 * arch/tdesc.h: New file.
7207 * regformats/regdat.sh: Generate code using tdesc_create_reg.
7208 * target-descriptions.c: Update comments.
7209 * target-descriptions.h: Include "arch/tdesc.h". Remove the
7210 declarations.
7211 * features/i386/32bit-avx.c: Re-generated.
7212 * features/i386/32bit-avx512.c: Re-generated.
7213 * features/i386/32bit-core.c: Re-generated.
7214 * features/i386/32bit-linux.c: Re-generated.
7215 * features/i386/32bit-mpx.c: Re-generated.
7216 * features/i386/32bit-pkeys.c: Re-generated.
7217 * features/i386/32bit-sse.c: Re-generated.
7218
7219 2017-09-05 Yao Qi <yao.qi@linaro.org>
7220
7221 * regformats/regdat.sh: Update generated code.
7222
7223 2017-09-05 Yao Qi <yao.qi@linaro.org>
7224
7225 * regformats/regdat.sh: Adjust code order.
7226
7227 2017-09-05 Simon Marchi <simon.marchi@ericsson.com>
7228
7229 * expprint.c (dump_subexp_body_standard): Use constant format
7230 string in fprintf_filtered call.
7231
7232 2017-09-04 John Baldwin <jhb@FreeBSD.org>
7233
7234 * configure.nat: Add "x86-nat.o x86-dregs.o" for NetBSD/amd64 and
7235 NetBSD/i386.
7236 * x86-bsd-nat.c [!DBREG_DRX && __NetBSD__]: Define DBREG_DRX.
7237
7238 2017-09-04 John Baldwin <jhb@FreeBSD.org>
7239
7240 * bsd-kvm.o: Make <sys/user.h> conditional on HAVE_SYS_USER_H.
7241
7242 2017-09-04 John Baldwin <jhb@FreeBSD.org>
7243
7244 * bsd-kvm.o: Define _KMEMUSER.
7245 * configure.ac: Define _KMEMUSER when checking for "struct lwp".
7246 * configure: Regenerate.
7247
7248 2017-09-04 John Baldwin <jhb@FreeBSD.org>
7249
7250 * amd64-fbsd-nat.c: Add include of "x86-xstate.h".
7251 * i386-fbsd-nat.c: Likewise.
7252
7253 2017-09-04 John Baldwin <jhb@FreeBSD.org>
7254
7255 * unittests/array-view-selftests.c: Add include of <array>.
7256
7257 2017-09-04 John Baldwin <jhb@FreeBSD.org>
7258
7259 * spu-tdep.c (flush_ea_cache): Add missing argument to
7260 call_function_by_hand.
7261
7262 2017-09-04 Pedro Alves <palves@redhat.com>
7263
7264 * NEWS (Safer support for debugging with no debug info): New.
7265
7266 2017-09-04 Pedro Alves <palves@redhat.com>
7267
7268 * c-exp.y (function_method, function_method_void): Add current
7269 instance flags to TYPE_INSTANCE.
7270 * dwarf2read.c (check_modifier): New.
7271 (compute_delayed_physnames): Assert that only C++ adds delayed
7272 physnames. Mark fn_fields as const/volatile depending on
7273 physname.
7274 * eval.c (make_params): New type_instance_flags parameter. Use
7275 it as the new type's instance flags.
7276 (evaluate_subexp_standard) <TYPE_INSTANCE>: Extract the instance
7277 flags element and pass it to make_params.
7278 * expprint.c (print_subexp_standard) <TYPE_INSTANCE>: Handle
7279 instance flags element.
7280 (dump_subexp_body_standard) <TYPE_INSTANCE>: Likewise.
7281 * gdbtypes.h: Include "enum-flags.h".
7282 (type_instance_flags): New enum-flags type.
7283 (TYPE_CONST, TYPE_VOLATILE, TYPE_RESTRICT, TYPE_ATOMIC)
7284 (TYPE_CODE_SPACE, TYPE_DATA_SPACE): Return boolean.
7285 * parse.c (operator_length_standard) <TYPE_INSTANCE>: Adjust.
7286 (follow_type_instance_flags): New function.
7287 (operator_check_standard) <TYPE_INSTANCE>: Adjust.
7288 * parser-defs.h (follow_type_instance_flags): Declare.
7289 * valops.c (value_struct_elt_for_reference): const/volatile must
7290 match too.
7291
7292 2017-09-04 Pedro Alves <palves@redhat.com>
7293
7294 * cp-namespace.c (cp_search_static_and_baseclasses): Handle
7295 function/method scopes; lookup the nested name as a function local
7296 static variable.
7297
7298 2017-09-04 Pedro Alves <palves@redhat.com>
7299
7300 (%type <voidval>): Add function_method.
7301 * c-exp.y (exp): New production for calls with no arguments.
7302 (function_method, function_method_void_or_typelist): New
7303 productions.
7304 (exp): New production for "method()::static_var".
7305 * eval.c (evaluate_subexp_standard): Handle OP_FUNC_STATIC_VAR.
7306 * expprint.c (print_subexp_standard, dump_subexp_body_standard):
7307 Handle OP_FUNC_STATIC_VAR.
7308 * parse.c (operator_length_standard):
7309 Handle OP_FUNC_STATIC_VAR.
7310
7311 2017-09-04 Pedro Alves <palves@redhat.com>
7312
7313 * eval.c (evaluate_subexp_standard): Remove UNOP_MEMVAL_TLS
7314 handling.
7315 * expprint.c (print_subexp_standard, dump_subexp_body_standard):
7316 Ditto.
7317 * parse.c (operator_length_standard, operator_check_standard):
7318 Ditto.
7319 * std-operator.def (UNOP_MEMVAL_TLS): Delete.
7320
7321 2017-09-04 Pedro Alves <palves@redhat.com>
7322
7323 * ax-gdb.c: Include "typeprint.h".
7324 (gen_expr_for_cast): New function.
7325 (gen_expr) <OP_CAST, OP_CAST_TYPE>: Use it.
7326 <OP_VAR_VALUE, OP_MSYM_VAR_VALUE>: Error out if the variable's
7327 type is unknown.
7328 * dwarf2read.c (new_symbol_full): Fallback to int instead of
7329 nodebug_data_symbol.
7330 * eval.c: Include "typeprint.h".
7331 (evaluate_subexp_standard) <OP_VAR_VALUE, OP_VAR_MSYM_VALUE>:
7332 Error out if symbol has unknown type.
7333 <UNOP_CAST, UNOP_CAST_TYPE>: Common bits factored out to
7334 evaluate_subexp_for_cast.
7335 (evaluate_subexp_for_address, evaluate_subexp_for_sizeof): Handle
7336 OP_VAR_MSYM_VALUE.
7337 (evaluate_subexp_for_cast): New function.
7338 * gdbtypes.c (init_nodebug_var_type): New function.
7339 (objfile_type): Use it to initialize types of variables with no
7340 debug info.
7341 * typeprint.c (error_unknown_type): New.
7342 * typeprint.h (error_unknown_type): New declaration.
7343 * compile/compile-c-types.c (convert_type_basic): Handle
7344 TYPE_CODE_ERROR; warn and fallback to int for variables with
7345 unknown type.
7346
7347 2017-09-04 Pedro Alves <palves@redhat.com>
7348
7349 * eval.c (evaluate_var_value): New function, factored out from ...
7350 (evaluate_subexp_standard): ... here.
7351
7352 2017-09-04 Pedro Alves <palves@redhat.com>
7353
7354 * eval.c (evaluate_subexp_standard) <UNOP_COMPLEMENT, UNOP_ADDR>:
7355 Remove useless assignments to 'op'.
7356
7357 2017-09-04 Pedro Alves <palves@redhat.com>
7358
7359 * eval.c (eval_skip_value): New function.
7360 (evaluate_subexp_standard): Use it.
7361
7362 2017-09-04 Pedro Alves <palves@redhat.com>
7363
7364 * eval.c (evaluate_subexp_standard): <OP_FUNCALL>: Extract
7365 function name from symbol/minsym and pass it to
7366 error_call_unknown_return_type.
7367
7368 2017-09-04 Pedro Alves <palves@redhat.com>
7369
7370 * ada-lang.c (resolve_subexp): Handle OP_VAR_MSYM_VALUE.
7371 * ax-gdb.c (gen_msym_var_ref): New function.
7372 (gen_expr): Handle OP_VAR_MSYM_VALUE.
7373 * eval.c (evaluate_var_msym_value): New function.
7374 * eval.c (evaluate_subexp_standard): Handle OP_VAR_MSYM_VALUE.
7375 <OP_FUNCALL>: Extract function name from symbol/minsym and pass it
7376 to call_function_by_hand.
7377 * expprint.c (print_subexp_standard, dump_subexp_body_standard):
7378 Handle OP_VAR_MSYM_VALUE.
7379 (union exp_element) <msymbol>: New field.
7380 * minsyms.h (struct type): Forward declare.
7381 (find_minsym_type_and_address): Declare.
7382 * parse.c (write_exp_elt_msym): New function.
7383 (write_exp_msymbol): Delete, refactored as ...
7384 (find_minsym_type_and_address): ... this new function.
7385 (write_exp_msymbol): Reimplement using OP_VAR_MSYM_VALUE.
7386 (operator_length_standard, operator_check_standard): Handle
7387 OP_VAR_MSYM_VALUE.
7388 * std-operator.def (OP_VAR_MSYM_VALUE): New.
7389
7390 2017-09-04 Pedro Alves <palves@redhat.com>
7391
7392 * ada-lang.c (ada_evaluate_subexp) <TYPE_CODE_FUNC>: Don't handle
7393 TYPE_GNU_IFUNC specially here. Throw error if return type is
7394 unknown.
7395 * ada-typeprint.c (print_func_type): Handle functions with unknown
7396 return type.
7397 * c-typeprint.c (c_type_print_base): Handle functions and methods
7398 with unknown return type.
7399 * compile/compile-c-symbols.c (convert_symbol_bmsym)
7400 <mst_text_gnu_ifunc>: Use nodebug_text_gnu_ifunc_symbol.
7401 * compile/compile-c-types.c: Include "objfiles.h".
7402 (convert_func): For functions with unknown return type, warn and
7403 default to int.
7404 * compile/compile-object-run.c (compile_object_run): Adjust call
7405 to call_function_by_hand_dummy.
7406 * elfread.c (elf_gnu_ifunc_resolve_addr): Adjust call to
7407 call_function_by_hand.
7408 * eval.c (evaluate_subexp_standard): Adjust calls to
7409 call_function_by_hand. Handle functions and methods with unknown
7410 return type. Pass expect_type to call_function_by_hand.
7411 * f-typeprint.c (f_type_print_base): Handle functions with unknown
7412 return type.
7413 * gcore.c (call_target_sbrk): Adjust call to
7414 call_function_by_hand.
7415 * gdbtypes.c (objfile_type): Leave nodebug text symbol with NULL
7416 return type instead of int. Make nodebug_text_gnu_ifunc_symbol be
7417 an integer address type instead of nodebug.
7418 * guile/scm-value.c (gdbscm_value_call): Adjust call to
7419 call_function_by_hand.
7420 * infcall.c (error_call_unknown_return_type): New function.
7421 (call_function_by_hand): New "default_return_type" parameter.
7422 Pass it down.
7423 (call_function_by_hand_dummy): New "default_return_type"
7424 parameter. Use it instead of defaulting to int. If there's no
7425 default and the return type is unknown, throw an error. If
7426 there's a default return type, and the called function has no
7427 debug info, then assume the function is prototyped.
7428 * infcall.h (call_function_by_hand, call_function_by_hand_dummy):
7429 New "default_return_type" parameter.
7430 (error_call_unknown_return_type): New declaration.
7431 * linux-fork.c (call_lseek): Cast return type of lseek.
7432 (inferior_call_waitpid, checkpoint_command): Adjust calls to
7433 call_function_by_hand.
7434 * linux-tdep.c (linux_infcall_mmap, linux_infcall_munmap): Adjust
7435 calls to call_function_by_hand.
7436 * m2-typeprint.c (m2_procedure): Handle functions with unknown
7437 return type.
7438 * objc-lang.c (lookup_objc_class, lookup_child_selector)
7439 (value_nsstring, print_object_command): Adjust calls to
7440 call_function_by_hand.
7441 * p-typeprint.c (pascal_type_print_varspec_prefix): Handle
7442 functions with unknown return type.
7443 (pascal_type_print_func_varspec_suffix): New function.
7444 (pascal_type_print_varspec_suffix) <TYPE_CODE_FUNC,
7445 TYPE_CODE_METHOD>: Use it.
7446 * python/py-value.c (valpy_call): Adjust call to
7447 call_function_by_hand.
7448 * rust-lang.c (rust_evaluate_funcall): Adjust call to
7449 call_function_by_hand.
7450 * valarith.c (value_x_binop, value_x_unop): Adjust calls to
7451 call_function_by_hand.
7452 * valops.c (value_allocate_space_in_inferior): Adjust call to
7453 call_function_by_hand.
7454 * typeprint.c (type_print_unknown_return_type): New function.
7455 * typeprint.h (type_print_unknown_return_type): New declaration.
7456
7457 2017-09-04 Pedro Alves <palves@redhat.com>
7458
7459 * gdbtypes.c (lookup_function_type_with_arguments): Mark function
7460 types with more than one parameter as prototyped.
7461
7462 2017-09-04 Pedro Alves <palves@redhat.com>
7463
7464 * cli/cli-cmds.c (print_disassembly, disassemble_current_function)
7465 (disassemble_command): Use gdb_disassembly_flags instead of bare
7466 int.
7467 * disasm.c (gdb_pretty_print_disassembler::pretty_print_insn)
7468 (dump_insns, do_mixed_source_and_assembly_deprecated)
7469 (do_mixed_source_and_assembly, do_assembly_only, gdb_disassembly):
7470 Use gdb_disassembly_flags instead of bare int.
7471 * disasm.h (DISASSEMBLY_SOURCE_DEPRECATED, DISASSEMBLY_RAW_INSN)
7472 (DISASSEMBLY_OMIT_FNAME, DISASSEMBLY_FILENAME)
7473 (DISASSEMBLY_OMIT_PC, DISASSEMBLY_SOURCE)
7474 (DISASSEMBLY_SPECULATIVE): No longer macros. Instead they're...
7475 (enum gdb_disassembly_flag): ... values of this new enumeration.
7476 (gdb_disassembly_flags): Define.
7477 (gdb_disassembly)
7478 (gdb_pretty_print_disassembler::pretty_print_insn): Use it.
7479 * mi/mi-cmd-disas.c (mi_cmd_disassemble): Use
7480 gdb_disassembly_flags instead of bare int.
7481 * record-btrace.c (btrace_insn_history)
7482 (record_btrace_insn_history, record_btrace_insn_history_range)
7483 (record_btrace_insn_history_from): Use gdb_disassembly_flags
7484 instead of bare int.
7485 * record.c (get_insn_history_modifiers, cmd_record_insn_history):
7486 Use gdb_disassembly_flags instead of bare int.
7487 * target-debug.h (target_debug_print_gdb_disassembly_flags):
7488 Define.
7489 * target-delegates.c: Regenerate.
7490 * target.c (target_insn_history, target_insn_history_from)
7491 (target_insn_history_range): Use gdb_disassembly_flags instead of
7492 bare int.
7493 * target.h: Include "disasm.h".
7494 (struct target_ops) <to_insn_history, to_insn_history_from,
7495 to_insn_history_range>: Use gdb_disassembly_flags instead of bare
7496 int.
7497 (target_insn_history, target_insn_history_from)
7498 (target_insn_history_range): Use gdb_disassembly_flags instead of
7499 bare int.
7500
7501 2017-09-04 Simon Marchi <simon.marchi@ericsson.com>
7502
7503 * cli/cli-script.c (build_command_line): For if/while commands,
7504 check whether args is empty.
7505
7506 2017-09-04 Simon Marchi <simon.marchi@ericsson.com>
7507
7508 * cli/cli-script.h (enum misc_command_type): Move from defs.h.
7509 (enum command_control_type): Likewise.
7510 (struct command_line): Likewise.
7511 (free_command_lines): Likewise.
7512 (struct command_lines_deleter): Likewise.
7513 (command_line_up): Likewise.
7514 (read_command_lines): Likewise.
7515 (read_command_lines_1): Likewise.
7516 * defs.h (enum misc_command_type): Move to cli/cli-script.h.
7517 (enum command_control_type): Likewise.
7518 (struct command_line): Likewise.
7519 (free_command_lines): Likewise.
7520 (struct command_lines_deleter): Likewise.
7521 (command_line_up): Likewise.
7522 (read_command_lines): Likewise.
7523 (read_command_lines_1): Likewise.
7524 * breakpoint.h: Include cli/cli-script.h.
7525 * extension-priv.h: Likewise.
7526 * gdbcmd.h: Likewise.
7527
7528 2017-09-04 Pedro Alves <palves@redhat.com>
7529
7530 * ada-lang.c (is_known_support_routine): Move sal declaration to
7531 where it is initialized.
7532 * breakpoint.c (create_internal_breakpoint, init_catchpoint)
7533 (parse_breakpoint_sals, decode_static_tracepoint_spec)
7534 (clear_command, update_static_tracepoint): Remove init_sal
7535 references. Move declarations closer to initializations.
7536 * cli/cli-cmds.c (list_command): Move sal declarations closer to
7537 initializations.
7538 * elfread.c (elf_gnu_ifunc_resolver_stop): Remove init_sal
7539 references. Move sal declarations closer to initializations.
7540 * frame.c (find_frame_sal): Return a symtab_and_line via function
7541 return instead of output parameter. Remove init_sal references.
7542 * frame.h (find_frame_sal): Return a symtab_and_line via function
7543 return instead of output parameter.
7544 * guile/scm-frame.c (gdbscm_frame_sal): Adjust.
7545 * guile/scm-symtab.c (stscm_make_sal_smob): Use in-place new
7546 instead of memset.
7547 (gdbscm_find_pc_line): Remove init_sal reference.
7548 * infcall.c (call_function_by_hand_dummy): Remove init_sal
7549 references. Move declarations closer to initializations.
7550 * infcmd.c (set_step_frame): Update. Move declarations closer to
7551 initializations.
7552 (finish_backward): Remove init_sal references. Move declarations
7553 closer to initializations.
7554 * infrun.c (process_event_stop_test, handle_step_into_function)
7555 (insert_hp_step_resume_breakpoint_at_frame)
7556 (insert_step_resume_breakpoint_at_caller): Likewise.
7557 * linespec.c (create_sals_line_offset, decode_digits_ordinary)
7558 (symbol_to_sal): Likewise.
7559 * probe.c (parse_probes_in_pspace): Remove init_sal reference.
7560 * python/py-frame.c (frapy_find_sal): Move sal declaration closer
7561 to its initialization.
7562 * reverse.c (save_bookmark_command): Use new/delete. Remove
7563 init_sal references. Move declarations closer to initializations.
7564 * source.c (get_current_source_symtab_and_line): Remove brace
7565 initialization.
7566 (set_current_source_symtab_and_line): Now takes the sal by const
7567 reference. Remove brace initialization.
7568 (line_info): Remove init_sal reference.
7569 * source.h (set_current_source_symtab_and_line): Now takes a
7570 symtab_and_line via const reference.
7571 * stack.c (set_current_sal_from_frame): Adjust.
7572 (print_frame_info): Adjust.
7573 (get_last_displayed_sal): Return the sal via function return
7574 instead of via output parameter. Simplify.
7575 (frame_info): Adjust.
7576 * stack.h (get_last_displayed_sal): Return the sal via function
7577 return instead of via output parameter.
7578 * symtab.c (init_sal): Delete.
7579 (find_pc_sect_line): Remove init_sal references. Move
7580 declarations closer to initializations.
7581 (find_function_start_sal): Remove init_sal references. Move
7582 declarations closer to initializations.
7583 * symtab.h (struct symtab_and_line): In-class initialize all
7584 fields.
7585 * tracepoint.c (set_traceframe_context)
7586 (print_one_static_tracepoint_marker): Remove init_sal references.
7587 Move declarations closer to initializations.
7588 * tui/tui-disasm.c (tui_show_disassem_and_update_source): Adjust.
7589 * tui/tui-stack.c (tui_show_frame_info): Adjust. Move
7590 declarations closer to initializations.
7591 * tui/tui-winsource.c (tui_update_source_window_as_is): Remove
7592 init_sal references. Adjust.
7593
7594 2017-09-04 Pedro Alves <palves@redhat.com>
7595
7596 * ax-gdb.c (agent_command_1): Use range-for.
7597 * break-catch-throw.c (re_set_exception_catchpoint): Update.
7598 * breakpoint.c: Include "common/array-view.h".
7599 (init_breakpoint_sal, create_breakpoint_sal): Change sals
7600 parameter from struct symtabs_and_lines to
7601 array_view<symtab_and_line>. Adjust. Use range-for. Update.
7602 (breakpoint_sals_to_pc): Change sals parameter from struct
7603 symtabs_and_lines to std::vector reference.
7604 (check_fast_tracepoint_sals): Change sals parameter from struct
7605 symtabs_and_lines to std::array_view. Use range-for.
7606 (decode_static_tracepoint_spec): Return a std::vector instead of
7607 symtabs_and_lines. Update.
7608 (create_breakpoint): Update.
7609 (break_range_command, until_break_command, clear_command): Update.
7610 (base_breakpoint_decode_location, bkpt_decode_location)
7611 (bkpt_probe_create_sals_from_location)
7612 (bkpt_probe_decode_location, tracepoint_decode_location)
7613 (tracepoint_probe_decode_location)
7614 (strace_marker_create_sals_from_location): Return a std::vector
7615 instead of symtabs_and_lines.
7616 (strace_marker_create_breakpoints_sal): Update.
7617 (strace_marker_decode_location): Return a std::vector instead of
7618 symtabs_and_lines. Update.
7619 (update_breakpoint_locations): Change struct symtabs_and_lines
7620 parameters to gdb::array_view. Adjust.
7621 (location_to_sals): Return a std::vector instead of
7622 symtabs_and_lines. Update.
7623 (breakpoint_re_set_default): Use std::vector instead of struct
7624 symtabs_and_lines.
7625 (decode_location_default): Return a std::vector instead of
7626 symtabs_and_lines. Update.
7627 * breakpoint.h: Include "common/array-view.h".
7628 (struct breakpoint_ops) <decode_location>: Now returns a
7629 std::vector instead of returning a symtabs_and_lines via output
7630 parameter.
7631 (update_breakpoint_locations): Change sals parameters to use
7632 gdb::array_view.
7633 * cli/cli-cmds.c (edit_command, list_command): Update to use
7634 std::vector and gdb::array_view.
7635 (ambiguous_line_spec): Adjust to use gdb::array_view and
7636 range-for.
7637 (compare_symtabs): Rename to ...
7638 (cmp_symtabs): ... this. Change parameters to symtab_and_line
7639 const reference and adjust.
7640 (filter_sals): Rewrite using std::vector and standard algorithms.
7641 * elfread.c (elf_gnu_ifunc_resolver_return_stop): Simplify.
7642 (jump_command): Update to use std::vector.
7643 * linespec.c (struct linespec_state) <canonical_names>: Update
7644 comment.
7645 (add_sal_to_sals_basic): Delete.
7646 (add_sal_to_sals, filter_results, convert_results_to_lsals)
7647 (decode_line_2, create_sals_line_offset)
7648 (convert_address_location_to_sals, convert_linespec_to_sals)
7649 (convert_explicit_location_to_sals, parse_linespec)
7650 (event_location_to_sals, decode_line_full, decode_line_1)
7651 (decode_line_with_current_source)
7652 (decode_line_with_last_displayed, decode_objc)
7653 (decode_digits_list_mode, decode_digits_ordinary, minsym_found)
7654 (linespec_result::~linespec_result): Adjust to use std::vector
7655 instead of symtabs_and_lines.
7656 * linespec.h (linespec_sals::sals): Now a std::vector.
7657 (struct linespec_result): Use std::vector, bool, and in-class
7658 initialization.
7659 (decode_line_1, decode_line_with_current_source)
7660 (decode_line_with_last_displayed): Return std::vector.
7661 * macrocmd.c (info_macros_command): Use std::vector.
7662 * mi/mi-main.c (mi_cmd_trace_find): Use std::vector.
7663 * probe.c (parse_probes_in_pspace, parse_probes): Adjust to use
7664 std::vector.
7665 * probe.h (parse_probes): Return a std::vector.
7666 * python/python.c (gdbpy_decode_line): Use std::vector and
7667 gdb::array_view.
7668 * source.c (select_source_symtab, line_info): Use std::vector.
7669 * stack.c (func_command): Use std::vector.
7670 * symtab.h (struct symtabs_and_lines): Delete.
7671 * tracepoint.c (tfind_line_command, scope_info): Use std::vector.
7672
7673 2017-09-04 Pedro Alves <palves@redhat.com>
7674
7675 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
7676 unittests/array-view-selftests.c.
7677 (SUBDIR_UNITTESTS_OBS): Add array-view-selftests.o.
7678 * common/array-view.h: New file.
7679 * unittests/array-view-selftests.c: New file.
7680
7681 2017-09-04 Pedro Alves <palves@redhat.com>
7682
7683 * cli/cli-cmds.c (edit_command): Pass message to
7684 ambiguous_line_spec.
7685 (list_command): Pass message to ambiguous_line_spec. Say
7686 "first"/"last" instead of "start" and "end" to be consistent with
7687 the manual.
7688 (ambiguous_line_spec): Add 'format' and vararg parameters. Use
7689 them to print formatted message.
7690
7691 2017-09-04 Pedro Alves <palves@redhat.com>
7692
7693 * btrace.c (ftrace_add_pt): Pass btrace_insn to
7694 ftrace_update_insns by reference instead of pointer.
7695
7696 2017-09-04 Yao Qi <yao.qi@linaro.org>
7697
7698 * i386-go32-tdep.c: Include x86-xstate.h.
7699 (i386_go32_init_abi): Call i386_target_description.
7700 * i386-tdep.c (i386_target_description): Return tdesc_i386_mmx
7701 if xcr0 is X86_XSTATE_X87_MASK.
7702 * i386-tdep.h (tdesc_i386): Remove the declaration.
7703 (tdesc_i386_mmx): Likewise.
7704
7705 2017-09-04 Yao Qi <yao.qi@linaro.org>
7706
7707 * i386-fbsd-tdep.c (i386fbsd_core_read_xcr0): Return
7708 X86_XSTATE_SSE_MASK instead of 0.
7709
7710 2017-09-04 Yao Qi <yao.qi@linaro.org>
7711
7712 * amd64-fbsd-nat.c (amd64fbsd_read_description): Call
7713 i386_target_description.
7714 * i386-fbsd-nat.c (i386fbsd_read_description): Call
7715 i386_target_description.
7716 * i386-tdep.c (i386_gdbarch_init): Likewise.
7717
7718 2017-09-04 Yao Qi <yao.qi@linaro.org>
7719
7720 * amd64-darwin-tdep.c: Include "x86-xstate.h".
7721 (x86_darwin_init_abi_64): Call amd64_target_description.
7722 * amd64-dicos-tdep.c: Likewise.
7723 * amd64-fbsd-nat.c: Likewise.
7724 * amd64-fbsd-tdep.c: Likewise.
7725 * amd64-nbsd-tdep.c: Likewise.
7726 * amd64-obsd-tdep.c: Likewise.
7727 * amd64-sol2-tdep.c: Likewise.
7728 * amd64-windows-tdep.c: Likewise.
7729 * amd64-tdep.h (tdesc_amd64): Remove the declaration.
7730
7731 2017-09-04 Simon Marchi <simon.marchi@ericsson.com>
7732
7733 * btrace.h (btrace_insn_s, DEF_VEC_O (btrace_insn_s)): Remove.
7734 (btrace_function) <insn>: Change type to use std::vector.
7735 * btrace.c (ftrace_debug, ftrace_call_num_insn,
7736 ftrace_find_call, ftrace_new_gap, ftrace_update_function,
7737 ftrace_update_insns, ftrace_compute_global_level_offset,
7738 btrace_stitch_bts, btrace_clear, btrace_insn_get,
7739 btrace_insn_end, btrace_insn_next, btrace_insn_prev): Adjust to
7740 change to std::vector.
7741 (ftrace_update_insns): Adjust to change to std::vector, change
7742 type of INSN parameter.
7743 (btrace_compute_ftrace_bts): Adjust call to ftrace_update_insns.
7744 * record-btrace.c (btrace_call_history_insn_range,
7745 btrace_compute_src_line_range,
7746 record_btrace_frame_prev_register): Adjust to change to
7747 std::vector.
7748 * python/py-record-btrace.c (recpy_bt_func_instructions): Adjust
7749 to change to std::vector.
7750
7751 2017-09-03 Tom Tromey <tom@tromey.com>
7752
7753 * corefile.c (reopen_exec_file): Use std::string.
7754
7755 2017-09-03 Tom Tromey <tom@tromey.com>
7756
7757 * compile/compile.c (compile_register_name_mangled): Return
7758 std::string.
7759 * compile/compile-loc2c.c (pushf_register_address): Update.
7760 (pushf_register): Update.
7761 * compile/compile-c-types.c (convert_array): Update.
7762 * compile/compile-c-symbols.c (generate_vla_size): Update.
7763 (error_symbol_once): Use a gdb::unique_xmalloc_ptr.
7764 (symbol_substitution_name): Return a gdb::unique_xmalloc_ptr.
7765 (convert_one_symbol): Update.
7766 (generate_c_for_for_one_variable): Update.
7767 * compile/compile-c-support.c (c_get_range_decl_name): Return a
7768 std::string.
7769 (generate_register_struct): Update.
7770 * compile/compile-internal.h (c_get_range_decl_name): Return a
7771 std::string.
7772 (compile_register_name_mangled): Return std::string.
7773
7774 2017-09-03 Tom Tromey <tom@tromey.com>
7775
7776 * utils.c (perror_string): Return a std::string.
7777 (throw_perror_with_name, perror_warning_with_name): Update.
7778
7779 2017-09-03 Tom Tromey <tom@tromey.com>
7780
7781 * demangle.c (demangle_command): Use std::string,
7782 unique_xmalloc_ptr.
7783
7784 2017-09-03 Tom Tromey <tom@tromey.com>
7785
7786 * cli/cli-setshow.c (do_set_command): Use std::string.
7787
7788 2017-09-03 Tom Tromey <tom@tromey.com>
7789
7790 * cli/cli-cmds.c (cd_command): Use gdb::unique_xmalloc_ptr.
7791
7792 2017-09-03 Tom Tromey <tom@tromey.com>
7793
7794 * mi/mi-interp.c (mi_cmd_interpreter_exec): Use std::string.
7795
7796 2017-09-03 Tom Tromey <tom@tromey.com>
7797
7798 * mi/mi-cmd-env.c (env_execute_cli_command): Use
7799 gdb::unique_xmalloc_ptr.
7800
7801 2017-09-03 Tom Tromey <tom@tromey.com>
7802
7803 * thread.c (print_thread_info_1): Use string_printf.
7804 (thread_apply_command, thread_apply_all_command): Use
7805 std::string.
7806
7807 2017-09-03 Tom Tromey <tom@tromey.com>
7808
7809 * valprint.c (val_print_string): Update.
7810 * gdbcore.h (memory_error_message): Return std::string.
7811 * corefile.c (memory_error_message): Return std::string.
7812 (memory_error): Update.
7813 * breakpoint.c (insert_bp_location): Update.
7814
7815 2017-09-03 Simon Marchi <simon.marchi@ericsson.com>
7816
7817 * target/waitstatus.h (target_waitstatus_to_string): Change
7818 return type to std::string.
7819 * target/waitstatus.c (target_waitstatus_to_string): Return
7820 std::string.
7821 * target.h (target_waitstatus_to_string): Remove declaration.
7822 * infrun.c (resume, clear_proceed_status_thread,
7823 print_target_wait_results, do_target_wait, save_waitstatus,
7824 stop_all_threads): Adjust.
7825 * record-btrace.c (record_btrace_wait): Adjust.
7826 * target-debug.h
7827 (target_debug_print_struct_target_waitstatus_p): Adjust.
7828
7829 2017-09-01 Jan Kratochvil <jan.kratochvil@redhat.com>
7830
7831 PR gdb/22046
7832 * nat/linux-procfs.c (parse_proc_status_state): Fix PROC_STATE_STOPPED
7833 detection.
7834
7835 2017-08-31 Sergio Durigan Junior <sergiodj@redhat.com>
7836
7837 * NEWS (Changes since GDB 8.0): Add entry mentioning new support
7838 for setting/unsetting environment variables on the remote target.
7839 (New remote packets): Add entries for QEnvironmentHexEncoded,
7840 QEnvironmentUnset and QEnvironmentReset.
7841 * common/environ.c (gdb_environ::operator=): Extend method to
7842 handle m_user_set_env_list and m_user_unset_env_list.
7843 (gdb_environ::clear): Likewise.
7844 (match_var_in_string): Change type of first parameter from 'char
7845 *' to 'const char *'.
7846 (gdb_environ::set): Extend method to handle
7847 m_user_set_env_list and m_user_unset_env_list.
7848 (gdb_environ::unset): Likewise.
7849 (gdb_environ::clear_user_set_env): New method.
7850 (gdb_environ::user_set_envp): Likewise.
7851 (gdb_environ::user_unset_envp): Likewise.
7852 * common/environ.h (gdb_environ): Handle m_user_set_env_list and
7853 m_user_unset_env_list on move constructor/assignment.
7854 (unset): Add new default parameter 'update_unset_list = true'.
7855 (clear_user_set_env): New method.
7856 (user_set_envp): Likewise.
7857 (user_unset_envp): Likewise.
7858 (m_user_set_env_list): New std::set.
7859 (m_user_unset_env_list): Likewise.
7860 * common/rsp-low.c (hex2str): New function.
7861 (bin2hex): New overload for bin2hex function.
7862 * common/rsp-low.c (hex2str): New prototype.
7863 (str2hex): New overload prototype.
7864 * remote.c: Include "environ.h". Add QEnvironmentHexEncoded,
7865 QEnvironmentUnset and QEnvironmentReset.
7866 (remote_protocol_features): Add QEnvironmentHexEncoded,
7867 QEnvironmentUnset and QEnvironmentReset packets.
7868 (send_environment_packet): New function.
7869 (extended_remote_environment_support): Likewise.
7870 (extended_remote_create_inferior): Call
7871 extended_remote_environment_support.
7872 (_initialize_remote): Add QEnvironmentHexEncoded,
7873 QEnvironmentUnset and QEnvironmentReset packet configs.
7874 * unittests/environ-selftests.c (gdb_selftest_env_var):
7875 New variable.
7876 (test_vector_initialization): New function.
7877 (test_init_from_host_environ): Likewise.
7878 (test_reinit_from_host_environ): Likewise.
7879 (test_set_A_unset_B_unset_A_cannot_find_A_can_find_B):
7880 Likewise.
7881 (test_unset_set_empty_vector): Likewise.
7882 (test_vector_clear): Likewise.
7883 (test_std_move): Likewise.
7884 (test_move_constructor):
7885 (test_self_move): Likewise.
7886 (test_set_unset_reset): Likewise.
7887 (run_tests): Rewrite in terms of the functions above.
7888
7889 2017-08-31 Weimin Pan <weimin.pan@oracle.com>
7890
7891 * sparc64-tdep.c (adi_stat_t): Fix comment formatting.
7892 (adi_available): Use a temp variable of type CORE_ADDR as argument
7893 3 when calling target_auxv_search.
7894 (adi_normalize_address): Use masks and xor operators to calculate
7895 normalized address.
7896 (adi_read_versions, adi_write_versions, adi_print_versions)
7897 (do_examine, do_assign): Use paddress.
7898
7899 2017-08-29 John Baldwin <jhb@FreeBSD.org>
7900
7901 * mips-fbsd-nat.c (getfpregs_supplies): Return true for FIR.
7902 * mips-fbsd-tdep.c (mips_fbsd_supply_fpregs): Split supply of FSR
7903 out of loop and add supply of FIR.
7904 (mips_fbsd_collect_fpregs): Split collect of FSR out of loop and
7905 add collect of FIR.
7906
7907 2017-08-28 Simon Marchi <simon.marchi@ericsson.com>
7908
7909 PR gdb/21827
7910 * cli/cli-script.c (define_command): Don't convert command name
7911 to lower case.
7912
7913 2017-08-25 Joel Brobecker <brobecker@adacore.com>
7914
7915 * ada-lang.c (ada_lookup_struct_elt_type): Remove parameter "dispp".
7916 Update all callers accordingly. Remove all code blocks handling
7917 the case where DISPP is not NULL.
7918
7919 2017-08-24 Jan Kratochvil <jan.kratochvil@redhat.com>
7920
7921 PR symtab/22003
7922 * dwarf2read.c (dwarf2_const_value_attr, dump_die_shallow)
7923 (dwarf2_get_attr_constant_value, dwarf2_fetch_constant_bytes)
7924 (skip_form_bytes, attr_form_is_constant): Handle DW_FORM_implicit_const.
7925
7926 2017-08-24 Jan Kratochvil <jan.kratochvil@redhat.com>
7927
7928 * dwarf2read.c (build_type_psymtabs_reader): New prototype.
7929 (process_psymtab_comp_unit): Accept IS_DEBUG_TYPES.
7930 (read_comp_units_from_section): New parameter abbrev_section, use
7931 read_and_check_comp_unit_head, allocate signatured_type if needed.
7932 (create_all_comp_units): Update read_comp_units_from_section caller.
7933
7934 2017-08-23 Pedro Alves <palves@redhat.com>
7935
7936 PR remote/21852
7937 * remote.c (add_current_inferior_and_thread): Set inferior_ptid
7938 to null_ptid and switch to thread without reading the registers
7939 after adding the inferior.
7940
7941 2017-08-23 Jan Kratochvil <jan.kratochvil@redhat.com>
7942
7943 * NEWS (Changes since GDB 8.0): Add set compile-gcc and show
7944 compile-gcc.
7945 * compile/compile.c (compile_gcc, show_compile_gcc): New.
7946 (compile_to_object): Implement compile_gcc.
7947 (_initialize_compile): Install "set compile-gcc". Initialize
7948 compile_gcc.
7949
7950 2017-08-23 Jan Kratochvil <jan.kratochvil@redhat.com>
7951
7952 * compile/compile.c (compile_to_object): Conditionally call
7953 set_verbose. Conditionally call compile or compile_v0.
7954
7955 2017-08-07 Weimin Pan <weimin.pan@oracle.com>
7956
7957 * sparc64-tdep.h: (adi_normalize_address): New export.
7958 * sparc-nat.h: (open_adi_tag_fd): New export.
7959 * sparc64-linux-nat.c: (open_adi_tag_fd): New function.
7960 * sparc64-linux-tdep.c:
7961 (SEGV_ACCADI, SEGV_ADIDERR, SEGV_ADIPERR) New defines.
7962 (sparc64_linux_handle_segmentation_fault): New function.
7963 (sparc64_linux_init_abi): Register
7964 sparc64_linux_handle_segmentation_fault
7965 * sparc64-tdep.c: Include cli-utils.h,gdbcmd.h,auxv.h.
7966 (sparc64_addr_bits_remove): New function.
7967 (sparc64_init_abi): Register sparc64_addr_bits_remove.
7968 (MAX_PROC_NAME_SIZE): New macro.
7969 (AT_ADI_BLKSZ, AT_ADI_NBITS, AT_ADI_UEONADI) New defines.
7970 (sparc64adilist): New variable.
7971 (adi_proc_list): New variable.
7972 (find_adi_info): New function.
7973 (add_adi_info): New function.
7974 (get_adi_info_proc): New function.
7975 (get_adi_info): New function.
7976 (info_adi_command): New function.
7977 (read_maps_entry): New function.
7978 (adi_available): New function.
7979 (adi_normalize_address): New function.
7980 (adi_align_address): New function.
7981 (adi_convert_byte_count): New function.
7982 (adi_tag_fd): New function.
7983 (adi_is_addr_mapped): New function.
7984 (adi_read_versions): New function.
7985 (adi_write_versions): New function.
7986 (adi_print_versions): New function.
7987 (do_examine): New function.
7988 (do_assign): New function.
7989 (adi_examine_command): New function.
7990 (adi_assign_command): New function.
7991 (_initialize_sparc64_adi_tdep): New function.
7992
7993 2017-08-22 Simon Marchi <simon.marchi@ericsson.com>
7994
7995 * breakpoint.c (breakpoints_info): Rename to ...
7996 (info_breakpoints_command): ... this.
7997 (watchpoints_info): Rename to ...
7998 (info_watchpoints_command): ... this.
7999 (tracepoints_info): Rename to ...
8000 (info_tracepoints_command): ... this.
8001 (_initialize_breakpoint): Adjust.
8002 * dcache.c (dcache_info): Rename to ...
8003 (info_display_command): ... this.
8004 (_initialize_dcache): Adjust.
8005 * frame.h (args_info): Rename to ...
8006 (info_args_command): ... this.
8007 (locals_info): Rename to ...
8008 (info_locals_command): ... this.
8009 * infcmd.c (nofp_registers_info): Rename to ...
8010 (info_registers_command): ... this.
8011 (float_info): Rename to ...
8012 (info_float_command): ... this.
8013 (program_info): Rename to ...
8014 (info_program_command): ... this.
8015 (all_registers_info): Rename to ...
8016 (info_all_registers_command): ... this.
8017 (vector_info): Rename to ...
8018 (info_vector_command): ... this.
8019 (float_info): Rename to ...
8020 (info_float_command): ... this.
8021 (_initialize_infcmd): Adjust.
8022 * inferior.h (term_info): Rename to ...
8023 (info_terminal_command): ... this.
8024 * inflow.c (term_info): Rename to ...
8025 (info_terminal_command): ... this.
8026 (_initialize_inflow): Adjust.
8027 * infrun.c (signals_info): Rename to ...
8028 (info_signals_command): ... this.
8029 (_initialize_infrun): Adjust.
8030 * objc-lang.c (classes_info): Rename to ...
8031 (info_classes_command): ... this.
8032 (selectors_info): Rename to ...
8033 (info_selectors_command): ... this.
8034 (_initialize_objc_language): Adjust.
8035 * printcmd.c (sym_info): Rename to ...
8036 (info_symbol_command): ... this.
8037 (address_info): Rename to ...
8038 (info_address_command): ... this.
8039 (display_info): Rename to ...
8040 (info_display_command): ... this.
8041 (_initialize_printcmd): Adjust.
8042 * reverse.c (bookmarks_info): Rename to ...
8043 (info_breakpoints_command): ... this.
8044 (_initialize_reverse): Adjust.
8045 * ser-go32.c (dos_info): Rename to ...
8046 (info_serial_command): ... this.
8047 (_initialize_ser_dos): Adjust.
8048 * skip.c (skip_info): Rename to ...
8049 (info_skip_command): ... this.
8050 (_initialize_step_skip): Adjust.
8051 * source.c (line_info): Rename to ...
8052 (info_line_command): ... this.
8053 (source_info): Rename to ...
8054 (info_source_command)
8055 * stack.c (frame_info): Rename to ...
8056 (info_frame_command): ... this.
8057 (locals_info): Rename to ...
8058 (info_locals_command): ... this.
8059 (args_info): Rename to ...
8060 (info_args_command): ... this.
8061 (_initialize_stack): Adjust.
8062 * symtab.c (sources_info): Rename to ...
8063 (info_sources_command): ... this.
8064 (variables_info): Rename to ...
8065 (info_variables_command): ... this.
8066 (functions_info): Rename to ...
8067 (info_functions_command): ... this.
8068 (types_info): Rename to ...
8069 (info_types_command): ... this.
8070 (_initialize_symtab): Adjust.
8071 * target.c (target_info): Rename to ...
8072 (info_target_command): ... this.
8073 (initialize_targets): Adjust.
8074 * tracepoint.c (tvariables_info): Rename to ...
8075 (info_tvariables_command): ... this.
8076 (scope_info): Rename to ...
8077 (info_scope_command): ... this.
8078 (trace_dump_actions): Adjust.
8079 (_initialize_tracepoint): Adjust.
8080
8081 2017-08-22 Tom Tromey <tom@tromey.com>
8082
8083 * breakpoint.h (install_breakpoint): Update.
8084 * breakpoint.c (add_solib_catchpoint): Update.
8085 (install_breakpoint): Change argument to a std::unique_ptr.
8086 (create_fork_vfork_event_catchpoint): Use std::unique_ptr.
8087 (create_breakpoint_sal, create_breakpoint): Update.
8088 (watch_command_1, catch_exec_command_1)
8089 (strace_marker_create_breakpoints_sal): Use std::unique_ptr.
8090 (add_to_breakpoint_chain): Change argument to a std::unique_ptr.
8091 Return the breakpoint.
8092 (set_raw_breakpoint_without_location, set_raw_breakpoint)
8093 (new_single_step_breakpoint): Update.
8094 * break-catch-throw.c (handle_gnu_v3_exceptions): Use
8095 std::unique_ptr.
8096 * break-catch-syscall.c (create_syscall_event_catchpoint): Use
8097 std::unique_ptr.
8098 * break-catch-sig.c (create_signal_catchpoint): Use
8099 std::unique_ptr.
8100 * ada-lang.c (create_ada_exception_catchpoint): Use
8101 std::unique_ptr.
8102
8103 2017-08-22 Tom Tromey <tom@tromey.com>
8104
8105 * breakpoint.c (add_solib_catchpoint): Use std::unique_ptr.
8106
8107 2017-08-22 Tom Tromey <tom@tromey.com>
8108
8109 * psymtab.c (psymtab_search_name): Return a unique_xmalloc_ptr.
8110 (lookup_partial_symbol): Update.
8111
8112 2017-08-22 Tom Tromey <tom@tromey.com>
8113
8114 * source.h (rewrite_source_path): Return a unique_xmalloc_ptr.
8115 * source.c (rewrite_source_path): Return a unique_xmalloc_ptr.
8116 (find_and_open_source, symtab_to_fullname): Update.
8117 * psymtab.c (psymtab_to_fullname): Update.
8118
8119 2017-08-22 Tom Tromey <tom@tromey.com>
8120
8121 * exec.c (exec_file_attach): Update.
8122 * linux-thread-db.c (try_thread_db_load): Update.
8123 * guile/scm-safe-call.c (gdbscm_safe_source_script): Update.
8124 * utils.c (gdb_realpath): Change return type.
8125 (gdb_realpath_keepfile): Update.
8126 (gdb_realpath_check_trailer, gdb_realpath_tests): New functions.
8127 (_initialize_utils): Register the new self test.
8128 * source.c (openp): Update.
8129 (find_and_open_source): Update.
8130 * nto-tdep.c (nto_find_and_open_solib): Update.
8131 * main.c (set_gdb_data_directory): Update.
8132 (captured_main_1): Update.
8133 * dwarf2read.c (dwarf2_get_dwz_file): Update
8134 (dw2_map_symbol_filenames): Update.
8135 * auto-load.c (auto_load_safe_path_vec_update): Update.
8136 (filename_is_in_auto_load_safe_path_vec): Change type of
8137 "filename_realp".
8138 (auto_load_objfile_script): Update.
8139 (file_is_auto_load_safe): Update. Use std::string.
8140 * utils.h (gdb_realpath): Return a gdb::unique_xmalloc_ptr.
8141
8142 2017-08-22 Tom Tromey <tom@tromey.com>
8143
8144 * utils.c (gdb_realpath_keepfile): Return a
8145 gdb::unique_xmalloc_ptr.
8146 * exec.c (exec_file_attach): Update.
8147 * utils.h (gdb_realpath_keepfile): Return a
8148 gdb::unique_xmalloc_ptr.
8149
8150 2017-08-22 Tom Tromey <tom@tromey.com>
8151
8152 * compile/compile.c (compile_file_command): Use
8153 gdb::unique_xmalloc_ptr, std::string.
8154 * utils.c (gdb_abspath): Change return type.
8155 * source.c (openp): Update.
8156 * objfiles.c (allocate_objfile): Update.
8157 * main.c (set_gdb_data_directory): Update.
8158 * utils.h (gdb_abspath): Return a gdb::unique_xmalloc_ptr.
8159
8160 2017-08-22 Zhouyi Zhou <zhouzhouyi@gmail.com>
8161
8162 * cli-cmds.c (list_commands): List actual code around more than
8163 one location.
8164
8165 2017-08-21 John Baldwin <jhb@FreeBSD.org>
8166
8167 * fbsd-nat.c (fbsd_add_threads): Use array type for `lwps'.
8168
8169 2017-08-21 Pedro Alves <palves@redhat.com>
8170
8171 PR gdb/19487
8172 * c-exp.y (variable production): Handle function aliases.
8173 * minsyms.c (msymbol_is_text): New function.
8174 * minsyms.h (msymbol_is_text): Declare.
8175 * symtab.c (find_function_alias_target): New function.
8176 * symtab.h (find_function_alias_target): Declare.
8177
8178 2017-08-21 Pedro Alves <palves@redhat.com>
8179
8180 * eval.c (evaluate_subexp_standard) <OP_TYPE>: Don't dig past
8181 typedefs.
8182 * typeprint.c (whatis_exp): If handling "whatis", and expression
8183 is OP_TYPE, strip one typedef level. Otherwise don't strip
8184 typedefs here.
8185 * valops.c (value_cast): Save "to" type before resolving
8186 stubs/typedefs. Use that type as resulting value's type.
8187
8188 2017-08-18 Tom Tromey <tom@tromey.com>
8189 Pedro Alves <palves@redhat.com>
8190
8191 * spu-multiarch.c (parse_spufs_run): Use scoped_restore.
8192 * sol-thread.c (sol_thread_resume, sol_thread_wait)
8193 (sol_thread_xfer_partial, rw_common): Use scoped_restore.
8194 * procfs.c (procfs_do_thread_registers): Use scoped_restore.
8195 * proc-service.c (ps_xfer_memory): Use scoped_restore.
8196 * linux-tdep.c (linux_corefile_thread): Remove a cleanup.
8197 (linux_get_siginfo_data): Add "thread" argument. Use
8198 scoped_restore.
8199 * linux-nat.c (linux_child_follow_fork)
8200 (check_stopped_by_watchpoint): Use scoped_restore.
8201 * infrun.c (displaced_step_prepare_throw, write_memory_ptid)
8202 (THREAD_STOPPED_BY, handle_signal_stop): Use scoped_restore.
8203 (restore_inferior_ptid, save_inferior_ptid): Remove.
8204 * btrace.c (btrace_fetch): Use scoped_restore.
8205 * bsd-uthread.c (bsd_uthread_fetch_registers)
8206 (bsd_uthread_store_registers): Use scoped_restore.
8207 * breakpoint.c (reattach_breakpoints, detach_breakpoints): Use
8208 scoped_restore.
8209 * aix-thread.c (aix_thread_resume, aix_thread_wait)
8210 (aix_thread_xfer_partial): Use scoped_restore.
8211 * inferior.h (save_inferior_ptid): Remove.
8212
8213 2017-08-18 Yao Qi <yao.qi@linaro.org>
8214
8215 PR tdep/21818
8216 * arm-tdep.c (gdb_print_insn_arm): Mark
8217 USER_SPECIFIED_MACHINE_TYPE if exec_bfd isn't NULL.
8218
8219 2017-08-18 Yao Qi <yao.qi@linaro.org>
8220
8221 * NEWS: Mention GDBserver's new option "--selftest".
8222 * Makefile.in (SFILES): Remove selftest.c, add common/selftest.c.
8223 * selftest.c: Move it to common/selftest.c.
8224 * selftest.h: Move it to common/selftest.h.
8225 * selftest-arch.c (reset): New function.
8226 (tests_with_arch): Call reset.
8227
8228 2017-08-18 Yao Qi <yao.qi@linaro.org>
8229
8230 * selftest.c (run_tests): Don't call QUIT. Call debug_printf
8231 instead of exception_fprintf and printf_filtered.
8232
8233 2017-08-18 Yao Qi <yao.qi@linaro.org>
8234
8235 * selftest.c (register_self_test): Rename it to
8236 selftests::register_test.
8237 (run_self_tests): selftest::run_tests.
8238 * selftest.h: Update declarations.
8239 * selftest-arch.c (register_self_test_foreach_arch): Rename it to
8240 selftests::register_test_foreach_arch.
8241 * selftest-arch.h: Update declaration.
8242 * aarch64-tdep.c: Update.
8243 * arm-tdep.c: Likewise.
8244 * disasm-selftests.c: Likewise.
8245 * dwarf2loc.c: Likewise.
8246 * dwarf2-frame.c: Likewise.
8247 * findvar.c: Likewise.
8248 * gdbarch-selftests.c: Likewise.
8249 * maint.c (maintenance_selftest): Likewise.
8250 * regcache.c: Likewise.
8251 * rust-exp.y: Likewise.
8252 * selftest-arch.c: Likewise.
8253 * unittests/environ-selftests.c: Likewise.
8254 * unittests/function-view-selftests.c: Likewise.
8255 * unittests/offset-type-selftests.c: Likewise.
8256 * unittests/optional-selftests.c: Likewise.
8257 * unittests/scoped_restore-selftests.c: Likewise.
8258 * utils-selftests.c: Likewise.
8259
8260 2017-08-17 Pedro Alves <palves@redhat.com>
8261
8262 * cli/cli-cmds.c (source_command): Delete 'old_source_verbose'
8263 local.
8264
8265 2017-08-17 Pedro Alves <palves@redhat.com>
8266
8267 * dwarf2read.c (struct dwarf2_cu) <line_header_die_owner>: New
8268 field.
8269 (reset_die_in_process): Delete, replaced by ...
8270 (process_die_scope): ... this new class. Make it responsible for
8271 freeing cu->line_header too.
8272 (process_die): Use process_die_scope.
8273 (handle_DW_AT_stmt_list): Record the line header's owner CU/DIE in
8274 cu->line_header_die_owner. Don't release the line header if it's
8275 owned by the CU.
8276 (setup_type_unit_groups): Make the CU/DIE own the line header.
8277 Don't release the line header here.
8278
8279 2017-08-17 Alex Lindsay <alexlindsay239@gmail.com> (tiny change)
8280
8281 * elfread.c (elf_read_minimal_symbols): xfree synthsyms.
8282
8283 2017-08-17 Ruslan Kabatsayev <b7.10110111@gmail.com>
8284
8285 * NEWS: Mention new shortcuts for nexti and stepi in TUI
8286 Single-Key mode
8287
8288 2017-08-16 Ruslan Kabatsayev <b7.10110111@gmail.com>
8289
8290 * tui/tui.c (tui_commands): Add "nexti" and "stepi" to the Single-Key
8291 mode command list.
8292
8293 2017-08-15 Stafford Horne <shorne@gmail.com>
8294
8295 * MAINTAINERS (Write After Approval): Add Stafford Horne.
8296
8297 2017-08-15 Stafford Horne <shorne@gmail.com>
8298
8299 * xtensa-tdep.c (xtensa_init_reggroups): Use xstrdup for cpname.
8300
8301 2017-08-15 Sergio Durigan Junior <sergiodj@redhat.com>
8302
8303 PR gdb/21954
8304 * infcmd.c (unset_environment_command): Use the 'clear' method on
8305 the environment instead of resetting it.
8306
8307 2017-08-15 John Baldwin <jhb@FreeBSD.org>
8308
8309 * fbsd-nat.c (fbsd_convert_siginfo): Fix compile on big-endian
8310 platforms.
8311
8312 2017-08-14 Tom Tromey <tom@tromey.com>
8313
8314 * valprint.c (print_octal_chars): Use HOST_CHAR_BIT.
8315 (print_binary_chars): Likewise.
8316 (BITS_IN_BYTES): Remove.
8317
8318 2017-08-14 Tom Tromey <tom@tromey.com>
8319
8320 PR gdb/21675
8321 * valprint.c (LOW_ZERO): Change value to 034.
8322 (print_octal_chars): Add static_asserts for octal constants.
8323 * printcmd.c (print_scalar_formatted): Add 'd' case.
8324
8325 2017-08-11 Tom Tromey <tom@tromey.com>
8326
8327 * symfile.c (add_symbol_file_command): Use std::vector.
8328
8329 2017-08-14 Tom Tromey <tom@tromey.com>
8330
8331 * break-catch-throw.c (handle_gnu_v3_exceptions): Use std::move.
8332 * break-catch-syscall.c (create_syscall_event_catchpoint): Use
8333 std::move.
8334 * break-catch-sig.c (create_signal_catchpoint): Use std::move.
8335
8336 2017-08-11 Pedro Alves <palves@redhat.com>
8337
8338 * infrun.c (process_event_stop_test): Adjust
8339 function_name_is_marked_for_skip call.
8340 * skip.c: Include <list>.
8341 (skiplist_entry): Make it a class with private fields, and
8342 getters/setters.
8343 (skiplist_entry_chain): Delete.
8344 (skiplist_entries): New.
8345 (skiplist_entry_count): Delete.
8346 (highest_skiplist_entry_num): New.
8347 (ALL_SKIPLIST_ENTRIES, ALL_SKIPLIST_ENTRIES_SAFE): Delete.
8348 (add_skiplist_entry): Delete.
8349 (skiplist_entry::skiplist_entry): New.
8350 (skiplist_entry::add_entry): New.
8351 (skip_file_command, skip_function): Adjust.
8352 (compile_skip_regexp): Delete.
8353 (skip_command): Don't compile regexp here. Adjust to use
8354 skiplist_entry::add_entry.
8355 (skip_info): Adjust to use range-for and getters.
8356 (skip_enable_command, skip_disable_command): Adjust to use
8357 range-for and setters.
8358 (skip_delete_command): Adjust to use std::list.
8359 (add_skiplist_entry): Delete.
8360 (skip_file_p): Delete, refactored as ...
8361 (skiplist_entry::do_skip_file_p): ... this new method.
8362 (skip_gfile_p): Delete, refactored as ...
8363 (skiplist_entry::do_gskip_file_p): ... this new method.
8364 (skip_function_p, skip_rfunction_p): Delete, refactored as ...
8365 (skiplist_entry::skip_function_p): ... this new method.
8366 (function_name_is_marked_for_skip): Now returns bool, and takes
8367 the function sal by const reference. Adjust to use range-for and
8368 skiplist_entry methods.
8369 (_initialize_step_skip): Remove references to
8370 skiplist_entry_chain, skiplist_entry_count.
8371 * skip.h (function_name_is_marked_for_skip): Now returns bool, and
8372 takes the function sal by const reference.
8373
8374 2017-08-11 Yao Qi <yao.qi@linaro.org>
8375
8376 * dwarf2-frame.c (clear_pointer_cleanup): Remove.
8377 (dwarf2_frame_cache): Remove reset_cache_cleanup.
8378 (dwarf2_frame_cache):
8379 * frame-unwind.c (frame_unwind_try_unwinder): Catch
8380 RETURN_MASK_ALL and set *this_case to NULL.
8381 * frame-unwind.h: Update comments.
8382
8383 2017-08-11 Yao Qi <yao.qi@linaro.org>
8384
8385 * dwarf2-frame.c (dwarf2_frame_state_alloc_regs): Remove.
8386 (dwarf2_frame_state_copy_regs): Remove.
8387 (dwarf2_frame_state_free_regs): Remove.
8388 (dwarf2_frame_state::~dwarf2_frame_state): Remove.
8389 (dwarf2_restore_rule): Call method .alloc_regs instead of
8390 dwarf2_frame_state_alloc_regs.
8391 (execute_cfa_program): Likewise. Call dwarf2_frame_state_reg_info
8392 constructor. Call std::move.
8393 (dwarf2_fetch_cfa_info): Don't call dwarf2_frame_state_copy_regs.
8394 (dwarf2_frame_cache): Likewise.
8395
8396 [GDB_SELF_TEST]: Include selftest.h and
8397 selftest-arch.h.
8398 [GDB_SELF_TEST] (execute_cfa_program_test): New function.
8399 (_initialize_dwarf2_frame) [GDB_SELF_TEST]: Register
8400 execute_cfa_program_test.
8401
8402 * dwarf2-frame.h (dwarf2_frame_state_reg_info): Add ctor, dtor,
8403 copy ctor, assignment operator, move assignment.
8404 <alloc_regs>: New method.
8405 <swap>: New method.
8406 (struct dwarf2_frame_state): Delete dtor.
8407 (dwarf2_frame_state_alloc_regs): Remove declaration.
8408 * sparc-tdep.c (sparc_execute_dwarf_cfa_vendor_op): Don't call
8409 dwarf2_frame_state_alloc_regs, use .alloc_regs instead.
8410
8411 2017-08-11 Yao Qi <yao.qi@linaro.org>
8412
8413 * dwarf2-frame.c (dwarf2_frame_state_free): Remove.
8414 (dwarf2_frame_state::dwarf2_frame_state): New.
8415 (dwarf2_frame_state::~dwarf2_frame_state): New.
8416 (dwarf2_fetch_cfa_info): Update.
8417 (dwarf2_frame_cache): Remove old_chain. Change 'fs' to an object
8418 rather than a pointer. Update code.
8419 * dwarf2-frame.h (struct dwarf2_frame_state): Declare ctor and
8420 dtor.
8421 <data_align, code_align, retaddr_column>: Change them to const.
8422 <armcc_cfa_offsets_sf, armcc_cfa_offsets_reversed>: Change them
8423 to bool.
8424
8425 2017-08-11 Yao Qi <yao.qi@linaro.org>
8426
8427 * dwarf2-frame.h (struct dwarf2_frame_state_reg) <exp_len>: Remove.
8428 <loc.exp>: New field.
8429 * dwarf2-frame.c (execute_cfa_program): Update.
8430 (dwarf2_frame_prev_register): Update.
8431
8432 2017-08-10 Pedro Alves <palves@redhat.com>
8433
8434 * common/gdb_unique_ptr.h (xfree_deleter<T[]>): Define.
8435
8436 2017-08-09 John Baldwin <jhb@FreeBSD.org>
8437
8438 * fbsd-nat.c (struct fbsd_fork_info): Remove.
8439 (fbsd_pending_children): Use std::list.
8440 (fbsd_remember_child): Likewise.
8441 (fbsd_is_child_pending): Likewise.
8442 (fbsd_pending_vfork_done): Use std::forward_list.
8443 (fbsd_add_vfork_done): Likewise.
8444 (fbsd_is_vfork_done_pending): Likewise.
8445 (fbsd_next_vfork_done): Likewise.
8446
8447 2017-08-09 John Baldwin <jhb@FreeBSD.org>
8448
8449 * fbsd-nat.c [HAVE_KINFO_GETVMMAP] (struct free_deleter): New.
8450 (fbsd_find_memory_regions): Use free_deleter with std::unique_ptr.
8451 [!HAVE_KINFO_GETVMMAP] (fbsd_find_memory_regions): Use std::string
8452 for `mapfilename'.
8453 (fbsd_xfer_partial): Use gdb::byte_vector.
8454 (fbsd_add_threads): Use gdb::unique_xmalloc_ptr.
8455
8456 2017-08-09 John Baldwin <jhb@FreeBSD.org>
8457
8458 * fbsd-nat.c: [!HAVE_KINFO_GETVMMAP]: Include <sys/user.h> and
8459 "filestuff.h".
8460 (fbsd_find_memory_regions): Fix `mapfile' initialization.
8461
8462 2017-08-09 Tom Tromey <tom@tromey.com>
8463
8464 * skip.c (skiplist_entry): New constructor.
8465 (skiplist_entry::enabled, skiplist_entry::function_is_regexp)
8466 (skiplist_entry::file_is_glob): Now bool.
8467 (skiplist_entry::file, skiplist_entry::function): Now
8468 std::string.
8469 (make_skip_entry): Return a unique_ptr. Use new.
8470 (free_skiplist_entry, free_skiplist_entry_cleanup)
8471 (make_free_skiplist_entry_cleanup): Remove.
8472 (skip_command, skip_disable_command, add_skiplist_entry)
8473 (skip_form_bytes, compile_skip_regexp, skip_command, skip_info)
8474 (skip_file_p, skip_gfile_p, skip_function_p, skip_rfunction_p)
8475 (function_name_is_marked_for_skip): Update.
8476 (skip_delete_command): Update. Use delete.
8477
8478 2017-08-09 Jiong Wang <jiong.wang@arm.com>
8479
8480 * aarch64-linux-tdep.c: Include "auxv.h" and "elf/common.h".
8481 (aarch64_linux_core_read_description): New function.
8482 (aarch64_linux_init_abi): Register gdbarch_core_read_description.
8483
8484 2017-08-09 Pedro Alves <palves@redhat.com>
8485
8486 * cp-name-parser.y (cp_comp_to_string): Return a
8487 gdb::unique_xmalloc_ptr<char>.
8488 * cp-support.c (replace_typedefs_qualified_name)
8489 (replace_typedefs): Adjust to use gdb::unique_xmalloc_ptr<char>.
8490 (cp_canonicalize_string_full): Use op= instead of explicit
8491 convertion.
8492 (cp_class_name_from_physname, method_name_from_physname)
8493 (cp_func_name, cp_remove_params): Adjust to use
8494 gdb::unique_xmalloc_ptr<char>.
8495 * cp-support.h (cp_comp_to_string): Return a
8496 gdb::unique_xmalloc_ptr<char>.
8497 * python/py-type.c (typy_lookup_type): Adjust to use
8498 gdb::unique_xmalloc_ptr<char>.
8499
8500 2017-08-09 H.J. Lu <hongjiu.lu@intel.com>
8501
8502 * dwarf2read.c (dwarf2_string_attr): Fix a typo.
8503
8504 2017-08-09 Alex Lindsay <alexlindsay239@gmail.com>
8505 Yao Qi <yao.qi@linaro.org>
8506
8507 * cp-support.c (cp_canonicalize_string_full): Use
8508 gdb::unique_xmalloc_ptr<char>.
8509 (cp_canonicalize_string): Likewise.
8510
8511 2017-08-09 Yao Qi <yao.qi@linaro.org>
8512
8513 * features/Makefile (WHICH): Remove i386/ non-linux stuff.
8514 * regformats/i386/amd64-avx-avx512.dat: Remove.
8515 * regformats/i386/amd64-avx-mpx-avx512-pku.dat: Remove.
8516 * regformats/i386/amd64-avx-mpx.dat:Remove.
8517 * regformats/i386/amd64-avx.dat: Remove.
8518 * regformats/i386/amd64-mpx.dat: Remove.
8519 * regformats/i386/i386-avx-avx512.dat: Remove.
8520 * regformats/i386/i386-avx-mpx-avx512-pku.dat: Remove.
8521 * regformats/i386/i386-avx-mpx.dat: Remove.
8522 * regformats/i386/i386-mmx.dat: Remove.
8523 * regformats/i386/i386-mpx.dat: Remove.
8524
8525 2017-08-09 Yao Qi <yao.qi@linaro.org>
8526
8527 * amd64-tdep.h (tdesc_x32): Remove the declaration.
8528 * amd64-tdep.c: Don't include features/i386/x32*.c.
8529 (_initialize_amd64_tdep): Don't call initialize_tdesc_x32*
8530 functions.
8531 * features/Makefile (WHICH): Remove i386/x32, i386/x32-avx,
8532 and i386/x32-avx-avx512.
8533 (XMLTOC): Remove i386/x32-avx.xml, i386/x32-avx-avx512.xml,
8534 and i386/x32.xml.
8535 * features/i386/x32-avx-avx512.c: Removed.
8536 * features/i386/x32-avx-avx512.xml: Removed.
8537 * features/i386/x32-avx.c: Removed.
8538 * features/i386/x32-avx.xml: Removed.
8539 * features/i386/x32.c: Removed.
8540 * features/i386/x32.xml: Removed.
8541 * regformats/i386/x32-avx-avx512.dat: Removed.
8542 * regformats/i386/x32-avx.dat: Removed.
8543 * regformats/i386/x32.dat: Removed.
8544
8545 2017-08-07 Maciej W. Rozycki <macro@imgtec.com>
8546
8547 PR breakpoints/21886
8548 * mem-break.c (default_memory_insert_breakpoint): Use
8549 `->placed_address' rather than `->reqstd_address' for the
8550 breakpoint location.
8551
8552 2017-08-07 Maciej W. Rozycki <macro@imgtec.com>
8553
8554 * arch-utils.c (default_print_insn): Remove arch/mach/endian
8555 assertions.
8556
8557 2017-08-07 Maciej W. Rozycki <macro@imgtec.com>
8558
8559 * gdbarch.sh (gdbarch_info): Replace the `tdep_info' member with
8560 a union of `tdep_info', `tdesc_data' and `id'.
8561 * aarch64-tdep.c (aarch64_gdbarch_init): Use `info.tdesc_data'
8562 rather than `info.tdep_info'.
8563 * amd64-linux-tdep.c (amd64_linux_init_abi): Likewise.
8564 * i386-linux-tdep.c (i386_linux_init_abi): Likewise.
8565 * i386-tdep.c (i386_gdbarch_init): Likewise.
8566 * mips-linux-tdep.c (mips_linux_init_abi): Likewise.
8567 * mips-tdep.c (mips_gdbarch_init): Likewise.
8568 * nds32-tdep.c (nds32_gdbarch_init): Likewise.
8569 * rs6000-tdep.c (rs6000_gdbarch_init): Likewise.
8570 * ppc-linux-tdep.c (ppu2spu_sniffer): Use `info.id' rather than
8571 `info.tdep_info'.
8572 (ppc_linux_init_abi): Use `info.tdesc_data' rather than
8573 `info.tdep_info'.
8574 * sparc-tdep.c (sparc32_gdbarch_init): Likewise.
8575 * spu-multiarch.c (spu_gdbarch): Use `info.id' rather than
8576 `info.tdep_info'.
8577 * spu-tdep.c (spu_gdbarch_init): Likewise.
8578 * gdbarch.h: Regenerate.
8579
8580 2017-08-07 Leszek Swirski <leszeks@google.com>
8581
8582 PR symtab/20899
8583 * dwarf2read.c (dwarf2_string_attr): Allow DW_FORM_GNU_strp_alt.
8584
8585 2017-08-07 Simon Marchi <simon.marchi@ericsson.com>
8586
8587 * remote-sim.c (gdbsim_load): Remove char **argv local variable.
8588 (gdbsim_open): Rename gdb_argv args object to argv.
8589
8590 2017-08-05 Tom Tromey <tom@tromey.com>
8591
8592 * compile/compile-object-load.c (compile_object_load): Use
8593 gdb::unique_xmalloc_ptr.
8594 * cli/cli-dump.c (scan_filename): Rename from
8595 scan_filename_with_cleanup. Change return type.
8596 (scan_expression): Rename from scan_expression_with_cleanup.
8597 Change return type.
8598 (dump_memory_to_file, dump_value_to_file, restore_command):
8599 Use gdb::unique_xmalloc_ptr. Update.
8600 * cli/cli-cmds.c (find_and_open_script): Use
8601 gdb::unique_xmalloc_ptr.
8602 * tracefile-tfile.c (tfile_open): Use gdb::unique_xmalloc_ptr.
8603 * symmisc.c (maintenance_print_symbols)
8604 (maintenance_print_msymbols): Use gdb::unique_xmalloc_ptr.
8605 * symfile.c (symfile_bfd_open, generic_load)
8606 (add_symbol_file_command, remove_symbol_file_command): Use
8607 gdb::unique_xmalloc_ptr.
8608 * source.c (openp): Use gdb::unique_xmalloc_ptr.
8609 * psymtab.c (maintenance_print_psymbols): Use
8610 gdb::unique_xmalloc_ptr.
8611 * corelow.c (core_open): Use gdb::unique_xmalloc_ptr.
8612 * breakpoint.c (save_breakpoints): Use gdb::unique_xmalloc_ptr.
8613 * solib.c (solib_map_sections): Use gdb::unique_xmalloc_ptr.
8614 (reload_shared_libraries_1): Likewise.
8615
8616 2017-08-05 Tom Tromey <tom@tromey.com>
8617
8618 * rust-exp.y (rust_op_ptr, set_field): Remove typedefs.
8619 (rust_op_vector, rust_set_vector): New typedefs.
8620 (current_parser): New global.
8621 (work_obstack): Change to pointer type. Update all users.
8622 (rust_ast, pstate): Remove globals.
8623 (struct rust_parser): New.
8624 (%union) <params, field_inits>: Change type.
8625 (start, tuple_expr, unit_expr, struct_expr_list, literal)
8626 (field_expr, expr_list, maybe_expr_list, type_list): Update.
8627 (ast_call_ish, ast_path, ast_function_type, ast_tuple_type)
8628 (convert_params_to_types, convert_params_to_expression): Change
8629 type of "params".
8630 (ast_string): Change type of "fields".
8631 (rust_parse): Make a rust_parser. Remove cleanups.
8632 (rust_lex_tests): Make and install an auto_obstack.
8633
8634 2017-08-04 Yao Qi <yao.qi@linaro.org>
8635
8636 * configure.srv (ipa_x32_linux_regobj): New.
8637 * linux-amd64-ipa.c (get_ipa_tdesc): Use X86_TDESC_AVX_AVX512
8638 instead of X86_TDESC_AVX512.
8639 (initialize_low_tracepoint): Call
8640 init_registers_x32_avx_avx512_linux.
8641
8642 2017-08-04 Yao Qi <yao.qi@linaro.org>
8643
8644 * utils.h (gdb_argv): Add namespace std for nullptr_t.
8645
8646 2017-08-03 Ruslan Kabatsayev <b7.10110111@gmail.com>
8647
8648 * MAINTAINERS (Write After Approval): Add Ruslan Kabatsayev.
8649
8650 2017-08-03 Tom Tromey <tom@tromey.com>
8651
8652 * utils.c (make_cleanup_freeargv, do_freeargv, gdb_buildargv):
8653 Remove.
8654 * utils.h (make_cleanup_freeargv, gdb_buildargv): Remove.
8655
8656 2017-08-03 Tom Tromey <tom@tromey.com>
8657
8658 * python/py-param.c (compute_enum_values): Use gdb_argv.
8659
8660 2017-08-03 Tom Tromey <tom@tromey.com>
8661
8662 * utils.h (struct gdb_argv_deleter): New.
8663 (gdb_argv): New class.
8664 * utils.c (gdb_argv::reset): New method.
8665 * tracepoint.c (delete_trace_variable_command): Use gdb_argv.
8666 * tracefile.c (tsave_command): Use gdb_argv.
8667 * top.c (new_ui_command): Use gdb_argv.
8668 * symmisc.c (maintenance_print_symbols)
8669 (maintenance_print_msymbols, maintenance_expand_symtabs): Use gdb_argv.
8670 * symfile.c (symbol_file_command, generic_load)
8671 (remove_symbol_file_command): Use gdb_argv.
8672 * stack.c (backtrace_command): Use gdb_argv.
8673 * source.c (add_path, show_substitute_path_command)
8674 (unset_substitute_path_command, set_substitute_path_command):
8675 Use gdb_argv.
8676 * skip.c (skip_command): Use gdb_argv. Use gdb_buildargv.
8677 * ser-mingw.c (pipe_windows_open): Use gdb_argv.
8678 * remote.c (extended_remote_run, remote_put_command)
8679 (remote_get_command, remote_delete_command): Use gdb_argv.
8680 * remote-sim.c (gdbsim_load, gdbsim_create_inferior)
8681 (gdbsim_open): Use gdb_argv.
8682 * python/py-cmd.c (gdbpy_string_to_argv): Use gdb_argv.
8683 * psymtab.c (maintenance_print_psymbols): Use gdb_argv.
8684 * procfs.c (procfs_info_proc): Use gdb_argv.
8685 * interps.c (interpreter_exec_cmd): Use gdb_argv.
8686 * infrun.c (handle_command): Use gdb_argv.
8687 * inferior.c (add_inferior_command, clone_inferior_command):
8688 Use gdb_argv.
8689 * guile/scm-string.c (gdbscm_string_to_argv): Use gdb_argv.
8690 * exec.c (exec_file_command): Use gdb_argv.
8691 * cli/cli-cmds.c (alias_command): Use gdb_argv.
8692 * compile/compile.c (build_argc_argv): Use gdb_argv.
8693
8694 2017-08-03 Tom Tromey <tom@tromey.com>
8695
8696 * python/python.c (gdbpy_decode_line): Use unique_xmalloc_ptr.
8697
8698 2017-08-03 Tom Tromey <tom@tromey.com>
8699
8700 * python/python.c (compute_python_string): Return std::string.
8701 (gdbpy_eval_from_control_command): Update.
8702 (do_start_initialization): Use std::string.
8703 * python/py-varobj.c (py_varobj_iter_next): Use string_printf, not
8704 xstrprintf.
8705 * python/py-breakpoint.c (local_setattro): Use string_printf, not
8706 xstrprintf.
8707
8708 2017-08-03 Tom Tromey <tom@tromey.com>
8709
8710 * top.h (do_restore_instream_cleanup): Remove.
8711 * top.c (do_restore_instream_cleanup): Remove.
8712 (read_command_file): Use scoped_restore.
8713 * cli/cli-script.c (execute_user_command): Use scoped_restore.
8714
8715 2017-08-03 Tom Tromey <tom@tromey.com>
8716
8717 * cli/cli-script.c (execute_user_command)
8718 (execute_control_command): Use scoped_restore.
8719
8720 2017-08-03 Tom Tromey <tom@tromey.com>
8721
8722 * cli/cli-script.c (do_restore_user_call_depth): Remove.
8723 (execute_user_command): Remove user_call_depth; use
8724 user_args_stack's size instead.
8725
8726 2017-08-03 Tom Tromey <tom@tromey.com>
8727
8728 * top.h (in_user_command): Remove.
8729 * top.c (in_user_command): Remove.
8730 * cli/cli-script.c (do_restore_user_call_depth)
8731 (execute_user_command): Update.
8732
8733 2017-08-03 Tom Tromey <tom@tromey.com>
8734
8735 * valops.c (search_struct_method): Use gdb::byte_vector.
8736 * valarith.c (value_concat): Use std::vector.
8737 * target.c (memory_xfer_partial): Use gdb::byte_vector.
8738 (simple_search_memory): Likewise.
8739 * printcmd.c (find_string_backward): Use gdb::byte_vector.
8740 * mi/mi-main.c (mi_cmd_data_write_memory): Use gdb::byte_vector.
8741 * gcore.c (gcore_copy_callback): Use gdb::byte_vector.
8742 * elfread.c (elf_rel_plt_read): Use std::string.
8743 * cp-valprint.c (cp_print_value): Use gdb::byte_vector.
8744 * cli/cli-dump.c (restore_section_callback): Use
8745 gdb::byte_vector.
8746
8747 2017-08-03 Tom Tromey <tom@tromey.com>
8748
8749 * jit.c (jit_reader_load_command): Use unique_xmalloc_ptr.
8750
8751 2017-08-03 Tom Tromey <tom@tromey.com>
8752
8753 * tui/tui-regs.c (tui_restore_gdbout): Remove.
8754 (tui_register_format): Use scoped_restore.
8755
8756 2017-08-03 Tom Tromey <tom@tromey.com>
8757
8758 * reverse.c (exec_direction_default): Remove.
8759 (exec_reverse_once): Use scoped_restore.
8760 * remote.c (restore_remote_timeout): Remove.
8761 (remote_flash_erase, remote_flash_write, remote_flash_done)
8762 (readchar, remote_serial_write): Use scoped_restore.
8763 * cli/cli-script.c (struct source_cleanup_lines_args)
8764 (source_cleanup_lines): Remove.
8765 (script_from_file): Use scoped_restore.
8766 * cli/cli-cmds.c (source_verbose_cleanup): Remove.
8767 (source_command): Use scoped_restore.
8768
8769 2017-08-03 Tom Tromey <tom@tromey.com>
8770
8771 * utils.h (make_cleanup_free_so): Remove.
8772 * utils.c (do_free_so, make_cleanup_free_so): Remove.
8773 * solist.h (struct so_deleter): New.
8774 (so_list_up): New typedef.
8775 * solib-svr4.c (svr4_read_so_list): Use so_list_up.
8776
8777 2017-08-03 Tom Tromey <tom@tromey.com>
8778
8779 * utils.h (make_cleanup_restore_current_language): Remove.
8780 * utils.c (do_restore_current_language)
8781 (make_cleanup_restore_current_language): Remove.
8782 * parse.c (parse_exp_in_context_1)
8783 (parse_expression_with_language): Use
8784 scoped_restore_current_language.
8785 * mi/mi-main.c (mi_cmd_execute): Use
8786 scoped_restore_current_language.
8787 * language.h (scoped_restore_current_language): New class.
8788
8789 2017-08-03 Tom Tromey <tom@tromey.com>
8790
8791 * compile/compile.c (cleanup_unlink_file): Remove.
8792 (compile_to_object): Use gdb::unlinker.
8793 (eval_compile_command): Likewise.
8794
8795 2017-08-03 Tom Tromey <tom@tromey.com>
8796
8797 * utils.h (make_cleanup_fclose): Remove.
8798 * utils.c (do_fclose_cleanup, make_cleanup_fclose): Remove.
8799
8800 2017-08-03 Tom Tromey <tom@tromey.com>
8801
8802 * top.c (open_terminal_stream): Return gdb_file_up.
8803 (new_ui_command): Update.
8804
8805 2017-08-03 Tom Tromey <tom@tromey.com>
8806
8807 * source.c (print_source_lines_base, forward_search_command)
8808 (reverse_search_command): Use gdb_file_up.
8809
8810 2017-08-03 Tom Tromey <tom@tromey.com>
8811
8812 * fbsd-nat.c (fbsd_find_memory_regions): Update.
8813
8814 2017-08-03 Tom Tromey <tom@tromey.com>
8815
8816 * cli/cli-cmds.c (find_and_open_script): Change return type.
8817 Remove "streamp" and "full_path" parameters.
8818 (source_script_with_search): Update.
8819 * auto-load.c (source_script_file): Update.
8820 * cli/cli-cmds.h (find_and_open_script): Change type.
8821 (open_script): New struct.
8822
8823 2017-08-03 Tom Tromey <tom@tromey.com>
8824
8825 * xml-support.c (xml_fetch_content_from_file): Update.
8826 * ui-file.c (stdio_file::open): Update.
8827 * tracefile-tfile.c (tfile_start): Update.
8828 * remote.c (remote_file_put, remote_file_get): Update.
8829 * nat/linux-procfs.c (linux_proc_get_int)
8830 (linux_proc_pid_get_state, linux_proc_tid_get_name): Update.
8831 * nat/linux-osdata.c (linux_common_core_of_thread): Update.
8832 (command_from_pid, commandline_from_pid, linux_xfer_osdata_cpus)
8833 (print_sockets, linux_xfer_osdata_shm, linux_xfer_osdata_sem)
8834 (linux_xfer_osdata_msg, linux_xfer_osdata_modules): Update.
8835 * nat/linux-btrace.c (linux_determine_kernel_start): Update.
8836 * linux-nat.c (linux_proc_pending_signals): Update.
8837 * dwarf2read.c (write_psymtabs_to_index): Use gdb_file_up.
8838 (file_closer): Remove.
8839 * compile/compile.c (compile_to_object): Update.
8840 * common/filestuff.h (struct gdb_file_deleter): New.
8841 (gdb_file_up): New typedef.
8842 (gdb_fopen_cloexec): Change return type.
8843 * common/filestuff.c (gdb_fopen_cloexec): Return gdb_file_up.
8844 * cli/cli-dump.c (fopen_with_cleanup): Remove.
8845 (dump_binary_file, restore_binary_file): Update.
8846 * auto-load.c (auto_load_objfile_script_1): Update.
8847
8848 2017-08-03 Tom Tromey <tom@tromey.com>
8849
8850 * tracepoint.c (tvariables_info_1): Use ui_out_emit_table.
8851 (info_static_tracepoint_markers_command): Likewise.
8852 * solib.c (info_sharedlibrary_command): Use ui_out_emit_table.
8853 * skip.c (skip_info): Use ui_out_emit_table.
8854 * progspace.c (print_program_space): Use ui_out_emit_table.
8855 * osdata.c (info_osdata): Use ui_out_emit_table.
8856 * mi/mi-cmd-info.c (mi_cmd_info_ada_exceptions): Use
8857 ui_out_emit_table.
8858 * linux-thread-db.c (info_auto_load_libthread_db): Use
8859 ui_out_emit_table.
8860 * inferior.c (print_inferior): Use ui_out_emit_table.
8861 * gdb_bfd.c (maintenance_info_bfds): Use ui_out_emit_table.
8862 * breakpoint.c (breakpoint_1): Use ui_out_emit_table.
8863 * auto-load.c (auto_load_info_scripts): Use ui_out_emit_table.
8864 * ada-tasks.c (print_ada_task_info): Use ui_out_emit_table.
8865 * ui-out.h (class ui_out_emit_table): New.
8866
8867 2017-08-02 Maciej W. Rozycki <macro@imgtec.com>
8868
8869 * mips-tdep.c (mips_fpu_type_str): New function.
8870 (mips_dump_tdep): Call it.
8871
8872 2017-08-01 Maciej W. Rozycki <macro@imgtec.com>
8873
8874 * mips-tdep.c (mips_gdbarch_init): Use MIPS_FPU_TYPE to access
8875 `->mips_fpu_type'.
8876
8877 2017-07-31 Xavier Roirand <roirand@adacore.com>
8878
8879 * solib-darwin.c (DYLD_VERSION_MAX): Increase value.
8880
8881 2017-07-27 Xavier Roirand <roirand@adacore.com>
8882
8883 * MAINTAINERS (Write After Approval): Add Xavier Roirand.
8884
8885 2017-07-26 Yao Qi <yao.qi@linaro.org>
8886
8887 * cli/cli-cmds.c (maintenancechecklist): New variable.
8888 * gdbcmd.h (maintenancechecklist): Declare it.
8889 * i386-linux-tdep.c (_initialize_i386_linux_tdep) [GDB_SELF_TEST]:
8890 Call i386_linux_read_description with different masks.
8891 * maint.c (maintenance_check_command): New function.
8892 (_initialize_maint_cmds): Call add_prefix_cmd.
8893 * target-descriptions.c (tdesc_reg): override operator != and ==.
8894 (tdesc_type): Likewise.
8895 (tdesc_feature): Likewise.
8896 (target_desc): Likewise.
8897 [GDB_SELF_TEST] (selftests::record_xml_tdesc): New function.
8898 (maintenance_check_xml_descriptions): New function.
8899 (_initialize_target_descriptions) Add command "xml-descriptions".
8900 * target-descriptions.h (selftests::record_xml_tdesc): Declare.
8901
8902 2017-07-26 Yao Qi <yao.qi@linaro.org>
8903
8904 * i386-linux-tdep.c: Don't include features/i386/i386-*linux.c.
8905 Include features/i386/32bit-*.c.
8906 (i386_linux_read_description): Generate target description if it
8907 doesn't exist.
8908 (_initialize_i386_linux_tdep): Don't call _initialize_tdesc_i386
8909 functions.
8910 * features/i386/32bit-linux.c: Re-generated.
8911 * features/i386/32bit-sse.c: Likewise.
8912 * target-descriptions.c (print_c_feature::visit): Print code to
8913 set register number if needed.
8914 (print_c_feature) <m_next_regnum>: New field.
8915
8916 2017-07-26 Yao Qi <yao.qi@linaro.org>
8917
8918 * features/Makefile (CFILES): Rename with TDESC_CFILES.
8919 (FEATURE_XMLFILES): New.
8920 (FEATURE_CFILES): New.
8921 New rules.
8922 (clean-cfiles): Remove generated c files.
8923 * features/i386/32bit-avx.c: Generated.
8924 * features/i386/32bit-avx512.c: Generated.
8925 * features/i386/32bit-core.c: Generated.
8926 * features/i386/32bit-linux.c: Generated.
8927 * features/i386/32bit-mpx.c: Generated.
8928 * features/i386/32bit-pkeys.c: Generated.
8929 * features/i386/32bit-sse.c: Generated.
8930 * target-descriptions.c: Include algorithm.
8931 (tdesc_element_visitor): Add method visit_end.
8932 (print_c_tdesc): Implement visit_end.
8933 (print_c_tdesc:: m_filename_after_features): Move it to
8934 protected.
8935 (print_c_feature): New class.
8936 (maint_print_c_tdesc_cmd): Use print_c_feature if XML file
8937 name starts with "i386/32bit-".
8938
8939 2017-07-26 Yao Qi <yao.qi@linaro.org>
8940
8941 * target-descriptions.c (tdesc_element_visitor): New class.
8942 (tdesc_element): New class.
8943 (tdesc_reg): Inherit from tdesc_element.
8944 (tdesc_reg::accept): New function.
8945 (tdesc_type): Inherit from tdesc_element.
8946 (tdesc_type::accept): New function.
8947 (tdesc_feature): Inherit from tdesc_element.
8948 (tdesc_feature::accept): New function.
8949 (target_desc): Inherit from tdesc_element.
8950 (target_desc::target_desc): New.
8951 (target_desc::~target_desc): New.
8952 (target_desc::accept): New.
8953 (allocate_target_description): Use new.
8954 (free_target_description): Use delete.
8955 (print_c_tdesc): New class.
8956 (maint_print_c_tdesc_cmd): Adjust.
8957
8958 * features/aarch64.c: Re-generated.
8959 * features/arc-arcompact.c: Re-generated.
8960 * features/arc-v2.c: Re-generated.
8961 * features/arm/arm-with-iwmmxt.c: Re-generated.
8962 * features/arm/arm-with-m.c: Re-generated.
8963 * features/arm/arm-with-m-fpa-layout.c: Re-generated.
8964 * features/arm/arm-with-m-vfp-d16.c: Re-generated.
8965 * features/arm/arm-with-neon.c: Re-generated.
8966 * features/arm/arm-with-vfpv2.c: Re-generated.
8967 * features/arm/arm-with-vfpv3.c: Re-generated.
8968 * features/i386/amd64-avx-avx512.c: Re-generated.
8969 * features/i386/amd64-avx-avx512-linux.c: Re-generated.
8970 * features/i386/amd64-avx.c: Re-generated.
8971 * features/i386/amd64-avx-linux.c: Re-generated.
8972 * features/i386/amd64-avx-mpx-avx512-pku.c: Re-generated.
8973 * features/i386/amd64-avx-mpx-avx512-pku-linux.c: Re-generated.
8974 * features/i386/amd64-avx-mpx.c: Re-generated.
8975 * features/i386/amd64-avx-mpx-linux.c: Re-generated.
8976 * features/i386/amd64.c: Re-generated.
8977 * features/i386/amd64-linux.c: Re-generated.
8978 * features/i386/amd64-mpx.c: Re-generated.
8979 * features/i386/amd64-mpx-linux.c: Re-generated.
8980 * features/i386/i386-avx-avx512.c: Re-generated.
8981 * features/i386/i386-avx-avx512-linux.c: Re-generated.
8982 * features/i386/i386-avx.c: Re-generated.
8983 * features/i386/i386-avx-linux.c: Re-generated.
8984 * features/i386/i386-avx-mpx-avx512-pku.c: Re-generated.
8985 * features/i386/i386-avx-mpx-avx512-pku-linux.c: Re-generated.
8986 * features/i386/i386-avx-mpx.c: Re-generated.
8987 * features/i386/i386-avx-mpx-linux.c: Re-generated.
8988 * features/i386/i386.c: Re-generated.
8989 * features/i386/i386-linux.c: Re-generated.
8990 * features/i386/i386-mmx.c: Re-generated.
8991 * features/i386/i386-mmx-linux.c: Re-generated.
8992 * features/i386/i386-mpx.c: Re-generated.
8993 * features/i386/i386-mpx-linux.c: Re-generated.
8994 * features/i386/x32-avx-avx512.c: Re-generated.
8995 * features/i386/x32-avx-avx512-linux.c: Re-generated.
8996 * features/i386/x32-avx.c: Re-generated.
8997 * features/i386/x32-avx-linux.c: Re-generated.
8998 * features/i386/x32.c: Re-generated.
8999 * features/i386/x32-linux.c: Re-generated.
9000 * features/microblaze.c: Re-generated.
9001 * features/microblaze-with-stack-protect.c: Re-generated.
9002 * features/mips64-dsp-linux.c: Re-generated.
9003 * features/mips64-linux.c: Re-generated.
9004 * features/mips-dsp-linux.c: Re-generated.
9005 * features/mips-linux.c: Re-generated.
9006 * features/nds32.c: Re-generated.
9007 * features/nios2.c: Re-generated.
9008 * features/nios2-linux.c: Re-generated.
9009 * features/rs6000/powerpc-32.c: Re-generated.
9010 * features/rs6000/powerpc-32l.c: Re-generated.
9011 * features/rs6000/powerpc-403.c: Re-generated.
9012 * features/rs6000/powerpc-403gc.c : Re-generated.
9013 * features/rs6000/powerpc-405.c: Re-generated.
9014 * features/rs6000/powerpc-505.c: Re-generated.
9015 * features/rs6000/powerpc-601.c: Re-generated.
9016 * features/rs6000/powerpc-602.c: Re-generated.
9017 * features/rs6000/powerpc-603.c: Re-generated.
9018 * features/rs6000/powerpc-604.c: Re-generated.
9019 * features/rs6000/powerpc-64.c: Re-generated.
9020 * features/rs6000/powerpc-64l.c: Re-generated.
9021 * features/rs6000/powerpc-7400.c: Re-generated.
9022 * features/rs6000/powerpc-750.c: Re-generated.
9023 * features/rs6000/powerpc-860.c: Re-generated.
9024 * features/rs6000/powerpc-altivec32.c: Re-generated.
9025 * features/rs6000/powerpc-altivec32l.c: Re-generated.
9026 * features/rs6000/powerpc-altivec64.c: Re-generated.
9027 * features/rs6000/powerpc-altivec64l.c: Re-generated.
9028 * features/rs6000/powerpc-cell32l.c: Re-generated.
9029 * features/rs6000/powerpc-cell64l.c: Re-generated.
9030 * features/rs6000/powerpc-e500.c: Re-generated.
9031 * features/rs6000/powerpc-e500l.c: Re-generated.
9032 * features/rs6000/powerpc-isa205-32l.c: Re-generated.
9033 * features/rs6000/powerpc-isa205-64l.c: Re-generated.
9034 * features/rs6000/powerpc-isa205-altivec32l.c: Re-generated.
9035 * features/rs6000/powerpc-isa205-altivec64l.c: Re-generated.
9036 * features/rs6000/powerpc-isa205-vsx32l.c: Re-generated.
9037 * features/rs6000/powerpc-isa205-vsx64l.c: Re-generated.
9038 * features/rs6000/powerpc-vsx32.c: Re-generated.
9039 * features/rs6000/powerpc-vsx32l.c: Re-generated.
9040 * features/rs6000/powerpc-vsx64.c: Re-generated.
9041 * features/rs6000/powerpc-vsx64l.c: Re-generated.
9042 * features/rs6000/rs6000.c: Re-generated.
9043 * features/s390-linux32.c: Re-generated.
9044 * features/s390-linux32v1.c: Re-generated.
9045 * features/s390-linux32v2.c: Re-generated.
9046 * features/s390-linux64.c: Re-generated.
9047 * features/s390-linux64v1.c: Re-generated.
9048 * features/s390-linux64v2.c: Re-generated.
9049 * features/s390-te-linux64.c: Re-generated.
9050 * features/s390-tevx-linux64.c: Re-generated.
9051 * features/s390-vx-linux64.c: Re-generated.
9052 * features/s390x-linux64.c: Re-generated.
9053 * features/s390x-linux64v1.c: Re-generated.
9054 * features/s390x-linux64v2.c: Re-generated.
9055 * features/s390x-te-linux64.c: Re-generated.
9056 * features/s390x-tevx-linux64.c: Re-generated.
9057 * features/s390x-vx-linux64.c: Re-generated.
9058 * features/sparc/sparc32-solaris.c: Re-generated.
9059 * features/sparc/sparc64-solaris.c: Re-generated.
9060 * features/tic6x-c62x.c: Re-generated.
9061 * features/tic6x-c62x-linux.c: Re-generated.
9062 * features/tic6x-c64x.c: Re-generated.
9063 * features/tic6x-c64x-linux.c: Re-generated.
9064 * features/tic6x-c64xp.c: Re-generated.
9065 * features/tic6x-c64xp-linux.c: Re-generated.
9066
9067 2017-07-26 Yao Qi <yao.qi@linaro.org>
9068
9069 * i386-linux-tdep.c (i386_linux_read_description): New function.
9070 (i386_linux_core_read_description): Call
9071 i386_linux_read_description.
9072 * i386-linux-tdep.h (i386_linux_read_description): Declare.
9073 (tdesc_i386_linux, tdesc_i386_mmx_linux): Remove declarations.
9074 (tdesc_i386_avx_linux, tdesc_i386_mpx_linux): Likewise
9075 (tdesc_i386_avx_mpx_linux, tdesc_i386_avx_avx512_linux): Likewise.
9076 (tdesc_i386_avx_mpx_avx512_pku_linux): Likewise.
9077 * x86-linux-nat.c (x86_linux_read_description): Call
9078 i386_linux_read_description.
9079
9080 2017-07-26 Yao Qi <yao.qi@linaro.org>
9081
9082 * NEWS: Mention it.
9083 * features/Makefile (%.c: %.xml): Pass the xml file name to
9084 command "maint print c-tdesc".
9085 * target-descriptions.c (maint_print_c_tdesc_cmd): Get file
9086 name from 'arg'.
9087
9088 2017-07-26 Yao Qi <yao.qi@linaro.org>
9089
9090 * target-descriptions.c (target_desc): Add ctor and dtor. Do
9091 in-class initialization.
9092 (tdesc_create_feature): Call new instead of XCNEW.
9093 (free_target_description): Ue delete.
9094
9095 2017-07-25 John Baldwin <jhb@FreeBSD.org>
9096
9097 * configure.nat: Add "-lkvm" for NetBSD/sparc64 and fix typo.
9098
9099 2017-07-25 Yao Qi <yao.qi@linaro.org>
9100
9101 * amd64-tdep.c (amd64_init_abi): Make argument default_tdesc
9102 constant.
9103 (amd64_x32_init_abi): Likewise.
9104 * amd64-tdep.h (amd64_init_abi): Update declaration.
9105 (amd64_x32_init_abi): Likewise.
9106
9107 2017-07-25 Yao Qi <yao.qi@linaro.org>
9108
9109 PR tdep/21717
9110 * arm-linux-nat.c (arm_linux_fetch_inferior_registers): Update
9111 condition for FPSCR.
9112 (arm_linux_store_inferior_registers): Likewise.
9113
9114 2017-07-22 Tom Tromey <tom@tromey.com>
9115
9116 * break-catch-syscall.c (struct catch_syscall_inferior_data)
9117 <syscalls_counts>: Now a std::vector.
9118 (get_catch_syscall_inferior_data): Use "new".
9119 (catch_syscall_inferior_data_cleanup): Use "delete".
9120 (insert_catch_syscall, remove_catch_syscall)
9121 (clear_syscall_counts): Update.
9122
9123 2017-07-22 Tom Tromey <tom@tromey.com>
9124
9125 * break-catch-syscall.c (syscall_catchpoint)
9126 <syscalls_to_be_caught>: Now a std::vector<int>
9127 (~syscall_catchpoint): Remove.
9128 (insert_catch_syscall, remove_catch_syscall)
9129 (breakpoint_hit_catch_syscall, print_one_catch_syscall)
9130 (print_mention_catch_syscall, print_recreate_catch_syscall):
9131 Update.
9132 (create_syscall_event_catchpoint): Change type of "filter"
9133 parameter.
9134 (catch_syscall_split_args): Return a std::vector.
9135 (catch_syscall_command_1, catching_syscall_number_1): Update.
9136
9137 2017-07-22 Tom Tromey <tom@tromey.com>
9138
9139 * break-catch-throw.c (struct exception_catchpoint)
9140 <exception_rx>: Now a std::string.
9141 (~exception_catchpoint): Remove.
9142 (print_one_detail_exception_catchpoint): Update.
9143 (handle_gnu_v3_exceptions): Change type of except_rx.
9144 (extract_exception_regexp): Return a std::string.
9145 (catch_exception_command_1): Update.
9146
9147 2017-07-22 Tom Tromey <tom@tromey.com>
9148
9149 * break-catch-sig.c (gdb_signal_type): Remove typedef.
9150 (struct signal_catchpoint) <signals_to_be_caught>: Now a
9151 std::vector.
9152 <catch_all>: Now a bool.
9153 (~signal_catchpoint): Remove.
9154 (signal_catchpoint_insert_location)
9155 (signal_catchpoint_remove_location)
9156 (signal_catchpoint_breakpoint_hit, signal_catchpoint_print_one)
9157 (signal_catchpoint_print_mention)
9158 (signal_catchpoint_print_recreate)
9159 (signal_catchpoint_explains_signal): Update.
9160 (create_signal_catchpoint): Change type of "filter" and
9161 "catch_all".
9162 (catch_signal_split_args): Return a std::vector. Change type of
9163 "catch_all".
9164 (catch_signal_command): Update.
9165
9166 2017-07-20 Pedro Alves <palves@redhat.com>
9167
9168 * ada-lang.c (ada_language_defn): Make extern.
9169 (_initialize_ada_language): Remove add_language call.
9170 * c-lang.c (c_language_defn, cplus_language_defn)
9171 (asm_language_defn, minimal_language_defn): Make extern.
9172 (_initialize_c_language): Delete.
9173 * completer.c (compare_cstrings): Delete, moved to utils.h.
9174 * d-lang.c (d_language_defn): Make extern.
9175 (_initialize_d_language): Remove add_language calls.
9176 * defs.h (enum language): Add comment.
9177 * f-lang.c (f_language_defn): Make extern.
9178 (_initialize_f_language): Remove add_language call.
9179 * go-lang.c (go_language_defn): Make extern.
9180 (_initialize_go_language): Remove add_language call.
9181 * language.c: Include <algorithm>.
9182 (languages): Redefine as const array.
9183 (languages_size, languages_allocsize, DEFAULT_ALLOCSIZE): Delete.
9184 (set_language_command): Handle "local". Use for-range loop.
9185 (set_language): Remove loop.
9186 (language_enum): Rewrite.
9187 (language_def, language_str): Remove loops.
9188 (add_language): Delete.
9189 (add_set_language_command): New, based on add_languages.
9190 (skip_language_trampoline): Adjust.
9191 (local_language_defn): Delete.
9192 (language_gdbarch_post_init): Adjust.
9193 (_initialize_language): Remove add_language calls. Call
9194 add_set_language_command.
9195 * language.h (add_language): Delete.
9196 (auto_language_defn)
9197 (unknown_language_defn, minimal_language_defn, ada_language_defn)
9198 (asm_language_defn, c_language_defn, cplus_language_defn)
9199 (d_language_defn, f_language_defn, go_language_defn)
9200 (m2_language_defn, objc_language_defn, opencl_language_defn)
9201 (pascal_language_defn, rust_language_defn): Declare.
9202 * m2-lang.c (m2_language_defn): Make extern.
9203 (_initialize_m2_language): Remove add_language call.
9204 * objc-lang.c (objc_language_defn): Make extern.
9205 (_initialize_objc_language): Remove add_language call.
9206 * opencl-lang.c (opencl_language_defn): Make extern.
9207 (_initialize_opencl_language): Remove add_language call.
9208 * p-lang.c (pascal_language_defn): Make extern.
9209 (_initialize_pascal_language): Delete.
9210 * rust-lang.c (rust_language_defn): Make extern.
9211 (_initialize_rust_language): Delete.
9212 * utils.h (compare_cstrings): New static inline function.
9213
9214 2017-07-20 Pedro Alves <palves@redhat.com>
9215
9216 * ada-lang.c (ada_to_fixed_type_1): Adjust.
9217 (get_var_value): Constify parameters.
9218 (get_int_var_value): Change prototype.
9219 (to_fixed_range_type): Adjust.
9220 * ada-lang.h (get_int_var_value): Change prototype.
9221
9222 2017-07-20 Pedro Alves <palves@redhat.com>
9223
9224 * dwarf2read.c (dw2_lookup_symbol): Use
9225 SYMBOL_MATCHES_SEARCH_NAME.
9226 * psymtab.c (psym_lookup_symbol): Use SYMBOL_MATCHES_SEARCH_NAME.
9227
9228 2017-07-20 Pedro Alves <palves@redhat.com>
9229
9230 * block.c (block_iter_name_step, block_iter_name_first)
9231 (block_iter_name_next): Delete.
9232 (block_lookup_symbol_primary): Adjust to use
9233 dict_iter_match_first/dict_iter_match_next.
9234 * block.h (block_iter_name_first, block_iter_name_next): Delete
9235 declarations.
9236 (ALL_BLOCK_SYMBOLS_WITH_NAME): Adjust to use
9237 dict_iter_match_first/dict_iter_match_next.
9238
9239 2017-07-20 Pedro Alves <palves@redhat.com>
9240
9241 * cp-support.c (cp_find_first_component_aux): Add missing case for
9242 end of string.
9243
9244 2017-07-18 David Blaikie <dblaikie@gmail.com>
9245
9246 * dwarf2read.c (create_cus_hash_table): Re-add lost initialization
9247 of dwo_cu's dwo_file.
9248
9249 2017-07-18 Yao Qi <yao.qi@linaro.org>
9250
9251 * remote.c (store_registers_using_G): Remove one line comment.
9252
9253 2017-07-18 Yao Qi <yao.qi@linaro.org>
9254
9255 * regcache.c (regcache_cpy): Simplify it.
9256 (regcache::cpy_no_passthrough): Remove it.
9257 * regcache.h (cpy_no_passthrough): Remove it.
9258 (regcache_dup, regcache_cpy): Update comments.
9259
9260 2017-07-18 Pedro Alves <palves@redhat.com>
9261
9262 * remote-sim.c (sim_command_completer): Adjust to work with a
9263 completion_tracker instead of a VEC.
9264
9265 2017-07-17 Pedro Alves <palves@redhat.com>
9266
9267 * completer.c (complete_source_filenames): New function.
9268 (complete_address_and_linespec_locations): New function.
9269 (location_completer): Use complete_address_and_linespec_locations.
9270 (completion_tracker::build_completion_result): Honor the tracker's
9271 request to suppress append.
9272 * completer.h (completion_tracker::suppress_append_ws)
9273 (completion_tracker::set_suppress_append_ws): New methods.
9274 (completion_tracker::m_suppress_append_ws): New field.
9275 (complete_source_filenames): New declaration.
9276 * linespec.c (linespec_complete_what): New.
9277 (struct ls_parser) <complete_what, completion_word,
9278 completion_quote_char, completion_quote_end, completion_tracker>:
9279 New fields.
9280 (string_find_incomplete_keyword_at_end): New.
9281 (linespec_lexer_lex_string): Record quote char. If in completion
9282 mode, don't throw.
9283 (linespec_lexer_consume_token): Advance the completion word point.
9284 (linespec_lexer_peek_token): Save/restore completion info.
9285 (save_stream_and_consume_token): New.
9286 (set_completion_after_number): New.
9287 (linespec_parse_basic): Set what to complete next depending on
9288 token. Handle function and label completions specially.
9289 (parse_linespec): Disable objc shortcut in completion mode. Set
9290 what to complete next depending on token type. Skip keyword if in
9291 completion mode.
9292 (complete_linespec_component, linespec_complete): New.
9293 * linespec.h (linespec_complete): Declare.
9294
9295 2017-07-17 Pedro Alves <palves@redhat.com>
9296
9297 * linespec.c (linespec_lexer_lex_string, find_toplevel_char):
9298 Handle 'operator<' / 'operator<<'.
9299
9300 2017-07-17 Pedro Alves <palves@redhat.com>
9301
9302 * completer.c (collect_explicit_location_matches): Handle
9303 MATCH_LABEL.
9304 (convert_explicit_location_to_linespec): New, factored out from
9305 ...
9306 (convert_explicit_location_to_sals): ... this.
9307 (complete_label): New.
9308 (linespec_complete_label, find_label_symbols_in_block): New.
9309 (find_label_symbols): Add completion_mode parameter and adjust to
9310 call find_label_symbols_in_block.
9311 * linespec.h (linespec_complete_label): Declare.
9312
9313 2017-07-17 Pedro Alves <palves@redhat.com>
9314
9315 * ada-lang.c (ada_collect_symbol_completion_matches): Add
9316 complete_symbol_mode parameter.
9317 * cli/cli-cmds.c (complete_command): Get the completion result out
9318 of the handle_brkchars tracker if used a custom word point.
9319 * completer.c: Include "linespec.h".
9320 (enum explicit_location_match_type) <MATCH_LINE>: New enumerator.
9321 (advance_to_expression_complete_word_point): New.
9322 (completion_tracker::completes_to_completion_word): New.
9323 (complete_files_symbols): Pass down
9324 complete_symbol_mode::EXPRESSION.
9325 (explicit_options, probe_options): New.
9326 (collect_explicit_location_matches): Complete on the
9327 explictit_loc->foo instead of word. Use
9328 linespec_complete_function. Handle MATCH_LINE. Handle offering
9329 keyword and options completions.
9330 (backup_text_ptr): Delete.
9331 (skip_keyword): New.
9332 (complete_explicit_location): Remove 'word' parameter. Add
9333 language, quoted_arg_start and quoted_arg_end parameters.
9334 Rewrite, parsing left to right.
9335 (location_completer): Rewrite.
9336 (location_completer_handle_brkchars): New function.
9337 (symbol_completer): Pass down complete_symbol_mode::EXPRESSION.
9338 (enum complete_line_internal_reason): Adjust comments.
9339 (completion_tracker::discard_completions): New.
9340 (completer_handle_brkchars_func_for_completer): Handle
9341 location_completer.
9342 (gdb_custom_word_point_brkchars)
9343 (gdb_org_rl_basic_quote_characters): New.
9344 (gdb_completion_word_break_characters_throw)
9345 (completion_find_completion_word): Handle trackers that use a
9346 custom word point.
9347 (completion_tracker::advance_custom_word_point_by): New.
9348 (completion_tracker::build_completion_result): Don't rely on
9349 readline appending the quote char.
9350 (gdb_rl_attempted_completion_function_throw): Handle trackers that
9351 use a custom word point.
9352 (gdb_rl_attempted_completion_function): Restore
9353 rl_basic_quote_characters.
9354 * completer.h (class completion_tracker): Extend intro comment.
9355 (completion_tracker::set_quote_char)
9356 (completion_tracker::quote_char)
9357 (completion_tracker::set_use_custom_word_point)
9358 (completion_tracker::use_custom_word_point)
9359 (completion_tracker::custom_word_point)
9360 (completion_tracker::set_custom_word_point)
9361 (completion_tracker::advance_custom_word_point_by)
9362 (completion_tracker::completes_to_completion_word)
9363 (completion_tracker::discard_completions): New methods.
9364 (completion_tracker::m_quote_char)
9365 (completion_tracker::m_use_custom_word_point)
9366 (completion_tracker::m_custom_word_point): New fields.
9367 (advance_to_expression_complete_word_point): Declare.
9368 * f-lang.c (f_collect_symbol_completion_matches): Add
9369 complete_symbol_mode parameter.
9370 * language.h (struct language_defn)
9371 <la_collect_symbol_completion_matches>: Add complete_symbol_mode
9372 parameter.
9373 * linespec.c (linespec_keywords): Add NULL terminator. Make extern.
9374 (linespec_complete_function): New function.
9375 (linespec_lexer_lex_keyword): Adjust.
9376 * linespec.h (linespec_keywords, linespec_complete_function): New
9377 declarations.
9378 * location.c (find_end_quote): New function.
9379 (explicit_location_lex_one): Add explicit_completion_info
9380 parameter. Save quoting info. Don't throw if being called for
9381 completion. Don't handle Ada operators here.
9382 (is_cp_operator, skip_op_false_positives, first_of)
9383 (explicit_location_lex_one_function): New function.
9384 (string_to_explicit_location): Replace 'dont_throw' parameter with
9385 an explicit_completion_info pointer parameter. Handle it. Don't
9386 use explicit_location_lex_one to lex function names. Use
9387 explicit_location_lex_one_function instead.
9388 * location.h (struct explicit_completion_info): New.
9389 (string_to_explicit_location): Replace 'dont_throw' parameter with
9390 an explicit_completion_info pointer parameter.
9391 * symtab.c (default_collect_symbol_completion_matches_break_on):
9392 Add complete_symbol_mode parameter. Handle LINESPEC mode.
9393 (default_collect_symbol_completion_matches)
9394 (collect_symbol_completion_matches): Add complete_symbol_mode
9395 parameter.
9396 (collect_symbol_completion_matches_type): Pass down
9397 complete_symbol_mode::EXPRESSION.
9398 (collect_file_symbol_completion_matches): Add complete_symbol_mode
9399 parameter. Handle LINESPEC mode.
9400 * symtab.h (complete_symbol_mode): New.
9401 (default_collect_symbol_completion_matches_break_on)
9402 (default_collect_symbol_completion_matches)
9403 (collect_symbol_completion_matches)
9404 (collect_file_symbol_completion_matches): Add complete_symbol_mode
9405 parameter.
9406
9407 2017-07-17 Pedro Alves <palves@redhat.com>
9408
9409 * utils.c (enum class strncmp_iw_mode): New.
9410 (strcmp_iw): Rename to ...
9411 (strncmp_iw_with_mode): ... this. Add string2_len and mode
9412 parameters. Handle them.
9413 (strncmp_iw): New.
9414 (strcmp_iw): Reimplement as wrapper around strncmp_iw_with_mode.
9415 * utils.h (strncmp_iw): Declare.
9416 (strcmp_iw): Move describing comments here.
9417
9418 2017-07-17 Pedro Alves <palves@redhat.com>
9419
9420 * c-exp.y (operator_stoken): Use CP_OPERATOR_LEN and
9421 CP_OPERATOR_STR.
9422 * c-typeprint.c (is_type_conversion_operator): Use
9423 CP_OPERATOR_STR.
9424 * cp-support.c (LENGTH_OF_OPERATOR): Delete.
9425 (cp_find_first_component_aux): Use CP_OPERATOR_STR and
9426 CP_OPERATOR_LEN.
9427 * cp-support.h (CP_OPERATOR_STR, CP_OPERATOR_LEN): New.
9428 * gnu-v2-abi.c (gnuv2_is_operator_name): Use CP_OPERATOR_STR.
9429 * gnu-v3-abi.c (gnuv3_is_operator_name): Use CP_OPERATOR_STR.
9430 * linespec.c (linespec_lexer_lex_string): Use CP_OPERATOR_LEN and
9431 CP_OPERATOR_STR.
9432 * location.c: Include "cp-support.h".
9433 (explicit_location_lex_one): Use CP_OPERATOR_LEN and
9434 CP_OPERATOR_STR.
9435 * symtab.c (operator_chars): Use CP_OPERATOR_STR and
9436 CP_OPERATOR_LEN.
9437
9438 2017-07-17 Pedro Alves <palves@redhat.com>
9439
9440 * cli/cli-cmds.c (complete_command): Use a completion tracker
9441 along with completion_find_completion_word for handle_brkchars
9442 phase.
9443 * completer.c (RL_QF_SINGLE_QUOTE, RL_QF_DOUBLE_QUOTE)
9444 (RL_QF_BACKSLASH, RL_QF_OTHER_QUOTE): New.
9445 (struct gdb_rl_completion_word_info): New.
9446 (gdb_rl_find_completion_word): New.
9447 (completion_find_completion_word): New.
9448 * completer.h (completion_find_completion_word): Declare.
9449
9450 2017-07-17 Pedro Alves <palves@redhat.com>
9451
9452 * ada-lang.c (symbol_completion_match): Adjust comments.
9453 (symbol_completion_add): Replace vector parameter with
9454 completion_tracker parameter. Use it.
9455 (ada_make_symbol_completion_list): Rename to...
9456 (ada_collect_symbol_completion_matches): ... this. Add
9457 completion_tracker parameter and use it.
9458 (ada_language_defn): Adjust.
9459 * break-catch-syscall.c (catch_syscall_completer): Adjust
9460 prototype and work with completion_tracker instead of VEC.
9461 * breakpoint.c (condition_completer): Adjust prototype and work
9462 with completion_tracker instead of VEC.
9463 * c-lang.c (c_language_defn, cplus_language_defn)
9464 (asm_language_defn, minimal_language_defn): Adjust to renames.
9465 * cli/cli-cmds.c (complete_command): Rework using
9466 completion_tracker. Catch exceptions when completing.
9467 * cli/cli-decode.c (integer_unlimited_completer)
9468 (complete_on_cmdlist, complete_on_enum): Adjust prototype and work
9469 with completion_tracker instead of VEC.
9470 * command.h (struct completion_tracker): Forward declare.
9471 (completer_ftype, completer_handle_brkchars_ftype): Change
9472 types.
9473 (complete_on_cmdlist, complete_on_enum): Adjust.
9474 * completer.c: Include <algorithm>.
9475 (struct gdb_completer_state): New.
9476 (current_completion): New global.
9477 (readline_line_completion_function): Delete.
9478 (noop_completer, filename_completer)
9479 (filename_completer_handle_brkchars, complete_files_symbols)
9480 (linespec_location_completer): Adjust to work with a
9481 completion_tracker instead of a VEC.
9482 (string_or_empty): New.
9483 (collect_explicit_location_matches): Adjust to work with a
9484 completion_tracker instead of a VEC.
9485 (explicit_location_completer): Rename to ...
9486 (complete_explicit_location): ... this and adjust to work with a
9487 completion_tracker instead of a VEC.
9488 (location_completer): Adjust to work with a completion_tracker
9489 instead of a VEC.
9490 (add_struct_fields): Adjust to work with a completion_list instead
9491 of VEC.
9492 (expression_completer): Rename to ...
9493 (complete_expression): ... this and adjust to work with a
9494 completion_tracker instead of a VEC. Use complete_files_symbols.
9495 (expression_completer): Reimplement on top of complete_expression.
9496 (symbol_completer): Adjust to work with a completion_tracker
9497 instead of a VEC.
9498 (enum complete_line_internal_reason): Add describing comments.
9499 (complete_line_internal_normal_command): Adjust to work with a
9500 completion_tracker instead of a VEC.
9501 (complete_line_internal): Rename to ...
9502 (complete_line_internal_1): ... this and adjust to work with a
9503 completion_tracker instead of a VEC. Assert TEXT is NULL in the
9504 handle_brkchars phase.
9505 (new_completion_tracker): Delete.
9506 (complete_line_internal): Reimplement as TRY/CATCH wrapper around
9507 complete_line_internal_1.
9508 (free_completion_tracker): Delete.
9509 (INITIAL_COMPLETION_HTAB_SIZE): New.
9510 (completion_tracker::completion_tracker)
9511 (completion_tracker::~completion_tracker): New.
9512 (maybe_add_completion): Delete.
9513 (completion_tracker::maybe_add_completion)
9514 (completion_tracker::add_completion)
9515 (completion_tracker::add_completions): New.
9516 (throw_max_completions_reached_error): Delete.
9517 (complete_line): Adjust to work with a completion_tracker instead
9518 of a VEC. Don't create a completion_tracker_t or check for max
9519 completions here.
9520 (command_completer, command_completer_handle_brkchars)
9521 (signal_completer, reg_or_group_completer_1)
9522 (reg_or_group_completer, default_completer_handle_brkchars):
9523 Adjust to work with a completion_tracker.
9524 (gdb_completion_word_break_characters_throw): New.
9525 (gdb_completion_word_break_characters): Reimplement.
9526 (line_completion_function): Delete.
9527 (completion_tracker::recompute_lowest_common_denominator)
9528 (expand_preserving_ws)
9529 (completion_tracker::build_completion_result)
9530 (completion_result::completion_result)
9531 (completion_result::completion_result)
9532 (completion_result::~completion_result)
9533 (completion_result::completion_result)
9534 (completion_result::release_match_list, compare_cstrings)
9535 (completion_result::sort_match_list)
9536 (completion_result::reset_match_list)
9537 (gdb_rl_attempted_completion_function_throw)
9538 (gdb_rl_attempted_completion_function): New.
9539 * completer.h (completion_list, struct completion_result)
9540 (class completion_tracker): New.
9541 (complete_line): Add completion_tracker parameter.
9542 (readline_line_completion_function): Delete.
9543 (gdb_rl_attempted_completion_function): New.
9544 (noop_completer, filename_completer, expression_completer)
9545 (location_completer, symbol_completer, command_completer)
9546 (signal_completer, reg_or_group_completer): Update prototypes.
9547 (completion_tracker_t, new_completion_tracker)
9548 (make_cleanup_free_completion_tracker): Delete.
9549 (enum maybe_add_completion_enum): Delete.
9550 (maybe_add_completion): Delete.
9551 (throw_max_completions_reached_error): Delete.
9552 * corefile.c (complete_set_gnutarget): Adjust to work with a
9553 completion_tracker instead of a VEC.
9554 * cp-abi.c (cp_abi_completer): Adjust to work with a
9555 completion_tracker instead of a VEC.
9556 * d-lang.c (d_language_defn): Adjust.
9557 * disasm.c (disassembler_options_completer): Adjust to work with a
9558 completion_tracker instead of a VEC.
9559 * f-lang.c (f_make_symbol_completion_list): Rename to ...
9560 (f_collect_symbol_completion_matches): ... this. Adjust to work
9561 with a completion_tracker instead of a VEC.
9562 (f_language_defn): Adjust.
9563 * go-lang.c (go_language_defn): Adjust.
9564 * guile/scm-cmd.c (cmdscm_add_completion, cmdscm_completer):
9565 Adjust to work with a completion_tracker instead of a VEC.
9566 * infrun.c (handle_completer): Likewise.
9567 * interps.c (interpreter_completer): Likewise.
9568 * interps.h (interpreter_completer): Likewise.
9569 * language.c (unknown_language_defn, auto_language_defn)
9570 (local_language_defn): Adjust.
9571 * language.h (language_defn::la_make_symbol_completion_list):
9572 Rename to ...
9573 (language_defn::la_collect_symbol_completion_matches): ... this
9574 and adjust to work with a completion_tracker instead of a VEC.
9575 * m2-lang.c (m2_language_defn): Adjust.
9576 * objc-lang.c (objc_language_defn): Adjust.
9577 * opencl-lang.c (opencl_language_defn): Adjust.
9578 * p-lang.c (pascal_language_defn): Adjust.
9579 * python/py-cmd.c (cmdpy_completer_helper): Handle NULL word.
9580 (cmdpy_completer_handle_brkchars, cmdpy_completer): Adjust to work
9581 with a completion_tracker.
9582 * rust-lang.c (rust_language_defn): Adjust.
9583 * symtab.c (free_completion_list, do_free_completion_list)
9584 (return_val, completion_tracker): Delete.
9585 (completion_list_add_name, completion_list_add_symbol)
9586 (completion_list_add_msymbol, completion_list_objc_symbol)
9587 (completion_list_add_fields, add_symtab_completions): Add
9588 completion_tracker parameter and use it.
9589 (default_make_symbol_completion_list_break_on_1): Rename to...
9590 (default_collect_symbol_completion_matches_break_on): ... this.
9591 Add completion_tracker parameter and use it instead of allocating
9592 a completion tracker here.
9593 (default_make_symbol_completion_list_break_on): Delete old
9594 implementation.
9595 (default_make_symbol_completion_list): Delete.
9596 (default_collect_symbol_completion_matches): New.
9597 (make_symbol_completion_list): Delete.
9598 (collect_symbol_completion_matches): New.
9599 (make_symbol_completion_type): Rename to ...
9600 (collect_symbol_completion_matches_type): ... this. Add
9601 completion_tracker parameter and use it instead of VEC.
9602 (make_file_symbol_completion_list_1): Rename to...
9603 (collect_file_symbol_completion_matches): ... this. Add
9604 completion_tracker parameter and use it instead of VEC.
9605 (make_file_symbol_completion_list): Delete.
9606 (add_filename_to_list): Use completion_list instead of a VEC.
9607 (add_partial_filename_data::list): Now a completion_list.
9608 (make_source_files_completion_list): Work with a completion_list
9609 instead of a VEC.
9610 * symtab.h: Include "completer.h".
9611 (default_make_symbol_completion_list_break_on)
9612 (default_make_symbol_completion_list, make_symbol_completion_list)
9613 (make_symbol_completion_type, make_file_symbol_completion_list)
9614 (make_source_files_completion_list): Delete.
9615 (default_collect_symbol_completion_matches_break_on)
9616 (default_collect_symbol_completion_matches)
9617 (collect_symbol_completion_matches)
9618 (collect_symbol_completion_matches_type)
9619 (collect_file_symbol_completion_matches)
9620 (make_source_files_completion_list): New.
9621 * top.c (init_main): Don't install a rl_completion_entry_function
9622 hook. Install a rl_attempted_completion_function hook instead.
9623 * tui/tui-layout.c (layout_completer): Adjust to work with a
9624 completion_tracker.
9625 * tui/tui-regs.c (tui_reggroup_completer):
9626 * tui/tui-win.c (window_name_completer, focus_completer)
9627 (winheight_completer): Adjust to work with a completion_tracker.
9628 * value.c: Include "completer.h".
9629 (complete_internalvar): Adjust to work with a completion_tracker.
9630 * value.h (complete_internalvar): Likewise.
9631
9632 2017-07-17 Pedro Alves <palves@redhat.com>
9633
9634 * cli/cli-decode.c (set_cmd_completer_handle_brkchars): Adjust to
9635 renames.
9636 * cli/cli-decode.h (struct cmd_list_element) <completer>: Move
9637 comments to completer_ftype's declaration.
9638 <completer_handle_brkchars>: Change type to
9639 completer_handle_brkchars_ftype.
9640 * command.h (completer_ftype): Add describing comment and give
9641 names to parameters.
9642 (completer_ftype_void): Rename to ...
9643 (completer_handle_brkchars_ftype) ... this. Add describing comment.
9644 (set_cmd_completer_handle_brkchars): Adjust.
9645 * completer.c (filename_completer_handle_brkchars): New function.
9646 (complete_line_internal_normal_command): New function, factored
9647 out from ...
9648 (complete_line_internal): ... here.
9649 (command_completer_handle_brkchars)
9650 (default_completer_handle_brkchars)
9651 (completer_handle_brkchars_func_for_completer): New functions.
9652 * completer.h (set_gdb_completion_word_break_characters): Delete
9653 declaration.
9654 (completer_handle_brkchars_func_for_completer): New declaration.
9655 * python/py-cmd.c (cmdpy_completer_handle_brkchars): Adjust to use
9656 completer_handle_brkchars_func_for_completer.
9657
9658 2017-07-17 Pedro Alves <palves@redhat.com>
9659
9660 * completer.c (symbol_completer): New function, based on
9661 make_symbol_completion_list_fn.
9662 * completer.h (symbol_completer): New declaration.
9663 * guile/scm-cmd.c (cmdscm_completers): Adjust.
9664 * python/py-cmd.c (completers): Adjust.
9665 * symtab.c (make_symbol_completion_list_fn): Delete.
9666 * symtab.h (make_symbol_completion_list_fn): Delete.
9667 * cli/cli-decode.c (add_cmd): Adjust.
9668
9669 2017-07-17 Pedro Alves <palves@redhat.com>
9670
9671 * Makefile.in (COMMON_OBS): Add filename-seen-cache.o.
9672 * dwarf2read.c: Include "filename-seen-cache.h".
9673 * dwarf2read.c (dwarf2_per_objfile) <filenames_cache>: New field.
9674 (dw2_map_symbol_filenames): Build and use a filenames_seen_cache.
9675 * filename-seen-cache.c: New file.
9676 * filename-seen-cache.h: New file.
9677 * symtab.c: Include "filename-seen-cache.h".
9678 (struct filename_seen_cache, INITIAL_FILENAME_SEEN_CACHE_SIZE)
9679 (create_filename_seen_cache, clear_filename_seen_cache)
9680 (delete_filename_seen_cache, filename_seen): Delete, parts moved
9681 to filename-seen-cache.h/filename-seen-cache.c.
9682 (output_source_filename, sources_info)
9683 (maybe_add_partial_symtab_filename)
9684 (make_source_files_completion_list): Adjust to use
9685 filename_seen_cache.
9686
9687 2017-07-17 Pedro Alves <palves@redhat.com>
9688
9689 * dwarf2read.c (dwarf2_per_objfile): In-class initialize all
9690 fields.
9691 (dwarf2_per_objfile::dwarf2_per_objfile(objfile*, const
9692 dwarf2_debug_sections*)): New.
9693 (dwarf2_per_objfile::dwarf2_per_objfile(const
9694 dwarf2_per_objfile&)): Declare as deleted.
9695 (dwarf2_per_objfile::operator=): Declare as deleted.
9696 (dwarf2_per_objfile::dwarf2_per_objfile)
9697 (dwarf2_per_objfile::~dwarf2_per_objfile)
9698 (dwarf2_per_objfile::free_cached_comp_units): New.
9699 (dwarf2_has_info): dwarf2_per_objfile initialization code moved to
9700 ctor. Call dwarf2_per_objfile's ctor manually.
9701 (dwarf2_locate_sections): Deleted/refactored as ...
9702 (dwarf2_per_objfile::locate_sections): ... this new method.
9703 (free_cached_comp_units): Defer to
9704 dwarf2_per_objfile::free_cached_comp_units.
9705 (dwarf2_free_objfile): Call dwarf2_per_objfile's dtor manually.
9706
9707 2017-07-14 Tom Tromey <tom@tromey.com>
9708
9709 PR rust/21764:
9710 * rust-exp.y (convert_ast_to_expression): Add "want_type"
9711 parameter.
9712 <UNOP_SIZEOF>: Split into separate case.
9713 <UNOP_VAR_VALUE>: Handle want_type. Add error case.
9714
9715 2017-07-14 Tom Tromey <tom@tromey.com>
9716
9717 PR rust/21763:
9718 * symtab.c (symbol_matches_domain): Add language_rust to special
9719 case.
9720 * rust-exp.y (convert_ast_to_expression) <OP_VAR_VALUE>: Don't
9721 treat LOC_TYPEDEF symbols as variables.
9722
9723 2017-07-14 Pedro Alves <palves@redhat.com>
9724
9725 * symtab.c (make_file_symbol_completion_list_1): Iterate over
9726 symtabs matching all symtabs with SRCFILE as file name instead of
9727 only considering the first hit, with lookup_symtab.
9728
9729 2017-07-14 Simon Marchi <simon.marchi@ericsson.com>
9730
9731 * ax-gdb.c (gen_aggregate_elt_ref): Remove operand_name and
9732 operator_name parameters.
9733 (gen_expr): Update function call.
9734
9735 2017-07-14 Simon Marchi <simon.marchi@ericsson.com>
9736
9737 * dwarf2loc.h (dwarf2_compile_expr_to_ax): Remove gdbarch
9738 parameter.
9739 * symtab.h (struct symbol_computed_ops::tracepoint_var_ref):
9740 Likewise.
9741 * dwarf2loc.c (dwarf2_compile_expr_to_ax): Remove gdbarch
9742 parameter, use agent_expr::gdbarch instead, update function
9743 calls.
9744 (locexpr_tracepoint_var_ref): Likewise.
9745 (loclist_tracepoint_var_ref): Likewise.
9746 * ax-gdb.c (gen_trace_static_fields): Likewise.
9747 (gen_traced_pop): Likewise.
9748 (gen_frame_args_address): Likewise.
9749 (gen_frame_locals_address): Likewise.
9750 (gen_var_ref): Likewise.
9751 (gen_struct_ref_recursive): Likewise.
9752 (gen_static_field): Likewise.
9753 (gen_maybe_namespace_elt): Likewise.
9754 (gen_expr): Likewise.
9755 (gen_trace_for_var): Likewise.
9756 (gen_trace_for_expr): Likewise.
9757 (gen_trace_for_return_address): Likewise.
9758
9759 2017-07-14 Simon Marchi <simon.marchi@ericsson.com>
9760
9761 * ax-gdb.c (gen_deref, gen_address_of): Remove unused ax
9762 parameter.
9763 (gen_struct_ref, gen_expr, gen_expr_binop_rest): Update call.
9764
9765 2017-07-14 Simon Marchi <simon.marchi@ericsson.com>
9766
9767 * ax-gdb.c (gen_usual_unary): Remove exp parameter, get gdbarch
9768 from ax, update calls.
9769 (gen_usual_arithmetic): Likewise.
9770 (gen_integral_promotions): Likewise.
9771 (gen_bitfield_ref): Likewise.
9772 (gen_primitive_field): Likewise.
9773 (gen_struct_ref_recursive): Likewise.
9774 (gen_struct_ref): Likewise.
9775 (gen_maybe_namespace_elt): Likewise.
9776 (gen_struct_elt_for_reference): Likewise.
9777 (gen_namespace_elt): Likewise.
9778 (gen_aggregate_elt_ref): Likewise.
9779 (gen_expr): Get gdbarch from ax, update calls.
9780 (gen_expr_binop_rest): Likewise.
9781
9782 2017-07-13 Pedro Alves <palves@redhat.com>
9783
9784 * amd64-darwin-tdep.c (x86_darwin_init_abi_64): Pass tdesc_amd64
9785 as default tdesc.
9786 * amd64-dicos-tdep.c (amd64_dicos_init_abi):
9787 * amd64-fbsd-tdep.c (amd64fbsd_init_abi):
9788 * amd64-linux-tdep.c (amd64_linux_init_abi): Pass
9789 tdesc_amd64_linux as default tdesc. Get final tdesc from the
9790 tdep.
9791 (amd64_x32_linux_init_abi): Pass tdesc_x32_linux as default tdesc.
9792 Get final tdesc from the tdep.
9793 * amd64-nbsd-tdep.c (amd64nbsd_init_abi): Pass tdesc_amd64 as
9794 default tdesc.
9795 * amd64-obsd-tdep.c (amd64obsd_init_abi): Likewise.
9796 * amd64-sol2-tdep.c (amd64_sol2_init_abi): Likewise.
9797 * amd64-tdep.c (amd64_init_abi): Add 'default_tdesc' parameter.
9798 Use it as default tdesc.
9799 (amd64_x32_init_abi): Add 'default_tdesc' parameter, and pass it
9800 down to amd_init_abi. No longer handle fallback tdesc here.
9801 * amd64-tdep.h (tdesc_x32): Declare.
9802 (amd64_init_abi, amd64_x32_init_abi): Add 'default_tdesc'
9803 parameter.
9804 * amd64-windows-tdep.c (amd64_windows_init_abi): Pass tdesc_amd64
9805 as default tdesc.
9806
9807 2017-07-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
9808
9809 * s390-linux-tdep.c (s390_process_record): Add support for
9810 instructions new in arch12.
9811
9812 2017-07-11 John Baldwin <jhb@FreeBSD.org>
9813
9814 * amd64-bsd-nat.c (amd64bsd_fetch_inferior_registers): Use
9815 PT_GETFSBASE and PT_GETGSBASE.
9816 (amd64bsd_store_inferior_registers): Use PT_SETFSBASE and
9817 PT_SETGSBASE.
9818
9819 2017-07-11 John Baldwin <jhb@FreeBSD.org>
9820
9821 * features/Makefile (amd64.dat, amd64-avx.dat, amd64-mpx.dat)
9822 (amd64-avx-mpx.dat, amd64-avx-avx512.dat)
9823 (amd64-avx-mpx-avx512-pku.dat): Add i386/64bit-segments.xml in
9824 those rules.
9825 * features/i386/amd64-avx-avx512.xml: Add 64bit-segments.xml.
9826 * features/i386/amd64-avx-mpx-avx512-pku.xml: Add 64bit-segments.xml.
9827 * features/i386/amd64-avx-mpx.xml: Add 64bit-segments.xml.
9828 * features/i386/amd64-avx.xml: Add 64bit-segments.xml.
9829 * features/i386/amd64-mpx.xml: Add 64bit-segments.xml.
9830 * features/i386/amd64.xml: Add 64bit-segments.xml.
9831 * features/i386/amd64-avx-avx512.c: Regenerated.
9832 * features/i386/amd64-avx-mpx-avx512-pku.c: Regenerated.
9833 * features/i386/amd64-avx-mpx.c: Regenerated.
9834 * features/i386/amd64-avx.c: Regenerated.
9835 * features/i386/amd64-mpx.c: Regenerated.
9836 * features/i386/amd64.c: Regenerated.
9837 * regformats/i386/amd64-avx-avx512.dat: Regenerated.
9838 * regformats/i386/amd64-avx-mpx-avx512-pku.dat: Regenerated.
9839 * regformats/i386/amd64-avx-mpx.dat: Regenerated.
9840 * regformats/i386/amd64-avx.dat: Regenerated.
9841 * regformats/i386/amd64-mpx.dat: Regenerated.
9842 * regformats/i386/amd64.dat: Regenerated.
9843
9844 2017-07-10 Yao Qi <yao.qi@linaro.org>
9845
9846 * features/i386/amd64-avx-avx512-linux.c: Re-generated.
9847 * features/i386/amd64-avx-mpx-avx512-pku-linux.c: Re-generated.
9848
9849 2017-07-10 Anton Kolesov <Anton.Kolesov@synopsys.com>
9850
9851 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add setenv and
9852 unsetenv.
9853 * gnulib/aclocal.m4: Regenerate.
9854 * gnulib/config.in: Regenerate.
9855 * gnulib/configure: Regenerate.
9856 * gnulib/import/Makefile.am: Regenerate.
9857 * gnulib/import/Makefile.in: Regenerate.
9858 * gnulib/import/m4/gnulib-cache.m4: Regenerate.
9859 * gnulib/import/m4/gnulib-comp.m4: Regenerate.
9860 * gnulib/import/m4/environ.m4: New file.
9861 * gnulib/import/m4/setenv.m4: New file.
9862 * gnulib/import/setenv.c: New file.
9863 * gnulib/import/unsetenv.c: New file.
9864
9865 2017-07-09 Simon Marchi <simon.marchi@ericsson.com>
9866
9867 * compile/compile-loc2c.c (do_compile_dwarf_expr_to_c): Read
9868 address when op is DW_OP_addr.
9869
9870 2017-07-09 Tom Tromey <tom@tromey.com>
9871
9872 * dwarf2loc.c (dwarf2_evaluate_loc_desc_full): Reverse size
9873 check and apply to outer type.
9874
9875 2017-07-07 John Baldwin <jhb@FreeBSD.org>
9876
9877 * fbsd-tdep.c (LWPINFO_OFFSET, LWPINFO_PL_FLAGS)
9878 (LWPINFO64_PL_SIGINFO, LWPINFO32_PL_SIGINFO, PL_FLAG_SI)
9879 (SIZE64_SIGINFO_T, SIZE32_SIGINFO_T, fbsd_core_xfer_siginfo): New.
9880 (fbsd_init_abi): Install gdbarch "core_xfer_siginfo" method.
9881
9882 2017-07-07 John Baldwin <jhb@FreeBSD.org>
9883
9884 * fbsd-tdep.c (fbsd_core_thread_name): Use thread_section_name.
9885
9886 2017-07-07 John Baldwin <jhb@FreeBSD.org>
9887
9888 * corelow.c (get_core_siginfo): Remove.
9889 (core_xfer_partial): Use the gdbarch "core_xfer_siginfo" method
9890 instead of get_core_siginfo.
9891 * gdbarch.sh (core_xfer_siginfo): New gdbarch callback.
9892 * gdbarch.h: Re-generate.
9893 * gdbarch.c: Re-generate.
9894 * linux-tdep.c (linux_core_xfer_siginfo): New.
9895 (linux_init_abi): Install gdbarch "core_xfer_siginfo" method.
9896
9897 2017-07-07 John Baldwin <jhb@FreeBSD.org>
9898
9899 * corelow.c (thread_section_name): Move to ...
9900 * gdbcore.h (thread_section_name): ... here.
9901
9902 2017-07-07 John Baldwin <jhb@FreeBSD.org>
9903
9904 * fbsd-nat.c [PT_LWPINFO && __LP64__] (union sigval32)
9905 (struct siginfo32): New.
9906 [PT_LWPINFO] (fbsd_siginfo_size, fbsd_convert_siginfo): New.
9907 (fbsd_xfer_partial) [PT_LWPINFO]: Handle TARGET_OBJECT_SIGNAL_INFO
9908 via ptrace(PT_LWPINFO).
9909
9910 2017-07-07 John Baldwin <jhb@FreeBSD.org>
9911
9912 * fbsd-tdep.c (fbsd_gdbarch_data_handle, struct fbsd_gdbarch_data)
9913 (init_fbsd_gdbarch_data, get_fbsd_gdbarch_data)
9914 (fbsd_get_siginfo_type): New.
9915 (fbsd_init_abi): Install gdbarch "get_siginfo_type" method.
9916 (_initialize_fbsd_tdep): New.
9917
9918 2017-07-06 David Blaikie <dblaikie@gmail.com>
9919
9920 * dwarf2read.c (struct dwo_file): Use a htab of dwo_unit* (rather than
9921 a singular dwo_unit*) to support multiple CUs in the same way that
9922 multiple TUs are supported.
9923 (create_cus_hash_table): Replace create_dwo_cu with a function for
9924 parsing multiple CUs from a DWO file.
9925 (open_and_init_dwo_file): Use create_cus_hash_table rather than
9926 create_dwo_cu.
9927 (lookup_dwo_cutu): Lookup CU in the hash table in the dwo_file with
9928 htab_find, rather than comparing the signature to a singleton CU in
9929 the dwo_file.
9930
9931 2017-07-06 Pedro Alves <palves@redhat.com>
9932
9933 * python/py-unwind.c (pyuw_dealloc_cache): Fix for loop condition.
9934
9935 2017-07-04 Pedro Alves <palves@redhat.com>
9936
9937 * gdbtypes.c (recursive_dump_type): Don't reference TYPE_STATIC.
9938 * gdbtypes.h (TYPE_STATIC): Delete.
9939 (struct fn_field) <is_public, is_abstract, is_static, is_final,
9940 is_synchronized, is_native>: Delete.
9941 <dummy>: Bump.
9942 (TYPE_FN_FIELD_PUBLIC, TYPE_FN_FIELD_STATIC, TYPE_FN_FIELD_FINAL)
9943 (TYPE_FN_FIELD_SYNCHRONIZED, TYPE_FN_FIELD_NATIVE)
9944 (TYPE_FN_FIELD_ABSTRACT): Delete.
9945
9946 2017-07-03 Simon Marchi <simon.marchi@ericsson.com>
9947
9948 * buffer.h (buffer_finish): Fix spelling mistakes.
9949
9950 2017-07-01 Eli Zaretskii <eliz@gnu.org>
9951
9952 * .dir-locals.el: Automatically switch to C-style comments in
9953 versions of Emacs that support the feature.
9954
9955 2017-06-30 Sergio Durigan Junior <sergiodj@redhat.com>
9956 Pedro Alves <palves@redhat.com>
9957
9958 PR cli/21688
9959 * cli/cli-script.c (command_name_equals_not_inline): Remove function.
9960 (process_next_line): New variable 'inline_cmd'.
9961 Adjust 'if' clauses for "python", "compile" and "guile" to use
9962 'command_name_equals' and check for '!inline_cmd'.
9963
9964 2017-06-30 Sergio Durigan Junior <sergiodj@redhat.com>
9965
9966 PR cli/21688
9967 * cli/cli-script.c (command_name_equals_not_inline): New function.
9968 (process_next_line): Adjust 'if' clauses for "python", "compile"
9969 and "guile" to use command_name_equals_not_inline.
9970
9971 2017-06-29 Pedro Alves <palves@redhat.com>
9972
9973 * completer.c (expression_completer): Call
9974 linespec_location_completer instead of location_completer.
9975
9976 2017-06-29 Pedro Alves <palves@redhat.com>
9977
9978 * completer.c (expression_completer): Remove code that recomputes
9979 'text' from 'word'.
9980
9981 2017-06-29 Yao Qi <yao.qi@linaro.org>
9982
9983 * regformats/regdat.sh: Generate code with
9984 "ifndef IN_PROCESS_AGENT".
9985
9986 2017-06-28 Pedro Alves <palves@redhat.com>
9987
9988 * command.h: Include "common/scoped_restore.h".
9989
9990 2017-06-28 Yao Qi <yao.qi@linaro.org>
9991
9992 * mi/mi-cmd-break.c (mi_argv_to_format): Use obstack_grow_str
9993 instead of obstack_grow.
9994
9995 2017-06-28 Doug Gilmore <Doug.Gilmore@imgtec.com>
9996
9997 PR gdb/21337
9998 * symfile.c (reread_symbols): Call objfiles_changed just before
9999 read_symbols.
10000
10001 2017-06-27 Pedro Alves <palves@redhat.com>
10002
10003 * symtab.c (COMPLETION_LIST_ADD_SYMBOL)
10004 (MCOMPLETION_LIST_ADD_SYMBOL): Delete macros, replace with ...
10005 (completion_list_add_symbol, completion_list_add_msymbol):
10006 ... these new functions.
10007 (add_symtab_completions)
10008 (default_make_symbol_completion_list_break_on_1): Adjust.
10009
10010 2017-06-27 Pedro Alves <palves@redhat.com>
10011
10012 * objfiles.c (get_objfile_bfd_data): Call bfd_alloc instead of
10013 bfd_zalloc. Call objfile_per_bfd_storage's ctor.
10014 (free_objfile_per_bfd_storage): Call objfile_per_bfd_storage's
10015 dtor.
10016 * objfiles.h (objfile_per_bfd_storage): Add ctor. Make
10017 'storage_obstack' field an auto_obstack. In-class initialize all
10018 non-bitfield fields. Make minsyms_read bool.
10019 * symfile.c (read_symbols): Adjust.
10020
10021 2017-06-27 Alan Hayward <alan.hayward@arm.com>
10022
10023 * remote-sim.c (gdbsim_fetch_register): Use byte_vector.
10024 (gdbsim_store_register): Likewise.
10025
10026 2017-06-27 Pedro Alves <palves@redhat.com>
10027
10028 * c-exp.y (name_obstack): Now an auto_obstack.
10029 (yylex): Use auto_obstack::clear.
10030 (c_parse): Use auto_obstack::clear instead of reinitializing and
10031 freeing the obstack.
10032 * c-lang.c (evaluate_subexp_c): Use auto_obstack.
10033 * d-exp.y (name_obstack): Now an auto_obstack.
10034 (yylex): Use auto_obstack::clear.
10035 (d_parse): Use auto_obstack::clear instead of reinitializing and
10036 freeing the obstack.
10037 * dwarf2loc.c (fetch_const_value_from_synthetic_pointer): Use
10038 auto_obstack.
10039 * dwarf2read.c (create_addrmap_from_index)
10040 (dwarf2_build_psymtabs_hard)
10041 (update_enumeration_type_from_children): Likewise.
10042 * gdb_obstack.h (auto_obstack): New type.
10043 * go-exp.y (name_obstack): Now an auto_obstack.
10044 (build_packaged_name): Use auto_obstack::clear.
10045 (go_parse): Use auto_obstack::clear instead of reinitializing and
10046 freeing the obstack.
10047 * linux-tdep.c (linux_make_mappings_corefile_notes): Use
10048 auto_obstack.
10049 * printcmd.c (printf_wide_c_string, ui_printf): Use auto_obstack.
10050 * rust-exp.y (work_obstack): Now an auto_obstack.
10051 (rust_parse, rust_lex_tests): Use auto_obstack::clear instead of
10052 reinitializing and freeing the obstack.
10053 * utils.c (do_obstack_free, make_cleanup_obstack_free): Delete.
10054 (host_char_to_target): Use auto_obstack.
10055 * utils.h (make_cleanup_obstack_free): Delete declaration.
10056 * valprint.c (generic_emit_char, generic_printstr): Use
10057 auto_obstack.
10058
10059 2017-06-27 Simon Marchi <simon.marchi@ericsson.com>
10060
10061 * darwin-nat.c (darwin_check_new_threads): Don't handle dummy
10062 thread.
10063 (darwin_init_thread_list): Don't update dummy thread.
10064 (darwin_create_inferior, darwin_attach): Don't add a dummy thread.
10065
10066 2017-06-26 Simon Marchi <simon.marchi@ericsson.com>
10067
10068 * record-full.c (netorder16): Remove.
10069
10070 2017-06-26 Simon Marchi <simon.marchi@ericsson.com>
10071
10072 * common/diagnostics.h: Define macros for GCC.
10073 (DIAGNOSTIC_IGNORE_UNUSED_FUNCTION): New macro.
10074 * common/vec.h: Include diagnostics.h.
10075 (DIAGNOSTIC_IGNORE_UNUSED_VEC_FUNCTION): New macro.
10076 (DEF_VEC_I, DEF_VEC_P, DEF_VEC_O): Ignore -Wunused-function
10077 warning.
10078
10079 2017-06-26 Simon Marchi <simon.marchi@ericsson.com>
10080
10081 * common/diagnostics.h (DIAGNOSTIC_IGNORE_DEPRECATED_REGISTER):
10082 New macro.
10083 * ada-lex.l: Ignore deprecated register warnings.
10084
10085 2017-06-25 Simon Marchi <simon.marchi@ericsson.com>
10086
10087 * main.c (get_init_files): Replace "SYSTEM_GDBINIT +
10088 datadir_len" with "&SYSTEM_GDBINIT[datadir_len]".
10089
10090 2017-06-25 Simon Marchi <simon.marchi@ericsson.com>
10091
10092 * dtrace-probe.c (dtrace_process_dof_probe): Put semi-colon on
10093 its own line.
10094
10095 2017-06-25 Simon Marchi <simon.marchi@ericsson.com>
10096
10097 * nat/x86-dregs.c (x86_show_dr): Print registers one per line.
10098
10099 2017-06-23 Alan Hayward <alan.hayward@arm.com>
10100
10101 * xtensa-tdep.c (XTENSA_MAX_REGISTER_SIZE): Add.
10102 (xtensa_register_write_masked): Use XTENSA_MAX_REGISTER_SIZE.
10103 (xtensa_register_read_masked): Likewise.
10104
10105 2017-06-22 Sergio Durigan Junior <sergiodj@redhat.com>
10106
10107 * common/environ.c (gdb_environ::unset): Update comment.
10108
10109 2017-06-22 Alan Hayward <alan.hayward@arm.com>
10110
10111 * python/py-unwind.c (pyuw_sniffer): Allocate space for
10112 registers.
10113
10114 2017-06-22 Alan Hayward <alan.hayward@arm.com>
10115
10116 * record-full.c (record_full_exec_insn): Use byte_vector.
10117
10118 2017-06-22 Yao Qi <yao.qi@linaro.org>
10119
10120 * regformats/i386/amd64-avx-mpx-avx512-pku-linux.dat: Regenerated.
10121 * regformats/i386/amd64-avx-mpx-avx512-pku.dat: Regenerated.
10122
10123 2017-06-22 Alan Hayward <alan.hayward@arm.com>
10124
10125 * remote.c (cached_reg): Move from here...
10126 * regcache.h (cached_reg): ...to here.
10127 * python/py-unwind.c (struct reg_info): Remove.
10128 (cached_frame_info): Use cached_reg_t.
10129 (pyuw_prev_register): Likewise.
10130 (pyuw_sniffer): Use cached_reg_t and allocate registers.
10131 (pyuw_dealloc_cache): Free all registers.
10132
10133 2017-06-22 Pedro Alves <palves@redhat.com>
10134 Simon Marchi <simon.marchi@ericsson.com>
10135
10136 * unittests/environ-selftests.c (run_tests): Ignore -Wself-move
10137 warning.
10138 * common/diagnostics.h: New file.
10139
10140 2017-06-22 Pedro Alves <palves@redhat.com>
10141
10142 * common/agent.h: Add include guards.
10143
10144 2017-06-21 Simon Marchi <simon.marchi@ericsson.com>
10145
10146 * target.h (struct target_ops) <to_xfer_partial>: Update doc to
10147 talk about addressable units instead of bytes.
10148
10149 2017-06-20 Sergio Durigan Junior <sergiodj@redhat.com>
10150
10151 * common/environ.c (gdb_environ::unset): Use '::iterator' instead
10152 of '::const_iterator'.
10153
10154 2017-06-20 Sergio Durigan Junior <sergiodj@redhat.com>
10155
10156 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
10157 'unittests/environ-selftests.c'.
10158 (SUBDIR_UNITTESTS_OBS): Add 'environ-selftests.o'.
10159 * charset.c (find_charset_names): Declare object 'iconv_env'.
10160 Update code to use 'iconv_env' object. Remove call to
10161 'free_environ'.
10162 * common/environ.c: Include <utility>.
10163 (make_environ): Delete function.
10164 (free_environ): Delete function.
10165 (gdb_environ::clear): New function.
10166 (gdb_environ::operator=): New function.
10167 (gdb_environ::get): Likewise.
10168 (environ_vector): Delete function.
10169 (set_in_environ): Delete function.
10170 (gdb_environ::set): New function.
10171 (unset_in_environ): Delete function.
10172 (gdb_environ::unset): New function.
10173 (gdb_environ::envp): Likewise.
10174 * common/environ.h: Include <vector>.
10175 (struct gdb_environ): Delete; transform into...
10176 (class gdb_environ): ... this class.
10177 (free_environ): Delete prototype.
10178 (init_environ, get_in_environ, set_in_environ, unset_in_environ,
10179 environ_vector): Likewise.
10180 * infcmd.c (run_command_1): Update code to call
10181 'envp' from 'gdb_environ' class.
10182 (environment_info): Update code to call methods from 'gdb_environ'
10183 class.
10184 (unset_environment_command): Likewise.
10185 (path_info): Likewise.
10186 (path_command): Likewise.
10187 * inferior.c (inferior::~inferior): Delete call to 'free_environ'.
10188 (inferior::inferior): Initialize 'environment' using the host's
10189 information.
10190 * inferior.h: Remove forward declaration of 'struct gdb_environ'.
10191 Include "environ.h".
10192 (class inferior) <environment>: Change type from 'struct
10193 gdb_environ' to 'gdb_environ'.
10194 * mi/mi-cmd-env.c (mi_cmd_env_path): Update code to call
10195 methods from 'gdb_environ' class.
10196 * solib.c (solib_find_1): Likewise
10197 * unittests/environ-selftests.c: New file.
10198
10199 2017-06-20 Yao Qi <yao.qi@linaro.org>
10200
10201 * features/i386/i386-linux.xml: Exchange the order of including
10202 32bit-linux.xml and 32bit-sse.xml.
10203 * features/i386/i386-linux.c: Regenerated.
10204
10205 2017-06-20 Yao Qi <yao.qi@linaro.org>
10206
10207 * target-descriptions.c (tdesc_reg): Add ctor, dtor.
10208 Delete copy ctor and assignment operator.
10209 (tdesc_type): Likewise.
10210 (tdesc_feature): Likewise.
10211 (tdesc_free_reg): Remove.
10212 (tdesc_create_reg): Use new.
10213 (tdesc_free_type): Remove.
10214 (tdesc_create_vector): Use new.
10215 (tdesc_create_union): Likewise.
10216 (tdesc_create_flags): Likewise.
10217 (tdesc_create_enum): Likewise.
10218 (tdesc_free_feature): Delete.
10219 (free_target_description): Use delete.
10220
10221 2017-06-19 John Baldwin <jhb@FreeBSD.org>
10222
10223 * mips-tdep.c (print_gp_register_row): Don't error for unavailable
10224 registers.
10225
10226 2017-06-19 Pedro Alves <palves@redhat.com>
10227
10228 * dwarf2read.c (write_psymtabs_to_index): Construct file_closer
10229 after gdb::unlinker.
10230
10231 2017-06-19 Sergio Durigan Junior <sergiodj@redhat.com>
10232
10233 * mi/mi-cm-env.c (_initialize_mi_cmd_env): Use getenv instead of
10234 gdb_environ to access an environment variable.
10235
10236 2017-06-18 Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
10237
10238 * nat/linux-ptrace.c (linux_fork_to_function): Add cast to
10239 gdb_byte*.
10240
10241 2017-06-17 Simon Marchi <simon.marchi@ericsson.com>
10242
10243 * nat/fork-inferior.h (trace_start_error): Add ATTRIBUTE_PRINTF.
10244
10245 2017-06-17 Simon Marchi <simon.marchi@ericsson.com>
10246
10247 * configure: Re-generate.
10248 * warning.m4 (build_warnings): Add -Wno-mismatched-tags.
10249
10250 2017-06-17 Simon Marchi <simon.marchi@ericsson.com>
10251
10252 * configure: Re-generate.
10253 * warning.m4: Pass -Werror to compiler when checking for
10254 supported warning flags.
10255
10256 2017-06-17 Simon Marchi <simon.marchi@ericsson.com>
10257
10258 * Makefile.in (COMPILE.pre): Add "-x c++".
10259
10260 2017-06-16 Alan Hayward <alan.hayward@arm.com>
10261 Pedro Alves <palves@redhat.com>
10262 Yao Qi <yao.qi@linaro.org>
10263
10264 * defs.h (RequireLongest): New.
10265 (extract_integer): Declare function template.
10266 (extract_signed_integer): Remove the declaration, but define it
10267 static inline.
10268 (extract_unsigned_integer): Likewise.
10269 (store_integer): Declare function template.
10270 (store_signed_integer): Remove the declaration, but define it
10271 static inline.
10272 (store_unsigned_integer): Likewise.
10273 * findvar.c (extract_integer): New function template.
10274 (extract_signed_integer): Remove.
10275 (extract_unsigned_integer): Remove.
10276 (extract_integer<LONGEST>, extract_integer<ULONGEST>): Explicit
10277 instantiations.
10278 (store_integer): New function template.
10279 (store_signed_integer): Remove.
10280 (store_unsigned_integer): Remove.
10281 (store_integer): Explicit instantiations.
10282 * regcache.c (regcache_raw_read_signed): Update.
10283 (regcache::raw_read): New function.
10284 (regcache::raw_read_signed): Remove.
10285 (regcache::raw_read_unsigned): Remove.
10286 (regcache_raw_read_unsigned): Update.
10287 (regcache_raw_write_unsigned): Update.
10288 (regcache::raw_write_signed): Remove.
10289 (regcache::raw_write): New function.
10290 (regcache_cooked_read_signed): Update.
10291 (regcache::raw_write_unsigned): Remove.
10292 (regcache::cooked_read_signed): Remove.
10293 (regcache_cooked_read_unsigned): Update.
10294 (regcache::cooked_read_unsigned): Remove.
10295 (regcache_cooked_write_signed): Update.
10296 (regcache_cooked_write_unsigned): Update.
10297 * regcache.h (regcache) <raw_read_signed>: Remove.
10298 <raw_write_signed, raw_read_unsigned, raw_write_unsigned>: Remove.
10299 <raw_read, raw_write>: New.
10300 <cooked_read_signed, cooked_write_signed>: Remove.
10301 <cooked_write_unsigned, cooked_read_unsigned>: Remove.
10302 <cooked_read, cooked_write>: New.
10303 * sh64-tdep.c (sh64_pseudo_register_read): Update.
10304 (sh64_pseudo_register_write): Update.
10305
10306 2017-06-16 Anton Kolesov <anton.kolesov@synopsys.com>
10307
10308 * arc-tdep.c (arc_disassembler_options): New variable.
10309 (arc_gdbarch_init): Set and use it. Use arc_delayed_print_insn instead
10310 of default_print_insn.
10311 (arc_delayed_print_insn): Set info->section when needed,
10312 use default_print_insn to retrieve a disassembler.
10313
10314 2017-06-14 Sergio Durigan Junior <sergiodj@redhat.com>
10315
10316 PR gdb/21574
10317 * infcmd.c (_initialize_infcmd): Expand "help run" documentation
10318 to mention $SHELL and startup-with-shell.
10319
10320 2017-06-14 Max Filippov <jcmvbkbc@gmail.com>
10321
10322 * MAINTAINERS: Move Maxim Grigoriev to the Past Maintainers.
10323
10324 2017-06-14 Yao Qi <yao.qi@linaro.org>
10325
10326 * aarch64-tdep.c (aarch64_gdb_print_insn): Call
10327 default_print_insn instead of print_insn_aarch64.
10328 * arm-tdep.c (gdb_print_insn_arm): Call
10329 default_print_insn instead of print_insn_big_arm
10330 and print_insn_little_arm.
10331 * i386-tdep.c (i386_print_insn): Call default_print_insn
10332 instead of print_insn_i386.
10333 * ia64-tdep.c (ia64_print_insn): Call
10334 default_print_insn instead of print_insn_ia64.
10335 * mips-tdep.c (gdb_print_insn_mips): Call
10336 default_print_insn instead of print_insn_big_mips
10337 and print_insn_little_mips.
10338 * spu-tdep.c (gdb_print_insn_spu): Call default_print_insn
10339 instead of print_insn_spu.
10340
10341 2017-06-14 Pedro Alves <palves@redhat.com>
10342
10343 * ada-lang.c: Include "common/byte-vector.h".
10344 (ada_value_primitive_packed_val): Use gdb::byte_vector.
10345 * charset.c (wchar_iterator::iterate): Resize the vector instead
10346 of reserving it.
10347 * common/byte-vector.h: Include "common/def-vector.h".
10348 (wchar_iterator::m_out): Now a gdb::def_vector<gdb_wchar_t>.
10349 * cli/cli-dump.c: Include "common/byte-vector.h".
10350 (dump_memory_to_file, restore_binary_file): Use gdb::byte_vector.
10351 * common/byte-vector.h: New file.
10352 * common/def-vector.h: New file.
10353 * common/default-init-alloc.h: New file.
10354 * dwarf2loc.c: Include "common/byte-vector.h".
10355 (rw_pieced_value): Use gdb::byte_vector, and resize the vector
10356 instead of reserving it.
10357 * dwarf2read.c: Include "common/byte-vector.h".
10358 (data_buf::m_vec): Now a gdb::byte_vector.
10359 * gdb_regex.c: Include "common/def-vector.h".
10360 (compiled_regex::compiled_regex): Use gdb::def_vector<char>.
10361 * mi/mi-main.c: Include "common/byte-vector.h".
10362 (mi_cmd_data_read_memory): Use gdb::byte_vector.
10363 * printcmd.c: Include "common/byte-vector.h".
10364 (print_scalar_formatted): Use gdb::byte_vector.
10365 * valprint.c: Include "common/byte-vector.h".
10366 (maybe_negate_by_bytes, print_decimal_chars): Use
10367 gdb::byte_vector.
10368
10369 2017-06-13 Simon Marchi <simon.marchi@ericsson.com>
10370
10371 * darwin-nat.c: Include "nat/fork-inferior.h".
10372
10373 2017-06-13 Simon Marchi <simon.marchi@ericsson.com>
10374
10375 * configure.nat: Factor out Darwin bits that are not
10376 architecture-specific. Add fork-inferior.o.
10377
10378 2017-06-13 Simon Marchi <simon.marchi@ericsson.com>
10379
10380 * configure.nat: Factor out AIX bits that are not
10381 architecture-specific. Add fork-inferior.o.
10382
10383 2017-06-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
10384
10385 * dwarf2loc.c (rw_pieced_value): New. Merge logic from...
10386 (read_pieced_value, write_pieced_value): ...here. Reduce to
10387 wrappers that just call rw_pieced_value.
10388
10389 2017-06-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
10390
10391 * dwarf2loc.c (write_pieced_value): When writing the data for a
10392 memory piece, use write_memory_with_notification instead of
10393 write_memory.
10394
10395 2017-06-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
10396
10397 * valops.c (read_value_memory): Change embedded_offset to
10398 represent a bit offset instead of a byte offset.
10399 * value.h (read_value_memory): Adjust comment.
10400
10401 2017-06-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
10402
10403 * dwarf2loc.c (read_pieced_value): Remove unnecessary variables
10404 dest_offset_bits and source_offset_bits.
10405 (write_pieced_value): Likewise.
10406
10407 2017-06-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
10408
10409 * dwarf2loc.c (read_pieced_value): Respect the piece offset, as
10410 given by DW_OP_bit_piece.
10411 (write_pieced_value): Likewise.
10412
10413 2017-06-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
10414
10415 * dwarf2loc.c (read_pieced_value): Move the buffer allocation and
10416 some other preparations to the places where sufficient information
10417 is available.
10418 (write_pieced_value): Likewise.
10419
10420 2017-06-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
10421
10422 * dwarf2loc.c (bits_to_bytes): New function.
10423 (read_pieced_value): Fix offset calculations for register pieces
10424 on big-endian targets.
10425 (write_pieced_value): Likewise.
10426
10427 2017-06-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
10428
10429 * dwarf2loc.c (read_pieced_value): Remove buffer_size variable.
10430 (write_pieced_value): Likewise.
10431
10432 2017-06-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
10433
10434 * dwarf2loc.c (write_pieced_value): When writing to a bit-field,
10435 transfer the source value's least significant bits, instead of its
10436 lowest-addressed ones. Rename type_len to max_offset.
10437 (read_pieced_value): Mirror above changes to write_pieced_value as
10438 applicable.
10439
10440 2017-06-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
10441
10442 * dwarf2loc.c (write_pieced_value): In DWARF_VALUE_MEMORY,
10443 truncate full bytes from dest_offset_bits before using it as an
10444 offset into the buffer.
10445
10446 2017-06-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
10447
10448 * dwarf2loc.c (write_pieced_value): Include transfer size in
10449 byte-wise check.
10450
10451 2017-06-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
10452
10453 * dwarf2loc.c (write_pieced_value): Fix copy/paste error in the
10454 calculation of this_size.
10455
10456 2017-06-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
10457
10458 * dwarf2loc.c (read_pieced_value): Respect parent value's offset
10459 when targeting a bit-field.
10460 (write_pieced_value): Likewise.
10461
10462 2017-06-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
10463
10464 * dwarf2loc.c (struct piece_closure) <addr_size>: Remove field.
10465 (allocate_piece_closure): Drop addr_size parameter.
10466 (dwarf2_evaluate_loc_desc_full): Adjust call to
10467 allocate_piece_closure.
10468
10469 2017-06-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
10470
10471 PR gdb/21226
10472 * dwarf2loc.c (read_pieced_value): Anchor stack value pieces at
10473 the LSB end, independent of endianness.
10474
10475 2017-06-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
10476
10477 * dwarf2loc.c (write_pieced_value): Fix order of calculations for
10478 size capping.
10479
10480 2017-06-13 Yao Qi <yao.qi@linaro.org>
10481
10482 * mips-linux-nat.c: Move include features/mips*-linux.c to
10483 mips-linux-tdep.c.
10484 (_initialize_mips_linux_nat): Move initialize_tdesc_mips* calls
10485 to mips-linux-tdep.c.
10486 * mips-linux-tdep.c: Include features/mips*-linux.c
10487 (_initialize_mips_linux_tdep): Call initialize_tdesc_mips*
10488 functions.
10489 * mips-linux-tdep.h (tdesc_mips_linux): Declare.
10490 (tdesc_mips_dsp_linux, tdesc_mips64_linux): Declare.
10491 (tdesc_mips64_dsp_linux): Declare.
10492
10493 2017-06-12 Tom Tromey <tom@tromey.com>
10494
10495 * valprint.h (val_print_type_code_int): Remove.
10496 * valprint.c (generic_val_print_int): Always call
10497 val_print_scalar_formatted.
10498 (val_print_type_code_int): Remove.
10499 * printcmd.c (print_scalar_formatted): Handle options->format==0.
10500 * f-valprint.c (f_val_print): Use val_print_scalar_formatted.
10501 * c-valprint.c (c_val_print_int): Use val_print_scalar_formatted.
10502 * ada-valprint.c (ada_val_print_num): Use
10503 val_print_scalar_formatted.
10504
10505 2017-06-12 Tom Tromey <tom@tromey.com>
10506
10507 * printcmd.c (print_scalar_formatted): Unify the two switches.
10508 Don't convert scalars to LONGEST.
10509
10510 2017-06-12 Tom Tromey <tom@tromey.com>
10511
10512 PR exp/16225:
10513 * valprint.h (print_decimal_chars): Update.
10514 * valprint.c (maybe_negate_by_bytes): New function.
10515 (print_decimal_chars): Add "is_signed" argument.
10516 * printcmd.c (print_scalar_formatted): Update.
10517
10518 2017-06-12 Tom Tromey <tom@tromey.com>
10519
10520 PR exp/16225:
10521 * valprint.h (print_binary_chars, print_hex_chars): Update.
10522 * valprint.c (val_print_type_code_int): Update.
10523 (print_binary_chars): Add "zero_pad" argument.
10524 (emit_octal_digit): New function.
10525 (print_octal_chars): Don't zero-pad.
10526 (print_decimal_chars): Likewise.
10527 (print_hex_chars): Add "zero_pad" argument.
10528 * sh64-tdep.c (sh64_do_fp_register): Update.
10529 * regcache.c (regcache::dump): Update.
10530 * printcmd.c (print_scalar_formatted): Update.
10531 * infcmd.c (default_print_one_register_info): Update.
10532
10533 2017-06-12 Pedro Alves <palves@redhat.com>
10534 Alan Hayward <alan.hayward@arm.com>
10535
10536 * mips-tdep.c (MAX_MIPS_ABI_REGSIZE): New.
10537 (mips_eabi_push_dummy_call): Rename local 'regsize' to
10538 'abi_regsize'. Rename local array 'valbuf' to 'ref_valbuf', and
10539 use MAX_MIPS_ABI_REGSIZE instead of MAX_REGISTER_SIZE to size it.
10540 Assert that abi_regsize bytes fit in 'ref_valbuf'.
10541
10542 2017-06-12 Pedro Alves <palves@redhat.com>
10543
10544 * dwarf2read.c (mapped_symtab::data): Now a vector of
10545 symtab_index_entry instead of vector of
10546 std::unique_ptr<symtab_index_entry>. All users adjusted to check
10547 whether an element's name is NULL instead of checking whether the
10548 element itself is NULL.
10549 (find_slot): Change return type. Adjust.
10550 (hash_expand, , add_index_entry, uniquify_cu_indices)
10551 (write_hash_table): Adjust.
10552
10553 2017-06-12 Pedro Alves <palves@redhat.com>
10554
10555 * dwarf2read.c (recursively_count_psymbols): New function.
10556 (write_psymtabs_to_index): Call it to compute number of psyms and
10557 pass estimate size of psyms_seen to unordered_set's ctor.
10558
10559 2017-06-12 Pedro Alves <palves@redhat.com>
10560
10561 * dwarf2read.c (write_hash_table): Check if key already exists
10562 before emplacing.
10563
10564 2017-06-12 Pedro Alves <palves@redhat.com>
10565
10566 * dwarf2read.c (data_buf::append_space): Rename to...
10567 (data_buf::grow): ... this, and make private. Adjust all callers.
10568 (data_buf::append_uint): New method.
10569 (add_address_entry, write_one_signatured_type)
10570 (write_psymtabs_to_index): Use it.
10571
10572 2017-06-12 Pedro Alves <palves@redhat.com>
10573
10574 * dwarf2read.c (file_write(FILE *, const void *, size_t)): Delete.
10575 (file_write (FILE *, const std::vector<Elem>&)): Delete.
10576 (data_buf::file_write): Call ::fwrite directly.
10577
10578 2017-06-12 Pedro Alves <palves@redhat.com>
10579
10580 * dwarf2read.c (uniquify_cu_indices): Use std::unique and
10581 std::vector::erase.
10582
10583 2017-06-12 Jan Kratochvil <jan.kratochvil@redhat.com>
10584
10585 Code cleanup: C++ify .gdb_index producer.
10586 * dwarf2read.c: Include <unordered_set> and <unordered_map>.
10587 (MAYBE_SWAP) [WORDS_BIGENDIAN]: Cast to offset_type.
10588 (struct strtab_entry, hash_strtab_entry, eq_strtab_entry)
10589 (create_strtab, add_string): Remove.
10590 (file_write, data_buf): New.
10591 (struct symtab_index_entry): Use std::vector for cu_indices.
10592 (struct mapped_symtab): Use std::vector for data.
10593 (hash_symtab_entry, eq_symtab_entry, delete_symtab_entry)
10594 (create_symbol_hash_table, create_mapped_symtab, cleanup_mapped_symtab):
10595 Remove.
10596 (find_slot): Change return type. Update it to the new data structures.
10597 (hash_expand, add_index_entry): Update it to the new data structures.
10598 (offset_type_compare): Remove.
10599 (uniquify_cu_indices): Update it to the new data structures.
10600 (c_str_view, c_str_view_hasher, vector_hasher): New.
10601 (add_indices_to_cpool): Remove.
10602 (write_hash_table): Update it to the new data structures.
10603 (struct psymtab_cu_index_map, hash_psymtab_cu_index)
10604 (eq_psymtab_cu_index): Remove.
10605 (psym_index_map): New typedef.
10606 (struct addrmap_index_data): Change addr_obstack pointer to data_buf
10607 reference and std::unordered_map for cu_index_htab.
10608 (add_address_entry, add_address_entry_worker, write_address_map)
10609 (write_psymbols): Update it to the new data structures.
10610 (write_obstack): Remove.
10611 (struct signatured_type_index_data): Change types_list to a data_buf
10612 reference and psyms_seen to a std::unordered_set reference.
10613 (write_one_signatured_type, recursively_write_psymbols)
10614 (write_psymtabs_to_index): Update it to the new data structures.
10615
10616 2017-06-11 Simon Marchi <simon.marchi@ericsson.com>
10617
10618 * NEWS (Changes since GDB 8.0): Announce {set,show} debug
10619 separate-debug-file commands.
10620 * symfile.h (separate_debug_file_debug): New global.
10621 * symfile.c (separate_debug_file_debug): New global.
10622 (separate_debug_file_exists, find_separate_debug_file): Add
10623 debug output.
10624 (_initialize_symfile): Add "set debug separate-debug-file"
10625 command.
10626 * build-id.c (build_id_to_debug_bfd,
10627 find_separate_debug_file_by_buildid): Add debug output.
10628
10629 2017-06-10 Simon Marchi <simon.marchi@polymtl.ca>
10630
10631 * gdbarch.sh (displaced_step_free_closure): Remove.
10632 * gdbarch.h, gdbarch.c: Re-generate.
10633 * aarch64-linux-tdep.c (aarch64_linux_init_abi): Don't set
10634 displaced_step_free_closure.
10635 * amd64-linux-tdep.c (amd64_linux_init_abi_common): Likewise.
10636 * arm-linux-tdep.c (arm_linux_init_abi): Likewise.
10637 * i386-linux-tdep.c (i386_linux_init_abi): Likewise.
10638 * rs6000-aix-tdep.c (rs6000_aix_init_osabi): Likewise.
10639 * rs6000-tdep.c (rs6000_gdbarch_init): Likewise.
10640 * s390-linux-tdep.c (s390_gdbarch_init): Likewise.
10641 * arch-utils.h (simple_displaced_step_free_closure): Remove.
10642 * arch-utils.c (simple_displaced_step_free_closure): Remove.
10643 * infrun.c (displaced_step_clear): Call xfree instead of
10644 gdbarch_displaced_step_free_closure.
10645
10646 2017-06-08 Sergio Durigan Junior <sergiodj@redhat.com>
10647
10648 * common/common-utils.c (stringify_argv): Check for "arg[0] !=
10649 NULL".
10650
10651 2017-06-08 Alan Hayward <alan.hayward@arm.com>
10652
10653 * mn10300-tdep.c (MN10300_MAX_REGISTER_SIZE): Add.
10654 (mn10300_extract_return_value): Use MN10300_MAX_REGISTER_SIZE.
10655 (mn10300_push_dummy_call): Likewise.
10656
10657 2017-06-08 Alan Hayward <alan.hayward@arm.com>
10658
10659 * mi/mi-main.c (register_changed_p): Use value_contents_eq.
10660
10661 2017-06-08 Alan Hayward <alan.hayward@arm.com>
10662
10663 * mi/mi-main.c (register_changed_p): Use cooked_read_value.
10664
10665 2017-06-07 Sergio Durigan Junior <sergiodj@redhat.com>
10666
10667 * NEWS (Changes since GDB 8.0): Announce that GDBserver is now
10668 able to start inferiors using a shell.
10669 (New remote packets): Announce new packet "QStartupWithShell".
10670 * remote.c: Add PACKET_QStartupWithShell.
10671 (extended_remote_create_inferior): Handle new
10672 PACKET_QStartupWithShell.
10673 (remote_protocol_features) <QStartupWithShell>: New entry for
10674 PACKET_QStartupWithShell.
10675 (_initialize_remote): Call "add_packet_config_cmd" for
10676 QStartupShell.
10677
10678 2017-06-07 Sergio Durigan Junior <sergiodj@redhat.com>
10679 Pedro Alves <palves@redhat.com>
10680
10681 * Makefile.in (HFILES_NO_SRCDIR): Add "common/common-inferior.h"
10682 and "nat/fork-inferior.h".
10683 * common/common-inferior.h: New file, with contents from
10684 "gdb/inferior.h".
10685 * commom/common-utils.c: Include "common-utils.h".
10686 (stringify_argv): New function.
10687 * common/common-utils.h (stringify_argv): New prototype.
10688 * configure.nat: Add "fork-inferior.o" as a dependency for
10689 "*linux*", "fbsd*" and "nbsd*" hosts.
10690 * corefile.c (get_exec_file): Update comment.
10691 * darwin-nat.c (darwin_ptrace_him): Call "gdb_startup_inferior"
10692 instead of "startup_inferior".
10693 (darwin_create_inferior): Call "add_thread_silent" after
10694 "fork_inferior".
10695 * fork-child.c: Cleanup unnecessary includes.
10696 (SHELL_FILE): Move to "common/common-fork-child.c".
10697 (environ): Likewise.
10698 (exec_wrapper): Initialize.
10699 (get_exec_wrapper): New function.
10700 (breakup_args): Move to "common/common-fork-child.c"; rename to
10701 "breakup_args_for_exec".
10702 (escape_bang_in_quoted_argument): Move to
10703 "common/common-fork-child.c".
10704 (saved_ui): New variable.
10705 (prefork_hook): New function.
10706 (postfork_hook): Likewise.
10707 (postfork_child_hook): Likewise.
10708 (gdb_startup_inferior): Likewise.
10709 (fork_inferior): Move to "common/common-fork-child.c". Update
10710 function to support gdbserver.
10711 (startup_inferior): Likewise.
10712 * gdbcore.h (get_exec_file): Remove declaration.
10713 * gnu-nat.c (gnu_create_inferior): Call "gdb_startup_inferior"
10714 instead of "startup_inferior". Call "add_thread_silent" after
10715 "fork_inferior".
10716 * inf-ptrace.c: Include "nat/fork-inferior.h" and "utils.h".
10717 (inf_ptrace_create_inferior): Call "gdb_startup_inferior"
10718 instead of "startup_inferior". Call "add_thread_silent" after
10719 "fork_inferior".
10720 * inferior.h: Include "common-inferior.h".
10721 (trace_start_error): Move to "common/common-utils.h".
10722 (trace_start_error_with_name): Likewise.
10723 (fork_inferior): Move prototype to "nat/fork-inferior.h".
10724 (startup_inferior): Likewise.
10725 (gdb_startup_inferior): New prototype.
10726 * nat/fork-inferior.c: New file, with contents from "fork-child.c".
10727 * nat/fork-inferior.h: New file.
10728 * procfs.c (procfs_init_inferior): Call "gdb_startup_inferior"
10729 instead of "startup_inferior". Call "add_thread_silent" after
10730 "fork_inferior".
10731 * target.h (target_terminal_init): Move prototype to
10732 "target/target.h".
10733 (target_terminal_inferior): Likewise.
10734 (target_terminal_ours): Likewise.
10735 * target/target.h (target_terminal_init): New prototype, moved
10736 from "target.h".
10737 (target_terminal_inferior): Likewise.
10738 (target_terminal_ours): Likewise.
10739 * utils.c (gdb_flush_out_err): New function.
10740
10741 2017-06-07 Sergio Durigan Junior <sergiodj@redhat.com>
10742
10743 * Makefile.in (HFILES_NO_SRCDIR): Add "common/common-gdbthread.h".
10744 * common/common-gdbthread.h: New file, with parts from
10745 "gdb/gdbthread.h".
10746 * gdbthread.h: Include "common-gdbthread.h".
10747 (switch_to_thread): Moved to "common/common-gdbthread.h".
10748
10749 2017-06-07 Sergio Durigan Junior <sergiodj@redhat.com>
10750
10751 * Makefile.in (SFILES): Add "common/job-control.c".
10752 (HFILES_NO_SRCDIR): Add "common/job-control.h".
10753 (COMMON_OBS): Add "job-control.o".
10754 * common/job-control.c: New file, with contents from
10755 "gdb/inflow.c".
10756 * common/job-control.h: New file, with contents from "terminal.h".
10757 * fork-child.c: Include "job-control.h".
10758 * inflow.c: Include "job-control.h".
10759 (gdb_setpgid): Move to "common/common-inflow.c".
10760 (_initialize_inflow): Move setting of "job_control" to
10761 "handle_job_control".
10762 * terminal.h (job_control): Moved to "common/common-terminal.h".
10763 (gdb_setpgid): Likewise.
10764 * top.c: Include "job_control.h".
10765 * utils.c: Likewise.
10766 (job_control): Moved to "job-control.c".
10767
10768 2017-06-07 Pedro Alves <palves@redhat.com>
10769
10770 * Makefile.in (SFILES): Add gdb_regex.c.
10771 (COMMON_OBS): Add gdb_regex.o.
10772 * ada-lang.c (ada_add_standard_exceptions)
10773 (ada_add_exceptions_from_frame, name_matches_regex)
10774 (ada_add_global_exceptions, ada_exceptions_list_1): Change regex
10775 parameter type to compiled_regex. Adjust.
10776 (ada_exceptions_list): Use compiled_regex.
10777 * break-catch-throw.c (exception_catchpoint::pattern): Now a
10778 std::unique_ptr<compiled_regex>.
10779 (exception_catchpoint::~exception_catchpoint): Remove regfree
10780 call.
10781 (check_status_exception_catchpoint): Adjust to use compiled_regex.
10782 (handle_gnu_v3_exceptions): Adjust to use compiled_regex.
10783 * breakpoint.c (solib_catchpoint::compiled): Now a
10784 std::unique_ptr<compiled_regex>.
10785 (solib_catchpoint::~solib_catchpoint): Remove regfree call.
10786 (check_status_catch_solib): Adjust to use compiled_regex.
10787 (add_solib_catchpoint): Adjust to use compiled_regex.
10788 * cli/cli-cmds.c (apropos_command): Use compiled_regex.
10789 * cli/cli-decode.c (apropos_cmd): Change regex parameter to
10790 compiled_regex reference. Adjust to use it.
10791 * cli/cli-decode.h: Remove struct re_pattern_buffer forward
10792 declaration. Include "gdb_regex.h".
10793 (apropos_cmd): Change regex parameter to compiled_regex reference.
10794 * gdb_regex.c: New file.
10795 * gdb_regex.h (make_regfree_cleanup, get_regcomp_error): Delete
10796 declarations.
10797 (class compiled_regex): New.
10798 * linux-tdep.c: Include "common/gdb_optional.h".
10799 (struct mapping_regexes): New, factored out from
10800 mapping_is_anonymous_p, and adjusted to use compiled_regex.
10801 (mapping_is_anonymous_p): Use mapping_regexes wrapped in a
10802 gdb::optional and remove cleanups. Adjust to compiled_regex.
10803 * probe.c: Include "common/gdb_optional.h".
10804 (collect_probes): Use compiled_regex and gdb::optional and remove
10805 cleanups.
10806 * skip.c: Include "common/gdb_optional.h".
10807 (skiplist_entry::compiled_function_regexp): Now a
10808 gdb::optional<compiled_regex>.
10809 (skiplist_entry::compiled_function_regexp_is_valid): Delete field.
10810 (free_skiplist_entry): Remove regfree call.
10811 (compile_skip_regexp, skip_rfunction_p): Adjust to use
10812 compiled_regex and gdb::optional.
10813 * symtab.c: Include "common/gdb_optional.h".
10814 (search_symbols): Use compiled_regex and gdb::optional.
10815 * utils.c (do_regfree_cleanup, make_regfree_cleanup)
10816 (get_regcomp_error, compile_rx_or_error): Delete. Some bits moved
10817 to gdb_regex.c.
10818
10819 2017-06-07 Alan Hayward <alan.hayward@arm.com>
10820
10821 * regcache.c (regcache::save): Avoid buffer use.
10822 (regcache::dump): Likewise.
10823
10824 2017-06-07 Alan Hayward <alan.hayward@arm.com>
10825
10826 * sh-tdep.c (sh_pseudo_register_read): Remove
10827 MAX_REGISTER_SIZE.
10828 (sh_pseudo_register_write): Likewise.
10829 * sh64-tdep.c (sh64_pseudo_register_read): Likewise.
10830 (sh64_pseudo_register_write): Likewise
10831
10832 2017-06-07 Alan Hayward <alan.hayward@arm.com>
10833
10834 * aarch64-tdep.c (aarch64_store_return_value): Use
10835 V_REGISTER_SIZE.
10836 (aarch64_pseudo_read_value): Likewise.
10837 (aarch64_pseudo_write): Likewise.
10838
10839 2017-06-06 Yao Qi <yao.qi@linaro.org>
10840
10841 * regformats/regdef.h (set_register_cache): Remove the
10842 declaration.
10843
10844 2017-06-06 Alan Hayward <alan.hayward@arm.com>
10845
10846 * frame.c (frame_unwind_register_signed): Use
10847 frame_unwind_register_value.
10848
10849 2017-06-06 Pedro Alves <palves@redhat.com>
10850
10851 PR breakpoints/21553
10852 * breakpoint.c (create_breakpoints_sal_default)
10853 (init_breakpoint_sal, create_breakpoint_sal): Use
10854 gdb::unique_xmalloc_ptr for string parameters.
10855 (create_breakpoint): Constify 'extra_string' and 'cond_string'
10856 parameters. Replace cleanups with gdb::unique_xmalloc_ptr.
10857 (base_breakpoint_create_breakpoints_sal)
10858 (bkpt_create_breakpoints_sal, tracepoint_create_breakpoints_sal)
10859 (strace_marker_create_breakpoints_sal)
10860 (create_breakpoints_sal_default): Use gdb::unique_xmalloc_ptr for
10861 string parameters.
10862 * breakpoint.h (breakpoint_ops::create_breakpoints_sal): Use
10863 gdb::unique_xmalloc_ptr for string parameters.
10864 (create_breakpoint): Constify 'extra_string' and 'cond_string'
10865 parameters.
10866
10867 2017-06-06 Alan Hayward <alan.hayward@arm.com>
10868
10869 * alpha-tdep.c (alpha_register_to_value): Use
10870 get_frame_register_value.
10871 (alpha_value_to_register): Use ALPHA_REGISTER_SIZE.
10872
10873 2017-06-06 Alan Hayward <alan.hayward@arm.com>
10874
10875 * ia64-tdep.c (IA64_MAX_FP_REGISTER_SIZE) Add.
10876 (ia64_register_to_value): Use IA64_MAX_FP_REGISTER_SIZE.
10877 (ia64_value_to_register): Likewise.
10878 (ia64_extract_return_value): Likewise.
10879 (ia64_store_return_value): Likewise.
10880 (ia64_push_dummy_call): Likewise.
10881
10882 2017-06-04 Joel Brobecker <brobecker@adacore.com>
10883
10884 GDB 8.0 released.
10885
10886 2017-06-03 Simon Marchi <simon.marchi@ericsson.com>
10887
10888 * x86-linux-nat.c (struct arch_lwp_info): Remove.
10889
10890 2017-06-03 Simon Marchi <simon.marchi@polymtl.ca>
10891
10892 * linux-nat.c (linux_nat_post_attach_wait): Remove FIRST
10893 parameter.
10894 (linux_nat_attach): Adjust call to linux_nat_post_attach_wait.
10895
10896 2017-06-02 Simon Marchi <simon.marchi@ericsson.com>
10897
10898 * event-loop.c (poll_timers): Unallocate timer using delete
10899 instead of xfree.
10900
10901 2017-06-02 Simon Marchi <simon.marchi@polymtl.ca>
10902
10903 * breakpoint.h (struct breakpoint_ops) <dtor>: Remove.
10904 (struct breakpoint) <~breakpoint>: New.
10905 (struct watchpoint): Inherit from breakpoint.
10906 <~watchpoint>: New.
10907 <base>: Remove.
10908 (struct tracepoint): Inherit from breakpoint.
10909 <base>: Remove.
10910 * breakpoint.c (longjmp_breakpoint_ops): Remove.
10911 (struct longjmp_breakpoint): Inherit from breakpoint.
10912 <~longjmp_breakpoint>: New.
10913 <base>: Remove.
10914 (new_breakpoint_from_type): Remove casts.
10915 (watchpoint_in_thread_scope): Remove reference to base field.
10916 (watchpoint_del_at_next_stop): Likewise.
10917 (update_watchpoint): Likewise.
10918 (watchpoint_check): Likewise.
10919 (bpstat_check_watchpoint): Likewise.
10920 (set_longjmp_breakpoint): Likewise.
10921 (struct fork_catchpoint): Inherit from breakpoint.
10922 <base>: Remove.
10923 (struct solib_catchpoint): Inherit from breakpoint.
10924 <~solib_catchpoint>: New.
10925 <base>: Remove.
10926 (dtor_catch_solib): Change to ...
10927 (solib_catchpoint::~solib_catchpoint): ... this.
10928 (breakpoint_hit_catch_solib): Remove reference to base field.
10929 (add_solib_catchpoint): Likewise.
10930 (create_fork_vfork_event_catchpoint): Likewise.
10931 (struct exec_catchpoint): Inherit from breakpoint.
10932 <~exec_catchpoint>: New.
10933 <base>: Remove.
10934 (dtor_catch_exec): Change to ...
10935 (exec_catchpoint::~exec_catchpoint): ... this.
10936 (dtor_watchpoint): Change to ...
10937 (watchpoint::~watchpoint): ... this.
10938 (watch_command_1): Remove reference to base field.
10939 (catch_exec_command_1): Likewise.
10940 (base_breakpoint_dtor): Change to ...
10941 (breakpoint::~breakpoint): ... this.
10942 (base_breakpoint_ops): Remove dtor field value.
10943 (longjmp_bkpt_dtor): Change to ...
10944 (longjmp_breakpoint::~longjmp_breakpoint): ... this.
10945 (strace_marker_create_breakpoints_sal): Remove reference to base
10946 field.
10947 (delete_breakpoint): Don't manually call breakpoint destructor.
10948 (create_tracepoint_from_upload): Remove reference to base field.
10949 (trace_pass_set_count): Likewise.
10950 (initialize_breakpoint_ops): Don't initialize
10951 momentary_breakpoint_ops, don't set dtors.
10952 * ada-lang.c (struct ada_catchpoint): Inherit from breakpoint.
10953 <~ada_catchpoint>: New.
10954 <base>: Remove.
10955 (create_excep_cond_exprs): Remove reference to base field.
10956 (dtor_exception): Change to ...
10957 (ada_catchpoint::~ada_catchpoint): ... this.
10958 (dtor_catch_exception): Remove.
10959 (dtor_catch_exception_unhandled): Remove.
10960 (dtor_catch_assert): Remove.
10961 (create_ada_exception_catchpoint): Remove reference to base
10962 field.
10963 (initialize_ada_catchpoint_ops): Don't set dtors.
10964 * break-catch-sig.c (struct signal_catchpoint): Inherit from
10965 breakpoint.
10966 <~signal_catchpoint>: New.
10967 <base>: Remove.
10968 (signal_catchpoint_dtor): Change to ...
10969 (signal_catchpoint::~signal_catchpoint): ... this.
10970 (create_signal_catchpoint): Remove reference to base field.
10971 (initialize_signal_catchpoint_ops): Don't set dtor.
10972 * break-catch-syscall.c (struct syscall_catchpoint): Inherit
10973 from breakpoint.
10974 <~syscall_catchpoint>: New.
10975 <base>: Remove.
10976 (dtor_catch_syscall): Change to ...
10977 (syscall_catchpoint::~syscall_catchpoint): ... this.
10978 (create_syscall_event_catchpoint): Remove reference to base
10979 field.
10980 (initialize_syscall_catchpoint_ops): Don't set dtor.
10981 * break-catch-throw.c (struct exception_catchpoint): Inherit
10982 from breakpoint.
10983 <~exception_catchpoint>: New.
10984 <base>: Remove.
10985 (dtor_exception_catchpoint): Change to ...
10986 (exception_catchpoint::~exception_catchpoint): ... this.
10987 (handle_gnu_v3_exceptions): Remove reference to base field.
10988 (initialize_throw_catchpoint_ops): Don't set dtor.
10989 * ctf.c (ctf_get_traceframe_address): Remove reference to base
10990 field.
10991 * remote.c (remote_get_tracepoint_status): Likewise.
10992 * tracefile-tfile.c (tfile_get_traceframe_address): Likewise.
10993 * tracefile.c (tracefile_fetch_registers): Likewise.
10994 * tracepoint.c (actions_command): Likewise.
10995 (validate_actionline): Likewise.
10996 (tfind_1): Likewise.
10997 (get_traceframe_location): Likewise.
10998 (find_matching_tracepoint_location): Likewise.
10999 (parse_tracepoint_status): Likewise.
11000 * mi/mi-cmd-break.c (mi_cmd_break_passcount): Likewise.
11001
11002 2017-06-02 Simon Marchi <simon.marchi@polymtl.ca>
11003
11004 * breakpoint.c (struct longjmp_breakpoint): New struct.
11005 (is_tracepoint_type): Change return type to bool.
11006 (is_longjmp_type): New function.
11007 (new_breakpoint_from_type): Handle longjmp kinds of breakpoints.
11008 (set_raw_breakpoint_without_location): Use
11009 new_breakpoint_from_type.
11010 (set_raw_breakpoint): Likewise.
11011
11012 2017-06-02 Simon Marchi <simon.marchi@polymtl.ca>
11013
11014 * breakpoint.c (new_breakpoint_from_type): New function.
11015 (create_breakpoint_sal): Use new_breakpoint_from_type and
11016 unique_ptr.
11017 (create_breakpoint): Likewise.
11018
11019 2017-05-31 Simon Marchi <simon.marchi@ericsson.com>
11020
11021 * memattr.c (mem_info_command): Rename to ...
11022 (info_mem_command): ... this.
11023 (mem_enable_command): Rename to ...
11024 (enable_mem_command): ... this.
11025 (mem_disable_command): Rename to ...
11026 (disable_mem_command): ... this.
11027 (mem_delete_command): Rename to ...
11028 (delete_mem_command): ... this.
11029 (_initialize_mem): Adjust function names.
11030
11031 2017-05-31 Markus Metzger <markus.t.metzger@intel.com>
11032
11033 * btrace.c (handle_pt_insn_events): New.
11034 (ftrace_add_pt): Call handle_pt_insn_events. Rename ERRCODE into
11035 STATUS. Split into this and ...
11036 (handle_pt_insn_event_flags): ... this.
11037
11038 2017-05-31 Markus Metzger <markus.t.metzger@intel.com>
11039
11040 * configure.ac: Check for pt_insn_event, struct pt_insn.enabled,
11041 and struct pt_insn.resynced.
11042 * configure: Regenerated.
11043 * config.in: Regenerated.
11044
11045 2017-05-30 Tim Wiederhake <tim.wiederhake@intel.com>
11046
11047 * btrace.c (ftrace_find_call_by_number): New function.
11048 (ftrace_new_function): Store objects, not pointers.
11049 (ftrace_find_call_by_number, ftrace_new_return, ftrace_new_switch,
11050 ftrace_new_gap, ftrace_update_function,
11051 ftrace_compute_global_level_offset, btrace_stich_bts, btrace_clear,
11052 btrace_insn_get, btrace_insn_get_error, btrace_insn_end,
11053 btrace_insn_next, btrace_insn_prev, ptrace_find_insn_by_number,
11054 btrace_ends_with_single_insn, btrace_call_get): Account for
11055 btrace_thread_info::functions now storing objects.
11056 * btrace.h (struct btrace_thread_info): Add constructor.
11057 (struct btrace_thread_info) <functions>: Make std::vector.
11058 (struct btrace_thread_info) <prev, next, up, insn, errcode, flags):
11059 Initialize with default values.
11060 * record-btrace.c (record_btrace_frame_sniffer): Account for
11061 btrace_thread_info::functions now storing objects.
11062
11063 2017-05-30 Tim Wiederhake <tim.wiederhake@intel.com>
11064
11065 * btrace.c: Remove typedef bfun_s.
11066 (ftrace_new_gap): Directly add gaps to the list of gaps.
11067 (btrace_bridge_gaps, btrace_compute_ftrace_bts, pt_btrace_insn_flags,
11068 ftrace_add_pt, btrace_compute_ftrace_pt, btrace_compute_ftrace_1,
11069 btrace_finalize_ftrace, btrace_compute_ftrace): Use std::vector
11070 instead of gdb VEC.
11071
11072 2017-05-30 Tim Wiederhake <tim.wiederhake@intel.com>
11073
11074 * btrace.c (ftrace_fixup_caller, ftrace_new_return, ftrace_connect_bfun,
11075 ftrace_bridge_gap): Replace references to btrace_thread_info::segment
11076 with btrace_thread_info::next_segment and
11077 btrace_thread_info::prev_segment.
11078 * btrace.h: Remove struct btrace_func_link.
11079 (struct btrace_function): Replace pair of function segment pointers
11080 with pair of indices.
11081 * python/py-record-btrace.c (btpy_call_prev_sibling,
11082 btpy_call_next_sibling): Replace references to
11083 btrace_thread_info::segment with btrace_thread_info::next_segment and
11084 btrace_thread_info::prev_segment.
11085 * record-btrace.c (record_btrace_frame_this_id): Use
11086 btrace_find_call_by_number.
11087
11088 2017-05-30 Tim Wiederhake <tim.wiederhake@intel.com>
11089
11090 * btrace.c (ftrace_new_function, ftrace_fixup_level,
11091 ftrace_connect_bfun, ftrace_bridge_gap, btrace_bridge_gaps,
11092 btrace_insn_next, btrace_insn_prev): Remove references to
11093 btrace_thread_info::flow.
11094 * btrace.h (struct btrace_function): Remove FLOW.
11095
11096 2017-05-30 Tim Wiederhake <tim.wiederhake@intel.com>
11097
11098 * btrace.c (ftrace_find_call_by_number): New function.
11099 (ftrace_update_caller, ftrace_new_call, ftrace_new_tailcall,
11100 ftrace_get_caller, ftrace_find_call, ftrace_new_return,
11101 ftrace_match_backtrace, ftrace_connect_bfun, ftrace_connect_backtrace,
11102 ftrace_bridge_gap, btrace_bridge_gaps): Use btrace_function::up as an
11103 index.
11104 * btrace.h (struct btrace_function): Turn UP into an index.
11105 * python/py-record-btrace.c (btpy_call_up): Use btrace_function::up
11106 as an index.
11107 * record-btrace.c (record_btrace_frame_unwind_stop_reason,
11108 record_btrace_frame_prev_register, record_btrace_frame_sniffer,
11109 record_btrace_tailcall_frame_sniffe): Use btrace_find_call_by_number.
11110
11111 2017-05-30 Tim Wiederhake <tim.wiederhake@intel.com>
11112
11113 * btrace.c (ftrace_new_function, ftrace_new_call, ftrace_new_tailcall,
11114 ftrace_new_return, ftrace_new_switch, ftrace_new_gap,
11115 ftrace_update_function, ftrace_compute_global_level_offset,
11116 btrace_compute_ftrace_bts, ftrace_add_pt, btrace_compute_ftrace_pt,
11117 btrace_stitch_bts, btrace_fetch, btrace_clear, btrace_insn_number,
11118 btrace_insn_end, btrace_is_empty): Remove references to
11119 btrace_thread_info::begin and btrace_thread_info::end.
11120 * btrace.h (struct btrace_thread_info): Remove BEGIN and END.
11121 (struct btrace_thread_info) <functions>: Adjust comment.
11122 * record-btrace.c (record_btrace_start_replaying): Remove reference to
11123 btrace_thread_info::begin.
11124
11125 2017-05-30 Tim Wiederhake <tim.wiederhake@intel.com>
11126
11127 * btrace.c (ftrace_new_function, ftrace_new_call, ftrace_new_tailcall,
11128 ftrace_new_return, ftrace_new_switch, ftrace_new_gap,
11129 ftrace_update_function): Remove arguments that implicitly were always
11130 BTINFO->END.
11131 (btrace_compute_ftrace_bts, ftrace_add_pt, btrace_compute_ftrace_pt):
11132 Don't pass BTINFO->END.
11133
11134 2017-05-30 Tim Wiederhake <tim.wiederhake@intel.com>
11135
11136 * btrace.c: (btrace_insn_get, btrace_insn_get_error, btrace_insn_number,
11137 btrace_insn_begin, btrace_insn_end, btrace_insn_next, btrace_insn_prev,
11138 btrace_find_insn_by_number): Replace function segment pointer with
11139 index.
11140 (btrace_insn_cmp): Simplify.
11141 * btrace.h: (struct btrace_insn_iterator) Rename index to
11142 insn_index. Replace function segment pointer with index into function
11143 segment vector.
11144 * record-btrace.c (record_btrace_call_history): Replace function
11145 segment pointer use with index.
11146 (record_btrace_frame_sniffer): Retrieve function call segment through
11147 vector.
11148 (record_btrace_set_replay): Remove defunc't safety check.
11149
11150 2017-05-30 Tim Wiederhake <tim.wiederhake@intel.com>
11151
11152 * btrace.c (btrace_ends_with_single_insn): New function.
11153 (btrace_call_get, btrace_call_number, btrace_call_begin,
11154 btrace_call_end, btrace_call_next, btrace_call_prev,
11155 btrace_find_call_by_number): Use index into call segment vector
11156 instead of pointer.
11157 (btrace_call_cmp): Simplify.
11158 * btrace.h (struct btrace_call_iterator): Replace function call segment
11159 pointer with index into vector.
11160 * record-btrace.c (record_btrace_call_history): Use index instead of
11161 pointer.
11162
11163 2017-05-30 Tim Wiederhake <tim.wiederhake@intel.com>
11164
11165 * btrace.c (btrace_insn_begin, btrace_insn_end,
11166 btrace_find_insn_by_number): Add btinfo to iterator.
11167 * btrace.h (struct btrace_insn_iterator): Add btinfo.
11168
11169 2017-05-30 Tim Wiederhake <tim.wiederhake@intel.com>
11170
11171 * btrace.c (ftrace_new_function): Add btrace_thread_info to arguments
11172 and save pointers directly.
11173 (ftrace_new_call, ftrace_new_tailcall, ftrace_new_return,
11174 ftrace_new_switch, ftrace_new_gap, ftrace_update_function,
11175 ftrace_add_pt): Add btrace_thread_info to arguments. Adjust for
11176 changed signature of functions.
11177 (btrace_compute_ftrace_pt): Adjust for changed signature of functions.
11178 (btrace_fetch): Remove code that adds btrace_function pointers to
11179 vector of btrace_functions.
11180 (btrace_clear): Simplify freeing vector of btrace_functions.
11181
11182 2017-05-30 Tim Wiederhake <tim.wiederhake@intel.com>
11183
11184 * btrace.c (btrace_fetch, btrace_clear, btrace_find_insn_by_number):
11185 Replace VEC_* with std::vector functions.
11186 * btrace.h: Add include: vector. Remove typedef for DEF_VEC_P.
11187 (struct btrace_thread_info)<functions>: Change type to std::vector.
11188
11189 2017-05-30 Simon Marchi <simon.marchi@ericsson.com>
11190
11191 * NEWS (Changes in GDB 8.0): Remove extra empty line. Move
11192 "Removed targets and native configurations" up. Merge duplicate
11193 "New commands" sub-sections. Add "New options" sub-sections.
11194
11195 2017-05-26 Alan Hayward <alan.hayward@arm.com>
11196
11197 * defs.h (copy_integer_to_size): New declaration.
11198 * findvar.c (copy_integer_to_size): New function.
11199 (do_cint_test): New selftest function.
11200 (copy_integer_to_size_test): Likewise.
11201 (_initialize_findvar): Likewise.
11202 * mips-fbsd-tdep.c (mips_fbsd_supply_reg): Use raw_supply_integer.
11203 (mips_fbsd_collect_reg): Use raw_collect_integer.
11204 * mips-linux-tdep.c (supply_32bit_reg): Use raw_supply_integer.
11205 (mips64_fill_gregset): Use raw_collect_integer
11206 (mips64_fill_fpregset): Use raw_supply_integer.
11207 * regcache.c (regcache::raw_supply_integer): New function.
11208 (regcache::raw_collect_integer): Likewise.
11209 * regcache.h: (regcache::raw_supply_integer): New declaration.
11210 (regcache::raw_collect_integer): Likewise.
11211
11212 2017-05-24 Yao Qi <yao.qi@linaro.org>
11213
11214 * Makefile.in (SFILES): Add gdbarch-selftests.c.
11215 (COMMON_OBS): Add gdbarch-selftests.o.
11216 * frame.c [GDB_SELF_TESTS] (create_new_frame): New function.
11217 * frame.h [GDB_SELF_TESTS] (create_new_frame): Declare.
11218 * gdbarch-selftests.c: New file.
11219 * regcache.h (regcache) <~regcache>: Mark it virtual if
11220 GDB_SELF_TEST.
11221 <raw_write>: Likewise.
11222
11223 2017-05-24 Yao Qi <yao.qi@linaro.org>
11224
11225 * regcache.c (current_regcache): Change it to
11226 regcache::current_regcache.
11227 (regcache_observer_target_changed): Update.
11228 (regcache_thread_ptid_changed): Make it a regcache static
11229 method.
11230 (regcache_thread_ptid_changed): Update.
11231 (class regcache_access): New.
11232 (current_regcache_test): Update.
11233 (_initialize_regcache): Update.
11234 * regcache.h: Include forward_list.
11235 (regcache): Declare regcache_thread_ptid_changed and declare
11236 registers_changed_ptid as friend.
11237
11238 2017-05-24 Yao Qi <yao.qi@linaro.org>
11239
11240 * i387-tdep.c (i387_register_to_value): Use register_size
11241 instead of TYPE_LENGTH.
11242 * m68k-tdep.c (m68k_register_to_value): Likewise.
11243
11244 2017-05-24 Yao Qi <yao.qi@linaro.org>
11245
11246 * i387-tdep.c (i387_convert_register_p): Return false if type
11247 code isn't TYPE_CODE_FLT.
11248
11249 2017-05-24 Yao Qi <yao.qi@linaro.org>
11250
11251 * alpha-tdep.c (alpha_convert_register_p): Return true if type
11252 length is 4.
11253 (alpha_register_to_value): Remove type length check.
11254 (alpha_value_to_register): Likewise.
11255
11256 2017-05-24 Yao Qi <yao.qi@linaro.org>
11257
11258 * ia64-tdep.c (ia64_convert_register_p): Check type's code is
11259 TYPE_CODE_FLT.
11260
11261 2017-05-24 Yao Qi <yao.qi@linaro.org>
11262
11263 * m68k-tdep.c (m68k_convert_register_p): Check type's code is
11264 TYPE_CODE_FLT or not.
11265
11266 2017-05-24 Yao Qi <yao.qi@linaro.org>
11267
11268 * alpha-tdep.c (alpha_gdbarch_init): Use XCNEW instead of XNEW.
11269 * avr-tdep.c (avr_gdbarch_init): Likewise.
11270 * bfin-tdep.c (bfin_gdbarch_init): Likewise.
11271 * cris-tdep.c (cris_gdbarch_init): Likewise.
11272 * ft32-tdep.c (ft32_gdbarch_init): Likewise.
11273 * lm32-tdep.c (lm32_gdbarch_init): Likewise.
11274 * m32r-tdep.c (m32r_gdbarch_init): Likewise.
11275 * m68hc11-tdep.c (m68hc11_gdbarch_init): Likewise.
11276 * mep-tdep.c (mep_gdbarch_init): Likewise.
11277 * microblaze-tdep.c (microblaze_gdbarch_init): Likewise.
11278 * mips-tdep.c (mips_gdbarch_init): Likewise.
11279 * mn10300-tdep.c (mn10300_gdbarch_init): Likewise.
11280 * moxie-tdep.c (moxie_gdbarch_init): Likewise.
11281 * msp430-tdep.c (msp430_gdbarch_init): Likewise.
11282 * sh64-tdep.c (sh64_gdbarch_init): Likewise.
11283 * v850-tdep.c (v850_gdbarch_init): Likewise.
11284
11285 2017-05-24 Yao Qi <yao.qi@linaro.org>
11286
11287 * selftest-arch.c (tests_with_arch): Call registers_changed
11288 and reinit_frame_cache.
11289 * selftest.c (run_self_tests): Likewise.
11290
11291 2017-05-24 Yao Qi <yao.qi@linaro.org>
11292
11293 * rs6000-tdep.c (gdb_print_insn_powerpc): Remove.
11294 (rs6000_gdbarch_init): Don't call set_gdbarch_print_insn.
11295
11296 2017-05-24 Yao Qi <yao.qi@linaro.org>
11297
11298 * rl78-tdep.c (rl78_gdbarch_init): Don't call
11299 set_gdbarch_print_insn.
11300
11301 2017-05-24 Yao Qi <yao.qi@linaro.org>
11302
11303 * h8300-tdep.c (h8300_gdbarch_init): Don't call
11304 set_gdbarch_print_insn.
11305
11306 2017-05-24 Yao Qi <yao.qi@linaro.org>
11307
11308 * alpha-tdep.c (alpha_gdbarch_init): Don't call
11309 set_gdbarch_print_insn.
11310 * arc-tdep.c (arc_gdbarch_init): Likewise.
11311 * arch-utils.c: include dis-asm.h.
11312 (default_print_insn): New function.
11313 * arch-utils.h (default_print_insn): Declare.
11314 * avr-tdep.c (avr_gdbarch_init): Don't call set_gdbarch_print_insn.
11315 * bfin-tdep.c (bfin_gdbarch_init): Likewise.
11316 * cris-tdep.c (cris_delayed_get_disassembler): Remove.
11317 (cris_gdbarch_init): Don't call set_gdbarch_print_insn.
11318 * frv-tdep.c (frv_gdbarch_init): Likewise.
11319 * ft32-tdep.c (ft32_gdbarch_init): Likewise.
11320 * gdbarch.sh (print_insn): Use default_print_insn.
11321 * gdbarch.c: Regenerated.
11322 * hppa-tdep.c (hppa_gdbarch_init): Likewise.
11323 * iq2000-tdep.c (iq2000_gdbarch_init): Likewise.
11324 * lm32-tdep.c (lm32_gdbarch_init): Likewise.
11325 * m32c-tdep.c (m32c_gdbarch_init): Likewise.
11326 * m32r-tdep.c (m32r_gdbarch_init): Likewise.
11327 * m68hc11-tdep.c (gdb_print_insn_m68hc11): Remove.
11328 (m68hc11_gdbarch_init): Don't call set_gdbarch_print_insn.
11329 * m68k-tdep.c (m68k_gdbarch_init): Likewise.
11330 * m88k-tdep.c (m88k_gdbarch_init): Likewise.
11331 * microblaze-tdep.c (microblaze_gdbarch_init): Likewise.
11332 * mn10300-tdep.c (mn10300_gdbarch_init): Likewise.
11333 * moxie-tdep.c (moxie_gdbarch_init): Likewise.
11334 * msp430-tdep.c (msp430_gdbarch_init): Likewise.
11335 * mt-tdep.c (mt_gdbarch_init): Likewise.
11336 * nds32-tdep.c (nds32_gdbarch_init): Likewise.
11337 * nios2-tdep.c (nios2_print_insn): Remove.
11338 (nios2_gdbarch_init): Don't call set_gdbarch_print_insn.
11339 * rx-tdep.c (rx_gdbarch_init): Likewise.
11340 * s390-linux-tdep.c (s390_gdbarch_init): Likewise.
11341 * score-tdep.c (score_print_insn): Remove.
11342 (score_gdbarch_init): Don't call set_gdbarch_print_insn.
11343 * sh-tdep.c (sh_gdbarch_init): Likewise.
11344 * sh64-tdep.c (sh64_gdbarch_init): Likewise.
11345 * sparc-tdep.c (sparc32_gdbarch_init): Likewise.
11346 * tic6x-tdep.c (tic6x_print_insn): Remove.
11347 (tic6x_gdbarch_init): Don't call set_gdbarch_print_insn.
11348 * tilegx-tdep.c (tilegx_gdbarch_init): Likewise.
11349 * v850-tdep.c (v850_gdbarch_init): Likewise.
11350 * vax-tdep.c (vax_gdbarch_init): Likewise.
11351 * xstormy16-tdep.c (xstormy16_gdbarch_init): Likewise.
11352 * xtensa-tdep.c (xtensa_gdbarch_init): Likewise.
11353
11354 2017-05-23 John Baldwin <jhb@FreeBSD.org>
11355
11356 * mips-fbsd-tdep.c (MIPS_PC_REGNUM): Remove.
11357 (MIPS_FP0_REGNUM): Remove.
11358 (MIPS_FSR_REGNUM): Remove.
11359 (mips_fbsd_supply_fpregs): Use mips_regnum.
11360 (mips_fbsd_supply_gregs): Likewise.
11361 (mips_fbsd_collect_fpregs): Likewise.
11362 (mips_fbsd_collect_gregs): Likewise.
11363
11364 2017-05-23 John Baldwin <jhb@FreeBSD.org>
11365
11366 * mips-fbsd-nat.c (getregs_supplies): Fix upper bound comparison.
11367 (getpfpregs_supplies): New function.
11368 (mips_fbsd_fetch_inferior_registers): Remove early exit and use
11369 getfpregs_supplies.
11370 (mips_fbsd_store_inferior_registers): Likewise.
11371
11372 2017-05-22 Pedro Alves <palves@redhat.com>
11373
11374 * MAINTAINERS (Host/Native): Add John Baldwin as FreeBSD
11375 maintainer.
11376
11377 2017-05-22 Alan Hayward <alan.hayward@arm.com>
11378
11379 * ppc-linux-nat.c (fetch_register): Use PPC_MAX_REGISTER_SIZE.
11380 (store_register): Likewise.
11381 * ppc-sysv-tdep.c (ppc_sysv_abi_push_dummy_call): Likewise.
11382 (get_decimal_float_return_value): Likewise.
11383 (do_ppc_sysv_return_value): Likewise.
11384 (ppc64_sysv_abi_push_integer): Likewise.
11385 (ppc64_sysv_abi_push_freg): Likewise.
11386 (ppc64_sysv_abi_return_value_base): Likewise.
11387 (ppc64_sysv_abi_return_value): Likewise.
11388 * rs6000-aix-tdep.c (rs6000_push_dummy_call): Likewise.
11389 * rs6000-lynx178-tdep.c (rs6000_lynx178_push_dummy_call): Likewise.
11390 * rs6000-nat.c: Likewise.
11391 * rs6000-tdep.c (rs6000_register_to_value): Likewise.
11392 (rs6000_value_to_register): Likewise.
11393 * ppc-tdep.h (PPC_MAX_REGISTER_SIZE): Add.
11394
11395 2017-05-21 Tom Tromey <tom@tromey.com>
11396
11397 PR rust/21466:
11398 * rust-lang.c (rust_print_type) <TYPE_CODE_ARRAY>: Print unsized
11399 arrays as "[T]", not "[T; ]".
11400
11401 2017-05-19 Tom Tromey <tom@tromey.com>
11402
11403 PR rust/21484:
11404 * rust-lang.c (exp_descriptor_rust): New function.
11405 (rust_language_defn): Use it.
11406 * p-lang.c (pascal_language_defn): Update.
11407 * opencl-lang.c (opencl_language_defn): Update.
11408 * objc-lang.c (objc_language_defn): Update.
11409 * m2-lang.c (m2_language_defn): Update.
11410 * language.h (struct language_defn)
11411 <la_watch_location_expression>: New member.
11412 * language.c (unknown_language_defn, auto_language_defn)
11413 (local_language_defn): Update.
11414 * go-lang.c (go_language_defn): Update.
11415 * f-lang.c (f_language_defn): Update.
11416 * d-lang.c (d_language_defn): Update.
11417 * c-lang.h (c_watch_location_expression): Declare.
11418 * c-lang.c (c_watch_location_expression): New function.
11419 (c_language_defn, cplus_language_defn, asm_language_defn)
11420 (minimal_language_defn): Use it.
11421 * breakpoint.c (watch_command_1): Call
11422 la_watch_location_expression.
11423 * ada-lang.c (ada_language_defn): Update.
11424
11425 2017-05-19 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
11426
11427 PR tui/21482
11428 * gdb_curses.h (NOMACROS): Define.
11429 (NCURSES_NOMACROS): Define.
11430
11431 2017-05-19 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
11432
11433 PR tui/21482
11434 * tui/tui-windata.c (tui_erase_data_content): Cast last mvwaddstr
11435 arg to char *.
11436 * tui/tui-wingeneral.c (box_win): Likewise.
11437 * tui/tui-winsource.c (tui_erase_source_content): Likewise.
11438 (tui_show_source_line): Likewise.
11439 (tui_show_exec_info_content): Likewise.
11440
11441 2017-05-19 Vladimir Mezentsev <vladimir.mezentsev@oracle.com>
11442
11443 * sparc-tdep.c (sparc_structure_return_p)
11444 (sparc_arg_on_registers_p): New functions.
11445 (sparc32_store_arguments): Use them.
11446 * sparc64-tdep.c (sparc64_16_byte_align_p)
11447 (sparc64_store_floating_fields, sparc64_extract_floating_fields):
11448 Handle TYPE_CODE_ARRAY.
11449
11450 2017-05-17 Yao Qi <yao.qi@linaro.org>
11451
11452 * cli/cli-decode.c (add_alias_cmd): New function.
11453 * command.h (add_alias_cmd): Declare.
11454 * infcmd.c (_initialize_infcmd): Don't call add_com_alias,
11455 instead call add_alias_cmd.
11456
11457 2017-05-17 Pedro Alves <palves@redhat.com>
11458
11459 * Makefile.in (nat_extra_makefile_frag): Rename to ...
11460 (nat_makefile_frag): ... this. All references updated.
11461 * configure.ac: Likewise.
11462 * configure.nat: Likewise. Enhance comments.
11463 * configure: Regenerate.
11464
11465 2017-05-15 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
11466
11467 * procfs.c (procfs_create_inferior): Change prototype to match
11468 definition.
11469
11470 2017-05-13 Eli Zaretskii <eliz@gnu.org>
11471
11472 * tui/tui.c (tui_enable): Cast "unknown" to 'char *' to avoid a
11473 C++ compiler warning.
11474
11475 2017-05-12 Tom Tromey <tom@tromey.com>
11476
11477 PR rust/21483:
11478 * rust-lang.c (rust_evaluate_subexp) <STRUCTOP_STRUCT>: Don't
11479 recurse, just call value_struct_elt directly.
11480
11481 2017-05-12 Tom Tromey <tom@tromey.com>
11482
11483 * rust-lang.c (rust_dump_subexp_body) <STRUCTOP_ANONYMOUS,
11484 OP_RUST_ARRAY>: Fix.
11485
11486 2017-05-12 Tom Tromey <tom@tromey.com>
11487
11488 * rust-lang.c (rust_print_subexp): Replace "return" with "break".
11489
11490 2017-05-09 Yao Qi <yao.qi@linaro.org>
11491
11492 * regcache.c: Include <forward_list>.
11493 (struct regcache_list): Remove.
11494 (current_regcache): Update.
11495 (get_thread_arch_aspace_regcache): Update for std::forward_list.
11496 (regcache_thread_ptid_changed): Likewise.
11497 (registers_changed_ptid): Likewise.
11498 (current_regcache_size): Likewise.
11499
11500 2017-05-09 Yao Qi <yao.qi@linaro.org>
11501
11502 * regcache.c [GDB_SELF_TEST]: Include selftest.h.
11503 (current_regcache_size): New function.
11504 (current_regcache_test): New function.
11505 (_initialize_regcache) [GDB_SELF_TEST]: Register the unit test.
11506
11507 2017-05-08 Alan Hayward <alan.hayward@arm.com>
11508
11509 * mips-tdep.c (mips_o32_return_value): Remove unused buffer.
11510 (print_gp_register_row): Use get_frame_register_value.
11511
11512 2017-05-08 Alan Hayward <alan.hayward@arm.com>
11513
11514 * mips-linux-tdep.c (mips_supply_gregset): Use raw_supply_zeroed.
11515 (mips_supply_fpregset): Likewise.
11516 (mips64_supply_gregset): Likewise.
11517
11518 2017-05-08 Alan Hayward <alan.hayward@arm.com>
11519
11520 * mn10300-linux-tdep.c (am33_supply_gregset_method): Use
11521 regcache->raw_supply_zeroed.
11522
11523 2017-05-06 Sergio Durigan Junior <sergiodj@redhat.com>
11524
11525 * configure.nat: Rearrange 'case' statements to match
11526 host before cpu.
11527
11528 2017-05-06 Sergio Durigan Junior <sergiodj@redhat.com>
11529
11530 * Makefile.in: Remove "@host_makefile_frag@". Add variables
11531 NAT_FILE, NATDEPFILES, NAT_CDEPS, LOADLIBES, MH_CFLAGS, XM_CLIBS,
11532 NAT_GENERATED_FILES, HAVE_NATIVE_GCORE_HOST. Add
11533 "@nat_extra_makefile_frag@".
11534 (Makefile): Remove dependency on "@frags@".
11535 ($(GNULIB_BUILDDIR)/Makefile): Likewise.
11536 (data-directory/Makefile): Likewise.
11537 * config/aarch64/linux.mh: Deleted; moved contents to
11538 "gdb/configure.nat".
11539 * config/alpha/alpha-linux.mh: Likewise.
11540 * config/alpha/nbsd.mh: Likewise.
11541 * config/arm/linux.mh: Likewise.
11542 * config/arm/nbsdelf.mh: Likewise.
11543 * config/i386/cygwin.mh: Likewise.
11544 * config/i386/cygwin64.mh: Likewise.
11545 * config/i386/darwin.mh: Likewise.
11546 * config/i386/fbsd.mh: Likewise.
11547 * config/i386/fbsd64.mh: Likewise.
11548 * config/i386/go32.mh: Likewise.
11549 * config/i386/i386gnu.mh: Likewise.
11550 * config/i386/i386sol2.mh: Likewise.
11551 * config/i386/linux.mh: Likewise.
11552 * config/i386/linux64.mh: Likewise.
11553 * config/i386/mingw.mh: Likewise.
11554 * config/i386/mingw64.mh: Likewise.
11555 * config/i386/nbsd64.mh: Likewise.
11556 * config/i386/nbsdelf.mh: Likewise.
11557 * config/i386/nto.mh: Likewise.
11558 * config/i386/obsd.mh: Likewise.
11559 * config/i386/obsd64.mh: Likewise.
11560 * config/i386/sol2-64.mh: Likewise.
11561 * config/ia64/linux.mh: Likewise.
11562 * config/m32r/linux.mh: Likewise.
11563 * config/m68k/linux.mh: Likewise.
11564 * config/m68k/nbsdelf.mh: Likewise.
11565 * config/m68k/obsd.mh: Likewise.
11566 * config/m88k/obsd.mh: Likewise.
11567 * config/mips/fbsd.mh: Likewise.
11568 * config/mips/linux.mh: Likewise.
11569 * config/mips/nbsd.mh: Likewise.
11570 * config/mips/obsd64.mh: Likewise.
11571 * config/pa/linux.mh: Likewise.
11572 * config/pa/nbsd.mh: Likewise.
11573 * config/pa/obsd.mh: Likewise.
11574 * config/powerpc/aix.mh: Likewise.
11575 * config/powerpc/fbsd.mh: Likewise.
11576 * config/powerpc/linux.mh: Likewise.
11577 * config/powerpc/nbsd.mh: Likewise.
11578 * config/powerpc/obsd.mh: Likewise.
11579 * config/powerpc/ppc64-linux.mh: Likewise.
11580 * config/powerpc/spu-linux.mh: Likewise.
11581 * config/s390/linux.mh: Likewise.
11582 * config/sh/nbsd.mh: Likewise.
11583 * config/sparc/fbsd.mh: Likewise.
11584 * config/sparc/linux.mh: Likewise.
11585 * config/sparc/linux64.mh: Likewise.
11586 * config/sparc/nbsd64.mh: Likewise.
11587 * config/sparc/nbsdelf.mh: Likewise.
11588 * config/sparc/obsd64.mh: Likewise.
11589 * config/sparc/sol2.mh: Likewise.
11590 * config/tilegx/linux.mh: Likewise.
11591 * config/vax/nbsdelf.mh: Likewise.
11592 * config/vax/obsd.mh: Likewise.
11593 * config/xtensa/linux.mh: Likewise.
11594 * config/i386/i386gnu.mn: New file, with excerpts from
11595 "config/i386/i386gnu.mh".
11596 * configure: Regenerate.
11597 * configure.ac: Rewrite code to use "gdb/configure.nat" instead of
11598 *.mh files under "gdb/config".
11599 * configure.nat: New file, with contents from the
11600 "gdb/config/*/*.mh" files.
11601
11602 2017-05-05 Tim Wiederhake <tim.wiederhake@intel.com>
11603
11604 * btrace.c (btrace_clear): Free insn vector.
11605
11606 2017-05-05 Pedro Alves <palves@redhat.com>
11607
11608 * warning.m4 (build_warnings): Add -Wno-error=maybe-uninitialized.
11609 * configure: Regenerate.
11610
11611 2017-05-04 Pedro Alves <palves@redhat.com>
11612
11613 * Makefile.in (SFILES): Add progspace-and-thread.c.
11614 (HFILES_NO_SRCDIR): Add progspace-and-thread.h.
11615 (COMMON_OBS): Add progspace-and-thread.o.
11616 * breakpoint.c: Include "progspace-and-thread.h".
11617 (update_inserted_breakpoint_locations)
11618 (insert_breakpoint_locations, create_longjmp_master_breakpoint):
11619 Use scoped_restore_current_pspace_and_thread.
11620 (create_std_terminate_master_breakpoint): Use
11621 scoped_restore_current_program_space.
11622 (remove_breakpoint): Use scoped_restore_current_pspace_and_thread.
11623 (print_breakpoint_location): Use
11624 scoped_restore_current_program_space.
11625 (bp_loc_is_permanent): Use
11626 scoped_restore_current_pspace_and_thread.
11627 (resolve_sal_pc): Use scoped_restore_current_pspace_and_thread.
11628 (download_tracepoint_locations): Use
11629 scoped_restore_current_pspace_and_thread.
11630 (breakpoint_re_set): Use scoped_restore_current_pspace_and_thread.
11631 * exec.c (exec_close_1): Use scoped_restore_current_program_space.
11632 (enum step_over_calls_kind): Moved from inferior.h.
11633 (class scoped_restore_current_thread): New class.
11634 * gdbthread.h (make_cleanup_restore_current_thread): Delete
11635 declaration.
11636 (scoped_restore_current_thread): New class.
11637 * infcmd.c: Include "common/gdb_optional.h".
11638 (continue_1, proceed_after_attach): Use
11639 scoped_restore_current_thread.
11640 (notice_new_inferior): Use scoped_restore_current_thread.
11641 * inferior.c: Include "progspace-and-thread.h".
11642 (restore_inferior, save_current_inferior): Delete.
11643 (add_inferior_command, clone_inferior_command): Use
11644 scoped_restore_current_pspace_and_thread.
11645 * inferior.h (scoped_restore_current_inferior): New class.
11646 * infrun.c: Include "progspace-and-thread.h" and
11647 "common/gdb_optional.h".
11648 (follow_fork_inferior): Use
11649 scoped_restore_current_pspace_and_thread.
11650 (scoped_restore_exited_inferior): New class.
11651 (handle_vfork_child_exec_or_exit): Use
11652 scoped_restore_exited_inferior,
11653 scoped_restore_current_pspace_and_thread,
11654 scoped_restore_current_thread and scoped_restore.
11655 (fetch_inferior_event): Use scoped_restore_current_thread.
11656 * linespec.c (decode_line_full, decode_line_1): Use
11657 scoped_restore_current_program_space.
11658 * mi/mi-main.c: Include "progspace-and-thread.h".
11659 (exec_continue): Use scoped_restore_current_thread.
11660 (mi_cmd_exec_run): Use scoped_restore_current_pspace_and_thread.
11661 (mi_cmd_trace_frame_collected): Use scoped_restore_current_thread.
11662 * proc-service.c (ps_pglobal_lookup): Use
11663 scoped_restore_current_program_space.
11664 * progspace-and-thread.c: New file.
11665 * progspace-and-thread.h: New file.
11666 * progspace.c (release_program_space, clone_program_space): Use
11667 scoped_restore_current_program_space.
11668 (restore_program_space, save_current_program_space)
11669 (save_current_space_and_thread): Delete.
11670 (switch_to_program_space_and_thread): Moved to
11671 progspace-and-thread.c.
11672 * progspace.h (save_current_program_space)
11673 (save_current_space_and_thread): Delete declarations.
11674 (scoped_restore_current_program_space): New class.
11675 * remote.c (remote_btrace_maybe_reopen): Use
11676 scoped_restore_current_thread.
11677 * symtab.c: Include "progspace-and-thread.h".
11678 (skip_prologue_sal): Use scoped_restore_current_pspace_and_thread.
11679 * thread.c (print_thread_info_1): Use
11680 scoped_restore_current_thread.
11681 (struct current_thread_cleanup): Delete.
11682 (do_restore_current_thread_cleanup)
11683 (restore_current_thread_cleanup_dtor): Rename/convert both to ...
11684 (scoped_restore_current_thread::~scoped_restore_current_thread):
11685 ... this new dtor.
11686 (make_cleanup_restore_current_thread): Rename/convert to ...
11687 (scoped_restore_current_thread::scoped_restore_current_thread):
11688 ... this new ctor.
11689 (thread_apply_all_command): Use scoped_restore_current_thread.
11690 (thread_apply_command): Use scoped_restore_current_thread.
11691 * tracepoint.c (tdump_command): Use scoped_restore_current_thread.
11692 * varobj.c (value_of_root_1): Use scoped_restore_current_thread.
11693
11694 2017-05-04 Pedro Alves <palves@redhat.com>
11695
11696 * thread.c (make_cleanup_restore_current_thread): Move
11697 find_thread_ptid call before the is_stopped call. Assert that the
11698 thread is found. Replace is_stopped call by checking the thread's
11699 state directly. Remove unnecessary NULL-thread check.
11700
11701 2017-05-04 Pedro Alves <palves@redhat.com>
11702
11703 * corelow.c (thread_section_name): New class.
11704 (get_core_register_section, get_core_siginfo): Use it.
11705
11706 2017-05-04 Andreas Arnez <arnez@linux.vnet.ibm.com>
11707
11708 * corelow.c (sniff_core_bfd): Remove extra semicolon.
11709 (get_core_register_section): Remove xfree of NULL pointer.
11710
11711 2017-05-03 Alan Hayward <alan.hayward@arm.com>
11712
11713 * frv-linux-tdep.c (frv_linux_supply_gregset): Use raw_supply_zeroed.
11714 * regcache.c (regcache::raw_supply_zeroed): New function.
11715 * regcache.h (regcache::raw_supply_zeroed): New declaration.
11716
11717 2017-05-03 Simon Marchi <simon.marchi@ericsson.com>
11718
11719 * gdbarch.sh: Remove commented out definition of
11720 TARGET_CHAR_BIT.
11721 * gdbarch.h: Re-generate.
11722
11723 2017-05-03 Sergio Durigan Junior <sergiodj@redhat.com>
11724
11725 * configure: Regenerate.
11726
11727 2017-05-02 Simon Marchi <simon.marchi@ericsson.com>
11728
11729 * solib-target.c (solib_target_relocate_section_addresses):
11730 Remove num_section_bases, num_bases, segment_bases variables.
11731
11732 2017-05-02 Simon Marchi <simon.marchi@polymtl.ca>
11733
11734 * common/gdb_vecs.h (DEF_VEC_I (CORE_ADDR)): Remove.
11735
11736 2017-05-02 Simon Marchi <simon.marchi@polymtl.ca>
11737
11738 * solib-target.c: Include <vector>
11739 (struct lm_info_target) <~lm_info_target>: Remove.
11740 <segment_bases, section_bases>: Change type to
11741 std::vector<CORE_ADDR>.
11742 (library_list_start_segment, library_list_start_section,
11743 library_list_end_library,
11744 solib_target_relocate_section_addresses): Adjust.
11745
11746 2017-05-02 Simon Marchi <simon.marchi@polymtl.ca>
11747
11748 * gdbarch.sh (software_single_step): Change return type to
11749 std::vector<CORE_ADDR>.
11750 * gdbarch.c, gdbarch.h: Re-generate.
11751 * arch/arm-get-next-pcs.c (thumb_deal_with_atomic_sequence_raw):
11752 Adjust.
11753 (arm_deal_with_atomic_sequence_raw): Adjust.
11754 (thumb_get_next_pcs_raw): Adjust.
11755 (arm_get_next_pcs_raw): Adjust.
11756 (arm_get_next_pcs): Adjust.
11757 * arch/arm-get-next-pcs.h (arm_get_next_pcs): Adjust.
11758 * aarch64-tdep.c (aarch64_software_single_step): Adjust.
11759 * alpha-tdep.c (alpha_deal_with_atomic_sequence): Adjust.
11760 (alpha_software_single_step): Adjust.
11761 * alpha-tdep.h (alpha_software_single_step): Adjust.
11762 * arm-linux-tdep.c (arm_linux_software_single_step): Adjust.
11763 * arm-tdep.c (arm_software_single_step): Adjust.
11764 (arm_breakpoint_kind_from_current_state): Adjust.
11765 * arm-tdep.h (arm_software_single_step): Adjust.
11766 * breakpoint.c (insert_single_step_breakpoint): Adjust.
11767 * cris-tdep.c (cris_software_single_step): Adjust.
11768 * mips-tdep.c (mips_deal_with_atomic_sequence): Adjust.
11769 (micromips_deal_with_atomic_sequence): Adjust.
11770 (deal_with_atomic_sequence): Adjust.
11771 (mips_software_single_step): Adjust.
11772 * mips-tdep.h (mips_software_single_step): Adjust.
11773 * moxie-tdep.c (moxie_software_single_step): Adjust.
11774 * nios2-tdep.c (nios2_software_single_step): Adjust.
11775 * ppc-tdep.h (ppc_deal_with_atomic_sequence): Adjust.
11776 * rs6000-aix-tdep.c (rs6000_software_single_step): Adjust.
11777 * rs6000-tdep.c (ppc_deal_with_atomic_sequence): Adjust.
11778 * s390-linux-tdep.c (s390_software_single_step): Adjust.
11779 * sparc-tdep.c (sparc_software_single_step): Adjust.
11780 * spu-tdep.c (spu_software_single_step): Adjust.
11781 * tic6x-tdep.c (tic6x_software_single_step): Adjust.
11782
11783 2017-05-02 Simon Marchi <simon.marchi@polymtl.ca>
11784
11785 * gdbarch.sh: Use semi-colon as field separator instead of colon.
11786 * gdbarch.h: Re-generate.
11787
11788 2017-05-01 Tim Wiederhake <tim.wiederhake@intel.com>
11789
11790 * Makefile.in (SUBDIR_PYTHON_OBS): Add py-instruction.o.
11791 (SUBDIR_PYTHON_SRCS): Add py-instruction.c.
11792 * python/py-instruction.c, python/py-instruction.h: New file.
11793 * python/py-record.c: Add py-instruction.h include.
11794 (gdbpy_initialize_record): Make gdb.Instruction a super class of
11795 gdb.RecordInstruction.
11796 * python/python-internal.h: Add gdbpy_initialize_instruction
11797 declaration.
11798 * python/python.c (do_start_initialization): Add
11799 gdbpy_initialize_instruction.
11800
11801 2017-05-01 Tim Wiederhake <tim.wiederhake@intel.com>
11802
11803 * python/py-record-btrace.c (BTPY_REQUIRE_VALID_CALL, btpy_call_type):
11804 Remove.
11805 (btrace_func_from_recpy_func): New function.
11806 (btpy_call_new, btpy_number, btpy_hash, btpy_richcompare): Remove.
11807 (btpy_call_level, btpy_call_symbol, btpy_call_instructions,
11808 btpy_call_up, btpy_call_prev_sibling, btpy_call_next_sibling): Rename to ...
11809 (recpy_bt_func_level, recpy_bt_func_symbol, recpy_bt_func_instructions,
11810 recpy_bt_func_up, recpy_bt_func_prev, recpy_bt_func_next): This.
11811 Also, use new helper functions.
11812 (btpy_list_item): Use new helper functions.
11813 (recpy_bt_function_call_history): Use new type name.
11814 (btpy_call_getset): Remove.
11815 (gdbpy_initialize_btrace): Remove code to initialize
11816 gdb.BtraceFunctionCall.
11817 * python/py-record-btrace.h (recpy_bt_func_number, recpy_btb_func_level,
11818 recpy_btb_func_symbol, recpy_bt_func_instructions, recpy_bt_func_up,
11819 recpy_bt_func_prev, recpy_bt_func_next): New export.
11820 * python/py-record.c (recpy_func_type): New static object.
11821 (recpy_func_new, recpy_func_level, recpy_func_symbol,
11822 recpy_func_instructions, recpy_func_up, recpy_func_prev,
11823 recpy_func_next): New function.
11824 (recpy_element_hash, recpy_element_richcompare): Updated comment.
11825 (recpy_func_getset): New static object.
11826 (gdbpy_initialize_record): Add code to initialize gdb.RecordInstruction.
11827 * python/py-record.h (recpy_func_type, recpy_func_new): New export.
11828
11829 2017-05-01 Tim Wiederhake <tim.wiederhake@intel.com>
11830
11831 * python/py-record-btrace.c (BTPY_REQUIRE_VALID_INSN): Remove.
11832 (btpy_object, btpy_insn_type, btpy_new): Remove.
11833 (btpy_list_object): Use gdb.RecordInstruction type instead of
11834 gdb.BtraceInstruction type.
11835 (btrace_insn_from_recpy_insn): New function.
11836 (btpy_insn_or_gap_new): Adjust comment. Use recpy_insn_new instead of
11837 btpy_new.
11838 (btpy_call_new, btpy_list_item): Do not use btpy_new anymore.
11839 (btpy_number, btpy_hash, btpy_call_level, btpy_call_symbol,
11840 btpy_call_instructions, btpy_call_up, btpy_call_prev_sibling,
11841 btpy_call_next_sibling, btpy_richcompare): Use recpy_element_object
11842 instead of btpy_object.
11843 (btpy_insn_sal, btpy_insn_pc, btpy_insn_size, btpy_insn_is_speculative,
11844 btpy_insn_data, btpy_insn_decode): Rename to ...
11845 (recpy_bt_insn_sal, recpy_bt_insn_pc, recpy_bt_insn_size,
11846 recpy_bt_insn_is_speculative, recpy_bt_insn_data,
11847 recpy_bt_insn_decode): This. Also, use new helper functions.
11848 (btpy_list_position, recpy_bt_goto): Use recpy_element_object and
11849 recpy_insn_type.
11850 (btpy_insn_getset): Remove.
11851 (gdbpy_initialize_btrace): Remove code to initialize
11852 gdb.BtraceInstruction. Use recpy_element_object.
11853 * python/py-record-btrace.h (recpy_bt_insn_number, recpy_bt_insn_sal,
11854 recpy_bt_insn_pc, recpy_bt_insn_data, recpy_bt_insn_decoded,
11855 recpy_bt_insn_size, recpy_bt_insn_is_speculative): New export.
11856 * python/py-record.c (recpy_insn_type): New static object.
11857 (recpy_insn_new, recpy_insn_sal, recpy_insn_pc, recpy_insn_data,
11858 recpy_insn_decoded, recpy_insn_size, recpy_insn_is_speculative,
11859 recpy_element_number, recpy_element_hash, recpy_element_richcompare):
11860 New function.
11861 (recpy_insn_getset): New static object.
11862 (gdbpy_initialize_record): Initialize gdb.RecordInstruction.
11863 * python/py-record.h (recpy_element_object): New typedef.
11864 (recpy_insn_type, recpy_insn_new): New export.
11865
11866 2017-05-01 Tim Wiederhake <tim.wiederhake@intel.com>
11867
11868 * py-record-btrace.c (btpy_insn_new): Removed.
11869 (btpy_insn_or_gap_new): New function.
11870 (btpy_insn_error): Removed.
11871 (btpy_insn_sal, btpy_insn_pc, btpy_insn_size, btpy_insn_is_speculative,
11872 btpy_insn_data, btpy_insn_decode): Remove code path for gaps.
11873 (recpy_bt_replay_position, recpy_bt_begin, recpy_bt_end): Call
11874 btpy_insn_or_gap_new instead of btpy_insn_new.
11875 (btpy_insn_getset): Remove btpy_insn_error.
11876 * py-record.c (recpy_gap_type): New static object.
11877 (recpy_gap_object): New typedef.
11878 (recpy_gap_new, recpy_gap_number, recpy_gap_reason_code,
11879 recpy_gap_reason_string): New function.
11880 (recpy_gap_getset): New static object.
11881 (gdbpy_initialize_record): Initialize gdb.RecordGap type.
11882 * py-record.h (recpy_gap_new): New export.
11883
11884 2017-05-01 Tim Wiederhake <tim.wiederhake@intel.com>
11885
11886 * python/py-record.c (recpy_ptid): Remove.
11887 (recpy_record_getset): Remove recpy_ptid.
11888
11889 2017-05-01 Tim Wiederhake <tim.wiederhake@intel.com>
11890
11891 * btrace.c (btrace_fetch): Set inferior_ptid.
11892 * python/py-record-btrace.c: Add "py-record.h" include.
11893 (recpy_bt_format, recpy_bt_replay_position, recpy_bt_begin,
11894 recpy_bt_end, recpy_bt_instruction_history,
11895 recpy_bt_function_call_history, recpy_bt_goto): Use ptid stored
11896 in gdb.Record object instead of current ptid.
11897 * python/py-record.c: Include new "py-record.h" file.
11898 (recpy_record_object): Moved to py-record.h.
11899 * python/py-record.h: New file.
11900
11901 2017-05-01 Tim Wiederhake <tim.wiederhake@intel.com>
11902
11903 * python/py-record-btrace.c (BTPY_REQUIRE_VALID_INSN,
11904 BTPY_REQUIRE_VALID_CALL, recpy_bt_function_call_history): Fix
11905 indentation.
11906
11907 2017-05-01 Joel Brobecker <brobecker@adacore.com>
11908
11909 * MAINTAINERS: Move Daniel Jacobowitz and Mark Kettenis to
11910 the past maintainers section.
11911
11912 2017-04-28 Yao Qi <yao.qi@linaro.org>
11913
11914 * infcmd.c (get_return_value): Use regcache ctor, and remove
11915 cleanup.
11916
11917 2017-04-28 Yao Qi <yao.qi@linaro.org>
11918 Pedro Alves <palves@redhat.com>
11919
11920 * regcache.c (regcache::regcache): New tag dispatch ctor.
11921 (do_cooked_read): Moved above.
11922 (regcache_dup): Use the tag dispatch ctor..
11923 * regcache.h (regcache): Declare ctor, delete copy ctor and
11924 assignment operator, remove friend regcache_dup.
11925
11926 2017-04-28 Yao Qi <yao.qi@linaro.org>
11927
11928 * regcache.c (regcache_dup): Assert !src->m_readonly_p and
11929 call method save instead of regcache_cpy.
11930 * regcache.h (struct regcache): Make regcache_dup a friend.
11931
11932 2017-04-28 Yao Qi <yao.qi@linaro.org>
11933
11934 * regcache.c (struct regcache): Move to regcache.h
11935 (regcache::arch): New method.
11936 (regcache_get_ptid): Update.
11937 (get_regcache_arch): Call arch method.
11938 (get_regcache_aspace): Call method aspace.
11939 (register_buffer): Change it to method.
11940 (regcache_save): Change it to regcache::save.
11941 (regcache_restore): Likewise.
11942 (regcache_cpy_no_passthrough): Remove the declaration.
11943 (regcache_cpy): Call methods restore and cpy_no_passthrough.
11944 (regcache_cpy_no_passthrough): Change it to method
11945 cpy_no_passthrough.
11946 (regcache_register_status): Change it to method
11947 get_register_status.
11948 (regcache_invalidate): Change it to method invalidate.
11949 (regcache_thread_ptid_changed): Use methods ptid and set_ptid.
11950 (regcache_raw_update): Change it to method raw_update.
11951 (regcache_raw_read): Likewise.
11952 (regcache_raw_read_signed): Likewise.
11953 (regcache_raw_read_unsigned): Likewise.
11954 (regcache_raw_write_signed): Likewise.
11955 (regcache_raw_write_unsigned): Likewise.
11956 (regcache_cooked_read): Likewise.
11957 (regcache_cooked_read_value): Likewise.
11958 (regcache_cooked_read_signed): Likewise.
11959 (regcache_cooked_read_unsigned): Likewise.
11960 (regcache_cooked_write_signed): Likewise.
11961 (regcache_cooked_write_unsigned): Likewise.
11962 (regcache_raw_set_cached_value): Likewise.
11963 (regcache_raw_write): Likewise.
11964 (regcache_cooked_write): Likewise.
11965 (regcache_xfer_part): Likewise.
11966 (regcache_raw_read_part): Likewise.
11967 (regcache_raw_write_part): Likewise.
11968 (regcache_cooked_read_part): Likewise.
11969 (regcache_cooked_write_part): Likewise.
11970 (regcache_raw_supply): Likewise.
11971 (regcache_raw_collect): Likewise.
11972 (regcache_transfer_regset): Likewise.
11973 (regcache_supply_regset): Likewise.
11974 (regcache_collect_regset): Likewise.
11975 (regcache_debug_print_register): Likewise.
11976 (enum regcache_dump_what): Move it to regcache.h.
11977 (regcache_dump): Change it to method dump.
11978 * regcache.h (enum regcache_dump_what): New.
11979 (class regcache): New.
11980 * target.c (target_fetch_registers): Call method
11981 debug_print_register.
11982 (target_store_registers): Likewise.
11983
11984 2017-04-28 Simon Marchi <simon.marchi@ericsson.com>
11985
11986 * windows-nat.c (struct lm_info_windows): Initialize field.
11987 (windows_make_so): Allocate lm_info_windows with new.
11988 (windows_free_so): Free lm_info_windows with delete.
11989
11990 2017-04-28 Simon Marchi <simon.marchi@ericsson.com>
11991
11992 * solib-darwin.c (struct lm_info_darwin): Initialize field.
11993 (darwin_current_sos): Allocate lm_info_darwin with new, remove
11994 cleanup.
11995 (darwin_free_so): Free lm_info_darwin with delete.
11996
11997 2017-04-28 Simon Marchi <simon.marchi@ericsson.com>
11998
11999 * solib-svr4.h (struct lm_info_svr4): Initialize fields.
12000 <l_addr_p>: Change type to bool.
12001 * solib-svr4.c (lm_info_read): Allocate lm_info_svr4 with new.
12002 (svr4_free_so): Free lm_info_svr4 with delete.
12003 (svr4_copy_library_list): Replace memcpy with call to copy
12004 constructor.
12005 (library_list_start_library, svr4_default_sos): Allocate
12006 lm_info_svr4 with new.
12007
12008 2017-04-28 Simon Marchi <simon.marchi@ericsson.com>
12009
12010 * solib-target.c (struct lm_info_target): Add destructor,
12011 initialize fields.
12012 <name>: Change type to std::string.
12013 (library_list_start_library): Allocate lm_info_target with new.
12014 (solib_target_free_library_list): Free lm_info_target with
12015 delete.
12016 (solib_target_current_sos): Adapt to std::string.
12017 (solib_target_free_so): Free lm_info_target with delete.
12018
12019 2017-04-28 Simon Marchi <simon.marchi@ericsson.com>
12020
12021 * solib-frv.c (struct lm_info_frv): Add destructor, initialize
12022 fields.
12023 (frv_current_sos): Allocate lm_info_frv with new.
12024 (frv_relocate_main_executable): Free lm_info_frv with delete,
12025 allocate with new.
12026 (frv_clear_solib, frv_free_so): Free lm_info_frv with delete.
12027
12028 2017-04-28 Simon Marchi <simon.marchi@ericsson.com>
12029
12030 * solib-frv.c (struct lm_info_frv): Fix indentation.
12031
12032 2017-04-28 Simon Marchi <simon.marchi@ericsson.com>
12033
12034 * solib-dsbt.c (struct lm_info_dsbt): Add destructor, initialize
12035 map field.
12036 (dsbt_current_sos): Allocate lm_info_dsbt with new.
12037 (dsbt_relocate_main_executable): Free lm_info_dsbt with delete
12038 and allocate with new.
12039 (dsbt_clear_solib, dsbt_free_so): Free lm_info_dsbt with delete.
12040
12041 2017-04-28 Simon Marchi <simon.marchi@ericsson.com>
12042
12043 * solib-aix.c (struct lm_info_aix): Initialize fields in-class.
12044 <filename, member_name>: Change type to std::string.
12045 (solib_aix_new_lm_info, solib_aix_xfree_lm_info): Remove.
12046 (library_list_start_library): Allocate lm_info_aix with new.
12047 (solib_aix_free_library_list, solib_aix_free_so): Free with delete.
12048 (solib_aix_current_sos): Adapt to std::string, copy lm_info_aix
12049 with copy constructor.
12050
12051 2017-04-28 Simon Marchi <simon.marchi@ericsson.com>
12052
12053 * solist.h (struct lm_info): Remove.
12054 (struct lm_info_base): New class.
12055 (struct so_list) <lm_info>: Change type to lm_info_base *.
12056 * nto-tdep.c (struct lm_info): Remove.
12057 (lm_addr): Adjust.
12058 * solib-aix.c (struct lm_info): Rename to ...
12059 (struct lm_info_aix): ... this. Extend lm_info_base.
12060 (lm_info_p): Rename to ...
12061 (lm_info_aix_p): ... this, and adjust.
12062 (solib_aix_new_lm_info, solib_aix_xfree_lm_info,
12063 solib_aix_parse_libraries, library_list_start_library,
12064 solib_aix_free_library_list, solib_aix_parse_libraries,
12065 solib_aix_get_library_list,
12066 solib_aix_relocate_section_addresses, solib_aix_free_so,
12067 solib_aix_get_section_offsets,
12068 solib_aix_solib_create_inferior_hook, solib_aix_current_sos):
12069 Adjust.
12070 (struct solib_aix_inferior_data) <library_list>: Adjust.
12071 * solib-darwin.c (struct lm_info): Rename to ...
12072 (struct lm_info_darwin): ... this. Extend lm_info_base.
12073 (darwin_current_sos, darwin_relocate_section_addresses): Adjust.
12074 * solib-dsbt.c (struct lm_info): Rename to ...
12075 (struct lm_info_dsbt): ... this. Extend lm_info_base.
12076 (struct dsbt_info) <main_executable_lm_info): Adjust.
12077 (dsbt_current_sos, dsbt_relocate_main_executable, dsbt_free_so,
12078 dsbt_relocate_section_addresses): Adjust.
12079 * solib-frv.c (struct lm_info): Rename to ...
12080 (struct lm_info_frv): ... this. Extend lm_info_base.
12081 (main_executable_lm_info): Adjust.
12082 (frv_current_sos, frv_relocate_main_executable, frv_free_so,
12083 frv_relocate_section_addresses, frv_fdpic_find_global_pointer,
12084 find_canonical_descriptor_in_load_object,
12085 frv_fdpic_find_canonical_descriptor): Adjust.
12086 * solib-svr4.c (struct lm_info): Move to solib-svr4.h, renamed
12087 to lm_info_svr4.
12088 (lm_info_read, lm_addr_check, svr4_keep_data_in_core,
12089 svr4_clear_so, svr4_copy_library_list,
12090 library_list_start_library, svr4_default_sos, svr4_read_so_list,
12091 svr4_current_sos, svr4_fetch_objfile_link_map,
12092 solist_update_incremental): Adjust.
12093 * solib-svr4.h (struct lm_info_svr4): Move here from
12094 solib-svr4.c.
12095 * solib-target.c (struct lm_info): Rename to ...
12096 (struct lm_info_target): ... this. Extend lm_info_base.
12097 (lm_info_p): Rename to ...
12098 (lm_info_target_p): ... this.
12099 (solib_target_parse_libraries, library_list_start_segment,
12100 library_list_start_section, library_list_start_library,
12101 library_list_end_library, solib_target_free_library_list,
12102 solib_target_current_sos, solib_target_free_so,
12103 solib_target_relocate_section_addresses): Adjust.
12104 * windows-nat.c (struct lm_info): Rename to ...
12105 (struct lm_info_windows): ... this. Extend lm_info_base.
12106 (windows_make_so, handle_load_dll, handle_unload_dll,
12107 windows_xfer_shared_libraries): Adjust.
12108
12109 2017-04-28 Simon Marchi <simon.marchi@ericsson.com>
12110
12111 * solib-darwin.c (struct darwin_so_list): Remove.
12112 (darwin_current_sos): Allocate an so_list object instead of a
12113 darwin_so_list, separately allocate an lm_info object.
12114 (darwin_free_so): Free lm_info.
12115
12116 2017-04-28 John Baldwin <jhb@FreeBSD.org>
12117
12118 * mips-tdep.c (print_gp_register_row): Replace printf_filtered
12119 with fprintf_filtered.
12120
12121 2017-04-28 Yao Qi <yao.qi@linaro.org>
12122
12123 * regcache.c (regcache::regcache): New function.
12124 (regcache::~regcache): New function.
12125 (regcache_xmalloc_1): Remove.
12126 (regcache_xmalloc): Call new regcache.
12127 (regcache_xfree): Call delete regcache.
12128 (get_thread_arch_aspace_regcache): Call new regcache.
12129
12130 2017-04-28 Yao Qi <yao.qi@linaro.org>
12131
12132 * mips-linux-nat.c (mips_linux_new_thread): Use ptid method
12133 lwp instead of ptid_get_lwp.
12134
12135 2017-04-28 Yao Qi <yao.qi@linaro.org>
12136
12137 * mips-linux-nat.c (mips_linux_new_thread): Get lwpid from
12138 lwp_info instead of getting from inferior_ptid.
12139
12140 2017-04-27 Keith Seitz <keiths@redhat.com>
12141
12142 * gdbtypes.c (LVALUE_REFERENCE_TO_RVALUE_BINDING_BADNESS)
12143 DIFFERENT_REFERENCE_TYPE_BADNESS): Remove.
12144 (CV_CONVERSION_BADNESS): Define.
12145 (rank_one_type): Remove overly restrictive rvalue reference
12146 rank checks.
12147 Add cv-qualifier checks and subranks for type equality.
12148 * gdbtypes.h (REFERENCE_CONVERSION_RVALUE,
12149 REFERENCE_CONVERSION_CONST_LVALUE, CV_CONVERSION_BADNESS,
12150 CV_CONVERSION_CONST, CV_CONVERSION_VOLATILE): Declare.
12151
12152 2017-04-27 Simon Marchi <simon.marchi@ericsson.com>
12153
12154 * python/py-inferior.c (inferior_to_inferior_object): Increment reference
12155 count when creating the object.
12156
12157 2017-04-27 Sangamesh Mallayya <sangamesh.swamy@in.ibm.com>
12158 Ulrich Weigand <uweigand@de.ibm.com>
12159
12160 * xcoffread.c (read_xcoff_symtab): Read correct function auxiliary
12161 entry if xlc -qfuncsect or gcc -ffunction-sections compiler option
12162 is used in AIX.
12163 (read_xcoff_symtab): Handle C_WEAKEXT storage class.
12164 (process_xcoff_symbol): Likewise.
12165 (scan_xcoff_symtab): Likewise.
12166
12167 2017-04-26 Alan Hayward <alan.hayward@arm.com>
12168
12169 * ia64-tdep.c (examine_prologue): Use get_frame_register_unsigned.
12170 (ia64_sigtramp_frame_prev_register): Use read_memory_unsigned_integer.
12171 (ia64_access_reg): Use get_frame_register_unsigned.
12172 (ia64_access_rse_reg): Likewise.
12173 (ia64_libunwind_frame_prev_register): Likewise.
12174
12175 2017-04-26 Jiong Wang <jiong.wang@arm.com>
12176
12177 * gdbarch.sh: New gdbarch method execute_dwarf_cfa_vendor_op.
12178 * gdbarch.c: Regenerated.
12179 * gdbarch.h: Regenerated.
12180 * dwarf2-frame.c (dwarf2_frame_state_alloc_regs): Made the
12181 visibility external.
12182 (execute_cfa_program): Call execute_dwarf_cfa_vendor_op for CFI
12183 between DW_CFA_lo_user and DW_CFA_high_user inclusive.
12184 (enum cfa_how_kind): Move to ...
12185 (struct dwarf2_frame_state_reg_info): Likewise.
12186 (struct dwarf2_frame_state): Likewise.
12187 * dwarf2-frame.h: ... here.
12188 (dwarf2_frame_state_alloc_regs): New declaration.
12189 * sparc-tdep.c (sparc_execute_dwarf_cfa_vendor_op): New function.
12190 (sparc32_gdbarch_init): Register execute_dwarf_cfa_vendor_op hook.
12191
12192 2017-04-26 Alan Hayward <alan.hayward@arm.com>
12193
12194 * xtensa-tdep.c (xtensa_pseudo_register_read): Use
12195 regcache_raw_read_unsigned.
12196 (xtensa_pseudo_register_write): Likewise.
12197
12198 2017-04-26 Alan Hayward <alan.hayward@arm.com>
12199
12200 * nds32-tdep.c (nds32_pseudo_register_read): Abort on errors.
12201 (nds32_pseudo_register_write): Likewise.
12202
12203 2017-04-25 Yao Qi <yao.qi@linaro.org>
12204
12205 * regcache.c (struct regcache) <readonly_p>: Change its type
12206 to bool.
12207 (regcache_xmalloc_1): Update parameter type and callers update.
12208
12209 2017-04-25 Yao Qi <yao.qi@linaro.org>
12210
12211 * aarch64-tdep.c (aarch64_gdbarch_init): Don't call
12212 set_gdbarch_wchar_bit.
12213 * arm-tdep.c (arm_gdbarch_init): Likewise.
12214
12215 2017-04-25 Pedro Alves <palves@redhat.com>
12216
12217 * common/poison.h [!HAVE_IS_TRIVIALLY_COPYABLE] (IsRelocatable)
12218 (BothAreRelocatable, memcopy, memmove): Don't define.
12219 * common/traits.h (__has_feature, HAVE_IS_TRIVIALLY_COPYABLE): New
12220 macros.
12221
12222 2017-04-25 Pedro Alves <palves@redhat.com>
12223
12224 * common/common-defs.h: Include "common/poison.h".
12225 * common/function-view.h: (Not, Or, Requires): Move to traits.h
12226 and adjust.
12227 * common/poison.h: New file.
12228 * common/traits.h: Include <type_traits>.
12229 (Not, Or, Requires): New, moved from common/function-view.h.
12230
12231 2017-04-25 Pedro Alves <palves@redhat.com>
12232
12233 * breakpoint.h (struct breakpoint): In-class initialize all
12234 fields. Make boolean fields "bool".
12235 * breakpoint.c (init_raw_breakpoint_without_location): Remove
12236 memset call and initializations no longer necessary.
12237
12238 2017-04-25 Pedro Alves <palves@redhat.com>
12239
12240 * btrace.c (pt_btrace_insn_flags): Change parameter type to
12241 reference.
12242 (pt_btrace_insn): New function.
12243 (ftrace_add_pt): Remove memset call and use pt_btrace_insn.
12244
12245 2017-04-25 Pedro Alves <palves@redhat.com>
12246
12247 * ada-lang.c (ada_catchpoint_location): Now a "class". Remove
12248 "base" field and inherit from "bp_location" instead. Add
12249 non-default ctor.
12250 (allocate_location_exception): Use new non-default ctor.
12251 * breakpoint.c (get_first_locp_gte_addr): Remove memset call.
12252 (init_bp_location): Convert to ...
12253 (bp_location::bp_location): ... this new ctor, and remove memset
12254 call.
12255 (base_breakpoint_allocate_location): Use the new non-default ctor.
12256 * breakpoint.h (bp_location): Now a class. Declare default and
12257 non-default ctors. In-class initialize all members.
12258 (init_bp_location): Remove declaration.
12259
12260 2017-04-25 Pedro Alves <palves@redhat.com>
12261
12262 * common/enum-flags.h (enum_flags): Don't implement copy ctor and
12263 assignment operator.
12264
12265 2017-04-24 Yao Qi <yao.qi@linaro.org>
12266
12267 * doublest.c (convert_doublest_to_floatformat): Call
12268 floatformat_totalsize_bytes.
12269
12270 2017-04-22 Tom Tromey <tom@tromey.com>
12271
12272 * mi/mi-cmd-file.c (mi_cmd_file_list_shared_libraries): Use
12273 ui_out_emit_list.
12274 * stack.c (print_frame): Use ui_out_emit_list.
12275 * mi/mi-symbol-cmds.c (mi_cmd_symbol_list_lines): Use
12276 ui_out_emit_list.
12277 * mi/mi-main.c (print_one_inferior)
12278 (mi_cmd_data_list_register_names)
12279 (mi_cmd_data_list_register_values, mi_cmd_list_features)
12280 (mi_cmd_list_target_features, mi_cmd_trace_frame_collected): Use
12281 ui_out_emit_list.
12282 * mi/mi-interp.c (mi_on_normal_stop_1): Use ui_out_emit_list.
12283 (mi_output_solib_attribs): Use ui_out_emit_list,
12284 ui_out_emit_tuple.
12285 * mi/mi-cmd-var.c (varobj_update_one): Use ui_out_emit_list.
12286 * mi/mi-cmd-stack.c (mi_cmd_stack_list_frames)
12287 (mi_cmd_stack_list_args, list_args_or_locals): Use
12288 ui_out_emit_list.
12289 * disasm.c (do_assembly_only): Use ui_out_emit_list.
12290 * breakpoint.c (print_solib_event, output_thread_groups): Use
12291 ui_out_emit_list.
12292
12293 2017-04-22 Tom Tromey <tom@tromey.com>
12294
12295 * mi/mi-main.c (print_variable_or_computed): Use ui_out_emit_tuple.
12296 * mi/mi-cmd-var.c (varobj_update_one): Use ui_out_emit_tuple.
12297 * mi/mi-cmd-stack.c (list_arg_or_local): Use ui_out_emit_tuple.
12298
12299 2017-04-22 Tom Tromey <tom@tromey.com>
12300
12301 * tracepoint.c (tvariables_info_1)
12302 (print_one_static_tracepoint_marker): Use ui_out_emit_tuple.
12303
12304 2017-04-22 Tom Tromey <tom@tromey.com>
12305
12306 * stack.c (print_frame_arg): Use ui_out_emit_tuple,
12307 annotate_arg_emitter.
12308 * breakpoint.c (print_mention_watchpoint)
12309 (print_mention_masked_watchpoint): Use ui_out_emit_tuple.
12310 * annotate.h (struct annotate_arg_emitter): New.
12311
12312 2017-04-22 Tom Tromey <tom@tromey.com>
12313
12314 * record-btrace.c (record_btrace_insn_history)
12315 (record_btrace_insn_history_range, record_btrace_call_history)
12316 (record_btrace_call_history_range): Use ui_out_emit_tuple.
12317 * thread.c (do_captured_list_thread_ids, print_thread_info_1): Use
12318 ui_out_emit_tuple.
12319 * stack.c (print_frame_info): Use ui_out_emit_tuple.
12320 * solib.c (info_sharedlibrary_command): Use ui_out_emit_tuple.
12321 * skip.c (skip_info): Use ui_out_emit_tuple.
12322 * remote.c (show_remote_cmd): Use ui_out_emit_tuple.
12323 * progspace.c (print_program_space): Use ui_out_emit_tuple.
12324 * probe.c (info_probes_for_ops): Use ui_out_emit_tuple.
12325 * osdata.c (info_osdata): Use ui_out_emit_tuple.
12326 * mi/mi-symbol-cmds.c (mi_cmd_symbol_list_lines): Use
12327 ui_out_emit_tuple.
12328 * mi/mi-main.c (print_one_inferior, list_available_thread_groups)
12329 (output_register, mi_cmd_data_read_memory)
12330 (mi_cmd_data_read_memory_bytes, mi_load_progress)
12331 (mi_cmd_trace_frame_collected): Use ui_out_emit_tuple.
12332 * mi/mi-cmd-var.c (mi_cmd_var_list_children, varobj_update_one):
12333 Use ui_out_emit_tuple.
12334 * mi/mi-cmd-stack.c (mi_cmd_stack_list_args): Use
12335 ui_out_emit_tuple.
12336 * mi/mi-cmd-info.c (mi_cmd_info_ada_exceptions)
12337 (mi_cmd_info_gdb_mi_command): Use ui_out_emit_tuple.
12338 * linux-thread-db.c (info_auto_load_libthread_db): Use
12339 ui_out_emit_tuple.
12340 * inferior.c (print_inferior): Use ui_out_emit_tuple.
12341 * gdb_bfd.c (print_one_bfd): Use ui_out_emit_tuple.
12342 * disasm.c (do_mixed_source_and_assembly_deprecated)
12343 (do_mixed_source_and_assembly): Use ui_out_emit_tuple.
12344 * cp-abi.c (list_cp_abis): Use ui_out_emit_tuple.
12345 * cli/cli-setshow.c (cmd_show_list): Use ui_out_emit_tuple.
12346 * breakpoint.c (print_one_breakpoint_location)
12347 (print_one_breakpoint): Use ui_out_emit_tuple.
12348 * auto-load.c (print_script, info_auto_load_cmd): Use
12349 ui_out_emit_tuple.
12350 * ada-tasks.c (print_ada_task_info): Use ui_out_emit_tuple.
12351
12352 2017-04-21 Simon Marchi <simon.marchi@ericsson.com>
12353
12354 * thread.c (print_thread_info_1): Remove dead code.
12355
12356 2017-04-21 Jan Kratochvil <jan.kratochvil@redhat.com>
12357
12358 * aarch64-tdep.c (selftests::aarch64_process_record_test): Make it #if
12359 GDB_SELF_TEST.
12360 * arm-tdep.c (selftests::arm_record_test): Likewise.
12361
12362 2017-04-21 Yao Qi <yao.qi@linaro.org>
12363
12364 * regcache.c (regcache_restore): Remove argument 2. Replace
12365 argument 3 with regcache. Get register status from
12366 src->register_status and get register contents from
12367 register_buffer (src, regnum).
12368 (regcache_cpy): Update.
12369
12370 2017-04-19 Pedro Alves <palves@redhat.com>
12371
12372 * gdbthread.h (thread): Add missing closing parenthesis in
12373 comment.
12374
12375 2017-04-19 Pedro Alves <palves@redhat.com>
12376
12377 * common/refcounted-object.h: New file.
12378 * gdbthread.h: Include "common/refcounted-object.h".
12379 (thread_info): Inherit from refcounted_object and add comments.
12380 (thread_info::incref, thread_info::decref)
12381 (thread_info::m_refcount): Delete.
12382 (thread_info::deletable): Use the refcounted_object::refcount()
12383 method.
12384 * inferior.c (current_inferior_): Add comment.
12385 (set_current_inferior): Increment/decrement refcounts.
12386 (prune_inferiors, remove_inferior_command): Skip inferiors marked
12387 not-deletable instead of comparing with the current inferior.
12388 (initialize_inferiors): Increment the initial inferior's refcount.
12389 * inferior.h (struct inferior): Forward declare.
12390 Include "common/refcounted-object.h".
12391 (current_inferior, set_current_inferior): Move declaration to
12392 before struct inferior's definition, and fix comment.
12393 (inferior): Inherit from refcounted_object. Add comments.
12394 * thread.c (switch_to_thread_no_regs): Reference the thread's
12395 inferior pointer directly instead of doing a ptid lookup.
12396 (switch_to_no_thread): New function.
12397 (switch_to_thread(thread_info *)): New function, factored out
12398 from ...
12399 (switch_to_thread(ptid_t)): ... this.
12400 (restore_current_thread): Delete.
12401 (current_thread_cleanup): Remove 'inf_id' and 'was_removable'
12402 fields, and add 'inf' field.
12403 (do_restore_current_thread_cleanup): Check whether old->inf is
12404 alive instead of looking up an inferior by ptid. Use
12405 switch_to_thread and switch_to_no_thread.
12406 (restore_current_thread_cleanup_dtor): Use old->inf directly
12407 instead of lookup up an inferior by id. Decref the inferior.
12408 Don't restore 'removable'.
12409 (make_cleanup_restore_current_thread): Same the inferior pointer
12410 in old, instead of the inferior number. Incref the inferior.
12411 Don't save/clear 'removable'.
12412
12413 2017-04-19 Pedro Alves <palves@redhat.com>
12414
12415 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
12416 unittests/scoped_restore-selftests.c.
12417 (SUBDIR_UNITTESTS_OBS): Add scoped_restore-selftests.o.
12418 * common/scoped_restore.h (scoped_restore_base): Make "class".
12419 (scoped_restore_base::release): New public method.
12420 (scoped_restore_base::scoped_restore_base): New protected ctor.
12421 (scoped_restore_base::m_saved_var): New protected field.
12422 (scoped_restore_tmpl::scoped_restore_tmpl(T*)): Initialize the
12423 scoped_restore_base base class instead of m_saved_var directly.
12424 (scoped_restore_tmpl::scoped_restore_tmpl(T*, T2)): Likewise.
12425 (scoped_restore_tmpl::scoped_restore_tmpl(const
12426 scoped_restore_tmpl<T>&)): Likewise.
12427 (scoped_restore_tmpl::~scoped_restore_tmpl): Use the saved_var
12428 method.
12429 (scoped_restore_tmpl::saved_var): New method.
12430 (scoped_restore_tmpl::m_saved_var): Delete.
12431 * inferior.h (inferior::detaching): Now a bool.
12432 * infrun.c (prepare_for_detach): Use a scoped_restore instead of a
12433 cleanup.
12434 * unittests/scoped_restore-selftests.c: New file.
12435
12436 2017-04-19 Pedro Alves <palves@redhat.com>
12437
12438 * Makefile.in (SUBDIR_UNITTESTS_SRCS, SUBDIR_UNITTESTS_OBS):
12439 Re-sort in alphabetic order.
12440
12441 2017-04-18 Pedro Alves <palves@redhat.com>
12442
12443 * xml-support.c (obstack_xml_printf): Delete.
12444 * xml-support.h (obstack_xml_printf): Delete.
12445
12446 2017-04-18 Pedro Alves <palves@redhat.com>
12447
12448 * xml-support.c (gdb_xml_parser) <use_dtd, dtd_name, parse,
12449 vdebug, verror, body_text, start_element, end_element, name,
12450 user_data, set_is_xinclude, set_error, expat_parser>: New methods.
12451 <name, user_data, expat_parser, scopes, error, last_line, dtd_name,
12452 is_xinclude>: Make private and add m_ prefix.
12453 (gdb_xml_parser::body_text): New method, based on ...
12454 (gdb_xml_body_text): ... this. Adjust.
12455 (gdb_xml_parser::vdebug): New method, based on ...
12456 (gdb_xml_debug): ... this. Adjust.
12457 (gdb_xml_parser::verror): New method, based on ...
12458 (gdb_xml_error): ... this. Adjust.
12459 (gdb_xml_parser::start_element): New method, based on ...
12460 (gdb_xml_start_element): ... this. Adjust.
12461 (gdb_xml_start_element_wrapper): Defer to
12462 gdb_xml_parser::start_element and gdb_xml_parser::set_error.
12463 (gdb_xml_parser::end_element): New method, based on ...
12464 (gdb_xml_end_element_wrapper): ... this. Adjust.
12465 (gdb_xml_parser::~gdb_xml_parser): Adjust.
12466 (gdb_xml_parser::gdb_xml_parser): Adjust to field renames.
12467 (gdb_xml_parser::use_dtd): New method, based on ...
12468 (gdb_xml_use_dtd): ... this. Adjust.
12469 (gdb_xml_parser::parse): New method, based on ...
12470 (gdb_xml_parse): ... this. Adjust.
12471 (gdb_xml_parse_quick): Adjust to call the parser's parse method.
12472 (xinclude_start_include): Adjust to call the parser's name method.
12473 (xml_xinclude_default, xml_xinclude_start_doctype)
12474 (xml_xinclude_end_doctype): Adjust to call the parser's user_data
12475 method.
12476 (xml_process_xincludes): Adjust to call parser methods.
12477 * xml-support.h (gdb_xml_use_dtd, gdb_xml_parse): Delete
12478 declarations.
12479
12480 2017-04-18 Pedro Alves <palves@redhat.com>
12481
12482 * tracefile-tfile.c (tfile_write_tdesc): Adjust to use
12483 gdb::optional<std::string>.
12484 * xml-support.c: Include <string>.
12485 (scope_level::scope_level(scope_level &&))
12486 (scope_level::~scope_level): Delete.
12487 (scope_level::body): Now a std::string.
12488 (gdb_xml_body_text, gdb_xml_end_element): Adjust.
12489 (xinclude_parsing_data::xinclude_parsing_data): Add 'output'
12490 parameter.
12491 (xinclude_parsing_data::~xinclude_parsing_data): Delete.
12492 (xinclude_parsing_data::output): Now a std::string reference.
12493 (xinclude_start_include): Adjust.
12494 (xml_xinclude_default): Adjust.
12495 (xml_process_xincludes): Add 'output' parameter, and return bool.
12496 * xml-support.h (xml_process_xincludes): Add 'output' parameter,
12497 and return bool.
12498 * xml-tdesc.c: Include <unordered_map> and <string>.
12499 (tdesc_xml_cache): Delete.
12500 (tdesc_xml_cache_s): Delete.
12501 (xml_cache): Now an std::unordered_map.
12502 (tdesc_parse_xml): Adjust to use std::string and unordered_map.
12503 (target_fetch_description_xml): Change return type to
12504 gdb::optional<std::string>, and adjust.
12505 * xml-tdesc.h: Include "common/gdb_optional.h" and <string>.
12506 (target_fetch_description_xml): Change return type to
12507 gdb::optional<std::string>.
12508
12509 2017-04-18 Pedro Alves <palves@redhat.com>
12510
12511 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
12512 unittests/optional-selftests.c.
12513 (SUBDIR_UNITTESTS_OBS): Add optional-selftests.o.
12514 * unittests/optional-selftests.c: New file.
12515 * unittests/optional/assignment/1.cc: New file.
12516 * unittests/optional/assignment/2.cc: New file.
12517 * unittests/optional/assignment/3.cc: New file.
12518 * unittests/optional/assignment/4.cc: New file.
12519 * unittests/optional/assignment/5.cc: New file.
12520 * unittests/optional/assignment/6.cc: New file.
12521 * unittests/optional/assignment/7.cc: New file.
12522 * unittests/optional/cons/copy.cc: New file.
12523 * unittests/optional/cons/default.cc: New file.
12524 * unittests/optional/cons/move.cc: New file.
12525 * unittests/optional/cons/value.cc: New file.
12526 * unittests/optional/in_place.cc: New file.
12527 * unittests/optional/observers/1.cc: New file.
12528 * unittests/optional/observers/2.cc: New file.
12529
12530 2017-04-18 Pedro Alves <palves@redhat.com>
12531
12532 * common/gdb_optional.h: Include common/traits.h.
12533 (in_place_t): New type.
12534 (in_place): New constexpr variable.
12535 (optional::optional): Remove member initialization of
12536 m_instantiated.
12537 (optional::optional(in_place_t...)): New constructor.
12538 (optional::~optional): Use reset.
12539 (optional::optional(const optional&)): New.
12540 (optional::optional(const optional&&)): New.
12541 (optional::optional(T &)): New.
12542 (optional::optional(T &&)): New.
12543 (operator::operator=(const optional &)): New.
12544 (operator::operator=(optional &&)): New.
12545 (operator::operator= (const T &))
12546 (operator::operator= (T &&))
12547 (operator::emplace (Args &&... args)): Return a T&. Use reset.
12548 (operator::reset): New.
12549 (operator::m_instantiated):: Add in-class initializer.
12550 * common/traits.h: Include <type_traits>.
12551 (struct And): New types.
12552
12553 2017-04-18 Pedro Alves <palves@redhat.com>
12554
12555 * xml-support.c: Include <vector>.
12556 (scope_level::scope_level(const gdb_xml_element *))
12557 (scope_level::scope_level(scope_level&&)): New.
12558 (scope_level::~scope_level): New.
12559 (scope_level_s): Delete.
12560 (gdb_xml_parser::scopes): Now a std::vector.
12561 (gdb_xml_body_text, gdb_xml_start_element, gdb_xml_end_element):
12562 Use std::vector.
12563 (gdb_xml_parser::~gdb_xml_parser): Remove now unnecessary
12564 scope cleanup code.
12565 (gdb_xml_parser::gdb_xml_parser): Remove explicit initialization
12566 of the scopes member. Use std::vector::emplace_back.
12567
12568 2017-04-18 Pedro Alves <palves@redhat.com>
12569
12570 * xml-support.c (gdb_xml_parser): Add ctor/dtor. Make is_xinclude
12571 a bool.
12572 (gdb_xml_end_element): Change type of first parameter.
12573 (gdb_xml_cleanup): Rename to ...
12574 (gdb_xml_parser::~gdb_xml_parser): ... this.
12575 (gdb_xml_create_parser_and_cleanup): Delete with ...
12576 (gdb_xml_parser::gdb_xml_parser): ... creation parts factored out
12577 to this new ctor.
12578 (gdb_xml_parse_quick): Create a local gdb_xml_parser instead of
12579 using gdb_xml_create_parser_and_cleanup.
12580 (xinclude_parsing_data): Add ctor/dtor.
12581 (xml_xinclude_cleanup): Delete.
12582 (xml_process_xincludes): Create a local xinclude_parsing_data
12583 instead of heap-allocating one. Create a local gdb_xml_parser
12584 instead of heap-allocating one with
12585 gdb_xml_create_parser_and_cleanup.
12586
12587 2017-04-18 John Baldwin <jhb@FreeBSD.org>
12588
12589 PR threads/20743
12590 * fbsd-nat.c (resume_one_thread_cb): Remove.
12591 (resume_all_threads_cb): Remove.
12592 (fbsd_resume): Use ALL_NON_EXITED_THREADS instead of
12593 iterate_over_threads.
12594
12595 2017-04-17 Joel Brobecker <brobecker@adacore.com>
12596
12597 * NEWS: Create a new section for the next release branch.
12598 Rename the section of the current branch, now that it has
12599 been cut.
12600
12601 2017-04-17 Joel Brobecker <brobecker@adacore.com>
12602
12603 GDB 8.0 branch created (725bf5cf125783c2a7ca4ab63d3768e220bab2db):
12604 * version.in: Bump version to 8.0.50.DATE-git.
12605
12606 2017-04-13 Sergio Durigan Junior <sergiodj@redhat.com>
12607
12608 PR gdb/21385
12609 * windows-nat.c (windows_create_inferior): Declare 'allargs'
12610 independently of the host, and fix build breakage on Cygwin.
12611
12612 2017-04-13 Pedro Alves <palves@redhat.com>
12613
12614 * inferior.c (free_inferior): Convert to ...
12615 (inferior::~inferior): ... this dtor.
12616 (inferior::inferior): New ctor, factored out from ...
12617 (add_inferior_silent): ... here. Allocate the inferior with a new
12618 expression.
12619 (delete_inferior): Call delete instead of free_inferior.
12620 * inferior.h (gdb_environ, continuation): Forward declare.
12621 (inferior): Now a class. Add in-class initialization to all
12622 members. Make boolean fields bool, except 'detaching'.
12623 (inferior::inferior): New explicit ctor.
12624 (inferior::~inferior): New.
12625
12626 2017-04-13 Pedro Alves <palves@redhat.com>
12627
12628 * inferior.c (init_inferior_list): Delete.
12629 * inferior.h (init_inferior_list): Delete.
12630
12631 2017-04-13 Pedro Alves <palves@redhat.com>
12632
12633 PR threads/13217
12634 * gdb.threads/threadapply.exp (thr_apply_detach): New procedure.
12635 (top level): Call it twice, with different thread sets.
12636
12637 2017-04-13 Pedro Alves <palves@redhat.com>
12638
12639 * thread.c: Include <algorithm>.
12640 (thread_array_cleanup): Delete.
12641 (scoped_inc_dec_ref): New class.
12642 (live_threads_count): New function.
12643 (set_thread_refcount): Delete.
12644 (tp_array_compar_ascending): Now a bool.
12645 (tp_array_compar): Convert to a std::sort comparison function.
12646 (thread_apply_all_command): Use std::vector and scoped_inc_dec_ref
12647 and live_threads_count.
12648
12649 2017-04-13 Pedro Alves <palves@redhat.com>
12650
12651 * infrun.c (follow_fork_inferior): Also switch the current
12652 inferior.
12653
12654 2017-04-13 Pedro Alves <palves@redhat.com>
12655
12656 * breakpoint.c (watch_command_1): Save watchpoint-frame info
12657 before calling create_internal_breakpoint.
12658
12659 2017-04-13 Pedro Alves <palves@redhat.com>
12660
12661 * fork-child.c (execv_argv): New class.
12662 (breakup_args): Refactored as ...
12663 (execv_argv::init_for_no_shell): .. this method of execv_argv.
12664 Copy arguments to storage and replace separators with NULL
12665 terminators in place.
12666 (escape_bang_in_quoted_argument): Adjust to return bool.
12667 (execv_argv::execv_argv): New ctor.
12668 (execv_argv::init_for_shell): New method, factored out from
12669 fork_inferior. Don't strdup strings into the vector.
12670 (fork_inferior): Eliminate "shell" local and use execv_argv. Use
12671 Remove free_vector_argv call.
12672
12673 2017-04-13 Yao Qi <yao.qi@linaro.org>
12674
12675 * rx-tdep.c (rx_fpsw_type): Check tdep->rx_fpsw_type instead of
12676 tdep->rx_psw_type.
12677
12678 2017-04-13 Yao Qi <yao.qi@linaro.org>
12679
12680 * rl78-tdep.c (rl78_gdbarch_init): Use XCNEW instead of XNEW.
12681 * rx-tdep.c (rx_gdbarch_init): Likewise.
12682
12683 2017-04-13 Pedro Alves <palves@redhat.com>
12684
12685 * breakpoint.h (struct breakpoint): Reindent.
12686
12687 2017-04-13 Pedro Alves <palves@redhat.com>
12688
12689 * breakpoint.c (bp_location): Rename to ...
12690 (bp_locations): ... this. All references updated.
12691 (bp_location_count): Rename to ...
12692 (bp_locations_count): ... this. All references updated.
12693 (bp_location_placed_address_before_address_max): Rename to ...
12694 (bp_locations_placed_address_before_address_max): ... this. All
12695 references updated.
12696 (bp_location_shadow_len_after_address_max): Rename to ...
12697 (bp_locations_shadow_len_after_address_max): ... this. All
12698 references updated.
12699 (bp_location_compare_addrs): Rename to ...
12700 (bp_locations_compare_addrs): ... this. All references updated.
12701 (bp_location_compare):Rename to ...
12702 (bp_locations_compare): ... this. All references updated.
12703 (bp_location_target_extensions_update): Rename to ...
12704 (bp_locations_target_extensions_update): ... this. All references
12705 updated.
12706
12707 2017-04-12 Sergio Durigan Junior <sergiodj@redhat.com>
12708
12709 * Makefile.in (HFILES_NO_SRCDIR): Add "common/gdb_termios.h".
12710 * common/common.m4: Check headers 'termios.h', 'termio.h' and
12711 'sgtty.h'.
12712 * common/gdb_termios.h: New file, with parts of "terminal.h".
12713 * inflow.c: Include "gdb_termios.h".
12714 * ser-unix.c: Include "gdb_termios.h".
12715 * terminal.h: Move terminal-related defines to
12716 "common/gdb_termios.h".
12717
12718 2017-04-12 Tom Tromey <tom@tromey.com>
12719
12720 * probe.c (parse_probes): Update.
12721 * location.h (delete_event_location): Don't declare.
12722 (event_location_deleter::operator()): Update.
12723 * location.c (event_location_deleter::operator()): Rename from
12724 delete_event_location.
12725 * linespec.h (linespec_result) <location>: Change type to
12726 event_location_up.
12727 * linespec.c (canonicalize_linespec, event_location_to_sals)
12728 (decode_objc): Update.
12729 (linespec_result): Don't call delete_event_location.
12730 * breakpoint.c (create_breakpoints_sal)
12731 (bkpt_probe_create_sals_from_location)
12732 (strace_marker_create_sals_from_location): Update.
12733
12734 2017-04-12 Tom Tromey <tom@tromey.com>
12735
12736 * linespec.h (struct linespec_result): Add constructor and
12737 destructor.
12738 (init_linespec_result, destroy_linespec_result)
12739 (make_cleanup_destroy_linespec_result): Don't declare.
12740 * linespec.c (init_linespec_result): Remove.
12741 (linespec_result::~linespec_result): Rename from
12742 destroy_linespec_result. Update.
12743 (cleanup_linespec_result, make_cleanup_destroy_linespec_result):
12744 Remove.
12745 * breakpoint.c (create_breakpoint, break_range_command)
12746 (decode_location_default): Update.
12747 * ax-gdb.c (agent_command_1): Update.
12748
12749 2017-04-12 Tom Tromey <tom@tromey.com>
12750
12751 * remote.c (remote_download_tracepoint): Update.
12752 * python/py-breakpoint.c (bppy_get_location): Update.
12753 * guile/scm-breakpoint.c (bpscm_print_breakpoint_smob)
12754 (gdbscm_breakpoint_location): Update.
12755 * elfread.c (elf_gnu_ifunc_resolver_return_stop): Update.
12756 * breakpoint.h (struct breakpoint) <location, location_range_end>:
12757 Change type to event_location_up.
12758 * breakpoint.c (create_overlay_event_breakpoint)
12759 (create_longjmp_master_breakpoint)
12760 (create_std_terminate_master_breakpoint)
12761 (create_exception_master_breakpoint)
12762 (breakpoint_event_location_empty_p, print_breakpoint_location)
12763 (print_one_breakpoint_location, create_thread_event_breakpoint)
12764 (init_breakpoint_sal, create_breakpoint)
12765 (print_recreate_ranged_breakpoint, break_range_command)
12766 (init_ada_exception_breakpoint, say_where): Update.
12767 (base_breakpoint_dtor): Don't call delete_event_location.
12768 (bkpt_print_recreate, tracepoint_print_recreate)
12769 (dprintf_print_recreate, update_static_tracepoint)
12770 (breakpoint_re_set_default): Update.
12771
12772 2017-04-12 Tom Tromey <tom@tromey.com>
12773
12774 * compile/compile-loc2c.c (compute_stack_depth_worker): Change
12775 type of "to_do". Update.
12776 (compute_stack_depth): Use std::vector.
12777
12778 2017-04-12 Tom Tromey <tom@tromey.com>
12779
12780 * printcmd.c (find_instruction_backward): Use std::vector.
12781
12782 2017-04-12 Tom Tromey <tom@tromey.com>
12783
12784 * symfile.c (objfilep): Remove typedef.
12785 (reread_symbols): Use a std::vector.
12786
12787 2017-04-12 Tom Tromey <tom@tromey.com>
12788
12789 * mi/mi-main.c (exec_direction_forward): Remove.
12790 (exec_reverse_continue, mi_execute_command): Use scoped_restore.
12791 * guile/scm-ports.c (ioscm_with_output_to_port_worker): Use
12792 scoped_restore.
12793 * guile/guile.c (guile_repl_command, guile_command)
12794 (gdbscm_execute_gdb_command): Use scoped_restore.
12795 * go-exp.y (go_parse): Use scoped_restore.
12796 * d-exp.y (d_parse): Use scoped_restore.
12797 * cli/cli-decode.c (cmd_func): Use scoped_restore.
12798 * c-exp.y (c_parse): Use scoped_restore.
12799
12800 2017-04-12 Tom Tromey <tom@tromey.com>
12801
12802 * mi/mi-parse.h (struct mi_parse): Add constructor, destructor.
12803 (mi_parse): Update return type.
12804 (mi_parse_free): Remove.
12805 * mi/mi-parse.c (mi_parse::mi_parse): New constructor.
12806 (mi_parse::~mi_parse): Rename from mi_parse_free.
12807 (mi_parse_cleanup): Remove.
12808 (mi_parse): Return a unique_ptr. Use new.
12809 * mi/mi-main.c (mi_execute_command): Update.
12810
12811 2017-04-12 Tom Tromey <tom@tromey.com>
12812
12813 * location.c (explicit_location_lex_one): Return a
12814 unique_xmalloc_ptr.
12815 (string_to_explicit_location): Update. Remove cleanups.
12816
12817 2017-04-12 Tom Tromey <tom@tromey.com>
12818
12819 * gnu-v3-abi.c (value_and_voffset_p): Remove typedef.
12820 (compare_value_and_voffset): Change type. Update.
12821 (compute_vtable_size): Change type of "offset_vec".
12822 (gnuv3_print_vtable): Use std::vector. Remove cleanups.
12823 (gnuv3_get_typeid): Remove extraneous declaration.
12824
12825 2017-04-12 Tom Tromey <tom@tromey.com>
12826
12827 * charset.h (wchar_iterator): Fix comment.
12828
12829 2017-04-12 Tom Tromey <tom@tromey.com>
12830
12831 * charset.c (iconv_wrapper): New class.
12832 (cleanup_iconv): Remove.
12833 (convert_between_encodings): Use it.
12834
12835 2017-04-12 Tom Tromey <tom@tromey.com>
12836
12837 * symfile.h (increment_reading_symtab): Update type.
12838 * symfile.c (decrement_reading_symtab): Remove.
12839 (increment_reading_symtab): Return a scoped_restore_tmpl<int>.
12840 * psymtab.c (psymtab_to_symtab): Update.
12841 * dwarf2read.c (dw2_instantiate_symtab): Update.
12842
12843 2017-04-12 Tom Tromey <tom@tromey.com>
12844
12845 * jit.c (struct jit_reader): Declare separately. Add constructor
12846 and destructor. Change type of "handle".
12847 (loaded_jit_reader): Define separately.
12848 (jit_reader_load): Update. New "new".
12849 (jit_reader_unload_command): Use "delete".
12850 * gdb-dlfcn.h (struct dlclose_deleter): New.
12851 (gdb_dlhandle_up): New typedef.
12852 (gdb_dlopen, gdb_dlsym): Update types.
12853 (gdb_dlclose): Remove.
12854 * gdb-dlfcn.c (gdb_dlopen): Return a gdb_dlhandle_up.
12855 (gdb_dlsym): Change type of "handle".
12856 (make_cleanup_dlclose): Remove.
12857 (dlclose_deleter::operator()): Rename from gdb_dlclose.
12858 * compile/compile-c-support.c (load_libcc): Update.
12859
12860 2017-04-12 Tom Tromey <tom@tromey.com>
12861
12862 * symtab.h (find_pcs_for_symtab_line): Change return type.
12863 * symtab.c (find_pcs_for_symtab_line): Change return type.
12864 * python/py-linetable.c (build_line_table_tuple_from_pcs): Change
12865 type of "vec". Update.
12866 (ltpy_get_pcs_for_line): Update.
12867 * linespec.c (decode_digits_ordinary): Update.
12868
12869 2017-04-12 Tom Tromey <tom@tromey.com>
12870
12871 * tracepoint.c (actions_command): Update.
12872 * python/python.c (python_command, python_interactive_command):
12873 Update.
12874 * mi/mi-cmd-break.c (mi_cmd_break_commands): Update.
12875 * guile/guile.c (guile_command): Update.
12876 * defs.h (read_command_lines, read_command_lines_1): Return
12877 command_line_up.
12878 (command_lines_deleter): New struct.
12879 (command_line_up): New typedef.
12880 * compile/compile.c (compile_code_command)
12881 (compile_print_command): Update.
12882 * cli/cli-script.h (get_command_line, copy_command_lines): Return
12883 command_line_up.
12884 (make_cleanup_free_command_lines): Remove.
12885 * cli/cli-script.c (get_command_line, read_command_lines_1)
12886 (copy_command_lines): Return command_line_up.
12887 (while_command, if_command, read_command_lines, define_command)
12888 (document_command): Update.
12889 (do_free_command_lines_cleanup, make_cleanup_free_command_lines):
12890 Remove.
12891 * breakpoint.h (breakpoint_set_commands): Change type of
12892 "commands".
12893 * breakpoint.c (breakpoint_set_commands): Change type of
12894 "commands". Update.
12895 (do_map_commands_command, update_dprintf_command_list)
12896 (create_tracepoint_from_upload): Update.
12897
12898 2017-04-12 Tom Tromey <tom@tromey.com>
12899
12900 * tracepoint.c (scope_info): Update.
12901 * spu-tdep.c (spu_catch_start): Update.
12902 * python/python.c (gdbpy_decode_line): Update.
12903 * python/py-finishbreakpoint.c (bpfinishpy_init): Update.
12904 * python/py-breakpoint.c (bppy_init): Update.
12905 * probe.c (parse_probes): Update.
12906 * mi/mi-cmd-break.c (mi_cmd_break_insert_1): Update.
12907 * location.h (event_location_deleter): New struct.
12908 (event_location_up): New typedef.
12909 (new_linespec_location, new_address_location, new_probe_location)
12910 (new_explicit_location, copy_event_location)
12911 (string_to_event_location, string_to_event_location_basic)
12912 (string_to_explicit_location): Update return type.
12913 (make_cleanup_delete_event_location): Remove.
12914 * location.c (new_linespec_location, new_address_location)
12915 (new_probe_location, new_explicit_location, copy_event_location):
12916 Return event_location_up.
12917 (delete_event_location_cleanup)
12918 (make_cleanup_delete_event_location): Remove.
12919 (string_to_explicit_location, string_to_event_location_basic)
12920 (string_to_event_location): Return event_location_up.
12921 * linespec.c (canonicalize_linespec, event_location_to_sals)
12922 (decode_line_with_current_source)
12923 (decode_line_with_last_displayed, decode_objc): Update.
12924 * guile/scm-breakpoint.c (gdbscm_register_breakpoint_x): Update.
12925 * completer.c (location_completer): Update.
12926 * cli/cli-cmds.c (edit_command, list_command): Update.
12927 * breakpoint.c (create_overlay_event_breakpoint)
12928 (create_longjmp_master_breakpoint)
12929 (create_std_terminate_master_breakpoint)
12930 (create_exception_master_breakpoint)
12931 (create_thread_event_breakpoint): Update.
12932 (init_breakpoint_sal): Update. Remove some dead code.
12933 (create_breakpoint_sal): Change type of "location". Update.
12934 (create_breakpoints_sal, create_breakpoint, break_command_1)
12935 (dprintf_command, break_range_command, until_break_command)
12936 (init_ada_exception_breakpoint)
12937 (strace_marker_create_sals_from_location)
12938 (update_static_tracepoint, trace_command, ftrace_command)
12939 (strace_command, create_tracepoint_from_upload): Update.
12940 * break-catch-throw.c (re_set_exception_catchpoint): Update.
12941 * ax-gdb.c (agent_command_1): Update.
12942
12943 2017-04-12 Pedro Alves <palves@redhat.com>
12944
12945 * Makefile.in (ALL_TARGET_OBS): Add i386-go32-tdep.o.
12946 * configure.tgt: Handle i[34567]86-*-go32* and
12947 i[34567]86-*-msdosdjgpp*.
12948 * i386-tdep.c (i386_svr4_reg_to_regnum):
12949 Make extern.
12950 (i386_go32_init_abi, i386_coff_osabi_sniffer): Moved to
12951 i386-go32-tdep.c.
12952 (_initialize_i386_tdep): DJGPP bits moved to i386-go32-tdep.c.
12953 * i386-go32-tdep.c: New file.
12954 * i386-tdep.h (tdesc_i386_mmx, i386_svr4_reg_to_regnum): New
12955 declarations.
12956
12957 2017-04-12 Simon Marchi <simon.marchi@ericsson.com>
12958
12959 * aix-thread.c (pd_status2str): Change return type to const char *.
12960
12961 2017-04-12 Pedro Alves <palves@redhat.com>
12962
12963 * i386-tdep.c (i386_elf_init_abi, i386_go32_init_abi): Remove
12964 calls to set_gdbarch_gnu_triplet_regexp.
12965
12966 2017-04-12 Pedro Alves <palves@redhat.com>
12967
12968 PR gdb/21323
12969 * c-lang.c (cplus_primitive_types) <cplus_primitive_type_wchar_t>:
12970 New enum value.
12971 (cplus_language_arch_info): Register cplus_primitive_type_wchar_t.
12972 * gdbtypes.h (struct builtin_type) <builtin_wchar>: New field.
12973 * gdbtypes.c (gdbtypes_post_init): Create the "wchar_t" type.
12974 * gdbarch.sh (wchar_bit, wchar_signed): New per-arch values.
12975 * gdbarch.h, gdbarch.c: Regenerate.
12976 * aarch64-tdep.c (aarch64_gdbarch_init): Override
12977 gdbarch_wchar_bit and gdbarch_wchar_signed.
12978 * alpha-tdep.c (alpha_gdbarch_init): Likewise.
12979 * arm-tdep.c (arm_gdbarch_init): Likewise.
12980 * avr-tdep.c (avr_gdbarch_init): Likewise.
12981 * h8300-tdep.c (h8300_gdbarch_init): Likewise.
12982 * i386-nto-tdep.c (i386nto_init_abi): Likewise.
12983 * i386-tdep.c (i386_go32_init_abi): Likewise.
12984 * m32r-tdep.c (m32r_gdbarch_init): Likewise.
12985 * moxie-tdep.c (moxie_gdbarch_init): Likewise.
12986 * nds32-tdep.c (nds32_gdbarch_init): Likewise.
12987 * rs6000-aix-tdep.c (rs6000_aix_init_osabi): Likewise.
12988 * sh-tdep.c (sh_gdbarch_init): Likewise.
12989 * sparc-tdep.c (sparc32_gdbarch_init): Likewise.
12990 * sparc64-tdep.c (sparc64_init_abi): Likewise.
12991 * windows-tdep.c (windows_init_abi): Likewise.
12992 * xstormy16-tdep.c (xstormy16_gdbarch_init): Likewise.
12993
12994 2017-04-12 Pedro Alves <palves@redhat.com>
12995
12996 PR c++/21323
12997 * c-lang.c (cplus_primitive_types) <cplus_primitive_type_char16_t,
12998 cplus_primitive_type_char32_t>: New enum values.
12999 (cplus_language_arch_info): Register cplus_primitive_type_char16_t
13000 and cplus_primitive_type_char32_t.
13001 * dwarf2read.c (read_base_type) <DW_ATE_UTF>: If bit size is 16 or
13002 32, use the archtecture's built-in type for char16_t and char32_t,
13003 respectively. Otherwise, fallback to init_integer_type as before,
13004 but make the type unsigned, and issue a complaint.
13005 * gdbtypes.c (gdbtypes_post_init): Make char16_t and char32_t unsigned.
13006
13007 2017-04-12 Alan Hayward <alan.hayward@arm.com>
13008
13009 * m32r-tdep.c (M32R_ARG_REGISTER_SIZE): Added.
13010 (m32r_push_dummy_call): Use M32R_ARG_REGISTER_SIZE.
13011
13012 2017-04-12 Sergio Durigan Junior <sergiodj@redhat.com>
13013
13014 * windows-nat.c (windows_create_inferior): Declare 'toexec' as
13015 'const char *'.
13016
13017 2017-04-12 Sergio Durigan Junior <sergiodj@redhat.com>
13018
13019 * common/common-utils.c (free_vector_argv): New function.
13020 * common/common-utils.h: Include <vector>.
13021 (free_vector_argv): New prototype.
13022 * darwin-nat.c (darwin_create_inferior): Rewrite function
13023 prototype in order to constify "exec_file" and accept a
13024 "std::string" for "allargs".
13025 * fork-child.c: Include <vector>.
13026 (breakup_args): Rewrite function, using C++.
13027 (fork_inferior): Rewrite function header, constify "exec_file_arg"
13028 and accept "std::string" for "allargs". Update the code to
13029 calculate "argv" based on "allargs". Update calls to "exec_fun"
13030 and "execvp".
13031 * gnu-nat.c (gnu_create_inferior): Rewrite function prototype in
13032 order to constify "exec_file" and accept a "std::string" for
13033 "allargs".
13034 * go32-nat.c (go32_create_inferior): Likewise.
13035 * inf-ptrace.c (inf_ptrace_create_inferior): Likewise.
13036 * infcmd.c (run_command_1): Constify "exec_file". Use
13037 "std::string" for inferior arguments.
13038 * inferior.h (fork_inferior): Update prototype.
13039 * linux-nat.c (linux_nat_create_inferior): Rewrite function
13040 prototype in order to constify "exec_file" and accept a
13041 "std::string" for "allargs".
13042 * nto-procfs.c (procfs_create_inferior): Likewise.
13043 * procfs.c (procfs_create_inferior): Likewise.
13044 * remote-sim.c (gdbsim_create_inferior): Likewise.
13045 * remote.c (extended_remote_run): Update code to accept
13046 "std::string" as argument.
13047 (extended_remote_create_inferior): Rewrite function prototype in
13048 order to constify "exec_file" and accept a "std::string" for
13049 "allargs".
13050 * rs6000-nat.c (super_create_inferior): Likewise.
13051 (rs6000_create_inferior): Likewise.
13052 * target.h (struct target_ops) <to_create_inferior>: Likewise.
13053 * windows-nat.c (windows_create_inferior): Likewise.
13054
13055 2017-04-11 Pedro Alves <palves@redhat.com>
13056
13057 * thread.c: Fix whitespace throughout.
13058
13059 2017-04-11 Philipp Rudo <prudo@linux.vnet.ibm.com>
13060
13061 * linux-nat.c (linux_nat_detach): Remove delete_lwp call.
13062
13063 2017-04-11 Alan Hayward <alan.hayward@arm.com>
13064
13065 * arm-tdep.c (arm_store_return_value): Use FP_REGISTER_SIZE
13066
13067 2017-04-10 Sergio Durigan Junior <sergiodj@redhat.com>
13068
13069 PR gdb/21364
13070 * osdata.c (info_osdata): Check if 'type' is an empty string
13071 instead of NULL.
13072
13073 2017-04-10 Pedro Alves <palves@redhat.com>
13074
13075 * thread.c (add_thread_silent, delete_thread_1, find_thread_ptid)
13076 (ptid_to_global_thread_id, in_thread_list)
13077 (do_captured_list_thread_ids, set_resumed, set_running)
13078 (set_executing, set_stop_requested, finish_thread_state)
13079 (validate_registers_access, can_access_registers_ptid)
13080 (print_thread_info_1, switch_to_thread)
13081 (do_restore_current_thread_cleanup)
13082 (make_cleanup_restore_current_thread, thread_command)
13083 (thread_name_command): Use operator== instead of ptid_equal.
13084
13085 2017-04-10 Pedro Alves <palves@redhat.com>
13086
13087 * thread.c (struct current_thread_cleanup) <next>: Delete field.
13088 (current_thread_cleanup_chain): Delete.
13089 (restore_current_thread_cleanup_dtor)
13090 (make_cleanup_restore_current_thread): Remove references to
13091 current_thread_cleanup_chain.
13092
13093 2017-04-10 Alan Hayward <alan.hayward@arm.com>
13094
13095 * msp430-tdep.c (msp430_pseudo_register_read): Never return
13096 REG_UNKNOWN.
13097
13098 2017-04-10 Yao Qi <yao.qi@linaro.org>
13099
13100 PR gdb/19942
13101 * gdbthread.h (thread_info::deletable): New method.
13102 (thread_info::incref): New method.
13103 (thread_info::decref): New method.
13104 (thread_info::refcount): Move it to private.
13105 * infrun.c (save_stop_context): Call inc_refcount.
13106 (release_stop_context_cleanup): Likewise.
13107 * thread.c (set_thread_exited): New function.
13108 (init_thread_list): Delete "tp" only it is deletable, otherwise
13109 call set_thread_exited.
13110 (delete_thread_1): Call set_thread_exited.
13111 (current_thread_cleanup) <inferior_pid>: Remove.
13112 <thread>: New field.
13113 (restore_current_thread_ptid_changed): Removed.
13114 (do_restore_current_thread_cleanup): Adjust.
13115 (restore_current_thread_cleanup_dtor): Don't call
13116 find_thread_ptid.
13117 (set_thread_refcount): Use dec_refcount.
13118 (make_cleanup_restore_current_thread): Adjust.
13119 (thread_apply_all_command): Call inc_refcount.
13120 (_initialize_thread): Don't call
13121 observer_attach_thread_ptid_changed.
13122
13123 2017-04-10 Yao Qi <yao.qi@linaro.org>
13124
13125 * thread.c (delete_thread_1): Hoist code on marking thread as
13126 exited.
13127
13128 2017-04-09 Simon Marchi <simon.marchi@polymtl.ca>
13129
13130 * windows-nat.c (windows_detach): Initialize ptid with
13131 minus_one_ptid.
13132
13133 2017-04-07 Simon Marchi <simon.marchi@ericsson.com>
13134
13135 * unittests/ptid-selftests.c: Fix erroneous assert messages.
13136
13137 2017-04-07 Alan Hayward <alan.hayward@arm.com>
13138
13139 * bfin-tdep.c (BFIN_MAX_REGISTER_SIZE): Add.
13140 (bfin_pseudo_register_read): Use BFIN_MAX_REGISTER_SIZE.
13141 (bfin_pseudo_register_write): Likewise
13142
13143 2017-04-06 Simon Marchi <simon.marchi@ericsson.com>
13144
13145 * common/ptid.h (struct ptid): Change to...
13146 (class ptid_t): ... this.
13147 <ptid_t>: New constructors.
13148 <pid, lwp_p, lwp, tid_p, tid, is_pid, operator==, operator!=,
13149 matches>: New methods.
13150 <make_null, make_minus_one>: New static methods.
13151 <pid>: Rename to...
13152 <m_pid>: ...this.
13153 <lwp>: Rename to...
13154 <m_lwp>: ...this.
13155 <tid>: Rename to...
13156 <m_tid>: ...this.
13157 (ptid_build, ptid_get_pid, ptid_get_lwp, ptid_get_tid, ptid_equal,
13158 ptid_is_pid, ptid_lwp_p, ptid_tid_p, ptid_match): Take ptid arguments
13159 as references, move comment to class ptid_t.
13160 * common/ptid.c (null_ptid, minus_one_ptid): Initialize with
13161 ptid_t static methods.
13162 (ptid_build, pid_to_ptid, ptid_get_pid, ptid_get_tid,
13163 ptid_equal, ptid_is_pid, ptid_lwp_p, ptid_tid_p, ptid_match):
13164 Take ptid arguments as references, implement using ptid_t methods.
13165 * unittests/ptid-selftests.c: New file.
13166 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
13167 unittests/ptid-selftests.c.
13168 (SUBDIR_UNITTESTS_OBS): Add unittests/ptid-selftests.o.
13169
13170 2017-04-06 Thomas Preud'homme <thomas.preudhomme@arm.com>
13171
13172 * python/python.c (python_run_simple_file): Cast mode literal to
13173 non-const char pointer as expected by PyFile_FromString.
13174
13175 2017-04-05 Simon Marchi <simon.marchi@ericsson.com>
13176
13177 * common/ptid.c (ptid_lwp_p, ptid_tid_p): Remove comparison with
13178 minus_one_ptid and null_ptid.
13179
13180 2017-04-05 Pedro Alves <palves@redhat.com>
13181
13182 * warning.m4 (build_warnings): Remove -Wno-write-strings.
13183 * configure: Regenerate.
13184
13185 2017-04-05 Pedro Alves <palves@redhat.com>
13186
13187 * ada-exp.y (yyerror): Constify.
13188 * ada-lang.c (bound_name, get_selections)
13189 (ada_variant_discrim_type)
13190 (ada_variant_discrim_name, ada_value_struct_elt)
13191 (ada_lookup_struct_elt_type, is_unchecked_variant)
13192 (ada_which_variant_applies, standard_exc, ada_get_next_arg)
13193 (catch_ada_exception_command_split)
13194 (catch_ada_assert_command_split, catch_assert_command)
13195 (ada_op_name): Constify.
13196 * ada-lang.h (ada_yyerror, get_selections)
13197 (ada_variant_discrim_name, ada_value_struct_elt): Constify.
13198 * arc-tdep.c (arc_print_frame_cache): Constify.
13199 * arm-tdep.c (arm_skip_stub): Constify.
13200 * ax-gdb.c (gen_binop, gen_struct_ref_recursive, gen_struct_ref)
13201 (gen_aggregate_elt_ref): Constify.
13202 * bcache.c (print_bcache_statistics): Constify.
13203 * bcache.h (print_bcache_statistics): Constify.
13204 * break-catch-throw.c (catch_exception_command_1):
13205 * breakpoint.c (struct ep_type_description::description):
13206 Constify.
13207 (add_solib_catchpoint): Constify.
13208 (catch_fork_command_1): Add cast.
13209 (add_catch_command): Constify.
13210 * breakpoint.h (add_catch_command, add_solib_catchpoint):
13211 Constify.
13212 * bsd-uthread.c (bsd_uthread_state): Constify.
13213 * buildsym.c (patch_subfile_names): Constify.
13214 * buildsym.h (next_symbol_text_func, patch_subfile_names):
13215 Constify.
13216 * c-exp.y (yyerror): Constify.
13217 (token::oper): Constify.
13218 * c-lang.h (c_yyerror, cp_print_class_member): Constify.
13219 * c-varobj.c (cplus_describe_child): Constify.
13220 * charset.c (find_charset_names): Add cast.
13221 (find_charset_names): Constify array and add const_cast.
13222 * cli/cli-cmds.c (complete_command, cd_command): Constify.
13223 (edit_command): Constify.
13224 * cli/cli-decode.c (lookup_cmd): Constify.
13225 * cli/cli-dump.c (dump_memory_command, dump_value_command):
13226 Constify.
13227 (struct dump_context): Constify.
13228 (add_dump_command, restore_command): Constify.
13229 * cli/cli-script.c (get_command_line): Constify.
13230 * cli/cli-script.h (get_command_line): Constify.
13231 * cli/cli-utils.c (check_for_argument): Constify.
13232 * cli/cli-utils.h (check_for_argument): Constify.
13233 * coff-pe-read.c (struct read_pe_section_data): Constify.
13234 * command.h (lookup_cmd): Constify.
13235 * common/print-utils.c (decimal2str): Constify.
13236 * completer.c (gdb_print_filename): Constify.
13237 * corefile.c (set_gnutarget): Constify.
13238 * cp-name-parser.y (yyerror): Constify.
13239 * cp-valprint.c (cp_print_class_member): Constify.
13240 * cris-tdep.c (cris_register_name, crisv32_register_name):
13241 Constify.
13242 * d-exp.y (yyerror): Constify.
13243 (struct token::oper): Constify.
13244 * d-lang.h (d_yyerror): Constify.
13245 * dbxread.c (struct header_file_location::name): Constify.
13246 (add_old_header_file, add_new_header_file, last_function_name)
13247 (dbx_next_symbol_text, add_bincl_to_list)
13248 (find_corresponding_bincl_psymtab, set_namestring)
13249 (find_stab_function_addr, read_dbx_symtab, start_psymtab)
13250 (dbx_end_psymtab, read_ofile_symtab, process_one_symbol):
13251 * defs.h (command_line_input, print_address_symbolic)
13252 (deprecated_readline_begin_hook): Constify.
13253 * dwarf2read.c (anonymous_struct_prefix, dwarf_bool_name):
13254 Constify.
13255 * event-top.c (handle_line_of_input): Constify and add cast.
13256 * exceptions.c (catch_errors): Constify.
13257 * exceptions.h (catch_errors): Constify.
13258 * expprint.c (print_subexp_standard, op_string, op_name)
13259 (op_name_standard, dump_raw_expression, dump_raw_expression):
13260 * expression.h (op_name, op_string, dump_raw_expression):
13261 Constify.
13262 * f-exp.y (yyerror): Constify.
13263 (struct token::oper): Constify.
13264 (struct f77_boolean_val::name): Constify.
13265 * f-lang.c (f_word_break_characters): Constify.
13266 * f-lang.h (f_yyerror): Constify.
13267 * fork-child.c (fork_inferior): Add cast.
13268 * frv-tdep.c (struct gdbarch_tdep::register_names): Constify.
13269 (new_variant): Constify.
13270 * gdbarch.sh (pstring_ptr, pstring_list): Constify.
13271 * gdbarch.c: Regenerate.
13272 * gdbcore.h (set_gnutarget): Constify.
13273 * go-exp.y (yyerror): Constify.
13274 (token::oper): Constify.
13275 * go-lang.h (go_yyerror): Constify.
13276 * go32-nat.c (go32_sysinfo): Constify.
13277 * guile/scm-breakpoint.c (gdbscm_breakpoint_expression): Constify.
13278 * guile/scm-cmd.c (cmdscm_function): Constify.
13279 * guile/scm-param.c (pascm_param_value): Constify.
13280 * h8300-tdep.c (h8300_register_name, h8300s_register_name)
13281 (h8300sx_register_name): Constify.
13282 * hppa-tdep.c (hppa32_register_name, hppa64_register_name):
13283 Constify.
13284 * ia64-tdep.c (ia64_register_names): Constify.
13285 * infcmd.c (construct_inferior_arguments): Constify.
13286 (path_command, attach_post_wait): Constify.
13287 * language.c (show_range_command, show_case_command)
13288 (unk_lang_error): Constify.
13289 * language.h (language_defn::la_error)
13290 (language_defn::la_name_of_this): Constify.
13291 * linespec.c (decode_line_2): Constify.
13292 * linux-thread-db.c (thread_db_err_str): Constify.
13293 * lm32-tdep.c (lm32_register_name): Constify.
13294 * m2-exp.y (yyerror): Constify.
13295 * m2-lang.h (m2_yyerror): Constify.
13296 * m32r-tdep.c (m32r_register_names): Constify and make static.
13297 * m68hc11-tdep.c (m68hc11_register_names): Constify.
13298 * m88k-tdep.c (m88k_register_name): Constify.
13299 * macroexp.c (appendmem): Constify.
13300 * mdebugread.c (fdr_name, add_data_symbol, parse_type)
13301 (upgrade_type, parse_external, parse_partial_symbols)
13302 (mdebug_next_symbol_text, cross_ref, mylookup_symbol, new_psymtab)
13303 (new_symbol): Constify.
13304 * memattr.c (mem_info_command): Constify.
13305 * mep-tdep.c (register_name_from_keyword): Constify.
13306 * mi/mi-cmd-env.c (mi_cmd_env_path, _initialize_mi_cmd_env):
13307 Constify.
13308 * mi/mi-cmd-stack.c (list_args_or_locals): Constify.
13309 * mi/mi-cmd-var.c (mi_cmd_var_show_attributes): Constify.
13310 * mi/mi-main.c (captured_mi_execute_command): Constify and add
13311 cast.
13312 (mi_execute_async_cli_command): Constify.
13313 * mips-tdep.c (mips_register_name): Constify.
13314 * mn10300-tdep.c (register_name, mn10300_generic_register_name)
13315 (am33_register_name, am33_2_register_name)
13316 * moxie-tdep.c (moxie_register_names): Constify.
13317 * nat/linux-osdata.c (osdata_type): Constify fields.
13318 * nto-tdep.c (nto_parse_redirection): Constify.
13319 * objc-lang.c (lookup_struct_typedef, lookup_objc_class)
13320 (lookup_child_selector): Constify.
13321 (objc_methcall::name): Constify.
13322 * objc-lang.h (lookup_objc_class, lookup_child_selector)
13323 (lookup_struct_typedef): Constify.
13324 * objfiles.c (pc_in_section): Constify.
13325 * objfiles.h (pc_in_section): Constify.
13326 * p-exp.y (struct token::oper): Constify.
13327 (yyerror): Constify.
13328 * p-lang.h (pascal_yyerror): Constify.
13329 * parser-defs.h (op_name_standard): Constify.
13330 (op_print::string): Constify.
13331 (exp_descriptor::op_name): Constify.
13332 * printcmd.c (print_address_symbolic): Constify.
13333 * psymtab.c (print_partial_symbols): Constify.
13334 * python/py-breakpoint.c (stop_func): Constify.
13335 (bppy_get_expression): Constify.
13336 * python/py-cmd.c (cmdpy_completer::name): Constify.
13337 (cmdpy_function): Constify.
13338 * python/py-event.c (evpy_add_attribute)
13339 (gdbpy_initialize_event_generic): Constify.
13340 * python/py-event.h (evpy_add_attribute)
13341 (gdbpy_initialize_event_generic): Constify.
13342 * python/py-evts.c (add_new_registry): Constify.
13343 * python/py-finishbreakpoint.c (outofscope_func): Constify.
13344 * python/py-framefilter.c (get_py_iter_from_func): Constify.
13345 * python/py-inferior.c (get_buffer): Add cast.
13346 * python/py-param.c (parm_constant::name): Constify.
13347 * python/py-unwind.c (fprint_frame_id): Constify.
13348 * python/python.c (gdbpy_parameter_value): Constify.
13349 * remote-fileio.c (remote_fio_func_map): Make 'name' const.
13350 * remote.c (memory_packet_config::name): Constify.
13351 (show_packet_config_cmd, remote_write_bytes)
13352 (remote_buffer_add_string):
13353 * reverse.c (exec_reverse_once): Constify.
13354 * rs6000-tdep.c (variant::name, variant::description): Constify.
13355 * rust-exp.y (rustyyerror): Constify.
13356 * rust-lang.c (rust_op_name): Constify.
13357 * rust-lang.h (rustyyerror): Constify.
13358 * serial.h (serial_ops::name): Constify.
13359 * sh-tdep.c (sh_sh_register_name, sh_sh3_register_name)
13360 (sh_sh3e_register_name, sh_sh2e_register_name)
13361 (sh_sh2a_register_name, sh_sh2a_nofpu_register_name)
13362 (sh_sh_dsp_register_name, sh_sh3_dsp_register_name)
13363 (sh_sh4_register_name, sh_sh4_nofpu_register_name)
13364 (sh_sh4al_dsp_register_name): Constify.
13365 * sh64-tdep.c (sh64_register_name): Constify.
13366 * solib-darwin.c (lookup_symbol_from_bfd): Constify.
13367 * spu-tdep.c (spu_register_name, info_spu_dma_cmdlist): Constify.
13368 * stabsread.c (patch_block_stabs, read_type_number)
13369 (ref_map::stabs, ref_add, process_reference)
13370 (symbol_reference_defined, define_symbol, define_symbol)
13371 (error_type, read_type, read_member_functions, read_cpp_abbrev)
13372 (read_one_struct_field, read_struct_fields, read_baseclasses)
13373 (read_tilde_fields, read_struct_type, read_array_type)
13374 (read_enum_type, read_sun_builtin_type, read_sun_floating_type)
13375 (read_huge_number, read_range_type, read_args, common_block_start)
13376 (find_name_end): Constify.
13377 * stabsread.h (common_block_start, define_symbol)
13378 (process_one_symbol, symbol_reference_defined, ref_add):
13379 * symfile.c (get_section_index, add_symbol_file_command):
13380 * symfile.h (get_section_index): Constify.
13381 * target-descriptions.c (tdesc_type::name): Constify.
13382 (tdesc_free_type): Add cast.
13383 * target.c (find_default_run_target):
13384 (add_deprecated_target_alias, find_default_run_target)
13385 (target_announce_detach): Constify.
13386 (do_option): Constify.
13387 * target.h (add_deprecated_target_alias): Constify.
13388 * thread.c (print_thread_info_1): Constify.
13389 * top.c (deprecated_readline_begin_hook, command_line_input):
13390 Constify.
13391 (init_main): Add casts.
13392 * top.h (handle_line_of_input): Constify.
13393 * tracefile-tfile.c (tfile_write_uploaded_tsv): Constify.
13394 * tracepoint.c (tvariables_info_1, trace_status_mi): Constify.
13395 (tfind_command): Rename to ...
13396 (tfind_command_1): ... this and constify.
13397 (tfind_command): New function.
13398 (tfind_end_command, tfind_start_command): Adjust.
13399 (encode_source_string): Constify.
13400 * tracepoint.h (encode_source_string): Constify.
13401 * tui/tui-data.c (tui_partial_win_by_name): Constify.
13402 * tui/tui-data.h (tui_partial_win_by_name): Constify.
13403 * tui/tui-source.c (tui_set_source_content_nil): Constify.
13404 * tui/tui-source.h (tui_set_source_content_nil): Constify.
13405 * tui/tui-win.c (parse_scrolling_args): Constify.
13406 * tui/tui-windata.c (tui_erase_data_content): Constify.
13407 * tui/tui-windata.h (tui_erase_data_content): Constify.
13408 * tui/tui-winsource.c (tui_erase_source_content): Constify.
13409 * tui/tui.c (tui_enable): Add cast.
13410 * utils.c (defaulted_query): Constify.
13411 (init_page_info): Add cast.
13412 (puts_debug, subset_compare): Constify.
13413 * utils.h (subset_compare): Constify.
13414 * varobj.c (varobj_format_string): Constify.
13415 * varobj.h (varobj_format_string): Constify.
13416 * vax-tdep.c (vax_register_name): Constify.
13417 * windows-nat.c (windows_detach): Constify.
13418 * xcoffread.c (process_linenos, xcoff_next_symbol_text): Constify.
13419 * xml-support.c (gdb_xml_end_element): Constify.
13420 * xml-tdesc.c (tdesc_start_reg): Constify.
13421 * xstormy16-tdep.c (xstormy16_register_name): Constify.
13422 * xtensa-tdep.c (xtensa_find_register_by_name): Constify.
13423 * xtensa-tdep.h (xtensa_register_t::name): Constify.
13424
13425 2017-04-05 Pedro Alves <palves@redhat.com>
13426
13427 * proc-api.c (struct trans): Constify.
13428 (procfs_note): Constify.
13429 * proc-events.c (struct trans, syscall_table):
13430 * proc-flags.c (struct trans): Constify.
13431 * proc-utils.h (procfs_note): Constify.
13432 * proc-why.c (struct trans): Constify.
13433 * procfs.c (dead_procinfo, find_syscall, proc_warn, proc_error)
13434 (procfs_detach): Constify.
13435 * sol-thread.c (struct string_map): Constify.
13436 (td_err_string, td_state_string): Constify.
13437
13438 2017-04-05 Pedro Alves <palves@redhat.com>
13439
13440 * proc-api.c (procfs_filename): Don't initialize
13441 procfs_filename.
13442 (prepare_to_trace): Assume procfs_filename is non-NULL.
13443 (_initialize_proc_api): Give procfs_filename a default value here.
13444
13445 2017-04-05 Pedro Alves <palves@redhat.com>
13446
13447 * break-catch-throw.c (handle_gnu_v3_exceptions): Constify
13448 'cond_string' parameter.
13449 (extract_exception_regexp): Constify 'string' parameter.
13450 (catch_exception_command_1): Constify.
13451 * breakpoint.c (init_catchpoint)
13452 (create_fork_vfork_event_catchpoint): Constify 'cond_string'
13453 parameter.
13454 (ep_parse_optional_if_clause, catch_fork_command_1)
13455 (catch_exec_command_1): Constify.
13456 * breakpoint.h (init_catchpoint): Constify 'cond_string'
13457 parameter.
13458 (ep_parse_optional_if_clause): Constify.
13459 * cli/cli-utils.c (remove_trailing_whitespace)
13460 (check_for_argument): Constify.
13461 * cli/cli-utils.h (remove_trailing_whitespace): Constify and add
13462 non-const overload.
13463 (check_for_argument): Likewise.
13464
13465 2017-04-05 Pedro Alves <palves@redhat.com>
13466
13467 * event-top.c (command_line_handler): Add cast to execute_command
13468 call.
13469 * record-btrace.c (cmd_record_btrace_bts_start)
13470 (cmd_record_btrace_pt_start, cmd_record_btrace_start)
13471 (cmd_record_btrace_start): Add cast to execute_command call.
13472 * record-full.c (record_full_goto_insn):
13473 * record.c (record_start, record_stop): Add cast to
13474 execute_command_to_string calls.
13475 (cmd_record_start): Add cast to execute_command calls.
13476
13477 2017-04-05 Pedro Alves <palves@redhat.com>
13478
13479 * python/python-internal.h (gdb_PyArg_ParseTupleAndKeywords): New
13480 static inline function.
13481 * python/py-arch.c (archpy_disassemble): Constify 'keywords'
13482 array and use gdb_PyArg_ParseTupleAndKeywords.
13483 * python/py-cmd.c (cmdpy_init): Likewise.
13484 * python/py-finishbreakpoint.c (bpfinishpy_init): Likewise.
13485 * python/py-inferior.c (infpy_read_memory, infpy_write_memory)
13486 (infpy_search_memory): Likewise.
13487 * python/py-objfile.c (objfpy_add_separate_debug_file)
13488 (gdbpy_lookup_objfile): Likewise.
13489 * python/py-symbol.c (gdbpy_lookup_symbol)
13490 (gdbpy_lookup_global_symbol): Likewise.
13491 * python/py-type.c (gdbpy_lookup_type): Likewise.
13492 * python/py-value.c (valpy_lazy_string, valpy_string): Likewise.
13493 * python/python.c (execute_gdb_command, gdbpy_write, gdbpy_flush):
13494 Likewise.
13495
13496 2017-04-05 Pedro Alves <palves@redhat.com>
13497
13498 * python/python-internal.h (gdb_PyGetSetDef): New type.
13499 * python/py-block.c (block_object_getset)
13500 (breakpoint_object_getset): Now a gdb_PyGetSetDef array.
13501 * python/py-event.c (event_object_getset)
13502 (finish_breakpoint_object_getset): Likewise.
13503 * python/py-inferior.c (inferior_object_getset): Likewise.
13504 * python/py-infthread.c (thread_object_getset): Likewise.
13505 * python/py-lazy-string.c (lazy_string_object_getset): Likewise.
13506 * python/py-linetable.c (linetable_entry_object_getset): Likewise.
13507 * python/py-objfile.c (objfile_getset): Likewise.
13508 * python/py-progspace.c (pspace_getset): Likewise.
13509 * python/py-record-btrace.c (btpy_insn_getset, btpy_call_getset):
13510 Likewise.
13511 * python/py-record.c (recpy_record_getset): Likewise.
13512 * python/py-symbol.c (symbol_object_getset): Likewise.
13513 * python/py-symtab.c (symtab_object_getset, sal_object_getset):
13514 Likewise.
13515 * python/py-type.c (type_object_getset, field_object_getset):
13516 Likewise.
13517 * python/py-value.c (value_object_getset): Likewise.
13518
13519 2017-04-05 Pedro Alves <palves@redhat.com>
13520
13521 * python/python-internal.h (gdb_PyObject_CallMethod)
13522 (gdb_PyErr_NewException, gdb_PySys_GetObject, gdb_PySys_SetPath):
13523 New functions.
13524 (GDB_PYSYS_SETPATH_CHAR, PyObject_CallMethod, PyErr_NewException)
13525 (PySys_GetObject, PySys_SetPath): New macros.
13526
13527 2017-04-05 Pedro Alves <palves@redhat.com>
13528
13529 * mi/mi-cmd-info.c (mi_cmd_info_os): Call info_osdata instead of
13530 info_osdata_command.
13531 * osdata.c (info_osdata_command): Rename to ...
13532 (info_osdata): ... this. Constify 'type' parameter, and remove
13533 the 'from_tty' parameter. Accept NULL TYPE.
13534 (info_osdata_command): New function.
13535 * osdata.h (info_osdata_command): Remove declaration.
13536 (info_osdata): New declaration.
13537
13538 2017-04-05 Pedro Alves <palves@redhat.com>
13539
13540 * mi/mi-cmd-break.c (mi_cmd_break_insert_1, mi_cmd_break_insert)
13541 (mi_cmd_dprintf_insert, mi_cmd_break_passcount)
13542 (mi_cmd_break_watch, mi_cmd_break_commands): Constify 'command'
13543 parameter.
13544 * mi/mi-cmd-catch.c (mi_cmd_catch_assert, mi_cmd_catch_exception)
13545 (mi_cmd_catch_load, mi_cmd_catch_unload): Constify cmd' parameter.
13546 * mi/mi-cmd-disas.c (mi_cmd_disassemble): Constify 'command'
13547 parameter.
13548 * mi/mi-cmd-env.c (mi_cmd_env_pwd, mi_cmd_env_cd, mi_cmd_env_path)
13549 (mi_cmd_env_dir, mi_cmd_inferior_tty_set, _cmd_inferior_tty_show)
13550 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_file)
13551 (mi_cmd_file_list_exec_source_files)
13552 (mi_cmd_file_list_shared_libraries): Constify 'command' parameter.
13553 * mi/mi-cmd-info.c (mi_cmd_info_ada_exceptions)
13554 (mi_cmd_info_gdb_mi_command, mi_cmd_info_os): Constify 'command'
13555 parameter.
13556 * mi/mi-cmd-stack.c (mi_cmd_enable_frame_filters)
13557 (mi_cmd_stack_list_frames, mi_cmd_stack_info_depth)
13558 (mi_cmd_stack_list_locals, mi_cmd_stack_list_args)
13559 (mi_cmd_stack_list_variables, mi_cmd_stack_select_frame)
13560 (mi_cmd_stack_info_frame): Constify 'command' parameter.
13561 * mi/mi-cmd-target.c (mi_cmd_target_file_get)
13562 (mi_cmd_target_file_put, mi_cmd_target_file_delete): Constify
13563 'command' parameter.
13564 * mi/mi-cmd-var.c (mi_cmd_var_create, mi_cmd_var_delete)
13565 (mi_cmd_var_set_format, mi_cmd_var_set_visualizer)
13566 (mi_cmd_var_set_frozen, mi_cmd_var_show_format)
13567 (mi_cmd_var_info_num_children, mi_cmd_var_list_children)
13568 (mi_cmd_var_info_type, mi_cmd_var_info_path_expression)
13569 (mi_cmd_var_info_expression, mi_cmd_var_show_attributes)
13570 (mi_cmd_var_evaluate_expression, mi_cmd_var_assign)
13571 (mi_cmd_var_update, mi_cmd_enable_pretty_printing)
13572 (mi_cmd_var_set_update_range): Constify 'command' parameter.
13573 * mi/mi-cmds.h (mi_cmd_argv_ftype): Constify 'command' parameter.
13574 * mi/mi-interp.c (mi_cmd_interpreter_exec): Constify 'command'
13575 parameter.
13576 * mi/mi-main.c (mi_cmd_gdb_exit, mi_cmd_exec_next)
13577 (mi_cmd_exec_next_instruction, mi_cmd_exec_step)
13578 (mi_cmd_exec_step_instruction, mi_cmd_exec_finish)
13579 (mi_cmd_exec_return ,mi_cmd_exec_jump, mi_cmd_exec_continue)
13580 (mi_cmd_exec_interrupt, mi_cmd_exec_run, mi_cmd_target_detach)
13581 (mi_cmd_target_flash_erase, mi_cmd_thread_select)
13582 (mi_cmd_thread_list_ids, mi_cmd_thread_info)
13583 (mi_cmd_list_thread_groups, mi_cmd_data_list_register_names)
13584 (mi_cmd_data_list_changed_registers)
13585 (mi_cmd_data_write_register_values)
13586 (mi_cmd_data_evaluate_expression, mi_cmd_data_read_memory)
13587 (mi_cmd_data_read_memory_bytes, mi_cmd_data_write_memory)
13588 (mi_cmd_data_write_memory_bytes, mi_cmd_enable_timings)
13589 (mi_cmd_list_features, mi_cmd_list_target_features)
13590 (mi_cmd_add_inferior, mi_cmd_remove_inferior)
13591 (mi_cmd_trace_define_variable, mi_cmd_trace_list_variables)
13592 (mi_cmd_trace_find, mi_cmd_trace_save, mi_cmd_trace_start)
13593 (mi_cmd_trace_status, mi_cmd_trace_stop, mi_cmd_ada_task_info)
13594 (mi_cmd_trace_frame_collected): Constify 'command'
13595 parameter.
13596 * mi/mi-symbol-cmds.c (mi_cmd_symbol_list_lines): Constify
13597 'command' parameter.
13598
13599 2017-04-05 Pedro Alves <palves@redhat.com>
13600
13601 * ada-lang.c (ada_completer_word_break_characters): Now a const
13602 array.
13603 (ada_get_gdb_completer_word_break_characters): Constify.
13604 * completer.c (gdb_completer_command_word_break_characters)
13605 (gdb_completer_file_name_break_characters)
13606 (gdb_completer_quote_characters): Now const arrays.
13607 (get_gdb_completer_quote_characters): Constify.
13608 (set_rl_completer_word_break_characters): New function.
13609 (set_gdb_completion_word_break_characters)
13610 (complete_line_internal): Use it.
13611 * completer.h (get_gdb_completer_quote_characters): Constify.
13612 (set_rl_completer_word_break_characters): Declare.
13613 * f-lang.c (f_word_break_characters): Constify.
13614 * language.c (default_word_break_characters): Constify.
13615 * language.h (language_defn::la_word_break_characters): Constify.
13616 (default_word_break_characters): Constify.
13617 * top.c (init_main): Use set_rl_completer_word_break_characters.
13618
13619 2017-04-05 Pedro Alves <palves@redhat.com>
13620
13621 * aix-thread.c (aix_thread_pid_to_str)
13622 (aix_thread_extra_thread_info): Constify.
13623 * bsd-kvm.c (bsd_kvm_pid_to_str): Constify.
13624 * bsd-uthread.c (bsd_uthread_extra_thread_info)
13625 (bsd_uthread_pid_to_str): Constify.
13626 * corelow.c (core_pid_to_str): Constify.
13627 * darwin-nat.c (darwin_pid_to_str): Constify.
13628 * fbsd-nat.c (fbsd_pid_to_str): Constify.
13629 * fbsd-tdep.c (fbsd_core_pid_to_str, gdbarch_core_pid_to_str):
13630 Constify.
13631 * gnu-nat.c (gnu_pid_to_str): Constify.
13632 * go32-nat.c (go32_pid_to_str): Constify.
13633 * i386-cygwin-tdep.c (i386_windows_core_pid_to_str): Constify.
13634 * inf-ptrace.c (inf_ptrace_pid_to_str): Constify.
13635 * inferior.c (inferior_pid_to_str): Constify.
13636 * linux-nat.c (linux_nat_pid_to_str): Constify.
13637 * linux-tdep.c (linux_core_pid_to_str): Constify.
13638 * linux-thread-db.c (thread_db_pid_to_str)
13639 (thread_db_extra_thread_info): Constify.
13640 * nto-tdep.c (nto_extra_thread_info): Constify.
13641 * nto-tdep.h (nto_extra_thread_info): Constify.
13642 * obsd-nat.c (obsd_pid_to_str): Constify.
13643 * procfs.c (procfs_pid_to_str): Constify.
13644 * ravenscar-thread.c (ravenscar_extra_thread_info)
13645 (ravenscar_pid_to_str): Constify.
13646 * remote-sim.c (gdbsim_pid_to_str): Constify.
13647 * remote.c (remote_threads_extra_info, remote_pid_to_str):
13648 Constify.
13649 * sol-thread.c (solaris_pid_to_str): Constify.
13650 * sol2-tdep.c (sol2_core_pid_to_str): Constify.
13651 * sol2-tdep.h (sol2_core_pid_to_str): Constify.
13652 * target.c (default_pid_to_str, target_pid_to_str)
13653 (normal_pid_to_str, default_pid_to_str): Constify.
13654 * target.h (target_ops::to_pid_to_str)
13655 (target_ops::to_extra_thread_info): Constify.
13656 (target_pid_to_str, normal_pid_to_str): Constify.
13657 * windows-nat.c (windows_pid_to_str): Constify.
13658 * gdbarch.sh (core_pid_to_str): Constify.
13659 * target-delegates.c: Regenerate.
13660 * gdbarch.h, gdbarch.c: Regenerate.
13661
13662 2017-04-05 Pedro Alves <palves@redhat.com>
13663
13664 * main.c (captured_main_1): Use gdb::unique_xmalloc_ptr to manage
13665 the memory of the temporary warning_pre_print override.
13666 * utils.c (warning_pre_print): Constify.
13667 * utils.h (warning_pre_print): Constify.
13668
13669 2017-04-05 Pedro Alves <palves@redhat.com>
13670
13671 * cli/cli-cmds.c (shell_escape): Constify 'arg' parameter.
13672 (shell_command): New function.
13673 (make_command): Use std::string.
13674 (init_cli_cmds): Register shell_command instead of shell_escape.
13675
13676 2017-04-05 Pedro Alves <palves@redhat.com>
13677
13678 * breakpoint.c (dprintf_function, dprintf_channel): Don't initialize.
13679 * tracepoint.c (default_collect): Don't initialize.
13680
13681 2017-04-05 Pedro Alves <palves@redhat.com>
13682
13683 * macroexp.c (macro_buffer::shared): Now a bool.
13684 (init_buffer): Update.
13685 (init_shared_buffer): Constify 'addr' parameter.
13686 (substitute_args, expand, macro_expand, macro_expand_next): Remove
13687 casts.
13688
13689 2017-04-05 Pedro Alves <palves@redhat.com>
13690
13691 * arm-tdep.c (show_disassembly_style_sfunc): Constify local.
13692 * disasm.c (set_disassembler_options): Constify local.
13693 * i386-tdep.c (i386_print_insn): Remove cast and FIXME comment.
13694
13695 2017-04-05 Sergio Durigan Junior <sergiodj@redhat.com>
13696
13697 PR gdb/21352
13698 * tracefile.c (tsave_command): Fix argument parsing for '-r'
13699 option.
13700
13701 2017-04-05 Yao Qi <yao.qi@linaro.org>
13702
13703 * frame.c (frame_unwind_register_unsigned): Call
13704 frame_unwind_register_value.
13705
13706 2017-04-05 Yao Qi <yao.qi@linaro.org>
13707
13708 * gdb.threads/thread-specific-bp.exp (check_thread_specific_breakpoint):
13709 Use gdb_test_multiple, and don't match anchor.
13710
13711 2017-04-05 Pedro Alves <palves@redhat.com>
13712
13713 * MAINTAINERS (Global Maintainers): Add Simon Marchi.
13714 (Write After Approval): Remove Simon Marchi.
13715
13716 2017-04-05 Pedro Alves <palves@redhat.com>
13717
13718 * common/gdb_optional.h (optional::optional): Make constexpr and
13719 initialize m_dummy.
13720
13721 2017-04-04 John Baldwin <jhb@FreeBSD.org>
13722
13723 * amd64-fbsd-tdep.c: Remove "bsd-uthread.h" include.
13724 (amd64fbsd_jmp_buf_reg_offset): Remove.
13725 (amd64fbsd_supply_uthread): Remove function.
13726 (amd64fbsd_collect_uthread): Remove function.
13727 (amd64fbsd_init_abi): Don't set bsd-uthread callbacks.
13728 * configure.tgt (i[34567]86-*-freebsd*): Remove bsd-uthread.o.
13729 (x86_64-*-freebsd*): Remove bsd-uthread.o.
13730 (fbsd-nat.c): Update comment.
13731 * i386-fbsd-tdep.c: Remove "bsd-uthread.h" include.
13732 (i386fbsd_jmp_buf_reg_offset): Remove.
13733 (i386fbsd_supply_uthread): Remove function.
13734 (i386fbsd_collect_uthread): Remove function.
13735 (i386fbsd_init_abi): Don't set bsd-uthread callbacks.
13736
13737 2017-04-04 John Baldwin <jhb@FreeBSD.org>
13738
13739 * Makefile.in (ALL_64_TARGET_OBS): Remove alpha-fbsd-tdep.o.
13740 (ALLDEPFILES): Remove alpha-fbsd-tdep.c
13741 * NEWS: Mention that support for FreeBSD/alpha was removed.
13742 * alpha-fbsd-tdep.c: Delete file.
13743 * config/alpha/fbsd.mh: Delete file.
13744 * configure.host: Delete alpha*-*-freebsd* and
13745 alpha*-*-kfreebsd*-gnu.
13746 * configure.tgt: Delete alpha*-*-freebsd* and
13747 alpha*-*-kfreebsd*-gnu.
13748
13749 2017-04-04 John Baldwin <jhb@FreeBSD.org>
13750
13751 * amd64-bsd-nat.c (amd64bsd_fetch_inferior_registers,
13752 amd64bsd_store_inferior_registers): Use ptid from regcache.
13753
13754 2017-04-04 Pedro Alves <palves@redhat.com>
13755
13756 * dwarf2read.c (lnp_state_machine): Now a class. Initialize all
13757 data fields, make them private and add "m_" prefixes.
13758 (lnp_state_machine::lnp_state_machine): New ctor.
13759 (record_line, check_line_address, handle_set_discriminator)
13760 (handle_set_address, handle_advance_pc, handle_special_opcode)
13761 (handle_advance_line, handle_set_file, handle_negate_stmt)
13762 (handle_const_add_pc, handle_fixed_advance_pc, handle_copy)
13763 (end_sequence, advance_line): New methods.
13764 (m_gdbarch, m_record_lines_p): New fields.
13765 (lnp_reader_state): Delete.
13766 (dwarf_record_line): Rename to ...
13767 (lnp_state_machine::record_line): ... adjust.
13768 (init_lnp_state_machine): Delete.
13769 (lnp_state_machine::lnp_state_machine): New.
13770 (check_line_address): Rename to ...
13771 (lnp_state_machine::check_line_address): This.
13772 (dwarf_decode_lines_1): Remove reference to "reader_state".
13773 Adjust lnp_state_machine having a non-default ctor. Use bool.
13774 State machine internal state manipulation moved to
13775 lnp_state_machine methods.
13776
13777 2017-04-04 Pedro Alves <palves@redhat.com>
13778
13779 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
13780 unittests/offset-type-selftests.c.
13781 (SUBDIR_UNITTESTS_OBS): Add offset-type-selftests.o.
13782 * common/offset-type.h: New file.
13783 * common/preprocessor.h: New file.
13784 * common/traits.h: New file.
13785 * common/valid-expr.h: New file.
13786 * dwarf2expr.c: Include "common/underlying.h". Adjust to use
13787 sect_offset and cu_offset strong typedefs throughout.
13788 * dwarf2expr.h: Adjust to use sect_offset and cu_offset strong
13789 typedefs throughout.
13790 * dwarf2loc.c: Include "common/underlying.h". Adjust to use
13791 sect_offset and cu_offset strong typedefs throughout.
13792 * dwarf2read.c: Adjust to use sect_offset and cu_offset strong
13793 typedefs throughout.
13794 * gdbtypes.h: Include "common/offset-type.h".
13795 (cu_offset): Now an offset type (strong typedef) instead of a
13796 struct.
13797 (sect_offset): Likewise.
13798 (union call_site_parameter_u): Rename "param_offset" field to
13799 "param_cu_off".
13800 * unittests/offset-type-selftests.c: New file.
13801
13802 2017-04-04 Pedro Alves <palves@redhat.com>
13803
13804 * common/underlying.h: New file.
13805 * dwarf2read.c: Include "common/gdb_optional.h" and
13806 "common/underlying.h".
13807 (dir_index, file_name_index): New types.
13808 (file_entry): Use them.
13809 (file_entry::include): Use to_underlying.
13810 (line_header::add_file_name): Use dir_index.
13811 (read_formatted_entries): Use gdb::optional. Read form before
13812 writting to file_entry.
13813 (dwarf_decode_line_header): Use dir_index.
13814 (lnp_state_machine::current_file): Use to_underlying.
13815 (lnp_state_machine::file): Change type to file_name_index.
13816 (dwarf_record_line): Use to_underlying.
13817 (init_lnp_state_machine): Use file_name_index.
13818 (dwarf_decode_lines_1): Use dir_index and file_name_index.
13819
13820 2017-04-04 Pedro Alves <palves@redhat.com>
13821
13822 * common/gdb_optional.h (gdb::optiona): Add operator->, operator*,
13823 operator bool, has_value and get methods.
13824
13825 2017-04-04 Pedro Alves <palves@redhat.com>
13826
13827 * dwarf2read.c (struct file_entry): Add ctors, and initialize all
13828 fields.
13829 (line_header): Initialize all data fields. Change type of
13830 standard_opcode_lengths to std::unique_ptr<unsigned char[]>.
13831 Change type of include_dirs to std::vector<const char *>. Remove
13832 num_include_dirs, include_dirs_size. Change type of file_names to
13833 std::vector<file_entry>. Remove num_file_names, file_names_size.
13834 (line_header::line_header): New.
13835 (line_header::add_include_dir, line_header::add_file_name): New
13836 methods.
13837 (line_header::include_dir_at): Remove NULL check.
13838 (line_header::file_name_at): Add const overload.
13839 (line_header_up): New unique_ptr typedef.
13840 (dw2_get_file_names_reader): Use line_header_up. Adjust to use
13841 std::vector. Remove free_line_header call.
13842 (dwarf2_build_include_psymtabs): Use line_header_up. Remove
13843 free_line_header call.
13844 (free_cu_line_header): Delete.
13845 (handle_DW_AT_stmt_list, handle_DW_AT_stmt_list)
13846 (setup_type_unit_groups): Use line_header_up instead of cleanups.
13847 Adjust to use std::vector.
13848 (free_line_header): Delete.
13849 (free_line_header_voidp): Use delete.
13850 (add_include_dir): Replace with ...
13851 (line_header::add_include_dir): ... this method. Use std::vector.
13852 (add_file_name): Replace with ...
13853 (line_header::add_file_name): ... this method. Use std::vector.
13854 (add_include_dir_stub): Delete.
13855 (read_formatted_entries): Remove memset.
13856 (dwarf_decode_line_header): Return a line_header_up instead of a
13857 raw pointer. Remove cleanup handling. Pass lambdas to
13858 read_formatted_entries. Adjust to use line_header methods.
13859 (dwarf_decode_lines_1): Adjust to use line_header methods.
13860 (dwarf_decode_lines, file_file_name, file_full_name): Adjust to
13861 use std::vector.
13862
13863 2017-04-04 Simon Marchi <simon.marchi@polymtl.ca>
13864
13865 * remote.c (set_general_thread, set_continue_thread): Use ptid_t
13866 instead of struct ptid.
13867
13868 2017-05-04 Alan Hayward <alan.hayward@arm.com>
13869
13870 * frame.c (get_frame_register_bytes): Unwind using value.
13871 (put_frame_register_bytes): Likewise.
13872
13873 2017-03-30 Iain Buclaw <ibuclaw@gdcproject.org>
13874
13875 * d-exp.y (type_aggregate_p): Treat TYPE_CODE_MODULE as being
13876 aggregate-like.
13877
13878 2017-03-29 Jan Kratochvil <jan.kratochvil@redhat.com>
13879
13880 * auto-load.c (auto_load_section_scripts): Check SEC_HAS_CONTENTS.
13881
13882 2017-03-29 Yao Qi <yao.qi@linaro.org>
13883
13884 * gdbthread.h (struct thread_info): Declare constructor and
13885 destructor. Add some in-class member initializers.
13886 * thread.c (free_thread): Remove.
13887 (init_thread_list): Call delete instead of free_thread.
13888 (new_thread): Call thread_info constructor.
13889 (thread_info::thread_info): New function.
13890 (thread_info::~thread_info): New function.
13891 (delete_thread_1): Call delete instead of free_thread.
13892 (make_cleanup_restore_current_thread): Move tp and frame to
13893 inner block.
13894
13895 2017-03-28 Anton Kolesov <anton.kolesov@synopsys.com>
13896
13897 * arc-tdep.c (arc_frame_cache): Add support for prologue analysis.
13898 (arc_skip_prologue): Likewise.
13899 (arc_make_frame_cache): Likewise.
13900 (arc_pv_get_operand): New function.
13901 (arc_is_in_prologue): Likewise.
13902 (arc_analyze_prologue): Likewise.
13903 (arc_print_frame_cache): Likewise.
13904 (MAX_PROLOGUE_LENGTH): New constant.
13905
13906 2017-03-28 Anton Kolesov <anton.kolesov@synopsys.com>
13907
13908 * configure.tgt: Add arc-insn.o.
13909 * arc-tdep.c (arc_delayed_print_insn): Make non-static.
13910 (dump_arc_instruction_command): New function.
13911 (arc_fprintf_disasm): Likewise.
13912 (arc_disassemble_info): Likewise.
13913 (arc_insn_get_operand_value): Likewise.
13914 (arc_insn_get_operand_value_signed): Likewise.
13915 (arc_insn_get_memory_base_reg): Likewise.
13916 (arc_insn_get_memory_offset): Likewise.
13917 (arc_insn_get_branch_target): Likewise.
13918 (arc_insn_dump): Likewise.
13919 (arc_insn_get_linear_next_pc): Likewise.
13920 * arc-tdep.h (arc_delayed_print_insn): Add function declaration.
13921 (arc_disassemble_info): Likewise.
13922 (arc_insn_get_branch_target): Likewise.
13923 (arc_insn_get_linear_next_pc): Likewise.
13924 * NEWS: Mention new "maint print arc arc-instruction".
13925
13926 2017-03-28 Anton Kolesov <anton.kolesov@synopsys.com>
13927
13928 * arc-tdep (maintenance_print_arc_list): New variable.
13929 (maintenance_print_arc_command): New function.
13930
13931 2017-03-28 Anton Kolesov <anton.kolesov@synopsys.com>
13932
13933 * arc-tdep.c (core_v2_register_names, core_arcompact_register_names)
13934 Add "limm" and "reserved".
13935 (arc_cannot_fetch_register, arc_cannot_store_register): Add
13936 ARC_RESERVED_REGNUM and ARC_LIMM_REGNUM.
13937 * arc-tdep.h (arc_regnum): Likewise.
13938
13939 2017-03-27 Max Filippov <jcmvbkbc@gmail.com>
13940
13941 * xtensa-linux-nat.c (fill_gregset): Call regcache_raw_collect
13942 for THREADPTR register.
13943 (supply_gregset_reg): Call regcache_raw_supply for THREADPTR
13944 register.
13945 * xtensa-tdep.c (XTENSA_DBREGN_UREG): New definition.
13946 (xtensa_derive_tdep): Initialize tdep->threadptr_regnum.
13947 * xtensa-tdep.h (gdbarch_tdep::threadptr_regnum): New field.
13948
13949 2017-03-27 Max Filippov <jcmvbkbc@gmail.com>
13950
13951 * xtensa-tdep.c (xtensa_pseudo_register_read): Treat all
13952 registers above gdbarch_num_regs (gdbarch) as privileged in
13953 call0 ABI.
13954
13955 2017-03-27 Max Filippov <jcmvbkbc@gmail.com>
13956
13957 * xtensa-linux-nat.c (fill_gregset): Call regcache_raw_collect
13958 for a single specified register or for all registers in
13959 a0_base..a0_base + C0_NREGS range.
13960 (supply_gregset_reg): Call regcache_raw_supply for a single
13961 specified register or for all registers in a0_base..a0_base +
13962 C0_NREGS range.
13963
13964 2017-03-27 Max Filippov <jcmvbkbc@gmail.com>
13965
13966 * arch/xtensa.h (C0_NREGS): Add definition.
13967 * xtensa-tdep.c (C0_NREGS): Remove definition.
13968
13969 2017-03-27 Max Filippov <jcmvbkbc@gmail.com>
13970
13971 * xtensa-tdep.c (xtensa_scan_prologue, call0_analyze_prologue):
13972 Drop xtensa_default_isa initialization.
13973 (xtensa_gdbarch_init): Initialize xtensa_default_isa.
13974
13975 2017-03-27 Pedro Alves <palves@redhat.com>
13976
13977 * dwarf2read.c (file_entry) <dir_index>: Add comment.
13978 (file_entry::include_dir): New method.
13979 (line_header::include_dir_at, line_header::file_name_at): New
13980 methods.
13981 (setup_type_unit_groups, setup_type_unit_groups)
13982 (psymtab_include_file_name): Simplify using the new methods.
13983 (lnp_state_machine) <the_line_header>: New field.
13984 <file>: Add comment.
13985 (lnp_state_machine::current_file): New method.
13986 (dwarf_record_line): Simplify using the new methods.
13987 (init_lnp_state_machine): Initialize the "the_line_header" field.
13988 (dwarf_decode_lines_1, dwarf_decode_lines, file_file_name):
13989 Simplify using the new methods.
13990
13991 2017-03-27 Pedro Alves <palves@redhat.com>
13992
13993 * cp-name-parser.y (make_empty): Delete.
13994 (demangler_special, nested_name, ptr_operator, array_indicator)
13995 (direct_declarator, declarator_1): Use fill_comp instead of
13996 make_empty.
13997
13998 2017-03-27 Pedro Alves <palves@redhat.com>
13999
14000 * xml-support.h (gdb_xml_debug): Pass a "first-to-check" argument
14001 to ATTRIBUTE_PRINTF.
14002 * solib-target.c (library_list_start_list): Print "string" not
14003 "version".
14004 * xml-tdesc.c (tdesc_start_field): Pass "field_name" to
14005 gdb_xml_error call.
14006
14007 2017-03-27 Pedro Alves <palves@redhat.com>
14008
14009 * dwarf2read.c (struct file_and_directory): New.
14010 (dwarf2_get_dwz_file): Adjust to use std::string.
14011 (dw2_get_file_names_reader): Adjust to use file_and_directory.
14012 (find_file_and_directory): Adjust to return a file_and_directory
14013 object.
14014 (read_file_scope): Adjust to use file_and_directory. Remove
14015 make_cleanup/do_cleanups calls.
14016 (open_and_init_dwp_file): Adjust to use std::string. Remove
14017 make_cleanup/do_cleanups calls.
14018 * python/python.c (do_start_initialization): Adjust to ldirname
14019 returning a std::string.
14020 * utils.c (ldirname): Now returns a std::string.
14021 * utils.h (ldirname): Change return type to std::string.
14022 * xml-syscall.c (xml_init_syscalls_info): Adjust to ldirname
14023 returning a std::string.
14024 * xml-tdesc.c (file_read_description_xml): Likewise.
14025
14026 2017-03-24 Alan Hayward <alan.hayward@arm.com>
14027
14028 * regcache.c (regcache_debug_print_register): New function.
14029 * regcache.h (regcache_debug_print_register): New declaration.
14030 * target.c (debug_print_register): Remove.
14031 (target_fetch_registers): Call regcache_debug_print_register.
14032 (target_store_registers): Likewise.
14033
14034 2017-03-24 Pádraig Brady <pbrady@fb.com>
14035
14036 * dwarf2read.c (setup_type_unit_groups): Ensure dir_index doesn't
14037 reference beyond the 'lh->include_dirs' array before accessing to
14038 it.
14039 (psymtab_include_file_name): Likewise.
14040 (dwarf_decode_lines_1): Likewise.
14041 (dwarf_decode_lines): Likewise.
14042 (file_file_name): Likewise.
14043
14044 2017-03-23 Simon Marchi <simon.marchi@ericsson.com>
14045
14046 * fbsd-tdep.c (fbsd_corefile_thread): Don't set/restore
14047 inferior_ptid.
14048 * proc-service.c (ps_lgetregs, ps_lsetregs, ps_lgetfpregs,
14049 ps_lsetfpregs): Likewise.
14050 * regcache.c (regcache_raw_update, regcache_raw_write): Likewise.
14051 * sol-thread.c (ps_lgetregs, ps_lsetregs, ps_lgetfpregs,
14052 ps_lsetfpregs): Likewise.
14053 * target.c (target_fetch_registers, target_store_registers):
14054 Remove asserts.
14055
14056 2017-03-23 Alan Hayward <alan.hayward@arm.com>
14057
14058 * sol-thread.c (sol_thread_store_registers): Remove regcache calls.
14059
14060 2017-03-23 Yao Qi <yao.qi@linaro.org>
14061
14062 * aarch64-tdep.c (aarch64_process_record_test): Declare.
14063 (_initialize_aarch64_tdep): Register it.
14064 (aarch64_record_load_store): Handle PRFM instruction.
14065 (aarch64_process_record_test): New function.
14066
14067 2017-03-23 Yao Qi <yao.qi@linaro.org>
14068
14069 * aarch64-tdep.c (aarch64_record_load_store): Fix code
14070 indentation.
14071
14072 2017-03-23 Yao Qi <yao.qi@linaro.org>
14073
14074 * aarch64-tdep.c: Remove AARCH64_RECORD_FAILURE.
14075
14076 2017-03-23 Philipp Rudo <prudo@linux.vnet.ibm.com>
14077
14078 python/python.c (do_start_initialization): Fix memory leak.
14079
14080 2017-03-22 Simon Marchi <simon.marchi@polymtl.ca>
14081
14082 * inf-ptrace.c (inf_ptrace_xfer_partial): Get pid from ptid
14083 using get_ptrace_pid.
14084 * linux-nat.c (linux_nat_xfer_partial): Don't set/restore
14085 inferior_ptid.
14086 (linux_proc_xfer_partial, linux_proc_xfer_spu): Use lwp of
14087 inferior_ptid instead of pid.
14088
14089 2017-03-22 Yao Qi <yao.qi@linaro.org>
14090
14091 * aarch64-tdep.c: Wrap locally used classes in anonymous
14092 namespace.
14093 * arm-tdep.c: Likewise.
14094 * linespec.c: Likewise.
14095 * ui-out.c: Likewise.
14096
14097 2017-03-22 Jonah Graham <jonah@kichwacoders.com>
14098
14099 PR gdb/19637
14100 * python/lib/gdb/printer/bound_registers.py: Import sys.
14101
14102 2017-03-21 Simon Marchi <simon.marchi@ericsson.com>
14103
14104 * windows-nat.c (do_windows_fetch_inferior_registers): Add
14105 windows_thread_info parameter and use it instead of
14106 current_thread.
14107 (windows_fetch_inferior_registers): Don't set current_thread,
14108 pass the thread to do_windows_fetch_inferior_registers. Use
14109 ptid from regcache instead of inferior_ptid.
14110 (do_windows_store_inferior_registers): Add windows_thread_info
14111 parameter and use it instead of current_thread.
14112 (windows_store_inferior_registers): Don't set current_thread,
14113 pass the thread to do_windows_store_inferior_registers. Use
14114 ptid from regcache instead of inferior_ptid.
14115
14116 2017-03-21 Simon Marchi <simon.marchi@ericsson.com>
14117
14118 * ser-mingw.c (ser_windows_raw): Remove reference to
14119 struct serial::current_timeout.
14120
14121 2017-03-21 Ivo Raisr <ivo.raisr@oracle.com>
14122
14123 PR tdep/20928
14124 * gdb/sparc-tdep.h (gdbarch_tdep) <sparc64_ccr_type>: New field.
14125 * gdb/sparc64-tdep.c (sparc64_ccr_type): New function.
14126 (sparc64_fsr_type): Fix %fsr decoding.
14127
14128 2017-03-21 Tim Wiederhake <tim.wiederhake@intel.com>
14129
14130 * python/py-record-btrace.c (btpy_insn_data): Change return type
14131 for Python 2.
14132
14133 2017-03-20 Simon Marchi <simon.marchi@polymtl.ca>
14134
14135 * spu-linux-nat.c (spu_fetch_inferior_registers,
14136 spu_store_inferior_registers): Use ptid from regcache, set and
14137 restore inferior_ptid.
14138 * spu-multiarch.c (spu_fetch_registers, spu_store_registers):
14139 Likewise.
14140
14141 2017-03-20 Simon Marchi <simon.marchi@polymtl.ca>
14142
14143 * i386-linux-nat.c (fetch_register, store_register,
14144 i386_linux_fetch_inferior_registers,
14145 i386_linux_store_inferior_registers): Use ptid from regcache.
14146 * ia64-linux-nat.c (ia64_linux_fetch_register,
14147 ia64_linux_store_register): Likewise.
14148 * inf-ptrace.c (inf_ptrace_fetch_register,
14149 inf_ptrace_store_register): Likewise.
14150 * m32r-linux-nat.c (m32r_linux_fetch_inferior_registers,
14151 m32r_linux_store_inferior_registers): Likewise.
14152 * m68k-bsd-nat.c (m68kbsd_fetch_inferior_registers,
14153 m68kbsd_store_inferior_registers): Likewise.
14154 * m68k-linux-nat.c (fetch_register, store_register,
14155 m68k_linux_fetch_inferior_registers,
14156 m68k_linux_store_inferior_registers): Likewise.
14157 * m88k-bsd-nat.c (m88kbsd_fetch_inferior_registers,
14158 m88kbsd_store_inferior_registers): Likewise.
14159 * mips-fbsd-nat.c (mips_fbsd_fetch_inferior_registers,
14160 mips_fbsd_store_inferior_registers): Likewise.
14161 * mips-linux-nat.c (mips64_linux_regsets_fetch_registers,
14162 mips64_linux_regsets_store_registers): Likewise.
14163 * mips-nbsd-nat.c (mipsnbsd_fetch_inferior_registers,
14164 mipsnbsd_store_inferior_registers): Likewise.
14165 * mips-obsd-nat.c (mips64obsd_fetch_inferior_registers,
14166 mips64obsd_store_inferior_registers): Likewise.
14167 * nto-procfs.c (procfs_fetch_registers, procfs_store_registers):
14168 Likewise.
14169 * ppc-fbsd-nat.c (ppcfbsd_fetch_inferior_registers,
14170 ppcfbsd_store_inferior_registers): Likewise.
14171 * ppc-linux-nat.c (ppc_linux_fetch_inferior_registers,
14172 ppc_linux_store_inferior_registers): Likewise.
14173 * ppc-nbsd-nat.c (ppcnbsd_fetch_inferior_registers,
14174 ppcnbsd_store_inferior_registers): Likewise.
14175 * ppc-obsd-nat.c (ppcobsd_fetch_registers,
14176 ppcobsd_store_registers): Likewise.
14177 * procfs.c (procfs_fetch_registers, procfs_store_registers):
14178 Likewise.
14179 * ravenscar-thread.c (ravenscar_fetch_registers,
14180 ravenscar_store_registers, ravenscar_prepare_to_store):
14181 Likewise.
14182 * record-btrace.c (record_btrace_fetch_registers,
14183 record_btrace_store_registers, record_btrace_prepare_to_store):
14184 Likewise.
14185 * remote-sim.c (gdbsim_fetch_register, gdbsim_store_register):
14186 Lookup inferior using ptid from regcache, instead of
14187 current_inferior.
14188 * remote.c (remote_fetch_registers, remote_store_registers): Use
14189 ptid from regcache.
14190 * rs6000-nat.c (fetch_register, store_register): Likewise.
14191 * s390-linux-nat.c (s390_linux_fetch_inferior_registers,
14192 s390_linux_store_inferior_registers): Likewise.
14193 * sh-nbsd-nat.c (shnbsd_fetch_inferior_registers,
14194 shnbsd_store_inferior_registers): Likewise.
14195 * sol-thread.c (sol_thread_fetch_registers,
14196 sol_thread_store_registers): Likewise.
14197 * sparc-nat.c (sparc_fetch_inferior_registers,
14198 sparc_store_inferior_registers): Likewise.
14199 * tilegx-linux-nat.c (fetch_inferior_registers,
14200 store_inferior_registers): Likewise.
14201 * vax-bsd-nat.c (vaxbsd_fetch_inferior_registers,
14202 vaxbsd_store_inferior_registers): Likewise.
14203 * xtensa-linux-nat.c (fetch_gregs, store_gregs, fetch_xtregs,
14204 store_xtregs): Likewise.
14205
14206 2017-03-20 Artemiy Volkov <artemiyv@acm.org>
14207
14208 PR gdb/14441
14209 * NEWS: Mention support for rvalue references in GDB and python.
14210 * doc/gdb.texinfo (C Plus Plus Expressions): Mention that GDB
14211 supports both lvalue and rvalue references.
14212
14213 2017-03-20 Artemiy Volkov <artemiyv@acm.org>
14214
14215 PR gdb/14441
14216 * gdbtypes.c (rank_one_type): Implement overloading
14217 resolution rules regarding rvalue references.
14218
14219 2017-03-20 Artemiy Volkov <artemiyv@acm.org>
14220
14221 PR gdb/14441
14222 * aarch64-tdep.c (aarch64_type_align)
14223 (aarch64_extract_return_value, aarch64_store_return_value): Change
14224 lvalue reference type checks to general reference type checks.
14225 * amd64-tdep.c (amd64_classify): Likewise.
14226 * amd64-windows-tdep.c (amd64_windows_passed_by_integer_register):
14227 Likewise.
14228 * arm-tdep.c (arm_type_align, arm_extract_return_value)
14229 (arm_store_return_value): Likewise.
14230 * ax-gdb.c (gen_fetch, gen_cast): Likewise.
14231 * c-typeprint.c (c_print_type): Likewise.
14232 * c-varobj.c (adjust_value_for_child_access, c_value_of_variable)
14233 (cplus_number_of_children, cplus_describe_child): Likewise.
14234 * compile/compile-c-symbols.c (generate_vla_size): Likewise.
14235 * completer.c (expression_completer): Likewise.
14236 * cp-support.c (make_symbol_overload_list_adl_namespace):
14237 Likewise.
14238 * darwin-nat-info.c (info_mach_region_command): Likewise.
14239 * dwarf2loc.c (entry_data_value_coerce_ref)
14240 (value_of_dwarf_reg_entry): Likewise.
14241 * eval.c (ptrmath_type_p, evaluate_subexp_standard)
14242 (evaluate_subexp_for_address, evaluate_subexp_for_sizeof):
14243 Likewise.
14244 * findvar.c (extract_typed_address, store_typed_address):
14245 Likewise.
14246 * gdbtypes.c (rank_one_type): Likewise.
14247 * hppa-tdep.c (hppa64_integral_or_pointer_p): Likewise.
14248 * infcall.c (value_arg_coerce): Likewise.
14249 * language.c (pointer_type): Likewise.
14250 * m32c-tdep.c (m32c_reg_arg_type, m32c_m16c_address_to_pointer):
14251 Likewise.
14252 * m88k-tdep.c (m88k_integral_or_pointer_p): Likewise.
14253 * mn10300-tdep.c (mn10300_type_align): Likewise.
14254 * msp430-tdep.c (msp430_push_dummy_call): Likewise.
14255 * ppc-sysv-tdep.c (do_ppc_sysv_return_value)
14256 (ppc64_sysv_abi_push_param, ppc64_sysv_abi_return_value):
14257 Likewise.
14258 * printcmd.c (print_formatted, x_command): Likewise.
14259 * python/py-type.c (typy_get_composite, typy_template_argument):
14260 Likewise.
14261 * python/py-value.c (valpy_referenced_value)
14262 (valpy_get_dynamic_type, value_has_field): Likewise.
14263 * s390-linux-tdep.c (s390_function_arg_integer): Likewise.
14264 * sparc-tdep.c (sparc_integral_or_pointer_p): Likewise.
14265 * sparc64-tdep.c (sparc64_integral_or_pointer_p): Likewise.
14266 * spu-tdep.c (spu_scalar_value_p): Likewise.
14267 * symtab.c (lookup_symbol_aux): Likewise.
14268 * typeprint.c (whatis_exp, print_type_scalar): Likewise.
14269 * valarith.c (binop_types_user_defined_p, unop_user_defined_p):
14270 Likewise.
14271 * valops.c (value_cast_pointers, value_cast)
14272 (value_reinterpret_cast, value_dynamic_cast, value_addr, typecmp)
14273 (value_struct_elt, value_struct_elt_bitpos)
14274 (value_find_oload_method_list, find_overload_match)
14275 (value_rtti_indirect_type): Likewise.
14276 * valprint.c (val_print_scalar_type_p, generic_val_print):
14277 Likewise.
14278 * value.c (value_actual_type, value_as_address, unpack_long)
14279 (pack_long, pack_unsigned_long, coerce_ref_if_computed)
14280 (coerce_ref): Likewise.
14281 * varobj.c (varobj_get_value_type): Likewise.
14282
14283 2017-03-20 Artemiy Volkov <artemiyv@acm.org>
14284
14285 PR gdb/14441
14286 * doc/python.texi (Types in Python): Add TYPE_CODE_RVALUE_REF to
14287 table of constants.
14288 * python/lib/gdb/command/explore.py: Support exploring values
14289 of rvalue reference types.
14290 * python/lib/gdb/types.py: Implement get_basic_type() for
14291 rvalue reference types.
14292 * python/py-type.c (pyty_codes) <TYPE_CODE_RVALUE_REF>: New
14293 constant.
14294 * python/py-value.c (valpy_getitem): Add an rvalue reference
14295 check.
14296 (valpy_reference_value): Add new parameter "refcode".
14297 (valpy_lvalue_reference_value, valpy_rvalue_reference_value):
14298 New wrappers for valpy_reference_value().
14299 * python/py-xmethods.c (gdbpy_get_xmethod_result_type)
14300 (gdbpy_invoke_xmethod): Likewise.
14301
14302 2017-03-20 Artemiy Volkov <artemiyv@acm.org>
14303
14304 PR gdb/14441
14305 * dwarf2read.c (process_die, read_type_die_1): Handle the
14306 DW_TAG_rvalue_reference_type DIE.
14307 (read_tag_reference_type): Add new parameter "refcode".
14308
14309 2017-03-20 Artemiy Volkov <artemiyv@acm.org>
14310
14311 PR gdb/14441
14312 * c-typeprint.c (c_print_type, c_type_print_varspec_prefix)
14313 (c_type_print_modifier, c_type_print_varspec_suffix)
14314 (c_type_print_base): Support printing rvalue reference types.
14315 * c-valprint.c (c_val_print, c_value_print): Support printing
14316 rvalue reference values.
14317
14318 2017-03-20 Artemiy Volkov <artemiyv@acm.org>
14319
14320 PR gdb/14441
14321 * cp-name-parser.y (ptr_operator): Handle the '&&' token in
14322 typename.
14323 * cp-support.c (replace_typedefs): Handle
14324 DEMANGLE_COMPONENT_RVALUE_REFERENCE.
14325 * python/py-type.c (typy_lookup_type): Likewise.
14326
14327 2017-03-20 Artemiy Volkov <artemiyv@acm.org>
14328
14329 PR gdb/14441
14330 * c-exp.y (ptr_operator): Handle the '&&' token in the typename.
14331 * parse.c (insert_type): Change assert statement.
14332 (follow_types): Handle rvalue reference types.
14333 * parser-defs.h (enum type_pieces) <tp_rvalue_reference>: New
14334 constant.
14335
14336 2017-03-20 Artemiy Volkov <artemiyv@acm.org>
14337
14338 PR gdb/14441
14339 * ada-lang.c (ada_evaluate_subexp): Adhere to the new
14340 value_ref() interface.
14341 * c-valprint.c (c_value_print): Likewise.
14342 * infcall.c (value_arg_coerce): Likewise.
14343 * python/py-value.c (valpy_reference_value): Likewise.
14344 * valops.c (value_cast, value_reinterpret_cast)
14345 (value_dynamic_cast, typecmp): Likewise.
14346 (value_ref): Parameterize by kind of return value reference type.
14347 * value.h (value_ref): Add new parameter "refcode".
14348
14349 2017-03-20 Artemiy Volkov <artemiyv@acm.org>
14350
14351 PR gdb/14441
14352 * dwarf2read.c (read_tag_reference_type): Use
14353 lookup_lvalue_reference_type() instead of lookup_reference_type().
14354 * eval.c (evaluate_subexp_standard): Likewise.
14355 * f-exp.y: Likewise.
14356 * gdbtypes.c (make_reference_type, lookup_reference_type):
14357 Generalize with rvalue reference types.
14358 (lookup_lvalue_reference_type, lookup_rvalue_reference_type): New
14359 convenience wrappers for lookup_reference_type().
14360 * gdbtypes.h (make_reference_type, lookup_reference_type): Add a
14361 reference kind parameter.
14362 (lookup_lvalue_reference_type, lookup_rvalue_reference_type): Add
14363 wrappers for lookup_reference_type().
14364 * guile/scm-type.c (gdbscm_type_reference): Use
14365 lookup_lvalue_reference_type() instead of lookup_reference_type().
14366 * guile/scm-value.c (gdbscm_value_dynamic_type): Likewise.
14367 * parse.c (follow_types): Likewise.
14368 * python/py-type.c (typy_reference, typy_lookup_type): Likewise.
14369 * python/py-value.c (valpy_get_dynamic_type, valpy_getitem):
14370 Likewise.
14371 * python/py-xmethods.c (gdbpy_get_xmethod_result_type)
14372 (gdbpy_invoke_xmethod): Likewise.
14373 * stabsread.c: Provide extra argument to make_reference_type()
14374 call.
14375 * valops.c (value_ref, value_rtti_indirect_type): Use
14376 lookup_lvalue_reference_type() instead of lookup_reference_type().
14377
14378 2017-03-20 Artemiy Volkov <artemiyv@acm.org>
14379
14380 PR gdb/14441
14381 * gdbtypes.h (enum type_code) <TYPE_CODE_RVALUE_REF>: New constant.
14382 (TYPE_IS_REFERENCE): New macro.
14383 (struct type): Add rvalue_reference_type field.
14384 (TYPE_RVALUE_REFERENCE_TYPE): New macro.
14385
14386 2017-03-20 Marc-Andre Laperle <marc-andre.laperle@ericsson.com>
14387
14388 * NEWS: Add an entry about new '-file-list-shared-libraries' command.
14389 * mi/mi-cmd-file.c (mi_cmd_file_list_shared_libraries):
14390 New function definition.
14391 * mi/mi-cmds.c (mi_cmds): Add -file-list-shared-libraries command.
14392 * mi/mi-cmds.h (mi_cmd_file_list_shared_libraries):
14393 New function declaration.
14394 * mi/mi-interp.c (mi_output_solib_attribs): New Function.
14395 * mi/mi-interp.h: New file.
14396 * solib.c (info_sharedlibrary_command): Replace for loop with
14397 ALL_SO_LIBS macro
14398 * solib.h (update_solib_list): New function declaration.
14399 (so_list_head): Move macro.
14400 * solist.h (ALL_SO_LIBS): New macro.
14401
14402 2017-03-20 Marc-Andre Laperle <marc-andre.laperle@ericsson.com>
14403
14404 * infcmd.c (post_create_inferior): Remove unused argument in
14405 call to solib_add.
14406 * remote.c (remote_start_remote): Likewise.
14407 * solib-frv.c (frv_fetch_objfile_link_map): Likewise.
14408 * solib-svr4.c: (svr4_fetch_objfile_link_map): Likewise.
14409 (enable_break): Likewise.
14410 * solib.c (update_solib_list): Remove unused target argument
14411 and its documentation.
14412 (solib_add): Remove unused target argument. Remove unused
14413 argument in call to update_solib_list.
14414 (info_sharedlibrary_command): Remove unused argument in call
14415 to update_solib_list.
14416 (sharedlibrary_command): Remove unused argument in call to
14417 solib_add.
14418 (handle_solib_event): Likewise.
14419 (reload_shared_libraries): Likewise.
14420 * solib.h (solib_add): Remove unused target argument.
14421
14422 2017-03-20 Andreas Arnez <arnez@linux.vnet.ibm.com>
14423
14424 * s390-linux-tdep.c (is_rsi, is_rie): Remove functions.
14425 (s390_displaced_step_fixup): Cover relative branches with the
14426 default fixup handling. This fixes lack of support for some
14427 relative branch instructions.
14428
14429 2017-03-17 Simon Marchi <simon.marchi@polymtl.ca>
14430
14431 * i386-gnu-nat.c (gnu_fetch_registers, gnu_store_registers): Use
14432 ptid from regcache.
14433
14434 2017-03-17 Simon Marchi <simon.marchi@polymtl.ca>
14435
14436 * i386-darwin-nat.c (i386_darwin_fetch_inferior_registers,
14437 i386_darwin_store_inferior_registers): Use ptid from regcache.
14438
14439 2017-03-17 Simon Marchi <simon.marchi@polymtl.ca>
14440
14441 * i386-bsd-nat.c (i386bsd_fetch_inferior_registers,
14442 i386bsd_store_inferior_registers): Use ptid from regcache.
14443
14444 2017-03-17 Simon Marchi <simon.marchi@polymtl.ca>
14445
14446 * hppa-obsd-nat.c (hppaobsd_fetch_registers,
14447 hppaobsd_store_registers): Use ptid from regcache.
14448
14449 2017-03-17 Simon Marchi <simon.marchi@polymtl.ca>
14450
14451 * hppa-nbsd-nat.c (hppanbsd_fetch_registers,
14452 hppanbsd_store_registers): Use ptid from regcache.
14453
14454 2017-03-17 Simon Marchi <simon.marchi@polymtl.ca>
14455
14456 * hppa-linux-nat.c (fetch_register, store_register): Use ptid
14457 from regcache. Use get_ptrace_pid.
14458
14459 2017-03-17 Simon Marchi <simon.marchi@polymtl.ca>
14460
14461 * corelow.c (get_core_register_section): Use ptid from regcache,
14462 update doc.
14463
14464 2017-03-17 Simon Marchi <simon.marchi@polymtl.ca>
14465
14466 * bsd-uthread.c (bsd_uthread_fetch_registers,
14467 bsd_uthread_store_registers): Use ptid from regcache, set and
14468 restore inferior_ptid.
14469
14470 2017-03-17 Simon Marchi <simon.marchi@polymtl.ca>
14471
14472 * arm-nbsd-nat.c (fetch_register, fetch_regs, fetch_fp_register,
14473 fetch_fp_regs, store_register, store_regs, store_fp_register,
14474 store_fp_regs): Use ptid from regcache.
14475
14476 2017-03-17 Simon Marchi <simon.marchi@polymtl.ca>
14477
14478 * arm-linux-nat.c (fetch_fpregs, store_fpregs, fetch_regs,
14479 store_regs, fetch_wmmx_regs, store_wmmx_regs, fetch_vfp_regs,
14480 store_vfp_regs): Use ptid from regcache.
14481
14482 2017-03-17 Pedro Alves <palves@redhat.com>
14483
14484 PR remote/21188
14485 * ser-base.c (ser_base_wait_for): Add comment.
14486 (do_ser_base_readchar): Improve comment based on the ser-unix.c's
14487 version.
14488 * ser-unix.c (hardwire_raw): Remove reference to
14489 scb->current_timeout.
14490 (wait_for, do_hardwire_readchar, hardwire_readchar): Delete.
14491 (hardwire_ops): Install ser_base_readchar instead of
14492 hardwire_readchar.
14493 * serial.h (struct serial) <current_timeout, timeout_remaining>:
14494 Remove fields.
14495
14496 2017-03-17 Jonah Graham <jonah@kichwacoders.com>
14497
14498 PR gdb/19637
14499 * python/lib/gdb/printer/bound_registers.py: Add support for
14500 Python 3.
14501
14502 2017-03-16 Andreas Arnez <arnez@linux.vnet.ibm.com>
14503
14504 * dwarf2loc.c (indirect_synthetic_pointer): Get data type of
14505 pointed-to DIE and pass it to dwarf2_evaluate_loc_desc_full.
14506 (dwarf2_evaluate_loc_desc_full): New parameter subobj_type; rename
14507 byte_offset to subobj_byte_offset. Fix the handling of
14508 DWARF_VALUE_STACK on big-endian targets when coming via an
14509 implicit pointer.
14510 (dwarf2_evaluate_loc_desc): Adjust call to
14511 dwarf2_evaluate_loc_desc_full.
14512 * dwarf2loc.h (dwarf2_fetch_die_type_sect_off): New declaration.
14513 * dwarf2read.c (dwarf2_fetch_die_type_sect_off): New function.
14514
14515 2017-03-16 Yao Qi <yao.qi@linaro.org>
14516
14517 * arm-tdep.c (thumb_record_misc): Decode CBNZ, CBZ, REV16,
14518 and REVSH instructions.
14519
14520 2017-03-16 Yao Qi <yao.qi@linaro.org>
14521
14522 * arm-tdep.c [GDB_SELF_TEST]: include "selftests.h".
14523 (arm_record_test): Declare.
14524 (_initialize_arm_tdep) [GDB_SELF_TEST]: call register_self_test.
14525 (thumb_record_ld_st_reg_offset): Rewrite the opcode matching to
14526 align with the manual.
14527 (thumb_record_misc): Adjust the code order to align with the
14528 manual.
14529 (thumb2_record_decode_insn_handler): Fix instruction matching.
14530 (instruction_reader_thumb): New class.
14531 (arm_record_test): New function.
14532
14533 2017-03-16 Yao Qi <yao.qi@linaro.org>
14534
14535 * arm-tdep.c (abstract_memory_reader): New class.
14536 (instruction_reader): New class.
14537 (extract_arm_insn): Add argument 'reader'. Callers updated.
14538 (decode_insn): Likewise.
14539
14540 2017-03-16 Doug Evans <dje@google.com>
14541
14542 * guile/scm-lazy-string.c (lazy_string_smob): Clarify use of LENGTH
14543 member. Change type of TYPE member to SCM. All uses updated.
14544 (lsscm_make_lazy_string_smob): Add assert.
14545 (lsscm_make_lazy_string): Flag bad length values.
14546 (lsscm_elt_type): New function.
14547 (gdbscm_lazy_string_to_value): Rewrite to use
14548 lsscm_safe_lazy_string_to_value.
14549 (lsscm_safe_lazy_string_to_value): Fix handling of TYPE_CODE_PTR.
14550 * guile/scm-value.c (gdbscm_value_to_lazy_string): Flag bad length
14551 values. Fix TYPE_CODE_PTR. Handle TYPE_CODE_ARRAY. Handle typedefs
14552 in incoming type.
14553 * guile/guile-internal.h (tyscm_scm_to_type): Declare.
14554 * guile/scm-type.c (tyscm_scm_to_type): New function.
14555
14556 2017-03-15 Doug Evans <dje@google.com>
14557
14558 PR python/17728, python/18439, python/18779
14559 * python/py-lazy-string.c (lazy_string_object): Clarify use of LENGTH
14560 member. Change type of TYPE member to PyObject *. All uses updated.
14561 (stpy_convert_to_value): Fix handling of TYPE_CODE_PTR.
14562 (gdbpy_create_lazy_string_object): Flag bad length values.
14563 Handle TYPE_CODE_ARRAY with possibly different user-provided length.
14564 Handle typedefs in incoming type.
14565 (stpy_lazy_string_elt_type): New function.
14566 (gdbpy_extract_lazy_string): Call it.
14567 * python/py-value.c (valpy_lazy_string): Flag bad length values.
14568 Fix handling of TYPE_CODE_PTR. Handle TYPE_CODE_ARRAY. Handle
14569 typedefs in incoming type.
14570
14571 2017-03-16 Doug Evans <dje@google.com>
14572
14573 * guile/guile-internal.h (tyscm_scm_to_type): Declare.
14574 * guile/scm-type.c (tyscm_scm_to_type): New function.
14575
14576 2017-03-16 Jiong Wang <jiong.wang@arm.com>
14577
14578 * inf-ptrace.c (inf_ptrace_peek_poke): Change the type to
14579 "ULONGEST" for "skip".
14580
14581 2017-03-14 Andreas Arnez <arnez@linux.vnet.ibm.com>
14582
14583 PR gdb/21220
14584 * inf-ptrace.c (inf_ptrace_xfer_partial): In "case
14585 TARGET_OBJECT_MEMORY", extract the logic for ptrace peek/poke...
14586 (inf_ptrace_peek_poke): ...here. New function. Now also loop
14587 over ptrace peek/poke until end of buffer or error.
14588
14589 2017-03-14 Simon Marchi <simon.marchi@ericsson.com>
14590
14591 * parse.c (length_of_subexp): Make static.
14592 * parser-defs.h (length_of_subexp): Remove.
14593
14594 2017-03-14 Andreas Arnez <arnez@linux.vnet.ibm.com>
14595
14596 * linux-nat.c (linux_proc_xfer_partial): Handle write operations
14597 as well.
14598
14599 2017-03-14 Pedro Alves <palves@redhat.com>
14600
14601 * cp-name-parser.y (cp_demangled_name_to_comp): Update comment.
14602 (main): Use std::unique_ptr. Remove calls to
14603 cp_demangled_name_parse_free.
14604
14605 2017-03-13 Simon Marchi <simon.marchi@polymtl.ca>
14606
14607 * alpha-bsd-nat.c (alphabsd_fetch_inferior_registers,
14608 alphabsd_store_inferior_registers): Use regcache->ptid instead
14609 of inferior_ptid.
14610
14611 2017-03-13 Simon Marchi <simon.marchi@polymtl.ca>
14612
14613 * aix-thread.c (aix_thread_fetch_registers,
14614 aix_thread_store_registers): Use regcache->ptid instead of
14615 inferior_ptid.
14616
14617 2017-03-13 Simon Marchi <simon.marchi@polymtl.ca>
14618
14619 * aarch64-linux-nat.c (fetch_gregs_from_thread,
14620 store_gregs_to_thread, fetch_fpregs_from_thread,
14621 store_fpregs_to_thread): Use regcache->ptid instead of
14622 inferior_ptid.
14623
14624 2017-03-13 Simon Marchi <simon.marchi@polymtl.ca>
14625
14626 * amd64-linux-nat.c (amd64_linux_fetch_inferior_registers,
14627 amd64_linux_fetch_inferior_registers): Use regcache->ptid
14628 instead of inferior_ptid.
14629
14630 2017-03-13 Simon Marchi <simon.marchi@polymtl.ca>
14631
14632 * target.c (target_fetch_registers, target_store_registers): Add
14633 assert.
14634
14635 2017-03-13 Simon Marchi <simon.marchi@polymtl.ca>
14636
14637 * regcache.h (regcache_get_ptid): New function.
14638 * regcache.c (regcache_get_ptid): New function.
14639
14640 2017-03-13 Mark Wielaard <mark@klomp.org>
14641
14642 * cp-name-parser.y (make_empty): Initialize d_printing to zero.
14643
14644 2017-03-10 Keith Seitz <keiths@redhat.com>
14645
14646 PR c++/8218
14647 * c-typeprint.c (cp_type_print_method_args): Skip artificial arguments.
14648
14649 2017-03-08 Pedro Alves <palves@redhat.com>
14650
14651 PR gdb/18360
14652 * infrun.c (start_step_over, do_target_resume, resume)
14653 (restart_threads): Assert we're not resuming a thread that is
14654 meant to be stopped.
14655 (infrun_thread_stop_requested_callback): Delete.
14656 (infrun_thread_stop_requested): If the thread is internally
14657 stopped, queue a pending stop event and clear the thread's
14658 inline-frame state.
14659 (handle_stop_requested): New function.
14660 (handle_syscall_event, handle_inferior_event_1): Use
14661 handle_stop_requested.
14662 (handle_stop_requested): New function.
14663 (handle_signal_stop): Set the thread's stop_signal here instead of
14664 at caller.
14665 (finish_step_over): Clear step over info unconditionally.
14666 (handle_signal_stop): If the user had interrupted the event
14667 thread, consider the stop a random signal.
14668 (handle_signal_stop) <signal arrived while stepping over
14669 breakpoint>: Don't restart threads here.
14670 (stop_waiting): Don't clear step-over info here.
14671
14672 2017-03-08 Pedro Alves <palves@redhat.com>
14673
14674 PR 21206
14675 * common/gdb_unlinker.h (unlinker::unlinker): Attribute nonnull
14676 goes to argument 2, not 1.
14677
14678 2017-03-08 Pedro Alves <palves@redhat.com>
14679
14680 PR cli/21218
14681 * top.c (gdb_readline_wrapper): Avoid passing NULL to
14682 display_gdb_prompt.
14683 (command_line_input): Add comment.
14684
14685 2017-03-08 Pedro Alves <palves@redhat.com>
14686
14687 PR tui/21216
14688 * tui/tui-file.c (tui_file::write): New.
14689 * tui/tui-file.h (tui_file): Override "write".
14690 * tui/tui-io.c (do_tui_putc, update_start_line): New functions,
14691 factored out from ...
14692 (tui_puts): ... here.
14693 (tui_putc): Use them.
14694 (tui_write): New function.
14695 * tui/tui-io.h (tui_write): Declare.
14696
14697 2017-03-07 Sergio Durigan Junior <sergiodj@redhat.com>
14698
14699 * Makefile.in (SFILES): Replace "environ.c" with
14700 "common/environ.c".
14701 (HFILES_NO_SRCDIR): Likewise, for "environ.h".
14702 * environ.c: Include "common-defs.h" instead of "defs.h. Moved
14703 to...
14704 * common/environ.c: ... here.
14705 * environ.h: Moved to...
14706 * common/environ.h: ... here.
14707
14708 2017-03-07 Peter Bergner <bergner@vnet.ibm.com>
14709
14710 * gdbarch.sh (pstring_ptr): New static function.
14711 (gdbarch_disassembler_options): Use it.
14712 (gdbarch_verify_disassembler_options): Print valid_disassembler_options,
14713 not valid_disassembler_option->name.
14714 * gdbarch.c: Regenerate.
14715
14716 2017-03-07 Peter Bergner <bergner@vnet.ibm.com>
14717
14718 * config/powerpc/ppc64-linux.mh (MH_CFLAGS): Delete.
14719
14720 2017-03-07 Pedro Alves <palves@redhat.com>
14721
14722 * tui/tui-regs.c (tui_restore_gdbout): Don't delete gdb_stdout.
14723
14724 2017-03-07 Walfred Tedeschi <walfred.tedeschi@intel.com>
14725
14726 * i387-tdep.h (i387_reset_bnd_regs): Add function definition.
14727 * i387-tdep.c (i387_reset_bnd_regs): Add function implementation.
14728 * i386-tdep.c (i386_push_dummy_call): Call i387_reset_bnd_regs.
14729 * amd64-tdep.c (amd64_push_dummy_call): Call i387_reset_bnd_regs.
14730
14731 2017-03-06 Simon Marchi <simon.marchi@ericsson.com>
14732
14733 * xtensa-linux-nat.c (fetch_gregs): Remove const.
14734
14735 2017-03-03 Simon Marchi <simon.marchi@ericsson.com>
14736
14737 * remote.c (remote_add_target_side_commands): Use range-based
14738 for loop.
14739
14740 2017-03-03 Yao Qi <yao.qi@linaro.org>
14741
14742 PR gdb/21165
14743 * ada-valprint.c (ada_val_print_ref): Call value_fetch_lazy if
14744 value is lazy.
14745 * valprint.c (common_val_print): Likewise.
14746
14747 2017-02-28 Peter Bergner <bergner@vnet.ibm.com>
14748
14749 * NEWS: Mention new set/show disassembler-options commands.
14750 * doc/gdb.texinfo: Document new set/show disassembler-options commands.
14751 * disasm.c: Include "arch-utils.h", "gdbcmd.h" and "safe-ctype.h".
14752 (prospective_options): New static variable.
14753 (gdb_disassembler::gdb_disassembler): Initialize
14754 m_di.disassembler_options.
14755 (gdb_buffered_insn_length_init_dis): Initilize di->disassembler_options.
14756 (get_disassembler_options): New function.
14757 (set_disassembler_options): Likewise.
14758 (set_disassembler_options_sfunc): Likewise.
14759 (show_disassembler_options_sfunc): Likewise.
14760 (disassembler_options_completer): Likewise.
14761 (_initialize_disasm): Likewise.
14762 * disasm.h (get_disassembler_options): New prototype.
14763 (set_disassembler_options): Likewise.
14764 * gdbarch.sh (gdbarch_disassembler_options): New variable.
14765 (gdbarch_verify_disassembler_options): Likewise.
14766 * gdbarch.c: Regenerate.
14767 * gdbarch.h: Likewise.
14768 * arm-tdep.c (num_disassembly_options): Delete.
14769 (set_disassembly_style): Likewise.
14770 (arm_disassembler_options): New static variable.
14771 (set_disassembly_style_sfunc): Convert short style name into long
14772 option name. Call set_disassembler_options.
14773 (show_disassembly_style_sfunc): New function.
14774 (arm_gdbarch_init): Call set_gdbarch_disassembler_options and
14775 set_gdbarch_verify_disassembler_options.
14776 (_initialize_arm_tdep): Delete regnames variable and update callers.
14777 (arm_disassembler_options): Initialize.
14778 (disasm_options): New variable.
14779 (num_disassembly_options): Rename from this...
14780 (num_disassembly_styles): ...to this. Compute by scanning through
14781 disasm_options.
14782 (valid_disassembly_styles): Initialize using disasm_options.
14783 Remove calls to parse_arm_disassembler_option, get_arm_regnames and
14784 set_arm_regname_option.
14785 Pass show_disassembly_style_sfunc to the "disassembler" setshow command.
14786 * rs6000-tdep.c (powerpc_disassembler_options): New static variable.
14787 (rs6000_gdbarch_init): Call set_gdbarch_disassembler_options and
14788 set_gdbarch_verify_disassembler_options.
14789 * s390-tdep.c (s390_disassembler_options): New static variable.
14790 (s390_gdbarch_init):all set_gdbarch_disassembler_options and
14791 set_gdbarch_verify_disassembler_options.
14792
14793 2017-02-27 Simon Marchi <simon.marchi@ericsson.com>
14794
14795 * remote.c (remote_add_target_side_condition): Remove "struct"
14796 keyword from range-based for loop.
14797
14798 2017-02-27 Simon Marchi <simon.marchi@ericsson.com>
14799
14800 * remote.c (remote_add_target_side_condition): Use range-based
14801 for loop. Update comment.
14802
14803 2017-02-27 Yao Qi <yao.qi@linaro.org>
14804
14805 * f-typeprint.c (f_print_type): Check "varstring" is empty first.
14806
14807 2017-02-26 Alan Hayward <alan.hayward@arm.com>
14808
14809 * regcache.c (regcache_raw_update): New function.
14810 (regcache_raw_read): Move code to regcache_raw_update.
14811 * regcache.h (regcache_raw_update): New declaration.
14812 * remote.c (remote_prepare_to_store): Call regcache_raw_update.
14813
14814 2017-02-26 Jan Kratochvil <jan.kratochvil@redhat.com>
14815
14816 * dwarf2read.c (create_debug_type_hash_table): Initialize
14817 header.signature and header.type_offset_in_tu.
14818
14819 2017-02-24 Pedro Alves <palves@redhat.com>
14820
14821 * symtab.c (make_file_symbol_completion_list_1): Use
14822 add_symtab_completions.
14823
14824 2017-02-24 Alan Hayward <alan.hayward@arm.com>
14825
14826 * stack.c (frame_info): Use frame_unwind_register_value to avoid buf.
14827
14828 2017-02-24 Alan Hayward <alan.hayward@arm.com>
14829
14830 * i386-tdep.c (i386_pseudo_register_read_into_value): Use
14831 I386_MAX_REGISTER_SIZE.
14832 (i386_pseudo_register_write): Likewise.
14833 (i386_process_record): Likewise.
14834 * i387-tdep.c (i387_supply_xsave): Likewise.
14835 * m68k-linux-nat.c (fetch_register): Use M68K_MAX_REGISTER_SIZE.
14836 (store_register): Likewise.
14837
14838 2017-02-23 Pedro Alves <palves@redhat.com>
14839
14840 * ada-lang.c: Include "common/function-view.h".
14841 (ada_iterate_over_symbols): Adjust to use function_view as
14842 callback type.
14843 (struct add_partial_datum, ada_complete_symbol_matcher): Delete.
14844 (ada_make_symbol_completion_list): Use a lambda.
14845 (ada_exc_search_name_matches): Delete.
14846 (name_matches_regex): New.
14847 (ada_add_global_exceptions): Use a lambda and name_matches_regex.
14848 * compile/compile-c-support.c: Include "common/function-view.h".
14849 (print_one_macro): Change prototype to accept a ui_file pointer.
14850 (write_macro_definitions): Use a lambda.
14851 * dwarf2read.c: Include "common/function-view.h".
14852 (dw2_map_expand_apply, dw2_map_symtabs_matching_filename)
14853 (dw2_expand_symtabs_matching): Adjust to use function_view as
14854 callback type.
14855 * language.h: Include "common/function-view.h".
14856 (struct language_defn) <la_iterate_over_symbols>: Adjust to use
14857 function_view as callback type.
14858 (LA_ITERATE_OVER_SYMBOLS): Remove DATA parameter.
14859 * linespec.c: Include "common/function-view.h".
14860 (collect_info::add_symbol): New method.
14861 (struct symbol_and_data_callback, iterate_inline_only, struct
14862 symbol_matcher_data, iterate_name_matcher): Delete.
14863 (iterate_over_all_matching_symtabs): Adjust to use function_view
14864 as callback type and lambdas.
14865 (iterate_over_file_blocks): Adjust to use function_view as
14866 callback type.
14867 (decode_compound_collector): Now a class with private fields.
14868 (decode_compound_collector::release_symbols): New method.
14869 (collect_one_symbol): Rename to...
14870 (decode_compound_collector::operator()): ... this and adjust.
14871 (lookup_prefix_sym): decode_compound_collector construction bits
14872 move to decode_compound_collector ctor. Pass the
14873 decode_compound_collector object directly as callback. Remove
14874 cleanups and use decode_compound_collector::release_symbols
14875 instead.
14876 (symtab_collector): Now a class with private fields.
14877 (symtab_collector::release_symtabs): New method.
14878 (add_symtabs_to_list): Rename to...
14879 (symtab_collector::operator()): ... this and adjust.
14880 (collect_symtabs_from_filename): symtab_collector construction
14881 bits move to symtab_collector ctor. Pass the symtab_collector
14882 object directly as callback. Remove cleanups and use
14883 symtab_collector::release_symtabs instead.
14884 (collect_symbols): Delete.
14885 (add_matching_symbols_to_info): Use lambdas.
14886 * macrocmd.c (print_macro_callback): Delete.
14887 (info_macro_command): Use a lambda.
14888 (info_macros_command): Pass print_macro_definition as callable
14889 directly.
14890 (print_one_macro): Remove 'ignore' parameter.
14891 (macro_list_command): Adjust.
14892 * macrotab.c (macro_for_each_data::fn): Now a function_view.
14893 (macro_for_each_data::user_data): Delete field.
14894 (foreach_macro): Adjust to call the function_view.
14895 (macro_for_each): Adjust to use function_view as callback type.
14896 (foreach_macro_in_scope): Adjust to call the function_view.
14897 (macro_for_each_in_scope): Adjust to use function_view as callback
14898 type.
14899 * macrotab.h: Include "common/function-view.h".
14900 (macro_callback_fn): Declare a prototype instead of a pointer.
14901 Remove "user_data" parameter.
14902 (macro_for_each, macro_for_each_in_scope): Adjust to use
14903 function_view as callback type.
14904 * psymtab.c (partial_map_expand_apply)
14905 (psym_map_symtabs_matching_filename, recursively_search_psymtabs):
14906 Adjust to use function_view as callback type and to return bool.
14907 (psym_expand_symtabs_matching): Adjust to use function_view as
14908 callback types.
14909 * symfile-debug.c (debug_qf_map_symtabs_matching_filename): Adjust
14910 to use function_view as callback type and to return bool.
14911 (debug_qf_expand_symtabs_matching): Adjust to use function_view as
14912 callback types.
14913 * symfile.c (expand_symtabs_matching): Adjust to use function_view
14914 as callback types.
14915 * symfile.h: Include "common/function-view.h".
14916 (expand_symtabs_file_matcher_ftype)
14917 (expand_symtabs_symbol_matcher_ftype)
14918 (expand_symtabs_exp_notify_ftype): Remove "data" parameter and
14919 return bool.
14920 (quick_symbol_functions::map_symtabs_matching_filename)
14921 (quick_symbol_functions::expand_symtabs_matching): Adjust to use
14922 function_view as callback type and return bool.
14923 (expand_symtabs_matching): Adjust to use function_view as callback
14924 type.
14925 (maintenance_expand_name_matcher)
14926 (maintenance_expand_file_matcher): Delete.
14927 (maintenance_expand_symtabs): Use lambdas.
14928 * symtab.c (iterate_over_some_symtabs): Adjust to use
14929 function_view as callback types and return bool.
14930 (iterate_over_symtabs): Likewise. Use unique_xmalloc_ptr instead
14931 of a cleanup.
14932 (lookup_symtab_callback): Delete.
14933 (lookup_symtab): Use a lambda.
14934 (iterate_over_symbols): Adjust to use function_view as callback
14935 type.
14936 (struct search_symbols_data, search_symbols_file_matches)
14937 (search_symbols_name_matches): Delete.
14938 (search_symbols): Use a pair of lambdas.
14939 (struct add_name_data, add_macro_name, symbol_completion_matcher)
14940 (symtab_expansion_callback): Delete.
14941 (default_make_symbol_completion_list_break_on_1): Use lambdas.
14942 * symtab.h: Include "common/function-view.h".
14943 (iterate_over_some_symtabs): Adjust to use function_view as
14944 callback type and return bool.
14945 (iterate_over_symtabs): Adjust to use function_view as callback
14946 type.
14947 (symbol_found_callback_ftype): Remove 'data' parameter and return
14948 bool.
14949 (iterate_over_symbols): Adjust to use function_view as callback
14950 type.
14951
14952 2017-02-23 Pedro Alves <palves@redhat.com>
14953
14954 * Makefile.in (SUBDIR_UNITTESTS_SRCS, SUBDIR_UNITTESTS_OBS): New.
14955 (%.o) <unittests/%.c>: New pattern.
14956 * configure.ac ($development): Add $(SUBDIR_UNITTESTS_OBS) to
14957 CONFIG_OBS, and $(SUBDIR_UNITTESTS_SRCS) to CONFIG_SRCS.
14958 * common/function-view.h: New file.
14959 * unittests/function-view-selftests.c: New file.
14960 * configure: Regenerate.
14961
14962 2017-02-23 Simon Marchi <simon.marchi@ericsson.com>
14963
14964 * bsd-uthread.c (bsd_uthread_thread_alive): Use ptid instead of
14965 inferior_ptid.
14966 * go32-nat.c (go32_thread_alive): Likewise.
14967
14968 2017-02-23 Yao Qi <yao.qi@linaro.org>
14969
14970 * varobj-iter.h (varobj_iter_delete): Call xfree instead of
14971 delete.
14972
14973 2017-02-23 Yao Qi <yao.qi@linaro.org>
14974
14975 * varobj.c (varobj_clear_saved_item): Use delete instead of
14976 xfree.
14977 (update_dynamic_varobj_children): Likewise.
14978
14979 2017-02-21 Jan Kratochvil <jan.kratochvil@redhat.com>
14980
14981 * dwarf2read.c (dwarf2_record_block_ranges): Add forgotten BASEADDR.
14982
14983 2017-02-21 Simon Marchi <simon.marchi@ericsson.com>
14984
14985 * common/enum-flags.h (enum_flags::enum_flags): Initialize
14986 m_enum_value to 0 in default constructor.
14987
14988 2017-02-21 Edjunior Barbosa Machado <emachado@linux.vnet.ibm.com>
14989
14990 * rs6000-tdep.c (LOAD_AND_RESERVE_MASK): Rename from LWARX_MASK.
14991 (STORE_CONDITIONAL_MASK): Rename from STWCX_MASK.
14992 (LBARX_INSTRUCTION, LHARX_INSTRUCTION, LQARX_INSTRUCTION,
14993 STBCX_INSTRUCTION, STHCX_INSTRUCTION, STQCX_INSTRUCTION): New defines.
14994 (IS_LOAD_AND_RESERVE_INSN, IS_STORE_CONDITIONAL_INSN): New macros.
14995 (ppc_displaced_step_copy_insn): Use IS_LOAD_AND_RESERVE_INSN.
14996 (ppc_deal_with_atomic_sequence): Use IS_LOAD_AND_RESERVE_INSN and
14997 IS_STORE_CONDITIONAL_INSN.
14998
14999 2017-02-21 Jan Kratochvil <jan.kratochvil@redhat.com>
15000
15001 * dwarf2_rnglists_process: Initialize range_beginning and range_end.
15002
15003 2017-02-20 Jan Kratochvil <jan.kratochvil@redhat.com>
15004
15005 * NEWS (Changes since GDB 7.12): Add DWARF-5.
15006
15007 2017-02-20 Jan Kratochvil <jan.kratochvil@redhat.com>
15008
15009 * dwarf2read.c (skip_one_die, read_attribute_value)
15010 (dwarf2_const_value_attr, dump_die_shallow)
15011 (dwarf2_get_attr_constant_value, dwarf2_fetch_constant_bytes)
15012 (skip_form_bytes, attr_form_is_constant): Handle DW_FORM_data16.
15013
15014 2017-02-20 Jan Kratochvil <jan.kratochvil@redhat.com>
15015
15016 * dwarf2read.c (read_file_scope): Rename DW_MACRO_GNU_*.
15017 (dwarf_parse_macro_header): Accept DWARF version 5.
15018 (dwarf_decode_macro_bytes, dwarf_decode_macros): Rename DW_MACRO_GNU_*.
15019
15020 2017-02-20 Jan Kratochvil <jan.kratochvil@redhat.com>
15021
15022 * block.c (call_site_for_pc): Rename DW_OP_GNU_*, DW_TAG_GNU_* and
15023 DW_AT_GNU_*.
15024 * common/common-exceptions.h (enum errors): Likewise.
15025 * dwarf2-frame.c (class dwarf_expr_executor): Likewise.
15026 * dwarf2expr.c (dwarf_block_to_dwarf_reg)
15027 (dwarf_expr_context::execute_stack_op): Likewise.
15028 * dwarf2expr.h (struct dwarf_expr_context, struct dwarf_expr_piece):
15029 Likewise.
15030 * dwarf2loc.c (dwarf_evaluate_loc_desc::get_base_type)
15031 (dwarf_evaluate_loc_desc::push_dwarf_reg_entry_value)
15032 (show_entry_values_debug, call_site_to_target_addr)
15033 (func_addr_to_tail_call_list, func_verify_no_selftailcall)
15034 (dwarf_expr_reg_to_entry_parameter, dwarf_entry_parameter_to_value)
15035 (entry_data_value_free_closure, value_of_dwarf_reg_entry)
15036 (value_of_dwarf_block_entry, indirect_pieced_value)
15037 (symbol_needs_eval_context::push_dwarf_reg_entry_value):
15038 (disassemble_dwarf_expression): Likewise.
15039 * dwarf2read.c (process_die, inherit_abstract_dies)
15040 (read_call_site_scope): Likewise.
15041 * gdbtypes.h (struct func_type, struct call_site_parameter)
15042 (struct call_site): Likewise.
15043 * stack.c (read_frame_arg): Likewise.
15044 * std-operator.def (OP_VAR_ENTRY_VALUE): Likewise.
15045
15046 2017-02-20 Jan Kratochvil <jan.kratochvil@redhat.com>
15047
15048 * defs.h (read_unsigned_leb128): New declaration.
15049 * dwarf2loc.c (decode_debug_loclists_addresses): New function.
15050 (decode_debug_loc_dwo_addresses): Update DEBUG_LOC_* to DW_LLE_*.
15051 (dwarf2_find_location_expression): Call also
15052 decode_debug_loclists_addresses. Handle DWARF-5 ULEB128 length.
15053 * dwarf2loc.h (dwarf2_version): New declaration.
15054 * dwarf2read.c (struct dwarf2_per_objfile): Add loclists, line_str,
15055 rnglists.
15056 (dwarf2_elf_names): Add .debug_loclists, .debug_line_str,
15057 .debug_rnglists.
15058 (struct dwop_section_names): Add loclists_dwo.
15059 (dwop_section_names): Add .debug_loclists.dwo.
15060 (struct comp_unit_head): Add unit_type, signature, type_offset_in_tu.
15061 (struct dwarf2_per_cu_data): Add dwarf_version.
15062 (struct dwo_sections): Add loclists.
15063 (struct attr_abbrev): Add implicit_const.
15064 (read_indirect_line_string): New declaration.
15065 (read_unsigned_leb128): Delete declaration.
15066 (rcuh_kind): New definition.
15067 (read_and_check_comp_unit_head): Change parameter
15068 is_debug_types_section to section_kind.
15069 (dwarf2_locate_sections): Handle loclists, line_str and rnglists.
15070 (read_comp_unit_head): Change parameter abfd to section, add parameter
15071 section_kind. Handle DWARF-5.
15072 (error_check_comp_unit_head): Accept also DWARF version 5.
15073 (read_and_check_comp_unit_head): Change parameter
15074 is_debug_types_section to section_kind.
15075 (read_and_check_type_unit_head): Delete function.
15076 (read_abbrev_offset): Handle DWARF-5.
15077 (create_debug_type_hash_table): Add parameter section_kind. Process
15078 only DW_UT_type. Use signature and type_offset_in_tu from struct
15079 comp_unit_head.
15080 (create_debug_types_hash_table): Update create_debug_type_hash_table
15081 caller.
15082 (create_all_type_units): Call create_debug_type_hash_table.
15083 (read_cutu_die_from_dwo, init_cutu_and_read_dies): Change
15084 read_and_check_type_unit_head caller to read_and_check_comp_unit_head
15085 caller.
15086 (skip_one_die): Handle DW_FORM_implicit_const.
15087 (dwarf2_rnglists_process): New function.
15088 (dwarf2_ranges_process): Call dwarf2_rnglists_process for DWARF-5.
15089 (abbrev_table_read_table): Handle DW_FORM_implicit_const.
15090 (read_attribute_value): Handle DW_FORM_implicit_const,
15091 DW_FORM_line_strp.
15092 (read_attribute): Handle DW_FORM_implicit_const.
15093 (read_indirect_string_at_offset_from): New function from
15094 read_indirect_string_at_offset.
15095 (read_indirect_string_at_offset): Call
15096 read_indirect_string_at_offset_from.
15097 (read_indirect_line_string_at_offset): New function.
15098 (read_indirect_string): New function comment.
15099 (read_indirect_line_string): New function.
15100 (read_unsigned_leb128): Make it global.
15101 (dwarf2_string_attr): Handle DWARF-5.
15102 (add_include_dir_stub, read_formatted_entries): New functions.
15103 (dwarf_decode_line_header, dump_die_shallow, cu_debug_loc_section):
15104 Handle DWARF-5.
15105 (per_cu_header_read_in): Update read_comp_unit_head caller.
15106 (dwarf2_version): New function.
15107 * symfile.h (struct dwarf2_debug_sections): Add loclists, line_str and
15108 rnglists.
15109 * xcoffread.c (dwarf2_xcoff_names): Update struct dwarf2_debug_sections
15110 fields.
15111
15112 2017-02-20 Jan Kratochvil <jan.kratochvil@redhat.com>
15113
15114 * dwarf2read.c (abbrev_table_read_table): Read the data only once.
15115
15116 2017-02-20 Jan Kratochvil <jan.kratochvil@redhat.com>
15117
15118 * dwarf2read.c (dwarf2_ranges_process): New function from
15119 dwarf2_ranges_read.
15120 (dwarf2_ranges_read, dwarf2_record_block_ranges): Use
15121 dwarf2_ranges_process.
15122
15123 2017-02-20 Jan Kratochvil <jan.kratochvil@redhat.com>
15124
15125 * dwarf2read.c (create_debug_type_hash_table): New function from
15126 create_debug_types_hash_table.
15127 (create_debug_types_hash_table): Call create_debug_type_hash_table.
15128 (create_all_type_units, open_and_init_dwo_file): Update
15129 create_debug_types_hash_table callers.
15130
15131 2017-02-20 Sergio Durigan Junior <sergiodj@redhat.com>
15132
15133 PR gdb/16188
15134 * fork-child.c (trace_start_error): Fix thinko. va_end should
15135 refer to 'ap', not 'args'.
15136
15137 2017-02-20 Sergio Durigan Junior <sergiodj@redhat.com>
15138 Pedro Alves <palves@redhat.com>
15139
15140 PR gdb/16188
15141 * darwin-nat.c (darwin_ptrace_me): Check if calls to system
15142 calls succeeded.
15143 * fork-child.c (trace_start_error): New function.
15144 (trace_start_error_with_name): Likewise.
15145 * gnu-nat.c (gnu_ptrace_me): Check if call to PTRACE succeeded.
15146 * inf-ptrace.c (inf_ptrace_me): Likewise.
15147 * inferior.h (trace_start_error): New prototype.
15148 (trace_start_error_with_name): Likewise.
15149
15150 2017-02-15 Sergio Durigan Junior <sergiodj@redhat.com>
15151
15152 PR gdb/21164
15153 * psymtab.c (maintenance_print_psymbols): Verify if 'argv' is not
15154 NULL before using it.
15155 * symmisc.c (maintenance_print_symbols): Likewise.
15156 (maintenance_print_msymbols): Likewise.
15157
15158 2017-02-14 Tim Wiederhake <tim.wiederhake@intel.com>
15159
15160 * NEWS: Add record Python bindings entry.
15161
15162 2017-02-14 Tim Wiederhake <tim.wiederhake@intel.com>
15163
15164 * Makefile.in (SUBDIR_PYTHON_OBS): Add py-record-btrace.o,
15165 py-record-full.o.
15166 (SUBDIR_PYTHON_SRCS): Add py-record-btrace.c, py-record-full.c.
15167 * python/py-record-btrace.c, python/py-record-btrace.h,
15168 python/py-record-full.c, python/py-record-full.h: New file.
15169 * python/py-record.c: Add include for py-record-btrace.h and
15170 py-record-full.h.
15171 (recpy_method, recpy_format, recpy_goto, recpy_replay_position,
15172 recpy_instruction_history, recpy_function_call_history, recpy_begin,
15173 recpy_end): Use functions from py-record-btrace.c and py-record-full.c.
15174 * python/python-internal.h (PyInt_FromSsize_t, PyInt_AsSsize_t):
15175 New definition.
15176 (gdbpy_initialize_btrace): New export.
15177 * python/python.c (_initialize_python): Add gdbpy_initialize_btrace.
15178
15179 2017-02-14 Tim Wiederhake <tim.wiederhake@intel.com>
15180
15181 * Makefile.in (SUBDIR_PYTHON_OBS): Add python/py-record.o.
15182 (SUBDIR_PYTHON_SRCS): Add python/py-record.c.
15183 * python/py-record.c: New file.
15184 * python/python-internal.h (gdbpy_start_recording,
15185 gdbpy_current_recording, gdpy_stop_recording,
15186 gdbpy_initialize_record): New export.
15187 * python/python.c (_initialize_python): Add gdbpy_initialize_record.
15188 (python_GdbMethods): Add gdbpy_start_recording,
15189 gdbpy_current_recording and gdbpy_stop_recording.
15190
15191 2017-02-14 Tim Wiederhake <tim.wiederhake@intel.com>
15192
15193 * record-btrace.c (record_btrace_record_method): New function.
15194 (init_record_btrace_ops): Initialize to_record_method.
15195 * record-full.c (record_full_record_method): New function.
15196 (init_record_full_ops, init_record_full_core_ops): Add
15197 record_full_record_method.
15198 * record.h (enum record_method): New enum.
15199 * target-debug.h (target_debug_print_enum_record_method: New define.
15200 * target-delegates.c: Regenerate.
15201 * target.c (target_record_method): New function.
15202 * target.h: Include record.h.
15203 (struct target_ops) <to_record_method>: New field.
15204 (target_record_method): New export.
15205
15206 2017-02-14 Tim Wiederhake <tim.wiederhake@intel.com>
15207
15208 * record.h (record_start, record_stop): New export.
15209 * record.c (record_start, record_stop): New function.
15210
15211 2017-02-14 Tim Wiederhake <tim.wiederhake@intel.com>
15212
15213 * btrace.c (btrace_fetch): Copy function call segments pointer
15214 into a vector.
15215 (btrace_clear): Clear the vector.
15216 (btrace_find_insn_by_number): Use binary search to find the correct
15217 function call segment.
15218 * btrace.h (brace_fun_p): New typedef.
15219 (struct btrace_thread_info) <functions>: New field.
15220
15221 2017-02-14 Tim Wiederhake <tim.wiederhake@intel.com>
15222
15223 * record-btrace.c (btrace_ui_out_decode_error): Move most of it ...
15224 * btrace.c (btrace_decode_error): ... here. New function.
15225 * btrace.h (btrace_decode_error): New export.
15226
15227 2017-02-14 Tim Wiederhake <tim.wiederhake@intel.com>
15228
15229 * btrace.c (ftrace_call_num_insn, btrace_insn_get_error): New function.
15230 (ftrace_new_function, btrace_insn_number, btrace_insn_cmp,
15231 btrace_find_insn_by_number): Remove special case for gaps.
15232 * btrace.h (btrace_insn_get_error): New export.
15233 (btrace_insn_number, btrace_find_insn_by_number): Adjust comment.
15234 * record-btrace.c (btrace_insn_history): Print number for gaps.
15235 (record_btrace_info, record_btrace_goto): Handle gaps.
15236
15237 2017-02-14 Tom Tromey <tom@tromey.com>
15238
15239 PR python/13598:
15240 * python/python.c (gdbpy_before_prompt_hook): Emit before_prompt
15241 event.
15242 * python/py-evts.c (gdbpy_initialize_py_events): Add
15243 before_prompt registry.
15244 * python/py-events.h (events_object) <before_prompt>: New field.
15245
15246 2017-02-14 Markus Metzger <markus.t.metzger@intel.com>
15247
15248 * btrace.c (ftrace_new_switch): Preserve up link and flags.
15249
15250 2017-02-13 Luis Machado <lgustavo@codesourcery.com>
15251
15252 * symfile (_initialize_symfile): Add usage text to the load command's
15253 help text.
15254
15255 2017-02-10 Simon Marchi <simon.marchi@ericsson.com>
15256
15257 * utils.c (defaulted_query): Don't query on secondary UIs.
15258
15259 2017-02-10 Tom Tromey <tom@tromey.com>
15260
15261 * rust-lang.c (rust_get_disr_info): Remove unused variable.
15262
15263 2017-02-10 Tom Tromey <tom@tromey.com>
15264
15265 * python/py-value.c (valpy_richcompare_throw): Remove unnecessary
15266 "cleanup" local.
15267 * python/py-type.c (typy_legacy_template_argument): Remove
15268 unnecessary "cleanup" local.
15269
15270 2017-02-10 Tom Tromey <tom@tromey.com>
15271
15272 * python/python.c (do_start_initialization): New function, from
15273 _initialize_python.
15274 (_initialize_python): Call do_start_initialization.
15275 * python/py-linetable.c (ltpy_iternext): Use explicit returns, not
15276 goto.
15277
15278 2017-02-10 Tom Tromey <tom@tromey.com>
15279
15280 * python/py-prettyprint.c (pretty_print_one_value): Use
15281 gdbpy_ref.
15282
15283 2017-02-10 Tom Tromey <tom@tromey.com>
15284
15285 * python/py-cmd.c (cmdpy_destroyer): Use gdbpy_ref.
15286 * python/py-breakpoint.c (gdbpy_breakpoint_deleted): Use
15287 gdbpy_ref.
15288 * python/py-type.c (field_new): Use gdbpy_ref.
15289 * python/py-symtab.c (symtab_and_line_to_sal_object): Use
15290 gdbpy_ref.
15291 * python/py-progspace.c (pspy_new): Use gdbpy_ref.
15292 (py_free_pspace): Likewise.
15293 (pspace_to_pspace_object): Likewise.
15294 * python/py-objfile.c (objfpy_new): Use gdbpy_ref.
15295 (py_free_objfile): Likewise.
15296 (objfile_to_objfile_object): Likewise.
15297 * python/py-inferior.c (delete_thread_object): Use
15298 gdbpy_ref.
15299 (infpy_read_memory): Likewise.
15300 (py_free_inferior): Likewise.
15301 * python/py-evtregistry.c (create_eventregistry_object): Use
15302 gdbpy_ref.
15303 * python/py-event.c (create_event_object): Use gdbpy_ref.
15304
15305 2017-02-10 Tom Tromey <tom@tromey.com>
15306
15307 * python/py-ref.h (gdbpy_ref_policy): Now a template.
15308 (gdbpy_ref): Now a template; allow subclasses of PyObject to be
15309 used.
15310 * python/py-arch.c, python/py-bpevent.c, python/py-breakpoint.c,
15311 python/py-cmd.c, python/py-continueevent.c, python/py-event.c,
15312 python/py-exitedevent.c, python/py-finishbreakpoint.c,
15313 python/py-framefilter.c, python/py-function.c,
15314 python/py-inferior.c, python/py-infevents.c,
15315 python/py-linetable.c, python/py-newobjfileevent.c,
15316 python/py-param.c, python/py-prettyprint.c, python/py-ref.h,
15317 python/py-signalevent.c, python/py-stopevent.c,
15318 python/py-symbol.c, python/py-threadevent.c, python/py-type.c,
15319 python/py-unwind.c, python/py-utils.c, python/py-value.c,
15320 python/py-varobj.c, python/py-xmethods.c, python/python.c,
15321 varobj.c: Change gdbpy_ref to gdbpy_ref<>.
15322
15323 2017-02-10 Tom Tromey <tom@tromey.com>
15324
15325 * ui-out.h (ui_out_emit_type): New class.
15326 (ui_out_emit_tuple, ui_out_emit_list): New typedefs.
15327 * python/py-framefilter.c (py_print_single_arg): Use gdb::optional
15328 and ui_out_emit_tuple.
15329 (enumerate_locals): Likewise.
15330 (py_mi_print_variables, py_print_locals, py_print_args): Use
15331 ui_out_emit_list.
15332 (py_print_frame): Use gdb::optional, ui_out_emit_tuple,
15333 ui_out_emit_list.
15334 * common/gdb_optional.h: New file.
15335
15336 2017-02-10 Martin Galvan <martingalvan@sourceware.org>
15337
15338 * MAINTAINERS (Write After Approval): Update my e-mail address.
15339
15340 2017-02-10 Martin Galvan <martingalvan@sourceware.org>
15341
15342 PR gdb/21122
15343 * breakpoint.c (_initialize_breakpoint): Update the help description
15344 of the 'commands' command to indicate that it takes a list argument.
15345
15346 2017-02-09 Simon Marchi <simon.marchi@ericsson.com>
15347
15348 * interps.c (current_interp_set_logging): Remove "return".
15349
15350 2017-02-09 Gary Benson <gbenson@redhat.com>
15351
15352 * symtab.c (add_symtab_completions): Prevent NULL pointer
15353 dereference.
15354
15355 2017-02-08 Pedro Alves <palves@redhat.com>
15356
15357 * interps.c (interp::interp): Remove reference to quiet_p.
15358 (interp_set): Make static. Remove dead "Switching to" output
15359 code.
15360 (interp_quiet_p, interp_set_quiet): Delete.
15361 (interpreter_exec_cmd): Don't set the interpreter quiet.
15362 * interps.h (interp_quiet_p): Make static.
15363 (class interp) <quiet_p>: Remove field
15364
15365 2017-02-08 Jerome Guitton <guitton@adacore.com>
15366
15367 * cli/cli-decode.c (find_command_name_length): Make it extern.
15368 * cli/cli-decode.h (find_command_name_length): Declare.
15369 * cli/cli-script.c (command_name_equals, line_first_arg):
15370 New functions.
15371 (process_next_line): Use cli-decode to parse command names.
15372 (build_command_line): Make args a constant pointer.
15373
15374 2017-02-08 Jerome Guitton <guitton@adacore.com>
15375
15376 * cli-decode.c (lookup_cmd_1, lookup_cmd_composition):
15377 Remove case-insensitive search.
15378
15379 2017-02-07 Jose E. Marchesi <jose.marchesi@oracle.com>
15380
15381 * sparc-tdep.c (sparc32_gdbarch_init): Do not place a + operator
15382 at the end of the line. Avoids an ARI warning.
15383
15384 2017-02-06 Luis Machado <lgustavo@codesourcery.com>
15385
15386 * NEWS: Mention support for record/replay of Intel 64 rdrand and
15387 rdseed instructions.
15388 i386-tdep.c (i386_process_record): Handle Intel 64 rdrand and rseed.
15389
15390 2017-02-06 Ivo Raisr <ivo.raisr@oracle.com>
15391
15392 PR tdep/20936
15393 Provide and use sparc32 and sparc64 target description XML files.
15394 * features/sparc/sparc32-cp0.xml, features/sparc/sparc32-cpu.xml,
15395 features/sparc/sparc32-fpu.xml: New files for sparc 32-bit.
15396 * features/sparc/sparc64-cp0.xml, features/sparc/sparc64-cpu.xml,
15397 features/sparc/sparc64-fpu.xml: New files for sparc 64-bit.
15398 * features/sparc/sparc32-solaris.xml: New file.
15399 * features/sparc/sparc64-solaris.xml: New file.
15400 * features/sparc/sparc32-solaris.c: Generated.
15401 * features/sparc/sparc64-solaris.c: Generated.
15402 * sparc-tdep.h: Account for differences in target descriptions.
15403 * sparc-tdep.c (sparc32_register_name): Use target provided registers.
15404 (sparc32_register_type): Use target provided registers.
15405 (validate_tdesc_registers): New function.
15406 (sparc32_gdbarch_init): Use tdesc_has_registers.
15407 Set pseudoregister functions.
15408 * sparc64-tdep.c (sparc64_register_name): Use target provided registers.
15409 (sparc64_register_type): Use target provided registers.
15410 (sparc64_init_abi): Set pseudoregister functions.
15411
15412 2017-02-03 Tom Tromey <tom@tromey.com>
15413
15414 PR rust/21097:
15415 * rust-lang.c (rust_print_type) <TYPE_CODE_UNION>: Handle enums
15416 with a single member.
15417
15418 2017-02-03 Pedro Alves <palves@redhat.com>
15419
15420 * cli/cli-interp.c (cli_interp_base::cli_interp_base)
15421 (cli_interp_base::~cli_interp_base): New.
15422 (cli_interp): New struct.
15423 (as_cli_interp): Cast the interp itself to cli_interp.
15424 (cli_interpreter_pre_command_loop): Rename to ...
15425 (cli_interp_base::pre_command_loop): ... this. Remove 'self'
15426 parameter.
15427 (cli_interpreter_init): Rename to ...
15428 (cli_interp::init): ... this. Remove 'self' parameter. Use
15429 boolean. Make extern.
15430 (cli_interpreter_resume): Rename to ...
15431 (cli_interp::resume): ... this. Remove 'data' parameter. Make
15432 extern.
15433 (cli_interpreter_suspend): Rename to ...
15434 (cli_interp::suspend): ... this. Remove 'data' parameter. Make
15435 extern.
15436 (cli_interpreter_exec): Rename to ...
15437 (cli_interp::exec): ... this. Remove 'data' parameter. Make
15438 extern.
15439 (cli_interpreter_supports_command_editing): Rename to ...
15440 (cli_interp_base::supports_command_editing): ... this. Remove
15441 'interp' parameter. Make extern.
15442 (cli_ui_out): Rename to ...
15443 (cli_interp::interp_ui_out): ... this. Remove 'interp' parameter.
15444 Make extern.
15445 (cli_set_logging): Rename to ...
15446 (cli_interp_base::set_logging): ... this. Remove 'interp'
15447 parameter. Make extern.
15448 (cli_interp_procs): Delete.
15449 (cli_interp_factory): Adjust to use "new".
15450 * cli/cli-interp.h: Include "interps.h".
15451 (struct cli_interp_base): New struct.
15452 * interps.c (struct interp): Delete. Fields moved to interps.h.
15453 (interp_new): Delete.
15454 (interp::interp, interp::~interp): New.
15455 (interp_set): Use bool, and return void. Assume the interpreter
15456 has suspend, init and resume methods, and that the all return
15457 void.
15458 (set_top_level_interpreter): interp_set returns void.
15459 (interp_ui_out): Adapt.
15460 (current_interp_set_logging): Adapt.
15461 (interp_data): Delete.
15462 (interp_pre_command_loop, interp_supports_command_editing): Adapt.
15463 (interp_exec): Adapt.
15464 (top_level_interpreter_data): Delete.
15465 * interps.h (interp_init_ftype, interp_resume_ftype)
15466 (interp_suspend_ftype, interp_exec_ftype)
15467 (interp_pre_command_loop_ftype, interp_ui_out_ftype): Delete.
15468 (class interp): New.
15469 (interp_new): Delete.
15470 (interp_set): Now returns void. Use bool.
15471 (interp_data, top_level_interpreter_data): Delete.
15472 * mi/mi-common.h: Include interps.h.
15473 (class mi_interp): Inherit from interp. Define a ctor. Declare
15474 init, resume, suspect, exec, interp_ui_out, set_logging and
15475 pre_command_loop methods.
15476 * mi/mi-interp.c (as_mi_interp): Cast the interp itself.
15477 (mi_interpreter_init): Rename to ...
15478 (mi_interp::init): ... this. Remove the 'interp' parameter, use
15479 bool, return void and make extern. Adjust.
15480 (mi_interpreter_resume): ... Rename to ...
15481 (mi_interp::resume): ... this. Remove the 'data' parameter,
15482 return void and make extern. Adjust.
15483 (mi_interpreter_suspend): ... Rename to ...
15484 (mi_interp::suspend): ... this. Remove the 'data' parameter,
15485 return void and make extern. Adjust.
15486 (mi_interpreter_exec): ... Rename to ...
15487 (mi_interp::exec): ... this. Remove the 'data' parameter and make
15488 extern. Adjust.
15489 (mi_interpreter_pre_command_loop): ... Rename to ...
15490 (mi_interp::pre_command_loop): ... this. Remove the 'self'
15491 parameter and make extern.
15492 (mi_on_normal_stop_1): Adjust.
15493 (mi_ui_out): Rename to ...
15494 (mi_interp::interp_ui_out): ... this. Remove the 'interp'
15495 parameter and make extern. Adjust.
15496 (mi_set_logging): Rename to ...
15497 (mi_interp::set_logging): ... this. Remove the 'interp'
15498 parameter and make extern. Adjust.
15499 (mi_interp_procs): Delete.
15500 (mi_interp_factory): Adjust to use 'new'.
15501 * mi/mi-main.c (mi_cmd_gdb_exit, captured_mi_execute_command)
15502 (mi_print_exception, mi_execute_command, mi_load_progress):
15503 Adjust.
15504 * tui/tui-interp.c (tui_interp): New class.
15505 (as_tui_interp): Return a tui_interp pointer.
15506 (tui_on_normal_stop, tui_on_signal_received)
15507 (tui_on_end_stepping_range, tui_on_signal_exited, tui_on_exited)
15508 (tui_on_no_history, tui_on_user_selected_context_changed): Adjust
15509 to use interp::interp_ui_out.
15510 (tui_init): Rename to ...
15511 (tui_interp::init): ... this. Remove the 'self' parameter, use
15512 bool, return void and make extern. Adjust.
15513 (tui_resume): Rename to ...
15514 (tui_interp::resume): ... this. Remove the 'data' parameter,
15515 return void and make extern. Adjust.
15516 (tui_suspend): Rename to ...
15517 (tui_interp::suspend): ... this. Remove the 'data' parameter,
15518 return void and make extern. Adjust.
15519 (tui_ui_out): Rename to ...
15520 (tui_interp::interp_ui_out): ... this. Remove the 'self'
15521 parameter, and make extern. Adjust.
15522 (tui_exec): Rename to ...
15523 (tui_interp::exec): ... this. Remove the 'data' parameter and
15524 make extern.
15525 (tui_interp_procs): Delete.
15526 (tui_interp_factory): Use "new".
15527
15528 2017-02-02 Tom Tromey <tom@tromey.com>
15529
15530 * rust-exp.y (ends_raw_string, space_then_number)
15531 (rust_identifier_start_p): Return bool.
15532 * rust-lang.c (rust_tuple_type_p, rust_underscore_fields)
15533 (rust_tuple_struct_type_p, rust_tuple_variant_type_p)
15534 (rust_slice_type_p, rust_range_type_p, rust_u8_type_p)
15535 (rust_chartype_p): Return bool.
15536 (val_print_struct, rust_print_struct_def, rust_print_type):
15537 Update.
15538 * rust-lang.h (rust_tuple_type_p, rust_tuple_struct_type_p):
15539 Return bool.
15540
15541 2017-02-02 Tom Tromey <tom@tromey.com>
15542
15543 * rust-lang.c: Reindent.
15544
15545 2017-02-02 Tom Tromey <tom@tromey.com>
15546
15547 * rust-lang.h (rust_crate_for_block): Update.
15548 * rust-lang.c (rust_crate_for_block): Return std::string.
15549 (rust_get_disr_info): Use std:;string, not
15550 gdb::unique_xmalloc_ptr.
15551 * rust-exp.y (crate_name): Update.
15552
15553 2017-02-02 Pedro Alves <palves@redhat.com>
15554
15555 * disasm-selftests.c (print_one_insn_test): Move the "verbose"
15556 field out of gdb_disassembler_test and make it static.
15557
15558 2017-02-02 Pedro Alves <palves@redhat.com>
15559
15560 * mi/mi-common.h (struct mi_interp): Delete the mi2_interp,
15561 mi1_interp and mi_interp fields.
15562
15563 2017-02-02 Pedro Alves <palves@redhat.com>
15564
15565 * cli/cli-interp.c (struct saved_output_files, saved_output):
15566 Moved from cli/cli-logging.c.
15567 (cli_set_logging): New function.
15568 (cli_interp_procs): Install cli_set_logging.
15569 * cli/cli-interp.h (make_logging_output, cli_set_logging):
15570 Declare.
15571 * cli/cli-logging.c (struct saved_output_files, saved_output):
15572 Moved to cli/cli-interp.c.
15573 (pop_output_files): Don't save outputs here.
15574 (make_logging_output): New function.
15575 (handle_redirections): Don't build tee nor save previous outputs
15576 here.
15577 * interps.c (current_interp_set_logging): Change prototype.
15578 Assume there's always a set_logging_proc method installed.
15579 * interps.h (interp_set_logging_ftype): Change prototype.
15580 (current_interp_set_logging): Change prototype and adjust comment.
15581 * mi/mi-interp.c (mi_set_logging): Change protototype. Adjust to
15582 use make_logging_output.
15583 * tui/tui-interp.c (tui_interp_procs): Install cli_set_logging.
15584 2017-02-02 Pedro Alves <palves@redhat.com>
15585
15586 * cli/cli-logging.c (maybe_warn_already_logging): New factored out
15587 from ...
15588 (set_logging_overwrite): ... here.
15589 (logging_no_redirect_file): Delete.
15590 (set_logging_redirect): Don't handle redirection on the fly.
15591 Instead warn that "logging off" / "logging on" is necessary.
15592 (pop_output_files): Delete references to logging_no_redirect_file.
15593 (show_logging_command): Always speak in terms of what will happen
15594 once logging is reenabled.
15595
15596 2017-02-02 Pedro Alves <palves@redhat.com>
15597
15598 * disasm.h (gdb_pretty_print_disassembler): Tweak intro comment.
15599
15600 2017-02-02 Pedro Alves <palves@redhat.com>
15601
15602 * disasm.c (gdb_pretty_print_insn): Rename to ...
15603 (gdb_pretty_print_disassembler::pretty_print_insn): ... this.
15604 Remove gdbarch parameter. Adapt to clear the object's buffers
15605 instead of allocating new buffers, and to print using the object's
15606 gdb_disassembler instead of calling gdb_print_insn.
15607 (dump_insns): Use gdb_pretty_print_disassembler.
15608 * disasm.h (gdb_pretty_print_insn): Delete declaration.
15609 (gdb_pretty_print_disassembler): New class.
15610 * record-btrace.c (btrace_insn_history): Use
15611 gdb_pretty_print_disassembler.
15612
15613 2017-02-02 Pedro Alves <palves@redhat.com>
15614
15615 * ada-lang.c (type_as_string): Use string_file.
15616 * ada-valprint.c (ada_print_floating): Use string_file.
15617 * ada-varobj.c (ada_varobj_scalar_image)
15618 (ada_varobj_get_value_image): Use string_file.
15619 * aix-thread.c (aix_thread_extra_thread_info): Use string_file.
15620 * arm-tdep.c (_initialize_arm_tdep): Use string_printf.
15621 * breakpoint.c (update_inserted_breakpoint_locations)
15622 (insert_breakpoint_locations, reattach_breakpoints)
15623 (print_breakpoint_location, print_one_detail_ranged_breakpoint)
15624 (print_it_watchpoint): Use string_file.
15625 (save_breakpoints): Use stdio_file.
15626 * c-exp.y (oper): Use string_file.
15627 * cli/cli-logging.c (set_logging_redirect): Use ui_file_up and
15628 tee_file.
15629 (pop_output_files): Use delete.
15630 (handle_redirections): Use stdio_file and tee_file.
15631 * cli/cli-setshow.c (do_show_command): Use string_file.
15632 * compile/compile-c-support.c (c_compute_program): Use
15633 string_file.
15634 * compile/compile-c-symbols.c (generate_vla_size): Take a
15635 'string_file &' instead of a 'ui_file *'.
15636 (generate_c_for_for_one_variable): Take a 'string_file &' instead
15637 of a 'ui_file *'. Use string_file.
15638 (generate_c_for_variable_locations): Take a 'string_file &'
15639 instead of a 'ui_file *'.
15640 * compile/compile-internal.h (generate_c_for_for_one_variable):
15641 Take a 'string_file &' instead of a 'ui_file *'.
15642 * compile/compile-loc2c.c (push, pushf, unary, binary)
15643 (print_label, pushf_register_address, pushf_register)
15644 (do_compile_dwarf_expr_to_c): Take a 'string_file &' instead of a
15645 'ui_file *'. Adjust.
15646 * compile/compile.c (compile_to_object): Use string_file.
15647 * compile/compile.h (compile_dwarf_expr_to_c)
15648 (compile_dwarf_bounds_to_c): Take a 'string_file &' instead of a
15649 'ui_file *'.
15650 * cp-support.c (inspect_type): Use string_file and obstack_copy0.
15651 (replace_typedefs_qualified_name): Use string_file and
15652 obstack_copy0.
15653 * disasm.c (gdb_pretty_print_insn): Use string_file.
15654 (gdb_disassembly): Adjust reference the null_stream global.
15655 (do_ui_file_delete): Delete.
15656 (gdb_insn_length): Use null_stream.
15657 * dummy-frame.c (maintenance_print_dummy_frames): Use stdio_file.
15658 * dwarf2loc.c (dwarf2_compile_property_to_c)
15659 (locexpr_generate_c_location, loclist_generate_c_location): Take a
15660 'string_file &' instead of a 'ui_file *'.
15661 * dwarf2loc.h (dwarf2_compile_property_to_c): Likewise.
15662 * dwarf2read.c (do_ui_file_peek_last): Delete.
15663 (dwarf2_compute_name): Use string_file.
15664 * event-top.c (gdb_setup_readline): Use stdio_file.
15665 * gdbarch.sh (verify_gdbarch): Use string_file.
15666 * gdbtypes.c (safe_parse_type): Use null_stream.
15667 * guile/scm-breakpoint.c (gdbscm_breakpoint_commands): Use
15668 string_file.
15669 * guile/scm-disasm.c (gdbscm_print_insn_from_port): Take a
15670 'string_file *' instead of a 'ui_file *'.
15671 (gdbscm_arch_disassemble): Use string_file.
15672 * guile/scm-frame.c (frscm_print_frame_smob): Use string_file.
15673 * guile/scm-ports.c (class ioscm_file_port): Now a class that
15674 inherits from ui_file.
15675 (ioscm_file_port_delete, ioscm_file_port_rewind)
15676 (ioscm_file_port_put): Delete.
15677 (ioscm_file_port_write): Rename to ...
15678 (ioscm_file_port::write): ... this. Remove file_port_magic
15679 checks.
15680 (ioscm_file_port_new): Delete.
15681 (ioscm_with_output_to_port_worker): Use ioscm_file_port and
15682 ui_file_up.
15683 * guile/scm-type.c (tyscm_type_name): Use string_file.
15684 * guile/scm-value.c (vlscm_print_value_smob, gdbscm_value_print):
15685 Use string_file.
15686 * infcmd.c (print_return_value_1): Use string_file.
15687 * infrun.c (print_target_wait_results): Use string_file.
15688 * language.c (add_language): Use string_file.
15689 * location.c (explicit_to_string_internal): Use string_file.
15690 * main.c (captured_main_1): Use null_file.
15691 * maint.c (maintenance_print_architecture): Use stdio_file.
15692 * mi/mi-cmd-stack.c (list_arg_or_local): Use string_file.
15693 * mi/mi-common.h (struct mi_interp) <out, err, log, targ,
15694 event_channel>: Change type to mi_console_file pointer.
15695 * mi/mi-console.c (mi_console_file_fputs, mi_console_file_flush)
15696 (mi_console_file_delete): Delete.
15697 (struct mi_console_file): Delete.
15698 (mi_console_file_magic): Delete.
15699 (mi_console_file_new): Delete.
15700 (mi_console_file::mi_console_file): New.
15701 (mi_console_file_delete): Delete.
15702 (mi_console_file_fputs): Delete.
15703 (mi_console_file::write): New.
15704 (mi_console_raw_packet): Delete.
15705 (mi_console_file::flush): New.
15706 (mi_console_file_flush): Delete.
15707 (mi_console_set_raw): Rename to ...
15708 (mi_console_file::set_raw): ... this.
15709 * mi/mi-console.h (class mi_console_file): New class.
15710 (mi_console_file_new, mi_console_set_raw): Delete.
15711 * mi/mi-interp.c (mi_interpreter_init): Use mi_console_file.
15712 (mi_set_logging): Use delete and tee_file. Adjust.
15713 * mi/mi-main.c (output_register): Use string_file.
15714 (mi_cmd_data_evaluate_expression): Use string_file.
15715 (mi_cmd_data_read_memory): Use string_file.
15716 (mi_cmd_execute, print_variable_or_computed): Use string_file.
15717 * mi/mi-out.c (mi_ui_out::main_stream): New.
15718 (mi_ui_out::rewind): Use main_stream and
15719 string_file.
15720 (mi_ui_out::put): Use main_stream and string_file.
15721 (mi_ui_out::mi_ui_out): Remove 'stream' parameter.
15722 Allocate a 'string_file' instead.
15723 (mi_out_new): Don't allocate a mem_fileopen stream here.
15724 * mi/mi-out.h (mi_ui_out::mi_ui_out): Remove 'stream' parameter.
15725 (mi_ui_out::main_stream): Declare method.
15726 * printcmd.c (eval_command): Use string_file.
15727 * psymtab.c (maintenance_print_psymbols): Use stdio_file.
15728 * python/py-arch.c (archpy_disassemble): Use string_file.
15729 * python/py-breakpoint.c (bppy_get_commands): Use string_file.
15730 * python/py-frame.c (frapy_str): Use string_file.
15731 * python/py-framefilter.c (py_print_type, py_print_single_arg):
15732 Use string_file.
15733 * python/py-type.c (typy_str): Use string_file.
15734 * python/py-unwind.c (unwind_infopy_str): Use string_file.
15735 * python/py-value.c (valpy_str): Use string_file.
15736 * record-btrace.c (btrace_insn_history): Use string_file.
15737 * regcache.c (regcache_print): Use stdio_file.
15738 * reggroups.c (maintenance_print_reggroups): Use stdio_file.
15739 * remote.c (escape_buffer): Use string_file.
15740 * rust-lang.c (rust_get_disr_info): Use string_file.
15741 * serial.c (serial_open_ops_1): Use stdio_file.
15742 (do_serial_close): Use delete.
15743 * stack.c (print_frame_arg): Use string_file.
15744 (print_frame_args): Remove local mem_fileopen stream, not used.
15745 (print_frame): Use string_file.
15746 * symmisc.c (maintenance_print_symbols): Use stdio_file.
15747 * symtab.h (struct symbol_computed_ops) <generate_c_location>:
15748 Take a 'string_file *' instead of a 'ui_file *'.
15749 * top.c (new_ui): Use stdio_file and stderr_file.
15750 (free_ui): Use delete.
15751 (execute_command_to_string): Use string_file.
15752 (quit_confirm): Use string_file.
15753 * tracepoint.c (collection_list::append_exp): Use string_file.
15754 * tui/tui-disasm.c (tui_disassemble): Use string_file.
15755 * tui/tui-file.c: Don't include "ui-file.h".
15756 (enum streamtype, struct tui_stream): Delete.
15757 (tui_file_new, tui_file_delete, tui_fileopen, tui_sfileopen)
15758 (tui_file_isatty, tui_file_rewind, tui_file_put): Delete.
15759 (tui_file::tui_file): New method.
15760 (tui_file_fputs): Delete.
15761 (tui_file_get_strbuf): Delete.
15762 (tui_file::puts): New method.
15763 (tui_file_adjust_strbuf): Delete.
15764 (tui_file_flush): Delete.
15765 (tui_file::flush): New method.
15766 * tui/tui-file.h: Tweak intro comment.
15767 Include ui-file.h.
15768 (tui_fileopen, tui_sfileopen, tui_file_get_strbuf)
15769 (tui_file_adjust_strbuf): Delete declarations.
15770 (class tui_file): New class.
15771 * tui/tui-io.c (tui_initialize_io): Use tui_file.
15772 * tui/tui-regs.c (tui_restore_gdbout): Use delete.
15773 (tui_register_format): Use string_stream.
15774 * tui/tui-stack.c (tui_make_status_line): Use string_file.
15775 (tui_get_function_from_frame): Use string_file.
15776 * typeprint.c (type_to_string): Use string_file.
15777 * ui-file.c (struct ui_file, ui_file_magic, ui_file_new): Delete.
15778 (null_stream): New global.
15779 (ui_file_delete): Delete.
15780 (ui_file::ui_file): New.
15781 (null_file_isatty): Delete.
15782 (ui_file::~ui_file): New.
15783 (null_file_rewind): Delete.
15784 (ui_file::printf): New.
15785 (null_file_put): Delete.
15786 (null_file_flush): Delete.
15787 (ui_file::putstr): New.
15788 (null_file_write): Delete.
15789 (ui_file::putstrn): New.
15790 (null_file_read): Delete.
15791 (ui_file::putc): New.
15792 (null_file_fputs): Delete.
15793 (null_file_write_async_safe): Delete.
15794 (ui_file::vprintf): New.
15795 (null_file_delete): Delete.
15796 (null_file::write): New.
15797 (null_file_fseek): Delete.
15798 (null_file::puts): New.
15799 (ui_file_data): Delete.
15800 (null_file::write_async_safe): New.
15801 (gdb_flush, ui_file_isatty): Adjust.
15802 (ui_file_put, ui_file_rewind): Delete.
15803 (ui_file_write): Adjust.
15804 (ui_file_write_for_put): Delete.
15805 (ui_file_write_async_safe, ui_file_read): Adjust.
15806 (ui_file_fseek): Delete.
15807 (fputs_unfiltered): Adjust.
15808 (set_ui_file_flush, set_ui_file_isatty, set_ui_file_rewind)
15809 (set_ui_file_put, set_ui_file_write, set_ui_file_write_async_safe)
15810 (set_ui_file_read, set_ui_file_fputs, set_ui_file_fseek)
15811 (set_ui_file_data): Delete.
15812 (string_file::~string_file, string_file::write)
15813 (struct accumulated_ui_file, do_ui_file_xstrdup, ui_file_xstrdup)
15814 (do_ui_file_as_string, ui_file_as_string): Delete.
15815 (do_ui_file_obsavestring, ui_file_obsavestring): Delete.
15816 (struct mem_file): Delete.
15817 (mem_file_new): Delete.
15818 (stdio_file::stdio_file): New.
15819 (mem_file_delete): Delete.
15820 (stdio_file::stdio_file): New.
15821 (mem_fileopen): Delete.
15822 (stdio_file::~stdio_file): New.
15823 (mem_file_rewind): Delete.
15824 (stdio_file::set_stream): New.
15825 (mem_file_put): Delete.
15826 (stdio_file::open): New.
15827 (mem_file_write): Delete.
15828 (stdio_file_magic, struct stdio_file): Delete.
15829 (stdio_file_new, stdio_file_delete, stdio_file_flush): Delete.
15830 (stdio_file::flush): New.
15831 (stdio_file_read): Rename to ...
15832 (stdio_file::read): ... this. Adjust.
15833 (stdio_file_write): Rename to ...
15834 (stdio_file::write): ... this. Adjust.
15835 (stdio_file_write_async_safe): Rename to ...
15836 (stdio_file::write_async_safe) ... this. Adjust.
15837 (stdio_file_fputs): Rename to ...
15838 (stdio_file::puts) ... this. Adjust.
15839 (stdio_file_isatty): Delete.
15840 (stdio_file_fseek): Delete.
15841 (stdio_file::isatty): New.
15842 (stderr_file_write): Rename to ...
15843 (stderr_file::write) ... this. Adjust.
15844 (stderr_file_fputs): Rename to ...
15845 (stderr_file::puts) ... this. Adjust.
15846 (stderr_fileopen, stdio_fileopen, gdb_fopen): Delete.
15847 (stderr_file::stderr_file): New.
15848 (tee_file_magic): Delete.
15849 (struct tee_file): Delete.
15850 (tee_file::tee_file): New.
15851 (tee_file_new): Delete.
15852 (tee_file::~tee_file): New.
15853 (tee_file_delete): Delete.
15854 (tee_file_flush): Rename to ...
15855 (tee_file::flush): ... this. Adjust.
15856 (tee_file_write): Rename to ...
15857 (tee_file::write): ... this. Adjust.
15858 (tee_file::write_async_safe): New.
15859 (tee_file_fputs): Rename to ...
15860 (tee_file::puts): ... this. Adjust.
15861 (tee_file_isatty): Rename to ...
15862 (tee_file::isatty): ... this. Adjust.
15863 * ui-file.h (struct obstack, struct ui_file): Don't
15864 forward-declare.
15865 (ui_file_new, ui_file_flush_ftype, set_ui_file_flush)
15866 (ui_file_write_ftype)
15867 (set_ui_file_write, ui_file_fputs_ftype, set_ui_file_fputs)
15868 (ui_file_write_async_safe_ftype, set_ui_file_write_async_safe)
15869 (ui_file_read_ftype, set_ui_file_read, ui_file_isatty_ftype)
15870 (set_ui_file_isatty, ui_file_rewind_ftype, set_ui_file_rewind)
15871 (ui_file_put_method_ftype, ui_file_put_ftype, set_ui_file_put)
15872 (ui_file_delete_ftype, set_ui_file_data, ui_file_fseek_ftype)
15873 (set_ui_file_fseek): Delete.
15874 (ui_file_data, ui_file_delete, ui_file_rewind)
15875 (struct ui_file): New.
15876 (ui_file_up): New.
15877 (class null_file): New.
15878 (null_stream): Declare.
15879 (ui_file_write_for_put, ui_file_put): Delete.
15880 (ui_file_xstrdup, ui_file_as_string, ui_file_obsavestring):
15881 Delete.
15882 (ui_file_fseek, mem_fileopen, stdio_fileopen, stderr_fileopen)
15883 (gdb_fopen, tee_file_new): Delete.
15884 (struct string_file): New.
15885 (struct stdio_file): New.
15886 (stdio_file_up): New.
15887 (struct stderr_file): New.
15888 (class tee_file): New.
15889 * ui-out.c (ui_out::field_stream): Take a 'string_file &' instead
15890 of a 'ui_file *'. Adjust.
15891 * ui-out.h (class ui_out) <field_stream>: Likewise.
15892 * utils.c (do_ui_file_delete, make_cleanup_ui_file_delete)
15893 (null_stream): Delete.
15894 (error_stream): Take a 'string_file &' instead of a 'ui_file *'.
15895 Adjust.
15896 * utils.h (struct ui_file): Delete forward declaration..
15897 (make_cleanup_ui_file_delete, null_stream): Delete declarations.
15898 (error_stream): Take a 'string_file &' instead of a
15899 'ui_file *'.
15900 * varobj.c (varobj_value_get_print_value): Use string_file.
15901 * xtensa-tdep.c (xtensa_verify_config): Use string_file.
15902 * gdbarch.c: Regenerate.
15903
15904 2017-02-02 Pedro Alves <palves@redhat.com>
15905
15906 * disasm.c (gdb_disassembler::pretty_print_insn): Rename to...
15907 (gdb_pretty_print_insn): ... this. Now a free function. Add back
15908 a 'gdbarch' parameter. Allocate a mem_fileopen stream here.
15909 Adjust to call gdb_print_insn instead of
15910 gdb_disassembler::print_insn.
15911 (dump_insns, do_mixed_source_and_assembly_deprecated)
15912 (do_mixed_source_and_assembly, do_assembly_only): Add back a
15913 'gdbarch' parameter. Remove gdb_disassembler parameter.
15914 (gdb_disassembly): Don't allocate a gdb_disassembler here.
15915 * disasm.h (gdb_disassembler::pretty_print_insn): Delete
15916 declaration.
15917 (gdb_pretty_print_insn): Re-add declaration.
15918 * record-btrace.c (btrace_insn_history): Don't allocate a
15919 gdb_disassembler here. Adjust to call gdb_pretty_print_insn.
15920
15921 2017-02-01 Simon Marchi <simon.marchi@polymtl.ca>
15922
15923 * disasm.h (gdb_disassembly): Remove file_string parameter.
15924 * disasm.c (gdb_disassembly): Likewise.
15925 * cli/cli-cmds.c (print_disassembly): Adapt.
15926 * mi/mi-cmd-disas.c (mi_cmd_disassemble): Likewise.
15927 * stack.c (do_gdb_disassembly): Likewise.
15928
15929 2017-02-01 Andreas Arnez <arnez@linux.vnet.ibm.com>
15930
15931 * dwarf2loc.c (dwarf2_evaluate_loc_desc_full): For
15932 DWARF_VALUE_LITERAL, no longer ignore the offset on big-endian
15933 targets. And if the implicit value is longer than needed, extract
15934 the first bytes instead of the "least significant" ones.
15935
15936 2017-02-01 Markus Metzger <markus.t.metzger@intel.com>
15937
15938 * btrace.c (btrace_enable): Do not call btrace_add_pc for
15939 BTRACE_FORMAT_PT or if can_access_registers_ptid returns false.
15940 (btrace_fetch): Assert can_access_registers_ptid.
15941 * record-btrace.c (require_btrace_thread, record_btrace_info): Call
15942 validate_registers_access.
15943
15944 2017-02-01 Markus Metzger <markus.t.metzger@intel.com>
15945
15946 * gdbthread.h (can_access_registers_ptid): New.
15947 * thread.c (can_access_registers_ptid): New.
15948
15949 2017-02-01 Pedro Alves <palves@redhat.com>
15950
15951 * i386-tdep.c (i386_fast_tracepoint_valid_at): Use gdb_insn_length.
15952
15953 2017-01-31 Pedro Alves <palves@redhat.com>
15954
15955 * mi/mi-interp.c (mi_breakpoint_created, mi_breakpoint_modified):
15956 Fix typos.
15957
15958 2017-01-31 Pedro Alves <palves@redhat.com>
15959
15960 * stack.c (print_frame_args): Remove local mem_fileopen stream,
15961 not used.
15962
15963 2017-01-31 Pedro Alves <palves@redhat.com>
15964
15965 * varobj.c (varobj_value_get_print_value): Remove xstrdup call.
15966
15967 2017-01-31 Pedro Alves <palves@redhat.com>
15968
15969 * common/scoped_restore.h
15970 (scoped_restore_tmpl::scoped_restore_tmpl): Template on T2, and
15971 change the value's parameter type to T2.
15972 (make_scoped_restore): Likewise.
15973
15974 2017-01-27 Walfred Tedeschi <walfred.tedeschi@intel.com>
15975 Richard Henderson <rth@redhat.com>
15976
15977 * amd64-linux-nat.c (PTRACE_ARCH_PRCTL): New define.
15978 (amd64_linux_fetch_inferior_registers): Add case to fetch FS_BASE
15979 GS_BASE for older kernels.
15980 (amd64_linux_store_inferior_registers): Add case to store FS_BASE
15981 GS_BASE for older kernels.
15982 * amd64-linux-tdep.c (amd64_linux_gregset_reg_offset): Add FS_BASE
15983 and GS_BASE to the offset table.
15984 (amd64_linux_register_reggroup_p): Add FS_BASE and GS_BASE to the
15985 system register group.
15986 * amd64-nat.c (amd64_native_gregset_reg_offset): Implements case
15987 for older kernels.
15988 * amd64-tdep.c (amd64_init_abi): Add segment registers for the
15989 amd64 ABI.
15990 * amd64-tdep.h (amd64_regnum): Add AMD64_FSBASE_REGNUM and
15991 AMD64_GSBASE_REGNUM.
15992 (AMD64_NUM_REGS): Set to AMD64_GSBASE_REGNUM + 1.
15993 * features/Makefile (amd64-linux.dat, amd64-avx-linux.dat)
15994 (amd64-mpx-linux.dat, amd64-avx512-linux.dat, x32-linux.dat)
15995 (x32-avx-linux.dat, x32-avx512-linux.dat): Add
15996 i386/64bit-segments.xml in those rules.
15997 * features/i386/64bit-segments.xml: New file.
15998 * features/i386/amd64-avx-mpx-linux.xml: Add 64bit-segments.xml.
15999 * features/i386/amd64-avx-linux.xml: Add 64bit-segments.xml.
16000 * features/i386/amd64-avx512-linux.xml: Add 64bit-segments.xml.
16001 * features/i386/amd64-mpx-linux.xml: Add 64bit-segments.xml.
16002 * features/i386/x32-avx512-linux.xml: Add 64bit-segments.xml.
16003 * features/i386/x32-avx-linux.xml: Add 64bit-segments.xml.
16004 * features/i386/amd64-linux.xml: Add 64bit-segments.xml.
16005 * features/i386/amd64-avx-linux.c: Regenerated.
16006 * features/i386/amd64-avx-mpx-linux.c: Regenerated.
16007 * features/i386/amd64-avx-mpx.c: Regenerated.
16008 * features/i386/amd64-avx512-linux.c: Regenerated.
16009 * features/i386/amd64-linux.c: Regenerated.
16010 * features/i386/amd64-mpx-linux.c: Regenerated.
16011 * features/i386/i386-avx-mpx-linux.c: Regenerated.
16012 * features/i386/i386-avx-mpx.c: Regenerated.
16013 * features/i386/x32-avx-linux.c: Regenerated.
16014 * features/i386/x32-avx512-linux.c: Regenerated.
16015 * regformats/i386/amd64-avx-linux.dat: Regenerated.
16016 * regformats/i386/amd64-avx-mpx-linux.dat: Regenerated.
16017 * regformats/i386/amd64-avx512-linux.dat: Regenerated.
16018 * regformats/i386/amd64-linux.dat: Regenerated.
16019 * regformats/i386/amd64-mpx-linux.dat: Regenerated.
16020 * regformats/i386/x32-avx-linux.dat: Regenerated.
16021 * regformats/i386/x32-avx512-linux.dat: Regenerated.
16022 * regformats/i386/x32-linux.dat: Regenerated.
16023
16024 2017-01-27 Walfred Tedeschi <walfred.tedeschi@intel.com>
16025
16026 * amd64-linux-tdep.h (AMD64_LINUX_ORIG_RAX_REGNUM):
16027 Set to AMD64_NUM_REGS.
16028
16029 2017-01-27 Walfred Tedeschi <walfred.tedeschi@intel.com>
16030
16031 * amd64-nat.c (amd64_native_gregset_reg_offset): Simplify logic
16032 that checks validity of a register number.
16033
16034 2017-01-27 Kees Cook <keescook@google.com>
16035
16036 * gdb/arm-linux-nat.c (arm_linux_fetch_inferior_registers): Call
16037 fetch_fpregs if target has fpa registers.
16038 (arm_linux_store_inferior_registers): Call store_fpregs if target
16039 has fpa registers.
16040
16041 2017-01-26 Andreas Arnez <arnez@linux.vnet.ibm.com>
16042
16043 * cris-tdep.c (cris_gdbarch_init): Remove check for
16044 info.byte_order and force it to BFD_ENDIAN_LITTLE.
16045
16046 2017-01-26 Antoine Tremblay <antoine.tremblay@ericsson.com>
16047
16048 * corelow.c (get_core_register_section): Check for regset
16049 existence before checking for REGSET_VARIABLE_SIZE.
16050
16051 2017-01-26 Yao Qi <yao.qi@linaro.org>
16052 Pedro Alves <palves@redhat.com>
16053
16054 PR gdb/20939
16055 * disasm.c (gdb_disassembler::dis_asm_memory_error): Don't
16056 call memory_error, save memaddr instead.
16057 (gdb_disassembler::print_insn): If gdbarch_print_insn returns
16058 negative, cal memory_error.
16059 * disasm.h (gdb_disassembler) <m_err_memaddr>: New field.
16060
16061 2017-01-26 Yao Qi <yao.qi@linaro.org>
16062
16063 * disasm-selftests.c (memory_error_test): New function.
16064 (_initialize_disasm_selftests): Register memory_error_test.
16065
16066 2017-01-26 Yao Qi <yao.qi@linaro.org>
16067
16068 * Makefile.in (SFILES): Add disasm-selftests.c and
16069 selftest-arch.c.
16070 (COMMON_OBS): Add disasm-selftests.o and selftest-arch.o.
16071 * disasm-selftests.c: New file.
16072 * selftest-arch.c: New file.
16073 * selftest-arch.h: New file.
16074
16075 2017-01-26 Yao Qi <yao.qi@linaro.org>
16076
16077 * mep-tdep.c (mep_gdb_print_insn): Set info->arch
16078 to bfd_arch_mep. Don't return 0 if section is not
16079 found. Call print_insn_mep.
16080
16081 2017-01-26 Pedro Alves <palves@redhat.com>
16082 Yao Qi <yao.qi@linaro.org>
16083
16084 * arm-tdep.c: Include "disasm.h".
16085 (gdb_print_insn_arm): Update code to get gdbarch.
16086 * disasm.c (dis_asm_read_memory): Change it to
16087 gdb_disassembler::dis_asm_read_memory.
16088 (dis_asm_memory_error): Likewise.
16089 (dis_asm_print_address): Likewise.
16090 (gdb_pretty_print_insn): Change it to
16091 gdb_disassembler::pretty_print_insn.
16092 (dump_insns): Add one argument gdb_disassemlber. All
16093 callers updated.
16094 (do_mixed_source_and_assembly_deprecated): Likewise.
16095 (do_mixed_source_and_assembly): Likewise.
16096 (do_assembly_only): Likewise.
16097 (gdb_disassembler::gdb_disassembler): New.
16098 (gdb_disassembler::print_insn): New.
16099 * disasm.h (class gdb_disassembler): New.
16100 (gdb_pretty_print_insn): Remove declaration.
16101 (gdb_disassemble_info): Likewise.
16102 * guile/scm-disasm.c (class gdbscm_disassembler): New.
16103 (gdbscm_disasm_read_memory_worker): Update.
16104 (gdbscm_disasm_read_memory): Update.
16105 (gdbscm_disasm_memory_error): Remove.
16106 (gdbscm_disasm_print_address): Remove.
16107 (gdbscm_disassembler::gdbscm_disassembler): New.
16108 (gdbscm_print_insn_from_port): Update.
16109 * mips-tdep.c: Include disasm.h.
16110 (gdb_print_insn_mips): Update code to get gdbarch.
16111 * record-btrace.c (btrace_insn_history): Update.
16112 * spu-tdep.c: Include disasm.h.
16113 (struct spu_dis_asm_data): Remove.
16114 (struct spu_dis_asm_info): New.
16115 (spu_dis_asm_print_address): Use spu_dis_asm_info to get
16116 SPU id.
16117 (gdb_print_insn_spu): Cast disassemble_info to
16118 spu_dis_asm_info.
16119
16120 2017-01-26 Yao Qi <yao.qi@linaro.org>
16121
16122 * disasm.c (do_ui_file_delete): Delete.
16123 (gdb_insn_length): Move code creating stream to ...
16124 * utils.c (null_stream): ... here. New function.
16125 * utils.h (null_stream): Declare.
16126
16127 2017-01-23 Simon Marchi <simon.marchi@polymtl.ca>
16128
16129 * python/py-inferior.c (find_thread_object): Return directly
16130 from the loop. Remove "found" variable.
16131
16132 2017-01-21 Joel Brobecker <brobecker@adacore.com>
16133
16134 GDB 7.12.1 released.
16135
16136 2017-01-20 Simon Marchi <simon.marchi@ericsson.com>
16137
16138 * python/py-function.c (fnpy_call): Reorder declarations to have
16139 the gdbpy_enter object declared first.
16140 * python/py-xmethods.c (gdbpy_get_xmethod_arg_types): Likewise.
16141
16142 2017-01-20 Simon Marchi <simon.marchi@ericsson.com>
16143
16144 PR python/21068
16145 * python/python-internal.h (PyMem_RawMalloc): Define for
16146 Python < 3.4.
16147 * python/py-gdb-readline.c (gdbpy_readline_wrapper): Use
16148 PyMem_RawMalloc instead of PyMem_Malloc.
16149
16150 2017-01-20 Mike Wrighton <mike_wrighton@codesourcery.com>
16151 Luis Machado <lgustavo@codesourcery.com>
16152
16153 * NEWS (New commands): Mention flash-erase.
16154 (New MI commands): Mention target-flash-erase.
16155 * mi/mi-cmds.c (mi_cmd_target_flash_erase): Add target-flash-erase MI
16156 command.
16157 * mi/mi-cmds.h (mi_cmd_target_flash_erase): New declaration.
16158 * mi/mi-main.c (mi_cmd_target_flash_erase): New function.
16159 * target.c (flash_erase_command): New function.
16160 (initialize_targets): Add new flash-erase command.
16161 * target.h (flash_erase_command): New declaration.
16162
16163 2017-01-20 Joel Brobecker <brobecker@adacore.com>
16164
16165 * nat/linux-ptrace.c: Only include <sys/procfs.h> if
16166 HAVE_SYS_PROCFS_H is defined.
16167
16168 2017-01-18 Alan Hayward <alan.hayward@arm.com>
16169
16170 * remote.c (struct cached_reg): Change data into a pointer.
16171 * (stop_reply_dtr): Free data pointers before deleting vector.
16172 (process_stop_reply): Likewise.
16173 (remote_parse_stop_reply): Allocate space for data
16174
16175 2017-01-18 Alan Hayward <alan.hayward@arm.com>
16176
16177 * amd64-tdep.c (amd64_pseudo_register_read_value): remove
16178 MAX_REGISTER_SIZE.
16179 (amd64_pseudo_register_read_value): Likewise.
16180 * remote.c (fetch_register_using_p): Remove MAX_REGISTER_SIZE.
16181 (store_register_using_P): Likewise.
16182 * regcache.c (regcache_xfer_part): Likewise.
16183
16184 2017-01-16 Ivo Raisr <ivo.raisr@oracle.com>
16185
16186 Split real and pseudo registers.
16187 * sparc-tdep.h (SPARC_CORE_REGISTERS): New macro.
16188 (sparc32_pseudo_regnum): New enum.
16189 * sparc64-tdep.h (sparc64_pseudo_regnum): New enum.
16190 * sparc-tdep.c (SPARC32_FPU_REGISTERS): New macro.
16191 (SPARC32_CP0_REGISTERS): New macro.
16192 (sparc32_pseudo_register_name): New function.
16193 (sparc32_register_name): Use sparc32_pseudo_register_name.
16194 (sparc32_pseudo_register_type): New function.
16195 (sparc32_register_type): Use sparc32_pseudo_register_type.
16196 (sparc32_pseudo_register_read, sparc32_pseudo_register_write): Handle
16197 pseudo register numbers.
16198 * sparc64-tdep.c SPARC64_FPU_REGISTERS): New macro.
16199 (SPARC64_CP0_REGISTERS): New macro.
16200 (sparc64_pseudo_register_name): New function.
16201 (sparc64_register_name): Use sparc64_pseudo_register_name.
16202 (sparc64_pseudo_register_type): New function.
16203 (sparc64_register_type): Use sparc64_pseudo_register_type.
16204 (sparc64_pseudo_register_read, sparc64_pseudo_register_write): Handle
16205 pseudo register numbers.
16206 (sparc64_store_floating_fields, sparc64_extract_floating_fields,
16207 sparc64_store_arguments): Handle pseudo register numbers.
16208
16209 2017-01-13 Yao Qi <yao.qi@linaro.org>
16210
16211 * remote.c (REMOTE_DEBUG_MAX_CHAR): New macro.
16212 (putpkt_binary): Print only REMOTE_DEBUG_MAX_CHAR chars in debug
16213 output.
16214 (getpkt_or_notif_sane_1): Likewise.
16215
16216 2017-01-13 Yao Qi <yao.qi@linaro.org>
16217
16218 * Makefile.in (checker-headers): Use CXX and CXX_DIALET instead
16219 of CC. Pass "-x c++-header" instead of "-x c".
16220
16221 2017-01-12 Simon Marchi <simon.marchi@ericsson.com>
16222
16223 * remote.c (remote_can_async_p): Update comment.
16224
16225 2017-01-12 Simon Marchi <simon.marchi@ericsson.com>
16226
16227 * linux-nat.c (linux_nat_can_async_p): Update comment.
16228
16229 2017-01-12 Simon Marchi <simon.marchi@ericsson.com>
16230
16231 * serial.c (serial_open): Forget about "pc" and "lpt" serial interface.
16232
16233 2017-01-11 Simon Marchi <simon.marchi@ericsson.com>
16234
16235 * cli/cli-decode.c (lookup_cmd_1): Fix typo in comment.
16236
16237 2017-01-10 Tom Tromey <tom@tromey.com>
16238
16239 * python/py-type.c (typy_legacy_template_argument): Update.
16240 * cp-support.h (struct demangle_parse_info) (demangle_parse_info,
16241 ~demangle_parse_info): Declare new members.
16242 (cp_demangled_name_to_comp): Return unique_ptr.
16243 (cp_demangled_name_parse_free)
16244 (make_cleanup_cp_demangled_name_parse_free)
16245 (cp_new_demangle_parse_info): Remove.
16246 * cp-support.c (do_demangled_name_parse_free_cleanup)
16247 (make_cleanup_cp_demangled_name_parse_free): Remove.
16248 (inspect_type, cp_canonicalize_string_full)
16249 (cp_canonicalize_string): Update.
16250 (mangled_name_to_comp): Change return type.
16251 (cp_class_name_from_physname, method_name_from_physname)
16252 (cp_func_name, cp_remove_params): Update.
16253 * cp-name-parser.y (demangle_parse_info): New constructor, from
16254 cp_new_demangle_parse_info.
16255 (~demangle_parse_info): New destructor, from
16256 cp_demangled_name_parse_free.
16257 (cp_merge_demangle_parse_infos): Update.
16258 (cp_demangled_name_to_comp): Change return type.
16259
16260 2017-01-10 Tom Tromey <tom@tromey.com>
16261
16262 * top.c (prevent_dont_repeat): Change return type.
16263 * python/python.c (execute_gdb_command): Use std::string.
16264 Update.
16265 * guile/guile.c (gdbscm_execute_gdb_command): Update.
16266 * command.h (prevent_dont_repeat): Change return type.
16267 * breakpoint.c (bpstat_do_actions_1): Update.
16268
16269 2017-01-10 Tom Tromey <tom@tromey.com>
16270
16271 * value.h (scoped_value_mark::~scoped_value_mark): Call
16272 free_to_mark.
16273 (scoped_value_mark::free_to_mark): New method.
16274 * dwarf2loc.c (dwarf2_evaluate_loc_desc_full): Use
16275 scoped_value_mark.
16276
16277 2017-01-10 Tom Tromey <tom@tromey.com>
16278
16279 * python/py-value.c (valpy_dereference, valpy_referenced_value)
16280 (valpy_reference_value, valpy_const_value, valpy_get_address)
16281 (valpy_get_dynamic_type, valpy_lazy_string, valpy_do_cast)
16282 (valpy_getitem, valpy_call, valpy_binop_throw, valpy_negative)
16283 (valpy_absolute, valpy_richcompare_throw): Use scoped_value_mark.
16284 * dwarf2loc.c (dwarf2_loc_desc_get_symbol_read_needs): Use
16285 scoped_value_mark.
16286 * dwarf2-frame.c (execute_stack_op): Use scoped_value_mark.
16287 * value.h (scoped_value_mark): New class.
16288
16289 2017-01-10 Tom Tromey <tom@tromey.com>
16290
16291 * dwarf2read.c (dwarf2_build_psymtabs): Use psymtab_discarder.
16292 * psympriv.h (make_cleanup_discard_psymtabs): Don't declare.
16293 * psymtab.c (discard_psymtabs_upto): Remove.
16294 (make_cleanup_discard_psymtabs): Remove.
16295 (struct psymtab_state): Remove.
16296
16297 2017-01-10 Tom Tromey <tom@tromey.com>
16298
16299 * record-full.c (record_full_save_cleanups): Remove.
16300 (record_full_save): Use gdb::unlinker.
16301 * gcore.c (do_bfd_delete_cleanup): Remove.
16302 (gcore_command): Use gdb::unlinker, unique_xmalloc_ptr. Remove
16303 cleanups.
16304 * dwarf2read.c (unlink_if_set): Remove.
16305 (write_psymtabs_to_index): Use gdb::unlinker.
16306 * common/gdb_unlinker.h: New file.
16307
16308 2017-01-10 Tom Tromey <tom@tromey.com>
16309
16310 * windows-tdep.c (windows_xfer_shared_library): Update.
16311 * windows-nat.c (windows_make_so): Update.
16312 * utils.h (make_cleanup_bfd_unref): Remove.
16313 * utils.c (do_bfd_close_cleanup, make_cleanup_bfd_unref): Remove.
16314 * symfile.h (symfile_bfd_open)
16315 (find_separate_debug_file_in_section): Return gdb_bfd_ref_ptr.
16316 * symfile.c (read_symbols, symbol_file_add)
16317 (separate_debug_file_exists): Update.
16318 (symfile_bfd_open): Return gdb_bfd_ref_ptr.
16319 (generic_load, reread_symbols): Update.
16320 * symfile-mem.c (symbol_file_add_from_memory): Update.
16321 * spu-linux-nat.c (spu_bfd_open): Return gdb_bfd_ref_ptr.
16322 (spu_symbol_file_add_from_memory): Update.
16323 * solist.h (struct target_so_ops) <bfd_open>: Return
16324 gdb_bfd_ref_ptr.
16325 (solib_bfd_fopen, solib_bfd_open): Return gdb_bfd_ref_ptr.
16326 * solib.c (solib_bfd_fopen, solib_bfd_open): Return
16327 gdb_bfd_ref_ptr.
16328 (solib_map_sections, reload_shared_libraries_1): Update.
16329 * solib-svr4.c (enable_break): Update.
16330 * solib-spu.c (spu_bfd_fopen): Return gdb_bfd_ref_ptr.
16331 * solib-frv.c (enable_break2): Update.
16332 * solib-dsbt.c (enable_break): Update.
16333 * solib-darwin.c (gdb_bfd_mach_o_fat_extract): Return
16334 gdb_bfd_ref_ptr.
16335 (darwin_solib_get_all_image_info_addr_at_init): Update.
16336 (darwin_bfd_open): Return gdb_bfd_ref_ptr.
16337 * solib-aix.c (solib_aix_bfd_open): Return gdb_bfd_ref_ptr.
16338 * record-full.c (record_full_save): Update.
16339 * python/py-objfile.c (objfpy_add_separate_debug_file): Update.
16340 * procfs.c (insert_dbx_link_bpt_in_file): Update.
16341 * minidebug.c (find_separate_debug_file_in_section): Return
16342 gdb_bfd_ref_ptr.
16343 * machoread.c (macho_add_oso_symfile): Change abfd to
16344 gdb_bfd_ref_ptr.
16345 (macho_symfile_read_all_oso): Update.
16346 (macho_check_dsym): Return gdb_bfd_ref_ptr.
16347 (macho_symfile_read): Update.
16348 * jit.c (bfd_open_from_target_memory): Return gdb_bfd_ref_ptr.
16349 (jit_bfd_try_read_symtab): Update.
16350 * gdb_bfd.h (gdb_bfd_open, gdb_bfd_fopen, gdb_bfd_openr)
16351 (gdb_bfd_openw, gdb_bfd_openr_iovec)
16352 (gdb_bfd_openr_next_archived_file, gdb_bfd_fdopenr): Return
16353 gdb_bfd_ref_ptr.
16354 (gdb_bfd_ref_policy): New struct.
16355 (gdb_bfd_ref_ptr): New typedef.
16356 * gdb_bfd.c (gdb_bfd_open, gdb_bfd_fopen, gdb_bfd_openr)
16357 (gdb_bfd_openw, gdb_bfd_openr_iovec)
16358 (gdb_bfd_openr_next_archived_file, gdb_bfd_fdopenr): Return
16359 gdb_bfd_ref_ptr.
16360 * gcore.h (create_gcore_bfd): Return gdb_bfd_ref_ptr.
16361 * gcore.c (create_gcore_bfd): Return gdb_bfd_ref_ptr.
16362 (gcore_command): Update.
16363 * exec.c (exec_file_attach): Update.
16364 * elfread.c (elf_symfile_read): Update.
16365 * dwarf2read.c (dwarf2_get_dwz_file): Update.
16366 (try_open_dwop_file, open_dwo_file): Return gdb_bfd_ref_ptr.
16367 (open_and_init_dwo_file): Update.
16368 (open_dwp_file): Return gdb_bfd_ref_ptr.
16369 (open_and_init_dwp_file): Update.
16370 * corelow.c (core_open): Update.
16371 * compile/compile-object-load.c (compile_object_load): Update.
16372 * common/gdb_ref_ptr.h (ref_ptr::operator->): New operator.
16373 * coffread.c (coff_symfile_read): Update.
16374 * cli/cli-dump.c (bfd_openr_or_error, bfd_openw_or_error): Return
16375 gdb_bfd_ref_ptr. Rename.
16376 (dump_bfd_file, restore_command): Update.
16377 * build-id.h (build_id_to_debug_bfd): Return gdb_bfd_ref_ptr.
16378 * build-id.c (build_id_to_debug_bfd): Return gdb_bfd_ref_ptr.
16379 (find_separate_debug_file_by_buildid): Update.
16380
16381 2017-01-10 Tom Tromey <tom@tromey.com>
16382
16383 * common/gdb_ref_ptr.h: New file.
16384 * python/py-ref.h (struct gdbpy_ref_policy): New.
16385 (gdbpy_ref): Now a typedef.
16386
16387 2017-01-10 Tom Tromey <tom@tromey.com>
16388
16389 * utils.h (make_cleanup_htab_delete): Don't declare.
16390 * utils.c (do_htab_delete_cleanup, make_cleanup_htab_delete):
16391 Remove.
16392 * linespec.c (decode_compound_collector): Add constructor,
16393 destructor.
16394 (lookup_prefix_sym): Remove cleanup.
16395 (symtab_collector): Add constructor, destructor.
16396 (collect_symtabs_from_filename): Remove cleanup.
16397 * disasm.c (do_mixed_source_and_assembly): Use htab_up.
16398 * compile/compile-c-symbols.c (generate_c_for_variable_locations):
16399 Use htab_up.
16400 * gnu-v3-abi.c (gnuv3_print_vtable): Use htab_up.
16401 * dwarf2read.c (dw2_expand_symtabs_matching)
16402 (dw2_map_symbol_filenames, dwarf_decode_macros)
16403 (write_psymtabs_to_index): Use htab_up.
16404 * dwarf2loc.c (func_verify_no_selftailcall)
16405 (call_site_find_chain_1, func_verify_no_selftailcall)
16406 (chain_candidate, call_site_find_chain_1): Use std::unordered_set,
16407 std::vector, gdb::unique_xmalloc_ptr.
16408 (call_sitep): Remove typedef.
16409 (dwarf2_locexpr_baton_eval): Remove unused variable.
16410
16411 2017-01-10 Tom Tromey <tom@tromey.com>
16412
16413 * python/python-internal.h (make_cleanup_py_decref)
16414 (make_cleanup_py_xdecref): Don't declare.
16415 * python/py-utils.c (py_decref, make_cleanup_py_decref)
16416 (py_xdecref, make_cleanup_py_xdecref): Remove.
16417
16418 2017-01-10 Tom Tromey <tom@tromey.com>
16419
16420 * python/py-framefilter.c (py_mi_print_variables): Use gdbpy_ref.
16421 (py_print_locals, enumerate_locals, py_print_args): Use gdbpy_ref.
16422
16423 2017-01-10 Tom Tromey <tom@tromey.com>
16424
16425 * python/py-framefilter.c (enumerate_args): Use gdbpy_ref.
16426
16427 2017-01-10 Tom Tromey <tom@tromey.com>
16428
16429 * python/py-utils.c (unicode_to_encoded_string)
16430 (python_string_to_target_string)
16431 (python_string_to_target_python_string)
16432 (python_string_to_host_string, gdbpy_obj_to_string)
16433 (get_addr_from_python): Use gdbpy_ref.
16434
16435 2017-01-10 Tom Tromey <tom@tromey.com>
16436
16437 * python/py-unwind.c (pyuw_object_attribute_to_pointer): Use
16438 gdbpy_ref.
16439
16440 2017-01-10 Tom Tromey <tom@tromey.com>
16441
16442 * python/python.c (eval_python_command, gdbpy_decode_line)
16443 (gdbpy_run_events, gdbpy_start_type_printers)
16444 (gdbpy_apply_type_printers): Use gdbpy_ref.
16445
16446 2017-01-10 Tom Tromey <tom@tromey.com>
16447
16448 * python/py-param.c (get_doc_string, compute_enum_values): Use
16449 gdbpy_ref.
16450
16451 2017-01-10 Tom Tromey <tom@tromey.com>
16452
16453 * python/py-inferior.c (find_thread_object, build_inferior_list):
16454 Use gdbpy_ref.
16455
16456 2017-01-10 Tom Tromey <tom@tromey.com>
16457
16458 * python/py-framefilter.c (py_print_frame): Use gdbpy_ref.
16459
16460 2017-01-10 Tom Tromey <tom@tromey.com>
16461
16462 * python/py-finishbreakpoint.c (bpfinishpy_out_of_scope): Use
16463 gdbpy_ref.
16464
16465 2017-01-10 Tom Tromey <tom@tromey.com>
16466
16467 * python/py-cmd.c (cmdpy_completer_helper): Use gdbpy_ref. Remove
16468 extra incref.
16469 (cmdpy_completer_handle_brkchars, cmdpy_completer, cmdpy_init):
16470 Use gdbpy_ref.
16471
16472 2017-01-10 Tom Tromey <tom@tromey.com>
16473
16474 * python/py-breakpoint.c (gdbpy_breakpoint_cond_says_stop): Use
16475 gdbpy_ref.
16476
16477 2017-01-10 Tom Tromey <tom@tromey.com>
16478
16479 * python/py-arch.c (archpy_disassemble): Use gdbpy_ref. Don't
16480 decref results of PyArg_ParseTupleAndKeywords.
16481
16482 2017-01-10 Tom Tromey <tom@tromey.com>
16483
16484 * python/python.c (python_run_simple_file): Use
16485 unique_xmalloc_ptr, gdbpy_ref.
16486
16487 2017-01-10 Tom Tromey <tom@tromey.com>
16488
16489 * python/py-prettyprint.c (print_stack_unless_memory_error)
16490 (print_string_repr, print_children): Use gdbpy_ref.
16491 (dummy_python_frame): New class.
16492 (dummy_python_frame::dummy_python_frame): Rename from
16493 push_dummy_python_frame.
16494 (py_restore_tstate): Remove.
16495
16496 2017-01-10 Tom Tromey <tom@tromey.com>
16497
16498 * python/py-framefilter.c (py_print_frame): Use gdbpy_ref.
16499
16500 2017-01-10 Tom Tromey <tom@tromey.com>
16501
16502 * python/python.c (ensure_python_env, restore_python_env):
16503 Remove.
16504 * python/python-internal.h (ensure_python_env): Don't declare.
16505 * varobj.h (varobj_ensure_python_env): Don't declare.
16506 * varobj.c (varobj_ensure_python_env): Remove.
16507
16508 2017-01-10 Tom Tromey <tom@tromey.com>
16509
16510 * varobj.c (varobj_value_get_print_value): Use
16511 gdbpy_enter_varobj.
16512
16513 2017-01-10 Tom Tromey <tom@tromey.com>
16514
16515 * python/py-prettyprint.c (print_string_repr, print_children):
16516 Update.
16517 * python/py-lazy-string.c (gdbpy_extract_lazy_string): Change type
16518 of "encoding".
16519 * varobj.c (varobj_value_get_print_value): Update.
16520 * python/python-internal.h (gdbpy_extract_lazy_string): Update.
16521
16522 2017-01-10 Tom Tromey <tom@tromey.com>
16523
16524 * varobj.c (varobj_get_display_hint)
16525 (dynamic_varobj_has_child_method, install_new_value_visualizer)
16526 (varobj_set_visualizer, free_variable): Use
16527 gdbpy_enter_varobj.
16528
16529 2017-01-10 Tom Tromey <tom@tromey.com>
16530
16531 * python/python.c (python_command): Use gdbpy_enter, gdbpy_ref.
16532 (do_finish_initialization): New function. Use gdbpy_ref.
16533 (gdbpy_finish_initialization): Use gdbpy_enter. Call
16534 do_finish_initialization.
16535
16536 2017-01-10 Tom Tromey <tom@tromey.com>
16537
16538 * python/py-param.c (get_set_value, get_show_value): Use
16539 gdbpy_enter, gdbpy_ref.
16540
16541 2017-01-10 Tom Tromey <tom@tromey.com>
16542
16543 * python/py-function.c (fnpy_call): Use gdbpy_enter, gdbpy_ref.
16544
16545 2017-01-10 Tom Tromey <tom@tromey.com>
16546
16547 * python/py-cmd.c (cmdpy_function): Use gdbpy_enter, gdbpy_ref.
16548
16549 2017-01-10 Tom Tromey <tom@tromey.com>
16550
16551 * python/py-varobj.c (py_varobj_iter_dtor, py_varobj_iter_next):
16552 Use gdbpy_enter_varobj.
16553
16554 2017-01-10 Tom Tromey <tom@tromey.com>
16555
16556 * varobj.c (gdbpy_enter_varobj): New constructor.
16557 * python/python-internal.h (gdbpy_enter_varobj): New class.
16558 * python/py-varobj.c (py_varobj_get_iterator): Use
16559 gdbpy_enter_varobj.
16560
16561 2017-01-10 Tom Tromey <tom@tromey.com>
16562
16563 * python/py-xmethods.c (gdbpy_get_xmethod_result_type): Use
16564 gdbpy_enter, gdbpy_ref, unique_xmalloc_ptr.
16565 (gdbpy_invoke_xmethod): Use gdbpy_ref, gdbpy_enter.
16566 (gdbpy_get_xmethod_arg_types): Use gdbpy_ref,
16567 unique_xmalloc_ptr.
16568 (gdbpy_get_xmethod_arg_types): Use gdbpy_ref, gdbpy_enter.
16569
16570 2017-01-10 Tom Tromey <tom@tromey.com>
16571
16572 * python/py-xmethods.c (invoke_match_method): Use
16573 gdbpy_ref.
16574
16575 2017-01-10 Tom Tromey <tom@tromey.com>
16576
16577 * python/py-xmethods.c (gdbpy_get_matching_xmethod_workers): use
16578 gdbpy_enter, gdbpy_ref.
16579
16580 2017-01-10 Tom Tromey <tom@tromey.com>
16581
16582 * python/python.c (python_interactive_command): Use gdbpy_enter.
16583
16584 2017-01-10 Tom Tromey <tom@tromey.com>
16585
16586 * python/python.c (gdbpy_before_prompt_hook): Use gdbpy_enter,
16587 gdbpy_ref.
16588
16589 2017-01-10 Tom Tromey <tom@tromey.com>
16590
16591 * python/py-prettyprint.c (gdbpy_apply_val_pretty_printer): Use
16592 gdbpy_enter, gdbpy_ref, unique_xmalloc_ptr.
16593
16594 2017-01-10 Tom Tromey <tom@tromey.com>
16595
16596 * utils.h (htab_deleter): New struct.
16597 (htab_up): New typedef.
16598 * python/py-framefilter.c (gdbpy_apply_frame_filter): Use
16599 gdbpy_enter, gdbpy_ref, htab_up.
16600
16601 2017-01-10 Tom Tromey <tom@tromey.com>
16602
16603 * python/py-unwind.c (pending_frame_invalidate): Remove.
16604 (pyuw_sniffer): Use gdbpy_enter and gdbpy_ref.
16605
16606 2017-01-10 Tom Tromey <tom@tromey.com>
16607
16608 * python/py-xmethods.c (gdbpy_free_xmethod_worker_data)
16609 (gdbpy_clone_xmethod_worker_data): Use gdbpy_enter.
16610
16611 2017-01-10 Tom Tromey <tom@tromey.com>
16612
16613 * python/py-type.c (save_objfile_types): Use gdbpy_enter.
16614
16615 2017-01-10 Tom Tromey <tom@tromey.com>
16616
16617 * python/python.c (gdbpy_eval_from_control_command)
16618 (gdbpy_source_script, gdbpy_run_events)
16619 (gdbpy_source_objfile_script, gdbpy_execute_objfile_script)
16620 (gdbpy_free_type_printers, gdbpy_finish_initialization): Use
16621 gdbpy_enter.
16622
16623 2017-01-10 Tom Tromey <tom@tromey.com>
16624
16625 * python/py-progspace.c (py_free_pspace): Use gdbpy_enter.
16626
16627 2017-01-10 Tom Tromey <tom@tromey.com>
16628
16629 * python/py-objfile.c (py_free_objfile): Use gdbpy_enter.
16630
16631 2017-01-10 Tom Tromey <tom@tromey.com>
16632
16633 * python/py-inferior.c (python_on_normal_stop, python_on_resume)
16634 (python_on_inferior_call_pre, python_on_inferior_call_post)
16635 (python_on_memory_change, python_on_register_change)
16636 (python_inferior_exit, python_new_objfile, add_thread_object)
16637 (delete_thread_object, py_free_inferior): Use gdbpy_enter.
16638
16639 2017-01-10 Tom Tromey <tom@tromey.com>
16640
16641 * python/py-finishbreakpoint.c (bpfinishpy_handle_stop)
16642 (bpfinishpy_handle_exit): Use gdbpy_enter.
16643
16644 2017-01-10 Tom Tromey <tom@tromey.com>
16645
16646 * python/py-cmd.c (cmdpy_destroyer)
16647 (cmdpy_completer_handle_brkchars, cmdpy_completer): Use
16648 gdbpy_enter.
16649
16650 2017-01-10 Tom Tromey <tom@tromey.com>
16651
16652 * python/py-breakpoint.c (gdbpy_breakpoint_cond_says_stop): Use
16653 gdbpy_enter.
16654 (gdbpy_breakpoint_has_cond): Likewise.
16655
16656 2017-01-10 Tom Tromey <tom@tromey.com>
16657
16658 * python/python.c (gdbpy_enter): New constructor.
16659 (~gdbpy_enter): New destructor.
16660 (restore_python_env, ensure_python_env): Rewrite.
16661 * python/python-internal.h (gdbpy_enter): New class.
16662
16663 2017-01-10 Tom Tromey <tom@tromey.com>
16664
16665 * python/py-symbol.c (gdbpy_lookup_symbol): Use gdbpy_ref.
16666
16667 2017-01-10 Tom Tromey <tom@tromey.com>
16668
16669 * python/py-value.c (value_has_field, get_field_flag)
16670 (get_field_type, valpy_getitem, convert_value_from_python): Use
16671 gdbpy_ref.
16672
16673 2017-01-10 Tom Tromey <tom@tromey.com>
16674
16675 * python/python.c (gdbpy_progspaces, gdbpy_objfiles): Use
16676 gdbpy_ref.
16677
16678 2017-01-10 Tom Tromey <tom@tromey.com>
16679
16680 * python/py-prettyprint.c (search_pp_list)
16681 (find_pretty_printer_from_objfiles)
16682 (find_pretty_printer_from_progspace)
16683 (find_pretty_printer_from_gdb, find_pretty_printer)
16684 (gdbpy_get_display_hint, gdbpy_get_varobj_pretty_printer): Use
16685 gdbpy_ref.
16686
16687 2017-01-10 Tom Tromey <tom@tromey.com>
16688
16689 * python/py-param.c (call_doc_function): Use gdbpy_ref.
16690
16691 2017-01-10 Tom Tromey <tom@tromey.com>
16692
16693 * python/py-linetable.c (build_line_table_tuple_from_pcs)
16694 (ltpy_get_all_source_lines): Use gdbpy_ref.
16695
16696 2017-01-10 Tom Tromey <tom@tromey.com>
16697
16698 * python/py-framefilter.c (extract_sym, extract_value)
16699 (get_py_iter_from_func, bootstrap_python_frame_filters): Use
16700 gdbpy_ref.
16701
16702 2017-01-10 Tom Tromey <tom@tromey.com>
16703
16704 * python/py-breakpoint.c (gdbpy_breakpoints): Use gdbpy_ref.
16705
16706 2017-01-10 Tom Tromey <tom@tromey.com>
16707
16708 * python/py-inferior.c (gdbpy_inferiors): Use gdbpy_ref.
16709
16710 2017-01-10 Tom Tromey <tom@tromey.com>
16711
16712 * python/py-function.c (convert_values_to_python, fnpy_init): Use
16713 gdbpy_ref.
16714
16715 2017-01-10 Tom Tromey <tom@tromey.com>
16716
16717 * python/py-cmd.c (gdbpy_string_to_argv): Use gdbpy_ref.
16718
16719 2017-01-10 Tom Tromey <tom@tromey.com>
16720
16721 * python/py-type.c (convert_field, make_fielditem, typy_fields)
16722 (typy_range): Use gdbpy_ref.
16723
16724 2017-01-10 Tom Tromey <tom@tromey.com>
16725
16726 * python/py-threadevent.c (create_thread_event_object): Use
16727 gdbpy_ref.
16728 * python/py-stopevent.c (create_stop_event_object): Simplify.
16729 (emit_stop_event): Use gdbpy_ref.
16730 * python/py-signalevent.c (create_signal_event_object): Use
16731 gdbpy_ref.
16732 * python/py-newobjfileevent.c (create_new_objfile_event_object)
16733 (emit_new_objfile_event, create_clear_objfiles_event_object)
16734 (emit_clear_objfiles_event): Use gdbpy_ref.
16735 * python/py-infevents.c (create_inferior_call_event_object)
16736 (create_register_changed_event_object)
16737 (create_memory_changed_event_object, emit_inferior_call_event)
16738 (emit_memory_changed_event, emit_register_changed_event): Use
16739 gdbpy_ref.
16740 * python/py-exitedevent.c (create_exited_event_object)
16741 (emit_exited_event): Use gdbpy_ref.
16742 * python/py-event.h (evpy_emit_event): Remove
16743 CPYCHECKER_STEALS_REFERENCE_TO_ARG annotation.
16744 * python/py-event.c (evpy_emit_event): Use gdbpy_ref.
16745 * python/py-continueevent.c (emit_continue_event): Use
16746 gdbpy_ref.
16747 * python/py-breakpoint.c (gdbpy_breakpoint_created)
16748 (gdbpy_breakpoint_deleted, gdbpy_breakpoint_modified): Use
16749 gdbpy_ref.
16750 * python/py-bpevent.c (create_breakpoint_event_object): Use
16751 gdbpy_ref.
16752
16753 2017-01-10 Tom Tromey <tom@tromey.com>
16754
16755 * python/py-ref.h: New file.
16756
16757 2017-01-10 Simon Marchi <simon.marchi@ericsson.com>
16758
16759 * cli-out.c (cli_ui_out::do_redirect): Change return type to
16760 void.
16761 * cli-out.h (cli_ui_out::do_redirect): Likewise.
16762 * mi/mi-out.c (mi_ui_out::do_redirect): Likewise.
16763 * mi/mi-out.h (mi_ui_out::do_redirect): Likewise.
16764 * ui-out.c (ui_out::redirect): Likewise.
16765 * ui-out.h (ui_out::redirect, ui_out::do_redirect): Likewise.
16766 * cli/cli-logging.c (set_logging_redirect): Update call site of
16767 ui_out::redirect.
16768 (handle_redirections): Likewise.
16769 * scm-ports.c (ioscm_with_output_to_port_worker): Likewise.
16770 * top.c (execute_command_to_string): Likewise.
16771 * utils.c (do_ui_out_redirect_pop): Likewise.
16772
16773 2017-01-10 Simon Marchi <simon.marchi@ericsson.com>
16774
16775 * stack.c (_initialize_stack): Update "frame" command help message.
16776
16777 2017-01-08 Iain Buclaw <ibuclaw@gdcproject.org>
16778
16779 * d-exp.y (CastExpression): Emit UNOP_CAST_TYPE.
16780
16781 2017-01-06 Yao Qi <yao.qi@linaro.org>
16782
16783 * x86-linux-nat.h: Include gdb_proc_service.h.
16784
16785 2017-01-06 Yao Qi <yao.qi@linaro.org>
16786
16787 * ser-base.h: Include serial.h.
16788
16789 2017-01-06 Yao Qi <yao.qi@linaro.org>
16790
16791 * ppc-linux-tdep.h: Include ppc-tdep.h.
16792
16793 2017-01-06 Yao Qi <yao.qi@linaro.org>
16794
16795 * nat/amd64-linux-siginfo.h: Include signal.h.
16796
16797 2017-01-06 Yao Qi <yao.qi@linaro.org>
16798
16799 * nat/aarch64-linux-hw-point.h: Include break-common.h.
16800
16801 2017-01-06 Yao Qi <yao.qi@linaro.org>
16802
16803 * mi/mi-parse.h: Include mi-cmds.h.
16804
16805 2017-01-06 Yao Qi <yao.qi@linaro.org>
16806
16807 * inf-loop.c: Don't include "target.h".
16808 * inf-loop.h: Include it here.
16809
16810 2017-01-06 Yao Qi <yao.qi@linaro.org>
16811
16812 * dfp.h: Include "dboulest.h" and "expression.h".
16813
16814 2017-01-06 Yao Qi <yao.qi@linaro.org>
16815
16816 * ax-gdb.h: Include "ax.h".
16817
16818 2017-01-06 Yao Qi <yao.qi@linaro.org>
16819
16820 * Makefile.in (HFILES_NO_SRCDIR): Replace gdb_ptrace.h
16821 with nat/gdb_ptrace.h.
16822
16823 2017-01-05 Yao Qi <yao.qi@linaro.org>
16824
16825 * mips-fbsd-tdep.c (mips_fbsd_sigframe_init): Move && to
16826 new line.
16827 (mips64_fbsd_sigframe_init): Likewise.
16828
16829 2017-01-04 John Baldwin <jhb@FreeBSD.org>
16830
16831 * mips-fbsd-tdep.c (_initialize_mips_fbsd_tdep): Use
16832 GDB_OSABI_FREEBSD instead of GDB_OSABI_FREEBSD_ELF.
16833
16834 2017-01-04 John Baldwin <jhb@FreeBSD.org>
16835
16836 * Makefile.in (ALLDEPFILES): Add mips-fbsd-nat.c.
16837 * NEWS: Mention new FreeBSD/mips native configuration.
16838 * config/mips/fbsd.mh: New file.
16839 * configure.host: Add mips*-*-freebsd*.
16840 * mips-fbsd-nat.c: New file.
16841
16842 2017-01-04 John Baldwin <jhb@FreeBSD.org>
16843
16844 * Makefile.in (ALL_TARGET_OBS): Add mips-fbsd-tdep.o.
16845 (ALLDEPFILES): Add mips-fbsd-tdep.c.
16846 * NEWS: Mention new FreeBSD/mips target.
16847 * configure.tgt: Add mips*-*-freebsd*.
16848 * mips-fbsd-tdep.c: New file.
16849 * mips-fbsd-tdep.h: New file.
16850
16851 2017-01-04 Yao Qi <yao.qi@linaro.org>
16852
16853 * dwarf2loc.c (write_pieced_value): Don't use VALUE_FRAME_ID (to),
16854 use c->frame_id when the piece location is DWARF_VALUE_REGISTER.
16855
16856 2017-01-01 Joel Brobecker <brobecker@adacore.com>
16857
16858 Update copyright year range in all GDB files.
16859
16860 2017-01-01 Joel Brobecker <brobecker@adacore.com>
16861
16862 * config/djgpp/fnchange.lst: Add entry for gdb/ChangeLog-2016.
16863
16864 For older changes see ChangeLog-2016.
16865 \f
16866 Local Variables:
16867 mode: change-log
16868 left-margin: 8
16869 fill-column: 74
16870 version-control: never
16871 coding: utf-8
16872 End: