Create private_thread_info hierarchy
[deliverable/binutils-gdb.git] / gdb / ChangeLog
CommitLineData
7aabaf9d
SM
12017-11-24 Simon Marchi <simon.marchi@polymtl.ca>
2
3 * gdbthread.h (private_thread_info): Define structure type, add
4 virtual pure destructor.
5 (thread_info) <priv>: Change type to unique_ptr.
6 <private_dtor>: Remove.
7 * thread.c (add_thread_with_info): Adjust to use of unique_ptr.
8 (private_thread_info::~private_thread_info): Provide default
9 implementation.
10 (thread_info::~thread_info): Don't call private_dtor nor
11 manually free priv.
12 * aix-thread.c (private_thread_info): Rename to ...
13 (aix_thread_info): ... this.
14 (get_aix_thread_info): New.
15 (sync_threadlists): Adjust.
16 (iter_tid): Adjust.
17 (aix_thread_resume): Adjust.
18 (aix_thread_fetch_registers): Adjust.
19 (aix_thread_store_registers): Adjust.
20 (aix_thread_extra_thread_info): Adjust.
21 * darwin-nat.h (private_thread_info): Rename to ...
22 (darwin_thread_info): ... this.
23 (get_darwin_thread_info): New.
24 * darwin-nat.c (darwin_init_thread_list): Adjust.
25 (darwin_check_new_threads): Adjust.
26 (thread_info_from_private_thread_info): Adjust.
27 * linux-thread-db.c (private_thread_info): Rename to ...
28 (thread_db_thread_info): ... this, initialize fields.
29 (get_thread_db_thread_info): New.
30 <dying>: Change type to bool.
31 (update_thread_state): Adjust to type rename.
32 (record_thread): Adjust to type rename an use of unique_ptr.
33 (thread_db_pid_to_str): Likewise.
34 (thread_db_extra_thread_info): Likewise.
35 (thread_db_thread_handle_to_thread_info): Likewise.
36 (thread_db_get_thread_local_address): Likewise.
37 * nto-tdep.h (private_thread_info): Rename to ...
38 (nto_thread_info): ... this, initialize fields.
39 (get_nto_thread_info): New.
40 <name>: Change type to std::string.
41 * nto-tdep.c (nto_extra_thread_info): Adjust to type rename and
42 use of unique_ptr.
43 * nto-procfs.c (update_thread_private_data_name): Adjust to
44 std::string change, allocate nto_private_thread_info with new.
45 (update_thread_private_data): Adjust to unique_ptr.
46 * remote.c (private_thread_info): Rename to ...
47 (remote_thread_info): ... this, initialize data members with
48 default values.
49 <extra, name>: Change type to std::string.
50 <thread_handle>: Change type to non-pointer.
51 (free_private_thread_info): Remove.
52 (get_private_info_thread): Rename to...
53 (get_remote_thread_info): ... this, change return type, adjust to
54 use of unique_ptr, use remote_thread_info constructor.
55 (remote_add_thread): Adjust.
56 (get_private_info_ptid): Rename to...
57 (get_remote_thread_info): ...this, change return type.
58 (remote_thread_name): Use get_remote_thread_info, adjust to
59 change to std::string.
60 (struct thread_item) <~thread_item>: Remove.
61 <thread_handle>: Make non pointer.
62 (start_thread): Adjust to thread_item::thread_handle type
63 change.
64 (remote_update_thread_list): Adjust to type name change, move
65 strings from temporary to long-lived object instead of
66 duplicating.
67 (remote_threads_extra_info): Use get_remote_thread_info.
68 (process_initial_stop_replies): Likewise.
69 (resume_clear_thread_private_info): Likewise.
70 (remote_resume): Adjust to type name change.
71 (remote_commit_resume): Use get_remote_thread_info.
72 (process_stop_reply): Adjust to type name change.
73 (remote_stopped_by_sw_breakpoint): Use get_remote_thread_info.
74 (remote_stopped_by_hw_breakpoint): Likewise.
75 (remote_stopped_by_watchpoint): Likewise.
76 (remote_stopped_data_address): Likewise.
77 (remote_core_of_thread): Likewise.
78 (remote_thread_handle_to_thread_info): Use
79 get_private_info_thread, adjust to thread_handle field type
80 change.
81
21fe1c75
SM
822017-11-24 Simon Marchi <simon.marchi@polymtl.ca>
83
84 * remote.c (struct thread_item): Add constructor, disable copy
85 construction and copy assignment, define default move
86 construction and move assignment.
87 <extra, name>: Change type to std::string.
88 <core>: Initialize.
89 <thread_handle>: Make non-pointer.
90 (thread_item_t): Remove typedef.
91 (DEF_VEC_O(thread_item_t)): Remove.
92 (threads_listing_context) <contains_thread>: New method.
93 <remove_thread>: New method.
94 <items>: Change type to std::vector.
95 (clear_threads_listing_context): Remove.
96 (threads_listing_context_remove): Remove.
97 (remote_newthread_step): Use thread_item constructor, adjust to
98 change to std::vector.
99 (start_thread): Use thread_item constructor, adjust to change to
100 std::vector.
101 (end_thread): Adjust to change to std::vector and std::string.
102 (remote_get_threads_with_qthreadinfo): Use thread_item
103 constructor, adjust to std::vector.
104 (remote_update_thread_list): Adjust to change to std::vector and
105 std::string, use threads_listing_context methods.
106 (remove_child_of_pending_fork): Adjust.
107 (remove_new_fork_children): Adjust.
108 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add rsp-low-selftests.c.
109 (SUBDIR_UNITTESTS_OBS): Add rsp-low-selftests.o.
110 * unittests/rsp-low-selftests.c: New file.
111 * common/rsp-low.h: Include common/byte-vector.h.
112 (hex2bin): New overload.
113 * common/rsp-low.c (hex2bin): New overload.
114
089354bb
SM
1152017-11-24 Simon Marchi <simon.marchi@ericsson.com>
116
117 * inferior.h (private_inferior): Define structure type, add
118 virtual pure destructor.
119 (inferior) <priv>: Change type to unique_ptr.
120 * inferior.c (private_inferior::~private_inferior): Provide
121 default implementation.
122 (inferior::~inferior): Don't free priv field.
123 (exit_inferior_1): Likewise.
124 * darwin-nat.h (struct darwin_exception_info): Initialize fields.
125 (darwin_exception_info): Remove typedef.
126 (DEF_VEC_O (darwin_thread_t)); Remove.
127 (private_inferior): Rename to ...
128 (darwin_private_inferior): ... this, extend private_inferior.
129 (get_darwin_inferior): New.
130 <threads>: Change type to std::vector of darwin_thread_t pointers.
131 * darwin-nat.c (darwin_check_new_threads): Adjust.
132 (find_inferior_task_it): Adjust.
133 (darwin_find_thread); Adjust.
134 (darwin_suspend_inferior): Adjust.
135 (darwin_resume_inferior): Adjust.
136 (darwin_find_new_inferior): Adjust.
137 (darwin_decode_notify_message): Adjust.
138 (darwin_send_reply): Adjust.
139 (darwin_resume_inferior_threads): Adjust.
140 (darwin_suspend_inferior_threads): Adjust.
141 (darwin_decode_message): Adjust.
142 (darwin_wait): Adjust.
143 (darwin_interrupt): Adjust.
144 (darwin_deallocate_threads): Adjust.
145 (darwin_mourn_inferior): Adjust, don't free private data.
146 (darwin_reply_to_all_pending_messages): Adjust.
147 (darwin_stop_inferior): Adjust.
148 (darwin_setup_exceptions): Adjust.
149 (darwin_kill_inferior): Adjust.
150 (darwin_setup_request_notification): Adjust.
151 (darwin_attach_pid): Adjust.
152 (darwin_init_thread_list): Adjust.
153 (darwin_setup_fake_stop_event): Adjust.
154 (darwin_attach): Adjust.
155 (darwin_detach): Adjust.
156 (darwin_xfer_partial): Adjust.
157 (set_enable_mach_exceptions): Adjust.
158 (darwin_pid_to_exec_file): Adjust.
159 (darwin_get_ada_task_ptid): Adjust.
160 * darwin-nat-info.c (get_task_from_args): Adjust.
161 (info_mach_ports_command): Adjust.
162 (info_mach_region_command): Adjust.
163 (info_mach_exceptions_command): Adjust.
164 * remote.c (private_inferior): Rename to ...
165 (remote_private_inferior): ... this, initialize fields.
166 (get_remote_inferior); New.
167 (remote_commit_resume): Use get_remote_inferior.
168 (check_pending_event_prevents_wildcard_vcont_callback): Likewise.
169
d044bac8
PA
1702017-11-24 Pedro Alves <palves@redhat.com>
171
172 * NEWS: Mention linespecs and explicit locations, and completion
173 improvements.
174
e8d58cba
YQ
1752017-11-24 Yao Qi <yao.qi@linaro.org>
176
177 * regcache.c (regcache::dump): Remove footnote_register_size.
178
a63f2d2f
YQ
1792017-11-24 Yao Qi <yao.qi@linaro.org>
180
181 * regcache.c (cooked_read_test): Add more test for readonly
182 regcache.
183
1b30aaa5
YQ
1842017-11-24 Yao Qi <yao.qi@linaro.org>
185
186 * gdbarch-selftests.c (test_target_has_registers): Move it to
187 target.c.
188 (test_target_has_stack): Likewise.
189 (test_target_has_memory): Likewise.
190 (test_target_prepare_to_store): Likewise.
191 (test_target_store_registers): Likewise.
192 (test_target_ops): Likewise.
193 * regcache.c: Include selftest-arch.h and gdbthread.h.
194 (target_ops_no_register): New class.
195 (test_target_fetch_registers): New.
196 (test_target_store_registers): New.
197 (test_target_xfer_partial): New.
198 (readwrite_regcache): New.
199 (cooked_read_test): New.
200 (_initialize_regcache): Register the test.
201 * target.c: (test_target_has_registers): Moved from
202 gdbarch-selftests.c.
203 (test_target_has_stack): Likewise.
204 (test_target_has_memory): Likewise.
205 (test_target_prepare_to_store): Likewise.
206 (test_target_store_registers): Likewise.
207 * target.h (test_target_ops): New class.
208
6654d750
AH
2092017-11-24 Alan Hayward <alan.hayward@arm.com>
210
211 * aarch64-tdep.c (_initialize_aarch64_tdep): Add target desc
212 selftest.
213
49bdb7ee
AH
2142017-11-24 Alan Hayward <alan.hayward@arm.com>
215
216 * aarch64-tdep.c (_initialize_aarch64_tdep): Remove init.
217 * arch/aarch64.c (aarch64_create_target_description): Create
218 new target description.
219 * features/Makefile: Add new files.
220 * features/aarch64.c: Remove file.
221 * features/aarch64-core.c: New autogenerated file.
222 * features/aarch64-fpu.c: New autogenerated file.
223 * target-descriptions.c (maint_print_c_tdesc_cmd): Check for aarch64.
da434ccb
AH
224
2252017-11-24 Alan Hayward <alan.hayward@arm.com>
226
227 * Makefile.in: Add new files.
228 * aarch64-linux-nat.c (aarch64_linux_read_description): Call
229 aarch64_read_description.
230 * aarch64-linux-tdep.c (aarch64_linux_core_read_description):
231 Call aarch64_read_description.
232 * aarch64-tdep.c (aarch64_read_description): New function.
233 (aarch64_gdbarch_init): Call aarch64_read_description.
234 * aarch64-tdep.h (aarch64_read_description): New function.
235 * arch/aarch64.c: New file.
236 * configure.tgt: Add new files.
237
98ead37e
YQ
2382017-11-24 Yao Qi <yao.qi@linaro.org>
239
240 * mi/mi-main.c (register_changed_p): Update.
241 * value.c (value_contents_bits_eq): Change return type.
242 (value_contents_eq): Likewise.
243 * value.h: Update comments.
244
62ad7ce7
YQ
2452017-11-24 Yao Qi <yao.qi@linaro.org>
246
247 * mi/mi-main.c (mi_cmd_data_list_changed_registers): Remove
248 local 'changed'. Remove error.
249 (register_changed_p): Change return type to bool.
250
506fe5f4
YQ
2512017-11-24 Yao Qi <yao.qi@linaro.org>
252
253 * arch/tic6x.c: New file.
254 * arch/tic6x.h: New file.
255 * features/Makefile (FEATURE_XMLFILES): Add tic6x-c6xp.xml,
256 tic6x-core.xml and tic6x-gp.xml.
257 * features/tic6x-c6xp.c: Generated.
258 * features/tic6x-core.c: Generated.
259 * features/tic6x-gp.c: Generated.
260 * target-descriptions.c (maint_print_c_tdesc_cmd): Match
261 "tic6x-".
262
00ea2e2a
SM
2632017-11-23 Simon Marchi <simon.marchi@ericsson.com>
264
265 * mi/mi-main.c (list_available_thread_groups): Change map value
266 type to std::vector.
267
f45e2a77
SM
2682017-11-23 Simon Marchi <simon.marchi@ericsson.com>
269
270 * osdata.c (osdata_end_column, get_osdata): Remove std::move.
271
bd046f64
SM
2722017-11-23 Simon Marchi <simon.marchi@ericsson.com>
273
274 * varobj.c (struct varobj_dynamic) <children_requested_>: Rename
275 back to...
276 <children_requested>: ... this.
277 (varobj_get_num_children, varobj_update): Adjust.
278
4c37490d
SM
2792017-11-23 Simon Marchi <simon.marchi@ericsson.com>
280
281 * ada-varobj.c (ada_value_is_changeable_p): Change int to bool where applicable.
282 (ada_value_has_mutated): Likewise.
283 * c-varobj.c (varobj_is_anonymous_child): Likewise.
284 (c_is_path_expr_parent): Likewise.
285 * mi/mi-cmd-var.c (varobj_update_one): Likewise.
286 (mi_cmd_var_set_frozen): Likewise.
287 (mi_cmd_var_update_iter): Likewise.
288 (mi_cmd_var_update): Likewise.
289 * varobj.c (pretty_printing): Likewise.
290 (varobj_enable_pretty_printing): Likewise.
291 (struct varobj_root) <floating, is_valid>: Likewise.
292 (struct varobj_dynamic) <children_requested>: Likewise.
293 (delete_variable): Likewise.
294 (delete_variable_1): Likewise.
295 (install_variable): Likewise.
296 (update_type_if_necessary): Likewise.
297 (install_new_value): Likewise.
298 (value_of_root): Likewise.
299 (is_root_p): Likewise.
300 (varobj_create): Likewise.
301 (varobj_delete): Likewise.
302 (varobj_has_more): Likewise.
303 (varobj_set_frozen): Likewise.
304 (varobj_get_frozen): Likewise.
305 (install_dynamic_child): Likewise.
306 (dynamic_varobj_has_child_method): Likewise.
307 (update_dynamic_varobj_children): Likewise.
308 (varobj_get_num_children): Likewise.
309 (varobj_list_children): Likewise.
310 (is_path_expr_parent): Likewise.
311 (varobj_default_is_path_expr_parent): Likewise.
312 (varobj_is_dynamic_p): Likewise.
313 (varobj_set_value): Likewise.
314 (varobj_value_has_mutated): Likewise.
315 (varobj_update): Likewise.
316 (check_scope): Likewise.
317 (value_of_root_1): Likewise.
318 (varobj_value_get_print_value): Likewise.
319 (varobj_editable_p): Likewise.
320 (varobj_value_is_changeable_p): Likewise.
321 (varobj_floating_p): Likewise.
322 (varobj_default_value_is_changeable_p): Likewise.
323 (varobj_invalidate_iter): Likewise.
324 * varobj.h (struct varobj_update_result) <type_changed,
325 children_changed, changed, value_installed>: Likewise.
326 (struct varobj) <updated, frozen, not_fetched>: Likewise.
327 (struct lang_varobj_ops) <value_is_changeable_p,
328 value_has_mutated, is_path_expr_parent>: Likewise.
329 (varobj_delete): Likewise.
330 (varobj_set_frozen): Likewise.
331 (varobj_get_frozen): Likewise.
332 (varobj_set_value): Likewise.
333 (varobj_update): Likewise.
334 (varobj_editable_p): Likewise.
335 (varobj_floating_p): Likewise.
336 (varobj_has_more): Likewise.
337 (varobj_is_dynamic_p): Likewise.
338 (varobj_default_value_is_changeable_p): Likewise.
339 (varobj_value_is_changeable_p): Likewise.
340 (varobj_is_anonymous_child): Likewise.
341 (varobj_default_is_path_expr_parent): Likewise.
342
9c23b42f
SDJ
3432017-11-22 Sergio Durigan Junior <sergiodj@redhat.com>
344
345 * dtrace-probe.c (struct probe_ops dtrace_probe_ops): Delete.
346 (struct dtrace_probe_arg) <dtrace_probe_arg>: New constructor.
347 <type_str>: Convert to 'std::string'.
348 <expr>: Convert to 'expression_up'.
349 (dtrace_probe_arg_s): Delete type and VEC.
350 (dtrace_probe_enabler_s): Likewise.
351 (struct dtrace_probe): Replace by...
352 (class dtrace_static_probe_ops): ...this and...
353 (class dtrace_probe): ...this.
354 (dtrace_probe_is_linespec): Rename to...
355 (dtrace_static_probe_ops::is_linespec): ...this. Adjust code
356 to reflect change.
357 (dtrace_process_dof_probe): Use 'std::vector' instead of VEC.
358 Adjust code. Create new instance of 'dtrace_probe'.
359 (dtrace_build_arg_exprs): Rename to...
360 (dtrace_probe::build_arg_exprs): ...this. Adjust code to
361 reflect change.
362 (dtrace_get_probes): Rename to...
363 (dtrace_static_probe_ops::get_probes): ...this. Adjust code
364 to reflect change.
365 (dtrace_get_arg): Rename to...
366 (dtrace_probe::get_arg_by_number): ...this. Adjust code to
367 reflect change.
368 (dtrace_probe_is_enabled): Rename to...
369 (dtrace_probe::is_enabled): ...this. Adjust code to reflect
370 change.
371 (dtrace_get_probe_address): Rename to...
372 (dtrace_probe::get_relocated_address): ...this. Adjust code
373 to reflect change.
374 (dtrace_get_probe_argument_count): Rename to...
375 (dtrace_probe::get_argument_count): ...this. Adjust code to
376 reflect change.
377 (dtrace_can_evaluate_probe_arguments): Rename to...
378 (dtrace_probe::can_evaluate_arguments): ...this. Adjust code
379 to reflect change.
380 (dtrace_evaluate_probe_argument): Rename to...
381 (dtrace_probe::evaluate_argument): ...this. Adjust code to
382 reflect change.
383 (dtrace_compile_to_ax): Rename to...
384 (dtrace_probe::compile_to_ax): ...this. Adjust code to
385 reflect change.
386 (dtrace_probe_destroy): Delete.
387 (dtrace_type_name): Rename to...
388 (dtrace_static_probe_ops::type_name): ...this. Adjust code to
389 reflect change.
390 (dtrace_probe::get_static_ops): New method.
391 (dtrace_gen_info_probes_table_header): Rename to...
392 (dtrace_static_probe_ops::gen_info_probes_table_header):
393 ...this. Adjust code to reflect change.
394 (dtrace_gen_info_probes_table_values): Rename to...
395 (dtrace_probe::gen_info_probes_table_values): ...this. Adjust
396 code to reflect change.
397 (dtrace_enable_probe): Rename to...
398 (dtrace_probe::enable_probe): ...this. Adjust code to reflect
399 change.
400 (dtrace_disable_probe): Rename to...
401 (dtrace_probe::disable_probe): ...this. Adjust code to reflect
402 change.
403 (struct probe_ops dtrace_probe_ops): Delete.
404 (info_probes_dtrace_command): Call 'info_probes_for_spops'
405 instead of 'info_probes_for_ops'.
406 (_initialize_dtrace_probe): Use 'all_static_probe_ops' instead
407 of 'all_probe_ops'.
408
0e9ae10f
SDJ
4092017-11-22 Sergio Durigan Junior <sergiodj@redhat.com>
410 Simon Marchi <simark@simark.ca>
411
412 * stap-probe.c (struct probe_ops stap_probe_ops): Delete
413 variable.
414 (struct stap_probe_arg) <stap_probe_arg>: New constructor.
415 <aexpr>: Change type to 'expression_up'.
416 (stap_probe_arg_s): Delete type and VEC.
417 (struct stap_probe): Delete. Replace by...
418 (class stap_static_probe_ops): ...this and...
419 (class stap_probe): ...this. Rename variables to add 'm_'
420 prefix. Do not use 'union' for arguments anymore.
421 (stap_get_expected_argument_type): Receive probe name instead
422 of 'struct stap_probe'. Adjust code.
423 (stap_parse_probe_arguments): Rename to...
424 (stap_probe::parse_arguments): ...this. Adjust code to
425 reflect change.
426 (stap_get_probe_address): Rename to...
427 (stap_probe::get_relocated_address): ...this. Adjust code
428 to reflect change.
429 (stap_get_probe_argument_count): Rename to...
430 (stap_probe::get_argument_count): ...this. Adjust code
431 to reflect change.
432 (stap_get_arg): Rename to...
433 (stap_probe::get_arg_by_number'): ...this. Adjust code to
434 reflect change.
435 (can_evaluate_probe_arguments): Rename to...
436 (stap_probe::can_evaluate_arguments): ...this. Adjust code
437 to reflect change.
438 (stap_evaluate_probe_argument): Rename to...
439 (stap_probe::evaluate_argument): ...this. Adjust code
440 to reflect change.
441 (stap_compile_to_ax): Rename to...
442 (stap_probe::compile_to_ax): ...this. Adjust code to
443 reflect change.
444 (stap_probe_destroy): Delete.
445 (stap_modify_semaphore): Adjust comment.
446 (stap_set_semaphore): Rename to...
447 (stap_probe::set_semaphore): ...this. Adjust code to reflect
448 change.
449 (stap_clear_semaphore): Rename to...
450 (stap_probe::clear_semaphore): ...this. Adjust code to
451 reflect change.
452 (stap_probe::get_static_ops): New method.
453 (handle_stap_probe): Adjust code to create instance of
454 'stap_probe'.
455 (stap_get_probes): Rename to...
456 (stap_static_probe_ops::get_probes): ...this. Adjust code to
457 reflect change.
458 (stap_probe_is_linespec): Rename to...
459 (stap_static_probe_ops::is_linespec): ...this. Adjust code to
460 reflect change.
461 (stap_type_name): Rename to...
462 (stap_static_probe_ops::type_name): ...this. Adjust code to
463 reflect change.
464 (stap_gen_info_probes_table_header): Rename to...
465 (stap_static_probe_ops::gen_info_probes_table_header):
466 ...this. Adjust code to reflect change.
467 (stap_gen_info_probes_table_values): Rename to...
468 (stap_probe::gen_info_probes_table_values): ...this. Adjust
469 code to reflect change.
470 (struct probe_ops stap_probe_ops): Delete.
471 (info_probes_stap_command): Use 'info_probes_for_spops'
472 instead of 'info_probes_for_ops'.
473 (_initialize_stap_probe): Use 'all_static_probe_ops' instead
474 of 'all_probe_ops'.
475
935676c9
SDJ
4762017-11-22 Sergio Durigan Junior <sergiodj@redhat.com>
477
478 * break-catch-throw.c (fetch_probe_arguments): Use
479 'probe.prob' instead of 'probe.probe'.
480 * breakpoint.c (create_longjmp_master_breakpoint): Call
481 'can_evaluate_arguments' and 'get_relocated_address' methods
482 from probe.
483 (create_exception_master_breakpoint): Likewise.
484 (add_location_to_breakpoint): Use 'sal->prob' instead of
485 'sal->probe'.
486 (bkpt_probe_insert_location): Call 'set_semaphore' method from
487 probe.
488 (bkpt_probe_remove_location): Likewise, for 'clear_semaphore'.
489 * elfread.c (elf_get_probes): Use 'static_probe_ops' instead
490 of 'probe_ops'.
491 (probe_key_free): Call 'delete' on probe.
492 (check_exception_resume): Use 'probe.prob' instead of
493 'probe.probe'.
494 * location.c (string_to_event_location_basic): Call
495 'probe_linespec_to_static_ops'.
496 * probe.c (class any_static_probe_ops): New class.
497 (any_static_probe_ops any_static_probe_ops): New variable.
498 (parse_probes_in_pspace): Receive 'static_probe_ops' as
499 argument. Adjust code to reflect change.
500 (parse_probes): Use 'static_probe_ops' instead of
501 'probe_ops'. Adjust code to reflect change.
502 (find_probes_in_objfile): Call methods to get name and
503 provider from probe.
504 (find_probe_by_pc): Use 'result.prob' instead of
505 'result.probe'. Call 'get_relocated_address' method from
506 probe.
507 (collect_probes): Adjust comment and argument list to receive
508 'static_probe_ops' instead of 'probe_ops'. Adjust code to
509 reflect change. Call necessary methods from probe.
510 (compare_probes): Call methods to get name and provider from
511 probes.
512 (gen_ui_out_table_header_info): Receive 'static_probe_ops'
513 instead of 'probe_ops'. Use 'std::vector' instead of VEC,
514 adjust code accordingly.
515 (print_ui_out_not_applicables): Likewise.
516 (info_probes_for_ops): Rename to...
517 (info_probes_for_spops): ...this. Receive 'static_probe_ops'
518 as argument instead of 'probe_ops'. Adjust code. Call
519 necessary methods from probe.
520 (info_probes_command): Use 'info_probes_for_spops'.
521 (enable_probes_command): Pass correct argument to
522 'collect_probes'. Call methods from probe.
523 (disable_probes_command): Likewise.
524 (get_probe_address): Move to 'any_static_probe_ops::get_address'.
525 (get_probe_argument_count): Move to
526 'any_static_probe_ops::get_argument_count'.
527 (can_evaluate_probe_arguments): Move to
528 'any_static_probe_ops::can_evaluate_arguments'.
529 (evaluate_probe_argument): Move to
530 'any_static_probe_ops::evaluate_argument'.
531 (probe_safe_evaluate_at_pc): Use 'probe.prob' instead of
532 'probe.probe'.
533 (probe_linespec_to_ops): Rename to...
534 (probe_linespec_to_static_ops): ...this. Adjust code.
535 (probe_any_is_linespec): Rename to...
536 (any_static_probe_ops::is_linespec): ...this.
537 (probe_any_get_probes): Rename to...
538 (any_static_probe_ops::get_probes): ...this.
539 (any_static_probe_ops::type_name): New method.
540 (any_static_probe_ops::gen_info_probes_table_header): New
541 method.
542 (compute_probe_arg): Use 'pc_probe.prob' instead of
543 'pc_probe.probe'. Call methods from probe.
544 (compile_probe_arg): Likewise.
545 (std::vector<const probe_ops *> all_probe_ops): Delete.
546 (std::vector<const static_probe_ops *> all_static_probe_ops):
547 New variable.
548 (_initialize_probe): Use 'all_static_probe_ops' instead of
549 'all_probe_ops'.
550 * probe.h (struct info_probe_column) <field_name>: Delete
551 extraneous newline
552 (info_probe_column_s): Delete type and VEC.
553 (struct probe_ops): Delete. Replace with...
554 (class static_probe_ops): ...this and...
555 (clas probe): ...this.
556 (struct bound_probe) <bound_probe>: Delete extraneous
557 newline. Adjust constructor to receive 'probe' instead of
558 'struct probe'.
559 <probe>: Rename to...
560 <prob>: ...this. Delete extraneous newline.
561 <objfile>: Delete extraneous newline.
562 (register_probe_ops): Delete unused prototype.
563 (info_probes_for_ops): Rename to...
564 (info_probes_for_spops): ...this. Adjust comment.
565 (get_probe_address): Move to 'probe::get_address'.
566 (get_probe_argument_count): Move to
567 'probe::get_argument_count'.
568 (can_evaluate_probe_arguments): Move to
569 'probe::can_evaluate_arguments'.
570 (evaluate_probe_argument): Move to 'probe::evaluate_argument'.
571 * solib-svr4.c (struct svr4_info): Adjust comment.
572 (struct probe_and_action) <probe>: Rename to...
573 <prob>: ...this.
574 (register_solib_event_probe): Receive 'probe' instead of
575 'struct probe' as argument. Use 'prob' instead of 'probe'
576 when applicable.
577 (solib_event_probe_action): Call 'get_argument_count' method
578 from probe. Adjust comment.
579 (svr4_handle_solib_event): Adjust comment. Call
580 'evaluate_argument' method from probe.
581 (svr4_create_probe_breakpoints): Call 'get_relocated_address'
582 from probe.
583 (svr4_create_solib_event_breakpoints): Use 'probe' instead of
584 'struct probe'. Call 'can_evaluate_arguments' from probe.
585 * symfile.h: Forward declare 'class probe' instead of 'struct
586 probe'.
587 * symtab.h: Likewise.
588 (struct symtab_and_line) <probe>: Rename to...
589 <prob>: ...this.
590 * tracepoint.c (start_tracing): Use 'prob' when applicable.
591 Call probe methods.
592 (stop_tracing): Likewise.
593
8f6cb6c3
JB
5942017-11-22 Joel Brobecker <brobecker@adacore.com>
595
596 * ravenscar-thread.c (ravenscar_inferior_created): Remove
597 trailing newline at end of string in call to warning.
598
479f8de1
SM
5992017-11-22 Simon Marchi <simon.marchi@polymtl.ca>
600
601 * osdata.h: Include vector isntead of vec.h.
602 (osdata_column_s): Remove typedef.
603 (struct osdata_column): Add constructor.
604 <name, value>: Change type to std::string.
605 (DEF_VEC_O (osdata_column_s)): Remove.
606 (osdata_item_s): Remove typedef.
607 (struct osdata_item) <columns>: Change type to std::vector.
608 (DEF_VEC_O (osdata_item_s)): Remove.
609 (struct osdata): Add constructor.
610 <type>: Change type to std::string.
611 <items>: Change type to std::vector.
612 (osdata_p): Remove typedef.
613 (DEF_VEC_P (osdata_p)): Remove.
614 (osdata_parse): Return a unique_ptr.
615 (osdata_free): Remove.
616 (make_cleanup_osdata_free): Remove.
617 (get_osdata): Return a unique_ptr.
618 (get_osdata_column): Return pointer to std::string, take a
619 reference to osdata_item as parameter.
620 * osdata.c (struct osdata_parsing_data) <osdata>: Change type to
621 unique_ptr.
622 <property_name>: Change type to std::string.
623 (osdata_start_osdata): Allocate osdata with new and adjust.
624 (osdata_start_item): Adjust.
625 (osdata_start_column): Adjust.
626 (osdata_end_column): Adjust.
627 (clear_parsing_data): Remove.
628 (osdata_parse): Return a unique_ptr and adjust, remove cleanup.
629 (osdata_item_clear): Remove.
630 (get_osdata): return a unique_ptr and adjust.
631 (get_osdata_column): Return a pointer to std::string and adjust.
632 (info_osdata): Adjust.
633 * mi/mi-main.c: Include <map>.
634 (free_vector_of_osdata_items): Remove.
635 (list_available_thread_groups): Adjust, use std::map instead of
636 splay tree.
637
41bd68f5
SM
6382017-11-22 Simon Marchi <simon.marchi@ericsson.com>
639
640 * stack.c (iterate_over_block_locals): Add LOC_OPTIMIZED_OUT
641 case in switch.
642
7e2fd2f4
SM
6432017-11-22 Simon Marchi <simon.marchi@polymtl.ca>
644
645 * varobj.h (DEF_VEC_P (varobj_p)): Remove.
646
0604393c
SM
6472017-11-22 Simon Marchi <simon.marchi@polymtl.ca>
648
649 * varobj.h (struct varobj_update_result): Add constructor, add
650 move constructor, disable copy and assign, initialize fields.
651 <newobj>: Change type to std::vector.
652 (varobj_update): Return std::vector.
653 * varobj.c (install_dynamic_child): Change VEC parameters to
654 std::vector and adjust.
655 (update_dynamic_varobj_children): Likewise.
656 (varobj_update): Return std::vector and adjust.
657 * mi/mi-cmd-var.c (varobj_update_one): Adjust to vector changes.
658
ddf0ea08
SM
6592017-11-22 Simon Marchi <simon.marchi@polymtl.ca>
660
661 * varobj.h (struct varobj) <parent>: Remove const.
662 <children>: Change type to std::vector.
663 (varobj_list_children): Return std::vector const reference.
664 (varobj_restrict_range): Change parameter type to std::vector
665 const reference.
666 * varobj.c (varobj_has_more): Adjust.
667 (varobj_restrict_range): Change parameter type to std::vector
668 const reference and adjust.
669 (install_dynamic_child): Adjust.
670 (update_dynamic_varobj_children): Adjust.
671 (varobj_list_children): Return std::vector const reference and
672 adjust.
673 (varobj_add_child): Adjust.
674 (update_type_if_necessary): Adjust.
675 (varobj_update): Adjust.
676 (delete_variable_1): Adjust.
677 * ada-varobj.c (ada_value_has_mutated): Adjust.
678 * mi/mi-cmd-var.c (mi_cmd_var_list_children): Adjust.
679
9e5b9d2b
SM
6802017-11-22 Simon Marchi <simon.marchi@polymtl.ca>
681
682 * varobj.h (struct varobj): Add constructor and destructor,
683 initialize fields.
684 * varobj.c (struct varobj_root): Initialize fields.
685 (struct varobj_dynamic): Initialize fields.
686 (varobj_create): Use unique_ptr instead of cleanup. Create
687 varobj with new instead of new_root_variable.
688 (delete_variable_1): Free variable with delete instead of
689 free_variable.
690 (create_child_with_value): Create variable with new instead of
691 new_variable.
692 (varobj::varobj): New.
693 (varobj::~varobj): New (body mostly coming from free_variable).
694 (new_variable): Remove.
695 (free_variable): Remove.
696 (do_free_variable_cleanup): Remove.
697 (make_cleanup_free_variable): Remove.
698
fc35dab1
UW
6992017-11-22 Ulrich Weigand <uweigand@de.ibm.com>
700
701 * core-regset.c: Remove file.
702 * Makefile.in (ALLDEPFILES): Remove core-regset.c.
703
2400729e
UW
7042017-11-22 Ulrich Weigand <uweigand@de.ibm.com>
705
706 * NEWS: Document use of GNU MPFR.
707 * README: Likewise.
708
709 * Makefile.in (LIBMPFR): Add define.
710 (CLIBS): Add $(LIBMPFR).
711 * configure.ac: Add --with-mpfr configure option.
712 * configure: Regenerate.
713 * config.in: Regenerate.
714
715 * target-float.c [HAVE_LIBMPFR]: Include <mpfr.h>.
716 (class mpfr_float_ops): New type.
717 (mpfr_float_ops::from_target): Two new overloaded functions.
718 (mpfr_float_ops::to_target): Likewise.
719 (mpfr_float_ops::to_string): New function.
720 (mpfr_float_ops::from_string): Likewise.
721 (mpfr_float_ops::to_longest): Likewise.
722 (mpfr_float_ops::from_longest): Likewise.
723 (mpfr_float_ops::from_ulongest): Likewise.
724 (mpfr_float_ops::to_host_double): Likewise.
725 (mpfr_float_ops::from_host_double): Likewise.
726 (mpfr_float_ops::convert): Likewise.
727 (mpfr_float_ops::binop): Likewise.
728 (mpfr_float_ops::compare): Likewise.
729 (get_target_float_ops): Use mpfr_float_ops if available.
730
7a26362d
UW
7312017-11-22 Ulrich Weigand <uweigand@de.ibm.com>
732
733 * target-float.c: Do not include <math.h>.
734 Include <cmath> and <limits>.
735 (DOUBLEST): Do not define.
736 (class target_float_ops): New type.
737 (class host_float_ops): New templated type.
738 (class decimal_float_ops): New type.
739
740 (floatformat_to_doublest): Rename to ...
741 (host_float_ops<T>::from_target): ... this. Use template type T
742 instead of DOUBLEST. Use C++ math routines. Update recursive calls.
743 (host_float_ops<T>::from_target): New overload using a type argument.
744 (floatformat_from_doublest): Rename to ...
745 (host_float_ops<T>::to_target): ... this. Use template type T
746 instead of DOUBLEST. Use C++ math routines. Update recursive calls.
747 (host_float_ops<T>::to_target): New overload using a type argument.
748 (floatformat_printf_format): New function.
749 (struct printf_length_modifier): New templated type.
750 (floatformat_to_string): Rename to ...
751 (host_float_ops<T>::to_string): ... this. Use type instead of
752 floatformat argument. Use floatformat_printf_format and
753 printf_length_modifier. Remove special handling of invalid numbers,
754 infinities and NaN (moved to target_float_to_string).
755 (struct scanf_length_modifier): New templated type.
756 (floatformat_from_string): Rename to ...
757 (host_float_ops<T>::from_string): ... this. Use type instead of
758 floatformat argument. Use scanf_length_modifier.
759 (floatformat_to_longest): Rename to ...
760 (host_float_ops<T>::to_longest): ... this. Use type instead of
761 floatformat argument. Handle out-of-range values deterministically.
762 (floatformat_from_longest): Rename to ...
763 (host_float_ops<T>::from_longest): ... this. Use type instead of
764 floatformat argument.
765 (floatformat_from_ulongest): Rename to ...
766 (host_float_ops<T>::from_ulongest): ... this. Use type instead of
767 floatformat argument.
768 (floatformat_to_host_double): Rename to ...
769 (host_float_ops<T>::to_host_double): ... this. Use type instead of
770 floatformat argument.
771 (floatformat_from_host_double): Rename to ...
772 (host_float_ops<T>::from_host_double): ... this. Use type instead of
773 floatformat argument.
774 (floatformat_convert): Rename to ...
775 (host_float_ops<T>::convert): ... this. Use type instead of
776 floatformat arguments. Remove handling of no-op conversions.
777 (floatformat_binop): Rename to ...
778 (host_float_ops<T>::binop): ... this. Use type instead of
779 floatformat arguments.
780 (floatformat_compare): Rename to ...
781 (host_float_ops<T>::compare): ... this. Use type instead of
782 floatformat arguments.
783
784 (match_endianness): Use type instead of length/byte_order arguments.
785 (set_decnumber_context): Likewise.
786 (decimal_from_number): Likewise. Update calls.
787 (decimal_to_number): Likewise.
788 (decimal_is_zero): Likewise. Update calls. Move to earlier in file.
789 (decimal_float_ops::to_host_double): New dummy function.
790 (decimal_float_ops::from_host_double): Likewise.
791 (decimal_to_string): Rename to ...
792 (decimal_float_ops::to_string): ... this. Use type instead of
793 length/byte_order arguments. Update calls.
794 (decimal_from_string): Rename to ...
795 (decimal_float_ops::from_string): ... this. Use type instead of
796 length/byte_order arguments. Update calls.
797 (decimal_from_longest): Rename to ...
798 (decimal_float_ops::from_longest): ... this. Use type instead of
799 length/byte_order arguments. Update calls.
800 (decimal_from_ulongest): Rename to ...
801 (decimal_float_ops::from_ulongest): ... this. Use type instead of
802 length/byte_order arguments. Update calls.
803 (decimal_to_longest): Rename to ...
804 (decimal_float_ops::to_longest): ... this. Use type instead of
805 length/byte_order arguments. Update calls.
806 (decimal_binop): Rename to ...
807 (decimal_float_ops::binop): ... this. Use type instead of
808 length/byte_order arguments. Update calls.
809 (decimal_compare): Rename to ...
810 (decimal_float_ops::compare): ... this. Use type instead of
811 length/byte_order arguments. Update calls.
812 (decimal_convert): Rename to ...
813 (decimal_float_ops::convert): ... this. Use type instead of
814 length/byte_order arguments. Update calls.
815
816 (target_float_same_category_p): New function.
817 (target_float_same_format_p): Likewise.
818 (target_float_format_length): Likewise.
819 (enum target_float_ops_kind): New type.
820 (get_target_float_ops_kind): New function.
821 (get_target_float_ops): Three new overloaded functions.
822
823 (target_float_is_zero): Update call.
824 (target_float_to_string): Add special handling of invalid numbers,
825 infinities and NaN (moved from floatformat_to_string). Use
826 target_float_ops callback.
827 (target_float_from_string): Use target_float_ops callback.
828 (target_float_to_longest): Likewise.
829 (target_float_from_longest): Likewise.
830 (target_float_from_ulongest): Likewise.
831 (target_float_to_host_double): Likewise.
832 (target_float_from_host_double): Likewise.
833 (target_float_convert): Add special case for no-op conversions.
834 Use target_float_ops callback.
835 (target_float_binop): Use target_float_ops callback.
836 (target_float_compare): Likewise.
837
a9f26f60
YQ
8382017-11-22 Yao Qi <yao.qi@linaro.org>
839
840 * python/py-gdb-readline.c (gdbpy_readline_wrapper): Use strcpy.
841
29f9a567
YQ
8422017-11-22 Yao Qi <yao.qi@linaro.org>
843
844 * cli/cli-decode.c (help_list): Use memcpy instead of strncpy.
845 * cp-namespace.c (cp_lookup_transparent_type_loop): Likewise.
846
3b1b69bf
JG
8472017-11-21 Jerome Guitton <guitton@adacore.com>
848
849 * ravenscar-thread.c (ravenscar_wait): Update inferior ptid
850 with event ptid from the lower layer before doing the
851 ravenscar-specific update.
852
54aa6c67
JB
8532017-11-21 Joel Brobecker <brobecker@adacore.com>
854
855 * ravenscar-thread.c (is_ravenscar_task): Also verify that
856 the ptid's TID is nonzero.
857
cf3fbed4
JB
8582017-11-21 Joel Brobecker <brobecker@adacore.com>
859
860 * ada-lang.h (ada_get_tcb_types_info): Add declaration.
861 * ada-tasks.c (ada_get_tcb_types_info): Renames get_tcb_types_info.
862 Make non-static. Change return type to char *. Adjust code
863 accordingly. Rewrite the function's documentation.
864 (read_atcb): Adjust call to get_tcb_types_info accordingly.
865 * ravenscar-thread.c (ravenscar_inferior_created): Check that
866 we have enough debugging information in the runtime to support
867 Ada task debugging before we enable the ravenscar-thread layer.
868
9edcc12f
JB
8692017-11-21 Joel Brobecker <brobecker@adacore.com>
870
871 * ada-lang.h (ada_get_task_info_from_ptid): Add declaration.
872 * ada-tasks.c (ada_get_task_info_from_ptid): New function.
873 * ravenscar-thread.c: Add into comment.
874 (base_magic_null_ptid): Delete.
875 (base_ptid): Change documentation.
876 (ravenscar_active_task): Renames ravenscar_running_thread.
877 All callers updated throughout.
878 (is_ravenscar_task, ravenscar_get_thread_base_cpu): New function.
879 (ravenscar_task_is_currently_active): Likewise.
880 (get_base_thread_from_ravenscar_task): Ditto.
881 (ravenscar_update_inferior_ptid): Adjust to handle multiple CPUs.
882 (ravenscar_runtime_initialized): Likewise.
883 (get_running_thread_id): Add new parameter "cpu". Adjust
884 implementation to handle this new parameter.
885 (ravenscar_fetch_registers): Small adjustment to use
886 is_ravenscar_task and ravenscar_task_is_currently_active in
887 order to decide whether to use the target beneath or this
888 module's arch_ops.
889 (ravenscar_store_registers, ravenscar_prepare_to_store): Likewise.
890 (ravenscar_stopped_by_sw_breakpoint): Use
891 get_base_thread_from_ravenscar_task to get the underlying
892 thread, rather than using base_ptid.
893 (ravenscar_stopped_by_hw_breakpoint, ravenscar_stopped_by_watchpoint)
894 (ravenscar_stopped_data_address, ravenscar_core_of_thread):
895 Likewise.
896 (ravenscar_inferior_created): Do not set base_magic_null_ptid.
897
65d40437
JB
8982017-11-21 Joel Brobecker <brobecker@adacore.com>
899
900 * ada-lang.h (struct ada_task_info) <base_cpu>: New field.
901 * ada-lang.c (struct atcb_fieldno) <base_cpu>: New field.
902 (get_tcb_types_info): Set fieldnos.base_cpu.
903 (read_atcb): Set task_info->base_cpu.
904 (info_task): Print "Base CPU" info if set by runtime.
905
e02544b2
JB
9062017-11-21 Joel Brobecker <brobecker@adacore.com>
907
908 * ravenscar-thread.c (ravenscar_stopped_by_sw_breakpoint)
909 (ravenscar_stopped_by_hw_breakpoint, ravenscar_stopped_by_watchpoint)
910 (ravenscar_stopped_data_address, ravenscar_core_of_thread):
911 New functions.
912 (init_ravenscar_thread_ops): Set the to_stopped_by_sw_breakpoint,
913 to_stopped_by_hw_breakpoint, to_stopped_by_watchpoint,
914 to_stopped_data_address and to_core_of_thread fields of
915 ravenscar_ops.
916
ed0f4273
UW
9172017-11-21 Ulrich Weigand <uweigand@de.ibm.com>
918
919 * ppc-tdep.h (enum powerpc_long_double_abi): New data type.
920 (struct gdbarch_tdep): New member long_double_abi.
921 * rs6000-tdep.c (rs6000_gdbarch_init): Initialize long_double_abi
922 member of tdep struct based on Tag_GNU_Power_ABI_FP attribute.
923 * ppc-linux-tdep.c (ppc_linux_init_abi): Install long double data
924 format depending on long_double_abi tdep member.
925 (ppc_floatformat_for_type): Handle __ibm128 type.
926
0fc76421
SM
9272017-11-20 Simon Marchi <simon.marchi@polymtl.ca>
928
929 * darwin-nat.c (set_enable_mach_exceptions): Constify parameter.
930
e6b2f5ef
PA
9312017-11-21 Pedro Alves <palves@redhat.com>
932
933 * dwarf2read.c (mapped_index::find_name_components_bounds)
934 <completion mode, upper bound>: Use std::lower_bound instead of
935 std::upper_bound.
936 (test_mapped_index_find_name_component_bounds): Remove incorrect
937 "t1_fund" from expected symbols.
938
5c58de74
PA
9392017-11-21 Pedro Alves <palves@redhat.com>
940
941 * dwarf2read.c (mapped_index::name_components_casing): New field.
942 (mapped_index) <build_name_components,
943 find_name_components_bounds): Declare new methods.
944 (mapped_index::find_name_components_bounds)
945 (mapped_index::build_name_components): New methods, factored out
946 from dw2_expand_symtabs_matching_symbol.
947 (check_find_bounds_finds)
948 (test_mapped_index_find_name_component_bounds): New.
949 (run_test): Rename to ...
950 (test_dw2_expand_symtabs_matching_symbol): ... this.
951 (run_test): Reimplement.
952
e1ef7d7a
PA
9532017-11-21 Pedro Alves <palves@redhat.com>
954
955 * cp-name-parser.y (cp_ident_is_alpha, cp_ident_is_alnum): New.
956 (symbol_end): Use cp_ident_is_alnum.
957 (yylex): Use cp_ident_is_alpha and cp_ident_is_alnum.
958 * dwarf2read.c (make_sort_after_prefix_name): New function.
959 (dw2_expand_symtabs_matching_symbol): Use it.
960 (test_symbols): Add more symbols.
961 (run_test): Add tests.
962
cf724bc9
TT
9632017-11-17 Tom Tromey <tom@tromey.com>
964
965 * symtab.h (enum symbol_subclass_kind): New.
966 (struct symbol) <is_cplus_template_function, is_rust_vtable>:
967 Remove.
968 <subclass>: New member.
969 (SYMBOL_IS_CPLUS_TEMPLATE_FUNCTION): Update.
970 * rust-lang.c (rust_get_trait_object_pointer): Update.
971 * dwarf2read.c (read_func_scope): Update.
972 (read_variable): Update.
973
68e745e3
TT
9742017-11-17 Tom Tromey <tom@tromey.com>
975
976 * dwarf2read.c (read_func_scope): Update.
977 * symtab.h (struct template_symbol): Derive from symbol.
978 <base>: Remove.
979
71a3c369
TT
9802017-11-17 Tom Tromey <tom@tromey.com>
981
982 * symtab.h (struct symbol) <is_rust_vtable>: New member.
983 (struct rust_vtable_symbol): New.
984 (find_symbol_at_address): Declare.
985 * symtab.c (find_symbol_at_address): New function.
986 * symfile.h (struct quick_symbol_functions)
987 <find_compunit_symtab_by_address>: New member.
988 * symfile-debug.c (debug_qf_find_compunit_symtab_by_address): New
989 function.
990 (debug_sym_quick_functions): Link to
991 debug_qf_find_compunit_symtab_by_address.
992 * rust-lang.c (rust_get_trait_object_pointer): New function.
993 (rust_evaluate_subexp) <case UNOP_IND>: New case. Call
994 rust_get_trait_object_pointer.
995 * psymtab.c (psym_relocate): Clear psymbol_map.
996 (psym_fill_psymbol_map, psym_find_compunit_symtab_by_address): New
997 functions.
998 (psym_functions): Link to psym_find_compunit_symtab_by_address.
999 * objfiles.h (struct objfile) <psymbol_map>: New member.
1000 * dwarf2read.c (dwarf2_gdb_index_functions): Update.
1001 (process_die) <DW_TAG_variable>: New case. Call read_variable.
1002 (rust_containing_type, read_variable): New functions.
1003
7468702d
SM
10042017-11-17 Simon Marchi <simon.marchi@polymtl.ca>
1005
1006 * common/gdb_vecs.h (DEF_VEC_I (int)): Remove.
1007
37269bc9
SM
10082017-11-17 Simon Marchi <simon.marchi@polymtl.ca>
1009
1010 * common/filestuff.c: Include <algorithm>.
1011 (open_fds): Change type to std::vector<int>.
1012 (do_mark_open_fd): Adjust.
1013 (unmark_fd_no_cloexec): Adjust.
1014 (do_close): Adjust.
1015
5c632425
SM
10162017-11-17 Simon Marchi <simon.marchi@polymtl.ca>
1017
1018 * breakpoint.c (output_thread_groups): Take an std::vector.
1019 (print_one_breakpoint_location): Adjust.
1020
ced9779b
JB
10212017-11-17 Joel Brobecker <brobecker@adacore.com>
1022
1023 * ada-lang.c (resolve_subexp): Add handling of OP_VAR_MSYM_VALUE.
1024 (ada_evaluate_subexp_for_cast): New function.
1025 (ada_evaluate_subexp) <UNOP_CAST>: Replace code by call to
1026 ada_evaluate_subexp_for_cast.
1027 (ada_evaluate_subexp) <nosideret>: Replace code by call to
1028 eval_skip_value.
1029 * eval.c (evaluate_var_value): Make non-static.
1030 (evaluate_var_msym_value, eval_skip_value): Likewise.
1031 * value.h (evaluate_var_value, evaluate_var_msym_value)
1032 (eval_skip_value): Declare.
1033
b7e22850
JB
10342017-11-16 Joel Brobecker <brobecker@adacore.com>
1035
1036 * ada-lang.c (ada_value_cast): Remove parameter "noside".
1037 Update all callers.
1038
9ccabccd
PA
10392017-11-16 Pedro Alves <palves@redhat.com>
1040
1041 * python/py-unwind.c (pyuw_sniffer): Translate
1042 PyExc_KeyboardInterrupt to a GDB Quit exception.
1043
d930703d
PA
10442017-11-16 Pedro Alves <palves@redhat.com>
1045
1046 * infrun.c (resume_cleanups): Delete.
1047 (resume): No longer install a resume_cleanups cleanup nor call
1048 QUIT.
1049 (proceed): Pass the terminal to the inferior.
1050 (keep_going_pass_signal): No longer install a resume_cleanups
1051 cleanup.
1052
38dc2859
PA
10532017-11-16 Pedro Alves <palves@redhat.com>
1054
1055 * inf-loop.c (inferior_event_handler): Don't swallow the exception
1056 if the prompt is blocked.
1057
688fca4f
PA
10582017-11-16 Pedro Alves <palves@redhat.com>
1059
1060 * breakpoint.c (insert_bp_location): Replace bp_err and
1061 bp_err_message locals by a gdb_exception local.
1062
e2c33ac7
PA
10632017-11-16 Pedro Alves <palves@redhat.com>
1064
1065 * inflow.c (scoped_ignore_sigttou): New class.
1066 (child_terminal_ours_1, new_tty): Use it.
1067
d7236961
UW
10682017-11-16 Ulrich Weigand <uweigand@de.ibm.com>
1069
1070 * target-float.c (decimal_from_number): Add byte_order argument and
1071 call match_endianness. Error if unknown floating-point type.
1072 (decimal_to_number): Add byte_order argument and call match_endianness.
1073 (decimal_from_longest): Update call. Do not call match_endianness.
1074 (decimal_from_ulongest): Likewise.
1075 (decimal_binop): Likewise.
1076 (decimal_is_zero): Likewise.
1077 (decimal_compare): Likewise.
1078 (decimal_convert): Likewise.
1079
d8ae99a7
PM
10802017-11-16 Phil Muldoon <pmuldoon@redhat.com>
1081
1082 * python/python.c (gdbpy_rbreak): New function.
1083 * NEWS: Document Python rbreak feature.
1084
c632b645
YQ
10852017-11-16 Yao Qi <yao.qi@linaro.org>
1086
1087 * features/tic6x-c62x.xml: Remove.
1088 * features/tic6x-c64x.xml: Remove.
1089 * features/tic6x-c64xp.xml: Remove.
1090
a014b87a
JB
10912017-11-15 John Baldwin <jhb@FreeBSD.org>
1092
1093 * symtab.h: Include <array>.
1094
94765011
JB
10952017-11-15 John Baldwin <jhb@FreeBSD.org>
1096
1097 * bsd-kvm.c (bsd_kvm_cmd): Constify 'arg'.
1098 (bsd_kvm_proc_cmd): Likewise.
1099
625ad440
SM
11002017-11-15 Simon Marchi <simon.marchi@ericsson.com>
1101
1102 * tui/tui-win.c (window_name_completer): Replace VEC with
1103 std::vector.
1104
c0c11fa9
AC
11052017-11-15 Andrew Cagney <cagney@gnu.org>
1106
1107 * MAINTAINERS: Remove no-longer applicable entries.
1108
34a7ebaf
AC
11092017-11-15 Andrew Cagney <cagney@gnu.org>
1110
1111 * MAINTAINERS: Move self to Past Maintainers.
1112
5334ef39
YQ
11132017-11-15 Yao Qi <yao.qi@linaro.org>
1114
1115 * features/Makefile (XMLTOC): Remove nios2-linux.xml.
1116 * features/nios2-linux.c: Remove.
1117 * nios2-linux-tdep.c (_initialize_nios2_linux_tdep): Don't call
1118 initialize_tdesc_nios2_linux.
1119
a714b0d6
YQ
11202017-11-15 Yao Qi <yao.qi@linaro.org>
1121
1122 * m68hc11-tdep.c (M68HC11_NUM_REGS): Change it to
1123 M68HC11_LAST_HARD_REG + 1.
1124
92ffd475
PC
11252017-11-14 Paul Carroll <pcarroll@codesourcery.com>
1126
1127 PR gdb/22388
1128 * remote.c (remote_write_bytes_aux, remote_read_bytes_1,
1129 remote_read_bytes, remote_write_qxfer, remote_xfer_partial):
1130 Return TARGET_XFER_EOF if size of returned data is 0.
1131
07431908
SM
11322017-11-14 Simon Marchi <simon.marchi@ericsson.com>
1133
1134 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
1135 memory-map-selftests.c.
1136 (SUBDIR_UNITTESTS_OBS): Add memory-map-selftests.o.
1137 * memory-map.c (memory_map_start_memory): Fix computation of hi
1138 address.
1139 * unittests/memory-map-selftests.c: New file.
1140
31432a67
JB
11412017-11-09 Joel Brobecker <brobecker@adacore.com>
1142
1143 * ada-lang.c: Fix some typos in the general command documenting
1144 how Ada expressions are being evaluated and how their result
1145 is printed.
1146
e793c052
TT
11472017-11-09 Tom Tromey <tom@tromey.com>
1148
1149 * psymtab.c (psymbol_hash): Do not hash string contents.
1150 (psymbol_compare): Add comment.
1151
7e8835c5
TT
11522017-11-09 Tom Tromey <tom@tromey.com>
1153
1154 * dictionary.c (dict_hash): Move "TKB" check into the "switch".
1155
286acbb5
JB
11562017-11-08 Joel Brobecker <brobecker@adacore.com>
1157
1158 * ada-exp.y (write_var_from_sym): Remove parameter
1159 "orig_left_context". Update all callers.
1160
b44ec619
SM
11612017-11-08 Simon Marchi <simon.marchi@ericsson.com>
1162
1163 * tracepoint.h (class collection_list) <stringify>: Return
1164 std::vector<std::string>.
1165 (encode_actions_rsp): Change parameters to
1166 std::vector<std::string> *.
1167 * tracepoint.c (collection_list::stringify): Return
1168 std::vector<std::string> and adjust accordingly.
1169 (encode_actions_rsp): Changee parameters to
1170 std::vector<std::string> and adjust accordingly.
1171 * remote.c (free_actions_list),
1172 free_actions_list_cleanup_wrapper): Remove.
1173 (remote_download_tracepoint): Adjust to std::vector.
1174
2f4732b0
TT
11752017-11-08 Tom Tromey <tom@tromey.com>
1176
1177 * dwarf2read.c (symbolp): Remove typedef.
1178 (read_func_scope): Use std::vector.
1179 (process_structure_scope): Use std::vector.
1180
f9d67a22
PA
11812017-11-08 Pedro Alves <palves@redhat.com>
1182
1183 * ada-lang.c (ada_make_symbol_completion_list): Use
1184 completion_skip_symbol.
1185 * symtab.c (symbol_is_function_or_method(minimal_symbol*)): New.
1186 (symbol_is_function_or_method(symbol*)): New.
1187 (add_symtab_completions): Add complete_symbol_mode parameter. Use
1188 completion_skip_symbol.
1189 (default_collect_symbol_completion_matches_break_on): Use
1190 completion_skip_symbol. Pass down mode.
1191 (collect_file_symbol_completion_matches): Pass down mode.
1192 * symtab.h (symbol_is_function_or_method): New declarations.
1193 (completion_skip_symbol): New template function.
1194
56d87ef7
PA
11952017-11-08 Pedro Alves <palves@redhat.com>
1196
1197 * linespec.c (iterate_over_all_matching_symtabs): Add
1198 search_domain parameter. Pass it down to expand_symtabs_matching.
1199 (decode_objc): Request FUNCTIONS_DOMAIN symbols only.
1200 (lookup_prefix_sym): Adjust by passing ALL_DOMAIN as
1201 search_domain.
1202 (add_all_symbol_names_from_pspace): Add search_domain parameter.
1203 Pass it down.
1204 (find_method, find_function_symbols): Request FUNCTIONS_DOMAIN
1205 symbols.
1206 (add_matching_symbols_to_info): Add search_domain parameter. Pass
1207 it down.
1208
1b026119
PA
12092017-11-08 Pedro Alves <palves@redhat.com>
1210
1211 * ada-lang.c (ada_make_symbol_completion_list): Remove text and
1212 text_len locals and don't pass them down.
1213 * symtab.c (completion_list_add_name): Remove
1214 sym_text/sym_text_len parameters and adjust.
1215 (completion_list_add_symbol, completion_list_add_msymbol)
1216 (completion_list_objc_symbol, completion_list_add_fields)
1217 (add_symtab_completions): Likewise.
1218 (default_collect_symbol_completion_matches_break_on)
1219 (collect_file_symbol_completion_matches): Remove sym_text_len
1220 local and don't pass it down.
1221 * symtab.h (completion_list_add_name): Remove
1222 sym_text/sym_text_len parameters.
1223
c62446b1
PA
12242017-11-08 Pedro Alves <palves@redhat.com>
1225
1226 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
1227 unittests/lookup_name_info-selftests.c.
1228 (SUBDIR_UNITTESTS_OBS): Add lookup_name_info-selftests.o.
1229 * cp-support.c: Include "selftest.h".
1230 (cp_remove_params_1): Rename from cp_remove_params. Add
1231 'require_param' parameter, and handle it.
1232 (cp_remove_params): Reimplement.
1233 (cp_remove_params_if_any): New.
1234 (selftests::quote): New.
1235 (selftests::check_remove_params): New.
1236 (selftests::test_cp_remove_params): New.
1237 (_initialize_cp_support): Install
1238 selftests::test_cp_remove_params.
1239 * cp-support.h (cp_remove_params_if_any): Declare.
1240 * dwarf2read.c :Include "selftest.h".
1241 (dw2_expand_symtabs_matching_symbol): Use
1242 lookup_name_info::make_ignore_params.
1243 (selftests::dw2_expand_symtabs_matching::mock_mapped_index)
1244 (selftests::dw2_expand_symtabs_matching::string_or_null)
1245 (selftests::dw2_expand_symtabs_matching::check_match)
1246 (selftests::dw2_expand_symtabs_matching::test_symbols)
1247 (selftests::dw2_expand_symtabs_matching::run_test): New.
1248 (_initialize_dwarf2_read): Register
1249 selftests::dw2_expand_symtabs_matching::run_test.
1250 * psymtab.c (psym_expand_symtabs_matching): Use
1251 lookup_name_info::make_ignore_params.
1252 * symtab.c (demangle_for_lookup_info::demangle_for_lookup_info):
1253 If the lookup name wants to ignore parameters, strip them.
1254 (compare_symbol_name): Remove sym_text/sym_text_len parameters and
1255 code handling '('.
1256 (completion_list_add_name): Don't pass down sym_text/sym_text_len.
1257 (default_collect_symbol_completion_matches_break_on): Don't try to
1258 strip parameters.
1259 * symtab.h (lookup_name_info::lookup_name_info): Add
1260 'ignore_parameters' parameter.
1261 (lookup_name_info::ignore_parameters)
1262 (lookup_name_info::make_ignore_params): New methods.
1263 (lookup_name_info::m_ignore_parameters): New field.
1264 * unittests/lookup_name_info-selftests.c: New file.
1265
61920122
PA
12662017-11-08 Pedro Alves <palves@redhat.com>
1267
1268 * dwarf2read.c (dw2_expand_marked_cus)
1269 (dw2_expand_symtabs_matching_symbol): Remove forward declarations.
1270 (dw2_expand_symtabs_matching): Move further below.
1271 (dw2_expand_marked_cus): Reindent.
1272
3f563c84
PA
12732017-11-08 Pedro Alves <palves@redhat.com>
1274
1275 * dwarf2read.c (byte_swap, MAYBE_SWAP): Move higher up in file.
1276 (struct name_component): New.
1277 (mapped_index::name_components): New field.
1278 (mapped_index::symbol_name_at): New method.
1279 (dwarf2_read_index): Call mapped_index ctor.
1280 (dw2_map_matching_symbols): Add comment about name_components
1281 table.
1282 (dw2_expand_symtabs_matching): Factor part to...
1283 (dw2_expand_symtabs_matching_symbol): ... this new function.
1284 Build name components table, and lookup symbols in it before
1285 calling the name matcher.
1286 (dw2_expand_marked_cus): New, factored out from
1287 dw2_expand_symtabs_matching.
1288 (dwarf2_per_objfile_free): Call the mapped_index's dtor.
1289
b5ec771e
PA
12902017-11-08 Pedro Alves <palves@redhat.com>
1291
1292 * ada-lang.c (ada_encode): Rename to ..
1293 (ada_encode_1): ... this. Add throw_errors parameter and handle
1294 it.
1295 (ada_encode): Reimplement.
1296 (match_name): Delete, folded into full_name.
1297 (resolve_subexp): No longer pass the encoded name to
1298 ada_lookup_symbol_list.
1299 (should_use_wild_match): Delete.
1300 (name_match_type_from_name): New.
1301 (ada_lookup_simple_minsym): Use lookup_name_info and the
1302 language's symbol_name_matcher_ftype.
1303 (add_symbols_from_enclosing_procs, ada_add_local_symbols)
1304 (ada_add_block_renamings): Adjust to use lookup_name_info.
1305 (ada_lookup_name): New.
1306 (add_nonlocal_symbols, ada_add_all_symbols)
1307 (ada_lookup_symbol_list_worker, ada_lookup_symbol_list)
1308 (ada_iterate_over_symbols): Adjust to use lookup_name_info.
1309 (ada_name_for_lookup): Delete.
1310 (ada_lookup_encoded_symbol): Construct a verbatim name.
1311 (wild_match): Reverse sense of return type. Use bool.
1312 (full_match): Reverse sense of return type. Inline bits of old
1313 match_name here.
1314 (ada_add_block_symbols): Adjust to use lookup_name_info.
1315 (symbol_completion_match): Delete, folded into...
1316 (ada_lookup_name_info::matches): ... .this new method.
1317 (symbol_completion_add): Delete.
1318 (ada_collect_symbol_completion_matches): Add name_match_type
1319 parameter. Adjust to use lookup_name_info and
1320 completion_list_add_name.
1321 (get_var_value, ada_add_global_exceptions): Adjust to use
1322 lookup_name_info.
1323 (ada_get_symbol_name_cmp): Delete.
1324 (do_wild_match, do_full_match): New functions.
1325 (ada_lookup_name_info::ada_lookup_name_info): New method.
1326 (ada_symbol_name_matches, ada_get_symbol_name_matcher): New
1327 functions.
1328 (ada_language_defn): Install ada_get_symbol_name_matcher.
1329 * ada-lex.l (processId): If name starts with '<', copy it
1330 verbatim.
1331 * block.c (block_iter_match_step, block_iter_match_first)
1332 (block_iter_match_next, block_lookup_symbol)
1333 (block_lookup_symbol_primary, block_find_symbol): Adjust to use
1334 lookup_name_info.
1335 * block.h (block_iter_match_first, block_iter_match_next)
1336 (ALL_BLOCK_SYMBOLS_WITH_NAME): Adjust to use lookup_name_info.
1337 * c-lang.c (c_language_defn, cplus_language_defn)
1338 (asm_language_defn, minimal_language_defn): Adjust comments to
1339 refer to la_get_symbol_name_matcher.
1340 * completer.c (complete_files_symbols)
1341 (collect_explicit_location_matches, symbol_completer): Pass a
1342 symbol_name_match_type down.
1343 * completer.h (class completion_match, completion_match_result):
1344 New classes.
1345 (completion_tracker::reset_completion_match_result): New method.
1346 (completion_tracker::m_completion_match_result): New field.
1347 * cp-support.c (make_symbol_overload_list_block): Adjust to use
1348 lookup_name_info.
1349 (cp_fq_symbol_name_matches, cp_get_symbol_name_matcher): New
1350 functions.
1351 * cp-support.h (cp_get_symbol_name_matcher): New declaration.
1352 * d-lang.c: Adjust comments to refer to
1353 la_get_symbol_name_matcher.
1354 * dictionary.c (dict_vector) <iter_match_first, iter_match_next>:
1355 Adjust to use lookup_name_info.
1356 (dict_iter_match_first, dict_iter_match_next)
1357 (iter_match_first_hashed, iter_match_next_hashed)
1358 (iter_match_first_linear, iter_match_next_linear): Adjust to work
1359 with a lookup_name_info.
1360 * dictionary.h (dict_iter_match_first, dict_iter_match_next):
1361 Likewise.
1362 * dwarf2read.c (dw2_lookup_symbol): Adjust to use lookup_name_info.
1363 (dw2_map_matching_symbols): Adjust to use symbol_name_match_type.
1364 (gdb_index_symbol_name_matcher): New class.
1365 (dw2_expand_symtabs_matching) Adjust to use lookup_name_info and
1366 gdb_index_symbol_name_matcher. Accept a NULL symbol_matcher.
1367 * f-lang.c (f_collect_symbol_completion_matches): Adjust to work
1368 with a symbol_name_match_type.
1369 (f_language_defn): Adjust comments to refer to
1370 la_get_symbol_name_matcher.
1371 * go-lang.c (go_language_defn): Adjust comments to refer to
1372 la_get_symbol_name_matcher.
1373 * language.c (default_symbol_name_matcher)
1374 (language_get_symbol_name_matcher): New functions.
1375 (unknown_language_defn, auto_language_defn): Adjust comments to
1376 refer to la_get_symbol_name_matcher.
1377 * language.h (symbol_name_cmp_ftype): Delete.
1378 (language_defn) <la_collect_symbol_completion_matches>: Add match
1379 type parameter.
1380 <la_get_symbol_name_cmp>: Delete field.
1381 <la_get_symbol_name_matcher>: New field.
1382 <la_iterate_over_symbols>: Adjust to use lookup_name_info.
1383 (default_symbol_name_matcher, language_get_symbol_name_matcher):
1384 Declare.
1385 * linespec.c (iterate_over_all_matching_symtabs)
1386 (iterate_over_file_blocks): Adjust to use lookup_name_info.
1387 (find_methods): Add language parameter, and use lookup_name_info
1388 and the language's symbol_name_matcher_ftype.
1389 (linespec_complete_function): Adjust.
1390 (lookup_prefix_sym): Use lookup_name_info.
1391 (add_all_symbol_names_from_pspace): Adjust.
1392 (find_superclass_methods): Add language parameter and pass it
1393 down.
1394 (find_method): Pass symbol language down.
1395 (find_linespec_symbols): Don't demangle or Ada encode here.
1396 (search_minsyms_for_name): Add lookup_name_info parameter.
1397 (add_matching_symbols_to_info): Add name_match_type parameter.
1398 Use lookup_name_info.
1399 * m2-lang.c (m2_language_defn): Adjust comments to refer to
1400 la_get_symbol_name_matcher.
1401 * minsyms.c: Include <algorithm>.
1402 (add_minsym_to_demangled_hash_table): Remove table parameter and
1403 add objfile parameter. Use search_name_hash, and add language to
1404 demangled languages vector.
1405 (struct found_minimal_symbols): New struct.
1406 (lookup_minimal_symbol_mangled, lookup_minimal_symbol_demangled):
1407 New functions.
1408 (lookup_minimal_symbol): Adjust to use them. Don't canonicalize
1409 input names here. Use lookup_name_info instead. Lookup up
1410 demangled names once for each language in the demangled names
1411 vector.
1412 (iterate_over_minimal_symbols): Use lookup_name_info. Lookup up
1413 demangled names once for each language in the demangled names
1414 vector.
1415 (build_minimal_symbol_hash_tables): Adjust.
1416 * minsyms.h (iterate_over_minimal_symbols): Adjust to pass down a
1417 lookup_name_info.
1418 * objc-lang.c (objc_language_defn): Adjust comment to refer to
1419 la_get_symbol_name_matcher.
1420 * objfiles.h: Include <vector>.
1421 (objfile_per_bfd_storage) <demangled_hash_languages>: New field.
1422 * opencl-lang.c (opencl_language_defn): Adjust comment to refer to
1423 la_get_symbol_name_matcher.
1424 * p-lang.c (pascal_language_defn): Adjust comment to refer to
1425 la_get_symbol_name_matcher.
1426 * psymtab.c (psym_lookup_symbol): Use lookup_name_info.
1427 (match_partial_symbol): Use symbol_name_match_type,
1428 lookup_name_info and psymbol_name_matches.
1429 (lookup_partial_symbol): Use lookup_name_info.
1430 (map_block): Use symbol_name_match_type and lookup_name_info.
1431 (psym_map_matching_symbols): Use symbol_name_match_type.
1432 (psymbol_name_matches): New.
1433 (recursively_search_psymtabs): Use lookup_name_info and
1434 psymbol_name_matches. Rename 'kind' parameter to 'domain'.
1435 (psym_expand_symtabs_matching): Use lookup_name_info. Rename
1436 'kind' parameter to 'domain'.
1437 * rust-lang.c (rust_language_defn): Adjust comment to refer to
1438 la_get_symbol_name_matcher.
1439 * symfile-debug.c (debug_qf_map_matching_symbols)
1440 (debug_qf_map_matching_symbols): Use symbol_name_match_type.
1441 (debug_qf_expand_symtabs_matching): Use lookup_name_info.
1442 * symfile.c (expand_symtabs_matching): Use lookup_name_info.
1443 * symfile.h (quick_symbol_functions) <map_matching_symbols>:
1444 Adjust to use symbol_name_match_type.
1445 <expand_symtabs_matching>: Adjust to use lookup_name_info.
1446 (expand_symtabs_matching): Adjust to use lookup_name_info.
1447 * symmisc.c (maintenance_expand_symtabs): Use
1448 lookup_name_info::match_any ().
1449 * symtab.c (symbol_matches_search_name): New.
1450 (eq_symbol_entry): Adjust to use lookup_name_info and the
1451 language's matcher.
1452 (demangle_for_lookup_info::demangle_for_lookup_info): New.
1453 (lookup_name_info::match_any): New.
1454 (iterate_over_symbols, search_symbols): Use lookup_name_info.
1455 (compare_symbol_name): Add language, lookup_name_info and
1456 completion_match_result parameters, and use them.
1457 (completion_list_add_name): Make extern. Add language and
1458 lookup_name_info parameters. Use them.
1459 (completion_list_add_symbol, completion_list_add_msymbol)
1460 (completion_list_objc_symbol): Add lookup_name_info parameters and
1461 adjust. Pass down language.
1462 (completion_list_add_fields): Add lookup_name_info parameters and
1463 adjust. Pass down language.
1464 (add_symtab_completions): Add lookup_name_info parameters and
1465 adjust.
1466 (default_collect_symbol_completion_matches_break_on): Add
1467 name_match_type parameter, and use it. Use lookup_name_info.
1468 (default_collect_symbol_completion_matches)
1469 (collect_symbol_completion_matches): Add name_match_type
1470 parameter, and pass it down.
1471 (collect_symbol_completion_matches_type): Adjust.
1472 (collect_file_symbol_completion_matches): Add name_match_type
1473 parameter, and use lookup_name_info.
1474 * symtab.h: Include <string> and "common/gdb_optional.h".
1475 (enum class symbol_name_match_type): New.
1476 (class ada_lookup_name_info): New.
1477 (struct demangle_for_lookup_info): New.
1478 (class lookup_name_info): New.
1479 (symbol_name_matcher_ftype): New.
1480 (SYMBOL_MATCHES_SEARCH_NAME): Use symbol_matches_search_name.
1481 (symbol_matches_search_name): Declare.
1482 (MSYMBOL_MATCHES_SEARCH_NAME): Delete.
1483 (default_collect_symbol_completion_matches)
1484 (collect_symbol_completion_matches)
1485 (collect_file_symbol_completion_matches): Add name_match_type
1486 parameter.
1487 (iterate_over_symbols): Use lookup_name_info.
1488 (completion_list_add_name): Declare.
1489 * utils.c (enum class strncmp_iw_mode): Moved to utils.h.
1490 (strncmp_iw_with_mode): Now extern.
1491 * utils.h (enum class strncmp_iw_mode): Moved from utils.c.
1492 (strncmp_iw_with_mode): Declare.
1493
5ffa0793
PA
14942017-11-08 Keith Seitz <keiths@redhat.com>
1495 Pedro Alves <palves@redhat.com>
1496
1497 * ada-lang.c (ada_language_defn): Install
1498 default_search_name_hash.
1499 * buildsym.c (struct buildsym_compunit): <language>: New field.
1500 (finish_block_internal): Pass language when creating dictionaries.
1501 (start_buildsym_compunit, start_symtab): New language parameters.
1502 Use them.
1503 (restart_symtab): Pass down compilation unit's language.
1504 * buildsym.h (enum language): Forward declare.
1505 (start_symtab): New 'language' parameter.
1506 * c-lang.c (c_language_defn, cplus_language_defn)
1507 (asm_language_defn, minimal_language_defn): Install
1508 default_search_name_hash.
1509 * coffread.c (coff_start_symtab): Adjust.
1510 * d-lang.c (d_language_defn): Install default_search_name_hash.
1511 * dbxread.c (struct symloc): Add 'pst_language' field.
1512 (PST_LANGUAGE): Define.
1513 (start_psymtab, read_ofile_symtab): Use it.
1514 (process_one_symbol): New 'language' parameter. Pass it down.
1515 * dictionary.c (struct dictionary) <language>: New field.
1516 (DICT_LANGUAGE): Define.
1517 (dict_create_hashed, dict_create_hashed_expandable)
1518 (dict_create_linear, dict_create_linear_expandable): New parameter
1519 'language'. Set the dictionary's language.
1520 (iter_match_first_hashed): Adjust to rename.
1521 (insert_symbol_hashed): Assert we don't see mismatching
1522 languages. Adjust to rename.
1523 (dict_hash): Rename to ...
1524 (default_search_name_hash): ... this and make extern.
1525 * dictionary.h (struct language_defn): Forward declare.
1526 (dict_create_hashed): New parameter 'language'.
1527 * dwarf2read.c (dwarf2_start_symtab): Pass down language.
1528 * f-lang.c (f_language_defn): Install default_search_name_hash.
1529 * go-lang.c (go_language_defn): Install default_search_name_hash.
1530 * jit.c (finalize_symtab): Pass compunit's language to dictionary
1531 creation.
1532 * language.c (unknown_language_defn, auto_language_defn):
1533 * language.h (language_defn::la_search_name_hash): New field.
1534 (default_search_name_hash): Declare.
1535 * m2-lang.c (m2_language_defn): Install default_search_name_hash.
1536 * mdebugread.c (new_block): New parameter 'language'.
1537 * mdebugread.c (parse_symbol): Pass symbol language to block
1538 allocation.
1539 (psymtab_to_symtab_1): Pass down language.
1540 (new_symtab): Pass compunit's language to block allocation.
1541 * objc-lang.c (objc_language_defn): Install
1542 default_search_name_hash.
1543 * opencl-lang.c (opencl_language_defn):
1544 * p-lang.c (pascal_language_defn): Install
1545 default_search_name_hash.
1546 * rust-lang.c (rust_language_defn): Install
1547 default_search_name_hash.
1548 * stabsread.h (enum language): Forward declare.
1549 (process_one_symbol): Add 'language' parameter.
1550 * symtab.c (search_name_hash): New function.
1551 * symtab.h (search_name_hash): Declare.
1552 * xcoffread.c (read_xcoff_symtab): Pass language to start_symtab.
1553
2a1dde5d
PA
15542017-11-08 Pedro Alves <palves@redhat.com>
1555
1556 * cp-name-parser.y (main): Don't initialize extra_chars.
1557
95a6b0a1
TT
15582017-11-07 Tom Tromey <tom@tromey.com>
1559
1560 * event-top.h (command_handler): Constify.
1561 * record-full.c (cmd_record_full_start): Update.
1562 * thread.c (thread_apply_all_command): Update.
1563 * printcmd.c (eval_command): Update.
1564 * mi/mi-main.c (mi_execute_cli_command): Update.
1565 (mi_execute_async_cli_command): Update.
1566 * tui/tui-stack.c (tui_update_command): Update.
1567 * cli/cli-interp.c (safe_execute_command): Constify.
1568 * record.c (record_start): Update.
1569 (record_start, record_stop, cmd_record_start): Update.
1570 * record-btrace.c (cmd_record_btrace_bts_start): Update.
1571 (cmd_record_btrace_pt_start): Update.
1572 (cmd_record_btrace_start): Update.
1573 (cmd_record_btrace_start): Update.
1574 * reverse.c (exec_reverse_once): Update.
1575 * python/python.c (execute_gdb_command): Don't copy the command.
1576 * event-top.c (command_line_handler): Update.
1577 (command_handler): Constify.
1578 * defs.h (deprecated_call_command_hook): Constify.
1579 * cli/cli-script.h (execute_user_command): Constify.
1580 * cli/cli-script.c (execute_user_command): Constify.
1581 (execute_cmd_pre_hook, execute_cmd_post_hook): Constify.
1582 (enum command_control_type): Update.
1583 * main.c (catch_command_errors): Remove non-const overload.
1584 (catch_command_errors_ftype): Remove.
1585 * python/py-cmd.c (cmdpy_function): Constify.
1586 * guile/scm-cmd.c (cmdscm_function): Constify.
1587 * cli/cli-dump.c (call_dump_func): Constify.
1588 * cli/cli-decode.c (do_const_cfunc): Constify.
1589 (do_sfunc): Constify.
1590 (cmd_func): Constify.
1591 * gdbcmd.h (execute_command, execute_command_to_string): Constify.
1592 * top.h (execute_command): Constify.
1593 * top.c (execute_command): Constify.
1594 (execute_command_to_string): Constify.
1595 (deprecated_call_command_hook): Constify.
1596 * command.h (cmd_func): Constify.
1597 * cli/cli-decode.h (struct cmd_list_element) <func>: Constify.
1598
eb4c3f4a
TT
15992017-11-07 Tom Tromey <tom@tromey.com>
1600
1601 * ada-lang.c (catch_ada_exception_command): Constify.
1602 (catch_assert_command): Constify.
1603 * break-catch-throw.c (catch_catch_command, catch_throw_command)
1604 (catch_rethrow_command): Constify.
1605 (catch_exception_command_1): Constify.
1606 * breakpoint.h (add_catch_command): Constify.
1607 * break-catch-syscall.c (catch_syscall_command_1): Constify.
1608 (catch_syscall_split_args): Constify.
1609 * break-catch-sig.c (catch_signal_command): Constify.
1610 (catch_signal_split_args): Constify.
1611 * cli/cli-decode.h (struct cmd_list_element) <function>: Use
1612 cmd_const_sfunc_ftype.
1613 * cli/cli-decode.c (add_setshow_cmd_full): Constify.
1614 (add_setshow_enum_cmd, add_setshow_auto_boolean_cmd)
1615 (add_setshow_boolean_cmd, add_setshow_filename_cmd)
1616 (add_setshow_string_cmd, struct cmd_list_element)
1617 (add_setshow_optional_filename_cmd, add_setshow_integer_cmd)
1618 (add_setshow_uinteger_cmd, add_setshow_zinteger_cmd)
1619 (add_setshow_zuinteger_unlimited_cmd, add_setshow_zuinteger_cmd):
1620 Constify.
1621 (set_cmd_sfunc): Constify.
1622 (empty_sfunc): Constify.
1623 * command.h (add_setshow_enum_cmd, add_setshow_auto_boolean_cmd)
1624 (add_setshow_boolean_cmd, add_setshow_filename_cmd)
1625 (add_setshow_string_cmd, add_setshow_string_noescape_cmd)
1626 (add_setshow_optional_filename_cmd, add_setshow_integer_cmd)
1627 (add_setshow_uinteger_cmd, add_setshow_zinteger_cmd)
1628 (add_setshow_zuinteger_cmd, add_setshow_zuinteger_unlimited_cmd):
1629 Constify.
1630 (set_cmd_sfunc): Constify.
1631 (cmd_sfunc_ftype): Remove.
1632 * compile/compile.c (set_compile_args): Constify.
1633 * infrun.c (set_disable_randomization): Constify.
1634 * infcmd.c (set_args_command, set_cwd_command): Constify.
1635 * breakpoint.c (set_condition_evaluation_mode): Constify.
1636 (add_catch_command): Constify.
1637 (catch_fork_command_1, catch_exec_command_1)
1638 (catch_load_command_1, catch_unload_command_1): Constify.
1639 (catch_load_or_unload): Constify.
1640 * guile/scm-param.c (pascm_set_func): Constify.
1641 (add_setshow_generic): Constify.
1642 * python/py-param.c (get_set_value): Constify.
1643 * top.h (set_verbose): Constify.
1644 * tui/tui-win.c (tui_set_var_cmd): Constify.
1645 * mi/mi-main.c (set_mi_async_command): Constify.
1646 * cli/cli-logging.c (set_logging_overwrite)
1647 (set_logging_redirect): Constify.
1648 * value.c (set_max_value_size): Constify.
1649 * valprint.c (set_input_radix, set_output_radix): Constify.
1650 * utils.c (set_width_command, set_height_command): Constify.
1651 * typeprint.c (set_print_type_methods, set_print_type_typedefs): Constify.
1652 * tracepoint.c (set_disconnected_tracing)
1653 (set_circular_trace_buffer, set_trace_buffer_size)
1654 (set_trace_user, set_trace_notes, set_trace_stop_notes): Constify.
1655 * top.c (set_history_size_command, set_verbose, set_editing)
1656 (set_gdb_datadir, set_history_filename): Constify.
1657 * target.c (set_targetdebug, maint_set_target_async_command)
1658 (maint_set_target_non_stop_command, set_target_permissions)
1659 (set_write_memory_permission): Constify.
1660 (open_target): Constify.
1661 * target-descriptions.c (set_tdesc_filename_cmd): Constify.
1662 * target-dcache.c (set_stack_cache, set_code_cache): Constify.
1663 * symtab.c (set_symbol_cache_size_handler): Constify.
1664 * symfile.c (set_ext_lang_command): Constify.
1665 * symfile-debug.c (set_debug_symfile): Constify.
1666 * source.c (set_directories_command): Constify.
1667 * solib.c (reload_shared_libraries, gdb_sysroot_changed): Constify.
1668 * serial.c (set_parity): Constify.
1669 * rs6000-tdep.c (powerpc_set_soft_float, powerpc_set_vector_abi): Constify.
1670 * remote.c (set_remote_exec_file, set_remotebreak)
1671 (set_remote_protocol_Z_packet_cmd, set_range_stepping): Constify.
1672 * record.c (set_record_insn_history_size)
1673 (set_record_call_history_size): Constify.
1674 * record-full.c (set_record_full_insn_max_num): Constify.
1675 * proc-api.c (set_procfs_trace_cmd, set_procfs_file_cmd): Constify.
1676 * osabi.c (set_osabi): Constify.
1677 * mips-tdep.c (set_mips64_transfers_32bit_regs)
1678 (reinit_frame_cache_sfunc, mips_abi_update): Constify.
1679 * maint.c (maintenance_set_profile_cmd): Constify.
1680 * linux-thread-db.c (set_libthread_db_search_path): Constify.
1681 * language.c (set_language_command, set_range_command)
1682 (set_case_command): Constify.
1683 * infrun.c (set_non_stop, set_observer_mode)
1684 (set_stop_on_solib_events, set_schedlock_func)
1685 (set_exec_direction_func): Constify.
1686 * infcmd.c (set_inferior_tty_command): Constify.
1687 * disasm.c (set_disassembler_options_sfunc): Constify.
1688 * demangle.c (set_demangling_command): Constify.
1689 * dcache.c (set_dcache_size, set_dcache_line_size): Constify.
1690 * cris-tdep.c (set_cris_version, set_cris_mode)
1691 (set_cris_dwarf2_cfi): Constify.
1692 * corefile.c (set_gnutarget_command): Constify.
1693 * charset.c (set_host_charset_sfunc, set_target_charset_sfunc)
1694 (set_target_wide_charset_sfunc): Constify.
1695 * breakpoint.c (update_dprintf_commands): Constify.
1696 * auto-load.c (set_auto_load_dir, set_auto_load_safe_path): Constify.
1697 * arm-tdep.c (set_fp_model_sfunc, arm_set_abi)
1698 (set_disassembly_style_sfunc): Constify.
1699 * arch-utils.c (set_endian, set_architecture): Constify.
1700 * alpha-tdep.c (reinit_frame_cache_sfunc): Constify.
1701 * agent.c (set_can_use_agent): Constify.
1702
5fed81ff
TT
17032017-11-07 Tom Tromey <tom@tromey.com>
1704
1705 * go32-nat.c (go32_sysinfo, go32_sldt, go32_sgdt, go32_sidt)
1706 (go32_pde, go32_pte, go32_pte_for_address): Constify.
1707 * gnu-nat.c (_parse_bool_arg, show_thread_default_pause_cmd)
1708 (set_thread_default_pause_cmd, set_thread_default_run_cmd)
1709 (show_thread_default_run_cmd, set_thread_default_detach_sc_cmd)
1710 (parse_int_arg, show_thread_default_detach_sc_cmd)
1711 (set_signals_cmd, show_signals_cmd, set_sig_thread_cmd)
1712 (show_sig_thread_cmd, set_stopped_cmd, show_stopped_cmd)
1713 (set_exceptions_cmd, show_exceptions_cmd, set_task_pause_cmd)
1714 (show_task_pause_cmd, set_task_detach_sc_cmd)
1715 (show_task_detach_sc_cmd, set_task_exc_port_cmd)
1716 (set_noninvasive_cmd, set_thread_pause_cmd)
1717 (show_thread_pause_cmd, set_thread_run_cmd, show_thread_run_cmd)
1718 (set_thread_detach_sc_cmd, show_thread_detach_sc_cmd)
1719 (set_thread_exc_port_cmd, thread_takeover_sc_cmd): Constify.
1720 * windows-nat.c (display_selectors): Constify.
1721 * cli/cli-decode.h (struct cmd_list_element) <function>: Remove
1722 non-const "cfunc".
1723 * cli/cli-decode.c (set_cmd_cfunc): Remove non-const overload.
1724 (cmd_cfunc_eq): Likewise.
1725 (struct cmd_list_element): Likewise.
1726 (do_cfunc): Remove.
1727 (cli_user_command_p): Update.
1728 * command.h (add_cmd): Remove non-const overload.
1729 (cmd_cfunc_ftype): Remove typedef.
1730 (cmd_cfunc_eq): Remove non-const overload.
1731 * value.c (show_values): Constify.
1732 * thread.c (thread_apply_all_command): Constify.
1733 * symfile.c (load_command): Constify.
1734 * source.c (directory_command): Constify.
1735 * maint.c (maintenance_internal_error)
1736 (maintenance_demangler_warning, maintenance_space_display)
1737 (maintenance_print_architecture, maintenance_translate_address)
1738 (maintenance_info_selftests, maintenance_internal_warning):
1739 Constify.
1740 * breakpoint.c (disable_trace_command, enable_trace_command):
1741 Constify.
1742 * auto-load.c (info_auto_load_local_gdbinit, add_auto_load_dir):
1743 Constify.
1744 (add_auto_load_safe_path): Constify.
1745 * guile/scm-auto-load.c (info_auto_load_guile_scripts): Constify.
1746 * top.h (show_commands): Constify.
1747 * linux-thread-db.c (info_auto_load_libthread_db): Constify.
1748 * sparc64-tdep.c (adi_examine_command): Constify.
1749 (adi_assign_command): Constify.
1750
1d12d88f
TT
17512017-11-07 Tom Tromey <tom@tromey.com>
1752
1753 * frame.h (info_locals_command, info_args_command): Constify.
1754 * auto-load.h (auto_load_info_scripts): Constify.
1755 * inferior.h (registers_info): Constify.
1756 * copying.c: Rebuild.
1757 * copying.awk: Constify generated commands.
1758 * auto-load.c (auto_load_info_scripts)
1759 (info_auto_load_gdb_scripts): Constify.
1760 * cli/cli-decode.c (struct cmd_list_element): Take a
1761 cmd_const_cfunc_ftype.
1762 * command.h (add_info): Take a cmd_const_cfunc_ftype.
1763 * tui/tui-win.c (tui_all_windows_info): Constify.
1764 * python/py-auto-load.c (info_auto_load_python_scripts):
1765 Constify.
1766 * cli/cli-cmds.c (show_command): Remove non-const overload.
1767 * tracepoint.c (info_tvariables_command, info_scope_command):
1768 Constify.
1769 (info_static_tracepoint_markers_command): Constify.
1770 * thread.c (info_threads_command): Constify.
1771 (print_thread_info_1): Constify.
1772 * target.c (info_target_command): Constify.
1773 * symtab.c (info_sources_command, info_functions_command)
1774 (info_types_command): Constify.
1775 (info_variables_command): Remove non-const overload.
1776 * symfile.c (info_ext_lang_command): Constify.
1777 * stack.c (info_frame_command, info_locals_command)
1778 (info_args_command): Constify.
1779 (backtrace_command): Remove non-const overload.
1780 * source.c (info_source_command, info_line_command): Constify.
1781 * solib.c (info_sharedlibrary_command): Constify.
1782 * skip.c (info_skip_command): Constify.
1783 * ser-go32.c (info_serial_command): Constify.
1784 * reverse.c (info_bookmarks_command): Constify.
1785 * printcmd.c (info_symbol_command, info_address_command)
1786 (info_display_command): Constify.
1787 * osdata.c (info_osdata_command): Constify.
1788 * objc-lang.c (info_selectors_command, info_classes_command):
1789 Constify.
1790 * nto-procfs.c (procfs_pidlist, procfs_meminfo): Constify.
1791 * memattr.c (info_mem_command): Constify.
1792 * macrocmd.c (info_macro_command, info_macros_command): Constify.
1793 * linux-fork.c (info_checkpoints_command): Constify.
1794 * infrun.c (info_signals_command): Constify.
1795 * inflow.c (info_terminal_command): Constify.
1796 * inferior.c (info_inferiors_command): Constify.
1797 (print_inferior): Constify.
1798 * infcmd.c (info_program_command, info_all_registers_command)
1799 (info_registers_command, info_vector_command)
1800 (info_float_command): Constify.
1801 (registers_info): Constify.
1802 * gnu-nat.c (info_send_rights_cmd, info_recv_rights_cmd)
1803 (info_port_sets_cmd, info_dead_names_cmd, info_port_rights_cmd):
1804 Constify.
1805 * f-valprint.c (info_common_command): Constify.
1806 * dcache.c (info_dcache_command): Constify.
1807 (dcache_info_1): Constify.
1808 * darwin-nat-info.c (info_mach_tasks_command)
1809 (info_mach_task_command, info_mach_ports_command)
1810 (info_mach_port_command, info_mach_threads_command)
1811 (info_mach_thread_command, info_mach_regions_command)
1812 (info_mach_regions_recurse_command, info_mach_region_command)
1813 (info_mach_exceptions_command): Constify.
1814 (get_task_from_args): Constify.
1815 * cp-support.c (info_vtbl_command): Constify.
1816 * breakpoint.c (info_watchpoints_command)
1817 (info_tracepoints_command): Constify.
1818 (info_breakpoints_command): Remove non-const overload.
1819 * avr-tdep.c (avr_io_reg_read_command): Constify.
1820 * auxv.c (info_auxv_command): Constify.
1821 * ada-tasks.c (info_tasks_command): Constify.
1822 (info_task): Constify.
1823 * ada-lang.c (info_exceptions_command): Constify.
1824
0b39b52e
TT
18252017-11-07 Tom Tromey <tom@tromey.com>
1826
1827 * solib.h (no_shared_libraries): Constify.
1828 * frame.h (return_command): Constify.
1829 * cli/cli-cmds.h (quit_command): Constify.
1830 * top.h (quit_command, execute_command): Constify.
1831 * target.h (flash_erase_command): Constify.
1832 * inferior.h (set_inferior_args, attach_command): Constify.
1833 * tracepoint.h (start_tracing, stop_tracing): Constify.
1834 * breakpoint.h (break_command, tbreak_command)
1835 (hbreak_command_wrapper, thbreak_command_wrapper)
1836 (rbreak_command_wrapper, watch_command_wrapper)
1837 (awatch_command_wrapper, rwatch_command_wrapper)
1838 (get_tracepoint_by_number): Constify.
1839 * symtab.c (info_variables_command, rbreak_command)
1840 (symtab_symbol_info): Constify.
1841 (info_variables_command): Add non-const overload.
1842 * top.c (dont_repeat_command): Constify.
1843 * breakpoint.c (ignore_command, commands_command)
1844 (condition_command, tbreak_command, hbreak_command)
1845 (thbreak_command, clear_command, break_command)
1846 (info_breakpoints_command, watch_command, rwatch_command)
1847 (awatch_command, trace_command, ftrace_command, strace_command)
1848 (trace_pass_command, break_range_command, dprintf_command)
1849 (agent_printf_command, get_tracepoint_by_number)
1850 (watch_maybe_just_location, trace_pass_command): Constify.
1851 (info_breakpoints_command): Add non-const overload.
1852 * tracefile.c (tsave_command): Constify.
1853 * infcmd.c (attach_command, disconnect_command, signal_command)
1854 (queue_signal_command, stepi_command, nexti_command)
1855 (finish_command, next_command, step_command, until_command)
1856 (advance_command, jump_command, continue_command, run_command)
1857 (start_command, starti_command, interrupt_command)
1858 (run_command_1, set_inferior_args, step_1): Constify.
1859 * inferior.c (add_inferior_command, remove_inferior_command)
1860 (clone_inferior_command): Constify.
1861 * linux-fork.c (checkpoint_command, restart_command): Constify.
1862 * windows-nat.c (signal_event_command): Constify.
1863 * guile/guile.c (guile_repl_command, guile_command): Constify.
1864 * printcmd.c (x_command, display_command, printf_command)
1865 (output_command, set_command, call_command, print_command)
1866 (eval_command): Constify.
1867 (non_const_set_command): Remove.
1868 (_initialize_printcmd): Update.
1869 * source.c (forward_search_command, reverse_search_command):
1870 Constify.
1871 * jit.c (jit_reader_load_command, jit_reader_unload_command):
1872 Constify.
1873 * infrun.c (handle_command): Constify.
1874 * memattr.c (mem_command): Constify.
1875 * stack.c (return_command, up_command, up_silently_command)
1876 (down_command, down_silently_command, frame_command)
1877 (backtrace_command, func_command, backtrace_command_1): Constify.
1878 (backtrace_command): Add non-const overload.
1879 * remote-sim.c (simulator_command): Constify.
1880 * exec.c (set_section_command): Constify.
1881 * tracepoint.c (tdump_command, trace_variable_command)
1882 (tstatus_command, tstop_command, tstart_command)
1883 (end_actions_pseudocommand, while_stepping_pseudocommand)
1884 (collect_pseudocommand, teval_pseudocommand, actions_command)
1885 (start_tracing, stop_tracing): Constify.
1886 * value.c (init_if_undefined_command): Constify.
1887 * tui/tui-stack.c (tui_update_command): Constify.
1888 * tui/tui-win.c (tui_refresh_all_command)
1889 (tui_set_tab_width_command, tui_set_win_height_command)
1890 (tui_set_focus_command, tui_scroll_forward_command)
1891 (tui_scroll_backward_command, tui_scroll_left_command)
1892 (tui_scroll_right_command, parse_scrolling_args, tui_set_focus)
1893 (tui_set_win_height): Constify.
1894 * tui/tui-layout.c (tui_layout_command): Constify.
1895 * procfs.c (proc_trace_syscalls, proc_trace_sysentry_cmd)
1896 (proc_trace_sysexit_cmd, proc_untrace_sysentry_cmd)
1897 (proc_untrace_sysexit_cmd): Constify.
1898 * remote.c (threadlist_test_cmd, threadinfo_test_cmd)
1899 (threadset_test_cmd, threadlist_update_test_cmd)
1900 (threadalive_test): Constify.
1901 * objc-lang.c (print_object_command): Constify.
1902 * command.h (add_com): Constify.
1903 * cli/cli-dump.c (restore_command): Constify.
1904 * cli/cli-cmds.c (pwd_command, echo_command, quit_command)
1905 (help_command, complete_command, shell_command, edit_command)
1906 (list_command, disassemble_command, make_command)
1907 (apropos_command, alias_command): Constify.
1908 * cli/cli-script.c (document_command, define_command)
1909 (while_command, if_command, validate_comname): Constify.
1910 * cli/cli-decode.c (struct cmd_list_element): Change type of
1911 "fun".
1912 * target.c (do_monitor_command, flash_erase_command): Constify.
1913 * regcache.c (reg_flush_command): Constify.
1914 * reverse.c (reverse_step, reverse_next, reverse_stepi)
1915 (reverse_nexti, reverse_continue, reverse_finish)
1916 (save_bookmark_command, goto_bookmark_command)
1917 (exec_reverse_once): Constify.
1918 * python/python.c (python_interactive_command, python_command):
1919 Constify.
1920 * typeprint.c (ptype_command, whatis_command, whatis_exp):
1921 Constify.
1922 * solib.c (sharedlibrary_command, no_shared_libraries): Constify.
1923 * gcore.c (gcore_command): Constify.
1924
85c4be7c
TT
19252017-11-07 Tom Tromey <tom@tromey.com>
1926
1927 * printcmd.c (x_command): Call set_repeat_arguments.
1928 * cli/cli-cmds.c (list_command): Call set_repeat_arguments.
1929 * top.c (repeat_arguments): New global.
1930 (set_repeat_arguments): New function.
1931 (execute_command): Handle repeat_arguments.
1932 (show_commands): Calls set_repeat_arguments.
1933 * command.h (set_repeat_arguments): Declare.
1934
022643b4
TT
19352017-11-07 Tom Tromey <tom@tromey.com>
1936
1937 * stack.c (backtrace_command): Use std::string.
1938 (backtrace_command_1): Make "count_exp" const.
1939
5614fb77
TT
19402017-11-07 Tom Tromey <tom@tromey.com>
1941
1942 * source.c (directory_switch, mod_path, add_path): Constify.
1943 * defs.h (add_path, mod_path, directory_switch): Constify.
1944 * mi/mi-cmd-env.c (env_mod_path): Constify.
1945
6be9a197
TT
19462017-11-07 Tom Tromey <tom@tromey.com>
1947
1948 * infcmd.c (strip_bg_char): Return gdb::unique_xmalloc_ptr.
1949 (run_command_1, continue_command, step_1, jump_command)
1950 (signal_command, until_command, advance_command, finish_command)
1951 (attach_command): Update.
1952
c2252c0d
TT
19532017-11-07 Tom Tromey <tom@tromey.com>
1954
1955 * command.h (set_cmd_cfunc): Don't declare.
1956 * cli/cli-decode.c (set_cmd_cfunc): Now static.
1957
1ee870c5
TT
19582017-11-07 Tom Tromey <tom@tromey.com>
1959
1960 * stack.c (select_frame_command): Constify.
1961 * cli/cli-decode.c (add_com_suppress_notification): Constify.
1962 * command.h (add_com_suppress_notification): Constify.
1963
ee7ddd71
TT
19642017-11-07 Tom Tromey <tom@tromey.com>
1965
1966 * breakpoint.c (stop_command): Constify.
1967 * cli/cli-decode.c (struct cmd_list_element): Constify.
1968 * command.h (add_abbrev_prefix_cmd): Constify.
1969
95e95a6d
PA
19702017-11-07 Pedro Alves <palves@redhat.com>
1971
1972 * breakpoint.c (extract_bp_kind): New enum.
1973 (extract_bp_num, extract_bp_or_bp_range): New functions, partially
1974 factored out from ...
1975 (extract_bp_number_and_location): ... here.
1976 * cli/cli-utils.c (get_number_trailer): Handle '-$variable'.
1977
cc638e86
PA
19782017-11-07 Pedro Alves <palves@redhat.com>
1979
1980 * breakpoint.c (extract_bp_number_and_location): Change return
1981 type to void. Throw error instead of warning.
1982 (enable_disable_command): Adjust.
1983
d0fe4701
XR
19842017-11-07 Xavier Roirand <roirand@adacore.com>
1985 Pedro Alves <palves@redhat.com>
1986
1987 * breakpoint.c (map_breakpoint_number_range): New, factored out
1988 from ...
1989 (map_breakpoint_numbers): ... here.
1990 (find_location_by_number): Change parameters from string to
1991 breakpoint number and location.
1992 (extract_bp_number_and_location): New function.
1993 (enable_disable_bp_num_loc)
1994 (enable_disable_breakpoint_location_range)
1995 (enable_disable_command): New functions, factored out ...
1996 (enable_command, disable_command): ... these functions, and
1997 adjusted to support ranges.
1998 * NEWS: Document enable/disable breakpoint location range feature.
1999
635dc5b2
LM
20002017-11-06 Luis Machado <luis.machado@linaro.org>
2001
2002 * MAINTAINERS (Write After Approval): Update my e-mail address.
2003
556e5da5
PA
20042017-11-06 Pedro Alves <palves@redhat.com>
2005
2006 * gnu-nat.c (gnu_terminal_init): Delete.
2007 (gnu_target): Don't install gnu_terminal_init.
2008 * inflow.c (child_terminal_init_with_pgrp): Delete, merged with ...
2009 (child_terminal_init): ... this function.
2010
d1928160
PA
20112017-11-06 Pedro Alves <palves@redhat.com>
2012
2013 * common/common.m4 (GDB_AC_COMMON): No longer check termio.h nor
2014 sgtty.h.
2015 * config.in, configure: Regenerate.
2016
6aa899ce
PA
20172017-11-06 Pedro Alves <palves@redhat.com>
2018
2019 * event-top.c: Check SIGTSTP instead of STOP_SIGNAL thoughout.
2020 (async_init_signals): Adjust.
2021 (handle_stop_sig): Rename to ...
2022 (handle_sigtstp): ... this.
2023 (async_stop_sig): Rename to ...
2024 (async_sigtstp_handler): ... this, and delete STOP_SIGNAL !=
2025 SIGTSTP path.
2026 * event-top.h: Move signal.h include to the top. Check SIGTSTP
2027 instead of STOP_SIGNAL thoughout.
2028 (handle_stop_sig): Rename to ...
2029 (handle_sigtstp): ... this.
2030 * top.c (command_line_input): Replace STOP_SIGNAL -> SIGTSTP.
2031
a94799ac
PA
20322017-11-06 Pedro Alves <palves@redhat.com>
2033
2034 * inflow.c (child_terminal_inferior, child_terminal_ours_1): No
2035 longer set flags twice in row.
2036
726e1356
PA
20372017-11-06 Pedro Alves <palves@redhat.com>
2038
2039 * Makefile.in (SER_HARDWIRE): Update comment.
2040 (HFILES_NO_SRCDIR): Remove gdb_termios.h.
2041 * common/gdb_termios.h: Delete file.
2042 * common/job-control.c: Include termios.h and unistd.h instead of
2043 gdb_termios.h.
2044 (gdb_setpgid): Remove HAVE_TERMIOS || TIOCGPGRP preprocessor
2045 check.
2046 (have_job_control): Check HAVE_TERMIOS_H instead of HAVE_TERMIOS.
2047 Remove sgtty code.
2048 * configure.ac: No longer check for termio.h and sgtty.h.
2049 * configure: Regenerate.
2050 * inflow.c: Include termios.h instead of gdb_termios.h. Replace
2051 PROCESS_GROUP_TYPE checks with HAVE_TERMIOS_H checks throughout.
2052 Replace PROCESS_GROUP_TYPE references with pid_t references
2053 throughout.
2054 (gdb_getpgrp): Delete.
2055 (set_initial_gdb_ttystate): Use tcgetpgrp instead of gdb_getpgrp.
2056 (child_terminal_inferior): Remove comment. Remove sgtty code.
2057 (child_terminal_ours_1): Use tcgetpgrp directly instead of
2058 gdb_getpgrp. Use serial_set_tty_state instead aof
2059 serial_noflush_set_tty_state. Remove sgtty code.
2060 * inflow.h: Include unistd.h instead of gdb_termios.h. Replace
2061 PROCESS_GROUP_TYPE check with HAVE_TERMIOS_H check.
2062 (inferior_process_group): Now returns pid_t.
2063 * ser-base.c (ser_base_noflush_set_tty_state): Delete.
2064 * ser-base.h (ser_base_noflush_set_tty_state): Delete.
2065 * ser-event.c (serial_event_ops): Update.
2066 * ser-go32.c (dos_noflush_set_tty_state): Delete.
2067 (dos_ops): Update.
2068 * ser-mingw.c (hardwire_ops, tty_ops, pipe_ops, tcp_ops): Update.
2069 * ser-pipe.c (pipe_ops): Update.
2070 * ser-tcp.c (tcp_ops): Update.
2071 * ser-unix.c: Include termios.h instead of gdb_termios.h. Remove
2072 HAVE_TERMIOS checks.
2073 [HAVE_TERMIO] (struct hardwire_ttystate): Delete.
2074 [HAVE_SGTTY] (struct hardwire_ttystate): Delete.
2075 (get_tty_state, set_tty_state): Drop termio and sgtty code, and
2076 assume termios.
2077 (hardwire_noflush_set_tty_state): Delete.
2078 (hardwire_print_tty_state, hardwire_drain_output)
2079 (hardwire_flush_output, hardwire_flush_input)
2080 (hardwire_send_break, hardwire_raw, hardwire_setbaudrate)
2081 (hardwire_setstopbits, hardwire_setparity): Drop termio and sgtty
2082 code, and assume termios.
2083 (hardwire_ops): Update.
2084 (_initialize_ser_hardwire): Remove HAVE_TERMIOS check.
2085 * serial.c (serial_noflush_set_tty_state): Delete.
2086 * serial.h (serial_noflush_set_tty_state): Delete.
2087 (serial_ops::noflush_set_tty_state): Delete.
2088
1cfb73db
UW
20892017-11-06 Ulrich Weigand <uweigand@de.ibm.com>
2090
2091 * Makefile.in (SFILES): Remove doublest.c and dfp.c.
2092 (HFILES_NO_SRCDIR): Remove doublest.h and dfp.h.
2093 (COMMON_OBS): Remove doublest.o and dfp.o.
2094 Do not build target-float.c (instead of doublest.c)
2095 with -Wformat-nonliteral.
2096
2097 * doublest.c: Remove file.
2098 * doublest.h: Remove file.
2099 * dfp.c: Remove file.
2100 * dfp.h: Remove file.
2101
2102 * target-float.c: Do not include "doublest.h" and "dfp.h".
2103 (DOUBLEST): Move here from doublest.h.
2104 (enum float_kind): Likewise.
2105 (FLOATFORMAT_CHAR_BIT): Likewise.
2106 (FLOATFORMAT_LARGEST_BYTES): Likewise.
2107 (floatformat_totalsize_bytes): Move here from doublest.c. Make static.
2108 (floatformat_precision): Likewise.
2109 (floatformat_normalize_byteorder, get_field, put_field): Likewise.
2110 (floatformat_is_negative, floatformat_classify, floatformat_mantissa):
2111 Likewise.
2112 (host_float_format, host_double_format, host_long_double_format):
2113 Likewise.
2114 (floatformat_to_string, floatformat_from_string): Likewise.
2115 (floatformat_to_doublest): Likewise. Also, inline the original
2116 convert_floatformat_to_doublest.
2117 (floatformat_from_doublest): Likewise. Also, inline the original
2118 convert_floatformat_from_doublest.
2119
2120 Include "dpd/decimal128.h", "dpd/decimal64.h", and "dpd/decimal32.h".
2121 (MAX_DECIMAL_STRING): Move here from dfp.c.
2122 (match_endianness): Likewise.
2123 (set_decnumber_context, decimal_check_errors): Likewise.
2124 (decimal_from_number, decimal_to_number): Likewise.
2125 (decimal_to_string, decimal_from_string): Likewise. Make static.
2126 (decimal_from_longest, decimal_from_ulongest): Likewise.
2127 (decimal_to_longest): Likewise.
2128 (decimal_binop, decimal_is_zero, decimal_compare): Likewise.
2129 (decimal_convert): Likewise.
2130
b07e9c46
UW
21312017-11-06 Ulrich Weigand <uweigand@de.ibm.com>
2132
2133 * doublest.c: Do not include "gdbtypes.h".
2134 (extract_typed_floating): Remove.
2135 (store_typed_floating): Remove.
2136 (convert_typed_floating): Remove.
2137 * doublest.h (struct type): Remove.
2138 (DOUBLEST_PRINT_FORMAT): Remove.
2139 (DOUBLEST_SCAN_FORMAT): Remove.
2140 (extract_typed_floating): Remove.
2141 (store_typed_floating): Remove.
2142 (convert_typed_floating): Remove.
2143
2144 * dfp.c (decimal_from_doublest): Remove.
2145 (decimal_to_doublest): Remove.
2146 * dfp.h: Do not include "doublest.h".
2147 (decimal_from_doublest): Remove.
2148 (decimal_to_doublest): Remove.
2149
2150 * value.c: Do not include "doublest.h" and "dfp.h".
2151 (value_as_double): Remove.
2152 (unpack_double): Remove.
2153 (value_from_double): Remove.
2154 (value_from_decfloat): Remove.
2155 * value.h: Do not include "doublest.h".
2156 (value_as_double): Remove.
2157 (unpack_double): Remove.
2158 (value_from_double): Remove.
2159 (value_from_decfloat): Remove.
2160
3b2ca824
UW
21612017-11-06 Ulrich Weigand <uweigand@de.ibm.com>
2162
2163 * i386-tdep.c: Include "target-float.h". Do not include "doublest.h".
2164 (i386_extract_return_value): Use target_float_convert.
2165 (i386_store_return_value): Likewise.
2166 * i387-tdep.c (i387_register_to_value): Use target_float_convert.
2167 (i387_value_to_register): Likewise.
2168 * ia64-tdep.c: Include "target-float.h". Do not include "doublest.h".
2169 (ia64_register_to_value): Use target_float_convert.
2170 (ia64_value_to_register): Likewise.
2171 (ia64_extract_return_value): Likewise.
2172 (ia64_store_return_value): Likewise.
2173 (ia64_push_dummy_call): Likewise.
2174 * m68k-tdep.c: Include "target-float.h".
2175 (m68k_register_to_value): Use target_float_convert.
2176 (m68k_value_to_register): Likewise.
2177 (m68k_svr4_extract_return_value): Likewise.
2178 (m68k_svr4_store_return_value): Likewise.
2179 * ppc-sysv-tdep.c: Include "target-float.h".
2180 (ppc_sysv_abi_push_dummy_call): Use target_float_convert.
2181 (do_ppc_sysv_return_value): Likewise.
2182 (ppc64_sysv_abi_push_freg): Likewise.
2183 (ppc64_sysv_abi_return_value_base): Likewise.
2184 * rs6000-aix-tdep.c: Include "target-float.h".
2185 (rs6000_push_dummy_call): Use target_float_convert.
2186 (rs6000_return_value): Likewise.
2187 * rs6000-lynx178-tdep.c: Include "target-float.h".
2188 (rs6000_lynx178_push_dummy_call): Use target_float_convert.
2189 (rs6000_lynx178_return_value): Likewise.
2190 * rs6000-tdep.c: Include "target-float.h". Do not include "doublest.h".
2191 (rs6000_register_to_value): Use target_float_convert.
2192 (rs6000_value_to_register): Likewise.
2193 * arm-tdep.c: Include "target-float.h". Do not include "doublest.h".
2194 (arm_extract_return_value): Use target_float_convert.
2195 (arm_store_return_value): Likewise.
2196 * sh-tdep.c: Include "target-float.h". Do not include "doublest.h".
2197 (sh_register_convert_to_virtual): Use target_float_convert.
2198 (sh_register_convert_to_raw): Likewise.
2199 * sh64-tdep.c: Include "target-float.h".
2200 (sh64_extract_return_value): Use target_float_convert.
2201 (sh64_register_convert_to_virtual): Likewise.
2202 (sh64_register_convert_to_raw): Likewise. Fix argument types.
2203
14ad9311
UW
22042017-11-06 Ulrich Weigand <uweigand@de.ibm.com>
2205
2206 * target-float.c (floatformat_to_host_double): New function.
2207 (floatformat_from_host_double): Likewise.
2208 (target_float_to_host_double): Likewise.
2209 (target_float_from_host_double): Likewise.
2210 * target-float.h (target_float_to_host_double): Add prototype.
2211 (target_float_from_host_double): Likewise.
2212
2213 * guile/scm-value.c: Include "target-float.h".
2214 (gdbscm_value_to_real): Use target_float_to_host_double.
2215 Handle integer source values via value_as_long.
2216 * guile/scm-math.c: Include "target-float.h". Do not include
2217 "doublest.h", "dfp.h", and "expression.h".
2218 (vlscm_convert_typed_number): Use target_float_from_host_double.
2219 (vlscm_convert_number): Likewise.
2220
2221 * python/py-value.c (valpy_float): Use target_float_to_host_double.
2222 (convert_value_from_python): Use target_float_from_host_double.
2223
50eff16b
UW
22242017-11-06 Ulrich Weigand <uweigand@de.ibm.com>
2225
2226 * ada-lang.c (cast_to_fixed): Reimplement in target arithmetic.
2227 (cast_from_fixed): Likewise.
2228 (ada_scaling_type): New function.
2229 (ada_delta): Return value instead of DOUBLEST. Perform target
2230 arithmetic instead of host arithmetic.
2231 (scaling_factor): Rename to ...
2232 (ada_scaling_factor) ... this. Make non-static. Return value instead
2233 of DOUBLEST. Perform target arithmetic instead of host arithmetic.
2234 (ada_fixed_to_float): Remove.
2235 (ada_float_to_fixed): Remove.
2236 * ada-lang.h (ada_fixed_to_float): Remove.
2237 (ada_float_to_fixed): Remove.
2238 (ada_delta): Return value instead of DOUBLEST.
2239 (ada_scaling_factor): Add prototype.
2240
2241 * ada-typeprint.c: Include "target-float.h".
2242 (print_fixed_point_type): Perform target arithmetic instead of
2243 host arithmetic.
2244 * ada-valprint.c: Include "target-float.h".
2245 (ada_val_print_num): Perform target arithmetic instead of
2246 host arithmetic for fixed-point types.
2247
66c02b9e
UW
22482017-11-06 Ulrich Weigand <uweigand@de.ibm.com>
2249
2250 * target-float.c: Include <math.h>.
2251 (floatformat_binop): New function.
2252 (floatformat_compare): Likewise.
2253 (target_float_binop): Likewise.
2254 (target_float_compare): Likewise.
2255 * target-float.h: Include "expression.h".
2256 (target_float_binop): Add prototype.
2257 (target_float_compare): Likewise.
2258
2259 * valarith.c: Do not include "doublest.h" and "dfp.h".
2260 Include "common/byte-vector.h".
2261 (value_args_as_decimal): Remove, replace by ...
2262 (value_args_as_target_float): ... this function. Handle both
2263 binary and decimal target floating-point formats.
2264 (scalar_binop): Handle both binary and decimal FP using
2265 value_args_as_target_float and target_float_binop.
2266 (value_equal): Handle both binary and decimal FP using
2267 value_args_as_target_float and target_float_compare.
2268 (value_less): Likewise.
2269 (value_pos): Handle all scalar types as simple copy.
2270 (value_neg): Handle all scalar types via BINOP_SUB from 0.
2271 * dfp.c (decimal_binop): Throw error instead of internal_error
2272 when called with an unsupported operation code.
2273
f69fdf9b
UW
22742017-11-06 Ulrich Weigand <uweigand@de.ibm.com>
2275
2276 * target-float.c (target_float_to_string): New function.
2277 (target_float_from_string): New function.
2278 * target-float.h (target_float_to_string): Add prototype.
2279 (target_float_from_string): Add prototype.
2280
2281 * valprint.c: Include "target-float.h". Do not include
2282 "doublest.h" and "dfp.h".
2283 (print_floating): Use target_float_to_string.
2284 * printcmd.c: Include "target-float.h". Do not include "dfp.h".
2285 (printf_floating): Use target_float_to_string.
2286 * i387-tdep.c: Include "target-float.h". Do not include "doublest.h".
2287 (print_i387_value): Use target_float_to_string.
2288 * mips-tdep.c: Include "target-float.h".
2289 (mips_print_fp_register): Use target_float_to_string.
2290 * sh64-tdep.c: Include "target-float.h".
2291 (sh64_do_fp_register): Use target_float_to_string.
2292
2293 * parse.c: Include "target-float.h". Do not include
2294 "doublest.h" and "dfp.h".
2295 (parse_float): Use target_float_from_string.
2296 * stabsread.c: Include "target-float.h". Do not include "doublest.h".
2297 (define_symbol): Use target_float_from_string.
2298 * gdbarch-selftests.c: Include "target-float.h".
2299 (register_to_value_test): Use target_float_from_string.
2300
70100014
UW
23012017-11-06 Ulrich Weigand <uweigand@de.ibm.com>
2302
2303 * Makefile.c (SFILES): Add target-float.c.
2304 (HFILES_NO_SRCDIR): Add target-float.h.
2305 (COMMON_OBS): Add target-float.o.
2306 * target-float.h: New file.
2307 * target-float.c: New file.
2308
2309 * doublest.c (floatformat_classify): Fix detection of float_zero.
2310
2311 * gdbtypes.c (is_floating_type): New function.
2312 * gdbtypes.h (is_floating_type): Add prototype.
2313
2314 * value.c: Do not include "floatformat.h".
2315 (unpack_double): Use target_float_is_valid.
2316 (is_floating_value): New function.
2317 * value.h (is_floating_value): Add prototype-
2318
2319 * valarith.c: Include "target-float.h".
2320 (value_logical_not): Use target_float_is_zero.
2321
2322 * python/py-value.c: Include "target-float.h".
2323 (valpy_nonzero): Use target_float_is_zero.
2324
ab4b1c46
TT
23252017-11-04 Tom Tromey <tom@tromey.com>
2326
2327 * h8300-tdep.c (h8300_push_dummy_call): Use std::vector.
2328
454dafbd
TT
23292017-11-04 Tom Tromey <tom@tromey.com>
2330
2331 * breakpoint.c (set_momentary_breakpoint): Return
2332 breakpoint_up.
2333 (until_break_command): Update.
2334 (new_until_break_fsm): Change argument types to
2335 breakpoint_up.
2336 (set_momentary_breakpoint_at_pc): Return breakpoint_up.
2337 (do_delete_breakpoint_cleanup, make_cleanup_delete_breakpoint):
2338 Remove.
2339 * infcmd.c (finish_forward): Update.
2340 * breakpoint.h (set_momentary_breakpoint)
2341 (set_momentary_breakpoint_at_pc): Return breakpoint_up.
2342 (make_cleanup_delete_breakpoint): Remove.
2343 (struct breakpoint_deleter): New.
2344 (breakpoint_up): New typedef.
2345 * infrun.c (insert_step_resume_breakpoint_at_sal_1): Update.
2346 (insert_exception_resume_breakpoint): Update.
2347 (insert_exception_resume_from_probe): Update.
2348 (insert_longjmp_resume_breakpoint): Update.
2349 * arm-linux-tdep.c (arm_linux_copy_svc): Update.
2350 * elfread.c (elf_gnu_ifunc_resolver_stop): Update.
2351 * infcall.c (call_function_by_hand_dummy): Update
2352
331b71e5
TT
23532017-11-04 Tom Tromey <tom@tromey.com>
2354
2355 * c-typeprint.c (c_type_print_base): Use gdb::unique_xmalloc_ptr.
2356
9f584b37
TT
23572017-11-04 Tom Tromey <tom@tromey.com>
2358
2359 * linux-tdep.c (linux_core_info_proc_mappings): Use
2360 gdb::def_vector.
2361 (linux_get_siginfo_data): Return gdb::byte_vector. Remove
2362 "size" argument.
2363 (linux_corefile_thread): Update.
2364 (linux_make_corefile_notes): Remove unused variable.
2365
779bc38e
TT
23662017-11-04 Tom Tromey <tom@tromey.com>
2367
2368 * ppc-linux-tdep.c (ppc_linux_get_syscall_number): Use
2369 gdb::byte_vector.
2370
ed2b3126
TT
23712017-11-04 Tom Tromey <tom@tromey.com>
2372
2373 * objfiles.c (do_free_objfile_cleanup): Remove.
2374 * compile/compile-object-load.c (compile_object_load): Update.
2375 * objfiles.h (make_cleanup_free_objfile): Remove.
2376
7f6743fd
TT
23772017-11-04 Tom Tromey <tom@tromey.com>
2378
2379 * sparc64-tdep.c (do_examine): Use gdb::def_vector.
2380 (adi_read_versions): Change "tags" to "gdb_byte *".
2381 (adi_print_versions): Likewise.
2382
c80049d3
TT
23832017-11-04 Tom Tromey <tom@tromey.com>
2384
2385 * breakpoint.c
2386 (scoped_rbreak_breakpoints::scoped_rbreak_breakpoints): Rename
2387 from start_rbreak_breakpoints.
2388 (scoped_rbreak_breakpoints): Rename from end_rbreak_breakpoints.
2389 * breakpoint.h (class scoped_rbreak_breakpoints): New.
2390 (start_rbreak_breakpoints, end_rbreak_breakpoints): Remove.
2391 * symtab.c (do_end_rbreak_breakpoints): Remove.
2392 (rbreak_command): Use scoped_rbreak_breakpoints, std::string.
2393
167b0be1
TT
23942017-11-04 Tom Tromey <tom@tromey.com>
2395
2396 * cp-namespace.c (reset_directive_searched): Remove.
2397 (cp_lookup_symbol_via_imports): Use scoped_restore.
2398 * cp-support.c (reset_directive_searched): Remove.
2399 (make_symbol_overload_list_using): Use scoped_restore.
2400 * d-namespace.c (d_lookup_symbol_imports): Use scoped_restore.
2401 (reset_directive_searched): Remove.
2402
5eae7aea
TT
24032017-11-04 Tom Tromey <tom@tromey.com>
2404
2405 * symfile.c (find_separate_debug_file_by_debuglink): Use
2406 unique_xmalloc_ptr.
2407
c6bcad5f
TT
24082017-11-04 Tom Tromey <tom@tromey.com>
2409
2410 * compile/compile-loc2c.c (compute_stack_depth_worker): Change
2411 type of "info".
2412 (compute_stack_depth): Likewise.
2413 (do_compile_dwarf_expr_to_c): Use std::vector.
2414
20dcd8ca
TT
24152017-11-04 Tom Tromey <tom@tromey.com>
2416
2417 * compile/compile-object-load.c (link_callbacks_einfo): Use
2418 std::string.
2419
33c7c59d
TT
24202017-11-04 Tom Tromey <tom@tromey.com>
2421
2422 * dwarf2read.c (process_full_comp_unit, process_full_type_unit):
2423 Use scoped_free_pendings.
2424 * dbxread.c (dbx_symfile_read, dbx_psymtab_to_symtab_1): Use
2425 scoped_free_pendings.
2426 * xcoffread.c (xcoff_psymtab_to_symtab_1): Use scoped_free_pendings.
2427 (xcoff_initial_scan): Likewise.
2428 * buildsym.c (reset_symtab_globals): Update comment.
2429 (scoped_free_pendings): Rename from really_free_pendings.
2430 (prepare_for_building): Update comment.
2431 (buildsym_init): Likewise.
2432 * buildsym.h (class scoped_free_pendings): New class.
2433 (really_free_pendings): Don't declare.
2434
67fa57cf
UW
24352017-11-03 Ulrich Weigand <uweigand@de.ibm.com>
2436
2437 * doublest.c (convert_doublest_to_floatformat): Fix uninitialized
2438 output when converting a zero value to a special byteorder format.
2439
f26ae15b
YQ
24402017-11-02 Yao Qi <yao.qi@linaro.org>
2441
2442 * frame.c (do_frame_register_read): Remove aspace.
2443 * jit.c (jit_frame_sniffer): Likwise.
2444 * ppc-linux-tdep.c (ppu2spu_sniffer): Likewise.
2445 * regcache.c (regcache::regcache): Pass nullptr.
2446 (regcache_print): Caller updated.
2447 * regcache.h (regcache::regcache): Remove one constructor
2448 parameter aspace.
2449
6c6e9412
YQ
24502017-11-02 Yao Qi <yao.qi@linaro.org>
2451
2452 * regcache.h (regcache) <m_readonly_p>: Change it to const bool.
2453
8b86c959
YQ
24542017-11-02 Yao Qi <yao.qi@linaro.org>
2455
2456 * breakpoint.c (insert_single_step_breakpoints): Update.
2457 * frame.c (struct frame_info) <aspace>: Add const.
2458 (frame_save_as_regcache): Add const.
2459 (get_frame_address_space): Return const address_space *.
2460 * frame.h (get_frame_address_space): Update declaration.
2461 * infrun.c (struct step_over_info) <aspace>: Add const.
2462 (set_step_over_info): Make aspace const.
2463 (displaced_step_prepare_throw): Change variable const.
2464 (resume): Likewise.
2465 (proceed): Likewise.
2466 (adjust_pc_after_break): Likewise.
2467 (save_waitstatus): Likewise.
2468 (handle_signal_stop): Likewise.
2469 (keep_going_pass_signal): Likewise.
2470 * jit.c (jit_frame_sniffer): Add const.
2471 * mips-tdep.c (mips_single_step_through_delay): Likewise.
2472 * ppc-linux-tdep.c (ppu2spu_sniffer): Likewise.
2473 * record-full.c (record_full_wait_1): Likewise.
2474 * regcache.c (regcache::regcache): Change parameter to const.
2475 * regcache.h (regcache::regcache): Likewise.
2476 (regcache::aspace): Return const address_space *.
2477 (regcache) <m_aspace>: Add const.
2478
a01bda52
YQ
24792017-11-02 Yao Qi <yao.qi@linaro.org>
2480
2481 * darwin-nat.c (cancel_breakpoint): Use regcache->aspace ().
2482 * frame.c (create_sentinel_frame): Likewise.
2483 * infrun.c (displaced_step_prepare_throw): Likewise.
2484 (resume): Likewise.
2485 (thread_still_needs_step_over_bp): Likewise.
2486 (proceed): Likewise.
2487 (do_target_wait): Likewise.
2488 (adjust_pc_after_break): Likewise.
2489 (handle_syscall_event): Likewise.
2490 (save_waitstatus): Likewise.
2491 (handle_inferior_event_1): Likewise.
2492 (handle_signal_stop): Likewise.
2493 (keep_going_pass_signal): Likewise.
2494 * linux-nat.c (status_callback): Likewise.
2495 (save_stop_reason): Likewise.
2496 (resume_stopped_resumed_lwps): Likewise.
2497 * record-full.c (record_full_exec_insn): Likewise.
2498 (record_full_wait_1): Likewise.
2499 * regcache.c (get_regcache_aspace): Remove.
2500 * regcache.h (get_regcache_aspace): Remove.
2501
d999647b
YQ
25022017-11-02 Yao Qi <yao.qi@linaro.org>
2503
2504 * regcache.c (struct regcache_descr) <nr_raw_registers>: Remove.
2505 (init_regcache_descr): Use gdbarch_num_regs.
2506 (regcache::regcache): Likewise.
2507 (regcache::get_register_status): Likewise.
2508 (regcache::assert_raw_regnum): Likewise.
2509 (regcache::cooked_read): Likewise.
2510 (regcache::cooked_read_value): Likewise.
2511 (regcache::cooked_write): Likewise.
2512 (regcache::dump): Likewise.
2513 (regcache::num_raw_registers): New method.
2514 * regcache.h (class regcache) <num_raw_registers>: New.
2515
4e888c28
YQ
25162017-11-02 Yao Qi <yao.qi@linaro.org>
2517
2518 * regcache.c (regcache::assert_regnum): New method.
2519 (regcache::invalidate): Call assert_regnum.
2520 (regcache::raw_update): Likewise.
2521 (regcache::raw_write): Likewise.
2522 (regcache::raw_read_part): Likewise.
2523 (regcache::raw_write_part): Likewise.
2524 (regcache::raw_supply): Likewise.
2525 (regcache::raw_supply_integer): Likewise.
2526 (regcache::raw_supply_zeroed): Likewise.
2527 (regcache::raw_collect): Likewise.
2528 (regcache::raw_collect_integer): Likewise.
2529 * regcache.h (regcache::assert_regnum): Declare.
2530
2e1b49b3
YQ
25312017-11-02 Yao Qi <yao.qi@linaro.org>
2532
2533 * regcache.c (regcache::dump): Remove code.
2534
6c5218df
YQ
25352017-11-02 Yao Qi <yao.qi@linaro.org>
2536
2537 * regcache.c (struct regcache_descr) <sizeof_raw_register_status>:
2538 Remove.
2539 <sizeof_cooked_register_status>: Remove.
2540 (init_regcache_descr): Update.
2541 (regcache::regcache): Use nr_cooked_registers and nr_raw_registers.
2542 (regcache::save): Likewise.
2543 (regcache::dump): Likewise.
2544
dcc31d28
JB
25452017-11-01 James Bowman <james.bowman@ftdichip.com>
2546
2547 * ft32-tdep.c (ft32_fetch_instruction): New function.
2548 (ft32_analyze_prologue): Use ft32_fetch_instruction().
2549
3a87ae65
SM
25502017-10-31 Simon Marchi <simon.marchi@polymtl.ca>
2551
2552 * cli/cli-script.c (execute_control_command): Rename to ...
2553 (execute_control_command_1): ... this.
2554 (execute_control_command): New function.
2555
09b847f3
SM
25562017-10-31 Simon Marchi <simon.marchi@ericsson.com>
2557
2558 * tracepoint.c (tfind_command): Remove const_cast.
2559
f871c485
MG
25602017-10-30 Mike Gulick <mgulick@mathworks.com>
2561
2562 * Makefile.in (HFILES_NO_SRCDIR): Remove reference to gdb.h.
2563
b020ff80
SM
25642017-10-30 Simon Marchi <simon.marchi@ericsson.com>
2565
2566 * common/common-utils.h (in_inclusive_range): New function.
2567 * arm-tdep.c (arm_record_extension_space): Use
2568 in_inclusive_range.
2569 (thumb_record_ld_st_reg_offset): Use in_inclusive_range.
2570 * cris-tdep.c (cris_spec_reg_applicable): Use
2571 in_inclusive_range.
2572
1b81856f
PA
25732017-10-30 Pedro Alves <palves@redhat.com>
2574 Simon Marchi <simon.marchi@ericsson.com>
2575
2576 * remote.c (remote_set_syscall_catchpoint): Build a std::string
2577 instead of a gdb::unique_xmalloc_ptr, using string_appendf.
2578
31b833b3
PA
25792017-10-30 Pedro Alves <palves@redhat.com>
2580
2581 * common/common-utils.c (string_appendf, string_vappendf): New
2582 functions.
2583 * common/common-utils.h (string_appendf, string_vappendf): New
2584 declarations.
2585 * unittests/common-utils-selftests.c (string_appendf_func)
2586 (test_appendf_func, string_vappendf_wrapper, string_appendf_tests)
2587 (string_vappendf_tests): New functions.
2588 (_initialize_common_utils_selftests): Register "string_appendf" and
2589 "string_vappendf tests".
2590
4a250334
PA
25912017-10-30 Pedro Alves <palves@redhat.com>
2592
2593 * unittests/common-utils-selftests.c (format_func): New typedef.
2594 (string_printf_tests, string_vprintf_tests): Tests factored out
2595 and merged to ...
2596 (test_format_func): ... this new function.
2597 (string_printf_tests, string_vprintf_tests): Reimplement on top of
2598 test_format_func.
2599
16c5c17e
SM
26002017-10-29 Simon Marchi <simon.marchi@ericsson.com>
2601
2602 * darwin-nat.c: Remove include of gdb.h.
2603
7ca51576
SM
26042017-10-29 Simon Marchi <simon.marchi@ericsson.com>
2605
2606 * xtensa-xtregs.c: Fix formatting issues.
2607
c1342859
SM
26082017-10-29 Simon Marchi <simon.marchi@ericsson.com>
2609
2610 * xtensa-xtregs.c (xtensa_regtable_t) <name>: Constify.
2611
484d8d36
MD
26122017-10-28 Maksim Dzabraev <dzabraew@gmail.com>
2613
2614 PR python/21213
2615 * python/py-infthread.c (thpy_get_inferior): Increment reference
2616 of inferior before returning it.
2617
b5540b5f
SM
26182017-10-27 Simon Marchi <simon.marchi@ericsson.com>
2619
2620 * unittests/common-utils-selftests.c (format): Add
2621 ATTRIBUTE_PRINTF.
2622
5a9dcda1
SM
26232017-10-27 Simon Marchi <simon.marchi@polymtl.ca>
2624
2625 * xml-syscall.c (struct syscall_desc): Add constructor.
2626 <name>: Change type to std::string.
2627 (syscall_desc_up): New typedef.
2628 (syscall_desc_p): Remove typeder.
2629 (DEF_VEC_P(syscall_desc_p)): Remove.
2630 (struct syscall_group_desc): Add constructor.
2631 <name>: Change type to std::string.
2632 <syscalls>: Change type to std::vector.
2633 (syscall_group_desc_up): New typedef.
2634 (syscall_group_desc_p): Remove typedef.
2635 (DEF_VEC_P(syscall_group_desc_p)): Remove.
2636 (struct syscalls_info) <syscalls>: Change type to std::vector of
2637 unique_ptr.
2638 <groups>: Likewise.
2639 <my_gdb_datadir>: Change type to std::string.
2640 (syscalls_info_up): New typedef.
2641 (allocate_syscalls_info): Remove.
2642 (syscalls_info_free_syscalls_desc): Remove.
2643 (syscalls_info_free_syscall_group_desc): Remove.
2644 (free_syscalls_info): Remove.
2645 (make_cleanup_free_syscalls_info): Remove.
2646 (syscall_group_create_syscall_group_desc): Adjust.
2647 (syscall_group_add_syscall): Adjust.
2648 (syscall_create_syscall_desc): Adjust.
2649 (syscall_parse_xml): Adjust, use unique_ptr instead of cleanup.
2650 (init_syscalls_info): Adjust.
2651 (syscall_group_get_group_by_name): Adjust.
2652 (xml_get_syscall_number): Adjust.
2653 (xml_get_syscall_name): Adjust.
2654 (xml_list_of_syscalls): Adjust.
2655 (xml_list_syscalls_by_group): Adjust.
2656 (xml_list_of_groups): Adjust.
2657
45461e0d
SM
26582017-10-27 Simon Marchi <simon.marchi@ericsson.com>
2659
2660 * probe.h: Don't include gdb_vecs.h.
2661 (DEF_VEC_P (probe_p)): Remove.
2662 (find_probes_in_objfile): Return an std::vector.
2663 * probe.c (find_probes_in_objfile): Likewise.
2664 * breakpoint.c (breakpoint_objfile_data)
2665 <longjmp_probes>: Change type to std::vector.
2666 <exception_probes>: Likewise.
2667 (free_breakpoint_probes): Don't manually free vectors.
2668 (create_longjmp_master_breakpoint): Adjust.
2669 (create_exception_master_breakpoint): Adjust.
2670 * solib-svr4.c (svr4_create_probe_breakpoints): Change
2671 parameter type, adjust.
2672 (svr4_create_solib_event_breakpoints): Adjust.
2673
43dce439
SM
26742017-10-27 Simon Marchi <simon.marchi@ericsson.com>
2675
2676 * breakpoint.c (breakpoint_objfile_data): Initialize fields.
2677 (get_breakpoint_objfile_data): Allocate breakpoint_objfile_data
2678 with new.
2679 (free_breakpoint_probes): Rename to ...
2680 (free_breakpoint_objfile_data): ... this, and call delete on
2681 bp_objfile_data..
2682
6a1b9516
SM
26832017-10-27 Simon Marchi <simon.marchi@polymtl.ca>
2684
2685 * auto-load.c: Don't include gdb_vecs.h, include algorithm.
2686 (loaded_script_ptr): Remove typedef.
2687 (DEF_VEC_P (loaded_script_ptr)): Remove.
2688 (struct collect_matching_scripts_data): Add constructor.
2689 <scripts_p>: Change type to (pointer to) std::vector.
2690 (collect_matching_scripts_data): Adjust.
2691 (sort_scripts_by_name): Make suitable for std::sort.
2692 (print_scripts): Don't sort vector, adjust to std::vector.
2693 (auto_load_info_scripts): Sort vectors, adjust to std::vector.
2694
593e3209
SM
26952017-10-27 Simon Marchi <simon.marchi@ericsson.com>
2696
2697 * symfile.c (filename_language): Make struct, not typedef. Add
2698 constructor.
2699 <ext>: Change type to std::string.
2700 (DEF_VEC_O (filename_language)): Remove.
2701 (filename_language_table): Change type to std::vector.
2702 (add_filename_language): Adjust.
2703 (set_ext_lang_command): Adjust.
2704 (info_ext_lang_command): Adjust.
2705 (deduce_language_from_filename): Adjust.
2706 (class scoped_restore_filename_language_table): Remove.
2707 (test_filename_language): Use scoped_restore.
2708 (test_set_ext_lang_command): Use scoped_restore, adjust to
2709 std::vector change.
2710
32fa66eb
SM
27112017-10-27 Simon Marchi <simon.marchi@ericsson.com>
2712
2713 * symfile.c: Include selftest.h.
2714 (class scoped_restore_filename_language_table): New.
2715 (test_filename_language): New test.
2716 (test_set_ext_lang_command): New test.
2717 (_initialize_symfile): Register tests.
2718
4a27f119
KS
27192017-10-27 Keith Seitz <keiths@redhat.com>
2720
2721 * breakpoint.c (print_breakpoint_location): Use the symbol saved
2722 in the bp_location, falling back to find_pc_sect_function when
2723 needed.
2724 (add_location_to_breakpoint): Save sal->symbol.
2725 * breakpoint.h (struct bp_location) <symbol>: New field.
2726 * symtab.c (find_function_start_sal): Save the symbol into the SaL.
2727 * symtab.h (struct symtab_and_line) <symbol>: New field.
2728
a43f3893
PF
27292017-10-26 Patrick Frants <osscontribute@gmail.com>
2730
7453e6b2 2731 PR gdb/13669
a43f3893
PF
2732 * cp-valprint.c (cp_print_value_fields): Use obstack_blank_fast
2733 to rewind obstack.
2734
23cc4e1b
PA
27352017-10-26 Pedro Alves <palves@redhat.com>
2736
2737 * remote.c (remote_async_terminal_ours_p): Delete.
2738 (remote_open_1, remote_terminal_inferior, remote_terminal_ours):
2739 Remove references to 'remote_async_terminal_ours_p'.
2740
6abc18bb
YQ
27412017-10-26 Yao Qi <yao.qi@linaro.org>
2742
2743 * breakpoint.h (regular_breakpoint_inserted_here_p): Remove.
2744
bd522513
YQ
27452017-10-26 Yao Qi <yao.qi@linaro.org>
2746
2747 * break-catch-sig.c (signal_catchpoint_breakpoint_hit): Make
2748 aspace const.
2749 * break-catch-syscall.c (breakpoint_hit_catch_syscall):
2750 Likewise.
2751 * breakpoint.c (bpstat_check_location): Remove cast.
2752 (breakpoint_hit_catch_fork): Make aspce const.
2753 (breakpoint_hit_catch_solib): Likewise.
2754 (breakpoint_hit_catch_exec): Likewise.
2755 (breakpoint_hit_ranged_breakpoint): Likewise.
2756 (breakpoint_hit_watchpoint): Likewise.
2757 (base_breakpoint_breakpoint_hit): Likewise.
2758 (bkpt_breakpoint_hit): Likewise.
2759 (dprintf_breakpoint_hit): Likewise.
2760 (tracepoint_breakpoint_hit): Likewise.
2761 * breakpoint.h (breakpoint_ops) <breakpoint_hit>: Likewise.
2762
accd0bcd
YQ
27632017-10-26 Yao Qi <yao.qi@linaro.org>
2764
2765 * breakpoint.c (breakpoint_location_address_match): Change
2766 "struct address_space *" to "const address_space".
2767 (breakpoint_location_address_range_overlap): Likewise.
2768 (breakpoint_here_p): Likewise.
2769 (breakpoint_in_range_p): Likewise.
2770 (moribund_breakpoint_here_p): Likewise.
2771 (bp_location_inserted_here_p): Likewise.
2772 (software_breakpoint_inserted_here_p): Likewise.
2773 (hardware_breakpoint_inserted_here_p): Likewise.
2774 (hardware_watchpoint_inserted_in_range): Likewise.
2775 (bpstat_check_location): Likewise.
2776 (bpstat_stop_status): Likewise.
2777 (breakpoint_address_match): Likewise.
2778 (breakpoint_address_match_range): Likewise.
2779 (breakpoint_location_address_match): Likewise.
2780 (breakpoint_location_address_range_overlap): Likewise.
2781 (insert_single_step_breakpoint): Likewise.
2782 (breakpoint_has_location_inserted_here): Likewise.
2783 (single_step_breakpoint_inserted_here_p): Likewise.
2784 (pc_at_non_inline_function): Likewise.
2785 * breakpoint.h (bpstat_stop_status): Update declaration.
2786 (breakpoint_here_p): Likewise.
2787 (breakpoint_in_range_p): Likewise.
2788 (moribund_breakpoint_here_p): Likewise.
2789 (breakpoint_inserted_here_p): Likewise.
2790 (software_breakpoint_inserted_here_p): Likewise.
2791 (hardware_breakpoint_inserted_here_p): Likewise.
2792 (breakpoint_has_location_inserted_here): Likewise.
2793 (single_step_breakpoint_inserted_here_p): Likewise.
2794 (hardware_watchpoint_inserted_in_range): Likewise.
2795 (breakpoint_address_match): Likewise.
2796 (insert_single_step_breakpoint): Likewise.
2797 (pc_at_non_inline_function): Likewise.
2798 * gdbthread.h (thread_has_single_step_breakpoint_here): Likewise.
2799 * record.c (record_check_stopped_by_breakpoint): Likewise.
2800 * record.h (record_check_stopped_by_breakpoint): Likewise.
2801 * thread.c (thread_has_single_step_breakpoint_here): Likewise.
2802
ac7936df
YQ
28032017-10-25 Yao Qi <yao.qi@linaro.org>
2804
2805 * aarch32-linux-nat.c (aarch32_gp_regcache_supply): Use
2806 regcache->arch () instead get_regcache_arch.
2807 * aarch64-fbsd-nat.c (aarch64_fbsd_fetch_inferior_registers):
2808 Likewise.
2809 (aarch64_fbsd_store_inferior_registers): Likewise.
2810 * aarch64-linux-nat.c (fetch_gregs_from_thread): Likewise.
2811 (store_gregs_to_thread): Likewise.
2812 (fetch_fpregs_from_thread): Likewise.
2813 (store_fpregs_to_thread): Likewise.
2814 * aarch64-tdep.c (aarch64_extract_return_value): Likewise.
2815 (aarch64_store_return_value): Likewise.
2816 (aarch64_software_single_step): Likewise.
2817 * aix-thread.c (aix_thread_wait): Likewise.
2818 (supply_reg32): Likewise.
2819 (supply_sprs64): Likewise.
2820 (supply_sprs32): Likewise.
2821 (fill_gprs64): Likewise.
2822 (fill_gprs32): Likewise.
2823 (fill_sprs64): Likewise.
2824 (fill_sprs32): Likewise.
2825 (store_regs_user_thread): Likewise.
2826 (store_regs_kernel_thread): Likewise.
2827 * alpha-bsd-nat.c (alphabsd_fetch_inferior_registers): Likewise.
2828 (alphabsd_store_inferior_registers): Likewise.
2829 * alpha-tdep.c (alpha_extract_return_value): Likewise.
2830 (alpha_store_return_value): Likewise.
2831 (alpha_deal_with_atomic_sequence): Likewise.
2832 (alpha_next_pc): Likewise.
2833 (alpha_software_single_step): Likewise.
2834 * amd64-bsd-nat.c (amd64bsd_fetch_inferior_registers): Likewise.
2835 (amd64bsd_store_inferior_registers): Likewise.
2836 * amd64-linux-nat.c (amd64_linux_fetch_inferior_registers):
2837 Likewise.
2838 (amd64_linux_store_inferior_registers): Likewise.
2839 * amd64-nat.c (amd64_supply_native_gregset): Likewise.
2840 (amd64_collect_native_gregset): Likewise.
2841 * amd64-obsd-tdep.c (amd64obsd_supply_uthread): Likewise.
2842 (amd64obsd_collect_uthread): Likewise.
2843 * amd64-tdep.c (amd64_supply_fpregset): Likewise.
2844 (amd64_collect_fpregset): Likewise.
2845 (amd64_supply_fxsave): Likewise.
2846 (amd64_supply_xsave): Likewise.
2847 (amd64_collect_fxsave): Likewise.
2848 (amd64_collect_xsave): Likewise.
2849 * arc-tdep.c (arc_write_pc): Likewise.
2850 * arch-utils.c (default_skip_permanent_breakpoint): Likewise.
2851 * arm-fbsd-nat.c (arm_fbsd_fetch_inferior_registers): Likewise.
2852 (arm_fbsd_store_inferior_registers): Likewise.
2853 * arm-linux-nat.c (fetch_vfp_regs): Likewise.
2854 (store_vfp_regs): Likewise.
2855 (arm_linux_fetch_inferior_registers): Likewise.
2856 (arm_linux_store_inferior_registers): Likewise.
2857 * arm-linux-tdep.c (arm_linux_supply_gregset): Likewise.
2858 (arm_linux_sigreturn_next_pc): Likewise.
2859 (arm_linux_get_next_pcs_syscall_next_pc): Likewise.
2860 * arm-nbsd-nat.c (arm_supply_gregset): Likewise.
2861 (fetch_register): Likewise.
2862 (store_register): Likewise.
2863 * arm-tdep.c (arm_is_thumb): Likewise.
2864 (displaced_in_arm_mode): Likewise.
2865 (bx_write_pc): Likewise.
2866 (arm_get_next_pcs_addr_bits_remove): Likewise.
2867 (arm_software_single_step): Likewise.
2868 (arm_extract_return_value): Likewise.
2869 (arm_store_return_value): Likewise.
2870 (arm_write_pc): Likewise.
2871 * bfin-tdep.c (bfin_extract_return_value): Likewise.
2872 * bsd-uthread.c (bsd_uthread_fetch_registers): Likewise.
2873 (bsd_uthread_store_registers): Likewise.
2874 * core-regset.c (fetch_core_registers): Likewise.
2875 * corelow.c (get_core_registers): Likewise.
2876 * cris-tdep.c (cris_store_return_value): Likewise.
2877 (cris_extract_return_value): Likewise.
2878 (find_step_target): Likewise.
2879 (find_step_target): Likewise.
2880 (cris_software_single_step): Likewise.
2881 * ctf.c (ctf_fetch_registers): Likewise.
2882 * darwin-nat.c (cancel_breakpoint): Likewise.
2883 * fbsd-tdep.c (fbsd_collect_thread_registers): Likewise.
2884 * frv-tdep.c (frv_extract_return_value): Likewise.
2885 * ft32-tdep.c (ft32_store_return_value): Likewise.
2886 (ft32_extract_return_value): Likewise.
2887 * go32-nat.c (fetch_register): Likewise.
2888 (go32_fetch_registers): Likewise.
2889 (go32_store_registers): Likewise.
2890 (store_register): Likewise.
2891 * h8300-tdep.c (h8300_extract_return_value): Likewise.
2892 (h8300_store_return_value): Likewise.
2893 * hppa-linux-nat.c (fetch_register): Likewise.
2894 (store_register): Likewise.
2895 (hppa_linux_fetch_inferior_registers): Likewise.
2896 (hppa_linux_store_inferior_registers): Likewise.
2897 * i386-darwin-nat.c (i386_darwin_fetch_inferior_registers): Likewise.
2898 (i386_darwin_store_inferior_registers): Likewise.
2899 * i386-gnu-nat.c (gnu_fetch_registers): Likewise.
2900 (gnu_store_registers): Likewise.
2901 * i386-linux-nat.c (fetch_register): Likewise.
2902 (store_register): Likewise.
2903 (supply_gregset): Likewise.
2904 (fill_gregset): Likewise.
2905 (i386_linux_fetch_inferior_registers): Likewise.
2906 (i386_linux_store_inferior_registers): Likewise.
2907 (i386_linux_resume): Likewise.
2908 * i386-linux-tdep.c (i386_linux_get_syscall_number_from_regcache):
2909 Likewise.
2910 * i386-nto-tdep.c (i386nto_supply_gregset): Likewise.
2911 * i386-obsd-nat.c (i386obsd_supply_pcb): Likewise.
2912 * i386-obsd-tdep.c (i386obsd_supply_uthread): Likewise.
2913 (i386obsd_collect_uthread): Likewise.
2914 * i386-tdep.c (i386_mmx_regnum_to_fp_regnum): Likewise.
2915 (i386_supply_gregset): Likewise.
2916 (i386_collect_gregset): Likewise.
2917 (i386_supply_fpregset): Likewise.
2918 (i386_collect_fpregset): Likewise.
2919 (i386_mpx_bd_base): Likewise.
2920 * i386-v4-nat.c (supply_fpregset): Likewise.
2921 (fill_fpregset): Likewise.
2922 * i387-tdep.c (i387_supply_fsave): Likewise.
2923 (i387_collect_fsave): Likewise.
2924 (i387_supply_fxsave): Likewise.
2925 (i387_collect_fxsave): Likewise.
2926 (i387_supply_xsave): Likewise.
2927 (i387_collect_xsave): Likewise.
2928 * ia64-linux-nat.c (ia64_linux_fetch_registers): Likewise.
2929 (ia64_linux_store_registers): Likewise.
2930 * ia64-tdep.c (ia64_access_rse_reg): Likewise.
2931 (ia64_extract_return_value): Likewise.
2932 (ia64_store_return_value): Likewise.
2933 (find_func_descr): Likewise.
2934 * inf-child.c (inf_child_fetch_inferior_registers): Likewise.
2935 * inf-ptrace.c (inf_ptrace_fetch_registers): Likewise.
2936 (inf_ptrace_store_registers): Likewise.
2937 * infrun.c (use_displaced_stepping): Likewise.
2938 (displaced_step_prepare_throw): Likewise.
2939 (resume): Likewise.
2940 (proceed): Likewise.
2941 (do_target_wait): Likewise.
2942 (adjust_pc_after_break): Likewise.
2943 (handle_inferior_event_1): Likewise.
2944 (handle_signal_stop): Likewise.
2945 (save_infcall_suspend_state): Likewise.
2946 (restore_infcall_suspend_state): Likewise.
2947 * iq2000-tdep.c (iq2000_extract_return_value): Likewise.
2948 * jit.c (jit_frame_prev_register): Likewise.
2949 * linux-nat.c (save_stop_reason): Likewise.
2950 (linux_nat_wait_1): Likewise.
2951 (resume_stopped_resumed_lwps): Likewise.
2952 * linux-record.c (record_linux_sockaddr): Likewise.
2953 (record_linux_msghdr): Likewise.
2954 (record_linux_system_call): Likewise.
2955 * linux-tdep.c (linux_collect_thread_registers): Likewise.
2956 * lm32-tdep.c (lm32_extract_return_value): Likewise.
2957 (lm32_store_return_value): Likewise.
2958 * m32c-tdep.c (m32c_read_flg): Likewise.
2959 (m32c_pseudo_register_read): Likewise.
2960 (m32c_pseudo_register_write): Likewise.
2961 * m32r-linux-tdep.c (m32r_linux_supply_gregset): Likewise.
2962 (m32r_linux_collect_gregset): Likewise.
2963 * m32r-tdep.c (m32r_store_return_value): Likewise.
2964 (m32r_extract_return_value): Likewise.
2965 * m68k-bsd-nat.c (m68kbsd_supply_fpregset): Likewise.
2966 (m68kbsd_collect_fpregset): Likewise.
2967 * m68k-bsd-tdep.c (m68kbsd_supply_fpregset): Likewise.
2968 * m68k-linux-nat.c (fetch_register): Likewise.
2969 (old_fetch_inferior_registers): Likewise.
2970 (old_store_inferior_registers): Likewise.
2971 (store_regs): Likewise.
2972 * m68k-tdep.c (m68k_svr4_extract_return_value): Likewise.
2973 (m68k_svr4_store_return_value): Likewise.
2974 * m88k-tdep.c (m88k_store_arguments): Likewise.
2975 * mi/mi-main.c (mi_cmd_data_list_changed_registers): Likewise.
2976 (mi_cmd_data_write_register_values): Likewise.
2977 * mips-fbsd-nat.c (mips_fbsd_fetch_inferior_registers): Likewise.
2978 (mips_fbsd_store_inferior_registers): Likewise.
2979 * mips-fbsd-tdep.c (mips_fbsd_supply_fpregs): Likewise.
2980 (mips_fbsd_supply_gregs): Likewise.
2981 (mips_fbsd_collect_fpregs): Likewise.
2982 (mips_fbsd_collect_gregs): Likewise.
2983 (mips_fbsd_supply_fpregset): Likewise.
2984 (mips_fbsd_collect_fpregset): Likewise.
2985 (mips_fbsd_supply_gregset): Likewise.
2986 (mips_fbsd_collect_gregset): Likewise.
2987 * mips-linux-nat.c (supply_gregset): Likewise.
2988 (fill_gregset): Likewise.
2989 (supply_fpregset): Likewise.
2990 (fill_fpregset): Likewise.
2991 * mips-linux-tdep.c (mips_supply_gregset): Likewise.
2992 (mips_fill_gregset): Likewise.
2993 (mips_supply_fpregset): Likewise.
2994 (mips_fill_fpregset): Likewise.
2995 (mips64_supply_gregset): Likewise.
2996 (micromips_linux_sigframe_validate): Likewise.
2997 * mips-nbsd-nat.c (mipsnbsd_fetch_inferior_registers): Likewise.
2998 (mipsnbsd_fetch_inferior_registers): Likewise.
2999 (mipsnbsd_store_inferior_registers): Likewise.
3000 * mips-nbsd-tdep.c (mipsnbsd_supply_fpregset): Likewise.
3001 (mipsnbsd_supply_gregset): Likewise.
3002 (mipsnbsd_iterate_over_regset_sections): Likewise.
3003 (mipsnbsd_supply_reg): Likewise.
3004 (mipsnbsd_supply_fpreg): Likewise.
3005 * mips-tdep.c (mips_in_frame_stub): Likewise.
3006 (mips_dummy_id): Likewise.
3007 (is_octeon_bbit_op): Likewise.
3008 (micromips_bc1_pc): Likewise.
3009 (extended_mips16_next_pc): Likewise.
3010 (mips16_next_pc): Likewise.
3011 (deal_with_atomic_sequence): Likewise.
3012 * moxie-tdep.c (moxie_process_readu): Likewise.
3013 * nios2-tdep.c (nios2_get_next_pc): Likewise.
3014 * nto-procfs.c (procfs_store_registers): Likewise.
3015 * ppc-fbsd-nat.c (ppcfbsd_fetch_inferior_registers): Likewise.
3016 (ppcfbsd_store_inferior_registers): Likewise.
3017 * ppc-linux-nat.c (fetch_vsx_register): Likewise.
3018 (fetch_altivec_register): Likewise.
3019 (get_spe_registers): Likewise.
3020 (fetch_spe_register): Likewise.
3021 (fetch_altivec_registers): Likewise.
3022 (fetch_all_gp_regs): Likewise.
3023 (fetch_all_fp_regs): Likewise.
3024 (store_vsx_register): Likewise.
3025 (store_altivec_register): Likewise.
3026 (set_spe_registers): Likewise.
3027 (store_spe_register): Likewise.
3028 (store_altivec_registers): Likewise.
3029 (store_all_gp_regs): Likewise.
3030 (store_all_fp_regs): Likewise.
3031 * ppc-linux-tdep.c (ppc_linux_supply_gregset): Likewise.
3032 (ppc_linux_collect_gregset): Likewise.
3033 (ppc_canonicalize_syscall): Likewise.
3034 (ppc_linux_record_signal): Likewise.
3035 (ppu2spu_prev_register): Likewise.
3036 * ppc-nbsd-nat.c (ppcnbsd_supply_pcb): Likewise.
3037 * ppc-obsd-nat.c (ppcobsd_fetch_registers): Likewise.
3038 (ppcobsd_store_registers): Likewise.
3039 * ppc-ravenscar-thread.c (ppc_ravenscar_generic_fetch_registers):
3040 Likewise.
3041 (ppc_ravenscar_generic_store_registers): Likewise.
3042 * procfs.c (procfs_fetch_registers): Likewise.
3043 (procfs_store_registers): Likewise.
3044 * ravenscar-thread.c (ravenscar_fetch_registers): Likewise.
3045 (ravenscar_store_registers): Likewise.
3046 (ravenscar_prepare_to_store): Likewise.
3047 * record-btrace.c (record_btrace_fetch_registers): Likewise.
3048 * record-full.c (record_full_wait_1): Likewise.
3049 (record_full_registers_change): Likewise.
3050 (record_full_store_registers): Likewise.
3051 (record_full_core_fetch_registers): Likewise.
3052 (record_full_save): Likewise.
3053 (record_full_goto_insn): Likewise.
3054 * regcache.c (regcache_register_size): Likewise.
3055 (get_regcache_arch): Remove.
3056 (regcache_read_pc): Likewise.
3057 * regcache.h (get_regcache_arch): Remove.
3058 * remote-sim.c (gdbsim_fetch_register): Likewise.
3059 (gdbsim_store_register): Likewise.
3060 * remote.c (fetch_register_using_p): Likewise.
3061 (send_g_packet): Likewise.
3062 (remote_prepare_to_store): Likewise.
3063 (store_registers_using_G): Likewise.
3064 * reverse.c (save_bookmark_command): Likewise.
3065 (goto_bookmark_command): Likewise.
3066 * rs6000-aix-tdep.c (branch_dest): Likewise.
3067 * rs6000-nat.c (rs6000_ptrace64): Likewise.
3068 (fetch_register): Likewise.
3069 * rs6000-tdep.c (ppc_supply_reg): Likewise.
3070 (ppc_collect_reg): Likewise.
3071 (ppc_collect_gregset): Likewise.
3072 (ppc_collect_fpregset): Likewise.
3073 (ppc_collect_vsxregset): Likewise.
3074 (ppc_collect_vrregset): Likewise.
3075 (ppc_displaced_step_hw_singlestep): Likewise.
3076 (rs6000_pseudo_register_read): Likewise.
3077 (rs6000_pseudo_register_write): Likewise.
3078 * s390-linux-nat.c (supply_gregset): Likewise.
3079 (fill_gregset): Likewise.
3080 (s390_linux_fetch_inferior_registers): Likewise.
3081 * s390-linux-tdep.c (s390_write_pc): Likewise.
3082 (s390_software_single_step): Likewise.
3083 (s390_all_but_pc_registers_record): Likewise.
3084 (s390_linux_syscall_record): Likewise.
3085 * sentinel-frame.c (sentinel_frame_prev_arch): Likewise.
3086 * sh-nbsd-nat.c (shnbsd_fetch_inferior_registers): Likewise.
3087 (shnbsd_store_inferior_registers): Likewise.
3088 * sh-tdep.c (sh_extract_return_value_nofpu): Likewise.
3089 (sh_extract_return_value_fpu): Likewise.
3090 (sh_store_return_value_nofpu): Likewise.
3091 (sh_corefile_supply_regset): Likewise.
3092 (sh_corefile_collect_regset): Likewise.
3093 * sh64-tdep.c (sh64_extract_return_value): Likewise.
3094 (sh64_store_return_value): Likewise.
3095 * sparc-linux-tdep.c (sparc32_linux_collect_core_fpregset): Likewise.
3096 * sparc-nat.c (sparc_fetch_inferior_registers): Likewise.
3097 (sparc_store_inferior_registers): Likewise.
3098 * sparc-ravenscar-thread.c (register_in_thread_descriptor_p): Likewise.
3099 (sparc_ravenscar_prepare_to_store): Likewise.
3100 * sparc-tdep.c (sparc32_store_arguments): Likewise.
3101 (sparc_analyze_control_transfer): Likewise.
3102 (sparc_step_trap): Likewise.
3103 (sparc_software_single_step): Likewise.
3104 (sparc32_gdbarch_init): Likewise.
3105 (sparc_supply_rwindow): Likewise.
3106 (sparc_collect_rwindow): Likewise.
3107 * sparc64-linux-tdep.c (sparc64_linux_collect_core_fpregset): Likewise.
3108 * sparc64-nbsd-nat.c (sparc64nbsd_supply_gregset): Likewise.
3109 (sparc64nbsd_collect_gregset): Likewise.
3110 (sparc64nbsd_supply_fpregset): Likewise.
3111 (sparc64nbsd_collect_fpregset): Likewise.
3112 * sparc64-tdep.c (sparc64_store_arguments): Likewise.
3113 (sparc64_supply_gregset): Likewise.
3114 (sparc64_collect_gregset): Likewise.
3115 (sparc64_supply_fpregset): Likewise.
3116 (sparc64_collect_fpregset): Likewise.
3117 * spu-linux-nat.c (spu_fetch_inferior_registers): Likewise.
3118 * spu-tdep.c (spu_unwind_sp): Likewise.
3119 (spu2ppu_prev_register): Likewise.
3120 (spu_memory_remove_breakpoint): Likewise.
3121 * stack.c (return_command): Likewise.
3122 * tic6x-tdep.c (tic6x_extract_signed_field): Likewise.
3123 * tracefile-tfile.c (tfile_fetch_registers): Likewise.
3124 * tracefile.c (trace_save_ctf): Likewise.
3125 * windows-nat.c (do_windows_fetch_inferior_registers): Likewise.
3126 (do_windows_store_inferior_registers): Likewise.
3127 (windows_resume): Likewise.
3128 * xtensa-linux-nat.c (fill_gregset): Likewise.
3129 (supply_gregset_reg): Likewise.
3130 * xtensa-tdep.c (xtensa_register_write_masked): Likewise.
3131 (xtensa_register_read_masked): Likewise.
3132 (xtensa_supply_gregset): Likewise.
3133 (xtensa_extract_return_value): Likewise.
3134 (xtensa_store_return_value): Likewise.
3135
edd079d9
UW
31362017-10-25 Ulrich Weigand <uweigand@de.ibm.com>
3137
3138 * doublest.c (floatformat_from_string): New function.
3139 * doublest.h (floatformat_from_string): Add prototype.
3140
3141 * std-operator.def (OP_DOUBLE, OP_DECFLOAT): Remove, replace by ...
3142 (OP_FLOAT): ... this.
3143 * expression.h: Do not include "doublest.h".
3144 (union exp_element): Replace doubleconst and decfloatconst by
3145 new element floatconst.
3146 * ada-lang.c (resolve_subexp): Handle OP_FLOAT instead of OP_DOUBLE.
3147 (ada_evaluate_subexp): Likewise.
3148 * eval.c (evaluate_subexp_standard): Handle OP_FLOAT instead of
3149 OP_DOUBLE and OP_DECFLOAT.
3150 * expprint.c (print_subexp_standard): Likewise.
3151 (dump_subexp_body_standard): Likewise.
3152 * breakpoint.c (watchpoint_exp_is_const): Likewise.
3153
3154 * parse.c: Include "dfp.h".
3155 (write_exp_elt_dblcst, write_exp_elt_decfloatcst): Remove.
3156 (write_exp_elt_floatcst): New function.
3157 (operator_length_standard): Handle OP_FLOAT instead of OP_DOUBLE
3158 and OP_DECFLOAT.
3159 (operator_check_standard): Likewise.
3160 (parse_float): Do not accept suffix. Take type as input. Return bool.
3161 Return target format buffer instead of host DOUBLEST.
3162 Use floatformat_from_string and decimal_from_string to parse
3163 either binary or decimal floating-point types.
3164 (parse_c_float): Remove.
3165 * parser-defs.h: Do not include "doublest.h".
3166 (write_exp_elt_dblcst, write_exp_elt_decfloatcst): Remove.
3167 (write_exp_elt_floatcst): Add prototype.
3168 (parse_float): Update prototype.
3169 (parse_c_float): Remove.
3170
3171 * c-exp.y: Do not include "dfp.h".
3172 (typed_val_float): Use byte buffer instead of DOUBLEST.
3173 (typed_val_decfloat): Remove.
3174 (DECFLOAT): Remove.
3175 (FLOAT): Use OP_FLOAT and write_exp_elt_floatcst.
3176 (parse_number): Update to new parse_float interface.
3177 Parse suffixes and determine type before calling parse_float.
3178 Handle decimal and binary FP types the same way.
3179
3180 * d-exp.y (typed_val_float): Use byte buffer instead of DOUBLEST.
3181 (FLOAT_LITERAL): Use OP_FLOAT and write_exp_elt_floatcst.
3182 (parse_number): Update to new parse_float interface.
3183 Parse suffixes and determine type before calling parse_float.
3184
3185 * f-exp.y: Replace dval by typed_val_float.
3186 (FLOAT): Use OP_FLOAT and write_exp_elt_floatcst.
3187 (parse_number): Use parse_float instead of atof.
3188
3189 * go-exp.y (typed_val_float): Use byte buffer instead of DOUBLEST.
3190 (parse_go_float): Remove.
3191 (FLOAT): Use OP_FLOAT and write_exp_elt_floatcst.
3192 (parse_number): Call parse_float instead of parse_go_float.
3193 Parse suffixes and determine type before calling parse_float.
3194
3195 * p-exp.y (typed_val_float): Use byte buffer instead of DOUBLEST.
3196 (FLOAT): Use OP_FLOAT and write_exp_elt_floatcst.
3197 (parse_number): Update to new parse_float interface.
3198 Parse suffixes and determine type before calling parse_float.
3199
3200 * m2-exp.y: Replace dval by byte buffer val.
3201 (FLOAT): Use OP_FLOAT and write_exp_elt_floatcst.
3202 (parse_number): Call parse_float instead of atof.
3203
3204 * rust-exp.y (typed_val_float): Use byte buffer instead of DOUBLEST.
3205 (lex_number): Call parse_float instead of strtod.
3206 (ast_dliteral): Use OP_FLOAT instead of OP_DOUBLE.
3207 (convert_ast_to_expression): Handle OP_FLOAT instead of OP_DOUBLE.
3208 Use write_exp_elt_floatcst.
3209 (unit_testing): Remove static variable.
3210 (rust_type): Do not check unit_testing.
3211 (rust_lex_tests): Do not set uint_testing. Set up dummy rust_parser.
3212
3213 * ada-exp.y (type_float, type_double): Remove.
3214 (typed_val_float): Use byte buffer instead of DOUBLEST.
3215 (FLOAT): Use OP_FLOAT and write_exp_elt_floatcst.
3216 * ada-lex.l (processReal): Use parse_float instead of sscanf.
3217
cc628f3d
AH
32182017-10-25 Alan Hayward <alan.hayward@arm.com>
3219
3220 * aarch64-tdep.h (enum aarch64_regnum): Remove.
3221 * arch/aarch64.h: New file.
3222
09a7c6aa
UW
32232017-10-24 Ulrich Weigand <uweigand@de.ibm.com>
3224
3225 * dfp.h (decimal_from_string): Use const reference for argument.
3226 * dfp.c (decimal_from_string): Likewise.
3227
8ba0dd51
UW
32282017-10-24 Ulrich Weigand <uweigand@de.ibm.com>
3229
3230 * i387-tdep.c (print_i387_value): Use floatformat_to_string.
3231 * sh64-tdep.c (sh64_do_fp_register): Likewise.
3232 * mips-tdep.c (mips_print_fp_register): Likewise.
3233
16e812b2
UW
32342017-10-24 Ulrich Weigand <uweigand@de.ibm.com>
3235
3236 * common/format.h (enum argclass): Replace decfloat_arg by
3237 dec32float_arg, dec64float_arg, and dec128float_arg.
3238 * common/format.c (parse_format_string): Update to return
3239 new decimal float argument classes.
3240
3241 * printcmd.c (printf_decfloat): Rename to ...
3242 (printf_floating): ... this. Add argclass argument, and use it
3243 instead of parsing the format string again. Add support for
3244 binary floating-point values, using floatformat_to_string.
3245 Convert value to the target format if it doesn't already match.
3246 (ui_printf): Call printf_floating instead of printf_decfloat,
3247 also for double_arg / long_double_arg. Pass argclass.
3248
3249 * dfp.c (decimal_to_string): Add format string argument.
3250 * dfp.h (decimal_to_string): Likewise.
3251
3252 * doublest.c (floatformat_to_string): Add format string argument.
3253 * doublest.h (floatformat_to_string): Likewise.
3254
fdf0cbc2
UW
32552017-10-24 Ulrich Weigand <uweigand@de.ibm.com>
3256
3257 * doublest.c (floatformat_precision): New routine.
3258 (floatformat_to_string): Likewise.
3259 * doublest.c (floatformat_to_string): Add prototype.
3260
3261 * printcmd.c (print_scalar_formatted): Only call print_floating
3262 on floating-point types.
3263 * valprint.c: Do not include "floatformat.h".
3264 (generic_val_print_decfloat): Remove.
3265 (generic_val_print): Call generic_val_print_float for both
3266 TYPE_CODE_FLT and TYPE_CODE_DECFLOAT.
3267 (print_floating): Use floatformat_to_string. Handle decimal float.
3268 (print_decimal_floating): Remove, merge into floatformat_to_string.
3269 * value.h (print_decimal_floating): Remove.
3270
3271 * Makefile.in: Do not build doublest.c with -Wformat-nonliteral.
3272
5033013f
UW
32732017-10-24 Ulrich Weigand <uweigand@de.ibm.com>
3274
3275 * buildsym.c (end_symtab_get_static_block): Use std::stable_sort.
3276
a664f67e
SM
32772017-10-21 Simon Marchi <simon.marchi@ericsson.com>
3278
3279 * memattr.h: Don't include vec.h.
3280 (struct mem_attrib): Initialize fields.
3281 <unknown>: New static method.
3282 (struct mem_region): Add constructors, operator<, initialize
3283 fields.
3284 * memattr.c: Include algorithm.
3285 (default_mem_attrib, unknown_mem_attrib): Remove.
3286 (user_mem_region_list): New global.
3287 (target_mem_region_list, mem_region_list): Change type to
3288 std::vector<mem_region>.
3289 (mem_use_target): Now a function.
3290 (target_mem_regions_valid): Change type to bool.
3291 (mem_region_lessthan, mem_region_cmp, mem_region_init): Remove.
3292 (require_user_regions): Adjust.
3293 (require_target_regions): Adjust.
3294 (create_mem_region): Adjust.
3295 (lookup_mem_region): Adjust.
3296 (invalidate_target_mem_regions): Adjust.
3297 (mem_clear): Rename to...
3298 (user_mem_clear): ... this, and adjust.
3299 (mem_command): Adjust.
3300 (info_mem_command): Adjust.
3301 (mem_enable, enable_mem_command, mem_disable,
3302 disable_mem_command): Adjust.
3303 (mem_delete): Adjust.
3304 (delete_mem_command): Adjust.
3305 * memory-map.h (parse_memory_map): Return an std::vector.
3306 * memory-map.c (parse_memory_map): Likewise.
3307 (struct memory_map_parsing_data): Add constructor.
3308 <memory_map>: Point to std::vector.
3309 (memory_map_start_memory): Adjust.
3310 (memory_map_end_memory): Adjust.
3311 (memory_map_end_property): Adjust.
3312 (clear_result): Remove.
3313 * remote.c (remote_memory_map): Return an std::vector.
3314 * target-debug.h (target_debug_print_VEC_mem_region_s__p):
3315 Remove.
3316 (target_debug_print_mem_region_vector): New.
3317 * target-delegates.c: Regenerate.
3318 * target.h (mem_region_vector): New typedef.
3319 (to_memory_map): Return mem_region_vector.
3320 (target_memory_map): Return an std::vector.
3321 * target.c (target_memory_map): Return an std::vector.
3322 (flash_erase_command): Adjust.
3323
6e17c565
SM
33242017-10-21 Simon Marchi <simon.marchi@ericsson.com>
3325
3326 * memory-map.c (struct memory_map_parsing_data) <property_name>:
3327 Change type to std::string.
3328 (memory_map_start_property): Adjust.
3329 (memory_map_end_property): Adjust.
3330
cfba9872
SM
33312017-10-21 Simon Marchi <simon.marchi@polymtl.ca>
3332
3333 * infrun.h: Include common/byte-vector.h.
3334 (struct displaced_step_closure): New struct.
3335 (struct buf_displaced_step_closure): New struct.
3336 * infrun.c (displaced_step_closure::~displaced_step_closure):
3337 Provide default implementation.
3338 (displaced_step_clear): Deallocate step closure with delete.
3339 * aarch64-tdep.c (displaced_step_closure): Rename to ...
3340 (aarch64_displaced_step_closure): ... this, extend
3341 displaced_step_closure.
3342 (aarch64_displaced_step_data) <dsc>: Change type to
3343 aarch64_displaced_step_closure.
3344 (aarch64_displaced_step_copy_insn): Adjust to type change, use
3345 unique_ptr.
3346 (aarch64_displaced_step_fixup): Add cast for displaced step
3347 closure.
3348 * amd64-tdep.c (displaced_step_closure): Rename to ...
3349 (amd64_displaced_step_closure): ... this, extend
3350 displaced_step_closure.
3351 <insn_buf>: Change type to std::vector<gdb_byte>.
3352 <max_len>: Remove.
3353 (fixup_riprel): Change type of DSC parameter, adjust to type
3354 change of insn_buf.
3355 (fixup_displaced_copy): Change type of DSC parameter.
3356 (amd64_displaced_step_copy_insn): Instantiate
3357 amd64_displaced_step_closure.
3358 (amd64_displaced_step_fixup): Add cast for closure type, adjust
3359 to type change of insn_buf.
3360 * arm-linux-tdep.c (arm_linux_cleanup_svc): Change type of
3361 parameter DSC.
3362 (arm_linux_copy_svc): Likewise.
3363 (cleanup_kernel_helper_return): Likewise.
3364 (arm_catch_kernel_helper_return): Likewise.
3365 (arm_linux_displaced_step_copy_insn): Instantiate
3366 arm_displaced_step_closure.
3367 * arm-tdep.c (arm_pc_is_thumb): Add cast for closure.
3368 (displaced_read_reg): Change type of parameter DSC.
3369 (branch_write_pc): Likewise.
3370 (load_write_pc): Likewise.
3371 (alu_write_pc): Likewise.
3372 (displaced_write_reg): Likewise.
3373 (arm_copy_unmodified): Likewise.
3374 (thumb_copy_unmodified_32bit): Likewise.
3375 (thumb_copy_unmodified_16bit): Likewise.
3376 (cleanup_preload): Likewise.
3377 (install_preload): Likewise.
3378 (arm_copy_preload): Likewise.
3379 (thumb2_copy_preload): Likewise.
3380 (install_preload_reg): Likewise.
3381 (arm_copy_preload_reg): Likewise.
3382 (cleanup_copro_load_store): Likewise.
3383 (install_copro_load_store): Likewise.
3384 (arm_copy_copro_load_store) Likewise.
3385 (thumb2_copy_copro_load_store): Likewise.
3386 (cleanup_branch): Likewise.
3387 (install_b_bl_blx): Likewise.
3388 (arm_copy_b_bl_blx): Likewise.
3389 (thumb2_copy_b_bl_blx): Likewise.
3390 (thumb_copy_b): Likewise.
3391 (install_bx_blx_reg): Likewise.
3392 (arm_copy_bx_blx_reg): Likewise.
3393 (thumb_copy_bx_blx_reg): Likewise.
3394 (cleanup_alu_imm): Likewise.
3395 (arm_copy_alu_imm): Likewise.
3396 (thumb2_copy_alu_imm): Likewise.
3397 (cleanup_alu_reg): Likewise.
3398 (install_alu_reg): Likewise.
3399 (arm_copy_alu_reg): Likewise.
3400 (thumb_copy_alu_reg): Likewise.
3401 (cleanup_alu_shifted_reg): Likewise.
3402 (install_alu_shifted_reg): Likewise.
3403 (arm_copy_alu_shifted_reg): Likewise.
3404 (cleanup_load): Likewise.
3405 (cleanup_store): Likewise.
3406 (arm_copy_extra_ld_st): Likewise.
3407 (install_load_store): Likewise.
3408 (thumb2_copy_load_literal): Likewise.
3409 (thumb2_copy_load_reg_imm): Likewise.
3410 (arm_copy_ldr_str_ldrb_strb): Likewise.
3411 (cleanup_block_load_all): Likewise.
3412 (cleanup_block_store_pc): Likewise.
3413 (cleanup_block_load_pc): Likewise.
3414 (arm_copy_block_xfer): Likewise.
3415 (thumb2_copy_block_xfer): Likewise.
3416 (cleanup_svc): Likewise.
3417 (install_svc): Likewise.
3418 (arm_copy_svc): Likewise.
3419 (thumb_copy_svc): Likewise.
3420 (arm_copy_undef): Likewise.
3421 (thumb_32bit_copy_undef): Likewise.
3422 (arm_copy_unpred): Likewise.
3423 (arm_decode_misc_memhint_neon): Likewise.
3424 (arm_decode_unconditional): Likewise.
3425 (arm_decode_miscellaneous): Likewise.
3426 (arm_decode_dp_misc): Likewise.
3427 (arm_decode_ld_st_word_ubyte): Likewise.
3428 (arm_decode_media): Likewise.
3429 (arm_decode_b_bl_ldmstm): Likewise.
3430 (arm_decode_ext_reg_ld_st): Likewise.
3431 (thumb2_decode_dp_shift_reg): Likewise.
3432 (thumb2_decode_ext_reg_ld_st): Likewise.
3433 (arm_decode_svc_copro): Likewise.
3434 (thumb2_decode_svc_copro): Likewise.
3435 (install_pc_relative): Likewise.
3436 (thumb_copy_pc_relative_16bit): Likewise.
3437 (thumb_decode_pc_relative_16bit): Likewise.
3438 (thumb_copy_pc_relative_32bit): Likewise.
3439 (thumb_copy_16bit_ldr_literal): Likewise.
3440 (thumb_copy_cbnz_cbz): Likewise.
3441 (thumb2_copy_table_branch): Likewise.
3442 (cleanup_pop_pc_16bit_all): Likewise.
3443 (thumb_copy_pop_pc_16bit): Likewise.
3444 (thumb_process_displaced_16bit_insn): Likewise.
3445 (decode_thumb_32bit_ld_mem_hints): Likewise.
3446 (thumb_process_displaced_32bit_insn): Likewise.
3447 (thumb_process_displaced_insn): Likewise.
3448 (arm_process_displaced_insn): Likewise.
3449 (arm_displaced_init_closure): Likewise.
3450 (arm_displaced_step_fixup): Add cast for closure.
3451 * arm-tdep.h: Include infrun.h.
3452 (displaced_step_closure): Rename to ...
3453 (arm_displaced_step_closure): ... this, extend
3454 displaced_step_closure.
3455 <u::svc::copy_svc_os>: Change type of parameter DSC.
3456 <cleanup>: Likewise.
3457 (arm_process_displaced_insn): Likewise.
3458 (arm_displaced_init_closure): Likewise.
3459 (displaced_read_reg): Likewise.
3460 (displaced_write_reg): Likewise.
3461 * i386-linux-tdep.c (i386_linux_displaced_step_copy_insn):
3462 Adjust.
3463 * i386-tdep.h: Include infrun.h.
3464 (i386_displaced_step_closure): New typedef.
3465 * i386-tdep.c (i386_displaced_step_copy_insn): Use
3466 i386_displaced_step_closure.
3467 (i386_displaced_step_fixup): Adjust.
3468 * rs6000-tdep.c (ppc_displaced_step_closure): New typedef.
3469 (ppc_displaced_step_copy_insn): Use ppc_displaced_step_closure
3470 and unique_ptr.
3471 (ppc_displaced_step_fixup): Adjust.
3472 * s390-linux-tdep.c (s390_displaced_step_closure): New typedef.
3473 (s390_displaced_step_copy_insn): Use s390_displaced_step_closure
3474 and unique_ptr.
3475 (s390_displaced_step_fixup): Adjust.
3476
b392b304
SM
34772017-10-21 Simon Marchi <simon.marchi@polymtl.ca>
3478
3479 * interps.h (interp_resume, interp_suspend, interp_set_temp):
3480 Remove declarations.
3481
d5833c62
TT
34822017-10-20 Tom Tromey <tom@tromey.com>
3483
3484 * gdb_bfd.c (struct gdb_bfd_data) <included_bfds>: Now a
3485 std::vector.
3486 (gdb_bfd_record_inclusion): Update.
3487 (bfdp): Remove typedef.
3488
06d5bbc8
TT
34892017-10-20 Tom Tromey <tom@tromey.com>
3490
3491 * gdb_bfd.c (gdb_bfd_ref): Use new.
3492 (struct gdb_bfd_data): Add constructor, destructor, and member
3493 initializers.
3494 (gdb_bfd_unref): Use delete.
3495
2712ce2e
TT
34962017-10-20 Tom Tromey <tom@tromey.com>
3497
3498 * exec.c (exec_file_attach): Use new_bfd_ref.
3499 * symfile-mem.c (symbol_file_add_from_memory): Use new_bfd_ref.
3500 * gdb_bfd.c (gdb_bfd_open, gdb_bfd_fopen, gdb_bfd_openr)
3501 (gdb_bfd_openw, gdb_bfd_openr_iovec, gdb_bfd_fdopenr): Use
3502 new_bfd_ref.
3503 * gdb_bfd.h (new_bfd_ref): New function.
3504
fcc8fb2f
PA
35052017-10-20 Pedro Alves <palves@redhat.com>
3506
3507 * main.c (captured_command_loop): Add attribute noinline.
3508
4c2287b0
SM
35092017-10-19 Simon Marchi <simon.marchi@ericsson.com>
3510
3511 * interps.c (struct interp_factory): Add constructor.
3512 (interp_factory_p): Remove typedef.
3513 (DEF_VEC_P(interp_factory_p)): Remove.
3514 (interpreter_factories): Change type to std::vector.
3515 (interp_factory_register): Adjust.
3516 (interp_lookup): Adjust.
3517 (interpreter_completer): Adjust.
3518
3d415c26
TT
35192017-10-19 Tom Tromey <tom@tromey.com>
3520
3521 * break-catch-syscall.c (catch_syscall_completer): Use
3522 std::string, gdb::unique_xmalloc_ptr.
3523
395423c4
TT
35242017-10-19 Tom Tromey <tom@tromey.com>
3525
3526 * infcall.c (call_function_by_hand_dummy): Use std::string.
3527
54f70bc1
TT
35282017-10-19 Tom Tromey <tom@tromey.com>
3529
3530 * mi/mi-main.c (mi_cmd_execute): Update.
3531 * top.h (prepare_execute_command): Return scoped_value_mark.
3532 * value.h (class scoped_value_mark): Use DISABLE_COPY_AND_ASSIGN.
3533 Add move constructor.
3534 * top.c (prepare_execute_command): Return scoped_value_mark.
3535 (execute_command): Update.
3536
63929e84
PA
35372017-10-19 Pedro Alves <palves@redhat.com>
3538
3539 * xml-support.c (xml_fetch_content_from_file): Check fread's
3540 return.
3541
a75868f5
PA
35422017-10-19 Pedro Alves <palves@redhat.com>
3543
3544 * ser-base.c (ser_base_read_error_fd): Delete the file handler if
3545 async.
3546 (handle_error_fd): New function.
3547 (ser_base_async): Add/delete an event loop file handler for
3548 error_fd.
3549
2edf834e
PA
35502017-10-19 Pedro Alves <palves@redhat.com>
3551
3552 * xml-support.c (xml_fetch_content_from_file): Don't read in
3553 chunks. Instead use fseek to determine the file's size, and read
3554 it in one go.
3555
c8ba13ad
KS
35562017-11-18 Keith Seitz <keiths@redhat.com>
3557
3558 * c-exp.y (oper): Canonicalize conversion operators of user-defined
3559 types.
3560 Add whitespace to front of type name.
3561
37534686
KS
35622017-10-18 Keith Seitz <keiths@redhat.com>
3563
3564 * dwarf2read.c (dwarf2_add_typedef): Issue a complaint on unhandled
3565 DW_AT_accessibility.
3566
28c7c158
YQ
35672017-10-18 Yao Qi <yao.qi@linaro.org>
3568
3569 * features/tic6x-c62x-linux.c: Remove.
3570
30f0b101
TT
35712017-10-17 Tom Tromey <tom@tromey.com>
3572
3573 * disasm.c (do_mixed_source_and_assembly_deprecated): Use
3574 gdb::optional, ui_out_emit_list, ui_out_emit_tuple.
3575 (do_mixed_source_and_assembly): Likewise.
3576
57e12da9
TT
35772017-10-17 Tom Tromey <tom@tromey.com>
3578
3579 * regcache.c (regcache::xfer_part): Remove assertion.
3580
7b700999
PA
35812017-10-17 Pedro Alves <palves@redhat.com>
3582
3583 * xml-support.c (xml_fetch_content_from_file): Call
3584 unique_ptr::release() instead unique_ptr::get() when passing
3585 through xrealloc.
3586
d3037ba6
YQ
35872017-10-17 Yao Qi <yao.qi@linaro.org>
3588
3589 * regcache.c (regcache::xfer_part): Remove parameters read and
3590 write, add parameter is_raw. All callers are updated.
3591
83d5a34d
KS
35922017-10-16 Keith Seitz <keiths@redhat.com>
3593
3594 * c-typeprint.c (enum access_specifier): Moved here from
3595 c_type_print_base.
3596 (output_access_specifier): New function.
3597 (c_type_print_base): Consider typedefs when assessing
3598 whether access labels are needed.
3599 Use output_access_specifier as needed.
3600 Output access specifier for typedefs, if needed.
3601 * dwarf2read.c (dwarf2_add_typedef): Record DW_AT_accessibility.
3602 * gdbtypes.h (struct typedef_field) <is_protected, is_private>: New
3603 fields.
3604 (TYPE_TYPEDEF_FIELD_PROTECTED, TYPE_TYPEDEF_FIELD_PRIVATE): New
3605 accessor macros.
3606
87028b87
TT
36072017-10-16 Tom Tromey <tom@tromey.com>
3608
3609 * linux-tdep.c (linux_info_proc, linux_find_memory_regions_full)
3610 (linux_fill_prpsinfo, linux_vsyscall_range_raw): Update.
3611 * target.c (target_fileio_read_stralloc): Update.
3612 * sparc64-tdep.c (adi_is_addr_mapped): Update.
3613 * target.h (target_fileio_read_stralloc): Return
3614 unique_xmalloc_ptr.
3615
b7b030ad
TT
36162017-10-16 Tom Tromey <tom@tromey.com>
3617
3618 * xml-syscall.c (xml_init_syscalls_info): Update.
3619 * xml-support.c (xinclude_start_include): Update.
3620 (xml_fetch_content_from_file): Return unique_xmalloc_ptr.
3621 * xml-support.h (xml_fetch_another): Return unique_xmalloc_ptr.
3622 (xml_fetch_content_from_file): Likewise.
3623 * osdata.c (get_osdata): Update.
3624 * target.h (target_read_stralloc, target_get_osdata): Return
3625 unique_xmalloc_ptr.
3626 * solib-aix.c (solib_aix_get_library_list): Update.
3627 * solib-target.c (solib_target_current_sos): Update.
3628 * solib-svr4.c (svr4_current_sos_via_xfer_libraries): Update.
3629 * xml-tdesc.c (fetch_available_features_from_target): Update.
3630 (target_fetch_description_xml): Update.
3631 (file_read_description_xml): Update.
3632 * remote.c (remote_get_threads_with_qxfer, remote_memory_map)
3633 (remote_traceframe_info, btrace_read_config, remote_read_btrace)
3634 (remote_pid_to_exec_file): Update.
3635 * target.c (target_read_stralloc): Return unique_xmalloc_ptr.
3636 (target_get_osdata): Likewise.
3637
b80406ac
TT
36382017-10-16 Tom Tromey <tom@tromey.com>
3639
3640 * remote.c (remote_register_number_and_offset): Use std::vector.
3641 (remote_set_syscall_catchpoint): Use gdb::unique_xmalloc_ptr.
3642 (putpkt_binary): Use gdb::def_vector.
3643 (compare_sections_command): Use gdb::byte_vector.
3644
a90ecff8
TT
36452017-10-16 Tom Tromey <tom@tromey.com>
3646
3647 * ppc-linux-nat.c (hwdebug_insert_point): Use
3648 gdb::unique_xmalloc_ptr, XDUP.
3649
2dc0e219
TT
36502017-10-16 Tom Tromey <tom@tromey.com>
3651
3652 * probe.c (parse_probes): Use std::string.
3653 (info_probes_for_ops, enable_probes_command)
3654 (disable_probes_command): Remove cleanups.
3655
b05628f0
TT
36562017-10-16 Tom Tromey <tom@tromey.com>
3657
3658 * buildsym.c (block_compar): Remove.
3659 (end_symtab_get_static_block): Use std::vector.
3660
a79b1bc6
SM
36612017-10-16 Simon Marchi <simon.marchi@ericsson.com>
3662
3663 * memrange.h (struct mem_range): Define operator< and operator==.
3664 (mem_range_s): Remove.
3665 (DEF_VEC_O (mem_range_s)): Remove.
3666 (normalize_mem_ranges): Change parameter type to std::vector.
3667 * memrange.c (compare_mem_ranges): Remove.
3668 (normalize_mem_ranges): Change parameter type to std::vector,
3669 adjust to vector change.
3670 * exec.c (section_table_available_memory): Return vector, remove
3671 parameter.
3672 (section_table_read_available_memory): Adjust to std::vector
3673 change.
3674 * remote.c (remote_read_bytes): Adjust to std::vector
3675 change.
3676 * tracepoint.h (traceframe_available_memory): Change parameter
3677 type to std::vector.
3678 * tracepoint.c (traceframe_available_memory): Change parameter
3679 type to std::vector, adjust.
3680 * gdb/mi/mi-main.c (mi_cmd_trace_frame_collected): Adjust to
3681 std::vector change.
3682 * gdb/Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
3683 unittests/memrange-selftests.c.
3684 (SUBDIR_UNITTESTS_OBS): Add memrange-selftests.o.
3685 * gdb/unittests/memrange-selftests.c: New file.
3686
63f0e930
PA
36872017-10-16 Pedro Alves <palves@redhat.com>
3688
3689 * elfread.c (probe_key_free): Rename range-for variable.
3690 * probe.c (parse_probes_in_pspace, find_probes_in_objfile)
3691 (find_probe_by_pc, collect_probes): Rename range-for variable.
3692
c40c7bfc
YQ
36932017-10-16 Yao Qi <yao.qi@linaro.org>
3694
3695 * features/Makefile (XMLTOC): Remove tic6x-*.xml.
3696 * features/tic6x-c62x.c: Remove.
3697 * features/tic6x-c64x-linux.c: Remove.
3698 * features/tic6x-c64x.c: Remove.
3699 * features/tic6x-c64xp-linux.c: Remove.
3700 * features/tic6x-c64xp.c: Remove.
3701 * tic6x-linux-tdep.c (_initialize_tic6x_linux_tdep): Don't call
3702 initialize_tdesc_tic6x_*_linux functions.
3703 * tic6x-tdep.c (_initialize_tic6x_tdep): Don't call
3704 initialize_tdesc_tic6x_* functions.
3705
df27ae6a
YQ
37062017-10-16 Yao Qi <yao.qi@linaro.org>
3707
3708 * features/Makefile (WHICH): Remove tic6x-c64xp, tic6x-c64x
3709 tic6x-c62x.
3710 * regformats/tic6x-c62x.dat: Remove.
3711 * regformats/tic6x-c64x.dat: Remove.
3712 * regformats/tic6x-c64xp.dat: Remove.
3713
86766165
SM
37142017-10-15 Simon Marchi <simon.marchi@ericsson.com>
3715
3716 * tracepoint.c (parse_traceframe_info): Return a unique_ptr
3717 (the !HAVE_LIBEXPAT version).
3718
824dfcc3
SM
37192017-10-14 Simon Marchi <simon.marchi@ericsson.com>
3720
3721 * nat/linux-osdata.c (struct pid_pgid_entry) <operator<>: Make
3722 const.
3723
2098b393
SM
37242017-10-14 Simon Marchi <simon.marchi@polymtl.ca>
3725
3726 * target.h: Include tracepoint.h.
3727 (enum trace_find_type): Move to tracepoint.h.
3728 (struct target_ops) <to_traceframe_info>: Return a unique ptr.
3729 * tracepoint.h: Don't include target.h
3730 (enum trace_find_type): Move from target.h.
3731 (parse_traceframe_info): Return a unique ptr.
3732 * tracepoint.c (current_traceframe_info): Change type to unique
3733 ptr.
3734 (free_traceframe_info): Remove.
3735 (clear_traceframe_info): Don't manually free
3736 current_traceframe_info.
3737 (free_result): Remove.
3738 (parse_traceframe_info): Return a unique ptr.
3739 (get_traceframe_info): Adjust to unique ptr.
3740 * ctf.c (ctf_traceframe_info): Return a unique ptr.
3741 * remote.c (remote_traceframe_info): Return a unique ptr.
3742 * tracefile-tfile.c (tfile_traceframe_info): Return a unique
3743 ptr.
3744 * target-debug.h (target_debug_print_traceframe_info_up): New
3745 macro.
3746 * target-delegates.c: Regenerate.
3747
4cdd21a8
SM
37482017-10-14 Simon Marchi <simon.marchi@polymtl.ca>
3749
3750 * memrange.h (struct mem_range): Add constructors.
3751 * tracepoint.h (struct traceframe_info) <memory>: Change type to
3752 std::vector<mem_range>.
3753 * tracepoint.c (free_traceframe_info): Don't manually free
3754 vector.
3755 (traceframe_info_start_memory): Adjust to vector change.
3756 (traceframe_available_memory): Likewise.
3757 * tracefile-tfile.c (build_traceframe_info): Likewise.
3758 * ctf.c (ctf_traceframe_info): Likewise.
3759
d0d292a2
SM
37602017-10-14 Simon Marchi <simon.marchi@polymtl.ca>
3761
3762 * tracepoint.h (struct traceframe_info) <tvars>: Change type to
3763 std::vector<int>.
3764 * tracepoint.c (free_traceframe_info): Deallocate with delete.
3765 (traceframe_info_start_tvar): Adjust to vector change.
3766 (parse_traceframe_info): Allocate with new.
3767 * ctf.c (ctf_traceframe_info): Allocate with new, adjust to
3768 vector change.
3769 * tracefile-tfile.c (build_traceframe_info): Adjust to vector
3770 change.
3771 tfile_traceframe_info): Allocate with new.
3772 * mi/mi-main.c (mi_cmd_trace_frame_collected): Adjust to vector
3773 change.
3774
8d3c73ef
SM
37752017-10-14 Simon Marchi <simon.marchi@polymtl.ca>
3776
3777 * tracepoint.c (traceframe_info): Rename to...
3778 (current_traceframe_info): ...this.
3779 (clear_traceframe_info): Adjust.
3780 (get_traceframe_info): Adjust.
3781
b129dcac
SM
37822017-10-14 Simon Marchi <simon.marchi@ericsson.com>
3783
3784 * nat/linux-osdata.c: Include algorithm.
3785 (compare_processes): Remove.
3786 (struct pid_pgid_entry): New struct.
3787 (linux_xfer_osdata_processgroups): Use std::vector instead of
3788 XNEWVEC.
3789
af5bf4ad
SM
37902017-10-14 Simon Marchi <simon.marchi@ericsson.com>
3791
3792 * objfiles.h: Don't include symfile.h.
3793 (struct partial_symbol): Remove forward-declaration.
3794 (struct objfile) <global_psymbols, static_psymbols>: Change type
3795 to std::vector<partial_symbol *>.
3796 * objfiles.c (objfile::objfile): Don't memset those fields.
3797 (objfile::~objfile): Don't free those fields.
3798 * psympriv.h (struct psymbol_allocation_list): Remove
3799 forward-declaration.
3800 (add_psymbol_to_list): Change psymbol_allocation_list parameter
3801 to std::vector.
3802 (start_psymtab_common): Change parameters to std::vector.
3803 * psymtab.c: Include algorithm.
3804 (require_partial_symbols): Call shrink_to_fit.
3805 (find_pc_sect_psymbol): Adjust to vector change.
3806 (match_partial_symbol): Likewise.
3807 (lookup_partial_symbol): Likewise.
3808 (psym_relocate): Likewise.
3809 (dump_psymtab): Likewise.
3810 (recursively_search_psymtabs): Likewise.
3811 (compare_psymbols): Remove.
3812 (sort_pst_symbols): Adjust to vector change.
3813 (start_psymtab_common): Likewise.
3814 (end_psymtab_common): Likewise.
3815 (psymbol_bcache_full): De-constify return value.
3816 (add_psymbol_to_bcache): Likewise.
3817 (extend_psymbol_list): Remove.
3818 (append_psymbol_to_list): Adjust to vector change.
3819 (add_psymbol_to_list): Likewise.
3820 (init_psymbol_list): Likewise.
3821 (maintenance_info_psymtabs): Likewise.
3822 (maintenance_check_psymtabs): Likewise.
3823 * symfile.h (struct psymbol_allocation_list): Remove.
3824 * symfile.c (reread_symbols): Adjust to vector change.
3825 * dbxread.c (start_psymtab): Change type of parameters.
3826 (dbx_symfile_read): Adjust to vector change.
3827 (read_dbx_symtab): Likewise.
3828 (start_psymtab): Change type of parameters.
3829 * dwarf2read.c (dwarf2_build_psymtabs): Adjust to vector change.
3830 (create_partial_symtab): Likewise.
3831 (add_partial_symbol): Likewise.
3832 (write_one_signatured_type): Likewise.
3833 (recursively_write_psymbols): Likewise.
3834 * mdebugread.c (parse_partial_symbols): Likewise.
3835 * xcoffread.c (xcoff_start_psymtab): Change type of parameters.
3836 (scan_xcoff_symtab): Adjust to vector change.
3837 (xcoff_initial_scan): Likewise.
3838
3ec5942f
SM
38392017-10-13 Simon Marchi <simon.marchi@ericsson.com>
3840
3841 * ada-typeprint.c (print_dynamic_range_bound): Use std::string.
3842
2399fe6a
YQ
38432017-10-13 Yao Qi <yao.qi@linaro.org>
3844
3845 * features/Makefile: Remove tic6x-*-expedite, add tic6x-expedite.
3846 Remove s390x-*-expedite, add s390x-expedite.
3847
4bf3f4a8
YQ
38482017-10-13 Yao Qi <yao.qi@linaro.org>
3849
3850 * features/s390-gs-linux64.c: Regenerated.
3851 * features/s390x-gs-linux64.c: Regenerated.
3852
9e86da07
TT
38532017-10-13 Tom Tromey <tom@tromey.com>
3854
3855 * compile/compile-object-run.c (do_module_cleanup): Use delete.
3856 * solib.c (update_solib_list, reload_shared_libraries_1): Use
3857 delete.
3858 * symfile.c (symbol_file_add_with_addrs): Use new.
3859 (symbol_file_add_separate): Update comment.
3860 (syms_from_objfile_1, remove_symbol_file_command): Use delete.
3861 * jit.c (jit_object_close_impl): Use new.
3862 (jit_unregister_code): Use delete.
3863 * objfiles.c (objfile::objfile): Rename from allocate_objfile.
3864 (~objfile): Rename from free_objfile.
3865 (free_objfile_separate_debug, do_free_objfile_cleanup)
3866 (free_all_objfiles, objfile_purge_solibs): Use delete.
3867 * objfiles.h (struct objfile): Add constructor and destructor.
3868 Use DISABLE_COPY_AND_ASSIGN. Add initializers to data members.
3869 (allocate_objfile, free_objfile): Don't declare.
3870 (struct objstats): Add initializers.
3871
c2508e90
SM
38722017-10-12 Simon Marchi <simon.marchi@ericsson.com>
3873
3874 * arch-utils.h (simple_displaced_step_copy_insn): Remove.
3875 * arch-utils.c (simple_displaced_step_copy_insn): Remove.
3876 * gdbarch.sh (displaced_step_copy_insn): Adjust comment.
3877 * gdbarch.h: Regenerate.
3878 * i386-linux-tdep.c (i386_linux_displaced_step_copy_insn):
3879 Adjust comment.
3880 * i386-tdep.c (i386_displaced_step_copy_insn): Adjust comment.
3881 (i386_displaced_step_fixup): Adjust comment.
3882 * rs6000-tdep.c (ppc_displaced_step_copy_insn): Adjust comment.
3883
a900ff72
TT
38842017-10-12 Tom Tromey <tom@tromey.com>
3885
3886 * prologue-value.h (pv_area::store_would_trash): Return bool.
3887 (pv_area::find_reg): Likewise.
3888 * prologue-value.c (pv_area::store_would_trash): Return bool.
3889 (pv_area::find_reg): Likewise.
3890
f7b7ed97
TT
38912017-10-12 Tom Tromey <tom@tromey.com>
3892
3893 * s390-linux-tdep.c (s390_store, s390_load)
3894 (s390_check_for_saved, s390_analyze_prologue): Update.
3895 * rx-tdep.c (check_for_saved, rx_analyze_prologue): Update.
3896 * rl78-tdep.c (rl78_analyze_prologue, check_for_saved): Update.
3897 * prologue-value.h (class pv_area): Move from prologue-value.c.
3898 Change names of members. Add constructor, destructor, member
3899 functions.
3900 (make_pv_area, free_pv_area, make_cleanup_free_pv_area)
3901 (pv_area_store, pv_area_fetch, pv_area_store_would_trash)
3902 (pv_area_fetch, pv_area_scan): Don't declare.
3903 * prologue-value.c (struct pv_area::area_entry): Now member of
3904 pv_area.
3905 (struct pv_area): Move to prologue-value.h.
3906 (pv_area::pv_area): Rename from make_pv_area.
3907 (pv_area::~pv_area): Rename from free_pv_area.
3908 (do_free_pv_area_cleanup, make_cleanup_free_pv_area): Remove.
3909 (clear_entries, find_entry, overlaps, store_would_trash, store)
3910 (fetch, find_reg, scan): Now member of pv_area.
3911 Remove "area" argument. Update.
3912 * msp430-tdep.c (check_for_saved, msp430_analyze_prologue):
3913 Update.
3914 * mn10300-tdep.c (push_reg, check_for_saved)
3915 (mn10300_analyze_prologue): Update.
3916 * mep-tdep.c (is_arg_spill, check_for_saved)
3917 (mep_analyze_prologue): Update.
3918 * m32c-tdep.c (m32c_pv_push, m32c_srcdest_fetch)
3919 (m32c_srcdest_store, m32c_pv_enter, m32c_is_arg_spill)
3920 (m32c_is_struct_return, m32c_analyze_prologue): Update.
3921 * arm-tdep.c (thumb_analyze_prologue, arm_analyze_prologue):
3922 Update.
3923 * arc-tdep.c (arc_is_in_prologue, arc_analyze_prologue): Update.
3924 * aarch64-tdep.c (aarch64_analyze_prologue): Update.
3925
466eecee
SM
39262017-10-12 Simon Marchi <simon.marchi@ericsson.com>
3927
3928 * linux-nat.h (linux_nat_set_delete_thread): New declaration.
3929 * linux-nat.c (linux_nat_delete_thread): New variable.
3930 (lwp_free): Invoke linux_nat_delete_thread if set.
3931 (linux_nat_set_delete_thread): New function.
3932 * aarch64-linux-nat.c (_initialize_aarch64_linux_nat): Assign
3933 thread delete callback.
3934 * arm-linux-nat.c (arm_linux_delete_thread): New function.
3935 (_initialize_arm_linux_nat): Assign thread delete callback.
3936 * s390-linux-nat.c (s390_delete_thread): New function.
3937 (_initialize_s390_nat): Assign thread delete callback.
3938 * x86-linux-nat.c (x86_linux_add_target): Likewise.
3939 * nat/aarch64-linux.c (aarch64_linux_delete_thread): New
3940 function.
3941 * nat/aarch64-linux.h (aarch64_linux_delete_thread): New
3942 declaration.
3943 * nat/x86-linux.c (x86_linux_delete_thread): New function.
3944 * nat/x86-linux.h (x86_linux_delete_thread): New declaration.
3945
f71c8822
TT
39462017-10-09 Tom Tromey <tom@tromey.com>
3947
3948 * tui/tui-win.c (tui_set_win_height, parse_scrolling_args): Use
3949 std::string.
3950 * tui/tui-layout.c (enum tui_status): Use std::string.
3951
981a3fb3
TT
39522017-10-11 Tom Tromey <tom@tromey.com>
3953
3954 * gdbthread.h (thread_command): Constify.
3955 * inferior.h (detach_command): Constify.
3956 * top.h (set_history, show_history): Constify.
3957 * arm-tdep.c (set_arm_command, show_arm_command): Constify.
3958 * serial.c (serial_set_cmd, serial_show_cmd): Constify.
3959 * bsd-kvm.c (bsd_kvm_cmd): Constify.
3960 * printcmd.c (set_command): Constify.
3961 (non_const_set_command): New function.
3962 * dcache.c (set_dcache_command, show_dcache_command): Constify.
3963 * breakpoint.c (enable_command, disable_command, delete_command)
3964 (catch_command, tcatch_command, set_breakpoint_cmd)
3965 (show_breakpoint_cmd): Constify.
3966 * macrocmd.c (macro_command): Constify.
3967 * infcmd.c (unset_command, kill_command, detach_command)
3968 (info_proc_cmd): Constify.
3969 * i386-tdep.c (set_mpx_cmd, show_mpx_cmd): Constify.
3970 * auto-load.c (show_auto_load_cmd, set_auto_load_cmd)
3971 (info_auto_load_cmd): Constify.
3972 * target-descriptions.c (set_tdesc_cmd, show_tdesc_cmd)
3973 (unset_tdesc_cmd): Constify.
3974 * ada-lang.c (set_ada_command, show_ada_command)
3975 (maint_set_ada_cmd, maint_show_ada_cmd): Constify.
3976 * guile/guile.c (set_guile_command, show_guile_command)
3977 (info_guile_command): Constify.
3978 * tui/tui-win.c (tui_command, set_tui_cmd, show_tui_cmd):
3979 Constify.
3980 * skip.c (skip_command): Constify.
3981 * compile/compile.c (_initialize_compile): Constify.
3982 * dwarf2read.c (set_dwarf_cmd, show_dwarf_cmd): Constify.
3983 * btrace.c (maint_btrace_cmd, maint_btrace_set_cmd)
3984 (maint_btrace_show_cmd, maint_btrace_pt_set_cmd)
3985 (maint_btrace_pt_show_cmd): Constify.
3986 * remote.c (set_remote_cmd, show_remote_cmd, remote_command):
3987 Constify.
3988 * python/python.c (user_show_python, user_set_python): Constify.
3989 * mips-tdep.c (set_mips_command, show_mips_command)
3990 (set_mipsfpu_command): Constify.
3991 * record-btrace.c (cmd_record_btrace_start)
3992 (cmd_set_record_btrace, cmd_show_record_btrace)
3993 (cmd_set_record_btrace_bts, cmd_show_record_btrace_bts)
3994 (cmd_set_record_btrace_pt, cmd_show_record_btrace_pt): Constify.
3995 * rs6000-tdep.c (set_powerpc_command, show_powerpc_command):
3996 Constify.
3997 * symfile.c (overlay_command): Constify.
3998 * spu-tdep.c (set_spu_command, show_spu_command): Constify.
3999 * cli/cli-logging.c (set_logging_command, show_logging_command):
4000 Constify.
4001 * cli/cli-dump.c (dump_command, append_command)
4002 (srec_dump_command, ihex_dump_command, verilog_dump_command)
4003 (tekhex_dump_command, binary_dump_command)
4004 (binary_append_command): Constify.
4005 * cli/cli-decode.c (struct cmd_list_element): Change type of
4006 "fun".
4007 * cli/cli-cmds.c (info_command, show_command, set_debug)
4008 (show_debug): Constify.
4009 (show_command): Add non-const overload.
4010 * top.c (set_history, show_history): Constify.
4011 * sh-tdep.c (set_sh_command, show_sh_command): Constify.
4012 * command.h (add_prefix_cmd): Accept a cmd_const_cfunc_ftype.
4013 * target.c (target_command): Constify.
4014 * sparc64-tdep.c (info_adi_command): Constify.
4015 * record-full.c (cmd_record_full_start): Constify.
4016 (set_record_full_command): Constify. Fix typo.
4017 (show_record_full_command): Constify.
4018 * thread.c (thread_command, thread_apply_command): Constify.
4019 * memattr.c (dummy_cmd): Constify.
4020 * value.c (function_command): Constify.
4021 * frame.c (set_backtrace_cmd, show_backtrace_cmd): Constify.
4022 * probe.c (info_probes_command): Constify.
4023 * ser-tcp.c (set_tcp_cmd, show_tcp_cmd): Constify.
4024 * gnu-nat.c (set_task_cmd, show_task_cmd, set_thread_cmd)
4025 (show_thread_cmd, set_thread_default_cmd)
4026 (show_thread_default_cmd): Constify.
4027 (check_empty): Constify.
4028 * tracepoint.c (tfind_command): Constify.
4029 * cp-support.c (maint_cplus_command): Constify.
4030 * windows-tdep.c (info_w32_command): Constify.
4031 * record.c (cmd_record_start, set_record_command)
4032 (show_record_command, info_record_command, cmd_record_goto):
4033 Constify.
4034 * ravenscar-thread.c (set_ravenscar_command)
4035 (show_ravenscar_command): Constify.
4036 * utils.c (set_internal_problem_cmd, show_internal_problem_cmd):
4037 Constify.
4038 (add_internal_problem_command): Remove casts.
4039 * arc-tdep.c (maintenance_print_arc_command): Constify.
4040 * valprint.c (set_print, show_print, set_print_raw)
4041 (show_print_raw): Constify.
4042 * maint.c (maintenance_command, maintenance_info_command)
4043 (maintenance_print_command, maintenance_set_cmd)
4044 (maintenance_show_cmd, set_per_command_cmd)
4045 (show_per_command_cmd, maintenance_check_command): Constify.
4046 * language.c (set_check, show_check): Constify.
4047 * typeprint.c (show_print_type, set_print_type): Constify.
4048 * go32-nat.c (go32_info_dos_command): Constify.
4049
fdf44873
TT
40502017-10-11 Tom Tromey <tom@tromey.com>
4051
4052 * breakpoint.c (prepare_re_set_context): Remove.
4053 (breakpoint_re_set_one): Update. Don't use cleanups.
4054 (breakpoint_re_set): Use scoped_restore, std::string, and
4055 scoped_restore_current_language.
4056
81b1e71c
TT
40572017-10-11 Tom Tromey <tom@tromey.com>
4058
4059 * breakpoint.c (commands_command_1): Use std::string.
4060 (cleanup_executing_breakpoints): Remove.
4061 (bpstat_do_actions_1): Use scoped_restore.
4062 (bpstat_check_watchpoint): Use std::string.
4063 (decode_static_tracepoint_spec): Likewise.
4064 (break_range_command): Likewise.
4065 (watch_command_1): Likewise.
4066 (compare_breakpoints): Change argument types.
4067 (clear_command): Use std::vector.
4068 (cleanup_executing_breakpoints): Remove.
4069 (update_global_location_list): Use unique_xmalloc_ptr.
4070 (strace_command): Remove unused declaration.
4071
4f9d9906
JB
40722017-10-11 John Baldwin <jhb@FreeBSD.org>
4073
4074 * Makefile.in (ALLDEPFILES): Add arm-fbsd-nat.c.
4075 * NEWS: Mention new FreeBSD/arm native configuration.
4076 * configure.host: Add arm*-*-freebsd*.
4077 * configure.nat: Likewise.
4078 * arm-fbsd-nat.c: New file.
4079
7176dfd2
JB
40802017-10-11 John Baldwin <jhb@FreeBSD.org>
4081
4082 * Makefile.in (ALL_TARGET_OBS): Add arm-fbsd-tdep.o.
4083 (ALLDEPFILES): Add arm-fbsd-tdep.c.
4084 * NEWS: Mention new FreeBSD/arm target.
4085 * configure.tgt: Add arm*-*-freebsd*.
4086 * arm-fbsd-tdep.c: New file.
4087 * arm-fbsd-tdep.h: New file.
4088
fe220226
MR
40892017-10-11 Maciej W. Rozycki <macro@imgtec.com>
4090
4091 * linux-tdep.c (linux_make_corefile_notes): Remove call to
4092 `gdbarch_elfcore_write_linux_prpsinfo'.
4093 * gdbarch.sh (elfcore_write_linux_prpsinfo): Remove architecture
4094 method.
4095 (elf_internal_linux_prpsinfo): Remove declaration.
4096 * gdbarch.h: Regenerate.
4097 * gdbarch.c: Regenerate.
4098
a2f63b2e
MR
40992017-10-11 Maciej W. Rozycki <macro@imgtec.com>
4100
4101 * ppc-linux-tdep.c (ppc_linux_init_abi): Remove call to
4102 `set_gdbarch_elfcore_write_linux_prpsinfo'.
4103
458ca1d0
PA
41042017-10-11 Pedro Alves <palves@redhat.com>
4105
4106 * breakpoint.c (reattach_breakpoints): Delete.
4107 * breakpoint.h (reattach_breakpoints): Delete.
4108
905014d7
SM
41092017-10-11 Simon Marchi <simon.marchi@ericsson.com>
4110
4111 * symfile.c (registered_sym_fns): Make struct, not typedef.
4112 (DEF_VEC_O (registered_sym_fns)): Remove.
4113 (symtab_fns): Change type to std::vector.
4114 (add_symtab_fns): Adjust.
4115 (find_sym_fns): Adjust.
4116
56d704da
AK
41172017-10-11 Anton Kolesov <Anton.Kolesov@synopsys.com>
4118
4119 * arc-tdep.c (arc_gdbarch_init): Pass proper cpu value to disassembler.
4120 * arc-tdep.h (arc_arch_is_em): New function.
4121 (arc_arch_is_hs): Likewise.
4122
7fa29be9
EB
41232017-10-11 Egeyar Bagcioglu <egeyar.bagcioglu@oracle.com>
4124
4125 * macrotab.h (macro_lookup_inclusion): Remove unnecessary
4126 parentheses in the declaration.
4127 (macro_lookup_inclusion): Likewise.
4128 (macro_lookup_definition): Likewise.
4129 * p-lang.h (pascal_builtin_types): Likewise.
4130 * tui/tui-data.c (tui_win_list): Likewise.
4131 * tui/tui-data.h (tui_win_list): Likewise.
4132 * utils.h (make_cleanup_free_section_addr_info): Likewise.
4133
d9b477e3
KB
41342017-10-11 Mark Rages <markrages@gmail.com>
4135
4136 * target-memory.c (block_boundaries): Fix for block address not
4137 aligned on block size.
4138
65630365
PA
41392017-10-10 Pedro Alves <palves@redhat.com>
4140 Tom Tromey <tom@tromey.com>
4141
4142 * breakpoint.c (struct captured_breakpoint_query_args)
4143 (do_captured_breakpoint_query, gdb_breakpoint_query): Delete.
4144 (print_breakpoint): New.
4145 * breakpoint.h (print_breakpoint): Declare.
4146 * common/common-exceptions.h (enum return_reason): Remove
4147 references to catch_exceptions.
4148 * exceptions.c (catch_exceptions, catch_exceptions_with_msg):
4149 Delete.
4150 * exceptions.h (catch_exceptions_ftype, catch_exceptions)
4151 (catch_exception_ftype, catch_exceptions_with_msg): Delete.
4152 * gdb.h: Delete.
4153 * gdbthread.h (thread_select): Declare.
4154 * mi/mi-cmd-break.c: Don't include gdb.h.
4155 (breakpoint_notify): Use print_breakpoint.
4156 * mi/mi-cmd-catch.c: Don't include gdb.h.
4157 * mi/mi-interp.c: Don't include gdb.h.
4158 (mi_print_breakpoint_for_event): New.
4159 (mi_breakpoint_created, mi_breakpoint_modified): Use
4160 mi_print_breakpoint_for_event.
4161 * mi/mi-main.c: Don't include gdb.h.
4162 (mi_cmd_thread_select): Parse the global thread ID here. Use
4163 thread_select instead of gdb_thread_select.
4164 (mi_cmd_thread_list_ids): Output "thread-ids" tuple here instead
4165 of using gdb_list_thread_ids.
4166 * remote-fileio.c (do_remote_fileio_request): Change type. Reply
4167 FILEIO_ENOSYS here.
4168 (remote_fileio_request): Use TRY/CATCH instead of
4169 catch_exceptions.
4170 * symfile-mem.c (struct symbol_file_add_from_memory_args)
4171 (symbol_file_add_from_memory_wrapper): Delete.
4172 (add_vsyscall_page): Use TRY/CATCH instead of catch_exceptions.
4173 * thread.c: Don't include gdb.h.
4174 (do_captured_list_thread_ids, gdb_list_thread_ids): Delete.
4175 (thread_alive): Use thread_select.
4176 (do_captured_thread_select): Delete, parts salvaged as ...
4177 (thread_select): ... this new function.
4178 (gdb_thread_select): Delete.
4179
bf469271
PA
41802017-10-10 Pedro Alves <palves@redhat.com>
4181 Tom Tromey <tom@tromey.com>
4182
4183 * breakpoint.c (breakpoint_cond_eval): Change return type to bool
4184 and reverse logic.
4185 (WP_DELETED, WP_VALUE_CHANGED, WP_VALUE_NOT_CHANGED, WP_IGNORE):
4186 No longer macros. Instead ...
4187 (enum wp_check_result): They're now values of this new
4188 enumeration.
4189 (watchpoint_check): Change return type to wp_check_result and
4190 parameter type to bpstat.
4191 (bpstat_check_watchpoint): Use TRY/CATCH instead of catch_errors.
4192 (bpstat_check_breakpoint_conditions): Use TRY/CATCH instead of
4193 catch_errors. Reverse logic of watchpoint_check call.
4194 (breakpoint_re_set_one): Now returns void and takes a breakpoint
4195 pointer as parameter.
4196 (breakpoint_re_set): Use TRY/CATCH instead of catch_errors.
4197 * common/common-exceptions.c (throw_exception_sjlj): Update
4198 comments to avoid mentioning catch_errors.
4199 * exceptions.c (catch_errors): Delete.
4200 * exceptions.h: Update comments to avoid mentioning catch_errors.
4201 (catch_errors_ftype, catch_errors): Delete.
4202 * infrun.c (normal_stop): Use TRY/CATCH instead of catch_errors.
4203 (hook_stop_stub): Delete.
4204 (restore_selected_frame): Change return type to void, and
4205 parameter type to const frame_id &.
4206 (restore_infcall_control_state): Use TRY/CATCH instead of
4207 catch_errors.
4208 * main.c (captured_command_loop): Return void and remove
4209 parameter. Remove references to catch_errors.
4210 (captured_main): Use TRY/CATCH instead of catch_errors.
4211 * objc-lang.c (objc_submethod_helper_data)
4212 (find_objc_msgcall_submethod_helper): Delete.
4213 (find_objc_msgcall_submethod): Use TRY/CATCH instead of
4214 catch_errors.
4215 * record-full.c (record_full_message): Return void.
4216 (record_full_message_args, record_full_message_wrapper): Delete.
4217 (record_full_message_wrapper_safe): Return bool and use TRY/CATCH
4218 instead of catch_errors.
4219 * solib-aix.c (solib_aix_open_symbol_file_object): Change
4220 parameter type to int.
4221 * solib-darwin.c (open_symbol_file_object): Ditto.
4222 * solib-dsbt.c (open_symbol_file_object): Ditto.
4223 * solib-frv.c (open_symbol_file_object): Ditto.
4224 * solib-svr4.c (open_symbol_file_object): Ditto.
4225 * solib-target.c (solib_target_open_symbol_file_object): Ditto.
4226 * solib.c (update_solib_list): Use TRY/CATCH instead of
4227 catch_errors.
4228 * solist.h (struct target_so_ops) <open_symbol_file_object>:
4229 Change type.
4230 * symmisc.c (struct print_symbol_args): Remove.
4231 (dump_symtab_1): Use TRY/CATCH instead of catch_errors.
4232 (print_symbol): Change type.
4233 * windows-nat.c (handle_load_dll, handle_unload_dll): Return void
4234 and remove parameters.
4235 (catch_errors): New.
4236 (get_windows_debug_event): Adjust.
4237
1a56bfa5
TT
42382017-10-09 Tom Tromey <tom@tromey.com>
4239
4240 * mi/mi-main.c (free_splay_tree): Remove.
4241 (list_available_thread_groups): Use splay_tree_up.
4242 * common/gdb_splay_tree.h: New file.
4243
0c478e2d
TT
42442017-10-09 Tom Tromey <tom@tromey.com>
4245
4246 * mi/mi-main.c (do_nothing): Remove.
4247 (list_available_thread_groups): Update.
4248
cbd2b4e3
PA
42492017-10-09 Pedro Alves <palves@redhat.com>
4250
4251 * infrun.c (handle_inferior_event_1) <TARGET_WAITKIND_EXECD>: Skip
4252 reading registers when switching context.
4253
a181c0bf
JB
42542017-10-09 John Baldwin <jhb@FreeBSD.org>
4255
4256 * fbsd-nat.c (fbsd_siginfo_size): Use gdbarch_long_bit.
4257 (fbsd_convert_siginfo): Likewise.
4258 * fbsd-tdep.c (fbsd_core_xfer_siginfo): Likewise.
4259
6e66f753
SM
42602017-10-09 Simon Marchi <simon.marchi@polymtl.ca>
4261
4262 * configure.ac (try_guile_versions): Remove guile-2.2.
4263 * configure: Regenerate.
4264
890e9790
TT
42652017-10-09 Tom Tromey <tom@tromey.com>
4266
4267 * Makefile.in (COMPILE.post, POSTCOMPILE): Restore $(basename).
4268 (COMPILE.pre): Use $(CXX).
4269
109483d9
PA
42702017-10-09 Pedro Alves <palves@redhat.com>
4271
4272 * cp-support.c (cp_remove_params): Return a gdb::unique_xmalloc_ptr.
4273 Use bool.
4274 (overload_list_add_symbol): Adjust to use gdb::unique_xmalloc_ptr.
4275 * cp-support.h (cp_remove_params): Now returns a
4276 gdb::unique_xmalloc_ptr.
4277 * dwarf2read.c (find_slot_in_mapped_hash): Now returns bool.
4278 Adjust to cp_remove_params returning a gdb::unique_xmalloc_ptr.
4279 * psymtab.c (psymtab_search_name): Adjust to cp_remove_params
4280 returning a gdb::unique_xmalloc_ptr.
4281 (lookup_partial_symbol): Adjust to use gdb::unique_xmalloc_ptr.
4282 * stack.c (find_frame_funname): Adjust to cp_remove_params
4283 returning a gdb::unique_xmalloc_ptr.
4284
791afaa2
TT
42852017-10-08 Tom Tromey <tom@tromey.com>
4286
4287 * dwarf2read.c (dwarf2_get_dwz_file): Use
4288 gdb::unique_xmalloc_ptr.
4289 (find_slot_in_mapped_hash): Likewise.
4290 (dwarf2_physname): Likewise.
4291 (create_dwo_unit_in_dwp_v1): Use std::string.
4292 (create_dwo_unit_in_dwp_v2): Likewise.
4293 (lookup_dwo_cutu): Likewise.
4294 (inherit_abstract_dies): Use std::vector.
4295 (read_array_type): Likewise.
4296 (dwarf_decode_macros): Remove unused declaration.
4297 (unsigned_int_compar): Remove.
4298 (dwarf2_build_psymtabs_hard): Use scoped_restore.
4299 (psymtabs_addrmap_cleanup): Remove.
4300
30a9c02f
TT
43012017-10-08 Tom Tromey <tom@tromey.com>
4302
4303 * frame-unwind.c (frame_unwind_try_unwinder): Update.
4304 * frame.h (frame_cleanup_after_sniffer): Declare.
4305 (frame_prepare_for_sniffer): Return void.
4306 * frame.c (frame_cleanup_after_sniffer): No longer static. Change
4307 type of argument.
4308 (frame_prepare_for_sniffer): Return void.
4309
757325a3
TT
43102017-10-08 Tom Tromey <tom@tromey.com>
4311
4312 * utils.h (make_cleanup_value_free): Remove.
4313 * utils.c (do_value_free, struct cleanup): Remove.
4314 * dwarf2loc.c (dwarf2_evaluate_loc_desc_full) <DWARF_VALUE_STACK>:
4315 Use gdb_value_up.
4316 * value.h (struct value_deleter): New.
4317 (gdb_value_up): New typedef.
4318
b9c04fb2
TT
43192017-10-08 Tom Tromey <tom@tromey.com>
4320
4321 * symtab.c (free_search_symbols, do_free_search_symbols_cleanup)
4322 (make_cleanup_free_search_symbols): Remove.
4323 (search_symbols): Return std::vector.
4324 (symbol_search::compare_search_syms): Now member of
4325 symbol_search. Change arguments.
4326 (sort_search_symbols_remove_dups): Change arguments. Rewrite.
4327 (symtab_symbol_info, rbreak_command): Update.
4328 * symtab.h (struct symbol_search) <next>: Remove.
4329 Add constructors.
4330 (symbol_search::operator<): New function.
4331 (symbol_search::operator==): New function.
4332 (search_symbols): Remove std::vector.
4333 (free_search_symbols, make_cleanup_free_search_symbols): Remove.
4334 (symbol_search::compare_search_syms): Declare.
4335
0d28b0a5
YQ
43362017-10-06 Yao Qi <yao.qi@linaro.org>
4337
4338 * Makefile.in (ALL_64_TARGET_OBS): Replace aarch64-insn.o with
4339 arch/aarch64-insn.o.
4340 Remove one rule.
4341 * configure.tgt: Replace aarch64-insn.o with arch/aarch64-insn.o.
4342
71917808
YQ
43432017-10-06 Yao Qi <yao.qi@linaro.org>
4344
4345 * Makefile.in (ALL_TARGET_OBS): Replace arm.o, arm-get-next-pcs.o,
4346 and arm-linux.o with arch/arm.o, arch/arm-get-next-pcs.o and
4347 arch/arm-linux.o respectively.
4348 * configure.tgt: Likewise.
4349
2081b2b2
YQ
43502017-10-06 Yao Qi <yao.qi@linaro.org>
4351
4352 * Makefile.in (ALL_TARGET_OBS): Rename i386.o to arch/i386.o.
4353 * configure.tgt (i386_tobjs): Replace i386.o with arch/i386.o.
4354
a1b85d28
PA
43552017-10-06 Pedro Alves <palves@redhat.com>
4356
4357 * windows-nat.c: Include <algorithm>.
4358
d97987e2
YQ
43592017-10-06 Yao Qi <yao.qi@linaro.org>
4360
4361 * configure.tgt (i386_tobjs): New variable.
4362 (amd64_tobjs): New variable.
4363 Set $cpu_obs and $os_obs.
4364
f38307f5
YQ
43652017-10-06 Yao Qi <yao.qi@linaro.org>
4366
4367 * Makefile.in (CONFIG_SRC_SUBDIR): New.
4368 (ALL_64_TARGET_OBS): Replace amd64.o with arch/amd64.o.
4369 (clean): Remove object files and dependency files.
4370 (distclean): Remove the directory.
4371 * configure.ac: Invoke AC_CONFIG_COMMANDS.
4372 * configure: Re-generated.
4373 * configure.tgt: Replace amd64.o with arch/amd64.o.
4374
2f924de6
JM
43752017-10-05 Jose E. Marchesi <jose.marchesi@oracle.com>
4376
4377 PR build/22188
4378 * arm-tdep.c (arm_decode_misc_memhint_neon): Fix decoding of CPS
4379 and SETEND.
4380
2fd9d7ca
PA
43812017-10-05 Pedro Alves <palves@redhat.com>
4382
4383 * linux-nat.c (linux_child_follow_fork): When following the parent
4384 and detaching the child, consult the parent thread's architecture
4385 instead of the child's.
4386
d13b8493
UW
43872017-10-05 Ulrich Weigand <uweigand@de.ibm.com>
4388
4389 * ax.h: Do not include "doublest.h".
4390 (union agent_val): Remove.
4391
3b4b2f16
UW
43922017-10-05 Ulrich Weigand <uweigand@de.ibm.com>
4393
4394 * dfp.h (MAX_DECIMAL_STRING): Move to dfp.c.
4395 (decimal_to_string): Return std::string object.
4396 (decimal_from_string): Accept std::string object. Return bool.
4397 (decimal_from_integral, decimal_from_doublest): Remove.
4398 (decimal_from_longest): Add prototype.
4399 (decimal_from_ulongest): Likewise.
4400 (decimal_to_longest): Likewise.
4401 (decimal_from_doublest): Likewise.
4402 * dfp.c: Do not include "gdbtypes.h" or "value.h".
4403 (MAX_DECIMAL_STRING): Move here.
4404 (decimal_to_string): Return std::string object.
4405 (decimal_from_string): Accept std::string object. Return bool.
4406 (decimal_from_integral): Remove, replace by ...
4407 (decimal_from_longest, decimal_from_ulongest): ... these new functions.
4408 (decimal_to_longest): New function.
4409 (decimal_from_floating): Remove, replace by ...
4410 (decimal_from_doublest): ... this new function.
4411 (decimal_to_doublest): Update to new decimal_to_string interface.
4412
4413 * value.c (unpack_long): Use decimal_to_longest.
4414 * valops.c (value_cast): Use decimal_from_doublest instead of
4415 decimal_from_floating. Use decimal_from_[u]longest isntead of
4416 decimal_from_integral.
4417 * valarith.c (value_args_as_decimal): Likewise.
4418 * valprint.c (print_decimal_floating): Update to new
4419 decimal_to_string interface.
4420 * printcmd.c (printf_decfloat): Likewise.
4421 * c-exp.y (parse_number): Update to new decimal_from_string interface.
4422
1841ee5d
UW
44232017-10-05 Ulrich Weigand <uweigand@de.ibm.com>
4424
4425 * doublest.h: Do not include "floatformat.h". Remove stale comments.
4426 * gdbtypes.c: Include "floatformat.h".
4427 * value.c: Likewise.
4428 * m68k-tdep.c: Likewise.
4429
4430 * findvar.c: Do not include "floatformat.h".
4431 * amd64-darwin-tdep.c: Likewise.
4432 * arm-linux-tdep.c: Likewise.
4433 * i386-darwin-tdep.c: Likewise.
4434 * i387-tdep.c: Likewise.
4435 * m68k-linux-tdep.c: Likewise.
4436 * mep-tdep.c: Likewise.
4437 * mips-tdep.c: Likewise.
4438 * nios2-tdep.c: Likewise.
4439 * s390-linux-tdep.c: Likewise.
4440 * sparc-obsd-tdep.c: Likewise.
4441 * sparc-tdep.c: Likewise.
4442 * sparc64-tdep.c: Likewise.
4443 * spu-tdep.c: Likewise.
4444 * tic6x-tdep.c: Likewise.
4445 * tilegx-tdep.c: Likewise.
4446 * vax-tdep.c: Likewise.
4447 * xstormy16-tdep.c: Likewise.
4448 * xtensa-tdep.c: Likewise.
4449
4450 * top.c: Do not include "doublest.h".
4451 * aarch64-tdep.c: Likewise.
4452 * alpha-tdep.c: Likewise.
4453 * arm-linux-tdep.c: Likewise.
4454 * m68k-linux-tdep.c: Likewise.
4455 * tilegx-tdep.c: Likewise.
4456 * xstormy16-tdep.c: Likewise.
4457
a80a6471
JB
44582017-10-05 John Baldwin <jhb@FreeBSD.org>
4459
4460 * mips-fbsd-tdep.c (MIPS_INST_ADDIU_A0_SP_N32): Define.
4461 (mipsn32_fbsd_sigframe): Define.
4462 (mips_fbsd_init_abi): Install mipsn32_fbsd_sigframe unwinder
4463 for FreeBSD/mipsn32.
4464
12c4bd7f
JB
44652017-10-05 John Baldwin <jhb@FreeBSD.org>
4466
4467 * fbsd-tdep.c (fbsd_print_auxv_entry): Handle AT_EHDRFLAGS and
4468 AT_HWCAP.
4469
c91933e9
TG
44702017-10-05 Tristan Gingold <tgingold@free.fr>
4471
4472 * MAINTAINERS (Misc): Update my email address.
4473
5cd63fda
PA
44742017-10-04 Pedro Alves <palves@redhat.com>
4475
4476 * remote.c (get_remote_arch_state): New 'gdbarch' parameter. Use
4477 it instead of target_gdbarch.
4478 (get_remote_state, get_remote_packet_size): Adjust
4479 get_remote_arch_state calls, passing down target_gdbarch
4480 explicitly.
4481 (packet_reg_from_regnum, packet_reg_from_pnum): New parameter
4482 'gdbarch' and use it instead of target_gdbarch.
4483 (get_memory_packet_size): Adjust get_remote_arch_state calls,
4484 passing down target_gdbarch explicitly.
4485 (struct stop_reply) <arch>: New field.
4486 (remote_parse_stop_reply): Use the stopped thread's architecture,
4487 not the current inferior's. Save the architecture in the
4488 stop_reply.
4489 (process_stop_reply): Use the stop reply's architecture.
4490 (process_g_packet, remote_fetch_registers)
4491 (remote_prepare_to_store, store_registers_using_G)
4492 (remote_store_registers): Adjust get_remote_arch_state calls,
4493 using the regcache's architecture.
4494 (remote_get_trace_status): Adjust get_remote_arch_state calls,
4495 passing down target_gdbarch explicitly.
4496 * spu-multiarch.c (spu_thread_architecture): Defer to the target
4497 beneath instead of calling target_gdbarch.
4498 * target.c (default_thread_architecture): Use the specified
4499 inferior's architecture, instead of the current inferior's
4500 architecture (via target_gdbarch).
4501
ed4227b7
PA
45022017-10-04 Pedro Alves <palves@redhat.com>
4503
4504 * regcache.c (get_thread_arch_regcache): Remove null_ptid special
4505 case.
4506 (regcache_print): Handle !target_has_registers here instead.
4507
55b11ddf
PA
45082017-10-04 Pedro Alves <palves@redhat.com>
4509
4510 * frame.c (create_test_frame): Delete.
4511 * frame.h (create_test_frame): Delete.
4512 * gdbarch-selftests.c: Include gdbthread.h and target.h.
4513 (class regcache_test): Delete.
4514 (test_target_has_registers, test_target_has_stack)
4515 (test_target_has_memory, test_target_prepare_to_store)
4516 (test_target_store_registers): New functions.
4517 (test_target_ops): New class.
4518 (register_to_value_test): Error out if there's already a
4519 process_stratum (or higher) target pushed. Create a fuller mock
4520 environment, with mock target_ops, inferior, address space, thread
4521 and inferior_ptid.
4522 * progspace.c (struct address_space): Move to ...
4523 * progspace.h (struct address_space): ... here.
4524 * regcache.h (regcache::~regcache, regcache::raw_write)
4525 [GDB_SELF_TEST]: No longer virtual.
4526
4c71c105
SM
45272017-10-04 Simon Marchi <simon.marchi@ericsson.com>
4528
4529 * mi/mi-main.c (list_available_thread_groups): Reverse filter logic.
4530
73dcd72d
PA
45312017-10-04 Pedro Alves <palves@redhat.com>
4532
4533 * guile/scm-breakpoint.c (gdbscm_breakpoint_commands): Move code
4534 out of 'between TRY and CATCH'.
4535
44704526
PA
45362017-10-04 Pedro Alves <palves@redhat.com>
4537
4538 * cli/cli-cmds.c (complete_command): Add missing END_CATCH.
4539 * common/common-exceptions.h (TRY): Open an outermost scope.
4540 Expand intro comment.
4541 (CATCH): Reindent.
4542 (END_CATCH): Close the outermost scope.
4543 * completer.c (complete_line_internal): Add missing END_CATCH.
4544
bc3b087d
SDJ
45452017-10-04 Sergio Durigan Junior <sergiodj@redhat.com>
4546
4547 * NEWS (Changes since GDB 8.0): Add entry about new
4548 'set-cwd-on-gdbserver' feature.
4549 (New remote packets): Add entry for QSetWorkingDir.
4550 * common/common-inferior.h (set_inferior_cwd): New prototype.
4551 * infcmd.c (set_inferior_cwd): Remove "static".
4552 (show_cwd_command): Expand text to include remote debugging.
4553 * remote.c: Add PACKET_QSetWorkingDir.
4554 (remote_protocol_features) <QSetWorkingDir>: New entry for
4555 PACKET_QSetWorkingDir.
4556 (extended_remote_set_inferior_cwd): New function.
4557 (extended_remote_create_inferior): Call
4558 "extended_remote_set_inferior_cwd".
4559 (_initialize_remote): Call "add_packet_config_cmd" for
4560 QSetWorkingDir.
4561
d092c5a2
SDJ
45622017-10-04 Sergio Durigan Junior <sergiodj@redhat.com>
4563
4564 * NEWS (New commands): Mention "set/show cwd".
4565 * cli/cli-cmds.c (_initialize_cli_cmds): Mention "set cwd" on
4566 "cd" command's help text.
4567 * common/common-inferior.h (get_inferior_cwd): New prototype.
4568 * infcmd.c (inferior_cwd_scratch): New global variable.
4569 (set_inferior_cwd): New function.
4570 (get_inferior_cwd): Likewise.
4571 (set_cwd_command): Likewise.
4572 (show_cwd_command): Likewise.
4573 (_initialize_infcmd): Add "set/show cwd" commands.
4574 * inferior.h (class inferior) <cwd>: New field.
4575 * nat/fork-inferior.c: Include "gdb_tilde_expand.h".
4576 (fork_inferior): Change inferior's cwd before its execution.
4577 * windows-nat.c (windows_create_inferior): Pass inferior's cwd
4578 to CreateProcess.
4579
7da0a886
SDJ
45802017-10-04 Sergio Durigan Junior <sergiodj@redhat.com>
4581
4582 * Makefile.in (SFILES): Add gdb_tilde_expand.c.
4583 (HFILES_NO_SRCDIR): Add gdb_tilde_expand.h.
4584 (COMMON_OBS): Add gdb_tilde_expand.o.
4585 * common/gdb_tilde_expand.c: New file.
4586 * common/gdb_tilde_expand.h: Likewise.
4587
db8dd160
MR
45882017-10-03 Maciej W. Rozycki <macro@imgtec.com>
4589
4590 * gdbarch.sh (objfile): Remove duplicate declaration.
4591 * gdbarch.h: Regenerate.
4592
f8bfbf22
TT
45932017-10-03 Tom Tromey <tom@tromey.com>
4594
4595 * utils.c (internal_vproblem): Use string_vprintf.
4596
5178ed48
TT
45972017-10-03 Tom Tromey <tom@tromey.com>
4598
4599 * printcmd.c (info_symbol_command): Use std::string.
4600
8cff8730
TT
46012017-10-03 Tom Tromey <tom@tromey.com>
4602
4603 * top.c (gdb_safe_append_history): Use std::string.
4604
895b8f30
TT
46052017-10-03 Tom Tromey <tom@tromey.com>
4606
4607 * event-top.c (stdin_event_handler): Update.
4608 * main.c (captured_main_1): Update.
4609 * top.h (make_delete_ui_cleanup): Remove.
4610 (struct ui): Add constructor and destructor.
4611 (new_ui, delete_ui): Remove.
4612 * top.c (make_delete_ui_cleanup): Remove.
4613 (new_ui_command): Use std::unique_ptr.
4614 (delete_ui_cleanup): Remove.
4615 (ui::ui): Rename from new_ui. Update.
4616 (free_ui): Remove.
4617 (ui::~ui): Rename from delete_ui. Update.
4618
0efef640
TT
46192017-10-03 Tom Tromey <tom@tromey.com>
4620
4621 * symfile.c (load_progress): Use gdb::byte_vector.
4622
245ad7d3
TT
46232017-10-03 Tom Tromey <tom@tromey.com>
4624
4625 * mi/mi-main.c (mi_cmd_trace_frame_collected): Remove unused
4626 declaration.
4627 * printcmd.c (x_command): Remove unused declaration.
4628 * symfile.c (symbol_file_command): Remove unused declaration.
4629
e05550d7
TT
46302017-10-03 Tom Tromey <tom@tromey.com>
4631
4632 * utils.c (internal_vproblem): Use std::string.
4633 (defaulted_query): Likewise.
4634
b95de2b7
TT
46352017-10-03 Tom Tromey <tom@tromey.com>
4636
4637 * guile/scm-ports.c (ioscm_with_output_to_port_worker): Update.
4638 * top.c (execute_command_to_string): Update.
4639 * utils.c (make_cleanup_restore_page_info): Remove.
4640 (do_restore_page_info_cleanup): Remove.
4641 (set_batch_flag_and_restore_page_info):
4642 New.
4643 (make_cleanup_restore_page_info): Remove.
4644 (set_batch_flag_and_make_cleanup_restore_page_info): Remove.
4645 (~set_batch_flag_and_restore_page_info): New
4646 (make_cleanup_restore_uinteger): Remove.
4647 (make_cleanup_restore_integer): Remove.
4648 (struct restore_integer_closure): Remove.
4649 (restore_integer): Remove.
4650 * utils.h (struct set_batch_flag_and_restore_page_info): New
4651 class.
4652 (set_batch_flag_and_make_cleanup_restore_page_info): Remove.
4653 (make_cleanup_restore_page_info): Remove.
4654 (make_cleanup_restore_uinteger) Remove.
4655 (make_cleanup_restore_integer) Remove.
4656
07036511
TT
46572017-10-03 Tom Tromey <tom@tromey.com>
4658
4659 * record-full.h (record_full_gdb_operation_disable_set): Return
4660 scoped_restore_tmpl<int>.
4661 * infrun.c (adjust_pc_after_break): Update.
4662 (handle_signal_stop): Update.
4663 * record-full.c (record_full_gdb_operation_disable_set): Return
4664 scoped_restore_tmpl<int>.
4665 (record_full_wait_1, record_full_insert_breakpoint)
4666 (record_full_remove_breakpoint, record_full_save)
4667 (record_full_goto_insn): Update.
4668
45320ffa
TT
46692017-10-02 Tom Tromey <tom@tromey.com>
4670
4671 PR rust/22236:
4672 * rust-lang.c (rust_val_print_str): New function.
4673 (val_print_struct): Call it.
4674 (rust_subscript): Preserve name of slice type.
4675
b3e3859b
TT
46762017-10-02 Tom Tromey <tom@tromey.com>
4677
4678 * rust-lang.c (rust_subscript): Handle slices in
4679 EVAL_AVOID_SIDE_EFFECTS case.
4680
01af5e0d
TT
46812017-10-02 Tom Tromey <tom@tromey.com>
4682
4683 * rust-lang.c (rust_slice_type_p): Recognize &str as a slice type.
4684
888e3ddb
TT
46852017-10-02 Tom Tromey <tom@tromey.com>
4686
4687 * rust-lang.h (rust_slice_type): Add "extern".
4688
cc536b21
PA
46892017-10-02 Tom Tromey <tom@tromey.com>
4690 Pedro Alves <palves@redhat.com>
4691
4692 * ada-lang.h (ada_exc_info::operator<): Make const.
4693 (ada_exc_info::operator==): Make const.
4694 * ada-lang.c (ada_exc_info::operator<, ada_exc_info::operator==):
4695 Make const.
4696
386c8614
TT
46972017-09-29 Tom Tromey <tom@tromey.com>
4698
4699 * target.c (read_whatever_is_readable): Change type of "result".
4700 Update.
4701 (free_memory_read_result_vector): Remove.
4702 (read_memory_robust): Change return type. Update.
4703 * mi/mi-main.c (mi_cmd_data_read_memory_bytes): Update. Use
4704 bin2hex, std::string.
4705 * target.h (memory_read_result_s): Remove typedef.
4706 (free_memory_read_result_vector): Remove.
4707 (read_memory_robust): Return std::vector.
4708
789c4b5e
TT
47092017-09-29 Tom Tromey <tom@tromey.com>
4710
4711 * mi/mi-main.c (captured_mi_execute_command): Use scope_restore.
4712
ab816a27
TT
47132017-09-29 Tom Tromey <tom@tromey.com>
4714
4715 * mi/mi-cmd-info.c (mi_cmd_info_ada_exceptions): Update.
4716 * ada-lang.h (struct ada_exc_info): Remove typedef. Declare
4717 operator< and operator==.
4718 (ada_exceptions_list): Return a std::vector.
4719 * ada-lang.c (ada_exc_info::operator<): Rename from
4720 compare_ada_exception_info.
4721 (ada_exc_info::operator==): New.
4722 (sort_remove_dups_ada_exceptions_list): Change type of
4723 "exceptions".
4724 (ada_add_standard_exceptions, ada_add_exceptions_from_frame)
4725 (ada_add_global_exceptions): Likewise.
4726 (ada_exceptions_list_1): Return a std::vector.
4727 (ada_exceptions_list): Likewise.
4728
52f9abe4
TT
47292017-09-29 Tom Tromey <tom@tromey.com>
4730
4731 * mi/mi-main.c (struct print_one_inferior_data) <inferiors>: Now a
4732 'std::set *'.
4733 (print_one_inferior): Update.
4734 (free_vector_of_ints): Remove.
4735 (list_available_thread_groups): Change "ids" to std::set.
4736 (mi_cmd_list_thread_groups): Update.
4737 (struct collect_cores_data) <core>: Now a std::set.
4738 (collect_cores): Update.
4739 (unique): Remove.
4740 (print_one_inferior): Update.
4741
dcd5ddcc
TT
47422017-09-29 Tom Tromey <tom@tromey.com>
4743
4744 * mi/mi-main.c (mi_execute_cli_command): Use std::string.
4745 (mi_execute_async_cli_command): Likewise.
4746 (mi_cmd_trace_frame_collected): Use field_fmt.
4747
45d288cc
TT
47482017-09-29 Tom Tromey <tom@tromey.com>
4749
4750 * mi/mi-main.c (mi_cmd_data_write_memory_bytes): Use
4751 gdb::byte_vector.
4752
6afe2f4a
TT
47532017-09-29 Tom Tromey <tom@tromey.com>
4754
4755 * mi/mi-parse.c (mi_parse): Remove unused declaration.
4756
9813429a
TT
47572017-09-29 Tom Tromey <tom@tromey.com>
4758
4759 * mi/mi-cmd-disas.c (mi_cmd_disassemble): Don't copy "oarg".
4760
2d6960b4
TT
47612017-09-29 Tom Tromey <tom@tromey.com>
4762
4763 * varobj.h (varobj_gen_name): Return std::string.
4764 * varobj.c (varobj_gen_name): Return std::string.
4765 * mi/mi-cmd-var.c (mi_cmd_var_create): Use std::string.
4766 (mi_cmd_var_delete): Don't copy "name".
4767
784c453a
TT
47682017-09-29 Tom Tromey <tom@tromey.com>
4769
4770 * mi/mi-cmd-break.c (mi_argv_to_format): Return std::string.
4771 (mi_cmd_break_insert_1): Update.
4772
a9bc57b9
TT
47732017-09-29 Tom Tromey <tom@tromey.com>
4774
4775 * target.h (make_scoped_defer_target_commit_resume): Update.
4776 * target.c (make_scoped_defer_target_commit_resume): Rename from
4777 make_cleanup_defer_target_commit_resume. Return a
4778 scoped_restore.
4779 * infrun.c (proceed): Use make_scoped_defer_target_commit_resume.
4780
9754d8c4
TT
47812017-09-29 Tom Tromey <tom@tromey.com>
4782
4783 * main.c (captured_main_1): Remove unused declaration.
4784 * spu-multiarch.c (parse_spufs_run): Remove unused declaration.
4785
99ef965c
TT
47862017-09-29 Tom Tromey <tom@tromey.com>
4787
4788 * symtab.c (search_symbols): Remove unused outer cleanup.
4789 (make_source_files_completion_list): Remove unused declaration.
4790
42518ba7
TT
47912017-09-29 Tom Tromey <tom@tromey.com>
4792
4793 * mt-tdep.c (mt_push_dummy_call): Use gdb::byte_vector.
4794
726b2169
TT
47952017-09-29 Tom Tromey <tom@tromey.com>
4796
4797 * xstormy16-tdep.c (xstormy16_push_dummy_call): Use
4798 gdb::byte_vector.
4799
55b06432
TT
48002017-09-29 Tom Tromey <tom@tromey.com>
4801
4802 * complaints.c (vcomplaint): Use std::string.
4803
8abcee91
TT
48042017-09-29 Tom Tromey <tom@tromey.com>
4805
4806 * tracepoint.c (trace_variable_command): Use std::string.
4807 (encode_actions_1): Remove unused declarations.
4808 (create_tsv_from_upload): Use std::string.
4809
6ad94bc7
TT
48102017-09-29 Tom Tromey <tom@tromey.com>
4811
4812 * cp-support.c (gdb_demangle): Use std::string.
4813
2003f3d8
TT
48142017-09-29 Tom Tromey <tom@tromey.com>
4815
4816 * stack.c (parse_frame_specification): Use std::string
4817 (info_frame_command): Use gdb::unique_xmalloc_ptr.
4818
8f8accb5
TT
48192017-09-29 Tom Tromey <tom@tromey.com>
4820
4821 * tilegx-tdep.c (tilegx_push_dummy_call): Use gdb::byte_vector.
4822
200aa7b1
TT
48232017-09-29 Tom Tromey <tom@tromey.com>
4824
4825 * utils.c (vfprintf_maybe_filtered): Use std::string.
4826 (vfprintf_unfiltered): Likewise.
4827
606aae8a
TT
48282017-09-29 Tom Tromey <tom@tromey.com>
4829
4830 * event-top.c (top_level_prompt): Return std::string.
4831 (display_gdb_prompt): Update.
4832
bd413795
TT
48332017-09-29 Tom Tromey <tom@tromey.com>
4834
4835 * unittests/common-utils-selftests.c (format): New function.
4836 (string_vprintf_tests): New function.
4837 (_initialize_common_utils_selftests): Register new tests.
4838 * common/common-utils.c (string_vprintf): New function.
4839 * common/common-utils.h (string_vprintf): Declare.
4840
256642e8
PA
48412017-09-29 Pedro Alves <palves@redhat.com>
4842
4843 * common/rsp-low.c (unpack_varlen_hex): Constify.
4844 * common/rsp-low.h (unpack_varlen_hex): Constify.
4845 * linux-nat.c (linux_child_static_tracepoint_markers_by_strid):
4846 Constify.
4847 * remote.c (remote_set_permissions, read_ptid)
4848 (remote_current_thread, remote_get_threads_with_qthreadinfo)
4849 (remote_static_tracepoint_marker_at)
4850 (remote_static_tracepoint_markers_by_strid)
4851 (stop_reply_extract_thread, remote_parse_stop_reply): Constify.
4852 * tracepoint.c (parse_trace_status, parse_tracepoint_status)
4853 (parse_tracepoint_definition, parse_tsv_definition)
4854 (parse_static_tracepoint_marker_definition): Constify.
4855 * tracepoint.h (parse_static_tracepoint_marker_definition)
4856 (parse_trace_status, parse_tracepoint_status)
4857 (parse_tracepoint_definition, parse_tsv_definition): Constify.
4858
b6bb3468
PA
48592017-09-29 Pedro Alves <palves@redhat.com>
4860
4861 * remote.c (target_buf, target_buf_size): Delete.
4862 (remote_get_noisy_reply): Remove buf_p and sizeof_buf parameters.
4863 Use the connection's packet buffer instead.
4864 All callers adjusted.
4865 (_initialize_remote): Remove references to target_buf and
4866 target_buf_size.
4867
b2f8eb7a
PA
48682017-09-28 Pedro Alves <palves@redhat.com>
4869
4870 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
4871 unittests/common-utils-selftests.c.
4872 (SUBDIR_UNITTESTS_OBS): Add common-utils-selftests.o.
4873 (COMMON_OBS): Remove utils-selftests.o.
4874 * utils-selftests.c: Move to ...
4875 * unittests/common-utils-selftests.c: ... here and rename self
4876 test to "string_printf".
4877
08302ed2
DE
48782017-09-28 Alexander Shaposhnikov <alexander.v.shaposhnikov@gmail.com> (tiny patch)
4879
4880 * dwarf2read.c (open_and_init_dwp_file): Protect against dwp_file
4881 having NULL cus or tus.
4882
96a5a1d3
UW
48832017-09-27 Ulrich Weigand <uweigand@de.ibm.com>
4884
4885 * arm-tdep.c: (convert_from_extended): Remove.
4886 (convert_to_extended): Likewise.
4887 (arm_extract_return_value): Use convert_typed_floating.
4888 (arm_store_return_value): Likewise.
4889
4890 * sh-tdep.h (struct gdbarch_tdep): Add sh_littlebyte_bigword_type.
4891 * sh-tdep.c: Do not include "floatformat.h".
4892 (sh_littlebyte_bigword_type): New function.
4893 (sh_register_convert_to_virtual): Use convert_typed_floating.
4894 (sh_register_convert_to_raw): Likewise.
4895 * sh64-tdep.c: (struct gdbarch_tdep): Add sh_littlebyte_bigword_type.
4896 (sh64_littlebyte_bigword_type): New function.
4897 (sh64_extract_return_value): Use convert_typed_floating.
4898 (sh64_register_convert_to_virtual): Likewise.
4899 (sh64_register_convert_to_raw): Likewise.
4900
0db7851f
UW
49012017-09-27 Ulrich Weigand <uweigand@de.ibm.com>
4902
4903 * doublest.h (floatformat_from_type): Move to gdbtypes.h.
4904 * doublest.c (floatformat_from_type): Move to gdbtypes.c.
4905
4906 * gdbtypes.h (union type_specific): Make field floatformat hold
4907 just a single struct floatformat, not an array.
4908 (floatformat_from_type): Move here.
4909 * gdbtypes.c (floatformat_from_type): Move here. Update to
4910 changed TYPE_FLOATFORMAT definition.
4911 (verify_floatformat): Update to changed TYPE_FLOATFORMAT.
4912 (recursive_dump_type): Likewise.
4913 (init_float_type): Install correct floatformat for byte order.
4914 (arch_float_type): Likewise.
4915
77b7c781
UW
49162017-09-27 Ulrich Weigand <uweigand@de.ibm.com>
4917
4918 * gdbtypes.c (init_type): Change incoming argument from
4919 length-in-bytes to length-in-bits. Assert length is a
4920 multiple of TARGET_CHAR_BITS.
4921 (arch_type, arch_flags_type): Likewise.
4922 (init_integer_type): Update call to init_type.
4923 (init_character_type): Likewise.
4924 (init_boolean_type): Likewise.
4925 (init_float_type): Likewise.
4926 (init_decfloat_type): Likewise.
4927 (init_complex_type): Likewise.
4928 (init_pointer_type): Likewise.
4929 (objfile_type): Likewise.
4930 (arch_integer_type): Update call to arch_type.
4931 (arch_character_type): Likewise.
4932 (arch_boolean_type): Likewise.
4933 (arch_float_type): Likewise.
4934 (arch_decfloat_type): Likewise.
4935 (arch_complex_type): Likewise.
4936 (arch_pointer_type): Likewise.
4937 (gdbtypes_post_init): Likewise.
4938
4939 * dwarf2read.c (dwarf2_init_float_type): Update call to init_type.
4940 (read_base_type): Likewise.
4941 * mdebugread.c (basic_type): Likewise.
4942 * stabsread.c (dbx_init_float_type): Likewise.
4943 (rs6000_builtin_type): Likewise.
4944 (read_range_type): Likewise. Also, fix call to init_integer_type
4945 with erroneous length argument.
4946
4947 * ada-lang.c (ada_language_arch_info): Update call to arch_type.
4948 * d-lang.c (build_d_types): Likewise.
4949 * f-lang.c (build_fortran_types): Likewise.
4950 * go-lang.c (build_go_types): Likewise.
4951 * opencl-lang.c (build_opencl_types): Likewise.
4952 * jit.c (finalize_symtab): Likewise.
4953 * gnu-v3-abi.c (build_gdb_vtable_type): Likewise.
4954 (build_std_type_info_type): Likewise.
4955 * target-descriptions.c (tdesc_gdb_type): Likewise. Also,
4956 update call to arch_flags_type.
4957
4958 * linux-tdep.c (linux_get_siginfo_type_with_fields): Update call to
4959 arch_type.
4960 * fbsd-tdep.c (fbsd_get_siginfo_type): Likewise.
4961 * windows-tdep.c (windows_get_tlb_type): Likewise.
4962
4963 * avr-tdep.c (avr_gdbarch_init): Update call to arch_type.
4964 * ft32-tdep.c (ft32_gdbarch_init): Likewise.
4965 * m32c-tdep.c (make_types): Likewise.
4966 * rl78-tdep.c (rl78_gdbarch_init): Likewise.
4967 (rl78_psw_type): Update call to arch_flags_type.
4968 * m68k-tdep.c (m68k_ps_type): Update call to arch_flags_type.
4969 * rx-tdep.c (rx_psw_type): Likewise.
4970 (rx_fpsw_type): Likewise.
4971 * sparc-tdep.c (sparc_psr_type): Likewise.
4972 (sparc_fsr_type): Likewise.
4973 * sparc64-tdep.c (sparc64_pstate_type): Likewise.
4974 (sparc64_ccr_type): Likewise.
4975 (sparc64_fsr_type): Likewise.
4976 (sparc64_fprs_type): Likewise.
4977
f21b4d5c
TT
49782017-09-27 Tom Tromey <tom@tromey.com>
4979
4980 * findcmd.c (find_command): Constify.
4981
643c2ffa
TT
49822017-09-27 Tom Tromey <tom@tromey.com>
4983
4984 * ada-tasks.c (task_command_1, task_command): Constify.
4985
510e5e56
TT
49862017-09-27 Tom Tromey <tom@tromey.com>
4987
4988 * symtab.c (maintenance_print_symbol_cache)
4989 (maintenance_flush_symbol_cache)
4990 (maintenance_print_symbol_cache_statistics): Constify.
4991
e503b191
TT
49922017-09-27 Tom Tromey <tom@tromey.com>
4993
4994 * inferior.c (detach_inferior_command, kill_inferior_command)
4995 (inferior_command): Constify.
4996
4e001312
TT
49972017-09-27 Tom Tromey <tom@tromey.com>
4998
4999 * regcache.c (regcache_print, maintenance_print_registers)
5000 (maintenance_print_raw_registers)
5001 (maintenance_print_cooked_registers)
5002 (maintenance_print_register_groups)
5003 (maintenance_print_remote_registers): Constify.
5004
77763700
TT
50052017-09-27 Tom Tromey <tom@tromey.com>
5006
5007 * printcmd.c (map_display_numbers, undisplay_command)
5008 (enable_disable_display_command, enable_display_command)
5009 (disable_display_command): Constify.
5010
4495129a
TT
50112017-09-27 Tom Tromey <tom@tromey.com>
5012
5013 * breakpoint.h (delete_command): Don't declare.
5014 * breakpoint.c (delete_command, enable_once_command)
5015 (enable_count_command, enable_delete_command, breakpoint_1)
5016 (maintenance_info_breakpoints, stopin_command, stopat_command)
5017 (delete_command, delete_trace_command, save_breakpoints)
5018 (save_breakpoints_command, save_tracepoints_command): Constify.
5019
3088cf40
TT
50202017-09-27 Tom Tromey <tom@tromey.com>
5021
5022 * macrocmd.c (macro_expand_command, macro_expand_once_command)
5023 (skip_ws, extract_identifier, macro_define_command)
5024 (macro_undef_command, macro_list_command): Constify.
5025
69f476a3
TT
50262017-09-27 Tom Tromey <tom@tromey.com>
5027
5028 * infcmd.c (environment_info, set_environment_command)
5029 (unset_environment_command, path_info, info_proc_cmd_1)
5030 (info_proc_cmd_mappings, info_proc_cmd_stat)
5031 (info_proc_cmd_status, info_proc_cmd_cwd, info_proc_cmd_cmdline)
5032 (info_proc_cmd_exe, info_proc_cmd_all): Constify.
5033
c4a3e68e
TT
50342017-09-27 Tom Tromey <tom@tromey.com>
5035
5036 * i386-tdep.c (i386_mpx_info_bounds, i386_mpx_set_bounds):
5037 Constify.
5038
c9d31bd6
TT
50392017-09-27 Tom Tromey <tom@tromey.com>
5040
5041 * symfile-mem.c (add_symbol_file_from_memory_command): Constify.
5042
1f3f85eb
TT
50432017-09-27 Tom Tromey <tom@tromey.com>
5044
5045 * demangle.c (demangle_command): Constify.
5046
9c504b5d
TT
50472017-09-27 Tom Tromey <tom@tromey.com>
5048
5049 * progspace.c (maintenance_info_program_spaces_command):
5050 Constify.
5051
6663cf91
TT
50522017-09-27 Tom Tromey <tom@tromey.com>
5053
5054 * compile/compile.c (check_raw_argument, compile_file_command)
5055 (compile_code_command, compile_print_command): Constify.
5056
34e5fa26
TT
50572017-09-27 Tom Tromey <tom@tromey.com>
5058
5059 * reggroups.c (maintenance_print_reggroups): Constify.
5060
8384c356
TT
50612017-09-27 Tom Tromey <tom@tromey.com>
5062
5063 * dwarf2read.c (save_gdb_index_command): Constify.
5064
884beb0c
TT
50652017-09-27 Tom Tromey <tom@tromey.com>
5066
5067 * stap-probe.c (info_probes_stap_command): Constify.
5068
e0b2930c
TT
50692017-09-27 Tom Tromey <tom@tromey.com>
5070
5071 * fork-child.c (unset_exec_wrapper_command): Constify.
5072
f938677d
TT
50732017-09-27 Tom Tromey <tom@tromey.com>
5074
5075 * btrace.c (get_uint, get_context_size, no_chunk)
5076 (maint_btrace_packet_history_cmd)
5077 (maint_btrace_clear_packet_history_cmd, maint_btrace_clear_cmd)
5078 (maint_info_btrace_cmd): Constify.
5079
8949cb87
TT
50802017-09-27 Tom Tromey <tom@tromey.com>
5081
5082 * reverse.c (delete_bookmark_command): Constify.
5083
ac88e2de
TT
50842017-09-27 Tom Tromey <tom@tromey.com>
5085
5086 * remote.c (set_memory_packet_size)
5087 (set_memory_write_packet_size, show_memory_write_packet_size)
5088 (set_memory_read_packet_size, show_memory_read_packet_size)
5089 (compare_sections_command, packet_command, remote_put_command)
5090 (remote_get_command, remote_delete_command): Constify.
5091
bd4c9dfe
TT
50922017-09-27 Tom Tromey <tom@tromey.com>
5093
5094 * mips-tdep.c (show_mipsfpu_command, set_mipsfpu_single_command)
5095 (set_mipsfpu_double_command, set_mipsfpu_none_command)
5096 (set_mipsfpu_auto_command): Constify.
5097
5e93d4c6
TT
50982017-09-27 Tom Tromey <tom@tromey.com>
5099
5100 * cli/cli-cmds.h (cd_command): Constify.
5101 * cli/cli-cmds.c (cd_command): Constify.
5102
fc41a75b
TT
51032017-09-27 Tom Tromey <tom@tromey.com>
5104
5105 * thread.c (thread_name_command, thread_find_command): Constify.
5106
67810076
TT
51072017-09-27 Tom Tromey <tom@tromey.com>
5108
5109 * probe.c (enable_probes_command, disable_probes_command):
5110 Constify.
5111
1d8b34a7
TT
51122017-09-27 Tom Tromey <tom@tromey.com>
5113
5114 * symfile.c (symbol_file_command): Constify.
5115 * gdbcore.h (deprecated_file_changed_hook): Constify.
5116 * exec.c (deprecated_file_changed_hook, exec_file_command)
5117 (file_command): Constify.
5118 * defs.h (symbol_file_command): Constify.
5119
442019e1
TT
51202017-09-27 Tom Tromey <tom@tromey.com>
5121
5122 * remote-fileio.c (set_system_call_allowed)
5123 (show_system_call_allowed): Constify.
5124
2983f7cb
TT
51252017-09-27 Tom Tromey <tom@tromey.com>
5126
5127 * tracepoint.c (delete_trace_variable_command)
5128 (tfind_end_command, tfind_start_command, tfind_pc_command)
5129 (tfind_tracepoint_command, tfind_line_command)
5130 (tfind_range_command, tfind_outside_command): Constify.
5131
4fd41b24
TT
51322017-09-27 Tom Tromey <tom@tromey.com>
5133
5134 * ax-gdb.c (maint_agent_printf_command, agent_command)
5135 (agent_eval_command): Constify.
5136
f2fc3015
TT
51372017-09-27 Tom Tromey <tom@tromey.com>
5138
5139 * tracepoint.c (info_scope_command): Constify.
5140 * python/python.c (gdbpy_decode_line): Constify.
5141 * python/py-breakpoint.c (bppy_init): Constify.
5142 * mi/mi-cmd-break.c (mi_cmd_break_insert_1): Constify.
5143 * location.h: (new_linespec_location)
5144 (string_to_event_location_basic, string_to_event_location):
5145 Constify.
5146 * location.c (new_linespec_location)
5147 (string_to_event_location_basic, string_to_event_location):
5148 Constify.
5149 * linespec.h (decode_line_with_current_source)
5150 (decode_line_with_last_displayed, linespec_lex_to_end): Constify.
5151 * linespec.c (linespec_lex_to_end)
5152 (decode_line_with_current_source)
5153 (decode_line_with_last_displayed): Constify.
5154 * guile/scm-breakpoint.c (gdbscm_register_breakpoint_x):
5155 Constify.
5156 * cli/cli-cmds.c (edit_command, list_command): Constify.
5157 * breakpoint.h (until_break_command, watch_command_wrapper)
5158 (awatch_command_wrapper, rwatch_command_wrapper)
5159 (init_ada_exception_breakpoint): Constify.
5160 * breakpoint.c (break_command_1, dprintf_command)
5161 (break_range_command, watch_command_wrapper)
5162 (rwatch_command_wrapper, awatch_command_wrapper)
5163 (until_break_command, init_ada_exception_breakpoint)
5164 (strace_marker_create_sals_from_location, trace_command)
5165 (ftrace_command, strace_command, struct tracepoint): Constify.
5166 * ax-gdb.c (agent_command_1): Constify.
5167 * ada-lang.c (ada_exception_sal): Constify.
5168
8c2f95f4
TT
51692017-09-27 Tom Tromey <tom@tromey.com>
5170
5171 * record.c (cmd_record_delete, cmd_record_stop, cmd_record_save)
5172 (cmd_record_goto_begin, cmd_record_goto_end, get_insn_number)
5173 (get_context_size, no_chunk, get_insn_history_modifiers)
5174 (cmd_record_insn_history, get_call_history_modifiers)
5175 (cmd_record_call_history): Constify.
5176
a0d65762
TT
51772017-09-27 Tom Tromey <tom@tromey.com>
5178
5179 * source.c (show_substitute_path_command)
5180 (unset_substitute_path_command, set_substitute_path_command):
5181 Constify.
5182
58971144
TT
51832017-09-27 Tom Tromey <tom@tromey.com>
5184
5185 * typeprint.c (maintenance_print_type): Constify.
5186 * maint.c (maintenance_dump_me, maintenance_demangle)
5187 (maintenance_time_display, maintenance_info_sections)
5188 (maintenance_print_statistics, maintenance_deprecate)
5189 (maintenance_undeprecate): Constify.
5190 (maintenance_do_deprecate): Constify. Use std::string.
5191 (maintenance_selftest): Constify.
5192 * gdbtypes.h (maintenance_print_type): Constify.
5193
c482f52c
TT
51942017-09-27 Tom Tromey <tom@tromey.com>
5195
5196 * hppa-tdep.c (unwind_command): Constify.
5197
e100df1a
TT
51982017-09-27 Tom Tromey <tom@tromey.com>
5199
5200 * target-descriptions.c (unset_tdesc_filename_cmd)
5201 (maint_print_c_tdesc_cmd, maintenance_check_xml_descriptions):
5202 Constify.
5203
31d56ade
TT
52042017-09-27 Tom Tromey <tom@tromey.com>
5205
5206 * dummy-frame.c (maintenance_print_dummy_frames): Constify.
5207
b961da0b
TT
52082017-09-27 Tom Tromey <tom@tromey.com>
5209
5210 * tui/tui.c (tui_enable_command, tui_disable_command): Constify.
5211
e2d8ae16
TT
52122017-09-27 Tom Tromey <tom@tromey.com>
5213
5214 * tui/tui-regs.c (tui_reg_command): Constify.
5215
863779b0
TT
52162017-09-27 Tom Tromey <tom@tromey.com>
5217
5218 * skip.c (skip_file_command, skip_function_command)
5219 (skip_enable_command, skip_disable_command, skip_delete_command):
5220 Constify.
5221
cdb34d4a
TT
52222017-09-27 Tom Tromey <tom@tromey.com>
5223
5224 * record-btrace.c (cmd_record_btrace_bts_start)
5225 (cmd_record_btrace_pt_start): Constify.
5226
e99c83e7
TT
52272017-09-27 Tom Tromey <tom@tromey.com>
5228
5229 * symmisc.c (maintenance_print_symbols)
5230 (maintenance_print_msymbols, maintenance_print_objfiles)
5231 (maintenance_info_symtabs, maintenance_check_symtabs)
5232 (maintenance_expand_symtabs, maintenance_info_line_tables):
5233 Constify.
5234
32faf971
TT
52352017-09-27 Tom Tromey <tom@tromey.com>
5236
5237 * top.c (new_ui_command): Constify.
5238
2cf311eb
TT
52392017-09-27 Tom Tromey <tom@tromey.com>
5240
5241 * symfile.c (add_symbol_file_command)
5242 (remove_symbol_file_command, list_overlays_command)
5243 (map_overlay_command, unmap_overlay_command)
5244 (overlay_auto_command, overlay_manual_command)
5245 (overlay_off_command, overlay_load_command): Constify.
5246
e6738699
TT
52472017-09-27 Tom Tromey <tom@tromey.com>
5248
5249 * spu-tdep.c (info_spu_event_command, info_spu_signal_command)
5250 (info_spu_mailbox_command, info_spu_dma_command)
5251 (info_spu_proxydma_command): Constify.
5252
aa360cd5
TT
52532017-09-27 Tom Tromey <tom@tromey.com>
5254
5255 * cli/cli-logging.c (set_logging_on, set_logging_off): Constify.
5256
898241a5
TT
52572017-09-27 Tom Tromey <tom@tromey.com>
5258
5259 * cli/cli-script.c (user_defined_command): Constify.
5260
2d0ac106
TT
52612017-09-27 Tom Tromey <tom@tromey.com>
5262
5263 * cli/cli-dump.c (dump_memory_command, dump_value_command)
5264 (dump_srec_memory, dump_srec_value, dump_ihex_memory)
5265 (dump_ihex_value, dump_verilog_memory, dump_verilog_value)
5266 (dump_tekhex_memory, dump_tekhex_value, dump_binary_memory)
5267 (dump_binary_value, append_binary_memory, append_binary_value):
5268 Constify.
5269 (struct dump_context) <func>: Constify.
5270 (add_dump_command): Update.
5271
dede02ce
TT
52722017-09-27 Tom Tromey <tom@tromey.com>
5273
5274 * cli/cli-cmds.c (show_version, show_configuration)
5275 (source_command, show_user): Constify.
5276
d3cb6b99
TT
52772017-09-27 Tom Tromey <tom@tromey.com>
5278
5279 * target.c (maintenance_print_target_stack): Constify.
5280
1970a12f
TT
52812017-09-27 Tom Tromey <tom@tromey.com>
5282
5283 * interps.c (interpreter_exec_cmd): Constify.
5284
41243651
TT
52852017-09-27 Tom Tromey <tom@tromey.com>
5286
5287 * record-full.c (cmd_record_full_restore): Constify.
5288
4465d9db
TT
52892017-09-27 Tom Tromey <tom@tromey.com>
5290
5291 * memattr.c (enable_mem_command, disable_mem_command)
5292 (delete_mem_command): Constify.
5293
ad25e423
TT
52942017-09-27 Tom Tromey <tom@tromey.com>
5295
5296 * value.c (show_convenience): Constify.
5297
d64097b1
TT
52982017-09-27 Tom Tromey <tom@tromey.com>
5299
5300 * gdbcore.h (core_file_command): Update.
5301 * corefile.c (core_file_command): Constify.
5302
4d4589ef
TT
53032017-09-27 Tom Tromey <tom@tromey.com>
5304
5305 * user-regs.c (maintenance_print_user_registers): Constify.
5306
32a7bf17
TT
53072017-09-27 Tom Tromey <tom@tromey.com>
5308
5309 * cp-namespace.c (maintenance_cplus_namespace): Constify.
5310
4a475551
TT
53112017-09-27 Tom Tromey <tom@tromey.com>
5312
5313 * cp-support.c (first_component_command): Constify.
5314
990b9f9f
TT
53152017-09-27 Tom Tromey <tom@tromey.com>
5316
5317 * psymtab.c (maintenance_print_psymbols)
5318 (maintenance_info_psymtabs, maintenance_check_psymtabs):
5319 Constify.
5320
c281872e
TT
53212017-09-27 Tom Tromey <tom@tromey.com>
5322
5323 * windows-tdep.c (display_tib): Constify.
5324
5b64bf74
TT
53252017-09-27 Tom Tromey <tom@tromey.com>
5326
5327 * linux-fork.c (delete_checkpoint_command)
5328 (detach_checkpoint_command): Constify.
5329
4ada038f
TT
53302017-09-27 Tom Tromey <tom@tromey.com>
5331
5332 * cp-abi.c (set_cp_abi_cmd, show_cp_abi_cmd): Constify.
5333
57f5a81b
TT
53342017-09-27 Tom Tromey <tom@tromey.com>
5335
5336 * arc-tdep.c (dump_arc_instruction_command): Constify.
5337
b0a8e6c4
TT
53382017-09-27 Tom Tromey <tom@tromey.com>
5339
5340 * valprint.c (set_radix, show_radix): Constify.
5341
8d97dc1c
TT
53422017-09-27 Tom Tromey <tom@tromey.com>
5343
5344 * dtrace-probe.c (info_probes_dtrace_command): Constify.
5345
eb7c454d
TT
53462017-09-27 Tom Tromey <tom@tromey.com>
5347
5348 * command.h (not_just_help_class_command): Update.
5349 * cli/cli-decode.h (not_just_help_class_command): Update.
5350 * cli/cli-decode.c (not_just_help_class_command): Constify.
5351
e4e33335
TT
53522017-09-27 Tom Tromey <tom@tromey.com>
5353
5354 * gdb_bfd.c (maintenance_info_bfds): Constify.
5355
0450cc4c
TT
53562017-09-27 Tom Tromey <tom@tromey.com>
5357
5358 * cli/cli-decode.c (add_cmd, set_cmd_cfunc): New function
5359 overloads.
5360 (do_add_cmd): Rename from add_cmd. Don't call set_cmd_cfunc.
5361 (do_const_cfunc): New function.
5362 (cmd_cfunc_eq): New overload.
5363 (cli_user_command_p): Check do_const_cfunc.
5364 * cli/cli-decode.h (struct cmd_list_element) <function>: New field
5365 const_cfunc.
5366 * command.h (add_cmd): Add const overload and no-function
5367 overload.
5368 (set_cmd_cfunc): Add const overload.
5369 (cmd_const_cfunc_ftype): Declare.
5370 (cmd_cfunc_eq): Add const overload.
5371 * breakpoint.c, cli-cmds.c, cli-dump.c, guile/scm-cmd.c,
5372 python/py-cmd.c, target.c, tracepoint.c: Use no-function add_cmd
5373 overload.
5374
a9bbfbd8
TT
53752017-09-27 Tom Tromey <tom@tromey.com>
5376
5377 * macroexp.c (get_next_token_for_substitution): New function.
5378 (substitute_args): Call it. Check for __VA_OPT__.
5379
5230b05a
WT
53802017-09-26 Walfred Tedeschi <walfred.tedeschi@intel.com>
5381 Pedro Alves <palves@redhat.com>
5382
5383 * dwarf2read.c (dwarf2_cu): Remove field producer_is_icc and add
5384 producer_is_icc_lt_14.
5385 (producer_is_icc_lt_14): New function.
5386 (check_producer): Add code for checking version of ICC.
5387 (producer_is_icc): Move to producer.c.
5388 (read_structure_type): Restrict ICC workaround to ICC<14.
5389 * producer.c: Include selftest.h.
5390 (producer_is_icc, producer_parsing_tests, _initialize_producer):
5391 New functions.
5392 * producer.h (producer_is_icc): New declaration.
5393
b32b108a
WT
53942017-09-26 Walfred Tedeschi <walfred.tedeschi@intel.com>
5395
5396 * Makefile.in (SFILES): Add producer.c.
5397 (COMMON_OBS): Add producer.o
5398 * amd64-tdep.c (producer.h): Add new include.
5399 * dwarf2read.c (producer.h): Add new include.
5400 * producer.c: New file.
5401 * producer.h: New file.
5402 * utils.c (producer_is_gcc, producer_is_gcc_ge_4): Move to
5403 producer.c.
5404 * utils.h (producer_is_gcc, producer_is_gcc_ge_4): Move to
5405 producer.h.
5406
5007d765
MK
54072017-09-26 Matthias Klose <doko@ubuntu.com>
5408
5409 * configure.ac: Search ncursesw before ncurses.
5410 Check ncursesw/ncurses.h before ncurses/ncurses.h.
5411 * gdb_curses.h: Include <ncursesw/ncurses.h>
5412 * config.in, configure: Regenerate.
5413
281c4447
RO
54142017-09-26 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
5415
5416 PR gdb/22185
5417 * configure.host <*-*-solaris2.[01], *-*-solaris2.[2-9]*>: Mark as
5418 obsolete.
5419 Use gdb_host sol2 for i[34567]86-*-solaris2*, x86_64-*-solaris2*.
5420 Remove i386sol2 support.
5421 * configure.nat <i386sol2>: Remove.
5422 <sol2-64>: Fold into ...
5423 <sol2>: ... this.
5424 Move common settings to default section.
5425 Add sol-thread.o.
5426 * configure.tgt <i[34567]86-*-solaris2.1[0-9]*,
5427 x86_64-*-solaris2.1[0-9]*>: Rename to ...
5428 <i[34567]86-*-solaris2*, x86_64-*-solaris2*>: ... this.
5429 <i[34567]86-*-solaris*>: Remove.
5430 <sparc-*-solaris2.[0-6], sparc-*-solaris2.[0-6].*>: Remove.
5431
5432 * configure.ac: Remove wctype in libw check.
5433 (_MSE_INT_H): Don't define on Solaris 7-9.
5434 <solaris*>: Remove libthread_db.so.1 check.
5435 * configure: Regenerate.
5436 * config.in: Regenerate.
5437
5438 * proc-service.c: Remove PROC_SERVICE_IS_OLD handling.
5439 (gdb_ps_prochandle_t, gdb_ps_read_buf_t, gdb_ps_write_buf_t)
5440 (gdb_ps_size_t): Remove.
5441 Use base types in users.
5442 * sol-thread.c: Likewise, also for gdb_ps_addr_t.
5443
5444 * NEWS (Changes since GDB 8.0): Document Solaris 2.0-9 removal.
5445
39b06c20
RO
54462017-09-26 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
5447
5448 PR build/22206
5449 * sparc64-tdep.c (adi_tag_fd): Print pid as long.
5450 (adi_is_addr_mapped): Likewise.
5451 (PSR_ICC): Don't redefine.
5452 (PSR_IMPL): Likewise.
5453
6c3e20f1
TT
54542017-09-25 Tom Tromey <tom@tromey.com>
5455
5456 * regcache.c (regcache::dump): Use string_printf.
5457
b292235f
TT
54582017-09-25 Tom Tromey <tom@tromey.com>
5459
5460 * regcache.c (class regcache_invalidator): New.
5461 (struct register_to_invalidate): Remove.
5462 (make_cleanup_regcache_invalidate): Remove.
5463 (regcache::raw_write): Use regcache_invalidator.
5464
9ac86b52
TT
54652017-09-25 Tom Tromey <tom@tromey.com>
5466
5467 * spu-tdep.c (spu2ppu_sniffer): Update.
5468 * regcache.h (make_cleanup_regcache_xfree): Don't declare.
5469 * regcache.c (do_regcache_xfree, make_cleanup_regcache_xfree):
5470 Remove.
5471 * ppc-linux-tdep.c (ppu2spu_sniffer): Update.
5472 * mi/mi-main.c (mi_cmd_data_list_changed_registers): Update.
5473 * frame.h (frame_save_as_regcache): Return std::unique_ptr.
5474 * frame.c (frame_save_as_regcache): Return std::unique_ptr.
5475 (frame_pop): Update.
5476
c0e383c6
TT
54772017-09-25 Tom Tromey <tom@tromey.com>
5478
5479 * spu-tdep.c (spu2ppu_dealloc_cache): Use delete.
5480 * regcache.h (regcache_xfree): Don't declare.
5481 * regcache.c (regcache_xfree): Remove.
5482 (do_regcache_xfree): Use delete.
5483 * ppc-linux-tdep.c (ppu2spu_dealloc_cache): Use delete.
5484 * linux-fork.c (free_fork): Use delete.
5485 (fork_save_infrun_state): Likewise.
5486 * jit.c (jit_dealloc_cache): Use delete.
5487 * infrun.c (discard_infcall_suspend_state): Use delete.
5488
791199cc
TT
54892017-09-25 Tom Tromey <tom@tromey.com>
5490
5491 * regcache.h (regcache_xmalloc): Don't declare.
5492 (regcache_raw_set_cached_value): Update comment.
5493 * regcache.c (regcache_xmalloc): Remove.
5494 * ppc-linux-tdep.c (ppu2spu_sniffer): Use new.
5495 * jit.c (jit_frame_sniffer): Use new.
5496 * frame.c (frame_save_as_regcache): Use new.
5497
289e23aa
AA
54982017-09-25 Andreas Arnez <arnez@linux.vnet.ibm.com>
5499
5500 * NEWS: Advertise support for guarded-storage registers on IBM z.
5501
1b63490c
AA
55022017-09-25 Andreas Arnez <arnez@linux.vnet.ibm.com>
5503
5504 * s390-linux-nat.c (have_regset_gs): New static variable.
5505 (s390_linux_fetch_inferior_registers): Handle guarded-storage
5506 control block and guarded-storage broadcast control regsets.
5507 (s390_read_description): Detect whether the target has
5508 guarded-storage support, return appropriate tdesc.
5509 * s390-linux-tdep.c (features/s390-gs-linux64.c): New include.
5510 (features/s390x-gs-linux64.c): Likewise.
5511 (struct gdbarch_tdep) <have_gs>: New field.
5512 (s390_regmap_gs, s390_regmap_gsbc, s390_gs_regset)
5513 (s390_gsbc_regset): New variables.
5514 (s390_iterate_over_regset_sections): Iterate over s390_gs_regset
5515 and s390_gsbc_regset, if applicable.
5516 (s390_core_read_description): Check whether core file was from a
5517 target with guarded-storage support; include appropriate regsets.
5518 (s390_gdbarch_init): Add registers for guarded-storage support.
5519 (_initialize_s390_tdep): Initialize new target descriptions that
5520 include registers for guarded-storage support.
5521 * s390-linux-tdep.h (HWCAP_S390_GS, S390_GSD_REGNUM)
5522 (S390_GSSM_REGNUM, S390_GSEPLA_REGNUM)
5523 (S390_BC_GSD_REGNUM, S390_BC_GSSM_REGNUM): New defines.
5524 (S390_NUM_REGS): Adjust macro definition.
5525 (s390_gs_regset, s390_gsbc_regset, tdesc_s390_gs_linux64)
5526 (tdesc_s390x_gs_linux64): New declarations.
5527
96235dc1
AA
55282017-09-25 Andreas Arnez <arnez@linux.vnet.ibm.com>
5529
5530 * features/s390-gs-linux64.xml: New file.
5531 * features/s390-gs.xml: New file.
5532 * features/s390-gsbc.xml: New file.
5533 * features/s390x-gs-linux64.xml: New file.
5534 * features/Makefile (WHICH): Add s390-gs-linux64 and
5535 s390x-gs-linux64.
5536 (s390-gs-linux64-expedite, s390x-gs-linux64-expedite): New macros.
5537 (XMLTOC): Add s390-gs-linux64.xml and s390x-linux64.xml.
5538 * features/s390-gs-linux64.c: New generated file.
5539 * features/s390x-gs-linux64.c: New file.
5540 * regformats/s390-gs-linux64.dat: New file.
5541 * regformats/s390x-gs-linux64.dat: New file.
5542
b4a7c699
TT
55432017-09-23 Tom Tromey <tom@tromey.com>
5544
5545 * defs.h (make_cleanup_override_quit_handler): Don't declare.
5546
c2f97536
TT
55472017-09-22 Tom Tromey <tom@tromey.com>
5548
5549 * utils.c (class scoped_input_handler) <m_quit_handler>: Change
5550 type to scoped_restore_tmpl.
5551 <scoped_input_handler>: Initialize m_quit_handler directly.
5552
43573013
SDJ
55532017-09-22 Sergio Durigan Junior <sergiodj@redhat.com>
5554
5555 * cli/cli-cmds.c (pwd_command): Use "getcwd (NULL, 0)".
5556 (cd_command): Likewise. Free "current_directory" before
5557 assigning to it.
5558 * main.c (captured_main_1): Use "getcwd (NULL, 0)".
5559 * mi/mi-cmd-env.c (mi_cmd_env_pwd): Likewise.
5560 * top.c (gdb_dirbuf): Remove global declaration.
5561 * top.h (gdb_dirbuf): Likewise.
5562
6ec2e0f5
SDJ
55632017-09-22 Sergio Durigan Junior <sergiodj@redhat.com>
5564
5565 * gnulib/aclocal.m4: Regenerate.
5566 * gnulib/config.in: Regenerate.
5567 * gnulib/configure: Regenerate.
5568 * gnulib/import/Makefile.am: Regenerate.
5569 * gnulib/import/Makefile.in: Regenerate.
5570 * gnulib/import/assure.h: New file.
5571 * gnulib/import/at-func.c: Likewise
5572 * gnulib/import/chdir-long.c: New file.
5573 * gnulib/import/chdir-long.h: New file.
5574 * gnulib/import/cloexec.c: New file.
5575 * gnulib/import/cloexec.h: New file.
5576 * gnulib/import/close.c: New file.
5577 * gnulib/import/closedir.c: New file.
5578 * gnulib/import/dirent-private.h: New file.
5579 * gnulib/import/dup-safer.c: New file.
5580 * gnulib/import/dup.c: New file.
5581 * gnulib/import/dup2.c: New file.
5582 * gnulib/import/error.c: New file.
5583 * gnulib/import/error.h: New file.
5584 * gnulib/import/exitfail.c: New file.
5585 * gnulib/import/exitfail.h: New file.
5586 * gnulib/import/fchdir.c: New file.
5587 * gnulib/import/fcntl.c: New file.
5588 * gnulib/import/fcntl.in.h: New file.
5589 * gnulib/import/fd-hook.c: New file.
5590 * gnulib/import/fd-hook.h: New file.
5591 * gnulib/import/fd-safer.c: New file.
5592 * gnulib/import/fdopendir.c: New file.
5593 * gnulib/import/filename.h: New file.
5594 * gnulib/import/filenamecat-lgpl.c: New file.
5595 * gnulib/import/filenamecat.h: New file.
5596 * gnulib/import/fstat.c: New file.
5597 * gnulib/import/fstatat.c: New file.
5598 * gnulib/import/getcwd-lgpl.c: New file.
5599 * gnulib/import/getcwd.c: New file.
5600 * gnulib/import/getdtablesize.c: New file.
5601 * gnulib/import/getlogin_r.c: New file.
5602 * gnulib/import/getprogname.c: New file.
5603 * gnulib/import/getprogname.h: New file.
5604 * gnulib/import/gettext.h: New file.
5605 * gnulib/import/glob-libc.h: New file.
5606 * gnulib/import/glob.c: New file.
5607 * gnulib/import/glob.in.h: New file.
5608 * gnulib/import/intprops.h: New file.
5609 * gnulib/import/m4/chdir-long.m4: New file.
5610 * gnulib/import/m4/close.m4: New file.
5611 * gnulib/import/m4/closedir.m4: New file.
5612 * gnulib/import/m4/d-ino.m4: New file.
5613 * gnulib/import/m4/d-type.m4: New file.
5614 * gnulib/import/m4/dup.m4: New file.
5615 * gnulib/import/m4/dup2.m4: New file.
5616 * gnulib/import/m4/error.m4: New file.
5617 * gnulib/import/m4/fchdir.m4: New file.
5618 * gnulib/import/m4/fcntl.m4: New file.
5619 * gnulib/import/m4/fcntl_h.m4: New file.
5620 * gnulib/import/m4/fdopendir.m4: New file.
5621 * gnulib/import/m4/filenamecat.m4: New file.
5622 * gnulib/import/m4/fstat.m4: New file.
5623 * gnulib/import/m4/fstatat.m4: New file.
5624 * gnulib/import/m4/getcwd-abort-bug.m4: New file.
5625 * gnulib/import/m4/getcwd-path-max.m4: New file.
5626 * gnulib/import/m4/getcwd.m4: New file.
5627 * gnulib/import/m4/getdtablesize.m4: New file.
5628 * gnulib/import/m4/getlogin_r.m4: New file.
5629 * gnulib/import/m4/getprogname.m4: New file.
5630 * gnulib/import/m4/glob.m4: New file.
5631 * gnulib/import/m4/gnulib-cache.m4: Regenerate.
5632 * gnulib/import/m4/gnulib-comp.m4: Regenerate.
5633 * gnulib/import/m4/mempcpy.m4: New file.
5634 * gnulib/import/m4/memrchr.m4: New file.
5635 * gnulib/import/m4/mode_t.m4: New file.
5636 * gnulib/import/m4/msvc-inval.m4: New file.
5637 * gnulib/import/m4/msvc-nothrow.m4: New file.
5638 * gnulib/import/m4/open.m4: New file.
5639 * gnulib/import/m4/openat.m4: New file.
5640 * gnulib/import/m4/opendir.m4: New file.
5641 * gnulib/import/m4/readdir.m4: New file.
5642 * gnulib/import/m4/realloc.m4: New file.
5643 * gnulib/import/m4/rewinddir.m4: New file.
5644 * gnulib/import/m4/save-cwd.m4: New file.
5645 * gnulib/import/m4/strdup.m4: New file.
5646 * gnulib/import/m4/strerror.m4: New file.
5647 * gnulib/import/m4/unistd-safer.m4: New file.
5648 * gnulib/import/mempcpy.c: New file.
5649 * gnulib/import/memrchr.c: New file.
5650 * gnulib/import/msvc-inval.c: New file.
5651 * gnulib/import/msvc-inval.h: New file.
5652 * gnulib/import/msvc-nothrow.c: New file.
5653 * gnulib/import/msvc-nothrow.h: New file.
5654 * gnulib/import/open.c: New file.
5655 * gnulib/import/openat-die.c: New file.
5656 * gnulib/import/openat-priv.h: New file.
5657 * gnulib/import/openat-proc.c: New file.
5658 * gnulib/import/openat.c: New file.
5659 * gnulib/import/openat.h: New file.
5660 * gnulib/import/opendir.c: New file.
5661 * gnulib/import/pipe-safer.c: New file.
5662 * gnulib/import/readdir.c: New file.
5663 * gnulib/import/realloc.c: New file.
5664 * gnulib/import/rewinddir.c: New file.
5665 * gnulib/import/save-cwd.c: New file.
5666 * gnulib/import/save-cwd.h: New file.
5667 * gnulib/import/strdup.c: New file.
5668 * gnulib/import/strerror-override.c: New file.
5669 * gnulib/import/strerror-override.h: New file.
5670 * gnulib/import/strerror.c: New file.
5671 * gnulib/import/unistd--.h: New file.
5672 * gnulib/import/unistd-safer.h: New file.
5673 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add
5674 "getcwd" and "glob".
5675 * ser-tcp.c: Undefine "close" before redefining it.
5676
432ae719
SM
56772017-09-21 Simon Marchi <simon.marchi@ericsson.com>
5678
5679 * guile/scm-value.c (gdbscm_value_address): Initialize address,
5680 get rid of res_val.
5681
4fa7574e
RO
56822017-09-22 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
5683
5684 * configure.nat <i386sol2,i386>: Add fork-inferior.o to NATDEPFILES.
5685 <sol2,sparc>: Likewise.
5686 <sol2-64,i386>: Likewise.
5687
5688 * warning.m4 (AM_GDB_WARNINGS): Disable -Wunknown-pragmas,
5689 -Wdeprecated-declarations on *-*-solaris*.
5690 * configure: Regenerate.
5691
5692 * procfs.c: Include "nat/inferior.h".
5693 (procfs_info_proc): Fix typo.
5694
f6327dcb
KB
56952017-09-21 Kevin Buettner <kevinb@redhat.com>
5696
5697 * remote.c (vector): Include.
5698 (struct private_thread_info): Add field, thread_handle.
5699 (free_private_thread_info): Deallocate storage associated with
5700 thread handle.
5701 (get_private_info_thread): Initialize `thread_handle' field.
5702 (struct thread_item): Add field, thread_handle.
5703 (clear_threads_listing_context): Deallocate storage associated
5704 with thread handle.
5705 (start_thread): Add support for "handle" attribute.
5706 (thread_attributes): Add "handle".
5707 (remote_get_threads_with_qthreadinfo): Initialize thread_handle
5708 field.
5709 (remote_update_thread_list): Update thread_handle.
5710 (remote_thread_handle_to_thread_info): New function.
5711 (init_remote_ops): Initialize to_thread_handle_to_thread_info.
5712
fbbe5337
KB
57132017-09-21 Kevin Buettner <kevinb@redhat.com>
5714
5715 * python/py-inferior.c (gdbpy_thread_from_thread_handle): New
5716 function.
5717 (inferior_object_methods): Add gdbpy_thread_from_thread_handle.
5718 * python/python-internal.h (thread_object_type): Declare.
5719
e04ee09e
KB
57202017-09-21 Kevin Buettner <kevinb@redhat.com>
5721
5722 * target.h (struct target_ops): Add to_thread_handle_to_thread_info.
5723 (target_thread_handle_to_thread_info): Declare.
5724 * target.c (target_thread_handle_to_thread_info): New function.
5725 * target-delegates.c: Regenerate.
5726 * gdbthread.h (find_thread_by_handle): Declare.
5727 * thread.c (find_thread_by_handle): New function.
5728 * linux-thread-db.c (thread_db_thread_handle_to_thread_info): New
5729 function.
5730 (init_thread_db_ops): Register thread_db_thread_handle_to_thread_info.
5731
1e5b66ed
SM
57322017-09-21 Simon Marchi <simon.marchi@ericsson.com>
5733
5734 * nat/linux-waitpid.c (linux_debug): Add ATTRIBUTE_PRINTF.
5735
ebe48ba0
SM
57362017-09-21 Simon Marchi <simon.marchi@ericsson.com>
5737
5738 * microblaze-tdep.c (microblaze_debug): Add ATTRIBUTE_PRINTF.
5739
0a0bf5dc
YQ
57402017-09-21 Yao Qi <yao.qi@linaro.org>
5741
5742 * configure.tgt (aarch64*-*-freebsd*): Add fbsd-tdep.o solib-svr4.o
5743 to gdb_target_obs.
5744
d1b0a7bf
TT
57452017-09-20 Tom Tromey <tom@tromey.com>
5746
5747 * breakpoint.c (struct counted_command_line): Remove.
5748 (breakpoint_commands): Update.
5749 (alloc_counted_command_line, incref_counted_command_line)
5750 (decref_counted_command_line, do_cleanup_counted_command_line)
5751 (make_cleanup_decref_counted_command_line): Remove.
5752 (breakpoint_set_commands, commands_command_1, ~bpstats, bpstats)
5753 (bpstat_clear_actions, bpstat_do_actions_1, watchpoint_check)
5754 (bpstat_stop_status, print_one_breakpoint_location, ~breakpoint)
5755 (save_breakpoints): Update.
5756 * breakpoint.h (counted_command_line): Now a typedef to
5757 shared_ptr.
5758 (struct breakpoint) <commands>: Now a counted_command_line.
5759 (struct bpstats) <command>: Likewise.
5760
48649e1b
TT
57612017-09-20 Tom Tromey <tom@tromey.com>
5762
5763 * breakpoint.c (struct commands_info, do_map_commands_command):
5764 Remove.
5765 (commands_command_1): Update.
5766 (iterate_over_related_breakpoints): Take a function_view.
5767 (do_delete_breakpoint, do_map_delete_breakpoint): Remove.
5768 (delete_command): Update.
5769 (map_breakpoint_numbers): Take a function_view.
5770 (do_disable_breakpoint, do_map_delete_breakpoint): Remove.
5771 (disable_command): Update.
5772 (do_enable_breakpoint, do_map_enable_breakpoint): Remove.
5773 (enable_command): Update.
5774 (struct disp_data, do_enable_breakpoint_disp)
5775 (do_map_enable_once_breakpoint, do_map_enable_count_breakpoint)
5776 (do_map_enable_delete_breakpoint): Remove.
5777 (enable_once_command, enable_count_command, enable_delete_command)
5778 (delete_trace_variable_command): Update.
5779
04afa70c
TT
57802017-09-20 Tom Tromey <tom@tromey.com>
5781
5782 * breakpoint.c (~bpstats): Rename from bpstat_free. Update.
5783 (bpstat_clear): Use delete.
5784 (bpstats): New constructors.
5785 (bpstat_copy, bpstat_stop_status): Use new.
5786 (dprintf_after_condition_true): Update.
5787 * breakpoint.h (bpstats::bpstats): Add constructors.
5788 (bpstats::~bpstats): Add destructor.
5789
c83833f4
PA
57902017-09-20 Pedro Alves <palves@redhat.com>
5791
5792 * eval.c (make_params): Delete, refactored as ...
5793 (class fake_method): ... this new type's ctor.
5794 (fake_method::~fake_method): New.
5795 (evaluate_subexp_standard): Use 'fake_method'.
5796
223ffa71
TT
57972017-09-20 Tom Tromey <tom@tromey.com>
5798
5799 * windows-nat.c (get_windows_debug_event, windows_wait)
5800 (do_initial_windows_stuff, windows_attach): Update.
5801 * utils.c (vwarning, internal_vproblem): Update.
5802 (ui_unregister_input_event_handler_cleanup)
5803 (prepare_to_handle_input): Remove.
5804 (class scoped_input_handler): New.
5805 (defaulted_query, prompt_for_continue): Update.
5806 * tui/tui-hooks.c (tui_refresh_frame_and_register_information):
5807 Update.
5808 * top.c (undo_terminal_modifications_before_exit): Update.
5809 * target/target.h (target_terminal_init, target_terminal_inferior)
5810 (target_terminal_ours): Don't declare.
5811 (class target_terminal): New.
5812 * target.h (target_terminal_is_inferior, target_terminal_is_ours)
5813 (target_terminal_ours_for_output)
5814 (make_cleanup_restore_target_terminal): Don't declare.
5815 (target_terminal_info): Remove.
5816 * target.c (enum terminal_state, terminal_state): Remove.
5817 (target_terminal::terminal_state): Define.
5818 (target_terminal::init): Rename from target_terminal_init.
5819 (target_terminal::inferior): Rename from
5820 target_terminal_inferior.
5821 (target_terminal::ours): Rename from target_terminal_ours.
5822 (target_terminal::ours_for_output): Rename from
5823 target_terminal_ours_for_output.
5824 (target_terminal::info): New method.
5825 (cleanup_restore_target_terminal)
5826 (make_cleanup_restore_target_terminal): Remove.
5827 * solib.c (handle_solib_event): Update.
5828 * remote.c (remote_serial_quit_handler): Update.
5829 (remote_terminal_inferior, remote_wait_as): Update.
5830 * record-full.c (record_full_wait_1): Update.
5831 * nto-procfs.c (procfs_create_inferior): Update.
5832 * nat/fork-inferior.c (startup_inferior): Update.
5833 * mi/mi-interp.c (mi_new_thread, mi_thread_exit)
5834 (mi_record_changed, mi_inferior_added, mi_inferior_appeared)
5835 (mi_inferior_exit, mi_inferior_removed, mi_traceframe_changed)
5836 (mi_tsv_created, mi_tsv_deleted, mi_tsv_modified)
5837 (mi_breakpoint_created, mi_breakpoint_deleted)
5838 (mi_breakpoint_modified, mi_on_resume, mi_solib_loaded)
5839 (mi_solib_unloaded, mi_command_param_changed, mi_memory_changed)
5840 (mi_user_selected_context_changed, report_initial_inferior):
5841 Update.
5842 * linux-nat.c (linux_nat_attach, linux_nat_terminal_ours)
5843 (linux_nat_terminal_inferior): Update.
5844 * infrun.c (follow_fork_inferior)
5845 (handle_vfork_child_exec_or_exit, do_target_resume)
5846 (check_curr_ui_sync_execution_done, handle_inferior_event_1)
5847 (handle_signal_stop, maybe_remove_breakpoints, normal_stop):
5848 Update.
5849 * inflow.c (child_terminal_init, info_terminal_command): Update.
5850 * infcmd.c (post_create_inferior, continue_1, prepare_one_step)
5851 (attach_command): Update.
5852 * infcall.c (call_thread_fsm_should_stop): Update.
5853 * gnu-nat.c (gnu_attach): Update.
5854 * extension.c (struct active_ext_lang_state)
5855 (restore_active_ext_lang): Update.
5856 * exceptions.c (print_flush): Update.
5857 * event-top.c (async_enable_stdin, default_quit_handler): Update.
5858 (struct quit_handler_cleanup_data, restore_quit_handler)
5859 (restore_quit_handler_dtor, make_cleanup_override_quit_handler):
5860 Remove.
5861 * cp-support.c (gdb_demangle): Update.
5862 * breakpoint.c (update_inserted_breakpoint_locations)
5863 (insert_breakpoint_locations, handle_jit_event)
5864 (disable_breakpoints_in_unloaded_shlib): Update.
5865 * annotate.c (annotate_breakpoints_invalid)
5866 (annotate_frames_invalid): Update.
5867
013af3fc
TT
58682017-09-20 Tom Tromey <tom@tromey.com>
5869
5870 * main.c (catch_command_errors): Rename from
5871 catch_command_errors_const.
5872 (captured_main_1): Update.
5873
06871ae8
PA
58742017-09-20 Pedro Alves <palves@redhat.com>
5875
5876 * cli/cli-cmds.c (list_command): Use print_sal_location.
5877 (print_sal_location): New function.
5878 (ambiguous_line_spec): Use print_sal_location.
5879 * linespec.c (symbol_to_sal): Record the symbol in the sal.
5880 * symtab.c (find_function_start_sal): Likewise.
5881 * symtab.h (symtab_and_line::symbol): New field.
5882
e5f25bc5
PA
58832017-09-20 Pedro Alves <palves@redhat.com>
5884
5885 * linespec.c (minsym_found): Handle non-text minsyms.
5886 (symbol_to_sal): Record a sal.pc for non-block, non-label symbols.
5887
1b7fa39e
WT
58882017-09-20 Walfred Tedeschi <walfred.tedeschi@intel.com>
5889
5890 * features/Makefile (i386-avx-mpx-avx512-pku.dat): Add missing
5891 backslash.
5892
37dd0825
WT
58932017-09-20 Walfred Tedeschi <walfred.tedeschi@intel.com>
5894
5895 * gdb.arch/i386-avx512.c (move_zmm_data_to_reg): Use
5896 vmovups instead vmovaps.
5897 (move_zmm_data_to_memory): Use vmovups instead vmovaps.
5898
4e5a4f58
JB
58992017-09-19 John Baldwin <jhb@FreeBSD.org>
5900
5901 * NEWS (Changes since GDB 8.0): Add starti.
5902 * infcmd.c (enum run_break): New.
5903 (run_command_1): Queue pending event for RUN_STOP_AT_FIRST_INSN
5904 case.
5905 (run_command): Use enum run_how.
5906 (start_command): Likewise.
5907 (starti_command): New function.
5908 (RUN_ARGS_HELP): New macro.
5909 (_initialize_infcmd): Use RUN_ARGS_HELP for run and start
5910 commands. Add starti command.
5911
aa70c9f1
YQ
59122017-09-19 Yao Qi <yao.qi@linaro.org>
5913
5914 * Makefile.in (monitor.o): Remove the rule.
5915
d6541620
YQ
59162017-09-19 Yao Qi <yao.qi@linaro.org>
5917
5918 * annotate.h (struct annotate_arg_emitter): Use
5919 DISABLE_COPY_AND_ASSIGN.
5920 * common/refcounted-object.h (refcounted_object): Likewise.
5921 * completer.h (struct completion_result): Likewise.
5922 * dwarf2read.c (struct dwarf2_per_objfile): Likewise.
5923 * filename-seen-cache.h (filename_seen_cache): Likewise.
5924 * gdbcore.h (thread_section_name): Likewise.
5925 * gdb_regex.h (compiled_regex): Likewise.
5926 * gdbthread.h (scoped_restore_current_thread): Likewise.
5927 * inferior.h (scoped_restore_current_inferior): Likewise.
5928 * jit.c (jit_reader): Likewise.
5929 * linespec.h (struct linespec_result): Likewise.
5930 * mi/mi-parse.h (struct mi_parse): Likewise.
5931 * nat/fork-inferior.c (execv_argv): Likewise.
5932 * progspace.h (scoped_restore_current_program_space): Likewise.
5933 * python/python-internal.h (class gdbpy_enter): Likewise.
5934 * regcache.h (regcache): Likewise.
5935 * target-descriptions.c (struct tdesc_reg): Likewise.
5936 (struct tdesc_type): Likewise.
5937 (struct tdesc_feature): Likewise.
5938 * ui-out.h (ui_out_emit_type): Likewise.
5939
0615127c
SM
59402017-09-18 Simon Marchi <simon.marchi@ericsson.com>
5941
5942 * dwarf2expr.c (dwarf_expr_context::execute_stack_op): Remove
5943 label abort_expression.
5944
5e187554
SM
59452017-09-16 Simon Marchi <simon.marchi@ericsson.com>
5946
5947 * common/buffer.c (buffer_xml_printf): Adjust.
5948 * common/xml-utils.c (xml_escape_text): Change return type to
5949 std::string, update code accordingly.
5950 * common/xml-utils.h (xml_escape_text): Change return type to
5951 std::string.
5952 * rs6000-aix-tdep.c (rs6000_aix_shared_library_to_xml): Adjust.
5953 * windows-tdep.c (windows_xfer_shared_library): Adjust.
5954 * unittests/xml-utils-selftests.c (test_xml_escape_text):
5955 Adjust.
5956
c3d7b541
SM
59572017-09-16 Simon Marchi <simon.marchi@ericsson.com>
5958
5959 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add new source file.
5960 (SUBDIR_UNITTESTS_OBS): Add new object file.
5961 * unittests/xml-utils-selftests.c: New file.
5962
1526853e
SM
59632017-09-16 Simon Marchi <simon.marchi@ericsson.com>
5964
5965 * common/selftest.h (selftest): New struct/interface.
5966 (register_test): Add name parameter, add new overload.
5967 (run_tests): Add filter parameter.
5968 (for_each_selftest_ftype): New typedef.
5969 (for_each_selftest): New declaration.
5970 * common/selftest.c (tests): Change type to
5971 map<string, unique_ptr<selftest>>.
5972 (simple_selftest): New struct.
5973 (register_test): New function.
5974 (register_test): Add name parameter and use it.
5975 (run_tests): Add filter parameter and use it. Add prints.
5976 Adjust to vector -> map change.
5977 * aarch64-tdep.c (_initialize_aarch64_tdep): Add names when
5978 registering selftests.
5979 * arm-tdep.c (_initialize_arm_tdep): Likewise.
5980 * disasm-selftests.c (_initialize_disasm_selftests): Likewise.
5981 * dwarf2-frame.c (_initialize_dwarf2_frame): Likewise.
5982 * dwarf2loc.c (_initialize_dwarf2loc): Likewise.
5983 * findvar.c (_initialize_findvar): Likewise.
5984 * gdbarch-selftests.c (_initialize_gdbarch_selftests): Likewise.
5985 * maint.c (maintenance_selftest): Update call to run_tests.
5986 (maintenance_info_selftests): New function.
5987 (_initialize_maint_cmds): Register "maintenance info selftests"
5988 command. Update "maintenance selftest" doc.
5989 * regcache.c (_initialize_regcache): Add names when registering
5990 selftests.
5991 * rust-exp.y (_initialize_rust_exp): Likewise.
5992 * selftest-arch.c (gdbarch_selftest): New struct.
5993 (gdbarch_tests): Remove.
5994 (register_test_foreach_arch): Add name parameter. Call
5995 register_test.
5996 (tests_with_arch): Remove, move most content to
5997 gdbarch_selftest::operator().
5998 (_initialize_selftests_foreach_arch): Remove.
5999 * selftest-arch.h (register_test_foreach_arch): Add name
6000 parameter.
6001 (run_tests_with_arch): New declaration.
6002 * utils-selftests.c (_initialize_utils_selftests): Add names
6003 when registering selftests.
6004 * utils.c (_initialize_utils): Likewise.
6005 * unittests/array-view-selftests.c
6006 (_initialize_array_view_selftests): Likewise.
6007 * unittests/environ-selftests.c (_initialize_environ_selftests):
6008 Likewise.
6009 * unittests/function-view-selftests.c
6010 (_initialize_function_view_selftests): Likewise.
6011 * unittests/offset-type-selftests.c
6012 (_initialize_offset_type_selftests): Likewise.
6013 * unittests/optional-selftests.c
6014 (_initialize_optional_selftests): Likewise.
6015 * unittests/scoped_restore-selftests.c
6016 (_initialize_scoped_restore_selftests): Likewise.
6017 * NEWS: Document "maintenance selftest" and "maint info
6018 selftests".
6019
5846367a
SM
60202017-09-16 Simon Marchi <simon.marchi@ericsson.com>
6021
6022 * mi/mi-main.c (mi_load_progress): Restore current_uiout using a
6023 scoped_restore.
6024
bd77e8ff
SM
60252017-09-16 Simon Marchi <simon.marchi@ericsson.com>
6026
6027 * mi/mi-main.c (mi_load_progress): Make uiout variable
6028 a unique_ptr.
6029
26a67918
PA
60302017-09-15 Pedro Alves <palves@redhat.com>
6031
6032 * compile/compile-c-types.c (convert_enum, convert_int)
6033 (convert_float): Adjust to refer to int_type_v0 and float_type_v0.
6034
3f8a7804
SM
60352017-09-15 Simon Marchi <simon.marchi@ericsson.com>
6036
6037 * dwarf2read.c (copy_string): Remove.
6038 (parse_macro_definition): Replace copy_string with savestring.
6039
8d200706
YQ
60402017-09-15 Yao Qi <yao.qi@linaro.org>
6041
6042 * configure.tgt (i[34567]86-*-darwin*): Append amd64.o to
6043 gdb_target_obs.
6044 (i[34567]86-*-solaris2.1[0-9]* | x86_64-*-solaris2.1[0-9]*):
6045 Likewise.
6046 (i[34567]86-*-linux*): Likewise.
6047
d185219d
SM
60482017-09-14 Simon Marchi <simon.marchi@ericsson.com>
6049
6050 * dwarf2expr.h (dwarf_stack_value): Add constructor.
6051 (dwarf_expr_context) <~dwarf_expr_context>: Define as default.
6052 <stack>: Change type to std::vector.
6053 <stack_len, stack_allocated>: Remove.
6054 <grow_stack>: Remove.
6055 * dwarf2expr.c (dwarf_expr_context::dwarf_expr_context): Adjust.
6056 (dwarf_expr_context::~dwarf_expr_context): Remove.
6057 (dwarf_expr_context::grow_stack): Remove.
6058 (dwarf_expr_context::push): Adjust.
6059 (dwarf_expr_context::pop): Adjust.
6060 (dwarf_expr_context::fetch): Adjust.
6061 (dwarf_expr_context::fetch_in_stack_memory): Adjust.
6062 (dwarf_expr_context::stack_empty_p): Adjust.
6063 (dwarf_expr_context::execute_stack_op): Adjust.
6064
eccd80d6
SM
60652017-09-14 Simon Marchi <simon.marchi@ericsson.com>
6066
6067 * dwarf2expr.h (dwarf_expr_context) <stack_empty_p>: Change
6068 return type to bool.
6069 * dwarf2expr.c (dwarf_expr_context::stack_empty_p): Likewise.
6070
69009882
SM
60712017-09-14 Simon Marchi <simon.marchi@ericsson.com>
6072
6073 * dwarf2expr.h (dwarf_expr_piece) <v.mem.in_stack_memory>:
6074 Change type to bool.
6075 (dwarf_stack_value) <in_stack_memory>: Likewise.
6076 (dwarf_expr_context) <push_address>: Change parameter type to
6077 bool.
6078 <fetch_in_stack_memory>: Change return type to bool.
6079 <push>: Change parameter type to bool.
6080 * dwarf2expr.c (dwarf_expr_context::push): Change parameter type
6081 to bool.
6082 (dwarf_expr_context::push_address): Likewise.
6083 (dwarf_expr_context::fetch_in_stack_memory): Change return type
6084 to bool.
6085 (dwarf_expr_context::execute_stack_op): Adjust.
6086 * dwarf2loc.c (dwarf2_evaluate_loc_desc_full): Adjust.
6087
1e467161
SM
60882017-09-14 Simon Marchi <simon.marchi@ericsson.com>
6089
6090 * dwarf2expr.h (struct dwarf_expr_piece): Move up.
6091 (struct dwarf_expr_context) <n_pieces>: Remove.
6092 <pieces>: Change type to std::vector.
6093 * dwarf2expr.c (dwarf_expr_context::dwarf_expr_context): Adjust.
6094 (dwarf_expr_context::~dwarf_expr_context): Don't manually free
6095 pieces.
6096 (dwarf_expr_context::add_piece): Adjust.
6097 * dwarf2loc.c (struct piece_closure): Initialize fields.
6098 <n_pieces>: Remove.
6099 <pieces>: Change type to std::vector.
6100 (allocate_piece_closure): Adjust, change parameter to
6101 std::vector rvalue and std::move it to piece_closure.
6102 (rw_pieced_value): Adjust.
6103 (check_pieced_synthetic_pointer): Adjust.
6104 (indirect_synthetic_pointer): Adjust.
6105 (coerce_pieced_ref): Adjust.
6106 (free_pieced_value_closure): Adjust. Use delete to free
6107 piece_closure.
6108 (dwarf2_evaluate_loc_desc_full): Adjust. std::move ctx.pieces
6109 to allocate_piece_closure.
6110 (dwarf2_loc_desc_get_symbol_read_needs): Adjust.
6111
0782db84
SM
61122017-09-12 Simon Marchi <simon.marchi@ericsson.com>
6113
6114 * probe.h (probe_ops_cp): Remove typedef.
6115 (DEF_VEC_P (probe_ops_cp)): Remove.
6116 (all_probe_ops): Change type to std::vector.
6117 * probe.c (info_probes_for_ops): Adjust to vector change.
6118 (probe_linespec_to_ops): Likewise.
6119 (all_probe_ops): Change type to std::vector.
6120 (_initialize_probe): Adjust to vector change.
6121 * dtrace-probe.c (_initialize_dtrace_probe): Likewise.
6122 * elfread.c (elf_get_probes): Likewise.
6123 * stap-probe.c (_initialize_stap_probe): Likewise.
6124
1eac6bea
SM
61252017-09-12 Simon Marchi <simon.marchi@ericsson.com>
6126
6127 * probe.h (struct bound_probe): Define constructors.
6128 * probe.c (bound_probe_s): Remove typedef.
6129 (DEF_VEC_O (bound_probe_s)): Remove VEC.
6130 (collect_probes): Change return type to std::vector, remove
6131 cleanup.
6132 (compare_probes): Return bool, change parameter type. Change
6133 semantic to "less than".
6134 (gen_ui_out_table_header_info): Change parameter to std::vector
6135 and update.
6136 (exists_probe_with_pops): Likewise.
6137 (info_probes_for_ops): Update to std::vector change.
6138 (enable_probes_command): Likewise.
6139 (disable_probes_command): Likewise.
6140
aaa63a31
SM
61412017-09-12 Simon Marchi <simon.marchi@ericsson.com>
6142
6143 * probe.h (struct probe_ops) <get_probes>: Change parameter from
6144 vec to std::vector.
6145 * probe.c (parse_probes_in_pspace): Update.
6146 (find_probes_in_objfile): Update.
6147 (find_probe_by_pc): Update.
6148 (collect_probes): Update.
6149 (probe_any_get_probes): Update.
6150 * symfile.h (struct sym_probe_fns) <sym_get_probes> Change
6151 return type to reference to std::vector.
6152 * dtrace-probe.c (dtrace_process_dof_probe): Change parameter to
6153 std::vector and update.
6154 (dtrace_process_dof): Likewise.
6155 (dtrace_get_probes): Likewise.
6156 * elfread.c (elf_get_probes): Change return type to std::vector,
6157 store an std::vector in bfd_data.
6158 (probe_key_free): Update to std::vector.
6159 * stap-probe.c (handle_stap_probe): Change parameter to
6160 std::vector and update.
6161 (stap_get_probes): Likewise.
6162 * symfile-debug.c (debug_sym_get_probes): Change return type to
6163 std::vector and update.
6164
cb85b21b
TT
61652017-09-11 Tom Tromey <tom@tromey.com>
6166
6167 * breakpoint.c (program_breakpoint_here_p): Update.
6168 * target.c (make_scoped_restore_show_memory_breakpoints): Rename
6169 from make_show_memory_breakpoints_cleanup. Return a
6170 scoped_restore_tmpl<int>.
6171 (restore_show_memory_breakpoints): Remove.
6172 * ppc-linux-tdep.c (ppc_linux_memory_remove_breakpoint): Update.
6173 * mem-break.c (memory_validate_breakpoint): Update.
6174 * ia64-tdep.c (ia64_memory_insert_breakpoint): Update.
6175 (ia64_memory_remove_breakpoint): Update.
6176 (ia64_breakpoint_from_pc): Update.
6177 * target.h (make_scoped_restore_show_memory_breakpoints): Rename
6178 from make_show_memory_breakpoints_cleanup.
6179
8fbc99ef
TT
61802017-09-11 Tom Tromey <tom@tromey.com>
6181
6182 * d-namespace.c (d_lookup_symbol): Use std::string.
6183 (find_symbol_in_baseclass): Likewise.
6184
50feb4bd
TT
61852017-09-11 Tom Tromey <tom@tromey.com>
6186
6187 * ctf.c (ctf_start): Use std::string.
6188
c6dc63a1
TT
61892017-09-11 Tom Tromey <tom@tromey.com>
6190
6191 * ada-lang.c (is_known_support_routine): Update.
6192 (ada_unhandled_exception_name_addr_from_raise): Update.
6193 * guile/scm-frame.c (gdbscm_frame_name): Update.
6194 * python/py-frame.c (frapy_name): Update.
6195 (frapy_function): Update.
6196 * stack.h (find_frame_funname): Update.
6197 * stack.c (find_frame_funname): Return unique_xmalloc_ptr.
6198 (print_frame): Update.
6199
d6b9b80f
TT
62002017-09-11 Tom Tromey <tom@tromey.com>
6201
6202 * findcmd.c (put_bits): Take a gdb::byte_vector.
6203 (parse_find_args): Return gdb::byte_vector. "args" now const.
6204 Remove "pattern_bufp" and "pattern_lenp" parameters. Remove
6205 cleanups.
6206 (find_command): Update.
6207
a9921622
TT
62082017-09-11 Tom Tromey <tom@tromey.com>
6209
6210 * cli/cli-script.c (class scoped_restore_hook_in): New.
6211 (clear_hook_in_cleanup): Remove.
6212 (execute_cmd_pre_hook, execute_cmd_post_hook): Use
6213 scoped_restore_hook_in.
6214
be0d7abb
TT
62152017-09-11 Tom Tromey <tom@tromey.com>
6216
6217 * cli/cli-script.c (restore_interp): Remove.
6218 (read_command_lines): Use scoped_restore_interp.
6219 * interps.c (scoped_restore_interp::set_temp): Rename from
6220 interp_set_temp.
6221 * interps.h (class scoped_restore_interp): New.
6222 (interp_set_temp): Remove.
6223
00f675ff
TT
62242017-09-11 Tom Tromey <tom@tromey.com>
6225
6226 * mi/mi-cmd-catch.c (mi_cmd_catch_assert)
6227 (mi_cmd_catch_exception, mi_catch_load_unload): Update.
6228 * mi/mi-cmd-break.c (setup_breakpoint_reporting): Return a
6229 scoped_restore.
6230 (mi_cmd_break_insert_1): Update.
6231 * mi/mi-cmd-break.h (setup_breakpoint_reporting): Return a
6232 scoped_restore.
6233
cb791d59
TT
62342017-09-11 Tom Tromey <tom@tromey.com>
6235
6236 * demangle.c (demangle_command): Update.
6237 * breakpoint.c (disable_command): Update.
6238 (enable_command): Update.
6239 (find_location_by_number): Make "number" const. Use
6240 get_number_trailer.
6241 * cli/cli-utils.c (extract_arg): Return std::string.
6242 * probe.c (parse_probe_linespec): Update. Change types.
6243 (collect_probes): Take string arguments.
6244 (parse_probe_linespec): Likewise.
6245 (info_probes_for_ops): Update.
6246 (enable_probes_command): Update.
6247 (disable_probes_command): Update.
6248 * break-catch-sig.c (catch_signal_split_args): Update.
6249 * mi/mi-parse.c (mi_parse): Update.
6250
2039bd9f
TT
62512017-09-11 Tom Tromey <tom@tromey.com>
6252
6253 * language.h (language_enum): Make argument const.
6254 * language.c (language_enum): Make argument const.
6255
f1735a53
TT
62562017-09-11 Tom Tromey <tom@tromey.com>
6257
6258 * common/common-utils.h (skip_to_space): Remove macro, redeclare
6259 as function.
6260 (skip_to_space): Rename from skip_to_space_const.
6261 * common/common-utils.c (skip_to_space): New function.
6262 (skip_to_space): Rename from skip_to_space_const.
6263 * cli/cli-utils.h (get_number): Rename from get_number_const.
6264 (extract_arg): Rename from extract_arg_const.
6265 * cli/cli-utils.c (get_number): Rename from get_number_const.
6266 (extract_arg): Rename from extract_arg_const.
6267 (number_or_range_parser::get_number): Use ::get_number.
6268 * aarch64-linux-tdep.c, ada-lang.c, arm-linux-tdep.c, ax-gdb.c,
6269 break-catch-throw.c, breakpoint.c, cli/cli-cmds.c, cli/cli-dump.c,
6270 cli/cli-script.c, cli/cli-setshow.c, compile/compile.c,
6271 completer.c, demangle.c, disasm.c, findcmd.c, linespec.c,
6272 linux-tdep.c, linux-thread-db.c, location.c, mi/mi-parse.c,
6273 minsyms.c, nat/linux-procfs.c, printcmd.c, probe.c,
6274 python/py-breakpoint.c, record.c, rust-exp.y, serial.c, stack.c,
6275 stap-probe.c, tid-parse.c, tracepoint.c: Update all callers.
6276
7d221d74
TT
62772017-09-11 Tom Tromey <tom@tromey.com>
6278
6279 * python/python.c (do_start_initialization): Use
6280 py-event-types.def to initialize types.
6281 Define all object type structures.
6282 * python/python-internal.h: Don't declare event initialization
6283 functions.
6284 * python/py-threadevent.c (thread_event_object_type): Don't
6285 define.
6286 * python/py-stopevent.c (stop_event_object_type): Don't define.
6287 * python/py-signalevent.c (signal_event_object_type): Don't
6288 declare or define.
6289 * python/py-newobjfileevent.c (new_objfile_event_object_type)
6290 (clear_objfiles_event_object_type): Don't declare or define.
6291 * python/py-infevents.c (inferior_call_pre_event_object_type)
6292 (inferior_call_post_event_object_type)
6293 (register_changed_event_object_type)
6294 (memory_changed_event_object_type): Don't declare or define.
6295 * python/py-inferior.c (new_thread_event_object_type)
6296 (new_inferior_event_object_type)
6297 (inferior_deleted_event_object_type): Don't declare or define.
6298 * python/py-exitedevent.c (exited_event_object_type): Don't
6299 declare or define.
6300 * python/py-evts.c (gdbpy_initialize_py_events): Use
6301 py-all-events.def.
6302 * python/py-events.h (thread_event_object_type): Don't declare.
6303 (events_object): Use py-all-events.def.
6304 * python/py-event.h (GDBPY_NEW_EVENT_TYPE): Remove. Use
6305 py-event-types.def.
6306 * python/py-event-types.def: New file.
6307 * python/py-continueevent.c (create_continue_event_object): Don't
6308 declare or define.
6309 * python/py-bpevent.c (breakpoint_event_object_type): Don't
6310 declare or define.
6311 * python/py-all-events.def: New file.
6312
35c61a1d
TT
63132017-09-11 Tom Tromey <tom@tromey.com>
6314
6315 * python/py-threadevent.c (create_thread_event_object): Return
6316 gdbpy_ref.
6317 * python/py-stopevent.h (create_stop_event_object)
6318 (create_breakpoint_event_object, create_signal_event_object):
6319 Update.
6320 * python/py-stopevent.c (create_stop_event_object): Return
6321 gdbpy_ref.
6322 (emit_stop_event): Update.
6323 * python/py-signalevent.c (create_signal_event_object): Return
6324 gdbpy_ref.
6325 * python/py-infevents.c (create_inferior_call_event_object):
6326 Update.
6327 * python/py-event.h (create_event_object)
6328 (create_thread_event_object): Update.
6329 * python/py-event.c (create_event_object): Return gdbpy_ref.
6330 * python/py-continueevent.c: Return gdbpy_ref.
6331 * python/py-bpevent.c (create_breakpoint_event_object): Return
6332 gdbpy_ref.
6333
7c96f8c1
TT
63342017-09-11 Tom Tromey <tom@tromey.com>
6335
6336 PR python/15622:
6337 * NEWS: Add entry.
6338 * python/python.c (do_start_initialization): Initialize new event
6339 types.
6340 * python/python-internal.h (gdbpy_initialize_new_inferior_event)
6341 (gdbpy_initialize_inferior_deleted_event)
6342 (gdbpy_initialize_new_thread_event): Declare.
6343 * python/py-threadevent.c (create_thread_event_object): Add option
6344 "thread" parameter.
6345 * python/py-inferior.c (new_thread_event_object_type)
6346 (new_inferior_event_object_type)
6347 (inferior_deleted_event_object_type): Declare.
6348 (python_new_inferior, python_inferior_deleted): New functions.
6349 (add_thread_object): Emit new_thread event.
6350 (gdbpy_initialize_inferior): Attach new functions to corresponding
6351 observers.
6352 (new_thread, new_inferior, inferior_deleted): Define new event
6353 types.
6354 * python/py-evts.c (gdbpy_initialize_py_events): Add new
6355 registries.
6356 * python/py-events.h (events_object) <new_inferior,
6357 inferior_deleted, new_thread>: New fields.
6358 * python/py-event.h (create_thread_event_breakpoint): Add optional
6359 "thread" parameter.
6360
72542b8e
AB
63612017-09-10 Andrew Burgess <andrew.burgess@embecosm.com>
6362
6363 * utils.c (abort_with_message): Don't compare gdb_stderr to NULL,
6364 check current_ui instead.
6365 (internal_vproblem): Likewise.
6366
0d64823e
SM
63672017-09-09 Simon Marchi <simon.marchi@ericsson.com>
6368
6369 * thread.c (print_thread_info_1): Remove unnecessary calls to
6370 uiout->is_mi_like_p.
6371
eb1e02fd
TT
63722017-09-09 Tom Tromey <tom@tromey.com>
6373
6374 * namespace.h (add_using_directive): Update.
6375 * namespace.c (add_using_directive): Change type of excludes to
6376 std::vector.
6377 * dwarf2read.c (read_import_statement): Use std::vector.
6378 (read_namespace): Update.
6379 * cp-namespace.c (cp_scan_for_anonymous_namespaces): Update.
6380
0fc21fd8
TT
63812017-09-09 Tom Tromey <tom@tromey.com>
6382
6383 * linespec.c (create_sals_line_offset): Use gdb::def_vector.
6384
49663d05
TT
63852017-09-09 Tom Tromey <tom@tromey.com>
6386
6387 * p-valprint.c (pascal_object_print_value): Use gdb::byte_vector.
6388
0b868b60
TT
63892017-09-09 Tom Tromey <tom@tromey.com>
6390
6391 * stack.c (func_command): Use gdb::def_vector.
6392
c0470d48
TT
63932017-09-09 Tom Tromey <tom@tromey.com>
6394
6395 * mi/mi-cmd-var.c (mi_cmd_var_list_children): Use gdb::optional,
6396 ui_out_emit_list, ui_out_emit_tuple.
6397 (mi_cmd_var_update): Likewise.
6398
ca5909c7
TT
63992017-09-09 Tom Tromey <tom@tromey.com>
6400
6401 * mi/mi-interp.c (mi_user_selected_context_changed): Use
6402 ui_out_redirect_pop.
6403 * guile/scm-ports.c (ioscm_with_output_to_port_worker): Use
6404 ui_out_redirect_pop.
6405 * utils.c (do_ui_out_redirect_pop)
6406 (make_cleanup_ui_out_redirect_pop): Remove.
6407 * top.c (execute_command_to_string): Use ui_out_redirect_pop.
6408 * utils.h (make_cleanup_ui_out_redirect_pop): Remove.
6409 * ui-out.h (ui_out_redirect_pop): New class.
6410
e6a2252a
TT
64112017-09-09 Tom Tromey <tom@tromey.com>
6412
6413 * mi/mi-main.c (output_cores): Use ui_out_emit_list.
6414 (list_available_thread_groups, mi_cmd_list_thread_groups)
6415 (mi_cmd_data_list_changed_registers, mi_cmd_data_read_memory)
6416 (mi_cmd_data_read_memory_bytes, mi_cmd_trace_frame_collected):
6417 Likewise.
6418
393702cd
TT
64192017-09-09 Tom Tromey <tom@tromey.com>
6420
6421 * disasm.c (gdb_pretty_print_disassembler::pretty_print_insn): Use
6422 ui_out_emit_tuple.
6423
76f9c9cf
TT
64242017-09-09 Tom Tromey <tom@tromey.com>
6425
6426 * target.c (flash_erase_command): Use ui_out_emit_tuple.
6427 * stack.c (print_frame): Use ui_out_emit_tuple.
6428 * spu-tdep.c (info_spu_event_command): Use ui_out_emit_tuple.
6429 (info_spu_mailbox_command, info_spu_dma_command)
6430 (info_spu_proxydma_command): Likewise.
6431 * mi/mi-main.c (mi_cmd_trace_frame_collected): Use
6432 ui_out_emit_tuple, gdb::byte_vector, bin2hex.
6433 * mi/mi-cmd-file.c (mi_cmd_file_list_shared_libraries): Use
6434 ui_out_emit_tuple.
6435 * breakpoint.c (print_it_watchpoint): Use ui_out_emit_tuple.
6436
dc9fe180
TT
64372017-09-09 Tom Tromey <tom@tromey.com>
6438
6439 * ui-out.h (make_cleanup_ui_out_table_begin_end): Remove.
6440 (class ui_out_emit_table): Update comment.
6441 * ui-out.c (do_cleanup_table_end)
6442 (make_cleanup_ui_out_table_begin_end): Remove.
6443 * spu-tdep.c (info_spu_mailbox_list): Use ui_out_emit_table.
6444 (info_spu_dma_cmdlist): Likewise.
6445 * probe.c (info_probes_for_ops): Use ui_out_emit_table.
6446 * darwin-nat-info.c (darwin_debug_regions_recurse): Use
6447 ui_out_emit_table.
6448
f8cc3da6
TT
64492017-09-09 Tom Tromey <tom@tromey.com>
6450
6451 * thread.c (print_thread_info_1): Use ui_out_emit_table,
6452 ui_out_emit_list, gdb::optional.
6453
481695ed
JB
64542017-09-09 John Baldwin <jhb@FreeBSD.org>
6455
6456 * aarch64-linux-nat.c: Remove _initialize_aarch64_linux_nat
6457 prototype.
6458 * aarch64-linux-tdep.c: Remove _initialize_aarch64_linux_tdep
6459 prototype.
6460 * aarch64-newlib-tdep.c: Remove _initialize_aarch64_newlib_tdep
6461 prototype.
6462 * aarch64-tdep.c: Remove _initialize_aarch64_tdep prototype.
6463 * ada-exp.y: Remove _initialize_ada_exp prototype.
6464 * ada-lang.c: Remove _initialize_ada_language prototype.
6465 * ada-tasks.c: Remove _initialize_tasks prototype.
6466 * addrmap.c: Remove _initialize_addrmap prototype.
6467 * agent.c: Remove _initialize_agent prototype.
6468 * aix-thread.c: Remove _initialize_aix_thread prototype.
6469 * alpha-bsd-nat.c: Remove _initialize_alphabsd_nat prototype.
6470 * alpha-linux-nat.c: Remove _initialize_alpha_linux_nat prototype.
6471 * alpha-linux-tdep.c: Remove _initialize_alpha_linux_tdep
6472 prototype.
6473 * alpha-nbsd-tdep.c: Remove _initialize_alphanbsd_tdep prototype.
6474 * alpha-obsd-tdep.c: Remove _initialize_alphaobsd_tdep prototype.
6475 * alpha-tdep.c: Remove _initialize_alpha_tdep prototype.
6476 * amd64-darwin-tdep.c: Remove _initialize_amd64_darwin_tdep
6477 prototype.
6478 * amd64-dicos-tdep.c: Remove _initialize_amd64_dicos_tdep
6479 prototype.
6480 * amd64-fbsd-nat.c: Remove _initialize_amd64fbsd_nat prototype.
6481 * amd64-fbsd-tdep.c: Remove _initialize_amd64fbsd_tdep prototype.
6482 * amd64-linux-nat.c: Remove _initialize_amd64_linux_nat prototype.
6483 * amd64-linux-tdep.c: Remove _initialize_amd64_linux_tdep
6484 prototype.
6485 * amd64-nbsd-nat.c: Remove _initialize_amd64nbsd_nat prototype.
6486 * amd64-nbsd-tdep.c: Remove _initialize_amd64nbsd_tdep prototype.
6487 * amd64-obsd-nat.c: Remove _initialize_amd64obsd_nat prototype.
6488 * amd64-obsd-tdep.c: Remove _initialize_amd64obsd_tdep prototype.
6489 * amd64-sol2-tdep.c: Remove _initialize_amd64_sol2_tdep prototype.
6490 * amd64-tdep.c: Remove _initialize_amd64_tdep prototype.
6491 * amd64-windows-nat.c: Remove _initialize_amd64_windows_nat
6492 prototype.
6493 * amd64-windows-tdep.c: Remove _initialize_amd64_windows_tdep
6494 prototype.
6495 * annotate.c: Remove _initialize_annotate prototype.
6496 * arc-newlib-tdep.c: Remove _initialize_arc_newlib_tdep prototype.
6497 * arc-tdep.c: Remove _initialize_arc_tdep prototype.
6498 * arch-utils.c: Remove _initialize_gdbarch_utils prototype.
6499 * arm-linux-nat.c: Remove _initialize_arm_linux_nat prototype.
6500 * arm-linux-tdep.c: Remove _initialize_arm_linux_tdep prototype.
6501 * arm-nbsd-tdep.c: Remove _initialize_arm_netbsd_tdep prototype.
6502 * arm-obsd-tdep.c: Remove _initialize_armobsd_tdep prototype.
6503 * arm-symbian-tdep.c: Remove _initialize_arm_symbian_tdep
6504 prototype.
6505 * arm-tdep.c: Remove _initialize_arm_tdep prototype.
6506 * arm-wince-tdep.c: Remove _initialize_arm_wince_tdep prototype.
6507 * auto-load.c: Remove _initialize_auto_load prototype.
6508 * auxv.c: Remove _initialize_auxv prototype.
6509 * avr-tdep.c: Remove _initialize_avr_tdep prototype.
6510 * ax-gdb.c: Remove _initialize_ax_gdb prototype.
6511 * bfin-linux-tdep.c: Remove _initialize_bfin_linux_tdep prototype.
6512 * bfin-tdep.c: Remove _initialize_bfin_tdep prototype.
6513 * break-catch-sig.c: Remove _initialize_break_catch_sig prototype.
6514 * break-catch-syscall.c: Remove _initialize_break_catch_syscall
6515 prototype.
6516 * break-catch-throw.c: Remove _initialize_break_catch_throw
6517 prototype.
6518 * breakpoint.c: Remove _initialize_breakpoint prototype.
6519 * bsd-uthread.c: Remove _initialize_bsd_uthread prototype.
6520 * btrace.c: Remove _initialize_btrace prototype.
6521 * charset.c: Remove _initialize_charset prototype.
6522 * cli/cli-cmds.c: Remove _initialize_cli_cmds prototype.
6523 * cli/cli-dump.c: Remove _initialize_cli_dump prototype.
6524 * cli/cli-interp.c: Remove _initialize_cli_interp prototype.
6525 * cli/cli-logging.c: Remove _initialize_cli_logging prototype.
6526 * cli/cli-script.c: Remove _initialize_cli_script prototype.
6527 * coff-pe-read.c: Remove _initialize_coff_pe_read prototype.
6528 * coffread.c: Remove _initialize_coffread prototype.
6529 * compile/compile.c: Remove _initialize_compile prototype.
6530 * complaints.c: Remove _initialize_complaints prototype.
6531 * completer.c: Remove _initialize_completer prototype.
6532 * copying.awk: Remove _initialize_copying prototype.
6533 * copying.c: Regenerate.
6534 * core-regset.c: Remove _initialize_core_regset prototype.
6535 * corefile.c: Remove _initialize_core prototype.
6536 * corelow.c: Remove _initialize_corelow prototype.
6537 * cp-abi.c: Remove _initialize_cp_abi prototype.
6538 * cp-namespace.c: Remove _initialize_cp_namespace prototype.
6539 * cp-support.c: Remove _initialize_cp_support prototype.
6540 * cp-valprint.c: Remove _initialize_cp_valprint prototype.
6541 * cris-linux-tdep.c: Remove _initialize_cris_linux_tdep prototype.
6542 * cris-tdep.c: Remove _initialize_cris_tdep prototype.
6543 * ctf.c: Remove _initialize_ctf prototype.
6544 * d-lang.c: Remove _initialize_d_language prototype.
6545 * darwin-nat-info.c: Remove _initialize_darwin_info_commands
6546 prototype.
6547 * darwin-nat.c: Remove _initialize_darwin_inferior prototype.
6548 * dbxread.c: Remove _initialize_dbxread prototype.
6549 * dcache.c: Remove _initialize_dcache prototype.
6550 * demangle.c: Remove _initialize_demangler prototype.
6551 * disasm-selftests.c: Remove _initialize_disasm_selftests
6552 prototype.
6553 * disasm.c: Remove _initialize_disasm prototype.
6554 * dtrace-probe.c: Remove _initialize_dtrace_probe prototype.
6555 * dummy-frame.c: Remove _initialize_dummy_frame prototype.
6556 * dwarf2-frame-tailcall.c: Remove _initialize_tailcall_frame
6557 prototype.
6558 * dwarf2-frame.c: Remove _initialize_dwarf2_frame prototype.
6559 * dwarf2expr.c: Remove _initialize_dwarf2expr prototype.
6560 * dwarf2loc.c: Remove _initialize_dwarf2loc prototype.
6561 * dwarf2read.c: Remove _initialize_dwarf2_read prototype.
6562 * elfread.c: Remove _initialize_elfread prototype.
6563 * exec.c: Remove _initialize_exec prototype.
6564 * extension.c: Remove _initialize_extension prototype.
6565 * f-lang.c: Remove _initialize_f_language prototype.
6566 * f-valprint.c: Remove _initialize_f_valprint prototype.
6567 * fbsd-nat.c: Remove _initialize_fbsd_nat prototype.
6568 * fbsd-tdep.c: Remove _initialize_fbsd_tdep prototype.
6569 * filesystem.c: Remove _initialize_filesystem prototype.
6570 * findcmd.c: Remove _initialize_mem_search prototype.
6571 * fork-child.c: Remove _initialize_fork_child prototype.
6572 * frame-base.c: Remove _initialize_frame_base prototype.
6573 * frame-unwind.c: Remove _initialize_frame_unwind prototype.
6574 * frame.c: Remove _initialize_frame prototype.
6575 * frv-linux-tdep.c: Remove _initialize_frv_linux_tdep prototype.
6576 * frv-tdep.c: Remove _initialize_frv_tdep prototype.
6577 * ft32-tdep.c: Remove _initialize_ft32_tdep prototype.
6578 * gcore.c: Remove _initialize_gcore prototype.
6579 * gdb_bfd.c: Remove _initialize_gdb_bfd prototype.
6580 * gdbarch.c: Regenerate.
6581 * gdbarch.sh: Remove _initialize_gdbarch prototype.
6582 * gdbtypes.c: Remove _initialize_gdbtypes prototype.
6583 * gnu-nat.c: Remove _initialize_gnu_nat prototype.
6584 * gnu-v2-abi.c: Remove _initialize_gnu_v2_abi prototype.
6585 * gnu-v3-abi.c: Remove _initialize_gnu_v3_abi prototype.
6586 * go-lang.c: Remove _initialize_go_language prototype.
6587 * go32-nat.c: Remove _initialize_go32_nat prototype.
6588 * guile/guile.c: Remove _initialize_guile prototype.
6589 * h8300-tdep.c: Remove _initialize_h8300_tdep prototype.
6590 * hppa-linux-nat.c: Remove _initialize_hppa_linux_nat prototype.
6591 * hppa-linux-tdep.c: Remove _initialize_hppa_linux_tdep prototype.
6592 * hppa-nbsd-nat.c: Remove _initialize_hppanbsd_nat prototype.
6593 * hppa-nbsd-tdep.c: Remove _initialize_hppanbsd_tdep prototype.
6594 * hppa-obsd-nat.c: Remove _initialize_hppaobsd_nat prototype.
6595 * hppa-obsd-tdep.c: Remove _initialize_hppaobsd_tdep prototype.
6596 * hppa-tdep.c: Remove _initialize_hppa_tdep prototype.
6597 * i386-bsd-nat.c: Remove _initialize_i386bsd_nat prototype.
6598 * i386-cygwin-tdep.c: Remove _initialize_i386_cygwin_tdep
6599 prototype.
6600 * i386-darwin-tdep.c: Remove _initialize_i386_darwin_tdep
6601 prototype.
6602 * i386-dicos-tdep.c: Remove _initialize_i386_dicos_tdep prototype.
6603 * i386-fbsd-nat.c: Remove _initialize_i386fbsd_nat prototype.
6604 * i386-fbsd-tdep.c: Remove _initialize_i386fbsd_tdep prototype.
6605 * i386-gnu-nat.c: Remove _initialize_i386gnu_nat prototype.
6606 * i386-gnu-tdep.c: Remove _initialize_i386gnu_tdep prototype.
6607 * i386-linux-nat.c: Remove _initialize_i386_linux_nat prototype.
6608 * i386-linux-tdep.c: Remove _initialize_i386_linux_tdep prototype.
6609 * i386-nbsd-nat.c: Remove _initialize_i386nbsd_nat prototype.
6610 * i386-nbsd-tdep.c: Remove _initialize_i386nbsd_tdep prototype.
6611 * i386-nto-tdep.c: Remove _initialize_i386nto_tdep prototype.
6612 * i386-obsd-nat.c: Remove _initialize_i386obsd_nat prototype.
6613 * i386-obsd-tdep.c: Remove _initialize_i386obsd_tdep prototype.
6614 * i386-sol2-nat.c: Remove _initialize_amd64_sol2_nat prototype.
6615 * i386-sol2-tdep.c: Remove _initialize_amd64_sol2_tdep prototype.
6616 * i386-tdep.c: Remove _initialize_i386_tdep prototype.
6617 * i386-windows-nat.c: Remove _initialize_i386_windows_nat
6618 prototype.
6619 * ia64-libunwind-tdep.c: Remove _initialize_libunwind_frame
6620 prototype.
6621 * ia64-linux-nat.c: Remove _initialize_ia64_linux_nat prototype.
6622 * ia64-linux-tdep.c: Remove _initialize_ia64_linux_tdep prototype.
6623 * ia64-tdep.c: Remove _initialize_ia64_tdep prototype.
6624 * ia64-vms-tdep.c: Remove _initialize_ia64_vms_tdep prototype.
6625 * infcall.c: Remove _initialize_infcall prototype.
6626 * infcmd.c: Remove _initialize_infcmd prototype.
6627 * inferior.c: Remove _initialize_inferiors prototype.
6628 * inflow.c: Remove _initialize_inflow prototype.
6629 * infrun.c: Remove _initialize_infrun prototype.
6630 * interps.c: Remove _initialize_interpreter prototype.
6631 * iq2000-tdep.c: Remove _initialize_iq2000_tdep prototype.
6632 * jit.c: Remove _initialize_jit prototype.
6633 * language.c: Remove _initialize_language prototype.
6634 * linux-fork.c: Remove _initialize_linux_fork prototype.
6635 * linux-nat.c: Remove _initialize_linux_nat prototype.
6636 * linux-tdep.c: Remove _initialize_linux_tdep prototype.
6637 * linux-thread-db.c: Remove _initialize_thread_db prototype.
6638 * lm32-tdep.c: Remove _initialize_lm32_tdep prototype.
6639 * m2-lang.c: Remove _initialize_m2_language prototype.
6640 * m32c-tdep.c: Remove _initialize_m32c_tdep prototype.
6641 * m32r-linux-nat.c: Remove _initialize_m32r_linux_nat prototype.
6642 * m32r-linux-tdep.c: Remove _initialize_m32r_linux_tdep prototype.
6643 * m32r-tdep.c: Remove _initialize_m32r_tdep prototype.
6644 * m68hc11-tdep.c: Remove _initialize_m68hc11_tdep prototype.
6645 * m68k-bsd-nat.c: Remove _initialize_m68kbsd_nat prototype.
6646 * m68k-bsd-tdep.c: Remove _initialize_m68kbsd_tdep prototype.
6647 * m68k-linux-nat.c: Remove _initialize_m68k_linux_tdep prototype.
6648 * m68k-linux-tdep.c: Remove _initialize_m68k_linux_tdep prototype.
6649 * m68k-tdep.c: Remove _initialize_m68k_tdep prototype.
6650 * m88k-bsd-nat.c: Remove _initialize_m68kbsd_nat prototype.
6651 * m88k-tdep.c: Remove _initialize_m68kbsd_tdep prototype.
6652 * machoread.c: Remove _initialize_machoread prototype.
6653 * macrocmd.c: Remove _initialize_macrocmd prototype.
6654 * macroscope.c: Remove _initialize_macroscope prototype.
6655 * maint.c: Remove _initialize_maint_cmds prototype.
6656 * mdebugread.c: Remove _initialize_mdebugread prototype.
6657 * memattr.c: Remove _initialize_mem prototype.
6658 * mep-tdep.c: Remove _initialize_mep_tdep prototype.
6659 * mi/mi-cmd-env.c: Remove _initialize_mi_cmd_env prototype.
6660 * mi/mi-cmds.c: Remove _initialize_mi_cmds prototype.
6661 * mi/mi-interp.c: Remove _initialize_mi_interp prototype.
6662 * mi/mi-main.c: Remove _initialize_mi_main prototype.
6663 * microblaze-linux-tdep.c: Remove
6664 _initialize_microblaze_linux_tdep prototype.
6665 * microblaze-tdep.c: Remove _initialize_microblaze_tdep prototype.
6666 * mips-fbsd-nat.c: Remove _initialize_mips_fbsd_nat prototype.
6667 * mips-fbsd-tdep.c: Remove _initialize_mips_fbsd_tdep prototype.
6668 * mips-linux-nat.c: Remove _initialize_mips_linux_nat prototype.
6669 * mips-linux-tdep.c: Remove _initialize_mips_linux_tdep prototype.
6670 * mips-nbsd-nat.c: Remove _initialize_mipsnbsd_nat prototype.
6671 * mips-nbsd-tdep.c: Remove _initialize_mipsnbsd_tdep prototype.
6672 * mips-sde-tdep.c: Remove _initialize_mips_sde_tdep prototype.
6673 * mips-tdep.c: Remove _initialize_mips_tdep prototype.
6674 * mips64-obsd-nat.c: Remove _initialize_mips64obsd_nat prototype.
6675 * mips64-obsd-tdep.c: Remove _initialize_mips64obsd_tdep
6676 prototype.
6677 * mipsread.c: Remove _initialize_mipsread prototype.
6678 * mn10300-linux-tdep.c: Remove _initialize_mn10300_linux_tdep
6679 prototype.
6680 * mn10300-tdep.c: Remove _initialize_mn10300_tdep prototype.
6681 * moxie-tdep.c: Remove _initialize_moxie_tdep prototype.
6682 * msp430-tdep.c: Remove _initialize_msp430_tdep prototype.
6683 * mt-tdep.c: Remove _initialize_mt_tdep prototype.
6684 * nds32-tdep.c: Remove _initialize_nds32_tdep prototype.
6685 * nios2-linux-tdep.c: Remove _initialize_nios2_linux_tdep
6686 prototype.
6687 * nios2-tdep.c: Remove _initialize_nios2_tdep prototype.
6688 * nto-procfs.c: Remove _initialize_procfs prototype.
6689 * nto-tdep.c: Remove _initialize_nto_tdep prototype.
6690 * objc-lang.c: Remove _initialize_objc_language prototype.
6691 * objfiles.c: Remove _initialize_objfiles prototype.
6692 * observer.c: Remove observer_test_first_notification_function,
6693 observer_test_second_notification_function,
6694 observer_test_third_notification_function, and
6695 _initialize_observer prototypes.
6696 * opencl-lang.c: Remove _initialize_opencl_language prototypes.
6697 * osabi.c: Remove _initialize_gdb_osabi prototype.
6698 * osdata.c: Remove _initialize_osdata prototype.
6699 * p-valprint.c: Remove _initialize_pascal_valprint prototype.
6700 * parse.c: Remove _initialize_parse prototype.
6701 * ppc-fbsd-nat.c: Remove _initialize_ppcfbsd_nat prototype.
6702 * ppc-fbsd-tdep.c: Remove _initialize_ppcfbsd_tdep prototype.
6703 * ppc-linux-nat.c: Remove _initialize_ppc_linux_nat prototype.
6704 * ppc-linux-tdep.c: Remove _initialize_ppc_linux_tdep prototype.
6705 * ppc-nbsd-nat.c: Remove _initialize_ppcnbsd_nat prototype.
6706 * ppc-nbsd-tdep.c: Remove _initialize_ppcnbsd_tdep prototype.
6707 * ppc-obsd-nat.c: Remove _initialize_ppcobsd_nat prototype.
6708 * ppc-obsd-tdep.c: Remove _initialize_ppcobsd_tdep prototype.
6709 * printcmd.c: Remove _initialize_printcmd prototype.
6710 * probe.c: Remove _initialize_probe prototype.
6711 * proc-api.c: Remove _initialize_proc_api prototype.
6712 * proc-events.c: Remove _initialize_proc_events prototype.
6713 * proc-service.c: Remove _initialize_proc_service prototype.
6714 * procfs.c: Remove _initialize_procfs prototype.
6715 * psymtab.c: Remove _initialize_psymtab prototype.
6716 * python/python.c: Remove _initialize_python prototype.
6717 * ravenscar-thread.c: Remove _initialize_ravenscar prototype.
6718 * record-btrace.c: Remove _initialize_record_btrace prototype.
6719 * record-full.c: Remove _initialize_record_full prototype.
6720 * record.c: Remove _initialize_record prototype.
6721 * regcache.c: Remove _initialize_regcache prototype.
6722 * reggroups.c: Remove _initialize_reggroup prototype.
6723 * remote-notif.c: Remove _initialize_notif prototype.
6724 * remote-sim.c: Remove _initialize_remote_sim prototype.
6725 * remote.c: Remove _initialize_remote prototype.
6726 * reverse.c: Remove _initialize_reverse prototype.
6727 * rl78-tdep.c: Remove _initialize_rl78_tdep prototype.
6728 * rs6000-aix-tdep.c: Remove _initialize_rs6000_aix_tdep prototype.
6729 * rs6000-lynx178-tdep.c: Remove _initialize_rs6000_lynx178_tdep
6730 prototype.
6731 * rs6000-nat.c: Remove _initialize_rs6000_nat prototype.
6732 * rs6000-tdep.c: Remove _initialize_rs6000_tdep prototype.
6733 * rust-exp.y: Remove _initialize_rust_exp prototype.
6734 * rx-tdep.c: Remove _initialize_rx_tdep prototype.
6735 * s390-linux-nat.c: Remove _initialize_s390_nat prototype.
6736 * s390-linux-tdep.c: Remove _initialize_s390_tdep prototype.
6737 * score-tdep.c: Remove _initialize_score_tdep prototype.
6738 * selftest-arch.c: Remove _initialize_selftests_foreach_arch
6739 prototype.
6740 * ser-go32.c: Remove _initialize_ser_dos prototype.
6741 * ser-mingw.c: Remove _initialize_ser_windows prototype.
6742 * ser-pipe.c: Remove _initialize_ser_pipe prototype.
6743 * ser-tcp.c: Remove _initialize_ser_tcp prototype.
6744 * ser-unix.c: Remove _initialize_ser_hardwire prototype.
6745 * serial.c: Remove _initialize_serial prototype.
6746 * sh-linux-tdep.c: Remove _initialize_sh_linux_tdep prototype.
6747 * sh-nbsd-nat.c: Remove _initialize_shnbsd_nat prototype.
6748 * sh-nbsd-tdep.c: Remove _initialize_shnbsd_tdep prototype.
6749 * sh-tdep.c: Remove _initialize_sh_tdep prototype.
6750 * skip.c: Remove _initialize_step_skip prototype.
6751 * sol-thread.c: Remove _initialize_sol_thread prototype.
6752 * solib-aix.c: Remove _initialize_solib_aix prototype.
6753 * solib-darwin.c: Remove _initialize_darwin_solib prototype.
6754 * solib-dsbt.c: Remove _initialize_dsbt_solib prototype.
6755 * solib-frv.c: Remove _initialize_frv_solib prototype.
6756 * solib-spu.c: Remove _initialize_spu_solib prototype.
6757 * solib-svr4.c: Remove _initialize_svr4_solib prototype.
6758 * solib-target.c: Remove _initialize_solib_target prototype.
6759 * solib.c: Remove _initialize_solib prototype.
6760 * source.c: Remove _initialize_source prototype.
6761 * sparc-linux-nat.c: Remove _initialize_sparc_linux_nat prototype.
6762 * sparc-linux-tdep.c: Remove _initialize_sparc_linux_tdep
6763 prototype.
6764 * sparc-nat.c: Remove _initialize_sparc_nat prototype.
6765 * sparc-nbsd-nat.c: Remove _initialize_sparcnbsd_nat prototype.
6766 * sparc-nbsd-tdep.c: Remove _initialize_sparcnbsd_tdep prototype.
6767 * sparc-obsd-tdep.c: Remove _initialize_sparc32obsd_tdep
6768 prototype.
6769 * sparc-sol2-nat.c: Remove _initialize_sparc_sol2_nat prototype.
6770 * sparc-sol2-tdep.c: Remove _initialize_sparc_sol2_tdep prototype.
6771 * sparc-tdep.c: Remove _initialize_sparc_tdep prototype.
6772 * sparc64-fbsd-nat.c: Remove _initialize_sparc64fbsd_nat
6773 prototype.
6774 * sparc64-fbsd-tdep.c: Remove _initialize_sparc64fbsd_tdep
6775 prototype.
6776 * sparc64-linux-nat.c: Remove _initialize_sparc64_linux_nat
6777 prototype.
6778 * sparc64-linux-tdep.c: Remove _initialize_sparc64_linux_tdep
6779 prototype.
6780 * sparc64-nat.c: Remove _initialize_sparc64_nat prototype.
6781 * sparc64-nbsd-nat.c: Remove _initialize_sparc64nbsd_nat
6782 prototype.
6783 * sparc64-nbsd-tdep.c: Remove _initialize_sparc64nbsd_tdep
6784 prototype.
6785 * sparc64-obsd-nat.c: Remove _initialize_sparc64obsd_nat
6786 prototype.
6787 * sparc64-obsd-tdep.c: Remove _initialize_sparc64obsd_tdep
6788 prototype.
6789 * sparc64-sol2-tdep.c: Remove _initialize_sparc64_sol2_tdep
6790 prototype.
6791 * spu-linux-nat.c: Remove _initialize_spu_nat prototype.
6792 * spu-multiarch.c: Remove _initialize_spu_multiarch prototype.
6793 * spu-tdep.c: Remove _initialize_spu_tdep prototype.
6794 * stabsread.c: Remove _initialize_stabsread prototype.
6795 * stack.c: Remove _initialize_stack prototype.
6796 * stap-probe.c: Remove _initialize_stap_probe prototype.
6797 * std-regs.c: Remove _initialize_frame_reg prototype.
6798 * symfile-debug.c: Remove _initialize_symfile_debug prototype.
6799 * symfile-mem.c: Remove _initialize_symfile_mem prototype.
6800 * symfile.c: Remove _initialize_symfile prototype.
6801 * symmisc.c: Remove _initialize_symmisc prototype.
6802 * symtab.c: Remove _initialize_symtab prototype.
6803 * target-dcache.c: Remove _initialize_target_dcache prototype.
6804 * target-descriptions.c: Remove _initialize_target_descriptions
6805 prototype.
6806 * thread.c: Remove _initialize_thread prototype.
6807 * tic6x-linux-tdep.c: Remove _initialize_tic6x_linux_tdep
6808 prototype.
6809 * tic6x-tdep.c: Remove _initialize_tic6x_tdep prototype.
6810 * tilegx-linux-nat.c: Remove _initialize_tile_linux_nat prototype.
6811 * tilegx-linux-tdep.c: Remove _initialize_tilegx_linux_tdep
6812 prototype.
6813 * tilegx-tdep.c: Remove _initialize_tilegx_tdep prototype.
6814 * tracefile-tfile.c: Remove _initialize_tracefile_tfile prototype.
6815 * tracefile.c: Remove _initialize_tracefile prototype.
6816 * tracepoint.c: Remove _initialize_tracepoint prototype.
6817 * tui/tui-hooks.c: Remove _initialize_tui_hooks prototype.
6818 * tui/tui-interp.c: Remove _initialize_tui_interp prototype.
6819 * tui/tui-layout.c: Remove _initialize_tui_layout prototype.
6820 * tui/tui-regs.c: Remove _initialize_tui_regs prototype.
6821 * tui/tui-stack.c: Remove _initialize_tui_stack prototype.
6822 * tui/tui-win.c: Remove _initialize_tui_win prototype.
6823 * tui/tui.c: Remove _initialize_tui prototype.
6824 * typeprint.c: Remove _initialize_typeprint prototype.
6825 * user-regs.c: Remove _initialize_user_regs prototype.
6826 * utils.c: Remove _initialize_utils prototype.
6827 * v850-tdep.c: Remove _initialize_v850_tdep prototype.
6828 * valarith.c: Remove _initialize_valarith prototype.
6829 * valops.c: Remove _initialize_valops prototype.
6830 * valprint.c: Remove _initialize_valprint prototype.
6831 * value.c: Remove _initialize_values prototype.
6832 * varobj.c: Remove _initialize_varobj prototype.
6833 * vax-bsd-nat.c: Remove _initialize_vaxbsd_nat prototype.
6834 * vax-nbsd-tdep.c: Remove _initialize_vaxnbsd_tdep prototype.
6835 * vax-tdep.c: Remove _initialize_vax_tdep prototype.
6836 * windows-nat.c: Remove _initialize_windows_nat,
6837 _initialize_check_for_gdb_ini, and _initialize_loadable
6838 prototypes.
6839 * windows-tdep.c: Remove _initialize_windows_tdep prototype.
6840 * xcoffread.c: Remove _initialize_xcoffread prototype.
6841 * xml-support.c: Remove _initialize_xml_support prototype.
6842 * xstormy16-tdep.c: Remove _initialize_xstormy16_tdep prototype.
6843 * xtensa-linux-nat.c: Remove _initialize_xtensa_linux_nat
6844 prototype.
6845 * xtensa-linux-tdep.c: Remove _initialize_xtensa_linux_tdep
6846 prototype.
6847 * xtensa-tdep.c: Remove _initialize_xtensa_tdep prototype.
6848
a611b5cb
KS
68492017-09-08 Keith Seitz <keiths@redhat.com>
6850
6851 * dwarf2read.c (struct field_info) <fnfields>: Remove unused
6852 field.
6853
469412dd
CW
68542017-09-08 Christoph Weinmann <christoph.t.weinmann@intel.com>
6855
6856 * f-valprint.c (f_val_print): Remove check for one byte
6857 sized integers. Remove printing of character type.
6858
a5ad232b
FP
68592017-09-08 Frank Penczek <frank.penczek@intel.com>
6860 Christoph Weinmann <christoph.t.weinmann@intel.com>
6861 Bernhard Heckel <bernhard.heckel@intel.com>
6862
6863 * f-typeprint.c (f_type_print_base): Use fprintfi_filtered
6864 to maintain proper indentation when printing pointers/refs.
6865
e5014227
JB
68662017-09-07 Joel Brobecker <brobecker@adacore.com>
6867
6868 GDB 8.0.1 released.
6869
63c99141
JB
68702017-09-07 Joel Brobecker <brobecker@adacore.com>
6871
6872 * NEWS (Changes in GDB 7.11): Remove entry for QStartupWithShell.
6873
69c1e056
TT
68742017-09-05 Tom Tromey <tom@tromey.com>
6875
6876 * parse.c (funcall_chain): Now a std::vector.
6877 (start_arglist, end_arglist): Simplify.
6878 (free_funcalls): Remove.
6879 (parse_exp_in_context_1): Remove cleanup.
6880
fef704bf
TT
68812017-09-05 Tom Tromey <tom@tromey.com>
6882
6883 * go-exp.y (go_parse): Don't create a cleanup.
6884
5613c585
TT
68852017-09-05 Tom Tromey <tom@tromey.com>
6886
6887 * d-exp.y (PrimaryExpression): Use std::string.
6888 (d_parse): Don't create a cleanup.
6889
eae49211
TT
68902017-09-05 Tom Tromey <tom@tromey.com>
6891
6892 * utils.c (do_clear_parser_state): Remove.
6893 (make_cleanup_clear_parser_state): Remove.
6894 * p-exp.y (pascal_parse): Use scoped_restore.
6895 * m2-exp.y (m2_parse): Use scoped_restore.
6896 * f-exp.y (f_parse): Use scoped_restore.
6897 * d-exp.y (d_parse): Use scoped_restore.
6898 * c-exp.y (c_parse): Use scoped_restore.
6899 * ada-exp.y (ada_parse): Use scoped_restore.
6900 * utils.h (make_cleanup_clear_parser_state): Remove.
6901
73b9be8b
KS
69022017-09-06 Keith Seitz <keiths@redhat.com>
6903
6904 * dwarf2read.c (dw2_linkage_name_attr): New function.
6905 (dw2_linkage_name): New function.
6906 (dwarf2_compute_name, dwarf2_physname, read_call_site_scope)
6907 (guess_full_die_structure_name, dwarf2_name): Use dw2_linkage_name.
6908 (anonymous_struct_prefix, dwarf2_name): Use dw2_linkage_name_attr.
6909
a102602b
KR
69102017-09-06 Kamil Rytarowski <n54@gmx.com>
6911
6912 * config/djgpp/djconfig.sh: Correct shell portability issue.
6913
28ad437d
KR
69142017-09-06 Kamil Rytarowski <n54@gmx.com>
6915
6916 * configure.nat: Define HAVE_NATIVE_GCORE_HOST on NetBSD.
6917
351787dd
JB
69182017-09-06 John Baldwin <jhb@FreeBSD.org>
6919
6920 * Makefile.in (ALLDEPFILES): Add mips-fbsd-nat.c.
6921 * NEWS: Mention new FreeBSD/mips native configuration.
6922 * configure.host: Add aarch64*-*-freebsd*.
6923 * configure.nat: Likewise.
6924 * aarch64-fbsd-nat.c: New file.
6925
c0f84956
JB
69262017-09-06 John Baldwin <jhb@FreeBSD.org>
6927
6928 * Makefile.in (ALL_64_TARGET_OBS): Add aarch64-fbsd-tdep.o.
6929 (ALLDEPFILES): Add aarch64-fbsd-tdep.c.
6930 * NEWS: Mention new FreeBSD/aarch64 target.
6931 * configure.tgt: Add aarch64*-*-freebsd*.
6932 * aarch64-fbsd-tdep.c: New file.
6933 * aarch64-fbsd-tdep.h: New file.
6934
7610297a
KR
69352017-09-06 Kamil Rytarowski <n54@gmx.com>
6936
6937 * MAINTAINERS (Write After Approval): Add Kamil Rytarowski.
6938
fbd1b771
JK
69392017-09-06 Jan Kratochvil <jan.kratochvil@redhat.com>
6940
6941 * parse.c (find_minsym_type_and_address): Don't relocate addresses
6942 of TLS symbols.
6943
5ca79eae
PW
69442017-09-05 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6945
6946 * objfiles.c (get_objfile_bfd_data): Remove useless obstack_init
6947 call.
6948
bf93d7ba
SM
69492017-09-05 Simon Marchi <simon.marchi@ericsson.com>
6950
6951 * infrun.c (follow_exec): Call add_thread after
6952 target_find_description.
6953
1bb7c059
SM
69542017-09-05 Simon Marchi <simon.marchi@ericsson.com>
6955
6956 * infrun.c (handle_inferior_event_1): When exec'ing, read
6957 stop_pc after follow_exec.
6958
fc809827
SM
69592017-09-05 Simon Marchi <simon.marchi@ericsson.com>
6960
6961 * remote.c (process_g_packet): Update error message.
6962
d2fcdd85
YQ
69632017-09-05 Yao Qi <yao.qi@linaro.org>
6964
6965 * configure.tgt (gdb_target_obs): Add i386.o for x86_64-*
6966 targets.
6967
e69570ee
PA
69682017-09-05 Pedro Alves <palves@redhat.com>
6969
6970 * eval.c (eval_call, evaluate_funcall): New functions, factored
6971 out from ...
6972 (evaluate_subexp_standard): ... this.
6973
22916b07
YQ
69742017-09-05 Yao Qi <yao.qi@linaro.org>
6975
6976 * amd64-tdep.c (amd64_target_description): Create target
6977 descriptions.
6978 (_initialize_amd64_tdep): Don't call functions
6979 initialize_tdesc_amd64_*. Add self tests.
6980 * arch/amd64.c (amd64_create_target_description): Add parameter
6981 is_linux. Call set_tdesc_osabi if is_linux is true.
6982 * arch/amd64.h (amd64_create_target_description): Update the
6983 declaration.
6984 * arch/i386.c (i386_create_target_description): Add parameter
6985 is_linux. Call set_tdesc_osabi if is_linux is true.
6986 * arch/i386.h (i386_create_target_description): Update
6987 declaration.
6988 * configure.tgt: Add i386.o to gdb_target_obs.
6989 * features/Makefile (XMLTOC): Remove i386/*.xml.
6990 * features/i386/amd64-avx-avx512.c: Remove.
6991 * features/i386/amd64-avx-mpx-avx512-pku.c: Remove.
6992 * features/i386/amd64-avx-mpx.c: Remove.
6993 * features/i386/amd64-avx.c: Remove.
6994 * features/i386/amd64-mpx.c: Remove.
6995 * features/i386/amd64.c: Remove.
6996 * features/i386/i386-avx-avx512.c: Remove.
6997 * features/i386/i386-avx-mpx-avx512-pku.c: Remove.
6998 * features/i386/i386-avx-mpx.c: Remove.
6999 * features/i386/i386-avx.c: Remove.
7000 * features/i386/i386-mmx.c: Remove.
7001 * features/i386/i386-mpx.c: Remove.
7002 * features/i386/i386.c: Remove.
7003 * i386-tdep.c: Don't include features/i386/i386*.c., include
7004 target-descriptions.h and arch/i386.h.
7005 (i386_target_description): Create target descriptions.
7006 (i386_gdbarch_init): Don't call initialize_tdesc_i386_*
7007 functions. Do self tests.
7008
0854b7b1
YQ
70092017-09-05 Yao Qi <yao.qi@linaro.org>
7010
7011 * features/Makefile (XMLTOC): Remove i386/amd64XXX-linux.xml.
7012 * features/i386/amd64-avx-avx512-linux.c: Removed.
7013 * features/i386/amd64-avx-linux.c: Removed.
7014 * features/i386/amd64-avx-mpx-avx512-pku-linux.c: Removed.
7015 * features/i386/amd64-avx-mpx-linux.c: Removed.
7016 * features/i386/amd64-linux.c: Removed.
7017 * features/i386/amd64-mpx-linux.c: Removed.
7018 * features/i386/x32-avx-avx512-linux.c: Removed.
7019 * features/i386/x32-avx-linux.c: Removed.
7020 * features/i386/x32-linux.c: Removed.
7021
b4570e4b
YQ
70222017-09-05 Yao Qi <yao.qi@linaro.org>
7023
7024 * amd64-linux-tdep.c: Include arch/amd64.h. Don't include
7025 features/i386/*.c.
7026 (amd64_linux_read_description): Call
7027 amd64_create_target_description.
7028 * arch/amd64.c: New file.
7029 * arch/amd64.h: New file.
7030 * configure.tgt (x86_64-*-linux*): Append amd64.o.
7031 * Makefile.in (ALL_64_TARGET_OBS): Append amd64.o.
7032
6c73f67f
YQ
70332017-09-05 Yao Qi <yao.qi@linaro.org>
7034
7035 * amd64-linux-tdep.c: Don't include amd64-XXX-linux and
7036 x32-XXX-linux.c. Include 64bit-XX.c and x32-XX.c.
7037 (amd64_linux_read_description): Create target descriptions.
7038 (_initialize_amd64_linux_tdep): Don't call initialize_tdesc_XXX
7039 functions. Add unit tests.
7040 * features/Makefile (FEATURE_XMLFILES): Append 64bit-XXX.xml and
7041 x32-core.xml.
7042 * features/i386/64bit-avx.c: Generated.
7043 * features/i386/64bit-avx512.c: Generated.
7044 * features/i386/64bit-core.c: Generated.
7045 * features/i386/64bit-linux.c: Generated.
7046 * features/i386/64bit-mpx.c: Generated.
7047 * features/i386/64bit-pkeys.c: Generated.
7048 * features/i386/64bit-segments.c: Generated.
7049 * features/i386/64bit-sse.c: Generated.
7050 * features/i386/x32-core.c: Generated.
7051 * target-descriptions.c (maint_print_c_tdesc_cmd): Print feature
7052 c files for amd64-linux and x32-linux.
7053
9d3d478b
YQ
70542017-09-05 Yao Qi <yao.qi@linaro.org>
7055
7056 * amd64-linux-tdep.c (amd64_linux_read_description): New
7057 function.
7058 (amd64_linux_core_read_description): Call
7059 amd64_linux_read_description.
7060 (amd64_linux_init_abi): Likewise.
7061 (amd64_x32_linux_init_abi): Likewise.
7062 * amd64-linux-tdep.h (amd64_linux_read_description): Declare.
7063 * x86-linux-nat.c (x86_linux_read_description): Call
7064 amd64_linux_read_description.
7065
b9f1d50f
YQ
70662017-09-05 Yao Qi <yao.qi@linaro.org>
7067
7068 * amd64-linux-tdep.c (amd64_linux_core_read_description): Update
7069 comments.
7070
188c9e6d
YQ
70712017-09-05 Yao Qi <yao.qi@linaro.org>
7072
7073 * features/Makefile (XMLTOC): Remove i386/i386-XX-linux.xml.
7074 * features/i386/i386-avx-avx512-linux.c: Remove.
7075 * features/i386/i386-avx-linux.c: Remove.
7076 * features/i386/i386-avx-mpx-avx512-pku-linux.c: Remove.
7077 * features/i386/i386-avx-mpx-linux.c: Remove.
7078 * features/i386/i386-linux.c: Remove.
7079 * features/i386/i386-mmx-linux.c: Remove.
7080 * features/i386/i386-mpx-linux.c: Remove.
7081
5f035c07
YQ
70822017-09-05 Yao Qi <yao.qi@linaro.org>
7083
7084 * Makefile.in (ALL_TARGET_OBS): Add i386.o.
7085 (SFILES): Add arch/i386.c.
7086 (HFILES_NO_SRCDIR): Add arch/i386.h.
7087 * arch/i386.c: New file.
7088 * arch/i386.h: New file.
7089 * arch/tdesc.h (allocate_target_description): Declare.
7090 (set_tdesc_architecture): Declare.
7091 (set_tdesc_osabi): Declare.
7092 * configure.tgt (i[34567]86-*-linux*): Add i386.o.
7093 * i386-linux-tdep.c: Don't include ../features/i386/32bit-XXX.c.
7094 include arch/i386.h.
7095 (i386_linux_read_description): Remove code and call
7096 i386_create_target_description.
7097 (set_tdesc_architecture): New function.
7098 (set_tdesc_osabi): New function.
7099 * target-descriptions.h (allocate_target_description): Remove.
7100
0abe8a89
YQ
71012017-09-05 Yao Qi <yao.qi@linaro.org>
7102
7103 * arch/tdesc.h (tdesc_create_feature): Add an argument xml.
7104 * target-descriptions.c (tdesc_create_feature): Likewise, and
7105 adjust code.
7106 * features/i386/32bit-avx.c: Re-generated.
7107 * features/i386/32bit-avx512.c: Re-generated.
7108 * features/i386/32bit-core.c: Re-generated.
7109 * features/i386/32bit-linux.c: Re-generated.
7110 * features/i386/32bit-mpx.c: Re-generated.
7111 * features/i386/32bit-pkeys.c: Re-generated.
7112 * features/i386/32bit-sse.c: Re-generated.
7113
0a188386
YQ
71142017-09-05 Yao Qi <yao.qi@linaro.org>
7115
7116 * regformats/regdef.h (struct reg): Override operator == and !=.
7117
f49ff000
YQ
71182017-09-05 Yao Qi <yao.qi@linaro.org>
7119
7120 * arch/tdesc.h: New file.
7121 * regformats/regdat.sh: Generate code using tdesc_create_reg.
7122 * target-descriptions.c: Update comments.
7123 * target-descriptions.h: Include "arch/tdesc.h". Remove the
7124 declarations.
7125 * features/i386/32bit-avx.c: Re-generated.
7126 * features/i386/32bit-avx512.c: Re-generated.
7127 * features/i386/32bit-core.c: Re-generated.
7128 * features/i386/32bit-linux.c: Re-generated.
7129 * features/i386/32bit-mpx.c: Re-generated.
7130 * features/i386/32bit-pkeys.c: Re-generated.
7131 * features/i386/32bit-sse.c: Re-generated.
7132
f7000548
YQ
71332017-09-05 Yao Qi <yao.qi@linaro.org>
7134
7135 * regformats/regdat.sh: Update generated code.
7136
c9a5e2a5
YQ
71372017-09-05 Yao Qi <yao.qi@linaro.org>
7138
7139 * regformats/regdat.sh: Adjust code order.
7140
d6b687ac
SM
71412017-09-05 Simon Marchi <simon.marchi@ericsson.com>
7142
7143 * expprint.c (dump_subexp_body_standard): Use constant format
7144 string in fprintf_filtered call.
7145
a379bfd0
JB
71462017-09-04 John Baldwin <jhb@FreeBSD.org>
7147
7148 * configure.nat: Add "x86-nat.o x86-dregs.o" for NetBSD/amd64 and
7149 NetBSD/i386.
7150 * x86-bsd-nat.c [!DBREG_DRX && __NetBSD__]: Define DBREG_DRX.
7151
f7efc967
JB
71522017-09-04 John Baldwin <jhb@FreeBSD.org>
7153
7154 * bsd-kvm.o: Make <sys/user.h> conditional on HAVE_SYS_USER_H.
7155
c49fbc6c
JB
71562017-09-04 John Baldwin <jhb@FreeBSD.org>
7157
7158 * bsd-kvm.o: Define _KMEMUSER.
7159 * configure.ac: Define _KMEMUSER when checking for "struct lwp".
7160 * configure: Regenerate.
7161
26562e73
JB
71622017-09-04 John Baldwin <jhb@FreeBSD.org>
7163
7164 * amd64-fbsd-nat.c: Add include of "x86-xstate.h".
7165 * i386-fbsd-nat.c: Likewise.
7166
31cf1487
JB
71672017-09-04 John Baldwin <jhb@FreeBSD.org>
7168
7169 * unittests/array-view-selftests.c: Add include of <array>.
7170
5b9f8a7c
JB
71712017-09-04 John Baldwin <jhb@FreeBSD.org>
7172
7173 * spu-tdep.c (flush_ea_cache): Add missing argument to
7174 call_function_by_hand.
7175
d69cf9b2
PA
71762017-09-04 Pedro Alves <palves@redhat.com>
7177
7178 * NEWS (Safer support for debugging with no debug info): New.
7179
3693fdb3
PA
71802017-09-04 Pedro Alves <palves@redhat.com>
7181
7182 * c-exp.y (function_method, function_method_void): Add current
7183 instance flags to TYPE_INSTANCE.
7184 * dwarf2read.c (check_modifier): New.
7185 (compute_delayed_physnames): Assert that only C++ adds delayed
7186 physnames. Mark fn_fields as const/volatile depending on
7187 physname.
7188 * eval.c (make_params): New type_instance_flags parameter. Use
7189 it as the new type's instance flags.
7190 (evaluate_subexp_standard) <TYPE_INSTANCE>: Extract the instance
7191 flags element and pass it to make_params.
7192 * expprint.c (print_subexp_standard) <TYPE_INSTANCE>: Handle
7193 instance flags element.
7194 (dump_subexp_body_standard) <TYPE_INSTANCE>: Likewise.
7195 * gdbtypes.h: Include "enum-flags.h".
7196 (type_instance_flags): New enum-flags type.
7197 (TYPE_CONST, TYPE_VOLATILE, TYPE_RESTRICT, TYPE_ATOMIC)
7198 (TYPE_CODE_SPACE, TYPE_DATA_SPACE): Return boolean.
7199 * parse.c (operator_length_standard) <TYPE_INSTANCE>: Adjust.
7200 (follow_type_instance_flags): New function.
7201 (operator_check_standard) <TYPE_INSTANCE>: Adjust.
7202 * parser-defs.h (follow_type_instance_flags): Declare.
7203 * valops.c (value_struct_elt_for_reference): const/volatile must
7204 match too.
7205
e68cb8e0
PA
72062017-09-04 Pedro Alves <palves@redhat.com>
7207
7208 * cp-namespace.c (cp_search_static_and_baseclasses): Handle
7209 function/method scopes; lookup the nested name as a function local
7210 static variable.
7211
858be34c
PA
72122017-09-04 Pedro Alves <palves@redhat.com>
7213
7214 (%type <voidval>): Add function_method.
7215 * c-exp.y (exp): New production for calls with no arguments.
7216 (function_method, function_method_void_or_typelist): New
7217 productions.
7218 (exp): New production for "method()::static_var".
7219 * eval.c (evaluate_subexp_standard): Handle OP_FUNC_STATIC_VAR.
7220 * expprint.c (print_subexp_standard, dump_subexp_body_standard):
7221 Handle OP_FUNC_STATIC_VAR.
7222 * parse.c (operator_length_standard):
7223 Handle OP_FUNC_STATIC_VAR.
7224
dd5901a6
PA
72252017-09-04 Pedro Alves <palves@redhat.com>
7226
7227 * eval.c (evaluate_subexp_standard): Remove UNOP_MEMVAL_TLS
7228 handling.
7229 * expprint.c (print_subexp_standard, dump_subexp_body_standard):
7230 Ditto.
7231 * parse.c (operator_length_standard, operator_check_standard):
7232 Ditto.
7233 * std-operator.def (UNOP_MEMVAL_TLS): Delete.
7234
46a4882b
PA
72352017-09-04 Pedro Alves <palves@redhat.com>
7236
7237 * ax-gdb.c: Include "typeprint.h".
7238 (gen_expr_for_cast): New function.
7239 (gen_expr) <OP_CAST, OP_CAST_TYPE>: Use it.
7240 <OP_VAR_VALUE, OP_MSYM_VAR_VALUE>: Error out if the variable's
7241 type is unknown.
7242 * dwarf2read.c (new_symbol_full): Fallback to int instead of
7243 nodebug_data_symbol.
7244 * eval.c: Include "typeprint.h".
7245 (evaluate_subexp_standard) <OP_VAR_VALUE, OP_VAR_MSYM_VALUE>:
7246 Error out if symbol has unknown type.
7247 <UNOP_CAST, UNOP_CAST_TYPE>: Common bits factored out to
7248 evaluate_subexp_for_cast.
7249 (evaluate_subexp_for_address, evaluate_subexp_for_sizeof): Handle
7250 OP_VAR_MSYM_VALUE.
7251 (evaluate_subexp_for_cast): New function.
7252 * gdbtypes.c (init_nodebug_var_type): New function.
7253 (objfile_type): Use it to initialize types of variables with no
7254 debug info.
7255 * typeprint.c (error_unknown_type): New.
7256 * typeprint.h (error_unknown_type): New declaration.
7257 * compile/compile-c-types.c (convert_type_basic): Handle
7258 TYPE_CODE_ERROR; warn and fallback to int for variables with
7259 unknown type.
7260
fe13dfec
PA
72612017-09-04 Pedro Alves <palves@redhat.com>
7262
7263 * eval.c (evaluate_var_value): New function, factored out from ...
7264 (evaluate_subexp_standard): ... here.
7265
d008ee21
PA
72662017-09-04 Pedro Alves <palves@redhat.com>
7267
7268 * eval.c (evaluate_subexp_standard) <UNOP_COMPLEMENT, UNOP_ADDR>:
7269 Remove useless assignments to 'op'.
7270
827d0c51
PA
72712017-09-04 Pedro Alves <palves@redhat.com>
7272
7273 * eval.c (eval_skip_value): New function.
7274 (evaluate_subexp_standard): Use it.
7275
2c5a2be1
PA
72762017-09-04 Pedro Alves <palves@redhat.com>
7277
7278 * eval.c (evaluate_subexp_standard): <OP_FUNCALL>: Extract
7279 function name from symbol/minsym and pass it to
7280 error_call_unknown_return_type.
7281
74ea4be4
PA
72822017-09-04 Pedro Alves <palves@redhat.com>
7283
7284 * ada-lang.c (resolve_subexp): Handle OP_VAR_MSYM_VALUE.
7285 * ax-gdb.c (gen_msym_var_ref): New function.
7286 (gen_expr): Handle OP_VAR_MSYM_VALUE.
7287 * eval.c (evaluate_var_msym_value): New function.
7288 * eval.c (evaluate_subexp_standard): Handle OP_VAR_MSYM_VALUE.
7289 <OP_FUNCALL>: Extract function name from symbol/minsym and pass it
7290 to call_function_by_hand.
7291 * expprint.c (print_subexp_standard, dump_subexp_body_standard):
7292 Handle OP_VAR_MSYM_VALUE.
7293 (union exp_element) <msymbol>: New field.
7294 * minsyms.h (struct type): Forward declare.
7295 (find_minsym_type_and_address): Declare.
7296 * parse.c (write_exp_elt_msym): New function.
7297 (write_exp_msymbol): Delete, refactored as ...
7298 (find_minsym_type_and_address): ... this new function.
7299 (write_exp_msymbol): Reimplement using OP_VAR_MSYM_VALUE.
7300 (operator_length_standard, operator_check_standard): Handle
7301 OP_VAR_MSYM_VALUE.
7302 * std-operator.def (OP_VAR_MSYM_VALUE): New.
7303
7022349d
PA
73042017-09-04 Pedro Alves <palves@redhat.com>
7305
7306 * ada-lang.c (ada_evaluate_subexp) <TYPE_CODE_FUNC>: Don't handle
7307 TYPE_GNU_IFUNC specially here. Throw error if return type is
7308 unknown.
7309 * ada-typeprint.c (print_func_type): Handle functions with unknown
7310 return type.
7311 * c-typeprint.c (c_type_print_base): Handle functions and methods
7312 with unknown return type.
7313 * compile/compile-c-symbols.c (convert_symbol_bmsym)
7314 <mst_text_gnu_ifunc>: Use nodebug_text_gnu_ifunc_symbol.
7315 * compile/compile-c-types.c: Include "objfiles.h".
7316 (convert_func): For functions with unknown return type, warn and
7317 default to int.
7318 * compile/compile-object-run.c (compile_object_run): Adjust call
7319 to call_function_by_hand_dummy.
7320 * elfread.c (elf_gnu_ifunc_resolve_addr): Adjust call to
7321 call_function_by_hand.
7322 * eval.c (evaluate_subexp_standard): Adjust calls to
7323 call_function_by_hand. Handle functions and methods with unknown
7324 return type. Pass expect_type to call_function_by_hand.
7325 * f-typeprint.c (f_type_print_base): Handle functions with unknown
7326 return type.
7327 * gcore.c (call_target_sbrk): Adjust call to
7328 call_function_by_hand.
7329 * gdbtypes.c (objfile_type): Leave nodebug text symbol with NULL
7330 return type instead of int. Make nodebug_text_gnu_ifunc_symbol be
7331 an integer address type instead of nodebug.
7332 * guile/scm-value.c (gdbscm_value_call): Adjust call to
7333 call_function_by_hand.
7334 * infcall.c (error_call_unknown_return_type): New function.
7335 (call_function_by_hand): New "default_return_type" parameter.
7336 Pass it down.
7337 (call_function_by_hand_dummy): New "default_return_type"
7338 parameter. Use it instead of defaulting to int. If there's no
7339 default and the return type is unknown, throw an error. If
7340 there's a default return type, and the called function has no
7341 debug info, then assume the function is prototyped.
7342 * infcall.h (call_function_by_hand, call_function_by_hand_dummy):
7343 New "default_return_type" parameter.
7344 (error_call_unknown_return_type): New declaration.
7345 * linux-fork.c (call_lseek): Cast return type of lseek.
7346 (inferior_call_waitpid, checkpoint_command): Adjust calls to
7347 call_function_by_hand.
7348 * linux-tdep.c (linux_infcall_mmap, linux_infcall_munmap): Adjust
7349 calls to call_function_by_hand.
7350 * m2-typeprint.c (m2_procedure): Handle functions with unknown
7351 return type.
7352 * objc-lang.c (lookup_objc_class, lookup_child_selector)
7353 (value_nsstring, print_object_command): Adjust calls to
7354 call_function_by_hand.
7355 * p-typeprint.c (pascal_type_print_varspec_prefix): Handle
7356 functions with unknown return type.
7357 (pascal_type_print_func_varspec_suffix): New function.
7358 (pascal_type_print_varspec_suffix) <TYPE_CODE_FUNC,
7359 TYPE_CODE_METHOD>: Use it.
7360 * python/py-value.c (valpy_call): Adjust call to
7361 call_function_by_hand.
7362 * rust-lang.c (rust_evaluate_funcall): Adjust call to
7363 call_function_by_hand.
7364 * valarith.c (value_x_binop, value_x_unop): Adjust calls to
7365 call_function_by_hand.
7366 * valops.c (value_allocate_space_in_inferior): Adjust call to
7367 call_function_by_hand.
7368 * typeprint.c (type_print_unknown_return_type): New function.
7369 * typeprint.h (type_print_unknown_return_type): New declaration.
7370
54990598
PA
73712017-09-04 Pedro Alves <palves@redhat.com>
7372
7373 * gdbtypes.c (lookup_function_type_with_arguments): Mark function
7374 types with more than one parameter as prototyped.
7375
9a24775b
PA
73762017-09-04 Pedro Alves <palves@redhat.com>
7377
7378 * cli/cli-cmds.c (print_disassembly, disassemble_current_function)
7379 (disassemble_command): Use gdb_disassembly_flags instead of bare
7380 int.
7381 * disasm.c (gdb_pretty_print_disassembler::pretty_print_insn)
7382 (dump_insns, do_mixed_source_and_assembly_deprecated)
7383 (do_mixed_source_and_assembly, do_assembly_only, gdb_disassembly):
7384 Use gdb_disassembly_flags instead of bare int.
7385 * disasm.h (DISASSEMBLY_SOURCE_DEPRECATED, DISASSEMBLY_RAW_INSN)
7386 (DISASSEMBLY_OMIT_FNAME, DISASSEMBLY_FILENAME)
7387 (DISASSEMBLY_OMIT_PC, DISASSEMBLY_SOURCE)
7388 (DISASSEMBLY_SPECULATIVE): No longer macros. Instead they're...
7389 (enum gdb_disassembly_flag): ... values of this new enumeration.
7390 (gdb_disassembly_flags): Define.
7391 (gdb_disassembly)
7392 (gdb_pretty_print_disassembler::pretty_print_insn): Use it.
7393 * mi/mi-cmd-disas.c (mi_cmd_disassemble): Use
7394 gdb_disassembly_flags instead of bare int.
7395 * record-btrace.c (btrace_insn_history)
7396 (record_btrace_insn_history, record_btrace_insn_history_range)
7397 (record_btrace_insn_history_from): Use gdb_disassembly_flags
7398 instead of bare int.
7399 * record.c (get_insn_history_modifiers, cmd_record_insn_history):
7400 Use gdb_disassembly_flags instead of bare int.
7401 * target-debug.h (target_debug_print_gdb_disassembly_flags):
7402 Define.
7403 * target-delegates.c: Regenerate.
7404 * target.c (target_insn_history, target_insn_history_from)
7405 (target_insn_history_range): Use gdb_disassembly_flags instead of
7406 bare int.
7407 * target.h: Include "disasm.h".
7408 (struct target_ops) <to_insn_history, to_insn_history_from,
7409 to_insn_history_range>: Use gdb_disassembly_flags instead of bare
7410 int.
7411 (target_insn_history, target_insn_history_from)
7412 (target_insn_history_range): Use gdb_disassembly_flags instead of
7413 bare int.
7414
80a65e9b
SM
74152017-09-04 Simon Marchi <simon.marchi@ericsson.com>
7416
7417 * cli/cli-script.c (build_command_line): For if/while commands,
7418 check whether args is empty.
7419
6b66338c
SM
74202017-09-04 Simon Marchi <simon.marchi@ericsson.com>
7421
7422 * cli/cli-script.h (enum misc_command_type): Move from defs.h.
7423 (enum command_control_type): Likewise.
7424 (struct command_line): Likewise.
7425 (free_command_lines): Likewise.
7426 (struct command_lines_deleter): Likewise.
7427 (command_line_up): Likewise.
7428 (read_command_lines): Likewise.
7429 (read_command_lines_1): Likewise.
7430 * defs.h (enum misc_command_type): Move to cli/cli-script.h.
7431 (enum command_control_type): Likewise.
7432 (struct command_line): Likewise.
7433 (free_command_lines): Likewise.
7434 (struct command_lines_deleter): Likewise.
7435 (command_line_up): Likewise.
7436 (read_command_lines): Likewise.
7437 (read_command_lines_1): Likewise.
7438 * breakpoint.h: Include cli/cli-script.h.
7439 * extension-priv.h: Likewise.
7440 * gdbcmd.h: Likewise.
7441
51abb421
PA
74422017-09-04 Pedro Alves <palves@redhat.com>
7443
7444 * ada-lang.c (is_known_support_routine): Move sal declaration to
7445 where it is initialized.
7446 * breakpoint.c (create_internal_breakpoint, init_catchpoint)
7447 (parse_breakpoint_sals, decode_static_tracepoint_spec)
7448 (clear_command, update_static_tracepoint): Remove init_sal
7449 references. Move declarations closer to initializations.
7450 * cli/cli-cmds.c (list_command): Move sal declarations closer to
7451 initializations.
7452 * elfread.c (elf_gnu_ifunc_resolver_stop): Remove init_sal
7453 references. Move sal declarations closer to initializations.
7454 * frame.c (find_frame_sal): Return a symtab_and_line via function
7455 return instead of output parameter. Remove init_sal references.
7456 * frame.h (find_frame_sal): Return a symtab_and_line via function
7457 return instead of output parameter.
7458 * guile/scm-frame.c (gdbscm_frame_sal): Adjust.
7459 * guile/scm-symtab.c (stscm_make_sal_smob): Use in-place new
7460 instead of memset.
7461 (gdbscm_find_pc_line): Remove init_sal reference.
7462 * infcall.c (call_function_by_hand_dummy): Remove init_sal
7463 references. Move declarations closer to initializations.
7464 * infcmd.c (set_step_frame): Update. Move declarations closer to
7465 initializations.
7466 (finish_backward): Remove init_sal references. Move declarations
7467 closer to initializations.
7468 * infrun.c (process_event_stop_test, handle_step_into_function)
7469 (insert_hp_step_resume_breakpoint_at_frame)
7470 (insert_step_resume_breakpoint_at_caller): Likewise.
7471 * linespec.c (create_sals_line_offset, decode_digits_ordinary)
7472 (symbol_to_sal): Likewise.
7473 * probe.c (parse_probes_in_pspace): Remove init_sal reference.
7474 * python/py-frame.c (frapy_find_sal): Move sal declaration closer
7475 to its initialization.
7476 * reverse.c (save_bookmark_command): Use new/delete. Remove
7477 init_sal references. Move declarations closer to initializations.
7478 * source.c (get_current_source_symtab_and_line): Remove brace
7479 initialization.
7480 (set_current_source_symtab_and_line): Now takes the sal by const
7481 reference. Remove brace initialization.
7482 (line_info): Remove init_sal reference.
7483 * source.h (set_current_source_symtab_and_line): Now takes a
7484 symtab_and_line via const reference.
7485 * stack.c (set_current_sal_from_frame): Adjust.
7486 (print_frame_info): Adjust.
7487 (get_last_displayed_sal): Return the sal via function return
7488 instead of via output parameter. Simplify.
7489 (frame_info): Adjust.
7490 * stack.h (get_last_displayed_sal): Return the sal via function
7491 return instead of via output parameter.
7492 * symtab.c (init_sal): Delete.
7493 (find_pc_sect_line): Remove init_sal references. Move
7494 declarations closer to initializations.
7495 (find_function_start_sal): Remove init_sal references. Move
7496 declarations closer to initializations.
7497 * symtab.h (struct symtab_and_line): In-class initialize all
7498 fields.
7499 * tracepoint.c (set_traceframe_context)
7500 (print_one_static_tracepoint_marker): Remove init_sal references.
7501 Move declarations closer to initializations.
7502 * tui/tui-disasm.c (tui_show_disassem_and_update_source): Adjust.
7503 * tui/tui-stack.c (tui_show_frame_info): Adjust. Move
7504 declarations closer to initializations.
7505 * tui/tui-winsource.c (tui_update_source_window_as_is): Remove
7506 init_sal references. Adjust.
7507
6c5b2ebe
PA
75082017-09-04 Pedro Alves <palves@redhat.com>
7509
7510 * ax-gdb.c (agent_command_1): Use range-for.
7511 * break-catch-throw.c (re_set_exception_catchpoint): Update.
7512 * breakpoint.c: Include "common/array-view.h".
7513 (init_breakpoint_sal, create_breakpoint_sal): Change sals
7514 parameter from struct symtabs_and_lines to
7515 array_view<symtab_and_line>. Adjust. Use range-for. Update.
7516 (breakpoint_sals_to_pc): Change sals parameter from struct
7517 symtabs_and_lines to std::vector reference.
7518 (check_fast_tracepoint_sals): Change sals parameter from struct
7519 symtabs_and_lines to std::array_view. Use range-for.
7520 (decode_static_tracepoint_spec): Return a std::vector instead of
7521 symtabs_and_lines. Update.
7522 (create_breakpoint): Update.
7523 (break_range_command, until_break_command, clear_command): Update.
7524 (base_breakpoint_decode_location, bkpt_decode_location)
7525 (bkpt_probe_create_sals_from_location)
7526 (bkpt_probe_decode_location, tracepoint_decode_location)
7527 (tracepoint_probe_decode_location)
7528 (strace_marker_create_sals_from_location): Return a std::vector
7529 instead of symtabs_and_lines.
7530 (strace_marker_create_breakpoints_sal): Update.
7531 (strace_marker_decode_location): Return a std::vector instead of
7532 symtabs_and_lines. Update.
7533 (update_breakpoint_locations): Change struct symtabs_and_lines
7534 parameters to gdb::array_view. Adjust.
7535 (location_to_sals): Return a std::vector instead of
7536 symtabs_and_lines. Update.
7537 (breakpoint_re_set_default): Use std::vector instead of struct
7538 symtabs_and_lines.
7539 (decode_location_default): Return a std::vector instead of
7540 symtabs_and_lines. Update.
7541 * breakpoint.h: Include "common/array-view.h".
7542 (struct breakpoint_ops) <decode_location>: Now returns a
7543 std::vector instead of returning a symtabs_and_lines via output
7544 parameter.
7545 (update_breakpoint_locations): Change sals parameters to use
7546 gdb::array_view.
7547 * cli/cli-cmds.c (edit_command, list_command): Update to use
7548 std::vector and gdb::array_view.
7549 (ambiguous_line_spec): Adjust to use gdb::array_view and
7550 range-for.
7551 (compare_symtabs): Rename to ...
7552 (cmp_symtabs): ... this. Change parameters to symtab_and_line
7553 const reference and adjust.
7554 (filter_sals): Rewrite using std::vector and standard algorithms.
7555 * elfread.c (elf_gnu_ifunc_resolver_return_stop): Simplify.
7556 (jump_command): Update to use std::vector.
7557 * linespec.c (struct linespec_state) <canonical_names>: Update
7558 comment.
7559 (add_sal_to_sals_basic): Delete.
7560 (add_sal_to_sals, filter_results, convert_results_to_lsals)
7561 (decode_line_2, create_sals_line_offset)
7562 (convert_address_location_to_sals, convert_linespec_to_sals)
7563 (convert_explicit_location_to_sals, parse_linespec)
7564 (event_location_to_sals, decode_line_full, decode_line_1)
7565 (decode_line_with_current_source)
7566 (decode_line_with_last_displayed, decode_objc)
7567 (decode_digits_list_mode, decode_digits_ordinary, minsym_found)
7568 (linespec_result::~linespec_result): Adjust to use std::vector
7569 instead of symtabs_and_lines.
7570 * linespec.h (linespec_sals::sals): Now a std::vector.
7571 (struct linespec_result): Use std::vector, bool, and in-class
7572 initialization.
7573 (decode_line_1, decode_line_with_current_source)
7574 (decode_line_with_last_displayed): Return std::vector.
7575 * macrocmd.c (info_macros_command): Use std::vector.
7576 * mi/mi-main.c (mi_cmd_trace_find): Use std::vector.
7577 * probe.c (parse_probes_in_pspace, parse_probes): Adjust to use
7578 std::vector.
7579 * probe.h (parse_probes): Return a std::vector.
7580 * python/python.c (gdbpy_decode_line): Use std::vector and
7581 gdb::array_view.
7582 * source.c (select_source_symtab, line_info): Use std::vector.
7583 * stack.c (func_command): Use std::vector.
7584 * symtab.h (struct symtabs_and_lines): Delete.
7585 * tracepoint.c (tfind_line_command, scope_info): Use std::vector.
7586
7c44b49c
PA
75872017-09-04 Pedro Alves <palves@redhat.com>
7588
7589 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
7590 unittests/array-view-selftests.c.
7591 (SUBDIR_UNITTESTS_OBS): Add array-view-selftests.o.
7592 * common/array-view.h: New file.
7593 * unittests/array-view-selftests.c: New file.
7594
e439fa14
PA
75952017-09-04 Pedro Alves <palves@redhat.com>
7596
7597 * cli/cli-cmds.c (edit_command): Pass message to
7598 ambiguous_line_spec.
7599 (list_command): Pass message to ambiguous_line_spec. Say
7600 "first"/"last" instead of "start" and "end" to be consistent with
7601 the manual.
7602 (ambiguous_line_spec): Add 'format' and vararg parameters. Use
7603 them to print formatted message.
7604
7525b645
PA
76052017-09-04 Pedro Alves <palves@redhat.com>
7606
7607 * btrace.c (ftrace_add_pt): Pass btrace_insn to
7608 ftrace_update_insns by reference instead of pointer.
7609
badc0020
YQ
76102017-09-04 Yao Qi <yao.qi@linaro.org>
7611
7612 * i386-go32-tdep.c: Include x86-xstate.h.
7613 (i386_go32_init_abi): Call i386_target_description.
7614 * i386-tdep.c (i386_target_description): Return tdesc_i386_mmx
7615 if xcr0 is X86_XSTATE_X87_MASK.
7616 * i386-tdep.h (tdesc_i386): Remove the declaration.
7617 (tdesc_i386_mmx): Likewise.
7618
d78bdb54
YQ
76192017-09-04 Yao Qi <yao.qi@linaro.org>
7620
7621 * i386-fbsd-tdep.c (i386fbsd_core_read_xcr0): Return
7622 X86_XSTATE_SSE_MASK instead of 0.
7623
ca1fa5ee
YQ
76242017-09-04 Yao Qi <yao.qi@linaro.org>
7625
7626 * amd64-fbsd-nat.c (amd64fbsd_read_description): Call
7627 i386_target_description.
7628 * i386-fbsd-nat.c (i386fbsd_read_description): Call
7629 i386_target_description.
7630 * i386-tdep.c (i386_gdbarch_init): Likewise.
7631
2434b019
YQ
76322017-09-04 Yao Qi <yao.qi@linaro.org>
7633
7634 * amd64-darwin-tdep.c: Include "x86-xstate.h".
7635 (x86_darwin_init_abi_64): Call amd64_target_description.
7636 * amd64-dicos-tdep.c: Likewise.
7637 * amd64-fbsd-nat.c: Likewise.
7638 * amd64-fbsd-tdep.c: Likewise.
7639 * amd64-nbsd-tdep.c: Likewise.
7640 * amd64-obsd-tdep.c: Likewise.
7641 * amd64-sol2-tdep.c: Likewise.
7642 * amd64-windows-tdep.c: Likewise.
7643 * amd64-tdep.h (tdesc_amd64): Remove the declaration.
7644
0860c437
SM
76452017-09-04 Simon Marchi <simon.marchi@ericsson.com>
7646
7647 * btrace.h (btrace_insn_s, DEF_VEC_O (btrace_insn_s)): Remove.
7648 (btrace_function) <insn>: Change type to use std::vector.
7649 * btrace.c (ftrace_debug, ftrace_call_num_insn,
7650 ftrace_find_call, ftrace_new_gap, ftrace_update_function,
7651 ftrace_update_insns, ftrace_compute_global_level_offset,
7652 btrace_stitch_bts, btrace_clear, btrace_insn_get,
7653 btrace_insn_end, btrace_insn_next, btrace_insn_prev): Adjust to
7654 change to std::vector.
7655 (ftrace_update_insns): Adjust to change to std::vector, change
7656 type of INSN parameter.
7657 (btrace_compute_ftrace_bts): Adjust call to ftrace_update_insns.
7658 * record-btrace.c (btrace_call_history_insn_range,
7659 btrace_compute_src_line_range,
7660 record_btrace_frame_prev_register): Adjust to change to
7661 std::vector.
7662 * python/py-record-btrace.c (recpy_bt_func_instructions): Adjust
7663 to change to std::vector.
7664
0638b7f9
TT
76652017-09-03 Tom Tromey <tom@tromey.com>
7666
7667 * corefile.c (reopen_exec_file): Use std::string.
7668
8f84fb0e
TT
76692017-09-03 Tom Tromey <tom@tromey.com>
7670
7671 * compile/compile.c (compile_register_name_mangled): Return
7672 std::string.
7673 * compile/compile-loc2c.c (pushf_register_address): Update.
7674 (pushf_register): Update.
7675 * compile/compile-c-types.c (convert_array): Update.
7676 * compile/compile-c-symbols.c (generate_vla_size): Update.
7677 (error_symbol_once): Use a gdb::unique_xmalloc_ptr.
7678 (symbol_substitution_name): Return a gdb::unique_xmalloc_ptr.
7679 (convert_one_symbol): Update.
7680 (generate_c_for_for_one_variable): Update.
7681 * compile/compile-c-support.c (c_get_range_decl_name): Return a
7682 std::string.
7683 (generate_register_struct): Update.
7684 * compile/compile-internal.h (c_get_range_decl_name): Return a
7685 std::string.
7686 (compile_register_name_mangled): Return std::string.
7687
18e9961f
TT
76882017-09-03 Tom Tromey <tom@tromey.com>
7689
7690 * utils.c (perror_string): Return a std::string.
7691 (throw_perror_with_name, perror_warning_with_name): Update.
7692
45343786
TT
76932017-09-03 Tom Tromey <tom@tromey.com>
7694
7695 * demangle.c (demangle_command): Use std::string,
7696 unique_xmalloc_ptr.
7697
b57af503
TT
76982017-09-03 Tom Tromey <tom@tromey.com>
7699
7700 * cli/cli-setshow.c (do_set_command): Use std::string.
7701
6eecf35f
TT
77022017-09-03 Tom Tromey <tom@tromey.com>
7703
7704 * cli/cli-cmds.c (cd_command): Use gdb::unique_xmalloc_ptr.
7705
56496dd4
TT
77062017-09-03 Tom Tromey <tom@tromey.com>
7707
7708 * mi/mi-interp.c (mi_cmd_interpreter_exec): Use std::string.
7709
e91a1fa7
TT
77102017-09-03 Tom Tromey <tom@tromey.com>
7711
7712 * mi/mi-cmd-env.c (env_execute_cli_command): Use
7713 gdb::unique_xmalloc_ptr.
7714
7ffd83d7
TT
77152017-09-03 Tom Tromey <tom@tromey.com>
7716
7717 * thread.c (print_thread_info_1): Use string_printf.
7718 (thread_apply_command, thread_apply_all_command): Use
7719 std::string.
7720
1ccbe998
TT
77212017-09-03 Tom Tromey <tom@tromey.com>
7722
7723 * valprint.c (val_print_string): Update.
7724 * gdbcore.h (memory_error_message): Return std::string.
7725 * corefile.c (memory_error_message): Return std::string.
7726 (memory_error): Update.
7727 * breakpoint.c (insert_bp_location): Update.
7728
23fdd69e
SM
77292017-09-03 Simon Marchi <simon.marchi@ericsson.com>
7730
7731 * target/waitstatus.h (target_waitstatus_to_string): Change
7732 return type to std::string.
7733 * target/waitstatus.c (target_waitstatus_to_string): Return
7734 std::string.
7735 * target.h (target_waitstatus_to_string): Remove declaration.
7736 * infrun.c (resume, clear_proceed_status_thread,
7737 print_target_wait_results, do_target_wait, save_waitstatus,
7738 stop_all_threads): Adjust.
7739 * record-btrace.c (record_btrace_wait): Adjust.
7740 * target-debug.h
7741 (target_debug_print_struct_target_waitstatus_p): Adjust.
7742
5c811d30
JK
77432017-09-01 Jan Kratochvil <jan.kratochvil@redhat.com>
7744
7745 PR gdb/22046
7746 * nat/linux-procfs.c (parse_proc_status_state): Fix PROC_STATE_STOPPED
7747 detection.
7748
0a2dde4a
SDJ
77492017-08-31 Sergio Durigan Junior <sergiodj@redhat.com>
7750
7751 * NEWS (Changes since GDB 8.0): Add entry mentioning new support
7752 for setting/unsetting environment variables on the remote target.
7753 (New remote packets): Add entries for QEnvironmentHexEncoded,
7754 QEnvironmentUnset and QEnvironmentReset.
7755 * common/environ.c (gdb_environ::operator=): Extend method to
7756 handle m_user_set_env_list and m_user_unset_env_list.
7757 (gdb_environ::clear): Likewise.
7758 (match_var_in_string): Change type of first parameter from 'char
7759 *' to 'const char *'.
7760 (gdb_environ::set): Extend method to handle
7761 m_user_set_env_list and m_user_unset_env_list.
7762 (gdb_environ::unset): Likewise.
7763 (gdb_environ::clear_user_set_env): New method.
7764 (gdb_environ::user_set_envp): Likewise.
7765 (gdb_environ::user_unset_envp): Likewise.
7766 * common/environ.h (gdb_environ): Handle m_user_set_env_list and
7767 m_user_unset_env_list on move constructor/assignment.
7768 (unset): Add new default parameter 'update_unset_list = true'.
7769 (clear_user_set_env): New method.
7770 (user_set_envp): Likewise.
7771 (user_unset_envp): Likewise.
7772 (m_user_set_env_list): New std::set.
7773 (m_user_unset_env_list): Likewise.
7774 * common/rsp-low.c (hex2str): New function.
7775 (bin2hex): New overload for bin2hex function.
7776 * common/rsp-low.c (hex2str): New prototype.
7777 (str2hex): New overload prototype.
7778 * remote.c: Include "environ.h". Add QEnvironmentHexEncoded,
7779 QEnvironmentUnset and QEnvironmentReset.
7780 (remote_protocol_features): Add QEnvironmentHexEncoded,
7781 QEnvironmentUnset and QEnvironmentReset packets.
7782 (send_environment_packet): New function.
7783 (extended_remote_environment_support): Likewise.
7784 (extended_remote_create_inferior): Call
7785 extended_remote_environment_support.
7786 (_initialize_remote): Add QEnvironmentHexEncoded,
7787 QEnvironmentUnset and QEnvironmentReset packet configs.
7788 * unittests/environ-selftests.c (gdb_selftest_env_var):
7789 New variable.
7790 (test_vector_initialization): New function.
7791 (test_init_from_host_environ): Likewise.
7792 (test_reinit_from_host_environ): Likewise.
7793 (test_set_A_unset_B_unset_A_cannot_find_A_can_find_B):
7794 Likewise.
7795 (test_unset_set_empty_vector): Likewise.
7796 (test_vector_clear): Likewise.
7797 (test_std_move): Likewise.
7798 (test_move_constructor):
7799 (test_self_move): Likewise.
7800 (test_set_unset_reset): Likewise.
7801 (run_tests): Rewrite in terms of the functions above.
7802
654670a4
WP
78032017-08-31 Weimin Pan <weimin.pan@oracle.com>
7804
7805 * sparc64-tdep.c (adi_stat_t): Fix comment formatting.
7806 (adi_available): Use a temp variable of type CORE_ADDR as argument
7807 3 when calling target_auxv_search.
7808 (adi_normalize_address): Use masks and xor operators to calculate
7809 normalized address.
7810 (adi_read_versions, adi_write_versions, adi_print_versions)
7811 (do_examine, do_assign): Use paddress.
7812
7755ddb7
JB
78132017-08-29 John Baldwin <jhb@FreeBSD.org>
7814
7815 * mips-fbsd-nat.c (getfpregs_supplies): Return true for FIR.
7816 * mips-fbsd-tdep.c (mips_fbsd_supply_fpregs): Split supply of FSR
7817 out of loop and add supply of FIR.
7818 (mips_fbsd_collect_fpregs): Split collect of FSR out of loop and
7819 add collect of FIR.
7820
fd437cbc
SM
78212017-08-28 Simon Marchi <simon.marchi@ericsson.com>
7822
3804a343 7823 PR gdb/21827
fd437cbc
SM
7824 * cli/cli-script.c (define_command): Don't convert command name
7825 to lower case.
7826
988f6b3d
JB
78272017-08-25 Joel Brobecker <brobecker@adacore.com>
7828
7829 * ada-lang.c (ada_lookup_struct_elt_type): Remove parameter "dispp".
7830 Update all callers accordingly. Remove all code blocks handling
7831 the case where DISPP is not NULL.
7832
663c44ac
JK
78332017-08-24 Jan Kratochvil <jan.kratochvil@redhat.com>
7834
7835 PR symtab/22003
7836 * dwarf2read.c (dwarf2_const_value_attr, dump_die_shallow)
7837 (dwarf2_get_attr_constant_value, dwarf2_fetch_constant_bytes)
7838 (skip_form_bytes, attr_form_is_constant): Handle DW_FORM_implicit_const.
7839
f1902523
JK
78402017-08-24 Jan Kratochvil <jan.kratochvil@redhat.com>
7841
7842 * dwarf2read.c (build_type_psymtabs_reader): New prototype.
7843 (process_psymtab_comp_unit): Accept IS_DEBUG_TYPES.
7844 (read_comp_units_from_section): New parameter abbrev_section, use
7845 read_and_check_comp_unit_head, allocate signatured_type if needed.
7846 (create_all_comp_units): Update read_comp_units_from_section caller.
7847
87215ad1
SDJ
78482017-08-23 Pedro Alves <palves@redhat.com>
7849
7850 PR remote/21852
7851 * remote.c (add_current_inferior_and_thread): Set inferior_ptid
7852 to null_ptid and switch to thread without reading the registers
7853 after adding the inferior.
7854
6e41ddec
JK
78552017-08-23 Jan Kratochvil <jan.kratochvil@redhat.com>
7856
7857 * NEWS (Changes since GDB 8.0): Add set compile-gcc and show
7858 compile-gcc.
7859 * compile/compile.c (compile_gcc, show_compile_gcc): New.
7860 (compile_to_object): Implement compile_gcc.
7861 (_initialize_compile): Install "set compile-gcc". Initialize
7862 compile_gcc.
7863
e68c32d5
JK
78642017-08-23 Jan Kratochvil <jan.kratochvil@redhat.com>
7865
7866 * compile/compile.c (compile_to_object): Conditionally call
7867 set_verbose. Conditionally call compile or compile_v0.
7868
58afddc6
WP
78692017-08-07 Weimin Pan <weimin.pan@oracle.com>
7870
7871 * sparc64-tdep.h: (adi_normalize_address): New export.
7872 * sparc-nat.h: (open_adi_tag_fd): New export.
7873 * sparc64-linux-nat.c: (open_adi_tag_fd): New function.
7874 * sparc64-linux-tdep.c:
7875 (SEGV_ACCADI, SEGV_ADIDERR, SEGV_ADIPERR) New defines.
7876 (sparc64_linux_handle_segmentation_fault): New function.
7877 (sparc64_linux_init_abi): Register
7878 sparc64_linux_handle_segmentation_fault
7879 * sparc64-tdep.c: Include cli-utils.h,gdbcmd.h,auxv.h.
7880 (sparc64_addr_bits_remove): New function.
7881 (sparc64_init_abi): Register sparc64_addr_bits_remove.
7882 (MAX_PROC_NAME_SIZE): New macro.
7883 (AT_ADI_BLKSZ, AT_ADI_NBITS, AT_ADI_UEONADI) New defines.
7884 (sparc64adilist): New variable.
7885 (adi_proc_list): New variable.
7886 (find_adi_info): New function.
7887 (add_adi_info): New function.
7888 (get_adi_info_proc): New function.
7889 (get_adi_info): New function.
7890 (info_adi_command): New function.
7891 (read_maps_entry): New function.
7892 (adi_available): New function.
7893 (adi_normalize_address): New function.
7894 (adi_align_address): New function.
7895 (adi_convert_byte_count): New function.
7896 (adi_tag_fd): New function.
7897 (adi_is_addr_mapped): New function.
7898 (adi_read_versions): New function.
7899 (adi_write_versions): New function.
7900 (adi_print_versions): New function.
7901 (do_examine): New function.
7902 (do_assign): New function.
7903 (adi_examine_command): New function.
7904 (adi_assign_command): New function.
7905 (_initialize_sparc64_adi_tdep): New function.
7906
11db9430
SM
79072017-08-22 Simon Marchi <simon.marchi@ericsson.com>
7908
7909 * breakpoint.c (breakpoints_info): Rename to ...
7910 (info_breakpoints_command): ... this.
7911 (watchpoints_info): Rename to ...
7912 (info_watchpoints_command): ... this.
7913 (tracepoints_info): Rename to ...
7914 (info_tracepoints_command): ... this.
7915 (_initialize_breakpoint): Adjust.
7916 * dcache.c (dcache_info): Rename to ...
7917 (info_display_command): ... this.
7918 (_initialize_dcache): Adjust.
7919 * frame.h (args_info): Rename to ...
7920 (info_args_command): ... this.
7921 (locals_info): Rename to ...
7922 (info_locals_command): ... this.
7923 * infcmd.c (nofp_registers_info): Rename to ...
7924 (info_registers_command): ... this.
7925 (float_info): Rename to ...
7926 (info_float_command): ... this.
7927 (program_info): Rename to ...
7928 (info_program_command): ... this.
7929 (all_registers_info): Rename to ...
7930 (info_all_registers_command): ... this.
7931 (vector_info): Rename to ...
7932 (info_vector_command): ... this.
7933 (float_info): Rename to ...
7934 (info_float_command): ... this.
7935 (_initialize_infcmd): Adjust.
7936 * inferior.h (term_info): Rename to ...
7937 (info_terminal_command): ... this.
7938 * inflow.c (term_info): Rename to ...
7939 (info_terminal_command): ... this.
7940 (_initialize_inflow): Adjust.
7941 * infrun.c (signals_info): Rename to ...
7942 (info_signals_command): ... this.
7943 (_initialize_infrun): Adjust.
7944 * objc-lang.c (classes_info): Rename to ...
7945 (info_classes_command): ... this.
7946 (selectors_info): Rename to ...
7947 (info_selectors_command): ... this.
7948 (_initialize_objc_language): Adjust.
7949 * printcmd.c (sym_info): Rename to ...
7950 (info_symbol_command): ... this.
7951 (address_info): Rename to ...
7952 (info_address_command): ... this.
7953 (display_info): Rename to ...
7954 (info_display_command): ... this.
7955 (_initialize_printcmd): Adjust.
7956 * reverse.c (bookmarks_info): Rename to ...
7957 (info_breakpoints_command): ... this.
7958 (_initialize_reverse): Adjust.
7959 * ser-go32.c (dos_info): Rename to ...
7960 (info_serial_command): ... this.
7961 (_initialize_ser_dos): Adjust.
7962 * skip.c (skip_info): Rename to ...
7963 (info_skip_command): ... this.
7964 (_initialize_step_skip): Adjust.
7965 * source.c (line_info): Rename to ...
7966 (info_line_command): ... this.
7967 (source_info): Rename to ...
7968 (info_source_command)
7969 * stack.c (frame_info): Rename to ...
7970 (info_frame_command): ... this.
7971 (locals_info): Rename to ...
7972 (info_locals_command): ... this.
7973 (args_info): Rename to ...
7974 (info_args_command): ... this.
7975 (_initialize_stack): Adjust.
7976 * symtab.c (sources_info): Rename to ...
7977 (info_sources_command): ... this.
7978 (variables_info): Rename to ...
7979 (info_variables_command): ... this.
7980 (functions_info): Rename to ...
7981 (info_functions_command): ... this.
7982 (types_info): Rename to ...
7983 (info_types_command): ... this.
7984 (_initialize_symtab): Adjust.
7985 * target.c (target_info): Rename to ...
7986 (info_target_command): ... this.
7987 (initialize_targets): Adjust.
7988 * tracepoint.c (tvariables_info): Rename to ...
7989 (info_tvariables_command): ... this.
7990 (scope_info): Rename to ...
7991 (info_scope_command): ... this.
7992 (trace_dump_actions): Adjust.
7993 (_initialize_tracepoint): Adjust.
7994
b270e6f9
TT
79952017-08-22 Tom Tromey <tom@tromey.com>
7996
7997 * breakpoint.h (install_breakpoint): Update.
7998 * breakpoint.c (add_solib_catchpoint): Update.
7999 (install_breakpoint): Change argument to a std::unique_ptr.
8000 (create_fork_vfork_event_catchpoint): Use std::unique_ptr.
8001 (create_breakpoint_sal, create_breakpoint): Update.
8002 (watch_command_1, catch_exec_command_1)
8003 (strace_marker_create_breakpoints_sal): Use std::unique_ptr.
8004 (add_to_breakpoint_chain): Change argument to a std::unique_ptr.
8005 Return the breakpoint.
8006 (set_raw_breakpoint_without_location, set_raw_breakpoint)
8007 (new_single_step_breakpoint): Update.
8008 * break-catch-throw.c (handle_gnu_v3_exceptions): Use
8009 std::unique_ptr.
8010 * break-catch-syscall.c (create_syscall_event_catchpoint): Use
8011 std::unique_ptr.
8012 * break-catch-sig.c (create_signal_catchpoint): Use
8013 std::unique_ptr.
8014 * ada-lang.c (create_ada_exception_catchpoint): Use
8015 std::unique_ptr.
8016
36bd8eaa
TT
80172017-08-22 Tom Tromey <tom@tromey.com>
8018
8019 * breakpoint.c (add_solib_catchpoint): Use std::unique_ptr.
8020
56f37645
TT
80212017-08-22 Tom Tromey <tom@tromey.com>
8022
8023 * psymtab.c (psymtab_search_name): Return a unique_xmalloc_ptr.
8024 (lookup_partial_symbol): Update.
8025
0b581c69
TT
80262017-08-22 Tom Tromey <tom@tromey.com>
8027
8028 * source.h (rewrite_source_path): Return a unique_xmalloc_ptr.
8029 * source.c (rewrite_source_path): Return a unique_xmalloc_ptr.
8030 (find_and_open_source, symtab_to_fullname): Update.
8031 * psymtab.c (psymtab_to_fullname): Update.
8032
14278e1f
TT
80332017-08-22 Tom Tromey <tom@tromey.com>
8034
8035 * exec.c (exec_file_attach): Update.
8036 * linux-thread-db.c (try_thread_db_load): Update.
8037 * guile/scm-safe-call.c (gdbscm_safe_source_script): Update.
8038 * utils.c (gdb_realpath): Change return type.
8039 (gdb_realpath_keepfile): Update.
8040 (gdb_realpath_check_trailer, gdb_realpath_tests): New functions.
8041 (_initialize_utils): Register the new self test.
8042 * source.c (openp): Update.
8043 (find_and_open_source): Update.
8044 * nto-tdep.c (nto_find_and_open_solib): Update.
8045 * main.c (set_gdb_data_directory): Update.
8046 (captured_main_1): Update.
8047 * dwarf2read.c (dwarf2_get_dwz_file): Update
8048 (dw2_map_symbol_filenames): Update.
8049 * auto-load.c (auto_load_safe_path_vec_update): Update.
8050 (filename_is_in_auto_load_safe_path_vec): Change type of
8051 "filename_realp".
8052 (auto_load_objfile_script): Update.
8053 (file_is_auto_load_safe): Update. Use std::string.
8054 * utils.h (gdb_realpath): Return a gdb::unique_xmalloc_ptr.
8055
4971c9a7
TT
80562017-08-22 Tom Tromey <tom@tromey.com>
8057
8058 * utils.c (gdb_realpath_keepfile): Return a
8059 gdb::unique_xmalloc_ptr.
8060 * exec.c (exec_file_attach): Update.
8061 * utils.h (gdb_realpath_keepfile): Return a
8062 gdb::unique_xmalloc_ptr.
8063
e3e41d58
TT
80642017-08-22 Tom Tromey <tom@tromey.com>
8065
8066 * compile/compile.c (compile_file_command): Use
8067 gdb::unique_xmalloc_ptr, std::string.
8068 * utils.c (gdb_abspath): Change return type.
8069 * source.c (openp): Update.
8070 * objfiles.c (allocate_objfile): Update.
8071 * main.c (set_gdb_data_directory): Update.
8072 * utils.h (gdb_abspath): Return a gdb::unique_xmalloc_ptr.
8073
0d999a6e
ZZ
80742017-08-22 Zhouyi Zhou <zhouzhouyi@gmail.com>
8075
8076 * cli-cmds.c (list_commands): List actual code around more than
8077 one location.
8078
329d5e7e
JB
80792017-08-21 John Baldwin <jhb@FreeBSD.org>
8080
8081 * fbsd-nat.c (fbsd_add_threads): Use array type for `lwps'.
8082
bf223d3e
PA
80832017-08-21 Pedro Alves <palves@redhat.com>
8084
8085 PR gdb/19487
8086 * c-exp.y (variable production): Handle function aliases.
8087 * minsyms.c (msymbol_is_text): New function.
8088 * minsyms.h (msymbol_is_text): Declare.
8089 * symtab.c (find_function_alias_target): New function.
8090 * symtab.h (find_function_alias_target): Declare.
8091
c973d0aa
PA
80922017-08-21 Pedro Alves <palves@redhat.com>
8093
8094 * eval.c (evaluate_subexp_standard) <OP_TYPE>: Don't dig past
8095 typedefs.
8096 * typeprint.c (whatis_exp): If handling "whatis", and expression
8097 is OP_TYPE, strip one typedef level. Otherwise don't strip
8098 typedefs here.
8099 * valops.c (value_cast): Save "to" type before resolving
8100 stubs/typedefs. Use that type as resulting value's type.
8101
2989a365
TT
81022017-08-18 Tom Tromey <tom@tromey.com>
8103 Pedro Alves <palves@redhat.com>
8104
8105 * spu-multiarch.c (parse_spufs_run): Use scoped_restore.
8106 * sol-thread.c (sol_thread_resume, sol_thread_wait)
8107 (sol_thread_xfer_partial, rw_common): Use scoped_restore.
8108 * procfs.c (procfs_do_thread_registers): Use scoped_restore.
8109 * proc-service.c (ps_xfer_memory): Use scoped_restore.
8110 * linux-tdep.c (linux_corefile_thread): Remove a cleanup.
8111 (linux_get_siginfo_data): Add "thread" argument. Use
8112 scoped_restore.
8113 * linux-nat.c (linux_child_follow_fork)
8114 (check_stopped_by_watchpoint): Use scoped_restore.
8115 * infrun.c (displaced_step_prepare_throw, write_memory_ptid)
8116 (THREAD_STOPPED_BY, handle_signal_stop): Use scoped_restore.
8117 (restore_inferior_ptid, save_inferior_ptid): Remove.
8118 * btrace.c (btrace_fetch): Use scoped_restore.
8119 * bsd-uthread.c (bsd_uthread_fetch_registers)
8120 (bsd_uthread_store_registers): Use scoped_restore.
8121 * breakpoint.c (reattach_breakpoints, detach_breakpoints): Use
8122 scoped_restore.
8123 * aix-thread.c (aix_thread_resume, aix_thread_wait)
8124 (aix_thread_xfer_partial): Use scoped_restore.
8125 * inferior.h (save_inferior_ptid): Remove.
8126
e60eb288
YQ
81272017-08-18 Yao Qi <yao.qi@linaro.org>
8128
8129 PR tdep/21818
8130 * arm-tdep.c (gdb_print_insn_arm): Mark
8131 USER_SPECIFIED_MACHINE_TYPE if exec_bfd isn't NULL.
8132
6d580b63
YQ
81332017-08-18 Yao Qi <yao.qi@linaro.org>
8134
8135 * NEWS: Mention GDBserver's new option "--selftest".
8136 * Makefile.in (SFILES): Remove selftest.c, add common/selftest.c.
8137 * selftest.c: Move it to common/selftest.c.
8138 * selftest.h: Move it to common/selftest.h.
8139 * selftest-arch.c (reset): New function.
8140 (tests_with_arch): Call reset.
8141
86dcbf50
YQ
81422017-08-18 Yao Qi <yao.qi@linaro.org>
8143
8144 * selftest.c (run_tests): Don't call QUIT. Call debug_printf
8145 instead of exception_fprintf and printf_filtered.
8146
7649770c
YQ
81472017-08-18 Yao Qi <yao.qi@linaro.org>
8148
8149 * selftest.c (register_self_test): Rename it to
8150 selftests::register_test.
8151 (run_self_tests): selftest::run_tests.
8152 * selftest.h: Update declarations.
8153 * selftest-arch.c (register_self_test_foreach_arch): Rename it to
8154 selftests::register_test_foreach_arch.
8155 * selftest-arch.h: Update declaration.
8156 * aarch64-tdep.c: Update.
8157 * arm-tdep.c: Likewise.
8158 * disasm-selftests.c: Likewise.
8159 * dwarf2loc.c: Likewise.
8160 * dwarf2-frame.c: Likewise.
8161 * findvar.c: Likewise.
8162 * gdbarch-selftests.c: Likewise.
8163 * maint.c (maintenance_selftest): Likewise.
8164 * regcache.c: Likewise.
8165 * rust-exp.y: Likewise.
8166 * selftest-arch.c: Likewise.
8167 * unittests/environ-selftests.c: Likewise.
8168 * unittests/function-view-selftests.c: Likewise.
8169 * unittests/offset-type-selftests.c: Likewise.
8170 * unittests/optional-selftests.c: Likewise.
8171 * unittests/scoped_restore-selftests.c: Likewise.
8172 * utils-selftests.c: Likewise.
8173
b0cba12e
PA
81742017-08-17 Pedro Alves <palves@redhat.com>
8175
8176 * cli/cli-cmds.c (source_command): Delete 'old_source_verbose'
8177 local.
8178
4c8aa72d
PA
81792017-08-17 Pedro Alves <palves@redhat.com>
8180
8181 * dwarf2read.c (struct dwarf2_cu) <line_header_die_owner>: New
8182 field.
8183 (reset_die_in_process): Delete, replaced by ...
8184 (process_die_scope): ... this new class. Make it responsible for
8185 freeing cu->line_header too.
8186 (process_die): Use process_die_scope.
8187 (handle_DW_AT_stmt_list): Record the line header's owner CU/DIE in
8188 cu->line_header_die_owner. Don't release the line header if it's
8189 owned by the CU.
8190 (setup_type_unit_groups): Make the CU/DIE own the line header.
8191 Don't release the line header here.
8192
ba713918
AL
81932017-08-17 Alex Lindsay <alexlindsay239@gmail.com> (tiny change)
8194
8195 * elfread.c (elf_read_minimal_symbols): xfree synthsyms.
8196
44d0fb3a
RK
81972017-08-17 Ruslan Kabatsayev <b7.10110111@gmail.com>
8198
8199 * NEWS: Mention new shortcuts for nexti and stepi in TUI
8200 Single-Key mode
8201
a5afdb16
RK
82022017-08-16 Ruslan Kabatsayev <b7.10110111@gmail.com>
8203
8204 * tui/tui.c (tui_commands): Add "nexti" and "stepi" to the Single-Key
8205 mode command list.
8206
47613aeb
SH
82072017-08-15 Stafford Horne <shorne@gmail.com>
8208
8209 * MAINTAINERS (Write After Approval): Add Stafford Horne.
8210
9c3cc999
SH
82112017-08-15 Stafford Horne <shorne@gmail.com>
8212
8213 * xtensa-tdep.c (xtensa_init_reggroups): Use xstrdup for cpname.
8214
206726fb
SDJ
82152017-08-15 Sergio Durigan Junior <sergiodj@redhat.com>
8216
8217 PR gdb/21954
8218 * infcmd.c (unset_environment_command): Use the 'clear' method on
8219 the environment instead of resetting it.
8220
0335ac6d
JB
82212017-08-15 John Baldwin <jhb@FreeBSD.org>
8222
8223 * fbsd-nat.c (fbsd_convert_siginfo): Fix compile on big-endian
8224 platforms.
8225
d3abe1c8
TT
82262017-08-14 Tom Tromey <tom@tromey.com>
8227
8228 * valprint.c (print_octal_chars): Use HOST_CHAR_BIT.
8229 (print_binary_chars): Likewise.
8230 (BITS_IN_BYTES): Remove.
8231
d6382fff
TT
82322017-08-14 Tom Tromey <tom@tromey.com>
8233
8234 PR gdb/21675
8235 * valprint.c (LOW_ZERO): Change value to 034.
8236 (print_octal_chars): Add static_asserts for octal constants.
8237 * printcmd.c (print_scalar_formatted): Add 'd' case.
8238
f978cb06
TT
82392017-08-11 Tom Tromey <tom@tromey.com>
8240
8241 * symfile.c (add_symbol_file_command): Use std::vector.
8242
2f5404b3
TT
82432017-08-14 Tom Tromey <tom@tromey.com>
8244
8245 * break-catch-throw.c (handle_gnu_v3_exceptions): Use std::move.
8246 * break-catch-syscall.c (create_syscall_event_catchpoint): Use
8247 std::move.
8248 * break-catch-sig.c (create_signal_catchpoint): Use std::move.
8249
de7985c3
PA
82502017-08-11 Pedro Alves <palves@redhat.com>
8251
8252 * infrun.c (process_event_stop_test): Adjust
8253 function_name_is_marked_for_skip call.
8254 * skip.c: Include <list>.
8255 (skiplist_entry): Make it a class with private fields, and
8256 getters/setters.
8257 (skiplist_entry_chain): Delete.
8258 (skiplist_entries): New.
8259 (skiplist_entry_count): Delete.
8260 (highest_skiplist_entry_num): New.
8261 (ALL_SKIPLIST_ENTRIES, ALL_SKIPLIST_ENTRIES_SAFE): Delete.
8262 (add_skiplist_entry): Delete.
8263 (skiplist_entry::skiplist_entry): New.
8264 (skiplist_entry::add_entry): New.
8265 (skip_file_command, skip_function): Adjust.
8266 (compile_skip_regexp): Delete.
8267 (skip_command): Don't compile regexp here. Adjust to use
8268 skiplist_entry::add_entry.
8269 (skip_info): Adjust to use range-for and getters.
8270 (skip_enable_command, skip_disable_command): Adjust to use
8271 range-for and setters.
8272 (skip_delete_command): Adjust to use std::list.
8273 (add_skiplist_entry): Delete.
8274 (skip_file_p): Delete, refactored as ...
8275 (skiplist_entry::do_skip_file_p): ... this new method.
8276 (skip_gfile_p): Delete, refactored as ...
8277 (skiplist_entry::do_gskip_file_p): ... this new method.
8278 (skip_function_p, skip_rfunction_p): Delete, refactored as ...
8279 (skiplist_entry::skip_function_p): ... this new method.
8280 (function_name_is_marked_for_skip): Now returns bool, and takes
8281 the function sal by const reference. Adjust to use range-for and
8282 skiplist_entry methods.
8283 (_initialize_step_skip): Remove references to
8284 skiplist_entry_chain, skiplist_entry_count.
8285 * skip.h (function_name_is_marked_for_skip): Now returns bool, and
8286 takes the function sal by const reference.
8287
be7d3cd5
YQ
82882017-08-11 Yao Qi <yao.qi@linaro.org>
8289
8290 * dwarf2-frame.c (clear_pointer_cleanup): Remove.
8291 (dwarf2_frame_cache): Remove reset_cache_cleanup.
8292 (dwarf2_frame_cache):
8293 * frame-unwind.c (frame_unwind_try_unwinder): Catch
8294 RETURN_MASK_ALL and set *this_case to NULL.
8295 * frame-unwind.h: Update comments.
8296
1c90d9f0
YQ
82972017-08-11 Yao Qi <yao.qi@linaro.org>
8298
8299 * dwarf2-frame.c (dwarf2_frame_state_alloc_regs): Remove.
8300 (dwarf2_frame_state_copy_regs): Remove.
8301 (dwarf2_frame_state_free_regs): Remove.
8302 (dwarf2_frame_state::~dwarf2_frame_state): Remove.
8303 (dwarf2_restore_rule): Call method .alloc_regs instead of
8304 dwarf2_frame_state_alloc_regs.
8305 (execute_cfa_program): Likewise. Call dwarf2_frame_state_reg_info
8306 constructor. Call std::move.
8307 (dwarf2_fetch_cfa_info): Don't call dwarf2_frame_state_copy_regs.
8308 (dwarf2_frame_cache): Likewise.
8309
8310 [GDB_SELF_TEST]: Include selftest.h and
8311 selftest-arch.h.
8312 [GDB_SELF_TEST] (execute_cfa_program_test): New function.
8313 (_initialize_dwarf2_frame) [GDB_SELF_TEST]: Register
8314 execute_cfa_program_test.
8315
8316 * dwarf2-frame.h (dwarf2_frame_state_reg_info): Add ctor, dtor,
8317 copy ctor, assignment operator, move assignment.
8318 <alloc_regs>: New method.
8319 <swap>: New method.
8320 (struct dwarf2_frame_state): Delete dtor.
8321 (dwarf2_frame_state_alloc_regs): Remove declaration.
8322 * sparc-tdep.c (sparc_execute_dwarf_cfa_vendor_op): Don't call
8323 dwarf2_frame_state_alloc_regs, use .alloc_regs instead.
8324
afe37d6b
YQ
83252017-08-11 Yao Qi <yao.qi@linaro.org>
8326
8327 * dwarf2-frame.c (dwarf2_frame_state_free): Remove.
8328 (dwarf2_frame_state::dwarf2_frame_state): New.
8329 (dwarf2_frame_state::~dwarf2_frame_state): New.
8330 (dwarf2_fetch_cfa_info): Update.
8331 (dwarf2_frame_cache): Remove old_chain. Change 'fs' to an object
8332 rather than a pointer. Update code.
8333 * dwarf2-frame.h (struct dwarf2_frame_state): Declare ctor and
8334 dtor.
8335 <data_align, code_align, retaddr_column>: Change them to const.
8336 <armcc_cfa_offsets_sf, armcc_cfa_offsets_reversed>: Change them
8337 to bool.
8338
b348037f
YQ
83392017-08-11 Yao Qi <yao.qi@linaro.org>
8340
8341 * dwarf2-frame.h (struct dwarf2_frame_state_reg) <exp_len>: Remove.
8342 <loc.exp>: New field.
8343 * dwarf2-frame.c (execute_cfa_program): Update.
8344 (dwarf2_frame_prev_register): Update.
8345
e7c9de26
PA
83462017-08-10 Pedro Alves <palves@redhat.com>
8347
8348 * common/gdb_unique_ptr.h (xfree_deleter<T[]>): Define.
8349
e8c6b620
JB
83502017-08-09 John Baldwin <jhb@FreeBSD.org>
8351
8352 * fbsd-nat.c (struct fbsd_fork_info): Remove.
8353 (fbsd_pending_children): Use std::list.
8354 (fbsd_remember_child): Likewise.
8355 (fbsd_is_child_pending): Likewise.
8356 (fbsd_pending_vfork_done): Use std::forward_list.
8357 (fbsd_add_vfork_done): Likewise.
8358 (fbsd_is_vfork_done_pending): Likewise.
8359 (fbsd_next_vfork_done): Likewise.
8360
e4a26669
JB
83612017-08-09 John Baldwin <jhb@FreeBSD.org>
8362
8363 * fbsd-nat.c [HAVE_KINFO_GETVMMAP] (struct free_deleter): New.
8364 (fbsd_find_memory_regions): Use free_deleter with std::unique_ptr.
8365 [!HAVE_KINFO_GETVMMAP] (fbsd_find_memory_regions): Use std::string
8366 for `mapfilename'.
8367 (fbsd_xfer_partial): Use gdb::byte_vector.
af3881e6 8368 (fbsd_add_threads): Use gdb::unique_xmalloc_ptr.
e4a26669 8369
142311d3
JB
83702017-08-09 John Baldwin <jhb@FreeBSD.org>
8371
8372 * fbsd-nat.c: [!HAVE_KINFO_GETVMMAP]: Include <sys/user.h> and
8373 "filestuff.h".
8374 (fbsd_find_memory_regions): Fix `mapfile' initialization.
8375
42fa2e0e
TT
83762017-08-09 Tom Tromey <tom@tromey.com>
8377
8378 * skip.c (skiplist_entry): New constructor.
8379 (skiplist_entry::enabled, skiplist_entry::function_is_regexp)
8380 (skiplist_entry::file_is_glob): Now bool.
8381 (skiplist_entry::file, skiplist_entry::function): Now
8382 std::string.
8383 (make_skip_entry): Return a unique_ptr. Use new.
8384 (free_skiplist_entry, free_skiplist_entry_cleanup)
8385 (make_free_skiplist_entry_cleanup): Remove.
8386 (skip_command, skip_disable_command, add_skiplist_entry)
8387 (skip_form_bytes, compile_skip_regexp, skip_command, skip_info)
8388 (skip_file_p, skip_gfile_p, skip_function_p, skip_rfunction_p)
8389 (function_name_is_marked_for_skip): Update.
8390 (skip_delete_command): Update. Use delete.
8391
cd3af38d
JW
83922017-08-09 Jiong Wang <jiong.wang@arm.com>
8393
8394 * aarch64-linux-tdep.c: Include "auxv.h" and "elf/common.h".
8395 (aarch64_linux_core_read_description): New function.
8396 (aarch64_linux_init_abi): Register gdbarch_core_read_description.
8397
29592bde
PA
83982017-08-09 Pedro Alves <palves@redhat.com>
8399
8400 * cp-name-parser.y (cp_comp_to_string): Return a
8401 gdb::unique_xmalloc_ptr<char>.
8402 * cp-support.c (replace_typedefs_qualified_name)
8403 (replace_typedefs): Adjust to use gdb::unique_xmalloc_ptr<char>.
8404 (cp_canonicalize_string_full): Use op= instead of explicit
8405 convertion.
8406 (cp_class_name_from_physname, method_name_from_physname)
8407 (cp_func_name, cp_remove_params): Adjust to use
8408 gdb::unique_xmalloc_ptr<char>.
8409 * cp-support.h (cp_comp_to_string): Return a
8410 gdb::unique_xmalloc_ptr<char>.
8411 * python/py-type.c (typy_lookup_type): Adjust to use
8412 gdb::unique_xmalloc_ptr<char>.
8413
b3340438
L
84142017-08-09 H.J. Lu <hongjiu.lu@intel.com>
8415
8416 * dwarf2read.c (dwarf2_string_attr): Fix a typo.
8417
e88e8651
YQ
84182017-08-09 Alex Lindsay <alexlindsay239@gmail.com>
8419 Yao Qi <yao.qi@linaro.org>
8420
8421 * cp-support.c (cp_canonicalize_string_full): Use
8422 gdb::unique_xmalloc_ptr<char>.
8423 (cp_canonicalize_string): Likewise.
8424
f5a29eb0
YQ
84252017-08-09 Yao Qi <yao.qi@linaro.org>
8426
8427 * features/Makefile (WHICH): Remove i386/ non-linux stuff.
8428 * regformats/i386/amd64-avx-avx512.dat: Remove.
8429 * regformats/i386/amd64-avx-mpx-avx512-pku.dat: Remove.
8430 * regformats/i386/amd64-avx-mpx.dat:Remove.
8431 * regformats/i386/amd64-avx.dat: Remove.
8432 * regformats/i386/amd64-mpx.dat: Remove.
8433 * regformats/i386/i386-avx-avx512.dat: Remove.
8434 * regformats/i386/i386-avx-mpx-avx512-pku.dat: Remove.
8435 * regformats/i386/i386-avx-mpx.dat: Remove.
8436 * regformats/i386/i386-mmx.dat: Remove.
8437 * regformats/i386/i386-mpx.dat: Remove.
8438
57757c2f
YQ
84392017-08-09 Yao Qi <yao.qi@linaro.org>
8440
8441 * amd64-tdep.h (tdesc_x32): Remove the declaration.
8442 * amd64-tdep.c: Don't include features/i386/x32*.c.
8443 (_initialize_amd64_tdep): Don't call initialize_tdesc_x32*
8444 functions.
8445 * features/Makefile (WHICH): Remove i386/x32, i386/x32-avx,
8446 and i386/x32-avx-avx512.
8447 (XMLTOC): Remove i386/x32-avx.xml, i386/x32-avx-avx512.xml,
8448 and i386/x32.xml.
8449 * features/i386/x32-avx-avx512.c: Removed.
8450 * features/i386/x32-avx-avx512.xml: Removed.
8451 * features/i386/x32-avx.c: Removed.
8452 * features/i386/x32-avx.xml: Removed.
8453 * features/i386/x32.c: Removed.
8454 * features/i386/x32.xml: Removed.
8455 * regformats/i386/x32-avx-avx512.dat: Removed.
8456 * regformats/i386/x32-avx.dat: Removed.
8457 * regformats/i386/x32.dat: Removed.
8458
ba7b109b
MR
84592017-08-07 Maciej W. Rozycki <macro@imgtec.com>
8460
8461 PR breakpoints/21886
8462 * mem-break.c (default_memory_insert_breakpoint): Use
8463 `->placed_address' rather than `->reqstd_address' for the
8464 breakpoint location.
8465
e347efc3
MR
84662017-08-07 Maciej W. Rozycki <macro@imgtec.com>
8467
8468 * arch-utils.c (default_print_insn): Remove arch/mach/endian
8469 assertions.
8470
0dba2a6c
MR
84712017-08-07 Maciej W. Rozycki <macro@imgtec.com>
8472
8473 * gdbarch.sh (gdbarch_info): Replace the `tdep_info' member with
8474 a union of `tdep_info', `tdesc_data' and `id'.
8475 * aarch64-tdep.c (aarch64_gdbarch_init): Use `info.tdesc_data'
8476 rather than `info.tdep_info'.
8477 * amd64-linux-tdep.c (amd64_linux_init_abi): Likewise.
8478 * i386-linux-tdep.c (i386_linux_init_abi): Likewise.
8479 * i386-tdep.c (i386_gdbarch_init): Likewise.
8480 * mips-linux-tdep.c (mips_linux_init_abi): Likewise.
8481 * mips-tdep.c (mips_gdbarch_init): Likewise.
8482 * nds32-tdep.c (nds32_gdbarch_init): Likewise.
8483 * rs6000-tdep.c (rs6000_gdbarch_init): Likewise.
8484 * ppc-linux-tdep.c (ppu2spu_sniffer): Use `info.id' rather than
8485 `info.tdep_info'.
8486 (ppc_linux_init_abi): Use `info.tdesc_data' rather than
8487 `info.tdep_info'.
8488 * sparc-tdep.c (sparc32_gdbarch_init): Likewise.
8489 * spu-multiarch.c (spu_gdbarch): Use `info.id' rather than
8490 `info.tdep_info'.
8491 * spu-tdep.c (spu_gdbarch_init): Likewise.
8492 * gdbarch.h: Regenerate.
8493
16eb6b2d
LS
84942017-08-07 Leszek Swirski <leszeks@google.com>
8495
7b005726 8496 PR symtab/20899
16eb6b2d
LS
8497 * dwarf2read.c (dwarf2_string_attr): Allow DW_FORM_GNU_strp_alt.
8498
74cbb09e
SM
84992017-08-07 Simon Marchi <simon.marchi@ericsson.com>
8500
8501 * remote-sim.c (gdbsim_load): Remove char **argv local variable.
8502 (gdbsim_open): Rename gdb_argv args object to argv.
8503
ee0c3293
TT
85042017-08-05 Tom Tromey <tom@tromey.com>
8505
8506 * compile/compile-object-load.c (compile_object_load): Use
8507 gdb::unique_xmalloc_ptr.
8508 * cli/cli-dump.c (scan_filename): Rename from
8509 scan_filename_with_cleanup. Change return type.
8510 (scan_expression): Rename from scan_expression_with_cleanup.
8511 Change return type.
8512 (dump_memory_to_file, dump_value_to_file, restore_command):
8513 Use gdb::unique_xmalloc_ptr. Update.
8514 * cli/cli-cmds.c (find_and_open_script): Use
8515 gdb::unique_xmalloc_ptr.
8516 * tracefile-tfile.c (tfile_open): Use gdb::unique_xmalloc_ptr.
8517 * symmisc.c (maintenance_print_symbols)
8518 (maintenance_print_msymbols): Use gdb::unique_xmalloc_ptr.
8519 * symfile.c (symfile_bfd_open, generic_load)
8520 (add_symbol_file_command, remove_symbol_file_command): Use
8521 gdb::unique_xmalloc_ptr.
8522 * source.c (openp): Use gdb::unique_xmalloc_ptr.
8523 * psymtab.c (maintenance_print_psymbols): Use
8524 gdb::unique_xmalloc_ptr.
8525 * corelow.c (core_open): Use gdb::unique_xmalloc_ptr.
8526 * breakpoint.c (save_breakpoints): Use gdb::unique_xmalloc_ptr.
8527 * solib.c (solib_map_sections): Use gdb::unique_xmalloc_ptr.
8528 (reload_shared_libraries_1): Likewise.
8529
3232fabd
TT
85302017-08-05 Tom Tromey <tom@tromey.com>
8531
8532 * rust-exp.y (rust_op_ptr, set_field): Remove typedefs.
8533 (rust_op_vector, rust_set_vector): New typedefs.
8534 (current_parser): New global.
8535 (work_obstack): Change to pointer type. Update all users.
8536 (rust_ast, pstate): Remove globals.
8537 (struct rust_parser): New.
8538 (%union) <params, field_inits>: Change type.
8539 (start, tuple_expr, unit_expr, struct_expr_list, literal)
8540 (field_expr, expr_list, maybe_expr_list, type_list): Update.
8541 (ast_call_ish, ast_path, ast_function_type, ast_tuple_type)
8542 (convert_params_to_types, convert_params_to_expression): Change
8543 type of "params".
8544 (ast_string): Change type of "fields".
8545 (rust_parse): Make a rust_parser. Remove cleanups.
8546 (rust_lex_tests): Make and install an auto_obstack.
8547
f02fd774
YQ
85482017-08-04 Yao Qi <yao.qi@linaro.org>
8549
8550 * configure.srv (ipa_x32_linux_regobj): New.
8551 * linux-amd64-ipa.c (get_ipa_tdesc): Use X86_TDESC_AVX_AVX512
8552 instead of X86_TDESC_AVX512.
8553 (initialize_low_tracepoint): Call
8554 init_registers_x32_avx_avx512_linux.
8555
91975afd
YQ
85562017-08-04 Yao Qi <yao.qi@linaro.org>
8557
8558 * utils.h (gdb_argv): Add namespace std for nullptr_t.
8559
2331fa3a
RK
85602017-08-03 Ruslan Kabatsayev <b7.10110111@gmail.com>
8561
8562 * MAINTAINERS (Write After Approval): Add Ruslan Kabatsayev.
8563
744e4fe1
TT
85642017-08-03 Tom Tromey <tom@tromey.com>
8565
8566 * utils.c (make_cleanup_freeargv, do_freeargv, gdb_buildargv):
8567 Remove.
8568 * utils.h (make_cleanup_freeargv, gdb_buildargv): Remove.
8569
1c034b67
TT
85702017-08-03 Tom Tromey <tom@tromey.com>
8571
8572 * python/py-param.c (compute_enum_values): Use gdb_argv.
8573
773a1edc
TT
85742017-08-03 Tom Tromey <tom@tromey.com>
8575
8576 * utils.h (struct gdb_argv_deleter): New.
8577 (gdb_argv): New class.
8578 * utils.c (gdb_argv::reset): New method.
8579 * tracepoint.c (delete_trace_variable_command): Use gdb_argv.
8580 * tracefile.c (tsave_command): Use gdb_argv.
8581 * top.c (new_ui_command): Use gdb_argv.
8582 * symmisc.c (maintenance_print_symbols)
8583 (maintenance_print_msymbols, maintenance_expand_symtabs): Use gdb_argv.
8584 * symfile.c (symbol_file_command, generic_load)
8585 (remove_symbol_file_command): Use gdb_argv.
8586 * stack.c (backtrace_command): Use gdb_argv.
8587 * source.c (add_path, show_substitute_path_command)
8588 (unset_substitute_path_command, set_substitute_path_command):
8589 Use gdb_argv.
8590 * skip.c (skip_command): Use gdb_argv. Use gdb_buildargv.
8591 * ser-mingw.c (pipe_windows_open): Use gdb_argv.
8592 * remote.c (extended_remote_run, remote_put_command)
8593 (remote_get_command, remote_delete_command): Use gdb_argv.
8594 * remote-sim.c (gdbsim_load, gdbsim_create_inferior)
8595 (gdbsim_open): Use gdb_argv.
8596 * python/py-cmd.c (gdbpy_string_to_argv): Use gdb_argv.
8597 * psymtab.c (maintenance_print_psymbols): Use gdb_argv.
8598 * procfs.c (procfs_info_proc): Use gdb_argv.
8599 * interps.c (interpreter_exec_cmd): Use gdb_argv.
8600 * infrun.c (handle_command): Use gdb_argv.
8601 * inferior.c (add_inferior_command, clone_inferior_command):
8602 Use gdb_argv.
8603 * guile/scm-string.c (gdbscm_string_to_argv): Use gdb_argv.
8604 * exec.c (exec_file_command): Use gdb_argv.
8605 * cli/cli-cmds.c (alias_command): Use gdb_argv.
8606 * compile/compile.c (build_argc_argv): Use gdb_argv.
8607
0d50bde3
TT
86082017-08-03 Tom Tromey <tom@tromey.com>
8609
8610 * python/python.c (gdbpy_decode_line): Use unique_xmalloc_ptr.
8611
7f968c89
TT
86122017-08-03 Tom Tromey <tom@tromey.com>
8613
8614 * python/python.c (compute_python_string): Return std::string.
8615 (gdbpy_eval_from_control_command): Update.
8616 (do_start_initialization): Use std::string.
8617 * python/py-varobj.c (py_varobj_iter_next): Use string_printf, not
8618 xstrprintf.
8619 * python/py-breakpoint.c (local_setattro): Use string_printf, not
8620 xstrprintf.
8621
3c9ebddd
TT
86222017-08-03 Tom Tromey <tom@tromey.com>
8623
8624 * top.h (do_restore_instream_cleanup): Remove.
8625 * top.c (do_restore_instream_cleanup): Remove.
8626 (read_command_file): Use scoped_restore.
8627 * cli/cli-script.c (execute_user_command): Use scoped_restore.
8628
b51b225e
TT
86292017-08-03 Tom Tromey <tom@tromey.com>
8630
8631 * cli/cli-script.c (execute_user_command)
8632 (execute_control_command): Use scoped_restore.
8633
ac991630
TT
86342017-08-03 Tom Tromey <tom@tromey.com>
8635
8636 * cli/cli-script.c (do_restore_user_call_depth): Remove.
8637 (execute_user_command): Remove user_call_depth; use
8638 user_args_stack's size instead.
8639
898e0c8e
TT
86402017-08-03 Tom Tromey <tom@tromey.com>
8641
8642 * top.h (in_user_command): Remove.
8643 * top.c (in_user_command): Remove.
8644 * cli/cli-script.c (do_restore_user_call_depth)
8645 (execute_user_command): Update.
8646
26fcd5d7
TT
86472017-08-03 Tom Tromey <tom@tromey.com>
8648
8649 * valops.c (search_struct_method): Use gdb::byte_vector.
8650 * valarith.c (value_concat): Use std::vector.
8651 * target.c (memory_xfer_partial): Use gdb::byte_vector.
8652 (simple_search_memory): Likewise.
8653 * printcmd.c (find_string_backward): Use gdb::byte_vector.
8654 * mi/mi-main.c (mi_cmd_data_write_memory): Use gdb::byte_vector.
8655 * gcore.c (gcore_copy_callback): Use gdb::byte_vector.
8656 * elfread.c (elf_rel_plt_read): Use std::string.
8657 * cp-valprint.c (cp_print_value): Use gdb::byte_vector.
8658 * cli/cli-dump.c (restore_section_callback): Use
8659 gdb::byte_vector.
8660
7c218e6c
TT
86612017-08-03 Tom Tromey <tom@tromey.com>
8662
8663 * jit.c (jit_reader_load_command): Use unique_xmalloc_ptr.
8664
31b68d4a
TT
86652017-08-03 Tom Tromey <tom@tromey.com>
8666
8667 * tui/tui-regs.c (tui_restore_gdbout): Remove.
8668 (tui_register_format): Use scoped_restore.
8669
2ec845e7
TT
86702017-08-03 Tom Tromey <tom@tromey.com>
8671
8672 * reverse.c (exec_direction_default): Remove.
8673 (exec_reverse_once): Use scoped_restore.
8674 * remote.c (restore_remote_timeout): Remove.
8675 (remote_flash_erase, remote_flash_write, remote_flash_done)
8676 (readchar, remote_serial_write): Use scoped_restore.
8677 * cli/cli-script.c (struct source_cleanup_lines_args)
8678 (source_cleanup_lines): Remove.
8679 (script_from_file): Use scoped_restore.
8680 * cli/cli-cmds.c (source_verbose_cleanup): Remove.
8681 (source_command): Use scoped_restore.
8682
b3bc8453
TT
86832017-08-03 Tom Tromey <tom@tromey.com>
8684
8685 * utils.h (make_cleanup_free_so): Remove.
8686 * utils.c (do_free_so, make_cleanup_free_so): Remove.
8687 * solist.h (struct so_deleter): New.
8688 (so_list_up): New typedef.
8689 * solib-svr4.c (svr4_read_so_list): Use so_list_up.
8690
e3ad2841
TT
86912017-08-03 Tom Tromey <tom@tromey.com>
8692
8693 * utils.h (make_cleanup_restore_current_language): Remove.
8694 * utils.c (do_restore_current_language)
8695 (make_cleanup_restore_current_language): Remove.
8696 * parse.c (parse_exp_in_context_1)
8697 (parse_expression_with_language): Use
8698 scoped_restore_current_language.
8699 * mi/mi-main.c (mi_cmd_execute): Use
8700 scoped_restore_current_language.
8701 * language.h (scoped_restore_current_language): New class.
8702
b80cf838
TT
87032017-08-03 Tom Tromey <tom@tromey.com>
8704
8705 * compile/compile.c (cleanup_unlink_file): Remove.
8706 (compile_to_object): Use gdb::unlinker.
8707 (eval_compile_command): Likewise.
8708
fad0444a
TT
87092017-08-03 Tom Tromey <tom@tromey.com>
8710
8711 * utils.h (make_cleanup_fclose): Remove.
8712 * utils.c (do_fclose_cleanup, make_cleanup_fclose): Remove.
8713
6e7bc05c
TT
87142017-08-03 Tom Tromey <tom@tromey.com>
8715
8716 * top.c (open_terminal_stream): Return gdb_file_up.
8717 (new_ui_command): Update.
8718
4a45905b
TT
87192017-08-03 Tom Tromey <tom@tromey.com>
8720
8721 * source.c (print_source_lines_base, forward_search_command)
8722 (reverse_search_command): Use gdb_file_up.
8723
7cd06d6e
TT
87242017-08-03 Tom Tromey <tom@tromey.com>
8725
8726 * fbsd-nat.c (fbsd_find_memory_regions): Update.
8727
ed166945
TT
87282017-08-03 Tom Tromey <tom@tromey.com>
8729
8730 * cli/cli-cmds.c (find_and_open_script): Change return type.
8731 Remove "streamp" and "full_path" parameters.
8732 (source_script_with_search): Update.
8733 * auto-load.c (source_script_file): Update.
8734 * cli/cli-cmds.h (find_and_open_script): Change type.
8735 (open_script): New struct.
8736
d419f42d
TT
87372017-08-03 Tom Tromey <tom@tromey.com>
8738
8739 * xml-support.c (xml_fetch_content_from_file): Update.
8740 * ui-file.c (stdio_file::open): Update.
8741 * tracefile-tfile.c (tfile_start): Update.
8742 * remote.c (remote_file_put, remote_file_get): Update.
8743 * nat/linux-procfs.c (linux_proc_get_int)
8744 (linux_proc_pid_get_state, linux_proc_tid_get_name): Update.
8745 * nat/linux-osdata.c (linux_common_core_of_thread): Update.
8746 (command_from_pid, commandline_from_pid, linux_xfer_osdata_cpus)
8747 (print_sockets, linux_xfer_osdata_shm, linux_xfer_osdata_sem)
8748 (linux_xfer_osdata_msg, linux_xfer_osdata_modules): Update.
8749 * nat/linux-btrace.c (linux_determine_kernel_start): Update.
8750 * linux-nat.c (linux_proc_pending_signals): Update.
8751 * dwarf2read.c (write_psymtabs_to_index): Use gdb_file_up.
8752 (file_closer): Remove.
8753 * compile/compile.c (compile_to_object): Update.
8754 * common/filestuff.h (struct gdb_file_deleter): New.
8755 (gdb_file_up): New typedef.
8756 (gdb_fopen_cloexec): Change return type.
8757 * common/filestuff.c (gdb_fopen_cloexec): Return gdb_file_up.
8758 * cli/cli-dump.c (fopen_with_cleanup): Remove.
8759 (dump_binary_file, restore_binary_file): Update.
8760 * auto-load.c (auto_load_objfile_script_1): Update.
8761
4a2b031d
TT
87622017-08-03 Tom Tromey <tom@tromey.com>
8763
8764 * tracepoint.c (tvariables_info_1): Use ui_out_emit_table.
8765 (info_static_tracepoint_markers_command): Likewise.
8766 * solib.c (info_sharedlibrary_command): Use ui_out_emit_table.
8767 * skip.c (skip_info): Use ui_out_emit_table.
8768 * progspace.c (print_program_space): Use ui_out_emit_table.
8769 * osdata.c (info_osdata): Use ui_out_emit_table.
8770 * mi/mi-cmd-info.c (mi_cmd_info_ada_exceptions): Use
8771 ui_out_emit_table.
8772 * linux-thread-db.c (info_auto_load_libthread_db): Use
8773 ui_out_emit_table.
8774 * inferior.c (print_inferior): Use ui_out_emit_table.
8775 * gdb_bfd.c (maintenance_info_bfds): Use ui_out_emit_table.
8776 * breakpoint.c (breakpoint_1): Use ui_out_emit_table.
8777 * auto-load.c (auto_load_info_scripts): Use ui_out_emit_table.
8778 * ada-tasks.c (print_ada_task_info): Use ui_out_emit_table.
8779 * ui-out.h (class ui_out_emit_table): New.
8780
a4f320fd
MR
87812017-08-02 Maciej W. Rozycki <macro@imgtec.com>
8782
8783 * mips-tdep.c (mips_fpu_type_str): New function.
8784 (mips_dump_tdep): Call it.
8785
a2f1f308
MR
87862017-08-01 Maciej W. Rozycki <macro@imgtec.com>
8787
8788 * mips-tdep.c (mips_gdbarch_init): Use MIPS_FPU_TYPE to access
8789 `->mips_fpu_type'.
8790
7e5ed83b
XR
87912017-07-31 Xavier Roirand <roirand@adacore.com>
8792
8793 * solib-darwin.c (DYLD_VERSION_MAX): Increase value.
8794
4c9dc811
XR
87952017-07-27 Xavier Roirand <roirand@adacore.com>
8796
8797 * MAINTAINERS (Write After Approval): Add Xavier Roirand.
8798
27d41eac
YQ
87992017-07-26 Yao Qi <yao.qi@linaro.org>
8800
8801 * cli/cli-cmds.c (maintenancechecklist): New variable.
8802 * gdbcmd.h (maintenancechecklist): Declare it.
8803 * i386-linux-tdep.c (_initialize_i386_linux_tdep) [GDB_SELF_TEST]:
8804 Call i386_linux_read_description with different masks.
8805 * maint.c (maintenance_check_command): New function.
8806 (_initialize_maint_cmds): Call add_prefix_cmd.
8807 * target-descriptions.c (tdesc_reg): override operator != and ==.
8808 (tdesc_type): Likewise.
8809 (tdesc_feature): Likewise.
8810 (target_desc): Likewise.
8811 [GDB_SELF_TEST] (selftests::record_xml_tdesc): New function.
8812 (maintenance_check_xml_descriptions): New function.
8813 (_initialize_target_descriptions) Add command "xml-descriptions".
8814 * target-descriptions.h (selftests::record_xml_tdesc): Declare.
8815
ea03d0d3
YQ
88162017-07-26 Yao Qi <yao.qi@linaro.org>
8817
8818 * i386-linux-tdep.c: Don't include features/i386/i386-*linux.c.
8819 Include features/i386/32bit-*.c.
8820 (i386_linux_read_description): Generate target description if it
8821 doesn't exist.
8822 (_initialize_i386_linux_tdep): Don't call _initialize_tdesc_i386
8823 functions.
8824 * features/i386/32bit-linux.c: Re-generated.
8825 * features/i386/32bit-sse.c: Likewise.
8826 * target-descriptions.c (print_c_feature::visit): Print code to
8827 set register number if needed.
8828 (print_c_feature) <m_next_regnum>: New field.
8829
25aa13e5
YQ
88302017-07-26 Yao Qi <yao.qi@linaro.org>
8831
8832 * features/Makefile (CFILES): Rename with TDESC_CFILES.
8833 (FEATURE_XMLFILES): New.
8834 (FEATURE_CFILES): New.
8835 New rules.
8836 (clean-cfiles): Remove generated c files.
8837 * features/i386/32bit-avx.c: Generated.
8838 * features/i386/32bit-avx512.c: Generated.
8839 * features/i386/32bit-core.c: Generated.
8840 * features/i386/32bit-linux.c: Generated.
8841 * features/i386/32bit-mpx.c: Generated.
8842 * features/i386/32bit-pkeys.c: Generated.
8843 * features/i386/32bit-sse.c: Generated.
8844 * target-descriptions.c: Include algorithm.
8845 (tdesc_element_visitor): Add method visit_end.
8846 (print_c_tdesc): Implement visit_end.
8847 (print_c_tdesc:: m_filename_after_features): Move it to
8848 protected.
8849 (print_c_feature): New class.
8850 (maint_print_c_tdesc_cmd): Use print_c_feature if XML file
8851 name starts with "i386/32bit-".
8852
6eb1e6a8
YQ
88532017-07-26 Yao Qi <yao.qi@linaro.org>
8854
8855 * target-descriptions.c (tdesc_element_visitor): New class.
8856 (tdesc_element): New class.
8857 (tdesc_reg): Inherit from tdesc_element.
8858 (tdesc_reg::accept): New function.
8859 (tdesc_type): Inherit from tdesc_element.
8860 (tdesc_type::accept): New function.
8861 (tdesc_feature): Inherit from tdesc_element.
8862 (tdesc_feature::accept): New function.
8863 (target_desc): Inherit from tdesc_element.
8864 (target_desc::target_desc): New.
8865 (target_desc::~target_desc): New.
8866 (target_desc::accept): New.
8867 (allocate_target_description): Use new.
8868 (free_target_description): Use delete.
8869 (print_c_tdesc): New class.
8870 (maint_print_c_tdesc_cmd): Adjust.
8871
8872 * features/aarch64.c: Re-generated.
8873 * features/arc-arcompact.c: Re-generated.
8874 * features/arc-v2.c: Re-generated.
8875 * features/arm/arm-with-iwmmxt.c: Re-generated.
8876 * features/arm/arm-with-m.c: Re-generated.
8877 * features/arm/arm-with-m-fpa-layout.c: Re-generated.
8878 * features/arm/arm-with-m-vfp-d16.c: Re-generated.
8879 * features/arm/arm-with-neon.c: Re-generated.
8880 * features/arm/arm-with-vfpv2.c: Re-generated.
8881 * features/arm/arm-with-vfpv3.c: Re-generated.
8882 * features/i386/amd64-avx-avx512.c: Re-generated.
8883 * features/i386/amd64-avx-avx512-linux.c: Re-generated.
8884 * features/i386/amd64-avx.c: Re-generated.
8885 * features/i386/amd64-avx-linux.c: Re-generated.
8886 * features/i386/amd64-avx-mpx-avx512-pku.c: Re-generated.
8887 * features/i386/amd64-avx-mpx-avx512-pku-linux.c: Re-generated.
8888 * features/i386/amd64-avx-mpx.c: Re-generated.
8889 * features/i386/amd64-avx-mpx-linux.c: Re-generated.
8890 * features/i386/amd64.c: Re-generated.
8891 * features/i386/amd64-linux.c: Re-generated.
8892 * features/i386/amd64-mpx.c: Re-generated.
8893 * features/i386/amd64-mpx-linux.c: Re-generated.
8894 * features/i386/i386-avx-avx512.c: Re-generated.
8895 * features/i386/i386-avx-avx512-linux.c: Re-generated.
8896 * features/i386/i386-avx.c: Re-generated.
8897 * features/i386/i386-avx-linux.c: Re-generated.
8898 * features/i386/i386-avx-mpx-avx512-pku.c: Re-generated.
8899 * features/i386/i386-avx-mpx-avx512-pku-linux.c: Re-generated.
8900 * features/i386/i386-avx-mpx.c: Re-generated.
8901 * features/i386/i386-avx-mpx-linux.c: Re-generated.
8902 * features/i386/i386.c: Re-generated.
8903 * features/i386/i386-linux.c: Re-generated.
8904 * features/i386/i386-mmx.c: Re-generated.
8905 * features/i386/i386-mmx-linux.c: Re-generated.
8906 * features/i386/i386-mpx.c: Re-generated.
8907 * features/i386/i386-mpx-linux.c: Re-generated.
8908 * features/i386/x32-avx-avx512.c: Re-generated.
8909 * features/i386/x32-avx-avx512-linux.c: Re-generated.
8910 * features/i386/x32-avx.c: Re-generated.
8911 * features/i386/x32-avx-linux.c: Re-generated.
8912 * features/i386/x32.c: Re-generated.
8913 * features/i386/x32-linux.c: Re-generated.
8914 * features/microblaze.c: Re-generated.
8915 * features/microblaze-with-stack-protect.c: Re-generated.
8916 * features/mips64-dsp-linux.c: Re-generated.
8917 * features/mips64-linux.c: Re-generated.
8918 * features/mips-dsp-linux.c: Re-generated.
8919 * features/mips-linux.c: Re-generated.
8920 * features/nds32.c: Re-generated.
8921 * features/nios2.c: Re-generated.
8922 * features/nios2-linux.c: Re-generated.
8923 * features/rs6000/powerpc-32.c: Re-generated.
8924 * features/rs6000/powerpc-32l.c: Re-generated.
8925 * features/rs6000/powerpc-403.c: Re-generated.
8926 * features/rs6000/powerpc-403gc.c : Re-generated.
8927 * features/rs6000/powerpc-405.c: Re-generated.
8928 * features/rs6000/powerpc-505.c: Re-generated.
8929 * features/rs6000/powerpc-601.c: Re-generated.
8930 * features/rs6000/powerpc-602.c: Re-generated.
8931 * features/rs6000/powerpc-603.c: Re-generated.
8932 * features/rs6000/powerpc-604.c: Re-generated.
8933 * features/rs6000/powerpc-64.c: Re-generated.
8934 * features/rs6000/powerpc-64l.c: Re-generated.
8935 * features/rs6000/powerpc-7400.c: Re-generated.
8936 * features/rs6000/powerpc-750.c: Re-generated.
8937 * features/rs6000/powerpc-860.c: Re-generated.
8938 * features/rs6000/powerpc-altivec32.c: Re-generated.
8939 * features/rs6000/powerpc-altivec32l.c: Re-generated.
8940 * features/rs6000/powerpc-altivec64.c: Re-generated.
8941 * features/rs6000/powerpc-altivec64l.c: Re-generated.
8942 * features/rs6000/powerpc-cell32l.c: Re-generated.
8943 * features/rs6000/powerpc-cell64l.c: Re-generated.
8944 * features/rs6000/powerpc-e500.c: Re-generated.
8945 * features/rs6000/powerpc-e500l.c: Re-generated.
8946 * features/rs6000/powerpc-isa205-32l.c: Re-generated.
8947 * features/rs6000/powerpc-isa205-64l.c: Re-generated.
8948 * features/rs6000/powerpc-isa205-altivec32l.c: Re-generated.
8949 * features/rs6000/powerpc-isa205-altivec64l.c: Re-generated.
8950 * features/rs6000/powerpc-isa205-vsx32l.c: Re-generated.
8951 * features/rs6000/powerpc-isa205-vsx64l.c: Re-generated.
8952 * features/rs6000/powerpc-vsx32.c: Re-generated.
8953 * features/rs6000/powerpc-vsx32l.c: Re-generated.
8954 * features/rs6000/powerpc-vsx64.c: Re-generated.
8955 * features/rs6000/powerpc-vsx64l.c: Re-generated.
8956 * features/rs6000/rs6000.c: Re-generated.
8957 * features/s390-linux32.c: Re-generated.
8958 * features/s390-linux32v1.c: Re-generated.
8959 * features/s390-linux32v2.c: Re-generated.
8960 * features/s390-linux64.c: Re-generated.
8961 * features/s390-linux64v1.c: Re-generated.
8962 * features/s390-linux64v2.c: Re-generated.
8963 * features/s390-te-linux64.c: Re-generated.
8964 * features/s390-tevx-linux64.c: Re-generated.
8965 * features/s390-vx-linux64.c: Re-generated.
8966 * features/s390x-linux64.c: Re-generated.
8967 * features/s390x-linux64v1.c: Re-generated.
8968 * features/s390x-linux64v2.c: Re-generated.
8969 * features/s390x-te-linux64.c: Re-generated.
8970 * features/s390x-tevx-linux64.c: Re-generated.
8971 * features/s390x-vx-linux64.c: Re-generated.
8972 * features/sparc/sparc32-solaris.c: Re-generated.
8973 * features/sparc/sparc64-solaris.c: Re-generated.
8974 * features/tic6x-c62x.c: Re-generated.
8975 * features/tic6x-c62x-linux.c: Re-generated.
8976 * features/tic6x-c64x.c: Re-generated.
8977 * features/tic6x-c64x-linux.c: Re-generated.
8978 * features/tic6x-c64xp.c: Re-generated.
8979 * features/tic6x-c64xp-linux.c: Re-generated.
8980
35b4818d
YQ
89812017-07-26 Yao Qi <yao.qi@linaro.org>
8982
8983 * i386-linux-tdep.c (i386_linux_read_description): New function.
8984 (i386_linux_core_read_description): Call
8985 i386_linux_read_description.
8986 * i386-linux-tdep.h (i386_linux_read_description): Declare.
8987 (tdesc_i386_linux, tdesc_i386_mmx_linux): Remove declarations.
8988 (tdesc_i386_avx_linux, tdesc_i386_mpx_linux): Likewise
8989 (tdesc_i386_avx_mpx_linux, tdesc_i386_avx_avx512_linux): Likewise.
8990 (tdesc_i386_avx_mpx_avx512_pku_linux): Likewise.
8991 * x86-linux-nat.c (x86_linux_read_description): Call
8992 i386_linux_read_description.
8993
8e2141c6
YQ
89942017-07-26 Yao Qi <yao.qi@linaro.org>
8995
8996 * NEWS: Mention it.
8997 * features/Makefile (%.c: %.xml): Pass the xml file name to
8998 command "maint print c-tdesc".
8999 * target-descriptions.c (maint_print_c_tdesc_cmd): Get file
9000 name from 'arg'.
9001
b468ff4c
YQ
90022017-07-26 Yao Qi <yao.qi@linaro.org>
9003
9004 * target-descriptions.c (target_desc): Add ctor and dtor. Do
9005 in-class initialization.
9006 (tdesc_create_feature): Call new instead of XCNEW.
9007 (free_target_description): Ue delete.
9008
b9c0e1b4
JB
90092017-07-25 John Baldwin <jhb@FreeBSD.org>
9010
9011 * configure.nat: Add "-lkvm" for NetBSD/sparc64 and fix typo.
9012
a04b5337
YQ
90132017-07-25 Yao Qi <yao.qi@linaro.org>
9014
9015 * amd64-tdep.c (amd64_init_abi): Make argument default_tdesc
9016 constant.
9017 (amd64_x32_init_abi): Likewise.
9018 * amd64-tdep.h (amd64_init_abi): Update declaration.
9019 (amd64_x32_init_abi): Likewise.
9020
02ad7fc2
YQ
90212017-07-25 Yao Qi <yao.qi@linaro.org>
9022
9023 PR tdep/21717
9024 * arm-linux-nat.c (arm_linux_fetch_inferior_registers): Update
9025 condition for FPSCR.
9026 (arm_linux_store_inferior_registers): Likewise.
9027
b6f48cb0
TT
90282017-07-22 Tom Tromey <tom@tromey.com>
9029
9030 * break-catch-syscall.c (struct catch_syscall_inferior_data)
9031 <syscalls_counts>: Now a std::vector.
9032 (get_catch_syscall_inferior_data): Use "new".
9033 (catch_syscall_inferior_data_cleanup): Use "delete".
9034 (insert_catch_syscall, remove_catch_syscall)
9035 (clear_syscall_counts): Update.
9036
e12c9b7a
TT
90372017-07-22 Tom Tromey <tom@tromey.com>
9038
9039 * break-catch-syscall.c (syscall_catchpoint)
9040 <syscalls_to_be_caught>: Now a std::vector<int>
9041 (~syscall_catchpoint): Remove.
9042 (insert_catch_syscall, remove_catch_syscall)
9043 (breakpoint_hit_catch_syscall, print_one_catch_syscall)
9044 (print_mention_catch_syscall, print_recreate_catch_syscall):
9045 Update.
9046 (create_syscall_event_catchpoint): Change type of "filter"
9047 parameter.
9048 (catch_syscall_split_args): Return a std::vector.
9049 (catch_syscall_command_1, catching_syscall_number_1): Update.
9050
4fa8aeac
TT
90512017-07-22 Tom Tromey <tom@tromey.com>
9052
9053 * break-catch-throw.c (struct exception_catchpoint)
9054 <exception_rx>: Now a std::string.
9055 (~exception_catchpoint): Remove.
9056 (print_one_detail_exception_catchpoint): Update.
9057 (handle_gnu_v3_exceptions): Change type of except_rx.
9058 (extract_exception_regexp): Return a std::string.
9059 (catch_exception_command_1): Update.
9060
f746a154
TT
90612017-07-22 Tom Tromey <tom@tromey.com>
9062
9063 * break-catch-sig.c (gdb_signal_type): Remove typedef.
9064 (struct signal_catchpoint) <signals_to_be_caught>: Now a
9065 std::vector.
9066 <catch_all>: Now a bool.
9067 (~signal_catchpoint): Remove.
9068 (signal_catchpoint_insert_location)
9069 (signal_catchpoint_remove_location)
9070 (signal_catchpoint_breakpoint_hit, signal_catchpoint_print_one)
9071 (signal_catchpoint_print_mention)
9072 (signal_catchpoint_print_recreate)
9073 (signal_catchpoint_explains_signal): Update.
9074 (create_signal_catchpoint): Change type of "filter" and
9075 "catch_all".
9076 (catch_signal_split_args): Return a std::vector. Change type of
9077 "catch_all".
9078 (catch_signal_command): Update.
9079
47e77640
PA
90802017-07-20 Pedro Alves <palves@redhat.com>
9081
9082 * ada-lang.c (ada_language_defn): Make extern.
9083 (_initialize_ada_language): Remove add_language call.
9084 * c-lang.c (c_language_defn, cplus_language_defn)
9085 (asm_language_defn, minimal_language_defn): Make extern.
9086 (_initialize_c_language): Delete.
9087 * completer.c (compare_cstrings): Delete, moved to utils.h.
9088 * d-lang.c (d_language_defn): Make extern.
9089 (_initialize_d_language): Remove add_language calls.
9090 * defs.h (enum language): Add comment.
9091 * f-lang.c (f_language_defn): Make extern.
9092 (_initialize_f_language): Remove add_language call.
9093 * go-lang.c (go_language_defn): Make extern.
9094 (_initialize_go_language): Remove add_language call.
9095 * language.c: Include <algorithm>.
9096 (languages): Redefine as const array.
9097 (languages_size, languages_allocsize, DEFAULT_ALLOCSIZE): Delete.
9098 (set_language_command): Handle "local". Use for-range loop.
9099 (set_language): Remove loop.
9100 (language_enum): Rewrite.
9101 (language_def, language_str): Remove loops.
9102 (add_language): Delete.
9103 (add_set_language_command): New, based on add_languages.
9104 (skip_language_trampoline): Adjust.
9105 (local_language_defn): Delete.
9106 (language_gdbarch_post_init): Adjust.
9107 (_initialize_language): Remove add_language calls. Call
9108 add_set_language_command.
9109 * language.h (add_language): Delete.
9110 (auto_language_defn)
9111 (unknown_language_defn, minimal_language_defn, ada_language_defn)
9112 (asm_language_defn, c_language_defn, cplus_language_defn)
9113 (d_language_defn, f_language_defn, go_language_defn)
9114 (m2_language_defn, objc_language_defn, opencl_language_defn)
9115 (pascal_language_defn, rust_language_defn): Declare.
9116 * m2-lang.c (m2_language_defn): Make extern.
9117 (_initialize_m2_language): Remove add_language call.
9118 * objc-lang.c (objc_language_defn): Make extern.
9119 (_initialize_objc_language): Remove add_language call.
9120 * opencl-lang.c (opencl_language_defn): Make extern.
9121 (_initialize_opencl_language): Remove add_language call.
9122 * p-lang.c (pascal_language_defn): Make extern.
9123 (_initialize_pascal_language): Delete.
9124 * rust-lang.c (rust_language_defn): Make extern.
9125 (_initialize_rust_language): Delete.
9126 * utils.h (compare_cstrings): New static inline function.
9127
edb0c9cb
PA
91282017-07-20 Pedro Alves <palves@redhat.com>
9129
9130 * ada-lang.c (ada_to_fixed_type_1): Adjust.
9131 (get_var_value): Constify parameters.
9132 (get_int_var_value): Change prototype.
9133 (to_fixed_range_type): Adjust.
9134 * ada-lang.h (get_int_var_value): Change prototype.
9135
a778f165
PA
91362017-07-20 Pedro Alves <palves@redhat.com>
9137
9138 * dwarf2read.c (dw2_lookup_symbol): Use
9139 SYMBOL_MATCHES_SEARCH_NAME.
9140 * psymtab.c (psym_lookup_symbol): Use SYMBOL_MATCHES_SEARCH_NAME.
9141
42edd901
PA
91422017-07-20 Pedro Alves <palves@redhat.com>
9143
9144 * block.c (block_iter_name_step, block_iter_name_first)
9145 (block_iter_name_next): Delete.
9146 (block_lookup_symbol_primary): Adjust to use
9147 dict_iter_match_first/dict_iter_match_next.
9148 * block.h (block_iter_name_first, block_iter_name_next): Delete
9149 declarations.
9150 (ALL_BLOCK_SYMBOLS_WITH_NAME): Adjust to use
9151 dict_iter_match_first/dict_iter_match_next.
9152
cf325299
PA
91532017-07-20 Pedro Alves <palves@redhat.com>
9154
9155 * cp-support.c (cp_find_first_component_aux): Add missing case for
9156 end of string.
9157
c5ed0576
DB
91582017-07-18 David Blaikie <dblaikie@gmail.com>
9159
9160 * dwarf2read.c (create_cus_hash_table): Re-add lost initialization
9161 of dwo_cu's dwo_file.
9162
27841e76
YQ
91632017-07-18 Yao Qi <yao.qi@linaro.org>
9164
9165 * remote.c (store_registers_using_G): Remove one line comment.
9166
cfb7e58b
YQ
91672017-07-18 Yao Qi <yao.qi@linaro.org>
9168
9169 * regcache.c (regcache_cpy): Simplify it.
9170 (regcache::cpy_no_passthrough): Remove it.
9171 * regcache.h (cpy_no_passthrough): Remove it.
9172 (regcache_dup, regcache_cpy): Update comments.
9173
386535dd
PA
91742017-07-18 Pedro Alves <palves@redhat.com>
9175
9176 * remote-sim.c (sim_command_completer): Adjust to work with a
9177 completion_tracker instead of a VEC.
9178
c45ec17c
PA
91792017-07-17 Pedro Alves <palves@redhat.com>
9180
9181 * completer.c (complete_source_filenames): New function.
9182 (complete_address_and_linespec_locations): New function.
9183 (location_completer): Use complete_address_and_linespec_locations.
9184 (completion_tracker::build_completion_result): Honor the tracker's
9185 request to suppress append.
9186 * completer.h (completion_tracker::suppress_append_ws)
9187 (completion_tracker::set_suppress_append_ws): New methods.
9188 (completion_tracker::m_suppress_append_ws): New field.
9189 (complete_source_filenames): New declaration.
9190 * linespec.c (linespec_complete_what): New.
9191 (struct ls_parser) <complete_what, completion_word,
9192 completion_quote_char, completion_quote_end, completion_tracker>:
9193 New fields.
9194 (string_find_incomplete_keyword_at_end): New.
9195 (linespec_lexer_lex_string): Record quote char. If in completion
9196 mode, don't throw.
9197 (linespec_lexer_consume_token): Advance the completion word point.
9198 (linespec_lexer_peek_token): Save/restore completion info.
9199 (save_stream_and_consume_token): New.
9200 (set_completion_after_number): New.
9201 (linespec_parse_basic): Set what to complete next depending on
9202 token. Handle function and label completions specially.
9203 (parse_linespec): Disable objc shortcut in completion mode. Set
9204 what to complete next depending on token type. Skip keyword if in
9205 completion mode.
9206 (complete_linespec_component, linespec_complete): New.
9207 * linespec.h (linespec_complete): Declare.
9208
be966d42
PA
92092017-07-17 Pedro Alves <palves@redhat.com>
9210
9211 * linespec.c (linespec_lexer_lex_string, find_toplevel_char):
9212 Handle 'operator<' / 'operator<<'.
9213
a2459270
PA
92142017-07-17 Pedro Alves <palves@redhat.com>
9215
9216 * completer.c (collect_explicit_location_matches): Handle
9217 MATCH_LABEL.
9218 (convert_explicit_location_to_linespec): New, factored out from
9219 ...
9220 (convert_explicit_location_to_sals): ... this.
9221 (complete_label): New.
9222 (linespec_complete_label, find_label_symbols_in_block): New.
9223 (find_label_symbols): Add completion_mode parameter and adjust to
9224 call find_label_symbols_in_block.
9225 * linespec.h (linespec_complete_label): Declare.
9226
c6756f62
PA
92272017-07-17 Pedro Alves <palves@redhat.com>
9228
9229 * ada-lang.c (ada_collect_symbol_completion_matches): Add
9230 complete_symbol_mode parameter.
9231 * cli/cli-cmds.c (complete_command): Get the completion result out
9232 of the handle_brkchars tracker if used a custom word point.
9233 * completer.c: Include "linespec.h".
9234 (enum explicit_location_match_type) <MATCH_LINE>: New enumerator.
9235 (advance_to_expression_complete_word_point): New.
9236 (completion_tracker::completes_to_completion_word): New.
9237 (complete_files_symbols): Pass down
9238 complete_symbol_mode::EXPRESSION.
9239 (explicit_options, probe_options): New.
9240 (collect_explicit_location_matches): Complete on the
9241 explictit_loc->foo instead of word. Use
9242 linespec_complete_function. Handle MATCH_LINE. Handle offering
9243 keyword and options completions.
9244 (backup_text_ptr): Delete.
9245 (skip_keyword): New.
9246 (complete_explicit_location): Remove 'word' parameter. Add
9247 language, quoted_arg_start and quoted_arg_end parameters.
9248 Rewrite, parsing left to right.
9249 (location_completer): Rewrite.
9250 (location_completer_handle_brkchars): New function.
9251 (symbol_completer): Pass down complete_symbol_mode::EXPRESSION.
9252 (enum complete_line_internal_reason): Adjust comments.
9253 (completion_tracker::discard_completions): New.
9254 (completer_handle_brkchars_func_for_completer): Handle
9255 location_completer.
9256 (gdb_custom_word_point_brkchars)
9257 (gdb_org_rl_basic_quote_characters): New.
9258 (gdb_completion_word_break_characters_throw)
9259 (completion_find_completion_word): Handle trackers that use a
9260 custom word point.
9261 (completion_tracker::advance_custom_word_point_by): New.
9262 (completion_tracker::build_completion_result): Don't rely on
9263 readline appending the quote char.
9264 (gdb_rl_attempted_completion_function_throw): Handle trackers that
9265 use a custom word point.
9266 (gdb_rl_attempted_completion_function): Restore
9267 rl_basic_quote_characters.
9268 * completer.h (class completion_tracker): Extend intro comment.
9269 (completion_tracker::set_quote_char)
9270 (completion_tracker::quote_char)
9271 (completion_tracker::set_use_custom_word_point)
9272 (completion_tracker::use_custom_word_point)
9273 (completion_tracker::custom_word_point)
9274 (completion_tracker::set_custom_word_point)
9275 (completion_tracker::advance_custom_word_point_by)
9276 (completion_tracker::completes_to_completion_word)
9277 (completion_tracker::discard_completions): New methods.
9278 (completion_tracker::m_quote_char)
9279 (completion_tracker::m_use_custom_word_point)
9280 (completion_tracker::m_custom_word_point): New fields.
9281 (advance_to_expression_complete_word_point): Declare.
9282 * f-lang.c (f_collect_symbol_completion_matches): Add
9283 complete_symbol_mode parameter.
9284 * language.h (struct language_defn)
9285 <la_collect_symbol_completion_matches>: Add complete_symbol_mode
9286 parameter.
9287 * linespec.c (linespec_keywords): Add NULL terminator. Make extern.
9288 (linespec_complete_function): New function.
9289 (linespec_lexer_lex_keyword): Adjust.
9290 * linespec.h (linespec_keywords, linespec_complete_function): New
9291 declarations.
9292 * location.c (find_end_quote): New function.
9293 (explicit_location_lex_one): Add explicit_completion_info
9294 parameter. Save quoting info. Don't throw if being called for
9295 completion. Don't handle Ada operators here.
9296 (is_cp_operator, skip_op_false_positives, first_of)
9297 (explicit_location_lex_one_function): New function.
9298 (string_to_explicit_location): Replace 'dont_throw' parameter with
9299 an explicit_completion_info pointer parameter. Handle it. Don't
9300 use explicit_location_lex_one to lex function names. Use
9301 explicit_location_lex_one_function instead.
9302 * location.h (struct explicit_completion_info): New.
9303 (string_to_explicit_location): Replace 'dont_throw' parameter with
9304 an explicit_completion_info pointer parameter.
9305 * symtab.c (default_collect_symbol_completion_matches_break_on):
9306 Add complete_symbol_mode parameter. Handle LINESPEC mode.
9307 (default_collect_symbol_completion_matches)
9308 (collect_symbol_completion_matches): Add complete_symbol_mode
9309 parameter.
9310 (collect_symbol_completion_matches_type): Pass down
9311 complete_symbol_mode::EXPRESSION.
9312 (collect_file_symbol_completion_matches): Add complete_symbol_mode
9313 parameter. Handle LINESPEC mode.
9314 * symtab.h (complete_symbol_mode): New.
9315 (default_collect_symbol_completion_matches_break_on)
9316 (default_collect_symbol_completion_matches)
9317 (collect_symbol_completion_matches)
9318 (collect_file_symbol_completion_matches): Add complete_symbol_mode
9319 parameter.
9320
1d550c82
PA
93212017-07-17 Pedro Alves <palves@redhat.com>
9322
9323 * utils.c (enum class strncmp_iw_mode): New.
9324 (strcmp_iw): Rename to ...
9325 (strncmp_iw_with_mode): ... this. Add string2_len and mode
9326 parameters. Handle them.
9327 (strncmp_iw): New.
9328 (strcmp_iw): Reimplement as wrapper around strncmp_iw_with_mode.
9329 * utils.h (strncmp_iw): Declare.
9330 (strcmp_iw): Move describing comments here.
9331
8090b426
PA
93322017-07-17 Pedro Alves <palves@redhat.com>
9333
9334 * c-exp.y (operator_stoken): Use CP_OPERATOR_LEN and
9335 CP_OPERATOR_STR.
9336 * c-typeprint.c (is_type_conversion_operator): Use
9337 CP_OPERATOR_STR.
9338 * cp-support.c (LENGTH_OF_OPERATOR): Delete.
9339 (cp_find_first_component_aux): Use CP_OPERATOR_STR and
9340 CP_OPERATOR_LEN.
9341 * cp-support.h (CP_OPERATOR_STR, CP_OPERATOR_LEN): New.
9342 * gnu-v2-abi.c (gnuv2_is_operator_name): Use CP_OPERATOR_STR.
9343 * gnu-v3-abi.c (gnuv3_is_operator_name): Use CP_OPERATOR_STR.
9344 * linespec.c (linespec_lexer_lex_string): Use CP_OPERATOR_LEN and
9345 CP_OPERATOR_STR.
9346 * location.c: Include "cp-support.h".
9347 (explicit_location_lex_one): Use CP_OPERATOR_LEN and
9348 CP_OPERATOR_STR.
9349 * symtab.c (operator_chars): Use CP_OPERATOR_STR and
9350 CP_OPERATOR_LEN.
9351
6a2c1b87
PA
93522017-07-17 Pedro Alves <palves@redhat.com>
9353
9354 * cli/cli-cmds.c (complete_command): Use a completion tracker
9355 along with completion_find_completion_word for handle_brkchars
9356 phase.
9357 * completer.c (RL_QF_SINGLE_QUOTE, RL_QF_DOUBLE_QUOTE)
9358 (RL_QF_BACKSLASH, RL_QF_OTHER_QUOTE): New.
9359 (struct gdb_rl_completion_word_info): New.
9360 (gdb_rl_find_completion_word): New.
9361 (completion_find_completion_word): New.
9362 * completer.h (completion_find_completion_word): Declare.
9363
eb3ff9a5
PA
93642017-07-17 Pedro Alves <palves@redhat.com>
9365
9366 * ada-lang.c (symbol_completion_match): Adjust comments.
9367 (symbol_completion_add): Replace vector parameter with
9368 completion_tracker parameter. Use it.
9369 (ada_make_symbol_completion_list): Rename to...
9370 (ada_collect_symbol_completion_matches): ... this. Add
9371 completion_tracker parameter and use it.
9372 (ada_language_defn): Adjust.
9373 * break-catch-syscall.c (catch_syscall_completer): Adjust
9374 prototype and work with completion_tracker instead of VEC.
9375 * breakpoint.c (condition_completer): Adjust prototype and work
9376 with completion_tracker instead of VEC.
9377 * c-lang.c (c_language_defn, cplus_language_defn)
9378 (asm_language_defn, minimal_language_defn): Adjust to renames.
9379 * cli/cli-cmds.c (complete_command): Rework using
9380 completion_tracker. Catch exceptions when completing.
9381 * cli/cli-decode.c (integer_unlimited_completer)
9382 (complete_on_cmdlist, complete_on_enum): Adjust prototype and work
9383 with completion_tracker instead of VEC.
9384 * command.h (struct completion_tracker): Forward declare.
9385 (completer_ftype, completer_handle_brkchars_ftype): Change
9386 types.
9387 (complete_on_cmdlist, complete_on_enum): Adjust.
9388 * completer.c: Include <algorithm>.
9389 (struct gdb_completer_state): New.
9390 (current_completion): New global.
9391 (readline_line_completion_function): Delete.
9392 (noop_completer, filename_completer)
9393 (filename_completer_handle_brkchars, complete_files_symbols)
9394 (linespec_location_completer): Adjust to work with a
9395 completion_tracker instead of a VEC.
9396 (string_or_empty): New.
9397 (collect_explicit_location_matches): Adjust to work with a
9398 completion_tracker instead of a VEC.
9399 (explicit_location_completer): Rename to ...
9400 (complete_explicit_location): ... this and adjust to work with a
9401 completion_tracker instead of a VEC.
9402 (location_completer): Adjust to work with a completion_tracker
9403 instead of a VEC.
9404 (add_struct_fields): Adjust to work with a completion_list instead
9405 of VEC.
9406 (expression_completer): Rename to ...
9407 (complete_expression): ... this and adjust to work with a
9408 completion_tracker instead of a VEC. Use complete_files_symbols.
9409 (expression_completer): Reimplement on top of complete_expression.
9410 (symbol_completer): Adjust to work with a completion_tracker
9411 instead of a VEC.
9412 (enum complete_line_internal_reason): Add describing comments.
9413 (complete_line_internal_normal_command): Adjust to work with a
9414 completion_tracker instead of a VEC.
9415 (complete_line_internal): Rename to ...
9416 (complete_line_internal_1): ... this and adjust to work with a
9417 completion_tracker instead of a VEC. Assert TEXT is NULL in the
9418 handle_brkchars phase.
9419 (new_completion_tracker): Delete.
9420 (complete_line_internal): Reimplement as TRY/CATCH wrapper around
9421 complete_line_internal_1.
9422 (free_completion_tracker): Delete.
9423 (INITIAL_COMPLETION_HTAB_SIZE): New.
9424 (completion_tracker::completion_tracker)
9425 (completion_tracker::~completion_tracker): New.
9426 (maybe_add_completion): Delete.
9427 (completion_tracker::maybe_add_completion)
9428 (completion_tracker::add_completion)
9429 (completion_tracker::add_completions): New.
9430 (throw_max_completions_reached_error): Delete.
9431 (complete_line): Adjust to work with a completion_tracker instead
9432 of a VEC. Don't create a completion_tracker_t or check for max
9433 completions here.
9434 (command_completer, command_completer_handle_brkchars)
9435 (signal_completer, reg_or_group_completer_1)
9436 (reg_or_group_completer, default_completer_handle_brkchars):
9437 Adjust to work with a completion_tracker.
9438 (gdb_completion_word_break_characters_throw): New.
9439 (gdb_completion_word_break_characters): Reimplement.
9440 (line_completion_function): Delete.
9441 (completion_tracker::recompute_lowest_common_denominator)
9442 (expand_preserving_ws)
9443 (completion_tracker::build_completion_result)
9444 (completion_result::completion_result)
9445 (completion_result::completion_result)
9446 (completion_result::~completion_result)
9447 (completion_result::completion_result)
9448 (completion_result::release_match_list, compare_cstrings)
9449 (completion_result::sort_match_list)
9450 (completion_result::reset_match_list)
9451 (gdb_rl_attempted_completion_function_throw)
9452 (gdb_rl_attempted_completion_function): New.
9453 * completer.h (completion_list, struct completion_result)
9454 (class completion_tracker): New.
9455 (complete_line): Add completion_tracker parameter.
9456 (readline_line_completion_function): Delete.
9457 (gdb_rl_attempted_completion_function): New.
9458 (noop_completer, filename_completer, expression_completer)
9459 (location_completer, symbol_completer, command_completer)
9460 (signal_completer, reg_or_group_completer): Update prototypes.
9461 (completion_tracker_t, new_completion_tracker)
9462 (make_cleanup_free_completion_tracker): Delete.
9463 (enum maybe_add_completion_enum): Delete.
9464 (maybe_add_completion): Delete.
9465 (throw_max_completions_reached_error): Delete.
9466 * corefile.c (complete_set_gnutarget): Adjust to work with a
9467 completion_tracker instead of a VEC.
9468 * cp-abi.c (cp_abi_completer): Adjust to work with a
9469 completion_tracker instead of a VEC.
9470 * d-lang.c (d_language_defn): Adjust.
9471 * disasm.c (disassembler_options_completer): Adjust to work with a
9472 completion_tracker instead of a VEC.
9473 * f-lang.c (f_make_symbol_completion_list): Rename to ...
9474 (f_collect_symbol_completion_matches): ... this. Adjust to work
9475 with a completion_tracker instead of a VEC.
9476 (f_language_defn): Adjust.
9477 * go-lang.c (go_language_defn): Adjust.
9478 * guile/scm-cmd.c (cmdscm_add_completion, cmdscm_completer):
9479 Adjust to work with a completion_tracker instead of a VEC.
9480 * infrun.c (handle_completer): Likewise.
9481 * interps.c (interpreter_completer): Likewise.
9482 * interps.h (interpreter_completer): Likewise.
9483 * language.c (unknown_language_defn, auto_language_defn)
9484 (local_language_defn): Adjust.
9485 * language.h (language_defn::la_make_symbol_completion_list):
9486 Rename to ...
9487 (language_defn::la_collect_symbol_completion_matches): ... this
9488 and adjust to work with a completion_tracker instead of a VEC.
9489 * m2-lang.c (m2_language_defn): Adjust.
9490 * objc-lang.c (objc_language_defn): Adjust.
9491 * opencl-lang.c (opencl_language_defn): Adjust.
9492 * p-lang.c (pascal_language_defn): Adjust.
9493 * python/py-cmd.c (cmdpy_completer_helper): Handle NULL word.
9494 (cmdpy_completer_handle_brkchars, cmdpy_completer): Adjust to work
9495 with a completion_tracker.
9496 * rust-lang.c (rust_language_defn): Adjust.
9497 * symtab.c (free_completion_list, do_free_completion_list)
9498 (return_val, completion_tracker): Delete.
9499 (completion_list_add_name, completion_list_add_symbol)
9500 (completion_list_add_msymbol, completion_list_objc_symbol)
9501 (completion_list_add_fields, add_symtab_completions): Add
9502 completion_tracker parameter and use it.
9503 (default_make_symbol_completion_list_break_on_1): Rename to...
9504 (default_collect_symbol_completion_matches_break_on): ... this.
9505 Add completion_tracker parameter and use it instead of allocating
9506 a completion tracker here.
9507 (default_make_symbol_completion_list_break_on): Delete old
9508 implementation.
9509 (default_make_symbol_completion_list): Delete.
9510 (default_collect_symbol_completion_matches): New.
9511 (make_symbol_completion_list): Delete.
9512 (collect_symbol_completion_matches): New.
9513 (make_symbol_completion_type): Rename to ...
9514 (collect_symbol_completion_matches_type): ... this. Add
9515 completion_tracker parameter and use it instead of VEC.
9516 (make_file_symbol_completion_list_1): Rename to...
9517 (collect_file_symbol_completion_matches): ... this. Add
9518 completion_tracker parameter and use it instead of VEC.
9519 (make_file_symbol_completion_list): Delete.
9520 (add_filename_to_list): Use completion_list instead of a VEC.
9521 (add_partial_filename_data::list): Now a completion_list.
9522 (make_source_files_completion_list): Work with a completion_list
9523 instead of a VEC.
9524 * symtab.h: Include "completer.h".
9525 (default_make_symbol_completion_list_break_on)
9526 (default_make_symbol_completion_list, make_symbol_completion_list)
9527 (make_symbol_completion_type, make_file_symbol_completion_list)
9528 (make_source_files_completion_list): Delete.
9529 (default_collect_symbol_completion_matches_break_on)
9530 (default_collect_symbol_completion_matches)
9531 (collect_symbol_completion_matches)
9532 (collect_symbol_completion_matches_type)
9533 (collect_file_symbol_completion_matches)
9534 (make_source_files_completion_list): New.
9535 * top.c (init_main): Don't install a rl_completion_entry_function
9536 hook. Install a rl_attempted_completion_function hook instead.
9537 * tui/tui-layout.c (layout_completer): Adjust to work with a
9538 completion_tracker.
9539 * tui/tui-regs.c (tui_reggroup_completer):
9540 * tui/tui-win.c (window_name_completer, focus_completer)
9541 (winheight_completer): Adjust to work with a completion_tracker.
9542 * value.c: Include "completer.h".
9543 (complete_internalvar): Adjust to work with a completion_tracker.
9544 * value.h (complete_internalvar): Likewise.
9545
6e1dbf8c
PA
95462017-07-17 Pedro Alves <palves@redhat.com>
9547
9548 * cli/cli-decode.c (set_cmd_completer_handle_brkchars): Adjust to
9549 renames.
9550 * cli/cli-decode.h (struct cmd_list_element) <completer>: Move
9551 comments to completer_ftype's declaration.
9552 <completer_handle_brkchars>: Change type to
9553 completer_handle_brkchars_ftype.
9554 * command.h (completer_ftype): Add describing comment and give
9555 names to parameters.
9556 (completer_ftype_void): Rename to ...
9557 (completer_handle_brkchars_ftype) ... this. Add describing comment.
9558 (set_cmd_completer_handle_brkchars): Adjust.
9559 * completer.c (filename_completer_handle_brkchars): New function.
9560 (complete_line_internal_normal_command): New function, factored
9561 out from ...
9562 (complete_line_internal): ... here.
9563 (command_completer_handle_brkchars)
9564 (default_completer_handle_brkchars)
9565 (completer_handle_brkchars_func_for_completer): New functions.
9566 * completer.h (set_gdb_completion_word_break_characters): Delete
9567 declaration.
9568 (completer_handle_brkchars_func_for_completer): New declaration.
9569 * python/py-cmd.c (cmdpy_completer_handle_brkchars): Adjust to use
9570 completer_handle_brkchars_func_for_completer.
9571
78b13106
PA
95722017-07-17 Pedro Alves <palves@redhat.com>
9573
9574 * completer.c (symbol_completer): New function, based on
9575 make_symbol_completion_list_fn.
9576 * completer.h (symbol_completer): New declaration.
9577 * guile/scm-cmd.c (cmdscm_completers): Adjust.
9578 * python/py-cmd.c (completers): Adjust.
9579 * symtab.c (make_symbol_completion_list_fn): Delete.
9580 * symtab.h (make_symbol_completion_list_fn): Delete.
9581 * cli/cli-decode.c (add_cmd): Adjust.
9582
bbf2f4df
PA
95832017-07-17 Pedro Alves <palves@redhat.com>
9584
9585 * Makefile.in (COMMON_OBS): Add filename-seen-cache.o.
9586 * dwarf2read.c: Include "filename-seen-cache.h".
9587 * dwarf2read.c (dwarf2_per_objfile) <filenames_cache>: New field.
9588 (dw2_map_symbol_filenames): Build and use a filenames_seen_cache.
9589 * filename-seen-cache.c: New file.
9590 * filename-seen-cache.h: New file.
9591 * symtab.c: Include "filename-seen-cache.h".
9592 (struct filename_seen_cache, INITIAL_FILENAME_SEEN_CACHE_SIZE)
9593 (create_filename_seen_cache, clear_filename_seen_cache)
9594 (delete_filename_seen_cache, filename_seen): Delete, parts moved
9595 to filename-seen-cache.h/filename-seen-cache.c.
9596 (output_source_filename, sources_info)
9597 (maybe_add_partial_symtab_filename)
9598 (make_source_files_completion_list): Adjust to use
9599 filename_seen_cache.
9600
330cdd98
PA
96012017-07-17 Pedro Alves <palves@redhat.com>
9602
9603 * dwarf2read.c (dwarf2_per_objfile): In-class initialize all
9604 fields.
9605 (dwarf2_per_objfile::dwarf2_per_objfile(objfile*, const
9606 dwarf2_debug_sections*)): New.
9607 (dwarf2_per_objfile::dwarf2_per_objfile(const
9608 dwarf2_per_objfile&)): Declare as deleted.
9609 (dwarf2_per_objfile::operator=): Declare as deleted.
9610 (dwarf2_per_objfile::dwarf2_per_objfile)
9611 (dwarf2_per_objfile::~dwarf2_per_objfile)
9612 (dwarf2_per_objfile::free_cached_comp_units): New.
9613 (dwarf2_has_info): dwarf2_per_objfile initialization code moved to
9614 ctor. Call dwarf2_per_objfile's ctor manually.
9615 (dwarf2_locate_sections): Deleted/refactored as ...
9616 (dwarf2_per_objfile::locate_sections): ... this new method.
9617 (free_cached_comp_units): Defer to
9618 dwarf2_per_objfile::free_cached_comp_units.
9619 (dwarf2_free_objfile): Call dwarf2_per_objfile's dtor manually.
9620
8880f2a9
TT
96212017-07-14 Tom Tromey <tom@tromey.com>
9622
9623 PR rust/21764:
9624 * rust-exp.y (convert_ast_to_expression): Add "want_type"
9625 parameter.
9626 <UNOP_SIZEOF>: Split into separate case.
9627 <UNOP_VAR_VALUE>: Handle want_type. Add error case.
9628
65547233
TT
96292017-07-14 Tom Tromey <tom@tromey.com>
9630
9631 PR rust/21763:
9632 * symtab.c (symbol_matches_domain): Add language_rust to special
9633 case.
9634 * rust-exp.y (convert_ast_to_expression) <OP_VAR_VALUE>: Don't
9635 treat LOC_TYPEDEF symbols as variables.
9636
8f14146e
PA
96372017-07-14 Pedro Alves <palves@redhat.com>
9638
9639 * symtab.c (make_file_symbol_completion_list_1): Iterate over
9640 symtabs matching all symtabs with SRCFILE as file name instead of
9641 only considering the first hit, with lookup_symtab.
9642
2347965c
SM
96432017-07-14 Simon Marchi <simon.marchi@ericsson.com>
9644
9645 * ax-gdb.c (gen_aggregate_elt_ref): Remove operand_name and
9646 operator_name parameters.
9647 (gen_expr): Update function call.
9648
40f4af28
SM
96492017-07-14 Simon Marchi <simon.marchi@ericsson.com>
9650
9651 * dwarf2loc.h (dwarf2_compile_expr_to_ax): Remove gdbarch
9652 parameter.
9653 * symtab.h (struct symbol_computed_ops::tracepoint_var_ref):
9654 Likewise.
9655 * dwarf2loc.c (dwarf2_compile_expr_to_ax): Remove gdbarch
9656 parameter, use agent_expr::gdbarch instead, update function
9657 calls.
9658 (locexpr_tracepoint_var_ref): Likewise.
9659 (loclist_tracepoint_var_ref): Likewise.
9660 * ax-gdb.c (gen_trace_static_fields): Likewise.
9661 (gen_traced_pop): Likewise.
9662 (gen_frame_args_address): Likewise.
9663 (gen_frame_locals_address): Likewise.
9664 (gen_var_ref): Likewise.
9665 (gen_struct_ref_recursive): Likewise.
9666 (gen_static_field): Likewise.
9667 (gen_maybe_namespace_elt): Likewise.
9668 (gen_expr): Likewise.
9669 (gen_trace_for_var): Likewise.
9670 (gen_trace_for_expr): Likewise.
9671 (gen_trace_for_return_address): Likewise.
9672
053f8057
SM
96732017-07-14 Simon Marchi <simon.marchi@ericsson.com>
9674
9675 * ax-gdb.c (gen_deref, gen_address_of): Remove unused ax
9676 parameter.
9677 (gen_struct_ref, gen_expr, gen_expr_binop_rest): Update call.
9678
6661ad48
SM
96792017-07-14 Simon Marchi <simon.marchi@ericsson.com>
9680
9681 * ax-gdb.c (gen_usual_unary): Remove exp parameter, get gdbarch
9682 from ax, update calls.
9683 (gen_usual_arithmetic): Likewise.
9684 (gen_integral_promotions): Likewise.
9685 (gen_bitfield_ref): Likewise.
9686 (gen_primitive_field): Likewise.
9687 (gen_struct_ref_recursive): Likewise.
9688 (gen_struct_ref): Likewise.
9689 (gen_maybe_namespace_elt): Likewise.
9690 (gen_struct_elt_for_reference): Likewise.
9691 (gen_namespace_elt): Likewise.
9692 (gen_aggregate_elt_ref): Likewise.
9693 (gen_expr): Get gdbarch from ax, update calls.
9694 (gen_expr_binop_rest): Likewise.
9695
c55a47e7
PA
96962017-07-13 Pedro Alves <palves@redhat.com>
9697
9698 * amd64-darwin-tdep.c (x86_darwin_init_abi_64): Pass tdesc_amd64
9699 as default tdesc.
9700 * amd64-dicos-tdep.c (amd64_dicos_init_abi):
9701 * amd64-fbsd-tdep.c (amd64fbsd_init_abi):
9702 * amd64-linux-tdep.c (amd64_linux_init_abi): Pass
9703 tdesc_amd64_linux as default tdesc. Get final tdesc from the
9704 tdep.
9705 (amd64_x32_linux_init_abi): Pass tdesc_x32_linux as default tdesc.
9706 Get final tdesc from the tdep.
9707 * amd64-nbsd-tdep.c (amd64nbsd_init_abi): Pass tdesc_amd64 as
9708 default tdesc.
9709 * amd64-obsd-tdep.c (amd64obsd_init_abi): Likewise.
9710 * amd64-sol2-tdep.c (amd64_sol2_init_abi): Likewise.
9711 * amd64-tdep.c (amd64_init_abi): Add 'default_tdesc' parameter.
9712 Use it as default tdesc.
9713 (amd64_x32_init_abi): Add 'default_tdesc' parameter, and pass it
9714 down to amd_init_abi. No longer handle fallback tdesc here.
9715 * amd64-tdep.h (tdesc_x32): Declare.
9716 (amd64_init_abi, amd64_x32_init_abi): Add 'default_tdesc'
9717 parameter.
9718 * amd64-windows-tdep.c (amd64_windows_init_abi): Pass tdesc_amd64
9719 as default tdesc.
9720
55efceab
AA
97212017-07-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
9722
9723 * s390-linux-tdep.c (s390_process_record): Add support for
9724 instructions new in arch12.
9725
0aa37b65
JB
97262017-07-11 John Baldwin <jhb@FreeBSD.org>
9727
9728 * amd64-bsd-nat.c (amd64bsd_fetch_inferior_registers): Use
9729 PT_GETFSBASE and PT_GETGSBASE.
9730 (amd64bsd_store_inferior_registers): Use PT_SETFSBASE and
9731 PT_SETGSBASE.
9732
48aeef91
JB
97332017-07-11 John Baldwin <jhb@FreeBSD.org>
9734
9735 * features/Makefile (amd64.dat, amd64-avx.dat, amd64-mpx.dat)
9736 (amd64-avx-mpx.dat, amd64-avx-avx512.dat)
9737 (amd64-avx-mpx-avx512-pku.dat): Add i386/64bit-segments.xml in
9738 those rules.
9739 * features/i386/amd64-avx-avx512.xml: Add 64bit-segments.xml.
9740 * features/i386/amd64-avx-mpx-avx512-pku.xml: Add 64bit-segments.xml.
9741 * features/i386/amd64-avx-mpx.xml: Add 64bit-segments.xml.
9742 * features/i386/amd64-avx.xml: Add 64bit-segments.xml.
9743 * features/i386/amd64-mpx.xml: Add 64bit-segments.xml.
9744 * features/i386/amd64.xml: Add 64bit-segments.xml.
9745 * features/i386/amd64-avx-avx512.c: Regenerated.
9746 * features/i386/amd64-avx-mpx-avx512-pku.c: Regenerated.
9747 * features/i386/amd64-avx-mpx.c: Regenerated.
9748 * features/i386/amd64-avx.c: Regenerated.
9749 * features/i386/amd64-mpx.c: Regenerated.
9750 * features/i386/amd64.c: Regenerated.
9751 * regformats/i386/amd64-avx-avx512.dat: Regenerated.
9752 * regformats/i386/amd64-avx-mpx-avx512-pku.dat: Regenerated.
9753 * regformats/i386/amd64-avx-mpx.dat: Regenerated.
9754 * regformats/i386/amd64-avx.dat: Regenerated.
9755 * regformats/i386/amd64-mpx.dat: Regenerated.
9756 * regformats/i386/amd64.dat: Regenerated.
9757
77c501bc
YQ
97582017-07-10 Yao Qi <yao.qi@linaro.org>
9759
9760 * features/i386/amd64-avx-avx512-linux.c: Re-generated.
9761 * features/i386/amd64-avx-mpx-avx512-pku-linux.c: Re-generated.
9762
6dc8d757
AK
97632017-07-10 Anton Kolesov <Anton.Kolesov@synopsys.com>
9764
9765 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add setenv and
9766 unsetenv.
9767 * gnulib/aclocal.m4: Regenerate.
9768 * gnulib/config.in: Regenerate.
9769 * gnulib/configure: Regenerate.
9770 * gnulib/import/Makefile.am: Regenerate.
9771 * gnulib/import/Makefile.in: Regenerate.
9772 * gnulib/import/m4/gnulib-cache.m4: Regenerate.
9773 * gnulib/import/m4/gnulib-comp.m4: Regenerate.
9774 * gnulib/import/m4/environ.m4: New file.
9775 * gnulib/import/m4/setenv.m4: New file.
9776 * gnulib/import/setenv.c: New file.
9777 * gnulib/import/unsetenv.c: New file.
9778
266934d1
SM
97792017-07-09 Simon Marchi <simon.marchi@ericsson.com>
9780
9781 * compile/compile-loc2c.c (do_compile_dwarf_expr_to_c): Read
9782 address when op is DW_OP_addr.
9783
03278692
TT
97842017-07-09 Tom Tromey <tom@tromey.com>
9785
9786 * dwarf2loc.c (dwarf2_evaluate_loc_desc_full): Reverse size
9787 check and apply to outer type.
9788
4b654465
JB
97892017-07-07 John Baldwin <jhb@FreeBSD.org>
9790
9791 * fbsd-tdep.c (LWPINFO_OFFSET, LWPINFO_PL_FLAGS)
9792 (LWPINFO64_PL_SIGINFO, LWPINFO32_PL_SIGINFO, PL_FLAG_SI)
9793 (SIZE64_SIGINFO_T, SIZE32_SIGINFO_T, fbsd_core_xfer_siginfo): New.
9794 (fbsd_init_abi): Install gdbarch "core_xfer_siginfo" method.
9795
2af9fc44
JB
97962017-07-07 John Baldwin <jhb@FreeBSD.org>
9797
9798 * fbsd-tdep.c (fbsd_core_thread_name): Use thread_section_name.
9799
382b69bb
JB
98002017-07-07 John Baldwin <jhb@FreeBSD.org>
9801
9802 * corelow.c (get_core_siginfo): Remove.
9803 (core_xfer_partial): Use the gdbarch "core_xfer_siginfo" method
9804 instead of get_core_siginfo.
9805 * gdbarch.sh (core_xfer_siginfo): New gdbarch callback.
9806 * gdbarch.h: Re-generate.
9807 * gdbarch.c: Re-generate.
9808 * linux-tdep.c (linux_core_xfer_siginfo): New.
9809 (linux_init_abi): Install gdbarch "core_xfer_siginfo" method.
9810
6e5eab33
JB
98112017-07-07 John Baldwin <jhb@FreeBSD.org>
9812
9813 * corelow.c (thread_section_name): Move to ...
9814 * gdbcore.h (thread_section_name): ... here.
9815
929edea9
JB
98162017-07-07 John Baldwin <jhb@FreeBSD.org>
9817
9818 * fbsd-nat.c [PT_LWPINFO && __LP64__] (union sigval32)
9819 (struct siginfo32): New.
9820 [PT_LWPINFO] (fbsd_siginfo_size, fbsd_convert_siginfo): New.
9821 (fbsd_xfer_partial) [PT_LWPINFO]: Handle TARGET_OBJECT_SIGNAL_INFO
9822 via ptrace(PT_LWPINFO).
9823
762c974a
JB
98242017-07-07 John Baldwin <jhb@FreeBSD.org>
9825
9826 * fbsd-tdep.c (fbsd_gdbarch_data_handle, struct fbsd_gdbarch_data)
9827 (init_fbsd_gdbarch_data, get_fbsd_gdbarch_data)
9828 (fbsd_get_siginfo_type): New.
9829 (fbsd_init_abi): Install gdbarch "get_siginfo_type" method.
9830 (_initialize_fbsd_tdep): New.
9831
33c5cd75
DB
98322017-07-06 David Blaikie <dblaikie@gmail.com>
9833
9834 * dwarf2read.c (struct dwo_file): Use a htab of dwo_unit* (rather than
9835 a singular dwo_unit*) to support multiple CUs in the same way that
9836 multiple TUs are supported.
9837 (create_cus_hash_table): Replace create_dwo_cu with a function for
9838 parsing multiple CUs from a DWO file.
9839 (open_and_init_dwo_file): Use create_cus_hash_table rather than
9840 create_dwo_cu.
9841 (lookup_dwo_cutu): Lookup CU in the hash table in the dwo_file with
9842 htab_find, rather than comparing the signature to a singleton CU in
9843 the dwo_file.
9844
8455d262
PA
98452017-07-06 Pedro Alves <palves@redhat.com>
9846
9847 * python/py-unwind.c (pyuw_dealloc_cache): Fix for loop condition.
9848
4da3eb35
PA
98492017-07-04 Pedro Alves <palves@redhat.com>
9850
9851 * gdbtypes.c (recursive_dump_type): Don't reference TYPE_STATIC.
9852 * gdbtypes.h (TYPE_STATIC): Delete.
9853 (struct fn_field) <is_public, is_abstract, is_static, is_final,
9854 is_synchronized, is_native>: Delete.
9855 <dummy>: Bump.
9856 (TYPE_FN_FIELD_PUBLIC, TYPE_FN_FIELD_STATIC, TYPE_FN_FIELD_FINAL)
9857 (TYPE_FN_FIELD_SYNCHRONIZED, TYPE_FN_FIELD_NATIVE)
9858 (TYPE_FN_FIELD_ABSTRACT): Delete.
9859
5bfd255c
SM
98602017-07-03 Simon Marchi <simon.marchi@ericsson.com>
9861
9862 * buffer.h (buffer_finish): Fix spelling mistakes.
9863
25c54127
EZ
98642017-07-01 Eli Zaretskii <eliz@gnu.org>
9865
9866 * .dir-locals.el: Automatically switch to C-style comments in
9867 versions of Emacs that support the feature.
9868
dc4bde35
SDJ
98692017-06-30 Sergio Durigan Junior <sergiodj@redhat.com>
9870 Pedro Alves <palves@redhat.com>
9871
9872 PR cli/21688
9873 * cli/cli-script.c (command_name_equals_not_inline): Remove function.
9874 (process_next_line): New variable 'inline_cmd'.
9875 Adjust 'if' clauses for "python", "compile" and "guile" to use
9876 'command_name_equals' and check for '!inline_cmd'.
9877
51ed89aa
SDJ
98782017-06-30 Sergio Durigan Junior <sergiodj@redhat.com>
9879
9880 PR cli/21688
9881 * cli/cli-script.c (command_name_equals_not_inline): New function.
9882 (process_next_line): Adjust 'if' clauses for "python", "compile"
9883 and "guile" to use command_name_equals_not_inline.
9884
eb17d413
PA
98852017-06-29 Pedro Alves <palves@redhat.com>
9886
9887 * completer.c (expression_completer): Call
9888 linespec_location_completer instead of location_completer.
9889
195bcdd5
PA
98902017-06-29 Pedro Alves <palves@redhat.com>
9891
9892 * completer.c (expression_completer): Remove code that recomputes
9893 'text' from 'word'.
9894
adc764e7
YQ
98952017-06-29 Yao Qi <yao.qi@linaro.org>
9896
9897 * regformats/regdat.sh: Generate code with
9898 "ifndef IN_PROCESS_AGENT".
9899
6e75794e
PA
99002017-06-28 Pedro Alves <palves@redhat.com>
9901
9902 * command.h: Include "common/scoped_restore.h".
9903
bc491f2e
YQ
99042017-06-28 Yao Qi <yao.qi@linaro.org>
9905
9906 * mi/mi-cmd-break.c (mi_argv_to_format): Use obstack_grow_str
9907 instead of obstack_grow.
9908
41664b45
DG
99092017-06-28 Doug Gilmore <Doug.Gilmore@imgtec.com>
9910
9911 PR gdb/21337
9912 * symfile.c (reread_symbols): Call objfiles_changed just before
9913 read_symbols.
9914
6da67eb1
PA
99152017-06-27 Pedro Alves <palves@redhat.com>
9916
9917 * symtab.c (COMPLETION_LIST_ADD_SYMBOL)
9918 (MCOMPLETION_LIST_ADD_SYMBOL): Delete macros, replace with ...
9919 (completion_list_add_symbol, completion_list_add_msymbol):
9920 ... these new functions.
9921 (add_symtab_completions)
9922 (default_make_symbol_completion_list_break_on_1): Adjust.
9923
23732b1e
PA
99242017-06-27 Pedro Alves <palves@redhat.com>
9925
9926 * objfiles.c (get_objfile_bfd_data): Call bfd_alloc instead of
9927 bfd_zalloc. Call objfile_per_bfd_storage's ctor.
9928 (free_objfile_per_bfd_storage): Call objfile_per_bfd_storage's
9929 dtor.
9930 * objfiles.h (objfile_per_bfd_storage): Add ctor. Make
9931 'storage_obstack' field an auto_obstack. In-class initialize all
9932 non-bitfield fields. Make minsyms_read bool.
9933 * symfile.c (read_symbols): Adjust.
9934
a4d1e79a
AH
99352017-06-27 Alan Hayward <alan.hayward@arm.com>
9936
9937 * remote-sim.c (gdbsim_fetch_register): Use byte_vector.
9938 (gdbsim_store_register): Likewise.
9939
8268c778
PA
99402017-06-27 Pedro Alves <palves@redhat.com>
9941
9942 * c-exp.y (name_obstack): Now an auto_obstack.
9943 (yylex): Use auto_obstack::clear.
9944 (c_parse): Use auto_obstack::clear instead of reinitializing and
9945 freeing the obstack.
9946 * c-lang.c (evaluate_subexp_c): Use auto_obstack.
9947 * d-exp.y (name_obstack): Now an auto_obstack.
9948 (yylex): Use auto_obstack::clear.
9949 (d_parse): Use auto_obstack::clear instead of reinitializing and
9950 freeing the obstack.
9951 * dwarf2loc.c (fetch_const_value_from_synthetic_pointer): Use
9952 auto_obstack.
9953 * dwarf2read.c (create_addrmap_from_index)
9954 (dwarf2_build_psymtabs_hard)
9955 (update_enumeration_type_from_children): Likewise.
9956 * gdb_obstack.h (auto_obstack): New type.
9957 * go-exp.y (name_obstack): Now an auto_obstack.
9958 (build_packaged_name): Use auto_obstack::clear.
9959 (go_parse): Use auto_obstack::clear instead of reinitializing and
9960 freeing the obstack.
9961 * linux-tdep.c (linux_make_mappings_corefile_notes): Use
9962 auto_obstack.
9963 * printcmd.c (printf_wide_c_string, ui_printf): Use auto_obstack.
9964 * rust-exp.y (work_obstack): Now an auto_obstack.
9965 (rust_parse, rust_lex_tests): Use auto_obstack::clear instead of
9966 reinitializing and freeing the obstack.
9967 * utils.c (do_obstack_free, make_cleanup_obstack_free): Delete.
9968 (host_char_to_target): Use auto_obstack.
9969 * utils.h (make_cleanup_obstack_free): Delete declaration.
9970 * valprint.c (generic_emit_char, generic_printstr): Use
9971 auto_obstack.
9972
db665f42
SM
99732017-06-27 Simon Marchi <simon.marchi@ericsson.com>
9974
9975 * darwin-nat.c (darwin_check_new_threads): Don't handle dummy
9976 thread.
9977 (darwin_init_thread_list): Don't update dummy thread.
9978 (darwin_create_inferior, darwin_attach): Don't add a dummy thread.
9979
873c0814
SM
99802017-06-26 Simon Marchi <simon.marchi@ericsson.com>
9981
9982 * record-full.c (netorder16): Remove.
9983
8b5a7a6e
SM
99842017-06-26 Simon Marchi <simon.marchi@ericsson.com>
9985
9986 * common/diagnostics.h: Define macros for GCC.
9987 (DIAGNOSTIC_IGNORE_UNUSED_FUNCTION): New macro.
9988 * common/vec.h: Include diagnostics.h.
9989 (DIAGNOSTIC_IGNORE_UNUSED_VEC_FUNCTION): New macro.
9990 (DEF_VEC_I, DEF_VEC_P, DEF_VEC_O): Ignore -Wunused-function
9991 warning.
9992
d1435379
SM
99932017-06-26 Simon Marchi <simon.marchi@ericsson.com>
9994
9995 * common/diagnostics.h (DIAGNOSTIC_IGNORE_DEPRECATED_REGISTER):
9996 New macro.
9997 * ada-lex.l: Ignore deprecated register warnings.
9998
cc75e0fd
SM
99992017-06-25 Simon Marchi <simon.marchi@ericsson.com>
10000
10001 * main.c (get_init_files): Replace "SYSTEM_GDBINIT +
10002 datadir_len" with "&SYSTEM_GDBINIT[datadir_len]".
10003
07809eaf
SM
100042017-06-25 Simon Marchi <simon.marchi@ericsson.com>
10005
10006 * dtrace-probe.c (dtrace_process_dof_probe): Put semi-colon on
10007 its own line.
10008
f076f034
SM
100092017-06-25 Simon Marchi <simon.marchi@ericsson.com>
10010
10011 * nat/x86-dregs.c (x86_show_dr): Print registers one per line.
10012
0dd5cbc5
AH
100132017-06-23 Alan Hayward <alan.hayward@arm.com>
10014
10015 * xtensa-tdep.c (XTENSA_MAX_REGISTER_SIZE): Add.
10016 (xtensa_register_write_masked): Use XTENSA_MAX_REGISTER_SIZE.
10017 (xtensa_register_read_masked): Likewise.
10018
d4c6ce5b
SDJ
100192017-06-22 Sergio Durigan Junior <sergiodj@redhat.com>
10020
10021 * common/environ.c (gdb_environ::unset): Update comment.
10022
16892a03
AH
100232017-06-22 Alan Hayward <alan.hayward@arm.com>
10024
10025 * python/py-unwind.c (pyuw_sniffer): Allocate space for
10026 registers.
10027
d7dcbefc
AH
100282017-06-22 Alan Hayward <alan.hayward@arm.com>
10029
10030 * record-full.c (record_full_exec_insn): Use byte_vector.
10031
b30ff123
YQ
100322017-06-22 Yao Qi <yao.qi@linaro.org>
10033
10034 * regformats/i386/amd64-avx-mpx-avx512-pku-linux.dat: Regenerated.
10035 * regformats/i386/amd64-avx-mpx-avx512-pku.dat: Regenerated.
10036
4fa847d7
AH
100372017-06-22 Alan Hayward <alan.hayward@arm.com>
10038
10039 * remote.c (cached_reg): Move from here...
10040 * regcache.h (cached_reg): ...to here.
10041 * python/py-unwind.c (struct reg_info): Remove.
10042 (cached_frame_info): Use cached_reg_t.
10043 (pyuw_prev_register): Likewise.
10044 (pyuw_sniffer): Use cached_reg_t and allocate registers.
10045 (pyuw_dealloc_cache): Free all registers.
10046
f4906a9a
PA
100472017-06-22 Pedro Alves <palves@redhat.com>
10048 Simon Marchi <simon.marchi@ericsson.com>
10049
10050 * unittests/environ-selftests.c (run_tests): Ignore -Wself-move
10051 warning.
10052 * common/diagnostics.h: New file.
10053
b45a1208
PA
100542017-06-22 Pedro Alves <palves@redhat.com>
10055
10056 * common/agent.h: Add include guards.
10057
e4da2c61
SM
100582017-06-21 Simon Marchi <simon.marchi@ericsson.com>
10059
10060 * target.h (struct target_ops) <to_xfer_partial>: Update doc to
10061 talk about addressable units instead of bytes.
10062
96160d60
SDJ
100632017-06-20 Sergio Durigan Junior <sergiodj@redhat.com>
10064
10065 * common/environ.c (gdb_environ::unset): Use '::iterator' instead
10066 of '::const_iterator'.
10067
9a6c7d9c
SDJ
100682017-06-20 Sergio Durigan Junior <sergiodj@redhat.com>
10069
10070 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
10071 'unittests/environ-selftests.c'.
10072 (SUBDIR_UNITTESTS_OBS): Add 'environ-selftests.o'.
10073 * charset.c (find_charset_names): Declare object 'iconv_env'.
10074 Update code to use 'iconv_env' object. Remove call to
10075 'free_environ'.
10076 * common/environ.c: Include <utility>.
10077 (make_environ): Delete function.
10078 (free_environ): Delete function.
10079 (gdb_environ::clear): New function.
10080 (gdb_environ::operator=): New function.
10081 (gdb_environ::get): Likewise.
10082 (environ_vector): Delete function.
10083 (set_in_environ): Delete function.
10084 (gdb_environ::set): New function.
10085 (unset_in_environ): Delete function.
10086 (gdb_environ::unset): New function.
10087 (gdb_environ::envp): Likewise.
10088 * common/environ.h: Include <vector>.
10089 (struct gdb_environ): Delete; transform into...
10090 (class gdb_environ): ... this class.
10091 (free_environ): Delete prototype.
10092 (init_environ, get_in_environ, set_in_environ, unset_in_environ,
10093 environ_vector): Likewise.
10094 * infcmd.c (run_command_1): Update code to call
10095 'envp' from 'gdb_environ' class.
10096 (environment_info): Update code to call methods from 'gdb_environ'
10097 class.
10098 (unset_environment_command): Likewise.
10099 (path_info): Likewise.
10100 (path_command): Likewise.
10101 * inferior.c (inferior::~inferior): Delete call to 'free_environ'.
10102 (inferior::inferior): Initialize 'environment' using the host's
10103 information.
10104 * inferior.h: Remove forward declaration of 'struct gdb_environ'.
10105 Include "environ.h".
10106 (class inferior) <environment>: Change type from 'struct
10107 gdb_environ' to 'gdb_environ'.
10108 * mi/mi-cmd-env.c (mi_cmd_env_path): Update code to call
10109 methods from 'gdb_environ' class.
10110 * solib.c (solib_find_1): Likewise
10111 * unittests/environ-selftests.c: New file.
10112
75c554cf
YQ
101132017-06-20 Yao Qi <yao.qi@linaro.org>
10114
10115 * features/i386/i386-linux.xml: Exchange the order of including
10116 32bit-linux.xml and 32bit-sse.xml.
10117 * features/i386/i386-linux.c: Regenerated.
10118
72ddacb7
YQ
101192017-06-20 Yao Qi <yao.qi@linaro.org>
10120
10121 * target-descriptions.c (tdesc_reg): Add ctor, dtor.
10122 Delete copy ctor and assignment operator.
10123 (tdesc_type): Likewise.
10124 (tdesc_feature): Likewise.
10125 (tdesc_free_reg): Remove.
10126 (tdesc_create_reg): Use new.
10127 (tdesc_free_type): Remove.
10128 (tdesc_create_vector): Use new.
10129 (tdesc_create_union): Likewise.
10130 (tdesc_create_flags): Likewise.
10131 (tdesc_create_enum): Likewise.
10132 (tdesc_free_feature): Delete.
10133 (free_target_description): Use delete.
10134
325c9fd4
JB
101352017-06-19 John Baldwin <jhb@FreeBSD.org>
10136
10137 * mips-tdep.c (print_gp_register_row): Don't error for unavailable
10138 registers.
10139
16b7a719
PA
101402017-06-19 Pedro Alves <palves@redhat.com>
10141
10142 * dwarf2read.c (write_psymtabs_to_index): Construct file_closer
10143 after gdb::unlinker.
10144
1c8e01c9
SDJ
101452017-06-19 Sergio Durigan Junior <sergiodj@redhat.com>
10146
10147 * mi/mi-cm-env.c (_initialize_mi_cmd_env): Use getenv instead of
10148 gdb_environ to access an environment variable.
10149
ffce45d2
TP
101502017-06-18 Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
10151
10152 * nat/linux-ptrace.c (linux_fork_to_function): Add cast to
10153 gdb_byte*.
10154
1d4fbac9
SM
101552017-06-17 Simon Marchi <simon.marchi@ericsson.com>
10156
10157 * nat/fork-inferior.h (trace_start_error): Add ATTRIBUTE_PRINTF.
10158
8465943a
SM
101592017-06-17 Simon Marchi <simon.marchi@ericsson.com>
10160
10161 * configure: Re-generate.
10162 * warning.m4 (build_warnings): Add -Wno-mismatched-tags.
10163
3e019bdc
SM
101642017-06-17 Simon Marchi <simon.marchi@ericsson.com>
10165
10166 * configure: Re-generate.
10167 * warning.m4: Pass -Werror to compiler when checking for
10168 supported warning flags.
10169
cf0dd6f0
SM
101702017-06-17 Simon Marchi <simon.marchi@ericsson.com>
10171
10172 * Makefile.in (COMPILE.pre): Add "-x c++".
10173
6f98355c
YQ
101742017-06-16 Alan Hayward <alan.hayward@arm.com>
10175 Pedro Alves <palves@redhat.com>
10176 Yao Qi <yao.qi@linaro.org>
10177
10178 * defs.h (RequireLongest): New.
10179 (extract_integer): Declare function template.
10180 (extract_signed_integer): Remove the declaration, but define it
10181 static inline.
10182 (extract_unsigned_integer): Likewise.
10183 (store_integer): Declare function template.
10184 (store_signed_integer): Remove the declaration, but define it
10185 static inline.
10186 (store_unsigned_integer): Likewise.
10187 * findvar.c (extract_integer): New function template.
10188 (extract_signed_integer): Remove.
10189 (extract_unsigned_integer): Remove.
10190 (extract_integer<LONGEST>, extract_integer<ULONGEST>): Explicit
10191 instantiations.
10192 (store_integer): New function template.
10193 (store_signed_integer): Remove.
10194 (store_unsigned_integer): Remove.
10195 (store_integer): Explicit instantiations.
10196 * regcache.c (regcache_raw_read_signed): Update.
10197 (regcache::raw_read): New function.
10198 (regcache::raw_read_signed): Remove.
10199 (regcache::raw_read_unsigned): Remove.
10200 (regcache_raw_read_unsigned): Update.
10201 (regcache_raw_write_unsigned): Update.
10202 (regcache::raw_write_signed): Remove.
10203 (regcache::raw_write): New function.
10204 (regcache_cooked_read_signed): Update.
10205 (regcache::raw_write_unsigned): Remove.
10206 (regcache::cooked_read_signed): Remove.
10207 (regcache_cooked_read_unsigned): Update.
10208 (regcache::cooked_read_unsigned): Remove.
10209 (regcache_cooked_write_signed): Update.
10210 (regcache_cooked_write_unsigned): Update.
10211 * regcache.h (regcache) <raw_read_signed>: Remove.
10212 <raw_write_signed, raw_read_unsigned, raw_write_unsigned>: Remove.
10213 <raw_read, raw_write>: New.
10214 <cooked_read_signed, cooked_write_signed>: Remove.
10215 <cooked_write_unsigned, cooked_read_unsigned>: Remove.
10216 <cooked_read, cooked_write>: New.
10217 * sh64-tdep.c (sh64_pseudo_register_read): Update.
10218 (sh64_pseudo_register_write): Update.
10219
a87dc45a
AK
102202017-06-16 Anton Kolesov <anton.kolesov@synopsys.com>
10221
10222 * arc-tdep.c (arc_disassembler_options): New variable.
10223 (arc_gdbarch_init): Set and use it. Use arc_delayed_print_insn instead
10224 of default_print_insn.
10225 (arc_delayed_print_insn): Set info->section when needed,
10226 use default_print_insn to retrieve a disassembler.
10227
45159d6a
SDJ
102282017-06-14 Sergio Durigan Junior <sergiodj@redhat.com>
10229
10230 PR gdb/21574
10231 * infcmd.c (_initialize_infcmd): Expand "help run" documentation
10232 to mention $SHELL and startup-with-shell.
10233
b46c4cf0
MF
102342017-06-14 Max Filippov <jcmvbkbc@gmail.com>
10235
10236 * MAINTAINERS: Move Maxim Grigoriev to the Past Maintainers.
10237
6394c606
YQ
102382017-06-14 Yao Qi <yao.qi@linaro.org>
10239
10240 * aarch64-tdep.c (aarch64_gdb_print_insn): Call
10241 default_print_insn instead of print_insn_aarch64.
10242 * arm-tdep.c (gdb_print_insn_arm): Call
10243 default_print_insn instead of print_insn_big_arm
10244 and print_insn_little_arm.
10245 * i386-tdep.c (i386_print_insn): Call default_print_insn
10246 instead of print_insn_i386.
10247 * ia64-tdep.c (ia64_print_insn): Call
10248 default_print_insn instead of print_insn_ia64.
10249 * mips-tdep.c (gdb_print_insn_mips): Call
10250 default_print_insn instead of print_insn_big_mips
10251 and print_insn_little_mips.
10252 * spu-tdep.c (gdb_print_insn_spu): Call default_print_insn
10253 instead of print_insn_spu.
10254
d5722aa2
PA
102552017-06-14 Pedro Alves <palves@redhat.com>
10256
10257 * ada-lang.c: Include "common/byte-vector.h".
10258 (ada_value_primitive_packed_val): Use gdb::byte_vector.
10259 * charset.c (wchar_iterator::iterate): Resize the vector instead
10260 of reserving it.
10261 * common/byte-vector.h: Include "common/def-vector.h".
10262 (wchar_iterator::m_out): Now a gdb::def_vector<gdb_wchar_t>.
10263 * cli/cli-dump.c: Include "common/byte-vector.h".
10264 (dump_memory_to_file, restore_binary_file): Use gdb::byte_vector.
10265 * common/byte-vector.h: New file.
10266 * common/def-vector.h: New file.
10267 * common/default-init-alloc.h: New file.
10268 * dwarf2loc.c: Include "common/byte-vector.h".
10269 (rw_pieced_value): Use gdb::byte_vector, and resize the vector
10270 instead of reserving it.
10271 * dwarf2read.c: Include "common/byte-vector.h".
10272 (data_buf::m_vec): Now a gdb::byte_vector.
10273 * gdb_regex.c: Include "common/def-vector.h".
10274 (compiled_regex::compiled_regex): Use gdb::def_vector<char>.
10275 * mi/mi-main.c: Include "common/byte-vector.h".
10276 (mi_cmd_data_read_memory): Use gdb::byte_vector.
10277 * printcmd.c: Include "common/byte-vector.h".
10278 (print_scalar_formatted): Use gdb::byte_vector.
10279 * valprint.c: Include "common/byte-vector.h".
10280 (maybe_negate_by_bytes, print_decimal_chars): Use
10281 gdb::byte_vector.
10282
01ec7a27
SM
102832017-06-13 Simon Marchi <simon.marchi@ericsson.com>
10284
10285 * darwin-nat.c: Include "nat/fork-inferior.h".
10286
848d9074
SM
102872017-06-13 Simon Marchi <simon.marchi@ericsson.com>
10288
10289 * configure.nat: Factor out Darwin bits that are not
10290 architecture-specific. Add fork-inferior.o.
10291
3b912944
SM
102922017-06-13 Simon Marchi <simon.marchi@ericsson.com>
10293
10294 * configure.nat: Factor out AIX bits that are not
10295 architecture-specific. Add fork-inferior.o.
10296
55acdf22
AA
102972017-06-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
10298
10299 * dwarf2loc.c (rw_pieced_value): New. Merge logic from...
10300 (read_pieced_value, write_pieced_value): ...here. Reduce to
10301 wrappers that just call rw_pieced_value.
10302
f65e2044
AA
103032017-06-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
10304
10305 * dwarf2loc.c (write_pieced_value): When writing the data for a
10306 memory piece, use write_memory_with_notification instead of
10307 write_memory.
10308
23f945bf
AA
103092017-06-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
10310
10311 * valops.c (read_value_memory): Change embedded_offset to
10312 represent a bit offset instead of a byte offset.
10313 * value.h (read_value_memory): Adjust comment.
10314
f236533e
AA
103152017-06-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
10316
10317 * dwarf2loc.c (read_pieced_value): Remove unnecessary variables
10318 dest_offset_bits and source_offset_bits.
10319 (write_pieced_value): Likewise.
10320
65d84b76
AA
103212017-06-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
10322
10323 * dwarf2loc.c (read_pieced_value): Respect the piece offset, as
10324 given by DW_OP_bit_piece.
10325 (write_pieced_value): Likewise.
10326
242d31ab
AA
103272017-06-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
10328
10329 * dwarf2loc.c (read_pieced_value): Move the buffer allocation and
10330 some other preparations to the places where sufficient information
10331 is available.
10332 (write_pieced_value): Likewise.
10333
03c8af18
AA
103342017-06-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
10335
10336 * dwarf2loc.c (bits_to_bytes): New function.
10337 (read_pieced_value): Fix offset calculations for register pieces
10338 on big-endian targets.
10339 (write_pieced_value): Likewise.
10340
840989c1
AA
103412017-06-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
10342
10343 * dwarf2loc.c (read_pieced_value): Remove buffer_size variable.
10344 (write_pieced_value): Likewise.
10345
359b19bb
AA
103462017-06-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
10347
10348 * dwarf2loc.c (write_pieced_value): When writing to a bit-field,
10349 transfer the source value's least significant bits, instead of its
10350 lowest-addressed ones. Rename type_len to max_offset.
10351 (read_pieced_value): Mirror above changes to write_pieced_value as
10352 applicable.
10353
07c9ca3b
AA
103542017-06-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
10355
10356 * dwarf2loc.c (write_pieced_value): In DWARF_VALUE_MEMORY,
10357 truncate full bytes from dest_offset_bits before using it as an
10358 offset into the buffer.
10359
f1cc9874
AA
103602017-06-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
10361
10362 * dwarf2loc.c (write_pieced_value): Include transfer size in
10363 byte-wise check.
10364
cdaac320
AA
103652017-06-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
10366
10367 * dwarf2loc.c (write_pieced_value): Fix copy/paste error in the
10368 calculation of this_size.
10369
af547a96
AA
103702017-06-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
10371
10372 * dwarf2loc.c (read_pieced_value): Respect parent value's offset
10373 when targeting a bit-field.
10374 (write_pieced_value): Likewise.
10375
ddd7882a
AA
103762017-06-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
10377
10378 * dwarf2loc.c (struct piece_closure) <addr_size>: Remove field.
10379 (allocate_piece_closure): Drop addr_size parameter.
10380 (dwarf2_evaluate_loc_desc_full): Adjust call to
10381 allocate_piece_closure.
10382
e9352324
AA
103832017-06-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
10384
10385 PR gdb/21226
10386 * dwarf2loc.c (read_pieced_value): Anchor stack value pieces at
10387 the LSB end, independent of endianness.
10388
d5d1163e
AA
103892017-06-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
10390
10391 * dwarf2loc.c (write_pieced_value): Fix order of calculations for
10392 size capping.
10393
032bb6ea
YQ
103942017-06-13 Yao Qi <yao.qi@linaro.org>
10395
10396 * mips-linux-nat.c: Move include features/mips*-linux.c to
10397 mips-linux-tdep.c.
10398 (_initialize_mips_linux_nat): Move initialize_tdesc_mips* calls
10399 to mips-linux-tdep.c.
10400 * mips-linux-tdep.c: Include features/mips*-linux.c
10401 (_initialize_mips_linux_tdep): Call initialize_tdesc_mips*
10402 functions.
10403 * mips-linux-tdep.h (tdesc_mips_linux): Declare.
10404 (tdesc_mips_dsp_linux, tdesc_mips64_linux): Declare.
10405 (tdesc_mips64_dsp_linux): Declare.
10406
f12f6bad
TT
104072017-06-12 Tom Tromey <tom@tromey.com>
10408
10409 * valprint.h (val_print_type_code_int): Remove.
10410 * valprint.c (generic_val_print_int): Always call
10411 val_print_scalar_formatted.
10412 (val_print_type_code_int): Remove.
10413 * printcmd.c (print_scalar_formatted): Handle options->format==0.
10414 * f-valprint.c (f_val_print): Use val_print_scalar_formatted.
10415 * c-valprint.c (c_val_print_int): Use val_print_scalar_formatted.
10416 * ada-valprint.c (ada_val_print_num): Use
10417 val_print_scalar_formatted.
10418
d9109c80
TT
104192017-06-12 Tom Tromey <tom@tromey.com>
10420
10421 * printcmd.c (print_scalar_formatted): Unify the two switches.
10422 Don't convert scalars to LONGEST.
10423
4ac0cb1c
TT
104242017-06-12 Tom Tromey <tom@tromey.com>
10425
10426 PR exp/16225:
10427 * valprint.h (print_decimal_chars): Update.
10428 * valprint.c (maybe_negate_by_bytes): New function.
10429 (print_decimal_chars): Add "is_signed" argument.
10430 * printcmd.c (print_scalar_formatted): Update.
10431
30a25466
TT
104322017-06-12 Tom Tromey <tom@tromey.com>
10433
10434 PR exp/16225:
10435 * valprint.h (print_binary_chars, print_hex_chars): Update.
10436 * valprint.c (val_print_type_code_int): Update.
10437 (print_binary_chars): Add "zero_pad" argument.
10438 (emit_octal_digit): New function.
10439 (print_octal_chars): Don't zero-pad.
10440 (print_decimal_chars): Likewise.
10441 (print_hex_chars): Add "zero_pad" argument.
10442 * sh64-tdep.c (sh64_do_fp_register): Update.
10443 * regcache.c (regcache::dump): Update.
10444 * printcmd.c (print_scalar_formatted): Update.
10445 * infcmd.c (default_print_one_register_info): Update.
10446
b3464d03
PA
104472017-06-12 Pedro Alves <palves@redhat.com>
10448 Alan Hayward <alan.hayward@arm.com>
10449
10450 * mips-tdep.c (MAX_MIPS_ABI_REGSIZE): New.
10451 (mips_eabi_push_dummy_call): Rename local 'regsize' to
10452 'abi_regsize'. Rename local array 'valbuf' to 'ref_valbuf', and
10453 use MAX_MIPS_ABI_REGSIZE instead of MAX_REGISTER_SIZE to size it.
10454 Assert that abi_regsize bytes fit in 'ref_valbuf'.
10455
4b76cda9
PA
104562017-06-12 Pedro Alves <palves@redhat.com>
10457
10458 * dwarf2read.c (mapped_symtab::data): Now a vector of
10459 symtab_index_entry instead of vector of
10460 std::unique_ptr<symtab_index_entry>. All users adjusted to check
10461 whether an element's name is NULL instead of checking whether the
10462 element itself is NULL.
10463 (find_slot): Change return type. Adjust.
10464 (hash_expand, , add_index_entry, uniquify_cu_indices)
10465 (write_hash_table): Adjust.
10466
e8f8bcb3
PA
104672017-06-12 Pedro Alves <palves@redhat.com>
10468
10469 * dwarf2read.c (recursively_count_psymbols): New function.
10470 (write_psymtabs_to_index): Call it to compute number of psyms and
10471 pass estimate size of psyms_seen to unordered_set's ctor.
10472
70a1152b
PA
104732017-06-12 Pedro Alves <palves@redhat.com>
10474
10475 * dwarf2read.c (write_hash_table): Check if key already exists
10476 before emplacing.
10477
c2f134ac
PA
104782017-06-12 Pedro Alves <palves@redhat.com>
10479
10480 * dwarf2read.c (data_buf::append_space): Rename to...
10481 (data_buf::grow): ... this, and make private. Adjust all callers.
10482 (data_buf::append_uint): New method.
10483 (add_address_entry, write_one_signatured_type)
10484 (write_psymtabs_to_index): Use it.
10485
a81e6d4d
PA
104862017-06-12 Pedro Alves <palves@redhat.com>
10487
10488 * dwarf2read.c (file_write(FILE *, const void *, size_t)): Delete.
10489 (file_write (FILE *, const std::vector<Elem>&)): Delete.
10490 (data_buf::file_write): Call ::fwrite directly.
10491
6fd931f2
PA
104922017-06-12 Pedro Alves <palves@redhat.com>
10493
10494 * dwarf2read.c (uniquify_cu_indices): Use std::unique and
10495 std::vector::erase.
10496
bc8f2430
JK
104972017-06-12 Jan Kratochvil <jan.kratochvil@redhat.com>
10498
10499 Code cleanup: C++ify .gdb_index producer.
10500 * dwarf2read.c: Include <unordered_set> and <unordered_map>.
10501 (MAYBE_SWAP) [WORDS_BIGENDIAN]: Cast to offset_type.
10502 (struct strtab_entry, hash_strtab_entry, eq_strtab_entry)
10503 (create_strtab, add_string): Remove.
10504 (file_write, data_buf): New.
10505 (struct symtab_index_entry): Use std::vector for cu_indices.
10506 (struct mapped_symtab): Use std::vector for data.
10507 (hash_symtab_entry, eq_symtab_entry, delete_symtab_entry)
10508 (create_symbol_hash_table, create_mapped_symtab, cleanup_mapped_symtab):
10509 Remove.
10510 (find_slot): Change return type. Update it to the new data structures.
10511 (hash_expand, add_index_entry): Update it to the new data structures.
10512 (offset_type_compare): Remove.
10513 (uniquify_cu_indices): Update it to the new data structures.
10514 (c_str_view, c_str_view_hasher, vector_hasher): New.
10515 (add_indices_to_cpool): Remove.
10516 (write_hash_table): Update it to the new data structures.
10517 (struct psymtab_cu_index_map, hash_psymtab_cu_index)
10518 (eq_psymtab_cu_index): Remove.
10519 (psym_index_map): New typedef.
10520 (struct addrmap_index_data): Change addr_obstack pointer to data_buf
10521 reference and std::unordered_map for cu_index_htab.
10522 (add_address_entry, add_address_entry_worker, write_address_map)
10523 (write_psymbols): Update it to the new data structures.
10524 (write_obstack): Remove.
10525 (struct signatured_type_index_data): Change types_list to a data_buf
10526 reference and psyms_seen to a std::unordered_set reference.
10527 (write_one_signatured_type, recursively_write_psymbols)
10528 (write_psymtabs_to_index): Update it to the new data structures.
10529
c4dcb155
SM
105302017-06-11 Simon Marchi <simon.marchi@ericsson.com>
10531
10532 * NEWS (Changes since GDB 8.0): Announce {set,show} debug
10533 separate-debug-file commands.
10534 * symfile.h (separate_debug_file_debug): New global.
10535 * symfile.c (separate_debug_file_debug): New global.
10536 (separate_debug_file_exists, find_separate_debug_file): Add
10537 debug output.
10538 (_initialize_symfile): Add "set debug separate-debug-file"
10539 command.
10540 * build-id.c (build_id_to_debug_bfd,
10541 find_separate_debug_file_by_buildid): Add debug output.
10542
6d45d4b4
SM
105432017-06-10 Simon Marchi <simon.marchi@polymtl.ca>
10544
10545 * gdbarch.sh (displaced_step_free_closure): Remove.
10546 * gdbarch.h, gdbarch.c: Re-generate.
10547 * aarch64-linux-tdep.c (aarch64_linux_init_abi): Don't set
10548 displaced_step_free_closure.
10549 * amd64-linux-tdep.c (amd64_linux_init_abi_common): Likewise.
10550 * arm-linux-tdep.c (arm_linux_init_abi): Likewise.
10551 * i386-linux-tdep.c (i386_linux_init_abi): Likewise.
10552 * rs6000-aix-tdep.c (rs6000_aix_init_osabi): Likewise.
10553 * rs6000-tdep.c (rs6000_gdbarch_init): Likewise.
10554 * s390-linux-tdep.c (s390_gdbarch_init): Likewise.
10555 * arch-utils.h (simple_displaced_step_free_closure): Remove.
10556 * arch-utils.c (simple_displaced_step_free_closure): Remove.
10557 * infrun.c (displaced_step_clear): Call xfree instead of
10558 gdbarch_displaced_step_free_closure.
10559
2f91880f
SDJ
105602017-06-08 Sergio Durigan Junior <sergiodj@redhat.com>
10561
10562 * common/common-utils.c (stringify_argv): Check for "arg[0] !=
10563 NULL".
10564
b8b6e72f
AH
105652017-06-08 Alan Hayward <alan.hayward@arm.com>
10566
10567 * mn10300-tdep.c (MN10300_MAX_REGISTER_SIZE): Add.
10568 (mn10300_extract_return_value): Use MN10300_MAX_REGISTER_SIZE.
10569 (mn10300_push_dummy_call): Likewise.
10570
5369082e
AH
105712017-06-08 Alan Hayward <alan.hayward@arm.com>
10572
10573 * mi/mi-main.c (register_changed_p): Use value_contents_eq.
10574
ff4ca5ac
AH
105752017-06-08 Alan Hayward <alan.hayward@arm.com>
10576
10577 * mi/mi-main.c (register_changed_p): Use cooked_read_value.
10578
aefd8b33
SDJ
105792017-06-07 Sergio Durigan Junior <sergiodj@redhat.com>
10580
10581 * NEWS (Changes since GDB 8.0): Announce that GDBserver is now
10582 able to start inferiors using a shell.
10583 (New remote packets): Announce new packet "QStartupWithShell".
10584 * remote.c: Add PACKET_QStartupWithShell.
10585 (extended_remote_create_inferior): Handle new
10586 PACKET_QStartupWithShell.
10587 (remote_protocol_features) <QStartupWithShell>: New entry for
10588 PACKET_QStartupWithShell.
10589 (_initialize_remote): Call "add_packet_config_cmd" for
10590 QStartupShell.
10591
2090129c
SDJ
105922017-06-07 Sergio Durigan Junior <sergiodj@redhat.com>
10593 Pedro Alves <palves@redhat.com>
10594
10595 * Makefile.in (HFILES_NO_SRCDIR): Add "common/common-inferior.h"
10596 and "nat/fork-inferior.h".
10597 * common/common-inferior.h: New file, with contents from
10598 "gdb/inferior.h".
10599 * commom/common-utils.c: Include "common-utils.h".
10600 (stringify_argv): New function.
10601 * common/common-utils.h (stringify_argv): New prototype.
10602 * configure.nat: Add "fork-inferior.o" as a dependency for
10603 "*linux*", "fbsd*" and "nbsd*" hosts.
10604 * corefile.c (get_exec_file): Update comment.
10605 * darwin-nat.c (darwin_ptrace_him): Call "gdb_startup_inferior"
10606 instead of "startup_inferior".
10607 (darwin_create_inferior): Call "add_thread_silent" after
10608 "fork_inferior".
10609 * fork-child.c: Cleanup unnecessary includes.
10610 (SHELL_FILE): Move to "common/common-fork-child.c".
10611 (environ): Likewise.
10612 (exec_wrapper): Initialize.
10613 (get_exec_wrapper): New function.
10614 (breakup_args): Move to "common/common-fork-child.c"; rename to
10615 "breakup_args_for_exec".
10616 (escape_bang_in_quoted_argument): Move to
10617 "common/common-fork-child.c".
10618 (saved_ui): New variable.
10619 (prefork_hook): New function.
10620 (postfork_hook): Likewise.
10621 (postfork_child_hook): Likewise.
10622 (gdb_startup_inferior): Likewise.
10623 (fork_inferior): Move to "common/common-fork-child.c". Update
10624 function to support gdbserver.
10625 (startup_inferior): Likewise.
10626 * gdbcore.h (get_exec_file): Remove declaration.
10627 * gnu-nat.c (gnu_create_inferior): Call "gdb_startup_inferior"
10628 instead of "startup_inferior". Call "add_thread_silent" after
10629 "fork_inferior".
10630 * inf-ptrace.c: Include "nat/fork-inferior.h" and "utils.h".
10631 (inf_ptrace_create_inferior): Call "gdb_startup_inferior"
10632 instead of "startup_inferior". Call "add_thread_silent" after
10633 "fork_inferior".
10634 * inferior.h: Include "common-inferior.h".
10635 (trace_start_error): Move to "common/common-utils.h".
10636 (trace_start_error_with_name): Likewise.
10637 (fork_inferior): Move prototype to "nat/fork-inferior.h".
10638 (startup_inferior): Likewise.
10639 (gdb_startup_inferior): New prototype.
10640 * nat/fork-inferior.c: New file, with contents from "fork-child.c".
10641 * nat/fork-inferior.h: New file.
10642 * procfs.c (procfs_init_inferior): Call "gdb_startup_inferior"
10643 instead of "startup_inferior". Call "add_thread_silent" after
10644 "fork_inferior".
10645 * target.h (target_terminal_init): Move prototype to
10646 "target/target.h".
10647 (target_terminal_inferior): Likewise.
10648 (target_terminal_ours): Likewise.
10649 * target/target.h (target_terminal_init): New prototype, moved
10650 from "target.h".
10651 (target_terminal_inferior): Likewise.
10652 (target_terminal_ours): Likewise.
10653 * utils.c (gdb_flush_out_err): New function.
10654
043a4934
SDJ
106552017-06-07 Sergio Durigan Junior <sergiodj@redhat.com>
10656
10657 * Makefile.in (HFILES_NO_SRCDIR): Add "common/common-gdbthread.h".
10658 * common/common-gdbthread.h: New file, with parts from
10659 "gdb/gdbthread.h".
10660 * gdbthread.h: Include "common-gdbthread.h".
10661 (switch_to_thread): Moved to "common/common-gdbthread.h".
10662
15652511
SDJ
106632017-06-07 Sergio Durigan Junior <sergiodj@redhat.com>
10664
10665 * Makefile.in (SFILES): Add "common/job-control.c".
10666 (HFILES_NO_SRCDIR): Add "common/job-control.h".
10667 (COMMON_OBS): Add "job-control.o".
10668 * common/job-control.c: New file, with contents from
10669 "gdb/inflow.c".
10670 * common/job-control.h: New file, with contents from "terminal.h".
10671 * fork-child.c: Include "job-control.h".
10672 * inflow.c: Include "job-control.h".
10673 (gdb_setpgid): Move to "common/common-inflow.c".
10674 (_initialize_inflow): Move setting of "job_control" to
10675 "handle_job_control".
10676 * terminal.h (job_control): Moved to "common/common-terminal.h".
10677 (gdb_setpgid): Likewise.
10678 * top.c: Include "job_control.h".
10679 * utils.c: Likewise.
10680 (job_control): Moved to "job-control.c".
10681
2d7cc5c7
PA
106822017-06-07 Pedro Alves <palves@redhat.com>
10683
10684 * Makefile.in (SFILES): Add gdb_regex.c.
10685 (COMMON_OBS): Add gdb_regex.o.
10686 * ada-lang.c (ada_add_standard_exceptions)
10687 (ada_add_exceptions_from_frame, name_matches_regex)
10688 (ada_add_global_exceptions, ada_exceptions_list_1): Change regex
10689 parameter type to compiled_regex. Adjust.
10690 (ada_exceptions_list): Use compiled_regex.
10691 * break-catch-throw.c (exception_catchpoint::pattern): Now a
10692 std::unique_ptr<compiled_regex>.
10693 (exception_catchpoint::~exception_catchpoint): Remove regfree
10694 call.
10695 (check_status_exception_catchpoint): Adjust to use compiled_regex.
10696 (handle_gnu_v3_exceptions): Adjust to use compiled_regex.
10697 * breakpoint.c (solib_catchpoint::compiled): Now a
10698 std::unique_ptr<compiled_regex>.
10699 (solib_catchpoint::~solib_catchpoint): Remove regfree call.
10700 (check_status_catch_solib): Adjust to use compiled_regex.
10701 (add_solib_catchpoint): Adjust to use compiled_regex.
10702 * cli/cli-cmds.c (apropos_command): Use compiled_regex.
10703 * cli/cli-decode.c (apropos_cmd): Change regex parameter to
10704 compiled_regex reference. Adjust to use it.
10705 * cli/cli-decode.h: Remove struct re_pattern_buffer forward
10706 declaration. Include "gdb_regex.h".
10707 (apropos_cmd): Change regex parameter to compiled_regex reference.
10708 * gdb_regex.c: New file.
10709 * gdb_regex.h (make_regfree_cleanup, get_regcomp_error): Delete
10710 declarations.
10711 (class compiled_regex): New.
10712 * linux-tdep.c: Include "common/gdb_optional.h".
10713 (struct mapping_regexes): New, factored out from
10714 mapping_is_anonymous_p, and adjusted to use compiled_regex.
10715 (mapping_is_anonymous_p): Use mapping_regexes wrapped in a
10716 gdb::optional and remove cleanups. Adjust to compiled_regex.
10717 * probe.c: Include "common/gdb_optional.h".
10718 (collect_probes): Use compiled_regex and gdb::optional and remove
10719 cleanups.
10720 * skip.c: Include "common/gdb_optional.h".
10721 (skiplist_entry::compiled_function_regexp): Now a
10722 gdb::optional<compiled_regex>.
10723 (skiplist_entry::compiled_function_regexp_is_valid): Delete field.
10724 (free_skiplist_entry): Remove regfree call.
10725 (compile_skip_regexp, skip_rfunction_p): Adjust to use
10726 compiled_regex and gdb::optional.
10727 * symtab.c: Include "common/gdb_optional.h".
10728 (search_symbols): Use compiled_regex and gdb::optional.
10729 * utils.c (do_regfree_cleanup, make_regfree_cleanup)
10730 (get_regcomp_error, compile_rx_or_error): Delete. Some bits moved
10731 to gdb_regex.c.
10732
50d6adef
AH
107332017-06-07 Alan Hayward <alan.hayward@arm.com>
10734
10735 * regcache.c (regcache::save): Avoid buffer use.
10736 (regcache::dump): Likewise.
10737
4a8a33c8
AH
107382017-06-07 Alan Hayward <alan.hayward@arm.com>
10739
10740 * sh-tdep.c (sh_pseudo_register_read): Remove
10741 MAX_REGISTER_SIZE.
10742 (sh_pseudo_register_write): Likewise.
10743 * sh64-tdep.c (sh64_pseudo_register_read): Likewise.
10744 (sh64_pseudo_register_write): Likewise
10745
d1be909e
AH
107462017-06-07 Alan Hayward <alan.hayward@arm.com>
10747
10748 * aarch64-tdep.c (aarch64_store_return_value): Use
10749 V_REGISTER_SIZE.
10750 (aarch64_pseudo_read_value): Likewise.
10751 (aarch64_pseudo_write): Likewise.
10752
f4a65042
YQ
107532017-06-06 Yao Qi <yao.qi@linaro.org>
10754
10755 * regformats/regdef.h (set_register_cache): Remove the
10756 declaration.
10757
9f7fb0aa
AH
107582017-06-06 Alan Hayward <alan.hayward@arm.com>
10759
10760 * frame.c (frame_unwind_register_signed): Use
10761 frame_unwind_register_value.
10762
e1e01040
PA
107632017-06-06 Pedro Alves <palves@redhat.com>
10764
10765 PR breakpoints/21553
10766 * breakpoint.c (create_breakpoints_sal_default)
10767 (init_breakpoint_sal, create_breakpoint_sal): Use
10768 gdb::unique_xmalloc_ptr for string parameters.
10769 (create_breakpoint): Constify 'extra_string' and 'cond_string'
10770 parameters. Replace cleanups with gdb::unique_xmalloc_ptr.
10771 (base_breakpoint_create_breakpoints_sal)
10772 (bkpt_create_breakpoints_sal, tracepoint_create_breakpoints_sal)
10773 (strace_marker_create_breakpoints_sal)
10774 (create_breakpoints_sal_default): Use gdb::unique_xmalloc_ptr for
10775 string parameters.
10776 * breakpoint.h (breakpoint_ops::create_breakpoints_sal): Use
10777 gdb::unique_xmalloc_ptr for string parameters.
10778 (create_breakpoint): Constify 'extra_string' and 'cond_string'
10779 parameters.
10780
fbe654c8
AH
107812017-06-06 Alan Hayward <alan.hayward@arm.com>
10782
10783 * alpha-tdep.c (alpha_register_to_value): Use
10784 get_frame_register_value.
10785 (alpha_value_to_register): Use ALPHA_REGISTER_SIZE.
10786
ae0d01d6
AH
107872017-06-06 Alan Hayward <alan.hayward@arm.com>
10788
10789 * ia64-tdep.c (IA64_MAX_FP_REGISTER_SIZE) Add.
10790 (ia64_register_to_value): Use IA64_MAX_FP_REGISTER_SIZE.
10791 (ia64_value_to_register): Likewise.
10792 (ia64_extract_return_value): Likewise.
10793 (ia64_store_return_value): Likewise.
10794 (ia64_push_dummy_call): Likewise.
10795
49cf576c
JB
107962017-06-04 Joel Brobecker <brobecker@adacore.com>
10797
10798 GDB 8.0 released.
10799
26b6a6ab
SM
108002017-06-03 Simon Marchi <simon.marchi@ericsson.com>
10801
10802 * x86-linux-nat.c (struct arch_lwp_info): Remove.
10803
22827c51
SM
108042017-06-03 Simon Marchi <simon.marchi@polymtl.ca>
10805
10806 * linux-nat.c (linux_nat_post_attach_wait): Remove FIRST
10807 parameter.
10808 (linux_nat_attach): Adjust call to linux_nat_post_attach_wait.
10809
0e05cf3a
SM
108102017-06-02 Simon Marchi <simon.marchi@ericsson.com>
10811
10812 * event-loop.c (poll_timers): Unallocate timer using delete
10813 instead of xfree.
10814
c1fc2657
SM
108152017-06-02 Simon Marchi <simon.marchi@polymtl.ca>
10816
10817 * breakpoint.h (struct breakpoint_ops) <dtor>: Remove.
10818 (struct breakpoint) <~breakpoint>: New.
10819 (struct watchpoint): Inherit from breakpoint.
10820 <~watchpoint>: New.
10821 <base>: Remove.
10822 (struct tracepoint): Inherit from breakpoint.
10823 <base>: Remove.
10824 * breakpoint.c (longjmp_breakpoint_ops): Remove.
10825 (struct longjmp_breakpoint): Inherit from breakpoint.
10826 <~longjmp_breakpoint>: New.
10827 <base>: Remove.
10828 (new_breakpoint_from_type): Remove casts.
10829 (watchpoint_in_thread_scope): Remove reference to base field.
10830 (watchpoint_del_at_next_stop): Likewise.
10831 (update_watchpoint): Likewise.
10832 (watchpoint_check): Likewise.
10833 (bpstat_check_watchpoint): Likewise.
10834 (set_longjmp_breakpoint): Likewise.
10835 (struct fork_catchpoint): Inherit from breakpoint.
10836 <base>: Remove.
10837 (struct solib_catchpoint): Inherit from breakpoint.
10838 <~solib_catchpoint>: New.
10839 <base>: Remove.
10840 (dtor_catch_solib): Change to ...
10841 (solib_catchpoint::~solib_catchpoint): ... this.
10842 (breakpoint_hit_catch_solib): Remove reference to base field.
10843 (add_solib_catchpoint): Likewise.
10844 (create_fork_vfork_event_catchpoint): Likewise.
10845 (struct exec_catchpoint): Inherit from breakpoint.
10846 <~exec_catchpoint>: New.
10847 <base>: Remove.
10848 (dtor_catch_exec): Change to ...
10849 (exec_catchpoint::~exec_catchpoint): ... this.
10850 (dtor_watchpoint): Change to ...
10851 (watchpoint::~watchpoint): ... this.
10852 (watch_command_1): Remove reference to base field.
10853 (catch_exec_command_1): Likewise.
10854 (base_breakpoint_dtor): Change to ...
10855 (breakpoint::~breakpoint): ... this.
10856 (base_breakpoint_ops): Remove dtor field value.
10857 (longjmp_bkpt_dtor): Change to ...
10858 (longjmp_breakpoint::~longjmp_breakpoint): ... this.
10859 (strace_marker_create_breakpoints_sal): Remove reference to base
10860 field.
10861 (delete_breakpoint): Don't manually call breakpoint destructor.
10862 (create_tracepoint_from_upload): Remove reference to base field.
10863 (trace_pass_set_count): Likewise.
10864 (initialize_breakpoint_ops): Don't initialize
10865 momentary_breakpoint_ops, don't set dtors.
10866 * ada-lang.c (struct ada_catchpoint): Inherit from breakpoint.
10867 <~ada_catchpoint>: New.
10868 <base>: Remove.
10869 (create_excep_cond_exprs): Remove reference to base field.
10870 (dtor_exception): Change to ...
10871 (ada_catchpoint::~ada_catchpoint): ... this.
10872 (dtor_catch_exception): Remove.
10873 (dtor_catch_exception_unhandled): Remove.
10874 (dtor_catch_assert): Remove.
10875 (create_ada_exception_catchpoint): Remove reference to base
10876 field.
10877 (initialize_ada_catchpoint_ops): Don't set dtors.
10878 * break-catch-sig.c (struct signal_catchpoint): Inherit from
10879 breakpoint.
10880 <~signal_catchpoint>: New.
10881 <base>: Remove.
10882 (signal_catchpoint_dtor): Change to ...
10883 (signal_catchpoint::~signal_catchpoint): ... this.
10884 (create_signal_catchpoint): Remove reference to base field.
10885 (initialize_signal_catchpoint_ops): Don't set dtor.
10886 * break-catch-syscall.c (struct syscall_catchpoint): Inherit
10887 from breakpoint.
10888 <~syscall_catchpoint>: New.
10889 <base>: Remove.
10890 (dtor_catch_syscall): Change to ...
10891 (syscall_catchpoint::~syscall_catchpoint): ... this.
10892 (create_syscall_event_catchpoint): Remove reference to base
10893 field.
10894 (initialize_syscall_catchpoint_ops): Don't set dtor.
10895 * break-catch-throw.c (struct exception_catchpoint): Inherit
10896 from breakpoint.
10897 <~exception_catchpoint>: New.
10898 <base>: Remove.
10899 (dtor_exception_catchpoint): Change to ...
10900 (exception_catchpoint::~exception_catchpoint): ... this.
10901 (handle_gnu_v3_exceptions): Remove reference to base field.
10902 (initialize_throw_catchpoint_ops): Don't set dtor.
10903 * ctf.c (ctf_get_traceframe_address): Remove reference to base
10904 field.
10905 * remote.c (remote_get_tracepoint_status): Likewise.
10906 * tracefile-tfile.c (tfile_get_traceframe_address): Likewise.
10907 * tracefile.c (tracefile_fetch_registers): Likewise.
10908 * tracepoint.c (actions_command): Likewise.
10909 (validate_actionline): Likewise.
10910 (tfind_1): Likewise.
10911 (get_traceframe_location): Likewise.
10912 (find_matching_tracepoint_location): Likewise.
10913 (parse_tracepoint_status): Likewise.
10914 * mi/mi-cmd-break.c (mi_cmd_break_passcount): Likewise.
10915
3b0871f4
SM
109162017-06-02 Simon Marchi <simon.marchi@polymtl.ca>
10917
10918 * breakpoint.c (struct longjmp_breakpoint): New struct.
10919 (is_tracepoint_type): Change return type to bool.
10920 (is_longjmp_type): New function.
10921 (new_breakpoint_from_type): Handle longjmp kinds of breakpoints.
10922 (set_raw_breakpoint_without_location): Use
10923 new_breakpoint_from_type.
10924 (set_raw_breakpoint): Likewise.
10925
a5e364af
SM
109262017-06-02 Simon Marchi <simon.marchi@polymtl.ca>
10927
10928 * breakpoint.c (new_breakpoint_from_type): New function.
10929 (create_breakpoint_sal): Use new_breakpoint_from_type and
10930 unique_ptr.
10931 (create_breakpoint): Likewise.
10932
ae3b3f34
SM
109332017-05-31 Simon Marchi <simon.marchi@ericsson.com>
10934
10935 * memattr.c (mem_info_command): Rename to ...
10936 (info_mem_command): ... this.
10937 (mem_enable_command): Rename to ...
10938 (enable_mem_command): ... this.
10939 (mem_disable_command): Rename to ...
10940 (disable_mem_command): ... this.
10941 (mem_delete_command): Rename to ...
10942 (delete_mem_command): ... this.
10943 (_initialize_mem): Adjust function names.
10944
13ace077
MM
109452017-05-31 Markus Metzger <markus.t.metzger@intel.com>
10946
10947 * btrace.c (handle_pt_insn_events): New.
10948 (ftrace_add_pt): Call handle_pt_insn_events. Rename ERRCODE into
10949 STATUS. Split into this and ...
10950 (handle_pt_insn_event_flags): ... this.
10951
c56ccc05
MM
109522017-05-31 Markus Metzger <markus.t.metzger@intel.com>
10953
10954 * configure.ac: Check for pt_insn_event, struct pt_insn.enabled,
10955 and struct pt_insn.resynced.
10956 * configure: Regenerated.
10957 * config.in: Regenerated.
10958
08c3f6d2
TW
109592017-05-30 Tim Wiederhake <tim.wiederhake@intel.com>
10960
10961 * btrace.c (ftrace_find_call_by_number): New function.
10962 (ftrace_new_function): Store objects, not pointers.
10963 (ftrace_find_call_by_number, ftrace_new_return, ftrace_new_switch,
10964 ftrace_new_gap, ftrace_update_function,
10965 ftrace_compute_global_level_offset, btrace_stich_bts, btrace_clear,
10966 btrace_insn_get, btrace_insn_get_error, btrace_insn_end,
10967 btrace_insn_next, btrace_insn_prev, ptrace_find_insn_by_number,
10968 btrace_ends_with_single_insn, btrace_call_get): Account for
10969 btrace_thread_info::functions now storing objects.
10970 * btrace.h (struct btrace_thread_info): Add constructor.
10971 (struct btrace_thread_info) <functions>: Make std::vector.
10972 (struct btrace_thread_info) <prev, next, up, insn, errcode, flags):
10973 Initialize with default values.
10974 * record-btrace.c (record_btrace_frame_sniffer): Account for
10975 btrace_thread_info::functions now storing objects.
10976
8ffd39f2
TW
109772017-05-30 Tim Wiederhake <tim.wiederhake@intel.com>
10978
10979 * btrace.c: Remove typedef bfun_s.
10980 (ftrace_new_gap): Directly add gaps to the list of gaps.
10981 (btrace_bridge_gaps, btrace_compute_ftrace_bts, pt_btrace_insn_flags,
10982 ftrace_add_pt, btrace_compute_ftrace_pt, btrace_compute_ftrace_1,
10983 btrace_finalize_ftrace, btrace_compute_ftrace): Use std::vector
10984 instead of gdb VEC.
10985
4aeb0dfc
TW
109862017-05-30 Tim Wiederhake <tim.wiederhake@intel.com>
10987
10988 * btrace.c (ftrace_fixup_caller, ftrace_new_return, ftrace_connect_bfun,
10989 ftrace_bridge_gap): Replace references to btrace_thread_info::segment
10990 with btrace_thread_info::next_segment and
10991 btrace_thread_info::prev_segment.
10992 * btrace.h: Remove struct btrace_func_link.
10993 (struct btrace_function): Replace pair of function segment pointers
10994 with pair of indices.
10995 * python/py-record-btrace.c (btpy_call_prev_sibling,
10996 btpy_call_next_sibling): Replace references to
10997 btrace_thread_info::segment with btrace_thread_info::next_segment and
10998 btrace_thread_info::prev_segment.
10999 * record-btrace.c (record_btrace_frame_this_id): Use
11000 btrace_find_call_by_number.
11001
eb8f2b9c
TW
110022017-05-30 Tim Wiederhake <tim.wiederhake@intel.com>
11003
11004 * btrace.c (ftrace_new_function, ftrace_fixup_level,
11005 ftrace_connect_bfun, ftrace_bridge_gap, btrace_bridge_gaps,
11006 btrace_insn_next, btrace_insn_prev): Remove references to
11007 btrace_thread_info::flow.
11008 * btrace.h (struct btrace_function): Remove FLOW.
11009
42bfe59e
TW
110102017-05-30 Tim Wiederhake <tim.wiederhake@intel.com>
11011
11012 * btrace.c (ftrace_find_call_by_number): New function.
11013 (ftrace_update_caller, ftrace_new_call, ftrace_new_tailcall,
11014 ftrace_get_caller, ftrace_find_call, ftrace_new_return,
11015 ftrace_match_backtrace, ftrace_connect_bfun, ftrace_connect_backtrace,
11016 ftrace_bridge_gap, btrace_bridge_gaps): Use btrace_function::up as an
11017 index.
11018 * btrace.h (struct btrace_function): Turn UP into an index.
11019 * python/py-record-btrace.c (btpy_call_up): Use btrace_function::up
11020 as an index.
11021 * record-btrace.c (record_btrace_frame_unwind_stop_reason,
11022 record_btrace_frame_prev_register, record_btrace_frame_sniffer,
11023 record_btrace_tailcall_frame_sniffe): Use btrace_find_call_by_number.
11024
b54b03bd
TW
110252017-05-30 Tim Wiederhake <tim.wiederhake@intel.com>
11026
11027 * btrace.c (ftrace_new_function, ftrace_new_call, ftrace_new_tailcall,
11028 ftrace_new_return, ftrace_new_switch, ftrace_new_gap,
11029 ftrace_update_function, ftrace_compute_global_level_offset,
11030 btrace_compute_ftrace_bts, ftrace_add_pt, btrace_compute_ftrace_pt,
11031 btrace_stitch_bts, btrace_fetch, btrace_clear, btrace_insn_number,
11032 btrace_insn_end, btrace_is_empty): Remove references to
11033 btrace_thread_info::begin and btrace_thread_info::end.
11034 * btrace.h (struct btrace_thread_info): Remove BEGIN and END.
11035 (struct btrace_thread_info) <functions>: Adjust comment.
11036 * record-btrace.c (record_btrace_start_replaying): Remove reference to
11037 btrace_thread_info::begin.
11038
8286623c
TW
110392017-05-30 Tim Wiederhake <tim.wiederhake@intel.com>
11040
11041 * btrace.c (ftrace_new_function, ftrace_new_call, ftrace_new_tailcall,
11042 ftrace_new_return, ftrace_new_switch, ftrace_new_gap,
11043 ftrace_update_function): Remove arguments that implicitly were always
11044 BTINFO->END.
11045 (btrace_compute_ftrace_bts, ftrace_add_pt, btrace_compute_ftrace_pt):
11046 Don't pass BTINFO->END.
11047
a0f1b963
TW
110482017-05-30 Tim Wiederhake <tim.wiederhake@intel.com>
11049
11050 * btrace.c: (btrace_insn_get, btrace_insn_get_error, btrace_insn_number,
11051 btrace_insn_begin, btrace_insn_end, btrace_insn_next, btrace_insn_prev,
11052 btrace_find_insn_by_number): Replace function segment pointer with
11053 index.
11054 (btrace_insn_cmp): Simplify.
11055 * btrace.h: (struct btrace_insn_iterator) Rename index to
11056 insn_index. Replace function segment pointer with index into function
11057 segment vector.
11058 * record-btrace.c (record_btrace_call_history): Replace function
11059 segment pointer use with index.
11060 (record_btrace_frame_sniffer): Retrieve function call segment through
11061 vector.
11062 (record_btrace_set_replay): Remove defunc't safety check.
11063
f158f208
TW
110642017-05-30 Tim Wiederhake <tim.wiederhake@intel.com>
11065
11066 * btrace.c (btrace_ends_with_single_insn): New function.
11067 (btrace_call_get, btrace_call_number, btrace_call_begin,
11068 btrace_call_end, btrace_call_next, btrace_call_prev,
11069 btrace_find_call_by_number): Use index into call segment vector
11070 instead of pointer.
11071 (btrace_call_cmp): Simplify.
11072 * btrace.h (struct btrace_call_iterator): Replace function call segment
11073 pointer with index into vector.
11074 * record-btrace.c (record_btrace_call_history): Use index instead of
11075 pointer.
11076
521103fd
TW
110772017-05-30 Tim Wiederhake <tim.wiederhake@intel.com>
11078
11079 * btrace.c (btrace_insn_begin, btrace_insn_end,
11080 btrace_find_insn_by_number): Add btinfo to iterator.
11081 * btrace.h (struct btrace_insn_iterator): Add btinfo.
11082
17b89b34
TW
110832017-05-30 Tim Wiederhake <tim.wiederhake@intel.com>
11084
11085 * btrace.c (ftrace_new_function): Add btrace_thread_info to arguments
11086 and save pointers directly.
11087 (ftrace_new_call, ftrace_new_tailcall, ftrace_new_return,
11088 ftrace_new_switch, ftrace_new_gap, ftrace_update_function,
11089 ftrace_add_pt): Add btrace_thread_info to arguments. Adjust for
11090 changed signature of functions.
11091 (btrace_compute_ftrace_pt): Adjust for changed signature of functions.
11092 (btrace_fetch): Remove code that adds btrace_function pointers to
11093 vector of btrace_functions.
11094 (btrace_clear): Simplify freeing vector of btrace_functions.
11095
2b51eddc
TW
110962017-05-30 Tim Wiederhake <tim.wiederhake@intel.com>
11097
11098 * btrace.c (btrace_fetch, btrace_clear, btrace_find_insn_by_number):
11099 Replace VEC_* with std::vector functions.
11100 * btrace.h: Add include: vector. Remove typedef for DEF_VEC_P.
11101 (struct btrace_thread_info)<functions>: Change type to std::vector.
11102
db6be0d5
SM
111032017-05-30 Simon Marchi <simon.marchi@ericsson.com>
11104
11105 * NEWS (Changes in GDB 8.0): Remove extra empty line. Move
11106 "Removed targets and native configurations" up. Merge duplicate
11107 "New commands" sub-sections. Add "New options" sub-sections.
11108
b057297a
AH
111092017-05-26 Alan Hayward <alan.hayward@arm.com>
11110
11111 * defs.h (copy_integer_to_size): New declaration.
11112 * findvar.c (copy_integer_to_size): New function.
11113 (do_cint_test): New selftest function.
11114 (copy_integer_to_size_test): Likewise.
11115 (_initialize_findvar): Likewise.
11116 * mips-fbsd-tdep.c (mips_fbsd_supply_reg): Use raw_supply_integer.
11117 (mips_fbsd_collect_reg): Use raw_collect_integer.
11118 * mips-linux-tdep.c (supply_32bit_reg): Use raw_supply_integer.
11119 (mips64_fill_gregset): Use raw_collect_integer
11120 (mips64_fill_fpregset): Use raw_supply_integer.
11121 * regcache.c (regcache::raw_supply_integer): New function.
11122 (regcache::raw_collect_integer): Likewise.
11123 * regcache.h: (regcache::raw_supply_integer): New declaration.
11124 (regcache::raw_collect_integer): Likewise.
11125
b77b02a5
YQ
111262017-05-24 Yao Qi <yao.qi@linaro.org>
11127
11128 * Makefile.in (SFILES): Add gdbarch-selftests.c.
11129 (COMMON_OBS): Add gdbarch-selftests.o.
11130 * frame.c [GDB_SELF_TESTS] (create_new_frame): New function.
11131 * frame.h [GDB_SELF_TESTS] (create_new_frame): Declare.
11132 * gdbarch-selftests.c: New file.
11133 * regcache.h (regcache) <~regcache>: Mark it virtual if
11134 GDB_SELF_TEST.
11135 <raw_write>: Likewise.
11136
e521e87e
YQ
111372017-05-24 Yao Qi <yao.qi@linaro.org>
11138
11139 * regcache.c (current_regcache): Change it to
11140 regcache::current_regcache.
11141 (regcache_observer_target_changed): Update.
11142 (regcache_thread_ptid_changed): Make it a regcache static
11143 method.
11144 (regcache_thread_ptid_changed): Update.
11145 (class regcache_access): New.
11146 (current_regcache_test): Update.
11147 (_initialize_regcache): Update.
11148 * regcache.h: Include forward_list.
11149 (regcache): Declare regcache_thread_ptid_changed and declare
11150 registers_changed_ptid as friend.
11151
d8e07dda
YQ
111522017-05-24 Yao Qi <yao.qi@linaro.org>
11153
11154 * i387-tdep.c (i387_register_to_value): Use register_size
11155 instead of TYPE_LENGTH.
11156 * m68k-tdep.c (m68k_register_to_value): Likewise.
11157
8c8f9122
YQ
111582017-05-24 Yao Qi <yao.qi@linaro.org>
11159
11160 * i387-tdep.c (i387_convert_register_p): Return false if type
11161 code isn't TYPE_CODE_FLT.
11162
68fce50f
YQ
111632017-05-24 Yao Qi <yao.qi@linaro.org>
11164
11165 * alpha-tdep.c (alpha_convert_register_p): Return true if type
11166 length is 4.
11167 (alpha_register_to_value): Remove type length check.
11168 (alpha_value_to_register): Likewise.
11169
88954b49
YQ
111702017-05-24 Yao Qi <yao.qi@linaro.org>
11171
11172 * ia64-tdep.c (ia64_convert_register_p): Check type's code is
11173 TYPE_CODE_FLT.
11174
e3ec9b69
YQ
111752017-05-24 Yao Qi <yao.qi@linaro.org>
11176
11177 * m68k-tdep.c (m68k_convert_register_p): Check type's code is
11178 TYPE_CODE_FLT or not.
11179
cdd238da
YQ
111802017-05-24 Yao Qi <yao.qi@linaro.org>
11181
11182 * alpha-tdep.c (alpha_gdbarch_init): Use XCNEW instead of XNEW.
11183 * avr-tdep.c (avr_gdbarch_init): Likewise.
11184 * bfin-tdep.c (bfin_gdbarch_init): Likewise.
11185 * cris-tdep.c (cris_gdbarch_init): Likewise.
11186 * ft32-tdep.c (ft32_gdbarch_init): Likewise.
11187 * lm32-tdep.c (lm32_gdbarch_init): Likewise.
11188 * m32r-tdep.c (m32r_gdbarch_init): Likewise.
11189 * m68hc11-tdep.c (m68hc11_gdbarch_init): Likewise.
11190 * mep-tdep.c (mep_gdbarch_init): Likewise.
11191 * microblaze-tdep.c (microblaze_gdbarch_init): Likewise.
11192 * mips-tdep.c (mips_gdbarch_init): Likewise.
11193 * mn10300-tdep.c (mn10300_gdbarch_init): Likewise.
11194 * moxie-tdep.c (moxie_gdbarch_init): Likewise.
11195 * msp430-tdep.c (msp430_gdbarch_init): Likewise.
11196 * sh64-tdep.c (sh64_gdbarch_init): Likewise.
11197 * v850-tdep.c (v850_gdbarch_init): Likewise.
11198
7a3929c4
YQ
111992017-05-24 Yao Qi <yao.qi@linaro.org>
11200
11201 * selftest-arch.c (tests_with_arch): Call registers_changed
11202 and reinit_frame_cache.
11203 * selftest.c (run_self_tests): Likewise.
11204
f4985dba
YQ
112052017-05-24 Yao Qi <yao.qi@linaro.org>
11206
11207 * rs6000-tdep.c (gdb_print_insn_powerpc): Remove.
11208 (rs6000_gdbarch_init): Don't call set_gdbarch_print_insn.
11209
ab20fa4a
YQ
112102017-05-24 Yao Qi <yao.qi@linaro.org>
11211
11212 * rl78-tdep.c (rl78_gdbarch_init): Don't call
11213 set_gdbarch_print_insn.
11214
f532ab94
YQ
112152017-05-24 Yao Qi <yao.qi@linaro.org>
11216
11217 * h8300-tdep.c (h8300_gdbarch_init): Don't call
11218 set_gdbarch_print_insn.
11219
39503f82
YQ
112202017-05-24 Yao Qi <yao.qi@linaro.org>
11221
11222 * alpha-tdep.c (alpha_gdbarch_init): Don't call
11223 set_gdbarch_print_insn.
11224 * arc-tdep.c (arc_gdbarch_init): Likewise.
11225 * arch-utils.c: include dis-asm.h.
11226 (default_print_insn): New function.
11227 * arch-utils.h (default_print_insn): Declare.
11228 * avr-tdep.c (avr_gdbarch_init): Don't call set_gdbarch_print_insn.
11229 * bfin-tdep.c (bfin_gdbarch_init): Likewise.
11230 * cris-tdep.c (cris_delayed_get_disassembler): Remove.
11231 (cris_gdbarch_init): Don't call set_gdbarch_print_insn.
11232 * frv-tdep.c (frv_gdbarch_init): Likewise.
11233 * ft32-tdep.c (ft32_gdbarch_init): Likewise.
11234 * gdbarch.sh (print_insn): Use default_print_insn.
11235 * gdbarch.c: Regenerated.
11236 * hppa-tdep.c (hppa_gdbarch_init): Likewise.
11237 * iq2000-tdep.c (iq2000_gdbarch_init): Likewise.
11238 * lm32-tdep.c (lm32_gdbarch_init): Likewise.
11239 * m32c-tdep.c (m32c_gdbarch_init): Likewise.
11240 * m32r-tdep.c (m32r_gdbarch_init): Likewise.
11241 * m68hc11-tdep.c (gdb_print_insn_m68hc11): Remove.
11242 (m68hc11_gdbarch_init): Don't call set_gdbarch_print_insn.
11243 * m68k-tdep.c (m68k_gdbarch_init): Likewise.
11244 * m88k-tdep.c (m88k_gdbarch_init): Likewise.
11245 * microblaze-tdep.c (microblaze_gdbarch_init): Likewise.
11246 * mn10300-tdep.c (mn10300_gdbarch_init): Likewise.
11247 * moxie-tdep.c (moxie_gdbarch_init): Likewise.
11248 * msp430-tdep.c (msp430_gdbarch_init): Likewise.
11249 * mt-tdep.c (mt_gdbarch_init): Likewise.
11250 * nds32-tdep.c (nds32_gdbarch_init): Likewise.
11251 * nios2-tdep.c (nios2_print_insn): Remove.
11252 (nios2_gdbarch_init): Don't call set_gdbarch_print_insn.
11253 * rx-tdep.c (rx_gdbarch_init): Likewise.
11254 * s390-linux-tdep.c (s390_gdbarch_init): Likewise.
11255 * score-tdep.c (score_print_insn): Remove.
11256 (score_gdbarch_init): Don't call set_gdbarch_print_insn.
11257 * sh-tdep.c (sh_gdbarch_init): Likewise.
11258 * sh64-tdep.c (sh64_gdbarch_init): Likewise.
11259 * sparc-tdep.c (sparc32_gdbarch_init): Likewise.
11260 * tic6x-tdep.c (tic6x_print_insn): Remove.
11261 (tic6x_gdbarch_init): Don't call set_gdbarch_print_insn.
11262 * tilegx-tdep.c (tilegx_gdbarch_init): Likewise.
11263 * v850-tdep.c (v850_gdbarch_init): Likewise.
11264 * vax-tdep.c (vax_gdbarch_init): Likewise.
11265 * xstormy16-tdep.c (xstormy16_gdbarch_init): Likewise.
11266 * xtensa-tdep.c (xtensa_gdbarch_init): Likewise.
11267
f7241d4f
JB
112682017-05-23 John Baldwin <jhb@FreeBSD.org>
11269
11270 * mips-fbsd-tdep.c (MIPS_PC_REGNUM): Remove.
11271 (MIPS_FP0_REGNUM): Remove.
11272 (MIPS_FSR_REGNUM): Remove.
11273 (mips_fbsd_supply_fpregs): Use mips_regnum.
11274 (mips_fbsd_supply_gregs): Likewise.
11275 (mips_fbsd_collect_fpregs): Likewise.
11276 (mips_fbsd_collect_gregs): Likewise.
11277
d489d81d
JB
112782017-05-23 John Baldwin <jhb@FreeBSD.org>
11279
11280 * mips-fbsd-nat.c (getregs_supplies): Fix upper bound comparison.
11281 (getpfpregs_supplies): New function.
11282 (mips_fbsd_fetch_inferior_registers): Remove early exit and use
11283 getfpregs_supplies.
11284 (mips_fbsd_store_inferior_registers): Likewise.
11285
e11b3cdc
PA
112862017-05-22 Pedro Alves <palves@redhat.com>
11287
11288 * MAINTAINERS (Host/Native): Add John Baldwin as FreeBSD
11289 maintainer.
11290
0f068fb5
AH
112912017-05-22 Alan Hayward <alan.hayward@arm.com>
11292
11293 * ppc-linux-nat.c (fetch_register): Use PPC_MAX_REGISTER_SIZE.
11294 (store_register): Likewise.
11295 * ppc-sysv-tdep.c (ppc_sysv_abi_push_dummy_call): Likewise.
11296 (get_decimal_float_return_value): Likewise.
11297 (do_ppc_sysv_return_value): Likewise.
11298 (ppc64_sysv_abi_push_integer): Likewise.
11299 (ppc64_sysv_abi_push_freg): Likewise.
11300 (ppc64_sysv_abi_return_value_base): Likewise.
11301 (ppc64_sysv_abi_return_value): Likewise.
11302 * rs6000-aix-tdep.c (rs6000_push_dummy_call): Likewise.
11303 * rs6000-lynx178-tdep.c (rs6000_lynx178_push_dummy_call): Likewise.
11304 * rs6000-nat.c: Likewise.
11305 * rs6000-tdep.c (rs6000_register_to_value): Likewise.
11306 (rs6000_value_to_register): Likewise.
11307 * ppc-tdep.h (PPC_MAX_REGISTER_SIZE): Add.
11308
e6cf65f2
TT
113092017-05-21 Tom Tromey <tom@tromey.com>
11310
11311 PR rust/21466:
11312 * rust-lang.c (rust_print_type) <TYPE_CODE_ARRAY>: Print unsized
11313 arrays as "[T]", not "[T; ]".
11314
43cc5389
TT
113152017-05-19 Tom Tromey <tom@tromey.com>
11316
11317 PR rust/21484:
11318 * rust-lang.c (exp_descriptor_rust): New function.
11319 (rust_language_defn): Use it.
11320 * p-lang.c (pascal_language_defn): Update.
11321 * opencl-lang.c (opencl_language_defn): Update.
11322 * objc-lang.c (objc_language_defn): Update.
11323 * m2-lang.c (m2_language_defn): Update.
11324 * language.h (struct language_defn)
11325 <la_watch_location_expression>: New member.
11326 * language.c (unknown_language_defn, auto_language_defn)
11327 (local_language_defn): Update.
11328 * go-lang.c (go_language_defn): Update.
11329 * f-lang.c (f_language_defn): Update.
11330 * d-lang.c (d_language_defn): Update.
11331 * c-lang.h (c_watch_location_expression): Declare.
11332 * c-lang.c (c_watch_location_expression): New function.
11333 (c_language_defn, cplus_language_defn, asm_language_defn)
11334 (minimal_language_defn): Use it.
11335 * breakpoint.c (watch_command_1): Call
11336 la_watch_location_expression.
11337 * ada-lang.c (ada_language_defn): Update.
11338
7a6e7fcc
RO
113392017-05-19 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
11340
6e7e1744
RO
11341 PR tui/21482
11342 * gdb_curses.h (NOMACROS): Define.
11343 (NCURSES_NOMACROS): Define.
11344
113452017-05-19 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
11346
11347 PR tui/21482
7a6e7fcc
RO
11348 * tui/tui-windata.c (tui_erase_data_content): Cast last mvwaddstr
11349 arg to char *.
11350 * tui/tui-wingeneral.c (box_win): Likewise.
11351 * tui/tui-winsource.c (tui_erase_source_content): Likewise.
11352 (tui_show_source_line): Likewise.
11353 (tui_show_exec_info_content): Likewise.
11354
1933fd8e
VM
113552017-05-19 Vladimir Mezentsev <vladimir.mezentsev@oracle.com>
11356
11357 * sparc-tdep.c (sparc_structure_return_p)
11358 (sparc_arg_on_registers_p): New functions.
11359 (sparc32_store_arguments): Use them.
11360 * sparc64-tdep.c (sparc64_16_byte_align_p)
11361 (sparc64_store_floating_fields, sparc64_extract_floating_fields):
11362 Handle TYPE_CODE_ARRAY.
11363
21873064
YQ
113642017-05-17 Yao Qi <yao.qi@linaro.org>
11365
11366 * cli/cli-decode.c (add_alias_cmd): New function.
11367 * command.h (add_alias_cmd): Declare.
11368 * infcmd.c (_initialize_infcmd): Don't call add_com_alias,
11369 instead call add_alias_cmd.
11370
2b351b19
PA
113712017-05-17 Pedro Alves <palves@redhat.com>
11372
11373 * Makefile.in (nat_extra_makefile_frag): Rename to ...
11374 (nat_makefile_frag): ... this. All references updated.
11375 * configure.ac: Likewise.
11376 * configure.nat: Likewise. Enhance comments.
11377 * configure: Regenerate.
11378
5f2ad7a3
RO
113792017-05-15 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
11380
11381 * procfs.c (procfs_create_inferior): Change prototype to match
11382 definition.
11383
adf3dde5
EZ
113842017-05-13 Eli Zaretskii <eliz@gnu.org>
11385
11386 * tui/tui.c (tui_enable): Cast "unknown" to 'char *' to avoid a
11387 C++ compiler warning.
11388
6830f270
TT
113892017-05-12 Tom Tromey <tom@tromey.com>
11390
11391 PR rust/21483:
11392 * rust-lang.c (rust_evaluate_subexp) <STRUCTOP_STRUCT>: Don't
11393 recurse, just call value_struct_elt directly.
11394
68f2f2e3
TT
113952017-05-12 Tom Tromey <tom@tromey.com>
11396
11397 * rust-lang.c (rust_dump_subexp_body) <STRUCTOP_ANONYMOUS,
11398 OP_RUST_ARRAY>: Fix.
11399
256afbc2
TT
114002017-05-12 Tom Tromey <tom@tromey.com>
11401
11402 * rust-lang.c (rust_print_subexp): Replace "return" with "break".
11403
94bb8dfe
YQ
114042017-05-09 Yao Qi <yao.qi@linaro.org>
11405
11406 * regcache.c: Include <forward_list>.
11407 (struct regcache_list): Remove.
11408 (current_regcache): Update.
11409 (get_thread_arch_aspace_regcache): Update for std::forward_list.
11410 (regcache_thread_ptid_changed): Likewise.
11411 (registers_changed_ptid): Likewise.
11412 (current_regcache_size): Likewise.
11413
8248946c
YQ
114142017-05-09 Yao Qi <yao.qi@linaro.org>
11415
11416 * regcache.c [GDB_SELF_TEST]: Include selftest.h.
11417 (current_regcache_size): New function.
11418 (current_regcache_test): New function.
11419 (_initialize_regcache) [GDB_SELF_TEST]: Register the unit test.
11420
313c5961
AH
114212017-05-08 Alan Hayward <alan.hayward@arm.com>
11422
11423 * mips-tdep.c (mips_o32_return_value): Remove unused buffer.
11424 (print_gp_register_row): Use get_frame_register_value.
11425
27bfc1d1
AH
114262017-05-08 Alan Hayward <alan.hayward@arm.com>
11427
11428 * mips-linux-tdep.c (mips_supply_gregset): Use raw_supply_zeroed.
11429 (mips_supply_fpregset): Likewise.
11430 (mips64_supply_gregset): Likewise.
11431
146e6c5c
AH
114322017-05-08 Alan Hayward <alan.hayward@arm.com>
11433
11434 * mn10300-linux-tdep.c (am33_supply_gregset_method): Use
11435 regcache->raw_supply_zeroed.
11436
e50f25ec
SDJ
114372017-05-06 Sergio Durigan Junior <sergiodj@redhat.com>
11438
11439 * configure.nat: Rearrange 'case' statements to match
11440 host before cpu.
11441
21ea5acd
SDJ
114422017-05-06 Sergio Durigan Junior <sergiodj@redhat.com>
11443
11444 * Makefile.in: Remove "@host_makefile_frag@". Add variables
11445 NAT_FILE, NATDEPFILES, NAT_CDEPS, LOADLIBES, MH_CFLAGS, XM_CLIBS,
11446 NAT_GENERATED_FILES, HAVE_NATIVE_GCORE_HOST. Add
11447 "@nat_extra_makefile_frag@".
11448 (Makefile): Remove dependency on "@frags@".
11449 ($(GNULIB_BUILDDIR)/Makefile): Likewise.
11450 (data-directory/Makefile): Likewise.
11451 * config/aarch64/linux.mh: Deleted; moved contents to
11452 "gdb/configure.nat".
11453 * config/alpha/alpha-linux.mh: Likewise.
11454 * config/alpha/nbsd.mh: Likewise.
11455 * config/arm/linux.mh: Likewise.
11456 * config/arm/nbsdelf.mh: Likewise.
11457 * config/i386/cygwin.mh: Likewise.
11458 * config/i386/cygwin64.mh: Likewise.
11459 * config/i386/darwin.mh: Likewise.
11460 * config/i386/fbsd.mh: Likewise.
11461 * config/i386/fbsd64.mh: Likewise.
11462 * config/i386/go32.mh: Likewise.
11463 * config/i386/i386gnu.mh: Likewise.
11464 * config/i386/i386sol2.mh: Likewise.
11465 * config/i386/linux.mh: Likewise.
11466 * config/i386/linux64.mh: Likewise.
11467 * config/i386/mingw.mh: Likewise.
11468 * config/i386/mingw64.mh: Likewise.
11469 * config/i386/nbsd64.mh: Likewise.
11470 * config/i386/nbsdelf.mh: Likewise.
11471 * config/i386/nto.mh: Likewise.
11472 * config/i386/obsd.mh: Likewise.
11473 * config/i386/obsd64.mh: Likewise.
11474 * config/i386/sol2-64.mh: Likewise.
11475 * config/ia64/linux.mh: Likewise.
11476 * config/m32r/linux.mh: Likewise.
11477 * config/m68k/linux.mh: Likewise.
11478 * config/m68k/nbsdelf.mh: Likewise.
11479 * config/m68k/obsd.mh: Likewise.
11480 * config/m88k/obsd.mh: Likewise.
11481 * config/mips/fbsd.mh: Likewise.
11482 * config/mips/linux.mh: Likewise.
11483 * config/mips/nbsd.mh: Likewise.
11484 * config/mips/obsd64.mh: Likewise.
11485 * config/pa/linux.mh: Likewise.
11486 * config/pa/nbsd.mh: Likewise.
11487 * config/pa/obsd.mh: Likewise.
11488 * config/powerpc/aix.mh: Likewise.
11489 * config/powerpc/fbsd.mh: Likewise.
11490 * config/powerpc/linux.mh: Likewise.
11491 * config/powerpc/nbsd.mh: Likewise.
11492 * config/powerpc/obsd.mh: Likewise.
11493 * config/powerpc/ppc64-linux.mh: Likewise.
11494 * config/powerpc/spu-linux.mh: Likewise.
11495 * config/s390/linux.mh: Likewise.
11496 * config/sh/nbsd.mh: Likewise.
11497 * config/sparc/fbsd.mh: Likewise.
11498 * config/sparc/linux.mh: Likewise.
11499 * config/sparc/linux64.mh: Likewise.
11500 * config/sparc/nbsd64.mh: Likewise.
11501 * config/sparc/nbsdelf.mh: Likewise.
11502 * config/sparc/obsd64.mh: Likewise.
11503 * config/sparc/sol2.mh: Likewise.
11504 * config/tilegx/linux.mh: Likewise.
11505 * config/vax/nbsdelf.mh: Likewise.
11506 * config/vax/obsd.mh: Likewise.
11507 * config/xtensa/linux.mh: Likewise.
11508 * config/i386/i386gnu.mn: New file, with excerpts from
11509 "config/i386/i386gnu.mh".
11510 * configure: Regenerate.
11511 * configure.ac: Rewrite code to use "gdb/configure.nat" instead of
11512 *.mh files under "gdb/config".
11513 * configure.nat: New file, with contents from the
11514 "gdb/config/*/*.mh" files.
11515
7ed1acaf
TW
115162017-05-05 Tim Wiederhake <tim.wiederhake@intel.com>
11517
11518 * btrace.c (btrace_clear): Free insn vector.
11519
e13cb306
PA
115202017-05-05 Pedro Alves <palves@redhat.com>
11521
11522 * warning.m4 (build_warnings): Add -Wno-error=maybe-uninitialized.
11523 * configure: Regenerate.
11524
5ed8105e
PA
115252017-05-04 Pedro Alves <palves@redhat.com>
11526
11527 * Makefile.in (SFILES): Add progspace-and-thread.c.
11528 (HFILES_NO_SRCDIR): Add progspace-and-thread.h.
11529 (COMMON_OBS): Add progspace-and-thread.o.
11530 * breakpoint.c: Include "progspace-and-thread.h".
11531 (update_inserted_breakpoint_locations)
11532 (insert_breakpoint_locations, create_longjmp_master_breakpoint):
11533 Use scoped_restore_current_pspace_and_thread.
11534 (create_std_terminate_master_breakpoint): Use
11535 scoped_restore_current_program_space.
11536 (remove_breakpoint): Use scoped_restore_current_pspace_and_thread.
11537 (print_breakpoint_location): Use
11538 scoped_restore_current_program_space.
11539 (bp_loc_is_permanent): Use
11540 scoped_restore_current_pspace_and_thread.
11541 (resolve_sal_pc): Use scoped_restore_current_pspace_and_thread.
11542 (download_tracepoint_locations): Use
11543 scoped_restore_current_pspace_and_thread.
11544 (breakpoint_re_set): Use scoped_restore_current_pspace_and_thread.
11545 * exec.c (exec_close_1): Use scoped_restore_current_program_space.
11546 (enum step_over_calls_kind): Moved from inferior.h.
11547 (class scoped_restore_current_thread): New class.
11548 * gdbthread.h (make_cleanup_restore_current_thread): Delete
11549 declaration.
11550 (scoped_restore_current_thread): New class.
11551 * infcmd.c: Include "common/gdb_optional.h".
11552 (continue_1, proceed_after_attach): Use
11553 scoped_restore_current_thread.
11554 (notice_new_inferior): Use scoped_restore_current_thread.
11555 * inferior.c: Include "progspace-and-thread.h".
11556 (restore_inferior, save_current_inferior): Delete.
11557 (add_inferior_command, clone_inferior_command): Use
11558 scoped_restore_current_pspace_and_thread.
11559 * inferior.h (scoped_restore_current_inferior): New class.
11560 * infrun.c: Include "progspace-and-thread.h" and
11561 "common/gdb_optional.h".
11562 (follow_fork_inferior): Use
11563 scoped_restore_current_pspace_and_thread.
11564 (scoped_restore_exited_inferior): New class.
11565 (handle_vfork_child_exec_or_exit): Use
11566 scoped_restore_exited_inferior,
11567 scoped_restore_current_pspace_and_thread,
11568 scoped_restore_current_thread and scoped_restore.
11569 (fetch_inferior_event): Use scoped_restore_current_thread.
11570 * linespec.c (decode_line_full, decode_line_1): Use
11571 scoped_restore_current_program_space.
11572 * mi/mi-main.c: Include "progspace-and-thread.h".
11573 (exec_continue): Use scoped_restore_current_thread.
11574 (mi_cmd_exec_run): Use scoped_restore_current_pspace_and_thread.
11575 (mi_cmd_trace_frame_collected): Use scoped_restore_current_thread.
11576 * proc-service.c (ps_pglobal_lookup): Use
11577 scoped_restore_current_program_space.
11578 * progspace-and-thread.c: New file.
11579 * progspace-and-thread.h: New file.
11580 * progspace.c (release_program_space, clone_program_space): Use
11581 scoped_restore_current_program_space.
11582 (restore_program_space, save_current_program_space)
11583 (save_current_space_and_thread): Delete.
11584 (switch_to_program_space_and_thread): Moved to
11585 progspace-and-thread.c.
11586 * progspace.h (save_current_program_space)
11587 (save_current_space_and_thread): Delete declarations.
11588 (scoped_restore_current_program_space): New class.
11589 * remote.c (remote_btrace_maybe_reopen): Use
11590 scoped_restore_current_thread.
11591 * symtab.c: Include "progspace-and-thread.h".
11592 (skip_prologue_sal): Use scoped_restore_current_pspace_and_thread.
11593 * thread.c (print_thread_info_1): Use
11594 scoped_restore_current_thread.
11595 (struct current_thread_cleanup): Delete.
11596 (do_restore_current_thread_cleanup)
11597 (restore_current_thread_cleanup_dtor): Rename/convert both to ...
11598 (scoped_restore_current_thread::~scoped_restore_current_thread):
11599 ... this new dtor.
11600 (make_cleanup_restore_current_thread): Rename/convert to ...
11601 (scoped_restore_current_thread::scoped_restore_current_thread):
11602 ... this new ctor.
11603 (thread_apply_all_command): Use scoped_restore_current_thread.
11604 (thread_apply_command): Use scoped_restore_current_thread.
11605 * tracepoint.c (tdump_command): Use scoped_restore_current_thread.
11606 * varobj.c (value_of_root_1): Use scoped_restore_current_thread.
11607
f6223dbb
PA
116082017-05-04 Pedro Alves <palves@redhat.com>
11609
11610 * thread.c (make_cleanup_restore_current_thread): Move
11611 find_thread_ptid call before the is_stopped call. Assert that the
11612 thread is found. Replace is_stopped call by checking the thread's
11613 state directly. Remove unnecessary NULL-thread check.
11614
3c3ae77e
PA
116152017-05-04 Pedro Alves <palves@redhat.com>
11616
11617 * corelow.c (thread_section_name): New class.
11618 (get_core_register_section, get_core_siginfo): Use it.
11619
45eba0ab
AA
116202017-05-04 Andreas Arnez <arnez@linux.vnet.ibm.com>
11621
11622 * corelow.c (sniff_core_bfd): Remove extra semicolon.
11623 (get_core_register_section): Remove xfree of NULL pointer.
11624
f81fdd35
AH
116252017-05-03 Alan Hayward <alan.hayward@arm.com>
11626
11627 * frv-linux-tdep.c (frv_linux_supply_gregset): Use raw_supply_zeroed.
11628 * regcache.c (regcache::raw_supply_zeroed): New function.
11629 * regcache.h (regcache::raw_supply_zeroed): New declaration.
11630
35837774
SM
116312017-05-03 Simon Marchi <simon.marchi@ericsson.com>
11632
11633 * gdbarch.sh: Remove commented out definition of
11634 TARGET_CHAR_BIT.
11635 * gdbarch.h: Re-generate.
11636
c94fee56
SDJ
116372017-05-03 Sergio Durigan Junior <sergiodj@redhat.com>
11638
11639 * configure: Regenerate.
11640
d17f7b36
SM
116412017-05-02 Simon Marchi <simon.marchi@ericsson.com>
11642
11643 * solib-target.c (solib_target_relocate_section_addresses):
11644 Remove num_section_bases, num_bases, segment_bases variables.
11645
b560ebd6
SM
116462017-05-02 Simon Marchi <simon.marchi@polymtl.ca>
11647
11648 * common/gdb_vecs.h (DEF_VEC_I (CORE_ADDR)): Remove.
11649
f2f46dfc
SM
116502017-05-02 Simon Marchi <simon.marchi@polymtl.ca>
11651
11652 * solib-target.c: Include <vector>
11653 (struct lm_info_target) <~lm_info_target>: Remove.
11654 <segment_bases, section_bases>: Change type to
11655 std::vector<CORE_ADDR>.
11656 (library_list_start_segment, library_list_start_section,
11657 library_list_end_library,
11658 solib_target_relocate_section_addresses): Adjust.
11659
a0ff9e1a
SM
116602017-05-02 Simon Marchi <simon.marchi@polymtl.ca>
11661
11662 * gdbarch.sh (software_single_step): Change return type to
11663 std::vector<CORE_ADDR>.
11664 * gdbarch.c, gdbarch.h: Re-generate.
11665 * arch/arm-get-next-pcs.c (thumb_deal_with_atomic_sequence_raw):
11666 Adjust.
11667 (arm_deal_with_atomic_sequence_raw): Adjust.
11668 (thumb_get_next_pcs_raw): Adjust.
11669 (arm_get_next_pcs_raw): Adjust.
11670 (arm_get_next_pcs): Adjust.
11671 * arch/arm-get-next-pcs.h (arm_get_next_pcs): Adjust.
11672 * aarch64-tdep.c (aarch64_software_single_step): Adjust.
11673 * alpha-tdep.c (alpha_deal_with_atomic_sequence): Adjust.
11674 (alpha_software_single_step): Adjust.
11675 * alpha-tdep.h (alpha_software_single_step): Adjust.
11676 * arm-linux-tdep.c (arm_linux_software_single_step): Adjust.
11677 * arm-tdep.c (arm_software_single_step): Adjust.
11678 (arm_breakpoint_kind_from_current_state): Adjust.
11679 * arm-tdep.h (arm_software_single_step): Adjust.
11680 * breakpoint.c (insert_single_step_breakpoint): Adjust.
11681 * cris-tdep.c (cris_software_single_step): Adjust.
11682 * mips-tdep.c (mips_deal_with_atomic_sequence): Adjust.
11683 (micromips_deal_with_atomic_sequence): Adjust.
11684 (deal_with_atomic_sequence): Adjust.
11685 (mips_software_single_step): Adjust.
11686 * mips-tdep.h (mips_software_single_step): Adjust.
11687 * moxie-tdep.c (moxie_software_single_step): Adjust.
11688 * nios2-tdep.c (nios2_software_single_step): Adjust.
11689 * ppc-tdep.h (ppc_deal_with_atomic_sequence): Adjust.
11690 * rs6000-aix-tdep.c (rs6000_software_single_step): Adjust.
11691 * rs6000-tdep.c (ppc_deal_with_atomic_sequence): Adjust.
11692 * s390-linux-tdep.c (s390_software_single_step): Adjust.
11693 * sparc-tdep.c (sparc_software_single_step): Adjust.
11694 * spu-tdep.c (spu_software_single_step): Adjust.
11695 * tic6x-tdep.c (tic6x_software_single_step): Adjust.
11696
ea480a30
SM
116972017-05-02 Simon Marchi <simon.marchi@polymtl.ca>
11698
11699 * gdbarch.sh: Use semi-colon as field separator instead of colon.
11700 * gdbarch.h: Re-generate.
11701
d050f7d7
TW
117022017-05-01 Tim Wiederhake <tim.wiederhake@intel.com>
11703
11704 * Makefile.in (SUBDIR_PYTHON_OBS): Add py-instruction.o.
11705 (SUBDIR_PYTHON_SRCS): Add py-instruction.c.
11706 * python/py-instruction.c, python/py-instruction.h: New file.
11707 * python/py-record.c: Add py-instruction.h include.
11708 (gdbpy_initialize_record): Make gdb.Instruction a super class of
11709 gdb.RecordInstruction.
11710 * python/python-internal.h: Add gdbpy_initialize_instruction
11711 declaration.
11712 * python/python.c (do_start_initialization): Add
11713 gdbpy_initialize_instruction.
11714
14f819c8
TW
117152017-05-01 Tim Wiederhake <tim.wiederhake@intel.com>
11716
11717 * python/py-record-btrace.c (BTPY_REQUIRE_VALID_CALL, btpy_call_type):
11718 Remove.
11719 (btrace_func_from_recpy_func): New function.
11720 (btpy_call_new, btpy_number, btpy_hash, btpy_richcompare): Remove.
11721 (btpy_call_level, btpy_call_symbol, btpy_call_instructions,
11722 btpy_call_up, btpy_call_prev_sibling, btpy_call_next_sibling): Rename to ...
11723 (recpy_bt_func_level, recpy_bt_func_symbol, recpy_bt_func_instructions,
11724 recpy_bt_func_up, recpy_bt_func_prev, recpy_bt_func_next): This.
11725 Also, use new helper functions.
11726 (btpy_list_item): Use new helper functions.
11727 (recpy_bt_function_call_history): Use new type name.
11728 (btpy_call_getset): Remove.
11729 (gdbpy_initialize_btrace): Remove code to initialize
11730 gdb.BtraceFunctionCall.
11731 * python/py-record-btrace.h (recpy_bt_func_number, recpy_btb_func_level,
11732 recpy_btb_func_symbol, recpy_bt_func_instructions, recpy_bt_func_up,
11733 recpy_bt_func_prev, recpy_bt_func_next): New export.
11734 * python/py-record.c (recpy_func_type): New static object.
11735 (recpy_func_new, recpy_func_level, recpy_func_symbol,
11736 recpy_func_instructions, recpy_func_up, recpy_func_prev,
11737 recpy_func_next): New function.
11738 (recpy_element_hash, recpy_element_richcompare): Updated comment.
11739 (recpy_func_getset): New static object.
11740 (gdbpy_initialize_record): Add code to initialize gdb.RecordInstruction.
11741 * python/py-record.h (recpy_func_type, recpy_func_new): New export.
11742
0ed5da75
TW
117432017-05-01 Tim Wiederhake <tim.wiederhake@intel.com>
11744
11745 * python/py-record-btrace.c (BTPY_REQUIRE_VALID_INSN): Remove.
11746 (btpy_object, btpy_insn_type, btpy_new): Remove.
11747 (btpy_list_object): Use gdb.RecordInstruction type instead of
11748 gdb.BtraceInstruction type.
11749 (btrace_insn_from_recpy_insn): New function.
11750 (btpy_insn_or_gap_new): Adjust comment. Use recpy_insn_new instead of
11751 btpy_new.
11752 (btpy_call_new, btpy_list_item): Do not use btpy_new anymore.
11753 (btpy_number, btpy_hash, btpy_call_level, btpy_call_symbol,
11754 btpy_call_instructions, btpy_call_up, btpy_call_prev_sibling,
11755 btpy_call_next_sibling, btpy_richcompare): Use recpy_element_object
11756 instead of btpy_object.
11757 (btpy_insn_sal, btpy_insn_pc, btpy_insn_size, btpy_insn_is_speculative,
11758 btpy_insn_data, btpy_insn_decode): Rename to ...
11759 (recpy_bt_insn_sal, recpy_bt_insn_pc, recpy_bt_insn_size,
11760 recpy_bt_insn_is_speculative, recpy_bt_insn_data,
11761 recpy_bt_insn_decode): This. Also, use new helper functions.
11762 (btpy_list_position, recpy_bt_goto): Use recpy_element_object and
11763 recpy_insn_type.
11764 (btpy_insn_getset): Remove.
11765 (gdbpy_initialize_btrace): Remove code to initialize
11766 gdb.BtraceInstruction. Use recpy_element_object.
11767 * python/py-record-btrace.h (recpy_bt_insn_number, recpy_bt_insn_sal,
11768 recpy_bt_insn_pc, recpy_bt_insn_data, recpy_bt_insn_decoded,
11769 recpy_bt_insn_size, recpy_bt_insn_is_speculative): New export.
11770 * python/py-record.c (recpy_insn_type): New static object.
11771 (recpy_insn_new, recpy_insn_sal, recpy_insn_pc, recpy_insn_data,
11772 recpy_insn_decoded, recpy_insn_size, recpy_insn_is_speculative,
11773 recpy_element_number, recpy_element_hash, recpy_element_richcompare):
11774 New function.
11775 (recpy_insn_getset): New static object.
11776 (gdbpy_initialize_record): Initialize gdb.RecordInstruction.
11777 * python/py-record.h (recpy_element_object): New typedef.
11778 (recpy_insn_type, recpy_insn_new): New export.
11779
913aeadd
TW
117802017-05-01 Tim Wiederhake <tim.wiederhake@intel.com>
11781
11782 * py-record-btrace.c (btpy_insn_new): Removed.
11783 (btpy_insn_or_gap_new): New function.
11784 (btpy_insn_error): Removed.
11785 (btpy_insn_sal, btpy_insn_pc, btpy_insn_size, btpy_insn_is_speculative,
11786 btpy_insn_data, btpy_insn_decode): Remove code path for gaps.
11787 (recpy_bt_replay_position, recpy_bt_begin, recpy_bt_end): Call
11788 btpy_insn_or_gap_new instead of btpy_insn_new.
11789 (btpy_insn_getset): Remove btpy_insn_error.
11790 * py-record.c (recpy_gap_type): New static object.
11791 (recpy_gap_object): New typedef.
11792 (recpy_gap_new, recpy_gap_number, recpy_gap_reason_code,
11793 recpy_gap_reason_string): New function.
11794 (recpy_gap_getset): New static object.
11795 (gdbpy_initialize_record): Initialize gdb.RecordGap type.
11796 * py-record.h (recpy_gap_new): New export.
11797
a3be24ad
TW
117982017-05-01 Tim Wiederhake <tim.wiederhake@intel.com>
11799
11800 * python/py-record.c (recpy_ptid): Remove.
11801 (recpy_record_getset): Remove recpy_ptid.
11802
ae20e79a
TW
118032017-05-01 Tim Wiederhake <tim.wiederhake@intel.com>
11804
11805 * btrace.c (btrace_fetch): Set inferior_ptid.
11806 * python/py-record-btrace.c: Add "py-record.h" include.
11807 (recpy_bt_format, recpy_bt_replay_position, recpy_bt_begin,
11808 recpy_bt_end, recpy_bt_instruction_history,
11809 recpy_bt_function_call_history, recpy_bt_goto): Use ptid stored
11810 in gdb.Record object instead of current ptid.
11811 * python/py-record.c: Include new "py-record.h" file.
11812 (recpy_record_object): Moved to py-record.h.
11813 * python/py-record.h: New file.
11814
8d0050ea
TW
118152017-05-01 Tim Wiederhake <tim.wiederhake@intel.com>
11816
11817 * python/py-record-btrace.c (BTPY_REQUIRE_VALID_INSN,
11818 BTPY_REQUIRE_VALID_CALL, recpy_bt_function_call_history): Fix
11819 indentation.
11820
3f380b50
JB
118212017-05-01 Joel Brobecker <brobecker@adacore.com>
11822
11823 * MAINTAINERS: Move Daniel Jacobowitz and Mark Kettenis to
11824 the past maintainers section.
11825
07495424
YQ
118262017-04-28 Yao Qi <yao.qi@linaro.org>
11827
11828 * infcmd.c (get_return_value): Use regcache ctor, and remove
11829 cleanup.
11830
deb1fa3e
YQ
118312017-04-28 Yao Qi <yao.qi@linaro.org>
11832 Pedro Alves <palves@redhat.com>
11833
11834 * regcache.c (regcache::regcache): New tag dispatch ctor.
11835 (do_cooked_read): Moved above.
11836 (regcache_dup): Use the tag dispatch ctor..
11837 * regcache.h (regcache): Declare ctor, delete copy ctor and
11838 assignment operator, remove friend regcache_dup.
11839
b421c83c
YQ
118402017-04-28 Yao Qi <yao.qi@linaro.org>
11841
11842 * regcache.c (regcache_dup): Assert !src->m_readonly_p and
11843 call method save instead of regcache_cpy.
11844 * regcache.h (struct regcache): Make regcache_dup a friend.
11845
ef79d9a3
YQ
118462017-04-28 Yao Qi <yao.qi@linaro.org>
11847
11848 * regcache.c (struct regcache): Move to regcache.h
11849 (regcache::arch): New method.
11850 (regcache_get_ptid): Update.
11851 (get_regcache_arch): Call arch method.
11852 (get_regcache_aspace): Call method aspace.
11853 (register_buffer): Change it to method.
11854 (regcache_save): Change it to regcache::save.
11855 (regcache_restore): Likewise.
11856 (regcache_cpy_no_passthrough): Remove the declaration.
11857 (regcache_cpy): Call methods restore and cpy_no_passthrough.
11858 (regcache_cpy_no_passthrough): Change it to method
11859 cpy_no_passthrough.
11860 (regcache_register_status): Change it to method
11861 get_register_status.
11862 (regcache_invalidate): Change it to method invalidate.
11863 (regcache_thread_ptid_changed): Use methods ptid and set_ptid.
11864 (regcache_raw_update): Change it to method raw_update.
11865 (regcache_raw_read): Likewise.
11866 (regcache_raw_read_signed): Likewise.
11867 (regcache_raw_read_unsigned): Likewise.
11868 (regcache_raw_write_signed): Likewise.
11869 (regcache_raw_write_unsigned): Likewise.
11870 (regcache_cooked_read): Likewise.
11871 (regcache_cooked_read_value): Likewise.
11872 (regcache_cooked_read_signed): Likewise.
11873 (regcache_cooked_read_unsigned): Likewise.
11874 (regcache_cooked_write_signed): Likewise.
11875 (regcache_cooked_write_unsigned): Likewise.
11876 (regcache_raw_set_cached_value): Likewise.
11877 (regcache_raw_write): Likewise.
11878 (regcache_cooked_write): Likewise.
11879 (regcache_xfer_part): Likewise.
11880 (regcache_raw_read_part): Likewise.
11881 (regcache_raw_write_part): Likewise.
11882 (regcache_cooked_read_part): Likewise.
11883 (regcache_cooked_write_part): Likewise.
11884 (regcache_raw_supply): Likewise.
11885 (regcache_raw_collect): Likewise.
11886 (regcache_transfer_regset): Likewise.
11887 (regcache_supply_regset): Likewise.
11888 (regcache_collect_regset): Likewise.
11889 (regcache_debug_print_register): Likewise.
11890 (enum regcache_dump_what): Move it to regcache.h.
11891 (regcache_dump): Change it to method dump.
11892 * regcache.h (enum regcache_dump_what): New.
11893 (class regcache): New.
11894 * target.c (target_fetch_registers): Call method
11895 debug_print_register.
11896 (target_store_registers): Likewise.
11897
f8fdb78e
SM
118982017-04-28 Simon Marchi <simon.marchi@ericsson.com>
11899
11900 * windows-nat.c (struct lm_info_windows): Initialize field.
11901 (windows_make_so): Allocate lm_info_windows with new.
11902 (windows_free_so): Free lm_info_windows with delete.
11903
9ccbfd7b
SM
119042017-04-28 Simon Marchi <simon.marchi@ericsson.com>
11905
11906 * solib-darwin.c (struct lm_info_darwin): Initialize field.
11907 (darwin_current_sos): Allocate lm_info_darwin with new, remove
11908 cleanup.
11909 (darwin_free_so): Free lm_info_darwin with delete.
11910
76e75227
SM
119112017-04-28 Simon Marchi <simon.marchi@ericsson.com>
11912
11913 * solib-svr4.h (struct lm_info_svr4): Initialize fields.
11914 <l_addr_p>: Change type to bool.
11915 * solib-svr4.c (lm_info_read): Allocate lm_info_svr4 with new.
11916 (svr4_free_so): Free lm_info_svr4 with delete.
11917 (svr4_copy_library_list): Replace memcpy with call to copy
11918 constructor.
11919 (library_list_start_library, svr4_default_sos): Allocate
11920 lm_info_svr4 with new.
11921
51046d9e
SM
119222017-04-28 Simon Marchi <simon.marchi@ericsson.com>
11923
11924 * solib-target.c (struct lm_info_target): Add destructor,
11925 initialize fields.
11926 <name>: Change type to std::string.
11927 (library_list_start_library): Allocate lm_info_target with new.
11928 (solib_target_free_library_list): Free lm_info_target with
11929 delete.
11930 (solib_target_current_sos): Adapt to std::string.
11931 (solib_target_free_so): Free lm_info_target with delete.
11932
4023ae76
SM
119332017-04-28 Simon Marchi <simon.marchi@ericsson.com>
11934
11935 * solib-frv.c (struct lm_info_frv): Add destructor, initialize
11936 fields.
11937 (frv_current_sos): Allocate lm_info_frv with new.
11938 (frv_relocate_main_executable): Free lm_info_frv with delete,
11939 allocate with new.
11940 (frv_clear_solib, frv_free_so): Free lm_info_frv with delete.
11941
af43057b
SM
119422017-04-28 Simon Marchi <simon.marchi@ericsson.com>
11943
11944 * solib-frv.c (struct lm_info_frv): Fix indentation.
11945
b0911207
SM
119462017-04-28 Simon Marchi <simon.marchi@ericsson.com>
11947
11948 * solib-dsbt.c (struct lm_info_dsbt): Add destructor, initialize
11949 map field.
11950 (dsbt_current_sos): Allocate lm_info_dsbt with new.
11951 (dsbt_relocate_main_executable): Free lm_info_dsbt with delete
11952 and allocate with new.
11953 (dsbt_clear_solib, dsbt_free_so): Free lm_info_dsbt with delete.
11954
6c401f72
SM
119552017-04-28 Simon Marchi <simon.marchi@ericsson.com>
11956
11957 * solib-aix.c (struct lm_info_aix): Initialize fields in-class.
11958 <filename, member_name>: Change type to std::string.
11959 (solib_aix_new_lm_info, solib_aix_xfree_lm_info): Remove.
11960 (library_list_start_library): Allocate lm_info_aix with new.
11961 (solib_aix_free_library_list, solib_aix_free_so): Free with delete.
11962 (solib_aix_current_sos): Adapt to std::string, copy lm_info_aix
11963 with copy constructor.
11964
d0e449a1
SM
119652017-04-28 Simon Marchi <simon.marchi@ericsson.com>
11966
11967 * solist.h (struct lm_info): Remove.
11968 (struct lm_info_base): New class.
11969 (struct so_list) <lm_info>: Change type to lm_info_base *.
11970 * nto-tdep.c (struct lm_info): Remove.
11971 (lm_addr): Adjust.
11972 * solib-aix.c (struct lm_info): Rename to ...
11973 (struct lm_info_aix): ... this. Extend lm_info_base.
11974 (lm_info_p): Rename to ...
11975 (lm_info_aix_p): ... this, and adjust.
11976 (solib_aix_new_lm_info, solib_aix_xfree_lm_info,
11977 solib_aix_parse_libraries, library_list_start_library,
11978 solib_aix_free_library_list, solib_aix_parse_libraries,
11979 solib_aix_get_library_list,
11980 solib_aix_relocate_section_addresses, solib_aix_free_so,
11981 solib_aix_get_section_offsets,
11982 solib_aix_solib_create_inferior_hook, solib_aix_current_sos):
11983 Adjust.
11984 (struct solib_aix_inferior_data) <library_list>: Adjust.
11985 * solib-darwin.c (struct lm_info): Rename to ...
11986 (struct lm_info_darwin): ... this. Extend lm_info_base.
11987 (darwin_current_sos, darwin_relocate_section_addresses): Adjust.
11988 * solib-dsbt.c (struct lm_info): Rename to ...
11989 (struct lm_info_dsbt): ... this. Extend lm_info_base.
11990 (struct dsbt_info) <main_executable_lm_info): Adjust.
11991 (dsbt_current_sos, dsbt_relocate_main_executable, dsbt_free_so,
11992 dsbt_relocate_section_addresses): Adjust.
11993 * solib-frv.c (struct lm_info): Rename to ...
11994 (struct lm_info_frv): ... this. Extend lm_info_base.
11995 (main_executable_lm_info): Adjust.
11996 (frv_current_sos, frv_relocate_main_executable, frv_free_so,
11997 frv_relocate_section_addresses, frv_fdpic_find_global_pointer,
11998 find_canonical_descriptor_in_load_object,
11999 frv_fdpic_find_canonical_descriptor): Adjust.
12000 * solib-svr4.c (struct lm_info): Move to solib-svr4.h, renamed
12001 to lm_info_svr4.
12002 (lm_info_read, lm_addr_check, svr4_keep_data_in_core,
12003 svr4_clear_so, svr4_copy_library_list,
12004 library_list_start_library, svr4_default_sos, svr4_read_so_list,
12005 svr4_current_sos, svr4_fetch_objfile_link_map,
12006 solist_update_incremental): Adjust.
12007 * solib-svr4.h (struct lm_info_svr4): Move here from
12008 solib-svr4.c.
12009 * solib-target.c (struct lm_info): Rename to ...
12010 (struct lm_info_target): ... this. Extend lm_info_base.
12011 (lm_info_p): Rename to ...
12012 (lm_info_target_p): ... this.
12013 (solib_target_parse_libraries, library_list_start_segment,
12014 library_list_start_section, library_list_start_library,
12015 library_list_end_library, solib_target_free_library_list,
12016 solib_target_current_sos, solib_target_free_so,
12017 solib_target_relocate_section_addresses): Adjust.
12018 * windows-nat.c (struct lm_info): Rename to ...
12019 (struct lm_info_windows): ... this. Extend lm_info_base.
12020 (windows_make_so, handle_load_dll, handle_unload_dll,
12021 windows_xfer_shared_libraries): Adjust.
12022
434a4023
SM
120232017-04-28 Simon Marchi <simon.marchi@ericsson.com>
12024
12025 * solib-darwin.c (struct darwin_so_list): Remove.
12026 (darwin_current_sos): Allocate an so_list object instead of a
12027 darwin_so_list, separately allocate an lm_info object.
12028 (darwin_free_so): Free lm_info.
12029
428544e8
JB
120302017-04-28 John Baldwin <jhb@FreeBSD.org>
12031
12032 * mips-tdep.c (print_gp_register_row): Replace printf_filtered
12033 with fprintf_filtered.
12034
4621115f
YQ
120352017-04-28 Yao Qi <yao.qi@linaro.org>
12036
12037 * regcache.c (regcache::regcache): New function.
12038 (regcache::~regcache): New function.
12039 (regcache_xmalloc_1): Remove.
12040 (regcache_xmalloc): Call new regcache.
12041 (regcache_xfree): Call delete regcache.
12042 (get_thread_arch_aspace_regcache): Call new regcache.
12043
339053c2
YQ
120442017-04-28 Yao Qi <yao.qi@linaro.org>
12045
12046 * mips-linux-nat.c (mips_linux_new_thread): Use ptid method
12047 lwp instead of ptid_get_lwp.
12048
7974a605
YQ
120492017-04-28 Yao Qi <yao.qi@linaro.org>
12050
12051 * mips-linux-nat.c (mips_linux_new_thread): Get lwpid from
12052 lwp_info instead of getting from inferior_ptid.
12053
e15c3eb4
KS
120542017-04-27 Keith Seitz <keiths@redhat.com>
12055
12056 * gdbtypes.c (LVALUE_REFERENCE_TO_RVALUE_BINDING_BADNESS)
12057 DIFFERENT_REFERENCE_TYPE_BADNESS): Remove.
12058 (CV_CONVERSION_BADNESS): Define.
12059 (rank_one_type): Remove overly restrictive rvalue reference
12060 rank checks.
12061 Add cv-qualifier checks and subranks for type equality.
12062 * gdbtypes.h (REFERENCE_CONVERSION_RVALUE,
12063 REFERENCE_CONVERSION_CONST_LVALUE, CV_CONVERSION_BADNESS,
12064 CV_CONVERSION_CONST, CV_CONVERSION_VOLATILE): Declare.
12065
72bc1d24
SM
120662017-04-27 Simon Marchi <simon.marchi@ericsson.com>
12067
12068 * python/py-inferior.c (inferior_to_inferior_object): Increment reference
12069 count when creating the object.
12070
55bcecda
UW
120712017-04-27 Sangamesh Mallayya <sangamesh.swamy@in.ibm.com>
12072 Ulrich Weigand <uweigand@de.ibm.com>
12073
12074 * xcoffread.c (read_xcoff_symtab): Read correct function auxiliary
12075 entry if xlc -qfuncsect or gcc -ffunction-sections compiler option
12076 is used in AIX.
12077 (read_xcoff_symtab): Handle C_WEAKEXT storage class.
12078 (process_xcoff_symbol): Likewise.
12079 (scan_xcoff_symtab): Likewise.
12080
5c99fcf8
AH
120812017-04-26 Alan Hayward <alan.hayward@arm.com>
12082
12083 * ia64-tdep.c (examine_prologue): Use get_frame_register_unsigned.
12084 (ia64_sigtramp_frame_prev_register): Use read_memory_unsigned_integer.
12085 (ia64_access_reg): Use get_frame_register_unsigned.
12086 (ia64_access_rse_reg): Likewise.
12087 (ia64_libunwind_frame_prev_register): Likewise.
12088
b41c5a85
JW
120892017-04-26 Jiong Wang <jiong.wang@arm.com>
12090
12091 * gdbarch.sh: New gdbarch method execute_dwarf_cfa_vendor_op.
12092 * gdbarch.c: Regenerated.
12093 * gdbarch.h: Regenerated.
12094 * dwarf2-frame.c (dwarf2_frame_state_alloc_regs): Made the
12095 visibility external.
12096 (execute_cfa_program): Call execute_dwarf_cfa_vendor_op for CFI
12097 between DW_CFA_lo_user and DW_CFA_high_user inclusive.
12098 (enum cfa_how_kind): Move to ...
12099 (struct dwarf2_frame_state_reg_info): Likewise.
12100 (struct dwarf2_frame_state): Likewise.
12101 * dwarf2-frame.h: ... here.
12102 (dwarf2_frame_state_alloc_regs): New declaration.
12103 * sparc-tdep.c (sparc_execute_dwarf_cfa_vendor_op): New function.
12104 (sparc32_gdbarch_init): Register execute_dwarf_cfa_vendor_op hook.
12105
c185f580
AH
121062017-04-26 Alan Hayward <alan.hayward@arm.com>
12107
12108 * xtensa-tdep.c (xtensa_pseudo_register_read): Use
12109 regcache_raw_read_unsigned.
12110 (xtensa_pseudo_register_write): Likewise.
12111
19c45594
AH
121122017-04-26 Alan Hayward <alan.hayward@arm.com>
12113
12114 * nds32-tdep.c (nds32_pseudo_register_read): Abort on errors.
12115 (nds32_pseudo_register_write): Likewise.
12116
4658f12e
YQ
121172017-04-25 Yao Qi <yao.qi@linaro.org>
12118
12119 * regcache.c (struct regcache) <readonly_p>: Change its type
12120 to bool.
12121 (regcache_xmalloc_1): Update parameter type and callers update.
12122
d581dda8
YQ
121232017-04-25 Yao Qi <yao.qi@linaro.org>
12124
12125 * aarch64-tdep.c (aarch64_gdbarch_init): Don't call
12126 set_gdbarch_wchar_bit.
12127 * arm-tdep.c (arm_gdbarch_init): Likewise.
12128
debed3db
PA
121292017-04-25 Pedro Alves <palves@redhat.com>
12130
12131 * common/poison.h [!HAVE_IS_TRIVIALLY_COPYABLE] (IsRelocatable)
12132 (BothAreRelocatable, memcopy, memmove): Don't define.
12133 * common/traits.h (__has_feature, HAVE_IS_TRIVIALLY_COPYABLE): New
12134 macros.
12135
b0b92aeb
PA
121362017-04-25 Pedro Alves <palves@redhat.com>
12137
12138 * common/common-defs.h: Include "common/poison.h".
12139 * common/function-view.h: (Not, Or, Requires): Move to traits.h
12140 and adjust.
12141 * common/poison.h: New file.
12142 * common/traits.h: Include <type_traits>.
12143 (Not, Or, Requires): New, moved from common/function-view.h.
12144
16c4d54a
PA
121452017-04-25 Pedro Alves <palves@redhat.com>
12146
12147 * breakpoint.h (struct breakpoint): In-class initialize all
12148 fields. Make boolean fields "bool".
12149 * breakpoint.c (init_raw_breakpoint_without_location): Remove
12150 memset call and initializations no longer necessary.
12151
b5c36682
PA
121522017-04-25 Pedro Alves <palves@redhat.com>
12153
12154 * btrace.c (pt_btrace_insn_flags): Change parameter type to
12155 reference.
12156 (pt_btrace_insn): New function.
12157 (ftrace_add_pt): Remove memset call and use pt_btrace_insn.
12158
5625a286
PA
121592017-04-25 Pedro Alves <palves@redhat.com>
12160
12161 * ada-lang.c (ada_catchpoint_location): Now a "class". Remove
12162 "base" field and inherit from "bp_location" instead. Add
12163 non-default ctor.
12164 (allocate_location_exception): Use new non-default ctor.
12165 * breakpoint.c (get_first_locp_gte_addr): Remove memset call.
12166 (init_bp_location): Convert to ...
12167 (bp_location::bp_location): ... this new ctor, and remove memset
12168 call.
12169 (base_breakpoint_allocate_location): Use the new non-default ctor.
12170 * breakpoint.h (bp_location): Now a class. Declare default and
12171 non-default ctors. In-class initialize all members.
12172 (init_bp_location): Remove declaration.
12173
23bcc18f
PA
121742017-04-25 Pedro Alves <palves@redhat.com>
12175
12176 * common/enum-flags.h (enum_flags): Don't implement copy ctor and
12177 assignment operator.
12178
e1ba3053
YQ
121792017-04-24 Yao Qi <yao.qi@linaro.org>
12180
12181 * doublest.c (convert_doublest_to_floatformat): Call
12182 floatformat_totalsize_bytes.
12183
10f489e5
TT
121842017-04-22 Tom Tromey <tom@tromey.com>
12185
12186 * mi/mi-cmd-file.c (mi_cmd_file_list_shared_libraries): Use
12187 ui_out_emit_list.
12188 * stack.c (print_frame): Use ui_out_emit_list.
12189 * mi/mi-symbol-cmds.c (mi_cmd_symbol_list_lines): Use
12190 ui_out_emit_list.
12191 * mi/mi-main.c (print_one_inferior)
12192 (mi_cmd_data_list_register_names)
12193 (mi_cmd_data_list_register_values, mi_cmd_list_features)
12194 (mi_cmd_list_target_features, mi_cmd_trace_frame_collected): Use
12195 ui_out_emit_list.
12196 * mi/mi-interp.c (mi_on_normal_stop_1): Use ui_out_emit_list.
12197 (mi_output_solib_attribs): Use ui_out_emit_list,
12198 ui_out_emit_tuple.
12199 * mi/mi-cmd-var.c (varobj_update_one): Use ui_out_emit_list.
12200 * mi/mi-cmd-stack.c (mi_cmd_stack_list_frames)
12201 (mi_cmd_stack_list_args, list_args_or_locals): Use
12202 ui_out_emit_list.
12203 * disasm.c (do_assembly_only): Use ui_out_emit_list.
12204 * breakpoint.c (print_solib_event, output_thread_groups): Use
12205 ui_out_emit_list.
12206
0092b74d
TT
122072017-04-22 Tom Tromey <tom@tromey.com>
12208
12209 * mi/mi-main.c (print_variable_or_computed): Use ui_out_emit_tuple.
12210 * mi/mi-cmd-var.c (varobj_update_one): Use ui_out_emit_tuple.
12211 * mi/mi-cmd-stack.c (list_arg_or_local): Use ui_out_emit_tuple.
12212
a14a62dd
TT
122132017-04-22 Tom Tromey <tom@tromey.com>
12214
12215 * tracepoint.c (tvariables_info_1)
12216 (print_one_static_tracepoint_marker): Use ui_out_emit_tuple.
12217
46b9c129
TT
122182017-04-22 Tom Tromey <tom@tromey.com>
12219
12220 * stack.c (print_frame_arg): Use ui_out_emit_tuple,
12221 annotate_arg_emitter.
12222 * breakpoint.c (print_mention_watchpoint)
12223 (print_mention_masked_watchpoint): Use ui_out_emit_tuple.
12224 * annotate.h (struct annotate_arg_emitter): New.
12225
2e783024
TT
122262017-04-22 Tom Tromey <tom@tromey.com>
12227
12228 * record-btrace.c (record_btrace_insn_history)
12229 (record_btrace_insn_history_range, record_btrace_call_history)
12230 (record_btrace_call_history_range): Use ui_out_emit_tuple.
12231 * thread.c (do_captured_list_thread_ids, print_thread_info_1): Use
12232 ui_out_emit_tuple.
12233 * stack.c (print_frame_info): Use ui_out_emit_tuple.
12234 * solib.c (info_sharedlibrary_command): Use ui_out_emit_tuple.
12235 * skip.c (skip_info): Use ui_out_emit_tuple.
12236 * remote.c (show_remote_cmd): Use ui_out_emit_tuple.
12237 * progspace.c (print_program_space): Use ui_out_emit_tuple.
12238 * probe.c (info_probes_for_ops): Use ui_out_emit_tuple.
12239 * osdata.c (info_osdata): Use ui_out_emit_tuple.
12240 * mi/mi-symbol-cmds.c (mi_cmd_symbol_list_lines): Use
12241 ui_out_emit_tuple.
12242 * mi/mi-main.c (print_one_inferior, list_available_thread_groups)
12243 (output_register, mi_cmd_data_read_memory)
12244 (mi_cmd_data_read_memory_bytes, mi_load_progress)
12245 (mi_cmd_trace_frame_collected): Use ui_out_emit_tuple.
12246 * mi/mi-cmd-var.c (mi_cmd_var_list_children, varobj_update_one):
12247 Use ui_out_emit_tuple.
12248 * mi/mi-cmd-stack.c (mi_cmd_stack_list_args): Use
12249 ui_out_emit_tuple.
12250 * mi/mi-cmd-info.c (mi_cmd_info_ada_exceptions)
12251 (mi_cmd_info_gdb_mi_command): Use ui_out_emit_tuple.
12252 * linux-thread-db.c (info_auto_load_libthread_db): Use
12253 ui_out_emit_tuple.
12254 * inferior.c (print_inferior): Use ui_out_emit_tuple.
12255 * gdb_bfd.c (print_one_bfd): Use ui_out_emit_tuple.
12256 * disasm.c (do_mixed_source_and_assembly_deprecated)
12257 (do_mixed_source_and_assembly): Use ui_out_emit_tuple.
12258 * cp-abi.c (list_cp_abis): Use ui_out_emit_tuple.
12259 * cli/cli-setshow.c (cmd_show_list): Use ui_out_emit_tuple.
12260 * breakpoint.c (print_one_breakpoint_location)
12261 (print_one_breakpoint): Use ui_out_emit_tuple.
12262 * auto-load.c (print_script, info_auto_load_cmd): Use
12263 ui_out_emit_tuple.
12264 * ada-tasks.c (print_ada_task_info): Use ui_out_emit_tuple.
12265
9be21bb4
SM
122662017-04-21 Simon Marchi <simon.marchi@ericsson.com>
12267
12268 * thread.c (print_thread_info_1): Remove dead code.
12269
0d4c07af
JK
122702017-04-21 Jan Kratochvil <jan.kratochvil@redhat.com>
12271
12272 * aarch64-tdep.c (selftests::aarch64_process_record_test): Make it #if
12273 GDB_SELF_TEST.
12274 * arm-tdep.c (selftests::arm_record_test): Likewise.
12275
4daf993d
YQ
122762017-04-21 Yao Qi <yao.qi@linaro.org>
12277
12278 * regcache.c (regcache_restore): Remove argument 2. Replace
12279 argument 3 with regcache. Get register status from
12280 src->register_status and get register contents from
12281 register_buffer (src, regnum).
12282 (regcache_cpy): Update.
12283
a6c21d4a
PA
122842017-04-19 Pedro Alves <palves@redhat.com>
12285
12286 * gdbthread.h (thread): Add missing closing parenthesis in
12287 comment.
12288
3a3fd0fd
PA
122892017-04-19 Pedro Alves <palves@redhat.com>
12290
12291 * common/refcounted-object.h: New file.
12292 * gdbthread.h: Include "common/refcounted-object.h".
12293 (thread_info): Inherit from refcounted_object and add comments.
12294 (thread_info::incref, thread_info::decref)
12295 (thread_info::m_refcount): Delete.
12296 (thread_info::deletable): Use the refcounted_object::refcount()
12297 method.
12298 * inferior.c (current_inferior_): Add comment.
12299 (set_current_inferior): Increment/decrement refcounts.
12300 (prune_inferiors, remove_inferior_command): Skip inferiors marked
12301 not-deletable instead of comparing with the current inferior.
12302 (initialize_inferiors): Increment the initial inferior's refcount.
12303 * inferior.h (struct inferior): Forward declare.
12304 Include "common/refcounted-object.h".
12305 (current_inferior, set_current_inferior): Move declaration to
12306 before struct inferior's definition, and fix comment.
12307 (inferior): Inherit from refcounted_object. Add comments.
12308 * thread.c (switch_to_thread_no_regs): Reference the thread's
12309 inferior pointer directly instead of doing a ptid lookup.
12310 (switch_to_no_thread): New function.
12311 (switch_to_thread(thread_info *)): New function, factored out
12312 from ...
12313 (switch_to_thread(ptid_t)): ... this.
12314 (restore_current_thread): Delete.
12315 (current_thread_cleanup): Remove 'inf_id' and 'was_removable'
12316 fields, and add 'inf' field.
12317 (do_restore_current_thread_cleanup): Check whether old->inf is
12318 alive instead of looking up an inferior by ptid. Use
12319 switch_to_thread and switch_to_no_thread.
12320 (restore_current_thread_cleanup_dtor): Use old->inf directly
12321 instead of lookup up an inferior by id. Decref the inferior.
12322 Don't restore 'removable'.
12323 (make_cleanup_restore_current_thread): Same the inferior pointer
12324 in old, instead of the inferior number. Incref the inferior.
12325 Don't save/clear 'removable'.
12326
9bcb1f16
PA
123272017-04-19 Pedro Alves <palves@redhat.com>
12328
12329 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
12330 unittests/scoped_restore-selftests.c.
12331 (SUBDIR_UNITTESTS_OBS): Add scoped_restore-selftests.o.
12332 * common/scoped_restore.h (scoped_restore_base): Make "class".
12333 (scoped_restore_base::release): New public method.
12334 (scoped_restore_base::scoped_restore_base): New protected ctor.
12335 (scoped_restore_base::m_saved_var): New protected field.
12336 (scoped_restore_tmpl::scoped_restore_tmpl(T*)): Initialize the
12337 scoped_restore_base base class instead of m_saved_var directly.
12338 (scoped_restore_tmpl::scoped_restore_tmpl(T*, T2)): Likewise.
12339 (scoped_restore_tmpl::scoped_restore_tmpl(const
12340 scoped_restore_tmpl<T>&)): Likewise.
12341 (scoped_restore_tmpl::~scoped_restore_tmpl): Use the saved_var
12342 method.
12343 (scoped_restore_tmpl::saved_var): New method.
12344 (scoped_restore_tmpl::m_saved_var): Delete.
12345 * inferior.h (inferior::detaching): Now a bool.
12346 * infrun.c (prepare_for_detach): Use a scoped_restore instead of a
12347 cleanup.
12348 * unittests/scoped_restore-selftests.c: New file.
12349
26fcd539
PA
123502017-04-19 Pedro Alves <palves@redhat.com>
12351
12352 * Makefile.in (SUBDIR_UNITTESTS_SRCS, SUBDIR_UNITTESTS_OBS):
12353 Re-sort in alphabetic order.
12354
fdd243b0
PA
123552017-04-18 Pedro Alves <palves@redhat.com>
12356
12357 * xml-support.c (obstack_xml_printf): Delete.
12358 * xml-support.h (obstack_xml_printf): Delete.
12359
4895cde2
PA
123602017-04-18 Pedro Alves <palves@redhat.com>
12361
12362 * xml-support.c (gdb_xml_parser) <use_dtd, dtd_name, parse,
12363 vdebug, verror, body_text, start_element, end_element, name,
12364 user_data, set_is_xinclude, set_error, expat_parser>: New methods.
12365 <name, user_data, expat_parser, scopes, error, last_line, dtd_name,
12366 is_xinclude>: Make private and add m_ prefix.
12367 (gdb_xml_parser::body_text): New method, based on ...
12368 (gdb_xml_body_text): ... this. Adjust.
12369 (gdb_xml_parser::vdebug): New method, based on ...
12370 (gdb_xml_debug): ... this. Adjust.
12371 (gdb_xml_parser::verror): New method, based on ...
12372 (gdb_xml_error): ... this. Adjust.
12373 (gdb_xml_parser::start_element): New method, based on ...
12374 (gdb_xml_start_element): ... this. Adjust.
12375 (gdb_xml_start_element_wrapper): Defer to
12376 gdb_xml_parser::start_element and gdb_xml_parser::set_error.
12377 (gdb_xml_parser::end_element): New method, based on ...
12378 (gdb_xml_end_element_wrapper): ... this. Adjust.
12379 (gdb_xml_parser::~gdb_xml_parser): Adjust.
12380 (gdb_xml_parser::gdb_xml_parser): Adjust to field renames.
12381 (gdb_xml_parser::use_dtd): New method, based on ...
12382 (gdb_xml_use_dtd): ... this. Adjust.
12383 (gdb_xml_parser::parse): New method, based on ...
12384 (gdb_xml_parse): ... this. Adjust.
12385 (gdb_xml_parse_quick): Adjust to call the parser's parse method.
12386 (xinclude_start_include): Adjust to call the parser's name method.
12387 (xml_xinclude_default, xml_xinclude_start_doctype)
12388 (xml_xinclude_end_doctype): Adjust to call the parser's user_data
12389 method.
12390 (xml_process_xincludes): Adjust to call parser methods.
12391 * xml-support.h (gdb_xml_use_dtd, gdb_xml_parse): Delete
12392 declarations.
12393
bd8a901f
PA
123942017-04-18 Pedro Alves <palves@redhat.com>
12395
12396 * tracefile-tfile.c (tfile_write_tdesc): Adjust to use
12397 gdb::optional<std::string>.
12398 * xml-support.c: Include <string>.
12399 (scope_level::scope_level(scope_level &&))
12400 (scope_level::~scope_level): Delete.
12401 (scope_level::body): Now a std::string.
12402 (gdb_xml_body_text, gdb_xml_end_element): Adjust.
12403 (xinclude_parsing_data::xinclude_parsing_data): Add 'output'
12404 parameter.
12405 (xinclude_parsing_data::~xinclude_parsing_data): Delete.
12406 (xinclude_parsing_data::output): Now a std::string reference.
12407 (xinclude_start_include): Adjust.
12408 (xml_xinclude_default): Adjust.
12409 (xml_process_xincludes): Add 'output' parameter, and return bool.
12410 * xml-support.h (xml_process_xincludes): Add 'output' parameter,
12411 and return bool.
12412 * xml-tdesc.c: Include <unordered_map> and <string>.
12413 (tdesc_xml_cache): Delete.
12414 (tdesc_xml_cache_s): Delete.
12415 (xml_cache): Now an std::unordered_map.
12416 (tdesc_parse_xml): Adjust to use std::string and unordered_map.
12417 (target_fetch_description_xml): Change return type to
12418 gdb::optional<std::string>, and adjust.
12419 * xml-tdesc.h: Include "common/gdb_optional.h" and <string>.
12420 (target_fetch_description_xml): Change return type to
12421 gdb::optional<std::string>.
12422
d35d1958
PA
124232017-04-18 Pedro Alves <palves@redhat.com>
12424
12425 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
12426 unittests/optional-selftests.c.
12427 (SUBDIR_UNITTESTS_OBS): Add optional-selftests.o.
12428 * unittests/optional-selftests.c: New file.
12429 * unittests/optional/assignment/1.cc: New file.
12430 * unittests/optional/assignment/2.cc: New file.
12431 * unittests/optional/assignment/3.cc: New file.
12432 * unittests/optional/assignment/4.cc: New file.
12433 * unittests/optional/assignment/5.cc: New file.
12434 * unittests/optional/assignment/6.cc: New file.
12435 * unittests/optional/assignment/7.cc: New file.
12436 * unittests/optional/cons/copy.cc: New file.
12437 * unittests/optional/cons/default.cc: New file.
12438 * unittests/optional/cons/move.cc: New file.
12439 * unittests/optional/cons/value.cc: New file.
12440 * unittests/optional/in_place.cc: New file.
12441 * unittests/optional/observers/1.cc: New file.
12442 * unittests/optional/observers/2.cc: New file.
12443
22796e97
PA
124442017-04-18 Pedro Alves <palves@redhat.com>
12445
12446 * common/gdb_optional.h: Include common/traits.h.
12447 (in_place_t): New type.
12448 (in_place): New constexpr variable.
12449 (optional::optional): Remove member initialization of
12450 m_instantiated.
12451 (optional::optional(in_place_t...)): New constructor.
12452 (optional::~optional): Use reset.
12453 (optional::optional(const optional&)): New.
12454 (optional::optional(const optional&&)): New.
12455 (optional::optional(T &)): New.
12456 (optional::optional(T &&)): New.
12457 (operator::operator=(const optional &)): New.
12458 (operator::operator=(optional &&)): New.
12459 (operator::operator= (const T &))
12460 (operator::operator= (T &&))
12461 (operator::emplace (Args &&... args)): Return a T&. Use reset.
12462 (operator::reset): New.
12463 (operator::m_instantiated):: Add in-class initializer.
12464 * common/traits.h: Include <type_traits>.
12465 (struct And): New types.
12466
a7fc9b61
PA
124672017-04-18 Pedro Alves <palves@redhat.com>
12468
12469 * xml-support.c: Include <vector>.
12470 (scope_level::scope_level(const gdb_xml_element *))
12471 (scope_level::scope_level(scope_level&&)): New.
12472 (scope_level::~scope_level): New.
12473 (scope_level_s): Delete.
12474 (gdb_xml_parser::scopes): Now a std::vector.
12475 (gdb_xml_body_text, gdb_xml_start_element, gdb_xml_end_element):
12476 Use std::vector.
12477 (gdb_xml_parser::~gdb_xml_parser): Remove now unnecessary
12478 scope cleanup code.
12479 (gdb_xml_parser::gdb_xml_parser): Remove explicit initialization
12480 of the scopes member. Use std::vector::emplace_back.
12481
010151c9
PA
124822017-04-18 Pedro Alves <palves@redhat.com>
12483
12484 * xml-support.c (gdb_xml_parser): Add ctor/dtor. Make is_xinclude
12485 a bool.
12486 (gdb_xml_end_element): Change type of first parameter.
12487 (gdb_xml_cleanup): Rename to ...
12488 (gdb_xml_parser::~gdb_xml_parser): ... this.
12489 (gdb_xml_create_parser_and_cleanup): Delete with ...
12490 (gdb_xml_parser::gdb_xml_parser): ... creation parts factored out
12491 to this new ctor.
12492 (gdb_xml_parse_quick): Create a local gdb_xml_parser instead of
12493 using gdb_xml_create_parser_and_cleanup.
12494 (xinclude_parsing_data): Add ctor/dtor.
12495 (xml_xinclude_cleanup): Delete.
12496 (xml_process_xincludes): Create a local xinclude_parsing_data
12497 instead of heap-allocating one. Create a local gdb_xml_parser
12498 instead of heap-allocating one with
12499 gdb_xml_create_parser_and_cleanup.
12500
d56060f0
JB
125012017-04-18 John Baldwin <jhb@FreeBSD.org>
12502
12503 PR threads/20743
12504 * fbsd-nat.c (resume_one_thread_cb): Remove.
12505 (resume_all_threads_cb): Remove.
12506 (fbsd_resume): Use ALL_NON_EXITED_THREADS instead of
12507 iterate_over_threads.
12508
305d16a9
JB
125092017-04-17 Joel Brobecker <brobecker@adacore.com>
12510
12511 * NEWS: Create a new section for the next release branch.
12512 Rename the section of the current branch, now that it has
12513 been cut.
12514
8bb57231
JB
125152017-04-17 Joel Brobecker <brobecker@adacore.com>
12516
12517 GDB 8.0 branch created (725bf5cf125783c2a7ca4ab63d3768e220bab2db):
12518 * version.in: Bump version to 8.0.50.DATE-git.
12519
096c92dd
SDJ
125202017-04-13 Sergio Durigan Junior <sergiodj@redhat.com>
12521
12522 PR gdb/21385
12523 * windows-nat.c (windows_create_inferior): Declare 'allargs'
12524 independently of the host, and fix build breakage on Cygwin.
12525
0550c955
PA
125262017-04-13 Pedro Alves <palves@redhat.com>
12527
12528 * inferior.c (free_inferior): Convert to ...
12529 (inferior::~inferior): ... this dtor.
12530 (inferior::inferior): New ctor, factored out from ...
12531 (add_inferior_silent): ... here. Allocate the inferior with a new
12532 expression.
12533 (delete_inferior): Call delete instead of free_inferior.
12534 * inferior.h (gdb_environ, continuation): Forward declare.
12535 (inferior): Now a class. Add in-class initialization to all
12536 members. Make boolean fields bool, except 'detaching'.
12537 (inferior::inferior): New explicit ctor.
12538 (inferior::~inferior): New.
12539
e3d60dfc
PA
125402017-04-13 Pedro Alves <palves@redhat.com>
12541
12542 * inferior.c (init_inferior_list): Delete.
12543 * inferior.h (init_inferior_list): Delete.
12544
5fd69d0a
PA
125452017-04-13 Pedro Alves <palves@redhat.com>
12546
12547 PR threads/13217
12548 * gdb.threads/threadapply.exp (thr_apply_detach): New procedure.
12549 (top level): Call it twice, with different thread sets.
12550
c6609450
PA
125512017-04-13 Pedro Alves <palves@redhat.com>
12552
12553 * thread.c: Include <algorithm>.
12554 (thread_array_cleanup): Delete.
12555 (scoped_inc_dec_ref): New class.
12556 (live_threads_count): New function.
12557 (set_thread_refcount): Delete.
12558 (tp_array_compar_ascending): Now a bool.
12559 (tp_array_compar): Convert to a std::sort comparison function.
12560 (thread_apply_all_command): Use std::vector and scoped_inc_dec_ref
12561 and live_threads_count.
12562
2a00d7ce
PA
125632017-04-13 Pedro Alves <palves@redhat.com>
12564
12565 * infrun.c (follow_fork_inferior): Also switch the current
12566 inferior.
12567
441d7c93
PA
125682017-04-13 Pedro Alves <palves@redhat.com>
12569
12570 * breakpoint.c (watch_command_1): Save watchpoint-frame info
12571 before calling create_internal_breakpoint.
12572
808480f6
PA
125732017-04-13 Pedro Alves <palves@redhat.com>
12574
12575 * fork-child.c (execv_argv): New class.
12576 (breakup_args): Refactored as ...
12577 (execv_argv::init_for_no_shell): .. this method of execv_argv.
12578 Copy arguments to storage and replace separators with NULL
12579 terminators in place.
12580 (escape_bang_in_quoted_argument): Adjust to return bool.
12581 (execv_argv::execv_argv): New ctor.
12582 (execv_argv::init_for_shell): New method, factored out from
12583 fork_inferior. Don't strdup strings into the vector.
12584 (fork_inferior): Eliminate "shell" local and use execv_argv. Use
12585 Remove free_vector_argv call.
12586
ad3d022a
YQ
125872017-04-13 Yao Qi <yao.qi@linaro.org>
12588
12589 * rx-tdep.c (rx_fpsw_type): Check tdep->rx_fpsw_type instead of
12590 tdep->rx_psw_type.
12591
e6ddc3bf
YQ
125922017-04-13 Yao Qi <yao.qi@linaro.org>
12593
12594 * rl78-tdep.c (rl78_gdbarch_init): Use XCNEW instead of XNEW.
12595 * rx-tdep.c (rx_gdbarch_init): Likewise.
12596
bfb8cf90
PA
125972017-04-13 Pedro Alves <palves@redhat.com>
12598
12599 * breakpoint.h (struct breakpoint): Reindent.
12600
f5336ca5
PA
126012017-04-13 Pedro Alves <palves@redhat.com>
12602
12603 * breakpoint.c (bp_location): Rename to ...
12604 (bp_locations): ... this. All references updated.
12605 (bp_location_count): Rename to ...
12606 (bp_locations_count): ... this. All references updated.
12607 (bp_location_placed_address_before_address_max): Rename to ...
12608 (bp_locations_placed_address_before_address_max): ... this. All
12609 references updated.
12610 (bp_location_shadow_len_after_address_max): Rename to ...
12611 (bp_locations_shadow_len_after_address_max): ... this. All
12612 references updated.
12613 (bp_location_compare_addrs): Rename to ...
12614 (bp_locations_compare_addrs): ... this. All references updated.
12615 (bp_location_compare):Rename to ...
12616 (bp_locations_compare): ... this. All references updated.
12617 (bp_location_target_extensions_update): Rename to ...
12618 (bp_locations_target_extensions_update): ... this. All references
12619 updated.
12620
be628ab8
SDJ
126212017-04-12 Sergio Durigan Junior <sergiodj@redhat.com>
12622
12623 * Makefile.in (HFILES_NO_SRCDIR): Add "common/gdb_termios.h".
12624 * common/common.m4: Check headers 'termios.h', 'termio.h' and
12625 'sgtty.h'.
12626 * common/gdb_termios.h: New file, with parts of "terminal.h".
12627 * inflow.c: Include "gdb_termios.h".
12628 * ser-unix.c: Include "gdb_termios.h".
12629 * terminal.h: Move terminal-related defines to
12630 "common/gdb_termios.h".
12631
8e9e35b1
TT
126322017-04-12 Tom Tromey <tom@tromey.com>
12633
12634 * probe.c (parse_probes): Update.
12635 * location.h (delete_event_location): Don't declare.
12636 (event_location_deleter::operator()): Update.
12637 * location.c (event_location_deleter::operator()): Rename from
12638 delete_event_location.
12639 * linespec.h (linespec_result) <location>: Change type to
12640 event_location_up.
12641 * linespec.c (canonicalize_linespec, event_location_to_sals)
12642 (decode_objc): Update.
12643 (linespec_result): Don't call delete_event_location.
12644 * breakpoint.c (create_breakpoints_sal)
12645 (bkpt_probe_create_sals_from_location)
12646 (strace_marker_create_sals_from_location): Update.
12647
16e802b9
TT
126482017-04-12 Tom Tromey <tom@tromey.com>
12649
12650 * linespec.h (struct linespec_result): Add constructor and
12651 destructor.
12652 (init_linespec_result, destroy_linespec_result)
12653 (make_cleanup_destroy_linespec_result): Don't declare.
12654 * linespec.c (init_linespec_result): Remove.
12655 (linespec_result::~linespec_result): Rename from
12656 destroy_linespec_result. Update.
12657 (cleanup_linespec_result, make_cleanup_destroy_linespec_result):
12658 Remove.
12659 * breakpoint.c (create_breakpoint, break_range_command)
12660 (decode_location_default): Update.
12661 * ax-gdb.c (agent_command_1): Update.
12662
d28cd78a
TT
126632017-04-12 Tom Tromey <tom@tromey.com>
12664
12665 * remote.c (remote_download_tracepoint): Update.
12666 * python/py-breakpoint.c (bppy_get_location): Update.
12667 * guile/scm-breakpoint.c (bpscm_print_breakpoint_smob)
12668 (gdbscm_breakpoint_location): Update.
12669 * elfread.c (elf_gnu_ifunc_resolver_return_stop): Update.
12670 * breakpoint.h (struct breakpoint) <location, location_range_end>:
12671 Change type to event_location_up.
12672 * breakpoint.c (create_overlay_event_breakpoint)
12673 (create_longjmp_master_breakpoint)
12674 (create_std_terminate_master_breakpoint)
12675 (create_exception_master_breakpoint)
12676 (breakpoint_event_location_empty_p, print_breakpoint_location)
12677 (print_one_breakpoint_location, create_thread_event_breakpoint)
12678 (init_breakpoint_sal, create_breakpoint)
12679 (print_recreate_ranged_breakpoint, break_range_command)
12680 (init_ada_exception_breakpoint, say_where): Update.
12681 (base_breakpoint_dtor): Don't call delete_event_location.
12682 (bkpt_print_recreate, tracepoint_print_recreate)
12683 (dprintf_print_recreate, update_static_tracepoint)
12684 (breakpoint_re_set_default): Update.
12685
711799d5
TT
126862017-04-12 Tom Tromey <tom@tromey.com>
12687
12688 * compile/compile-loc2c.c (compute_stack_depth_worker): Change
12689 type of "to_do". Update.
12690 (compute_stack_depth): Use std::vector.
12691
52d214d3
TT
126922017-04-12 Tom Tromey <tom@tromey.com>
12693
12694 * printcmd.c (find_instruction_backward): Use std::vector.
12695
4c404b8b
TT
126962017-04-12 Tom Tromey <tom@tromey.com>
12697
12698 * symfile.c (objfilep): Remove typedef.
12699 (reread_symbols): Use a std::vector.
12700
156d9eab
TT
127012017-04-12 Tom Tromey <tom@tromey.com>
12702
12703 * mi/mi-main.c (exec_direction_forward): Remove.
12704 (exec_reverse_continue, mi_execute_command): Use scoped_restore.
12705 * guile/scm-ports.c (ioscm_with_output_to_port_worker): Use
12706 scoped_restore.
12707 * guile/guile.c (guile_repl_command, guile_command)
12708 (gdbscm_execute_gdb_command): Use scoped_restore.
12709 * go-exp.y (go_parse): Use scoped_restore.
12710 * d-exp.y (d_parse): Use scoped_restore.
12711 * cli/cli-decode.c (cmd_func): Use scoped_restore.
12712 * c-exp.y (c_parse): Use scoped_restore.
12713
4d89769a
TT
127142017-04-12 Tom Tromey <tom@tromey.com>
12715
12716 * mi/mi-parse.h (struct mi_parse): Add constructor, destructor.
12717 (mi_parse): Update return type.
12718 (mi_parse_free): Remove.
12719 * mi/mi-parse.c (mi_parse::mi_parse): New constructor.
12720 (mi_parse::~mi_parse): Rename from mi_parse_free.
12721 (mi_parse_cleanup): Remove.
12722 (mi_parse): Return a unique_ptr. Use new.
12723 * mi/mi-main.c (mi_execute_command): Update.
12724
4b217cc7
TT
127252017-04-12 Tom Tromey <tom@tromey.com>
12726
12727 * location.c (explicit_location_lex_one): Return a
12728 unique_xmalloc_ptr.
12729 (string_to_explicit_location): Update. Remove cleanups.
12730
59d3651b
TT
127312017-04-12 Tom Tromey <tom@tromey.com>
12732
12733 * gnu-v3-abi.c (value_and_voffset_p): Remove typedef.
12734 (compare_value_and_voffset): Change type. Update.
12735 (compute_vtable_size): Change type of "offset_vec".
12736 (gnuv3_print_vtable): Use std::vector. Remove cleanups.
12737 (gnuv3_get_typeid): Remove extraneous declaration.
12738
b24b0d6c
TT
127392017-04-12 Tom Tromey <tom@tromey.com>
12740
12741 * charset.h (wchar_iterator): Fix comment.
12742
80a3b8c5
TT
127432017-04-12 Tom Tromey <tom@tromey.com>
12744
12745 * charset.c (iconv_wrapper): New class.
12746 (cleanup_iconv): Remove.
12747 (convert_between_encodings): Use it.
12748
c83dd867
TT
127492017-04-12 Tom Tromey <tom@tromey.com>
12750
12751 * symfile.h (increment_reading_symtab): Update type.
12752 * symfile.c (decrement_reading_symtab): Remove.
12753 (increment_reading_symtab): Return a scoped_restore_tmpl<int>.
12754 * psymtab.c (psymtab_to_symtab): Update.
12755 * dwarf2read.c (dw2_instantiate_symtab): Update.
12756
0e8621a0
TT
127572017-04-12 Tom Tromey <tom@tromey.com>
12758
12759 * jit.c (struct jit_reader): Declare separately. Add constructor
12760 and destructor. Change type of "handle".
12761 (loaded_jit_reader): Define separately.
12762 (jit_reader_load): Update. New "new".
12763 (jit_reader_unload_command): Use "delete".
12764 * gdb-dlfcn.h (struct dlclose_deleter): New.
12765 (gdb_dlhandle_up): New typedef.
12766 (gdb_dlopen, gdb_dlsym): Update types.
12767 (gdb_dlclose): Remove.
12768 * gdb-dlfcn.c (gdb_dlopen): Return a gdb_dlhandle_up.
12769 (gdb_dlsym): Change type of "handle".
12770 (make_cleanup_dlclose): Remove.
12771 (dlclose_deleter::operator()): Rename from gdb_dlclose.
12772 * compile/compile-c-support.c (load_libcc): Update.
12773
67d89901
TT
127742017-04-12 Tom Tromey <tom@tromey.com>
12775
12776 * symtab.h (find_pcs_for_symtab_line): Change return type.
12777 * symtab.c (find_pcs_for_symtab_line): Change return type.
12778 * python/py-linetable.c (build_line_table_tuple_from_pcs): Change
12779 type of "vec". Update.
12780 (ltpy_get_pcs_for_line): Update.
12781 * linespec.c (decode_digits_ordinary): Update.
12782
93921405
TT
127832017-04-12 Tom Tromey <tom@tromey.com>
12784
12785 * tracepoint.c (actions_command): Update.
12786 * python/python.c (python_command, python_interactive_command):
12787 Update.
12788 * mi/mi-cmd-break.c (mi_cmd_break_commands): Update.
12789 * guile/guile.c (guile_command): Update.
12790 * defs.h (read_command_lines, read_command_lines_1): Return
12791 command_line_up.
12792 (command_lines_deleter): New struct.
12793 (command_line_up): New typedef.
12794 * compile/compile.c (compile_code_command)
12795 (compile_print_command): Update.
12796 * cli/cli-script.h (get_command_line, copy_command_lines): Return
12797 command_line_up.
12798 (make_cleanup_free_command_lines): Remove.
12799 * cli/cli-script.c (get_command_line, read_command_lines_1)
12800 (copy_command_lines): Return command_line_up.
12801 (while_command, if_command, read_command_lines, define_command)
12802 (document_command): Update.
12803 (do_free_command_lines_cleanup, make_cleanup_free_command_lines):
12804 Remove.
12805 * breakpoint.h (breakpoint_set_commands): Change type of
12806 "commands".
12807 * breakpoint.c (breakpoint_set_commands): Change type of
12808 "commands". Update.
12809 (do_map_commands_command, update_dprintf_command_list)
12810 (create_tracepoint_from_upload): Update.
12811
ffc2605c
TT
128122017-04-12 Tom Tromey <tom@tromey.com>
12813
12814 * tracepoint.c (scope_info): Update.
12815 * spu-tdep.c (spu_catch_start): Update.
12816 * python/python.c (gdbpy_decode_line): Update.
12817 * python/py-finishbreakpoint.c (bpfinishpy_init): Update.
12818 * python/py-breakpoint.c (bppy_init): Update.
12819 * probe.c (parse_probes): Update.
12820 * mi/mi-cmd-break.c (mi_cmd_break_insert_1): Update.
12821 * location.h (event_location_deleter): New struct.
12822 (event_location_up): New typedef.
12823 (new_linespec_location, new_address_location, new_probe_location)
12824 (new_explicit_location, copy_event_location)
12825 (string_to_event_location, string_to_event_location_basic)
12826 (string_to_explicit_location): Update return type.
12827 (make_cleanup_delete_event_location): Remove.
12828 * location.c (new_linespec_location, new_address_location)
12829 (new_probe_location, new_explicit_location, copy_event_location):
12830 Return event_location_up.
12831 (delete_event_location_cleanup)
12832 (make_cleanup_delete_event_location): Remove.
12833 (string_to_explicit_location, string_to_event_location_basic)
12834 (string_to_event_location): Return event_location_up.
12835 * linespec.c (canonicalize_linespec, event_location_to_sals)
12836 (decode_line_with_current_source)
12837 (decode_line_with_last_displayed, decode_objc): Update.
12838 * guile/scm-breakpoint.c (gdbscm_register_breakpoint_x): Update.
12839 * completer.c (location_completer): Update.
12840 * cli/cli-cmds.c (edit_command, list_command): Update.
12841 * breakpoint.c (create_overlay_event_breakpoint)
12842 (create_longjmp_master_breakpoint)
12843 (create_std_terminate_master_breakpoint)
12844 (create_exception_master_breakpoint)
12845 (create_thread_event_breakpoint): Update.
12846 (init_breakpoint_sal): Update. Remove some dead code.
12847 (create_breakpoint_sal): Change type of "location". Update.
12848 (create_breakpoints_sal, create_breakpoint, break_command_1)
12849 (dprintf_command, break_range_command, until_break_command)
12850 (init_ada_exception_breakpoint)
12851 (strace_marker_create_sals_from_location)
12852 (update_static_tracepoint, trace_command, ftrace_command)
12853 (strace_command, create_tracepoint_from_upload): Update.
12854 * break-catch-throw.c (re_set_exception_catchpoint): Update.
12855 * ax-gdb.c (agent_command_1): Update.
12856
8f10c932
PA
128572017-04-12 Pedro Alves <palves@redhat.com>
12858
12859 * Makefile.in (ALL_TARGET_OBS): Add i386-go32-tdep.o.
12860 * configure.tgt: Handle i[34567]86-*-go32* and
12861 i[34567]86-*-msdosdjgpp*.
12862 * i386-tdep.c (i386_svr4_reg_to_regnum):
12863 Make extern.
12864 (i386_go32_init_abi, i386_coff_osabi_sniffer): Moved to
12865 i386-go32-tdep.c.
12866 (_initialize_i386_tdep): DJGPP bits moved to i386-go32-tdep.c.
12867 * i386-go32-tdep.c: New file.
12868 * i386-tdep.h (tdesc_i386_mmx, i386_svr4_reg_to_regnum): New
12869 declarations.
12870
0a31ccfb
SM
128712017-04-12 Simon Marchi <simon.marchi@ericsson.com>
12872
12873 * aix-thread.c (pd_status2str): Change return type to const char *.
12874
e9bb3fbb
PA
128752017-04-12 Pedro Alves <palves@redhat.com>
12876
12877 * i386-tdep.c (i386_elf_init_abi, i386_go32_init_abi): Remove
12878 calls to set_gdbarch_gnu_triplet_regexp.
12879
53375380
PA
128802017-04-12 Pedro Alves <palves@redhat.com>
12881
12882 PR gdb/21323
12883 * c-lang.c (cplus_primitive_types) <cplus_primitive_type_wchar_t>:
12884 New enum value.
12885 (cplus_language_arch_info): Register cplus_primitive_type_wchar_t.
12886 * gdbtypes.h (struct builtin_type) <builtin_wchar>: New field.
12887 * gdbtypes.c (gdbtypes_post_init): Create the "wchar_t" type.
12888 * gdbarch.sh (wchar_bit, wchar_signed): New per-arch values.
12889 * gdbarch.h, gdbarch.c: Regenerate.
12890 * aarch64-tdep.c (aarch64_gdbarch_init): Override
12891 gdbarch_wchar_bit and gdbarch_wchar_signed.
12892 * alpha-tdep.c (alpha_gdbarch_init): Likewise.
12893 * arm-tdep.c (arm_gdbarch_init): Likewise.
12894 * avr-tdep.c (avr_gdbarch_init): Likewise.
12895 * h8300-tdep.c (h8300_gdbarch_init): Likewise.
12896 * i386-nto-tdep.c (i386nto_init_abi): Likewise.
12897 * i386-tdep.c (i386_go32_init_abi): Likewise.
12898 * m32r-tdep.c (m32r_gdbarch_init): Likewise.
12899 * moxie-tdep.c (moxie_gdbarch_init): Likewise.
12900 * nds32-tdep.c (nds32_gdbarch_init): Likewise.
12901 * rs6000-aix-tdep.c (rs6000_aix_init_osabi): Likewise.
12902 * sh-tdep.c (sh_gdbarch_init): Likewise.
12903 * sparc-tdep.c (sparc32_gdbarch_init): Likewise.
12904 * sparc64-tdep.c (sparc64_init_abi): Likewise.
12905 * windows-tdep.c (windows_init_abi): Likewise.
12906 * xstormy16-tdep.c (xstormy16_gdbarch_init): Likewise.
12907
53e710ac
PA
129082017-04-12 Pedro Alves <palves@redhat.com>
12909
12910 PR c++/21323
12911 * c-lang.c (cplus_primitive_types) <cplus_primitive_type_char16_t,
12912 cplus_primitive_type_char32_t>: New enum values.
12913 (cplus_language_arch_info): Register cplus_primitive_type_char16_t
12914 and cplus_primitive_type_char32_t.
12915 * dwarf2read.c (read_base_type) <DW_ATE_UTF>: If bit size is 16 or
12916 32, use the archtecture's built-in type for char16_t and char32_t,
12917 respectively. Otherwise, fallback to init_integer_type as before,
12918 but make the type unsigned, and issue a complaint.
12919 * gdbtypes.c (gdbtypes_post_init): Make char16_t and char32_t unsigned.
12920
ab0538b8
AH
129212017-04-12 Alan Hayward <alan.hayward@arm.com>
12922
5e0e0422 12923 * m32r-tdep.c (M32R_ARG_REGISTER_SIZE): Added.
ab0538b8
AH
12924 (m32r_push_dummy_call): Use M32R_ARG_REGISTER_SIZE.
12925
5430098f
SDJ
129262017-04-12 Sergio Durigan Junior <sergiodj@redhat.com>
12927
12928 * windows-nat.c (windows_create_inferior): Declare 'toexec' as
12929 'const char *'.
12930
7c5ded6a
SDJ
129312017-04-12 Sergio Durigan Junior <sergiodj@redhat.com>
12932
12933 * common/common-utils.c (free_vector_argv): New function.
12934 * common/common-utils.h: Include <vector>.
12935 (free_vector_argv): New prototype.
12936 * darwin-nat.c (darwin_create_inferior): Rewrite function
12937 prototype in order to constify "exec_file" and accept a
12938 "std::string" for "allargs".
12939 * fork-child.c: Include <vector>.
12940 (breakup_args): Rewrite function, using C++.
12941 (fork_inferior): Rewrite function header, constify "exec_file_arg"
12942 and accept "std::string" for "allargs". Update the code to
12943 calculate "argv" based on "allargs". Update calls to "exec_fun"
12944 and "execvp".
12945 * gnu-nat.c (gnu_create_inferior): Rewrite function prototype in
12946 order to constify "exec_file" and accept a "std::string" for
12947 "allargs".
12948 * go32-nat.c (go32_create_inferior): Likewise.
12949 * inf-ptrace.c (inf_ptrace_create_inferior): Likewise.
12950 * infcmd.c (run_command_1): Constify "exec_file". Use
12951 "std::string" for inferior arguments.
12952 * inferior.h (fork_inferior): Update prototype.
12953 * linux-nat.c (linux_nat_create_inferior): Rewrite function
12954 prototype in order to constify "exec_file" and accept a
12955 "std::string" for "allargs".
12956 * nto-procfs.c (procfs_create_inferior): Likewise.
12957 * procfs.c (procfs_create_inferior): Likewise.
12958 * remote-sim.c (gdbsim_create_inferior): Likewise.
12959 * remote.c (extended_remote_run): Update code to accept
12960 "std::string" as argument.
12961 (extended_remote_create_inferior): Rewrite function prototype in
12962 order to constify "exec_file" and accept a "std::string" for
12963 "allargs".
12964 * rs6000-nat.c (super_create_inferior): Likewise.
12965 (rs6000_create_inferior): Likewise.
12966 * target.h (struct target_ops) <to_create_inferior>: Likewise.
12967 * windows-nat.c (windows_create_inferior): Likewise.
12968
ae0eee42
PA
129692017-04-11 Pedro Alves <palves@redhat.com>
12970
12971 * thread.c: Fix whitespace throughout.
12972
a6acac06
PR
129732017-04-11 Philipp Rudo <prudo@linux.vnet.ibm.com>
12974
12975 * linux-nat.c (linux_nat_detach): Remove delete_lwp call.
12976
64403bd1
AH
129772017-04-11 Alan Hayward <alan.hayward@arm.com>
12978
12979 * arm-tdep.c (arm_store_return_value): Use FP_REGISTER_SIZE
12980
a5bef50f
SDJ
129812017-04-10 Sergio Durigan Junior <sergiodj@redhat.com>
12982
12983 PR gdb/21364
12984 * osdata.c (info_osdata): Check if 'type' is an empty string
12985 instead of NULL.
12986
9295a5a9
PA
129872017-04-10 Pedro Alves <palves@redhat.com>
12988
12989 * thread.c (add_thread_silent, delete_thread_1, find_thread_ptid)
12990 (ptid_to_global_thread_id, in_thread_list)
12991 (do_captured_list_thread_ids, set_resumed, set_running)
12992 (set_executing, set_stop_requested, finish_thread_state)
12993 (validate_registers_access, can_access_registers_ptid)
12994 (print_thread_info_1, switch_to_thread)
12995 (do_restore_current_thread_cleanup)
12996 (make_cleanup_restore_current_thread, thread_command)
12997 (thread_name_command): Use operator== instead of ptid_equal.
12998
996812e3
PA
129992017-04-10 Pedro Alves <palves@redhat.com>
13000
13001 * thread.c (struct current_thread_cleanup) <next>: Delete field.
13002 (current_thread_cleanup_chain): Delete.
13003 (restore_current_thread_cleanup_dtor)
13004 (make_cleanup_restore_current_thread): Remove references to
13005 current_thread_cleanup_chain.
13006
845b344f
AH
130072017-04-10 Alan Hayward <alan.hayward@arm.com>
13008
13009 * msp430-tdep.c (msp430_pseudo_register_read): Never return
13010 REG_UNKNOWN.
13011
803bdfe4
YQ
130122017-04-10 Yao Qi <yao.qi@linaro.org>
13013
13014 PR gdb/19942
13015 * gdbthread.h (thread_info::deletable): New method.
13016 (thread_info::incref): New method.
13017 (thread_info::decref): New method.
13018 (thread_info::refcount): Move it to private.
13019 * infrun.c (save_stop_context): Call inc_refcount.
13020 (release_stop_context_cleanup): Likewise.
13021 * thread.c (set_thread_exited): New function.
13022 (init_thread_list): Delete "tp" only it is deletable, otherwise
13023 call set_thread_exited.
13024 (delete_thread_1): Call set_thread_exited.
13025 (current_thread_cleanup) <inferior_pid>: Remove.
13026 <thread>: New field.
13027 (restore_current_thread_ptid_changed): Removed.
13028 (do_restore_current_thread_cleanup): Adjust.
13029 (restore_current_thread_cleanup_dtor): Don't call
13030 find_thread_ptid.
13031 (set_thread_refcount): Use dec_refcount.
13032 (make_cleanup_restore_current_thread): Adjust.
13033 (thread_apply_all_command): Call inc_refcount.
13034 (_initialize_thread): Don't call
13035 observer_attach_thread_ptid_changed.
13036
8c25b497
YQ
130372017-04-10 Yao Qi <yao.qi@linaro.org>
13038
13039 * thread.c (delete_thread_1): Hoist code on marking thread as
13040 exited.
13041
8473b447
SM
130422017-04-09 Simon Marchi <simon.marchi@polymtl.ca>
13043
13044 * windows-nat.c (windows_detach): Initialize ptid with
13045 minus_one_ptid.
13046
6670ec13
SM
130472017-04-07 Simon Marchi <simon.marchi@ericsson.com>
13048
13049 * unittests/ptid-selftests.c: Fix erroneous assert messages.
13050
ba2f91bb
AH
130512017-04-07 Alan Hayward <alan.hayward@arm.com>
13052
13053 * bfin-tdep.c (BFIN_MAX_REGISTER_SIZE): Add.
13054 (bfin_pseudo_register_read): Use BFIN_MAX_REGISTER_SIZE.
13055 (bfin_pseudo_register_write): Likewise
13056
436252de
SM
130572017-04-06 Simon Marchi <simon.marchi@ericsson.com>
13058
13059 * common/ptid.h (struct ptid): Change to...
13060 (class ptid_t): ... this.
13061 <ptid_t>: New constructors.
13062 <pid, lwp_p, lwp, tid_p, tid, is_pid, operator==, operator!=,
13063 matches>: New methods.
13064 <make_null, make_minus_one>: New static methods.
13065 <pid>: Rename to...
13066 <m_pid>: ...this.
13067 <lwp>: Rename to...
13068 <m_lwp>: ...this.
13069 <tid>: Rename to...
13070 <m_tid>: ...this.
13071 (ptid_build, ptid_get_pid, ptid_get_lwp, ptid_get_tid, ptid_equal,
13072 ptid_is_pid, ptid_lwp_p, ptid_tid_p, ptid_match): Take ptid arguments
13073 as references, move comment to class ptid_t.
13074 * common/ptid.c (null_ptid, minus_one_ptid): Initialize with
13075 ptid_t static methods.
13076 (ptid_build, pid_to_ptid, ptid_get_pid, ptid_get_tid,
13077 ptid_equal, ptid_is_pid, ptid_lwp_p, ptid_tid_p, ptid_match):
13078 Take ptid arguments as references, implement using ptid_t methods.
13079 * unittests/ptid-selftests.c: New file.
13080 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
13081 unittests/ptid-selftests.c.
13082 (SUBDIR_UNITTESTS_OBS): Add unittests/ptid-selftests.o.
13083
0dedf377
TP
130842017-04-06 Thomas Preud'homme <thomas.preudhomme@arm.com>
13085
13086 * python/python.c (python_run_simple_file): Cast mode literal to
13087 non-const char pointer as expected by PyFile_FromString.
13088
4e9868d4
SM
130892017-04-05 Simon Marchi <simon.marchi@ericsson.com>
13090
13091 * common/ptid.c (ptid_lwp_p, ptid_tid_p): Remove comparison with
13092 minus_one_ptid and null_ptid.
13093
9bf2a700
PA
130942017-04-05 Pedro Alves <palves@redhat.com>
13095
13096 * warning.m4 (build_warnings): Remove -Wno-write-strings.
13097 * configure: Regenerate.
13098
a121b7c1
PA
130992017-04-05 Pedro Alves <palves@redhat.com>
13100
13101 * ada-exp.y (yyerror): Constify.
13102 * ada-lang.c (bound_name, get_selections)
13103 (ada_variant_discrim_type)
13104 (ada_variant_discrim_name, ada_value_struct_elt)
13105 (ada_lookup_struct_elt_type, is_unchecked_variant)
13106 (ada_which_variant_applies, standard_exc, ada_get_next_arg)
13107 (catch_ada_exception_command_split)
13108 (catch_ada_assert_command_split, catch_assert_command)
13109 (ada_op_name): Constify.
13110 * ada-lang.h (ada_yyerror, get_selections)
13111 (ada_variant_discrim_name, ada_value_struct_elt): Constify.
13112 * arc-tdep.c (arc_print_frame_cache): Constify.
13113 * arm-tdep.c (arm_skip_stub): Constify.
13114 * ax-gdb.c (gen_binop, gen_struct_ref_recursive, gen_struct_ref)
13115 (gen_aggregate_elt_ref): Constify.
13116 * bcache.c (print_bcache_statistics): Constify.
13117 * bcache.h (print_bcache_statistics): Constify.
13118 * break-catch-throw.c (catch_exception_command_1):
13119 * breakpoint.c (struct ep_type_description::description):
13120 Constify.
13121 (add_solib_catchpoint): Constify.
13122 (catch_fork_command_1): Add cast.
13123 (add_catch_command): Constify.
13124 * breakpoint.h (add_catch_command, add_solib_catchpoint):
13125 Constify.
13126 * bsd-uthread.c (bsd_uthread_state): Constify.
13127 * buildsym.c (patch_subfile_names): Constify.
13128 * buildsym.h (next_symbol_text_func, patch_subfile_names):
13129 Constify.
13130 * c-exp.y (yyerror): Constify.
13131 (token::oper): Constify.
13132 * c-lang.h (c_yyerror, cp_print_class_member): Constify.
13133 * c-varobj.c (cplus_describe_child): Constify.
13134 * charset.c (find_charset_names): Add cast.
13135 (find_charset_names): Constify array and add const_cast.
13136 * cli/cli-cmds.c (complete_command, cd_command): Constify.
13137 (edit_command): Constify.
13138 * cli/cli-decode.c (lookup_cmd): Constify.
13139 * cli/cli-dump.c (dump_memory_command, dump_value_command):
13140 Constify.
13141 (struct dump_context): Constify.
13142 (add_dump_command, restore_command): Constify.
13143 * cli/cli-script.c (get_command_line): Constify.
13144 * cli/cli-script.h (get_command_line): Constify.
13145 * cli/cli-utils.c (check_for_argument): Constify.
13146 * cli/cli-utils.h (check_for_argument): Constify.
13147 * coff-pe-read.c (struct read_pe_section_data): Constify.
13148 * command.h (lookup_cmd): Constify.
13149 * common/print-utils.c (decimal2str): Constify.
13150 * completer.c (gdb_print_filename): Constify.
13151 * corefile.c (set_gnutarget): Constify.
13152 * cp-name-parser.y (yyerror): Constify.
13153 * cp-valprint.c (cp_print_class_member): Constify.
13154 * cris-tdep.c (cris_register_name, crisv32_register_name):
13155 Constify.
13156 * d-exp.y (yyerror): Constify.
13157 (struct token::oper): Constify.
13158 * d-lang.h (d_yyerror): Constify.
13159 * dbxread.c (struct header_file_location::name): Constify.
13160 (add_old_header_file, add_new_header_file, last_function_name)
13161 (dbx_next_symbol_text, add_bincl_to_list)
13162 (find_corresponding_bincl_psymtab, set_namestring)
13163 (find_stab_function_addr, read_dbx_symtab, start_psymtab)
13164 (dbx_end_psymtab, read_ofile_symtab, process_one_symbol):
13165 * defs.h (command_line_input, print_address_symbolic)
13166 (deprecated_readline_begin_hook): Constify.
13167 * dwarf2read.c (anonymous_struct_prefix, dwarf_bool_name):
13168 Constify.
13169 * event-top.c (handle_line_of_input): Constify and add cast.
13170 * exceptions.c (catch_errors): Constify.
13171 * exceptions.h (catch_errors): Constify.
13172 * expprint.c (print_subexp_standard, op_string, op_name)
13173 (op_name_standard, dump_raw_expression, dump_raw_expression):
13174 * expression.h (op_name, op_string, dump_raw_expression):
13175 Constify.
13176 * f-exp.y (yyerror): Constify.
13177 (struct token::oper): Constify.
13178 (struct f77_boolean_val::name): Constify.
13179 * f-lang.c (f_word_break_characters): Constify.
13180 * f-lang.h (f_yyerror): Constify.
13181 * fork-child.c (fork_inferior): Add cast.
13182 * frv-tdep.c (struct gdbarch_tdep::register_names): Constify.
13183 (new_variant): Constify.
13184 * gdbarch.sh (pstring_ptr, pstring_list): Constify.
13185 * gdbarch.c: Regenerate.
13186 * gdbcore.h (set_gnutarget): Constify.
13187 * go-exp.y (yyerror): Constify.
13188 (token::oper): Constify.
13189 * go-lang.h (go_yyerror): Constify.
13190 * go32-nat.c (go32_sysinfo): Constify.
13191 * guile/scm-breakpoint.c (gdbscm_breakpoint_expression): Constify.
13192 * guile/scm-cmd.c (cmdscm_function): Constify.
13193 * guile/scm-param.c (pascm_param_value): Constify.
13194 * h8300-tdep.c (h8300_register_name, h8300s_register_name)
13195 (h8300sx_register_name): Constify.
13196 * hppa-tdep.c (hppa32_register_name, hppa64_register_name):
13197 Constify.
13198 * ia64-tdep.c (ia64_register_names): Constify.
13199 * infcmd.c (construct_inferior_arguments): Constify.
13200 (path_command, attach_post_wait): Constify.
13201 * language.c (show_range_command, show_case_command)
13202 (unk_lang_error): Constify.
13203 * language.h (language_defn::la_error)
13204 (language_defn::la_name_of_this): Constify.
13205 * linespec.c (decode_line_2): Constify.
13206 * linux-thread-db.c (thread_db_err_str): Constify.
13207 * lm32-tdep.c (lm32_register_name): Constify.
13208 * m2-exp.y (yyerror): Constify.
13209 * m2-lang.h (m2_yyerror): Constify.
13210 * m32r-tdep.c (m32r_register_names): Constify and make static.
13211 * m68hc11-tdep.c (m68hc11_register_names): Constify.
13212 * m88k-tdep.c (m88k_register_name): Constify.
13213 * macroexp.c (appendmem): Constify.
13214 * mdebugread.c (fdr_name, add_data_symbol, parse_type)
13215 (upgrade_type, parse_external, parse_partial_symbols)
13216 (mdebug_next_symbol_text, cross_ref, mylookup_symbol, new_psymtab)
13217 (new_symbol): Constify.
13218 * memattr.c (mem_info_command): Constify.
13219 * mep-tdep.c (register_name_from_keyword): Constify.
13220 * mi/mi-cmd-env.c (mi_cmd_env_path, _initialize_mi_cmd_env):
13221 Constify.
13222 * mi/mi-cmd-stack.c (list_args_or_locals): Constify.
13223 * mi/mi-cmd-var.c (mi_cmd_var_show_attributes): Constify.
13224 * mi/mi-main.c (captured_mi_execute_command): Constify and add
13225 cast.
13226 (mi_execute_async_cli_command): Constify.
13227 * mips-tdep.c (mips_register_name): Constify.
13228 * mn10300-tdep.c (register_name, mn10300_generic_register_name)
13229 (am33_register_name, am33_2_register_name)
13230 * moxie-tdep.c (moxie_register_names): Constify.
13231 * nat/linux-osdata.c (osdata_type): Constify fields.
13232 * nto-tdep.c (nto_parse_redirection): Constify.
13233 * objc-lang.c (lookup_struct_typedef, lookup_objc_class)
13234 (lookup_child_selector): Constify.
13235 (objc_methcall::name): Constify.
13236 * objc-lang.h (lookup_objc_class, lookup_child_selector)
13237 (lookup_struct_typedef): Constify.
13238 * objfiles.c (pc_in_section): Constify.
13239 * objfiles.h (pc_in_section): Constify.
13240 * p-exp.y (struct token::oper): Constify.
13241 (yyerror): Constify.
13242 * p-lang.h (pascal_yyerror): Constify.
13243 * parser-defs.h (op_name_standard): Constify.
13244 (op_print::string): Constify.
13245 (exp_descriptor::op_name): Constify.
13246 * printcmd.c (print_address_symbolic): Constify.
13247 * psymtab.c (print_partial_symbols): Constify.
13248 * python/py-breakpoint.c (stop_func): Constify.
13249 (bppy_get_expression): Constify.
13250 * python/py-cmd.c (cmdpy_completer::name): Constify.
13251 (cmdpy_function): Constify.
13252 * python/py-event.c (evpy_add_attribute)
13253 (gdbpy_initialize_event_generic): Constify.
13254 * python/py-event.h (evpy_add_attribute)
13255 (gdbpy_initialize_event_generic): Constify.
13256 * python/py-evts.c (add_new_registry): Constify.
13257 * python/py-finishbreakpoint.c (outofscope_func): Constify.
13258 * python/py-framefilter.c (get_py_iter_from_func): Constify.
13259 * python/py-inferior.c (get_buffer): Add cast.
13260 * python/py-param.c (parm_constant::name): Constify.
13261 * python/py-unwind.c (fprint_frame_id): Constify.
13262 * python/python.c (gdbpy_parameter_value): Constify.
13263 * remote-fileio.c (remote_fio_func_map): Make 'name' const.
13264 * remote.c (memory_packet_config::name): Constify.
13265 (show_packet_config_cmd, remote_write_bytes)
13266 (remote_buffer_add_string):
13267 * reverse.c (exec_reverse_once): Constify.
13268 * rs6000-tdep.c (variant::name, variant::description): Constify.
13269 * rust-exp.y (rustyyerror): Constify.
13270 * rust-lang.c (rust_op_name): Constify.
13271 * rust-lang.h (rustyyerror): Constify.
13272 * serial.h (serial_ops::name): Constify.
13273 * sh-tdep.c (sh_sh_register_name, sh_sh3_register_name)
13274 (sh_sh3e_register_name, sh_sh2e_register_name)
13275 (sh_sh2a_register_name, sh_sh2a_nofpu_register_name)
13276 (sh_sh_dsp_register_name, sh_sh3_dsp_register_name)
13277 (sh_sh4_register_name, sh_sh4_nofpu_register_name)
13278 (sh_sh4al_dsp_register_name): Constify.
13279 * sh64-tdep.c (sh64_register_name): Constify.
13280 * solib-darwin.c (lookup_symbol_from_bfd): Constify.
13281 * spu-tdep.c (spu_register_name, info_spu_dma_cmdlist): Constify.
13282 * stabsread.c (patch_block_stabs, read_type_number)
13283 (ref_map::stabs, ref_add, process_reference)
13284 (symbol_reference_defined, define_symbol, define_symbol)
13285 (error_type, read_type, read_member_functions, read_cpp_abbrev)
13286 (read_one_struct_field, read_struct_fields, read_baseclasses)
13287 (read_tilde_fields, read_struct_type, read_array_type)
13288 (read_enum_type, read_sun_builtin_type, read_sun_floating_type)
13289 (read_huge_number, read_range_type, read_args, common_block_start)
13290 (find_name_end): Constify.
13291 * stabsread.h (common_block_start, define_symbol)
13292 (process_one_symbol, symbol_reference_defined, ref_add):
13293 * symfile.c (get_section_index, add_symbol_file_command):
13294 * symfile.h (get_section_index): Constify.
13295 * target-descriptions.c (tdesc_type::name): Constify.
13296 (tdesc_free_type): Add cast.
13297 * target.c (find_default_run_target):
13298 (add_deprecated_target_alias, find_default_run_target)
13299 (target_announce_detach): Constify.
13300 (do_option): Constify.
13301 * target.h (add_deprecated_target_alias): Constify.
13302 * thread.c (print_thread_info_1): Constify.
13303 * top.c (deprecated_readline_begin_hook, command_line_input):
13304 Constify.
13305 (init_main): Add casts.
13306 * top.h (handle_line_of_input): Constify.
13307 * tracefile-tfile.c (tfile_write_uploaded_tsv): Constify.
13308 * tracepoint.c (tvariables_info_1, trace_status_mi): Constify.
13309 (tfind_command): Rename to ...
13310 (tfind_command_1): ... this and constify.
13311 (tfind_command): New function.
13312 (tfind_end_command, tfind_start_command): Adjust.
13313 (encode_source_string): Constify.
13314 * tracepoint.h (encode_source_string): Constify.
13315 * tui/tui-data.c (tui_partial_win_by_name): Constify.
13316 * tui/tui-data.h (tui_partial_win_by_name): Constify.
13317 * tui/tui-source.c (tui_set_source_content_nil): Constify.
13318 * tui/tui-source.h (tui_set_source_content_nil): Constify.
13319 * tui/tui-win.c (parse_scrolling_args): Constify.
13320 * tui/tui-windata.c (tui_erase_data_content): Constify.
13321 * tui/tui-windata.h (tui_erase_data_content): Constify.
13322 * tui/tui-winsource.c (tui_erase_source_content): Constify.
13323 * tui/tui.c (tui_enable): Add cast.
13324 * utils.c (defaulted_query): Constify.
13325 (init_page_info): Add cast.
13326 (puts_debug, subset_compare): Constify.
13327 * utils.h (subset_compare): Constify.
13328 * varobj.c (varobj_format_string): Constify.
13329 * varobj.h (varobj_format_string): Constify.
13330 * vax-tdep.c (vax_register_name): Constify.
13331 * windows-nat.c (windows_detach): Constify.
13332 * xcoffread.c (process_linenos, xcoff_next_symbol_text): Constify.
13333 * xml-support.c (gdb_xml_end_element): Constify.
13334 * xml-tdesc.c (tdesc_start_reg): Constify.
13335 * xstormy16-tdep.c (xstormy16_register_name): Constify.
13336 * xtensa-tdep.c (xtensa_find_register_by_name): Constify.
13337 * xtensa-tdep.h (xtensa_register_t::name): Constify.
13338
995816ba
PA
133392017-04-05 Pedro Alves <palves@redhat.com>
13340
13341 * proc-api.c (struct trans): Constify.
13342 (procfs_note): Constify.
13343 * proc-events.c (struct trans, syscall_table):
13344 * proc-flags.c (struct trans): Constify.
13345 * proc-utils.h (procfs_note): Constify.
13346 * proc-why.c (struct trans): Constify.
13347 * procfs.c (dead_procinfo, find_syscall, proc_warn, proc_error)
13348 (procfs_detach): Constify.
13349 * sol-thread.c (struct string_map): Constify.
13350 (td_err_string, td_state_string): Constify.
13351
3e83a920
PA
133522017-04-05 Pedro Alves <palves@redhat.com>
13353
13354 * proc-api.c (procfs_filename): Don't initialize
13355 procfs_filename.
13356 (prepare_to_trace): Assume procfs_filename is non-NULL.
13357 (_initialize_proc_api): Give procfs_filename a default value here.
13358
63160a43
PA
133592017-04-05 Pedro Alves <palves@redhat.com>
13360
13361 * break-catch-throw.c (handle_gnu_v3_exceptions): Constify
13362 'cond_string' parameter.
13363 (extract_exception_regexp): Constify 'string' parameter.
13364 (catch_exception_command_1): Constify.
13365 * breakpoint.c (init_catchpoint)
13366 (create_fork_vfork_event_catchpoint): Constify 'cond_string'
13367 parameter.
13368 (ep_parse_optional_if_clause, catch_fork_command_1)
13369 (catch_exec_command_1): Constify.
13370 * breakpoint.h (init_catchpoint): Constify 'cond_string'
13371 parameter.
13372 (ep_parse_optional_if_clause): Constify.
13373 * cli/cli-utils.c (remove_trailing_whitespace)
13374 (check_for_argument): Constify.
13375 * cli/cli-utils.h (remove_trailing_whitespace): Constify and add
13376 non-const overload.
13377 (check_for_argument): Likewise.
13378
9b2eba3d
PA
133792017-04-05 Pedro Alves <palves@redhat.com>
13380
13381 * event-top.c (command_line_handler): Add cast to execute_command
13382 call.
13383 * record-btrace.c (cmd_record_btrace_bts_start)
13384 (cmd_record_btrace_pt_start, cmd_record_btrace_start)
13385 (cmd_record_btrace_start): Add cast to execute_command call.
13386 * record-full.c (record_full_goto_insn):
13387 * record.c (record_start, record_stop): Add cast to
13388 execute_command_to_string calls.
13389 (cmd_record_start): Add cast to execute_command calls.
13390
2adadf51
PA
133912017-04-05 Pedro Alves <palves@redhat.com>
13392
13393 * python/python-internal.h (gdb_PyArg_ParseTupleAndKeywords): New
13394 static inline function.
13395 * python/py-arch.c (archpy_disassemble): Constify 'keywords'
13396 array and use gdb_PyArg_ParseTupleAndKeywords.
13397 * python/py-cmd.c (cmdpy_init): Likewise.
13398 * python/py-finishbreakpoint.c (bpfinishpy_init): Likewise.
13399 * python/py-inferior.c (infpy_read_memory, infpy_write_memory)
13400 (infpy_search_memory): Likewise.
13401 * python/py-objfile.c (objfpy_add_separate_debug_file)
13402 (gdbpy_lookup_objfile): Likewise.
13403 * python/py-symbol.c (gdbpy_lookup_symbol)
13404 (gdbpy_lookup_global_symbol): Likewise.
13405 * python/py-type.c (gdbpy_lookup_type): Likewise.
13406 * python/py-value.c (valpy_lazy_string, valpy_string): Likewise.
13407 * python/python.c (execute_gdb_command, gdbpy_write, gdbpy_flush):
13408 Likewise.
13409
0d1f4ceb
PA
134102017-04-05 Pedro Alves <palves@redhat.com>
13411
13412 * python/python-internal.h (gdb_PyGetSetDef): New type.
13413 * python/py-block.c (block_object_getset)
13414 (breakpoint_object_getset): Now a gdb_PyGetSetDef array.
13415 * python/py-event.c (event_object_getset)
13416 (finish_breakpoint_object_getset): Likewise.
13417 * python/py-inferior.c (inferior_object_getset): Likewise.
13418 * python/py-infthread.c (thread_object_getset): Likewise.
13419 * python/py-lazy-string.c (lazy_string_object_getset): Likewise.
13420 * python/py-linetable.c (linetable_entry_object_getset): Likewise.
13421 * python/py-objfile.c (objfile_getset): Likewise.
13422 * python/py-progspace.c (pspace_getset): Likewise.
13423 * python/py-record-btrace.c (btpy_insn_getset, btpy_call_getset):
13424 Likewise.
13425 * python/py-record.c (recpy_record_getset): Likewise.
13426 * python/py-symbol.c (symbol_object_getset): Likewise.
13427 * python/py-symtab.c (symtab_object_getset, sal_object_getset):
13428 Likewise.
13429 * python/py-type.c (type_object_getset, field_object_getset):
13430 Likewise.
13431 * python/py-value.c (value_object_getset): Likewise.
13432
4d759979
PA
134332017-04-05 Pedro Alves <palves@redhat.com>
13434
13435 * python/python-internal.h (gdb_PyObject_CallMethod)
13436 (gdb_PyErr_NewException, gdb_PySys_GetObject, gdb_PySys_SetPath):
13437 New functions.
13438 (GDB_PYSYS_SETPATH_CHAR, PyObject_CallMethod, PyErr_NewException)
13439 (PySys_GetObject, PySys_SetPath): New macros.
13440
fdf9e36f
PA
134412017-04-05 Pedro Alves <palves@redhat.com>
13442
13443 * mi/mi-cmd-info.c (mi_cmd_info_os): Call info_osdata instead of
13444 info_osdata_command.
13445 * osdata.c (info_osdata_command): Rename to ...
13446 (info_osdata): ... this. Constify 'type' parameter, and remove
13447 the 'from_tty' parameter. Accept NULL TYPE.
13448 (info_osdata_command): New function.
13449 * osdata.h (info_osdata_command): Remove declaration.
13450 (info_osdata): New declaration.
13451
9f33b8b7
PA
134522017-04-05 Pedro Alves <palves@redhat.com>
13453
13454 * mi/mi-cmd-break.c (mi_cmd_break_insert_1, mi_cmd_break_insert)
13455 (mi_cmd_dprintf_insert, mi_cmd_break_passcount)
13456 (mi_cmd_break_watch, mi_cmd_break_commands): Constify 'command'
13457 parameter.
13458 * mi/mi-cmd-catch.c (mi_cmd_catch_assert, mi_cmd_catch_exception)
13459 (mi_cmd_catch_load, mi_cmd_catch_unload): Constify cmd' parameter.
13460 * mi/mi-cmd-disas.c (mi_cmd_disassemble): Constify 'command'
13461 parameter.
13462 * mi/mi-cmd-env.c (mi_cmd_env_pwd, mi_cmd_env_cd, mi_cmd_env_path)
13463 (mi_cmd_env_dir, mi_cmd_inferior_tty_set, _cmd_inferior_tty_show)
13464 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_file)
13465 (mi_cmd_file_list_exec_source_files)
13466 (mi_cmd_file_list_shared_libraries): Constify 'command' parameter.
13467 * mi/mi-cmd-info.c (mi_cmd_info_ada_exceptions)
13468 (mi_cmd_info_gdb_mi_command, mi_cmd_info_os): Constify 'command'
13469 parameter.
13470 * mi/mi-cmd-stack.c (mi_cmd_enable_frame_filters)
13471 (mi_cmd_stack_list_frames, mi_cmd_stack_info_depth)
13472 (mi_cmd_stack_list_locals, mi_cmd_stack_list_args)
13473 (mi_cmd_stack_list_variables, mi_cmd_stack_select_frame)
13474 (mi_cmd_stack_info_frame): Constify 'command' parameter.
13475 * mi/mi-cmd-target.c (mi_cmd_target_file_get)
13476 (mi_cmd_target_file_put, mi_cmd_target_file_delete): Constify
13477 'command' parameter.
13478 * mi/mi-cmd-var.c (mi_cmd_var_create, mi_cmd_var_delete)
13479 (mi_cmd_var_set_format, mi_cmd_var_set_visualizer)
13480 (mi_cmd_var_set_frozen, mi_cmd_var_show_format)
13481 (mi_cmd_var_info_num_children, mi_cmd_var_list_children)
13482 (mi_cmd_var_info_type, mi_cmd_var_info_path_expression)
13483 (mi_cmd_var_info_expression, mi_cmd_var_show_attributes)
13484 (mi_cmd_var_evaluate_expression, mi_cmd_var_assign)
13485 (mi_cmd_var_update, mi_cmd_enable_pretty_printing)
13486 (mi_cmd_var_set_update_range): Constify 'command' parameter.
13487 * mi/mi-cmds.h (mi_cmd_argv_ftype): Constify 'command' parameter.
13488 * mi/mi-interp.c (mi_cmd_interpreter_exec): Constify 'command'
13489 parameter.
13490 * mi/mi-main.c (mi_cmd_gdb_exit, mi_cmd_exec_next)
13491 (mi_cmd_exec_next_instruction, mi_cmd_exec_step)
13492 (mi_cmd_exec_step_instruction, mi_cmd_exec_finish)
13493 (mi_cmd_exec_return ,mi_cmd_exec_jump, mi_cmd_exec_continue)
13494 (mi_cmd_exec_interrupt, mi_cmd_exec_run, mi_cmd_target_detach)
13495 (mi_cmd_target_flash_erase, mi_cmd_thread_select)
13496 (mi_cmd_thread_list_ids, mi_cmd_thread_info)
13497 (mi_cmd_list_thread_groups, mi_cmd_data_list_register_names)
13498 (mi_cmd_data_list_changed_registers)
13499 (mi_cmd_data_write_register_values)
13500 (mi_cmd_data_evaluate_expression, mi_cmd_data_read_memory)
13501 (mi_cmd_data_read_memory_bytes, mi_cmd_data_write_memory)
13502 (mi_cmd_data_write_memory_bytes, mi_cmd_enable_timings)
13503 (mi_cmd_list_features, mi_cmd_list_target_features)
13504 (mi_cmd_add_inferior, mi_cmd_remove_inferior)
13505 (mi_cmd_trace_define_variable, mi_cmd_trace_list_variables)
13506 (mi_cmd_trace_find, mi_cmd_trace_save, mi_cmd_trace_start)
13507 (mi_cmd_trace_status, mi_cmd_trace_stop, mi_cmd_ada_task_info)
13508 (mi_cmd_trace_frame_collected): Constify 'command'
13509 parameter.
13510 * mi/mi-symbol-cmds.c (mi_cmd_symbol_list_lines): Constify
13511 'command' parameter.
13512
67cb5b2d
PA
135132017-04-05 Pedro Alves <palves@redhat.com>
13514
13515 * ada-lang.c (ada_completer_word_break_characters): Now a const
13516 array.
13517 (ada_get_gdb_completer_word_break_characters): Constify.
13518 * completer.c (gdb_completer_command_word_break_characters)
13519 (gdb_completer_file_name_break_characters)
13520 (gdb_completer_quote_characters): Now const arrays.
13521 (get_gdb_completer_quote_characters): Constify.
13522 (set_rl_completer_word_break_characters): New function.
13523 (set_gdb_completion_word_break_characters)
13524 (complete_line_internal): Use it.
13525 * completer.h (get_gdb_completer_quote_characters): Constify.
13526 (set_rl_completer_word_break_characters): Declare.
13527 * f-lang.c (f_word_break_characters): Constify.
13528 * language.c (default_word_break_characters): Constify.
13529 * language.h (language_defn::la_word_break_characters): Constify.
13530 (default_word_break_characters): Constify.
13531 * top.c (init_main): Use set_rl_completer_word_break_characters.
13532
7a114964
PA
135332017-04-05 Pedro Alves <palves@redhat.com>
13534
13535 * aix-thread.c (aix_thread_pid_to_str)
13536 (aix_thread_extra_thread_info): Constify.
13537 * bsd-kvm.c (bsd_kvm_pid_to_str): Constify.
13538 * bsd-uthread.c (bsd_uthread_extra_thread_info)
13539 (bsd_uthread_pid_to_str): Constify.
13540 * corelow.c (core_pid_to_str): Constify.
13541 * darwin-nat.c (darwin_pid_to_str): Constify.
13542 * fbsd-nat.c (fbsd_pid_to_str): Constify.
13543 * fbsd-tdep.c (fbsd_core_pid_to_str, gdbarch_core_pid_to_str):
13544 Constify.
13545 * gnu-nat.c (gnu_pid_to_str): Constify.
13546 * go32-nat.c (go32_pid_to_str): Constify.
13547 * i386-cygwin-tdep.c (i386_windows_core_pid_to_str): Constify.
13548 * inf-ptrace.c (inf_ptrace_pid_to_str): Constify.
13549 * inferior.c (inferior_pid_to_str): Constify.
13550 * linux-nat.c (linux_nat_pid_to_str): Constify.
13551 * linux-tdep.c (linux_core_pid_to_str): Constify.
13552 * linux-thread-db.c (thread_db_pid_to_str)
13553 (thread_db_extra_thread_info): Constify.
13554 * nto-tdep.c (nto_extra_thread_info): Constify.
13555 * nto-tdep.h (nto_extra_thread_info): Constify.
13556 * obsd-nat.c (obsd_pid_to_str): Constify.
13557 * procfs.c (procfs_pid_to_str): Constify.
13558 * ravenscar-thread.c (ravenscar_extra_thread_info)
13559 (ravenscar_pid_to_str): Constify.
13560 * remote-sim.c (gdbsim_pid_to_str): Constify.
13561 * remote.c (remote_threads_extra_info, remote_pid_to_str):
13562 Constify.
13563 * sol-thread.c (solaris_pid_to_str): Constify.
13564 * sol2-tdep.c (sol2_core_pid_to_str): Constify.
13565 * sol2-tdep.h (sol2_core_pid_to_str): Constify.
13566 * target.c (default_pid_to_str, target_pid_to_str)
13567 (normal_pid_to_str, default_pid_to_str): Constify.
13568 * target.h (target_ops::to_pid_to_str)
13569 (target_ops::to_extra_thread_info): Constify.
13570 (target_pid_to_str, normal_pid_to_str): Constify.
13571 * windows-nat.c (windows_pid_to_str): Constify.
13572 * gdbarch.sh (core_pid_to_str): Constify.
13573 * target-delegates.c: Regenerate.
13574 * gdbarch.h, gdbarch.c: Regenerate.
13575
69bbf465
PA
135762017-04-05 Pedro Alves <palves@redhat.com>
13577
13578 * main.c (captured_main_1): Use gdb::unique_xmalloc_ptr to manage
13579 the memory of the temporary warning_pre_print override.
13580 * utils.c (warning_pre_print): Constify.
13581 * utils.h (warning_pre_print): Constify.
13582
be47f9e8
PA
135832017-04-05 Pedro Alves <palves@redhat.com>
13584
13585 * cli/cli-cmds.c (shell_escape): Constify 'arg' parameter.
13586 (shell_command): New function.
13587 (make_command): Use std::string.
13588 (init_cli_cmds): Register shell_command instead of shell_escape.
13589
bde6261a
PA
135902017-04-05 Pedro Alves <palves@redhat.com>
13591
13592 * breakpoint.c (dprintf_function, dprintf_channel): Don't initialize.
13593 * tracepoint.c (default_collect): Don't initialize.
13594
b38ef47f
PA
135952017-04-05 Pedro Alves <palves@redhat.com>
13596
13597 * macroexp.c (macro_buffer::shared): Now a bool.
13598 (init_buffer): Update.
13599 (init_shared_buffer): Constify 'addr' parameter.
13600 (substitute_args, expand, macro_expand, macro_expand_next): Remove
13601 casts.
13602
f995bbe8
PA
136032017-04-05 Pedro Alves <palves@redhat.com>
13604
13605 * arm-tdep.c (show_disassembly_style_sfunc): Constify local.
13606 * disasm.c (set_disassembler_options): Constify local.
13607 * i386-tdep.c (i386_print_insn): Remove cast and FIXME comment.
13608
4a596fe2
SDJ
136092017-04-05 Sergio Durigan Junior <sergiodj@redhat.com>
13610
13611 PR gdb/21352
13612 * tracefile.c (tsave_command): Fix argument parsing for '-r'
13613 option.
13614
2cad08ea
YQ
136152017-04-05 Yao Qi <yao.qi@linaro.org>
13616
13617 * frame.c (frame_unwind_register_unsigned): Call
13618 frame_unwind_register_value.
13619
55a98976
YQ
136202017-04-05 Yao Qi <yao.qi@linaro.org>
13621
13622 * gdb.threads/thread-specific-bp.exp (check_thread_specific_breakpoint):
13623 Use gdb_test_multiple, and don't match anchor.
13624
4ac40124
PA
136252017-04-05 Pedro Alves <palves@redhat.com>
13626
13627 * MAINTAINERS (Global Maintainers): Add Simon Marchi.
13628 (Write After Approval): Remove Simon Marchi.
13629
c053b654
PA
136302017-04-05 Pedro Alves <palves@redhat.com>
13631
13632 * common/gdb_optional.h (optional::optional): Make constexpr and
13633 initialize m_dummy.
13634
4c7bf4f9
JB
136352017-04-04 John Baldwin <jhb@FreeBSD.org>
13636
13637 * amd64-fbsd-tdep.c: Remove "bsd-uthread.h" include.
13638 (amd64fbsd_jmp_buf_reg_offset): Remove.
13639 (amd64fbsd_supply_uthread): Remove function.
13640 (amd64fbsd_collect_uthread): Remove function.
13641 (amd64fbsd_init_abi): Don't set bsd-uthread callbacks.
13642 * configure.tgt (i[34567]86-*-freebsd*): Remove bsd-uthread.o.
13643 (x86_64-*-freebsd*): Remove bsd-uthread.o.
13644 (fbsd-nat.c): Update comment.
13645 * i386-fbsd-tdep.c: Remove "bsd-uthread.h" include.
13646 (i386fbsd_jmp_buf_reg_offset): Remove.
13647 (i386fbsd_supply_uthread): Remove function.
13648 (i386fbsd_collect_uthread): Remove function.
13649 (i386fbsd_init_abi): Don't set bsd-uthread callbacks.
13650
1e1a8bef
JB
136512017-04-04 John Baldwin <jhb@FreeBSD.org>
13652
13653 * Makefile.in (ALL_64_TARGET_OBS): Remove alpha-fbsd-tdep.o.
13654 (ALLDEPFILES): Remove alpha-fbsd-tdep.c
13655 * NEWS: Mention that support for FreeBSD/alpha was removed.
13656 * alpha-fbsd-tdep.c: Delete file.
13657 * config/alpha/fbsd.mh: Delete file.
13658 * configure.host: Delete alpha*-*-freebsd* and
13659 alpha*-*-kfreebsd*-gnu.
13660 * configure.tgt: Delete alpha*-*-freebsd* and
13661 alpha*-*-kfreebsd*-gnu.
13662
49907934
JB
136632017-04-04 John Baldwin <jhb@FreeBSD.org>
13664
13665 * amd64-bsd-nat.c (amd64bsd_fetch_inferior_registers,
13666 amd64bsd_store_inferior_registers): Use ptid from regcache.
13667
6f77053d
PA
136682017-04-04 Pedro Alves <palves@redhat.com>
13669
13670 * dwarf2read.c (lnp_state_machine): Now a class. Initialize all
13671 data fields, make them private and add "m_" prefixes.
13672 (lnp_state_machine::lnp_state_machine): New ctor.
13673 (record_line, check_line_address, handle_set_discriminator)
13674 (handle_set_address, handle_advance_pc, handle_special_opcode)
13675 (handle_advance_line, handle_set_file, handle_negate_stmt)
13676 (handle_const_add_pc, handle_fixed_advance_pc, handle_copy)
13677 (end_sequence, advance_line): New methods.
13678 (m_gdbarch, m_record_lines_p): New fields.
13679 (lnp_reader_state): Delete.
13680 (dwarf_record_line): Rename to ...
13681 (lnp_state_machine::record_line): ... adjust.
13682 (init_lnp_state_machine): Delete.
13683 (lnp_state_machine::lnp_state_machine): New.
13684 (check_line_address): Rename to ...
13685 (lnp_state_machine::check_line_address): This.
13686 (dwarf_decode_lines_1): Remove reference to "reader_state".
13687 Adjust lnp_state_machine having a non-default ctor. Use bool.
13688 State machine internal state manipulation moved to
13689 lnp_state_machine methods.
13690
9c541725
PA
136912017-04-04 Pedro Alves <palves@redhat.com>
13692
13693 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
13694 unittests/offset-type-selftests.c.
13695 (SUBDIR_UNITTESTS_OBS): Add offset-type-selftests.o.
13696 * common/offset-type.h: New file.
13697 * common/preprocessor.h: New file.
13698 * common/traits.h: New file.
13699 * common/valid-expr.h: New file.
13700 * dwarf2expr.c: Include "common/underlying.h". Adjust to use
13701 sect_offset and cu_offset strong typedefs throughout.
13702 * dwarf2expr.h: Adjust to use sect_offset and cu_offset strong
13703 typedefs throughout.
13704 * dwarf2loc.c: Include "common/underlying.h". Adjust to use
13705 sect_offset and cu_offset strong typedefs throughout.
13706 * dwarf2read.c: Adjust to use sect_offset and cu_offset strong
13707 typedefs throughout.
13708 * gdbtypes.h: Include "common/offset-type.h".
13709 (cu_offset): Now an offset type (strong typedef) instead of a
13710 struct.
13711 (sect_offset): Likewise.
13712 (union call_site_parameter_u): Rename "param_offset" field to
13713 "param_cu_off".
13714 * unittests/offset-type-selftests.c: New file.
13715
ecfb656c
PA
137162017-04-04 Pedro Alves <palves@redhat.com>
13717
13718 * common/underlying.h: New file.
13719 * dwarf2read.c: Include "common/gdb_optional.h" and
13720 "common/underlying.h".
13721 (dir_index, file_name_index): New types.
13722 (file_entry): Use them.
13723 (file_entry::include): Use to_underlying.
13724 (line_header::add_file_name): Use dir_index.
13725 (read_formatted_entries): Use gdb::optional. Read form before
13726 writting to file_entry.
13727 (dwarf_decode_line_header): Use dir_index.
13728 (lnp_state_machine::current_file): Use to_underlying.
13729 (lnp_state_machine::file): Change type to file_name_index.
13730 (dwarf_record_line): Use to_underlying.
13731 (init_lnp_state_machine): Use file_name_index.
13732 (dwarf_decode_lines_1): Use dir_index and file_name_index.
13733
d194f1fe
PA
137342017-04-04 Pedro Alves <palves@redhat.com>
13735
13736 * common/gdb_optional.h (gdb::optiona): Add operator->, operator*,
13737 operator bool, has_value and get methods.
13738
fff8551c
PA
137392017-04-04 Pedro Alves <palves@redhat.com>
13740
13741 * dwarf2read.c (struct file_entry): Add ctors, and initialize all
13742 fields.
13743 (line_header): Initialize all data fields. Change type of
13744 standard_opcode_lengths to std::unique_ptr<unsigned char[]>.
13745 Change type of include_dirs to std::vector<const char *>. Remove
13746 num_include_dirs, include_dirs_size. Change type of file_names to
13747 std::vector<file_entry>. Remove num_file_names, file_names_size.
13748 (line_header::line_header): New.
13749 (line_header::add_include_dir, line_header::add_file_name): New
13750 methods.
13751 (line_header::include_dir_at): Remove NULL check.
13752 (line_header::file_name_at): Add const overload.
13753 (line_header_up): New unique_ptr typedef.
13754 (dw2_get_file_names_reader): Use line_header_up. Adjust to use
13755 std::vector. Remove free_line_header call.
13756 (dwarf2_build_include_psymtabs): Use line_header_up. Remove
13757 free_line_header call.
13758 (free_cu_line_header): Delete.
13759 (handle_DW_AT_stmt_list, handle_DW_AT_stmt_list)
13760 (setup_type_unit_groups): Use line_header_up instead of cleanups.
13761 Adjust to use std::vector.
13762 (free_line_header): Delete.
13763 (free_line_header_voidp): Use delete.
13764 (add_include_dir): Replace with ...
13765 (line_header::add_include_dir): ... this method. Use std::vector.
13766 (add_file_name): Replace with ...
13767 (line_header::add_file_name): ... this method. Use std::vector.
13768 (add_include_dir_stub): Delete.
13769 (read_formatted_entries): Remove memset.
13770 (dwarf_decode_line_header): Return a line_header_up instead of a
13771 raw pointer. Remove cleanup handling. Pass lambdas to
13772 read_formatted_entries. Adjust to use line_header methods.
13773 (dwarf_decode_lines_1): Adjust to use line_header methods.
13774 (dwarf_decode_lines, file_file_name, file_full_name): Adjust to
13775 use std::vector.
13776
d62a8ae2
SM
137772017-04-04 Simon Marchi <simon.marchi@polymtl.ca>
13778
13779 * remote.c (set_general_thread, set_continue_thread): Use ptid_t
13780 instead of struct ptid.
13781
db3a1dc7
AH
137822017-05-04 Alan Hayward <alan.hayward@arm.com>
13783
13784 * frame.c (get_frame_register_bytes): Unwind using value.
13785 (put_frame_register_bytes): Likewise.
13786
b1b45502
IB
137872017-03-30 Iain Buclaw <ibuclaw@gdcproject.org>
13788
13789 * d-exp.y (type_aggregate_p): Treat TYPE_CODE_MODULE as being
13790 aggregate-like.
13791
ec13808e
JK
137922017-03-29 Jan Kratochvil <jan.kratochvil@redhat.com>
13793
13794 * auto-load.c (auto_load_section_scripts): Check SEC_HAS_CONTENTS.
13795
12316564
YQ
137962017-03-29 Yao Qi <yao.qi@linaro.org>
13797
13798 * gdbthread.h (struct thread_info): Declare constructor and
13799 destructor. Add some in-class member initializers.
13800 * thread.c (free_thread): Remove.
13801 (init_thread_list): Call delete instead of free_thread.
13802 (new_thread): Call thread_info constructor.
13803 (thread_info::thread_info): New function.
13804 (thread_info::~thread_info): New function.
13805 (delete_thread_1): Call delete instead of free_thread.
13806 (make_cleanup_restore_current_thread): Move tp and frame to
13807 inner block.
13808
fe5f7374
AK
138092017-03-28 Anton Kolesov <anton.kolesov@synopsys.com>
13810
13811 * arc-tdep.c (arc_frame_cache): Add support for prologue analysis.
13812 (arc_skip_prologue): Likewise.
13813 (arc_make_frame_cache): Likewise.
13814 (arc_pv_get_operand): New function.
13815 (arc_is_in_prologue): Likewise.
13816 (arc_analyze_prologue): Likewise.
13817 (arc_print_frame_cache): Likewise.
13818 (MAX_PROLOGUE_LENGTH): New constant.
13819
eea78757
AK
138202017-03-28 Anton Kolesov <anton.kolesov@synopsys.com>
13821
13822 * configure.tgt: Add arc-insn.o.
13823 * arc-tdep.c (arc_delayed_print_insn): Make non-static.
13824 (dump_arc_instruction_command): New function.
13825 (arc_fprintf_disasm): Likewise.
13826 (arc_disassemble_info): Likewise.
13827 (arc_insn_get_operand_value): Likewise.
13828 (arc_insn_get_operand_value_signed): Likewise.
13829 (arc_insn_get_memory_base_reg): Likewise.
13830 (arc_insn_get_memory_offset): Likewise.
13831 (arc_insn_get_branch_target): Likewise.
13832 (arc_insn_dump): Likewise.
13833 (arc_insn_get_linear_next_pc): Likewise.
13834 * arc-tdep.h (arc_delayed_print_insn): Add function declaration.
13835 (arc_disassemble_info): Likewise.
13836 (arc_insn_get_branch_target): Likewise.
13837 (arc_insn_get_linear_next_pc): Likewise.
13838 * NEWS: Mention new "maint print arc arc-instruction".
13839
3be78afd
AK
138402017-03-28 Anton Kolesov <anton.kolesov@synopsys.com>
13841
13842 * arc-tdep (maintenance_print_arc_list): New variable.
13843 (maintenance_print_arc_command): New function.
13844
296ec4fa
AK
138452017-03-28 Anton Kolesov <anton.kolesov@synopsys.com>
13846
13847 * arc-tdep.c (core_v2_register_names, core_arcompact_register_names)
13848 Add "limm" and "reserved".
13849 (arc_cannot_fetch_register, arc_cannot_store_register): Add
13850 ARC_RESERVED_REGNUM and ARC_LIMM_REGNUM.
13851 * arc-tdep.h (arc_regnum): Likewise.
13852
f74f865e
MF
138532017-03-27 Max Filippov <jcmvbkbc@gmail.com>
13854
13855 * xtensa-linux-nat.c (fill_gregset): Call regcache_raw_collect
13856 for THREADPTR register.
13857 (supply_gregset_reg): Call regcache_raw_supply for THREADPTR
13858 register.
13859 * xtensa-tdep.c (XTENSA_DBREGN_UREG): New definition.
13860 (xtensa_derive_tdep): Initialize tdep->threadptr_regnum.
13861 * xtensa-tdep.h (gdbarch_tdep::threadptr_regnum): New field.
13862
0d0bf81a
MF
138632017-03-27 Max Filippov <jcmvbkbc@gmail.com>
13864
13865 * xtensa-tdep.c (xtensa_pseudo_register_read): Treat all
13866 registers above gdbarch_num_regs (gdbarch) as privileged in
13867 call0 ABI.
13868
0ce4291e
MF
138692017-03-27 Max Filippov <jcmvbkbc@gmail.com>
13870
13871 * xtensa-linux-nat.c (fill_gregset): Call regcache_raw_collect
13872 for a single specified register or for all registers in
13873 a0_base..a0_base + C0_NREGS range.
13874 (supply_gregset_reg): Call regcache_raw_supply for a single
13875 specified register or for all registers in a0_base..a0_base +
13876 C0_NREGS range.
13877
c56054f9
MF
138782017-03-27 Max Filippov <jcmvbkbc@gmail.com>
13879
13880 * arch/xtensa.h (C0_NREGS): Add definition.
13881 * xtensa-tdep.c (C0_NREGS): Remove definition.
13882
a4398628
MF
138832017-03-27 Max Filippov <jcmvbkbc@gmail.com>
13884
13885 * xtensa-tdep.c (xtensa_scan_prologue, call0_analyze_prologue):
13886 Drop xtensa_default_isa initialization.
13887 (xtensa_gdbarch_init): Initialize xtensa_default_isa.
13888
8c43009f
PA
138892017-03-27 Pedro Alves <palves@redhat.com>
13890
13891 * dwarf2read.c (file_entry) <dir_index>: Add comment.
13892 (file_entry::include_dir): New method.
13893 (line_header::include_dir_at, line_header::file_name_at): New
13894 methods.
13895 (setup_type_unit_groups, setup_type_unit_groups)
13896 (psymtab_include_file_name): Simplify using the new methods.
13897 (lnp_state_machine) <the_line_header>: New field.
13898 <file>: Add comment.
13899 (lnp_state_machine::current_file): New method.
13900 (dwarf_record_line): Simplify using the new methods.
13901 (init_lnp_state_machine): Initialize the "the_line_header" field.
13902 (dwarf_decode_lines_1, dwarf_decode_lines, file_file_name):
13903 Simplify using the new methods.
13904
a7e80b9e
PA
139052017-03-27 Pedro Alves <palves@redhat.com>
13906
13907 * cp-name-parser.y (make_empty): Delete.
13908 (demangler_special, nested_name, ptr_operator, array_indicator)
13909 (direct_declarator, declarator_1): Use fill_comp instead of
13910 make_empty.
13911
21047726
PA
139122017-03-27 Pedro Alves <palves@redhat.com>
13913
13914 * xml-support.h (gdb_xml_debug): Pass a "first-to-check" argument
13915 to ATTRIBUTE_PRINTF.
13916 * solib-target.c (library_list_start_list): Print "string" not
13917 "version".
13918 * xml-tdesc.c (tdesc_start_field): Pass "field_name" to
13919 gdb_xml_error call.
13920
d721ba37
PA
139212017-03-27 Pedro Alves <palves@redhat.com>
13922
13923 * dwarf2read.c (struct file_and_directory): New.
13924 (dwarf2_get_dwz_file): Adjust to use std::string.
13925 (dw2_get_file_names_reader): Adjust to use file_and_directory.
13926 (find_file_and_directory): Adjust to return a file_and_directory
13927 object.
13928 (read_file_scope): Adjust to use file_and_directory. Remove
13929 make_cleanup/do_cleanups calls.
13930 (open_and_init_dwp_file): Adjust to use std::string. Remove
13931 make_cleanup/do_cleanups calls.
13932 * python/python.c (do_start_initialization): Adjust to ldirname
13933 returning a std::string.
13934 * utils.c (ldirname): Now returns a std::string.
13935 * utils.h (ldirname): Change return type to std::string.
13936 * xml-syscall.c (xml_init_syscalls_info): Adjust to ldirname
13937 returning a std::string.
13938 * xml-tdesc.c (file_read_description_xml): Likewise.
13939
ed771251
AH
139402017-03-24 Alan Hayward <alan.hayward@arm.com>
13941
13942 * regcache.c (regcache_debug_print_register): New function.
13943 * regcache.h (regcache_debug_print_register): New declaration.
13944 * target.c (debug_print_register): Remove.
13945 (target_fetch_registers): Call regcache_debug_print_register.
13946 (target_store_registers): Likewise.
13947
568c1b9f
PB
139482017-03-24 Pádraig Brady <pbrady@fb.com>
13949
13950 * dwarf2read.c (setup_type_unit_groups): Ensure dir_index doesn't
13951 reference beyond the 'lh->include_dirs' array before accessing to
13952 it.
13953 (psymtab_include_file_name): Likewise.
13954 (dwarf_decode_lines_1): Likewise.
13955 (dwarf_decode_lines): Likewise.
13956 (file_file_name): Likewise.
13957
3e00d44f
SM
139582017-03-23 Simon Marchi <simon.marchi@ericsson.com>
13959
13960 * fbsd-tdep.c (fbsd_corefile_thread): Don't set/restore
13961 inferior_ptid.
13962 * proc-service.c (ps_lgetregs, ps_lsetregs, ps_lgetfpregs,
13963 ps_lsetfpregs): Likewise.
13964 * regcache.c (regcache_raw_update, regcache_raw_write): Likewise.
13965 * sol-thread.c (ps_lgetregs, ps_lsetregs, ps_lgetfpregs,
13966 ps_lsetfpregs): Likewise.
13967 * target.c (target_fetch_registers, target_store_registers):
13968 Remove asserts.
13969
077ae656
AH
139702017-03-23 Alan Hayward <alan.hayward@arm.com>
13971
13972 * sol-thread.c (sol_thread_store_registers): Remove regcache calls.
13973
1e2b521d
YQ
139742017-03-23 Yao Qi <yao.qi@linaro.org>
13975
13976 * aarch64-tdep.c (aarch64_process_record_test): Declare.
13977 (_initialize_aarch64_tdep): Register it.
13978 (aarch64_record_load_store): Handle PRFM instruction.
13979 (aarch64_process_record_test): New function.
13980
33877125
YQ
139812017-03-23 Yao Qi <yao.qi@linaro.org>
13982
13983 * aarch64-tdep.c (aarch64_record_load_store): Fix code
13984 indentation.
13985
a0eef940
YQ
139862017-03-23 Yao Qi <yao.qi@linaro.org>
13987
13988 * aarch64-tdep.c: Remove AARCH64_RECORD_FAILURE.
13989
3f2a3564
PR
139902017-03-23 Philipp Rudo <prudo@linux.vnet.ibm.com>
13991
13992 python/python.c (do_start_initialization): Fix memory leak.
13993
b67aeab0
SM
139942017-03-22 Simon Marchi <simon.marchi@polymtl.ca>
13995
13996 * inf-ptrace.c (inf_ptrace_xfer_partial): Get pid from ptid
13997 using get_ptrace_pid.
13998 * linux-nat.c (linux_nat_xfer_partial): Don't set/restore
13999 inferior_ptid.
14000 (linux_proc_xfer_partial, linux_proc_xfer_spu): Use lwp of
14001 inferior_ptid instead of pid.
14002
ffdbe864
YQ
140032017-03-22 Yao Qi <yao.qi@linaro.org>
14004
14005 * aarch64-tdep.c: Wrap locally used classes in anonymous
14006 namespace.
14007 * arm-tdep.c: Likewise.
14008 * linespec.c: Likewise.
14009 * ui-out.c: Likewise.
14010
9d736fbf
JG
140112017-03-22 Jonah Graham <jonah@kichwacoders.com>
14012
14013 PR gdb/19637
14014 * python/lib/gdb/printer/bound_registers.py: Import sys.
14015
3de88e9a
SM
140162017-03-21 Simon Marchi <simon.marchi@ericsson.com>
14017
14018 * windows-nat.c (do_windows_fetch_inferior_registers): Add
14019 windows_thread_info parameter and use it instead of
14020 current_thread.
14021 (windows_fetch_inferior_registers): Don't set current_thread,
14022 pass the thread to do_windows_fetch_inferior_registers. Use
14023 ptid from regcache instead of inferior_ptid.
14024 (do_windows_store_inferior_registers): Add windows_thread_info
14025 parameter and use it instead of current_thread.
14026 (windows_store_inferior_registers): Don't set current_thread,
14027 pass the thread to do_windows_store_inferior_registers. Use
14028 ptid from regcache instead of inferior_ptid.
14029
0e7b8f61
SM
140302017-03-21 Simon Marchi <simon.marchi@ericsson.com>
14031
14032 * ser-mingw.c (ser_windows_raw): Remove reference to
14033 struct serial::current_timeout.
14034
5badf10a
IR
140352017-03-21 Ivo Raisr <ivo.raisr@oracle.com>
14036
14037 PR tdep/20928
14038 * gdb/sparc-tdep.h (gdbarch_tdep) <sparc64_ccr_type>: New field.
14039 * gdb/sparc64-tdep.c (sparc64_ccr_type): New function.
14040 (sparc64_fsr_type): Fix %fsr decoding.
14041
cee59b3f
TW
140422017-03-21 Tim Wiederhake <tim.wiederhake@intel.com>
14043
14044 * python/py-record-btrace.c (btpy_insn_data): Change return type
14045 for Python 2.
14046
639a9038
SM
140472017-03-20 Simon Marchi <simon.marchi@polymtl.ca>
14048
14049 * spu-linux-nat.c (spu_fetch_inferior_registers,
14050 spu_store_inferior_registers): Use ptid from regcache, set and
14051 restore inferior_ptid.
14052 * spu-multiarch.c (spu_fetch_registers, spu_store_registers):
14053 Likewise.
14054
bcc0c096
SM
140552017-03-20 Simon Marchi <simon.marchi@polymtl.ca>
14056
14057 * i386-linux-nat.c (fetch_register, store_register,
14058 i386_linux_fetch_inferior_registers,
14059 i386_linux_store_inferior_registers): Use ptid from regcache.
14060 * ia64-linux-nat.c (ia64_linux_fetch_register,
14061 ia64_linux_store_register): Likewise.
14062 * inf-ptrace.c (inf_ptrace_fetch_register,
14063 inf_ptrace_store_register): Likewise.
14064 * m32r-linux-nat.c (m32r_linux_fetch_inferior_registers,
14065 m32r_linux_store_inferior_registers): Likewise.
14066 * m68k-bsd-nat.c (m68kbsd_fetch_inferior_registers,
14067 m68kbsd_store_inferior_registers): Likewise.
14068 * m68k-linux-nat.c (fetch_register, store_register,
14069 m68k_linux_fetch_inferior_registers,
14070 m68k_linux_store_inferior_registers): Likewise.
14071 * m88k-bsd-nat.c (m88kbsd_fetch_inferior_registers,
14072 m88kbsd_store_inferior_registers): Likewise.
14073 * mips-fbsd-nat.c (mips_fbsd_fetch_inferior_registers,
14074 mips_fbsd_store_inferior_registers): Likewise.
14075 * mips-linux-nat.c (mips64_linux_regsets_fetch_registers,
14076 mips64_linux_regsets_store_registers): Likewise.
14077 * mips-nbsd-nat.c (mipsnbsd_fetch_inferior_registers,
14078 mipsnbsd_store_inferior_registers): Likewise.
14079 * mips-obsd-nat.c (mips64obsd_fetch_inferior_registers,
14080 mips64obsd_store_inferior_registers): Likewise.
14081 * nto-procfs.c (procfs_fetch_registers, procfs_store_registers):
14082 Likewise.
14083 * ppc-fbsd-nat.c (ppcfbsd_fetch_inferior_registers,
14084 ppcfbsd_store_inferior_registers): Likewise.
14085 * ppc-linux-nat.c (ppc_linux_fetch_inferior_registers,
14086 ppc_linux_store_inferior_registers): Likewise.
14087 * ppc-nbsd-nat.c (ppcnbsd_fetch_inferior_registers,
14088 ppcnbsd_store_inferior_registers): Likewise.
14089 * ppc-obsd-nat.c (ppcobsd_fetch_registers,
14090 ppcobsd_store_registers): Likewise.
14091 * procfs.c (procfs_fetch_registers, procfs_store_registers):
14092 Likewise.
14093 * ravenscar-thread.c (ravenscar_fetch_registers,
14094 ravenscar_store_registers, ravenscar_prepare_to_store):
14095 Likewise.
14096 * record-btrace.c (record_btrace_fetch_registers,
14097 record_btrace_store_registers, record_btrace_prepare_to_store):
14098 Likewise.
14099 * remote-sim.c (gdbsim_fetch_register, gdbsim_store_register):
14100 Lookup inferior using ptid from regcache, instead of
14101 current_inferior.
14102 * remote.c (remote_fetch_registers, remote_store_registers): Use
14103 ptid from regcache.
14104 * rs6000-nat.c (fetch_register, store_register): Likewise.
14105 * s390-linux-nat.c (s390_linux_fetch_inferior_registers,
14106 s390_linux_store_inferior_registers): Likewise.
14107 * sh-nbsd-nat.c (shnbsd_fetch_inferior_registers,
14108 shnbsd_store_inferior_registers): Likewise.
14109 * sol-thread.c (sol_thread_fetch_registers,
14110 sol_thread_store_registers): Likewise.
14111 * sparc-nat.c (sparc_fetch_inferior_registers,
14112 sparc_store_inferior_registers): Likewise.
14113 * tilegx-linux-nat.c (fetch_inferior_registers,
14114 store_inferior_registers): Likewise.
14115 * vax-bsd-nat.c (vaxbsd_fetch_inferior_registers,
14116 vaxbsd_store_inferior_registers): Likewise.
14117 * xtensa-linux-nat.c (fetch_gregs, store_gregs, fetch_xtregs,
14118 store_xtregs): Likewise.
14119
c0f55cc6
AV
141202017-03-20 Artemiy Volkov <artemiyv@acm.org>
14121
14122 PR gdb/14441
14123 * NEWS: Mention support for rvalue references in GDB and python.
14124 * doc/gdb.texinfo (C Plus Plus Expressions): Mention that GDB
14125 supports both lvalue and rvalue references.
14126
15c0a2a9
AV
141272017-03-20 Artemiy Volkov <artemiyv@acm.org>
14128
14129 PR gdb/14441
14130 * gdbtypes.c (rank_one_type): Implement overloading
14131 resolution rules regarding rvalue references.
14132
aa006118
AV
141332017-03-20 Artemiy Volkov <artemiyv@acm.org>
14134
14135 PR gdb/14441
14136 * aarch64-tdep.c (aarch64_type_align)
14137 (aarch64_extract_return_value, aarch64_store_return_value): Change
14138 lvalue reference type checks to general reference type checks.
14139 * amd64-tdep.c (amd64_classify): Likewise.
14140 * amd64-windows-tdep.c (amd64_windows_passed_by_integer_register):
14141 Likewise.
14142 * arm-tdep.c (arm_type_align, arm_extract_return_value)
14143 (arm_store_return_value): Likewise.
14144 * ax-gdb.c (gen_fetch, gen_cast): Likewise.
14145 * c-typeprint.c (c_print_type): Likewise.
14146 * c-varobj.c (adjust_value_for_child_access, c_value_of_variable)
14147 (cplus_number_of_children, cplus_describe_child): Likewise.
14148 * compile/compile-c-symbols.c (generate_vla_size): Likewise.
14149 * completer.c (expression_completer): Likewise.
14150 * cp-support.c (make_symbol_overload_list_adl_namespace):
14151 Likewise.
14152 * darwin-nat-info.c (info_mach_region_command): Likewise.
14153 * dwarf2loc.c (entry_data_value_coerce_ref)
14154 (value_of_dwarf_reg_entry): Likewise.
14155 * eval.c (ptrmath_type_p, evaluate_subexp_standard)
14156 (evaluate_subexp_for_address, evaluate_subexp_for_sizeof):
14157 Likewise.
14158 * findvar.c (extract_typed_address, store_typed_address):
14159 Likewise.
14160 * gdbtypes.c (rank_one_type): Likewise.
14161 * hppa-tdep.c (hppa64_integral_or_pointer_p): Likewise.
14162 * infcall.c (value_arg_coerce): Likewise.
14163 * language.c (pointer_type): Likewise.
14164 * m32c-tdep.c (m32c_reg_arg_type, m32c_m16c_address_to_pointer):
14165 Likewise.
14166 * m88k-tdep.c (m88k_integral_or_pointer_p): Likewise.
14167 * mn10300-tdep.c (mn10300_type_align): Likewise.
14168 * msp430-tdep.c (msp430_push_dummy_call): Likewise.
14169 * ppc-sysv-tdep.c (do_ppc_sysv_return_value)
14170 (ppc64_sysv_abi_push_param, ppc64_sysv_abi_return_value):
14171 Likewise.
14172 * printcmd.c (print_formatted, x_command): Likewise.
14173 * python/py-type.c (typy_get_composite, typy_template_argument):
14174 Likewise.
14175 * python/py-value.c (valpy_referenced_value)
14176 (valpy_get_dynamic_type, value_has_field): Likewise.
14177 * s390-linux-tdep.c (s390_function_arg_integer): Likewise.
14178 * sparc-tdep.c (sparc_integral_or_pointer_p): Likewise.
14179 * sparc64-tdep.c (sparc64_integral_or_pointer_p): Likewise.
14180 * spu-tdep.c (spu_scalar_value_p): Likewise.
14181 * symtab.c (lookup_symbol_aux): Likewise.
14182 * typeprint.c (whatis_exp, print_type_scalar): Likewise.
14183 * valarith.c (binop_types_user_defined_p, unop_user_defined_p):
14184 Likewise.
14185 * valops.c (value_cast_pointers, value_cast)
14186 (value_reinterpret_cast, value_dynamic_cast, value_addr, typecmp)
14187 (value_struct_elt, value_struct_elt_bitpos)
14188 (value_find_oload_method_list, find_overload_match)
14189 (value_rtti_indirect_type): Likewise.
14190 * valprint.c (val_print_scalar_type_p, generic_val_print):
14191 Likewise.
14192 * value.c (value_actual_type, value_as_address, unpack_long)
14193 (pack_long, pack_unsigned_long, coerce_ref_if_computed)
14194 (coerce_ref): Likewise.
14195 * varobj.c (varobj_get_value_type): Likewise.
14196
3fcf899d
AV
141972017-03-20 Artemiy Volkov <artemiyv@acm.org>
14198
14199 PR gdb/14441
14200 * doc/python.texi (Types in Python): Add TYPE_CODE_RVALUE_REF to
14201 table of constants.
14202 * python/lib/gdb/command/explore.py: Support exploring values
14203 of rvalue reference types.
14204 * python/lib/gdb/types.py: Implement get_basic_type() for
14205 rvalue reference types.
14206 * python/py-type.c (pyty_codes) <TYPE_CODE_RVALUE_REF>: New
14207 constant.
14208 * python/py-value.c (valpy_getitem): Add an rvalue reference
14209 check.
14210 (valpy_reference_value): Add new parameter "refcode".
14211 (valpy_lvalue_reference_value, valpy_rvalue_reference_value):
14212 New wrappers for valpy_reference_value().
14213 * python/py-xmethods.c (gdbpy_get_xmethod_result_type)
14214 (gdbpy_invoke_xmethod): Likewise.
14215
4297a3f0
AV
142162017-03-20 Artemiy Volkov <artemiyv@acm.org>
14217
14218 PR gdb/14441
14219 * dwarf2read.c (process_die, read_type_die_1): Handle the
14220 DW_TAG_rvalue_reference_type DIE.
14221 (read_tag_reference_type): Add new parameter "refcode".
14222
e1cb3213
AV
142232017-03-20 Artemiy Volkov <artemiyv@acm.org>
14224
14225 PR gdb/14441
14226 * c-typeprint.c (c_print_type, c_type_print_varspec_prefix)
14227 (c_type_print_modifier, c_type_print_varspec_suffix)
14228 (c_type_print_base): Support printing rvalue reference types.
14229 * c-valprint.c (c_val_print, c_value_print): Support printing
14230 rvalue reference values.
14231
e4347c89
AV
142322017-03-20 Artemiy Volkov <artemiyv@acm.org>
14233
14234 PR gdb/14441
14235 * cp-name-parser.y (ptr_operator): Handle the '&&' token in
14236 typename.
14237 * cp-support.c (replace_typedefs): Handle
14238 DEMANGLE_COMPONENT_RVALUE_REFERENCE.
14239 * python/py-type.c (typy_lookup_type): Likewise.
14240
53cc15f5
AV
142412017-03-20 Artemiy Volkov <artemiyv@acm.org>
14242
14243 PR gdb/14441
14244 * c-exp.y (ptr_operator): Handle the '&&' token in the typename.
14245 * parse.c (insert_type): Change assert statement.
14246 (follow_types): Handle rvalue reference types.
14247 * parser-defs.h (enum type_pieces) <tp_rvalue_reference>: New
14248 constant.
14249
a65cfae5
AV
142502017-03-20 Artemiy Volkov <artemiyv@acm.org>
14251
14252 PR gdb/14441
14253 * ada-lang.c (ada_evaluate_subexp): Adhere to the new
14254 value_ref() interface.
14255 * c-valprint.c (c_value_print): Likewise.
14256 * infcall.c (value_arg_coerce): Likewise.
14257 * python/py-value.c (valpy_reference_value): Likewise.
14258 * valops.c (value_cast, value_reinterpret_cast)
14259 (value_dynamic_cast, typecmp): Likewise.
14260 (value_ref): Parameterize by kind of return value reference type.
14261 * value.h (value_ref): Add new parameter "refcode".
14262
3b224330
AV
142632017-03-20 Artemiy Volkov <artemiyv@acm.org>
14264
14265 PR gdb/14441
14266 * dwarf2read.c (read_tag_reference_type): Use
14267 lookup_lvalue_reference_type() instead of lookup_reference_type().
14268 * eval.c (evaluate_subexp_standard): Likewise.
14269 * f-exp.y: Likewise.
14270 * gdbtypes.c (make_reference_type, lookup_reference_type):
14271 Generalize with rvalue reference types.
14272 (lookup_lvalue_reference_type, lookup_rvalue_reference_type): New
14273 convenience wrappers for lookup_reference_type().
14274 * gdbtypes.h (make_reference_type, lookup_reference_type): Add a
14275 reference kind parameter.
14276 (lookup_lvalue_reference_type, lookup_rvalue_reference_type): Add
14277 wrappers for lookup_reference_type().
14278 * guile/scm-type.c (gdbscm_type_reference): Use
14279 lookup_lvalue_reference_type() instead of lookup_reference_type().
14280 * guile/scm-value.c (gdbscm_value_dynamic_type): Likewise.
14281 * parse.c (follow_types): Likewise.
14282 * python/py-type.c (typy_reference, typy_lookup_type): Likewise.
14283 * python/py-value.c (valpy_get_dynamic_type, valpy_getitem):
14284 Likewise.
14285 * python/py-xmethods.c (gdbpy_get_xmethod_result_type)
14286 (gdbpy_invoke_xmethod): Likewise.
14287 * stabsread.c: Provide extra argument to make_reference_type()
14288 call.
14289 * valops.c (value_ref, value_rtti_indirect_type): Use
14290 lookup_lvalue_reference_type() instead of lookup_reference_type().
14291
f9aeb8d4
AV
142922017-03-20 Artemiy Volkov <artemiyv@acm.org>
14293
14294 PR gdb/14441
14295 * gdbtypes.h (enum type_code) <TYPE_CODE_RVALUE_REF>: New constant.
14296 (TYPE_IS_REFERENCE): New macro.
14297 (struct type): Add rvalue_reference_type field.
14298 (TYPE_RVALUE_REFERENCE_TYPE): New macro.
14299
51457a05
MAL
143002017-03-20 Marc-Andre Laperle <marc-andre.laperle@ericsson.com>
14301
14302 * NEWS: Add an entry about new '-file-list-shared-libraries' command.
14303 * mi/mi-cmd-file.c (mi_cmd_file_list_shared_libraries):
14304 New function definition.
14305 * mi/mi-cmds.c (mi_cmds): Add -file-list-shared-libraries command.
14306 * mi/mi-cmds.h (mi_cmd_file_list_shared_libraries):
14307 New function declaration.
14308 * mi/mi-interp.c (mi_output_solib_attribs): New Function.
14309 * mi/mi-interp.h: New file.
14310 * solib.c (info_sharedlibrary_command): Replace for loop with
14311 ALL_SO_LIBS macro
14312 * solib.h (update_solib_list): New function declaration.
14313 (so_list_head): Move macro.
14314 * solist.h (ALL_SO_LIBS): New macro.
14315
e696b3ad
MAL
143162017-03-20 Marc-Andre Laperle <marc-andre.laperle@ericsson.com>
14317
14318 * infcmd.c (post_create_inferior): Remove unused argument in
14319 call to solib_add.
14320 * remote.c (remote_start_remote): Likewise.
14321 * solib-frv.c (frv_fetch_objfile_link_map): Likewise.
14322 * solib-svr4.c: (svr4_fetch_objfile_link_map): Likewise.
14323 (enable_break): Likewise.
14324 * solib.c (update_solib_list): Remove unused target argument
14325 and its documentation.
14326 (solib_add): Remove unused target argument. Remove unused
14327 argument in call to update_solib_list.
14328 (info_sharedlibrary_command): Remove unused argument in call
14329 to update_solib_list.
14330 (sharedlibrary_command): Remove unused argument in call to
14331 solib_add.
14332 (handle_solib_event): Likewise.
14333 (reload_shared_libraries): Likewise.
14334 * solib.h (solib_add): Remove unused target argument.
14335
dcb84eda
AA
143362017-03-20 Andreas Arnez <arnez@linux.vnet.ibm.com>
14337
14338 * s390-linux-tdep.c (is_rsi, is_rie): Remove functions.
14339 (s390_displaced_step_fixup): Cover relative branches with the
14340 default fixup handling. This fixes lack of support for some
14341 relative branch instructions.
14342
d9cb6cdc
SM
143432017-03-17 Simon Marchi <simon.marchi@polymtl.ca>
14344
14345 * i386-gnu-nat.c (gnu_fetch_registers, gnu_store_registers): Use
14346 ptid from regcache.
14347
1afaf9f4
SM
143482017-03-17 Simon Marchi <simon.marchi@polymtl.ca>
14349
14350 * i386-darwin-nat.c (i386_darwin_fetch_inferior_registers,
14351 i386_darwin_store_inferior_registers): Use ptid from regcache.
14352
aac12e24
SM
143532017-03-17 Simon Marchi <simon.marchi@polymtl.ca>
14354
14355 * i386-bsd-nat.c (i386bsd_fetch_inferior_registers,
14356 i386bsd_store_inferior_registers): Use ptid from regcache.
14357
bbe1eef1
SM
143582017-03-17 Simon Marchi <simon.marchi@polymtl.ca>
14359
14360 * hppa-obsd-nat.c (hppaobsd_fetch_registers,
14361 hppaobsd_store_registers): Use ptid from regcache.
14362
10799020
SM
143632017-03-17 Simon Marchi <simon.marchi@polymtl.ca>
14364
14365 * hppa-nbsd-nat.c (hppanbsd_fetch_registers,
14366 hppanbsd_store_registers): Use ptid from regcache.
14367
00204cf7
SM
143682017-03-17 Simon Marchi <simon.marchi@polymtl.ca>
14369
14370 * hppa-linux-nat.c (fetch_register, store_register): Use ptid
14371 from regcache. Use get_ptrace_pid.
14372
11a33714
SM
143732017-03-17 Simon Marchi <simon.marchi@polymtl.ca>
14374
14375 * corelow.c (get_core_register_section): Use ptid from regcache,
14376 update doc.
14377
317cd492
SM
143782017-03-17 Simon Marchi <simon.marchi@polymtl.ca>
14379
14380 * bsd-uthread.c (bsd_uthread_fetch_registers,
14381 bsd_uthread_store_registers): Use ptid from regcache, set and
14382 restore inferior_ptid.
14383
9ac8a7c2
SM
143842017-03-17 Simon Marchi <simon.marchi@polymtl.ca>
14385
14386 * arm-nbsd-nat.c (fetch_register, fetch_regs, fetch_fp_register,
14387 fetch_fp_regs, store_register, store_regs, store_fp_register,
14388 store_fp_regs): Use ptid from regcache.
14389
4ac4bb6a
SM
143902017-03-17 Simon Marchi <simon.marchi@polymtl.ca>
14391
14392 * arm-linux-nat.c (fetch_fpregs, store_fpregs, fetch_regs,
14393 store_regs, fetch_wmmx_regs, store_wmmx_regs, fetch_vfp_regs,
14394 store_vfp_regs): Use ptid from regcache.
14395
9bcbdca8
PA
143962017-03-17 Pedro Alves <palves@redhat.com>
14397
14398 PR remote/21188
14399 * ser-base.c (ser_base_wait_for): Add comment.
14400 (do_ser_base_readchar): Improve comment based on the ser-unix.c's
14401 version.
14402 * ser-unix.c (hardwire_raw): Remove reference to
14403 scb->current_timeout.
14404 (wait_for, do_hardwire_readchar, hardwire_readchar): Delete.
14405 (hardwire_ops): Install ser_base_readchar instead of
14406 hardwire_readchar.
14407 * serial.h (struct serial) <current_timeout, timeout_remaining>:
14408 Remove fields.
14409
7503099f
JG
144102017-03-17 Jonah Graham <jonah@kichwacoders.com>
14411
14412 PR gdb/19637
14413 * python/lib/gdb/printer/bound_registers.py: Add support for
14414 Python 3.
14415
7942e96e
AA
144162017-03-16 Andreas Arnez <arnez@linux.vnet.ibm.com>
14417
14418 * dwarf2loc.c (indirect_synthetic_pointer): Get data type of
14419 pointed-to DIE and pass it to dwarf2_evaluate_loc_desc_full.
14420 (dwarf2_evaluate_loc_desc_full): New parameter subobj_type; rename
14421 byte_offset to subobj_byte_offset. Fix the handling of
14422 DWARF_VALUE_STACK on big-endian targets when coming via an
14423 implicit pointer.
14424 (dwarf2_evaluate_loc_desc): Adjust call to
14425 dwarf2_evaluate_loc_desc_full.
14426 * dwarf2loc.h (dwarf2_fetch_die_type_sect_off): New declaration.
14427 * dwarf2read.c (dwarf2_fetch_die_type_sect_off): New function.
14428
ba14f379
YQ
144292017-03-16 Yao Qi <yao.qi@linaro.org>
14430
14431 * arm-tdep.c (thumb_record_misc): Decode CBNZ, CBZ, REV16,
14432 and REVSH instructions.
14433
b121eeb9
YQ
144342017-03-16 Yao Qi <yao.qi@linaro.org>
14435
14436 * arm-tdep.c [GDB_SELF_TEST]: include "selftests.h".
14437 (arm_record_test): Declare.
14438 (_initialize_arm_tdep) [GDB_SELF_TEST]: call register_self_test.
14439 (thumb_record_ld_st_reg_offset): Rewrite the opcode matching to
14440 align with the manual.
14441 (thumb_record_misc): Adjust the code order to align with the
14442 manual.
14443 (thumb2_record_decode_insn_handler): Fix instruction matching.
14444 (instruction_reader_thumb): New class.
14445 (arm_record_test): New function.
14446
728a7913
YQ
144472017-03-16 Yao Qi <yao.qi@linaro.org>
14448
14449 * arm-tdep.c (abstract_memory_reader): New class.
14450 (instruction_reader): New class.
14451 (extract_arm_insn): Add argument 'reader'. Callers updated.
14452 (decode_insn): Likewise.
14453
34b43320
DE
144542017-03-16 Doug Evans <dje@google.com>
14455
a7c0469f
DE
14456 * guile/scm-lazy-string.c (lazy_string_smob): Clarify use of LENGTH
14457 member. Change type of TYPE member to SCM. All uses updated.
14458 (lsscm_make_lazy_string_smob): Add assert.
14459 (lsscm_make_lazy_string): Flag bad length values.
14460 (lsscm_elt_type): New function.
14461 (gdbscm_lazy_string_to_value): Rewrite to use
14462 lsscm_safe_lazy_string_to_value.
14463 (lsscm_safe_lazy_string_to_value): Fix handling of TYPE_CODE_PTR.
14464 * guile/scm-value.c (gdbscm_value_to_lazy_string): Flag bad length
14465 values. Fix TYPE_CODE_PTR. Handle TYPE_CODE_ARRAY. Handle typedefs
14466 in incoming type.
14467 * guile/guile-internal.h (tyscm_scm_to_type): Declare.
14468 * guile/scm-type.c (tyscm_scm_to_type): New function.
14469
144702017-03-15 Doug Evans <dje@google.com>
14471
34b43320
DE
14472 PR python/17728, python/18439, python/18779
14473 * python/py-lazy-string.c (lazy_string_object): Clarify use of LENGTH
14474 member. Change type of TYPE member to PyObject *. All uses updated.
14475 (stpy_convert_to_value): Fix handling of TYPE_CODE_PTR.
14476 (gdbpy_create_lazy_string_object): Flag bad length values.
14477 Handle TYPE_CODE_ARRAY with possibly different user-provided length.
14478 Handle typedefs in incoming type.
14479 (stpy_lazy_string_elt_type): New function.
14480 (gdbpy_extract_lazy_string): Call it.
14481 * python/py-value.c (valpy_lazy_string): Flag bad length values.
14482 Fix handling of TYPE_CODE_PTR. Handle TYPE_CODE_ARRAY. Handle
14483 typedefs in incoming type.
14484
a3a5fecc
DE
144852017-03-16 Doug Evans <dje@google.com>
14486
14487 * guile/guile-internal.h (tyscm_scm_to_type): Declare.
14488 * guile/scm-type.c (tyscm_scm_to_type): New function.
14489
28f1c605
JW
144902017-03-16 Jiong Wang <jiong.wang@arm.com>
14491
14492 * inf-ptrace.c (inf_ptrace_peek_poke): Change the type to
14493 "ULONGEST" for "skip".
14494
87c336f6
AA
144952017-03-14 Andreas Arnez <arnez@linux.vnet.ibm.com>
14496
14497 PR gdb/21220
14498 * inf-ptrace.c (inf_ptrace_xfer_partial): In "case
14499 TARGET_OBJECT_MEMORY", extract the logic for ptrace peek/poke...
14500 (inf_ptrace_peek_poke): ...here. New function. Now also loop
14501 over ptrace peek/poke until end of buffer or error.
14502
cf81cf60
SM
145032017-03-14 Simon Marchi <simon.marchi@ericsson.com>
14504
14505 * parse.c (length_of_subexp): Make static.
14506 * parser-defs.h (length_of_subexp): Remove.
14507
a379284a
AA
145082017-03-14 Andreas Arnez <arnez@linux.vnet.ibm.com>
14509
14510 * linux-nat.c (linux_proc_xfer_partial): Handle write operations
14511 as well.
14512
8a6200ba
PA
145132017-03-14 Pedro Alves <palves@redhat.com>
14514
14515 * cp-name-parser.y (cp_demangled_name_to_comp): Update comment.
14516 (main): Use std::unique_ptr. Remove calls to
14517 cp_demangled_name_parse_free.
14518
f79ec206
SM
145192017-03-13 Simon Marchi <simon.marchi@polymtl.ca>
14520
14521 * alpha-bsd-nat.c (alphabsd_fetch_inferior_registers,
14522 alphabsd_store_inferior_registers): Use regcache->ptid instead
14523 of inferior_ptid.
14524
edb5fb00
SM
145252017-03-13 Simon Marchi <simon.marchi@polymtl.ca>
14526
14527 * aix-thread.c (aix_thread_fetch_registers,
14528 aix_thread_store_registers): Use regcache->ptid instead of
14529 inferior_ptid.
14530
55119686
SM
145312017-03-13 Simon Marchi <simon.marchi@polymtl.ca>
14532
14533 * aarch64-linux-nat.c (fetch_gregs_from_thread,
14534 store_gregs_to_thread, fetch_fpregs_from_thread,
14535 store_fpregs_to_thread): Use regcache->ptid instead of
14536 inferior_ptid.
14537
6a06fbb7
SM
145382017-03-13 Simon Marchi <simon.marchi@polymtl.ca>
14539
14540 * amd64-linux-nat.c (amd64_linux_fetch_inferior_registers,
14541 amd64_linux_fetch_inferior_registers): Use regcache->ptid
14542 instead of inferior_ptid.
14543
c6386875
SM
145442017-03-13 Simon Marchi <simon.marchi@polymtl.ca>
14545
14546 * target.c (target_fetch_registers, target_store_registers): Add
14547 assert.
14548
ddaaf0fb
SM
145492017-03-13 Simon Marchi <simon.marchi@polymtl.ca>
14550
14551 * regcache.h (regcache_get_ptid): New function.
14552 * regcache.c (regcache_get_ptid): New function.
14553
b9da89d1 145542017-03-13 Mark Wielaard <mark@klomp.org>
14555
14556 * cp-name-parser.y (make_empty): Initialize d_printing to zero.
14557
5f4d1085
KS
145582017-03-10 Keith Seitz <keiths@redhat.com>
14559
14560 PR c++/8218
14561 * c-typeprint.c (cp_type_print_method_args): Skip artificial arguments.
14562
c65d6b55
PA
145632017-03-08 Pedro Alves <palves@redhat.com>
14564
14565 PR gdb/18360
14566 * infrun.c (start_step_over, do_target_resume, resume)
14567 (restart_threads): Assert we're not resuming a thread that is
14568 meant to be stopped.
14569 (infrun_thread_stop_requested_callback): Delete.
14570 (infrun_thread_stop_requested): If the thread is internally
14571 stopped, queue a pending stop event and clear the thread's
14572 inline-frame state.
14573 (handle_stop_requested): New function.
14574 (handle_syscall_event, handle_inferior_event_1): Use
14575 handle_stop_requested.
14576 (handle_stop_requested): New function.
14577 (handle_signal_stop): Set the thread's stop_signal here instead of
14578 at caller.
14579 (finish_step_over): Clear step over info unconditionally.
14580 (handle_signal_stop): If the user had interrupted the event
14581 thread, consider the stop a random signal.
14582 (handle_signal_stop) <signal arrived while stepping over
14583 breakpoint>: Don't restart threads here.
14584 (stop_waiting): Don't clear step-over info here.
14585
15c22686
PA
145862017-03-08 Pedro Alves <palves@redhat.com>
14587
14588 PR 21206
14589 * common/gdb_unlinker.h (unlinker::unlinker): Attribute nonnull
14590 goes to argument 2, not 1.
14591
6e5d74e7
PA
145922017-03-08 Pedro Alves <palves@redhat.com>
14593
14594 PR cli/21218
14595 * top.c (gdb_readline_wrapper): Avoid passing NULL to
14596 display_gdb_prompt.
14597 (command_line_input): Add comment.
14598
9753a2f6
PA
145992017-03-08 Pedro Alves <palves@redhat.com>
14600
14601 PR tui/21216
14602 * tui/tui-file.c (tui_file::write): New.
14603 * tui/tui-file.h (tui_file): Override "write".
14604 * tui/tui-io.c (do_tui_putc, update_start_line): New functions,
14605 factored out from ...
14606 (tui_puts): ... here.
14607 (tui_putc): Use them.
14608 (tui_write): New function.
14609 * tui/tui-io.h (tui_write): Declare.
14610
1672e0d9
SDJ
146112017-03-07 Sergio Durigan Junior <sergiodj@redhat.com>
14612
14613 * Makefile.in (SFILES): Replace "environ.c" with
14614 "common/environ.c".
14615 (HFILES_NO_SRCDIR): Likewise, for "environ.h".
14616 * environ.c: Include "common-defs.h" instead of "defs.h. Moved
14617 to...
14618 * common/environ.c: ... here.
14619 * environ.h: Moved to...
14620 * common/environ.h: ... here.
14621
f7bb4e3a
PB
146222017-03-07 Peter Bergner <bergner@vnet.ibm.com>
14623
14624 * gdbarch.sh (pstring_ptr): New static function.
14625 (gdbarch_disassembler_options): Use it.
14626 (gdbarch_verify_disassembler_options): Print valid_disassembler_options,
14627 not valid_disassembler_option->name.
14628 * gdbarch.c: Regenerate.
14629
e45ced6c
PB
146302017-03-07 Peter Bergner <bergner@vnet.ibm.com>
14631
14632 * config/powerpc/ppc64-linux.mh (MH_CFLAGS): Delete.
14633
5f6fd321
PA
146342017-03-07 Pedro Alves <palves@redhat.com>
14635
14636 * tui/tui-regs.c (tui_restore_gdbout): Don't delete gdb_stdout.
14637
6dbb839a 146382017-03-07 Walfred Tedeschi <walfred.tedeschi@intel.com>
4a612d6f
WT
14639
14640 * i387-tdep.h (i387_reset_bnd_regs): Add function definition.
14641 * i387-tdep.c (i387_reset_bnd_regs): Add function implementation.
14642 * i386-tdep.c (i386_push_dummy_call): Call i387_reset_bnd_regs.
6dbb839a 14643 * amd64-tdep.c (amd64_push_dummy_call): Call i387_reset_bnd_regs.
4a612d6f 14644
d274ecf4
SM
146452017-03-06 Simon Marchi <simon.marchi@ericsson.com>
14646
14647 * xtensa-linux-nat.c (fetch_gregs): Remove const.
14648
df97be55
SM
146492017-03-03 Simon Marchi <simon.marchi@ericsson.com>
14650
14651 * remote.c (remote_add_target_side_commands): Use range-based
14652 for loop.
14653
7d45f3df
YQ
146542017-03-03 Yao Qi <yao.qi@linaro.org>
14655
14656 PR gdb/21165
14657 * ada-valprint.c (ada_val_print_ref): Call value_fetch_lazy if
14658 value is lazy.
14659 * valprint.c (common_val_print): Likewise.
14660
65b48a81
PB
146612017-02-28 Peter Bergner <bergner@vnet.ibm.com>
14662
14663 * NEWS: Mention new set/show disassembler-options commands.
14664 * doc/gdb.texinfo: Document new set/show disassembler-options commands.
14665 * disasm.c: Include "arch-utils.h", "gdbcmd.h" and "safe-ctype.h".
14666 (prospective_options): New static variable.
14667 (gdb_disassembler::gdb_disassembler): Initialize
14668 m_di.disassembler_options.
14669 (gdb_buffered_insn_length_init_dis): Initilize di->disassembler_options.
14670 (get_disassembler_options): New function.
14671 (set_disassembler_options): Likewise.
14672 (set_disassembler_options_sfunc): Likewise.
14673 (show_disassembler_options_sfunc): Likewise.
14674 (disassembler_options_completer): Likewise.
14675 (_initialize_disasm): Likewise.
14676 * disasm.h (get_disassembler_options): New prototype.
14677 (set_disassembler_options): Likewise.
14678 * gdbarch.sh (gdbarch_disassembler_options): New variable.
14679 (gdbarch_verify_disassembler_options): Likewise.
14680 * gdbarch.c: Regenerate.
14681 * gdbarch.h: Likewise.
14682 * arm-tdep.c (num_disassembly_options): Delete.
14683 (set_disassembly_style): Likewise.
14684 (arm_disassembler_options): New static variable.
14685 (set_disassembly_style_sfunc): Convert short style name into long
14686 option name. Call set_disassembler_options.
14687 (show_disassembly_style_sfunc): New function.
14688 (arm_gdbarch_init): Call set_gdbarch_disassembler_options and
14689 set_gdbarch_verify_disassembler_options.
14690 (_initialize_arm_tdep): Delete regnames variable and update callers.
14691 (arm_disassembler_options): Initialize.
14692 (disasm_options): New variable.
14693 (num_disassembly_options): Rename from this...
14694 (num_disassembly_styles): ...to this. Compute by scanning through
14695 disasm_options.
14696 (valid_disassembly_styles): Initialize using disasm_options.
14697 Remove calls to parse_arm_disassembler_option, get_arm_regnames and
14698 set_arm_regname_option.
14699 Pass show_disassembly_style_sfunc to the "disassembler" setshow command.
14700 * rs6000-tdep.c (powerpc_disassembler_options): New static variable.
14701 (rs6000_gdbarch_init): Call set_gdbarch_disassembler_options and
14702 set_gdbarch_verify_disassembler_options.
14703 * s390-tdep.c (s390_disassembler_options): New static variable.
14704 (s390_gdbarch_init):all set_gdbarch_disassembler_options and
14705 set_gdbarch_verify_disassembler_options.
14706
d538e36d
SM
147072017-02-27 Simon Marchi <simon.marchi@ericsson.com>
14708
14709 * remote.c (remote_add_target_side_condition): Remove "struct"
14710 keyword from range-based for loop.
14711
83621223
SM
147122017-02-27 Simon Marchi <simon.marchi@ericsson.com>
14713
14714 * remote.c (remote_add_target_side_condition): Use range-based
14715 for loop. Update comment.
14716
2123df0e
YQ
147172017-02-27 Yao Qi <yao.qi@linaro.org>
14718
14719 * f-typeprint.c (f_print_type): Check "varstring" is empty first.
14720
8e368124
AH
147212017-02-26 Alan Hayward <alan.hayward@arm.com>
14722
14723 * regcache.c (regcache_raw_update): New function.
14724 (regcache_raw_read): Move code to regcache_raw_update.
14725 * regcache.h (regcache_raw_update): New declaration.
14726 * remote.c (remote_prepare_to_store): Call regcache_raw_update.
14727
a49dd8dd
JK
147282017-02-26 Jan Kratochvil <jan.kratochvil@redhat.com>
14729
14730 * dwarf2read.c (create_debug_type_hash_table): Initialize
14731 header.signature and header.type_offset_in_tu.
14732
34e4bae9
PA
147332017-02-24 Pedro Alves <palves@redhat.com>
14734
14735 * symtab.c (make_file_symbol_completion_list_1): Use
14736 add_symtab_completions.
14737
b0e4b369
AH
147382017-02-24 Alan Hayward <alan.hayward@arm.com>
14739
14740 * stack.c (frame_info): Use frame_unwind_register_value to avoid buf.
14741
975c21ab
AH
147422017-02-24 Alan Hayward <alan.hayward@arm.com>
14743
14744 * i386-tdep.c (i386_pseudo_register_read_into_value): Use
14745 I386_MAX_REGISTER_SIZE.
14746 (i386_pseudo_register_write): Likewise.
14747 (i386_process_record): Likewise.
14748 * i387-tdep.c (i387_supply_xsave): Likewise.
14749 * m68k-linux-nat.c (fetch_register): Use M68K_MAX_REGISTER_SIZE.
14750 (store_register): Likewise.
14751
14bc53a8
PA
147522017-02-23 Pedro Alves <palves@redhat.com>
14753
14754 * ada-lang.c: Include "common/function-view.h".
14755 (ada_iterate_over_symbols): Adjust to use function_view as
14756 callback type.
14757 (struct add_partial_datum, ada_complete_symbol_matcher): Delete.
14758 (ada_make_symbol_completion_list): Use a lambda.
14759 (ada_exc_search_name_matches): Delete.
14760 (name_matches_regex): New.
14761 (ada_add_global_exceptions): Use a lambda and name_matches_regex.
14762 * compile/compile-c-support.c: Include "common/function-view.h".
14763 (print_one_macro): Change prototype to accept a ui_file pointer.
14764 (write_macro_definitions): Use a lambda.
14765 * dwarf2read.c: Include "common/function-view.h".
14766 (dw2_map_expand_apply, dw2_map_symtabs_matching_filename)
14767 (dw2_expand_symtabs_matching): Adjust to use function_view as
14768 callback type.
14769 * language.h: Include "common/function-view.h".
14770 (struct language_defn) <la_iterate_over_symbols>: Adjust to use
14771 function_view as callback type.
14772 (LA_ITERATE_OVER_SYMBOLS): Remove DATA parameter.
14773 * linespec.c: Include "common/function-view.h".
14774 (collect_info::add_symbol): New method.
14775 (struct symbol_and_data_callback, iterate_inline_only, struct
14776 symbol_matcher_data, iterate_name_matcher): Delete.
14777 (iterate_over_all_matching_symtabs): Adjust to use function_view
14778 as callback type and lambdas.
14779 (iterate_over_file_blocks): Adjust to use function_view as
14780 callback type.
14781 (decode_compound_collector): Now a class with private fields.
14782 (decode_compound_collector::release_symbols): New method.
14783 (collect_one_symbol): Rename to...
14784 (decode_compound_collector::operator()): ... this and adjust.
14785 (lookup_prefix_sym): decode_compound_collector construction bits
14786 move to decode_compound_collector ctor. Pass the
14787 decode_compound_collector object directly as callback. Remove
14788 cleanups and use decode_compound_collector::release_symbols
14789 instead.
14790 (symtab_collector): Now a class with private fields.
14791 (symtab_collector::release_symtabs): New method.
14792 (add_symtabs_to_list): Rename to...
14793 (symtab_collector::operator()): ... this and adjust.
14794 (collect_symtabs_from_filename): symtab_collector construction
14795 bits move to symtab_collector ctor. Pass the symtab_collector
14796 object directly as callback. Remove cleanups and use
14797 symtab_collector::release_symtabs instead.
14798 (collect_symbols): Delete.
14799 (add_matching_symbols_to_info): Use lambdas.
14800 * macrocmd.c (print_macro_callback): Delete.
14801 (info_macro_command): Use a lambda.
14802 (info_macros_command): Pass print_macro_definition as callable
14803 directly.
14804 (print_one_macro): Remove 'ignore' parameter.
14805 (macro_list_command): Adjust.
14806 * macrotab.c (macro_for_each_data::fn): Now a function_view.
14807 (macro_for_each_data::user_data): Delete field.
14808 (foreach_macro): Adjust to call the function_view.
14809 (macro_for_each): Adjust to use function_view as callback type.
14810 (foreach_macro_in_scope): Adjust to call the function_view.
14811 (macro_for_each_in_scope): Adjust to use function_view as callback
14812 type.
14813 * macrotab.h: Include "common/function-view.h".
14814 (macro_callback_fn): Declare a prototype instead of a pointer.
14815 Remove "user_data" parameter.
14816 (macro_for_each, macro_for_each_in_scope): Adjust to use
14817 function_view as callback type.
14818 * psymtab.c (partial_map_expand_apply)
14819 (psym_map_symtabs_matching_filename, recursively_search_psymtabs):
14820 Adjust to use function_view as callback type and to return bool.
14821 (psym_expand_symtabs_matching): Adjust to use function_view as
14822 callback types.
14823 * symfile-debug.c (debug_qf_map_symtabs_matching_filename): Adjust
14824 to use function_view as callback type and to return bool.
14825 (debug_qf_expand_symtabs_matching): Adjust to use function_view as
14826 callback types.
14827 * symfile.c (expand_symtabs_matching): Adjust to use function_view
14828 as callback types.
14829 * symfile.h: Include "common/function-view.h".
14830 (expand_symtabs_file_matcher_ftype)
14831 (expand_symtabs_symbol_matcher_ftype)
14832 (expand_symtabs_exp_notify_ftype): Remove "data" parameter and
14833 return bool.
14834 (quick_symbol_functions::map_symtabs_matching_filename)
14835 (quick_symbol_functions::expand_symtabs_matching): Adjust to use
14836 function_view as callback type and return bool.
14837 (expand_symtabs_matching): Adjust to use function_view as callback
14838 type.
14839 (maintenance_expand_name_matcher)
14840 (maintenance_expand_file_matcher): Delete.
14841 (maintenance_expand_symtabs): Use lambdas.
14842 * symtab.c (iterate_over_some_symtabs): Adjust to use
14843 function_view as callback types and return bool.
14844 (iterate_over_symtabs): Likewise. Use unique_xmalloc_ptr instead
14845 of a cleanup.
14846 (lookup_symtab_callback): Delete.
14847 (lookup_symtab): Use a lambda.
14848 (iterate_over_symbols): Adjust to use function_view as callback
14849 type.
14850 (struct search_symbols_data, search_symbols_file_matches)
14851 (search_symbols_name_matches): Delete.
14852 (search_symbols): Use a pair of lambdas.
14853 (struct add_name_data, add_macro_name, symbol_completion_matcher)
14854 (symtab_expansion_callback): Delete.
14855 (default_make_symbol_completion_list_break_on_1): Use lambdas.
14856 * symtab.h: Include "common/function-view.h".
14857 (iterate_over_some_symtabs): Adjust to use function_view as
14858 callback type and return bool.
14859 (iterate_over_symtabs): Adjust to use function_view as callback
14860 type.
14861 (symbol_found_callback_ftype): Remove 'data' parameter and return
14862 bool.
14863 (iterate_over_symbols): Adjust to use function_view as callback
14864 type.
14865
07e253aa
PA
148662017-02-23 Pedro Alves <palves@redhat.com>
14867
14868 * Makefile.in (SUBDIR_UNITTESTS_SRCS, SUBDIR_UNITTESTS_OBS): New.
14869 (%.o) <unittests/%.c>: New pattern.
14870 * configure.ac ($development): Add $(SUBDIR_UNITTESTS_OBS) to
14871 CONFIG_OBS, and $(SUBDIR_UNITTESTS_SRCS) to CONFIG_SRCS.
14872 * common/function-view.h: New file.
14873 * unittests/function-view-selftests.c: New file.
14874 * configure: Regenerate.
14875
8eaf5320
SM
148762017-02-23 Simon Marchi <simon.marchi@ericsson.com>
14877
14878 * bsd-uthread.c (bsd_uthread_thread_alive): Use ptid instead of
14879 inferior_ptid.
14880 * go32-nat.c (go32_thread_alive): Likewise.
14881
38768751
YQ
148822017-02-23 Yao Qi <yao.qi@linaro.org>
14883
14884 * varobj-iter.h (varobj_iter_delete): Call xfree instead of
14885 delete.
14886
0a8beaba
YQ
148872017-02-23 Yao Qi <yao.qi@linaro.org>
14888
14889 * varobj.c (varobj_clear_saved_item): Use delete instead of
14890 xfree.
14891 (update_dynamic_varobj_children): Likewise.
14892
58fdfd2c
JK
148932017-02-21 Jan Kratochvil <jan.kratochvil@redhat.com>
14894
14895 * dwarf2read.c (dwarf2_record_block_ranges): Add forgotten BASEADDR.
14896
1b90b139
SM
148972017-02-21 Simon Marchi <simon.marchi@ericsson.com>
14898
14899 * common/enum-flags.h (enum_flags::enum_flags): Initialize
14900 m_enum_value to 0 in default constructor.
14901
2039d74e
EBM
149022017-02-21 Edjunior Barbosa Machado <emachado@linux.vnet.ibm.com>
14903
14904 * rs6000-tdep.c (LOAD_AND_RESERVE_MASK): Rename from LWARX_MASK.
14905 (STORE_CONDITIONAL_MASK): Rename from STWCX_MASK.
14906 (LBARX_INSTRUCTION, LHARX_INSTRUCTION, LQARX_INSTRUCTION,
14907 STBCX_INSTRUCTION, STHCX_INSTRUCTION, STQCX_INSTRUCTION): New defines.
14908 (IS_LOAD_AND_RESERVE_INSN, IS_STORE_CONDITIONAL_INSN): New macros.
14909 (ppc_displaced_step_copy_insn): Use IS_LOAD_AND_RESERVE_INSN.
14910 (ppc_deal_with_atomic_sequence): Use IS_LOAD_AND_RESERVE_INSN and
14911 IS_STORE_CONDITIONAL_INSN.
14912
7814882a
JK
149132017-02-21 Jan Kratochvil <jan.kratochvil@redhat.com>
14914
14915 * dwarf2_rnglists_process: Initialize range_beginning and range_end.
14916
0ae60b63
JK
149172017-02-20 Jan Kratochvil <jan.kratochvil@redhat.com>
14918
14919 * NEWS (Changes since GDB 7.12): Add DWARF-5.
14920
0224619f
JK
149212017-02-20 Jan Kratochvil <jan.kratochvil@redhat.com>
14922
14923 * dwarf2read.c (skip_one_die, read_attribute_value)
14924 (dwarf2_const_value_attr, dump_die_shallow)
14925 (dwarf2_get_attr_constant_value, dwarf2_fetch_constant_bytes)
14926 (skip_form_bytes, attr_form_is_constant): Handle DW_FORM_data16.
14927
0af92d60
JK
149282017-02-20 Jan Kratochvil <jan.kratochvil@redhat.com>
14929
14930 * dwarf2read.c (read_file_scope): Rename DW_MACRO_GNU_*.
14931 (dwarf_parse_macro_header): Accept DWARF version 5.
14932 (dwarf_decode_macro_bytes, dwarf_decode_macros): Rename DW_MACRO_GNU_*.
14933
216f72a1
JK
149342017-02-20 Jan Kratochvil <jan.kratochvil@redhat.com>
14935
14936 * block.c (call_site_for_pc): Rename DW_OP_GNU_*, DW_TAG_GNU_* and
14937 DW_AT_GNU_*.
14938 * common/common-exceptions.h (enum errors): Likewise.
14939 * dwarf2-frame.c (class dwarf_expr_executor): Likewise.
14940 * dwarf2expr.c (dwarf_block_to_dwarf_reg)
14941 (dwarf_expr_context::execute_stack_op): Likewise.
14942 * dwarf2expr.h (struct dwarf_expr_context, struct dwarf_expr_piece):
14943 Likewise.
14944 * dwarf2loc.c (dwarf_evaluate_loc_desc::get_base_type)
14945 (dwarf_evaluate_loc_desc::push_dwarf_reg_entry_value)
14946 (show_entry_values_debug, call_site_to_target_addr)
14947 (func_addr_to_tail_call_list, func_verify_no_selftailcall)
14948 (dwarf_expr_reg_to_entry_parameter, dwarf_entry_parameter_to_value)
14949 (entry_data_value_free_closure, value_of_dwarf_reg_entry)
14950 (value_of_dwarf_block_entry, indirect_pieced_value)
14951 (symbol_needs_eval_context::push_dwarf_reg_entry_value):
14952 (disassemble_dwarf_expression): Likewise.
14953 * dwarf2read.c (process_die, inherit_abstract_dies)
14954 (read_call_site_scope): Likewise.
14955 * gdbtypes.h (struct func_type, struct call_site_parameter)
14956 (struct call_site): Likewise.
14957 * stack.c (read_frame_arg): Likewise.
14958 * std-operator.def (OP_VAR_ENTRY_VALUE): Likewise.
14959
43988095
JK
149602017-02-20 Jan Kratochvil <jan.kratochvil@redhat.com>
14961
14962 * defs.h (read_unsigned_leb128): New declaration.
14963 * dwarf2loc.c (decode_debug_loclists_addresses): New function.
14964 (decode_debug_loc_dwo_addresses): Update DEBUG_LOC_* to DW_LLE_*.
14965 (dwarf2_find_location_expression): Call also
14966 decode_debug_loclists_addresses. Handle DWARF-5 ULEB128 length.
14967 * dwarf2loc.h (dwarf2_version): New declaration.
14968 * dwarf2read.c (struct dwarf2_per_objfile): Add loclists, line_str,
14969 rnglists.
14970 (dwarf2_elf_names): Add .debug_loclists, .debug_line_str,
14971 .debug_rnglists.
14972 (struct dwop_section_names): Add loclists_dwo.
14973 (dwop_section_names): Add .debug_loclists.dwo.
14974 (struct comp_unit_head): Add unit_type, signature, type_offset_in_tu.
14975 (struct dwarf2_per_cu_data): Add dwarf_version.
14976 (struct dwo_sections): Add loclists.
14977 (struct attr_abbrev): Add implicit_const.
14978 (read_indirect_line_string): New declaration.
14979 (read_unsigned_leb128): Delete declaration.
14980 (rcuh_kind): New definition.
14981 (read_and_check_comp_unit_head): Change parameter
14982 is_debug_types_section to section_kind.
14983 (dwarf2_locate_sections): Handle loclists, line_str and rnglists.
14984 (read_comp_unit_head): Change parameter abfd to section, add parameter
14985 section_kind. Handle DWARF-5.
14986 (error_check_comp_unit_head): Accept also DWARF version 5.
14987 (read_and_check_comp_unit_head): Change parameter
14988 is_debug_types_section to section_kind.
14989 (read_and_check_type_unit_head): Delete function.
14990 (read_abbrev_offset): Handle DWARF-5.
14991 (create_debug_type_hash_table): Add parameter section_kind. Process
14992 only DW_UT_type. Use signature and type_offset_in_tu from struct
14993 comp_unit_head.
14994 (create_debug_types_hash_table): Update create_debug_type_hash_table
14995 caller.
14996 (create_all_type_units): Call create_debug_type_hash_table.
14997 (read_cutu_die_from_dwo, init_cutu_and_read_dies): Change
14998 read_and_check_type_unit_head caller to read_and_check_comp_unit_head
14999 caller.
15000 (skip_one_die): Handle DW_FORM_implicit_const.
15001 (dwarf2_rnglists_process): New function.
15002 (dwarf2_ranges_process): Call dwarf2_rnglists_process for DWARF-5.
15003 (abbrev_table_read_table): Handle DW_FORM_implicit_const.
15004 (read_attribute_value): Handle DW_FORM_implicit_const,
15005 DW_FORM_line_strp.
15006 (read_attribute): Handle DW_FORM_implicit_const.
15007 (read_indirect_string_at_offset_from): New function from
15008 read_indirect_string_at_offset.
15009 (read_indirect_string_at_offset): Call
15010 read_indirect_string_at_offset_from.
15011 (read_indirect_line_string_at_offset): New function.
15012 (read_indirect_string): New function comment.
15013 (read_indirect_line_string): New function.
15014 (read_unsigned_leb128): Make it global.
15015 (dwarf2_string_attr): Handle DWARF-5.
15016 (add_include_dir_stub, read_formatted_entries): New functions.
15017 (dwarf_decode_line_header, dump_die_shallow, cu_debug_loc_section):
15018 Handle DWARF-5.
15019 (per_cu_header_read_in): Update read_comp_unit_head caller.
15020 (dwarf2_version): New function.
15021 * symfile.h (struct dwarf2_debug_sections): Add loclists, line_str and
15022 rnglists.
15023 * xcoffread.c (dwarf2_xcoff_names): Update struct dwarf2_debug_sections
15024 fields.
15025
22d2f3ab
JK
150262017-02-20 Jan Kratochvil <jan.kratochvil@redhat.com>
15027
15028 * dwarf2read.c (abbrev_table_read_table): Read the data only once.
15029
5f46c5a5
JK
150302017-02-20 Jan Kratochvil <jan.kratochvil@redhat.com>
15031
15032 * dwarf2read.c (dwarf2_ranges_process): New function from
15033 dwarf2_ranges_read.
15034 (dwarf2_ranges_read, dwarf2_record_block_ranges): Use
15035 dwarf2_ranges_process.
15036
78d4d2c5
JK
150372017-02-20 Jan Kratochvil <jan.kratochvil@redhat.com>
15038
15039 * dwarf2read.c (create_debug_type_hash_table): New function from
15040 create_debug_types_hash_table.
15041 (create_debug_types_hash_table): Call create_debug_type_hash_table.
15042 (create_all_type_units, open_and_init_dwo_file): Update
15043 create_debug_types_hash_table callers.
15044
1b076f25
SDJ
150452017-02-20 Sergio Durigan Junior <sergiodj@redhat.com>
15046
15047 PR gdb/16188
15048 * fork-child.c (trace_start_error): Fix thinko. va_end should
15049 refer to 'ap', not 'args'.
15050
0db8980c
SDJ
150512017-02-20 Sergio Durigan Junior <sergiodj@redhat.com>
15052 Pedro Alves <palves@redhat.com>
15053
15054 PR gdb/16188
15055 * darwin-nat.c (darwin_ptrace_me): Check if calls to system
15056 calls succeeded.
15057 * fork-child.c (trace_start_error): New function.
15058 (trace_start_error_with_name): Likewise.
15059 * gnu-nat.c (gnu_ptrace_me): Check if call to PTRACE succeeded.
15060 * inf-ptrace.c (inf_ptrace_me): Likewise.
15061 * inferior.h (trace_start_error): New prototype.
15062 (trace_start_error_with_name): Likewise.
15063
99e8a4f9
SDJ
150642017-02-15 Sergio Durigan Junior <sergiodj@redhat.com>
15065
15066 PR gdb/21164
15067 * psymtab.c (maintenance_print_psymbols): Verify if 'argv' is not
15068 NULL before using it.
15069 * symmisc.c (maintenance_print_symbols): Likewise.
15070 (maintenance_print_msymbols): Likewise.
15071
4e746bb6
TW
150722017-02-14 Tim Wiederhake <tim.wiederhake@intel.com>
15073
15074 * NEWS: Add record Python bindings entry.
15075
150762017-02-14 Tim Wiederhake <tim.wiederhake@intel.com>
15077
15078 * Makefile.in (SUBDIR_PYTHON_OBS): Add py-record-btrace.o,
15079 py-record-full.o.
15080 (SUBDIR_PYTHON_SRCS): Add py-record-btrace.c, py-record-full.c.
15081 * python/py-record-btrace.c, python/py-record-btrace.h,
15082 python/py-record-full.c, python/py-record-full.h: New file.
15083 * python/py-record.c: Add include for py-record-btrace.h and
15084 py-record-full.h.
15085 (recpy_method, recpy_format, recpy_goto, recpy_replay_position,
15086 recpy_instruction_history, recpy_function_call_history, recpy_begin,
15087 recpy_end): Use functions from py-record-btrace.c and py-record-full.c.
15088 * python/python-internal.h (PyInt_FromSsize_t, PyInt_AsSsize_t):
15089 New definition.
15090 (gdbpy_initialize_btrace): New export.
15091 * python/python.c (_initialize_python): Add gdbpy_initialize_btrace.
15092
150932017-02-14 Tim Wiederhake <tim.wiederhake@intel.com>
15094
15095 * Makefile.in (SUBDIR_PYTHON_OBS): Add python/py-record.o.
15096 (SUBDIR_PYTHON_SRCS): Add python/py-record.c.
15097 * python/py-record.c: New file.
15098 * python/python-internal.h (gdbpy_start_recording,
15099 gdbpy_current_recording, gdpy_stop_recording,
15100 gdbpy_initialize_record): New export.
15101 * python/python.c (_initialize_python): Add gdbpy_initialize_record.
15102 (python_GdbMethods): Add gdbpy_start_recording,
15103 gdbpy_current_recording and gdbpy_stop_recording.
15104
151052017-02-14 Tim Wiederhake <tim.wiederhake@intel.com>
15106
15107 * record-btrace.c (record_btrace_record_method): New function.
15108 (init_record_btrace_ops): Initialize to_record_method.
15109 * record-full.c (record_full_record_method): New function.
15110 (init_record_full_ops, init_record_full_core_ops): Add
15111 record_full_record_method.
15112 * record.h (enum record_method): New enum.
15113 * target-debug.h (target_debug_print_enum_record_method: New define.
15114 * target-delegates.c: Regenerate.
15115 * target.c (target_record_method): New function.
15116 * target.h: Include record.h.
15117 (struct target_ops) <to_record_method>: New field.
15118 (target_record_method): New export.
15119
151202017-02-14 Tim Wiederhake <tim.wiederhake@intel.com>
15121
15122 * record.h (record_start, record_stop): New export.
15123 * record.c (record_start, record_stop): New function.
15124
151252017-02-14 Tim Wiederhake <tim.wiederhake@intel.com>
15126
15127 * btrace.c (btrace_fetch): Copy function call segments pointer
15128 into a vector.
15129 (btrace_clear): Clear the vector.
15130 (btrace_find_insn_by_number): Use binary search to find the correct
15131 function call segment.
15132 * btrace.h (brace_fun_p): New typedef.
15133 (struct btrace_thread_info) <functions>: New field.
15134
151352017-02-14 Tim Wiederhake <tim.wiederhake@intel.com>
15136
15137 * record-btrace.c (btrace_ui_out_decode_error): Move most of it ...
15138 * btrace.c (btrace_decode_error): ... here. New function.
15139 * btrace.h (btrace_decode_error): New export.
15140
151412017-02-14 Tim Wiederhake <tim.wiederhake@intel.com>
15142
15143 * btrace.c (ftrace_call_num_insn, btrace_insn_get_error): New function.
15144 (ftrace_new_function, btrace_insn_number, btrace_insn_cmp,
15145 btrace_find_insn_by_number): Remove special case for gaps.
15146 * btrace.h (btrace_insn_get_error): New export.
15147 (btrace_insn_number, btrace_find_insn_by_number): Adjust comment.
15148 * record-btrace.c (btrace_insn_history): Print number for gaps.
15149 (record_btrace_info, record_btrace_goto): Handle gaps.
15150
3f77c769
TT
151512017-02-14 Tom Tromey <tom@tromey.com>
15152
15153 PR python/13598:
15154 * python/python.c (gdbpy_before_prompt_hook): Emit before_prompt
15155 event.
15156 * python/py-evts.c (gdbpy_initialize_py_events): Add
15157 before_prompt registry.
15158 * python/py-events.h (events_object) <before_prompt>: New field.
15159
4c2c7ac6
MM
151602017-02-14 Markus Metzger <markus.t.metzger@intel.com>
15161
15162 * btrace.c (ftrace_new_switch): Preserve up link and flags.
15163
5cf30ebf
LM
151642017-02-13 Luis Machado <lgustavo@codesourcery.com>
15165
15166 * symfile (_initialize_symfile): Add usage text to the load command's
15167 help text.
15168
26a06916
SM
151692017-02-10 Simon Marchi <simon.marchi@ericsson.com>
15170
15171 * utils.c (defaulted_query): Don't query on secondary UIs.
15172
0b145e37
TT
151732017-02-10 Tom Tromey <tom@tromey.com>
15174
15175 * rust-lang.c (rust_get_disr_info): Remove unused variable.
15176
2d8365c4
TT
151772017-02-10 Tom Tromey <tom@tromey.com>
15178
15179 * python/py-value.c (valpy_richcompare_throw): Remove unnecessary
15180 "cleanup" local.
15181 * python/py-type.c (typy_legacy_template_argument): Remove
15182 unnecessary "cleanup" local.
15183
2bb8f231
TT
151842017-02-10 Tom Tromey <tom@tromey.com>
15185
15186 * python/python.c (do_start_initialization): New function, from
15187 _initialize_python.
15188 (_initialize_python): Call do_start_initialization.
15189 * python/py-linetable.c (ltpy_iternext): Use explicit returns, not
15190 goto.
15191
1bdfaf42
TT
151922017-02-10 Tom Tromey <tom@tromey.com>
15193
15194 * python/py-prettyprint.c (pretty_print_one_value): Use
15195 gdbpy_ref.
15196
88b6faea
TT
151972017-02-10 Tom Tromey <tom@tromey.com>
15198
15199 * python/py-cmd.c (cmdpy_destroyer): Use gdbpy_ref.
15200 * python/py-breakpoint.c (gdbpy_breakpoint_deleted): Use
15201 gdbpy_ref.
15202 * python/py-type.c (field_new): Use gdbpy_ref.
15203 * python/py-symtab.c (symtab_and_line_to_sal_object): Use
15204 gdbpy_ref.
15205 * python/py-progspace.c (pspy_new): Use gdbpy_ref.
15206 (py_free_pspace): Likewise.
15207 (pspace_to_pspace_object): Likewise.
15208 * python/py-objfile.c (objfpy_new): Use gdbpy_ref.
15209 (py_free_objfile): Likewise.
15210 (objfile_to_objfile_object): Likewise.
15211 * python/py-inferior.c (delete_thread_object): Use
15212 gdbpy_ref.
15213 (infpy_read_memory): Likewise.
15214 (py_free_inferior): Likewise.
15215 * python/py-evtregistry.c (create_eventregistry_object): Use
15216 gdbpy_ref.
15217 * python/py-event.c (create_event_object): Use gdbpy_ref.
15218
7780f186
TT
152192017-02-10 Tom Tromey <tom@tromey.com>
15220
15221 * python/py-ref.h (gdbpy_ref_policy): Now a template.
15222 (gdbpy_ref): Now a template; allow subclasses of PyObject to be
15223 used.
15224 * python/py-arch.c, python/py-bpevent.c, python/py-breakpoint.c,
15225 python/py-cmd.c, python/py-continueevent.c, python/py-event.c,
15226 python/py-exitedevent.c, python/py-finishbreakpoint.c,
15227 python/py-framefilter.c, python/py-function.c,
15228 python/py-inferior.c, python/py-infevents.c,
15229 python/py-linetable.c, python/py-newobjfileevent.c,
15230 python/py-param.c, python/py-prettyprint.c, python/py-ref.h,
15231 python/py-signalevent.c, python/py-stopevent.c,
15232 python/py-symbol.c, python/py-threadevent.c, python/py-type.c,
15233 python/py-unwind.c, python/py-utils.c, python/py-value.c,
15234 python/py-varobj.c, python/py-xmethods.c, python/python.c,
15235 varobj.c: Change gdbpy_ref to gdbpy_ref<>.
15236
d4b0bb18
TT
152372017-02-10 Tom Tromey <tom@tromey.com>
15238
15239 * ui-out.h (ui_out_emit_type): New class.
15240 (ui_out_emit_tuple, ui_out_emit_list): New typedefs.
15241 * python/py-framefilter.c (py_print_single_arg): Use gdb::optional
15242 and ui_out_emit_tuple.
15243 (enumerate_locals): Likewise.
15244 (py_mi_print_variables, py_print_locals, py_print_args): Use
15245 ui_out_emit_list.
15246 (py_print_frame): Use gdb::optional, ui_out_emit_tuple,
15247 ui_out_emit_list.
15248 * common/gdb_optional.h: New file.
15249
f67f945c
MG
152502017-02-10 Martin Galvan <martingalvan@sourceware.org>
15251
15252 * MAINTAINERS (Write After Approval): Update my e-mail address.
15253
18da0c51
MG
152542017-02-10 Martin Galvan <martingalvan@sourceware.org>
15255
15256 PR gdb/21122
15257 * breakpoint.c (_initialize_breakpoint): Update the help description
15258 of the 'commands' command to indicate that it takes a list argument.
15259
62c14536
SM
152602017-02-09 Simon Marchi <simon.marchi@ericsson.com>
15261
15262 * interps.c (current_interp_set_logging): Remove "return".
15263
ff6fa247
GB
152642017-02-09 Gary Benson <gbenson@redhat.com>
15265
15266 * symtab.c (add_symtab_completions): Prevent NULL pointer
15267 dereference.
15268
a474bd8e
PA
152692017-02-08 Pedro Alves <palves@redhat.com>
15270
15271 * interps.c (interp::interp): Remove reference to quiet_p.
15272 (interp_set): Make static. Remove dead "Switching to" output
15273 code.
15274 (interp_quiet_p, interp_set_quiet): Delete.
15275 (interpreter_exec_cmd): Don't set the interpreter quiet.
15276 * interps.h (interp_quiet_p): Make static.
15277 (class interp) <quiet_p>: Remove field
15278
3d7b173c
JG
152792017-02-08 Jerome Guitton <guitton@adacore.com>
15280
604c4576
JG
15281 * cli/cli-decode.c (find_command_name_length): Make it extern.
15282 * cli/cli-decode.h (find_command_name_length): Declare.
15283 * cli/cli-script.c (command_name_equals, line_first_arg):
15284 New functions.
15285 (process_next_line): Use cli-decode to parse command names.
15286 (build_command_line): Make args a constant pointer.
15287
152882017-02-08 Jerome Guitton <guitton@adacore.com>
6dbb839a 15289
3d7b173c
JG
15290 * cli-decode.c (lookup_cmd_1, lookup_cmd_composition):
15291 Remove case-insensitive search.
15292
1291063d
JM
152932017-02-07 Jose E. Marchesi <jose.marchesi@oracle.com>
15294
15295 * sparc-tdep.c (sparc32_gdbarch_init): Do not place a + operator
15296 at the end of the line. Avoids an ARI warning.
15297
20b477a7
LM
152982017-02-06 Luis Machado <lgustavo@codesourcery.com>
15299
15300 * NEWS: Mention support for record/replay of Intel 64 rdrand and
15301 rdseed instructions.
15302 i386-tdep.c (i386_process_record): Handle Intel 64 rdrand and rseed.
15303
3f7b46f2
IR
153042017-02-06 Ivo Raisr <ivo.raisr@oracle.com>
15305
15306 PR tdep/20936
15307 Provide and use sparc32 and sparc64 target description XML files.
15308 * features/sparc/sparc32-cp0.xml, features/sparc/sparc32-cpu.xml,
15309 features/sparc/sparc32-fpu.xml: New files for sparc 32-bit.
15310 * features/sparc/sparc64-cp0.xml, features/sparc/sparc64-cpu.xml,
15311 features/sparc/sparc64-fpu.xml: New files for sparc 64-bit.
15312 * features/sparc/sparc32-solaris.xml: New file.
15313 * features/sparc/sparc64-solaris.xml: New file.
15314 * features/sparc/sparc32-solaris.c: Generated.
15315 * features/sparc/sparc64-solaris.c: Generated.
15316 * sparc-tdep.h: Account for differences in target descriptions.
15317 * sparc-tdep.c (sparc32_register_name): Use target provided registers.
15318 (sparc32_register_type): Use target provided registers.
15319 (validate_tdesc_registers): New function.
15320 (sparc32_gdbarch_init): Use tdesc_has_registers.
15321 Set pseudoregister functions.
15322 * sparc64-tdep.c (sparc64_register_name): Use target provided registers.
15323 (sparc64_register_type): Use target provided registers.
15324 (sparc64_init_abi): Set pseudoregister functions.
15325
f0fd41c1
TT
153262017-02-03 Tom Tromey <tom@tromey.com>
15327
15328 PR rust/21097:
15329 * rust-lang.c (rust_print_type) <TYPE_CODE_UNION>: Handle enums
15330 with a single member.
15331
d6f9b0fb
PA
153322017-02-03 Pedro Alves <palves@redhat.com>
15333
15334 * cli/cli-interp.c (cli_interp_base::cli_interp_base)
15335 (cli_interp_base::~cli_interp_base): New.
15336 (cli_interp): New struct.
15337 (as_cli_interp): Cast the interp itself to cli_interp.
15338 (cli_interpreter_pre_command_loop): Rename to ...
15339 (cli_interp_base::pre_command_loop): ... this. Remove 'self'
15340 parameter.
15341 (cli_interpreter_init): Rename to ...
15342 (cli_interp::init): ... this. Remove 'self' parameter. Use
15343 boolean. Make extern.
15344 (cli_interpreter_resume): Rename to ...
15345 (cli_interp::resume): ... this. Remove 'data' parameter. Make
15346 extern.
15347 (cli_interpreter_suspend): Rename to ...
15348 (cli_interp::suspend): ... this. Remove 'data' parameter. Make
15349 extern.
15350 (cli_interpreter_exec): Rename to ...
15351 (cli_interp::exec): ... this. Remove 'data' parameter. Make
15352 extern.
15353 (cli_interpreter_supports_command_editing): Rename to ...
15354 (cli_interp_base::supports_command_editing): ... this. Remove
15355 'interp' parameter. Make extern.
15356 (cli_ui_out): Rename to ...
15357 (cli_interp::interp_ui_out): ... this. Remove 'interp' parameter.
15358 Make extern.
15359 (cli_set_logging): Rename to ...
15360 (cli_interp_base::set_logging): ... this. Remove 'interp'
15361 parameter. Make extern.
15362 (cli_interp_procs): Delete.
15363 (cli_interp_factory): Adjust to use "new".
15364 * cli/cli-interp.h: Include "interps.h".
15365 (struct cli_interp_base): New struct.
15366 * interps.c (struct interp): Delete. Fields moved to interps.h.
15367 (interp_new): Delete.
15368 (interp::interp, interp::~interp): New.
15369 (interp_set): Use bool, and return void. Assume the interpreter
15370 has suspend, init and resume methods, and that the all return
15371 void.
15372 (set_top_level_interpreter): interp_set returns void.
15373 (interp_ui_out): Adapt.
15374 (current_interp_set_logging): Adapt.
15375 (interp_data): Delete.
15376 (interp_pre_command_loop, interp_supports_command_editing): Adapt.
15377 (interp_exec): Adapt.
15378 (top_level_interpreter_data): Delete.
15379 * interps.h (interp_init_ftype, interp_resume_ftype)
15380 (interp_suspend_ftype, interp_exec_ftype)
15381 (interp_pre_command_loop_ftype, interp_ui_out_ftype): Delete.
15382 (class interp): New.
15383 (interp_new): Delete.
15384 (interp_set): Now returns void. Use bool.
15385 (interp_data, top_level_interpreter_data): Delete.
15386 * mi/mi-common.h: Include interps.h.
15387 (class mi_interp): Inherit from interp. Define a ctor. Declare
15388 init, resume, suspect, exec, interp_ui_out, set_logging and
15389 pre_command_loop methods.
15390 * mi/mi-interp.c (as_mi_interp): Cast the interp itself.
15391 (mi_interpreter_init): Rename to ...
15392 (mi_interp::init): ... this. Remove the 'interp' parameter, use
15393 bool, return void and make extern. Adjust.
15394 (mi_interpreter_resume): ... Rename to ...
15395 (mi_interp::resume): ... this. Remove the 'data' parameter,
15396 return void and make extern. Adjust.
15397 (mi_interpreter_suspend): ... Rename to ...
15398 (mi_interp::suspend): ... this. Remove the 'data' parameter,
15399 return void and make extern. Adjust.
15400 (mi_interpreter_exec): ... Rename to ...
15401 (mi_interp::exec): ... this. Remove the 'data' parameter and make
15402 extern. Adjust.
15403 (mi_interpreter_pre_command_loop): ... Rename to ...
15404 (mi_interp::pre_command_loop): ... this. Remove the 'self'
15405 parameter and make extern.
15406 (mi_on_normal_stop_1): Adjust.
15407 (mi_ui_out): Rename to ...
15408 (mi_interp::interp_ui_out): ... this. Remove the 'interp'
15409 parameter and make extern. Adjust.
15410 (mi_set_logging): Rename to ...
15411 (mi_interp::set_logging): ... this. Remove the 'interp'
15412 parameter and make extern. Adjust.
15413 (mi_interp_procs): Delete.
15414 (mi_interp_factory): Adjust to use 'new'.
15415 * mi/mi-main.c (mi_cmd_gdb_exit, captured_mi_execute_command)
15416 (mi_print_exception, mi_execute_command, mi_load_progress):
15417 Adjust.
15418 * tui/tui-interp.c (tui_interp): New class.
15419 (as_tui_interp): Return a tui_interp pointer.
15420 (tui_on_normal_stop, tui_on_signal_received)
15421 (tui_on_end_stepping_range, tui_on_signal_exited, tui_on_exited)
15422 (tui_on_no_history, tui_on_user_selected_context_changed): Adjust
15423 to use interp::interp_ui_out.
15424 (tui_init): Rename to ...
15425 (tui_interp::init): ... this. Remove the 'self' parameter, use
15426 bool, return void and make extern. Adjust.
15427 (tui_resume): Rename to ...
15428 (tui_interp::resume): ... this. Remove the 'data' parameter,
15429 return void and make extern. Adjust.
15430 (tui_suspend): Rename to ...
15431 (tui_interp::suspend): ... this. Remove the 'data' parameter,
15432 return void and make extern. Adjust.
15433 (tui_ui_out): Rename to ...
15434 (tui_interp::interp_ui_out): ... this. Remove the 'self'
15435 parameter, and make extern. Adjust.
15436 (tui_exec): Rename to ...
15437 (tui_interp::exec): ... this. Remove the 'data' parameter and
15438 make extern.
15439 (tui_interp_procs): Delete.
15440 (tui_interp_factory): Use "new".
15441
65c40c95
TT
154422017-02-02 Tom Tromey <tom@tromey.com>
15443
15444 * rust-exp.y (ends_raw_string, space_then_number)
15445 (rust_identifier_start_p): Return bool.
15446 * rust-lang.c (rust_tuple_type_p, rust_underscore_fields)
15447 (rust_tuple_struct_type_p, rust_tuple_variant_type_p)
15448 (rust_slice_type_p, rust_range_type_p, rust_u8_type_p)
15449 (rust_chartype_p): Return bool.
15450 (val_print_struct, rust_print_struct_def, rust_print_type):
15451 Update.
15452 * rust-lang.h (rust_tuple_type_p, rust_tuple_struct_type_p):
15453 Return bool.
15454
b50f188d
TT
154552017-02-02 Tom Tromey <tom@tromey.com>
15456
15457 * rust-lang.c: Reindent.
15458
03c85b11
TT
154592017-02-02 Tom Tromey <tom@tromey.com>
15460
15461 * rust-lang.h (rust_crate_for_block): Update.
15462 * rust-lang.c (rust_crate_for_block): Return std::string.
15463 (rust_get_disr_info): Use std:;string, not
15464 gdb::unique_xmalloc_ptr.
15465 * rust-exp.y (crate_name): Update.
15466
9b6da501
PA
154672017-02-02 Pedro Alves <palves@redhat.com>
15468
15469 * disasm-selftests.c (print_one_insn_test): Move the "verbose"
15470 field out of gdb_disassembler_test and make it static.
15471
ec4cb20b
PA
154722017-02-02 Pedro Alves <palves@redhat.com>
15473
15474 * mi/mi-common.h (struct mi_interp): Delete the mi2_interp,
15475 mi1_interp and mi_interp fields.
15476
5be5dbf0
PA
154772017-02-02 Pedro Alves <palves@redhat.com>
15478
616268b6
PA
15479 * cli/cli-interp.c (struct saved_output_files, saved_output):
15480 Moved from cli/cli-logging.c.
15481 (cli_set_logging): New function.
15482 (cli_interp_procs): Install cli_set_logging.
15483 * cli/cli-interp.h (make_logging_output, cli_set_logging):
15484 Declare.
15485 * cli/cli-logging.c (struct saved_output_files, saved_output):
15486 Moved to cli/cli-interp.c.
15487 (pop_output_files): Don't save outputs here.
15488 (make_logging_output): New function.
15489 (handle_redirections): Don't build tee nor save previous outputs
15490 here.
15491 * interps.c (current_interp_set_logging): Change prototype.
15492 Assume there's always a set_logging_proc method installed.
15493 * interps.h (interp_set_logging_ftype): Change prototype.
15494 (current_interp_set_logging): Change prototype and adjust comment.
15495 * mi/mi-interp.c (mi_set_logging): Change protototype. Adjust to
15496 use make_logging_output.
15497 * tui/tui-interp.c (tui_interp_procs): Install cli_set_logging.
154982017-02-02 Pedro Alves <palves@redhat.com>
15499
5be5dbf0
PA
15500 * cli/cli-logging.c (maybe_warn_already_logging): New factored out
15501 from ...
15502 (set_logging_overwrite): ... here.
15503 (logging_no_redirect_file): Delete.
15504 (set_logging_redirect): Don't handle redirection on the fly.
15505 Instead warn that "logging off" / "logging on" is necessary.
15506 (pop_output_files): Delete references to logging_no_redirect_file.
15507 (show_logging_command): Always speak in terms of what will happen
15508 once logging is reenabled.
15509
c99cc448
PA
155102017-02-02 Pedro Alves <palves@redhat.com>
15511
15512 * disasm.h (gdb_pretty_print_disassembler): Tweak intro comment.
15513
8b172ce7
PA
155142017-02-02 Pedro Alves <palves@redhat.com>
15515
15516 * disasm.c (gdb_pretty_print_insn): Rename to ...
15517 (gdb_pretty_print_disassembler::pretty_print_insn): ... this.
15518 Remove gdbarch parameter. Adapt to clear the object's buffers
15519 instead of allocating new buffers, and to print using the object's
15520 gdb_disassembler instead of calling gdb_print_insn.
15521 (dump_insns): Use gdb_pretty_print_disassembler.
15522 * disasm.h (gdb_pretty_print_insn): Delete declaration.
15523 (gdb_pretty_print_disassembler): New class.
15524 * record-btrace.c (btrace_insn_history): Use
15525 gdb_pretty_print_disassembler.
15526
d7e74731
PA
155272017-02-02 Pedro Alves <palves@redhat.com>
15528
15529 * ada-lang.c (type_as_string): Use string_file.
15530 * ada-valprint.c (ada_print_floating): Use string_file.
15531 * ada-varobj.c (ada_varobj_scalar_image)
15532 (ada_varobj_get_value_image): Use string_file.
15533 * aix-thread.c (aix_thread_extra_thread_info): Use string_file.
15534 * arm-tdep.c (_initialize_arm_tdep): Use string_printf.
15535 * breakpoint.c (update_inserted_breakpoint_locations)
15536 (insert_breakpoint_locations, reattach_breakpoints)
15537 (print_breakpoint_location, print_one_detail_ranged_breakpoint)
15538 (print_it_watchpoint): Use string_file.
15539 (save_breakpoints): Use stdio_file.
15540 * c-exp.y (oper): Use string_file.
15541 * cli/cli-logging.c (set_logging_redirect): Use ui_file_up and
15542 tee_file.
15543 (pop_output_files): Use delete.
15544 (handle_redirections): Use stdio_file and tee_file.
15545 * cli/cli-setshow.c (do_show_command): Use string_file.
15546 * compile/compile-c-support.c (c_compute_program): Use
15547 string_file.
15548 * compile/compile-c-symbols.c (generate_vla_size): Take a
15549 'string_file &' instead of a 'ui_file *'.
15550 (generate_c_for_for_one_variable): Take a 'string_file &' instead
15551 of a 'ui_file *'. Use string_file.
15552 (generate_c_for_variable_locations): Take a 'string_file &'
15553 instead of a 'ui_file *'.
15554 * compile/compile-internal.h (generate_c_for_for_one_variable):
15555 Take a 'string_file &' instead of a 'ui_file *'.
15556 * compile/compile-loc2c.c (push, pushf, unary, binary)
15557 (print_label, pushf_register_address, pushf_register)
15558 (do_compile_dwarf_expr_to_c): Take a 'string_file &' instead of a
15559 'ui_file *'. Adjust.
15560 * compile/compile.c (compile_to_object): Use string_file.
15561 * compile/compile.h (compile_dwarf_expr_to_c)
15562 (compile_dwarf_bounds_to_c): Take a 'string_file &' instead of a
15563 'ui_file *'.
15564 * cp-support.c (inspect_type): Use string_file and obstack_copy0.
15565 (replace_typedefs_qualified_name): Use string_file and
15566 obstack_copy0.
15567 * disasm.c (gdb_pretty_print_insn): Use string_file.
15568 (gdb_disassembly): Adjust reference the null_stream global.
15569 (do_ui_file_delete): Delete.
15570 (gdb_insn_length): Use null_stream.
15571 * dummy-frame.c (maintenance_print_dummy_frames): Use stdio_file.
15572 * dwarf2loc.c (dwarf2_compile_property_to_c)
15573 (locexpr_generate_c_location, loclist_generate_c_location): Take a
15574 'string_file &' instead of a 'ui_file *'.
15575 * dwarf2loc.h (dwarf2_compile_property_to_c): Likewise.
15576 * dwarf2read.c (do_ui_file_peek_last): Delete.
15577 (dwarf2_compute_name): Use string_file.
15578 * event-top.c (gdb_setup_readline): Use stdio_file.
15579 * gdbarch.sh (verify_gdbarch): Use string_file.
15580 * gdbtypes.c (safe_parse_type): Use null_stream.
15581 * guile/scm-breakpoint.c (gdbscm_breakpoint_commands): Use
15582 string_file.
15583 * guile/scm-disasm.c (gdbscm_print_insn_from_port): Take a
15584 'string_file *' instead of a 'ui_file *'.
15585 (gdbscm_arch_disassemble): Use string_file.
15586 * guile/scm-frame.c (frscm_print_frame_smob): Use string_file.
15587 * guile/scm-ports.c (class ioscm_file_port): Now a class that
15588 inherits from ui_file.
15589 (ioscm_file_port_delete, ioscm_file_port_rewind)
15590 (ioscm_file_port_put): Delete.
15591 (ioscm_file_port_write): Rename to ...
15592 (ioscm_file_port::write): ... this. Remove file_port_magic
15593 checks.
15594 (ioscm_file_port_new): Delete.
15595 (ioscm_with_output_to_port_worker): Use ioscm_file_port and
15596 ui_file_up.
15597 * guile/scm-type.c (tyscm_type_name): Use string_file.
15598 * guile/scm-value.c (vlscm_print_value_smob, gdbscm_value_print):
15599 Use string_file.
15600 * infcmd.c (print_return_value_1): Use string_file.
15601 * infrun.c (print_target_wait_results): Use string_file.
15602 * language.c (add_language): Use string_file.
15603 * location.c (explicit_to_string_internal): Use string_file.
15604 * main.c (captured_main_1): Use null_file.
15605 * maint.c (maintenance_print_architecture): Use stdio_file.
15606 * mi/mi-cmd-stack.c (list_arg_or_local): Use string_file.
15607 * mi/mi-common.h (struct mi_interp) <out, err, log, targ,
15608 event_channel>: Change type to mi_console_file pointer.
15609 * mi/mi-console.c (mi_console_file_fputs, mi_console_file_flush)
15610 (mi_console_file_delete): Delete.
15611 (struct mi_console_file): Delete.
15612 (mi_console_file_magic): Delete.
15613 (mi_console_file_new): Delete.
15614 (mi_console_file::mi_console_file): New.
15615 (mi_console_file_delete): Delete.
15616 (mi_console_file_fputs): Delete.
15617 (mi_console_file::write): New.
15618 (mi_console_raw_packet): Delete.
15619 (mi_console_file::flush): New.
15620 (mi_console_file_flush): Delete.
15621 (mi_console_set_raw): Rename to ...
15622 (mi_console_file::set_raw): ... this.
15623 * mi/mi-console.h (class mi_console_file): New class.
15624 (mi_console_file_new, mi_console_set_raw): Delete.
15625 * mi/mi-interp.c (mi_interpreter_init): Use mi_console_file.
15626 (mi_set_logging): Use delete and tee_file. Adjust.
15627 * mi/mi-main.c (output_register): Use string_file.
15628 (mi_cmd_data_evaluate_expression): Use string_file.
15629 (mi_cmd_data_read_memory): Use string_file.
15630 (mi_cmd_execute, print_variable_or_computed): Use string_file.
15631 * mi/mi-out.c (mi_ui_out::main_stream): New.
15632 (mi_ui_out::rewind): Use main_stream and
15633 string_file.
15634 (mi_ui_out::put): Use main_stream and string_file.
15635 (mi_ui_out::mi_ui_out): Remove 'stream' parameter.
15636 Allocate a 'string_file' instead.
15637 (mi_out_new): Don't allocate a mem_fileopen stream here.
15638 * mi/mi-out.h (mi_ui_out::mi_ui_out): Remove 'stream' parameter.
15639 (mi_ui_out::main_stream): Declare method.
15640 * printcmd.c (eval_command): Use string_file.
15641 * psymtab.c (maintenance_print_psymbols): Use stdio_file.
15642 * python/py-arch.c (archpy_disassemble): Use string_file.
15643 * python/py-breakpoint.c (bppy_get_commands): Use string_file.
15644 * python/py-frame.c (frapy_str): Use string_file.
15645 * python/py-framefilter.c (py_print_type, py_print_single_arg):
15646 Use string_file.
15647 * python/py-type.c (typy_str): Use string_file.
15648 * python/py-unwind.c (unwind_infopy_str): Use string_file.
15649 * python/py-value.c (valpy_str): Use string_file.
15650 * record-btrace.c (btrace_insn_history): Use string_file.
15651 * regcache.c (regcache_print): Use stdio_file.
15652 * reggroups.c (maintenance_print_reggroups): Use stdio_file.
15653 * remote.c (escape_buffer): Use string_file.
15654 * rust-lang.c (rust_get_disr_info): Use string_file.
15655 * serial.c (serial_open_ops_1): Use stdio_file.
15656 (do_serial_close): Use delete.
15657 * stack.c (print_frame_arg): Use string_file.
15658 (print_frame_args): Remove local mem_fileopen stream, not used.
15659 (print_frame): Use string_file.
15660 * symmisc.c (maintenance_print_symbols): Use stdio_file.
15661 * symtab.h (struct symbol_computed_ops) <generate_c_location>:
15662 Take a 'string_file *' instead of a 'ui_file *'.
15663 * top.c (new_ui): Use stdio_file and stderr_file.
15664 (free_ui): Use delete.
15665 (execute_command_to_string): Use string_file.
15666 (quit_confirm): Use string_file.
15667 * tracepoint.c (collection_list::append_exp): Use string_file.
15668 * tui/tui-disasm.c (tui_disassemble): Use string_file.
15669 * tui/tui-file.c: Don't include "ui-file.h".
15670 (enum streamtype, struct tui_stream): Delete.
15671 (tui_file_new, tui_file_delete, tui_fileopen, tui_sfileopen)
15672 (tui_file_isatty, tui_file_rewind, tui_file_put): Delete.
15673 (tui_file::tui_file): New method.
15674 (tui_file_fputs): Delete.
15675 (tui_file_get_strbuf): Delete.
15676 (tui_file::puts): New method.
15677 (tui_file_adjust_strbuf): Delete.
15678 (tui_file_flush): Delete.
15679 (tui_file::flush): New method.
15680 * tui/tui-file.h: Tweak intro comment.
15681 Include ui-file.h.
15682 (tui_fileopen, tui_sfileopen, tui_file_get_strbuf)
15683 (tui_file_adjust_strbuf): Delete declarations.
15684 (class tui_file): New class.
15685 * tui/tui-io.c (tui_initialize_io): Use tui_file.
15686 * tui/tui-regs.c (tui_restore_gdbout): Use delete.
15687 (tui_register_format): Use string_stream.
15688 * tui/tui-stack.c (tui_make_status_line): Use string_file.
15689 (tui_get_function_from_frame): Use string_file.
15690 * typeprint.c (type_to_string): Use string_file.
15691 * ui-file.c (struct ui_file, ui_file_magic, ui_file_new): Delete.
15692 (null_stream): New global.
15693 (ui_file_delete): Delete.
15694 (ui_file::ui_file): New.
15695 (null_file_isatty): Delete.
15696 (ui_file::~ui_file): New.
15697 (null_file_rewind): Delete.
15698 (ui_file::printf): New.
15699 (null_file_put): Delete.
15700 (null_file_flush): Delete.
15701 (ui_file::putstr): New.
15702 (null_file_write): Delete.
15703 (ui_file::putstrn): New.
15704 (null_file_read): Delete.
15705 (ui_file::putc): New.
15706 (null_file_fputs): Delete.
15707 (null_file_write_async_safe): Delete.
15708 (ui_file::vprintf): New.
15709 (null_file_delete): Delete.
15710 (null_file::write): New.
15711 (null_file_fseek): Delete.
15712 (null_file::puts): New.
15713 (ui_file_data): Delete.
15714 (null_file::write_async_safe): New.
15715 (gdb_flush, ui_file_isatty): Adjust.
15716 (ui_file_put, ui_file_rewind): Delete.
15717 (ui_file_write): Adjust.
15718 (ui_file_write_for_put): Delete.
15719 (ui_file_write_async_safe, ui_file_read): Adjust.
15720 (ui_file_fseek): Delete.
15721 (fputs_unfiltered): Adjust.
15722 (set_ui_file_flush, set_ui_file_isatty, set_ui_file_rewind)
15723 (set_ui_file_put, set_ui_file_write, set_ui_file_write_async_safe)
15724 (set_ui_file_read, set_ui_file_fputs, set_ui_file_fseek)
15725 (set_ui_file_data): Delete.
15726 (string_file::~string_file, string_file::write)
15727 (struct accumulated_ui_file, do_ui_file_xstrdup, ui_file_xstrdup)
15728 (do_ui_file_as_string, ui_file_as_string): Delete.
15729 (do_ui_file_obsavestring, ui_file_obsavestring): Delete.
15730 (struct mem_file): Delete.
15731 (mem_file_new): Delete.
15732 (stdio_file::stdio_file): New.
15733 (mem_file_delete): Delete.
15734 (stdio_file::stdio_file): New.
15735 (mem_fileopen): Delete.
15736 (stdio_file::~stdio_file): New.
15737 (mem_file_rewind): Delete.
15738 (stdio_file::set_stream): New.
15739 (mem_file_put): Delete.
15740 (stdio_file::open): New.
15741 (mem_file_write): Delete.
15742 (stdio_file_magic, struct stdio_file): Delete.
15743 (stdio_file_new, stdio_file_delete, stdio_file_flush): Delete.
15744 (stdio_file::flush): New.
15745 (stdio_file_read): Rename to ...
15746 (stdio_file::read): ... this. Adjust.
15747 (stdio_file_write): Rename to ...
15748 (stdio_file::write): ... this. Adjust.
15749 (stdio_file_write_async_safe): Rename to ...
15750 (stdio_file::write_async_safe) ... this. Adjust.
15751 (stdio_file_fputs): Rename to ...
15752 (stdio_file::puts) ... this. Adjust.
15753 (stdio_file_isatty): Delete.
15754 (stdio_file_fseek): Delete.
15755 (stdio_file::isatty): New.
15756 (stderr_file_write): Rename to ...
15757 (stderr_file::write) ... this. Adjust.
15758 (stderr_file_fputs): Rename to ...
15759 (stderr_file::puts) ... this. Adjust.
15760 (stderr_fileopen, stdio_fileopen, gdb_fopen): Delete.
15761 (stderr_file::stderr_file): New.
15762 (tee_file_magic): Delete.
15763 (struct tee_file): Delete.
15764 (tee_file::tee_file): New.
15765 (tee_file_new): Delete.
15766 (tee_file::~tee_file): New.
15767 (tee_file_delete): Delete.
15768 (tee_file_flush): Rename to ...
15769 (tee_file::flush): ... this. Adjust.
15770 (tee_file_write): Rename to ...
15771 (tee_file::write): ... this. Adjust.
15772 (tee_file::write_async_safe): New.
15773 (tee_file_fputs): Rename to ...
15774 (tee_file::puts): ... this. Adjust.
15775 (tee_file_isatty): Rename to ...
15776 (tee_file::isatty): ... this. Adjust.
15777 * ui-file.h (struct obstack, struct ui_file): Don't
15778 forward-declare.
15779 (ui_file_new, ui_file_flush_ftype, set_ui_file_flush)
15780 (ui_file_write_ftype)
15781 (set_ui_file_write, ui_file_fputs_ftype, set_ui_file_fputs)
15782 (ui_file_write_async_safe_ftype, set_ui_file_write_async_safe)
15783 (ui_file_read_ftype, set_ui_file_read, ui_file_isatty_ftype)
15784 (set_ui_file_isatty, ui_file_rewind_ftype, set_ui_file_rewind)
15785 (ui_file_put_method_ftype, ui_file_put_ftype, set_ui_file_put)
15786 (ui_file_delete_ftype, set_ui_file_data, ui_file_fseek_ftype)
15787 (set_ui_file_fseek): Delete.
15788 (ui_file_data, ui_file_delete, ui_file_rewind)
15789 (struct ui_file): New.
15790 (ui_file_up): New.
15791 (class null_file): New.
15792 (null_stream): Declare.
15793 (ui_file_write_for_put, ui_file_put): Delete.
15794 (ui_file_xstrdup, ui_file_as_string, ui_file_obsavestring):
15795 Delete.
15796 (ui_file_fseek, mem_fileopen, stdio_fileopen, stderr_fileopen)
15797 (gdb_fopen, tee_file_new): Delete.
15798 (struct string_file): New.
15799 (struct stdio_file): New.
15800 (stdio_file_up): New.
15801 (struct stderr_file): New.
15802 (class tee_file): New.
15803 * ui-out.c (ui_out::field_stream): Take a 'string_file &' instead
15804 of a 'ui_file *'. Adjust.
15805 * ui-out.h (class ui_out) <field_stream>: Likewise.
15806 * utils.c (do_ui_file_delete, make_cleanup_ui_file_delete)
15807 (null_stream): Delete.
15808 (error_stream): Take a 'string_file &' instead of a 'ui_file *'.
15809 Adjust.
15810 * utils.h (struct ui_file): Delete forward declaration..
15811 (make_cleanup_ui_file_delete, null_stream): Delete declarations.
15812 (error_stream): Take a 'string_file &' instead of a
15813 'ui_file *'.
15814 * varobj.c (varobj_value_get_print_value): Use string_file.
15815 * xtensa-tdep.c (xtensa_verify_config): Use string_file.
15816 * gdbarch.c: Regenerate.
15817
187808b0
PA
158182017-02-02 Pedro Alves <palves@redhat.com>
15819
15820 * disasm.c (gdb_disassembler::pretty_print_insn): Rename to...
15821 (gdb_pretty_print_insn): ... this. Now a free function. Add back
15822 a 'gdbarch' parameter. Allocate a mem_fileopen stream here.
15823 Adjust to call gdb_print_insn instead of
15824 gdb_disassembler::print_insn.
15825 (dump_insns, do_mixed_source_and_assembly_deprecated)
15826 (do_mixed_source_and_assembly, do_assembly_only): Add back a
15827 'gdbarch' parameter. Remove gdb_disassembler parameter.
15828 (gdb_disassembly): Don't allocate a gdb_disassembler here.
15829 * disasm.h (gdb_disassembler::pretty_print_insn): Delete
15830 declaration.
15831 (gdb_pretty_print_insn): Re-add declaration.
15832 * record-btrace.c (btrace_insn_history): Don't allocate a
15833 gdb_disassembler here. Adjust to call gdb_pretty_print_insn.
15834
7a8eb317
SM
158352017-02-01 Simon Marchi <simon.marchi@polymtl.ca>
15836
15837 * disasm.h (gdb_disassembly): Remove file_string parameter.
15838 * disasm.c (gdb_disassembly): Likewise.
15839 * cli/cli-cmds.c (print_disassembly): Adapt.
15840 * mi/mi-cmd-disas.c (mi_cmd_disassemble): Likewise.
15841 * stack.c (do_gdb_disassembly): Likewise.
15842
7346ef59
AA
158432017-02-01 Andreas Arnez <arnez@linux.vnet.ibm.com>
15844
15845 * dwarf2loc.c (dwarf2_evaluate_loc_desc_full): For
15846 DWARF_VALUE_LITERAL, no longer ignore the offset on big-endian
15847 targets. And if the implicit value is longer than needed, extract
15848 the first bytes instead of the "least significant" ones.
15849
cd4007e4
MM
158502017-02-01 Markus Metzger <markus.t.metzger@intel.com>
15851
15852 * btrace.c (btrace_enable): Do not call btrace_add_pc for
15853 BTRACE_FORMAT_PT or if can_access_registers_ptid returns false.
15854 (btrace_fetch): Assert can_access_registers_ptid.
15855 * record-btrace.c (require_btrace_thread, record_btrace_info): Call
15856 validate_registers_access.
15857
cf77c34e
MM
158582017-02-01 Markus Metzger <markus.t.metzger@intel.com>
15859
15860 * gdbthread.h (can_access_registers_ptid): New.
15861 * thread.c (can_access_registers_ptid): New.
15862
be85ce7d
PA
158632017-02-01 Pedro Alves <palves@redhat.com>
15864
15865 * i386-tdep.c (i386_fast_tracepoint_valid_at): Use gdb_insn_length.
15866
29b0b251
PA
158672017-01-31 Pedro Alves <palves@redhat.com>
15868
15869 * mi/mi-interp.c (mi_breakpoint_created, mi_breakpoint_modified):
15870 Fix typos.
15871
289b5b24
PA
158722017-01-31 Pedro Alves <palves@redhat.com>
15873
15874 * stack.c (print_frame_args): Remove local mem_fileopen stream,
15875 not used.
15876
b47413b4
PA
158772017-01-31 Pedro Alves <palves@redhat.com>
15878
15879 * varobj.c (varobj_value_get_print_value): Remove xstrdup call.
15880
60adb36c
PA
158812017-01-31 Pedro Alves <palves@redhat.com>
15882
15883 * common/scoped_restore.h
15884 (scoped_restore_tmpl::scoped_restore_tmpl): Template on T2, and
15885 change the value's parameter type to T2.
15886 (make_scoped_restore): Likewise.
15887
2735833d
WT
158882017-01-27 Walfred Tedeschi <walfred.tedeschi@intel.com>
15889 Richard Henderson <rth@redhat.com>
15890
15891 * amd64-linux-nat.c (PTRACE_ARCH_PRCTL): New define.
15892 (amd64_linux_fetch_inferior_registers): Add case to fetch FS_BASE
15893 GS_BASE for older kernels.
15894 (amd64_linux_store_inferior_registers): Add case to store FS_BASE
15895 GS_BASE for older kernels.
15896 * amd64-linux-tdep.c (amd64_linux_gregset_reg_offset): Add FS_BASE
15897 and GS_BASE to the offset table.
15898 (amd64_linux_register_reggroup_p): Add FS_BASE and GS_BASE to the
15899 system register group.
15900 * amd64-nat.c (amd64_native_gregset_reg_offset): Implements case
15901 for older kernels.
15902 * amd64-tdep.c (amd64_init_abi): Add segment registers for the
15903 amd64 ABI.
15904 * amd64-tdep.h (amd64_regnum): Add AMD64_FSBASE_REGNUM and
15905 AMD64_GSBASE_REGNUM.
15906 (AMD64_NUM_REGS): Set to AMD64_GSBASE_REGNUM + 1.
15907 * features/Makefile (amd64-linux.dat, amd64-avx-linux.dat)
15908 (amd64-mpx-linux.dat, amd64-avx512-linux.dat, x32-linux.dat)
15909 (x32-avx-linux.dat, x32-avx512-linux.dat): Add
15910 i386/64bit-segments.xml in those rules.
15911 * features/i386/64bit-segments.xml: New file.
15912 * features/i386/amd64-avx-mpx-linux.xml: Add 64bit-segments.xml.
15913 * features/i386/amd64-avx-linux.xml: Add 64bit-segments.xml.
15914 * features/i386/amd64-avx512-linux.xml: Add 64bit-segments.xml.
15915 * features/i386/amd64-mpx-linux.xml: Add 64bit-segments.xml.
15916 * features/i386/x32-avx512-linux.xml: Add 64bit-segments.xml.
15917 * features/i386/x32-avx-linux.xml: Add 64bit-segments.xml.
15918 * features/i386/amd64-linux.xml: Add 64bit-segments.xml.
15919 * features/i386/amd64-avx-linux.c: Regenerated.
15920 * features/i386/amd64-avx-mpx-linux.c: Regenerated.
15921 * features/i386/amd64-avx-mpx.c: Regenerated.
15922 * features/i386/amd64-avx512-linux.c: Regenerated.
15923 * features/i386/amd64-linux.c: Regenerated.
15924 * features/i386/amd64-mpx-linux.c: Regenerated.
15925 * features/i386/i386-avx-mpx-linux.c: Regenerated.
15926 * features/i386/i386-avx-mpx.c: Regenerated.
15927 * features/i386/x32-avx-linux.c: Regenerated.
15928 * features/i386/x32-avx512-linux.c: Regenerated.
15929 * regformats/i386/amd64-avx-linux.dat: Regenerated.
15930 * regformats/i386/amd64-avx-mpx-linux.dat: Regenerated.
15931 * regformats/i386/amd64-avx512-linux.dat: Regenerated.
15932 * regformats/i386/amd64-linux.dat: Regenerated.
15933 * regformats/i386/amd64-mpx-linux.dat: Regenerated.
15934 * regformats/i386/x32-avx-linux.dat: Regenerated.
15935 * regformats/i386/x32-avx512-linux.dat: Regenerated.
15936 * regformats/i386/x32-linux.dat: Regenerated.
15937
8884e97e
WT
159382017-01-27 Walfred Tedeschi <walfred.tedeschi@intel.com>
15939
15940 * amd64-linux-tdep.h (AMD64_LINUX_ORIG_RAX_REGNUM):
15941 Set to AMD64_NUM_REGS.
15942
7005d26a
WT
159432017-01-27 Walfred Tedeschi <walfred.tedeschi@intel.com>
15944
15945 * amd64-nat.c (amd64_native_gregset_reg_offset): Simplify logic
15946 that checks validity of a register number.
15947
4bd2e1b2
KC
159482017-01-27 Kees Cook <keescook@google.com>
15949
15950 * gdb/arm-linux-nat.c (arm_linux_fetch_inferior_registers): Call
15951 fetch_fpregs if target has fpa registers.
15952 (arm_linux_store_inferior_registers): Call store_fpregs if target
15953 has fpa registers.
15954
7cf1de6c
AA
159552017-01-26 Andreas Arnez <arnez@linux.vnet.ibm.com>
15956
15957 * cris-tdep.c (cris_gdbarch_init): Remove check for
15958 info.byte_order and force it to BFD_ENDIAN_LITTLE.
15959
874a1c8c
AT
159602017-01-26 Antoine Tremblay <antoine.tremblay@ericsson.com>
15961
15962 * corelow.c (get_core_register_section): Check for regset
15963 existence before checking for REGSET_VARIABLE_SIZE.
15964
d8b49cf0
YQ
159652017-01-26 Yao Qi <yao.qi@linaro.org>
15966 Pedro Alves <palves@redhat.com>
15967
15968 PR gdb/20939
15969 * disasm.c (gdb_disassembler::dis_asm_memory_error): Don't
15970 call memory_error, save memaddr instead.
15971 (gdb_disassembler::print_insn): If gdbarch_print_insn returns
15972 negative, cal memory_error.
15973 * disasm.h (gdb_disassembler) <m_err_memaddr>: New field.
15974
658ca58c
YQ
159752017-01-26 Yao Qi <yao.qi@linaro.org>
15976
15977 * disasm-selftests.c (memory_error_test): New function.
15978 (_initialize_disasm_selftests): Register memory_error_test.
15979
79843d45
YQ
159802017-01-26 Yao Qi <yao.qi@linaro.org>
15981
15982 * Makefile.in (SFILES): Add disasm-selftests.c and
15983 selftest-arch.c.
15984 (COMMON_OBS): Add disasm-selftests.o and selftest-arch.o.
15985 * disasm-selftests.c: New file.
15986 * selftest-arch.c: New file.
15987 * selftest-arch.h: New file.
15988
8cafda32
YQ
159892017-01-26 Yao Qi <yao.qi@linaro.org>
15990
15991 * mep-tdep.c (mep_gdb_print_insn): Set info->arch
15992 to bfd_arch_mep. Don't return 0 if section is not
15993 found. Call print_insn_mep.
15994
e47ad6c0
YQ
159952017-01-26 Pedro Alves <palves@redhat.com>
15996 Yao Qi <yao.qi@linaro.org>
15997
15998 * arm-tdep.c: Include "disasm.h".
15999 (gdb_print_insn_arm): Update code to get gdbarch.
16000 * disasm.c (dis_asm_read_memory): Change it to
16001 gdb_disassembler::dis_asm_read_memory.
16002 (dis_asm_memory_error): Likewise.
16003 (dis_asm_print_address): Likewise.
16004 (gdb_pretty_print_insn): Change it to
16005 gdb_disassembler::pretty_print_insn.
16006 (dump_insns): Add one argument gdb_disassemlber. All
16007 callers updated.
16008 (do_mixed_source_and_assembly_deprecated): Likewise.
16009 (do_mixed_source_and_assembly): Likewise.
16010 (do_assembly_only): Likewise.
16011 (gdb_disassembler::gdb_disassembler): New.
16012 (gdb_disassembler::print_insn): New.
16013 * disasm.h (class gdb_disassembler): New.
16014 (gdb_pretty_print_insn): Remove declaration.
16015 (gdb_disassemble_info): Likewise.
16016 * guile/scm-disasm.c (class gdbscm_disassembler): New.
16017 (gdbscm_disasm_read_memory_worker): Update.
16018 (gdbscm_disasm_read_memory): Update.
16019 (gdbscm_disasm_memory_error): Remove.
16020 (gdbscm_disasm_print_address): Remove.
16021 (gdbscm_disassembler::gdbscm_disassembler): New.
16022 (gdbscm_print_insn_from_port): Update.
16023 * mips-tdep.c: Include disasm.h.
16024 (gdb_print_insn_mips): Update code to get gdbarch.
16025 * record-btrace.c (btrace_insn_history): Update.
16026 * spu-tdep.c: Include disasm.h.
16027 (struct spu_dis_asm_data): Remove.
16028 (struct spu_dis_asm_info): New.
16029 (spu_dis_asm_print_address): Use spu_dis_asm_info to get
16030 SPU id.
16031 (gdb_print_insn_spu): Cast disassemble_info to
16032 spu_dis_asm_info.
16033
80d75874
YQ
160342017-01-26 Yao Qi <yao.qi@linaro.org>
16035
16036 * disasm.c (do_ui_file_delete): Delete.
16037 (gdb_insn_length): Move code creating stream to ...
16038 * utils.c (null_stream): ... here. New function.
16039 * utils.h (null_stream): Declare.
16040
60685cd0
SM
160412017-01-23 Simon Marchi <simon.marchi@polymtl.ca>
16042
16043 * python/py-inferior.c (find_thread_object): Return directly
16044 from the loop. Remove "found" variable.
16045
eb1cdb62
JB
160462017-01-21 Joel Brobecker <brobecker@adacore.com>
16047
16048 GDB 7.12.1 released.
16049
b1ce6568
SM
160502017-01-20 Simon Marchi <simon.marchi@ericsson.com>
16051
16052 * python/py-function.c (fnpy_call): Reorder declarations to have
16053 the gdbpy_enter object declared first.
16054 * python/py-xmethods.c (gdbpy_get_xmethod_arg_types): Likewise.
16055
6f8b0407
SM
160562017-01-20 Simon Marchi <simon.marchi@ericsson.com>
16057
fec93fb1 16058 PR python/21068
6f8b0407
SM
16059 * python/python-internal.h (PyMem_RawMalloc): Define for
16060 Python < 3.4.
16061 * python/py-gdb-readline.c (gdbpy_readline_wrapper): Use
16062 PyMem_RawMalloc instead of PyMem_Malloc.
16063
78cbbba8
LM
160642017-01-20 Mike Wrighton <mike_wrighton@codesourcery.com>
16065 Luis Machado <lgustavo@codesourcery.com>
16066
16067 * NEWS (New commands): Mention flash-erase.
16068 (New MI commands): Mention target-flash-erase.
16069 * mi/mi-cmds.c (mi_cmd_target_flash_erase): Add target-flash-erase MI
16070 command.
16071 * mi/mi-cmds.h (mi_cmd_target_flash_erase): New declaration.
16072 * mi/mi-main.c (mi_cmd_target_flash_erase): New function.
16073 * target.c (flash_erase_command): New function.
16074 (initialize_targets): Add new flash-erase command.
16075 * target.h (flash_erase_command): New declaration.
16076
2132fe85
JB
160772017-01-20 Joel Brobecker <brobecker@adacore.com>
16078
16079 * nat/linux-ptrace.c: Only include <sys/procfs.h> if
16080 HAVE_SYS_PROCFS_H is defined.
16081
d1dff226
AH
160822017-01-18 Alan Hayward <alan.hayward@arm.com>
16083
16084 * remote.c (struct cached_reg): Change data into a pointer.
16085 * (stop_reply_dtr): Free data pointers before deleting vector.
16086 (process_stop_reply): Likewise.
16087 (remote_parse_stop_reply): Allocate space for data
16088
9890e433
AH
160892017-01-18 Alan Hayward <alan.hayward@arm.com>
16090
16091 * amd64-tdep.c (amd64_pseudo_register_read_value): remove
16092 MAX_REGISTER_SIZE.
16093 (amd64_pseudo_register_read_value): Likewise.
16094 * remote.c (fetch_register_using_p): Remove MAX_REGISTER_SIZE.
16095 (store_register_using_P): Likewise.
16096 * regcache.c (regcache_xfer_part): Likewise.
16097
7a36499a
IR
160982017-01-16 Ivo Raisr <ivo.raisr@oracle.com>
16099
16100 Split real and pseudo registers.
16101 * sparc-tdep.h (SPARC_CORE_REGISTERS): New macro.
16102 (sparc32_pseudo_regnum): New enum.
16103 * sparc64-tdep.h (sparc64_pseudo_regnum): New enum.
16104 * sparc-tdep.c (SPARC32_FPU_REGISTERS): New macro.
16105 (SPARC32_CP0_REGISTERS): New macro.
16106 (sparc32_pseudo_register_name): New function.
16107 (sparc32_register_name): Use sparc32_pseudo_register_name.
16108 (sparc32_pseudo_register_type): New function.
16109 (sparc32_register_type): Use sparc32_pseudo_register_type.
16110 (sparc32_pseudo_register_read, sparc32_pseudo_register_write): Handle
16111 pseudo register numbers.
16112 * sparc64-tdep.c SPARC64_FPU_REGISTERS): New macro.
16113 (SPARC64_CP0_REGISTERS): New macro.
16114 (sparc64_pseudo_register_name): New function.
16115 (sparc64_register_name): Use sparc64_pseudo_register_name.
16116 (sparc64_pseudo_register_type): New function.
16117 (sparc64_register_type): Use sparc64_pseudo_register_type.
16118 (sparc64_pseudo_register_read, sparc64_pseudo_register_write): Handle
16119 pseudo register numbers.
16120 (sparc64_store_floating_fields, sparc64_extract_floating_fields,
16121 sparc64_store_arguments): Handle pseudo register numbers.
16122
6f8976bf
YQ
161232017-01-13 Yao Qi <yao.qi@linaro.org>
16124
16125 * remote.c (REMOTE_DEBUG_MAX_CHAR): New macro.
16126 (putpkt_binary): Print only REMOTE_DEBUG_MAX_CHAR chars in debug
16127 output.
16128 (getpkt_or_notif_sane_1): Likewise.
16129
e4241ace
YQ
161302017-01-13 Yao Qi <yao.qi@linaro.org>
16131
16132 * Makefile.in (checker-headers): Use CXX and CXX_DIALET instead
16133 of CC. Pass "-x c++-header" instead of "-x c".
16134
3015c064
SM
161352017-01-12 Simon Marchi <simon.marchi@ericsson.com>
16136
16137 * remote.c (remote_can_async_p): Update comment.
16138
fde1b17d
SM
161392017-01-12 Simon Marchi <simon.marchi@ericsson.com>
16140
16141 * linux-nat.c (linux_nat_can_async_p): Update comment.
16142
ca1ca08b
SM
161432017-01-12 Simon Marchi <simon.marchi@ericsson.com>
16144
16145 * serial.c (serial_open): Forget about "pc" and "lpt" serial interface.
16146
4ad2da73
SM
161472017-01-11 Simon Marchi <simon.marchi@ericsson.com>
16148
16149 * cli/cli-decode.c (lookup_cmd_1): Fix typo in comment.
16150
c8b23b3f
TT
161512017-01-10 Tom Tromey <tom@tromey.com>
16152
16153 * python/py-type.c (typy_legacy_template_argument): Update.
16154 * cp-support.h (struct demangle_parse_info) (demangle_parse_info,
16155 ~demangle_parse_info): Declare new members.
16156 (cp_demangled_name_to_comp): Return unique_ptr.
16157 (cp_demangled_name_parse_free)
16158 (make_cleanup_cp_demangled_name_parse_free)
16159 (cp_new_demangle_parse_info): Remove.
16160 * cp-support.c (do_demangled_name_parse_free_cleanup)
16161 (make_cleanup_cp_demangled_name_parse_free): Remove.
16162 (inspect_type, cp_canonicalize_string_full)
16163 (cp_canonicalize_string): Update.
16164 (mangled_name_to_comp): Change return type.
16165 (cp_class_name_from_physname, method_name_from_physname)
16166 (cp_func_name, cp_remove_params): Update.
16167 * cp-name-parser.y (demangle_parse_info): New constructor, from
16168 cp_new_demangle_parse_info.
16169 (~demangle_parse_info): New destructor, from
16170 cp_demangled_name_parse_free.
16171 (cp_merge_demangle_parse_infos): Update.
16172 (cp_demangled_name_to_comp): Change return type.
16173
1ac32117
TT
161742017-01-10 Tom Tromey <tom@tromey.com>
16175
16176 * top.c (prevent_dont_repeat): Change return type.
16177 * python/python.c (execute_gdb_command): Use std::string.
16178 Update.
16179 * guile/guile.c (gdbscm_execute_gdb_command): Update.
16180 * command.h (prevent_dont_repeat): Change return type.
16181 * breakpoint.c (bpstat_do_actions_1): Update.
16182
0cf08227
TT
161832017-01-10 Tom Tromey <tom@tromey.com>
16184
16185 * value.h (scoped_value_mark::~scoped_value_mark): Call
16186 free_to_mark.
16187 (scoped_value_mark::free_to_mark): New method.
16188 * dwarf2loc.c (dwarf2_evaluate_loc_desc_full): Use
16189 scoped_value_mark.
16190
eb115069
TT
161912017-01-10 Tom Tromey <tom@tromey.com>
16192
16193 * python/py-value.c (valpy_dereference, valpy_referenced_value)
16194 (valpy_reference_value, valpy_const_value, valpy_get_address)
16195 (valpy_get_dynamic_type, valpy_lazy_string, valpy_do_cast)
16196 (valpy_getitem, valpy_call, valpy_binop_throw, valpy_negative)
16197 (valpy_absolute, valpy_richcompare_throw): Use scoped_value_mark.
16198 * dwarf2loc.c (dwarf2_loc_desc_get_symbol_read_needs): Use
16199 scoped_value_mark.
16200 * dwarf2-frame.c (execute_stack_op): Use scoped_value_mark.
16201 * value.h (scoped_value_mark): New class.
16202
906768f9
TT
162032017-01-10 Tom Tromey <tom@tromey.com>
16204
16205 * dwarf2read.c (dwarf2_build_psymtabs): Use psymtab_discarder.
16206 * psympriv.h (make_cleanup_discard_psymtabs): Don't declare.
16207 * psymtab.c (discard_psymtabs_upto): Remove.
16208 (make_cleanup_discard_psymtabs): Remove.
16209 (struct psymtab_state): Remove.
16210
bef155c3
TT
162112017-01-10 Tom Tromey <tom@tromey.com>
16212
16213 * record-full.c (record_full_save_cleanups): Remove.
16214 (record_full_save): Use gdb::unlinker.
16215 * gcore.c (do_bfd_delete_cleanup): Remove.
16216 (gcore_command): Use gdb::unlinker, unique_xmalloc_ptr. Remove
16217 cleanups.
16218 * dwarf2read.c (unlink_if_set): Remove.
16219 (write_psymtabs_to_index): Use gdb::unlinker.
16220 * common/gdb_unlinker.h: New file.
16221
192b62ce
TT
162222017-01-10 Tom Tromey <tom@tromey.com>
16223
16224 * windows-tdep.c (windows_xfer_shared_library): Update.
16225 * windows-nat.c (windows_make_so): Update.
16226 * utils.h (make_cleanup_bfd_unref): Remove.
16227 * utils.c (do_bfd_close_cleanup, make_cleanup_bfd_unref): Remove.
16228 * symfile.h (symfile_bfd_open)
16229 (find_separate_debug_file_in_section): Return gdb_bfd_ref_ptr.
16230 * symfile.c (read_symbols, symbol_file_add)
16231 (separate_debug_file_exists): Update.
16232 (symfile_bfd_open): Return gdb_bfd_ref_ptr.
16233 (generic_load, reread_symbols): Update.
16234 * symfile-mem.c (symbol_file_add_from_memory): Update.
16235 * spu-linux-nat.c (spu_bfd_open): Return gdb_bfd_ref_ptr.
16236 (spu_symbol_file_add_from_memory): Update.
16237 * solist.h (struct target_so_ops) <bfd_open>: Return
16238 gdb_bfd_ref_ptr.
16239 (solib_bfd_fopen, solib_bfd_open): Return gdb_bfd_ref_ptr.
16240 * solib.c (solib_bfd_fopen, solib_bfd_open): Return
16241 gdb_bfd_ref_ptr.
16242 (solib_map_sections, reload_shared_libraries_1): Update.
16243 * solib-svr4.c (enable_break): Update.
16244 * solib-spu.c (spu_bfd_fopen): Return gdb_bfd_ref_ptr.
16245 * solib-frv.c (enable_break2): Update.
16246 * solib-dsbt.c (enable_break): Update.
16247 * solib-darwin.c (gdb_bfd_mach_o_fat_extract): Return
16248 gdb_bfd_ref_ptr.
16249 (darwin_solib_get_all_image_info_addr_at_init): Update.
16250 (darwin_bfd_open): Return gdb_bfd_ref_ptr.
16251 * solib-aix.c (solib_aix_bfd_open): Return gdb_bfd_ref_ptr.
16252 * record-full.c (record_full_save): Update.
16253 * python/py-objfile.c (objfpy_add_separate_debug_file): Update.
16254 * procfs.c (insert_dbx_link_bpt_in_file): Update.
16255 * minidebug.c (find_separate_debug_file_in_section): Return
16256 gdb_bfd_ref_ptr.
16257 * machoread.c (macho_add_oso_symfile): Change abfd to
16258 gdb_bfd_ref_ptr.
16259 (macho_symfile_read_all_oso): Update.
16260 (macho_check_dsym): Return gdb_bfd_ref_ptr.
16261 (macho_symfile_read): Update.
16262 * jit.c (bfd_open_from_target_memory): Return gdb_bfd_ref_ptr.
16263 (jit_bfd_try_read_symtab): Update.
16264 * gdb_bfd.h (gdb_bfd_open, gdb_bfd_fopen, gdb_bfd_openr)
16265 (gdb_bfd_openw, gdb_bfd_openr_iovec)
16266 (gdb_bfd_openr_next_archived_file, gdb_bfd_fdopenr): Return
16267 gdb_bfd_ref_ptr.
16268 (gdb_bfd_ref_policy): New struct.
16269 (gdb_bfd_ref_ptr): New typedef.
16270 * gdb_bfd.c (gdb_bfd_open, gdb_bfd_fopen, gdb_bfd_openr)
16271 (gdb_bfd_openw, gdb_bfd_openr_iovec)
16272 (gdb_bfd_openr_next_archived_file, gdb_bfd_fdopenr): Return
16273 gdb_bfd_ref_ptr.
16274 * gcore.h (create_gcore_bfd): Return gdb_bfd_ref_ptr.
16275 * gcore.c (create_gcore_bfd): Return gdb_bfd_ref_ptr.
16276 (gcore_command): Update.
16277 * exec.c (exec_file_attach): Update.
16278 * elfread.c (elf_symfile_read): Update.
16279 * dwarf2read.c (dwarf2_get_dwz_file): Update.
16280 (try_open_dwop_file, open_dwo_file): Return gdb_bfd_ref_ptr.
16281 (open_and_init_dwo_file): Update.
16282 (open_dwp_file): Return gdb_bfd_ref_ptr.
16283 (open_and_init_dwp_file): Update.
16284 * corelow.c (core_open): Update.
16285 * compile/compile-object-load.c (compile_object_load): Update.
16286 * common/gdb_ref_ptr.h (ref_ptr::operator->): New operator.
16287 * coffread.c (coff_symfile_read): Update.
16288 * cli/cli-dump.c (bfd_openr_or_error, bfd_openw_or_error): Return
16289 gdb_bfd_ref_ptr. Rename.
16290 (dump_bfd_file, restore_command): Update.
16291 * build-id.h (build_id_to_debug_bfd): Return gdb_bfd_ref_ptr.
16292 * build-id.c (build_id_to_debug_bfd): Return gdb_bfd_ref_ptr.
16293 (find_separate_debug_file_by_buildid): Update.
16294
50315b21
TT
162952017-01-10 Tom Tromey <tom@tromey.com>
16296
16297 * common/gdb_ref_ptr.h: New file.
16298 * python/py-ref.h (struct gdbpy_ref_policy): New.
16299 (gdbpy_ref): Now a typedef.
16300
fc4007c9
TT
163012017-01-10 Tom Tromey <tom@tromey.com>
16302
16303 * utils.h (make_cleanup_htab_delete): Don't declare.
16304 * utils.c (do_htab_delete_cleanup, make_cleanup_htab_delete):
16305 Remove.
16306 * linespec.c (decode_compound_collector): Add constructor,
16307 destructor.
16308 (lookup_prefix_sym): Remove cleanup.
16309 (symtab_collector): Add constructor, destructor.
16310 (collect_symtabs_from_filename): Remove cleanup.
16311 * disasm.c (do_mixed_source_and_assembly): Use htab_up.
16312 * compile/compile-c-symbols.c (generate_c_for_variable_locations):
16313 Use htab_up.
16314 * gnu-v3-abi.c (gnuv3_print_vtable): Use htab_up.
16315 * dwarf2read.c (dw2_expand_symtabs_matching)
16316 (dw2_map_symbol_filenames, dwarf_decode_macros)
16317 (write_psymtabs_to_index): Use htab_up.
16318 * dwarf2loc.c (func_verify_no_selftailcall)
16319 (call_site_find_chain_1, func_verify_no_selftailcall)
16320 (chain_candidate, call_site_find_chain_1): Use std::unordered_set,
16321 std::vector, gdb::unique_xmalloc_ptr.
16322 (call_sitep): Remove typedef.
16323 (dwarf2_locexpr_baton_eval): Remove unused variable.
16324
8dbcee67
TT
163252017-01-10 Tom Tromey <tom@tromey.com>
16326
16327 * python/python-internal.h (make_cleanup_py_decref)
16328 (make_cleanup_py_xdecref): Don't declare.
16329 * python/py-utils.c (py_decref, make_cleanup_py_decref)
16330 (py_xdecref, make_cleanup_py_xdecref): Remove.
16331
13df46cc
TT
163322017-01-10 Tom Tromey <tom@tromey.com>
16333
16334 * python/py-framefilter.c (py_mi_print_variables): Use gdbpy_ref.
16335 (py_print_locals, enumerate_locals, py_print_args): Use gdbpy_ref.
16336
06fc9bf7
TT
163372017-01-10 Tom Tromey <tom@tromey.com>
16338
16339 * python/py-framefilter.c (enumerate_args): Use gdbpy_ref.
16340
830a4934
TT
163412017-01-10 Tom Tromey <tom@tromey.com>
16342
16343 * python/py-utils.c (unicode_to_encoded_string)
16344 (python_string_to_target_string)
16345 (python_string_to_target_python_string)
16346 (python_string_to_host_string, gdbpy_obj_to_string)
16347 (get_addr_from_python): Use gdbpy_ref.
16348
4586d543
TT
163492017-01-10 Tom Tromey <tom@tromey.com>
16350
16351 * python/py-unwind.c (pyuw_object_attribute_to_pointer): Use
16352 gdbpy_ref.
16353
59876f8f
TT
163542017-01-10 Tom Tromey <tom@tromey.com>
16355
16356 * python/python.c (eval_python_command, gdbpy_decode_line)
16357 (gdbpy_run_events, gdbpy_start_type_printers)
16358 (gdbpy_apply_type_printers): Use gdbpy_ref.
16359
97d83487
TT
163602017-01-10 Tom Tromey <tom@tromey.com>
16361
16362 * python/py-param.c (get_doc_string, compute_enum_values): Use
16363 gdbpy_ref.
16364
9205649a
TT
163652017-01-10 Tom Tromey <tom@tromey.com>
16366
16367 * python/py-inferior.c (find_thread_object, build_inferior_list):
16368 Use gdbpy_ref.
16369
74c49d45
TT
163702017-01-10 Tom Tromey <tom@tromey.com>
16371
16372 * python/py-framefilter.c (py_print_frame): Use gdbpy_ref.
16373
16361ffb
TT
163742017-01-10 Tom Tromey <tom@tromey.com>
16375
16376 * python/py-finishbreakpoint.c (bpfinishpy_out_of_scope): Use
16377 gdbpy_ref.
16378
905f2cca
TT
163792017-01-10 Tom Tromey <tom@tromey.com>
16380
16381 * python/py-cmd.c (cmdpy_completer_helper): Use gdbpy_ref. Remove
16382 extra incref.
16383 (cmdpy_completer_handle_brkchars, cmdpy_completer, cmdpy_init):
16384 Use gdbpy_ref.
16385
64081434
TT
163862017-01-10 Tom Tromey <tom@tromey.com>
16387
16388 * python/py-breakpoint.c (gdbpy_breakpoint_cond_says_stop): Use
16389 gdbpy_ref.
16390
59e9e831
TT
163912017-01-10 Tom Tromey <tom@tromey.com>
16392
16393 * python/py-arch.c (archpy_disassemble): Use gdbpy_ref. Don't
16394 decref results of PyArg_ParseTupleAndKeywords.
16395
9de10f6d
TT
163962017-01-10 Tom Tromey <tom@tromey.com>
16397
16398 * python/python.c (python_run_simple_file): Use
16399 unique_xmalloc_ptr, gdbpy_ref.
16400
2bd5759d
TT
164012017-01-10 Tom Tromey <tom@tromey.com>
16402
16403 * python/py-prettyprint.c (print_stack_unless_memory_error)
16404 (print_string_repr, print_children): Use gdbpy_ref.
16405 (dummy_python_frame): New class.
16406 (dummy_python_frame::dummy_python_frame): Rename from
16407 push_dummy_python_frame.
16408 (py_restore_tstate): Remove.
16409
3b4e0e01
TT
164102017-01-10 Tom Tromey <tom@tromey.com>
16411
16412 * python/py-framefilter.c (py_print_frame): Use gdbpy_ref.
16413
17a22718
TT
164142017-01-10 Tom Tromey <tom@tromey.com>
16415
16416 * python/python.c (ensure_python_env, restore_python_env):
16417 Remove.
16418 * python/python-internal.h (ensure_python_env): Don't declare.
16419 * varobj.h (varobj_ensure_python_env): Don't declare.
16420 * varobj.c (varobj_ensure_python_env): Remove.
16421
68cdc557
TT
164222017-01-10 Tom Tromey <tom@tromey.com>
16423
16424 * varobj.c (varobj_value_get_print_value): Use
16425 gdbpy_enter_varobj.
16426
1eba6383
TT
164272017-01-10 Tom Tromey <tom@tromey.com>
16428
16429 * python/py-prettyprint.c (print_string_repr, print_children):
16430 Update.
16431 * python/py-lazy-string.c (gdbpy_extract_lazy_string): Change type
16432 of "encoding".
16433 * varobj.c (varobj_value_get_print_value): Update.
16434 * python/python-internal.h (gdbpy_extract_lazy_string): Update.
16435
bde7b3e3
TT
164362017-01-10 Tom Tromey <tom@tromey.com>
16437
16438 * varobj.c (varobj_get_display_hint)
16439 (dynamic_varobj_has_child_method, install_new_value_visualizer)
16440 (varobj_set_visualizer, free_variable): Use
16441 gdbpy_enter_varobj.
16442
a7785f8c
TT
164432017-01-10 Tom Tromey <tom@tromey.com>
16444
16445 * python/python.c (python_command): Use gdbpy_enter, gdbpy_ref.
16446 (do_finish_initialization): New function. Use gdbpy_ref.
16447 (gdbpy_finish_initialization): Use gdbpy_enter. Call
16448 do_finish_initialization.
16449
2865bfce
TT
164502017-01-10 Tom Tromey <tom@tromey.com>
16451
16452 * python/py-param.c (get_set_value, get_show_value): Use
16453 gdbpy_enter, gdbpy_ref.
16454
0e9dcc75
TT
164552017-01-10 Tom Tromey <tom@tromey.com>
16456
16457 * python/py-function.c (fnpy_call): Use gdbpy_enter, gdbpy_ref.
16458
12a5cedd
TT
164592017-01-10 Tom Tromey <tom@tromey.com>
16460
16461 * python/py-cmd.c (cmdpy_function): Use gdbpy_enter, gdbpy_ref.
16462
788f2586
TT
164632017-01-10 Tom Tromey <tom@tromey.com>
16464
16465 * python/py-varobj.c (py_varobj_iter_dtor, py_varobj_iter_next):
16466 Use gdbpy_enter_varobj.
16467
6cd67bea
TT
164682017-01-10 Tom Tromey <tom@tromey.com>
16469
16470 * varobj.c (gdbpy_enter_varobj): New constructor.
16471 * python/python-internal.h (gdbpy_enter_varobj): New class.
16472 * python/py-varobj.c (py_varobj_get_iterator): Use
16473 gdbpy_enter_varobj.
16474
14b122bf
TT
164752017-01-10 Tom Tromey <tom@tromey.com>
16476
16477 * python/py-xmethods.c (gdbpy_get_xmethod_result_type): Use
16478 gdbpy_enter, gdbpy_ref, unique_xmalloc_ptr.
16479 (gdbpy_invoke_xmethod): Use gdbpy_ref, gdbpy_enter.
16480 (gdbpy_get_xmethod_arg_types): Use gdbpy_ref,
16481 unique_xmalloc_ptr.
16482 (gdbpy_get_xmethod_arg_types): Use gdbpy_ref, gdbpy_enter.
16483
bf1ca3b9
TT
164842017-01-10 Tom Tromey <tom@tromey.com>
16485
16486 * python/py-xmethods.c (invoke_match_method): Use
16487 gdbpy_ref.
16488
572a5524
TT
164892017-01-10 Tom Tromey <tom@tromey.com>
16490
16491 * python/py-xmethods.c (gdbpy_get_matching_xmethod_workers): use
16492 gdbpy_enter, gdbpy_ref.
16493
396a78b6
TT
164942017-01-10 Tom Tromey <tom@tromey.com>
16495
16496 * python/python.c (python_interactive_command): Use gdbpy_enter.
16497
a88b13c7
TT
164982017-01-10 Tom Tromey <tom@tromey.com>
16499
16500 * python/python.c (gdbpy_before_prompt_hook): Use gdbpy_enter,
16501 gdbpy_ref.
16502
e9f0c363
TT
165032017-01-10 Tom Tromey <tom@tromey.com>
16504
16505 * python/py-prettyprint.c (gdbpy_apply_val_pretty_printer): Use
16506 gdbpy_enter, gdbpy_ref, unique_xmalloc_ptr.
16507
6349f452
TT
165082017-01-10 Tom Tromey <tom@tromey.com>
16509
16510 * utils.h (htab_deleter): New struct.
16511 (htab_up): New typedef.
16512 * python/py-framefilter.c (gdbpy_apply_frame_filter): Use
16513 gdbpy_enter, gdbpy_ref, htab_up.
16514
c0171de6
TT
165152017-01-10 Tom Tromey <tom@tromey.com>
16516
16517 * python/py-unwind.c (pending_frame_invalidate): Remove.
16518 (pyuw_sniffer): Use gdbpy_enter and gdbpy_ref.
16519
f18e226f
TT
165202017-01-10 Tom Tromey <tom@tromey.com>
16521
16522 * python/py-xmethods.c (gdbpy_free_xmethod_worker_data)
16523 (gdbpy_clone_xmethod_worker_data): Use gdbpy_enter.
16524
c57af3f1
TT
165252017-01-10 Tom Tromey <tom@tromey.com>
16526
16527 * python/py-type.c (save_objfile_types): Use gdbpy_enter.
16528
60e600ec
TT
165292017-01-10 Tom Tromey <tom@tromey.com>
16530
16531 * python/python.c (gdbpy_eval_from_control_command)
16532 (gdbpy_source_script, gdbpy_run_events)
16533 (gdbpy_source_objfile_script, gdbpy_execute_objfile_script)
16534 (gdbpy_free_type_printers, gdbpy_finish_initialization): Use
16535 gdbpy_enter.
16536
bf7da5b0
TT
165372017-01-10 Tom Tromey <tom@tromey.com>
16538
16539 * python/py-progspace.c (py_free_pspace): Use gdbpy_enter.
16540
2d38bced
TT
165412017-01-10 Tom Tromey <tom@tromey.com>
16542
16543 * python/py-objfile.c (py_free_objfile): Use gdbpy_enter.
16544
07bc7329
TT
165452017-01-10 Tom Tromey <tom@tromey.com>
16546
16547 * python/py-inferior.c (python_on_normal_stop, python_on_resume)
16548 (python_on_inferior_call_pre, python_on_inferior_call_post)
16549 (python_on_memory_change, python_on_register_change)
16550 (python_inferior_exit, python_new_objfile, add_thread_object)
16551 (delete_thread_object, py_free_inferior): Use gdbpy_enter.
16552
6e7c365e
TT
165532017-01-10 Tom Tromey <tom@tromey.com>
16554
16555 * python/py-finishbreakpoint.c (bpfinishpy_handle_stop)
16556 (bpfinishpy_handle_exit): Use gdbpy_enter.
16557
6ba0cd40
TT
165582017-01-10 Tom Tromey <tom@tromey.com>
16559
16560 * python/py-cmd.c (cmdpy_destroyer)
16561 (cmdpy_completer_handle_brkchars, cmdpy_completer): Use
16562 gdbpy_enter.
16563
de2dc875
TT
165642017-01-10 Tom Tromey <tom@tromey.com>
16565
16566 * python/py-breakpoint.c (gdbpy_breakpoint_cond_says_stop): Use
16567 gdbpy_enter.
16568 (gdbpy_breakpoint_has_cond): Likewise.
16569
4ecee2c4
TT
165702017-01-10 Tom Tromey <tom@tromey.com>
16571
16572 * python/python.c (gdbpy_enter): New constructor.
16573 (~gdbpy_enter): New destructor.
16574 (restore_python_env, ensure_python_env): Rewrite.
16575 * python/python-internal.h (gdbpy_enter): New class.
16576
37fce74f
TT
165772017-01-10 Tom Tromey <tom@tromey.com>
16578
16579 * python/py-symbol.c (gdbpy_lookup_symbol): Use gdbpy_ref.
16580
53a0cca3
TT
165812017-01-10 Tom Tromey <tom@tromey.com>
16582
16583 * python/py-value.c (value_has_field, get_field_flag)
16584 (get_field_type, valpy_getitem, convert_value_from_python): Use
16585 gdbpy_ref.
16586
ff3724f5
TT
165872017-01-10 Tom Tromey <tom@tromey.com>
16588
16589 * python/python.c (gdbpy_progspaces, gdbpy_objfiles): Use
16590 gdbpy_ref.
16591
0700aea5
TT
165922017-01-10 Tom Tromey <tom@tromey.com>
16593
16594 * python/py-prettyprint.c (search_pp_list)
16595 (find_pretty_printer_from_objfiles)
16596 (find_pretty_printer_from_progspace)
16597 (find_pretty_printer_from_gdb, find_pretty_printer)
16598 (gdbpy_get_display_hint, gdbpy_get_varobj_pretty_printer): Use
16599 gdbpy_ref.
16600
1bb44c9f
TT
166012017-01-10 Tom Tromey <tom@tromey.com>
16602
16603 * python/py-param.c (call_doc_function): Use gdbpy_ref.
16604
87ce03fd
TT
166052017-01-10 Tom Tromey <tom@tromey.com>
16606
16607 * python/py-linetable.c (build_line_table_tuple_from_pcs)
16608 (ltpy_get_all_source_lines): Use gdbpy_ref.
16609
ee0a3fb8
TT
166102017-01-10 Tom Tromey <tom@tromey.com>
16611
16612 * python/py-framefilter.c (extract_sym, extract_value)
16613 (get_py_iter_from_func, bootstrap_python_frame_filters): Use
16614 gdbpy_ref.
16615
bf2a52fa
TT
166162017-01-10 Tom Tromey <tom@tromey.com>
16617
16618 * python/py-breakpoint.c (gdbpy_breakpoints): Use gdbpy_ref.
16619
f59fe7f8
TT
166202017-01-10 Tom Tromey <tom@tromey.com>
16621
16622 * python/py-inferior.c (gdbpy_inferiors): Use gdbpy_ref.
16623
80bd970a
TT
166242017-01-10 Tom Tromey <tom@tromey.com>
16625
16626 * python/py-function.c (convert_values_to_python, fnpy_init): Use
16627 gdbpy_ref.
16628
d1b3de2e
TT
166292017-01-10 Tom Tromey <tom@tromey.com>
16630
16631 * python/py-cmd.c (gdbpy_string_to_argv): Use gdbpy_ref.
16632
3bb43384
TT
166332017-01-10 Tom Tromey <tom@tromey.com>
16634
16635 * python/py-type.c (convert_field, make_fielditem, typy_fields)
16636 (typy_range): Use gdbpy_ref.
16637
abf5651e
TT
166382017-01-10 Tom Tromey <tom@tromey.com>
16639
16640 * python/py-threadevent.c (create_thread_event_object): Use
16641 gdbpy_ref.
16642 * python/py-stopevent.c (create_stop_event_object): Simplify.
16643 (emit_stop_event): Use gdbpy_ref.
16644 * python/py-signalevent.c (create_signal_event_object): Use
16645 gdbpy_ref.
16646 * python/py-newobjfileevent.c (create_new_objfile_event_object)
16647 (emit_new_objfile_event, create_clear_objfiles_event_object)
16648 (emit_clear_objfiles_event): Use gdbpy_ref.
16649 * python/py-infevents.c (create_inferior_call_event_object)
16650 (create_register_changed_event_object)
16651 (create_memory_changed_event_object, emit_inferior_call_event)
16652 (emit_memory_changed_event, emit_register_changed_event): Use
16653 gdbpy_ref.
16654 * python/py-exitedevent.c (create_exited_event_object)
16655 (emit_exited_event): Use gdbpy_ref.
16656 * python/py-event.h (evpy_emit_event): Remove
16657 CPYCHECKER_STEALS_REFERENCE_TO_ARG annotation.
16658 * python/py-event.c (evpy_emit_event): Use gdbpy_ref.
16659 * python/py-continueevent.c (emit_continue_event): Use
16660 gdbpy_ref.
16661 * python/py-breakpoint.c (gdbpy_breakpoint_created)
16662 (gdbpy_breakpoint_deleted, gdbpy_breakpoint_modified): Use
16663 gdbpy_ref.
16664 * python/py-bpevent.c (create_breakpoint_event_object): Use
16665 gdbpy_ref.
16666
a68ff33e
TT
166672017-01-10 Tom Tromey <tom@tromey.com>
16668
16669 * python/py-ref.h: New file.
16670
7becfd03
SM
166712017-01-10 Simon Marchi <simon.marchi@ericsson.com>
16672
16673 * cli-out.c (cli_ui_out::do_redirect): Change return type to
16674 void.
16675 * cli-out.h (cli_ui_out::do_redirect): Likewise.
16676 * mi/mi-out.c (mi_ui_out::do_redirect): Likewise.
16677 * mi/mi-out.h (mi_ui_out::do_redirect): Likewise.
16678 * ui-out.c (ui_out::redirect): Likewise.
16679 * ui-out.h (ui_out::redirect, ui_out::do_redirect): Likewise.
16680 * cli/cli-logging.c (set_logging_redirect): Update call site of
16681 ui_out::redirect.
16682 (handle_redirections): Likewise.
16683 * scm-ports.c (ioscm_with_output_to_port_worker): Likewise.
16684 * top.c (execute_command_to_string): Likewise.
16685 * utils.c (do_ui_out_redirect_pop): Likewise.
16686
df294654
SM
166872017-01-10 Simon Marchi <simon.marchi@ericsson.com>
16688
16689 * stack.c (_initialize_stack): Update "frame" command help message.
16690
f5e6296e
IB
166912017-01-08 Iain Buclaw <ibuclaw@gdcproject.org>
16692
16693 * d-exp.y (CastExpression): Emit UNOP_CAST_TYPE.
16694
0e2d6fa6
YQ
166952017-01-06 Yao Qi <yao.qi@linaro.org>
16696
16697 * x86-linux-nat.h: Include gdb_proc_service.h.
16698
44d6d3f9
YQ
166992017-01-06 Yao Qi <yao.qi@linaro.org>
16700
16701 * ser-base.h: Include serial.h.
16702
656731fe
YQ
167032017-01-06 Yao Qi <yao.qi@linaro.org>
16704
16705 * ppc-linux-tdep.h: Include ppc-tdep.h.
16706
1ca8f924
YQ
167072017-01-06 Yao Qi <yao.qi@linaro.org>
16708
16709 * nat/amd64-linux-siginfo.h: Include signal.h.
16710
bc3008c4
YQ
167112017-01-06 Yao Qi <yao.qi@linaro.org>
16712
16713 * nat/aarch64-linux-hw-point.h: Include break-common.h.
16714
66c80d03
YQ
167152017-01-06 Yao Qi <yao.qi@linaro.org>
16716
16717 * mi/mi-parse.h: Include mi-cmds.h.
16718
051d2dda
YQ
167192017-01-06 Yao Qi <yao.qi@linaro.org>
16720
16721 * inf-loop.c: Don't include "target.h".
16722 * inf-loop.h: Include it here.
16723
8018d34f
YQ
167242017-01-06 Yao Qi <yao.qi@linaro.org>
16725
16726 * dfp.h: Include "dboulest.h" and "expression.h".
16727
c0b8369c
YQ
167282017-01-06 Yao Qi <yao.qi@linaro.org>
16729
16730 * ax-gdb.h: Include "ax.h".
16731
ad5cba2a
YQ
167322017-01-06 Yao Qi <yao.qi@linaro.org>
16733
16734 * Makefile.in (HFILES_NO_SRCDIR): Replace gdb_ptrace.h
16735 with nat/gdb_ptrace.h.
16736
1c33cd7f
YQ
167372017-01-05 Yao Qi <yao.qi@linaro.org>
16738
16739 * mips-fbsd-tdep.c (mips_fbsd_sigframe_init): Move && to
16740 new line.
16741 (mips64_fbsd_sigframe_init): Likewise.
16742
c988ac1d
JB
167432017-01-04 John Baldwin <jhb@FreeBSD.org>
16744
16745 * mips-fbsd-tdep.c (_initialize_mips_fbsd_tdep): Use
16746 GDB_OSABI_FREEBSD instead of GDB_OSABI_FREEBSD_ELF.
16747
b268007c
JB
167482017-01-04 John Baldwin <jhb@FreeBSD.org>
16749
16750 * Makefile.in (ALLDEPFILES): Add mips-fbsd-nat.c.
16751 * NEWS: Mention new FreeBSD/mips native configuration.
16752 * config/mips/fbsd.mh: New file.
16753 * configure.host: Add mips*-*-freebsd*.
16754 * mips-fbsd-nat.c: New file.
16755
387360da
JB
167562017-01-04 John Baldwin <jhb@FreeBSD.org>
16757
16758 * Makefile.in (ALL_TARGET_OBS): Add mips-fbsd-tdep.o.
16759 (ALLDEPFILES): Add mips-fbsd-tdep.c.
16760 * NEWS: Mention new FreeBSD/mips target.
16761 * configure.tgt: Add mips*-*-freebsd*.
16762 * mips-fbsd-tdep.c: New file.
16763 * mips-fbsd-tdep.h: New file.
16764
2aaaf250
YQ
167652017-01-04 Yao Qi <yao.qi@linaro.org>
16766
16767 * dwarf2loc.c (write_pieced_value): Don't use VALUE_FRAME_ID (to),
16768 use c->frame_id when the piece location is DWARF_VALUE_REGISTER.
16769
61baf725
JB
167702017-01-01 Joel Brobecker <brobecker@adacore.com>
16771
6dbb839a 16772 Update copyright year range in all GDB files.
61baf725 16773
c113e7ff 167742017-01-01 Joel Brobecker <brobecker@adacore.com>
ce0db137 16775
c113e7ff 16776 * config/djgpp/fnchange.lst: Add entry for gdb/ChangeLog-2016.
ce0db137 16777
c113e7ff 16778For older changes see ChangeLog-2016.
c906108c
SS
16779\f
16780Local Variables:
16781mode: change-log
16782left-margin: 8
16783fill-column: 74
16784version-control: never
57da7796 16785coding: utf-8
c906108c 16786End:
This page took 2.728229 seconds and 4 git commands to generate.