]> git.ipfire.org Git - thirdparty/binutils-gdb.git/blame - gdb/ChangeLog
Make strcmp_iw NOT ignore whitespace in the middle of tokens
[thirdparty/binutils-gdb.git] / gdb / ChangeLog
CommitLineData
0662b6a7
PA
12017-11-24 Pedro Alves <palves@redhat.com>
2
3 * cp-support.c (cp_symbol_name_matches_1): New, factored out from
4 cp_fq_symbol_name_matches. Pass language_cplus to
5 strncmp_with_mode.
6 (cp_fq_symbol_name_matches): Call cp_symbol_name_matches_1.
7 (selftests::test_cp_symbol_name_cmp): New.
8 (_initialize_cp_support): Register "cp_symbol_name_matches"
9 selftests.
10 * language.c (default_symbol_name_matcher): Pass language_minimal
11 to strncmp_iw_with_mode.
12 * utils.c: Include "cp-support.h" and <algorithm>.
13 (valid_identifier_name_char, cp_skip_operator_token, skip_ws)
14 (cp_is_operator): New functions.
15 (strncmp_iw_with_mode): Use them. Add language parameter. Don't
16 skip whitespace in the symbol name when the lookup name doesn't
17 have spaces, and vice versa.
18 (strncmp_iw, strcmp_iw): Pass language to strncmp_iw_with_mode.
19 * utils.h (strncmp_iw_with_mode): Add language parameter.
20
e547c119
JB
212017-11-24 Joel Brobecker <brobecker@adacore.com>
22
23 * ada-lang.c (ada_exception_message_1, ada_exception_message):
24 New functions.
25 (print_it_exception): If available, display the exception
26 message as well.
27 * NEWS: Document new feature.
28
d7fcdff9
UW
292017-11-24 Ulrich Weigand <uweigand@de.ibm.com>
30
31 * configure.nat <spu-linux>: Add fork-inferior.o to NATDEPFILES.
32
30649c14
PR
332017-11-24 Philipp Rudo <prudo@linux.vnet.ibm.com>
34
35 * dtrace-probe.c (dtrace_probe::build_arg_exprs)
36 (dtrace_probe::is_enabled, dtrace_probe::enable)
37 (dtrace_probe::disable): Remove keyword 'struct' at for-range
38 variable
39 * probe.c (gen_ui_out_table_header_info)
40 (print_ui_out_not_applicables): Remove keyword 'struct' at
41 for-range variable
42
7696f5c9
AH
432017-11-24 Alan Hayward <alan.hayward@arm.com>
44
45 * configure.tgt: Add arch/aarch64.o
46
8172f16b
SM
472017-11-24 Simon Marchi <simon.marchi@polymtl.ca>
48
49 * common/common-utils.h: Include poison.h.
50 (xfree): Remove declaration, add definition with static_assert.
51 * common/common-utils.c (xfree): Remove.
52 * common/poison.h (IsMallocatable): Define.
53 (IsFreeable): Define.
54 (free): Delete for non-freeable types.
55 (xnew): New.
56 (XNEW): Undef and redefine.
57 (xcnew): New.
58 (XCNEW): Undef and redefine.
59 (xdelete): New.
60 (XDELETE): Undef and redefine.
61 (xnewvec): New.
62 (XNEWVEC): Undef and redefine.
63 (xcnewvec): New.
64 (XCNEWVEC): Undef and redefine.
65 (xresizevec): New.
66 (XRESIZEVEC): Undef and redefine.
67 (xdeletevec): New.
68 (XDELETEVEC): Undef and redefine.
69 (xnewvar): New.
70 (XNEWVAR): Undef and redefine.
71 (xcnewvar): New.
72 (XCNEWVAR): Undef and redefine.
73 (xresizevar): New.
74 (XRESIZEVAR): Undef and redefine.
75
7aabaf9d
SM
762017-11-24 Simon Marchi <simon.marchi@polymtl.ca>
77
78 * gdbthread.h (private_thread_info): Define structure type, add
79 virtual pure destructor.
80 (thread_info) <priv>: Change type to unique_ptr.
81 <private_dtor>: Remove.
82 * thread.c (add_thread_with_info): Adjust to use of unique_ptr.
83 (private_thread_info::~private_thread_info): Provide default
84 implementation.
85 (thread_info::~thread_info): Don't call private_dtor nor
86 manually free priv.
87 * aix-thread.c (private_thread_info): Rename to ...
88 (aix_thread_info): ... this.
89 (get_aix_thread_info): New.
90 (sync_threadlists): Adjust.
91 (iter_tid): Adjust.
92 (aix_thread_resume): Adjust.
93 (aix_thread_fetch_registers): Adjust.
94 (aix_thread_store_registers): Adjust.
95 (aix_thread_extra_thread_info): Adjust.
96 * darwin-nat.h (private_thread_info): Rename to ...
97 (darwin_thread_info): ... this.
98 (get_darwin_thread_info): New.
99 * darwin-nat.c (darwin_init_thread_list): Adjust.
100 (darwin_check_new_threads): Adjust.
101 (thread_info_from_private_thread_info): Adjust.
102 * linux-thread-db.c (private_thread_info): Rename to ...
103 (thread_db_thread_info): ... this, initialize fields.
104 (get_thread_db_thread_info): New.
105 <dying>: Change type to bool.
106 (update_thread_state): Adjust to type rename.
107 (record_thread): Adjust to type rename an use of unique_ptr.
108 (thread_db_pid_to_str): Likewise.
109 (thread_db_extra_thread_info): Likewise.
110 (thread_db_thread_handle_to_thread_info): Likewise.
111 (thread_db_get_thread_local_address): Likewise.
112 * nto-tdep.h (private_thread_info): Rename to ...
113 (nto_thread_info): ... this, initialize fields.
114 (get_nto_thread_info): New.
115 <name>: Change type to std::string.
116 * nto-tdep.c (nto_extra_thread_info): Adjust to type rename and
117 use of unique_ptr.
118 * nto-procfs.c (update_thread_private_data_name): Adjust to
119 std::string change, allocate nto_private_thread_info with new.
120 (update_thread_private_data): Adjust to unique_ptr.
121 * remote.c (private_thread_info): Rename to ...
122 (remote_thread_info): ... this, initialize data members with
123 default values.
124 <extra, name>: Change type to std::string.
125 <thread_handle>: Change type to non-pointer.
126 (free_private_thread_info): Remove.
127 (get_private_info_thread): Rename to...
128 (get_remote_thread_info): ... this, change return type, adjust to
129 use of unique_ptr, use remote_thread_info constructor.
130 (remote_add_thread): Adjust.
131 (get_private_info_ptid): Rename to...
132 (get_remote_thread_info): ...this, change return type.
133 (remote_thread_name): Use get_remote_thread_info, adjust to
134 change to std::string.
135 (struct thread_item) <~thread_item>: Remove.
136 <thread_handle>: Make non pointer.
137 (start_thread): Adjust to thread_item::thread_handle type
138 change.
139 (remote_update_thread_list): Adjust to type name change, move
140 strings from temporary to long-lived object instead of
141 duplicating.
142 (remote_threads_extra_info): Use get_remote_thread_info.
143 (process_initial_stop_replies): Likewise.
144 (resume_clear_thread_private_info): Likewise.
145 (remote_resume): Adjust to type name change.
146 (remote_commit_resume): Use get_remote_thread_info.
147 (process_stop_reply): Adjust to type name change.
148 (remote_stopped_by_sw_breakpoint): Use get_remote_thread_info.
149 (remote_stopped_by_hw_breakpoint): Likewise.
150 (remote_stopped_by_watchpoint): Likewise.
151 (remote_stopped_data_address): Likewise.
152 (remote_core_of_thread): Likewise.
153 (remote_thread_handle_to_thread_info): Use
154 get_private_info_thread, adjust to thread_handle field type
155 change.
156
21fe1c75
SM
1572017-11-24 Simon Marchi <simon.marchi@polymtl.ca>
158
159 * remote.c (struct thread_item): Add constructor, disable copy
160 construction and copy assignment, define default move
161 construction and move assignment.
162 <extra, name>: Change type to std::string.
163 <core>: Initialize.
164 <thread_handle>: Make non-pointer.
165 (thread_item_t): Remove typedef.
166 (DEF_VEC_O(thread_item_t)): Remove.
167 (threads_listing_context) <contains_thread>: New method.
168 <remove_thread>: New method.
169 <items>: Change type to std::vector.
170 (clear_threads_listing_context): Remove.
171 (threads_listing_context_remove): Remove.
172 (remote_newthread_step): Use thread_item constructor, adjust to
173 change to std::vector.
174 (start_thread): Use thread_item constructor, adjust to change to
175 std::vector.
176 (end_thread): Adjust to change to std::vector and std::string.
177 (remote_get_threads_with_qthreadinfo): Use thread_item
178 constructor, adjust to std::vector.
179 (remote_update_thread_list): Adjust to change to std::vector and
180 std::string, use threads_listing_context methods.
181 (remove_child_of_pending_fork): Adjust.
182 (remove_new_fork_children): Adjust.
183 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add rsp-low-selftests.c.
184 (SUBDIR_UNITTESTS_OBS): Add rsp-low-selftests.o.
185 * unittests/rsp-low-selftests.c: New file.
186 * common/rsp-low.h: Include common/byte-vector.h.
187 (hex2bin): New overload.
188 * common/rsp-low.c (hex2bin): New overload.
189
089354bb
SM
1902017-11-24 Simon Marchi <simon.marchi@ericsson.com>
191
192 * inferior.h (private_inferior): Define structure type, add
193 virtual pure destructor.
194 (inferior) <priv>: Change type to unique_ptr.
195 * inferior.c (private_inferior::~private_inferior): Provide
196 default implementation.
197 (inferior::~inferior): Don't free priv field.
198 (exit_inferior_1): Likewise.
199 * darwin-nat.h (struct darwin_exception_info): Initialize fields.
200 (darwin_exception_info): Remove typedef.
201 (DEF_VEC_O (darwin_thread_t)); Remove.
202 (private_inferior): Rename to ...
203 (darwin_private_inferior): ... this, extend private_inferior.
204 (get_darwin_inferior): New.
205 <threads>: Change type to std::vector of darwin_thread_t pointers.
206 * darwin-nat.c (darwin_check_new_threads): Adjust.
207 (find_inferior_task_it): Adjust.
208 (darwin_find_thread); Adjust.
209 (darwin_suspend_inferior): Adjust.
210 (darwin_resume_inferior): Adjust.
211 (darwin_find_new_inferior): Adjust.
212 (darwin_decode_notify_message): Adjust.
213 (darwin_send_reply): Adjust.
214 (darwin_resume_inferior_threads): Adjust.
215 (darwin_suspend_inferior_threads): Adjust.
216 (darwin_decode_message): Adjust.
217 (darwin_wait): Adjust.
218 (darwin_interrupt): Adjust.
219 (darwin_deallocate_threads): Adjust.
220 (darwin_mourn_inferior): Adjust, don't free private data.
221 (darwin_reply_to_all_pending_messages): Adjust.
222 (darwin_stop_inferior): Adjust.
223 (darwin_setup_exceptions): Adjust.
224 (darwin_kill_inferior): Adjust.
225 (darwin_setup_request_notification): Adjust.
226 (darwin_attach_pid): Adjust.
227 (darwin_init_thread_list): Adjust.
228 (darwin_setup_fake_stop_event): Adjust.
229 (darwin_attach): Adjust.
230 (darwin_detach): Adjust.
231 (darwin_xfer_partial): Adjust.
232 (set_enable_mach_exceptions): Adjust.
233 (darwin_pid_to_exec_file): Adjust.
234 (darwin_get_ada_task_ptid): Adjust.
235 * darwin-nat-info.c (get_task_from_args): Adjust.
236 (info_mach_ports_command): Adjust.
237 (info_mach_region_command): Adjust.
238 (info_mach_exceptions_command): Adjust.
239 * remote.c (private_inferior): Rename to ...
240 (remote_private_inferior): ... this, initialize fields.
241 (get_remote_inferior); New.
242 (remote_commit_resume): Use get_remote_inferior.
243 (check_pending_event_prevents_wildcard_vcont_callback): Likewise.
244
d044bac8
PA
2452017-11-24 Pedro Alves <palves@redhat.com>
246
247 * NEWS: Mention linespecs and explicit locations, and completion
248 improvements.
249
e8d58cba
YQ
2502017-11-24 Yao Qi <yao.qi@linaro.org>
251
252 * regcache.c (regcache::dump): Remove footnote_register_size.
253
a63f2d2f
YQ
2542017-11-24 Yao Qi <yao.qi@linaro.org>
255
256 * regcache.c (cooked_read_test): Add more test for readonly
257 regcache.
258
1b30aaa5
YQ
2592017-11-24 Yao Qi <yao.qi@linaro.org>
260
261 * gdbarch-selftests.c (test_target_has_registers): Move it to
262 target.c.
263 (test_target_has_stack): Likewise.
264 (test_target_has_memory): Likewise.
265 (test_target_prepare_to_store): Likewise.
266 (test_target_store_registers): Likewise.
267 (test_target_ops): Likewise.
268 * regcache.c: Include selftest-arch.h and gdbthread.h.
269 (target_ops_no_register): New class.
270 (test_target_fetch_registers): New.
271 (test_target_store_registers): New.
272 (test_target_xfer_partial): New.
273 (readwrite_regcache): New.
274 (cooked_read_test): New.
275 (_initialize_regcache): Register the test.
276 * target.c: (test_target_has_registers): Moved from
277 gdbarch-selftests.c.
278 (test_target_has_stack): Likewise.
279 (test_target_has_memory): Likewise.
280 (test_target_prepare_to_store): Likewise.
281 (test_target_store_registers): Likewise.
282 * target.h (test_target_ops): New class.
283
6654d750
AH
2842017-11-24 Alan Hayward <alan.hayward@arm.com>
285
286 * aarch64-tdep.c (_initialize_aarch64_tdep): Add target desc
287 selftest.
288
49bdb7ee
AH
2892017-11-24 Alan Hayward <alan.hayward@arm.com>
290
291 * aarch64-tdep.c (_initialize_aarch64_tdep): Remove init.
292 * arch/aarch64.c (aarch64_create_target_description): Create
293 new target description.
294 * features/Makefile: Add new files.
295 * features/aarch64.c: Remove file.
296 * features/aarch64-core.c: New autogenerated file.
297 * features/aarch64-fpu.c: New autogenerated file.
298 * target-descriptions.c (maint_print_c_tdesc_cmd): Check for aarch64.
da434ccb
AH
299
3002017-11-24 Alan Hayward <alan.hayward@arm.com>
301
302 * Makefile.in: Add new files.
303 * aarch64-linux-nat.c (aarch64_linux_read_description): Call
304 aarch64_read_description.
305 * aarch64-linux-tdep.c (aarch64_linux_core_read_description):
306 Call aarch64_read_description.
307 * aarch64-tdep.c (aarch64_read_description): New function.
308 (aarch64_gdbarch_init): Call aarch64_read_description.
309 * aarch64-tdep.h (aarch64_read_description): New function.
310 * arch/aarch64.c: New file.
311 * configure.tgt: Add new files.
312
98ead37e
YQ
3132017-11-24 Yao Qi <yao.qi@linaro.org>
314
315 * mi/mi-main.c (register_changed_p): Update.
316 * value.c (value_contents_bits_eq): Change return type.
317 (value_contents_eq): Likewise.
318 * value.h: Update comments.
319
62ad7ce7
YQ
3202017-11-24 Yao Qi <yao.qi@linaro.org>
321
322 * mi/mi-main.c (mi_cmd_data_list_changed_registers): Remove
323 local 'changed'. Remove error.
324 (register_changed_p): Change return type to bool.
325
506fe5f4
YQ
3262017-11-24 Yao Qi <yao.qi@linaro.org>
327
328 * arch/tic6x.c: New file.
329 * arch/tic6x.h: New file.
330 * features/Makefile (FEATURE_XMLFILES): Add tic6x-c6xp.xml,
331 tic6x-core.xml and tic6x-gp.xml.
332 * features/tic6x-c6xp.c: Generated.
333 * features/tic6x-core.c: Generated.
334 * features/tic6x-gp.c: Generated.
335 * target-descriptions.c (maint_print_c_tdesc_cmd): Match
336 "tic6x-".
337
00ea2e2a
SM
3382017-11-23 Simon Marchi <simon.marchi@ericsson.com>
339
340 * mi/mi-main.c (list_available_thread_groups): Change map value
341 type to std::vector.
342
f45e2a77
SM
3432017-11-23 Simon Marchi <simon.marchi@ericsson.com>
344
345 * osdata.c (osdata_end_column, get_osdata): Remove std::move.
346
bd046f64
SM
3472017-11-23 Simon Marchi <simon.marchi@ericsson.com>
348
349 * varobj.c (struct varobj_dynamic) <children_requested_>: Rename
350 back to...
351 <children_requested>: ... this.
352 (varobj_get_num_children, varobj_update): Adjust.
353
4c37490d
SM
3542017-11-23 Simon Marchi <simon.marchi@ericsson.com>
355
356 * ada-varobj.c (ada_value_is_changeable_p): Change int to bool where applicable.
357 (ada_value_has_mutated): Likewise.
358 * c-varobj.c (varobj_is_anonymous_child): Likewise.
359 (c_is_path_expr_parent): Likewise.
360 * mi/mi-cmd-var.c (varobj_update_one): Likewise.
361 (mi_cmd_var_set_frozen): Likewise.
362 (mi_cmd_var_update_iter): Likewise.
363 (mi_cmd_var_update): Likewise.
364 * varobj.c (pretty_printing): Likewise.
365 (varobj_enable_pretty_printing): Likewise.
366 (struct varobj_root) <floating, is_valid>: Likewise.
367 (struct varobj_dynamic) <children_requested>: Likewise.
368 (delete_variable): Likewise.
369 (delete_variable_1): Likewise.
370 (install_variable): Likewise.
371 (update_type_if_necessary): Likewise.
372 (install_new_value): Likewise.
373 (value_of_root): Likewise.
374 (is_root_p): Likewise.
375 (varobj_create): Likewise.
376 (varobj_delete): Likewise.
377 (varobj_has_more): Likewise.
378 (varobj_set_frozen): Likewise.
379 (varobj_get_frozen): Likewise.
380 (install_dynamic_child): Likewise.
381 (dynamic_varobj_has_child_method): Likewise.
382 (update_dynamic_varobj_children): Likewise.
383 (varobj_get_num_children): Likewise.
384 (varobj_list_children): Likewise.
385 (is_path_expr_parent): Likewise.
386 (varobj_default_is_path_expr_parent): Likewise.
387 (varobj_is_dynamic_p): Likewise.
388 (varobj_set_value): Likewise.
389 (varobj_value_has_mutated): Likewise.
390 (varobj_update): Likewise.
391 (check_scope): Likewise.
392 (value_of_root_1): Likewise.
393 (varobj_value_get_print_value): Likewise.
394 (varobj_editable_p): Likewise.
395 (varobj_value_is_changeable_p): Likewise.
396 (varobj_floating_p): Likewise.
397 (varobj_default_value_is_changeable_p): Likewise.
398 (varobj_invalidate_iter): Likewise.
399 * varobj.h (struct varobj_update_result) <type_changed,
400 children_changed, changed, value_installed>: Likewise.
401 (struct varobj) <updated, frozen, not_fetched>: Likewise.
402 (struct lang_varobj_ops) <value_is_changeable_p,
403 value_has_mutated, is_path_expr_parent>: Likewise.
404 (varobj_delete): Likewise.
405 (varobj_set_frozen): Likewise.
406 (varobj_get_frozen): Likewise.
407 (varobj_set_value): Likewise.
408 (varobj_update): Likewise.
409 (varobj_editable_p): Likewise.
410 (varobj_floating_p): Likewise.
411 (varobj_has_more): Likewise.
412 (varobj_is_dynamic_p): Likewise.
413 (varobj_default_value_is_changeable_p): Likewise.
414 (varobj_value_is_changeable_p): Likewise.
415 (varobj_is_anonymous_child): Likewise.
416 (varobj_default_is_path_expr_parent): Likewise.
417
9c23b42f
SDJ
4182017-11-22 Sergio Durigan Junior <sergiodj@redhat.com>
419
420 * dtrace-probe.c (struct probe_ops dtrace_probe_ops): Delete.
421 (struct dtrace_probe_arg) <dtrace_probe_arg>: New constructor.
422 <type_str>: Convert to 'std::string'.
423 <expr>: Convert to 'expression_up'.
424 (dtrace_probe_arg_s): Delete type and VEC.
425 (dtrace_probe_enabler_s): Likewise.
426 (struct dtrace_probe): Replace by...
427 (class dtrace_static_probe_ops): ...this and...
428 (class dtrace_probe): ...this.
429 (dtrace_probe_is_linespec): Rename to...
430 (dtrace_static_probe_ops::is_linespec): ...this. Adjust code
431 to reflect change.
432 (dtrace_process_dof_probe): Use 'std::vector' instead of VEC.
433 Adjust code. Create new instance of 'dtrace_probe'.
434 (dtrace_build_arg_exprs): Rename to...
435 (dtrace_probe::build_arg_exprs): ...this. Adjust code to
436 reflect change.
437 (dtrace_get_probes): Rename to...
438 (dtrace_static_probe_ops::get_probes): ...this. Adjust code
439 to reflect change.
440 (dtrace_get_arg): Rename to...
441 (dtrace_probe::get_arg_by_number): ...this. Adjust code to
442 reflect change.
443 (dtrace_probe_is_enabled): Rename to...
444 (dtrace_probe::is_enabled): ...this. Adjust code to reflect
445 change.
446 (dtrace_get_probe_address): Rename to...
447 (dtrace_probe::get_relocated_address): ...this. Adjust code
448 to reflect change.
449 (dtrace_get_probe_argument_count): Rename to...
450 (dtrace_probe::get_argument_count): ...this. Adjust code to
451 reflect change.
452 (dtrace_can_evaluate_probe_arguments): Rename to...
453 (dtrace_probe::can_evaluate_arguments): ...this. Adjust code
454 to reflect change.
455 (dtrace_evaluate_probe_argument): Rename to...
456 (dtrace_probe::evaluate_argument): ...this. Adjust code to
457 reflect change.
458 (dtrace_compile_to_ax): Rename to...
459 (dtrace_probe::compile_to_ax): ...this. Adjust code to
460 reflect change.
461 (dtrace_probe_destroy): Delete.
462 (dtrace_type_name): Rename to...
463 (dtrace_static_probe_ops::type_name): ...this. Adjust code to
464 reflect change.
465 (dtrace_probe::get_static_ops): New method.
466 (dtrace_gen_info_probes_table_header): Rename to...
467 (dtrace_static_probe_ops::gen_info_probes_table_header):
468 ...this. Adjust code to reflect change.
469 (dtrace_gen_info_probes_table_values): Rename to...
470 (dtrace_probe::gen_info_probes_table_values): ...this. Adjust
471 code to reflect change.
472 (dtrace_enable_probe): Rename to...
473 (dtrace_probe::enable_probe): ...this. Adjust code to reflect
474 change.
475 (dtrace_disable_probe): Rename to...
476 (dtrace_probe::disable_probe): ...this. Adjust code to reflect
477 change.
478 (struct probe_ops dtrace_probe_ops): Delete.
479 (info_probes_dtrace_command): Call 'info_probes_for_spops'
480 instead of 'info_probes_for_ops'.
481 (_initialize_dtrace_probe): Use 'all_static_probe_ops' instead
482 of 'all_probe_ops'.
483
0e9ae10f
SDJ
4842017-11-22 Sergio Durigan Junior <sergiodj@redhat.com>
485 Simon Marchi <simark@simark.ca>
486
487 * stap-probe.c (struct probe_ops stap_probe_ops): Delete
488 variable.
489 (struct stap_probe_arg) <stap_probe_arg>: New constructor.
490 <aexpr>: Change type to 'expression_up'.
491 (stap_probe_arg_s): Delete type and VEC.
492 (struct stap_probe): Delete. Replace by...
493 (class stap_static_probe_ops): ...this and...
494 (class stap_probe): ...this. Rename variables to add 'm_'
495 prefix. Do not use 'union' for arguments anymore.
496 (stap_get_expected_argument_type): Receive probe name instead
497 of 'struct stap_probe'. Adjust code.
498 (stap_parse_probe_arguments): Rename to...
499 (stap_probe::parse_arguments): ...this. Adjust code to
500 reflect change.
501 (stap_get_probe_address): Rename to...
502 (stap_probe::get_relocated_address): ...this. Adjust code
503 to reflect change.
504 (stap_get_probe_argument_count): Rename to...
505 (stap_probe::get_argument_count): ...this. Adjust code
506 to reflect change.
507 (stap_get_arg): Rename to...
508 (stap_probe::get_arg_by_number'): ...this. Adjust code to
509 reflect change.
510 (can_evaluate_probe_arguments): Rename to...
511 (stap_probe::can_evaluate_arguments): ...this. Adjust code
512 to reflect change.
513 (stap_evaluate_probe_argument): Rename to...
514 (stap_probe::evaluate_argument): ...this. Adjust code
515 to reflect change.
516 (stap_compile_to_ax): Rename to...
517 (stap_probe::compile_to_ax): ...this. Adjust code to
518 reflect change.
519 (stap_probe_destroy): Delete.
520 (stap_modify_semaphore): Adjust comment.
521 (stap_set_semaphore): Rename to...
522 (stap_probe::set_semaphore): ...this. Adjust code to reflect
523 change.
524 (stap_clear_semaphore): Rename to...
525 (stap_probe::clear_semaphore): ...this. Adjust code to
526 reflect change.
527 (stap_probe::get_static_ops): New method.
528 (handle_stap_probe): Adjust code to create instance of
529 'stap_probe'.
530 (stap_get_probes): Rename to...
531 (stap_static_probe_ops::get_probes): ...this. Adjust code to
532 reflect change.
533 (stap_probe_is_linespec): Rename to...
534 (stap_static_probe_ops::is_linespec): ...this. Adjust code to
535 reflect change.
536 (stap_type_name): Rename to...
537 (stap_static_probe_ops::type_name): ...this. Adjust code to
538 reflect change.
539 (stap_gen_info_probes_table_header): Rename to...
540 (stap_static_probe_ops::gen_info_probes_table_header):
541 ...this. Adjust code to reflect change.
542 (stap_gen_info_probes_table_values): Rename to...
543 (stap_probe::gen_info_probes_table_values): ...this. Adjust
544 code to reflect change.
545 (struct probe_ops stap_probe_ops): Delete.
546 (info_probes_stap_command): Use 'info_probes_for_spops'
547 instead of 'info_probes_for_ops'.
548 (_initialize_stap_probe): Use 'all_static_probe_ops' instead
549 of 'all_probe_ops'.
550
935676c9
SDJ
5512017-11-22 Sergio Durigan Junior <sergiodj@redhat.com>
552
553 * break-catch-throw.c (fetch_probe_arguments): Use
554 'probe.prob' instead of 'probe.probe'.
555 * breakpoint.c (create_longjmp_master_breakpoint): Call
556 'can_evaluate_arguments' and 'get_relocated_address' methods
557 from probe.
558 (create_exception_master_breakpoint): Likewise.
559 (add_location_to_breakpoint): Use 'sal->prob' instead of
560 'sal->probe'.
561 (bkpt_probe_insert_location): Call 'set_semaphore' method from
562 probe.
563 (bkpt_probe_remove_location): Likewise, for 'clear_semaphore'.
564 * elfread.c (elf_get_probes): Use 'static_probe_ops' instead
565 of 'probe_ops'.
566 (probe_key_free): Call 'delete' on probe.
567 (check_exception_resume): Use 'probe.prob' instead of
568 'probe.probe'.
569 * location.c (string_to_event_location_basic): Call
570 'probe_linespec_to_static_ops'.
571 * probe.c (class any_static_probe_ops): New class.
572 (any_static_probe_ops any_static_probe_ops): New variable.
573 (parse_probes_in_pspace): Receive 'static_probe_ops' as
574 argument. Adjust code to reflect change.
575 (parse_probes): Use 'static_probe_ops' instead of
576 'probe_ops'. Adjust code to reflect change.
577 (find_probes_in_objfile): Call methods to get name and
578 provider from probe.
579 (find_probe_by_pc): Use 'result.prob' instead of
580 'result.probe'. Call 'get_relocated_address' method from
581 probe.
582 (collect_probes): Adjust comment and argument list to receive
583 'static_probe_ops' instead of 'probe_ops'. Adjust code to
584 reflect change. Call necessary methods from probe.
585 (compare_probes): Call methods to get name and provider from
586 probes.
587 (gen_ui_out_table_header_info): Receive 'static_probe_ops'
588 instead of 'probe_ops'. Use 'std::vector' instead of VEC,
589 adjust code accordingly.
590 (print_ui_out_not_applicables): Likewise.
591 (info_probes_for_ops): Rename to...
592 (info_probes_for_spops): ...this. Receive 'static_probe_ops'
593 as argument instead of 'probe_ops'. Adjust code. Call
594 necessary methods from probe.
595 (info_probes_command): Use 'info_probes_for_spops'.
596 (enable_probes_command): Pass correct argument to
597 'collect_probes'. Call methods from probe.
598 (disable_probes_command): Likewise.
599 (get_probe_address): Move to 'any_static_probe_ops::get_address'.
600 (get_probe_argument_count): Move to
601 'any_static_probe_ops::get_argument_count'.
602 (can_evaluate_probe_arguments): Move to
603 'any_static_probe_ops::can_evaluate_arguments'.
604 (evaluate_probe_argument): Move to
605 'any_static_probe_ops::evaluate_argument'.
606 (probe_safe_evaluate_at_pc): Use 'probe.prob' instead of
607 'probe.probe'.
608 (probe_linespec_to_ops): Rename to...
609 (probe_linespec_to_static_ops): ...this. Adjust code.
610 (probe_any_is_linespec): Rename to...
611 (any_static_probe_ops::is_linespec): ...this.
612 (probe_any_get_probes): Rename to...
613 (any_static_probe_ops::get_probes): ...this.
614 (any_static_probe_ops::type_name): New method.
615 (any_static_probe_ops::gen_info_probes_table_header): New
616 method.
617 (compute_probe_arg): Use 'pc_probe.prob' instead of
618 'pc_probe.probe'. Call methods from probe.
619 (compile_probe_arg): Likewise.
620 (std::vector<const probe_ops *> all_probe_ops): Delete.
621 (std::vector<const static_probe_ops *> all_static_probe_ops):
622 New variable.
623 (_initialize_probe): Use 'all_static_probe_ops' instead of
624 'all_probe_ops'.
625 * probe.h (struct info_probe_column) <field_name>: Delete
626 extraneous newline
627 (info_probe_column_s): Delete type and VEC.
628 (struct probe_ops): Delete. Replace with...
629 (class static_probe_ops): ...this and...
630 (clas probe): ...this.
631 (struct bound_probe) <bound_probe>: Delete extraneous
632 newline. Adjust constructor to receive 'probe' instead of
633 'struct probe'.
634 <probe>: Rename to...
635 <prob>: ...this. Delete extraneous newline.
636 <objfile>: Delete extraneous newline.
637 (register_probe_ops): Delete unused prototype.
638 (info_probes_for_ops): Rename to...
639 (info_probes_for_spops): ...this. Adjust comment.
640 (get_probe_address): Move to 'probe::get_address'.
641 (get_probe_argument_count): Move to
642 'probe::get_argument_count'.
643 (can_evaluate_probe_arguments): Move to
644 'probe::can_evaluate_arguments'.
645 (evaluate_probe_argument): Move to 'probe::evaluate_argument'.
646 * solib-svr4.c (struct svr4_info): Adjust comment.
647 (struct probe_and_action) <probe>: Rename to...
648 <prob>: ...this.
649 (register_solib_event_probe): Receive 'probe' instead of
650 'struct probe' as argument. Use 'prob' instead of 'probe'
651 when applicable.
652 (solib_event_probe_action): Call 'get_argument_count' method
653 from probe. Adjust comment.
654 (svr4_handle_solib_event): Adjust comment. Call
655 'evaluate_argument' method from probe.
656 (svr4_create_probe_breakpoints): Call 'get_relocated_address'
657 from probe.
658 (svr4_create_solib_event_breakpoints): Use 'probe' instead of
659 'struct probe'. Call 'can_evaluate_arguments' from probe.
660 * symfile.h: Forward declare 'class probe' instead of 'struct
661 probe'.
662 * symtab.h: Likewise.
663 (struct symtab_and_line) <probe>: Rename to...
664 <prob>: ...this.
665 * tracepoint.c (start_tracing): Use 'prob' when applicable.
666 Call probe methods.
667 (stop_tracing): Likewise.
668
8f6cb6c3
JB
6692017-11-22 Joel Brobecker <brobecker@adacore.com>
670
671 * ravenscar-thread.c (ravenscar_inferior_created): Remove
672 trailing newline at end of string in call to warning.
673
479f8de1
SM
6742017-11-22 Simon Marchi <simon.marchi@polymtl.ca>
675
676 * osdata.h: Include vector isntead of vec.h.
677 (osdata_column_s): Remove typedef.
678 (struct osdata_column): Add constructor.
679 <name, value>: Change type to std::string.
680 (DEF_VEC_O (osdata_column_s)): Remove.
681 (osdata_item_s): Remove typedef.
682 (struct osdata_item) <columns>: Change type to std::vector.
683 (DEF_VEC_O (osdata_item_s)): Remove.
684 (struct osdata): Add constructor.
685 <type>: Change type to std::string.
686 <items>: Change type to std::vector.
687 (osdata_p): Remove typedef.
688 (DEF_VEC_P (osdata_p)): Remove.
689 (osdata_parse): Return a unique_ptr.
690 (osdata_free): Remove.
691 (make_cleanup_osdata_free): Remove.
692 (get_osdata): Return a unique_ptr.
693 (get_osdata_column): Return pointer to std::string, take a
694 reference to osdata_item as parameter.
695 * osdata.c (struct osdata_parsing_data) <osdata>: Change type to
696 unique_ptr.
697 <property_name>: Change type to std::string.
698 (osdata_start_osdata): Allocate osdata with new and adjust.
699 (osdata_start_item): Adjust.
700 (osdata_start_column): Adjust.
701 (osdata_end_column): Adjust.
702 (clear_parsing_data): Remove.
703 (osdata_parse): Return a unique_ptr and adjust, remove cleanup.
704 (osdata_item_clear): Remove.
705 (get_osdata): return a unique_ptr and adjust.
706 (get_osdata_column): Return a pointer to std::string and adjust.
707 (info_osdata): Adjust.
708 * mi/mi-main.c: Include <map>.
709 (free_vector_of_osdata_items): Remove.
710 (list_available_thread_groups): Adjust, use std::map instead of
711 splay tree.
712
41bd68f5
SM
7132017-11-22 Simon Marchi <simon.marchi@ericsson.com>
714
715 * stack.c (iterate_over_block_locals): Add LOC_OPTIMIZED_OUT
716 case in switch.
717
7e2fd2f4
SM
7182017-11-22 Simon Marchi <simon.marchi@polymtl.ca>
719
720 * varobj.h (DEF_VEC_P (varobj_p)): Remove.
721
0604393c
SM
7222017-11-22 Simon Marchi <simon.marchi@polymtl.ca>
723
724 * varobj.h (struct varobj_update_result): Add constructor, add
725 move constructor, disable copy and assign, initialize fields.
726 <newobj>: Change type to std::vector.
727 (varobj_update): Return std::vector.
728 * varobj.c (install_dynamic_child): Change VEC parameters to
729 std::vector and adjust.
730 (update_dynamic_varobj_children): Likewise.
731 (varobj_update): Return std::vector and adjust.
732 * mi/mi-cmd-var.c (varobj_update_one): Adjust to vector changes.
733
ddf0ea08
SM
7342017-11-22 Simon Marchi <simon.marchi@polymtl.ca>
735
736 * varobj.h (struct varobj) <parent>: Remove const.
737 <children>: Change type to std::vector.
738 (varobj_list_children): Return std::vector const reference.
739 (varobj_restrict_range): Change parameter type to std::vector
740 const reference.
741 * varobj.c (varobj_has_more): Adjust.
742 (varobj_restrict_range): Change parameter type to std::vector
743 const reference and adjust.
744 (install_dynamic_child): Adjust.
745 (update_dynamic_varobj_children): Adjust.
746 (varobj_list_children): Return std::vector const reference and
747 adjust.
748 (varobj_add_child): Adjust.
749 (update_type_if_necessary): Adjust.
750 (varobj_update): Adjust.
751 (delete_variable_1): Adjust.
752 * ada-varobj.c (ada_value_has_mutated): Adjust.
753 * mi/mi-cmd-var.c (mi_cmd_var_list_children): Adjust.
754
9e5b9d2b
SM
7552017-11-22 Simon Marchi <simon.marchi@polymtl.ca>
756
757 * varobj.h (struct varobj): Add constructor and destructor,
758 initialize fields.
759 * varobj.c (struct varobj_root): Initialize fields.
760 (struct varobj_dynamic): Initialize fields.
761 (varobj_create): Use unique_ptr instead of cleanup. Create
762 varobj with new instead of new_root_variable.
763 (delete_variable_1): Free variable with delete instead of
764 free_variable.
765 (create_child_with_value): Create variable with new instead of
766 new_variable.
767 (varobj::varobj): New.
768 (varobj::~varobj): New (body mostly coming from free_variable).
769 (new_variable): Remove.
770 (free_variable): Remove.
771 (do_free_variable_cleanup): Remove.
772 (make_cleanup_free_variable): Remove.
773
fc35dab1
UW
7742017-11-22 Ulrich Weigand <uweigand@de.ibm.com>
775
776 * core-regset.c: Remove file.
777 * Makefile.in (ALLDEPFILES): Remove core-regset.c.
778
2400729e
UW
7792017-11-22 Ulrich Weigand <uweigand@de.ibm.com>
780
781 * NEWS: Document use of GNU MPFR.
782 * README: Likewise.
783
784 * Makefile.in (LIBMPFR): Add define.
785 (CLIBS): Add $(LIBMPFR).
786 * configure.ac: Add --with-mpfr configure option.
787 * configure: Regenerate.
788 * config.in: Regenerate.
789
790 * target-float.c [HAVE_LIBMPFR]: Include <mpfr.h>.
791 (class mpfr_float_ops): New type.
792 (mpfr_float_ops::from_target): Two new overloaded functions.
793 (mpfr_float_ops::to_target): Likewise.
794 (mpfr_float_ops::to_string): New function.
795 (mpfr_float_ops::from_string): Likewise.
796 (mpfr_float_ops::to_longest): Likewise.
797 (mpfr_float_ops::from_longest): Likewise.
798 (mpfr_float_ops::from_ulongest): Likewise.
799 (mpfr_float_ops::to_host_double): Likewise.
800 (mpfr_float_ops::from_host_double): Likewise.
801 (mpfr_float_ops::convert): Likewise.
802 (mpfr_float_ops::binop): Likewise.
803 (mpfr_float_ops::compare): Likewise.
804 (get_target_float_ops): Use mpfr_float_ops if available.
805
7a26362d
UW
8062017-11-22 Ulrich Weigand <uweigand@de.ibm.com>
807
808 * target-float.c: Do not include <math.h>.
809 Include <cmath> and <limits>.
810 (DOUBLEST): Do not define.
811 (class target_float_ops): New type.
812 (class host_float_ops): New templated type.
813 (class decimal_float_ops): New type.
814
815 (floatformat_to_doublest): Rename to ...
816 (host_float_ops<T>::from_target): ... this. Use template type T
817 instead of DOUBLEST. Use C++ math routines. Update recursive calls.
818 (host_float_ops<T>::from_target): New overload using a type argument.
819 (floatformat_from_doublest): Rename to ...
820 (host_float_ops<T>::to_target): ... this. Use template type T
821 instead of DOUBLEST. Use C++ math routines. Update recursive calls.
822 (host_float_ops<T>::to_target): New overload using a type argument.
823 (floatformat_printf_format): New function.
824 (struct printf_length_modifier): New templated type.
825 (floatformat_to_string): Rename to ...
826 (host_float_ops<T>::to_string): ... this. Use type instead of
827 floatformat argument. Use floatformat_printf_format and
828 printf_length_modifier. Remove special handling of invalid numbers,
829 infinities and NaN (moved to target_float_to_string).
830 (struct scanf_length_modifier): New templated type.
831 (floatformat_from_string): Rename to ...
832 (host_float_ops<T>::from_string): ... this. Use type instead of
833 floatformat argument. Use scanf_length_modifier.
834 (floatformat_to_longest): Rename to ...
835 (host_float_ops<T>::to_longest): ... this. Use type instead of
836 floatformat argument. Handle out-of-range values deterministically.
837 (floatformat_from_longest): Rename to ...
838 (host_float_ops<T>::from_longest): ... this. Use type instead of
839 floatformat argument.
840 (floatformat_from_ulongest): Rename to ...
841 (host_float_ops<T>::from_ulongest): ... this. Use type instead of
842 floatformat argument.
843 (floatformat_to_host_double): Rename to ...
844 (host_float_ops<T>::to_host_double): ... this. Use type instead of
845 floatformat argument.
846 (floatformat_from_host_double): Rename to ...
847 (host_float_ops<T>::from_host_double): ... this. Use type instead of
848 floatformat argument.
849 (floatformat_convert): Rename to ...
850 (host_float_ops<T>::convert): ... this. Use type instead of
851 floatformat arguments. Remove handling of no-op conversions.
852 (floatformat_binop): Rename to ...
853 (host_float_ops<T>::binop): ... this. Use type instead of
854 floatformat arguments.
855 (floatformat_compare): Rename to ...
856 (host_float_ops<T>::compare): ... this. Use type instead of
857 floatformat arguments.
858
859 (match_endianness): Use type instead of length/byte_order arguments.
860 (set_decnumber_context): Likewise.
861 (decimal_from_number): Likewise. Update calls.
862 (decimal_to_number): Likewise.
863 (decimal_is_zero): Likewise. Update calls. Move to earlier in file.
864 (decimal_float_ops::to_host_double): New dummy function.
865 (decimal_float_ops::from_host_double): Likewise.
866 (decimal_to_string): Rename to ...
867 (decimal_float_ops::to_string): ... this. Use type instead of
868 length/byte_order arguments. Update calls.
869 (decimal_from_string): Rename to ...
870 (decimal_float_ops::from_string): ... this. Use type instead of
871 length/byte_order arguments. Update calls.
872 (decimal_from_longest): Rename to ...
873 (decimal_float_ops::from_longest): ... this. Use type instead of
874 length/byte_order arguments. Update calls.
875 (decimal_from_ulongest): Rename to ...
876 (decimal_float_ops::from_ulongest): ... this. Use type instead of
877 length/byte_order arguments. Update calls.
878 (decimal_to_longest): Rename to ...
879 (decimal_float_ops::to_longest): ... this. Use type instead of
880 length/byte_order arguments. Update calls.
881 (decimal_binop): Rename to ...
882 (decimal_float_ops::binop): ... this. Use type instead of
883 length/byte_order arguments. Update calls.
884 (decimal_compare): Rename to ...
885 (decimal_float_ops::compare): ... this. Use type instead of
886 length/byte_order arguments. Update calls.
887 (decimal_convert): Rename to ...
888 (decimal_float_ops::convert): ... this. Use type instead of
889 length/byte_order arguments. Update calls.
890
891 (target_float_same_category_p): New function.
892 (target_float_same_format_p): Likewise.
893 (target_float_format_length): Likewise.
894 (enum target_float_ops_kind): New type.
895 (get_target_float_ops_kind): New function.
896 (get_target_float_ops): Three new overloaded functions.
897
898 (target_float_is_zero): Update call.
899 (target_float_to_string): Add special handling of invalid numbers,
900 infinities and NaN (moved from floatformat_to_string). Use
901 target_float_ops callback.
902 (target_float_from_string): Use target_float_ops callback.
903 (target_float_to_longest): Likewise.
904 (target_float_from_longest): Likewise.
905 (target_float_from_ulongest): Likewise.
906 (target_float_to_host_double): Likewise.
907 (target_float_from_host_double): Likewise.
908 (target_float_convert): Add special case for no-op conversions.
909 Use target_float_ops callback.
910 (target_float_binop): Use target_float_ops callback.
911 (target_float_compare): Likewise.
912
a9f26f60
YQ
9132017-11-22 Yao Qi <yao.qi@linaro.org>
914
915 * python/py-gdb-readline.c (gdbpy_readline_wrapper): Use strcpy.
916
29f9a567
YQ
9172017-11-22 Yao Qi <yao.qi@linaro.org>
918
919 * cli/cli-decode.c (help_list): Use memcpy instead of strncpy.
920 * cp-namespace.c (cp_lookup_transparent_type_loop): Likewise.
921
3b1b69bf
JG
9222017-11-21 Jerome Guitton <guitton@adacore.com>
923
924 * ravenscar-thread.c (ravenscar_wait): Update inferior ptid
925 with event ptid from the lower layer before doing the
926 ravenscar-specific update.
927
54aa6c67
JB
9282017-11-21 Joel Brobecker <brobecker@adacore.com>
929
930 * ravenscar-thread.c (is_ravenscar_task): Also verify that
931 the ptid's TID is nonzero.
932
cf3fbed4
JB
9332017-11-21 Joel Brobecker <brobecker@adacore.com>
934
935 * ada-lang.h (ada_get_tcb_types_info): Add declaration.
936 * ada-tasks.c (ada_get_tcb_types_info): Renames get_tcb_types_info.
937 Make non-static. Change return type to char *. Adjust code
938 accordingly. Rewrite the function's documentation.
939 (read_atcb): Adjust call to get_tcb_types_info accordingly.
940 * ravenscar-thread.c (ravenscar_inferior_created): Check that
941 we have enough debugging information in the runtime to support
942 Ada task debugging before we enable the ravenscar-thread layer.
943
9edcc12f
JB
9442017-11-21 Joel Brobecker <brobecker@adacore.com>
945
946 * ada-lang.h (ada_get_task_info_from_ptid): Add declaration.
947 * ada-tasks.c (ada_get_task_info_from_ptid): New function.
948 * ravenscar-thread.c: Add into comment.
949 (base_magic_null_ptid): Delete.
950 (base_ptid): Change documentation.
951 (ravenscar_active_task): Renames ravenscar_running_thread.
952 All callers updated throughout.
953 (is_ravenscar_task, ravenscar_get_thread_base_cpu): New function.
954 (ravenscar_task_is_currently_active): Likewise.
955 (get_base_thread_from_ravenscar_task): Ditto.
956 (ravenscar_update_inferior_ptid): Adjust to handle multiple CPUs.
957 (ravenscar_runtime_initialized): Likewise.
958 (get_running_thread_id): Add new parameter "cpu". Adjust
959 implementation to handle this new parameter.
960 (ravenscar_fetch_registers): Small adjustment to use
961 is_ravenscar_task and ravenscar_task_is_currently_active in
962 order to decide whether to use the target beneath or this
963 module's arch_ops.
964 (ravenscar_store_registers, ravenscar_prepare_to_store): Likewise.
965 (ravenscar_stopped_by_sw_breakpoint): Use
966 get_base_thread_from_ravenscar_task to get the underlying
967 thread, rather than using base_ptid.
968 (ravenscar_stopped_by_hw_breakpoint, ravenscar_stopped_by_watchpoint)
969 (ravenscar_stopped_data_address, ravenscar_core_of_thread):
970 Likewise.
971 (ravenscar_inferior_created): Do not set base_magic_null_ptid.
972
65d40437
JB
9732017-11-21 Joel Brobecker <brobecker@adacore.com>
974
975 * ada-lang.h (struct ada_task_info) <base_cpu>: New field.
976 * ada-lang.c (struct atcb_fieldno) <base_cpu>: New field.
977 (get_tcb_types_info): Set fieldnos.base_cpu.
978 (read_atcb): Set task_info->base_cpu.
979 (info_task): Print "Base CPU" info if set by runtime.
980
e02544b2
JB
9812017-11-21 Joel Brobecker <brobecker@adacore.com>
982
983 * ravenscar-thread.c (ravenscar_stopped_by_sw_breakpoint)
984 (ravenscar_stopped_by_hw_breakpoint, ravenscar_stopped_by_watchpoint)
985 (ravenscar_stopped_data_address, ravenscar_core_of_thread):
986 New functions.
987 (init_ravenscar_thread_ops): Set the to_stopped_by_sw_breakpoint,
988 to_stopped_by_hw_breakpoint, to_stopped_by_watchpoint,
989 to_stopped_data_address and to_core_of_thread fields of
990 ravenscar_ops.
991
ed0f4273
UW
9922017-11-21 Ulrich Weigand <uweigand@de.ibm.com>
993
994 * ppc-tdep.h (enum powerpc_long_double_abi): New data type.
995 (struct gdbarch_tdep): New member long_double_abi.
996 * rs6000-tdep.c (rs6000_gdbarch_init): Initialize long_double_abi
997 member of tdep struct based on Tag_GNU_Power_ABI_FP attribute.
998 * ppc-linux-tdep.c (ppc_linux_init_abi): Install long double data
999 format depending on long_double_abi tdep member.
1000 (ppc_floatformat_for_type): Handle __ibm128 type.
1001
0fc76421
SM
10022017-11-20 Simon Marchi <simon.marchi@polymtl.ca>
1003
1004 * darwin-nat.c (set_enable_mach_exceptions): Constify parameter.
1005
e6b2f5ef
PA
10062017-11-21 Pedro Alves <palves@redhat.com>
1007
1008 * dwarf2read.c (mapped_index::find_name_components_bounds)
1009 <completion mode, upper bound>: Use std::lower_bound instead of
1010 std::upper_bound.
1011 (test_mapped_index_find_name_component_bounds): Remove incorrect
1012 "t1_fund" from expected symbols.
1013
5c58de74
PA
10142017-11-21 Pedro Alves <palves@redhat.com>
1015
1016 * dwarf2read.c (mapped_index::name_components_casing): New field.
1017 (mapped_index) <build_name_components,
1018 find_name_components_bounds): Declare new methods.
1019 (mapped_index::find_name_components_bounds)
1020 (mapped_index::build_name_components): New methods, factored out
1021 from dw2_expand_symtabs_matching_symbol.
1022 (check_find_bounds_finds)
1023 (test_mapped_index_find_name_component_bounds): New.
1024 (run_test): Rename to ...
1025 (test_dw2_expand_symtabs_matching_symbol): ... this.
1026 (run_test): Reimplement.
1027
e1ef7d7a
PA
10282017-11-21 Pedro Alves <palves@redhat.com>
1029
1030 * cp-name-parser.y (cp_ident_is_alpha, cp_ident_is_alnum): New.
1031 (symbol_end): Use cp_ident_is_alnum.
1032 (yylex): Use cp_ident_is_alpha and cp_ident_is_alnum.
1033 * dwarf2read.c (make_sort_after_prefix_name): New function.
1034 (dw2_expand_symtabs_matching_symbol): Use it.
1035 (test_symbols): Add more symbols.
1036 (run_test): Add tests.
1037
cf724bc9
TT
10382017-11-17 Tom Tromey <tom@tromey.com>
1039
1040 * symtab.h (enum symbol_subclass_kind): New.
1041 (struct symbol) <is_cplus_template_function, is_rust_vtable>:
1042 Remove.
1043 <subclass>: New member.
1044 (SYMBOL_IS_CPLUS_TEMPLATE_FUNCTION): Update.
1045 * rust-lang.c (rust_get_trait_object_pointer): Update.
1046 * dwarf2read.c (read_func_scope): Update.
1047 (read_variable): Update.
1048
68e745e3
TT
10492017-11-17 Tom Tromey <tom@tromey.com>
1050
1051 * dwarf2read.c (read_func_scope): Update.
1052 * symtab.h (struct template_symbol): Derive from symbol.
1053 <base>: Remove.
1054
71a3c369
TT
10552017-11-17 Tom Tromey <tom@tromey.com>
1056
1057 * symtab.h (struct symbol) <is_rust_vtable>: New member.
1058 (struct rust_vtable_symbol): New.
1059 (find_symbol_at_address): Declare.
1060 * symtab.c (find_symbol_at_address): New function.
1061 * symfile.h (struct quick_symbol_functions)
1062 <find_compunit_symtab_by_address>: New member.
1063 * symfile-debug.c (debug_qf_find_compunit_symtab_by_address): New
1064 function.
1065 (debug_sym_quick_functions): Link to
1066 debug_qf_find_compunit_symtab_by_address.
1067 * rust-lang.c (rust_get_trait_object_pointer): New function.
1068 (rust_evaluate_subexp) <case UNOP_IND>: New case. Call
1069 rust_get_trait_object_pointer.
1070 * psymtab.c (psym_relocate): Clear psymbol_map.
1071 (psym_fill_psymbol_map, psym_find_compunit_symtab_by_address): New
1072 functions.
1073 (psym_functions): Link to psym_find_compunit_symtab_by_address.
1074 * objfiles.h (struct objfile) <psymbol_map>: New member.
1075 * dwarf2read.c (dwarf2_gdb_index_functions): Update.
1076 (process_die) <DW_TAG_variable>: New case. Call read_variable.
1077 (rust_containing_type, read_variable): New functions.
1078
7468702d
SM
10792017-11-17 Simon Marchi <simon.marchi@polymtl.ca>
1080
1081 * common/gdb_vecs.h (DEF_VEC_I (int)): Remove.
1082
37269bc9
SM
10832017-11-17 Simon Marchi <simon.marchi@polymtl.ca>
1084
1085 * common/filestuff.c: Include <algorithm>.
1086 (open_fds): Change type to std::vector<int>.
1087 (do_mark_open_fd): Adjust.
1088 (unmark_fd_no_cloexec): Adjust.
1089 (do_close): Adjust.
1090
5c632425
SM
10912017-11-17 Simon Marchi <simon.marchi@polymtl.ca>
1092
1093 * breakpoint.c (output_thread_groups): Take an std::vector.
1094 (print_one_breakpoint_location): Adjust.
1095
ced9779b
JB
10962017-11-17 Joel Brobecker <brobecker@adacore.com>
1097
1098 * ada-lang.c (resolve_subexp): Add handling of OP_VAR_MSYM_VALUE.
1099 (ada_evaluate_subexp_for_cast): New function.
1100 (ada_evaluate_subexp) <UNOP_CAST>: Replace code by call to
1101 ada_evaluate_subexp_for_cast.
1102 (ada_evaluate_subexp) <nosideret>: Replace code by call to
1103 eval_skip_value.
1104 * eval.c (evaluate_var_value): Make non-static.
1105 (evaluate_var_msym_value, eval_skip_value): Likewise.
1106 * value.h (evaluate_var_value, evaluate_var_msym_value)
1107 (eval_skip_value): Declare.
1108
b7e22850
JB
11092017-11-16 Joel Brobecker <brobecker@adacore.com>
1110
1111 * ada-lang.c (ada_value_cast): Remove parameter "noside".
1112 Update all callers.
1113
9ccabccd
PA
11142017-11-16 Pedro Alves <palves@redhat.com>
1115
1116 * python/py-unwind.c (pyuw_sniffer): Translate
1117 PyExc_KeyboardInterrupt to a GDB Quit exception.
1118
d930703d
PA
11192017-11-16 Pedro Alves <palves@redhat.com>
1120
1121 * infrun.c (resume_cleanups): Delete.
1122 (resume): No longer install a resume_cleanups cleanup nor call
1123 QUIT.
1124 (proceed): Pass the terminal to the inferior.
1125 (keep_going_pass_signal): No longer install a resume_cleanups
1126 cleanup.
1127
38dc2859
PA
11282017-11-16 Pedro Alves <palves@redhat.com>
1129
1130 * inf-loop.c (inferior_event_handler): Don't swallow the exception
1131 if the prompt is blocked.
1132
688fca4f
PA
11332017-11-16 Pedro Alves <palves@redhat.com>
1134
1135 * breakpoint.c (insert_bp_location): Replace bp_err and
1136 bp_err_message locals by a gdb_exception local.
1137
e2c33ac7
PA
11382017-11-16 Pedro Alves <palves@redhat.com>
1139
1140 * inflow.c (scoped_ignore_sigttou): New class.
1141 (child_terminal_ours_1, new_tty): Use it.
1142
d7236961
UW
11432017-11-16 Ulrich Weigand <uweigand@de.ibm.com>
1144
1145 * target-float.c (decimal_from_number): Add byte_order argument and
1146 call match_endianness. Error if unknown floating-point type.
1147 (decimal_to_number): Add byte_order argument and call match_endianness.
1148 (decimal_from_longest): Update call. Do not call match_endianness.
1149 (decimal_from_ulongest): Likewise.
1150 (decimal_binop): Likewise.
1151 (decimal_is_zero): Likewise.
1152 (decimal_compare): Likewise.
1153 (decimal_convert): Likewise.
1154
d8ae99a7
PM
11552017-11-16 Phil Muldoon <pmuldoon@redhat.com>
1156
1157 * python/python.c (gdbpy_rbreak): New function.
1158 * NEWS: Document Python rbreak feature.
1159
c632b645
YQ
11602017-11-16 Yao Qi <yao.qi@linaro.org>
1161
1162 * features/tic6x-c62x.xml: Remove.
1163 * features/tic6x-c64x.xml: Remove.
1164 * features/tic6x-c64xp.xml: Remove.
1165
a014b87a
JB
11662017-11-15 John Baldwin <jhb@FreeBSD.org>
1167
1168 * symtab.h: Include <array>.
1169
94765011
JB
11702017-11-15 John Baldwin <jhb@FreeBSD.org>
1171
1172 * bsd-kvm.c (bsd_kvm_cmd): Constify 'arg'.
1173 (bsd_kvm_proc_cmd): Likewise.
1174
625ad440
SM
11752017-11-15 Simon Marchi <simon.marchi@ericsson.com>
1176
1177 * tui/tui-win.c (window_name_completer): Replace VEC with
1178 std::vector.
1179
c0c11fa9
AC
11802017-11-15 Andrew Cagney <cagney@gnu.org>
1181
1182 * MAINTAINERS: Remove no-longer applicable entries.
1183
34a7ebaf
AC
11842017-11-15 Andrew Cagney <cagney@gnu.org>
1185
1186 * MAINTAINERS: Move self to Past Maintainers.
1187
5334ef39
YQ
11882017-11-15 Yao Qi <yao.qi@linaro.org>
1189
1190 * features/Makefile (XMLTOC): Remove nios2-linux.xml.
1191 * features/nios2-linux.c: Remove.
1192 * nios2-linux-tdep.c (_initialize_nios2_linux_tdep): Don't call
1193 initialize_tdesc_nios2_linux.
1194
a714b0d6
YQ
11952017-11-15 Yao Qi <yao.qi@linaro.org>
1196
1197 * m68hc11-tdep.c (M68HC11_NUM_REGS): Change it to
1198 M68HC11_LAST_HARD_REG + 1.
1199
92ffd475
PC
12002017-11-14 Paul Carroll <pcarroll@codesourcery.com>
1201
1202 PR gdb/22388
1203 * remote.c (remote_write_bytes_aux, remote_read_bytes_1,
1204 remote_read_bytes, remote_write_qxfer, remote_xfer_partial):
1205 Return TARGET_XFER_EOF if size of returned data is 0.
1206
07431908
SM
12072017-11-14 Simon Marchi <simon.marchi@ericsson.com>
1208
1209 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
1210 memory-map-selftests.c.
1211 (SUBDIR_UNITTESTS_OBS): Add memory-map-selftests.o.
1212 * memory-map.c (memory_map_start_memory): Fix computation of hi
1213 address.
1214 * unittests/memory-map-selftests.c: New file.
1215
31432a67
JB
12162017-11-09 Joel Brobecker <brobecker@adacore.com>
1217
1218 * ada-lang.c: Fix some typos in the general command documenting
1219 how Ada expressions are being evaluated and how their result
1220 is printed.
1221
e793c052
TT
12222017-11-09 Tom Tromey <tom@tromey.com>
1223
1224 * psymtab.c (psymbol_hash): Do not hash string contents.
1225 (psymbol_compare): Add comment.
1226
7e8835c5
TT
12272017-11-09 Tom Tromey <tom@tromey.com>
1228
1229 * dictionary.c (dict_hash): Move "TKB" check into the "switch".
1230
286acbb5
JB
12312017-11-08 Joel Brobecker <brobecker@adacore.com>
1232
1233 * ada-exp.y (write_var_from_sym): Remove parameter
1234 "orig_left_context". Update all callers.
1235
b44ec619
SM
12362017-11-08 Simon Marchi <simon.marchi@ericsson.com>
1237
1238 * tracepoint.h (class collection_list) <stringify>: Return
1239 std::vector<std::string>.
1240 (encode_actions_rsp): Change parameters to
1241 std::vector<std::string> *.
1242 * tracepoint.c (collection_list::stringify): Return
1243 std::vector<std::string> and adjust accordingly.
1244 (encode_actions_rsp): Changee parameters to
1245 std::vector<std::string> and adjust accordingly.
1246 * remote.c (free_actions_list),
1247 free_actions_list_cleanup_wrapper): Remove.
1248 (remote_download_tracepoint): Adjust to std::vector.
1249
2f4732b0
TT
12502017-11-08 Tom Tromey <tom@tromey.com>
1251
1252 * dwarf2read.c (symbolp): Remove typedef.
1253 (read_func_scope): Use std::vector.
1254 (process_structure_scope): Use std::vector.
1255
f9d67a22
PA
12562017-11-08 Pedro Alves <palves@redhat.com>
1257
1258 * ada-lang.c (ada_make_symbol_completion_list): Use
1259 completion_skip_symbol.
1260 * symtab.c (symbol_is_function_or_method(minimal_symbol*)): New.
1261 (symbol_is_function_or_method(symbol*)): New.
1262 (add_symtab_completions): Add complete_symbol_mode parameter. Use
1263 completion_skip_symbol.
1264 (default_collect_symbol_completion_matches_break_on): Use
1265 completion_skip_symbol. Pass down mode.
1266 (collect_file_symbol_completion_matches): Pass down mode.
1267 * symtab.h (symbol_is_function_or_method): New declarations.
1268 (completion_skip_symbol): New template function.
1269
56d87ef7
PA
12702017-11-08 Pedro Alves <palves@redhat.com>
1271
1272 * linespec.c (iterate_over_all_matching_symtabs): Add
1273 search_domain parameter. Pass it down to expand_symtabs_matching.
1274 (decode_objc): Request FUNCTIONS_DOMAIN symbols only.
1275 (lookup_prefix_sym): Adjust by passing ALL_DOMAIN as
1276 search_domain.
1277 (add_all_symbol_names_from_pspace): Add search_domain parameter.
1278 Pass it down.
1279 (find_method, find_function_symbols): Request FUNCTIONS_DOMAIN
1280 symbols.
1281 (add_matching_symbols_to_info): Add search_domain parameter. Pass
1282 it down.
1283
1b026119
PA
12842017-11-08 Pedro Alves <palves@redhat.com>
1285
1286 * ada-lang.c (ada_make_symbol_completion_list): Remove text and
1287 text_len locals and don't pass them down.
1288 * symtab.c (completion_list_add_name): Remove
1289 sym_text/sym_text_len parameters and adjust.
1290 (completion_list_add_symbol, completion_list_add_msymbol)
1291 (completion_list_objc_symbol, completion_list_add_fields)
1292 (add_symtab_completions): Likewise.
1293 (default_collect_symbol_completion_matches_break_on)
1294 (collect_file_symbol_completion_matches): Remove sym_text_len
1295 local and don't pass it down.
1296 * symtab.h (completion_list_add_name): Remove
1297 sym_text/sym_text_len parameters.
1298
c62446b1
PA
12992017-11-08 Pedro Alves <palves@redhat.com>
1300
1301 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
1302 unittests/lookup_name_info-selftests.c.
1303 (SUBDIR_UNITTESTS_OBS): Add lookup_name_info-selftests.o.
1304 * cp-support.c: Include "selftest.h".
1305 (cp_remove_params_1): Rename from cp_remove_params. Add
1306 'require_param' parameter, and handle it.
1307 (cp_remove_params): Reimplement.
1308 (cp_remove_params_if_any): New.
1309 (selftests::quote): New.
1310 (selftests::check_remove_params): New.
1311 (selftests::test_cp_remove_params): New.
1312 (_initialize_cp_support): Install
1313 selftests::test_cp_remove_params.
1314 * cp-support.h (cp_remove_params_if_any): Declare.
1315 * dwarf2read.c :Include "selftest.h".
1316 (dw2_expand_symtabs_matching_symbol): Use
1317 lookup_name_info::make_ignore_params.
1318 (selftests::dw2_expand_symtabs_matching::mock_mapped_index)
1319 (selftests::dw2_expand_symtabs_matching::string_or_null)
1320 (selftests::dw2_expand_symtabs_matching::check_match)
1321 (selftests::dw2_expand_symtabs_matching::test_symbols)
1322 (selftests::dw2_expand_symtabs_matching::run_test): New.
1323 (_initialize_dwarf2_read): Register
1324 selftests::dw2_expand_symtabs_matching::run_test.
1325 * psymtab.c (psym_expand_symtabs_matching): Use
1326 lookup_name_info::make_ignore_params.
1327 * symtab.c (demangle_for_lookup_info::demangle_for_lookup_info):
1328 If the lookup name wants to ignore parameters, strip them.
1329 (compare_symbol_name): Remove sym_text/sym_text_len parameters and
1330 code handling '('.
1331 (completion_list_add_name): Don't pass down sym_text/sym_text_len.
1332 (default_collect_symbol_completion_matches_break_on): Don't try to
1333 strip parameters.
1334 * symtab.h (lookup_name_info::lookup_name_info): Add
1335 'ignore_parameters' parameter.
1336 (lookup_name_info::ignore_parameters)
1337 (lookup_name_info::make_ignore_params): New methods.
1338 (lookup_name_info::m_ignore_parameters): New field.
1339 * unittests/lookup_name_info-selftests.c: New file.
1340
61920122
PA
13412017-11-08 Pedro Alves <palves@redhat.com>
1342
1343 * dwarf2read.c (dw2_expand_marked_cus)
1344 (dw2_expand_symtabs_matching_symbol): Remove forward declarations.
1345 (dw2_expand_symtabs_matching): Move further below.
1346 (dw2_expand_marked_cus): Reindent.
1347
3f563c84
PA
13482017-11-08 Pedro Alves <palves@redhat.com>
1349
1350 * dwarf2read.c (byte_swap, MAYBE_SWAP): Move higher up in file.
1351 (struct name_component): New.
1352 (mapped_index::name_components): New field.
1353 (mapped_index::symbol_name_at): New method.
1354 (dwarf2_read_index): Call mapped_index ctor.
1355 (dw2_map_matching_symbols): Add comment about name_components
1356 table.
1357 (dw2_expand_symtabs_matching): Factor part to...
1358 (dw2_expand_symtabs_matching_symbol): ... this new function.
1359 Build name components table, and lookup symbols in it before
1360 calling the name matcher.
1361 (dw2_expand_marked_cus): New, factored out from
1362 dw2_expand_symtabs_matching.
1363 (dwarf2_per_objfile_free): Call the mapped_index's dtor.
1364
b5ec771e
PA
13652017-11-08 Pedro Alves <palves@redhat.com>
1366
1367 * ada-lang.c (ada_encode): Rename to ..
1368 (ada_encode_1): ... this. Add throw_errors parameter and handle
1369 it.
1370 (ada_encode): Reimplement.
1371 (match_name): Delete, folded into full_name.
1372 (resolve_subexp): No longer pass the encoded name to
1373 ada_lookup_symbol_list.
1374 (should_use_wild_match): Delete.
1375 (name_match_type_from_name): New.
1376 (ada_lookup_simple_minsym): Use lookup_name_info and the
1377 language's symbol_name_matcher_ftype.
1378 (add_symbols_from_enclosing_procs, ada_add_local_symbols)
1379 (ada_add_block_renamings): Adjust to use lookup_name_info.
1380 (ada_lookup_name): New.
1381 (add_nonlocal_symbols, ada_add_all_symbols)
1382 (ada_lookup_symbol_list_worker, ada_lookup_symbol_list)
1383 (ada_iterate_over_symbols): Adjust to use lookup_name_info.
1384 (ada_name_for_lookup): Delete.
1385 (ada_lookup_encoded_symbol): Construct a verbatim name.
1386 (wild_match): Reverse sense of return type. Use bool.
1387 (full_match): Reverse sense of return type. Inline bits of old
1388 match_name here.
1389 (ada_add_block_symbols): Adjust to use lookup_name_info.
1390 (symbol_completion_match): Delete, folded into...
1391 (ada_lookup_name_info::matches): ... .this new method.
1392 (symbol_completion_add): Delete.
1393 (ada_collect_symbol_completion_matches): Add name_match_type
1394 parameter. Adjust to use lookup_name_info and
1395 completion_list_add_name.
1396 (get_var_value, ada_add_global_exceptions): Adjust to use
1397 lookup_name_info.
1398 (ada_get_symbol_name_cmp): Delete.
1399 (do_wild_match, do_full_match): New functions.
1400 (ada_lookup_name_info::ada_lookup_name_info): New method.
1401 (ada_symbol_name_matches, ada_get_symbol_name_matcher): New
1402 functions.
1403 (ada_language_defn): Install ada_get_symbol_name_matcher.
1404 * ada-lex.l (processId): If name starts with '<', copy it
1405 verbatim.
1406 * block.c (block_iter_match_step, block_iter_match_first)
1407 (block_iter_match_next, block_lookup_symbol)
1408 (block_lookup_symbol_primary, block_find_symbol): Adjust to use
1409 lookup_name_info.
1410 * block.h (block_iter_match_first, block_iter_match_next)
1411 (ALL_BLOCK_SYMBOLS_WITH_NAME): Adjust to use lookup_name_info.
1412 * c-lang.c (c_language_defn, cplus_language_defn)
1413 (asm_language_defn, minimal_language_defn): Adjust comments to
1414 refer to la_get_symbol_name_matcher.
1415 * completer.c (complete_files_symbols)
1416 (collect_explicit_location_matches, symbol_completer): Pass a
1417 symbol_name_match_type down.
1418 * completer.h (class completion_match, completion_match_result):
1419 New classes.
1420 (completion_tracker::reset_completion_match_result): New method.
1421 (completion_tracker::m_completion_match_result): New field.
1422 * cp-support.c (make_symbol_overload_list_block): Adjust to use
1423 lookup_name_info.
1424 (cp_fq_symbol_name_matches, cp_get_symbol_name_matcher): New
1425 functions.
1426 * cp-support.h (cp_get_symbol_name_matcher): New declaration.
1427 * d-lang.c: Adjust comments to refer to
1428 la_get_symbol_name_matcher.
1429 * dictionary.c (dict_vector) <iter_match_first, iter_match_next>:
1430 Adjust to use lookup_name_info.
1431 (dict_iter_match_first, dict_iter_match_next)
1432 (iter_match_first_hashed, iter_match_next_hashed)
1433 (iter_match_first_linear, iter_match_next_linear): Adjust to work
1434 with a lookup_name_info.
1435 * dictionary.h (dict_iter_match_first, dict_iter_match_next):
1436 Likewise.
1437 * dwarf2read.c (dw2_lookup_symbol): Adjust to use lookup_name_info.
1438 (dw2_map_matching_symbols): Adjust to use symbol_name_match_type.
1439 (gdb_index_symbol_name_matcher): New class.
1440 (dw2_expand_symtabs_matching) Adjust to use lookup_name_info and
1441 gdb_index_symbol_name_matcher. Accept a NULL symbol_matcher.
1442 * f-lang.c (f_collect_symbol_completion_matches): Adjust to work
1443 with a symbol_name_match_type.
1444 (f_language_defn): Adjust comments to refer to
1445 la_get_symbol_name_matcher.
1446 * go-lang.c (go_language_defn): Adjust comments to refer to
1447 la_get_symbol_name_matcher.
1448 * language.c (default_symbol_name_matcher)
1449 (language_get_symbol_name_matcher): New functions.
1450 (unknown_language_defn, auto_language_defn): Adjust comments to
1451 refer to la_get_symbol_name_matcher.
1452 * language.h (symbol_name_cmp_ftype): Delete.
1453 (language_defn) <la_collect_symbol_completion_matches>: Add match
1454 type parameter.
1455 <la_get_symbol_name_cmp>: Delete field.
1456 <la_get_symbol_name_matcher>: New field.
1457 <la_iterate_over_symbols>: Adjust to use lookup_name_info.
1458 (default_symbol_name_matcher, language_get_symbol_name_matcher):
1459 Declare.
1460 * linespec.c (iterate_over_all_matching_symtabs)
1461 (iterate_over_file_blocks): Adjust to use lookup_name_info.
1462 (find_methods): Add language parameter, and use lookup_name_info
1463 and the language's symbol_name_matcher_ftype.
1464 (linespec_complete_function): Adjust.
1465 (lookup_prefix_sym): Use lookup_name_info.
1466 (add_all_symbol_names_from_pspace): Adjust.
1467 (find_superclass_methods): Add language parameter and pass it
1468 down.
1469 (find_method): Pass symbol language down.
1470 (find_linespec_symbols): Don't demangle or Ada encode here.
1471 (search_minsyms_for_name): Add lookup_name_info parameter.
1472 (add_matching_symbols_to_info): Add name_match_type parameter.
1473 Use lookup_name_info.
1474 * m2-lang.c (m2_language_defn): Adjust comments to refer to
1475 la_get_symbol_name_matcher.
1476 * minsyms.c: Include <algorithm>.
1477 (add_minsym_to_demangled_hash_table): Remove table parameter and
1478 add objfile parameter. Use search_name_hash, and add language to
1479 demangled languages vector.
1480 (struct found_minimal_symbols): New struct.
1481 (lookup_minimal_symbol_mangled, lookup_minimal_symbol_demangled):
1482 New functions.
1483 (lookup_minimal_symbol): Adjust to use them. Don't canonicalize
1484 input names here. Use lookup_name_info instead. Lookup up
1485 demangled names once for each language in the demangled names
1486 vector.
1487 (iterate_over_minimal_symbols): Use lookup_name_info. Lookup up
1488 demangled names once for each language in the demangled names
1489 vector.
1490 (build_minimal_symbol_hash_tables): Adjust.
1491 * minsyms.h (iterate_over_minimal_symbols): Adjust to pass down a
1492 lookup_name_info.
1493 * objc-lang.c (objc_language_defn): Adjust comment to refer to
1494 la_get_symbol_name_matcher.
1495 * objfiles.h: Include <vector>.
1496 (objfile_per_bfd_storage) <demangled_hash_languages>: New field.
1497 * opencl-lang.c (opencl_language_defn): Adjust comment to refer to
1498 la_get_symbol_name_matcher.
1499 * p-lang.c (pascal_language_defn): Adjust comment to refer to
1500 la_get_symbol_name_matcher.
1501 * psymtab.c (psym_lookup_symbol): Use lookup_name_info.
1502 (match_partial_symbol): Use symbol_name_match_type,
1503 lookup_name_info and psymbol_name_matches.
1504 (lookup_partial_symbol): Use lookup_name_info.
1505 (map_block): Use symbol_name_match_type and lookup_name_info.
1506 (psym_map_matching_symbols): Use symbol_name_match_type.
1507 (psymbol_name_matches): New.
1508 (recursively_search_psymtabs): Use lookup_name_info and
1509 psymbol_name_matches. Rename 'kind' parameter to 'domain'.
1510 (psym_expand_symtabs_matching): Use lookup_name_info. Rename
1511 'kind' parameter to 'domain'.
1512 * rust-lang.c (rust_language_defn): Adjust comment to refer to
1513 la_get_symbol_name_matcher.
1514 * symfile-debug.c (debug_qf_map_matching_symbols)
1515 (debug_qf_map_matching_symbols): Use symbol_name_match_type.
1516 (debug_qf_expand_symtabs_matching): Use lookup_name_info.
1517 * symfile.c (expand_symtabs_matching): Use lookup_name_info.
1518 * symfile.h (quick_symbol_functions) <map_matching_symbols>:
1519 Adjust to use symbol_name_match_type.
1520 <expand_symtabs_matching>: Adjust to use lookup_name_info.
1521 (expand_symtabs_matching): Adjust to use lookup_name_info.
1522 * symmisc.c (maintenance_expand_symtabs): Use
1523 lookup_name_info::match_any ().
1524 * symtab.c (symbol_matches_search_name): New.
1525 (eq_symbol_entry): Adjust to use lookup_name_info and the
1526 language's matcher.
1527 (demangle_for_lookup_info::demangle_for_lookup_info): New.
1528 (lookup_name_info::match_any): New.
1529 (iterate_over_symbols, search_symbols): Use lookup_name_info.
1530 (compare_symbol_name): Add language, lookup_name_info and
1531 completion_match_result parameters, and use them.
1532 (completion_list_add_name): Make extern. Add language and
1533 lookup_name_info parameters. Use them.
1534 (completion_list_add_symbol, completion_list_add_msymbol)
1535 (completion_list_objc_symbol): Add lookup_name_info parameters and
1536 adjust. Pass down language.
1537 (completion_list_add_fields): Add lookup_name_info parameters and
1538 adjust. Pass down language.
1539 (add_symtab_completions): Add lookup_name_info parameters and
1540 adjust.
1541 (default_collect_symbol_completion_matches_break_on): Add
1542 name_match_type parameter, and use it. Use lookup_name_info.
1543 (default_collect_symbol_completion_matches)
1544 (collect_symbol_completion_matches): Add name_match_type
1545 parameter, and pass it down.
1546 (collect_symbol_completion_matches_type): Adjust.
1547 (collect_file_symbol_completion_matches): Add name_match_type
1548 parameter, and use lookup_name_info.
1549 * symtab.h: Include <string> and "common/gdb_optional.h".
1550 (enum class symbol_name_match_type): New.
1551 (class ada_lookup_name_info): New.
1552 (struct demangle_for_lookup_info): New.
1553 (class lookup_name_info): New.
1554 (symbol_name_matcher_ftype): New.
1555 (SYMBOL_MATCHES_SEARCH_NAME): Use symbol_matches_search_name.
1556 (symbol_matches_search_name): Declare.
1557 (MSYMBOL_MATCHES_SEARCH_NAME): Delete.
1558 (default_collect_symbol_completion_matches)
1559 (collect_symbol_completion_matches)
1560 (collect_file_symbol_completion_matches): Add name_match_type
1561 parameter.
1562 (iterate_over_symbols): Use lookup_name_info.
1563 (completion_list_add_name): Declare.
1564 * utils.c (enum class strncmp_iw_mode): Moved to utils.h.
1565 (strncmp_iw_with_mode): Now extern.
1566 * utils.h (enum class strncmp_iw_mode): Moved from utils.c.
1567 (strncmp_iw_with_mode): Declare.
1568
5ffa0793
PA
15692017-11-08 Keith Seitz <keiths@redhat.com>
1570 Pedro Alves <palves@redhat.com>
1571
1572 * ada-lang.c (ada_language_defn): Install
1573 default_search_name_hash.
1574 * buildsym.c (struct buildsym_compunit): <language>: New field.
1575 (finish_block_internal): Pass language when creating dictionaries.
1576 (start_buildsym_compunit, start_symtab): New language parameters.
1577 Use them.
1578 (restart_symtab): Pass down compilation unit's language.
1579 * buildsym.h (enum language): Forward declare.
1580 (start_symtab): New 'language' parameter.
1581 * c-lang.c (c_language_defn, cplus_language_defn)
1582 (asm_language_defn, minimal_language_defn): Install
1583 default_search_name_hash.
1584 * coffread.c (coff_start_symtab): Adjust.
1585 * d-lang.c (d_language_defn): Install default_search_name_hash.
1586 * dbxread.c (struct symloc): Add 'pst_language' field.
1587 (PST_LANGUAGE): Define.
1588 (start_psymtab, read_ofile_symtab): Use it.
1589 (process_one_symbol): New 'language' parameter. Pass it down.
1590 * dictionary.c (struct dictionary) <language>: New field.
1591 (DICT_LANGUAGE): Define.
1592 (dict_create_hashed, dict_create_hashed_expandable)
1593 (dict_create_linear, dict_create_linear_expandable): New parameter
1594 'language'. Set the dictionary's language.
1595 (iter_match_first_hashed): Adjust to rename.
1596 (insert_symbol_hashed): Assert we don't see mismatching
1597 languages. Adjust to rename.
1598 (dict_hash): Rename to ...
1599 (default_search_name_hash): ... this and make extern.
1600 * dictionary.h (struct language_defn): Forward declare.
1601 (dict_create_hashed): New parameter 'language'.
1602 * dwarf2read.c (dwarf2_start_symtab): Pass down language.
1603 * f-lang.c (f_language_defn): Install default_search_name_hash.
1604 * go-lang.c (go_language_defn): Install default_search_name_hash.
1605 * jit.c (finalize_symtab): Pass compunit's language to dictionary
1606 creation.
1607 * language.c (unknown_language_defn, auto_language_defn):
1608 * language.h (language_defn::la_search_name_hash): New field.
1609 (default_search_name_hash): Declare.
1610 * m2-lang.c (m2_language_defn): Install default_search_name_hash.
1611 * mdebugread.c (new_block): New parameter 'language'.
1612 * mdebugread.c (parse_symbol): Pass symbol language to block
1613 allocation.
1614 (psymtab_to_symtab_1): Pass down language.
1615 (new_symtab): Pass compunit's language to block allocation.
1616 * objc-lang.c (objc_language_defn): Install
1617 default_search_name_hash.
1618 * opencl-lang.c (opencl_language_defn):
1619 * p-lang.c (pascal_language_defn): Install
1620 default_search_name_hash.
1621 * rust-lang.c (rust_language_defn): Install
1622 default_search_name_hash.
1623 * stabsread.h (enum language): Forward declare.
1624 (process_one_symbol): Add 'language' parameter.
1625 * symtab.c (search_name_hash): New function.
1626 * symtab.h (search_name_hash): Declare.
1627 * xcoffread.c (read_xcoff_symtab): Pass language to start_symtab.
1628
2a1dde5d
PA
16292017-11-08 Pedro Alves <palves@redhat.com>
1630
1631 * cp-name-parser.y (main): Don't initialize extra_chars.
1632
95a6b0a1
TT
16332017-11-07 Tom Tromey <tom@tromey.com>
1634
1635 * event-top.h (command_handler): Constify.
1636 * record-full.c (cmd_record_full_start): Update.
1637 * thread.c (thread_apply_all_command): Update.
1638 * printcmd.c (eval_command): Update.
1639 * mi/mi-main.c (mi_execute_cli_command): Update.
1640 (mi_execute_async_cli_command): Update.
1641 * tui/tui-stack.c (tui_update_command): Update.
1642 * cli/cli-interp.c (safe_execute_command): Constify.
1643 * record.c (record_start): Update.
1644 (record_start, record_stop, cmd_record_start): Update.
1645 * record-btrace.c (cmd_record_btrace_bts_start): Update.
1646 (cmd_record_btrace_pt_start): Update.
1647 (cmd_record_btrace_start): Update.
1648 (cmd_record_btrace_start): Update.
1649 * reverse.c (exec_reverse_once): Update.
1650 * python/python.c (execute_gdb_command): Don't copy the command.
1651 * event-top.c (command_line_handler): Update.
1652 (command_handler): Constify.
1653 * defs.h (deprecated_call_command_hook): Constify.
1654 * cli/cli-script.h (execute_user_command): Constify.
1655 * cli/cli-script.c (execute_user_command): Constify.
1656 (execute_cmd_pre_hook, execute_cmd_post_hook): Constify.
1657 (enum command_control_type): Update.
1658 * main.c (catch_command_errors): Remove non-const overload.
1659 (catch_command_errors_ftype): Remove.
1660 * python/py-cmd.c (cmdpy_function): Constify.
1661 * guile/scm-cmd.c (cmdscm_function): Constify.
1662 * cli/cli-dump.c (call_dump_func): Constify.
1663 * cli/cli-decode.c (do_const_cfunc): Constify.
1664 (do_sfunc): Constify.
1665 (cmd_func): Constify.
1666 * gdbcmd.h (execute_command, execute_command_to_string): Constify.
1667 * top.h (execute_command): Constify.
1668 * top.c (execute_command): Constify.
1669 (execute_command_to_string): Constify.
1670 (deprecated_call_command_hook): Constify.
1671 * command.h (cmd_func): Constify.
1672 * cli/cli-decode.h (struct cmd_list_element) <func>: Constify.
1673
eb4c3f4a
TT
16742017-11-07 Tom Tromey <tom@tromey.com>
1675
1676 * ada-lang.c (catch_ada_exception_command): Constify.
1677 (catch_assert_command): Constify.
1678 * break-catch-throw.c (catch_catch_command, catch_throw_command)
1679 (catch_rethrow_command): Constify.
1680 (catch_exception_command_1): Constify.
1681 * breakpoint.h (add_catch_command): Constify.
1682 * break-catch-syscall.c (catch_syscall_command_1): Constify.
1683 (catch_syscall_split_args): Constify.
1684 * break-catch-sig.c (catch_signal_command): Constify.
1685 (catch_signal_split_args): Constify.
1686 * cli/cli-decode.h (struct cmd_list_element) <function>: Use
1687 cmd_const_sfunc_ftype.
1688 * cli/cli-decode.c (add_setshow_cmd_full): Constify.
1689 (add_setshow_enum_cmd, add_setshow_auto_boolean_cmd)
1690 (add_setshow_boolean_cmd, add_setshow_filename_cmd)
1691 (add_setshow_string_cmd, struct cmd_list_element)
1692 (add_setshow_optional_filename_cmd, add_setshow_integer_cmd)
1693 (add_setshow_uinteger_cmd, add_setshow_zinteger_cmd)
1694 (add_setshow_zuinteger_unlimited_cmd, add_setshow_zuinteger_cmd):
1695 Constify.
1696 (set_cmd_sfunc): Constify.
1697 (empty_sfunc): Constify.
1698 * command.h (add_setshow_enum_cmd, add_setshow_auto_boolean_cmd)
1699 (add_setshow_boolean_cmd, add_setshow_filename_cmd)
1700 (add_setshow_string_cmd, add_setshow_string_noescape_cmd)
1701 (add_setshow_optional_filename_cmd, add_setshow_integer_cmd)
1702 (add_setshow_uinteger_cmd, add_setshow_zinteger_cmd)
1703 (add_setshow_zuinteger_cmd, add_setshow_zuinteger_unlimited_cmd):
1704 Constify.
1705 (set_cmd_sfunc): Constify.
1706 (cmd_sfunc_ftype): Remove.
1707 * compile/compile.c (set_compile_args): Constify.
1708 * infrun.c (set_disable_randomization): Constify.
1709 * infcmd.c (set_args_command, set_cwd_command): Constify.
1710 * breakpoint.c (set_condition_evaluation_mode): Constify.
1711 (add_catch_command): Constify.
1712 (catch_fork_command_1, catch_exec_command_1)
1713 (catch_load_command_1, catch_unload_command_1): Constify.
1714 (catch_load_or_unload): Constify.
1715 * guile/scm-param.c (pascm_set_func): Constify.
1716 (add_setshow_generic): Constify.
1717 * python/py-param.c (get_set_value): Constify.
1718 * top.h (set_verbose): Constify.
1719 * tui/tui-win.c (tui_set_var_cmd): Constify.
1720 * mi/mi-main.c (set_mi_async_command): Constify.
1721 * cli/cli-logging.c (set_logging_overwrite)
1722 (set_logging_redirect): Constify.
1723 * value.c (set_max_value_size): Constify.
1724 * valprint.c (set_input_radix, set_output_radix): Constify.
1725 * utils.c (set_width_command, set_height_command): Constify.
1726 * typeprint.c (set_print_type_methods, set_print_type_typedefs): Constify.
1727 * tracepoint.c (set_disconnected_tracing)
1728 (set_circular_trace_buffer, set_trace_buffer_size)
1729 (set_trace_user, set_trace_notes, set_trace_stop_notes): Constify.
1730 * top.c (set_history_size_command, set_verbose, set_editing)
1731 (set_gdb_datadir, set_history_filename): Constify.
1732 * target.c (set_targetdebug, maint_set_target_async_command)
1733 (maint_set_target_non_stop_command, set_target_permissions)
1734 (set_write_memory_permission): Constify.
1735 (open_target): Constify.
1736 * target-descriptions.c (set_tdesc_filename_cmd): Constify.
1737 * target-dcache.c (set_stack_cache, set_code_cache): Constify.
1738 * symtab.c (set_symbol_cache_size_handler): Constify.
1739 * symfile.c (set_ext_lang_command): Constify.
1740 * symfile-debug.c (set_debug_symfile): Constify.
1741 * source.c (set_directories_command): Constify.
1742 * solib.c (reload_shared_libraries, gdb_sysroot_changed): Constify.
1743 * serial.c (set_parity): Constify.
1744 * rs6000-tdep.c (powerpc_set_soft_float, powerpc_set_vector_abi): Constify.
1745 * remote.c (set_remote_exec_file, set_remotebreak)
1746 (set_remote_protocol_Z_packet_cmd, set_range_stepping): Constify.
1747 * record.c (set_record_insn_history_size)
1748 (set_record_call_history_size): Constify.
1749 * record-full.c (set_record_full_insn_max_num): Constify.
1750 * proc-api.c (set_procfs_trace_cmd, set_procfs_file_cmd): Constify.
1751 * osabi.c (set_osabi): Constify.
1752 * mips-tdep.c (set_mips64_transfers_32bit_regs)
1753 (reinit_frame_cache_sfunc, mips_abi_update): Constify.
1754 * maint.c (maintenance_set_profile_cmd): Constify.
1755 * linux-thread-db.c (set_libthread_db_search_path): Constify.
1756 * language.c (set_language_command, set_range_command)
1757 (set_case_command): Constify.
1758 * infrun.c (set_non_stop, set_observer_mode)
1759 (set_stop_on_solib_events, set_schedlock_func)
1760 (set_exec_direction_func): Constify.
1761 * infcmd.c (set_inferior_tty_command): Constify.
1762 * disasm.c (set_disassembler_options_sfunc): Constify.
1763 * demangle.c (set_demangling_command): Constify.
1764 * dcache.c (set_dcache_size, set_dcache_line_size): Constify.
1765 * cris-tdep.c (set_cris_version, set_cris_mode)
1766 (set_cris_dwarf2_cfi): Constify.
1767 * corefile.c (set_gnutarget_command): Constify.
1768 * charset.c (set_host_charset_sfunc, set_target_charset_sfunc)
1769 (set_target_wide_charset_sfunc): Constify.
1770 * breakpoint.c (update_dprintf_commands): Constify.
1771 * auto-load.c (set_auto_load_dir, set_auto_load_safe_path): Constify.
1772 * arm-tdep.c (set_fp_model_sfunc, arm_set_abi)
1773 (set_disassembly_style_sfunc): Constify.
1774 * arch-utils.c (set_endian, set_architecture): Constify.
1775 * alpha-tdep.c (reinit_frame_cache_sfunc): Constify.
1776 * agent.c (set_can_use_agent): Constify.
1777
5fed81ff
TT
17782017-11-07 Tom Tromey <tom@tromey.com>
1779
1780 * go32-nat.c (go32_sysinfo, go32_sldt, go32_sgdt, go32_sidt)
1781 (go32_pde, go32_pte, go32_pte_for_address): Constify.
1782 * gnu-nat.c (_parse_bool_arg, show_thread_default_pause_cmd)
1783 (set_thread_default_pause_cmd, set_thread_default_run_cmd)
1784 (show_thread_default_run_cmd, set_thread_default_detach_sc_cmd)
1785 (parse_int_arg, show_thread_default_detach_sc_cmd)
1786 (set_signals_cmd, show_signals_cmd, set_sig_thread_cmd)
1787 (show_sig_thread_cmd, set_stopped_cmd, show_stopped_cmd)
1788 (set_exceptions_cmd, show_exceptions_cmd, set_task_pause_cmd)
1789 (show_task_pause_cmd, set_task_detach_sc_cmd)
1790 (show_task_detach_sc_cmd, set_task_exc_port_cmd)
1791 (set_noninvasive_cmd, set_thread_pause_cmd)
1792 (show_thread_pause_cmd, set_thread_run_cmd, show_thread_run_cmd)
1793 (set_thread_detach_sc_cmd, show_thread_detach_sc_cmd)
1794 (set_thread_exc_port_cmd, thread_takeover_sc_cmd): Constify.
1795 * windows-nat.c (display_selectors): Constify.
1796 * cli/cli-decode.h (struct cmd_list_element) <function>: Remove
1797 non-const "cfunc".
1798 * cli/cli-decode.c (set_cmd_cfunc): Remove non-const overload.
1799 (cmd_cfunc_eq): Likewise.
1800 (struct cmd_list_element): Likewise.
1801 (do_cfunc): Remove.
1802 (cli_user_command_p): Update.
1803 * command.h (add_cmd): Remove non-const overload.
1804 (cmd_cfunc_ftype): Remove typedef.
1805 (cmd_cfunc_eq): Remove non-const overload.
1806 * value.c (show_values): Constify.
1807 * thread.c (thread_apply_all_command): Constify.
1808 * symfile.c (load_command): Constify.
1809 * source.c (directory_command): Constify.
1810 * maint.c (maintenance_internal_error)
1811 (maintenance_demangler_warning, maintenance_space_display)
1812 (maintenance_print_architecture, maintenance_translate_address)
1813 (maintenance_info_selftests, maintenance_internal_warning):
1814 Constify.
1815 * breakpoint.c (disable_trace_command, enable_trace_command):
1816 Constify.
1817 * auto-load.c (info_auto_load_local_gdbinit, add_auto_load_dir):
1818 Constify.
1819 (add_auto_load_safe_path): Constify.
1820 * guile/scm-auto-load.c (info_auto_load_guile_scripts): Constify.
1821 * top.h (show_commands): Constify.
1822 * linux-thread-db.c (info_auto_load_libthread_db): Constify.
1823 * sparc64-tdep.c (adi_examine_command): Constify.
1824 (adi_assign_command): Constify.
1825
1d12d88f
TT
18262017-11-07 Tom Tromey <tom@tromey.com>
1827
1828 * frame.h (info_locals_command, info_args_command): Constify.
1829 * auto-load.h (auto_load_info_scripts): Constify.
1830 * inferior.h (registers_info): Constify.
1831 * copying.c: Rebuild.
1832 * copying.awk: Constify generated commands.
1833 * auto-load.c (auto_load_info_scripts)
1834 (info_auto_load_gdb_scripts): Constify.
1835 * cli/cli-decode.c (struct cmd_list_element): Take a
1836 cmd_const_cfunc_ftype.
1837 * command.h (add_info): Take a cmd_const_cfunc_ftype.
1838 * tui/tui-win.c (tui_all_windows_info): Constify.
1839 * python/py-auto-load.c (info_auto_load_python_scripts):
1840 Constify.
1841 * cli/cli-cmds.c (show_command): Remove non-const overload.
1842 * tracepoint.c (info_tvariables_command, info_scope_command):
1843 Constify.
1844 (info_static_tracepoint_markers_command): Constify.
1845 * thread.c (info_threads_command): Constify.
1846 (print_thread_info_1): Constify.
1847 * target.c (info_target_command): Constify.
1848 * symtab.c (info_sources_command, info_functions_command)
1849 (info_types_command): Constify.
1850 (info_variables_command): Remove non-const overload.
1851 * symfile.c (info_ext_lang_command): Constify.
1852 * stack.c (info_frame_command, info_locals_command)
1853 (info_args_command): Constify.
1854 (backtrace_command): Remove non-const overload.
1855 * source.c (info_source_command, info_line_command): Constify.
1856 * solib.c (info_sharedlibrary_command): Constify.
1857 * skip.c (info_skip_command): Constify.
1858 * ser-go32.c (info_serial_command): Constify.
1859 * reverse.c (info_bookmarks_command): Constify.
1860 * printcmd.c (info_symbol_command, info_address_command)
1861 (info_display_command): Constify.
1862 * osdata.c (info_osdata_command): Constify.
1863 * objc-lang.c (info_selectors_command, info_classes_command):
1864 Constify.
1865 * nto-procfs.c (procfs_pidlist, procfs_meminfo): Constify.
1866 * memattr.c (info_mem_command): Constify.
1867 * macrocmd.c (info_macro_command, info_macros_command): Constify.
1868 * linux-fork.c (info_checkpoints_command): Constify.
1869 * infrun.c (info_signals_command): Constify.
1870 * inflow.c (info_terminal_command): Constify.
1871 * inferior.c (info_inferiors_command): Constify.
1872 (print_inferior): Constify.
1873 * infcmd.c (info_program_command, info_all_registers_command)
1874 (info_registers_command, info_vector_command)
1875 (info_float_command): Constify.
1876 (registers_info): Constify.
1877 * gnu-nat.c (info_send_rights_cmd, info_recv_rights_cmd)
1878 (info_port_sets_cmd, info_dead_names_cmd, info_port_rights_cmd):
1879 Constify.
1880 * f-valprint.c (info_common_command): Constify.
1881 * dcache.c (info_dcache_command): Constify.
1882 (dcache_info_1): Constify.
1883 * darwin-nat-info.c (info_mach_tasks_command)
1884 (info_mach_task_command, info_mach_ports_command)
1885 (info_mach_port_command, info_mach_threads_command)
1886 (info_mach_thread_command, info_mach_regions_command)
1887 (info_mach_regions_recurse_command, info_mach_region_command)
1888 (info_mach_exceptions_command): Constify.
1889 (get_task_from_args): Constify.
1890 * cp-support.c (info_vtbl_command): Constify.
1891 * breakpoint.c (info_watchpoints_command)
1892 (info_tracepoints_command): Constify.
1893 (info_breakpoints_command): Remove non-const overload.
1894 * avr-tdep.c (avr_io_reg_read_command): Constify.
1895 * auxv.c (info_auxv_command): Constify.
1896 * ada-tasks.c (info_tasks_command): Constify.
1897 (info_task): Constify.
1898 * ada-lang.c (info_exceptions_command): Constify.
1899
0b39b52e
TT
19002017-11-07 Tom Tromey <tom@tromey.com>
1901
1902 * solib.h (no_shared_libraries): Constify.
1903 * frame.h (return_command): Constify.
1904 * cli/cli-cmds.h (quit_command): Constify.
1905 * top.h (quit_command, execute_command): Constify.
1906 * target.h (flash_erase_command): Constify.
1907 * inferior.h (set_inferior_args, attach_command): Constify.
1908 * tracepoint.h (start_tracing, stop_tracing): Constify.
1909 * breakpoint.h (break_command, tbreak_command)
1910 (hbreak_command_wrapper, thbreak_command_wrapper)
1911 (rbreak_command_wrapper, watch_command_wrapper)
1912 (awatch_command_wrapper, rwatch_command_wrapper)
1913 (get_tracepoint_by_number): Constify.
1914 * symtab.c (info_variables_command, rbreak_command)
1915 (symtab_symbol_info): Constify.
1916 (info_variables_command): Add non-const overload.
1917 * top.c (dont_repeat_command): Constify.
1918 * breakpoint.c (ignore_command, commands_command)
1919 (condition_command, tbreak_command, hbreak_command)
1920 (thbreak_command, clear_command, break_command)
1921 (info_breakpoints_command, watch_command, rwatch_command)
1922 (awatch_command, trace_command, ftrace_command, strace_command)
1923 (trace_pass_command, break_range_command, dprintf_command)
1924 (agent_printf_command, get_tracepoint_by_number)
1925 (watch_maybe_just_location, trace_pass_command): Constify.
1926 (info_breakpoints_command): Add non-const overload.
1927 * tracefile.c (tsave_command): Constify.
1928 * infcmd.c (attach_command, disconnect_command, signal_command)
1929 (queue_signal_command, stepi_command, nexti_command)
1930 (finish_command, next_command, step_command, until_command)
1931 (advance_command, jump_command, continue_command, run_command)
1932 (start_command, starti_command, interrupt_command)
1933 (run_command_1, set_inferior_args, step_1): Constify.
1934 * inferior.c (add_inferior_command, remove_inferior_command)
1935 (clone_inferior_command): Constify.
1936 * linux-fork.c (checkpoint_command, restart_command): Constify.
1937 * windows-nat.c (signal_event_command): Constify.
1938 * guile/guile.c (guile_repl_command, guile_command): Constify.
1939 * printcmd.c (x_command, display_command, printf_command)
1940 (output_command, set_command, call_command, print_command)
1941 (eval_command): Constify.
1942 (non_const_set_command): Remove.
1943 (_initialize_printcmd): Update.
1944 * source.c (forward_search_command, reverse_search_command):
1945 Constify.
1946 * jit.c (jit_reader_load_command, jit_reader_unload_command):
1947 Constify.
1948 * infrun.c (handle_command): Constify.
1949 * memattr.c (mem_command): Constify.
1950 * stack.c (return_command, up_command, up_silently_command)
1951 (down_command, down_silently_command, frame_command)
1952 (backtrace_command, func_command, backtrace_command_1): Constify.
1953 (backtrace_command): Add non-const overload.
1954 * remote-sim.c (simulator_command): Constify.
1955 * exec.c (set_section_command): Constify.
1956 * tracepoint.c (tdump_command, trace_variable_command)
1957 (tstatus_command, tstop_command, tstart_command)
1958 (end_actions_pseudocommand, while_stepping_pseudocommand)
1959 (collect_pseudocommand, teval_pseudocommand, actions_command)
1960 (start_tracing, stop_tracing): Constify.
1961 * value.c (init_if_undefined_command): Constify.
1962 * tui/tui-stack.c (tui_update_command): Constify.
1963 * tui/tui-win.c (tui_refresh_all_command)
1964 (tui_set_tab_width_command, tui_set_win_height_command)
1965 (tui_set_focus_command, tui_scroll_forward_command)
1966 (tui_scroll_backward_command, tui_scroll_left_command)
1967 (tui_scroll_right_command, parse_scrolling_args, tui_set_focus)
1968 (tui_set_win_height): Constify.
1969 * tui/tui-layout.c (tui_layout_command): Constify.
1970 * procfs.c (proc_trace_syscalls, proc_trace_sysentry_cmd)
1971 (proc_trace_sysexit_cmd, proc_untrace_sysentry_cmd)
1972 (proc_untrace_sysexit_cmd): Constify.
1973 * remote.c (threadlist_test_cmd, threadinfo_test_cmd)
1974 (threadset_test_cmd, threadlist_update_test_cmd)
1975 (threadalive_test): Constify.
1976 * objc-lang.c (print_object_command): Constify.
1977 * command.h (add_com): Constify.
1978 * cli/cli-dump.c (restore_command): Constify.
1979 * cli/cli-cmds.c (pwd_command, echo_command, quit_command)
1980 (help_command, complete_command, shell_command, edit_command)
1981 (list_command, disassemble_command, make_command)
1982 (apropos_command, alias_command): Constify.
1983 * cli/cli-script.c (document_command, define_command)
1984 (while_command, if_command, validate_comname): Constify.
1985 * cli/cli-decode.c (struct cmd_list_element): Change type of
1986 "fun".
1987 * target.c (do_monitor_command, flash_erase_command): Constify.
1988 * regcache.c (reg_flush_command): Constify.
1989 * reverse.c (reverse_step, reverse_next, reverse_stepi)
1990 (reverse_nexti, reverse_continue, reverse_finish)
1991 (save_bookmark_command, goto_bookmark_command)
1992 (exec_reverse_once): Constify.
1993 * python/python.c (python_interactive_command, python_command):
1994 Constify.
1995 * typeprint.c (ptype_command, whatis_command, whatis_exp):
1996 Constify.
1997 * solib.c (sharedlibrary_command, no_shared_libraries): Constify.
1998 * gcore.c (gcore_command): Constify.
1999
85c4be7c
TT
20002017-11-07 Tom Tromey <tom@tromey.com>
2001
2002 * printcmd.c (x_command): Call set_repeat_arguments.
2003 * cli/cli-cmds.c (list_command): Call set_repeat_arguments.
2004 * top.c (repeat_arguments): New global.
2005 (set_repeat_arguments): New function.
2006 (execute_command): Handle repeat_arguments.
2007 (show_commands): Calls set_repeat_arguments.
2008 * command.h (set_repeat_arguments): Declare.
2009
022643b4
TT
20102017-11-07 Tom Tromey <tom@tromey.com>
2011
2012 * stack.c (backtrace_command): Use std::string.
2013 (backtrace_command_1): Make "count_exp" const.
2014
5614fb77
TT
20152017-11-07 Tom Tromey <tom@tromey.com>
2016
2017 * source.c (directory_switch, mod_path, add_path): Constify.
2018 * defs.h (add_path, mod_path, directory_switch): Constify.
2019 * mi/mi-cmd-env.c (env_mod_path): Constify.
2020
6be9a197
TT
20212017-11-07 Tom Tromey <tom@tromey.com>
2022
2023 * infcmd.c (strip_bg_char): Return gdb::unique_xmalloc_ptr.
2024 (run_command_1, continue_command, step_1, jump_command)
2025 (signal_command, until_command, advance_command, finish_command)
2026 (attach_command): Update.
2027
c2252c0d
TT
20282017-11-07 Tom Tromey <tom@tromey.com>
2029
2030 * command.h (set_cmd_cfunc): Don't declare.
2031 * cli/cli-decode.c (set_cmd_cfunc): Now static.
2032
1ee870c5
TT
20332017-11-07 Tom Tromey <tom@tromey.com>
2034
2035 * stack.c (select_frame_command): Constify.
2036 * cli/cli-decode.c (add_com_suppress_notification): Constify.
2037 * command.h (add_com_suppress_notification): Constify.
2038
ee7ddd71
TT
20392017-11-07 Tom Tromey <tom@tromey.com>
2040
2041 * breakpoint.c (stop_command): Constify.
2042 * cli/cli-decode.c (struct cmd_list_element): Constify.
2043 * command.h (add_abbrev_prefix_cmd): Constify.
2044
95e95a6d
PA
20452017-11-07 Pedro Alves <palves@redhat.com>
2046
2047 * breakpoint.c (extract_bp_kind): New enum.
2048 (extract_bp_num, extract_bp_or_bp_range): New functions, partially
2049 factored out from ...
2050 (extract_bp_number_and_location): ... here.
2051 * cli/cli-utils.c (get_number_trailer): Handle '-$variable'.
2052
cc638e86
PA
20532017-11-07 Pedro Alves <palves@redhat.com>
2054
2055 * breakpoint.c (extract_bp_number_and_location): Change return
2056 type to void. Throw error instead of warning.
2057 (enable_disable_command): Adjust.
2058
d0fe4701
XR
20592017-11-07 Xavier Roirand <roirand@adacore.com>
2060 Pedro Alves <palves@redhat.com>
2061
2062 * breakpoint.c (map_breakpoint_number_range): New, factored out
2063 from ...
2064 (map_breakpoint_numbers): ... here.
2065 (find_location_by_number): Change parameters from string to
2066 breakpoint number and location.
2067 (extract_bp_number_and_location): New function.
2068 (enable_disable_bp_num_loc)
2069 (enable_disable_breakpoint_location_range)
2070 (enable_disable_command): New functions, factored out ...
2071 (enable_command, disable_command): ... these functions, and
2072 adjusted to support ranges.
2073 * NEWS: Document enable/disable breakpoint location range feature.
2074
635dc5b2
LM
20752017-11-06 Luis Machado <luis.machado@linaro.org>
2076
2077 * MAINTAINERS (Write After Approval): Update my e-mail address.
2078
556e5da5
PA
20792017-11-06 Pedro Alves <palves@redhat.com>
2080
2081 * gnu-nat.c (gnu_terminal_init): Delete.
2082 (gnu_target): Don't install gnu_terminal_init.
2083 * inflow.c (child_terminal_init_with_pgrp): Delete, merged with ...
2084 (child_terminal_init): ... this function.
2085
d1928160
PA
20862017-11-06 Pedro Alves <palves@redhat.com>
2087
2088 * common/common.m4 (GDB_AC_COMMON): No longer check termio.h nor
2089 sgtty.h.
2090 * config.in, configure: Regenerate.
2091
6aa899ce
PA
20922017-11-06 Pedro Alves <palves@redhat.com>
2093
2094 * event-top.c: Check SIGTSTP instead of STOP_SIGNAL thoughout.
2095 (async_init_signals): Adjust.
2096 (handle_stop_sig): Rename to ...
2097 (handle_sigtstp): ... this.
2098 (async_stop_sig): Rename to ...
2099 (async_sigtstp_handler): ... this, and delete STOP_SIGNAL !=
2100 SIGTSTP path.
2101 * event-top.h: Move signal.h include to the top. Check SIGTSTP
2102 instead of STOP_SIGNAL thoughout.
2103 (handle_stop_sig): Rename to ...
2104 (handle_sigtstp): ... this.
2105 * top.c (command_line_input): Replace STOP_SIGNAL -> SIGTSTP.
2106
a94799ac
PA
21072017-11-06 Pedro Alves <palves@redhat.com>
2108
2109 * inflow.c (child_terminal_inferior, child_terminal_ours_1): No
2110 longer set flags twice in row.
2111
726e1356
PA
21122017-11-06 Pedro Alves <palves@redhat.com>
2113
2114 * Makefile.in (SER_HARDWIRE): Update comment.
2115 (HFILES_NO_SRCDIR): Remove gdb_termios.h.
2116 * common/gdb_termios.h: Delete file.
2117 * common/job-control.c: Include termios.h and unistd.h instead of
2118 gdb_termios.h.
2119 (gdb_setpgid): Remove HAVE_TERMIOS || TIOCGPGRP preprocessor
2120 check.
2121 (have_job_control): Check HAVE_TERMIOS_H instead of HAVE_TERMIOS.
2122 Remove sgtty code.
2123 * configure.ac: No longer check for termio.h and sgtty.h.
2124 * configure: Regenerate.
2125 * inflow.c: Include termios.h instead of gdb_termios.h. Replace
2126 PROCESS_GROUP_TYPE checks with HAVE_TERMIOS_H checks throughout.
2127 Replace PROCESS_GROUP_TYPE references with pid_t references
2128 throughout.
2129 (gdb_getpgrp): Delete.
2130 (set_initial_gdb_ttystate): Use tcgetpgrp instead of gdb_getpgrp.
2131 (child_terminal_inferior): Remove comment. Remove sgtty code.
2132 (child_terminal_ours_1): Use tcgetpgrp directly instead of
2133 gdb_getpgrp. Use serial_set_tty_state instead aof
2134 serial_noflush_set_tty_state. Remove sgtty code.
2135 * inflow.h: Include unistd.h instead of gdb_termios.h. Replace
2136 PROCESS_GROUP_TYPE check with HAVE_TERMIOS_H check.
2137 (inferior_process_group): Now returns pid_t.
2138 * ser-base.c (ser_base_noflush_set_tty_state): Delete.
2139 * ser-base.h (ser_base_noflush_set_tty_state): Delete.
2140 * ser-event.c (serial_event_ops): Update.
2141 * ser-go32.c (dos_noflush_set_tty_state): Delete.
2142 (dos_ops): Update.
2143 * ser-mingw.c (hardwire_ops, tty_ops, pipe_ops, tcp_ops): Update.
2144 * ser-pipe.c (pipe_ops): Update.
2145 * ser-tcp.c (tcp_ops): Update.
2146 * ser-unix.c: Include termios.h instead of gdb_termios.h. Remove
2147 HAVE_TERMIOS checks.
2148 [HAVE_TERMIO] (struct hardwire_ttystate): Delete.
2149 [HAVE_SGTTY] (struct hardwire_ttystate): Delete.
2150 (get_tty_state, set_tty_state): Drop termio and sgtty code, and
2151 assume termios.
2152 (hardwire_noflush_set_tty_state): Delete.
2153 (hardwire_print_tty_state, hardwire_drain_output)
2154 (hardwire_flush_output, hardwire_flush_input)
2155 (hardwire_send_break, hardwire_raw, hardwire_setbaudrate)
2156 (hardwire_setstopbits, hardwire_setparity): Drop termio and sgtty
2157 code, and assume termios.
2158 (hardwire_ops): Update.
2159 (_initialize_ser_hardwire): Remove HAVE_TERMIOS check.
2160 * serial.c (serial_noflush_set_tty_state): Delete.
2161 * serial.h (serial_noflush_set_tty_state): Delete.
2162 (serial_ops::noflush_set_tty_state): Delete.
2163
1cfb73db
UW
21642017-11-06 Ulrich Weigand <uweigand@de.ibm.com>
2165
2166 * Makefile.in (SFILES): Remove doublest.c and dfp.c.
2167 (HFILES_NO_SRCDIR): Remove doublest.h and dfp.h.
2168 (COMMON_OBS): Remove doublest.o and dfp.o.
2169 Do not build target-float.c (instead of doublest.c)
2170 with -Wformat-nonliteral.
2171
2172 * doublest.c: Remove file.
2173 * doublest.h: Remove file.
2174 * dfp.c: Remove file.
2175 * dfp.h: Remove file.
2176
2177 * target-float.c: Do not include "doublest.h" and "dfp.h".
2178 (DOUBLEST): Move here from doublest.h.
2179 (enum float_kind): Likewise.
2180 (FLOATFORMAT_CHAR_BIT): Likewise.
2181 (FLOATFORMAT_LARGEST_BYTES): Likewise.
2182 (floatformat_totalsize_bytes): Move here from doublest.c. Make static.
2183 (floatformat_precision): Likewise.
2184 (floatformat_normalize_byteorder, get_field, put_field): Likewise.
2185 (floatformat_is_negative, floatformat_classify, floatformat_mantissa):
2186 Likewise.
2187 (host_float_format, host_double_format, host_long_double_format):
2188 Likewise.
2189 (floatformat_to_string, floatformat_from_string): Likewise.
2190 (floatformat_to_doublest): Likewise. Also, inline the original
2191 convert_floatformat_to_doublest.
2192 (floatformat_from_doublest): Likewise. Also, inline the original
2193 convert_floatformat_from_doublest.
2194
2195 Include "dpd/decimal128.h", "dpd/decimal64.h", and "dpd/decimal32.h".
2196 (MAX_DECIMAL_STRING): Move here from dfp.c.
2197 (match_endianness): Likewise.
2198 (set_decnumber_context, decimal_check_errors): Likewise.
2199 (decimal_from_number, decimal_to_number): Likewise.
2200 (decimal_to_string, decimal_from_string): Likewise. Make static.
2201 (decimal_from_longest, decimal_from_ulongest): Likewise.
2202 (decimal_to_longest): Likewise.
2203 (decimal_binop, decimal_is_zero, decimal_compare): Likewise.
2204 (decimal_convert): Likewise.
2205
b07e9c46
UW
22062017-11-06 Ulrich Weigand <uweigand@de.ibm.com>
2207
2208 * doublest.c: Do not include "gdbtypes.h".
2209 (extract_typed_floating): Remove.
2210 (store_typed_floating): Remove.
2211 (convert_typed_floating): Remove.
2212 * doublest.h (struct type): Remove.
2213 (DOUBLEST_PRINT_FORMAT): Remove.
2214 (DOUBLEST_SCAN_FORMAT): Remove.
2215 (extract_typed_floating): Remove.
2216 (store_typed_floating): Remove.
2217 (convert_typed_floating): Remove.
2218
2219 * dfp.c (decimal_from_doublest): Remove.
2220 (decimal_to_doublest): Remove.
2221 * dfp.h: Do not include "doublest.h".
2222 (decimal_from_doublest): Remove.
2223 (decimal_to_doublest): Remove.
2224
2225 * value.c: Do not include "doublest.h" and "dfp.h".
2226 (value_as_double): Remove.
2227 (unpack_double): Remove.
2228 (value_from_double): Remove.
2229 (value_from_decfloat): Remove.
2230 * value.h: Do not include "doublest.h".
2231 (value_as_double): Remove.
2232 (unpack_double): Remove.
2233 (value_from_double): Remove.
2234 (value_from_decfloat): Remove.
2235
3b2ca824
UW
22362017-11-06 Ulrich Weigand <uweigand@de.ibm.com>
2237
2238 * i386-tdep.c: Include "target-float.h". Do not include "doublest.h".
2239 (i386_extract_return_value): Use target_float_convert.
2240 (i386_store_return_value): Likewise.
2241 * i387-tdep.c (i387_register_to_value): Use target_float_convert.
2242 (i387_value_to_register): Likewise.
2243 * ia64-tdep.c: Include "target-float.h". Do not include "doublest.h".
2244 (ia64_register_to_value): Use target_float_convert.
2245 (ia64_value_to_register): Likewise.
2246 (ia64_extract_return_value): Likewise.
2247 (ia64_store_return_value): Likewise.
2248 (ia64_push_dummy_call): Likewise.
2249 * m68k-tdep.c: Include "target-float.h".
2250 (m68k_register_to_value): Use target_float_convert.
2251 (m68k_value_to_register): Likewise.
2252 (m68k_svr4_extract_return_value): Likewise.
2253 (m68k_svr4_store_return_value): Likewise.
2254 * ppc-sysv-tdep.c: Include "target-float.h".
2255 (ppc_sysv_abi_push_dummy_call): Use target_float_convert.
2256 (do_ppc_sysv_return_value): Likewise.
2257 (ppc64_sysv_abi_push_freg): Likewise.
2258 (ppc64_sysv_abi_return_value_base): Likewise.
2259 * rs6000-aix-tdep.c: Include "target-float.h".
2260 (rs6000_push_dummy_call): Use target_float_convert.
2261 (rs6000_return_value): Likewise.
2262 * rs6000-lynx178-tdep.c: Include "target-float.h".
2263 (rs6000_lynx178_push_dummy_call): Use target_float_convert.
2264 (rs6000_lynx178_return_value): Likewise.
2265 * rs6000-tdep.c: Include "target-float.h". Do not include "doublest.h".
2266 (rs6000_register_to_value): Use target_float_convert.
2267 (rs6000_value_to_register): Likewise.
2268 * arm-tdep.c: Include "target-float.h". Do not include "doublest.h".
2269 (arm_extract_return_value): Use target_float_convert.
2270 (arm_store_return_value): Likewise.
2271 * sh-tdep.c: Include "target-float.h". Do not include "doublest.h".
2272 (sh_register_convert_to_virtual): Use target_float_convert.
2273 (sh_register_convert_to_raw): Likewise.
2274 * sh64-tdep.c: Include "target-float.h".
2275 (sh64_extract_return_value): Use target_float_convert.
2276 (sh64_register_convert_to_virtual): Likewise.
2277 (sh64_register_convert_to_raw): Likewise. Fix argument types.
2278
14ad9311
UW
22792017-11-06 Ulrich Weigand <uweigand@de.ibm.com>
2280
2281 * target-float.c (floatformat_to_host_double): New function.
2282 (floatformat_from_host_double): Likewise.
2283 (target_float_to_host_double): Likewise.
2284 (target_float_from_host_double): Likewise.
2285 * target-float.h (target_float_to_host_double): Add prototype.
2286 (target_float_from_host_double): Likewise.
2287
2288 * guile/scm-value.c: Include "target-float.h".
2289 (gdbscm_value_to_real): Use target_float_to_host_double.
2290 Handle integer source values via value_as_long.
2291 * guile/scm-math.c: Include "target-float.h". Do not include
2292 "doublest.h", "dfp.h", and "expression.h".
2293 (vlscm_convert_typed_number): Use target_float_from_host_double.
2294 (vlscm_convert_number): Likewise.
2295
2296 * python/py-value.c (valpy_float): Use target_float_to_host_double.
2297 (convert_value_from_python): Use target_float_from_host_double.
2298
50eff16b
UW
22992017-11-06 Ulrich Weigand <uweigand@de.ibm.com>
2300
2301 * ada-lang.c (cast_to_fixed): Reimplement in target arithmetic.
2302 (cast_from_fixed): Likewise.
2303 (ada_scaling_type): New function.
2304 (ada_delta): Return value instead of DOUBLEST. Perform target
2305 arithmetic instead of host arithmetic.
2306 (scaling_factor): Rename to ...
2307 (ada_scaling_factor) ... this. Make non-static. Return value instead
2308 of DOUBLEST. Perform target arithmetic instead of host arithmetic.
2309 (ada_fixed_to_float): Remove.
2310 (ada_float_to_fixed): Remove.
2311 * ada-lang.h (ada_fixed_to_float): Remove.
2312 (ada_float_to_fixed): Remove.
2313 (ada_delta): Return value instead of DOUBLEST.
2314 (ada_scaling_factor): Add prototype.
2315
2316 * ada-typeprint.c: Include "target-float.h".
2317 (print_fixed_point_type): Perform target arithmetic instead of
2318 host arithmetic.
2319 * ada-valprint.c: Include "target-float.h".
2320 (ada_val_print_num): Perform target arithmetic instead of
2321 host arithmetic for fixed-point types.
2322
66c02b9e
UW
23232017-11-06 Ulrich Weigand <uweigand@de.ibm.com>
2324
2325 * target-float.c: Include <math.h>.
2326 (floatformat_binop): New function.
2327 (floatformat_compare): Likewise.
2328 (target_float_binop): Likewise.
2329 (target_float_compare): Likewise.
2330 * target-float.h: Include "expression.h".
2331 (target_float_binop): Add prototype.
2332 (target_float_compare): Likewise.
2333
2334 * valarith.c: Do not include "doublest.h" and "dfp.h".
2335 Include "common/byte-vector.h".
2336 (value_args_as_decimal): Remove, replace by ...
2337 (value_args_as_target_float): ... this function. Handle both
2338 binary and decimal target floating-point formats.
2339 (scalar_binop): Handle both binary and decimal FP using
2340 value_args_as_target_float and target_float_binop.
2341 (value_equal): Handle both binary and decimal FP using
2342 value_args_as_target_float and target_float_compare.
2343 (value_less): Likewise.
2344 (value_pos): Handle all scalar types as simple copy.
2345 (value_neg): Handle all scalar types via BINOP_SUB from 0.
2346 * dfp.c (decimal_binop): Throw error instead of internal_error
2347 when called with an unsupported operation code.
2348
f69fdf9b
UW
23492017-11-06 Ulrich Weigand <uweigand@de.ibm.com>
2350
2351 * target-float.c (target_float_to_string): New function.
2352 (target_float_from_string): New function.
2353 * target-float.h (target_float_to_string): Add prototype.
2354 (target_float_from_string): Add prototype.
2355
2356 * valprint.c: Include "target-float.h". Do not include
2357 "doublest.h" and "dfp.h".
2358 (print_floating): Use target_float_to_string.
2359 * printcmd.c: Include "target-float.h". Do not include "dfp.h".
2360 (printf_floating): Use target_float_to_string.
2361 * i387-tdep.c: Include "target-float.h". Do not include "doublest.h".
2362 (print_i387_value): Use target_float_to_string.
2363 * mips-tdep.c: Include "target-float.h".
2364 (mips_print_fp_register): Use target_float_to_string.
2365 * sh64-tdep.c: Include "target-float.h".
2366 (sh64_do_fp_register): Use target_float_to_string.
2367
2368 * parse.c: Include "target-float.h". Do not include
2369 "doublest.h" and "dfp.h".
2370 (parse_float): Use target_float_from_string.
2371 * stabsread.c: Include "target-float.h". Do not include "doublest.h".
2372 (define_symbol): Use target_float_from_string.
2373 * gdbarch-selftests.c: Include "target-float.h".
2374 (register_to_value_test): Use target_float_from_string.
2375
70100014
UW
23762017-11-06 Ulrich Weigand <uweigand@de.ibm.com>
2377
2378 * Makefile.c (SFILES): Add target-float.c.
2379 (HFILES_NO_SRCDIR): Add target-float.h.
2380 (COMMON_OBS): Add target-float.o.
2381 * target-float.h: New file.
2382 * target-float.c: New file.
2383
2384 * doublest.c (floatformat_classify): Fix detection of float_zero.
2385
2386 * gdbtypes.c (is_floating_type): New function.
2387 * gdbtypes.h (is_floating_type): Add prototype.
2388
2389 * value.c: Do not include "floatformat.h".
2390 (unpack_double): Use target_float_is_valid.
2391 (is_floating_value): New function.
2392 * value.h (is_floating_value): Add prototype-
2393
2394 * valarith.c: Include "target-float.h".
2395 (value_logical_not): Use target_float_is_zero.
2396
2397 * python/py-value.c: Include "target-float.h".
2398 (valpy_nonzero): Use target_float_is_zero.
2399
ab4b1c46
TT
24002017-11-04 Tom Tromey <tom@tromey.com>
2401
2402 * h8300-tdep.c (h8300_push_dummy_call): Use std::vector.
2403
454dafbd
TT
24042017-11-04 Tom Tromey <tom@tromey.com>
2405
2406 * breakpoint.c (set_momentary_breakpoint): Return
2407 breakpoint_up.
2408 (until_break_command): Update.
2409 (new_until_break_fsm): Change argument types to
2410 breakpoint_up.
2411 (set_momentary_breakpoint_at_pc): Return breakpoint_up.
2412 (do_delete_breakpoint_cleanup, make_cleanup_delete_breakpoint):
2413 Remove.
2414 * infcmd.c (finish_forward): Update.
2415 * breakpoint.h (set_momentary_breakpoint)
2416 (set_momentary_breakpoint_at_pc): Return breakpoint_up.
2417 (make_cleanup_delete_breakpoint): Remove.
2418 (struct breakpoint_deleter): New.
2419 (breakpoint_up): New typedef.
2420 * infrun.c (insert_step_resume_breakpoint_at_sal_1): Update.
2421 (insert_exception_resume_breakpoint): Update.
2422 (insert_exception_resume_from_probe): Update.
2423 (insert_longjmp_resume_breakpoint): Update.
2424 * arm-linux-tdep.c (arm_linux_copy_svc): Update.
2425 * elfread.c (elf_gnu_ifunc_resolver_stop): Update.
2426 * infcall.c (call_function_by_hand_dummy): Update
2427
331b71e5
TT
24282017-11-04 Tom Tromey <tom@tromey.com>
2429
2430 * c-typeprint.c (c_type_print_base): Use gdb::unique_xmalloc_ptr.
2431
9f584b37
TT
24322017-11-04 Tom Tromey <tom@tromey.com>
2433
2434 * linux-tdep.c (linux_core_info_proc_mappings): Use
2435 gdb::def_vector.
2436 (linux_get_siginfo_data): Return gdb::byte_vector. Remove
2437 "size" argument.
2438 (linux_corefile_thread): Update.
2439 (linux_make_corefile_notes): Remove unused variable.
2440
779bc38e
TT
24412017-11-04 Tom Tromey <tom@tromey.com>
2442
2443 * ppc-linux-tdep.c (ppc_linux_get_syscall_number): Use
2444 gdb::byte_vector.
2445
ed2b3126
TT
24462017-11-04 Tom Tromey <tom@tromey.com>
2447
2448 * objfiles.c (do_free_objfile_cleanup): Remove.
2449 * compile/compile-object-load.c (compile_object_load): Update.
2450 * objfiles.h (make_cleanup_free_objfile): Remove.
2451
7f6743fd
TT
24522017-11-04 Tom Tromey <tom@tromey.com>
2453
2454 * sparc64-tdep.c (do_examine): Use gdb::def_vector.
2455 (adi_read_versions): Change "tags" to "gdb_byte *".
2456 (adi_print_versions): Likewise.
2457
c80049d3
TT
24582017-11-04 Tom Tromey <tom@tromey.com>
2459
2460 * breakpoint.c
2461 (scoped_rbreak_breakpoints::scoped_rbreak_breakpoints): Rename
2462 from start_rbreak_breakpoints.
2463 (scoped_rbreak_breakpoints): Rename from end_rbreak_breakpoints.
2464 * breakpoint.h (class scoped_rbreak_breakpoints): New.
2465 (start_rbreak_breakpoints, end_rbreak_breakpoints): Remove.
2466 * symtab.c (do_end_rbreak_breakpoints): Remove.
2467 (rbreak_command): Use scoped_rbreak_breakpoints, std::string.
2468
167b0be1
TT
24692017-11-04 Tom Tromey <tom@tromey.com>
2470
2471 * cp-namespace.c (reset_directive_searched): Remove.
2472 (cp_lookup_symbol_via_imports): Use scoped_restore.
2473 * cp-support.c (reset_directive_searched): Remove.
2474 (make_symbol_overload_list_using): Use scoped_restore.
2475 * d-namespace.c (d_lookup_symbol_imports): Use scoped_restore.
2476 (reset_directive_searched): Remove.
2477
5eae7aea
TT
24782017-11-04 Tom Tromey <tom@tromey.com>
2479
2480 * symfile.c (find_separate_debug_file_by_debuglink): Use
2481 unique_xmalloc_ptr.
2482
c6bcad5f
TT
24832017-11-04 Tom Tromey <tom@tromey.com>
2484
2485 * compile/compile-loc2c.c (compute_stack_depth_worker): Change
2486 type of "info".
2487 (compute_stack_depth): Likewise.
2488 (do_compile_dwarf_expr_to_c): Use std::vector.
2489
20dcd8ca
TT
24902017-11-04 Tom Tromey <tom@tromey.com>
2491
2492 * compile/compile-object-load.c (link_callbacks_einfo): Use
2493 std::string.
2494
33c7c59d
TT
24952017-11-04 Tom Tromey <tom@tromey.com>
2496
2497 * dwarf2read.c (process_full_comp_unit, process_full_type_unit):
2498 Use scoped_free_pendings.
2499 * dbxread.c (dbx_symfile_read, dbx_psymtab_to_symtab_1): Use
2500 scoped_free_pendings.
2501 * xcoffread.c (xcoff_psymtab_to_symtab_1): Use scoped_free_pendings.
2502 (xcoff_initial_scan): Likewise.
2503 * buildsym.c (reset_symtab_globals): Update comment.
2504 (scoped_free_pendings): Rename from really_free_pendings.
2505 (prepare_for_building): Update comment.
2506 (buildsym_init): Likewise.
2507 * buildsym.h (class scoped_free_pendings): New class.
2508 (really_free_pendings): Don't declare.
2509
67fa57cf
UW
25102017-11-03 Ulrich Weigand <uweigand@de.ibm.com>
2511
2512 * doublest.c (convert_doublest_to_floatformat): Fix uninitialized
2513 output when converting a zero value to a special byteorder format.
2514
f26ae15b
YQ
25152017-11-02 Yao Qi <yao.qi@linaro.org>
2516
2517 * frame.c (do_frame_register_read): Remove aspace.
2518 * jit.c (jit_frame_sniffer): Likwise.
2519 * ppc-linux-tdep.c (ppu2spu_sniffer): Likewise.
2520 * regcache.c (regcache::regcache): Pass nullptr.
2521 (regcache_print): Caller updated.
2522 * regcache.h (regcache::regcache): Remove one constructor
2523 parameter aspace.
2524
6c6e9412
YQ
25252017-11-02 Yao Qi <yao.qi@linaro.org>
2526
2527 * regcache.h (regcache) <m_readonly_p>: Change it to const bool.
2528
8b86c959
YQ
25292017-11-02 Yao Qi <yao.qi@linaro.org>
2530
2531 * breakpoint.c (insert_single_step_breakpoints): Update.
2532 * frame.c (struct frame_info) <aspace>: Add const.
2533 (frame_save_as_regcache): Add const.
2534 (get_frame_address_space): Return const address_space *.
2535 * frame.h (get_frame_address_space): Update declaration.
2536 * infrun.c (struct step_over_info) <aspace>: Add const.
2537 (set_step_over_info): Make aspace const.
2538 (displaced_step_prepare_throw): Change variable const.
2539 (resume): Likewise.
2540 (proceed): Likewise.
2541 (adjust_pc_after_break): Likewise.
2542 (save_waitstatus): Likewise.
2543 (handle_signal_stop): Likewise.
2544 (keep_going_pass_signal): Likewise.
2545 * jit.c (jit_frame_sniffer): Add const.
2546 * mips-tdep.c (mips_single_step_through_delay): Likewise.
2547 * ppc-linux-tdep.c (ppu2spu_sniffer): Likewise.
2548 * record-full.c (record_full_wait_1): Likewise.
2549 * regcache.c (regcache::regcache): Change parameter to const.
2550 * regcache.h (regcache::regcache): Likewise.
2551 (regcache::aspace): Return const address_space *.
2552 (regcache) <m_aspace>: Add const.
2553
a01bda52
YQ
25542017-11-02 Yao Qi <yao.qi@linaro.org>
2555
2556 * darwin-nat.c (cancel_breakpoint): Use regcache->aspace ().
2557 * frame.c (create_sentinel_frame): Likewise.
2558 * infrun.c (displaced_step_prepare_throw): Likewise.
2559 (resume): Likewise.
2560 (thread_still_needs_step_over_bp): Likewise.
2561 (proceed): Likewise.
2562 (do_target_wait): Likewise.
2563 (adjust_pc_after_break): Likewise.
2564 (handle_syscall_event): Likewise.
2565 (save_waitstatus): Likewise.
2566 (handle_inferior_event_1): Likewise.
2567 (handle_signal_stop): Likewise.
2568 (keep_going_pass_signal): Likewise.
2569 * linux-nat.c (status_callback): Likewise.
2570 (save_stop_reason): Likewise.
2571 (resume_stopped_resumed_lwps): Likewise.
2572 * record-full.c (record_full_exec_insn): Likewise.
2573 (record_full_wait_1): Likewise.
2574 * regcache.c (get_regcache_aspace): Remove.
2575 * regcache.h (get_regcache_aspace): Remove.
2576
d999647b
YQ
25772017-11-02 Yao Qi <yao.qi@linaro.org>
2578
2579 * regcache.c (struct regcache_descr) <nr_raw_registers>: Remove.
2580 (init_regcache_descr): Use gdbarch_num_regs.
2581 (regcache::regcache): Likewise.
2582 (regcache::get_register_status): Likewise.
2583 (regcache::assert_raw_regnum): Likewise.
2584 (regcache::cooked_read): Likewise.
2585 (regcache::cooked_read_value): Likewise.
2586 (regcache::cooked_write): Likewise.
2587 (regcache::dump): Likewise.
2588 (regcache::num_raw_registers): New method.
2589 * regcache.h (class regcache) <num_raw_registers>: New.
2590
4e888c28
YQ
25912017-11-02 Yao Qi <yao.qi@linaro.org>
2592
2593 * regcache.c (regcache::assert_regnum): New method.
2594 (regcache::invalidate): Call assert_regnum.
2595 (regcache::raw_update): Likewise.
2596 (regcache::raw_write): Likewise.
2597 (regcache::raw_read_part): Likewise.
2598 (regcache::raw_write_part): Likewise.
2599 (regcache::raw_supply): Likewise.
2600 (regcache::raw_supply_integer): Likewise.
2601 (regcache::raw_supply_zeroed): Likewise.
2602 (regcache::raw_collect): Likewise.
2603 (regcache::raw_collect_integer): Likewise.
2604 * regcache.h (regcache::assert_regnum): Declare.
2605
2e1b49b3
YQ
26062017-11-02 Yao Qi <yao.qi@linaro.org>
2607
2608 * regcache.c (regcache::dump): Remove code.
2609
6c5218df
YQ
26102017-11-02 Yao Qi <yao.qi@linaro.org>
2611
2612 * regcache.c (struct regcache_descr) <sizeof_raw_register_status>:
2613 Remove.
2614 <sizeof_cooked_register_status>: Remove.
2615 (init_regcache_descr): Update.
2616 (regcache::regcache): Use nr_cooked_registers and nr_raw_registers.
2617 (regcache::save): Likewise.
2618 (regcache::dump): Likewise.
2619
dcc31d28
JB
26202017-11-01 James Bowman <james.bowman@ftdichip.com>
2621
2622 * ft32-tdep.c (ft32_fetch_instruction): New function.
2623 (ft32_analyze_prologue): Use ft32_fetch_instruction().
2624
3a87ae65
SM
26252017-10-31 Simon Marchi <simon.marchi@polymtl.ca>
2626
2627 * cli/cli-script.c (execute_control_command): Rename to ...
2628 (execute_control_command_1): ... this.
2629 (execute_control_command): New function.
2630
09b847f3
SM
26312017-10-31 Simon Marchi <simon.marchi@ericsson.com>
2632
2633 * tracepoint.c (tfind_command): Remove const_cast.
2634
f871c485
MG
26352017-10-30 Mike Gulick <mgulick@mathworks.com>
2636
2637 * Makefile.in (HFILES_NO_SRCDIR): Remove reference to gdb.h.
2638
b020ff80
SM
26392017-10-30 Simon Marchi <simon.marchi@ericsson.com>
2640
2641 * common/common-utils.h (in_inclusive_range): New function.
2642 * arm-tdep.c (arm_record_extension_space): Use
2643 in_inclusive_range.
2644 (thumb_record_ld_st_reg_offset): Use in_inclusive_range.
2645 * cris-tdep.c (cris_spec_reg_applicable): Use
2646 in_inclusive_range.
2647
1b81856f
PA
26482017-10-30 Pedro Alves <palves@redhat.com>
2649 Simon Marchi <simon.marchi@ericsson.com>
2650
2651 * remote.c (remote_set_syscall_catchpoint): Build a std::string
2652 instead of a gdb::unique_xmalloc_ptr, using string_appendf.
2653
31b833b3
PA
26542017-10-30 Pedro Alves <palves@redhat.com>
2655
2656 * common/common-utils.c (string_appendf, string_vappendf): New
2657 functions.
2658 * common/common-utils.h (string_appendf, string_vappendf): New
2659 declarations.
2660 * unittests/common-utils-selftests.c (string_appendf_func)
2661 (test_appendf_func, string_vappendf_wrapper, string_appendf_tests)
2662 (string_vappendf_tests): New functions.
2663 (_initialize_common_utils_selftests): Register "string_appendf" and
2664 "string_vappendf tests".
2665
4a250334
PA
26662017-10-30 Pedro Alves <palves@redhat.com>
2667
2668 * unittests/common-utils-selftests.c (format_func): New typedef.
2669 (string_printf_tests, string_vprintf_tests): Tests factored out
2670 and merged to ...
2671 (test_format_func): ... this new function.
2672 (string_printf_tests, string_vprintf_tests): Reimplement on top of
2673 test_format_func.
2674
16c5c17e
SM
26752017-10-29 Simon Marchi <simon.marchi@ericsson.com>
2676
2677 * darwin-nat.c: Remove include of gdb.h.
2678
7ca51576
SM
26792017-10-29 Simon Marchi <simon.marchi@ericsson.com>
2680
2681 * xtensa-xtregs.c: Fix formatting issues.
2682
c1342859
SM
26832017-10-29 Simon Marchi <simon.marchi@ericsson.com>
2684
2685 * xtensa-xtregs.c (xtensa_regtable_t) <name>: Constify.
2686
484d8d36
MD
26872017-10-28 Maksim Dzabraev <dzabraew@gmail.com>
2688
2689 PR python/21213
2690 * python/py-infthread.c (thpy_get_inferior): Increment reference
2691 of inferior before returning it.
2692
b5540b5f
SM
26932017-10-27 Simon Marchi <simon.marchi@ericsson.com>
2694
2695 * unittests/common-utils-selftests.c (format): Add
2696 ATTRIBUTE_PRINTF.
2697
5a9dcda1
SM
26982017-10-27 Simon Marchi <simon.marchi@polymtl.ca>
2699
2700 * xml-syscall.c (struct syscall_desc): Add constructor.
2701 <name>: Change type to std::string.
2702 (syscall_desc_up): New typedef.
2703 (syscall_desc_p): Remove typeder.
2704 (DEF_VEC_P(syscall_desc_p)): Remove.
2705 (struct syscall_group_desc): Add constructor.
2706 <name>: Change type to std::string.
2707 <syscalls>: Change type to std::vector.
2708 (syscall_group_desc_up): New typedef.
2709 (syscall_group_desc_p): Remove typedef.
2710 (DEF_VEC_P(syscall_group_desc_p)): Remove.
2711 (struct syscalls_info) <syscalls>: Change type to std::vector of
2712 unique_ptr.
2713 <groups>: Likewise.
2714 <my_gdb_datadir>: Change type to std::string.
2715 (syscalls_info_up): New typedef.
2716 (allocate_syscalls_info): Remove.
2717 (syscalls_info_free_syscalls_desc): Remove.
2718 (syscalls_info_free_syscall_group_desc): Remove.
2719 (free_syscalls_info): Remove.
2720 (make_cleanup_free_syscalls_info): Remove.
2721 (syscall_group_create_syscall_group_desc): Adjust.
2722 (syscall_group_add_syscall): Adjust.
2723 (syscall_create_syscall_desc): Adjust.
2724 (syscall_parse_xml): Adjust, use unique_ptr instead of cleanup.
2725 (init_syscalls_info): Adjust.
2726 (syscall_group_get_group_by_name): Adjust.
2727 (xml_get_syscall_number): Adjust.
2728 (xml_get_syscall_name): Adjust.
2729 (xml_list_of_syscalls): Adjust.
2730 (xml_list_syscalls_by_group): Adjust.
2731 (xml_list_of_groups): Adjust.
2732
45461e0d
SM
27332017-10-27 Simon Marchi <simon.marchi@ericsson.com>
2734
2735 * probe.h: Don't include gdb_vecs.h.
2736 (DEF_VEC_P (probe_p)): Remove.
2737 (find_probes_in_objfile): Return an std::vector.
2738 * probe.c (find_probes_in_objfile): Likewise.
2739 * breakpoint.c (breakpoint_objfile_data)
2740 <longjmp_probes>: Change type to std::vector.
2741 <exception_probes>: Likewise.
2742 (free_breakpoint_probes): Don't manually free vectors.
2743 (create_longjmp_master_breakpoint): Adjust.
2744 (create_exception_master_breakpoint): Adjust.
2745 * solib-svr4.c (svr4_create_probe_breakpoints): Change
2746 parameter type, adjust.
2747 (svr4_create_solib_event_breakpoints): Adjust.
2748
43dce439
SM
27492017-10-27 Simon Marchi <simon.marchi@ericsson.com>
2750
2751 * breakpoint.c (breakpoint_objfile_data): Initialize fields.
2752 (get_breakpoint_objfile_data): Allocate breakpoint_objfile_data
2753 with new.
2754 (free_breakpoint_probes): Rename to ...
2755 (free_breakpoint_objfile_data): ... this, and call delete on
2756 bp_objfile_data..
2757
6a1b9516
SM
27582017-10-27 Simon Marchi <simon.marchi@polymtl.ca>
2759
2760 * auto-load.c: Don't include gdb_vecs.h, include algorithm.
2761 (loaded_script_ptr): Remove typedef.
2762 (DEF_VEC_P (loaded_script_ptr)): Remove.
2763 (struct collect_matching_scripts_data): Add constructor.
2764 <scripts_p>: Change type to (pointer to) std::vector.
2765 (collect_matching_scripts_data): Adjust.
2766 (sort_scripts_by_name): Make suitable for std::sort.
2767 (print_scripts): Don't sort vector, adjust to std::vector.
2768 (auto_load_info_scripts): Sort vectors, adjust to std::vector.
2769
593e3209
SM
27702017-10-27 Simon Marchi <simon.marchi@ericsson.com>
2771
2772 * symfile.c (filename_language): Make struct, not typedef. Add
2773 constructor.
2774 <ext>: Change type to std::string.
2775 (DEF_VEC_O (filename_language)): Remove.
2776 (filename_language_table): Change type to std::vector.
2777 (add_filename_language): Adjust.
2778 (set_ext_lang_command): Adjust.
2779 (info_ext_lang_command): Adjust.
2780 (deduce_language_from_filename): Adjust.
2781 (class scoped_restore_filename_language_table): Remove.
2782 (test_filename_language): Use scoped_restore.
2783 (test_set_ext_lang_command): Use scoped_restore, adjust to
2784 std::vector change.
2785
32fa66eb
SM
27862017-10-27 Simon Marchi <simon.marchi@ericsson.com>
2787
2788 * symfile.c: Include selftest.h.
2789 (class scoped_restore_filename_language_table): New.
2790 (test_filename_language): New test.
2791 (test_set_ext_lang_command): New test.
2792 (_initialize_symfile): Register tests.
2793
4a27f119
KS
27942017-10-27 Keith Seitz <keiths@redhat.com>
2795
2796 * breakpoint.c (print_breakpoint_location): Use the symbol saved
2797 in the bp_location, falling back to find_pc_sect_function when
2798 needed.
2799 (add_location_to_breakpoint): Save sal->symbol.
2800 * breakpoint.h (struct bp_location) <symbol>: New field.
2801 * symtab.c (find_function_start_sal): Save the symbol into the SaL.
2802 * symtab.h (struct symtab_and_line) <symbol>: New field.
2803
a43f3893
PF
28042017-10-26 Patrick Frants <osscontribute@gmail.com>
2805
7453e6b2 2806 PR gdb/13669
a43f3893
PF
2807 * cp-valprint.c (cp_print_value_fields): Use obstack_blank_fast
2808 to rewind obstack.
2809
23cc4e1b
PA
28102017-10-26 Pedro Alves <palves@redhat.com>
2811
2812 * remote.c (remote_async_terminal_ours_p): Delete.
2813 (remote_open_1, remote_terminal_inferior, remote_terminal_ours):
2814 Remove references to 'remote_async_terminal_ours_p'.
2815
6abc18bb
YQ
28162017-10-26 Yao Qi <yao.qi@linaro.org>
2817
2818 * breakpoint.h (regular_breakpoint_inserted_here_p): Remove.
2819
bd522513
YQ
28202017-10-26 Yao Qi <yao.qi@linaro.org>
2821
2822 * break-catch-sig.c (signal_catchpoint_breakpoint_hit): Make
2823 aspace const.
2824 * break-catch-syscall.c (breakpoint_hit_catch_syscall):
2825 Likewise.
2826 * breakpoint.c (bpstat_check_location): Remove cast.
2827 (breakpoint_hit_catch_fork): Make aspce const.
2828 (breakpoint_hit_catch_solib): Likewise.
2829 (breakpoint_hit_catch_exec): Likewise.
2830 (breakpoint_hit_ranged_breakpoint): Likewise.
2831 (breakpoint_hit_watchpoint): Likewise.
2832 (base_breakpoint_breakpoint_hit): Likewise.
2833 (bkpt_breakpoint_hit): Likewise.
2834 (dprintf_breakpoint_hit): Likewise.
2835 (tracepoint_breakpoint_hit): Likewise.
2836 * breakpoint.h (breakpoint_ops) <breakpoint_hit>: Likewise.
2837
accd0bcd
YQ
28382017-10-26 Yao Qi <yao.qi@linaro.org>
2839
2840 * breakpoint.c (breakpoint_location_address_match): Change
2841 "struct address_space *" to "const address_space".
2842 (breakpoint_location_address_range_overlap): Likewise.
2843 (breakpoint_here_p): Likewise.
2844 (breakpoint_in_range_p): Likewise.
2845 (moribund_breakpoint_here_p): Likewise.
2846 (bp_location_inserted_here_p): Likewise.
2847 (software_breakpoint_inserted_here_p): Likewise.
2848 (hardware_breakpoint_inserted_here_p): Likewise.
2849 (hardware_watchpoint_inserted_in_range): Likewise.
2850 (bpstat_check_location): Likewise.
2851 (bpstat_stop_status): Likewise.
2852 (breakpoint_address_match): Likewise.
2853 (breakpoint_address_match_range): Likewise.
2854 (breakpoint_location_address_match): Likewise.
2855 (breakpoint_location_address_range_overlap): Likewise.
2856 (insert_single_step_breakpoint): Likewise.
2857 (breakpoint_has_location_inserted_here): Likewise.
2858 (single_step_breakpoint_inserted_here_p): Likewise.
2859 (pc_at_non_inline_function): Likewise.
2860 * breakpoint.h (bpstat_stop_status): Update declaration.
2861 (breakpoint_here_p): Likewise.
2862 (breakpoint_in_range_p): Likewise.
2863 (moribund_breakpoint_here_p): Likewise.
2864 (breakpoint_inserted_here_p): Likewise.
2865 (software_breakpoint_inserted_here_p): Likewise.
2866 (hardware_breakpoint_inserted_here_p): Likewise.
2867 (breakpoint_has_location_inserted_here): Likewise.
2868 (single_step_breakpoint_inserted_here_p): Likewise.
2869 (hardware_watchpoint_inserted_in_range): Likewise.
2870 (breakpoint_address_match): Likewise.
2871 (insert_single_step_breakpoint): Likewise.
2872 (pc_at_non_inline_function): Likewise.
2873 * gdbthread.h (thread_has_single_step_breakpoint_here): Likewise.
2874 * record.c (record_check_stopped_by_breakpoint): Likewise.
2875 * record.h (record_check_stopped_by_breakpoint): Likewise.
2876 * thread.c (thread_has_single_step_breakpoint_here): Likewise.
2877
ac7936df
YQ
28782017-10-25 Yao Qi <yao.qi@linaro.org>
2879
2880 * aarch32-linux-nat.c (aarch32_gp_regcache_supply): Use
2881 regcache->arch () instead get_regcache_arch.
2882 * aarch64-fbsd-nat.c (aarch64_fbsd_fetch_inferior_registers):
2883 Likewise.
2884 (aarch64_fbsd_store_inferior_registers): Likewise.
2885 * aarch64-linux-nat.c (fetch_gregs_from_thread): Likewise.
2886 (store_gregs_to_thread): Likewise.
2887 (fetch_fpregs_from_thread): Likewise.
2888 (store_fpregs_to_thread): Likewise.
2889 * aarch64-tdep.c (aarch64_extract_return_value): Likewise.
2890 (aarch64_store_return_value): Likewise.
2891 (aarch64_software_single_step): Likewise.
2892 * aix-thread.c (aix_thread_wait): Likewise.
2893 (supply_reg32): Likewise.
2894 (supply_sprs64): Likewise.
2895 (supply_sprs32): Likewise.
2896 (fill_gprs64): Likewise.
2897 (fill_gprs32): Likewise.
2898 (fill_sprs64): Likewise.
2899 (fill_sprs32): Likewise.
2900 (store_regs_user_thread): Likewise.
2901 (store_regs_kernel_thread): Likewise.
2902 * alpha-bsd-nat.c (alphabsd_fetch_inferior_registers): Likewise.
2903 (alphabsd_store_inferior_registers): Likewise.
2904 * alpha-tdep.c (alpha_extract_return_value): Likewise.
2905 (alpha_store_return_value): Likewise.
2906 (alpha_deal_with_atomic_sequence): Likewise.
2907 (alpha_next_pc): Likewise.
2908 (alpha_software_single_step): Likewise.
2909 * amd64-bsd-nat.c (amd64bsd_fetch_inferior_registers): Likewise.
2910 (amd64bsd_store_inferior_registers): Likewise.
2911 * amd64-linux-nat.c (amd64_linux_fetch_inferior_registers):
2912 Likewise.
2913 (amd64_linux_store_inferior_registers): Likewise.
2914 * amd64-nat.c (amd64_supply_native_gregset): Likewise.
2915 (amd64_collect_native_gregset): Likewise.
2916 * amd64-obsd-tdep.c (amd64obsd_supply_uthread): Likewise.
2917 (amd64obsd_collect_uthread): Likewise.
2918 * amd64-tdep.c (amd64_supply_fpregset): Likewise.
2919 (amd64_collect_fpregset): Likewise.
2920 (amd64_supply_fxsave): Likewise.
2921 (amd64_supply_xsave): Likewise.
2922 (amd64_collect_fxsave): Likewise.
2923 (amd64_collect_xsave): Likewise.
2924 * arc-tdep.c (arc_write_pc): Likewise.
2925 * arch-utils.c (default_skip_permanent_breakpoint): Likewise.
2926 * arm-fbsd-nat.c (arm_fbsd_fetch_inferior_registers): Likewise.
2927 (arm_fbsd_store_inferior_registers): Likewise.
2928 * arm-linux-nat.c (fetch_vfp_regs): Likewise.
2929 (store_vfp_regs): Likewise.
2930 (arm_linux_fetch_inferior_registers): Likewise.
2931 (arm_linux_store_inferior_registers): Likewise.
2932 * arm-linux-tdep.c (arm_linux_supply_gregset): Likewise.
2933 (arm_linux_sigreturn_next_pc): Likewise.
2934 (arm_linux_get_next_pcs_syscall_next_pc): Likewise.
2935 * arm-nbsd-nat.c (arm_supply_gregset): Likewise.
2936 (fetch_register): Likewise.
2937 (store_register): Likewise.
2938 * arm-tdep.c (arm_is_thumb): Likewise.
2939 (displaced_in_arm_mode): Likewise.
2940 (bx_write_pc): Likewise.
2941 (arm_get_next_pcs_addr_bits_remove): Likewise.
2942 (arm_software_single_step): Likewise.
2943 (arm_extract_return_value): Likewise.
2944 (arm_store_return_value): Likewise.
2945 (arm_write_pc): Likewise.
2946 * bfin-tdep.c (bfin_extract_return_value): Likewise.
2947 * bsd-uthread.c (bsd_uthread_fetch_registers): Likewise.
2948 (bsd_uthread_store_registers): Likewise.
2949 * core-regset.c (fetch_core_registers): Likewise.
2950 * corelow.c (get_core_registers): Likewise.
2951 * cris-tdep.c (cris_store_return_value): Likewise.
2952 (cris_extract_return_value): Likewise.
2953 (find_step_target): Likewise.
2954 (find_step_target): Likewise.
2955 (cris_software_single_step): Likewise.
2956 * ctf.c (ctf_fetch_registers): Likewise.
2957 * darwin-nat.c (cancel_breakpoint): Likewise.
2958 * fbsd-tdep.c (fbsd_collect_thread_registers): Likewise.
2959 * frv-tdep.c (frv_extract_return_value): Likewise.
2960 * ft32-tdep.c (ft32_store_return_value): Likewise.
2961 (ft32_extract_return_value): Likewise.
2962 * go32-nat.c (fetch_register): Likewise.
2963 (go32_fetch_registers): Likewise.
2964 (go32_store_registers): Likewise.
2965 (store_register): Likewise.
2966 * h8300-tdep.c (h8300_extract_return_value): Likewise.
2967 (h8300_store_return_value): Likewise.
2968 * hppa-linux-nat.c (fetch_register): Likewise.
2969 (store_register): Likewise.
2970 (hppa_linux_fetch_inferior_registers): Likewise.
2971 (hppa_linux_store_inferior_registers): Likewise.
2972 * i386-darwin-nat.c (i386_darwin_fetch_inferior_registers): Likewise.
2973 (i386_darwin_store_inferior_registers): Likewise.
2974 * i386-gnu-nat.c (gnu_fetch_registers): Likewise.
2975 (gnu_store_registers): Likewise.
2976 * i386-linux-nat.c (fetch_register): Likewise.
2977 (store_register): Likewise.
2978 (supply_gregset): Likewise.
2979 (fill_gregset): Likewise.
2980 (i386_linux_fetch_inferior_registers): Likewise.
2981 (i386_linux_store_inferior_registers): Likewise.
2982 (i386_linux_resume): Likewise.
2983 * i386-linux-tdep.c (i386_linux_get_syscall_number_from_regcache):
2984 Likewise.
2985 * i386-nto-tdep.c (i386nto_supply_gregset): Likewise.
2986 * i386-obsd-nat.c (i386obsd_supply_pcb): Likewise.
2987 * i386-obsd-tdep.c (i386obsd_supply_uthread): Likewise.
2988 (i386obsd_collect_uthread): Likewise.
2989 * i386-tdep.c (i386_mmx_regnum_to_fp_regnum): Likewise.
2990 (i386_supply_gregset): Likewise.
2991 (i386_collect_gregset): Likewise.
2992 (i386_supply_fpregset): Likewise.
2993 (i386_collect_fpregset): Likewise.
2994 (i386_mpx_bd_base): Likewise.
2995 * i386-v4-nat.c (supply_fpregset): Likewise.
2996 (fill_fpregset): Likewise.
2997 * i387-tdep.c (i387_supply_fsave): Likewise.
2998 (i387_collect_fsave): Likewise.
2999 (i387_supply_fxsave): Likewise.
3000 (i387_collect_fxsave): Likewise.
3001 (i387_supply_xsave): Likewise.
3002 (i387_collect_xsave): Likewise.
3003 * ia64-linux-nat.c (ia64_linux_fetch_registers): Likewise.
3004 (ia64_linux_store_registers): Likewise.
3005 * ia64-tdep.c (ia64_access_rse_reg): Likewise.
3006 (ia64_extract_return_value): Likewise.
3007 (ia64_store_return_value): Likewise.
3008 (find_func_descr): Likewise.
3009 * inf-child.c (inf_child_fetch_inferior_registers): Likewise.
3010 * inf-ptrace.c (inf_ptrace_fetch_registers): Likewise.
3011 (inf_ptrace_store_registers): Likewise.
3012 * infrun.c (use_displaced_stepping): Likewise.
3013 (displaced_step_prepare_throw): Likewise.
3014 (resume): Likewise.
3015 (proceed): Likewise.
3016 (do_target_wait): Likewise.
3017 (adjust_pc_after_break): Likewise.
3018 (handle_inferior_event_1): Likewise.
3019 (handle_signal_stop): Likewise.
3020 (save_infcall_suspend_state): Likewise.
3021 (restore_infcall_suspend_state): Likewise.
3022 * iq2000-tdep.c (iq2000_extract_return_value): Likewise.
3023 * jit.c (jit_frame_prev_register): Likewise.
3024 * linux-nat.c (save_stop_reason): Likewise.
3025 (linux_nat_wait_1): Likewise.
3026 (resume_stopped_resumed_lwps): Likewise.
3027 * linux-record.c (record_linux_sockaddr): Likewise.
3028 (record_linux_msghdr): Likewise.
3029 (record_linux_system_call): Likewise.
3030 * linux-tdep.c (linux_collect_thread_registers): Likewise.
3031 * lm32-tdep.c (lm32_extract_return_value): Likewise.
3032 (lm32_store_return_value): Likewise.
3033 * m32c-tdep.c (m32c_read_flg): Likewise.
3034 (m32c_pseudo_register_read): Likewise.
3035 (m32c_pseudo_register_write): Likewise.
3036 * m32r-linux-tdep.c (m32r_linux_supply_gregset): Likewise.
3037 (m32r_linux_collect_gregset): Likewise.
3038 * m32r-tdep.c (m32r_store_return_value): Likewise.
3039 (m32r_extract_return_value): Likewise.
3040 * m68k-bsd-nat.c (m68kbsd_supply_fpregset): Likewise.
3041 (m68kbsd_collect_fpregset): Likewise.
3042 * m68k-bsd-tdep.c (m68kbsd_supply_fpregset): Likewise.
3043 * m68k-linux-nat.c (fetch_register): Likewise.
3044 (old_fetch_inferior_registers): Likewise.
3045 (old_store_inferior_registers): Likewise.
3046 (store_regs): Likewise.
3047 * m68k-tdep.c (m68k_svr4_extract_return_value): Likewise.
3048 (m68k_svr4_store_return_value): Likewise.
3049 * m88k-tdep.c (m88k_store_arguments): Likewise.
3050 * mi/mi-main.c (mi_cmd_data_list_changed_registers): Likewise.
3051 (mi_cmd_data_write_register_values): Likewise.
3052 * mips-fbsd-nat.c (mips_fbsd_fetch_inferior_registers): Likewise.
3053 (mips_fbsd_store_inferior_registers): Likewise.
3054 * mips-fbsd-tdep.c (mips_fbsd_supply_fpregs): Likewise.
3055 (mips_fbsd_supply_gregs): Likewise.
3056 (mips_fbsd_collect_fpregs): Likewise.
3057 (mips_fbsd_collect_gregs): Likewise.
3058 (mips_fbsd_supply_fpregset): Likewise.
3059 (mips_fbsd_collect_fpregset): Likewise.
3060 (mips_fbsd_supply_gregset): Likewise.
3061 (mips_fbsd_collect_gregset): Likewise.
3062 * mips-linux-nat.c (supply_gregset): Likewise.
3063 (fill_gregset): Likewise.
3064 (supply_fpregset): Likewise.
3065 (fill_fpregset): Likewise.
3066 * mips-linux-tdep.c (mips_supply_gregset): Likewise.
3067 (mips_fill_gregset): Likewise.
3068 (mips_supply_fpregset): Likewise.
3069 (mips_fill_fpregset): Likewise.
3070 (mips64_supply_gregset): Likewise.
3071 (micromips_linux_sigframe_validate): Likewise.
3072 * mips-nbsd-nat.c (mipsnbsd_fetch_inferior_registers): Likewise.
3073 (mipsnbsd_fetch_inferior_registers): Likewise.
3074 (mipsnbsd_store_inferior_registers): Likewise.
3075 * mips-nbsd-tdep.c (mipsnbsd_supply_fpregset): Likewise.
3076 (mipsnbsd_supply_gregset): Likewise.
3077 (mipsnbsd_iterate_over_regset_sections): Likewise.
3078 (mipsnbsd_supply_reg): Likewise.
3079 (mipsnbsd_supply_fpreg): Likewise.
3080 * mips-tdep.c (mips_in_frame_stub): Likewise.
3081 (mips_dummy_id): Likewise.
3082 (is_octeon_bbit_op): Likewise.
3083 (micromips_bc1_pc): Likewise.
3084 (extended_mips16_next_pc): Likewise.
3085 (mips16_next_pc): Likewise.
3086 (deal_with_atomic_sequence): Likewise.
3087 * moxie-tdep.c (moxie_process_readu): Likewise.
3088 * nios2-tdep.c (nios2_get_next_pc): Likewise.
3089 * nto-procfs.c (procfs_store_registers): Likewise.
3090 * ppc-fbsd-nat.c (ppcfbsd_fetch_inferior_registers): Likewise.
3091 (ppcfbsd_store_inferior_registers): Likewise.
3092 * ppc-linux-nat.c (fetch_vsx_register): Likewise.
3093 (fetch_altivec_register): Likewise.
3094 (get_spe_registers): Likewise.
3095 (fetch_spe_register): Likewise.
3096 (fetch_altivec_registers): Likewise.
3097 (fetch_all_gp_regs): Likewise.
3098 (fetch_all_fp_regs): Likewise.
3099 (store_vsx_register): Likewise.
3100 (store_altivec_register): Likewise.
3101 (set_spe_registers): Likewise.
3102 (store_spe_register): Likewise.
3103 (store_altivec_registers): Likewise.
3104 (store_all_gp_regs): Likewise.
3105 (store_all_fp_regs): Likewise.
3106 * ppc-linux-tdep.c (ppc_linux_supply_gregset): Likewise.
3107 (ppc_linux_collect_gregset): Likewise.
3108 (ppc_canonicalize_syscall): Likewise.
3109 (ppc_linux_record_signal): Likewise.
3110 (ppu2spu_prev_register): Likewise.
3111 * ppc-nbsd-nat.c (ppcnbsd_supply_pcb): Likewise.
3112 * ppc-obsd-nat.c (ppcobsd_fetch_registers): Likewise.
3113 (ppcobsd_store_registers): Likewise.
3114 * ppc-ravenscar-thread.c (ppc_ravenscar_generic_fetch_registers):
3115 Likewise.
3116 (ppc_ravenscar_generic_store_registers): Likewise.
3117 * procfs.c (procfs_fetch_registers): Likewise.
3118 (procfs_store_registers): Likewise.
3119 * ravenscar-thread.c (ravenscar_fetch_registers): Likewise.
3120 (ravenscar_store_registers): Likewise.
3121 (ravenscar_prepare_to_store): Likewise.
3122 * record-btrace.c (record_btrace_fetch_registers): Likewise.
3123 * record-full.c (record_full_wait_1): Likewise.
3124 (record_full_registers_change): Likewise.
3125 (record_full_store_registers): Likewise.
3126 (record_full_core_fetch_registers): Likewise.
3127 (record_full_save): Likewise.
3128 (record_full_goto_insn): Likewise.
3129 * regcache.c (regcache_register_size): Likewise.
3130 (get_regcache_arch): Remove.
3131 (regcache_read_pc): Likewise.
3132 * regcache.h (get_regcache_arch): Remove.
3133 * remote-sim.c (gdbsim_fetch_register): Likewise.
3134 (gdbsim_store_register): Likewise.
3135 * remote.c (fetch_register_using_p): Likewise.
3136 (send_g_packet): Likewise.
3137 (remote_prepare_to_store): Likewise.
3138 (store_registers_using_G): Likewise.
3139 * reverse.c (save_bookmark_command): Likewise.
3140 (goto_bookmark_command): Likewise.
3141 * rs6000-aix-tdep.c (branch_dest): Likewise.
3142 * rs6000-nat.c (rs6000_ptrace64): Likewise.
3143 (fetch_register): Likewise.
3144 * rs6000-tdep.c (ppc_supply_reg): Likewise.
3145 (ppc_collect_reg): Likewise.
3146 (ppc_collect_gregset): Likewise.
3147 (ppc_collect_fpregset): Likewise.
3148 (ppc_collect_vsxregset): Likewise.
3149 (ppc_collect_vrregset): Likewise.
3150 (ppc_displaced_step_hw_singlestep): Likewise.
3151 (rs6000_pseudo_register_read): Likewise.
3152 (rs6000_pseudo_register_write): Likewise.
3153 * s390-linux-nat.c (supply_gregset): Likewise.
3154 (fill_gregset): Likewise.
3155 (s390_linux_fetch_inferior_registers): Likewise.
3156 * s390-linux-tdep.c (s390_write_pc): Likewise.
3157 (s390_software_single_step): Likewise.
3158 (s390_all_but_pc_registers_record): Likewise.
3159 (s390_linux_syscall_record): Likewise.
3160 * sentinel-frame.c (sentinel_frame_prev_arch): Likewise.
3161 * sh-nbsd-nat.c (shnbsd_fetch_inferior_registers): Likewise.
3162 (shnbsd_store_inferior_registers): Likewise.
3163 * sh-tdep.c (sh_extract_return_value_nofpu): Likewise.
3164 (sh_extract_return_value_fpu): Likewise.
3165 (sh_store_return_value_nofpu): Likewise.
3166 (sh_corefile_supply_regset): Likewise.
3167 (sh_corefile_collect_regset): Likewise.
3168 * sh64-tdep.c (sh64_extract_return_value): Likewise.
3169 (sh64_store_return_value): Likewise.
3170 * sparc-linux-tdep.c (sparc32_linux_collect_core_fpregset): Likewise.
3171 * sparc-nat.c (sparc_fetch_inferior_registers): Likewise.
3172 (sparc_store_inferior_registers): Likewise.
3173 * sparc-ravenscar-thread.c (register_in_thread_descriptor_p): Likewise.
3174 (sparc_ravenscar_prepare_to_store): Likewise.
3175 * sparc-tdep.c (sparc32_store_arguments): Likewise.
3176 (sparc_analyze_control_transfer): Likewise.
3177 (sparc_step_trap): Likewise.
3178 (sparc_software_single_step): Likewise.
3179 (sparc32_gdbarch_init): Likewise.
3180 (sparc_supply_rwindow): Likewise.
3181 (sparc_collect_rwindow): Likewise.
3182 * sparc64-linux-tdep.c (sparc64_linux_collect_core_fpregset): Likewise.
3183 * sparc64-nbsd-nat.c (sparc64nbsd_supply_gregset): Likewise.
3184 (sparc64nbsd_collect_gregset): Likewise.
3185 (sparc64nbsd_supply_fpregset): Likewise.
3186 (sparc64nbsd_collect_fpregset): Likewise.
3187 * sparc64-tdep.c (sparc64_store_arguments): Likewise.
3188 (sparc64_supply_gregset): Likewise.
3189 (sparc64_collect_gregset): Likewise.
3190 (sparc64_supply_fpregset): Likewise.
3191 (sparc64_collect_fpregset): Likewise.
3192 * spu-linux-nat.c (spu_fetch_inferior_registers): Likewise.
3193 * spu-tdep.c (spu_unwind_sp): Likewise.
3194 (spu2ppu_prev_register): Likewise.
3195 (spu_memory_remove_breakpoint): Likewise.
3196 * stack.c (return_command): Likewise.
3197 * tic6x-tdep.c (tic6x_extract_signed_field): Likewise.
3198 * tracefile-tfile.c (tfile_fetch_registers): Likewise.
3199 * tracefile.c (trace_save_ctf): Likewise.
3200 * windows-nat.c (do_windows_fetch_inferior_registers): Likewise.
3201 (do_windows_store_inferior_registers): Likewise.
3202 (windows_resume): Likewise.
3203 * xtensa-linux-nat.c (fill_gregset): Likewise.
3204 (supply_gregset_reg): Likewise.
3205 * xtensa-tdep.c (xtensa_register_write_masked): Likewise.
3206 (xtensa_register_read_masked): Likewise.
3207 (xtensa_supply_gregset): Likewise.
3208 (xtensa_extract_return_value): Likewise.
3209 (xtensa_store_return_value): Likewise.
3210
edd079d9
UW
32112017-10-25 Ulrich Weigand <uweigand@de.ibm.com>
3212
3213 * doublest.c (floatformat_from_string): New function.
3214 * doublest.h (floatformat_from_string): Add prototype.
3215
3216 * std-operator.def (OP_DOUBLE, OP_DECFLOAT): Remove, replace by ...
3217 (OP_FLOAT): ... this.
3218 * expression.h: Do not include "doublest.h".
3219 (union exp_element): Replace doubleconst and decfloatconst by
3220 new element floatconst.
3221 * ada-lang.c (resolve_subexp): Handle OP_FLOAT instead of OP_DOUBLE.
3222 (ada_evaluate_subexp): Likewise.
3223 * eval.c (evaluate_subexp_standard): Handle OP_FLOAT instead of
3224 OP_DOUBLE and OP_DECFLOAT.
3225 * expprint.c (print_subexp_standard): Likewise.
3226 (dump_subexp_body_standard): Likewise.
3227 * breakpoint.c (watchpoint_exp_is_const): Likewise.
3228
3229 * parse.c: Include "dfp.h".
3230 (write_exp_elt_dblcst, write_exp_elt_decfloatcst): Remove.
3231 (write_exp_elt_floatcst): New function.
3232 (operator_length_standard): Handle OP_FLOAT instead of OP_DOUBLE
3233 and OP_DECFLOAT.
3234 (operator_check_standard): Likewise.
3235 (parse_float): Do not accept suffix. Take type as input. Return bool.
3236 Return target format buffer instead of host DOUBLEST.
3237 Use floatformat_from_string and decimal_from_string to parse
3238 either binary or decimal floating-point types.
3239 (parse_c_float): Remove.
3240 * parser-defs.h: Do not include "doublest.h".
3241 (write_exp_elt_dblcst, write_exp_elt_decfloatcst): Remove.
3242 (write_exp_elt_floatcst): Add prototype.
3243 (parse_float): Update prototype.
3244 (parse_c_float): Remove.
3245
3246 * c-exp.y: Do not include "dfp.h".
3247 (typed_val_float): Use byte buffer instead of DOUBLEST.
3248 (typed_val_decfloat): Remove.
3249 (DECFLOAT): Remove.
3250 (FLOAT): Use OP_FLOAT and write_exp_elt_floatcst.
3251 (parse_number): Update to new parse_float interface.
3252 Parse suffixes and determine type before calling parse_float.
3253 Handle decimal and binary FP types the same way.
3254
3255 * d-exp.y (typed_val_float): Use byte buffer instead of DOUBLEST.
3256 (FLOAT_LITERAL): Use OP_FLOAT and write_exp_elt_floatcst.
3257 (parse_number): Update to new parse_float interface.
3258 Parse suffixes and determine type before calling parse_float.
3259
3260 * f-exp.y: Replace dval by typed_val_float.
3261 (FLOAT): Use OP_FLOAT and write_exp_elt_floatcst.
3262 (parse_number): Use parse_float instead of atof.
3263
3264 * go-exp.y (typed_val_float): Use byte buffer instead of DOUBLEST.
3265 (parse_go_float): Remove.
3266 (FLOAT): Use OP_FLOAT and write_exp_elt_floatcst.
3267 (parse_number): Call parse_float instead of parse_go_float.
3268 Parse suffixes and determine type before calling parse_float.
3269
3270 * p-exp.y (typed_val_float): Use byte buffer instead of DOUBLEST.
3271 (FLOAT): Use OP_FLOAT and write_exp_elt_floatcst.
3272 (parse_number): Update to new parse_float interface.
3273 Parse suffixes and determine type before calling parse_float.
3274
3275 * m2-exp.y: Replace dval by byte buffer val.
3276 (FLOAT): Use OP_FLOAT and write_exp_elt_floatcst.
3277 (parse_number): Call parse_float instead of atof.
3278
3279 * rust-exp.y (typed_val_float): Use byte buffer instead of DOUBLEST.
3280 (lex_number): Call parse_float instead of strtod.
3281 (ast_dliteral): Use OP_FLOAT instead of OP_DOUBLE.
3282 (convert_ast_to_expression): Handle OP_FLOAT instead of OP_DOUBLE.
3283 Use write_exp_elt_floatcst.
3284 (unit_testing): Remove static variable.
3285 (rust_type): Do not check unit_testing.
3286 (rust_lex_tests): Do not set uint_testing. Set up dummy rust_parser.
3287
3288 * ada-exp.y (type_float, type_double): Remove.
3289 (typed_val_float): Use byte buffer instead of DOUBLEST.
3290 (FLOAT): Use OP_FLOAT and write_exp_elt_floatcst.
3291 * ada-lex.l (processReal): Use parse_float instead of sscanf.
3292
cc628f3d
AH
32932017-10-25 Alan Hayward <alan.hayward@arm.com>
3294
3295 * aarch64-tdep.h (enum aarch64_regnum): Remove.
3296 * arch/aarch64.h: New file.
3297
09a7c6aa
UW
32982017-10-24 Ulrich Weigand <uweigand@de.ibm.com>
3299
3300 * dfp.h (decimal_from_string): Use const reference for argument.
3301 * dfp.c (decimal_from_string): Likewise.
3302
8ba0dd51
UW
33032017-10-24 Ulrich Weigand <uweigand@de.ibm.com>
3304
3305 * i387-tdep.c (print_i387_value): Use floatformat_to_string.
3306 * sh64-tdep.c (sh64_do_fp_register): Likewise.
3307 * mips-tdep.c (mips_print_fp_register): Likewise.
3308
16e812b2
UW
33092017-10-24 Ulrich Weigand <uweigand@de.ibm.com>
3310
3311 * common/format.h (enum argclass): Replace decfloat_arg by
3312 dec32float_arg, dec64float_arg, and dec128float_arg.
3313 * common/format.c (parse_format_string): Update to return
3314 new decimal float argument classes.
3315
3316 * printcmd.c (printf_decfloat): Rename to ...
3317 (printf_floating): ... this. Add argclass argument, and use it
3318 instead of parsing the format string again. Add support for
3319 binary floating-point values, using floatformat_to_string.
3320 Convert value to the target format if it doesn't already match.
3321 (ui_printf): Call printf_floating instead of printf_decfloat,
3322 also for double_arg / long_double_arg. Pass argclass.
3323
3324 * dfp.c (decimal_to_string): Add format string argument.
3325 * dfp.h (decimal_to_string): Likewise.
3326
3327 * doublest.c (floatformat_to_string): Add format string argument.
3328 * doublest.h (floatformat_to_string): Likewise.
3329
fdf0cbc2
UW
33302017-10-24 Ulrich Weigand <uweigand@de.ibm.com>
3331
3332 * doublest.c (floatformat_precision): New routine.
3333 (floatformat_to_string): Likewise.
3334 * doublest.c (floatformat_to_string): Add prototype.
3335
3336 * printcmd.c (print_scalar_formatted): Only call print_floating
3337 on floating-point types.
3338 * valprint.c: Do not include "floatformat.h".
3339 (generic_val_print_decfloat): Remove.
3340 (generic_val_print): Call generic_val_print_float for both
3341 TYPE_CODE_FLT and TYPE_CODE_DECFLOAT.
3342 (print_floating): Use floatformat_to_string. Handle decimal float.
3343 (print_decimal_floating): Remove, merge into floatformat_to_string.
3344 * value.h (print_decimal_floating): Remove.
3345
3346 * Makefile.in: Do not build doublest.c with -Wformat-nonliteral.
3347
5033013f
UW
33482017-10-24 Ulrich Weigand <uweigand@de.ibm.com>
3349
3350 * buildsym.c (end_symtab_get_static_block): Use std::stable_sort.
3351
a664f67e
SM
33522017-10-21 Simon Marchi <simon.marchi@ericsson.com>
3353
3354 * memattr.h: Don't include vec.h.
3355 (struct mem_attrib): Initialize fields.
3356 <unknown>: New static method.
3357 (struct mem_region): Add constructors, operator<, initialize
3358 fields.
3359 * memattr.c: Include algorithm.
3360 (default_mem_attrib, unknown_mem_attrib): Remove.
3361 (user_mem_region_list): New global.
3362 (target_mem_region_list, mem_region_list): Change type to
3363 std::vector<mem_region>.
3364 (mem_use_target): Now a function.
3365 (target_mem_regions_valid): Change type to bool.
3366 (mem_region_lessthan, mem_region_cmp, mem_region_init): Remove.
3367 (require_user_regions): Adjust.
3368 (require_target_regions): Adjust.
3369 (create_mem_region): Adjust.
3370 (lookup_mem_region): Adjust.
3371 (invalidate_target_mem_regions): Adjust.
3372 (mem_clear): Rename to...
3373 (user_mem_clear): ... this, and adjust.
3374 (mem_command): Adjust.
3375 (info_mem_command): Adjust.
3376 (mem_enable, enable_mem_command, mem_disable,
3377 disable_mem_command): Adjust.
3378 (mem_delete): Adjust.
3379 (delete_mem_command): Adjust.
3380 * memory-map.h (parse_memory_map): Return an std::vector.
3381 * memory-map.c (parse_memory_map): Likewise.
3382 (struct memory_map_parsing_data): Add constructor.
3383 <memory_map>: Point to std::vector.
3384 (memory_map_start_memory): Adjust.
3385 (memory_map_end_memory): Adjust.
3386 (memory_map_end_property): Adjust.
3387 (clear_result): Remove.
3388 * remote.c (remote_memory_map): Return an std::vector.
3389 * target-debug.h (target_debug_print_VEC_mem_region_s__p):
3390 Remove.
3391 (target_debug_print_mem_region_vector): New.
3392 * target-delegates.c: Regenerate.
3393 * target.h (mem_region_vector): New typedef.
3394 (to_memory_map): Return mem_region_vector.
3395 (target_memory_map): Return an std::vector.
3396 * target.c (target_memory_map): Return an std::vector.
3397 (flash_erase_command): Adjust.
3398
6e17c565
SM
33992017-10-21 Simon Marchi <simon.marchi@ericsson.com>
3400
3401 * memory-map.c (struct memory_map_parsing_data) <property_name>:
3402 Change type to std::string.
3403 (memory_map_start_property): Adjust.
3404 (memory_map_end_property): Adjust.
3405
cfba9872
SM
34062017-10-21 Simon Marchi <simon.marchi@polymtl.ca>
3407
3408 * infrun.h: Include common/byte-vector.h.
3409 (struct displaced_step_closure): New struct.
3410 (struct buf_displaced_step_closure): New struct.
3411 * infrun.c (displaced_step_closure::~displaced_step_closure):
3412 Provide default implementation.
3413 (displaced_step_clear): Deallocate step closure with delete.
3414 * aarch64-tdep.c (displaced_step_closure): Rename to ...
3415 (aarch64_displaced_step_closure): ... this, extend
3416 displaced_step_closure.
3417 (aarch64_displaced_step_data) <dsc>: Change type to
3418 aarch64_displaced_step_closure.
3419 (aarch64_displaced_step_copy_insn): Adjust to type change, use
3420 unique_ptr.
3421 (aarch64_displaced_step_fixup): Add cast for displaced step
3422 closure.
3423 * amd64-tdep.c (displaced_step_closure): Rename to ...
3424 (amd64_displaced_step_closure): ... this, extend
3425 displaced_step_closure.
3426 <insn_buf>: Change type to std::vector<gdb_byte>.
3427 <max_len>: Remove.
3428 (fixup_riprel): Change type of DSC parameter, adjust to type
3429 change of insn_buf.
3430 (fixup_displaced_copy): Change type of DSC parameter.
3431 (amd64_displaced_step_copy_insn): Instantiate
3432 amd64_displaced_step_closure.
3433 (amd64_displaced_step_fixup): Add cast for closure type, adjust
3434 to type change of insn_buf.
3435 * arm-linux-tdep.c (arm_linux_cleanup_svc): Change type of
3436 parameter DSC.
3437 (arm_linux_copy_svc): Likewise.
3438 (cleanup_kernel_helper_return): Likewise.
3439 (arm_catch_kernel_helper_return): Likewise.
3440 (arm_linux_displaced_step_copy_insn): Instantiate
3441 arm_displaced_step_closure.
3442 * arm-tdep.c (arm_pc_is_thumb): Add cast for closure.
3443 (displaced_read_reg): Change type of parameter DSC.
3444 (branch_write_pc): Likewise.
3445 (load_write_pc): Likewise.
3446 (alu_write_pc): Likewise.
3447 (displaced_write_reg): Likewise.
3448 (arm_copy_unmodified): Likewise.
3449 (thumb_copy_unmodified_32bit): Likewise.
3450 (thumb_copy_unmodified_16bit): Likewise.
3451 (cleanup_preload): Likewise.
3452 (install_preload): Likewise.
3453 (arm_copy_preload): Likewise.
3454 (thumb2_copy_preload): Likewise.
3455 (install_preload_reg): Likewise.
3456 (arm_copy_preload_reg): Likewise.
3457 (cleanup_copro_load_store): Likewise.
3458 (install_copro_load_store): Likewise.
3459 (arm_copy_copro_load_store) Likewise.
3460 (thumb2_copy_copro_load_store): Likewise.
3461 (cleanup_branch): Likewise.
3462 (install_b_bl_blx): Likewise.
3463 (arm_copy_b_bl_blx): Likewise.
3464 (thumb2_copy_b_bl_blx): Likewise.
3465 (thumb_copy_b): Likewise.
3466 (install_bx_blx_reg): Likewise.
3467 (arm_copy_bx_blx_reg): Likewise.
3468 (thumb_copy_bx_blx_reg): Likewise.
3469 (cleanup_alu_imm): Likewise.
3470 (arm_copy_alu_imm): Likewise.
3471 (thumb2_copy_alu_imm): Likewise.
3472 (cleanup_alu_reg): Likewise.
3473 (install_alu_reg): Likewise.
3474 (arm_copy_alu_reg): Likewise.
3475 (thumb_copy_alu_reg): Likewise.
3476 (cleanup_alu_shifted_reg): Likewise.
3477 (install_alu_shifted_reg): Likewise.
3478 (arm_copy_alu_shifted_reg): Likewise.
3479 (cleanup_load): Likewise.
3480 (cleanup_store): Likewise.
3481 (arm_copy_extra_ld_st): Likewise.
3482 (install_load_store): Likewise.
3483 (thumb2_copy_load_literal): Likewise.
3484 (thumb2_copy_load_reg_imm): Likewise.
3485 (arm_copy_ldr_str_ldrb_strb): Likewise.
3486 (cleanup_block_load_all): Likewise.
3487 (cleanup_block_store_pc): Likewise.
3488 (cleanup_block_load_pc): Likewise.
3489 (arm_copy_block_xfer): Likewise.
3490 (thumb2_copy_block_xfer): Likewise.
3491 (cleanup_svc): Likewise.
3492 (install_svc): Likewise.
3493 (arm_copy_svc): Likewise.
3494 (thumb_copy_svc): Likewise.
3495 (arm_copy_undef): Likewise.
3496 (thumb_32bit_copy_undef): Likewise.
3497 (arm_copy_unpred): Likewise.
3498 (arm_decode_misc_memhint_neon): Likewise.
3499 (arm_decode_unconditional): Likewise.
3500 (arm_decode_miscellaneous): Likewise.
3501 (arm_decode_dp_misc): Likewise.
3502 (arm_decode_ld_st_word_ubyte): Likewise.
3503 (arm_decode_media): Likewise.
3504 (arm_decode_b_bl_ldmstm): Likewise.
3505 (arm_decode_ext_reg_ld_st): Likewise.
3506 (thumb2_decode_dp_shift_reg): Likewise.
3507 (thumb2_decode_ext_reg_ld_st): Likewise.
3508 (arm_decode_svc_copro): Likewise.
3509 (thumb2_decode_svc_copro): Likewise.
3510 (install_pc_relative): Likewise.
3511 (thumb_copy_pc_relative_16bit): Likewise.
3512 (thumb_decode_pc_relative_16bit): Likewise.
3513 (thumb_copy_pc_relative_32bit): Likewise.
3514 (thumb_copy_16bit_ldr_literal): Likewise.
3515 (thumb_copy_cbnz_cbz): Likewise.
3516 (thumb2_copy_table_branch): Likewise.
3517 (cleanup_pop_pc_16bit_all): Likewise.
3518 (thumb_copy_pop_pc_16bit): Likewise.
3519 (thumb_process_displaced_16bit_insn): Likewise.
3520 (decode_thumb_32bit_ld_mem_hints): Likewise.
3521 (thumb_process_displaced_32bit_insn): Likewise.
3522 (thumb_process_displaced_insn): Likewise.
3523 (arm_process_displaced_insn): Likewise.
3524 (arm_displaced_init_closure): Likewise.
3525 (arm_displaced_step_fixup): Add cast for closure.
3526 * arm-tdep.h: Include infrun.h.
3527 (displaced_step_closure): Rename to ...
3528 (arm_displaced_step_closure): ... this, extend
3529 displaced_step_closure.
3530 <u::svc::copy_svc_os>: Change type of parameter DSC.
3531 <cleanup>: Likewise.
3532 (arm_process_displaced_insn): Likewise.
3533 (arm_displaced_init_closure): Likewise.
3534 (displaced_read_reg): Likewise.
3535 (displaced_write_reg): Likewise.
3536 * i386-linux-tdep.c (i386_linux_displaced_step_copy_insn):
3537 Adjust.
3538 * i386-tdep.h: Include infrun.h.
3539 (i386_displaced_step_closure): New typedef.
3540 * i386-tdep.c (i386_displaced_step_copy_insn): Use
3541 i386_displaced_step_closure.
3542 (i386_displaced_step_fixup): Adjust.
3543 * rs6000-tdep.c (ppc_displaced_step_closure): New typedef.
3544 (ppc_displaced_step_copy_insn): Use ppc_displaced_step_closure
3545 and unique_ptr.
3546 (ppc_displaced_step_fixup): Adjust.
3547 * s390-linux-tdep.c (s390_displaced_step_closure): New typedef.
3548 (s390_displaced_step_copy_insn): Use s390_displaced_step_closure
3549 and unique_ptr.
3550 (s390_displaced_step_fixup): Adjust.
3551
b392b304
SM
35522017-10-21 Simon Marchi <simon.marchi@polymtl.ca>
3553
3554 * interps.h (interp_resume, interp_suspend, interp_set_temp):
3555 Remove declarations.
3556
d5833c62
TT
35572017-10-20 Tom Tromey <tom@tromey.com>
3558
3559 * gdb_bfd.c (struct gdb_bfd_data) <included_bfds>: Now a
3560 std::vector.
3561 (gdb_bfd_record_inclusion): Update.
3562 (bfdp): Remove typedef.
3563
06d5bbc8
TT
35642017-10-20 Tom Tromey <tom@tromey.com>
3565
3566 * gdb_bfd.c (gdb_bfd_ref): Use new.
3567 (struct gdb_bfd_data): Add constructor, destructor, and member
3568 initializers.
3569 (gdb_bfd_unref): Use delete.
3570
2712ce2e
TT
35712017-10-20 Tom Tromey <tom@tromey.com>
3572
3573 * exec.c (exec_file_attach): Use new_bfd_ref.
3574 * symfile-mem.c (symbol_file_add_from_memory): Use new_bfd_ref.
3575 * gdb_bfd.c (gdb_bfd_open, gdb_bfd_fopen, gdb_bfd_openr)
3576 (gdb_bfd_openw, gdb_bfd_openr_iovec, gdb_bfd_fdopenr): Use
3577 new_bfd_ref.
3578 * gdb_bfd.h (new_bfd_ref): New function.
3579
fcc8fb2f
PA
35802017-10-20 Pedro Alves <palves@redhat.com>
3581
3582 * main.c (captured_command_loop): Add attribute noinline.
3583
4c2287b0
SM
35842017-10-19 Simon Marchi <simon.marchi@ericsson.com>
3585
3586 * interps.c (struct interp_factory): Add constructor.
3587 (interp_factory_p): Remove typedef.
3588 (DEF_VEC_P(interp_factory_p)): Remove.
3589 (interpreter_factories): Change type to std::vector.
3590 (interp_factory_register): Adjust.
3591 (interp_lookup): Adjust.
3592 (interpreter_completer): Adjust.
3593
3d415c26
TT
35942017-10-19 Tom Tromey <tom@tromey.com>
3595
3596 * break-catch-syscall.c (catch_syscall_completer): Use
3597 std::string, gdb::unique_xmalloc_ptr.
3598
395423c4
TT
35992017-10-19 Tom Tromey <tom@tromey.com>
3600
3601 * infcall.c (call_function_by_hand_dummy): Use std::string.
3602
54f70bc1
TT
36032017-10-19 Tom Tromey <tom@tromey.com>
3604
3605 * mi/mi-main.c (mi_cmd_execute): Update.
3606 * top.h (prepare_execute_command): Return scoped_value_mark.
3607 * value.h (class scoped_value_mark): Use DISABLE_COPY_AND_ASSIGN.
3608 Add move constructor.
3609 * top.c (prepare_execute_command): Return scoped_value_mark.
3610 (execute_command): Update.
3611
63929e84
PA
36122017-10-19 Pedro Alves <palves@redhat.com>
3613
3614 * xml-support.c (xml_fetch_content_from_file): Check fread's
3615 return.
3616
a75868f5
PA
36172017-10-19 Pedro Alves <palves@redhat.com>
3618
3619 * ser-base.c (ser_base_read_error_fd): Delete the file handler if
3620 async.
3621 (handle_error_fd): New function.
3622 (ser_base_async): Add/delete an event loop file handler for
3623 error_fd.
3624
2edf834e
PA
36252017-10-19 Pedro Alves <palves@redhat.com>
3626
3627 * xml-support.c (xml_fetch_content_from_file): Don't read in
3628 chunks. Instead use fseek to determine the file's size, and read
3629 it in one go.
3630
c8ba13ad
KS
36312017-11-18 Keith Seitz <keiths@redhat.com>
3632
3633 * c-exp.y (oper): Canonicalize conversion operators of user-defined
3634 types.
3635 Add whitespace to front of type name.
3636
37534686
KS
36372017-10-18 Keith Seitz <keiths@redhat.com>
3638
3639 * dwarf2read.c (dwarf2_add_typedef): Issue a complaint on unhandled
3640 DW_AT_accessibility.
3641
28c7c158
YQ
36422017-10-18 Yao Qi <yao.qi@linaro.org>
3643
3644 * features/tic6x-c62x-linux.c: Remove.
3645
30f0b101
TT
36462017-10-17 Tom Tromey <tom@tromey.com>
3647
3648 * disasm.c (do_mixed_source_and_assembly_deprecated): Use
3649 gdb::optional, ui_out_emit_list, ui_out_emit_tuple.
3650 (do_mixed_source_and_assembly): Likewise.
3651
57e12da9
TT
36522017-10-17 Tom Tromey <tom@tromey.com>
3653
3654 * regcache.c (regcache::xfer_part): Remove assertion.
3655
7b700999
PA
36562017-10-17 Pedro Alves <palves@redhat.com>
3657
3658 * xml-support.c (xml_fetch_content_from_file): Call
3659 unique_ptr::release() instead unique_ptr::get() when passing
3660 through xrealloc.
3661
d3037ba6
YQ
36622017-10-17 Yao Qi <yao.qi@linaro.org>
3663
3664 * regcache.c (regcache::xfer_part): Remove parameters read and
3665 write, add parameter is_raw. All callers are updated.
3666
83d5a34d
KS
36672017-10-16 Keith Seitz <keiths@redhat.com>
3668
3669 * c-typeprint.c (enum access_specifier): Moved here from
3670 c_type_print_base.
3671 (output_access_specifier): New function.
3672 (c_type_print_base): Consider typedefs when assessing
3673 whether access labels are needed.
3674 Use output_access_specifier as needed.
3675 Output access specifier for typedefs, if needed.
3676 * dwarf2read.c (dwarf2_add_typedef): Record DW_AT_accessibility.
3677 * gdbtypes.h (struct typedef_field) <is_protected, is_private>: New
3678 fields.
3679 (TYPE_TYPEDEF_FIELD_PROTECTED, TYPE_TYPEDEF_FIELD_PRIVATE): New
3680 accessor macros.
3681
87028b87
TT
36822017-10-16 Tom Tromey <tom@tromey.com>
3683
3684 * linux-tdep.c (linux_info_proc, linux_find_memory_regions_full)
3685 (linux_fill_prpsinfo, linux_vsyscall_range_raw): Update.
3686 * target.c (target_fileio_read_stralloc): Update.
3687 * sparc64-tdep.c (adi_is_addr_mapped): Update.
3688 * target.h (target_fileio_read_stralloc): Return
3689 unique_xmalloc_ptr.
3690
b7b030ad
TT
36912017-10-16 Tom Tromey <tom@tromey.com>
3692
3693 * xml-syscall.c (xml_init_syscalls_info): Update.
3694 * xml-support.c (xinclude_start_include): Update.
3695 (xml_fetch_content_from_file): Return unique_xmalloc_ptr.
3696 * xml-support.h (xml_fetch_another): Return unique_xmalloc_ptr.
3697 (xml_fetch_content_from_file): Likewise.
3698 * osdata.c (get_osdata): Update.
3699 * target.h (target_read_stralloc, target_get_osdata): Return
3700 unique_xmalloc_ptr.
3701 * solib-aix.c (solib_aix_get_library_list): Update.
3702 * solib-target.c (solib_target_current_sos): Update.
3703 * solib-svr4.c (svr4_current_sos_via_xfer_libraries): Update.
3704 * xml-tdesc.c (fetch_available_features_from_target): Update.
3705 (target_fetch_description_xml): Update.
3706 (file_read_description_xml): Update.
3707 * remote.c (remote_get_threads_with_qxfer, remote_memory_map)
3708 (remote_traceframe_info, btrace_read_config, remote_read_btrace)
3709 (remote_pid_to_exec_file): Update.
3710 * target.c (target_read_stralloc): Return unique_xmalloc_ptr.
3711 (target_get_osdata): Likewise.
3712
b80406ac
TT
37132017-10-16 Tom Tromey <tom@tromey.com>
3714
3715 * remote.c (remote_register_number_and_offset): Use std::vector.
3716 (remote_set_syscall_catchpoint): Use gdb::unique_xmalloc_ptr.
3717 (putpkt_binary): Use gdb::def_vector.
3718 (compare_sections_command): Use gdb::byte_vector.
3719
a90ecff8
TT
37202017-10-16 Tom Tromey <tom@tromey.com>
3721
3722 * ppc-linux-nat.c (hwdebug_insert_point): Use
3723 gdb::unique_xmalloc_ptr, XDUP.
3724
2dc0e219
TT
37252017-10-16 Tom Tromey <tom@tromey.com>
3726
3727 * probe.c (parse_probes): Use std::string.
3728 (info_probes_for_ops, enable_probes_command)
3729 (disable_probes_command): Remove cleanups.
3730
b05628f0
TT
37312017-10-16 Tom Tromey <tom@tromey.com>
3732
3733 * buildsym.c (block_compar): Remove.
3734 (end_symtab_get_static_block): Use std::vector.
3735
a79b1bc6
SM
37362017-10-16 Simon Marchi <simon.marchi@ericsson.com>
3737
3738 * memrange.h (struct mem_range): Define operator< and operator==.
3739 (mem_range_s): Remove.
3740 (DEF_VEC_O (mem_range_s)): Remove.
3741 (normalize_mem_ranges): Change parameter type to std::vector.
3742 * memrange.c (compare_mem_ranges): Remove.
3743 (normalize_mem_ranges): Change parameter type to std::vector,
3744 adjust to vector change.
3745 * exec.c (section_table_available_memory): Return vector, remove
3746 parameter.
3747 (section_table_read_available_memory): Adjust to std::vector
3748 change.
3749 * remote.c (remote_read_bytes): Adjust to std::vector
3750 change.
3751 * tracepoint.h (traceframe_available_memory): Change parameter
3752 type to std::vector.
3753 * tracepoint.c (traceframe_available_memory): Change parameter
3754 type to std::vector, adjust.
3755 * gdb/mi/mi-main.c (mi_cmd_trace_frame_collected): Adjust to
3756 std::vector change.
3757 * gdb/Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
3758 unittests/memrange-selftests.c.
3759 (SUBDIR_UNITTESTS_OBS): Add memrange-selftests.o.
3760 * gdb/unittests/memrange-selftests.c: New file.
3761
63f0e930
PA
37622017-10-16 Pedro Alves <palves@redhat.com>
3763
3764 * elfread.c (probe_key_free): Rename range-for variable.
3765 * probe.c (parse_probes_in_pspace, find_probes_in_objfile)
3766 (find_probe_by_pc, collect_probes): Rename range-for variable.
3767
c40c7bfc
YQ
37682017-10-16 Yao Qi <yao.qi@linaro.org>
3769
3770 * features/Makefile (XMLTOC): Remove tic6x-*.xml.
3771 * features/tic6x-c62x.c: Remove.
3772 * features/tic6x-c64x-linux.c: Remove.
3773 * features/tic6x-c64x.c: Remove.
3774 * features/tic6x-c64xp-linux.c: Remove.
3775 * features/tic6x-c64xp.c: Remove.
3776 * tic6x-linux-tdep.c (_initialize_tic6x_linux_tdep): Don't call
3777 initialize_tdesc_tic6x_*_linux functions.
3778 * tic6x-tdep.c (_initialize_tic6x_tdep): Don't call
3779 initialize_tdesc_tic6x_* functions.
3780
df27ae6a
YQ
37812017-10-16 Yao Qi <yao.qi@linaro.org>
3782
3783 * features/Makefile (WHICH): Remove tic6x-c64xp, tic6x-c64x
3784 tic6x-c62x.
3785 * regformats/tic6x-c62x.dat: Remove.
3786 * regformats/tic6x-c64x.dat: Remove.
3787 * regformats/tic6x-c64xp.dat: Remove.
3788
86766165
SM
37892017-10-15 Simon Marchi <simon.marchi@ericsson.com>
3790
3791 * tracepoint.c (parse_traceframe_info): Return a unique_ptr
3792 (the !HAVE_LIBEXPAT version).
3793
824dfcc3
SM
37942017-10-14 Simon Marchi <simon.marchi@ericsson.com>
3795
3796 * nat/linux-osdata.c (struct pid_pgid_entry) <operator<>: Make
3797 const.
3798
2098b393
SM
37992017-10-14 Simon Marchi <simon.marchi@polymtl.ca>
3800
3801 * target.h: Include tracepoint.h.
3802 (enum trace_find_type): Move to tracepoint.h.
3803 (struct target_ops) <to_traceframe_info>: Return a unique ptr.
3804 * tracepoint.h: Don't include target.h
3805 (enum trace_find_type): Move from target.h.
3806 (parse_traceframe_info): Return a unique ptr.
3807 * tracepoint.c (current_traceframe_info): Change type to unique
3808 ptr.
3809 (free_traceframe_info): Remove.
3810 (clear_traceframe_info): Don't manually free
3811 current_traceframe_info.
3812 (free_result): Remove.
3813 (parse_traceframe_info): Return a unique ptr.
3814 (get_traceframe_info): Adjust to unique ptr.
3815 * ctf.c (ctf_traceframe_info): Return a unique ptr.
3816 * remote.c (remote_traceframe_info): Return a unique ptr.
3817 * tracefile-tfile.c (tfile_traceframe_info): Return a unique
3818 ptr.
3819 * target-debug.h (target_debug_print_traceframe_info_up): New
3820 macro.
3821 * target-delegates.c: Regenerate.
3822
4cdd21a8
SM
38232017-10-14 Simon Marchi <simon.marchi@polymtl.ca>
3824
3825 * memrange.h (struct mem_range): Add constructors.
3826 * tracepoint.h (struct traceframe_info) <memory>: Change type to
3827 std::vector<mem_range>.
3828 * tracepoint.c (free_traceframe_info): Don't manually free
3829 vector.
3830 (traceframe_info_start_memory): Adjust to vector change.
3831 (traceframe_available_memory): Likewise.
3832 * tracefile-tfile.c (build_traceframe_info): Likewise.
3833 * ctf.c (ctf_traceframe_info): Likewise.
3834
d0d292a2
SM
38352017-10-14 Simon Marchi <simon.marchi@polymtl.ca>
3836
3837 * tracepoint.h (struct traceframe_info) <tvars>: Change type to
3838 std::vector<int>.
3839 * tracepoint.c (free_traceframe_info): Deallocate with delete.
3840 (traceframe_info_start_tvar): Adjust to vector change.
3841 (parse_traceframe_info): Allocate with new.
3842 * ctf.c (ctf_traceframe_info): Allocate with new, adjust to
3843 vector change.
3844 * tracefile-tfile.c (build_traceframe_info): Adjust to vector
3845 change.
3846 tfile_traceframe_info): Allocate with new.
3847 * mi/mi-main.c (mi_cmd_trace_frame_collected): Adjust to vector
3848 change.
3849
8d3c73ef
SM
38502017-10-14 Simon Marchi <simon.marchi@polymtl.ca>
3851
3852 * tracepoint.c (traceframe_info): Rename to...
3853 (current_traceframe_info): ...this.
3854 (clear_traceframe_info): Adjust.
3855 (get_traceframe_info): Adjust.
3856
b129dcac
SM
38572017-10-14 Simon Marchi <simon.marchi@ericsson.com>
3858
3859 * nat/linux-osdata.c: Include algorithm.
3860 (compare_processes): Remove.
3861 (struct pid_pgid_entry): New struct.
3862 (linux_xfer_osdata_processgroups): Use std::vector instead of
3863 XNEWVEC.
3864
af5bf4ad
SM
38652017-10-14 Simon Marchi <simon.marchi@ericsson.com>
3866
3867 * objfiles.h: Don't include symfile.h.
3868 (struct partial_symbol): Remove forward-declaration.
3869 (struct objfile) <global_psymbols, static_psymbols>: Change type
3870 to std::vector<partial_symbol *>.
3871 * objfiles.c (objfile::objfile): Don't memset those fields.
3872 (objfile::~objfile): Don't free those fields.
3873 * psympriv.h (struct psymbol_allocation_list): Remove
3874 forward-declaration.
3875 (add_psymbol_to_list): Change psymbol_allocation_list parameter
3876 to std::vector.
3877 (start_psymtab_common): Change parameters to std::vector.
3878 * psymtab.c: Include algorithm.
3879 (require_partial_symbols): Call shrink_to_fit.
3880 (find_pc_sect_psymbol): Adjust to vector change.
3881 (match_partial_symbol): Likewise.
3882 (lookup_partial_symbol): Likewise.
3883 (psym_relocate): Likewise.
3884 (dump_psymtab): Likewise.
3885 (recursively_search_psymtabs): Likewise.
3886 (compare_psymbols): Remove.
3887 (sort_pst_symbols): Adjust to vector change.
3888 (start_psymtab_common): Likewise.
3889 (end_psymtab_common): Likewise.
3890 (psymbol_bcache_full): De-constify return value.
3891 (add_psymbol_to_bcache): Likewise.
3892 (extend_psymbol_list): Remove.
3893 (append_psymbol_to_list): Adjust to vector change.
3894 (add_psymbol_to_list): Likewise.
3895 (init_psymbol_list): Likewise.
3896 (maintenance_info_psymtabs): Likewise.
3897 (maintenance_check_psymtabs): Likewise.
3898 * symfile.h (struct psymbol_allocation_list): Remove.
3899 * symfile.c (reread_symbols): Adjust to vector change.
3900 * dbxread.c (start_psymtab): Change type of parameters.
3901 (dbx_symfile_read): Adjust to vector change.
3902 (read_dbx_symtab): Likewise.
3903 (start_psymtab): Change type of parameters.
3904 * dwarf2read.c (dwarf2_build_psymtabs): Adjust to vector change.
3905 (create_partial_symtab): Likewise.
3906 (add_partial_symbol): Likewise.
3907 (write_one_signatured_type): Likewise.
3908 (recursively_write_psymbols): Likewise.
3909 * mdebugread.c (parse_partial_symbols): Likewise.
3910 * xcoffread.c (xcoff_start_psymtab): Change type of parameters.
3911 (scan_xcoff_symtab): Adjust to vector change.
3912 (xcoff_initial_scan): Likewise.
3913
3ec5942f
SM
39142017-10-13 Simon Marchi <simon.marchi@ericsson.com>
3915
3916 * ada-typeprint.c (print_dynamic_range_bound): Use std::string.
3917
2399fe6a
YQ
39182017-10-13 Yao Qi <yao.qi@linaro.org>
3919
3920 * features/Makefile: Remove tic6x-*-expedite, add tic6x-expedite.
3921 Remove s390x-*-expedite, add s390x-expedite.
3922
4bf3f4a8
YQ
39232017-10-13 Yao Qi <yao.qi@linaro.org>
3924
3925 * features/s390-gs-linux64.c: Regenerated.
3926 * features/s390x-gs-linux64.c: Regenerated.
3927
9e86da07
TT
39282017-10-13 Tom Tromey <tom@tromey.com>
3929
3930 * compile/compile-object-run.c (do_module_cleanup): Use delete.
3931 * solib.c (update_solib_list, reload_shared_libraries_1): Use
3932 delete.
3933 * symfile.c (symbol_file_add_with_addrs): Use new.
3934 (symbol_file_add_separate): Update comment.
3935 (syms_from_objfile_1, remove_symbol_file_command): Use delete.
3936 * jit.c (jit_object_close_impl): Use new.
3937 (jit_unregister_code): Use delete.
3938 * objfiles.c (objfile::objfile): Rename from allocate_objfile.
3939 (~objfile): Rename from free_objfile.
3940 (free_objfile_separate_debug, do_free_objfile_cleanup)
3941 (free_all_objfiles, objfile_purge_solibs): Use delete.
3942 * objfiles.h (struct objfile): Add constructor and destructor.
3943 Use DISABLE_COPY_AND_ASSIGN. Add initializers to data members.
3944 (allocate_objfile, free_objfile): Don't declare.
3945 (struct objstats): Add initializers.
3946
c2508e90
SM
39472017-10-12 Simon Marchi <simon.marchi@ericsson.com>
3948
3949 * arch-utils.h (simple_displaced_step_copy_insn): Remove.
3950 * arch-utils.c (simple_displaced_step_copy_insn): Remove.
3951 * gdbarch.sh (displaced_step_copy_insn): Adjust comment.
3952 * gdbarch.h: Regenerate.
3953 * i386-linux-tdep.c (i386_linux_displaced_step_copy_insn):
3954 Adjust comment.
3955 * i386-tdep.c (i386_displaced_step_copy_insn): Adjust comment.
3956 (i386_displaced_step_fixup): Adjust comment.
3957 * rs6000-tdep.c (ppc_displaced_step_copy_insn): Adjust comment.
3958
a900ff72
TT
39592017-10-12 Tom Tromey <tom@tromey.com>
3960
3961 * prologue-value.h (pv_area::store_would_trash): Return bool.
3962 (pv_area::find_reg): Likewise.
3963 * prologue-value.c (pv_area::store_would_trash): Return bool.
3964 (pv_area::find_reg): Likewise.
3965
f7b7ed97
TT
39662017-10-12 Tom Tromey <tom@tromey.com>
3967
3968 * s390-linux-tdep.c (s390_store, s390_load)
3969 (s390_check_for_saved, s390_analyze_prologue): Update.
3970 * rx-tdep.c (check_for_saved, rx_analyze_prologue): Update.
3971 * rl78-tdep.c (rl78_analyze_prologue, check_for_saved): Update.
3972 * prologue-value.h (class pv_area): Move from prologue-value.c.
3973 Change names of members. Add constructor, destructor, member
3974 functions.
3975 (make_pv_area, free_pv_area, make_cleanup_free_pv_area)
3976 (pv_area_store, pv_area_fetch, pv_area_store_would_trash)
3977 (pv_area_fetch, pv_area_scan): Don't declare.
3978 * prologue-value.c (struct pv_area::area_entry): Now member of
3979 pv_area.
3980 (struct pv_area): Move to prologue-value.h.
3981 (pv_area::pv_area): Rename from make_pv_area.
3982 (pv_area::~pv_area): Rename from free_pv_area.
3983 (do_free_pv_area_cleanup, make_cleanup_free_pv_area): Remove.
3984 (clear_entries, find_entry, overlaps, store_would_trash, store)
3985 (fetch, find_reg, scan): Now member of pv_area.
3986 Remove "area" argument. Update.
3987 * msp430-tdep.c (check_for_saved, msp430_analyze_prologue):
3988 Update.
3989 * mn10300-tdep.c (push_reg, check_for_saved)
3990 (mn10300_analyze_prologue): Update.
3991 * mep-tdep.c (is_arg_spill, check_for_saved)
3992 (mep_analyze_prologue): Update.
3993 * m32c-tdep.c (m32c_pv_push, m32c_srcdest_fetch)
3994 (m32c_srcdest_store, m32c_pv_enter, m32c_is_arg_spill)
3995 (m32c_is_struct_return, m32c_analyze_prologue): Update.
3996 * arm-tdep.c (thumb_analyze_prologue, arm_analyze_prologue):
3997 Update.
3998 * arc-tdep.c (arc_is_in_prologue, arc_analyze_prologue): Update.
3999 * aarch64-tdep.c (aarch64_analyze_prologue): Update.
4000
466eecee
SM
40012017-10-12 Simon Marchi <simon.marchi@ericsson.com>
4002
4003 * linux-nat.h (linux_nat_set_delete_thread): New declaration.
4004 * linux-nat.c (linux_nat_delete_thread): New variable.
4005 (lwp_free): Invoke linux_nat_delete_thread if set.
4006 (linux_nat_set_delete_thread): New function.
4007 * aarch64-linux-nat.c (_initialize_aarch64_linux_nat): Assign
4008 thread delete callback.
4009 * arm-linux-nat.c (arm_linux_delete_thread): New function.
4010 (_initialize_arm_linux_nat): Assign thread delete callback.
4011 * s390-linux-nat.c (s390_delete_thread): New function.
4012 (_initialize_s390_nat): Assign thread delete callback.
4013 * x86-linux-nat.c (x86_linux_add_target): Likewise.
4014 * nat/aarch64-linux.c (aarch64_linux_delete_thread): New
4015 function.
4016 * nat/aarch64-linux.h (aarch64_linux_delete_thread): New
4017 declaration.
4018 * nat/x86-linux.c (x86_linux_delete_thread): New function.
4019 * nat/x86-linux.h (x86_linux_delete_thread): New declaration.
4020
f71c8822
TT
40212017-10-09 Tom Tromey <tom@tromey.com>
4022
4023 * tui/tui-win.c (tui_set_win_height, parse_scrolling_args): Use
4024 std::string.
4025 * tui/tui-layout.c (enum tui_status): Use std::string.
4026
981a3fb3
TT
40272017-10-11 Tom Tromey <tom@tromey.com>
4028
4029 * gdbthread.h (thread_command): Constify.
4030 * inferior.h (detach_command): Constify.
4031 * top.h (set_history, show_history): Constify.
4032 * arm-tdep.c (set_arm_command, show_arm_command): Constify.
4033 * serial.c (serial_set_cmd, serial_show_cmd): Constify.
4034 * bsd-kvm.c (bsd_kvm_cmd): Constify.
4035 * printcmd.c (set_command): Constify.
4036 (non_const_set_command): New function.
4037 * dcache.c (set_dcache_command, show_dcache_command): Constify.
4038 * breakpoint.c (enable_command, disable_command, delete_command)
4039 (catch_command, tcatch_command, set_breakpoint_cmd)
4040 (show_breakpoint_cmd): Constify.
4041 * macrocmd.c (macro_command): Constify.
4042 * infcmd.c (unset_command, kill_command, detach_command)
4043 (info_proc_cmd): Constify.
4044 * i386-tdep.c (set_mpx_cmd, show_mpx_cmd): Constify.
4045 * auto-load.c (show_auto_load_cmd, set_auto_load_cmd)
4046 (info_auto_load_cmd): Constify.
4047 * target-descriptions.c (set_tdesc_cmd, show_tdesc_cmd)
4048 (unset_tdesc_cmd): Constify.
4049 * ada-lang.c (set_ada_command, show_ada_command)
4050 (maint_set_ada_cmd, maint_show_ada_cmd): Constify.
4051 * guile/guile.c (set_guile_command, show_guile_command)
4052 (info_guile_command): Constify.
4053 * tui/tui-win.c (tui_command, set_tui_cmd, show_tui_cmd):
4054 Constify.
4055 * skip.c (skip_command): Constify.
4056 * compile/compile.c (_initialize_compile): Constify.
4057 * dwarf2read.c (set_dwarf_cmd, show_dwarf_cmd): Constify.
4058 * btrace.c (maint_btrace_cmd, maint_btrace_set_cmd)
4059 (maint_btrace_show_cmd, maint_btrace_pt_set_cmd)
4060 (maint_btrace_pt_show_cmd): Constify.
4061 * remote.c (set_remote_cmd, show_remote_cmd, remote_command):
4062 Constify.
4063 * python/python.c (user_show_python, user_set_python): Constify.
4064 * mips-tdep.c (set_mips_command, show_mips_command)
4065 (set_mipsfpu_command): Constify.
4066 * record-btrace.c (cmd_record_btrace_start)
4067 (cmd_set_record_btrace, cmd_show_record_btrace)
4068 (cmd_set_record_btrace_bts, cmd_show_record_btrace_bts)
4069 (cmd_set_record_btrace_pt, cmd_show_record_btrace_pt): Constify.
4070 * rs6000-tdep.c (set_powerpc_command, show_powerpc_command):
4071 Constify.
4072 * symfile.c (overlay_command): Constify.
4073 * spu-tdep.c (set_spu_command, show_spu_command): Constify.
4074 * cli/cli-logging.c (set_logging_command, show_logging_command):
4075 Constify.
4076 * cli/cli-dump.c (dump_command, append_command)
4077 (srec_dump_command, ihex_dump_command, verilog_dump_command)
4078 (tekhex_dump_command, binary_dump_command)
4079 (binary_append_command): Constify.
4080 * cli/cli-decode.c (struct cmd_list_element): Change type of
4081 "fun".
4082 * cli/cli-cmds.c (info_command, show_command, set_debug)
4083 (show_debug): Constify.
4084 (show_command): Add non-const overload.
4085 * top.c (set_history, show_history): Constify.
4086 * sh-tdep.c (set_sh_command, show_sh_command): Constify.
4087 * command.h (add_prefix_cmd): Accept a cmd_const_cfunc_ftype.
4088 * target.c (target_command): Constify.
4089 * sparc64-tdep.c (info_adi_command): Constify.
4090 * record-full.c (cmd_record_full_start): Constify.
4091 (set_record_full_command): Constify. Fix typo.
4092 (show_record_full_command): Constify.
4093 * thread.c (thread_command, thread_apply_command): Constify.
4094 * memattr.c (dummy_cmd): Constify.
4095 * value.c (function_command): Constify.
4096 * frame.c (set_backtrace_cmd, show_backtrace_cmd): Constify.
4097 * probe.c (info_probes_command): Constify.
4098 * ser-tcp.c (set_tcp_cmd, show_tcp_cmd): Constify.
4099 * gnu-nat.c (set_task_cmd, show_task_cmd, set_thread_cmd)
4100 (show_thread_cmd, set_thread_default_cmd)
4101 (show_thread_default_cmd): Constify.
4102 (check_empty): Constify.
4103 * tracepoint.c (tfind_command): Constify.
4104 * cp-support.c (maint_cplus_command): Constify.
4105 * windows-tdep.c (info_w32_command): Constify.
4106 * record.c (cmd_record_start, set_record_command)
4107 (show_record_command, info_record_command, cmd_record_goto):
4108 Constify.
4109 * ravenscar-thread.c (set_ravenscar_command)
4110 (show_ravenscar_command): Constify.
4111 * utils.c (set_internal_problem_cmd, show_internal_problem_cmd):
4112 Constify.
4113 (add_internal_problem_command): Remove casts.
4114 * arc-tdep.c (maintenance_print_arc_command): Constify.
4115 * valprint.c (set_print, show_print, set_print_raw)
4116 (show_print_raw): Constify.
4117 * maint.c (maintenance_command, maintenance_info_command)
4118 (maintenance_print_command, maintenance_set_cmd)
4119 (maintenance_show_cmd, set_per_command_cmd)
4120 (show_per_command_cmd, maintenance_check_command): Constify.
4121 * language.c (set_check, show_check): Constify.
4122 * typeprint.c (show_print_type, set_print_type): Constify.
4123 * go32-nat.c (go32_info_dos_command): Constify.
4124
fdf44873
TT
41252017-10-11 Tom Tromey <tom@tromey.com>
4126
4127 * breakpoint.c (prepare_re_set_context): Remove.
4128 (breakpoint_re_set_one): Update. Don't use cleanups.
4129 (breakpoint_re_set): Use scoped_restore, std::string, and
4130 scoped_restore_current_language.
4131
81b1e71c
TT
41322017-10-11 Tom Tromey <tom@tromey.com>
4133
4134 * breakpoint.c (commands_command_1): Use std::string.
4135 (cleanup_executing_breakpoints): Remove.
4136 (bpstat_do_actions_1): Use scoped_restore.
4137 (bpstat_check_watchpoint): Use std::string.
4138 (decode_static_tracepoint_spec): Likewise.
4139 (break_range_command): Likewise.
4140 (watch_command_1): Likewise.
4141 (compare_breakpoints): Change argument types.
4142 (clear_command): Use std::vector.
4143 (cleanup_executing_breakpoints): Remove.
4144 (update_global_location_list): Use unique_xmalloc_ptr.
4145 (strace_command): Remove unused declaration.
4146
4f9d9906
JB
41472017-10-11 John Baldwin <jhb@FreeBSD.org>
4148
4149 * Makefile.in (ALLDEPFILES): Add arm-fbsd-nat.c.
4150 * NEWS: Mention new FreeBSD/arm native configuration.
4151 * configure.host: Add arm*-*-freebsd*.
4152 * configure.nat: Likewise.
4153 * arm-fbsd-nat.c: New file.
4154
7176dfd2
JB
41552017-10-11 John Baldwin <jhb@FreeBSD.org>
4156
4157 * Makefile.in (ALL_TARGET_OBS): Add arm-fbsd-tdep.o.
4158 (ALLDEPFILES): Add arm-fbsd-tdep.c.
4159 * NEWS: Mention new FreeBSD/arm target.
4160 * configure.tgt: Add arm*-*-freebsd*.
4161 * arm-fbsd-tdep.c: New file.
4162 * arm-fbsd-tdep.h: New file.
4163
fe220226
MR
41642017-10-11 Maciej W. Rozycki <macro@imgtec.com>
4165
4166 * linux-tdep.c (linux_make_corefile_notes): Remove call to
4167 `gdbarch_elfcore_write_linux_prpsinfo'.
4168 * gdbarch.sh (elfcore_write_linux_prpsinfo): Remove architecture
4169 method.
4170 (elf_internal_linux_prpsinfo): Remove declaration.
4171 * gdbarch.h: Regenerate.
4172 * gdbarch.c: Regenerate.
4173
a2f63b2e
MR
41742017-10-11 Maciej W. Rozycki <macro@imgtec.com>
4175
4176 * ppc-linux-tdep.c (ppc_linux_init_abi): Remove call to
4177 `set_gdbarch_elfcore_write_linux_prpsinfo'.
4178
458ca1d0
PA
41792017-10-11 Pedro Alves <palves@redhat.com>
4180
4181 * breakpoint.c (reattach_breakpoints): Delete.
4182 * breakpoint.h (reattach_breakpoints): Delete.
4183
905014d7
SM
41842017-10-11 Simon Marchi <simon.marchi@ericsson.com>
4185
4186 * symfile.c (registered_sym_fns): Make struct, not typedef.
4187 (DEF_VEC_O (registered_sym_fns)): Remove.
4188 (symtab_fns): Change type to std::vector.
4189 (add_symtab_fns): Adjust.
4190 (find_sym_fns): Adjust.
4191
56d704da
AK
41922017-10-11 Anton Kolesov <Anton.Kolesov@synopsys.com>
4193
4194 * arc-tdep.c (arc_gdbarch_init): Pass proper cpu value to disassembler.
4195 * arc-tdep.h (arc_arch_is_em): New function.
4196 (arc_arch_is_hs): Likewise.
4197
7fa29be9
EB
41982017-10-11 Egeyar Bagcioglu <egeyar.bagcioglu@oracle.com>
4199
4200 * macrotab.h (macro_lookup_inclusion): Remove unnecessary
4201 parentheses in the declaration.
4202 (macro_lookup_inclusion): Likewise.
4203 (macro_lookup_definition): Likewise.
4204 * p-lang.h (pascal_builtin_types): Likewise.
4205 * tui/tui-data.c (tui_win_list): Likewise.
4206 * tui/tui-data.h (tui_win_list): Likewise.
4207 * utils.h (make_cleanup_free_section_addr_info): Likewise.
4208
d9b477e3
KB
42092017-10-11 Mark Rages <markrages@gmail.com>
4210
4211 * target-memory.c (block_boundaries): Fix for block address not
4212 aligned on block size.
4213
65630365
PA
42142017-10-10 Pedro Alves <palves@redhat.com>
4215 Tom Tromey <tom@tromey.com>
4216
4217 * breakpoint.c (struct captured_breakpoint_query_args)
4218 (do_captured_breakpoint_query, gdb_breakpoint_query): Delete.
4219 (print_breakpoint): New.
4220 * breakpoint.h (print_breakpoint): Declare.
4221 * common/common-exceptions.h (enum return_reason): Remove
4222 references to catch_exceptions.
4223 * exceptions.c (catch_exceptions, catch_exceptions_with_msg):
4224 Delete.
4225 * exceptions.h (catch_exceptions_ftype, catch_exceptions)
4226 (catch_exception_ftype, catch_exceptions_with_msg): Delete.
4227 * gdb.h: Delete.
4228 * gdbthread.h (thread_select): Declare.
4229 * mi/mi-cmd-break.c: Don't include gdb.h.
4230 (breakpoint_notify): Use print_breakpoint.
4231 * mi/mi-cmd-catch.c: Don't include gdb.h.
4232 * mi/mi-interp.c: Don't include gdb.h.
4233 (mi_print_breakpoint_for_event): New.
4234 (mi_breakpoint_created, mi_breakpoint_modified): Use
4235 mi_print_breakpoint_for_event.
4236 * mi/mi-main.c: Don't include gdb.h.
4237 (mi_cmd_thread_select): Parse the global thread ID here. Use
4238 thread_select instead of gdb_thread_select.
4239 (mi_cmd_thread_list_ids): Output "thread-ids" tuple here instead
4240 of using gdb_list_thread_ids.
4241 * remote-fileio.c (do_remote_fileio_request): Change type. Reply
4242 FILEIO_ENOSYS here.
4243 (remote_fileio_request): Use TRY/CATCH instead of
4244 catch_exceptions.
4245 * symfile-mem.c (struct symbol_file_add_from_memory_args)
4246 (symbol_file_add_from_memory_wrapper): Delete.
4247 (add_vsyscall_page): Use TRY/CATCH instead of catch_exceptions.
4248 * thread.c: Don't include gdb.h.
4249 (do_captured_list_thread_ids, gdb_list_thread_ids): Delete.
4250 (thread_alive): Use thread_select.
4251 (do_captured_thread_select): Delete, parts salvaged as ...
4252 (thread_select): ... this new function.
4253 (gdb_thread_select): Delete.
4254
bf469271
PA
42552017-10-10 Pedro Alves <palves@redhat.com>
4256 Tom Tromey <tom@tromey.com>
4257
4258 * breakpoint.c (breakpoint_cond_eval): Change return type to bool
4259 and reverse logic.
4260 (WP_DELETED, WP_VALUE_CHANGED, WP_VALUE_NOT_CHANGED, WP_IGNORE):
4261 No longer macros. Instead ...
4262 (enum wp_check_result): They're now values of this new
4263 enumeration.
4264 (watchpoint_check): Change return type to wp_check_result and
4265 parameter type to bpstat.
4266 (bpstat_check_watchpoint): Use TRY/CATCH instead of catch_errors.
4267 (bpstat_check_breakpoint_conditions): Use TRY/CATCH instead of
4268 catch_errors. Reverse logic of watchpoint_check call.
4269 (breakpoint_re_set_one): Now returns void and takes a breakpoint
4270 pointer as parameter.
4271 (breakpoint_re_set): Use TRY/CATCH instead of catch_errors.
4272 * common/common-exceptions.c (throw_exception_sjlj): Update
4273 comments to avoid mentioning catch_errors.
4274 * exceptions.c (catch_errors): Delete.
4275 * exceptions.h: Update comments to avoid mentioning catch_errors.
4276 (catch_errors_ftype, catch_errors): Delete.
4277 * infrun.c (normal_stop): Use TRY/CATCH instead of catch_errors.
4278 (hook_stop_stub): Delete.
4279 (restore_selected_frame): Change return type to void, and
4280 parameter type to const frame_id &.
4281 (restore_infcall_control_state): Use TRY/CATCH instead of
4282 catch_errors.
4283 * main.c (captured_command_loop): Return void and remove
4284 parameter. Remove references to catch_errors.
4285 (captured_main): Use TRY/CATCH instead of catch_errors.
4286 * objc-lang.c (objc_submethod_helper_data)
4287 (find_objc_msgcall_submethod_helper): Delete.
4288 (find_objc_msgcall_submethod): Use TRY/CATCH instead of
4289 catch_errors.
4290 * record-full.c (record_full_message): Return void.
4291 (record_full_message_args, record_full_message_wrapper): Delete.
4292 (record_full_message_wrapper_safe): Return bool and use TRY/CATCH
4293 instead of catch_errors.
4294 * solib-aix.c (solib_aix_open_symbol_file_object): Change
4295 parameter type to int.
4296 * solib-darwin.c (open_symbol_file_object): Ditto.
4297 * solib-dsbt.c (open_symbol_file_object): Ditto.
4298 * solib-frv.c (open_symbol_file_object): Ditto.
4299 * solib-svr4.c (open_symbol_file_object): Ditto.
4300 * solib-target.c (solib_target_open_symbol_file_object): Ditto.
4301 * solib.c (update_solib_list): Use TRY/CATCH instead of
4302 catch_errors.
4303 * solist.h (struct target_so_ops) <open_symbol_file_object>:
4304 Change type.
4305 * symmisc.c (struct print_symbol_args): Remove.
4306 (dump_symtab_1): Use TRY/CATCH instead of catch_errors.
4307 (print_symbol): Change type.
4308 * windows-nat.c (handle_load_dll, handle_unload_dll): Return void
4309 and remove parameters.
4310 (catch_errors): New.
4311 (get_windows_debug_event): Adjust.
4312
1a56bfa5
TT
43132017-10-09 Tom Tromey <tom@tromey.com>
4314
4315 * mi/mi-main.c (free_splay_tree): Remove.
4316 (list_available_thread_groups): Use splay_tree_up.
4317 * common/gdb_splay_tree.h: New file.
4318
0c478e2d
TT
43192017-10-09 Tom Tromey <tom@tromey.com>
4320
4321 * mi/mi-main.c (do_nothing): Remove.
4322 (list_available_thread_groups): Update.
4323
cbd2b4e3
PA
43242017-10-09 Pedro Alves <palves@redhat.com>
4325
4326 * infrun.c (handle_inferior_event_1) <TARGET_WAITKIND_EXECD>: Skip
4327 reading registers when switching context.
4328
a181c0bf
JB
43292017-10-09 John Baldwin <jhb@FreeBSD.org>
4330
4331 * fbsd-nat.c (fbsd_siginfo_size): Use gdbarch_long_bit.
4332 (fbsd_convert_siginfo): Likewise.
4333 * fbsd-tdep.c (fbsd_core_xfer_siginfo): Likewise.
4334
6e66f753
SM
43352017-10-09 Simon Marchi <simon.marchi@polymtl.ca>
4336
4337 * configure.ac (try_guile_versions): Remove guile-2.2.
4338 * configure: Regenerate.
4339
890e9790
TT
43402017-10-09 Tom Tromey <tom@tromey.com>
4341
4342 * Makefile.in (COMPILE.post, POSTCOMPILE): Restore $(basename).
4343 (COMPILE.pre): Use $(CXX).
4344
109483d9
PA
43452017-10-09 Pedro Alves <palves@redhat.com>
4346
4347 * cp-support.c (cp_remove_params): Return a gdb::unique_xmalloc_ptr.
4348 Use bool.
4349 (overload_list_add_symbol): Adjust to use gdb::unique_xmalloc_ptr.
4350 * cp-support.h (cp_remove_params): Now returns a
4351 gdb::unique_xmalloc_ptr.
4352 * dwarf2read.c (find_slot_in_mapped_hash): Now returns bool.
4353 Adjust to cp_remove_params returning a gdb::unique_xmalloc_ptr.
4354 * psymtab.c (psymtab_search_name): Adjust to cp_remove_params
4355 returning a gdb::unique_xmalloc_ptr.
4356 (lookup_partial_symbol): Adjust to use gdb::unique_xmalloc_ptr.
4357 * stack.c (find_frame_funname): Adjust to cp_remove_params
4358 returning a gdb::unique_xmalloc_ptr.
4359
791afaa2
TT
43602017-10-08 Tom Tromey <tom@tromey.com>
4361
4362 * dwarf2read.c (dwarf2_get_dwz_file): Use
4363 gdb::unique_xmalloc_ptr.
4364 (find_slot_in_mapped_hash): Likewise.
4365 (dwarf2_physname): Likewise.
4366 (create_dwo_unit_in_dwp_v1): Use std::string.
4367 (create_dwo_unit_in_dwp_v2): Likewise.
4368 (lookup_dwo_cutu): Likewise.
4369 (inherit_abstract_dies): Use std::vector.
4370 (read_array_type): Likewise.
4371 (dwarf_decode_macros): Remove unused declaration.
4372 (unsigned_int_compar): Remove.
4373 (dwarf2_build_psymtabs_hard): Use scoped_restore.
4374 (psymtabs_addrmap_cleanup): Remove.
4375
30a9c02f
TT
43762017-10-08 Tom Tromey <tom@tromey.com>
4377
4378 * frame-unwind.c (frame_unwind_try_unwinder): Update.
4379 * frame.h (frame_cleanup_after_sniffer): Declare.
4380 (frame_prepare_for_sniffer): Return void.
4381 * frame.c (frame_cleanup_after_sniffer): No longer static. Change
4382 type of argument.
4383 (frame_prepare_for_sniffer): Return void.
4384
757325a3
TT
43852017-10-08 Tom Tromey <tom@tromey.com>
4386
4387 * utils.h (make_cleanup_value_free): Remove.
4388 * utils.c (do_value_free, struct cleanup): Remove.
4389 * dwarf2loc.c (dwarf2_evaluate_loc_desc_full) <DWARF_VALUE_STACK>:
4390 Use gdb_value_up.
4391 * value.h (struct value_deleter): New.
4392 (gdb_value_up): New typedef.
4393
b9c04fb2
TT
43942017-10-08 Tom Tromey <tom@tromey.com>
4395
4396 * symtab.c (free_search_symbols, do_free_search_symbols_cleanup)
4397 (make_cleanup_free_search_symbols): Remove.
4398 (search_symbols): Return std::vector.
4399 (symbol_search::compare_search_syms): Now member of
4400 symbol_search. Change arguments.
4401 (sort_search_symbols_remove_dups): Change arguments. Rewrite.
4402 (symtab_symbol_info, rbreak_command): Update.
4403 * symtab.h (struct symbol_search) <next>: Remove.
4404 Add constructors.
4405 (symbol_search::operator<): New function.
4406 (symbol_search::operator==): New function.
4407 (search_symbols): Remove std::vector.
4408 (free_search_symbols, make_cleanup_free_search_symbols): Remove.
4409 (symbol_search::compare_search_syms): Declare.
4410
0d28b0a5
YQ
44112017-10-06 Yao Qi <yao.qi@linaro.org>
4412
4413 * Makefile.in (ALL_64_TARGET_OBS): Replace aarch64-insn.o with
4414 arch/aarch64-insn.o.
4415 Remove one rule.
4416 * configure.tgt: Replace aarch64-insn.o with arch/aarch64-insn.o.
4417
71917808
YQ
44182017-10-06 Yao Qi <yao.qi@linaro.org>
4419
4420 * Makefile.in (ALL_TARGET_OBS): Replace arm.o, arm-get-next-pcs.o,
4421 and arm-linux.o with arch/arm.o, arch/arm-get-next-pcs.o and
4422 arch/arm-linux.o respectively.
4423 * configure.tgt: Likewise.
4424
2081b2b2
YQ
44252017-10-06 Yao Qi <yao.qi@linaro.org>
4426
4427 * Makefile.in (ALL_TARGET_OBS): Rename i386.o to arch/i386.o.
4428 * configure.tgt (i386_tobjs): Replace i386.o with arch/i386.o.
4429
a1b85d28
PA
44302017-10-06 Pedro Alves <palves@redhat.com>
4431
4432 * windows-nat.c: Include <algorithm>.
4433
d97987e2
YQ
44342017-10-06 Yao Qi <yao.qi@linaro.org>
4435
4436 * configure.tgt (i386_tobjs): New variable.
4437 (amd64_tobjs): New variable.
4438 Set $cpu_obs and $os_obs.
4439
f38307f5
YQ
44402017-10-06 Yao Qi <yao.qi@linaro.org>
4441
4442 * Makefile.in (CONFIG_SRC_SUBDIR): New.
4443 (ALL_64_TARGET_OBS): Replace amd64.o with arch/amd64.o.
4444 (clean): Remove object files and dependency files.
4445 (distclean): Remove the directory.
4446 * configure.ac: Invoke AC_CONFIG_COMMANDS.
4447 * configure: Re-generated.
4448 * configure.tgt: Replace amd64.o with arch/amd64.o.
4449
2f924de6
JM
44502017-10-05 Jose E. Marchesi <jose.marchesi@oracle.com>
4451
4452 PR build/22188
4453 * arm-tdep.c (arm_decode_misc_memhint_neon): Fix decoding of CPS
4454 and SETEND.
4455
2fd9d7ca
PA
44562017-10-05 Pedro Alves <palves@redhat.com>
4457
4458 * linux-nat.c (linux_child_follow_fork): When following the parent
4459 and detaching the child, consult the parent thread's architecture
4460 instead of the child's.
4461
d13b8493
UW
44622017-10-05 Ulrich Weigand <uweigand@de.ibm.com>
4463
4464 * ax.h: Do not include "doublest.h".
4465 (union agent_val): Remove.
4466
3b4b2f16
UW
44672017-10-05 Ulrich Weigand <uweigand@de.ibm.com>
4468
4469 * dfp.h (MAX_DECIMAL_STRING): Move to dfp.c.
4470 (decimal_to_string): Return std::string object.
4471 (decimal_from_string): Accept std::string object. Return bool.
4472 (decimal_from_integral, decimal_from_doublest): Remove.
4473 (decimal_from_longest): Add prototype.
4474 (decimal_from_ulongest): Likewise.
4475 (decimal_to_longest): Likewise.
4476 (decimal_from_doublest): Likewise.
4477 * dfp.c: Do not include "gdbtypes.h" or "value.h".
4478 (MAX_DECIMAL_STRING): Move here.
4479 (decimal_to_string): Return std::string object.
4480 (decimal_from_string): Accept std::string object. Return bool.
4481 (decimal_from_integral): Remove, replace by ...
4482 (decimal_from_longest, decimal_from_ulongest): ... these new functions.
4483 (decimal_to_longest): New function.
4484 (decimal_from_floating): Remove, replace by ...
4485 (decimal_from_doublest): ... this new function.
4486 (decimal_to_doublest): Update to new decimal_to_string interface.
4487
4488 * value.c (unpack_long): Use decimal_to_longest.
4489 * valops.c (value_cast): Use decimal_from_doublest instead of
4490 decimal_from_floating. Use decimal_from_[u]longest isntead of
4491 decimal_from_integral.
4492 * valarith.c (value_args_as_decimal): Likewise.
4493 * valprint.c (print_decimal_floating): Update to new
4494 decimal_to_string interface.
4495 * printcmd.c (printf_decfloat): Likewise.
4496 * c-exp.y (parse_number): Update to new decimal_from_string interface.
4497
1841ee5d
UW
44982017-10-05 Ulrich Weigand <uweigand@de.ibm.com>
4499
4500 * doublest.h: Do not include "floatformat.h". Remove stale comments.
4501 * gdbtypes.c: Include "floatformat.h".
4502 * value.c: Likewise.
4503 * m68k-tdep.c: Likewise.
4504
4505 * findvar.c: Do not include "floatformat.h".
4506 * amd64-darwin-tdep.c: Likewise.
4507 * arm-linux-tdep.c: Likewise.
4508 * i386-darwin-tdep.c: Likewise.
4509 * i387-tdep.c: Likewise.
4510 * m68k-linux-tdep.c: Likewise.
4511 * mep-tdep.c: Likewise.
4512 * mips-tdep.c: Likewise.
4513 * nios2-tdep.c: Likewise.
4514 * s390-linux-tdep.c: Likewise.
4515 * sparc-obsd-tdep.c: Likewise.
4516 * sparc-tdep.c: Likewise.
4517 * sparc64-tdep.c: Likewise.
4518 * spu-tdep.c: Likewise.
4519 * tic6x-tdep.c: Likewise.
4520 * tilegx-tdep.c: Likewise.
4521 * vax-tdep.c: Likewise.
4522 * xstormy16-tdep.c: Likewise.
4523 * xtensa-tdep.c: Likewise.
4524
4525 * top.c: Do not include "doublest.h".
4526 * aarch64-tdep.c: Likewise.
4527 * alpha-tdep.c: Likewise.
4528 * arm-linux-tdep.c: Likewise.
4529 * m68k-linux-tdep.c: Likewise.
4530 * tilegx-tdep.c: Likewise.
4531 * xstormy16-tdep.c: Likewise.
4532
a80a6471
JB
45332017-10-05 John Baldwin <jhb@FreeBSD.org>
4534
4535 * mips-fbsd-tdep.c (MIPS_INST_ADDIU_A0_SP_N32): Define.
4536 (mipsn32_fbsd_sigframe): Define.
4537 (mips_fbsd_init_abi): Install mipsn32_fbsd_sigframe unwinder
4538 for FreeBSD/mipsn32.
4539
12c4bd7f
JB
45402017-10-05 John Baldwin <jhb@FreeBSD.org>
4541
4542 * fbsd-tdep.c (fbsd_print_auxv_entry): Handle AT_EHDRFLAGS and
4543 AT_HWCAP.
4544
c91933e9
TG
45452017-10-05 Tristan Gingold <tgingold@free.fr>
4546
4547 * MAINTAINERS (Misc): Update my email address.
4548
5cd63fda
PA
45492017-10-04 Pedro Alves <palves@redhat.com>
4550
4551 * remote.c (get_remote_arch_state): New 'gdbarch' parameter. Use
4552 it instead of target_gdbarch.
4553 (get_remote_state, get_remote_packet_size): Adjust
4554 get_remote_arch_state calls, passing down target_gdbarch
4555 explicitly.
4556 (packet_reg_from_regnum, packet_reg_from_pnum): New parameter
4557 'gdbarch' and use it instead of target_gdbarch.
4558 (get_memory_packet_size): Adjust get_remote_arch_state calls,
4559 passing down target_gdbarch explicitly.
4560 (struct stop_reply) <arch>: New field.
4561 (remote_parse_stop_reply): Use the stopped thread's architecture,
4562 not the current inferior's. Save the architecture in the
4563 stop_reply.
4564 (process_stop_reply): Use the stop reply's architecture.
4565 (process_g_packet, remote_fetch_registers)
4566 (remote_prepare_to_store, store_registers_using_G)
4567 (remote_store_registers): Adjust get_remote_arch_state calls,
4568 using the regcache's architecture.
4569 (remote_get_trace_status): Adjust get_remote_arch_state calls,
4570 passing down target_gdbarch explicitly.
4571 * spu-multiarch.c (spu_thread_architecture): Defer to the target
4572 beneath instead of calling target_gdbarch.
4573 * target.c (default_thread_architecture): Use the specified
4574 inferior's architecture, instead of the current inferior's
4575 architecture (via target_gdbarch).
4576
ed4227b7
PA
45772017-10-04 Pedro Alves <palves@redhat.com>
4578
4579 * regcache.c (get_thread_arch_regcache): Remove null_ptid special
4580 case.
4581 (regcache_print): Handle !target_has_registers here instead.
4582
55b11ddf
PA
45832017-10-04 Pedro Alves <palves@redhat.com>
4584
4585 * frame.c (create_test_frame): Delete.
4586 * frame.h (create_test_frame): Delete.
4587 * gdbarch-selftests.c: Include gdbthread.h and target.h.
4588 (class regcache_test): Delete.
4589 (test_target_has_registers, test_target_has_stack)
4590 (test_target_has_memory, test_target_prepare_to_store)
4591 (test_target_store_registers): New functions.
4592 (test_target_ops): New class.
4593 (register_to_value_test): Error out if there's already a
4594 process_stratum (or higher) target pushed. Create a fuller mock
4595 environment, with mock target_ops, inferior, address space, thread
4596 and inferior_ptid.
4597 * progspace.c (struct address_space): Move to ...
4598 * progspace.h (struct address_space): ... here.
4599 * regcache.h (regcache::~regcache, regcache::raw_write)
4600 [GDB_SELF_TEST]: No longer virtual.
4601
4c71c105
SM
46022017-10-04 Simon Marchi <simon.marchi@ericsson.com>
4603
4604 * mi/mi-main.c (list_available_thread_groups): Reverse filter logic.
4605
73dcd72d
PA
46062017-10-04 Pedro Alves <palves@redhat.com>
4607
4608 * guile/scm-breakpoint.c (gdbscm_breakpoint_commands): Move code
4609 out of 'between TRY and CATCH'.
4610
44704526
PA
46112017-10-04 Pedro Alves <palves@redhat.com>
4612
4613 * cli/cli-cmds.c (complete_command): Add missing END_CATCH.
4614 * common/common-exceptions.h (TRY): Open an outermost scope.
4615 Expand intro comment.
4616 (CATCH): Reindent.
4617 (END_CATCH): Close the outermost scope.
4618 * completer.c (complete_line_internal): Add missing END_CATCH.
4619
bc3b087d
SDJ
46202017-10-04 Sergio Durigan Junior <sergiodj@redhat.com>
4621
4622 * NEWS (Changes since GDB 8.0): Add entry about new
4623 'set-cwd-on-gdbserver' feature.
4624 (New remote packets): Add entry for QSetWorkingDir.
4625 * common/common-inferior.h (set_inferior_cwd): New prototype.
4626 * infcmd.c (set_inferior_cwd): Remove "static".
4627 (show_cwd_command): Expand text to include remote debugging.
4628 * remote.c: Add PACKET_QSetWorkingDir.
4629 (remote_protocol_features) <QSetWorkingDir>: New entry for
4630 PACKET_QSetWorkingDir.
4631 (extended_remote_set_inferior_cwd): New function.
4632 (extended_remote_create_inferior): Call
4633 "extended_remote_set_inferior_cwd".
4634 (_initialize_remote): Call "add_packet_config_cmd" for
4635 QSetWorkingDir.
4636
d092c5a2
SDJ
46372017-10-04 Sergio Durigan Junior <sergiodj@redhat.com>
4638
4639 * NEWS (New commands): Mention "set/show cwd".
4640 * cli/cli-cmds.c (_initialize_cli_cmds): Mention "set cwd" on
4641 "cd" command's help text.
4642 * common/common-inferior.h (get_inferior_cwd): New prototype.
4643 * infcmd.c (inferior_cwd_scratch): New global variable.
4644 (set_inferior_cwd): New function.
4645 (get_inferior_cwd): Likewise.
4646 (set_cwd_command): Likewise.
4647 (show_cwd_command): Likewise.
4648 (_initialize_infcmd): Add "set/show cwd" commands.
4649 * inferior.h (class inferior) <cwd>: New field.
4650 * nat/fork-inferior.c: Include "gdb_tilde_expand.h".
4651 (fork_inferior): Change inferior's cwd before its execution.
4652 * windows-nat.c (windows_create_inferior): Pass inferior's cwd
4653 to CreateProcess.
4654
7da0a886
SDJ
46552017-10-04 Sergio Durigan Junior <sergiodj@redhat.com>
4656
4657 * Makefile.in (SFILES): Add gdb_tilde_expand.c.
4658 (HFILES_NO_SRCDIR): Add gdb_tilde_expand.h.
4659 (COMMON_OBS): Add gdb_tilde_expand.o.
4660 * common/gdb_tilde_expand.c: New file.
4661 * common/gdb_tilde_expand.h: Likewise.
4662
db8dd160
MR
46632017-10-03 Maciej W. Rozycki <macro@imgtec.com>
4664
4665 * gdbarch.sh (objfile): Remove duplicate declaration.
4666 * gdbarch.h: Regenerate.
4667
f8bfbf22
TT
46682017-10-03 Tom Tromey <tom@tromey.com>
4669
4670 * utils.c (internal_vproblem): Use string_vprintf.
4671
5178ed48
TT
46722017-10-03 Tom Tromey <tom@tromey.com>
4673
4674 * printcmd.c (info_symbol_command): Use std::string.
4675
8cff8730
TT
46762017-10-03 Tom Tromey <tom@tromey.com>
4677
4678 * top.c (gdb_safe_append_history): Use std::string.
4679
895b8f30
TT
46802017-10-03 Tom Tromey <tom@tromey.com>
4681
4682 * event-top.c (stdin_event_handler): Update.
4683 * main.c (captured_main_1): Update.
4684 * top.h (make_delete_ui_cleanup): Remove.
4685 (struct ui): Add constructor and destructor.
4686 (new_ui, delete_ui): Remove.
4687 * top.c (make_delete_ui_cleanup): Remove.
4688 (new_ui_command): Use std::unique_ptr.
4689 (delete_ui_cleanup): Remove.
4690 (ui::ui): Rename from new_ui. Update.
4691 (free_ui): Remove.
4692 (ui::~ui): Rename from delete_ui. Update.
4693
0efef640
TT
46942017-10-03 Tom Tromey <tom@tromey.com>
4695
4696 * symfile.c (load_progress): Use gdb::byte_vector.
4697
245ad7d3
TT
46982017-10-03 Tom Tromey <tom@tromey.com>
4699
4700 * mi/mi-main.c (mi_cmd_trace_frame_collected): Remove unused
4701 declaration.
4702 * printcmd.c (x_command): Remove unused declaration.
4703 * symfile.c (symbol_file_command): Remove unused declaration.
4704
e05550d7
TT
47052017-10-03 Tom Tromey <tom@tromey.com>
4706
4707 * utils.c (internal_vproblem): Use std::string.
4708 (defaulted_query): Likewise.
4709
b95de2b7
TT
47102017-10-03 Tom Tromey <tom@tromey.com>
4711
4712 * guile/scm-ports.c (ioscm_with_output_to_port_worker): Update.
4713 * top.c (execute_command_to_string): Update.
4714 * utils.c (make_cleanup_restore_page_info): Remove.
4715 (do_restore_page_info_cleanup): Remove.
4716 (set_batch_flag_and_restore_page_info):
4717 New.
4718 (make_cleanup_restore_page_info): Remove.
4719 (set_batch_flag_and_make_cleanup_restore_page_info): Remove.
4720 (~set_batch_flag_and_restore_page_info): New
4721 (make_cleanup_restore_uinteger): Remove.
4722 (make_cleanup_restore_integer): Remove.
4723 (struct restore_integer_closure): Remove.
4724 (restore_integer): Remove.
4725 * utils.h (struct set_batch_flag_and_restore_page_info): New
4726 class.
4727 (set_batch_flag_and_make_cleanup_restore_page_info): Remove.
4728 (make_cleanup_restore_page_info): Remove.
4729 (make_cleanup_restore_uinteger) Remove.
4730 (make_cleanup_restore_integer) Remove.
4731
07036511
TT
47322017-10-03 Tom Tromey <tom@tromey.com>
4733
4734 * record-full.h (record_full_gdb_operation_disable_set): Return
4735 scoped_restore_tmpl<int>.
4736 * infrun.c (adjust_pc_after_break): Update.
4737 (handle_signal_stop): Update.
4738 * record-full.c (record_full_gdb_operation_disable_set): Return
4739 scoped_restore_tmpl<int>.
4740 (record_full_wait_1, record_full_insert_breakpoint)
4741 (record_full_remove_breakpoint, record_full_save)
4742 (record_full_goto_insn): Update.
4743
45320ffa
TT
47442017-10-02 Tom Tromey <tom@tromey.com>
4745
4746 PR rust/22236:
4747 * rust-lang.c (rust_val_print_str): New function.
4748 (val_print_struct): Call it.
4749 (rust_subscript): Preserve name of slice type.
4750
b3e3859b
TT
47512017-10-02 Tom Tromey <tom@tromey.com>
4752
4753 * rust-lang.c (rust_subscript): Handle slices in
4754 EVAL_AVOID_SIDE_EFFECTS case.
4755
01af5e0d
TT
47562017-10-02 Tom Tromey <tom@tromey.com>
4757
4758 * rust-lang.c (rust_slice_type_p): Recognize &str as a slice type.
4759
888e3ddb
TT
47602017-10-02 Tom Tromey <tom@tromey.com>
4761
4762 * rust-lang.h (rust_slice_type): Add "extern".
4763
cc536b21
PA
47642017-10-02 Tom Tromey <tom@tromey.com>
4765 Pedro Alves <palves@redhat.com>
4766
4767 * ada-lang.h (ada_exc_info::operator<): Make const.
4768 (ada_exc_info::operator==): Make const.
4769 * ada-lang.c (ada_exc_info::operator<, ada_exc_info::operator==):
4770 Make const.
4771
386c8614
TT
47722017-09-29 Tom Tromey <tom@tromey.com>
4773
4774 * target.c (read_whatever_is_readable): Change type of "result".
4775 Update.
4776 (free_memory_read_result_vector): Remove.
4777 (read_memory_robust): Change return type. Update.
4778 * mi/mi-main.c (mi_cmd_data_read_memory_bytes): Update. Use
4779 bin2hex, std::string.
4780 * target.h (memory_read_result_s): Remove typedef.
4781 (free_memory_read_result_vector): Remove.
4782 (read_memory_robust): Return std::vector.
4783
789c4b5e
TT
47842017-09-29 Tom Tromey <tom@tromey.com>
4785
4786 * mi/mi-main.c (captured_mi_execute_command): Use scope_restore.
4787
ab816a27
TT
47882017-09-29 Tom Tromey <tom@tromey.com>
4789
4790 * mi/mi-cmd-info.c (mi_cmd_info_ada_exceptions): Update.
4791 * ada-lang.h (struct ada_exc_info): Remove typedef. Declare
4792 operator< and operator==.
4793 (ada_exceptions_list): Return a std::vector.
4794 * ada-lang.c (ada_exc_info::operator<): Rename from
4795 compare_ada_exception_info.
4796 (ada_exc_info::operator==): New.
4797 (sort_remove_dups_ada_exceptions_list): Change type of
4798 "exceptions".
4799 (ada_add_standard_exceptions, ada_add_exceptions_from_frame)
4800 (ada_add_global_exceptions): Likewise.
4801 (ada_exceptions_list_1): Return a std::vector.
4802 (ada_exceptions_list): Likewise.
4803
52f9abe4
TT
48042017-09-29 Tom Tromey <tom@tromey.com>
4805
4806 * mi/mi-main.c (struct print_one_inferior_data) <inferiors>: Now a
4807 'std::set *'.
4808 (print_one_inferior): Update.
4809 (free_vector_of_ints): Remove.
4810 (list_available_thread_groups): Change "ids" to std::set.
4811 (mi_cmd_list_thread_groups): Update.
4812 (struct collect_cores_data) <core>: Now a std::set.
4813 (collect_cores): Update.
4814 (unique): Remove.
4815 (print_one_inferior): Update.
4816
dcd5ddcc
TT
48172017-09-29 Tom Tromey <tom@tromey.com>
4818
4819 * mi/mi-main.c (mi_execute_cli_command): Use std::string.
4820 (mi_execute_async_cli_command): Likewise.
4821 (mi_cmd_trace_frame_collected): Use field_fmt.
4822
45d288cc
TT
48232017-09-29 Tom Tromey <tom@tromey.com>
4824
4825 * mi/mi-main.c (mi_cmd_data_write_memory_bytes): Use
4826 gdb::byte_vector.
4827
6afe2f4a
TT
48282017-09-29 Tom Tromey <tom@tromey.com>
4829
4830 * mi/mi-parse.c (mi_parse): Remove unused declaration.
4831
9813429a
TT
48322017-09-29 Tom Tromey <tom@tromey.com>
4833
4834 * mi/mi-cmd-disas.c (mi_cmd_disassemble): Don't copy "oarg".
4835
2d6960b4
TT
48362017-09-29 Tom Tromey <tom@tromey.com>
4837
4838 * varobj.h (varobj_gen_name): Return std::string.
4839 * varobj.c (varobj_gen_name): Return std::string.
4840 * mi/mi-cmd-var.c (mi_cmd_var_create): Use std::string.
4841 (mi_cmd_var_delete): Don't copy "name".
4842
784c453a
TT
48432017-09-29 Tom Tromey <tom@tromey.com>
4844
4845 * mi/mi-cmd-break.c (mi_argv_to_format): Return std::string.
4846 (mi_cmd_break_insert_1): Update.
4847
a9bc57b9
TT
48482017-09-29 Tom Tromey <tom@tromey.com>
4849
4850 * target.h (make_scoped_defer_target_commit_resume): Update.
4851 * target.c (make_scoped_defer_target_commit_resume): Rename from
4852 make_cleanup_defer_target_commit_resume. Return a
4853 scoped_restore.
4854 * infrun.c (proceed): Use make_scoped_defer_target_commit_resume.
4855
9754d8c4
TT
48562017-09-29 Tom Tromey <tom@tromey.com>
4857
4858 * main.c (captured_main_1): Remove unused declaration.
4859 * spu-multiarch.c (parse_spufs_run): Remove unused declaration.
4860
99ef965c
TT
48612017-09-29 Tom Tromey <tom@tromey.com>
4862
4863 * symtab.c (search_symbols): Remove unused outer cleanup.
4864 (make_source_files_completion_list): Remove unused declaration.
4865
42518ba7
TT
48662017-09-29 Tom Tromey <tom@tromey.com>
4867
4868 * mt-tdep.c (mt_push_dummy_call): Use gdb::byte_vector.
4869
726b2169
TT
48702017-09-29 Tom Tromey <tom@tromey.com>
4871
4872 * xstormy16-tdep.c (xstormy16_push_dummy_call): Use
4873 gdb::byte_vector.
4874
55b06432
TT
48752017-09-29 Tom Tromey <tom@tromey.com>
4876
4877 * complaints.c (vcomplaint): Use std::string.
4878
8abcee91
TT
48792017-09-29 Tom Tromey <tom@tromey.com>
4880
4881 * tracepoint.c (trace_variable_command): Use std::string.
4882 (encode_actions_1): Remove unused declarations.
4883 (create_tsv_from_upload): Use std::string.
4884
6ad94bc7
TT
48852017-09-29 Tom Tromey <tom@tromey.com>
4886
4887 * cp-support.c (gdb_demangle): Use std::string.
4888
2003f3d8
TT
48892017-09-29 Tom Tromey <tom@tromey.com>
4890
4891 * stack.c (parse_frame_specification): Use std::string
4892 (info_frame_command): Use gdb::unique_xmalloc_ptr.
4893
8f8accb5
TT
48942017-09-29 Tom Tromey <tom@tromey.com>
4895
4896 * tilegx-tdep.c (tilegx_push_dummy_call): Use gdb::byte_vector.
4897
200aa7b1
TT
48982017-09-29 Tom Tromey <tom@tromey.com>
4899
4900 * utils.c (vfprintf_maybe_filtered): Use std::string.
4901 (vfprintf_unfiltered): Likewise.
4902
606aae8a
TT
49032017-09-29 Tom Tromey <tom@tromey.com>
4904
4905 * event-top.c (top_level_prompt): Return std::string.
4906 (display_gdb_prompt): Update.
4907
bd413795
TT
49082017-09-29 Tom Tromey <tom@tromey.com>
4909
4910 * unittests/common-utils-selftests.c (format): New function.
4911 (string_vprintf_tests): New function.
4912 (_initialize_common_utils_selftests): Register new tests.
4913 * common/common-utils.c (string_vprintf): New function.
4914 * common/common-utils.h (string_vprintf): Declare.
4915
256642e8
PA
49162017-09-29 Pedro Alves <palves@redhat.com>
4917
4918 * common/rsp-low.c (unpack_varlen_hex): Constify.
4919 * common/rsp-low.h (unpack_varlen_hex): Constify.
4920 * linux-nat.c (linux_child_static_tracepoint_markers_by_strid):
4921 Constify.
4922 * remote.c (remote_set_permissions, read_ptid)
4923 (remote_current_thread, remote_get_threads_with_qthreadinfo)
4924 (remote_static_tracepoint_marker_at)
4925 (remote_static_tracepoint_markers_by_strid)
4926 (stop_reply_extract_thread, remote_parse_stop_reply): Constify.
4927 * tracepoint.c (parse_trace_status, parse_tracepoint_status)
4928 (parse_tracepoint_definition, parse_tsv_definition)
4929 (parse_static_tracepoint_marker_definition): Constify.
4930 * tracepoint.h (parse_static_tracepoint_marker_definition)
4931 (parse_trace_status, parse_tracepoint_status)
4932 (parse_tracepoint_definition, parse_tsv_definition): Constify.
4933
b6bb3468
PA
49342017-09-29 Pedro Alves <palves@redhat.com>
4935
4936 * remote.c (target_buf, target_buf_size): Delete.
4937 (remote_get_noisy_reply): Remove buf_p and sizeof_buf parameters.
4938 Use the connection's packet buffer instead.
4939 All callers adjusted.
4940 (_initialize_remote): Remove references to target_buf and
4941 target_buf_size.
4942
b2f8eb7a
PA
49432017-09-28 Pedro Alves <palves@redhat.com>
4944
4945 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
4946 unittests/common-utils-selftests.c.
4947 (SUBDIR_UNITTESTS_OBS): Add common-utils-selftests.o.
4948 (COMMON_OBS): Remove utils-selftests.o.
4949 * utils-selftests.c: Move to ...
4950 * unittests/common-utils-selftests.c: ... here and rename self
4951 test to "string_printf".
4952
08302ed2
DE
49532017-09-28 Alexander Shaposhnikov <alexander.v.shaposhnikov@gmail.com> (tiny patch)
4954
4955 * dwarf2read.c (open_and_init_dwp_file): Protect against dwp_file
4956 having NULL cus or tus.
4957
96a5a1d3
UW
49582017-09-27 Ulrich Weigand <uweigand@de.ibm.com>
4959
4960 * arm-tdep.c: (convert_from_extended): Remove.
4961 (convert_to_extended): Likewise.
4962 (arm_extract_return_value): Use convert_typed_floating.
4963 (arm_store_return_value): Likewise.
4964
4965 * sh-tdep.h (struct gdbarch_tdep): Add sh_littlebyte_bigword_type.
4966 * sh-tdep.c: Do not include "floatformat.h".
4967 (sh_littlebyte_bigword_type): New function.
4968 (sh_register_convert_to_virtual): Use convert_typed_floating.
4969 (sh_register_convert_to_raw): Likewise.
4970 * sh64-tdep.c: (struct gdbarch_tdep): Add sh_littlebyte_bigword_type.
4971 (sh64_littlebyte_bigword_type): New function.
4972 (sh64_extract_return_value): Use convert_typed_floating.
4973 (sh64_register_convert_to_virtual): Likewise.
4974 (sh64_register_convert_to_raw): Likewise.
4975
0db7851f
UW
49762017-09-27 Ulrich Weigand <uweigand@de.ibm.com>
4977
4978 * doublest.h (floatformat_from_type): Move to gdbtypes.h.
4979 * doublest.c (floatformat_from_type): Move to gdbtypes.c.
4980
4981 * gdbtypes.h (union type_specific): Make field floatformat hold
4982 just a single struct floatformat, not an array.
4983 (floatformat_from_type): Move here.
4984 * gdbtypes.c (floatformat_from_type): Move here. Update to
4985 changed TYPE_FLOATFORMAT definition.
4986 (verify_floatformat): Update to changed TYPE_FLOATFORMAT.
4987 (recursive_dump_type): Likewise.
4988 (init_float_type): Install correct floatformat for byte order.
4989 (arch_float_type): Likewise.
4990
77b7c781
UW
49912017-09-27 Ulrich Weigand <uweigand@de.ibm.com>
4992
4993 * gdbtypes.c (init_type): Change incoming argument from
4994 length-in-bytes to length-in-bits. Assert length is a
4995 multiple of TARGET_CHAR_BITS.
4996 (arch_type, arch_flags_type): Likewise.
4997 (init_integer_type): Update call to init_type.
4998 (init_character_type): Likewise.
4999 (init_boolean_type): Likewise.
5000 (init_float_type): Likewise.
5001 (init_decfloat_type): Likewise.
5002 (init_complex_type): Likewise.
5003 (init_pointer_type): Likewise.
5004 (objfile_type): Likewise.
5005 (arch_integer_type): Update call to arch_type.
5006 (arch_character_type): Likewise.
5007 (arch_boolean_type): Likewise.
5008 (arch_float_type): Likewise.
5009 (arch_decfloat_type): Likewise.
5010 (arch_complex_type): Likewise.
5011 (arch_pointer_type): Likewise.
5012 (gdbtypes_post_init): Likewise.
5013
5014 * dwarf2read.c (dwarf2_init_float_type): Update call to init_type.
5015 (read_base_type): Likewise.
5016 * mdebugread.c (basic_type): Likewise.
5017 * stabsread.c (dbx_init_float_type): Likewise.
5018 (rs6000_builtin_type): Likewise.
5019 (read_range_type): Likewise. Also, fix call to init_integer_type
5020 with erroneous length argument.
5021
5022 * ada-lang.c (ada_language_arch_info): Update call to arch_type.
5023 * d-lang.c (build_d_types): Likewise.
5024 * f-lang.c (build_fortran_types): Likewise.
5025 * go-lang.c (build_go_types): Likewise.
5026 * opencl-lang.c (build_opencl_types): Likewise.
5027 * jit.c (finalize_symtab): Likewise.
5028 * gnu-v3-abi.c (build_gdb_vtable_type): Likewise.
5029 (build_std_type_info_type): Likewise.
5030 * target-descriptions.c (tdesc_gdb_type): Likewise. Also,
5031 update call to arch_flags_type.
5032
5033 * linux-tdep.c (linux_get_siginfo_type_with_fields): Update call to
5034 arch_type.
5035 * fbsd-tdep.c (fbsd_get_siginfo_type): Likewise.
5036 * windows-tdep.c (windows_get_tlb_type): Likewise.
5037
5038 * avr-tdep.c (avr_gdbarch_init): Update call to arch_type.
5039 * ft32-tdep.c (ft32_gdbarch_init): Likewise.
5040 * m32c-tdep.c (make_types): Likewise.
5041 * rl78-tdep.c (rl78_gdbarch_init): Likewise.
5042 (rl78_psw_type): Update call to arch_flags_type.
5043 * m68k-tdep.c (m68k_ps_type): Update call to arch_flags_type.
5044 * rx-tdep.c (rx_psw_type): Likewise.
5045 (rx_fpsw_type): Likewise.
5046 * sparc-tdep.c (sparc_psr_type): Likewise.
5047 (sparc_fsr_type): Likewise.
5048 * sparc64-tdep.c (sparc64_pstate_type): Likewise.
5049 (sparc64_ccr_type): Likewise.
5050 (sparc64_fsr_type): Likewise.
5051 (sparc64_fprs_type): Likewise.
5052
f21b4d5c
TT
50532017-09-27 Tom Tromey <tom@tromey.com>
5054
5055 * findcmd.c (find_command): Constify.
5056
643c2ffa
TT
50572017-09-27 Tom Tromey <tom@tromey.com>
5058
5059 * ada-tasks.c (task_command_1, task_command): Constify.
5060
510e5e56
TT
50612017-09-27 Tom Tromey <tom@tromey.com>
5062
5063 * symtab.c (maintenance_print_symbol_cache)
5064 (maintenance_flush_symbol_cache)
5065 (maintenance_print_symbol_cache_statistics): Constify.
5066
e503b191
TT
50672017-09-27 Tom Tromey <tom@tromey.com>
5068
5069 * inferior.c (detach_inferior_command, kill_inferior_command)
5070 (inferior_command): Constify.
5071
4e001312
TT
50722017-09-27 Tom Tromey <tom@tromey.com>
5073
5074 * regcache.c (regcache_print, maintenance_print_registers)
5075 (maintenance_print_raw_registers)
5076 (maintenance_print_cooked_registers)
5077 (maintenance_print_register_groups)
5078 (maintenance_print_remote_registers): Constify.
5079
77763700
TT
50802017-09-27 Tom Tromey <tom@tromey.com>
5081
5082 * printcmd.c (map_display_numbers, undisplay_command)
5083 (enable_disable_display_command, enable_display_command)
5084 (disable_display_command): Constify.
5085
4495129a
TT
50862017-09-27 Tom Tromey <tom@tromey.com>
5087
5088 * breakpoint.h (delete_command): Don't declare.
5089 * breakpoint.c (delete_command, enable_once_command)
5090 (enable_count_command, enable_delete_command, breakpoint_1)
5091 (maintenance_info_breakpoints, stopin_command, stopat_command)
5092 (delete_command, delete_trace_command, save_breakpoints)
5093 (save_breakpoints_command, save_tracepoints_command): Constify.
5094
3088cf40
TT
50952017-09-27 Tom Tromey <tom@tromey.com>
5096
5097 * macrocmd.c (macro_expand_command, macro_expand_once_command)
5098 (skip_ws, extract_identifier, macro_define_command)
5099 (macro_undef_command, macro_list_command): Constify.
5100
69f476a3
TT
51012017-09-27 Tom Tromey <tom@tromey.com>
5102
5103 * infcmd.c (environment_info, set_environment_command)
5104 (unset_environment_command, path_info, info_proc_cmd_1)
5105 (info_proc_cmd_mappings, info_proc_cmd_stat)
5106 (info_proc_cmd_status, info_proc_cmd_cwd, info_proc_cmd_cmdline)
5107 (info_proc_cmd_exe, info_proc_cmd_all): Constify.
5108
c4a3e68e
TT
51092017-09-27 Tom Tromey <tom@tromey.com>
5110
5111 * i386-tdep.c (i386_mpx_info_bounds, i386_mpx_set_bounds):
5112 Constify.
5113
c9d31bd6
TT
51142017-09-27 Tom Tromey <tom@tromey.com>
5115
5116 * symfile-mem.c (add_symbol_file_from_memory_command): Constify.
5117
1f3f85eb
TT
51182017-09-27 Tom Tromey <tom@tromey.com>
5119
5120 * demangle.c (demangle_command): Constify.
5121
9c504b5d
TT
51222017-09-27 Tom Tromey <tom@tromey.com>
5123
5124 * progspace.c (maintenance_info_program_spaces_command):
5125 Constify.
5126
6663cf91
TT
51272017-09-27 Tom Tromey <tom@tromey.com>
5128
5129 * compile/compile.c (check_raw_argument, compile_file_command)
5130 (compile_code_command, compile_print_command): Constify.
5131
34e5fa26
TT
51322017-09-27 Tom Tromey <tom@tromey.com>
5133
5134 * reggroups.c (maintenance_print_reggroups): Constify.
5135
8384c356
TT
51362017-09-27 Tom Tromey <tom@tromey.com>
5137
5138 * dwarf2read.c (save_gdb_index_command): Constify.
5139
884beb0c
TT
51402017-09-27 Tom Tromey <tom@tromey.com>
5141
5142 * stap-probe.c (info_probes_stap_command): Constify.
5143
e0b2930c
TT
51442017-09-27 Tom Tromey <tom@tromey.com>
5145
5146 * fork-child.c (unset_exec_wrapper_command): Constify.
5147
f938677d
TT
51482017-09-27 Tom Tromey <tom@tromey.com>
5149
5150 * btrace.c (get_uint, get_context_size, no_chunk)
5151 (maint_btrace_packet_history_cmd)
5152 (maint_btrace_clear_packet_history_cmd, maint_btrace_clear_cmd)
5153 (maint_info_btrace_cmd): Constify.
5154
8949cb87
TT
51552017-09-27 Tom Tromey <tom@tromey.com>
5156
5157 * reverse.c (delete_bookmark_command): Constify.
5158
ac88e2de
TT
51592017-09-27 Tom Tromey <tom@tromey.com>
5160
5161 * remote.c (set_memory_packet_size)
5162 (set_memory_write_packet_size, show_memory_write_packet_size)
5163 (set_memory_read_packet_size, show_memory_read_packet_size)
5164 (compare_sections_command, packet_command, remote_put_command)
5165 (remote_get_command, remote_delete_command): Constify.
5166
bd4c9dfe
TT
51672017-09-27 Tom Tromey <tom@tromey.com>
5168
5169 * mips-tdep.c (show_mipsfpu_command, set_mipsfpu_single_command)
5170 (set_mipsfpu_double_command, set_mipsfpu_none_command)
5171 (set_mipsfpu_auto_command): Constify.
5172
5e93d4c6
TT
51732017-09-27 Tom Tromey <tom@tromey.com>
5174
5175 * cli/cli-cmds.h (cd_command): Constify.
5176 * cli/cli-cmds.c (cd_command): Constify.
5177
fc41a75b
TT
51782017-09-27 Tom Tromey <tom@tromey.com>
5179
5180 * thread.c (thread_name_command, thread_find_command): Constify.
5181
67810076
TT
51822017-09-27 Tom Tromey <tom@tromey.com>
5183
5184 * probe.c (enable_probes_command, disable_probes_command):
5185 Constify.
5186
1d8b34a7
TT
51872017-09-27 Tom Tromey <tom@tromey.com>
5188
5189 * symfile.c (symbol_file_command): Constify.
5190 * gdbcore.h (deprecated_file_changed_hook): Constify.
5191 * exec.c (deprecated_file_changed_hook, exec_file_command)
5192 (file_command): Constify.
5193 * defs.h (symbol_file_command): Constify.
5194
442019e1
TT
51952017-09-27 Tom Tromey <tom@tromey.com>
5196
5197 * remote-fileio.c (set_system_call_allowed)
5198 (show_system_call_allowed): Constify.
5199
2983f7cb
TT
52002017-09-27 Tom Tromey <tom@tromey.com>
5201
5202 * tracepoint.c (delete_trace_variable_command)
5203 (tfind_end_command, tfind_start_command, tfind_pc_command)
5204 (tfind_tracepoint_command, tfind_line_command)
5205 (tfind_range_command, tfind_outside_command): Constify.
5206
4fd41b24
TT
52072017-09-27 Tom Tromey <tom@tromey.com>
5208
5209 * ax-gdb.c (maint_agent_printf_command, agent_command)
5210 (agent_eval_command): Constify.
5211
f2fc3015
TT
52122017-09-27 Tom Tromey <tom@tromey.com>
5213
5214 * tracepoint.c (info_scope_command): Constify.
5215 * python/python.c (gdbpy_decode_line): Constify.
5216 * python/py-breakpoint.c (bppy_init): Constify.
5217 * mi/mi-cmd-break.c (mi_cmd_break_insert_1): Constify.
5218 * location.h: (new_linespec_location)
5219 (string_to_event_location_basic, string_to_event_location):
5220 Constify.
5221 * location.c (new_linespec_location)
5222 (string_to_event_location_basic, string_to_event_location):
5223 Constify.
5224 * linespec.h (decode_line_with_current_source)
5225 (decode_line_with_last_displayed, linespec_lex_to_end): Constify.
5226 * linespec.c (linespec_lex_to_end)
5227 (decode_line_with_current_source)
5228 (decode_line_with_last_displayed): Constify.
5229 * guile/scm-breakpoint.c (gdbscm_register_breakpoint_x):
5230 Constify.
5231 * cli/cli-cmds.c (edit_command, list_command): Constify.
5232 * breakpoint.h (until_break_command, watch_command_wrapper)
5233 (awatch_command_wrapper, rwatch_command_wrapper)
5234 (init_ada_exception_breakpoint): Constify.
5235 * breakpoint.c (break_command_1, dprintf_command)
5236 (break_range_command, watch_command_wrapper)
5237 (rwatch_command_wrapper, awatch_command_wrapper)
5238 (until_break_command, init_ada_exception_breakpoint)
5239 (strace_marker_create_sals_from_location, trace_command)
5240 (ftrace_command, strace_command, struct tracepoint): Constify.
5241 * ax-gdb.c (agent_command_1): Constify.
5242 * ada-lang.c (ada_exception_sal): Constify.
5243
8c2f95f4
TT
52442017-09-27 Tom Tromey <tom@tromey.com>
5245
5246 * record.c (cmd_record_delete, cmd_record_stop, cmd_record_save)
5247 (cmd_record_goto_begin, cmd_record_goto_end, get_insn_number)
5248 (get_context_size, no_chunk, get_insn_history_modifiers)
5249 (cmd_record_insn_history, get_call_history_modifiers)
5250 (cmd_record_call_history): Constify.
5251
a0d65762
TT
52522017-09-27 Tom Tromey <tom@tromey.com>
5253
5254 * source.c (show_substitute_path_command)
5255 (unset_substitute_path_command, set_substitute_path_command):
5256 Constify.
5257
58971144
TT
52582017-09-27 Tom Tromey <tom@tromey.com>
5259
5260 * typeprint.c (maintenance_print_type): Constify.
5261 * maint.c (maintenance_dump_me, maintenance_demangle)
5262 (maintenance_time_display, maintenance_info_sections)
5263 (maintenance_print_statistics, maintenance_deprecate)
5264 (maintenance_undeprecate): Constify.
5265 (maintenance_do_deprecate): Constify. Use std::string.
5266 (maintenance_selftest): Constify.
5267 * gdbtypes.h (maintenance_print_type): Constify.
5268
c482f52c
TT
52692017-09-27 Tom Tromey <tom@tromey.com>
5270
5271 * hppa-tdep.c (unwind_command): Constify.
5272
e100df1a
TT
52732017-09-27 Tom Tromey <tom@tromey.com>
5274
5275 * target-descriptions.c (unset_tdesc_filename_cmd)
5276 (maint_print_c_tdesc_cmd, maintenance_check_xml_descriptions):
5277 Constify.
5278
31d56ade
TT
52792017-09-27 Tom Tromey <tom@tromey.com>
5280
5281 * dummy-frame.c (maintenance_print_dummy_frames): Constify.
5282
b961da0b
TT
52832017-09-27 Tom Tromey <tom@tromey.com>
5284
5285 * tui/tui.c (tui_enable_command, tui_disable_command): Constify.
5286
e2d8ae16
TT
52872017-09-27 Tom Tromey <tom@tromey.com>
5288
5289 * tui/tui-regs.c (tui_reg_command): Constify.
5290
863779b0
TT
52912017-09-27 Tom Tromey <tom@tromey.com>
5292
5293 * skip.c (skip_file_command, skip_function_command)
5294 (skip_enable_command, skip_disable_command, skip_delete_command):
5295 Constify.
5296
cdb34d4a
TT
52972017-09-27 Tom Tromey <tom@tromey.com>
5298
5299 * record-btrace.c (cmd_record_btrace_bts_start)
5300 (cmd_record_btrace_pt_start): Constify.
5301
e99c83e7
TT
53022017-09-27 Tom Tromey <tom@tromey.com>
5303
5304 * symmisc.c (maintenance_print_symbols)
5305 (maintenance_print_msymbols, maintenance_print_objfiles)
5306 (maintenance_info_symtabs, maintenance_check_symtabs)
5307 (maintenance_expand_symtabs, maintenance_info_line_tables):
5308 Constify.
5309
32faf971
TT
53102017-09-27 Tom Tromey <tom@tromey.com>
5311
5312 * top.c (new_ui_command): Constify.
5313
2cf311eb
TT
53142017-09-27 Tom Tromey <tom@tromey.com>
5315
5316 * symfile.c (add_symbol_file_command)
5317 (remove_symbol_file_command, list_overlays_command)
5318 (map_overlay_command, unmap_overlay_command)
5319 (overlay_auto_command, overlay_manual_command)
5320 (overlay_off_command, overlay_load_command): Constify.
5321
e6738699
TT
53222017-09-27 Tom Tromey <tom@tromey.com>
5323
5324 * spu-tdep.c (info_spu_event_command, info_spu_signal_command)
5325 (info_spu_mailbox_command, info_spu_dma_command)
5326 (info_spu_proxydma_command): Constify.
5327
aa360cd5
TT
53282017-09-27 Tom Tromey <tom@tromey.com>
5329
5330 * cli/cli-logging.c (set_logging_on, set_logging_off): Constify.
5331
898241a5
TT
53322017-09-27 Tom Tromey <tom@tromey.com>
5333
5334 * cli/cli-script.c (user_defined_command): Constify.
5335
2d0ac106
TT
53362017-09-27 Tom Tromey <tom@tromey.com>
5337
5338 * cli/cli-dump.c (dump_memory_command, dump_value_command)
5339 (dump_srec_memory, dump_srec_value, dump_ihex_memory)
5340 (dump_ihex_value, dump_verilog_memory, dump_verilog_value)
5341 (dump_tekhex_memory, dump_tekhex_value, dump_binary_memory)
5342 (dump_binary_value, append_binary_memory, append_binary_value):
5343 Constify.
5344 (struct dump_context) <func>: Constify.
5345 (add_dump_command): Update.
5346
dede02ce
TT
53472017-09-27 Tom Tromey <tom@tromey.com>
5348
5349 * cli/cli-cmds.c (show_version, show_configuration)
5350 (source_command, show_user): Constify.
5351
d3cb6b99
TT
53522017-09-27 Tom Tromey <tom@tromey.com>
5353
5354 * target.c (maintenance_print_target_stack): Constify.
5355
1970a12f
TT
53562017-09-27 Tom Tromey <tom@tromey.com>
5357
5358 * interps.c (interpreter_exec_cmd): Constify.
5359
41243651
TT
53602017-09-27 Tom Tromey <tom@tromey.com>
5361
5362 * record-full.c (cmd_record_full_restore): Constify.
5363
4465d9db
TT
53642017-09-27 Tom Tromey <tom@tromey.com>
5365
5366 * memattr.c (enable_mem_command, disable_mem_command)
5367 (delete_mem_command): Constify.
5368
ad25e423
TT
53692017-09-27 Tom Tromey <tom@tromey.com>
5370
5371 * value.c (show_convenience): Constify.
5372
d64097b1
TT
53732017-09-27 Tom Tromey <tom@tromey.com>
5374
5375 * gdbcore.h (core_file_command): Update.
5376 * corefile.c (core_file_command): Constify.
5377
4d4589ef
TT
53782017-09-27 Tom Tromey <tom@tromey.com>
5379
5380 * user-regs.c (maintenance_print_user_registers): Constify.
5381
32a7bf17
TT
53822017-09-27 Tom Tromey <tom@tromey.com>
5383
5384 * cp-namespace.c (maintenance_cplus_namespace): Constify.
5385
4a475551
TT
53862017-09-27 Tom Tromey <tom@tromey.com>
5387
5388 * cp-support.c (first_component_command): Constify.
5389
990b9f9f
TT
53902017-09-27 Tom Tromey <tom@tromey.com>
5391
5392 * psymtab.c (maintenance_print_psymbols)
5393 (maintenance_info_psymtabs, maintenance_check_psymtabs):
5394 Constify.
5395
c281872e
TT
53962017-09-27 Tom Tromey <tom@tromey.com>
5397
5398 * windows-tdep.c (display_tib): Constify.
5399
5b64bf74
TT
54002017-09-27 Tom Tromey <tom@tromey.com>
5401
5402 * linux-fork.c (delete_checkpoint_command)
5403 (detach_checkpoint_command): Constify.
5404
4ada038f
TT
54052017-09-27 Tom Tromey <tom@tromey.com>
5406
5407 * cp-abi.c (set_cp_abi_cmd, show_cp_abi_cmd): Constify.
5408
57f5a81b
TT
54092017-09-27 Tom Tromey <tom@tromey.com>
5410
5411 * arc-tdep.c (dump_arc_instruction_command): Constify.
5412
b0a8e6c4
TT
54132017-09-27 Tom Tromey <tom@tromey.com>
5414
5415 * valprint.c (set_radix, show_radix): Constify.
5416
8d97dc1c
TT
54172017-09-27 Tom Tromey <tom@tromey.com>
5418
5419 * dtrace-probe.c (info_probes_dtrace_command): Constify.
5420
eb7c454d
TT
54212017-09-27 Tom Tromey <tom@tromey.com>
5422
5423 * command.h (not_just_help_class_command): Update.
5424 * cli/cli-decode.h (not_just_help_class_command): Update.
5425 * cli/cli-decode.c (not_just_help_class_command): Constify.
5426
e4e33335
TT
54272017-09-27 Tom Tromey <tom@tromey.com>
5428
5429 * gdb_bfd.c (maintenance_info_bfds): Constify.
5430
0450cc4c
TT
54312017-09-27 Tom Tromey <tom@tromey.com>
5432
5433 * cli/cli-decode.c (add_cmd, set_cmd_cfunc): New function
5434 overloads.
5435 (do_add_cmd): Rename from add_cmd. Don't call set_cmd_cfunc.
5436 (do_const_cfunc): New function.
5437 (cmd_cfunc_eq): New overload.
5438 (cli_user_command_p): Check do_const_cfunc.
5439 * cli/cli-decode.h (struct cmd_list_element) <function>: New field
5440 const_cfunc.
5441 * command.h (add_cmd): Add const overload and no-function
5442 overload.
5443 (set_cmd_cfunc): Add const overload.
5444 (cmd_const_cfunc_ftype): Declare.
5445 (cmd_cfunc_eq): Add const overload.
5446 * breakpoint.c, cli-cmds.c, cli-dump.c, guile/scm-cmd.c,
5447 python/py-cmd.c, target.c, tracepoint.c: Use no-function add_cmd
5448 overload.
5449
a9bbfbd8
TT
54502017-09-27 Tom Tromey <tom@tromey.com>
5451
5452 * macroexp.c (get_next_token_for_substitution): New function.
5453 (substitute_args): Call it. Check for __VA_OPT__.
5454
5230b05a
WT
54552017-09-26 Walfred Tedeschi <walfred.tedeschi@intel.com>
5456 Pedro Alves <palves@redhat.com>
5457
5458 * dwarf2read.c (dwarf2_cu): Remove field producer_is_icc and add
5459 producer_is_icc_lt_14.
5460 (producer_is_icc_lt_14): New function.
5461 (check_producer): Add code for checking version of ICC.
5462 (producer_is_icc): Move to producer.c.
5463 (read_structure_type): Restrict ICC workaround to ICC<14.
5464 * producer.c: Include selftest.h.
5465 (producer_is_icc, producer_parsing_tests, _initialize_producer):
5466 New functions.
5467 * producer.h (producer_is_icc): New declaration.
5468
b32b108a
WT
54692017-09-26 Walfred Tedeschi <walfred.tedeschi@intel.com>
5470
5471 * Makefile.in (SFILES): Add producer.c.
5472 (COMMON_OBS): Add producer.o
5473 * amd64-tdep.c (producer.h): Add new include.
5474 * dwarf2read.c (producer.h): Add new include.
5475 * producer.c: New file.
5476 * producer.h: New file.
5477 * utils.c (producer_is_gcc, producer_is_gcc_ge_4): Move to
5478 producer.c.
5479 * utils.h (producer_is_gcc, producer_is_gcc_ge_4): Move to
5480 producer.h.
5481
5007d765
MK
54822017-09-26 Matthias Klose <doko@ubuntu.com>
5483
5484 * configure.ac: Search ncursesw before ncurses.
5485 Check ncursesw/ncurses.h before ncurses/ncurses.h.
5486 * gdb_curses.h: Include <ncursesw/ncurses.h>
5487 * config.in, configure: Regenerate.
5488
281c4447
RO
54892017-09-26 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
5490
5491 PR gdb/22185
5492 * configure.host <*-*-solaris2.[01], *-*-solaris2.[2-9]*>: Mark as
5493 obsolete.
5494 Use gdb_host sol2 for i[34567]86-*-solaris2*, x86_64-*-solaris2*.
5495 Remove i386sol2 support.
5496 * configure.nat <i386sol2>: Remove.
5497 <sol2-64>: Fold into ...
5498 <sol2>: ... this.
5499 Move common settings to default section.
5500 Add sol-thread.o.
5501 * configure.tgt <i[34567]86-*-solaris2.1[0-9]*,
5502 x86_64-*-solaris2.1[0-9]*>: Rename to ...
5503 <i[34567]86-*-solaris2*, x86_64-*-solaris2*>: ... this.
5504 <i[34567]86-*-solaris*>: Remove.
5505 <sparc-*-solaris2.[0-6], sparc-*-solaris2.[0-6].*>: Remove.
5506
5507 * configure.ac: Remove wctype in libw check.
5508 (_MSE_INT_H): Don't define on Solaris 7-9.
5509 <solaris*>: Remove libthread_db.so.1 check.
5510 * configure: Regenerate.
5511 * config.in: Regenerate.
5512
5513 * proc-service.c: Remove PROC_SERVICE_IS_OLD handling.
5514 (gdb_ps_prochandle_t, gdb_ps_read_buf_t, gdb_ps_write_buf_t)
5515 (gdb_ps_size_t): Remove.
5516 Use base types in users.
5517 * sol-thread.c: Likewise, also for gdb_ps_addr_t.
5518
5519 * NEWS (Changes since GDB 8.0): Document Solaris 2.0-9 removal.
5520
39b06c20
RO
55212017-09-26 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
5522
5523 PR build/22206
5524 * sparc64-tdep.c (adi_tag_fd): Print pid as long.
5525 (adi_is_addr_mapped): Likewise.
5526 (PSR_ICC): Don't redefine.
5527 (PSR_IMPL): Likewise.
5528
6c3e20f1
TT
55292017-09-25 Tom Tromey <tom@tromey.com>
5530
5531 * regcache.c (regcache::dump): Use string_printf.
5532
b292235f
TT
55332017-09-25 Tom Tromey <tom@tromey.com>
5534
5535 * regcache.c (class regcache_invalidator): New.
5536 (struct register_to_invalidate): Remove.
5537 (make_cleanup_regcache_invalidate): Remove.
5538 (regcache::raw_write): Use regcache_invalidator.
5539
9ac86b52
TT
55402017-09-25 Tom Tromey <tom@tromey.com>
5541
5542 * spu-tdep.c (spu2ppu_sniffer): Update.
5543 * regcache.h (make_cleanup_regcache_xfree): Don't declare.
5544 * regcache.c (do_regcache_xfree, make_cleanup_regcache_xfree):
5545 Remove.
5546 * ppc-linux-tdep.c (ppu2spu_sniffer): Update.
5547 * mi/mi-main.c (mi_cmd_data_list_changed_registers): Update.
5548 * frame.h (frame_save_as_regcache): Return std::unique_ptr.
5549 * frame.c (frame_save_as_regcache): Return std::unique_ptr.
5550 (frame_pop): Update.
5551
c0e383c6
TT
55522017-09-25 Tom Tromey <tom@tromey.com>
5553
5554 * spu-tdep.c (spu2ppu_dealloc_cache): Use delete.
5555 * regcache.h (regcache_xfree): Don't declare.
5556 * regcache.c (regcache_xfree): Remove.
5557 (do_regcache_xfree): Use delete.
5558 * ppc-linux-tdep.c (ppu2spu_dealloc_cache): Use delete.
5559 * linux-fork.c (free_fork): Use delete.
5560 (fork_save_infrun_state): Likewise.
5561 * jit.c (jit_dealloc_cache): Use delete.
5562 * infrun.c (discard_infcall_suspend_state): Use delete.
5563
791199cc
TT
55642017-09-25 Tom Tromey <tom@tromey.com>
5565
5566 * regcache.h (regcache_xmalloc): Don't declare.
5567 (regcache_raw_set_cached_value): Update comment.
5568 * regcache.c (regcache_xmalloc): Remove.
5569 * ppc-linux-tdep.c (ppu2spu_sniffer): Use new.
5570 * jit.c (jit_frame_sniffer): Use new.
5571 * frame.c (frame_save_as_regcache): Use new.
5572
289e23aa
AA
55732017-09-25 Andreas Arnez <arnez@linux.vnet.ibm.com>
5574
5575 * NEWS: Advertise support for guarded-storage registers on IBM z.
5576
1b63490c
AA
55772017-09-25 Andreas Arnez <arnez@linux.vnet.ibm.com>
5578
5579 * s390-linux-nat.c (have_regset_gs): New static variable.
5580 (s390_linux_fetch_inferior_registers): Handle guarded-storage
5581 control block and guarded-storage broadcast control regsets.
5582 (s390_read_description): Detect whether the target has
5583 guarded-storage support, return appropriate tdesc.
5584 * s390-linux-tdep.c (features/s390-gs-linux64.c): New include.
5585 (features/s390x-gs-linux64.c): Likewise.
5586 (struct gdbarch_tdep) <have_gs>: New field.
5587 (s390_regmap_gs, s390_regmap_gsbc, s390_gs_regset)
5588 (s390_gsbc_regset): New variables.
5589 (s390_iterate_over_regset_sections): Iterate over s390_gs_regset
5590 and s390_gsbc_regset, if applicable.
5591 (s390_core_read_description): Check whether core file was from a
5592 target with guarded-storage support; include appropriate regsets.
5593 (s390_gdbarch_init): Add registers for guarded-storage support.
5594 (_initialize_s390_tdep): Initialize new target descriptions that
5595 include registers for guarded-storage support.
5596 * s390-linux-tdep.h (HWCAP_S390_GS, S390_GSD_REGNUM)
5597 (S390_GSSM_REGNUM, S390_GSEPLA_REGNUM)
5598 (S390_BC_GSD_REGNUM, S390_BC_GSSM_REGNUM): New defines.
5599 (S390_NUM_REGS): Adjust macro definition.
5600 (s390_gs_regset, s390_gsbc_regset, tdesc_s390_gs_linux64)
5601 (tdesc_s390x_gs_linux64): New declarations.
5602
96235dc1
AA
56032017-09-25 Andreas Arnez <arnez@linux.vnet.ibm.com>
5604
5605 * features/s390-gs-linux64.xml: New file.
5606 * features/s390-gs.xml: New file.
5607 * features/s390-gsbc.xml: New file.
5608 * features/s390x-gs-linux64.xml: New file.
5609 * features/Makefile (WHICH): Add s390-gs-linux64 and
5610 s390x-gs-linux64.
5611 (s390-gs-linux64-expedite, s390x-gs-linux64-expedite): New macros.
5612 (XMLTOC): Add s390-gs-linux64.xml and s390x-linux64.xml.
5613 * features/s390-gs-linux64.c: New generated file.
5614 * features/s390x-gs-linux64.c: New file.
5615 * regformats/s390-gs-linux64.dat: New file.
5616 * regformats/s390x-gs-linux64.dat: New file.
5617
b4a7c699
TT
56182017-09-23 Tom Tromey <tom@tromey.com>
5619
5620 * defs.h (make_cleanup_override_quit_handler): Don't declare.
5621
c2f97536
TT
56222017-09-22 Tom Tromey <tom@tromey.com>
5623
5624 * utils.c (class scoped_input_handler) <m_quit_handler>: Change
5625 type to scoped_restore_tmpl.
5626 <scoped_input_handler>: Initialize m_quit_handler directly.
5627
43573013
SDJ
56282017-09-22 Sergio Durigan Junior <sergiodj@redhat.com>
5629
5630 * cli/cli-cmds.c (pwd_command): Use "getcwd (NULL, 0)".
5631 (cd_command): Likewise. Free "current_directory" before
5632 assigning to it.
5633 * main.c (captured_main_1): Use "getcwd (NULL, 0)".
5634 * mi/mi-cmd-env.c (mi_cmd_env_pwd): Likewise.
5635 * top.c (gdb_dirbuf): Remove global declaration.
5636 * top.h (gdb_dirbuf): Likewise.
5637
6ec2e0f5
SDJ
56382017-09-22 Sergio Durigan Junior <sergiodj@redhat.com>
5639
5640 * gnulib/aclocal.m4: Regenerate.
5641 * gnulib/config.in: Regenerate.
5642 * gnulib/configure: Regenerate.
5643 * gnulib/import/Makefile.am: Regenerate.
5644 * gnulib/import/Makefile.in: Regenerate.
5645 * gnulib/import/assure.h: New file.
5646 * gnulib/import/at-func.c: Likewise
5647 * gnulib/import/chdir-long.c: New file.
5648 * gnulib/import/chdir-long.h: New file.
5649 * gnulib/import/cloexec.c: New file.
5650 * gnulib/import/cloexec.h: New file.
5651 * gnulib/import/close.c: New file.
5652 * gnulib/import/closedir.c: New file.
5653 * gnulib/import/dirent-private.h: New file.
5654 * gnulib/import/dup-safer.c: New file.
5655 * gnulib/import/dup.c: New file.
5656 * gnulib/import/dup2.c: New file.
5657 * gnulib/import/error.c: New file.
5658 * gnulib/import/error.h: New file.
5659 * gnulib/import/exitfail.c: New file.
5660 * gnulib/import/exitfail.h: New file.
5661 * gnulib/import/fchdir.c: New file.
5662 * gnulib/import/fcntl.c: New file.
5663 * gnulib/import/fcntl.in.h: New file.
5664 * gnulib/import/fd-hook.c: New file.
5665 * gnulib/import/fd-hook.h: New file.
5666 * gnulib/import/fd-safer.c: New file.
5667 * gnulib/import/fdopendir.c: New file.
5668 * gnulib/import/filename.h: New file.
5669 * gnulib/import/filenamecat-lgpl.c: New file.
5670 * gnulib/import/filenamecat.h: New file.
5671 * gnulib/import/fstat.c: New file.
5672 * gnulib/import/fstatat.c: New file.
5673 * gnulib/import/getcwd-lgpl.c: New file.
5674 * gnulib/import/getcwd.c: New file.
5675 * gnulib/import/getdtablesize.c: New file.
5676 * gnulib/import/getlogin_r.c: New file.
5677 * gnulib/import/getprogname.c: New file.
5678 * gnulib/import/getprogname.h: New file.
5679 * gnulib/import/gettext.h: New file.
5680 * gnulib/import/glob-libc.h: New file.
5681 * gnulib/import/glob.c: New file.
5682 * gnulib/import/glob.in.h: New file.
5683 * gnulib/import/intprops.h: New file.
5684 * gnulib/import/m4/chdir-long.m4: New file.
5685 * gnulib/import/m4/close.m4: New file.
5686 * gnulib/import/m4/closedir.m4: New file.
5687 * gnulib/import/m4/d-ino.m4: New file.
5688 * gnulib/import/m4/d-type.m4: New file.
5689 * gnulib/import/m4/dup.m4: New file.
5690 * gnulib/import/m4/dup2.m4: New file.
5691 * gnulib/import/m4/error.m4: New file.
5692 * gnulib/import/m4/fchdir.m4: New file.
5693 * gnulib/import/m4/fcntl.m4: New file.
5694 * gnulib/import/m4/fcntl_h.m4: New file.
5695 * gnulib/import/m4/fdopendir.m4: New file.
5696 * gnulib/import/m4/filenamecat.m4: New file.
5697 * gnulib/import/m4/fstat.m4: New file.
5698 * gnulib/import/m4/fstatat.m4: New file.
5699 * gnulib/import/m4/getcwd-abort-bug.m4: New file.
5700 * gnulib/import/m4/getcwd-path-max.m4: New file.
5701 * gnulib/import/m4/getcwd.m4: New file.
5702 * gnulib/import/m4/getdtablesize.m4: New file.
5703 * gnulib/import/m4/getlogin_r.m4: New file.
5704 * gnulib/import/m4/getprogname.m4: New file.
5705 * gnulib/import/m4/glob.m4: New file.
5706 * gnulib/import/m4/gnulib-cache.m4: Regenerate.
5707 * gnulib/import/m4/gnulib-comp.m4: Regenerate.
5708 * gnulib/import/m4/mempcpy.m4: New file.
5709 * gnulib/import/m4/memrchr.m4: New file.
5710 * gnulib/import/m4/mode_t.m4: New file.
5711 * gnulib/import/m4/msvc-inval.m4: New file.
5712 * gnulib/import/m4/msvc-nothrow.m4: New file.
5713 * gnulib/import/m4/open.m4: New file.
5714 * gnulib/import/m4/openat.m4: New file.
5715 * gnulib/import/m4/opendir.m4: New file.
5716 * gnulib/import/m4/readdir.m4: New file.
5717 * gnulib/import/m4/realloc.m4: New file.
5718 * gnulib/import/m4/rewinddir.m4: New file.
5719 * gnulib/import/m4/save-cwd.m4: New file.
5720 * gnulib/import/m4/strdup.m4: New file.
5721 * gnulib/import/m4/strerror.m4: New file.
5722 * gnulib/import/m4/unistd-safer.m4: New file.
5723 * gnulib/import/mempcpy.c: New file.
5724 * gnulib/import/memrchr.c: New file.
5725 * gnulib/import/msvc-inval.c: New file.
5726 * gnulib/import/msvc-inval.h: New file.
5727 * gnulib/import/msvc-nothrow.c: New file.
5728 * gnulib/import/msvc-nothrow.h: New file.
5729 * gnulib/import/open.c: New file.
5730 * gnulib/import/openat-die.c: New file.
5731 * gnulib/import/openat-priv.h: New file.
5732 * gnulib/import/openat-proc.c: New file.
5733 * gnulib/import/openat.c: New file.
5734 * gnulib/import/openat.h: New file.
5735 * gnulib/import/opendir.c: New file.
5736 * gnulib/import/pipe-safer.c: New file.
5737 * gnulib/import/readdir.c: New file.
5738 * gnulib/import/realloc.c: New file.
5739 * gnulib/import/rewinddir.c: New file.
5740 * gnulib/import/save-cwd.c: New file.
5741 * gnulib/import/save-cwd.h: New file.
5742 * gnulib/import/strdup.c: New file.
5743 * gnulib/import/strerror-override.c: New file.
5744 * gnulib/import/strerror-override.h: New file.
5745 * gnulib/import/strerror.c: New file.
5746 * gnulib/import/unistd--.h: New file.
5747 * gnulib/import/unistd-safer.h: New file.
5748 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add
5749 "getcwd" and "glob".
5750 * ser-tcp.c: Undefine "close" before redefining it.
5751
432ae719
SM
57522017-09-21 Simon Marchi <simon.marchi@ericsson.com>
5753
5754 * guile/scm-value.c (gdbscm_value_address): Initialize address,
5755 get rid of res_val.
5756
4fa7574e
RO
57572017-09-22 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
5758
5759 * configure.nat <i386sol2,i386>: Add fork-inferior.o to NATDEPFILES.
5760 <sol2,sparc>: Likewise.
5761 <sol2-64,i386>: Likewise.
5762
5763 * warning.m4 (AM_GDB_WARNINGS): Disable -Wunknown-pragmas,
5764 -Wdeprecated-declarations on *-*-solaris*.
5765 * configure: Regenerate.
5766
5767 * procfs.c: Include "nat/inferior.h".
5768 (procfs_info_proc): Fix typo.
5769
f6327dcb
KB
57702017-09-21 Kevin Buettner <kevinb@redhat.com>
5771
5772 * remote.c (vector): Include.
5773 (struct private_thread_info): Add field, thread_handle.
5774 (free_private_thread_info): Deallocate storage associated with
5775 thread handle.
5776 (get_private_info_thread): Initialize `thread_handle' field.
5777 (struct thread_item): Add field, thread_handle.
5778 (clear_threads_listing_context): Deallocate storage associated
5779 with thread handle.
5780 (start_thread): Add support for "handle" attribute.
5781 (thread_attributes): Add "handle".
5782 (remote_get_threads_with_qthreadinfo): Initialize thread_handle
5783 field.
5784 (remote_update_thread_list): Update thread_handle.
5785 (remote_thread_handle_to_thread_info): New function.
5786 (init_remote_ops): Initialize to_thread_handle_to_thread_info.
5787
fbbe5337
KB
57882017-09-21 Kevin Buettner <kevinb@redhat.com>
5789
5790 * python/py-inferior.c (gdbpy_thread_from_thread_handle): New
5791 function.
5792 (inferior_object_methods): Add gdbpy_thread_from_thread_handle.
5793 * python/python-internal.h (thread_object_type): Declare.
5794
e04ee09e
KB
57952017-09-21 Kevin Buettner <kevinb@redhat.com>
5796
5797 * target.h (struct target_ops): Add to_thread_handle_to_thread_info.
5798 (target_thread_handle_to_thread_info): Declare.
5799 * target.c (target_thread_handle_to_thread_info): New function.
5800 * target-delegates.c: Regenerate.
5801 * gdbthread.h (find_thread_by_handle): Declare.
5802 * thread.c (find_thread_by_handle): New function.
5803 * linux-thread-db.c (thread_db_thread_handle_to_thread_info): New
5804 function.
5805 (init_thread_db_ops): Register thread_db_thread_handle_to_thread_info.
5806
1e5b66ed
SM
58072017-09-21 Simon Marchi <simon.marchi@ericsson.com>
5808
5809 * nat/linux-waitpid.c (linux_debug): Add ATTRIBUTE_PRINTF.
5810
ebe48ba0
SM
58112017-09-21 Simon Marchi <simon.marchi@ericsson.com>
5812
5813 * microblaze-tdep.c (microblaze_debug): Add ATTRIBUTE_PRINTF.
5814
0a0bf5dc
YQ
58152017-09-21 Yao Qi <yao.qi@linaro.org>
5816
5817 * configure.tgt (aarch64*-*-freebsd*): Add fbsd-tdep.o solib-svr4.o
5818 to gdb_target_obs.
5819
d1b0a7bf
TT
58202017-09-20 Tom Tromey <tom@tromey.com>
5821
5822 * breakpoint.c (struct counted_command_line): Remove.
5823 (breakpoint_commands): Update.
5824 (alloc_counted_command_line, incref_counted_command_line)
5825 (decref_counted_command_line, do_cleanup_counted_command_line)
5826 (make_cleanup_decref_counted_command_line): Remove.
5827 (breakpoint_set_commands, commands_command_1, ~bpstats, bpstats)
5828 (bpstat_clear_actions, bpstat_do_actions_1, watchpoint_check)
5829 (bpstat_stop_status, print_one_breakpoint_location, ~breakpoint)
5830 (save_breakpoints): Update.
5831 * breakpoint.h (counted_command_line): Now a typedef to
5832 shared_ptr.
5833 (struct breakpoint) <commands>: Now a counted_command_line.
5834 (struct bpstats) <command>: Likewise.
5835
48649e1b
TT
58362017-09-20 Tom Tromey <tom@tromey.com>
5837
5838 * breakpoint.c (struct commands_info, do_map_commands_command):
5839 Remove.
5840 (commands_command_1): Update.
5841 (iterate_over_related_breakpoints): Take a function_view.
5842 (do_delete_breakpoint, do_map_delete_breakpoint): Remove.
5843 (delete_command): Update.
5844 (map_breakpoint_numbers): Take a function_view.
5845 (do_disable_breakpoint, do_map_delete_breakpoint): Remove.
5846 (disable_command): Update.
5847 (do_enable_breakpoint, do_map_enable_breakpoint): Remove.
5848 (enable_command): Update.
5849 (struct disp_data, do_enable_breakpoint_disp)
5850 (do_map_enable_once_breakpoint, do_map_enable_count_breakpoint)
5851 (do_map_enable_delete_breakpoint): Remove.
5852 (enable_once_command, enable_count_command, enable_delete_command)
5853 (delete_trace_variable_command): Update.
5854
04afa70c
TT
58552017-09-20 Tom Tromey <tom@tromey.com>
5856
5857 * breakpoint.c (~bpstats): Rename from bpstat_free. Update.
5858 (bpstat_clear): Use delete.
5859 (bpstats): New constructors.
5860 (bpstat_copy, bpstat_stop_status): Use new.
5861 (dprintf_after_condition_true): Update.
5862 * breakpoint.h (bpstats::bpstats): Add constructors.
5863 (bpstats::~bpstats): Add destructor.
5864
c83833f4
PA
58652017-09-20 Pedro Alves <palves@redhat.com>
5866
5867 * eval.c (make_params): Delete, refactored as ...
5868 (class fake_method): ... this new type's ctor.
5869 (fake_method::~fake_method): New.
5870 (evaluate_subexp_standard): Use 'fake_method'.
5871
223ffa71
TT
58722017-09-20 Tom Tromey <tom@tromey.com>
5873
5874 * windows-nat.c (get_windows_debug_event, windows_wait)
5875 (do_initial_windows_stuff, windows_attach): Update.
5876 * utils.c (vwarning, internal_vproblem): Update.
5877 (ui_unregister_input_event_handler_cleanup)
5878 (prepare_to_handle_input): Remove.
5879 (class scoped_input_handler): New.
5880 (defaulted_query, prompt_for_continue): Update.
5881 * tui/tui-hooks.c (tui_refresh_frame_and_register_information):
5882 Update.
5883 * top.c (undo_terminal_modifications_before_exit): Update.
5884 * target/target.h (target_terminal_init, target_terminal_inferior)
5885 (target_terminal_ours): Don't declare.
5886 (class target_terminal): New.
5887 * target.h (target_terminal_is_inferior, target_terminal_is_ours)
5888 (target_terminal_ours_for_output)
5889 (make_cleanup_restore_target_terminal): Don't declare.
5890 (target_terminal_info): Remove.
5891 * target.c (enum terminal_state, terminal_state): Remove.
5892 (target_terminal::terminal_state): Define.
5893 (target_terminal::init): Rename from target_terminal_init.
5894 (target_terminal::inferior): Rename from
5895 target_terminal_inferior.
5896 (target_terminal::ours): Rename from target_terminal_ours.
5897 (target_terminal::ours_for_output): Rename from
5898 target_terminal_ours_for_output.
5899 (target_terminal::info): New method.
5900 (cleanup_restore_target_terminal)
5901 (make_cleanup_restore_target_terminal): Remove.
5902 * solib.c (handle_solib_event): Update.
5903 * remote.c (remote_serial_quit_handler): Update.
5904 (remote_terminal_inferior, remote_wait_as): Update.
5905 * record-full.c (record_full_wait_1): Update.
5906 * nto-procfs.c (procfs_create_inferior): Update.
5907 * nat/fork-inferior.c (startup_inferior): Update.
5908 * mi/mi-interp.c (mi_new_thread, mi_thread_exit)
5909 (mi_record_changed, mi_inferior_added, mi_inferior_appeared)
5910 (mi_inferior_exit, mi_inferior_removed, mi_traceframe_changed)
5911 (mi_tsv_created, mi_tsv_deleted, mi_tsv_modified)
5912 (mi_breakpoint_created, mi_breakpoint_deleted)
5913 (mi_breakpoint_modified, mi_on_resume, mi_solib_loaded)
5914 (mi_solib_unloaded, mi_command_param_changed, mi_memory_changed)
5915 (mi_user_selected_context_changed, report_initial_inferior):
5916 Update.
5917 * linux-nat.c (linux_nat_attach, linux_nat_terminal_ours)
5918 (linux_nat_terminal_inferior): Update.
5919 * infrun.c (follow_fork_inferior)
5920 (handle_vfork_child_exec_or_exit, do_target_resume)
5921 (check_curr_ui_sync_execution_done, handle_inferior_event_1)
5922 (handle_signal_stop, maybe_remove_breakpoints, normal_stop):
5923 Update.
5924 * inflow.c (child_terminal_init, info_terminal_command): Update.
5925 * infcmd.c (post_create_inferior, continue_1, prepare_one_step)
5926 (attach_command): Update.
5927 * infcall.c (call_thread_fsm_should_stop): Update.
5928 * gnu-nat.c (gnu_attach): Update.
5929 * extension.c (struct active_ext_lang_state)
5930 (restore_active_ext_lang): Update.
5931 * exceptions.c (print_flush): Update.
5932 * event-top.c (async_enable_stdin, default_quit_handler): Update.
5933 (struct quit_handler_cleanup_data, restore_quit_handler)
5934 (restore_quit_handler_dtor, make_cleanup_override_quit_handler):
5935 Remove.
5936 * cp-support.c (gdb_demangle): Update.
5937 * breakpoint.c (update_inserted_breakpoint_locations)
5938 (insert_breakpoint_locations, handle_jit_event)
5939 (disable_breakpoints_in_unloaded_shlib): Update.
5940 * annotate.c (annotate_breakpoints_invalid)
5941 (annotate_frames_invalid): Update.
5942
013af3fc
TT
59432017-09-20 Tom Tromey <tom@tromey.com>
5944
5945 * main.c (catch_command_errors): Rename from
5946 catch_command_errors_const.
5947 (captured_main_1): Update.
5948
06871ae8
PA
59492017-09-20 Pedro Alves <palves@redhat.com>
5950
5951 * cli/cli-cmds.c (list_command): Use print_sal_location.
5952 (print_sal_location): New function.
5953 (ambiguous_line_spec): Use print_sal_location.
5954 * linespec.c (symbol_to_sal): Record the symbol in the sal.
5955 * symtab.c (find_function_start_sal): Likewise.
5956 * symtab.h (symtab_and_line::symbol): New field.
5957
e5f25bc5
PA
59582017-09-20 Pedro Alves <palves@redhat.com>
5959
5960 * linespec.c (minsym_found): Handle non-text minsyms.
5961 (symbol_to_sal): Record a sal.pc for non-block, non-label symbols.
5962
1b7fa39e
WT
59632017-09-20 Walfred Tedeschi <walfred.tedeschi@intel.com>
5964
5965 * features/Makefile (i386-avx-mpx-avx512-pku.dat): Add missing
5966 backslash.
5967
37dd0825
WT
59682017-09-20 Walfred Tedeschi <walfred.tedeschi@intel.com>
5969
5970 * gdb.arch/i386-avx512.c (move_zmm_data_to_reg): Use
5971 vmovups instead vmovaps.
5972 (move_zmm_data_to_memory): Use vmovups instead vmovaps.
5973
4e5a4f58
JB
59742017-09-19 John Baldwin <jhb@FreeBSD.org>
5975
5976 * NEWS (Changes since GDB 8.0): Add starti.
5977 * infcmd.c (enum run_break): New.
5978 (run_command_1): Queue pending event for RUN_STOP_AT_FIRST_INSN
5979 case.
5980 (run_command): Use enum run_how.
5981 (start_command): Likewise.
5982 (starti_command): New function.
5983 (RUN_ARGS_HELP): New macro.
5984 (_initialize_infcmd): Use RUN_ARGS_HELP for run and start
5985 commands. Add starti command.
5986
aa70c9f1
YQ
59872017-09-19 Yao Qi <yao.qi@linaro.org>
5988
5989 * Makefile.in (monitor.o): Remove the rule.
5990
d6541620
YQ
59912017-09-19 Yao Qi <yao.qi@linaro.org>
5992
5993 * annotate.h (struct annotate_arg_emitter): Use
5994 DISABLE_COPY_AND_ASSIGN.
5995 * common/refcounted-object.h (refcounted_object): Likewise.
5996 * completer.h (struct completion_result): Likewise.
5997 * dwarf2read.c (struct dwarf2_per_objfile): Likewise.
5998 * filename-seen-cache.h (filename_seen_cache): Likewise.
5999 * gdbcore.h (thread_section_name): Likewise.
6000 * gdb_regex.h (compiled_regex): Likewise.
6001 * gdbthread.h (scoped_restore_current_thread): Likewise.
6002 * inferior.h (scoped_restore_current_inferior): Likewise.
6003 * jit.c (jit_reader): Likewise.
6004 * linespec.h (struct linespec_result): Likewise.
6005 * mi/mi-parse.h (struct mi_parse): Likewise.
6006 * nat/fork-inferior.c (execv_argv): Likewise.
6007 * progspace.h (scoped_restore_current_program_space): Likewise.
6008 * python/python-internal.h (class gdbpy_enter): Likewise.
6009 * regcache.h (regcache): Likewise.
6010 * target-descriptions.c (struct tdesc_reg): Likewise.
6011 (struct tdesc_type): Likewise.
6012 (struct tdesc_feature): Likewise.
6013 * ui-out.h (ui_out_emit_type): Likewise.
6014
0615127c
SM
60152017-09-18 Simon Marchi <simon.marchi@ericsson.com>
6016
6017 * dwarf2expr.c (dwarf_expr_context::execute_stack_op): Remove
6018 label abort_expression.
6019
5e187554
SM
60202017-09-16 Simon Marchi <simon.marchi@ericsson.com>
6021
6022 * common/buffer.c (buffer_xml_printf): Adjust.
6023 * common/xml-utils.c (xml_escape_text): Change return type to
6024 std::string, update code accordingly.
6025 * common/xml-utils.h (xml_escape_text): Change return type to
6026 std::string.
6027 * rs6000-aix-tdep.c (rs6000_aix_shared_library_to_xml): Adjust.
6028 * windows-tdep.c (windows_xfer_shared_library): Adjust.
6029 * unittests/xml-utils-selftests.c (test_xml_escape_text):
6030 Adjust.
6031
c3d7b541
SM
60322017-09-16 Simon Marchi <simon.marchi@ericsson.com>
6033
6034 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add new source file.
6035 (SUBDIR_UNITTESTS_OBS): Add new object file.
6036 * unittests/xml-utils-selftests.c: New file.
6037
1526853e
SM
60382017-09-16 Simon Marchi <simon.marchi@ericsson.com>
6039
6040 * common/selftest.h (selftest): New struct/interface.
6041 (register_test): Add name parameter, add new overload.
6042 (run_tests): Add filter parameter.
6043 (for_each_selftest_ftype): New typedef.
6044 (for_each_selftest): New declaration.
6045 * common/selftest.c (tests): Change type to
6046 map<string, unique_ptr<selftest>>.
6047 (simple_selftest): New struct.
6048 (register_test): New function.
6049 (register_test): Add name parameter and use it.
6050 (run_tests): Add filter parameter and use it. Add prints.
6051 Adjust to vector -> map change.
6052 * aarch64-tdep.c (_initialize_aarch64_tdep): Add names when
6053 registering selftests.
6054 * arm-tdep.c (_initialize_arm_tdep): Likewise.
6055 * disasm-selftests.c (_initialize_disasm_selftests): Likewise.
6056 * dwarf2-frame.c (_initialize_dwarf2_frame): Likewise.
6057 * dwarf2loc.c (_initialize_dwarf2loc): Likewise.
6058 * findvar.c (_initialize_findvar): Likewise.
6059 * gdbarch-selftests.c (_initialize_gdbarch_selftests): Likewise.
6060 * maint.c (maintenance_selftest): Update call to run_tests.
6061 (maintenance_info_selftests): New function.
6062 (_initialize_maint_cmds): Register "maintenance info selftests"
6063 command. Update "maintenance selftest" doc.
6064 * regcache.c (_initialize_regcache): Add names when registering
6065 selftests.
6066 * rust-exp.y (_initialize_rust_exp): Likewise.
6067 * selftest-arch.c (gdbarch_selftest): New struct.
6068 (gdbarch_tests): Remove.
6069 (register_test_foreach_arch): Add name parameter. Call
6070 register_test.
6071 (tests_with_arch): Remove, move most content to
6072 gdbarch_selftest::operator().
6073 (_initialize_selftests_foreach_arch): Remove.
6074 * selftest-arch.h (register_test_foreach_arch): Add name
6075 parameter.
6076 (run_tests_with_arch): New declaration.
6077 * utils-selftests.c (_initialize_utils_selftests): Add names
6078 when registering selftests.
6079 * utils.c (_initialize_utils): Likewise.
6080 * unittests/array-view-selftests.c
6081 (_initialize_array_view_selftests): Likewise.
6082 * unittests/environ-selftests.c (_initialize_environ_selftests):
6083 Likewise.
6084 * unittests/function-view-selftests.c
6085 (_initialize_function_view_selftests): Likewise.
6086 * unittests/offset-type-selftests.c
6087 (_initialize_offset_type_selftests): Likewise.
6088 * unittests/optional-selftests.c
6089 (_initialize_optional_selftests): Likewise.
6090 * unittests/scoped_restore-selftests.c
6091 (_initialize_scoped_restore_selftests): Likewise.
6092 * NEWS: Document "maintenance selftest" and "maint info
6093 selftests".
6094
5846367a
SM
60952017-09-16 Simon Marchi <simon.marchi@ericsson.com>
6096
6097 * mi/mi-main.c (mi_load_progress): Restore current_uiout using a
6098 scoped_restore.
6099
bd77e8ff
SM
61002017-09-16 Simon Marchi <simon.marchi@ericsson.com>
6101
6102 * mi/mi-main.c (mi_load_progress): Make uiout variable
6103 a unique_ptr.
6104
26a67918
PA
61052017-09-15 Pedro Alves <palves@redhat.com>
6106
6107 * compile/compile-c-types.c (convert_enum, convert_int)
6108 (convert_float): Adjust to refer to int_type_v0 and float_type_v0.
6109
3f8a7804
SM
61102017-09-15 Simon Marchi <simon.marchi@ericsson.com>
6111
6112 * dwarf2read.c (copy_string): Remove.
6113 (parse_macro_definition): Replace copy_string with savestring.
6114
8d200706
YQ
61152017-09-15 Yao Qi <yao.qi@linaro.org>
6116
6117 * configure.tgt (i[34567]86-*-darwin*): Append amd64.o to
6118 gdb_target_obs.
6119 (i[34567]86-*-solaris2.1[0-9]* | x86_64-*-solaris2.1[0-9]*):
6120 Likewise.
6121 (i[34567]86-*-linux*): Likewise.
6122
d185219d
SM
61232017-09-14 Simon Marchi <simon.marchi@ericsson.com>
6124
6125 * dwarf2expr.h (dwarf_stack_value): Add constructor.
6126 (dwarf_expr_context) <~dwarf_expr_context>: Define as default.
6127 <stack>: Change type to std::vector.
6128 <stack_len, stack_allocated>: Remove.
6129 <grow_stack>: Remove.
6130 * dwarf2expr.c (dwarf_expr_context::dwarf_expr_context): Adjust.
6131 (dwarf_expr_context::~dwarf_expr_context): Remove.
6132 (dwarf_expr_context::grow_stack): Remove.
6133 (dwarf_expr_context::push): Adjust.
6134 (dwarf_expr_context::pop): Adjust.
6135 (dwarf_expr_context::fetch): Adjust.
6136 (dwarf_expr_context::fetch_in_stack_memory): Adjust.
6137 (dwarf_expr_context::stack_empty_p): Adjust.
6138 (dwarf_expr_context::execute_stack_op): Adjust.
6139
eccd80d6
SM
61402017-09-14 Simon Marchi <simon.marchi@ericsson.com>
6141
6142 * dwarf2expr.h (dwarf_expr_context) <stack_empty_p>: Change
6143 return type to bool.
6144 * dwarf2expr.c (dwarf_expr_context::stack_empty_p): Likewise.
6145
69009882
SM
61462017-09-14 Simon Marchi <simon.marchi@ericsson.com>
6147
6148 * dwarf2expr.h (dwarf_expr_piece) <v.mem.in_stack_memory>:
6149 Change type to bool.
6150 (dwarf_stack_value) <in_stack_memory>: Likewise.
6151 (dwarf_expr_context) <push_address>: Change parameter type to
6152 bool.
6153 <fetch_in_stack_memory>: Change return type to bool.
6154 <push>: Change parameter type to bool.
6155 * dwarf2expr.c (dwarf_expr_context::push): Change parameter type
6156 to bool.
6157 (dwarf_expr_context::push_address): Likewise.
6158 (dwarf_expr_context::fetch_in_stack_memory): Change return type
6159 to bool.
6160 (dwarf_expr_context::execute_stack_op): Adjust.
6161 * dwarf2loc.c (dwarf2_evaluate_loc_desc_full): Adjust.
6162
1e467161
SM
61632017-09-14 Simon Marchi <simon.marchi@ericsson.com>
6164
6165 * dwarf2expr.h (struct dwarf_expr_piece): Move up.
6166 (struct dwarf_expr_context) <n_pieces>: Remove.
6167 <pieces>: Change type to std::vector.
6168 * dwarf2expr.c (dwarf_expr_context::dwarf_expr_context): Adjust.
6169 (dwarf_expr_context::~dwarf_expr_context): Don't manually free
6170 pieces.
6171 (dwarf_expr_context::add_piece): Adjust.
6172 * dwarf2loc.c (struct piece_closure): Initialize fields.
6173 <n_pieces>: Remove.
6174 <pieces>: Change type to std::vector.
6175 (allocate_piece_closure): Adjust, change parameter to
6176 std::vector rvalue and std::move it to piece_closure.
6177 (rw_pieced_value): Adjust.
6178 (check_pieced_synthetic_pointer): Adjust.
6179 (indirect_synthetic_pointer): Adjust.
6180 (coerce_pieced_ref): Adjust.
6181 (free_pieced_value_closure): Adjust. Use delete to free
6182 piece_closure.
6183 (dwarf2_evaluate_loc_desc_full): Adjust. std::move ctx.pieces
6184 to allocate_piece_closure.
6185 (dwarf2_loc_desc_get_symbol_read_needs): Adjust.
6186
0782db84
SM
61872017-09-12 Simon Marchi <simon.marchi@ericsson.com>
6188
6189 * probe.h (probe_ops_cp): Remove typedef.
6190 (DEF_VEC_P (probe_ops_cp)): Remove.
6191 (all_probe_ops): Change type to std::vector.
6192 * probe.c (info_probes_for_ops): Adjust to vector change.
6193 (probe_linespec_to_ops): Likewise.
6194 (all_probe_ops): Change type to std::vector.
6195 (_initialize_probe): Adjust to vector change.
6196 * dtrace-probe.c (_initialize_dtrace_probe): Likewise.
6197 * elfread.c (elf_get_probes): Likewise.
6198 * stap-probe.c (_initialize_stap_probe): Likewise.
6199
1eac6bea
SM
62002017-09-12 Simon Marchi <simon.marchi@ericsson.com>
6201
6202 * probe.h (struct bound_probe): Define constructors.
6203 * probe.c (bound_probe_s): Remove typedef.
6204 (DEF_VEC_O (bound_probe_s)): Remove VEC.
6205 (collect_probes): Change return type to std::vector, remove
6206 cleanup.
6207 (compare_probes): Return bool, change parameter type. Change
6208 semantic to "less than".
6209 (gen_ui_out_table_header_info): Change parameter to std::vector
6210 and update.
6211 (exists_probe_with_pops): Likewise.
6212 (info_probes_for_ops): Update to std::vector change.
6213 (enable_probes_command): Likewise.
6214 (disable_probes_command): Likewise.
6215
aaa63a31
SM
62162017-09-12 Simon Marchi <simon.marchi@ericsson.com>
6217
6218 * probe.h (struct probe_ops) <get_probes>: Change parameter from
6219 vec to std::vector.
6220 * probe.c (parse_probes_in_pspace): Update.
6221 (find_probes_in_objfile): Update.
6222 (find_probe_by_pc): Update.
6223 (collect_probes): Update.
6224 (probe_any_get_probes): Update.
6225 * symfile.h (struct sym_probe_fns) <sym_get_probes> Change
6226 return type to reference to std::vector.
6227 * dtrace-probe.c (dtrace_process_dof_probe): Change parameter to
6228 std::vector and update.
6229 (dtrace_process_dof): Likewise.
6230 (dtrace_get_probes): Likewise.
6231 * elfread.c (elf_get_probes): Change return type to std::vector,
6232 store an std::vector in bfd_data.
6233 (probe_key_free): Update to std::vector.
6234 * stap-probe.c (handle_stap_probe): Change parameter to
6235 std::vector and update.
6236 (stap_get_probes): Likewise.
6237 * symfile-debug.c (debug_sym_get_probes): Change return type to
6238 std::vector and update.
6239
cb85b21b
TT
62402017-09-11 Tom Tromey <tom@tromey.com>
6241
6242 * breakpoint.c (program_breakpoint_here_p): Update.
6243 * target.c (make_scoped_restore_show_memory_breakpoints): Rename
6244 from make_show_memory_breakpoints_cleanup. Return a
6245 scoped_restore_tmpl<int>.
6246 (restore_show_memory_breakpoints): Remove.
6247 * ppc-linux-tdep.c (ppc_linux_memory_remove_breakpoint): Update.
6248 * mem-break.c (memory_validate_breakpoint): Update.
6249 * ia64-tdep.c (ia64_memory_insert_breakpoint): Update.
6250 (ia64_memory_remove_breakpoint): Update.
6251 (ia64_breakpoint_from_pc): Update.
6252 * target.h (make_scoped_restore_show_memory_breakpoints): Rename
6253 from make_show_memory_breakpoints_cleanup.
6254
8fbc99ef
TT
62552017-09-11 Tom Tromey <tom@tromey.com>
6256
6257 * d-namespace.c (d_lookup_symbol): Use std::string.
6258 (find_symbol_in_baseclass): Likewise.
6259
50feb4bd
TT
62602017-09-11 Tom Tromey <tom@tromey.com>
6261
6262 * ctf.c (ctf_start): Use std::string.
6263
c6dc63a1
TT
62642017-09-11 Tom Tromey <tom@tromey.com>
6265
6266 * ada-lang.c (is_known_support_routine): Update.
6267 (ada_unhandled_exception_name_addr_from_raise): Update.
6268 * guile/scm-frame.c (gdbscm_frame_name): Update.
6269 * python/py-frame.c (frapy_name): Update.
6270 (frapy_function): Update.
6271 * stack.h (find_frame_funname): Update.
6272 * stack.c (find_frame_funname): Return unique_xmalloc_ptr.
6273 (print_frame): Update.
6274
d6b9b80f
TT
62752017-09-11 Tom Tromey <tom@tromey.com>
6276
6277 * findcmd.c (put_bits): Take a gdb::byte_vector.
6278 (parse_find_args): Return gdb::byte_vector. "args" now const.
6279 Remove "pattern_bufp" and "pattern_lenp" parameters. Remove
6280 cleanups.
6281 (find_command): Update.
6282
a9921622
TT
62832017-09-11 Tom Tromey <tom@tromey.com>
6284
6285 * cli/cli-script.c (class scoped_restore_hook_in): New.
6286 (clear_hook_in_cleanup): Remove.
6287 (execute_cmd_pre_hook, execute_cmd_post_hook): Use
6288 scoped_restore_hook_in.
6289
be0d7abb
TT
62902017-09-11 Tom Tromey <tom@tromey.com>
6291
6292 * cli/cli-script.c (restore_interp): Remove.
6293 (read_command_lines): Use scoped_restore_interp.
6294 * interps.c (scoped_restore_interp::set_temp): Rename from
6295 interp_set_temp.
6296 * interps.h (class scoped_restore_interp): New.
6297 (interp_set_temp): Remove.
6298
00f675ff
TT
62992017-09-11 Tom Tromey <tom@tromey.com>
6300
6301 * mi/mi-cmd-catch.c (mi_cmd_catch_assert)
6302 (mi_cmd_catch_exception, mi_catch_load_unload): Update.
6303 * mi/mi-cmd-break.c (setup_breakpoint_reporting): Return a
6304 scoped_restore.
6305 (mi_cmd_break_insert_1): Update.
6306 * mi/mi-cmd-break.h (setup_breakpoint_reporting): Return a
6307 scoped_restore.
6308
cb791d59
TT
63092017-09-11 Tom Tromey <tom@tromey.com>
6310
6311 * demangle.c (demangle_command): Update.
6312 * breakpoint.c (disable_command): Update.
6313 (enable_command): Update.
6314 (find_location_by_number): Make "number" const. Use
6315 get_number_trailer.
6316 * cli/cli-utils.c (extract_arg): Return std::string.
6317 * probe.c (parse_probe_linespec): Update. Change types.
6318 (collect_probes): Take string arguments.
6319 (parse_probe_linespec): Likewise.
6320 (info_probes_for_ops): Update.
6321 (enable_probes_command): Update.
6322 (disable_probes_command): Update.
6323 * break-catch-sig.c (catch_signal_split_args): Update.
6324 * mi/mi-parse.c (mi_parse): Update.
6325
2039bd9f
TT
63262017-09-11 Tom Tromey <tom@tromey.com>
6327
6328 * language.h (language_enum): Make argument const.
6329 * language.c (language_enum): Make argument const.
6330
f1735a53
TT
63312017-09-11 Tom Tromey <tom@tromey.com>
6332
6333 * common/common-utils.h (skip_to_space): Remove macro, redeclare
6334 as function.
6335 (skip_to_space): Rename from skip_to_space_const.
6336 * common/common-utils.c (skip_to_space): New function.
6337 (skip_to_space): Rename from skip_to_space_const.
6338 * cli/cli-utils.h (get_number): Rename from get_number_const.
6339 (extract_arg): Rename from extract_arg_const.
6340 * cli/cli-utils.c (get_number): Rename from get_number_const.
6341 (extract_arg): Rename from extract_arg_const.
6342 (number_or_range_parser::get_number): Use ::get_number.
6343 * aarch64-linux-tdep.c, ada-lang.c, arm-linux-tdep.c, ax-gdb.c,
6344 break-catch-throw.c, breakpoint.c, cli/cli-cmds.c, cli/cli-dump.c,
6345 cli/cli-script.c, cli/cli-setshow.c, compile/compile.c,
6346 completer.c, demangle.c, disasm.c, findcmd.c, linespec.c,
6347 linux-tdep.c, linux-thread-db.c, location.c, mi/mi-parse.c,
6348 minsyms.c, nat/linux-procfs.c, printcmd.c, probe.c,
6349 python/py-breakpoint.c, record.c, rust-exp.y, serial.c, stack.c,
6350 stap-probe.c, tid-parse.c, tracepoint.c: Update all callers.
6351
7d221d74
TT
63522017-09-11 Tom Tromey <tom@tromey.com>
6353
6354 * python/python.c (do_start_initialization): Use
6355 py-event-types.def to initialize types.
6356 Define all object type structures.
6357 * python/python-internal.h: Don't declare event initialization
6358 functions.
6359 * python/py-threadevent.c (thread_event_object_type): Don't
6360 define.
6361 * python/py-stopevent.c (stop_event_object_type): Don't define.
6362 * python/py-signalevent.c (signal_event_object_type): Don't
6363 declare or define.
6364 * python/py-newobjfileevent.c (new_objfile_event_object_type)
6365 (clear_objfiles_event_object_type): Don't declare or define.
6366 * python/py-infevents.c (inferior_call_pre_event_object_type)
6367 (inferior_call_post_event_object_type)
6368 (register_changed_event_object_type)
6369 (memory_changed_event_object_type): Don't declare or define.
6370 * python/py-inferior.c (new_thread_event_object_type)
6371 (new_inferior_event_object_type)
6372 (inferior_deleted_event_object_type): Don't declare or define.
6373 * python/py-exitedevent.c (exited_event_object_type): Don't
6374 declare or define.
6375 * python/py-evts.c (gdbpy_initialize_py_events): Use
6376 py-all-events.def.
6377 * python/py-events.h (thread_event_object_type): Don't declare.
6378 (events_object): Use py-all-events.def.
6379 * python/py-event.h (GDBPY_NEW_EVENT_TYPE): Remove. Use
6380 py-event-types.def.
6381 * python/py-event-types.def: New file.
6382 * python/py-continueevent.c (create_continue_event_object): Don't
6383 declare or define.
6384 * python/py-bpevent.c (breakpoint_event_object_type): Don't
6385 declare or define.
6386 * python/py-all-events.def: New file.
6387
35c61a1d
TT
63882017-09-11 Tom Tromey <tom@tromey.com>
6389
6390 * python/py-threadevent.c (create_thread_event_object): Return
6391 gdbpy_ref.
6392 * python/py-stopevent.h (create_stop_event_object)
6393 (create_breakpoint_event_object, create_signal_event_object):
6394 Update.
6395 * python/py-stopevent.c (create_stop_event_object): Return
6396 gdbpy_ref.
6397 (emit_stop_event): Update.
6398 * python/py-signalevent.c (create_signal_event_object): Return
6399 gdbpy_ref.
6400 * python/py-infevents.c (create_inferior_call_event_object):
6401 Update.
6402 * python/py-event.h (create_event_object)
6403 (create_thread_event_object): Update.
6404 * python/py-event.c (create_event_object): Return gdbpy_ref.
6405 * python/py-continueevent.c: Return gdbpy_ref.
6406 * python/py-bpevent.c (create_breakpoint_event_object): Return
6407 gdbpy_ref.
6408
7c96f8c1
TT
64092017-09-11 Tom Tromey <tom@tromey.com>
6410
6411 PR python/15622:
6412 * NEWS: Add entry.
6413 * python/python.c (do_start_initialization): Initialize new event
6414 types.
6415 * python/python-internal.h (gdbpy_initialize_new_inferior_event)
6416 (gdbpy_initialize_inferior_deleted_event)
6417 (gdbpy_initialize_new_thread_event): Declare.
6418 * python/py-threadevent.c (create_thread_event_object): Add option
6419 "thread" parameter.
6420 * python/py-inferior.c (new_thread_event_object_type)
6421 (new_inferior_event_object_type)
6422 (inferior_deleted_event_object_type): Declare.
6423 (python_new_inferior, python_inferior_deleted): New functions.
6424 (add_thread_object): Emit new_thread event.
6425 (gdbpy_initialize_inferior): Attach new functions to corresponding
6426 observers.
6427 (new_thread, new_inferior, inferior_deleted): Define new event
6428 types.
6429 * python/py-evts.c (gdbpy_initialize_py_events): Add new
6430 registries.
6431 * python/py-events.h (events_object) <new_inferior,
6432 inferior_deleted, new_thread>: New fields.
6433 * python/py-event.h (create_thread_event_breakpoint): Add optional
6434 "thread" parameter.
6435
72542b8e
AB
64362017-09-10 Andrew Burgess <andrew.burgess@embecosm.com>
6437
6438 * utils.c (abort_with_message): Don't compare gdb_stderr to NULL,
6439 check current_ui instead.
6440 (internal_vproblem): Likewise.
6441
0d64823e
SM
64422017-09-09 Simon Marchi <simon.marchi@ericsson.com>
6443
6444 * thread.c (print_thread_info_1): Remove unnecessary calls to
6445 uiout->is_mi_like_p.
6446
eb1e02fd
TT
64472017-09-09 Tom Tromey <tom@tromey.com>
6448
6449 * namespace.h (add_using_directive): Update.
6450 * namespace.c (add_using_directive): Change type of excludes to
6451 std::vector.
6452 * dwarf2read.c (read_import_statement): Use std::vector.
6453 (read_namespace): Update.
6454 * cp-namespace.c (cp_scan_for_anonymous_namespaces): Update.
6455
0fc21fd8
TT
64562017-09-09 Tom Tromey <tom@tromey.com>
6457
6458 * linespec.c (create_sals_line_offset): Use gdb::def_vector.
6459
49663d05
TT
64602017-09-09 Tom Tromey <tom@tromey.com>
6461
6462 * p-valprint.c (pascal_object_print_value): Use gdb::byte_vector.
6463
0b868b60
TT
64642017-09-09 Tom Tromey <tom@tromey.com>
6465
6466 * stack.c (func_command): Use gdb::def_vector.
6467
c0470d48
TT
64682017-09-09 Tom Tromey <tom@tromey.com>
6469
6470 * mi/mi-cmd-var.c (mi_cmd_var_list_children): Use gdb::optional,
6471 ui_out_emit_list, ui_out_emit_tuple.
6472 (mi_cmd_var_update): Likewise.
6473
ca5909c7
TT
64742017-09-09 Tom Tromey <tom@tromey.com>
6475
6476 * mi/mi-interp.c (mi_user_selected_context_changed): Use
6477 ui_out_redirect_pop.
6478 * guile/scm-ports.c (ioscm_with_output_to_port_worker): Use
6479 ui_out_redirect_pop.
6480 * utils.c (do_ui_out_redirect_pop)
6481 (make_cleanup_ui_out_redirect_pop): Remove.
6482 * top.c (execute_command_to_string): Use ui_out_redirect_pop.
6483 * utils.h (make_cleanup_ui_out_redirect_pop): Remove.
6484 * ui-out.h (ui_out_redirect_pop): New class.
6485
e6a2252a
TT
64862017-09-09 Tom Tromey <tom@tromey.com>
6487
6488 * mi/mi-main.c (output_cores): Use ui_out_emit_list.
6489 (list_available_thread_groups, mi_cmd_list_thread_groups)
6490 (mi_cmd_data_list_changed_registers, mi_cmd_data_read_memory)
6491 (mi_cmd_data_read_memory_bytes, mi_cmd_trace_frame_collected):
6492 Likewise.
6493
393702cd
TT
64942017-09-09 Tom Tromey <tom@tromey.com>
6495
6496 * disasm.c (gdb_pretty_print_disassembler::pretty_print_insn): Use
6497 ui_out_emit_tuple.
6498
76f9c9cf
TT
64992017-09-09 Tom Tromey <tom@tromey.com>
6500
6501 * target.c (flash_erase_command): Use ui_out_emit_tuple.
6502 * stack.c (print_frame): Use ui_out_emit_tuple.
6503 * spu-tdep.c (info_spu_event_command): Use ui_out_emit_tuple.
6504 (info_spu_mailbox_command, info_spu_dma_command)
6505 (info_spu_proxydma_command): Likewise.
6506 * mi/mi-main.c (mi_cmd_trace_frame_collected): Use
6507 ui_out_emit_tuple, gdb::byte_vector, bin2hex.
6508 * mi/mi-cmd-file.c (mi_cmd_file_list_shared_libraries): Use
6509 ui_out_emit_tuple.
6510 * breakpoint.c (print_it_watchpoint): Use ui_out_emit_tuple.
6511
dc9fe180
TT
65122017-09-09 Tom Tromey <tom@tromey.com>
6513
6514 * ui-out.h (make_cleanup_ui_out_table_begin_end): Remove.
6515 (class ui_out_emit_table): Update comment.
6516 * ui-out.c (do_cleanup_table_end)
6517 (make_cleanup_ui_out_table_begin_end): Remove.
6518 * spu-tdep.c (info_spu_mailbox_list): Use ui_out_emit_table.
6519 (info_spu_dma_cmdlist): Likewise.
6520 * probe.c (info_probes_for_ops): Use ui_out_emit_table.
6521 * darwin-nat-info.c (darwin_debug_regions_recurse): Use
6522 ui_out_emit_table.
6523
f8cc3da6
TT
65242017-09-09 Tom Tromey <tom@tromey.com>
6525
6526 * thread.c (print_thread_info_1): Use ui_out_emit_table,
6527 ui_out_emit_list, gdb::optional.
6528
481695ed
JB
65292017-09-09 John Baldwin <jhb@FreeBSD.org>
6530
6531 * aarch64-linux-nat.c: Remove _initialize_aarch64_linux_nat
6532 prototype.
6533 * aarch64-linux-tdep.c: Remove _initialize_aarch64_linux_tdep
6534 prototype.
6535 * aarch64-newlib-tdep.c: Remove _initialize_aarch64_newlib_tdep
6536 prototype.
6537 * aarch64-tdep.c: Remove _initialize_aarch64_tdep prototype.
6538 * ada-exp.y: Remove _initialize_ada_exp prototype.
6539 * ada-lang.c: Remove _initialize_ada_language prototype.
6540 * ada-tasks.c: Remove _initialize_tasks prototype.
6541 * addrmap.c: Remove _initialize_addrmap prototype.
6542 * agent.c: Remove _initialize_agent prototype.
6543 * aix-thread.c: Remove _initialize_aix_thread prototype.
6544 * alpha-bsd-nat.c: Remove _initialize_alphabsd_nat prototype.
6545 * alpha-linux-nat.c: Remove _initialize_alpha_linux_nat prototype.
6546 * alpha-linux-tdep.c: Remove _initialize_alpha_linux_tdep
6547 prototype.
6548 * alpha-nbsd-tdep.c: Remove _initialize_alphanbsd_tdep prototype.
6549 * alpha-obsd-tdep.c: Remove _initialize_alphaobsd_tdep prototype.
6550 * alpha-tdep.c: Remove _initialize_alpha_tdep prototype.
6551 * amd64-darwin-tdep.c: Remove _initialize_amd64_darwin_tdep
6552 prototype.
6553 * amd64-dicos-tdep.c: Remove _initialize_amd64_dicos_tdep
6554 prototype.
6555 * amd64-fbsd-nat.c: Remove _initialize_amd64fbsd_nat prototype.
6556 * amd64-fbsd-tdep.c: Remove _initialize_amd64fbsd_tdep prototype.
6557 * amd64-linux-nat.c: Remove _initialize_amd64_linux_nat prototype.
6558 * amd64-linux-tdep.c: Remove _initialize_amd64_linux_tdep
6559 prototype.
6560 * amd64-nbsd-nat.c: Remove _initialize_amd64nbsd_nat prototype.
6561 * amd64-nbsd-tdep.c: Remove _initialize_amd64nbsd_tdep prototype.
6562 * amd64-obsd-nat.c: Remove _initialize_amd64obsd_nat prototype.
6563 * amd64-obsd-tdep.c: Remove _initialize_amd64obsd_tdep prototype.
6564 * amd64-sol2-tdep.c: Remove _initialize_amd64_sol2_tdep prototype.
6565 * amd64-tdep.c: Remove _initialize_amd64_tdep prototype.
6566 * amd64-windows-nat.c: Remove _initialize_amd64_windows_nat
6567 prototype.
6568 * amd64-windows-tdep.c: Remove _initialize_amd64_windows_tdep
6569 prototype.
6570 * annotate.c: Remove _initialize_annotate prototype.
6571 * arc-newlib-tdep.c: Remove _initialize_arc_newlib_tdep prototype.
6572 * arc-tdep.c: Remove _initialize_arc_tdep prototype.
6573 * arch-utils.c: Remove _initialize_gdbarch_utils prototype.
6574 * arm-linux-nat.c: Remove _initialize_arm_linux_nat prototype.
6575 * arm-linux-tdep.c: Remove _initialize_arm_linux_tdep prototype.
6576 * arm-nbsd-tdep.c: Remove _initialize_arm_netbsd_tdep prototype.
6577 * arm-obsd-tdep.c: Remove _initialize_armobsd_tdep prototype.
6578 * arm-symbian-tdep.c: Remove _initialize_arm_symbian_tdep
6579 prototype.
6580 * arm-tdep.c: Remove _initialize_arm_tdep prototype.
6581 * arm-wince-tdep.c: Remove _initialize_arm_wince_tdep prototype.
6582 * auto-load.c: Remove _initialize_auto_load prototype.
6583 * auxv.c: Remove _initialize_auxv prototype.
6584 * avr-tdep.c: Remove _initialize_avr_tdep prototype.
6585 * ax-gdb.c: Remove _initialize_ax_gdb prototype.
6586 * bfin-linux-tdep.c: Remove _initialize_bfin_linux_tdep prototype.
6587 * bfin-tdep.c: Remove _initialize_bfin_tdep prototype.
6588 * break-catch-sig.c: Remove _initialize_break_catch_sig prototype.
6589 * break-catch-syscall.c: Remove _initialize_break_catch_syscall
6590 prototype.
6591 * break-catch-throw.c: Remove _initialize_break_catch_throw
6592 prototype.
6593 * breakpoint.c: Remove _initialize_breakpoint prototype.
6594 * bsd-uthread.c: Remove _initialize_bsd_uthread prototype.
6595 * btrace.c: Remove _initialize_btrace prototype.
6596 * charset.c: Remove _initialize_charset prototype.
6597 * cli/cli-cmds.c: Remove _initialize_cli_cmds prototype.
6598 * cli/cli-dump.c: Remove _initialize_cli_dump prototype.
6599 * cli/cli-interp.c: Remove _initialize_cli_interp prototype.
6600 * cli/cli-logging.c: Remove _initialize_cli_logging prototype.
6601 * cli/cli-script.c: Remove _initialize_cli_script prototype.
6602 * coff-pe-read.c: Remove _initialize_coff_pe_read prototype.
6603 * coffread.c: Remove _initialize_coffread prototype.
6604 * compile/compile.c: Remove _initialize_compile prototype.
6605 * complaints.c: Remove _initialize_complaints prototype.
6606 * completer.c: Remove _initialize_completer prototype.
6607 * copying.awk: Remove _initialize_copying prototype.
6608 * copying.c: Regenerate.
6609 * core-regset.c: Remove _initialize_core_regset prototype.
6610 * corefile.c: Remove _initialize_core prototype.
6611 * corelow.c: Remove _initialize_corelow prototype.
6612 * cp-abi.c: Remove _initialize_cp_abi prototype.
6613 * cp-namespace.c: Remove _initialize_cp_namespace prototype.
6614 * cp-support.c: Remove _initialize_cp_support prototype.
6615 * cp-valprint.c: Remove _initialize_cp_valprint prototype.
6616 * cris-linux-tdep.c: Remove _initialize_cris_linux_tdep prototype.
6617 * cris-tdep.c: Remove _initialize_cris_tdep prototype.
6618 * ctf.c: Remove _initialize_ctf prototype.
6619 * d-lang.c: Remove _initialize_d_language prototype.
6620 * darwin-nat-info.c: Remove _initialize_darwin_info_commands
6621 prototype.
6622 * darwin-nat.c: Remove _initialize_darwin_inferior prototype.
6623 * dbxread.c: Remove _initialize_dbxread prototype.
6624 * dcache.c: Remove _initialize_dcache prototype.
6625 * demangle.c: Remove _initialize_demangler prototype.
6626 * disasm-selftests.c: Remove _initialize_disasm_selftests
6627 prototype.
6628 * disasm.c: Remove _initialize_disasm prototype.
6629 * dtrace-probe.c: Remove _initialize_dtrace_probe prototype.
6630 * dummy-frame.c: Remove _initialize_dummy_frame prototype.
6631 * dwarf2-frame-tailcall.c: Remove _initialize_tailcall_frame
6632 prototype.
6633 * dwarf2-frame.c: Remove _initialize_dwarf2_frame prototype.
6634 * dwarf2expr.c: Remove _initialize_dwarf2expr prototype.
6635 * dwarf2loc.c: Remove _initialize_dwarf2loc prototype.
6636 * dwarf2read.c: Remove _initialize_dwarf2_read prototype.
6637 * elfread.c: Remove _initialize_elfread prototype.
6638 * exec.c: Remove _initialize_exec prototype.
6639 * extension.c: Remove _initialize_extension prototype.
6640 * f-lang.c: Remove _initialize_f_language prototype.
6641 * f-valprint.c: Remove _initialize_f_valprint prototype.
6642 * fbsd-nat.c: Remove _initialize_fbsd_nat prototype.
6643 * fbsd-tdep.c: Remove _initialize_fbsd_tdep prototype.
6644 * filesystem.c: Remove _initialize_filesystem prototype.
6645 * findcmd.c: Remove _initialize_mem_search prototype.
6646 * fork-child.c: Remove _initialize_fork_child prototype.
6647 * frame-base.c: Remove _initialize_frame_base prototype.
6648 * frame-unwind.c: Remove _initialize_frame_unwind prototype.
6649 * frame.c: Remove _initialize_frame prototype.
6650 * frv-linux-tdep.c: Remove _initialize_frv_linux_tdep prototype.
6651 * frv-tdep.c: Remove _initialize_frv_tdep prototype.
6652 * ft32-tdep.c: Remove _initialize_ft32_tdep prototype.
6653 * gcore.c: Remove _initialize_gcore prototype.
6654 * gdb_bfd.c: Remove _initialize_gdb_bfd prototype.
6655 * gdbarch.c: Regenerate.
6656 * gdbarch.sh: Remove _initialize_gdbarch prototype.
6657 * gdbtypes.c: Remove _initialize_gdbtypes prototype.
6658 * gnu-nat.c: Remove _initialize_gnu_nat prototype.
6659 * gnu-v2-abi.c: Remove _initialize_gnu_v2_abi prototype.
6660 * gnu-v3-abi.c: Remove _initialize_gnu_v3_abi prototype.
6661 * go-lang.c: Remove _initialize_go_language prototype.
6662 * go32-nat.c: Remove _initialize_go32_nat prototype.
6663 * guile/guile.c: Remove _initialize_guile prototype.
6664 * h8300-tdep.c: Remove _initialize_h8300_tdep prototype.
6665 * hppa-linux-nat.c: Remove _initialize_hppa_linux_nat prototype.
6666 * hppa-linux-tdep.c: Remove _initialize_hppa_linux_tdep prototype.
6667 * hppa-nbsd-nat.c: Remove _initialize_hppanbsd_nat prototype.
6668 * hppa-nbsd-tdep.c: Remove _initialize_hppanbsd_tdep prototype.
6669 * hppa-obsd-nat.c: Remove _initialize_hppaobsd_nat prototype.
6670 * hppa-obsd-tdep.c: Remove _initialize_hppaobsd_tdep prototype.
6671 * hppa-tdep.c: Remove _initialize_hppa_tdep prototype.
6672 * i386-bsd-nat.c: Remove _initialize_i386bsd_nat prototype.
6673 * i386-cygwin-tdep.c: Remove _initialize_i386_cygwin_tdep
6674 prototype.
6675 * i386-darwin-tdep.c: Remove _initialize_i386_darwin_tdep
6676 prototype.
6677 * i386-dicos-tdep.c: Remove _initialize_i386_dicos_tdep prototype.
6678 * i386-fbsd-nat.c: Remove _initialize_i386fbsd_nat prototype.
6679 * i386-fbsd-tdep.c: Remove _initialize_i386fbsd_tdep prototype.
6680 * i386-gnu-nat.c: Remove _initialize_i386gnu_nat prototype.
6681 * i386-gnu-tdep.c: Remove _initialize_i386gnu_tdep prototype.
6682 * i386-linux-nat.c: Remove _initialize_i386_linux_nat prototype.
6683 * i386-linux-tdep.c: Remove _initialize_i386_linux_tdep prototype.
6684 * i386-nbsd-nat.c: Remove _initialize_i386nbsd_nat prototype.
6685 * i386-nbsd-tdep.c: Remove _initialize_i386nbsd_tdep prototype.
6686 * i386-nto-tdep.c: Remove _initialize_i386nto_tdep prototype.
6687 * i386-obsd-nat.c: Remove _initialize_i386obsd_nat prototype.
6688 * i386-obsd-tdep.c: Remove _initialize_i386obsd_tdep prototype.
6689 * i386-sol2-nat.c: Remove _initialize_amd64_sol2_nat prototype.
6690 * i386-sol2-tdep.c: Remove _initialize_amd64_sol2_tdep prototype.
6691 * i386-tdep.c: Remove _initialize_i386_tdep prototype.
6692 * i386-windows-nat.c: Remove _initialize_i386_windows_nat
6693 prototype.
6694 * ia64-libunwind-tdep.c: Remove _initialize_libunwind_frame
6695 prototype.
6696 * ia64-linux-nat.c: Remove _initialize_ia64_linux_nat prototype.
6697 * ia64-linux-tdep.c: Remove _initialize_ia64_linux_tdep prototype.
6698 * ia64-tdep.c: Remove _initialize_ia64_tdep prototype.
6699 * ia64-vms-tdep.c: Remove _initialize_ia64_vms_tdep prototype.
6700 * infcall.c: Remove _initialize_infcall prototype.
6701 * infcmd.c: Remove _initialize_infcmd prototype.
6702 * inferior.c: Remove _initialize_inferiors prototype.
6703 * inflow.c: Remove _initialize_inflow prototype.
6704 * infrun.c: Remove _initialize_infrun prototype.
6705 * interps.c: Remove _initialize_interpreter prototype.
6706 * iq2000-tdep.c: Remove _initialize_iq2000_tdep prototype.
6707 * jit.c: Remove _initialize_jit prototype.
6708 * language.c: Remove _initialize_language prototype.
6709 * linux-fork.c: Remove _initialize_linux_fork prototype.
6710 * linux-nat.c: Remove _initialize_linux_nat prototype.
6711 * linux-tdep.c: Remove _initialize_linux_tdep prototype.
6712 * linux-thread-db.c: Remove _initialize_thread_db prototype.
6713 * lm32-tdep.c: Remove _initialize_lm32_tdep prototype.
6714 * m2-lang.c: Remove _initialize_m2_language prototype.
6715 * m32c-tdep.c: Remove _initialize_m32c_tdep prototype.
6716 * m32r-linux-nat.c: Remove _initialize_m32r_linux_nat prototype.
6717 * m32r-linux-tdep.c: Remove _initialize_m32r_linux_tdep prototype.
6718 * m32r-tdep.c: Remove _initialize_m32r_tdep prototype.
6719 * m68hc11-tdep.c: Remove _initialize_m68hc11_tdep prototype.
6720 * m68k-bsd-nat.c: Remove _initialize_m68kbsd_nat prototype.
6721 * m68k-bsd-tdep.c: Remove _initialize_m68kbsd_tdep prototype.
6722 * m68k-linux-nat.c: Remove _initialize_m68k_linux_tdep prototype.
6723 * m68k-linux-tdep.c: Remove _initialize_m68k_linux_tdep prototype.
6724 * m68k-tdep.c: Remove _initialize_m68k_tdep prototype.
6725 * m88k-bsd-nat.c: Remove _initialize_m68kbsd_nat prototype.
6726 * m88k-tdep.c: Remove _initialize_m68kbsd_tdep prototype.
6727 * machoread.c: Remove _initialize_machoread prototype.
6728 * macrocmd.c: Remove _initialize_macrocmd prototype.
6729 * macroscope.c: Remove _initialize_macroscope prototype.
6730 * maint.c: Remove _initialize_maint_cmds prototype.
6731 * mdebugread.c: Remove _initialize_mdebugread prototype.
6732 * memattr.c: Remove _initialize_mem prototype.
6733 * mep-tdep.c: Remove _initialize_mep_tdep prototype.
6734 * mi/mi-cmd-env.c: Remove _initialize_mi_cmd_env prototype.
6735 * mi/mi-cmds.c: Remove _initialize_mi_cmds prototype.
6736 * mi/mi-interp.c: Remove _initialize_mi_interp prototype.
6737 * mi/mi-main.c: Remove _initialize_mi_main prototype.
6738 * microblaze-linux-tdep.c: Remove
6739 _initialize_microblaze_linux_tdep prototype.
6740 * microblaze-tdep.c: Remove _initialize_microblaze_tdep prototype.
6741 * mips-fbsd-nat.c: Remove _initialize_mips_fbsd_nat prototype.
6742 * mips-fbsd-tdep.c: Remove _initialize_mips_fbsd_tdep prototype.
6743 * mips-linux-nat.c: Remove _initialize_mips_linux_nat prototype.
6744 * mips-linux-tdep.c: Remove _initialize_mips_linux_tdep prototype.
6745 * mips-nbsd-nat.c: Remove _initialize_mipsnbsd_nat prototype.
6746 * mips-nbsd-tdep.c: Remove _initialize_mipsnbsd_tdep prototype.
6747 * mips-sde-tdep.c: Remove _initialize_mips_sde_tdep prototype.
6748 * mips-tdep.c: Remove _initialize_mips_tdep prototype.
6749 * mips64-obsd-nat.c: Remove _initialize_mips64obsd_nat prototype.
6750 * mips64-obsd-tdep.c: Remove _initialize_mips64obsd_tdep
6751 prototype.
6752 * mipsread.c: Remove _initialize_mipsread prototype.
6753 * mn10300-linux-tdep.c: Remove _initialize_mn10300_linux_tdep
6754 prototype.
6755 * mn10300-tdep.c: Remove _initialize_mn10300_tdep prototype.
6756 * moxie-tdep.c: Remove _initialize_moxie_tdep prototype.
6757 * msp430-tdep.c: Remove _initialize_msp430_tdep prototype.
6758 * mt-tdep.c: Remove _initialize_mt_tdep prototype.
6759 * nds32-tdep.c: Remove _initialize_nds32_tdep prototype.
6760 * nios2-linux-tdep.c: Remove _initialize_nios2_linux_tdep
6761 prototype.
6762 * nios2-tdep.c: Remove _initialize_nios2_tdep prototype.
6763 * nto-procfs.c: Remove _initialize_procfs prototype.
6764 * nto-tdep.c: Remove _initialize_nto_tdep prototype.
6765 * objc-lang.c: Remove _initialize_objc_language prototype.
6766 * objfiles.c: Remove _initialize_objfiles prototype.
6767 * observer.c: Remove observer_test_first_notification_function,
6768 observer_test_second_notification_function,
6769 observer_test_third_notification_function, and
6770 _initialize_observer prototypes.
6771 * opencl-lang.c: Remove _initialize_opencl_language prototypes.
6772 * osabi.c: Remove _initialize_gdb_osabi prototype.
6773 * osdata.c: Remove _initialize_osdata prototype.
6774 * p-valprint.c: Remove _initialize_pascal_valprint prototype.
6775 * parse.c: Remove _initialize_parse prototype.
6776 * ppc-fbsd-nat.c: Remove _initialize_ppcfbsd_nat prototype.
6777 * ppc-fbsd-tdep.c: Remove _initialize_ppcfbsd_tdep prototype.
6778 * ppc-linux-nat.c: Remove _initialize_ppc_linux_nat prototype.
6779 * ppc-linux-tdep.c: Remove _initialize_ppc_linux_tdep prototype.
6780 * ppc-nbsd-nat.c: Remove _initialize_ppcnbsd_nat prototype.
6781 * ppc-nbsd-tdep.c: Remove _initialize_ppcnbsd_tdep prototype.
6782 * ppc-obsd-nat.c: Remove _initialize_ppcobsd_nat prototype.
6783 * ppc-obsd-tdep.c: Remove _initialize_ppcobsd_tdep prototype.
6784 * printcmd.c: Remove _initialize_printcmd prototype.
6785 * probe.c: Remove _initialize_probe prototype.
6786 * proc-api.c: Remove _initialize_proc_api prototype.
6787 * proc-events.c: Remove _initialize_proc_events prototype.
6788 * proc-service.c: Remove _initialize_proc_service prototype.
6789 * procfs.c: Remove _initialize_procfs prototype.
6790 * psymtab.c: Remove _initialize_psymtab prototype.
6791 * python/python.c: Remove _initialize_python prototype.
6792 * ravenscar-thread.c: Remove _initialize_ravenscar prototype.
6793 * record-btrace.c: Remove _initialize_record_btrace prototype.
6794 * record-full.c: Remove _initialize_record_full prototype.
6795 * record.c: Remove _initialize_record prototype.
6796 * regcache.c: Remove _initialize_regcache prototype.
6797 * reggroups.c: Remove _initialize_reggroup prototype.
6798 * remote-notif.c: Remove _initialize_notif prototype.
6799 * remote-sim.c: Remove _initialize_remote_sim prototype.
6800 * remote.c: Remove _initialize_remote prototype.
6801 * reverse.c: Remove _initialize_reverse prototype.
6802 * rl78-tdep.c: Remove _initialize_rl78_tdep prototype.
6803 * rs6000-aix-tdep.c: Remove _initialize_rs6000_aix_tdep prototype.
6804 * rs6000-lynx178-tdep.c: Remove _initialize_rs6000_lynx178_tdep
6805 prototype.
6806 * rs6000-nat.c: Remove _initialize_rs6000_nat prototype.
6807 * rs6000-tdep.c: Remove _initialize_rs6000_tdep prototype.
6808 * rust-exp.y: Remove _initialize_rust_exp prototype.
6809 * rx-tdep.c: Remove _initialize_rx_tdep prototype.
6810 * s390-linux-nat.c: Remove _initialize_s390_nat prototype.
6811 * s390-linux-tdep.c: Remove _initialize_s390_tdep prototype.
6812 * score-tdep.c: Remove _initialize_score_tdep prototype.
6813 * selftest-arch.c: Remove _initialize_selftests_foreach_arch
6814 prototype.
6815 * ser-go32.c: Remove _initialize_ser_dos prototype.
6816 * ser-mingw.c: Remove _initialize_ser_windows prototype.
6817 * ser-pipe.c: Remove _initialize_ser_pipe prototype.
6818 * ser-tcp.c: Remove _initialize_ser_tcp prototype.
6819 * ser-unix.c: Remove _initialize_ser_hardwire prototype.
6820 * serial.c: Remove _initialize_serial prototype.
6821 * sh-linux-tdep.c: Remove _initialize_sh_linux_tdep prototype.
6822 * sh-nbsd-nat.c: Remove _initialize_shnbsd_nat prototype.
6823 * sh-nbsd-tdep.c: Remove _initialize_shnbsd_tdep prototype.
6824 * sh-tdep.c: Remove _initialize_sh_tdep prototype.
6825 * skip.c: Remove _initialize_step_skip prototype.
6826 * sol-thread.c: Remove _initialize_sol_thread prototype.
6827 * solib-aix.c: Remove _initialize_solib_aix prototype.
6828 * solib-darwin.c: Remove _initialize_darwin_solib prototype.
6829 * solib-dsbt.c: Remove _initialize_dsbt_solib prototype.
6830 * solib-frv.c: Remove _initialize_frv_solib prototype.
6831 * solib-spu.c: Remove _initialize_spu_solib prototype.
6832 * solib-svr4.c: Remove _initialize_svr4_solib prototype.
6833 * solib-target.c: Remove _initialize_solib_target prototype.
6834 * solib.c: Remove _initialize_solib prototype.
6835 * source.c: Remove _initialize_source prototype.
6836 * sparc-linux-nat.c: Remove _initialize_sparc_linux_nat prototype.
6837 * sparc-linux-tdep.c: Remove _initialize_sparc_linux_tdep
6838 prototype.
6839 * sparc-nat.c: Remove _initialize_sparc_nat prototype.
6840 * sparc-nbsd-nat.c: Remove _initialize_sparcnbsd_nat prototype.
6841 * sparc-nbsd-tdep.c: Remove _initialize_sparcnbsd_tdep prototype.
6842 * sparc-obsd-tdep.c: Remove _initialize_sparc32obsd_tdep
6843 prototype.
6844 * sparc-sol2-nat.c: Remove _initialize_sparc_sol2_nat prototype.
6845 * sparc-sol2-tdep.c: Remove _initialize_sparc_sol2_tdep prototype.
6846 * sparc-tdep.c: Remove _initialize_sparc_tdep prototype.
6847 * sparc64-fbsd-nat.c: Remove _initialize_sparc64fbsd_nat
6848 prototype.
6849 * sparc64-fbsd-tdep.c: Remove _initialize_sparc64fbsd_tdep
6850 prototype.
6851 * sparc64-linux-nat.c: Remove _initialize_sparc64_linux_nat
6852 prototype.
6853 * sparc64-linux-tdep.c: Remove _initialize_sparc64_linux_tdep
6854 prototype.
6855 * sparc64-nat.c: Remove _initialize_sparc64_nat prototype.
6856 * sparc64-nbsd-nat.c: Remove _initialize_sparc64nbsd_nat
6857 prototype.
6858 * sparc64-nbsd-tdep.c: Remove _initialize_sparc64nbsd_tdep
6859 prototype.
6860 * sparc64-obsd-nat.c: Remove _initialize_sparc64obsd_nat
6861 prototype.
6862 * sparc64-obsd-tdep.c: Remove _initialize_sparc64obsd_tdep
6863 prototype.
6864 * sparc64-sol2-tdep.c: Remove _initialize_sparc64_sol2_tdep
6865 prototype.
6866 * spu-linux-nat.c: Remove _initialize_spu_nat prototype.
6867 * spu-multiarch.c: Remove _initialize_spu_multiarch prototype.
6868 * spu-tdep.c: Remove _initialize_spu_tdep prototype.
6869 * stabsread.c: Remove _initialize_stabsread prototype.
6870 * stack.c: Remove _initialize_stack prototype.
6871 * stap-probe.c: Remove _initialize_stap_probe prototype.
6872 * std-regs.c: Remove _initialize_frame_reg prototype.
6873 * symfile-debug.c: Remove _initialize_symfile_debug prototype.
6874 * symfile-mem.c: Remove _initialize_symfile_mem prototype.
6875 * symfile.c: Remove _initialize_symfile prototype.
6876 * symmisc.c: Remove _initialize_symmisc prototype.
6877 * symtab.c: Remove _initialize_symtab prototype.
6878 * target-dcache.c: Remove _initialize_target_dcache prototype.
6879 * target-descriptions.c: Remove _initialize_target_descriptions
6880 prototype.
6881 * thread.c: Remove _initialize_thread prototype.
6882 * tic6x-linux-tdep.c: Remove _initialize_tic6x_linux_tdep
6883 prototype.
6884 * tic6x-tdep.c: Remove _initialize_tic6x_tdep prototype.
6885 * tilegx-linux-nat.c: Remove _initialize_tile_linux_nat prototype.
6886 * tilegx-linux-tdep.c: Remove _initialize_tilegx_linux_tdep
6887 prototype.
6888 * tilegx-tdep.c: Remove _initialize_tilegx_tdep prototype.
6889 * tracefile-tfile.c: Remove _initialize_tracefile_tfile prototype.
6890 * tracefile.c: Remove _initialize_tracefile prototype.
6891 * tracepoint.c: Remove _initialize_tracepoint prototype.
6892 * tui/tui-hooks.c: Remove _initialize_tui_hooks prototype.
6893 * tui/tui-interp.c: Remove _initialize_tui_interp prototype.
6894 * tui/tui-layout.c: Remove _initialize_tui_layout prototype.
6895 * tui/tui-regs.c: Remove _initialize_tui_regs prototype.
6896 * tui/tui-stack.c: Remove _initialize_tui_stack prototype.
6897 * tui/tui-win.c: Remove _initialize_tui_win prototype.
6898 * tui/tui.c: Remove _initialize_tui prototype.
6899 * typeprint.c: Remove _initialize_typeprint prototype.
6900 * user-regs.c: Remove _initialize_user_regs prototype.
6901 * utils.c: Remove _initialize_utils prototype.
6902 * v850-tdep.c: Remove _initialize_v850_tdep prototype.
6903 * valarith.c: Remove _initialize_valarith prototype.
6904 * valops.c: Remove _initialize_valops prototype.
6905 * valprint.c: Remove _initialize_valprint prototype.
6906 * value.c: Remove _initialize_values prototype.
6907 * varobj.c: Remove _initialize_varobj prototype.
6908 * vax-bsd-nat.c: Remove _initialize_vaxbsd_nat prototype.
6909 * vax-nbsd-tdep.c: Remove _initialize_vaxnbsd_tdep prototype.
6910 * vax-tdep.c: Remove _initialize_vax_tdep prototype.
6911 * windows-nat.c: Remove _initialize_windows_nat,
6912 _initialize_check_for_gdb_ini, and _initialize_loadable
6913 prototypes.
6914 * windows-tdep.c: Remove _initialize_windows_tdep prototype.
6915 * xcoffread.c: Remove _initialize_xcoffread prototype.
6916 * xml-support.c: Remove _initialize_xml_support prototype.
6917 * xstormy16-tdep.c: Remove _initialize_xstormy16_tdep prototype.
6918 * xtensa-linux-nat.c: Remove _initialize_xtensa_linux_nat
6919 prototype.
6920 * xtensa-linux-tdep.c: Remove _initialize_xtensa_linux_tdep
6921 prototype.
6922 * xtensa-tdep.c: Remove _initialize_xtensa_tdep prototype.
6923
a611b5cb
KS
69242017-09-08 Keith Seitz <keiths@redhat.com>
6925
6926 * dwarf2read.c (struct field_info) <fnfields>: Remove unused
6927 field.
6928
469412dd
CW
69292017-09-08 Christoph Weinmann <christoph.t.weinmann@intel.com>
6930
6931 * f-valprint.c (f_val_print): Remove check for one byte
6932 sized integers. Remove printing of character type.
6933
a5ad232b
FP
69342017-09-08 Frank Penczek <frank.penczek@intel.com>
6935 Christoph Weinmann <christoph.t.weinmann@intel.com>
6936 Bernhard Heckel <bernhard.heckel@intel.com>
6937
6938 * f-typeprint.c (f_type_print_base): Use fprintfi_filtered
6939 to maintain proper indentation when printing pointers/refs.
6940
e5014227
JB
69412017-09-07 Joel Brobecker <brobecker@adacore.com>
6942
6943 GDB 8.0.1 released.
6944
63c99141
JB
69452017-09-07 Joel Brobecker <brobecker@adacore.com>
6946
6947 * NEWS (Changes in GDB 7.11): Remove entry for QStartupWithShell.
6948
69c1e056
TT
69492017-09-05 Tom Tromey <tom@tromey.com>
6950
6951 * parse.c (funcall_chain): Now a std::vector.
6952 (start_arglist, end_arglist): Simplify.
6953 (free_funcalls): Remove.
6954 (parse_exp_in_context_1): Remove cleanup.
6955
fef704bf
TT
69562017-09-05 Tom Tromey <tom@tromey.com>
6957
6958 * go-exp.y (go_parse): Don't create a cleanup.
6959
5613c585
TT
69602017-09-05 Tom Tromey <tom@tromey.com>
6961
6962 * d-exp.y (PrimaryExpression): Use std::string.
6963 (d_parse): Don't create a cleanup.
6964
eae49211
TT
69652017-09-05 Tom Tromey <tom@tromey.com>
6966
6967 * utils.c (do_clear_parser_state): Remove.
6968 (make_cleanup_clear_parser_state): Remove.
6969 * p-exp.y (pascal_parse): Use scoped_restore.
6970 * m2-exp.y (m2_parse): Use scoped_restore.
6971 * f-exp.y (f_parse): Use scoped_restore.
6972 * d-exp.y (d_parse): Use scoped_restore.
6973 * c-exp.y (c_parse): Use scoped_restore.
6974 * ada-exp.y (ada_parse): Use scoped_restore.
6975 * utils.h (make_cleanup_clear_parser_state): Remove.
6976
73b9be8b
KS
69772017-09-06 Keith Seitz <keiths@redhat.com>
6978
6979 * dwarf2read.c (dw2_linkage_name_attr): New function.
6980 (dw2_linkage_name): New function.
6981 (dwarf2_compute_name, dwarf2_physname, read_call_site_scope)
6982 (guess_full_die_structure_name, dwarf2_name): Use dw2_linkage_name.
6983 (anonymous_struct_prefix, dwarf2_name): Use dw2_linkage_name_attr.
6984
a102602b
KR
69852017-09-06 Kamil Rytarowski <n54@gmx.com>
6986
6987 * config/djgpp/djconfig.sh: Correct shell portability issue.
6988
28ad437d
KR
69892017-09-06 Kamil Rytarowski <n54@gmx.com>
6990
6991 * configure.nat: Define HAVE_NATIVE_GCORE_HOST on NetBSD.
6992
351787dd
JB
69932017-09-06 John Baldwin <jhb@FreeBSD.org>
6994
6995 * Makefile.in (ALLDEPFILES): Add mips-fbsd-nat.c.
6996 * NEWS: Mention new FreeBSD/mips native configuration.
6997 * configure.host: Add aarch64*-*-freebsd*.
6998 * configure.nat: Likewise.
6999 * aarch64-fbsd-nat.c: New file.
7000
c0f84956
JB
70012017-09-06 John Baldwin <jhb@FreeBSD.org>
7002
7003 * Makefile.in (ALL_64_TARGET_OBS): Add aarch64-fbsd-tdep.o.
7004 (ALLDEPFILES): Add aarch64-fbsd-tdep.c.
7005 * NEWS: Mention new FreeBSD/aarch64 target.
7006 * configure.tgt: Add aarch64*-*-freebsd*.
7007 * aarch64-fbsd-tdep.c: New file.
7008 * aarch64-fbsd-tdep.h: New file.
7009
7610297a
KR
70102017-09-06 Kamil Rytarowski <n54@gmx.com>
7011
7012 * MAINTAINERS (Write After Approval): Add Kamil Rytarowski.
7013
fbd1b771
JK
70142017-09-06 Jan Kratochvil <jan.kratochvil@redhat.com>
7015
7016 * parse.c (find_minsym_type_and_address): Don't relocate addresses
7017 of TLS symbols.
7018
5ca79eae
PW
70192017-09-05 Philippe Waroquiers <philippe.waroquiers@skynet.be>
7020
7021 * objfiles.c (get_objfile_bfd_data): Remove useless obstack_init
7022 call.
7023
bf93d7ba
SM
70242017-09-05 Simon Marchi <simon.marchi@ericsson.com>
7025
7026 * infrun.c (follow_exec): Call add_thread after
7027 target_find_description.
7028
1bb7c059
SM
70292017-09-05 Simon Marchi <simon.marchi@ericsson.com>
7030
7031 * infrun.c (handle_inferior_event_1): When exec'ing, read
7032 stop_pc after follow_exec.
7033
fc809827
SM
70342017-09-05 Simon Marchi <simon.marchi@ericsson.com>
7035
7036 * remote.c (process_g_packet): Update error message.
7037
d2fcdd85
YQ
70382017-09-05 Yao Qi <yao.qi@linaro.org>
7039
7040 * configure.tgt (gdb_target_obs): Add i386.o for x86_64-*
7041 targets.
7042
e69570ee
PA
70432017-09-05 Pedro Alves <palves@redhat.com>
7044
7045 * eval.c (eval_call, evaluate_funcall): New functions, factored
7046 out from ...
7047 (evaluate_subexp_standard): ... this.
7048
22916b07
YQ
70492017-09-05 Yao Qi <yao.qi@linaro.org>
7050
7051 * amd64-tdep.c (amd64_target_description): Create target
7052 descriptions.
7053 (_initialize_amd64_tdep): Don't call functions
7054 initialize_tdesc_amd64_*. Add self tests.
7055 * arch/amd64.c (amd64_create_target_description): Add parameter
7056 is_linux. Call set_tdesc_osabi if is_linux is true.
7057 * arch/amd64.h (amd64_create_target_description): Update the
7058 declaration.
7059 * arch/i386.c (i386_create_target_description): Add parameter
7060 is_linux. Call set_tdesc_osabi if is_linux is true.
7061 * arch/i386.h (i386_create_target_description): Update
7062 declaration.
7063 * configure.tgt: Add i386.o to gdb_target_obs.
7064 * features/Makefile (XMLTOC): Remove i386/*.xml.
7065 * features/i386/amd64-avx-avx512.c: Remove.
7066 * features/i386/amd64-avx-mpx-avx512-pku.c: Remove.
7067 * features/i386/amd64-avx-mpx.c: Remove.
7068 * features/i386/amd64-avx.c: Remove.
7069 * features/i386/amd64-mpx.c: Remove.
7070 * features/i386/amd64.c: Remove.
7071 * features/i386/i386-avx-avx512.c: Remove.
7072 * features/i386/i386-avx-mpx-avx512-pku.c: Remove.
7073 * features/i386/i386-avx-mpx.c: Remove.
7074 * features/i386/i386-avx.c: Remove.
7075 * features/i386/i386-mmx.c: Remove.
7076 * features/i386/i386-mpx.c: Remove.
7077 * features/i386/i386.c: Remove.
7078 * i386-tdep.c: Don't include features/i386/i386*.c., include
7079 target-descriptions.h and arch/i386.h.
7080 (i386_target_description): Create target descriptions.
7081 (i386_gdbarch_init): Don't call initialize_tdesc_i386_*
7082 functions. Do self tests.
7083
0854b7b1
YQ
70842017-09-05 Yao Qi <yao.qi@linaro.org>
7085
7086 * features/Makefile (XMLTOC): Remove i386/amd64XXX-linux.xml.
7087 * features/i386/amd64-avx-avx512-linux.c: Removed.
7088 * features/i386/amd64-avx-linux.c: Removed.
7089 * features/i386/amd64-avx-mpx-avx512-pku-linux.c: Removed.
7090 * features/i386/amd64-avx-mpx-linux.c: Removed.
7091 * features/i386/amd64-linux.c: Removed.
7092 * features/i386/amd64-mpx-linux.c: Removed.
7093 * features/i386/x32-avx-avx512-linux.c: Removed.
7094 * features/i386/x32-avx-linux.c: Removed.
7095 * features/i386/x32-linux.c: Removed.
7096
b4570e4b
YQ
70972017-09-05 Yao Qi <yao.qi@linaro.org>
7098
7099 * amd64-linux-tdep.c: Include arch/amd64.h. Don't include
7100 features/i386/*.c.
7101 (amd64_linux_read_description): Call
7102 amd64_create_target_description.
7103 * arch/amd64.c: New file.
7104 * arch/amd64.h: New file.
7105 * configure.tgt (x86_64-*-linux*): Append amd64.o.
7106 * Makefile.in (ALL_64_TARGET_OBS): Append amd64.o.
7107
6c73f67f
YQ
71082017-09-05 Yao Qi <yao.qi@linaro.org>
7109
7110 * amd64-linux-tdep.c: Don't include amd64-XXX-linux and
7111 x32-XXX-linux.c. Include 64bit-XX.c and x32-XX.c.
7112 (amd64_linux_read_description): Create target descriptions.
7113 (_initialize_amd64_linux_tdep): Don't call initialize_tdesc_XXX
7114 functions. Add unit tests.
7115 * features/Makefile (FEATURE_XMLFILES): Append 64bit-XXX.xml and
7116 x32-core.xml.
7117 * features/i386/64bit-avx.c: Generated.
7118 * features/i386/64bit-avx512.c: Generated.
7119 * features/i386/64bit-core.c: Generated.
7120 * features/i386/64bit-linux.c: Generated.
7121 * features/i386/64bit-mpx.c: Generated.
7122 * features/i386/64bit-pkeys.c: Generated.
7123 * features/i386/64bit-segments.c: Generated.
7124 * features/i386/64bit-sse.c: Generated.
7125 * features/i386/x32-core.c: Generated.
7126 * target-descriptions.c (maint_print_c_tdesc_cmd): Print feature
7127 c files for amd64-linux and x32-linux.
7128
9d3d478b
YQ
71292017-09-05 Yao Qi <yao.qi@linaro.org>
7130
7131 * amd64-linux-tdep.c (amd64_linux_read_description): New
7132 function.
7133 (amd64_linux_core_read_description): Call
7134 amd64_linux_read_description.
7135 (amd64_linux_init_abi): Likewise.
7136 (amd64_x32_linux_init_abi): Likewise.
7137 * amd64-linux-tdep.h (amd64_linux_read_description): Declare.
7138 * x86-linux-nat.c (x86_linux_read_description): Call
7139 amd64_linux_read_description.
7140
b9f1d50f
YQ
71412017-09-05 Yao Qi <yao.qi@linaro.org>
7142
7143 * amd64-linux-tdep.c (amd64_linux_core_read_description): Update
7144 comments.
7145
188c9e6d
YQ
71462017-09-05 Yao Qi <yao.qi@linaro.org>
7147
7148 * features/Makefile (XMLTOC): Remove i386/i386-XX-linux.xml.
7149 * features/i386/i386-avx-avx512-linux.c: Remove.
7150 * features/i386/i386-avx-linux.c: Remove.
7151 * features/i386/i386-avx-mpx-avx512-pku-linux.c: Remove.
7152 * features/i386/i386-avx-mpx-linux.c: Remove.
7153 * features/i386/i386-linux.c: Remove.
7154 * features/i386/i386-mmx-linux.c: Remove.
7155 * features/i386/i386-mpx-linux.c: Remove.
7156
5f035c07
YQ
71572017-09-05 Yao Qi <yao.qi@linaro.org>
7158
7159 * Makefile.in (ALL_TARGET_OBS): Add i386.o.
7160 (SFILES): Add arch/i386.c.
7161 (HFILES_NO_SRCDIR): Add arch/i386.h.
7162 * arch/i386.c: New file.
7163 * arch/i386.h: New file.
7164 * arch/tdesc.h (allocate_target_description): Declare.
7165 (set_tdesc_architecture): Declare.
7166 (set_tdesc_osabi): Declare.
7167 * configure.tgt (i[34567]86-*-linux*): Add i386.o.
7168 * i386-linux-tdep.c: Don't include ../features/i386/32bit-XXX.c.
7169 include arch/i386.h.
7170 (i386_linux_read_description): Remove code and call
7171 i386_create_target_description.
7172 (set_tdesc_architecture): New function.
7173 (set_tdesc_osabi): New function.
7174 * target-descriptions.h (allocate_target_description): Remove.
7175
0abe8a89
YQ
71762017-09-05 Yao Qi <yao.qi@linaro.org>
7177
7178 * arch/tdesc.h (tdesc_create_feature): Add an argument xml.
7179 * target-descriptions.c (tdesc_create_feature): Likewise, and
7180 adjust code.
7181 * features/i386/32bit-avx.c: Re-generated.
7182 * features/i386/32bit-avx512.c: Re-generated.
7183 * features/i386/32bit-core.c: Re-generated.
7184 * features/i386/32bit-linux.c: Re-generated.
7185 * features/i386/32bit-mpx.c: Re-generated.
7186 * features/i386/32bit-pkeys.c: Re-generated.
7187 * features/i386/32bit-sse.c: Re-generated.
7188
0a188386
YQ
71892017-09-05 Yao Qi <yao.qi@linaro.org>
7190
7191 * regformats/regdef.h (struct reg): Override operator == and !=.
7192
f49ff000
YQ
71932017-09-05 Yao Qi <yao.qi@linaro.org>
7194
7195 * arch/tdesc.h: New file.
7196 * regformats/regdat.sh: Generate code using tdesc_create_reg.
7197 * target-descriptions.c: Update comments.
7198 * target-descriptions.h: Include "arch/tdesc.h". Remove the
7199 declarations.
7200 * features/i386/32bit-avx.c: Re-generated.
7201 * features/i386/32bit-avx512.c: Re-generated.
7202 * features/i386/32bit-core.c: Re-generated.
7203 * features/i386/32bit-linux.c: Re-generated.
7204 * features/i386/32bit-mpx.c: Re-generated.
7205 * features/i386/32bit-pkeys.c: Re-generated.
7206 * features/i386/32bit-sse.c: Re-generated.
7207
f7000548
YQ
72082017-09-05 Yao Qi <yao.qi@linaro.org>
7209
7210 * regformats/regdat.sh: Update generated code.
7211
c9a5e2a5
YQ
72122017-09-05 Yao Qi <yao.qi@linaro.org>
7213
7214 * regformats/regdat.sh: Adjust code order.
7215
d6b687ac
SM
72162017-09-05 Simon Marchi <simon.marchi@ericsson.com>
7217
7218 * expprint.c (dump_subexp_body_standard): Use constant format
7219 string in fprintf_filtered call.
7220
a379bfd0
JB
72212017-09-04 John Baldwin <jhb@FreeBSD.org>
7222
7223 * configure.nat: Add "x86-nat.o x86-dregs.o" for NetBSD/amd64 and
7224 NetBSD/i386.
7225 * x86-bsd-nat.c [!DBREG_DRX && __NetBSD__]: Define DBREG_DRX.
7226
f7efc967
JB
72272017-09-04 John Baldwin <jhb@FreeBSD.org>
7228
7229 * bsd-kvm.o: Make <sys/user.h> conditional on HAVE_SYS_USER_H.
7230
c49fbc6c
JB
72312017-09-04 John Baldwin <jhb@FreeBSD.org>
7232
7233 * bsd-kvm.o: Define _KMEMUSER.
7234 * configure.ac: Define _KMEMUSER when checking for "struct lwp".
7235 * configure: Regenerate.
7236
26562e73
JB
72372017-09-04 John Baldwin <jhb@FreeBSD.org>
7238
7239 * amd64-fbsd-nat.c: Add include of "x86-xstate.h".
7240 * i386-fbsd-nat.c: Likewise.
7241
31cf1487
JB
72422017-09-04 John Baldwin <jhb@FreeBSD.org>
7243
7244 * unittests/array-view-selftests.c: Add include of <array>.
7245
5b9f8a7c
JB
72462017-09-04 John Baldwin <jhb@FreeBSD.org>
7247
7248 * spu-tdep.c (flush_ea_cache): Add missing argument to
7249 call_function_by_hand.
7250
d69cf9b2
PA
72512017-09-04 Pedro Alves <palves@redhat.com>
7252
7253 * NEWS (Safer support for debugging with no debug info): New.
7254
3693fdb3
PA
72552017-09-04 Pedro Alves <palves@redhat.com>
7256
7257 * c-exp.y (function_method, function_method_void): Add current
7258 instance flags to TYPE_INSTANCE.
7259 * dwarf2read.c (check_modifier): New.
7260 (compute_delayed_physnames): Assert that only C++ adds delayed
7261 physnames. Mark fn_fields as const/volatile depending on
7262 physname.
7263 * eval.c (make_params): New type_instance_flags parameter. Use
7264 it as the new type's instance flags.
7265 (evaluate_subexp_standard) <TYPE_INSTANCE>: Extract the instance
7266 flags element and pass it to make_params.
7267 * expprint.c (print_subexp_standard) <TYPE_INSTANCE>: Handle
7268 instance flags element.
7269 (dump_subexp_body_standard) <TYPE_INSTANCE>: Likewise.
7270 * gdbtypes.h: Include "enum-flags.h".
7271 (type_instance_flags): New enum-flags type.
7272 (TYPE_CONST, TYPE_VOLATILE, TYPE_RESTRICT, TYPE_ATOMIC)
7273 (TYPE_CODE_SPACE, TYPE_DATA_SPACE): Return boolean.
7274 * parse.c (operator_length_standard) <TYPE_INSTANCE>: Adjust.
7275 (follow_type_instance_flags): New function.
7276 (operator_check_standard) <TYPE_INSTANCE>: Adjust.
7277 * parser-defs.h (follow_type_instance_flags): Declare.
7278 * valops.c (value_struct_elt_for_reference): const/volatile must
7279 match too.
7280
e68cb8e0
PA
72812017-09-04 Pedro Alves <palves@redhat.com>
7282
7283 * cp-namespace.c (cp_search_static_and_baseclasses): Handle
7284 function/method scopes; lookup the nested name as a function local
7285 static variable.
7286
858be34c
PA
72872017-09-04 Pedro Alves <palves@redhat.com>
7288
7289 (%type <voidval>): Add function_method.
7290 * c-exp.y (exp): New production for calls with no arguments.
7291 (function_method, function_method_void_or_typelist): New
7292 productions.
7293 (exp): New production for "method()::static_var".
7294 * eval.c (evaluate_subexp_standard): Handle OP_FUNC_STATIC_VAR.
7295 * expprint.c (print_subexp_standard, dump_subexp_body_standard):
7296 Handle OP_FUNC_STATIC_VAR.
7297 * parse.c (operator_length_standard):
7298 Handle OP_FUNC_STATIC_VAR.
7299
dd5901a6
PA
73002017-09-04 Pedro Alves <palves@redhat.com>
7301
7302 * eval.c (evaluate_subexp_standard): Remove UNOP_MEMVAL_TLS
7303 handling.
7304 * expprint.c (print_subexp_standard, dump_subexp_body_standard):
7305 Ditto.
7306 * parse.c (operator_length_standard, operator_check_standard):
7307 Ditto.
7308 * std-operator.def (UNOP_MEMVAL_TLS): Delete.
7309
46a4882b
PA
73102017-09-04 Pedro Alves <palves@redhat.com>
7311
7312 * ax-gdb.c: Include "typeprint.h".
7313 (gen_expr_for_cast): New function.
7314 (gen_expr) <OP_CAST, OP_CAST_TYPE>: Use it.
7315 <OP_VAR_VALUE, OP_MSYM_VAR_VALUE>: Error out if the variable's
7316 type is unknown.
7317 * dwarf2read.c (new_symbol_full): Fallback to int instead of
7318 nodebug_data_symbol.
7319 * eval.c: Include "typeprint.h".
7320 (evaluate_subexp_standard) <OP_VAR_VALUE, OP_VAR_MSYM_VALUE>:
7321 Error out if symbol has unknown type.
7322 <UNOP_CAST, UNOP_CAST_TYPE>: Common bits factored out to
7323 evaluate_subexp_for_cast.
7324 (evaluate_subexp_for_address, evaluate_subexp_for_sizeof): Handle
7325 OP_VAR_MSYM_VALUE.
7326 (evaluate_subexp_for_cast): New function.
7327 * gdbtypes.c (init_nodebug_var_type): New function.
7328 (objfile_type): Use it to initialize types of variables with no
7329 debug info.
7330 * typeprint.c (error_unknown_type): New.
7331 * typeprint.h (error_unknown_type): New declaration.
7332 * compile/compile-c-types.c (convert_type_basic): Handle
7333 TYPE_CODE_ERROR; warn and fallback to int for variables with
7334 unknown type.
7335
fe13dfec
PA
73362017-09-04 Pedro Alves <palves@redhat.com>
7337
7338 * eval.c (evaluate_var_value): New function, factored out from ...
7339 (evaluate_subexp_standard): ... here.
7340
d008ee21
PA
73412017-09-04 Pedro Alves <palves@redhat.com>
7342
7343 * eval.c (evaluate_subexp_standard) <UNOP_COMPLEMENT, UNOP_ADDR>:
7344 Remove useless assignments to 'op'.
7345
827d0c51
PA
73462017-09-04 Pedro Alves <palves@redhat.com>
7347
7348 * eval.c (eval_skip_value): New function.
7349 (evaluate_subexp_standard): Use it.
7350
2c5a2be1
PA
73512017-09-04 Pedro Alves <palves@redhat.com>
7352
7353 * eval.c (evaluate_subexp_standard): <OP_FUNCALL>: Extract
7354 function name from symbol/minsym and pass it to
7355 error_call_unknown_return_type.
7356
74ea4be4
PA
73572017-09-04 Pedro Alves <palves@redhat.com>
7358
7359 * ada-lang.c (resolve_subexp): Handle OP_VAR_MSYM_VALUE.
7360 * ax-gdb.c (gen_msym_var_ref): New function.
7361 (gen_expr): Handle OP_VAR_MSYM_VALUE.
7362 * eval.c (evaluate_var_msym_value): New function.
7363 * eval.c (evaluate_subexp_standard): Handle OP_VAR_MSYM_VALUE.
7364 <OP_FUNCALL>: Extract function name from symbol/minsym and pass it
7365 to call_function_by_hand.
7366 * expprint.c (print_subexp_standard, dump_subexp_body_standard):
7367 Handle OP_VAR_MSYM_VALUE.
7368 (union exp_element) <msymbol>: New field.
7369 * minsyms.h (struct type): Forward declare.
7370 (find_minsym_type_and_address): Declare.
7371 * parse.c (write_exp_elt_msym): New function.
7372 (write_exp_msymbol): Delete, refactored as ...
7373 (find_minsym_type_and_address): ... this new function.
7374 (write_exp_msymbol): Reimplement using OP_VAR_MSYM_VALUE.
7375 (operator_length_standard, operator_check_standard): Handle
7376 OP_VAR_MSYM_VALUE.
7377 * std-operator.def (OP_VAR_MSYM_VALUE): New.
7378
7022349d
PA
73792017-09-04 Pedro Alves <palves@redhat.com>
7380
7381 * ada-lang.c (ada_evaluate_subexp) <TYPE_CODE_FUNC>: Don't handle
7382 TYPE_GNU_IFUNC specially here. Throw error if return type is
7383 unknown.
7384 * ada-typeprint.c (print_func_type): Handle functions with unknown
7385 return type.
7386 * c-typeprint.c (c_type_print_base): Handle functions and methods
7387 with unknown return type.
7388 * compile/compile-c-symbols.c (convert_symbol_bmsym)
7389 <mst_text_gnu_ifunc>: Use nodebug_text_gnu_ifunc_symbol.
7390 * compile/compile-c-types.c: Include "objfiles.h".
7391 (convert_func): For functions with unknown return type, warn and
7392 default to int.
7393 * compile/compile-object-run.c (compile_object_run): Adjust call
7394 to call_function_by_hand_dummy.
7395 * elfread.c (elf_gnu_ifunc_resolve_addr): Adjust call to
7396 call_function_by_hand.
7397 * eval.c (evaluate_subexp_standard): Adjust calls to
7398 call_function_by_hand. Handle functions and methods with unknown
7399 return type. Pass expect_type to call_function_by_hand.
7400 * f-typeprint.c (f_type_print_base): Handle functions with unknown
7401 return type.
7402 * gcore.c (call_target_sbrk): Adjust call to
7403 call_function_by_hand.
7404 * gdbtypes.c (objfile_type): Leave nodebug text symbol with NULL
7405 return type instead of int. Make nodebug_text_gnu_ifunc_symbol be
7406 an integer address type instead of nodebug.
7407 * guile/scm-value.c (gdbscm_value_call): Adjust call to
7408 call_function_by_hand.
7409 * infcall.c (error_call_unknown_return_type): New function.
7410 (call_function_by_hand): New "default_return_type" parameter.
7411 Pass it down.
7412 (call_function_by_hand_dummy): New "default_return_type"
7413 parameter. Use it instead of defaulting to int. If there's no
7414 default and the return type is unknown, throw an error. If
7415 there's a default return type, and the called function has no
7416 debug info, then assume the function is prototyped.
7417 * infcall.h (call_function_by_hand, call_function_by_hand_dummy):
7418 New "default_return_type" parameter.
7419 (error_call_unknown_return_type): New declaration.
7420 * linux-fork.c (call_lseek): Cast return type of lseek.
7421 (inferior_call_waitpid, checkpoint_command): Adjust calls to
7422 call_function_by_hand.
7423 * linux-tdep.c (linux_infcall_mmap, linux_infcall_munmap): Adjust
7424 calls to call_function_by_hand.
7425 * m2-typeprint.c (m2_procedure): Handle functions with unknown
7426 return type.
7427 * objc-lang.c (lookup_objc_class, lookup_child_selector)
7428 (value_nsstring, print_object_command): Adjust calls to
7429 call_function_by_hand.
7430 * p-typeprint.c (pascal_type_print_varspec_prefix): Handle
7431 functions with unknown return type.
7432 (pascal_type_print_func_varspec_suffix): New function.
7433 (pascal_type_print_varspec_suffix) <TYPE_CODE_FUNC,
7434 TYPE_CODE_METHOD>: Use it.
7435 * python/py-value.c (valpy_call): Adjust call to
7436 call_function_by_hand.
7437 * rust-lang.c (rust_evaluate_funcall): Adjust call to
7438 call_function_by_hand.
7439 * valarith.c (value_x_binop, value_x_unop): Adjust calls to
7440 call_function_by_hand.
7441 * valops.c (value_allocate_space_in_inferior): Adjust call to
7442 call_function_by_hand.
7443 * typeprint.c (type_print_unknown_return_type): New function.
7444 * typeprint.h (type_print_unknown_return_type): New declaration.
7445
54990598
PA
74462017-09-04 Pedro Alves <palves@redhat.com>
7447
7448 * gdbtypes.c (lookup_function_type_with_arguments): Mark function
7449 types with more than one parameter as prototyped.
7450
9a24775b
PA
74512017-09-04 Pedro Alves <palves@redhat.com>
7452
7453 * cli/cli-cmds.c (print_disassembly, disassemble_current_function)
7454 (disassemble_command): Use gdb_disassembly_flags instead of bare
7455 int.
7456 * disasm.c (gdb_pretty_print_disassembler::pretty_print_insn)
7457 (dump_insns, do_mixed_source_and_assembly_deprecated)
7458 (do_mixed_source_and_assembly, do_assembly_only, gdb_disassembly):
7459 Use gdb_disassembly_flags instead of bare int.
7460 * disasm.h (DISASSEMBLY_SOURCE_DEPRECATED, DISASSEMBLY_RAW_INSN)
7461 (DISASSEMBLY_OMIT_FNAME, DISASSEMBLY_FILENAME)
7462 (DISASSEMBLY_OMIT_PC, DISASSEMBLY_SOURCE)
7463 (DISASSEMBLY_SPECULATIVE): No longer macros. Instead they're...
7464 (enum gdb_disassembly_flag): ... values of this new enumeration.
7465 (gdb_disassembly_flags): Define.
7466 (gdb_disassembly)
7467 (gdb_pretty_print_disassembler::pretty_print_insn): Use it.
7468 * mi/mi-cmd-disas.c (mi_cmd_disassemble): Use
7469 gdb_disassembly_flags instead of bare int.
7470 * record-btrace.c (btrace_insn_history)
7471 (record_btrace_insn_history, record_btrace_insn_history_range)
7472 (record_btrace_insn_history_from): Use gdb_disassembly_flags
7473 instead of bare int.
7474 * record.c (get_insn_history_modifiers, cmd_record_insn_history):
7475 Use gdb_disassembly_flags instead of bare int.
7476 * target-debug.h (target_debug_print_gdb_disassembly_flags):
7477 Define.
7478 * target-delegates.c: Regenerate.
7479 * target.c (target_insn_history, target_insn_history_from)
7480 (target_insn_history_range): Use gdb_disassembly_flags instead of
7481 bare int.
7482 * target.h: Include "disasm.h".
7483 (struct target_ops) <to_insn_history, to_insn_history_from,
7484 to_insn_history_range>: Use gdb_disassembly_flags instead of bare
7485 int.
7486 (target_insn_history, target_insn_history_from)
7487 (target_insn_history_range): Use gdb_disassembly_flags instead of
7488 bare int.
7489
80a65e9b
SM
74902017-09-04 Simon Marchi <simon.marchi@ericsson.com>
7491
7492 * cli/cli-script.c (build_command_line): For if/while commands,
7493 check whether args is empty.
7494
6b66338c
SM
74952017-09-04 Simon Marchi <simon.marchi@ericsson.com>
7496
7497 * cli/cli-script.h (enum misc_command_type): Move from defs.h.
7498 (enum command_control_type): Likewise.
7499 (struct command_line): Likewise.
7500 (free_command_lines): Likewise.
7501 (struct command_lines_deleter): Likewise.
7502 (command_line_up): Likewise.
7503 (read_command_lines): Likewise.
7504 (read_command_lines_1): Likewise.
7505 * defs.h (enum misc_command_type): Move to cli/cli-script.h.
7506 (enum command_control_type): Likewise.
7507 (struct command_line): Likewise.
7508 (free_command_lines): Likewise.
7509 (struct command_lines_deleter): Likewise.
7510 (command_line_up): Likewise.
7511 (read_command_lines): Likewise.
7512 (read_command_lines_1): Likewise.
7513 * breakpoint.h: Include cli/cli-script.h.
7514 * extension-priv.h: Likewise.
7515 * gdbcmd.h: Likewise.
7516
51abb421
PA
75172017-09-04 Pedro Alves <palves@redhat.com>
7518
7519 * ada-lang.c (is_known_support_routine): Move sal declaration to
7520 where it is initialized.
7521 * breakpoint.c (create_internal_breakpoint, init_catchpoint)
7522 (parse_breakpoint_sals, decode_static_tracepoint_spec)
7523 (clear_command, update_static_tracepoint): Remove init_sal
7524 references. Move declarations closer to initializations.
7525 * cli/cli-cmds.c (list_command): Move sal declarations closer to
7526 initializations.
7527 * elfread.c (elf_gnu_ifunc_resolver_stop): Remove init_sal
7528 references. Move sal declarations closer to initializations.
7529 * frame.c (find_frame_sal): Return a symtab_and_line via function
7530 return instead of output parameter. Remove init_sal references.
7531 * frame.h (find_frame_sal): Return a symtab_and_line via function
7532 return instead of output parameter.
7533 * guile/scm-frame.c (gdbscm_frame_sal): Adjust.
7534 * guile/scm-symtab.c (stscm_make_sal_smob): Use in-place new
7535 instead of memset.
7536 (gdbscm_find_pc_line): Remove init_sal reference.
7537 * infcall.c (call_function_by_hand_dummy): Remove init_sal
7538 references. Move declarations closer to initializations.
7539 * infcmd.c (set_step_frame): Update. Move declarations closer to
7540 initializations.
7541 (finish_backward): Remove init_sal references. Move declarations
7542 closer to initializations.
7543 * infrun.c (process_event_stop_test, handle_step_into_function)
7544 (insert_hp_step_resume_breakpoint_at_frame)
7545 (insert_step_resume_breakpoint_at_caller): Likewise.
7546 * linespec.c (create_sals_line_offset, decode_digits_ordinary)
7547 (symbol_to_sal): Likewise.
7548 * probe.c (parse_probes_in_pspace): Remove init_sal reference.
7549 * python/py-frame.c (frapy_find_sal): Move sal declaration closer
7550 to its initialization.
7551 * reverse.c (save_bookmark_command): Use new/delete. Remove
7552 init_sal references. Move declarations closer to initializations.
7553 * source.c (get_current_source_symtab_and_line): Remove brace
7554 initialization.
7555 (set_current_source_symtab_and_line): Now takes the sal by const
7556 reference. Remove brace initialization.
7557 (line_info): Remove init_sal reference.
7558 * source.h (set_current_source_symtab_and_line): Now takes a
7559 symtab_and_line via const reference.
7560 * stack.c (set_current_sal_from_frame): Adjust.
7561 (print_frame_info): Adjust.
7562 (get_last_displayed_sal): Return the sal via function return
7563 instead of via output parameter. Simplify.
7564 (frame_info): Adjust.
7565 * stack.h (get_last_displayed_sal): Return the sal via function
7566 return instead of via output parameter.
7567 * symtab.c (init_sal): Delete.
7568 (find_pc_sect_line): Remove init_sal references. Move
7569 declarations closer to initializations.
7570 (find_function_start_sal): Remove init_sal references. Move
7571 declarations closer to initializations.
7572 * symtab.h (struct symtab_and_line): In-class initialize all
7573 fields.
7574 * tracepoint.c (set_traceframe_context)
7575 (print_one_static_tracepoint_marker): Remove init_sal references.
7576 Move declarations closer to initializations.
7577 * tui/tui-disasm.c (tui_show_disassem_and_update_source): Adjust.
7578 * tui/tui-stack.c (tui_show_frame_info): Adjust. Move
7579 declarations closer to initializations.
7580 * tui/tui-winsource.c (tui_update_source_window_as_is): Remove
7581 init_sal references. Adjust.
7582
6c5b2ebe
PA
75832017-09-04 Pedro Alves <palves@redhat.com>
7584
7585 * ax-gdb.c (agent_command_1): Use range-for.
7586 * break-catch-throw.c (re_set_exception_catchpoint): Update.
7587 * breakpoint.c: Include "common/array-view.h".
7588 (init_breakpoint_sal, create_breakpoint_sal): Change sals
7589 parameter from struct symtabs_and_lines to
7590 array_view<symtab_and_line>. Adjust. Use range-for. Update.
7591 (breakpoint_sals_to_pc): Change sals parameter from struct
7592 symtabs_and_lines to std::vector reference.
7593 (check_fast_tracepoint_sals): Change sals parameter from struct
7594 symtabs_and_lines to std::array_view. Use range-for.
7595 (decode_static_tracepoint_spec): Return a std::vector instead of
7596 symtabs_and_lines. Update.
7597 (create_breakpoint): Update.
7598 (break_range_command, until_break_command, clear_command): Update.
7599 (base_breakpoint_decode_location, bkpt_decode_location)
7600 (bkpt_probe_create_sals_from_location)
7601 (bkpt_probe_decode_location, tracepoint_decode_location)
7602 (tracepoint_probe_decode_location)
7603 (strace_marker_create_sals_from_location): Return a std::vector
7604 instead of symtabs_and_lines.
7605 (strace_marker_create_breakpoints_sal): Update.
7606 (strace_marker_decode_location): Return a std::vector instead of
7607 symtabs_and_lines. Update.
7608 (update_breakpoint_locations): Change struct symtabs_and_lines
7609 parameters to gdb::array_view. Adjust.
7610 (location_to_sals): Return a std::vector instead of
7611 symtabs_and_lines. Update.
7612 (breakpoint_re_set_default): Use std::vector instead of struct
7613 symtabs_and_lines.
7614 (decode_location_default): Return a std::vector instead of
7615 symtabs_and_lines. Update.
7616 * breakpoint.h: Include "common/array-view.h".
7617 (struct breakpoint_ops) <decode_location>: Now returns a
7618 std::vector instead of returning a symtabs_and_lines via output
7619 parameter.
7620 (update_breakpoint_locations): Change sals parameters to use
7621 gdb::array_view.
7622 * cli/cli-cmds.c (edit_command, list_command): Update to use
7623 std::vector and gdb::array_view.
7624 (ambiguous_line_spec): Adjust to use gdb::array_view and
7625 range-for.
7626 (compare_symtabs): Rename to ...
7627 (cmp_symtabs): ... this. Change parameters to symtab_and_line
7628 const reference and adjust.
7629 (filter_sals): Rewrite using std::vector and standard algorithms.
7630 * elfread.c (elf_gnu_ifunc_resolver_return_stop): Simplify.
7631 (jump_command): Update to use std::vector.
7632 * linespec.c (struct linespec_state) <canonical_names>: Update
7633 comment.
7634 (add_sal_to_sals_basic): Delete.
7635 (add_sal_to_sals, filter_results, convert_results_to_lsals)
7636 (decode_line_2, create_sals_line_offset)
7637 (convert_address_location_to_sals, convert_linespec_to_sals)
7638 (convert_explicit_location_to_sals, parse_linespec)
7639 (event_location_to_sals, decode_line_full, decode_line_1)
7640 (decode_line_with_current_source)
7641 (decode_line_with_last_displayed, decode_objc)
7642 (decode_digits_list_mode, decode_digits_ordinary, minsym_found)
7643 (linespec_result::~linespec_result): Adjust to use std::vector
7644 instead of symtabs_and_lines.
7645 * linespec.h (linespec_sals::sals): Now a std::vector.
7646 (struct linespec_result): Use std::vector, bool, and in-class
7647 initialization.
7648 (decode_line_1, decode_line_with_current_source)
7649 (decode_line_with_last_displayed): Return std::vector.
7650 * macrocmd.c (info_macros_command): Use std::vector.
7651 * mi/mi-main.c (mi_cmd_trace_find): Use std::vector.
7652 * probe.c (parse_probes_in_pspace, parse_probes): Adjust to use
7653 std::vector.
7654 * probe.h (parse_probes): Return a std::vector.
7655 * python/python.c (gdbpy_decode_line): Use std::vector and
7656 gdb::array_view.
7657 * source.c (select_source_symtab, line_info): Use std::vector.
7658 * stack.c (func_command): Use std::vector.
7659 * symtab.h (struct symtabs_and_lines): Delete.
7660 * tracepoint.c (tfind_line_command, scope_info): Use std::vector.
7661
7c44b49c
PA
76622017-09-04 Pedro Alves <palves@redhat.com>
7663
7664 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
7665 unittests/array-view-selftests.c.
7666 (SUBDIR_UNITTESTS_OBS): Add array-view-selftests.o.
7667 * common/array-view.h: New file.
7668 * unittests/array-view-selftests.c: New file.
7669
e439fa14
PA
76702017-09-04 Pedro Alves <palves@redhat.com>
7671
7672 * cli/cli-cmds.c (edit_command): Pass message to
7673 ambiguous_line_spec.
7674 (list_command): Pass message to ambiguous_line_spec. Say
7675 "first"/"last" instead of "start" and "end" to be consistent with
7676 the manual.
7677 (ambiguous_line_spec): Add 'format' and vararg parameters. Use
7678 them to print formatted message.
7679
7525b645
PA
76802017-09-04 Pedro Alves <palves@redhat.com>
7681
7682 * btrace.c (ftrace_add_pt): Pass btrace_insn to
7683 ftrace_update_insns by reference instead of pointer.
7684
badc0020
YQ
76852017-09-04 Yao Qi <yao.qi@linaro.org>
7686
7687 * i386-go32-tdep.c: Include x86-xstate.h.
7688 (i386_go32_init_abi): Call i386_target_description.
7689 * i386-tdep.c (i386_target_description): Return tdesc_i386_mmx
7690 if xcr0 is X86_XSTATE_X87_MASK.
7691 * i386-tdep.h (tdesc_i386): Remove the declaration.
7692 (tdesc_i386_mmx): Likewise.
7693
d78bdb54
YQ
76942017-09-04 Yao Qi <yao.qi@linaro.org>
7695
7696 * i386-fbsd-tdep.c (i386fbsd_core_read_xcr0): Return
7697 X86_XSTATE_SSE_MASK instead of 0.
7698
ca1fa5ee
YQ
76992017-09-04 Yao Qi <yao.qi@linaro.org>
7700
7701 * amd64-fbsd-nat.c (amd64fbsd_read_description): Call
7702 i386_target_description.
7703 * i386-fbsd-nat.c (i386fbsd_read_description): Call
7704 i386_target_description.
7705 * i386-tdep.c (i386_gdbarch_init): Likewise.
7706
2434b019
YQ
77072017-09-04 Yao Qi <yao.qi@linaro.org>
7708
7709 * amd64-darwin-tdep.c: Include "x86-xstate.h".
7710 (x86_darwin_init_abi_64): Call amd64_target_description.
7711 * amd64-dicos-tdep.c: Likewise.
7712 * amd64-fbsd-nat.c: Likewise.
7713 * amd64-fbsd-tdep.c: Likewise.
7714 * amd64-nbsd-tdep.c: Likewise.
7715 * amd64-obsd-tdep.c: Likewise.
7716 * amd64-sol2-tdep.c: Likewise.
7717 * amd64-windows-tdep.c: Likewise.
7718 * amd64-tdep.h (tdesc_amd64): Remove the declaration.
7719
0860c437
SM
77202017-09-04 Simon Marchi <simon.marchi@ericsson.com>
7721
7722 * btrace.h (btrace_insn_s, DEF_VEC_O (btrace_insn_s)): Remove.
7723 (btrace_function) <insn>: Change type to use std::vector.
7724 * btrace.c (ftrace_debug, ftrace_call_num_insn,
7725 ftrace_find_call, ftrace_new_gap, ftrace_update_function,
7726 ftrace_update_insns, ftrace_compute_global_level_offset,
7727 btrace_stitch_bts, btrace_clear, btrace_insn_get,
7728 btrace_insn_end, btrace_insn_next, btrace_insn_prev): Adjust to
7729 change to std::vector.
7730 (ftrace_update_insns): Adjust to change to std::vector, change
7731 type of INSN parameter.
7732 (btrace_compute_ftrace_bts): Adjust call to ftrace_update_insns.
7733 * record-btrace.c (btrace_call_history_insn_range,
7734 btrace_compute_src_line_range,
7735 record_btrace_frame_prev_register): Adjust to change to
7736 std::vector.
7737 * python/py-record-btrace.c (recpy_bt_func_instructions): Adjust
7738 to change to std::vector.
7739
0638b7f9
TT
77402017-09-03 Tom Tromey <tom@tromey.com>
7741
7742 * corefile.c (reopen_exec_file): Use std::string.
7743
8f84fb0e
TT
77442017-09-03 Tom Tromey <tom@tromey.com>
7745
7746 * compile/compile.c (compile_register_name_mangled): Return
7747 std::string.
7748 * compile/compile-loc2c.c (pushf_register_address): Update.
7749 (pushf_register): Update.
7750 * compile/compile-c-types.c (convert_array): Update.
7751 * compile/compile-c-symbols.c (generate_vla_size): Update.
7752 (error_symbol_once): Use a gdb::unique_xmalloc_ptr.
7753 (symbol_substitution_name): Return a gdb::unique_xmalloc_ptr.
7754 (convert_one_symbol): Update.
7755 (generate_c_for_for_one_variable): Update.
7756 * compile/compile-c-support.c (c_get_range_decl_name): Return a
7757 std::string.
7758 (generate_register_struct): Update.
7759 * compile/compile-internal.h (c_get_range_decl_name): Return a
7760 std::string.
7761 (compile_register_name_mangled): Return std::string.
7762
18e9961f
TT
77632017-09-03 Tom Tromey <tom@tromey.com>
7764
7765 * utils.c (perror_string): Return a std::string.
7766 (throw_perror_with_name, perror_warning_with_name): Update.
7767
45343786
TT
77682017-09-03 Tom Tromey <tom@tromey.com>
7769
7770 * demangle.c (demangle_command): Use std::string,
7771 unique_xmalloc_ptr.
7772
b57af503
TT
77732017-09-03 Tom Tromey <tom@tromey.com>
7774
7775 * cli/cli-setshow.c (do_set_command): Use std::string.
7776
6eecf35f
TT
77772017-09-03 Tom Tromey <tom@tromey.com>
7778
7779 * cli/cli-cmds.c (cd_command): Use gdb::unique_xmalloc_ptr.
7780
56496dd4
TT
77812017-09-03 Tom Tromey <tom@tromey.com>
7782
7783 * mi/mi-interp.c (mi_cmd_interpreter_exec): Use std::string.
7784
e91a1fa7
TT
77852017-09-03 Tom Tromey <tom@tromey.com>
7786
7787 * mi/mi-cmd-env.c (env_execute_cli_command): Use
7788 gdb::unique_xmalloc_ptr.
7789
7ffd83d7
TT
77902017-09-03 Tom Tromey <tom@tromey.com>
7791
7792 * thread.c (print_thread_info_1): Use string_printf.
7793 (thread_apply_command, thread_apply_all_command): Use
7794 std::string.
7795
1ccbe998
TT
77962017-09-03 Tom Tromey <tom@tromey.com>
7797
7798 * valprint.c (val_print_string): Update.
7799 * gdbcore.h (memory_error_message): Return std::string.
7800 * corefile.c (memory_error_message): Return std::string.
7801 (memory_error): Update.
7802 * breakpoint.c (insert_bp_location): Update.
7803
23fdd69e
SM
78042017-09-03 Simon Marchi <simon.marchi@ericsson.com>
7805
7806 * target/waitstatus.h (target_waitstatus_to_string): Change
7807 return type to std::string.
7808 * target/waitstatus.c (target_waitstatus_to_string): Return
7809 std::string.
7810 * target.h (target_waitstatus_to_string): Remove declaration.
7811 * infrun.c (resume, clear_proceed_status_thread,
7812 print_target_wait_results, do_target_wait, save_waitstatus,
7813 stop_all_threads): Adjust.
7814 * record-btrace.c (record_btrace_wait): Adjust.
7815 * target-debug.h
7816 (target_debug_print_struct_target_waitstatus_p): Adjust.
7817
5c811d30
JK
78182017-09-01 Jan Kratochvil <jan.kratochvil@redhat.com>
7819
7820 PR gdb/22046
7821 * nat/linux-procfs.c (parse_proc_status_state): Fix PROC_STATE_STOPPED
7822 detection.
7823
0a2dde4a
SDJ
78242017-08-31 Sergio Durigan Junior <sergiodj@redhat.com>
7825
7826 * NEWS (Changes since GDB 8.0): Add entry mentioning new support
7827 for setting/unsetting environment variables on the remote target.
7828 (New remote packets): Add entries for QEnvironmentHexEncoded,
7829 QEnvironmentUnset and QEnvironmentReset.
7830 * common/environ.c (gdb_environ::operator=): Extend method to
7831 handle m_user_set_env_list and m_user_unset_env_list.
7832 (gdb_environ::clear): Likewise.
7833 (match_var_in_string): Change type of first parameter from 'char
7834 *' to 'const char *'.
7835 (gdb_environ::set): Extend method to handle
7836 m_user_set_env_list and m_user_unset_env_list.
7837 (gdb_environ::unset): Likewise.
7838 (gdb_environ::clear_user_set_env): New method.
7839 (gdb_environ::user_set_envp): Likewise.
7840 (gdb_environ::user_unset_envp): Likewise.
7841 * common/environ.h (gdb_environ): Handle m_user_set_env_list and
7842 m_user_unset_env_list on move constructor/assignment.
7843 (unset): Add new default parameter 'update_unset_list = true'.
7844 (clear_user_set_env): New method.
7845 (user_set_envp): Likewise.
7846 (user_unset_envp): Likewise.
7847 (m_user_set_env_list): New std::set.
7848 (m_user_unset_env_list): Likewise.
7849 * common/rsp-low.c (hex2str): New function.
7850 (bin2hex): New overload for bin2hex function.
7851 * common/rsp-low.c (hex2str): New prototype.
7852 (str2hex): New overload prototype.
7853 * remote.c: Include "environ.h". Add QEnvironmentHexEncoded,
7854 QEnvironmentUnset and QEnvironmentReset.
7855 (remote_protocol_features): Add QEnvironmentHexEncoded,
7856 QEnvironmentUnset and QEnvironmentReset packets.
7857 (send_environment_packet): New function.
7858 (extended_remote_environment_support): Likewise.
7859 (extended_remote_create_inferior): Call
7860 extended_remote_environment_support.
7861 (_initialize_remote): Add QEnvironmentHexEncoded,
7862 QEnvironmentUnset and QEnvironmentReset packet configs.
7863 * unittests/environ-selftests.c (gdb_selftest_env_var):
7864 New variable.
7865 (test_vector_initialization): New function.
7866 (test_init_from_host_environ): Likewise.
7867 (test_reinit_from_host_environ): Likewise.
7868 (test_set_A_unset_B_unset_A_cannot_find_A_can_find_B):
7869 Likewise.
7870 (test_unset_set_empty_vector): Likewise.
7871 (test_vector_clear): Likewise.
7872 (test_std_move): Likewise.
7873 (test_move_constructor):
7874 (test_self_move): Likewise.
7875 (test_set_unset_reset): Likewise.
7876 (run_tests): Rewrite in terms of the functions above.
7877
654670a4
WP
78782017-08-31 Weimin Pan <weimin.pan@oracle.com>
7879
7880 * sparc64-tdep.c (adi_stat_t): Fix comment formatting.
7881 (adi_available): Use a temp variable of type CORE_ADDR as argument
7882 3 when calling target_auxv_search.
7883 (adi_normalize_address): Use masks and xor operators to calculate
7884 normalized address.
7885 (adi_read_versions, adi_write_versions, adi_print_versions)
7886 (do_examine, do_assign): Use paddress.
7887
7755ddb7
JB
78882017-08-29 John Baldwin <jhb@FreeBSD.org>
7889
7890 * mips-fbsd-nat.c (getfpregs_supplies): Return true for FIR.
7891 * mips-fbsd-tdep.c (mips_fbsd_supply_fpregs): Split supply of FSR
7892 out of loop and add supply of FIR.
7893 (mips_fbsd_collect_fpregs): Split collect of FSR out of loop and
7894 add collect of FIR.
7895
fd437cbc
SM
78962017-08-28 Simon Marchi <simon.marchi@ericsson.com>
7897
3804a343 7898 PR gdb/21827
fd437cbc
SM
7899 * cli/cli-script.c (define_command): Don't convert command name
7900 to lower case.
7901
988f6b3d
JB
79022017-08-25 Joel Brobecker <brobecker@adacore.com>
7903
7904 * ada-lang.c (ada_lookup_struct_elt_type): Remove parameter "dispp".
7905 Update all callers accordingly. Remove all code blocks handling
7906 the case where DISPP is not NULL.
7907
663c44ac
JK
79082017-08-24 Jan Kratochvil <jan.kratochvil@redhat.com>
7909
7910 PR symtab/22003
7911 * dwarf2read.c (dwarf2_const_value_attr, dump_die_shallow)
7912 (dwarf2_get_attr_constant_value, dwarf2_fetch_constant_bytes)
7913 (skip_form_bytes, attr_form_is_constant): Handle DW_FORM_implicit_const.
7914
f1902523
JK
79152017-08-24 Jan Kratochvil <jan.kratochvil@redhat.com>
7916
7917 * dwarf2read.c (build_type_psymtabs_reader): New prototype.
7918 (process_psymtab_comp_unit): Accept IS_DEBUG_TYPES.
7919 (read_comp_units_from_section): New parameter abbrev_section, use
7920 read_and_check_comp_unit_head, allocate signatured_type if needed.
7921 (create_all_comp_units): Update read_comp_units_from_section caller.
7922
87215ad1
SDJ
79232017-08-23 Pedro Alves <palves@redhat.com>
7924
7925 PR remote/21852
7926 * remote.c (add_current_inferior_and_thread): Set inferior_ptid
7927 to null_ptid and switch to thread without reading the registers
7928 after adding the inferior.
7929
6e41ddec
JK
79302017-08-23 Jan Kratochvil <jan.kratochvil@redhat.com>
7931
7932 * NEWS (Changes since GDB 8.0): Add set compile-gcc and show
7933 compile-gcc.
7934 * compile/compile.c (compile_gcc, show_compile_gcc): New.
7935 (compile_to_object): Implement compile_gcc.
7936 (_initialize_compile): Install "set compile-gcc". Initialize
7937 compile_gcc.
7938
e68c32d5
JK
79392017-08-23 Jan Kratochvil <jan.kratochvil@redhat.com>
7940
7941 * compile/compile.c (compile_to_object): Conditionally call
7942 set_verbose. Conditionally call compile or compile_v0.
7943
58afddc6
WP
79442017-08-07 Weimin Pan <weimin.pan@oracle.com>
7945
7946 * sparc64-tdep.h: (adi_normalize_address): New export.
7947 * sparc-nat.h: (open_adi_tag_fd): New export.
7948 * sparc64-linux-nat.c: (open_adi_tag_fd): New function.
7949 * sparc64-linux-tdep.c:
7950 (SEGV_ACCADI, SEGV_ADIDERR, SEGV_ADIPERR) New defines.
7951 (sparc64_linux_handle_segmentation_fault): New function.
7952 (sparc64_linux_init_abi): Register
7953 sparc64_linux_handle_segmentation_fault
7954 * sparc64-tdep.c: Include cli-utils.h,gdbcmd.h,auxv.h.
7955 (sparc64_addr_bits_remove): New function.
7956 (sparc64_init_abi): Register sparc64_addr_bits_remove.
7957 (MAX_PROC_NAME_SIZE): New macro.
7958 (AT_ADI_BLKSZ, AT_ADI_NBITS, AT_ADI_UEONADI) New defines.
7959 (sparc64adilist): New variable.
7960 (adi_proc_list): New variable.
7961 (find_adi_info): New function.
7962 (add_adi_info): New function.
7963 (get_adi_info_proc): New function.
7964 (get_adi_info): New function.
7965 (info_adi_command): New function.
7966 (read_maps_entry): New function.
7967 (adi_available): New function.
7968 (adi_normalize_address): New function.
7969 (adi_align_address): New function.
7970 (adi_convert_byte_count): New function.
7971 (adi_tag_fd): New function.
7972 (adi_is_addr_mapped): New function.
7973 (adi_read_versions): New function.
7974 (adi_write_versions): New function.
7975 (adi_print_versions): New function.
7976 (do_examine): New function.
7977 (do_assign): New function.
7978 (adi_examine_command): New function.
7979 (adi_assign_command): New function.
7980 (_initialize_sparc64_adi_tdep): New function.
7981
11db9430
SM
79822017-08-22 Simon Marchi <simon.marchi@ericsson.com>
7983
7984 * breakpoint.c (breakpoints_info): Rename to ...
7985 (info_breakpoints_command): ... this.
7986 (watchpoints_info): Rename to ...
7987 (info_watchpoints_command): ... this.
7988 (tracepoints_info): Rename to ...
7989 (info_tracepoints_command): ... this.
7990 (_initialize_breakpoint): Adjust.
7991 * dcache.c (dcache_info): Rename to ...
7992 (info_display_command): ... this.
7993 (_initialize_dcache): Adjust.
7994 * frame.h (args_info): Rename to ...
7995 (info_args_command): ... this.
7996 (locals_info): Rename to ...
7997 (info_locals_command): ... this.
7998 * infcmd.c (nofp_registers_info): Rename to ...
7999 (info_registers_command): ... this.
8000 (float_info): Rename to ...
8001 (info_float_command): ... this.
8002 (program_info): Rename to ...
8003 (info_program_command): ... this.
8004 (all_registers_info): Rename to ...
8005 (info_all_registers_command): ... this.
8006 (vector_info): Rename to ...
8007 (info_vector_command): ... this.
8008 (float_info): Rename to ...
8009 (info_float_command): ... this.
8010 (_initialize_infcmd): Adjust.
8011 * inferior.h (term_info): Rename to ...
8012 (info_terminal_command): ... this.
8013 * inflow.c (term_info): Rename to ...
8014 (info_terminal_command): ... this.
8015 (_initialize_inflow): Adjust.
8016 * infrun.c (signals_info): Rename to ...
8017 (info_signals_command): ... this.
8018 (_initialize_infrun): Adjust.
8019 * objc-lang.c (classes_info): Rename to ...
8020 (info_classes_command): ... this.
8021 (selectors_info): Rename to ...
8022 (info_selectors_command): ... this.
8023 (_initialize_objc_language): Adjust.
8024 * printcmd.c (sym_info): Rename to ...
8025 (info_symbol_command): ... this.
8026 (address_info): Rename to ...
8027 (info_address_command): ... this.
8028 (display_info): Rename to ...
8029 (info_display_command): ... this.
8030 (_initialize_printcmd): Adjust.
8031 * reverse.c (bookmarks_info): Rename to ...
8032 (info_breakpoints_command): ... this.
8033 (_initialize_reverse): Adjust.
8034 * ser-go32.c (dos_info): Rename to ...
8035 (info_serial_command): ... this.
8036 (_initialize_ser_dos): Adjust.
8037 * skip.c (skip_info): Rename to ...
8038 (info_skip_command): ... this.
8039 (_initialize_step_skip): Adjust.
8040 * source.c (line_info): Rename to ...
8041 (info_line_command): ... this.
8042 (source_info): Rename to ...
8043 (info_source_command)
8044 * stack.c (frame_info): Rename to ...
8045 (info_frame_command): ... this.
8046 (locals_info): Rename to ...
8047 (info_locals_command): ... this.
8048 (args_info): Rename to ...
8049 (info_args_command): ... this.
8050 (_initialize_stack): Adjust.
8051 * symtab.c (sources_info): Rename to ...
8052 (info_sources_command): ... this.
8053 (variables_info): Rename to ...
8054 (info_variables_command): ... this.
8055 (functions_info): Rename to ...
8056 (info_functions_command): ... this.
8057 (types_info): Rename to ...
8058 (info_types_command): ... this.
8059 (_initialize_symtab): Adjust.
8060 * target.c (target_info): Rename to ...
8061 (info_target_command): ... this.
8062 (initialize_targets): Adjust.
8063 * tracepoint.c (tvariables_info): Rename to ...
8064 (info_tvariables_command): ... this.
8065 (scope_info): Rename to ...
8066 (info_scope_command): ... this.
8067 (trace_dump_actions): Adjust.
8068 (_initialize_tracepoint): Adjust.
8069
b270e6f9
TT
80702017-08-22 Tom Tromey <tom@tromey.com>
8071
8072 * breakpoint.h (install_breakpoint): Update.
8073 * breakpoint.c (add_solib_catchpoint): Update.
8074 (install_breakpoint): Change argument to a std::unique_ptr.
8075 (create_fork_vfork_event_catchpoint): Use std::unique_ptr.
8076 (create_breakpoint_sal, create_breakpoint): Update.
8077 (watch_command_1, catch_exec_command_1)
8078 (strace_marker_create_breakpoints_sal): Use std::unique_ptr.
8079 (add_to_breakpoint_chain): Change argument to a std::unique_ptr.
8080 Return the breakpoint.
8081 (set_raw_breakpoint_without_location, set_raw_breakpoint)
8082 (new_single_step_breakpoint): Update.
8083 * break-catch-throw.c (handle_gnu_v3_exceptions): Use
8084 std::unique_ptr.
8085 * break-catch-syscall.c (create_syscall_event_catchpoint): Use
8086 std::unique_ptr.
8087 * break-catch-sig.c (create_signal_catchpoint): Use
8088 std::unique_ptr.
8089 * ada-lang.c (create_ada_exception_catchpoint): Use
8090 std::unique_ptr.
8091
36bd8eaa
TT
80922017-08-22 Tom Tromey <tom@tromey.com>
8093
8094 * breakpoint.c (add_solib_catchpoint): Use std::unique_ptr.
8095
56f37645
TT
80962017-08-22 Tom Tromey <tom@tromey.com>
8097
8098 * psymtab.c (psymtab_search_name): Return a unique_xmalloc_ptr.
8099 (lookup_partial_symbol): Update.
8100
0b581c69
TT
81012017-08-22 Tom Tromey <tom@tromey.com>
8102
8103 * source.h (rewrite_source_path): Return a unique_xmalloc_ptr.
8104 * source.c (rewrite_source_path): Return a unique_xmalloc_ptr.
8105 (find_and_open_source, symtab_to_fullname): Update.
8106 * psymtab.c (psymtab_to_fullname): Update.
8107
14278e1f
TT
81082017-08-22 Tom Tromey <tom@tromey.com>
8109
8110 * exec.c (exec_file_attach): Update.
8111 * linux-thread-db.c (try_thread_db_load): Update.
8112 * guile/scm-safe-call.c (gdbscm_safe_source_script): Update.
8113 * utils.c (gdb_realpath): Change return type.
8114 (gdb_realpath_keepfile): Update.
8115 (gdb_realpath_check_trailer, gdb_realpath_tests): New functions.
8116 (_initialize_utils): Register the new self test.
8117 * source.c (openp): Update.
8118 (find_and_open_source): Update.
8119 * nto-tdep.c (nto_find_and_open_solib): Update.
8120 * main.c (set_gdb_data_directory): Update.
8121 (captured_main_1): Update.
8122 * dwarf2read.c (dwarf2_get_dwz_file): Update
8123 (dw2_map_symbol_filenames): Update.
8124 * auto-load.c (auto_load_safe_path_vec_update): Update.
8125 (filename_is_in_auto_load_safe_path_vec): Change type of
8126 "filename_realp".
8127 (auto_load_objfile_script): Update.
8128 (file_is_auto_load_safe): Update. Use std::string.
8129 * utils.h (gdb_realpath): Return a gdb::unique_xmalloc_ptr.
8130
4971c9a7
TT
81312017-08-22 Tom Tromey <tom@tromey.com>
8132
8133 * utils.c (gdb_realpath_keepfile): Return a
8134 gdb::unique_xmalloc_ptr.
8135 * exec.c (exec_file_attach): Update.
8136 * utils.h (gdb_realpath_keepfile): Return a
8137 gdb::unique_xmalloc_ptr.
8138
e3e41d58
TT
81392017-08-22 Tom Tromey <tom@tromey.com>
8140
8141 * compile/compile.c (compile_file_command): Use
8142 gdb::unique_xmalloc_ptr, std::string.
8143 * utils.c (gdb_abspath): Change return type.
8144 * source.c (openp): Update.
8145 * objfiles.c (allocate_objfile): Update.
8146 * main.c (set_gdb_data_directory): Update.
8147 * utils.h (gdb_abspath): Return a gdb::unique_xmalloc_ptr.
8148
0d999a6e
ZZ
81492017-08-22 Zhouyi Zhou <zhouzhouyi@gmail.com>
8150
8151 * cli-cmds.c (list_commands): List actual code around more than
8152 one location.
8153
329d5e7e
JB
81542017-08-21 John Baldwin <jhb@FreeBSD.org>
8155
8156 * fbsd-nat.c (fbsd_add_threads): Use array type for `lwps'.
8157
bf223d3e
PA
81582017-08-21 Pedro Alves <palves@redhat.com>
8159
8160 PR gdb/19487
8161 * c-exp.y (variable production): Handle function aliases.
8162 * minsyms.c (msymbol_is_text): New function.
8163 * minsyms.h (msymbol_is_text): Declare.
8164 * symtab.c (find_function_alias_target): New function.
8165 * symtab.h (find_function_alias_target): Declare.
8166
c973d0aa
PA
81672017-08-21 Pedro Alves <palves@redhat.com>
8168
8169 * eval.c (evaluate_subexp_standard) <OP_TYPE>: Don't dig past
8170 typedefs.
8171 * typeprint.c (whatis_exp): If handling "whatis", and expression
8172 is OP_TYPE, strip one typedef level. Otherwise don't strip
8173 typedefs here.
8174 * valops.c (value_cast): Save "to" type before resolving
8175 stubs/typedefs. Use that type as resulting value's type.
8176
2989a365
TT
81772017-08-18 Tom Tromey <tom@tromey.com>
8178 Pedro Alves <palves@redhat.com>
8179
8180 * spu-multiarch.c (parse_spufs_run): Use scoped_restore.
8181 * sol-thread.c (sol_thread_resume, sol_thread_wait)
8182 (sol_thread_xfer_partial, rw_common): Use scoped_restore.
8183 * procfs.c (procfs_do_thread_registers): Use scoped_restore.
8184 * proc-service.c (ps_xfer_memory): Use scoped_restore.
8185 * linux-tdep.c (linux_corefile_thread): Remove a cleanup.
8186 (linux_get_siginfo_data): Add "thread" argument. Use
8187 scoped_restore.
8188 * linux-nat.c (linux_child_follow_fork)
8189 (check_stopped_by_watchpoint): Use scoped_restore.
8190 * infrun.c (displaced_step_prepare_throw, write_memory_ptid)
8191 (THREAD_STOPPED_BY, handle_signal_stop): Use scoped_restore.
8192 (restore_inferior_ptid, save_inferior_ptid): Remove.
8193 * btrace.c (btrace_fetch): Use scoped_restore.
8194 * bsd-uthread.c (bsd_uthread_fetch_registers)
8195 (bsd_uthread_store_registers): Use scoped_restore.
8196 * breakpoint.c (reattach_breakpoints, detach_breakpoints): Use
8197 scoped_restore.
8198 * aix-thread.c (aix_thread_resume, aix_thread_wait)
8199 (aix_thread_xfer_partial): Use scoped_restore.
8200 * inferior.h (save_inferior_ptid): Remove.
8201
e60eb288
YQ
82022017-08-18 Yao Qi <yao.qi@linaro.org>
8203
8204 PR tdep/21818
8205 * arm-tdep.c (gdb_print_insn_arm): Mark
8206 USER_SPECIFIED_MACHINE_TYPE if exec_bfd isn't NULL.
8207
6d580b63
YQ
82082017-08-18 Yao Qi <yao.qi@linaro.org>
8209
8210 * NEWS: Mention GDBserver's new option "--selftest".
8211 * Makefile.in (SFILES): Remove selftest.c, add common/selftest.c.
8212 * selftest.c: Move it to common/selftest.c.
8213 * selftest.h: Move it to common/selftest.h.
8214 * selftest-arch.c (reset): New function.
8215 (tests_with_arch): Call reset.
8216
86dcbf50
YQ
82172017-08-18 Yao Qi <yao.qi@linaro.org>
8218
8219 * selftest.c (run_tests): Don't call QUIT. Call debug_printf
8220 instead of exception_fprintf and printf_filtered.
8221
7649770c
YQ
82222017-08-18 Yao Qi <yao.qi@linaro.org>
8223
8224 * selftest.c (register_self_test): Rename it to
8225 selftests::register_test.
8226 (run_self_tests): selftest::run_tests.
8227 * selftest.h: Update declarations.
8228 * selftest-arch.c (register_self_test_foreach_arch): Rename it to
8229 selftests::register_test_foreach_arch.
8230 * selftest-arch.h: Update declaration.
8231 * aarch64-tdep.c: Update.
8232 * arm-tdep.c: Likewise.
8233 * disasm-selftests.c: Likewise.
8234 * dwarf2loc.c: Likewise.
8235 * dwarf2-frame.c: Likewise.
8236 * findvar.c: Likewise.
8237 * gdbarch-selftests.c: Likewise.
8238 * maint.c (maintenance_selftest): Likewise.
8239 * regcache.c: Likewise.
8240 * rust-exp.y: Likewise.
8241 * selftest-arch.c: Likewise.
8242 * unittests/environ-selftests.c: Likewise.
8243 * unittests/function-view-selftests.c: Likewise.
8244 * unittests/offset-type-selftests.c: Likewise.
8245 * unittests/optional-selftests.c: Likewise.
8246 * unittests/scoped_restore-selftests.c: Likewise.
8247 * utils-selftests.c: Likewise.
8248
b0cba12e
PA
82492017-08-17 Pedro Alves <palves@redhat.com>
8250
8251 * cli/cli-cmds.c (source_command): Delete 'old_source_verbose'
8252 local.
8253
4c8aa72d
PA
82542017-08-17 Pedro Alves <palves@redhat.com>
8255
8256 * dwarf2read.c (struct dwarf2_cu) <line_header_die_owner>: New
8257 field.
8258 (reset_die_in_process): Delete, replaced by ...
8259 (process_die_scope): ... this new class. Make it responsible for
8260 freeing cu->line_header too.
8261 (process_die): Use process_die_scope.
8262 (handle_DW_AT_stmt_list): Record the line header's owner CU/DIE in
8263 cu->line_header_die_owner. Don't release the line header if it's
8264 owned by the CU.
8265 (setup_type_unit_groups): Make the CU/DIE own the line header.
8266 Don't release the line header here.
8267
ba713918
AL
82682017-08-17 Alex Lindsay <alexlindsay239@gmail.com> (tiny change)
8269
8270 * elfread.c (elf_read_minimal_symbols): xfree synthsyms.
8271
44d0fb3a
RK
82722017-08-17 Ruslan Kabatsayev <b7.10110111@gmail.com>
8273
8274 * NEWS: Mention new shortcuts for nexti and stepi in TUI
8275 Single-Key mode
8276
a5afdb16
RK
82772017-08-16 Ruslan Kabatsayev <b7.10110111@gmail.com>
8278
8279 * tui/tui.c (tui_commands): Add "nexti" and "stepi" to the Single-Key
8280 mode command list.
8281
47613aeb
SH
82822017-08-15 Stafford Horne <shorne@gmail.com>
8283
8284 * MAINTAINERS (Write After Approval): Add Stafford Horne.
8285
9c3cc999
SH
82862017-08-15 Stafford Horne <shorne@gmail.com>
8287
8288 * xtensa-tdep.c (xtensa_init_reggroups): Use xstrdup for cpname.
8289
206726fb
SDJ
82902017-08-15 Sergio Durigan Junior <sergiodj@redhat.com>
8291
8292 PR gdb/21954
8293 * infcmd.c (unset_environment_command): Use the 'clear' method on
8294 the environment instead of resetting it.
8295
0335ac6d
JB
82962017-08-15 John Baldwin <jhb@FreeBSD.org>
8297
8298 * fbsd-nat.c (fbsd_convert_siginfo): Fix compile on big-endian
8299 platforms.
8300
d3abe1c8
TT
83012017-08-14 Tom Tromey <tom@tromey.com>
8302
8303 * valprint.c (print_octal_chars): Use HOST_CHAR_BIT.
8304 (print_binary_chars): Likewise.
8305 (BITS_IN_BYTES): Remove.
8306
d6382fff
TT
83072017-08-14 Tom Tromey <tom@tromey.com>
8308
8309 PR gdb/21675
8310 * valprint.c (LOW_ZERO): Change value to 034.
8311 (print_octal_chars): Add static_asserts for octal constants.
8312 * printcmd.c (print_scalar_formatted): Add 'd' case.
8313
f978cb06
TT
83142017-08-11 Tom Tromey <tom@tromey.com>
8315
8316 * symfile.c (add_symbol_file_command): Use std::vector.
8317
2f5404b3
TT
83182017-08-14 Tom Tromey <tom@tromey.com>
8319
8320 * break-catch-throw.c (handle_gnu_v3_exceptions): Use std::move.
8321 * break-catch-syscall.c (create_syscall_event_catchpoint): Use
8322 std::move.
8323 * break-catch-sig.c (create_signal_catchpoint): Use std::move.
8324
de7985c3
PA
83252017-08-11 Pedro Alves <palves@redhat.com>
8326
8327 * infrun.c (process_event_stop_test): Adjust
8328 function_name_is_marked_for_skip call.
8329 * skip.c: Include <list>.
8330 (skiplist_entry): Make it a class with private fields, and
8331 getters/setters.
8332 (skiplist_entry_chain): Delete.
8333 (skiplist_entries): New.
8334 (skiplist_entry_count): Delete.
8335 (highest_skiplist_entry_num): New.
8336 (ALL_SKIPLIST_ENTRIES, ALL_SKIPLIST_ENTRIES_SAFE): Delete.
8337 (add_skiplist_entry): Delete.
8338 (skiplist_entry::skiplist_entry): New.
8339 (skiplist_entry::add_entry): New.
8340 (skip_file_command, skip_function): Adjust.
8341 (compile_skip_regexp): Delete.
8342 (skip_command): Don't compile regexp here. Adjust to use
8343 skiplist_entry::add_entry.
8344 (skip_info): Adjust to use range-for and getters.
8345 (skip_enable_command, skip_disable_command): Adjust to use
8346 range-for and setters.
8347 (skip_delete_command): Adjust to use std::list.
8348 (add_skiplist_entry): Delete.
8349 (skip_file_p): Delete, refactored as ...
8350 (skiplist_entry::do_skip_file_p): ... this new method.
8351 (skip_gfile_p): Delete, refactored as ...
8352 (skiplist_entry::do_gskip_file_p): ... this new method.
8353 (skip_function_p, skip_rfunction_p): Delete, refactored as ...
8354 (skiplist_entry::skip_function_p): ... this new method.
8355 (function_name_is_marked_for_skip): Now returns bool, and takes
8356 the function sal by const reference. Adjust to use range-for and
8357 skiplist_entry methods.
8358 (_initialize_step_skip): Remove references to
8359 skiplist_entry_chain, skiplist_entry_count.
8360 * skip.h (function_name_is_marked_for_skip): Now returns bool, and
8361 takes the function sal by const reference.
8362
be7d3cd5
YQ
83632017-08-11 Yao Qi <yao.qi@linaro.org>
8364
8365 * dwarf2-frame.c (clear_pointer_cleanup): Remove.
8366 (dwarf2_frame_cache): Remove reset_cache_cleanup.
8367 (dwarf2_frame_cache):
8368 * frame-unwind.c (frame_unwind_try_unwinder): Catch
8369 RETURN_MASK_ALL and set *this_case to NULL.
8370 * frame-unwind.h: Update comments.
8371
1c90d9f0
YQ
83722017-08-11 Yao Qi <yao.qi@linaro.org>
8373
8374 * dwarf2-frame.c (dwarf2_frame_state_alloc_regs): Remove.
8375 (dwarf2_frame_state_copy_regs): Remove.
8376 (dwarf2_frame_state_free_regs): Remove.
8377 (dwarf2_frame_state::~dwarf2_frame_state): Remove.
8378 (dwarf2_restore_rule): Call method .alloc_regs instead of
8379 dwarf2_frame_state_alloc_regs.
8380 (execute_cfa_program): Likewise. Call dwarf2_frame_state_reg_info
8381 constructor. Call std::move.
8382 (dwarf2_fetch_cfa_info): Don't call dwarf2_frame_state_copy_regs.
8383 (dwarf2_frame_cache): Likewise.
8384
8385 [GDB_SELF_TEST]: Include selftest.h and
8386 selftest-arch.h.
8387 [GDB_SELF_TEST] (execute_cfa_program_test): New function.
8388 (_initialize_dwarf2_frame) [GDB_SELF_TEST]: Register
8389 execute_cfa_program_test.
8390
8391 * dwarf2-frame.h (dwarf2_frame_state_reg_info): Add ctor, dtor,
8392 copy ctor, assignment operator, move assignment.
8393 <alloc_regs>: New method.
8394 <swap>: New method.
8395 (struct dwarf2_frame_state): Delete dtor.
8396 (dwarf2_frame_state_alloc_regs): Remove declaration.
8397 * sparc-tdep.c (sparc_execute_dwarf_cfa_vendor_op): Don't call
8398 dwarf2_frame_state_alloc_regs, use .alloc_regs instead.
8399
afe37d6b
YQ
84002017-08-11 Yao Qi <yao.qi@linaro.org>
8401
8402 * dwarf2-frame.c (dwarf2_frame_state_free): Remove.
8403 (dwarf2_frame_state::dwarf2_frame_state): New.
8404 (dwarf2_frame_state::~dwarf2_frame_state): New.
8405 (dwarf2_fetch_cfa_info): Update.
8406 (dwarf2_frame_cache): Remove old_chain. Change 'fs' to an object
8407 rather than a pointer. Update code.
8408 * dwarf2-frame.h (struct dwarf2_frame_state): Declare ctor and
8409 dtor.
8410 <data_align, code_align, retaddr_column>: Change them to const.
8411 <armcc_cfa_offsets_sf, armcc_cfa_offsets_reversed>: Change them
8412 to bool.
8413
b348037f
YQ
84142017-08-11 Yao Qi <yao.qi@linaro.org>
8415
8416 * dwarf2-frame.h (struct dwarf2_frame_state_reg) <exp_len>: Remove.
8417 <loc.exp>: New field.
8418 * dwarf2-frame.c (execute_cfa_program): Update.
8419 (dwarf2_frame_prev_register): Update.
8420
e7c9de26
PA
84212017-08-10 Pedro Alves <palves@redhat.com>
8422
8423 * common/gdb_unique_ptr.h (xfree_deleter<T[]>): Define.
8424
e8c6b620
JB
84252017-08-09 John Baldwin <jhb@FreeBSD.org>
8426
8427 * fbsd-nat.c (struct fbsd_fork_info): Remove.
8428 (fbsd_pending_children): Use std::list.
8429 (fbsd_remember_child): Likewise.
8430 (fbsd_is_child_pending): Likewise.
8431 (fbsd_pending_vfork_done): Use std::forward_list.
8432 (fbsd_add_vfork_done): Likewise.
8433 (fbsd_is_vfork_done_pending): Likewise.
8434 (fbsd_next_vfork_done): Likewise.
8435
e4a26669
JB
84362017-08-09 John Baldwin <jhb@FreeBSD.org>
8437
8438 * fbsd-nat.c [HAVE_KINFO_GETVMMAP] (struct free_deleter): New.
8439 (fbsd_find_memory_regions): Use free_deleter with std::unique_ptr.
8440 [!HAVE_KINFO_GETVMMAP] (fbsd_find_memory_regions): Use std::string
8441 for `mapfilename'.
8442 (fbsd_xfer_partial): Use gdb::byte_vector.
af3881e6 8443 (fbsd_add_threads): Use gdb::unique_xmalloc_ptr.
e4a26669 8444
142311d3
JB
84452017-08-09 John Baldwin <jhb@FreeBSD.org>
8446
8447 * fbsd-nat.c: [!HAVE_KINFO_GETVMMAP]: Include <sys/user.h> and
8448 "filestuff.h".
8449 (fbsd_find_memory_regions): Fix `mapfile' initialization.
8450
42fa2e0e
TT
84512017-08-09 Tom Tromey <tom@tromey.com>
8452
8453 * skip.c (skiplist_entry): New constructor.
8454 (skiplist_entry::enabled, skiplist_entry::function_is_regexp)
8455 (skiplist_entry::file_is_glob): Now bool.
8456 (skiplist_entry::file, skiplist_entry::function): Now
8457 std::string.
8458 (make_skip_entry): Return a unique_ptr. Use new.
8459 (free_skiplist_entry, free_skiplist_entry_cleanup)
8460 (make_free_skiplist_entry_cleanup): Remove.
8461 (skip_command, skip_disable_command, add_skiplist_entry)
8462 (skip_form_bytes, compile_skip_regexp, skip_command, skip_info)
8463 (skip_file_p, skip_gfile_p, skip_function_p, skip_rfunction_p)
8464 (function_name_is_marked_for_skip): Update.
8465 (skip_delete_command): Update. Use delete.
8466
cd3af38d
JW
84672017-08-09 Jiong Wang <jiong.wang@arm.com>
8468
8469 * aarch64-linux-tdep.c: Include "auxv.h" and "elf/common.h".
8470 (aarch64_linux_core_read_description): New function.
8471 (aarch64_linux_init_abi): Register gdbarch_core_read_description.
8472
29592bde
PA
84732017-08-09 Pedro Alves <palves@redhat.com>
8474
8475 * cp-name-parser.y (cp_comp_to_string): Return a
8476 gdb::unique_xmalloc_ptr<char>.
8477 * cp-support.c (replace_typedefs_qualified_name)
8478 (replace_typedefs): Adjust to use gdb::unique_xmalloc_ptr<char>.
8479 (cp_canonicalize_string_full): Use op= instead of explicit
8480 convertion.
8481 (cp_class_name_from_physname, method_name_from_physname)
8482 (cp_func_name, cp_remove_params): Adjust to use
8483 gdb::unique_xmalloc_ptr<char>.
8484 * cp-support.h (cp_comp_to_string): Return a
8485 gdb::unique_xmalloc_ptr<char>.
8486 * python/py-type.c (typy_lookup_type): Adjust to use
8487 gdb::unique_xmalloc_ptr<char>.
8488
b3340438
L
84892017-08-09 H.J. Lu <hongjiu.lu@intel.com>
8490
8491 * dwarf2read.c (dwarf2_string_attr): Fix a typo.
8492
e88e8651
YQ
84932017-08-09 Alex Lindsay <alexlindsay239@gmail.com>
8494 Yao Qi <yao.qi@linaro.org>
8495
8496 * cp-support.c (cp_canonicalize_string_full): Use
8497 gdb::unique_xmalloc_ptr<char>.
8498 (cp_canonicalize_string): Likewise.
8499
f5a29eb0
YQ
85002017-08-09 Yao Qi <yao.qi@linaro.org>
8501
8502 * features/Makefile (WHICH): Remove i386/ non-linux stuff.
8503 * regformats/i386/amd64-avx-avx512.dat: Remove.
8504 * regformats/i386/amd64-avx-mpx-avx512-pku.dat: Remove.
8505 * regformats/i386/amd64-avx-mpx.dat:Remove.
8506 * regformats/i386/amd64-avx.dat: Remove.
8507 * regformats/i386/amd64-mpx.dat: Remove.
8508 * regformats/i386/i386-avx-avx512.dat: Remove.
8509 * regformats/i386/i386-avx-mpx-avx512-pku.dat: Remove.
8510 * regformats/i386/i386-avx-mpx.dat: Remove.
8511 * regformats/i386/i386-mmx.dat: Remove.
8512 * regformats/i386/i386-mpx.dat: Remove.
8513
57757c2f
YQ
85142017-08-09 Yao Qi <yao.qi@linaro.org>
8515
8516 * amd64-tdep.h (tdesc_x32): Remove the declaration.
8517 * amd64-tdep.c: Don't include features/i386/x32*.c.
8518 (_initialize_amd64_tdep): Don't call initialize_tdesc_x32*
8519 functions.
8520 * features/Makefile (WHICH): Remove i386/x32, i386/x32-avx,
8521 and i386/x32-avx-avx512.
8522 (XMLTOC): Remove i386/x32-avx.xml, i386/x32-avx-avx512.xml,
8523 and i386/x32.xml.
8524 * features/i386/x32-avx-avx512.c: Removed.
8525 * features/i386/x32-avx-avx512.xml: Removed.
8526 * features/i386/x32-avx.c: Removed.
8527 * features/i386/x32-avx.xml: Removed.
8528 * features/i386/x32.c: Removed.
8529 * features/i386/x32.xml: Removed.
8530 * regformats/i386/x32-avx-avx512.dat: Removed.
8531 * regformats/i386/x32-avx.dat: Removed.
8532 * regformats/i386/x32.dat: Removed.
8533
ba7b109b
MR
85342017-08-07 Maciej W. Rozycki <macro@imgtec.com>
8535
8536 PR breakpoints/21886
8537 * mem-break.c (default_memory_insert_breakpoint): Use
8538 `->placed_address' rather than `->reqstd_address' for the
8539 breakpoint location.
8540
e347efc3
MR
85412017-08-07 Maciej W. Rozycki <macro@imgtec.com>
8542
8543 * arch-utils.c (default_print_insn): Remove arch/mach/endian
8544 assertions.
8545
0dba2a6c
MR
85462017-08-07 Maciej W. Rozycki <macro@imgtec.com>
8547
8548 * gdbarch.sh (gdbarch_info): Replace the `tdep_info' member with
8549 a union of `tdep_info', `tdesc_data' and `id'.
8550 * aarch64-tdep.c (aarch64_gdbarch_init): Use `info.tdesc_data'
8551 rather than `info.tdep_info'.
8552 * amd64-linux-tdep.c (amd64_linux_init_abi): Likewise.
8553 * i386-linux-tdep.c (i386_linux_init_abi): Likewise.
8554 * i386-tdep.c (i386_gdbarch_init): Likewise.
8555 * mips-linux-tdep.c (mips_linux_init_abi): Likewise.
8556 * mips-tdep.c (mips_gdbarch_init): Likewise.
8557 * nds32-tdep.c (nds32_gdbarch_init): Likewise.
8558 * rs6000-tdep.c (rs6000_gdbarch_init): Likewise.
8559 * ppc-linux-tdep.c (ppu2spu_sniffer): Use `info.id' rather than
8560 `info.tdep_info'.
8561 (ppc_linux_init_abi): Use `info.tdesc_data' rather than
8562 `info.tdep_info'.
8563 * sparc-tdep.c (sparc32_gdbarch_init): Likewise.
8564 * spu-multiarch.c (spu_gdbarch): Use `info.id' rather than
8565 `info.tdep_info'.
8566 * spu-tdep.c (spu_gdbarch_init): Likewise.
8567 * gdbarch.h: Regenerate.
8568
16eb6b2d
LS
85692017-08-07 Leszek Swirski <leszeks@google.com>
8570
7b005726 8571 PR symtab/20899
16eb6b2d
LS
8572 * dwarf2read.c (dwarf2_string_attr): Allow DW_FORM_GNU_strp_alt.
8573
74cbb09e
SM
85742017-08-07 Simon Marchi <simon.marchi@ericsson.com>
8575
8576 * remote-sim.c (gdbsim_load): Remove char **argv local variable.
8577 (gdbsim_open): Rename gdb_argv args object to argv.
8578
ee0c3293
TT
85792017-08-05 Tom Tromey <tom@tromey.com>
8580
8581 * compile/compile-object-load.c (compile_object_load): Use
8582 gdb::unique_xmalloc_ptr.
8583 * cli/cli-dump.c (scan_filename): Rename from
8584 scan_filename_with_cleanup. Change return type.
8585 (scan_expression): Rename from scan_expression_with_cleanup.
8586 Change return type.
8587 (dump_memory_to_file, dump_value_to_file, restore_command):
8588 Use gdb::unique_xmalloc_ptr. Update.
8589 * cli/cli-cmds.c (find_and_open_script): Use
8590 gdb::unique_xmalloc_ptr.
8591 * tracefile-tfile.c (tfile_open): Use gdb::unique_xmalloc_ptr.
8592 * symmisc.c (maintenance_print_symbols)
8593 (maintenance_print_msymbols): Use gdb::unique_xmalloc_ptr.
8594 * symfile.c (symfile_bfd_open, generic_load)
8595 (add_symbol_file_command, remove_symbol_file_command): Use
8596 gdb::unique_xmalloc_ptr.
8597 * source.c (openp): Use gdb::unique_xmalloc_ptr.
8598 * psymtab.c (maintenance_print_psymbols): Use
8599 gdb::unique_xmalloc_ptr.
8600 * corelow.c (core_open): Use gdb::unique_xmalloc_ptr.
8601 * breakpoint.c (save_breakpoints): Use gdb::unique_xmalloc_ptr.
8602 * solib.c (solib_map_sections): Use gdb::unique_xmalloc_ptr.
8603 (reload_shared_libraries_1): Likewise.
8604
3232fabd
TT
86052017-08-05 Tom Tromey <tom@tromey.com>
8606
8607 * rust-exp.y (rust_op_ptr, set_field): Remove typedefs.
8608 (rust_op_vector, rust_set_vector): New typedefs.
8609 (current_parser): New global.
8610 (work_obstack): Change to pointer type. Update all users.
8611 (rust_ast, pstate): Remove globals.
8612 (struct rust_parser): New.
8613 (%union) <params, field_inits>: Change type.
8614 (start, tuple_expr, unit_expr, struct_expr_list, literal)
8615 (field_expr, expr_list, maybe_expr_list, type_list): Update.
8616 (ast_call_ish, ast_path, ast_function_type, ast_tuple_type)
8617 (convert_params_to_types, convert_params_to_expression): Change
8618 type of "params".
8619 (ast_string): Change type of "fields".
8620 (rust_parse): Make a rust_parser. Remove cleanups.
8621 (rust_lex_tests): Make and install an auto_obstack.
8622
f02fd774
YQ
86232017-08-04 Yao Qi <yao.qi@linaro.org>
8624
8625 * configure.srv (ipa_x32_linux_regobj): New.
8626 * linux-amd64-ipa.c (get_ipa_tdesc): Use X86_TDESC_AVX_AVX512
8627 instead of X86_TDESC_AVX512.
8628 (initialize_low_tracepoint): Call
8629 init_registers_x32_avx_avx512_linux.
8630
91975afd
YQ
86312017-08-04 Yao Qi <yao.qi@linaro.org>
8632
8633 * utils.h (gdb_argv): Add namespace std for nullptr_t.
8634
2331fa3a
RK
86352017-08-03 Ruslan Kabatsayev <b7.10110111@gmail.com>
8636
8637 * MAINTAINERS (Write After Approval): Add Ruslan Kabatsayev.
8638
744e4fe1
TT
86392017-08-03 Tom Tromey <tom@tromey.com>
8640
8641 * utils.c (make_cleanup_freeargv, do_freeargv, gdb_buildargv):
8642 Remove.
8643 * utils.h (make_cleanup_freeargv, gdb_buildargv): Remove.
8644
1c034b67
TT
86452017-08-03 Tom Tromey <tom@tromey.com>
8646
8647 * python/py-param.c (compute_enum_values): Use gdb_argv.
8648
773a1edc
TT
86492017-08-03 Tom Tromey <tom@tromey.com>
8650
8651 * utils.h (struct gdb_argv_deleter): New.
8652 (gdb_argv): New class.
8653 * utils.c (gdb_argv::reset): New method.
8654 * tracepoint.c (delete_trace_variable_command): Use gdb_argv.
8655 * tracefile.c (tsave_command): Use gdb_argv.
8656 * top.c (new_ui_command): Use gdb_argv.
8657 * symmisc.c (maintenance_print_symbols)
8658 (maintenance_print_msymbols, maintenance_expand_symtabs): Use gdb_argv.
8659 * symfile.c (symbol_file_command, generic_load)
8660 (remove_symbol_file_command): Use gdb_argv.
8661 * stack.c (backtrace_command): Use gdb_argv.
8662 * source.c (add_path, show_substitute_path_command)
8663 (unset_substitute_path_command, set_substitute_path_command):
8664 Use gdb_argv.
8665 * skip.c (skip_command): Use gdb_argv. Use gdb_buildargv.
8666 * ser-mingw.c (pipe_windows_open): Use gdb_argv.
8667 * remote.c (extended_remote_run, remote_put_command)
8668 (remote_get_command, remote_delete_command): Use gdb_argv.
8669 * remote-sim.c (gdbsim_load, gdbsim_create_inferior)
8670 (gdbsim_open): Use gdb_argv.
8671 * python/py-cmd.c (gdbpy_string_to_argv): Use gdb_argv.
8672 * psymtab.c (maintenance_print_psymbols): Use gdb_argv.
8673 * procfs.c (procfs_info_proc): Use gdb_argv.
8674 * interps.c (interpreter_exec_cmd): Use gdb_argv.
8675 * infrun.c (handle_command): Use gdb_argv.
8676 * inferior.c (add_inferior_command, clone_inferior_command):
8677 Use gdb_argv.
8678 * guile/scm-string.c (gdbscm_string_to_argv): Use gdb_argv.
8679 * exec.c (exec_file_command): Use gdb_argv.
8680 * cli/cli-cmds.c (alias_command): Use gdb_argv.
8681 * compile/compile.c (build_argc_argv): Use gdb_argv.
8682
0d50bde3
TT
86832017-08-03 Tom Tromey <tom@tromey.com>
8684
8685 * python/python.c (gdbpy_decode_line): Use unique_xmalloc_ptr.
8686
7f968c89
TT
86872017-08-03 Tom Tromey <tom@tromey.com>
8688
8689 * python/python.c (compute_python_string): Return std::string.
8690 (gdbpy_eval_from_control_command): Update.
8691 (do_start_initialization): Use std::string.
8692 * python/py-varobj.c (py_varobj_iter_next): Use string_printf, not
8693 xstrprintf.
8694 * python/py-breakpoint.c (local_setattro): Use string_printf, not
8695 xstrprintf.
8696
3c9ebddd
TT
86972017-08-03 Tom Tromey <tom@tromey.com>
8698
8699 * top.h (do_restore_instream_cleanup): Remove.
8700 * top.c (do_restore_instream_cleanup): Remove.
8701 (read_command_file): Use scoped_restore.
8702 * cli/cli-script.c (execute_user_command): Use scoped_restore.
8703
b51b225e
TT
87042017-08-03 Tom Tromey <tom@tromey.com>
8705
8706 * cli/cli-script.c (execute_user_command)
8707 (execute_control_command): Use scoped_restore.
8708
ac991630
TT
87092017-08-03 Tom Tromey <tom@tromey.com>
8710
8711 * cli/cli-script.c (do_restore_user_call_depth): Remove.
8712 (execute_user_command): Remove user_call_depth; use
8713 user_args_stack's size instead.
8714
898e0c8e
TT
87152017-08-03 Tom Tromey <tom@tromey.com>
8716
8717 * top.h (in_user_command): Remove.
8718 * top.c (in_user_command): Remove.
8719 * cli/cli-script.c (do_restore_user_call_depth)
8720 (execute_user_command): Update.
8721
26fcd5d7
TT
87222017-08-03 Tom Tromey <tom@tromey.com>
8723
8724 * valops.c (search_struct_method): Use gdb::byte_vector.
8725 * valarith.c (value_concat): Use std::vector.
8726 * target.c (memory_xfer_partial): Use gdb::byte_vector.
8727 (simple_search_memory): Likewise.
8728 * printcmd.c (find_string_backward): Use gdb::byte_vector.
8729 * mi/mi-main.c (mi_cmd_data_write_memory): Use gdb::byte_vector.
8730 * gcore.c (gcore_copy_callback): Use gdb::byte_vector.
8731 * elfread.c (elf_rel_plt_read): Use std::string.
8732 * cp-valprint.c (cp_print_value): Use gdb::byte_vector.
8733 * cli/cli-dump.c (restore_section_callback): Use
8734 gdb::byte_vector.
8735
7c218e6c
TT
87362017-08-03 Tom Tromey <tom@tromey.com>
8737
8738 * jit.c (jit_reader_load_command): Use unique_xmalloc_ptr.
8739
31b68d4a
TT
87402017-08-03 Tom Tromey <tom@tromey.com>
8741
8742 * tui/tui-regs.c (tui_restore_gdbout): Remove.
8743 (tui_register_format): Use scoped_restore.
8744
2ec845e7
TT
87452017-08-03 Tom Tromey <tom@tromey.com>
8746
8747 * reverse.c (exec_direction_default): Remove.
8748 (exec_reverse_once): Use scoped_restore.
8749 * remote.c (restore_remote_timeout): Remove.
8750 (remote_flash_erase, remote_flash_write, remote_flash_done)
8751 (readchar, remote_serial_write): Use scoped_restore.
8752 * cli/cli-script.c (struct source_cleanup_lines_args)
8753 (source_cleanup_lines): Remove.
8754 (script_from_file): Use scoped_restore.
8755 * cli/cli-cmds.c (source_verbose_cleanup): Remove.
8756 (source_command): Use scoped_restore.
8757
b3bc8453
TT
87582017-08-03 Tom Tromey <tom@tromey.com>
8759
8760 * utils.h (make_cleanup_free_so): Remove.
8761 * utils.c (do_free_so, make_cleanup_free_so): Remove.
8762 * solist.h (struct so_deleter): New.
8763 (so_list_up): New typedef.
8764 * solib-svr4.c (svr4_read_so_list): Use so_list_up.
8765
e3ad2841
TT
87662017-08-03 Tom Tromey <tom@tromey.com>
8767
8768 * utils.h (make_cleanup_restore_current_language): Remove.
8769 * utils.c (do_restore_current_language)
8770 (make_cleanup_restore_current_language): Remove.
8771 * parse.c (parse_exp_in_context_1)
8772 (parse_expression_with_language): Use
8773 scoped_restore_current_language.
8774 * mi/mi-main.c (mi_cmd_execute): Use
8775 scoped_restore_current_language.
8776 * language.h (scoped_restore_current_language): New class.
8777
b80cf838
TT
87782017-08-03 Tom Tromey <tom@tromey.com>
8779
8780 * compile/compile.c (cleanup_unlink_file): Remove.
8781 (compile_to_object): Use gdb::unlinker.
8782 (eval_compile_command): Likewise.
8783
fad0444a
TT
87842017-08-03 Tom Tromey <tom@tromey.com>
8785
8786 * utils.h (make_cleanup_fclose): Remove.
8787 * utils.c (do_fclose_cleanup, make_cleanup_fclose): Remove.
8788
6e7bc05c
TT
87892017-08-03 Tom Tromey <tom@tromey.com>
8790
8791 * top.c (open_terminal_stream): Return gdb_file_up.
8792 (new_ui_command): Update.
8793
4a45905b
TT
87942017-08-03 Tom Tromey <tom@tromey.com>
8795
8796 * source.c (print_source_lines_base, forward_search_command)
8797 (reverse_search_command): Use gdb_file_up.
8798
7cd06d6e
TT
87992017-08-03 Tom Tromey <tom@tromey.com>
8800
8801 * fbsd-nat.c (fbsd_find_memory_regions): Update.
8802
ed166945
TT
88032017-08-03 Tom Tromey <tom@tromey.com>
8804
8805 * cli/cli-cmds.c (find_and_open_script): Change return type.
8806 Remove "streamp" and "full_path" parameters.
8807 (source_script_with_search): Update.
8808 * auto-load.c (source_script_file): Update.
8809 * cli/cli-cmds.h (find_and_open_script): Change type.
8810 (open_script): New struct.
8811
d419f42d
TT
88122017-08-03 Tom Tromey <tom@tromey.com>
8813
8814 * xml-support.c (xml_fetch_content_from_file): Update.
8815 * ui-file.c (stdio_file::open): Update.
8816 * tracefile-tfile.c (tfile_start): Update.
8817 * remote.c (remote_file_put, remote_file_get): Update.
8818 * nat/linux-procfs.c (linux_proc_get_int)
8819 (linux_proc_pid_get_state, linux_proc_tid_get_name): Update.
8820 * nat/linux-osdata.c (linux_common_core_of_thread): Update.
8821 (command_from_pid, commandline_from_pid, linux_xfer_osdata_cpus)
8822 (print_sockets, linux_xfer_osdata_shm, linux_xfer_osdata_sem)
8823 (linux_xfer_osdata_msg, linux_xfer_osdata_modules): Update.
8824 * nat/linux-btrace.c (linux_determine_kernel_start): Update.
8825 * linux-nat.c (linux_proc_pending_signals): Update.
8826 * dwarf2read.c (write_psymtabs_to_index): Use gdb_file_up.
8827 (file_closer): Remove.
8828 * compile/compile.c (compile_to_object): Update.
8829 * common/filestuff.h (struct gdb_file_deleter): New.
8830 (gdb_file_up): New typedef.
8831 (gdb_fopen_cloexec): Change return type.
8832 * common/filestuff.c (gdb_fopen_cloexec): Return gdb_file_up.
8833 * cli/cli-dump.c (fopen_with_cleanup): Remove.
8834 (dump_binary_file, restore_binary_file): Update.
8835 * auto-load.c (auto_load_objfile_script_1): Update.
8836
4a2b031d
TT
88372017-08-03 Tom Tromey <tom@tromey.com>
8838
8839 * tracepoint.c (tvariables_info_1): Use ui_out_emit_table.
8840 (info_static_tracepoint_markers_command): Likewise.
8841 * solib.c (info_sharedlibrary_command): Use ui_out_emit_table.
8842 * skip.c (skip_info): Use ui_out_emit_table.
8843 * progspace.c (print_program_space): Use ui_out_emit_table.
8844 * osdata.c (info_osdata): Use ui_out_emit_table.
8845 * mi/mi-cmd-info.c (mi_cmd_info_ada_exceptions): Use
8846 ui_out_emit_table.
8847 * linux-thread-db.c (info_auto_load_libthread_db): Use
8848 ui_out_emit_table.
8849 * inferior.c (print_inferior): Use ui_out_emit_table.
8850 * gdb_bfd.c (maintenance_info_bfds): Use ui_out_emit_table.
8851 * breakpoint.c (breakpoint_1): Use ui_out_emit_table.
8852 * auto-load.c (auto_load_info_scripts): Use ui_out_emit_table.
8853 * ada-tasks.c (print_ada_task_info): Use ui_out_emit_table.
8854 * ui-out.h (class ui_out_emit_table): New.
8855
a4f320fd
MR
88562017-08-02 Maciej W. Rozycki <macro@imgtec.com>
8857
8858 * mips-tdep.c (mips_fpu_type_str): New function.
8859 (mips_dump_tdep): Call it.
8860
a2f1f308
MR
88612017-08-01 Maciej W. Rozycki <macro@imgtec.com>
8862
8863 * mips-tdep.c (mips_gdbarch_init): Use MIPS_FPU_TYPE to access
8864 `->mips_fpu_type'.
8865
7e5ed83b
XR
88662017-07-31 Xavier Roirand <roirand@adacore.com>
8867
8868 * solib-darwin.c (DYLD_VERSION_MAX): Increase value.
8869
4c9dc811
XR
88702017-07-27 Xavier Roirand <roirand@adacore.com>
8871
8872 * MAINTAINERS (Write After Approval): Add Xavier Roirand.
8873
27d41eac
YQ
88742017-07-26 Yao Qi <yao.qi@linaro.org>
8875
8876 * cli/cli-cmds.c (maintenancechecklist): New variable.
8877 * gdbcmd.h (maintenancechecklist): Declare it.
8878 * i386-linux-tdep.c (_initialize_i386_linux_tdep) [GDB_SELF_TEST]:
8879 Call i386_linux_read_description with different masks.
8880 * maint.c (maintenance_check_command): New function.
8881 (_initialize_maint_cmds): Call add_prefix_cmd.
8882 * target-descriptions.c (tdesc_reg): override operator != and ==.
8883 (tdesc_type): Likewise.
8884 (tdesc_feature): Likewise.
8885 (target_desc): Likewise.
8886 [GDB_SELF_TEST] (selftests::record_xml_tdesc): New function.
8887 (maintenance_check_xml_descriptions): New function.
8888 (_initialize_target_descriptions) Add command "xml-descriptions".
8889 * target-descriptions.h (selftests::record_xml_tdesc): Declare.
8890
ea03d0d3
YQ
88912017-07-26 Yao Qi <yao.qi@linaro.org>
8892
8893 * i386-linux-tdep.c: Don't include features/i386/i386-*linux.c.
8894 Include features/i386/32bit-*.c.
8895 (i386_linux_read_description): Generate target description if it
8896 doesn't exist.
8897 (_initialize_i386_linux_tdep): Don't call _initialize_tdesc_i386
8898 functions.
8899 * features/i386/32bit-linux.c: Re-generated.
8900 * features/i386/32bit-sse.c: Likewise.
8901 * target-descriptions.c (print_c_feature::visit): Print code to
8902 set register number if needed.
8903 (print_c_feature) <m_next_regnum>: New field.
8904
25aa13e5
YQ
89052017-07-26 Yao Qi <yao.qi@linaro.org>
8906
8907 * features/Makefile (CFILES): Rename with TDESC_CFILES.
8908 (FEATURE_XMLFILES): New.
8909 (FEATURE_CFILES): New.
8910 New rules.
8911 (clean-cfiles): Remove generated c files.
8912 * features/i386/32bit-avx.c: Generated.
8913 * features/i386/32bit-avx512.c: Generated.
8914 * features/i386/32bit-core.c: Generated.
8915 * features/i386/32bit-linux.c: Generated.
8916 * features/i386/32bit-mpx.c: Generated.
8917 * features/i386/32bit-pkeys.c: Generated.
8918 * features/i386/32bit-sse.c: Generated.
8919 * target-descriptions.c: Include algorithm.
8920 (tdesc_element_visitor): Add method visit_end.
8921 (print_c_tdesc): Implement visit_end.
8922 (print_c_tdesc:: m_filename_after_features): Move it to
8923 protected.
8924 (print_c_feature): New class.
8925 (maint_print_c_tdesc_cmd): Use print_c_feature if XML file
8926 name starts with "i386/32bit-".
8927
6eb1e6a8
YQ
89282017-07-26 Yao Qi <yao.qi@linaro.org>
8929
8930 * target-descriptions.c (tdesc_element_visitor): New class.
8931 (tdesc_element): New class.
8932 (tdesc_reg): Inherit from tdesc_element.
8933 (tdesc_reg::accept): New function.
8934 (tdesc_type): Inherit from tdesc_element.
8935 (tdesc_type::accept): New function.
8936 (tdesc_feature): Inherit from tdesc_element.
8937 (tdesc_feature::accept): New function.
8938 (target_desc): Inherit from tdesc_element.
8939 (target_desc::target_desc): New.
8940 (target_desc::~target_desc): New.
8941 (target_desc::accept): New.
8942 (allocate_target_description): Use new.
8943 (free_target_description): Use delete.
8944 (print_c_tdesc): New class.
8945 (maint_print_c_tdesc_cmd): Adjust.
8946
8947 * features/aarch64.c: Re-generated.
8948 * features/arc-arcompact.c: Re-generated.
8949 * features/arc-v2.c: Re-generated.
8950 * features/arm/arm-with-iwmmxt.c: Re-generated.
8951 * features/arm/arm-with-m.c: Re-generated.
8952 * features/arm/arm-with-m-fpa-layout.c: Re-generated.
8953 * features/arm/arm-with-m-vfp-d16.c: Re-generated.
8954 * features/arm/arm-with-neon.c: Re-generated.
8955 * features/arm/arm-with-vfpv2.c: Re-generated.
8956 * features/arm/arm-with-vfpv3.c: Re-generated.
8957 * features/i386/amd64-avx-avx512.c: Re-generated.
8958 * features/i386/amd64-avx-avx512-linux.c: Re-generated.
8959 * features/i386/amd64-avx.c: Re-generated.
8960 * features/i386/amd64-avx-linux.c: Re-generated.
8961 * features/i386/amd64-avx-mpx-avx512-pku.c: Re-generated.
8962 * features/i386/amd64-avx-mpx-avx512-pku-linux.c: Re-generated.
8963 * features/i386/amd64-avx-mpx.c: Re-generated.
8964 * features/i386/amd64-avx-mpx-linux.c: Re-generated.
8965 * features/i386/amd64.c: Re-generated.
8966 * features/i386/amd64-linux.c: Re-generated.
8967 * features/i386/amd64-mpx.c: Re-generated.
8968 * features/i386/amd64-mpx-linux.c: Re-generated.
8969 * features/i386/i386-avx-avx512.c: Re-generated.
8970 * features/i386/i386-avx-avx512-linux.c: Re-generated.
8971 * features/i386/i386-avx.c: Re-generated.
8972 * features/i386/i386-avx-linux.c: Re-generated.
8973 * features/i386/i386-avx-mpx-avx512-pku.c: Re-generated.
8974 * features/i386/i386-avx-mpx-avx512-pku-linux.c: Re-generated.
8975 * features/i386/i386-avx-mpx.c: Re-generated.
8976 * features/i386/i386-avx-mpx-linux.c: Re-generated.
8977 * features/i386/i386.c: Re-generated.
8978 * features/i386/i386-linux.c: Re-generated.
8979 * features/i386/i386-mmx.c: Re-generated.
8980 * features/i386/i386-mmx-linux.c: Re-generated.
8981 * features/i386/i386-mpx.c: Re-generated.
8982 * features/i386/i386-mpx-linux.c: Re-generated.
8983 * features/i386/x32-avx-avx512.c: Re-generated.
8984 * features/i386/x32-avx-avx512-linux.c: Re-generated.
8985 * features/i386/x32-avx.c: Re-generated.
8986 * features/i386/x32-avx-linux.c: Re-generated.
8987 * features/i386/x32.c: Re-generated.
8988 * features/i386/x32-linux.c: Re-generated.
8989 * features/microblaze.c: Re-generated.
8990 * features/microblaze-with-stack-protect.c: Re-generated.
8991 * features/mips64-dsp-linux.c: Re-generated.
8992 * features/mips64-linux.c: Re-generated.
8993 * features/mips-dsp-linux.c: Re-generated.
8994 * features/mips-linux.c: Re-generated.
8995 * features/nds32.c: Re-generated.
8996 * features/nios2.c: Re-generated.
8997 * features/nios2-linux.c: Re-generated.
8998 * features/rs6000/powerpc-32.c: Re-generated.
8999 * features/rs6000/powerpc-32l.c: Re-generated.
9000 * features/rs6000/powerpc-403.c: Re-generated.
9001 * features/rs6000/powerpc-403gc.c : Re-generated.
9002 * features/rs6000/powerpc-405.c: Re-generated.
9003 * features/rs6000/powerpc-505.c: Re-generated.
9004 * features/rs6000/powerpc-601.c: Re-generated.
9005 * features/rs6000/powerpc-602.c: Re-generated.
9006 * features/rs6000/powerpc-603.c: Re-generated.
9007 * features/rs6000/powerpc-604.c: Re-generated.
9008 * features/rs6000/powerpc-64.c: Re-generated.
9009 * features/rs6000/powerpc-64l.c: Re-generated.
9010 * features/rs6000/powerpc-7400.c: Re-generated.
9011 * features/rs6000/powerpc-750.c: Re-generated.
9012 * features/rs6000/powerpc-860.c: Re-generated.
9013 * features/rs6000/powerpc-altivec32.c: Re-generated.
9014 * features/rs6000/powerpc-altivec32l.c: Re-generated.
9015 * features/rs6000/powerpc-altivec64.c: Re-generated.
9016 * features/rs6000/powerpc-altivec64l.c: Re-generated.
9017 * features/rs6000/powerpc-cell32l.c: Re-generated.
9018 * features/rs6000/powerpc-cell64l.c: Re-generated.
9019 * features/rs6000/powerpc-e500.c: Re-generated.
9020 * features/rs6000/powerpc-e500l.c: Re-generated.
9021 * features/rs6000/powerpc-isa205-32l.c: Re-generated.
9022 * features/rs6000/powerpc-isa205-64l.c: Re-generated.
9023 * features/rs6000/powerpc-isa205-altivec32l.c: Re-generated.
9024 * features/rs6000/powerpc-isa205-altivec64l.c: Re-generated.
9025 * features/rs6000/powerpc-isa205-vsx32l.c: Re-generated.
9026 * features/rs6000/powerpc-isa205-vsx64l.c: Re-generated.
9027 * features/rs6000/powerpc-vsx32.c: Re-generated.
9028 * features/rs6000/powerpc-vsx32l.c: Re-generated.
9029 * features/rs6000/powerpc-vsx64.c: Re-generated.
9030 * features/rs6000/powerpc-vsx64l.c: Re-generated.
9031 * features/rs6000/rs6000.c: Re-generated.
9032 * features/s390-linux32.c: Re-generated.
9033 * features/s390-linux32v1.c: Re-generated.
9034 * features/s390-linux32v2.c: Re-generated.
9035 * features/s390-linux64.c: Re-generated.
9036 * features/s390-linux64v1.c: Re-generated.
9037 * features/s390-linux64v2.c: Re-generated.
9038 * features/s390-te-linux64.c: Re-generated.
9039 * features/s390-tevx-linux64.c: Re-generated.
9040 * features/s390-vx-linux64.c: Re-generated.
9041 * features/s390x-linux64.c: Re-generated.
9042 * features/s390x-linux64v1.c: Re-generated.
9043 * features/s390x-linux64v2.c: Re-generated.
9044 * features/s390x-te-linux64.c: Re-generated.
9045 * features/s390x-tevx-linux64.c: Re-generated.
9046 * features/s390x-vx-linux64.c: Re-generated.
9047 * features/sparc/sparc32-solaris.c: Re-generated.
9048 * features/sparc/sparc64-solaris.c: Re-generated.
9049 * features/tic6x-c62x.c: Re-generated.
9050 * features/tic6x-c62x-linux.c: Re-generated.
9051 * features/tic6x-c64x.c: Re-generated.
9052 * features/tic6x-c64x-linux.c: Re-generated.
9053 * features/tic6x-c64xp.c: Re-generated.
9054 * features/tic6x-c64xp-linux.c: Re-generated.
9055
35b4818d
YQ
90562017-07-26 Yao Qi <yao.qi@linaro.org>
9057
9058 * i386-linux-tdep.c (i386_linux_read_description): New function.
9059 (i386_linux_core_read_description): Call
9060 i386_linux_read_description.
9061 * i386-linux-tdep.h (i386_linux_read_description): Declare.
9062 (tdesc_i386_linux, tdesc_i386_mmx_linux): Remove declarations.
9063 (tdesc_i386_avx_linux, tdesc_i386_mpx_linux): Likewise
9064 (tdesc_i386_avx_mpx_linux, tdesc_i386_avx_avx512_linux): Likewise.
9065 (tdesc_i386_avx_mpx_avx512_pku_linux): Likewise.
9066 * x86-linux-nat.c (x86_linux_read_description): Call
9067 i386_linux_read_description.
9068
8e2141c6
YQ
90692017-07-26 Yao Qi <yao.qi@linaro.org>
9070
9071 * NEWS: Mention it.
9072 * features/Makefile (%.c: %.xml): Pass the xml file name to
9073 command "maint print c-tdesc".
9074 * target-descriptions.c (maint_print_c_tdesc_cmd): Get file
9075 name from 'arg'.
9076
b468ff4c
YQ
90772017-07-26 Yao Qi <yao.qi@linaro.org>
9078
9079 * target-descriptions.c (target_desc): Add ctor and dtor. Do
9080 in-class initialization.
9081 (tdesc_create_feature): Call new instead of XCNEW.
9082 (free_target_description): Ue delete.
9083
b9c0e1b4
JB
90842017-07-25 John Baldwin <jhb@FreeBSD.org>
9085
9086 * configure.nat: Add "-lkvm" for NetBSD/sparc64 and fix typo.
9087
a04b5337
YQ
90882017-07-25 Yao Qi <yao.qi@linaro.org>
9089
9090 * amd64-tdep.c (amd64_init_abi): Make argument default_tdesc
9091 constant.
9092 (amd64_x32_init_abi): Likewise.
9093 * amd64-tdep.h (amd64_init_abi): Update declaration.
9094 (amd64_x32_init_abi): Likewise.
9095
02ad7fc2
YQ
90962017-07-25 Yao Qi <yao.qi@linaro.org>
9097
9098 PR tdep/21717
9099 * arm-linux-nat.c (arm_linux_fetch_inferior_registers): Update
9100 condition for FPSCR.
9101 (arm_linux_store_inferior_registers): Likewise.
9102
b6f48cb0
TT
91032017-07-22 Tom Tromey <tom@tromey.com>
9104
9105 * break-catch-syscall.c (struct catch_syscall_inferior_data)
9106 <syscalls_counts>: Now a std::vector.
9107 (get_catch_syscall_inferior_data): Use "new".
9108 (catch_syscall_inferior_data_cleanup): Use "delete".
9109 (insert_catch_syscall, remove_catch_syscall)
9110 (clear_syscall_counts): Update.
9111
e12c9b7a
TT
91122017-07-22 Tom Tromey <tom@tromey.com>
9113
9114 * break-catch-syscall.c (syscall_catchpoint)
9115 <syscalls_to_be_caught>: Now a std::vector<int>
9116 (~syscall_catchpoint): Remove.
9117 (insert_catch_syscall, remove_catch_syscall)
9118 (breakpoint_hit_catch_syscall, print_one_catch_syscall)
9119 (print_mention_catch_syscall, print_recreate_catch_syscall):
9120 Update.
9121 (create_syscall_event_catchpoint): Change type of "filter"
9122 parameter.
9123 (catch_syscall_split_args): Return a std::vector.
9124 (catch_syscall_command_1, catching_syscall_number_1): Update.
9125
4fa8aeac
TT
91262017-07-22 Tom Tromey <tom@tromey.com>
9127
9128 * break-catch-throw.c (struct exception_catchpoint)
9129 <exception_rx>: Now a std::string.
9130 (~exception_catchpoint): Remove.
9131 (print_one_detail_exception_catchpoint): Update.
9132 (handle_gnu_v3_exceptions): Change type of except_rx.
9133 (extract_exception_regexp): Return a std::string.
9134 (catch_exception_command_1): Update.
9135
f746a154
TT
91362017-07-22 Tom Tromey <tom@tromey.com>
9137
9138 * break-catch-sig.c (gdb_signal_type): Remove typedef.
9139 (struct signal_catchpoint) <signals_to_be_caught>: Now a
9140 std::vector.
9141 <catch_all>: Now a bool.
9142 (~signal_catchpoint): Remove.
9143 (signal_catchpoint_insert_location)
9144 (signal_catchpoint_remove_location)
9145 (signal_catchpoint_breakpoint_hit, signal_catchpoint_print_one)
9146 (signal_catchpoint_print_mention)
9147 (signal_catchpoint_print_recreate)
9148 (signal_catchpoint_explains_signal): Update.
9149 (create_signal_catchpoint): Change type of "filter" and
9150 "catch_all".
9151 (catch_signal_split_args): Return a std::vector. Change type of
9152 "catch_all".
9153 (catch_signal_command): Update.
9154
47e77640
PA
91552017-07-20 Pedro Alves <palves@redhat.com>
9156
9157 * ada-lang.c (ada_language_defn): Make extern.
9158 (_initialize_ada_language): Remove add_language call.
9159 * c-lang.c (c_language_defn, cplus_language_defn)
9160 (asm_language_defn, minimal_language_defn): Make extern.
9161 (_initialize_c_language): Delete.
9162 * completer.c (compare_cstrings): Delete, moved to utils.h.
9163 * d-lang.c (d_language_defn): Make extern.
9164 (_initialize_d_language): Remove add_language calls.
9165 * defs.h (enum language): Add comment.
9166 * f-lang.c (f_language_defn): Make extern.
9167 (_initialize_f_language): Remove add_language call.
9168 * go-lang.c (go_language_defn): Make extern.
9169 (_initialize_go_language): Remove add_language call.
9170 * language.c: Include <algorithm>.
9171 (languages): Redefine as const array.
9172 (languages_size, languages_allocsize, DEFAULT_ALLOCSIZE): Delete.
9173 (set_language_command): Handle "local". Use for-range loop.
9174 (set_language): Remove loop.
9175 (language_enum): Rewrite.
9176 (language_def, language_str): Remove loops.
9177 (add_language): Delete.
9178 (add_set_language_command): New, based on add_languages.
9179 (skip_language_trampoline): Adjust.
9180 (local_language_defn): Delete.
9181 (language_gdbarch_post_init): Adjust.
9182 (_initialize_language): Remove add_language calls. Call
9183 add_set_language_command.
9184 * language.h (add_language): Delete.
9185 (auto_language_defn)
9186 (unknown_language_defn, minimal_language_defn, ada_language_defn)
9187 (asm_language_defn, c_language_defn, cplus_language_defn)
9188 (d_language_defn, f_language_defn, go_language_defn)
9189 (m2_language_defn, objc_language_defn, opencl_language_defn)
9190 (pascal_language_defn, rust_language_defn): Declare.
9191 * m2-lang.c (m2_language_defn): Make extern.
9192 (_initialize_m2_language): Remove add_language call.
9193 * objc-lang.c (objc_language_defn): Make extern.
9194 (_initialize_objc_language): Remove add_language call.
9195 * opencl-lang.c (opencl_language_defn): Make extern.
9196 (_initialize_opencl_language): Remove add_language call.
9197 * p-lang.c (pascal_language_defn): Make extern.
9198 (_initialize_pascal_language): Delete.
9199 * rust-lang.c (rust_language_defn): Make extern.
9200 (_initialize_rust_language): Delete.
9201 * utils.h (compare_cstrings): New static inline function.
9202
edb0c9cb
PA
92032017-07-20 Pedro Alves <palves@redhat.com>
9204
9205 * ada-lang.c (ada_to_fixed_type_1): Adjust.
9206 (get_var_value): Constify parameters.
9207 (get_int_var_value): Change prototype.
9208 (to_fixed_range_type): Adjust.
9209 * ada-lang.h (get_int_var_value): Change prototype.
9210
a778f165
PA
92112017-07-20 Pedro Alves <palves@redhat.com>
9212
9213 * dwarf2read.c (dw2_lookup_symbol): Use
9214 SYMBOL_MATCHES_SEARCH_NAME.
9215 * psymtab.c (psym_lookup_symbol): Use SYMBOL_MATCHES_SEARCH_NAME.
9216
42edd901
PA
92172017-07-20 Pedro Alves <palves@redhat.com>
9218
9219 * block.c (block_iter_name_step, block_iter_name_first)
9220 (block_iter_name_next): Delete.
9221 (block_lookup_symbol_primary): Adjust to use
9222 dict_iter_match_first/dict_iter_match_next.
9223 * block.h (block_iter_name_first, block_iter_name_next): Delete
9224 declarations.
9225 (ALL_BLOCK_SYMBOLS_WITH_NAME): Adjust to use
9226 dict_iter_match_first/dict_iter_match_next.
9227
cf325299
PA
92282017-07-20 Pedro Alves <palves@redhat.com>
9229
9230 * cp-support.c (cp_find_first_component_aux): Add missing case for
9231 end of string.
9232
c5ed0576
DB
92332017-07-18 David Blaikie <dblaikie@gmail.com>
9234
9235 * dwarf2read.c (create_cus_hash_table): Re-add lost initialization
9236 of dwo_cu's dwo_file.
9237
27841e76
YQ
92382017-07-18 Yao Qi <yao.qi@linaro.org>
9239
9240 * remote.c (store_registers_using_G): Remove one line comment.
9241
cfb7e58b
YQ
92422017-07-18 Yao Qi <yao.qi@linaro.org>
9243
9244 * regcache.c (regcache_cpy): Simplify it.
9245 (regcache::cpy_no_passthrough): Remove it.
9246 * regcache.h (cpy_no_passthrough): Remove it.
9247 (regcache_dup, regcache_cpy): Update comments.
9248
386535dd
PA
92492017-07-18 Pedro Alves <palves@redhat.com>
9250
9251 * remote-sim.c (sim_command_completer): Adjust to work with a
9252 completion_tracker instead of a VEC.
9253
c45ec17c
PA
92542017-07-17 Pedro Alves <palves@redhat.com>
9255
9256 * completer.c (complete_source_filenames): New function.
9257 (complete_address_and_linespec_locations): New function.
9258 (location_completer): Use complete_address_and_linespec_locations.
9259 (completion_tracker::build_completion_result): Honor the tracker's
9260 request to suppress append.
9261 * completer.h (completion_tracker::suppress_append_ws)
9262 (completion_tracker::set_suppress_append_ws): New methods.
9263 (completion_tracker::m_suppress_append_ws): New field.
9264 (complete_source_filenames): New declaration.
9265 * linespec.c (linespec_complete_what): New.
9266 (struct ls_parser) <complete_what, completion_word,
9267 completion_quote_char, completion_quote_end, completion_tracker>:
9268 New fields.
9269 (string_find_incomplete_keyword_at_end): New.
9270 (linespec_lexer_lex_string): Record quote char. If in completion
9271 mode, don't throw.
9272 (linespec_lexer_consume_token): Advance the completion word point.
9273 (linespec_lexer_peek_token): Save/restore completion info.
9274 (save_stream_and_consume_token): New.
9275 (set_completion_after_number): New.
9276 (linespec_parse_basic): Set what to complete next depending on
9277 token. Handle function and label completions specially.
9278 (parse_linespec): Disable objc shortcut in completion mode. Set
9279 what to complete next depending on token type. Skip keyword if in
9280 completion mode.
9281 (complete_linespec_component, linespec_complete): New.
9282 * linespec.h (linespec_complete): Declare.
9283
be966d42
PA
92842017-07-17 Pedro Alves <palves@redhat.com>
9285
9286 * linespec.c (linespec_lexer_lex_string, find_toplevel_char):
9287 Handle 'operator<' / 'operator<<'.
9288
a2459270
PA
92892017-07-17 Pedro Alves <palves@redhat.com>
9290
9291 * completer.c (collect_explicit_location_matches): Handle
9292 MATCH_LABEL.
9293 (convert_explicit_location_to_linespec): New, factored out from
9294 ...
9295 (convert_explicit_location_to_sals): ... this.
9296 (complete_label): New.
9297 (linespec_complete_label, find_label_symbols_in_block): New.
9298 (find_label_symbols): Add completion_mode parameter and adjust to
9299 call find_label_symbols_in_block.
9300 * linespec.h (linespec_complete_label): Declare.
9301
c6756f62
PA
93022017-07-17 Pedro Alves <palves@redhat.com>
9303
9304 * ada-lang.c (ada_collect_symbol_completion_matches): Add
9305 complete_symbol_mode parameter.
9306 * cli/cli-cmds.c (complete_command): Get the completion result out
9307 of the handle_brkchars tracker if used a custom word point.
9308 * completer.c: Include "linespec.h".
9309 (enum explicit_location_match_type) <MATCH_LINE>: New enumerator.
9310 (advance_to_expression_complete_word_point): New.
9311 (completion_tracker::completes_to_completion_word): New.
9312 (complete_files_symbols): Pass down
9313 complete_symbol_mode::EXPRESSION.
9314 (explicit_options, probe_options): New.
9315 (collect_explicit_location_matches): Complete on the
9316 explictit_loc->foo instead of word. Use
9317 linespec_complete_function. Handle MATCH_LINE. Handle offering
9318 keyword and options completions.
9319 (backup_text_ptr): Delete.
9320 (skip_keyword): New.
9321 (complete_explicit_location): Remove 'word' parameter. Add
9322 language, quoted_arg_start and quoted_arg_end parameters.
9323 Rewrite, parsing left to right.
9324 (location_completer): Rewrite.
9325 (location_completer_handle_brkchars): New function.
9326 (symbol_completer): Pass down complete_symbol_mode::EXPRESSION.
9327 (enum complete_line_internal_reason): Adjust comments.
9328 (completion_tracker::discard_completions): New.
9329 (completer_handle_brkchars_func_for_completer): Handle
9330 location_completer.
9331 (gdb_custom_word_point_brkchars)
9332 (gdb_org_rl_basic_quote_characters): New.
9333 (gdb_completion_word_break_characters_throw)
9334 (completion_find_completion_word): Handle trackers that use a
9335 custom word point.
9336 (completion_tracker::advance_custom_word_point_by): New.
9337 (completion_tracker::build_completion_result): Don't rely on
9338 readline appending the quote char.
9339 (gdb_rl_attempted_completion_function_throw): Handle trackers that
9340 use a custom word point.
9341 (gdb_rl_attempted_completion_function): Restore
9342 rl_basic_quote_characters.
9343 * completer.h (class completion_tracker): Extend intro comment.
9344 (completion_tracker::set_quote_char)
9345 (completion_tracker::quote_char)
9346 (completion_tracker::set_use_custom_word_point)
9347 (completion_tracker::use_custom_word_point)
9348 (completion_tracker::custom_word_point)
9349 (completion_tracker::set_custom_word_point)
9350 (completion_tracker::advance_custom_word_point_by)
9351 (completion_tracker::completes_to_completion_word)
9352 (completion_tracker::discard_completions): New methods.
9353 (completion_tracker::m_quote_char)
9354 (completion_tracker::m_use_custom_word_point)
9355 (completion_tracker::m_custom_word_point): New fields.
9356 (advance_to_expression_complete_word_point): Declare.
9357 * f-lang.c (f_collect_symbol_completion_matches): Add
9358 complete_symbol_mode parameter.
9359 * language.h (struct language_defn)
9360 <la_collect_symbol_completion_matches>: Add complete_symbol_mode
9361 parameter.
9362 * linespec.c (linespec_keywords): Add NULL terminator. Make extern.
9363 (linespec_complete_function): New function.
9364 (linespec_lexer_lex_keyword): Adjust.
9365 * linespec.h (linespec_keywords, linespec_complete_function): New
9366 declarations.
9367 * location.c (find_end_quote): New function.
9368 (explicit_location_lex_one): Add explicit_completion_info
9369 parameter. Save quoting info. Don't throw if being called for
9370 completion. Don't handle Ada operators here.
9371 (is_cp_operator, skip_op_false_positives, first_of)
9372 (explicit_location_lex_one_function): New function.
9373 (string_to_explicit_location): Replace 'dont_throw' parameter with
9374 an explicit_completion_info pointer parameter. Handle it. Don't
9375 use explicit_location_lex_one to lex function names. Use
9376 explicit_location_lex_one_function instead.
9377 * location.h (struct explicit_completion_info): New.
9378 (string_to_explicit_location): Replace 'dont_throw' parameter with
9379 an explicit_completion_info pointer parameter.
9380 * symtab.c (default_collect_symbol_completion_matches_break_on):
9381 Add complete_symbol_mode parameter. Handle LINESPEC mode.
9382 (default_collect_symbol_completion_matches)
9383 (collect_symbol_completion_matches): Add complete_symbol_mode
9384 parameter.
9385 (collect_symbol_completion_matches_type): Pass down
9386 complete_symbol_mode::EXPRESSION.
9387 (collect_file_symbol_completion_matches): Add complete_symbol_mode
9388 parameter. Handle LINESPEC mode.
9389 * symtab.h (complete_symbol_mode): New.
9390 (default_collect_symbol_completion_matches_break_on)
9391 (default_collect_symbol_completion_matches)
9392 (collect_symbol_completion_matches)
9393 (collect_file_symbol_completion_matches): Add complete_symbol_mode
9394 parameter.
9395
1d550c82
PA
93962017-07-17 Pedro Alves <palves@redhat.com>
9397
9398 * utils.c (enum class strncmp_iw_mode): New.
9399 (strcmp_iw): Rename to ...
9400 (strncmp_iw_with_mode): ... this. Add string2_len and mode
9401 parameters. Handle them.
9402 (strncmp_iw): New.
9403 (strcmp_iw): Reimplement as wrapper around strncmp_iw_with_mode.
9404 * utils.h (strncmp_iw): Declare.
9405 (strcmp_iw): Move describing comments here.
9406
8090b426
PA
94072017-07-17 Pedro Alves <palves@redhat.com>
9408
9409 * c-exp.y (operator_stoken): Use CP_OPERATOR_LEN and
9410 CP_OPERATOR_STR.
9411 * c-typeprint.c (is_type_conversion_operator): Use
9412 CP_OPERATOR_STR.
9413 * cp-support.c (LENGTH_OF_OPERATOR): Delete.
9414 (cp_find_first_component_aux): Use CP_OPERATOR_STR and
9415 CP_OPERATOR_LEN.
9416 * cp-support.h (CP_OPERATOR_STR, CP_OPERATOR_LEN): New.
9417 * gnu-v2-abi.c (gnuv2_is_operator_name): Use CP_OPERATOR_STR.
9418 * gnu-v3-abi.c (gnuv3_is_operator_name): Use CP_OPERATOR_STR.
9419 * linespec.c (linespec_lexer_lex_string): Use CP_OPERATOR_LEN and
9420 CP_OPERATOR_STR.
9421 * location.c: Include "cp-support.h".
9422 (explicit_location_lex_one): Use CP_OPERATOR_LEN and
9423 CP_OPERATOR_STR.
9424 * symtab.c (operator_chars): Use CP_OPERATOR_STR and
9425 CP_OPERATOR_LEN.
9426
6a2c1b87
PA
94272017-07-17 Pedro Alves <palves@redhat.com>
9428
9429 * cli/cli-cmds.c (complete_command): Use a completion tracker
9430 along with completion_find_completion_word for handle_brkchars
9431 phase.
9432 * completer.c (RL_QF_SINGLE_QUOTE, RL_QF_DOUBLE_QUOTE)
9433 (RL_QF_BACKSLASH, RL_QF_OTHER_QUOTE): New.
9434 (struct gdb_rl_completion_word_info): New.
9435 (gdb_rl_find_completion_word): New.
9436 (completion_find_completion_word): New.
9437 * completer.h (completion_find_completion_word): Declare.
9438
eb3ff9a5
PA
94392017-07-17 Pedro Alves <palves@redhat.com>
9440
9441 * ada-lang.c (symbol_completion_match): Adjust comments.
9442 (symbol_completion_add): Replace vector parameter with
9443 completion_tracker parameter. Use it.
9444 (ada_make_symbol_completion_list): Rename to...
9445 (ada_collect_symbol_completion_matches): ... this. Add
9446 completion_tracker parameter and use it.
9447 (ada_language_defn): Adjust.
9448 * break-catch-syscall.c (catch_syscall_completer): Adjust
9449 prototype and work with completion_tracker instead of VEC.
9450 * breakpoint.c (condition_completer): Adjust prototype and work
9451 with completion_tracker instead of VEC.
9452 * c-lang.c (c_language_defn, cplus_language_defn)
9453 (asm_language_defn, minimal_language_defn): Adjust to renames.
9454 * cli/cli-cmds.c (complete_command): Rework using
9455 completion_tracker. Catch exceptions when completing.
9456 * cli/cli-decode.c (integer_unlimited_completer)
9457 (complete_on_cmdlist, complete_on_enum): Adjust prototype and work
9458 with completion_tracker instead of VEC.
9459 * command.h (struct completion_tracker): Forward declare.
9460 (completer_ftype, completer_handle_brkchars_ftype): Change
9461 types.
9462 (complete_on_cmdlist, complete_on_enum): Adjust.
9463 * completer.c: Include <algorithm>.
9464 (struct gdb_completer_state): New.
9465 (current_completion): New global.
9466 (readline_line_completion_function): Delete.
9467 (noop_completer, filename_completer)
9468 (filename_completer_handle_brkchars, complete_files_symbols)
9469 (linespec_location_completer): Adjust to work with a
9470 completion_tracker instead of a VEC.
9471 (string_or_empty): New.
9472 (collect_explicit_location_matches): Adjust to work with a
9473 completion_tracker instead of a VEC.
9474 (explicit_location_completer): Rename to ...
9475 (complete_explicit_location): ... this and adjust to work with a
9476 completion_tracker instead of a VEC.
9477 (location_completer): Adjust to work with a completion_tracker
9478 instead of a VEC.
9479 (add_struct_fields): Adjust to work with a completion_list instead
9480 of VEC.
9481 (expression_completer): Rename to ...
9482 (complete_expression): ... this and adjust to work with a
9483 completion_tracker instead of a VEC. Use complete_files_symbols.
9484 (expression_completer): Reimplement on top of complete_expression.
9485 (symbol_completer): Adjust to work with a completion_tracker
9486 instead of a VEC.
9487 (enum complete_line_internal_reason): Add describing comments.
9488 (complete_line_internal_normal_command): Adjust to work with a
9489 completion_tracker instead of a VEC.
9490 (complete_line_internal): Rename to ...
9491 (complete_line_internal_1): ... this and adjust to work with a
9492 completion_tracker instead of a VEC. Assert TEXT is NULL in the
9493 handle_brkchars phase.
9494 (new_completion_tracker): Delete.
9495 (complete_line_internal): Reimplement as TRY/CATCH wrapper around
9496 complete_line_internal_1.
9497 (free_completion_tracker): Delete.
9498 (INITIAL_COMPLETION_HTAB_SIZE): New.
9499 (completion_tracker::completion_tracker)
9500 (completion_tracker::~completion_tracker): New.
9501 (maybe_add_completion): Delete.
9502 (completion_tracker::maybe_add_completion)
9503 (completion_tracker::add_completion)
9504 (completion_tracker::add_completions): New.
9505 (throw_max_completions_reached_error): Delete.
9506 (complete_line): Adjust to work with a completion_tracker instead
9507 of a VEC. Don't create a completion_tracker_t or check for max
9508 completions here.
9509 (command_completer, command_completer_handle_brkchars)
9510 (signal_completer, reg_or_group_completer_1)
9511 (reg_or_group_completer, default_completer_handle_brkchars):
9512 Adjust to work with a completion_tracker.
9513 (gdb_completion_word_break_characters_throw): New.
9514 (gdb_completion_word_break_characters): Reimplement.
9515 (line_completion_function): Delete.
9516 (completion_tracker::recompute_lowest_common_denominator)
9517 (expand_preserving_ws)
9518 (completion_tracker::build_completion_result)
9519 (completion_result::completion_result)
9520 (completion_result::completion_result)
9521 (completion_result::~completion_result)
9522 (completion_result::completion_result)
9523 (completion_result::release_match_list, compare_cstrings)
9524 (completion_result::sort_match_list)
9525 (completion_result::reset_match_list)
9526 (gdb_rl_attempted_completion_function_throw)
9527 (gdb_rl_attempted_completion_function): New.
9528 * completer.h (completion_list, struct completion_result)
9529 (class completion_tracker): New.
9530 (complete_line): Add completion_tracker parameter.
9531 (readline_line_completion_function): Delete.
9532 (gdb_rl_attempted_completion_function): New.
9533 (noop_completer, filename_completer, expression_completer)
9534 (location_completer, symbol_completer, command_completer)
9535 (signal_completer, reg_or_group_completer): Update prototypes.
9536 (completion_tracker_t, new_completion_tracker)
9537 (make_cleanup_free_completion_tracker): Delete.
9538 (enum maybe_add_completion_enum): Delete.
9539 (maybe_add_completion): Delete.
9540 (throw_max_completions_reached_error): Delete.
9541 * corefile.c (complete_set_gnutarget): Adjust to work with a
9542 completion_tracker instead of a VEC.
9543 * cp-abi.c (cp_abi_completer): Adjust to work with a
9544 completion_tracker instead of a VEC.
9545 * d-lang.c (d_language_defn): Adjust.
9546 * disasm.c (disassembler_options_completer): Adjust to work with a
9547 completion_tracker instead of a VEC.
9548 * f-lang.c (f_make_symbol_completion_list): Rename to ...
9549 (f_collect_symbol_completion_matches): ... this. Adjust to work
9550 with a completion_tracker instead of a VEC.
9551 (f_language_defn): Adjust.
9552 * go-lang.c (go_language_defn): Adjust.
9553 * guile/scm-cmd.c (cmdscm_add_completion, cmdscm_completer):
9554 Adjust to work with a completion_tracker instead of a VEC.
9555 * infrun.c (handle_completer): Likewise.
9556 * interps.c (interpreter_completer): Likewise.
9557 * interps.h (interpreter_completer): Likewise.
9558 * language.c (unknown_language_defn, auto_language_defn)
9559 (local_language_defn): Adjust.
9560 * language.h (language_defn::la_make_symbol_completion_list):
9561 Rename to ...
9562 (language_defn::la_collect_symbol_completion_matches): ... this
9563 and adjust to work with a completion_tracker instead of a VEC.
9564 * m2-lang.c (m2_language_defn): Adjust.
9565 * objc-lang.c (objc_language_defn): Adjust.
9566 * opencl-lang.c (opencl_language_defn): Adjust.
9567 * p-lang.c (pascal_language_defn): Adjust.
9568 * python/py-cmd.c (cmdpy_completer_helper): Handle NULL word.
9569 (cmdpy_completer_handle_brkchars, cmdpy_completer): Adjust to work
9570 with a completion_tracker.
9571 * rust-lang.c (rust_language_defn): Adjust.
9572 * symtab.c (free_completion_list, do_free_completion_list)
9573 (return_val, completion_tracker): Delete.
9574 (completion_list_add_name, completion_list_add_symbol)
9575 (completion_list_add_msymbol, completion_list_objc_symbol)
9576 (completion_list_add_fields, add_symtab_completions): Add
9577 completion_tracker parameter and use it.
9578 (default_make_symbol_completion_list_break_on_1): Rename to...
9579 (default_collect_symbol_completion_matches_break_on): ... this.
9580 Add completion_tracker parameter and use it instead of allocating
9581 a completion tracker here.
9582 (default_make_symbol_completion_list_break_on): Delete old
9583 implementation.
9584 (default_make_symbol_completion_list): Delete.
9585 (default_collect_symbol_completion_matches): New.
9586 (make_symbol_completion_list): Delete.
9587 (collect_symbol_completion_matches): New.
9588 (make_symbol_completion_type): Rename to ...
9589 (collect_symbol_completion_matches_type): ... this. Add
9590 completion_tracker parameter and use it instead of VEC.
9591 (make_file_symbol_completion_list_1): Rename to...
9592 (collect_file_symbol_completion_matches): ... this. Add
9593 completion_tracker parameter and use it instead of VEC.
9594 (make_file_symbol_completion_list): Delete.
9595 (add_filename_to_list): Use completion_list instead of a VEC.
9596 (add_partial_filename_data::list): Now a completion_list.
9597 (make_source_files_completion_list): Work with a completion_list
9598 instead of a VEC.
9599 * symtab.h: Include "completer.h".
9600 (default_make_symbol_completion_list_break_on)
9601 (default_make_symbol_completion_list, make_symbol_completion_list)
9602 (make_symbol_completion_type, make_file_symbol_completion_list)
9603 (make_source_files_completion_list): Delete.
9604 (default_collect_symbol_completion_matches_break_on)
9605 (default_collect_symbol_completion_matches)
9606 (collect_symbol_completion_matches)
9607 (collect_symbol_completion_matches_type)
9608 (collect_file_symbol_completion_matches)
9609 (make_source_files_completion_list): New.
9610 * top.c (init_main): Don't install a rl_completion_entry_function
9611 hook. Install a rl_attempted_completion_function hook instead.
9612 * tui/tui-layout.c (layout_completer): Adjust to work with a
9613 completion_tracker.
9614 * tui/tui-regs.c (tui_reggroup_completer):
9615 * tui/tui-win.c (window_name_completer, focus_completer)
9616 (winheight_completer): Adjust to work with a completion_tracker.
9617 * value.c: Include "completer.h".
9618 (complete_internalvar): Adjust to work with a completion_tracker.
9619 * value.h (complete_internalvar): Likewise.
9620
6e1dbf8c
PA
96212017-07-17 Pedro Alves <palves@redhat.com>
9622
9623 * cli/cli-decode.c (set_cmd_completer_handle_brkchars): Adjust to
9624 renames.
9625 * cli/cli-decode.h (struct cmd_list_element) <completer>: Move
9626 comments to completer_ftype's declaration.
9627 <completer_handle_brkchars>: Change type to
9628 completer_handle_brkchars_ftype.
9629 * command.h (completer_ftype): Add describing comment and give
9630 names to parameters.
9631 (completer_ftype_void): Rename to ...
9632 (completer_handle_brkchars_ftype) ... this. Add describing comment.
9633 (set_cmd_completer_handle_brkchars): Adjust.
9634 * completer.c (filename_completer_handle_brkchars): New function.
9635 (complete_line_internal_normal_command): New function, factored
9636 out from ...
9637 (complete_line_internal): ... here.
9638 (command_completer_handle_brkchars)
9639 (default_completer_handle_brkchars)
9640 (completer_handle_brkchars_func_for_completer): New functions.
9641 * completer.h (set_gdb_completion_word_break_characters): Delete
9642 declaration.
9643 (completer_handle_brkchars_func_for_completer): New declaration.
9644 * python/py-cmd.c (cmdpy_completer_handle_brkchars): Adjust to use
9645 completer_handle_brkchars_func_for_completer.
9646
78b13106
PA
96472017-07-17 Pedro Alves <palves@redhat.com>
9648
9649 * completer.c (symbol_completer): New function, based on
9650 make_symbol_completion_list_fn.
9651 * completer.h (symbol_completer): New declaration.
9652 * guile/scm-cmd.c (cmdscm_completers): Adjust.
9653 * python/py-cmd.c (completers): Adjust.
9654 * symtab.c (make_symbol_completion_list_fn): Delete.
9655 * symtab.h (make_symbol_completion_list_fn): Delete.
9656 * cli/cli-decode.c (add_cmd): Adjust.
9657
bbf2f4df
PA
96582017-07-17 Pedro Alves <palves@redhat.com>
9659
9660 * Makefile.in (COMMON_OBS): Add filename-seen-cache.o.
9661 * dwarf2read.c: Include "filename-seen-cache.h".
9662 * dwarf2read.c (dwarf2_per_objfile) <filenames_cache>: New field.
9663 (dw2_map_symbol_filenames): Build and use a filenames_seen_cache.
9664 * filename-seen-cache.c: New file.
9665 * filename-seen-cache.h: New file.
9666 * symtab.c: Include "filename-seen-cache.h".
9667 (struct filename_seen_cache, INITIAL_FILENAME_SEEN_CACHE_SIZE)
9668 (create_filename_seen_cache, clear_filename_seen_cache)
9669 (delete_filename_seen_cache, filename_seen): Delete, parts moved
9670 to filename-seen-cache.h/filename-seen-cache.c.
9671 (output_source_filename, sources_info)
9672 (maybe_add_partial_symtab_filename)
9673 (make_source_files_completion_list): Adjust to use
9674 filename_seen_cache.
9675
330cdd98
PA
96762017-07-17 Pedro Alves <palves@redhat.com>
9677
9678 * dwarf2read.c (dwarf2_per_objfile): In-class initialize all
9679 fields.
9680 (dwarf2_per_objfile::dwarf2_per_objfile(objfile*, const
9681 dwarf2_debug_sections*)): New.
9682 (dwarf2_per_objfile::dwarf2_per_objfile(const
9683 dwarf2_per_objfile&)): Declare as deleted.
9684 (dwarf2_per_objfile::operator=): Declare as deleted.
9685 (dwarf2_per_objfile::dwarf2_per_objfile)
9686 (dwarf2_per_objfile::~dwarf2_per_objfile)
9687 (dwarf2_per_objfile::free_cached_comp_units): New.
9688 (dwarf2_has_info): dwarf2_per_objfile initialization code moved to
9689 ctor. Call dwarf2_per_objfile's ctor manually.
9690 (dwarf2_locate_sections): Deleted/refactored as ...
9691 (dwarf2_per_objfile::locate_sections): ... this new method.
9692 (free_cached_comp_units): Defer to
9693 dwarf2_per_objfile::free_cached_comp_units.
9694 (dwarf2_free_objfile): Call dwarf2_per_objfile's dtor manually.
9695
8880f2a9
TT
96962017-07-14 Tom Tromey <tom@tromey.com>
9697
9698 PR rust/21764:
9699 * rust-exp.y (convert_ast_to_expression): Add "want_type"
9700 parameter.
9701 <UNOP_SIZEOF>: Split into separate case.
9702 <UNOP_VAR_VALUE>: Handle want_type. Add error case.
9703
65547233
TT
97042017-07-14 Tom Tromey <tom@tromey.com>
9705
9706 PR rust/21763:
9707 * symtab.c (symbol_matches_domain): Add language_rust to special
9708 case.
9709 * rust-exp.y (convert_ast_to_expression) <OP_VAR_VALUE>: Don't
9710 treat LOC_TYPEDEF symbols as variables.
9711
8f14146e
PA
97122017-07-14 Pedro Alves <palves@redhat.com>
9713
9714 * symtab.c (make_file_symbol_completion_list_1): Iterate over
9715 symtabs matching all symtabs with SRCFILE as file name instead of
9716 only considering the first hit, with lookup_symtab.
9717
2347965c
SM
97182017-07-14 Simon Marchi <simon.marchi@ericsson.com>
9719
9720 * ax-gdb.c (gen_aggregate_elt_ref): Remove operand_name and
9721 operator_name parameters.
9722 (gen_expr): Update function call.
9723
40f4af28
SM
97242017-07-14 Simon Marchi <simon.marchi@ericsson.com>
9725
9726 * dwarf2loc.h (dwarf2_compile_expr_to_ax): Remove gdbarch
9727 parameter.
9728 * symtab.h (struct symbol_computed_ops::tracepoint_var_ref):
9729 Likewise.
9730 * dwarf2loc.c (dwarf2_compile_expr_to_ax): Remove gdbarch
9731 parameter, use agent_expr::gdbarch instead, update function
9732 calls.
9733 (locexpr_tracepoint_var_ref): Likewise.
9734 (loclist_tracepoint_var_ref): Likewise.
9735 * ax-gdb.c (gen_trace_static_fields): Likewise.
9736 (gen_traced_pop): Likewise.
9737 (gen_frame_args_address): Likewise.
9738 (gen_frame_locals_address): Likewise.
9739 (gen_var_ref): Likewise.
9740 (gen_struct_ref_recursive): Likewise.
9741 (gen_static_field): Likewise.
9742 (gen_maybe_namespace_elt): Likewise.
9743 (gen_expr): Likewise.
9744 (gen_trace_for_var): Likewise.
9745 (gen_trace_for_expr): Likewise.
9746 (gen_trace_for_return_address): Likewise.
9747
053f8057
SM
97482017-07-14 Simon Marchi <simon.marchi@ericsson.com>
9749
9750 * ax-gdb.c (gen_deref, gen_address_of): Remove unused ax
9751 parameter.
9752 (gen_struct_ref, gen_expr, gen_expr_binop_rest): Update call.
9753
6661ad48
SM
97542017-07-14 Simon Marchi <simon.marchi@ericsson.com>
9755
9756 * ax-gdb.c (gen_usual_unary): Remove exp parameter, get gdbarch
9757 from ax, update calls.
9758 (gen_usual_arithmetic): Likewise.
9759 (gen_integral_promotions): Likewise.
9760 (gen_bitfield_ref): Likewise.
9761 (gen_primitive_field): Likewise.
9762 (gen_struct_ref_recursive): Likewise.
9763 (gen_struct_ref): Likewise.
9764 (gen_maybe_namespace_elt): Likewise.
9765 (gen_struct_elt_for_reference): Likewise.
9766 (gen_namespace_elt): Likewise.
9767 (gen_aggregate_elt_ref): Likewise.
9768 (gen_expr): Get gdbarch from ax, update calls.
9769 (gen_expr_binop_rest): Likewise.
9770
c55a47e7
PA
97712017-07-13 Pedro Alves <palves@redhat.com>
9772
9773 * amd64-darwin-tdep.c (x86_darwin_init_abi_64): Pass tdesc_amd64
9774 as default tdesc.
9775 * amd64-dicos-tdep.c (amd64_dicos_init_abi):
9776 * amd64-fbsd-tdep.c (amd64fbsd_init_abi):
9777 * amd64-linux-tdep.c (amd64_linux_init_abi): Pass
9778 tdesc_amd64_linux as default tdesc. Get final tdesc from the
9779 tdep.
9780 (amd64_x32_linux_init_abi): Pass tdesc_x32_linux as default tdesc.
9781 Get final tdesc from the tdep.
9782 * amd64-nbsd-tdep.c (amd64nbsd_init_abi): Pass tdesc_amd64 as
9783 default tdesc.
9784 * amd64-obsd-tdep.c (amd64obsd_init_abi): Likewise.
9785 * amd64-sol2-tdep.c (amd64_sol2_init_abi): Likewise.
9786 * amd64-tdep.c (amd64_init_abi): Add 'default_tdesc' parameter.
9787 Use it as default tdesc.
9788 (amd64_x32_init_abi): Add 'default_tdesc' parameter, and pass it
9789 down to amd_init_abi. No longer handle fallback tdesc here.
9790 * amd64-tdep.h (tdesc_x32): Declare.
9791 (amd64_init_abi, amd64_x32_init_abi): Add 'default_tdesc'
9792 parameter.
9793 * amd64-windows-tdep.c (amd64_windows_init_abi): Pass tdesc_amd64
9794 as default tdesc.
9795
55efceab
AA
97962017-07-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
9797
9798 * s390-linux-tdep.c (s390_process_record): Add support for
9799 instructions new in arch12.
9800
0aa37b65
JB
98012017-07-11 John Baldwin <jhb@FreeBSD.org>
9802
9803 * amd64-bsd-nat.c (amd64bsd_fetch_inferior_registers): Use
9804 PT_GETFSBASE and PT_GETGSBASE.
9805 (amd64bsd_store_inferior_registers): Use PT_SETFSBASE and
9806 PT_SETGSBASE.
9807
48aeef91
JB
98082017-07-11 John Baldwin <jhb@FreeBSD.org>
9809
9810 * features/Makefile (amd64.dat, amd64-avx.dat, amd64-mpx.dat)
9811 (amd64-avx-mpx.dat, amd64-avx-avx512.dat)
9812 (amd64-avx-mpx-avx512-pku.dat): Add i386/64bit-segments.xml in
9813 those rules.
9814 * features/i386/amd64-avx-avx512.xml: Add 64bit-segments.xml.
9815 * features/i386/amd64-avx-mpx-avx512-pku.xml: Add 64bit-segments.xml.
9816 * features/i386/amd64-avx-mpx.xml: Add 64bit-segments.xml.
9817 * features/i386/amd64-avx.xml: Add 64bit-segments.xml.
9818 * features/i386/amd64-mpx.xml: Add 64bit-segments.xml.
9819 * features/i386/amd64.xml: Add 64bit-segments.xml.
9820 * features/i386/amd64-avx-avx512.c: Regenerated.
9821 * features/i386/amd64-avx-mpx-avx512-pku.c: Regenerated.
9822 * features/i386/amd64-avx-mpx.c: Regenerated.
9823 * features/i386/amd64-avx.c: Regenerated.
9824 * features/i386/amd64-mpx.c: Regenerated.
9825 * features/i386/amd64.c: Regenerated.
9826 * regformats/i386/amd64-avx-avx512.dat: Regenerated.
9827 * regformats/i386/amd64-avx-mpx-avx512-pku.dat: Regenerated.
9828 * regformats/i386/amd64-avx-mpx.dat: Regenerated.
9829 * regformats/i386/amd64-avx.dat: Regenerated.
9830 * regformats/i386/amd64-mpx.dat: Regenerated.
9831 * regformats/i386/amd64.dat: Regenerated.
9832
77c501bc
YQ
98332017-07-10 Yao Qi <yao.qi@linaro.org>
9834
9835 * features/i386/amd64-avx-avx512-linux.c: Re-generated.
9836 * features/i386/amd64-avx-mpx-avx512-pku-linux.c: Re-generated.
9837
6dc8d757
AK
98382017-07-10 Anton Kolesov <Anton.Kolesov@synopsys.com>
9839
9840 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add setenv and
9841 unsetenv.
9842 * gnulib/aclocal.m4: Regenerate.
9843 * gnulib/config.in: Regenerate.
9844 * gnulib/configure: Regenerate.
9845 * gnulib/import/Makefile.am: Regenerate.
9846 * gnulib/import/Makefile.in: Regenerate.
9847 * gnulib/import/m4/gnulib-cache.m4: Regenerate.
9848 * gnulib/import/m4/gnulib-comp.m4: Regenerate.
9849 * gnulib/import/m4/environ.m4: New file.
9850 * gnulib/import/m4/setenv.m4: New file.
9851 * gnulib/import/setenv.c: New file.
9852 * gnulib/import/unsetenv.c: New file.
9853
266934d1
SM
98542017-07-09 Simon Marchi <simon.marchi@ericsson.com>
9855
9856 * compile/compile-loc2c.c (do_compile_dwarf_expr_to_c): Read
9857 address when op is DW_OP_addr.
9858
03278692
TT
98592017-07-09 Tom Tromey <tom@tromey.com>
9860
9861 * dwarf2loc.c (dwarf2_evaluate_loc_desc_full): Reverse size
9862 check and apply to outer type.
9863
4b654465
JB
98642017-07-07 John Baldwin <jhb@FreeBSD.org>
9865
9866 * fbsd-tdep.c (LWPINFO_OFFSET, LWPINFO_PL_FLAGS)
9867 (LWPINFO64_PL_SIGINFO, LWPINFO32_PL_SIGINFO, PL_FLAG_SI)
9868 (SIZE64_SIGINFO_T, SIZE32_SIGINFO_T, fbsd_core_xfer_siginfo): New.
9869 (fbsd_init_abi): Install gdbarch "core_xfer_siginfo" method.
9870
2af9fc44
JB
98712017-07-07 John Baldwin <jhb@FreeBSD.org>
9872
9873 * fbsd-tdep.c (fbsd_core_thread_name): Use thread_section_name.
9874
382b69bb
JB
98752017-07-07 John Baldwin <jhb@FreeBSD.org>
9876
9877 * corelow.c (get_core_siginfo): Remove.
9878 (core_xfer_partial): Use the gdbarch "core_xfer_siginfo" method
9879 instead of get_core_siginfo.
9880 * gdbarch.sh (core_xfer_siginfo): New gdbarch callback.
9881 * gdbarch.h: Re-generate.
9882 * gdbarch.c: Re-generate.
9883 * linux-tdep.c (linux_core_xfer_siginfo): New.
9884 (linux_init_abi): Install gdbarch "core_xfer_siginfo" method.
9885
6e5eab33
JB
98862017-07-07 John Baldwin <jhb@FreeBSD.org>
9887
9888 * corelow.c (thread_section_name): Move to ...
9889 * gdbcore.h (thread_section_name): ... here.
9890
929edea9
JB
98912017-07-07 John Baldwin <jhb@FreeBSD.org>
9892
9893 * fbsd-nat.c [PT_LWPINFO && __LP64__] (union sigval32)
9894 (struct siginfo32): New.
9895 [PT_LWPINFO] (fbsd_siginfo_size, fbsd_convert_siginfo): New.
9896 (fbsd_xfer_partial) [PT_LWPINFO]: Handle TARGET_OBJECT_SIGNAL_INFO
9897 via ptrace(PT_LWPINFO).
9898
762c974a
JB
98992017-07-07 John Baldwin <jhb@FreeBSD.org>
9900
9901 * fbsd-tdep.c (fbsd_gdbarch_data_handle, struct fbsd_gdbarch_data)
9902 (init_fbsd_gdbarch_data, get_fbsd_gdbarch_data)
9903 (fbsd_get_siginfo_type): New.
9904 (fbsd_init_abi): Install gdbarch "get_siginfo_type" method.
9905 (_initialize_fbsd_tdep): New.
9906
33c5cd75
DB
99072017-07-06 David Blaikie <dblaikie@gmail.com>
9908
9909 * dwarf2read.c (struct dwo_file): Use a htab of dwo_unit* (rather than
9910 a singular dwo_unit*) to support multiple CUs in the same way that
9911 multiple TUs are supported.
9912 (create_cus_hash_table): Replace create_dwo_cu with a function for
9913 parsing multiple CUs from a DWO file.
9914 (open_and_init_dwo_file): Use create_cus_hash_table rather than
9915 create_dwo_cu.
9916 (lookup_dwo_cutu): Lookup CU in the hash table in the dwo_file with
9917 htab_find, rather than comparing the signature to a singleton CU in
9918 the dwo_file.
9919
8455d262
PA
99202017-07-06 Pedro Alves <palves@redhat.com>
9921
9922 * python/py-unwind.c (pyuw_dealloc_cache): Fix for loop condition.
9923
4da3eb35
PA
99242017-07-04 Pedro Alves <palves@redhat.com>
9925
9926 * gdbtypes.c (recursive_dump_type): Don't reference TYPE_STATIC.
9927 * gdbtypes.h (TYPE_STATIC): Delete.
9928 (struct fn_field) <is_public, is_abstract, is_static, is_final,
9929 is_synchronized, is_native>: Delete.
9930 <dummy>: Bump.
9931 (TYPE_FN_FIELD_PUBLIC, TYPE_FN_FIELD_STATIC, TYPE_FN_FIELD_FINAL)
9932 (TYPE_FN_FIELD_SYNCHRONIZED, TYPE_FN_FIELD_NATIVE)
9933 (TYPE_FN_FIELD_ABSTRACT): Delete.
9934
5bfd255c
SM
99352017-07-03 Simon Marchi <simon.marchi@ericsson.com>
9936
9937 * buffer.h (buffer_finish): Fix spelling mistakes.
9938
25c54127
EZ
99392017-07-01 Eli Zaretskii <eliz@gnu.org>
9940
9941 * .dir-locals.el: Automatically switch to C-style comments in
9942 versions of Emacs that support the feature.
9943
dc4bde35
SDJ
99442017-06-30 Sergio Durigan Junior <sergiodj@redhat.com>
9945 Pedro Alves <palves@redhat.com>
9946
9947 PR cli/21688
9948 * cli/cli-script.c (command_name_equals_not_inline): Remove function.
9949 (process_next_line): New variable 'inline_cmd'.
9950 Adjust 'if' clauses for "python", "compile" and "guile" to use
9951 'command_name_equals' and check for '!inline_cmd'.
9952
51ed89aa
SDJ
99532017-06-30 Sergio Durigan Junior <sergiodj@redhat.com>
9954
9955 PR cli/21688
9956 * cli/cli-script.c (command_name_equals_not_inline): New function.
9957 (process_next_line): Adjust 'if' clauses for "python", "compile"
9958 and "guile" to use command_name_equals_not_inline.
9959
eb17d413
PA
99602017-06-29 Pedro Alves <palves@redhat.com>
9961
9962 * completer.c (expression_completer): Call
9963 linespec_location_completer instead of location_completer.
9964
195bcdd5
PA
99652017-06-29 Pedro Alves <palves@redhat.com>
9966
9967 * completer.c (expression_completer): Remove code that recomputes
9968 'text' from 'word'.
9969
adc764e7
YQ
99702017-06-29 Yao Qi <yao.qi@linaro.org>
9971
9972 * regformats/regdat.sh: Generate code with
9973 "ifndef IN_PROCESS_AGENT".
9974
6e75794e
PA
99752017-06-28 Pedro Alves <palves@redhat.com>
9976
9977 * command.h: Include "common/scoped_restore.h".
9978
bc491f2e
YQ
99792017-06-28 Yao Qi <yao.qi@linaro.org>
9980
9981 * mi/mi-cmd-break.c (mi_argv_to_format): Use obstack_grow_str
9982 instead of obstack_grow.
9983
41664b45
DG
99842017-06-28 Doug Gilmore <Doug.Gilmore@imgtec.com>
9985
9986 PR gdb/21337
9987 * symfile.c (reread_symbols): Call objfiles_changed just before
9988 read_symbols.
9989
6da67eb1
PA
99902017-06-27 Pedro Alves <palves@redhat.com>
9991
9992 * symtab.c (COMPLETION_LIST_ADD_SYMBOL)
9993 (MCOMPLETION_LIST_ADD_SYMBOL): Delete macros, replace with ...
9994 (completion_list_add_symbol, completion_list_add_msymbol):
9995 ... these new functions.
9996 (add_symtab_completions)
9997 (default_make_symbol_completion_list_break_on_1): Adjust.
9998
23732b1e
PA
99992017-06-27 Pedro Alves <palves@redhat.com>
10000
10001 * objfiles.c (get_objfile_bfd_data): Call bfd_alloc instead of
10002 bfd_zalloc. Call objfile_per_bfd_storage's ctor.
10003 (free_objfile_per_bfd_storage): Call objfile_per_bfd_storage's
10004 dtor.
10005 * objfiles.h (objfile_per_bfd_storage): Add ctor. Make
10006 'storage_obstack' field an auto_obstack. In-class initialize all
10007 non-bitfield fields. Make minsyms_read bool.
10008 * symfile.c (read_symbols): Adjust.
10009
a4d1e79a
AH
100102017-06-27 Alan Hayward <alan.hayward@arm.com>
10011
10012 * remote-sim.c (gdbsim_fetch_register): Use byte_vector.
10013 (gdbsim_store_register): Likewise.
10014
8268c778
PA
100152017-06-27 Pedro Alves <palves@redhat.com>
10016
10017 * c-exp.y (name_obstack): Now an auto_obstack.
10018 (yylex): Use auto_obstack::clear.
10019 (c_parse): Use auto_obstack::clear instead of reinitializing and
10020 freeing the obstack.
10021 * c-lang.c (evaluate_subexp_c): Use auto_obstack.
10022 * d-exp.y (name_obstack): Now an auto_obstack.
10023 (yylex): Use auto_obstack::clear.
10024 (d_parse): Use auto_obstack::clear instead of reinitializing and
10025 freeing the obstack.
10026 * dwarf2loc.c (fetch_const_value_from_synthetic_pointer): Use
10027 auto_obstack.
10028 * dwarf2read.c (create_addrmap_from_index)
10029 (dwarf2_build_psymtabs_hard)
10030 (update_enumeration_type_from_children): Likewise.
10031 * gdb_obstack.h (auto_obstack): New type.
10032 * go-exp.y (name_obstack): Now an auto_obstack.
10033 (build_packaged_name): Use auto_obstack::clear.
10034 (go_parse): Use auto_obstack::clear instead of reinitializing and
10035 freeing the obstack.
10036 * linux-tdep.c (linux_make_mappings_corefile_notes): Use
10037 auto_obstack.
10038 * printcmd.c (printf_wide_c_string, ui_printf): Use auto_obstack.
10039 * rust-exp.y (work_obstack): Now an auto_obstack.
10040 (rust_parse, rust_lex_tests): Use auto_obstack::clear instead of
10041 reinitializing and freeing the obstack.
10042 * utils.c (do_obstack_free, make_cleanup_obstack_free): Delete.
10043 (host_char_to_target): Use auto_obstack.
10044 * utils.h (make_cleanup_obstack_free): Delete declaration.
10045 * valprint.c (generic_emit_char, generic_printstr): Use
10046 auto_obstack.
10047
db665f42
SM
100482017-06-27 Simon Marchi <simon.marchi@ericsson.com>
10049
10050 * darwin-nat.c (darwin_check_new_threads): Don't handle dummy
10051 thread.
10052 (darwin_init_thread_list): Don't update dummy thread.
10053 (darwin_create_inferior, darwin_attach): Don't add a dummy thread.
10054
873c0814
SM
100552017-06-26 Simon Marchi <simon.marchi@ericsson.com>
10056
10057 * record-full.c (netorder16): Remove.
10058
8b5a7a6e
SM
100592017-06-26 Simon Marchi <simon.marchi@ericsson.com>
10060
10061 * common/diagnostics.h: Define macros for GCC.
10062 (DIAGNOSTIC_IGNORE_UNUSED_FUNCTION): New macro.
10063 * common/vec.h: Include diagnostics.h.
10064 (DIAGNOSTIC_IGNORE_UNUSED_VEC_FUNCTION): New macro.
10065 (DEF_VEC_I, DEF_VEC_P, DEF_VEC_O): Ignore -Wunused-function
10066 warning.
10067
d1435379
SM
100682017-06-26 Simon Marchi <simon.marchi@ericsson.com>
10069
10070 * common/diagnostics.h (DIAGNOSTIC_IGNORE_DEPRECATED_REGISTER):
10071 New macro.
10072 * ada-lex.l: Ignore deprecated register warnings.
10073
cc75e0fd
SM
100742017-06-25 Simon Marchi <simon.marchi@ericsson.com>
10075
10076 * main.c (get_init_files): Replace "SYSTEM_GDBINIT +
10077 datadir_len" with "&SYSTEM_GDBINIT[datadir_len]".
10078
07809eaf
SM
100792017-06-25 Simon Marchi <simon.marchi@ericsson.com>
10080
10081 * dtrace-probe.c (dtrace_process_dof_probe): Put semi-colon on
10082 its own line.
10083
f076f034
SM
100842017-06-25 Simon Marchi <simon.marchi@ericsson.com>
10085
10086 * nat/x86-dregs.c (x86_show_dr): Print registers one per line.
10087
0dd5cbc5
AH
100882017-06-23 Alan Hayward <alan.hayward@arm.com>
10089
10090 * xtensa-tdep.c (XTENSA_MAX_REGISTER_SIZE): Add.
10091 (xtensa_register_write_masked): Use XTENSA_MAX_REGISTER_SIZE.
10092 (xtensa_register_read_masked): Likewise.
10093
d4c6ce5b
SDJ
100942017-06-22 Sergio Durigan Junior <sergiodj@redhat.com>
10095
10096 * common/environ.c (gdb_environ::unset): Update comment.
10097
16892a03
AH
100982017-06-22 Alan Hayward <alan.hayward@arm.com>
10099
10100 * python/py-unwind.c (pyuw_sniffer): Allocate space for
10101 registers.
10102
d7dcbefc
AH
101032017-06-22 Alan Hayward <alan.hayward@arm.com>
10104
10105 * record-full.c (record_full_exec_insn): Use byte_vector.
10106
b30ff123
YQ
101072017-06-22 Yao Qi <yao.qi@linaro.org>
10108
10109 * regformats/i386/amd64-avx-mpx-avx512-pku-linux.dat: Regenerated.
10110 * regformats/i386/amd64-avx-mpx-avx512-pku.dat: Regenerated.
10111
4fa847d7
AH
101122017-06-22 Alan Hayward <alan.hayward@arm.com>
10113
10114 * remote.c (cached_reg): Move from here...
10115 * regcache.h (cached_reg): ...to here.
10116 * python/py-unwind.c (struct reg_info): Remove.
10117 (cached_frame_info): Use cached_reg_t.
10118 (pyuw_prev_register): Likewise.
10119 (pyuw_sniffer): Use cached_reg_t and allocate registers.
10120 (pyuw_dealloc_cache): Free all registers.
10121
f4906a9a
PA
101222017-06-22 Pedro Alves <palves@redhat.com>
10123 Simon Marchi <simon.marchi@ericsson.com>
10124
10125 * unittests/environ-selftests.c (run_tests): Ignore -Wself-move
10126 warning.
10127 * common/diagnostics.h: New file.
10128
b45a1208
PA
101292017-06-22 Pedro Alves <palves@redhat.com>
10130
10131 * common/agent.h: Add include guards.
10132
e4da2c61
SM
101332017-06-21 Simon Marchi <simon.marchi@ericsson.com>
10134
10135 * target.h (struct target_ops) <to_xfer_partial>: Update doc to
10136 talk about addressable units instead of bytes.
10137
96160d60
SDJ
101382017-06-20 Sergio Durigan Junior <sergiodj@redhat.com>
10139
10140 * common/environ.c (gdb_environ::unset): Use '::iterator' instead
10141 of '::const_iterator'.
10142
9a6c7d9c
SDJ
101432017-06-20 Sergio Durigan Junior <sergiodj@redhat.com>
10144
10145 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
10146 'unittests/environ-selftests.c'.
10147 (SUBDIR_UNITTESTS_OBS): Add 'environ-selftests.o'.
10148 * charset.c (find_charset_names): Declare object 'iconv_env'.
10149 Update code to use 'iconv_env' object. Remove call to
10150 'free_environ'.
10151 * common/environ.c: Include <utility>.
10152 (make_environ): Delete function.
10153 (free_environ): Delete function.
10154 (gdb_environ::clear): New function.
10155 (gdb_environ::operator=): New function.
10156 (gdb_environ::get): Likewise.
10157 (environ_vector): Delete function.
10158 (set_in_environ): Delete function.
10159 (gdb_environ::set): New function.
10160 (unset_in_environ): Delete function.
10161 (gdb_environ::unset): New function.
10162 (gdb_environ::envp): Likewise.
10163 * common/environ.h: Include <vector>.
10164 (struct gdb_environ): Delete; transform into...
10165 (class gdb_environ): ... this class.
10166 (free_environ): Delete prototype.
10167 (init_environ, get_in_environ, set_in_environ, unset_in_environ,
10168 environ_vector): Likewise.
10169 * infcmd.c (run_command_1): Update code to call
10170 'envp' from 'gdb_environ' class.
10171 (environment_info): Update code to call methods from 'gdb_environ'
10172 class.
10173 (unset_environment_command): Likewise.
10174 (path_info): Likewise.
10175 (path_command): Likewise.
10176 * inferior.c (inferior::~inferior): Delete call to 'free_environ'.
10177 (inferior::inferior): Initialize 'environment' using the host's
10178 information.
10179 * inferior.h: Remove forward declaration of 'struct gdb_environ'.
10180 Include "environ.h".
10181 (class inferior) <environment>: Change type from 'struct
10182 gdb_environ' to 'gdb_environ'.
10183 * mi/mi-cmd-env.c (mi_cmd_env_path): Update code to call
10184 methods from 'gdb_environ' class.
10185 * solib.c (solib_find_1): Likewise
10186 * unittests/environ-selftests.c: New file.
10187
75c554cf
YQ
101882017-06-20 Yao Qi <yao.qi@linaro.org>
10189
10190 * features/i386/i386-linux.xml: Exchange the order of including
10191 32bit-linux.xml and 32bit-sse.xml.
10192 * features/i386/i386-linux.c: Regenerated.
10193
72ddacb7
YQ
101942017-06-20 Yao Qi <yao.qi@linaro.org>
10195
10196 * target-descriptions.c (tdesc_reg): Add ctor, dtor.
10197 Delete copy ctor and assignment operator.
10198 (tdesc_type): Likewise.
10199 (tdesc_feature): Likewise.
10200 (tdesc_free_reg): Remove.
10201 (tdesc_create_reg): Use new.
10202 (tdesc_free_type): Remove.
10203 (tdesc_create_vector): Use new.
10204 (tdesc_create_union): Likewise.
10205 (tdesc_create_flags): Likewise.
10206 (tdesc_create_enum): Likewise.
10207 (tdesc_free_feature): Delete.
10208 (free_target_description): Use delete.
10209
325c9fd4
JB
102102017-06-19 John Baldwin <jhb@FreeBSD.org>
10211
10212 * mips-tdep.c (print_gp_register_row): Don't error for unavailable
10213 registers.
10214
16b7a719
PA
102152017-06-19 Pedro Alves <palves@redhat.com>
10216
10217 * dwarf2read.c (write_psymtabs_to_index): Construct file_closer
10218 after gdb::unlinker.
10219
1c8e01c9
SDJ
102202017-06-19 Sergio Durigan Junior <sergiodj@redhat.com>
10221
10222 * mi/mi-cm-env.c (_initialize_mi_cmd_env): Use getenv instead of
10223 gdb_environ to access an environment variable.
10224
ffce45d2
TP
102252017-06-18 Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
10226
10227 * nat/linux-ptrace.c (linux_fork_to_function): Add cast to
10228 gdb_byte*.
10229
1d4fbac9
SM
102302017-06-17 Simon Marchi <simon.marchi@ericsson.com>
10231
10232 * nat/fork-inferior.h (trace_start_error): Add ATTRIBUTE_PRINTF.
10233
8465943a
SM
102342017-06-17 Simon Marchi <simon.marchi@ericsson.com>
10235
10236 * configure: Re-generate.
10237 * warning.m4 (build_warnings): Add -Wno-mismatched-tags.
10238
3e019bdc
SM
102392017-06-17 Simon Marchi <simon.marchi@ericsson.com>
10240
10241 * configure: Re-generate.
10242 * warning.m4: Pass -Werror to compiler when checking for
10243 supported warning flags.
10244
cf0dd6f0
SM
102452017-06-17 Simon Marchi <simon.marchi@ericsson.com>
10246
10247 * Makefile.in (COMPILE.pre): Add "-x c++".
10248
6f98355c
YQ
102492017-06-16 Alan Hayward <alan.hayward@arm.com>
10250 Pedro Alves <palves@redhat.com>
10251 Yao Qi <yao.qi@linaro.org>
10252
10253 * defs.h (RequireLongest): New.
10254 (extract_integer): Declare function template.
10255 (extract_signed_integer): Remove the declaration, but define it
10256 static inline.
10257 (extract_unsigned_integer): Likewise.
10258 (store_integer): Declare function template.
10259 (store_signed_integer): Remove the declaration, but define it
10260 static inline.
10261 (store_unsigned_integer): Likewise.
10262 * findvar.c (extract_integer): New function template.
10263 (extract_signed_integer): Remove.
10264 (extract_unsigned_integer): Remove.
10265 (extract_integer<LONGEST>, extract_integer<ULONGEST>): Explicit
10266 instantiations.
10267 (store_integer): New function template.
10268 (store_signed_integer): Remove.
10269 (store_unsigned_integer): Remove.
10270 (store_integer): Explicit instantiations.
10271 * regcache.c (regcache_raw_read_signed): Update.
10272 (regcache::raw_read): New function.
10273 (regcache::raw_read_signed): Remove.
10274 (regcache::raw_read_unsigned): Remove.
10275 (regcache_raw_read_unsigned): Update.
10276 (regcache_raw_write_unsigned): Update.
10277 (regcache::raw_write_signed): Remove.
10278 (regcache::raw_write): New function.
10279 (regcache_cooked_read_signed): Update.
10280 (regcache::raw_write_unsigned): Remove.
10281 (regcache::cooked_read_signed): Remove.
10282 (regcache_cooked_read_unsigned): Update.
10283 (regcache::cooked_read_unsigned): Remove.
10284 (regcache_cooked_write_signed): Update.
10285 (regcache_cooked_write_unsigned): Update.
10286 * regcache.h (regcache) <raw_read_signed>: Remove.
10287 <raw_write_signed, raw_read_unsigned, raw_write_unsigned>: Remove.
10288 <raw_read, raw_write>: New.
10289 <cooked_read_signed, cooked_write_signed>: Remove.
10290 <cooked_write_unsigned, cooked_read_unsigned>: Remove.
10291 <cooked_read, cooked_write>: New.
10292 * sh64-tdep.c (sh64_pseudo_register_read): Update.
10293 (sh64_pseudo_register_write): Update.
10294
a87dc45a
AK
102952017-06-16 Anton Kolesov <anton.kolesov@synopsys.com>
10296
10297 * arc-tdep.c (arc_disassembler_options): New variable.
10298 (arc_gdbarch_init): Set and use it. Use arc_delayed_print_insn instead
10299 of default_print_insn.
10300 (arc_delayed_print_insn): Set info->section when needed,
10301 use default_print_insn to retrieve a disassembler.
10302
45159d6a
SDJ
103032017-06-14 Sergio Durigan Junior <sergiodj@redhat.com>
10304
10305 PR gdb/21574
10306 * infcmd.c (_initialize_infcmd): Expand "help run" documentation
10307 to mention $SHELL and startup-with-shell.
10308
b46c4cf0
MF
103092017-06-14 Max Filippov <jcmvbkbc@gmail.com>
10310
10311 * MAINTAINERS: Move Maxim Grigoriev to the Past Maintainers.
10312
6394c606
YQ
103132017-06-14 Yao Qi <yao.qi@linaro.org>
10314
10315 * aarch64-tdep.c (aarch64_gdb_print_insn): Call
10316 default_print_insn instead of print_insn_aarch64.
10317 * arm-tdep.c (gdb_print_insn_arm): Call
10318 default_print_insn instead of print_insn_big_arm
10319 and print_insn_little_arm.
10320 * i386-tdep.c (i386_print_insn): Call default_print_insn
10321 instead of print_insn_i386.
10322 * ia64-tdep.c (ia64_print_insn): Call
10323 default_print_insn instead of print_insn_ia64.
10324 * mips-tdep.c (gdb_print_insn_mips): Call
10325 default_print_insn instead of print_insn_big_mips
10326 and print_insn_little_mips.
10327 * spu-tdep.c (gdb_print_insn_spu): Call default_print_insn
10328 instead of print_insn_spu.
10329
d5722aa2
PA
103302017-06-14 Pedro Alves <palves@redhat.com>
10331
10332 * ada-lang.c: Include "common/byte-vector.h".
10333 (ada_value_primitive_packed_val): Use gdb::byte_vector.
10334 * charset.c (wchar_iterator::iterate): Resize the vector instead
10335 of reserving it.
10336 * common/byte-vector.h: Include "common/def-vector.h".
10337 (wchar_iterator::m_out): Now a gdb::def_vector<gdb_wchar_t>.
10338 * cli/cli-dump.c: Include "common/byte-vector.h".
10339 (dump_memory_to_file, restore_binary_file): Use gdb::byte_vector.
10340 * common/byte-vector.h: New file.
10341 * common/def-vector.h: New file.
10342 * common/default-init-alloc.h: New file.
10343 * dwarf2loc.c: Include "common/byte-vector.h".
10344 (rw_pieced_value): Use gdb::byte_vector, and resize the vector
10345 instead of reserving it.
10346 * dwarf2read.c: Include "common/byte-vector.h".
10347 (data_buf::m_vec): Now a gdb::byte_vector.
10348 * gdb_regex.c: Include "common/def-vector.h".
10349 (compiled_regex::compiled_regex): Use gdb::def_vector<char>.
10350 * mi/mi-main.c: Include "common/byte-vector.h".
10351 (mi_cmd_data_read_memory): Use gdb::byte_vector.
10352 * printcmd.c: Include "common/byte-vector.h".
10353 (print_scalar_formatted): Use gdb::byte_vector.
10354 * valprint.c: Include "common/byte-vector.h".
10355 (maybe_negate_by_bytes, print_decimal_chars): Use
10356 gdb::byte_vector.
10357
01ec7a27
SM
103582017-06-13 Simon Marchi <simon.marchi@ericsson.com>
10359
10360 * darwin-nat.c: Include "nat/fork-inferior.h".
10361
848d9074
SM
103622017-06-13 Simon Marchi <simon.marchi@ericsson.com>
10363
10364 * configure.nat: Factor out Darwin bits that are not
10365 architecture-specific. Add fork-inferior.o.
10366
3b912944
SM
103672017-06-13 Simon Marchi <simon.marchi@ericsson.com>
10368
10369 * configure.nat: Factor out AIX bits that are not
10370 architecture-specific. Add fork-inferior.o.
10371
55acdf22
AA
103722017-06-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
10373
10374 * dwarf2loc.c (rw_pieced_value): New. Merge logic from...
10375 (read_pieced_value, write_pieced_value): ...here. Reduce to
10376 wrappers that just call rw_pieced_value.
10377
f65e2044
AA
103782017-06-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
10379
10380 * dwarf2loc.c (write_pieced_value): When writing the data for a
10381 memory piece, use write_memory_with_notification instead of
10382 write_memory.
10383
23f945bf
AA
103842017-06-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
10385
10386 * valops.c (read_value_memory): Change embedded_offset to
10387 represent a bit offset instead of a byte offset.
10388 * value.h (read_value_memory): Adjust comment.
10389
f236533e
AA
103902017-06-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
10391
10392 * dwarf2loc.c (read_pieced_value): Remove unnecessary variables
10393 dest_offset_bits and source_offset_bits.
10394 (write_pieced_value): Likewise.
10395
65d84b76
AA
103962017-06-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
10397
10398 * dwarf2loc.c (read_pieced_value): Respect the piece offset, as
10399 given by DW_OP_bit_piece.
10400 (write_pieced_value): Likewise.
10401
242d31ab
AA
104022017-06-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
10403
10404 * dwarf2loc.c (read_pieced_value): Move the buffer allocation and
10405 some other preparations to the places where sufficient information
10406 is available.
10407 (write_pieced_value): Likewise.
10408
03c8af18
AA
104092017-06-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
10410
10411 * dwarf2loc.c (bits_to_bytes): New function.
10412 (read_pieced_value): Fix offset calculations for register pieces
10413 on big-endian targets.
10414 (write_pieced_value): Likewise.
10415
840989c1
AA
104162017-06-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
10417
10418 * dwarf2loc.c (read_pieced_value): Remove buffer_size variable.
10419 (write_pieced_value): Likewise.
10420
359b19bb
AA
104212017-06-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
10422
10423 * dwarf2loc.c (write_pieced_value): When writing to a bit-field,
10424 transfer the source value's least significant bits, instead of its
10425 lowest-addressed ones. Rename type_len to max_offset.
10426 (read_pieced_value): Mirror above changes to write_pieced_value as
10427 applicable.
10428
07c9ca3b
AA
104292017-06-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
10430
10431 * dwarf2loc.c (write_pieced_value): In DWARF_VALUE_MEMORY,
10432 truncate full bytes from dest_offset_bits before using it as an
10433 offset into the buffer.
10434
f1cc9874
AA
104352017-06-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
10436
10437 * dwarf2loc.c (write_pieced_value): Include transfer size in
10438 byte-wise check.
10439
cdaac320
AA
104402017-06-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
10441
10442 * dwarf2loc.c (write_pieced_value): Fix copy/paste error in the
10443 calculation of this_size.
10444
af547a96
AA
104452017-06-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
10446
10447 * dwarf2loc.c (read_pieced_value): Respect parent value's offset
10448 when targeting a bit-field.
10449 (write_pieced_value): Likewise.
10450
ddd7882a
AA
104512017-06-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
10452
10453 * dwarf2loc.c (struct piece_closure) <addr_size>: Remove field.
10454 (allocate_piece_closure): Drop addr_size parameter.
10455 (dwarf2_evaluate_loc_desc_full): Adjust call to
10456 allocate_piece_closure.
10457
e9352324
AA
104582017-06-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
10459
10460 PR gdb/21226
10461 * dwarf2loc.c (read_pieced_value): Anchor stack value pieces at
10462 the LSB end, independent of endianness.
10463
d5d1163e
AA
104642017-06-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
10465
10466 * dwarf2loc.c (write_pieced_value): Fix order of calculations for
10467 size capping.
10468
032bb6ea
YQ
104692017-06-13 Yao Qi <yao.qi@linaro.org>
10470
10471 * mips-linux-nat.c: Move include features/mips*-linux.c to
10472 mips-linux-tdep.c.
10473 (_initialize_mips_linux_nat): Move initialize_tdesc_mips* calls
10474 to mips-linux-tdep.c.
10475 * mips-linux-tdep.c: Include features/mips*-linux.c
10476 (_initialize_mips_linux_tdep): Call initialize_tdesc_mips*
10477 functions.
10478 * mips-linux-tdep.h (tdesc_mips_linux): Declare.
10479 (tdesc_mips_dsp_linux, tdesc_mips64_linux): Declare.
10480 (tdesc_mips64_dsp_linux): Declare.
10481
f12f6bad
TT
104822017-06-12 Tom Tromey <tom@tromey.com>
10483
10484 * valprint.h (val_print_type_code_int): Remove.
10485 * valprint.c (generic_val_print_int): Always call
10486 val_print_scalar_formatted.
10487 (val_print_type_code_int): Remove.
10488 * printcmd.c (print_scalar_formatted): Handle options->format==0.
10489 * f-valprint.c (f_val_print): Use val_print_scalar_formatted.
10490 * c-valprint.c (c_val_print_int): Use val_print_scalar_formatted.
10491 * ada-valprint.c (ada_val_print_num): Use
10492 val_print_scalar_formatted.
10493
d9109c80
TT
104942017-06-12 Tom Tromey <tom@tromey.com>
10495
10496 * printcmd.c (print_scalar_formatted): Unify the two switches.
10497 Don't convert scalars to LONGEST.
10498
4ac0cb1c
TT
104992017-06-12 Tom Tromey <tom@tromey.com>
10500
10501 PR exp/16225:
10502 * valprint.h (print_decimal_chars): Update.
10503 * valprint.c (maybe_negate_by_bytes): New function.
10504 (print_decimal_chars): Add "is_signed" argument.
10505 * printcmd.c (print_scalar_formatted): Update.
10506
30a25466
TT
105072017-06-12 Tom Tromey <tom@tromey.com>
10508
10509 PR exp/16225:
10510 * valprint.h (print_binary_chars, print_hex_chars): Update.
10511 * valprint.c (val_print_type_code_int): Update.
10512 (print_binary_chars): Add "zero_pad" argument.
10513 (emit_octal_digit): New function.
10514 (print_octal_chars): Don't zero-pad.
10515 (print_decimal_chars): Likewise.
10516 (print_hex_chars): Add "zero_pad" argument.
10517 * sh64-tdep.c (sh64_do_fp_register): Update.
10518 * regcache.c (regcache::dump): Update.
10519 * printcmd.c (print_scalar_formatted): Update.
10520 * infcmd.c (default_print_one_register_info): Update.
10521
b3464d03
PA
105222017-06-12 Pedro Alves <palves@redhat.com>
10523 Alan Hayward <alan.hayward@arm.com>
10524
10525 * mips-tdep.c (MAX_MIPS_ABI_REGSIZE): New.
10526 (mips_eabi_push_dummy_call): Rename local 'regsize' to
10527 'abi_regsize'. Rename local array 'valbuf' to 'ref_valbuf', and
10528 use MAX_MIPS_ABI_REGSIZE instead of MAX_REGISTER_SIZE to size it.
10529 Assert that abi_regsize bytes fit in 'ref_valbuf'.
10530
4b76cda9
PA
105312017-06-12 Pedro Alves <palves@redhat.com>
10532
10533 * dwarf2read.c (mapped_symtab::data): Now a vector of
10534 symtab_index_entry instead of vector of
10535 std::unique_ptr<symtab_index_entry>. All users adjusted to check
10536 whether an element's name is NULL instead of checking whether the
10537 element itself is NULL.
10538 (find_slot): Change return type. Adjust.
10539 (hash_expand, , add_index_entry, uniquify_cu_indices)
10540 (write_hash_table): Adjust.
10541
e8f8bcb3
PA
105422017-06-12 Pedro Alves <palves@redhat.com>
10543
10544 * dwarf2read.c (recursively_count_psymbols): New function.
10545 (write_psymtabs_to_index): Call it to compute number of psyms and
10546 pass estimate size of psyms_seen to unordered_set's ctor.
10547
70a1152b
PA
105482017-06-12 Pedro Alves <palves@redhat.com>
10549
10550 * dwarf2read.c (write_hash_table): Check if key already exists
10551 before emplacing.
10552
c2f134ac
PA
105532017-06-12 Pedro Alves <palves@redhat.com>
10554
10555 * dwarf2read.c (data_buf::append_space): Rename to...
10556 (data_buf::grow): ... this, and make private. Adjust all callers.
10557 (data_buf::append_uint): New method.
10558 (add_address_entry, write_one_signatured_type)
10559 (write_psymtabs_to_index): Use it.
10560
a81e6d4d
PA
105612017-06-12 Pedro Alves <palves@redhat.com>
10562
10563 * dwarf2read.c (file_write(FILE *, const void *, size_t)): Delete.
10564 (file_write (FILE *, const std::vector<Elem>&)): Delete.
10565 (data_buf::file_write): Call ::fwrite directly.
10566
6fd931f2
PA
105672017-06-12 Pedro Alves <palves@redhat.com>
10568
10569 * dwarf2read.c (uniquify_cu_indices): Use std::unique and
10570 std::vector::erase.
10571
bc8f2430
JK
105722017-06-12 Jan Kratochvil <jan.kratochvil@redhat.com>
10573
10574 Code cleanup: C++ify .gdb_index producer.
10575 * dwarf2read.c: Include <unordered_set> and <unordered_map>.
10576 (MAYBE_SWAP) [WORDS_BIGENDIAN]: Cast to offset_type.
10577 (struct strtab_entry, hash_strtab_entry, eq_strtab_entry)
10578 (create_strtab, add_string): Remove.
10579 (file_write, data_buf): New.
10580 (struct symtab_index_entry): Use std::vector for cu_indices.
10581 (struct mapped_symtab): Use std::vector for data.
10582 (hash_symtab_entry, eq_symtab_entry, delete_symtab_entry)
10583 (create_symbol_hash_table, create_mapped_symtab, cleanup_mapped_symtab):
10584 Remove.
10585 (find_slot): Change return type. Update it to the new data structures.
10586 (hash_expand, add_index_entry): Update it to the new data structures.
10587 (offset_type_compare): Remove.
10588 (uniquify_cu_indices): Update it to the new data structures.
10589 (c_str_view, c_str_view_hasher, vector_hasher): New.
10590 (add_indices_to_cpool): Remove.
10591 (write_hash_table): Update it to the new data structures.
10592 (struct psymtab_cu_index_map, hash_psymtab_cu_index)
10593 (eq_psymtab_cu_index): Remove.
10594 (psym_index_map): New typedef.
10595 (struct addrmap_index_data): Change addr_obstack pointer to data_buf
10596 reference and std::unordered_map for cu_index_htab.
10597 (add_address_entry, add_address_entry_worker, write_address_map)
10598 (write_psymbols): Update it to the new data structures.
10599 (write_obstack): Remove.
10600 (struct signatured_type_index_data): Change types_list to a data_buf
10601 reference and psyms_seen to a std::unordered_set reference.
10602 (write_one_signatured_type, recursively_write_psymbols)
10603 (write_psymtabs_to_index): Update it to the new data structures.
10604
c4dcb155
SM
106052017-06-11 Simon Marchi <simon.marchi@ericsson.com>
10606
10607 * NEWS (Changes since GDB 8.0): Announce {set,show} debug
10608 separate-debug-file commands.
10609 * symfile.h (separate_debug_file_debug): New global.
10610 * symfile.c (separate_debug_file_debug): New global.
10611 (separate_debug_file_exists, find_separate_debug_file): Add
10612 debug output.
10613 (_initialize_symfile): Add "set debug separate-debug-file"
10614 command.
10615 * build-id.c (build_id_to_debug_bfd,
10616 find_separate_debug_file_by_buildid): Add debug output.
10617
6d45d4b4
SM
106182017-06-10 Simon Marchi <simon.marchi@polymtl.ca>
10619
10620 * gdbarch.sh (displaced_step_free_closure): Remove.
10621 * gdbarch.h, gdbarch.c: Re-generate.
10622 * aarch64-linux-tdep.c (aarch64_linux_init_abi): Don't set
10623 displaced_step_free_closure.
10624 * amd64-linux-tdep.c (amd64_linux_init_abi_common): Likewise.
10625 * arm-linux-tdep.c (arm_linux_init_abi): Likewise.
10626 * i386-linux-tdep.c (i386_linux_init_abi): Likewise.
10627 * rs6000-aix-tdep.c (rs6000_aix_init_osabi): Likewise.
10628 * rs6000-tdep.c (rs6000_gdbarch_init): Likewise.
10629 * s390-linux-tdep.c (s390_gdbarch_init): Likewise.
10630 * arch-utils.h (simple_displaced_step_free_closure): Remove.
10631 * arch-utils.c (simple_displaced_step_free_closure): Remove.
10632 * infrun.c (displaced_step_clear): Call xfree instead of
10633 gdbarch_displaced_step_free_closure.
10634
2f91880f
SDJ
106352017-06-08 Sergio Durigan Junior <sergiodj@redhat.com>
10636
10637 * common/common-utils.c (stringify_argv): Check for "arg[0] !=
10638 NULL".
10639
b8b6e72f
AH
106402017-06-08 Alan Hayward <alan.hayward@arm.com>
10641
10642 * mn10300-tdep.c (MN10300_MAX_REGISTER_SIZE): Add.
10643 (mn10300_extract_return_value): Use MN10300_MAX_REGISTER_SIZE.
10644 (mn10300_push_dummy_call): Likewise.
10645
5369082e
AH
106462017-06-08 Alan Hayward <alan.hayward@arm.com>
10647
10648 * mi/mi-main.c (register_changed_p): Use value_contents_eq.
10649
ff4ca5ac
AH
106502017-06-08 Alan Hayward <alan.hayward@arm.com>
10651
10652 * mi/mi-main.c (register_changed_p): Use cooked_read_value.
10653
aefd8b33
SDJ
106542017-06-07 Sergio Durigan Junior <sergiodj@redhat.com>
10655
10656 * NEWS (Changes since GDB 8.0): Announce that GDBserver is now
10657 able to start inferiors using a shell.
10658 (New remote packets): Announce new packet "QStartupWithShell".
10659 * remote.c: Add PACKET_QStartupWithShell.
10660 (extended_remote_create_inferior): Handle new
10661 PACKET_QStartupWithShell.
10662 (remote_protocol_features) <QStartupWithShell>: New entry for
10663 PACKET_QStartupWithShell.
10664 (_initialize_remote): Call "add_packet_config_cmd" for
10665 QStartupShell.
10666
2090129c
SDJ
106672017-06-07 Sergio Durigan Junior <sergiodj@redhat.com>
10668 Pedro Alves <palves@redhat.com>
10669
10670 * Makefile.in (HFILES_NO_SRCDIR): Add "common/common-inferior.h"
10671 and "nat/fork-inferior.h".
10672 * common/common-inferior.h: New file, with contents from
10673 "gdb/inferior.h".
10674 * commom/common-utils.c: Include "common-utils.h".
10675 (stringify_argv): New function.
10676 * common/common-utils.h (stringify_argv): New prototype.
10677 * configure.nat: Add "fork-inferior.o" as a dependency for
10678 "*linux*", "fbsd*" and "nbsd*" hosts.
10679 * corefile.c (get_exec_file): Update comment.
10680 * darwin-nat.c (darwin_ptrace_him): Call "gdb_startup_inferior"
10681 instead of "startup_inferior".
10682 (darwin_create_inferior): Call "add_thread_silent" after
10683 "fork_inferior".
10684 * fork-child.c: Cleanup unnecessary includes.
10685 (SHELL_FILE): Move to "common/common-fork-child.c".
10686 (environ): Likewise.
10687 (exec_wrapper): Initialize.
10688 (get_exec_wrapper): New function.
10689 (breakup_args): Move to "common/common-fork-child.c"; rename to
10690 "breakup_args_for_exec".
10691 (escape_bang_in_quoted_argument): Move to
10692 "common/common-fork-child.c".
10693 (saved_ui): New variable.
10694 (prefork_hook): New function.
10695 (postfork_hook): Likewise.
10696 (postfork_child_hook): Likewise.
10697 (gdb_startup_inferior): Likewise.
10698 (fork_inferior): Move to "common/common-fork-child.c". Update
10699 function to support gdbserver.
10700 (startup_inferior): Likewise.
10701 * gdbcore.h (get_exec_file): Remove declaration.
10702 * gnu-nat.c (gnu_create_inferior): Call "gdb_startup_inferior"
10703 instead of "startup_inferior". Call "add_thread_silent" after
10704 "fork_inferior".
10705 * inf-ptrace.c: Include "nat/fork-inferior.h" and "utils.h".
10706 (inf_ptrace_create_inferior): Call "gdb_startup_inferior"
10707 instead of "startup_inferior". Call "add_thread_silent" after
10708 "fork_inferior".
10709 * inferior.h: Include "common-inferior.h".
10710 (trace_start_error): Move to "common/common-utils.h".
10711 (trace_start_error_with_name): Likewise.
10712 (fork_inferior): Move prototype to "nat/fork-inferior.h".
10713 (startup_inferior): Likewise.
10714 (gdb_startup_inferior): New prototype.
10715 * nat/fork-inferior.c: New file, with contents from "fork-child.c".
10716 * nat/fork-inferior.h: New file.
10717 * procfs.c (procfs_init_inferior): Call "gdb_startup_inferior"
10718 instead of "startup_inferior". Call "add_thread_silent" after
10719 "fork_inferior".
10720 * target.h (target_terminal_init): Move prototype to
10721 "target/target.h".
10722 (target_terminal_inferior): Likewise.
10723 (target_terminal_ours): Likewise.
10724 * target/target.h (target_terminal_init): New prototype, moved
10725 from "target.h".
10726 (target_terminal_inferior): Likewise.
10727 (target_terminal_ours): Likewise.
10728 * utils.c (gdb_flush_out_err): New function.
10729
043a4934
SDJ
107302017-06-07 Sergio Durigan Junior <sergiodj@redhat.com>
10731
10732 * Makefile.in (HFILES_NO_SRCDIR): Add "common/common-gdbthread.h".
10733 * common/common-gdbthread.h: New file, with parts from
10734 "gdb/gdbthread.h".
10735 * gdbthread.h: Include "common-gdbthread.h".
10736 (switch_to_thread): Moved to "common/common-gdbthread.h".
10737
15652511
SDJ
107382017-06-07 Sergio Durigan Junior <sergiodj@redhat.com>
10739
10740 * Makefile.in (SFILES): Add "common/job-control.c".
10741 (HFILES_NO_SRCDIR): Add "common/job-control.h".
10742 (COMMON_OBS): Add "job-control.o".
10743 * common/job-control.c: New file, with contents from
10744 "gdb/inflow.c".
10745 * common/job-control.h: New file, with contents from "terminal.h".
10746 * fork-child.c: Include "job-control.h".
10747 * inflow.c: Include "job-control.h".
10748 (gdb_setpgid): Move to "common/common-inflow.c".
10749 (_initialize_inflow): Move setting of "job_control" to
10750 "handle_job_control".
10751 * terminal.h (job_control): Moved to "common/common-terminal.h".
10752 (gdb_setpgid): Likewise.
10753 * top.c: Include "job_control.h".
10754 * utils.c: Likewise.
10755 (job_control): Moved to "job-control.c".
10756
2d7cc5c7
PA
107572017-06-07 Pedro Alves <palves@redhat.com>
10758
10759 * Makefile.in (SFILES): Add gdb_regex.c.
10760 (COMMON_OBS): Add gdb_regex.o.
10761 * ada-lang.c (ada_add_standard_exceptions)
10762 (ada_add_exceptions_from_frame, name_matches_regex)
10763 (ada_add_global_exceptions, ada_exceptions_list_1): Change regex
10764 parameter type to compiled_regex. Adjust.
10765 (ada_exceptions_list): Use compiled_regex.
10766 * break-catch-throw.c (exception_catchpoint::pattern): Now a
10767 std::unique_ptr<compiled_regex>.
10768 (exception_catchpoint::~exception_catchpoint): Remove regfree
10769 call.
10770 (check_status_exception_catchpoint): Adjust to use compiled_regex.
10771 (handle_gnu_v3_exceptions): Adjust to use compiled_regex.
10772 * breakpoint.c (solib_catchpoint::compiled): Now a
10773 std::unique_ptr<compiled_regex>.
10774 (solib_catchpoint::~solib_catchpoint): Remove regfree call.
10775 (check_status_catch_solib): Adjust to use compiled_regex.
10776 (add_solib_catchpoint): Adjust to use compiled_regex.
10777 * cli/cli-cmds.c (apropos_command): Use compiled_regex.
10778 * cli/cli-decode.c (apropos_cmd): Change regex parameter to
10779 compiled_regex reference. Adjust to use it.
10780 * cli/cli-decode.h: Remove struct re_pattern_buffer forward
10781 declaration. Include "gdb_regex.h".
10782 (apropos_cmd): Change regex parameter to compiled_regex reference.
10783 * gdb_regex.c: New file.
10784 * gdb_regex.h (make_regfree_cleanup, get_regcomp_error): Delete
10785 declarations.
10786 (class compiled_regex): New.
10787 * linux-tdep.c: Include "common/gdb_optional.h".
10788 (struct mapping_regexes): New, factored out from
10789 mapping_is_anonymous_p, and adjusted to use compiled_regex.
10790 (mapping_is_anonymous_p): Use mapping_regexes wrapped in a
10791 gdb::optional and remove cleanups. Adjust to compiled_regex.
10792 * probe.c: Include "common/gdb_optional.h".
10793 (collect_probes): Use compiled_regex and gdb::optional and remove
10794 cleanups.
10795 * skip.c: Include "common/gdb_optional.h".
10796 (skiplist_entry::compiled_function_regexp): Now a
10797 gdb::optional<compiled_regex>.
10798 (skiplist_entry::compiled_function_regexp_is_valid): Delete field.
10799 (free_skiplist_entry): Remove regfree call.
10800 (compile_skip_regexp, skip_rfunction_p): Adjust to use
10801 compiled_regex and gdb::optional.
10802 * symtab.c: Include "common/gdb_optional.h".
10803 (search_symbols): Use compiled_regex and gdb::optional.
10804 * utils.c (do_regfree_cleanup, make_regfree_cleanup)
10805 (get_regcomp_error, compile_rx_or_error): Delete. Some bits moved
10806 to gdb_regex.c.
10807
50d6adef
AH
108082017-06-07 Alan Hayward <alan.hayward@arm.com>
10809
10810 * regcache.c (regcache::save): Avoid buffer use.
10811 (regcache::dump): Likewise.
10812
4a8a33c8
AH
108132017-06-07 Alan Hayward <alan.hayward@arm.com>
10814
10815 * sh-tdep.c (sh_pseudo_register_read): Remove
10816 MAX_REGISTER_SIZE.
10817 (sh_pseudo_register_write): Likewise.
10818 * sh64-tdep.c (sh64_pseudo_register_read): Likewise.
10819 (sh64_pseudo_register_write): Likewise
10820
d1be909e
AH
108212017-06-07 Alan Hayward <alan.hayward@arm.com>
10822
10823 * aarch64-tdep.c (aarch64_store_return_value): Use
10824 V_REGISTER_SIZE.
10825 (aarch64_pseudo_read_value): Likewise.
10826 (aarch64_pseudo_write): Likewise.
10827
f4a65042
YQ
108282017-06-06 Yao Qi <yao.qi@linaro.org>
10829
10830 * regformats/regdef.h (set_register_cache): Remove the
10831 declaration.
10832
9f7fb0aa
AH
108332017-06-06 Alan Hayward <alan.hayward@arm.com>
10834
10835 * frame.c (frame_unwind_register_signed): Use
10836 frame_unwind_register_value.
10837
e1e01040
PA
108382017-06-06 Pedro Alves <palves@redhat.com>
10839
10840 PR breakpoints/21553
10841 * breakpoint.c (create_breakpoints_sal_default)
10842 (init_breakpoint_sal, create_breakpoint_sal): Use
10843 gdb::unique_xmalloc_ptr for string parameters.
10844 (create_breakpoint): Constify 'extra_string' and 'cond_string'
10845 parameters. Replace cleanups with gdb::unique_xmalloc_ptr.
10846 (base_breakpoint_create_breakpoints_sal)
10847 (bkpt_create_breakpoints_sal, tracepoint_create_breakpoints_sal)
10848 (strace_marker_create_breakpoints_sal)
10849 (create_breakpoints_sal_default): Use gdb::unique_xmalloc_ptr for
10850 string parameters.
10851 * breakpoint.h (breakpoint_ops::create_breakpoints_sal): Use
10852 gdb::unique_xmalloc_ptr for string parameters.
10853 (create_breakpoint): Constify 'extra_string' and 'cond_string'
10854 parameters.
10855
fbe654c8
AH
108562017-06-06 Alan Hayward <alan.hayward@arm.com>
10857
10858 * alpha-tdep.c (alpha_register_to_value): Use
10859 get_frame_register_value.
10860 (alpha_value_to_register): Use ALPHA_REGISTER_SIZE.
10861
ae0d01d6
AH
108622017-06-06 Alan Hayward <alan.hayward@arm.com>
10863
10864 * ia64-tdep.c (IA64_MAX_FP_REGISTER_SIZE) Add.
10865 (ia64_register_to_value): Use IA64_MAX_FP_REGISTER_SIZE.
10866 (ia64_value_to_register): Likewise.
10867 (ia64_extract_return_value): Likewise.
10868 (ia64_store_return_value): Likewise.
10869 (ia64_push_dummy_call): Likewise.
10870
49cf576c
JB
108712017-06-04 Joel Brobecker <brobecker@adacore.com>
10872
10873 GDB 8.0 released.
10874
26b6a6ab
SM
108752017-06-03 Simon Marchi <simon.marchi@ericsson.com>
10876
10877 * x86-linux-nat.c (struct arch_lwp_info): Remove.
10878
22827c51
SM
108792017-06-03 Simon Marchi <simon.marchi@polymtl.ca>
10880
10881 * linux-nat.c (linux_nat_post_attach_wait): Remove FIRST
10882 parameter.
10883 (linux_nat_attach): Adjust call to linux_nat_post_attach_wait.
10884
0e05cf3a
SM
108852017-06-02 Simon Marchi <simon.marchi@ericsson.com>
10886
10887 * event-loop.c (poll_timers): Unallocate timer using delete
10888 instead of xfree.
10889
c1fc2657
SM
108902017-06-02 Simon Marchi <simon.marchi@polymtl.ca>
10891
10892 * breakpoint.h (struct breakpoint_ops) <dtor>: Remove.
10893 (struct breakpoint) <~breakpoint>: New.
10894 (struct watchpoint): Inherit from breakpoint.
10895 <~watchpoint>: New.
10896 <base>: Remove.
10897 (struct tracepoint): Inherit from breakpoint.
10898 <base>: Remove.
10899 * breakpoint.c (longjmp_breakpoint_ops): Remove.
10900 (struct longjmp_breakpoint): Inherit from breakpoint.
10901 <~longjmp_breakpoint>: New.
10902 <base>: Remove.
10903 (new_breakpoint_from_type): Remove casts.
10904 (watchpoint_in_thread_scope): Remove reference to base field.
10905 (watchpoint_del_at_next_stop): Likewise.
10906 (update_watchpoint): Likewise.
10907 (watchpoint_check): Likewise.
10908 (bpstat_check_watchpoint): Likewise.
10909 (set_longjmp_breakpoint): Likewise.
10910 (struct fork_catchpoint): Inherit from breakpoint.
10911 <base>: Remove.
10912 (struct solib_catchpoint): Inherit from breakpoint.
10913 <~solib_catchpoint>: New.
10914 <base>: Remove.
10915 (dtor_catch_solib): Change to ...
10916 (solib_catchpoint::~solib_catchpoint): ... this.
10917 (breakpoint_hit_catch_solib): Remove reference to base field.
10918 (add_solib_catchpoint): Likewise.
10919 (create_fork_vfork_event_catchpoint): Likewise.
10920 (struct exec_catchpoint): Inherit from breakpoint.
10921 <~exec_catchpoint>: New.
10922 <base>: Remove.
10923 (dtor_catch_exec): Change to ...
10924 (exec_catchpoint::~exec_catchpoint): ... this.
10925 (dtor_watchpoint): Change to ...
10926 (watchpoint::~watchpoint): ... this.
10927 (watch_command_1): Remove reference to base field.
10928 (catch_exec_command_1): Likewise.
10929 (base_breakpoint_dtor): Change to ...
10930 (breakpoint::~breakpoint): ... this.
10931 (base_breakpoint_ops): Remove dtor field value.
10932 (longjmp_bkpt_dtor): Change to ...
10933 (longjmp_breakpoint::~longjmp_breakpoint): ... this.
10934 (strace_marker_create_breakpoints_sal): Remove reference to base
10935 field.
10936 (delete_breakpoint): Don't manually call breakpoint destructor.
10937 (create_tracepoint_from_upload): Remove reference to base field.
10938 (trace_pass_set_count): Likewise.
10939 (initialize_breakpoint_ops): Don't initialize
10940 momentary_breakpoint_ops, don't set dtors.
10941 * ada-lang.c (struct ada_catchpoint): Inherit from breakpoint.
10942 <~ada_catchpoint>: New.
10943 <base>: Remove.
10944 (create_excep_cond_exprs): Remove reference to base field.
10945 (dtor_exception): Change to ...
10946 (ada_catchpoint::~ada_catchpoint): ... this.
10947 (dtor_catch_exception): Remove.
10948 (dtor_catch_exception_unhandled): Remove.
10949 (dtor_catch_assert): Remove.
10950 (create_ada_exception_catchpoint): Remove reference to base
10951 field.
10952 (initialize_ada_catchpoint_ops): Don't set dtors.
10953 * break-catch-sig.c (struct signal_catchpoint): Inherit from
10954 breakpoint.
10955 <~signal_catchpoint>: New.
10956 <base>: Remove.
10957 (signal_catchpoint_dtor): Change to ...
10958 (signal_catchpoint::~signal_catchpoint): ... this.
10959 (create_signal_catchpoint): Remove reference to base field.
10960 (initialize_signal_catchpoint_ops): Don't set dtor.
10961 * break-catch-syscall.c (struct syscall_catchpoint): Inherit
10962 from breakpoint.
10963 <~syscall_catchpoint>: New.
10964 <base>: Remove.
10965 (dtor_catch_syscall): Change to ...
10966 (syscall_catchpoint::~syscall_catchpoint): ... this.
10967 (create_syscall_event_catchpoint): Remove reference to base
10968 field.
10969 (initialize_syscall_catchpoint_ops): Don't set dtor.
10970 * break-catch-throw.c (struct exception_catchpoint): Inherit
10971 from breakpoint.
10972 <~exception_catchpoint>: New.
10973 <base>: Remove.
10974 (dtor_exception_catchpoint): Change to ...
10975 (exception_catchpoint::~exception_catchpoint): ... this.
10976 (handle_gnu_v3_exceptions): Remove reference to base field.
10977 (initialize_throw_catchpoint_ops): Don't set dtor.
10978 * ctf.c (ctf_get_traceframe_address): Remove reference to base
10979 field.
10980 * remote.c (remote_get_tracepoint_status): Likewise.
10981 * tracefile-tfile.c (tfile_get_traceframe_address): Likewise.
10982 * tracefile.c (tracefile_fetch_registers): Likewise.
10983 * tracepoint.c (actions_command): Likewise.
10984 (validate_actionline): Likewise.
10985 (tfind_1): Likewise.
10986 (get_traceframe_location): Likewise.
10987 (find_matching_tracepoint_location): Likewise.
10988 (parse_tracepoint_status): Likewise.
10989 * mi/mi-cmd-break.c (mi_cmd_break_passcount): Likewise.
10990
3b0871f4
SM
109912017-06-02 Simon Marchi <simon.marchi@polymtl.ca>
10992
10993 * breakpoint.c (struct longjmp_breakpoint): New struct.
10994 (is_tracepoint_type): Change return type to bool.
10995 (is_longjmp_type): New function.
10996 (new_breakpoint_from_type): Handle longjmp kinds of breakpoints.
10997 (set_raw_breakpoint_without_location): Use
10998 new_breakpoint_from_type.
10999 (set_raw_breakpoint): Likewise.
11000
a5e364af
SM
110012017-06-02 Simon Marchi <simon.marchi@polymtl.ca>
11002
11003 * breakpoint.c (new_breakpoint_from_type): New function.
11004 (create_breakpoint_sal): Use new_breakpoint_from_type and
11005 unique_ptr.
11006 (create_breakpoint): Likewise.
11007
ae3b3f34
SM
110082017-05-31 Simon Marchi <simon.marchi@ericsson.com>
11009
11010 * memattr.c (mem_info_command): Rename to ...
11011 (info_mem_command): ... this.
11012 (mem_enable_command): Rename to ...
11013 (enable_mem_command): ... this.
11014 (mem_disable_command): Rename to ...
11015 (disable_mem_command): ... this.
11016 (mem_delete_command): Rename to ...
11017 (delete_mem_command): ... this.
11018 (_initialize_mem): Adjust function names.
11019
13ace077
MM
110202017-05-31 Markus Metzger <markus.t.metzger@intel.com>
11021
11022 * btrace.c (handle_pt_insn_events): New.
11023 (ftrace_add_pt): Call handle_pt_insn_events. Rename ERRCODE into
11024 STATUS. Split into this and ...
11025 (handle_pt_insn_event_flags): ... this.
11026
c56ccc05
MM
110272017-05-31 Markus Metzger <markus.t.metzger@intel.com>
11028
11029 * configure.ac: Check for pt_insn_event, struct pt_insn.enabled,
11030 and struct pt_insn.resynced.
11031 * configure: Regenerated.
11032 * config.in: Regenerated.
11033
08c3f6d2
TW
110342017-05-30 Tim Wiederhake <tim.wiederhake@intel.com>
11035
11036 * btrace.c (ftrace_find_call_by_number): New function.
11037 (ftrace_new_function): Store objects, not pointers.
11038 (ftrace_find_call_by_number, ftrace_new_return, ftrace_new_switch,
11039 ftrace_new_gap, ftrace_update_function,
11040 ftrace_compute_global_level_offset, btrace_stich_bts, btrace_clear,
11041 btrace_insn_get, btrace_insn_get_error, btrace_insn_end,
11042 btrace_insn_next, btrace_insn_prev, ptrace_find_insn_by_number,
11043 btrace_ends_with_single_insn, btrace_call_get): Account for
11044 btrace_thread_info::functions now storing objects.
11045 * btrace.h (struct btrace_thread_info): Add constructor.
11046 (struct btrace_thread_info) <functions>: Make std::vector.
11047 (struct btrace_thread_info) <prev, next, up, insn, errcode, flags):
11048 Initialize with default values.
11049 * record-btrace.c (record_btrace_frame_sniffer): Account for
11050 btrace_thread_info::functions now storing objects.
11051
8ffd39f2
TW
110522017-05-30 Tim Wiederhake <tim.wiederhake@intel.com>
11053
11054 * btrace.c: Remove typedef bfun_s.
11055 (ftrace_new_gap): Directly add gaps to the list of gaps.
11056 (btrace_bridge_gaps, btrace_compute_ftrace_bts, pt_btrace_insn_flags,
11057 ftrace_add_pt, btrace_compute_ftrace_pt, btrace_compute_ftrace_1,
11058 btrace_finalize_ftrace, btrace_compute_ftrace): Use std::vector
11059 instead of gdb VEC.
11060
4aeb0dfc
TW
110612017-05-30 Tim Wiederhake <tim.wiederhake@intel.com>
11062
11063 * btrace.c (ftrace_fixup_caller, ftrace_new_return, ftrace_connect_bfun,
11064 ftrace_bridge_gap): Replace references to btrace_thread_info::segment
11065 with btrace_thread_info::next_segment and
11066 btrace_thread_info::prev_segment.
11067 * btrace.h: Remove struct btrace_func_link.
11068 (struct btrace_function): Replace pair of function segment pointers
11069 with pair of indices.
11070 * python/py-record-btrace.c (btpy_call_prev_sibling,
11071 btpy_call_next_sibling): Replace references to
11072 btrace_thread_info::segment with btrace_thread_info::next_segment and
11073 btrace_thread_info::prev_segment.
11074 * record-btrace.c (record_btrace_frame_this_id): Use
11075 btrace_find_call_by_number.
11076
eb8f2b9c
TW
110772017-05-30 Tim Wiederhake <tim.wiederhake@intel.com>
11078
11079 * btrace.c (ftrace_new_function, ftrace_fixup_level,
11080 ftrace_connect_bfun, ftrace_bridge_gap, btrace_bridge_gaps,
11081 btrace_insn_next, btrace_insn_prev): Remove references to
11082 btrace_thread_info::flow.
11083 * btrace.h (struct btrace_function): Remove FLOW.
11084
42bfe59e
TW
110852017-05-30 Tim Wiederhake <tim.wiederhake@intel.com>
11086
11087 * btrace.c (ftrace_find_call_by_number): New function.
11088 (ftrace_update_caller, ftrace_new_call, ftrace_new_tailcall,
11089 ftrace_get_caller, ftrace_find_call, ftrace_new_return,
11090 ftrace_match_backtrace, ftrace_connect_bfun, ftrace_connect_backtrace,
11091 ftrace_bridge_gap, btrace_bridge_gaps): Use btrace_function::up as an
11092 index.
11093 * btrace.h (struct btrace_function): Turn UP into an index.
11094 * python/py-record-btrace.c (btpy_call_up): Use btrace_function::up
11095 as an index.
11096 * record-btrace.c (record_btrace_frame_unwind_stop_reason,
11097 record_btrace_frame_prev_register, record_btrace_frame_sniffer,
11098 record_btrace_tailcall_frame_sniffe): Use btrace_find_call_by_number.
11099
b54b03bd
TW
111002017-05-30 Tim Wiederhake <tim.wiederhake@intel.com>
11101
11102 * btrace.c (ftrace_new_function, ftrace_new_call, ftrace_new_tailcall,
11103 ftrace_new_return, ftrace_new_switch, ftrace_new_gap,
11104 ftrace_update_function, ftrace_compute_global_level_offset,
11105 btrace_compute_ftrace_bts, ftrace_add_pt, btrace_compute_ftrace_pt,
11106 btrace_stitch_bts, btrace_fetch, btrace_clear, btrace_insn_number,
11107 btrace_insn_end, btrace_is_empty): Remove references to
11108 btrace_thread_info::begin and btrace_thread_info::end.
11109 * btrace.h (struct btrace_thread_info): Remove BEGIN and END.
11110 (struct btrace_thread_info) <functions>: Adjust comment.
11111 * record-btrace.c (record_btrace_start_replaying): Remove reference to
11112 btrace_thread_info::begin.
11113
8286623c
TW
111142017-05-30 Tim Wiederhake <tim.wiederhake@intel.com>
11115
11116 * btrace.c (ftrace_new_function, ftrace_new_call, ftrace_new_tailcall,
11117 ftrace_new_return, ftrace_new_switch, ftrace_new_gap,
11118 ftrace_update_function): Remove arguments that implicitly were always
11119 BTINFO->END.
11120 (btrace_compute_ftrace_bts, ftrace_add_pt, btrace_compute_ftrace_pt):
11121 Don't pass BTINFO->END.
11122
a0f1b963
TW
111232017-05-30 Tim Wiederhake <tim.wiederhake@intel.com>
11124
11125 * btrace.c: (btrace_insn_get, btrace_insn_get_error, btrace_insn_number,
11126 btrace_insn_begin, btrace_insn_end, btrace_insn_next, btrace_insn_prev,
11127 btrace_find_insn_by_number): Replace function segment pointer with
11128 index.
11129 (btrace_insn_cmp): Simplify.
11130 * btrace.h: (struct btrace_insn_iterator) Rename index to
11131 insn_index. Replace function segment pointer with index into function
11132 segment vector.
11133 * record-btrace.c (record_btrace_call_history): Replace function
11134 segment pointer use with index.
11135 (record_btrace_frame_sniffer): Retrieve function call segment through
11136 vector.
11137 (record_btrace_set_replay): Remove defunc't safety check.
11138
f158f208
TW
111392017-05-30 Tim Wiederhake <tim.wiederhake@intel.com>
11140
11141 * btrace.c (btrace_ends_with_single_insn): New function.
11142 (btrace_call_get, btrace_call_number, btrace_call_begin,
11143 btrace_call_end, btrace_call_next, btrace_call_prev,
11144 btrace_find_call_by_number): Use index into call segment vector
11145 instead of pointer.
11146 (btrace_call_cmp): Simplify.
11147 * btrace.h (struct btrace_call_iterator): Replace function call segment
11148 pointer with index into vector.
11149 * record-btrace.c (record_btrace_call_history): Use index instead of
11150 pointer.
11151
521103fd
TW
111522017-05-30 Tim Wiederhake <tim.wiederhake@intel.com>
11153
11154 * btrace.c (btrace_insn_begin, btrace_insn_end,
11155 btrace_find_insn_by_number): Add btinfo to iterator.
11156 * btrace.h (struct btrace_insn_iterator): Add btinfo.
11157
17b89b34
TW
111582017-05-30 Tim Wiederhake <tim.wiederhake@intel.com>
11159
11160 * btrace.c (ftrace_new_function): Add btrace_thread_info to arguments
11161 and save pointers directly.
11162 (ftrace_new_call, ftrace_new_tailcall, ftrace_new_return,
11163 ftrace_new_switch, ftrace_new_gap, ftrace_update_function,
11164 ftrace_add_pt): Add btrace_thread_info to arguments. Adjust for
11165 changed signature of functions.
11166 (btrace_compute_ftrace_pt): Adjust for changed signature of functions.
11167 (btrace_fetch): Remove code that adds btrace_function pointers to
11168 vector of btrace_functions.
11169 (btrace_clear): Simplify freeing vector of btrace_functions.
11170
2b51eddc
TW
111712017-05-30 Tim Wiederhake <tim.wiederhake@intel.com>
11172
11173 * btrace.c (btrace_fetch, btrace_clear, btrace_find_insn_by_number):
11174 Replace VEC_* with std::vector functions.
11175 * btrace.h: Add include: vector. Remove typedef for DEF_VEC_P.
11176 (struct btrace_thread_info)<functions>: Change type to std::vector.
11177
db6be0d5
SM
111782017-05-30 Simon Marchi <simon.marchi@ericsson.com>
11179
11180 * NEWS (Changes in GDB 8.0): Remove extra empty line. Move
11181 "Removed targets and native configurations" up. Merge duplicate
11182 "New commands" sub-sections. Add "New options" sub-sections.
11183
b057297a
AH
111842017-05-26 Alan Hayward <alan.hayward@arm.com>
11185
11186 * defs.h (copy_integer_to_size): New declaration.
11187 * findvar.c (copy_integer_to_size): New function.
11188 (do_cint_test): New selftest function.
11189 (copy_integer_to_size_test): Likewise.
11190 (_initialize_findvar): Likewise.
11191 * mips-fbsd-tdep.c (mips_fbsd_supply_reg): Use raw_supply_integer.
11192 (mips_fbsd_collect_reg): Use raw_collect_integer.
11193 * mips-linux-tdep.c (supply_32bit_reg): Use raw_supply_integer.
11194 (mips64_fill_gregset): Use raw_collect_integer
11195 (mips64_fill_fpregset): Use raw_supply_integer.
11196 * regcache.c (regcache::raw_supply_integer): New function.
11197 (regcache::raw_collect_integer): Likewise.
11198 * regcache.h: (regcache::raw_supply_integer): New declaration.
11199 (regcache::raw_collect_integer): Likewise.
11200
b77b02a5
YQ
112012017-05-24 Yao Qi <yao.qi@linaro.org>
11202
11203 * Makefile.in (SFILES): Add gdbarch-selftests.c.
11204 (COMMON_OBS): Add gdbarch-selftests.o.
11205 * frame.c [GDB_SELF_TESTS] (create_new_frame): New function.
11206 * frame.h [GDB_SELF_TESTS] (create_new_frame): Declare.
11207 * gdbarch-selftests.c: New file.
11208 * regcache.h (regcache) <~regcache>: Mark it virtual if
11209 GDB_SELF_TEST.
11210 <raw_write>: Likewise.
11211
e521e87e
YQ
112122017-05-24 Yao Qi <yao.qi@linaro.org>
11213
11214 * regcache.c (current_regcache): Change it to
11215 regcache::current_regcache.
11216 (regcache_observer_target_changed): Update.
11217 (regcache_thread_ptid_changed): Make it a regcache static
11218 method.
11219 (regcache_thread_ptid_changed): Update.
11220 (class regcache_access): New.
11221 (current_regcache_test): Update.
11222 (_initialize_regcache): Update.
11223 * regcache.h: Include forward_list.
11224 (regcache): Declare regcache_thread_ptid_changed and declare
11225 registers_changed_ptid as friend.
11226
d8e07dda
YQ
112272017-05-24 Yao Qi <yao.qi@linaro.org>
11228
11229 * i387-tdep.c (i387_register_to_value): Use register_size
11230 instead of TYPE_LENGTH.
11231 * m68k-tdep.c (m68k_register_to_value): Likewise.
11232
8c8f9122
YQ
112332017-05-24 Yao Qi <yao.qi@linaro.org>
11234
11235 * i387-tdep.c (i387_convert_register_p): Return false if type
11236 code isn't TYPE_CODE_FLT.
11237
68fce50f
YQ
112382017-05-24 Yao Qi <yao.qi@linaro.org>
11239
11240 * alpha-tdep.c (alpha_convert_register_p): Return true if type
11241 length is 4.
11242 (alpha_register_to_value): Remove type length check.
11243 (alpha_value_to_register): Likewise.
11244
88954b49
YQ
112452017-05-24 Yao Qi <yao.qi@linaro.org>
11246
11247 * ia64-tdep.c (ia64_convert_register_p): Check type's code is
11248 TYPE_CODE_FLT.
11249
e3ec9b69
YQ
112502017-05-24 Yao Qi <yao.qi@linaro.org>
11251
11252 * m68k-tdep.c (m68k_convert_register_p): Check type's code is
11253 TYPE_CODE_FLT or not.
11254
cdd238da
YQ
112552017-05-24 Yao Qi <yao.qi@linaro.org>
11256
11257 * alpha-tdep.c (alpha_gdbarch_init): Use XCNEW instead of XNEW.
11258 * avr-tdep.c (avr_gdbarch_init): Likewise.
11259 * bfin-tdep.c (bfin_gdbarch_init): Likewise.
11260 * cris-tdep.c (cris_gdbarch_init): Likewise.
11261 * ft32-tdep.c (ft32_gdbarch_init): Likewise.
11262 * lm32-tdep.c (lm32_gdbarch_init): Likewise.
11263 * m32r-tdep.c (m32r_gdbarch_init): Likewise.
11264 * m68hc11-tdep.c (m68hc11_gdbarch_init): Likewise.
11265 * mep-tdep.c (mep_gdbarch_init): Likewise.
11266 * microblaze-tdep.c (microblaze_gdbarch_init): Likewise.
11267 * mips-tdep.c (mips_gdbarch_init): Likewise.
11268 * mn10300-tdep.c (mn10300_gdbarch_init): Likewise.
11269 * moxie-tdep.c (moxie_gdbarch_init): Likewise.
11270 * msp430-tdep.c (msp430_gdbarch_init): Likewise.
11271 * sh64-tdep.c (sh64_gdbarch_init): Likewise.
11272 * v850-tdep.c (v850_gdbarch_init): Likewise.
11273
7a3929c4
YQ
112742017-05-24 Yao Qi <yao.qi@linaro.org>
11275
11276 * selftest-arch.c (tests_with_arch): Call registers_changed
11277 and reinit_frame_cache.
11278 * selftest.c (run_self_tests): Likewise.
11279
f4985dba
YQ
112802017-05-24 Yao Qi <yao.qi@linaro.org>
11281
11282 * rs6000-tdep.c (gdb_print_insn_powerpc): Remove.
11283 (rs6000_gdbarch_init): Don't call set_gdbarch_print_insn.
11284
ab20fa4a
YQ
112852017-05-24 Yao Qi <yao.qi@linaro.org>
11286
11287 * rl78-tdep.c (rl78_gdbarch_init): Don't call
11288 set_gdbarch_print_insn.
11289
f532ab94
YQ
112902017-05-24 Yao Qi <yao.qi@linaro.org>
11291
11292 * h8300-tdep.c (h8300_gdbarch_init): Don't call
11293 set_gdbarch_print_insn.
11294
39503f82
YQ
112952017-05-24 Yao Qi <yao.qi@linaro.org>
11296
11297 * alpha-tdep.c (alpha_gdbarch_init): Don't call
11298 set_gdbarch_print_insn.
11299 * arc-tdep.c (arc_gdbarch_init): Likewise.
11300 * arch-utils.c: include dis-asm.h.
11301 (default_print_insn): New function.
11302 * arch-utils.h (default_print_insn): Declare.
11303 * avr-tdep.c (avr_gdbarch_init): Don't call set_gdbarch_print_insn.
11304 * bfin-tdep.c (bfin_gdbarch_init): Likewise.
11305 * cris-tdep.c (cris_delayed_get_disassembler): Remove.
11306 (cris_gdbarch_init): Don't call set_gdbarch_print_insn.
11307 * frv-tdep.c (frv_gdbarch_init): Likewise.
11308 * ft32-tdep.c (ft32_gdbarch_init): Likewise.
11309 * gdbarch.sh (print_insn): Use default_print_insn.
11310 * gdbarch.c: Regenerated.
11311 * hppa-tdep.c (hppa_gdbarch_init): Likewise.
11312 * iq2000-tdep.c (iq2000_gdbarch_init): Likewise.
11313 * lm32-tdep.c (lm32_gdbarch_init): Likewise.
11314 * m32c-tdep.c (m32c_gdbarch_init): Likewise.
11315 * m32r-tdep.c (m32r_gdbarch_init): Likewise.
11316 * m68hc11-tdep.c (gdb_print_insn_m68hc11): Remove.
11317 (m68hc11_gdbarch_init): Don't call set_gdbarch_print_insn.
11318 * m68k-tdep.c (m68k_gdbarch_init): Likewise.
11319 * m88k-tdep.c (m88k_gdbarch_init): Likewise.
11320 * microblaze-tdep.c (microblaze_gdbarch_init): Likewise.
11321 * mn10300-tdep.c (mn10300_gdbarch_init): Likewise.
11322 * moxie-tdep.c (moxie_gdbarch_init): Likewise.
11323 * msp430-tdep.c (msp430_gdbarch_init): Likewise.
11324 * mt-tdep.c (mt_gdbarch_init): Likewise.
11325 * nds32-tdep.c (nds32_gdbarch_init): Likewise.
11326 * nios2-tdep.c (nios2_print_insn): Remove.
11327 (nios2_gdbarch_init): Don't call set_gdbarch_print_insn.
11328 * rx-tdep.c (rx_gdbarch_init): Likewise.
11329 * s390-linux-tdep.c (s390_gdbarch_init): Likewise.
11330 * score-tdep.c (score_print_insn): Remove.
11331 (score_gdbarch_init): Don't call set_gdbarch_print_insn.
11332 * sh-tdep.c (sh_gdbarch_init): Likewise.
11333 * sh64-tdep.c (sh64_gdbarch_init): Likewise.
11334 * sparc-tdep.c (sparc32_gdbarch_init): Likewise.
11335 * tic6x-tdep.c (tic6x_print_insn): Remove.
11336 (tic6x_gdbarch_init): Don't call set_gdbarch_print_insn.
11337 * tilegx-tdep.c (tilegx_gdbarch_init): Likewise.
11338 * v850-tdep.c (v850_gdbarch_init): Likewise.
11339 * vax-tdep.c (vax_gdbarch_init): Likewise.
11340 * xstormy16-tdep.c (xstormy16_gdbarch_init): Likewise.
11341 * xtensa-tdep.c (xtensa_gdbarch_init): Likewise.
11342
f7241d4f
JB
113432017-05-23 John Baldwin <jhb@FreeBSD.org>
11344
11345 * mips-fbsd-tdep.c (MIPS_PC_REGNUM): Remove.
11346 (MIPS_FP0_REGNUM): Remove.
11347 (MIPS_FSR_REGNUM): Remove.
11348 (mips_fbsd_supply_fpregs): Use mips_regnum.
11349 (mips_fbsd_supply_gregs): Likewise.
11350 (mips_fbsd_collect_fpregs): Likewise.
11351 (mips_fbsd_collect_gregs): Likewise.
11352
d489d81d
JB
113532017-05-23 John Baldwin <jhb@FreeBSD.org>
11354
11355 * mips-fbsd-nat.c (getregs_supplies): Fix upper bound comparison.
11356 (getpfpregs_supplies): New function.
11357 (mips_fbsd_fetch_inferior_registers): Remove early exit and use
11358 getfpregs_supplies.
11359 (mips_fbsd_store_inferior_registers): Likewise.
11360
e11b3cdc
PA
113612017-05-22 Pedro Alves <palves@redhat.com>
11362
11363 * MAINTAINERS (Host/Native): Add John Baldwin as FreeBSD
11364 maintainer.
11365
0f068fb5
AH
113662017-05-22 Alan Hayward <alan.hayward@arm.com>
11367
11368 * ppc-linux-nat.c (fetch_register): Use PPC_MAX_REGISTER_SIZE.
11369 (store_register): Likewise.
11370 * ppc-sysv-tdep.c (ppc_sysv_abi_push_dummy_call): Likewise.
11371 (get_decimal_float_return_value): Likewise.
11372 (do_ppc_sysv_return_value): Likewise.
11373 (ppc64_sysv_abi_push_integer): Likewise.
11374 (ppc64_sysv_abi_push_freg): Likewise.
11375 (ppc64_sysv_abi_return_value_base): Likewise.
11376 (ppc64_sysv_abi_return_value): Likewise.
11377 * rs6000-aix-tdep.c (rs6000_push_dummy_call): Likewise.
11378 * rs6000-lynx178-tdep.c (rs6000_lynx178_push_dummy_call): Likewise.
11379 * rs6000-nat.c: Likewise.
11380 * rs6000-tdep.c (rs6000_register_to_value): Likewise.
11381 (rs6000_value_to_register): Likewise.
11382 * ppc-tdep.h (PPC_MAX_REGISTER_SIZE): Add.
11383
e6cf65f2
TT
113842017-05-21 Tom Tromey <tom@tromey.com>
11385
11386 PR rust/21466:
11387 * rust-lang.c (rust_print_type) <TYPE_CODE_ARRAY>: Print unsized
11388 arrays as "[T]", not "[T; ]".
11389
43cc5389
TT
113902017-05-19 Tom Tromey <tom@tromey.com>
11391
11392 PR rust/21484:
11393 * rust-lang.c (exp_descriptor_rust): New function.
11394 (rust_language_defn): Use it.
11395 * p-lang.c (pascal_language_defn): Update.
11396 * opencl-lang.c (opencl_language_defn): Update.
11397 * objc-lang.c (objc_language_defn): Update.
11398 * m2-lang.c (m2_language_defn): Update.
11399 * language.h (struct language_defn)
11400 <la_watch_location_expression>: New member.
11401 * language.c (unknown_language_defn, auto_language_defn)
11402 (local_language_defn): Update.
11403 * go-lang.c (go_language_defn): Update.
11404 * f-lang.c (f_language_defn): Update.
11405 * d-lang.c (d_language_defn): Update.
11406 * c-lang.h (c_watch_location_expression): Declare.
11407 * c-lang.c (c_watch_location_expression): New function.
11408 (c_language_defn, cplus_language_defn, asm_language_defn)
11409 (minimal_language_defn): Use it.
11410 * breakpoint.c (watch_command_1): Call
11411 la_watch_location_expression.
11412 * ada-lang.c (ada_language_defn): Update.
11413
7a6e7fcc
RO
114142017-05-19 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
11415
6e7e1744
RO
11416 PR tui/21482
11417 * gdb_curses.h (NOMACROS): Define.
11418 (NCURSES_NOMACROS): Define.
11419
114202017-05-19 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
11421
11422 PR tui/21482
7a6e7fcc
RO
11423 * tui/tui-windata.c (tui_erase_data_content): Cast last mvwaddstr
11424 arg to char *.
11425 * tui/tui-wingeneral.c (box_win): Likewise.
11426 * tui/tui-winsource.c (tui_erase_source_content): Likewise.
11427 (tui_show_source_line): Likewise.
11428 (tui_show_exec_info_content): Likewise.
11429
1933fd8e
VM
114302017-05-19 Vladimir Mezentsev <vladimir.mezentsev@oracle.com>
11431
11432 * sparc-tdep.c (sparc_structure_return_p)
11433 (sparc_arg_on_registers_p): New functions.
11434 (sparc32_store_arguments): Use them.
11435 * sparc64-tdep.c (sparc64_16_byte_align_p)
11436 (sparc64_store_floating_fields, sparc64_extract_floating_fields):
11437 Handle TYPE_CODE_ARRAY.
11438
21873064
YQ
114392017-05-17 Yao Qi <yao.qi@linaro.org>
11440
11441 * cli/cli-decode.c (add_alias_cmd): New function.
11442 * command.h (add_alias_cmd): Declare.
11443 * infcmd.c (_initialize_infcmd): Don't call add_com_alias,
11444 instead call add_alias_cmd.
11445
2b351b19
PA
114462017-05-17 Pedro Alves <palves@redhat.com>
11447
11448 * Makefile.in (nat_extra_makefile_frag): Rename to ...
11449 (nat_makefile_frag): ... this. All references updated.
11450 * configure.ac: Likewise.
11451 * configure.nat: Likewise. Enhance comments.
11452 * configure: Regenerate.
11453
5f2ad7a3
RO
114542017-05-15 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
11455
11456 * procfs.c (procfs_create_inferior): Change prototype to match
11457 definition.
11458
adf3dde5
EZ
114592017-05-13 Eli Zaretskii <eliz@gnu.org>
11460
11461 * tui/tui.c (tui_enable): Cast "unknown" to 'char *' to avoid a
11462 C++ compiler warning.
11463
6830f270
TT
114642017-05-12 Tom Tromey <tom@tromey.com>
11465
11466 PR rust/21483:
11467 * rust-lang.c (rust_evaluate_subexp) <STRUCTOP_STRUCT>: Don't
11468 recurse, just call value_struct_elt directly.
11469
68f2f2e3
TT
114702017-05-12 Tom Tromey <tom@tromey.com>
11471
11472 * rust-lang.c (rust_dump_subexp_body) <STRUCTOP_ANONYMOUS,
11473 OP_RUST_ARRAY>: Fix.
11474
256afbc2
TT
114752017-05-12 Tom Tromey <tom@tromey.com>
11476
11477 * rust-lang.c (rust_print_subexp): Replace "return" with "break".
11478
94bb8dfe
YQ
114792017-05-09 Yao Qi <yao.qi@linaro.org>
11480
11481 * regcache.c: Include <forward_list>.
11482 (struct regcache_list): Remove.
11483 (current_regcache): Update.
11484 (get_thread_arch_aspace_regcache): Update for std::forward_list.
11485 (regcache_thread_ptid_changed): Likewise.
11486 (registers_changed_ptid): Likewise.
11487 (current_regcache_size): Likewise.
11488
8248946c
YQ
114892017-05-09 Yao Qi <yao.qi@linaro.org>
11490
11491 * regcache.c [GDB_SELF_TEST]: Include selftest.h.
11492 (current_regcache_size): New function.
11493 (current_regcache_test): New function.
11494 (_initialize_regcache) [GDB_SELF_TEST]: Register the unit test.
11495
313c5961
AH
114962017-05-08 Alan Hayward <alan.hayward@arm.com>
11497
11498 * mips-tdep.c (mips_o32_return_value): Remove unused buffer.
11499 (print_gp_register_row): Use get_frame_register_value.
11500
27bfc1d1
AH
115012017-05-08 Alan Hayward <alan.hayward@arm.com>
11502
11503 * mips-linux-tdep.c (mips_supply_gregset): Use raw_supply_zeroed.
11504 (mips_supply_fpregset): Likewise.
11505 (mips64_supply_gregset): Likewise.
11506
146e6c5c
AH
115072017-05-08 Alan Hayward <alan.hayward@arm.com>
11508
11509 * mn10300-linux-tdep.c (am33_supply_gregset_method): Use
11510 regcache->raw_supply_zeroed.
11511
e50f25ec
SDJ
115122017-05-06 Sergio Durigan Junior <sergiodj@redhat.com>
11513
11514 * configure.nat: Rearrange 'case' statements to match
11515 host before cpu.
11516
21ea5acd
SDJ
115172017-05-06 Sergio Durigan Junior <sergiodj@redhat.com>
11518
11519 * Makefile.in: Remove "@host_makefile_frag@". Add variables
11520 NAT_FILE, NATDEPFILES, NAT_CDEPS, LOADLIBES, MH_CFLAGS, XM_CLIBS,
11521 NAT_GENERATED_FILES, HAVE_NATIVE_GCORE_HOST. Add
11522 "@nat_extra_makefile_frag@".
11523 (Makefile): Remove dependency on "@frags@".
11524 ($(GNULIB_BUILDDIR)/Makefile): Likewise.
11525 (data-directory/Makefile): Likewise.
11526 * config/aarch64/linux.mh: Deleted; moved contents to
11527 "gdb/configure.nat".
11528 * config/alpha/alpha-linux.mh: Likewise.
11529 * config/alpha/nbsd.mh: Likewise.
11530 * config/arm/linux.mh: Likewise.
11531 * config/arm/nbsdelf.mh: Likewise.
11532 * config/i386/cygwin.mh: Likewise.
11533 * config/i386/cygwin64.mh: Likewise.
11534 * config/i386/darwin.mh: Likewise.
11535 * config/i386/fbsd.mh: Likewise.
11536 * config/i386/fbsd64.mh: Likewise.
11537 * config/i386/go32.mh: Likewise.
11538 * config/i386/i386gnu.mh: Likewise.
11539 * config/i386/i386sol2.mh: Likewise.
11540 * config/i386/linux.mh: Likewise.
11541 * config/i386/linux64.mh: Likewise.
11542 * config/i386/mingw.mh: Likewise.
11543 * config/i386/mingw64.mh: Likewise.
11544 * config/i386/nbsd64.mh: Likewise.
11545 * config/i386/nbsdelf.mh: Likewise.
11546 * config/i386/nto.mh: Likewise.
11547 * config/i386/obsd.mh: Likewise.
11548 * config/i386/obsd64.mh: Likewise.
11549 * config/i386/sol2-64.mh: Likewise.
11550 * config/ia64/linux.mh: Likewise.
11551 * config/m32r/linux.mh: Likewise.
11552 * config/m68k/linux.mh: Likewise.
11553 * config/m68k/nbsdelf.mh: Likewise.
11554 * config/m68k/obsd.mh: Likewise.
11555 * config/m88k/obsd.mh: Likewise.
11556 * config/mips/fbsd.mh: Likewise.
11557 * config/mips/linux.mh: Likewise.
11558 * config/mips/nbsd.mh: Likewise.
11559 * config/mips/obsd64.mh: Likewise.
11560 * config/pa/linux.mh: Likewise.
11561 * config/pa/nbsd.mh: Likewise.
11562 * config/pa/obsd.mh: Likewise.
11563 * config/powerpc/aix.mh: Likewise.
11564 * config/powerpc/fbsd.mh: Likewise.
11565 * config/powerpc/linux.mh: Likewise.
11566 * config/powerpc/nbsd.mh: Likewise.
11567 * config/powerpc/obsd.mh: Likewise.
11568 * config/powerpc/ppc64-linux.mh: Likewise.
11569 * config/powerpc/spu-linux.mh: Likewise.
11570 * config/s390/linux.mh: Likewise.
11571 * config/sh/nbsd.mh: Likewise.
11572 * config/sparc/fbsd.mh: Likewise.
11573 * config/sparc/linux.mh: Likewise.
11574 * config/sparc/linux64.mh: Likewise.
11575 * config/sparc/nbsd64.mh: Likewise.
11576 * config/sparc/nbsdelf.mh: Likewise.
11577 * config/sparc/obsd64.mh: Likewise.
11578 * config/sparc/sol2.mh: Likewise.
11579 * config/tilegx/linux.mh: Likewise.
11580 * config/vax/nbsdelf.mh: Likewise.
11581 * config/vax/obsd.mh: Likewise.
11582 * config/xtensa/linux.mh: Likewise.
11583 * config/i386/i386gnu.mn: New file, with excerpts from
11584 "config/i386/i386gnu.mh".
11585 * configure: Regenerate.
11586 * configure.ac: Rewrite code to use "gdb/configure.nat" instead of
11587 *.mh files under "gdb/config".
11588 * configure.nat: New file, with contents from the
11589 "gdb/config/*/*.mh" files.
11590
7ed1acaf
TW
115912017-05-05 Tim Wiederhake <tim.wiederhake@intel.com>
11592
11593 * btrace.c (btrace_clear): Free insn vector.
11594
e13cb306
PA
115952017-05-05 Pedro Alves <palves@redhat.com>
11596
11597 * warning.m4 (build_warnings): Add -Wno-error=maybe-uninitialized.
11598 * configure: Regenerate.
11599
5ed8105e
PA
116002017-05-04 Pedro Alves <palves@redhat.com>
11601
11602 * Makefile.in (SFILES): Add progspace-and-thread.c.
11603 (HFILES_NO_SRCDIR): Add progspace-and-thread.h.
11604 (COMMON_OBS): Add progspace-and-thread.o.
11605 * breakpoint.c: Include "progspace-and-thread.h".
11606 (update_inserted_breakpoint_locations)
11607 (insert_breakpoint_locations, create_longjmp_master_breakpoint):
11608 Use scoped_restore_current_pspace_and_thread.
11609 (create_std_terminate_master_breakpoint): Use
11610 scoped_restore_current_program_space.
11611 (remove_breakpoint): Use scoped_restore_current_pspace_and_thread.
11612 (print_breakpoint_location): Use
11613 scoped_restore_current_program_space.
11614 (bp_loc_is_permanent): Use
11615 scoped_restore_current_pspace_and_thread.
11616 (resolve_sal_pc): Use scoped_restore_current_pspace_and_thread.
11617 (download_tracepoint_locations): Use
11618 scoped_restore_current_pspace_and_thread.
11619 (breakpoint_re_set): Use scoped_restore_current_pspace_and_thread.
11620 * exec.c (exec_close_1): Use scoped_restore_current_program_space.
11621 (enum step_over_calls_kind): Moved from inferior.h.
11622 (class scoped_restore_current_thread): New class.
11623 * gdbthread.h (make_cleanup_restore_current_thread): Delete
11624 declaration.
11625 (scoped_restore_current_thread): New class.
11626 * infcmd.c: Include "common/gdb_optional.h".
11627 (continue_1, proceed_after_attach): Use
11628 scoped_restore_current_thread.
11629 (notice_new_inferior): Use scoped_restore_current_thread.
11630 * inferior.c: Include "progspace-and-thread.h".
11631 (restore_inferior, save_current_inferior): Delete.
11632 (add_inferior_command, clone_inferior_command): Use
11633 scoped_restore_current_pspace_and_thread.
11634 * inferior.h (scoped_restore_current_inferior): New class.
11635 * infrun.c: Include "progspace-and-thread.h" and
11636 "common/gdb_optional.h".
11637 (follow_fork_inferior): Use
11638 scoped_restore_current_pspace_and_thread.
11639 (scoped_restore_exited_inferior): New class.
11640 (handle_vfork_child_exec_or_exit): Use
11641 scoped_restore_exited_inferior,
11642 scoped_restore_current_pspace_and_thread,
11643 scoped_restore_current_thread and scoped_restore.
11644 (fetch_inferior_event): Use scoped_restore_current_thread.
11645 * linespec.c (decode_line_full, decode_line_1): Use
11646 scoped_restore_current_program_space.
11647 * mi/mi-main.c: Include "progspace-and-thread.h".
11648 (exec_continue): Use scoped_restore_current_thread.
11649 (mi_cmd_exec_run): Use scoped_restore_current_pspace_and_thread.
11650 (mi_cmd_trace_frame_collected): Use scoped_restore_current_thread.
11651 * proc-service.c (ps_pglobal_lookup): Use
11652 scoped_restore_current_program_space.
11653 * progspace-and-thread.c: New file.
11654 * progspace-and-thread.h: New file.
11655 * progspace.c (release_program_space, clone_program_space): Use
11656 scoped_restore_current_program_space.
11657 (restore_program_space, save_current_program_space)
11658 (save_current_space_and_thread): Delete.
11659 (switch_to_program_space_and_thread): Moved to
11660 progspace-and-thread.c.
11661 * progspace.h (save_current_program_space)
11662 (save_current_space_and_thread): Delete declarations.
11663 (scoped_restore_current_program_space): New class.
11664 * remote.c (remote_btrace_maybe_reopen): Use
11665 scoped_restore_current_thread.
11666 * symtab.c: Include "progspace-and-thread.h".
11667 (skip_prologue_sal): Use scoped_restore_current_pspace_and_thread.
11668 * thread.c (print_thread_info_1): Use
11669 scoped_restore_current_thread.
11670 (struct current_thread_cleanup): Delete.
11671 (do_restore_current_thread_cleanup)
11672 (restore_current_thread_cleanup_dtor): Rename/convert both to ...
11673 (scoped_restore_current_thread::~scoped_restore_current_thread):
11674 ... this new dtor.
11675 (make_cleanup_restore_current_thread): Rename/convert to ...
11676 (scoped_restore_current_thread::scoped_restore_current_thread):
11677 ... this new ctor.
11678 (thread_apply_all_command): Use scoped_restore_current_thread.
11679 (thread_apply_command): Use scoped_restore_current_thread.
11680 * tracepoint.c (tdump_command): Use scoped_restore_current_thread.
11681 * varobj.c (value_of_root_1): Use scoped_restore_current_thread.
11682
f6223dbb
PA
116832017-05-04 Pedro Alves <palves@redhat.com>
11684
11685 * thread.c (make_cleanup_restore_current_thread): Move
11686 find_thread_ptid call before the is_stopped call. Assert that the
11687 thread is found. Replace is_stopped call by checking the thread's
11688 state directly. Remove unnecessary NULL-thread check.
11689
3c3ae77e
PA
116902017-05-04 Pedro Alves <palves@redhat.com>
11691
11692 * corelow.c (thread_section_name): New class.
11693 (get_core_register_section, get_core_siginfo): Use it.
11694
45eba0ab
AA
116952017-05-04 Andreas Arnez <arnez@linux.vnet.ibm.com>
11696
11697 * corelow.c (sniff_core_bfd): Remove extra semicolon.
11698 (get_core_register_section): Remove xfree of NULL pointer.
11699
f81fdd35
AH
117002017-05-03 Alan Hayward <alan.hayward@arm.com>
11701
11702 * frv-linux-tdep.c (frv_linux_supply_gregset): Use raw_supply_zeroed.
11703 * regcache.c (regcache::raw_supply_zeroed): New function.
11704 * regcache.h (regcache::raw_supply_zeroed): New declaration.
11705
35837774
SM
117062017-05-03 Simon Marchi <simon.marchi@ericsson.com>
11707
11708 * gdbarch.sh: Remove commented out definition of
11709 TARGET_CHAR_BIT.
11710 * gdbarch.h: Re-generate.
11711
c94fee56
SDJ
117122017-05-03 Sergio Durigan Junior <sergiodj@redhat.com>
11713
11714 * configure: Regenerate.
11715
d17f7b36
SM
117162017-05-02 Simon Marchi <simon.marchi@ericsson.com>
11717
11718 * solib-target.c (solib_target_relocate_section_addresses):
11719 Remove num_section_bases, num_bases, segment_bases variables.
11720
b560ebd6
SM
117212017-05-02 Simon Marchi <simon.marchi@polymtl.ca>
11722
11723 * common/gdb_vecs.h (DEF_VEC_I (CORE_ADDR)): Remove.
11724
f2f46dfc
SM
117252017-05-02 Simon Marchi <simon.marchi@polymtl.ca>
11726
11727 * solib-target.c: Include <vector>
11728 (struct lm_info_target) <~lm_info_target>: Remove.
11729 <segment_bases, section_bases>: Change type to
11730 std::vector<CORE_ADDR>.
11731 (library_list_start_segment, library_list_start_section,
11732 library_list_end_library,
11733 solib_target_relocate_section_addresses): Adjust.
11734
a0ff9e1a
SM
117352017-05-02 Simon Marchi <simon.marchi@polymtl.ca>
11736
11737 * gdbarch.sh (software_single_step): Change return type to
11738 std::vector<CORE_ADDR>.
11739 * gdbarch.c, gdbarch.h: Re-generate.
11740 * arch/arm-get-next-pcs.c (thumb_deal_with_atomic_sequence_raw):
11741 Adjust.
11742 (arm_deal_with_atomic_sequence_raw): Adjust.
11743 (thumb_get_next_pcs_raw): Adjust.
11744 (arm_get_next_pcs_raw): Adjust.
11745 (arm_get_next_pcs): Adjust.
11746 * arch/arm-get-next-pcs.h (arm_get_next_pcs): Adjust.
11747 * aarch64-tdep.c (aarch64_software_single_step): Adjust.
11748 * alpha-tdep.c (alpha_deal_with_atomic_sequence): Adjust.
11749 (alpha_software_single_step): Adjust.
11750 * alpha-tdep.h (alpha_software_single_step): Adjust.
11751 * arm-linux-tdep.c (arm_linux_software_single_step): Adjust.
11752 * arm-tdep.c (arm_software_single_step): Adjust.
11753 (arm_breakpoint_kind_from_current_state): Adjust.
11754 * arm-tdep.h (arm_software_single_step): Adjust.
11755 * breakpoint.c (insert_single_step_breakpoint): Adjust.
11756 * cris-tdep.c (cris_software_single_step): Adjust.
11757 * mips-tdep.c (mips_deal_with_atomic_sequence): Adjust.
11758 (micromips_deal_with_atomic_sequence): Adjust.
11759 (deal_with_atomic_sequence): Adjust.
11760 (mips_software_single_step): Adjust.
11761 * mips-tdep.h (mips_software_single_step): Adjust.
11762 * moxie-tdep.c (moxie_software_single_step): Adjust.
11763 * nios2-tdep.c (nios2_software_single_step): Adjust.
11764 * ppc-tdep.h (ppc_deal_with_atomic_sequence): Adjust.
11765 * rs6000-aix-tdep.c (rs6000_software_single_step): Adjust.
11766 * rs6000-tdep.c (ppc_deal_with_atomic_sequence): Adjust.
11767 * s390-linux-tdep.c (s390_software_single_step): Adjust.
11768 * sparc-tdep.c (sparc_software_single_step): Adjust.
11769 * spu-tdep.c (spu_software_single_step): Adjust.
11770 * tic6x-tdep.c (tic6x_software_single_step): Adjust.
11771
ea480a30
SM
117722017-05-02 Simon Marchi <simon.marchi@polymtl.ca>
11773
11774 * gdbarch.sh: Use semi-colon as field separator instead of colon.
11775 * gdbarch.h: Re-generate.
11776
d050f7d7
TW
117772017-05-01 Tim Wiederhake <tim.wiederhake@intel.com>
11778
11779 * Makefile.in (SUBDIR_PYTHON_OBS): Add py-instruction.o.
11780 (SUBDIR_PYTHON_SRCS): Add py-instruction.c.
11781 * python/py-instruction.c, python/py-instruction.h: New file.
11782 * python/py-record.c: Add py-instruction.h include.
11783 (gdbpy_initialize_record): Make gdb.Instruction a super class of
11784 gdb.RecordInstruction.
11785 * python/python-internal.h: Add gdbpy_initialize_instruction
11786 declaration.
11787 * python/python.c (do_start_initialization): Add
11788 gdbpy_initialize_instruction.
11789
14f819c8
TW
117902017-05-01 Tim Wiederhake <tim.wiederhake@intel.com>
11791
11792 * python/py-record-btrace.c (BTPY_REQUIRE_VALID_CALL, btpy_call_type):
11793 Remove.
11794 (btrace_func_from_recpy_func): New function.
11795 (btpy_call_new, btpy_number, btpy_hash, btpy_richcompare): Remove.
11796 (btpy_call_level, btpy_call_symbol, btpy_call_instructions,
11797 btpy_call_up, btpy_call_prev_sibling, btpy_call_next_sibling): Rename to ...
11798 (recpy_bt_func_level, recpy_bt_func_symbol, recpy_bt_func_instructions,
11799 recpy_bt_func_up, recpy_bt_func_prev, recpy_bt_func_next): This.
11800 Also, use new helper functions.
11801 (btpy_list_item): Use new helper functions.
11802 (recpy_bt_function_call_history): Use new type name.
11803 (btpy_call_getset): Remove.
11804 (gdbpy_initialize_btrace): Remove code to initialize
11805 gdb.BtraceFunctionCall.
11806 * python/py-record-btrace.h (recpy_bt_func_number, recpy_btb_func_level,
11807 recpy_btb_func_symbol, recpy_bt_func_instructions, recpy_bt_func_up,
11808 recpy_bt_func_prev, recpy_bt_func_next): New export.
11809 * python/py-record.c (recpy_func_type): New static object.
11810 (recpy_func_new, recpy_func_level, recpy_func_symbol,
11811 recpy_func_instructions, recpy_func_up, recpy_func_prev,
11812 recpy_func_next): New function.
11813 (recpy_element_hash, recpy_element_richcompare): Updated comment.
11814 (recpy_func_getset): New static object.
11815 (gdbpy_initialize_record): Add code to initialize gdb.RecordInstruction.
11816 * python/py-record.h (recpy_func_type, recpy_func_new): New export.
11817
0ed5da75
TW
118182017-05-01 Tim Wiederhake <tim.wiederhake@intel.com>
11819
11820 * python/py-record-btrace.c (BTPY_REQUIRE_VALID_INSN): Remove.
11821 (btpy_object, btpy_insn_type, btpy_new): Remove.
11822 (btpy_list_object): Use gdb.RecordInstruction type instead of
11823 gdb.BtraceInstruction type.
11824 (btrace_insn_from_recpy_insn): New function.
11825 (btpy_insn_or_gap_new): Adjust comment. Use recpy_insn_new instead of
11826 btpy_new.
11827 (btpy_call_new, btpy_list_item): Do not use btpy_new anymore.
11828 (btpy_number, btpy_hash, btpy_call_level, btpy_call_symbol,
11829 btpy_call_instructions, btpy_call_up, btpy_call_prev_sibling,
11830 btpy_call_next_sibling, btpy_richcompare): Use recpy_element_object
11831 instead of btpy_object.
11832 (btpy_insn_sal, btpy_insn_pc, btpy_insn_size, btpy_insn_is_speculative,
11833 btpy_insn_data, btpy_insn_decode): Rename to ...
11834 (recpy_bt_insn_sal, recpy_bt_insn_pc, recpy_bt_insn_size,
11835 recpy_bt_insn_is_speculative, recpy_bt_insn_data,
11836 recpy_bt_insn_decode): This. Also, use new helper functions.
11837 (btpy_list_position, recpy_bt_goto): Use recpy_element_object and
11838 recpy_insn_type.
11839 (btpy_insn_getset): Remove.
11840 (gdbpy_initialize_btrace): Remove code to initialize
11841 gdb.BtraceInstruction. Use recpy_element_object.
11842 * python/py-record-btrace.h (recpy_bt_insn_number, recpy_bt_insn_sal,
11843 recpy_bt_insn_pc, recpy_bt_insn_data, recpy_bt_insn_decoded,
11844 recpy_bt_insn_size, recpy_bt_insn_is_speculative): New export.
11845 * python/py-record.c (recpy_insn_type): New static object.
11846 (recpy_insn_new, recpy_insn_sal, recpy_insn_pc, recpy_insn_data,
11847 recpy_insn_decoded, recpy_insn_size, recpy_insn_is_speculative,
11848 recpy_element_number, recpy_element_hash, recpy_element_richcompare):
11849 New function.
11850 (recpy_insn_getset): New static object.
11851 (gdbpy_initialize_record): Initialize gdb.RecordInstruction.
11852 * python/py-record.h (recpy_element_object): New typedef.
11853 (recpy_insn_type, recpy_insn_new): New export.
11854
913aeadd
TW
118552017-05-01 Tim Wiederhake <tim.wiederhake@intel.com>
11856
11857 * py-record-btrace.c (btpy_insn_new): Removed.
11858 (btpy_insn_or_gap_new): New function.
11859 (btpy_insn_error): Removed.
11860 (btpy_insn_sal, btpy_insn_pc, btpy_insn_size, btpy_insn_is_speculative,
11861 btpy_insn_data, btpy_insn_decode): Remove code path for gaps.
11862 (recpy_bt_replay_position, recpy_bt_begin, recpy_bt_end): Call
11863 btpy_insn_or_gap_new instead of btpy_insn_new.
11864 (btpy_insn_getset): Remove btpy_insn_error.
11865 * py-record.c (recpy_gap_type): New static object.
11866 (recpy_gap_object): New typedef.
11867 (recpy_gap_new, recpy_gap_number, recpy_gap_reason_code,
11868 recpy_gap_reason_string): New function.
11869 (recpy_gap_getset): New static object.
11870 (gdbpy_initialize_record): Initialize gdb.RecordGap type.
11871 * py-record.h (recpy_gap_new): New export.
11872
a3be24ad
TW
118732017-05-01 Tim Wiederhake <tim.wiederhake@intel.com>
11874
11875 * python/py-record.c (recpy_ptid): Remove.
11876 (recpy_record_getset): Remove recpy_ptid.
11877
ae20e79a
TW
118782017-05-01 Tim Wiederhake <tim.wiederhake@intel.com>
11879
11880 * btrace.c (btrace_fetch): Set inferior_ptid.
11881 * python/py-record-btrace.c: Add "py-record.h" include.
11882 (recpy_bt_format, recpy_bt_replay_position, recpy_bt_begin,
11883 recpy_bt_end, recpy_bt_instruction_history,
11884 recpy_bt_function_call_history, recpy_bt_goto): Use ptid stored
11885 in gdb.Record object instead of current ptid.
11886 * python/py-record.c: Include new "py-record.h" file.
11887 (recpy_record_object): Moved to py-record.h.
11888 * python/py-record.h: New file.
11889
8d0050ea
TW
118902017-05-01 Tim Wiederhake <tim.wiederhake@intel.com>
11891
11892 * python/py-record-btrace.c (BTPY_REQUIRE_VALID_INSN,
11893 BTPY_REQUIRE_VALID_CALL, recpy_bt_function_call_history): Fix
11894 indentation.
11895
3f380b50
JB
118962017-05-01 Joel Brobecker <brobecker@adacore.com>
11897
11898 * MAINTAINERS: Move Daniel Jacobowitz and Mark Kettenis to
11899 the past maintainers section.
11900
07495424
YQ
119012017-04-28 Yao Qi <yao.qi@linaro.org>
11902
11903 * infcmd.c (get_return_value): Use regcache ctor, and remove
11904 cleanup.
11905
deb1fa3e
YQ
119062017-04-28 Yao Qi <yao.qi@linaro.org>
11907 Pedro Alves <palves@redhat.com>
11908
11909 * regcache.c (regcache::regcache): New tag dispatch ctor.
11910 (do_cooked_read): Moved above.
11911 (regcache_dup): Use the tag dispatch ctor..
11912 * regcache.h (regcache): Declare ctor, delete copy ctor and
11913 assignment operator, remove friend regcache_dup.
11914
b421c83c
YQ
119152017-04-28 Yao Qi <yao.qi@linaro.org>
11916
11917 * regcache.c (regcache_dup): Assert !src->m_readonly_p and
11918 call method save instead of regcache_cpy.
11919 * regcache.h (struct regcache): Make regcache_dup a friend.
11920
ef79d9a3
YQ
119212017-04-28 Yao Qi <yao.qi@linaro.org>
11922
11923 * regcache.c (struct regcache): Move to regcache.h
11924 (regcache::arch): New method.
11925 (regcache_get_ptid): Update.
11926 (get_regcache_arch): Call arch method.
11927 (get_regcache_aspace): Call method aspace.
11928 (register_buffer): Change it to method.
11929 (regcache_save): Change it to regcache::save.
11930 (regcache_restore): Likewise.
11931 (regcache_cpy_no_passthrough): Remove the declaration.
11932 (regcache_cpy): Call methods restore and cpy_no_passthrough.
11933 (regcache_cpy_no_passthrough): Change it to method
11934 cpy_no_passthrough.
11935 (regcache_register_status): Change it to method
11936 get_register_status.
11937 (regcache_invalidate): Change it to method invalidate.
11938 (regcache_thread_ptid_changed): Use methods ptid and set_ptid.
11939 (regcache_raw_update): Change it to method raw_update.
11940 (regcache_raw_read): Likewise.
11941 (regcache_raw_read_signed): Likewise.
11942 (regcache_raw_read_unsigned): Likewise.
11943 (regcache_raw_write_signed): Likewise.
11944 (regcache_raw_write_unsigned): Likewise.
11945 (regcache_cooked_read): Likewise.
11946 (regcache_cooked_read_value): Likewise.
11947 (regcache_cooked_read_signed): Likewise.
11948 (regcache_cooked_read_unsigned): Likewise.
11949 (regcache_cooked_write_signed): Likewise.
11950 (regcache_cooked_write_unsigned): Likewise.
11951 (regcache_raw_set_cached_value): Likewise.
11952 (regcache_raw_write): Likewise.
11953 (regcache_cooked_write): Likewise.
11954 (regcache_xfer_part): Likewise.
11955 (regcache_raw_read_part): Likewise.
11956 (regcache_raw_write_part): Likewise.
11957 (regcache_cooked_read_part): Likewise.
11958 (regcache_cooked_write_part): Likewise.
11959 (regcache_raw_supply): Likewise.
11960 (regcache_raw_collect): Likewise.
11961 (regcache_transfer_regset): Likewise.
11962 (regcache_supply_regset): Likewise.
11963 (regcache_collect_regset): Likewise.
11964 (regcache_debug_print_register): Likewise.
11965 (enum regcache_dump_what): Move it to regcache.h.
11966 (regcache_dump): Change it to method dump.
11967 * regcache.h (enum regcache_dump_what): New.
11968 (class regcache): New.
11969 * target.c (target_fetch_registers): Call method
11970 debug_print_register.
11971 (target_store_registers): Likewise.
11972
f8fdb78e
SM
119732017-04-28 Simon Marchi <simon.marchi@ericsson.com>
11974
11975 * windows-nat.c (struct lm_info_windows): Initialize field.
11976 (windows_make_so): Allocate lm_info_windows with new.
11977 (windows_free_so): Free lm_info_windows with delete.
11978
9ccbfd7b
SM
119792017-04-28 Simon Marchi <simon.marchi@ericsson.com>
11980
11981 * solib-darwin.c (struct lm_info_darwin): Initialize field.
11982 (darwin_current_sos): Allocate lm_info_darwin with new, remove
11983 cleanup.
11984 (darwin_free_so): Free lm_info_darwin with delete.
11985
76e75227
SM
119862017-04-28 Simon Marchi <simon.marchi@ericsson.com>
11987
11988 * solib-svr4.h (struct lm_info_svr4): Initialize fields.
11989 <l_addr_p>: Change type to bool.
11990 * solib-svr4.c (lm_info_read): Allocate lm_info_svr4 with new.
11991 (svr4_free_so): Free lm_info_svr4 with delete.
11992 (svr4_copy_library_list): Replace memcpy with call to copy
11993 constructor.
11994 (library_list_start_library, svr4_default_sos): Allocate
11995 lm_info_svr4 with new.
11996
51046d9e
SM
119972017-04-28 Simon Marchi <simon.marchi@ericsson.com>
11998
11999 * solib-target.c (struct lm_info_target): Add destructor,
12000 initialize fields.
12001 <name>: Change type to std::string.
12002 (library_list_start_library): Allocate lm_info_target with new.
12003 (solib_target_free_library_list): Free lm_info_target with
12004 delete.
12005 (solib_target_current_sos): Adapt to std::string.
12006 (solib_target_free_so): Free lm_info_target with delete.
12007
4023ae76
SM
120082017-04-28 Simon Marchi <simon.marchi@ericsson.com>
12009
12010 * solib-frv.c (struct lm_info_frv): Add destructor, initialize
12011 fields.
12012 (frv_current_sos): Allocate lm_info_frv with new.
12013 (frv_relocate_main_executable): Free lm_info_frv with delete,
12014 allocate with new.
12015 (frv_clear_solib, frv_free_so): Free lm_info_frv with delete.
12016
af43057b
SM
120172017-04-28 Simon Marchi <simon.marchi@ericsson.com>
12018
12019 * solib-frv.c (struct lm_info_frv): Fix indentation.
12020
b0911207
SM
120212017-04-28 Simon Marchi <simon.marchi@ericsson.com>
12022
12023 * solib-dsbt.c (struct lm_info_dsbt): Add destructor, initialize
12024 map field.
12025 (dsbt_current_sos): Allocate lm_info_dsbt with new.
12026 (dsbt_relocate_main_executable): Free lm_info_dsbt with delete
12027 and allocate with new.
12028 (dsbt_clear_solib, dsbt_free_so): Free lm_info_dsbt with delete.
12029
6c401f72
SM
120302017-04-28 Simon Marchi <simon.marchi@ericsson.com>
12031
12032 * solib-aix.c (struct lm_info_aix): Initialize fields in-class.
12033 <filename, member_name>: Change type to std::string.
12034 (solib_aix_new_lm_info, solib_aix_xfree_lm_info): Remove.
12035 (library_list_start_library): Allocate lm_info_aix with new.
12036 (solib_aix_free_library_list, solib_aix_free_so): Free with delete.
12037 (solib_aix_current_sos): Adapt to std::string, copy lm_info_aix
12038 with copy constructor.
12039
d0e449a1
SM
120402017-04-28 Simon Marchi <simon.marchi@ericsson.com>
12041
12042 * solist.h (struct lm_info): Remove.
12043 (struct lm_info_base): New class.
12044 (struct so_list) <lm_info>: Change type to lm_info_base *.
12045 * nto-tdep.c (struct lm_info): Remove.
12046 (lm_addr): Adjust.
12047 * solib-aix.c (struct lm_info): Rename to ...
12048 (struct lm_info_aix): ... this. Extend lm_info_base.
12049 (lm_info_p): Rename to ...
12050 (lm_info_aix_p): ... this, and adjust.
12051 (solib_aix_new_lm_info, solib_aix_xfree_lm_info,
12052 solib_aix_parse_libraries, library_list_start_library,
12053 solib_aix_free_library_list, solib_aix_parse_libraries,
12054 solib_aix_get_library_list,
12055 solib_aix_relocate_section_addresses, solib_aix_free_so,
12056 solib_aix_get_section_offsets,
12057 solib_aix_solib_create_inferior_hook, solib_aix_current_sos):
12058 Adjust.
12059 (struct solib_aix_inferior_data) <library_list>: Adjust.
12060 * solib-darwin.c (struct lm_info): Rename to ...
12061 (struct lm_info_darwin): ... this. Extend lm_info_base.
12062 (darwin_current_sos, darwin_relocate_section_addresses): Adjust.
12063 * solib-dsbt.c (struct lm_info): Rename to ...
12064 (struct lm_info_dsbt): ... this. Extend lm_info_base.
12065 (struct dsbt_info) <main_executable_lm_info): Adjust.
12066 (dsbt_current_sos, dsbt_relocate_main_executable, dsbt_free_so,
12067 dsbt_relocate_section_addresses): Adjust.
12068 * solib-frv.c (struct lm_info): Rename to ...
12069 (struct lm_info_frv): ... this. Extend lm_info_base.
12070 (main_executable_lm_info): Adjust.
12071 (frv_current_sos, frv_relocate_main_executable, frv_free_so,
12072 frv_relocate_section_addresses, frv_fdpic_find_global_pointer,
12073 find_canonical_descriptor_in_load_object,
12074 frv_fdpic_find_canonical_descriptor): Adjust.
12075 * solib-svr4.c (struct lm_info): Move to solib-svr4.h, renamed
12076 to lm_info_svr4.
12077 (lm_info_read, lm_addr_check, svr4_keep_data_in_core,
12078 svr4_clear_so, svr4_copy_library_list,
12079 library_list_start_library, svr4_default_sos, svr4_read_so_list,
12080 svr4_current_sos, svr4_fetch_objfile_link_map,
12081 solist_update_incremental): Adjust.
12082 * solib-svr4.h (struct lm_info_svr4): Move here from
12083 solib-svr4.c.
12084 * solib-target.c (struct lm_info): Rename to ...
12085 (struct lm_info_target): ... this. Extend lm_info_base.
12086 (lm_info_p): Rename to ...
12087 (lm_info_target_p): ... this.
12088 (solib_target_parse_libraries, library_list_start_segment,
12089 library_list_start_section, library_list_start_library,
12090 library_list_end_library, solib_target_free_library_list,
12091 solib_target_current_sos, solib_target_free_so,
12092 solib_target_relocate_section_addresses): Adjust.
12093 * windows-nat.c (struct lm_info): Rename to ...
12094 (struct lm_info_windows): ... this. Extend lm_info_base.
12095 (windows_make_so, handle_load_dll, handle_unload_dll,
12096 windows_xfer_shared_libraries): Adjust.
12097
434a4023
SM
120982017-04-28 Simon Marchi <simon.marchi@ericsson.com>
12099
12100 * solib-darwin.c (struct darwin_so_list): Remove.
12101 (darwin_current_sos): Allocate an so_list object instead of a
12102 darwin_so_list, separately allocate an lm_info object.
12103 (darwin_free_so): Free lm_info.
12104
428544e8
JB
121052017-04-28 John Baldwin <jhb@FreeBSD.org>
12106
12107 * mips-tdep.c (print_gp_register_row): Replace printf_filtered
12108 with fprintf_filtered.
12109
4621115f
YQ
121102017-04-28 Yao Qi <yao.qi@linaro.org>
12111
12112 * regcache.c (regcache::regcache): New function.
12113 (regcache::~regcache): New function.
12114 (regcache_xmalloc_1): Remove.
12115 (regcache_xmalloc): Call new regcache.
12116 (regcache_xfree): Call delete regcache.
12117 (get_thread_arch_aspace_regcache): Call new regcache.
12118
339053c2
YQ
121192017-04-28 Yao Qi <yao.qi@linaro.org>
12120
12121 * mips-linux-nat.c (mips_linux_new_thread): Use ptid method
12122 lwp instead of ptid_get_lwp.
12123
7974a605
YQ
121242017-04-28 Yao Qi <yao.qi@linaro.org>
12125
12126 * mips-linux-nat.c (mips_linux_new_thread): Get lwpid from
12127 lwp_info instead of getting from inferior_ptid.
12128
e15c3eb4
KS
121292017-04-27 Keith Seitz <keiths@redhat.com>
12130
12131 * gdbtypes.c (LVALUE_REFERENCE_TO_RVALUE_BINDING_BADNESS)
12132 DIFFERENT_REFERENCE_TYPE_BADNESS): Remove.
12133 (CV_CONVERSION_BADNESS): Define.
12134 (rank_one_type): Remove overly restrictive rvalue reference
12135 rank checks.
12136 Add cv-qualifier checks and subranks for type equality.
12137 * gdbtypes.h (REFERENCE_CONVERSION_RVALUE,
12138 REFERENCE_CONVERSION_CONST_LVALUE, CV_CONVERSION_BADNESS,
12139 CV_CONVERSION_CONST, CV_CONVERSION_VOLATILE): Declare.
12140
72bc1d24
SM
121412017-04-27 Simon Marchi <simon.marchi@ericsson.com>
12142
12143 * python/py-inferior.c (inferior_to_inferior_object): Increment reference
12144 count when creating the object.
12145
55bcecda
UW
121462017-04-27 Sangamesh Mallayya <sangamesh.swamy@in.ibm.com>
12147 Ulrich Weigand <uweigand@de.ibm.com>
12148
12149 * xcoffread.c (read_xcoff_symtab): Read correct function auxiliary
12150 entry if xlc -qfuncsect or gcc -ffunction-sections compiler option
12151 is used in AIX.
12152 (read_xcoff_symtab): Handle C_WEAKEXT storage class.
12153 (process_xcoff_symbol): Likewise.
12154 (scan_xcoff_symtab): Likewise.
12155
5c99fcf8
AH
121562017-04-26 Alan Hayward <alan.hayward@arm.com>
12157
12158 * ia64-tdep.c (examine_prologue): Use get_frame_register_unsigned.
12159 (ia64_sigtramp_frame_prev_register): Use read_memory_unsigned_integer.
12160 (ia64_access_reg): Use get_frame_register_unsigned.
12161 (ia64_access_rse_reg): Likewise.
12162 (ia64_libunwind_frame_prev_register): Likewise.
12163
b41c5a85
JW
121642017-04-26 Jiong Wang <jiong.wang@arm.com>
12165
12166 * gdbarch.sh: New gdbarch method execute_dwarf_cfa_vendor_op.
12167 * gdbarch.c: Regenerated.
12168 * gdbarch.h: Regenerated.
12169 * dwarf2-frame.c (dwarf2_frame_state_alloc_regs): Made the
12170 visibility external.
12171 (execute_cfa_program): Call execute_dwarf_cfa_vendor_op for CFI
12172 between DW_CFA_lo_user and DW_CFA_high_user inclusive.
12173 (enum cfa_how_kind): Move to ...
12174 (struct dwarf2_frame_state_reg_info): Likewise.
12175 (struct dwarf2_frame_state): Likewise.
12176 * dwarf2-frame.h: ... here.
12177 (dwarf2_frame_state_alloc_regs): New declaration.
12178 * sparc-tdep.c (sparc_execute_dwarf_cfa_vendor_op): New function.
12179 (sparc32_gdbarch_init): Register execute_dwarf_cfa_vendor_op hook.
12180
c185f580
AH
121812017-04-26 Alan Hayward <alan.hayward@arm.com>
12182
12183 * xtensa-tdep.c (xtensa_pseudo_register_read): Use
12184 regcache_raw_read_unsigned.
12185 (xtensa_pseudo_register_write): Likewise.
12186
19c45594
AH
121872017-04-26 Alan Hayward <alan.hayward@arm.com>
12188
12189 * nds32-tdep.c (nds32_pseudo_register_read): Abort on errors.
12190 (nds32_pseudo_register_write): Likewise.
12191
4658f12e
YQ
121922017-04-25 Yao Qi <yao.qi@linaro.org>
12193
12194 * regcache.c (struct regcache) <readonly_p>: Change its type
12195 to bool.
12196 (regcache_xmalloc_1): Update parameter type and callers update.
12197
d581dda8
YQ
121982017-04-25 Yao Qi <yao.qi@linaro.org>
12199
12200 * aarch64-tdep.c (aarch64_gdbarch_init): Don't call
12201 set_gdbarch_wchar_bit.
12202 * arm-tdep.c (arm_gdbarch_init): Likewise.
12203
debed3db
PA
122042017-04-25 Pedro Alves <palves@redhat.com>
12205
12206 * common/poison.h [!HAVE_IS_TRIVIALLY_COPYABLE] (IsRelocatable)
12207 (BothAreRelocatable, memcopy, memmove): Don't define.
12208 * common/traits.h (__has_feature, HAVE_IS_TRIVIALLY_COPYABLE): New
12209 macros.
12210
b0b92aeb
PA
122112017-04-25 Pedro Alves <palves@redhat.com>
12212
12213 * common/common-defs.h: Include "common/poison.h".
12214 * common/function-view.h: (Not, Or, Requires): Move to traits.h
12215 and adjust.
12216 * common/poison.h: New file.
12217 * common/traits.h: Include <type_traits>.
12218 (Not, Or, Requires): New, moved from common/function-view.h.
12219
16c4d54a
PA
122202017-04-25 Pedro Alves <palves@redhat.com>
12221
12222 * breakpoint.h (struct breakpoint): In-class initialize all
12223 fields. Make boolean fields "bool".
12224 * breakpoint.c (init_raw_breakpoint_without_location): Remove
12225 memset call and initializations no longer necessary.
12226
b5c36682
PA
122272017-04-25 Pedro Alves <palves@redhat.com>
12228
12229 * btrace.c (pt_btrace_insn_flags): Change parameter type to
12230 reference.
12231 (pt_btrace_insn): New function.
12232 (ftrace_add_pt): Remove memset call and use pt_btrace_insn.
12233
5625a286
PA
122342017-04-25 Pedro Alves <palves@redhat.com>
12235
12236 * ada-lang.c (ada_catchpoint_location): Now a "class". Remove
12237 "base" field and inherit from "bp_location" instead. Add
12238 non-default ctor.
12239 (allocate_location_exception): Use new non-default ctor.
12240 * breakpoint.c (get_first_locp_gte_addr): Remove memset call.
12241 (init_bp_location): Convert to ...
12242 (bp_location::bp_location): ... this new ctor, and remove memset
12243 call.
12244 (base_breakpoint_allocate_location): Use the new non-default ctor.
12245 * breakpoint.h (bp_location): Now a class. Declare default and
12246 non-default ctors. In-class initialize all members.
12247 (init_bp_location): Remove declaration.
12248
23bcc18f
PA
122492017-04-25 Pedro Alves <palves@redhat.com>
12250
12251 * common/enum-flags.h (enum_flags): Don't implement copy ctor and
12252 assignment operator.
12253
e1ba3053
YQ
122542017-04-24 Yao Qi <yao.qi@linaro.org>
12255
12256 * doublest.c (convert_doublest_to_floatformat): Call
12257 floatformat_totalsize_bytes.
12258
10f489e5
TT
122592017-04-22 Tom Tromey <tom@tromey.com>
12260
12261 * mi/mi-cmd-file.c (mi_cmd_file_list_shared_libraries): Use
12262 ui_out_emit_list.
12263 * stack.c (print_frame): Use ui_out_emit_list.
12264 * mi/mi-symbol-cmds.c (mi_cmd_symbol_list_lines): Use
12265 ui_out_emit_list.
12266 * mi/mi-main.c (print_one_inferior)
12267 (mi_cmd_data_list_register_names)
12268 (mi_cmd_data_list_register_values, mi_cmd_list_features)
12269 (mi_cmd_list_target_features, mi_cmd_trace_frame_collected): Use
12270 ui_out_emit_list.
12271 * mi/mi-interp.c (mi_on_normal_stop_1): Use ui_out_emit_list.
12272 (mi_output_solib_attribs): Use ui_out_emit_list,
12273 ui_out_emit_tuple.
12274 * mi/mi-cmd-var.c (varobj_update_one): Use ui_out_emit_list.
12275 * mi/mi-cmd-stack.c (mi_cmd_stack_list_frames)
12276 (mi_cmd_stack_list_args, list_args_or_locals): Use
12277 ui_out_emit_list.
12278 * disasm.c (do_assembly_only): Use ui_out_emit_list.
12279 * breakpoint.c (print_solib_event, output_thread_groups): Use
12280 ui_out_emit_list.
12281
0092b74d
TT
122822017-04-22 Tom Tromey <tom@tromey.com>
12283
12284 * mi/mi-main.c (print_variable_or_computed): Use ui_out_emit_tuple.
12285 * mi/mi-cmd-var.c (varobj_update_one): Use ui_out_emit_tuple.
12286 * mi/mi-cmd-stack.c (list_arg_or_local): Use ui_out_emit_tuple.
12287
a14a62dd
TT
122882017-04-22 Tom Tromey <tom@tromey.com>
12289
12290 * tracepoint.c (tvariables_info_1)
12291 (print_one_static_tracepoint_marker): Use ui_out_emit_tuple.
12292
46b9c129
TT
122932017-04-22 Tom Tromey <tom@tromey.com>
12294
12295 * stack.c (print_frame_arg): Use ui_out_emit_tuple,
12296 annotate_arg_emitter.
12297 * breakpoint.c (print_mention_watchpoint)
12298 (print_mention_masked_watchpoint): Use ui_out_emit_tuple.
12299 * annotate.h (struct annotate_arg_emitter): New.
12300
2e783024
TT
123012017-04-22 Tom Tromey <tom@tromey.com>
12302
12303 * record-btrace.c (record_btrace_insn_history)
12304 (record_btrace_insn_history_range, record_btrace_call_history)
12305 (record_btrace_call_history_range): Use ui_out_emit_tuple.
12306 * thread.c (do_captured_list_thread_ids, print_thread_info_1): Use
12307 ui_out_emit_tuple.
12308 * stack.c (print_frame_info): Use ui_out_emit_tuple.
12309 * solib.c (info_sharedlibrary_command): Use ui_out_emit_tuple.
12310 * skip.c (skip_info): Use ui_out_emit_tuple.
12311 * remote.c (show_remote_cmd): Use ui_out_emit_tuple.
12312 * progspace.c (print_program_space): Use ui_out_emit_tuple.
12313 * probe.c (info_probes_for_ops): Use ui_out_emit_tuple.
12314 * osdata.c (info_osdata): Use ui_out_emit_tuple.
12315 * mi/mi-symbol-cmds.c (mi_cmd_symbol_list_lines): Use
12316 ui_out_emit_tuple.
12317 * mi/mi-main.c (print_one_inferior, list_available_thread_groups)
12318 (output_register, mi_cmd_data_read_memory)
12319 (mi_cmd_data_read_memory_bytes, mi_load_progress)
12320 (mi_cmd_trace_frame_collected): Use ui_out_emit_tuple.
12321 * mi/mi-cmd-var.c (mi_cmd_var_list_children, varobj_update_one):
12322 Use ui_out_emit_tuple.
12323 * mi/mi-cmd-stack.c (mi_cmd_stack_list_args): Use
12324 ui_out_emit_tuple.
12325 * mi/mi-cmd-info.c (mi_cmd_info_ada_exceptions)
12326 (mi_cmd_info_gdb_mi_command): Use ui_out_emit_tuple.
12327 * linux-thread-db.c (info_auto_load_libthread_db): Use
12328 ui_out_emit_tuple.
12329 * inferior.c (print_inferior): Use ui_out_emit_tuple.
12330 * gdb_bfd.c (print_one_bfd): Use ui_out_emit_tuple.
12331 * disasm.c (do_mixed_source_and_assembly_deprecated)
12332 (do_mixed_source_and_assembly): Use ui_out_emit_tuple.
12333 * cp-abi.c (list_cp_abis): Use ui_out_emit_tuple.
12334 * cli/cli-setshow.c (cmd_show_list): Use ui_out_emit_tuple.
12335 * breakpoint.c (print_one_breakpoint_location)
12336 (print_one_breakpoint): Use ui_out_emit_tuple.
12337 * auto-load.c (print_script, info_auto_load_cmd): Use
12338 ui_out_emit_tuple.
12339 * ada-tasks.c (print_ada_task_info): Use ui_out_emit_tuple.
12340
9be21bb4
SM
123412017-04-21 Simon Marchi <simon.marchi@ericsson.com>
12342
12343 * thread.c (print_thread_info_1): Remove dead code.
12344
0d4c07af
JK
123452017-04-21 Jan Kratochvil <jan.kratochvil@redhat.com>
12346
12347 * aarch64-tdep.c (selftests::aarch64_process_record_test): Make it #if
12348 GDB_SELF_TEST.
12349 * arm-tdep.c (selftests::arm_record_test): Likewise.
12350
4daf993d
YQ
123512017-04-21 Yao Qi <yao.qi@linaro.org>
12352
12353 * regcache.c (regcache_restore): Remove argument 2. Replace
12354 argument 3 with regcache. Get register status from
12355 src->register_status and get register contents from
12356 register_buffer (src, regnum).
12357 (regcache_cpy): Update.
12358
a6c21d4a
PA
123592017-04-19 Pedro Alves <palves@redhat.com>
12360
12361 * gdbthread.h (thread): Add missing closing parenthesis in
12362 comment.
12363
3a3fd0fd
PA
123642017-04-19 Pedro Alves <palves@redhat.com>
12365
12366 * common/refcounted-object.h: New file.
12367 * gdbthread.h: Include "common/refcounted-object.h".
12368 (thread_info): Inherit from refcounted_object and add comments.
12369 (thread_info::incref, thread_info::decref)
12370 (thread_info::m_refcount): Delete.
12371 (thread_info::deletable): Use the refcounted_object::refcount()
12372 method.
12373 * inferior.c (current_inferior_): Add comment.
12374 (set_current_inferior): Increment/decrement refcounts.
12375 (prune_inferiors, remove_inferior_command): Skip inferiors marked
12376 not-deletable instead of comparing with the current inferior.
12377 (initialize_inferiors): Increment the initial inferior's refcount.
12378 * inferior.h (struct inferior): Forward declare.
12379 Include "common/refcounted-object.h".
12380 (current_inferior, set_current_inferior): Move declaration to
12381 before struct inferior's definition, and fix comment.
12382 (inferior): Inherit from refcounted_object. Add comments.
12383 * thread.c (switch_to_thread_no_regs): Reference the thread's
12384 inferior pointer directly instead of doing a ptid lookup.
12385 (switch_to_no_thread): New function.
12386 (switch_to_thread(thread_info *)): New function, factored out
12387 from ...
12388 (switch_to_thread(ptid_t)): ... this.
12389 (restore_current_thread): Delete.
12390 (current_thread_cleanup): Remove 'inf_id' and 'was_removable'
12391 fields, and add 'inf' field.
12392 (do_restore_current_thread_cleanup): Check whether old->inf is
12393 alive instead of looking up an inferior by ptid. Use
12394 switch_to_thread and switch_to_no_thread.
12395 (restore_current_thread_cleanup_dtor): Use old->inf directly
12396 instead of lookup up an inferior by id. Decref the inferior.
12397 Don't restore 'removable'.
12398 (make_cleanup_restore_current_thread): Same the inferior pointer
12399 in old, instead of the inferior number. Incref the inferior.
12400 Don't save/clear 'removable'.
12401
9bcb1f16
PA
124022017-04-19 Pedro Alves <palves@redhat.com>
12403
12404 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
12405 unittests/scoped_restore-selftests.c.
12406 (SUBDIR_UNITTESTS_OBS): Add scoped_restore-selftests.o.
12407 * common/scoped_restore.h (scoped_restore_base): Make "class".
12408 (scoped_restore_base::release): New public method.
12409 (scoped_restore_base::scoped_restore_base): New protected ctor.
12410 (scoped_restore_base::m_saved_var): New protected field.
12411 (scoped_restore_tmpl::scoped_restore_tmpl(T*)): Initialize the
12412 scoped_restore_base base class instead of m_saved_var directly.
12413 (scoped_restore_tmpl::scoped_restore_tmpl(T*, T2)): Likewise.
12414 (scoped_restore_tmpl::scoped_restore_tmpl(const
12415 scoped_restore_tmpl<T>&)): Likewise.
12416 (scoped_restore_tmpl::~scoped_restore_tmpl): Use the saved_var
12417 method.
12418 (scoped_restore_tmpl::saved_var): New method.
12419 (scoped_restore_tmpl::m_saved_var): Delete.
12420 * inferior.h (inferior::detaching): Now a bool.
12421 * infrun.c (prepare_for_detach): Use a scoped_restore instead of a
12422 cleanup.
12423 * unittests/scoped_restore-selftests.c: New file.
12424
26fcd539
PA
124252017-04-19 Pedro Alves <palves@redhat.com>
12426
12427 * Makefile.in (SUBDIR_UNITTESTS_SRCS, SUBDIR_UNITTESTS_OBS):
12428 Re-sort in alphabetic order.
12429
fdd243b0
PA
124302017-04-18 Pedro Alves <palves@redhat.com>
12431
12432 * xml-support.c (obstack_xml_printf): Delete.
12433 * xml-support.h (obstack_xml_printf): Delete.
12434
4895cde2
PA
124352017-04-18 Pedro Alves <palves@redhat.com>
12436
12437 * xml-support.c (gdb_xml_parser) <use_dtd, dtd_name, parse,
12438 vdebug, verror, body_text, start_element, end_element, name,
12439 user_data, set_is_xinclude, set_error, expat_parser>: New methods.
12440 <name, user_data, expat_parser, scopes, error, last_line, dtd_name,
12441 is_xinclude>: Make private and add m_ prefix.
12442 (gdb_xml_parser::body_text): New method, based on ...
12443 (gdb_xml_body_text): ... this. Adjust.
12444 (gdb_xml_parser::vdebug): New method, based on ...
12445 (gdb_xml_debug): ... this. Adjust.
12446 (gdb_xml_parser::verror): New method, based on ...
12447 (gdb_xml_error): ... this. Adjust.
12448 (gdb_xml_parser::start_element): New method, based on ...
12449 (gdb_xml_start_element): ... this. Adjust.
12450 (gdb_xml_start_element_wrapper): Defer to
12451 gdb_xml_parser::start_element and gdb_xml_parser::set_error.
12452 (gdb_xml_parser::end_element): New method, based on ...
12453 (gdb_xml_end_element_wrapper): ... this. Adjust.
12454 (gdb_xml_parser::~gdb_xml_parser): Adjust.
12455 (gdb_xml_parser::gdb_xml_parser): Adjust to field renames.
12456 (gdb_xml_parser::use_dtd): New method, based on ...
12457 (gdb_xml_use_dtd): ... this. Adjust.
12458 (gdb_xml_parser::parse): New method, based on ...
12459 (gdb_xml_parse): ... this. Adjust.
12460 (gdb_xml_parse_quick): Adjust to call the parser's parse method.
12461 (xinclude_start_include): Adjust to call the parser's name method.
12462 (xml_xinclude_default, xml_xinclude_start_doctype)
12463 (xml_xinclude_end_doctype): Adjust to call the parser's user_data
12464 method.
12465 (xml_process_xincludes): Adjust to call parser methods.
12466 * xml-support.h (gdb_xml_use_dtd, gdb_xml_parse): Delete
12467 declarations.
12468
bd8a901f
PA
124692017-04-18 Pedro Alves <palves@redhat.com>
12470
12471 * tracefile-tfile.c (tfile_write_tdesc): Adjust to use
12472 gdb::optional<std::string>.
12473 * xml-support.c: Include <string>.
12474 (scope_level::scope_level(scope_level &&))
12475 (scope_level::~scope_level): Delete.
12476 (scope_level::body): Now a std::string.
12477 (gdb_xml_body_text, gdb_xml_end_element): Adjust.
12478 (xinclude_parsing_data::xinclude_parsing_data): Add 'output'
12479 parameter.
12480 (xinclude_parsing_data::~xinclude_parsing_data): Delete.
12481 (xinclude_parsing_data::output): Now a std::string reference.
12482 (xinclude_start_include): Adjust.
12483 (xml_xinclude_default): Adjust.
12484 (xml_process_xincludes): Add 'output' parameter, and return bool.
12485 * xml-support.h (xml_process_xincludes): Add 'output' parameter,
12486 and return bool.
12487 * xml-tdesc.c: Include <unordered_map> and <string>.
12488 (tdesc_xml_cache): Delete.
12489 (tdesc_xml_cache_s): Delete.
12490 (xml_cache): Now an std::unordered_map.
12491 (tdesc_parse_xml): Adjust to use std::string and unordered_map.
12492 (target_fetch_description_xml): Change return type to
12493 gdb::optional<std::string>, and adjust.
12494 * xml-tdesc.h: Include "common/gdb_optional.h" and <string>.
12495 (target_fetch_description_xml): Change return type to
12496 gdb::optional<std::string>.
12497
d35d1958
PA
124982017-04-18 Pedro Alves <palves@redhat.com>
12499
12500 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
12501 unittests/optional-selftests.c.
12502 (SUBDIR_UNITTESTS_OBS): Add optional-selftests.o.
12503 * unittests/optional-selftests.c: New file.
12504 * unittests/optional/assignment/1.cc: New file.
12505 * unittests/optional/assignment/2.cc: New file.
12506 * unittests/optional/assignment/3.cc: New file.
12507 * unittests/optional/assignment/4.cc: New file.
12508 * unittests/optional/assignment/5.cc: New file.
12509 * unittests/optional/assignment/6.cc: New file.
12510 * unittests/optional/assignment/7.cc: New file.
12511 * unittests/optional/cons/copy.cc: New file.
12512 * unittests/optional/cons/default.cc: New file.
12513 * unittests/optional/cons/move.cc: New file.
12514 * unittests/optional/cons/value.cc: New file.
12515 * unittests/optional/in_place.cc: New file.
12516 * unittests/optional/observers/1.cc: New file.
12517 * unittests/optional/observers/2.cc: New file.
12518
22796e97
PA
125192017-04-18 Pedro Alves <palves@redhat.com>
12520
12521 * common/gdb_optional.h: Include common/traits.h.
12522 (in_place_t): New type.
12523 (in_place): New constexpr variable.
12524 (optional::optional): Remove member initialization of
12525 m_instantiated.
12526 (optional::optional(in_place_t...)): New constructor.
12527 (optional::~optional): Use reset.
12528 (optional::optional(const optional&)): New.
12529 (optional::optional(const optional&&)): New.
12530 (optional::optional(T &)): New.
12531 (optional::optional(T &&)): New.
12532 (operator::operator=(const optional &)): New.
12533 (operator::operator=(optional &&)): New.
12534 (operator::operator= (const T &))
12535 (operator::operator= (T &&))
12536 (operator::emplace (Args &&... args)): Return a T&. Use reset.
12537 (operator::reset): New.
12538 (operator::m_instantiated):: Add in-class initializer.
12539 * common/traits.h: Include <type_traits>.
12540 (struct And): New types.
12541
a7fc9b61
PA
125422017-04-18 Pedro Alves <palves@redhat.com>
12543
12544 * xml-support.c: Include <vector>.
12545 (scope_level::scope_level(const gdb_xml_element *))
12546 (scope_level::scope_level(scope_level&&)): New.
12547 (scope_level::~scope_level): New.
12548 (scope_level_s): Delete.
12549 (gdb_xml_parser::scopes): Now a std::vector.
12550 (gdb_xml_body_text, gdb_xml_start_element, gdb_xml_end_element):
12551 Use std::vector.
12552 (gdb_xml_parser::~gdb_xml_parser): Remove now unnecessary
12553 scope cleanup code.
12554 (gdb_xml_parser::gdb_xml_parser): Remove explicit initialization
12555 of the scopes member. Use std::vector::emplace_back.
12556
010151c9
PA
125572017-04-18 Pedro Alves <palves@redhat.com>
12558
12559 * xml-support.c (gdb_xml_parser): Add ctor/dtor. Make is_xinclude
12560 a bool.
12561 (gdb_xml_end_element): Change type of first parameter.
12562 (gdb_xml_cleanup): Rename to ...
12563 (gdb_xml_parser::~gdb_xml_parser): ... this.
12564 (gdb_xml_create_parser_and_cleanup): Delete with ...
12565 (gdb_xml_parser::gdb_xml_parser): ... creation parts factored out
12566 to this new ctor.
12567 (gdb_xml_parse_quick): Create a local gdb_xml_parser instead of
12568 using gdb_xml_create_parser_and_cleanup.
12569 (xinclude_parsing_data): Add ctor/dtor.
12570 (xml_xinclude_cleanup): Delete.
12571 (xml_process_xincludes): Create a local xinclude_parsing_data
12572 instead of heap-allocating one. Create a local gdb_xml_parser
12573 instead of heap-allocating one with
12574 gdb_xml_create_parser_and_cleanup.
12575
d56060f0
JB
125762017-04-18 John Baldwin <jhb@FreeBSD.org>
12577
12578 PR threads/20743
12579 * fbsd-nat.c (resume_one_thread_cb): Remove.
12580 (resume_all_threads_cb): Remove.
12581 (fbsd_resume): Use ALL_NON_EXITED_THREADS instead of
12582 iterate_over_threads.
12583
305d16a9
JB
125842017-04-17 Joel Brobecker <brobecker@adacore.com>
12585
12586 * NEWS: Create a new section for the next release branch.
12587 Rename the section of the current branch, now that it has
12588 been cut.
12589
8bb57231
JB
125902017-04-17 Joel Brobecker <brobecker@adacore.com>
12591
12592 GDB 8.0 branch created (725bf5cf125783c2a7ca4ab63d3768e220bab2db):
12593 * version.in: Bump version to 8.0.50.DATE-git.
12594
096c92dd
SDJ
125952017-04-13 Sergio Durigan Junior <sergiodj@redhat.com>
12596
12597 PR gdb/21385
12598 * windows-nat.c (windows_create_inferior): Declare 'allargs'
12599 independently of the host, and fix build breakage on Cygwin.
12600
0550c955
PA
126012017-04-13 Pedro Alves <palves@redhat.com>
12602
12603 * inferior.c (free_inferior): Convert to ...
12604 (inferior::~inferior): ... this dtor.
12605 (inferior::inferior): New ctor, factored out from ...
12606 (add_inferior_silent): ... here. Allocate the inferior with a new
12607 expression.
12608 (delete_inferior): Call delete instead of free_inferior.
12609 * inferior.h (gdb_environ, continuation): Forward declare.
12610 (inferior): Now a class. Add in-class initialization to all
12611 members. Make boolean fields bool, except 'detaching'.
12612 (inferior::inferior): New explicit ctor.
12613 (inferior::~inferior): New.
12614
e3d60dfc
PA
126152017-04-13 Pedro Alves <palves@redhat.com>
12616
12617 * inferior.c (init_inferior_list): Delete.
12618 * inferior.h (init_inferior_list): Delete.
12619
5fd69d0a
PA
126202017-04-13 Pedro Alves <palves@redhat.com>
12621
12622 PR threads/13217
12623 * gdb.threads/threadapply.exp (thr_apply_detach): New procedure.
12624 (top level): Call it twice, with different thread sets.
12625
c6609450
PA
126262017-04-13 Pedro Alves <palves@redhat.com>
12627
12628 * thread.c: Include <algorithm>.
12629 (thread_array_cleanup): Delete.
12630 (scoped_inc_dec_ref): New class.
12631 (live_threads_count): New function.
12632 (set_thread_refcount): Delete.
12633 (tp_array_compar_ascending): Now a bool.
12634 (tp_array_compar): Convert to a std::sort comparison function.
12635 (thread_apply_all_command): Use std::vector and scoped_inc_dec_ref
12636 and live_threads_count.
12637
2a00d7ce
PA
126382017-04-13 Pedro Alves <palves@redhat.com>
12639
12640 * infrun.c (follow_fork_inferior): Also switch the current
12641 inferior.
12642
441d7c93
PA
126432017-04-13 Pedro Alves <palves@redhat.com>
12644
12645 * breakpoint.c (watch_command_1): Save watchpoint-frame info
12646 before calling create_internal_breakpoint.
12647
808480f6
PA
126482017-04-13 Pedro Alves <palves@redhat.com>
12649
12650 * fork-child.c (execv_argv): New class.
12651 (breakup_args): Refactored as ...
12652 (execv_argv::init_for_no_shell): .. this method of execv_argv.
12653 Copy arguments to storage and replace separators with NULL
12654 terminators in place.
12655 (escape_bang_in_quoted_argument): Adjust to return bool.
12656 (execv_argv::execv_argv): New ctor.
12657 (execv_argv::init_for_shell): New method, factored out from
12658 fork_inferior. Don't strdup strings into the vector.
12659 (fork_inferior): Eliminate "shell" local and use execv_argv. Use
12660 Remove free_vector_argv call.
12661
ad3d022a
YQ
126622017-04-13 Yao Qi <yao.qi@linaro.org>
12663
12664 * rx-tdep.c (rx_fpsw_type): Check tdep->rx_fpsw_type instead of
12665 tdep->rx_psw_type.
12666
e6ddc3bf
YQ
126672017-04-13 Yao Qi <yao.qi@linaro.org>
12668
12669 * rl78-tdep.c (rl78_gdbarch_init): Use XCNEW instead of XNEW.
12670 * rx-tdep.c (rx_gdbarch_init): Likewise.
12671
bfb8cf90
PA
126722017-04-13 Pedro Alves <palves@redhat.com>
12673
12674 * breakpoint.h (struct breakpoint): Reindent.
12675
f5336ca5
PA
126762017-04-13 Pedro Alves <palves@redhat.com>
12677
12678 * breakpoint.c (bp_location): Rename to ...
12679 (bp_locations): ... this. All references updated.
12680 (bp_location_count): Rename to ...
12681 (bp_locations_count): ... this. All references updated.
12682 (bp_location_placed_address_before_address_max): Rename to ...
12683 (bp_locations_placed_address_before_address_max): ... this. All
12684 references updated.
12685 (bp_location_shadow_len_after_address_max): Rename to ...
12686 (bp_locations_shadow_len_after_address_max): ... this. All
12687 references updated.
12688 (bp_location_compare_addrs): Rename to ...
12689 (bp_locations_compare_addrs): ... this. All references updated.
12690 (bp_location_compare):Rename to ...
12691 (bp_locations_compare): ... this. All references updated.
12692 (bp_location_target_extensions_update): Rename to ...
12693 (bp_locations_target_extensions_update): ... this. All references
12694 updated.
12695
be628ab8
SDJ
126962017-04-12 Sergio Durigan Junior <sergiodj@redhat.com>
12697
12698 * Makefile.in (HFILES_NO_SRCDIR): Add "common/gdb_termios.h".
12699 * common/common.m4: Check headers 'termios.h', 'termio.h' and
12700 'sgtty.h'.
12701 * common/gdb_termios.h: New file, with parts of "terminal.h".
12702 * inflow.c: Include "gdb_termios.h".
12703 * ser-unix.c: Include "gdb_termios.h".
12704 * terminal.h: Move terminal-related defines to
12705 "common/gdb_termios.h".
12706
8e9e35b1
TT
127072017-04-12 Tom Tromey <tom@tromey.com>
12708
12709 * probe.c (parse_probes): Update.
12710 * location.h (delete_event_location): Don't declare.
12711 (event_location_deleter::operator()): Update.
12712 * location.c (event_location_deleter::operator()): Rename from
12713 delete_event_location.
12714 * linespec.h (linespec_result) <location>: Change type to
12715 event_location_up.
12716 * linespec.c (canonicalize_linespec, event_location_to_sals)
12717 (decode_objc): Update.
12718 (linespec_result): Don't call delete_event_location.
12719 * breakpoint.c (create_breakpoints_sal)
12720 (bkpt_probe_create_sals_from_location)
12721 (strace_marker_create_sals_from_location): Update.
12722
16e802b9
TT
127232017-04-12 Tom Tromey <tom@tromey.com>
12724
12725 * linespec.h (struct linespec_result): Add constructor and
12726 destructor.
12727 (init_linespec_result, destroy_linespec_result)
12728 (make_cleanup_destroy_linespec_result): Don't declare.
12729 * linespec.c (init_linespec_result): Remove.
12730 (linespec_result::~linespec_result): Rename from
12731 destroy_linespec_result. Update.
12732 (cleanup_linespec_result, make_cleanup_destroy_linespec_result):
12733 Remove.
12734 * breakpoint.c (create_breakpoint, break_range_command)
12735 (decode_location_default): Update.
12736 * ax-gdb.c (agent_command_1): Update.
12737
d28cd78a
TT
127382017-04-12 Tom Tromey <tom@tromey.com>
12739
12740 * remote.c (remote_download_tracepoint): Update.
12741 * python/py-breakpoint.c (bppy_get_location): Update.
12742 * guile/scm-breakpoint.c (bpscm_print_breakpoint_smob)
12743 (gdbscm_breakpoint_location): Update.
12744 * elfread.c (elf_gnu_ifunc_resolver_return_stop): Update.
12745 * breakpoint.h (struct breakpoint) <location, location_range_end>:
12746 Change type to event_location_up.
12747 * breakpoint.c (create_overlay_event_breakpoint)
12748 (create_longjmp_master_breakpoint)
12749 (create_std_terminate_master_breakpoint)
12750 (create_exception_master_breakpoint)
12751 (breakpoint_event_location_empty_p, print_breakpoint_location)
12752 (print_one_breakpoint_location, create_thread_event_breakpoint)
12753 (init_breakpoint_sal, create_breakpoint)
12754 (print_recreate_ranged_breakpoint, break_range_command)
12755 (init_ada_exception_breakpoint, say_where): Update.
12756 (base_breakpoint_dtor): Don't call delete_event_location.
12757 (bkpt_print_recreate, tracepoint_print_recreate)
12758 (dprintf_print_recreate, update_static_tracepoint)
12759 (breakpoint_re_set_default): Update.
12760
711799d5
TT
127612017-04-12 Tom Tromey <tom@tromey.com>
12762
12763 * compile/compile-loc2c.c (compute_stack_depth_worker): Change
12764 type of "to_do". Update.
12765 (compute_stack_depth): Use std::vector.
12766
52d214d3
TT
127672017-04-12 Tom Tromey <tom@tromey.com>
12768
12769 * printcmd.c (find_instruction_backward): Use std::vector.
12770
4c404b8b
TT
127712017-04-12 Tom Tromey <tom@tromey.com>
12772
12773 * symfile.c (objfilep): Remove typedef.
12774 (reread_symbols): Use a std::vector.
12775
156d9eab
TT
127762017-04-12 Tom Tromey <tom@tromey.com>
12777
12778 * mi/mi-main.c (exec_direction_forward): Remove.
12779 (exec_reverse_continue, mi_execute_command): Use scoped_restore.
12780 * guile/scm-ports.c (ioscm_with_output_to_port_worker): Use
12781 scoped_restore.
12782 * guile/guile.c (guile_repl_command, guile_command)
12783 (gdbscm_execute_gdb_command): Use scoped_restore.
12784 * go-exp.y (go_parse): Use scoped_restore.
12785 * d-exp.y (d_parse): Use scoped_restore.
12786 * cli/cli-decode.c (cmd_func): Use scoped_restore.
12787 * c-exp.y (c_parse): Use scoped_restore.
12788
4d89769a
TT
127892017-04-12 Tom Tromey <tom@tromey.com>
12790
12791 * mi/mi-parse.h (struct mi_parse): Add constructor, destructor.
12792 (mi_parse): Update return type.
12793 (mi_parse_free): Remove.
12794 * mi/mi-parse.c (mi_parse::mi_parse): New constructor.
12795 (mi_parse::~mi_parse): Rename from mi_parse_free.
12796 (mi_parse_cleanup): Remove.
12797 (mi_parse): Return a unique_ptr. Use new.
12798 * mi/mi-main.c (mi_execute_command): Update.
12799
4b217cc7
TT
128002017-04-12 Tom Tromey <tom@tromey.com>
12801
12802 * location.c (explicit_location_lex_one): Return a
12803 unique_xmalloc_ptr.
12804 (string_to_explicit_location): Update. Remove cleanups.
12805
59d3651b
TT
128062017-04-12 Tom Tromey <tom@tromey.com>
12807
12808 * gnu-v3-abi.c (value_and_voffset_p): Remove typedef.
12809 (compare_value_and_voffset): Change type. Update.
12810 (compute_vtable_size): Change type of "offset_vec".
12811 (gnuv3_print_vtable): Use std::vector. Remove cleanups.
12812 (gnuv3_get_typeid): Remove extraneous declaration.
12813
b24b0d6c
TT
128142017-04-12 Tom Tromey <tom@tromey.com>
12815
12816 * charset.h (wchar_iterator): Fix comment.
12817
80a3b8c5
TT
128182017-04-12 Tom Tromey <tom@tromey.com>
12819
12820 * charset.c (iconv_wrapper): New class.
12821 (cleanup_iconv): Remove.
12822 (convert_between_encodings): Use it.
12823
c83dd867
TT
128242017-04-12 Tom Tromey <tom@tromey.com>
12825
12826 * symfile.h (increment_reading_symtab): Update type.
12827 * symfile.c (decrement_reading_symtab): Remove.
12828 (increment_reading_symtab): Return a scoped_restore_tmpl<int>.
12829 * psymtab.c (psymtab_to_symtab): Update.
12830 * dwarf2read.c (dw2_instantiate_symtab): Update.
12831
0e8621a0
TT
128322017-04-12 Tom Tromey <tom@tromey.com>
12833
12834 * jit.c (struct jit_reader): Declare separately. Add constructor
12835 and destructor. Change type of "handle".
12836 (loaded_jit_reader): Define separately.
12837 (jit_reader_load): Update. New "new".
12838 (jit_reader_unload_command): Use "delete".
12839 * gdb-dlfcn.h (struct dlclose_deleter): New.
12840 (gdb_dlhandle_up): New typedef.
12841 (gdb_dlopen, gdb_dlsym): Update types.
12842 (gdb_dlclose): Remove.
12843 * gdb-dlfcn.c (gdb_dlopen): Return a gdb_dlhandle_up.
12844 (gdb_dlsym): Change type of "handle".
12845 (make_cleanup_dlclose): Remove.
12846 (dlclose_deleter::operator()): Rename from gdb_dlclose.
12847 * compile/compile-c-support.c (load_libcc): Update.
12848
67d89901
TT
128492017-04-12 Tom Tromey <tom@tromey.com>
12850
12851 * symtab.h (find_pcs_for_symtab_line): Change return type.
12852 * symtab.c (find_pcs_for_symtab_line): Change return type.
12853 * python/py-linetable.c (build_line_table_tuple_from_pcs): Change
12854 type of "vec". Update.
12855 (ltpy_get_pcs_for_line): Update.
12856 * linespec.c (decode_digits_ordinary): Update.
12857
93921405
TT
128582017-04-12 Tom Tromey <tom@tromey.com>
12859
12860 * tracepoint.c (actions_command): Update.
12861 * python/python.c (python_command, python_interactive_command):
12862 Update.
12863 * mi/mi-cmd-break.c (mi_cmd_break_commands): Update.
12864 * guile/guile.c (guile_command): Update.
12865 * defs.h (read_command_lines, read_command_lines_1): Return
12866 command_line_up.
12867 (command_lines_deleter): New struct.
12868 (command_line_up): New typedef.
12869 * compile/compile.c (compile_code_command)
12870 (compile_print_command): Update.
12871 * cli/cli-script.h (get_command_line, copy_command_lines): Return
12872 command_line_up.
12873 (make_cleanup_free_command_lines): Remove.
12874 * cli/cli-script.c (get_command_line, read_command_lines_1)
12875 (copy_command_lines): Return command_line_up.
12876 (while_command, if_command, read_command_lines, define_command)
12877 (document_command): Update.
12878 (do_free_command_lines_cleanup, make_cleanup_free_command_lines):
12879 Remove.
12880 * breakpoint.h (breakpoint_set_commands): Change type of
12881 "commands".
12882 * breakpoint.c (breakpoint_set_commands): Change type of
12883 "commands". Update.
12884 (do_map_commands_command, update_dprintf_command_list)
12885 (create_tracepoint_from_upload): Update.
12886
ffc2605c
TT
128872017-04-12 Tom Tromey <tom@tromey.com>
12888
12889 * tracepoint.c (scope_info): Update.
12890 * spu-tdep.c (spu_catch_start): Update.
12891 * python/python.c (gdbpy_decode_line): Update.
12892 * python/py-finishbreakpoint.c (bpfinishpy_init): Update.
12893 * python/py-breakpoint.c (bppy_init): Update.
12894 * probe.c (parse_probes): Update.
12895 * mi/mi-cmd-break.c (mi_cmd_break_insert_1): Update.
12896 * location.h (event_location_deleter): New struct.
12897 (event_location_up): New typedef.
12898 (new_linespec_location, new_address_location, new_probe_location)
12899 (new_explicit_location, copy_event_location)
12900 (string_to_event_location, string_to_event_location_basic)
12901 (string_to_explicit_location): Update return type.
12902 (make_cleanup_delete_event_location): Remove.
12903 * location.c (new_linespec_location, new_address_location)
12904 (new_probe_location, new_explicit_location, copy_event_location):
12905 Return event_location_up.
12906 (delete_event_location_cleanup)
12907 (make_cleanup_delete_event_location): Remove.
12908 (string_to_explicit_location, string_to_event_location_basic)
12909 (string_to_event_location): Return event_location_up.
12910 * linespec.c (canonicalize_linespec, event_location_to_sals)
12911 (decode_line_with_current_source)
12912 (decode_line_with_last_displayed, decode_objc): Update.
12913 * guile/scm-breakpoint.c (gdbscm_register_breakpoint_x): Update.
12914 * completer.c (location_completer): Update.
12915 * cli/cli-cmds.c (edit_command, list_command): Update.
12916 * breakpoint.c (create_overlay_event_breakpoint)
12917 (create_longjmp_master_breakpoint)
12918 (create_std_terminate_master_breakpoint)
12919 (create_exception_master_breakpoint)
12920 (create_thread_event_breakpoint): Update.
12921 (init_breakpoint_sal): Update. Remove some dead code.
12922 (create_breakpoint_sal): Change type of "location". Update.
12923 (create_breakpoints_sal, create_breakpoint, break_command_1)
12924 (dprintf_command, break_range_command, until_break_command)
12925 (init_ada_exception_breakpoint)
12926 (strace_marker_create_sals_from_location)
12927 (update_static_tracepoint, trace_command, ftrace_command)
12928 (strace_command, create_tracepoint_from_upload): Update.
12929 * break-catch-throw.c (re_set_exception_catchpoint): Update.
12930 * ax-gdb.c (agent_command_1): Update.
12931
8f10c932
PA
129322017-04-12 Pedro Alves <palves@redhat.com>
12933
12934 * Makefile.in (ALL_TARGET_OBS): Add i386-go32-tdep.o.
12935 * configure.tgt: Handle i[34567]86-*-go32* and
12936 i[34567]86-*-msdosdjgpp*.
12937 * i386-tdep.c (i386_svr4_reg_to_regnum):
12938 Make extern.
12939 (i386_go32_init_abi, i386_coff_osabi_sniffer): Moved to
12940 i386-go32-tdep.c.
12941 (_initialize_i386_tdep): DJGPP bits moved to i386-go32-tdep.c.
12942 * i386-go32-tdep.c: New file.
12943 * i386-tdep.h (tdesc_i386_mmx, i386_svr4_reg_to_regnum): New
12944 declarations.
12945
0a31ccfb
SM
129462017-04-12 Simon Marchi <simon.marchi@ericsson.com>
12947
12948 * aix-thread.c (pd_status2str): Change return type to const char *.
12949
e9bb3fbb
PA
129502017-04-12 Pedro Alves <palves@redhat.com>
12951
12952 * i386-tdep.c (i386_elf_init_abi, i386_go32_init_abi): Remove
12953 calls to set_gdbarch_gnu_triplet_regexp.
12954
53375380
PA
129552017-04-12 Pedro Alves <palves@redhat.com>
12956
12957 PR gdb/21323
12958 * c-lang.c (cplus_primitive_types) <cplus_primitive_type_wchar_t>:
12959 New enum value.
12960 (cplus_language_arch_info): Register cplus_primitive_type_wchar_t.
12961 * gdbtypes.h (struct builtin_type) <builtin_wchar>: New field.
12962 * gdbtypes.c (gdbtypes_post_init): Create the "wchar_t" type.
12963 * gdbarch.sh (wchar_bit, wchar_signed): New per-arch values.
12964 * gdbarch.h, gdbarch.c: Regenerate.
12965 * aarch64-tdep.c (aarch64_gdbarch_init): Override
12966 gdbarch_wchar_bit and gdbarch_wchar_signed.
12967 * alpha-tdep.c (alpha_gdbarch_init): Likewise.
12968 * arm-tdep.c (arm_gdbarch_init): Likewise.
12969 * avr-tdep.c (avr_gdbarch_init): Likewise.
12970 * h8300-tdep.c (h8300_gdbarch_init): Likewise.
12971 * i386-nto-tdep.c (i386nto_init_abi): Likewise.
12972 * i386-tdep.c (i386_go32_init_abi): Likewise.
12973 * m32r-tdep.c (m32r_gdbarch_init): Likewise.
12974 * moxie-tdep.c (moxie_gdbarch_init): Likewise.
12975 * nds32-tdep.c (nds32_gdbarch_init): Likewise.
12976 * rs6000-aix-tdep.c (rs6000_aix_init_osabi): Likewise.
12977 * sh-tdep.c (sh_gdbarch_init): Likewise.
12978 * sparc-tdep.c (sparc32_gdbarch_init): Likewise.
12979 * sparc64-tdep.c (sparc64_init_abi): Likewise.
12980 * windows-tdep.c (windows_init_abi): Likewise.
12981 * xstormy16-tdep.c (xstormy16_gdbarch_init): Likewise.
12982
53e710ac
PA
129832017-04-12 Pedro Alves <palves@redhat.com>
12984
12985 PR c++/21323
12986 * c-lang.c (cplus_primitive_types) <cplus_primitive_type_char16_t,
12987 cplus_primitive_type_char32_t>: New enum values.
12988 (cplus_language_arch_info): Register cplus_primitive_type_char16_t
12989 and cplus_primitive_type_char32_t.
12990 * dwarf2read.c (read_base_type) <DW_ATE_UTF>: If bit size is 16 or
12991 32, use the archtecture's built-in type for char16_t and char32_t,
12992 respectively. Otherwise, fallback to init_integer_type as before,
12993 but make the type unsigned, and issue a complaint.
12994 * gdbtypes.c (gdbtypes_post_init): Make char16_t and char32_t unsigned.
12995
ab0538b8
AH
129962017-04-12 Alan Hayward <alan.hayward@arm.com>
12997
5e0e0422 12998 * m32r-tdep.c (M32R_ARG_REGISTER_SIZE): Added.
ab0538b8
AH
12999 (m32r_push_dummy_call): Use M32R_ARG_REGISTER_SIZE.
13000
5430098f
SDJ
130012017-04-12 Sergio Durigan Junior <sergiodj@redhat.com>
13002
13003 * windows-nat.c (windows_create_inferior): Declare 'toexec' as
13004 'const char *'.
13005
7c5ded6a
SDJ
130062017-04-12 Sergio Durigan Junior <sergiodj@redhat.com>
13007
13008 * common/common-utils.c (free_vector_argv): New function.
13009 * common/common-utils.h: Include <vector>.
13010 (free_vector_argv): New prototype.
13011 * darwin-nat.c (darwin_create_inferior): Rewrite function
13012 prototype in order to constify "exec_file" and accept a
13013 "std::string" for "allargs".
13014 * fork-child.c: Include <vector>.
13015 (breakup_args): Rewrite function, using C++.
13016 (fork_inferior): Rewrite function header, constify "exec_file_arg"
13017 and accept "std::string" for "allargs". Update the code to
13018 calculate "argv" based on "allargs". Update calls to "exec_fun"
13019 and "execvp".
13020 * gnu-nat.c (gnu_create_inferior): Rewrite function prototype in
13021 order to constify "exec_file" and accept a "std::string" for
13022 "allargs".
13023 * go32-nat.c (go32_create_inferior): Likewise.
13024 * inf-ptrace.c (inf_ptrace_create_inferior): Likewise.
13025 * infcmd.c (run_command_1): Constify "exec_file". Use
13026 "std::string" for inferior arguments.
13027 * inferior.h (fork_inferior): Update prototype.
13028 * linux-nat.c (linux_nat_create_inferior): Rewrite function
13029 prototype in order to constify "exec_file" and accept a
13030 "std::string" for "allargs".
13031 * nto-procfs.c (procfs_create_inferior): Likewise.
13032 * procfs.c (procfs_create_inferior): Likewise.
13033 * remote-sim.c (gdbsim_create_inferior): Likewise.
13034 * remote.c (extended_remote_run): Update code to accept
13035 "std::string" as argument.
13036 (extended_remote_create_inferior): Rewrite function prototype in
13037 order to constify "exec_file" and accept a "std::string" for
13038 "allargs".
13039 * rs6000-nat.c (super_create_inferior): Likewise.
13040 (rs6000_create_inferior): Likewise.
13041 * target.h (struct target_ops) <to_create_inferior>: Likewise.
13042 * windows-nat.c (windows_create_inferior): Likewise.
13043
ae0eee42
PA
130442017-04-11 Pedro Alves <palves@redhat.com>
13045
13046 * thread.c: Fix whitespace throughout.
13047
a6acac06
PR
130482017-04-11 Philipp Rudo <prudo@linux.vnet.ibm.com>
13049
13050 * linux-nat.c (linux_nat_detach): Remove delete_lwp call.
13051
64403bd1
AH
130522017-04-11 Alan Hayward <alan.hayward@arm.com>
13053
13054 * arm-tdep.c (arm_store_return_value): Use FP_REGISTER_SIZE
13055
a5bef50f
SDJ
130562017-04-10 Sergio Durigan Junior <sergiodj@redhat.com>
13057
13058 PR gdb/21364
13059 * osdata.c (info_osdata): Check if 'type' is an empty string
13060 instead of NULL.
13061
9295a5a9
PA
130622017-04-10 Pedro Alves <palves@redhat.com>
13063
13064 * thread.c (add_thread_silent, delete_thread_1, find_thread_ptid)
13065 (ptid_to_global_thread_id, in_thread_list)
13066 (do_captured_list_thread_ids, set_resumed, set_running)
13067 (set_executing, set_stop_requested, finish_thread_state)
13068 (validate_registers_access, can_access_registers_ptid)
13069 (print_thread_info_1, switch_to_thread)
13070 (do_restore_current_thread_cleanup)
13071 (make_cleanup_restore_current_thread, thread_command)
13072 (thread_name_command): Use operator== instead of ptid_equal.
13073
996812e3
PA
130742017-04-10 Pedro Alves <palves@redhat.com>
13075
13076 * thread.c (struct current_thread_cleanup) <next>: Delete field.
13077 (current_thread_cleanup_chain): Delete.
13078 (restore_current_thread_cleanup_dtor)
13079 (make_cleanup_restore_current_thread): Remove references to
13080 current_thread_cleanup_chain.
13081
845b344f
AH
130822017-04-10 Alan Hayward <alan.hayward@arm.com>
13083
13084 * msp430-tdep.c (msp430_pseudo_register_read): Never return
13085 REG_UNKNOWN.
13086
803bdfe4
YQ
130872017-04-10 Yao Qi <yao.qi@linaro.org>
13088
13089 PR gdb/19942
13090 * gdbthread.h (thread_info::deletable): New method.
13091 (thread_info::incref): New method.
13092 (thread_info::decref): New method.
13093 (thread_info::refcount): Move it to private.
13094 * infrun.c (save_stop_context): Call inc_refcount.
13095 (release_stop_context_cleanup): Likewise.
13096 * thread.c (set_thread_exited): New function.
13097 (init_thread_list): Delete "tp" only it is deletable, otherwise
13098 call set_thread_exited.
13099 (delete_thread_1): Call set_thread_exited.
13100 (current_thread_cleanup) <inferior_pid>: Remove.
13101 <thread>: New field.
13102 (restore_current_thread_ptid_changed): Removed.
13103 (do_restore_current_thread_cleanup): Adjust.
13104 (restore_current_thread_cleanup_dtor): Don't call
13105 find_thread_ptid.
13106 (set_thread_refcount): Use dec_refcount.
13107 (make_cleanup_restore_current_thread): Adjust.
13108 (thread_apply_all_command): Call inc_refcount.
13109 (_initialize_thread): Don't call
13110 observer_attach_thread_ptid_changed.
13111
8c25b497
YQ
131122017-04-10 Yao Qi <yao.qi@linaro.org>
13113
13114 * thread.c (delete_thread_1): Hoist code on marking thread as
13115 exited.
13116
8473b447
SM
131172017-04-09 Simon Marchi <simon.marchi@polymtl.ca>
13118
13119 * windows-nat.c (windows_detach): Initialize ptid with
13120 minus_one_ptid.
13121
6670ec13
SM
131222017-04-07 Simon Marchi <simon.marchi@ericsson.com>
13123
13124 * unittests/ptid-selftests.c: Fix erroneous assert messages.
13125
ba2f91bb
AH
131262017-04-07 Alan Hayward <alan.hayward@arm.com>
13127
13128 * bfin-tdep.c (BFIN_MAX_REGISTER_SIZE): Add.
13129 (bfin_pseudo_register_read): Use BFIN_MAX_REGISTER_SIZE.
13130 (bfin_pseudo_register_write): Likewise
13131
436252de
SM
131322017-04-06 Simon Marchi <simon.marchi@ericsson.com>
13133
13134 * common/ptid.h (struct ptid): Change to...
13135 (class ptid_t): ... this.
13136 <ptid_t>: New constructors.
13137 <pid, lwp_p, lwp, tid_p, tid, is_pid, operator==, operator!=,
13138 matches>: New methods.
13139 <make_null, make_minus_one>: New static methods.
13140 <pid>: Rename to...
13141 <m_pid>: ...this.
13142 <lwp>: Rename to...
13143 <m_lwp>: ...this.
13144 <tid>: Rename to...
13145 <m_tid>: ...this.
13146 (ptid_build, ptid_get_pid, ptid_get_lwp, ptid_get_tid, ptid_equal,
13147 ptid_is_pid, ptid_lwp_p, ptid_tid_p, ptid_match): Take ptid arguments
13148 as references, move comment to class ptid_t.
13149 * common/ptid.c (null_ptid, minus_one_ptid): Initialize with
13150 ptid_t static methods.
13151 (ptid_build, pid_to_ptid, ptid_get_pid, ptid_get_tid,
13152 ptid_equal, ptid_is_pid, ptid_lwp_p, ptid_tid_p, ptid_match):
13153 Take ptid arguments as references, implement using ptid_t methods.
13154 * unittests/ptid-selftests.c: New file.
13155 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
13156 unittests/ptid-selftests.c.
13157 (SUBDIR_UNITTESTS_OBS): Add unittests/ptid-selftests.o.
13158
0dedf377
TP
131592017-04-06 Thomas Preud'homme <thomas.preudhomme@arm.com>
13160
13161 * python/python.c (python_run_simple_file): Cast mode literal to
13162 non-const char pointer as expected by PyFile_FromString.
13163
4e9868d4
SM
131642017-04-05 Simon Marchi <simon.marchi@ericsson.com>
13165
13166 * common/ptid.c (ptid_lwp_p, ptid_tid_p): Remove comparison with
13167 minus_one_ptid and null_ptid.
13168
9bf2a700
PA
131692017-04-05 Pedro Alves <palves@redhat.com>
13170
13171 * warning.m4 (build_warnings): Remove -Wno-write-strings.
13172 * configure: Regenerate.
13173
a121b7c1
PA
131742017-04-05 Pedro Alves <palves@redhat.com>
13175
13176 * ada-exp.y (yyerror): Constify.
13177 * ada-lang.c (bound_name, get_selections)
13178 (ada_variant_discrim_type)
13179 (ada_variant_discrim_name, ada_value_struct_elt)
13180 (ada_lookup_struct_elt_type, is_unchecked_variant)
13181 (ada_which_variant_applies, standard_exc, ada_get_next_arg)
13182 (catch_ada_exception_command_split)
13183 (catch_ada_assert_command_split, catch_assert_command)
13184 (ada_op_name): Constify.
13185 * ada-lang.h (ada_yyerror, get_selections)
13186 (ada_variant_discrim_name, ada_value_struct_elt): Constify.
13187 * arc-tdep.c (arc_print_frame_cache): Constify.
13188 * arm-tdep.c (arm_skip_stub): Constify.
13189 * ax-gdb.c (gen_binop, gen_struct_ref_recursive, gen_struct_ref)
13190 (gen_aggregate_elt_ref): Constify.
13191 * bcache.c (print_bcache_statistics): Constify.
13192 * bcache.h (print_bcache_statistics): Constify.
13193 * break-catch-throw.c (catch_exception_command_1):
13194 * breakpoint.c (struct ep_type_description::description):
13195 Constify.
13196 (add_solib_catchpoint): Constify.
13197 (catch_fork_command_1): Add cast.
13198 (add_catch_command): Constify.
13199 * breakpoint.h (add_catch_command, add_solib_catchpoint):
13200 Constify.
13201 * bsd-uthread.c (bsd_uthread_state): Constify.
13202 * buildsym.c (patch_subfile_names): Constify.
13203 * buildsym.h (next_symbol_text_func, patch_subfile_names):
13204 Constify.
13205 * c-exp.y (yyerror): Constify.
13206 (token::oper): Constify.
13207 * c-lang.h (c_yyerror, cp_print_class_member): Constify.
13208 * c-varobj.c (cplus_describe_child): Constify.
13209 * charset.c (find_charset_names): Add cast.
13210 (find_charset_names): Constify array and add const_cast.
13211 * cli/cli-cmds.c (complete_command, cd_command): Constify.
13212 (edit_command): Constify.
13213 * cli/cli-decode.c (lookup_cmd): Constify.
13214 * cli/cli-dump.c (dump_memory_command, dump_value_command):
13215 Constify.
13216 (struct dump_context): Constify.
13217 (add_dump_command, restore_command): Constify.
13218 * cli/cli-script.c (get_command_line): Constify.
13219 * cli/cli-script.h (get_command_line): Constify.
13220 * cli/cli-utils.c (check_for_argument): Constify.
13221 * cli/cli-utils.h (check_for_argument): Constify.
13222 * coff-pe-read.c (struct read_pe_section_data): Constify.
13223 * command.h (lookup_cmd): Constify.
13224 * common/print-utils.c (decimal2str): Constify.
13225 * completer.c (gdb_print_filename): Constify.
13226 * corefile.c (set_gnutarget): Constify.
13227 * cp-name-parser.y (yyerror): Constify.
13228 * cp-valprint.c (cp_print_class_member): Constify.
13229 * cris-tdep.c (cris_register_name, crisv32_register_name):
13230 Constify.
13231 * d-exp.y (yyerror): Constify.
13232 (struct token::oper): Constify.
13233 * d-lang.h (d_yyerror): Constify.
13234 * dbxread.c (struct header_file_location::name): Constify.
13235 (add_old_header_file, add_new_header_file, last_function_name)
13236 (dbx_next_symbol_text, add_bincl_to_list)
13237 (find_corresponding_bincl_psymtab, set_namestring)
13238 (find_stab_function_addr, read_dbx_symtab, start_psymtab)
13239 (dbx_end_psymtab, read_ofile_symtab, process_one_symbol):
13240 * defs.h (command_line_input, print_address_symbolic)
13241 (deprecated_readline_begin_hook): Constify.
13242 * dwarf2read.c (anonymous_struct_prefix, dwarf_bool_name):
13243 Constify.
13244 * event-top.c (handle_line_of_input): Constify and add cast.
13245 * exceptions.c (catch_errors): Constify.
13246 * exceptions.h (catch_errors): Constify.
13247 * expprint.c (print_subexp_standard, op_string, op_name)
13248 (op_name_standard, dump_raw_expression, dump_raw_expression):
13249 * expression.h (op_name, op_string, dump_raw_expression):
13250 Constify.
13251 * f-exp.y (yyerror): Constify.
13252 (struct token::oper): Constify.
13253 (struct f77_boolean_val::name): Constify.
13254 * f-lang.c (f_word_break_characters): Constify.
13255 * f-lang.h (f_yyerror): Constify.
13256 * fork-child.c (fork_inferior): Add cast.
13257 * frv-tdep.c (struct gdbarch_tdep::register_names): Constify.
13258 (new_variant): Constify.
13259 * gdbarch.sh (pstring_ptr, pstring_list): Constify.
13260 * gdbarch.c: Regenerate.
13261 * gdbcore.h (set_gnutarget): Constify.
13262 * go-exp.y (yyerror): Constify.
13263 (token::oper): Constify.
13264 * go-lang.h (go_yyerror): Constify.
13265 * go32-nat.c (go32_sysinfo): Constify.
13266 * guile/scm-breakpoint.c (gdbscm_breakpoint_expression): Constify.
13267 * guile/scm-cmd.c (cmdscm_function): Constify.
13268 * guile/scm-param.c (pascm_param_value): Constify.
13269 * h8300-tdep.c (h8300_register_name, h8300s_register_name)
13270 (h8300sx_register_name): Constify.
13271 * hppa-tdep.c (hppa32_register_name, hppa64_register_name):
13272 Constify.
13273 * ia64-tdep.c (ia64_register_names): Constify.
13274 * infcmd.c (construct_inferior_arguments): Constify.
13275 (path_command, attach_post_wait): Constify.
13276 * language.c (show_range_command, show_case_command)
13277 (unk_lang_error): Constify.
13278 * language.h (language_defn::la_error)
13279 (language_defn::la_name_of_this): Constify.
13280 * linespec.c (decode_line_2): Constify.
13281 * linux-thread-db.c (thread_db_err_str): Constify.
13282 * lm32-tdep.c (lm32_register_name): Constify.
13283 * m2-exp.y (yyerror): Constify.
13284 * m2-lang.h (m2_yyerror): Constify.
13285 * m32r-tdep.c (m32r_register_names): Constify and make static.
13286 * m68hc11-tdep.c (m68hc11_register_names): Constify.
13287 * m88k-tdep.c (m88k_register_name): Constify.
13288 * macroexp.c (appendmem): Constify.
13289 * mdebugread.c (fdr_name, add_data_symbol, parse_type)
13290 (upgrade_type, parse_external, parse_partial_symbols)
13291 (mdebug_next_symbol_text, cross_ref, mylookup_symbol, new_psymtab)
13292 (new_symbol): Constify.
13293 * memattr.c (mem_info_command): Constify.
13294 * mep-tdep.c (register_name_from_keyword): Constify.
13295 * mi/mi-cmd-env.c (mi_cmd_env_path, _initialize_mi_cmd_env):
13296 Constify.
13297 * mi/mi-cmd-stack.c (list_args_or_locals): Constify.
13298 * mi/mi-cmd-var.c (mi_cmd_var_show_attributes): Constify.
13299 * mi/mi-main.c (captured_mi_execute_command): Constify and add
13300 cast.
13301 (mi_execute_async_cli_command): Constify.
13302 * mips-tdep.c (mips_register_name): Constify.
13303 * mn10300-tdep.c (register_name, mn10300_generic_register_name)
13304 (am33_register_name, am33_2_register_name)
13305 * moxie-tdep.c (moxie_register_names): Constify.
13306 * nat/linux-osdata.c (osdata_type): Constify fields.
13307 * nto-tdep.c (nto_parse_redirection): Constify.
13308 * objc-lang.c (lookup_struct_typedef, lookup_objc_class)
13309 (lookup_child_selector): Constify.
13310 (objc_methcall::name): Constify.
13311 * objc-lang.h (lookup_objc_class, lookup_child_selector)
13312 (lookup_struct_typedef): Constify.
13313 * objfiles.c (pc_in_section): Constify.
13314 * objfiles.h (pc_in_section): Constify.
13315 * p-exp.y (struct token::oper): Constify.
13316 (yyerror): Constify.
13317 * p-lang.h (pascal_yyerror): Constify.
13318 * parser-defs.h (op_name_standard): Constify.
13319 (op_print::string): Constify.
13320 (exp_descriptor::op_name): Constify.
13321 * printcmd.c (print_address_symbolic): Constify.
13322 * psymtab.c (print_partial_symbols): Constify.
13323 * python/py-breakpoint.c (stop_func): Constify.
13324 (bppy_get_expression): Constify.
13325 * python/py-cmd.c (cmdpy_completer::name): Constify.
13326 (cmdpy_function): Constify.
13327 * python/py-event.c (evpy_add_attribute)
13328 (gdbpy_initialize_event_generic): Constify.
13329 * python/py-event.h (evpy_add_attribute)
13330 (gdbpy_initialize_event_generic): Constify.
13331 * python/py-evts.c (add_new_registry): Constify.
13332 * python/py-finishbreakpoint.c (outofscope_func): Constify.
13333 * python/py-framefilter.c (get_py_iter_from_func): Constify.
13334 * python/py-inferior.c (get_buffer): Add cast.
13335 * python/py-param.c (parm_constant::name): Constify.
13336 * python/py-unwind.c (fprint_frame_id): Constify.
13337 * python/python.c (gdbpy_parameter_value): Constify.
13338 * remote-fileio.c (remote_fio_func_map): Make 'name' const.
13339 * remote.c (memory_packet_config::name): Constify.
13340 (show_packet_config_cmd, remote_write_bytes)
13341 (remote_buffer_add_string):
13342 * reverse.c (exec_reverse_once): Constify.
13343 * rs6000-tdep.c (variant::name, variant::description): Constify.
13344 * rust-exp.y (rustyyerror): Constify.
13345 * rust-lang.c (rust_op_name): Constify.
13346 * rust-lang.h (rustyyerror): Constify.
13347 * serial.h (serial_ops::name): Constify.
13348 * sh-tdep.c (sh_sh_register_name, sh_sh3_register_name)
13349 (sh_sh3e_register_name, sh_sh2e_register_name)
13350 (sh_sh2a_register_name, sh_sh2a_nofpu_register_name)
13351 (sh_sh_dsp_register_name, sh_sh3_dsp_register_name)
13352 (sh_sh4_register_name, sh_sh4_nofpu_register_name)
13353 (sh_sh4al_dsp_register_name): Constify.
13354 * sh64-tdep.c (sh64_register_name): Constify.
13355 * solib-darwin.c (lookup_symbol_from_bfd): Constify.
13356 * spu-tdep.c (spu_register_name, info_spu_dma_cmdlist): Constify.
13357 * stabsread.c (patch_block_stabs, read_type_number)
13358 (ref_map::stabs, ref_add, process_reference)
13359 (symbol_reference_defined, define_symbol, define_symbol)
13360 (error_type, read_type, read_member_functions, read_cpp_abbrev)
13361 (read_one_struct_field, read_struct_fields, read_baseclasses)
13362 (read_tilde_fields, read_struct_type, read_array_type)
13363 (read_enum_type, read_sun_builtin_type, read_sun_floating_type)
13364 (read_huge_number, read_range_type, read_args, common_block_start)
13365 (find_name_end): Constify.
13366 * stabsread.h (common_block_start, define_symbol)
13367 (process_one_symbol, symbol_reference_defined, ref_add):
13368 * symfile.c (get_section_index, add_symbol_file_command):
13369 * symfile.h (get_section_index): Constify.
13370 * target-descriptions.c (tdesc_type::name): Constify.
13371 (tdesc_free_type): Add cast.
13372 * target.c (find_default_run_target):
13373 (add_deprecated_target_alias, find_default_run_target)
13374 (target_announce_detach): Constify.
13375 (do_option): Constify.
13376 * target.h (add_deprecated_target_alias): Constify.
13377 * thread.c (print_thread_info_1): Constify.
13378 * top.c (deprecated_readline_begin_hook, command_line_input):
13379 Constify.
13380 (init_main): Add casts.
13381 * top.h (handle_line_of_input): Constify.
13382 * tracefile-tfile.c (tfile_write_uploaded_tsv): Constify.
13383 * tracepoint.c (tvariables_info_1, trace_status_mi): Constify.
13384 (tfind_command): Rename to ...
13385 (tfind_command_1): ... this and constify.
13386 (tfind_command): New function.
13387 (tfind_end_command, tfind_start_command): Adjust.
13388 (encode_source_string): Constify.
13389 * tracepoint.h (encode_source_string): Constify.
13390 * tui/tui-data.c (tui_partial_win_by_name): Constify.
13391 * tui/tui-data.h (tui_partial_win_by_name): Constify.
13392 * tui/tui-source.c (tui_set_source_content_nil): Constify.
13393 * tui/tui-source.h (tui_set_source_content_nil): Constify.
13394 * tui/tui-win.c (parse_scrolling_args): Constify.
13395 * tui/tui-windata.c (tui_erase_data_content): Constify.
13396 * tui/tui-windata.h (tui_erase_data_content): Constify.
13397 * tui/tui-winsource.c (tui_erase_source_content): Constify.
13398 * tui/tui.c (tui_enable): Add cast.
13399 * utils.c (defaulted_query): Constify.
13400 (init_page_info): Add cast.
13401 (puts_debug, subset_compare): Constify.
13402 * utils.h (subset_compare): Constify.
13403 * varobj.c (varobj_format_string): Constify.
13404 * varobj.h (varobj_format_string): Constify.
13405 * vax-tdep.c (vax_register_name): Constify.
13406 * windows-nat.c (windows_detach): Constify.
13407 * xcoffread.c (process_linenos, xcoff_next_symbol_text): Constify.
13408 * xml-support.c (gdb_xml_end_element): Constify.
13409 * xml-tdesc.c (tdesc_start_reg): Constify.
13410 * xstormy16-tdep.c (xstormy16_register_name): Constify.
13411 * xtensa-tdep.c (xtensa_find_register_by_name): Constify.
13412 * xtensa-tdep.h (xtensa_register_t::name): Constify.
13413
995816ba
PA
134142017-04-05 Pedro Alves <palves@redhat.com>
13415
13416 * proc-api.c (struct trans): Constify.
13417 (procfs_note): Constify.
13418 * proc-events.c (struct trans, syscall_table):
13419 * proc-flags.c (struct trans): Constify.
13420 * proc-utils.h (procfs_note): Constify.
13421 * proc-why.c (struct trans): Constify.
13422 * procfs.c (dead_procinfo, find_syscall, proc_warn, proc_error)
13423 (procfs_detach): Constify.
13424 * sol-thread.c (struct string_map): Constify.
13425 (td_err_string, td_state_string): Constify.
13426
3e83a920
PA
134272017-04-05 Pedro Alves <palves@redhat.com>
13428
13429 * proc-api.c (procfs_filename): Don't initialize
13430 procfs_filename.
13431 (prepare_to_trace): Assume procfs_filename is non-NULL.
13432 (_initialize_proc_api): Give procfs_filename a default value here.
13433
63160a43
PA
134342017-04-05 Pedro Alves <palves@redhat.com>
13435
13436 * break-catch-throw.c (handle_gnu_v3_exceptions): Constify
13437 'cond_string' parameter.
13438 (extract_exception_regexp): Constify 'string' parameter.
13439 (catch_exception_command_1): Constify.
13440 * breakpoint.c (init_catchpoint)
13441 (create_fork_vfork_event_catchpoint): Constify 'cond_string'
13442 parameter.
13443 (ep_parse_optional_if_clause, catch_fork_command_1)
13444 (catch_exec_command_1): Constify.
13445 * breakpoint.h (init_catchpoint): Constify 'cond_string'
13446 parameter.
13447 (ep_parse_optional_if_clause): Constify.
13448 * cli/cli-utils.c (remove_trailing_whitespace)
13449 (check_for_argument): Constify.
13450 * cli/cli-utils.h (remove_trailing_whitespace): Constify and add
13451 non-const overload.
13452 (check_for_argument): Likewise.
13453
9b2eba3d
PA
134542017-04-05 Pedro Alves <palves@redhat.com>
13455
13456 * event-top.c (command_line_handler): Add cast to execute_command
13457 call.
13458 * record-btrace.c (cmd_record_btrace_bts_start)
13459 (cmd_record_btrace_pt_start, cmd_record_btrace_start)
13460 (cmd_record_btrace_start): Add cast to execute_command call.
13461 * record-full.c (record_full_goto_insn):
13462 * record.c (record_start, record_stop): Add cast to
13463 execute_command_to_string calls.
13464 (cmd_record_start): Add cast to execute_command calls.
13465
2adadf51
PA
134662017-04-05 Pedro Alves <palves@redhat.com>
13467
13468 * python/python-internal.h (gdb_PyArg_ParseTupleAndKeywords): New
13469 static inline function.
13470 * python/py-arch.c (archpy_disassemble): Constify 'keywords'
13471 array and use gdb_PyArg_ParseTupleAndKeywords.
13472 * python/py-cmd.c (cmdpy_init): Likewise.
13473 * python/py-finishbreakpoint.c (bpfinishpy_init): Likewise.
13474 * python/py-inferior.c (infpy_read_memory, infpy_write_memory)
13475 (infpy_search_memory): Likewise.
13476 * python/py-objfile.c (objfpy_add_separate_debug_file)
13477 (gdbpy_lookup_objfile): Likewise.
13478 * python/py-symbol.c (gdbpy_lookup_symbol)
13479 (gdbpy_lookup_global_symbol): Likewise.
13480 * python/py-type.c (gdbpy_lookup_type): Likewise.
13481 * python/py-value.c (valpy_lazy_string, valpy_string): Likewise.
13482 * python/python.c (execute_gdb_command, gdbpy_write, gdbpy_flush):
13483 Likewise.
13484
0d1f4ceb
PA
134852017-04-05 Pedro Alves <palves@redhat.com>
13486
13487 * python/python-internal.h (gdb_PyGetSetDef): New type.
13488 * python/py-block.c (block_object_getset)
13489 (breakpoint_object_getset): Now a gdb_PyGetSetDef array.
13490 * python/py-event.c (event_object_getset)
13491 (finish_breakpoint_object_getset): Likewise.
13492 * python/py-inferior.c (inferior_object_getset): Likewise.
13493 * python/py-infthread.c (thread_object_getset): Likewise.
13494 * python/py-lazy-string.c (lazy_string_object_getset): Likewise.
13495 * python/py-linetable.c (linetable_entry_object_getset): Likewise.
13496 * python/py-objfile.c (objfile_getset): Likewise.
13497 * python/py-progspace.c (pspace_getset): Likewise.
13498 * python/py-record-btrace.c (btpy_insn_getset, btpy_call_getset):
13499 Likewise.
13500 * python/py-record.c (recpy_record_getset): Likewise.
13501 * python/py-symbol.c (symbol_object_getset): Likewise.
13502 * python/py-symtab.c (symtab_object_getset, sal_object_getset):
13503 Likewise.
13504 * python/py-type.c (type_object_getset, field_object_getset):
13505 Likewise.
13506 * python/py-value.c (value_object_getset): Likewise.
13507
4d759979
PA
135082017-04-05 Pedro Alves <palves@redhat.com>
13509
13510 * python/python-internal.h (gdb_PyObject_CallMethod)
13511 (gdb_PyErr_NewException, gdb_PySys_GetObject, gdb_PySys_SetPath):
13512 New functions.
13513 (GDB_PYSYS_SETPATH_CHAR, PyObject_CallMethod, PyErr_NewException)
13514 (PySys_GetObject, PySys_SetPath): New macros.
13515
fdf9e36f
PA
135162017-04-05 Pedro Alves <palves@redhat.com>
13517
13518 * mi/mi-cmd-info.c (mi_cmd_info_os): Call info_osdata instead of
13519 info_osdata_command.
13520 * osdata.c (info_osdata_command): Rename to ...
13521 (info_osdata): ... this. Constify 'type' parameter, and remove
13522 the 'from_tty' parameter. Accept NULL TYPE.
13523 (info_osdata_command): New function.
13524 * osdata.h (info_osdata_command): Remove declaration.
13525 (info_osdata): New declaration.
13526
9f33b8b7
PA
135272017-04-05 Pedro Alves <palves@redhat.com>
13528
13529 * mi/mi-cmd-break.c (mi_cmd_break_insert_1, mi_cmd_break_insert)
13530 (mi_cmd_dprintf_insert, mi_cmd_break_passcount)
13531 (mi_cmd_break_watch, mi_cmd_break_commands): Constify 'command'
13532 parameter.
13533 * mi/mi-cmd-catch.c (mi_cmd_catch_assert, mi_cmd_catch_exception)
13534 (mi_cmd_catch_load, mi_cmd_catch_unload): Constify cmd' parameter.
13535 * mi/mi-cmd-disas.c (mi_cmd_disassemble): Constify 'command'
13536 parameter.
13537 * mi/mi-cmd-env.c (mi_cmd_env_pwd, mi_cmd_env_cd, mi_cmd_env_path)
13538 (mi_cmd_env_dir, mi_cmd_inferior_tty_set, _cmd_inferior_tty_show)
13539 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_file)
13540 (mi_cmd_file_list_exec_source_files)
13541 (mi_cmd_file_list_shared_libraries): Constify 'command' parameter.
13542 * mi/mi-cmd-info.c (mi_cmd_info_ada_exceptions)
13543 (mi_cmd_info_gdb_mi_command, mi_cmd_info_os): Constify 'command'
13544 parameter.
13545 * mi/mi-cmd-stack.c (mi_cmd_enable_frame_filters)
13546 (mi_cmd_stack_list_frames, mi_cmd_stack_info_depth)
13547 (mi_cmd_stack_list_locals, mi_cmd_stack_list_args)
13548 (mi_cmd_stack_list_variables, mi_cmd_stack_select_frame)
13549 (mi_cmd_stack_info_frame): Constify 'command' parameter.
13550 * mi/mi-cmd-target.c (mi_cmd_target_file_get)
13551 (mi_cmd_target_file_put, mi_cmd_target_file_delete): Constify
13552 'command' parameter.
13553 * mi/mi-cmd-var.c (mi_cmd_var_create, mi_cmd_var_delete)
13554 (mi_cmd_var_set_format, mi_cmd_var_set_visualizer)
13555 (mi_cmd_var_set_frozen, mi_cmd_var_show_format)
13556 (mi_cmd_var_info_num_children, mi_cmd_var_list_children)
13557 (mi_cmd_var_info_type, mi_cmd_var_info_path_expression)
13558 (mi_cmd_var_info_expression, mi_cmd_var_show_attributes)
13559 (mi_cmd_var_evaluate_expression, mi_cmd_var_assign)
13560 (mi_cmd_var_update, mi_cmd_enable_pretty_printing)
13561 (mi_cmd_var_set_update_range): Constify 'command' parameter.
13562 * mi/mi-cmds.h (mi_cmd_argv_ftype): Constify 'command' parameter.
13563 * mi/mi-interp.c (mi_cmd_interpreter_exec): Constify 'command'
13564 parameter.
13565 * mi/mi-main.c (mi_cmd_gdb_exit, mi_cmd_exec_next)
13566 (mi_cmd_exec_next_instruction, mi_cmd_exec_step)
13567 (mi_cmd_exec_step_instruction, mi_cmd_exec_finish)
13568 (mi_cmd_exec_return ,mi_cmd_exec_jump, mi_cmd_exec_continue)
13569 (mi_cmd_exec_interrupt, mi_cmd_exec_run, mi_cmd_target_detach)
13570 (mi_cmd_target_flash_erase, mi_cmd_thread_select)
13571 (mi_cmd_thread_list_ids, mi_cmd_thread_info)
13572 (mi_cmd_list_thread_groups, mi_cmd_data_list_register_names)
13573 (mi_cmd_data_list_changed_registers)
13574 (mi_cmd_data_write_register_values)
13575 (mi_cmd_data_evaluate_expression, mi_cmd_data_read_memory)
13576 (mi_cmd_data_read_memory_bytes, mi_cmd_data_write_memory)
13577 (mi_cmd_data_write_memory_bytes, mi_cmd_enable_timings)
13578 (mi_cmd_list_features, mi_cmd_list_target_features)
13579 (mi_cmd_add_inferior, mi_cmd_remove_inferior)
13580 (mi_cmd_trace_define_variable, mi_cmd_trace_list_variables)
13581 (mi_cmd_trace_find, mi_cmd_trace_save, mi_cmd_trace_start)
13582 (mi_cmd_trace_status, mi_cmd_trace_stop, mi_cmd_ada_task_info)
13583 (mi_cmd_trace_frame_collected): Constify 'command'
13584 parameter.
13585 * mi/mi-symbol-cmds.c (mi_cmd_symbol_list_lines): Constify
13586 'command' parameter.
13587
67cb5b2d
PA
135882017-04-05 Pedro Alves <palves@redhat.com>
13589
13590 * ada-lang.c (ada_completer_word_break_characters): Now a const
13591 array.
13592 (ada_get_gdb_completer_word_break_characters): Constify.
13593 * completer.c (gdb_completer_command_word_break_characters)
13594 (gdb_completer_file_name_break_characters)
13595 (gdb_completer_quote_characters): Now const arrays.
13596 (get_gdb_completer_quote_characters): Constify.
13597 (set_rl_completer_word_break_characters): New function.
13598 (set_gdb_completion_word_break_characters)
13599 (complete_line_internal): Use it.
13600 * completer.h (get_gdb_completer_quote_characters): Constify.
13601 (set_rl_completer_word_break_characters): Declare.
13602 * f-lang.c (f_word_break_characters): Constify.
13603 * language.c (default_word_break_characters): Constify.
13604 * language.h (language_defn::la_word_break_characters): Constify.
13605 (default_word_break_characters): Constify.
13606 * top.c (init_main): Use set_rl_completer_word_break_characters.
13607
7a114964
PA
136082017-04-05 Pedro Alves <palves@redhat.com>
13609
13610 * aix-thread.c (aix_thread_pid_to_str)
13611 (aix_thread_extra_thread_info): Constify.
13612 * bsd-kvm.c (bsd_kvm_pid_to_str): Constify.
13613 * bsd-uthread.c (bsd_uthread_extra_thread_info)
13614 (bsd_uthread_pid_to_str): Constify.
13615 * corelow.c (core_pid_to_str): Constify.
13616 * darwin-nat.c (darwin_pid_to_str): Constify.
13617 * fbsd-nat.c (fbsd_pid_to_str): Constify.
13618 * fbsd-tdep.c (fbsd_core_pid_to_str, gdbarch_core_pid_to_str):
13619 Constify.
13620 * gnu-nat.c (gnu_pid_to_str): Constify.
13621 * go32-nat.c (go32_pid_to_str): Constify.
13622 * i386-cygwin-tdep.c (i386_windows_core_pid_to_str): Constify.
13623 * inf-ptrace.c (inf_ptrace_pid_to_str): Constify.
13624 * inferior.c (inferior_pid_to_str): Constify.
13625 * linux-nat.c (linux_nat_pid_to_str): Constify.
13626 * linux-tdep.c (linux_core_pid_to_str): Constify.
13627 * linux-thread-db.c (thread_db_pid_to_str)
13628 (thread_db_extra_thread_info): Constify.
13629 * nto-tdep.c (nto_extra_thread_info): Constify.
13630 * nto-tdep.h (nto_extra_thread_info): Constify.
13631 * obsd-nat.c (obsd_pid_to_str): Constify.
13632 * procfs.c (procfs_pid_to_str): Constify.
13633 * ravenscar-thread.c (ravenscar_extra_thread_info)
13634 (ravenscar_pid_to_str): Constify.
13635 * remote-sim.c (gdbsim_pid_to_str): Constify.
13636 * remote.c (remote_threads_extra_info, remote_pid_to_str):
13637 Constify.
13638 * sol-thread.c (solaris_pid_to_str): Constify.
13639 * sol2-tdep.c (sol2_core_pid_to_str): Constify.
13640 * sol2-tdep.h (sol2_core_pid_to_str): Constify.
13641 * target.c (default_pid_to_str, target_pid_to_str)
13642 (normal_pid_to_str, default_pid_to_str): Constify.
13643 * target.h (target_ops::to_pid_to_str)
13644 (target_ops::to_extra_thread_info): Constify.
13645 (target_pid_to_str, normal_pid_to_str): Constify.
13646 * windows-nat.c (windows_pid_to_str): Constify.
13647 * gdbarch.sh (core_pid_to_str): Constify.
13648 * target-delegates.c: Regenerate.
13649 * gdbarch.h, gdbarch.c: Regenerate.
13650
69bbf465
PA
136512017-04-05 Pedro Alves <palves@redhat.com>
13652
13653 * main.c (captured_main_1): Use gdb::unique_xmalloc_ptr to manage
13654 the memory of the temporary warning_pre_print override.
13655 * utils.c (warning_pre_print): Constify.
13656 * utils.h (warning_pre_print): Constify.
13657
be47f9e8
PA
136582017-04-05 Pedro Alves <palves@redhat.com>
13659
13660 * cli/cli-cmds.c (shell_escape): Constify 'arg' parameter.
13661 (shell_command): New function.
13662 (make_command): Use std::string.
13663 (init_cli_cmds): Register shell_command instead of shell_escape.
13664
bde6261a
PA
136652017-04-05 Pedro Alves <palves@redhat.com>
13666
13667 * breakpoint.c (dprintf_function, dprintf_channel): Don't initialize.
13668 * tracepoint.c (default_collect): Don't initialize.
13669
b38ef47f
PA
136702017-04-05 Pedro Alves <palves@redhat.com>
13671
13672 * macroexp.c (macro_buffer::shared): Now a bool.
13673 (init_buffer): Update.
13674 (init_shared_buffer): Constify 'addr' parameter.
13675 (substitute_args, expand, macro_expand, macro_expand_next): Remove
13676 casts.
13677
f995bbe8
PA
136782017-04-05 Pedro Alves <palves@redhat.com>
13679
13680 * arm-tdep.c (show_disassembly_style_sfunc): Constify local.
13681 * disasm.c (set_disassembler_options): Constify local.
13682 * i386-tdep.c (i386_print_insn): Remove cast and FIXME comment.
13683
4a596fe2
SDJ
136842017-04-05 Sergio Durigan Junior <sergiodj@redhat.com>
13685
13686 PR gdb/21352
13687 * tracefile.c (tsave_command): Fix argument parsing for '-r'
13688 option.
13689
2cad08ea
YQ
136902017-04-05 Yao Qi <yao.qi@linaro.org>
13691
13692 * frame.c (frame_unwind_register_unsigned): Call
13693 frame_unwind_register_value.
13694
55a98976
YQ
136952017-04-05 Yao Qi <yao.qi@linaro.org>
13696
13697 * gdb.threads/thread-specific-bp.exp (check_thread_specific_breakpoint):
13698 Use gdb_test_multiple, and don't match anchor.
13699
4ac40124
PA
137002017-04-05 Pedro Alves <palves@redhat.com>
13701
13702 * MAINTAINERS (Global Maintainers): Add Simon Marchi.
13703 (Write After Approval): Remove Simon Marchi.
13704
c053b654
PA
137052017-04-05 Pedro Alves <palves@redhat.com>
13706
13707 * common/gdb_optional.h (optional::optional): Make constexpr and
13708 initialize m_dummy.
13709
4c7bf4f9
JB
137102017-04-04 John Baldwin <jhb@FreeBSD.org>
13711
13712 * amd64-fbsd-tdep.c: Remove "bsd-uthread.h" include.
13713 (amd64fbsd_jmp_buf_reg_offset): Remove.
13714 (amd64fbsd_supply_uthread): Remove function.
13715 (amd64fbsd_collect_uthread): Remove function.
13716 (amd64fbsd_init_abi): Don't set bsd-uthread callbacks.
13717 * configure.tgt (i[34567]86-*-freebsd*): Remove bsd-uthread.o.
13718 (x86_64-*-freebsd*): Remove bsd-uthread.o.
13719 (fbsd-nat.c): Update comment.
13720 * i386-fbsd-tdep.c: Remove "bsd-uthread.h" include.
13721 (i386fbsd_jmp_buf_reg_offset): Remove.
13722 (i386fbsd_supply_uthread): Remove function.
13723 (i386fbsd_collect_uthread): Remove function.
13724 (i386fbsd_init_abi): Don't set bsd-uthread callbacks.
13725
1e1a8bef
JB
137262017-04-04 John Baldwin <jhb@FreeBSD.org>
13727
13728 * Makefile.in (ALL_64_TARGET_OBS): Remove alpha-fbsd-tdep.o.
13729 (ALLDEPFILES): Remove alpha-fbsd-tdep.c
13730 * NEWS: Mention that support for FreeBSD/alpha was removed.
13731 * alpha-fbsd-tdep.c: Delete file.
13732 * config/alpha/fbsd.mh: Delete file.
13733 * configure.host: Delete alpha*-*-freebsd* and
13734 alpha*-*-kfreebsd*-gnu.
13735 * configure.tgt: Delete alpha*-*-freebsd* and
13736 alpha*-*-kfreebsd*-gnu.
13737
49907934
JB
137382017-04-04 John Baldwin <jhb@FreeBSD.org>
13739
13740 * amd64-bsd-nat.c (amd64bsd_fetch_inferior_registers,
13741 amd64bsd_store_inferior_registers): Use ptid from regcache.
13742
6f77053d
PA
137432017-04-04 Pedro Alves <palves@redhat.com>
13744
13745 * dwarf2read.c (lnp_state_machine): Now a class. Initialize all
13746 data fields, make them private and add "m_" prefixes.
13747 (lnp_state_machine::lnp_state_machine): New ctor.
13748 (record_line, check_line_address, handle_set_discriminator)
13749 (handle_set_address, handle_advance_pc, handle_special_opcode)
13750 (handle_advance_line, handle_set_file, handle_negate_stmt)
13751 (handle_const_add_pc, handle_fixed_advance_pc, handle_copy)
13752 (end_sequence, advance_line): New methods.
13753 (m_gdbarch, m_record_lines_p): New fields.
13754 (lnp_reader_state): Delete.
13755 (dwarf_record_line): Rename to ...
13756 (lnp_state_machine::record_line): ... adjust.
13757 (init_lnp_state_machine): Delete.
13758 (lnp_state_machine::lnp_state_machine): New.
13759 (check_line_address): Rename to ...
13760 (lnp_state_machine::check_line_address): This.
13761 (dwarf_decode_lines_1): Remove reference to "reader_state".
13762 Adjust lnp_state_machine having a non-default ctor. Use bool.
13763 State machine internal state manipulation moved to
13764 lnp_state_machine methods.
13765
9c541725
PA
137662017-04-04 Pedro Alves <palves@redhat.com>
13767
13768 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
13769 unittests/offset-type-selftests.c.
13770 (SUBDIR_UNITTESTS_OBS): Add offset-type-selftests.o.
13771 * common/offset-type.h: New file.
13772 * common/preprocessor.h: New file.
13773 * common/traits.h: New file.
13774 * common/valid-expr.h: New file.
13775 * dwarf2expr.c: Include "common/underlying.h". Adjust to use
13776 sect_offset and cu_offset strong typedefs throughout.
13777 * dwarf2expr.h: Adjust to use sect_offset and cu_offset strong
13778 typedefs throughout.
13779 * dwarf2loc.c: Include "common/underlying.h". Adjust to use
13780 sect_offset and cu_offset strong typedefs throughout.
13781 * dwarf2read.c: Adjust to use sect_offset and cu_offset strong
13782 typedefs throughout.
13783 * gdbtypes.h: Include "common/offset-type.h".
13784 (cu_offset): Now an offset type (strong typedef) instead of a
13785 struct.
13786 (sect_offset): Likewise.
13787 (union call_site_parameter_u): Rename "param_offset" field to
13788 "param_cu_off".
13789 * unittests/offset-type-selftests.c: New file.
13790
ecfb656c
PA
137912017-04-04 Pedro Alves <palves@redhat.com>
13792
13793 * common/underlying.h: New file.
13794 * dwarf2read.c: Include "common/gdb_optional.h" and
13795 "common/underlying.h".
13796 (dir_index, file_name_index): New types.
13797 (file_entry): Use them.
13798 (file_entry::include): Use to_underlying.
13799 (line_header::add_file_name): Use dir_index.
13800 (read_formatted_entries): Use gdb::optional. Read form before
13801 writting to file_entry.
13802 (dwarf_decode_line_header): Use dir_index.
13803 (lnp_state_machine::current_file): Use to_underlying.
13804 (lnp_state_machine::file): Change type to file_name_index.
13805 (dwarf_record_line): Use to_underlying.
13806 (init_lnp_state_machine): Use file_name_index.
13807 (dwarf_decode_lines_1): Use dir_index and file_name_index.
13808
d194f1fe
PA
138092017-04-04 Pedro Alves <palves@redhat.com>
13810
13811 * common/gdb_optional.h (gdb::optiona): Add operator->, operator*,
13812 operator bool, has_value and get methods.
13813
fff8551c
PA
138142017-04-04 Pedro Alves <palves@redhat.com>
13815
13816 * dwarf2read.c (struct file_entry): Add ctors, and initialize all
13817 fields.
13818 (line_header): Initialize all data fields. Change type of
13819 standard_opcode_lengths to std::unique_ptr<unsigned char[]>.
13820 Change type of include_dirs to std::vector<const char *>. Remove
13821 num_include_dirs, include_dirs_size. Change type of file_names to
13822 std::vector<file_entry>. Remove num_file_names, file_names_size.
13823 (line_header::line_header): New.
13824 (line_header::add_include_dir, line_header::add_file_name): New
13825 methods.
13826 (line_header::include_dir_at): Remove NULL check.
13827 (line_header::file_name_at): Add const overload.
13828 (line_header_up): New unique_ptr typedef.
13829 (dw2_get_file_names_reader): Use line_header_up. Adjust to use
13830 std::vector. Remove free_line_header call.
13831 (dwarf2_build_include_psymtabs): Use line_header_up. Remove
13832 free_line_header call.
13833 (free_cu_line_header): Delete.
13834 (handle_DW_AT_stmt_list, handle_DW_AT_stmt_list)
13835 (setup_type_unit_groups): Use line_header_up instead of cleanups.
13836 Adjust to use std::vector.
13837 (free_line_header): Delete.
13838 (free_line_header_voidp): Use delete.
13839 (add_include_dir): Replace with ...
13840 (line_header::add_include_dir): ... this method. Use std::vector.
13841 (add_file_name): Replace with ...
13842 (line_header::add_file_name): ... this method. Use std::vector.
13843 (add_include_dir_stub): Delete.
13844 (read_formatted_entries): Remove memset.
13845 (dwarf_decode_line_header): Return a line_header_up instead of a
13846 raw pointer. Remove cleanup handling. Pass lambdas to
13847 read_formatted_entries. Adjust to use line_header methods.
13848 (dwarf_decode_lines_1): Adjust to use line_header methods.
13849 (dwarf_decode_lines, file_file_name, file_full_name): Adjust to
13850 use std::vector.
13851
d62a8ae2
SM
138522017-04-04 Simon Marchi <simon.marchi@polymtl.ca>
13853
13854 * remote.c (set_general_thread, set_continue_thread): Use ptid_t
13855 instead of struct ptid.
13856
db3a1dc7
AH
138572017-05-04 Alan Hayward <alan.hayward@arm.com>
13858
13859 * frame.c (get_frame_register_bytes): Unwind using value.
13860 (put_frame_register_bytes): Likewise.
13861
b1b45502
IB
138622017-03-30 Iain Buclaw <ibuclaw@gdcproject.org>
13863
13864 * d-exp.y (type_aggregate_p): Treat TYPE_CODE_MODULE as being
13865 aggregate-like.
13866
ec13808e
JK
138672017-03-29 Jan Kratochvil <jan.kratochvil@redhat.com>
13868
13869 * auto-load.c (auto_load_section_scripts): Check SEC_HAS_CONTENTS.
13870
12316564
YQ
138712017-03-29 Yao Qi <yao.qi@linaro.org>
13872
13873 * gdbthread.h (struct thread_info): Declare constructor and
13874 destructor. Add some in-class member initializers.
13875 * thread.c (free_thread): Remove.
13876 (init_thread_list): Call delete instead of free_thread.
13877 (new_thread): Call thread_info constructor.
13878 (thread_info::thread_info): New function.
13879 (thread_info::~thread_info): New function.
13880 (delete_thread_1): Call delete instead of free_thread.
13881 (make_cleanup_restore_current_thread): Move tp and frame to
13882 inner block.
13883
fe5f7374
AK
138842017-03-28 Anton Kolesov <anton.kolesov@synopsys.com>
13885
13886 * arc-tdep.c (arc_frame_cache): Add support for prologue analysis.
13887 (arc_skip_prologue): Likewise.
13888 (arc_make_frame_cache): Likewise.
13889 (arc_pv_get_operand): New function.
13890 (arc_is_in_prologue): Likewise.
13891 (arc_analyze_prologue): Likewise.
13892 (arc_print_frame_cache): Likewise.
13893 (MAX_PROLOGUE_LENGTH): New constant.
13894
eea78757
AK
138952017-03-28 Anton Kolesov <anton.kolesov@synopsys.com>
13896
13897 * configure.tgt: Add arc-insn.o.
13898 * arc-tdep.c (arc_delayed_print_insn): Make non-static.
13899 (dump_arc_instruction_command): New function.
13900 (arc_fprintf_disasm): Likewise.
13901 (arc_disassemble_info): Likewise.
13902 (arc_insn_get_operand_value): Likewise.
13903 (arc_insn_get_operand_value_signed): Likewise.
13904 (arc_insn_get_memory_base_reg): Likewise.
13905 (arc_insn_get_memory_offset): Likewise.
13906 (arc_insn_get_branch_target): Likewise.
13907 (arc_insn_dump): Likewise.
13908 (arc_insn_get_linear_next_pc): Likewise.
13909 * arc-tdep.h (arc_delayed_print_insn): Add function declaration.
13910 (arc_disassemble_info): Likewise.
13911 (arc_insn_get_branch_target): Likewise.
13912 (arc_insn_get_linear_next_pc): Likewise.
13913 * NEWS: Mention new "maint print arc arc-instruction".
13914
3be78afd
AK
139152017-03-28 Anton Kolesov <anton.kolesov@synopsys.com>
13916
13917 * arc-tdep (maintenance_print_arc_list): New variable.
13918 (maintenance_print_arc_command): New function.
13919
296ec4fa
AK
139202017-03-28 Anton Kolesov <anton.kolesov@synopsys.com>
13921
13922 * arc-tdep.c (core_v2_register_names, core_arcompact_register_names)
13923 Add "limm" and "reserved".
13924 (arc_cannot_fetch_register, arc_cannot_store_register): Add
13925 ARC_RESERVED_REGNUM and ARC_LIMM_REGNUM.
13926 * arc-tdep.h (arc_regnum): Likewise.
13927
f74f865e
MF
139282017-03-27 Max Filippov <jcmvbkbc@gmail.com>
13929
13930 * xtensa-linux-nat.c (fill_gregset): Call regcache_raw_collect
13931 for THREADPTR register.
13932 (supply_gregset_reg): Call regcache_raw_supply for THREADPTR
13933 register.
13934 * xtensa-tdep.c (XTENSA_DBREGN_UREG): New definition.
13935 (xtensa_derive_tdep): Initialize tdep->threadptr_regnum.
13936 * xtensa-tdep.h (gdbarch_tdep::threadptr_regnum): New field.
13937
0d0bf81a
MF
139382017-03-27 Max Filippov <jcmvbkbc@gmail.com>
13939
13940 * xtensa-tdep.c (xtensa_pseudo_register_read): Treat all
13941 registers above gdbarch_num_regs (gdbarch) as privileged in
13942 call0 ABI.
13943
0ce4291e
MF
139442017-03-27 Max Filippov <jcmvbkbc@gmail.com>
13945
13946 * xtensa-linux-nat.c (fill_gregset): Call regcache_raw_collect
13947 for a single specified register or for all registers in
13948 a0_base..a0_base + C0_NREGS range.
13949 (supply_gregset_reg): Call regcache_raw_supply for a single
13950 specified register or for all registers in a0_base..a0_base +
13951 C0_NREGS range.
13952
c56054f9
MF
139532017-03-27 Max Filippov <jcmvbkbc@gmail.com>
13954
13955 * arch/xtensa.h (C0_NREGS): Add definition.
13956 * xtensa-tdep.c (C0_NREGS): Remove definition.
13957
a4398628
MF
139582017-03-27 Max Filippov <jcmvbkbc@gmail.com>
13959
13960 * xtensa-tdep.c (xtensa_scan_prologue, call0_analyze_prologue):
13961 Drop xtensa_default_isa initialization.
13962 (xtensa_gdbarch_init): Initialize xtensa_default_isa.
13963
8c43009f
PA
139642017-03-27 Pedro Alves <palves@redhat.com>
13965
13966 * dwarf2read.c (file_entry) <dir_index>: Add comment.
13967 (file_entry::include_dir): New method.
13968 (line_header::include_dir_at, line_header::file_name_at): New
13969 methods.
13970 (setup_type_unit_groups, setup_type_unit_groups)
13971 (psymtab_include_file_name): Simplify using the new methods.
13972 (lnp_state_machine) <the_line_header>: New field.
13973 <file>: Add comment.
13974 (lnp_state_machine::current_file): New method.
13975 (dwarf_record_line): Simplify using the new methods.
13976 (init_lnp_state_machine): Initialize the "the_line_header" field.
13977 (dwarf_decode_lines_1, dwarf_decode_lines, file_file_name):
13978 Simplify using the new methods.
13979
a7e80b9e
PA
139802017-03-27 Pedro Alves <palves@redhat.com>
13981
13982 * cp-name-parser.y (make_empty): Delete.
13983 (demangler_special, nested_name, ptr_operator, array_indicator)
13984 (direct_declarator, declarator_1): Use fill_comp instead of
13985 make_empty.
13986
21047726
PA
139872017-03-27 Pedro Alves <palves@redhat.com>
13988
13989 * xml-support.h (gdb_xml_debug): Pass a "first-to-check" argument
13990 to ATTRIBUTE_PRINTF.
13991 * solib-target.c (library_list_start_list): Print "string" not
13992 "version".
13993 * xml-tdesc.c (tdesc_start_field): Pass "field_name" to
13994 gdb_xml_error call.
13995
d721ba37
PA
139962017-03-27 Pedro Alves <palves@redhat.com>
13997
13998 * dwarf2read.c (struct file_and_directory): New.
13999 (dwarf2_get_dwz_file): Adjust to use std::string.
14000 (dw2_get_file_names_reader): Adjust to use file_and_directory.
14001 (find_file_and_directory): Adjust to return a file_and_directory
14002 object.
14003 (read_file_scope): Adjust to use file_and_directory. Remove
14004 make_cleanup/do_cleanups calls.
14005 (open_and_init_dwp_file): Adjust to use std::string. Remove
14006 make_cleanup/do_cleanups calls.
14007 * python/python.c (do_start_initialization): Adjust to ldirname
14008 returning a std::string.
14009 * utils.c (ldirname): Now returns a std::string.
14010 * utils.h (ldirname): Change return type to std::string.
14011 * xml-syscall.c (xml_init_syscalls_info): Adjust to ldirname
14012 returning a std::string.
14013 * xml-tdesc.c (file_read_description_xml): Likewise.
14014
ed771251
AH
140152017-03-24 Alan Hayward <alan.hayward@arm.com>
14016
14017 * regcache.c (regcache_debug_print_register): New function.
14018 * regcache.h (regcache_debug_print_register): New declaration.
14019 * target.c (debug_print_register): Remove.
14020 (target_fetch_registers): Call regcache_debug_print_register.
14021 (target_store_registers): Likewise.
14022
568c1b9f
PB
140232017-03-24 Pádraig Brady <pbrady@fb.com>
14024
14025 * dwarf2read.c (setup_type_unit_groups): Ensure dir_index doesn't
14026 reference beyond the 'lh->include_dirs' array before accessing to
14027 it.
14028 (psymtab_include_file_name): Likewise.
14029 (dwarf_decode_lines_1): Likewise.
14030 (dwarf_decode_lines): Likewise.
14031 (file_file_name): Likewise.
14032
3e00d44f
SM
140332017-03-23 Simon Marchi <simon.marchi@ericsson.com>
14034
14035 * fbsd-tdep.c (fbsd_corefile_thread): Don't set/restore
14036 inferior_ptid.
14037 * proc-service.c (ps_lgetregs, ps_lsetregs, ps_lgetfpregs,
14038 ps_lsetfpregs): Likewise.
14039 * regcache.c (regcache_raw_update, regcache_raw_write): Likewise.
14040 * sol-thread.c (ps_lgetregs, ps_lsetregs, ps_lgetfpregs,
14041 ps_lsetfpregs): Likewise.
14042 * target.c (target_fetch_registers, target_store_registers):
14043 Remove asserts.
14044
077ae656
AH
140452017-03-23 Alan Hayward <alan.hayward@arm.com>
14046
14047 * sol-thread.c (sol_thread_store_registers): Remove regcache calls.
14048
1e2b521d
YQ
140492017-03-23 Yao Qi <yao.qi@linaro.org>
14050
14051 * aarch64-tdep.c (aarch64_process_record_test): Declare.
14052 (_initialize_aarch64_tdep): Register it.
14053 (aarch64_record_load_store): Handle PRFM instruction.
14054 (aarch64_process_record_test): New function.
14055
33877125
YQ
140562017-03-23 Yao Qi <yao.qi@linaro.org>
14057
14058 * aarch64-tdep.c (aarch64_record_load_store): Fix code
14059 indentation.
14060
a0eef940
YQ
140612017-03-23 Yao Qi <yao.qi@linaro.org>
14062
14063 * aarch64-tdep.c: Remove AARCH64_RECORD_FAILURE.
14064
3f2a3564
PR
140652017-03-23 Philipp Rudo <prudo@linux.vnet.ibm.com>
14066
14067 python/python.c (do_start_initialization): Fix memory leak.
14068
b67aeab0
SM
140692017-03-22 Simon Marchi <simon.marchi@polymtl.ca>
14070
14071 * inf-ptrace.c (inf_ptrace_xfer_partial): Get pid from ptid
14072 using get_ptrace_pid.
14073 * linux-nat.c (linux_nat_xfer_partial): Don't set/restore
14074 inferior_ptid.
14075 (linux_proc_xfer_partial, linux_proc_xfer_spu): Use lwp of
14076 inferior_ptid instead of pid.
14077
ffdbe864
YQ
140782017-03-22 Yao Qi <yao.qi@linaro.org>
14079
14080 * aarch64-tdep.c: Wrap locally used classes in anonymous
14081 namespace.
14082 * arm-tdep.c: Likewise.
14083 * linespec.c: Likewise.
14084 * ui-out.c: Likewise.
14085
9d736fbf
JG
140862017-03-22 Jonah Graham <jonah@kichwacoders.com>
14087
14088 PR gdb/19637
14089 * python/lib/gdb/printer/bound_registers.py: Import sys.
14090
3de88e9a
SM
140912017-03-21 Simon Marchi <simon.marchi@ericsson.com>
14092
14093 * windows-nat.c (do_windows_fetch_inferior_registers): Add
14094 windows_thread_info parameter and use it instead of
14095 current_thread.
14096 (windows_fetch_inferior_registers): Don't set current_thread,
14097 pass the thread to do_windows_fetch_inferior_registers. Use
14098 ptid from regcache instead of inferior_ptid.
14099 (do_windows_store_inferior_registers): Add windows_thread_info
14100 parameter and use it instead of current_thread.
14101 (windows_store_inferior_registers): Don't set current_thread,
14102 pass the thread to do_windows_store_inferior_registers. Use
14103 ptid from regcache instead of inferior_ptid.
14104
0e7b8f61
SM
141052017-03-21 Simon Marchi <simon.marchi@ericsson.com>
14106
14107 * ser-mingw.c (ser_windows_raw): Remove reference to
14108 struct serial::current_timeout.
14109
5badf10a
IR
141102017-03-21 Ivo Raisr <ivo.raisr@oracle.com>
14111
14112 PR tdep/20928
14113 * gdb/sparc-tdep.h (gdbarch_tdep) <sparc64_ccr_type>: New field.
14114 * gdb/sparc64-tdep.c (sparc64_ccr_type): New function.
14115 (sparc64_fsr_type): Fix %fsr decoding.
14116
cee59b3f
TW
141172017-03-21 Tim Wiederhake <tim.wiederhake@intel.com>
14118
14119 * python/py-record-btrace.c (btpy_insn_data): Change return type
14120 for Python 2.
14121
639a9038
SM
141222017-03-20 Simon Marchi <simon.marchi@polymtl.ca>
14123
14124 * spu-linux-nat.c (spu_fetch_inferior_registers,
14125 spu_store_inferior_registers): Use ptid from regcache, set and
14126 restore inferior_ptid.
14127 * spu-multiarch.c (spu_fetch_registers, spu_store_registers):
14128 Likewise.
14129
bcc0c096
SM
141302017-03-20 Simon Marchi <simon.marchi@polymtl.ca>
14131
14132 * i386-linux-nat.c (fetch_register, store_register,
14133 i386_linux_fetch_inferior_registers,
14134 i386_linux_store_inferior_registers): Use ptid from regcache.
14135 * ia64-linux-nat.c (ia64_linux_fetch_register,
14136 ia64_linux_store_register): Likewise.
14137 * inf-ptrace.c (inf_ptrace_fetch_register,
14138 inf_ptrace_store_register): Likewise.
14139 * m32r-linux-nat.c (m32r_linux_fetch_inferior_registers,
14140 m32r_linux_store_inferior_registers): Likewise.
14141 * m68k-bsd-nat.c (m68kbsd_fetch_inferior_registers,
14142 m68kbsd_store_inferior_registers): Likewise.
14143 * m68k-linux-nat.c (fetch_register, store_register,
14144 m68k_linux_fetch_inferior_registers,
14145 m68k_linux_store_inferior_registers): Likewise.
14146 * m88k-bsd-nat.c (m88kbsd_fetch_inferior_registers,
14147 m88kbsd_store_inferior_registers): Likewise.
14148 * mips-fbsd-nat.c (mips_fbsd_fetch_inferior_registers,
14149 mips_fbsd_store_inferior_registers): Likewise.
14150 * mips-linux-nat.c (mips64_linux_regsets_fetch_registers,
14151 mips64_linux_regsets_store_registers): Likewise.
14152 * mips-nbsd-nat.c (mipsnbsd_fetch_inferior_registers,
14153 mipsnbsd_store_inferior_registers): Likewise.
14154 * mips-obsd-nat.c (mips64obsd_fetch_inferior_registers,
14155 mips64obsd_store_inferior_registers): Likewise.
14156 * nto-procfs.c (procfs_fetch_registers, procfs_store_registers):
14157 Likewise.
14158 * ppc-fbsd-nat.c (ppcfbsd_fetch_inferior_registers,
14159 ppcfbsd_store_inferior_registers): Likewise.
14160 * ppc-linux-nat.c (ppc_linux_fetch_inferior_registers,
14161 ppc_linux_store_inferior_registers): Likewise.
14162 * ppc-nbsd-nat.c (ppcnbsd_fetch_inferior_registers,
14163 ppcnbsd_store_inferior_registers): Likewise.
14164 * ppc-obsd-nat.c (ppcobsd_fetch_registers,
14165 ppcobsd_store_registers): Likewise.
14166 * procfs.c (procfs_fetch_registers, procfs_store_registers):
14167 Likewise.
14168 * ravenscar-thread.c (ravenscar_fetch_registers,
14169 ravenscar_store_registers, ravenscar_prepare_to_store):
14170 Likewise.
14171 * record-btrace.c (record_btrace_fetch_registers,
14172 record_btrace_store_registers, record_btrace_prepare_to_store):
14173 Likewise.
14174 * remote-sim.c (gdbsim_fetch_register, gdbsim_store_register):
14175 Lookup inferior using ptid from regcache, instead of
14176 current_inferior.
14177 * remote.c (remote_fetch_registers, remote_store_registers): Use
14178 ptid from regcache.
14179 * rs6000-nat.c (fetch_register, store_register): Likewise.
14180 * s390-linux-nat.c (s390_linux_fetch_inferior_registers,
14181 s390_linux_store_inferior_registers): Likewise.
14182 * sh-nbsd-nat.c (shnbsd_fetch_inferior_registers,
14183 shnbsd_store_inferior_registers): Likewise.
14184 * sol-thread.c (sol_thread_fetch_registers,
14185 sol_thread_store_registers): Likewise.
14186 * sparc-nat.c (sparc_fetch_inferior_registers,
14187 sparc_store_inferior_registers): Likewise.
14188 * tilegx-linux-nat.c (fetch_inferior_registers,
14189 store_inferior_registers): Likewise.
14190 * vax-bsd-nat.c (vaxbsd_fetch_inferior_registers,
14191 vaxbsd_store_inferior_registers): Likewise.
14192 * xtensa-linux-nat.c (fetch_gregs, store_gregs, fetch_xtregs,
14193 store_xtregs): Likewise.
14194
c0f55cc6
AV
141952017-03-20 Artemiy Volkov <artemiyv@acm.org>
14196
14197 PR gdb/14441
14198 * NEWS: Mention support for rvalue references in GDB and python.
14199 * doc/gdb.texinfo (C Plus Plus Expressions): Mention that GDB
14200 supports both lvalue and rvalue references.
14201
15c0a2a9
AV
142022017-03-20 Artemiy Volkov <artemiyv@acm.org>
14203
14204 PR gdb/14441
14205 * gdbtypes.c (rank_one_type): Implement overloading
14206 resolution rules regarding rvalue references.
14207
aa006118
AV
142082017-03-20 Artemiy Volkov <artemiyv@acm.org>
14209
14210 PR gdb/14441
14211 * aarch64-tdep.c (aarch64_type_align)
14212 (aarch64_extract_return_value, aarch64_store_return_value): Change
14213 lvalue reference type checks to general reference type checks.
14214 * amd64-tdep.c (amd64_classify): Likewise.
14215 * amd64-windows-tdep.c (amd64_windows_passed_by_integer_register):
14216 Likewise.
14217 * arm-tdep.c (arm_type_align, arm_extract_return_value)
14218 (arm_store_return_value): Likewise.
14219 * ax-gdb.c (gen_fetch, gen_cast): Likewise.
14220 * c-typeprint.c (c_print_type): Likewise.
14221 * c-varobj.c (adjust_value_for_child_access, c_value_of_variable)
14222 (cplus_number_of_children, cplus_describe_child): Likewise.
14223 * compile/compile-c-symbols.c (generate_vla_size): Likewise.
14224 * completer.c (expression_completer): Likewise.
14225 * cp-support.c (make_symbol_overload_list_adl_namespace):
14226 Likewise.
14227 * darwin-nat-info.c (info_mach_region_command): Likewise.
14228 * dwarf2loc.c (entry_data_value_coerce_ref)
14229 (value_of_dwarf_reg_entry): Likewise.
14230 * eval.c (ptrmath_type_p, evaluate_subexp_standard)
14231 (evaluate_subexp_for_address, evaluate_subexp_for_sizeof):
14232 Likewise.
14233 * findvar.c (extract_typed_address, store_typed_address):
14234 Likewise.
14235 * gdbtypes.c (rank_one_type): Likewise.
14236 * hppa-tdep.c (hppa64_integral_or_pointer_p): Likewise.
14237 * infcall.c (value_arg_coerce): Likewise.
14238 * language.c (pointer_type): Likewise.
14239 * m32c-tdep.c (m32c_reg_arg_type, m32c_m16c_address_to_pointer):
14240 Likewise.
14241 * m88k-tdep.c (m88k_integral_or_pointer_p): Likewise.
14242 * mn10300-tdep.c (mn10300_type_align): Likewise.
14243 * msp430-tdep.c (msp430_push_dummy_call): Likewise.
14244 * ppc-sysv-tdep.c (do_ppc_sysv_return_value)
14245 (ppc64_sysv_abi_push_param, ppc64_sysv_abi_return_value):
14246 Likewise.
14247 * printcmd.c (print_formatted, x_command): Likewise.
14248 * python/py-type.c (typy_get_composite, typy_template_argument):
14249 Likewise.
14250 * python/py-value.c (valpy_referenced_value)
14251 (valpy_get_dynamic_type, value_has_field): Likewise.
14252 * s390-linux-tdep.c (s390_function_arg_integer): Likewise.
14253 * sparc-tdep.c (sparc_integral_or_pointer_p): Likewise.
14254 * sparc64-tdep.c (sparc64_integral_or_pointer_p): Likewise.
14255 * spu-tdep.c (spu_scalar_value_p): Likewise.
14256 * symtab.c (lookup_symbol_aux): Likewise.
14257 * typeprint.c (whatis_exp, print_type_scalar): Likewise.
14258 * valarith.c (binop_types_user_defined_p, unop_user_defined_p):
14259 Likewise.
14260 * valops.c (value_cast_pointers, value_cast)
14261 (value_reinterpret_cast, value_dynamic_cast, value_addr, typecmp)
14262 (value_struct_elt, value_struct_elt_bitpos)
14263 (value_find_oload_method_list, find_overload_match)
14264 (value_rtti_indirect_type): Likewise.
14265 * valprint.c (val_print_scalar_type_p, generic_val_print):
14266 Likewise.
14267 * value.c (value_actual_type, value_as_address, unpack_long)
14268 (pack_long, pack_unsigned_long, coerce_ref_if_computed)
14269 (coerce_ref): Likewise.
14270 * varobj.c (varobj_get_value_type): Likewise.
14271
3fcf899d
AV
142722017-03-20 Artemiy Volkov <artemiyv@acm.org>
14273
14274 PR gdb/14441
14275 * doc/python.texi (Types in Python): Add TYPE_CODE_RVALUE_REF to
14276 table of constants.
14277 * python/lib/gdb/command/explore.py: Support exploring values
14278 of rvalue reference types.
14279 * python/lib/gdb/types.py: Implement get_basic_type() for
14280 rvalue reference types.
14281 * python/py-type.c (pyty_codes) <TYPE_CODE_RVALUE_REF>: New
14282 constant.
14283 * python/py-value.c (valpy_getitem): Add an rvalue reference
14284 check.
14285 (valpy_reference_value): Add new parameter "refcode".
14286 (valpy_lvalue_reference_value, valpy_rvalue_reference_value):
14287 New wrappers for valpy_reference_value().
14288 * python/py-xmethods.c (gdbpy_get_xmethod_result_type)
14289 (gdbpy_invoke_xmethod): Likewise.
14290
4297a3f0
AV
142912017-03-20 Artemiy Volkov <artemiyv@acm.org>
14292
14293 PR gdb/14441
14294 * dwarf2read.c (process_die, read_type_die_1): Handle the
14295 DW_TAG_rvalue_reference_type DIE.
14296 (read_tag_reference_type): Add new parameter "refcode".
14297
e1cb3213
AV
142982017-03-20 Artemiy Volkov <artemiyv@acm.org>
14299
14300 PR gdb/14441
14301 * c-typeprint.c (c_print_type, c_type_print_varspec_prefix)
14302 (c_type_print_modifier, c_type_print_varspec_suffix)
14303 (c_type_print_base): Support printing rvalue reference types.
14304 * c-valprint.c (c_val_print, c_value_print): Support printing
14305 rvalue reference values.
14306
e4347c89
AV
143072017-03-20 Artemiy Volkov <artemiyv@acm.org>
14308
14309 PR gdb/14441
14310 * cp-name-parser.y (ptr_operator): Handle the '&&' token in
14311 typename.
14312 * cp-support.c (replace_typedefs): Handle
14313 DEMANGLE_COMPONENT_RVALUE_REFERENCE.
14314 * python/py-type.c (typy_lookup_type): Likewise.
14315
53cc15f5
AV
143162017-03-20 Artemiy Volkov <artemiyv@acm.org>
14317
14318 PR gdb/14441
14319 * c-exp.y (ptr_operator): Handle the '&&' token in the typename.
14320 * parse.c (insert_type): Change assert statement.
14321 (follow_types): Handle rvalue reference types.
14322 * parser-defs.h (enum type_pieces) <tp_rvalue_reference>: New
14323 constant.
14324
a65cfae5
AV
143252017-03-20 Artemiy Volkov <artemiyv@acm.org>
14326
14327 PR gdb/14441
14328 * ada-lang.c (ada_evaluate_subexp): Adhere to the new
14329 value_ref() interface.
14330 * c-valprint.c (c_value_print): Likewise.
14331 * infcall.c (value_arg_coerce): Likewise.
14332 * python/py-value.c (valpy_reference_value): Likewise.
14333 * valops.c (value_cast, value_reinterpret_cast)
14334 (value_dynamic_cast, typecmp): Likewise.
14335 (value_ref): Parameterize by kind of return value reference type.
14336 * value.h (value_ref): Add new parameter "refcode".
14337
3b224330
AV
143382017-03-20 Artemiy Volkov <artemiyv@acm.org>
14339
14340 PR gdb/14441
14341 * dwarf2read.c (read_tag_reference_type): Use
14342 lookup_lvalue_reference_type() instead of lookup_reference_type().
14343 * eval.c (evaluate_subexp_standard): Likewise.
14344 * f-exp.y: Likewise.
14345 * gdbtypes.c (make_reference_type, lookup_reference_type):
14346 Generalize with rvalue reference types.
14347 (lookup_lvalue_reference_type, lookup_rvalue_reference_type): New
14348 convenience wrappers for lookup_reference_type().
14349 * gdbtypes.h (make_reference_type, lookup_reference_type): Add a
14350 reference kind parameter.
14351 (lookup_lvalue_reference_type, lookup_rvalue_reference_type): Add
14352 wrappers for lookup_reference_type().
14353 * guile/scm-type.c (gdbscm_type_reference): Use
14354 lookup_lvalue_reference_type() instead of lookup_reference_type().
14355 * guile/scm-value.c (gdbscm_value_dynamic_type): Likewise.
14356 * parse.c (follow_types): Likewise.
14357 * python/py-type.c (typy_reference, typy_lookup_type): Likewise.
14358 * python/py-value.c (valpy_get_dynamic_type, valpy_getitem):
14359 Likewise.
14360 * python/py-xmethods.c (gdbpy_get_xmethod_result_type)
14361 (gdbpy_invoke_xmethod): Likewise.
14362 * stabsread.c: Provide extra argument to make_reference_type()
14363 call.
14364 * valops.c (value_ref, value_rtti_indirect_type): Use
14365 lookup_lvalue_reference_type() instead of lookup_reference_type().
14366
f9aeb8d4
AV
143672017-03-20 Artemiy Volkov <artemiyv@acm.org>
14368
14369 PR gdb/14441
14370 * gdbtypes.h (enum type_code) <TYPE_CODE_RVALUE_REF>: New constant.
14371 (TYPE_IS_REFERENCE): New macro.
14372 (struct type): Add rvalue_reference_type field.
14373 (TYPE_RVALUE_REFERENCE_TYPE): New macro.
14374
51457a05
MAL
143752017-03-20 Marc-Andre Laperle <marc-andre.laperle@ericsson.com>
14376
14377 * NEWS: Add an entry about new '-file-list-shared-libraries' command.
14378 * mi/mi-cmd-file.c (mi_cmd_file_list_shared_libraries):
14379 New function definition.
14380 * mi/mi-cmds.c (mi_cmds): Add -file-list-shared-libraries command.
14381 * mi/mi-cmds.h (mi_cmd_file_list_shared_libraries):
14382 New function declaration.
14383 * mi/mi-interp.c (mi_output_solib_attribs): New Function.
14384 * mi/mi-interp.h: New file.
14385 * solib.c (info_sharedlibrary_command): Replace for loop with
14386 ALL_SO_LIBS macro
14387 * solib.h (update_solib_list): New function declaration.
14388 (so_list_head): Move macro.
14389 * solist.h (ALL_SO_LIBS): New macro.
14390
e696b3ad
MAL
143912017-03-20 Marc-Andre Laperle <marc-andre.laperle@ericsson.com>
14392
14393 * infcmd.c (post_create_inferior): Remove unused argument in
14394 call to solib_add.
14395 * remote.c (remote_start_remote): Likewise.
14396 * solib-frv.c (frv_fetch_objfile_link_map): Likewise.
14397 * solib-svr4.c: (svr4_fetch_objfile_link_map): Likewise.
14398 (enable_break): Likewise.
14399 * solib.c (update_solib_list): Remove unused target argument
14400 and its documentation.
14401 (solib_add): Remove unused target argument. Remove unused
14402 argument in call to update_solib_list.
14403 (info_sharedlibrary_command): Remove unused argument in call
14404 to update_solib_list.
14405 (sharedlibrary_command): Remove unused argument in call to
14406 solib_add.
14407 (handle_solib_event): Likewise.
14408 (reload_shared_libraries): Likewise.
14409 * solib.h (solib_add): Remove unused target argument.
14410
dcb84eda
AA
144112017-03-20 Andreas Arnez <arnez@linux.vnet.ibm.com>
14412
14413 * s390-linux-tdep.c (is_rsi, is_rie): Remove functions.
14414 (s390_displaced_step_fixup): Cover relative branches with the
14415 default fixup handling. This fixes lack of support for some
14416 relative branch instructions.
14417
d9cb6cdc
SM
144182017-03-17 Simon Marchi <simon.marchi@polymtl.ca>
14419
14420 * i386-gnu-nat.c (gnu_fetch_registers, gnu_store_registers): Use
14421 ptid from regcache.
14422
1afaf9f4
SM
144232017-03-17 Simon Marchi <simon.marchi@polymtl.ca>
14424
14425 * i386-darwin-nat.c (i386_darwin_fetch_inferior_registers,
14426 i386_darwin_store_inferior_registers): Use ptid from regcache.
14427
aac12e24
SM
144282017-03-17 Simon Marchi <simon.marchi@polymtl.ca>
14429
14430 * i386-bsd-nat.c (i386bsd_fetch_inferior_registers,
14431 i386bsd_store_inferior_registers): Use ptid from regcache.
14432
bbe1eef1
SM
144332017-03-17 Simon Marchi <simon.marchi@polymtl.ca>
14434
14435 * hppa-obsd-nat.c (hppaobsd_fetch_registers,
14436 hppaobsd_store_registers): Use ptid from regcache.
14437
10799020
SM
144382017-03-17 Simon Marchi <simon.marchi@polymtl.ca>
14439
14440 * hppa-nbsd-nat.c (hppanbsd_fetch_registers,
14441 hppanbsd_store_registers): Use ptid from regcache.
14442
00204cf7
SM
144432017-03-17 Simon Marchi <simon.marchi@polymtl.ca>
14444
14445 * hppa-linux-nat.c (fetch_register, store_register): Use ptid
14446 from regcache. Use get_ptrace_pid.
14447
11a33714
SM
144482017-03-17 Simon Marchi <simon.marchi@polymtl.ca>
14449
14450 * corelow.c (get_core_register_section): Use ptid from regcache,
14451 update doc.
14452
317cd492
SM
144532017-03-17 Simon Marchi <simon.marchi@polymtl.ca>
14454
14455 * bsd-uthread.c (bsd_uthread_fetch_registers,
14456 bsd_uthread_store_registers): Use ptid from regcache, set and
14457 restore inferior_ptid.
14458
9ac8a7c2
SM
144592017-03-17 Simon Marchi <simon.marchi@polymtl.ca>
14460
14461 * arm-nbsd-nat.c (fetch_register, fetch_regs, fetch_fp_register,
14462 fetch_fp_regs, store_register, store_regs, store_fp_register,
14463 store_fp_regs): Use ptid from regcache.
14464
4ac4bb6a
SM
144652017-03-17 Simon Marchi <simon.marchi@polymtl.ca>
14466
14467 * arm-linux-nat.c (fetch_fpregs, store_fpregs, fetch_regs,
14468 store_regs, fetch_wmmx_regs, store_wmmx_regs, fetch_vfp_regs,
14469 store_vfp_regs): Use ptid from regcache.
14470
9bcbdca8
PA
144712017-03-17 Pedro Alves <palves@redhat.com>
14472
14473 PR remote/21188
14474 * ser-base.c (ser_base_wait_for): Add comment.
14475 (do_ser_base_readchar): Improve comment based on the ser-unix.c's
14476 version.
14477 * ser-unix.c (hardwire_raw): Remove reference to
14478 scb->current_timeout.
14479 (wait_for, do_hardwire_readchar, hardwire_readchar): Delete.
14480 (hardwire_ops): Install ser_base_readchar instead of
14481 hardwire_readchar.
14482 * serial.h (struct serial) <current_timeout, timeout_remaining>:
14483 Remove fields.
14484
7503099f
JG
144852017-03-17 Jonah Graham <jonah@kichwacoders.com>
14486
14487 PR gdb/19637
14488 * python/lib/gdb/printer/bound_registers.py: Add support for
14489 Python 3.
14490
7942e96e
AA
144912017-03-16 Andreas Arnez <arnez@linux.vnet.ibm.com>
14492
14493 * dwarf2loc.c (indirect_synthetic_pointer): Get data type of
14494 pointed-to DIE and pass it to dwarf2_evaluate_loc_desc_full.
14495 (dwarf2_evaluate_loc_desc_full): New parameter subobj_type; rename
14496 byte_offset to subobj_byte_offset. Fix the handling of
14497 DWARF_VALUE_STACK on big-endian targets when coming via an
14498 implicit pointer.
14499 (dwarf2_evaluate_loc_desc): Adjust call to
14500 dwarf2_evaluate_loc_desc_full.
14501 * dwarf2loc.h (dwarf2_fetch_die_type_sect_off): New declaration.
14502 * dwarf2read.c (dwarf2_fetch_die_type_sect_off): New function.
14503
ba14f379
YQ
145042017-03-16 Yao Qi <yao.qi@linaro.org>
14505
14506 * arm-tdep.c (thumb_record_misc): Decode CBNZ, CBZ, REV16,
14507 and REVSH instructions.
14508
b121eeb9
YQ
145092017-03-16 Yao Qi <yao.qi@linaro.org>
14510
14511 * arm-tdep.c [GDB_SELF_TEST]: include "selftests.h".
14512 (arm_record_test): Declare.
14513 (_initialize_arm_tdep) [GDB_SELF_TEST]: call register_self_test.
14514 (thumb_record_ld_st_reg_offset): Rewrite the opcode matching to
14515 align with the manual.
14516 (thumb_record_misc): Adjust the code order to align with the
14517 manual.
14518 (thumb2_record_decode_insn_handler): Fix instruction matching.
14519 (instruction_reader_thumb): New class.
14520 (arm_record_test): New function.
14521
728a7913
YQ
145222017-03-16 Yao Qi <yao.qi@linaro.org>
14523
14524 * arm-tdep.c (abstract_memory_reader): New class.
14525 (instruction_reader): New class.
14526 (extract_arm_insn): Add argument 'reader'. Callers updated.
14527 (decode_insn): Likewise.
14528
34b43320
DE
145292017-03-16 Doug Evans <dje@google.com>
14530
a7c0469f
DE
14531 * guile/scm-lazy-string.c (lazy_string_smob): Clarify use of LENGTH
14532 member. Change type of TYPE member to SCM. All uses updated.
14533 (lsscm_make_lazy_string_smob): Add assert.
14534 (lsscm_make_lazy_string): Flag bad length values.
14535 (lsscm_elt_type): New function.
14536 (gdbscm_lazy_string_to_value): Rewrite to use
14537 lsscm_safe_lazy_string_to_value.
14538 (lsscm_safe_lazy_string_to_value): Fix handling of TYPE_CODE_PTR.
14539 * guile/scm-value.c (gdbscm_value_to_lazy_string): Flag bad length
14540 values. Fix TYPE_CODE_PTR. Handle TYPE_CODE_ARRAY. Handle typedefs
14541 in incoming type.
14542 * guile/guile-internal.h (tyscm_scm_to_type): Declare.
14543 * guile/scm-type.c (tyscm_scm_to_type): New function.
14544
145452017-03-15 Doug Evans <dje@google.com>
14546
34b43320
DE
14547 PR python/17728, python/18439, python/18779
14548 * python/py-lazy-string.c (lazy_string_object): Clarify use of LENGTH
14549 member. Change type of TYPE member to PyObject *. All uses updated.
14550 (stpy_convert_to_value): Fix handling of TYPE_CODE_PTR.
14551 (gdbpy_create_lazy_string_object): Flag bad length values.
14552 Handle TYPE_CODE_ARRAY with possibly different user-provided length.
14553 Handle typedefs in incoming type.
14554 (stpy_lazy_string_elt_type): New function.
14555 (gdbpy_extract_lazy_string): Call it.
14556 * python/py-value.c (valpy_lazy_string): Flag bad length values.
14557 Fix handling of TYPE_CODE_PTR. Handle TYPE_CODE_ARRAY. Handle
14558 typedefs in incoming type.
14559
a3a5fecc
DE
145602017-03-16 Doug Evans <dje@google.com>
14561
14562 * guile/guile-internal.h (tyscm_scm_to_type): Declare.
14563 * guile/scm-type.c (tyscm_scm_to_type): New function.
14564
28f1c605
JW
145652017-03-16 Jiong Wang <jiong.wang@arm.com>
14566
14567 * inf-ptrace.c (inf_ptrace_peek_poke): Change the type to
14568 "ULONGEST" for "skip".
14569
87c336f6
AA
145702017-03-14 Andreas Arnez <arnez@linux.vnet.ibm.com>
14571
14572 PR gdb/21220
14573 * inf-ptrace.c (inf_ptrace_xfer_partial): In "case
14574 TARGET_OBJECT_MEMORY", extract the logic for ptrace peek/poke...
14575 (inf_ptrace_peek_poke): ...here. New function. Now also loop
14576 over ptrace peek/poke until end of buffer or error.
14577
cf81cf60
SM
145782017-03-14 Simon Marchi <simon.marchi@ericsson.com>
14579
14580 * parse.c (length_of_subexp): Make static.
14581 * parser-defs.h (length_of_subexp): Remove.
14582
a379284a
AA
145832017-03-14 Andreas Arnez <arnez@linux.vnet.ibm.com>
14584
14585 * linux-nat.c (linux_proc_xfer_partial): Handle write operations
14586 as well.
14587
8a6200ba
PA
145882017-03-14 Pedro Alves <palves@redhat.com>
14589
14590 * cp-name-parser.y (cp_demangled_name_to_comp): Update comment.
14591 (main): Use std::unique_ptr. Remove calls to
14592 cp_demangled_name_parse_free.
14593
f79ec206
SM
145942017-03-13 Simon Marchi <simon.marchi@polymtl.ca>
14595
14596 * alpha-bsd-nat.c (alphabsd_fetch_inferior_registers,
14597 alphabsd_store_inferior_registers): Use regcache->ptid instead
14598 of inferior_ptid.
14599
edb5fb00
SM
146002017-03-13 Simon Marchi <simon.marchi@polymtl.ca>
14601
14602 * aix-thread.c (aix_thread_fetch_registers,
14603 aix_thread_store_registers): Use regcache->ptid instead of
14604 inferior_ptid.
14605
55119686
SM
146062017-03-13 Simon Marchi <simon.marchi@polymtl.ca>
14607
14608 * aarch64-linux-nat.c (fetch_gregs_from_thread,
14609 store_gregs_to_thread, fetch_fpregs_from_thread,
14610 store_fpregs_to_thread): Use regcache->ptid instead of
14611 inferior_ptid.
14612
6a06fbb7
SM
146132017-03-13 Simon Marchi <simon.marchi@polymtl.ca>
14614
14615 * amd64-linux-nat.c (amd64_linux_fetch_inferior_registers,
14616 amd64_linux_fetch_inferior_registers): Use regcache->ptid
14617 instead of inferior_ptid.
14618
c6386875
SM
146192017-03-13 Simon Marchi <simon.marchi@polymtl.ca>
14620
14621 * target.c (target_fetch_registers, target_store_registers): Add
14622 assert.
14623
ddaaf0fb
SM
146242017-03-13 Simon Marchi <simon.marchi@polymtl.ca>
14625
14626 * regcache.h (regcache_get_ptid): New function.
14627 * regcache.c (regcache_get_ptid): New function.
14628
b9da89d1 146292017-03-13 Mark Wielaard <mark@klomp.org>
14630
14631 * cp-name-parser.y (make_empty): Initialize d_printing to zero.
14632
5f4d1085
KS
146332017-03-10 Keith Seitz <keiths@redhat.com>
14634
14635 PR c++/8218
14636 * c-typeprint.c (cp_type_print_method_args): Skip artificial arguments.
14637
c65d6b55
PA
146382017-03-08 Pedro Alves <palves@redhat.com>
14639
14640 PR gdb/18360
14641 * infrun.c (start_step_over, do_target_resume, resume)
14642 (restart_threads): Assert we're not resuming a thread that is
14643 meant to be stopped.
14644 (infrun_thread_stop_requested_callback): Delete.
14645 (infrun_thread_stop_requested): If the thread is internally
14646 stopped, queue a pending stop event and clear the thread's
14647 inline-frame state.
14648 (handle_stop_requested): New function.
14649 (handle_syscall_event, handle_inferior_event_1): Use
14650 handle_stop_requested.
14651 (handle_stop_requested): New function.
14652 (handle_signal_stop): Set the thread's stop_signal here instead of
14653 at caller.
14654 (finish_step_over): Clear step over info unconditionally.
14655 (handle_signal_stop): If the user had interrupted the event
14656 thread, consider the stop a random signal.
14657 (handle_signal_stop) <signal arrived while stepping over
14658 breakpoint>: Don't restart threads here.
14659 (stop_waiting): Don't clear step-over info here.
14660
15c22686
PA
146612017-03-08 Pedro Alves <palves@redhat.com>
14662
14663 PR 21206
14664 * common/gdb_unlinker.h (unlinker::unlinker): Attribute nonnull
14665 goes to argument 2, not 1.
14666
6e5d74e7
PA
146672017-03-08 Pedro Alves <palves@redhat.com>
14668
14669 PR cli/21218
14670 * top.c (gdb_readline_wrapper): Avoid passing NULL to
14671 display_gdb_prompt.
14672 (command_line_input): Add comment.
14673
9753a2f6
PA
146742017-03-08 Pedro Alves <palves@redhat.com>
14675
14676 PR tui/21216
14677 * tui/tui-file.c (tui_file::write): New.
14678 * tui/tui-file.h (tui_file): Override "write".
14679 * tui/tui-io.c (do_tui_putc, update_start_line): New functions,
14680 factored out from ...
14681 (tui_puts): ... here.
14682 (tui_putc): Use them.
14683 (tui_write): New function.
14684 * tui/tui-io.h (tui_write): Declare.
14685
1672e0d9
SDJ
146862017-03-07 Sergio Durigan Junior <sergiodj@redhat.com>
14687
14688 * Makefile.in (SFILES): Replace "environ.c" with
14689 "common/environ.c".
14690 (HFILES_NO_SRCDIR): Likewise, for "environ.h".
14691 * environ.c: Include "common-defs.h" instead of "defs.h. Moved
14692 to...
14693 * common/environ.c: ... here.
14694 * environ.h: Moved to...
14695 * common/environ.h: ... here.
14696
f7bb4e3a
PB
146972017-03-07 Peter Bergner <bergner@vnet.ibm.com>
14698
14699 * gdbarch.sh (pstring_ptr): New static function.
14700 (gdbarch_disassembler_options): Use it.
14701 (gdbarch_verify_disassembler_options): Print valid_disassembler_options,
14702 not valid_disassembler_option->name.
14703 * gdbarch.c: Regenerate.
14704
e45ced6c
PB
147052017-03-07 Peter Bergner <bergner@vnet.ibm.com>
14706
14707 * config/powerpc/ppc64-linux.mh (MH_CFLAGS): Delete.
14708
5f6fd321
PA
147092017-03-07 Pedro Alves <palves@redhat.com>
14710
14711 * tui/tui-regs.c (tui_restore_gdbout): Don't delete gdb_stdout.
14712
6dbb839a 147132017-03-07 Walfred Tedeschi <walfred.tedeschi@intel.com>
4a612d6f
WT
14714
14715 * i387-tdep.h (i387_reset_bnd_regs): Add function definition.
14716 * i387-tdep.c (i387_reset_bnd_regs): Add function implementation.
14717 * i386-tdep.c (i386_push_dummy_call): Call i387_reset_bnd_regs.
6dbb839a 14718 * amd64-tdep.c (amd64_push_dummy_call): Call i387_reset_bnd_regs.
4a612d6f 14719
d274ecf4
SM
147202017-03-06 Simon Marchi <simon.marchi@ericsson.com>
14721
14722 * xtensa-linux-nat.c (fetch_gregs): Remove const.
14723
df97be55
SM
147242017-03-03 Simon Marchi <simon.marchi@ericsson.com>
14725
14726 * remote.c (remote_add_target_side_commands): Use range-based
14727 for loop.
14728
7d45f3df
YQ
147292017-03-03 Yao Qi <yao.qi@linaro.org>
14730
14731 PR gdb/21165
14732 * ada-valprint.c (ada_val_print_ref): Call value_fetch_lazy if
14733 value is lazy.
14734 * valprint.c (common_val_print): Likewise.
14735
65b48a81
PB
147362017-02-28 Peter Bergner <bergner@vnet.ibm.com>
14737
14738 * NEWS: Mention new set/show disassembler-options commands.
14739 * doc/gdb.texinfo: Document new set/show disassembler-options commands.
14740 * disasm.c: Include "arch-utils.h", "gdbcmd.h" and "safe-ctype.h".
14741 (prospective_options): New static variable.
14742 (gdb_disassembler::gdb_disassembler): Initialize
14743 m_di.disassembler_options.
14744 (gdb_buffered_insn_length_init_dis): Initilize di->disassembler_options.
14745 (get_disassembler_options): New function.
14746 (set_disassembler_options): Likewise.
14747 (set_disassembler_options_sfunc): Likewise.
14748 (show_disassembler_options_sfunc): Likewise.
14749 (disassembler_options_completer): Likewise.
14750 (_initialize_disasm): Likewise.
14751 * disasm.h (get_disassembler_options): New prototype.
14752 (set_disassembler_options): Likewise.
14753 * gdbarch.sh (gdbarch_disassembler_options): New variable.
14754 (gdbarch_verify_disassembler_options): Likewise.
14755 * gdbarch.c: Regenerate.
14756 * gdbarch.h: Likewise.
14757 * arm-tdep.c (num_disassembly_options): Delete.
14758 (set_disassembly_style): Likewise.
14759 (arm_disassembler_options): New static variable.
14760 (set_disassembly_style_sfunc): Convert short style name into long
14761 option name. Call set_disassembler_options.
14762 (show_disassembly_style_sfunc): New function.
14763 (arm_gdbarch_init): Call set_gdbarch_disassembler_options and
14764 set_gdbarch_verify_disassembler_options.
14765 (_initialize_arm_tdep): Delete regnames variable and update callers.
14766 (arm_disassembler_options): Initialize.
14767 (disasm_options): New variable.
14768 (num_disassembly_options): Rename from this...
14769 (num_disassembly_styles): ...to this. Compute by scanning through
14770 disasm_options.
14771 (valid_disassembly_styles): Initialize using disasm_options.
14772 Remove calls to parse_arm_disassembler_option, get_arm_regnames and
14773 set_arm_regname_option.
14774 Pass show_disassembly_style_sfunc to the "disassembler" setshow command.
14775 * rs6000-tdep.c (powerpc_disassembler_options): New static variable.
14776 (rs6000_gdbarch_init): Call set_gdbarch_disassembler_options and
14777 set_gdbarch_verify_disassembler_options.
14778 * s390-tdep.c (s390_disassembler_options): New static variable.
14779 (s390_gdbarch_init):all set_gdbarch_disassembler_options and
14780 set_gdbarch_verify_disassembler_options.
14781
d538e36d
SM
147822017-02-27 Simon Marchi <simon.marchi@ericsson.com>
14783
14784 * remote.c (remote_add_target_side_condition): Remove "struct"
14785 keyword from range-based for loop.
14786
83621223
SM
147872017-02-27 Simon Marchi <simon.marchi@ericsson.com>
14788
14789 * remote.c (remote_add_target_side_condition): Use range-based
14790 for loop. Update comment.
14791
2123df0e
YQ
147922017-02-27 Yao Qi <yao.qi@linaro.org>
14793
14794 * f-typeprint.c (f_print_type): Check "varstring" is empty first.
14795
8e368124
AH
147962017-02-26 Alan Hayward <alan.hayward@arm.com>
14797
14798 * regcache.c (regcache_raw_update): New function.
14799 (regcache_raw_read): Move code to regcache_raw_update.
14800 * regcache.h (regcache_raw_update): New declaration.
14801 * remote.c (remote_prepare_to_store): Call regcache_raw_update.
14802
a49dd8dd
JK
148032017-02-26 Jan Kratochvil <jan.kratochvil@redhat.com>
14804
14805 * dwarf2read.c (create_debug_type_hash_table): Initialize
14806 header.signature and header.type_offset_in_tu.
14807
34e4bae9
PA
148082017-02-24 Pedro Alves <palves@redhat.com>
14809
14810 * symtab.c (make_file_symbol_completion_list_1): Use
14811 add_symtab_completions.
14812
b0e4b369
AH
148132017-02-24 Alan Hayward <alan.hayward@arm.com>
14814
14815 * stack.c (frame_info): Use frame_unwind_register_value to avoid buf.
14816
975c21ab
AH
148172017-02-24 Alan Hayward <alan.hayward@arm.com>
14818
14819 * i386-tdep.c (i386_pseudo_register_read_into_value): Use
14820 I386_MAX_REGISTER_SIZE.
14821 (i386_pseudo_register_write): Likewise.
14822 (i386_process_record): Likewise.
14823 * i387-tdep.c (i387_supply_xsave): Likewise.
14824 * m68k-linux-nat.c (fetch_register): Use M68K_MAX_REGISTER_SIZE.
14825 (store_register): Likewise.
14826
14bc53a8
PA
148272017-02-23 Pedro Alves <palves@redhat.com>
14828
14829 * ada-lang.c: Include "common/function-view.h".
14830 (ada_iterate_over_symbols): Adjust to use function_view as
14831 callback type.
14832 (struct add_partial_datum, ada_complete_symbol_matcher): Delete.
14833 (ada_make_symbol_completion_list): Use a lambda.
14834 (ada_exc_search_name_matches): Delete.
14835 (name_matches_regex): New.
14836 (ada_add_global_exceptions): Use a lambda and name_matches_regex.
14837 * compile/compile-c-support.c: Include "common/function-view.h".
14838 (print_one_macro): Change prototype to accept a ui_file pointer.
14839 (write_macro_definitions): Use a lambda.
14840 * dwarf2read.c: Include "common/function-view.h".
14841 (dw2_map_expand_apply, dw2_map_symtabs_matching_filename)
14842 (dw2_expand_symtabs_matching): Adjust to use function_view as
14843 callback type.
14844 * language.h: Include "common/function-view.h".
14845 (struct language_defn) <la_iterate_over_symbols>: Adjust to use
14846 function_view as callback type.
14847 (LA_ITERATE_OVER_SYMBOLS): Remove DATA parameter.
14848 * linespec.c: Include "common/function-view.h".
14849 (collect_info::add_symbol): New method.
14850 (struct symbol_and_data_callback, iterate_inline_only, struct
14851 symbol_matcher_data, iterate_name_matcher): Delete.
14852 (iterate_over_all_matching_symtabs): Adjust to use function_view
14853 as callback type and lambdas.
14854 (iterate_over_file_blocks): Adjust to use function_view as
14855 callback type.
14856 (decode_compound_collector): Now a class with private fields.
14857 (decode_compound_collector::release_symbols): New method.
14858 (collect_one_symbol): Rename to...
14859 (decode_compound_collector::operator()): ... this and adjust.
14860 (lookup_prefix_sym): decode_compound_collector construction bits
14861 move to decode_compound_collector ctor. Pass the
14862 decode_compound_collector object directly as callback. Remove
14863 cleanups and use decode_compound_collector::release_symbols
14864 instead.
14865 (symtab_collector): Now a class with private fields.
14866 (symtab_collector::release_symtabs): New method.
14867 (add_symtabs_to_list): Rename to...
14868 (symtab_collector::operator()): ... this and adjust.
14869 (collect_symtabs_from_filename): symtab_collector construction
14870 bits move to symtab_collector ctor. Pass the symtab_collector
14871 object directly as callback. Remove cleanups and use
14872 symtab_collector::release_symtabs instead.
14873 (collect_symbols): Delete.
14874 (add_matching_symbols_to_info): Use lambdas.
14875 * macrocmd.c (print_macro_callback): Delete.
14876 (info_macro_command): Use a lambda.
14877 (info_macros_command): Pass print_macro_definition as callable
14878 directly.
14879 (print_one_macro): Remove 'ignore' parameter.
14880 (macro_list_command): Adjust.
14881 * macrotab.c (macro_for_each_data::fn): Now a function_view.
14882 (macro_for_each_data::user_data): Delete field.
14883 (foreach_macro): Adjust to call the function_view.
14884 (macro_for_each): Adjust to use function_view as callback type.
14885 (foreach_macro_in_scope): Adjust to call the function_view.
14886 (macro_for_each_in_scope): Adjust to use function_view as callback
14887 type.
14888 * macrotab.h: Include "common/function-view.h".
14889 (macro_callback_fn): Declare a prototype instead of a pointer.
14890 Remove "user_data" parameter.
14891 (macro_for_each, macro_for_each_in_scope): Adjust to use
14892 function_view as callback type.
14893 * psymtab.c (partial_map_expand_apply)
14894 (psym_map_symtabs_matching_filename, recursively_search_psymtabs):
14895 Adjust to use function_view as callback type and to return bool.
14896 (psym_expand_symtabs_matching): Adjust to use function_view as
14897 callback types.
14898 * symfile-debug.c (debug_qf_map_symtabs_matching_filename): Adjust
14899 to use function_view as callback type and to return bool.
14900 (debug_qf_expand_symtabs_matching): Adjust to use function_view as
14901 callback types.
14902 * symfile.c (expand_symtabs_matching): Adjust to use function_view
14903 as callback types.
14904 * symfile.h: Include "common/function-view.h".
14905 (expand_symtabs_file_matcher_ftype)
14906 (expand_symtabs_symbol_matcher_ftype)
14907 (expand_symtabs_exp_notify_ftype): Remove "data" parameter and
14908 return bool.
14909 (quick_symbol_functions::map_symtabs_matching_filename)
14910 (quick_symbol_functions::expand_symtabs_matching): Adjust to use
14911 function_view as callback type and return bool.
14912 (expand_symtabs_matching): Adjust to use function_view as callback
14913 type.
14914 (maintenance_expand_name_matcher)
14915 (maintenance_expand_file_matcher): Delete.
14916 (maintenance_expand_symtabs): Use lambdas.
14917 * symtab.c (iterate_over_some_symtabs): Adjust to use
14918 function_view as callback types and return bool.
14919 (iterate_over_symtabs): Likewise. Use unique_xmalloc_ptr instead
14920 of a cleanup.
14921 (lookup_symtab_callback): Delete.
14922 (lookup_symtab): Use a lambda.
14923 (iterate_over_symbols): Adjust to use function_view as callback
14924 type.
14925 (struct search_symbols_data, search_symbols_file_matches)
14926 (search_symbols_name_matches): Delete.
14927 (search_symbols): Use a pair of lambdas.
14928 (struct add_name_data, add_macro_name, symbol_completion_matcher)
14929 (symtab_expansion_callback): Delete.
14930 (default_make_symbol_completion_list_break_on_1): Use lambdas.
14931 * symtab.h: Include "common/function-view.h".
14932 (iterate_over_some_symtabs): Adjust to use function_view as
14933 callback type and return bool.
14934 (iterate_over_symtabs): Adjust to use function_view as callback
14935 type.
14936 (symbol_found_callback_ftype): Remove 'data' parameter and return
14937 bool.
14938 (iterate_over_symbols): Adjust to use function_view as callback
14939 type.
14940
07e253aa
PA
149412017-02-23 Pedro Alves <palves@redhat.com>
14942
14943 * Makefile.in (SUBDIR_UNITTESTS_SRCS, SUBDIR_UNITTESTS_OBS): New.
14944 (%.o) <unittests/%.c>: New pattern.
14945 * configure.ac ($development): Add $(SUBDIR_UNITTESTS_OBS) to
14946 CONFIG_OBS, and $(SUBDIR_UNITTESTS_SRCS) to CONFIG_SRCS.
14947 * common/function-view.h: New file.
14948 * unittests/function-view-selftests.c: New file.
14949 * configure: Regenerate.
14950
8eaf5320
SM
149512017-02-23 Simon Marchi <simon.marchi@ericsson.com>
14952
14953 * bsd-uthread.c (bsd_uthread_thread_alive): Use ptid instead of
14954 inferior_ptid.
14955 * go32-nat.c (go32_thread_alive): Likewise.
14956
38768751
YQ
149572017-02-23 Yao Qi <yao.qi@linaro.org>
14958
14959 * varobj-iter.h (varobj_iter_delete): Call xfree instead of
14960 delete.
14961
0a8beaba
YQ
149622017-02-23 Yao Qi <yao.qi@linaro.org>
14963
14964 * varobj.c (varobj_clear_saved_item): Use delete instead of
14965 xfree.
14966 (update_dynamic_varobj_children): Likewise.
14967
58fdfd2c
JK
149682017-02-21 Jan Kratochvil <jan.kratochvil@redhat.com>
14969
14970 * dwarf2read.c (dwarf2_record_block_ranges): Add forgotten BASEADDR.
14971
1b90b139
SM
149722017-02-21 Simon Marchi <simon.marchi@ericsson.com>
14973
14974 * common/enum-flags.h (enum_flags::enum_flags): Initialize
14975 m_enum_value to 0 in default constructor.
14976
2039d74e
EBM
149772017-02-21 Edjunior Barbosa Machado <emachado@linux.vnet.ibm.com>
14978
14979 * rs6000-tdep.c (LOAD_AND_RESERVE_MASK): Rename from LWARX_MASK.
14980 (STORE_CONDITIONAL_MASK): Rename from STWCX_MASK.
14981 (LBARX_INSTRUCTION, LHARX_INSTRUCTION, LQARX_INSTRUCTION,
14982 STBCX_INSTRUCTION, STHCX_INSTRUCTION, STQCX_INSTRUCTION): New defines.
14983 (IS_LOAD_AND_RESERVE_INSN, IS_STORE_CONDITIONAL_INSN): New macros.
14984 (ppc_displaced_step_copy_insn): Use IS_LOAD_AND_RESERVE_INSN.
14985 (ppc_deal_with_atomic_sequence): Use IS_LOAD_AND_RESERVE_INSN and
14986 IS_STORE_CONDITIONAL_INSN.
14987
7814882a
JK
149882017-02-21 Jan Kratochvil <jan.kratochvil@redhat.com>
14989
14990 * dwarf2_rnglists_process: Initialize range_beginning and range_end.
14991
0ae60b63
JK
149922017-02-20 Jan Kratochvil <jan.kratochvil@redhat.com>
14993
14994 * NEWS (Changes since GDB 7.12): Add DWARF-5.
14995
0224619f
JK
149962017-02-20 Jan Kratochvil <jan.kratochvil@redhat.com>
14997
14998 * dwarf2read.c (skip_one_die, read_attribute_value)
14999 (dwarf2_const_value_attr, dump_die_shallow)
15000 (dwarf2_get_attr_constant_value, dwarf2_fetch_constant_bytes)
15001 (skip_form_bytes, attr_form_is_constant): Handle DW_FORM_data16.
15002
0af92d60
JK
150032017-02-20 Jan Kratochvil <jan.kratochvil@redhat.com>
15004
15005 * dwarf2read.c (read_file_scope): Rename DW_MACRO_GNU_*.
15006 (dwarf_parse_macro_header): Accept DWARF version 5.
15007 (dwarf_decode_macro_bytes, dwarf_decode_macros): Rename DW_MACRO_GNU_*.
15008
216f72a1
JK
150092017-02-20 Jan Kratochvil <jan.kratochvil@redhat.com>
15010
15011 * block.c (call_site_for_pc): Rename DW_OP_GNU_*, DW_TAG_GNU_* and
15012 DW_AT_GNU_*.
15013 * common/common-exceptions.h (enum errors): Likewise.
15014 * dwarf2-frame.c (class dwarf_expr_executor): Likewise.
15015 * dwarf2expr.c (dwarf_block_to_dwarf_reg)
15016 (dwarf_expr_context::execute_stack_op): Likewise.
15017 * dwarf2expr.h (struct dwarf_expr_context, struct dwarf_expr_piece):
15018 Likewise.
15019 * dwarf2loc.c (dwarf_evaluate_loc_desc::get_base_type)
15020 (dwarf_evaluate_loc_desc::push_dwarf_reg_entry_value)
15021 (show_entry_values_debug, call_site_to_target_addr)
15022 (func_addr_to_tail_call_list, func_verify_no_selftailcall)
15023 (dwarf_expr_reg_to_entry_parameter, dwarf_entry_parameter_to_value)
15024 (entry_data_value_free_closure, value_of_dwarf_reg_entry)
15025 (value_of_dwarf_block_entry, indirect_pieced_value)
15026 (symbol_needs_eval_context::push_dwarf_reg_entry_value):
15027 (disassemble_dwarf_expression): Likewise.
15028 * dwarf2read.c (process_die, inherit_abstract_dies)
15029 (read_call_site_scope): Likewise.
15030 * gdbtypes.h (struct func_type, struct call_site_parameter)
15031 (struct call_site): Likewise.
15032 * stack.c (read_frame_arg): Likewise.
15033 * std-operator.def (OP_VAR_ENTRY_VALUE): Likewise.
15034
43988095
JK
150352017-02-20 Jan Kratochvil <jan.kratochvil@redhat.com>
15036
15037 * defs.h (read_unsigned_leb128): New declaration.
15038 * dwarf2loc.c (decode_debug_loclists_addresses): New function.
15039 (decode_debug_loc_dwo_addresses): Update DEBUG_LOC_* to DW_LLE_*.
15040 (dwarf2_find_location_expression): Call also
15041 decode_debug_loclists_addresses. Handle DWARF-5 ULEB128 length.
15042 * dwarf2loc.h (dwarf2_version): New declaration.
15043 * dwarf2read.c (struct dwarf2_per_objfile): Add loclists, line_str,
15044 rnglists.
15045 (dwarf2_elf_names): Add .debug_loclists, .debug_line_str,
15046 .debug_rnglists.
15047 (struct dwop_section_names): Add loclists_dwo.
15048 (dwop_section_names): Add .debug_loclists.dwo.
15049 (struct comp_unit_head): Add unit_type, signature, type_offset_in_tu.
15050 (struct dwarf2_per_cu_data): Add dwarf_version.
15051 (struct dwo_sections): Add loclists.
15052 (struct attr_abbrev): Add implicit_const.
15053 (read_indirect_line_string): New declaration.
15054 (read_unsigned_leb128): Delete declaration.
15055 (rcuh_kind): New definition.
15056 (read_and_check_comp_unit_head): Change parameter
15057 is_debug_types_section to section_kind.
15058 (dwarf2_locate_sections): Handle loclists, line_str and rnglists.
15059 (read_comp_unit_head): Change parameter abfd to section, add parameter
15060 section_kind. Handle DWARF-5.
15061 (error_check_comp_unit_head): Accept also DWARF version 5.
15062 (read_and_check_comp_unit_head): Change parameter
15063 is_debug_types_section to section_kind.
15064 (read_and_check_type_unit_head): Delete function.
15065 (read_abbrev_offset): Handle DWARF-5.
15066 (create_debug_type_hash_table): Add parameter section_kind. Process
15067 only DW_UT_type. Use signature and type_offset_in_tu from struct
15068 comp_unit_head.
15069 (create_debug_types_hash_table): Update create_debug_type_hash_table
15070 caller.
15071 (create_all_type_units): Call create_debug_type_hash_table.
15072 (read_cutu_die_from_dwo, init_cutu_and_read_dies): Change
15073 read_and_check_type_unit_head caller to read_and_check_comp_unit_head
15074 caller.
15075 (skip_one_die): Handle DW_FORM_implicit_const.
15076 (dwarf2_rnglists_process): New function.
15077 (dwarf2_ranges_process): Call dwarf2_rnglists_process for DWARF-5.
15078 (abbrev_table_read_table): Handle DW_FORM_implicit_const.
15079 (read_attribute_value): Handle DW_FORM_implicit_const,
15080 DW_FORM_line_strp.
15081 (read_attribute): Handle DW_FORM_implicit_const.
15082 (read_indirect_string_at_offset_from): New function from
15083 read_indirect_string_at_offset.
15084 (read_indirect_string_at_offset): Call
15085 read_indirect_string_at_offset_from.
15086 (read_indirect_line_string_at_offset): New function.
15087 (read_indirect_string): New function comment.
15088 (read_indirect_line_string): New function.
15089 (read_unsigned_leb128): Make it global.
15090 (dwarf2_string_attr): Handle DWARF-5.
15091 (add_include_dir_stub, read_formatted_entries): New functions.
15092 (dwarf_decode_line_header, dump_die_shallow, cu_debug_loc_section):
15093 Handle DWARF-5.
15094 (per_cu_header_read_in): Update read_comp_unit_head caller.
15095 (dwarf2_version): New function.
15096 * symfile.h (struct dwarf2_debug_sections): Add loclists, line_str and
15097 rnglists.
15098 * xcoffread.c (dwarf2_xcoff_names): Update struct dwarf2_debug_sections
15099 fields.
15100
22d2f3ab
JK
151012017-02-20 Jan Kratochvil <jan.kratochvil@redhat.com>
15102
15103 * dwarf2read.c (abbrev_table_read_table): Read the data only once.
15104
5f46c5a5
JK
151052017-02-20 Jan Kratochvil <jan.kratochvil@redhat.com>
15106
15107 * dwarf2read.c (dwarf2_ranges_process): New function from
15108 dwarf2_ranges_read.
15109 (dwarf2_ranges_read, dwarf2_record_block_ranges): Use
15110 dwarf2_ranges_process.
15111
78d4d2c5
JK
151122017-02-20 Jan Kratochvil <jan.kratochvil@redhat.com>
15113
15114 * dwarf2read.c (create_debug_type_hash_table): New function from
15115 create_debug_types_hash_table.
15116 (create_debug_types_hash_table): Call create_debug_type_hash_table.
15117 (create_all_type_units, open_and_init_dwo_file): Update
15118 create_debug_types_hash_table callers.
15119
1b076f25
SDJ
151202017-02-20 Sergio Durigan Junior <sergiodj@redhat.com>
15121
15122 PR gdb/16188
15123 * fork-child.c (trace_start_error): Fix thinko. va_end should
15124 refer to 'ap', not 'args'.
15125
0db8980c
SDJ
151262017-02-20 Sergio Durigan Junior <sergiodj@redhat.com>
15127 Pedro Alves <palves@redhat.com>
15128
15129 PR gdb/16188
15130 * darwin-nat.c (darwin_ptrace_me): Check if calls to system
15131 calls succeeded.
15132 * fork-child.c (trace_start_error): New function.
15133 (trace_start_error_with_name): Likewise.
15134 * gnu-nat.c (gnu_ptrace_me): Check if call to PTRACE succeeded.
15135 * inf-ptrace.c (inf_ptrace_me): Likewise.
15136 * inferior.h (trace_start_error): New prototype.
15137 (trace_start_error_with_name): Likewise.
15138
99e8a4f9
SDJ
151392017-02-15 Sergio Durigan Junior <sergiodj@redhat.com>
15140
15141 PR gdb/21164
15142 * psymtab.c (maintenance_print_psymbols): Verify if 'argv' is not
15143 NULL before using it.
15144 * symmisc.c (maintenance_print_symbols): Likewise.
15145 (maintenance_print_msymbols): Likewise.
15146
4e746bb6
TW
151472017-02-14 Tim Wiederhake <tim.wiederhake@intel.com>
15148
15149 * NEWS: Add record Python bindings entry.
15150
151512017-02-14 Tim Wiederhake <tim.wiederhake@intel.com>
15152
15153 * Makefile.in (SUBDIR_PYTHON_OBS): Add py-record-btrace.o,
15154 py-record-full.o.
15155 (SUBDIR_PYTHON_SRCS): Add py-record-btrace.c, py-record-full.c.
15156 * python/py-record-btrace.c, python/py-record-btrace.h,
15157 python/py-record-full.c, python/py-record-full.h: New file.
15158 * python/py-record.c: Add include for py-record-btrace.h and
15159 py-record-full.h.
15160 (recpy_method, recpy_format, recpy_goto, recpy_replay_position,
15161 recpy_instruction_history, recpy_function_call_history, recpy_begin,
15162 recpy_end): Use functions from py-record-btrace.c and py-record-full.c.
15163 * python/python-internal.h (PyInt_FromSsize_t, PyInt_AsSsize_t):
15164 New definition.
15165 (gdbpy_initialize_btrace): New export.
15166 * python/python.c (_initialize_python): Add gdbpy_initialize_btrace.
15167
151682017-02-14 Tim Wiederhake <tim.wiederhake@intel.com>
15169
15170 * Makefile.in (SUBDIR_PYTHON_OBS): Add python/py-record.o.
15171 (SUBDIR_PYTHON_SRCS): Add python/py-record.c.
15172 * python/py-record.c: New file.
15173 * python/python-internal.h (gdbpy_start_recording,
15174 gdbpy_current_recording, gdpy_stop_recording,
15175 gdbpy_initialize_record): New export.
15176 * python/python.c (_initialize_python): Add gdbpy_initialize_record.
15177 (python_GdbMethods): Add gdbpy_start_recording,
15178 gdbpy_current_recording and gdbpy_stop_recording.
15179
151802017-02-14 Tim Wiederhake <tim.wiederhake@intel.com>
15181
15182 * record-btrace.c (record_btrace_record_method): New function.
15183 (init_record_btrace_ops): Initialize to_record_method.
15184 * record-full.c (record_full_record_method): New function.
15185 (init_record_full_ops, init_record_full_core_ops): Add
15186 record_full_record_method.
15187 * record.h (enum record_method): New enum.
15188 * target-debug.h (target_debug_print_enum_record_method: New define.
15189 * target-delegates.c: Regenerate.
15190 * target.c (target_record_method): New function.
15191 * target.h: Include record.h.
15192 (struct target_ops) <to_record_method>: New field.
15193 (target_record_method): New export.
15194
151952017-02-14 Tim Wiederhake <tim.wiederhake@intel.com>
15196
15197 * record.h (record_start, record_stop): New export.
15198 * record.c (record_start, record_stop): New function.
15199
152002017-02-14 Tim Wiederhake <tim.wiederhake@intel.com>
15201
15202 * btrace.c (btrace_fetch): Copy function call segments pointer
15203 into a vector.
15204 (btrace_clear): Clear the vector.
15205 (btrace_find_insn_by_number): Use binary search to find the correct
15206 function call segment.
15207 * btrace.h (brace_fun_p): New typedef.
15208 (struct btrace_thread_info) <functions>: New field.
15209
152102017-02-14 Tim Wiederhake <tim.wiederhake@intel.com>
15211
15212 * record-btrace.c (btrace_ui_out_decode_error): Move most of it ...
15213 * btrace.c (btrace_decode_error): ... here. New function.
15214 * btrace.h (btrace_decode_error): New export.
15215
152162017-02-14 Tim Wiederhake <tim.wiederhake@intel.com>
15217
15218 * btrace.c (ftrace_call_num_insn, btrace_insn_get_error): New function.
15219 (ftrace_new_function, btrace_insn_number, btrace_insn_cmp,
15220 btrace_find_insn_by_number): Remove special case for gaps.
15221 * btrace.h (btrace_insn_get_error): New export.
15222 (btrace_insn_number, btrace_find_insn_by_number): Adjust comment.
15223 * record-btrace.c (btrace_insn_history): Print number for gaps.
15224 (record_btrace_info, record_btrace_goto): Handle gaps.
15225
3f77c769
TT
152262017-02-14 Tom Tromey <tom@tromey.com>
15227
15228 PR python/13598:
15229 * python/python.c (gdbpy_before_prompt_hook): Emit before_prompt
15230 event.
15231 * python/py-evts.c (gdbpy_initialize_py_events): Add
15232 before_prompt registry.
15233 * python/py-events.h (events_object) <before_prompt>: New field.
15234
4c2c7ac6
MM
152352017-02-14 Markus Metzger <markus.t.metzger@intel.com>
15236
15237 * btrace.c (ftrace_new_switch): Preserve up link and flags.
15238
5cf30ebf
LM
152392017-02-13 Luis Machado <lgustavo@codesourcery.com>
15240
15241 * symfile (_initialize_symfile): Add usage text to the load command's
15242 help text.
15243
26a06916
SM
152442017-02-10 Simon Marchi <simon.marchi@ericsson.com>
15245
15246 * utils.c (defaulted_query): Don't query on secondary UIs.
15247
0b145e37
TT
152482017-02-10 Tom Tromey <tom@tromey.com>
15249
15250 * rust-lang.c (rust_get_disr_info): Remove unused variable.
15251
2d8365c4
TT
152522017-02-10 Tom Tromey <tom@tromey.com>
15253
15254 * python/py-value.c (valpy_richcompare_throw): Remove unnecessary
15255 "cleanup" local.
15256 * python/py-type.c (typy_legacy_template_argument): Remove
15257 unnecessary "cleanup" local.
15258
2bb8f231
TT
152592017-02-10 Tom Tromey <tom@tromey.com>
15260
15261 * python/python.c (do_start_initialization): New function, from
15262 _initialize_python.
15263 (_initialize_python): Call do_start_initialization.
15264 * python/py-linetable.c (ltpy_iternext): Use explicit returns, not
15265 goto.
15266
1bdfaf42
TT
152672017-02-10 Tom Tromey <tom@tromey.com>
15268
15269 * python/py-prettyprint.c (pretty_print_one_value): Use
15270 gdbpy_ref.
15271
88b6faea
TT
152722017-02-10 Tom Tromey <tom@tromey.com>
15273
15274 * python/py-cmd.c (cmdpy_destroyer): Use gdbpy_ref.
15275 * python/py-breakpoint.c (gdbpy_breakpoint_deleted): Use
15276 gdbpy_ref.
15277 * python/py-type.c (field_new): Use gdbpy_ref.
15278 * python/py-symtab.c (symtab_and_line_to_sal_object): Use
15279 gdbpy_ref.
15280 * python/py-progspace.c (pspy_new): Use gdbpy_ref.
15281 (py_free_pspace): Likewise.
15282 (pspace_to_pspace_object): Likewise.
15283 * python/py-objfile.c (objfpy_new): Use gdbpy_ref.
15284 (py_free_objfile): Likewise.
15285 (objfile_to_objfile_object): Likewise.
15286 * python/py-inferior.c (delete_thread_object): Use
15287 gdbpy_ref.
15288 (infpy_read_memory): Likewise.
15289 (py_free_inferior): Likewise.
15290 * python/py-evtregistry.c (create_eventregistry_object): Use
15291 gdbpy_ref.
15292 * python/py-event.c (create_event_object): Use gdbpy_ref.
15293
7780f186
TT
152942017-02-10 Tom Tromey <tom@tromey.com>
15295
15296 * python/py-ref.h (gdbpy_ref_policy): Now a template.
15297 (gdbpy_ref): Now a template; allow subclasses of PyObject to be
15298 used.
15299 * python/py-arch.c, python/py-bpevent.c, python/py-breakpoint.c,
15300 python/py-cmd.c, python/py-continueevent.c, python/py-event.c,
15301 python/py-exitedevent.c, python/py-finishbreakpoint.c,
15302 python/py-framefilter.c, python/py-function.c,
15303 python/py-inferior.c, python/py-infevents.c,
15304 python/py-linetable.c, python/py-newobjfileevent.c,
15305 python/py-param.c, python/py-prettyprint.c, python/py-ref.h,
15306 python/py-signalevent.c, python/py-stopevent.c,
15307 python/py-symbol.c, python/py-threadevent.c, python/py-type.c,
15308 python/py-unwind.c, python/py-utils.c, python/py-value.c,
15309 python/py-varobj.c, python/py-xmethods.c, python/python.c,
15310 varobj.c: Change gdbpy_ref to gdbpy_ref<>.
15311
d4b0bb18
TT
153122017-02-10 Tom Tromey <tom@tromey.com>
15313
15314 * ui-out.h (ui_out_emit_type): New class.
15315 (ui_out_emit_tuple, ui_out_emit_list): New typedefs.
15316 * python/py-framefilter.c (py_print_single_arg): Use gdb::optional
15317 and ui_out_emit_tuple.
15318 (enumerate_locals): Likewise.
15319 (py_mi_print_variables, py_print_locals, py_print_args): Use
15320 ui_out_emit_list.
15321 (py_print_frame): Use gdb::optional, ui_out_emit_tuple,
15322 ui_out_emit_list.
15323 * common/gdb_optional.h: New file.
15324
f67f945c
MG
153252017-02-10 Martin Galvan <martingalvan@sourceware.org>
15326
15327 * MAINTAINERS (Write After Approval): Update my e-mail address.
15328
18da0c51
MG
153292017-02-10 Martin Galvan <martingalvan@sourceware.org>
15330
15331 PR gdb/21122
15332 * breakpoint.c (_initialize_breakpoint): Update the help description
15333 of the 'commands' command to indicate that it takes a list argument.
15334
62c14536
SM
153352017-02-09 Simon Marchi <simon.marchi@ericsson.com>
15336
15337 * interps.c (current_interp_set_logging): Remove "return".
15338
ff6fa247
GB
153392017-02-09 Gary Benson <gbenson@redhat.com>
15340
15341 * symtab.c (add_symtab_completions): Prevent NULL pointer
15342 dereference.
15343
a474bd8e
PA
153442017-02-08 Pedro Alves <palves@redhat.com>
15345
15346 * interps.c (interp::interp): Remove reference to quiet_p.
15347 (interp_set): Make static. Remove dead "Switching to" output
15348 code.
15349 (interp_quiet_p, interp_set_quiet): Delete.
15350 (interpreter_exec_cmd): Don't set the interpreter quiet.
15351 * interps.h (interp_quiet_p): Make static.
15352 (class interp) <quiet_p>: Remove field
15353
3d7b173c
JG
153542017-02-08 Jerome Guitton <guitton@adacore.com>
15355
604c4576
JG
15356 * cli/cli-decode.c (find_command_name_length): Make it extern.
15357 * cli/cli-decode.h (find_command_name_length): Declare.
15358 * cli/cli-script.c (command_name_equals, line_first_arg):
15359 New functions.
15360 (process_next_line): Use cli-decode to parse command names.
15361 (build_command_line): Make args a constant pointer.
15362
153632017-02-08 Jerome Guitton <guitton@adacore.com>
6dbb839a 15364
3d7b173c
JG
15365 * cli-decode.c (lookup_cmd_1, lookup_cmd_composition):
15366 Remove case-insensitive search.
15367
1291063d
JM
153682017-02-07 Jose E. Marchesi <jose.marchesi@oracle.com>
15369
15370 * sparc-tdep.c (sparc32_gdbarch_init): Do not place a + operator
15371 at the end of the line. Avoids an ARI warning.
15372
20b477a7
LM
153732017-02-06 Luis Machado <lgustavo@codesourcery.com>
15374
15375 * NEWS: Mention support for record/replay of Intel 64 rdrand and
15376 rdseed instructions.
15377 i386-tdep.c (i386_process_record): Handle Intel 64 rdrand and rseed.
15378
3f7b46f2
IR
153792017-02-06 Ivo Raisr <ivo.raisr@oracle.com>
15380
15381 PR tdep/20936
15382 Provide and use sparc32 and sparc64 target description XML files.
15383 * features/sparc/sparc32-cp0.xml, features/sparc/sparc32-cpu.xml,
15384 features/sparc/sparc32-fpu.xml: New files for sparc 32-bit.
15385 * features/sparc/sparc64-cp0.xml, features/sparc/sparc64-cpu.xml,
15386 features/sparc/sparc64-fpu.xml: New files for sparc 64-bit.
15387 * features/sparc/sparc32-solaris.xml: New file.
15388 * features/sparc/sparc64-solaris.xml: New file.
15389 * features/sparc/sparc32-solaris.c: Generated.
15390 * features/sparc/sparc64-solaris.c: Generated.
15391 * sparc-tdep.h: Account for differences in target descriptions.
15392 * sparc-tdep.c (sparc32_register_name): Use target provided registers.
15393 (sparc32_register_type): Use target provided registers.
15394 (validate_tdesc_registers): New function.
15395 (sparc32_gdbarch_init): Use tdesc_has_registers.
15396 Set pseudoregister functions.
15397 * sparc64-tdep.c (sparc64_register_name): Use target provided registers.
15398 (sparc64_register_type): Use target provided registers.
15399 (sparc64_init_abi): Set pseudoregister functions.
15400
f0fd41c1
TT
154012017-02-03 Tom Tromey <tom@tromey.com>
15402
15403 PR rust/21097:
15404 * rust-lang.c (rust_print_type) <TYPE_CODE_UNION>: Handle enums
15405 with a single member.
15406
d6f9b0fb
PA
154072017-02-03 Pedro Alves <palves@redhat.com>
15408
15409 * cli/cli-interp.c (cli_interp_base::cli_interp_base)
15410 (cli_interp_base::~cli_interp_base): New.
15411 (cli_interp): New struct.
15412 (as_cli_interp): Cast the interp itself to cli_interp.
15413 (cli_interpreter_pre_command_loop): Rename to ...
15414 (cli_interp_base::pre_command_loop): ... this. Remove 'self'
15415 parameter.
15416 (cli_interpreter_init): Rename to ...
15417 (cli_interp::init): ... this. Remove 'self' parameter. Use
15418 boolean. Make extern.
15419 (cli_interpreter_resume): Rename to ...
15420 (cli_interp::resume): ... this. Remove 'data' parameter. Make
15421 extern.
15422 (cli_interpreter_suspend): Rename to ...
15423 (cli_interp::suspend): ... this. Remove 'data' parameter. Make
15424 extern.
15425 (cli_interpreter_exec): Rename to ...
15426 (cli_interp::exec): ... this. Remove 'data' parameter. Make
15427 extern.
15428 (cli_interpreter_supports_command_editing): Rename to ...
15429 (cli_interp_base::supports_command_editing): ... this. Remove
15430 'interp' parameter. Make extern.
15431 (cli_ui_out): Rename to ...
15432 (cli_interp::interp_ui_out): ... this. Remove 'interp' parameter.
15433 Make extern.
15434 (cli_set_logging): Rename to ...
15435 (cli_interp_base::set_logging): ... this. Remove 'interp'
15436 parameter. Make extern.
15437 (cli_interp_procs): Delete.
15438 (cli_interp_factory): Adjust to use "new".
15439 * cli/cli-interp.h: Include "interps.h".
15440 (struct cli_interp_base): New struct.
15441 * interps.c (struct interp): Delete. Fields moved to interps.h.
15442 (interp_new): Delete.
15443 (interp::interp, interp::~interp): New.
15444 (interp_set): Use bool, and return void. Assume the interpreter
15445 has suspend, init and resume methods, and that the all return
15446 void.
15447 (set_top_level_interpreter): interp_set returns void.
15448 (interp_ui_out): Adapt.
15449 (current_interp_set_logging): Adapt.
15450 (interp_data): Delete.
15451 (interp_pre_command_loop, interp_supports_command_editing): Adapt.
15452 (interp_exec): Adapt.
15453 (top_level_interpreter_data): Delete.
15454 * interps.h (interp_init_ftype, interp_resume_ftype)
15455 (interp_suspend_ftype, interp_exec_ftype)
15456 (interp_pre_command_loop_ftype, interp_ui_out_ftype): Delete.
15457 (class interp): New.
15458 (interp_new): Delete.
15459 (interp_set): Now returns void. Use bool.
15460 (interp_data, top_level_interpreter_data): Delete.
15461 * mi/mi-common.h: Include interps.h.
15462 (class mi_interp): Inherit from interp. Define a ctor. Declare
15463 init, resume, suspect, exec, interp_ui_out, set_logging and
15464 pre_command_loop methods.
15465 * mi/mi-interp.c (as_mi_interp): Cast the interp itself.
15466 (mi_interpreter_init): Rename to ...
15467 (mi_interp::init): ... this. Remove the 'interp' parameter, use
15468 bool, return void and make extern. Adjust.
15469 (mi_interpreter_resume): ... Rename to ...
15470 (mi_interp::resume): ... this. Remove the 'data' parameter,
15471 return void and make extern. Adjust.
15472 (mi_interpreter_suspend): ... Rename to ...
15473 (mi_interp::suspend): ... this. Remove the 'data' parameter,
15474 return void and make extern. Adjust.
15475 (mi_interpreter_exec): ... Rename to ...
15476 (mi_interp::exec): ... this. Remove the 'data' parameter and make
15477 extern. Adjust.
15478 (mi_interpreter_pre_command_loop): ... Rename to ...
15479 (mi_interp::pre_command_loop): ... this. Remove the 'self'
15480 parameter and make extern.
15481 (mi_on_normal_stop_1): Adjust.
15482 (mi_ui_out): Rename to ...
15483 (mi_interp::interp_ui_out): ... this. Remove the 'interp'
15484 parameter and make extern. Adjust.
15485 (mi_set_logging): Rename to ...
15486 (mi_interp::set_logging): ... this. Remove the 'interp'
15487 parameter and make extern. Adjust.
15488 (mi_interp_procs): Delete.
15489 (mi_interp_factory): Adjust to use 'new'.
15490 * mi/mi-main.c (mi_cmd_gdb_exit, captured_mi_execute_command)
15491 (mi_print_exception, mi_execute_command, mi_load_progress):
15492 Adjust.
15493 * tui/tui-interp.c (tui_interp): New class.
15494 (as_tui_interp): Return a tui_interp pointer.
15495 (tui_on_normal_stop, tui_on_signal_received)
15496 (tui_on_end_stepping_range, tui_on_signal_exited, tui_on_exited)
15497 (tui_on_no_history, tui_on_user_selected_context_changed): Adjust
15498 to use interp::interp_ui_out.
15499 (tui_init): Rename to ...
15500 (tui_interp::init): ... this. Remove the 'self' parameter, use
15501 bool, return void and make extern. Adjust.
15502 (tui_resume): Rename to ...
15503 (tui_interp::resume): ... this. Remove the 'data' parameter,
15504 return void and make extern. Adjust.
15505 (tui_suspend): Rename to ...
15506 (tui_interp::suspend): ... this. Remove the 'data' parameter,
15507 return void and make extern. Adjust.
15508 (tui_ui_out): Rename to ...
15509 (tui_interp::interp_ui_out): ... this. Remove the 'self'
15510 parameter, and make extern. Adjust.
15511 (tui_exec): Rename to ...
15512 (tui_interp::exec): ... this. Remove the 'data' parameter and
15513 make extern.
15514 (tui_interp_procs): Delete.
15515 (tui_interp_factory): Use "new".
15516
65c40c95
TT
155172017-02-02 Tom Tromey <tom@tromey.com>
15518
15519 * rust-exp.y (ends_raw_string, space_then_number)
15520 (rust_identifier_start_p): Return bool.
15521 * rust-lang.c (rust_tuple_type_p, rust_underscore_fields)
15522 (rust_tuple_struct_type_p, rust_tuple_variant_type_p)
15523 (rust_slice_type_p, rust_range_type_p, rust_u8_type_p)
15524 (rust_chartype_p): Return bool.
15525 (val_print_struct, rust_print_struct_def, rust_print_type):
15526 Update.
15527 * rust-lang.h (rust_tuple_type_p, rust_tuple_struct_type_p):
15528 Return bool.
15529
b50f188d
TT
155302017-02-02 Tom Tromey <tom@tromey.com>
15531
15532 * rust-lang.c: Reindent.
15533
03c85b11
TT
155342017-02-02 Tom Tromey <tom@tromey.com>
15535
15536 * rust-lang.h (rust_crate_for_block): Update.
15537 * rust-lang.c (rust_crate_for_block): Return std::string.
15538 (rust_get_disr_info): Use std:;string, not
15539 gdb::unique_xmalloc_ptr.
15540 * rust-exp.y (crate_name): Update.
15541
9b6da501
PA
155422017-02-02 Pedro Alves <palves@redhat.com>
15543
15544 * disasm-selftests.c (print_one_insn_test): Move the "verbose"
15545 field out of gdb_disassembler_test and make it static.
15546
ec4cb20b
PA
155472017-02-02 Pedro Alves <palves@redhat.com>
15548
15549 * mi/mi-common.h (struct mi_interp): Delete the mi2_interp,
15550 mi1_interp and mi_interp fields.
15551
5be5dbf0
PA
155522017-02-02 Pedro Alves <palves@redhat.com>
15553
616268b6
PA
15554 * cli/cli-interp.c (struct saved_output_files, saved_output):
15555 Moved from cli/cli-logging.c.
15556 (cli_set_logging): New function.
15557 (cli_interp_procs): Install cli_set_logging.
15558 * cli/cli-interp.h (make_logging_output, cli_set_logging):
15559 Declare.
15560 * cli/cli-logging.c (struct saved_output_files, saved_output):
15561 Moved to cli/cli-interp.c.
15562 (pop_output_files): Don't save outputs here.
15563 (make_logging_output): New function.
15564 (handle_redirections): Don't build tee nor save previous outputs
15565 here.
15566 * interps.c (current_interp_set_logging): Change prototype.
15567 Assume there's always a set_logging_proc method installed.
15568 * interps.h (interp_set_logging_ftype): Change prototype.
15569 (current_interp_set_logging): Change prototype and adjust comment.
15570 * mi/mi-interp.c (mi_set_logging): Change protototype. Adjust to
15571 use make_logging_output.
15572 * tui/tui-interp.c (tui_interp_procs): Install cli_set_logging.
155732017-02-02 Pedro Alves <palves@redhat.com>
15574
5be5dbf0
PA
15575 * cli/cli-logging.c (maybe_warn_already_logging): New factored out
15576 from ...
15577 (set_logging_overwrite): ... here.
15578 (logging_no_redirect_file): Delete.
15579 (set_logging_redirect): Don't handle redirection on the fly.
15580 Instead warn that "logging off" / "logging on" is necessary.
15581 (pop_output_files): Delete references to logging_no_redirect_file.
15582 (show_logging_command): Always speak in terms of what will happen
15583 once logging is reenabled.
15584
c99cc448
PA
155852017-02-02 Pedro Alves <palves@redhat.com>
15586
15587 * disasm.h (gdb_pretty_print_disassembler): Tweak intro comment.
15588
8b172ce7
PA
155892017-02-02 Pedro Alves <palves@redhat.com>
15590
15591 * disasm.c (gdb_pretty_print_insn): Rename to ...
15592 (gdb_pretty_print_disassembler::pretty_print_insn): ... this.
15593 Remove gdbarch parameter. Adapt to clear the object's buffers
15594 instead of allocating new buffers, and to print using the object's
15595 gdb_disassembler instead of calling gdb_print_insn.
15596 (dump_insns): Use gdb_pretty_print_disassembler.
15597 * disasm.h (gdb_pretty_print_insn): Delete declaration.
15598 (gdb_pretty_print_disassembler): New class.
15599 * record-btrace.c (btrace_insn_history): Use
15600 gdb_pretty_print_disassembler.
15601
d7e74731
PA
156022017-02-02 Pedro Alves <palves@redhat.com>
15603
15604 * ada-lang.c (type_as_string): Use string_file.
15605 * ada-valprint.c (ada_print_floating): Use string_file.
15606 * ada-varobj.c (ada_varobj_scalar_image)
15607 (ada_varobj_get_value_image): Use string_file.
15608 * aix-thread.c (aix_thread_extra_thread_info): Use string_file.
15609 * arm-tdep.c (_initialize_arm_tdep): Use string_printf.
15610 * breakpoint.c (update_inserted_breakpoint_locations)
15611 (insert_breakpoint_locations, reattach_breakpoints)
15612 (print_breakpoint_location, print_one_detail_ranged_breakpoint)
15613 (print_it_watchpoint): Use string_file.
15614 (save_breakpoints): Use stdio_file.
15615 * c-exp.y (oper): Use string_file.
15616 * cli/cli-logging.c (set_logging_redirect): Use ui_file_up and
15617 tee_file.
15618 (pop_output_files): Use delete.
15619 (handle_redirections): Use stdio_file and tee_file.
15620 * cli/cli-setshow.c (do_show_command): Use string_file.
15621 * compile/compile-c-support.c (c_compute_program): Use
15622 string_file.
15623 * compile/compile-c-symbols.c (generate_vla_size): Take a
15624 'string_file &' instead of a 'ui_file *'.
15625 (generate_c_for_for_one_variable): Take a 'string_file &' instead
15626 of a 'ui_file *'. Use string_file.
15627 (generate_c_for_variable_locations): Take a 'string_file &'
15628 instead of a 'ui_file *'.
15629 * compile/compile-internal.h (generate_c_for_for_one_variable):
15630 Take a 'string_file &' instead of a 'ui_file *'.
15631 * compile/compile-loc2c.c (push, pushf, unary, binary)
15632 (print_label, pushf_register_address, pushf_register)
15633 (do_compile_dwarf_expr_to_c): Take a 'string_file &' instead of a
15634 'ui_file *'. Adjust.
15635 * compile/compile.c (compile_to_object): Use string_file.
15636 * compile/compile.h (compile_dwarf_expr_to_c)
15637 (compile_dwarf_bounds_to_c): Take a 'string_file &' instead of a
15638 'ui_file *'.
15639 * cp-support.c (inspect_type): Use string_file and obstack_copy0.
15640 (replace_typedefs_qualified_name): Use string_file and
15641 obstack_copy0.
15642 * disasm.c (gdb_pretty_print_insn): Use string_file.
15643 (gdb_disassembly): Adjust reference the null_stream global.
15644 (do_ui_file_delete): Delete.
15645 (gdb_insn_length): Use null_stream.
15646 * dummy-frame.c (maintenance_print_dummy_frames): Use stdio_file.
15647 * dwarf2loc.c (dwarf2_compile_property_to_c)
15648 (locexpr_generate_c_location, loclist_generate_c_location): Take a
15649 'string_file &' instead of a 'ui_file *'.
15650 * dwarf2loc.h (dwarf2_compile_property_to_c): Likewise.
15651 * dwarf2read.c (do_ui_file_peek_last): Delete.
15652 (dwarf2_compute_name): Use string_file.
15653 * event-top.c (gdb_setup_readline): Use stdio_file.
15654 * gdbarch.sh (verify_gdbarch): Use string_file.
15655 * gdbtypes.c (safe_parse_type): Use null_stream.
15656 * guile/scm-breakpoint.c (gdbscm_breakpoint_commands): Use
15657 string_file.
15658 * guile/scm-disasm.c (gdbscm_print_insn_from_port): Take a
15659 'string_file *' instead of a 'ui_file *'.
15660 (gdbscm_arch_disassemble): Use string_file.
15661 * guile/scm-frame.c (frscm_print_frame_smob): Use string_file.
15662 * guile/scm-ports.c (class ioscm_file_port): Now a class that
15663 inherits from ui_file.
15664 (ioscm_file_port_delete, ioscm_file_port_rewind)
15665 (ioscm_file_port_put): Delete.
15666 (ioscm_file_port_write): Rename to ...
15667 (ioscm_file_port::write): ... this. Remove file_port_magic
15668 checks.
15669 (ioscm_file_port_new): Delete.
15670 (ioscm_with_output_to_port_worker): Use ioscm_file_port and
15671 ui_file_up.
15672 * guile/scm-type.c (tyscm_type_name): Use string_file.
15673 * guile/scm-value.c (vlscm_print_value_smob, gdbscm_value_print):
15674 Use string_file.
15675 * infcmd.c (print_return_value_1): Use string_file.
15676 * infrun.c (print_target_wait_results): Use string_file.
15677 * language.c (add_language): Use string_file.
15678 * location.c (explicit_to_string_internal): Use string_file.
15679 * main.c (captured_main_1): Use null_file.
15680 * maint.c (maintenance_print_architecture): Use stdio_file.
15681 * mi/mi-cmd-stack.c (list_arg_or_local): Use string_file.
15682 * mi/mi-common.h (struct mi_interp) <out, err, log, targ,
15683 event_channel>: Change type to mi_console_file pointer.
15684 * mi/mi-console.c (mi_console_file_fputs, mi_console_file_flush)
15685 (mi_console_file_delete): Delete.
15686 (struct mi_console_file): Delete.
15687 (mi_console_file_magic): Delete.
15688 (mi_console_file_new): Delete.
15689 (mi_console_file::mi_console_file): New.
15690 (mi_console_file_delete): Delete.
15691 (mi_console_file_fputs): Delete.
15692 (mi_console_file::write): New.
15693 (mi_console_raw_packet): Delete.
15694 (mi_console_file::flush): New.
15695 (mi_console_file_flush): Delete.
15696 (mi_console_set_raw): Rename to ...
15697 (mi_console_file::set_raw): ... this.
15698 * mi/mi-console.h (class mi_console_file): New class.
15699 (mi_console_file_new, mi_console_set_raw): Delete.
15700 * mi/mi-interp.c (mi_interpreter_init): Use mi_console_file.
15701 (mi_set_logging): Use delete and tee_file. Adjust.
15702 * mi/mi-main.c (output_register): Use string_file.
15703 (mi_cmd_data_evaluate_expression): Use string_file.
15704 (mi_cmd_data_read_memory): Use string_file.
15705 (mi_cmd_execute, print_variable_or_computed): Use string_file.
15706 * mi/mi-out.c (mi_ui_out::main_stream): New.
15707 (mi_ui_out::rewind): Use main_stream and
15708 string_file.
15709 (mi_ui_out::put): Use main_stream and string_file.
15710 (mi_ui_out::mi_ui_out): Remove 'stream' parameter.
15711 Allocate a 'string_file' instead.
15712 (mi_out_new): Don't allocate a mem_fileopen stream here.
15713 * mi/mi-out.h (mi_ui_out::mi_ui_out): Remove 'stream' parameter.
15714 (mi_ui_out::main_stream): Declare method.
15715 * printcmd.c (eval_command): Use string_file.
15716 * psymtab.c (maintenance_print_psymbols): Use stdio_file.
15717 * python/py-arch.c (archpy_disassemble): Use string_file.
15718 * python/py-breakpoint.c (bppy_get_commands): Use string_file.
15719 * python/py-frame.c (frapy_str): Use string_file.
15720 * python/py-framefilter.c (py_print_type, py_print_single_arg):
15721 Use string_file.
15722 * python/py-type.c (typy_str): Use string_file.
15723 * python/py-unwind.c (unwind_infopy_str): Use string_file.
15724 * python/py-value.c (valpy_str): Use string_file.
15725 * record-btrace.c (btrace_insn_history): Use string_file.
15726 * regcache.c (regcache_print): Use stdio_file.
15727 * reggroups.c (maintenance_print_reggroups): Use stdio_file.
15728 * remote.c (escape_buffer): Use string_file.
15729 * rust-lang.c (rust_get_disr_info): Use string_file.
15730 * serial.c (serial_open_ops_1): Use stdio_file.
15731 (do_serial_close): Use delete.
15732 * stack.c (print_frame_arg): Use string_file.
15733 (print_frame_args): Remove local mem_fileopen stream, not used.
15734 (print_frame): Use string_file.
15735 * symmisc.c (maintenance_print_symbols): Use stdio_file.
15736 * symtab.h (struct symbol_computed_ops) <generate_c_location>:
15737 Take a 'string_file *' instead of a 'ui_file *'.
15738 * top.c (new_ui): Use stdio_file and stderr_file.
15739 (free_ui): Use delete.
15740 (execute_command_to_string): Use string_file.
15741 (quit_confirm): Use string_file.
15742 * tracepoint.c (collection_list::append_exp): Use string_file.
15743 * tui/tui-disasm.c (tui_disassemble): Use string_file.
15744 * tui/tui-file.c: Don't include "ui-file.h".
15745 (enum streamtype, struct tui_stream): Delete.
15746 (tui_file_new, tui_file_delete, tui_fileopen, tui_sfileopen)
15747 (tui_file_isatty, tui_file_rewind, tui_file_put): Delete.
15748 (tui_file::tui_file): New method.
15749 (tui_file_fputs): Delete.
15750 (tui_file_get_strbuf): Delete.
15751 (tui_file::puts): New method.
15752 (tui_file_adjust_strbuf): Delete.
15753 (tui_file_flush): Delete.
15754 (tui_file::flush): New method.
15755 * tui/tui-file.h: Tweak intro comment.
15756 Include ui-file.h.
15757 (tui_fileopen, tui_sfileopen, tui_file_get_strbuf)
15758 (tui_file_adjust_strbuf): Delete declarations.
15759 (class tui_file): New class.
15760 * tui/tui-io.c (tui_initialize_io): Use tui_file.
15761 * tui/tui-regs.c (tui_restore_gdbout): Use delete.
15762 (tui_register_format): Use string_stream.
15763 * tui/tui-stack.c (tui_make_status_line): Use string_file.
15764 (tui_get_function_from_frame): Use string_file.
15765 * typeprint.c (type_to_string): Use string_file.
15766 * ui-file.c (struct ui_file, ui_file_magic, ui_file_new): Delete.
15767 (null_stream): New global.
15768 (ui_file_delete): Delete.
15769 (ui_file::ui_file): New.
15770 (null_file_isatty): Delete.
15771 (ui_file::~ui_file): New.
15772 (null_file_rewind): Delete.
15773 (ui_file::printf): New.
15774 (null_file_put): Delete.
15775 (null_file_flush): Delete.
15776 (ui_file::putstr): New.
15777 (null_file_write): Delete.
15778 (ui_file::putstrn): New.
15779 (null_file_read): Delete.
15780 (ui_file::putc): New.
15781 (null_file_fputs): Delete.
15782 (null_file_write_async_safe): Delete.
15783 (ui_file::vprintf): New.
15784 (null_file_delete): Delete.
15785 (null_file::write): New.
15786 (null_file_fseek): Delete.
15787 (null_file::puts): New.
15788 (ui_file_data): Delete.
15789 (null_file::write_async_safe): New.
15790 (gdb_flush, ui_file_isatty): Adjust.
15791 (ui_file_put, ui_file_rewind): Delete.
15792 (ui_file_write): Adjust.
15793 (ui_file_write_for_put): Delete.
15794 (ui_file_write_async_safe, ui_file_read): Adjust.
15795 (ui_file_fseek): Delete.
15796 (fputs_unfiltered): Adjust.
15797 (set_ui_file_flush, set_ui_file_isatty, set_ui_file_rewind)
15798 (set_ui_file_put, set_ui_file_write, set_ui_file_write_async_safe)
15799 (set_ui_file_read, set_ui_file_fputs, set_ui_file_fseek)
15800 (set_ui_file_data): Delete.
15801 (string_file::~string_file, string_file::write)
15802 (struct accumulated_ui_file, do_ui_file_xstrdup, ui_file_xstrdup)
15803 (do_ui_file_as_string, ui_file_as_string): Delete.
15804 (do_ui_file_obsavestring, ui_file_obsavestring): Delete.
15805 (struct mem_file): Delete.
15806 (mem_file_new): Delete.
15807 (stdio_file::stdio_file): New.
15808 (mem_file_delete): Delete.
15809 (stdio_file::stdio_file): New.
15810 (mem_fileopen): Delete.
15811 (stdio_file::~stdio_file): New.
15812 (mem_file_rewind): Delete.
15813 (stdio_file::set_stream): New.
15814 (mem_file_put): Delete.
15815 (stdio_file::open): New.
15816 (mem_file_write): Delete.
15817 (stdio_file_magic, struct stdio_file): Delete.
15818 (stdio_file_new, stdio_file_delete, stdio_file_flush): Delete.
15819 (stdio_file::flush): New.
15820 (stdio_file_read): Rename to ...
15821 (stdio_file::read): ... this. Adjust.
15822 (stdio_file_write): Rename to ...
15823 (stdio_file::write): ... this. Adjust.
15824 (stdio_file_write_async_safe): Rename to ...
15825 (stdio_file::write_async_safe) ... this. Adjust.
15826 (stdio_file_fputs): Rename to ...
15827 (stdio_file::puts) ... this. Adjust.
15828 (stdio_file_isatty): Delete.
15829 (stdio_file_fseek): Delete.
15830 (stdio_file::isatty): New.
15831 (stderr_file_write): Rename to ...
15832 (stderr_file::write) ... this. Adjust.
15833 (stderr_file_fputs): Rename to ...
15834 (stderr_file::puts) ... this. Adjust.
15835 (stderr_fileopen, stdio_fileopen, gdb_fopen): Delete.
15836 (stderr_file::stderr_file): New.
15837 (tee_file_magic): Delete.
15838 (struct tee_file): Delete.
15839 (tee_file::tee_file): New.
15840 (tee_file_new): Delete.
15841 (tee_file::~tee_file): New.
15842 (tee_file_delete): Delete.
15843 (tee_file_flush): Rename to ...
15844 (tee_file::flush): ... this. Adjust.
15845 (tee_file_write): Rename to ...
15846 (tee_file::write): ... this. Adjust.
15847 (tee_file::write_async_safe): New.
15848 (tee_file_fputs): Rename to ...
15849 (tee_file::puts): ... this. Adjust.
15850 (tee_file_isatty): Rename to ...
15851 (tee_file::isatty): ... this. Adjust.
15852 * ui-file.h (struct obstack, struct ui_file): Don't
15853 forward-declare.
15854 (ui_file_new, ui_file_flush_ftype, set_ui_file_flush)
15855 (ui_file_write_ftype)
15856 (set_ui_file_write, ui_file_fputs_ftype, set_ui_file_fputs)
15857 (ui_file_write_async_safe_ftype, set_ui_file_write_async_safe)
15858 (ui_file_read_ftype, set_ui_file_read, ui_file_isatty_ftype)
15859 (set_ui_file_isatty, ui_file_rewind_ftype, set_ui_file_rewind)
15860 (ui_file_put_method_ftype, ui_file_put_ftype, set_ui_file_put)
15861 (ui_file_delete_ftype, set_ui_file_data, ui_file_fseek_ftype)
15862 (set_ui_file_fseek): Delete.
15863 (ui_file_data, ui_file_delete, ui_file_rewind)
15864 (struct ui_file): New.
15865 (ui_file_up): New.
15866 (class null_file): New.
15867 (null_stream): Declare.
15868 (ui_file_write_for_put, ui_file_put): Delete.
15869 (ui_file_xstrdup, ui_file_as_string, ui_file_obsavestring):
15870 Delete.
15871 (ui_file_fseek, mem_fileopen, stdio_fileopen, stderr_fileopen)
15872 (gdb_fopen, tee_file_new): Delete.
15873 (struct string_file): New.
15874 (struct stdio_file): New.
15875 (stdio_file_up): New.
15876 (struct stderr_file): New.
15877 (class tee_file): New.
15878 * ui-out.c (ui_out::field_stream): Take a 'string_file &' instead
15879 of a 'ui_file *'. Adjust.
15880 * ui-out.h (class ui_out) <field_stream>: Likewise.
15881 * utils.c (do_ui_file_delete, make_cleanup_ui_file_delete)
15882 (null_stream): Delete.
15883 (error_stream): Take a 'string_file &' instead of a 'ui_file *'.
15884 Adjust.
15885 * utils.h (struct ui_file): Delete forward declaration..
15886 (make_cleanup_ui_file_delete, null_stream): Delete declarations.
15887 (error_stream): Take a 'string_file &' instead of a
15888 'ui_file *'.
15889 * varobj.c (varobj_value_get_print_value): Use string_file.
15890 * xtensa-tdep.c (xtensa_verify_config): Use string_file.
15891 * gdbarch.c: Regenerate.
15892
187808b0
PA
158932017-02-02 Pedro Alves <palves@redhat.com>
15894
15895 * disasm.c (gdb_disassembler::pretty_print_insn): Rename to...
15896 (gdb_pretty_print_insn): ... this. Now a free function. Add back
15897 a 'gdbarch' parameter. Allocate a mem_fileopen stream here.
15898 Adjust to call gdb_print_insn instead of
15899 gdb_disassembler::print_insn.
15900 (dump_insns, do_mixed_source_and_assembly_deprecated)
15901 (do_mixed_source_and_assembly, do_assembly_only): Add back a
15902 'gdbarch' parameter. Remove gdb_disassembler parameter.
15903 (gdb_disassembly): Don't allocate a gdb_disassembler here.
15904 * disasm.h (gdb_disassembler::pretty_print_insn): Delete
15905 declaration.
15906 (gdb_pretty_print_insn): Re-add declaration.
15907 * record-btrace.c (btrace_insn_history): Don't allocate a
15908 gdb_disassembler here. Adjust to call gdb_pretty_print_insn.
15909
7a8eb317
SM
159102017-02-01 Simon Marchi <simon.marchi@polymtl.ca>
15911
15912 * disasm.h (gdb_disassembly): Remove file_string parameter.
15913 * disasm.c (gdb_disassembly): Likewise.
15914 * cli/cli-cmds.c (print_disassembly): Adapt.
15915 * mi/mi-cmd-disas.c (mi_cmd_disassemble): Likewise.
15916 * stack.c (do_gdb_disassembly): Likewise.
15917
7346ef59
AA
159182017-02-01 Andreas Arnez <arnez@linux.vnet.ibm.com>
15919
15920 * dwarf2loc.c (dwarf2_evaluate_loc_desc_full): For
15921 DWARF_VALUE_LITERAL, no longer ignore the offset on big-endian
15922 targets. And if the implicit value is longer than needed, extract
15923 the first bytes instead of the "least significant" ones.
15924
cd4007e4
MM
159252017-02-01 Markus Metzger <markus.t.metzger@intel.com>
15926
15927 * btrace.c (btrace_enable): Do not call btrace_add_pc for
15928 BTRACE_FORMAT_PT or if can_access_registers_ptid returns false.
15929 (btrace_fetch): Assert can_access_registers_ptid.
15930 * record-btrace.c (require_btrace_thread, record_btrace_info): Call
15931 validate_registers_access.
15932
cf77c34e
MM
159332017-02-01 Markus Metzger <markus.t.metzger@intel.com>
15934
15935 * gdbthread.h (can_access_registers_ptid): New.
15936 * thread.c (can_access_registers_ptid): New.
15937
be85ce7d
PA
159382017-02-01 Pedro Alves <palves@redhat.com>
15939
15940 * i386-tdep.c (i386_fast_tracepoint_valid_at): Use gdb_insn_length.
15941
29b0b251
PA
159422017-01-31 Pedro Alves <palves@redhat.com>
15943
15944 * mi/mi-interp.c (mi_breakpoint_created, mi_breakpoint_modified):
15945 Fix typos.
15946
289b5b24
PA
159472017-01-31 Pedro Alves <palves@redhat.com>
15948
15949 * stack.c (print_frame_args): Remove local mem_fileopen stream,
15950 not used.
15951
b47413b4
PA
159522017-01-31 Pedro Alves <palves@redhat.com>
15953
15954 * varobj.c (varobj_value_get_print_value): Remove xstrdup call.
15955
60adb36c
PA
159562017-01-31 Pedro Alves <palves@redhat.com>
15957
15958 * common/scoped_restore.h
15959 (scoped_restore_tmpl::scoped_restore_tmpl): Template on T2, and
15960 change the value's parameter type to T2.
15961 (make_scoped_restore): Likewise.
15962
2735833d
WT
159632017-01-27 Walfred Tedeschi <walfred.tedeschi@intel.com>
15964 Richard Henderson <rth@redhat.com>
15965
15966 * amd64-linux-nat.c (PTRACE_ARCH_PRCTL): New define.
15967 (amd64_linux_fetch_inferior_registers): Add case to fetch FS_BASE
15968 GS_BASE for older kernels.
15969 (amd64_linux_store_inferior_registers): Add case to store FS_BASE
15970 GS_BASE for older kernels.
15971 * amd64-linux-tdep.c (amd64_linux_gregset_reg_offset): Add FS_BASE
15972 and GS_BASE to the offset table.
15973 (amd64_linux_register_reggroup_p): Add FS_BASE and GS_BASE to the
15974 system register group.
15975 * amd64-nat.c (amd64_native_gregset_reg_offset): Implements case
15976 for older kernels.
15977 * amd64-tdep.c (amd64_init_abi): Add segment registers for the
15978 amd64 ABI.
15979 * amd64-tdep.h (amd64_regnum): Add AMD64_FSBASE_REGNUM and
15980 AMD64_GSBASE_REGNUM.
15981 (AMD64_NUM_REGS): Set to AMD64_GSBASE_REGNUM + 1.
15982 * features/Makefile (amd64-linux.dat, amd64-avx-linux.dat)
15983 (amd64-mpx-linux.dat, amd64-avx512-linux.dat, x32-linux.dat)
15984 (x32-avx-linux.dat, x32-avx512-linux.dat): Add
15985 i386/64bit-segments.xml in those rules.
15986 * features/i386/64bit-segments.xml: New file.
15987 * features/i386/amd64-avx-mpx-linux.xml: Add 64bit-segments.xml.
15988 * features/i386/amd64-avx-linux.xml: Add 64bit-segments.xml.
15989 * features/i386/amd64-avx512-linux.xml: Add 64bit-segments.xml.
15990 * features/i386/amd64-mpx-linux.xml: Add 64bit-segments.xml.
15991 * features/i386/x32-avx512-linux.xml: Add 64bit-segments.xml.
15992 * features/i386/x32-avx-linux.xml: Add 64bit-segments.xml.
15993 * features/i386/amd64-linux.xml: Add 64bit-segments.xml.
15994 * features/i386/amd64-avx-linux.c: Regenerated.
15995 * features/i386/amd64-avx-mpx-linux.c: Regenerated.
15996 * features/i386/amd64-avx-mpx.c: Regenerated.
15997 * features/i386/amd64-avx512-linux.c: Regenerated.
15998 * features/i386/amd64-linux.c: Regenerated.
15999 * features/i386/amd64-mpx-linux.c: Regenerated.
16000 * features/i386/i386-avx-mpx-linux.c: Regenerated.
16001 * features/i386/i386-avx-mpx.c: Regenerated.
16002 * features/i386/x32-avx-linux.c: Regenerated.
16003 * features/i386/x32-avx512-linux.c: Regenerated.
16004 * regformats/i386/amd64-avx-linux.dat: Regenerated.
16005 * regformats/i386/amd64-avx-mpx-linux.dat: Regenerated.
16006 * regformats/i386/amd64-avx512-linux.dat: Regenerated.
16007 * regformats/i386/amd64-linux.dat: Regenerated.
16008 * regformats/i386/amd64-mpx-linux.dat: Regenerated.
16009 * regformats/i386/x32-avx-linux.dat: Regenerated.
16010 * regformats/i386/x32-avx512-linux.dat: Regenerated.
16011 * regformats/i386/x32-linux.dat: Regenerated.
16012
8884e97e
WT
160132017-01-27 Walfred Tedeschi <walfred.tedeschi@intel.com>
16014
16015 * amd64-linux-tdep.h (AMD64_LINUX_ORIG_RAX_REGNUM):
16016 Set to AMD64_NUM_REGS.
16017
7005d26a
WT
160182017-01-27 Walfred Tedeschi <walfred.tedeschi@intel.com>
16019
16020 * amd64-nat.c (amd64_native_gregset_reg_offset): Simplify logic
16021 that checks validity of a register number.
16022
4bd2e1b2
KC
160232017-01-27 Kees Cook <keescook@google.com>
16024
16025 * gdb/arm-linux-nat.c (arm_linux_fetch_inferior_registers): Call
16026 fetch_fpregs if target has fpa registers.
16027 (arm_linux_store_inferior_registers): Call store_fpregs if target
16028 has fpa registers.
16029
7cf1de6c
AA
160302017-01-26 Andreas Arnez <arnez@linux.vnet.ibm.com>
16031
16032 * cris-tdep.c (cris_gdbarch_init): Remove check for
16033 info.byte_order and force it to BFD_ENDIAN_LITTLE.
16034
874a1c8c
AT
160352017-01-26 Antoine Tremblay <antoine.tremblay@ericsson.com>
16036
16037 * corelow.c (get_core_register_section): Check for regset
16038 existence before checking for REGSET_VARIABLE_SIZE.
16039
d8b49cf0
YQ
160402017-01-26 Yao Qi <yao.qi@linaro.org>
16041 Pedro Alves <palves@redhat.com>
16042
16043 PR gdb/20939
16044 * disasm.c (gdb_disassembler::dis_asm_memory_error): Don't
16045 call memory_error, save memaddr instead.
16046 (gdb_disassembler::print_insn): If gdbarch_print_insn returns
16047 negative, cal memory_error.
16048 * disasm.h (gdb_disassembler) <m_err_memaddr>: New field.
16049
658ca58c
YQ
160502017-01-26 Yao Qi <yao.qi@linaro.org>
16051
16052 * disasm-selftests.c (memory_error_test): New function.
16053 (_initialize_disasm_selftests): Register memory_error_test.
16054
79843d45
YQ
160552017-01-26 Yao Qi <yao.qi@linaro.org>
16056
16057 * Makefile.in (SFILES): Add disasm-selftests.c and
16058 selftest-arch.c.
16059 (COMMON_OBS): Add disasm-selftests.o and selftest-arch.o.
16060 * disasm-selftests.c: New file.
16061 * selftest-arch.c: New file.
16062 * selftest-arch.h: New file.
16063
8cafda32
YQ
160642017-01-26 Yao Qi <yao.qi@linaro.org>
16065
16066 * mep-tdep.c (mep_gdb_print_insn): Set info->arch
16067 to bfd_arch_mep. Don't return 0 if section is not
16068 found. Call print_insn_mep.
16069
e47ad6c0
YQ
160702017-01-26 Pedro Alves <palves@redhat.com>
16071 Yao Qi <yao.qi@linaro.org>
16072
16073 * arm-tdep.c: Include "disasm.h".
16074 (gdb_print_insn_arm): Update code to get gdbarch.
16075 * disasm.c (dis_asm_read_memory): Change it to
16076 gdb_disassembler::dis_asm_read_memory.
16077 (dis_asm_memory_error): Likewise.
16078 (dis_asm_print_address): Likewise.
16079 (gdb_pretty_print_insn): Change it to
16080 gdb_disassembler::pretty_print_insn.
16081 (dump_insns): Add one argument gdb_disassemlber. All
16082 callers updated.
16083 (do_mixed_source_and_assembly_deprecated): Likewise.
16084 (do_mixed_source_and_assembly): Likewise.
16085 (do_assembly_only): Likewise.
16086 (gdb_disassembler::gdb_disassembler): New.
16087 (gdb_disassembler::print_insn): New.
16088 * disasm.h (class gdb_disassembler): New.
16089 (gdb_pretty_print_insn): Remove declaration.
16090 (gdb_disassemble_info): Likewise.
16091 * guile/scm-disasm.c (class gdbscm_disassembler): New.
16092 (gdbscm_disasm_read_memory_worker): Update.
16093 (gdbscm_disasm_read_memory): Update.
16094 (gdbscm_disasm_memory_error): Remove.
16095 (gdbscm_disasm_print_address): Remove.
16096 (gdbscm_disassembler::gdbscm_disassembler): New.
16097 (gdbscm_print_insn_from_port): Update.
16098 * mips-tdep.c: Include disasm.h.
16099 (gdb_print_insn_mips): Update code to get gdbarch.
16100 * record-btrace.c (btrace_insn_history): Update.
16101 * spu-tdep.c: Include disasm.h.
16102 (struct spu_dis_asm_data): Remove.
16103 (struct spu_dis_asm_info): New.
16104 (spu_dis_asm_print_address): Use spu_dis_asm_info to get
16105 SPU id.
16106 (gdb_print_insn_spu): Cast disassemble_info to
16107 spu_dis_asm_info.
16108
80d75874
YQ
161092017-01-26 Yao Qi <yao.qi@linaro.org>
16110
16111 * disasm.c (do_ui_file_delete): Delete.
16112 (gdb_insn_length): Move code creating stream to ...
16113 * utils.c (null_stream): ... here. New function.
16114 * utils.h (null_stream): Declare.
16115
60685cd0
SM
161162017-01-23 Simon Marchi <simon.marchi@polymtl.ca>
16117
16118 * python/py-inferior.c (find_thread_object): Return directly
16119 from the loop. Remove "found" variable.
16120
eb1cdb62
JB
161212017-01-21 Joel Brobecker <brobecker@adacore.com>
16122
16123 GDB 7.12.1 released.
16124
b1ce6568
SM
161252017-01-20 Simon Marchi <simon.marchi@ericsson.com>
16126
16127 * python/py-function.c (fnpy_call): Reorder declarations to have
16128 the gdbpy_enter object declared first.
16129 * python/py-xmethods.c (gdbpy_get_xmethod_arg_types): Likewise.
16130
6f8b0407
SM
161312017-01-20 Simon Marchi <simon.marchi@ericsson.com>
16132
fec93fb1 16133 PR python/21068
6f8b0407
SM
16134 * python/python-internal.h (PyMem_RawMalloc): Define for
16135 Python < 3.4.
16136 * python/py-gdb-readline.c (gdbpy_readline_wrapper): Use
16137 PyMem_RawMalloc instead of PyMem_Malloc.
16138
78cbbba8
LM
161392017-01-20 Mike Wrighton <mike_wrighton@codesourcery.com>
16140 Luis Machado <lgustavo@codesourcery.com>
16141
16142 * NEWS (New commands): Mention flash-erase.
16143 (New MI commands): Mention target-flash-erase.
16144 * mi/mi-cmds.c (mi_cmd_target_flash_erase): Add target-flash-erase MI
16145 command.
16146 * mi/mi-cmds.h (mi_cmd_target_flash_erase): New declaration.
16147 * mi/mi-main.c (mi_cmd_target_flash_erase): New function.
16148 * target.c (flash_erase_command): New function.
16149 (initialize_targets): Add new flash-erase command.
16150 * target.h (flash_erase_command): New declaration.
16151
2132fe85
JB
161522017-01-20 Joel Brobecker <brobecker@adacore.com>
16153
16154 * nat/linux-ptrace.c: Only include <sys/procfs.h> if
16155 HAVE_SYS_PROCFS_H is defined.
16156
d1dff226
AH
161572017-01-18 Alan Hayward <alan.hayward@arm.com>
16158
16159 * remote.c (struct cached_reg): Change data into a pointer.
16160 * (stop_reply_dtr): Free data pointers before deleting vector.
16161 (process_stop_reply): Likewise.
16162 (remote_parse_stop_reply): Allocate space for data
16163
9890e433
AH
161642017-01-18 Alan Hayward <alan.hayward@arm.com>
16165
16166 * amd64-tdep.c (amd64_pseudo_register_read_value): remove
16167 MAX_REGISTER_SIZE.
16168 (amd64_pseudo_register_read_value): Likewise.
16169 * remote.c (fetch_register_using_p): Remove MAX_REGISTER_SIZE.
16170 (store_register_using_P): Likewise.
16171 * regcache.c (regcache_xfer_part): Likewise.
16172
7a36499a
IR
161732017-01-16 Ivo Raisr <ivo.raisr@oracle.com>
16174
16175 Split real and pseudo registers.
16176 * sparc-tdep.h (SPARC_CORE_REGISTERS): New macro.
16177 (sparc32_pseudo_regnum): New enum.
16178 * sparc64-tdep.h (sparc64_pseudo_regnum): New enum.
16179 * sparc-tdep.c (SPARC32_FPU_REGISTERS): New macro.
16180 (SPARC32_CP0_REGISTERS): New macro.
16181 (sparc32_pseudo_register_name): New function.
16182 (sparc32_register_name): Use sparc32_pseudo_register_name.
16183 (sparc32_pseudo_register_type): New function.
16184 (sparc32_register_type): Use sparc32_pseudo_register_type.
16185 (sparc32_pseudo_register_read, sparc32_pseudo_register_write): Handle
16186 pseudo register numbers.
16187 * sparc64-tdep.c SPARC64_FPU_REGISTERS): New macro.
16188 (SPARC64_CP0_REGISTERS): New macro.
16189 (sparc64_pseudo_register_name): New function.
16190 (sparc64_register_name): Use sparc64_pseudo_register_name.
16191 (sparc64_pseudo_register_type): New function.
16192 (sparc64_register_type): Use sparc64_pseudo_register_type.
16193 (sparc64_pseudo_register_read, sparc64_pseudo_register_write): Handle
16194 pseudo register numbers.
16195 (sparc64_store_floating_fields, sparc64_extract_floating_fields,
16196 sparc64_store_arguments): Handle pseudo register numbers.
16197
6f8976bf
YQ
161982017-01-13 Yao Qi <yao.qi@linaro.org>
16199
16200 * remote.c (REMOTE_DEBUG_MAX_CHAR): New macro.
16201 (putpkt_binary): Print only REMOTE_DEBUG_MAX_CHAR chars in debug
16202 output.
16203 (getpkt_or_notif_sane_1): Likewise.
16204
e4241ace
YQ
162052017-01-13 Yao Qi <yao.qi@linaro.org>
16206
16207 * Makefile.in (checker-headers): Use CXX and CXX_DIALET instead
16208 of CC. Pass "-x c++-header" instead of "-x c".
16209
3015c064
SM
162102017-01-12 Simon Marchi <simon.marchi@ericsson.com>
16211
16212 * remote.c (remote_can_async_p): Update comment.
16213
fde1b17d
SM
162142017-01-12 Simon Marchi <simon.marchi@ericsson.com>
16215
16216 * linux-nat.c (linux_nat_can_async_p): Update comment.
16217
ca1ca08b
SM
162182017-01-12 Simon Marchi <simon.marchi@ericsson.com>
16219
16220 * serial.c (serial_open): Forget about "pc" and "lpt" serial interface.
16221
4ad2da73
SM
162222017-01-11 Simon Marchi <simon.marchi@ericsson.com>
16223
16224 * cli/cli-decode.c (lookup_cmd_1): Fix typo in comment.
16225
c8b23b3f
TT
162262017-01-10 Tom Tromey <tom@tromey.com>
16227
16228 * python/py-type.c (typy_legacy_template_argument): Update.
16229 * cp-support.h (struct demangle_parse_info) (demangle_parse_info,
16230 ~demangle_parse_info): Declare new members.
16231 (cp_demangled_name_to_comp): Return unique_ptr.
16232 (cp_demangled_name_parse_free)
16233 (make_cleanup_cp_demangled_name_parse_free)
16234 (cp_new_demangle_parse_info): Remove.
16235 * cp-support.c (do_demangled_name_parse_free_cleanup)
16236 (make_cleanup_cp_demangled_name_parse_free): Remove.
16237 (inspect_type, cp_canonicalize_string_full)
16238 (cp_canonicalize_string): Update.
16239 (mangled_name_to_comp): Change return type.
16240 (cp_class_name_from_physname, method_name_from_physname)
16241 (cp_func_name, cp_remove_params): Update.
16242 * cp-name-parser.y (demangle_parse_info): New constructor, from
16243 cp_new_demangle_parse_info.
16244 (~demangle_parse_info): New destructor, from
16245 cp_demangled_name_parse_free.
16246 (cp_merge_demangle_parse_infos): Update.
16247 (cp_demangled_name_to_comp): Change return type.
16248
1ac32117
TT
162492017-01-10 Tom Tromey <tom@tromey.com>
16250
16251 * top.c (prevent_dont_repeat): Change return type.
16252 * python/python.c (execute_gdb_command): Use std::string.
16253 Update.
16254 * guile/guile.c (gdbscm_execute_gdb_command): Update.
16255 * command.h (prevent_dont_repeat): Change return type.
16256 * breakpoint.c (bpstat_do_actions_1): Update.
16257
0cf08227
TT
162582017-01-10 Tom Tromey <tom@tromey.com>
16259
16260 * value.h (scoped_value_mark::~scoped_value_mark): Call
16261 free_to_mark.
16262 (scoped_value_mark::free_to_mark): New method.
16263 * dwarf2loc.c (dwarf2_evaluate_loc_desc_full): Use
16264 scoped_value_mark.
16265
eb115069
TT
162662017-01-10 Tom Tromey <tom@tromey.com>
16267
16268 * python/py-value.c (valpy_dereference, valpy_referenced_value)
16269 (valpy_reference_value, valpy_const_value, valpy_get_address)
16270 (valpy_get_dynamic_type, valpy_lazy_string, valpy_do_cast)
16271 (valpy_getitem, valpy_call, valpy_binop_throw, valpy_negative)
16272 (valpy_absolute, valpy_richcompare_throw): Use scoped_value_mark.
16273 * dwarf2loc.c (dwarf2_loc_desc_get_symbol_read_needs): Use
16274 scoped_value_mark.
16275 * dwarf2-frame.c (execute_stack_op): Use scoped_value_mark.
16276 * value.h (scoped_value_mark): New class.
16277
906768f9
TT
162782017-01-10 Tom Tromey <tom@tromey.com>
16279
16280 * dwarf2read.c (dwarf2_build_psymtabs): Use psymtab_discarder.
16281 * psympriv.h (make_cleanup_discard_psymtabs): Don't declare.
16282 * psymtab.c (discard_psymtabs_upto): Remove.
16283 (make_cleanup_discard_psymtabs): Remove.
16284 (struct psymtab_state): Remove.
16285
bef155c3
TT
162862017-01-10 Tom Tromey <tom@tromey.com>
16287
16288 * record-full.c (record_full_save_cleanups): Remove.
16289 (record_full_save): Use gdb::unlinker.
16290 * gcore.c (do_bfd_delete_cleanup): Remove.
16291 (gcore_command): Use gdb::unlinker, unique_xmalloc_ptr. Remove
16292 cleanups.
16293 * dwarf2read.c (unlink_if_set): Remove.
16294 (write_psymtabs_to_index): Use gdb::unlinker.
16295 * common/gdb_unlinker.h: New file.
16296
192b62ce
TT
162972017-01-10 Tom Tromey <tom@tromey.com>
16298
16299 * windows-tdep.c (windows_xfer_shared_library): Update.
16300 * windows-nat.c (windows_make_so): Update.
16301 * utils.h (make_cleanup_bfd_unref): Remove.
16302 * utils.c (do_bfd_close_cleanup, make_cleanup_bfd_unref): Remove.
16303 * symfile.h (symfile_bfd_open)
16304 (find_separate_debug_file_in_section): Return gdb_bfd_ref_ptr.
16305 * symfile.c (read_symbols, symbol_file_add)
16306 (separate_debug_file_exists): Update.
16307 (symfile_bfd_open): Return gdb_bfd_ref_ptr.
16308 (generic_load, reread_symbols): Update.
16309 * symfile-mem.c (symbol_file_add_from_memory): Update.
16310 * spu-linux-nat.c (spu_bfd_open): Return gdb_bfd_ref_ptr.
16311 (spu_symbol_file_add_from_memory): Update.
16312 * solist.h (struct target_so_ops) <bfd_open>: Return
16313 gdb_bfd_ref_ptr.
16314 (solib_bfd_fopen, solib_bfd_open): Return gdb_bfd_ref_ptr.
16315 * solib.c (solib_bfd_fopen, solib_bfd_open): Return
16316 gdb_bfd_ref_ptr.
16317 (solib_map_sections, reload_shared_libraries_1): Update.
16318 * solib-svr4.c (enable_break): Update.
16319 * solib-spu.c (spu_bfd_fopen): Return gdb_bfd_ref_ptr.
16320 * solib-frv.c (enable_break2): Update.
16321 * solib-dsbt.c (enable_break): Update.
16322 * solib-darwin.c (gdb_bfd_mach_o_fat_extract): Return
16323 gdb_bfd_ref_ptr.
16324 (darwin_solib_get_all_image_info_addr_at_init): Update.
16325 (darwin_bfd_open): Return gdb_bfd_ref_ptr.
16326 * solib-aix.c (solib_aix_bfd_open): Return gdb_bfd_ref_ptr.
16327 * record-full.c (record_full_save): Update.
16328 * python/py-objfile.c (objfpy_add_separate_debug_file): Update.
16329 * procfs.c (insert_dbx_link_bpt_in_file): Update.
16330 * minidebug.c (find_separate_debug_file_in_section): Return
16331 gdb_bfd_ref_ptr.
16332 * machoread.c (macho_add_oso_symfile): Change abfd to
16333 gdb_bfd_ref_ptr.
16334 (macho_symfile_read_all_oso): Update.
16335 (macho_check_dsym): Return gdb_bfd_ref_ptr.
16336 (macho_symfile_read): Update.
16337 * jit.c (bfd_open_from_target_memory): Return gdb_bfd_ref_ptr.
16338 (jit_bfd_try_read_symtab): Update.
16339 * gdb_bfd.h (gdb_bfd_open, gdb_bfd_fopen, gdb_bfd_openr)
16340 (gdb_bfd_openw, gdb_bfd_openr_iovec)
16341 (gdb_bfd_openr_next_archived_file, gdb_bfd_fdopenr): Return
16342 gdb_bfd_ref_ptr.
16343 (gdb_bfd_ref_policy): New struct.
16344 (gdb_bfd_ref_ptr): New typedef.
16345 * gdb_bfd.c (gdb_bfd_open, gdb_bfd_fopen, gdb_bfd_openr)
16346 (gdb_bfd_openw, gdb_bfd_openr_iovec)
16347 (gdb_bfd_openr_next_archived_file, gdb_bfd_fdopenr): Return
16348 gdb_bfd_ref_ptr.
16349 * gcore.h (create_gcore_bfd): Return gdb_bfd_ref_ptr.
16350 * gcore.c (create_gcore_bfd): Return gdb_bfd_ref_ptr.
16351 (gcore_command): Update.
16352 * exec.c (exec_file_attach): Update.
16353 * elfread.c (elf_symfile_read): Update.
16354 * dwarf2read.c (dwarf2_get_dwz_file): Update.
16355 (try_open_dwop_file, open_dwo_file): Return gdb_bfd_ref_ptr.
16356 (open_and_init_dwo_file): Update.
16357 (open_dwp_file): Return gdb_bfd_ref_ptr.
16358 (open_and_init_dwp_file): Update.
16359 * corelow.c (core_open): Update.
16360 * compile/compile-object-load.c (compile_object_load): Update.
16361 * common/gdb_ref_ptr.h (ref_ptr::operator->): New operator.
16362 * coffread.c (coff_symfile_read): Update.
16363 * cli/cli-dump.c (bfd_openr_or_error, bfd_openw_or_error): Return
16364 gdb_bfd_ref_ptr. Rename.
16365 (dump_bfd_file, restore_command): Update.
16366 * build-id.h (build_id_to_debug_bfd): Return gdb_bfd_ref_ptr.
16367 * build-id.c (build_id_to_debug_bfd): Return gdb_bfd_ref_ptr.
16368 (find_separate_debug_file_by_buildid): Update.
16369
50315b21
TT
163702017-01-10 Tom Tromey <tom@tromey.com>
16371
16372 * common/gdb_ref_ptr.h: New file.
16373 * python/py-ref.h (struct gdbpy_ref_policy): New.
16374 (gdbpy_ref): Now a typedef.
16375
fc4007c9
TT
163762017-01-10 Tom Tromey <tom@tromey.com>
16377
16378 * utils.h (make_cleanup_htab_delete): Don't declare.
16379 * utils.c (do_htab_delete_cleanup, make_cleanup_htab_delete):
16380 Remove.
16381 * linespec.c (decode_compound_collector): Add constructor,
16382 destructor.
16383 (lookup_prefix_sym): Remove cleanup.
16384 (symtab_collector): Add constructor, destructor.
16385 (collect_symtabs_from_filename): Remove cleanup.
16386 * disasm.c (do_mixed_source_and_assembly): Use htab_up.
16387 * compile/compile-c-symbols.c (generate_c_for_variable_locations):
16388 Use htab_up.
16389 * gnu-v3-abi.c (gnuv3_print_vtable): Use htab_up.
16390 * dwarf2read.c (dw2_expand_symtabs_matching)
16391 (dw2_map_symbol_filenames, dwarf_decode_macros)
16392 (write_psymtabs_to_index): Use htab_up.
16393 * dwarf2loc.c (func_verify_no_selftailcall)
16394 (call_site_find_chain_1, func_verify_no_selftailcall)
16395 (chain_candidate, call_site_find_chain_1): Use std::unordered_set,
16396 std::vector, gdb::unique_xmalloc_ptr.
16397 (call_sitep): Remove typedef.
16398 (dwarf2_locexpr_baton_eval): Remove unused variable.
16399
8dbcee67
TT
164002017-01-10 Tom Tromey <tom@tromey.com>
16401
16402 * python/python-internal.h (make_cleanup_py_decref)
16403 (make_cleanup_py_xdecref): Don't declare.
16404 * python/py-utils.c (py_decref, make_cleanup_py_decref)
16405 (py_xdecref, make_cleanup_py_xdecref): Remove.
16406
13df46cc
TT
164072017-01-10 Tom Tromey <tom@tromey.com>
16408
16409 * python/py-framefilter.c (py_mi_print_variables): Use gdbpy_ref.
16410 (py_print_locals, enumerate_locals, py_print_args): Use gdbpy_ref.
16411
06fc9bf7
TT
164122017-01-10 Tom Tromey <tom@tromey.com>
16413
16414 * python/py-framefilter.c (enumerate_args): Use gdbpy_ref.
16415
830a4934
TT
164162017-01-10 Tom Tromey <tom@tromey.com>
16417
16418 * python/py-utils.c (unicode_to_encoded_string)
16419 (python_string_to_target_string)
16420 (python_string_to_target_python_string)
16421 (python_string_to_host_string, gdbpy_obj_to_string)
16422 (get_addr_from_python): Use gdbpy_ref.
16423
4586d543
TT
164242017-01-10 Tom Tromey <tom@tromey.com>
16425
16426 * python/py-unwind.c (pyuw_object_attribute_to_pointer): Use
16427 gdbpy_ref.
16428
59876f8f
TT
164292017-01-10 Tom Tromey <tom@tromey.com>
16430
16431 * python/python.c (eval_python_command, gdbpy_decode_line)
16432 (gdbpy_run_events, gdbpy_start_type_printers)
16433 (gdbpy_apply_type_printers): Use gdbpy_ref.
16434
97d83487
TT
164352017-01-10 Tom Tromey <tom@tromey.com>
16436
16437 * python/py-param.c (get_doc_string, compute_enum_values): Use
16438 gdbpy_ref.
16439
9205649a
TT
164402017-01-10 Tom Tromey <tom@tromey.com>
16441
16442 * python/py-inferior.c (find_thread_object, build_inferior_list):
16443 Use gdbpy_ref.
16444
74c49d45
TT
164452017-01-10 Tom Tromey <tom@tromey.com>
16446
16447 * python/py-framefilter.c (py_print_frame): Use gdbpy_ref.
16448
16361ffb
TT
164492017-01-10 Tom Tromey <tom@tromey.com>
16450
16451 * python/py-finishbreakpoint.c (bpfinishpy_out_of_scope): Use
16452 gdbpy_ref.
16453
905f2cca
TT
164542017-01-10 Tom Tromey <tom@tromey.com>
16455
16456 * python/py-cmd.c (cmdpy_completer_helper): Use gdbpy_ref. Remove
16457 extra incref.
16458 (cmdpy_completer_handle_brkchars, cmdpy_completer, cmdpy_init):
16459 Use gdbpy_ref.
16460
64081434
TT
164612017-01-10 Tom Tromey <tom@tromey.com>
16462
16463 * python/py-breakpoint.c (gdbpy_breakpoint_cond_says_stop): Use
16464 gdbpy_ref.
16465
59e9e831
TT
164662017-01-10 Tom Tromey <tom@tromey.com>
16467
16468 * python/py-arch.c (archpy_disassemble): Use gdbpy_ref. Don't
16469 decref results of PyArg_ParseTupleAndKeywords.
16470
9de10f6d
TT
164712017-01-10 Tom Tromey <tom@tromey.com>
16472
16473 * python/python.c (python_run_simple_file): Use
16474 unique_xmalloc_ptr, gdbpy_ref.
16475
2bd5759d
TT
164762017-01-10 Tom Tromey <tom@tromey.com>
16477
16478 * python/py-prettyprint.c (print_stack_unless_memory_error)
16479 (print_string_repr, print_children): Use gdbpy_ref.
16480 (dummy_python_frame): New class.
16481 (dummy_python_frame::dummy_python_frame): Rename from
16482 push_dummy_python_frame.
16483 (py_restore_tstate): Remove.
16484
3b4e0e01
TT
164852017-01-10 Tom Tromey <tom@tromey.com>
16486
16487 * python/py-framefilter.c (py_print_frame): Use gdbpy_ref.
16488
17a22718
TT
164892017-01-10 Tom Tromey <tom@tromey.com>
16490
16491 * python/python.c (ensure_python_env, restore_python_env):
16492 Remove.
16493 * python/python-internal.h (ensure_python_env): Don't declare.
16494 * varobj.h (varobj_ensure_python_env): Don't declare.
16495 * varobj.c (varobj_ensure_python_env): Remove.
16496
68cdc557
TT
164972017-01-10 Tom Tromey <tom@tromey.com>
16498
16499 * varobj.c (varobj_value_get_print_value): Use
16500 gdbpy_enter_varobj.
16501
1eba6383
TT
165022017-01-10 Tom Tromey <tom@tromey.com>
16503
16504 * python/py-prettyprint.c (print_string_repr, print_children):
16505 Update.
16506 * python/py-lazy-string.c (gdbpy_extract_lazy_string): Change type
16507 of "encoding".
16508 * varobj.c (varobj_value_get_print_value): Update.
16509 * python/python-internal.h (gdbpy_extract_lazy_string): Update.
16510
bde7b3e3
TT
165112017-01-10 Tom Tromey <tom@tromey.com>
16512
16513 * varobj.c (varobj_get_display_hint)
16514 (dynamic_varobj_has_child_method, install_new_value_visualizer)
16515 (varobj_set_visualizer, free_variable): Use
16516 gdbpy_enter_varobj.
16517
a7785f8c
TT
165182017-01-10 Tom Tromey <tom@tromey.com>
16519
16520 * python/python.c (python_command): Use gdbpy_enter, gdbpy_ref.
16521 (do_finish_initialization): New function. Use gdbpy_ref.
16522 (gdbpy_finish_initialization): Use gdbpy_enter. Call
16523 do_finish_initialization.
16524
2865bfce
TT
165252017-01-10 Tom Tromey <tom@tromey.com>
16526
16527 * python/py-param.c (get_set_value, get_show_value): Use
16528 gdbpy_enter, gdbpy_ref.
16529
0e9dcc75
TT
165302017-01-10 Tom Tromey <tom@tromey.com>
16531
16532 * python/py-function.c (fnpy_call): Use gdbpy_enter, gdbpy_ref.
16533
12a5cedd
TT
165342017-01-10 Tom Tromey <tom@tromey.com>
16535
16536 * python/py-cmd.c (cmdpy_function): Use gdbpy_enter, gdbpy_ref.
16537
788f2586
TT
165382017-01-10 Tom Tromey <tom@tromey.com>
16539
16540 * python/py-varobj.c (py_varobj_iter_dtor, py_varobj_iter_next):
16541 Use gdbpy_enter_varobj.
16542
6cd67bea
TT
165432017-01-10 Tom Tromey <tom@tromey.com>
16544
16545 * varobj.c (gdbpy_enter_varobj): New constructor.
16546 * python/python-internal.h (gdbpy_enter_varobj): New class.
16547 * python/py-varobj.c (py_varobj_get_iterator): Use
16548 gdbpy_enter_varobj.
16549
14b122bf
TT
165502017-01-10 Tom Tromey <tom@tromey.com>
16551
16552 * python/py-xmethods.c (gdbpy_get_xmethod_result_type): Use
16553 gdbpy_enter, gdbpy_ref, unique_xmalloc_ptr.
16554 (gdbpy_invoke_xmethod): Use gdbpy_ref, gdbpy_enter.
16555 (gdbpy_get_xmethod_arg_types): Use gdbpy_ref,
16556 unique_xmalloc_ptr.
16557 (gdbpy_get_xmethod_arg_types): Use gdbpy_ref, gdbpy_enter.
16558
bf1ca3b9
TT
165592017-01-10 Tom Tromey <tom@tromey.com>
16560
16561 * python/py-xmethods.c (invoke_match_method): Use
16562 gdbpy_ref.
16563
572a5524
TT
165642017-01-10 Tom Tromey <tom@tromey.com>
16565
16566 * python/py-xmethods.c (gdbpy_get_matching_xmethod_workers): use
16567 gdbpy_enter, gdbpy_ref.
16568
396a78b6
TT
165692017-01-10 Tom Tromey <tom@tromey.com>
16570
16571 * python/python.c (python_interactive_command): Use gdbpy_enter.
16572
a88b13c7
TT
165732017-01-10 Tom Tromey <tom@tromey.com>
16574
16575 * python/python.c (gdbpy_before_prompt_hook): Use gdbpy_enter,
16576 gdbpy_ref.
16577
e9f0c363
TT
165782017-01-10 Tom Tromey <tom@tromey.com>
16579
16580 * python/py-prettyprint.c (gdbpy_apply_val_pretty_printer): Use
16581 gdbpy_enter, gdbpy_ref, unique_xmalloc_ptr.
16582
6349f452
TT
165832017-01-10 Tom Tromey <tom@tromey.com>
16584
16585 * utils.h (htab_deleter): New struct.
16586 (htab_up): New typedef.
16587 * python/py-framefilter.c (gdbpy_apply_frame_filter): Use
16588 gdbpy_enter, gdbpy_ref, htab_up.
16589
c0171de6
TT
165902017-01-10 Tom Tromey <tom@tromey.com>
16591
16592 * python/py-unwind.c (pending_frame_invalidate): Remove.
16593 (pyuw_sniffer): Use gdbpy_enter and gdbpy_ref.
16594
f18e226f
TT
165952017-01-10 Tom Tromey <tom@tromey.com>
16596
16597 * python/py-xmethods.c (gdbpy_free_xmethod_worker_data)
16598 (gdbpy_clone_xmethod_worker_data): Use gdbpy_enter.
16599
c57af3f1
TT
166002017-01-10 Tom Tromey <tom@tromey.com>
16601
16602 * python/py-type.c (save_objfile_types): Use gdbpy_enter.
16603
60e600ec
TT
166042017-01-10 Tom Tromey <tom@tromey.com>
16605
16606 * python/python.c (gdbpy_eval_from_control_command)
16607 (gdbpy_source_script, gdbpy_run_events)
16608 (gdbpy_source_objfile_script, gdbpy_execute_objfile_script)
16609 (gdbpy_free_type_printers, gdbpy_finish_initialization): Use
16610 gdbpy_enter.
16611
bf7da5b0
TT
166122017-01-10 Tom Tromey <tom@tromey.com>
16613
16614 * python/py-progspace.c (py_free_pspace): Use gdbpy_enter.
16615
2d38bced
TT
166162017-01-10 Tom Tromey <tom@tromey.com>
16617
16618 * python/py-objfile.c (py_free_objfile): Use gdbpy_enter.
16619
07bc7329
TT
166202017-01-10 Tom Tromey <tom@tromey.com>
16621
16622 * python/py-inferior.c (python_on_normal_stop, python_on_resume)
16623 (python_on_inferior_call_pre, python_on_inferior_call_post)
16624 (python_on_memory_change, python_on_register_change)
16625 (python_inferior_exit, python_new_objfile, add_thread_object)
16626 (delete_thread_object, py_free_inferior): Use gdbpy_enter.
16627
6e7c365e
TT
166282017-01-10 Tom Tromey <tom@tromey.com>
16629
16630 * python/py-finishbreakpoint.c (bpfinishpy_handle_stop)
16631 (bpfinishpy_handle_exit): Use gdbpy_enter.
16632
6ba0cd40
TT
166332017-01-10 Tom Tromey <tom@tromey.com>
16634
16635 * python/py-cmd.c (cmdpy_destroyer)
16636 (cmdpy_completer_handle_brkchars, cmdpy_completer): Use
16637 gdbpy_enter.
16638
de2dc875
TT
166392017-01-10 Tom Tromey <tom@tromey.com>
16640
16641 * python/py-breakpoint.c (gdbpy_breakpoint_cond_says_stop): Use
16642 gdbpy_enter.
16643 (gdbpy_breakpoint_has_cond): Likewise.
16644
4ecee2c4
TT
166452017-01-10 Tom Tromey <tom@tromey.com>
16646
16647 * python/python.c (gdbpy_enter): New constructor.
16648 (~gdbpy_enter): New destructor.
16649 (restore_python_env, ensure_python_env): Rewrite.
16650 * python/python-internal.h (gdbpy_enter): New class.
16651
37fce74f
TT
166522017-01-10 Tom Tromey <tom@tromey.com>
16653
16654 * python/py-symbol.c (gdbpy_lookup_symbol): Use gdbpy_ref.
16655
53a0cca3
TT
166562017-01-10 Tom Tromey <tom@tromey.com>
16657
16658 * python/py-value.c (value_has_field, get_field_flag)
16659 (get_field_type, valpy_getitem, convert_value_from_python): Use
16660 gdbpy_ref.
16661
ff3724f5
TT
166622017-01-10 Tom Tromey <tom@tromey.com>
16663
16664 * python/python.c (gdbpy_progspaces, gdbpy_objfiles): Use
16665 gdbpy_ref.
16666
0700aea5
TT
166672017-01-10 Tom Tromey <tom@tromey.com>
16668
16669 * python/py-prettyprint.c (search_pp_list)
16670 (find_pretty_printer_from_objfiles)
16671 (find_pretty_printer_from_progspace)
16672 (find_pretty_printer_from_gdb, find_pretty_printer)
16673 (gdbpy_get_display_hint, gdbpy_get_varobj_pretty_printer): Use
16674 gdbpy_ref.
16675
1bb44c9f
TT
166762017-01-10 Tom Tromey <tom@tromey.com>
16677
16678 * python/py-param.c (call_doc_function): Use gdbpy_ref.
16679
87ce03fd
TT
166802017-01-10 Tom Tromey <tom@tromey.com>
16681
16682 * python/py-linetable.c (build_line_table_tuple_from_pcs)
16683 (ltpy_get_all_source_lines): Use gdbpy_ref.
16684
ee0a3fb8
TT
166852017-01-10 Tom Tromey <tom@tromey.com>
16686
16687 * python/py-framefilter.c (extract_sym, extract_value)
16688 (get_py_iter_from_func, bootstrap_python_frame_filters): Use
16689 gdbpy_ref.
16690
bf2a52fa
TT
166912017-01-10 Tom Tromey <tom@tromey.com>
16692
16693 * python/py-breakpoint.c (gdbpy_breakpoints): Use gdbpy_ref.
16694
f59fe7f8
TT
166952017-01-10 Tom Tromey <tom@tromey.com>
16696
16697 * python/py-inferior.c (gdbpy_inferiors): Use gdbpy_ref.
16698
80bd970a
TT
166992017-01-10 Tom Tromey <tom@tromey.com>
16700
16701 * python/py-function.c (convert_values_to_python, fnpy_init): Use
16702 gdbpy_ref.
16703
d1b3de2e
TT
167042017-01-10 Tom Tromey <tom@tromey.com>
16705
16706 * python/py-cmd.c (gdbpy_string_to_argv): Use gdbpy_ref.
16707
3bb43384
TT
167082017-01-10 Tom Tromey <tom@tromey.com>
16709
16710 * python/py-type.c (convert_field, make_fielditem, typy_fields)
16711 (typy_range): Use gdbpy_ref.
16712
abf5651e
TT
167132017-01-10 Tom Tromey <tom@tromey.com>
16714
16715 * python/py-threadevent.c (create_thread_event_object): Use
16716 gdbpy_ref.
16717 * python/py-stopevent.c (create_stop_event_object): Simplify.
16718 (emit_stop_event): Use gdbpy_ref.
16719 * python/py-signalevent.c (create_signal_event_object): Use
16720 gdbpy_ref.
16721 * python/py-newobjfileevent.c (create_new_objfile_event_object)
16722 (emit_new_objfile_event, create_clear_objfiles_event_object)
16723 (emit_clear_objfiles_event): Use gdbpy_ref.
16724 * python/py-infevents.c (create_inferior_call_event_object)
16725 (create_register_changed_event_object)
16726 (create_memory_changed_event_object, emit_inferior_call_event)
16727 (emit_memory_changed_event, emit_register_changed_event): Use
16728 gdbpy_ref.
16729 * python/py-exitedevent.c (create_exited_event_object)
16730 (emit_exited_event): Use gdbpy_ref.
16731 * python/py-event.h (evpy_emit_event): Remove
16732 CPYCHECKER_STEALS_REFERENCE_TO_ARG annotation.
16733 * python/py-event.c (evpy_emit_event): Use gdbpy_ref.
16734 * python/py-continueevent.c (emit_continue_event): Use
16735 gdbpy_ref.
16736 * python/py-breakpoint.c (gdbpy_breakpoint_created)
16737 (gdbpy_breakpoint_deleted, gdbpy_breakpoint_modified): Use
16738 gdbpy_ref.
16739 * python/py-bpevent.c (create_breakpoint_event_object): Use
16740 gdbpy_ref.
16741
a68ff33e
TT
167422017-01-10 Tom Tromey <tom@tromey.com>
16743
16744 * python/py-ref.h: New file.
16745
7becfd03
SM
167462017-01-10 Simon Marchi <simon.marchi@ericsson.com>
16747
16748 * cli-out.c (cli_ui_out::do_redirect): Change return type to
16749 void.
16750 * cli-out.h (cli_ui_out::do_redirect): Likewise.
16751 * mi/mi-out.c (mi_ui_out::do_redirect): Likewise.
16752 * mi/mi-out.h (mi_ui_out::do_redirect): Likewise.
16753 * ui-out.c (ui_out::redirect): Likewise.
16754 * ui-out.h (ui_out::redirect, ui_out::do_redirect): Likewise.
16755 * cli/cli-logging.c (set_logging_redirect): Update call site of
16756 ui_out::redirect.
16757 (handle_redirections): Likewise.
16758 * scm-ports.c (ioscm_with_output_to_port_worker): Likewise.
16759 * top.c (execute_command_to_string): Likewise.
16760 * utils.c (do_ui_out_redirect_pop): Likewise.
16761
df294654
SM
167622017-01-10 Simon Marchi <simon.marchi@ericsson.com>
16763
16764 * stack.c (_initialize_stack): Update "frame" command help message.
16765
f5e6296e
IB
167662017-01-08 Iain Buclaw <ibuclaw@gdcproject.org>
16767
16768 * d-exp.y (CastExpression): Emit UNOP_CAST_TYPE.
16769
0e2d6fa6
YQ
167702017-01-06 Yao Qi <yao.qi@linaro.org>
16771
16772 * x86-linux-nat.h: Include gdb_proc_service.h.
16773
44d6d3f9
YQ
167742017-01-06 Yao Qi <yao.qi@linaro.org>
16775
16776 * ser-base.h: Include serial.h.
16777
656731fe
YQ
167782017-01-06 Yao Qi <yao.qi@linaro.org>
16779
16780 * ppc-linux-tdep.h: Include ppc-tdep.h.
16781
1ca8f924
YQ
167822017-01-06 Yao Qi <yao.qi@linaro.org>
16783
16784 * nat/amd64-linux-siginfo.h: Include signal.h.
16785
bc3008c4
YQ
167862017-01-06 Yao Qi <yao.qi@linaro.org>
16787
16788 * nat/aarch64-linux-hw-point.h: Include break-common.h.
16789
66c80d03
YQ
167902017-01-06 Yao Qi <yao.qi@linaro.org>
16791
16792 * mi/mi-parse.h: Include mi-cmds.h.
16793
051d2dda
YQ
167942017-01-06 Yao Qi <yao.qi@linaro.org>
16795
16796 * inf-loop.c: Don't include "target.h".
16797 * inf-loop.h: Include it here.
16798
8018d34f
YQ
167992017-01-06 Yao Qi <yao.qi@linaro.org>
16800
16801 * dfp.h: Include "dboulest.h" and "expression.h".
16802
c0b8369c
YQ
168032017-01-06 Yao Qi <yao.qi@linaro.org>
16804
16805 * ax-gdb.h: Include "ax.h".
16806
ad5cba2a
YQ
168072017-01-06 Yao Qi <yao.qi@linaro.org>
16808
16809 * Makefile.in (HFILES_NO_SRCDIR): Replace gdb_ptrace.h
16810 with nat/gdb_ptrace.h.
16811
1c33cd7f
YQ
168122017-01-05 Yao Qi <yao.qi@linaro.org>
16813
16814 * mips-fbsd-tdep.c (mips_fbsd_sigframe_init): Move && to
16815 new line.
16816 (mips64_fbsd_sigframe_init): Likewise.
16817
c988ac1d
JB
168182017-01-04 John Baldwin <jhb@FreeBSD.org>
16819
16820 * mips-fbsd-tdep.c (_initialize_mips_fbsd_tdep): Use
16821 GDB_OSABI_FREEBSD instead of GDB_OSABI_FREEBSD_ELF.
16822
b268007c
JB
168232017-01-04 John Baldwin <jhb@FreeBSD.org>
16824
16825 * Makefile.in (ALLDEPFILES): Add mips-fbsd-nat.c.
16826 * NEWS: Mention new FreeBSD/mips native configuration.
16827 * config/mips/fbsd.mh: New file.
16828 * configure.host: Add mips*-*-freebsd*.
16829 * mips-fbsd-nat.c: New file.
16830
387360da
JB
168312017-01-04 John Baldwin <jhb@FreeBSD.org>
16832
16833 * Makefile.in (ALL_TARGET_OBS): Add mips-fbsd-tdep.o.
16834 (ALLDEPFILES): Add mips-fbsd-tdep.c.
16835 * NEWS: Mention new FreeBSD/mips target.
16836 * configure.tgt: Add mips*-*-freebsd*.
16837 * mips-fbsd-tdep.c: New file.
16838 * mips-fbsd-tdep.h: New file.
16839
2aaaf250
YQ
168402017-01-04 Yao Qi <yao.qi@linaro.org>
16841
16842 * dwarf2loc.c (write_pieced_value): Don't use VALUE_FRAME_ID (to),
16843 use c->frame_id when the piece location is DWARF_VALUE_REGISTER.
16844
61baf725
JB
168452017-01-01 Joel Brobecker <brobecker@adacore.com>
16846
6dbb839a 16847 Update copyright year range in all GDB files.
61baf725 16848
c113e7ff 168492017-01-01 Joel Brobecker <brobecker@adacore.com>
ce0db137 16850
c113e7ff 16851 * config/djgpp/fnchange.lst: Add entry for gdb/ChangeLog-2016.
ce0db137 16852
c113e7ff 16853For older changes see ChangeLog-2016.
c906108c
SS
16854\f
16855Local Variables:
16856mode: change-log
16857left-margin: 8
16858fill-column: 74
16859version-control: never
57da7796 16860coding: utf-8
c906108c 16861End: