]> git.ipfire.org Git - thirdparty/binutils-gdb.git/blame - gdb/ChangeLog
Create private_inferior class hierarchy
[thirdparty/binutils-gdb.git] / gdb / ChangeLog
CommitLineData
089354bb
SM
12017-11-24 Simon Marchi <simon.marchi@ericsson.com>
2
3 * inferior.h (private_inferior): Define structure type, add
4 virtual pure destructor.
5 (inferior) <priv>: Change type to unique_ptr.
6 * inferior.c (private_inferior::~private_inferior): Provide
7 default implementation.
8 (inferior::~inferior): Don't free priv field.
9 (exit_inferior_1): Likewise.
10 * darwin-nat.h (struct darwin_exception_info): Initialize fields.
11 (darwin_exception_info): Remove typedef.
12 (DEF_VEC_O (darwin_thread_t)); Remove.
13 (private_inferior): Rename to ...
14 (darwin_private_inferior): ... this, extend private_inferior.
15 (get_darwin_inferior): New.
16 <threads>: Change type to std::vector of darwin_thread_t pointers.
17 * darwin-nat.c (darwin_check_new_threads): Adjust.
18 (find_inferior_task_it): Adjust.
19 (darwin_find_thread); Adjust.
20 (darwin_suspend_inferior): Adjust.
21 (darwin_resume_inferior): Adjust.
22 (darwin_find_new_inferior): Adjust.
23 (darwin_decode_notify_message): Adjust.
24 (darwin_send_reply): Adjust.
25 (darwin_resume_inferior_threads): Adjust.
26 (darwin_suspend_inferior_threads): Adjust.
27 (darwin_decode_message): Adjust.
28 (darwin_wait): Adjust.
29 (darwin_interrupt): Adjust.
30 (darwin_deallocate_threads): Adjust.
31 (darwin_mourn_inferior): Adjust, don't free private data.
32 (darwin_reply_to_all_pending_messages): Adjust.
33 (darwin_stop_inferior): Adjust.
34 (darwin_setup_exceptions): Adjust.
35 (darwin_kill_inferior): Adjust.
36 (darwin_setup_request_notification): Adjust.
37 (darwin_attach_pid): Adjust.
38 (darwin_init_thread_list): Adjust.
39 (darwin_setup_fake_stop_event): Adjust.
40 (darwin_attach): Adjust.
41 (darwin_detach): Adjust.
42 (darwin_xfer_partial): Adjust.
43 (set_enable_mach_exceptions): Adjust.
44 (darwin_pid_to_exec_file): Adjust.
45 (darwin_get_ada_task_ptid): Adjust.
46 * darwin-nat-info.c (get_task_from_args): Adjust.
47 (info_mach_ports_command): Adjust.
48 (info_mach_region_command): Adjust.
49 (info_mach_exceptions_command): Adjust.
50 * remote.c (private_inferior): Rename to ...
51 (remote_private_inferior): ... this, initialize fields.
52 (get_remote_inferior); New.
53 (remote_commit_resume): Use get_remote_inferior.
54 (check_pending_event_prevents_wildcard_vcont_callback): Likewise.
55
d044bac8
PA
562017-11-24 Pedro Alves <palves@redhat.com>
57
58 * NEWS: Mention linespecs and explicit locations, and completion
59 improvements.
60
e8d58cba
YQ
612017-11-24 Yao Qi <yao.qi@linaro.org>
62
63 * regcache.c (regcache::dump): Remove footnote_register_size.
64
a63f2d2f
YQ
652017-11-24 Yao Qi <yao.qi@linaro.org>
66
67 * regcache.c (cooked_read_test): Add more test for readonly
68 regcache.
69
1b30aaa5
YQ
702017-11-24 Yao Qi <yao.qi@linaro.org>
71
72 * gdbarch-selftests.c (test_target_has_registers): Move it to
73 target.c.
74 (test_target_has_stack): Likewise.
75 (test_target_has_memory): Likewise.
76 (test_target_prepare_to_store): Likewise.
77 (test_target_store_registers): Likewise.
78 (test_target_ops): Likewise.
79 * regcache.c: Include selftest-arch.h and gdbthread.h.
80 (target_ops_no_register): New class.
81 (test_target_fetch_registers): New.
82 (test_target_store_registers): New.
83 (test_target_xfer_partial): New.
84 (readwrite_regcache): New.
85 (cooked_read_test): New.
86 (_initialize_regcache): Register the test.
87 * target.c: (test_target_has_registers): Moved from
88 gdbarch-selftests.c.
89 (test_target_has_stack): Likewise.
90 (test_target_has_memory): Likewise.
91 (test_target_prepare_to_store): Likewise.
92 (test_target_store_registers): Likewise.
93 * target.h (test_target_ops): New class.
94
6654d750
AH
952017-11-24 Alan Hayward <alan.hayward@arm.com>
96
97 * aarch64-tdep.c (_initialize_aarch64_tdep): Add target desc
98 selftest.
99
49bdb7ee
AH
1002017-11-24 Alan Hayward <alan.hayward@arm.com>
101
102 * aarch64-tdep.c (_initialize_aarch64_tdep): Remove init.
103 * arch/aarch64.c (aarch64_create_target_description): Create
104 new target description.
105 * features/Makefile: Add new files.
106 * features/aarch64.c: Remove file.
107 * features/aarch64-core.c: New autogenerated file.
108 * features/aarch64-fpu.c: New autogenerated file.
109 * target-descriptions.c (maint_print_c_tdesc_cmd): Check for aarch64.
da434ccb
AH
110
1112017-11-24 Alan Hayward <alan.hayward@arm.com>
112
113 * Makefile.in: Add new files.
114 * aarch64-linux-nat.c (aarch64_linux_read_description): Call
115 aarch64_read_description.
116 * aarch64-linux-tdep.c (aarch64_linux_core_read_description):
117 Call aarch64_read_description.
118 * aarch64-tdep.c (aarch64_read_description): New function.
119 (aarch64_gdbarch_init): Call aarch64_read_description.
120 * aarch64-tdep.h (aarch64_read_description): New function.
121 * arch/aarch64.c: New file.
122 * configure.tgt: Add new files.
123
98ead37e
YQ
1242017-11-24 Yao Qi <yao.qi@linaro.org>
125
126 * mi/mi-main.c (register_changed_p): Update.
127 * value.c (value_contents_bits_eq): Change return type.
128 (value_contents_eq): Likewise.
129 * value.h: Update comments.
130
62ad7ce7
YQ
1312017-11-24 Yao Qi <yao.qi@linaro.org>
132
133 * mi/mi-main.c (mi_cmd_data_list_changed_registers): Remove
134 local 'changed'. Remove error.
135 (register_changed_p): Change return type to bool.
136
506fe5f4
YQ
1372017-11-24 Yao Qi <yao.qi@linaro.org>
138
139 * arch/tic6x.c: New file.
140 * arch/tic6x.h: New file.
141 * features/Makefile (FEATURE_XMLFILES): Add tic6x-c6xp.xml,
142 tic6x-core.xml and tic6x-gp.xml.
143 * features/tic6x-c6xp.c: Generated.
144 * features/tic6x-core.c: Generated.
145 * features/tic6x-gp.c: Generated.
146 * target-descriptions.c (maint_print_c_tdesc_cmd): Match
147 "tic6x-".
148
00ea2e2a
SM
1492017-11-23 Simon Marchi <simon.marchi@ericsson.com>
150
151 * mi/mi-main.c (list_available_thread_groups): Change map value
152 type to std::vector.
153
f45e2a77
SM
1542017-11-23 Simon Marchi <simon.marchi@ericsson.com>
155
156 * osdata.c (osdata_end_column, get_osdata): Remove std::move.
157
bd046f64
SM
1582017-11-23 Simon Marchi <simon.marchi@ericsson.com>
159
160 * varobj.c (struct varobj_dynamic) <children_requested_>: Rename
161 back to...
162 <children_requested>: ... this.
163 (varobj_get_num_children, varobj_update): Adjust.
164
4c37490d
SM
1652017-11-23 Simon Marchi <simon.marchi@ericsson.com>
166
167 * ada-varobj.c (ada_value_is_changeable_p): Change int to bool where applicable.
168 (ada_value_has_mutated): Likewise.
169 * c-varobj.c (varobj_is_anonymous_child): Likewise.
170 (c_is_path_expr_parent): Likewise.
171 * mi/mi-cmd-var.c (varobj_update_one): Likewise.
172 (mi_cmd_var_set_frozen): Likewise.
173 (mi_cmd_var_update_iter): Likewise.
174 (mi_cmd_var_update): Likewise.
175 * varobj.c (pretty_printing): Likewise.
176 (varobj_enable_pretty_printing): Likewise.
177 (struct varobj_root) <floating, is_valid>: Likewise.
178 (struct varobj_dynamic) <children_requested>: Likewise.
179 (delete_variable): Likewise.
180 (delete_variable_1): Likewise.
181 (install_variable): Likewise.
182 (update_type_if_necessary): Likewise.
183 (install_new_value): Likewise.
184 (value_of_root): Likewise.
185 (is_root_p): Likewise.
186 (varobj_create): Likewise.
187 (varobj_delete): Likewise.
188 (varobj_has_more): Likewise.
189 (varobj_set_frozen): Likewise.
190 (varobj_get_frozen): Likewise.
191 (install_dynamic_child): Likewise.
192 (dynamic_varobj_has_child_method): Likewise.
193 (update_dynamic_varobj_children): Likewise.
194 (varobj_get_num_children): Likewise.
195 (varobj_list_children): Likewise.
196 (is_path_expr_parent): Likewise.
197 (varobj_default_is_path_expr_parent): Likewise.
198 (varobj_is_dynamic_p): Likewise.
199 (varobj_set_value): Likewise.
200 (varobj_value_has_mutated): Likewise.
201 (varobj_update): Likewise.
202 (check_scope): Likewise.
203 (value_of_root_1): Likewise.
204 (varobj_value_get_print_value): Likewise.
205 (varobj_editable_p): Likewise.
206 (varobj_value_is_changeable_p): Likewise.
207 (varobj_floating_p): Likewise.
208 (varobj_default_value_is_changeable_p): Likewise.
209 (varobj_invalidate_iter): Likewise.
210 * varobj.h (struct varobj_update_result) <type_changed,
211 children_changed, changed, value_installed>: Likewise.
212 (struct varobj) <updated, frozen, not_fetched>: Likewise.
213 (struct lang_varobj_ops) <value_is_changeable_p,
214 value_has_mutated, is_path_expr_parent>: Likewise.
215 (varobj_delete): Likewise.
216 (varobj_set_frozen): Likewise.
217 (varobj_get_frozen): Likewise.
218 (varobj_set_value): Likewise.
219 (varobj_update): Likewise.
220 (varobj_editable_p): Likewise.
221 (varobj_floating_p): Likewise.
222 (varobj_has_more): Likewise.
223 (varobj_is_dynamic_p): Likewise.
224 (varobj_default_value_is_changeable_p): Likewise.
225 (varobj_value_is_changeable_p): Likewise.
226 (varobj_is_anonymous_child): Likewise.
227 (varobj_default_is_path_expr_parent): Likewise.
228
9c23b42f
SDJ
2292017-11-22 Sergio Durigan Junior <sergiodj@redhat.com>
230
231 * dtrace-probe.c (struct probe_ops dtrace_probe_ops): Delete.
232 (struct dtrace_probe_arg) <dtrace_probe_arg>: New constructor.
233 <type_str>: Convert to 'std::string'.
234 <expr>: Convert to 'expression_up'.
235 (dtrace_probe_arg_s): Delete type and VEC.
236 (dtrace_probe_enabler_s): Likewise.
237 (struct dtrace_probe): Replace by...
238 (class dtrace_static_probe_ops): ...this and...
239 (class dtrace_probe): ...this.
240 (dtrace_probe_is_linespec): Rename to...
241 (dtrace_static_probe_ops::is_linespec): ...this. Adjust code
242 to reflect change.
243 (dtrace_process_dof_probe): Use 'std::vector' instead of VEC.
244 Adjust code. Create new instance of 'dtrace_probe'.
245 (dtrace_build_arg_exprs): Rename to...
246 (dtrace_probe::build_arg_exprs): ...this. Adjust code to
247 reflect change.
248 (dtrace_get_probes): Rename to...
249 (dtrace_static_probe_ops::get_probes): ...this. Adjust code
250 to reflect change.
251 (dtrace_get_arg): Rename to...
252 (dtrace_probe::get_arg_by_number): ...this. Adjust code to
253 reflect change.
254 (dtrace_probe_is_enabled): Rename to...
255 (dtrace_probe::is_enabled): ...this. Adjust code to reflect
256 change.
257 (dtrace_get_probe_address): Rename to...
258 (dtrace_probe::get_relocated_address): ...this. Adjust code
259 to reflect change.
260 (dtrace_get_probe_argument_count): Rename to...
261 (dtrace_probe::get_argument_count): ...this. Adjust code to
262 reflect change.
263 (dtrace_can_evaluate_probe_arguments): Rename to...
264 (dtrace_probe::can_evaluate_arguments): ...this. Adjust code
265 to reflect change.
266 (dtrace_evaluate_probe_argument): Rename to...
267 (dtrace_probe::evaluate_argument): ...this. Adjust code to
268 reflect change.
269 (dtrace_compile_to_ax): Rename to...
270 (dtrace_probe::compile_to_ax): ...this. Adjust code to
271 reflect change.
272 (dtrace_probe_destroy): Delete.
273 (dtrace_type_name): Rename to...
274 (dtrace_static_probe_ops::type_name): ...this. Adjust code to
275 reflect change.
276 (dtrace_probe::get_static_ops): New method.
277 (dtrace_gen_info_probes_table_header): Rename to...
278 (dtrace_static_probe_ops::gen_info_probes_table_header):
279 ...this. Adjust code to reflect change.
280 (dtrace_gen_info_probes_table_values): Rename to...
281 (dtrace_probe::gen_info_probes_table_values): ...this. Adjust
282 code to reflect change.
283 (dtrace_enable_probe): Rename to...
284 (dtrace_probe::enable_probe): ...this. Adjust code to reflect
285 change.
286 (dtrace_disable_probe): Rename to...
287 (dtrace_probe::disable_probe): ...this. Adjust code to reflect
288 change.
289 (struct probe_ops dtrace_probe_ops): Delete.
290 (info_probes_dtrace_command): Call 'info_probes_for_spops'
291 instead of 'info_probes_for_ops'.
292 (_initialize_dtrace_probe): Use 'all_static_probe_ops' instead
293 of 'all_probe_ops'.
294
0e9ae10f
SDJ
2952017-11-22 Sergio Durigan Junior <sergiodj@redhat.com>
296 Simon Marchi <simark@simark.ca>
297
298 * stap-probe.c (struct probe_ops stap_probe_ops): Delete
299 variable.
300 (struct stap_probe_arg) <stap_probe_arg>: New constructor.
301 <aexpr>: Change type to 'expression_up'.
302 (stap_probe_arg_s): Delete type and VEC.
303 (struct stap_probe): Delete. Replace by...
304 (class stap_static_probe_ops): ...this and...
305 (class stap_probe): ...this. Rename variables to add 'm_'
306 prefix. Do not use 'union' for arguments anymore.
307 (stap_get_expected_argument_type): Receive probe name instead
308 of 'struct stap_probe'. Adjust code.
309 (stap_parse_probe_arguments): Rename to...
310 (stap_probe::parse_arguments): ...this. Adjust code to
311 reflect change.
312 (stap_get_probe_address): Rename to...
313 (stap_probe::get_relocated_address): ...this. Adjust code
314 to reflect change.
315 (stap_get_probe_argument_count): Rename to...
316 (stap_probe::get_argument_count): ...this. Adjust code
317 to reflect change.
318 (stap_get_arg): Rename to...
319 (stap_probe::get_arg_by_number'): ...this. Adjust code to
320 reflect change.
321 (can_evaluate_probe_arguments): Rename to...
322 (stap_probe::can_evaluate_arguments): ...this. Adjust code
323 to reflect change.
324 (stap_evaluate_probe_argument): Rename to...
325 (stap_probe::evaluate_argument): ...this. Adjust code
326 to reflect change.
327 (stap_compile_to_ax): Rename to...
328 (stap_probe::compile_to_ax): ...this. Adjust code to
329 reflect change.
330 (stap_probe_destroy): Delete.
331 (stap_modify_semaphore): Adjust comment.
332 (stap_set_semaphore): Rename to...
333 (stap_probe::set_semaphore): ...this. Adjust code to reflect
334 change.
335 (stap_clear_semaphore): Rename to...
336 (stap_probe::clear_semaphore): ...this. Adjust code to
337 reflect change.
338 (stap_probe::get_static_ops): New method.
339 (handle_stap_probe): Adjust code to create instance of
340 'stap_probe'.
341 (stap_get_probes): Rename to...
342 (stap_static_probe_ops::get_probes): ...this. Adjust code to
343 reflect change.
344 (stap_probe_is_linespec): Rename to...
345 (stap_static_probe_ops::is_linespec): ...this. Adjust code to
346 reflect change.
347 (stap_type_name): Rename to...
348 (stap_static_probe_ops::type_name): ...this. Adjust code to
349 reflect change.
350 (stap_gen_info_probes_table_header): Rename to...
351 (stap_static_probe_ops::gen_info_probes_table_header):
352 ...this. Adjust code to reflect change.
353 (stap_gen_info_probes_table_values): Rename to...
354 (stap_probe::gen_info_probes_table_values): ...this. Adjust
355 code to reflect change.
356 (struct probe_ops stap_probe_ops): Delete.
357 (info_probes_stap_command): Use 'info_probes_for_spops'
358 instead of 'info_probes_for_ops'.
359 (_initialize_stap_probe): Use 'all_static_probe_ops' instead
360 of 'all_probe_ops'.
361
935676c9
SDJ
3622017-11-22 Sergio Durigan Junior <sergiodj@redhat.com>
363
364 * break-catch-throw.c (fetch_probe_arguments): Use
365 'probe.prob' instead of 'probe.probe'.
366 * breakpoint.c (create_longjmp_master_breakpoint): Call
367 'can_evaluate_arguments' and 'get_relocated_address' methods
368 from probe.
369 (create_exception_master_breakpoint): Likewise.
370 (add_location_to_breakpoint): Use 'sal->prob' instead of
371 'sal->probe'.
372 (bkpt_probe_insert_location): Call 'set_semaphore' method from
373 probe.
374 (bkpt_probe_remove_location): Likewise, for 'clear_semaphore'.
375 * elfread.c (elf_get_probes): Use 'static_probe_ops' instead
376 of 'probe_ops'.
377 (probe_key_free): Call 'delete' on probe.
378 (check_exception_resume): Use 'probe.prob' instead of
379 'probe.probe'.
380 * location.c (string_to_event_location_basic): Call
381 'probe_linespec_to_static_ops'.
382 * probe.c (class any_static_probe_ops): New class.
383 (any_static_probe_ops any_static_probe_ops): New variable.
384 (parse_probes_in_pspace): Receive 'static_probe_ops' as
385 argument. Adjust code to reflect change.
386 (parse_probes): Use 'static_probe_ops' instead of
387 'probe_ops'. Adjust code to reflect change.
388 (find_probes_in_objfile): Call methods to get name and
389 provider from probe.
390 (find_probe_by_pc): Use 'result.prob' instead of
391 'result.probe'. Call 'get_relocated_address' method from
392 probe.
393 (collect_probes): Adjust comment and argument list to receive
394 'static_probe_ops' instead of 'probe_ops'. Adjust code to
395 reflect change. Call necessary methods from probe.
396 (compare_probes): Call methods to get name and provider from
397 probes.
398 (gen_ui_out_table_header_info): Receive 'static_probe_ops'
399 instead of 'probe_ops'. Use 'std::vector' instead of VEC,
400 adjust code accordingly.
401 (print_ui_out_not_applicables): Likewise.
402 (info_probes_for_ops): Rename to...
403 (info_probes_for_spops): ...this. Receive 'static_probe_ops'
404 as argument instead of 'probe_ops'. Adjust code. Call
405 necessary methods from probe.
406 (info_probes_command): Use 'info_probes_for_spops'.
407 (enable_probes_command): Pass correct argument to
408 'collect_probes'. Call methods from probe.
409 (disable_probes_command): Likewise.
410 (get_probe_address): Move to 'any_static_probe_ops::get_address'.
411 (get_probe_argument_count): Move to
412 'any_static_probe_ops::get_argument_count'.
413 (can_evaluate_probe_arguments): Move to
414 'any_static_probe_ops::can_evaluate_arguments'.
415 (evaluate_probe_argument): Move to
416 'any_static_probe_ops::evaluate_argument'.
417 (probe_safe_evaluate_at_pc): Use 'probe.prob' instead of
418 'probe.probe'.
419 (probe_linespec_to_ops): Rename to...
420 (probe_linespec_to_static_ops): ...this. Adjust code.
421 (probe_any_is_linespec): Rename to...
422 (any_static_probe_ops::is_linespec): ...this.
423 (probe_any_get_probes): Rename to...
424 (any_static_probe_ops::get_probes): ...this.
425 (any_static_probe_ops::type_name): New method.
426 (any_static_probe_ops::gen_info_probes_table_header): New
427 method.
428 (compute_probe_arg): Use 'pc_probe.prob' instead of
429 'pc_probe.probe'. Call methods from probe.
430 (compile_probe_arg): Likewise.
431 (std::vector<const probe_ops *> all_probe_ops): Delete.
432 (std::vector<const static_probe_ops *> all_static_probe_ops):
433 New variable.
434 (_initialize_probe): Use 'all_static_probe_ops' instead of
435 'all_probe_ops'.
436 * probe.h (struct info_probe_column) <field_name>: Delete
437 extraneous newline
438 (info_probe_column_s): Delete type and VEC.
439 (struct probe_ops): Delete. Replace with...
440 (class static_probe_ops): ...this and...
441 (clas probe): ...this.
442 (struct bound_probe) <bound_probe>: Delete extraneous
443 newline. Adjust constructor to receive 'probe' instead of
444 'struct probe'.
445 <probe>: Rename to...
446 <prob>: ...this. Delete extraneous newline.
447 <objfile>: Delete extraneous newline.
448 (register_probe_ops): Delete unused prototype.
449 (info_probes_for_ops): Rename to...
450 (info_probes_for_spops): ...this. Adjust comment.
451 (get_probe_address): Move to 'probe::get_address'.
452 (get_probe_argument_count): Move to
453 'probe::get_argument_count'.
454 (can_evaluate_probe_arguments): Move to
455 'probe::can_evaluate_arguments'.
456 (evaluate_probe_argument): Move to 'probe::evaluate_argument'.
457 * solib-svr4.c (struct svr4_info): Adjust comment.
458 (struct probe_and_action) <probe>: Rename to...
459 <prob>: ...this.
460 (register_solib_event_probe): Receive 'probe' instead of
461 'struct probe' as argument. Use 'prob' instead of 'probe'
462 when applicable.
463 (solib_event_probe_action): Call 'get_argument_count' method
464 from probe. Adjust comment.
465 (svr4_handle_solib_event): Adjust comment. Call
466 'evaluate_argument' method from probe.
467 (svr4_create_probe_breakpoints): Call 'get_relocated_address'
468 from probe.
469 (svr4_create_solib_event_breakpoints): Use 'probe' instead of
470 'struct probe'. Call 'can_evaluate_arguments' from probe.
471 * symfile.h: Forward declare 'class probe' instead of 'struct
472 probe'.
473 * symtab.h: Likewise.
474 (struct symtab_and_line) <probe>: Rename to...
475 <prob>: ...this.
476 * tracepoint.c (start_tracing): Use 'prob' when applicable.
477 Call probe methods.
478 (stop_tracing): Likewise.
479
8f6cb6c3
JB
4802017-11-22 Joel Brobecker <brobecker@adacore.com>
481
482 * ravenscar-thread.c (ravenscar_inferior_created): Remove
483 trailing newline at end of string in call to warning.
484
479f8de1
SM
4852017-11-22 Simon Marchi <simon.marchi@polymtl.ca>
486
487 * osdata.h: Include vector isntead of vec.h.
488 (osdata_column_s): Remove typedef.
489 (struct osdata_column): Add constructor.
490 <name, value>: Change type to std::string.
491 (DEF_VEC_O (osdata_column_s)): Remove.
492 (osdata_item_s): Remove typedef.
493 (struct osdata_item) <columns>: Change type to std::vector.
494 (DEF_VEC_O (osdata_item_s)): Remove.
495 (struct osdata): Add constructor.
496 <type>: Change type to std::string.
497 <items>: Change type to std::vector.
498 (osdata_p): Remove typedef.
499 (DEF_VEC_P (osdata_p)): Remove.
500 (osdata_parse): Return a unique_ptr.
501 (osdata_free): Remove.
502 (make_cleanup_osdata_free): Remove.
503 (get_osdata): Return a unique_ptr.
504 (get_osdata_column): Return pointer to std::string, take a
505 reference to osdata_item as parameter.
506 * osdata.c (struct osdata_parsing_data) <osdata>: Change type to
507 unique_ptr.
508 <property_name>: Change type to std::string.
509 (osdata_start_osdata): Allocate osdata with new and adjust.
510 (osdata_start_item): Adjust.
511 (osdata_start_column): Adjust.
512 (osdata_end_column): Adjust.
513 (clear_parsing_data): Remove.
514 (osdata_parse): Return a unique_ptr and adjust, remove cleanup.
515 (osdata_item_clear): Remove.
516 (get_osdata): return a unique_ptr and adjust.
517 (get_osdata_column): Return a pointer to std::string and adjust.
518 (info_osdata): Adjust.
519 * mi/mi-main.c: Include <map>.
520 (free_vector_of_osdata_items): Remove.
521 (list_available_thread_groups): Adjust, use std::map instead of
522 splay tree.
523
41bd68f5
SM
5242017-11-22 Simon Marchi <simon.marchi@ericsson.com>
525
526 * stack.c (iterate_over_block_locals): Add LOC_OPTIMIZED_OUT
527 case in switch.
528
7e2fd2f4
SM
5292017-11-22 Simon Marchi <simon.marchi@polymtl.ca>
530
531 * varobj.h (DEF_VEC_P (varobj_p)): Remove.
532
0604393c
SM
5332017-11-22 Simon Marchi <simon.marchi@polymtl.ca>
534
535 * varobj.h (struct varobj_update_result): Add constructor, add
536 move constructor, disable copy and assign, initialize fields.
537 <newobj>: Change type to std::vector.
538 (varobj_update): Return std::vector.
539 * varobj.c (install_dynamic_child): Change VEC parameters to
540 std::vector and adjust.
541 (update_dynamic_varobj_children): Likewise.
542 (varobj_update): Return std::vector and adjust.
543 * mi/mi-cmd-var.c (varobj_update_one): Adjust to vector changes.
544
ddf0ea08
SM
5452017-11-22 Simon Marchi <simon.marchi@polymtl.ca>
546
547 * varobj.h (struct varobj) <parent>: Remove const.
548 <children>: Change type to std::vector.
549 (varobj_list_children): Return std::vector const reference.
550 (varobj_restrict_range): Change parameter type to std::vector
551 const reference.
552 * varobj.c (varobj_has_more): Adjust.
553 (varobj_restrict_range): Change parameter type to std::vector
554 const reference and adjust.
555 (install_dynamic_child): Adjust.
556 (update_dynamic_varobj_children): Adjust.
557 (varobj_list_children): Return std::vector const reference and
558 adjust.
559 (varobj_add_child): Adjust.
560 (update_type_if_necessary): Adjust.
561 (varobj_update): Adjust.
562 (delete_variable_1): Adjust.
563 * ada-varobj.c (ada_value_has_mutated): Adjust.
564 * mi/mi-cmd-var.c (mi_cmd_var_list_children): Adjust.
565
9e5b9d2b
SM
5662017-11-22 Simon Marchi <simon.marchi@polymtl.ca>
567
568 * varobj.h (struct varobj): Add constructor and destructor,
569 initialize fields.
570 * varobj.c (struct varobj_root): Initialize fields.
571 (struct varobj_dynamic): Initialize fields.
572 (varobj_create): Use unique_ptr instead of cleanup. Create
573 varobj with new instead of new_root_variable.
574 (delete_variable_1): Free variable with delete instead of
575 free_variable.
576 (create_child_with_value): Create variable with new instead of
577 new_variable.
578 (varobj::varobj): New.
579 (varobj::~varobj): New (body mostly coming from free_variable).
580 (new_variable): Remove.
581 (free_variable): Remove.
582 (do_free_variable_cleanup): Remove.
583 (make_cleanup_free_variable): Remove.
584
fc35dab1
UW
5852017-11-22 Ulrich Weigand <uweigand@de.ibm.com>
586
587 * core-regset.c: Remove file.
588 * Makefile.in (ALLDEPFILES): Remove core-regset.c.
589
2400729e
UW
5902017-11-22 Ulrich Weigand <uweigand@de.ibm.com>
591
592 * NEWS: Document use of GNU MPFR.
593 * README: Likewise.
594
595 * Makefile.in (LIBMPFR): Add define.
596 (CLIBS): Add $(LIBMPFR).
597 * configure.ac: Add --with-mpfr configure option.
598 * configure: Regenerate.
599 * config.in: Regenerate.
600
601 * target-float.c [HAVE_LIBMPFR]: Include <mpfr.h>.
602 (class mpfr_float_ops): New type.
603 (mpfr_float_ops::from_target): Two new overloaded functions.
604 (mpfr_float_ops::to_target): Likewise.
605 (mpfr_float_ops::to_string): New function.
606 (mpfr_float_ops::from_string): Likewise.
607 (mpfr_float_ops::to_longest): Likewise.
608 (mpfr_float_ops::from_longest): Likewise.
609 (mpfr_float_ops::from_ulongest): Likewise.
610 (mpfr_float_ops::to_host_double): Likewise.
611 (mpfr_float_ops::from_host_double): Likewise.
612 (mpfr_float_ops::convert): Likewise.
613 (mpfr_float_ops::binop): Likewise.
614 (mpfr_float_ops::compare): Likewise.
615 (get_target_float_ops): Use mpfr_float_ops if available.
616
7a26362d
UW
6172017-11-22 Ulrich Weigand <uweigand@de.ibm.com>
618
619 * target-float.c: Do not include <math.h>.
620 Include <cmath> and <limits>.
621 (DOUBLEST): Do not define.
622 (class target_float_ops): New type.
623 (class host_float_ops): New templated type.
624 (class decimal_float_ops): New type.
625
626 (floatformat_to_doublest): Rename to ...
627 (host_float_ops<T>::from_target): ... this. Use template type T
628 instead of DOUBLEST. Use C++ math routines. Update recursive calls.
629 (host_float_ops<T>::from_target): New overload using a type argument.
630 (floatformat_from_doublest): Rename to ...
631 (host_float_ops<T>::to_target): ... this. Use template type T
632 instead of DOUBLEST. Use C++ math routines. Update recursive calls.
633 (host_float_ops<T>::to_target): New overload using a type argument.
634 (floatformat_printf_format): New function.
635 (struct printf_length_modifier): New templated type.
636 (floatformat_to_string): Rename to ...
637 (host_float_ops<T>::to_string): ... this. Use type instead of
638 floatformat argument. Use floatformat_printf_format and
639 printf_length_modifier. Remove special handling of invalid numbers,
640 infinities and NaN (moved to target_float_to_string).
641 (struct scanf_length_modifier): New templated type.
642 (floatformat_from_string): Rename to ...
643 (host_float_ops<T>::from_string): ... this. Use type instead of
644 floatformat argument. Use scanf_length_modifier.
645 (floatformat_to_longest): Rename to ...
646 (host_float_ops<T>::to_longest): ... this. Use type instead of
647 floatformat argument. Handle out-of-range values deterministically.
648 (floatformat_from_longest): Rename to ...
649 (host_float_ops<T>::from_longest): ... this. Use type instead of
650 floatformat argument.
651 (floatformat_from_ulongest): Rename to ...
652 (host_float_ops<T>::from_ulongest): ... this. Use type instead of
653 floatformat argument.
654 (floatformat_to_host_double): Rename to ...
655 (host_float_ops<T>::to_host_double): ... this. Use type instead of
656 floatformat argument.
657 (floatformat_from_host_double): Rename to ...
658 (host_float_ops<T>::from_host_double): ... this. Use type instead of
659 floatformat argument.
660 (floatformat_convert): Rename to ...
661 (host_float_ops<T>::convert): ... this. Use type instead of
662 floatformat arguments. Remove handling of no-op conversions.
663 (floatformat_binop): Rename to ...
664 (host_float_ops<T>::binop): ... this. Use type instead of
665 floatformat arguments.
666 (floatformat_compare): Rename to ...
667 (host_float_ops<T>::compare): ... this. Use type instead of
668 floatformat arguments.
669
670 (match_endianness): Use type instead of length/byte_order arguments.
671 (set_decnumber_context): Likewise.
672 (decimal_from_number): Likewise. Update calls.
673 (decimal_to_number): Likewise.
674 (decimal_is_zero): Likewise. Update calls. Move to earlier in file.
675 (decimal_float_ops::to_host_double): New dummy function.
676 (decimal_float_ops::from_host_double): Likewise.
677 (decimal_to_string): Rename to ...
678 (decimal_float_ops::to_string): ... this. Use type instead of
679 length/byte_order arguments. Update calls.
680 (decimal_from_string): Rename to ...
681 (decimal_float_ops::from_string): ... this. Use type instead of
682 length/byte_order arguments. Update calls.
683 (decimal_from_longest): Rename to ...
684 (decimal_float_ops::from_longest): ... this. Use type instead of
685 length/byte_order arguments. Update calls.
686 (decimal_from_ulongest): Rename to ...
687 (decimal_float_ops::from_ulongest): ... this. Use type instead of
688 length/byte_order arguments. Update calls.
689 (decimal_to_longest): Rename to ...
690 (decimal_float_ops::to_longest): ... this. Use type instead of
691 length/byte_order arguments. Update calls.
692 (decimal_binop): Rename to ...
693 (decimal_float_ops::binop): ... this. Use type instead of
694 length/byte_order arguments. Update calls.
695 (decimal_compare): Rename to ...
696 (decimal_float_ops::compare): ... this. Use type instead of
697 length/byte_order arguments. Update calls.
698 (decimal_convert): Rename to ...
699 (decimal_float_ops::convert): ... this. Use type instead of
700 length/byte_order arguments. Update calls.
701
702 (target_float_same_category_p): New function.
703 (target_float_same_format_p): Likewise.
704 (target_float_format_length): Likewise.
705 (enum target_float_ops_kind): New type.
706 (get_target_float_ops_kind): New function.
707 (get_target_float_ops): Three new overloaded functions.
708
709 (target_float_is_zero): Update call.
710 (target_float_to_string): Add special handling of invalid numbers,
711 infinities and NaN (moved from floatformat_to_string). Use
712 target_float_ops callback.
713 (target_float_from_string): Use target_float_ops callback.
714 (target_float_to_longest): Likewise.
715 (target_float_from_longest): Likewise.
716 (target_float_from_ulongest): Likewise.
717 (target_float_to_host_double): Likewise.
718 (target_float_from_host_double): Likewise.
719 (target_float_convert): Add special case for no-op conversions.
720 Use target_float_ops callback.
721 (target_float_binop): Use target_float_ops callback.
722 (target_float_compare): Likewise.
723
a9f26f60
YQ
7242017-11-22 Yao Qi <yao.qi@linaro.org>
725
726 * python/py-gdb-readline.c (gdbpy_readline_wrapper): Use strcpy.
727
29f9a567
YQ
7282017-11-22 Yao Qi <yao.qi@linaro.org>
729
730 * cli/cli-decode.c (help_list): Use memcpy instead of strncpy.
731 * cp-namespace.c (cp_lookup_transparent_type_loop): Likewise.
732
3b1b69bf
JG
7332017-11-21 Jerome Guitton <guitton@adacore.com>
734
735 * ravenscar-thread.c (ravenscar_wait): Update inferior ptid
736 with event ptid from the lower layer before doing the
737 ravenscar-specific update.
738
54aa6c67
JB
7392017-11-21 Joel Brobecker <brobecker@adacore.com>
740
741 * ravenscar-thread.c (is_ravenscar_task): Also verify that
742 the ptid's TID is nonzero.
743
cf3fbed4
JB
7442017-11-21 Joel Brobecker <brobecker@adacore.com>
745
746 * ada-lang.h (ada_get_tcb_types_info): Add declaration.
747 * ada-tasks.c (ada_get_tcb_types_info): Renames get_tcb_types_info.
748 Make non-static. Change return type to char *. Adjust code
749 accordingly. Rewrite the function's documentation.
750 (read_atcb): Adjust call to get_tcb_types_info accordingly.
751 * ravenscar-thread.c (ravenscar_inferior_created): Check that
752 we have enough debugging information in the runtime to support
753 Ada task debugging before we enable the ravenscar-thread layer.
754
9edcc12f
JB
7552017-11-21 Joel Brobecker <brobecker@adacore.com>
756
757 * ada-lang.h (ada_get_task_info_from_ptid): Add declaration.
758 * ada-tasks.c (ada_get_task_info_from_ptid): New function.
759 * ravenscar-thread.c: Add into comment.
760 (base_magic_null_ptid): Delete.
761 (base_ptid): Change documentation.
762 (ravenscar_active_task): Renames ravenscar_running_thread.
763 All callers updated throughout.
764 (is_ravenscar_task, ravenscar_get_thread_base_cpu): New function.
765 (ravenscar_task_is_currently_active): Likewise.
766 (get_base_thread_from_ravenscar_task): Ditto.
767 (ravenscar_update_inferior_ptid): Adjust to handle multiple CPUs.
768 (ravenscar_runtime_initialized): Likewise.
769 (get_running_thread_id): Add new parameter "cpu". Adjust
770 implementation to handle this new parameter.
771 (ravenscar_fetch_registers): Small adjustment to use
772 is_ravenscar_task and ravenscar_task_is_currently_active in
773 order to decide whether to use the target beneath or this
774 module's arch_ops.
775 (ravenscar_store_registers, ravenscar_prepare_to_store): Likewise.
776 (ravenscar_stopped_by_sw_breakpoint): Use
777 get_base_thread_from_ravenscar_task to get the underlying
778 thread, rather than using base_ptid.
779 (ravenscar_stopped_by_hw_breakpoint, ravenscar_stopped_by_watchpoint)
780 (ravenscar_stopped_data_address, ravenscar_core_of_thread):
781 Likewise.
782 (ravenscar_inferior_created): Do not set base_magic_null_ptid.
783
65d40437
JB
7842017-11-21 Joel Brobecker <brobecker@adacore.com>
785
786 * ada-lang.h (struct ada_task_info) <base_cpu>: New field.
787 * ada-lang.c (struct atcb_fieldno) <base_cpu>: New field.
788 (get_tcb_types_info): Set fieldnos.base_cpu.
789 (read_atcb): Set task_info->base_cpu.
790 (info_task): Print "Base CPU" info if set by runtime.
791
e02544b2
JB
7922017-11-21 Joel Brobecker <brobecker@adacore.com>
793
794 * ravenscar-thread.c (ravenscar_stopped_by_sw_breakpoint)
795 (ravenscar_stopped_by_hw_breakpoint, ravenscar_stopped_by_watchpoint)
796 (ravenscar_stopped_data_address, ravenscar_core_of_thread):
797 New functions.
798 (init_ravenscar_thread_ops): Set the to_stopped_by_sw_breakpoint,
799 to_stopped_by_hw_breakpoint, to_stopped_by_watchpoint,
800 to_stopped_data_address and to_core_of_thread fields of
801 ravenscar_ops.
802
ed0f4273
UW
8032017-11-21 Ulrich Weigand <uweigand@de.ibm.com>
804
805 * ppc-tdep.h (enum powerpc_long_double_abi): New data type.
806 (struct gdbarch_tdep): New member long_double_abi.
807 * rs6000-tdep.c (rs6000_gdbarch_init): Initialize long_double_abi
808 member of tdep struct based on Tag_GNU_Power_ABI_FP attribute.
809 * ppc-linux-tdep.c (ppc_linux_init_abi): Install long double data
810 format depending on long_double_abi tdep member.
811 (ppc_floatformat_for_type): Handle __ibm128 type.
812
0fc76421
SM
8132017-11-20 Simon Marchi <simon.marchi@polymtl.ca>
814
815 * darwin-nat.c (set_enable_mach_exceptions): Constify parameter.
816
e6b2f5ef
PA
8172017-11-21 Pedro Alves <palves@redhat.com>
818
819 * dwarf2read.c (mapped_index::find_name_components_bounds)
820 <completion mode, upper bound>: Use std::lower_bound instead of
821 std::upper_bound.
822 (test_mapped_index_find_name_component_bounds): Remove incorrect
823 "t1_fund" from expected symbols.
824
5c58de74
PA
8252017-11-21 Pedro Alves <palves@redhat.com>
826
827 * dwarf2read.c (mapped_index::name_components_casing): New field.
828 (mapped_index) <build_name_components,
829 find_name_components_bounds): Declare new methods.
830 (mapped_index::find_name_components_bounds)
831 (mapped_index::build_name_components): New methods, factored out
832 from dw2_expand_symtabs_matching_symbol.
833 (check_find_bounds_finds)
834 (test_mapped_index_find_name_component_bounds): New.
835 (run_test): Rename to ...
836 (test_dw2_expand_symtabs_matching_symbol): ... this.
837 (run_test): Reimplement.
838
e1ef7d7a
PA
8392017-11-21 Pedro Alves <palves@redhat.com>
840
841 * cp-name-parser.y (cp_ident_is_alpha, cp_ident_is_alnum): New.
842 (symbol_end): Use cp_ident_is_alnum.
843 (yylex): Use cp_ident_is_alpha and cp_ident_is_alnum.
844 * dwarf2read.c (make_sort_after_prefix_name): New function.
845 (dw2_expand_symtabs_matching_symbol): Use it.
846 (test_symbols): Add more symbols.
847 (run_test): Add tests.
848
cf724bc9
TT
8492017-11-17 Tom Tromey <tom@tromey.com>
850
851 * symtab.h (enum symbol_subclass_kind): New.
852 (struct symbol) <is_cplus_template_function, is_rust_vtable>:
853 Remove.
854 <subclass>: New member.
855 (SYMBOL_IS_CPLUS_TEMPLATE_FUNCTION): Update.
856 * rust-lang.c (rust_get_trait_object_pointer): Update.
857 * dwarf2read.c (read_func_scope): Update.
858 (read_variable): Update.
859
68e745e3
TT
8602017-11-17 Tom Tromey <tom@tromey.com>
861
862 * dwarf2read.c (read_func_scope): Update.
863 * symtab.h (struct template_symbol): Derive from symbol.
864 <base>: Remove.
865
71a3c369
TT
8662017-11-17 Tom Tromey <tom@tromey.com>
867
868 * symtab.h (struct symbol) <is_rust_vtable>: New member.
869 (struct rust_vtable_symbol): New.
870 (find_symbol_at_address): Declare.
871 * symtab.c (find_symbol_at_address): New function.
872 * symfile.h (struct quick_symbol_functions)
873 <find_compunit_symtab_by_address>: New member.
874 * symfile-debug.c (debug_qf_find_compunit_symtab_by_address): New
875 function.
876 (debug_sym_quick_functions): Link to
877 debug_qf_find_compunit_symtab_by_address.
878 * rust-lang.c (rust_get_trait_object_pointer): New function.
879 (rust_evaluate_subexp) <case UNOP_IND>: New case. Call
880 rust_get_trait_object_pointer.
881 * psymtab.c (psym_relocate): Clear psymbol_map.
882 (psym_fill_psymbol_map, psym_find_compunit_symtab_by_address): New
883 functions.
884 (psym_functions): Link to psym_find_compunit_symtab_by_address.
885 * objfiles.h (struct objfile) <psymbol_map>: New member.
886 * dwarf2read.c (dwarf2_gdb_index_functions): Update.
887 (process_die) <DW_TAG_variable>: New case. Call read_variable.
888 (rust_containing_type, read_variable): New functions.
889
7468702d
SM
8902017-11-17 Simon Marchi <simon.marchi@polymtl.ca>
891
892 * common/gdb_vecs.h (DEF_VEC_I (int)): Remove.
893
37269bc9
SM
8942017-11-17 Simon Marchi <simon.marchi@polymtl.ca>
895
896 * common/filestuff.c: Include <algorithm>.
897 (open_fds): Change type to std::vector<int>.
898 (do_mark_open_fd): Adjust.
899 (unmark_fd_no_cloexec): Adjust.
900 (do_close): Adjust.
901
5c632425
SM
9022017-11-17 Simon Marchi <simon.marchi@polymtl.ca>
903
904 * breakpoint.c (output_thread_groups): Take an std::vector.
905 (print_one_breakpoint_location): Adjust.
906
ced9779b
JB
9072017-11-17 Joel Brobecker <brobecker@adacore.com>
908
909 * ada-lang.c (resolve_subexp): Add handling of OP_VAR_MSYM_VALUE.
910 (ada_evaluate_subexp_for_cast): New function.
911 (ada_evaluate_subexp) <UNOP_CAST>: Replace code by call to
912 ada_evaluate_subexp_for_cast.
913 (ada_evaluate_subexp) <nosideret>: Replace code by call to
914 eval_skip_value.
915 * eval.c (evaluate_var_value): Make non-static.
916 (evaluate_var_msym_value, eval_skip_value): Likewise.
917 * value.h (evaluate_var_value, evaluate_var_msym_value)
918 (eval_skip_value): Declare.
919
b7e22850
JB
9202017-11-16 Joel Brobecker <brobecker@adacore.com>
921
922 * ada-lang.c (ada_value_cast): Remove parameter "noside".
923 Update all callers.
924
9ccabccd
PA
9252017-11-16 Pedro Alves <palves@redhat.com>
926
927 * python/py-unwind.c (pyuw_sniffer): Translate
928 PyExc_KeyboardInterrupt to a GDB Quit exception.
929
d930703d
PA
9302017-11-16 Pedro Alves <palves@redhat.com>
931
932 * infrun.c (resume_cleanups): Delete.
933 (resume): No longer install a resume_cleanups cleanup nor call
934 QUIT.
935 (proceed): Pass the terminal to the inferior.
936 (keep_going_pass_signal): No longer install a resume_cleanups
937 cleanup.
938
38dc2859
PA
9392017-11-16 Pedro Alves <palves@redhat.com>
940
941 * inf-loop.c (inferior_event_handler): Don't swallow the exception
942 if the prompt is blocked.
943
688fca4f
PA
9442017-11-16 Pedro Alves <palves@redhat.com>
945
946 * breakpoint.c (insert_bp_location): Replace bp_err and
947 bp_err_message locals by a gdb_exception local.
948
e2c33ac7
PA
9492017-11-16 Pedro Alves <palves@redhat.com>
950
951 * inflow.c (scoped_ignore_sigttou): New class.
952 (child_terminal_ours_1, new_tty): Use it.
953
d7236961
UW
9542017-11-16 Ulrich Weigand <uweigand@de.ibm.com>
955
956 * target-float.c (decimal_from_number): Add byte_order argument and
957 call match_endianness. Error if unknown floating-point type.
958 (decimal_to_number): Add byte_order argument and call match_endianness.
959 (decimal_from_longest): Update call. Do not call match_endianness.
960 (decimal_from_ulongest): Likewise.
961 (decimal_binop): Likewise.
962 (decimal_is_zero): Likewise.
963 (decimal_compare): Likewise.
964 (decimal_convert): Likewise.
965
d8ae99a7
PM
9662017-11-16 Phil Muldoon <pmuldoon@redhat.com>
967
968 * python/python.c (gdbpy_rbreak): New function.
969 * NEWS: Document Python rbreak feature.
970
c632b645
YQ
9712017-11-16 Yao Qi <yao.qi@linaro.org>
972
973 * features/tic6x-c62x.xml: Remove.
974 * features/tic6x-c64x.xml: Remove.
975 * features/tic6x-c64xp.xml: Remove.
976
a014b87a
JB
9772017-11-15 John Baldwin <jhb@FreeBSD.org>
978
979 * symtab.h: Include <array>.
980
94765011
JB
9812017-11-15 John Baldwin <jhb@FreeBSD.org>
982
983 * bsd-kvm.c (bsd_kvm_cmd): Constify 'arg'.
984 (bsd_kvm_proc_cmd): Likewise.
985
625ad440
SM
9862017-11-15 Simon Marchi <simon.marchi@ericsson.com>
987
988 * tui/tui-win.c (window_name_completer): Replace VEC with
989 std::vector.
990
c0c11fa9
AC
9912017-11-15 Andrew Cagney <cagney@gnu.org>
992
993 * MAINTAINERS: Remove no-longer applicable entries.
994
34a7ebaf
AC
9952017-11-15 Andrew Cagney <cagney@gnu.org>
996
997 * MAINTAINERS: Move self to Past Maintainers.
998
5334ef39
YQ
9992017-11-15 Yao Qi <yao.qi@linaro.org>
1000
1001 * features/Makefile (XMLTOC): Remove nios2-linux.xml.
1002 * features/nios2-linux.c: Remove.
1003 * nios2-linux-tdep.c (_initialize_nios2_linux_tdep): Don't call
1004 initialize_tdesc_nios2_linux.
1005
a714b0d6
YQ
10062017-11-15 Yao Qi <yao.qi@linaro.org>
1007
1008 * m68hc11-tdep.c (M68HC11_NUM_REGS): Change it to
1009 M68HC11_LAST_HARD_REG + 1.
1010
92ffd475
PC
10112017-11-14 Paul Carroll <pcarroll@codesourcery.com>
1012
1013 PR gdb/22388
1014 * remote.c (remote_write_bytes_aux, remote_read_bytes_1,
1015 remote_read_bytes, remote_write_qxfer, remote_xfer_partial):
1016 Return TARGET_XFER_EOF if size of returned data is 0.
1017
07431908
SM
10182017-11-14 Simon Marchi <simon.marchi@ericsson.com>
1019
1020 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
1021 memory-map-selftests.c.
1022 (SUBDIR_UNITTESTS_OBS): Add memory-map-selftests.o.
1023 * memory-map.c (memory_map_start_memory): Fix computation of hi
1024 address.
1025 * unittests/memory-map-selftests.c: New file.
1026
31432a67
JB
10272017-11-09 Joel Brobecker <brobecker@adacore.com>
1028
1029 * ada-lang.c: Fix some typos in the general command documenting
1030 how Ada expressions are being evaluated and how their result
1031 is printed.
1032
e793c052
TT
10332017-11-09 Tom Tromey <tom@tromey.com>
1034
1035 * psymtab.c (psymbol_hash): Do not hash string contents.
1036 (psymbol_compare): Add comment.
1037
7e8835c5
TT
10382017-11-09 Tom Tromey <tom@tromey.com>
1039
1040 * dictionary.c (dict_hash): Move "TKB" check into the "switch".
1041
286acbb5
JB
10422017-11-08 Joel Brobecker <brobecker@adacore.com>
1043
1044 * ada-exp.y (write_var_from_sym): Remove parameter
1045 "orig_left_context". Update all callers.
1046
b44ec619
SM
10472017-11-08 Simon Marchi <simon.marchi@ericsson.com>
1048
1049 * tracepoint.h (class collection_list) <stringify>: Return
1050 std::vector<std::string>.
1051 (encode_actions_rsp): Change parameters to
1052 std::vector<std::string> *.
1053 * tracepoint.c (collection_list::stringify): Return
1054 std::vector<std::string> and adjust accordingly.
1055 (encode_actions_rsp): Changee parameters to
1056 std::vector<std::string> and adjust accordingly.
1057 * remote.c (free_actions_list),
1058 free_actions_list_cleanup_wrapper): Remove.
1059 (remote_download_tracepoint): Adjust to std::vector.
1060
2f4732b0
TT
10612017-11-08 Tom Tromey <tom@tromey.com>
1062
1063 * dwarf2read.c (symbolp): Remove typedef.
1064 (read_func_scope): Use std::vector.
1065 (process_structure_scope): Use std::vector.
1066
f9d67a22
PA
10672017-11-08 Pedro Alves <palves@redhat.com>
1068
1069 * ada-lang.c (ada_make_symbol_completion_list): Use
1070 completion_skip_symbol.
1071 * symtab.c (symbol_is_function_or_method(minimal_symbol*)): New.
1072 (symbol_is_function_or_method(symbol*)): New.
1073 (add_symtab_completions): Add complete_symbol_mode parameter. Use
1074 completion_skip_symbol.
1075 (default_collect_symbol_completion_matches_break_on): Use
1076 completion_skip_symbol. Pass down mode.
1077 (collect_file_symbol_completion_matches): Pass down mode.
1078 * symtab.h (symbol_is_function_or_method): New declarations.
1079 (completion_skip_symbol): New template function.
1080
56d87ef7
PA
10812017-11-08 Pedro Alves <palves@redhat.com>
1082
1083 * linespec.c (iterate_over_all_matching_symtabs): Add
1084 search_domain parameter. Pass it down to expand_symtabs_matching.
1085 (decode_objc): Request FUNCTIONS_DOMAIN symbols only.
1086 (lookup_prefix_sym): Adjust by passing ALL_DOMAIN as
1087 search_domain.
1088 (add_all_symbol_names_from_pspace): Add search_domain parameter.
1089 Pass it down.
1090 (find_method, find_function_symbols): Request FUNCTIONS_DOMAIN
1091 symbols.
1092 (add_matching_symbols_to_info): Add search_domain parameter. Pass
1093 it down.
1094
1b026119
PA
10952017-11-08 Pedro Alves <palves@redhat.com>
1096
1097 * ada-lang.c (ada_make_symbol_completion_list): Remove text and
1098 text_len locals and don't pass them down.
1099 * symtab.c (completion_list_add_name): Remove
1100 sym_text/sym_text_len parameters and adjust.
1101 (completion_list_add_symbol, completion_list_add_msymbol)
1102 (completion_list_objc_symbol, completion_list_add_fields)
1103 (add_symtab_completions): Likewise.
1104 (default_collect_symbol_completion_matches_break_on)
1105 (collect_file_symbol_completion_matches): Remove sym_text_len
1106 local and don't pass it down.
1107 * symtab.h (completion_list_add_name): Remove
1108 sym_text/sym_text_len parameters.
1109
c62446b1
PA
11102017-11-08 Pedro Alves <palves@redhat.com>
1111
1112 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
1113 unittests/lookup_name_info-selftests.c.
1114 (SUBDIR_UNITTESTS_OBS): Add lookup_name_info-selftests.o.
1115 * cp-support.c: Include "selftest.h".
1116 (cp_remove_params_1): Rename from cp_remove_params. Add
1117 'require_param' parameter, and handle it.
1118 (cp_remove_params): Reimplement.
1119 (cp_remove_params_if_any): New.
1120 (selftests::quote): New.
1121 (selftests::check_remove_params): New.
1122 (selftests::test_cp_remove_params): New.
1123 (_initialize_cp_support): Install
1124 selftests::test_cp_remove_params.
1125 * cp-support.h (cp_remove_params_if_any): Declare.
1126 * dwarf2read.c :Include "selftest.h".
1127 (dw2_expand_symtabs_matching_symbol): Use
1128 lookup_name_info::make_ignore_params.
1129 (selftests::dw2_expand_symtabs_matching::mock_mapped_index)
1130 (selftests::dw2_expand_symtabs_matching::string_or_null)
1131 (selftests::dw2_expand_symtabs_matching::check_match)
1132 (selftests::dw2_expand_symtabs_matching::test_symbols)
1133 (selftests::dw2_expand_symtabs_matching::run_test): New.
1134 (_initialize_dwarf2_read): Register
1135 selftests::dw2_expand_symtabs_matching::run_test.
1136 * psymtab.c (psym_expand_symtabs_matching): Use
1137 lookup_name_info::make_ignore_params.
1138 * symtab.c (demangle_for_lookup_info::demangle_for_lookup_info):
1139 If the lookup name wants to ignore parameters, strip them.
1140 (compare_symbol_name): Remove sym_text/sym_text_len parameters and
1141 code handling '('.
1142 (completion_list_add_name): Don't pass down sym_text/sym_text_len.
1143 (default_collect_symbol_completion_matches_break_on): Don't try to
1144 strip parameters.
1145 * symtab.h (lookup_name_info::lookup_name_info): Add
1146 'ignore_parameters' parameter.
1147 (lookup_name_info::ignore_parameters)
1148 (lookup_name_info::make_ignore_params): New methods.
1149 (lookup_name_info::m_ignore_parameters): New field.
1150 * unittests/lookup_name_info-selftests.c: New file.
1151
61920122
PA
11522017-11-08 Pedro Alves <palves@redhat.com>
1153
1154 * dwarf2read.c (dw2_expand_marked_cus)
1155 (dw2_expand_symtabs_matching_symbol): Remove forward declarations.
1156 (dw2_expand_symtabs_matching): Move further below.
1157 (dw2_expand_marked_cus): Reindent.
1158
3f563c84
PA
11592017-11-08 Pedro Alves <palves@redhat.com>
1160
1161 * dwarf2read.c (byte_swap, MAYBE_SWAP): Move higher up in file.
1162 (struct name_component): New.
1163 (mapped_index::name_components): New field.
1164 (mapped_index::symbol_name_at): New method.
1165 (dwarf2_read_index): Call mapped_index ctor.
1166 (dw2_map_matching_symbols): Add comment about name_components
1167 table.
1168 (dw2_expand_symtabs_matching): Factor part to...
1169 (dw2_expand_symtabs_matching_symbol): ... this new function.
1170 Build name components table, and lookup symbols in it before
1171 calling the name matcher.
1172 (dw2_expand_marked_cus): New, factored out from
1173 dw2_expand_symtabs_matching.
1174 (dwarf2_per_objfile_free): Call the mapped_index's dtor.
1175
b5ec771e
PA
11762017-11-08 Pedro Alves <palves@redhat.com>
1177
1178 * ada-lang.c (ada_encode): Rename to ..
1179 (ada_encode_1): ... this. Add throw_errors parameter and handle
1180 it.
1181 (ada_encode): Reimplement.
1182 (match_name): Delete, folded into full_name.
1183 (resolve_subexp): No longer pass the encoded name to
1184 ada_lookup_symbol_list.
1185 (should_use_wild_match): Delete.
1186 (name_match_type_from_name): New.
1187 (ada_lookup_simple_minsym): Use lookup_name_info and the
1188 language's symbol_name_matcher_ftype.
1189 (add_symbols_from_enclosing_procs, ada_add_local_symbols)
1190 (ada_add_block_renamings): Adjust to use lookup_name_info.
1191 (ada_lookup_name): New.
1192 (add_nonlocal_symbols, ada_add_all_symbols)
1193 (ada_lookup_symbol_list_worker, ada_lookup_symbol_list)
1194 (ada_iterate_over_symbols): Adjust to use lookup_name_info.
1195 (ada_name_for_lookup): Delete.
1196 (ada_lookup_encoded_symbol): Construct a verbatim name.
1197 (wild_match): Reverse sense of return type. Use bool.
1198 (full_match): Reverse sense of return type. Inline bits of old
1199 match_name here.
1200 (ada_add_block_symbols): Adjust to use lookup_name_info.
1201 (symbol_completion_match): Delete, folded into...
1202 (ada_lookup_name_info::matches): ... .this new method.
1203 (symbol_completion_add): Delete.
1204 (ada_collect_symbol_completion_matches): Add name_match_type
1205 parameter. Adjust to use lookup_name_info and
1206 completion_list_add_name.
1207 (get_var_value, ada_add_global_exceptions): Adjust to use
1208 lookup_name_info.
1209 (ada_get_symbol_name_cmp): Delete.
1210 (do_wild_match, do_full_match): New functions.
1211 (ada_lookup_name_info::ada_lookup_name_info): New method.
1212 (ada_symbol_name_matches, ada_get_symbol_name_matcher): New
1213 functions.
1214 (ada_language_defn): Install ada_get_symbol_name_matcher.
1215 * ada-lex.l (processId): If name starts with '<', copy it
1216 verbatim.
1217 * block.c (block_iter_match_step, block_iter_match_first)
1218 (block_iter_match_next, block_lookup_symbol)
1219 (block_lookup_symbol_primary, block_find_symbol): Adjust to use
1220 lookup_name_info.
1221 * block.h (block_iter_match_first, block_iter_match_next)
1222 (ALL_BLOCK_SYMBOLS_WITH_NAME): Adjust to use lookup_name_info.
1223 * c-lang.c (c_language_defn, cplus_language_defn)
1224 (asm_language_defn, minimal_language_defn): Adjust comments to
1225 refer to la_get_symbol_name_matcher.
1226 * completer.c (complete_files_symbols)
1227 (collect_explicit_location_matches, symbol_completer): Pass a
1228 symbol_name_match_type down.
1229 * completer.h (class completion_match, completion_match_result):
1230 New classes.
1231 (completion_tracker::reset_completion_match_result): New method.
1232 (completion_tracker::m_completion_match_result): New field.
1233 * cp-support.c (make_symbol_overload_list_block): Adjust to use
1234 lookup_name_info.
1235 (cp_fq_symbol_name_matches, cp_get_symbol_name_matcher): New
1236 functions.
1237 * cp-support.h (cp_get_symbol_name_matcher): New declaration.
1238 * d-lang.c: Adjust comments to refer to
1239 la_get_symbol_name_matcher.
1240 * dictionary.c (dict_vector) <iter_match_first, iter_match_next>:
1241 Adjust to use lookup_name_info.
1242 (dict_iter_match_first, dict_iter_match_next)
1243 (iter_match_first_hashed, iter_match_next_hashed)
1244 (iter_match_first_linear, iter_match_next_linear): Adjust to work
1245 with a lookup_name_info.
1246 * dictionary.h (dict_iter_match_first, dict_iter_match_next):
1247 Likewise.
1248 * dwarf2read.c (dw2_lookup_symbol): Adjust to use lookup_name_info.
1249 (dw2_map_matching_symbols): Adjust to use symbol_name_match_type.
1250 (gdb_index_symbol_name_matcher): New class.
1251 (dw2_expand_symtabs_matching) Adjust to use lookup_name_info and
1252 gdb_index_symbol_name_matcher. Accept a NULL symbol_matcher.
1253 * f-lang.c (f_collect_symbol_completion_matches): Adjust to work
1254 with a symbol_name_match_type.
1255 (f_language_defn): Adjust comments to refer to
1256 la_get_symbol_name_matcher.
1257 * go-lang.c (go_language_defn): Adjust comments to refer to
1258 la_get_symbol_name_matcher.
1259 * language.c (default_symbol_name_matcher)
1260 (language_get_symbol_name_matcher): New functions.
1261 (unknown_language_defn, auto_language_defn): Adjust comments to
1262 refer to la_get_symbol_name_matcher.
1263 * language.h (symbol_name_cmp_ftype): Delete.
1264 (language_defn) <la_collect_symbol_completion_matches>: Add match
1265 type parameter.
1266 <la_get_symbol_name_cmp>: Delete field.
1267 <la_get_symbol_name_matcher>: New field.
1268 <la_iterate_over_symbols>: Adjust to use lookup_name_info.
1269 (default_symbol_name_matcher, language_get_symbol_name_matcher):
1270 Declare.
1271 * linespec.c (iterate_over_all_matching_symtabs)
1272 (iterate_over_file_blocks): Adjust to use lookup_name_info.
1273 (find_methods): Add language parameter, and use lookup_name_info
1274 and the language's symbol_name_matcher_ftype.
1275 (linespec_complete_function): Adjust.
1276 (lookup_prefix_sym): Use lookup_name_info.
1277 (add_all_symbol_names_from_pspace): Adjust.
1278 (find_superclass_methods): Add language parameter and pass it
1279 down.
1280 (find_method): Pass symbol language down.
1281 (find_linespec_symbols): Don't demangle or Ada encode here.
1282 (search_minsyms_for_name): Add lookup_name_info parameter.
1283 (add_matching_symbols_to_info): Add name_match_type parameter.
1284 Use lookup_name_info.
1285 * m2-lang.c (m2_language_defn): Adjust comments to refer to
1286 la_get_symbol_name_matcher.
1287 * minsyms.c: Include <algorithm>.
1288 (add_minsym_to_demangled_hash_table): Remove table parameter and
1289 add objfile parameter. Use search_name_hash, and add language to
1290 demangled languages vector.
1291 (struct found_minimal_symbols): New struct.
1292 (lookup_minimal_symbol_mangled, lookup_minimal_symbol_demangled):
1293 New functions.
1294 (lookup_minimal_symbol): Adjust to use them. Don't canonicalize
1295 input names here. Use lookup_name_info instead. Lookup up
1296 demangled names once for each language in the demangled names
1297 vector.
1298 (iterate_over_minimal_symbols): Use lookup_name_info. Lookup up
1299 demangled names once for each language in the demangled names
1300 vector.
1301 (build_minimal_symbol_hash_tables): Adjust.
1302 * minsyms.h (iterate_over_minimal_symbols): Adjust to pass down a
1303 lookup_name_info.
1304 * objc-lang.c (objc_language_defn): Adjust comment to refer to
1305 la_get_symbol_name_matcher.
1306 * objfiles.h: Include <vector>.
1307 (objfile_per_bfd_storage) <demangled_hash_languages>: New field.
1308 * opencl-lang.c (opencl_language_defn): Adjust comment to refer to
1309 la_get_symbol_name_matcher.
1310 * p-lang.c (pascal_language_defn): Adjust comment to refer to
1311 la_get_symbol_name_matcher.
1312 * psymtab.c (psym_lookup_symbol): Use lookup_name_info.
1313 (match_partial_symbol): Use symbol_name_match_type,
1314 lookup_name_info and psymbol_name_matches.
1315 (lookup_partial_symbol): Use lookup_name_info.
1316 (map_block): Use symbol_name_match_type and lookup_name_info.
1317 (psym_map_matching_symbols): Use symbol_name_match_type.
1318 (psymbol_name_matches): New.
1319 (recursively_search_psymtabs): Use lookup_name_info and
1320 psymbol_name_matches. Rename 'kind' parameter to 'domain'.
1321 (psym_expand_symtabs_matching): Use lookup_name_info. Rename
1322 'kind' parameter to 'domain'.
1323 * rust-lang.c (rust_language_defn): Adjust comment to refer to
1324 la_get_symbol_name_matcher.
1325 * symfile-debug.c (debug_qf_map_matching_symbols)
1326 (debug_qf_map_matching_symbols): Use symbol_name_match_type.
1327 (debug_qf_expand_symtabs_matching): Use lookup_name_info.
1328 * symfile.c (expand_symtabs_matching): Use lookup_name_info.
1329 * symfile.h (quick_symbol_functions) <map_matching_symbols>:
1330 Adjust to use symbol_name_match_type.
1331 <expand_symtabs_matching>: Adjust to use lookup_name_info.
1332 (expand_symtabs_matching): Adjust to use lookup_name_info.
1333 * symmisc.c (maintenance_expand_symtabs): Use
1334 lookup_name_info::match_any ().
1335 * symtab.c (symbol_matches_search_name): New.
1336 (eq_symbol_entry): Adjust to use lookup_name_info and the
1337 language's matcher.
1338 (demangle_for_lookup_info::demangle_for_lookup_info): New.
1339 (lookup_name_info::match_any): New.
1340 (iterate_over_symbols, search_symbols): Use lookup_name_info.
1341 (compare_symbol_name): Add language, lookup_name_info and
1342 completion_match_result parameters, and use them.
1343 (completion_list_add_name): Make extern. Add language and
1344 lookup_name_info parameters. Use them.
1345 (completion_list_add_symbol, completion_list_add_msymbol)
1346 (completion_list_objc_symbol): Add lookup_name_info parameters and
1347 adjust. Pass down language.
1348 (completion_list_add_fields): Add lookup_name_info parameters and
1349 adjust. Pass down language.
1350 (add_symtab_completions): Add lookup_name_info parameters and
1351 adjust.
1352 (default_collect_symbol_completion_matches_break_on): Add
1353 name_match_type parameter, and use it. Use lookup_name_info.
1354 (default_collect_symbol_completion_matches)
1355 (collect_symbol_completion_matches): Add name_match_type
1356 parameter, and pass it down.
1357 (collect_symbol_completion_matches_type): Adjust.
1358 (collect_file_symbol_completion_matches): Add name_match_type
1359 parameter, and use lookup_name_info.
1360 * symtab.h: Include <string> and "common/gdb_optional.h".
1361 (enum class symbol_name_match_type): New.
1362 (class ada_lookup_name_info): New.
1363 (struct demangle_for_lookup_info): New.
1364 (class lookup_name_info): New.
1365 (symbol_name_matcher_ftype): New.
1366 (SYMBOL_MATCHES_SEARCH_NAME): Use symbol_matches_search_name.
1367 (symbol_matches_search_name): Declare.
1368 (MSYMBOL_MATCHES_SEARCH_NAME): Delete.
1369 (default_collect_symbol_completion_matches)
1370 (collect_symbol_completion_matches)
1371 (collect_file_symbol_completion_matches): Add name_match_type
1372 parameter.
1373 (iterate_over_symbols): Use lookup_name_info.
1374 (completion_list_add_name): Declare.
1375 * utils.c (enum class strncmp_iw_mode): Moved to utils.h.
1376 (strncmp_iw_with_mode): Now extern.
1377 * utils.h (enum class strncmp_iw_mode): Moved from utils.c.
1378 (strncmp_iw_with_mode): Declare.
1379
5ffa0793
PA
13802017-11-08 Keith Seitz <keiths@redhat.com>
1381 Pedro Alves <palves@redhat.com>
1382
1383 * ada-lang.c (ada_language_defn): Install
1384 default_search_name_hash.
1385 * buildsym.c (struct buildsym_compunit): <language>: New field.
1386 (finish_block_internal): Pass language when creating dictionaries.
1387 (start_buildsym_compunit, start_symtab): New language parameters.
1388 Use them.
1389 (restart_symtab): Pass down compilation unit's language.
1390 * buildsym.h (enum language): Forward declare.
1391 (start_symtab): New 'language' parameter.
1392 * c-lang.c (c_language_defn, cplus_language_defn)
1393 (asm_language_defn, minimal_language_defn): Install
1394 default_search_name_hash.
1395 * coffread.c (coff_start_symtab): Adjust.
1396 * d-lang.c (d_language_defn): Install default_search_name_hash.
1397 * dbxread.c (struct symloc): Add 'pst_language' field.
1398 (PST_LANGUAGE): Define.
1399 (start_psymtab, read_ofile_symtab): Use it.
1400 (process_one_symbol): New 'language' parameter. Pass it down.
1401 * dictionary.c (struct dictionary) <language>: New field.
1402 (DICT_LANGUAGE): Define.
1403 (dict_create_hashed, dict_create_hashed_expandable)
1404 (dict_create_linear, dict_create_linear_expandable): New parameter
1405 'language'. Set the dictionary's language.
1406 (iter_match_first_hashed): Adjust to rename.
1407 (insert_symbol_hashed): Assert we don't see mismatching
1408 languages. Adjust to rename.
1409 (dict_hash): Rename to ...
1410 (default_search_name_hash): ... this and make extern.
1411 * dictionary.h (struct language_defn): Forward declare.
1412 (dict_create_hashed): New parameter 'language'.
1413 * dwarf2read.c (dwarf2_start_symtab): Pass down language.
1414 * f-lang.c (f_language_defn): Install default_search_name_hash.
1415 * go-lang.c (go_language_defn): Install default_search_name_hash.
1416 * jit.c (finalize_symtab): Pass compunit's language to dictionary
1417 creation.
1418 * language.c (unknown_language_defn, auto_language_defn):
1419 * language.h (language_defn::la_search_name_hash): New field.
1420 (default_search_name_hash): Declare.
1421 * m2-lang.c (m2_language_defn): Install default_search_name_hash.
1422 * mdebugread.c (new_block): New parameter 'language'.
1423 * mdebugread.c (parse_symbol): Pass symbol language to block
1424 allocation.
1425 (psymtab_to_symtab_1): Pass down language.
1426 (new_symtab): Pass compunit's language to block allocation.
1427 * objc-lang.c (objc_language_defn): Install
1428 default_search_name_hash.
1429 * opencl-lang.c (opencl_language_defn):
1430 * p-lang.c (pascal_language_defn): Install
1431 default_search_name_hash.
1432 * rust-lang.c (rust_language_defn): Install
1433 default_search_name_hash.
1434 * stabsread.h (enum language): Forward declare.
1435 (process_one_symbol): Add 'language' parameter.
1436 * symtab.c (search_name_hash): New function.
1437 * symtab.h (search_name_hash): Declare.
1438 * xcoffread.c (read_xcoff_symtab): Pass language to start_symtab.
1439
2a1dde5d
PA
14402017-11-08 Pedro Alves <palves@redhat.com>
1441
1442 * cp-name-parser.y (main): Don't initialize extra_chars.
1443
95a6b0a1
TT
14442017-11-07 Tom Tromey <tom@tromey.com>
1445
1446 * event-top.h (command_handler): Constify.
1447 * record-full.c (cmd_record_full_start): Update.
1448 * thread.c (thread_apply_all_command): Update.
1449 * printcmd.c (eval_command): Update.
1450 * mi/mi-main.c (mi_execute_cli_command): Update.
1451 (mi_execute_async_cli_command): Update.
1452 * tui/tui-stack.c (tui_update_command): Update.
1453 * cli/cli-interp.c (safe_execute_command): Constify.
1454 * record.c (record_start): Update.
1455 (record_start, record_stop, cmd_record_start): Update.
1456 * record-btrace.c (cmd_record_btrace_bts_start): Update.
1457 (cmd_record_btrace_pt_start): Update.
1458 (cmd_record_btrace_start): Update.
1459 (cmd_record_btrace_start): Update.
1460 * reverse.c (exec_reverse_once): Update.
1461 * python/python.c (execute_gdb_command): Don't copy the command.
1462 * event-top.c (command_line_handler): Update.
1463 (command_handler): Constify.
1464 * defs.h (deprecated_call_command_hook): Constify.
1465 * cli/cli-script.h (execute_user_command): Constify.
1466 * cli/cli-script.c (execute_user_command): Constify.
1467 (execute_cmd_pre_hook, execute_cmd_post_hook): Constify.
1468 (enum command_control_type): Update.
1469 * main.c (catch_command_errors): Remove non-const overload.
1470 (catch_command_errors_ftype): Remove.
1471 * python/py-cmd.c (cmdpy_function): Constify.
1472 * guile/scm-cmd.c (cmdscm_function): Constify.
1473 * cli/cli-dump.c (call_dump_func): Constify.
1474 * cli/cli-decode.c (do_const_cfunc): Constify.
1475 (do_sfunc): Constify.
1476 (cmd_func): Constify.
1477 * gdbcmd.h (execute_command, execute_command_to_string): Constify.
1478 * top.h (execute_command): Constify.
1479 * top.c (execute_command): Constify.
1480 (execute_command_to_string): Constify.
1481 (deprecated_call_command_hook): Constify.
1482 * command.h (cmd_func): Constify.
1483 * cli/cli-decode.h (struct cmd_list_element) <func>: Constify.
1484
eb4c3f4a
TT
14852017-11-07 Tom Tromey <tom@tromey.com>
1486
1487 * ada-lang.c (catch_ada_exception_command): Constify.
1488 (catch_assert_command): Constify.
1489 * break-catch-throw.c (catch_catch_command, catch_throw_command)
1490 (catch_rethrow_command): Constify.
1491 (catch_exception_command_1): Constify.
1492 * breakpoint.h (add_catch_command): Constify.
1493 * break-catch-syscall.c (catch_syscall_command_1): Constify.
1494 (catch_syscall_split_args): Constify.
1495 * break-catch-sig.c (catch_signal_command): Constify.
1496 (catch_signal_split_args): Constify.
1497 * cli/cli-decode.h (struct cmd_list_element) <function>: Use
1498 cmd_const_sfunc_ftype.
1499 * cli/cli-decode.c (add_setshow_cmd_full): Constify.
1500 (add_setshow_enum_cmd, add_setshow_auto_boolean_cmd)
1501 (add_setshow_boolean_cmd, add_setshow_filename_cmd)
1502 (add_setshow_string_cmd, struct cmd_list_element)
1503 (add_setshow_optional_filename_cmd, add_setshow_integer_cmd)
1504 (add_setshow_uinteger_cmd, add_setshow_zinteger_cmd)
1505 (add_setshow_zuinteger_unlimited_cmd, add_setshow_zuinteger_cmd):
1506 Constify.
1507 (set_cmd_sfunc): Constify.
1508 (empty_sfunc): Constify.
1509 * command.h (add_setshow_enum_cmd, add_setshow_auto_boolean_cmd)
1510 (add_setshow_boolean_cmd, add_setshow_filename_cmd)
1511 (add_setshow_string_cmd, add_setshow_string_noescape_cmd)
1512 (add_setshow_optional_filename_cmd, add_setshow_integer_cmd)
1513 (add_setshow_uinteger_cmd, add_setshow_zinteger_cmd)
1514 (add_setshow_zuinteger_cmd, add_setshow_zuinteger_unlimited_cmd):
1515 Constify.
1516 (set_cmd_sfunc): Constify.
1517 (cmd_sfunc_ftype): Remove.
1518 * compile/compile.c (set_compile_args): Constify.
1519 * infrun.c (set_disable_randomization): Constify.
1520 * infcmd.c (set_args_command, set_cwd_command): Constify.
1521 * breakpoint.c (set_condition_evaluation_mode): Constify.
1522 (add_catch_command): Constify.
1523 (catch_fork_command_1, catch_exec_command_1)
1524 (catch_load_command_1, catch_unload_command_1): Constify.
1525 (catch_load_or_unload): Constify.
1526 * guile/scm-param.c (pascm_set_func): Constify.
1527 (add_setshow_generic): Constify.
1528 * python/py-param.c (get_set_value): Constify.
1529 * top.h (set_verbose): Constify.
1530 * tui/tui-win.c (tui_set_var_cmd): Constify.
1531 * mi/mi-main.c (set_mi_async_command): Constify.
1532 * cli/cli-logging.c (set_logging_overwrite)
1533 (set_logging_redirect): Constify.
1534 * value.c (set_max_value_size): Constify.
1535 * valprint.c (set_input_radix, set_output_radix): Constify.
1536 * utils.c (set_width_command, set_height_command): Constify.
1537 * typeprint.c (set_print_type_methods, set_print_type_typedefs): Constify.
1538 * tracepoint.c (set_disconnected_tracing)
1539 (set_circular_trace_buffer, set_trace_buffer_size)
1540 (set_trace_user, set_trace_notes, set_trace_stop_notes): Constify.
1541 * top.c (set_history_size_command, set_verbose, set_editing)
1542 (set_gdb_datadir, set_history_filename): Constify.
1543 * target.c (set_targetdebug, maint_set_target_async_command)
1544 (maint_set_target_non_stop_command, set_target_permissions)
1545 (set_write_memory_permission): Constify.
1546 (open_target): Constify.
1547 * target-descriptions.c (set_tdesc_filename_cmd): Constify.
1548 * target-dcache.c (set_stack_cache, set_code_cache): Constify.
1549 * symtab.c (set_symbol_cache_size_handler): Constify.
1550 * symfile.c (set_ext_lang_command): Constify.
1551 * symfile-debug.c (set_debug_symfile): Constify.
1552 * source.c (set_directories_command): Constify.
1553 * solib.c (reload_shared_libraries, gdb_sysroot_changed): Constify.
1554 * serial.c (set_parity): Constify.
1555 * rs6000-tdep.c (powerpc_set_soft_float, powerpc_set_vector_abi): Constify.
1556 * remote.c (set_remote_exec_file, set_remotebreak)
1557 (set_remote_protocol_Z_packet_cmd, set_range_stepping): Constify.
1558 * record.c (set_record_insn_history_size)
1559 (set_record_call_history_size): Constify.
1560 * record-full.c (set_record_full_insn_max_num): Constify.
1561 * proc-api.c (set_procfs_trace_cmd, set_procfs_file_cmd): Constify.
1562 * osabi.c (set_osabi): Constify.
1563 * mips-tdep.c (set_mips64_transfers_32bit_regs)
1564 (reinit_frame_cache_sfunc, mips_abi_update): Constify.
1565 * maint.c (maintenance_set_profile_cmd): Constify.
1566 * linux-thread-db.c (set_libthread_db_search_path): Constify.
1567 * language.c (set_language_command, set_range_command)
1568 (set_case_command): Constify.
1569 * infrun.c (set_non_stop, set_observer_mode)
1570 (set_stop_on_solib_events, set_schedlock_func)
1571 (set_exec_direction_func): Constify.
1572 * infcmd.c (set_inferior_tty_command): Constify.
1573 * disasm.c (set_disassembler_options_sfunc): Constify.
1574 * demangle.c (set_demangling_command): Constify.
1575 * dcache.c (set_dcache_size, set_dcache_line_size): Constify.
1576 * cris-tdep.c (set_cris_version, set_cris_mode)
1577 (set_cris_dwarf2_cfi): Constify.
1578 * corefile.c (set_gnutarget_command): Constify.
1579 * charset.c (set_host_charset_sfunc, set_target_charset_sfunc)
1580 (set_target_wide_charset_sfunc): Constify.
1581 * breakpoint.c (update_dprintf_commands): Constify.
1582 * auto-load.c (set_auto_load_dir, set_auto_load_safe_path): Constify.
1583 * arm-tdep.c (set_fp_model_sfunc, arm_set_abi)
1584 (set_disassembly_style_sfunc): Constify.
1585 * arch-utils.c (set_endian, set_architecture): Constify.
1586 * alpha-tdep.c (reinit_frame_cache_sfunc): Constify.
1587 * agent.c (set_can_use_agent): Constify.
1588
5fed81ff
TT
15892017-11-07 Tom Tromey <tom@tromey.com>
1590
1591 * go32-nat.c (go32_sysinfo, go32_sldt, go32_sgdt, go32_sidt)
1592 (go32_pde, go32_pte, go32_pte_for_address): Constify.
1593 * gnu-nat.c (_parse_bool_arg, show_thread_default_pause_cmd)
1594 (set_thread_default_pause_cmd, set_thread_default_run_cmd)
1595 (show_thread_default_run_cmd, set_thread_default_detach_sc_cmd)
1596 (parse_int_arg, show_thread_default_detach_sc_cmd)
1597 (set_signals_cmd, show_signals_cmd, set_sig_thread_cmd)
1598 (show_sig_thread_cmd, set_stopped_cmd, show_stopped_cmd)
1599 (set_exceptions_cmd, show_exceptions_cmd, set_task_pause_cmd)
1600 (show_task_pause_cmd, set_task_detach_sc_cmd)
1601 (show_task_detach_sc_cmd, set_task_exc_port_cmd)
1602 (set_noninvasive_cmd, set_thread_pause_cmd)
1603 (show_thread_pause_cmd, set_thread_run_cmd, show_thread_run_cmd)
1604 (set_thread_detach_sc_cmd, show_thread_detach_sc_cmd)
1605 (set_thread_exc_port_cmd, thread_takeover_sc_cmd): Constify.
1606 * windows-nat.c (display_selectors): Constify.
1607 * cli/cli-decode.h (struct cmd_list_element) <function>: Remove
1608 non-const "cfunc".
1609 * cli/cli-decode.c (set_cmd_cfunc): Remove non-const overload.
1610 (cmd_cfunc_eq): Likewise.
1611 (struct cmd_list_element): Likewise.
1612 (do_cfunc): Remove.
1613 (cli_user_command_p): Update.
1614 * command.h (add_cmd): Remove non-const overload.
1615 (cmd_cfunc_ftype): Remove typedef.
1616 (cmd_cfunc_eq): Remove non-const overload.
1617 * value.c (show_values): Constify.
1618 * thread.c (thread_apply_all_command): Constify.
1619 * symfile.c (load_command): Constify.
1620 * source.c (directory_command): Constify.
1621 * maint.c (maintenance_internal_error)
1622 (maintenance_demangler_warning, maintenance_space_display)
1623 (maintenance_print_architecture, maintenance_translate_address)
1624 (maintenance_info_selftests, maintenance_internal_warning):
1625 Constify.
1626 * breakpoint.c (disable_trace_command, enable_trace_command):
1627 Constify.
1628 * auto-load.c (info_auto_load_local_gdbinit, add_auto_load_dir):
1629 Constify.
1630 (add_auto_load_safe_path): Constify.
1631 * guile/scm-auto-load.c (info_auto_load_guile_scripts): Constify.
1632 * top.h (show_commands): Constify.
1633 * linux-thread-db.c (info_auto_load_libthread_db): Constify.
1634 * sparc64-tdep.c (adi_examine_command): Constify.
1635 (adi_assign_command): Constify.
1636
1d12d88f
TT
16372017-11-07 Tom Tromey <tom@tromey.com>
1638
1639 * frame.h (info_locals_command, info_args_command): Constify.
1640 * auto-load.h (auto_load_info_scripts): Constify.
1641 * inferior.h (registers_info): Constify.
1642 * copying.c: Rebuild.
1643 * copying.awk: Constify generated commands.
1644 * auto-load.c (auto_load_info_scripts)
1645 (info_auto_load_gdb_scripts): Constify.
1646 * cli/cli-decode.c (struct cmd_list_element): Take a
1647 cmd_const_cfunc_ftype.
1648 * command.h (add_info): Take a cmd_const_cfunc_ftype.
1649 * tui/tui-win.c (tui_all_windows_info): Constify.
1650 * python/py-auto-load.c (info_auto_load_python_scripts):
1651 Constify.
1652 * cli/cli-cmds.c (show_command): Remove non-const overload.
1653 * tracepoint.c (info_tvariables_command, info_scope_command):
1654 Constify.
1655 (info_static_tracepoint_markers_command): Constify.
1656 * thread.c (info_threads_command): Constify.
1657 (print_thread_info_1): Constify.
1658 * target.c (info_target_command): Constify.
1659 * symtab.c (info_sources_command, info_functions_command)
1660 (info_types_command): Constify.
1661 (info_variables_command): Remove non-const overload.
1662 * symfile.c (info_ext_lang_command): Constify.
1663 * stack.c (info_frame_command, info_locals_command)
1664 (info_args_command): Constify.
1665 (backtrace_command): Remove non-const overload.
1666 * source.c (info_source_command, info_line_command): Constify.
1667 * solib.c (info_sharedlibrary_command): Constify.
1668 * skip.c (info_skip_command): Constify.
1669 * ser-go32.c (info_serial_command): Constify.
1670 * reverse.c (info_bookmarks_command): Constify.
1671 * printcmd.c (info_symbol_command, info_address_command)
1672 (info_display_command): Constify.
1673 * osdata.c (info_osdata_command): Constify.
1674 * objc-lang.c (info_selectors_command, info_classes_command):
1675 Constify.
1676 * nto-procfs.c (procfs_pidlist, procfs_meminfo): Constify.
1677 * memattr.c (info_mem_command): Constify.
1678 * macrocmd.c (info_macro_command, info_macros_command): Constify.
1679 * linux-fork.c (info_checkpoints_command): Constify.
1680 * infrun.c (info_signals_command): Constify.
1681 * inflow.c (info_terminal_command): Constify.
1682 * inferior.c (info_inferiors_command): Constify.
1683 (print_inferior): Constify.
1684 * infcmd.c (info_program_command, info_all_registers_command)
1685 (info_registers_command, info_vector_command)
1686 (info_float_command): Constify.
1687 (registers_info): Constify.
1688 * gnu-nat.c (info_send_rights_cmd, info_recv_rights_cmd)
1689 (info_port_sets_cmd, info_dead_names_cmd, info_port_rights_cmd):
1690 Constify.
1691 * f-valprint.c (info_common_command): Constify.
1692 * dcache.c (info_dcache_command): Constify.
1693 (dcache_info_1): Constify.
1694 * darwin-nat-info.c (info_mach_tasks_command)
1695 (info_mach_task_command, info_mach_ports_command)
1696 (info_mach_port_command, info_mach_threads_command)
1697 (info_mach_thread_command, info_mach_regions_command)
1698 (info_mach_regions_recurse_command, info_mach_region_command)
1699 (info_mach_exceptions_command): Constify.
1700 (get_task_from_args): Constify.
1701 * cp-support.c (info_vtbl_command): Constify.
1702 * breakpoint.c (info_watchpoints_command)
1703 (info_tracepoints_command): Constify.
1704 (info_breakpoints_command): Remove non-const overload.
1705 * avr-tdep.c (avr_io_reg_read_command): Constify.
1706 * auxv.c (info_auxv_command): Constify.
1707 * ada-tasks.c (info_tasks_command): Constify.
1708 (info_task): Constify.
1709 * ada-lang.c (info_exceptions_command): Constify.
1710
0b39b52e
TT
17112017-11-07 Tom Tromey <tom@tromey.com>
1712
1713 * solib.h (no_shared_libraries): Constify.
1714 * frame.h (return_command): Constify.
1715 * cli/cli-cmds.h (quit_command): Constify.
1716 * top.h (quit_command, execute_command): Constify.
1717 * target.h (flash_erase_command): Constify.
1718 * inferior.h (set_inferior_args, attach_command): Constify.
1719 * tracepoint.h (start_tracing, stop_tracing): Constify.
1720 * breakpoint.h (break_command, tbreak_command)
1721 (hbreak_command_wrapper, thbreak_command_wrapper)
1722 (rbreak_command_wrapper, watch_command_wrapper)
1723 (awatch_command_wrapper, rwatch_command_wrapper)
1724 (get_tracepoint_by_number): Constify.
1725 * symtab.c (info_variables_command, rbreak_command)
1726 (symtab_symbol_info): Constify.
1727 (info_variables_command): Add non-const overload.
1728 * top.c (dont_repeat_command): Constify.
1729 * breakpoint.c (ignore_command, commands_command)
1730 (condition_command, tbreak_command, hbreak_command)
1731 (thbreak_command, clear_command, break_command)
1732 (info_breakpoints_command, watch_command, rwatch_command)
1733 (awatch_command, trace_command, ftrace_command, strace_command)
1734 (trace_pass_command, break_range_command, dprintf_command)
1735 (agent_printf_command, get_tracepoint_by_number)
1736 (watch_maybe_just_location, trace_pass_command): Constify.
1737 (info_breakpoints_command): Add non-const overload.
1738 * tracefile.c (tsave_command): Constify.
1739 * infcmd.c (attach_command, disconnect_command, signal_command)
1740 (queue_signal_command, stepi_command, nexti_command)
1741 (finish_command, next_command, step_command, until_command)
1742 (advance_command, jump_command, continue_command, run_command)
1743 (start_command, starti_command, interrupt_command)
1744 (run_command_1, set_inferior_args, step_1): Constify.
1745 * inferior.c (add_inferior_command, remove_inferior_command)
1746 (clone_inferior_command): Constify.
1747 * linux-fork.c (checkpoint_command, restart_command): Constify.
1748 * windows-nat.c (signal_event_command): Constify.
1749 * guile/guile.c (guile_repl_command, guile_command): Constify.
1750 * printcmd.c (x_command, display_command, printf_command)
1751 (output_command, set_command, call_command, print_command)
1752 (eval_command): Constify.
1753 (non_const_set_command): Remove.
1754 (_initialize_printcmd): Update.
1755 * source.c (forward_search_command, reverse_search_command):
1756 Constify.
1757 * jit.c (jit_reader_load_command, jit_reader_unload_command):
1758 Constify.
1759 * infrun.c (handle_command): Constify.
1760 * memattr.c (mem_command): Constify.
1761 * stack.c (return_command, up_command, up_silently_command)
1762 (down_command, down_silently_command, frame_command)
1763 (backtrace_command, func_command, backtrace_command_1): Constify.
1764 (backtrace_command): Add non-const overload.
1765 * remote-sim.c (simulator_command): Constify.
1766 * exec.c (set_section_command): Constify.
1767 * tracepoint.c (tdump_command, trace_variable_command)
1768 (tstatus_command, tstop_command, tstart_command)
1769 (end_actions_pseudocommand, while_stepping_pseudocommand)
1770 (collect_pseudocommand, teval_pseudocommand, actions_command)
1771 (start_tracing, stop_tracing): Constify.
1772 * value.c (init_if_undefined_command): Constify.
1773 * tui/tui-stack.c (tui_update_command): Constify.
1774 * tui/tui-win.c (tui_refresh_all_command)
1775 (tui_set_tab_width_command, tui_set_win_height_command)
1776 (tui_set_focus_command, tui_scroll_forward_command)
1777 (tui_scroll_backward_command, tui_scroll_left_command)
1778 (tui_scroll_right_command, parse_scrolling_args, tui_set_focus)
1779 (tui_set_win_height): Constify.
1780 * tui/tui-layout.c (tui_layout_command): Constify.
1781 * procfs.c (proc_trace_syscalls, proc_trace_sysentry_cmd)
1782 (proc_trace_sysexit_cmd, proc_untrace_sysentry_cmd)
1783 (proc_untrace_sysexit_cmd): Constify.
1784 * remote.c (threadlist_test_cmd, threadinfo_test_cmd)
1785 (threadset_test_cmd, threadlist_update_test_cmd)
1786 (threadalive_test): Constify.
1787 * objc-lang.c (print_object_command): Constify.
1788 * command.h (add_com): Constify.
1789 * cli/cli-dump.c (restore_command): Constify.
1790 * cli/cli-cmds.c (pwd_command, echo_command, quit_command)
1791 (help_command, complete_command, shell_command, edit_command)
1792 (list_command, disassemble_command, make_command)
1793 (apropos_command, alias_command): Constify.
1794 * cli/cli-script.c (document_command, define_command)
1795 (while_command, if_command, validate_comname): Constify.
1796 * cli/cli-decode.c (struct cmd_list_element): Change type of
1797 "fun".
1798 * target.c (do_monitor_command, flash_erase_command): Constify.
1799 * regcache.c (reg_flush_command): Constify.
1800 * reverse.c (reverse_step, reverse_next, reverse_stepi)
1801 (reverse_nexti, reverse_continue, reverse_finish)
1802 (save_bookmark_command, goto_bookmark_command)
1803 (exec_reverse_once): Constify.
1804 * python/python.c (python_interactive_command, python_command):
1805 Constify.
1806 * typeprint.c (ptype_command, whatis_command, whatis_exp):
1807 Constify.
1808 * solib.c (sharedlibrary_command, no_shared_libraries): Constify.
1809 * gcore.c (gcore_command): Constify.
1810
85c4be7c
TT
18112017-11-07 Tom Tromey <tom@tromey.com>
1812
1813 * printcmd.c (x_command): Call set_repeat_arguments.
1814 * cli/cli-cmds.c (list_command): Call set_repeat_arguments.
1815 * top.c (repeat_arguments): New global.
1816 (set_repeat_arguments): New function.
1817 (execute_command): Handle repeat_arguments.
1818 (show_commands): Calls set_repeat_arguments.
1819 * command.h (set_repeat_arguments): Declare.
1820
022643b4
TT
18212017-11-07 Tom Tromey <tom@tromey.com>
1822
1823 * stack.c (backtrace_command): Use std::string.
1824 (backtrace_command_1): Make "count_exp" const.
1825
5614fb77
TT
18262017-11-07 Tom Tromey <tom@tromey.com>
1827
1828 * source.c (directory_switch, mod_path, add_path): Constify.
1829 * defs.h (add_path, mod_path, directory_switch): Constify.
1830 * mi/mi-cmd-env.c (env_mod_path): Constify.
1831
6be9a197
TT
18322017-11-07 Tom Tromey <tom@tromey.com>
1833
1834 * infcmd.c (strip_bg_char): Return gdb::unique_xmalloc_ptr.
1835 (run_command_1, continue_command, step_1, jump_command)
1836 (signal_command, until_command, advance_command, finish_command)
1837 (attach_command): Update.
1838
c2252c0d
TT
18392017-11-07 Tom Tromey <tom@tromey.com>
1840
1841 * command.h (set_cmd_cfunc): Don't declare.
1842 * cli/cli-decode.c (set_cmd_cfunc): Now static.
1843
1ee870c5
TT
18442017-11-07 Tom Tromey <tom@tromey.com>
1845
1846 * stack.c (select_frame_command): Constify.
1847 * cli/cli-decode.c (add_com_suppress_notification): Constify.
1848 * command.h (add_com_suppress_notification): Constify.
1849
ee7ddd71
TT
18502017-11-07 Tom Tromey <tom@tromey.com>
1851
1852 * breakpoint.c (stop_command): Constify.
1853 * cli/cli-decode.c (struct cmd_list_element): Constify.
1854 * command.h (add_abbrev_prefix_cmd): Constify.
1855
95e95a6d
PA
18562017-11-07 Pedro Alves <palves@redhat.com>
1857
1858 * breakpoint.c (extract_bp_kind): New enum.
1859 (extract_bp_num, extract_bp_or_bp_range): New functions, partially
1860 factored out from ...
1861 (extract_bp_number_and_location): ... here.
1862 * cli/cli-utils.c (get_number_trailer): Handle '-$variable'.
1863
cc638e86
PA
18642017-11-07 Pedro Alves <palves@redhat.com>
1865
1866 * breakpoint.c (extract_bp_number_and_location): Change return
1867 type to void. Throw error instead of warning.
1868 (enable_disable_command): Adjust.
1869
d0fe4701
XR
18702017-11-07 Xavier Roirand <roirand@adacore.com>
1871 Pedro Alves <palves@redhat.com>
1872
1873 * breakpoint.c (map_breakpoint_number_range): New, factored out
1874 from ...
1875 (map_breakpoint_numbers): ... here.
1876 (find_location_by_number): Change parameters from string to
1877 breakpoint number and location.
1878 (extract_bp_number_and_location): New function.
1879 (enable_disable_bp_num_loc)
1880 (enable_disable_breakpoint_location_range)
1881 (enable_disable_command): New functions, factored out ...
1882 (enable_command, disable_command): ... these functions, and
1883 adjusted to support ranges.
1884 * NEWS: Document enable/disable breakpoint location range feature.
1885
635dc5b2
LM
18862017-11-06 Luis Machado <luis.machado@linaro.org>
1887
1888 * MAINTAINERS (Write After Approval): Update my e-mail address.
1889
556e5da5
PA
18902017-11-06 Pedro Alves <palves@redhat.com>
1891
1892 * gnu-nat.c (gnu_terminal_init): Delete.
1893 (gnu_target): Don't install gnu_terminal_init.
1894 * inflow.c (child_terminal_init_with_pgrp): Delete, merged with ...
1895 (child_terminal_init): ... this function.
1896
d1928160
PA
18972017-11-06 Pedro Alves <palves@redhat.com>
1898
1899 * common/common.m4 (GDB_AC_COMMON): No longer check termio.h nor
1900 sgtty.h.
1901 * config.in, configure: Regenerate.
1902
6aa899ce
PA
19032017-11-06 Pedro Alves <palves@redhat.com>
1904
1905 * event-top.c: Check SIGTSTP instead of STOP_SIGNAL thoughout.
1906 (async_init_signals): Adjust.
1907 (handle_stop_sig): Rename to ...
1908 (handle_sigtstp): ... this.
1909 (async_stop_sig): Rename to ...
1910 (async_sigtstp_handler): ... this, and delete STOP_SIGNAL !=
1911 SIGTSTP path.
1912 * event-top.h: Move signal.h include to the top. Check SIGTSTP
1913 instead of STOP_SIGNAL thoughout.
1914 (handle_stop_sig): Rename to ...
1915 (handle_sigtstp): ... this.
1916 * top.c (command_line_input): Replace STOP_SIGNAL -> SIGTSTP.
1917
a94799ac
PA
19182017-11-06 Pedro Alves <palves@redhat.com>
1919
1920 * inflow.c (child_terminal_inferior, child_terminal_ours_1): No
1921 longer set flags twice in row.
1922
726e1356
PA
19232017-11-06 Pedro Alves <palves@redhat.com>
1924
1925 * Makefile.in (SER_HARDWIRE): Update comment.
1926 (HFILES_NO_SRCDIR): Remove gdb_termios.h.
1927 * common/gdb_termios.h: Delete file.
1928 * common/job-control.c: Include termios.h and unistd.h instead of
1929 gdb_termios.h.
1930 (gdb_setpgid): Remove HAVE_TERMIOS || TIOCGPGRP preprocessor
1931 check.
1932 (have_job_control): Check HAVE_TERMIOS_H instead of HAVE_TERMIOS.
1933 Remove sgtty code.
1934 * configure.ac: No longer check for termio.h and sgtty.h.
1935 * configure: Regenerate.
1936 * inflow.c: Include termios.h instead of gdb_termios.h. Replace
1937 PROCESS_GROUP_TYPE checks with HAVE_TERMIOS_H checks throughout.
1938 Replace PROCESS_GROUP_TYPE references with pid_t references
1939 throughout.
1940 (gdb_getpgrp): Delete.
1941 (set_initial_gdb_ttystate): Use tcgetpgrp instead of gdb_getpgrp.
1942 (child_terminal_inferior): Remove comment. Remove sgtty code.
1943 (child_terminal_ours_1): Use tcgetpgrp directly instead of
1944 gdb_getpgrp. Use serial_set_tty_state instead aof
1945 serial_noflush_set_tty_state. Remove sgtty code.
1946 * inflow.h: Include unistd.h instead of gdb_termios.h. Replace
1947 PROCESS_GROUP_TYPE check with HAVE_TERMIOS_H check.
1948 (inferior_process_group): Now returns pid_t.
1949 * ser-base.c (ser_base_noflush_set_tty_state): Delete.
1950 * ser-base.h (ser_base_noflush_set_tty_state): Delete.
1951 * ser-event.c (serial_event_ops): Update.
1952 * ser-go32.c (dos_noflush_set_tty_state): Delete.
1953 (dos_ops): Update.
1954 * ser-mingw.c (hardwire_ops, tty_ops, pipe_ops, tcp_ops): Update.
1955 * ser-pipe.c (pipe_ops): Update.
1956 * ser-tcp.c (tcp_ops): Update.
1957 * ser-unix.c: Include termios.h instead of gdb_termios.h. Remove
1958 HAVE_TERMIOS checks.
1959 [HAVE_TERMIO] (struct hardwire_ttystate): Delete.
1960 [HAVE_SGTTY] (struct hardwire_ttystate): Delete.
1961 (get_tty_state, set_tty_state): Drop termio and sgtty code, and
1962 assume termios.
1963 (hardwire_noflush_set_tty_state): Delete.
1964 (hardwire_print_tty_state, hardwire_drain_output)
1965 (hardwire_flush_output, hardwire_flush_input)
1966 (hardwire_send_break, hardwire_raw, hardwire_setbaudrate)
1967 (hardwire_setstopbits, hardwire_setparity): Drop termio and sgtty
1968 code, and assume termios.
1969 (hardwire_ops): Update.
1970 (_initialize_ser_hardwire): Remove HAVE_TERMIOS check.
1971 * serial.c (serial_noflush_set_tty_state): Delete.
1972 * serial.h (serial_noflush_set_tty_state): Delete.
1973 (serial_ops::noflush_set_tty_state): Delete.
1974
1cfb73db
UW
19752017-11-06 Ulrich Weigand <uweigand@de.ibm.com>
1976
1977 * Makefile.in (SFILES): Remove doublest.c and dfp.c.
1978 (HFILES_NO_SRCDIR): Remove doublest.h and dfp.h.
1979 (COMMON_OBS): Remove doublest.o and dfp.o.
1980 Do not build target-float.c (instead of doublest.c)
1981 with -Wformat-nonliteral.
1982
1983 * doublest.c: Remove file.
1984 * doublest.h: Remove file.
1985 * dfp.c: Remove file.
1986 * dfp.h: Remove file.
1987
1988 * target-float.c: Do not include "doublest.h" and "dfp.h".
1989 (DOUBLEST): Move here from doublest.h.
1990 (enum float_kind): Likewise.
1991 (FLOATFORMAT_CHAR_BIT): Likewise.
1992 (FLOATFORMAT_LARGEST_BYTES): Likewise.
1993 (floatformat_totalsize_bytes): Move here from doublest.c. Make static.
1994 (floatformat_precision): Likewise.
1995 (floatformat_normalize_byteorder, get_field, put_field): Likewise.
1996 (floatformat_is_negative, floatformat_classify, floatformat_mantissa):
1997 Likewise.
1998 (host_float_format, host_double_format, host_long_double_format):
1999 Likewise.
2000 (floatformat_to_string, floatformat_from_string): Likewise.
2001 (floatformat_to_doublest): Likewise. Also, inline the original
2002 convert_floatformat_to_doublest.
2003 (floatformat_from_doublest): Likewise. Also, inline the original
2004 convert_floatformat_from_doublest.
2005
2006 Include "dpd/decimal128.h", "dpd/decimal64.h", and "dpd/decimal32.h".
2007 (MAX_DECIMAL_STRING): Move here from dfp.c.
2008 (match_endianness): Likewise.
2009 (set_decnumber_context, decimal_check_errors): Likewise.
2010 (decimal_from_number, decimal_to_number): Likewise.
2011 (decimal_to_string, decimal_from_string): Likewise. Make static.
2012 (decimal_from_longest, decimal_from_ulongest): Likewise.
2013 (decimal_to_longest): Likewise.
2014 (decimal_binop, decimal_is_zero, decimal_compare): Likewise.
2015 (decimal_convert): Likewise.
2016
b07e9c46
UW
20172017-11-06 Ulrich Weigand <uweigand@de.ibm.com>
2018
2019 * doublest.c: Do not include "gdbtypes.h".
2020 (extract_typed_floating): Remove.
2021 (store_typed_floating): Remove.
2022 (convert_typed_floating): Remove.
2023 * doublest.h (struct type): Remove.
2024 (DOUBLEST_PRINT_FORMAT): Remove.
2025 (DOUBLEST_SCAN_FORMAT): Remove.
2026 (extract_typed_floating): Remove.
2027 (store_typed_floating): Remove.
2028 (convert_typed_floating): Remove.
2029
2030 * dfp.c (decimal_from_doublest): Remove.
2031 (decimal_to_doublest): Remove.
2032 * dfp.h: Do not include "doublest.h".
2033 (decimal_from_doublest): Remove.
2034 (decimal_to_doublest): Remove.
2035
2036 * value.c: Do not include "doublest.h" and "dfp.h".
2037 (value_as_double): Remove.
2038 (unpack_double): Remove.
2039 (value_from_double): Remove.
2040 (value_from_decfloat): Remove.
2041 * value.h: Do not include "doublest.h".
2042 (value_as_double): Remove.
2043 (unpack_double): Remove.
2044 (value_from_double): Remove.
2045 (value_from_decfloat): Remove.
2046
3b2ca824
UW
20472017-11-06 Ulrich Weigand <uweigand@de.ibm.com>
2048
2049 * i386-tdep.c: Include "target-float.h". Do not include "doublest.h".
2050 (i386_extract_return_value): Use target_float_convert.
2051 (i386_store_return_value): Likewise.
2052 * i387-tdep.c (i387_register_to_value): Use target_float_convert.
2053 (i387_value_to_register): Likewise.
2054 * ia64-tdep.c: Include "target-float.h". Do not include "doublest.h".
2055 (ia64_register_to_value): Use target_float_convert.
2056 (ia64_value_to_register): Likewise.
2057 (ia64_extract_return_value): Likewise.
2058 (ia64_store_return_value): Likewise.
2059 (ia64_push_dummy_call): Likewise.
2060 * m68k-tdep.c: Include "target-float.h".
2061 (m68k_register_to_value): Use target_float_convert.
2062 (m68k_value_to_register): Likewise.
2063 (m68k_svr4_extract_return_value): Likewise.
2064 (m68k_svr4_store_return_value): Likewise.
2065 * ppc-sysv-tdep.c: Include "target-float.h".
2066 (ppc_sysv_abi_push_dummy_call): Use target_float_convert.
2067 (do_ppc_sysv_return_value): Likewise.
2068 (ppc64_sysv_abi_push_freg): Likewise.
2069 (ppc64_sysv_abi_return_value_base): Likewise.
2070 * rs6000-aix-tdep.c: Include "target-float.h".
2071 (rs6000_push_dummy_call): Use target_float_convert.
2072 (rs6000_return_value): Likewise.
2073 * rs6000-lynx178-tdep.c: Include "target-float.h".
2074 (rs6000_lynx178_push_dummy_call): Use target_float_convert.
2075 (rs6000_lynx178_return_value): Likewise.
2076 * rs6000-tdep.c: Include "target-float.h". Do not include "doublest.h".
2077 (rs6000_register_to_value): Use target_float_convert.
2078 (rs6000_value_to_register): Likewise.
2079 * arm-tdep.c: Include "target-float.h". Do not include "doublest.h".
2080 (arm_extract_return_value): Use target_float_convert.
2081 (arm_store_return_value): Likewise.
2082 * sh-tdep.c: Include "target-float.h". Do not include "doublest.h".
2083 (sh_register_convert_to_virtual): Use target_float_convert.
2084 (sh_register_convert_to_raw): Likewise.
2085 * sh64-tdep.c: Include "target-float.h".
2086 (sh64_extract_return_value): Use target_float_convert.
2087 (sh64_register_convert_to_virtual): Likewise.
2088 (sh64_register_convert_to_raw): Likewise. Fix argument types.
2089
14ad9311
UW
20902017-11-06 Ulrich Weigand <uweigand@de.ibm.com>
2091
2092 * target-float.c (floatformat_to_host_double): New function.
2093 (floatformat_from_host_double): Likewise.
2094 (target_float_to_host_double): Likewise.
2095 (target_float_from_host_double): Likewise.
2096 * target-float.h (target_float_to_host_double): Add prototype.
2097 (target_float_from_host_double): Likewise.
2098
2099 * guile/scm-value.c: Include "target-float.h".
2100 (gdbscm_value_to_real): Use target_float_to_host_double.
2101 Handle integer source values via value_as_long.
2102 * guile/scm-math.c: Include "target-float.h". Do not include
2103 "doublest.h", "dfp.h", and "expression.h".
2104 (vlscm_convert_typed_number): Use target_float_from_host_double.
2105 (vlscm_convert_number): Likewise.
2106
2107 * python/py-value.c (valpy_float): Use target_float_to_host_double.
2108 (convert_value_from_python): Use target_float_from_host_double.
2109
50eff16b
UW
21102017-11-06 Ulrich Weigand <uweigand@de.ibm.com>
2111
2112 * ada-lang.c (cast_to_fixed): Reimplement in target arithmetic.
2113 (cast_from_fixed): Likewise.
2114 (ada_scaling_type): New function.
2115 (ada_delta): Return value instead of DOUBLEST. Perform target
2116 arithmetic instead of host arithmetic.
2117 (scaling_factor): Rename to ...
2118 (ada_scaling_factor) ... this. Make non-static. Return value instead
2119 of DOUBLEST. Perform target arithmetic instead of host arithmetic.
2120 (ada_fixed_to_float): Remove.
2121 (ada_float_to_fixed): Remove.
2122 * ada-lang.h (ada_fixed_to_float): Remove.
2123 (ada_float_to_fixed): Remove.
2124 (ada_delta): Return value instead of DOUBLEST.
2125 (ada_scaling_factor): Add prototype.
2126
2127 * ada-typeprint.c: Include "target-float.h".
2128 (print_fixed_point_type): Perform target arithmetic instead of
2129 host arithmetic.
2130 * ada-valprint.c: Include "target-float.h".
2131 (ada_val_print_num): Perform target arithmetic instead of
2132 host arithmetic for fixed-point types.
2133
66c02b9e
UW
21342017-11-06 Ulrich Weigand <uweigand@de.ibm.com>
2135
2136 * target-float.c: Include <math.h>.
2137 (floatformat_binop): New function.
2138 (floatformat_compare): Likewise.
2139 (target_float_binop): Likewise.
2140 (target_float_compare): Likewise.
2141 * target-float.h: Include "expression.h".
2142 (target_float_binop): Add prototype.
2143 (target_float_compare): Likewise.
2144
2145 * valarith.c: Do not include "doublest.h" and "dfp.h".
2146 Include "common/byte-vector.h".
2147 (value_args_as_decimal): Remove, replace by ...
2148 (value_args_as_target_float): ... this function. Handle both
2149 binary and decimal target floating-point formats.
2150 (scalar_binop): Handle both binary and decimal FP using
2151 value_args_as_target_float and target_float_binop.
2152 (value_equal): Handle both binary and decimal FP using
2153 value_args_as_target_float and target_float_compare.
2154 (value_less): Likewise.
2155 (value_pos): Handle all scalar types as simple copy.
2156 (value_neg): Handle all scalar types via BINOP_SUB from 0.
2157 * dfp.c (decimal_binop): Throw error instead of internal_error
2158 when called with an unsupported operation code.
2159
f69fdf9b
UW
21602017-11-06 Ulrich Weigand <uweigand@de.ibm.com>
2161
2162 * target-float.c (target_float_to_string): New function.
2163 (target_float_from_string): New function.
2164 * target-float.h (target_float_to_string): Add prototype.
2165 (target_float_from_string): Add prototype.
2166
2167 * valprint.c: Include "target-float.h". Do not include
2168 "doublest.h" and "dfp.h".
2169 (print_floating): Use target_float_to_string.
2170 * printcmd.c: Include "target-float.h". Do not include "dfp.h".
2171 (printf_floating): Use target_float_to_string.
2172 * i387-tdep.c: Include "target-float.h". Do not include "doublest.h".
2173 (print_i387_value): Use target_float_to_string.
2174 * mips-tdep.c: Include "target-float.h".
2175 (mips_print_fp_register): Use target_float_to_string.
2176 * sh64-tdep.c: Include "target-float.h".
2177 (sh64_do_fp_register): Use target_float_to_string.
2178
2179 * parse.c: Include "target-float.h". Do not include
2180 "doublest.h" and "dfp.h".
2181 (parse_float): Use target_float_from_string.
2182 * stabsread.c: Include "target-float.h". Do not include "doublest.h".
2183 (define_symbol): Use target_float_from_string.
2184 * gdbarch-selftests.c: Include "target-float.h".
2185 (register_to_value_test): Use target_float_from_string.
2186
70100014
UW
21872017-11-06 Ulrich Weigand <uweigand@de.ibm.com>
2188
2189 * Makefile.c (SFILES): Add target-float.c.
2190 (HFILES_NO_SRCDIR): Add target-float.h.
2191 (COMMON_OBS): Add target-float.o.
2192 * target-float.h: New file.
2193 * target-float.c: New file.
2194
2195 * doublest.c (floatformat_classify): Fix detection of float_zero.
2196
2197 * gdbtypes.c (is_floating_type): New function.
2198 * gdbtypes.h (is_floating_type): Add prototype.
2199
2200 * value.c: Do not include "floatformat.h".
2201 (unpack_double): Use target_float_is_valid.
2202 (is_floating_value): New function.
2203 * value.h (is_floating_value): Add prototype-
2204
2205 * valarith.c: Include "target-float.h".
2206 (value_logical_not): Use target_float_is_zero.
2207
2208 * python/py-value.c: Include "target-float.h".
2209 (valpy_nonzero): Use target_float_is_zero.
2210
ab4b1c46
TT
22112017-11-04 Tom Tromey <tom@tromey.com>
2212
2213 * h8300-tdep.c (h8300_push_dummy_call): Use std::vector.
2214
454dafbd
TT
22152017-11-04 Tom Tromey <tom@tromey.com>
2216
2217 * breakpoint.c (set_momentary_breakpoint): Return
2218 breakpoint_up.
2219 (until_break_command): Update.
2220 (new_until_break_fsm): Change argument types to
2221 breakpoint_up.
2222 (set_momentary_breakpoint_at_pc): Return breakpoint_up.
2223 (do_delete_breakpoint_cleanup, make_cleanup_delete_breakpoint):
2224 Remove.
2225 * infcmd.c (finish_forward): Update.
2226 * breakpoint.h (set_momentary_breakpoint)
2227 (set_momentary_breakpoint_at_pc): Return breakpoint_up.
2228 (make_cleanup_delete_breakpoint): Remove.
2229 (struct breakpoint_deleter): New.
2230 (breakpoint_up): New typedef.
2231 * infrun.c (insert_step_resume_breakpoint_at_sal_1): Update.
2232 (insert_exception_resume_breakpoint): Update.
2233 (insert_exception_resume_from_probe): Update.
2234 (insert_longjmp_resume_breakpoint): Update.
2235 * arm-linux-tdep.c (arm_linux_copy_svc): Update.
2236 * elfread.c (elf_gnu_ifunc_resolver_stop): Update.
2237 * infcall.c (call_function_by_hand_dummy): Update
2238
331b71e5
TT
22392017-11-04 Tom Tromey <tom@tromey.com>
2240
2241 * c-typeprint.c (c_type_print_base): Use gdb::unique_xmalloc_ptr.
2242
9f584b37
TT
22432017-11-04 Tom Tromey <tom@tromey.com>
2244
2245 * linux-tdep.c (linux_core_info_proc_mappings): Use
2246 gdb::def_vector.
2247 (linux_get_siginfo_data): Return gdb::byte_vector. Remove
2248 "size" argument.
2249 (linux_corefile_thread): Update.
2250 (linux_make_corefile_notes): Remove unused variable.
2251
779bc38e
TT
22522017-11-04 Tom Tromey <tom@tromey.com>
2253
2254 * ppc-linux-tdep.c (ppc_linux_get_syscall_number): Use
2255 gdb::byte_vector.
2256
ed2b3126
TT
22572017-11-04 Tom Tromey <tom@tromey.com>
2258
2259 * objfiles.c (do_free_objfile_cleanup): Remove.
2260 * compile/compile-object-load.c (compile_object_load): Update.
2261 * objfiles.h (make_cleanup_free_objfile): Remove.
2262
7f6743fd
TT
22632017-11-04 Tom Tromey <tom@tromey.com>
2264
2265 * sparc64-tdep.c (do_examine): Use gdb::def_vector.
2266 (adi_read_versions): Change "tags" to "gdb_byte *".
2267 (adi_print_versions): Likewise.
2268
c80049d3
TT
22692017-11-04 Tom Tromey <tom@tromey.com>
2270
2271 * breakpoint.c
2272 (scoped_rbreak_breakpoints::scoped_rbreak_breakpoints): Rename
2273 from start_rbreak_breakpoints.
2274 (scoped_rbreak_breakpoints): Rename from end_rbreak_breakpoints.
2275 * breakpoint.h (class scoped_rbreak_breakpoints): New.
2276 (start_rbreak_breakpoints, end_rbreak_breakpoints): Remove.
2277 * symtab.c (do_end_rbreak_breakpoints): Remove.
2278 (rbreak_command): Use scoped_rbreak_breakpoints, std::string.
2279
167b0be1
TT
22802017-11-04 Tom Tromey <tom@tromey.com>
2281
2282 * cp-namespace.c (reset_directive_searched): Remove.
2283 (cp_lookup_symbol_via_imports): Use scoped_restore.
2284 * cp-support.c (reset_directive_searched): Remove.
2285 (make_symbol_overload_list_using): Use scoped_restore.
2286 * d-namespace.c (d_lookup_symbol_imports): Use scoped_restore.
2287 (reset_directive_searched): Remove.
2288
5eae7aea
TT
22892017-11-04 Tom Tromey <tom@tromey.com>
2290
2291 * symfile.c (find_separate_debug_file_by_debuglink): Use
2292 unique_xmalloc_ptr.
2293
c6bcad5f
TT
22942017-11-04 Tom Tromey <tom@tromey.com>
2295
2296 * compile/compile-loc2c.c (compute_stack_depth_worker): Change
2297 type of "info".
2298 (compute_stack_depth): Likewise.
2299 (do_compile_dwarf_expr_to_c): Use std::vector.
2300
20dcd8ca
TT
23012017-11-04 Tom Tromey <tom@tromey.com>
2302
2303 * compile/compile-object-load.c (link_callbacks_einfo): Use
2304 std::string.
2305
33c7c59d
TT
23062017-11-04 Tom Tromey <tom@tromey.com>
2307
2308 * dwarf2read.c (process_full_comp_unit, process_full_type_unit):
2309 Use scoped_free_pendings.
2310 * dbxread.c (dbx_symfile_read, dbx_psymtab_to_symtab_1): Use
2311 scoped_free_pendings.
2312 * xcoffread.c (xcoff_psymtab_to_symtab_1): Use scoped_free_pendings.
2313 (xcoff_initial_scan): Likewise.
2314 * buildsym.c (reset_symtab_globals): Update comment.
2315 (scoped_free_pendings): Rename from really_free_pendings.
2316 (prepare_for_building): Update comment.
2317 (buildsym_init): Likewise.
2318 * buildsym.h (class scoped_free_pendings): New class.
2319 (really_free_pendings): Don't declare.
2320
67fa57cf
UW
23212017-11-03 Ulrich Weigand <uweigand@de.ibm.com>
2322
2323 * doublest.c (convert_doublest_to_floatformat): Fix uninitialized
2324 output when converting a zero value to a special byteorder format.
2325
f26ae15b
YQ
23262017-11-02 Yao Qi <yao.qi@linaro.org>
2327
2328 * frame.c (do_frame_register_read): Remove aspace.
2329 * jit.c (jit_frame_sniffer): Likwise.
2330 * ppc-linux-tdep.c (ppu2spu_sniffer): Likewise.
2331 * regcache.c (regcache::regcache): Pass nullptr.
2332 (regcache_print): Caller updated.
2333 * regcache.h (regcache::regcache): Remove one constructor
2334 parameter aspace.
2335
6c6e9412
YQ
23362017-11-02 Yao Qi <yao.qi@linaro.org>
2337
2338 * regcache.h (regcache) <m_readonly_p>: Change it to const bool.
2339
8b86c959
YQ
23402017-11-02 Yao Qi <yao.qi@linaro.org>
2341
2342 * breakpoint.c (insert_single_step_breakpoints): Update.
2343 * frame.c (struct frame_info) <aspace>: Add const.
2344 (frame_save_as_regcache): Add const.
2345 (get_frame_address_space): Return const address_space *.
2346 * frame.h (get_frame_address_space): Update declaration.
2347 * infrun.c (struct step_over_info) <aspace>: Add const.
2348 (set_step_over_info): Make aspace const.
2349 (displaced_step_prepare_throw): Change variable const.
2350 (resume): Likewise.
2351 (proceed): Likewise.
2352 (adjust_pc_after_break): Likewise.
2353 (save_waitstatus): Likewise.
2354 (handle_signal_stop): Likewise.
2355 (keep_going_pass_signal): Likewise.
2356 * jit.c (jit_frame_sniffer): Add const.
2357 * mips-tdep.c (mips_single_step_through_delay): Likewise.
2358 * ppc-linux-tdep.c (ppu2spu_sniffer): Likewise.
2359 * record-full.c (record_full_wait_1): Likewise.
2360 * regcache.c (regcache::regcache): Change parameter to const.
2361 * regcache.h (regcache::regcache): Likewise.
2362 (regcache::aspace): Return const address_space *.
2363 (regcache) <m_aspace>: Add const.
2364
a01bda52
YQ
23652017-11-02 Yao Qi <yao.qi@linaro.org>
2366
2367 * darwin-nat.c (cancel_breakpoint): Use regcache->aspace ().
2368 * frame.c (create_sentinel_frame): Likewise.
2369 * infrun.c (displaced_step_prepare_throw): Likewise.
2370 (resume): Likewise.
2371 (thread_still_needs_step_over_bp): Likewise.
2372 (proceed): Likewise.
2373 (do_target_wait): Likewise.
2374 (adjust_pc_after_break): Likewise.
2375 (handle_syscall_event): Likewise.
2376 (save_waitstatus): Likewise.
2377 (handle_inferior_event_1): Likewise.
2378 (handle_signal_stop): Likewise.
2379 (keep_going_pass_signal): Likewise.
2380 * linux-nat.c (status_callback): Likewise.
2381 (save_stop_reason): Likewise.
2382 (resume_stopped_resumed_lwps): Likewise.
2383 * record-full.c (record_full_exec_insn): Likewise.
2384 (record_full_wait_1): Likewise.
2385 * regcache.c (get_regcache_aspace): Remove.
2386 * regcache.h (get_regcache_aspace): Remove.
2387
d999647b
YQ
23882017-11-02 Yao Qi <yao.qi@linaro.org>
2389
2390 * regcache.c (struct regcache_descr) <nr_raw_registers>: Remove.
2391 (init_regcache_descr): Use gdbarch_num_regs.
2392 (regcache::regcache): Likewise.
2393 (regcache::get_register_status): Likewise.
2394 (regcache::assert_raw_regnum): Likewise.
2395 (regcache::cooked_read): Likewise.
2396 (regcache::cooked_read_value): Likewise.
2397 (regcache::cooked_write): Likewise.
2398 (regcache::dump): Likewise.
2399 (regcache::num_raw_registers): New method.
2400 * regcache.h (class regcache) <num_raw_registers>: New.
2401
4e888c28
YQ
24022017-11-02 Yao Qi <yao.qi@linaro.org>
2403
2404 * regcache.c (regcache::assert_regnum): New method.
2405 (regcache::invalidate): Call assert_regnum.
2406 (regcache::raw_update): Likewise.
2407 (regcache::raw_write): Likewise.
2408 (regcache::raw_read_part): Likewise.
2409 (regcache::raw_write_part): Likewise.
2410 (regcache::raw_supply): Likewise.
2411 (regcache::raw_supply_integer): Likewise.
2412 (regcache::raw_supply_zeroed): Likewise.
2413 (regcache::raw_collect): Likewise.
2414 (regcache::raw_collect_integer): Likewise.
2415 * regcache.h (regcache::assert_regnum): Declare.
2416
2e1b49b3
YQ
24172017-11-02 Yao Qi <yao.qi@linaro.org>
2418
2419 * regcache.c (regcache::dump): Remove code.
2420
6c5218df
YQ
24212017-11-02 Yao Qi <yao.qi@linaro.org>
2422
2423 * regcache.c (struct regcache_descr) <sizeof_raw_register_status>:
2424 Remove.
2425 <sizeof_cooked_register_status>: Remove.
2426 (init_regcache_descr): Update.
2427 (regcache::regcache): Use nr_cooked_registers and nr_raw_registers.
2428 (regcache::save): Likewise.
2429 (regcache::dump): Likewise.
2430
dcc31d28
JB
24312017-11-01 James Bowman <james.bowman@ftdichip.com>
2432
2433 * ft32-tdep.c (ft32_fetch_instruction): New function.
2434 (ft32_analyze_prologue): Use ft32_fetch_instruction().
2435
3a87ae65
SM
24362017-10-31 Simon Marchi <simon.marchi@polymtl.ca>
2437
2438 * cli/cli-script.c (execute_control_command): Rename to ...
2439 (execute_control_command_1): ... this.
2440 (execute_control_command): New function.
2441
09b847f3
SM
24422017-10-31 Simon Marchi <simon.marchi@ericsson.com>
2443
2444 * tracepoint.c (tfind_command): Remove const_cast.
2445
f871c485
MG
24462017-10-30 Mike Gulick <mgulick@mathworks.com>
2447
2448 * Makefile.in (HFILES_NO_SRCDIR): Remove reference to gdb.h.
2449
b020ff80
SM
24502017-10-30 Simon Marchi <simon.marchi@ericsson.com>
2451
2452 * common/common-utils.h (in_inclusive_range): New function.
2453 * arm-tdep.c (arm_record_extension_space): Use
2454 in_inclusive_range.
2455 (thumb_record_ld_st_reg_offset): Use in_inclusive_range.
2456 * cris-tdep.c (cris_spec_reg_applicable): Use
2457 in_inclusive_range.
2458
1b81856f
PA
24592017-10-30 Pedro Alves <palves@redhat.com>
2460 Simon Marchi <simon.marchi@ericsson.com>
2461
2462 * remote.c (remote_set_syscall_catchpoint): Build a std::string
2463 instead of a gdb::unique_xmalloc_ptr, using string_appendf.
2464
31b833b3
PA
24652017-10-30 Pedro Alves <palves@redhat.com>
2466
2467 * common/common-utils.c (string_appendf, string_vappendf): New
2468 functions.
2469 * common/common-utils.h (string_appendf, string_vappendf): New
2470 declarations.
2471 * unittests/common-utils-selftests.c (string_appendf_func)
2472 (test_appendf_func, string_vappendf_wrapper, string_appendf_tests)
2473 (string_vappendf_tests): New functions.
2474 (_initialize_common_utils_selftests): Register "string_appendf" and
2475 "string_vappendf tests".
2476
4a250334
PA
24772017-10-30 Pedro Alves <palves@redhat.com>
2478
2479 * unittests/common-utils-selftests.c (format_func): New typedef.
2480 (string_printf_tests, string_vprintf_tests): Tests factored out
2481 and merged to ...
2482 (test_format_func): ... this new function.
2483 (string_printf_tests, string_vprintf_tests): Reimplement on top of
2484 test_format_func.
2485
16c5c17e
SM
24862017-10-29 Simon Marchi <simon.marchi@ericsson.com>
2487
2488 * darwin-nat.c: Remove include of gdb.h.
2489
7ca51576
SM
24902017-10-29 Simon Marchi <simon.marchi@ericsson.com>
2491
2492 * xtensa-xtregs.c: Fix formatting issues.
2493
c1342859
SM
24942017-10-29 Simon Marchi <simon.marchi@ericsson.com>
2495
2496 * xtensa-xtregs.c (xtensa_regtable_t) <name>: Constify.
2497
484d8d36
MD
24982017-10-28 Maksim Dzabraev <dzabraew@gmail.com>
2499
2500 PR python/21213
2501 * python/py-infthread.c (thpy_get_inferior): Increment reference
2502 of inferior before returning it.
2503
b5540b5f
SM
25042017-10-27 Simon Marchi <simon.marchi@ericsson.com>
2505
2506 * unittests/common-utils-selftests.c (format): Add
2507 ATTRIBUTE_PRINTF.
2508
5a9dcda1
SM
25092017-10-27 Simon Marchi <simon.marchi@polymtl.ca>
2510
2511 * xml-syscall.c (struct syscall_desc): Add constructor.
2512 <name>: Change type to std::string.
2513 (syscall_desc_up): New typedef.
2514 (syscall_desc_p): Remove typeder.
2515 (DEF_VEC_P(syscall_desc_p)): Remove.
2516 (struct syscall_group_desc): Add constructor.
2517 <name>: Change type to std::string.
2518 <syscalls>: Change type to std::vector.
2519 (syscall_group_desc_up): New typedef.
2520 (syscall_group_desc_p): Remove typedef.
2521 (DEF_VEC_P(syscall_group_desc_p)): Remove.
2522 (struct syscalls_info) <syscalls>: Change type to std::vector of
2523 unique_ptr.
2524 <groups>: Likewise.
2525 <my_gdb_datadir>: Change type to std::string.
2526 (syscalls_info_up): New typedef.
2527 (allocate_syscalls_info): Remove.
2528 (syscalls_info_free_syscalls_desc): Remove.
2529 (syscalls_info_free_syscall_group_desc): Remove.
2530 (free_syscalls_info): Remove.
2531 (make_cleanup_free_syscalls_info): Remove.
2532 (syscall_group_create_syscall_group_desc): Adjust.
2533 (syscall_group_add_syscall): Adjust.
2534 (syscall_create_syscall_desc): Adjust.
2535 (syscall_parse_xml): Adjust, use unique_ptr instead of cleanup.
2536 (init_syscalls_info): Adjust.
2537 (syscall_group_get_group_by_name): Adjust.
2538 (xml_get_syscall_number): Adjust.
2539 (xml_get_syscall_name): Adjust.
2540 (xml_list_of_syscalls): Adjust.
2541 (xml_list_syscalls_by_group): Adjust.
2542 (xml_list_of_groups): Adjust.
2543
45461e0d
SM
25442017-10-27 Simon Marchi <simon.marchi@ericsson.com>
2545
2546 * probe.h: Don't include gdb_vecs.h.
2547 (DEF_VEC_P (probe_p)): Remove.
2548 (find_probes_in_objfile): Return an std::vector.
2549 * probe.c (find_probes_in_objfile): Likewise.
2550 * breakpoint.c (breakpoint_objfile_data)
2551 <longjmp_probes>: Change type to std::vector.
2552 <exception_probes>: Likewise.
2553 (free_breakpoint_probes): Don't manually free vectors.
2554 (create_longjmp_master_breakpoint): Adjust.
2555 (create_exception_master_breakpoint): Adjust.
2556 * solib-svr4.c (svr4_create_probe_breakpoints): Change
2557 parameter type, adjust.
2558 (svr4_create_solib_event_breakpoints): Adjust.
2559
43dce439
SM
25602017-10-27 Simon Marchi <simon.marchi@ericsson.com>
2561
2562 * breakpoint.c (breakpoint_objfile_data): Initialize fields.
2563 (get_breakpoint_objfile_data): Allocate breakpoint_objfile_data
2564 with new.
2565 (free_breakpoint_probes): Rename to ...
2566 (free_breakpoint_objfile_data): ... this, and call delete on
2567 bp_objfile_data..
2568
6a1b9516
SM
25692017-10-27 Simon Marchi <simon.marchi@polymtl.ca>
2570
2571 * auto-load.c: Don't include gdb_vecs.h, include algorithm.
2572 (loaded_script_ptr): Remove typedef.
2573 (DEF_VEC_P (loaded_script_ptr)): Remove.
2574 (struct collect_matching_scripts_data): Add constructor.
2575 <scripts_p>: Change type to (pointer to) std::vector.
2576 (collect_matching_scripts_data): Adjust.
2577 (sort_scripts_by_name): Make suitable for std::sort.
2578 (print_scripts): Don't sort vector, adjust to std::vector.
2579 (auto_load_info_scripts): Sort vectors, adjust to std::vector.
2580
593e3209
SM
25812017-10-27 Simon Marchi <simon.marchi@ericsson.com>
2582
2583 * symfile.c (filename_language): Make struct, not typedef. Add
2584 constructor.
2585 <ext>: Change type to std::string.
2586 (DEF_VEC_O (filename_language)): Remove.
2587 (filename_language_table): Change type to std::vector.
2588 (add_filename_language): Adjust.
2589 (set_ext_lang_command): Adjust.
2590 (info_ext_lang_command): Adjust.
2591 (deduce_language_from_filename): Adjust.
2592 (class scoped_restore_filename_language_table): Remove.
2593 (test_filename_language): Use scoped_restore.
2594 (test_set_ext_lang_command): Use scoped_restore, adjust to
2595 std::vector change.
2596
32fa66eb
SM
25972017-10-27 Simon Marchi <simon.marchi@ericsson.com>
2598
2599 * symfile.c: Include selftest.h.
2600 (class scoped_restore_filename_language_table): New.
2601 (test_filename_language): New test.
2602 (test_set_ext_lang_command): New test.
2603 (_initialize_symfile): Register tests.
2604
4a27f119
KS
26052017-10-27 Keith Seitz <keiths@redhat.com>
2606
2607 * breakpoint.c (print_breakpoint_location): Use the symbol saved
2608 in the bp_location, falling back to find_pc_sect_function when
2609 needed.
2610 (add_location_to_breakpoint): Save sal->symbol.
2611 * breakpoint.h (struct bp_location) <symbol>: New field.
2612 * symtab.c (find_function_start_sal): Save the symbol into the SaL.
2613 * symtab.h (struct symtab_and_line) <symbol>: New field.
2614
a43f3893
PF
26152017-10-26 Patrick Frants <osscontribute@gmail.com>
2616
7453e6b2 2617 PR gdb/13669
a43f3893
PF
2618 * cp-valprint.c (cp_print_value_fields): Use obstack_blank_fast
2619 to rewind obstack.
2620
23cc4e1b
PA
26212017-10-26 Pedro Alves <palves@redhat.com>
2622
2623 * remote.c (remote_async_terminal_ours_p): Delete.
2624 (remote_open_1, remote_terminal_inferior, remote_terminal_ours):
2625 Remove references to 'remote_async_terminal_ours_p'.
2626
6abc18bb
YQ
26272017-10-26 Yao Qi <yao.qi@linaro.org>
2628
2629 * breakpoint.h (regular_breakpoint_inserted_here_p): Remove.
2630
bd522513
YQ
26312017-10-26 Yao Qi <yao.qi@linaro.org>
2632
2633 * break-catch-sig.c (signal_catchpoint_breakpoint_hit): Make
2634 aspace const.
2635 * break-catch-syscall.c (breakpoint_hit_catch_syscall):
2636 Likewise.
2637 * breakpoint.c (bpstat_check_location): Remove cast.
2638 (breakpoint_hit_catch_fork): Make aspce const.
2639 (breakpoint_hit_catch_solib): Likewise.
2640 (breakpoint_hit_catch_exec): Likewise.
2641 (breakpoint_hit_ranged_breakpoint): Likewise.
2642 (breakpoint_hit_watchpoint): Likewise.
2643 (base_breakpoint_breakpoint_hit): Likewise.
2644 (bkpt_breakpoint_hit): Likewise.
2645 (dprintf_breakpoint_hit): Likewise.
2646 (tracepoint_breakpoint_hit): Likewise.
2647 * breakpoint.h (breakpoint_ops) <breakpoint_hit>: Likewise.
2648
accd0bcd
YQ
26492017-10-26 Yao Qi <yao.qi@linaro.org>
2650
2651 * breakpoint.c (breakpoint_location_address_match): Change
2652 "struct address_space *" to "const address_space".
2653 (breakpoint_location_address_range_overlap): Likewise.
2654 (breakpoint_here_p): Likewise.
2655 (breakpoint_in_range_p): Likewise.
2656 (moribund_breakpoint_here_p): Likewise.
2657 (bp_location_inserted_here_p): Likewise.
2658 (software_breakpoint_inserted_here_p): Likewise.
2659 (hardware_breakpoint_inserted_here_p): Likewise.
2660 (hardware_watchpoint_inserted_in_range): Likewise.
2661 (bpstat_check_location): Likewise.
2662 (bpstat_stop_status): Likewise.
2663 (breakpoint_address_match): Likewise.
2664 (breakpoint_address_match_range): Likewise.
2665 (breakpoint_location_address_match): Likewise.
2666 (breakpoint_location_address_range_overlap): Likewise.
2667 (insert_single_step_breakpoint): Likewise.
2668 (breakpoint_has_location_inserted_here): Likewise.
2669 (single_step_breakpoint_inserted_here_p): Likewise.
2670 (pc_at_non_inline_function): Likewise.
2671 * breakpoint.h (bpstat_stop_status): Update declaration.
2672 (breakpoint_here_p): Likewise.
2673 (breakpoint_in_range_p): Likewise.
2674 (moribund_breakpoint_here_p): Likewise.
2675 (breakpoint_inserted_here_p): Likewise.
2676 (software_breakpoint_inserted_here_p): Likewise.
2677 (hardware_breakpoint_inserted_here_p): Likewise.
2678 (breakpoint_has_location_inserted_here): Likewise.
2679 (single_step_breakpoint_inserted_here_p): Likewise.
2680 (hardware_watchpoint_inserted_in_range): Likewise.
2681 (breakpoint_address_match): Likewise.
2682 (insert_single_step_breakpoint): Likewise.
2683 (pc_at_non_inline_function): Likewise.
2684 * gdbthread.h (thread_has_single_step_breakpoint_here): Likewise.
2685 * record.c (record_check_stopped_by_breakpoint): Likewise.
2686 * record.h (record_check_stopped_by_breakpoint): Likewise.
2687 * thread.c (thread_has_single_step_breakpoint_here): Likewise.
2688
ac7936df
YQ
26892017-10-25 Yao Qi <yao.qi@linaro.org>
2690
2691 * aarch32-linux-nat.c (aarch32_gp_regcache_supply): Use
2692 regcache->arch () instead get_regcache_arch.
2693 * aarch64-fbsd-nat.c (aarch64_fbsd_fetch_inferior_registers):
2694 Likewise.
2695 (aarch64_fbsd_store_inferior_registers): Likewise.
2696 * aarch64-linux-nat.c (fetch_gregs_from_thread): Likewise.
2697 (store_gregs_to_thread): Likewise.
2698 (fetch_fpregs_from_thread): Likewise.
2699 (store_fpregs_to_thread): Likewise.
2700 * aarch64-tdep.c (aarch64_extract_return_value): Likewise.
2701 (aarch64_store_return_value): Likewise.
2702 (aarch64_software_single_step): Likewise.
2703 * aix-thread.c (aix_thread_wait): Likewise.
2704 (supply_reg32): Likewise.
2705 (supply_sprs64): Likewise.
2706 (supply_sprs32): Likewise.
2707 (fill_gprs64): Likewise.
2708 (fill_gprs32): Likewise.
2709 (fill_sprs64): Likewise.
2710 (fill_sprs32): Likewise.
2711 (store_regs_user_thread): Likewise.
2712 (store_regs_kernel_thread): Likewise.
2713 * alpha-bsd-nat.c (alphabsd_fetch_inferior_registers): Likewise.
2714 (alphabsd_store_inferior_registers): Likewise.
2715 * alpha-tdep.c (alpha_extract_return_value): Likewise.
2716 (alpha_store_return_value): Likewise.
2717 (alpha_deal_with_atomic_sequence): Likewise.
2718 (alpha_next_pc): Likewise.
2719 (alpha_software_single_step): Likewise.
2720 * amd64-bsd-nat.c (amd64bsd_fetch_inferior_registers): Likewise.
2721 (amd64bsd_store_inferior_registers): Likewise.
2722 * amd64-linux-nat.c (amd64_linux_fetch_inferior_registers):
2723 Likewise.
2724 (amd64_linux_store_inferior_registers): Likewise.
2725 * amd64-nat.c (amd64_supply_native_gregset): Likewise.
2726 (amd64_collect_native_gregset): Likewise.
2727 * amd64-obsd-tdep.c (amd64obsd_supply_uthread): Likewise.
2728 (amd64obsd_collect_uthread): Likewise.
2729 * amd64-tdep.c (amd64_supply_fpregset): Likewise.
2730 (amd64_collect_fpregset): Likewise.
2731 (amd64_supply_fxsave): Likewise.
2732 (amd64_supply_xsave): Likewise.
2733 (amd64_collect_fxsave): Likewise.
2734 (amd64_collect_xsave): Likewise.
2735 * arc-tdep.c (arc_write_pc): Likewise.
2736 * arch-utils.c (default_skip_permanent_breakpoint): Likewise.
2737 * arm-fbsd-nat.c (arm_fbsd_fetch_inferior_registers): Likewise.
2738 (arm_fbsd_store_inferior_registers): Likewise.
2739 * arm-linux-nat.c (fetch_vfp_regs): Likewise.
2740 (store_vfp_regs): Likewise.
2741 (arm_linux_fetch_inferior_registers): Likewise.
2742 (arm_linux_store_inferior_registers): Likewise.
2743 * arm-linux-tdep.c (arm_linux_supply_gregset): Likewise.
2744 (arm_linux_sigreturn_next_pc): Likewise.
2745 (arm_linux_get_next_pcs_syscall_next_pc): Likewise.
2746 * arm-nbsd-nat.c (arm_supply_gregset): Likewise.
2747 (fetch_register): Likewise.
2748 (store_register): Likewise.
2749 * arm-tdep.c (arm_is_thumb): Likewise.
2750 (displaced_in_arm_mode): Likewise.
2751 (bx_write_pc): Likewise.
2752 (arm_get_next_pcs_addr_bits_remove): Likewise.
2753 (arm_software_single_step): Likewise.
2754 (arm_extract_return_value): Likewise.
2755 (arm_store_return_value): Likewise.
2756 (arm_write_pc): Likewise.
2757 * bfin-tdep.c (bfin_extract_return_value): Likewise.
2758 * bsd-uthread.c (bsd_uthread_fetch_registers): Likewise.
2759 (bsd_uthread_store_registers): Likewise.
2760 * core-regset.c (fetch_core_registers): Likewise.
2761 * corelow.c (get_core_registers): Likewise.
2762 * cris-tdep.c (cris_store_return_value): Likewise.
2763 (cris_extract_return_value): Likewise.
2764 (find_step_target): Likewise.
2765 (find_step_target): Likewise.
2766 (cris_software_single_step): Likewise.
2767 * ctf.c (ctf_fetch_registers): Likewise.
2768 * darwin-nat.c (cancel_breakpoint): Likewise.
2769 * fbsd-tdep.c (fbsd_collect_thread_registers): Likewise.
2770 * frv-tdep.c (frv_extract_return_value): Likewise.
2771 * ft32-tdep.c (ft32_store_return_value): Likewise.
2772 (ft32_extract_return_value): Likewise.
2773 * go32-nat.c (fetch_register): Likewise.
2774 (go32_fetch_registers): Likewise.
2775 (go32_store_registers): Likewise.
2776 (store_register): Likewise.
2777 * h8300-tdep.c (h8300_extract_return_value): Likewise.
2778 (h8300_store_return_value): Likewise.
2779 * hppa-linux-nat.c (fetch_register): Likewise.
2780 (store_register): Likewise.
2781 (hppa_linux_fetch_inferior_registers): Likewise.
2782 (hppa_linux_store_inferior_registers): Likewise.
2783 * i386-darwin-nat.c (i386_darwin_fetch_inferior_registers): Likewise.
2784 (i386_darwin_store_inferior_registers): Likewise.
2785 * i386-gnu-nat.c (gnu_fetch_registers): Likewise.
2786 (gnu_store_registers): Likewise.
2787 * i386-linux-nat.c (fetch_register): Likewise.
2788 (store_register): Likewise.
2789 (supply_gregset): Likewise.
2790 (fill_gregset): Likewise.
2791 (i386_linux_fetch_inferior_registers): Likewise.
2792 (i386_linux_store_inferior_registers): Likewise.
2793 (i386_linux_resume): Likewise.
2794 * i386-linux-tdep.c (i386_linux_get_syscall_number_from_regcache):
2795 Likewise.
2796 * i386-nto-tdep.c (i386nto_supply_gregset): Likewise.
2797 * i386-obsd-nat.c (i386obsd_supply_pcb): Likewise.
2798 * i386-obsd-tdep.c (i386obsd_supply_uthread): Likewise.
2799 (i386obsd_collect_uthread): Likewise.
2800 * i386-tdep.c (i386_mmx_regnum_to_fp_regnum): Likewise.
2801 (i386_supply_gregset): Likewise.
2802 (i386_collect_gregset): Likewise.
2803 (i386_supply_fpregset): Likewise.
2804 (i386_collect_fpregset): Likewise.
2805 (i386_mpx_bd_base): Likewise.
2806 * i386-v4-nat.c (supply_fpregset): Likewise.
2807 (fill_fpregset): Likewise.
2808 * i387-tdep.c (i387_supply_fsave): Likewise.
2809 (i387_collect_fsave): Likewise.
2810 (i387_supply_fxsave): Likewise.
2811 (i387_collect_fxsave): Likewise.
2812 (i387_supply_xsave): Likewise.
2813 (i387_collect_xsave): Likewise.
2814 * ia64-linux-nat.c (ia64_linux_fetch_registers): Likewise.
2815 (ia64_linux_store_registers): Likewise.
2816 * ia64-tdep.c (ia64_access_rse_reg): Likewise.
2817 (ia64_extract_return_value): Likewise.
2818 (ia64_store_return_value): Likewise.
2819 (find_func_descr): Likewise.
2820 * inf-child.c (inf_child_fetch_inferior_registers): Likewise.
2821 * inf-ptrace.c (inf_ptrace_fetch_registers): Likewise.
2822 (inf_ptrace_store_registers): Likewise.
2823 * infrun.c (use_displaced_stepping): Likewise.
2824 (displaced_step_prepare_throw): Likewise.
2825 (resume): Likewise.
2826 (proceed): Likewise.
2827 (do_target_wait): Likewise.
2828 (adjust_pc_after_break): Likewise.
2829 (handle_inferior_event_1): Likewise.
2830 (handle_signal_stop): Likewise.
2831 (save_infcall_suspend_state): Likewise.
2832 (restore_infcall_suspend_state): Likewise.
2833 * iq2000-tdep.c (iq2000_extract_return_value): Likewise.
2834 * jit.c (jit_frame_prev_register): Likewise.
2835 * linux-nat.c (save_stop_reason): Likewise.
2836 (linux_nat_wait_1): Likewise.
2837 (resume_stopped_resumed_lwps): Likewise.
2838 * linux-record.c (record_linux_sockaddr): Likewise.
2839 (record_linux_msghdr): Likewise.
2840 (record_linux_system_call): Likewise.
2841 * linux-tdep.c (linux_collect_thread_registers): Likewise.
2842 * lm32-tdep.c (lm32_extract_return_value): Likewise.
2843 (lm32_store_return_value): Likewise.
2844 * m32c-tdep.c (m32c_read_flg): Likewise.
2845 (m32c_pseudo_register_read): Likewise.
2846 (m32c_pseudo_register_write): Likewise.
2847 * m32r-linux-tdep.c (m32r_linux_supply_gregset): Likewise.
2848 (m32r_linux_collect_gregset): Likewise.
2849 * m32r-tdep.c (m32r_store_return_value): Likewise.
2850 (m32r_extract_return_value): Likewise.
2851 * m68k-bsd-nat.c (m68kbsd_supply_fpregset): Likewise.
2852 (m68kbsd_collect_fpregset): Likewise.
2853 * m68k-bsd-tdep.c (m68kbsd_supply_fpregset): Likewise.
2854 * m68k-linux-nat.c (fetch_register): Likewise.
2855 (old_fetch_inferior_registers): Likewise.
2856 (old_store_inferior_registers): Likewise.
2857 (store_regs): Likewise.
2858 * m68k-tdep.c (m68k_svr4_extract_return_value): Likewise.
2859 (m68k_svr4_store_return_value): Likewise.
2860 * m88k-tdep.c (m88k_store_arguments): Likewise.
2861 * mi/mi-main.c (mi_cmd_data_list_changed_registers): Likewise.
2862 (mi_cmd_data_write_register_values): Likewise.
2863 * mips-fbsd-nat.c (mips_fbsd_fetch_inferior_registers): Likewise.
2864 (mips_fbsd_store_inferior_registers): Likewise.
2865 * mips-fbsd-tdep.c (mips_fbsd_supply_fpregs): Likewise.
2866 (mips_fbsd_supply_gregs): Likewise.
2867 (mips_fbsd_collect_fpregs): Likewise.
2868 (mips_fbsd_collect_gregs): Likewise.
2869 (mips_fbsd_supply_fpregset): Likewise.
2870 (mips_fbsd_collect_fpregset): Likewise.
2871 (mips_fbsd_supply_gregset): Likewise.
2872 (mips_fbsd_collect_gregset): Likewise.
2873 * mips-linux-nat.c (supply_gregset): Likewise.
2874 (fill_gregset): Likewise.
2875 (supply_fpregset): Likewise.
2876 (fill_fpregset): Likewise.
2877 * mips-linux-tdep.c (mips_supply_gregset): Likewise.
2878 (mips_fill_gregset): Likewise.
2879 (mips_supply_fpregset): Likewise.
2880 (mips_fill_fpregset): Likewise.
2881 (mips64_supply_gregset): Likewise.
2882 (micromips_linux_sigframe_validate): Likewise.
2883 * mips-nbsd-nat.c (mipsnbsd_fetch_inferior_registers): Likewise.
2884 (mipsnbsd_fetch_inferior_registers): Likewise.
2885 (mipsnbsd_store_inferior_registers): Likewise.
2886 * mips-nbsd-tdep.c (mipsnbsd_supply_fpregset): Likewise.
2887 (mipsnbsd_supply_gregset): Likewise.
2888 (mipsnbsd_iterate_over_regset_sections): Likewise.
2889 (mipsnbsd_supply_reg): Likewise.
2890 (mipsnbsd_supply_fpreg): Likewise.
2891 * mips-tdep.c (mips_in_frame_stub): Likewise.
2892 (mips_dummy_id): Likewise.
2893 (is_octeon_bbit_op): Likewise.
2894 (micromips_bc1_pc): Likewise.
2895 (extended_mips16_next_pc): Likewise.
2896 (mips16_next_pc): Likewise.
2897 (deal_with_atomic_sequence): Likewise.
2898 * moxie-tdep.c (moxie_process_readu): Likewise.
2899 * nios2-tdep.c (nios2_get_next_pc): Likewise.
2900 * nto-procfs.c (procfs_store_registers): Likewise.
2901 * ppc-fbsd-nat.c (ppcfbsd_fetch_inferior_registers): Likewise.
2902 (ppcfbsd_store_inferior_registers): Likewise.
2903 * ppc-linux-nat.c (fetch_vsx_register): Likewise.
2904 (fetch_altivec_register): Likewise.
2905 (get_spe_registers): Likewise.
2906 (fetch_spe_register): Likewise.
2907 (fetch_altivec_registers): Likewise.
2908 (fetch_all_gp_regs): Likewise.
2909 (fetch_all_fp_regs): Likewise.
2910 (store_vsx_register): Likewise.
2911 (store_altivec_register): Likewise.
2912 (set_spe_registers): Likewise.
2913 (store_spe_register): Likewise.
2914 (store_altivec_registers): Likewise.
2915 (store_all_gp_regs): Likewise.
2916 (store_all_fp_regs): Likewise.
2917 * ppc-linux-tdep.c (ppc_linux_supply_gregset): Likewise.
2918 (ppc_linux_collect_gregset): Likewise.
2919 (ppc_canonicalize_syscall): Likewise.
2920 (ppc_linux_record_signal): Likewise.
2921 (ppu2spu_prev_register): Likewise.
2922 * ppc-nbsd-nat.c (ppcnbsd_supply_pcb): Likewise.
2923 * ppc-obsd-nat.c (ppcobsd_fetch_registers): Likewise.
2924 (ppcobsd_store_registers): Likewise.
2925 * ppc-ravenscar-thread.c (ppc_ravenscar_generic_fetch_registers):
2926 Likewise.
2927 (ppc_ravenscar_generic_store_registers): Likewise.
2928 * procfs.c (procfs_fetch_registers): Likewise.
2929 (procfs_store_registers): Likewise.
2930 * ravenscar-thread.c (ravenscar_fetch_registers): Likewise.
2931 (ravenscar_store_registers): Likewise.
2932 (ravenscar_prepare_to_store): Likewise.
2933 * record-btrace.c (record_btrace_fetch_registers): Likewise.
2934 * record-full.c (record_full_wait_1): Likewise.
2935 (record_full_registers_change): Likewise.
2936 (record_full_store_registers): Likewise.
2937 (record_full_core_fetch_registers): Likewise.
2938 (record_full_save): Likewise.
2939 (record_full_goto_insn): Likewise.
2940 * regcache.c (regcache_register_size): Likewise.
2941 (get_regcache_arch): Remove.
2942 (regcache_read_pc): Likewise.
2943 * regcache.h (get_regcache_arch): Remove.
2944 * remote-sim.c (gdbsim_fetch_register): Likewise.
2945 (gdbsim_store_register): Likewise.
2946 * remote.c (fetch_register_using_p): Likewise.
2947 (send_g_packet): Likewise.
2948 (remote_prepare_to_store): Likewise.
2949 (store_registers_using_G): Likewise.
2950 * reverse.c (save_bookmark_command): Likewise.
2951 (goto_bookmark_command): Likewise.
2952 * rs6000-aix-tdep.c (branch_dest): Likewise.
2953 * rs6000-nat.c (rs6000_ptrace64): Likewise.
2954 (fetch_register): Likewise.
2955 * rs6000-tdep.c (ppc_supply_reg): Likewise.
2956 (ppc_collect_reg): Likewise.
2957 (ppc_collect_gregset): Likewise.
2958 (ppc_collect_fpregset): Likewise.
2959 (ppc_collect_vsxregset): Likewise.
2960 (ppc_collect_vrregset): Likewise.
2961 (ppc_displaced_step_hw_singlestep): Likewise.
2962 (rs6000_pseudo_register_read): Likewise.
2963 (rs6000_pseudo_register_write): Likewise.
2964 * s390-linux-nat.c (supply_gregset): Likewise.
2965 (fill_gregset): Likewise.
2966 (s390_linux_fetch_inferior_registers): Likewise.
2967 * s390-linux-tdep.c (s390_write_pc): Likewise.
2968 (s390_software_single_step): Likewise.
2969 (s390_all_but_pc_registers_record): Likewise.
2970 (s390_linux_syscall_record): Likewise.
2971 * sentinel-frame.c (sentinel_frame_prev_arch): Likewise.
2972 * sh-nbsd-nat.c (shnbsd_fetch_inferior_registers): Likewise.
2973 (shnbsd_store_inferior_registers): Likewise.
2974 * sh-tdep.c (sh_extract_return_value_nofpu): Likewise.
2975 (sh_extract_return_value_fpu): Likewise.
2976 (sh_store_return_value_nofpu): Likewise.
2977 (sh_corefile_supply_regset): Likewise.
2978 (sh_corefile_collect_regset): Likewise.
2979 * sh64-tdep.c (sh64_extract_return_value): Likewise.
2980 (sh64_store_return_value): Likewise.
2981 * sparc-linux-tdep.c (sparc32_linux_collect_core_fpregset): Likewise.
2982 * sparc-nat.c (sparc_fetch_inferior_registers): Likewise.
2983 (sparc_store_inferior_registers): Likewise.
2984 * sparc-ravenscar-thread.c (register_in_thread_descriptor_p): Likewise.
2985 (sparc_ravenscar_prepare_to_store): Likewise.
2986 * sparc-tdep.c (sparc32_store_arguments): Likewise.
2987 (sparc_analyze_control_transfer): Likewise.
2988 (sparc_step_trap): Likewise.
2989 (sparc_software_single_step): Likewise.
2990 (sparc32_gdbarch_init): Likewise.
2991 (sparc_supply_rwindow): Likewise.
2992 (sparc_collect_rwindow): Likewise.
2993 * sparc64-linux-tdep.c (sparc64_linux_collect_core_fpregset): Likewise.
2994 * sparc64-nbsd-nat.c (sparc64nbsd_supply_gregset): Likewise.
2995 (sparc64nbsd_collect_gregset): Likewise.
2996 (sparc64nbsd_supply_fpregset): Likewise.
2997 (sparc64nbsd_collect_fpregset): Likewise.
2998 * sparc64-tdep.c (sparc64_store_arguments): Likewise.
2999 (sparc64_supply_gregset): Likewise.
3000 (sparc64_collect_gregset): Likewise.
3001 (sparc64_supply_fpregset): Likewise.
3002 (sparc64_collect_fpregset): Likewise.
3003 * spu-linux-nat.c (spu_fetch_inferior_registers): Likewise.
3004 * spu-tdep.c (spu_unwind_sp): Likewise.
3005 (spu2ppu_prev_register): Likewise.
3006 (spu_memory_remove_breakpoint): Likewise.
3007 * stack.c (return_command): Likewise.
3008 * tic6x-tdep.c (tic6x_extract_signed_field): Likewise.
3009 * tracefile-tfile.c (tfile_fetch_registers): Likewise.
3010 * tracefile.c (trace_save_ctf): Likewise.
3011 * windows-nat.c (do_windows_fetch_inferior_registers): Likewise.
3012 (do_windows_store_inferior_registers): Likewise.
3013 (windows_resume): Likewise.
3014 * xtensa-linux-nat.c (fill_gregset): Likewise.
3015 (supply_gregset_reg): Likewise.
3016 * xtensa-tdep.c (xtensa_register_write_masked): Likewise.
3017 (xtensa_register_read_masked): Likewise.
3018 (xtensa_supply_gregset): Likewise.
3019 (xtensa_extract_return_value): Likewise.
3020 (xtensa_store_return_value): Likewise.
3021
edd079d9
UW
30222017-10-25 Ulrich Weigand <uweigand@de.ibm.com>
3023
3024 * doublest.c (floatformat_from_string): New function.
3025 * doublest.h (floatformat_from_string): Add prototype.
3026
3027 * std-operator.def (OP_DOUBLE, OP_DECFLOAT): Remove, replace by ...
3028 (OP_FLOAT): ... this.
3029 * expression.h: Do not include "doublest.h".
3030 (union exp_element): Replace doubleconst and decfloatconst by
3031 new element floatconst.
3032 * ada-lang.c (resolve_subexp): Handle OP_FLOAT instead of OP_DOUBLE.
3033 (ada_evaluate_subexp): Likewise.
3034 * eval.c (evaluate_subexp_standard): Handle OP_FLOAT instead of
3035 OP_DOUBLE and OP_DECFLOAT.
3036 * expprint.c (print_subexp_standard): Likewise.
3037 (dump_subexp_body_standard): Likewise.
3038 * breakpoint.c (watchpoint_exp_is_const): Likewise.
3039
3040 * parse.c: Include "dfp.h".
3041 (write_exp_elt_dblcst, write_exp_elt_decfloatcst): Remove.
3042 (write_exp_elt_floatcst): New function.
3043 (operator_length_standard): Handle OP_FLOAT instead of OP_DOUBLE
3044 and OP_DECFLOAT.
3045 (operator_check_standard): Likewise.
3046 (parse_float): Do not accept suffix. Take type as input. Return bool.
3047 Return target format buffer instead of host DOUBLEST.
3048 Use floatformat_from_string and decimal_from_string to parse
3049 either binary or decimal floating-point types.
3050 (parse_c_float): Remove.
3051 * parser-defs.h: Do not include "doublest.h".
3052 (write_exp_elt_dblcst, write_exp_elt_decfloatcst): Remove.
3053 (write_exp_elt_floatcst): Add prototype.
3054 (parse_float): Update prototype.
3055 (parse_c_float): Remove.
3056
3057 * c-exp.y: Do not include "dfp.h".
3058 (typed_val_float): Use byte buffer instead of DOUBLEST.
3059 (typed_val_decfloat): Remove.
3060 (DECFLOAT): Remove.
3061 (FLOAT): Use OP_FLOAT and write_exp_elt_floatcst.
3062 (parse_number): Update to new parse_float interface.
3063 Parse suffixes and determine type before calling parse_float.
3064 Handle decimal and binary FP types the same way.
3065
3066 * d-exp.y (typed_val_float): Use byte buffer instead of DOUBLEST.
3067 (FLOAT_LITERAL): Use OP_FLOAT and write_exp_elt_floatcst.
3068 (parse_number): Update to new parse_float interface.
3069 Parse suffixes and determine type before calling parse_float.
3070
3071 * f-exp.y: Replace dval by typed_val_float.
3072 (FLOAT): Use OP_FLOAT and write_exp_elt_floatcst.
3073 (parse_number): Use parse_float instead of atof.
3074
3075 * go-exp.y (typed_val_float): Use byte buffer instead of DOUBLEST.
3076 (parse_go_float): Remove.
3077 (FLOAT): Use OP_FLOAT and write_exp_elt_floatcst.
3078 (parse_number): Call parse_float instead of parse_go_float.
3079 Parse suffixes and determine type before calling parse_float.
3080
3081 * p-exp.y (typed_val_float): Use byte buffer instead of DOUBLEST.
3082 (FLOAT): Use OP_FLOAT and write_exp_elt_floatcst.
3083 (parse_number): Update to new parse_float interface.
3084 Parse suffixes and determine type before calling parse_float.
3085
3086 * m2-exp.y: Replace dval by byte buffer val.
3087 (FLOAT): Use OP_FLOAT and write_exp_elt_floatcst.
3088 (parse_number): Call parse_float instead of atof.
3089
3090 * rust-exp.y (typed_val_float): Use byte buffer instead of DOUBLEST.
3091 (lex_number): Call parse_float instead of strtod.
3092 (ast_dliteral): Use OP_FLOAT instead of OP_DOUBLE.
3093 (convert_ast_to_expression): Handle OP_FLOAT instead of OP_DOUBLE.
3094 Use write_exp_elt_floatcst.
3095 (unit_testing): Remove static variable.
3096 (rust_type): Do not check unit_testing.
3097 (rust_lex_tests): Do not set uint_testing. Set up dummy rust_parser.
3098
3099 * ada-exp.y (type_float, type_double): Remove.
3100 (typed_val_float): Use byte buffer instead of DOUBLEST.
3101 (FLOAT): Use OP_FLOAT and write_exp_elt_floatcst.
3102 * ada-lex.l (processReal): Use parse_float instead of sscanf.
3103
cc628f3d
AH
31042017-10-25 Alan Hayward <alan.hayward@arm.com>
3105
3106 * aarch64-tdep.h (enum aarch64_regnum): Remove.
3107 * arch/aarch64.h: New file.
3108
09a7c6aa
UW
31092017-10-24 Ulrich Weigand <uweigand@de.ibm.com>
3110
3111 * dfp.h (decimal_from_string): Use const reference for argument.
3112 * dfp.c (decimal_from_string): Likewise.
3113
8ba0dd51
UW
31142017-10-24 Ulrich Weigand <uweigand@de.ibm.com>
3115
3116 * i387-tdep.c (print_i387_value): Use floatformat_to_string.
3117 * sh64-tdep.c (sh64_do_fp_register): Likewise.
3118 * mips-tdep.c (mips_print_fp_register): Likewise.
3119
16e812b2
UW
31202017-10-24 Ulrich Weigand <uweigand@de.ibm.com>
3121
3122 * common/format.h (enum argclass): Replace decfloat_arg by
3123 dec32float_arg, dec64float_arg, and dec128float_arg.
3124 * common/format.c (parse_format_string): Update to return
3125 new decimal float argument classes.
3126
3127 * printcmd.c (printf_decfloat): Rename to ...
3128 (printf_floating): ... this. Add argclass argument, and use it
3129 instead of parsing the format string again. Add support for
3130 binary floating-point values, using floatformat_to_string.
3131 Convert value to the target format if it doesn't already match.
3132 (ui_printf): Call printf_floating instead of printf_decfloat,
3133 also for double_arg / long_double_arg. Pass argclass.
3134
3135 * dfp.c (decimal_to_string): Add format string argument.
3136 * dfp.h (decimal_to_string): Likewise.
3137
3138 * doublest.c (floatformat_to_string): Add format string argument.
3139 * doublest.h (floatformat_to_string): Likewise.
3140
fdf0cbc2
UW
31412017-10-24 Ulrich Weigand <uweigand@de.ibm.com>
3142
3143 * doublest.c (floatformat_precision): New routine.
3144 (floatformat_to_string): Likewise.
3145 * doublest.c (floatformat_to_string): Add prototype.
3146
3147 * printcmd.c (print_scalar_formatted): Only call print_floating
3148 on floating-point types.
3149 * valprint.c: Do not include "floatformat.h".
3150 (generic_val_print_decfloat): Remove.
3151 (generic_val_print): Call generic_val_print_float for both
3152 TYPE_CODE_FLT and TYPE_CODE_DECFLOAT.
3153 (print_floating): Use floatformat_to_string. Handle decimal float.
3154 (print_decimal_floating): Remove, merge into floatformat_to_string.
3155 * value.h (print_decimal_floating): Remove.
3156
3157 * Makefile.in: Do not build doublest.c with -Wformat-nonliteral.
3158
5033013f
UW
31592017-10-24 Ulrich Weigand <uweigand@de.ibm.com>
3160
3161 * buildsym.c (end_symtab_get_static_block): Use std::stable_sort.
3162
a664f67e
SM
31632017-10-21 Simon Marchi <simon.marchi@ericsson.com>
3164
3165 * memattr.h: Don't include vec.h.
3166 (struct mem_attrib): Initialize fields.
3167 <unknown>: New static method.
3168 (struct mem_region): Add constructors, operator<, initialize
3169 fields.
3170 * memattr.c: Include algorithm.
3171 (default_mem_attrib, unknown_mem_attrib): Remove.
3172 (user_mem_region_list): New global.
3173 (target_mem_region_list, mem_region_list): Change type to
3174 std::vector<mem_region>.
3175 (mem_use_target): Now a function.
3176 (target_mem_regions_valid): Change type to bool.
3177 (mem_region_lessthan, mem_region_cmp, mem_region_init): Remove.
3178 (require_user_regions): Adjust.
3179 (require_target_regions): Adjust.
3180 (create_mem_region): Adjust.
3181 (lookup_mem_region): Adjust.
3182 (invalidate_target_mem_regions): Adjust.
3183 (mem_clear): Rename to...
3184 (user_mem_clear): ... this, and adjust.
3185 (mem_command): Adjust.
3186 (info_mem_command): Adjust.
3187 (mem_enable, enable_mem_command, mem_disable,
3188 disable_mem_command): Adjust.
3189 (mem_delete): Adjust.
3190 (delete_mem_command): Adjust.
3191 * memory-map.h (parse_memory_map): Return an std::vector.
3192 * memory-map.c (parse_memory_map): Likewise.
3193 (struct memory_map_parsing_data): Add constructor.
3194 <memory_map>: Point to std::vector.
3195 (memory_map_start_memory): Adjust.
3196 (memory_map_end_memory): Adjust.
3197 (memory_map_end_property): Adjust.
3198 (clear_result): Remove.
3199 * remote.c (remote_memory_map): Return an std::vector.
3200 * target-debug.h (target_debug_print_VEC_mem_region_s__p):
3201 Remove.
3202 (target_debug_print_mem_region_vector): New.
3203 * target-delegates.c: Regenerate.
3204 * target.h (mem_region_vector): New typedef.
3205 (to_memory_map): Return mem_region_vector.
3206 (target_memory_map): Return an std::vector.
3207 * target.c (target_memory_map): Return an std::vector.
3208 (flash_erase_command): Adjust.
3209
6e17c565
SM
32102017-10-21 Simon Marchi <simon.marchi@ericsson.com>
3211
3212 * memory-map.c (struct memory_map_parsing_data) <property_name>:
3213 Change type to std::string.
3214 (memory_map_start_property): Adjust.
3215 (memory_map_end_property): Adjust.
3216
cfba9872
SM
32172017-10-21 Simon Marchi <simon.marchi@polymtl.ca>
3218
3219 * infrun.h: Include common/byte-vector.h.
3220 (struct displaced_step_closure): New struct.
3221 (struct buf_displaced_step_closure): New struct.
3222 * infrun.c (displaced_step_closure::~displaced_step_closure):
3223 Provide default implementation.
3224 (displaced_step_clear): Deallocate step closure with delete.
3225 * aarch64-tdep.c (displaced_step_closure): Rename to ...
3226 (aarch64_displaced_step_closure): ... this, extend
3227 displaced_step_closure.
3228 (aarch64_displaced_step_data) <dsc>: Change type to
3229 aarch64_displaced_step_closure.
3230 (aarch64_displaced_step_copy_insn): Adjust to type change, use
3231 unique_ptr.
3232 (aarch64_displaced_step_fixup): Add cast for displaced step
3233 closure.
3234 * amd64-tdep.c (displaced_step_closure): Rename to ...
3235 (amd64_displaced_step_closure): ... this, extend
3236 displaced_step_closure.
3237 <insn_buf>: Change type to std::vector<gdb_byte>.
3238 <max_len>: Remove.
3239 (fixup_riprel): Change type of DSC parameter, adjust to type
3240 change of insn_buf.
3241 (fixup_displaced_copy): Change type of DSC parameter.
3242 (amd64_displaced_step_copy_insn): Instantiate
3243 amd64_displaced_step_closure.
3244 (amd64_displaced_step_fixup): Add cast for closure type, adjust
3245 to type change of insn_buf.
3246 * arm-linux-tdep.c (arm_linux_cleanup_svc): Change type of
3247 parameter DSC.
3248 (arm_linux_copy_svc): Likewise.
3249 (cleanup_kernel_helper_return): Likewise.
3250 (arm_catch_kernel_helper_return): Likewise.
3251 (arm_linux_displaced_step_copy_insn): Instantiate
3252 arm_displaced_step_closure.
3253 * arm-tdep.c (arm_pc_is_thumb): Add cast for closure.
3254 (displaced_read_reg): Change type of parameter DSC.
3255 (branch_write_pc): Likewise.
3256 (load_write_pc): Likewise.
3257 (alu_write_pc): Likewise.
3258 (displaced_write_reg): Likewise.
3259 (arm_copy_unmodified): Likewise.
3260 (thumb_copy_unmodified_32bit): Likewise.
3261 (thumb_copy_unmodified_16bit): Likewise.
3262 (cleanup_preload): Likewise.
3263 (install_preload): Likewise.
3264 (arm_copy_preload): Likewise.
3265 (thumb2_copy_preload): Likewise.
3266 (install_preload_reg): Likewise.
3267 (arm_copy_preload_reg): Likewise.
3268 (cleanup_copro_load_store): Likewise.
3269 (install_copro_load_store): Likewise.
3270 (arm_copy_copro_load_store) Likewise.
3271 (thumb2_copy_copro_load_store): Likewise.
3272 (cleanup_branch): Likewise.
3273 (install_b_bl_blx): Likewise.
3274 (arm_copy_b_bl_blx): Likewise.
3275 (thumb2_copy_b_bl_blx): Likewise.
3276 (thumb_copy_b): Likewise.
3277 (install_bx_blx_reg): Likewise.
3278 (arm_copy_bx_blx_reg): Likewise.
3279 (thumb_copy_bx_blx_reg): Likewise.
3280 (cleanup_alu_imm): Likewise.
3281 (arm_copy_alu_imm): Likewise.
3282 (thumb2_copy_alu_imm): Likewise.
3283 (cleanup_alu_reg): Likewise.
3284 (install_alu_reg): Likewise.
3285 (arm_copy_alu_reg): Likewise.
3286 (thumb_copy_alu_reg): Likewise.
3287 (cleanup_alu_shifted_reg): Likewise.
3288 (install_alu_shifted_reg): Likewise.
3289 (arm_copy_alu_shifted_reg): Likewise.
3290 (cleanup_load): Likewise.
3291 (cleanup_store): Likewise.
3292 (arm_copy_extra_ld_st): Likewise.
3293 (install_load_store): Likewise.
3294 (thumb2_copy_load_literal): Likewise.
3295 (thumb2_copy_load_reg_imm): Likewise.
3296 (arm_copy_ldr_str_ldrb_strb): Likewise.
3297 (cleanup_block_load_all): Likewise.
3298 (cleanup_block_store_pc): Likewise.
3299 (cleanup_block_load_pc): Likewise.
3300 (arm_copy_block_xfer): Likewise.
3301 (thumb2_copy_block_xfer): Likewise.
3302 (cleanup_svc): Likewise.
3303 (install_svc): Likewise.
3304 (arm_copy_svc): Likewise.
3305 (thumb_copy_svc): Likewise.
3306 (arm_copy_undef): Likewise.
3307 (thumb_32bit_copy_undef): Likewise.
3308 (arm_copy_unpred): Likewise.
3309 (arm_decode_misc_memhint_neon): Likewise.
3310 (arm_decode_unconditional): Likewise.
3311 (arm_decode_miscellaneous): Likewise.
3312 (arm_decode_dp_misc): Likewise.
3313 (arm_decode_ld_st_word_ubyte): Likewise.
3314 (arm_decode_media): Likewise.
3315 (arm_decode_b_bl_ldmstm): Likewise.
3316 (arm_decode_ext_reg_ld_st): Likewise.
3317 (thumb2_decode_dp_shift_reg): Likewise.
3318 (thumb2_decode_ext_reg_ld_st): Likewise.
3319 (arm_decode_svc_copro): Likewise.
3320 (thumb2_decode_svc_copro): Likewise.
3321 (install_pc_relative): Likewise.
3322 (thumb_copy_pc_relative_16bit): Likewise.
3323 (thumb_decode_pc_relative_16bit): Likewise.
3324 (thumb_copy_pc_relative_32bit): Likewise.
3325 (thumb_copy_16bit_ldr_literal): Likewise.
3326 (thumb_copy_cbnz_cbz): Likewise.
3327 (thumb2_copy_table_branch): Likewise.
3328 (cleanup_pop_pc_16bit_all): Likewise.
3329 (thumb_copy_pop_pc_16bit): Likewise.
3330 (thumb_process_displaced_16bit_insn): Likewise.
3331 (decode_thumb_32bit_ld_mem_hints): Likewise.
3332 (thumb_process_displaced_32bit_insn): Likewise.
3333 (thumb_process_displaced_insn): Likewise.
3334 (arm_process_displaced_insn): Likewise.
3335 (arm_displaced_init_closure): Likewise.
3336 (arm_displaced_step_fixup): Add cast for closure.
3337 * arm-tdep.h: Include infrun.h.
3338 (displaced_step_closure): Rename to ...
3339 (arm_displaced_step_closure): ... this, extend
3340 displaced_step_closure.
3341 <u::svc::copy_svc_os>: Change type of parameter DSC.
3342 <cleanup>: Likewise.
3343 (arm_process_displaced_insn): Likewise.
3344 (arm_displaced_init_closure): Likewise.
3345 (displaced_read_reg): Likewise.
3346 (displaced_write_reg): Likewise.
3347 * i386-linux-tdep.c (i386_linux_displaced_step_copy_insn):
3348 Adjust.
3349 * i386-tdep.h: Include infrun.h.
3350 (i386_displaced_step_closure): New typedef.
3351 * i386-tdep.c (i386_displaced_step_copy_insn): Use
3352 i386_displaced_step_closure.
3353 (i386_displaced_step_fixup): Adjust.
3354 * rs6000-tdep.c (ppc_displaced_step_closure): New typedef.
3355 (ppc_displaced_step_copy_insn): Use ppc_displaced_step_closure
3356 and unique_ptr.
3357 (ppc_displaced_step_fixup): Adjust.
3358 * s390-linux-tdep.c (s390_displaced_step_closure): New typedef.
3359 (s390_displaced_step_copy_insn): Use s390_displaced_step_closure
3360 and unique_ptr.
3361 (s390_displaced_step_fixup): Adjust.
3362
b392b304
SM
33632017-10-21 Simon Marchi <simon.marchi@polymtl.ca>
3364
3365 * interps.h (interp_resume, interp_suspend, interp_set_temp):
3366 Remove declarations.
3367
d5833c62
TT
33682017-10-20 Tom Tromey <tom@tromey.com>
3369
3370 * gdb_bfd.c (struct gdb_bfd_data) <included_bfds>: Now a
3371 std::vector.
3372 (gdb_bfd_record_inclusion): Update.
3373 (bfdp): Remove typedef.
3374
06d5bbc8
TT
33752017-10-20 Tom Tromey <tom@tromey.com>
3376
3377 * gdb_bfd.c (gdb_bfd_ref): Use new.
3378 (struct gdb_bfd_data): Add constructor, destructor, and member
3379 initializers.
3380 (gdb_bfd_unref): Use delete.
3381
2712ce2e
TT
33822017-10-20 Tom Tromey <tom@tromey.com>
3383
3384 * exec.c (exec_file_attach): Use new_bfd_ref.
3385 * symfile-mem.c (symbol_file_add_from_memory): Use new_bfd_ref.
3386 * gdb_bfd.c (gdb_bfd_open, gdb_bfd_fopen, gdb_bfd_openr)
3387 (gdb_bfd_openw, gdb_bfd_openr_iovec, gdb_bfd_fdopenr): Use
3388 new_bfd_ref.
3389 * gdb_bfd.h (new_bfd_ref): New function.
3390
fcc8fb2f
PA
33912017-10-20 Pedro Alves <palves@redhat.com>
3392
3393 * main.c (captured_command_loop): Add attribute noinline.
3394
4c2287b0
SM
33952017-10-19 Simon Marchi <simon.marchi@ericsson.com>
3396
3397 * interps.c (struct interp_factory): Add constructor.
3398 (interp_factory_p): Remove typedef.
3399 (DEF_VEC_P(interp_factory_p)): Remove.
3400 (interpreter_factories): Change type to std::vector.
3401 (interp_factory_register): Adjust.
3402 (interp_lookup): Adjust.
3403 (interpreter_completer): Adjust.
3404
3d415c26
TT
34052017-10-19 Tom Tromey <tom@tromey.com>
3406
3407 * break-catch-syscall.c (catch_syscall_completer): Use
3408 std::string, gdb::unique_xmalloc_ptr.
3409
395423c4
TT
34102017-10-19 Tom Tromey <tom@tromey.com>
3411
3412 * infcall.c (call_function_by_hand_dummy): Use std::string.
3413
54f70bc1
TT
34142017-10-19 Tom Tromey <tom@tromey.com>
3415
3416 * mi/mi-main.c (mi_cmd_execute): Update.
3417 * top.h (prepare_execute_command): Return scoped_value_mark.
3418 * value.h (class scoped_value_mark): Use DISABLE_COPY_AND_ASSIGN.
3419 Add move constructor.
3420 * top.c (prepare_execute_command): Return scoped_value_mark.
3421 (execute_command): Update.
3422
63929e84
PA
34232017-10-19 Pedro Alves <palves@redhat.com>
3424
3425 * xml-support.c (xml_fetch_content_from_file): Check fread's
3426 return.
3427
a75868f5
PA
34282017-10-19 Pedro Alves <palves@redhat.com>
3429
3430 * ser-base.c (ser_base_read_error_fd): Delete the file handler if
3431 async.
3432 (handle_error_fd): New function.
3433 (ser_base_async): Add/delete an event loop file handler for
3434 error_fd.
3435
2edf834e
PA
34362017-10-19 Pedro Alves <palves@redhat.com>
3437
3438 * xml-support.c (xml_fetch_content_from_file): Don't read in
3439 chunks. Instead use fseek to determine the file's size, and read
3440 it in one go.
3441
c8ba13ad
KS
34422017-11-18 Keith Seitz <keiths@redhat.com>
3443
3444 * c-exp.y (oper): Canonicalize conversion operators of user-defined
3445 types.
3446 Add whitespace to front of type name.
3447
37534686
KS
34482017-10-18 Keith Seitz <keiths@redhat.com>
3449
3450 * dwarf2read.c (dwarf2_add_typedef): Issue a complaint on unhandled
3451 DW_AT_accessibility.
3452
28c7c158
YQ
34532017-10-18 Yao Qi <yao.qi@linaro.org>
3454
3455 * features/tic6x-c62x-linux.c: Remove.
3456
30f0b101
TT
34572017-10-17 Tom Tromey <tom@tromey.com>
3458
3459 * disasm.c (do_mixed_source_and_assembly_deprecated): Use
3460 gdb::optional, ui_out_emit_list, ui_out_emit_tuple.
3461 (do_mixed_source_and_assembly): Likewise.
3462
57e12da9
TT
34632017-10-17 Tom Tromey <tom@tromey.com>
3464
3465 * regcache.c (regcache::xfer_part): Remove assertion.
3466
7b700999
PA
34672017-10-17 Pedro Alves <palves@redhat.com>
3468
3469 * xml-support.c (xml_fetch_content_from_file): Call
3470 unique_ptr::release() instead unique_ptr::get() when passing
3471 through xrealloc.
3472
d3037ba6
YQ
34732017-10-17 Yao Qi <yao.qi@linaro.org>
3474
3475 * regcache.c (regcache::xfer_part): Remove parameters read and
3476 write, add parameter is_raw. All callers are updated.
3477
83d5a34d
KS
34782017-10-16 Keith Seitz <keiths@redhat.com>
3479
3480 * c-typeprint.c (enum access_specifier): Moved here from
3481 c_type_print_base.
3482 (output_access_specifier): New function.
3483 (c_type_print_base): Consider typedefs when assessing
3484 whether access labels are needed.
3485 Use output_access_specifier as needed.
3486 Output access specifier for typedefs, if needed.
3487 * dwarf2read.c (dwarf2_add_typedef): Record DW_AT_accessibility.
3488 * gdbtypes.h (struct typedef_field) <is_protected, is_private>: New
3489 fields.
3490 (TYPE_TYPEDEF_FIELD_PROTECTED, TYPE_TYPEDEF_FIELD_PRIVATE): New
3491 accessor macros.
3492
87028b87
TT
34932017-10-16 Tom Tromey <tom@tromey.com>
3494
3495 * linux-tdep.c (linux_info_proc, linux_find_memory_regions_full)
3496 (linux_fill_prpsinfo, linux_vsyscall_range_raw): Update.
3497 * target.c (target_fileio_read_stralloc): Update.
3498 * sparc64-tdep.c (adi_is_addr_mapped): Update.
3499 * target.h (target_fileio_read_stralloc): Return
3500 unique_xmalloc_ptr.
3501
b7b030ad
TT
35022017-10-16 Tom Tromey <tom@tromey.com>
3503
3504 * xml-syscall.c (xml_init_syscalls_info): Update.
3505 * xml-support.c (xinclude_start_include): Update.
3506 (xml_fetch_content_from_file): Return unique_xmalloc_ptr.
3507 * xml-support.h (xml_fetch_another): Return unique_xmalloc_ptr.
3508 (xml_fetch_content_from_file): Likewise.
3509 * osdata.c (get_osdata): Update.
3510 * target.h (target_read_stralloc, target_get_osdata): Return
3511 unique_xmalloc_ptr.
3512 * solib-aix.c (solib_aix_get_library_list): Update.
3513 * solib-target.c (solib_target_current_sos): Update.
3514 * solib-svr4.c (svr4_current_sos_via_xfer_libraries): Update.
3515 * xml-tdesc.c (fetch_available_features_from_target): Update.
3516 (target_fetch_description_xml): Update.
3517 (file_read_description_xml): Update.
3518 * remote.c (remote_get_threads_with_qxfer, remote_memory_map)
3519 (remote_traceframe_info, btrace_read_config, remote_read_btrace)
3520 (remote_pid_to_exec_file): Update.
3521 * target.c (target_read_stralloc): Return unique_xmalloc_ptr.
3522 (target_get_osdata): Likewise.
3523
b80406ac
TT
35242017-10-16 Tom Tromey <tom@tromey.com>
3525
3526 * remote.c (remote_register_number_and_offset): Use std::vector.
3527 (remote_set_syscall_catchpoint): Use gdb::unique_xmalloc_ptr.
3528 (putpkt_binary): Use gdb::def_vector.
3529 (compare_sections_command): Use gdb::byte_vector.
3530
a90ecff8
TT
35312017-10-16 Tom Tromey <tom@tromey.com>
3532
3533 * ppc-linux-nat.c (hwdebug_insert_point): Use
3534 gdb::unique_xmalloc_ptr, XDUP.
3535
2dc0e219
TT
35362017-10-16 Tom Tromey <tom@tromey.com>
3537
3538 * probe.c (parse_probes): Use std::string.
3539 (info_probes_for_ops, enable_probes_command)
3540 (disable_probes_command): Remove cleanups.
3541
b05628f0
TT
35422017-10-16 Tom Tromey <tom@tromey.com>
3543
3544 * buildsym.c (block_compar): Remove.
3545 (end_symtab_get_static_block): Use std::vector.
3546
a79b1bc6
SM
35472017-10-16 Simon Marchi <simon.marchi@ericsson.com>
3548
3549 * memrange.h (struct mem_range): Define operator< and operator==.
3550 (mem_range_s): Remove.
3551 (DEF_VEC_O (mem_range_s)): Remove.
3552 (normalize_mem_ranges): Change parameter type to std::vector.
3553 * memrange.c (compare_mem_ranges): Remove.
3554 (normalize_mem_ranges): Change parameter type to std::vector,
3555 adjust to vector change.
3556 * exec.c (section_table_available_memory): Return vector, remove
3557 parameter.
3558 (section_table_read_available_memory): Adjust to std::vector
3559 change.
3560 * remote.c (remote_read_bytes): Adjust to std::vector
3561 change.
3562 * tracepoint.h (traceframe_available_memory): Change parameter
3563 type to std::vector.
3564 * tracepoint.c (traceframe_available_memory): Change parameter
3565 type to std::vector, adjust.
3566 * gdb/mi/mi-main.c (mi_cmd_trace_frame_collected): Adjust to
3567 std::vector change.
3568 * gdb/Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
3569 unittests/memrange-selftests.c.
3570 (SUBDIR_UNITTESTS_OBS): Add memrange-selftests.o.
3571 * gdb/unittests/memrange-selftests.c: New file.
3572
63f0e930
PA
35732017-10-16 Pedro Alves <palves@redhat.com>
3574
3575 * elfread.c (probe_key_free): Rename range-for variable.
3576 * probe.c (parse_probes_in_pspace, find_probes_in_objfile)
3577 (find_probe_by_pc, collect_probes): Rename range-for variable.
3578
c40c7bfc
YQ
35792017-10-16 Yao Qi <yao.qi@linaro.org>
3580
3581 * features/Makefile (XMLTOC): Remove tic6x-*.xml.
3582 * features/tic6x-c62x.c: Remove.
3583 * features/tic6x-c64x-linux.c: Remove.
3584 * features/tic6x-c64x.c: Remove.
3585 * features/tic6x-c64xp-linux.c: Remove.
3586 * features/tic6x-c64xp.c: Remove.
3587 * tic6x-linux-tdep.c (_initialize_tic6x_linux_tdep): Don't call
3588 initialize_tdesc_tic6x_*_linux functions.
3589 * tic6x-tdep.c (_initialize_tic6x_tdep): Don't call
3590 initialize_tdesc_tic6x_* functions.
3591
df27ae6a
YQ
35922017-10-16 Yao Qi <yao.qi@linaro.org>
3593
3594 * features/Makefile (WHICH): Remove tic6x-c64xp, tic6x-c64x
3595 tic6x-c62x.
3596 * regformats/tic6x-c62x.dat: Remove.
3597 * regformats/tic6x-c64x.dat: Remove.
3598 * regformats/tic6x-c64xp.dat: Remove.
3599
86766165
SM
36002017-10-15 Simon Marchi <simon.marchi@ericsson.com>
3601
3602 * tracepoint.c (parse_traceframe_info): Return a unique_ptr
3603 (the !HAVE_LIBEXPAT version).
3604
824dfcc3
SM
36052017-10-14 Simon Marchi <simon.marchi@ericsson.com>
3606
3607 * nat/linux-osdata.c (struct pid_pgid_entry) <operator<>: Make
3608 const.
3609
2098b393
SM
36102017-10-14 Simon Marchi <simon.marchi@polymtl.ca>
3611
3612 * target.h: Include tracepoint.h.
3613 (enum trace_find_type): Move to tracepoint.h.
3614 (struct target_ops) <to_traceframe_info>: Return a unique ptr.
3615 * tracepoint.h: Don't include target.h
3616 (enum trace_find_type): Move from target.h.
3617 (parse_traceframe_info): Return a unique ptr.
3618 * tracepoint.c (current_traceframe_info): Change type to unique
3619 ptr.
3620 (free_traceframe_info): Remove.
3621 (clear_traceframe_info): Don't manually free
3622 current_traceframe_info.
3623 (free_result): Remove.
3624 (parse_traceframe_info): Return a unique ptr.
3625 (get_traceframe_info): Adjust to unique ptr.
3626 * ctf.c (ctf_traceframe_info): Return a unique ptr.
3627 * remote.c (remote_traceframe_info): Return a unique ptr.
3628 * tracefile-tfile.c (tfile_traceframe_info): Return a unique
3629 ptr.
3630 * target-debug.h (target_debug_print_traceframe_info_up): New
3631 macro.
3632 * target-delegates.c: Regenerate.
3633
4cdd21a8
SM
36342017-10-14 Simon Marchi <simon.marchi@polymtl.ca>
3635
3636 * memrange.h (struct mem_range): Add constructors.
3637 * tracepoint.h (struct traceframe_info) <memory>: Change type to
3638 std::vector<mem_range>.
3639 * tracepoint.c (free_traceframe_info): Don't manually free
3640 vector.
3641 (traceframe_info_start_memory): Adjust to vector change.
3642 (traceframe_available_memory): Likewise.
3643 * tracefile-tfile.c (build_traceframe_info): Likewise.
3644 * ctf.c (ctf_traceframe_info): Likewise.
3645
d0d292a2
SM
36462017-10-14 Simon Marchi <simon.marchi@polymtl.ca>
3647
3648 * tracepoint.h (struct traceframe_info) <tvars>: Change type to
3649 std::vector<int>.
3650 * tracepoint.c (free_traceframe_info): Deallocate with delete.
3651 (traceframe_info_start_tvar): Adjust to vector change.
3652 (parse_traceframe_info): Allocate with new.
3653 * ctf.c (ctf_traceframe_info): Allocate with new, adjust to
3654 vector change.
3655 * tracefile-tfile.c (build_traceframe_info): Adjust to vector
3656 change.
3657 tfile_traceframe_info): Allocate with new.
3658 * mi/mi-main.c (mi_cmd_trace_frame_collected): Adjust to vector
3659 change.
3660
8d3c73ef
SM
36612017-10-14 Simon Marchi <simon.marchi@polymtl.ca>
3662
3663 * tracepoint.c (traceframe_info): Rename to...
3664 (current_traceframe_info): ...this.
3665 (clear_traceframe_info): Adjust.
3666 (get_traceframe_info): Adjust.
3667
b129dcac
SM
36682017-10-14 Simon Marchi <simon.marchi@ericsson.com>
3669
3670 * nat/linux-osdata.c: Include algorithm.
3671 (compare_processes): Remove.
3672 (struct pid_pgid_entry): New struct.
3673 (linux_xfer_osdata_processgroups): Use std::vector instead of
3674 XNEWVEC.
3675
af5bf4ad
SM
36762017-10-14 Simon Marchi <simon.marchi@ericsson.com>
3677
3678 * objfiles.h: Don't include symfile.h.
3679 (struct partial_symbol): Remove forward-declaration.
3680 (struct objfile) <global_psymbols, static_psymbols>: Change type
3681 to std::vector<partial_symbol *>.
3682 * objfiles.c (objfile::objfile): Don't memset those fields.
3683 (objfile::~objfile): Don't free those fields.
3684 * psympriv.h (struct psymbol_allocation_list): Remove
3685 forward-declaration.
3686 (add_psymbol_to_list): Change psymbol_allocation_list parameter
3687 to std::vector.
3688 (start_psymtab_common): Change parameters to std::vector.
3689 * psymtab.c: Include algorithm.
3690 (require_partial_symbols): Call shrink_to_fit.
3691 (find_pc_sect_psymbol): Adjust to vector change.
3692 (match_partial_symbol): Likewise.
3693 (lookup_partial_symbol): Likewise.
3694 (psym_relocate): Likewise.
3695 (dump_psymtab): Likewise.
3696 (recursively_search_psymtabs): Likewise.
3697 (compare_psymbols): Remove.
3698 (sort_pst_symbols): Adjust to vector change.
3699 (start_psymtab_common): Likewise.
3700 (end_psymtab_common): Likewise.
3701 (psymbol_bcache_full): De-constify return value.
3702 (add_psymbol_to_bcache): Likewise.
3703 (extend_psymbol_list): Remove.
3704 (append_psymbol_to_list): Adjust to vector change.
3705 (add_psymbol_to_list): Likewise.
3706 (init_psymbol_list): Likewise.
3707 (maintenance_info_psymtabs): Likewise.
3708 (maintenance_check_psymtabs): Likewise.
3709 * symfile.h (struct psymbol_allocation_list): Remove.
3710 * symfile.c (reread_symbols): Adjust to vector change.
3711 * dbxread.c (start_psymtab): Change type of parameters.
3712 (dbx_symfile_read): Adjust to vector change.
3713 (read_dbx_symtab): Likewise.
3714 (start_psymtab): Change type of parameters.
3715 * dwarf2read.c (dwarf2_build_psymtabs): Adjust to vector change.
3716 (create_partial_symtab): Likewise.
3717 (add_partial_symbol): Likewise.
3718 (write_one_signatured_type): Likewise.
3719 (recursively_write_psymbols): Likewise.
3720 * mdebugread.c (parse_partial_symbols): Likewise.
3721 * xcoffread.c (xcoff_start_psymtab): Change type of parameters.
3722 (scan_xcoff_symtab): Adjust to vector change.
3723 (xcoff_initial_scan): Likewise.
3724
3ec5942f
SM
37252017-10-13 Simon Marchi <simon.marchi@ericsson.com>
3726
3727 * ada-typeprint.c (print_dynamic_range_bound): Use std::string.
3728
2399fe6a
YQ
37292017-10-13 Yao Qi <yao.qi@linaro.org>
3730
3731 * features/Makefile: Remove tic6x-*-expedite, add tic6x-expedite.
3732 Remove s390x-*-expedite, add s390x-expedite.
3733
4bf3f4a8
YQ
37342017-10-13 Yao Qi <yao.qi@linaro.org>
3735
3736 * features/s390-gs-linux64.c: Regenerated.
3737 * features/s390x-gs-linux64.c: Regenerated.
3738
9e86da07
TT
37392017-10-13 Tom Tromey <tom@tromey.com>
3740
3741 * compile/compile-object-run.c (do_module_cleanup): Use delete.
3742 * solib.c (update_solib_list, reload_shared_libraries_1): Use
3743 delete.
3744 * symfile.c (symbol_file_add_with_addrs): Use new.
3745 (symbol_file_add_separate): Update comment.
3746 (syms_from_objfile_1, remove_symbol_file_command): Use delete.
3747 * jit.c (jit_object_close_impl): Use new.
3748 (jit_unregister_code): Use delete.
3749 * objfiles.c (objfile::objfile): Rename from allocate_objfile.
3750 (~objfile): Rename from free_objfile.
3751 (free_objfile_separate_debug, do_free_objfile_cleanup)
3752 (free_all_objfiles, objfile_purge_solibs): Use delete.
3753 * objfiles.h (struct objfile): Add constructor and destructor.
3754 Use DISABLE_COPY_AND_ASSIGN. Add initializers to data members.
3755 (allocate_objfile, free_objfile): Don't declare.
3756 (struct objstats): Add initializers.
3757
c2508e90
SM
37582017-10-12 Simon Marchi <simon.marchi@ericsson.com>
3759
3760 * arch-utils.h (simple_displaced_step_copy_insn): Remove.
3761 * arch-utils.c (simple_displaced_step_copy_insn): Remove.
3762 * gdbarch.sh (displaced_step_copy_insn): Adjust comment.
3763 * gdbarch.h: Regenerate.
3764 * i386-linux-tdep.c (i386_linux_displaced_step_copy_insn):
3765 Adjust comment.
3766 * i386-tdep.c (i386_displaced_step_copy_insn): Adjust comment.
3767 (i386_displaced_step_fixup): Adjust comment.
3768 * rs6000-tdep.c (ppc_displaced_step_copy_insn): Adjust comment.
3769
a900ff72
TT
37702017-10-12 Tom Tromey <tom@tromey.com>
3771
3772 * prologue-value.h (pv_area::store_would_trash): Return bool.
3773 (pv_area::find_reg): Likewise.
3774 * prologue-value.c (pv_area::store_would_trash): Return bool.
3775 (pv_area::find_reg): Likewise.
3776
f7b7ed97
TT
37772017-10-12 Tom Tromey <tom@tromey.com>
3778
3779 * s390-linux-tdep.c (s390_store, s390_load)
3780 (s390_check_for_saved, s390_analyze_prologue): Update.
3781 * rx-tdep.c (check_for_saved, rx_analyze_prologue): Update.
3782 * rl78-tdep.c (rl78_analyze_prologue, check_for_saved): Update.
3783 * prologue-value.h (class pv_area): Move from prologue-value.c.
3784 Change names of members. Add constructor, destructor, member
3785 functions.
3786 (make_pv_area, free_pv_area, make_cleanup_free_pv_area)
3787 (pv_area_store, pv_area_fetch, pv_area_store_would_trash)
3788 (pv_area_fetch, pv_area_scan): Don't declare.
3789 * prologue-value.c (struct pv_area::area_entry): Now member of
3790 pv_area.
3791 (struct pv_area): Move to prologue-value.h.
3792 (pv_area::pv_area): Rename from make_pv_area.
3793 (pv_area::~pv_area): Rename from free_pv_area.
3794 (do_free_pv_area_cleanup, make_cleanup_free_pv_area): Remove.
3795 (clear_entries, find_entry, overlaps, store_would_trash, store)
3796 (fetch, find_reg, scan): Now member of pv_area.
3797 Remove "area" argument. Update.
3798 * msp430-tdep.c (check_for_saved, msp430_analyze_prologue):
3799 Update.
3800 * mn10300-tdep.c (push_reg, check_for_saved)
3801 (mn10300_analyze_prologue): Update.
3802 * mep-tdep.c (is_arg_spill, check_for_saved)
3803 (mep_analyze_prologue): Update.
3804 * m32c-tdep.c (m32c_pv_push, m32c_srcdest_fetch)
3805 (m32c_srcdest_store, m32c_pv_enter, m32c_is_arg_spill)
3806 (m32c_is_struct_return, m32c_analyze_prologue): Update.
3807 * arm-tdep.c (thumb_analyze_prologue, arm_analyze_prologue):
3808 Update.
3809 * arc-tdep.c (arc_is_in_prologue, arc_analyze_prologue): Update.
3810 * aarch64-tdep.c (aarch64_analyze_prologue): Update.
3811
466eecee
SM
38122017-10-12 Simon Marchi <simon.marchi@ericsson.com>
3813
3814 * linux-nat.h (linux_nat_set_delete_thread): New declaration.
3815 * linux-nat.c (linux_nat_delete_thread): New variable.
3816 (lwp_free): Invoke linux_nat_delete_thread if set.
3817 (linux_nat_set_delete_thread): New function.
3818 * aarch64-linux-nat.c (_initialize_aarch64_linux_nat): Assign
3819 thread delete callback.
3820 * arm-linux-nat.c (arm_linux_delete_thread): New function.
3821 (_initialize_arm_linux_nat): Assign thread delete callback.
3822 * s390-linux-nat.c (s390_delete_thread): New function.
3823 (_initialize_s390_nat): Assign thread delete callback.
3824 * x86-linux-nat.c (x86_linux_add_target): Likewise.
3825 * nat/aarch64-linux.c (aarch64_linux_delete_thread): New
3826 function.
3827 * nat/aarch64-linux.h (aarch64_linux_delete_thread): New
3828 declaration.
3829 * nat/x86-linux.c (x86_linux_delete_thread): New function.
3830 * nat/x86-linux.h (x86_linux_delete_thread): New declaration.
3831
f71c8822
TT
38322017-10-09 Tom Tromey <tom@tromey.com>
3833
3834 * tui/tui-win.c (tui_set_win_height, parse_scrolling_args): Use
3835 std::string.
3836 * tui/tui-layout.c (enum tui_status): Use std::string.
3837
981a3fb3
TT
38382017-10-11 Tom Tromey <tom@tromey.com>
3839
3840 * gdbthread.h (thread_command): Constify.
3841 * inferior.h (detach_command): Constify.
3842 * top.h (set_history, show_history): Constify.
3843 * arm-tdep.c (set_arm_command, show_arm_command): Constify.
3844 * serial.c (serial_set_cmd, serial_show_cmd): Constify.
3845 * bsd-kvm.c (bsd_kvm_cmd): Constify.
3846 * printcmd.c (set_command): Constify.
3847 (non_const_set_command): New function.
3848 * dcache.c (set_dcache_command, show_dcache_command): Constify.
3849 * breakpoint.c (enable_command, disable_command, delete_command)
3850 (catch_command, tcatch_command, set_breakpoint_cmd)
3851 (show_breakpoint_cmd): Constify.
3852 * macrocmd.c (macro_command): Constify.
3853 * infcmd.c (unset_command, kill_command, detach_command)
3854 (info_proc_cmd): Constify.
3855 * i386-tdep.c (set_mpx_cmd, show_mpx_cmd): Constify.
3856 * auto-load.c (show_auto_load_cmd, set_auto_load_cmd)
3857 (info_auto_load_cmd): Constify.
3858 * target-descriptions.c (set_tdesc_cmd, show_tdesc_cmd)
3859 (unset_tdesc_cmd): Constify.
3860 * ada-lang.c (set_ada_command, show_ada_command)
3861 (maint_set_ada_cmd, maint_show_ada_cmd): Constify.
3862 * guile/guile.c (set_guile_command, show_guile_command)
3863 (info_guile_command): Constify.
3864 * tui/tui-win.c (tui_command, set_tui_cmd, show_tui_cmd):
3865 Constify.
3866 * skip.c (skip_command): Constify.
3867 * compile/compile.c (_initialize_compile): Constify.
3868 * dwarf2read.c (set_dwarf_cmd, show_dwarf_cmd): Constify.
3869 * btrace.c (maint_btrace_cmd, maint_btrace_set_cmd)
3870 (maint_btrace_show_cmd, maint_btrace_pt_set_cmd)
3871 (maint_btrace_pt_show_cmd): Constify.
3872 * remote.c (set_remote_cmd, show_remote_cmd, remote_command):
3873 Constify.
3874 * python/python.c (user_show_python, user_set_python): Constify.
3875 * mips-tdep.c (set_mips_command, show_mips_command)
3876 (set_mipsfpu_command): Constify.
3877 * record-btrace.c (cmd_record_btrace_start)
3878 (cmd_set_record_btrace, cmd_show_record_btrace)
3879 (cmd_set_record_btrace_bts, cmd_show_record_btrace_bts)
3880 (cmd_set_record_btrace_pt, cmd_show_record_btrace_pt): Constify.
3881 * rs6000-tdep.c (set_powerpc_command, show_powerpc_command):
3882 Constify.
3883 * symfile.c (overlay_command): Constify.
3884 * spu-tdep.c (set_spu_command, show_spu_command): Constify.
3885 * cli/cli-logging.c (set_logging_command, show_logging_command):
3886 Constify.
3887 * cli/cli-dump.c (dump_command, append_command)
3888 (srec_dump_command, ihex_dump_command, verilog_dump_command)
3889 (tekhex_dump_command, binary_dump_command)
3890 (binary_append_command): Constify.
3891 * cli/cli-decode.c (struct cmd_list_element): Change type of
3892 "fun".
3893 * cli/cli-cmds.c (info_command, show_command, set_debug)
3894 (show_debug): Constify.
3895 (show_command): Add non-const overload.
3896 * top.c (set_history, show_history): Constify.
3897 * sh-tdep.c (set_sh_command, show_sh_command): Constify.
3898 * command.h (add_prefix_cmd): Accept a cmd_const_cfunc_ftype.
3899 * target.c (target_command): Constify.
3900 * sparc64-tdep.c (info_adi_command): Constify.
3901 * record-full.c (cmd_record_full_start): Constify.
3902 (set_record_full_command): Constify. Fix typo.
3903 (show_record_full_command): Constify.
3904 * thread.c (thread_command, thread_apply_command): Constify.
3905 * memattr.c (dummy_cmd): Constify.
3906 * value.c (function_command): Constify.
3907 * frame.c (set_backtrace_cmd, show_backtrace_cmd): Constify.
3908 * probe.c (info_probes_command): Constify.
3909 * ser-tcp.c (set_tcp_cmd, show_tcp_cmd): Constify.
3910 * gnu-nat.c (set_task_cmd, show_task_cmd, set_thread_cmd)
3911 (show_thread_cmd, set_thread_default_cmd)
3912 (show_thread_default_cmd): Constify.
3913 (check_empty): Constify.
3914 * tracepoint.c (tfind_command): Constify.
3915 * cp-support.c (maint_cplus_command): Constify.
3916 * windows-tdep.c (info_w32_command): Constify.
3917 * record.c (cmd_record_start, set_record_command)
3918 (show_record_command, info_record_command, cmd_record_goto):
3919 Constify.
3920 * ravenscar-thread.c (set_ravenscar_command)
3921 (show_ravenscar_command): Constify.
3922 * utils.c (set_internal_problem_cmd, show_internal_problem_cmd):
3923 Constify.
3924 (add_internal_problem_command): Remove casts.
3925 * arc-tdep.c (maintenance_print_arc_command): Constify.
3926 * valprint.c (set_print, show_print, set_print_raw)
3927 (show_print_raw): Constify.
3928 * maint.c (maintenance_command, maintenance_info_command)
3929 (maintenance_print_command, maintenance_set_cmd)
3930 (maintenance_show_cmd, set_per_command_cmd)
3931 (show_per_command_cmd, maintenance_check_command): Constify.
3932 * language.c (set_check, show_check): Constify.
3933 * typeprint.c (show_print_type, set_print_type): Constify.
3934 * go32-nat.c (go32_info_dos_command): Constify.
3935
fdf44873
TT
39362017-10-11 Tom Tromey <tom@tromey.com>
3937
3938 * breakpoint.c (prepare_re_set_context): Remove.
3939 (breakpoint_re_set_one): Update. Don't use cleanups.
3940 (breakpoint_re_set): Use scoped_restore, std::string, and
3941 scoped_restore_current_language.
3942
81b1e71c
TT
39432017-10-11 Tom Tromey <tom@tromey.com>
3944
3945 * breakpoint.c (commands_command_1): Use std::string.
3946 (cleanup_executing_breakpoints): Remove.
3947 (bpstat_do_actions_1): Use scoped_restore.
3948 (bpstat_check_watchpoint): Use std::string.
3949 (decode_static_tracepoint_spec): Likewise.
3950 (break_range_command): Likewise.
3951 (watch_command_1): Likewise.
3952 (compare_breakpoints): Change argument types.
3953 (clear_command): Use std::vector.
3954 (cleanup_executing_breakpoints): Remove.
3955 (update_global_location_list): Use unique_xmalloc_ptr.
3956 (strace_command): Remove unused declaration.
3957
4f9d9906
JB
39582017-10-11 John Baldwin <jhb@FreeBSD.org>
3959
3960 * Makefile.in (ALLDEPFILES): Add arm-fbsd-nat.c.
3961 * NEWS: Mention new FreeBSD/arm native configuration.
3962 * configure.host: Add arm*-*-freebsd*.
3963 * configure.nat: Likewise.
3964 * arm-fbsd-nat.c: New file.
3965
7176dfd2
JB
39662017-10-11 John Baldwin <jhb@FreeBSD.org>
3967
3968 * Makefile.in (ALL_TARGET_OBS): Add arm-fbsd-tdep.o.
3969 (ALLDEPFILES): Add arm-fbsd-tdep.c.
3970 * NEWS: Mention new FreeBSD/arm target.
3971 * configure.tgt: Add arm*-*-freebsd*.
3972 * arm-fbsd-tdep.c: New file.
3973 * arm-fbsd-tdep.h: New file.
3974
fe220226
MR
39752017-10-11 Maciej W. Rozycki <macro@imgtec.com>
3976
3977 * linux-tdep.c (linux_make_corefile_notes): Remove call to
3978 `gdbarch_elfcore_write_linux_prpsinfo'.
3979 * gdbarch.sh (elfcore_write_linux_prpsinfo): Remove architecture
3980 method.
3981 (elf_internal_linux_prpsinfo): Remove declaration.
3982 * gdbarch.h: Regenerate.
3983 * gdbarch.c: Regenerate.
3984
a2f63b2e
MR
39852017-10-11 Maciej W. Rozycki <macro@imgtec.com>
3986
3987 * ppc-linux-tdep.c (ppc_linux_init_abi): Remove call to
3988 `set_gdbarch_elfcore_write_linux_prpsinfo'.
3989
458ca1d0
PA
39902017-10-11 Pedro Alves <palves@redhat.com>
3991
3992 * breakpoint.c (reattach_breakpoints): Delete.
3993 * breakpoint.h (reattach_breakpoints): Delete.
3994
905014d7
SM
39952017-10-11 Simon Marchi <simon.marchi@ericsson.com>
3996
3997 * symfile.c (registered_sym_fns): Make struct, not typedef.
3998 (DEF_VEC_O (registered_sym_fns)): Remove.
3999 (symtab_fns): Change type to std::vector.
4000 (add_symtab_fns): Adjust.
4001 (find_sym_fns): Adjust.
4002
56d704da
AK
40032017-10-11 Anton Kolesov <Anton.Kolesov@synopsys.com>
4004
4005 * arc-tdep.c (arc_gdbarch_init): Pass proper cpu value to disassembler.
4006 * arc-tdep.h (arc_arch_is_em): New function.
4007 (arc_arch_is_hs): Likewise.
4008
7fa29be9
EB
40092017-10-11 Egeyar Bagcioglu <egeyar.bagcioglu@oracle.com>
4010
4011 * macrotab.h (macro_lookup_inclusion): Remove unnecessary
4012 parentheses in the declaration.
4013 (macro_lookup_inclusion): Likewise.
4014 (macro_lookup_definition): Likewise.
4015 * p-lang.h (pascal_builtin_types): Likewise.
4016 * tui/tui-data.c (tui_win_list): Likewise.
4017 * tui/tui-data.h (tui_win_list): Likewise.
4018 * utils.h (make_cleanup_free_section_addr_info): Likewise.
4019
d9b477e3
KB
40202017-10-11 Mark Rages <markrages@gmail.com>
4021
4022 * target-memory.c (block_boundaries): Fix for block address not
4023 aligned on block size.
4024
65630365
PA
40252017-10-10 Pedro Alves <palves@redhat.com>
4026 Tom Tromey <tom@tromey.com>
4027
4028 * breakpoint.c (struct captured_breakpoint_query_args)
4029 (do_captured_breakpoint_query, gdb_breakpoint_query): Delete.
4030 (print_breakpoint): New.
4031 * breakpoint.h (print_breakpoint): Declare.
4032 * common/common-exceptions.h (enum return_reason): Remove
4033 references to catch_exceptions.
4034 * exceptions.c (catch_exceptions, catch_exceptions_with_msg):
4035 Delete.
4036 * exceptions.h (catch_exceptions_ftype, catch_exceptions)
4037 (catch_exception_ftype, catch_exceptions_with_msg): Delete.
4038 * gdb.h: Delete.
4039 * gdbthread.h (thread_select): Declare.
4040 * mi/mi-cmd-break.c: Don't include gdb.h.
4041 (breakpoint_notify): Use print_breakpoint.
4042 * mi/mi-cmd-catch.c: Don't include gdb.h.
4043 * mi/mi-interp.c: Don't include gdb.h.
4044 (mi_print_breakpoint_for_event): New.
4045 (mi_breakpoint_created, mi_breakpoint_modified): Use
4046 mi_print_breakpoint_for_event.
4047 * mi/mi-main.c: Don't include gdb.h.
4048 (mi_cmd_thread_select): Parse the global thread ID here. Use
4049 thread_select instead of gdb_thread_select.
4050 (mi_cmd_thread_list_ids): Output "thread-ids" tuple here instead
4051 of using gdb_list_thread_ids.
4052 * remote-fileio.c (do_remote_fileio_request): Change type. Reply
4053 FILEIO_ENOSYS here.
4054 (remote_fileio_request): Use TRY/CATCH instead of
4055 catch_exceptions.
4056 * symfile-mem.c (struct symbol_file_add_from_memory_args)
4057 (symbol_file_add_from_memory_wrapper): Delete.
4058 (add_vsyscall_page): Use TRY/CATCH instead of catch_exceptions.
4059 * thread.c: Don't include gdb.h.
4060 (do_captured_list_thread_ids, gdb_list_thread_ids): Delete.
4061 (thread_alive): Use thread_select.
4062 (do_captured_thread_select): Delete, parts salvaged as ...
4063 (thread_select): ... this new function.
4064 (gdb_thread_select): Delete.
4065
bf469271
PA
40662017-10-10 Pedro Alves <palves@redhat.com>
4067 Tom Tromey <tom@tromey.com>
4068
4069 * breakpoint.c (breakpoint_cond_eval): Change return type to bool
4070 and reverse logic.
4071 (WP_DELETED, WP_VALUE_CHANGED, WP_VALUE_NOT_CHANGED, WP_IGNORE):
4072 No longer macros. Instead ...
4073 (enum wp_check_result): They're now values of this new
4074 enumeration.
4075 (watchpoint_check): Change return type to wp_check_result and
4076 parameter type to bpstat.
4077 (bpstat_check_watchpoint): Use TRY/CATCH instead of catch_errors.
4078 (bpstat_check_breakpoint_conditions): Use TRY/CATCH instead of
4079 catch_errors. Reverse logic of watchpoint_check call.
4080 (breakpoint_re_set_one): Now returns void and takes a breakpoint
4081 pointer as parameter.
4082 (breakpoint_re_set): Use TRY/CATCH instead of catch_errors.
4083 * common/common-exceptions.c (throw_exception_sjlj): Update
4084 comments to avoid mentioning catch_errors.
4085 * exceptions.c (catch_errors): Delete.
4086 * exceptions.h: Update comments to avoid mentioning catch_errors.
4087 (catch_errors_ftype, catch_errors): Delete.
4088 * infrun.c (normal_stop): Use TRY/CATCH instead of catch_errors.
4089 (hook_stop_stub): Delete.
4090 (restore_selected_frame): Change return type to void, and
4091 parameter type to const frame_id &.
4092 (restore_infcall_control_state): Use TRY/CATCH instead of
4093 catch_errors.
4094 * main.c (captured_command_loop): Return void and remove
4095 parameter. Remove references to catch_errors.
4096 (captured_main): Use TRY/CATCH instead of catch_errors.
4097 * objc-lang.c (objc_submethod_helper_data)
4098 (find_objc_msgcall_submethod_helper): Delete.
4099 (find_objc_msgcall_submethod): Use TRY/CATCH instead of
4100 catch_errors.
4101 * record-full.c (record_full_message): Return void.
4102 (record_full_message_args, record_full_message_wrapper): Delete.
4103 (record_full_message_wrapper_safe): Return bool and use TRY/CATCH
4104 instead of catch_errors.
4105 * solib-aix.c (solib_aix_open_symbol_file_object): Change
4106 parameter type to int.
4107 * solib-darwin.c (open_symbol_file_object): Ditto.
4108 * solib-dsbt.c (open_symbol_file_object): Ditto.
4109 * solib-frv.c (open_symbol_file_object): Ditto.
4110 * solib-svr4.c (open_symbol_file_object): Ditto.
4111 * solib-target.c (solib_target_open_symbol_file_object): Ditto.
4112 * solib.c (update_solib_list): Use TRY/CATCH instead of
4113 catch_errors.
4114 * solist.h (struct target_so_ops) <open_symbol_file_object>:
4115 Change type.
4116 * symmisc.c (struct print_symbol_args): Remove.
4117 (dump_symtab_1): Use TRY/CATCH instead of catch_errors.
4118 (print_symbol): Change type.
4119 * windows-nat.c (handle_load_dll, handle_unload_dll): Return void
4120 and remove parameters.
4121 (catch_errors): New.
4122 (get_windows_debug_event): Adjust.
4123
1a56bfa5
TT
41242017-10-09 Tom Tromey <tom@tromey.com>
4125
4126 * mi/mi-main.c (free_splay_tree): Remove.
4127 (list_available_thread_groups): Use splay_tree_up.
4128 * common/gdb_splay_tree.h: New file.
4129
0c478e2d
TT
41302017-10-09 Tom Tromey <tom@tromey.com>
4131
4132 * mi/mi-main.c (do_nothing): Remove.
4133 (list_available_thread_groups): Update.
4134
cbd2b4e3
PA
41352017-10-09 Pedro Alves <palves@redhat.com>
4136
4137 * infrun.c (handle_inferior_event_1) <TARGET_WAITKIND_EXECD>: Skip
4138 reading registers when switching context.
4139
a181c0bf
JB
41402017-10-09 John Baldwin <jhb@FreeBSD.org>
4141
4142 * fbsd-nat.c (fbsd_siginfo_size): Use gdbarch_long_bit.
4143 (fbsd_convert_siginfo): Likewise.
4144 * fbsd-tdep.c (fbsd_core_xfer_siginfo): Likewise.
4145
6e66f753
SM
41462017-10-09 Simon Marchi <simon.marchi@polymtl.ca>
4147
4148 * configure.ac (try_guile_versions): Remove guile-2.2.
4149 * configure: Regenerate.
4150
890e9790
TT
41512017-10-09 Tom Tromey <tom@tromey.com>
4152
4153 * Makefile.in (COMPILE.post, POSTCOMPILE): Restore $(basename).
4154 (COMPILE.pre): Use $(CXX).
4155
109483d9
PA
41562017-10-09 Pedro Alves <palves@redhat.com>
4157
4158 * cp-support.c (cp_remove_params): Return a gdb::unique_xmalloc_ptr.
4159 Use bool.
4160 (overload_list_add_symbol): Adjust to use gdb::unique_xmalloc_ptr.
4161 * cp-support.h (cp_remove_params): Now returns a
4162 gdb::unique_xmalloc_ptr.
4163 * dwarf2read.c (find_slot_in_mapped_hash): Now returns bool.
4164 Adjust to cp_remove_params returning a gdb::unique_xmalloc_ptr.
4165 * psymtab.c (psymtab_search_name): Adjust to cp_remove_params
4166 returning a gdb::unique_xmalloc_ptr.
4167 (lookup_partial_symbol): Adjust to use gdb::unique_xmalloc_ptr.
4168 * stack.c (find_frame_funname): Adjust to cp_remove_params
4169 returning a gdb::unique_xmalloc_ptr.
4170
791afaa2
TT
41712017-10-08 Tom Tromey <tom@tromey.com>
4172
4173 * dwarf2read.c (dwarf2_get_dwz_file): Use
4174 gdb::unique_xmalloc_ptr.
4175 (find_slot_in_mapped_hash): Likewise.
4176 (dwarf2_physname): Likewise.
4177 (create_dwo_unit_in_dwp_v1): Use std::string.
4178 (create_dwo_unit_in_dwp_v2): Likewise.
4179 (lookup_dwo_cutu): Likewise.
4180 (inherit_abstract_dies): Use std::vector.
4181 (read_array_type): Likewise.
4182 (dwarf_decode_macros): Remove unused declaration.
4183 (unsigned_int_compar): Remove.
4184 (dwarf2_build_psymtabs_hard): Use scoped_restore.
4185 (psymtabs_addrmap_cleanup): Remove.
4186
30a9c02f
TT
41872017-10-08 Tom Tromey <tom@tromey.com>
4188
4189 * frame-unwind.c (frame_unwind_try_unwinder): Update.
4190 * frame.h (frame_cleanup_after_sniffer): Declare.
4191 (frame_prepare_for_sniffer): Return void.
4192 * frame.c (frame_cleanup_after_sniffer): No longer static. Change
4193 type of argument.
4194 (frame_prepare_for_sniffer): Return void.
4195
757325a3
TT
41962017-10-08 Tom Tromey <tom@tromey.com>
4197
4198 * utils.h (make_cleanup_value_free): Remove.
4199 * utils.c (do_value_free, struct cleanup): Remove.
4200 * dwarf2loc.c (dwarf2_evaluate_loc_desc_full) <DWARF_VALUE_STACK>:
4201 Use gdb_value_up.
4202 * value.h (struct value_deleter): New.
4203 (gdb_value_up): New typedef.
4204
b9c04fb2
TT
42052017-10-08 Tom Tromey <tom@tromey.com>
4206
4207 * symtab.c (free_search_symbols, do_free_search_symbols_cleanup)
4208 (make_cleanup_free_search_symbols): Remove.
4209 (search_symbols): Return std::vector.
4210 (symbol_search::compare_search_syms): Now member of
4211 symbol_search. Change arguments.
4212 (sort_search_symbols_remove_dups): Change arguments. Rewrite.
4213 (symtab_symbol_info, rbreak_command): Update.
4214 * symtab.h (struct symbol_search) <next>: Remove.
4215 Add constructors.
4216 (symbol_search::operator<): New function.
4217 (symbol_search::operator==): New function.
4218 (search_symbols): Remove std::vector.
4219 (free_search_symbols, make_cleanup_free_search_symbols): Remove.
4220 (symbol_search::compare_search_syms): Declare.
4221
0d28b0a5
YQ
42222017-10-06 Yao Qi <yao.qi@linaro.org>
4223
4224 * Makefile.in (ALL_64_TARGET_OBS): Replace aarch64-insn.o with
4225 arch/aarch64-insn.o.
4226 Remove one rule.
4227 * configure.tgt: Replace aarch64-insn.o with arch/aarch64-insn.o.
4228
71917808
YQ
42292017-10-06 Yao Qi <yao.qi@linaro.org>
4230
4231 * Makefile.in (ALL_TARGET_OBS): Replace arm.o, arm-get-next-pcs.o,
4232 and arm-linux.o with arch/arm.o, arch/arm-get-next-pcs.o and
4233 arch/arm-linux.o respectively.
4234 * configure.tgt: Likewise.
4235
2081b2b2
YQ
42362017-10-06 Yao Qi <yao.qi@linaro.org>
4237
4238 * Makefile.in (ALL_TARGET_OBS): Rename i386.o to arch/i386.o.
4239 * configure.tgt (i386_tobjs): Replace i386.o with arch/i386.o.
4240
a1b85d28
PA
42412017-10-06 Pedro Alves <palves@redhat.com>
4242
4243 * windows-nat.c: Include <algorithm>.
4244
d97987e2
YQ
42452017-10-06 Yao Qi <yao.qi@linaro.org>
4246
4247 * configure.tgt (i386_tobjs): New variable.
4248 (amd64_tobjs): New variable.
4249 Set $cpu_obs and $os_obs.
4250
f38307f5
YQ
42512017-10-06 Yao Qi <yao.qi@linaro.org>
4252
4253 * Makefile.in (CONFIG_SRC_SUBDIR): New.
4254 (ALL_64_TARGET_OBS): Replace amd64.o with arch/amd64.o.
4255 (clean): Remove object files and dependency files.
4256 (distclean): Remove the directory.
4257 * configure.ac: Invoke AC_CONFIG_COMMANDS.
4258 * configure: Re-generated.
4259 * configure.tgt: Replace amd64.o with arch/amd64.o.
4260
2f924de6
JM
42612017-10-05 Jose E. Marchesi <jose.marchesi@oracle.com>
4262
4263 PR build/22188
4264 * arm-tdep.c (arm_decode_misc_memhint_neon): Fix decoding of CPS
4265 and SETEND.
4266
2fd9d7ca
PA
42672017-10-05 Pedro Alves <palves@redhat.com>
4268
4269 * linux-nat.c (linux_child_follow_fork): When following the parent
4270 and detaching the child, consult the parent thread's architecture
4271 instead of the child's.
4272
d13b8493
UW
42732017-10-05 Ulrich Weigand <uweigand@de.ibm.com>
4274
4275 * ax.h: Do not include "doublest.h".
4276 (union agent_val): Remove.
4277
3b4b2f16
UW
42782017-10-05 Ulrich Weigand <uweigand@de.ibm.com>
4279
4280 * dfp.h (MAX_DECIMAL_STRING): Move to dfp.c.
4281 (decimal_to_string): Return std::string object.
4282 (decimal_from_string): Accept std::string object. Return bool.
4283 (decimal_from_integral, decimal_from_doublest): Remove.
4284 (decimal_from_longest): Add prototype.
4285 (decimal_from_ulongest): Likewise.
4286 (decimal_to_longest): Likewise.
4287 (decimal_from_doublest): Likewise.
4288 * dfp.c: Do not include "gdbtypes.h" or "value.h".
4289 (MAX_DECIMAL_STRING): Move here.
4290 (decimal_to_string): Return std::string object.
4291 (decimal_from_string): Accept std::string object. Return bool.
4292 (decimal_from_integral): Remove, replace by ...
4293 (decimal_from_longest, decimal_from_ulongest): ... these new functions.
4294 (decimal_to_longest): New function.
4295 (decimal_from_floating): Remove, replace by ...
4296 (decimal_from_doublest): ... this new function.
4297 (decimal_to_doublest): Update to new decimal_to_string interface.
4298
4299 * value.c (unpack_long): Use decimal_to_longest.
4300 * valops.c (value_cast): Use decimal_from_doublest instead of
4301 decimal_from_floating. Use decimal_from_[u]longest isntead of
4302 decimal_from_integral.
4303 * valarith.c (value_args_as_decimal): Likewise.
4304 * valprint.c (print_decimal_floating): Update to new
4305 decimal_to_string interface.
4306 * printcmd.c (printf_decfloat): Likewise.
4307 * c-exp.y (parse_number): Update to new decimal_from_string interface.
4308
1841ee5d
UW
43092017-10-05 Ulrich Weigand <uweigand@de.ibm.com>
4310
4311 * doublest.h: Do not include "floatformat.h". Remove stale comments.
4312 * gdbtypes.c: Include "floatformat.h".
4313 * value.c: Likewise.
4314 * m68k-tdep.c: Likewise.
4315
4316 * findvar.c: Do not include "floatformat.h".
4317 * amd64-darwin-tdep.c: Likewise.
4318 * arm-linux-tdep.c: Likewise.
4319 * i386-darwin-tdep.c: Likewise.
4320 * i387-tdep.c: Likewise.
4321 * m68k-linux-tdep.c: Likewise.
4322 * mep-tdep.c: Likewise.
4323 * mips-tdep.c: Likewise.
4324 * nios2-tdep.c: Likewise.
4325 * s390-linux-tdep.c: Likewise.
4326 * sparc-obsd-tdep.c: Likewise.
4327 * sparc-tdep.c: Likewise.
4328 * sparc64-tdep.c: Likewise.
4329 * spu-tdep.c: Likewise.
4330 * tic6x-tdep.c: Likewise.
4331 * tilegx-tdep.c: Likewise.
4332 * vax-tdep.c: Likewise.
4333 * xstormy16-tdep.c: Likewise.
4334 * xtensa-tdep.c: Likewise.
4335
4336 * top.c: Do not include "doublest.h".
4337 * aarch64-tdep.c: Likewise.
4338 * alpha-tdep.c: Likewise.
4339 * arm-linux-tdep.c: Likewise.
4340 * m68k-linux-tdep.c: Likewise.
4341 * tilegx-tdep.c: Likewise.
4342 * xstormy16-tdep.c: Likewise.
4343
a80a6471
JB
43442017-10-05 John Baldwin <jhb@FreeBSD.org>
4345
4346 * mips-fbsd-tdep.c (MIPS_INST_ADDIU_A0_SP_N32): Define.
4347 (mipsn32_fbsd_sigframe): Define.
4348 (mips_fbsd_init_abi): Install mipsn32_fbsd_sigframe unwinder
4349 for FreeBSD/mipsn32.
4350
12c4bd7f
JB
43512017-10-05 John Baldwin <jhb@FreeBSD.org>
4352
4353 * fbsd-tdep.c (fbsd_print_auxv_entry): Handle AT_EHDRFLAGS and
4354 AT_HWCAP.
4355
c91933e9
TG
43562017-10-05 Tristan Gingold <tgingold@free.fr>
4357
4358 * MAINTAINERS (Misc): Update my email address.
4359
5cd63fda
PA
43602017-10-04 Pedro Alves <palves@redhat.com>
4361
4362 * remote.c (get_remote_arch_state): New 'gdbarch' parameter. Use
4363 it instead of target_gdbarch.
4364 (get_remote_state, get_remote_packet_size): Adjust
4365 get_remote_arch_state calls, passing down target_gdbarch
4366 explicitly.
4367 (packet_reg_from_regnum, packet_reg_from_pnum): New parameter
4368 'gdbarch' and use it instead of target_gdbarch.
4369 (get_memory_packet_size): Adjust get_remote_arch_state calls,
4370 passing down target_gdbarch explicitly.
4371 (struct stop_reply) <arch>: New field.
4372 (remote_parse_stop_reply): Use the stopped thread's architecture,
4373 not the current inferior's. Save the architecture in the
4374 stop_reply.
4375 (process_stop_reply): Use the stop reply's architecture.
4376 (process_g_packet, remote_fetch_registers)
4377 (remote_prepare_to_store, store_registers_using_G)
4378 (remote_store_registers): Adjust get_remote_arch_state calls,
4379 using the regcache's architecture.
4380 (remote_get_trace_status): Adjust get_remote_arch_state calls,
4381 passing down target_gdbarch explicitly.
4382 * spu-multiarch.c (spu_thread_architecture): Defer to the target
4383 beneath instead of calling target_gdbarch.
4384 * target.c (default_thread_architecture): Use the specified
4385 inferior's architecture, instead of the current inferior's
4386 architecture (via target_gdbarch).
4387
ed4227b7
PA
43882017-10-04 Pedro Alves <palves@redhat.com>
4389
4390 * regcache.c (get_thread_arch_regcache): Remove null_ptid special
4391 case.
4392 (regcache_print): Handle !target_has_registers here instead.
4393
55b11ddf
PA
43942017-10-04 Pedro Alves <palves@redhat.com>
4395
4396 * frame.c (create_test_frame): Delete.
4397 * frame.h (create_test_frame): Delete.
4398 * gdbarch-selftests.c: Include gdbthread.h and target.h.
4399 (class regcache_test): Delete.
4400 (test_target_has_registers, test_target_has_stack)
4401 (test_target_has_memory, test_target_prepare_to_store)
4402 (test_target_store_registers): New functions.
4403 (test_target_ops): New class.
4404 (register_to_value_test): Error out if there's already a
4405 process_stratum (or higher) target pushed. Create a fuller mock
4406 environment, with mock target_ops, inferior, address space, thread
4407 and inferior_ptid.
4408 * progspace.c (struct address_space): Move to ...
4409 * progspace.h (struct address_space): ... here.
4410 * regcache.h (regcache::~regcache, regcache::raw_write)
4411 [GDB_SELF_TEST]: No longer virtual.
4412
4c71c105
SM
44132017-10-04 Simon Marchi <simon.marchi@ericsson.com>
4414
4415 * mi/mi-main.c (list_available_thread_groups): Reverse filter logic.
4416
73dcd72d
PA
44172017-10-04 Pedro Alves <palves@redhat.com>
4418
4419 * guile/scm-breakpoint.c (gdbscm_breakpoint_commands): Move code
4420 out of 'between TRY and CATCH'.
4421
44704526
PA
44222017-10-04 Pedro Alves <palves@redhat.com>
4423
4424 * cli/cli-cmds.c (complete_command): Add missing END_CATCH.
4425 * common/common-exceptions.h (TRY): Open an outermost scope.
4426 Expand intro comment.
4427 (CATCH): Reindent.
4428 (END_CATCH): Close the outermost scope.
4429 * completer.c (complete_line_internal): Add missing END_CATCH.
4430
bc3b087d
SDJ
44312017-10-04 Sergio Durigan Junior <sergiodj@redhat.com>
4432
4433 * NEWS (Changes since GDB 8.0): Add entry about new
4434 'set-cwd-on-gdbserver' feature.
4435 (New remote packets): Add entry for QSetWorkingDir.
4436 * common/common-inferior.h (set_inferior_cwd): New prototype.
4437 * infcmd.c (set_inferior_cwd): Remove "static".
4438 (show_cwd_command): Expand text to include remote debugging.
4439 * remote.c: Add PACKET_QSetWorkingDir.
4440 (remote_protocol_features) <QSetWorkingDir>: New entry for
4441 PACKET_QSetWorkingDir.
4442 (extended_remote_set_inferior_cwd): New function.
4443 (extended_remote_create_inferior): Call
4444 "extended_remote_set_inferior_cwd".
4445 (_initialize_remote): Call "add_packet_config_cmd" for
4446 QSetWorkingDir.
4447
d092c5a2
SDJ
44482017-10-04 Sergio Durigan Junior <sergiodj@redhat.com>
4449
4450 * NEWS (New commands): Mention "set/show cwd".
4451 * cli/cli-cmds.c (_initialize_cli_cmds): Mention "set cwd" on
4452 "cd" command's help text.
4453 * common/common-inferior.h (get_inferior_cwd): New prototype.
4454 * infcmd.c (inferior_cwd_scratch): New global variable.
4455 (set_inferior_cwd): New function.
4456 (get_inferior_cwd): Likewise.
4457 (set_cwd_command): Likewise.
4458 (show_cwd_command): Likewise.
4459 (_initialize_infcmd): Add "set/show cwd" commands.
4460 * inferior.h (class inferior) <cwd>: New field.
4461 * nat/fork-inferior.c: Include "gdb_tilde_expand.h".
4462 (fork_inferior): Change inferior's cwd before its execution.
4463 * windows-nat.c (windows_create_inferior): Pass inferior's cwd
4464 to CreateProcess.
4465
7da0a886
SDJ
44662017-10-04 Sergio Durigan Junior <sergiodj@redhat.com>
4467
4468 * Makefile.in (SFILES): Add gdb_tilde_expand.c.
4469 (HFILES_NO_SRCDIR): Add gdb_tilde_expand.h.
4470 (COMMON_OBS): Add gdb_tilde_expand.o.
4471 * common/gdb_tilde_expand.c: New file.
4472 * common/gdb_tilde_expand.h: Likewise.
4473
db8dd160
MR
44742017-10-03 Maciej W. Rozycki <macro@imgtec.com>
4475
4476 * gdbarch.sh (objfile): Remove duplicate declaration.
4477 * gdbarch.h: Regenerate.
4478
f8bfbf22
TT
44792017-10-03 Tom Tromey <tom@tromey.com>
4480
4481 * utils.c (internal_vproblem): Use string_vprintf.
4482
5178ed48
TT
44832017-10-03 Tom Tromey <tom@tromey.com>
4484
4485 * printcmd.c (info_symbol_command): Use std::string.
4486
8cff8730
TT
44872017-10-03 Tom Tromey <tom@tromey.com>
4488
4489 * top.c (gdb_safe_append_history): Use std::string.
4490
895b8f30
TT
44912017-10-03 Tom Tromey <tom@tromey.com>
4492
4493 * event-top.c (stdin_event_handler): Update.
4494 * main.c (captured_main_1): Update.
4495 * top.h (make_delete_ui_cleanup): Remove.
4496 (struct ui): Add constructor and destructor.
4497 (new_ui, delete_ui): Remove.
4498 * top.c (make_delete_ui_cleanup): Remove.
4499 (new_ui_command): Use std::unique_ptr.
4500 (delete_ui_cleanup): Remove.
4501 (ui::ui): Rename from new_ui. Update.
4502 (free_ui): Remove.
4503 (ui::~ui): Rename from delete_ui. Update.
4504
0efef640
TT
45052017-10-03 Tom Tromey <tom@tromey.com>
4506
4507 * symfile.c (load_progress): Use gdb::byte_vector.
4508
245ad7d3
TT
45092017-10-03 Tom Tromey <tom@tromey.com>
4510
4511 * mi/mi-main.c (mi_cmd_trace_frame_collected): Remove unused
4512 declaration.
4513 * printcmd.c (x_command): Remove unused declaration.
4514 * symfile.c (symbol_file_command): Remove unused declaration.
4515
e05550d7
TT
45162017-10-03 Tom Tromey <tom@tromey.com>
4517
4518 * utils.c (internal_vproblem): Use std::string.
4519 (defaulted_query): Likewise.
4520
b95de2b7
TT
45212017-10-03 Tom Tromey <tom@tromey.com>
4522
4523 * guile/scm-ports.c (ioscm_with_output_to_port_worker): Update.
4524 * top.c (execute_command_to_string): Update.
4525 * utils.c (make_cleanup_restore_page_info): Remove.
4526 (do_restore_page_info_cleanup): Remove.
4527 (set_batch_flag_and_restore_page_info):
4528 New.
4529 (make_cleanup_restore_page_info): Remove.
4530 (set_batch_flag_and_make_cleanup_restore_page_info): Remove.
4531 (~set_batch_flag_and_restore_page_info): New
4532 (make_cleanup_restore_uinteger): Remove.
4533 (make_cleanup_restore_integer): Remove.
4534 (struct restore_integer_closure): Remove.
4535 (restore_integer): Remove.
4536 * utils.h (struct set_batch_flag_and_restore_page_info): New
4537 class.
4538 (set_batch_flag_and_make_cleanup_restore_page_info): Remove.
4539 (make_cleanup_restore_page_info): Remove.
4540 (make_cleanup_restore_uinteger) Remove.
4541 (make_cleanup_restore_integer) Remove.
4542
07036511
TT
45432017-10-03 Tom Tromey <tom@tromey.com>
4544
4545 * record-full.h (record_full_gdb_operation_disable_set): Return
4546 scoped_restore_tmpl<int>.
4547 * infrun.c (adjust_pc_after_break): Update.
4548 (handle_signal_stop): Update.
4549 * record-full.c (record_full_gdb_operation_disable_set): Return
4550 scoped_restore_tmpl<int>.
4551 (record_full_wait_1, record_full_insert_breakpoint)
4552 (record_full_remove_breakpoint, record_full_save)
4553 (record_full_goto_insn): Update.
4554
45320ffa
TT
45552017-10-02 Tom Tromey <tom@tromey.com>
4556
4557 PR rust/22236:
4558 * rust-lang.c (rust_val_print_str): New function.
4559 (val_print_struct): Call it.
4560 (rust_subscript): Preserve name of slice type.
4561
b3e3859b
TT
45622017-10-02 Tom Tromey <tom@tromey.com>
4563
4564 * rust-lang.c (rust_subscript): Handle slices in
4565 EVAL_AVOID_SIDE_EFFECTS case.
4566
01af5e0d
TT
45672017-10-02 Tom Tromey <tom@tromey.com>
4568
4569 * rust-lang.c (rust_slice_type_p): Recognize &str as a slice type.
4570
888e3ddb
TT
45712017-10-02 Tom Tromey <tom@tromey.com>
4572
4573 * rust-lang.h (rust_slice_type): Add "extern".
4574
cc536b21
PA
45752017-10-02 Tom Tromey <tom@tromey.com>
4576 Pedro Alves <palves@redhat.com>
4577
4578 * ada-lang.h (ada_exc_info::operator<): Make const.
4579 (ada_exc_info::operator==): Make const.
4580 * ada-lang.c (ada_exc_info::operator<, ada_exc_info::operator==):
4581 Make const.
4582
386c8614
TT
45832017-09-29 Tom Tromey <tom@tromey.com>
4584
4585 * target.c (read_whatever_is_readable): Change type of "result".
4586 Update.
4587 (free_memory_read_result_vector): Remove.
4588 (read_memory_robust): Change return type. Update.
4589 * mi/mi-main.c (mi_cmd_data_read_memory_bytes): Update. Use
4590 bin2hex, std::string.
4591 * target.h (memory_read_result_s): Remove typedef.
4592 (free_memory_read_result_vector): Remove.
4593 (read_memory_robust): Return std::vector.
4594
789c4b5e
TT
45952017-09-29 Tom Tromey <tom@tromey.com>
4596
4597 * mi/mi-main.c (captured_mi_execute_command): Use scope_restore.
4598
ab816a27
TT
45992017-09-29 Tom Tromey <tom@tromey.com>
4600
4601 * mi/mi-cmd-info.c (mi_cmd_info_ada_exceptions): Update.
4602 * ada-lang.h (struct ada_exc_info): Remove typedef. Declare
4603 operator< and operator==.
4604 (ada_exceptions_list): Return a std::vector.
4605 * ada-lang.c (ada_exc_info::operator<): Rename from
4606 compare_ada_exception_info.
4607 (ada_exc_info::operator==): New.
4608 (sort_remove_dups_ada_exceptions_list): Change type of
4609 "exceptions".
4610 (ada_add_standard_exceptions, ada_add_exceptions_from_frame)
4611 (ada_add_global_exceptions): Likewise.
4612 (ada_exceptions_list_1): Return a std::vector.
4613 (ada_exceptions_list): Likewise.
4614
52f9abe4
TT
46152017-09-29 Tom Tromey <tom@tromey.com>
4616
4617 * mi/mi-main.c (struct print_one_inferior_data) <inferiors>: Now a
4618 'std::set *'.
4619 (print_one_inferior): Update.
4620 (free_vector_of_ints): Remove.
4621 (list_available_thread_groups): Change "ids" to std::set.
4622 (mi_cmd_list_thread_groups): Update.
4623 (struct collect_cores_data) <core>: Now a std::set.
4624 (collect_cores): Update.
4625 (unique): Remove.
4626 (print_one_inferior): Update.
4627
dcd5ddcc
TT
46282017-09-29 Tom Tromey <tom@tromey.com>
4629
4630 * mi/mi-main.c (mi_execute_cli_command): Use std::string.
4631 (mi_execute_async_cli_command): Likewise.
4632 (mi_cmd_trace_frame_collected): Use field_fmt.
4633
45d288cc
TT
46342017-09-29 Tom Tromey <tom@tromey.com>
4635
4636 * mi/mi-main.c (mi_cmd_data_write_memory_bytes): Use
4637 gdb::byte_vector.
4638
6afe2f4a
TT
46392017-09-29 Tom Tromey <tom@tromey.com>
4640
4641 * mi/mi-parse.c (mi_parse): Remove unused declaration.
4642
9813429a
TT
46432017-09-29 Tom Tromey <tom@tromey.com>
4644
4645 * mi/mi-cmd-disas.c (mi_cmd_disassemble): Don't copy "oarg".
4646
2d6960b4
TT
46472017-09-29 Tom Tromey <tom@tromey.com>
4648
4649 * varobj.h (varobj_gen_name): Return std::string.
4650 * varobj.c (varobj_gen_name): Return std::string.
4651 * mi/mi-cmd-var.c (mi_cmd_var_create): Use std::string.
4652 (mi_cmd_var_delete): Don't copy "name".
4653
784c453a
TT
46542017-09-29 Tom Tromey <tom@tromey.com>
4655
4656 * mi/mi-cmd-break.c (mi_argv_to_format): Return std::string.
4657 (mi_cmd_break_insert_1): Update.
4658
a9bc57b9
TT
46592017-09-29 Tom Tromey <tom@tromey.com>
4660
4661 * target.h (make_scoped_defer_target_commit_resume): Update.
4662 * target.c (make_scoped_defer_target_commit_resume): Rename from
4663 make_cleanup_defer_target_commit_resume. Return a
4664 scoped_restore.
4665 * infrun.c (proceed): Use make_scoped_defer_target_commit_resume.
4666
9754d8c4
TT
46672017-09-29 Tom Tromey <tom@tromey.com>
4668
4669 * main.c (captured_main_1): Remove unused declaration.
4670 * spu-multiarch.c (parse_spufs_run): Remove unused declaration.
4671
99ef965c
TT
46722017-09-29 Tom Tromey <tom@tromey.com>
4673
4674 * symtab.c (search_symbols): Remove unused outer cleanup.
4675 (make_source_files_completion_list): Remove unused declaration.
4676
42518ba7
TT
46772017-09-29 Tom Tromey <tom@tromey.com>
4678
4679 * mt-tdep.c (mt_push_dummy_call): Use gdb::byte_vector.
4680
726b2169
TT
46812017-09-29 Tom Tromey <tom@tromey.com>
4682
4683 * xstormy16-tdep.c (xstormy16_push_dummy_call): Use
4684 gdb::byte_vector.
4685
55b06432
TT
46862017-09-29 Tom Tromey <tom@tromey.com>
4687
4688 * complaints.c (vcomplaint): Use std::string.
4689
8abcee91
TT
46902017-09-29 Tom Tromey <tom@tromey.com>
4691
4692 * tracepoint.c (trace_variable_command): Use std::string.
4693 (encode_actions_1): Remove unused declarations.
4694 (create_tsv_from_upload): Use std::string.
4695
6ad94bc7
TT
46962017-09-29 Tom Tromey <tom@tromey.com>
4697
4698 * cp-support.c (gdb_demangle): Use std::string.
4699
2003f3d8
TT
47002017-09-29 Tom Tromey <tom@tromey.com>
4701
4702 * stack.c (parse_frame_specification): Use std::string
4703 (info_frame_command): Use gdb::unique_xmalloc_ptr.
4704
8f8accb5
TT
47052017-09-29 Tom Tromey <tom@tromey.com>
4706
4707 * tilegx-tdep.c (tilegx_push_dummy_call): Use gdb::byte_vector.
4708
200aa7b1
TT
47092017-09-29 Tom Tromey <tom@tromey.com>
4710
4711 * utils.c (vfprintf_maybe_filtered): Use std::string.
4712 (vfprintf_unfiltered): Likewise.
4713
606aae8a
TT
47142017-09-29 Tom Tromey <tom@tromey.com>
4715
4716 * event-top.c (top_level_prompt): Return std::string.
4717 (display_gdb_prompt): Update.
4718
bd413795
TT
47192017-09-29 Tom Tromey <tom@tromey.com>
4720
4721 * unittests/common-utils-selftests.c (format): New function.
4722 (string_vprintf_tests): New function.
4723 (_initialize_common_utils_selftests): Register new tests.
4724 * common/common-utils.c (string_vprintf): New function.
4725 * common/common-utils.h (string_vprintf): Declare.
4726
256642e8
PA
47272017-09-29 Pedro Alves <palves@redhat.com>
4728
4729 * common/rsp-low.c (unpack_varlen_hex): Constify.
4730 * common/rsp-low.h (unpack_varlen_hex): Constify.
4731 * linux-nat.c (linux_child_static_tracepoint_markers_by_strid):
4732 Constify.
4733 * remote.c (remote_set_permissions, read_ptid)
4734 (remote_current_thread, remote_get_threads_with_qthreadinfo)
4735 (remote_static_tracepoint_marker_at)
4736 (remote_static_tracepoint_markers_by_strid)
4737 (stop_reply_extract_thread, remote_parse_stop_reply): Constify.
4738 * tracepoint.c (parse_trace_status, parse_tracepoint_status)
4739 (parse_tracepoint_definition, parse_tsv_definition)
4740 (parse_static_tracepoint_marker_definition): Constify.
4741 * tracepoint.h (parse_static_tracepoint_marker_definition)
4742 (parse_trace_status, parse_tracepoint_status)
4743 (parse_tracepoint_definition, parse_tsv_definition): Constify.
4744
b6bb3468
PA
47452017-09-29 Pedro Alves <palves@redhat.com>
4746
4747 * remote.c (target_buf, target_buf_size): Delete.
4748 (remote_get_noisy_reply): Remove buf_p and sizeof_buf parameters.
4749 Use the connection's packet buffer instead.
4750 All callers adjusted.
4751 (_initialize_remote): Remove references to target_buf and
4752 target_buf_size.
4753
b2f8eb7a
PA
47542017-09-28 Pedro Alves <palves@redhat.com>
4755
4756 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
4757 unittests/common-utils-selftests.c.
4758 (SUBDIR_UNITTESTS_OBS): Add common-utils-selftests.o.
4759 (COMMON_OBS): Remove utils-selftests.o.
4760 * utils-selftests.c: Move to ...
4761 * unittests/common-utils-selftests.c: ... here and rename self
4762 test to "string_printf".
4763
08302ed2
DE
47642017-09-28 Alexander Shaposhnikov <alexander.v.shaposhnikov@gmail.com> (tiny patch)
4765
4766 * dwarf2read.c (open_and_init_dwp_file): Protect against dwp_file
4767 having NULL cus or tus.
4768
96a5a1d3
UW
47692017-09-27 Ulrich Weigand <uweigand@de.ibm.com>
4770
4771 * arm-tdep.c: (convert_from_extended): Remove.
4772 (convert_to_extended): Likewise.
4773 (arm_extract_return_value): Use convert_typed_floating.
4774 (arm_store_return_value): Likewise.
4775
4776 * sh-tdep.h (struct gdbarch_tdep): Add sh_littlebyte_bigword_type.
4777 * sh-tdep.c: Do not include "floatformat.h".
4778 (sh_littlebyte_bigword_type): New function.
4779 (sh_register_convert_to_virtual): Use convert_typed_floating.
4780 (sh_register_convert_to_raw): Likewise.
4781 * sh64-tdep.c: (struct gdbarch_tdep): Add sh_littlebyte_bigword_type.
4782 (sh64_littlebyte_bigword_type): New function.
4783 (sh64_extract_return_value): Use convert_typed_floating.
4784 (sh64_register_convert_to_virtual): Likewise.
4785 (sh64_register_convert_to_raw): Likewise.
4786
0db7851f
UW
47872017-09-27 Ulrich Weigand <uweigand@de.ibm.com>
4788
4789 * doublest.h (floatformat_from_type): Move to gdbtypes.h.
4790 * doublest.c (floatformat_from_type): Move to gdbtypes.c.
4791
4792 * gdbtypes.h (union type_specific): Make field floatformat hold
4793 just a single struct floatformat, not an array.
4794 (floatformat_from_type): Move here.
4795 * gdbtypes.c (floatformat_from_type): Move here. Update to
4796 changed TYPE_FLOATFORMAT definition.
4797 (verify_floatformat): Update to changed TYPE_FLOATFORMAT.
4798 (recursive_dump_type): Likewise.
4799 (init_float_type): Install correct floatformat for byte order.
4800 (arch_float_type): Likewise.
4801
77b7c781
UW
48022017-09-27 Ulrich Weigand <uweigand@de.ibm.com>
4803
4804 * gdbtypes.c (init_type): Change incoming argument from
4805 length-in-bytes to length-in-bits. Assert length is a
4806 multiple of TARGET_CHAR_BITS.
4807 (arch_type, arch_flags_type): Likewise.
4808 (init_integer_type): Update call to init_type.
4809 (init_character_type): Likewise.
4810 (init_boolean_type): Likewise.
4811 (init_float_type): Likewise.
4812 (init_decfloat_type): Likewise.
4813 (init_complex_type): Likewise.
4814 (init_pointer_type): Likewise.
4815 (objfile_type): Likewise.
4816 (arch_integer_type): Update call to arch_type.
4817 (arch_character_type): Likewise.
4818 (arch_boolean_type): Likewise.
4819 (arch_float_type): Likewise.
4820 (arch_decfloat_type): Likewise.
4821 (arch_complex_type): Likewise.
4822 (arch_pointer_type): Likewise.
4823 (gdbtypes_post_init): Likewise.
4824
4825 * dwarf2read.c (dwarf2_init_float_type): Update call to init_type.
4826 (read_base_type): Likewise.
4827 * mdebugread.c (basic_type): Likewise.
4828 * stabsread.c (dbx_init_float_type): Likewise.
4829 (rs6000_builtin_type): Likewise.
4830 (read_range_type): Likewise. Also, fix call to init_integer_type
4831 with erroneous length argument.
4832
4833 * ada-lang.c (ada_language_arch_info): Update call to arch_type.
4834 * d-lang.c (build_d_types): Likewise.
4835 * f-lang.c (build_fortran_types): Likewise.
4836 * go-lang.c (build_go_types): Likewise.
4837 * opencl-lang.c (build_opencl_types): Likewise.
4838 * jit.c (finalize_symtab): Likewise.
4839 * gnu-v3-abi.c (build_gdb_vtable_type): Likewise.
4840 (build_std_type_info_type): Likewise.
4841 * target-descriptions.c (tdesc_gdb_type): Likewise. Also,
4842 update call to arch_flags_type.
4843
4844 * linux-tdep.c (linux_get_siginfo_type_with_fields): Update call to
4845 arch_type.
4846 * fbsd-tdep.c (fbsd_get_siginfo_type): Likewise.
4847 * windows-tdep.c (windows_get_tlb_type): Likewise.
4848
4849 * avr-tdep.c (avr_gdbarch_init): Update call to arch_type.
4850 * ft32-tdep.c (ft32_gdbarch_init): Likewise.
4851 * m32c-tdep.c (make_types): Likewise.
4852 * rl78-tdep.c (rl78_gdbarch_init): Likewise.
4853 (rl78_psw_type): Update call to arch_flags_type.
4854 * m68k-tdep.c (m68k_ps_type): Update call to arch_flags_type.
4855 * rx-tdep.c (rx_psw_type): Likewise.
4856 (rx_fpsw_type): Likewise.
4857 * sparc-tdep.c (sparc_psr_type): Likewise.
4858 (sparc_fsr_type): Likewise.
4859 * sparc64-tdep.c (sparc64_pstate_type): Likewise.
4860 (sparc64_ccr_type): Likewise.
4861 (sparc64_fsr_type): Likewise.
4862 (sparc64_fprs_type): Likewise.
4863
f21b4d5c
TT
48642017-09-27 Tom Tromey <tom@tromey.com>
4865
4866 * findcmd.c (find_command): Constify.
4867
643c2ffa
TT
48682017-09-27 Tom Tromey <tom@tromey.com>
4869
4870 * ada-tasks.c (task_command_1, task_command): Constify.
4871
510e5e56
TT
48722017-09-27 Tom Tromey <tom@tromey.com>
4873
4874 * symtab.c (maintenance_print_symbol_cache)
4875 (maintenance_flush_symbol_cache)
4876 (maintenance_print_symbol_cache_statistics): Constify.
4877
e503b191
TT
48782017-09-27 Tom Tromey <tom@tromey.com>
4879
4880 * inferior.c (detach_inferior_command, kill_inferior_command)
4881 (inferior_command): Constify.
4882
4e001312
TT
48832017-09-27 Tom Tromey <tom@tromey.com>
4884
4885 * regcache.c (regcache_print, maintenance_print_registers)
4886 (maintenance_print_raw_registers)
4887 (maintenance_print_cooked_registers)
4888 (maintenance_print_register_groups)
4889 (maintenance_print_remote_registers): Constify.
4890
77763700
TT
48912017-09-27 Tom Tromey <tom@tromey.com>
4892
4893 * printcmd.c (map_display_numbers, undisplay_command)
4894 (enable_disable_display_command, enable_display_command)
4895 (disable_display_command): Constify.
4896
4495129a
TT
48972017-09-27 Tom Tromey <tom@tromey.com>
4898
4899 * breakpoint.h (delete_command): Don't declare.
4900 * breakpoint.c (delete_command, enable_once_command)
4901 (enable_count_command, enable_delete_command, breakpoint_1)
4902 (maintenance_info_breakpoints, stopin_command, stopat_command)
4903 (delete_command, delete_trace_command, save_breakpoints)
4904 (save_breakpoints_command, save_tracepoints_command): Constify.
4905
3088cf40
TT
49062017-09-27 Tom Tromey <tom@tromey.com>
4907
4908 * macrocmd.c (macro_expand_command, macro_expand_once_command)
4909 (skip_ws, extract_identifier, macro_define_command)
4910 (macro_undef_command, macro_list_command): Constify.
4911
69f476a3
TT
49122017-09-27 Tom Tromey <tom@tromey.com>
4913
4914 * infcmd.c (environment_info, set_environment_command)
4915 (unset_environment_command, path_info, info_proc_cmd_1)
4916 (info_proc_cmd_mappings, info_proc_cmd_stat)
4917 (info_proc_cmd_status, info_proc_cmd_cwd, info_proc_cmd_cmdline)
4918 (info_proc_cmd_exe, info_proc_cmd_all): Constify.
4919
c4a3e68e
TT
49202017-09-27 Tom Tromey <tom@tromey.com>
4921
4922 * i386-tdep.c (i386_mpx_info_bounds, i386_mpx_set_bounds):
4923 Constify.
4924
c9d31bd6
TT
49252017-09-27 Tom Tromey <tom@tromey.com>
4926
4927 * symfile-mem.c (add_symbol_file_from_memory_command): Constify.
4928
1f3f85eb
TT
49292017-09-27 Tom Tromey <tom@tromey.com>
4930
4931 * demangle.c (demangle_command): Constify.
4932
9c504b5d
TT
49332017-09-27 Tom Tromey <tom@tromey.com>
4934
4935 * progspace.c (maintenance_info_program_spaces_command):
4936 Constify.
4937
6663cf91
TT
49382017-09-27 Tom Tromey <tom@tromey.com>
4939
4940 * compile/compile.c (check_raw_argument, compile_file_command)
4941 (compile_code_command, compile_print_command): Constify.
4942
34e5fa26
TT
49432017-09-27 Tom Tromey <tom@tromey.com>
4944
4945 * reggroups.c (maintenance_print_reggroups): Constify.
4946
8384c356
TT
49472017-09-27 Tom Tromey <tom@tromey.com>
4948
4949 * dwarf2read.c (save_gdb_index_command): Constify.
4950
884beb0c
TT
49512017-09-27 Tom Tromey <tom@tromey.com>
4952
4953 * stap-probe.c (info_probes_stap_command): Constify.
4954
e0b2930c
TT
49552017-09-27 Tom Tromey <tom@tromey.com>
4956
4957 * fork-child.c (unset_exec_wrapper_command): Constify.
4958
f938677d
TT
49592017-09-27 Tom Tromey <tom@tromey.com>
4960
4961 * btrace.c (get_uint, get_context_size, no_chunk)
4962 (maint_btrace_packet_history_cmd)
4963 (maint_btrace_clear_packet_history_cmd, maint_btrace_clear_cmd)
4964 (maint_info_btrace_cmd): Constify.
4965
8949cb87
TT
49662017-09-27 Tom Tromey <tom@tromey.com>
4967
4968 * reverse.c (delete_bookmark_command): Constify.
4969
ac88e2de
TT
49702017-09-27 Tom Tromey <tom@tromey.com>
4971
4972 * remote.c (set_memory_packet_size)
4973 (set_memory_write_packet_size, show_memory_write_packet_size)
4974 (set_memory_read_packet_size, show_memory_read_packet_size)
4975 (compare_sections_command, packet_command, remote_put_command)
4976 (remote_get_command, remote_delete_command): Constify.
4977
bd4c9dfe
TT
49782017-09-27 Tom Tromey <tom@tromey.com>
4979
4980 * mips-tdep.c (show_mipsfpu_command, set_mipsfpu_single_command)
4981 (set_mipsfpu_double_command, set_mipsfpu_none_command)
4982 (set_mipsfpu_auto_command): Constify.
4983
5e93d4c6
TT
49842017-09-27 Tom Tromey <tom@tromey.com>
4985
4986 * cli/cli-cmds.h (cd_command): Constify.
4987 * cli/cli-cmds.c (cd_command): Constify.
4988
fc41a75b
TT
49892017-09-27 Tom Tromey <tom@tromey.com>
4990
4991 * thread.c (thread_name_command, thread_find_command): Constify.
4992
67810076
TT
49932017-09-27 Tom Tromey <tom@tromey.com>
4994
4995 * probe.c (enable_probes_command, disable_probes_command):
4996 Constify.
4997
1d8b34a7
TT
49982017-09-27 Tom Tromey <tom@tromey.com>
4999
5000 * symfile.c (symbol_file_command): Constify.
5001 * gdbcore.h (deprecated_file_changed_hook): Constify.
5002 * exec.c (deprecated_file_changed_hook, exec_file_command)
5003 (file_command): Constify.
5004 * defs.h (symbol_file_command): Constify.
5005
442019e1
TT
50062017-09-27 Tom Tromey <tom@tromey.com>
5007
5008 * remote-fileio.c (set_system_call_allowed)
5009 (show_system_call_allowed): Constify.
5010
2983f7cb
TT
50112017-09-27 Tom Tromey <tom@tromey.com>
5012
5013 * tracepoint.c (delete_trace_variable_command)
5014 (tfind_end_command, tfind_start_command, tfind_pc_command)
5015 (tfind_tracepoint_command, tfind_line_command)
5016 (tfind_range_command, tfind_outside_command): Constify.
5017
4fd41b24
TT
50182017-09-27 Tom Tromey <tom@tromey.com>
5019
5020 * ax-gdb.c (maint_agent_printf_command, agent_command)
5021 (agent_eval_command): Constify.
5022
f2fc3015
TT
50232017-09-27 Tom Tromey <tom@tromey.com>
5024
5025 * tracepoint.c (info_scope_command): Constify.
5026 * python/python.c (gdbpy_decode_line): Constify.
5027 * python/py-breakpoint.c (bppy_init): Constify.
5028 * mi/mi-cmd-break.c (mi_cmd_break_insert_1): Constify.
5029 * location.h: (new_linespec_location)
5030 (string_to_event_location_basic, string_to_event_location):
5031 Constify.
5032 * location.c (new_linespec_location)
5033 (string_to_event_location_basic, string_to_event_location):
5034 Constify.
5035 * linespec.h (decode_line_with_current_source)
5036 (decode_line_with_last_displayed, linespec_lex_to_end): Constify.
5037 * linespec.c (linespec_lex_to_end)
5038 (decode_line_with_current_source)
5039 (decode_line_with_last_displayed): Constify.
5040 * guile/scm-breakpoint.c (gdbscm_register_breakpoint_x):
5041 Constify.
5042 * cli/cli-cmds.c (edit_command, list_command): Constify.
5043 * breakpoint.h (until_break_command, watch_command_wrapper)
5044 (awatch_command_wrapper, rwatch_command_wrapper)
5045 (init_ada_exception_breakpoint): Constify.
5046 * breakpoint.c (break_command_1, dprintf_command)
5047 (break_range_command, watch_command_wrapper)
5048 (rwatch_command_wrapper, awatch_command_wrapper)
5049 (until_break_command, init_ada_exception_breakpoint)
5050 (strace_marker_create_sals_from_location, trace_command)
5051 (ftrace_command, strace_command, struct tracepoint): Constify.
5052 * ax-gdb.c (agent_command_1): Constify.
5053 * ada-lang.c (ada_exception_sal): Constify.
5054
8c2f95f4
TT
50552017-09-27 Tom Tromey <tom@tromey.com>
5056
5057 * record.c (cmd_record_delete, cmd_record_stop, cmd_record_save)
5058 (cmd_record_goto_begin, cmd_record_goto_end, get_insn_number)
5059 (get_context_size, no_chunk, get_insn_history_modifiers)
5060 (cmd_record_insn_history, get_call_history_modifiers)
5061 (cmd_record_call_history): Constify.
5062
a0d65762
TT
50632017-09-27 Tom Tromey <tom@tromey.com>
5064
5065 * source.c (show_substitute_path_command)
5066 (unset_substitute_path_command, set_substitute_path_command):
5067 Constify.
5068
58971144
TT
50692017-09-27 Tom Tromey <tom@tromey.com>
5070
5071 * typeprint.c (maintenance_print_type): Constify.
5072 * maint.c (maintenance_dump_me, maintenance_demangle)
5073 (maintenance_time_display, maintenance_info_sections)
5074 (maintenance_print_statistics, maintenance_deprecate)
5075 (maintenance_undeprecate): Constify.
5076 (maintenance_do_deprecate): Constify. Use std::string.
5077 (maintenance_selftest): Constify.
5078 * gdbtypes.h (maintenance_print_type): Constify.
5079
c482f52c
TT
50802017-09-27 Tom Tromey <tom@tromey.com>
5081
5082 * hppa-tdep.c (unwind_command): Constify.
5083
e100df1a
TT
50842017-09-27 Tom Tromey <tom@tromey.com>
5085
5086 * target-descriptions.c (unset_tdesc_filename_cmd)
5087 (maint_print_c_tdesc_cmd, maintenance_check_xml_descriptions):
5088 Constify.
5089
31d56ade
TT
50902017-09-27 Tom Tromey <tom@tromey.com>
5091
5092 * dummy-frame.c (maintenance_print_dummy_frames): Constify.
5093
b961da0b
TT
50942017-09-27 Tom Tromey <tom@tromey.com>
5095
5096 * tui/tui.c (tui_enable_command, tui_disable_command): Constify.
5097
e2d8ae16
TT
50982017-09-27 Tom Tromey <tom@tromey.com>
5099
5100 * tui/tui-regs.c (tui_reg_command): Constify.
5101
863779b0
TT
51022017-09-27 Tom Tromey <tom@tromey.com>
5103
5104 * skip.c (skip_file_command, skip_function_command)
5105 (skip_enable_command, skip_disable_command, skip_delete_command):
5106 Constify.
5107
cdb34d4a
TT
51082017-09-27 Tom Tromey <tom@tromey.com>
5109
5110 * record-btrace.c (cmd_record_btrace_bts_start)
5111 (cmd_record_btrace_pt_start): Constify.
5112
e99c83e7
TT
51132017-09-27 Tom Tromey <tom@tromey.com>
5114
5115 * symmisc.c (maintenance_print_symbols)
5116 (maintenance_print_msymbols, maintenance_print_objfiles)
5117 (maintenance_info_symtabs, maintenance_check_symtabs)
5118 (maintenance_expand_symtabs, maintenance_info_line_tables):
5119 Constify.
5120
32faf971
TT
51212017-09-27 Tom Tromey <tom@tromey.com>
5122
5123 * top.c (new_ui_command): Constify.
5124
2cf311eb
TT
51252017-09-27 Tom Tromey <tom@tromey.com>
5126
5127 * symfile.c (add_symbol_file_command)
5128 (remove_symbol_file_command, list_overlays_command)
5129 (map_overlay_command, unmap_overlay_command)
5130 (overlay_auto_command, overlay_manual_command)
5131 (overlay_off_command, overlay_load_command): Constify.
5132
e6738699
TT
51332017-09-27 Tom Tromey <tom@tromey.com>
5134
5135 * spu-tdep.c (info_spu_event_command, info_spu_signal_command)
5136 (info_spu_mailbox_command, info_spu_dma_command)
5137 (info_spu_proxydma_command): Constify.
5138
aa360cd5
TT
51392017-09-27 Tom Tromey <tom@tromey.com>
5140
5141 * cli/cli-logging.c (set_logging_on, set_logging_off): Constify.
5142
898241a5
TT
51432017-09-27 Tom Tromey <tom@tromey.com>
5144
5145 * cli/cli-script.c (user_defined_command): Constify.
5146
2d0ac106
TT
51472017-09-27 Tom Tromey <tom@tromey.com>
5148
5149 * cli/cli-dump.c (dump_memory_command, dump_value_command)
5150 (dump_srec_memory, dump_srec_value, dump_ihex_memory)
5151 (dump_ihex_value, dump_verilog_memory, dump_verilog_value)
5152 (dump_tekhex_memory, dump_tekhex_value, dump_binary_memory)
5153 (dump_binary_value, append_binary_memory, append_binary_value):
5154 Constify.
5155 (struct dump_context) <func>: Constify.
5156 (add_dump_command): Update.
5157
dede02ce
TT
51582017-09-27 Tom Tromey <tom@tromey.com>
5159
5160 * cli/cli-cmds.c (show_version, show_configuration)
5161 (source_command, show_user): Constify.
5162
d3cb6b99
TT
51632017-09-27 Tom Tromey <tom@tromey.com>
5164
5165 * target.c (maintenance_print_target_stack): Constify.
5166
1970a12f
TT
51672017-09-27 Tom Tromey <tom@tromey.com>
5168
5169 * interps.c (interpreter_exec_cmd): Constify.
5170
41243651
TT
51712017-09-27 Tom Tromey <tom@tromey.com>
5172
5173 * record-full.c (cmd_record_full_restore): Constify.
5174
4465d9db
TT
51752017-09-27 Tom Tromey <tom@tromey.com>
5176
5177 * memattr.c (enable_mem_command, disable_mem_command)
5178 (delete_mem_command): Constify.
5179
ad25e423
TT
51802017-09-27 Tom Tromey <tom@tromey.com>
5181
5182 * value.c (show_convenience): Constify.
5183
d64097b1
TT
51842017-09-27 Tom Tromey <tom@tromey.com>
5185
5186 * gdbcore.h (core_file_command): Update.
5187 * corefile.c (core_file_command): Constify.
5188
4d4589ef
TT
51892017-09-27 Tom Tromey <tom@tromey.com>
5190
5191 * user-regs.c (maintenance_print_user_registers): Constify.
5192
32a7bf17
TT
51932017-09-27 Tom Tromey <tom@tromey.com>
5194
5195 * cp-namespace.c (maintenance_cplus_namespace): Constify.
5196
4a475551
TT
51972017-09-27 Tom Tromey <tom@tromey.com>
5198
5199 * cp-support.c (first_component_command): Constify.
5200
990b9f9f
TT
52012017-09-27 Tom Tromey <tom@tromey.com>
5202
5203 * psymtab.c (maintenance_print_psymbols)
5204 (maintenance_info_psymtabs, maintenance_check_psymtabs):
5205 Constify.
5206
c281872e
TT
52072017-09-27 Tom Tromey <tom@tromey.com>
5208
5209 * windows-tdep.c (display_tib): Constify.
5210
5b64bf74
TT
52112017-09-27 Tom Tromey <tom@tromey.com>
5212
5213 * linux-fork.c (delete_checkpoint_command)
5214 (detach_checkpoint_command): Constify.
5215
4ada038f
TT
52162017-09-27 Tom Tromey <tom@tromey.com>
5217
5218 * cp-abi.c (set_cp_abi_cmd, show_cp_abi_cmd): Constify.
5219
57f5a81b
TT
52202017-09-27 Tom Tromey <tom@tromey.com>
5221
5222 * arc-tdep.c (dump_arc_instruction_command): Constify.
5223
b0a8e6c4
TT
52242017-09-27 Tom Tromey <tom@tromey.com>
5225
5226 * valprint.c (set_radix, show_radix): Constify.
5227
8d97dc1c
TT
52282017-09-27 Tom Tromey <tom@tromey.com>
5229
5230 * dtrace-probe.c (info_probes_dtrace_command): Constify.
5231
eb7c454d
TT
52322017-09-27 Tom Tromey <tom@tromey.com>
5233
5234 * command.h (not_just_help_class_command): Update.
5235 * cli/cli-decode.h (not_just_help_class_command): Update.
5236 * cli/cli-decode.c (not_just_help_class_command): Constify.
5237
e4e33335
TT
52382017-09-27 Tom Tromey <tom@tromey.com>
5239
5240 * gdb_bfd.c (maintenance_info_bfds): Constify.
5241
0450cc4c
TT
52422017-09-27 Tom Tromey <tom@tromey.com>
5243
5244 * cli/cli-decode.c (add_cmd, set_cmd_cfunc): New function
5245 overloads.
5246 (do_add_cmd): Rename from add_cmd. Don't call set_cmd_cfunc.
5247 (do_const_cfunc): New function.
5248 (cmd_cfunc_eq): New overload.
5249 (cli_user_command_p): Check do_const_cfunc.
5250 * cli/cli-decode.h (struct cmd_list_element) <function>: New field
5251 const_cfunc.
5252 * command.h (add_cmd): Add const overload and no-function
5253 overload.
5254 (set_cmd_cfunc): Add const overload.
5255 (cmd_const_cfunc_ftype): Declare.
5256 (cmd_cfunc_eq): Add const overload.
5257 * breakpoint.c, cli-cmds.c, cli-dump.c, guile/scm-cmd.c,
5258 python/py-cmd.c, target.c, tracepoint.c: Use no-function add_cmd
5259 overload.
5260
a9bbfbd8
TT
52612017-09-27 Tom Tromey <tom@tromey.com>
5262
5263 * macroexp.c (get_next_token_for_substitution): New function.
5264 (substitute_args): Call it. Check for __VA_OPT__.
5265
5230b05a
WT
52662017-09-26 Walfred Tedeschi <walfred.tedeschi@intel.com>
5267 Pedro Alves <palves@redhat.com>
5268
5269 * dwarf2read.c (dwarf2_cu): Remove field producer_is_icc and add
5270 producer_is_icc_lt_14.
5271 (producer_is_icc_lt_14): New function.
5272 (check_producer): Add code for checking version of ICC.
5273 (producer_is_icc): Move to producer.c.
5274 (read_structure_type): Restrict ICC workaround to ICC<14.
5275 * producer.c: Include selftest.h.
5276 (producer_is_icc, producer_parsing_tests, _initialize_producer):
5277 New functions.
5278 * producer.h (producer_is_icc): New declaration.
5279
b32b108a
WT
52802017-09-26 Walfred Tedeschi <walfred.tedeschi@intel.com>
5281
5282 * Makefile.in (SFILES): Add producer.c.
5283 (COMMON_OBS): Add producer.o
5284 * amd64-tdep.c (producer.h): Add new include.
5285 * dwarf2read.c (producer.h): Add new include.
5286 * producer.c: New file.
5287 * producer.h: New file.
5288 * utils.c (producer_is_gcc, producer_is_gcc_ge_4): Move to
5289 producer.c.
5290 * utils.h (producer_is_gcc, producer_is_gcc_ge_4): Move to
5291 producer.h.
5292
5007d765
MK
52932017-09-26 Matthias Klose <doko@ubuntu.com>
5294
5295 * configure.ac: Search ncursesw before ncurses.
5296 Check ncursesw/ncurses.h before ncurses/ncurses.h.
5297 * gdb_curses.h: Include <ncursesw/ncurses.h>
5298 * config.in, configure: Regenerate.
5299
281c4447
RO
53002017-09-26 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
5301
5302 PR gdb/22185
5303 * configure.host <*-*-solaris2.[01], *-*-solaris2.[2-9]*>: Mark as
5304 obsolete.
5305 Use gdb_host sol2 for i[34567]86-*-solaris2*, x86_64-*-solaris2*.
5306 Remove i386sol2 support.
5307 * configure.nat <i386sol2>: Remove.
5308 <sol2-64>: Fold into ...
5309 <sol2>: ... this.
5310 Move common settings to default section.
5311 Add sol-thread.o.
5312 * configure.tgt <i[34567]86-*-solaris2.1[0-9]*,
5313 x86_64-*-solaris2.1[0-9]*>: Rename to ...
5314 <i[34567]86-*-solaris2*, x86_64-*-solaris2*>: ... this.
5315 <i[34567]86-*-solaris*>: Remove.
5316 <sparc-*-solaris2.[0-6], sparc-*-solaris2.[0-6].*>: Remove.
5317
5318 * configure.ac: Remove wctype in libw check.
5319 (_MSE_INT_H): Don't define on Solaris 7-9.
5320 <solaris*>: Remove libthread_db.so.1 check.
5321 * configure: Regenerate.
5322 * config.in: Regenerate.
5323
5324 * proc-service.c: Remove PROC_SERVICE_IS_OLD handling.
5325 (gdb_ps_prochandle_t, gdb_ps_read_buf_t, gdb_ps_write_buf_t)
5326 (gdb_ps_size_t): Remove.
5327 Use base types in users.
5328 * sol-thread.c: Likewise, also for gdb_ps_addr_t.
5329
5330 * NEWS (Changes since GDB 8.0): Document Solaris 2.0-9 removal.
5331
39b06c20
RO
53322017-09-26 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
5333
5334 PR build/22206
5335 * sparc64-tdep.c (adi_tag_fd): Print pid as long.
5336 (adi_is_addr_mapped): Likewise.
5337 (PSR_ICC): Don't redefine.
5338 (PSR_IMPL): Likewise.
5339
6c3e20f1
TT
53402017-09-25 Tom Tromey <tom@tromey.com>
5341
5342 * regcache.c (regcache::dump): Use string_printf.
5343
b292235f
TT
53442017-09-25 Tom Tromey <tom@tromey.com>
5345
5346 * regcache.c (class regcache_invalidator): New.
5347 (struct register_to_invalidate): Remove.
5348 (make_cleanup_regcache_invalidate): Remove.
5349 (regcache::raw_write): Use regcache_invalidator.
5350
9ac86b52
TT
53512017-09-25 Tom Tromey <tom@tromey.com>
5352
5353 * spu-tdep.c (spu2ppu_sniffer): Update.
5354 * regcache.h (make_cleanup_regcache_xfree): Don't declare.
5355 * regcache.c (do_regcache_xfree, make_cleanup_regcache_xfree):
5356 Remove.
5357 * ppc-linux-tdep.c (ppu2spu_sniffer): Update.
5358 * mi/mi-main.c (mi_cmd_data_list_changed_registers): Update.
5359 * frame.h (frame_save_as_regcache): Return std::unique_ptr.
5360 * frame.c (frame_save_as_regcache): Return std::unique_ptr.
5361 (frame_pop): Update.
5362
c0e383c6
TT
53632017-09-25 Tom Tromey <tom@tromey.com>
5364
5365 * spu-tdep.c (spu2ppu_dealloc_cache): Use delete.
5366 * regcache.h (regcache_xfree): Don't declare.
5367 * regcache.c (regcache_xfree): Remove.
5368 (do_regcache_xfree): Use delete.
5369 * ppc-linux-tdep.c (ppu2spu_dealloc_cache): Use delete.
5370 * linux-fork.c (free_fork): Use delete.
5371 (fork_save_infrun_state): Likewise.
5372 * jit.c (jit_dealloc_cache): Use delete.
5373 * infrun.c (discard_infcall_suspend_state): Use delete.
5374
791199cc
TT
53752017-09-25 Tom Tromey <tom@tromey.com>
5376
5377 * regcache.h (regcache_xmalloc): Don't declare.
5378 (regcache_raw_set_cached_value): Update comment.
5379 * regcache.c (regcache_xmalloc): Remove.
5380 * ppc-linux-tdep.c (ppu2spu_sniffer): Use new.
5381 * jit.c (jit_frame_sniffer): Use new.
5382 * frame.c (frame_save_as_regcache): Use new.
5383
289e23aa
AA
53842017-09-25 Andreas Arnez <arnez@linux.vnet.ibm.com>
5385
5386 * NEWS: Advertise support for guarded-storage registers on IBM z.
5387
1b63490c
AA
53882017-09-25 Andreas Arnez <arnez@linux.vnet.ibm.com>
5389
5390 * s390-linux-nat.c (have_regset_gs): New static variable.
5391 (s390_linux_fetch_inferior_registers): Handle guarded-storage
5392 control block and guarded-storage broadcast control regsets.
5393 (s390_read_description): Detect whether the target has
5394 guarded-storage support, return appropriate tdesc.
5395 * s390-linux-tdep.c (features/s390-gs-linux64.c): New include.
5396 (features/s390x-gs-linux64.c): Likewise.
5397 (struct gdbarch_tdep) <have_gs>: New field.
5398 (s390_regmap_gs, s390_regmap_gsbc, s390_gs_regset)
5399 (s390_gsbc_regset): New variables.
5400 (s390_iterate_over_regset_sections): Iterate over s390_gs_regset
5401 and s390_gsbc_regset, if applicable.
5402 (s390_core_read_description): Check whether core file was from a
5403 target with guarded-storage support; include appropriate regsets.
5404 (s390_gdbarch_init): Add registers for guarded-storage support.
5405 (_initialize_s390_tdep): Initialize new target descriptions that
5406 include registers for guarded-storage support.
5407 * s390-linux-tdep.h (HWCAP_S390_GS, S390_GSD_REGNUM)
5408 (S390_GSSM_REGNUM, S390_GSEPLA_REGNUM)
5409 (S390_BC_GSD_REGNUM, S390_BC_GSSM_REGNUM): New defines.
5410 (S390_NUM_REGS): Adjust macro definition.
5411 (s390_gs_regset, s390_gsbc_regset, tdesc_s390_gs_linux64)
5412 (tdesc_s390x_gs_linux64): New declarations.
5413
96235dc1
AA
54142017-09-25 Andreas Arnez <arnez@linux.vnet.ibm.com>
5415
5416 * features/s390-gs-linux64.xml: New file.
5417 * features/s390-gs.xml: New file.
5418 * features/s390-gsbc.xml: New file.
5419 * features/s390x-gs-linux64.xml: New file.
5420 * features/Makefile (WHICH): Add s390-gs-linux64 and
5421 s390x-gs-linux64.
5422 (s390-gs-linux64-expedite, s390x-gs-linux64-expedite): New macros.
5423 (XMLTOC): Add s390-gs-linux64.xml and s390x-linux64.xml.
5424 * features/s390-gs-linux64.c: New generated file.
5425 * features/s390x-gs-linux64.c: New file.
5426 * regformats/s390-gs-linux64.dat: New file.
5427 * regformats/s390x-gs-linux64.dat: New file.
5428
b4a7c699
TT
54292017-09-23 Tom Tromey <tom@tromey.com>
5430
5431 * defs.h (make_cleanup_override_quit_handler): Don't declare.
5432
c2f97536
TT
54332017-09-22 Tom Tromey <tom@tromey.com>
5434
5435 * utils.c (class scoped_input_handler) <m_quit_handler>: Change
5436 type to scoped_restore_tmpl.
5437 <scoped_input_handler>: Initialize m_quit_handler directly.
5438
43573013
SDJ
54392017-09-22 Sergio Durigan Junior <sergiodj@redhat.com>
5440
5441 * cli/cli-cmds.c (pwd_command): Use "getcwd (NULL, 0)".
5442 (cd_command): Likewise. Free "current_directory" before
5443 assigning to it.
5444 * main.c (captured_main_1): Use "getcwd (NULL, 0)".
5445 * mi/mi-cmd-env.c (mi_cmd_env_pwd): Likewise.
5446 * top.c (gdb_dirbuf): Remove global declaration.
5447 * top.h (gdb_dirbuf): Likewise.
5448
6ec2e0f5
SDJ
54492017-09-22 Sergio Durigan Junior <sergiodj@redhat.com>
5450
5451 * gnulib/aclocal.m4: Regenerate.
5452 * gnulib/config.in: Regenerate.
5453 * gnulib/configure: Regenerate.
5454 * gnulib/import/Makefile.am: Regenerate.
5455 * gnulib/import/Makefile.in: Regenerate.
5456 * gnulib/import/assure.h: New file.
5457 * gnulib/import/at-func.c: Likewise
5458 * gnulib/import/chdir-long.c: New file.
5459 * gnulib/import/chdir-long.h: New file.
5460 * gnulib/import/cloexec.c: New file.
5461 * gnulib/import/cloexec.h: New file.
5462 * gnulib/import/close.c: New file.
5463 * gnulib/import/closedir.c: New file.
5464 * gnulib/import/dirent-private.h: New file.
5465 * gnulib/import/dup-safer.c: New file.
5466 * gnulib/import/dup.c: New file.
5467 * gnulib/import/dup2.c: New file.
5468 * gnulib/import/error.c: New file.
5469 * gnulib/import/error.h: New file.
5470 * gnulib/import/exitfail.c: New file.
5471 * gnulib/import/exitfail.h: New file.
5472 * gnulib/import/fchdir.c: New file.
5473 * gnulib/import/fcntl.c: New file.
5474 * gnulib/import/fcntl.in.h: New file.
5475 * gnulib/import/fd-hook.c: New file.
5476 * gnulib/import/fd-hook.h: New file.
5477 * gnulib/import/fd-safer.c: New file.
5478 * gnulib/import/fdopendir.c: New file.
5479 * gnulib/import/filename.h: New file.
5480 * gnulib/import/filenamecat-lgpl.c: New file.
5481 * gnulib/import/filenamecat.h: New file.
5482 * gnulib/import/fstat.c: New file.
5483 * gnulib/import/fstatat.c: New file.
5484 * gnulib/import/getcwd-lgpl.c: New file.
5485 * gnulib/import/getcwd.c: New file.
5486 * gnulib/import/getdtablesize.c: New file.
5487 * gnulib/import/getlogin_r.c: New file.
5488 * gnulib/import/getprogname.c: New file.
5489 * gnulib/import/getprogname.h: New file.
5490 * gnulib/import/gettext.h: New file.
5491 * gnulib/import/glob-libc.h: New file.
5492 * gnulib/import/glob.c: New file.
5493 * gnulib/import/glob.in.h: New file.
5494 * gnulib/import/intprops.h: New file.
5495 * gnulib/import/m4/chdir-long.m4: New file.
5496 * gnulib/import/m4/close.m4: New file.
5497 * gnulib/import/m4/closedir.m4: New file.
5498 * gnulib/import/m4/d-ino.m4: New file.
5499 * gnulib/import/m4/d-type.m4: New file.
5500 * gnulib/import/m4/dup.m4: New file.
5501 * gnulib/import/m4/dup2.m4: New file.
5502 * gnulib/import/m4/error.m4: New file.
5503 * gnulib/import/m4/fchdir.m4: New file.
5504 * gnulib/import/m4/fcntl.m4: New file.
5505 * gnulib/import/m4/fcntl_h.m4: New file.
5506 * gnulib/import/m4/fdopendir.m4: New file.
5507 * gnulib/import/m4/filenamecat.m4: New file.
5508 * gnulib/import/m4/fstat.m4: New file.
5509 * gnulib/import/m4/fstatat.m4: New file.
5510 * gnulib/import/m4/getcwd-abort-bug.m4: New file.
5511 * gnulib/import/m4/getcwd-path-max.m4: New file.
5512 * gnulib/import/m4/getcwd.m4: New file.
5513 * gnulib/import/m4/getdtablesize.m4: New file.
5514 * gnulib/import/m4/getlogin_r.m4: New file.
5515 * gnulib/import/m4/getprogname.m4: New file.
5516 * gnulib/import/m4/glob.m4: New file.
5517 * gnulib/import/m4/gnulib-cache.m4: Regenerate.
5518 * gnulib/import/m4/gnulib-comp.m4: Regenerate.
5519 * gnulib/import/m4/mempcpy.m4: New file.
5520 * gnulib/import/m4/memrchr.m4: New file.
5521 * gnulib/import/m4/mode_t.m4: New file.
5522 * gnulib/import/m4/msvc-inval.m4: New file.
5523 * gnulib/import/m4/msvc-nothrow.m4: New file.
5524 * gnulib/import/m4/open.m4: New file.
5525 * gnulib/import/m4/openat.m4: New file.
5526 * gnulib/import/m4/opendir.m4: New file.
5527 * gnulib/import/m4/readdir.m4: New file.
5528 * gnulib/import/m4/realloc.m4: New file.
5529 * gnulib/import/m4/rewinddir.m4: New file.
5530 * gnulib/import/m4/save-cwd.m4: New file.
5531 * gnulib/import/m4/strdup.m4: New file.
5532 * gnulib/import/m4/strerror.m4: New file.
5533 * gnulib/import/m4/unistd-safer.m4: New file.
5534 * gnulib/import/mempcpy.c: New file.
5535 * gnulib/import/memrchr.c: New file.
5536 * gnulib/import/msvc-inval.c: New file.
5537 * gnulib/import/msvc-inval.h: New file.
5538 * gnulib/import/msvc-nothrow.c: New file.
5539 * gnulib/import/msvc-nothrow.h: New file.
5540 * gnulib/import/open.c: New file.
5541 * gnulib/import/openat-die.c: New file.
5542 * gnulib/import/openat-priv.h: New file.
5543 * gnulib/import/openat-proc.c: New file.
5544 * gnulib/import/openat.c: New file.
5545 * gnulib/import/openat.h: New file.
5546 * gnulib/import/opendir.c: New file.
5547 * gnulib/import/pipe-safer.c: New file.
5548 * gnulib/import/readdir.c: New file.
5549 * gnulib/import/realloc.c: New file.
5550 * gnulib/import/rewinddir.c: New file.
5551 * gnulib/import/save-cwd.c: New file.
5552 * gnulib/import/save-cwd.h: New file.
5553 * gnulib/import/strdup.c: New file.
5554 * gnulib/import/strerror-override.c: New file.
5555 * gnulib/import/strerror-override.h: New file.
5556 * gnulib/import/strerror.c: New file.
5557 * gnulib/import/unistd--.h: New file.
5558 * gnulib/import/unistd-safer.h: New file.
5559 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add
5560 "getcwd" and "glob".
5561 * ser-tcp.c: Undefine "close" before redefining it.
5562
432ae719
SM
55632017-09-21 Simon Marchi <simon.marchi@ericsson.com>
5564
5565 * guile/scm-value.c (gdbscm_value_address): Initialize address,
5566 get rid of res_val.
5567
4fa7574e
RO
55682017-09-22 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
5569
5570 * configure.nat <i386sol2,i386>: Add fork-inferior.o to NATDEPFILES.
5571 <sol2,sparc>: Likewise.
5572 <sol2-64,i386>: Likewise.
5573
5574 * warning.m4 (AM_GDB_WARNINGS): Disable -Wunknown-pragmas,
5575 -Wdeprecated-declarations on *-*-solaris*.
5576 * configure: Regenerate.
5577
5578 * procfs.c: Include "nat/inferior.h".
5579 (procfs_info_proc): Fix typo.
5580
f6327dcb
KB
55812017-09-21 Kevin Buettner <kevinb@redhat.com>
5582
5583 * remote.c (vector): Include.
5584 (struct private_thread_info): Add field, thread_handle.
5585 (free_private_thread_info): Deallocate storage associated with
5586 thread handle.
5587 (get_private_info_thread): Initialize `thread_handle' field.
5588 (struct thread_item): Add field, thread_handle.
5589 (clear_threads_listing_context): Deallocate storage associated
5590 with thread handle.
5591 (start_thread): Add support for "handle" attribute.
5592 (thread_attributes): Add "handle".
5593 (remote_get_threads_with_qthreadinfo): Initialize thread_handle
5594 field.
5595 (remote_update_thread_list): Update thread_handle.
5596 (remote_thread_handle_to_thread_info): New function.
5597 (init_remote_ops): Initialize to_thread_handle_to_thread_info.
5598
fbbe5337
KB
55992017-09-21 Kevin Buettner <kevinb@redhat.com>
5600
5601 * python/py-inferior.c (gdbpy_thread_from_thread_handle): New
5602 function.
5603 (inferior_object_methods): Add gdbpy_thread_from_thread_handle.
5604 * python/python-internal.h (thread_object_type): Declare.
5605
e04ee09e
KB
56062017-09-21 Kevin Buettner <kevinb@redhat.com>
5607
5608 * target.h (struct target_ops): Add to_thread_handle_to_thread_info.
5609 (target_thread_handle_to_thread_info): Declare.
5610 * target.c (target_thread_handle_to_thread_info): New function.
5611 * target-delegates.c: Regenerate.
5612 * gdbthread.h (find_thread_by_handle): Declare.
5613 * thread.c (find_thread_by_handle): New function.
5614 * linux-thread-db.c (thread_db_thread_handle_to_thread_info): New
5615 function.
5616 (init_thread_db_ops): Register thread_db_thread_handle_to_thread_info.
5617
1e5b66ed
SM
56182017-09-21 Simon Marchi <simon.marchi@ericsson.com>
5619
5620 * nat/linux-waitpid.c (linux_debug): Add ATTRIBUTE_PRINTF.
5621
ebe48ba0
SM
56222017-09-21 Simon Marchi <simon.marchi@ericsson.com>
5623
5624 * microblaze-tdep.c (microblaze_debug): Add ATTRIBUTE_PRINTF.
5625
0a0bf5dc
YQ
56262017-09-21 Yao Qi <yao.qi@linaro.org>
5627
5628 * configure.tgt (aarch64*-*-freebsd*): Add fbsd-tdep.o solib-svr4.o
5629 to gdb_target_obs.
5630
d1b0a7bf
TT
56312017-09-20 Tom Tromey <tom@tromey.com>
5632
5633 * breakpoint.c (struct counted_command_line): Remove.
5634 (breakpoint_commands): Update.
5635 (alloc_counted_command_line, incref_counted_command_line)
5636 (decref_counted_command_line, do_cleanup_counted_command_line)
5637 (make_cleanup_decref_counted_command_line): Remove.
5638 (breakpoint_set_commands, commands_command_1, ~bpstats, bpstats)
5639 (bpstat_clear_actions, bpstat_do_actions_1, watchpoint_check)
5640 (bpstat_stop_status, print_one_breakpoint_location, ~breakpoint)
5641 (save_breakpoints): Update.
5642 * breakpoint.h (counted_command_line): Now a typedef to
5643 shared_ptr.
5644 (struct breakpoint) <commands>: Now a counted_command_line.
5645 (struct bpstats) <command>: Likewise.
5646
48649e1b
TT
56472017-09-20 Tom Tromey <tom@tromey.com>
5648
5649 * breakpoint.c (struct commands_info, do_map_commands_command):
5650 Remove.
5651 (commands_command_1): Update.
5652 (iterate_over_related_breakpoints): Take a function_view.
5653 (do_delete_breakpoint, do_map_delete_breakpoint): Remove.
5654 (delete_command): Update.
5655 (map_breakpoint_numbers): Take a function_view.
5656 (do_disable_breakpoint, do_map_delete_breakpoint): Remove.
5657 (disable_command): Update.
5658 (do_enable_breakpoint, do_map_enable_breakpoint): Remove.
5659 (enable_command): Update.
5660 (struct disp_data, do_enable_breakpoint_disp)
5661 (do_map_enable_once_breakpoint, do_map_enable_count_breakpoint)
5662 (do_map_enable_delete_breakpoint): Remove.
5663 (enable_once_command, enable_count_command, enable_delete_command)
5664 (delete_trace_variable_command): Update.
5665
04afa70c
TT
56662017-09-20 Tom Tromey <tom@tromey.com>
5667
5668 * breakpoint.c (~bpstats): Rename from bpstat_free. Update.
5669 (bpstat_clear): Use delete.
5670 (bpstats): New constructors.
5671 (bpstat_copy, bpstat_stop_status): Use new.
5672 (dprintf_after_condition_true): Update.
5673 * breakpoint.h (bpstats::bpstats): Add constructors.
5674 (bpstats::~bpstats): Add destructor.
5675
c83833f4
PA
56762017-09-20 Pedro Alves <palves@redhat.com>
5677
5678 * eval.c (make_params): Delete, refactored as ...
5679 (class fake_method): ... this new type's ctor.
5680 (fake_method::~fake_method): New.
5681 (evaluate_subexp_standard): Use 'fake_method'.
5682
223ffa71
TT
56832017-09-20 Tom Tromey <tom@tromey.com>
5684
5685 * windows-nat.c (get_windows_debug_event, windows_wait)
5686 (do_initial_windows_stuff, windows_attach): Update.
5687 * utils.c (vwarning, internal_vproblem): Update.
5688 (ui_unregister_input_event_handler_cleanup)
5689 (prepare_to_handle_input): Remove.
5690 (class scoped_input_handler): New.
5691 (defaulted_query, prompt_for_continue): Update.
5692 * tui/tui-hooks.c (tui_refresh_frame_and_register_information):
5693 Update.
5694 * top.c (undo_terminal_modifications_before_exit): Update.
5695 * target/target.h (target_terminal_init, target_terminal_inferior)
5696 (target_terminal_ours): Don't declare.
5697 (class target_terminal): New.
5698 * target.h (target_terminal_is_inferior, target_terminal_is_ours)
5699 (target_terminal_ours_for_output)
5700 (make_cleanup_restore_target_terminal): Don't declare.
5701 (target_terminal_info): Remove.
5702 * target.c (enum terminal_state, terminal_state): Remove.
5703 (target_terminal::terminal_state): Define.
5704 (target_terminal::init): Rename from target_terminal_init.
5705 (target_terminal::inferior): Rename from
5706 target_terminal_inferior.
5707 (target_terminal::ours): Rename from target_terminal_ours.
5708 (target_terminal::ours_for_output): Rename from
5709 target_terminal_ours_for_output.
5710 (target_terminal::info): New method.
5711 (cleanup_restore_target_terminal)
5712 (make_cleanup_restore_target_terminal): Remove.
5713 * solib.c (handle_solib_event): Update.
5714 * remote.c (remote_serial_quit_handler): Update.
5715 (remote_terminal_inferior, remote_wait_as): Update.
5716 * record-full.c (record_full_wait_1): Update.
5717 * nto-procfs.c (procfs_create_inferior): Update.
5718 * nat/fork-inferior.c (startup_inferior): Update.
5719 * mi/mi-interp.c (mi_new_thread, mi_thread_exit)
5720 (mi_record_changed, mi_inferior_added, mi_inferior_appeared)
5721 (mi_inferior_exit, mi_inferior_removed, mi_traceframe_changed)
5722 (mi_tsv_created, mi_tsv_deleted, mi_tsv_modified)
5723 (mi_breakpoint_created, mi_breakpoint_deleted)
5724 (mi_breakpoint_modified, mi_on_resume, mi_solib_loaded)
5725 (mi_solib_unloaded, mi_command_param_changed, mi_memory_changed)
5726 (mi_user_selected_context_changed, report_initial_inferior):
5727 Update.
5728 * linux-nat.c (linux_nat_attach, linux_nat_terminal_ours)
5729 (linux_nat_terminal_inferior): Update.
5730 * infrun.c (follow_fork_inferior)
5731 (handle_vfork_child_exec_or_exit, do_target_resume)
5732 (check_curr_ui_sync_execution_done, handle_inferior_event_1)
5733 (handle_signal_stop, maybe_remove_breakpoints, normal_stop):
5734 Update.
5735 * inflow.c (child_terminal_init, info_terminal_command): Update.
5736 * infcmd.c (post_create_inferior, continue_1, prepare_one_step)
5737 (attach_command): Update.
5738 * infcall.c (call_thread_fsm_should_stop): Update.
5739 * gnu-nat.c (gnu_attach): Update.
5740 * extension.c (struct active_ext_lang_state)
5741 (restore_active_ext_lang): Update.
5742 * exceptions.c (print_flush): Update.
5743 * event-top.c (async_enable_stdin, default_quit_handler): Update.
5744 (struct quit_handler_cleanup_data, restore_quit_handler)
5745 (restore_quit_handler_dtor, make_cleanup_override_quit_handler):
5746 Remove.
5747 * cp-support.c (gdb_demangle): Update.
5748 * breakpoint.c (update_inserted_breakpoint_locations)
5749 (insert_breakpoint_locations, handle_jit_event)
5750 (disable_breakpoints_in_unloaded_shlib): Update.
5751 * annotate.c (annotate_breakpoints_invalid)
5752 (annotate_frames_invalid): Update.
5753
013af3fc
TT
57542017-09-20 Tom Tromey <tom@tromey.com>
5755
5756 * main.c (catch_command_errors): Rename from
5757 catch_command_errors_const.
5758 (captured_main_1): Update.
5759
06871ae8
PA
57602017-09-20 Pedro Alves <palves@redhat.com>
5761
5762 * cli/cli-cmds.c (list_command): Use print_sal_location.
5763 (print_sal_location): New function.
5764 (ambiguous_line_spec): Use print_sal_location.
5765 * linespec.c (symbol_to_sal): Record the symbol in the sal.
5766 * symtab.c (find_function_start_sal): Likewise.
5767 * symtab.h (symtab_and_line::symbol): New field.
5768
e5f25bc5
PA
57692017-09-20 Pedro Alves <palves@redhat.com>
5770
5771 * linespec.c (minsym_found): Handle non-text minsyms.
5772 (symbol_to_sal): Record a sal.pc for non-block, non-label symbols.
5773
1b7fa39e
WT
57742017-09-20 Walfred Tedeschi <walfred.tedeschi@intel.com>
5775
5776 * features/Makefile (i386-avx-mpx-avx512-pku.dat): Add missing
5777 backslash.
5778
37dd0825
WT
57792017-09-20 Walfred Tedeschi <walfred.tedeschi@intel.com>
5780
5781 * gdb.arch/i386-avx512.c (move_zmm_data_to_reg): Use
5782 vmovups instead vmovaps.
5783 (move_zmm_data_to_memory): Use vmovups instead vmovaps.
5784
4e5a4f58
JB
57852017-09-19 John Baldwin <jhb@FreeBSD.org>
5786
5787 * NEWS (Changes since GDB 8.0): Add starti.
5788 * infcmd.c (enum run_break): New.
5789 (run_command_1): Queue pending event for RUN_STOP_AT_FIRST_INSN
5790 case.
5791 (run_command): Use enum run_how.
5792 (start_command): Likewise.
5793 (starti_command): New function.
5794 (RUN_ARGS_HELP): New macro.
5795 (_initialize_infcmd): Use RUN_ARGS_HELP for run and start
5796 commands. Add starti command.
5797
aa70c9f1
YQ
57982017-09-19 Yao Qi <yao.qi@linaro.org>
5799
5800 * Makefile.in (monitor.o): Remove the rule.
5801
d6541620
YQ
58022017-09-19 Yao Qi <yao.qi@linaro.org>
5803
5804 * annotate.h (struct annotate_arg_emitter): Use
5805 DISABLE_COPY_AND_ASSIGN.
5806 * common/refcounted-object.h (refcounted_object): Likewise.
5807 * completer.h (struct completion_result): Likewise.
5808 * dwarf2read.c (struct dwarf2_per_objfile): Likewise.
5809 * filename-seen-cache.h (filename_seen_cache): Likewise.
5810 * gdbcore.h (thread_section_name): Likewise.
5811 * gdb_regex.h (compiled_regex): Likewise.
5812 * gdbthread.h (scoped_restore_current_thread): Likewise.
5813 * inferior.h (scoped_restore_current_inferior): Likewise.
5814 * jit.c (jit_reader): Likewise.
5815 * linespec.h (struct linespec_result): Likewise.
5816 * mi/mi-parse.h (struct mi_parse): Likewise.
5817 * nat/fork-inferior.c (execv_argv): Likewise.
5818 * progspace.h (scoped_restore_current_program_space): Likewise.
5819 * python/python-internal.h (class gdbpy_enter): Likewise.
5820 * regcache.h (regcache): Likewise.
5821 * target-descriptions.c (struct tdesc_reg): Likewise.
5822 (struct tdesc_type): Likewise.
5823 (struct tdesc_feature): Likewise.
5824 * ui-out.h (ui_out_emit_type): Likewise.
5825
0615127c
SM
58262017-09-18 Simon Marchi <simon.marchi@ericsson.com>
5827
5828 * dwarf2expr.c (dwarf_expr_context::execute_stack_op): Remove
5829 label abort_expression.
5830
5e187554
SM
58312017-09-16 Simon Marchi <simon.marchi@ericsson.com>
5832
5833 * common/buffer.c (buffer_xml_printf): Adjust.
5834 * common/xml-utils.c (xml_escape_text): Change return type to
5835 std::string, update code accordingly.
5836 * common/xml-utils.h (xml_escape_text): Change return type to
5837 std::string.
5838 * rs6000-aix-tdep.c (rs6000_aix_shared_library_to_xml): Adjust.
5839 * windows-tdep.c (windows_xfer_shared_library): Adjust.
5840 * unittests/xml-utils-selftests.c (test_xml_escape_text):
5841 Adjust.
5842
c3d7b541
SM
58432017-09-16 Simon Marchi <simon.marchi@ericsson.com>
5844
5845 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add new source file.
5846 (SUBDIR_UNITTESTS_OBS): Add new object file.
5847 * unittests/xml-utils-selftests.c: New file.
5848
1526853e
SM
58492017-09-16 Simon Marchi <simon.marchi@ericsson.com>
5850
5851 * common/selftest.h (selftest): New struct/interface.
5852 (register_test): Add name parameter, add new overload.
5853 (run_tests): Add filter parameter.
5854 (for_each_selftest_ftype): New typedef.
5855 (for_each_selftest): New declaration.
5856 * common/selftest.c (tests): Change type to
5857 map<string, unique_ptr<selftest>>.
5858 (simple_selftest): New struct.
5859 (register_test): New function.
5860 (register_test): Add name parameter and use it.
5861 (run_tests): Add filter parameter and use it. Add prints.
5862 Adjust to vector -> map change.
5863 * aarch64-tdep.c (_initialize_aarch64_tdep): Add names when
5864 registering selftests.
5865 * arm-tdep.c (_initialize_arm_tdep): Likewise.
5866 * disasm-selftests.c (_initialize_disasm_selftests): Likewise.
5867 * dwarf2-frame.c (_initialize_dwarf2_frame): Likewise.
5868 * dwarf2loc.c (_initialize_dwarf2loc): Likewise.
5869 * findvar.c (_initialize_findvar): Likewise.
5870 * gdbarch-selftests.c (_initialize_gdbarch_selftests): Likewise.
5871 * maint.c (maintenance_selftest): Update call to run_tests.
5872 (maintenance_info_selftests): New function.
5873 (_initialize_maint_cmds): Register "maintenance info selftests"
5874 command. Update "maintenance selftest" doc.
5875 * regcache.c (_initialize_regcache): Add names when registering
5876 selftests.
5877 * rust-exp.y (_initialize_rust_exp): Likewise.
5878 * selftest-arch.c (gdbarch_selftest): New struct.
5879 (gdbarch_tests): Remove.
5880 (register_test_foreach_arch): Add name parameter. Call
5881 register_test.
5882 (tests_with_arch): Remove, move most content to
5883 gdbarch_selftest::operator().
5884 (_initialize_selftests_foreach_arch): Remove.
5885 * selftest-arch.h (register_test_foreach_arch): Add name
5886 parameter.
5887 (run_tests_with_arch): New declaration.
5888 * utils-selftests.c (_initialize_utils_selftests): Add names
5889 when registering selftests.
5890 * utils.c (_initialize_utils): Likewise.
5891 * unittests/array-view-selftests.c
5892 (_initialize_array_view_selftests): Likewise.
5893 * unittests/environ-selftests.c (_initialize_environ_selftests):
5894 Likewise.
5895 * unittests/function-view-selftests.c
5896 (_initialize_function_view_selftests): Likewise.
5897 * unittests/offset-type-selftests.c
5898 (_initialize_offset_type_selftests): Likewise.
5899 * unittests/optional-selftests.c
5900 (_initialize_optional_selftests): Likewise.
5901 * unittests/scoped_restore-selftests.c
5902 (_initialize_scoped_restore_selftests): Likewise.
5903 * NEWS: Document "maintenance selftest" and "maint info
5904 selftests".
5905
5846367a
SM
59062017-09-16 Simon Marchi <simon.marchi@ericsson.com>
5907
5908 * mi/mi-main.c (mi_load_progress): Restore current_uiout using a
5909 scoped_restore.
5910
bd77e8ff
SM
59112017-09-16 Simon Marchi <simon.marchi@ericsson.com>
5912
5913 * mi/mi-main.c (mi_load_progress): Make uiout variable
5914 a unique_ptr.
5915
26a67918
PA
59162017-09-15 Pedro Alves <palves@redhat.com>
5917
5918 * compile/compile-c-types.c (convert_enum, convert_int)
5919 (convert_float): Adjust to refer to int_type_v0 and float_type_v0.
5920
3f8a7804
SM
59212017-09-15 Simon Marchi <simon.marchi@ericsson.com>
5922
5923 * dwarf2read.c (copy_string): Remove.
5924 (parse_macro_definition): Replace copy_string with savestring.
5925
8d200706
YQ
59262017-09-15 Yao Qi <yao.qi@linaro.org>
5927
5928 * configure.tgt (i[34567]86-*-darwin*): Append amd64.o to
5929 gdb_target_obs.
5930 (i[34567]86-*-solaris2.1[0-9]* | x86_64-*-solaris2.1[0-9]*):
5931 Likewise.
5932 (i[34567]86-*-linux*): Likewise.
5933
d185219d
SM
59342017-09-14 Simon Marchi <simon.marchi@ericsson.com>
5935
5936 * dwarf2expr.h (dwarf_stack_value): Add constructor.
5937 (dwarf_expr_context) <~dwarf_expr_context>: Define as default.
5938 <stack>: Change type to std::vector.
5939 <stack_len, stack_allocated>: Remove.
5940 <grow_stack>: Remove.
5941 * dwarf2expr.c (dwarf_expr_context::dwarf_expr_context): Adjust.
5942 (dwarf_expr_context::~dwarf_expr_context): Remove.
5943 (dwarf_expr_context::grow_stack): Remove.
5944 (dwarf_expr_context::push): Adjust.
5945 (dwarf_expr_context::pop): Adjust.
5946 (dwarf_expr_context::fetch): Adjust.
5947 (dwarf_expr_context::fetch_in_stack_memory): Adjust.
5948 (dwarf_expr_context::stack_empty_p): Adjust.
5949 (dwarf_expr_context::execute_stack_op): Adjust.
5950
eccd80d6
SM
59512017-09-14 Simon Marchi <simon.marchi@ericsson.com>
5952
5953 * dwarf2expr.h (dwarf_expr_context) <stack_empty_p>: Change
5954 return type to bool.
5955 * dwarf2expr.c (dwarf_expr_context::stack_empty_p): Likewise.
5956
69009882
SM
59572017-09-14 Simon Marchi <simon.marchi@ericsson.com>
5958
5959 * dwarf2expr.h (dwarf_expr_piece) <v.mem.in_stack_memory>:
5960 Change type to bool.
5961 (dwarf_stack_value) <in_stack_memory>: Likewise.
5962 (dwarf_expr_context) <push_address>: Change parameter type to
5963 bool.
5964 <fetch_in_stack_memory>: Change return type to bool.
5965 <push>: Change parameter type to bool.
5966 * dwarf2expr.c (dwarf_expr_context::push): Change parameter type
5967 to bool.
5968 (dwarf_expr_context::push_address): Likewise.
5969 (dwarf_expr_context::fetch_in_stack_memory): Change return type
5970 to bool.
5971 (dwarf_expr_context::execute_stack_op): Adjust.
5972 * dwarf2loc.c (dwarf2_evaluate_loc_desc_full): Adjust.
5973
1e467161
SM
59742017-09-14 Simon Marchi <simon.marchi@ericsson.com>
5975
5976 * dwarf2expr.h (struct dwarf_expr_piece): Move up.
5977 (struct dwarf_expr_context) <n_pieces>: Remove.
5978 <pieces>: Change type to std::vector.
5979 * dwarf2expr.c (dwarf_expr_context::dwarf_expr_context): Adjust.
5980 (dwarf_expr_context::~dwarf_expr_context): Don't manually free
5981 pieces.
5982 (dwarf_expr_context::add_piece): Adjust.
5983 * dwarf2loc.c (struct piece_closure): Initialize fields.
5984 <n_pieces>: Remove.
5985 <pieces>: Change type to std::vector.
5986 (allocate_piece_closure): Adjust, change parameter to
5987 std::vector rvalue and std::move it to piece_closure.
5988 (rw_pieced_value): Adjust.
5989 (check_pieced_synthetic_pointer): Adjust.
5990 (indirect_synthetic_pointer): Adjust.
5991 (coerce_pieced_ref): Adjust.
5992 (free_pieced_value_closure): Adjust. Use delete to free
5993 piece_closure.
5994 (dwarf2_evaluate_loc_desc_full): Adjust. std::move ctx.pieces
5995 to allocate_piece_closure.
5996 (dwarf2_loc_desc_get_symbol_read_needs): Adjust.
5997
0782db84
SM
59982017-09-12 Simon Marchi <simon.marchi@ericsson.com>
5999
6000 * probe.h (probe_ops_cp): Remove typedef.
6001 (DEF_VEC_P (probe_ops_cp)): Remove.
6002 (all_probe_ops): Change type to std::vector.
6003 * probe.c (info_probes_for_ops): Adjust to vector change.
6004 (probe_linespec_to_ops): Likewise.
6005 (all_probe_ops): Change type to std::vector.
6006 (_initialize_probe): Adjust to vector change.
6007 * dtrace-probe.c (_initialize_dtrace_probe): Likewise.
6008 * elfread.c (elf_get_probes): Likewise.
6009 * stap-probe.c (_initialize_stap_probe): Likewise.
6010
1eac6bea
SM
60112017-09-12 Simon Marchi <simon.marchi@ericsson.com>
6012
6013 * probe.h (struct bound_probe): Define constructors.
6014 * probe.c (bound_probe_s): Remove typedef.
6015 (DEF_VEC_O (bound_probe_s)): Remove VEC.
6016 (collect_probes): Change return type to std::vector, remove
6017 cleanup.
6018 (compare_probes): Return bool, change parameter type. Change
6019 semantic to "less than".
6020 (gen_ui_out_table_header_info): Change parameter to std::vector
6021 and update.
6022 (exists_probe_with_pops): Likewise.
6023 (info_probes_for_ops): Update to std::vector change.
6024 (enable_probes_command): Likewise.
6025 (disable_probes_command): Likewise.
6026
aaa63a31
SM
60272017-09-12 Simon Marchi <simon.marchi@ericsson.com>
6028
6029 * probe.h (struct probe_ops) <get_probes>: Change parameter from
6030 vec to std::vector.
6031 * probe.c (parse_probes_in_pspace): Update.
6032 (find_probes_in_objfile): Update.
6033 (find_probe_by_pc): Update.
6034 (collect_probes): Update.
6035 (probe_any_get_probes): Update.
6036 * symfile.h (struct sym_probe_fns) <sym_get_probes> Change
6037 return type to reference to std::vector.
6038 * dtrace-probe.c (dtrace_process_dof_probe): Change parameter to
6039 std::vector and update.
6040 (dtrace_process_dof): Likewise.
6041 (dtrace_get_probes): Likewise.
6042 * elfread.c (elf_get_probes): Change return type to std::vector,
6043 store an std::vector in bfd_data.
6044 (probe_key_free): Update to std::vector.
6045 * stap-probe.c (handle_stap_probe): Change parameter to
6046 std::vector and update.
6047 (stap_get_probes): Likewise.
6048 * symfile-debug.c (debug_sym_get_probes): Change return type to
6049 std::vector and update.
6050
cb85b21b
TT
60512017-09-11 Tom Tromey <tom@tromey.com>
6052
6053 * breakpoint.c (program_breakpoint_here_p): Update.
6054 * target.c (make_scoped_restore_show_memory_breakpoints): Rename
6055 from make_show_memory_breakpoints_cleanup. Return a
6056 scoped_restore_tmpl<int>.
6057 (restore_show_memory_breakpoints): Remove.
6058 * ppc-linux-tdep.c (ppc_linux_memory_remove_breakpoint): Update.
6059 * mem-break.c (memory_validate_breakpoint): Update.
6060 * ia64-tdep.c (ia64_memory_insert_breakpoint): Update.
6061 (ia64_memory_remove_breakpoint): Update.
6062 (ia64_breakpoint_from_pc): Update.
6063 * target.h (make_scoped_restore_show_memory_breakpoints): Rename
6064 from make_show_memory_breakpoints_cleanup.
6065
8fbc99ef
TT
60662017-09-11 Tom Tromey <tom@tromey.com>
6067
6068 * d-namespace.c (d_lookup_symbol): Use std::string.
6069 (find_symbol_in_baseclass): Likewise.
6070
50feb4bd
TT
60712017-09-11 Tom Tromey <tom@tromey.com>
6072
6073 * ctf.c (ctf_start): Use std::string.
6074
c6dc63a1
TT
60752017-09-11 Tom Tromey <tom@tromey.com>
6076
6077 * ada-lang.c (is_known_support_routine): Update.
6078 (ada_unhandled_exception_name_addr_from_raise): Update.
6079 * guile/scm-frame.c (gdbscm_frame_name): Update.
6080 * python/py-frame.c (frapy_name): Update.
6081 (frapy_function): Update.
6082 * stack.h (find_frame_funname): Update.
6083 * stack.c (find_frame_funname): Return unique_xmalloc_ptr.
6084 (print_frame): Update.
6085
d6b9b80f
TT
60862017-09-11 Tom Tromey <tom@tromey.com>
6087
6088 * findcmd.c (put_bits): Take a gdb::byte_vector.
6089 (parse_find_args): Return gdb::byte_vector. "args" now const.
6090 Remove "pattern_bufp" and "pattern_lenp" parameters. Remove
6091 cleanups.
6092 (find_command): Update.
6093
a9921622
TT
60942017-09-11 Tom Tromey <tom@tromey.com>
6095
6096 * cli/cli-script.c (class scoped_restore_hook_in): New.
6097 (clear_hook_in_cleanup): Remove.
6098 (execute_cmd_pre_hook, execute_cmd_post_hook): Use
6099 scoped_restore_hook_in.
6100
be0d7abb
TT
61012017-09-11 Tom Tromey <tom@tromey.com>
6102
6103 * cli/cli-script.c (restore_interp): Remove.
6104 (read_command_lines): Use scoped_restore_interp.
6105 * interps.c (scoped_restore_interp::set_temp): Rename from
6106 interp_set_temp.
6107 * interps.h (class scoped_restore_interp): New.
6108 (interp_set_temp): Remove.
6109
00f675ff
TT
61102017-09-11 Tom Tromey <tom@tromey.com>
6111
6112 * mi/mi-cmd-catch.c (mi_cmd_catch_assert)
6113 (mi_cmd_catch_exception, mi_catch_load_unload): Update.
6114 * mi/mi-cmd-break.c (setup_breakpoint_reporting): Return a
6115 scoped_restore.
6116 (mi_cmd_break_insert_1): Update.
6117 * mi/mi-cmd-break.h (setup_breakpoint_reporting): Return a
6118 scoped_restore.
6119
cb791d59
TT
61202017-09-11 Tom Tromey <tom@tromey.com>
6121
6122 * demangle.c (demangle_command): Update.
6123 * breakpoint.c (disable_command): Update.
6124 (enable_command): Update.
6125 (find_location_by_number): Make "number" const. Use
6126 get_number_trailer.
6127 * cli/cli-utils.c (extract_arg): Return std::string.
6128 * probe.c (parse_probe_linespec): Update. Change types.
6129 (collect_probes): Take string arguments.
6130 (parse_probe_linespec): Likewise.
6131 (info_probes_for_ops): Update.
6132 (enable_probes_command): Update.
6133 (disable_probes_command): Update.
6134 * break-catch-sig.c (catch_signal_split_args): Update.
6135 * mi/mi-parse.c (mi_parse): Update.
6136
2039bd9f
TT
61372017-09-11 Tom Tromey <tom@tromey.com>
6138
6139 * language.h (language_enum): Make argument const.
6140 * language.c (language_enum): Make argument const.
6141
f1735a53
TT
61422017-09-11 Tom Tromey <tom@tromey.com>
6143
6144 * common/common-utils.h (skip_to_space): Remove macro, redeclare
6145 as function.
6146 (skip_to_space): Rename from skip_to_space_const.
6147 * common/common-utils.c (skip_to_space): New function.
6148 (skip_to_space): Rename from skip_to_space_const.
6149 * cli/cli-utils.h (get_number): Rename from get_number_const.
6150 (extract_arg): Rename from extract_arg_const.
6151 * cli/cli-utils.c (get_number): Rename from get_number_const.
6152 (extract_arg): Rename from extract_arg_const.
6153 (number_or_range_parser::get_number): Use ::get_number.
6154 * aarch64-linux-tdep.c, ada-lang.c, arm-linux-tdep.c, ax-gdb.c,
6155 break-catch-throw.c, breakpoint.c, cli/cli-cmds.c, cli/cli-dump.c,
6156 cli/cli-script.c, cli/cli-setshow.c, compile/compile.c,
6157 completer.c, demangle.c, disasm.c, findcmd.c, linespec.c,
6158 linux-tdep.c, linux-thread-db.c, location.c, mi/mi-parse.c,
6159 minsyms.c, nat/linux-procfs.c, printcmd.c, probe.c,
6160 python/py-breakpoint.c, record.c, rust-exp.y, serial.c, stack.c,
6161 stap-probe.c, tid-parse.c, tracepoint.c: Update all callers.
6162
7d221d74
TT
61632017-09-11 Tom Tromey <tom@tromey.com>
6164
6165 * python/python.c (do_start_initialization): Use
6166 py-event-types.def to initialize types.
6167 Define all object type structures.
6168 * python/python-internal.h: Don't declare event initialization
6169 functions.
6170 * python/py-threadevent.c (thread_event_object_type): Don't
6171 define.
6172 * python/py-stopevent.c (stop_event_object_type): Don't define.
6173 * python/py-signalevent.c (signal_event_object_type): Don't
6174 declare or define.
6175 * python/py-newobjfileevent.c (new_objfile_event_object_type)
6176 (clear_objfiles_event_object_type): Don't declare or define.
6177 * python/py-infevents.c (inferior_call_pre_event_object_type)
6178 (inferior_call_post_event_object_type)
6179 (register_changed_event_object_type)
6180 (memory_changed_event_object_type): Don't declare or define.
6181 * python/py-inferior.c (new_thread_event_object_type)
6182 (new_inferior_event_object_type)
6183 (inferior_deleted_event_object_type): Don't declare or define.
6184 * python/py-exitedevent.c (exited_event_object_type): Don't
6185 declare or define.
6186 * python/py-evts.c (gdbpy_initialize_py_events): Use
6187 py-all-events.def.
6188 * python/py-events.h (thread_event_object_type): Don't declare.
6189 (events_object): Use py-all-events.def.
6190 * python/py-event.h (GDBPY_NEW_EVENT_TYPE): Remove. Use
6191 py-event-types.def.
6192 * python/py-event-types.def: New file.
6193 * python/py-continueevent.c (create_continue_event_object): Don't
6194 declare or define.
6195 * python/py-bpevent.c (breakpoint_event_object_type): Don't
6196 declare or define.
6197 * python/py-all-events.def: New file.
6198
35c61a1d
TT
61992017-09-11 Tom Tromey <tom@tromey.com>
6200
6201 * python/py-threadevent.c (create_thread_event_object): Return
6202 gdbpy_ref.
6203 * python/py-stopevent.h (create_stop_event_object)
6204 (create_breakpoint_event_object, create_signal_event_object):
6205 Update.
6206 * python/py-stopevent.c (create_stop_event_object): Return
6207 gdbpy_ref.
6208 (emit_stop_event): Update.
6209 * python/py-signalevent.c (create_signal_event_object): Return
6210 gdbpy_ref.
6211 * python/py-infevents.c (create_inferior_call_event_object):
6212 Update.
6213 * python/py-event.h (create_event_object)
6214 (create_thread_event_object): Update.
6215 * python/py-event.c (create_event_object): Return gdbpy_ref.
6216 * python/py-continueevent.c: Return gdbpy_ref.
6217 * python/py-bpevent.c (create_breakpoint_event_object): Return
6218 gdbpy_ref.
6219
7c96f8c1
TT
62202017-09-11 Tom Tromey <tom@tromey.com>
6221
6222 PR python/15622:
6223 * NEWS: Add entry.
6224 * python/python.c (do_start_initialization): Initialize new event
6225 types.
6226 * python/python-internal.h (gdbpy_initialize_new_inferior_event)
6227 (gdbpy_initialize_inferior_deleted_event)
6228 (gdbpy_initialize_new_thread_event): Declare.
6229 * python/py-threadevent.c (create_thread_event_object): Add option
6230 "thread" parameter.
6231 * python/py-inferior.c (new_thread_event_object_type)
6232 (new_inferior_event_object_type)
6233 (inferior_deleted_event_object_type): Declare.
6234 (python_new_inferior, python_inferior_deleted): New functions.
6235 (add_thread_object): Emit new_thread event.
6236 (gdbpy_initialize_inferior): Attach new functions to corresponding
6237 observers.
6238 (new_thread, new_inferior, inferior_deleted): Define new event
6239 types.
6240 * python/py-evts.c (gdbpy_initialize_py_events): Add new
6241 registries.
6242 * python/py-events.h (events_object) <new_inferior,
6243 inferior_deleted, new_thread>: New fields.
6244 * python/py-event.h (create_thread_event_breakpoint): Add optional
6245 "thread" parameter.
6246
72542b8e
AB
62472017-09-10 Andrew Burgess <andrew.burgess@embecosm.com>
6248
6249 * utils.c (abort_with_message): Don't compare gdb_stderr to NULL,
6250 check current_ui instead.
6251 (internal_vproblem): Likewise.
6252
0d64823e
SM
62532017-09-09 Simon Marchi <simon.marchi@ericsson.com>
6254
6255 * thread.c (print_thread_info_1): Remove unnecessary calls to
6256 uiout->is_mi_like_p.
6257
eb1e02fd
TT
62582017-09-09 Tom Tromey <tom@tromey.com>
6259
6260 * namespace.h (add_using_directive): Update.
6261 * namespace.c (add_using_directive): Change type of excludes to
6262 std::vector.
6263 * dwarf2read.c (read_import_statement): Use std::vector.
6264 (read_namespace): Update.
6265 * cp-namespace.c (cp_scan_for_anonymous_namespaces): Update.
6266
0fc21fd8
TT
62672017-09-09 Tom Tromey <tom@tromey.com>
6268
6269 * linespec.c (create_sals_line_offset): Use gdb::def_vector.
6270
49663d05
TT
62712017-09-09 Tom Tromey <tom@tromey.com>
6272
6273 * p-valprint.c (pascal_object_print_value): Use gdb::byte_vector.
6274
0b868b60
TT
62752017-09-09 Tom Tromey <tom@tromey.com>
6276
6277 * stack.c (func_command): Use gdb::def_vector.
6278
c0470d48
TT
62792017-09-09 Tom Tromey <tom@tromey.com>
6280
6281 * mi/mi-cmd-var.c (mi_cmd_var_list_children): Use gdb::optional,
6282 ui_out_emit_list, ui_out_emit_tuple.
6283 (mi_cmd_var_update): Likewise.
6284
ca5909c7
TT
62852017-09-09 Tom Tromey <tom@tromey.com>
6286
6287 * mi/mi-interp.c (mi_user_selected_context_changed): Use
6288 ui_out_redirect_pop.
6289 * guile/scm-ports.c (ioscm_with_output_to_port_worker): Use
6290 ui_out_redirect_pop.
6291 * utils.c (do_ui_out_redirect_pop)
6292 (make_cleanup_ui_out_redirect_pop): Remove.
6293 * top.c (execute_command_to_string): Use ui_out_redirect_pop.
6294 * utils.h (make_cleanup_ui_out_redirect_pop): Remove.
6295 * ui-out.h (ui_out_redirect_pop): New class.
6296
e6a2252a
TT
62972017-09-09 Tom Tromey <tom@tromey.com>
6298
6299 * mi/mi-main.c (output_cores): Use ui_out_emit_list.
6300 (list_available_thread_groups, mi_cmd_list_thread_groups)
6301 (mi_cmd_data_list_changed_registers, mi_cmd_data_read_memory)
6302 (mi_cmd_data_read_memory_bytes, mi_cmd_trace_frame_collected):
6303 Likewise.
6304
393702cd
TT
63052017-09-09 Tom Tromey <tom@tromey.com>
6306
6307 * disasm.c (gdb_pretty_print_disassembler::pretty_print_insn): Use
6308 ui_out_emit_tuple.
6309
76f9c9cf
TT
63102017-09-09 Tom Tromey <tom@tromey.com>
6311
6312 * target.c (flash_erase_command): Use ui_out_emit_tuple.
6313 * stack.c (print_frame): Use ui_out_emit_tuple.
6314 * spu-tdep.c (info_spu_event_command): Use ui_out_emit_tuple.
6315 (info_spu_mailbox_command, info_spu_dma_command)
6316 (info_spu_proxydma_command): Likewise.
6317 * mi/mi-main.c (mi_cmd_trace_frame_collected): Use
6318 ui_out_emit_tuple, gdb::byte_vector, bin2hex.
6319 * mi/mi-cmd-file.c (mi_cmd_file_list_shared_libraries): Use
6320 ui_out_emit_tuple.
6321 * breakpoint.c (print_it_watchpoint): Use ui_out_emit_tuple.
6322
dc9fe180
TT
63232017-09-09 Tom Tromey <tom@tromey.com>
6324
6325 * ui-out.h (make_cleanup_ui_out_table_begin_end): Remove.
6326 (class ui_out_emit_table): Update comment.
6327 * ui-out.c (do_cleanup_table_end)
6328 (make_cleanup_ui_out_table_begin_end): Remove.
6329 * spu-tdep.c (info_spu_mailbox_list): Use ui_out_emit_table.
6330 (info_spu_dma_cmdlist): Likewise.
6331 * probe.c (info_probes_for_ops): Use ui_out_emit_table.
6332 * darwin-nat-info.c (darwin_debug_regions_recurse): Use
6333 ui_out_emit_table.
6334
f8cc3da6
TT
63352017-09-09 Tom Tromey <tom@tromey.com>
6336
6337 * thread.c (print_thread_info_1): Use ui_out_emit_table,
6338 ui_out_emit_list, gdb::optional.
6339
481695ed
JB
63402017-09-09 John Baldwin <jhb@FreeBSD.org>
6341
6342 * aarch64-linux-nat.c: Remove _initialize_aarch64_linux_nat
6343 prototype.
6344 * aarch64-linux-tdep.c: Remove _initialize_aarch64_linux_tdep
6345 prototype.
6346 * aarch64-newlib-tdep.c: Remove _initialize_aarch64_newlib_tdep
6347 prototype.
6348 * aarch64-tdep.c: Remove _initialize_aarch64_tdep prototype.
6349 * ada-exp.y: Remove _initialize_ada_exp prototype.
6350 * ada-lang.c: Remove _initialize_ada_language prototype.
6351 * ada-tasks.c: Remove _initialize_tasks prototype.
6352 * addrmap.c: Remove _initialize_addrmap prototype.
6353 * agent.c: Remove _initialize_agent prototype.
6354 * aix-thread.c: Remove _initialize_aix_thread prototype.
6355 * alpha-bsd-nat.c: Remove _initialize_alphabsd_nat prototype.
6356 * alpha-linux-nat.c: Remove _initialize_alpha_linux_nat prototype.
6357 * alpha-linux-tdep.c: Remove _initialize_alpha_linux_tdep
6358 prototype.
6359 * alpha-nbsd-tdep.c: Remove _initialize_alphanbsd_tdep prototype.
6360 * alpha-obsd-tdep.c: Remove _initialize_alphaobsd_tdep prototype.
6361 * alpha-tdep.c: Remove _initialize_alpha_tdep prototype.
6362 * amd64-darwin-tdep.c: Remove _initialize_amd64_darwin_tdep
6363 prototype.
6364 * amd64-dicos-tdep.c: Remove _initialize_amd64_dicos_tdep
6365 prototype.
6366 * amd64-fbsd-nat.c: Remove _initialize_amd64fbsd_nat prototype.
6367 * amd64-fbsd-tdep.c: Remove _initialize_amd64fbsd_tdep prototype.
6368 * amd64-linux-nat.c: Remove _initialize_amd64_linux_nat prototype.
6369 * amd64-linux-tdep.c: Remove _initialize_amd64_linux_tdep
6370 prototype.
6371 * amd64-nbsd-nat.c: Remove _initialize_amd64nbsd_nat prototype.
6372 * amd64-nbsd-tdep.c: Remove _initialize_amd64nbsd_tdep prototype.
6373 * amd64-obsd-nat.c: Remove _initialize_amd64obsd_nat prototype.
6374 * amd64-obsd-tdep.c: Remove _initialize_amd64obsd_tdep prototype.
6375 * amd64-sol2-tdep.c: Remove _initialize_amd64_sol2_tdep prototype.
6376 * amd64-tdep.c: Remove _initialize_amd64_tdep prototype.
6377 * amd64-windows-nat.c: Remove _initialize_amd64_windows_nat
6378 prototype.
6379 * amd64-windows-tdep.c: Remove _initialize_amd64_windows_tdep
6380 prototype.
6381 * annotate.c: Remove _initialize_annotate prototype.
6382 * arc-newlib-tdep.c: Remove _initialize_arc_newlib_tdep prototype.
6383 * arc-tdep.c: Remove _initialize_arc_tdep prototype.
6384 * arch-utils.c: Remove _initialize_gdbarch_utils prototype.
6385 * arm-linux-nat.c: Remove _initialize_arm_linux_nat prototype.
6386 * arm-linux-tdep.c: Remove _initialize_arm_linux_tdep prototype.
6387 * arm-nbsd-tdep.c: Remove _initialize_arm_netbsd_tdep prototype.
6388 * arm-obsd-tdep.c: Remove _initialize_armobsd_tdep prototype.
6389 * arm-symbian-tdep.c: Remove _initialize_arm_symbian_tdep
6390 prototype.
6391 * arm-tdep.c: Remove _initialize_arm_tdep prototype.
6392 * arm-wince-tdep.c: Remove _initialize_arm_wince_tdep prototype.
6393 * auto-load.c: Remove _initialize_auto_load prototype.
6394 * auxv.c: Remove _initialize_auxv prototype.
6395 * avr-tdep.c: Remove _initialize_avr_tdep prototype.
6396 * ax-gdb.c: Remove _initialize_ax_gdb prototype.
6397 * bfin-linux-tdep.c: Remove _initialize_bfin_linux_tdep prototype.
6398 * bfin-tdep.c: Remove _initialize_bfin_tdep prototype.
6399 * break-catch-sig.c: Remove _initialize_break_catch_sig prototype.
6400 * break-catch-syscall.c: Remove _initialize_break_catch_syscall
6401 prototype.
6402 * break-catch-throw.c: Remove _initialize_break_catch_throw
6403 prototype.
6404 * breakpoint.c: Remove _initialize_breakpoint prototype.
6405 * bsd-uthread.c: Remove _initialize_bsd_uthread prototype.
6406 * btrace.c: Remove _initialize_btrace prototype.
6407 * charset.c: Remove _initialize_charset prototype.
6408 * cli/cli-cmds.c: Remove _initialize_cli_cmds prototype.
6409 * cli/cli-dump.c: Remove _initialize_cli_dump prototype.
6410 * cli/cli-interp.c: Remove _initialize_cli_interp prototype.
6411 * cli/cli-logging.c: Remove _initialize_cli_logging prototype.
6412 * cli/cli-script.c: Remove _initialize_cli_script prototype.
6413 * coff-pe-read.c: Remove _initialize_coff_pe_read prototype.
6414 * coffread.c: Remove _initialize_coffread prototype.
6415 * compile/compile.c: Remove _initialize_compile prototype.
6416 * complaints.c: Remove _initialize_complaints prototype.
6417 * completer.c: Remove _initialize_completer prototype.
6418 * copying.awk: Remove _initialize_copying prototype.
6419 * copying.c: Regenerate.
6420 * core-regset.c: Remove _initialize_core_regset prototype.
6421 * corefile.c: Remove _initialize_core prototype.
6422 * corelow.c: Remove _initialize_corelow prototype.
6423 * cp-abi.c: Remove _initialize_cp_abi prototype.
6424 * cp-namespace.c: Remove _initialize_cp_namespace prototype.
6425 * cp-support.c: Remove _initialize_cp_support prototype.
6426 * cp-valprint.c: Remove _initialize_cp_valprint prototype.
6427 * cris-linux-tdep.c: Remove _initialize_cris_linux_tdep prototype.
6428 * cris-tdep.c: Remove _initialize_cris_tdep prototype.
6429 * ctf.c: Remove _initialize_ctf prototype.
6430 * d-lang.c: Remove _initialize_d_language prototype.
6431 * darwin-nat-info.c: Remove _initialize_darwin_info_commands
6432 prototype.
6433 * darwin-nat.c: Remove _initialize_darwin_inferior prototype.
6434 * dbxread.c: Remove _initialize_dbxread prototype.
6435 * dcache.c: Remove _initialize_dcache prototype.
6436 * demangle.c: Remove _initialize_demangler prototype.
6437 * disasm-selftests.c: Remove _initialize_disasm_selftests
6438 prototype.
6439 * disasm.c: Remove _initialize_disasm prototype.
6440 * dtrace-probe.c: Remove _initialize_dtrace_probe prototype.
6441 * dummy-frame.c: Remove _initialize_dummy_frame prototype.
6442 * dwarf2-frame-tailcall.c: Remove _initialize_tailcall_frame
6443 prototype.
6444 * dwarf2-frame.c: Remove _initialize_dwarf2_frame prototype.
6445 * dwarf2expr.c: Remove _initialize_dwarf2expr prototype.
6446 * dwarf2loc.c: Remove _initialize_dwarf2loc prototype.
6447 * dwarf2read.c: Remove _initialize_dwarf2_read prototype.
6448 * elfread.c: Remove _initialize_elfread prototype.
6449 * exec.c: Remove _initialize_exec prototype.
6450 * extension.c: Remove _initialize_extension prototype.
6451 * f-lang.c: Remove _initialize_f_language prototype.
6452 * f-valprint.c: Remove _initialize_f_valprint prototype.
6453 * fbsd-nat.c: Remove _initialize_fbsd_nat prototype.
6454 * fbsd-tdep.c: Remove _initialize_fbsd_tdep prototype.
6455 * filesystem.c: Remove _initialize_filesystem prototype.
6456 * findcmd.c: Remove _initialize_mem_search prototype.
6457 * fork-child.c: Remove _initialize_fork_child prototype.
6458 * frame-base.c: Remove _initialize_frame_base prototype.
6459 * frame-unwind.c: Remove _initialize_frame_unwind prototype.
6460 * frame.c: Remove _initialize_frame prototype.
6461 * frv-linux-tdep.c: Remove _initialize_frv_linux_tdep prototype.
6462 * frv-tdep.c: Remove _initialize_frv_tdep prototype.
6463 * ft32-tdep.c: Remove _initialize_ft32_tdep prototype.
6464 * gcore.c: Remove _initialize_gcore prototype.
6465 * gdb_bfd.c: Remove _initialize_gdb_bfd prototype.
6466 * gdbarch.c: Regenerate.
6467 * gdbarch.sh: Remove _initialize_gdbarch prototype.
6468 * gdbtypes.c: Remove _initialize_gdbtypes prototype.
6469 * gnu-nat.c: Remove _initialize_gnu_nat prototype.
6470 * gnu-v2-abi.c: Remove _initialize_gnu_v2_abi prototype.
6471 * gnu-v3-abi.c: Remove _initialize_gnu_v3_abi prototype.
6472 * go-lang.c: Remove _initialize_go_language prototype.
6473 * go32-nat.c: Remove _initialize_go32_nat prototype.
6474 * guile/guile.c: Remove _initialize_guile prototype.
6475 * h8300-tdep.c: Remove _initialize_h8300_tdep prototype.
6476 * hppa-linux-nat.c: Remove _initialize_hppa_linux_nat prototype.
6477 * hppa-linux-tdep.c: Remove _initialize_hppa_linux_tdep prototype.
6478 * hppa-nbsd-nat.c: Remove _initialize_hppanbsd_nat prototype.
6479 * hppa-nbsd-tdep.c: Remove _initialize_hppanbsd_tdep prototype.
6480 * hppa-obsd-nat.c: Remove _initialize_hppaobsd_nat prototype.
6481 * hppa-obsd-tdep.c: Remove _initialize_hppaobsd_tdep prototype.
6482 * hppa-tdep.c: Remove _initialize_hppa_tdep prototype.
6483 * i386-bsd-nat.c: Remove _initialize_i386bsd_nat prototype.
6484 * i386-cygwin-tdep.c: Remove _initialize_i386_cygwin_tdep
6485 prototype.
6486 * i386-darwin-tdep.c: Remove _initialize_i386_darwin_tdep
6487 prototype.
6488 * i386-dicos-tdep.c: Remove _initialize_i386_dicos_tdep prototype.
6489 * i386-fbsd-nat.c: Remove _initialize_i386fbsd_nat prototype.
6490 * i386-fbsd-tdep.c: Remove _initialize_i386fbsd_tdep prototype.
6491 * i386-gnu-nat.c: Remove _initialize_i386gnu_nat prototype.
6492 * i386-gnu-tdep.c: Remove _initialize_i386gnu_tdep prototype.
6493 * i386-linux-nat.c: Remove _initialize_i386_linux_nat prototype.
6494 * i386-linux-tdep.c: Remove _initialize_i386_linux_tdep prototype.
6495 * i386-nbsd-nat.c: Remove _initialize_i386nbsd_nat prototype.
6496 * i386-nbsd-tdep.c: Remove _initialize_i386nbsd_tdep prototype.
6497 * i386-nto-tdep.c: Remove _initialize_i386nto_tdep prototype.
6498 * i386-obsd-nat.c: Remove _initialize_i386obsd_nat prototype.
6499 * i386-obsd-tdep.c: Remove _initialize_i386obsd_tdep prototype.
6500 * i386-sol2-nat.c: Remove _initialize_amd64_sol2_nat prototype.
6501 * i386-sol2-tdep.c: Remove _initialize_amd64_sol2_tdep prototype.
6502 * i386-tdep.c: Remove _initialize_i386_tdep prototype.
6503 * i386-windows-nat.c: Remove _initialize_i386_windows_nat
6504 prototype.
6505 * ia64-libunwind-tdep.c: Remove _initialize_libunwind_frame
6506 prototype.
6507 * ia64-linux-nat.c: Remove _initialize_ia64_linux_nat prototype.
6508 * ia64-linux-tdep.c: Remove _initialize_ia64_linux_tdep prototype.
6509 * ia64-tdep.c: Remove _initialize_ia64_tdep prototype.
6510 * ia64-vms-tdep.c: Remove _initialize_ia64_vms_tdep prototype.
6511 * infcall.c: Remove _initialize_infcall prototype.
6512 * infcmd.c: Remove _initialize_infcmd prototype.
6513 * inferior.c: Remove _initialize_inferiors prototype.
6514 * inflow.c: Remove _initialize_inflow prototype.
6515 * infrun.c: Remove _initialize_infrun prototype.
6516 * interps.c: Remove _initialize_interpreter prototype.
6517 * iq2000-tdep.c: Remove _initialize_iq2000_tdep prototype.
6518 * jit.c: Remove _initialize_jit prototype.
6519 * language.c: Remove _initialize_language prototype.
6520 * linux-fork.c: Remove _initialize_linux_fork prototype.
6521 * linux-nat.c: Remove _initialize_linux_nat prototype.
6522 * linux-tdep.c: Remove _initialize_linux_tdep prototype.
6523 * linux-thread-db.c: Remove _initialize_thread_db prototype.
6524 * lm32-tdep.c: Remove _initialize_lm32_tdep prototype.
6525 * m2-lang.c: Remove _initialize_m2_language prototype.
6526 * m32c-tdep.c: Remove _initialize_m32c_tdep prototype.
6527 * m32r-linux-nat.c: Remove _initialize_m32r_linux_nat prototype.
6528 * m32r-linux-tdep.c: Remove _initialize_m32r_linux_tdep prototype.
6529 * m32r-tdep.c: Remove _initialize_m32r_tdep prototype.
6530 * m68hc11-tdep.c: Remove _initialize_m68hc11_tdep prototype.
6531 * m68k-bsd-nat.c: Remove _initialize_m68kbsd_nat prototype.
6532 * m68k-bsd-tdep.c: Remove _initialize_m68kbsd_tdep prototype.
6533 * m68k-linux-nat.c: Remove _initialize_m68k_linux_tdep prototype.
6534 * m68k-linux-tdep.c: Remove _initialize_m68k_linux_tdep prototype.
6535 * m68k-tdep.c: Remove _initialize_m68k_tdep prototype.
6536 * m88k-bsd-nat.c: Remove _initialize_m68kbsd_nat prototype.
6537 * m88k-tdep.c: Remove _initialize_m68kbsd_tdep prototype.
6538 * machoread.c: Remove _initialize_machoread prototype.
6539 * macrocmd.c: Remove _initialize_macrocmd prototype.
6540 * macroscope.c: Remove _initialize_macroscope prototype.
6541 * maint.c: Remove _initialize_maint_cmds prototype.
6542 * mdebugread.c: Remove _initialize_mdebugread prototype.
6543 * memattr.c: Remove _initialize_mem prototype.
6544 * mep-tdep.c: Remove _initialize_mep_tdep prototype.
6545 * mi/mi-cmd-env.c: Remove _initialize_mi_cmd_env prototype.
6546 * mi/mi-cmds.c: Remove _initialize_mi_cmds prototype.
6547 * mi/mi-interp.c: Remove _initialize_mi_interp prototype.
6548 * mi/mi-main.c: Remove _initialize_mi_main prototype.
6549 * microblaze-linux-tdep.c: Remove
6550 _initialize_microblaze_linux_tdep prototype.
6551 * microblaze-tdep.c: Remove _initialize_microblaze_tdep prototype.
6552 * mips-fbsd-nat.c: Remove _initialize_mips_fbsd_nat prototype.
6553 * mips-fbsd-tdep.c: Remove _initialize_mips_fbsd_tdep prototype.
6554 * mips-linux-nat.c: Remove _initialize_mips_linux_nat prototype.
6555 * mips-linux-tdep.c: Remove _initialize_mips_linux_tdep prototype.
6556 * mips-nbsd-nat.c: Remove _initialize_mipsnbsd_nat prototype.
6557 * mips-nbsd-tdep.c: Remove _initialize_mipsnbsd_tdep prototype.
6558 * mips-sde-tdep.c: Remove _initialize_mips_sde_tdep prototype.
6559 * mips-tdep.c: Remove _initialize_mips_tdep prototype.
6560 * mips64-obsd-nat.c: Remove _initialize_mips64obsd_nat prototype.
6561 * mips64-obsd-tdep.c: Remove _initialize_mips64obsd_tdep
6562 prototype.
6563 * mipsread.c: Remove _initialize_mipsread prototype.
6564 * mn10300-linux-tdep.c: Remove _initialize_mn10300_linux_tdep
6565 prototype.
6566 * mn10300-tdep.c: Remove _initialize_mn10300_tdep prototype.
6567 * moxie-tdep.c: Remove _initialize_moxie_tdep prototype.
6568 * msp430-tdep.c: Remove _initialize_msp430_tdep prototype.
6569 * mt-tdep.c: Remove _initialize_mt_tdep prototype.
6570 * nds32-tdep.c: Remove _initialize_nds32_tdep prototype.
6571 * nios2-linux-tdep.c: Remove _initialize_nios2_linux_tdep
6572 prototype.
6573 * nios2-tdep.c: Remove _initialize_nios2_tdep prototype.
6574 * nto-procfs.c: Remove _initialize_procfs prototype.
6575 * nto-tdep.c: Remove _initialize_nto_tdep prototype.
6576 * objc-lang.c: Remove _initialize_objc_language prototype.
6577 * objfiles.c: Remove _initialize_objfiles prototype.
6578 * observer.c: Remove observer_test_first_notification_function,
6579 observer_test_second_notification_function,
6580 observer_test_third_notification_function, and
6581 _initialize_observer prototypes.
6582 * opencl-lang.c: Remove _initialize_opencl_language prototypes.
6583 * osabi.c: Remove _initialize_gdb_osabi prototype.
6584 * osdata.c: Remove _initialize_osdata prototype.
6585 * p-valprint.c: Remove _initialize_pascal_valprint prototype.
6586 * parse.c: Remove _initialize_parse prototype.
6587 * ppc-fbsd-nat.c: Remove _initialize_ppcfbsd_nat prototype.
6588 * ppc-fbsd-tdep.c: Remove _initialize_ppcfbsd_tdep prototype.
6589 * ppc-linux-nat.c: Remove _initialize_ppc_linux_nat prototype.
6590 * ppc-linux-tdep.c: Remove _initialize_ppc_linux_tdep prototype.
6591 * ppc-nbsd-nat.c: Remove _initialize_ppcnbsd_nat prototype.
6592 * ppc-nbsd-tdep.c: Remove _initialize_ppcnbsd_tdep prototype.
6593 * ppc-obsd-nat.c: Remove _initialize_ppcobsd_nat prototype.
6594 * ppc-obsd-tdep.c: Remove _initialize_ppcobsd_tdep prototype.
6595 * printcmd.c: Remove _initialize_printcmd prototype.
6596 * probe.c: Remove _initialize_probe prototype.
6597 * proc-api.c: Remove _initialize_proc_api prototype.
6598 * proc-events.c: Remove _initialize_proc_events prototype.
6599 * proc-service.c: Remove _initialize_proc_service prototype.
6600 * procfs.c: Remove _initialize_procfs prototype.
6601 * psymtab.c: Remove _initialize_psymtab prototype.
6602 * python/python.c: Remove _initialize_python prototype.
6603 * ravenscar-thread.c: Remove _initialize_ravenscar prototype.
6604 * record-btrace.c: Remove _initialize_record_btrace prototype.
6605 * record-full.c: Remove _initialize_record_full prototype.
6606 * record.c: Remove _initialize_record prototype.
6607 * regcache.c: Remove _initialize_regcache prototype.
6608 * reggroups.c: Remove _initialize_reggroup prototype.
6609 * remote-notif.c: Remove _initialize_notif prototype.
6610 * remote-sim.c: Remove _initialize_remote_sim prototype.
6611 * remote.c: Remove _initialize_remote prototype.
6612 * reverse.c: Remove _initialize_reverse prototype.
6613 * rl78-tdep.c: Remove _initialize_rl78_tdep prototype.
6614 * rs6000-aix-tdep.c: Remove _initialize_rs6000_aix_tdep prototype.
6615 * rs6000-lynx178-tdep.c: Remove _initialize_rs6000_lynx178_tdep
6616 prototype.
6617 * rs6000-nat.c: Remove _initialize_rs6000_nat prototype.
6618 * rs6000-tdep.c: Remove _initialize_rs6000_tdep prototype.
6619 * rust-exp.y: Remove _initialize_rust_exp prototype.
6620 * rx-tdep.c: Remove _initialize_rx_tdep prototype.
6621 * s390-linux-nat.c: Remove _initialize_s390_nat prototype.
6622 * s390-linux-tdep.c: Remove _initialize_s390_tdep prototype.
6623 * score-tdep.c: Remove _initialize_score_tdep prototype.
6624 * selftest-arch.c: Remove _initialize_selftests_foreach_arch
6625 prototype.
6626 * ser-go32.c: Remove _initialize_ser_dos prototype.
6627 * ser-mingw.c: Remove _initialize_ser_windows prototype.
6628 * ser-pipe.c: Remove _initialize_ser_pipe prototype.
6629 * ser-tcp.c: Remove _initialize_ser_tcp prototype.
6630 * ser-unix.c: Remove _initialize_ser_hardwire prototype.
6631 * serial.c: Remove _initialize_serial prototype.
6632 * sh-linux-tdep.c: Remove _initialize_sh_linux_tdep prototype.
6633 * sh-nbsd-nat.c: Remove _initialize_shnbsd_nat prototype.
6634 * sh-nbsd-tdep.c: Remove _initialize_shnbsd_tdep prototype.
6635 * sh-tdep.c: Remove _initialize_sh_tdep prototype.
6636 * skip.c: Remove _initialize_step_skip prototype.
6637 * sol-thread.c: Remove _initialize_sol_thread prototype.
6638 * solib-aix.c: Remove _initialize_solib_aix prototype.
6639 * solib-darwin.c: Remove _initialize_darwin_solib prototype.
6640 * solib-dsbt.c: Remove _initialize_dsbt_solib prototype.
6641 * solib-frv.c: Remove _initialize_frv_solib prototype.
6642 * solib-spu.c: Remove _initialize_spu_solib prototype.
6643 * solib-svr4.c: Remove _initialize_svr4_solib prototype.
6644 * solib-target.c: Remove _initialize_solib_target prototype.
6645 * solib.c: Remove _initialize_solib prototype.
6646 * source.c: Remove _initialize_source prototype.
6647 * sparc-linux-nat.c: Remove _initialize_sparc_linux_nat prototype.
6648 * sparc-linux-tdep.c: Remove _initialize_sparc_linux_tdep
6649 prototype.
6650 * sparc-nat.c: Remove _initialize_sparc_nat prototype.
6651 * sparc-nbsd-nat.c: Remove _initialize_sparcnbsd_nat prototype.
6652 * sparc-nbsd-tdep.c: Remove _initialize_sparcnbsd_tdep prototype.
6653 * sparc-obsd-tdep.c: Remove _initialize_sparc32obsd_tdep
6654 prototype.
6655 * sparc-sol2-nat.c: Remove _initialize_sparc_sol2_nat prototype.
6656 * sparc-sol2-tdep.c: Remove _initialize_sparc_sol2_tdep prototype.
6657 * sparc-tdep.c: Remove _initialize_sparc_tdep prototype.
6658 * sparc64-fbsd-nat.c: Remove _initialize_sparc64fbsd_nat
6659 prototype.
6660 * sparc64-fbsd-tdep.c: Remove _initialize_sparc64fbsd_tdep
6661 prototype.
6662 * sparc64-linux-nat.c: Remove _initialize_sparc64_linux_nat
6663 prototype.
6664 * sparc64-linux-tdep.c: Remove _initialize_sparc64_linux_tdep
6665 prototype.
6666 * sparc64-nat.c: Remove _initialize_sparc64_nat prototype.
6667 * sparc64-nbsd-nat.c: Remove _initialize_sparc64nbsd_nat
6668 prototype.
6669 * sparc64-nbsd-tdep.c: Remove _initialize_sparc64nbsd_tdep
6670 prototype.
6671 * sparc64-obsd-nat.c: Remove _initialize_sparc64obsd_nat
6672 prototype.
6673 * sparc64-obsd-tdep.c: Remove _initialize_sparc64obsd_tdep
6674 prototype.
6675 * sparc64-sol2-tdep.c: Remove _initialize_sparc64_sol2_tdep
6676 prototype.
6677 * spu-linux-nat.c: Remove _initialize_spu_nat prototype.
6678 * spu-multiarch.c: Remove _initialize_spu_multiarch prototype.
6679 * spu-tdep.c: Remove _initialize_spu_tdep prototype.
6680 * stabsread.c: Remove _initialize_stabsread prototype.
6681 * stack.c: Remove _initialize_stack prototype.
6682 * stap-probe.c: Remove _initialize_stap_probe prototype.
6683 * std-regs.c: Remove _initialize_frame_reg prototype.
6684 * symfile-debug.c: Remove _initialize_symfile_debug prototype.
6685 * symfile-mem.c: Remove _initialize_symfile_mem prototype.
6686 * symfile.c: Remove _initialize_symfile prototype.
6687 * symmisc.c: Remove _initialize_symmisc prototype.
6688 * symtab.c: Remove _initialize_symtab prototype.
6689 * target-dcache.c: Remove _initialize_target_dcache prototype.
6690 * target-descriptions.c: Remove _initialize_target_descriptions
6691 prototype.
6692 * thread.c: Remove _initialize_thread prototype.
6693 * tic6x-linux-tdep.c: Remove _initialize_tic6x_linux_tdep
6694 prototype.
6695 * tic6x-tdep.c: Remove _initialize_tic6x_tdep prototype.
6696 * tilegx-linux-nat.c: Remove _initialize_tile_linux_nat prototype.
6697 * tilegx-linux-tdep.c: Remove _initialize_tilegx_linux_tdep
6698 prototype.
6699 * tilegx-tdep.c: Remove _initialize_tilegx_tdep prototype.
6700 * tracefile-tfile.c: Remove _initialize_tracefile_tfile prototype.
6701 * tracefile.c: Remove _initialize_tracefile prototype.
6702 * tracepoint.c: Remove _initialize_tracepoint prototype.
6703 * tui/tui-hooks.c: Remove _initialize_tui_hooks prototype.
6704 * tui/tui-interp.c: Remove _initialize_tui_interp prototype.
6705 * tui/tui-layout.c: Remove _initialize_tui_layout prototype.
6706 * tui/tui-regs.c: Remove _initialize_tui_regs prototype.
6707 * tui/tui-stack.c: Remove _initialize_tui_stack prototype.
6708 * tui/tui-win.c: Remove _initialize_tui_win prototype.
6709 * tui/tui.c: Remove _initialize_tui prototype.
6710 * typeprint.c: Remove _initialize_typeprint prototype.
6711 * user-regs.c: Remove _initialize_user_regs prototype.
6712 * utils.c: Remove _initialize_utils prototype.
6713 * v850-tdep.c: Remove _initialize_v850_tdep prototype.
6714 * valarith.c: Remove _initialize_valarith prototype.
6715 * valops.c: Remove _initialize_valops prototype.
6716 * valprint.c: Remove _initialize_valprint prototype.
6717 * value.c: Remove _initialize_values prototype.
6718 * varobj.c: Remove _initialize_varobj prototype.
6719 * vax-bsd-nat.c: Remove _initialize_vaxbsd_nat prototype.
6720 * vax-nbsd-tdep.c: Remove _initialize_vaxnbsd_tdep prototype.
6721 * vax-tdep.c: Remove _initialize_vax_tdep prototype.
6722 * windows-nat.c: Remove _initialize_windows_nat,
6723 _initialize_check_for_gdb_ini, and _initialize_loadable
6724 prototypes.
6725 * windows-tdep.c: Remove _initialize_windows_tdep prototype.
6726 * xcoffread.c: Remove _initialize_xcoffread prototype.
6727 * xml-support.c: Remove _initialize_xml_support prototype.
6728 * xstormy16-tdep.c: Remove _initialize_xstormy16_tdep prototype.
6729 * xtensa-linux-nat.c: Remove _initialize_xtensa_linux_nat
6730 prototype.
6731 * xtensa-linux-tdep.c: Remove _initialize_xtensa_linux_tdep
6732 prototype.
6733 * xtensa-tdep.c: Remove _initialize_xtensa_tdep prototype.
6734
a611b5cb
KS
67352017-09-08 Keith Seitz <keiths@redhat.com>
6736
6737 * dwarf2read.c (struct field_info) <fnfields>: Remove unused
6738 field.
6739
469412dd
CW
67402017-09-08 Christoph Weinmann <christoph.t.weinmann@intel.com>
6741
6742 * f-valprint.c (f_val_print): Remove check for one byte
6743 sized integers. Remove printing of character type.
6744
a5ad232b
FP
67452017-09-08 Frank Penczek <frank.penczek@intel.com>
6746 Christoph Weinmann <christoph.t.weinmann@intel.com>
6747 Bernhard Heckel <bernhard.heckel@intel.com>
6748
6749 * f-typeprint.c (f_type_print_base): Use fprintfi_filtered
6750 to maintain proper indentation when printing pointers/refs.
6751
e5014227
JB
67522017-09-07 Joel Brobecker <brobecker@adacore.com>
6753
6754 GDB 8.0.1 released.
6755
63c99141
JB
67562017-09-07 Joel Brobecker <brobecker@adacore.com>
6757
6758 * NEWS (Changes in GDB 7.11): Remove entry for QStartupWithShell.
6759
69c1e056
TT
67602017-09-05 Tom Tromey <tom@tromey.com>
6761
6762 * parse.c (funcall_chain): Now a std::vector.
6763 (start_arglist, end_arglist): Simplify.
6764 (free_funcalls): Remove.
6765 (parse_exp_in_context_1): Remove cleanup.
6766
fef704bf
TT
67672017-09-05 Tom Tromey <tom@tromey.com>
6768
6769 * go-exp.y (go_parse): Don't create a cleanup.
6770
5613c585
TT
67712017-09-05 Tom Tromey <tom@tromey.com>
6772
6773 * d-exp.y (PrimaryExpression): Use std::string.
6774 (d_parse): Don't create a cleanup.
6775
eae49211
TT
67762017-09-05 Tom Tromey <tom@tromey.com>
6777
6778 * utils.c (do_clear_parser_state): Remove.
6779 (make_cleanup_clear_parser_state): Remove.
6780 * p-exp.y (pascal_parse): Use scoped_restore.
6781 * m2-exp.y (m2_parse): Use scoped_restore.
6782 * f-exp.y (f_parse): Use scoped_restore.
6783 * d-exp.y (d_parse): Use scoped_restore.
6784 * c-exp.y (c_parse): Use scoped_restore.
6785 * ada-exp.y (ada_parse): Use scoped_restore.
6786 * utils.h (make_cleanup_clear_parser_state): Remove.
6787
73b9be8b
KS
67882017-09-06 Keith Seitz <keiths@redhat.com>
6789
6790 * dwarf2read.c (dw2_linkage_name_attr): New function.
6791 (dw2_linkage_name): New function.
6792 (dwarf2_compute_name, dwarf2_physname, read_call_site_scope)
6793 (guess_full_die_structure_name, dwarf2_name): Use dw2_linkage_name.
6794 (anonymous_struct_prefix, dwarf2_name): Use dw2_linkage_name_attr.
6795
a102602b
KR
67962017-09-06 Kamil Rytarowski <n54@gmx.com>
6797
6798 * config/djgpp/djconfig.sh: Correct shell portability issue.
6799
28ad437d
KR
68002017-09-06 Kamil Rytarowski <n54@gmx.com>
6801
6802 * configure.nat: Define HAVE_NATIVE_GCORE_HOST on NetBSD.
6803
351787dd
JB
68042017-09-06 John Baldwin <jhb@FreeBSD.org>
6805
6806 * Makefile.in (ALLDEPFILES): Add mips-fbsd-nat.c.
6807 * NEWS: Mention new FreeBSD/mips native configuration.
6808 * configure.host: Add aarch64*-*-freebsd*.
6809 * configure.nat: Likewise.
6810 * aarch64-fbsd-nat.c: New file.
6811
c0f84956
JB
68122017-09-06 John Baldwin <jhb@FreeBSD.org>
6813
6814 * Makefile.in (ALL_64_TARGET_OBS): Add aarch64-fbsd-tdep.o.
6815 (ALLDEPFILES): Add aarch64-fbsd-tdep.c.
6816 * NEWS: Mention new FreeBSD/aarch64 target.
6817 * configure.tgt: Add aarch64*-*-freebsd*.
6818 * aarch64-fbsd-tdep.c: New file.
6819 * aarch64-fbsd-tdep.h: New file.
6820
7610297a
KR
68212017-09-06 Kamil Rytarowski <n54@gmx.com>
6822
6823 * MAINTAINERS (Write After Approval): Add Kamil Rytarowski.
6824
fbd1b771
JK
68252017-09-06 Jan Kratochvil <jan.kratochvil@redhat.com>
6826
6827 * parse.c (find_minsym_type_and_address): Don't relocate addresses
6828 of TLS symbols.
6829
5ca79eae
PW
68302017-09-05 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6831
6832 * objfiles.c (get_objfile_bfd_data): Remove useless obstack_init
6833 call.
6834
bf93d7ba
SM
68352017-09-05 Simon Marchi <simon.marchi@ericsson.com>
6836
6837 * infrun.c (follow_exec): Call add_thread after
6838 target_find_description.
6839
1bb7c059
SM
68402017-09-05 Simon Marchi <simon.marchi@ericsson.com>
6841
6842 * infrun.c (handle_inferior_event_1): When exec'ing, read
6843 stop_pc after follow_exec.
6844
fc809827
SM
68452017-09-05 Simon Marchi <simon.marchi@ericsson.com>
6846
6847 * remote.c (process_g_packet): Update error message.
6848
d2fcdd85
YQ
68492017-09-05 Yao Qi <yao.qi@linaro.org>
6850
6851 * configure.tgt (gdb_target_obs): Add i386.o for x86_64-*
6852 targets.
6853
e69570ee
PA
68542017-09-05 Pedro Alves <palves@redhat.com>
6855
6856 * eval.c (eval_call, evaluate_funcall): New functions, factored
6857 out from ...
6858 (evaluate_subexp_standard): ... this.
6859
22916b07
YQ
68602017-09-05 Yao Qi <yao.qi@linaro.org>
6861
6862 * amd64-tdep.c (amd64_target_description): Create target
6863 descriptions.
6864 (_initialize_amd64_tdep): Don't call functions
6865 initialize_tdesc_amd64_*. Add self tests.
6866 * arch/amd64.c (amd64_create_target_description): Add parameter
6867 is_linux. Call set_tdesc_osabi if is_linux is true.
6868 * arch/amd64.h (amd64_create_target_description): Update the
6869 declaration.
6870 * arch/i386.c (i386_create_target_description): Add parameter
6871 is_linux. Call set_tdesc_osabi if is_linux is true.
6872 * arch/i386.h (i386_create_target_description): Update
6873 declaration.
6874 * configure.tgt: Add i386.o to gdb_target_obs.
6875 * features/Makefile (XMLTOC): Remove i386/*.xml.
6876 * features/i386/amd64-avx-avx512.c: Remove.
6877 * features/i386/amd64-avx-mpx-avx512-pku.c: Remove.
6878 * features/i386/amd64-avx-mpx.c: Remove.
6879 * features/i386/amd64-avx.c: Remove.
6880 * features/i386/amd64-mpx.c: Remove.
6881 * features/i386/amd64.c: Remove.
6882 * features/i386/i386-avx-avx512.c: Remove.
6883 * features/i386/i386-avx-mpx-avx512-pku.c: Remove.
6884 * features/i386/i386-avx-mpx.c: Remove.
6885 * features/i386/i386-avx.c: Remove.
6886 * features/i386/i386-mmx.c: Remove.
6887 * features/i386/i386-mpx.c: Remove.
6888 * features/i386/i386.c: Remove.
6889 * i386-tdep.c: Don't include features/i386/i386*.c., include
6890 target-descriptions.h and arch/i386.h.
6891 (i386_target_description): Create target descriptions.
6892 (i386_gdbarch_init): Don't call initialize_tdesc_i386_*
6893 functions. Do self tests.
6894
0854b7b1
YQ
68952017-09-05 Yao Qi <yao.qi@linaro.org>
6896
6897 * features/Makefile (XMLTOC): Remove i386/amd64XXX-linux.xml.
6898 * features/i386/amd64-avx-avx512-linux.c: Removed.
6899 * features/i386/amd64-avx-linux.c: Removed.
6900 * features/i386/amd64-avx-mpx-avx512-pku-linux.c: Removed.
6901 * features/i386/amd64-avx-mpx-linux.c: Removed.
6902 * features/i386/amd64-linux.c: Removed.
6903 * features/i386/amd64-mpx-linux.c: Removed.
6904 * features/i386/x32-avx-avx512-linux.c: Removed.
6905 * features/i386/x32-avx-linux.c: Removed.
6906 * features/i386/x32-linux.c: Removed.
6907
b4570e4b
YQ
69082017-09-05 Yao Qi <yao.qi@linaro.org>
6909
6910 * amd64-linux-tdep.c: Include arch/amd64.h. Don't include
6911 features/i386/*.c.
6912 (amd64_linux_read_description): Call
6913 amd64_create_target_description.
6914 * arch/amd64.c: New file.
6915 * arch/amd64.h: New file.
6916 * configure.tgt (x86_64-*-linux*): Append amd64.o.
6917 * Makefile.in (ALL_64_TARGET_OBS): Append amd64.o.
6918
6c73f67f
YQ
69192017-09-05 Yao Qi <yao.qi@linaro.org>
6920
6921 * amd64-linux-tdep.c: Don't include amd64-XXX-linux and
6922 x32-XXX-linux.c. Include 64bit-XX.c and x32-XX.c.
6923 (amd64_linux_read_description): Create target descriptions.
6924 (_initialize_amd64_linux_tdep): Don't call initialize_tdesc_XXX
6925 functions. Add unit tests.
6926 * features/Makefile (FEATURE_XMLFILES): Append 64bit-XXX.xml and
6927 x32-core.xml.
6928 * features/i386/64bit-avx.c: Generated.
6929 * features/i386/64bit-avx512.c: Generated.
6930 * features/i386/64bit-core.c: Generated.
6931 * features/i386/64bit-linux.c: Generated.
6932 * features/i386/64bit-mpx.c: Generated.
6933 * features/i386/64bit-pkeys.c: Generated.
6934 * features/i386/64bit-segments.c: Generated.
6935 * features/i386/64bit-sse.c: Generated.
6936 * features/i386/x32-core.c: Generated.
6937 * target-descriptions.c (maint_print_c_tdesc_cmd): Print feature
6938 c files for amd64-linux and x32-linux.
6939
9d3d478b
YQ
69402017-09-05 Yao Qi <yao.qi@linaro.org>
6941
6942 * amd64-linux-tdep.c (amd64_linux_read_description): New
6943 function.
6944 (amd64_linux_core_read_description): Call
6945 amd64_linux_read_description.
6946 (amd64_linux_init_abi): Likewise.
6947 (amd64_x32_linux_init_abi): Likewise.
6948 * amd64-linux-tdep.h (amd64_linux_read_description): Declare.
6949 * x86-linux-nat.c (x86_linux_read_description): Call
6950 amd64_linux_read_description.
6951
b9f1d50f
YQ
69522017-09-05 Yao Qi <yao.qi@linaro.org>
6953
6954 * amd64-linux-tdep.c (amd64_linux_core_read_description): Update
6955 comments.
6956
188c9e6d
YQ
69572017-09-05 Yao Qi <yao.qi@linaro.org>
6958
6959 * features/Makefile (XMLTOC): Remove i386/i386-XX-linux.xml.
6960 * features/i386/i386-avx-avx512-linux.c: Remove.
6961 * features/i386/i386-avx-linux.c: Remove.
6962 * features/i386/i386-avx-mpx-avx512-pku-linux.c: Remove.
6963 * features/i386/i386-avx-mpx-linux.c: Remove.
6964 * features/i386/i386-linux.c: Remove.
6965 * features/i386/i386-mmx-linux.c: Remove.
6966 * features/i386/i386-mpx-linux.c: Remove.
6967
5f035c07
YQ
69682017-09-05 Yao Qi <yao.qi@linaro.org>
6969
6970 * Makefile.in (ALL_TARGET_OBS): Add i386.o.
6971 (SFILES): Add arch/i386.c.
6972 (HFILES_NO_SRCDIR): Add arch/i386.h.
6973 * arch/i386.c: New file.
6974 * arch/i386.h: New file.
6975 * arch/tdesc.h (allocate_target_description): Declare.
6976 (set_tdesc_architecture): Declare.
6977 (set_tdesc_osabi): Declare.
6978 * configure.tgt (i[34567]86-*-linux*): Add i386.o.
6979 * i386-linux-tdep.c: Don't include ../features/i386/32bit-XXX.c.
6980 include arch/i386.h.
6981 (i386_linux_read_description): Remove code and call
6982 i386_create_target_description.
6983 (set_tdesc_architecture): New function.
6984 (set_tdesc_osabi): New function.
6985 * target-descriptions.h (allocate_target_description): Remove.
6986
0abe8a89
YQ
69872017-09-05 Yao Qi <yao.qi@linaro.org>
6988
6989 * arch/tdesc.h (tdesc_create_feature): Add an argument xml.
6990 * target-descriptions.c (tdesc_create_feature): Likewise, and
6991 adjust code.
6992 * features/i386/32bit-avx.c: Re-generated.
6993 * features/i386/32bit-avx512.c: Re-generated.
6994 * features/i386/32bit-core.c: Re-generated.
6995 * features/i386/32bit-linux.c: Re-generated.
6996 * features/i386/32bit-mpx.c: Re-generated.
6997 * features/i386/32bit-pkeys.c: Re-generated.
6998 * features/i386/32bit-sse.c: Re-generated.
6999
0a188386
YQ
70002017-09-05 Yao Qi <yao.qi@linaro.org>
7001
7002 * regformats/regdef.h (struct reg): Override operator == and !=.
7003
f49ff000
YQ
70042017-09-05 Yao Qi <yao.qi@linaro.org>
7005
7006 * arch/tdesc.h: New file.
7007 * regformats/regdat.sh: Generate code using tdesc_create_reg.
7008 * target-descriptions.c: Update comments.
7009 * target-descriptions.h: Include "arch/tdesc.h". Remove the
7010 declarations.
7011 * features/i386/32bit-avx.c: Re-generated.
7012 * features/i386/32bit-avx512.c: Re-generated.
7013 * features/i386/32bit-core.c: Re-generated.
7014 * features/i386/32bit-linux.c: Re-generated.
7015 * features/i386/32bit-mpx.c: Re-generated.
7016 * features/i386/32bit-pkeys.c: Re-generated.
7017 * features/i386/32bit-sse.c: Re-generated.
7018
f7000548
YQ
70192017-09-05 Yao Qi <yao.qi@linaro.org>
7020
7021 * regformats/regdat.sh: Update generated code.
7022
c9a5e2a5
YQ
70232017-09-05 Yao Qi <yao.qi@linaro.org>
7024
7025 * regformats/regdat.sh: Adjust code order.
7026
d6b687ac
SM
70272017-09-05 Simon Marchi <simon.marchi@ericsson.com>
7028
7029 * expprint.c (dump_subexp_body_standard): Use constant format
7030 string in fprintf_filtered call.
7031
a379bfd0
JB
70322017-09-04 John Baldwin <jhb@FreeBSD.org>
7033
7034 * configure.nat: Add "x86-nat.o x86-dregs.o" for NetBSD/amd64 and
7035 NetBSD/i386.
7036 * x86-bsd-nat.c [!DBREG_DRX && __NetBSD__]: Define DBREG_DRX.
7037
f7efc967
JB
70382017-09-04 John Baldwin <jhb@FreeBSD.org>
7039
7040 * bsd-kvm.o: Make <sys/user.h> conditional on HAVE_SYS_USER_H.
7041
c49fbc6c
JB
70422017-09-04 John Baldwin <jhb@FreeBSD.org>
7043
7044 * bsd-kvm.o: Define _KMEMUSER.
7045 * configure.ac: Define _KMEMUSER when checking for "struct lwp".
7046 * configure: Regenerate.
7047
26562e73
JB
70482017-09-04 John Baldwin <jhb@FreeBSD.org>
7049
7050 * amd64-fbsd-nat.c: Add include of "x86-xstate.h".
7051 * i386-fbsd-nat.c: Likewise.
7052
31cf1487
JB
70532017-09-04 John Baldwin <jhb@FreeBSD.org>
7054
7055 * unittests/array-view-selftests.c: Add include of <array>.
7056
5b9f8a7c
JB
70572017-09-04 John Baldwin <jhb@FreeBSD.org>
7058
7059 * spu-tdep.c (flush_ea_cache): Add missing argument to
7060 call_function_by_hand.
7061
d69cf9b2
PA
70622017-09-04 Pedro Alves <palves@redhat.com>
7063
7064 * NEWS (Safer support for debugging with no debug info): New.
7065
3693fdb3
PA
70662017-09-04 Pedro Alves <palves@redhat.com>
7067
7068 * c-exp.y (function_method, function_method_void): Add current
7069 instance flags to TYPE_INSTANCE.
7070 * dwarf2read.c (check_modifier): New.
7071 (compute_delayed_physnames): Assert that only C++ adds delayed
7072 physnames. Mark fn_fields as const/volatile depending on
7073 physname.
7074 * eval.c (make_params): New type_instance_flags parameter. Use
7075 it as the new type's instance flags.
7076 (evaluate_subexp_standard) <TYPE_INSTANCE>: Extract the instance
7077 flags element and pass it to make_params.
7078 * expprint.c (print_subexp_standard) <TYPE_INSTANCE>: Handle
7079 instance flags element.
7080 (dump_subexp_body_standard) <TYPE_INSTANCE>: Likewise.
7081 * gdbtypes.h: Include "enum-flags.h".
7082 (type_instance_flags): New enum-flags type.
7083 (TYPE_CONST, TYPE_VOLATILE, TYPE_RESTRICT, TYPE_ATOMIC)
7084 (TYPE_CODE_SPACE, TYPE_DATA_SPACE): Return boolean.
7085 * parse.c (operator_length_standard) <TYPE_INSTANCE>: Adjust.
7086 (follow_type_instance_flags): New function.
7087 (operator_check_standard) <TYPE_INSTANCE>: Adjust.
7088 * parser-defs.h (follow_type_instance_flags): Declare.
7089 * valops.c (value_struct_elt_for_reference): const/volatile must
7090 match too.
7091
e68cb8e0
PA
70922017-09-04 Pedro Alves <palves@redhat.com>
7093
7094 * cp-namespace.c (cp_search_static_and_baseclasses): Handle
7095 function/method scopes; lookup the nested name as a function local
7096 static variable.
7097
858be34c
PA
70982017-09-04 Pedro Alves <palves@redhat.com>
7099
7100 (%type <voidval>): Add function_method.
7101 * c-exp.y (exp): New production for calls with no arguments.
7102 (function_method, function_method_void_or_typelist): New
7103 productions.
7104 (exp): New production for "method()::static_var".
7105 * eval.c (evaluate_subexp_standard): Handle OP_FUNC_STATIC_VAR.
7106 * expprint.c (print_subexp_standard, dump_subexp_body_standard):
7107 Handle OP_FUNC_STATIC_VAR.
7108 * parse.c (operator_length_standard):
7109 Handle OP_FUNC_STATIC_VAR.
7110
dd5901a6
PA
71112017-09-04 Pedro Alves <palves@redhat.com>
7112
7113 * eval.c (evaluate_subexp_standard): Remove UNOP_MEMVAL_TLS
7114 handling.
7115 * expprint.c (print_subexp_standard, dump_subexp_body_standard):
7116 Ditto.
7117 * parse.c (operator_length_standard, operator_check_standard):
7118 Ditto.
7119 * std-operator.def (UNOP_MEMVAL_TLS): Delete.
7120
46a4882b
PA
71212017-09-04 Pedro Alves <palves@redhat.com>
7122
7123 * ax-gdb.c: Include "typeprint.h".
7124 (gen_expr_for_cast): New function.
7125 (gen_expr) <OP_CAST, OP_CAST_TYPE>: Use it.
7126 <OP_VAR_VALUE, OP_MSYM_VAR_VALUE>: Error out if the variable's
7127 type is unknown.
7128 * dwarf2read.c (new_symbol_full): Fallback to int instead of
7129 nodebug_data_symbol.
7130 * eval.c: Include "typeprint.h".
7131 (evaluate_subexp_standard) <OP_VAR_VALUE, OP_VAR_MSYM_VALUE>:
7132 Error out if symbol has unknown type.
7133 <UNOP_CAST, UNOP_CAST_TYPE>: Common bits factored out to
7134 evaluate_subexp_for_cast.
7135 (evaluate_subexp_for_address, evaluate_subexp_for_sizeof): Handle
7136 OP_VAR_MSYM_VALUE.
7137 (evaluate_subexp_for_cast): New function.
7138 * gdbtypes.c (init_nodebug_var_type): New function.
7139 (objfile_type): Use it to initialize types of variables with no
7140 debug info.
7141 * typeprint.c (error_unknown_type): New.
7142 * typeprint.h (error_unknown_type): New declaration.
7143 * compile/compile-c-types.c (convert_type_basic): Handle
7144 TYPE_CODE_ERROR; warn and fallback to int for variables with
7145 unknown type.
7146
fe13dfec
PA
71472017-09-04 Pedro Alves <palves@redhat.com>
7148
7149 * eval.c (evaluate_var_value): New function, factored out from ...
7150 (evaluate_subexp_standard): ... here.
7151
d008ee21
PA
71522017-09-04 Pedro Alves <palves@redhat.com>
7153
7154 * eval.c (evaluate_subexp_standard) <UNOP_COMPLEMENT, UNOP_ADDR>:
7155 Remove useless assignments to 'op'.
7156
827d0c51
PA
71572017-09-04 Pedro Alves <palves@redhat.com>
7158
7159 * eval.c (eval_skip_value): New function.
7160 (evaluate_subexp_standard): Use it.
7161
2c5a2be1
PA
71622017-09-04 Pedro Alves <palves@redhat.com>
7163
7164 * eval.c (evaluate_subexp_standard): <OP_FUNCALL>: Extract
7165 function name from symbol/minsym and pass it to
7166 error_call_unknown_return_type.
7167
74ea4be4
PA
71682017-09-04 Pedro Alves <palves@redhat.com>
7169
7170 * ada-lang.c (resolve_subexp): Handle OP_VAR_MSYM_VALUE.
7171 * ax-gdb.c (gen_msym_var_ref): New function.
7172 (gen_expr): Handle OP_VAR_MSYM_VALUE.
7173 * eval.c (evaluate_var_msym_value): New function.
7174 * eval.c (evaluate_subexp_standard): Handle OP_VAR_MSYM_VALUE.
7175 <OP_FUNCALL>: Extract function name from symbol/minsym and pass it
7176 to call_function_by_hand.
7177 * expprint.c (print_subexp_standard, dump_subexp_body_standard):
7178 Handle OP_VAR_MSYM_VALUE.
7179 (union exp_element) <msymbol>: New field.
7180 * minsyms.h (struct type): Forward declare.
7181 (find_minsym_type_and_address): Declare.
7182 * parse.c (write_exp_elt_msym): New function.
7183 (write_exp_msymbol): Delete, refactored as ...
7184 (find_minsym_type_and_address): ... this new function.
7185 (write_exp_msymbol): Reimplement using OP_VAR_MSYM_VALUE.
7186 (operator_length_standard, operator_check_standard): Handle
7187 OP_VAR_MSYM_VALUE.
7188 * std-operator.def (OP_VAR_MSYM_VALUE): New.
7189
7022349d
PA
71902017-09-04 Pedro Alves <palves@redhat.com>
7191
7192 * ada-lang.c (ada_evaluate_subexp) <TYPE_CODE_FUNC>: Don't handle
7193 TYPE_GNU_IFUNC specially here. Throw error if return type is
7194 unknown.
7195 * ada-typeprint.c (print_func_type): Handle functions with unknown
7196 return type.
7197 * c-typeprint.c (c_type_print_base): Handle functions and methods
7198 with unknown return type.
7199 * compile/compile-c-symbols.c (convert_symbol_bmsym)
7200 <mst_text_gnu_ifunc>: Use nodebug_text_gnu_ifunc_symbol.
7201 * compile/compile-c-types.c: Include "objfiles.h".
7202 (convert_func): For functions with unknown return type, warn and
7203 default to int.
7204 * compile/compile-object-run.c (compile_object_run): Adjust call
7205 to call_function_by_hand_dummy.
7206 * elfread.c (elf_gnu_ifunc_resolve_addr): Adjust call to
7207 call_function_by_hand.
7208 * eval.c (evaluate_subexp_standard): Adjust calls to
7209 call_function_by_hand. Handle functions and methods with unknown
7210 return type. Pass expect_type to call_function_by_hand.
7211 * f-typeprint.c (f_type_print_base): Handle functions with unknown
7212 return type.
7213 * gcore.c (call_target_sbrk): Adjust call to
7214 call_function_by_hand.
7215 * gdbtypes.c (objfile_type): Leave nodebug text symbol with NULL
7216 return type instead of int. Make nodebug_text_gnu_ifunc_symbol be
7217 an integer address type instead of nodebug.
7218 * guile/scm-value.c (gdbscm_value_call): Adjust call to
7219 call_function_by_hand.
7220 * infcall.c (error_call_unknown_return_type): New function.
7221 (call_function_by_hand): New "default_return_type" parameter.
7222 Pass it down.
7223 (call_function_by_hand_dummy): New "default_return_type"
7224 parameter. Use it instead of defaulting to int. If there's no
7225 default and the return type is unknown, throw an error. If
7226 there's a default return type, and the called function has no
7227 debug info, then assume the function is prototyped.
7228 * infcall.h (call_function_by_hand, call_function_by_hand_dummy):
7229 New "default_return_type" parameter.
7230 (error_call_unknown_return_type): New declaration.
7231 * linux-fork.c (call_lseek): Cast return type of lseek.
7232 (inferior_call_waitpid, checkpoint_command): Adjust calls to
7233 call_function_by_hand.
7234 * linux-tdep.c (linux_infcall_mmap, linux_infcall_munmap): Adjust
7235 calls to call_function_by_hand.
7236 * m2-typeprint.c (m2_procedure): Handle functions with unknown
7237 return type.
7238 * objc-lang.c (lookup_objc_class, lookup_child_selector)
7239 (value_nsstring, print_object_command): Adjust calls to
7240 call_function_by_hand.
7241 * p-typeprint.c (pascal_type_print_varspec_prefix): Handle
7242 functions with unknown return type.
7243 (pascal_type_print_func_varspec_suffix): New function.
7244 (pascal_type_print_varspec_suffix) <TYPE_CODE_FUNC,
7245 TYPE_CODE_METHOD>: Use it.
7246 * python/py-value.c (valpy_call): Adjust call to
7247 call_function_by_hand.
7248 * rust-lang.c (rust_evaluate_funcall): Adjust call to
7249 call_function_by_hand.
7250 * valarith.c (value_x_binop, value_x_unop): Adjust calls to
7251 call_function_by_hand.
7252 * valops.c (value_allocate_space_in_inferior): Adjust call to
7253 call_function_by_hand.
7254 * typeprint.c (type_print_unknown_return_type): New function.
7255 * typeprint.h (type_print_unknown_return_type): New declaration.
7256
54990598
PA
72572017-09-04 Pedro Alves <palves@redhat.com>
7258
7259 * gdbtypes.c (lookup_function_type_with_arguments): Mark function
7260 types with more than one parameter as prototyped.
7261
9a24775b
PA
72622017-09-04 Pedro Alves <palves@redhat.com>
7263
7264 * cli/cli-cmds.c (print_disassembly, disassemble_current_function)
7265 (disassemble_command): Use gdb_disassembly_flags instead of bare
7266 int.
7267 * disasm.c (gdb_pretty_print_disassembler::pretty_print_insn)
7268 (dump_insns, do_mixed_source_and_assembly_deprecated)
7269 (do_mixed_source_and_assembly, do_assembly_only, gdb_disassembly):
7270 Use gdb_disassembly_flags instead of bare int.
7271 * disasm.h (DISASSEMBLY_SOURCE_DEPRECATED, DISASSEMBLY_RAW_INSN)
7272 (DISASSEMBLY_OMIT_FNAME, DISASSEMBLY_FILENAME)
7273 (DISASSEMBLY_OMIT_PC, DISASSEMBLY_SOURCE)
7274 (DISASSEMBLY_SPECULATIVE): No longer macros. Instead they're...
7275 (enum gdb_disassembly_flag): ... values of this new enumeration.
7276 (gdb_disassembly_flags): Define.
7277 (gdb_disassembly)
7278 (gdb_pretty_print_disassembler::pretty_print_insn): Use it.
7279 * mi/mi-cmd-disas.c (mi_cmd_disassemble): Use
7280 gdb_disassembly_flags instead of bare int.
7281 * record-btrace.c (btrace_insn_history)
7282 (record_btrace_insn_history, record_btrace_insn_history_range)
7283 (record_btrace_insn_history_from): Use gdb_disassembly_flags
7284 instead of bare int.
7285 * record.c (get_insn_history_modifiers, cmd_record_insn_history):
7286 Use gdb_disassembly_flags instead of bare int.
7287 * target-debug.h (target_debug_print_gdb_disassembly_flags):
7288 Define.
7289 * target-delegates.c: Regenerate.
7290 * target.c (target_insn_history, target_insn_history_from)
7291 (target_insn_history_range): Use gdb_disassembly_flags instead of
7292 bare int.
7293 * target.h: Include "disasm.h".
7294 (struct target_ops) <to_insn_history, to_insn_history_from,
7295 to_insn_history_range>: Use gdb_disassembly_flags instead of bare
7296 int.
7297 (target_insn_history, target_insn_history_from)
7298 (target_insn_history_range): Use gdb_disassembly_flags instead of
7299 bare int.
7300
80a65e9b
SM
73012017-09-04 Simon Marchi <simon.marchi@ericsson.com>
7302
7303 * cli/cli-script.c (build_command_line): For if/while commands,
7304 check whether args is empty.
7305
6b66338c
SM
73062017-09-04 Simon Marchi <simon.marchi@ericsson.com>
7307
7308 * cli/cli-script.h (enum misc_command_type): Move from defs.h.
7309 (enum command_control_type): Likewise.
7310 (struct command_line): Likewise.
7311 (free_command_lines): Likewise.
7312 (struct command_lines_deleter): Likewise.
7313 (command_line_up): Likewise.
7314 (read_command_lines): Likewise.
7315 (read_command_lines_1): Likewise.
7316 * defs.h (enum misc_command_type): Move to cli/cli-script.h.
7317 (enum command_control_type): Likewise.
7318 (struct command_line): Likewise.
7319 (free_command_lines): Likewise.
7320 (struct command_lines_deleter): Likewise.
7321 (command_line_up): Likewise.
7322 (read_command_lines): Likewise.
7323 (read_command_lines_1): Likewise.
7324 * breakpoint.h: Include cli/cli-script.h.
7325 * extension-priv.h: Likewise.
7326 * gdbcmd.h: Likewise.
7327
51abb421
PA
73282017-09-04 Pedro Alves <palves@redhat.com>
7329
7330 * ada-lang.c (is_known_support_routine): Move sal declaration to
7331 where it is initialized.
7332 * breakpoint.c (create_internal_breakpoint, init_catchpoint)
7333 (parse_breakpoint_sals, decode_static_tracepoint_spec)
7334 (clear_command, update_static_tracepoint): Remove init_sal
7335 references. Move declarations closer to initializations.
7336 * cli/cli-cmds.c (list_command): Move sal declarations closer to
7337 initializations.
7338 * elfread.c (elf_gnu_ifunc_resolver_stop): Remove init_sal
7339 references. Move sal declarations closer to initializations.
7340 * frame.c (find_frame_sal): Return a symtab_and_line via function
7341 return instead of output parameter. Remove init_sal references.
7342 * frame.h (find_frame_sal): Return a symtab_and_line via function
7343 return instead of output parameter.
7344 * guile/scm-frame.c (gdbscm_frame_sal): Adjust.
7345 * guile/scm-symtab.c (stscm_make_sal_smob): Use in-place new
7346 instead of memset.
7347 (gdbscm_find_pc_line): Remove init_sal reference.
7348 * infcall.c (call_function_by_hand_dummy): Remove init_sal
7349 references. Move declarations closer to initializations.
7350 * infcmd.c (set_step_frame): Update. Move declarations closer to
7351 initializations.
7352 (finish_backward): Remove init_sal references. Move declarations
7353 closer to initializations.
7354 * infrun.c (process_event_stop_test, handle_step_into_function)
7355 (insert_hp_step_resume_breakpoint_at_frame)
7356 (insert_step_resume_breakpoint_at_caller): Likewise.
7357 * linespec.c (create_sals_line_offset, decode_digits_ordinary)
7358 (symbol_to_sal): Likewise.
7359 * probe.c (parse_probes_in_pspace): Remove init_sal reference.
7360 * python/py-frame.c (frapy_find_sal): Move sal declaration closer
7361 to its initialization.
7362 * reverse.c (save_bookmark_command): Use new/delete. Remove
7363 init_sal references. Move declarations closer to initializations.
7364 * source.c (get_current_source_symtab_and_line): Remove brace
7365 initialization.
7366 (set_current_source_symtab_and_line): Now takes the sal by const
7367 reference. Remove brace initialization.
7368 (line_info): Remove init_sal reference.
7369 * source.h (set_current_source_symtab_and_line): Now takes a
7370 symtab_and_line via const reference.
7371 * stack.c (set_current_sal_from_frame): Adjust.
7372 (print_frame_info): Adjust.
7373 (get_last_displayed_sal): Return the sal via function return
7374 instead of via output parameter. Simplify.
7375 (frame_info): Adjust.
7376 * stack.h (get_last_displayed_sal): Return the sal via function
7377 return instead of via output parameter.
7378 * symtab.c (init_sal): Delete.
7379 (find_pc_sect_line): Remove init_sal references. Move
7380 declarations closer to initializations.
7381 (find_function_start_sal): Remove init_sal references. Move
7382 declarations closer to initializations.
7383 * symtab.h (struct symtab_and_line): In-class initialize all
7384 fields.
7385 * tracepoint.c (set_traceframe_context)
7386 (print_one_static_tracepoint_marker): Remove init_sal references.
7387 Move declarations closer to initializations.
7388 * tui/tui-disasm.c (tui_show_disassem_and_update_source): Adjust.
7389 * tui/tui-stack.c (tui_show_frame_info): Adjust. Move
7390 declarations closer to initializations.
7391 * tui/tui-winsource.c (tui_update_source_window_as_is): Remove
7392 init_sal references. Adjust.
7393
6c5b2ebe
PA
73942017-09-04 Pedro Alves <palves@redhat.com>
7395
7396 * ax-gdb.c (agent_command_1): Use range-for.
7397 * break-catch-throw.c (re_set_exception_catchpoint): Update.
7398 * breakpoint.c: Include "common/array-view.h".
7399 (init_breakpoint_sal, create_breakpoint_sal): Change sals
7400 parameter from struct symtabs_and_lines to
7401 array_view<symtab_and_line>. Adjust. Use range-for. Update.
7402 (breakpoint_sals_to_pc): Change sals parameter from struct
7403 symtabs_and_lines to std::vector reference.
7404 (check_fast_tracepoint_sals): Change sals parameter from struct
7405 symtabs_and_lines to std::array_view. Use range-for.
7406 (decode_static_tracepoint_spec): Return a std::vector instead of
7407 symtabs_and_lines. Update.
7408 (create_breakpoint): Update.
7409 (break_range_command, until_break_command, clear_command): Update.
7410 (base_breakpoint_decode_location, bkpt_decode_location)
7411 (bkpt_probe_create_sals_from_location)
7412 (bkpt_probe_decode_location, tracepoint_decode_location)
7413 (tracepoint_probe_decode_location)
7414 (strace_marker_create_sals_from_location): Return a std::vector
7415 instead of symtabs_and_lines.
7416 (strace_marker_create_breakpoints_sal): Update.
7417 (strace_marker_decode_location): Return a std::vector instead of
7418 symtabs_and_lines. Update.
7419 (update_breakpoint_locations): Change struct symtabs_and_lines
7420 parameters to gdb::array_view. Adjust.
7421 (location_to_sals): Return a std::vector instead of
7422 symtabs_and_lines. Update.
7423 (breakpoint_re_set_default): Use std::vector instead of struct
7424 symtabs_and_lines.
7425 (decode_location_default): Return a std::vector instead of
7426 symtabs_and_lines. Update.
7427 * breakpoint.h: Include "common/array-view.h".
7428 (struct breakpoint_ops) <decode_location>: Now returns a
7429 std::vector instead of returning a symtabs_and_lines via output
7430 parameter.
7431 (update_breakpoint_locations): Change sals parameters to use
7432 gdb::array_view.
7433 * cli/cli-cmds.c (edit_command, list_command): Update to use
7434 std::vector and gdb::array_view.
7435 (ambiguous_line_spec): Adjust to use gdb::array_view and
7436 range-for.
7437 (compare_symtabs): Rename to ...
7438 (cmp_symtabs): ... this. Change parameters to symtab_and_line
7439 const reference and adjust.
7440 (filter_sals): Rewrite using std::vector and standard algorithms.
7441 * elfread.c (elf_gnu_ifunc_resolver_return_stop): Simplify.
7442 (jump_command): Update to use std::vector.
7443 * linespec.c (struct linespec_state) <canonical_names>: Update
7444 comment.
7445 (add_sal_to_sals_basic): Delete.
7446 (add_sal_to_sals, filter_results, convert_results_to_lsals)
7447 (decode_line_2, create_sals_line_offset)
7448 (convert_address_location_to_sals, convert_linespec_to_sals)
7449 (convert_explicit_location_to_sals, parse_linespec)
7450 (event_location_to_sals, decode_line_full, decode_line_1)
7451 (decode_line_with_current_source)
7452 (decode_line_with_last_displayed, decode_objc)
7453 (decode_digits_list_mode, decode_digits_ordinary, minsym_found)
7454 (linespec_result::~linespec_result): Adjust to use std::vector
7455 instead of symtabs_and_lines.
7456 * linespec.h (linespec_sals::sals): Now a std::vector.
7457 (struct linespec_result): Use std::vector, bool, and in-class
7458 initialization.
7459 (decode_line_1, decode_line_with_current_source)
7460 (decode_line_with_last_displayed): Return std::vector.
7461 * macrocmd.c (info_macros_command): Use std::vector.
7462 * mi/mi-main.c (mi_cmd_trace_find): Use std::vector.
7463 * probe.c (parse_probes_in_pspace, parse_probes): Adjust to use
7464 std::vector.
7465 * probe.h (parse_probes): Return a std::vector.
7466 * python/python.c (gdbpy_decode_line): Use std::vector and
7467 gdb::array_view.
7468 * source.c (select_source_symtab, line_info): Use std::vector.
7469 * stack.c (func_command): Use std::vector.
7470 * symtab.h (struct symtabs_and_lines): Delete.
7471 * tracepoint.c (tfind_line_command, scope_info): Use std::vector.
7472
7c44b49c
PA
74732017-09-04 Pedro Alves <palves@redhat.com>
7474
7475 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
7476 unittests/array-view-selftests.c.
7477 (SUBDIR_UNITTESTS_OBS): Add array-view-selftests.o.
7478 * common/array-view.h: New file.
7479 * unittests/array-view-selftests.c: New file.
7480
e439fa14
PA
74812017-09-04 Pedro Alves <palves@redhat.com>
7482
7483 * cli/cli-cmds.c (edit_command): Pass message to
7484 ambiguous_line_spec.
7485 (list_command): Pass message to ambiguous_line_spec. Say
7486 "first"/"last" instead of "start" and "end" to be consistent with
7487 the manual.
7488 (ambiguous_line_spec): Add 'format' and vararg parameters. Use
7489 them to print formatted message.
7490
7525b645
PA
74912017-09-04 Pedro Alves <palves@redhat.com>
7492
7493 * btrace.c (ftrace_add_pt): Pass btrace_insn to
7494 ftrace_update_insns by reference instead of pointer.
7495
badc0020
YQ
74962017-09-04 Yao Qi <yao.qi@linaro.org>
7497
7498 * i386-go32-tdep.c: Include x86-xstate.h.
7499 (i386_go32_init_abi): Call i386_target_description.
7500 * i386-tdep.c (i386_target_description): Return tdesc_i386_mmx
7501 if xcr0 is X86_XSTATE_X87_MASK.
7502 * i386-tdep.h (tdesc_i386): Remove the declaration.
7503 (tdesc_i386_mmx): Likewise.
7504
d78bdb54
YQ
75052017-09-04 Yao Qi <yao.qi@linaro.org>
7506
7507 * i386-fbsd-tdep.c (i386fbsd_core_read_xcr0): Return
7508 X86_XSTATE_SSE_MASK instead of 0.
7509
ca1fa5ee
YQ
75102017-09-04 Yao Qi <yao.qi@linaro.org>
7511
7512 * amd64-fbsd-nat.c (amd64fbsd_read_description): Call
7513 i386_target_description.
7514 * i386-fbsd-nat.c (i386fbsd_read_description): Call
7515 i386_target_description.
7516 * i386-tdep.c (i386_gdbarch_init): Likewise.
7517
2434b019
YQ
75182017-09-04 Yao Qi <yao.qi@linaro.org>
7519
7520 * amd64-darwin-tdep.c: Include "x86-xstate.h".
7521 (x86_darwin_init_abi_64): Call amd64_target_description.
7522 * amd64-dicos-tdep.c: Likewise.
7523 * amd64-fbsd-nat.c: Likewise.
7524 * amd64-fbsd-tdep.c: Likewise.
7525 * amd64-nbsd-tdep.c: Likewise.
7526 * amd64-obsd-tdep.c: Likewise.
7527 * amd64-sol2-tdep.c: Likewise.
7528 * amd64-windows-tdep.c: Likewise.
7529 * amd64-tdep.h (tdesc_amd64): Remove the declaration.
7530
0860c437
SM
75312017-09-04 Simon Marchi <simon.marchi@ericsson.com>
7532
7533 * btrace.h (btrace_insn_s, DEF_VEC_O (btrace_insn_s)): Remove.
7534 (btrace_function) <insn>: Change type to use std::vector.
7535 * btrace.c (ftrace_debug, ftrace_call_num_insn,
7536 ftrace_find_call, ftrace_new_gap, ftrace_update_function,
7537 ftrace_update_insns, ftrace_compute_global_level_offset,
7538 btrace_stitch_bts, btrace_clear, btrace_insn_get,
7539 btrace_insn_end, btrace_insn_next, btrace_insn_prev): Adjust to
7540 change to std::vector.
7541 (ftrace_update_insns): Adjust to change to std::vector, change
7542 type of INSN parameter.
7543 (btrace_compute_ftrace_bts): Adjust call to ftrace_update_insns.
7544 * record-btrace.c (btrace_call_history_insn_range,
7545 btrace_compute_src_line_range,
7546 record_btrace_frame_prev_register): Adjust to change to
7547 std::vector.
7548 * python/py-record-btrace.c (recpy_bt_func_instructions): Adjust
7549 to change to std::vector.
7550
0638b7f9
TT
75512017-09-03 Tom Tromey <tom@tromey.com>
7552
7553 * corefile.c (reopen_exec_file): Use std::string.
7554
8f84fb0e
TT
75552017-09-03 Tom Tromey <tom@tromey.com>
7556
7557 * compile/compile.c (compile_register_name_mangled): Return
7558 std::string.
7559 * compile/compile-loc2c.c (pushf_register_address): Update.
7560 (pushf_register): Update.
7561 * compile/compile-c-types.c (convert_array): Update.
7562 * compile/compile-c-symbols.c (generate_vla_size): Update.
7563 (error_symbol_once): Use a gdb::unique_xmalloc_ptr.
7564 (symbol_substitution_name): Return a gdb::unique_xmalloc_ptr.
7565 (convert_one_symbol): Update.
7566 (generate_c_for_for_one_variable): Update.
7567 * compile/compile-c-support.c (c_get_range_decl_name): Return a
7568 std::string.
7569 (generate_register_struct): Update.
7570 * compile/compile-internal.h (c_get_range_decl_name): Return a
7571 std::string.
7572 (compile_register_name_mangled): Return std::string.
7573
18e9961f
TT
75742017-09-03 Tom Tromey <tom@tromey.com>
7575
7576 * utils.c (perror_string): Return a std::string.
7577 (throw_perror_with_name, perror_warning_with_name): Update.
7578
45343786
TT
75792017-09-03 Tom Tromey <tom@tromey.com>
7580
7581 * demangle.c (demangle_command): Use std::string,
7582 unique_xmalloc_ptr.
7583
b57af503
TT
75842017-09-03 Tom Tromey <tom@tromey.com>
7585
7586 * cli/cli-setshow.c (do_set_command): Use std::string.
7587
6eecf35f
TT
75882017-09-03 Tom Tromey <tom@tromey.com>
7589
7590 * cli/cli-cmds.c (cd_command): Use gdb::unique_xmalloc_ptr.
7591
56496dd4
TT
75922017-09-03 Tom Tromey <tom@tromey.com>
7593
7594 * mi/mi-interp.c (mi_cmd_interpreter_exec): Use std::string.
7595
e91a1fa7
TT
75962017-09-03 Tom Tromey <tom@tromey.com>
7597
7598 * mi/mi-cmd-env.c (env_execute_cli_command): Use
7599 gdb::unique_xmalloc_ptr.
7600
7ffd83d7
TT
76012017-09-03 Tom Tromey <tom@tromey.com>
7602
7603 * thread.c (print_thread_info_1): Use string_printf.
7604 (thread_apply_command, thread_apply_all_command): Use
7605 std::string.
7606
1ccbe998
TT
76072017-09-03 Tom Tromey <tom@tromey.com>
7608
7609 * valprint.c (val_print_string): Update.
7610 * gdbcore.h (memory_error_message): Return std::string.
7611 * corefile.c (memory_error_message): Return std::string.
7612 (memory_error): Update.
7613 * breakpoint.c (insert_bp_location): Update.
7614
23fdd69e
SM
76152017-09-03 Simon Marchi <simon.marchi@ericsson.com>
7616
7617 * target/waitstatus.h (target_waitstatus_to_string): Change
7618 return type to std::string.
7619 * target/waitstatus.c (target_waitstatus_to_string): Return
7620 std::string.
7621 * target.h (target_waitstatus_to_string): Remove declaration.
7622 * infrun.c (resume, clear_proceed_status_thread,
7623 print_target_wait_results, do_target_wait, save_waitstatus,
7624 stop_all_threads): Adjust.
7625 * record-btrace.c (record_btrace_wait): Adjust.
7626 * target-debug.h
7627 (target_debug_print_struct_target_waitstatus_p): Adjust.
7628
5c811d30
JK
76292017-09-01 Jan Kratochvil <jan.kratochvil@redhat.com>
7630
7631 PR gdb/22046
7632 * nat/linux-procfs.c (parse_proc_status_state): Fix PROC_STATE_STOPPED
7633 detection.
7634
0a2dde4a
SDJ
76352017-08-31 Sergio Durigan Junior <sergiodj@redhat.com>
7636
7637 * NEWS (Changes since GDB 8.0): Add entry mentioning new support
7638 for setting/unsetting environment variables on the remote target.
7639 (New remote packets): Add entries for QEnvironmentHexEncoded,
7640 QEnvironmentUnset and QEnvironmentReset.
7641 * common/environ.c (gdb_environ::operator=): Extend method to
7642 handle m_user_set_env_list and m_user_unset_env_list.
7643 (gdb_environ::clear): Likewise.
7644 (match_var_in_string): Change type of first parameter from 'char
7645 *' to 'const char *'.
7646 (gdb_environ::set): Extend method to handle
7647 m_user_set_env_list and m_user_unset_env_list.
7648 (gdb_environ::unset): Likewise.
7649 (gdb_environ::clear_user_set_env): New method.
7650 (gdb_environ::user_set_envp): Likewise.
7651 (gdb_environ::user_unset_envp): Likewise.
7652 * common/environ.h (gdb_environ): Handle m_user_set_env_list and
7653 m_user_unset_env_list on move constructor/assignment.
7654 (unset): Add new default parameter 'update_unset_list = true'.
7655 (clear_user_set_env): New method.
7656 (user_set_envp): Likewise.
7657 (user_unset_envp): Likewise.
7658 (m_user_set_env_list): New std::set.
7659 (m_user_unset_env_list): Likewise.
7660 * common/rsp-low.c (hex2str): New function.
7661 (bin2hex): New overload for bin2hex function.
7662 * common/rsp-low.c (hex2str): New prototype.
7663 (str2hex): New overload prototype.
7664 * remote.c: Include "environ.h". Add QEnvironmentHexEncoded,
7665 QEnvironmentUnset and QEnvironmentReset.
7666 (remote_protocol_features): Add QEnvironmentHexEncoded,
7667 QEnvironmentUnset and QEnvironmentReset packets.
7668 (send_environment_packet): New function.
7669 (extended_remote_environment_support): Likewise.
7670 (extended_remote_create_inferior): Call
7671 extended_remote_environment_support.
7672 (_initialize_remote): Add QEnvironmentHexEncoded,
7673 QEnvironmentUnset and QEnvironmentReset packet configs.
7674 * unittests/environ-selftests.c (gdb_selftest_env_var):
7675 New variable.
7676 (test_vector_initialization): New function.
7677 (test_init_from_host_environ): Likewise.
7678 (test_reinit_from_host_environ): Likewise.
7679 (test_set_A_unset_B_unset_A_cannot_find_A_can_find_B):
7680 Likewise.
7681 (test_unset_set_empty_vector): Likewise.
7682 (test_vector_clear): Likewise.
7683 (test_std_move): Likewise.
7684 (test_move_constructor):
7685 (test_self_move): Likewise.
7686 (test_set_unset_reset): Likewise.
7687 (run_tests): Rewrite in terms of the functions above.
7688
654670a4
WP
76892017-08-31 Weimin Pan <weimin.pan@oracle.com>
7690
7691 * sparc64-tdep.c (adi_stat_t): Fix comment formatting.
7692 (adi_available): Use a temp variable of type CORE_ADDR as argument
7693 3 when calling target_auxv_search.
7694 (adi_normalize_address): Use masks and xor operators to calculate
7695 normalized address.
7696 (adi_read_versions, adi_write_versions, adi_print_versions)
7697 (do_examine, do_assign): Use paddress.
7698
7755ddb7
JB
76992017-08-29 John Baldwin <jhb@FreeBSD.org>
7700
7701 * mips-fbsd-nat.c (getfpregs_supplies): Return true for FIR.
7702 * mips-fbsd-tdep.c (mips_fbsd_supply_fpregs): Split supply of FSR
7703 out of loop and add supply of FIR.
7704 (mips_fbsd_collect_fpregs): Split collect of FSR out of loop and
7705 add collect of FIR.
7706
fd437cbc
SM
77072017-08-28 Simon Marchi <simon.marchi@ericsson.com>
7708
3804a343 7709 PR gdb/21827
fd437cbc
SM
7710 * cli/cli-script.c (define_command): Don't convert command name
7711 to lower case.
7712
988f6b3d
JB
77132017-08-25 Joel Brobecker <brobecker@adacore.com>
7714
7715 * ada-lang.c (ada_lookup_struct_elt_type): Remove parameter "dispp".
7716 Update all callers accordingly. Remove all code blocks handling
7717 the case where DISPP is not NULL.
7718
663c44ac
JK
77192017-08-24 Jan Kratochvil <jan.kratochvil@redhat.com>
7720
7721 PR symtab/22003
7722 * dwarf2read.c (dwarf2_const_value_attr, dump_die_shallow)
7723 (dwarf2_get_attr_constant_value, dwarf2_fetch_constant_bytes)
7724 (skip_form_bytes, attr_form_is_constant): Handle DW_FORM_implicit_const.
7725
f1902523
JK
77262017-08-24 Jan Kratochvil <jan.kratochvil@redhat.com>
7727
7728 * dwarf2read.c (build_type_psymtabs_reader): New prototype.
7729 (process_psymtab_comp_unit): Accept IS_DEBUG_TYPES.
7730 (read_comp_units_from_section): New parameter abbrev_section, use
7731 read_and_check_comp_unit_head, allocate signatured_type if needed.
7732 (create_all_comp_units): Update read_comp_units_from_section caller.
7733
87215ad1
SDJ
77342017-08-23 Pedro Alves <palves@redhat.com>
7735
7736 PR remote/21852
7737 * remote.c (add_current_inferior_and_thread): Set inferior_ptid
7738 to null_ptid and switch to thread without reading the registers
7739 after adding the inferior.
7740
6e41ddec
JK
77412017-08-23 Jan Kratochvil <jan.kratochvil@redhat.com>
7742
7743 * NEWS (Changes since GDB 8.0): Add set compile-gcc and show
7744 compile-gcc.
7745 * compile/compile.c (compile_gcc, show_compile_gcc): New.
7746 (compile_to_object): Implement compile_gcc.
7747 (_initialize_compile): Install "set compile-gcc". Initialize
7748 compile_gcc.
7749
e68c32d5
JK
77502017-08-23 Jan Kratochvil <jan.kratochvil@redhat.com>
7751
7752 * compile/compile.c (compile_to_object): Conditionally call
7753 set_verbose. Conditionally call compile or compile_v0.
7754
58afddc6
WP
77552017-08-07 Weimin Pan <weimin.pan@oracle.com>
7756
7757 * sparc64-tdep.h: (adi_normalize_address): New export.
7758 * sparc-nat.h: (open_adi_tag_fd): New export.
7759 * sparc64-linux-nat.c: (open_adi_tag_fd): New function.
7760 * sparc64-linux-tdep.c:
7761 (SEGV_ACCADI, SEGV_ADIDERR, SEGV_ADIPERR) New defines.
7762 (sparc64_linux_handle_segmentation_fault): New function.
7763 (sparc64_linux_init_abi): Register
7764 sparc64_linux_handle_segmentation_fault
7765 * sparc64-tdep.c: Include cli-utils.h,gdbcmd.h,auxv.h.
7766 (sparc64_addr_bits_remove): New function.
7767 (sparc64_init_abi): Register sparc64_addr_bits_remove.
7768 (MAX_PROC_NAME_SIZE): New macro.
7769 (AT_ADI_BLKSZ, AT_ADI_NBITS, AT_ADI_UEONADI) New defines.
7770 (sparc64adilist): New variable.
7771 (adi_proc_list): New variable.
7772 (find_adi_info): New function.
7773 (add_adi_info): New function.
7774 (get_adi_info_proc): New function.
7775 (get_adi_info): New function.
7776 (info_adi_command): New function.
7777 (read_maps_entry): New function.
7778 (adi_available): New function.
7779 (adi_normalize_address): New function.
7780 (adi_align_address): New function.
7781 (adi_convert_byte_count): New function.
7782 (adi_tag_fd): New function.
7783 (adi_is_addr_mapped): New function.
7784 (adi_read_versions): New function.
7785 (adi_write_versions): New function.
7786 (adi_print_versions): New function.
7787 (do_examine): New function.
7788 (do_assign): New function.
7789 (adi_examine_command): New function.
7790 (adi_assign_command): New function.
7791 (_initialize_sparc64_adi_tdep): New function.
7792
11db9430
SM
77932017-08-22 Simon Marchi <simon.marchi@ericsson.com>
7794
7795 * breakpoint.c (breakpoints_info): Rename to ...
7796 (info_breakpoints_command): ... this.
7797 (watchpoints_info): Rename to ...
7798 (info_watchpoints_command): ... this.
7799 (tracepoints_info): Rename to ...
7800 (info_tracepoints_command): ... this.
7801 (_initialize_breakpoint): Adjust.
7802 * dcache.c (dcache_info): Rename to ...
7803 (info_display_command): ... this.
7804 (_initialize_dcache): Adjust.
7805 * frame.h (args_info): Rename to ...
7806 (info_args_command): ... this.
7807 (locals_info): Rename to ...
7808 (info_locals_command): ... this.
7809 * infcmd.c (nofp_registers_info): Rename to ...
7810 (info_registers_command): ... this.
7811 (float_info): Rename to ...
7812 (info_float_command): ... this.
7813 (program_info): Rename to ...
7814 (info_program_command): ... this.
7815 (all_registers_info): Rename to ...
7816 (info_all_registers_command): ... this.
7817 (vector_info): Rename to ...
7818 (info_vector_command): ... this.
7819 (float_info): Rename to ...
7820 (info_float_command): ... this.
7821 (_initialize_infcmd): Adjust.
7822 * inferior.h (term_info): Rename to ...
7823 (info_terminal_command): ... this.
7824 * inflow.c (term_info): Rename to ...
7825 (info_terminal_command): ... this.
7826 (_initialize_inflow): Adjust.
7827 * infrun.c (signals_info): Rename to ...
7828 (info_signals_command): ... this.
7829 (_initialize_infrun): Adjust.
7830 * objc-lang.c (classes_info): Rename to ...
7831 (info_classes_command): ... this.
7832 (selectors_info): Rename to ...
7833 (info_selectors_command): ... this.
7834 (_initialize_objc_language): Adjust.
7835 * printcmd.c (sym_info): Rename to ...
7836 (info_symbol_command): ... this.
7837 (address_info): Rename to ...
7838 (info_address_command): ... this.
7839 (display_info): Rename to ...
7840 (info_display_command): ... this.
7841 (_initialize_printcmd): Adjust.
7842 * reverse.c (bookmarks_info): Rename to ...
7843 (info_breakpoints_command): ... this.
7844 (_initialize_reverse): Adjust.
7845 * ser-go32.c (dos_info): Rename to ...
7846 (info_serial_command): ... this.
7847 (_initialize_ser_dos): Adjust.
7848 * skip.c (skip_info): Rename to ...
7849 (info_skip_command): ... this.
7850 (_initialize_step_skip): Adjust.
7851 * source.c (line_info): Rename to ...
7852 (info_line_command): ... this.
7853 (source_info): Rename to ...
7854 (info_source_command)
7855 * stack.c (frame_info): Rename to ...
7856 (info_frame_command): ... this.
7857 (locals_info): Rename to ...
7858 (info_locals_command): ... this.
7859 (args_info): Rename to ...
7860 (info_args_command): ... this.
7861 (_initialize_stack): Adjust.
7862 * symtab.c (sources_info): Rename to ...
7863 (info_sources_command): ... this.
7864 (variables_info): Rename to ...
7865 (info_variables_command): ... this.
7866 (functions_info): Rename to ...
7867 (info_functions_command): ... this.
7868 (types_info): Rename to ...
7869 (info_types_command): ... this.
7870 (_initialize_symtab): Adjust.
7871 * target.c (target_info): Rename to ...
7872 (info_target_command): ... this.
7873 (initialize_targets): Adjust.
7874 * tracepoint.c (tvariables_info): Rename to ...
7875 (info_tvariables_command): ... this.
7876 (scope_info): Rename to ...
7877 (info_scope_command): ... this.
7878 (trace_dump_actions): Adjust.
7879 (_initialize_tracepoint): Adjust.
7880
b270e6f9
TT
78812017-08-22 Tom Tromey <tom@tromey.com>
7882
7883 * breakpoint.h (install_breakpoint): Update.
7884 * breakpoint.c (add_solib_catchpoint): Update.
7885 (install_breakpoint): Change argument to a std::unique_ptr.
7886 (create_fork_vfork_event_catchpoint): Use std::unique_ptr.
7887 (create_breakpoint_sal, create_breakpoint): Update.
7888 (watch_command_1, catch_exec_command_1)
7889 (strace_marker_create_breakpoints_sal): Use std::unique_ptr.
7890 (add_to_breakpoint_chain): Change argument to a std::unique_ptr.
7891 Return the breakpoint.
7892 (set_raw_breakpoint_without_location, set_raw_breakpoint)
7893 (new_single_step_breakpoint): Update.
7894 * break-catch-throw.c (handle_gnu_v3_exceptions): Use
7895 std::unique_ptr.
7896 * break-catch-syscall.c (create_syscall_event_catchpoint): Use
7897 std::unique_ptr.
7898 * break-catch-sig.c (create_signal_catchpoint): Use
7899 std::unique_ptr.
7900 * ada-lang.c (create_ada_exception_catchpoint): Use
7901 std::unique_ptr.
7902
36bd8eaa
TT
79032017-08-22 Tom Tromey <tom@tromey.com>
7904
7905 * breakpoint.c (add_solib_catchpoint): Use std::unique_ptr.
7906
56f37645
TT
79072017-08-22 Tom Tromey <tom@tromey.com>
7908
7909 * psymtab.c (psymtab_search_name): Return a unique_xmalloc_ptr.
7910 (lookup_partial_symbol): Update.
7911
0b581c69
TT
79122017-08-22 Tom Tromey <tom@tromey.com>
7913
7914 * source.h (rewrite_source_path): Return a unique_xmalloc_ptr.
7915 * source.c (rewrite_source_path): Return a unique_xmalloc_ptr.
7916 (find_and_open_source, symtab_to_fullname): Update.
7917 * psymtab.c (psymtab_to_fullname): Update.
7918
14278e1f
TT
79192017-08-22 Tom Tromey <tom@tromey.com>
7920
7921 * exec.c (exec_file_attach): Update.
7922 * linux-thread-db.c (try_thread_db_load): Update.
7923 * guile/scm-safe-call.c (gdbscm_safe_source_script): Update.
7924 * utils.c (gdb_realpath): Change return type.
7925 (gdb_realpath_keepfile): Update.
7926 (gdb_realpath_check_trailer, gdb_realpath_tests): New functions.
7927 (_initialize_utils): Register the new self test.
7928 * source.c (openp): Update.
7929 (find_and_open_source): Update.
7930 * nto-tdep.c (nto_find_and_open_solib): Update.
7931 * main.c (set_gdb_data_directory): Update.
7932 (captured_main_1): Update.
7933 * dwarf2read.c (dwarf2_get_dwz_file): Update
7934 (dw2_map_symbol_filenames): Update.
7935 * auto-load.c (auto_load_safe_path_vec_update): Update.
7936 (filename_is_in_auto_load_safe_path_vec): Change type of
7937 "filename_realp".
7938 (auto_load_objfile_script): Update.
7939 (file_is_auto_load_safe): Update. Use std::string.
7940 * utils.h (gdb_realpath): Return a gdb::unique_xmalloc_ptr.
7941
4971c9a7
TT
79422017-08-22 Tom Tromey <tom@tromey.com>
7943
7944 * utils.c (gdb_realpath_keepfile): Return a
7945 gdb::unique_xmalloc_ptr.
7946 * exec.c (exec_file_attach): Update.
7947 * utils.h (gdb_realpath_keepfile): Return a
7948 gdb::unique_xmalloc_ptr.
7949
e3e41d58
TT
79502017-08-22 Tom Tromey <tom@tromey.com>
7951
7952 * compile/compile.c (compile_file_command): Use
7953 gdb::unique_xmalloc_ptr, std::string.
7954 * utils.c (gdb_abspath): Change return type.
7955 * source.c (openp): Update.
7956 * objfiles.c (allocate_objfile): Update.
7957 * main.c (set_gdb_data_directory): Update.
7958 * utils.h (gdb_abspath): Return a gdb::unique_xmalloc_ptr.
7959
0d999a6e
ZZ
79602017-08-22 Zhouyi Zhou <zhouzhouyi@gmail.com>
7961
7962 * cli-cmds.c (list_commands): List actual code around more than
7963 one location.
7964
329d5e7e
JB
79652017-08-21 John Baldwin <jhb@FreeBSD.org>
7966
7967 * fbsd-nat.c (fbsd_add_threads): Use array type for `lwps'.
7968
bf223d3e
PA
79692017-08-21 Pedro Alves <palves@redhat.com>
7970
7971 PR gdb/19487
7972 * c-exp.y (variable production): Handle function aliases.
7973 * minsyms.c (msymbol_is_text): New function.
7974 * minsyms.h (msymbol_is_text): Declare.
7975 * symtab.c (find_function_alias_target): New function.
7976 * symtab.h (find_function_alias_target): Declare.
7977
c973d0aa
PA
79782017-08-21 Pedro Alves <palves@redhat.com>
7979
7980 * eval.c (evaluate_subexp_standard) <OP_TYPE>: Don't dig past
7981 typedefs.
7982 * typeprint.c (whatis_exp): If handling "whatis", and expression
7983 is OP_TYPE, strip one typedef level. Otherwise don't strip
7984 typedefs here.
7985 * valops.c (value_cast): Save "to" type before resolving
7986 stubs/typedefs. Use that type as resulting value's type.
7987
2989a365
TT
79882017-08-18 Tom Tromey <tom@tromey.com>
7989 Pedro Alves <palves@redhat.com>
7990
7991 * spu-multiarch.c (parse_spufs_run): Use scoped_restore.
7992 * sol-thread.c (sol_thread_resume, sol_thread_wait)
7993 (sol_thread_xfer_partial, rw_common): Use scoped_restore.
7994 * procfs.c (procfs_do_thread_registers): Use scoped_restore.
7995 * proc-service.c (ps_xfer_memory): Use scoped_restore.
7996 * linux-tdep.c (linux_corefile_thread): Remove a cleanup.
7997 (linux_get_siginfo_data): Add "thread" argument. Use
7998 scoped_restore.
7999 * linux-nat.c (linux_child_follow_fork)
8000 (check_stopped_by_watchpoint): Use scoped_restore.
8001 * infrun.c (displaced_step_prepare_throw, write_memory_ptid)
8002 (THREAD_STOPPED_BY, handle_signal_stop): Use scoped_restore.
8003 (restore_inferior_ptid, save_inferior_ptid): Remove.
8004 * btrace.c (btrace_fetch): Use scoped_restore.
8005 * bsd-uthread.c (bsd_uthread_fetch_registers)
8006 (bsd_uthread_store_registers): Use scoped_restore.
8007 * breakpoint.c (reattach_breakpoints, detach_breakpoints): Use
8008 scoped_restore.
8009 * aix-thread.c (aix_thread_resume, aix_thread_wait)
8010 (aix_thread_xfer_partial): Use scoped_restore.
8011 * inferior.h (save_inferior_ptid): Remove.
8012
e60eb288
YQ
80132017-08-18 Yao Qi <yao.qi@linaro.org>
8014
8015 PR tdep/21818
8016 * arm-tdep.c (gdb_print_insn_arm): Mark
8017 USER_SPECIFIED_MACHINE_TYPE if exec_bfd isn't NULL.
8018
6d580b63
YQ
80192017-08-18 Yao Qi <yao.qi@linaro.org>
8020
8021 * NEWS: Mention GDBserver's new option "--selftest".
8022 * Makefile.in (SFILES): Remove selftest.c, add common/selftest.c.
8023 * selftest.c: Move it to common/selftest.c.
8024 * selftest.h: Move it to common/selftest.h.
8025 * selftest-arch.c (reset): New function.
8026 (tests_with_arch): Call reset.
8027
86dcbf50
YQ
80282017-08-18 Yao Qi <yao.qi@linaro.org>
8029
8030 * selftest.c (run_tests): Don't call QUIT. Call debug_printf
8031 instead of exception_fprintf and printf_filtered.
8032
7649770c
YQ
80332017-08-18 Yao Qi <yao.qi@linaro.org>
8034
8035 * selftest.c (register_self_test): Rename it to
8036 selftests::register_test.
8037 (run_self_tests): selftest::run_tests.
8038 * selftest.h: Update declarations.
8039 * selftest-arch.c (register_self_test_foreach_arch): Rename it to
8040 selftests::register_test_foreach_arch.
8041 * selftest-arch.h: Update declaration.
8042 * aarch64-tdep.c: Update.
8043 * arm-tdep.c: Likewise.
8044 * disasm-selftests.c: Likewise.
8045 * dwarf2loc.c: Likewise.
8046 * dwarf2-frame.c: Likewise.
8047 * findvar.c: Likewise.
8048 * gdbarch-selftests.c: Likewise.
8049 * maint.c (maintenance_selftest): Likewise.
8050 * regcache.c: Likewise.
8051 * rust-exp.y: Likewise.
8052 * selftest-arch.c: Likewise.
8053 * unittests/environ-selftests.c: Likewise.
8054 * unittests/function-view-selftests.c: Likewise.
8055 * unittests/offset-type-selftests.c: Likewise.
8056 * unittests/optional-selftests.c: Likewise.
8057 * unittests/scoped_restore-selftests.c: Likewise.
8058 * utils-selftests.c: Likewise.
8059
b0cba12e
PA
80602017-08-17 Pedro Alves <palves@redhat.com>
8061
8062 * cli/cli-cmds.c (source_command): Delete 'old_source_verbose'
8063 local.
8064
4c8aa72d
PA
80652017-08-17 Pedro Alves <palves@redhat.com>
8066
8067 * dwarf2read.c (struct dwarf2_cu) <line_header_die_owner>: New
8068 field.
8069 (reset_die_in_process): Delete, replaced by ...
8070 (process_die_scope): ... this new class. Make it responsible for
8071 freeing cu->line_header too.
8072 (process_die): Use process_die_scope.
8073 (handle_DW_AT_stmt_list): Record the line header's owner CU/DIE in
8074 cu->line_header_die_owner. Don't release the line header if it's
8075 owned by the CU.
8076 (setup_type_unit_groups): Make the CU/DIE own the line header.
8077 Don't release the line header here.
8078
ba713918
AL
80792017-08-17 Alex Lindsay <alexlindsay239@gmail.com> (tiny change)
8080
8081 * elfread.c (elf_read_minimal_symbols): xfree synthsyms.
8082
44d0fb3a
RK
80832017-08-17 Ruslan Kabatsayev <b7.10110111@gmail.com>
8084
8085 * NEWS: Mention new shortcuts for nexti and stepi in TUI
8086 Single-Key mode
8087
a5afdb16
RK
80882017-08-16 Ruslan Kabatsayev <b7.10110111@gmail.com>
8089
8090 * tui/tui.c (tui_commands): Add "nexti" and "stepi" to the Single-Key
8091 mode command list.
8092
47613aeb
SH
80932017-08-15 Stafford Horne <shorne@gmail.com>
8094
8095 * MAINTAINERS (Write After Approval): Add Stafford Horne.
8096
9c3cc999
SH
80972017-08-15 Stafford Horne <shorne@gmail.com>
8098
8099 * xtensa-tdep.c (xtensa_init_reggroups): Use xstrdup for cpname.
8100
206726fb
SDJ
81012017-08-15 Sergio Durigan Junior <sergiodj@redhat.com>
8102
8103 PR gdb/21954
8104 * infcmd.c (unset_environment_command): Use the 'clear' method on
8105 the environment instead of resetting it.
8106
0335ac6d
JB
81072017-08-15 John Baldwin <jhb@FreeBSD.org>
8108
8109 * fbsd-nat.c (fbsd_convert_siginfo): Fix compile on big-endian
8110 platforms.
8111
d3abe1c8
TT
81122017-08-14 Tom Tromey <tom@tromey.com>
8113
8114 * valprint.c (print_octal_chars): Use HOST_CHAR_BIT.
8115 (print_binary_chars): Likewise.
8116 (BITS_IN_BYTES): Remove.
8117
d6382fff
TT
81182017-08-14 Tom Tromey <tom@tromey.com>
8119
8120 PR gdb/21675
8121 * valprint.c (LOW_ZERO): Change value to 034.
8122 (print_octal_chars): Add static_asserts for octal constants.
8123 * printcmd.c (print_scalar_formatted): Add 'd' case.
8124
f978cb06
TT
81252017-08-11 Tom Tromey <tom@tromey.com>
8126
8127 * symfile.c (add_symbol_file_command): Use std::vector.
8128
2f5404b3
TT
81292017-08-14 Tom Tromey <tom@tromey.com>
8130
8131 * break-catch-throw.c (handle_gnu_v3_exceptions): Use std::move.
8132 * break-catch-syscall.c (create_syscall_event_catchpoint): Use
8133 std::move.
8134 * break-catch-sig.c (create_signal_catchpoint): Use std::move.
8135
de7985c3
PA
81362017-08-11 Pedro Alves <palves@redhat.com>
8137
8138 * infrun.c (process_event_stop_test): Adjust
8139 function_name_is_marked_for_skip call.
8140 * skip.c: Include <list>.
8141 (skiplist_entry): Make it a class with private fields, and
8142 getters/setters.
8143 (skiplist_entry_chain): Delete.
8144 (skiplist_entries): New.
8145 (skiplist_entry_count): Delete.
8146 (highest_skiplist_entry_num): New.
8147 (ALL_SKIPLIST_ENTRIES, ALL_SKIPLIST_ENTRIES_SAFE): Delete.
8148 (add_skiplist_entry): Delete.
8149 (skiplist_entry::skiplist_entry): New.
8150 (skiplist_entry::add_entry): New.
8151 (skip_file_command, skip_function): Adjust.
8152 (compile_skip_regexp): Delete.
8153 (skip_command): Don't compile regexp here. Adjust to use
8154 skiplist_entry::add_entry.
8155 (skip_info): Adjust to use range-for and getters.
8156 (skip_enable_command, skip_disable_command): Adjust to use
8157 range-for and setters.
8158 (skip_delete_command): Adjust to use std::list.
8159 (add_skiplist_entry): Delete.
8160 (skip_file_p): Delete, refactored as ...
8161 (skiplist_entry::do_skip_file_p): ... this new method.
8162 (skip_gfile_p): Delete, refactored as ...
8163 (skiplist_entry::do_gskip_file_p): ... this new method.
8164 (skip_function_p, skip_rfunction_p): Delete, refactored as ...
8165 (skiplist_entry::skip_function_p): ... this new method.
8166 (function_name_is_marked_for_skip): Now returns bool, and takes
8167 the function sal by const reference. Adjust to use range-for and
8168 skiplist_entry methods.
8169 (_initialize_step_skip): Remove references to
8170 skiplist_entry_chain, skiplist_entry_count.
8171 * skip.h (function_name_is_marked_for_skip): Now returns bool, and
8172 takes the function sal by const reference.
8173
be7d3cd5
YQ
81742017-08-11 Yao Qi <yao.qi@linaro.org>
8175
8176 * dwarf2-frame.c (clear_pointer_cleanup): Remove.
8177 (dwarf2_frame_cache): Remove reset_cache_cleanup.
8178 (dwarf2_frame_cache):
8179 * frame-unwind.c (frame_unwind_try_unwinder): Catch
8180 RETURN_MASK_ALL and set *this_case to NULL.
8181 * frame-unwind.h: Update comments.
8182
1c90d9f0
YQ
81832017-08-11 Yao Qi <yao.qi@linaro.org>
8184
8185 * dwarf2-frame.c (dwarf2_frame_state_alloc_regs): Remove.
8186 (dwarf2_frame_state_copy_regs): Remove.
8187 (dwarf2_frame_state_free_regs): Remove.
8188 (dwarf2_frame_state::~dwarf2_frame_state): Remove.
8189 (dwarf2_restore_rule): Call method .alloc_regs instead of
8190 dwarf2_frame_state_alloc_regs.
8191 (execute_cfa_program): Likewise. Call dwarf2_frame_state_reg_info
8192 constructor. Call std::move.
8193 (dwarf2_fetch_cfa_info): Don't call dwarf2_frame_state_copy_regs.
8194 (dwarf2_frame_cache): Likewise.
8195
8196 [GDB_SELF_TEST]: Include selftest.h and
8197 selftest-arch.h.
8198 [GDB_SELF_TEST] (execute_cfa_program_test): New function.
8199 (_initialize_dwarf2_frame) [GDB_SELF_TEST]: Register
8200 execute_cfa_program_test.
8201
8202 * dwarf2-frame.h (dwarf2_frame_state_reg_info): Add ctor, dtor,
8203 copy ctor, assignment operator, move assignment.
8204 <alloc_regs>: New method.
8205 <swap>: New method.
8206 (struct dwarf2_frame_state): Delete dtor.
8207 (dwarf2_frame_state_alloc_regs): Remove declaration.
8208 * sparc-tdep.c (sparc_execute_dwarf_cfa_vendor_op): Don't call
8209 dwarf2_frame_state_alloc_regs, use .alloc_regs instead.
8210
afe37d6b
YQ
82112017-08-11 Yao Qi <yao.qi@linaro.org>
8212
8213 * dwarf2-frame.c (dwarf2_frame_state_free): Remove.
8214 (dwarf2_frame_state::dwarf2_frame_state): New.
8215 (dwarf2_frame_state::~dwarf2_frame_state): New.
8216 (dwarf2_fetch_cfa_info): Update.
8217 (dwarf2_frame_cache): Remove old_chain. Change 'fs' to an object
8218 rather than a pointer. Update code.
8219 * dwarf2-frame.h (struct dwarf2_frame_state): Declare ctor and
8220 dtor.
8221 <data_align, code_align, retaddr_column>: Change them to const.
8222 <armcc_cfa_offsets_sf, armcc_cfa_offsets_reversed>: Change them
8223 to bool.
8224
b348037f
YQ
82252017-08-11 Yao Qi <yao.qi@linaro.org>
8226
8227 * dwarf2-frame.h (struct dwarf2_frame_state_reg) <exp_len>: Remove.
8228 <loc.exp>: New field.
8229 * dwarf2-frame.c (execute_cfa_program): Update.
8230 (dwarf2_frame_prev_register): Update.
8231
e7c9de26
PA
82322017-08-10 Pedro Alves <palves@redhat.com>
8233
8234 * common/gdb_unique_ptr.h (xfree_deleter<T[]>): Define.
8235
e8c6b620
JB
82362017-08-09 John Baldwin <jhb@FreeBSD.org>
8237
8238 * fbsd-nat.c (struct fbsd_fork_info): Remove.
8239 (fbsd_pending_children): Use std::list.
8240 (fbsd_remember_child): Likewise.
8241 (fbsd_is_child_pending): Likewise.
8242 (fbsd_pending_vfork_done): Use std::forward_list.
8243 (fbsd_add_vfork_done): Likewise.
8244 (fbsd_is_vfork_done_pending): Likewise.
8245 (fbsd_next_vfork_done): Likewise.
8246
e4a26669
JB
82472017-08-09 John Baldwin <jhb@FreeBSD.org>
8248
8249 * fbsd-nat.c [HAVE_KINFO_GETVMMAP] (struct free_deleter): New.
8250 (fbsd_find_memory_regions): Use free_deleter with std::unique_ptr.
8251 [!HAVE_KINFO_GETVMMAP] (fbsd_find_memory_regions): Use std::string
8252 for `mapfilename'.
8253 (fbsd_xfer_partial): Use gdb::byte_vector.
af3881e6 8254 (fbsd_add_threads): Use gdb::unique_xmalloc_ptr.
e4a26669 8255
142311d3
JB
82562017-08-09 John Baldwin <jhb@FreeBSD.org>
8257
8258 * fbsd-nat.c: [!HAVE_KINFO_GETVMMAP]: Include <sys/user.h> and
8259 "filestuff.h".
8260 (fbsd_find_memory_regions): Fix `mapfile' initialization.
8261
42fa2e0e
TT
82622017-08-09 Tom Tromey <tom@tromey.com>
8263
8264 * skip.c (skiplist_entry): New constructor.
8265 (skiplist_entry::enabled, skiplist_entry::function_is_regexp)
8266 (skiplist_entry::file_is_glob): Now bool.
8267 (skiplist_entry::file, skiplist_entry::function): Now
8268 std::string.
8269 (make_skip_entry): Return a unique_ptr. Use new.
8270 (free_skiplist_entry, free_skiplist_entry_cleanup)
8271 (make_free_skiplist_entry_cleanup): Remove.
8272 (skip_command, skip_disable_command, add_skiplist_entry)
8273 (skip_form_bytes, compile_skip_regexp, skip_command, skip_info)
8274 (skip_file_p, skip_gfile_p, skip_function_p, skip_rfunction_p)
8275 (function_name_is_marked_for_skip): Update.
8276 (skip_delete_command): Update. Use delete.
8277
cd3af38d
JW
82782017-08-09 Jiong Wang <jiong.wang@arm.com>
8279
8280 * aarch64-linux-tdep.c: Include "auxv.h" and "elf/common.h".
8281 (aarch64_linux_core_read_description): New function.
8282 (aarch64_linux_init_abi): Register gdbarch_core_read_description.
8283
29592bde
PA
82842017-08-09 Pedro Alves <palves@redhat.com>
8285
8286 * cp-name-parser.y (cp_comp_to_string): Return a
8287 gdb::unique_xmalloc_ptr<char>.
8288 * cp-support.c (replace_typedefs_qualified_name)
8289 (replace_typedefs): Adjust to use gdb::unique_xmalloc_ptr<char>.
8290 (cp_canonicalize_string_full): Use op= instead of explicit
8291 convertion.
8292 (cp_class_name_from_physname, method_name_from_physname)
8293 (cp_func_name, cp_remove_params): Adjust to use
8294 gdb::unique_xmalloc_ptr<char>.
8295 * cp-support.h (cp_comp_to_string): Return a
8296 gdb::unique_xmalloc_ptr<char>.
8297 * python/py-type.c (typy_lookup_type): Adjust to use
8298 gdb::unique_xmalloc_ptr<char>.
8299
b3340438
L
83002017-08-09 H.J. Lu <hongjiu.lu@intel.com>
8301
8302 * dwarf2read.c (dwarf2_string_attr): Fix a typo.
8303
e88e8651
YQ
83042017-08-09 Alex Lindsay <alexlindsay239@gmail.com>
8305 Yao Qi <yao.qi@linaro.org>
8306
8307 * cp-support.c (cp_canonicalize_string_full): Use
8308 gdb::unique_xmalloc_ptr<char>.
8309 (cp_canonicalize_string): Likewise.
8310
f5a29eb0
YQ
83112017-08-09 Yao Qi <yao.qi@linaro.org>
8312
8313 * features/Makefile (WHICH): Remove i386/ non-linux stuff.
8314 * regformats/i386/amd64-avx-avx512.dat: Remove.
8315 * regformats/i386/amd64-avx-mpx-avx512-pku.dat: Remove.
8316 * regformats/i386/amd64-avx-mpx.dat:Remove.
8317 * regformats/i386/amd64-avx.dat: Remove.
8318 * regformats/i386/amd64-mpx.dat: Remove.
8319 * regformats/i386/i386-avx-avx512.dat: Remove.
8320 * regformats/i386/i386-avx-mpx-avx512-pku.dat: Remove.
8321 * regformats/i386/i386-avx-mpx.dat: Remove.
8322 * regformats/i386/i386-mmx.dat: Remove.
8323 * regformats/i386/i386-mpx.dat: Remove.
8324
57757c2f
YQ
83252017-08-09 Yao Qi <yao.qi@linaro.org>
8326
8327 * amd64-tdep.h (tdesc_x32): Remove the declaration.
8328 * amd64-tdep.c: Don't include features/i386/x32*.c.
8329 (_initialize_amd64_tdep): Don't call initialize_tdesc_x32*
8330 functions.
8331 * features/Makefile (WHICH): Remove i386/x32, i386/x32-avx,
8332 and i386/x32-avx-avx512.
8333 (XMLTOC): Remove i386/x32-avx.xml, i386/x32-avx-avx512.xml,
8334 and i386/x32.xml.
8335 * features/i386/x32-avx-avx512.c: Removed.
8336 * features/i386/x32-avx-avx512.xml: Removed.
8337 * features/i386/x32-avx.c: Removed.
8338 * features/i386/x32-avx.xml: Removed.
8339 * features/i386/x32.c: Removed.
8340 * features/i386/x32.xml: Removed.
8341 * regformats/i386/x32-avx-avx512.dat: Removed.
8342 * regformats/i386/x32-avx.dat: Removed.
8343 * regformats/i386/x32.dat: Removed.
8344
ba7b109b
MR
83452017-08-07 Maciej W. Rozycki <macro@imgtec.com>
8346
8347 PR breakpoints/21886
8348 * mem-break.c (default_memory_insert_breakpoint): Use
8349 `->placed_address' rather than `->reqstd_address' for the
8350 breakpoint location.
8351
e347efc3
MR
83522017-08-07 Maciej W. Rozycki <macro@imgtec.com>
8353
8354 * arch-utils.c (default_print_insn): Remove arch/mach/endian
8355 assertions.
8356
0dba2a6c
MR
83572017-08-07 Maciej W. Rozycki <macro@imgtec.com>
8358
8359 * gdbarch.sh (gdbarch_info): Replace the `tdep_info' member with
8360 a union of `tdep_info', `tdesc_data' and `id'.
8361 * aarch64-tdep.c (aarch64_gdbarch_init): Use `info.tdesc_data'
8362 rather than `info.tdep_info'.
8363 * amd64-linux-tdep.c (amd64_linux_init_abi): Likewise.
8364 * i386-linux-tdep.c (i386_linux_init_abi): Likewise.
8365 * i386-tdep.c (i386_gdbarch_init): Likewise.
8366 * mips-linux-tdep.c (mips_linux_init_abi): Likewise.
8367 * mips-tdep.c (mips_gdbarch_init): Likewise.
8368 * nds32-tdep.c (nds32_gdbarch_init): Likewise.
8369 * rs6000-tdep.c (rs6000_gdbarch_init): Likewise.
8370 * ppc-linux-tdep.c (ppu2spu_sniffer): Use `info.id' rather than
8371 `info.tdep_info'.
8372 (ppc_linux_init_abi): Use `info.tdesc_data' rather than
8373 `info.tdep_info'.
8374 * sparc-tdep.c (sparc32_gdbarch_init): Likewise.
8375 * spu-multiarch.c (spu_gdbarch): Use `info.id' rather than
8376 `info.tdep_info'.
8377 * spu-tdep.c (spu_gdbarch_init): Likewise.
8378 * gdbarch.h: Regenerate.
8379
16eb6b2d
LS
83802017-08-07 Leszek Swirski <leszeks@google.com>
8381
7b005726 8382 PR symtab/20899
16eb6b2d
LS
8383 * dwarf2read.c (dwarf2_string_attr): Allow DW_FORM_GNU_strp_alt.
8384
74cbb09e
SM
83852017-08-07 Simon Marchi <simon.marchi@ericsson.com>
8386
8387 * remote-sim.c (gdbsim_load): Remove char **argv local variable.
8388 (gdbsim_open): Rename gdb_argv args object to argv.
8389
ee0c3293
TT
83902017-08-05 Tom Tromey <tom@tromey.com>
8391
8392 * compile/compile-object-load.c (compile_object_load): Use
8393 gdb::unique_xmalloc_ptr.
8394 * cli/cli-dump.c (scan_filename): Rename from
8395 scan_filename_with_cleanup. Change return type.
8396 (scan_expression): Rename from scan_expression_with_cleanup.
8397 Change return type.
8398 (dump_memory_to_file, dump_value_to_file, restore_command):
8399 Use gdb::unique_xmalloc_ptr. Update.
8400 * cli/cli-cmds.c (find_and_open_script): Use
8401 gdb::unique_xmalloc_ptr.
8402 * tracefile-tfile.c (tfile_open): Use gdb::unique_xmalloc_ptr.
8403 * symmisc.c (maintenance_print_symbols)
8404 (maintenance_print_msymbols): Use gdb::unique_xmalloc_ptr.
8405 * symfile.c (symfile_bfd_open, generic_load)
8406 (add_symbol_file_command, remove_symbol_file_command): Use
8407 gdb::unique_xmalloc_ptr.
8408 * source.c (openp): Use gdb::unique_xmalloc_ptr.
8409 * psymtab.c (maintenance_print_psymbols): Use
8410 gdb::unique_xmalloc_ptr.
8411 * corelow.c (core_open): Use gdb::unique_xmalloc_ptr.
8412 * breakpoint.c (save_breakpoints): Use gdb::unique_xmalloc_ptr.
8413 * solib.c (solib_map_sections): Use gdb::unique_xmalloc_ptr.
8414 (reload_shared_libraries_1): Likewise.
8415
3232fabd
TT
84162017-08-05 Tom Tromey <tom@tromey.com>
8417
8418 * rust-exp.y (rust_op_ptr, set_field): Remove typedefs.
8419 (rust_op_vector, rust_set_vector): New typedefs.
8420 (current_parser): New global.
8421 (work_obstack): Change to pointer type. Update all users.
8422 (rust_ast, pstate): Remove globals.
8423 (struct rust_parser): New.
8424 (%union) <params, field_inits>: Change type.
8425 (start, tuple_expr, unit_expr, struct_expr_list, literal)
8426 (field_expr, expr_list, maybe_expr_list, type_list): Update.
8427 (ast_call_ish, ast_path, ast_function_type, ast_tuple_type)
8428 (convert_params_to_types, convert_params_to_expression): Change
8429 type of "params".
8430 (ast_string): Change type of "fields".
8431 (rust_parse): Make a rust_parser. Remove cleanups.
8432 (rust_lex_tests): Make and install an auto_obstack.
8433
f02fd774
YQ
84342017-08-04 Yao Qi <yao.qi@linaro.org>
8435
8436 * configure.srv (ipa_x32_linux_regobj): New.
8437 * linux-amd64-ipa.c (get_ipa_tdesc): Use X86_TDESC_AVX_AVX512
8438 instead of X86_TDESC_AVX512.
8439 (initialize_low_tracepoint): Call
8440 init_registers_x32_avx_avx512_linux.
8441
91975afd
YQ
84422017-08-04 Yao Qi <yao.qi@linaro.org>
8443
8444 * utils.h (gdb_argv): Add namespace std for nullptr_t.
8445
2331fa3a
RK
84462017-08-03 Ruslan Kabatsayev <b7.10110111@gmail.com>
8447
8448 * MAINTAINERS (Write After Approval): Add Ruslan Kabatsayev.
8449
744e4fe1
TT
84502017-08-03 Tom Tromey <tom@tromey.com>
8451
8452 * utils.c (make_cleanup_freeargv, do_freeargv, gdb_buildargv):
8453 Remove.
8454 * utils.h (make_cleanup_freeargv, gdb_buildargv): Remove.
8455
1c034b67
TT
84562017-08-03 Tom Tromey <tom@tromey.com>
8457
8458 * python/py-param.c (compute_enum_values): Use gdb_argv.
8459
773a1edc
TT
84602017-08-03 Tom Tromey <tom@tromey.com>
8461
8462 * utils.h (struct gdb_argv_deleter): New.
8463 (gdb_argv): New class.
8464 * utils.c (gdb_argv::reset): New method.
8465 * tracepoint.c (delete_trace_variable_command): Use gdb_argv.
8466 * tracefile.c (tsave_command): Use gdb_argv.
8467 * top.c (new_ui_command): Use gdb_argv.
8468 * symmisc.c (maintenance_print_symbols)
8469 (maintenance_print_msymbols, maintenance_expand_symtabs): Use gdb_argv.
8470 * symfile.c (symbol_file_command, generic_load)
8471 (remove_symbol_file_command): Use gdb_argv.
8472 * stack.c (backtrace_command): Use gdb_argv.
8473 * source.c (add_path, show_substitute_path_command)
8474 (unset_substitute_path_command, set_substitute_path_command):
8475 Use gdb_argv.
8476 * skip.c (skip_command): Use gdb_argv. Use gdb_buildargv.
8477 * ser-mingw.c (pipe_windows_open): Use gdb_argv.
8478 * remote.c (extended_remote_run, remote_put_command)
8479 (remote_get_command, remote_delete_command): Use gdb_argv.
8480 * remote-sim.c (gdbsim_load, gdbsim_create_inferior)
8481 (gdbsim_open): Use gdb_argv.
8482 * python/py-cmd.c (gdbpy_string_to_argv): Use gdb_argv.
8483 * psymtab.c (maintenance_print_psymbols): Use gdb_argv.
8484 * procfs.c (procfs_info_proc): Use gdb_argv.
8485 * interps.c (interpreter_exec_cmd): Use gdb_argv.
8486 * infrun.c (handle_command): Use gdb_argv.
8487 * inferior.c (add_inferior_command, clone_inferior_command):
8488 Use gdb_argv.
8489 * guile/scm-string.c (gdbscm_string_to_argv): Use gdb_argv.
8490 * exec.c (exec_file_command): Use gdb_argv.
8491 * cli/cli-cmds.c (alias_command): Use gdb_argv.
8492 * compile/compile.c (build_argc_argv): Use gdb_argv.
8493
0d50bde3
TT
84942017-08-03 Tom Tromey <tom@tromey.com>
8495
8496 * python/python.c (gdbpy_decode_line): Use unique_xmalloc_ptr.
8497
7f968c89
TT
84982017-08-03 Tom Tromey <tom@tromey.com>
8499
8500 * python/python.c (compute_python_string): Return std::string.
8501 (gdbpy_eval_from_control_command): Update.
8502 (do_start_initialization): Use std::string.
8503 * python/py-varobj.c (py_varobj_iter_next): Use string_printf, not
8504 xstrprintf.
8505 * python/py-breakpoint.c (local_setattro): Use string_printf, not
8506 xstrprintf.
8507
3c9ebddd
TT
85082017-08-03 Tom Tromey <tom@tromey.com>
8509
8510 * top.h (do_restore_instream_cleanup): Remove.
8511 * top.c (do_restore_instream_cleanup): Remove.
8512 (read_command_file): Use scoped_restore.
8513 * cli/cli-script.c (execute_user_command): Use scoped_restore.
8514
b51b225e
TT
85152017-08-03 Tom Tromey <tom@tromey.com>
8516
8517 * cli/cli-script.c (execute_user_command)
8518 (execute_control_command): Use scoped_restore.
8519
ac991630
TT
85202017-08-03 Tom Tromey <tom@tromey.com>
8521
8522 * cli/cli-script.c (do_restore_user_call_depth): Remove.
8523 (execute_user_command): Remove user_call_depth; use
8524 user_args_stack's size instead.
8525
898e0c8e
TT
85262017-08-03 Tom Tromey <tom@tromey.com>
8527
8528 * top.h (in_user_command): Remove.
8529 * top.c (in_user_command): Remove.
8530 * cli/cli-script.c (do_restore_user_call_depth)
8531 (execute_user_command): Update.
8532
26fcd5d7
TT
85332017-08-03 Tom Tromey <tom@tromey.com>
8534
8535 * valops.c (search_struct_method): Use gdb::byte_vector.
8536 * valarith.c (value_concat): Use std::vector.
8537 * target.c (memory_xfer_partial): Use gdb::byte_vector.
8538 (simple_search_memory): Likewise.
8539 * printcmd.c (find_string_backward): Use gdb::byte_vector.
8540 * mi/mi-main.c (mi_cmd_data_write_memory): Use gdb::byte_vector.
8541 * gcore.c (gcore_copy_callback): Use gdb::byte_vector.
8542 * elfread.c (elf_rel_plt_read): Use std::string.
8543 * cp-valprint.c (cp_print_value): Use gdb::byte_vector.
8544 * cli/cli-dump.c (restore_section_callback): Use
8545 gdb::byte_vector.
8546
7c218e6c
TT
85472017-08-03 Tom Tromey <tom@tromey.com>
8548
8549 * jit.c (jit_reader_load_command): Use unique_xmalloc_ptr.
8550
31b68d4a
TT
85512017-08-03 Tom Tromey <tom@tromey.com>
8552
8553 * tui/tui-regs.c (tui_restore_gdbout): Remove.
8554 (tui_register_format): Use scoped_restore.
8555
2ec845e7
TT
85562017-08-03 Tom Tromey <tom@tromey.com>
8557
8558 * reverse.c (exec_direction_default): Remove.
8559 (exec_reverse_once): Use scoped_restore.
8560 * remote.c (restore_remote_timeout): Remove.
8561 (remote_flash_erase, remote_flash_write, remote_flash_done)
8562 (readchar, remote_serial_write): Use scoped_restore.
8563 * cli/cli-script.c (struct source_cleanup_lines_args)
8564 (source_cleanup_lines): Remove.
8565 (script_from_file): Use scoped_restore.
8566 * cli/cli-cmds.c (source_verbose_cleanup): Remove.
8567 (source_command): Use scoped_restore.
8568
b3bc8453
TT
85692017-08-03 Tom Tromey <tom@tromey.com>
8570
8571 * utils.h (make_cleanup_free_so): Remove.
8572 * utils.c (do_free_so, make_cleanup_free_so): Remove.
8573 * solist.h (struct so_deleter): New.
8574 (so_list_up): New typedef.
8575 * solib-svr4.c (svr4_read_so_list): Use so_list_up.
8576
e3ad2841
TT
85772017-08-03 Tom Tromey <tom@tromey.com>
8578
8579 * utils.h (make_cleanup_restore_current_language): Remove.
8580 * utils.c (do_restore_current_language)
8581 (make_cleanup_restore_current_language): Remove.
8582 * parse.c (parse_exp_in_context_1)
8583 (parse_expression_with_language): Use
8584 scoped_restore_current_language.
8585 * mi/mi-main.c (mi_cmd_execute): Use
8586 scoped_restore_current_language.
8587 * language.h (scoped_restore_current_language): New class.
8588
b80cf838
TT
85892017-08-03 Tom Tromey <tom@tromey.com>
8590
8591 * compile/compile.c (cleanup_unlink_file): Remove.
8592 (compile_to_object): Use gdb::unlinker.
8593 (eval_compile_command): Likewise.
8594
fad0444a
TT
85952017-08-03 Tom Tromey <tom@tromey.com>
8596
8597 * utils.h (make_cleanup_fclose): Remove.
8598 * utils.c (do_fclose_cleanup, make_cleanup_fclose): Remove.
8599
6e7bc05c
TT
86002017-08-03 Tom Tromey <tom@tromey.com>
8601
8602 * top.c (open_terminal_stream): Return gdb_file_up.
8603 (new_ui_command): Update.
8604
4a45905b
TT
86052017-08-03 Tom Tromey <tom@tromey.com>
8606
8607 * source.c (print_source_lines_base, forward_search_command)
8608 (reverse_search_command): Use gdb_file_up.
8609
7cd06d6e
TT
86102017-08-03 Tom Tromey <tom@tromey.com>
8611
8612 * fbsd-nat.c (fbsd_find_memory_regions): Update.
8613
ed166945
TT
86142017-08-03 Tom Tromey <tom@tromey.com>
8615
8616 * cli/cli-cmds.c (find_and_open_script): Change return type.
8617 Remove "streamp" and "full_path" parameters.
8618 (source_script_with_search): Update.
8619 * auto-load.c (source_script_file): Update.
8620 * cli/cli-cmds.h (find_and_open_script): Change type.
8621 (open_script): New struct.
8622
d419f42d
TT
86232017-08-03 Tom Tromey <tom@tromey.com>
8624
8625 * xml-support.c (xml_fetch_content_from_file): Update.
8626 * ui-file.c (stdio_file::open): Update.
8627 * tracefile-tfile.c (tfile_start): Update.
8628 * remote.c (remote_file_put, remote_file_get): Update.
8629 * nat/linux-procfs.c (linux_proc_get_int)
8630 (linux_proc_pid_get_state, linux_proc_tid_get_name): Update.
8631 * nat/linux-osdata.c (linux_common_core_of_thread): Update.
8632 (command_from_pid, commandline_from_pid, linux_xfer_osdata_cpus)
8633 (print_sockets, linux_xfer_osdata_shm, linux_xfer_osdata_sem)
8634 (linux_xfer_osdata_msg, linux_xfer_osdata_modules): Update.
8635 * nat/linux-btrace.c (linux_determine_kernel_start): Update.
8636 * linux-nat.c (linux_proc_pending_signals): Update.
8637 * dwarf2read.c (write_psymtabs_to_index): Use gdb_file_up.
8638 (file_closer): Remove.
8639 * compile/compile.c (compile_to_object): Update.
8640 * common/filestuff.h (struct gdb_file_deleter): New.
8641 (gdb_file_up): New typedef.
8642 (gdb_fopen_cloexec): Change return type.
8643 * common/filestuff.c (gdb_fopen_cloexec): Return gdb_file_up.
8644 * cli/cli-dump.c (fopen_with_cleanup): Remove.
8645 (dump_binary_file, restore_binary_file): Update.
8646 * auto-load.c (auto_load_objfile_script_1): Update.
8647
4a2b031d
TT
86482017-08-03 Tom Tromey <tom@tromey.com>
8649
8650 * tracepoint.c (tvariables_info_1): Use ui_out_emit_table.
8651 (info_static_tracepoint_markers_command): Likewise.
8652 * solib.c (info_sharedlibrary_command): Use ui_out_emit_table.
8653 * skip.c (skip_info): Use ui_out_emit_table.
8654 * progspace.c (print_program_space): Use ui_out_emit_table.
8655 * osdata.c (info_osdata): Use ui_out_emit_table.
8656 * mi/mi-cmd-info.c (mi_cmd_info_ada_exceptions): Use
8657 ui_out_emit_table.
8658 * linux-thread-db.c (info_auto_load_libthread_db): Use
8659 ui_out_emit_table.
8660 * inferior.c (print_inferior): Use ui_out_emit_table.
8661 * gdb_bfd.c (maintenance_info_bfds): Use ui_out_emit_table.
8662 * breakpoint.c (breakpoint_1): Use ui_out_emit_table.
8663 * auto-load.c (auto_load_info_scripts): Use ui_out_emit_table.
8664 * ada-tasks.c (print_ada_task_info): Use ui_out_emit_table.
8665 * ui-out.h (class ui_out_emit_table): New.
8666
a4f320fd
MR
86672017-08-02 Maciej W. Rozycki <macro@imgtec.com>
8668
8669 * mips-tdep.c (mips_fpu_type_str): New function.
8670 (mips_dump_tdep): Call it.
8671
a2f1f308
MR
86722017-08-01 Maciej W. Rozycki <macro@imgtec.com>
8673
8674 * mips-tdep.c (mips_gdbarch_init): Use MIPS_FPU_TYPE to access
8675 `->mips_fpu_type'.
8676
7e5ed83b
XR
86772017-07-31 Xavier Roirand <roirand@adacore.com>
8678
8679 * solib-darwin.c (DYLD_VERSION_MAX): Increase value.
8680
4c9dc811
XR
86812017-07-27 Xavier Roirand <roirand@adacore.com>
8682
8683 * MAINTAINERS (Write After Approval): Add Xavier Roirand.
8684
27d41eac
YQ
86852017-07-26 Yao Qi <yao.qi@linaro.org>
8686
8687 * cli/cli-cmds.c (maintenancechecklist): New variable.
8688 * gdbcmd.h (maintenancechecklist): Declare it.
8689 * i386-linux-tdep.c (_initialize_i386_linux_tdep) [GDB_SELF_TEST]:
8690 Call i386_linux_read_description with different masks.
8691 * maint.c (maintenance_check_command): New function.
8692 (_initialize_maint_cmds): Call add_prefix_cmd.
8693 * target-descriptions.c (tdesc_reg): override operator != and ==.
8694 (tdesc_type): Likewise.
8695 (tdesc_feature): Likewise.
8696 (target_desc): Likewise.
8697 [GDB_SELF_TEST] (selftests::record_xml_tdesc): New function.
8698 (maintenance_check_xml_descriptions): New function.
8699 (_initialize_target_descriptions) Add command "xml-descriptions".
8700 * target-descriptions.h (selftests::record_xml_tdesc): Declare.
8701
ea03d0d3
YQ
87022017-07-26 Yao Qi <yao.qi@linaro.org>
8703
8704 * i386-linux-tdep.c: Don't include features/i386/i386-*linux.c.
8705 Include features/i386/32bit-*.c.
8706 (i386_linux_read_description): Generate target description if it
8707 doesn't exist.
8708 (_initialize_i386_linux_tdep): Don't call _initialize_tdesc_i386
8709 functions.
8710 * features/i386/32bit-linux.c: Re-generated.
8711 * features/i386/32bit-sse.c: Likewise.
8712 * target-descriptions.c (print_c_feature::visit): Print code to
8713 set register number if needed.
8714 (print_c_feature) <m_next_regnum>: New field.
8715
25aa13e5
YQ
87162017-07-26 Yao Qi <yao.qi@linaro.org>
8717
8718 * features/Makefile (CFILES): Rename with TDESC_CFILES.
8719 (FEATURE_XMLFILES): New.
8720 (FEATURE_CFILES): New.
8721 New rules.
8722 (clean-cfiles): Remove generated c files.
8723 * features/i386/32bit-avx.c: Generated.
8724 * features/i386/32bit-avx512.c: Generated.
8725 * features/i386/32bit-core.c: Generated.
8726 * features/i386/32bit-linux.c: Generated.
8727 * features/i386/32bit-mpx.c: Generated.
8728 * features/i386/32bit-pkeys.c: Generated.
8729 * features/i386/32bit-sse.c: Generated.
8730 * target-descriptions.c: Include algorithm.
8731 (tdesc_element_visitor): Add method visit_end.
8732 (print_c_tdesc): Implement visit_end.
8733 (print_c_tdesc:: m_filename_after_features): Move it to
8734 protected.
8735 (print_c_feature): New class.
8736 (maint_print_c_tdesc_cmd): Use print_c_feature if XML file
8737 name starts with "i386/32bit-".
8738
6eb1e6a8
YQ
87392017-07-26 Yao Qi <yao.qi@linaro.org>
8740
8741 * target-descriptions.c (tdesc_element_visitor): New class.
8742 (tdesc_element): New class.
8743 (tdesc_reg): Inherit from tdesc_element.
8744 (tdesc_reg::accept): New function.
8745 (tdesc_type): Inherit from tdesc_element.
8746 (tdesc_type::accept): New function.
8747 (tdesc_feature): Inherit from tdesc_element.
8748 (tdesc_feature::accept): New function.
8749 (target_desc): Inherit from tdesc_element.
8750 (target_desc::target_desc): New.
8751 (target_desc::~target_desc): New.
8752 (target_desc::accept): New.
8753 (allocate_target_description): Use new.
8754 (free_target_description): Use delete.
8755 (print_c_tdesc): New class.
8756 (maint_print_c_tdesc_cmd): Adjust.
8757
8758 * features/aarch64.c: Re-generated.
8759 * features/arc-arcompact.c: Re-generated.
8760 * features/arc-v2.c: Re-generated.
8761 * features/arm/arm-with-iwmmxt.c: Re-generated.
8762 * features/arm/arm-with-m.c: Re-generated.
8763 * features/arm/arm-with-m-fpa-layout.c: Re-generated.
8764 * features/arm/arm-with-m-vfp-d16.c: Re-generated.
8765 * features/arm/arm-with-neon.c: Re-generated.
8766 * features/arm/arm-with-vfpv2.c: Re-generated.
8767 * features/arm/arm-with-vfpv3.c: Re-generated.
8768 * features/i386/amd64-avx-avx512.c: Re-generated.
8769 * features/i386/amd64-avx-avx512-linux.c: Re-generated.
8770 * features/i386/amd64-avx.c: Re-generated.
8771 * features/i386/amd64-avx-linux.c: Re-generated.
8772 * features/i386/amd64-avx-mpx-avx512-pku.c: Re-generated.
8773 * features/i386/amd64-avx-mpx-avx512-pku-linux.c: Re-generated.
8774 * features/i386/amd64-avx-mpx.c: Re-generated.
8775 * features/i386/amd64-avx-mpx-linux.c: Re-generated.
8776 * features/i386/amd64.c: Re-generated.
8777 * features/i386/amd64-linux.c: Re-generated.
8778 * features/i386/amd64-mpx.c: Re-generated.
8779 * features/i386/amd64-mpx-linux.c: Re-generated.
8780 * features/i386/i386-avx-avx512.c: Re-generated.
8781 * features/i386/i386-avx-avx512-linux.c: Re-generated.
8782 * features/i386/i386-avx.c: Re-generated.
8783 * features/i386/i386-avx-linux.c: Re-generated.
8784 * features/i386/i386-avx-mpx-avx512-pku.c: Re-generated.
8785 * features/i386/i386-avx-mpx-avx512-pku-linux.c: Re-generated.
8786 * features/i386/i386-avx-mpx.c: Re-generated.
8787 * features/i386/i386-avx-mpx-linux.c: Re-generated.
8788 * features/i386/i386.c: Re-generated.
8789 * features/i386/i386-linux.c: Re-generated.
8790 * features/i386/i386-mmx.c: Re-generated.
8791 * features/i386/i386-mmx-linux.c: Re-generated.
8792 * features/i386/i386-mpx.c: Re-generated.
8793 * features/i386/i386-mpx-linux.c: Re-generated.
8794 * features/i386/x32-avx-avx512.c: Re-generated.
8795 * features/i386/x32-avx-avx512-linux.c: Re-generated.
8796 * features/i386/x32-avx.c: Re-generated.
8797 * features/i386/x32-avx-linux.c: Re-generated.
8798 * features/i386/x32.c: Re-generated.
8799 * features/i386/x32-linux.c: Re-generated.
8800 * features/microblaze.c: Re-generated.
8801 * features/microblaze-with-stack-protect.c: Re-generated.
8802 * features/mips64-dsp-linux.c: Re-generated.
8803 * features/mips64-linux.c: Re-generated.
8804 * features/mips-dsp-linux.c: Re-generated.
8805 * features/mips-linux.c: Re-generated.
8806 * features/nds32.c: Re-generated.
8807 * features/nios2.c: Re-generated.
8808 * features/nios2-linux.c: Re-generated.
8809 * features/rs6000/powerpc-32.c: Re-generated.
8810 * features/rs6000/powerpc-32l.c: Re-generated.
8811 * features/rs6000/powerpc-403.c: Re-generated.
8812 * features/rs6000/powerpc-403gc.c : Re-generated.
8813 * features/rs6000/powerpc-405.c: Re-generated.
8814 * features/rs6000/powerpc-505.c: Re-generated.
8815 * features/rs6000/powerpc-601.c: Re-generated.
8816 * features/rs6000/powerpc-602.c: Re-generated.
8817 * features/rs6000/powerpc-603.c: Re-generated.
8818 * features/rs6000/powerpc-604.c: Re-generated.
8819 * features/rs6000/powerpc-64.c: Re-generated.
8820 * features/rs6000/powerpc-64l.c: Re-generated.
8821 * features/rs6000/powerpc-7400.c: Re-generated.
8822 * features/rs6000/powerpc-750.c: Re-generated.
8823 * features/rs6000/powerpc-860.c: Re-generated.
8824 * features/rs6000/powerpc-altivec32.c: Re-generated.
8825 * features/rs6000/powerpc-altivec32l.c: Re-generated.
8826 * features/rs6000/powerpc-altivec64.c: Re-generated.
8827 * features/rs6000/powerpc-altivec64l.c: Re-generated.
8828 * features/rs6000/powerpc-cell32l.c: Re-generated.
8829 * features/rs6000/powerpc-cell64l.c: Re-generated.
8830 * features/rs6000/powerpc-e500.c: Re-generated.
8831 * features/rs6000/powerpc-e500l.c: Re-generated.
8832 * features/rs6000/powerpc-isa205-32l.c: Re-generated.
8833 * features/rs6000/powerpc-isa205-64l.c: Re-generated.
8834 * features/rs6000/powerpc-isa205-altivec32l.c: Re-generated.
8835 * features/rs6000/powerpc-isa205-altivec64l.c: Re-generated.
8836 * features/rs6000/powerpc-isa205-vsx32l.c: Re-generated.
8837 * features/rs6000/powerpc-isa205-vsx64l.c: Re-generated.
8838 * features/rs6000/powerpc-vsx32.c: Re-generated.
8839 * features/rs6000/powerpc-vsx32l.c: Re-generated.
8840 * features/rs6000/powerpc-vsx64.c: Re-generated.
8841 * features/rs6000/powerpc-vsx64l.c: Re-generated.
8842 * features/rs6000/rs6000.c: Re-generated.
8843 * features/s390-linux32.c: Re-generated.
8844 * features/s390-linux32v1.c: Re-generated.
8845 * features/s390-linux32v2.c: Re-generated.
8846 * features/s390-linux64.c: Re-generated.
8847 * features/s390-linux64v1.c: Re-generated.
8848 * features/s390-linux64v2.c: Re-generated.
8849 * features/s390-te-linux64.c: Re-generated.
8850 * features/s390-tevx-linux64.c: Re-generated.
8851 * features/s390-vx-linux64.c: Re-generated.
8852 * features/s390x-linux64.c: Re-generated.
8853 * features/s390x-linux64v1.c: Re-generated.
8854 * features/s390x-linux64v2.c: Re-generated.
8855 * features/s390x-te-linux64.c: Re-generated.
8856 * features/s390x-tevx-linux64.c: Re-generated.
8857 * features/s390x-vx-linux64.c: Re-generated.
8858 * features/sparc/sparc32-solaris.c: Re-generated.
8859 * features/sparc/sparc64-solaris.c: Re-generated.
8860 * features/tic6x-c62x.c: Re-generated.
8861 * features/tic6x-c62x-linux.c: Re-generated.
8862 * features/tic6x-c64x.c: Re-generated.
8863 * features/tic6x-c64x-linux.c: Re-generated.
8864 * features/tic6x-c64xp.c: Re-generated.
8865 * features/tic6x-c64xp-linux.c: Re-generated.
8866
35b4818d
YQ
88672017-07-26 Yao Qi <yao.qi@linaro.org>
8868
8869 * i386-linux-tdep.c (i386_linux_read_description): New function.
8870 (i386_linux_core_read_description): Call
8871 i386_linux_read_description.
8872 * i386-linux-tdep.h (i386_linux_read_description): Declare.
8873 (tdesc_i386_linux, tdesc_i386_mmx_linux): Remove declarations.
8874 (tdesc_i386_avx_linux, tdesc_i386_mpx_linux): Likewise
8875 (tdesc_i386_avx_mpx_linux, tdesc_i386_avx_avx512_linux): Likewise.
8876 (tdesc_i386_avx_mpx_avx512_pku_linux): Likewise.
8877 * x86-linux-nat.c (x86_linux_read_description): Call
8878 i386_linux_read_description.
8879
8e2141c6
YQ
88802017-07-26 Yao Qi <yao.qi@linaro.org>
8881
8882 * NEWS: Mention it.
8883 * features/Makefile (%.c: %.xml): Pass the xml file name to
8884 command "maint print c-tdesc".
8885 * target-descriptions.c (maint_print_c_tdesc_cmd): Get file
8886 name from 'arg'.
8887
b468ff4c
YQ
88882017-07-26 Yao Qi <yao.qi@linaro.org>
8889
8890 * target-descriptions.c (target_desc): Add ctor and dtor. Do
8891 in-class initialization.
8892 (tdesc_create_feature): Call new instead of XCNEW.
8893 (free_target_description): Ue delete.
8894
b9c0e1b4
JB
88952017-07-25 John Baldwin <jhb@FreeBSD.org>
8896
8897 * configure.nat: Add "-lkvm" for NetBSD/sparc64 and fix typo.
8898
a04b5337
YQ
88992017-07-25 Yao Qi <yao.qi@linaro.org>
8900
8901 * amd64-tdep.c (amd64_init_abi): Make argument default_tdesc
8902 constant.
8903 (amd64_x32_init_abi): Likewise.
8904 * amd64-tdep.h (amd64_init_abi): Update declaration.
8905 (amd64_x32_init_abi): Likewise.
8906
02ad7fc2
YQ
89072017-07-25 Yao Qi <yao.qi@linaro.org>
8908
8909 PR tdep/21717
8910 * arm-linux-nat.c (arm_linux_fetch_inferior_registers): Update
8911 condition for FPSCR.
8912 (arm_linux_store_inferior_registers): Likewise.
8913
b6f48cb0
TT
89142017-07-22 Tom Tromey <tom@tromey.com>
8915
8916 * break-catch-syscall.c (struct catch_syscall_inferior_data)
8917 <syscalls_counts>: Now a std::vector.
8918 (get_catch_syscall_inferior_data): Use "new".
8919 (catch_syscall_inferior_data_cleanup): Use "delete".
8920 (insert_catch_syscall, remove_catch_syscall)
8921 (clear_syscall_counts): Update.
8922
e12c9b7a
TT
89232017-07-22 Tom Tromey <tom@tromey.com>
8924
8925 * break-catch-syscall.c (syscall_catchpoint)
8926 <syscalls_to_be_caught>: Now a std::vector<int>
8927 (~syscall_catchpoint): Remove.
8928 (insert_catch_syscall, remove_catch_syscall)
8929 (breakpoint_hit_catch_syscall, print_one_catch_syscall)
8930 (print_mention_catch_syscall, print_recreate_catch_syscall):
8931 Update.
8932 (create_syscall_event_catchpoint): Change type of "filter"
8933 parameter.
8934 (catch_syscall_split_args): Return a std::vector.
8935 (catch_syscall_command_1, catching_syscall_number_1): Update.
8936
4fa8aeac
TT
89372017-07-22 Tom Tromey <tom@tromey.com>
8938
8939 * break-catch-throw.c (struct exception_catchpoint)
8940 <exception_rx>: Now a std::string.
8941 (~exception_catchpoint): Remove.
8942 (print_one_detail_exception_catchpoint): Update.
8943 (handle_gnu_v3_exceptions): Change type of except_rx.
8944 (extract_exception_regexp): Return a std::string.
8945 (catch_exception_command_1): Update.
8946
f746a154
TT
89472017-07-22 Tom Tromey <tom@tromey.com>
8948
8949 * break-catch-sig.c (gdb_signal_type): Remove typedef.
8950 (struct signal_catchpoint) <signals_to_be_caught>: Now a
8951 std::vector.
8952 <catch_all>: Now a bool.
8953 (~signal_catchpoint): Remove.
8954 (signal_catchpoint_insert_location)
8955 (signal_catchpoint_remove_location)
8956 (signal_catchpoint_breakpoint_hit, signal_catchpoint_print_one)
8957 (signal_catchpoint_print_mention)
8958 (signal_catchpoint_print_recreate)
8959 (signal_catchpoint_explains_signal): Update.
8960 (create_signal_catchpoint): Change type of "filter" and
8961 "catch_all".
8962 (catch_signal_split_args): Return a std::vector. Change type of
8963 "catch_all".
8964 (catch_signal_command): Update.
8965
47e77640
PA
89662017-07-20 Pedro Alves <palves@redhat.com>
8967
8968 * ada-lang.c (ada_language_defn): Make extern.
8969 (_initialize_ada_language): Remove add_language call.
8970 * c-lang.c (c_language_defn, cplus_language_defn)
8971 (asm_language_defn, minimal_language_defn): Make extern.
8972 (_initialize_c_language): Delete.
8973 * completer.c (compare_cstrings): Delete, moved to utils.h.
8974 * d-lang.c (d_language_defn): Make extern.
8975 (_initialize_d_language): Remove add_language calls.
8976 * defs.h (enum language): Add comment.
8977 * f-lang.c (f_language_defn): Make extern.
8978 (_initialize_f_language): Remove add_language call.
8979 * go-lang.c (go_language_defn): Make extern.
8980 (_initialize_go_language): Remove add_language call.
8981 * language.c: Include <algorithm>.
8982 (languages): Redefine as const array.
8983 (languages_size, languages_allocsize, DEFAULT_ALLOCSIZE): Delete.
8984 (set_language_command): Handle "local". Use for-range loop.
8985 (set_language): Remove loop.
8986 (language_enum): Rewrite.
8987 (language_def, language_str): Remove loops.
8988 (add_language): Delete.
8989 (add_set_language_command): New, based on add_languages.
8990 (skip_language_trampoline): Adjust.
8991 (local_language_defn): Delete.
8992 (language_gdbarch_post_init): Adjust.
8993 (_initialize_language): Remove add_language calls. Call
8994 add_set_language_command.
8995 * language.h (add_language): Delete.
8996 (auto_language_defn)
8997 (unknown_language_defn, minimal_language_defn, ada_language_defn)
8998 (asm_language_defn, c_language_defn, cplus_language_defn)
8999 (d_language_defn, f_language_defn, go_language_defn)
9000 (m2_language_defn, objc_language_defn, opencl_language_defn)
9001 (pascal_language_defn, rust_language_defn): Declare.
9002 * m2-lang.c (m2_language_defn): Make extern.
9003 (_initialize_m2_language): Remove add_language call.
9004 * objc-lang.c (objc_language_defn): Make extern.
9005 (_initialize_objc_language): Remove add_language call.
9006 * opencl-lang.c (opencl_language_defn): Make extern.
9007 (_initialize_opencl_language): Remove add_language call.
9008 * p-lang.c (pascal_language_defn): Make extern.
9009 (_initialize_pascal_language): Delete.
9010 * rust-lang.c (rust_language_defn): Make extern.
9011 (_initialize_rust_language): Delete.
9012 * utils.h (compare_cstrings): New static inline function.
9013
edb0c9cb
PA
90142017-07-20 Pedro Alves <palves@redhat.com>
9015
9016 * ada-lang.c (ada_to_fixed_type_1): Adjust.
9017 (get_var_value): Constify parameters.
9018 (get_int_var_value): Change prototype.
9019 (to_fixed_range_type): Adjust.
9020 * ada-lang.h (get_int_var_value): Change prototype.
9021
a778f165
PA
90222017-07-20 Pedro Alves <palves@redhat.com>
9023
9024 * dwarf2read.c (dw2_lookup_symbol): Use
9025 SYMBOL_MATCHES_SEARCH_NAME.
9026 * psymtab.c (psym_lookup_symbol): Use SYMBOL_MATCHES_SEARCH_NAME.
9027
42edd901
PA
90282017-07-20 Pedro Alves <palves@redhat.com>
9029
9030 * block.c (block_iter_name_step, block_iter_name_first)
9031 (block_iter_name_next): Delete.
9032 (block_lookup_symbol_primary): Adjust to use
9033 dict_iter_match_first/dict_iter_match_next.
9034 * block.h (block_iter_name_first, block_iter_name_next): Delete
9035 declarations.
9036 (ALL_BLOCK_SYMBOLS_WITH_NAME): Adjust to use
9037 dict_iter_match_first/dict_iter_match_next.
9038
cf325299
PA
90392017-07-20 Pedro Alves <palves@redhat.com>
9040
9041 * cp-support.c (cp_find_first_component_aux): Add missing case for
9042 end of string.
9043
c5ed0576
DB
90442017-07-18 David Blaikie <dblaikie@gmail.com>
9045
9046 * dwarf2read.c (create_cus_hash_table): Re-add lost initialization
9047 of dwo_cu's dwo_file.
9048
27841e76
YQ
90492017-07-18 Yao Qi <yao.qi@linaro.org>
9050
9051 * remote.c (store_registers_using_G): Remove one line comment.
9052
cfb7e58b
YQ
90532017-07-18 Yao Qi <yao.qi@linaro.org>
9054
9055 * regcache.c (regcache_cpy): Simplify it.
9056 (regcache::cpy_no_passthrough): Remove it.
9057 * regcache.h (cpy_no_passthrough): Remove it.
9058 (regcache_dup, regcache_cpy): Update comments.
9059
386535dd
PA
90602017-07-18 Pedro Alves <palves@redhat.com>
9061
9062 * remote-sim.c (sim_command_completer): Adjust to work with a
9063 completion_tracker instead of a VEC.
9064
c45ec17c
PA
90652017-07-17 Pedro Alves <palves@redhat.com>
9066
9067 * completer.c (complete_source_filenames): New function.
9068 (complete_address_and_linespec_locations): New function.
9069 (location_completer): Use complete_address_and_linespec_locations.
9070 (completion_tracker::build_completion_result): Honor the tracker's
9071 request to suppress append.
9072 * completer.h (completion_tracker::suppress_append_ws)
9073 (completion_tracker::set_suppress_append_ws): New methods.
9074 (completion_tracker::m_suppress_append_ws): New field.
9075 (complete_source_filenames): New declaration.
9076 * linespec.c (linespec_complete_what): New.
9077 (struct ls_parser) <complete_what, completion_word,
9078 completion_quote_char, completion_quote_end, completion_tracker>:
9079 New fields.
9080 (string_find_incomplete_keyword_at_end): New.
9081 (linespec_lexer_lex_string): Record quote char. If in completion
9082 mode, don't throw.
9083 (linespec_lexer_consume_token): Advance the completion word point.
9084 (linespec_lexer_peek_token): Save/restore completion info.
9085 (save_stream_and_consume_token): New.
9086 (set_completion_after_number): New.
9087 (linespec_parse_basic): Set what to complete next depending on
9088 token. Handle function and label completions specially.
9089 (parse_linespec): Disable objc shortcut in completion mode. Set
9090 what to complete next depending on token type. Skip keyword if in
9091 completion mode.
9092 (complete_linespec_component, linespec_complete): New.
9093 * linespec.h (linespec_complete): Declare.
9094
be966d42
PA
90952017-07-17 Pedro Alves <palves@redhat.com>
9096
9097 * linespec.c (linespec_lexer_lex_string, find_toplevel_char):
9098 Handle 'operator<' / 'operator<<'.
9099
a2459270
PA
91002017-07-17 Pedro Alves <palves@redhat.com>
9101
9102 * completer.c (collect_explicit_location_matches): Handle
9103 MATCH_LABEL.
9104 (convert_explicit_location_to_linespec): New, factored out from
9105 ...
9106 (convert_explicit_location_to_sals): ... this.
9107 (complete_label): New.
9108 (linespec_complete_label, find_label_symbols_in_block): New.
9109 (find_label_symbols): Add completion_mode parameter and adjust to
9110 call find_label_symbols_in_block.
9111 * linespec.h (linespec_complete_label): Declare.
9112
c6756f62
PA
91132017-07-17 Pedro Alves <palves@redhat.com>
9114
9115 * ada-lang.c (ada_collect_symbol_completion_matches): Add
9116 complete_symbol_mode parameter.
9117 * cli/cli-cmds.c (complete_command): Get the completion result out
9118 of the handle_brkchars tracker if used a custom word point.
9119 * completer.c: Include "linespec.h".
9120 (enum explicit_location_match_type) <MATCH_LINE>: New enumerator.
9121 (advance_to_expression_complete_word_point): New.
9122 (completion_tracker::completes_to_completion_word): New.
9123 (complete_files_symbols): Pass down
9124 complete_symbol_mode::EXPRESSION.
9125 (explicit_options, probe_options): New.
9126 (collect_explicit_location_matches): Complete on the
9127 explictit_loc->foo instead of word. Use
9128 linespec_complete_function. Handle MATCH_LINE. Handle offering
9129 keyword and options completions.
9130 (backup_text_ptr): Delete.
9131 (skip_keyword): New.
9132 (complete_explicit_location): Remove 'word' parameter. Add
9133 language, quoted_arg_start and quoted_arg_end parameters.
9134 Rewrite, parsing left to right.
9135 (location_completer): Rewrite.
9136 (location_completer_handle_brkchars): New function.
9137 (symbol_completer): Pass down complete_symbol_mode::EXPRESSION.
9138 (enum complete_line_internal_reason): Adjust comments.
9139 (completion_tracker::discard_completions): New.
9140 (completer_handle_brkchars_func_for_completer): Handle
9141 location_completer.
9142 (gdb_custom_word_point_brkchars)
9143 (gdb_org_rl_basic_quote_characters): New.
9144 (gdb_completion_word_break_characters_throw)
9145 (completion_find_completion_word): Handle trackers that use a
9146 custom word point.
9147 (completion_tracker::advance_custom_word_point_by): New.
9148 (completion_tracker::build_completion_result): Don't rely on
9149 readline appending the quote char.
9150 (gdb_rl_attempted_completion_function_throw): Handle trackers that
9151 use a custom word point.
9152 (gdb_rl_attempted_completion_function): Restore
9153 rl_basic_quote_characters.
9154 * completer.h (class completion_tracker): Extend intro comment.
9155 (completion_tracker::set_quote_char)
9156 (completion_tracker::quote_char)
9157 (completion_tracker::set_use_custom_word_point)
9158 (completion_tracker::use_custom_word_point)
9159 (completion_tracker::custom_word_point)
9160 (completion_tracker::set_custom_word_point)
9161 (completion_tracker::advance_custom_word_point_by)
9162 (completion_tracker::completes_to_completion_word)
9163 (completion_tracker::discard_completions): New methods.
9164 (completion_tracker::m_quote_char)
9165 (completion_tracker::m_use_custom_word_point)
9166 (completion_tracker::m_custom_word_point): New fields.
9167 (advance_to_expression_complete_word_point): Declare.
9168 * f-lang.c (f_collect_symbol_completion_matches): Add
9169 complete_symbol_mode parameter.
9170 * language.h (struct language_defn)
9171 <la_collect_symbol_completion_matches>: Add complete_symbol_mode
9172 parameter.
9173 * linespec.c (linespec_keywords): Add NULL terminator. Make extern.
9174 (linespec_complete_function): New function.
9175 (linespec_lexer_lex_keyword): Adjust.
9176 * linespec.h (linespec_keywords, linespec_complete_function): New
9177 declarations.
9178 * location.c (find_end_quote): New function.
9179 (explicit_location_lex_one): Add explicit_completion_info
9180 parameter. Save quoting info. Don't throw if being called for
9181 completion. Don't handle Ada operators here.
9182 (is_cp_operator, skip_op_false_positives, first_of)
9183 (explicit_location_lex_one_function): New function.
9184 (string_to_explicit_location): Replace 'dont_throw' parameter with
9185 an explicit_completion_info pointer parameter. Handle it. Don't
9186 use explicit_location_lex_one to lex function names. Use
9187 explicit_location_lex_one_function instead.
9188 * location.h (struct explicit_completion_info): New.
9189 (string_to_explicit_location): Replace 'dont_throw' parameter with
9190 an explicit_completion_info pointer parameter.
9191 * symtab.c (default_collect_symbol_completion_matches_break_on):
9192 Add complete_symbol_mode parameter. Handle LINESPEC mode.
9193 (default_collect_symbol_completion_matches)
9194 (collect_symbol_completion_matches): Add complete_symbol_mode
9195 parameter.
9196 (collect_symbol_completion_matches_type): Pass down
9197 complete_symbol_mode::EXPRESSION.
9198 (collect_file_symbol_completion_matches): Add complete_symbol_mode
9199 parameter. Handle LINESPEC mode.
9200 * symtab.h (complete_symbol_mode): New.
9201 (default_collect_symbol_completion_matches_break_on)
9202 (default_collect_symbol_completion_matches)
9203 (collect_symbol_completion_matches)
9204 (collect_file_symbol_completion_matches): Add complete_symbol_mode
9205 parameter.
9206
1d550c82
PA
92072017-07-17 Pedro Alves <palves@redhat.com>
9208
9209 * utils.c (enum class strncmp_iw_mode): New.
9210 (strcmp_iw): Rename to ...
9211 (strncmp_iw_with_mode): ... this. Add string2_len and mode
9212 parameters. Handle them.
9213 (strncmp_iw): New.
9214 (strcmp_iw): Reimplement as wrapper around strncmp_iw_with_mode.
9215 * utils.h (strncmp_iw): Declare.
9216 (strcmp_iw): Move describing comments here.
9217
8090b426
PA
92182017-07-17 Pedro Alves <palves@redhat.com>
9219
9220 * c-exp.y (operator_stoken): Use CP_OPERATOR_LEN and
9221 CP_OPERATOR_STR.
9222 * c-typeprint.c (is_type_conversion_operator): Use
9223 CP_OPERATOR_STR.
9224 * cp-support.c (LENGTH_OF_OPERATOR): Delete.
9225 (cp_find_first_component_aux): Use CP_OPERATOR_STR and
9226 CP_OPERATOR_LEN.
9227 * cp-support.h (CP_OPERATOR_STR, CP_OPERATOR_LEN): New.
9228 * gnu-v2-abi.c (gnuv2_is_operator_name): Use CP_OPERATOR_STR.
9229 * gnu-v3-abi.c (gnuv3_is_operator_name): Use CP_OPERATOR_STR.
9230 * linespec.c (linespec_lexer_lex_string): Use CP_OPERATOR_LEN and
9231 CP_OPERATOR_STR.
9232 * location.c: Include "cp-support.h".
9233 (explicit_location_lex_one): Use CP_OPERATOR_LEN and
9234 CP_OPERATOR_STR.
9235 * symtab.c (operator_chars): Use CP_OPERATOR_STR and
9236 CP_OPERATOR_LEN.
9237
6a2c1b87
PA
92382017-07-17 Pedro Alves <palves@redhat.com>
9239
9240 * cli/cli-cmds.c (complete_command): Use a completion tracker
9241 along with completion_find_completion_word for handle_brkchars
9242 phase.
9243 * completer.c (RL_QF_SINGLE_QUOTE, RL_QF_DOUBLE_QUOTE)
9244 (RL_QF_BACKSLASH, RL_QF_OTHER_QUOTE): New.
9245 (struct gdb_rl_completion_word_info): New.
9246 (gdb_rl_find_completion_word): New.
9247 (completion_find_completion_word): New.
9248 * completer.h (completion_find_completion_word): Declare.
9249
eb3ff9a5
PA
92502017-07-17 Pedro Alves <palves@redhat.com>
9251
9252 * ada-lang.c (symbol_completion_match): Adjust comments.
9253 (symbol_completion_add): Replace vector parameter with
9254 completion_tracker parameter. Use it.
9255 (ada_make_symbol_completion_list): Rename to...
9256 (ada_collect_symbol_completion_matches): ... this. Add
9257 completion_tracker parameter and use it.
9258 (ada_language_defn): Adjust.
9259 * break-catch-syscall.c (catch_syscall_completer): Adjust
9260 prototype and work with completion_tracker instead of VEC.
9261 * breakpoint.c (condition_completer): Adjust prototype and work
9262 with completion_tracker instead of VEC.
9263 * c-lang.c (c_language_defn, cplus_language_defn)
9264 (asm_language_defn, minimal_language_defn): Adjust to renames.
9265 * cli/cli-cmds.c (complete_command): Rework using
9266 completion_tracker. Catch exceptions when completing.
9267 * cli/cli-decode.c (integer_unlimited_completer)
9268 (complete_on_cmdlist, complete_on_enum): Adjust prototype and work
9269 with completion_tracker instead of VEC.
9270 * command.h (struct completion_tracker): Forward declare.
9271 (completer_ftype, completer_handle_brkchars_ftype): Change
9272 types.
9273 (complete_on_cmdlist, complete_on_enum): Adjust.
9274 * completer.c: Include <algorithm>.
9275 (struct gdb_completer_state): New.
9276 (current_completion): New global.
9277 (readline_line_completion_function): Delete.
9278 (noop_completer, filename_completer)
9279 (filename_completer_handle_brkchars, complete_files_symbols)
9280 (linespec_location_completer): Adjust to work with a
9281 completion_tracker instead of a VEC.
9282 (string_or_empty): New.
9283 (collect_explicit_location_matches): Adjust to work with a
9284 completion_tracker instead of a VEC.
9285 (explicit_location_completer): Rename to ...
9286 (complete_explicit_location): ... this and adjust to work with a
9287 completion_tracker instead of a VEC.
9288 (location_completer): Adjust to work with a completion_tracker
9289 instead of a VEC.
9290 (add_struct_fields): Adjust to work with a completion_list instead
9291 of VEC.
9292 (expression_completer): Rename to ...
9293 (complete_expression): ... this and adjust to work with a
9294 completion_tracker instead of a VEC. Use complete_files_symbols.
9295 (expression_completer): Reimplement on top of complete_expression.
9296 (symbol_completer): Adjust to work with a completion_tracker
9297 instead of a VEC.
9298 (enum complete_line_internal_reason): Add describing comments.
9299 (complete_line_internal_normal_command): Adjust to work with a
9300 completion_tracker instead of a VEC.
9301 (complete_line_internal): Rename to ...
9302 (complete_line_internal_1): ... this and adjust to work with a
9303 completion_tracker instead of a VEC. Assert TEXT is NULL in the
9304 handle_brkchars phase.
9305 (new_completion_tracker): Delete.
9306 (complete_line_internal): Reimplement as TRY/CATCH wrapper around
9307 complete_line_internal_1.
9308 (free_completion_tracker): Delete.
9309 (INITIAL_COMPLETION_HTAB_SIZE): New.
9310 (completion_tracker::completion_tracker)
9311 (completion_tracker::~completion_tracker): New.
9312 (maybe_add_completion): Delete.
9313 (completion_tracker::maybe_add_completion)
9314 (completion_tracker::add_completion)
9315 (completion_tracker::add_completions): New.
9316 (throw_max_completions_reached_error): Delete.
9317 (complete_line): Adjust to work with a completion_tracker instead
9318 of a VEC. Don't create a completion_tracker_t or check for max
9319 completions here.
9320 (command_completer, command_completer_handle_brkchars)
9321 (signal_completer, reg_or_group_completer_1)
9322 (reg_or_group_completer, default_completer_handle_brkchars):
9323 Adjust to work with a completion_tracker.
9324 (gdb_completion_word_break_characters_throw): New.
9325 (gdb_completion_word_break_characters): Reimplement.
9326 (line_completion_function): Delete.
9327 (completion_tracker::recompute_lowest_common_denominator)
9328 (expand_preserving_ws)
9329 (completion_tracker::build_completion_result)
9330 (completion_result::completion_result)
9331 (completion_result::completion_result)
9332 (completion_result::~completion_result)
9333 (completion_result::completion_result)
9334 (completion_result::release_match_list, compare_cstrings)
9335 (completion_result::sort_match_list)
9336 (completion_result::reset_match_list)
9337 (gdb_rl_attempted_completion_function_throw)
9338 (gdb_rl_attempted_completion_function): New.
9339 * completer.h (completion_list, struct completion_result)
9340 (class completion_tracker): New.
9341 (complete_line): Add completion_tracker parameter.
9342 (readline_line_completion_function): Delete.
9343 (gdb_rl_attempted_completion_function): New.
9344 (noop_completer, filename_completer, expression_completer)
9345 (location_completer, symbol_completer, command_completer)
9346 (signal_completer, reg_or_group_completer): Update prototypes.
9347 (completion_tracker_t, new_completion_tracker)
9348 (make_cleanup_free_completion_tracker): Delete.
9349 (enum maybe_add_completion_enum): Delete.
9350 (maybe_add_completion): Delete.
9351 (throw_max_completions_reached_error): Delete.
9352 * corefile.c (complete_set_gnutarget): Adjust to work with a
9353 completion_tracker instead of a VEC.
9354 * cp-abi.c (cp_abi_completer): Adjust to work with a
9355 completion_tracker instead of a VEC.
9356 * d-lang.c (d_language_defn): Adjust.
9357 * disasm.c (disassembler_options_completer): Adjust to work with a
9358 completion_tracker instead of a VEC.
9359 * f-lang.c (f_make_symbol_completion_list): Rename to ...
9360 (f_collect_symbol_completion_matches): ... this. Adjust to work
9361 with a completion_tracker instead of a VEC.
9362 (f_language_defn): Adjust.
9363 * go-lang.c (go_language_defn): Adjust.
9364 * guile/scm-cmd.c (cmdscm_add_completion, cmdscm_completer):
9365 Adjust to work with a completion_tracker instead of a VEC.
9366 * infrun.c (handle_completer): Likewise.
9367 * interps.c (interpreter_completer): Likewise.
9368 * interps.h (interpreter_completer): Likewise.
9369 * language.c (unknown_language_defn, auto_language_defn)
9370 (local_language_defn): Adjust.
9371 * language.h (language_defn::la_make_symbol_completion_list):
9372 Rename to ...
9373 (language_defn::la_collect_symbol_completion_matches): ... this
9374 and adjust to work with a completion_tracker instead of a VEC.
9375 * m2-lang.c (m2_language_defn): Adjust.
9376 * objc-lang.c (objc_language_defn): Adjust.
9377 * opencl-lang.c (opencl_language_defn): Adjust.
9378 * p-lang.c (pascal_language_defn): Adjust.
9379 * python/py-cmd.c (cmdpy_completer_helper): Handle NULL word.
9380 (cmdpy_completer_handle_brkchars, cmdpy_completer): Adjust to work
9381 with a completion_tracker.
9382 * rust-lang.c (rust_language_defn): Adjust.
9383 * symtab.c (free_completion_list, do_free_completion_list)
9384 (return_val, completion_tracker): Delete.
9385 (completion_list_add_name, completion_list_add_symbol)
9386 (completion_list_add_msymbol, completion_list_objc_symbol)
9387 (completion_list_add_fields, add_symtab_completions): Add
9388 completion_tracker parameter and use it.
9389 (default_make_symbol_completion_list_break_on_1): Rename to...
9390 (default_collect_symbol_completion_matches_break_on): ... this.
9391 Add completion_tracker parameter and use it instead of allocating
9392 a completion tracker here.
9393 (default_make_symbol_completion_list_break_on): Delete old
9394 implementation.
9395 (default_make_symbol_completion_list): Delete.
9396 (default_collect_symbol_completion_matches): New.
9397 (make_symbol_completion_list): Delete.
9398 (collect_symbol_completion_matches): New.
9399 (make_symbol_completion_type): Rename to ...
9400 (collect_symbol_completion_matches_type): ... this. Add
9401 completion_tracker parameter and use it instead of VEC.
9402 (make_file_symbol_completion_list_1): Rename to...
9403 (collect_file_symbol_completion_matches): ... this. Add
9404 completion_tracker parameter and use it instead of VEC.
9405 (make_file_symbol_completion_list): Delete.
9406 (add_filename_to_list): Use completion_list instead of a VEC.
9407 (add_partial_filename_data::list): Now a completion_list.
9408 (make_source_files_completion_list): Work with a completion_list
9409 instead of a VEC.
9410 * symtab.h: Include "completer.h".
9411 (default_make_symbol_completion_list_break_on)
9412 (default_make_symbol_completion_list, make_symbol_completion_list)
9413 (make_symbol_completion_type, make_file_symbol_completion_list)
9414 (make_source_files_completion_list): Delete.
9415 (default_collect_symbol_completion_matches_break_on)
9416 (default_collect_symbol_completion_matches)
9417 (collect_symbol_completion_matches)
9418 (collect_symbol_completion_matches_type)
9419 (collect_file_symbol_completion_matches)
9420 (make_source_files_completion_list): New.
9421 * top.c (init_main): Don't install a rl_completion_entry_function
9422 hook. Install a rl_attempted_completion_function hook instead.
9423 * tui/tui-layout.c (layout_completer): Adjust to work with a
9424 completion_tracker.
9425 * tui/tui-regs.c (tui_reggroup_completer):
9426 * tui/tui-win.c (window_name_completer, focus_completer)
9427 (winheight_completer): Adjust to work with a completion_tracker.
9428 * value.c: Include "completer.h".
9429 (complete_internalvar): Adjust to work with a completion_tracker.
9430 * value.h (complete_internalvar): Likewise.
9431
6e1dbf8c
PA
94322017-07-17 Pedro Alves <palves@redhat.com>
9433
9434 * cli/cli-decode.c (set_cmd_completer_handle_brkchars): Adjust to
9435 renames.
9436 * cli/cli-decode.h (struct cmd_list_element) <completer>: Move
9437 comments to completer_ftype's declaration.
9438 <completer_handle_brkchars>: Change type to
9439 completer_handle_brkchars_ftype.
9440 * command.h (completer_ftype): Add describing comment and give
9441 names to parameters.
9442 (completer_ftype_void): Rename to ...
9443 (completer_handle_brkchars_ftype) ... this. Add describing comment.
9444 (set_cmd_completer_handle_brkchars): Adjust.
9445 * completer.c (filename_completer_handle_brkchars): New function.
9446 (complete_line_internal_normal_command): New function, factored
9447 out from ...
9448 (complete_line_internal): ... here.
9449 (command_completer_handle_brkchars)
9450 (default_completer_handle_brkchars)
9451 (completer_handle_brkchars_func_for_completer): New functions.
9452 * completer.h (set_gdb_completion_word_break_characters): Delete
9453 declaration.
9454 (completer_handle_brkchars_func_for_completer): New declaration.
9455 * python/py-cmd.c (cmdpy_completer_handle_brkchars): Adjust to use
9456 completer_handle_brkchars_func_for_completer.
9457
78b13106
PA
94582017-07-17 Pedro Alves <palves@redhat.com>
9459
9460 * completer.c (symbol_completer): New function, based on
9461 make_symbol_completion_list_fn.
9462 * completer.h (symbol_completer): New declaration.
9463 * guile/scm-cmd.c (cmdscm_completers): Adjust.
9464 * python/py-cmd.c (completers): Adjust.
9465 * symtab.c (make_symbol_completion_list_fn): Delete.
9466 * symtab.h (make_symbol_completion_list_fn): Delete.
9467 * cli/cli-decode.c (add_cmd): Adjust.
9468
bbf2f4df
PA
94692017-07-17 Pedro Alves <palves@redhat.com>
9470
9471 * Makefile.in (COMMON_OBS): Add filename-seen-cache.o.
9472 * dwarf2read.c: Include "filename-seen-cache.h".
9473 * dwarf2read.c (dwarf2_per_objfile) <filenames_cache>: New field.
9474 (dw2_map_symbol_filenames): Build and use a filenames_seen_cache.
9475 * filename-seen-cache.c: New file.
9476 * filename-seen-cache.h: New file.
9477 * symtab.c: Include "filename-seen-cache.h".
9478 (struct filename_seen_cache, INITIAL_FILENAME_SEEN_CACHE_SIZE)
9479 (create_filename_seen_cache, clear_filename_seen_cache)
9480 (delete_filename_seen_cache, filename_seen): Delete, parts moved
9481 to filename-seen-cache.h/filename-seen-cache.c.
9482 (output_source_filename, sources_info)
9483 (maybe_add_partial_symtab_filename)
9484 (make_source_files_completion_list): Adjust to use
9485 filename_seen_cache.
9486
330cdd98
PA
94872017-07-17 Pedro Alves <palves@redhat.com>
9488
9489 * dwarf2read.c (dwarf2_per_objfile): In-class initialize all
9490 fields.
9491 (dwarf2_per_objfile::dwarf2_per_objfile(objfile*, const
9492 dwarf2_debug_sections*)): New.
9493 (dwarf2_per_objfile::dwarf2_per_objfile(const
9494 dwarf2_per_objfile&)): Declare as deleted.
9495 (dwarf2_per_objfile::operator=): Declare as deleted.
9496 (dwarf2_per_objfile::dwarf2_per_objfile)
9497 (dwarf2_per_objfile::~dwarf2_per_objfile)
9498 (dwarf2_per_objfile::free_cached_comp_units): New.
9499 (dwarf2_has_info): dwarf2_per_objfile initialization code moved to
9500 ctor. Call dwarf2_per_objfile's ctor manually.
9501 (dwarf2_locate_sections): Deleted/refactored as ...
9502 (dwarf2_per_objfile::locate_sections): ... this new method.
9503 (free_cached_comp_units): Defer to
9504 dwarf2_per_objfile::free_cached_comp_units.
9505 (dwarf2_free_objfile): Call dwarf2_per_objfile's dtor manually.
9506
8880f2a9
TT
95072017-07-14 Tom Tromey <tom@tromey.com>
9508
9509 PR rust/21764:
9510 * rust-exp.y (convert_ast_to_expression): Add "want_type"
9511 parameter.
9512 <UNOP_SIZEOF>: Split into separate case.
9513 <UNOP_VAR_VALUE>: Handle want_type. Add error case.
9514
65547233
TT
95152017-07-14 Tom Tromey <tom@tromey.com>
9516
9517 PR rust/21763:
9518 * symtab.c (symbol_matches_domain): Add language_rust to special
9519 case.
9520 * rust-exp.y (convert_ast_to_expression) <OP_VAR_VALUE>: Don't
9521 treat LOC_TYPEDEF symbols as variables.
9522
8f14146e
PA
95232017-07-14 Pedro Alves <palves@redhat.com>
9524
9525 * symtab.c (make_file_symbol_completion_list_1): Iterate over
9526 symtabs matching all symtabs with SRCFILE as file name instead of
9527 only considering the first hit, with lookup_symtab.
9528
2347965c
SM
95292017-07-14 Simon Marchi <simon.marchi@ericsson.com>
9530
9531 * ax-gdb.c (gen_aggregate_elt_ref): Remove operand_name and
9532 operator_name parameters.
9533 (gen_expr): Update function call.
9534
40f4af28
SM
95352017-07-14 Simon Marchi <simon.marchi@ericsson.com>
9536
9537 * dwarf2loc.h (dwarf2_compile_expr_to_ax): Remove gdbarch
9538 parameter.
9539 * symtab.h (struct symbol_computed_ops::tracepoint_var_ref):
9540 Likewise.
9541 * dwarf2loc.c (dwarf2_compile_expr_to_ax): Remove gdbarch
9542 parameter, use agent_expr::gdbarch instead, update function
9543 calls.
9544 (locexpr_tracepoint_var_ref): Likewise.
9545 (loclist_tracepoint_var_ref): Likewise.
9546 * ax-gdb.c (gen_trace_static_fields): Likewise.
9547 (gen_traced_pop): Likewise.
9548 (gen_frame_args_address): Likewise.
9549 (gen_frame_locals_address): Likewise.
9550 (gen_var_ref): Likewise.
9551 (gen_struct_ref_recursive): Likewise.
9552 (gen_static_field): Likewise.
9553 (gen_maybe_namespace_elt): Likewise.
9554 (gen_expr): Likewise.
9555 (gen_trace_for_var): Likewise.
9556 (gen_trace_for_expr): Likewise.
9557 (gen_trace_for_return_address): Likewise.
9558
053f8057
SM
95592017-07-14 Simon Marchi <simon.marchi@ericsson.com>
9560
9561 * ax-gdb.c (gen_deref, gen_address_of): Remove unused ax
9562 parameter.
9563 (gen_struct_ref, gen_expr, gen_expr_binop_rest): Update call.
9564
6661ad48
SM
95652017-07-14 Simon Marchi <simon.marchi@ericsson.com>
9566
9567 * ax-gdb.c (gen_usual_unary): Remove exp parameter, get gdbarch
9568 from ax, update calls.
9569 (gen_usual_arithmetic): Likewise.
9570 (gen_integral_promotions): Likewise.
9571 (gen_bitfield_ref): Likewise.
9572 (gen_primitive_field): Likewise.
9573 (gen_struct_ref_recursive): Likewise.
9574 (gen_struct_ref): Likewise.
9575 (gen_maybe_namespace_elt): Likewise.
9576 (gen_struct_elt_for_reference): Likewise.
9577 (gen_namespace_elt): Likewise.
9578 (gen_aggregate_elt_ref): Likewise.
9579 (gen_expr): Get gdbarch from ax, update calls.
9580 (gen_expr_binop_rest): Likewise.
9581
c55a47e7
PA
95822017-07-13 Pedro Alves <palves@redhat.com>
9583
9584 * amd64-darwin-tdep.c (x86_darwin_init_abi_64): Pass tdesc_amd64
9585 as default tdesc.
9586 * amd64-dicos-tdep.c (amd64_dicos_init_abi):
9587 * amd64-fbsd-tdep.c (amd64fbsd_init_abi):
9588 * amd64-linux-tdep.c (amd64_linux_init_abi): Pass
9589 tdesc_amd64_linux as default tdesc. Get final tdesc from the
9590 tdep.
9591 (amd64_x32_linux_init_abi): Pass tdesc_x32_linux as default tdesc.
9592 Get final tdesc from the tdep.
9593 * amd64-nbsd-tdep.c (amd64nbsd_init_abi): Pass tdesc_amd64 as
9594 default tdesc.
9595 * amd64-obsd-tdep.c (amd64obsd_init_abi): Likewise.
9596 * amd64-sol2-tdep.c (amd64_sol2_init_abi): Likewise.
9597 * amd64-tdep.c (amd64_init_abi): Add 'default_tdesc' parameter.
9598 Use it as default tdesc.
9599 (amd64_x32_init_abi): Add 'default_tdesc' parameter, and pass it
9600 down to amd_init_abi. No longer handle fallback tdesc here.
9601 * amd64-tdep.h (tdesc_x32): Declare.
9602 (amd64_init_abi, amd64_x32_init_abi): Add 'default_tdesc'
9603 parameter.
9604 * amd64-windows-tdep.c (amd64_windows_init_abi): Pass tdesc_amd64
9605 as default tdesc.
9606
55efceab
AA
96072017-07-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
9608
9609 * s390-linux-tdep.c (s390_process_record): Add support for
9610 instructions new in arch12.
9611
0aa37b65
JB
96122017-07-11 John Baldwin <jhb@FreeBSD.org>
9613
9614 * amd64-bsd-nat.c (amd64bsd_fetch_inferior_registers): Use
9615 PT_GETFSBASE and PT_GETGSBASE.
9616 (amd64bsd_store_inferior_registers): Use PT_SETFSBASE and
9617 PT_SETGSBASE.
9618
48aeef91
JB
96192017-07-11 John Baldwin <jhb@FreeBSD.org>
9620
9621 * features/Makefile (amd64.dat, amd64-avx.dat, amd64-mpx.dat)
9622 (amd64-avx-mpx.dat, amd64-avx-avx512.dat)
9623 (amd64-avx-mpx-avx512-pku.dat): Add i386/64bit-segments.xml in
9624 those rules.
9625 * features/i386/amd64-avx-avx512.xml: Add 64bit-segments.xml.
9626 * features/i386/amd64-avx-mpx-avx512-pku.xml: Add 64bit-segments.xml.
9627 * features/i386/amd64-avx-mpx.xml: Add 64bit-segments.xml.
9628 * features/i386/amd64-avx.xml: Add 64bit-segments.xml.
9629 * features/i386/amd64-mpx.xml: Add 64bit-segments.xml.
9630 * features/i386/amd64.xml: Add 64bit-segments.xml.
9631 * features/i386/amd64-avx-avx512.c: Regenerated.
9632 * features/i386/amd64-avx-mpx-avx512-pku.c: Regenerated.
9633 * features/i386/amd64-avx-mpx.c: Regenerated.
9634 * features/i386/amd64-avx.c: Regenerated.
9635 * features/i386/amd64-mpx.c: Regenerated.
9636 * features/i386/amd64.c: Regenerated.
9637 * regformats/i386/amd64-avx-avx512.dat: Regenerated.
9638 * regformats/i386/amd64-avx-mpx-avx512-pku.dat: Regenerated.
9639 * regformats/i386/amd64-avx-mpx.dat: Regenerated.
9640 * regformats/i386/amd64-avx.dat: Regenerated.
9641 * regformats/i386/amd64-mpx.dat: Regenerated.
9642 * regformats/i386/amd64.dat: Regenerated.
9643
77c501bc
YQ
96442017-07-10 Yao Qi <yao.qi@linaro.org>
9645
9646 * features/i386/amd64-avx-avx512-linux.c: Re-generated.
9647 * features/i386/amd64-avx-mpx-avx512-pku-linux.c: Re-generated.
9648
6dc8d757
AK
96492017-07-10 Anton Kolesov <Anton.Kolesov@synopsys.com>
9650
9651 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add setenv and
9652 unsetenv.
9653 * gnulib/aclocal.m4: Regenerate.
9654 * gnulib/config.in: Regenerate.
9655 * gnulib/configure: Regenerate.
9656 * gnulib/import/Makefile.am: Regenerate.
9657 * gnulib/import/Makefile.in: Regenerate.
9658 * gnulib/import/m4/gnulib-cache.m4: Regenerate.
9659 * gnulib/import/m4/gnulib-comp.m4: Regenerate.
9660 * gnulib/import/m4/environ.m4: New file.
9661 * gnulib/import/m4/setenv.m4: New file.
9662 * gnulib/import/setenv.c: New file.
9663 * gnulib/import/unsetenv.c: New file.
9664
266934d1
SM
96652017-07-09 Simon Marchi <simon.marchi@ericsson.com>
9666
9667 * compile/compile-loc2c.c (do_compile_dwarf_expr_to_c): Read
9668 address when op is DW_OP_addr.
9669
03278692
TT
96702017-07-09 Tom Tromey <tom@tromey.com>
9671
9672 * dwarf2loc.c (dwarf2_evaluate_loc_desc_full): Reverse size
9673 check and apply to outer type.
9674
4b654465
JB
96752017-07-07 John Baldwin <jhb@FreeBSD.org>
9676
9677 * fbsd-tdep.c (LWPINFO_OFFSET, LWPINFO_PL_FLAGS)
9678 (LWPINFO64_PL_SIGINFO, LWPINFO32_PL_SIGINFO, PL_FLAG_SI)
9679 (SIZE64_SIGINFO_T, SIZE32_SIGINFO_T, fbsd_core_xfer_siginfo): New.
9680 (fbsd_init_abi): Install gdbarch "core_xfer_siginfo" method.
9681
2af9fc44
JB
96822017-07-07 John Baldwin <jhb@FreeBSD.org>
9683
9684 * fbsd-tdep.c (fbsd_core_thread_name): Use thread_section_name.
9685
382b69bb
JB
96862017-07-07 John Baldwin <jhb@FreeBSD.org>
9687
9688 * corelow.c (get_core_siginfo): Remove.
9689 (core_xfer_partial): Use the gdbarch "core_xfer_siginfo" method
9690 instead of get_core_siginfo.
9691 * gdbarch.sh (core_xfer_siginfo): New gdbarch callback.
9692 * gdbarch.h: Re-generate.
9693 * gdbarch.c: Re-generate.
9694 * linux-tdep.c (linux_core_xfer_siginfo): New.
9695 (linux_init_abi): Install gdbarch "core_xfer_siginfo" method.
9696
6e5eab33
JB
96972017-07-07 John Baldwin <jhb@FreeBSD.org>
9698
9699 * corelow.c (thread_section_name): Move to ...
9700 * gdbcore.h (thread_section_name): ... here.
9701
929edea9
JB
97022017-07-07 John Baldwin <jhb@FreeBSD.org>
9703
9704 * fbsd-nat.c [PT_LWPINFO && __LP64__] (union sigval32)
9705 (struct siginfo32): New.
9706 [PT_LWPINFO] (fbsd_siginfo_size, fbsd_convert_siginfo): New.
9707 (fbsd_xfer_partial) [PT_LWPINFO]: Handle TARGET_OBJECT_SIGNAL_INFO
9708 via ptrace(PT_LWPINFO).
9709
762c974a
JB
97102017-07-07 John Baldwin <jhb@FreeBSD.org>
9711
9712 * fbsd-tdep.c (fbsd_gdbarch_data_handle, struct fbsd_gdbarch_data)
9713 (init_fbsd_gdbarch_data, get_fbsd_gdbarch_data)
9714 (fbsd_get_siginfo_type): New.
9715 (fbsd_init_abi): Install gdbarch "get_siginfo_type" method.
9716 (_initialize_fbsd_tdep): New.
9717
33c5cd75
DB
97182017-07-06 David Blaikie <dblaikie@gmail.com>
9719
9720 * dwarf2read.c (struct dwo_file): Use a htab of dwo_unit* (rather than
9721 a singular dwo_unit*) to support multiple CUs in the same way that
9722 multiple TUs are supported.
9723 (create_cus_hash_table): Replace create_dwo_cu with a function for
9724 parsing multiple CUs from a DWO file.
9725 (open_and_init_dwo_file): Use create_cus_hash_table rather than
9726 create_dwo_cu.
9727 (lookup_dwo_cutu): Lookup CU in the hash table in the dwo_file with
9728 htab_find, rather than comparing the signature to a singleton CU in
9729 the dwo_file.
9730
8455d262
PA
97312017-07-06 Pedro Alves <palves@redhat.com>
9732
9733 * python/py-unwind.c (pyuw_dealloc_cache): Fix for loop condition.
9734
4da3eb35
PA
97352017-07-04 Pedro Alves <palves@redhat.com>
9736
9737 * gdbtypes.c (recursive_dump_type): Don't reference TYPE_STATIC.
9738 * gdbtypes.h (TYPE_STATIC): Delete.
9739 (struct fn_field) <is_public, is_abstract, is_static, is_final,
9740 is_synchronized, is_native>: Delete.
9741 <dummy>: Bump.
9742 (TYPE_FN_FIELD_PUBLIC, TYPE_FN_FIELD_STATIC, TYPE_FN_FIELD_FINAL)
9743 (TYPE_FN_FIELD_SYNCHRONIZED, TYPE_FN_FIELD_NATIVE)
9744 (TYPE_FN_FIELD_ABSTRACT): Delete.
9745
5bfd255c
SM
97462017-07-03 Simon Marchi <simon.marchi@ericsson.com>
9747
9748 * buffer.h (buffer_finish): Fix spelling mistakes.
9749
25c54127
EZ
97502017-07-01 Eli Zaretskii <eliz@gnu.org>
9751
9752 * .dir-locals.el: Automatically switch to C-style comments in
9753 versions of Emacs that support the feature.
9754
dc4bde35
SDJ
97552017-06-30 Sergio Durigan Junior <sergiodj@redhat.com>
9756 Pedro Alves <palves@redhat.com>
9757
9758 PR cli/21688
9759 * cli/cli-script.c (command_name_equals_not_inline): Remove function.
9760 (process_next_line): New variable 'inline_cmd'.
9761 Adjust 'if' clauses for "python", "compile" and "guile" to use
9762 'command_name_equals' and check for '!inline_cmd'.
9763
51ed89aa
SDJ
97642017-06-30 Sergio Durigan Junior <sergiodj@redhat.com>
9765
9766 PR cli/21688
9767 * cli/cli-script.c (command_name_equals_not_inline): New function.
9768 (process_next_line): Adjust 'if' clauses for "python", "compile"
9769 and "guile" to use command_name_equals_not_inline.
9770
eb17d413
PA
97712017-06-29 Pedro Alves <palves@redhat.com>
9772
9773 * completer.c (expression_completer): Call
9774 linespec_location_completer instead of location_completer.
9775
195bcdd5
PA
97762017-06-29 Pedro Alves <palves@redhat.com>
9777
9778 * completer.c (expression_completer): Remove code that recomputes
9779 'text' from 'word'.
9780
adc764e7
YQ
97812017-06-29 Yao Qi <yao.qi@linaro.org>
9782
9783 * regformats/regdat.sh: Generate code with
9784 "ifndef IN_PROCESS_AGENT".
9785
6e75794e
PA
97862017-06-28 Pedro Alves <palves@redhat.com>
9787
9788 * command.h: Include "common/scoped_restore.h".
9789
bc491f2e
YQ
97902017-06-28 Yao Qi <yao.qi@linaro.org>
9791
9792 * mi/mi-cmd-break.c (mi_argv_to_format): Use obstack_grow_str
9793 instead of obstack_grow.
9794
41664b45
DG
97952017-06-28 Doug Gilmore <Doug.Gilmore@imgtec.com>
9796
9797 PR gdb/21337
9798 * symfile.c (reread_symbols): Call objfiles_changed just before
9799 read_symbols.
9800
6da67eb1
PA
98012017-06-27 Pedro Alves <palves@redhat.com>
9802
9803 * symtab.c (COMPLETION_LIST_ADD_SYMBOL)
9804 (MCOMPLETION_LIST_ADD_SYMBOL): Delete macros, replace with ...
9805 (completion_list_add_symbol, completion_list_add_msymbol):
9806 ... these new functions.
9807 (add_symtab_completions)
9808 (default_make_symbol_completion_list_break_on_1): Adjust.
9809
23732b1e
PA
98102017-06-27 Pedro Alves <palves@redhat.com>
9811
9812 * objfiles.c (get_objfile_bfd_data): Call bfd_alloc instead of
9813 bfd_zalloc. Call objfile_per_bfd_storage's ctor.
9814 (free_objfile_per_bfd_storage): Call objfile_per_bfd_storage's
9815 dtor.
9816 * objfiles.h (objfile_per_bfd_storage): Add ctor. Make
9817 'storage_obstack' field an auto_obstack. In-class initialize all
9818 non-bitfield fields. Make minsyms_read bool.
9819 * symfile.c (read_symbols): Adjust.
9820
a4d1e79a
AH
98212017-06-27 Alan Hayward <alan.hayward@arm.com>
9822
9823 * remote-sim.c (gdbsim_fetch_register): Use byte_vector.
9824 (gdbsim_store_register): Likewise.
9825
8268c778
PA
98262017-06-27 Pedro Alves <palves@redhat.com>
9827
9828 * c-exp.y (name_obstack): Now an auto_obstack.
9829 (yylex): Use auto_obstack::clear.
9830 (c_parse): Use auto_obstack::clear instead of reinitializing and
9831 freeing the obstack.
9832 * c-lang.c (evaluate_subexp_c): Use auto_obstack.
9833 * d-exp.y (name_obstack): Now an auto_obstack.
9834 (yylex): Use auto_obstack::clear.
9835 (d_parse): Use auto_obstack::clear instead of reinitializing and
9836 freeing the obstack.
9837 * dwarf2loc.c (fetch_const_value_from_synthetic_pointer): Use
9838 auto_obstack.
9839 * dwarf2read.c (create_addrmap_from_index)
9840 (dwarf2_build_psymtabs_hard)
9841 (update_enumeration_type_from_children): Likewise.
9842 * gdb_obstack.h (auto_obstack): New type.
9843 * go-exp.y (name_obstack): Now an auto_obstack.
9844 (build_packaged_name): Use auto_obstack::clear.
9845 (go_parse): Use auto_obstack::clear instead of reinitializing and
9846 freeing the obstack.
9847 * linux-tdep.c (linux_make_mappings_corefile_notes): Use
9848 auto_obstack.
9849 * printcmd.c (printf_wide_c_string, ui_printf): Use auto_obstack.
9850 * rust-exp.y (work_obstack): Now an auto_obstack.
9851 (rust_parse, rust_lex_tests): Use auto_obstack::clear instead of
9852 reinitializing and freeing the obstack.
9853 * utils.c (do_obstack_free, make_cleanup_obstack_free): Delete.
9854 (host_char_to_target): Use auto_obstack.
9855 * utils.h (make_cleanup_obstack_free): Delete declaration.
9856 * valprint.c (generic_emit_char, generic_printstr): Use
9857 auto_obstack.
9858
db665f42
SM
98592017-06-27 Simon Marchi <simon.marchi@ericsson.com>
9860
9861 * darwin-nat.c (darwin_check_new_threads): Don't handle dummy
9862 thread.
9863 (darwin_init_thread_list): Don't update dummy thread.
9864 (darwin_create_inferior, darwin_attach): Don't add a dummy thread.
9865
873c0814
SM
98662017-06-26 Simon Marchi <simon.marchi@ericsson.com>
9867
9868 * record-full.c (netorder16): Remove.
9869
8b5a7a6e
SM
98702017-06-26 Simon Marchi <simon.marchi@ericsson.com>
9871
9872 * common/diagnostics.h: Define macros for GCC.
9873 (DIAGNOSTIC_IGNORE_UNUSED_FUNCTION): New macro.
9874 * common/vec.h: Include diagnostics.h.
9875 (DIAGNOSTIC_IGNORE_UNUSED_VEC_FUNCTION): New macro.
9876 (DEF_VEC_I, DEF_VEC_P, DEF_VEC_O): Ignore -Wunused-function
9877 warning.
9878
d1435379
SM
98792017-06-26 Simon Marchi <simon.marchi@ericsson.com>
9880
9881 * common/diagnostics.h (DIAGNOSTIC_IGNORE_DEPRECATED_REGISTER):
9882 New macro.
9883 * ada-lex.l: Ignore deprecated register warnings.
9884
cc75e0fd
SM
98852017-06-25 Simon Marchi <simon.marchi@ericsson.com>
9886
9887 * main.c (get_init_files): Replace "SYSTEM_GDBINIT +
9888 datadir_len" with "&SYSTEM_GDBINIT[datadir_len]".
9889
07809eaf
SM
98902017-06-25 Simon Marchi <simon.marchi@ericsson.com>
9891
9892 * dtrace-probe.c (dtrace_process_dof_probe): Put semi-colon on
9893 its own line.
9894
f076f034
SM
98952017-06-25 Simon Marchi <simon.marchi@ericsson.com>
9896
9897 * nat/x86-dregs.c (x86_show_dr): Print registers one per line.
9898
0dd5cbc5
AH
98992017-06-23 Alan Hayward <alan.hayward@arm.com>
9900
9901 * xtensa-tdep.c (XTENSA_MAX_REGISTER_SIZE): Add.
9902 (xtensa_register_write_masked): Use XTENSA_MAX_REGISTER_SIZE.
9903 (xtensa_register_read_masked): Likewise.
9904
d4c6ce5b
SDJ
99052017-06-22 Sergio Durigan Junior <sergiodj@redhat.com>
9906
9907 * common/environ.c (gdb_environ::unset): Update comment.
9908
16892a03
AH
99092017-06-22 Alan Hayward <alan.hayward@arm.com>
9910
9911 * python/py-unwind.c (pyuw_sniffer): Allocate space for
9912 registers.
9913
d7dcbefc
AH
99142017-06-22 Alan Hayward <alan.hayward@arm.com>
9915
9916 * record-full.c (record_full_exec_insn): Use byte_vector.
9917
b30ff123
YQ
99182017-06-22 Yao Qi <yao.qi@linaro.org>
9919
9920 * regformats/i386/amd64-avx-mpx-avx512-pku-linux.dat: Regenerated.
9921 * regformats/i386/amd64-avx-mpx-avx512-pku.dat: Regenerated.
9922
4fa847d7
AH
99232017-06-22 Alan Hayward <alan.hayward@arm.com>
9924
9925 * remote.c (cached_reg): Move from here...
9926 * regcache.h (cached_reg): ...to here.
9927 * python/py-unwind.c (struct reg_info): Remove.
9928 (cached_frame_info): Use cached_reg_t.
9929 (pyuw_prev_register): Likewise.
9930 (pyuw_sniffer): Use cached_reg_t and allocate registers.
9931 (pyuw_dealloc_cache): Free all registers.
9932
f4906a9a
PA
99332017-06-22 Pedro Alves <palves@redhat.com>
9934 Simon Marchi <simon.marchi@ericsson.com>
9935
9936 * unittests/environ-selftests.c (run_tests): Ignore -Wself-move
9937 warning.
9938 * common/diagnostics.h: New file.
9939
b45a1208
PA
99402017-06-22 Pedro Alves <palves@redhat.com>
9941
9942 * common/agent.h: Add include guards.
9943
e4da2c61
SM
99442017-06-21 Simon Marchi <simon.marchi@ericsson.com>
9945
9946 * target.h (struct target_ops) <to_xfer_partial>: Update doc to
9947 talk about addressable units instead of bytes.
9948
96160d60
SDJ
99492017-06-20 Sergio Durigan Junior <sergiodj@redhat.com>
9950
9951 * common/environ.c (gdb_environ::unset): Use '::iterator' instead
9952 of '::const_iterator'.
9953
9a6c7d9c
SDJ
99542017-06-20 Sergio Durigan Junior <sergiodj@redhat.com>
9955
9956 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
9957 'unittests/environ-selftests.c'.
9958 (SUBDIR_UNITTESTS_OBS): Add 'environ-selftests.o'.
9959 * charset.c (find_charset_names): Declare object 'iconv_env'.
9960 Update code to use 'iconv_env' object. Remove call to
9961 'free_environ'.
9962 * common/environ.c: Include <utility>.
9963 (make_environ): Delete function.
9964 (free_environ): Delete function.
9965 (gdb_environ::clear): New function.
9966 (gdb_environ::operator=): New function.
9967 (gdb_environ::get): Likewise.
9968 (environ_vector): Delete function.
9969 (set_in_environ): Delete function.
9970 (gdb_environ::set): New function.
9971 (unset_in_environ): Delete function.
9972 (gdb_environ::unset): New function.
9973 (gdb_environ::envp): Likewise.
9974 * common/environ.h: Include <vector>.
9975 (struct gdb_environ): Delete; transform into...
9976 (class gdb_environ): ... this class.
9977 (free_environ): Delete prototype.
9978 (init_environ, get_in_environ, set_in_environ, unset_in_environ,
9979 environ_vector): Likewise.
9980 * infcmd.c (run_command_1): Update code to call
9981 'envp' from 'gdb_environ' class.
9982 (environment_info): Update code to call methods from 'gdb_environ'
9983 class.
9984 (unset_environment_command): Likewise.
9985 (path_info): Likewise.
9986 (path_command): Likewise.
9987 * inferior.c (inferior::~inferior): Delete call to 'free_environ'.
9988 (inferior::inferior): Initialize 'environment' using the host's
9989 information.
9990 * inferior.h: Remove forward declaration of 'struct gdb_environ'.
9991 Include "environ.h".
9992 (class inferior) <environment>: Change type from 'struct
9993 gdb_environ' to 'gdb_environ'.
9994 * mi/mi-cmd-env.c (mi_cmd_env_path): Update code to call
9995 methods from 'gdb_environ' class.
9996 * solib.c (solib_find_1): Likewise
9997 * unittests/environ-selftests.c: New file.
9998
75c554cf
YQ
99992017-06-20 Yao Qi <yao.qi@linaro.org>
10000
10001 * features/i386/i386-linux.xml: Exchange the order of including
10002 32bit-linux.xml and 32bit-sse.xml.
10003 * features/i386/i386-linux.c: Regenerated.
10004
72ddacb7
YQ
100052017-06-20 Yao Qi <yao.qi@linaro.org>
10006
10007 * target-descriptions.c (tdesc_reg): Add ctor, dtor.
10008 Delete copy ctor and assignment operator.
10009 (tdesc_type): Likewise.
10010 (tdesc_feature): Likewise.
10011 (tdesc_free_reg): Remove.
10012 (tdesc_create_reg): Use new.
10013 (tdesc_free_type): Remove.
10014 (tdesc_create_vector): Use new.
10015 (tdesc_create_union): Likewise.
10016 (tdesc_create_flags): Likewise.
10017 (tdesc_create_enum): Likewise.
10018 (tdesc_free_feature): Delete.
10019 (free_target_description): Use delete.
10020
325c9fd4
JB
100212017-06-19 John Baldwin <jhb@FreeBSD.org>
10022
10023 * mips-tdep.c (print_gp_register_row): Don't error for unavailable
10024 registers.
10025
16b7a719
PA
100262017-06-19 Pedro Alves <palves@redhat.com>
10027
10028 * dwarf2read.c (write_psymtabs_to_index): Construct file_closer
10029 after gdb::unlinker.
10030
1c8e01c9
SDJ
100312017-06-19 Sergio Durigan Junior <sergiodj@redhat.com>
10032
10033 * mi/mi-cm-env.c (_initialize_mi_cmd_env): Use getenv instead of
10034 gdb_environ to access an environment variable.
10035
ffce45d2
TP
100362017-06-18 Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
10037
10038 * nat/linux-ptrace.c (linux_fork_to_function): Add cast to
10039 gdb_byte*.
10040
1d4fbac9
SM
100412017-06-17 Simon Marchi <simon.marchi@ericsson.com>
10042
10043 * nat/fork-inferior.h (trace_start_error): Add ATTRIBUTE_PRINTF.
10044
8465943a
SM
100452017-06-17 Simon Marchi <simon.marchi@ericsson.com>
10046
10047 * configure: Re-generate.
10048 * warning.m4 (build_warnings): Add -Wno-mismatched-tags.
10049
3e019bdc
SM
100502017-06-17 Simon Marchi <simon.marchi@ericsson.com>
10051
10052 * configure: Re-generate.
10053 * warning.m4: Pass -Werror to compiler when checking for
10054 supported warning flags.
10055
cf0dd6f0
SM
100562017-06-17 Simon Marchi <simon.marchi@ericsson.com>
10057
10058 * Makefile.in (COMPILE.pre): Add "-x c++".
10059
6f98355c
YQ
100602017-06-16 Alan Hayward <alan.hayward@arm.com>
10061 Pedro Alves <palves@redhat.com>
10062 Yao Qi <yao.qi@linaro.org>
10063
10064 * defs.h (RequireLongest): New.
10065 (extract_integer): Declare function template.
10066 (extract_signed_integer): Remove the declaration, but define it
10067 static inline.
10068 (extract_unsigned_integer): Likewise.
10069 (store_integer): Declare function template.
10070 (store_signed_integer): Remove the declaration, but define it
10071 static inline.
10072 (store_unsigned_integer): Likewise.
10073 * findvar.c (extract_integer): New function template.
10074 (extract_signed_integer): Remove.
10075 (extract_unsigned_integer): Remove.
10076 (extract_integer<LONGEST>, extract_integer<ULONGEST>): Explicit
10077 instantiations.
10078 (store_integer): New function template.
10079 (store_signed_integer): Remove.
10080 (store_unsigned_integer): Remove.
10081 (store_integer): Explicit instantiations.
10082 * regcache.c (regcache_raw_read_signed): Update.
10083 (regcache::raw_read): New function.
10084 (regcache::raw_read_signed): Remove.
10085 (regcache::raw_read_unsigned): Remove.
10086 (regcache_raw_read_unsigned): Update.
10087 (regcache_raw_write_unsigned): Update.
10088 (regcache::raw_write_signed): Remove.
10089 (regcache::raw_write): New function.
10090 (regcache_cooked_read_signed): Update.
10091 (regcache::raw_write_unsigned): Remove.
10092 (regcache::cooked_read_signed): Remove.
10093 (regcache_cooked_read_unsigned): Update.
10094 (regcache::cooked_read_unsigned): Remove.
10095 (regcache_cooked_write_signed): Update.
10096 (regcache_cooked_write_unsigned): Update.
10097 * regcache.h (regcache) <raw_read_signed>: Remove.
10098 <raw_write_signed, raw_read_unsigned, raw_write_unsigned>: Remove.
10099 <raw_read, raw_write>: New.
10100 <cooked_read_signed, cooked_write_signed>: Remove.
10101 <cooked_write_unsigned, cooked_read_unsigned>: Remove.
10102 <cooked_read, cooked_write>: New.
10103 * sh64-tdep.c (sh64_pseudo_register_read): Update.
10104 (sh64_pseudo_register_write): Update.
10105
a87dc45a
AK
101062017-06-16 Anton Kolesov <anton.kolesov@synopsys.com>
10107
10108 * arc-tdep.c (arc_disassembler_options): New variable.
10109 (arc_gdbarch_init): Set and use it. Use arc_delayed_print_insn instead
10110 of default_print_insn.
10111 (arc_delayed_print_insn): Set info->section when needed,
10112 use default_print_insn to retrieve a disassembler.
10113
45159d6a
SDJ
101142017-06-14 Sergio Durigan Junior <sergiodj@redhat.com>
10115
10116 PR gdb/21574
10117 * infcmd.c (_initialize_infcmd): Expand "help run" documentation
10118 to mention $SHELL and startup-with-shell.
10119
b46c4cf0
MF
101202017-06-14 Max Filippov <jcmvbkbc@gmail.com>
10121
10122 * MAINTAINERS: Move Maxim Grigoriev to the Past Maintainers.
10123
6394c606
YQ
101242017-06-14 Yao Qi <yao.qi@linaro.org>
10125
10126 * aarch64-tdep.c (aarch64_gdb_print_insn): Call
10127 default_print_insn instead of print_insn_aarch64.
10128 * arm-tdep.c (gdb_print_insn_arm): Call
10129 default_print_insn instead of print_insn_big_arm
10130 and print_insn_little_arm.
10131 * i386-tdep.c (i386_print_insn): Call default_print_insn
10132 instead of print_insn_i386.
10133 * ia64-tdep.c (ia64_print_insn): Call
10134 default_print_insn instead of print_insn_ia64.
10135 * mips-tdep.c (gdb_print_insn_mips): Call
10136 default_print_insn instead of print_insn_big_mips
10137 and print_insn_little_mips.
10138 * spu-tdep.c (gdb_print_insn_spu): Call default_print_insn
10139 instead of print_insn_spu.
10140
d5722aa2
PA
101412017-06-14 Pedro Alves <palves@redhat.com>
10142
10143 * ada-lang.c: Include "common/byte-vector.h".
10144 (ada_value_primitive_packed_val): Use gdb::byte_vector.
10145 * charset.c (wchar_iterator::iterate): Resize the vector instead
10146 of reserving it.
10147 * common/byte-vector.h: Include "common/def-vector.h".
10148 (wchar_iterator::m_out): Now a gdb::def_vector<gdb_wchar_t>.
10149 * cli/cli-dump.c: Include "common/byte-vector.h".
10150 (dump_memory_to_file, restore_binary_file): Use gdb::byte_vector.
10151 * common/byte-vector.h: New file.
10152 * common/def-vector.h: New file.
10153 * common/default-init-alloc.h: New file.
10154 * dwarf2loc.c: Include "common/byte-vector.h".
10155 (rw_pieced_value): Use gdb::byte_vector, and resize the vector
10156 instead of reserving it.
10157 * dwarf2read.c: Include "common/byte-vector.h".
10158 (data_buf::m_vec): Now a gdb::byte_vector.
10159 * gdb_regex.c: Include "common/def-vector.h".
10160 (compiled_regex::compiled_regex): Use gdb::def_vector<char>.
10161 * mi/mi-main.c: Include "common/byte-vector.h".
10162 (mi_cmd_data_read_memory): Use gdb::byte_vector.
10163 * printcmd.c: Include "common/byte-vector.h".
10164 (print_scalar_formatted): Use gdb::byte_vector.
10165 * valprint.c: Include "common/byte-vector.h".
10166 (maybe_negate_by_bytes, print_decimal_chars): Use
10167 gdb::byte_vector.
10168
01ec7a27
SM
101692017-06-13 Simon Marchi <simon.marchi@ericsson.com>
10170
10171 * darwin-nat.c: Include "nat/fork-inferior.h".
10172
848d9074
SM
101732017-06-13 Simon Marchi <simon.marchi@ericsson.com>
10174
10175 * configure.nat: Factor out Darwin bits that are not
10176 architecture-specific. Add fork-inferior.o.
10177
3b912944
SM
101782017-06-13 Simon Marchi <simon.marchi@ericsson.com>
10179
10180 * configure.nat: Factor out AIX bits that are not
10181 architecture-specific. Add fork-inferior.o.
10182
55acdf22
AA
101832017-06-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
10184
10185 * dwarf2loc.c (rw_pieced_value): New. Merge logic from...
10186 (read_pieced_value, write_pieced_value): ...here. Reduce to
10187 wrappers that just call rw_pieced_value.
10188
f65e2044
AA
101892017-06-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
10190
10191 * dwarf2loc.c (write_pieced_value): When writing the data for a
10192 memory piece, use write_memory_with_notification instead of
10193 write_memory.
10194
23f945bf
AA
101952017-06-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
10196
10197 * valops.c (read_value_memory): Change embedded_offset to
10198 represent a bit offset instead of a byte offset.
10199 * value.h (read_value_memory): Adjust comment.
10200
f236533e
AA
102012017-06-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
10202
10203 * dwarf2loc.c (read_pieced_value): Remove unnecessary variables
10204 dest_offset_bits and source_offset_bits.
10205 (write_pieced_value): Likewise.
10206
65d84b76
AA
102072017-06-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
10208
10209 * dwarf2loc.c (read_pieced_value): Respect the piece offset, as
10210 given by DW_OP_bit_piece.
10211 (write_pieced_value): Likewise.
10212
242d31ab
AA
102132017-06-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
10214
10215 * dwarf2loc.c (read_pieced_value): Move the buffer allocation and
10216 some other preparations to the places where sufficient information
10217 is available.
10218 (write_pieced_value): Likewise.
10219
03c8af18
AA
102202017-06-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
10221
10222 * dwarf2loc.c (bits_to_bytes): New function.
10223 (read_pieced_value): Fix offset calculations for register pieces
10224 on big-endian targets.
10225 (write_pieced_value): Likewise.
10226
840989c1
AA
102272017-06-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
10228
10229 * dwarf2loc.c (read_pieced_value): Remove buffer_size variable.
10230 (write_pieced_value): Likewise.
10231
359b19bb
AA
102322017-06-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
10233
10234 * dwarf2loc.c (write_pieced_value): When writing to a bit-field,
10235 transfer the source value's least significant bits, instead of its
10236 lowest-addressed ones. Rename type_len to max_offset.
10237 (read_pieced_value): Mirror above changes to write_pieced_value as
10238 applicable.
10239
07c9ca3b
AA
102402017-06-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
10241
10242 * dwarf2loc.c (write_pieced_value): In DWARF_VALUE_MEMORY,
10243 truncate full bytes from dest_offset_bits before using it as an
10244 offset into the buffer.
10245
f1cc9874
AA
102462017-06-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
10247
10248 * dwarf2loc.c (write_pieced_value): Include transfer size in
10249 byte-wise check.
10250
cdaac320
AA
102512017-06-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
10252
10253 * dwarf2loc.c (write_pieced_value): Fix copy/paste error in the
10254 calculation of this_size.
10255
af547a96
AA
102562017-06-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
10257
10258 * dwarf2loc.c (read_pieced_value): Respect parent value's offset
10259 when targeting a bit-field.
10260 (write_pieced_value): Likewise.
10261
ddd7882a
AA
102622017-06-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
10263
10264 * dwarf2loc.c (struct piece_closure) <addr_size>: Remove field.
10265 (allocate_piece_closure): Drop addr_size parameter.
10266 (dwarf2_evaluate_loc_desc_full): Adjust call to
10267 allocate_piece_closure.
10268
e9352324
AA
102692017-06-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
10270
10271 PR gdb/21226
10272 * dwarf2loc.c (read_pieced_value): Anchor stack value pieces at
10273 the LSB end, independent of endianness.
10274
d5d1163e
AA
102752017-06-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
10276
10277 * dwarf2loc.c (write_pieced_value): Fix order of calculations for
10278 size capping.
10279
032bb6ea
YQ
102802017-06-13 Yao Qi <yao.qi@linaro.org>
10281
10282 * mips-linux-nat.c: Move include features/mips*-linux.c to
10283 mips-linux-tdep.c.
10284 (_initialize_mips_linux_nat): Move initialize_tdesc_mips* calls
10285 to mips-linux-tdep.c.
10286 * mips-linux-tdep.c: Include features/mips*-linux.c
10287 (_initialize_mips_linux_tdep): Call initialize_tdesc_mips*
10288 functions.
10289 * mips-linux-tdep.h (tdesc_mips_linux): Declare.
10290 (tdesc_mips_dsp_linux, tdesc_mips64_linux): Declare.
10291 (tdesc_mips64_dsp_linux): Declare.
10292
f12f6bad
TT
102932017-06-12 Tom Tromey <tom@tromey.com>
10294
10295 * valprint.h (val_print_type_code_int): Remove.
10296 * valprint.c (generic_val_print_int): Always call
10297 val_print_scalar_formatted.
10298 (val_print_type_code_int): Remove.
10299 * printcmd.c (print_scalar_formatted): Handle options->format==0.
10300 * f-valprint.c (f_val_print): Use val_print_scalar_formatted.
10301 * c-valprint.c (c_val_print_int): Use val_print_scalar_formatted.
10302 * ada-valprint.c (ada_val_print_num): Use
10303 val_print_scalar_formatted.
10304
d9109c80
TT
103052017-06-12 Tom Tromey <tom@tromey.com>
10306
10307 * printcmd.c (print_scalar_formatted): Unify the two switches.
10308 Don't convert scalars to LONGEST.
10309
4ac0cb1c
TT
103102017-06-12 Tom Tromey <tom@tromey.com>
10311
10312 PR exp/16225:
10313 * valprint.h (print_decimal_chars): Update.
10314 * valprint.c (maybe_negate_by_bytes): New function.
10315 (print_decimal_chars): Add "is_signed" argument.
10316 * printcmd.c (print_scalar_formatted): Update.
10317
30a25466
TT
103182017-06-12 Tom Tromey <tom@tromey.com>
10319
10320 PR exp/16225:
10321 * valprint.h (print_binary_chars, print_hex_chars): Update.
10322 * valprint.c (val_print_type_code_int): Update.
10323 (print_binary_chars): Add "zero_pad" argument.
10324 (emit_octal_digit): New function.
10325 (print_octal_chars): Don't zero-pad.
10326 (print_decimal_chars): Likewise.
10327 (print_hex_chars): Add "zero_pad" argument.
10328 * sh64-tdep.c (sh64_do_fp_register): Update.
10329 * regcache.c (regcache::dump): Update.
10330 * printcmd.c (print_scalar_formatted): Update.
10331 * infcmd.c (default_print_one_register_info): Update.
10332
b3464d03
PA
103332017-06-12 Pedro Alves <palves@redhat.com>
10334 Alan Hayward <alan.hayward@arm.com>
10335
10336 * mips-tdep.c (MAX_MIPS_ABI_REGSIZE): New.
10337 (mips_eabi_push_dummy_call): Rename local 'regsize' to
10338 'abi_regsize'. Rename local array 'valbuf' to 'ref_valbuf', and
10339 use MAX_MIPS_ABI_REGSIZE instead of MAX_REGISTER_SIZE to size it.
10340 Assert that abi_regsize bytes fit in 'ref_valbuf'.
10341
4b76cda9
PA
103422017-06-12 Pedro Alves <palves@redhat.com>
10343
10344 * dwarf2read.c (mapped_symtab::data): Now a vector of
10345 symtab_index_entry instead of vector of
10346 std::unique_ptr<symtab_index_entry>. All users adjusted to check
10347 whether an element's name is NULL instead of checking whether the
10348 element itself is NULL.
10349 (find_slot): Change return type. Adjust.
10350 (hash_expand, , add_index_entry, uniquify_cu_indices)
10351 (write_hash_table): Adjust.
10352
e8f8bcb3
PA
103532017-06-12 Pedro Alves <palves@redhat.com>
10354
10355 * dwarf2read.c (recursively_count_psymbols): New function.
10356 (write_psymtabs_to_index): Call it to compute number of psyms and
10357 pass estimate size of psyms_seen to unordered_set's ctor.
10358
70a1152b
PA
103592017-06-12 Pedro Alves <palves@redhat.com>
10360
10361 * dwarf2read.c (write_hash_table): Check if key already exists
10362 before emplacing.
10363
c2f134ac
PA
103642017-06-12 Pedro Alves <palves@redhat.com>
10365
10366 * dwarf2read.c (data_buf::append_space): Rename to...
10367 (data_buf::grow): ... this, and make private. Adjust all callers.
10368 (data_buf::append_uint): New method.
10369 (add_address_entry, write_one_signatured_type)
10370 (write_psymtabs_to_index): Use it.
10371
a81e6d4d
PA
103722017-06-12 Pedro Alves <palves@redhat.com>
10373
10374 * dwarf2read.c (file_write(FILE *, const void *, size_t)): Delete.
10375 (file_write (FILE *, const std::vector<Elem>&)): Delete.
10376 (data_buf::file_write): Call ::fwrite directly.
10377
6fd931f2
PA
103782017-06-12 Pedro Alves <palves@redhat.com>
10379
10380 * dwarf2read.c (uniquify_cu_indices): Use std::unique and
10381 std::vector::erase.
10382
bc8f2430
JK
103832017-06-12 Jan Kratochvil <jan.kratochvil@redhat.com>
10384
10385 Code cleanup: C++ify .gdb_index producer.
10386 * dwarf2read.c: Include <unordered_set> and <unordered_map>.
10387 (MAYBE_SWAP) [WORDS_BIGENDIAN]: Cast to offset_type.
10388 (struct strtab_entry, hash_strtab_entry, eq_strtab_entry)
10389 (create_strtab, add_string): Remove.
10390 (file_write, data_buf): New.
10391 (struct symtab_index_entry): Use std::vector for cu_indices.
10392 (struct mapped_symtab): Use std::vector for data.
10393 (hash_symtab_entry, eq_symtab_entry, delete_symtab_entry)
10394 (create_symbol_hash_table, create_mapped_symtab, cleanup_mapped_symtab):
10395 Remove.
10396 (find_slot): Change return type. Update it to the new data structures.
10397 (hash_expand, add_index_entry): Update it to the new data structures.
10398 (offset_type_compare): Remove.
10399 (uniquify_cu_indices): Update it to the new data structures.
10400 (c_str_view, c_str_view_hasher, vector_hasher): New.
10401 (add_indices_to_cpool): Remove.
10402 (write_hash_table): Update it to the new data structures.
10403 (struct psymtab_cu_index_map, hash_psymtab_cu_index)
10404 (eq_psymtab_cu_index): Remove.
10405 (psym_index_map): New typedef.
10406 (struct addrmap_index_data): Change addr_obstack pointer to data_buf
10407 reference and std::unordered_map for cu_index_htab.
10408 (add_address_entry, add_address_entry_worker, write_address_map)
10409 (write_psymbols): Update it to the new data structures.
10410 (write_obstack): Remove.
10411 (struct signatured_type_index_data): Change types_list to a data_buf
10412 reference and psyms_seen to a std::unordered_set reference.
10413 (write_one_signatured_type, recursively_write_psymbols)
10414 (write_psymtabs_to_index): Update it to the new data structures.
10415
c4dcb155
SM
104162017-06-11 Simon Marchi <simon.marchi@ericsson.com>
10417
10418 * NEWS (Changes since GDB 8.0): Announce {set,show} debug
10419 separate-debug-file commands.
10420 * symfile.h (separate_debug_file_debug): New global.
10421 * symfile.c (separate_debug_file_debug): New global.
10422 (separate_debug_file_exists, find_separate_debug_file): Add
10423 debug output.
10424 (_initialize_symfile): Add "set debug separate-debug-file"
10425 command.
10426 * build-id.c (build_id_to_debug_bfd,
10427 find_separate_debug_file_by_buildid): Add debug output.
10428
6d45d4b4
SM
104292017-06-10 Simon Marchi <simon.marchi@polymtl.ca>
10430
10431 * gdbarch.sh (displaced_step_free_closure): Remove.
10432 * gdbarch.h, gdbarch.c: Re-generate.
10433 * aarch64-linux-tdep.c (aarch64_linux_init_abi): Don't set
10434 displaced_step_free_closure.
10435 * amd64-linux-tdep.c (amd64_linux_init_abi_common): Likewise.
10436 * arm-linux-tdep.c (arm_linux_init_abi): Likewise.
10437 * i386-linux-tdep.c (i386_linux_init_abi): Likewise.
10438 * rs6000-aix-tdep.c (rs6000_aix_init_osabi): Likewise.
10439 * rs6000-tdep.c (rs6000_gdbarch_init): Likewise.
10440 * s390-linux-tdep.c (s390_gdbarch_init): Likewise.
10441 * arch-utils.h (simple_displaced_step_free_closure): Remove.
10442 * arch-utils.c (simple_displaced_step_free_closure): Remove.
10443 * infrun.c (displaced_step_clear): Call xfree instead of
10444 gdbarch_displaced_step_free_closure.
10445
2f91880f
SDJ
104462017-06-08 Sergio Durigan Junior <sergiodj@redhat.com>
10447
10448 * common/common-utils.c (stringify_argv): Check for "arg[0] !=
10449 NULL".
10450
b8b6e72f
AH
104512017-06-08 Alan Hayward <alan.hayward@arm.com>
10452
10453 * mn10300-tdep.c (MN10300_MAX_REGISTER_SIZE): Add.
10454 (mn10300_extract_return_value): Use MN10300_MAX_REGISTER_SIZE.
10455 (mn10300_push_dummy_call): Likewise.
10456
5369082e
AH
104572017-06-08 Alan Hayward <alan.hayward@arm.com>
10458
10459 * mi/mi-main.c (register_changed_p): Use value_contents_eq.
10460
ff4ca5ac
AH
104612017-06-08 Alan Hayward <alan.hayward@arm.com>
10462
10463 * mi/mi-main.c (register_changed_p): Use cooked_read_value.
10464
aefd8b33
SDJ
104652017-06-07 Sergio Durigan Junior <sergiodj@redhat.com>
10466
10467 * NEWS (Changes since GDB 8.0): Announce that GDBserver is now
10468 able to start inferiors using a shell.
10469 (New remote packets): Announce new packet "QStartupWithShell".
10470 * remote.c: Add PACKET_QStartupWithShell.
10471 (extended_remote_create_inferior): Handle new
10472 PACKET_QStartupWithShell.
10473 (remote_protocol_features) <QStartupWithShell>: New entry for
10474 PACKET_QStartupWithShell.
10475 (_initialize_remote): Call "add_packet_config_cmd" for
10476 QStartupShell.
10477
2090129c
SDJ
104782017-06-07 Sergio Durigan Junior <sergiodj@redhat.com>
10479 Pedro Alves <palves@redhat.com>
10480
10481 * Makefile.in (HFILES_NO_SRCDIR): Add "common/common-inferior.h"
10482 and "nat/fork-inferior.h".
10483 * common/common-inferior.h: New file, with contents from
10484 "gdb/inferior.h".
10485 * commom/common-utils.c: Include "common-utils.h".
10486 (stringify_argv): New function.
10487 * common/common-utils.h (stringify_argv): New prototype.
10488 * configure.nat: Add "fork-inferior.o" as a dependency for
10489 "*linux*", "fbsd*" and "nbsd*" hosts.
10490 * corefile.c (get_exec_file): Update comment.
10491 * darwin-nat.c (darwin_ptrace_him): Call "gdb_startup_inferior"
10492 instead of "startup_inferior".
10493 (darwin_create_inferior): Call "add_thread_silent" after
10494 "fork_inferior".
10495 * fork-child.c: Cleanup unnecessary includes.
10496 (SHELL_FILE): Move to "common/common-fork-child.c".
10497 (environ): Likewise.
10498 (exec_wrapper): Initialize.
10499 (get_exec_wrapper): New function.
10500 (breakup_args): Move to "common/common-fork-child.c"; rename to
10501 "breakup_args_for_exec".
10502 (escape_bang_in_quoted_argument): Move to
10503 "common/common-fork-child.c".
10504 (saved_ui): New variable.
10505 (prefork_hook): New function.
10506 (postfork_hook): Likewise.
10507 (postfork_child_hook): Likewise.
10508 (gdb_startup_inferior): Likewise.
10509 (fork_inferior): Move to "common/common-fork-child.c". Update
10510 function to support gdbserver.
10511 (startup_inferior): Likewise.
10512 * gdbcore.h (get_exec_file): Remove declaration.
10513 * gnu-nat.c (gnu_create_inferior): Call "gdb_startup_inferior"
10514 instead of "startup_inferior". Call "add_thread_silent" after
10515 "fork_inferior".
10516 * inf-ptrace.c: Include "nat/fork-inferior.h" and "utils.h".
10517 (inf_ptrace_create_inferior): Call "gdb_startup_inferior"
10518 instead of "startup_inferior". Call "add_thread_silent" after
10519 "fork_inferior".
10520 * inferior.h: Include "common-inferior.h".
10521 (trace_start_error): Move to "common/common-utils.h".
10522 (trace_start_error_with_name): Likewise.
10523 (fork_inferior): Move prototype to "nat/fork-inferior.h".
10524 (startup_inferior): Likewise.
10525 (gdb_startup_inferior): New prototype.
10526 * nat/fork-inferior.c: New file, with contents from "fork-child.c".
10527 * nat/fork-inferior.h: New file.
10528 * procfs.c (procfs_init_inferior): Call "gdb_startup_inferior"
10529 instead of "startup_inferior". Call "add_thread_silent" after
10530 "fork_inferior".
10531 * target.h (target_terminal_init): Move prototype to
10532 "target/target.h".
10533 (target_terminal_inferior): Likewise.
10534 (target_terminal_ours): Likewise.
10535 * target/target.h (target_terminal_init): New prototype, moved
10536 from "target.h".
10537 (target_terminal_inferior): Likewise.
10538 (target_terminal_ours): Likewise.
10539 * utils.c (gdb_flush_out_err): New function.
10540
043a4934
SDJ
105412017-06-07 Sergio Durigan Junior <sergiodj@redhat.com>
10542
10543 * Makefile.in (HFILES_NO_SRCDIR): Add "common/common-gdbthread.h".
10544 * common/common-gdbthread.h: New file, with parts from
10545 "gdb/gdbthread.h".
10546 * gdbthread.h: Include "common-gdbthread.h".
10547 (switch_to_thread): Moved to "common/common-gdbthread.h".
10548
15652511
SDJ
105492017-06-07 Sergio Durigan Junior <sergiodj@redhat.com>
10550
10551 * Makefile.in (SFILES): Add "common/job-control.c".
10552 (HFILES_NO_SRCDIR): Add "common/job-control.h".
10553 (COMMON_OBS): Add "job-control.o".
10554 * common/job-control.c: New file, with contents from
10555 "gdb/inflow.c".
10556 * common/job-control.h: New file, with contents from "terminal.h".
10557 * fork-child.c: Include "job-control.h".
10558 * inflow.c: Include "job-control.h".
10559 (gdb_setpgid): Move to "common/common-inflow.c".
10560 (_initialize_inflow): Move setting of "job_control" to
10561 "handle_job_control".
10562 * terminal.h (job_control): Moved to "common/common-terminal.h".
10563 (gdb_setpgid): Likewise.
10564 * top.c: Include "job_control.h".
10565 * utils.c: Likewise.
10566 (job_control): Moved to "job-control.c".
10567
2d7cc5c7
PA
105682017-06-07 Pedro Alves <palves@redhat.com>
10569
10570 * Makefile.in (SFILES): Add gdb_regex.c.
10571 (COMMON_OBS): Add gdb_regex.o.
10572 * ada-lang.c (ada_add_standard_exceptions)
10573 (ada_add_exceptions_from_frame, name_matches_regex)
10574 (ada_add_global_exceptions, ada_exceptions_list_1): Change regex
10575 parameter type to compiled_regex. Adjust.
10576 (ada_exceptions_list): Use compiled_regex.
10577 * break-catch-throw.c (exception_catchpoint::pattern): Now a
10578 std::unique_ptr<compiled_regex>.
10579 (exception_catchpoint::~exception_catchpoint): Remove regfree
10580 call.
10581 (check_status_exception_catchpoint): Adjust to use compiled_regex.
10582 (handle_gnu_v3_exceptions): Adjust to use compiled_regex.
10583 * breakpoint.c (solib_catchpoint::compiled): Now a
10584 std::unique_ptr<compiled_regex>.
10585 (solib_catchpoint::~solib_catchpoint): Remove regfree call.
10586 (check_status_catch_solib): Adjust to use compiled_regex.
10587 (add_solib_catchpoint): Adjust to use compiled_regex.
10588 * cli/cli-cmds.c (apropos_command): Use compiled_regex.
10589 * cli/cli-decode.c (apropos_cmd): Change regex parameter to
10590 compiled_regex reference. Adjust to use it.
10591 * cli/cli-decode.h: Remove struct re_pattern_buffer forward
10592 declaration. Include "gdb_regex.h".
10593 (apropos_cmd): Change regex parameter to compiled_regex reference.
10594 * gdb_regex.c: New file.
10595 * gdb_regex.h (make_regfree_cleanup, get_regcomp_error): Delete
10596 declarations.
10597 (class compiled_regex): New.
10598 * linux-tdep.c: Include "common/gdb_optional.h".
10599 (struct mapping_regexes): New, factored out from
10600 mapping_is_anonymous_p, and adjusted to use compiled_regex.
10601 (mapping_is_anonymous_p): Use mapping_regexes wrapped in a
10602 gdb::optional and remove cleanups. Adjust to compiled_regex.
10603 * probe.c: Include "common/gdb_optional.h".
10604 (collect_probes): Use compiled_regex and gdb::optional and remove
10605 cleanups.
10606 * skip.c: Include "common/gdb_optional.h".
10607 (skiplist_entry::compiled_function_regexp): Now a
10608 gdb::optional<compiled_regex>.
10609 (skiplist_entry::compiled_function_regexp_is_valid): Delete field.
10610 (free_skiplist_entry): Remove regfree call.
10611 (compile_skip_regexp, skip_rfunction_p): Adjust to use
10612 compiled_regex and gdb::optional.
10613 * symtab.c: Include "common/gdb_optional.h".
10614 (search_symbols): Use compiled_regex and gdb::optional.
10615 * utils.c (do_regfree_cleanup, make_regfree_cleanup)
10616 (get_regcomp_error, compile_rx_or_error): Delete. Some bits moved
10617 to gdb_regex.c.
10618
50d6adef
AH
106192017-06-07 Alan Hayward <alan.hayward@arm.com>
10620
10621 * regcache.c (regcache::save): Avoid buffer use.
10622 (regcache::dump): Likewise.
10623
4a8a33c8
AH
106242017-06-07 Alan Hayward <alan.hayward@arm.com>
10625
10626 * sh-tdep.c (sh_pseudo_register_read): Remove
10627 MAX_REGISTER_SIZE.
10628 (sh_pseudo_register_write): Likewise.
10629 * sh64-tdep.c (sh64_pseudo_register_read): Likewise.
10630 (sh64_pseudo_register_write): Likewise
10631
d1be909e
AH
106322017-06-07 Alan Hayward <alan.hayward@arm.com>
10633
10634 * aarch64-tdep.c (aarch64_store_return_value): Use
10635 V_REGISTER_SIZE.
10636 (aarch64_pseudo_read_value): Likewise.
10637 (aarch64_pseudo_write): Likewise.
10638
f4a65042
YQ
106392017-06-06 Yao Qi <yao.qi@linaro.org>
10640
10641 * regformats/regdef.h (set_register_cache): Remove the
10642 declaration.
10643
9f7fb0aa
AH
106442017-06-06 Alan Hayward <alan.hayward@arm.com>
10645
10646 * frame.c (frame_unwind_register_signed): Use
10647 frame_unwind_register_value.
10648
e1e01040
PA
106492017-06-06 Pedro Alves <palves@redhat.com>
10650
10651 PR breakpoints/21553
10652 * breakpoint.c (create_breakpoints_sal_default)
10653 (init_breakpoint_sal, create_breakpoint_sal): Use
10654 gdb::unique_xmalloc_ptr for string parameters.
10655 (create_breakpoint): Constify 'extra_string' and 'cond_string'
10656 parameters. Replace cleanups with gdb::unique_xmalloc_ptr.
10657 (base_breakpoint_create_breakpoints_sal)
10658 (bkpt_create_breakpoints_sal, tracepoint_create_breakpoints_sal)
10659 (strace_marker_create_breakpoints_sal)
10660 (create_breakpoints_sal_default): Use gdb::unique_xmalloc_ptr for
10661 string parameters.
10662 * breakpoint.h (breakpoint_ops::create_breakpoints_sal): Use
10663 gdb::unique_xmalloc_ptr for string parameters.
10664 (create_breakpoint): Constify 'extra_string' and 'cond_string'
10665 parameters.
10666
fbe654c8
AH
106672017-06-06 Alan Hayward <alan.hayward@arm.com>
10668
10669 * alpha-tdep.c (alpha_register_to_value): Use
10670 get_frame_register_value.
10671 (alpha_value_to_register): Use ALPHA_REGISTER_SIZE.
10672
ae0d01d6
AH
106732017-06-06 Alan Hayward <alan.hayward@arm.com>
10674
10675 * ia64-tdep.c (IA64_MAX_FP_REGISTER_SIZE) Add.
10676 (ia64_register_to_value): Use IA64_MAX_FP_REGISTER_SIZE.
10677 (ia64_value_to_register): Likewise.
10678 (ia64_extract_return_value): Likewise.
10679 (ia64_store_return_value): Likewise.
10680 (ia64_push_dummy_call): Likewise.
10681
49cf576c
JB
106822017-06-04 Joel Brobecker <brobecker@adacore.com>
10683
10684 GDB 8.0 released.
10685
26b6a6ab
SM
106862017-06-03 Simon Marchi <simon.marchi@ericsson.com>
10687
10688 * x86-linux-nat.c (struct arch_lwp_info): Remove.
10689
22827c51
SM
106902017-06-03 Simon Marchi <simon.marchi@polymtl.ca>
10691
10692 * linux-nat.c (linux_nat_post_attach_wait): Remove FIRST
10693 parameter.
10694 (linux_nat_attach): Adjust call to linux_nat_post_attach_wait.
10695
0e05cf3a
SM
106962017-06-02 Simon Marchi <simon.marchi@ericsson.com>
10697
10698 * event-loop.c (poll_timers): Unallocate timer using delete
10699 instead of xfree.
10700
c1fc2657
SM
107012017-06-02 Simon Marchi <simon.marchi@polymtl.ca>
10702
10703 * breakpoint.h (struct breakpoint_ops) <dtor>: Remove.
10704 (struct breakpoint) <~breakpoint>: New.
10705 (struct watchpoint): Inherit from breakpoint.
10706 <~watchpoint>: New.
10707 <base>: Remove.
10708 (struct tracepoint): Inherit from breakpoint.
10709 <base>: Remove.
10710 * breakpoint.c (longjmp_breakpoint_ops): Remove.
10711 (struct longjmp_breakpoint): Inherit from breakpoint.
10712 <~longjmp_breakpoint>: New.
10713 <base>: Remove.
10714 (new_breakpoint_from_type): Remove casts.
10715 (watchpoint_in_thread_scope): Remove reference to base field.
10716 (watchpoint_del_at_next_stop): Likewise.
10717 (update_watchpoint): Likewise.
10718 (watchpoint_check): Likewise.
10719 (bpstat_check_watchpoint): Likewise.
10720 (set_longjmp_breakpoint): Likewise.
10721 (struct fork_catchpoint): Inherit from breakpoint.
10722 <base>: Remove.
10723 (struct solib_catchpoint): Inherit from breakpoint.
10724 <~solib_catchpoint>: New.
10725 <base>: Remove.
10726 (dtor_catch_solib): Change to ...
10727 (solib_catchpoint::~solib_catchpoint): ... this.
10728 (breakpoint_hit_catch_solib): Remove reference to base field.
10729 (add_solib_catchpoint): Likewise.
10730 (create_fork_vfork_event_catchpoint): Likewise.
10731 (struct exec_catchpoint): Inherit from breakpoint.
10732 <~exec_catchpoint>: New.
10733 <base>: Remove.
10734 (dtor_catch_exec): Change to ...
10735 (exec_catchpoint::~exec_catchpoint): ... this.
10736 (dtor_watchpoint): Change to ...
10737 (watchpoint::~watchpoint): ... this.
10738 (watch_command_1): Remove reference to base field.
10739 (catch_exec_command_1): Likewise.
10740 (base_breakpoint_dtor): Change to ...
10741 (breakpoint::~breakpoint): ... this.
10742 (base_breakpoint_ops): Remove dtor field value.
10743 (longjmp_bkpt_dtor): Change to ...
10744 (longjmp_breakpoint::~longjmp_breakpoint): ... this.
10745 (strace_marker_create_breakpoints_sal): Remove reference to base
10746 field.
10747 (delete_breakpoint): Don't manually call breakpoint destructor.
10748 (create_tracepoint_from_upload): Remove reference to base field.
10749 (trace_pass_set_count): Likewise.
10750 (initialize_breakpoint_ops): Don't initialize
10751 momentary_breakpoint_ops, don't set dtors.
10752 * ada-lang.c (struct ada_catchpoint): Inherit from breakpoint.
10753 <~ada_catchpoint>: New.
10754 <base>: Remove.
10755 (create_excep_cond_exprs): Remove reference to base field.
10756 (dtor_exception): Change to ...
10757 (ada_catchpoint::~ada_catchpoint): ... this.
10758 (dtor_catch_exception): Remove.
10759 (dtor_catch_exception_unhandled): Remove.
10760 (dtor_catch_assert): Remove.
10761 (create_ada_exception_catchpoint): Remove reference to base
10762 field.
10763 (initialize_ada_catchpoint_ops): Don't set dtors.
10764 * break-catch-sig.c (struct signal_catchpoint): Inherit from
10765 breakpoint.
10766 <~signal_catchpoint>: New.
10767 <base>: Remove.
10768 (signal_catchpoint_dtor): Change to ...
10769 (signal_catchpoint::~signal_catchpoint): ... this.
10770 (create_signal_catchpoint): Remove reference to base field.
10771 (initialize_signal_catchpoint_ops): Don't set dtor.
10772 * break-catch-syscall.c (struct syscall_catchpoint): Inherit
10773 from breakpoint.
10774 <~syscall_catchpoint>: New.
10775 <base>: Remove.
10776 (dtor_catch_syscall): Change to ...
10777 (syscall_catchpoint::~syscall_catchpoint): ... this.
10778 (create_syscall_event_catchpoint): Remove reference to base
10779 field.
10780 (initialize_syscall_catchpoint_ops): Don't set dtor.
10781 * break-catch-throw.c (struct exception_catchpoint): Inherit
10782 from breakpoint.
10783 <~exception_catchpoint>: New.
10784 <base>: Remove.
10785 (dtor_exception_catchpoint): Change to ...
10786 (exception_catchpoint::~exception_catchpoint): ... this.
10787 (handle_gnu_v3_exceptions): Remove reference to base field.
10788 (initialize_throw_catchpoint_ops): Don't set dtor.
10789 * ctf.c (ctf_get_traceframe_address): Remove reference to base
10790 field.
10791 * remote.c (remote_get_tracepoint_status): Likewise.
10792 * tracefile-tfile.c (tfile_get_traceframe_address): Likewise.
10793 * tracefile.c (tracefile_fetch_registers): Likewise.
10794 * tracepoint.c (actions_command): Likewise.
10795 (validate_actionline): Likewise.
10796 (tfind_1): Likewise.
10797 (get_traceframe_location): Likewise.
10798 (find_matching_tracepoint_location): Likewise.
10799 (parse_tracepoint_status): Likewise.
10800 * mi/mi-cmd-break.c (mi_cmd_break_passcount): Likewise.
10801
3b0871f4
SM
108022017-06-02 Simon Marchi <simon.marchi@polymtl.ca>
10803
10804 * breakpoint.c (struct longjmp_breakpoint): New struct.
10805 (is_tracepoint_type): Change return type to bool.
10806 (is_longjmp_type): New function.
10807 (new_breakpoint_from_type): Handle longjmp kinds of breakpoints.
10808 (set_raw_breakpoint_without_location): Use
10809 new_breakpoint_from_type.
10810 (set_raw_breakpoint): Likewise.
10811
a5e364af
SM
108122017-06-02 Simon Marchi <simon.marchi@polymtl.ca>
10813
10814 * breakpoint.c (new_breakpoint_from_type): New function.
10815 (create_breakpoint_sal): Use new_breakpoint_from_type and
10816 unique_ptr.
10817 (create_breakpoint): Likewise.
10818
ae3b3f34
SM
108192017-05-31 Simon Marchi <simon.marchi@ericsson.com>
10820
10821 * memattr.c (mem_info_command): Rename to ...
10822 (info_mem_command): ... this.
10823 (mem_enable_command): Rename to ...
10824 (enable_mem_command): ... this.
10825 (mem_disable_command): Rename to ...
10826 (disable_mem_command): ... this.
10827 (mem_delete_command): Rename to ...
10828 (delete_mem_command): ... this.
10829 (_initialize_mem): Adjust function names.
10830
13ace077
MM
108312017-05-31 Markus Metzger <markus.t.metzger@intel.com>
10832
10833 * btrace.c (handle_pt_insn_events): New.
10834 (ftrace_add_pt): Call handle_pt_insn_events. Rename ERRCODE into
10835 STATUS. Split into this and ...
10836 (handle_pt_insn_event_flags): ... this.
10837
c56ccc05
MM
108382017-05-31 Markus Metzger <markus.t.metzger@intel.com>
10839
10840 * configure.ac: Check for pt_insn_event, struct pt_insn.enabled,
10841 and struct pt_insn.resynced.
10842 * configure: Regenerated.
10843 * config.in: Regenerated.
10844
08c3f6d2
TW
108452017-05-30 Tim Wiederhake <tim.wiederhake@intel.com>
10846
10847 * btrace.c (ftrace_find_call_by_number): New function.
10848 (ftrace_new_function): Store objects, not pointers.
10849 (ftrace_find_call_by_number, ftrace_new_return, ftrace_new_switch,
10850 ftrace_new_gap, ftrace_update_function,
10851 ftrace_compute_global_level_offset, btrace_stich_bts, btrace_clear,
10852 btrace_insn_get, btrace_insn_get_error, btrace_insn_end,
10853 btrace_insn_next, btrace_insn_prev, ptrace_find_insn_by_number,
10854 btrace_ends_with_single_insn, btrace_call_get): Account for
10855 btrace_thread_info::functions now storing objects.
10856 * btrace.h (struct btrace_thread_info): Add constructor.
10857 (struct btrace_thread_info) <functions>: Make std::vector.
10858 (struct btrace_thread_info) <prev, next, up, insn, errcode, flags):
10859 Initialize with default values.
10860 * record-btrace.c (record_btrace_frame_sniffer): Account for
10861 btrace_thread_info::functions now storing objects.
10862
8ffd39f2
TW
108632017-05-30 Tim Wiederhake <tim.wiederhake@intel.com>
10864
10865 * btrace.c: Remove typedef bfun_s.
10866 (ftrace_new_gap): Directly add gaps to the list of gaps.
10867 (btrace_bridge_gaps, btrace_compute_ftrace_bts, pt_btrace_insn_flags,
10868 ftrace_add_pt, btrace_compute_ftrace_pt, btrace_compute_ftrace_1,
10869 btrace_finalize_ftrace, btrace_compute_ftrace): Use std::vector
10870 instead of gdb VEC.
10871
4aeb0dfc
TW
108722017-05-30 Tim Wiederhake <tim.wiederhake@intel.com>
10873
10874 * btrace.c (ftrace_fixup_caller, ftrace_new_return, ftrace_connect_bfun,
10875 ftrace_bridge_gap): Replace references to btrace_thread_info::segment
10876 with btrace_thread_info::next_segment and
10877 btrace_thread_info::prev_segment.
10878 * btrace.h: Remove struct btrace_func_link.
10879 (struct btrace_function): Replace pair of function segment pointers
10880 with pair of indices.
10881 * python/py-record-btrace.c (btpy_call_prev_sibling,
10882 btpy_call_next_sibling): Replace references to
10883 btrace_thread_info::segment with btrace_thread_info::next_segment and
10884 btrace_thread_info::prev_segment.
10885 * record-btrace.c (record_btrace_frame_this_id): Use
10886 btrace_find_call_by_number.
10887
eb8f2b9c
TW
108882017-05-30 Tim Wiederhake <tim.wiederhake@intel.com>
10889
10890 * btrace.c (ftrace_new_function, ftrace_fixup_level,
10891 ftrace_connect_bfun, ftrace_bridge_gap, btrace_bridge_gaps,
10892 btrace_insn_next, btrace_insn_prev): Remove references to
10893 btrace_thread_info::flow.
10894 * btrace.h (struct btrace_function): Remove FLOW.
10895
42bfe59e
TW
108962017-05-30 Tim Wiederhake <tim.wiederhake@intel.com>
10897
10898 * btrace.c (ftrace_find_call_by_number): New function.
10899 (ftrace_update_caller, ftrace_new_call, ftrace_new_tailcall,
10900 ftrace_get_caller, ftrace_find_call, ftrace_new_return,
10901 ftrace_match_backtrace, ftrace_connect_bfun, ftrace_connect_backtrace,
10902 ftrace_bridge_gap, btrace_bridge_gaps): Use btrace_function::up as an
10903 index.
10904 * btrace.h (struct btrace_function): Turn UP into an index.
10905 * python/py-record-btrace.c (btpy_call_up): Use btrace_function::up
10906 as an index.
10907 * record-btrace.c (record_btrace_frame_unwind_stop_reason,
10908 record_btrace_frame_prev_register, record_btrace_frame_sniffer,
10909 record_btrace_tailcall_frame_sniffe): Use btrace_find_call_by_number.
10910
b54b03bd
TW
109112017-05-30 Tim Wiederhake <tim.wiederhake@intel.com>
10912
10913 * btrace.c (ftrace_new_function, ftrace_new_call, ftrace_new_tailcall,
10914 ftrace_new_return, ftrace_new_switch, ftrace_new_gap,
10915 ftrace_update_function, ftrace_compute_global_level_offset,
10916 btrace_compute_ftrace_bts, ftrace_add_pt, btrace_compute_ftrace_pt,
10917 btrace_stitch_bts, btrace_fetch, btrace_clear, btrace_insn_number,
10918 btrace_insn_end, btrace_is_empty): Remove references to
10919 btrace_thread_info::begin and btrace_thread_info::end.
10920 * btrace.h (struct btrace_thread_info): Remove BEGIN and END.
10921 (struct btrace_thread_info) <functions>: Adjust comment.
10922 * record-btrace.c (record_btrace_start_replaying): Remove reference to
10923 btrace_thread_info::begin.
10924
8286623c
TW
109252017-05-30 Tim Wiederhake <tim.wiederhake@intel.com>
10926
10927 * btrace.c (ftrace_new_function, ftrace_new_call, ftrace_new_tailcall,
10928 ftrace_new_return, ftrace_new_switch, ftrace_new_gap,
10929 ftrace_update_function): Remove arguments that implicitly were always
10930 BTINFO->END.
10931 (btrace_compute_ftrace_bts, ftrace_add_pt, btrace_compute_ftrace_pt):
10932 Don't pass BTINFO->END.
10933
a0f1b963
TW
109342017-05-30 Tim Wiederhake <tim.wiederhake@intel.com>
10935
10936 * btrace.c: (btrace_insn_get, btrace_insn_get_error, btrace_insn_number,
10937 btrace_insn_begin, btrace_insn_end, btrace_insn_next, btrace_insn_prev,
10938 btrace_find_insn_by_number): Replace function segment pointer with
10939 index.
10940 (btrace_insn_cmp): Simplify.
10941 * btrace.h: (struct btrace_insn_iterator) Rename index to
10942 insn_index. Replace function segment pointer with index into function
10943 segment vector.
10944 * record-btrace.c (record_btrace_call_history): Replace function
10945 segment pointer use with index.
10946 (record_btrace_frame_sniffer): Retrieve function call segment through
10947 vector.
10948 (record_btrace_set_replay): Remove defunc't safety check.
10949
f158f208
TW
109502017-05-30 Tim Wiederhake <tim.wiederhake@intel.com>
10951
10952 * btrace.c (btrace_ends_with_single_insn): New function.
10953 (btrace_call_get, btrace_call_number, btrace_call_begin,
10954 btrace_call_end, btrace_call_next, btrace_call_prev,
10955 btrace_find_call_by_number): Use index into call segment vector
10956 instead of pointer.
10957 (btrace_call_cmp): Simplify.
10958 * btrace.h (struct btrace_call_iterator): Replace function call segment
10959 pointer with index into vector.
10960 * record-btrace.c (record_btrace_call_history): Use index instead of
10961 pointer.
10962
521103fd
TW
109632017-05-30 Tim Wiederhake <tim.wiederhake@intel.com>
10964
10965 * btrace.c (btrace_insn_begin, btrace_insn_end,
10966 btrace_find_insn_by_number): Add btinfo to iterator.
10967 * btrace.h (struct btrace_insn_iterator): Add btinfo.
10968
17b89b34
TW
109692017-05-30 Tim Wiederhake <tim.wiederhake@intel.com>
10970
10971 * btrace.c (ftrace_new_function): Add btrace_thread_info to arguments
10972 and save pointers directly.
10973 (ftrace_new_call, ftrace_new_tailcall, ftrace_new_return,
10974 ftrace_new_switch, ftrace_new_gap, ftrace_update_function,
10975 ftrace_add_pt): Add btrace_thread_info to arguments. Adjust for
10976 changed signature of functions.
10977 (btrace_compute_ftrace_pt): Adjust for changed signature of functions.
10978 (btrace_fetch): Remove code that adds btrace_function pointers to
10979 vector of btrace_functions.
10980 (btrace_clear): Simplify freeing vector of btrace_functions.
10981
2b51eddc
TW
109822017-05-30 Tim Wiederhake <tim.wiederhake@intel.com>
10983
10984 * btrace.c (btrace_fetch, btrace_clear, btrace_find_insn_by_number):
10985 Replace VEC_* with std::vector functions.
10986 * btrace.h: Add include: vector. Remove typedef for DEF_VEC_P.
10987 (struct btrace_thread_info)<functions>: Change type to std::vector.
10988
db6be0d5
SM
109892017-05-30 Simon Marchi <simon.marchi@ericsson.com>
10990
10991 * NEWS (Changes in GDB 8.0): Remove extra empty line. Move
10992 "Removed targets and native configurations" up. Merge duplicate
10993 "New commands" sub-sections. Add "New options" sub-sections.
10994
b057297a
AH
109952017-05-26 Alan Hayward <alan.hayward@arm.com>
10996
10997 * defs.h (copy_integer_to_size): New declaration.
10998 * findvar.c (copy_integer_to_size): New function.
10999 (do_cint_test): New selftest function.
11000 (copy_integer_to_size_test): Likewise.
11001 (_initialize_findvar): Likewise.
11002 * mips-fbsd-tdep.c (mips_fbsd_supply_reg): Use raw_supply_integer.
11003 (mips_fbsd_collect_reg): Use raw_collect_integer.
11004 * mips-linux-tdep.c (supply_32bit_reg): Use raw_supply_integer.
11005 (mips64_fill_gregset): Use raw_collect_integer
11006 (mips64_fill_fpregset): Use raw_supply_integer.
11007 * regcache.c (regcache::raw_supply_integer): New function.
11008 (regcache::raw_collect_integer): Likewise.
11009 * regcache.h: (regcache::raw_supply_integer): New declaration.
11010 (regcache::raw_collect_integer): Likewise.
11011
b77b02a5
YQ
110122017-05-24 Yao Qi <yao.qi@linaro.org>
11013
11014 * Makefile.in (SFILES): Add gdbarch-selftests.c.
11015 (COMMON_OBS): Add gdbarch-selftests.o.
11016 * frame.c [GDB_SELF_TESTS] (create_new_frame): New function.
11017 * frame.h [GDB_SELF_TESTS] (create_new_frame): Declare.
11018 * gdbarch-selftests.c: New file.
11019 * regcache.h (regcache) <~regcache>: Mark it virtual if
11020 GDB_SELF_TEST.
11021 <raw_write>: Likewise.
11022
e521e87e
YQ
110232017-05-24 Yao Qi <yao.qi@linaro.org>
11024
11025 * regcache.c (current_regcache): Change it to
11026 regcache::current_regcache.
11027 (regcache_observer_target_changed): Update.
11028 (regcache_thread_ptid_changed): Make it a regcache static
11029 method.
11030 (regcache_thread_ptid_changed): Update.
11031 (class regcache_access): New.
11032 (current_regcache_test): Update.
11033 (_initialize_regcache): Update.
11034 * regcache.h: Include forward_list.
11035 (regcache): Declare regcache_thread_ptid_changed and declare
11036 registers_changed_ptid as friend.
11037
d8e07dda
YQ
110382017-05-24 Yao Qi <yao.qi@linaro.org>
11039
11040 * i387-tdep.c (i387_register_to_value): Use register_size
11041 instead of TYPE_LENGTH.
11042 * m68k-tdep.c (m68k_register_to_value): Likewise.
11043
8c8f9122
YQ
110442017-05-24 Yao Qi <yao.qi@linaro.org>
11045
11046 * i387-tdep.c (i387_convert_register_p): Return false if type
11047 code isn't TYPE_CODE_FLT.
11048
68fce50f
YQ
110492017-05-24 Yao Qi <yao.qi@linaro.org>
11050
11051 * alpha-tdep.c (alpha_convert_register_p): Return true if type
11052 length is 4.
11053 (alpha_register_to_value): Remove type length check.
11054 (alpha_value_to_register): Likewise.
11055
88954b49
YQ
110562017-05-24 Yao Qi <yao.qi@linaro.org>
11057
11058 * ia64-tdep.c (ia64_convert_register_p): Check type's code is
11059 TYPE_CODE_FLT.
11060
e3ec9b69
YQ
110612017-05-24 Yao Qi <yao.qi@linaro.org>
11062
11063 * m68k-tdep.c (m68k_convert_register_p): Check type's code is
11064 TYPE_CODE_FLT or not.
11065
cdd238da
YQ
110662017-05-24 Yao Qi <yao.qi@linaro.org>
11067
11068 * alpha-tdep.c (alpha_gdbarch_init): Use XCNEW instead of XNEW.
11069 * avr-tdep.c (avr_gdbarch_init): Likewise.
11070 * bfin-tdep.c (bfin_gdbarch_init): Likewise.
11071 * cris-tdep.c (cris_gdbarch_init): Likewise.
11072 * ft32-tdep.c (ft32_gdbarch_init): Likewise.
11073 * lm32-tdep.c (lm32_gdbarch_init): Likewise.
11074 * m32r-tdep.c (m32r_gdbarch_init): Likewise.
11075 * m68hc11-tdep.c (m68hc11_gdbarch_init): Likewise.
11076 * mep-tdep.c (mep_gdbarch_init): Likewise.
11077 * microblaze-tdep.c (microblaze_gdbarch_init): Likewise.
11078 * mips-tdep.c (mips_gdbarch_init): Likewise.
11079 * mn10300-tdep.c (mn10300_gdbarch_init): Likewise.
11080 * moxie-tdep.c (moxie_gdbarch_init): Likewise.
11081 * msp430-tdep.c (msp430_gdbarch_init): Likewise.
11082 * sh64-tdep.c (sh64_gdbarch_init): Likewise.
11083 * v850-tdep.c (v850_gdbarch_init): Likewise.
11084
7a3929c4
YQ
110852017-05-24 Yao Qi <yao.qi@linaro.org>
11086
11087 * selftest-arch.c (tests_with_arch): Call registers_changed
11088 and reinit_frame_cache.
11089 * selftest.c (run_self_tests): Likewise.
11090
f4985dba
YQ
110912017-05-24 Yao Qi <yao.qi@linaro.org>
11092
11093 * rs6000-tdep.c (gdb_print_insn_powerpc): Remove.
11094 (rs6000_gdbarch_init): Don't call set_gdbarch_print_insn.
11095
ab20fa4a
YQ
110962017-05-24 Yao Qi <yao.qi@linaro.org>
11097
11098 * rl78-tdep.c (rl78_gdbarch_init): Don't call
11099 set_gdbarch_print_insn.
11100
f532ab94
YQ
111012017-05-24 Yao Qi <yao.qi@linaro.org>
11102
11103 * h8300-tdep.c (h8300_gdbarch_init): Don't call
11104 set_gdbarch_print_insn.
11105
39503f82
YQ
111062017-05-24 Yao Qi <yao.qi@linaro.org>
11107
11108 * alpha-tdep.c (alpha_gdbarch_init): Don't call
11109 set_gdbarch_print_insn.
11110 * arc-tdep.c (arc_gdbarch_init): Likewise.
11111 * arch-utils.c: include dis-asm.h.
11112 (default_print_insn): New function.
11113 * arch-utils.h (default_print_insn): Declare.
11114 * avr-tdep.c (avr_gdbarch_init): Don't call set_gdbarch_print_insn.
11115 * bfin-tdep.c (bfin_gdbarch_init): Likewise.
11116 * cris-tdep.c (cris_delayed_get_disassembler): Remove.
11117 (cris_gdbarch_init): Don't call set_gdbarch_print_insn.
11118 * frv-tdep.c (frv_gdbarch_init): Likewise.
11119 * ft32-tdep.c (ft32_gdbarch_init): Likewise.
11120 * gdbarch.sh (print_insn): Use default_print_insn.
11121 * gdbarch.c: Regenerated.
11122 * hppa-tdep.c (hppa_gdbarch_init): Likewise.
11123 * iq2000-tdep.c (iq2000_gdbarch_init): Likewise.
11124 * lm32-tdep.c (lm32_gdbarch_init): Likewise.
11125 * m32c-tdep.c (m32c_gdbarch_init): Likewise.
11126 * m32r-tdep.c (m32r_gdbarch_init): Likewise.
11127 * m68hc11-tdep.c (gdb_print_insn_m68hc11): Remove.
11128 (m68hc11_gdbarch_init): Don't call set_gdbarch_print_insn.
11129 * m68k-tdep.c (m68k_gdbarch_init): Likewise.
11130 * m88k-tdep.c (m88k_gdbarch_init): Likewise.
11131 * microblaze-tdep.c (microblaze_gdbarch_init): Likewise.
11132 * mn10300-tdep.c (mn10300_gdbarch_init): Likewise.
11133 * moxie-tdep.c (moxie_gdbarch_init): Likewise.
11134 * msp430-tdep.c (msp430_gdbarch_init): Likewise.
11135 * mt-tdep.c (mt_gdbarch_init): Likewise.
11136 * nds32-tdep.c (nds32_gdbarch_init): Likewise.
11137 * nios2-tdep.c (nios2_print_insn): Remove.
11138 (nios2_gdbarch_init): Don't call set_gdbarch_print_insn.
11139 * rx-tdep.c (rx_gdbarch_init): Likewise.
11140 * s390-linux-tdep.c (s390_gdbarch_init): Likewise.
11141 * score-tdep.c (score_print_insn): Remove.
11142 (score_gdbarch_init): Don't call set_gdbarch_print_insn.
11143 * sh-tdep.c (sh_gdbarch_init): Likewise.
11144 * sh64-tdep.c (sh64_gdbarch_init): Likewise.
11145 * sparc-tdep.c (sparc32_gdbarch_init): Likewise.
11146 * tic6x-tdep.c (tic6x_print_insn): Remove.
11147 (tic6x_gdbarch_init): Don't call set_gdbarch_print_insn.
11148 * tilegx-tdep.c (tilegx_gdbarch_init): Likewise.
11149 * v850-tdep.c (v850_gdbarch_init): Likewise.
11150 * vax-tdep.c (vax_gdbarch_init): Likewise.
11151 * xstormy16-tdep.c (xstormy16_gdbarch_init): Likewise.
11152 * xtensa-tdep.c (xtensa_gdbarch_init): Likewise.
11153
f7241d4f
JB
111542017-05-23 John Baldwin <jhb@FreeBSD.org>
11155
11156 * mips-fbsd-tdep.c (MIPS_PC_REGNUM): Remove.
11157 (MIPS_FP0_REGNUM): Remove.
11158 (MIPS_FSR_REGNUM): Remove.
11159 (mips_fbsd_supply_fpregs): Use mips_regnum.
11160 (mips_fbsd_supply_gregs): Likewise.
11161 (mips_fbsd_collect_fpregs): Likewise.
11162 (mips_fbsd_collect_gregs): Likewise.
11163
d489d81d
JB
111642017-05-23 John Baldwin <jhb@FreeBSD.org>
11165
11166 * mips-fbsd-nat.c (getregs_supplies): Fix upper bound comparison.
11167 (getpfpregs_supplies): New function.
11168 (mips_fbsd_fetch_inferior_registers): Remove early exit and use
11169 getfpregs_supplies.
11170 (mips_fbsd_store_inferior_registers): Likewise.
11171
e11b3cdc
PA
111722017-05-22 Pedro Alves <palves@redhat.com>
11173
11174 * MAINTAINERS (Host/Native): Add John Baldwin as FreeBSD
11175 maintainer.
11176
0f068fb5
AH
111772017-05-22 Alan Hayward <alan.hayward@arm.com>
11178
11179 * ppc-linux-nat.c (fetch_register): Use PPC_MAX_REGISTER_SIZE.
11180 (store_register): Likewise.
11181 * ppc-sysv-tdep.c (ppc_sysv_abi_push_dummy_call): Likewise.
11182 (get_decimal_float_return_value): Likewise.
11183 (do_ppc_sysv_return_value): Likewise.
11184 (ppc64_sysv_abi_push_integer): Likewise.
11185 (ppc64_sysv_abi_push_freg): Likewise.
11186 (ppc64_sysv_abi_return_value_base): Likewise.
11187 (ppc64_sysv_abi_return_value): Likewise.
11188 * rs6000-aix-tdep.c (rs6000_push_dummy_call): Likewise.
11189 * rs6000-lynx178-tdep.c (rs6000_lynx178_push_dummy_call): Likewise.
11190 * rs6000-nat.c: Likewise.
11191 * rs6000-tdep.c (rs6000_register_to_value): Likewise.
11192 (rs6000_value_to_register): Likewise.
11193 * ppc-tdep.h (PPC_MAX_REGISTER_SIZE): Add.
11194
e6cf65f2
TT
111952017-05-21 Tom Tromey <tom@tromey.com>
11196
11197 PR rust/21466:
11198 * rust-lang.c (rust_print_type) <TYPE_CODE_ARRAY>: Print unsized
11199 arrays as "[T]", not "[T; ]".
11200
43cc5389
TT
112012017-05-19 Tom Tromey <tom@tromey.com>
11202
11203 PR rust/21484:
11204 * rust-lang.c (exp_descriptor_rust): New function.
11205 (rust_language_defn): Use it.
11206 * p-lang.c (pascal_language_defn): Update.
11207 * opencl-lang.c (opencl_language_defn): Update.
11208 * objc-lang.c (objc_language_defn): Update.
11209 * m2-lang.c (m2_language_defn): Update.
11210 * language.h (struct language_defn)
11211 <la_watch_location_expression>: New member.
11212 * language.c (unknown_language_defn, auto_language_defn)
11213 (local_language_defn): Update.
11214 * go-lang.c (go_language_defn): Update.
11215 * f-lang.c (f_language_defn): Update.
11216 * d-lang.c (d_language_defn): Update.
11217 * c-lang.h (c_watch_location_expression): Declare.
11218 * c-lang.c (c_watch_location_expression): New function.
11219 (c_language_defn, cplus_language_defn, asm_language_defn)
11220 (minimal_language_defn): Use it.
11221 * breakpoint.c (watch_command_1): Call
11222 la_watch_location_expression.
11223 * ada-lang.c (ada_language_defn): Update.
11224
7a6e7fcc
RO
112252017-05-19 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
11226
6e7e1744
RO
11227 PR tui/21482
11228 * gdb_curses.h (NOMACROS): Define.
11229 (NCURSES_NOMACROS): Define.
11230
112312017-05-19 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
11232
11233 PR tui/21482
7a6e7fcc
RO
11234 * tui/tui-windata.c (tui_erase_data_content): Cast last mvwaddstr
11235 arg to char *.
11236 * tui/tui-wingeneral.c (box_win): Likewise.
11237 * tui/tui-winsource.c (tui_erase_source_content): Likewise.
11238 (tui_show_source_line): Likewise.
11239 (tui_show_exec_info_content): Likewise.
11240
1933fd8e
VM
112412017-05-19 Vladimir Mezentsev <vladimir.mezentsev@oracle.com>
11242
11243 * sparc-tdep.c (sparc_structure_return_p)
11244 (sparc_arg_on_registers_p): New functions.
11245 (sparc32_store_arguments): Use them.
11246 * sparc64-tdep.c (sparc64_16_byte_align_p)
11247 (sparc64_store_floating_fields, sparc64_extract_floating_fields):
11248 Handle TYPE_CODE_ARRAY.
11249
21873064
YQ
112502017-05-17 Yao Qi <yao.qi@linaro.org>
11251
11252 * cli/cli-decode.c (add_alias_cmd): New function.
11253 * command.h (add_alias_cmd): Declare.
11254 * infcmd.c (_initialize_infcmd): Don't call add_com_alias,
11255 instead call add_alias_cmd.
11256
2b351b19
PA
112572017-05-17 Pedro Alves <palves@redhat.com>
11258
11259 * Makefile.in (nat_extra_makefile_frag): Rename to ...
11260 (nat_makefile_frag): ... this. All references updated.
11261 * configure.ac: Likewise.
11262 * configure.nat: Likewise. Enhance comments.
11263 * configure: Regenerate.
11264
5f2ad7a3
RO
112652017-05-15 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
11266
11267 * procfs.c (procfs_create_inferior): Change prototype to match
11268 definition.
11269
adf3dde5
EZ
112702017-05-13 Eli Zaretskii <eliz@gnu.org>
11271
11272 * tui/tui.c (tui_enable): Cast "unknown" to 'char *' to avoid a
11273 C++ compiler warning.
11274
6830f270
TT
112752017-05-12 Tom Tromey <tom@tromey.com>
11276
11277 PR rust/21483:
11278 * rust-lang.c (rust_evaluate_subexp) <STRUCTOP_STRUCT>: Don't
11279 recurse, just call value_struct_elt directly.
11280
68f2f2e3
TT
112812017-05-12 Tom Tromey <tom@tromey.com>
11282
11283 * rust-lang.c (rust_dump_subexp_body) <STRUCTOP_ANONYMOUS,
11284 OP_RUST_ARRAY>: Fix.
11285
256afbc2
TT
112862017-05-12 Tom Tromey <tom@tromey.com>
11287
11288 * rust-lang.c (rust_print_subexp): Replace "return" with "break".
11289
94bb8dfe
YQ
112902017-05-09 Yao Qi <yao.qi@linaro.org>
11291
11292 * regcache.c: Include <forward_list>.
11293 (struct regcache_list): Remove.
11294 (current_regcache): Update.
11295 (get_thread_arch_aspace_regcache): Update for std::forward_list.
11296 (regcache_thread_ptid_changed): Likewise.
11297 (registers_changed_ptid): Likewise.
11298 (current_regcache_size): Likewise.
11299
8248946c
YQ
113002017-05-09 Yao Qi <yao.qi@linaro.org>
11301
11302 * regcache.c [GDB_SELF_TEST]: Include selftest.h.
11303 (current_regcache_size): New function.
11304 (current_regcache_test): New function.
11305 (_initialize_regcache) [GDB_SELF_TEST]: Register the unit test.
11306
313c5961
AH
113072017-05-08 Alan Hayward <alan.hayward@arm.com>
11308
11309 * mips-tdep.c (mips_o32_return_value): Remove unused buffer.
11310 (print_gp_register_row): Use get_frame_register_value.
11311
27bfc1d1
AH
113122017-05-08 Alan Hayward <alan.hayward@arm.com>
11313
11314 * mips-linux-tdep.c (mips_supply_gregset): Use raw_supply_zeroed.
11315 (mips_supply_fpregset): Likewise.
11316 (mips64_supply_gregset): Likewise.
11317
146e6c5c
AH
113182017-05-08 Alan Hayward <alan.hayward@arm.com>
11319
11320 * mn10300-linux-tdep.c (am33_supply_gregset_method): Use
11321 regcache->raw_supply_zeroed.
11322
e50f25ec
SDJ
113232017-05-06 Sergio Durigan Junior <sergiodj@redhat.com>
11324
11325 * configure.nat: Rearrange 'case' statements to match
11326 host before cpu.
11327
21ea5acd
SDJ
113282017-05-06 Sergio Durigan Junior <sergiodj@redhat.com>
11329
11330 * Makefile.in: Remove "@host_makefile_frag@". Add variables
11331 NAT_FILE, NATDEPFILES, NAT_CDEPS, LOADLIBES, MH_CFLAGS, XM_CLIBS,
11332 NAT_GENERATED_FILES, HAVE_NATIVE_GCORE_HOST. Add
11333 "@nat_extra_makefile_frag@".
11334 (Makefile): Remove dependency on "@frags@".
11335 ($(GNULIB_BUILDDIR)/Makefile): Likewise.
11336 (data-directory/Makefile): Likewise.
11337 * config/aarch64/linux.mh: Deleted; moved contents to
11338 "gdb/configure.nat".
11339 * config/alpha/alpha-linux.mh: Likewise.
11340 * config/alpha/nbsd.mh: Likewise.
11341 * config/arm/linux.mh: Likewise.
11342 * config/arm/nbsdelf.mh: Likewise.
11343 * config/i386/cygwin.mh: Likewise.
11344 * config/i386/cygwin64.mh: Likewise.
11345 * config/i386/darwin.mh: Likewise.
11346 * config/i386/fbsd.mh: Likewise.
11347 * config/i386/fbsd64.mh: Likewise.
11348 * config/i386/go32.mh: Likewise.
11349 * config/i386/i386gnu.mh: Likewise.
11350 * config/i386/i386sol2.mh: Likewise.
11351 * config/i386/linux.mh: Likewise.
11352 * config/i386/linux64.mh: Likewise.
11353 * config/i386/mingw.mh: Likewise.
11354 * config/i386/mingw64.mh: Likewise.
11355 * config/i386/nbsd64.mh: Likewise.
11356 * config/i386/nbsdelf.mh: Likewise.
11357 * config/i386/nto.mh: Likewise.
11358 * config/i386/obsd.mh: Likewise.
11359 * config/i386/obsd64.mh: Likewise.
11360 * config/i386/sol2-64.mh: Likewise.
11361 * config/ia64/linux.mh: Likewise.
11362 * config/m32r/linux.mh: Likewise.
11363 * config/m68k/linux.mh: Likewise.
11364 * config/m68k/nbsdelf.mh: Likewise.
11365 * config/m68k/obsd.mh: Likewise.
11366 * config/m88k/obsd.mh: Likewise.
11367 * config/mips/fbsd.mh: Likewise.
11368 * config/mips/linux.mh: Likewise.
11369 * config/mips/nbsd.mh: Likewise.
11370 * config/mips/obsd64.mh: Likewise.
11371 * config/pa/linux.mh: Likewise.
11372 * config/pa/nbsd.mh: Likewise.
11373 * config/pa/obsd.mh: Likewise.
11374 * config/powerpc/aix.mh: Likewise.
11375 * config/powerpc/fbsd.mh: Likewise.
11376 * config/powerpc/linux.mh: Likewise.
11377 * config/powerpc/nbsd.mh: Likewise.
11378 * config/powerpc/obsd.mh: Likewise.
11379 * config/powerpc/ppc64-linux.mh: Likewise.
11380 * config/powerpc/spu-linux.mh: Likewise.
11381 * config/s390/linux.mh: Likewise.
11382 * config/sh/nbsd.mh: Likewise.
11383 * config/sparc/fbsd.mh: Likewise.
11384 * config/sparc/linux.mh: Likewise.
11385 * config/sparc/linux64.mh: Likewise.
11386 * config/sparc/nbsd64.mh: Likewise.
11387 * config/sparc/nbsdelf.mh: Likewise.
11388 * config/sparc/obsd64.mh: Likewise.
11389 * config/sparc/sol2.mh: Likewise.
11390 * config/tilegx/linux.mh: Likewise.
11391 * config/vax/nbsdelf.mh: Likewise.
11392 * config/vax/obsd.mh: Likewise.
11393 * config/xtensa/linux.mh: Likewise.
11394 * config/i386/i386gnu.mn: New file, with excerpts from
11395 "config/i386/i386gnu.mh".
11396 * configure: Regenerate.
11397 * configure.ac: Rewrite code to use "gdb/configure.nat" instead of
11398 *.mh files under "gdb/config".
11399 * configure.nat: New file, with contents from the
11400 "gdb/config/*/*.mh" files.
11401
7ed1acaf
TW
114022017-05-05 Tim Wiederhake <tim.wiederhake@intel.com>
11403
11404 * btrace.c (btrace_clear): Free insn vector.
11405
e13cb306
PA
114062017-05-05 Pedro Alves <palves@redhat.com>
11407
11408 * warning.m4 (build_warnings): Add -Wno-error=maybe-uninitialized.
11409 * configure: Regenerate.
11410
5ed8105e
PA
114112017-05-04 Pedro Alves <palves@redhat.com>
11412
11413 * Makefile.in (SFILES): Add progspace-and-thread.c.
11414 (HFILES_NO_SRCDIR): Add progspace-and-thread.h.
11415 (COMMON_OBS): Add progspace-and-thread.o.
11416 * breakpoint.c: Include "progspace-and-thread.h".
11417 (update_inserted_breakpoint_locations)
11418 (insert_breakpoint_locations, create_longjmp_master_breakpoint):
11419 Use scoped_restore_current_pspace_and_thread.
11420 (create_std_terminate_master_breakpoint): Use
11421 scoped_restore_current_program_space.
11422 (remove_breakpoint): Use scoped_restore_current_pspace_and_thread.
11423 (print_breakpoint_location): Use
11424 scoped_restore_current_program_space.
11425 (bp_loc_is_permanent): Use
11426 scoped_restore_current_pspace_and_thread.
11427 (resolve_sal_pc): Use scoped_restore_current_pspace_and_thread.
11428 (download_tracepoint_locations): Use
11429 scoped_restore_current_pspace_and_thread.
11430 (breakpoint_re_set): Use scoped_restore_current_pspace_and_thread.
11431 * exec.c (exec_close_1): Use scoped_restore_current_program_space.
11432 (enum step_over_calls_kind): Moved from inferior.h.
11433 (class scoped_restore_current_thread): New class.
11434 * gdbthread.h (make_cleanup_restore_current_thread): Delete
11435 declaration.
11436 (scoped_restore_current_thread): New class.
11437 * infcmd.c: Include "common/gdb_optional.h".
11438 (continue_1, proceed_after_attach): Use
11439 scoped_restore_current_thread.
11440 (notice_new_inferior): Use scoped_restore_current_thread.
11441 * inferior.c: Include "progspace-and-thread.h".
11442 (restore_inferior, save_current_inferior): Delete.
11443 (add_inferior_command, clone_inferior_command): Use
11444 scoped_restore_current_pspace_and_thread.
11445 * inferior.h (scoped_restore_current_inferior): New class.
11446 * infrun.c: Include "progspace-and-thread.h" and
11447 "common/gdb_optional.h".
11448 (follow_fork_inferior): Use
11449 scoped_restore_current_pspace_and_thread.
11450 (scoped_restore_exited_inferior): New class.
11451 (handle_vfork_child_exec_or_exit): Use
11452 scoped_restore_exited_inferior,
11453 scoped_restore_current_pspace_and_thread,
11454 scoped_restore_current_thread and scoped_restore.
11455 (fetch_inferior_event): Use scoped_restore_current_thread.
11456 * linespec.c (decode_line_full, decode_line_1): Use
11457 scoped_restore_current_program_space.
11458 * mi/mi-main.c: Include "progspace-and-thread.h".
11459 (exec_continue): Use scoped_restore_current_thread.
11460 (mi_cmd_exec_run): Use scoped_restore_current_pspace_and_thread.
11461 (mi_cmd_trace_frame_collected): Use scoped_restore_current_thread.
11462 * proc-service.c (ps_pglobal_lookup): Use
11463 scoped_restore_current_program_space.
11464 * progspace-and-thread.c: New file.
11465 * progspace-and-thread.h: New file.
11466 * progspace.c (release_program_space, clone_program_space): Use
11467 scoped_restore_current_program_space.
11468 (restore_program_space, save_current_program_space)
11469 (save_current_space_and_thread): Delete.
11470 (switch_to_program_space_and_thread): Moved to
11471 progspace-and-thread.c.
11472 * progspace.h (save_current_program_space)
11473 (save_current_space_and_thread): Delete declarations.
11474 (scoped_restore_current_program_space): New class.
11475 * remote.c (remote_btrace_maybe_reopen): Use
11476 scoped_restore_current_thread.
11477 * symtab.c: Include "progspace-and-thread.h".
11478 (skip_prologue_sal): Use scoped_restore_current_pspace_and_thread.
11479 * thread.c (print_thread_info_1): Use
11480 scoped_restore_current_thread.
11481 (struct current_thread_cleanup): Delete.
11482 (do_restore_current_thread_cleanup)
11483 (restore_current_thread_cleanup_dtor): Rename/convert both to ...
11484 (scoped_restore_current_thread::~scoped_restore_current_thread):
11485 ... this new dtor.
11486 (make_cleanup_restore_current_thread): Rename/convert to ...
11487 (scoped_restore_current_thread::scoped_restore_current_thread):
11488 ... this new ctor.
11489 (thread_apply_all_command): Use scoped_restore_current_thread.
11490 (thread_apply_command): Use scoped_restore_current_thread.
11491 * tracepoint.c (tdump_command): Use scoped_restore_current_thread.
11492 * varobj.c (value_of_root_1): Use scoped_restore_current_thread.
11493
f6223dbb
PA
114942017-05-04 Pedro Alves <palves@redhat.com>
11495
11496 * thread.c (make_cleanup_restore_current_thread): Move
11497 find_thread_ptid call before the is_stopped call. Assert that the
11498 thread is found. Replace is_stopped call by checking the thread's
11499 state directly. Remove unnecessary NULL-thread check.
11500
3c3ae77e
PA
115012017-05-04 Pedro Alves <palves@redhat.com>
11502
11503 * corelow.c (thread_section_name): New class.
11504 (get_core_register_section, get_core_siginfo): Use it.
11505
45eba0ab
AA
115062017-05-04 Andreas Arnez <arnez@linux.vnet.ibm.com>
11507
11508 * corelow.c (sniff_core_bfd): Remove extra semicolon.
11509 (get_core_register_section): Remove xfree of NULL pointer.
11510
f81fdd35
AH
115112017-05-03 Alan Hayward <alan.hayward@arm.com>
11512
11513 * frv-linux-tdep.c (frv_linux_supply_gregset): Use raw_supply_zeroed.
11514 * regcache.c (regcache::raw_supply_zeroed): New function.
11515 * regcache.h (regcache::raw_supply_zeroed): New declaration.
11516
35837774
SM
115172017-05-03 Simon Marchi <simon.marchi@ericsson.com>
11518
11519 * gdbarch.sh: Remove commented out definition of
11520 TARGET_CHAR_BIT.
11521 * gdbarch.h: Re-generate.
11522
c94fee56
SDJ
115232017-05-03 Sergio Durigan Junior <sergiodj@redhat.com>
11524
11525 * configure: Regenerate.
11526
d17f7b36
SM
115272017-05-02 Simon Marchi <simon.marchi@ericsson.com>
11528
11529 * solib-target.c (solib_target_relocate_section_addresses):
11530 Remove num_section_bases, num_bases, segment_bases variables.
11531
b560ebd6
SM
115322017-05-02 Simon Marchi <simon.marchi@polymtl.ca>
11533
11534 * common/gdb_vecs.h (DEF_VEC_I (CORE_ADDR)): Remove.
11535
f2f46dfc
SM
115362017-05-02 Simon Marchi <simon.marchi@polymtl.ca>
11537
11538 * solib-target.c: Include <vector>
11539 (struct lm_info_target) <~lm_info_target>: Remove.
11540 <segment_bases, section_bases>: Change type to
11541 std::vector<CORE_ADDR>.
11542 (library_list_start_segment, library_list_start_section,
11543 library_list_end_library,
11544 solib_target_relocate_section_addresses): Adjust.
11545
a0ff9e1a
SM
115462017-05-02 Simon Marchi <simon.marchi@polymtl.ca>
11547
11548 * gdbarch.sh (software_single_step): Change return type to
11549 std::vector<CORE_ADDR>.
11550 * gdbarch.c, gdbarch.h: Re-generate.
11551 * arch/arm-get-next-pcs.c (thumb_deal_with_atomic_sequence_raw):
11552 Adjust.
11553 (arm_deal_with_atomic_sequence_raw): Adjust.
11554 (thumb_get_next_pcs_raw): Adjust.
11555 (arm_get_next_pcs_raw): Adjust.
11556 (arm_get_next_pcs): Adjust.
11557 * arch/arm-get-next-pcs.h (arm_get_next_pcs): Adjust.
11558 * aarch64-tdep.c (aarch64_software_single_step): Adjust.
11559 * alpha-tdep.c (alpha_deal_with_atomic_sequence): Adjust.
11560 (alpha_software_single_step): Adjust.
11561 * alpha-tdep.h (alpha_software_single_step): Adjust.
11562 * arm-linux-tdep.c (arm_linux_software_single_step): Adjust.
11563 * arm-tdep.c (arm_software_single_step): Adjust.
11564 (arm_breakpoint_kind_from_current_state): Adjust.
11565 * arm-tdep.h (arm_software_single_step): Adjust.
11566 * breakpoint.c (insert_single_step_breakpoint): Adjust.
11567 * cris-tdep.c (cris_software_single_step): Adjust.
11568 * mips-tdep.c (mips_deal_with_atomic_sequence): Adjust.
11569 (micromips_deal_with_atomic_sequence): Adjust.
11570 (deal_with_atomic_sequence): Adjust.
11571 (mips_software_single_step): Adjust.
11572 * mips-tdep.h (mips_software_single_step): Adjust.
11573 * moxie-tdep.c (moxie_software_single_step): Adjust.
11574 * nios2-tdep.c (nios2_software_single_step): Adjust.
11575 * ppc-tdep.h (ppc_deal_with_atomic_sequence): Adjust.
11576 * rs6000-aix-tdep.c (rs6000_software_single_step): Adjust.
11577 * rs6000-tdep.c (ppc_deal_with_atomic_sequence): Adjust.
11578 * s390-linux-tdep.c (s390_software_single_step): Adjust.
11579 * sparc-tdep.c (sparc_software_single_step): Adjust.
11580 * spu-tdep.c (spu_software_single_step): Adjust.
11581 * tic6x-tdep.c (tic6x_software_single_step): Adjust.
11582
ea480a30
SM
115832017-05-02 Simon Marchi <simon.marchi@polymtl.ca>
11584
11585 * gdbarch.sh: Use semi-colon as field separator instead of colon.
11586 * gdbarch.h: Re-generate.
11587
d050f7d7
TW
115882017-05-01 Tim Wiederhake <tim.wiederhake@intel.com>
11589
11590 * Makefile.in (SUBDIR_PYTHON_OBS): Add py-instruction.o.
11591 (SUBDIR_PYTHON_SRCS): Add py-instruction.c.
11592 * python/py-instruction.c, python/py-instruction.h: New file.
11593 * python/py-record.c: Add py-instruction.h include.
11594 (gdbpy_initialize_record): Make gdb.Instruction a super class of
11595 gdb.RecordInstruction.
11596 * python/python-internal.h: Add gdbpy_initialize_instruction
11597 declaration.
11598 * python/python.c (do_start_initialization): Add
11599 gdbpy_initialize_instruction.
11600
14f819c8
TW
116012017-05-01 Tim Wiederhake <tim.wiederhake@intel.com>
11602
11603 * python/py-record-btrace.c (BTPY_REQUIRE_VALID_CALL, btpy_call_type):
11604 Remove.
11605 (btrace_func_from_recpy_func): New function.
11606 (btpy_call_new, btpy_number, btpy_hash, btpy_richcompare): Remove.
11607 (btpy_call_level, btpy_call_symbol, btpy_call_instructions,
11608 btpy_call_up, btpy_call_prev_sibling, btpy_call_next_sibling): Rename to ...
11609 (recpy_bt_func_level, recpy_bt_func_symbol, recpy_bt_func_instructions,
11610 recpy_bt_func_up, recpy_bt_func_prev, recpy_bt_func_next): This.
11611 Also, use new helper functions.
11612 (btpy_list_item): Use new helper functions.
11613 (recpy_bt_function_call_history): Use new type name.
11614 (btpy_call_getset): Remove.
11615 (gdbpy_initialize_btrace): Remove code to initialize
11616 gdb.BtraceFunctionCall.
11617 * python/py-record-btrace.h (recpy_bt_func_number, recpy_btb_func_level,
11618 recpy_btb_func_symbol, recpy_bt_func_instructions, recpy_bt_func_up,
11619 recpy_bt_func_prev, recpy_bt_func_next): New export.
11620 * python/py-record.c (recpy_func_type): New static object.
11621 (recpy_func_new, recpy_func_level, recpy_func_symbol,
11622 recpy_func_instructions, recpy_func_up, recpy_func_prev,
11623 recpy_func_next): New function.
11624 (recpy_element_hash, recpy_element_richcompare): Updated comment.
11625 (recpy_func_getset): New static object.
11626 (gdbpy_initialize_record): Add code to initialize gdb.RecordInstruction.
11627 * python/py-record.h (recpy_func_type, recpy_func_new): New export.
11628
0ed5da75
TW
116292017-05-01 Tim Wiederhake <tim.wiederhake@intel.com>
11630
11631 * python/py-record-btrace.c (BTPY_REQUIRE_VALID_INSN): Remove.
11632 (btpy_object, btpy_insn_type, btpy_new): Remove.
11633 (btpy_list_object): Use gdb.RecordInstruction type instead of
11634 gdb.BtraceInstruction type.
11635 (btrace_insn_from_recpy_insn): New function.
11636 (btpy_insn_or_gap_new): Adjust comment. Use recpy_insn_new instead of
11637 btpy_new.
11638 (btpy_call_new, btpy_list_item): Do not use btpy_new anymore.
11639 (btpy_number, btpy_hash, btpy_call_level, btpy_call_symbol,
11640 btpy_call_instructions, btpy_call_up, btpy_call_prev_sibling,
11641 btpy_call_next_sibling, btpy_richcompare): Use recpy_element_object
11642 instead of btpy_object.
11643 (btpy_insn_sal, btpy_insn_pc, btpy_insn_size, btpy_insn_is_speculative,
11644 btpy_insn_data, btpy_insn_decode): Rename to ...
11645 (recpy_bt_insn_sal, recpy_bt_insn_pc, recpy_bt_insn_size,
11646 recpy_bt_insn_is_speculative, recpy_bt_insn_data,
11647 recpy_bt_insn_decode): This. Also, use new helper functions.
11648 (btpy_list_position, recpy_bt_goto): Use recpy_element_object and
11649 recpy_insn_type.
11650 (btpy_insn_getset): Remove.
11651 (gdbpy_initialize_btrace): Remove code to initialize
11652 gdb.BtraceInstruction. Use recpy_element_object.
11653 * python/py-record-btrace.h (recpy_bt_insn_number, recpy_bt_insn_sal,
11654 recpy_bt_insn_pc, recpy_bt_insn_data, recpy_bt_insn_decoded,
11655 recpy_bt_insn_size, recpy_bt_insn_is_speculative): New export.
11656 * python/py-record.c (recpy_insn_type): New static object.
11657 (recpy_insn_new, recpy_insn_sal, recpy_insn_pc, recpy_insn_data,
11658 recpy_insn_decoded, recpy_insn_size, recpy_insn_is_speculative,
11659 recpy_element_number, recpy_element_hash, recpy_element_richcompare):
11660 New function.
11661 (recpy_insn_getset): New static object.
11662 (gdbpy_initialize_record): Initialize gdb.RecordInstruction.
11663 * python/py-record.h (recpy_element_object): New typedef.
11664 (recpy_insn_type, recpy_insn_new): New export.
11665
913aeadd
TW
116662017-05-01 Tim Wiederhake <tim.wiederhake@intel.com>
11667
11668 * py-record-btrace.c (btpy_insn_new): Removed.
11669 (btpy_insn_or_gap_new): New function.
11670 (btpy_insn_error): Removed.
11671 (btpy_insn_sal, btpy_insn_pc, btpy_insn_size, btpy_insn_is_speculative,
11672 btpy_insn_data, btpy_insn_decode): Remove code path for gaps.
11673 (recpy_bt_replay_position, recpy_bt_begin, recpy_bt_end): Call
11674 btpy_insn_or_gap_new instead of btpy_insn_new.
11675 (btpy_insn_getset): Remove btpy_insn_error.
11676 * py-record.c (recpy_gap_type): New static object.
11677 (recpy_gap_object): New typedef.
11678 (recpy_gap_new, recpy_gap_number, recpy_gap_reason_code,
11679 recpy_gap_reason_string): New function.
11680 (recpy_gap_getset): New static object.
11681 (gdbpy_initialize_record): Initialize gdb.RecordGap type.
11682 * py-record.h (recpy_gap_new): New export.
11683
a3be24ad
TW
116842017-05-01 Tim Wiederhake <tim.wiederhake@intel.com>
11685
11686 * python/py-record.c (recpy_ptid): Remove.
11687 (recpy_record_getset): Remove recpy_ptid.
11688
ae20e79a
TW
116892017-05-01 Tim Wiederhake <tim.wiederhake@intel.com>
11690
11691 * btrace.c (btrace_fetch): Set inferior_ptid.
11692 * python/py-record-btrace.c: Add "py-record.h" include.
11693 (recpy_bt_format, recpy_bt_replay_position, recpy_bt_begin,
11694 recpy_bt_end, recpy_bt_instruction_history,
11695 recpy_bt_function_call_history, recpy_bt_goto): Use ptid stored
11696 in gdb.Record object instead of current ptid.
11697 * python/py-record.c: Include new "py-record.h" file.
11698 (recpy_record_object): Moved to py-record.h.
11699 * python/py-record.h: New file.
11700
8d0050ea
TW
117012017-05-01 Tim Wiederhake <tim.wiederhake@intel.com>
11702
11703 * python/py-record-btrace.c (BTPY_REQUIRE_VALID_INSN,
11704 BTPY_REQUIRE_VALID_CALL, recpy_bt_function_call_history): Fix
11705 indentation.
11706
3f380b50
JB
117072017-05-01 Joel Brobecker <brobecker@adacore.com>
11708
11709 * MAINTAINERS: Move Daniel Jacobowitz and Mark Kettenis to
11710 the past maintainers section.
11711
07495424
YQ
117122017-04-28 Yao Qi <yao.qi@linaro.org>
11713
11714 * infcmd.c (get_return_value): Use regcache ctor, and remove
11715 cleanup.
11716
deb1fa3e
YQ
117172017-04-28 Yao Qi <yao.qi@linaro.org>
11718 Pedro Alves <palves@redhat.com>
11719
11720 * regcache.c (regcache::regcache): New tag dispatch ctor.
11721 (do_cooked_read): Moved above.
11722 (regcache_dup): Use the tag dispatch ctor..
11723 * regcache.h (regcache): Declare ctor, delete copy ctor and
11724 assignment operator, remove friend regcache_dup.
11725
b421c83c
YQ
117262017-04-28 Yao Qi <yao.qi@linaro.org>
11727
11728 * regcache.c (regcache_dup): Assert !src->m_readonly_p and
11729 call method save instead of regcache_cpy.
11730 * regcache.h (struct regcache): Make regcache_dup a friend.
11731
ef79d9a3
YQ
117322017-04-28 Yao Qi <yao.qi@linaro.org>
11733
11734 * regcache.c (struct regcache): Move to regcache.h
11735 (regcache::arch): New method.
11736 (regcache_get_ptid): Update.
11737 (get_regcache_arch): Call arch method.
11738 (get_regcache_aspace): Call method aspace.
11739 (register_buffer): Change it to method.
11740 (regcache_save): Change it to regcache::save.
11741 (regcache_restore): Likewise.
11742 (regcache_cpy_no_passthrough): Remove the declaration.
11743 (regcache_cpy): Call methods restore and cpy_no_passthrough.
11744 (regcache_cpy_no_passthrough): Change it to method
11745 cpy_no_passthrough.
11746 (regcache_register_status): Change it to method
11747 get_register_status.
11748 (regcache_invalidate): Change it to method invalidate.
11749 (regcache_thread_ptid_changed): Use methods ptid and set_ptid.
11750 (regcache_raw_update): Change it to method raw_update.
11751 (regcache_raw_read): Likewise.
11752 (regcache_raw_read_signed): Likewise.
11753 (regcache_raw_read_unsigned): Likewise.
11754 (regcache_raw_write_signed): Likewise.
11755 (regcache_raw_write_unsigned): Likewise.
11756 (regcache_cooked_read): Likewise.
11757 (regcache_cooked_read_value): Likewise.
11758 (regcache_cooked_read_signed): Likewise.
11759 (regcache_cooked_read_unsigned): Likewise.
11760 (regcache_cooked_write_signed): Likewise.
11761 (regcache_cooked_write_unsigned): Likewise.
11762 (regcache_raw_set_cached_value): Likewise.
11763 (regcache_raw_write): Likewise.
11764 (regcache_cooked_write): Likewise.
11765 (regcache_xfer_part): Likewise.
11766 (regcache_raw_read_part): Likewise.
11767 (regcache_raw_write_part): Likewise.
11768 (regcache_cooked_read_part): Likewise.
11769 (regcache_cooked_write_part): Likewise.
11770 (regcache_raw_supply): Likewise.
11771 (regcache_raw_collect): Likewise.
11772 (regcache_transfer_regset): Likewise.
11773 (regcache_supply_regset): Likewise.
11774 (regcache_collect_regset): Likewise.
11775 (regcache_debug_print_register): Likewise.
11776 (enum regcache_dump_what): Move it to regcache.h.
11777 (regcache_dump): Change it to method dump.
11778 * regcache.h (enum regcache_dump_what): New.
11779 (class regcache): New.
11780 * target.c (target_fetch_registers): Call method
11781 debug_print_register.
11782 (target_store_registers): Likewise.
11783
f8fdb78e
SM
117842017-04-28 Simon Marchi <simon.marchi@ericsson.com>
11785
11786 * windows-nat.c (struct lm_info_windows): Initialize field.
11787 (windows_make_so): Allocate lm_info_windows with new.
11788 (windows_free_so): Free lm_info_windows with delete.
11789
9ccbfd7b
SM
117902017-04-28 Simon Marchi <simon.marchi@ericsson.com>
11791
11792 * solib-darwin.c (struct lm_info_darwin): Initialize field.
11793 (darwin_current_sos): Allocate lm_info_darwin with new, remove
11794 cleanup.
11795 (darwin_free_so): Free lm_info_darwin with delete.
11796
76e75227
SM
117972017-04-28 Simon Marchi <simon.marchi@ericsson.com>
11798
11799 * solib-svr4.h (struct lm_info_svr4): Initialize fields.
11800 <l_addr_p>: Change type to bool.
11801 * solib-svr4.c (lm_info_read): Allocate lm_info_svr4 with new.
11802 (svr4_free_so): Free lm_info_svr4 with delete.
11803 (svr4_copy_library_list): Replace memcpy with call to copy
11804 constructor.
11805 (library_list_start_library, svr4_default_sos): Allocate
11806 lm_info_svr4 with new.
11807
51046d9e
SM
118082017-04-28 Simon Marchi <simon.marchi@ericsson.com>
11809
11810 * solib-target.c (struct lm_info_target): Add destructor,
11811 initialize fields.
11812 <name>: Change type to std::string.
11813 (library_list_start_library): Allocate lm_info_target with new.
11814 (solib_target_free_library_list): Free lm_info_target with
11815 delete.
11816 (solib_target_current_sos): Adapt to std::string.
11817 (solib_target_free_so): Free lm_info_target with delete.
11818
4023ae76
SM
118192017-04-28 Simon Marchi <simon.marchi@ericsson.com>
11820
11821 * solib-frv.c (struct lm_info_frv): Add destructor, initialize
11822 fields.
11823 (frv_current_sos): Allocate lm_info_frv with new.
11824 (frv_relocate_main_executable): Free lm_info_frv with delete,
11825 allocate with new.
11826 (frv_clear_solib, frv_free_so): Free lm_info_frv with delete.
11827
af43057b
SM
118282017-04-28 Simon Marchi <simon.marchi@ericsson.com>
11829
11830 * solib-frv.c (struct lm_info_frv): Fix indentation.
11831
b0911207
SM
118322017-04-28 Simon Marchi <simon.marchi@ericsson.com>
11833
11834 * solib-dsbt.c (struct lm_info_dsbt): Add destructor, initialize
11835 map field.
11836 (dsbt_current_sos): Allocate lm_info_dsbt with new.
11837 (dsbt_relocate_main_executable): Free lm_info_dsbt with delete
11838 and allocate with new.
11839 (dsbt_clear_solib, dsbt_free_so): Free lm_info_dsbt with delete.
11840
6c401f72
SM
118412017-04-28 Simon Marchi <simon.marchi@ericsson.com>
11842
11843 * solib-aix.c (struct lm_info_aix): Initialize fields in-class.
11844 <filename, member_name>: Change type to std::string.
11845 (solib_aix_new_lm_info, solib_aix_xfree_lm_info): Remove.
11846 (library_list_start_library): Allocate lm_info_aix with new.
11847 (solib_aix_free_library_list, solib_aix_free_so): Free with delete.
11848 (solib_aix_current_sos): Adapt to std::string, copy lm_info_aix
11849 with copy constructor.
11850
d0e449a1
SM
118512017-04-28 Simon Marchi <simon.marchi@ericsson.com>
11852
11853 * solist.h (struct lm_info): Remove.
11854 (struct lm_info_base): New class.
11855 (struct so_list) <lm_info>: Change type to lm_info_base *.
11856 * nto-tdep.c (struct lm_info): Remove.
11857 (lm_addr): Adjust.
11858 * solib-aix.c (struct lm_info): Rename to ...
11859 (struct lm_info_aix): ... this. Extend lm_info_base.
11860 (lm_info_p): Rename to ...
11861 (lm_info_aix_p): ... this, and adjust.
11862 (solib_aix_new_lm_info, solib_aix_xfree_lm_info,
11863 solib_aix_parse_libraries, library_list_start_library,
11864 solib_aix_free_library_list, solib_aix_parse_libraries,
11865 solib_aix_get_library_list,
11866 solib_aix_relocate_section_addresses, solib_aix_free_so,
11867 solib_aix_get_section_offsets,
11868 solib_aix_solib_create_inferior_hook, solib_aix_current_sos):
11869 Adjust.
11870 (struct solib_aix_inferior_data) <library_list>: Adjust.
11871 * solib-darwin.c (struct lm_info): Rename to ...
11872 (struct lm_info_darwin): ... this. Extend lm_info_base.
11873 (darwin_current_sos, darwin_relocate_section_addresses): Adjust.
11874 * solib-dsbt.c (struct lm_info): Rename to ...
11875 (struct lm_info_dsbt): ... this. Extend lm_info_base.
11876 (struct dsbt_info) <main_executable_lm_info): Adjust.
11877 (dsbt_current_sos, dsbt_relocate_main_executable, dsbt_free_so,
11878 dsbt_relocate_section_addresses): Adjust.
11879 * solib-frv.c (struct lm_info): Rename to ...
11880 (struct lm_info_frv): ... this. Extend lm_info_base.
11881 (main_executable_lm_info): Adjust.
11882 (frv_current_sos, frv_relocate_main_executable, frv_free_so,
11883 frv_relocate_section_addresses, frv_fdpic_find_global_pointer,
11884 find_canonical_descriptor_in_load_object,
11885 frv_fdpic_find_canonical_descriptor): Adjust.
11886 * solib-svr4.c (struct lm_info): Move to solib-svr4.h, renamed
11887 to lm_info_svr4.
11888 (lm_info_read, lm_addr_check, svr4_keep_data_in_core,
11889 svr4_clear_so, svr4_copy_library_list,
11890 library_list_start_library, svr4_default_sos, svr4_read_so_list,
11891 svr4_current_sos, svr4_fetch_objfile_link_map,
11892 solist_update_incremental): Adjust.
11893 * solib-svr4.h (struct lm_info_svr4): Move here from
11894 solib-svr4.c.
11895 * solib-target.c (struct lm_info): Rename to ...
11896 (struct lm_info_target): ... this. Extend lm_info_base.
11897 (lm_info_p): Rename to ...
11898 (lm_info_target_p): ... this.
11899 (solib_target_parse_libraries, library_list_start_segment,
11900 library_list_start_section, library_list_start_library,
11901 library_list_end_library, solib_target_free_library_list,
11902 solib_target_current_sos, solib_target_free_so,
11903 solib_target_relocate_section_addresses): Adjust.
11904 * windows-nat.c (struct lm_info): Rename to ...
11905 (struct lm_info_windows): ... this. Extend lm_info_base.
11906 (windows_make_so, handle_load_dll, handle_unload_dll,
11907 windows_xfer_shared_libraries): Adjust.
11908
434a4023
SM
119092017-04-28 Simon Marchi <simon.marchi@ericsson.com>
11910
11911 * solib-darwin.c (struct darwin_so_list): Remove.
11912 (darwin_current_sos): Allocate an so_list object instead of a
11913 darwin_so_list, separately allocate an lm_info object.
11914 (darwin_free_so): Free lm_info.
11915
428544e8
JB
119162017-04-28 John Baldwin <jhb@FreeBSD.org>
11917
11918 * mips-tdep.c (print_gp_register_row): Replace printf_filtered
11919 with fprintf_filtered.
11920
4621115f
YQ
119212017-04-28 Yao Qi <yao.qi@linaro.org>
11922
11923 * regcache.c (regcache::regcache): New function.
11924 (regcache::~regcache): New function.
11925 (regcache_xmalloc_1): Remove.
11926 (regcache_xmalloc): Call new regcache.
11927 (regcache_xfree): Call delete regcache.
11928 (get_thread_arch_aspace_regcache): Call new regcache.
11929
339053c2
YQ
119302017-04-28 Yao Qi <yao.qi@linaro.org>
11931
11932 * mips-linux-nat.c (mips_linux_new_thread): Use ptid method
11933 lwp instead of ptid_get_lwp.
11934
7974a605
YQ
119352017-04-28 Yao Qi <yao.qi@linaro.org>
11936
11937 * mips-linux-nat.c (mips_linux_new_thread): Get lwpid from
11938 lwp_info instead of getting from inferior_ptid.
11939
e15c3eb4
KS
119402017-04-27 Keith Seitz <keiths@redhat.com>
11941
11942 * gdbtypes.c (LVALUE_REFERENCE_TO_RVALUE_BINDING_BADNESS)
11943 DIFFERENT_REFERENCE_TYPE_BADNESS): Remove.
11944 (CV_CONVERSION_BADNESS): Define.
11945 (rank_one_type): Remove overly restrictive rvalue reference
11946 rank checks.
11947 Add cv-qualifier checks and subranks for type equality.
11948 * gdbtypes.h (REFERENCE_CONVERSION_RVALUE,
11949 REFERENCE_CONVERSION_CONST_LVALUE, CV_CONVERSION_BADNESS,
11950 CV_CONVERSION_CONST, CV_CONVERSION_VOLATILE): Declare.
11951
72bc1d24
SM
119522017-04-27 Simon Marchi <simon.marchi@ericsson.com>
11953
11954 * python/py-inferior.c (inferior_to_inferior_object): Increment reference
11955 count when creating the object.
11956
55bcecda
UW
119572017-04-27 Sangamesh Mallayya <sangamesh.swamy@in.ibm.com>
11958 Ulrich Weigand <uweigand@de.ibm.com>
11959
11960 * xcoffread.c (read_xcoff_symtab): Read correct function auxiliary
11961 entry if xlc -qfuncsect or gcc -ffunction-sections compiler option
11962 is used in AIX.
11963 (read_xcoff_symtab): Handle C_WEAKEXT storage class.
11964 (process_xcoff_symbol): Likewise.
11965 (scan_xcoff_symtab): Likewise.
11966
5c99fcf8
AH
119672017-04-26 Alan Hayward <alan.hayward@arm.com>
11968
11969 * ia64-tdep.c (examine_prologue): Use get_frame_register_unsigned.
11970 (ia64_sigtramp_frame_prev_register): Use read_memory_unsigned_integer.
11971 (ia64_access_reg): Use get_frame_register_unsigned.
11972 (ia64_access_rse_reg): Likewise.
11973 (ia64_libunwind_frame_prev_register): Likewise.
11974
b41c5a85
JW
119752017-04-26 Jiong Wang <jiong.wang@arm.com>
11976
11977 * gdbarch.sh: New gdbarch method execute_dwarf_cfa_vendor_op.
11978 * gdbarch.c: Regenerated.
11979 * gdbarch.h: Regenerated.
11980 * dwarf2-frame.c (dwarf2_frame_state_alloc_regs): Made the
11981 visibility external.
11982 (execute_cfa_program): Call execute_dwarf_cfa_vendor_op for CFI
11983 between DW_CFA_lo_user and DW_CFA_high_user inclusive.
11984 (enum cfa_how_kind): Move to ...
11985 (struct dwarf2_frame_state_reg_info): Likewise.
11986 (struct dwarf2_frame_state): Likewise.
11987 * dwarf2-frame.h: ... here.
11988 (dwarf2_frame_state_alloc_regs): New declaration.
11989 * sparc-tdep.c (sparc_execute_dwarf_cfa_vendor_op): New function.
11990 (sparc32_gdbarch_init): Register execute_dwarf_cfa_vendor_op hook.
11991
c185f580
AH
119922017-04-26 Alan Hayward <alan.hayward@arm.com>
11993
11994 * xtensa-tdep.c (xtensa_pseudo_register_read): Use
11995 regcache_raw_read_unsigned.
11996 (xtensa_pseudo_register_write): Likewise.
11997
19c45594
AH
119982017-04-26 Alan Hayward <alan.hayward@arm.com>
11999
12000 * nds32-tdep.c (nds32_pseudo_register_read): Abort on errors.
12001 (nds32_pseudo_register_write): Likewise.
12002
4658f12e
YQ
120032017-04-25 Yao Qi <yao.qi@linaro.org>
12004
12005 * regcache.c (struct regcache) <readonly_p>: Change its type
12006 to bool.
12007 (regcache_xmalloc_1): Update parameter type and callers update.
12008
d581dda8
YQ
120092017-04-25 Yao Qi <yao.qi@linaro.org>
12010
12011 * aarch64-tdep.c (aarch64_gdbarch_init): Don't call
12012 set_gdbarch_wchar_bit.
12013 * arm-tdep.c (arm_gdbarch_init): Likewise.
12014
debed3db
PA
120152017-04-25 Pedro Alves <palves@redhat.com>
12016
12017 * common/poison.h [!HAVE_IS_TRIVIALLY_COPYABLE] (IsRelocatable)
12018 (BothAreRelocatable, memcopy, memmove): Don't define.
12019 * common/traits.h (__has_feature, HAVE_IS_TRIVIALLY_COPYABLE): New
12020 macros.
12021
b0b92aeb
PA
120222017-04-25 Pedro Alves <palves@redhat.com>
12023
12024 * common/common-defs.h: Include "common/poison.h".
12025 * common/function-view.h: (Not, Or, Requires): Move to traits.h
12026 and adjust.
12027 * common/poison.h: New file.
12028 * common/traits.h: Include <type_traits>.
12029 (Not, Or, Requires): New, moved from common/function-view.h.
12030
16c4d54a
PA
120312017-04-25 Pedro Alves <palves@redhat.com>
12032
12033 * breakpoint.h (struct breakpoint): In-class initialize all
12034 fields. Make boolean fields "bool".
12035 * breakpoint.c (init_raw_breakpoint_without_location): Remove
12036 memset call and initializations no longer necessary.
12037
b5c36682
PA
120382017-04-25 Pedro Alves <palves@redhat.com>
12039
12040 * btrace.c (pt_btrace_insn_flags): Change parameter type to
12041 reference.
12042 (pt_btrace_insn): New function.
12043 (ftrace_add_pt): Remove memset call and use pt_btrace_insn.
12044
5625a286
PA
120452017-04-25 Pedro Alves <palves@redhat.com>
12046
12047 * ada-lang.c (ada_catchpoint_location): Now a "class". Remove
12048 "base" field and inherit from "bp_location" instead. Add
12049 non-default ctor.
12050 (allocate_location_exception): Use new non-default ctor.
12051 * breakpoint.c (get_first_locp_gte_addr): Remove memset call.
12052 (init_bp_location): Convert to ...
12053 (bp_location::bp_location): ... this new ctor, and remove memset
12054 call.
12055 (base_breakpoint_allocate_location): Use the new non-default ctor.
12056 * breakpoint.h (bp_location): Now a class. Declare default and
12057 non-default ctors. In-class initialize all members.
12058 (init_bp_location): Remove declaration.
12059
23bcc18f
PA
120602017-04-25 Pedro Alves <palves@redhat.com>
12061
12062 * common/enum-flags.h (enum_flags): Don't implement copy ctor and
12063 assignment operator.
12064
e1ba3053
YQ
120652017-04-24 Yao Qi <yao.qi@linaro.org>
12066
12067 * doublest.c (convert_doublest_to_floatformat): Call
12068 floatformat_totalsize_bytes.
12069
10f489e5
TT
120702017-04-22 Tom Tromey <tom@tromey.com>
12071
12072 * mi/mi-cmd-file.c (mi_cmd_file_list_shared_libraries): Use
12073 ui_out_emit_list.
12074 * stack.c (print_frame): Use ui_out_emit_list.
12075 * mi/mi-symbol-cmds.c (mi_cmd_symbol_list_lines): Use
12076 ui_out_emit_list.
12077 * mi/mi-main.c (print_one_inferior)
12078 (mi_cmd_data_list_register_names)
12079 (mi_cmd_data_list_register_values, mi_cmd_list_features)
12080 (mi_cmd_list_target_features, mi_cmd_trace_frame_collected): Use
12081 ui_out_emit_list.
12082 * mi/mi-interp.c (mi_on_normal_stop_1): Use ui_out_emit_list.
12083 (mi_output_solib_attribs): Use ui_out_emit_list,
12084 ui_out_emit_tuple.
12085 * mi/mi-cmd-var.c (varobj_update_one): Use ui_out_emit_list.
12086 * mi/mi-cmd-stack.c (mi_cmd_stack_list_frames)
12087 (mi_cmd_stack_list_args, list_args_or_locals): Use
12088 ui_out_emit_list.
12089 * disasm.c (do_assembly_only): Use ui_out_emit_list.
12090 * breakpoint.c (print_solib_event, output_thread_groups): Use
12091 ui_out_emit_list.
12092
0092b74d
TT
120932017-04-22 Tom Tromey <tom@tromey.com>
12094
12095 * mi/mi-main.c (print_variable_or_computed): Use ui_out_emit_tuple.
12096 * mi/mi-cmd-var.c (varobj_update_one): Use ui_out_emit_tuple.
12097 * mi/mi-cmd-stack.c (list_arg_or_local): Use ui_out_emit_tuple.
12098
a14a62dd
TT
120992017-04-22 Tom Tromey <tom@tromey.com>
12100
12101 * tracepoint.c (tvariables_info_1)
12102 (print_one_static_tracepoint_marker): Use ui_out_emit_tuple.
12103
46b9c129
TT
121042017-04-22 Tom Tromey <tom@tromey.com>
12105
12106 * stack.c (print_frame_arg): Use ui_out_emit_tuple,
12107 annotate_arg_emitter.
12108 * breakpoint.c (print_mention_watchpoint)
12109 (print_mention_masked_watchpoint): Use ui_out_emit_tuple.
12110 * annotate.h (struct annotate_arg_emitter): New.
12111
2e783024
TT
121122017-04-22 Tom Tromey <tom@tromey.com>
12113
12114 * record-btrace.c (record_btrace_insn_history)
12115 (record_btrace_insn_history_range, record_btrace_call_history)
12116 (record_btrace_call_history_range): Use ui_out_emit_tuple.
12117 * thread.c (do_captured_list_thread_ids, print_thread_info_1): Use
12118 ui_out_emit_tuple.
12119 * stack.c (print_frame_info): Use ui_out_emit_tuple.
12120 * solib.c (info_sharedlibrary_command): Use ui_out_emit_tuple.
12121 * skip.c (skip_info): Use ui_out_emit_tuple.
12122 * remote.c (show_remote_cmd): Use ui_out_emit_tuple.
12123 * progspace.c (print_program_space): Use ui_out_emit_tuple.
12124 * probe.c (info_probes_for_ops): Use ui_out_emit_tuple.
12125 * osdata.c (info_osdata): Use ui_out_emit_tuple.
12126 * mi/mi-symbol-cmds.c (mi_cmd_symbol_list_lines): Use
12127 ui_out_emit_tuple.
12128 * mi/mi-main.c (print_one_inferior, list_available_thread_groups)
12129 (output_register, mi_cmd_data_read_memory)
12130 (mi_cmd_data_read_memory_bytes, mi_load_progress)
12131 (mi_cmd_trace_frame_collected): Use ui_out_emit_tuple.
12132 * mi/mi-cmd-var.c (mi_cmd_var_list_children, varobj_update_one):
12133 Use ui_out_emit_tuple.
12134 * mi/mi-cmd-stack.c (mi_cmd_stack_list_args): Use
12135 ui_out_emit_tuple.
12136 * mi/mi-cmd-info.c (mi_cmd_info_ada_exceptions)
12137 (mi_cmd_info_gdb_mi_command): Use ui_out_emit_tuple.
12138 * linux-thread-db.c (info_auto_load_libthread_db): Use
12139 ui_out_emit_tuple.
12140 * inferior.c (print_inferior): Use ui_out_emit_tuple.
12141 * gdb_bfd.c (print_one_bfd): Use ui_out_emit_tuple.
12142 * disasm.c (do_mixed_source_and_assembly_deprecated)
12143 (do_mixed_source_and_assembly): Use ui_out_emit_tuple.
12144 * cp-abi.c (list_cp_abis): Use ui_out_emit_tuple.
12145 * cli/cli-setshow.c (cmd_show_list): Use ui_out_emit_tuple.
12146 * breakpoint.c (print_one_breakpoint_location)
12147 (print_one_breakpoint): Use ui_out_emit_tuple.
12148 * auto-load.c (print_script, info_auto_load_cmd): Use
12149 ui_out_emit_tuple.
12150 * ada-tasks.c (print_ada_task_info): Use ui_out_emit_tuple.
12151
9be21bb4
SM
121522017-04-21 Simon Marchi <simon.marchi@ericsson.com>
12153
12154 * thread.c (print_thread_info_1): Remove dead code.
12155
0d4c07af
JK
121562017-04-21 Jan Kratochvil <jan.kratochvil@redhat.com>
12157
12158 * aarch64-tdep.c (selftests::aarch64_process_record_test): Make it #if
12159 GDB_SELF_TEST.
12160 * arm-tdep.c (selftests::arm_record_test): Likewise.
12161
4daf993d
YQ
121622017-04-21 Yao Qi <yao.qi@linaro.org>
12163
12164 * regcache.c (regcache_restore): Remove argument 2. Replace
12165 argument 3 with regcache. Get register status from
12166 src->register_status and get register contents from
12167 register_buffer (src, regnum).
12168 (regcache_cpy): Update.
12169
a6c21d4a
PA
121702017-04-19 Pedro Alves <palves@redhat.com>
12171
12172 * gdbthread.h (thread): Add missing closing parenthesis in
12173 comment.
12174
3a3fd0fd
PA
121752017-04-19 Pedro Alves <palves@redhat.com>
12176
12177 * common/refcounted-object.h: New file.
12178 * gdbthread.h: Include "common/refcounted-object.h".
12179 (thread_info): Inherit from refcounted_object and add comments.
12180 (thread_info::incref, thread_info::decref)
12181 (thread_info::m_refcount): Delete.
12182 (thread_info::deletable): Use the refcounted_object::refcount()
12183 method.
12184 * inferior.c (current_inferior_): Add comment.
12185 (set_current_inferior): Increment/decrement refcounts.
12186 (prune_inferiors, remove_inferior_command): Skip inferiors marked
12187 not-deletable instead of comparing with the current inferior.
12188 (initialize_inferiors): Increment the initial inferior's refcount.
12189 * inferior.h (struct inferior): Forward declare.
12190 Include "common/refcounted-object.h".
12191 (current_inferior, set_current_inferior): Move declaration to
12192 before struct inferior's definition, and fix comment.
12193 (inferior): Inherit from refcounted_object. Add comments.
12194 * thread.c (switch_to_thread_no_regs): Reference the thread's
12195 inferior pointer directly instead of doing a ptid lookup.
12196 (switch_to_no_thread): New function.
12197 (switch_to_thread(thread_info *)): New function, factored out
12198 from ...
12199 (switch_to_thread(ptid_t)): ... this.
12200 (restore_current_thread): Delete.
12201 (current_thread_cleanup): Remove 'inf_id' and 'was_removable'
12202 fields, and add 'inf' field.
12203 (do_restore_current_thread_cleanup): Check whether old->inf is
12204 alive instead of looking up an inferior by ptid. Use
12205 switch_to_thread and switch_to_no_thread.
12206 (restore_current_thread_cleanup_dtor): Use old->inf directly
12207 instead of lookup up an inferior by id. Decref the inferior.
12208 Don't restore 'removable'.
12209 (make_cleanup_restore_current_thread): Same the inferior pointer
12210 in old, instead of the inferior number. Incref the inferior.
12211 Don't save/clear 'removable'.
12212
9bcb1f16
PA
122132017-04-19 Pedro Alves <palves@redhat.com>
12214
12215 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
12216 unittests/scoped_restore-selftests.c.
12217 (SUBDIR_UNITTESTS_OBS): Add scoped_restore-selftests.o.
12218 * common/scoped_restore.h (scoped_restore_base): Make "class".
12219 (scoped_restore_base::release): New public method.
12220 (scoped_restore_base::scoped_restore_base): New protected ctor.
12221 (scoped_restore_base::m_saved_var): New protected field.
12222 (scoped_restore_tmpl::scoped_restore_tmpl(T*)): Initialize the
12223 scoped_restore_base base class instead of m_saved_var directly.
12224 (scoped_restore_tmpl::scoped_restore_tmpl(T*, T2)): Likewise.
12225 (scoped_restore_tmpl::scoped_restore_tmpl(const
12226 scoped_restore_tmpl<T>&)): Likewise.
12227 (scoped_restore_tmpl::~scoped_restore_tmpl): Use the saved_var
12228 method.
12229 (scoped_restore_tmpl::saved_var): New method.
12230 (scoped_restore_tmpl::m_saved_var): Delete.
12231 * inferior.h (inferior::detaching): Now a bool.
12232 * infrun.c (prepare_for_detach): Use a scoped_restore instead of a
12233 cleanup.
12234 * unittests/scoped_restore-selftests.c: New file.
12235
26fcd539
PA
122362017-04-19 Pedro Alves <palves@redhat.com>
12237
12238 * Makefile.in (SUBDIR_UNITTESTS_SRCS, SUBDIR_UNITTESTS_OBS):
12239 Re-sort in alphabetic order.
12240
fdd243b0
PA
122412017-04-18 Pedro Alves <palves@redhat.com>
12242
12243 * xml-support.c (obstack_xml_printf): Delete.
12244 * xml-support.h (obstack_xml_printf): Delete.
12245
4895cde2
PA
122462017-04-18 Pedro Alves <palves@redhat.com>
12247
12248 * xml-support.c (gdb_xml_parser) <use_dtd, dtd_name, parse,
12249 vdebug, verror, body_text, start_element, end_element, name,
12250 user_data, set_is_xinclude, set_error, expat_parser>: New methods.
12251 <name, user_data, expat_parser, scopes, error, last_line, dtd_name,
12252 is_xinclude>: Make private and add m_ prefix.
12253 (gdb_xml_parser::body_text): New method, based on ...
12254 (gdb_xml_body_text): ... this. Adjust.
12255 (gdb_xml_parser::vdebug): New method, based on ...
12256 (gdb_xml_debug): ... this. Adjust.
12257 (gdb_xml_parser::verror): New method, based on ...
12258 (gdb_xml_error): ... this. Adjust.
12259 (gdb_xml_parser::start_element): New method, based on ...
12260 (gdb_xml_start_element): ... this. Adjust.
12261 (gdb_xml_start_element_wrapper): Defer to
12262 gdb_xml_parser::start_element and gdb_xml_parser::set_error.
12263 (gdb_xml_parser::end_element): New method, based on ...
12264 (gdb_xml_end_element_wrapper): ... this. Adjust.
12265 (gdb_xml_parser::~gdb_xml_parser): Adjust.
12266 (gdb_xml_parser::gdb_xml_parser): Adjust to field renames.
12267 (gdb_xml_parser::use_dtd): New method, based on ...
12268 (gdb_xml_use_dtd): ... this. Adjust.
12269 (gdb_xml_parser::parse): New method, based on ...
12270 (gdb_xml_parse): ... this. Adjust.
12271 (gdb_xml_parse_quick): Adjust to call the parser's parse method.
12272 (xinclude_start_include): Adjust to call the parser's name method.
12273 (xml_xinclude_default, xml_xinclude_start_doctype)
12274 (xml_xinclude_end_doctype): Adjust to call the parser's user_data
12275 method.
12276 (xml_process_xincludes): Adjust to call parser methods.
12277 * xml-support.h (gdb_xml_use_dtd, gdb_xml_parse): Delete
12278 declarations.
12279
bd8a901f
PA
122802017-04-18 Pedro Alves <palves@redhat.com>
12281
12282 * tracefile-tfile.c (tfile_write_tdesc): Adjust to use
12283 gdb::optional<std::string>.
12284 * xml-support.c: Include <string>.
12285 (scope_level::scope_level(scope_level &&))
12286 (scope_level::~scope_level): Delete.
12287 (scope_level::body): Now a std::string.
12288 (gdb_xml_body_text, gdb_xml_end_element): Adjust.
12289 (xinclude_parsing_data::xinclude_parsing_data): Add 'output'
12290 parameter.
12291 (xinclude_parsing_data::~xinclude_parsing_data): Delete.
12292 (xinclude_parsing_data::output): Now a std::string reference.
12293 (xinclude_start_include): Adjust.
12294 (xml_xinclude_default): Adjust.
12295 (xml_process_xincludes): Add 'output' parameter, and return bool.
12296 * xml-support.h (xml_process_xincludes): Add 'output' parameter,
12297 and return bool.
12298 * xml-tdesc.c: Include <unordered_map> and <string>.
12299 (tdesc_xml_cache): Delete.
12300 (tdesc_xml_cache_s): Delete.
12301 (xml_cache): Now an std::unordered_map.
12302 (tdesc_parse_xml): Adjust to use std::string and unordered_map.
12303 (target_fetch_description_xml): Change return type to
12304 gdb::optional<std::string>, and adjust.
12305 * xml-tdesc.h: Include "common/gdb_optional.h" and <string>.
12306 (target_fetch_description_xml): Change return type to
12307 gdb::optional<std::string>.
12308
d35d1958
PA
123092017-04-18 Pedro Alves <palves@redhat.com>
12310
12311 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
12312 unittests/optional-selftests.c.
12313 (SUBDIR_UNITTESTS_OBS): Add optional-selftests.o.
12314 * unittests/optional-selftests.c: New file.
12315 * unittests/optional/assignment/1.cc: New file.
12316 * unittests/optional/assignment/2.cc: New file.
12317 * unittests/optional/assignment/3.cc: New file.
12318 * unittests/optional/assignment/4.cc: New file.
12319 * unittests/optional/assignment/5.cc: New file.
12320 * unittests/optional/assignment/6.cc: New file.
12321 * unittests/optional/assignment/7.cc: New file.
12322 * unittests/optional/cons/copy.cc: New file.
12323 * unittests/optional/cons/default.cc: New file.
12324 * unittests/optional/cons/move.cc: New file.
12325 * unittests/optional/cons/value.cc: New file.
12326 * unittests/optional/in_place.cc: New file.
12327 * unittests/optional/observers/1.cc: New file.
12328 * unittests/optional/observers/2.cc: New file.
12329
22796e97
PA
123302017-04-18 Pedro Alves <palves@redhat.com>
12331
12332 * common/gdb_optional.h: Include common/traits.h.
12333 (in_place_t): New type.
12334 (in_place): New constexpr variable.
12335 (optional::optional): Remove member initialization of
12336 m_instantiated.
12337 (optional::optional(in_place_t...)): New constructor.
12338 (optional::~optional): Use reset.
12339 (optional::optional(const optional&)): New.
12340 (optional::optional(const optional&&)): New.
12341 (optional::optional(T &)): New.
12342 (optional::optional(T &&)): New.
12343 (operator::operator=(const optional &)): New.
12344 (operator::operator=(optional &&)): New.
12345 (operator::operator= (const T &))
12346 (operator::operator= (T &&))
12347 (operator::emplace (Args &&... args)): Return a T&. Use reset.
12348 (operator::reset): New.
12349 (operator::m_instantiated):: Add in-class initializer.
12350 * common/traits.h: Include <type_traits>.
12351 (struct And): New types.
12352
a7fc9b61
PA
123532017-04-18 Pedro Alves <palves@redhat.com>
12354
12355 * xml-support.c: Include <vector>.
12356 (scope_level::scope_level(const gdb_xml_element *))
12357 (scope_level::scope_level(scope_level&&)): New.
12358 (scope_level::~scope_level): New.
12359 (scope_level_s): Delete.
12360 (gdb_xml_parser::scopes): Now a std::vector.
12361 (gdb_xml_body_text, gdb_xml_start_element, gdb_xml_end_element):
12362 Use std::vector.
12363 (gdb_xml_parser::~gdb_xml_parser): Remove now unnecessary
12364 scope cleanup code.
12365 (gdb_xml_parser::gdb_xml_parser): Remove explicit initialization
12366 of the scopes member. Use std::vector::emplace_back.
12367
010151c9
PA
123682017-04-18 Pedro Alves <palves@redhat.com>
12369
12370 * xml-support.c (gdb_xml_parser): Add ctor/dtor. Make is_xinclude
12371 a bool.
12372 (gdb_xml_end_element): Change type of first parameter.
12373 (gdb_xml_cleanup): Rename to ...
12374 (gdb_xml_parser::~gdb_xml_parser): ... this.
12375 (gdb_xml_create_parser_and_cleanup): Delete with ...
12376 (gdb_xml_parser::gdb_xml_parser): ... creation parts factored out
12377 to this new ctor.
12378 (gdb_xml_parse_quick): Create a local gdb_xml_parser instead of
12379 using gdb_xml_create_parser_and_cleanup.
12380 (xinclude_parsing_data): Add ctor/dtor.
12381 (xml_xinclude_cleanup): Delete.
12382 (xml_process_xincludes): Create a local xinclude_parsing_data
12383 instead of heap-allocating one. Create a local gdb_xml_parser
12384 instead of heap-allocating one with
12385 gdb_xml_create_parser_and_cleanup.
12386
d56060f0
JB
123872017-04-18 John Baldwin <jhb@FreeBSD.org>
12388
12389 PR threads/20743
12390 * fbsd-nat.c (resume_one_thread_cb): Remove.
12391 (resume_all_threads_cb): Remove.
12392 (fbsd_resume): Use ALL_NON_EXITED_THREADS instead of
12393 iterate_over_threads.
12394
305d16a9
JB
123952017-04-17 Joel Brobecker <brobecker@adacore.com>
12396
12397 * NEWS: Create a new section for the next release branch.
12398 Rename the section of the current branch, now that it has
12399 been cut.
12400
8bb57231
JB
124012017-04-17 Joel Brobecker <brobecker@adacore.com>
12402
12403 GDB 8.0 branch created (725bf5cf125783c2a7ca4ab63d3768e220bab2db):
12404 * version.in: Bump version to 8.0.50.DATE-git.
12405
096c92dd
SDJ
124062017-04-13 Sergio Durigan Junior <sergiodj@redhat.com>
12407
12408 PR gdb/21385
12409 * windows-nat.c (windows_create_inferior): Declare 'allargs'
12410 independently of the host, and fix build breakage on Cygwin.
12411
0550c955
PA
124122017-04-13 Pedro Alves <palves@redhat.com>
12413
12414 * inferior.c (free_inferior): Convert to ...
12415 (inferior::~inferior): ... this dtor.
12416 (inferior::inferior): New ctor, factored out from ...
12417 (add_inferior_silent): ... here. Allocate the inferior with a new
12418 expression.
12419 (delete_inferior): Call delete instead of free_inferior.
12420 * inferior.h (gdb_environ, continuation): Forward declare.
12421 (inferior): Now a class. Add in-class initialization to all
12422 members. Make boolean fields bool, except 'detaching'.
12423 (inferior::inferior): New explicit ctor.
12424 (inferior::~inferior): New.
12425
e3d60dfc
PA
124262017-04-13 Pedro Alves <palves@redhat.com>
12427
12428 * inferior.c (init_inferior_list): Delete.
12429 * inferior.h (init_inferior_list): Delete.
12430
5fd69d0a
PA
124312017-04-13 Pedro Alves <palves@redhat.com>
12432
12433 PR threads/13217
12434 * gdb.threads/threadapply.exp (thr_apply_detach): New procedure.
12435 (top level): Call it twice, with different thread sets.
12436
c6609450
PA
124372017-04-13 Pedro Alves <palves@redhat.com>
12438
12439 * thread.c: Include <algorithm>.
12440 (thread_array_cleanup): Delete.
12441 (scoped_inc_dec_ref): New class.
12442 (live_threads_count): New function.
12443 (set_thread_refcount): Delete.
12444 (tp_array_compar_ascending): Now a bool.
12445 (tp_array_compar): Convert to a std::sort comparison function.
12446 (thread_apply_all_command): Use std::vector and scoped_inc_dec_ref
12447 and live_threads_count.
12448
2a00d7ce
PA
124492017-04-13 Pedro Alves <palves@redhat.com>
12450
12451 * infrun.c (follow_fork_inferior): Also switch the current
12452 inferior.
12453
441d7c93
PA
124542017-04-13 Pedro Alves <palves@redhat.com>
12455
12456 * breakpoint.c (watch_command_1): Save watchpoint-frame info
12457 before calling create_internal_breakpoint.
12458
808480f6
PA
124592017-04-13 Pedro Alves <palves@redhat.com>
12460
12461 * fork-child.c (execv_argv): New class.
12462 (breakup_args): Refactored as ...
12463 (execv_argv::init_for_no_shell): .. this method of execv_argv.
12464 Copy arguments to storage and replace separators with NULL
12465 terminators in place.
12466 (escape_bang_in_quoted_argument): Adjust to return bool.
12467 (execv_argv::execv_argv): New ctor.
12468 (execv_argv::init_for_shell): New method, factored out from
12469 fork_inferior. Don't strdup strings into the vector.
12470 (fork_inferior): Eliminate "shell" local and use execv_argv. Use
12471 Remove free_vector_argv call.
12472
ad3d022a
YQ
124732017-04-13 Yao Qi <yao.qi@linaro.org>
12474
12475 * rx-tdep.c (rx_fpsw_type): Check tdep->rx_fpsw_type instead of
12476 tdep->rx_psw_type.
12477
e6ddc3bf
YQ
124782017-04-13 Yao Qi <yao.qi@linaro.org>
12479
12480 * rl78-tdep.c (rl78_gdbarch_init): Use XCNEW instead of XNEW.
12481 * rx-tdep.c (rx_gdbarch_init): Likewise.
12482
bfb8cf90
PA
124832017-04-13 Pedro Alves <palves@redhat.com>
12484
12485 * breakpoint.h (struct breakpoint): Reindent.
12486
f5336ca5
PA
124872017-04-13 Pedro Alves <palves@redhat.com>
12488
12489 * breakpoint.c (bp_location): Rename to ...
12490 (bp_locations): ... this. All references updated.
12491 (bp_location_count): Rename to ...
12492 (bp_locations_count): ... this. All references updated.
12493 (bp_location_placed_address_before_address_max): Rename to ...
12494 (bp_locations_placed_address_before_address_max): ... this. All
12495 references updated.
12496 (bp_location_shadow_len_after_address_max): Rename to ...
12497 (bp_locations_shadow_len_after_address_max): ... this. All
12498 references updated.
12499 (bp_location_compare_addrs): Rename to ...
12500 (bp_locations_compare_addrs): ... this. All references updated.
12501 (bp_location_compare):Rename to ...
12502 (bp_locations_compare): ... this. All references updated.
12503 (bp_location_target_extensions_update): Rename to ...
12504 (bp_locations_target_extensions_update): ... this. All references
12505 updated.
12506
be628ab8
SDJ
125072017-04-12 Sergio Durigan Junior <sergiodj@redhat.com>
12508
12509 * Makefile.in (HFILES_NO_SRCDIR): Add "common/gdb_termios.h".
12510 * common/common.m4: Check headers 'termios.h', 'termio.h' and
12511 'sgtty.h'.
12512 * common/gdb_termios.h: New file, with parts of "terminal.h".
12513 * inflow.c: Include "gdb_termios.h".
12514 * ser-unix.c: Include "gdb_termios.h".
12515 * terminal.h: Move terminal-related defines to
12516 "common/gdb_termios.h".
12517
8e9e35b1
TT
125182017-04-12 Tom Tromey <tom@tromey.com>
12519
12520 * probe.c (parse_probes): Update.
12521 * location.h (delete_event_location): Don't declare.
12522 (event_location_deleter::operator()): Update.
12523 * location.c (event_location_deleter::operator()): Rename from
12524 delete_event_location.
12525 * linespec.h (linespec_result) <location>: Change type to
12526 event_location_up.
12527 * linespec.c (canonicalize_linespec, event_location_to_sals)
12528 (decode_objc): Update.
12529 (linespec_result): Don't call delete_event_location.
12530 * breakpoint.c (create_breakpoints_sal)
12531 (bkpt_probe_create_sals_from_location)
12532 (strace_marker_create_sals_from_location): Update.
12533
16e802b9
TT
125342017-04-12 Tom Tromey <tom@tromey.com>
12535
12536 * linespec.h (struct linespec_result): Add constructor and
12537 destructor.
12538 (init_linespec_result, destroy_linespec_result)
12539 (make_cleanup_destroy_linespec_result): Don't declare.
12540 * linespec.c (init_linespec_result): Remove.
12541 (linespec_result::~linespec_result): Rename from
12542 destroy_linespec_result. Update.
12543 (cleanup_linespec_result, make_cleanup_destroy_linespec_result):
12544 Remove.
12545 * breakpoint.c (create_breakpoint, break_range_command)
12546 (decode_location_default): Update.
12547 * ax-gdb.c (agent_command_1): Update.
12548
d28cd78a
TT
125492017-04-12 Tom Tromey <tom@tromey.com>
12550
12551 * remote.c (remote_download_tracepoint): Update.
12552 * python/py-breakpoint.c (bppy_get_location): Update.
12553 * guile/scm-breakpoint.c (bpscm_print_breakpoint_smob)
12554 (gdbscm_breakpoint_location): Update.
12555 * elfread.c (elf_gnu_ifunc_resolver_return_stop): Update.
12556 * breakpoint.h (struct breakpoint) <location, location_range_end>:
12557 Change type to event_location_up.
12558 * breakpoint.c (create_overlay_event_breakpoint)
12559 (create_longjmp_master_breakpoint)
12560 (create_std_terminate_master_breakpoint)
12561 (create_exception_master_breakpoint)
12562 (breakpoint_event_location_empty_p, print_breakpoint_location)
12563 (print_one_breakpoint_location, create_thread_event_breakpoint)
12564 (init_breakpoint_sal, create_breakpoint)
12565 (print_recreate_ranged_breakpoint, break_range_command)
12566 (init_ada_exception_breakpoint, say_where): Update.
12567 (base_breakpoint_dtor): Don't call delete_event_location.
12568 (bkpt_print_recreate, tracepoint_print_recreate)
12569 (dprintf_print_recreate, update_static_tracepoint)
12570 (breakpoint_re_set_default): Update.
12571
711799d5
TT
125722017-04-12 Tom Tromey <tom@tromey.com>
12573
12574 * compile/compile-loc2c.c (compute_stack_depth_worker): Change
12575 type of "to_do". Update.
12576 (compute_stack_depth): Use std::vector.
12577
52d214d3
TT
125782017-04-12 Tom Tromey <tom@tromey.com>
12579
12580 * printcmd.c (find_instruction_backward): Use std::vector.
12581
4c404b8b
TT
125822017-04-12 Tom Tromey <tom@tromey.com>
12583
12584 * symfile.c (objfilep): Remove typedef.
12585 (reread_symbols): Use a std::vector.
12586
156d9eab
TT
125872017-04-12 Tom Tromey <tom@tromey.com>
12588
12589 * mi/mi-main.c (exec_direction_forward): Remove.
12590 (exec_reverse_continue, mi_execute_command): Use scoped_restore.
12591 * guile/scm-ports.c (ioscm_with_output_to_port_worker): Use
12592 scoped_restore.
12593 * guile/guile.c (guile_repl_command, guile_command)
12594 (gdbscm_execute_gdb_command): Use scoped_restore.
12595 * go-exp.y (go_parse): Use scoped_restore.
12596 * d-exp.y (d_parse): Use scoped_restore.
12597 * cli/cli-decode.c (cmd_func): Use scoped_restore.
12598 * c-exp.y (c_parse): Use scoped_restore.
12599
4d89769a
TT
126002017-04-12 Tom Tromey <tom@tromey.com>
12601
12602 * mi/mi-parse.h (struct mi_parse): Add constructor, destructor.
12603 (mi_parse): Update return type.
12604 (mi_parse_free): Remove.
12605 * mi/mi-parse.c (mi_parse::mi_parse): New constructor.
12606 (mi_parse::~mi_parse): Rename from mi_parse_free.
12607 (mi_parse_cleanup): Remove.
12608 (mi_parse): Return a unique_ptr. Use new.
12609 * mi/mi-main.c (mi_execute_command): Update.
12610
4b217cc7
TT
126112017-04-12 Tom Tromey <tom@tromey.com>
12612
12613 * location.c (explicit_location_lex_one): Return a
12614 unique_xmalloc_ptr.
12615 (string_to_explicit_location): Update. Remove cleanups.
12616
59d3651b
TT
126172017-04-12 Tom Tromey <tom@tromey.com>
12618
12619 * gnu-v3-abi.c (value_and_voffset_p): Remove typedef.
12620 (compare_value_and_voffset): Change type. Update.
12621 (compute_vtable_size): Change type of "offset_vec".
12622 (gnuv3_print_vtable): Use std::vector. Remove cleanups.
12623 (gnuv3_get_typeid): Remove extraneous declaration.
12624
b24b0d6c
TT
126252017-04-12 Tom Tromey <tom@tromey.com>
12626
12627 * charset.h (wchar_iterator): Fix comment.
12628
80a3b8c5
TT
126292017-04-12 Tom Tromey <tom@tromey.com>
12630
12631 * charset.c (iconv_wrapper): New class.
12632 (cleanup_iconv): Remove.
12633 (convert_between_encodings): Use it.
12634
c83dd867
TT
126352017-04-12 Tom Tromey <tom@tromey.com>
12636
12637 * symfile.h (increment_reading_symtab): Update type.
12638 * symfile.c (decrement_reading_symtab): Remove.
12639 (increment_reading_symtab): Return a scoped_restore_tmpl<int>.
12640 * psymtab.c (psymtab_to_symtab): Update.
12641 * dwarf2read.c (dw2_instantiate_symtab): Update.
12642
0e8621a0
TT
126432017-04-12 Tom Tromey <tom@tromey.com>
12644
12645 * jit.c (struct jit_reader): Declare separately. Add constructor
12646 and destructor. Change type of "handle".
12647 (loaded_jit_reader): Define separately.
12648 (jit_reader_load): Update. New "new".
12649 (jit_reader_unload_command): Use "delete".
12650 * gdb-dlfcn.h (struct dlclose_deleter): New.
12651 (gdb_dlhandle_up): New typedef.
12652 (gdb_dlopen, gdb_dlsym): Update types.
12653 (gdb_dlclose): Remove.
12654 * gdb-dlfcn.c (gdb_dlopen): Return a gdb_dlhandle_up.
12655 (gdb_dlsym): Change type of "handle".
12656 (make_cleanup_dlclose): Remove.
12657 (dlclose_deleter::operator()): Rename from gdb_dlclose.
12658 * compile/compile-c-support.c (load_libcc): Update.
12659
67d89901
TT
126602017-04-12 Tom Tromey <tom@tromey.com>
12661
12662 * symtab.h (find_pcs_for_symtab_line): Change return type.
12663 * symtab.c (find_pcs_for_symtab_line): Change return type.
12664 * python/py-linetable.c (build_line_table_tuple_from_pcs): Change
12665 type of "vec". Update.
12666 (ltpy_get_pcs_for_line): Update.
12667 * linespec.c (decode_digits_ordinary): Update.
12668
93921405
TT
126692017-04-12 Tom Tromey <tom@tromey.com>
12670
12671 * tracepoint.c (actions_command): Update.
12672 * python/python.c (python_command, python_interactive_command):
12673 Update.
12674 * mi/mi-cmd-break.c (mi_cmd_break_commands): Update.
12675 * guile/guile.c (guile_command): Update.
12676 * defs.h (read_command_lines, read_command_lines_1): Return
12677 command_line_up.
12678 (command_lines_deleter): New struct.
12679 (command_line_up): New typedef.
12680 * compile/compile.c (compile_code_command)
12681 (compile_print_command): Update.
12682 * cli/cli-script.h (get_command_line, copy_command_lines): Return
12683 command_line_up.
12684 (make_cleanup_free_command_lines): Remove.
12685 * cli/cli-script.c (get_command_line, read_command_lines_1)
12686 (copy_command_lines): Return command_line_up.
12687 (while_command, if_command, read_command_lines, define_command)
12688 (document_command): Update.
12689 (do_free_command_lines_cleanup, make_cleanup_free_command_lines):
12690 Remove.
12691 * breakpoint.h (breakpoint_set_commands): Change type of
12692 "commands".
12693 * breakpoint.c (breakpoint_set_commands): Change type of
12694 "commands". Update.
12695 (do_map_commands_command, update_dprintf_command_list)
12696 (create_tracepoint_from_upload): Update.
12697
ffc2605c
TT
126982017-04-12 Tom Tromey <tom@tromey.com>
12699
12700 * tracepoint.c (scope_info): Update.
12701 * spu-tdep.c (spu_catch_start): Update.
12702 * python/python.c (gdbpy_decode_line): Update.
12703 * python/py-finishbreakpoint.c (bpfinishpy_init): Update.
12704 * python/py-breakpoint.c (bppy_init): Update.
12705 * probe.c (parse_probes): Update.
12706 * mi/mi-cmd-break.c (mi_cmd_break_insert_1): Update.
12707 * location.h (event_location_deleter): New struct.
12708 (event_location_up): New typedef.
12709 (new_linespec_location, new_address_location, new_probe_location)
12710 (new_explicit_location, copy_event_location)
12711 (string_to_event_location, string_to_event_location_basic)
12712 (string_to_explicit_location): Update return type.
12713 (make_cleanup_delete_event_location): Remove.
12714 * location.c (new_linespec_location, new_address_location)
12715 (new_probe_location, new_explicit_location, copy_event_location):
12716 Return event_location_up.
12717 (delete_event_location_cleanup)
12718 (make_cleanup_delete_event_location): Remove.
12719 (string_to_explicit_location, string_to_event_location_basic)
12720 (string_to_event_location): Return event_location_up.
12721 * linespec.c (canonicalize_linespec, event_location_to_sals)
12722 (decode_line_with_current_source)
12723 (decode_line_with_last_displayed, decode_objc): Update.
12724 * guile/scm-breakpoint.c (gdbscm_register_breakpoint_x): Update.
12725 * completer.c (location_completer): Update.
12726 * cli/cli-cmds.c (edit_command, list_command): Update.
12727 * breakpoint.c (create_overlay_event_breakpoint)
12728 (create_longjmp_master_breakpoint)
12729 (create_std_terminate_master_breakpoint)
12730 (create_exception_master_breakpoint)
12731 (create_thread_event_breakpoint): Update.
12732 (init_breakpoint_sal): Update. Remove some dead code.
12733 (create_breakpoint_sal): Change type of "location". Update.
12734 (create_breakpoints_sal, create_breakpoint, break_command_1)
12735 (dprintf_command, break_range_command, until_break_command)
12736 (init_ada_exception_breakpoint)
12737 (strace_marker_create_sals_from_location)
12738 (update_static_tracepoint, trace_command, ftrace_command)
12739 (strace_command, create_tracepoint_from_upload): Update.
12740 * break-catch-throw.c (re_set_exception_catchpoint): Update.
12741 * ax-gdb.c (agent_command_1): Update.
12742
8f10c932
PA
127432017-04-12 Pedro Alves <palves@redhat.com>
12744
12745 * Makefile.in (ALL_TARGET_OBS): Add i386-go32-tdep.o.
12746 * configure.tgt: Handle i[34567]86-*-go32* and
12747 i[34567]86-*-msdosdjgpp*.
12748 * i386-tdep.c (i386_svr4_reg_to_regnum):
12749 Make extern.
12750 (i386_go32_init_abi, i386_coff_osabi_sniffer): Moved to
12751 i386-go32-tdep.c.
12752 (_initialize_i386_tdep): DJGPP bits moved to i386-go32-tdep.c.
12753 * i386-go32-tdep.c: New file.
12754 * i386-tdep.h (tdesc_i386_mmx, i386_svr4_reg_to_regnum): New
12755 declarations.
12756
0a31ccfb
SM
127572017-04-12 Simon Marchi <simon.marchi@ericsson.com>
12758
12759 * aix-thread.c (pd_status2str): Change return type to const char *.
12760
e9bb3fbb
PA
127612017-04-12 Pedro Alves <palves@redhat.com>
12762
12763 * i386-tdep.c (i386_elf_init_abi, i386_go32_init_abi): Remove
12764 calls to set_gdbarch_gnu_triplet_regexp.
12765
53375380
PA
127662017-04-12 Pedro Alves <palves@redhat.com>
12767
12768 PR gdb/21323
12769 * c-lang.c (cplus_primitive_types) <cplus_primitive_type_wchar_t>:
12770 New enum value.
12771 (cplus_language_arch_info): Register cplus_primitive_type_wchar_t.
12772 * gdbtypes.h (struct builtin_type) <builtin_wchar>: New field.
12773 * gdbtypes.c (gdbtypes_post_init): Create the "wchar_t" type.
12774 * gdbarch.sh (wchar_bit, wchar_signed): New per-arch values.
12775 * gdbarch.h, gdbarch.c: Regenerate.
12776 * aarch64-tdep.c (aarch64_gdbarch_init): Override
12777 gdbarch_wchar_bit and gdbarch_wchar_signed.
12778 * alpha-tdep.c (alpha_gdbarch_init): Likewise.
12779 * arm-tdep.c (arm_gdbarch_init): Likewise.
12780 * avr-tdep.c (avr_gdbarch_init): Likewise.
12781 * h8300-tdep.c (h8300_gdbarch_init): Likewise.
12782 * i386-nto-tdep.c (i386nto_init_abi): Likewise.
12783 * i386-tdep.c (i386_go32_init_abi): Likewise.
12784 * m32r-tdep.c (m32r_gdbarch_init): Likewise.
12785 * moxie-tdep.c (moxie_gdbarch_init): Likewise.
12786 * nds32-tdep.c (nds32_gdbarch_init): Likewise.
12787 * rs6000-aix-tdep.c (rs6000_aix_init_osabi): Likewise.
12788 * sh-tdep.c (sh_gdbarch_init): Likewise.
12789 * sparc-tdep.c (sparc32_gdbarch_init): Likewise.
12790 * sparc64-tdep.c (sparc64_init_abi): Likewise.
12791 * windows-tdep.c (windows_init_abi): Likewise.
12792 * xstormy16-tdep.c (xstormy16_gdbarch_init): Likewise.
12793
53e710ac
PA
127942017-04-12 Pedro Alves <palves@redhat.com>
12795
12796 PR c++/21323
12797 * c-lang.c (cplus_primitive_types) <cplus_primitive_type_char16_t,
12798 cplus_primitive_type_char32_t>: New enum values.
12799 (cplus_language_arch_info): Register cplus_primitive_type_char16_t
12800 and cplus_primitive_type_char32_t.
12801 * dwarf2read.c (read_base_type) <DW_ATE_UTF>: If bit size is 16 or
12802 32, use the archtecture's built-in type for char16_t and char32_t,
12803 respectively. Otherwise, fallback to init_integer_type as before,
12804 but make the type unsigned, and issue a complaint.
12805 * gdbtypes.c (gdbtypes_post_init): Make char16_t and char32_t unsigned.
12806
ab0538b8
AH
128072017-04-12 Alan Hayward <alan.hayward@arm.com>
12808
5e0e0422 12809 * m32r-tdep.c (M32R_ARG_REGISTER_SIZE): Added.
ab0538b8
AH
12810 (m32r_push_dummy_call): Use M32R_ARG_REGISTER_SIZE.
12811
5430098f
SDJ
128122017-04-12 Sergio Durigan Junior <sergiodj@redhat.com>
12813
12814 * windows-nat.c (windows_create_inferior): Declare 'toexec' as
12815 'const char *'.
12816
7c5ded6a
SDJ
128172017-04-12 Sergio Durigan Junior <sergiodj@redhat.com>
12818
12819 * common/common-utils.c (free_vector_argv): New function.
12820 * common/common-utils.h: Include <vector>.
12821 (free_vector_argv): New prototype.
12822 * darwin-nat.c (darwin_create_inferior): Rewrite function
12823 prototype in order to constify "exec_file" and accept a
12824 "std::string" for "allargs".
12825 * fork-child.c: Include <vector>.
12826 (breakup_args): Rewrite function, using C++.
12827 (fork_inferior): Rewrite function header, constify "exec_file_arg"
12828 and accept "std::string" for "allargs". Update the code to
12829 calculate "argv" based on "allargs". Update calls to "exec_fun"
12830 and "execvp".
12831 * gnu-nat.c (gnu_create_inferior): Rewrite function prototype in
12832 order to constify "exec_file" and accept a "std::string" for
12833 "allargs".
12834 * go32-nat.c (go32_create_inferior): Likewise.
12835 * inf-ptrace.c (inf_ptrace_create_inferior): Likewise.
12836 * infcmd.c (run_command_1): Constify "exec_file". Use
12837 "std::string" for inferior arguments.
12838 * inferior.h (fork_inferior): Update prototype.
12839 * linux-nat.c (linux_nat_create_inferior): Rewrite function
12840 prototype in order to constify "exec_file" and accept a
12841 "std::string" for "allargs".
12842 * nto-procfs.c (procfs_create_inferior): Likewise.
12843 * procfs.c (procfs_create_inferior): Likewise.
12844 * remote-sim.c (gdbsim_create_inferior): Likewise.
12845 * remote.c (extended_remote_run): Update code to accept
12846 "std::string" as argument.
12847 (extended_remote_create_inferior): Rewrite function prototype in
12848 order to constify "exec_file" and accept a "std::string" for
12849 "allargs".
12850 * rs6000-nat.c (super_create_inferior): Likewise.
12851 (rs6000_create_inferior): Likewise.
12852 * target.h (struct target_ops) <to_create_inferior>: Likewise.
12853 * windows-nat.c (windows_create_inferior): Likewise.
12854
ae0eee42
PA
128552017-04-11 Pedro Alves <palves@redhat.com>
12856
12857 * thread.c: Fix whitespace throughout.
12858
a6acac06
PR
128592017-04-11 Philipp Rudo <prudo@linux.vnet.ibm.com>
12860
12861 * linux-nat.c (linux_nat_detach): Remove delete_lwp call.
12862
64403bd1
AH
128632017-04-11 Alan Hayward <alan.hayward@arm.com>
12864
12865 * arm-tdep.c (arm_store_return_value): Use FP_REGISTER_SIZE
12866
a5bef50f
SDJ
128672017-04-10 Sergio Durigan Junior <sergiodj@redhat.com>
12868
12869 PR gdb/21364
12870 * osdata.c (info_osdata): Check if 'type' is an empty string
12871 instead of NULL.
12872
9295a5a9
PA
128732017-04-10 Pedro Alves <palves@redhat.com>
12874
12875 * thread.c (add_thread_silent, delete_thread_1, find_thread_ptid)
12876 (ptid_to_global_thread_id, in_thread_list)
12877 (do_captured_list_thread_ids, set_resumed, set_running)
12878 (set_executing, set_stop_requested, finish_thread_state)
12879 (validate_registers_access, can_access_registers_ptid)
12880 (print_thread_info_1, switch_to_thread)
12881 (do_restore_current_thread_cleanup)
12882 (make_cleanup_restore_current_thread, thread_command)
12883 (thread_name_command): Use operator== instead of ptid_equal.
12884
996812e3
PA
128852017-04-10 Pedro Alves <palves@redhat.com>
12886
12887 * thread.c (struct current_thread_cleanup) <next>: Delete field.
12888 (current_thread_cleanup_chain): Delete.
12889 (restore_current_thread_cleanup_dtor)
12890 (make_cleanup_restore_current_thread): Remove references to
12891 current_thread_cleanup_chain.
12892
845b344f
AH
128932017-04-10 Alan Hayward <alan.hayward@arm.com>
12894
12895 * msp430-tdep.c (msp430_pseudo_register_read): Never return
12896 REG_UNKNOWN.
12897
803bdfe4
YQ
128982017-04-10 Yao Qi <yao.qi@linaro.org>
12899
12900 PR gdb/19942
12901 * gdbthread.h (thread_info::deletable): New method.
12902 (thread_info::incref): New method.
12903 (thread_info::decref): New method.
12904 (thread_info::refcount): Move it to private.
12905 * infrun.c (save_stop_context): Call inc_refcount.
12906 (release_stop_context_cleanup): Likewise.
12907 * thread.c (set_thread_exited): New function.
12908 (init_thread_list): Delete "tp" only it is deletable, otherwise
12909 call set_thread_exited.
12910 (delete_thread_1): Call set_thread_exited.
12911 (current_thread_cleanup) <inferior_pid>: Remove.
12912 <thread>: New field.
12913 (restore_current_thread_ptid_changed): Removed.
12914 (do_restore_current_thread_cleanup): Adjust.
12915 (restore_current_thread_cleanup_dtor): Don't call
12916 find_thread_ptid.
12917 (set_thread_refcount): Use dec_refcount.
12918 (make_cleanup_restore_current_thread): Adjust.
12919 (thread_apply_all_command): Call inc_refcount.
12920 (_initialize_thread): Don't call
12921 observer_attach_thread_ptid_changed.
12922
8c25b497
YQ
129232017-04-10 Yao Qi <yao.qi@linaro.org>
12924
12925 * thread.c (delete_thread_1): Hoist code on marking thread as
12926 exited.
12927
8473b447
SM
129282017-04-09 Simon Marchi <simon.marchi@polymtl.ca>
12929
12930 * windows-nat.c (windows_detach): Initialize ptid with
12931 minus_one_ptid.
12932
6670ec13
SM
129332017-04-07 Simon Marchi <simon.marchi@ericsson.com>
12934
12935 * unittests/ptid-selftests.c: Fix erroneous assert messages.
12936
ba2f91bb
AH
129372017-04-07 Alan Hayward <alan.hayward@arm.com>
12938
12939 * bfin-tdep.c (BFIN_MAX_REGISTER_SIZE): Add.
12940 (bfin_pseudo_register_read): Use BFIN_MAX_REGISTER_SIZE.
12941 (bfin_pseudo_register_write): Likewise
12942
436252de
SM
129432017-04-06 Simon Marchi <simon.marchi@ericsson.com>
12944
12945 * common/ptid.h (struct ptid): Change to...
12946 (class ptid_t): ... this.
12947 <ptid_t>: New constructors.
12948 <pid, lwp_p, lwp, tid_p, tid, is_pid, operator==, operator!=,
12949 matches>: New methods.
12950 <make_null, make_minus_one>: New static methods.
12951 <pid>: Rename to...
12952 <m_pid>: ...this.
12953 <lwp>: Rename to...
12954 <m_lwp>: ...this.
12955 <tid>: Rename to...
12956 <m_tid>: ...this.
12957 (ptid_build, ptid_get_pid, ptid_get_lwp, ptid_get_tid, ptid_equal,
12958 ptid_is_pid, ptid_lwp_p, ptid_tid_p, ptid_match): Take ptid arguments
12959 as references, move comment to class ptid_t.
12960 * common/ptid.c (null_ptid, minus_one_ptid): Initialize with
12961 ptid_t static methods.
12962 (ptid_build, pid_to_ptid, ptid_get_pid, ptid_get_tid,
12963 ptid_equal, ptid_is_pid, ptid_lwp_p, ptid_tid_p, ptid_match):
12964 Take ptid arguments as references, implement using ptid_t methods.
12965 * unittests/ptid-selftests.c: New file.
12966 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
12967 unittests/ptid-selftests.c.
12968 (SUBDIR_UNITTESTS_OBS): Add unittests/ptid-selftests.o.
12969
0dedf377
TP
129702017-04-06 Thomas Preud'homme <thomas.preudhomme@arm.com>
12971
12972 * python/python.c (python_run_simple_file): Cast mode literal to
12973 non-const char pointer as expected by PyFile_FromString.
12974
4e9868d4
SM
129752017-04-05 Simon Marchi <simon.marchi@ericsson.com>
12976
12977 * common/ptid.c (ptid_lwp_p, ptid_tid_p): Remove comparison with
12978 minus_one_ptid and null_ptid.
12979
9bf2a700
PA
129802017-04-05 Pedro Alves <palves@redhat.com>
12981
12982 * warning.m4 (build_warnings): Remove -Wno-write-strings.
12983 * configure: Regenerate.
12984
a121b7c1
PA
129852017-04-05 Pedro Alves <palves@redhat.com>
12986
12987 * ada-exp.y (yyerror): Constify.
12988 * ada-lang.c (bound_name, get_selections)
12989 (ada_variant_discrim_type)
12990 (ada_variant_discrim_name, ada_value_struct_elt)
12991 (ada_lookup_struct_elt_type, is_unchecked_variant)
12992 (ada_which_variant_applies, standard_exc, ada_get_next_arg)
12993 (catch_ada_exception_command_split)
12994 (catch_ada_assert_command_split, catch_assert_command)
12995 (ada_op_name): Constify.
12996 * ada-lang.h (ada_yyerror, get_selections)
12997 (ada_variant_discrim_name, ada_value_struct_elt): Constify.
12998 * arc-tdep.c (arc_print_frame_cache): Constify.
12999 * arm-tdep.c (arm_skip_stub): Constify.
13000 * ax-gdb.c (gen_binop, gen_struct_ref_recursive, gen_struct_ref)
13001 (gen_aggregate_elt_ref): Constify.
13002 * bcache.c (print_bcache_statistics): Constify.
13003 * bcache.h (print_bcache_statistics): Constify.
13004 * break-catch-throw.c (catch_exception_command_1):
13005 * breakpoint.c (struct ep_type_description::description):
13006 Constify.
13007 (add_solib_catchpoint): Constify.
13008 (catch_fork_command_1): Add cast.
13009 (add_catch_command): Constify.
13010 * breakpoint.h (add_catch_command, add_solib_catchpoint):
13011 Constify.
13012 * bsd-uthread.c (bsd_uthread_state): Constify.
13013 * buildsym.c (patch_subfile_names): Constify.
13014 * buildsym.h (next_symbol_text_func, patch_subfile_names):
13015 Constify.
13016 * c-exp.y (yyerror): Constify.
13017 (token::oper): Constify.
13018 * c-lang.h (c_yyerror, cp_print_class_member): Constify.
13019 * c-varobj.c (cplus_describe_child): Constify.
13020 * charset.c (find_charset_names): Add cast.
13021 (find_charset_names): Constify array and add const_cast.
13022 * cli/cli-cmds.c (complete_command, cd_command): Constify.
13023 (edit_command): Constify.
13024 * cli/cli-decode.c (lookup_cmd): Constify.
13025 * cli/cli-dump.c (dump_memory_command, dump_value_command):
13026 Constify.
13027 (struct dump_context): Constify.
13028 (add_dump_command, restore_command): Constify.
13029 * cli/cli-script.c (get_command_line): Constify.
13030 * cli/cli-script.h (get_command_line): Constify.
13031 * cli/cli-utils.c (check_for_argument): Constify.
13032 * cli/cli-utils.h (check_for_argument): Constify.
13033 * coff-pe-read.c (struct read_pe_section_data): Constify.
13034 * command.h (lookup_cmd): Constify.
13035 * common/print-utils.c (decimal2str): Constify.
13036 * completer.c (gdb_print_filename): Constify.
13037 * corefile.c (set_gnutarget): Constify.
13038 * cp-name-parser.y (yyerror): Constify.
13039 * cp-valprint.c (cp_print_class_member): Constify.
13040 * cris-tdep.c (cris_register_name, crisv32_register_name):
13041 Constify.
13042 * d-exp.y (yyerror): Constify.
13043 (struct token::oper): Constify.
13044 * d-lang.h (d_yyerror): Constify.
13045 * dbxread.c (struct header_file_location::name): Constify.
13046 (add_old_header_file, add_new_header_file, last_function_name)
13047 (dbx_next_symbol_text, add_bincl_to_list)
13048 (find_corresponding_bincl_psymtab, set_namestring)
13049 (find_stab_function_addr, read_dbx_symtab, start_psymtab)
13050 (dbx_end_psymtab, read_ofile_symtab, process_one_symbol):
13051 * defs.h (command_line_input, print_address_symbolic)
13052 (deprecated_readline_begin_hook): Constify.
13053 * dwarf2read.c (anonymous_struct_prefix, dwarf_bool_name):
13054 Constify.
13055 * event-top.c (handle_line_of_input): Constify and add cast.
13056 * exceptions.c (catch_errors): Constify.
13057 * exceptions.h (catch_errors): Constify.
13058 * expprint.c (print_subexp_standard, op_string, op_name)
13059 (op_name_standard, dump_raw_expression, dump_raw_expression):
13060 * expression.h (op_name, op_string, dump_raw_expression):
13061 Constify.
13062 * f-exp.y (yyerror): Constify.
13063 (struct token::oper): Constify.
13064 (struct f77_boolean_val::name): Constify.
13065 * f-lang.c (f_word_break_characters): Constify.
13066 * f-lang.h (f_yyerror): Constify.
13067 * fork-child.c (fork_inferior): Add cast.
13068 * frv-tdep.c (struct gdbarch_tdep::register_names): Constify.
13069 (new_variant): Constify.
13070 * gdbarch.sh (pstring_ptr, pstring_list): Constify.
13071 * gdbarch.c: Regenerate.
13072 * gdbcore.h (set_gnutarget): Constify.
13073 * go-exp.y (yyerror): Constify.
13074 (token::oper): Constify.
13075 * go-lang.h (go_yyerror): Constify.
13076 * go32-nat.c (go32_sysinfo): Constify.
13077 * guile/scm-breakpoint.c (gdbscm_breakpoint_expression): Constify.
13078 * guile/scm-cmd.c (cmdscm_function): Constify.
13079 * guile/scm-param.c (pascm_param_value): Constify.
13080 * h8300-tdep.c (h8300_register_name, h8300s_register_name)
13081 (h8300sx_register_name): Constify.
13082 * hppa-tdep.c (hppa32_register_name, hppa64_register_name):
13083 Constify.
13084 * ia64-tdep.c (ia64_register_names): Constify.
13085 * infcmd.c (construct_inferior_arguments): Constify.
13086 (path_command, attach_post_wait): Constify.
13087 * language.c (show_range_command, show_case_command)
13088 (unk_lang_error): Constify.
13089 * language.h (language_defn::la_error)
13090 (language_defn::la_name_of_this): Constify.
13091 * linespec.c (decode_line_2): Constify.
13092 * linux-thread-db.c (thread_db_err_str): Constify.
13093 * lm32-tdep.c (lm32_register_name): Constify.
13094 * m2-exp.y (yyerror): Constify.
13095 * m2-lang.h (m2_yyerror): Constify.
13096 * m32r-tdep.c (m32r_register_names): Constify and make static.
13097 * m68hc11-tdep.c (m68hc11_register_names): Constify.
13098 * m88k-tdep.c (m88k_register_name): Constify.
13099 * macroexp.c (appendmem): Constify.
13100 * mdebugread.c (fdr_name, add_data_symbol, parse_type)
13101 (upgrade_type, parse_external, parse_partial_symbols)
13102 (mdebug_next_symbol_text, cross_ref, mylookup_symbol, new_psymtab)
13103 (new_symbol): Constify.
13104 * memattr.c (mem_info_command): Constify.
13105 * mep-tdep.c (register_name_from_keyword): Constify.
13106 * mi/mi-cmd-env.c (mi_cmd_env_path, _initialize_mi_cmd_env):
13107 Constify.
13108 * mi/mi-cmd-stack.c (list_args_or_locals): Constify.
13109 * mi/mi-cmd-var.c (mi_cmd_var_show_attributes): Constify.
13110 * mi/mi-main.c (captured_mi_execute_command): Constify and add
13111 cast.
13112 (mi_execute_async_cli_command): Constify.
13113 * mips-tdep.c (mips_register_name): Constify.
13114 * mn10300-tdep.c (register_name, mn10300_generic_register_name)
13115 (am33_register_name, am33_2_register_name)
13116 * moxie-tdep.c (moxie_register_names): Constify.
13117 * nat/linux-osdata.c (osdata_type): Constify fields.
13118 * nto-tdep.c (nto_parse_redirection): Constify.
13119 * objc-lang.c (lookup_struct_typedef, lookup_objc_class)
13120 (lookup_child_selector): Constify.
13121 (objc_methcall::name): Constify.
13122 * objc-lang.h (lookup_objc_class, lookup_child_selector)
13123 (lookup_struct_typedef): Constify.
13124 * objfiles.c (pc_in_section): Constify.
13125 * objfiles.h (pc_in_section): Constify.
13126 * p-exp.y (struct token::oper): Constify.
13127 (yyerror): Constify.
13128 * p-lang.h (pascal_yyerror): Constify.
13129 * parser-defs.h (op_name_standard): Constify.
13130 (op_print::string): Constify.
13131 (exp_descriptor::op_name): Constify.
13132 * printcmd.c (print_address_symbolic): Constify.
13133 * psymtab.c (print_partial_symbols): Constify.
13134 * python/py-breakpoint.c (stop_func): Constify.
13135 (bppy_get_expression): Constify.
13136 * python/py-cmd.c (cmdpy_completer::name): Constify.
13137 (cmdpy_function): Constify.
13138 * python/py-event.c (evpy_add_attribute)
13139 (gdbpy_initialize_event_generic): Constify.
13140 * python/py-event.h (evpy_add_attribute)
13141 (gdbpy_initialize_event_generic): Constify.
13142 * python/py-evts.c (add_new_registry): Constify.
13143 * python/py-finishbreakpoint.c (outofscope_func): Constify.
13144 * python/py-framefilter.c (get_py_iter_from_func): Constify.
13145 * python/py-inferior.c (get_buffer): Add cast.
13146 * python/py-param.c (parm_constant::name): Constify.
13147 * python/py-unwind.c (fprint_frame_id): Constify.
13148 * python/python.c (gdbpy_parameter_value): Constify.
13149 * remote-fileio.c (remote_fio_func_map): Make 'name' const.
13150 * remote.c (memory_packet_config::name): Constify.
13151 (show_packet_config_cmd, remote_write_bytes)
13152 (remote_buffer_add_string):
13153 * reverse.c (exec_reverse_once): Constify.
13154 * rs6000-tdep.c (variant::name, variant::description): Constify.
13155 * rust-exp.y (rustyyerror): Constify.
13156 * rust-lang.c (rust_op_name): Constify.
13157 * rust-lang.h (rustyyerror): Constify.
13158 * serial.h (serial_ops::name): Constify.
13159 * sh-tdep.c (sh_sh_register_name, sh_sh3_register_name)
13160 (sh_sh3e_register_name, sh_sh2e_register_name)
13161 (sh_sh2a_register_name, sh_sh2a_nofpu_register_name)
13162 (sh_sh_dsp_register_name, sh_sh3_dsp_register_name)
13163 (sh_sh4_register_name, sh_sh4_nofpu_register_name)
13164 (sh_sh4al_dsp_register_name): Constify.
13165 * sh64-tdep.c (sh64_register_name): Constify.
13166 * solib-darwin.c (lookup_symbol_from_bfd): Constify.
13167 * spu-tdep.c (spu_register_name, info_spu_dma_cmdlist): Constify.
13168 * stabsread.c (patch_block_stabs, read_type_number)
13169 (ref_map::stabs, ref_add, process_reference)
13170 (symbol_reference_defined, define_symbol, define_symbol)
13171 (error_type, read_type, read_member_functions, read_cpp_abbrev)
13172 (read_one_struct_field, read_struct_fields, read_baseclasses)
13173 (read_tilde_fields, read_struct_type, read_array_type)
13174 (read_enum_type, read_sun_builtin_type, read_sun_floating_type)
13175 (read_huge_number, read_range_type, read_args, common_block_start)
13176 (find_name_end): Constify.
13177 * stabsread.h (common_block_start, define_symbol)
13178 (process_one_symbol, symbol_reference_defined, ref_add):
13179 * symfile.c (get_section_index, add_symbol_file_command):
13180 * symfile.h (get_section_index): Constify.
13181 * target-descriptions.c (tdesc_type::name): Constify.
13182 (tdesc_free_type): Add cast.
13183 * target.c (find_default_run_target):
13184 (add_deprecated_target_alias, find_default_run_target)
13185 (target_announce_detach): Constify.
13186 (do_option): Constify.
13187 * target.h (add_deprecated_target_alias): Constify.
13188 * thread.c (print_thread_info_1): Constify.
13189 * top.c (deprecated_readline_begin_hook, command_line_input):
13190 Constify.
13191 (init_main): Add casts.
13192 * top.h (handle_line_of_input): Constify.
13193 * tracefile-tfile.c (tfile_write_uploaded_tsv): Constify.
13194 * tracepoint.c (tvariables_info_1, trace_status_mi): Constify.
13195 (tfind_command): Rename to ...
13196 (tfind_command_1): ... this and constify.
13197 (tfind_command): New function.
13198 (tfind_end_command, tfind_start_command): Adjust.
13199 (encode_source_string): Constify.
13200 * tracepoint.h (encode_source_string): Constify.
13201 * tui/tui-data.c (tui_partial_win_by_name): Constify.
13202 * tui/tui-data.h (tui_partial_win_by_name): Constify.
13203 * tui/tui-source.c (tui_set_source_content_nil): Constify.
13204 * tui/tui-source.h (tui_set_source_content_nil): Constify.
13205 * tui/tui-win.c (parse_scrolling_args): Constify.
13206 * tui/tui-windata.c (tui_erase_data_content): Constify.
13207 * tui/tui-windata.h (tui_erase_data_content): Constify.
13208 * tui/tui-winsource.c (tui_erase_source_content): Constify.
13209 * tui/tui.c (tui_enable): Add cast.
13210 * utils.c (defaulted_query): Constify.
13211 (init_page_info): Add cast.
13212 (puts_debug, subset_compare): Constify.
13213 * utils.h (subset_compare): Constify.
13214 * varobj.c (varobj_format_string): Constify.
13215 * varobj.h (varobj_format_string): Constify.
13216 * vax-tdep.c (vax_register_name): Constify.
13217 * windows-nat.c (windows_detach): Constify.
13218 * xcoffread.c (process_linenos, xcoff_next_symbol_text): Constify.
13219 * xml-support.c (gdb_xml_end_element): Constify.
13220 * xml-tdesc.c (tdesc_start_reg): Constify.
13221 * xstormy16-tdep.c (xstormy16_register_name): Constify.
13222 * xtensa-tdep.c (xtensa_find_register_by_name): Constify.
13223 * xtensa-tdep.h (xtensa_register_t::name): Constify.
13224
995816ba
PA
132252017-04-05 Pedro Alves <palves@redhat.com>
13226
13227 * proc-api.c (struct trans): Constify.
13228 (procfs_note): Constify.
13229 * proc-events.c (struct trans, syscall_table):
13230 * proc-flags.c (struct trans): Constify.
13231 * proc-utils.h (procfs_note): Constify.
13232 * proc-why.c (struct trans): Constify.
13233 * procfs.c (dead_procinfo, find_syscall, proc_warn, proc_error)
13234 (procfs_detach): Constify.
13235 * sol-thread.c (struct string_map): Constify.
13236 (td_err_string, td_state_string): Constify.
13237
3e83a920
PA
132382017-04-05 Pedro Alves <palves@redhat.com>
13239
13240 * proc-api.c (procfs_filename): Don't initialize
13241 procfs_filename.
13242 (prepare_to_trace): Assume procfs_filename is non-NULL.
13243 (_initialize_proc_api): Give procfs_filename a default value here.
13244
63160a43
PA
132452017-04-05 Pedro Alves <palves@redhat.com>
13246
13247 * break-catch-throw.c (handle_gnu_v3_exceptions): Constify
13248 'cond_string' parameter.
13249 (extract_exception_regexp): Constify 'string' parameter.
13250 (catch_exception_command_1): Constify.
13251 * breakpoint.c (init_catchpoint)
13252 (create_fork_vfork_event_catchpoint): Constify 'cond_string'
13253 parameter.
13254 (ep_parse_optional_if_clause, catch_fork_command_1)
13255 (catch_exec_command_1): Constify.
13256 * breakpoint.h (init_catchpoint): Constify 'cond_string'
13257 parameter.
13258 (ep_parse_optional_if_clause): Constify.
13259 * cli/cli-utils.c (remove_trailing_whitespace)
13260 (check_for_argument): Constify.
13261 * cli/cli-utils.h (remove_trailing_whitespace): Constify and add
13262 non-const overload.
13263 (check_for_argument): Likewise.
13264
9b2eba3d
PA
132652017-04-05 Pedro Alves <palves@redhat.com>
13266
13267 * event-top.c (command_line_handler): Add cast to execute_command
13268 call.
13269 * record-btrace.c (cmd_record_btrace_bts_start)
13270 (cmd_record_btrace_pt_start, cmd_record_btrace_start)
13271 (cmd_record_btrace_start): Add cast to execute_command call.
13272 * record-full.c (record_full_goto_insn):
13273 * record.c (record_start, record_stop): Add cast to
13274 execute_command_to_string calls.
13275 (cmd_record_start): Add cast to execute_command calls.
13276
2adadf51
PA
132772017-04-05 Pedro Alves <palves@redhat.com>
13278
13279 * python/python-internal.h (gdb_PyArg_ParseTupleAndKeywords): New
13280 static inline function.
13281 * python/py-arch.c (archpy_disassemble): Constify 'keywords'
13282 array and use gdb_PyArg_ParseTupleAndKeywords.
13283 * python/py-cmd.c (cmdpy_init): Likewise.
13284 * python/py-finishbreakpoint.c (bpfinishpy_init): Likewise.
13285 * python/py-inferior.c (infpy_read_memory, infpy_write_memory)
13286 (infpy_search_memory): Likewise.
13287 * python/py-objfile.c (objfpy_add_separate_debug_file)
13288 (gdbpy_lookup_objfile): Likewise.
13289 * python/py-symbol.c (gdbpy_lookup_symbol)
13290 (gdbpy_lookup_global_symbol): Likewise.
13291 * python/py-type.c (gdbpy_lookup_type): Likewise.
13292 * python/py-value.c (valpy_lazy_string, valpy_string): Likewise.
13293 * python/python.c (execute_gdb_command, gdbpy_write, gdbpy_flush):
13294 Likewise.
13295
0d1f4ceb
PA
132962017-04-05 Pedro Alves <palves@redhat.com>
13297
13298 * python/python-internal.h (gdb_PyGetSetDef): New type.
13299 * python/py-block.c (block_object_getset)
13300 (breakpoint_object_getset): Now a gdb_PyGetSetDef array.
13301 * python/py-event.c (event_object_getset)
13302 (finish_breakpoint_object_getset): Likewise.
13303 * python/py-inferior.c (inferior_object_getset): Likewise.
13304 * python/py-infthread.c (thread_object_getset): Likewise.
13305 * python/py-lazy-string.c (lazy_string_object_getset): Likewise.
13306 * python/py-linetable.c (linetable_entry_object_getset): Likewise.
13307 * python/py-objfile.c (objfile_getset): Likewise.
13308 * python/py-progspace.c (pspace_getset): Likewise.
13309 * python/py-record-btrace.c (btpy_insn_getset, btpy_call_getset):
13310 Likewise.
13311 * python/py-record.c (recpy_record_getset): Likewise.
13312 * python/py-symbol.c (symbol_object_getset): Likewise.
13313 * python/py-symtab.c (symtab_object_getset, sal_object_getset):
13314 Likewise.
13315 * python/py-type.c (type_object_getset, field_object_getset):
13316 Likewise.
13317 * python/py-value.c (value_object_getset): Likewise.
13318
4d759979
PA
133192017-04-05 Pedro Alves <palves@redhat.com>
13320
13321 * python/python-internal.h (gdb_PyObject_CallMethod)
13322 (gdb_PyErr_NewException, gdb_PySys_GetObject, gdb_PySys_SetPath):
13323 New functions.
13324 (GDB_PYSYS_SETPATH_CHAR, PyObject_CallMethod, PyErr_NewException)
13325 (PySys_GetObject, PySys_SetPath): New macros.
13326
fdf9e36f
PA
133272017-04-05 Pedro Alves <palves@redhat.com>
13328
13329 * mi/mi-cmd-info.c (mi_cmd_info_os): Call info_osdata instead of
13330 info_osdata_command.
13331 * osdata.c (info_osdata_command): Rename to ...
13332 (info_osdata): ... this. Constify 'type' parameter, and remove
13333 the 'from_tty' parameter. Accept NULL TYPE.
13334 (info_osdata_command): New function.
13335 * osdata.h (info_osdata_command): Remove declaration.
13336 (info_osdata): New declaration.
13337
9f33b8b7
PA
133382017-04-05 Pedro Alves <palves@redhat.com>
13339
13340 * mi/mi-cmd-break.c (mi_cmd_break_insert_1, mi_cmd_break_insert)
13341 (mi_cmd_dprintf_insert, mi_cmd_break_passcount)
13342 (mi_cmd_break_watch, mi_cmd_break_commands): Constify 'command'
13343 parameter.
13344 * mi/mi-cmd-catch.c (mi_cmd_catch_assert, mi_cmd_catch_exception)
13345 (mi_cmd_catch_load, mi_cmd_catch_unload): Constify cmd' parameter.
13346 * mi/mi-cmd-disas.c (mi_cmd_disassemble): Constify 'command'
13347 parameter.
13348 * mi/mi-cmd-env.c (mi_cmd_env_pwd, mi_cmd_env_cd, mi_cmd_env_path)
13349 (mi_cmd_env_dir, mi_cmd_inferior_tty_set, _cmd_inferior_tty_show)
13350 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_file)
13351 (mi_cmd_file_list_exec_source_files)
13352 (mi_cmd_file_list_shared_libraries): Constify 'command' parameter.
13353 * mi/mi-cmd-info.c (mi_cmd_info_ada_exceptions)
13354 (mi_cmd_info_gdb_mi_command, mi_cmd_info_os): Constify 'command'
13355 parameter.
13356 * mi/mi-cmd-stack.c (mi_cmd_enable_frame_filters)
13357 (mi_cmd_stack_list_frames, mi_cmd_stack_info_depth)
13358 (mi_cmd_stack_list_locals, mi_cmd_stack_list_args)
13359 (mi_cmd_stack_list_variables, mi_cmd_stack_select_frame)
13360 (mi_cmd_stack_info_frame): Constify 'command' parameter.
13361 * mi/mi-cmd-target.c (mi_cmd_target_file_get)
13362 (mi_cmd_target_file_put, mi_cmd_target_file_delete): Constify
13363 'command' parameter.
13364 * mi/mi-cmd-var.c (mi_cmd_var_create, mi_cmd_var_delete)
13365 (mi_cmd_var_set_format, mi_cmd_var_set_visualizer)
13366 (mi_cmd_var_set_frozen, mi_cmd_var_show_format)
13367 (mi_cmd_var_info_num_children, mi_cmd_var_list_children)
13368 (mi_cmd_var_info_type, mi_cmd_var_info_path_expression)
13369 (mi_cmd_var_info_expression, mi_cmd_var_show_attributes)
13370 (mi_cmd_var_evaluate_expression, mi_cmd_var_assign)
13371 (mi_cmd_var_update, mi_cmd_enable_pretty_printing)
13372 (mi_cmd_var_set_update_range): Constify 'command' parameter.
13373 * mi/mi-cmds.h (mi_cmd_argv_ftype): Constify 'command' parameter.
13374 * mi/mi-interp.c (mi_cmd_interpreter_exec): Constify 'command'
13375 parameter.
13376 * mi/mi-main.c (mi_cmd_gdb_exit, mi_cmd_exec_next)
13377 (mi_cmd_exec_next_instruction, mi_cmd_exec_step)
13378 (mi_cmd_exec_step_instruction, mi_cmd_exec_finish)
13379 (mi_cmd_exec_return ,mi_cmd_exec_jump, mi_cmd_exec_continue)
13380 (mi_cmd_exec_interrupt, mi_cmd_exec_run, mi_cmd_target_detach)
13381 (mi_cmd_target_flash_erase, mi_cmd_thread_select)
13382 (mi_cmd_thread_list_ids, mi_cmd_thread_info)
13383 (mi_cmd_list_thread_groups, mi_cmd_data_list_register_names)
13384 (mi_cmd_data_list_changed_registers)
13385 (mi_cmd_data_write_register_values)
13386 (mi_cmd_data_evaluate_expression, mi_cmd_data_read_memory)
13387 (mi_cmd_data_read_memory_bytes, mi_cmd_data_write_memory)
13388 (mi_cmd_data_write_memory_bytes, mi_cmd_enable_timings)
13389 (mi_cmd_list_features, mi_cmd_list_target_features)
13390 (mi_cmd_add_inferior, mi_cmd_remove_inferior)
13391 (mi_cmd_trace_define_variable, mi_cmd_trace_list_variables)
13392 (mi_cmd_trace_find, mi_cmd_trace_save, mi_cmd_trace_start)
13393 (mi_cmd_trace_status, mi_cmd_trace_stop, mi_cmd_ada_task_info)
13394 (mi_cmd_trace_frame_collected): Constify 'command'
13395 parameter.
13396 * mi/mi-symbol-cmds.c (mi_cmd_symbol_list_lines): Constify
13397 'command' parameter.
13398
67cb5b2d
PA
133992017-04-05 Pedro Alves <palves@redhat.com>
13400
13401 * ada-lang.c (ada_completer_word_break_characters): Now a const
13402 array.
13403 (ada_get_gdb_completer_word_break_characters): Constify.
13404 * completer.c (gdb_completer_command_word_break_characters)
13405 (gdb_completer_file_name_break_characters)
13406 (gdb_completer_quote_characters): Now const arrays.
13407 (get_gdb_completer_quote_characters): Constify.
13408 (set_rl_completer_word_break_characters): New function.
13409 (set_gdb_completion_word_break_characters)
13410 (complete_line_internal): Use it.
13411 * completer.h (get_gdb_completer_quote_characters): Constify.
13412 (set_rl_completer_word_break_characters): Declare.
13413 * f-lang.c (f_word_break_characters): Constify.
13414 * language.c (default_word_break_characters): Constify.
13415 * language.h (language_defn::la_word_break_characters): Constify.
13416 (default_word_break_characters): Constify.
13417 * top.c (init_main): Use set_rl_completer_word_break_characters.
13418
7a114964
PA
134192017-04-05 Pedro Alves <palves@redhat.com>
13420
13421 * aix-thread.c (aix_thread_pid_to_str)
13422 (aix_thread_extra_thread_info): Constify.
13423 * bsd-kvm.c (bsd_kvm_pid_to_str): Constify.
13424 * bsd-uthread.c (bsd_uthread_extra_thread_info)
13425 (bsd_uthread_pid_to_str): Constify.
13426 * corelow.c (core_pid_to_str): Constify.
13427 * darwin-nat.c (darwin_pid_to_str): Constify.
13428 * fbsd-nat.c (fbsd_pid_to_str): Constify.
13429 * fbsd-tdep.c (fbsd_core_pid_to_str, gdbarch_core_pid_to_str):
13430 Constify.
13431 * gnu-nat.c (gnu_pid_to_str): Constify.
13432 * go32-nat.c (go32_pid_to_str): Constify.
13433 * i386-cygwin-tdep.c (i386_windows_core_pid_to_str): Constify.
13434 * inf-ptrace.c (inf_ptrace_pid_to_str): Constify.
13435 * inferior.c (inferior_pid_to_str): Constify.
13436 * linux-nat.c (linux_nat_pid_to_str): Constify.
13437 * linux-tdep.c (linux_core_pid_to_str): Constify.
13438 * linux-thread-db.c (thread_db_pid_to_str)
13439 (thread_db_extra_thread_info): Constify.
13440 * nto-tdep.c (nto_extra_thread_info): Constify.
13441 * nto-tdep.h (nto_extra_thread_info): Constify.
13442 * obsd-nat.c (obsd_pid_to_str): Constify.
13443 * procfs.c (procfs_pid_to_str): Constify.
13444 * ravenscar-thread.c (ravenscar_extra_thread_info)
13445 (ravenscar_pid_to_str): Constify.
13446 * remote-sim.c (gdbsim_pid_to_str): Constify.
13447 * remote.c (remote_threads_extra_info, remote_pid_to_str):
13448 Constify.
13449 * sol-thread.c (solaris_pid_to_str): Constify.
13450 * sol2-tdep.c (sol2_core_pid_to_str): Constify.
13451 * sol2-tdep.h (sol2_core_pid_to_str): Constify.
13452 * target.c (default_pid_to_str, target_pid_to_str)
13453 (normal_pid_to_str, default_pid_to_str): Constify.
13454 * target.h (target_ops::to_pid_to_str)
13455 (target_ops::to_extra_thread_info): Constify.
13456 (target_pid_to_str, normal_pid_to_str): Constify.
13457 * windows-nat.c (windows_pid_to_str): Constify.
13458 * gdbarch.sh (core_pid_to_str): Constify.
13459 * target-delegates.c: Regenerate.
13460 * gdbarch.h, gdbarch.c: Regenerate.
13461
69bbf465
PA
134622017-04-05 Pedro Alves <palves@redhat.com>
13463
13464 * main.c (captured_main_1): Use gdb::unique_xmalloc_ptr to manage
13465 the memory of the temporary warning_pre_print override.
13466 * utils.c (warning_pre_print): Constify.
13467 * utils.h (warning_pre_print): Constify.
13468
be47f9e8
PA
134692017-04-05 Pedro Alves <palves@redhat.com>
13470
13471 * cli/cli-cmds.c (shell_escape): Constify 'arg' parameter.
13472 (shell_command): New function.
13473 (make_command): Use std::string.
13474 (init_cli_cmds): Register shell_command instead of shell_escape.
13475
bde6261a
PA
134762017-04-05 Pedro Alves <palves@redhat.com>
13477
13478 * breakpoint.c (dprintf_function, dprintf_channel): Don't initialize.
13479 * tracepoint.c (default_collect): Don't initialize.
13480
b38ef47f
PA
134812017-04-05 Pedro Alves <palves@redhat.com>
13482
13483 * macroexp.c (macro_buffer::shared): Now a bool.
13484 (init_buffer): Update.
13485 (init_shared_buffer): Constify 'addr' parameter.
13486 (substitute_args, expand, macro_expand, macro_expand_next): Remove
13487 casts.
13488
f995bbe8
PA
134892017-04-05 Pedro Alves <palves@redhat.com>
13490
13491 * arm-tdep.c (show_disassembly_style_sfunc): Constify local.
13492 * disasm.c (set_disassembler_options): Constify local.
13493 * i386-tdep.c (i386_print_insn): Remove cast and FIXME comment.
13494
4a596fe2
SDJ
134952017-04-05 Sergio Durigan Junior <sergiodj@redhat.com>
13496
13497 PR gdb/21352
13498 * tracefile.c (tsave_command): Fix argument parsing for '-r'
13499 option.
13500
2cad08ea
YQ
135012017-04-05 Yao Qi <yao.qi@linaro.org>
13502
13503 * frame.c (frame_unwind_register_unsigned): Call
13504 frame_unwind_register_value.
13505
55a98976
YQ
135062017-04-05 Yao Qi <yao.qi@linaro.org>
13507
13508 * gdb.threads/thread-specific-bp.exp (check_thread_specific_breakpoint):
13509 Use gdb_test_multiple, and don't match anchor.
13510
4ac40124
PA
135112017-04-05 Pedro Alves <palves@redhat.com>
13512
13513 * MAINTAINERS (Global Maintainers): Add Simon Marchi.
13514 (Write After Approval): Remove Simon Marchi.
13515
c053b654
PA
135162017-04-05 Pedro Alves <palves@redhat.com>
13517
13518 * common/gdb_optional.h (optional::optional): Make constexpr and
13519 initialize m_dummy.
13520
4c7bf4f9
JB
135212017-04-04 John Baldwin <jhb@FreeBSD.org>
13522
13523 * amd64-fbsd-tdep.c: Remove "bsd-uthread.h" include.
13524 (amd64fbsd_jmp_buf_reg_offset): Remove.
13525 (amd64fbsd_supply_uthread): Remove function.
13526 (amd64fbsd_collect_uthread): Remove function.
13527 (amd64fbsd_init_abi): Don't set bsd-uthread callbacks.
13528 * configure.tgt (i[34567]86-*-freebsd*): Remove bsd-uthread.o.
13529 (x86_64-*-freebsd*): Remove bsd-uthread.o.
13530 (fbsd-nat.c): Update comment.
13531 * i386-fbsd-tdep.c: Remove "bsd-uthread.h" include.
13532 (i386fbsd_jmp_buf_reg_offset): Remove.
13533 (i386fbsd_supply_uthread): Remove function.
13534 (i386fbsd_collect_uthread): Remove function.
13535 (i386fbsd_init_abi): Don't set bsd-uthread callbacks.
13536
1e1a8bef
JB
135372017-04-04 John Baldwin <jhb@FreeBSD.org>
13538
13539 * Makefile.in (ALL_64_TARGET_OBS): Remove alpha-fbsd-tdep.o.
13540 (ALLDEPFILES): Remove alpha-fbsd-tdep.c
13541 * NEWS: Mention that support for FreeBSD/alpha was removed.
13542 * alpha-fbsd-tdep.c: Delete file.
13543 * config/alpha/fbsd.mh: Delete file.
13544 * configure.host: Delete alpha*-*-freebsd* and
13545 alpha*-*-kfreebsd*-gnu.
13546 * configure.tgt: Delete alpha*-*-freebsd* and
13547 alpha*-*-kfreebsd*-gnu.
13548
49907934
JB
135492017-04-04 John Baldwin <jhb@FreeBSD.org>
13550
13551 * amd64-bsd-nat.c (amd64bsd_fetch_inferior_registers,
13552 amd64bsd_store_inferior_registers): Use ptid from regcache.
13553
6f77053d
PA
135542017-04-04 Pedro Alves <palves@redhat.com>
13555
13556 * dwarf2read.c (lnp_state_machine): Now a class. Initialize all
13557 data fields, make them private and add "m_" prefixes.
13558 (lnp_state_machine::lnp_state_machine): New ctor.
13559 (record_line, check_line_address, handle_set_discriminator)
13560 (handle_set_address, handle_advance_pc, handle_special_opcode)
13561 (handle_advance_line, handle_set_file, handle_negate_stmt)
13562 (handle_const_add_pc, handle_fixed_advance_pc, handle_copy)
13563 (end_sequence, advance_line): New methods.
13564 (m_gdbarch, m_record_lines_p): New fields.
13565 (lnp_reader_state): Delete.
13566 (dwarf_record_line): Rename to ...
13567 (lnp_state_machine::record_line): ... adjust.
13568 (init_lnp_state_machine): Delete.
13569 (lnp_state_machine::lnp_state_machine): New.
13570 (check_line_address): Rename to ...
13571 (lnp_state_machine::check_line_address): This.
13572 (dwarf_decode_lines_1): Remove reference to "reader_state".
13573 Adjust lnp_state_machine having a non-default ctor. Use bool.
13574 State machine internal state manipulation moved to
13575 lnp_state_machine methods.
13576
9c541725
PA
135772017-04-04 Pedro Alves <palves@redhat.com>
13578
13579 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
13580 unittests/offset-type-selftests.c.
13581 (SUBDIR_UNITTESTS_OBS): Add offset-type-selftests.o.
13582 * common/offset-type.h: New file.
13583 * common/preprocessor.h: New file.
13584 * common/traits.h: New file.
13585 * common/valid-expr.h: New file.
13586 * dwarf2expr.c: Include "common/underlying.h". Adjust to use
13587 sect_offset and cu_offset strong typedefs throughout.
13588 * dwarf2expr.h: Adjust to use sect_offset and cu_offset strong
13589 typedefs throughout.
13590 * dwarf2loc.c: Include "common/underlying.h". Adjust to use
13591 sect_offset and cu_offset strong typedefs throughout.
13592 * dwarf2read.c: Adjust to use sect_offset and cu_offset strong
13593 typedefs throughout.
13594 * gdbtypes.h: Include "common/offset-type.h".
13595 (cu_offset): Now an offset type (strong typedef) instead of a
13596 struct.
13597 (sect_offset): Likewise.
13598 (union call_site_parameter_u): Rename "param_offset" field to
13599 "param_cu_off".
13600 * unittests/offset-type-selftests.c: New file.
13601
ecfb656c
PA
136022017-04-04 Pedro Alves <palves@redhat.com>
13603
13604 * common/underlying.h: New file.
13605 * dwarf2read.c: Include "common/gdb_optional.h" and
13606 "common/underlying.h".
13607 (dir_index, file_name_index): New types.
13608 (file_entry): Use them.
13609 (file_entry::include): Use to_underlying.
13610 (line_header::add_file_name): Use dir_index.
13611 (read_formatted_entries): Use gdb::optional. Read form before
13612 writting to file_entry.
13613 (dwarf_decode_line_header): Use dir_index.
13614 (lnp_state_machine::current_file): Use to_underlying.
13615 (lnp_state_machine::file): Change type to file_name_index.
13616 (dwarf_record_line): Use to_underlying.
13617 (init_lnp_state_machine): Use file_name_index.
13618 (dwarf_decode_lines_1): Use dir_index and file_name_index.
13619
d194f1fe
PA
136202017-04-04 Pedro Alves <palves@redhat.com>
13621
13622 * common/gdb_optional.h (gdb::optiona): Add operator->, operator*,
13623 operator bool, has_value and get methods.
13624
fff8551c
PA
136252017-04-04 Pedro Alves <palves@redhat.com>
13626
13627 * dwarf2read.c (struct file_entry): Add ctors, and initialize all
13628 fields.
13629 (line_header): Initialize all data fields. Change type of
13630 standard_opcode_lengths to std::unique_ptr<unsigned char[]>.
13631 Change type of include_dirs to std::vector<const char *>. Remove
13632 num_include_dirs, include_dirs_size. Change type of file_names to
13633 std::vector<file_entry>. Remove num_file_names, file_names_size.
13634 (line_header::line_header): New.
13635 (line_header::add_include_dir, line_header::add_file_name): New
13636 methods.
13637 (line_header::include_dir_at): Remove NULL check.
13638 (line_header::file_name_at): Add const overload.
13639 (line_header_up): New unique_ptr typedef.
13640 (dw2_get_file_names_reader): Use line_header_up. Adjust to use
13641 std::vector. Remove free_line_header call.
13642 (dwarf2_build_include_psymtabs): Use line_header_up. Remove
13643 free_line_header call.
13644 (free_cu_line_header): Delete.
13645 (handle_DW_AT_stmt_list, handle_DW_AT_stmt_list)
13646 (setup_type_unit_groups): Use line_header_up instead of cleanups.
13647 Adjust to use std::vector.
13648 (free_line_header): Delete.
13649 (free_line_header_voidp): Use delete.
13650 (add_include_dir): Replace with ...
13651 (line_header::add_include_dir): ... this method. Use std::vector.
13652 (add_file_name): Replace with ...
13653 (line_header::add_file_name): ... this method. Use std::vector.
13654 (add_include_dir_stub): Delete.
13655 (read_formatted_entries): Remove memset.
13656 (dwarf_decode_line_header): Return a line_header_up instead of a
13657 raw pointer. Remove cleanup handling. Pass lambdas to
13658 read_formatted_entries. Adjust to use line_header methods.
13659 (dwarf_decode_lines_1): Adjust to use line_header methods.
13660 (dwarf_decode_lines, file_file_name, file_full_name): Adjust to
13661 use std::vector.
13662
d62a8ae2
SM
136632017-04-04 Simon Marchi <simon.marchi@polymtl.ca>
13664
13665 * remote.c (set_general_thread, set_continue_thread): Use ptid_t
13666 instead of struct ptid.
13667
db3a1dc7
AH
136682017-05-04 Alan Hayward <alan.hayward@arm.com>
13669
13670 * frame.c (get_frame_register_bytes): Unwind using value.
13671 (put_frame_register_bytes): Likewise.
13672
b1b45502
IB
136732017-03-30 Iain Buclaw <ibuclaw@gdcproject.org>
13674
13675 * d-exp.y (type_aggregate_p): Treat TYPE_CODE_MODULE as being
13676 aggregate-like.
13677
ec13808e
JK
136782017-03-29 Jan Kratochvil <jan.kratochvil@redhat.com>
13679
13680 * auto-load.c (auto_load_section_scripts): Check SEC_HAS_CONTENTS.
13681
12316564
YQ
136822017-03-29 Yao Qi <yao.qi@linaro.org>
13683
13684 * gdbthread.h (struct thread_info): Declare constructor and
13685 destructor. Add some in-class member initializers.
13686 * thread.c (free_thread): Remove.
13687 (init_thread_list): Call delete instead of free_thread.
13688 (new_thread): Call thread_info constructor.
13689 (thread_info::thread_info): New function.
13690 (thread_info::~thread_info): New function.
13691 (delete_thread_1): Call delete instead of free_thread.
13692 (make_cleanup_restore_current_thread): Move tp and frame to
13693 inner block.
13694
fe5f7374
AK
136952017-03-28 Anton Kolesov <anton.kolesov@synopsys.com>
13696
13697 * arc-tdep.c (arc_frame_cache): Add support for prologue analysis.
13698 (arc_skip_prologue): Likewise.
13699 (arc_make_frame_cache): Likewise.
13700 (arc_pv_get_operand): New function.
13701 (arc_is_in_prologue): Likewise.
13702 (arc_analyze_prologue): Likewise.
13703 (arc_print_frame_cache): Likewise.
13704 (MAX_PROLOGUE_LENGTH): New constant.
13705
eea78757
AK
137062017-03-28 Anton Kolesov <anton.kolesov@synopsys.com>
13707
13708 * configure.tgt: Add arc-insn.o.
13709 * arc-tdep.c (arc_delayed_print_insn): Make non-static.
13710 (dump_arc_instruction_command): New function.
13711 (arc_fprintf_disasm): Likewise.
13712 (arc_disassemble_info): Likewise.
13713 (arc_insn_get_operand_value): Likewise.
13714 (arc_insn_get_operand_value_signed): Likewise.
13715 (arc_insn_get_memory_base_reg): Likewise.
13716 (arc_insn_get_memory_offset): Likewise.
13717 (arc_insn_get_branch_target): Likewise.
13718 (arc_insn_dump): Likewise.
13719 (arc_insn_get_linear_next_pc): Likewise.
13720 * arc-tdep.h (arc_delayed_print_insn): Add function declaration.
13721 (arc_disassemble_info): Likewise.
13722 (arc_insn_get_branch_target): Likewise.
13723 (arc_insn_get_linear_next_pc): Likewise.
13724 * NEWS: Mention new "maint print arc arc-instruction".
13725
3be78afd
AK
137262017-03-28 Anton Kolesov <anton.kolesov@synopsys.com>
13727
13728 * arc-tdep (maintenance_print_arc_list): New variable.
13729 (maintenance_print_arc_command): New function.
13730
296ec4fa
AK
137312017-03-28 Anton Kolesov <anton.kolesov@synopsys.com>
13732
13733 * arc-tdep.c (core_v2_register_names, core_arcompact_register_names)
13734 Add "limm" and "reserved".
13735 (arc_cannot_fetch_register, arc_cannot_store_register): Add
13736 ARC_RESERVED_REGNUM and ARC_LIMM_REGNUM.
13737 * arc-tdep.h (arc_regnum): Likewise.
13738
f74f865e
MF
137392017-03-27 Max Filippov <jcmvbkbc@gmail.com>
13740
13741 * xtensa-linux-nat.c (fill_gregset): Call regcache_raw_collect
13742 for THREADPTR register.
13743 (supply_gregset_reg): Call regcache_raw_supply for THREADPTR
13744 register.
13745 * xtensa-tdep.c (XTENSA_DBREGN_UREG): New definition.
13746 (xtensa_derive_tdep): Initialize tdep->threadptr_regnum.
13747 * xtensa-tdep.h (gdbarch_tdep::threadptr_regnum): New field.
13748
0d0bf81a
MF
137492017-03-27 Max Filippov <jcmvbkbc@gmail.com>
13750
13751 * xtensa-tdep.c (xtensa_pseudo_register_read): Treat all
13752 registers above gdbarch_num_regs (gdbarch) as privileged in
13753 call0 ABI.
13754
0ce4291e
MF
137552017-03-27 Max Filippov <jcmvbkbc@gmail.com>
13756
13757 * xtensa-linux-nat.c (fill_gregset): Call regcache_raw_collect
13758 for a single specified register or for all registers in
13759 a0_base..a0_base + C0_NREGS range.
13760 (supply_gregset_reg): Call regcache_raw_supply for a single
13761 specified register or for all registers in a0_base..a0_base +
13762 C0_NREGS range.
13763
c56054f9
MF
137642017-03-27 Max Filippov <jcmvbkbc@gmail.com>
13765
13766 * arch/xtensa.h (C0_NREGS): Add definition.
13767 * xtensa-tdep.c (C0_NREGS): Remove definition.
13768
a4398628
MF
137692017-03-27 Max Filippov <jcmvbkbc@gmail.com>
13770
13771 * xtensa-tdep.c (xtensa_scan_prologue, call0_analyze_prologue):
13772 Drop xtensa_default_isa initialization.
13773 (xtensa_gdbarch_init): Initialize xtensa_default_isa.
13774
8c43009f
PA
137752017-03-27 Pedro Alves <palves@redhat.com>
13776
13777 * dwarf2read.c (file_entry) <dir_index>: Add comment.
13778 (file_entry::include_dir): New method.
13779 (line_header::include_dir_at, line_header::file_name_at): New
13780 methods.
13781 (setup_type_unit_groups, setup_type_unit_groups)
13782 (psymtab_include_file_name): Simplify using the new methods.
13783 (lnp_state_machine) <the_line_header>: New field.
13784 <file>: Add comment.
13785 (lnp_state_machine::current_file): New method.
13786 (dwarf_record_line): Simplify using the new methods.
13787 (init_lnp_state_machine): Initialize the "the_line_header" field.
13788 (dwarf_decode_lines_1, dwarf_decode_lines, file_file_name):
13789 Simplify using the new methods.
13790
a7e80b9e
PA
137912017-03-27 Pedro Alves <palves@redhat.com>
13792
13793 * cp-name-parser.y (make_empty): Delete.
13794 (demangler_special, nested_name, ptr_operator, array_indicator)
13795 (direct_declarator, declarator_1): Use fill_comp instead of
13796 make_empty.
13797
21047726
PA
137982017-03-27 Pedro Alves <palves@redhat.com>
13799
13800 * xml-support.h (gdb_xml_debug): Pass a "first-to-check" argument
13801 to ATTRIBUTE_PRINTF.
13802 * solib-target.c (library_list_start_list): Print "string" not
13803 "version".
13804 * xml-tdesc.c (tdesc_start_field): Pass "field_name" to
13805 gdb_xml_error call.
13806
d721ba37
PA
138072017-03-27 Pedro Alves <palves@redhat.com>
13808
13809 * dwarf2read.c (struct file_and_directory): New.
13810 (dwarf2_get_dwz_file): Adjust to use std::string.
13811 (dw2_get_file_names_reader): Adjust to use file_and_directory.
13812 (find_file_and_directory): Adjust to return a file_and_directory
13813 object.
13814 (read_file_scope): Adjust to use file_and_directory. Remove
13815 make_cleanup/do_cleanups calls.
13816 (open_and_init_dwp_file): Adjust to use std::string. Remove
13817 make_cleanup/do_cleanups calls.
13818 * python/python.c (do_start_initialization): Adjust to ldirname
13819 returning a std::string.
13820 * utils.c (ldirname): Now returns a std::string.
13821 * utils.h (ldirname): Change return type to std::string.
13822 * xml-syscall.c (xml_init_syscalls_info): Adjust to ldirname
13823 returning a std::string.
13824 * xml-tdesc.c (file_read_description_xml): Likewise.
13825
ed771251
AH
138262017-03-24 Alan Hayward <alan.hayward@arm.com>
13827
13828 * regcache.c (regcache_debug_print_register): New function.
13829 * regcache.h (regcache_debug_print_register): New declaration.
13830 * target.c (debug_print_register): Remove.
13831 (target_fetch_registers): Call regcache_debug_print_register.
13832 (target_store_registers): Likewise.
13833
568c1b9f
PB
138342017-03-24 Pádraig Brady <pbrady@fb.com>
13835
13836 * dwarf2read.c (setup_type_unit_groups): Ensure dir_index doesn't
13837 reference beyond the 'lh->include_dirs' array before accessing to
13838 it.
13839 (psymtab_include_file_name): Likewise.
13840 (dwarf_decode_lines_1): Likewise.
13841 (dwarf_decode_lines): Likewise.
13842 (file_file_name): Likewise.
13843
3e00d44f
SM
138442017-03-23 Simon Marchi <simon.marchi@ericsson.com>
13845
13846 * fbsd-tdep.c (fbsd_corefile_thread): Don't set/restore
13847 inferior_ptid.
13848 * proc-service.c (ps_lgetregs, ps_lsetregs, ps_lgetfpregs,
13849 ps_lsetfpregs): Likewise.
13850 * regcache.c (regcache_raw_update, regcache_raw_write): Likewise.
13851 * sol-thread.c (ps_lgetregs, ps_lsetregs, ps_lgetfpregs,
13852 ps_lsetfpregs): Likewise.
13853 * target.c (target_fetch_registers, target_store_registers):
13854 Remove asserts.
13855
077ae656
AH
138562017-03-23 Alan Hayward <alan.hayward@arm.com>
13857
13858 * sol-thread.c (sol_thread_store_registers): Remove regcache calls.
13859
1e2b521d
YQ
138602017-03-23 Yao Qi <yao.qi@linaro.org>
13861
13862 * aarch64-tdep.c (aarch64_process_record_test): Declare.
13863 (_initialize_aarch64_tdep): Register it.
13864 (aarch64_record_load_store): Handle PRFM instruction.
13865 (aarch64_process_record_test): New function.
13866
33877125
YQ
138672017-03-23 Yao Qi <yao.qi@linaro.org>
13868
13869 * aarch64-tdep.c (aarch64_record_load_store): Fix code
13870 indentation.
13871
a0eef940
YQ
138722017-03-23 Yao Qi <yao.qi@linaro.org>
13873
13874 * aarch64-tdep.c: Remove AARCH64_RECORD_FAILURE.
13875
3f2a3564
PR
138762017-03-23 Philipp Rudo <prudo@linux.vnet.ibm.com>
13877
13878 python/python.c (do_start_initialization): Fix memory leak.
13879
b67aeab0
SM
138802017-03-22 Simon Marchi <simon.marchi@polymtl.ca>
13881
13882 * inf-ptrace.c (inf_ptrace_xfer_partial): Get pid from ptid
13883 using get_ptrace_pid.
13884 * linux-nat.c (linux_nat_xfer_partial): Don't set/restore
13885 inferior_ptid.
13886 (linux_proc_xfer_partial, linux_proc_xfer_spu): Use lwp of
13887 inferior_ptid instead of pid.
13888
ffdbe864
YQ
138892017-03-22 Yao Qi <yao.qi@linaro.org>
13890
13891 * aarch64-tdep.c: Wrap locally used classes in anonymous
13892 namespace.
13893 * arm-tdep.c: Likewise.
13894 * linespec.c: Likewise.
13895 * ui-out.c: Likewise.
13896
9d736fbf
JG
138972017-03-22 Jonah Graham <jonah@kichwacoders.com>
13898
13899 PR gdb/19637
13900 * python/lib/gdb/printer/bound_registers.py: Import sys.
13901
3de88e9a
SM
139022017-03-21 Simon Marchi <simon.marchi@ericsson.com>
13903
13904 * windows-nat.c (do_windows_fetch_inferior_registers): Add
13905 windows_thread_info parameter and use it instead of
13906 current_thread.
13907 (windows_fetch_inferior_registers): Don't set current_thread,
13908 pass the thread to do_windows_fetch_inferior_registers. Use
13909 ptid from regcache instead of inferior_ptid.
13910 (do_windows_store_inferior_registers): Add windows_thread_info
13911 parameter and use it instead of current_thread.
13912 (windows_store_inferior_registers): Don't set current_thread,
13913 pass the thread to do_windows_store_inferior_registers. Use
13914 ptid from regcache instead of inferior_ptid.
13915
0e7b8f61
SM
139162017-03-21 Simon Marchi <simon.marchi@ericsson.com>
13917
13918 * ser-mingw.c (ser_windows_raw): Remove reference to
13919 struct serial::current_timeout.
13920
5badf10a
IR
139212017-03-21 Ivo Raisr <ivo.raisr@oracle.com>
13922
13923 PR tdep/20928
13924 * gdb/sparc-tdep.h (gdbarch_tdep) <sparc64_ccr_type>: New field.
13925 * gdb/sparc64-tdep.c (sparc64_ccr_type): New function.
13926 (sparc64_fsr_type): Fix %fsr decoding.
13927
cee59b3f
TW
139282017-03-21 Tim Wiederhake <tim.wiederhake@intel.com>
13929
13930 * python/py-record-btrace.c (btpy_insn_data): Change return type
13931 for Python 2.
13932
639a9038
SM
139332017-03-20 Simon Marchi <simon.marchi@polymtl.ca>
13934
13935 * spu-linux-nat.c (spu_fetch_inferior_registers,
13936 spu_store_inferior_registers): Use ptid from regcache, set and
13937 restore inferior_ptid.
13938 * spu-multiarch.c (spu_fetch_registers, spu_store_registers):
13939 Likewise.
13940
bcc0c096
SM
139412017-03-20 Simon Marchi <simon.marchi@polymtl.ca>
13942
13943 * i386-linux-nat.c (fetch_register, store_register,
13944 i386_linux_fetch_inferior_registers,
13945 i386_linux_store_inferior_registers): Use ptid from regcache.
13946 * ia64-linux-nat.c (ia64_linux_fetch_register,
13947 ia64_linux_store_register): Likewise.
13948 * inf-ptrace.c (inf_ptrace_fetch_register,
13949 inf_ptrace_store_register): Likewise.
13950 * m32r-linux-nat.c (m32r_linux_fetch_inferior_registers,
13951 m32r_linux_store_inferior_registers): Likewise.
13952 * m68k-bsd-nat.c (m68kbsd_fetch_inferior_registers,
13953 m68kbsd_store_inferior_registers): Likewise.
13954 * m68k-linux-nat.c (fetch_register, store_register,
13955 m68k_linux_fetch_inferior_registers,
13956 m68k_linux_store_inferior_registers): Likewise.
13957 * m88k-bsd-nat.c (m88kbsd_fetch_inferior_registers,
13958 m88kbsd_store_inferior_registers): Likewise.
13959 * mips-fbsd-nat.c (mips_fbsd_fetch_inferior_registers,
13960 mips_fbsd_store_inferior_registers): Likewise.
13961 * mips-linux-nat.c (mips64_linux_regsets_fetch_registers,
13962 mips64_linux_regsets_store_registers): Likewise.
13963 * mips-nbsd-nat.c (mipsnbsd_fetch_inferior_registers,
13964 mipsnbsd_store_inferior_registers): Likewise.
13965 * mips-obsd-nat.c (mips64obsd_fetch_inferior_registers,
13966 mips64obsd_store_inferior_registers): Likewise.
13967 * nto-procfs.c (procfs_fetch_registers, procfs_store_registers):
13968 Likewise.
13969 * ppc-fbsd-nat.c (ppcfbsd_fetch_inferior_registers,
13970 ppcfbsd_store_inferior_registers): Likewise.
13971 * ppc-linux-nat.c (ppc_linux_fetch_inferior_registers,
13972 ppc_linux_store_inferior_registers): Likewise.
13973 * ppc-nbsd-nat.c (ppcnbsd_fetch_inferior_registers,
13974 ppcnbsd_store_inferior_registers): Likewise.
13975 * ppc-obsd-nat.c (ppcobsd_fetch_registers,
13976 ppcobsd_store_registers): Likewise.
13977 * procfs.c (procfs_fetch_registers, procfs_store_registers):
13978 Likewise.
13979 * ravenscar-thread.c (ravenscar_fetch_registers,
13980 ravenscar_store_registers, ravenscar_prepare_to_store):
13981 Likewise.
13982 * record-btrace.c (record_btrace_fetch_registers,
13983 record_btrace_store_registers, record_btrace_prepare_to_store):
13984 Likewise.
13985 * remote-sim.c (gdbsim_fetch_register, gdbsim_store_register):
13986 Lookup inferior using ptid from regcache, instead of
13987 current_inferior.
13988 * remote.c (remote_fetch_registers, remote_store_registers): Use
13989 ptid from regcache.
13990 * rs6000-nat.c (fetch_register, store_register): Likewise.
13991 * s390-linux-nat.c (s390_linux_fetch_inferior_registers,
13992 s390_linux_store_inferior_registers): Likewise.
13993 * sh-nbsd-nat.c (shnbsd_fetch_inferior_registers,
13994 shnbsd_store_inferior_registers): Likewise.
13995 * sol-thread.c (sol_thread_fetch_registers,
13996 sol_thread_store_registers): Likewise.
13997 * sparc-nat.c (sparc_fetch_inferior_registers,
13998 sparc_store_inferior_registers): Likewise.
13999 * tilegx-linux-nat.c (fetch_inferior_registers,
14000 store_inferior_registers): Likewise.
14001 * vax-bsd-nat.c (vaxbsd_fetch_inferior_registers,
14002 vaxbsd_store_inferior_registers): Likewise.
14003 * xtensa-linux-nat.c (fetch_gregs, store_gregs, fetch_xtregs,
14004 store_xtregs): Likewise.
14005
c0f55cc6
AV
140062017-03-20 Artemiy Volkov <artemiyv@acm.org>
14007
14008 PR gdb/14441
14009 * NEWS: Mention support for rvalue references in GDB and python.
14010 * doc/gdb.texinfo (C Plus Plus Expressions): Mention that GDB
14011 supports both lvalue and rvalue references.
14012
15c0a2a9
AV
140132017-03-20 Artemiy Volkov <artemiyv@acm.org>
14014
14015 PR gdb/14441
14016 * gdbtypes.c (rank_one_type): Implement overloading
14017 resolution rules regarding rvalue references.
14018
aa006118
AV
140192017-03-20 Artemiy Volkov <artemiyv@acm.org>
14020
14021 PR gdb/14441
14022 * aarch64-tdep.c (aarch64_type_align)
14023 (aarch64_extract_return_value, aarch64_store_return_value): Change
14024 lvalue reference type checks to general reference type checks.
14025 * amd64-tdep.c (amd64_classify): Likewise.
14026 * amd64-windows-tdep.c (amd64_windows_passed_by_integer_register):
14027 Likewise.
14028 * arm-tdep.c (arm_type_align, arm_extract_return_value)
14029 (arm_store_return_value): Likewise.
14030 * ax-gdb.c (gen_fetch, gen_cast): Likewise.
14031 * c-typeprint.c (c_print_type): Likewise.
14032 * c-varobj.c (adjust_value_for_child_access, c_value_of_variable)
14033 (cplus_number_of_children, cplus_describe_child): Likewise.
14034 * compile/compile-c-symbols.c (generate_vla_size): Likewise.
14035 * completer.c (expression_completer): Likewise.
14036 * cp-support.c (make_symbol_overload_list_adl_namespace):
14037 Likewise.
14038 * darwin-nat-info.c (info_mach_region_command): Likewise.
14039 * dwarf2loc.c (entry_data_value_coerce_ref)
14040 (value_of_dwarf_reg_entry): Likewise.
14041 * eval.c (ptrmath_type_p, evaluate_subexp_standard)
14042 (evaluate_subexp_for_address, evaluate_subexp_for_sizeof):
14043 Likewise.
14044 * findvar.c (extract_typed_address, store_typed_address):
14045 Likewise.
14046 * gdbtypes.c (rank_one_type): Likewise.
14047 * hppa-tdep.c (hppa64_integral_or_pointer_p): Likewise.
14048 * infcall.c (value_arg_coerce): Likewise.
14049 * language.c (pointer_type): Likewise.
14050 * m32c-tdep.c (m32c_reg_arg_type, m32c_m16c_address_to_pointer):
14051 Likewise.
14052 * m88k-tdep.c (m88k_integral_or_pointer_p): Likewise.
14053 * mn10300-tdep.c (mn10300_type_align): Likewise.
14054 * msp430-tdep.c (msp430_push_dummy_call): Likewise.
14055 * ppc-sysv-tdep.c (do_ppc_sysv_return_value)
14056 (ppc64_sysv_abi_push_param, ppc64_sysv_abi_return_value):
14057 Likewise.
14058 * printcmd.c (print_formatted, x_command): Likewise.
14059 * python/py-type.c (typy_get_composite, typy_template_argument):
14060 Likewise.
14061 * python/py-value.c (valpy_referenced_value)
14062 (valpy_get_dynamic_type, value_has_field): Likewise.
14063 * s390-linux-tdep.c (s390_function_arg_integer): Likewise.
14064 * sparc-tdep.c (sparc_integral_or_pointer_p): Likewise.
14065 * sparc64-tdep.c (sparc64_integral_or_pointer_p): Likewise.
14066 * spu-tdep.c (spu_scalar_value_p): Likewise.
14067 * symtab.c (lookup_symbol_aux): Likewise.
14068 * typeprint.c (whatis_exp, print_type_scalar): Likewise.
14069 * valarith.c (binop_types_user_defined_p, unop_user_defined_p):
14070 Likewise.
14071 * valops.c (value_cast_pointers, value_cast)
14072 (value_reinterpret_cast, value_dynamic_cast, value_addr, typecmp)
14073 (value_struct_elt, value_struct_elt_bitpos)
14074 (value_find_oload_method_list, find_overload_match)
14075 (value_rtti_indirect_type): Likewise.
14076 * valprint.c (val_print_scalar_type_p, generic_val_print):
14077 Likewise.
14078 * value.c (value_actual_type, value_as_address, unpack_long)
14079 (pack_long, pack_unsigned_long, coerce_ref_if_computed)
14080 (coerce_ref): Likewise.
14081 * varobj.c (varobj_get_value_type): Likewise.
14082
3fcf899d
AV
140832017-03-20 Artemiy Volkov <artemiyv@acm.org>
14084
14085 PR gdb/14441
14086 * doc/python.texi (Types in Python): Add TYPE_CODE_RVALUE_REF to
14087 table of constants.
14088 * python/lib/gdb/command/explore.py: Support exploring values
14089 of rvalue reference types.
14090 * python/lib/gdb/types.py: Implement get_basic_type() for
14091 rvalue reference types.
14092 * python/py-type.c (pyty_codes) <TYPE_CODE_RVALUE_REF>: New
14093 constant.
14094 * python/py-value.c (valpy_getitem): Add an rvalue reference
14095 check.
14096 (valpy_reference_value): Add new parameter "refcode".
14097 (valpy_lvalue_reference_value, valpy_rvalue_reference_value):
14098 New wrappers for valpy_reference_value().
14099 * python/py-xmethods.c (gdbpy_get_xmethod_result_type)
14100 (gdbpy_invoke_xmethod): Likewise.
14101
4297a3f0
AV
141022017-03-20 Artemiy Volkov <artemiyv@acm.org>
14103
14104 PR gdb/14441
14105 * dwarf2read.c (process_die, read_type_die_1): Handle the
14106 DW_TAG_rvalue_reference_type DIE.
14107 (read_tag_reference_type): Add new parameter "refcode".
14108
e1cb3213
AV
141092017-03-20 Artemiy Volkov <artemiyv@acm.org>
14110
14111 PR gdb/14441
14112 * c-typeprint.c (c_print_type, c_type_print_varspec_prefix)
14113 (c_type_print_modifier, c_type_print_varspec_suffix)
14114 (c_type_print_base): Support printing rvalue reference types.
14115 * c-valprint.c (c_val_print, c_value_print): Support printing
14116 rvalue reference values.
14117
e4347c89
AV
141182017-03-20 Artemiy Volkov <artemiyv@acm.org>
14119
14120 PR gdb/14441
14121 * cp-name-parser.y (ptr_operator): Handle the '&&' token in
14122 typename.
14123 * cp-support.c (replace_typedefs): Handle
14124 DEMANGLE_COMPONENT_RVALUE_REFERENCE.
14125 * python/py-type.c (typy_lookup_type): Likewise.
14126
53cc15f5
AV
141272017-03-20 Artemiy Volkov <artemiyv@acm.org>
14128
14129 PR gdb/14441
14130 * c-exp.y (ptr_operator): Handle the '&&' token in the typename.
14131 * parse.c (insert_type): Change assert statement.
14132 (follow_types): Handle rvalue reference types.
14133 * parser-defs.h (enum type_pieces) <tp_rvalue_reference>: New
14134 constant.
14135
a65cfae5
AV
141362017-03-20 Artemiy Volkov <artemiyv@acm.org>
14137
14138 PR gdb/14441
14139 * ada-lang.c (ada_evaluate_subexp): Adhere to the new
14140 value_ref() interface.
14141 * c-valprint.c (c_value_print): Likewise.
14142 * infcall.c (value_arg_coerce): Likewise.
14143 * python/py-value.c (valpy_reference_value): Likewise.
14144 * valops.c (value_cast, value_reinterpret_cast)
14145 (value_dynamic_cast, typecmp): Likewise.
14146 (value_ref): Parameterize by kind of return value reference type.
14147 * value.h (value_ref): Add new parameter "refcode".
14148
3b224330
AV
141492017-03-20 Artemiy Volkov <artemiyv@acm.org>
14150
14151 PR gdb/14441
14152 * dwarf2read.c (read_tag_reference_type): Use
14153 lookup_lvalue_reference_type() instead of lookup_reference_type().
14154 * eval.c (evaluate_subexp_standard): Likewise.
14155 * f-exp.y: Likewise.
14156 * gdbtypes.c (make_reference_type, lookup_reference_type):
14157 Generalize with rvalue reference types.
14158 (lookup_lvalue_reference_type, lookup_rvalue_reference_type): New
14159 convenience wrappers for lookup_reference_type().
14160 * gdbtypes.h (make_reference_type, lookup_reference_type): Add a
14161 reference kind parameter.
14162 (lookup_lvalue_reference_type, lookup_rvalue_reference_type): Add
14163 wrappers for lookup_reference_type().
14164 * guile/scm-type.c (gdbscm_type_reference): Use
14165 lookup_lvalue_reference_type() instead of lookup_reference_type().
14166 * guile/scm-value.c (gdbscm_value_dynamic_type): Likewise.
14167 * parse.c (follow_types): Likewise.
14168 * python/py-type.c (typy_reference, typy_lookup_type): Likewise.
14169 * python/py-value.c (valpy_get_dynamic_type, valpy_getitem):
14170 Likewise.
14171 * python/py-xmethods.c (gdbpy_get_xmethod_result_type)
14172 (gdbpy_invoke_xmethod): Likewise.
14173 * stabsread.c: Provide extra argument to make_reference_type()
14174 call.
14175 * valops.c (value_ref, value_rtti_indirect_type): Use
14176 lookup_lvalue_reference_type() instead of lookup_reference_type().
14177
f9aeb8d4
AV
141782017-03-20 Artemiy Volkov <artemiyv@acm.org>
14179
14180 PR gdb/14441
14181 * gdbtypes.h (enum type_code) <TYPE_CODE_RVALUE_REF>: New constant.
14182 (TYPE_IS_REFERENCE): New macro.
14183 (struct type): Add rvalue_reference_type field.
14184 (TYPE_RVALUE_REFERENCE_TYPE): New macro.
14185
51457a05
MAL
141862017-03-20 Marc-Andre Laperle <marc-andre.laperle@ericsson.com>
14187
14188 * NEWS: Add an entry about new '-file-list-shared-libraries' command.
14189 * mi/mi-cmd-file.c (mi_cmd_file_list_shared_libraries):
14190 New function definition.
14191 * mi/mi-cmds.c (mi_cmds): Add -file-list-shared-libraries command.
14192 * mi/mi-cmds.h (mi_cmd_file_list_shared_libraries):
14193 New function declaration.
14194 * mi/mi-interp.c (mi_output_solib_attribs): New Function.
14195 * mi/mi-interp.h: New file.
14196 * solib.c (info_sharedlibrary_command): Replace for loop with
14197 ALL_SO_LIBS macro
14198 * solib.h (update_solib_list): New function declaration.
14199 (so_list_head): Move macro.
14200 * solist.h (ALL_SO_LIBS): New macro.
14201
e696b3ad
MAL
142022017-03-20 Marc-Andre Laperle <marc-andre.laperle@ericsson.com>
14203
14204 * infcmd.c (post_create_inferior): Remove unused argument in
14205 call to solib_add.
14206 * remote.c (remote_start_remote): Likewise.
14207 * solib-frv.c (frv_fetch_objfile_link_map): Likewise.
14208 * solib-svr4.c: (svr4_fetch_objfile_link_map): Likewise.
14209 (enable_break): Likewise.
14210 * solib.c (update_solib_list): Remove unused target argument
14211 and its documentation.
14212 (solib_add): Remove unused target argument. Remove unused
14213 argument in call to update_solib_list.
14214 (info_sharedlibrary_command): Remove unused argument in call
14215 to update_solib_list.
14216 (sharedlibrary_command): Remove unused argument in call to
14217 solib_add.
14218 (handle_solib_event): Likewise.
14219 (reload_shared_libraries): Likewise.
14220 * solib.h (solib_add): Remove unused target argument.
14221
dcb84eda
AA
142222017-03-20 Andreas Arnez <arnez@linux.vnet.ibm.com>
14223
14224 * s390-linux-tdep.c (is_rsi, is_rie): Remove functions.
14225 (s390_displaced_step_fixup): Cover relative branches with the
14226 default fixup handling. This fixes lack of support for some
14227 relative branch instructions.
14228
d9cb6cdc
SM
142292017-03-17 Simon Marchi <simon.marchi@polymtl.ca>
14230
14231 * i386-gnu-nat.c (gnu_fetch_registers, gnu_store_registers): Use
14232 ptid from regcache.
14233
1afaf9f4
SM
142342017-03-17 Simon Marchi <simon.marchi@polymtl.ca>
14235
14236 * i386-darwin-nat.c (i386_darwin_fetch_inferior_registers,
14237 i386_darwin_store_inferior_registers): Use ptid from regcache.
14238
aac12e24
SM
142392017-03-17 Simon Marchi <simon.marchi@polymtl.ca>
14240
14241 * i386-bsd-nat.c (i386bsd_fetch_inferior_registers,
14242 i386bsd_store_inferior_registers): Use ptid from regcache.
14243
bbe1eef1
SM
142442017-03-17 Simon Marchi <simon.marchi@polymtl.ca>
14245
14246 * hppa-obsd-nat.c (hppaobsd_fetch_registers,
14247 hppaobsd_store_registers): Use ptid from regcache.
14248
10799020
SM
142492017-03-17 Simon Marchi <simon.marchi@polymtl.ca>
14250
14251 * hppa-nbsd-nat.c (hppanbsd_fetch_registers,
14252 hppanbsd_store_registers): Use ptid from regcache.
14253
00204cf7
SM
142542017-03-17 Simon Marchi <simon.marchi@polymtl.ca>
14255
14256 * hppa-linux-nat.c (fetch_register, store_register): Use ptid
14257 from regcache. Use get_ptrace_pid.
14258
11a33714
SM
142592017-03-17 Simon Marchi <simon.marchi@polymtl.ca>
14260
14261 * corelow.c (get_core_register_section): Use ptid from regcache,
14262 update doc.
14263
317cd492
SM
142642017-03-17 Simon Marchi <simon.marchi@polymtl.ca>
14265
14266 * bsd-uthread.c (bsd_uthread_fetch_registers,
14267 bsd_uthread_store_registers): Use ptid from regcache, set and
14268 restore inferior_ptid.
14269
9ac8a7c2
SM
142702017-03-17 Simon Marchi <simon.marchi@polymtl.ca>
14271
14272 * arm-nbsd-nat.c (fetch_register, fetch_regs, fetch_fp_register,
14273 fetch_fp_regs, store_register, store_regs, store_fp_register,
14274 store_fp_regs): Use ptid from regcache.
14275
4ac4bb6a
SM
142762017-03-17 Simon Marchi <simon.marchi@polymtl.ca>
14277
14278 * arm-linux-nat.c (fetch_fpregs, store_fpregs, fetch_regs,
14279 store_regs, fetch_wmmx_regs, store_wmmx_regs, fetch_vfp_regs,
14280 store_vfp_regs): Use ptid from regcache.
14281
9bcbdca8
PA
142822017-03-17 Pedro Alves <palves@redhat.com>
14283
14284 PR remote/21188
14285 * ser-base.c (ser_base_wait_for): Add comment.
14286 (do_ser_base_readchar): Improve comment based on the ser-unix.c's
14287 version.
14288 * ser-unix.c (hardwire_raw): Remove reference to
14289 scb->current_timeout.
14290 (wait_for, do_hardwire_readchar, hardwire_readchar): Delete.
14291 (hardwire_ops): Install ser_base_readchar instead of
14292 hardwire_readchar.
14293 * serial.h (struct serial) <current_timeout, timeout_remaining>:
14294 Remove fields.
14295
7503099f
JG
142962017-03-17 Jonah Graham <jonah@kichwacoders.com>
14297
14298 PR gdb/19637
14299 * python/lib/gdb/printer/bound_registers.py: Add support for
14300 Python 3.
14301
7942e96e
AA
143022017-03-16 Andreas Arnez <arnez@linux.vnet.ibm.com>
14303
14304 * dwarf2loc.c (indirect_synthetic_pointer): Get data type of
14305 pointed-to DIE and pass it to dwarf2_evaluate_loc_desc_full.
14306 (dwarf2_evaluate_loc_desc_full): New parameter subobj_type; rename
14307 byte_offset to subobj_byte_offset. Fix the handling of
14308 DWARF_VALUE_STACK on big-endian targets when coming via an
14309 implicit pointer.
14310 (dwarf2_evaluate_loc_desc): Adjust call to
14311 dwarf2_evaluate_loc_desc_full.
14312 * dwarf2loc.h (dwarf2_fetch_die_type_sect_off): New declaration.
14313 * dwarf2read.c (dwarf2_fetch_die_type_sect_off): New function.
14314
ba14f379
YQ
143152017-03-16 Yao Qi <yao.qi@linaro.org>
14316
14317 * arm-tdep.c (thumb_record_misc): Decode CBNZ, CBZ, REV16,
14318 and REVSH instructions.
14319
b121eeb9
YQ
143202017-03-16 Yao Qi <yao.qi@linaro.org>
14321
14322 * arm-tdep.c [GDB_SELF_TEST]: include "selftests.h".
14323 (arm_record_test): Declare.
14324 (_initialize_arm_tdep) [GDB_SELF_TEST]: call register_self_test.
14325 (thumb_record_ld_st_reg_offset): Rewrite the opcode matching to
14326 align with the manual.
14327 (thumb_record_misc): Adjust the code order to align with the
14328 manual.
14329 (thumb2_record_decode_insn_handler): Fix instruction matching.
14330 (instruction_reader_thumb): New class.
14331 (arm_record_test): New function.
14332
728a7913
YQ
143332017-03-16 Yao Qi <yao.qi@linaro.org>
14334
14335 * arm-tdep.c (abstract_memory_reader): New class.
14336 (instruction_reader): New class.
14337 (extract_arm_insn): Add argument 'reader'. Callers updated.
14338 (decode_insn): Likewise.
14339
34b43320
DE
143402017-03-16 Doug Evans <dje@google.com>
14341
a7c0469f
DE
14342 * guile/scm-lazy-string.c (lazy_string_smob): Clarify use of LENGTH
14343 member. Change type of TYPE member to SCM. All uses updated.
14344 (lsscm_make_lazy_string_smob): Add assert.
14345 (lsscm_make_lazy_string): Flag bad length values.
14346 (lsscm_elt_type): New function.
14347 (gdbscm_lazy_string_to_value): Rewrite to use
14348 lsscm_safe_lazy_string_to_value.
14349 (lsscm_safe_lazy_string_to_value): Fix handling of TYPE_CODE_PTR.
14350 * guile/scm-value.c (gdbscm_value_to_lazy_string): Flag bad length
14351 values. Fix TYPE_CODE_PTR. Handle TYPE_CODE_ARRAY. Handle typedefs
14352 in incoming type.
14353 * guile/guile-internal.h (tyscm_scm_to_type): Declare.
14354 * guile/scm-type.c (tyscm_scm_to_type): New function.
14355
143562017-03-15 Doug Evans <dje@google.com>
14357
34b43320
DE
14358 PR python/17728, python/18439, python/18779
14359 * python/py-lazy-string.c (lazy_string_object): Clarify use of LENGTH
14360 member. Change type of TYPE member to PyObject *. All uses updated.
14361 (stpy_convert_to_value): Fix handling of TYPE_CODE_PTR.
14362 (gdbpy_create_lazy_string_object): Flag bad length values.
14363 Handle TYPE_CODE_ARRAY with possibly different user-provided length.
14364 Handle typedefs in incoming type.
14365 (stpy_lazy_string_elt_type): New function.
14366 (gdbpy_extract_lazy_string): Call it.
14367 * python/py-value.c (valpy_lazy_string): Flag bad length values.
14368 Fix handling of TYPE_CODE_PTR. Handle TYPE_CODE_ARRAY. Handle
14369 typedefs in incoming type.
14370
a3a5fecc
DE
143712017-03-16 Doug Evans <dje@google.com>
14372
14373 * guile/guile-internal.h (tyscm_scm_to_type): Declare.
14374 * guile/scm-type.c (tyscm_scm_to_type): New function.
14375
28f1c605
JW
143762017-03-16 Jiong Wang <jiong.wang@arm.com>
14377
14378 * inf-ptrace.c (inf_ptrace_peek_poke): Change the type to
14379 "ULONGEST" for "skip".
14380
87c336f6
AA
143812017-03-14 Andreas Arnez <arnez@linux.vnet.ibm.com>
14382
14383 PR gdb/21220
14384 * inf-ptrace.c (inf_ptrace_xfer_partial): In "case
14385 TARGET_OBJECT_MEMORY", extract the logic for ptrace peek/poke...
14386 (inf_ptrace_peek_poke): ...here. New function. Now also loop
14387 over ptrace peek/poke until end of buffer or error.
14388
cf81cf60
SM
143892017-03-14 Simon Marchi <simon.marchi@ericsson.com>
14390
14391 * parse.c (length_of_subexp): Make static.
14392 * parser-defs.h (length_of_subexp): Remove.
14393
a379284a
AA
143942017-03-14 Andreas Arnez <arnez@linux.vnet.ibm.com>
14395
14396 * linux-nat.c (linux_proc_xfer_partial): Handle write operations
14397 as well.
14398
8a6200ba
PA
143992017-03-14 Pedro Alves <palves@redhat.com>
14400
14401 * cp-name-parser.y (cp_demangled_name_to_comp): Update comment.
14402 (main): Use std::unique_ptr. Remove calls to
14403 cp_demangled_name_parse_free.
14404
f79ec206
SM
144052017-03-13 Simon Marchi <simon.marchi@polymtl.ca>
14406
14407 * alpha-bsd-nat.c (alphabsd_fetch_inferior_registers,
14408 alphabsd_store_inferior_registers): Use regcache->ptid instead
14409 of inferior_ptid.
14410
edb5fb00
SM
144112017-03-13 Simon Marchi <simon.marchi@polymtl.ca>
14412
14413 * aix-thread.c (aix_thread_fetch_registers,
14414 aix_thread_store_registers): Use regcache->ptid instead of
14415 inferior_ptid.
14416
55119686
SM
144172017-03-13 Simon Marchi <simon.marchi@polymtl.ca>
14418
14419 * aarch64-linux-nat.c (fetch_gregs_from_thread,
14420 store_gregs_to_thread, fetch_fpregs_from_thread,
14421 store_fpregs_to_thread): Use regcache->ptid instead of
14422 inferior_ptid.
14423
6a06fbb7
SM
144242017-03-13 Simon Marchi <simon.marchi@polymtl.ca>
14425
14426 * amd64-linux-nat.c (amd64_linux_fetch_inferior_registers,
14427 amd64_linux_fetch_inferior_registers): Use regcache->ptid
14428 instead of inferior_ptid.
14429
c6386875
SM
144302017-03-13 Simon Marchi <simon.marchi@polymtl.ca>
14431
14432 * target.c (target_fetch_registers, target_store_registers): Add
14433 assert.
14434
ddaaf0fb
SM
144352017-03-13 Simon Marchi <simon.marchi@polymtl.ca>
14436
14437 * regcache.h (regcache_get_ptid): New function.
14438 * regcache.c (regcache_get_ptid): New function.
14439
b9da89d1 144402017-03-13 Mark Wielaard <mark@klomp.org>
14441
14442 * cp-name-parser.y (make_empty): Initialize d_printing to zero.
14443
5f4d1085
KS
144442017-03-10 Keith Seitz <keiths@redhat.com>
14445
14446 PR c++/8218
14447 * c-typeprint.c (cp_type_print_method_args): Skip artificial arguments.
14448
c65d6b55
PA
144492017-03-08 Pedro Alves <palves@redhat.com>
14450
14451 PR gdb/18360
14452 * infrun.c (start_step_over, do_target_resume, resume)
14453 (restart_threads): Assert we're not resuming a thread that is
14454 meant to be stopped.
14455 (infrun_thread_stop_requested_callback): Delete.
14456 (infrun_thread_stop_requested): If the thread is internally
14457 stopped, queue a pending stop event and clear the thread's
14458 inline-frame state.
14459 (handle_stop_requested): New function.
14460 (handle_syscall_event, handle_inferior_event_1): Use
14461 handle_stop_requested.
14462 (handle_stop_requested): New function.
14463 (handle_signal_stop): Set the thread's stop_signal here instead of
14464 at caller.
14465 (finish_step_over): Clear step over info unconditionally.
14466 (handle_signal_stop): If the user had interrupted the event
14467 thread, consider the stop a random signal.
14468 (handle_signal_stop) <signal arrived while stepping over
14469 breakpoint>: Don't restart threads here.
14470 (stop_waiting): Don't clear step-over info here.
14471
15c22686
PA
144722017-03-08 Pedro Alves <palves@redhat.com>
14473
14474 PR 21206
14475 * common/gdb_unlinker.h (unlinker::unlinker): Attribute nonnull
14476 goes to argument 2, not 1.
14477
6e5d74e7
PA
144782017-03-08 Pedro Alves <palves@redhat.com>
14479
14480 PR cli/21218
14481 * top.c (gdb_readline_wrapper): Avoid passing NULL to
14482 display_gdb_prompt.
14483 (command_line_input): Add comment.
14484
9753a2f6
PA
144852017-03-08 Pedro Alves <palves@redhat.com>
14486
14487 PR tui/21216
14488 * tui/tui-file.c (tui_file::write): New.
14489 * tui/tui-file.h (tui_file): Override "write".
14490 * tui/tui-io.c (do_tui_putc, update_start_line): New functions,
14491 factored out from ...
14492 (tui_puts): ... here.
14493 (tui_putc): Use them.
14494 (tui_write): New function.
14495 * tui/tui-io.h (tui_write): Declare.
14496
1672e0d9
SDJ
144972017-03-07 Sergio Durigan Junior <sergiodj@redhat.com>
14498
14499 * Makefile.in (SFILES): Replace "environ.c" with
14500 "common/environ.c".
14501 (HFILES_NO_SRCDIR): Likewise, for "environ.h".
14502 * environ.c: Include "common-defs.h" instead of "defs.h. Moved
14503 to...
14504 * common/environ.c: ... here.
14505 * environ.h: Moved to...
14506 * common/environ.h: ... here.
14507
f7bb4e3a
PB
145082017-03-07 Peter Bergner <bergner@vnet.ibm.com>
14509
14510 * gdbarch.sh (pstring_ptr): New static function.
14511 (gdbarch_disassembler_options): Use it.
14512 (gdbarch_verify_disassembler_options): Print valid_disassembler_options,
14513 not valid_disassembler_option->name.
14514 * gdbarch.c: Regenerate.
14515
e45ced6c
PB
145162017-03-07 Peter Bergner <bergner@vnet.ibm.com>
14517
14518 * config/powerpc/ppc64-linux.mh (MH_CFLAGS): Delete.
14519
5f6fd321
PA
145202017-03-07 Pedro Alves <palves@redhat.com>
14521
14522 * tui/tui-regs.c (tui_restore_gdbout): Don't delete gdb_stdout.
14523
6dbb839a 145242017-03-07 Walfred Tedeschi <walfred.tedeschi@intel.com>
4a612d6f
WT
14525
14526 * i387-tdep.h (i387_reset_bnd_regs): Add function definition.
14527 * i387-tdep.c (i387_reset_bnd_regs): Add function implementation.
14528 * i386-tdep.c (i386_push_dummy_call): Call i387_reset_bnd_regs.
6dbb839a 14529 * amd64-tdep.c (amd64_push_dummy_call): Call i387_reset_bnd_regs.
4a612d6f 14530
d274ecf4
SM
145312017-03-06 Simon Marchi <simon.marchi@ericsson.com>
14532
14533 * xtensa-linux-nat.c (fetch_gregs): Remove const.
14534
df97be55
SM
145352017-03-03 Simon Marchi <simon.marchi@ericsson.com>
14536
14537 * remote.c (remote_add_target_side_commands): Use range-based
14538 for loop.
14539
7d45f3df
YQ
145402017-03-03 Yao Qi <yao.qi@linaro.org>
14541
14542 PR gdb/21165
14543 * ada-valprint.c (ada_val_print_ref): Call value_fetch_lazy if
14544 value is lazy.
14545 * valprint.c (common_val_print): Likewise.
14546
65b48a81
PB
145472017-02-28 Peter Bergner <bergner@vnet.ibm.com>
14548
14549 * NEWS: Mention new set/show disassembler-options commands.
14550 * doc/gdb.texinfo: Document new set/show disassembler-options commands.
14551 * disasm.c: Include "arch-utils.h", "gdbcmd.h" and "safe-ctype.h".
14552 (prospective_options): New static variable.
14553 (gdb_disassembler::gdb_disassembler): Initialize
14554 m_di.disassembler_options.
14555 (gdb_buffered_insn_length_init_dis): Initilize di->disassembler_options.
14556 (get_disassembler_options): New function.
14557 (set_disassembler_options): Likewise.
14558 (set_disassembler_options_sfunc): Likewise.
14559 (show_disassembler_options_sfunc): Likewise.
14560 (disassembler_options_completer): Likewise.
14561 (_initialize_disasm): Likewise.
14562 * disasm.h (get_disassembler_options): New prototype.
14563 (set_disassembler_options): Likewise.
14564 * gdbarch.sh (gdbarch_disassembler_options): New variable.
14565 (gdbarch_verify_disassembler_options): Likewise.
14566 * gdbarch.c: Regenerate.
14567 * gdbarch.h: Likewise.
14568 * arm-tdep.c (num_disassembly_options): Delete.
14569 (set_disassembly_style): Likewise.
14570 (arm_disassembler_options): New static variable.
14571 (set_disassembly_style_sfunc): Convert short style name into long
14572 option name. Call set_disassembler_options.
14573 (show_disassembly_style_sfunc): New function.
14574 (arm_gdbarch_init): Call set_gdbarch_disassembler_options and
14575 set_gdbarch_verify_disassembler_options.
14576 (_initialize_arm_tdep): Delete regnames variable and update callers.
14577 (arm_disassembler_options): Initialize.
14578 (disasm_options): New variable.
14579 (num_disassembly_options): Rename from this...
14580 (num_disassembly_styles): ...to this. Compute by scanning through
14581 disasm_options.
14582 (valid_disassembly_styles): Initialize using disasm_options.
14583 Remove calls to parse_arm_disassembler_option, get_arm_regnames and
14584 set_arm_regname_option.
14585 Pass show_disassembly_style_sfunc to the "disassembler" setshow command.
14586 * rs6000-tdep.c (powerpc_disassembler_options): New static variable.
14587 (rs6000_gdbarch_init): Call set_gdbarch_disassembler_options and
14588 set_gdbarch_verify_disassembler_options.
14589 * s390-tdep.c (s390_disassembler_options): New static variable.
14590 (s390_gdbarch_init):all set_gdbarch_disassembler_options and
14591 set_gdbarch_verify_disassembler_options.
14592
d538e36d
SM
145932017-02-27 Simon Marchi <simon.marchi@ericsson.com>
14594
14595 * remote.c (remote_add_target_side_condition): Remove "struct"
14596 keyword from range-based for loop.
14597
83621223
SM
145982017-02-27 Simon Marchi <simon.marchi@ericsson.com>
14599
14600 * remote.c (remote_add_target_side_condition): Use range-based
14601 for loop. Update comment.
14602
2123df0e
YQ
146032017-02-27 Yao Qi <yao.qi@linaro.org>
14604
14605 * f-typeprint.c (f_print_type): Check "varstring" is empty first.
14606
8e368124
AH
146072017-02-26 Alan Hayward <alan.hayward@arm.com>
14608
14609 * regcache.c (regcache_raw_update): New function.
14610 (regcache_raw_read): Move code to regcache_raw_update.
14611 * regcache.h (regcache_raw_update): New declaration.
14612 * remote.c (remote_prepare_to_store): Call regcache_raw_update.
14613
a49dd8dd
JK
146142017-02-26 Jan Kratochvil <jan.kratochvil@redhat.com>
14615
14616 * dwarf2read.c (create_debug_type_hash_table): Initialize
14617 header.signature and header.type_offset_in_tu.
14618
34e4bae9
PA
146192017-02-24 Pedro Alves <palves@redhat.com>
14620
14621 * symtab.c (make_file_symbol_completion_list_1): Use
14622 add_symtab_completions.
14623
b0e4b369
AH
146242017-02-24 Alan Hayward <alan.hayward@arm.com>
14625
14626 * stack.c (frame_info): Use frame_unwind_register_value to avoid buf.
14627
975c21ab
AH
146282017-02-24 Alan Hayward <alan.hayward@arm.com>
14629
14630 * i386-tdep.c (i386_pseudo_register_read_into_value): Use
14631 I386_MAX_REGISTER_SIZE.
14632 (i386_pseudo_register_write): Likewise.
14633 (i386_process_record): Likewise.
14634 * i387-tdep.c (i387_supply_xsave): Likewise.
14635 * m68k-linux-nat.c (fetch_register): Use M68K_MAX_REGISTER_SIZE.
14636 (store_register): Likewise.
14637
14bc53a8
PA
146382017-02-23 Pedro Alves <palves@redhat.com>
14639
14640 * ada-lang.c: Include "common/function-view.h".
14641 (ada_iterate_over_symbols): Adjust to use function_view as
14642 callback type.
14643 (struct add_partial_datum, ada_complete_symbol_matcher): Delete.
14644 (ada_make_symbol_completion_list): Use a lambda.
14645 (ada_exc_search_name_matches): Delete.
14646 (name_matches_regex): New.
14647 (ada_add_global_exceptions): Use a lambda and name_matches_regex.
14648 * compile/compile-c-support.c: Include "common/function-view.h".
14649 (print_one_macro): Change prototype to accept a ui_file pointer.
14650 (write_macro_definitions): Use a lambda.
14651 * dwarf2read.c: Include "common/function-view.h".
14652 (dw2_map_expand_apply, dw2_map_symtabs_matching_filename)
14653 (dw2_expand_symtabs_matching): Adjust to use function_view as
14654 callback type.
14655 * language.h: Include "common/function-view.h".
14656 (struct language_defn) <la_iterate_over_symbols>: Adjust to use
14657 function_view as callback type.
14658 (LA_ITERATE_OVER_SYMBOLS): Remove DATA parameter.
14659 * linespec.c: Include "common/function-view.h".
14660 (collect_info::add_symbol): New method.
14661 (struct symbol_and_data_callback, iterate_inline_only, struct
14662 symbol_matcher_data, iterate_name_matcher): Delete.
14663 (iterate_over_all_matching_symtabs): Adjust to use function_view
14664 as callback type and lambdas.
14665 (iterate_over_file_blocks): Adjust to use function_view as
14666 callback type.
14667 (decode_compound_collector): Now a class with private fields.
14668 (decode_compound_collector::release_symbols): New method.
14669 (collect_one_symbol): Rename to...
14670 (decode_compound_collector::operator()): ... this and adjust.
14671 (lookup_prefix_sym): decode_compound_collector construction bits
14672 move to decode_compound_collector ctor. Pass the
14673 decode_compound_collector object directly as callback. Remove
14674 cleanups and use decode_compound_collector::release_symbols
14675 instead.
14676 (symtab_collector): Now a class with private fields.
14677 (symtab_collector::release_symtabs): New method.
14678 (add_symtabs_to_list): Rename to...
14679 (symtab_collector::operator()): ... this and adjust.
14680 (collect_symtabs_from_filename): symtab_collector construction
14681 bits move to symtab_collector ctor. Pass the symtab_collector
14682 object directly as callback. Remove cleanups and use
14683 symtab_collector::release_symtabs instead.
14684 (collect_symbols): Delete.
14685 (add_matching_symbols_to_info): Use lambdas.
14686 * macrocmd.c (print_macro_callback): Delete.
14687 (info_macro_command): Use a lambda.
14688 (info_macros_command): Pass print_macro_definition as callable
14689 directly.
14690 (print_one_macro): Remove 'ignore' parameter.
14691 (macro_list_command): Adjust.
14692 * macrotab.c (macro_for_each_data::fn): Now a function_view.
14693 (macro_for_each_data::user_data): Delete field.
14694 (foreach_macro): Adjust to call the function_view.
14695 (macro_for_each): Adjust to use function_view as callback type.
14696 (foreach_macro_in_scope): Adjust to call the function_view.
14697 (macro_for_each_in_scope): Adjust to use function_view as callback
14698 type.
14699 * macrotab.h: Include "common/function-view.h".
14700 (macro_callback_fn): Declare a prototype instead of a pointer.
14701 Remove "user_data" parameter.
14702 (macro_for_each, macro_for_each_in_scope): Adjust to use
14703 function_view as callback type.
14704 * psymtab.c (partial_map_expand_apply)
14705 (psym_map_symtabs_matching_filename, recursively_search_psymtabs):
14706 Adjust to use function_view as callback type and to return bool.
14707 (psym_expand_symtabs_matching): Adjust to use function_view as
14708 callback types.
14709 * symfile-debug.c (debug_qf_map_symtabs_matching_filename): Adjust
14710 to use function_view as callback type and to return bool.
14711 (debug_qf_expand_symtabs_matching): Adjust to use function_view as
14712 callback types.
14713 * symfile.c (expand_symtabs_matching): Adjust to use function_view
14714 as callback types.
14715 * symfile.h: Include "common/function-view.h".
14716 (expand_symtabs_file_matcher_ftype)
14717 (expand_symtabs_symbol_matcher_ftype)
14718 (expand_symtabs_exp_notify_ftype): Remove "data" parameter and
14719 return bool.
14720 (quick_symbol_functions::map_symtabs_matching_filename)
14721 (quick_symbol_functions::expand_symtabs_matching): Adjust to use
14722 function_view as callback type and return bool.
14723 (expand_symtabs_matching): Adjust to use function_view as callback
14724 type.
14725 (maintenance_expand_name_matcher)
14726 (maintenance_expand_file_matcher): Delete.
14727 (maintenance_expand_symtabs): Use lambdas.
14728 * symtab.c (iterate_over_some_symtabs): Adjust to use
14729 function_view as callback types and return bool.
14730 (iterate_over_symtabs): Likewise. Use unique_xmalloc_ptr instead
14731 of a cleanup.
14732 (lookup_symtab_callback): Delete.
14733 (lookup_symtab): Use a lambda.
14734 (iterate_over_symbols): Adjust to use function_view as callback
14735 type.
14736 (struct search_symbols_data, search_symbols_file_matches)
14737 (search_symbols_name_matches): Delete.
14738 (search_symbols): Use a pair of lambdas.
14739 (struct add_name_data, add_macro_name, symbol_completion_matcher)
14740 (symtab_expansion_callback): Delete.
14741 (default_make_symbol_completion_list_break_on_1): Use lambdas.
14742 * symtab.h: Include "common/function-view.h".
14743 (iterate_over_some_symtabs): Adjust to use function_view as
14744 callback type and return bool.
14745 (iterate_over_symtabs): Adjust to use function_view as callback
14746 type.
14747 (symbol_found_callback_ftype): Remove 'data' parameter and return
14748 bool.
14749 (iterate_over_symbols): Adjust to use function_view as callback
14750 type.
14751
07e253aa
PA
147522017-02-23 Pedro Alves <palves@redhat.com>
14753
14754 * Makefile.in (SUBDIR_UNITTESTS_SRCS, SUBDIR_UNITTESTS_OBS): New.
14755 (%.o) <unittests/%.c>: New pattern.
14756 * configure.ac ($development): Add $(SUBDIR_UNITTESTS_OBS) to
14757 CONFIG_OBS, and $(SUBDIR_UNITTESTS_SRCS) to CONFIG_SRCS.
14758 * common/function-view.h: New file.
14759 * unittests/function-view-selftests.c: New file.
14760 * configure: Regenerate.
14761
8eaf5320
SM
147622017-02-23 Simon Marchi <simon.marchi@ericsson.com>
14763
14764 * bsd-uthread.c (bsd_uthread_thread_alive): Use ptid instead of
14765 inferior_ptid.
14766 * go32-nat.c (go32_thread_alive): Likewise.
14767
38768751
YQ
147682017-02-23 Yao Qi <yao.qi@linaro.org>
14769
14770 * varobj-iter.h (varobj_iter_delete): Call xfree instead of
14771 delete.
14772
0a8beaba
YQ
147732017-02-23 Yao Qi <yao.qi@linaro.org>
14774
14775 * varobj.c (varobj_clear_saved_item): Use delete instead of
14776 xfree.
14777 (update_dynamic_varobj_children): Likewise.
14778
58fdfd2c
JK
147792017-02-21 Jan Kratochvil <jan.kratochvil@redhat.com>
14780
14781 * dwarf2read.c (dwarf2_record_block_ranges): Add forgotten BASEADDR.
14782
1b90b139
SM
147832017-02-21 Simon Marchi <simon.marchi@ericsson.com>
14784
14785 * common/enum-flags.h (enum_flags::enum_flags): Initialize
14786 m_enum_value to 0 in default constructor.
14787
2039d74e
EBM
147882017-02-21 Edjunior Barbosa Machado <emachado@linux.vnet.ibm.com>
14789
14790 * rs6000-tdep.c (LOAD_AND_RESERVE_MASK): Rename from LWARX_MASK.
14791 (STORE_CONDITIONAL_MASK): Rename from STWCX_MASK.
14792 (LBARX_INSTRUCTION, LHARX_INSTRUCTION, LQARX_INSTRUCTION,
14793 STBCX_INSTRUCTION, STHCX_INSTRUCTION, STQCX_INSTRUCTION): New defines.
14794 (IS_LOAD_AND_RESERVE_INSN, IS_STORE_CONDITIONAL_INSN): New macros.
14795 (ppc_displaced_step_copy_insn): Use IS_LOAD_AND_RESERVE_INSN.
14796 (ppc_deal_with_atomic_sequence): Use IS_LOAD_AND_RESERVE_INSN and
14797 IS_STORE_CONDITIONAL_INSN.
14798
7814882a
JK
147992017-02-21 Jan Kratochvil <jan.kratochvil@redhat.com>
14800
14801 * dwarf2_rnglists_process: Initialize range_beginning and range_end.
14802
0ae60b63
JK
148032017-02-20 Jan Kratochvil <jan.kratochvil@redhat.com>
14804
14805 * NEWS (Changes since GDB 7.12): Add DWARF-5.
14806
0224619f
JK
148072017-02-20 Jan Kratochvil <jan.kratochvil@redhat.com>
14808
14809 * dwarf2read.c (skip_one_die, read_attribute_value)
14810 (dwarf2_const_value_attr, dump_die_shallow)
14811 (dwarf2_get_attr_constant_value, dwarf2_fetch_constant_bytes)
14812 (skip_form_bytes, attr_form_is_constant): Handle DW_FORM_data16.
14813
0af92d60
JK
148142017-02-20 Jan Kratochvil <jan.kratochvil@redhat.com>
14815
14816 * dwarf2read.c (read_file_scope): Rename DW_MACRO_GNU_*.
14817 (dwarf_parse_macro_header): Accept DWARF version 5.
14818 (dwarf_decode_macro_bytes, dwarf_decode_macros): Rename DW_MACRO_GNU_*.
14819
216f72a1
JK
148202017-02-20 Jan Kratochvil <jan.kratochvil@redhat.com>
14821
14822 * block.c (call_site_for_pc): Rename DW_OP_GNU_*, DW_TAG_GNU_* and
14823 DW_AT_GNU_*.
14824 * common/common-exceptions.h (enum errors): Likewise.
14825 * dwarf2-frame.c (class dwarf_expr_executor): Likewise.
14826 * dwarf2expr.c (dwarf_block_to_dwarf_reg)
14827 (dwarf_expr_context::execute_stack_op): Likewise.
14828 * dwarf2expr.h (struct dwarf_expr_context, struct dwarf_expr_piece):
14829 Likewise.
14830 * dwarf2loc.c (dwarf_evaluate_loc_desc::get_base_type)
14831 (dwarf_evaluate_loc_desc::push_dwarf_reg_entry_value)
14832 (show_entry_values_debug, call_site_to_target_addr)
14833 (func_addr_to_tail_call_list, func_verify_no_selftailcall)
14834 (dwarf_expr_reg_to_entry_parameter, dwarf_entry_parameter_to_value)
14835 (entry_data_value_free_closure, value_of_dwarf_reg_entry)
14836 (value_of_dwarf_block_entry, indirect_pieced_value)
14837 (symbol_needs_eval_context::push_dwarf_reg_entry_value):
14838 (disassemble_dwarf_expression): Likewise.
14839 * dwarf2read.c (process_die, inherit_abstract_dies)
14840 (read_call_site_scope): Likewise.
14841 * gdbtypes.h (struct func_type, struct call_site_parameter)
14842 (struct call_site): Likewise.
14843 * stack.c (read_frame_arg): Likewise.
14844 * std-operator.def (OP_VAR_ENTRY_VALUE): Likewise.
14845
43988095
JK
148462017-02-20 Jan Kratochvil <jan.kratochvil@redhat.com>
14847
14848 * defs.h (read_unsigned_leb128): New declaration.
14849 * dwarf2loc.c (decode_debug_loclists_addresses): New function.
14850 (decode_debug_loc_dwo_addresses): Update DEBUG_LOC_* to DW_LLE_*.
14851 (dwarf2_find_location_expression): Call also
14852 decode_debug_loclists_addresses. Handle DWARF-5 ULEB128 length.
14853 * dwarf2loc.h (dwarf2_version): New declaration.
14854 * dwarf2read.c (struct dwarf2_per_objfile): Add loclists, line_str,
14855 rnglists.
14856 (dwarf2_elf_names): Add .debug_loclists, .debug_line_str,
14857 .debug_rnglists.
14858 (struct dwop_section_names): Add loclists_dwo.
14859 (dwop_section_names): Add .debug_loclists.dwo.
14860 (struct comp_unit_head): Add unit_type, signature, type_offset_in_tu.
14861 (struct dwarf2_per_cu_data): Add dwarf_version.
14862 (struct dwo_sections): Add loclists.
14863 (struct attr_abbrev): Add implicit_const.
14864 (read_indirect_line_string): New declaration.
14865 (read_unsigned_leb128): Delete declaration.
14866 (rcuh_kind): New definition.
14867 (read_and_check_comp_unit_head): Change parameter
14868 is_debug_types_section to section_kind.
14869 (dwarf2_locate_sections): Handle loclists, line_str and rnglists.
14870 (read_comp_unit_head): Change parameter abfd to section, add parameter
14871 section_kind. Handle DWARF-5.
14872 (error_check_comp_unit_head): Accept also DWARF version 5.
14873 (read_and_check_comp_unit_head): Change parameter
14874 is_debug_types_section to section_kind.
14875 (read_and_check_type_unit_head): Delete function.
14876 (read_abbrev_offset): Handle DWARF-5.
14877 (create_debug_type_hash_table): Add parameter section_kind. Process
14878 only DW_UT_type. Use signature and type_offset_in_tu from struct
14879 comp_unit_head.
14880 (create_debug_types_hash_table): Update create_debug_type_hash_table
14881 caller.
14882 (create_all_type_units): Call create_debug_type_hash_table.
14883 (read_cutu_die_from_dwo, init_cutu_and_read_dies): Change
14884 read_and_check_type_unit_head caller to read_and_check_comp_unit_head
14885 caller.
14886 (skip_one_die): Handle DW_FORM_implicit_const.
14887 (dwarf2_rnglists_process): New function.
14888 (dwarf2_ranges_process): Call dwarf2_rnglists_process for DWARF-5.
14889 (abbrev_table_read_table): Handle DW_FORM_implicit_const.
14890 (read_attribute_value): Handle DW_FORM_implicit_const,
14891 DW_FORM_line_strp.
14892 (read_attribute): Handle DW_FORM_implicit_const.
14893 (read_indirect_string_at_offset_from): New function from
14894 read_indirect_string_at_offset.
14895 (read_indirect_string_at_offset): Call
14896 read_indirect_string_at_offset_from.
14897 (read_indirect_line_string_at_offset): New function.
14898 (read_indirect_string): New function comment.
14899 (read_indirect_line_string): New function.
14900 (read_unsigned_leb128): Make it global.
14901 (dwarf2_string_attr): Handle DWARF-5.
14902 (add_include_dir_stub, read_formatted_entries): New functions.
14903 (dwarf_decode_line_header, dump_die_shallow, cu_debug_loc_section):
14904 Handle DWARF-5.
14905 (per_cu_header_read_in): Update read_comp_unit_head caller.
14906 (dwarf2_version): New function.
14907 * symfile.h (struct dwarf2_debug_sections): Add loclists, line_str and
14908 rnglists.
14909 * xcoffread.c (dwarf2_xcoff_names): Update struct dwarf2_debug_sections
14910 fields.
14911
22d2f3ab
JK
149122017-02-20 Jan Kratochvil <jan.kratochvil@redhat.com>
14913
14914 * dwarf2read.c (abbrev_table_read_table): Read the data only once.
14915
5f46c5a5
JK
149162017-02-20 Jan Kratochvil <jan.kratochvil@redhat.com>
14917
14918 * dwarf2read.c (dwarf2_ranges_process): New function from
14919 dwarf2_ranges_read.
14920 (dwarf2_ranges_read, dwarf2_record_block_ranges): Use
14921 dwarf2_ranges_process.
14922
78d4d2c5
JK
149232017-02-20 Jan Kratochvil <jan.kratochvil@redhat.com>
14924
14925 * dwarf2read.c (create_debug_type_hash_table): New function from
14926 create_debug_types_hash_table.
14927 (create_debug_types_hash_table): Call create_debug_type_hash_table.
14928 (create_all_type_units, open_and_init_dwo_file): Update
14929 create_debug_types_hash_table callers.
14930
1b076f25
SDJ
149312017-02-20 Sergio Durigan Junior <sergiodj@redhat.com>
14932
14933 PR gdb/16188
14934 * fork-child.c (trace_start_error): Fix thinko. va_end should
14935 refer to 'ap', not 'args'.
14936
0db8980c
SDJ
149372017-02-20 Sergio Durigan Junior <sergiodj@redhat.com>
14938 Pedro Alves <palves@redhat.com>
14939
14940 PR gdb/16188
14941 * darwin-nat.c (darwin_ptrace_me): Check if calls to system
14942 calls succeeded.
14943 * fork-child.c (trace_start_error): New function.
14944 (trace_start_error_with_name): Likewise.
14945 * gnu-nat.c (gnu_ptrace_me): Check if call to PTRACE succeeded.
14946 * inf-ptrace.c (inf_ptrace_me): Likewise.
14947 * inferior.h (trace_start_error): New prototype.
14948 (trace_start_error_with_name): Likewise.
14949
99e8a4f9
SDJ
149502017-02-15 Sergio Durigan Junior <sergiodj@redhat.com>
14951
14952 PR gdb/21164
14953 * psymtab.c (maintenance_print_psymbols): Verify if 'argv' is not
14954 NULL before using it.
14955 * symmisc.c (maintenance_print_symbols): Likewise.
14956 (maintenance_print_msymbols): Likewise.
14957
4e746bb6
TW
149582017-02-14 Tim Wiederhake <tim.wiederhake@intel.com>
14959
14960 * NEWS: Add record Python bindings entry.
14961
149622017-02-14 Tim Wiederhake <tim.wiederhake@intel.com>
14963
14964 * Makefile.in (SUBDIR_PYTHON_OBS): Add py-record-btrace.o,
14965 py-record-full.o.
14966 (SUBDIR_PYTHON_SRCS): Add py-record-btrace.c, py-record-full.c.
14967 * python/py-record-btrace.c, python/py-record-btrace.h,
14968 python/py-record-full.c, python/py-record-full.h: New file.
14969 * python/py-record.c: Add include for py-record-btrace.h and
14970 py-record-full.h.
14971 (recpy_method, recpy_format, recpy_goto, recpy_replay_position,
14972 recpy_instruction_history, recpy_function_call_history, recpy_begin,
14973 recpy_end): Use functions from py-record-btrace.c and py-record-full.c.
14974 * python/python-internal.h (PyInt_FromSsize_t, PyInt_AsSsize_t):
14975 New definition.
14976 (gdbpy_initialize_btrace): New export.
14977 * python/python.c (_initialize_python): Add gdbpy_initialize_btrace.
14978
149792017-02-14 Tim Wiederhake <tim.wiederhake@intel.com>
14980
14981 * Makefile.in (SUBDIR_PYTHON_OBS): Add python/py-record.o.
14982 (SUBDIR_PYTHON_SRCS): Add python/py-record.c.
14983 * python/py-record.c: New file.
14984 * python/python-internal.h (gdbpy_start_recording,
14985 gdbpy_current_recording, gdpy_stop_recording,
14986 gdbpy_initialize_record): New export.
14987 * python/python.c (_initialize_python): Add gdbpy_initialize_record.
14988 (python_GdbMethods): Add gdbpy_start_recording,
14989 gdbpy_current_recording and gdbpy_stop_recording.
14990
149912017-02-14 Tim Wiederhake <tim.wiederhake@intel.com>
14992
14993 * record-btrace.c (record_btrace_record_method): New function.
14994 (init_record_btrace_ops): Initialize to_record_method.
14995 * record-full.c (record_full_record_method): New function.
14996 (init_record_full_ops, init_record_full_core_ops): Add
14997 record_full_record_method.
14998 * record.h (enum record_method): New enum.
14999 * target-debug.h (target_debug_print_enum_record_method: New define.
15000 * target-delegates.c: Regenerate.
15001 * target.c (target_record_method): New function.
15002 * target.h: Include record.h.
15003 (struct target_ops) <to_record_method>: New field.
15004 (target_record_method): New export.
15005
150062017-02-14 Tim Wiederhake <tim.wiederhake@intel.com>
15007
15008 * record.h (record_start, record_stop): New export.
15009 * record.c (record_start, record_stop): New function.
15010
150112017-02-14 Tim Wiederhake <tim.wiederhake@intel.com>
15012
15013 * btrace.c (btrace_fetch): Copy function call segments pointer
15014 into a vector.
15015 (btrace_clear): Clear the vector.
15016 (btrace_find_insn_by_number): Use binary search to find the correct
15017 function call segment.
15018 * btrace.h (brace_fun_p): New typedef.
15019 (struct btrace_thread_info) <functions>: New field.
15020
150212017-02-14 Tim Wiederhake <tim.wiederhake@intel.com>
15022
15023 * record-btrace.c (btrace_ui_out_decode_error): Move most of it ...
15024 * btrace.c (btrace_decode_error): ... here. New function.
15025 * btrace.h (btrace_decode_error): New export.
15026
150272017-02-14 Tim Wiederhake <tim.wiederhake@intel.com>
15028
15029 * btrace.c (ftrace_call_num_insn, btrace_insn_get_error): New function.
15030 (ftrace_new_function, btrace_insn_number, btrace_insn_cmp,
15031 btrace_find_insn_by_number): Remove special case for gaps.
15032 * btrace.h (btrace_insn_get_error): New export.
15033 (btrace_insn_number, btrace_find_insn_by_number): Adjust comment.
15034 * record-btrace.c (btrace_insn_history): Print number for gaps.
15035 (record_btrace_info, record_btrace_goto): Handle gaps.
15036
3f77c769
TT
150372017-02-14 Tom Tromey <tom@tromey.com>
15038
15039 PR python/13598:
15040 * python/python.c (gdbpy_before_prompt_hook): Emit before_prompt
15041 event.
15042 * python/py-evts.c (gdbpy_initialize_py_events): Add
15043 before_prompt registry.
15044 * python/py-events.h (events_object) <before_prompt>: New field.
15045
4c2c7ac6
MM
150462017-02-14 Markus Metzger <markus.t.metzger@intel.com>
15047
15048 * btrace.c (ftrace_new_switch): Preserve up link and flags.
15049
5cf30ebf
LM
150502017-02-13 Luis Machado <lgustavo@codesourcery.com>
15051
15052 * symfile (_initialize_symfile): Add usage text to the load command's
15053 help text.
15054
26a06916
SM
150552017-02-10 Simon Marchi <simon.marchi@ericsson.com>
15056
15057 * utils.c (defaulted_query): Don't query on secondary UIs.
15058
0b145e37
TT
150592017-02-10 Tom Tromey <tom@tromey.com>
15060
15061 * rust-lang.c (rust_get_disr_info): Remove unused variable.
15062
2d8365c4
TT
150632017-02-10 Tom Tromey <tom@tromey.com>
15064
15065 * python/py-value.c (valpy_richcompare_throw): Remove unnecessary
15066 "cleanup" local.
15067 * python/py-type.c (typy_legacy_template_argument): Remove
15068 unnecessary "cleanup" local.
15069
2bb8f231
TT
150702017-02-10 Tom Tromey <tom@tromey.com>
15071
15072 * python/python.c (do_start_initialization): New function, from
15073 _initialize_python.
15074 (_initialize_python): Call do_start_initialization.
15075 * python/py-linetable.c (ltpy_iternext): Use explicit returns, not
15076 goto.
15077
1bdfaf42
TT
150782017-02-10 Tom Tromey <tom@tromey.com>
15079
15080 * python/py-prettyprint.c (pretty_print_one_value): Use
15081 gdbpy_ref.
15082
88b6faea
TT
150832017-02-10 Tom Tromey <tom@tromey.com>
15084
15085 * python/py-cmd.c (cmdpy_destroyer): Use gdbpy_ref.
15086 * python/py-breakpoint.c (gdbpy_breakpoint_deleted): Use
15087 gdbpy_ref.
15088 * python/py-type.c (field_new): Use gdbpy_ref.
15089 * python/py-symtab.c (symtab_and_line_to_sal_object): Use
15090 gdbpy_ref.
15091 * python/py-progspace.c (pspy_new): Use gdbpy_ref.
15092 (py_free_pspace): Likewise.
15093 (pspace_to_pspace_object): Likewise.
15094 * python/py-objfile.c (objfpy_new): Use gdbpy_ref.
15095 (py_free_objfile): Likewise.
15096 (objfile_to_objfile_object): Likewise.
15097 * python/py-inferior.c (delete_thread_object): Use
15098 gdbpy_ref.
15099 (infpy_read_memory): Likewise.
15100 (py_free_inferior): Likewise.
15101 * python/py-evtregistry.c (create_eventregistry_object): Use
15102 gdbpy_ref.
15103 * python/py-event.c (create_event_object): Use gdbpy_ref.
15104
7780f186
TT
151052017-02-10 Tom Tromey <tom@tromey.com>
15106
15107 * python/py-ref.h (gdbpy_ref_policy): Now a template.
15108 (gdbpy_ref): Now a template; allow subclasses of PyObject to be
15109 used.
15110 * python/py-arch.c, python/py-bpevent.c, python/py-breakpoint.c,
15111 python/py-cmd.c, python/py-continueevent.c, python/py-event.c,
15112 python/py-exitedevent.c, python/py-finishbreakpoint.c,
15113 python/py-framefilter.c, python/py-function.c,
15114 python/py-inferior.c, python/py-infevents.c,
15115 python/py-linetable.c, python/py-newobjfileevent.c,
15116 python/py-param.c, python/py-prettyprint.c, python/py-ref.h,
15117 python/py-signalevent.c, python/py-stopevent.c,
15118 python/py-symbol.c, python/py-threadevent.c, python/py-type.c,
15119 python/py-unwind.c, python/py-utils.c, python/py-value.c,
15120 python/py-varobj.c, python/py-xmethods.c, python/python.c,
15121 varobj.c: Change gdbpy_ref to gdbpy_ref<>.
15122
d4b0bb18
TT
151232017-02-10 Tom Tromey <tom@tromey.com>
15124
15125 * ui-out.h (ui_out_emit_type): New class.
15126 (ui_out_emit_tuple, ui_out_emit_list): New typedefs.
15127 * python/py-framefilter.c (py_print_single_arg): Use gdb::optional
15128 and ui_out_emit_tuple.
15129 (enumerate_locals): Likewise.
15130 (py_mi_print_variables, py_print_locals, py_print_args): Use
15131 ui_out_emit_list.
15132 (py_print_frame): Use gdb::optional, ui_out_emit_tuple,
15133 ui_out_emit_list.
15134 * common/gdb_optional.h: New file.
15135
f67f945c
MG
151362017-02-10 Martin Galvan <martingalvan@sourceware.org>
15137
15138 * MAINTAINERS (Write After Approval): Update my e-mail address.
15139
18da0c51
MG
151402017-02-10 Martin Galvan <martingalvan@sourceware.org>
15141
15142 PR gdb/21122
15143 * breakpoint.c (_initialize_breakpoint): Update the help description
15144 of the 'commands' command to indicate that it takes a list argument.
15145
62c14536
SM
151462017-02-09 Simon Marchi <simon.marchi@ericsson.com>
15147
15148 * interps.c (current_interp_set_logging): Remove "return".
15149
ff6fa247
GB
151502017-02-09 Gary Benson <gbenson@redhat.com>
15151
15152 * symtab.c (add_symtab_completions): Prevent NULL pointer
15153 dereference.
15154
a474bd8e
PA
151552017-02-08 Pedro Alves <palves@redhat.com>
15156
15157 * interps.c (interp::interp): Remove reference to quiet_p.
15158 (interp_set): Make static. Remove dead "Switching to" output
15159 code.
15160 (interp_quiet_p, interp_set_quiet): Delete.
15161 (interpreter_exec_cmd): Don't set the interpreter quiet.
15162 * interps.h (interp_quiet_p): Make static.
15163 (class interp) <quiet_p>: Remove field
15164
3d7b173c
JG
151652017-02-08 Jerome Guitton <guitton@adacore.com>
15166
604c4576
JG
15167 * cli/cli-decode.c (find_command_name_length): Make it extern.
15168 * cli/cli-decode.h (find_command_name_length): Declare.
15169 * cli/cli-script.c (command_name_equals, line_first_arg):
15170 New functions.
15171 (process_next_line): Use cli-decode to parse command names.
15172 (build_command_line): Make args a constant pointer.
15173
151742017-02-08 Jerome Guitton <guitton@adacore.com>
6dbb839a 15175
3d7b173c
JG
15176 * cli-decode.c (lookup_cmd_1, lookup_cmd_composition):
15177 Remove case-insensitive search.
15178
1291063d
JM
151792017-02-07 Jose E. Marchesi <jose.marchesi@oracle.com>
15180
15181 * sparc-tdep.c (sparc32_gdbarch_init): Do not place a + operator
15182 at the end of the line. Avoids an ARI warning.
15183
20b477a7
LM
151842017-02-06 Luis Machado <lgustavo@codesourcery.com>
15185
15186 * NEWS: Mention support for record/replay of Intel 64 rdrand and
15187 rdseed instructions.
15188 i386-tdep.c (i386_process_record): Handle Intel 64 rdrand and rseed.
15189
3f7b46f2
IR
151902017-02-06 Ivo Raisr <ivo.raisr@oracle.com>
15191
15192 PR tdep/20936
15193 Provide and use sparc32 and sparc64 target description XML files.
15194 * features/sparc/sparc32-cp0.xml, features/sparc/sparc32-cpu.xml,
15195 features/sparc/sparc32-fpu.xml: New files for sparc 32-bit.
15196 * features/sparc/sparc64-cp0.xml, features/sparc/sparc64-cpu.xml,
15197 features/sparc/sparc64-fpu.xml: New files for sparc 64-bit.
15198 * features/sparc/sparc32-solaris.xml: New file.
15199 * features/sparc/sparc64-solaris.xml: New file.
15200 * features/sparc/sparc32-solaris.c: Generated.
15201 * features/sparc/sparc64-solaris.c: Generated.
15202 * sparc-tdep.h: Account for differences in target descriptions.
15203 * sparc-tdep.c (sparc32_register_name): Use target provided registers.
15204 (sparc32_register_type): Use target provided registers.
15205 (validate_tdesc_registers): New function.
15206 (sparc32_gdbarch_init): Use tdesc_has_registers.
15207 Set pseudoregister functions.
15208 * sparc64-tdep.c (sparc64_register_name): Use target provided registers.
15209 (sparc64_register_type): Use target provided registers.
15210 (sparc64_init_abi): Set pseudoregister functions.
15211
f0fd41c1
TT
152122017-02-03 Tom Tromey <tom@tromey.com>
15213
15214 PR rust/21097:
15215 * rust-lang.c (rust_print_type) <TYPE_CODE_UNION>: Handle enums
15216 with a single member.
15217
d6f9b0fb
PA
152182017-02-03 Pedro Alves <palves@redhat.com>
15219
15220 * cli/cli-interp.c (cli_interp_base::cli_interp_base)
15221 (cli_interp_base::~cli_interp_base): New.
15222 (cli_interp): New struct.
15223 (as_cli_interp): Cast the interp itself to cli_interp.
15224 (cli_interpreter_pre_command_loop): Rename to ...
15225 (cli_interp_base::pre_command_loop): ... this. Remove 'self'
15226 parameter.
15227 (cli_interpreter_init): Rename to ...
15228 (cli_interp::init): ... this. Remove 'self' parameter. Use
15229 boolean. Make extern.
15230 (cli_interpreter_resume): Rename to ...
15231 (cli_interp::resume): ... this. Remove 'data' parameter. Make
15232 extern.
15233 (cli_interpreter_suspend): Rename to ...
15234 (cli_interp::suspend): ... this. Remove 'data' parameter. Make
15235 extern.
15236 (cli_interpreter_exec): Rename to ...
15237 (cli_interp::exec): ... this. Remove 'data' parameter. Make
15238 extern.
15239 (cli_interpreter_supports_command_editing): Rename to ...
15240 (cli_interp_base::supports_command_editing): ... this. Remove
15241 'interp' parameter. Make extern.
15242 (cli_ui_out): Rename to ...
15243 (cli_interp::interp_ui_out): ... this. Remove 'interp' parameter.
15244 Make extern.
15245 (cli_set_logging): Rename to ...
15246 (cli_interp_base::set_logging): ... this. Remove 'interp'
15247 parameter. Make extern.
15248 (cli_interp_procs): Delete.
15249 (cli_interp_factory): Adjust to use "new".
15250 * cli/cli-interp.h: Include "interps.h".
15251 (struct cli_interp_base): New struct.
15252 * interps.c (struct interp): Delete. Fields moved to interps.h.
15253 (interp_new): Delete.
15254 (interp::interp, interp::~interp): New.
15255 (interp_set): Use bool, and return void. Assume the interpreter
15256 has suspend, init and resume methods, and that the all return
15257 void.
15258 (set_top_level_interpreter): interp_set returns void.
15259 (interp_ui_out): Adapt.
15260 (current_interp_set_logging): Adapt.
15261 (interp_data): Delete.
15262 (interp_pre_command_loop, interp_supports_command_editing): Adapt.
15263 (interp_exec): Adapt.
15264 (top_level_interpreter_data): Delete.
15265 * interps.h (interp_init_ftype, interp_resume_ftype)
15266 (interp_suspend_ftype, interp_exec_ftype)
15267 (interp_pre_command_loop_ftype, interp_ui_out_ftype): Delete.
15268 (class interp): New.
15269 (interp_new): Delete.
15270 (interp_set): Now returns void. Use bool.
15271 (interp_data, top_level_interpreter_data): Delete.
15272 * mi/mi-common.h: Include interps.h.
15273 (class mi_interp): Inherit from interp. Define a ctor. Declare
15274 init, resume, suspect, exec, interp_ui_out, set_logging and
15275 pre_command_loop methods.
15276 * mi/mi-interp.c (as_mi_interp): Cast the interp itself.
15277 (mi_interpreter_init): Rename to ...
15278 (mi_interp::init): ... this. Remove the 'interp' parameter, use
15279 bool, return void and make extern. Adjust.
15280 (mi_interpreter_resume): ... Rename to ...
15281 (mi_interp::resume): ... this. Remove the 'data' parameter,
15282 return void and make extern. Adjust.
15283 (mi_interpreter_suspend): ... Rename to ...
15284 (mi_interp::suspend): ... this. Remove the 'data' parameter,
15285 return void and make extern. Adjust.
15286 (mi_interpreter_exec): ... Rename to ...
15287 (mi_interp::exec): ... this. Remove the 'data' parameter and make
15288 extern. Adjust.
15289 (mi_interpreter_pre_command_loop): ... Rename to ...
15290 (mi_interp::pre_command_loop): ... this. Remove the 'self'
15291 parameter and make extern.
15292 (mi_on_normal_stop_1): Adjust.
15293 (mi_ui_out): Rename to ...
15294 (mi_interp::interp_ui_out): ... this. Remove the 'interp'
15295 parameter and make extern. Adjust.
15296 (mi_set_logging): Rename to ...
15297 (mi_interp::set_logging): ... this. Remove the 'interp'
15298 parameter and make extern. Adjust.
15299 (mi_interp_procs): Delete.
15300 (mi_interp_factory): Adjust to use 'new'.
15301 * mi/mi-main.c (mi_cmd_gdb_exit, captured_mi_execute_command)
15302 (mi_print_exception, mi_execute_command, mi_load_progress):
15303 Adjust.
15304 * tui/tui-interp.c (tui_interp): New class.
15305 (as_tui_interp): Return a tui_interp pointer.
15306 (tui_on_normal_stop, tui_on_signal_received)
15307 (tui_on_end_stepping_range, tui_on_signal_exited, tui_on_exited)
15308 (tui_on_no_history, tui_on_user_selected_context_changed): Adjust
15309 to use interp::interp_ui_out.
15310 (tui_init): Rename to ...
15311 (tui_interp::init): ... this. Remove the 'self' parameter, use
15312 bool, return void and make extern. Adjust.
15313 (tui_resume): Rename to ...
15314 (tui_interp::resume): ... this. Remove the 'data' parameter,
15315 return void and make extern. Adjust.
15316 (tui_suspend): Rename to ...
15317 (tui_interp::suspend): ... this. Remove the 'data' parameter,
15318 return void and make extern. Adjust.
15319 (tui_ui_out): Rename to ...
15320 (tui_interp::interp_ui_out): ... this. Remove the 'self'
15321 parameter, and make extern. Adjust.
15322 (tui_exec): Rename to ...
15323 (tui_interp::exec): ... this. Remove the 'data' parameter and
15324 make extern.
15325 (tui_interp_procs): Delete.
15326 (tui_interp_factory): Use "new".
15327
65c40c95
TT
153282017-02-02 Tom Tromey <tom@tromey.com>
15329
15330 * rust-exp.y (ends_raw_string, space_then_number)
15331 (rust_identifier_start_p): Return bool.
15332 * rust-lang.c (rust_tuple_type_p, rust_underscore_fields)
15333 (rust_tuple_struct_type_p, rust_tuple_variant_type_p)
15334 (rust_slice_type_p, rust_range_type_p, rust_u8_type_p)
15335 (rust_chartype_p): Return bool.
15336 (val_print_struct, rust_print_struct_def, rust_print_type):
15337 Update.
15338 * rust-lang.h (rust_tuple_type_p, rust_tuple_struct_type_p):
15339 Return bool.
15340
b50f188d
TT
153412017-02-02 Tom Tromey <tom@tromey.com>
15342
15343 * rust-lang.c: Reindent.
15344
03c85b11
TT
153452017-02-02 Tom Tromey <tom@tromey.com>
15346
15347 * rust-lang.h (rust_crate_for_block): Update.
15348 * rust-lang.c (rust_crate_for_block): Return std::string.
15349 (rust_get_disr_info): Use std:;string, not
15350 gdb::unique_xmalloc_ptr.
15351 * rust-exp.y (crate_name): Update.
15352
9b6da501
PA
153532017-02-02 Pedro Alves <palves@redhat.com>
15354
15355 * disasm-selftests.c (print_one_insn_test): Move the "verbose"
15356 field out of gdb_disassembler_test and make it static.
15357
ec4cb20b
PA
153582017-02-02 Pedro Alves <palves@redhat.com>
15359
15360 * mi/mi-common.h (struct mi_interp): Delete the mi2_interp,
15361 mi1_interp and mi_interp fields.
15362
5be5dbf0
PA
153632017-02-02 Pedro Alves <palves@redhat.com>
15364
616268b6
PA
15365 * cli/cli-interp.c (struct saved_output_files, saved_output):
15366 Moved from cli/cli-logging.c.
15367 (cli_set_logging): New function.
15368 (cli_interp_procs): Install cli_set_logging.
15369 * cli/cli-interp.h (make_logging_output, cli_set_logging):
15370 Declare.
15371 * cli/cli-logging.c (struct saved_output_files, saved_output):
15372 Moved to cli/cli-interp.c.
15373 (pop_output_files): Don't save outputs here.
15374 (make_logging_output): New function.
15375 (handle_redirections): Don't build tee nor save previous outputs
15376 here.
15377 * interps.c (current_interp_set_logging): Change prototype.
15378 Assume there's always a set_logging_proc method installed.
15379 * interps.h (interp_set_logging_ftype): Change prototype.
15380 (current_interp_set_logging): Change prototype and adjust comment.
15381 * mi/mi-interp.c (mi_set_logging): Change protototype. Adjust to
15382 use make_logging_output.
15383 * tui/tui-interp.c (tui_interp_procs): Install cli_set_logging.
153842017-02-02 Pedro Alves <palves@redhat.com>
15385
5be5dbf0
PA
15386 * cli/cli-logging.c (maybe_warn_already_logging): New factored out
15387 from ...
15388 (set_logging_overwrite): ... here.
15389 (logging_no_redirect_file): Delete.
15390 (set_logging_redirect): Don't handle redirection on the fly.
15391 Instead warn that "logging off" / "logging on" is necessary.
15392 (pop_output_files): Delete references to logging_no_redirect_file.
15393 (show_logging_command): Always speak in terms of what will happen
15394 once logging is reenabled.
15395
c99cc448
PA
153962017-02-02 Pedro Alves <palves@redhat.com>
15397
15398 * disasm.h (gdb_pretty_print_disassembler): Tweak intro comment.
15399
8b172ce7
PA
154002017-02-02 Pedro Alves <palves@redhat.com>
15401
15402 * disasm.c (gdb_pretty_print_insn): Rename to ...
15403 (gdb_pretty_print_disassembler::pretty_print_insn): ... this.
15404 Remove gdbarch parameter. Adapt to clear the object's buffers
15405 instead of allocating new buffers, and to print using the object's
15406 gdb_disassembler instead of calling gdb_print_insn.
15407 (dump_insns): Use gdb_pretty_print_disassembler.
15408 * disasm.h (gdb_pretty_print_insn): Delete declaration.
15409 (gdb_pretty_print_disassembler): New class.
15410 * record-btrace.c (btrace_insn_history): Use
15411 gdb_pretty_print_disassembler.
15412
d7e74731
PA
154132017-02-02 Pedro Alves <palves@redhat.com>
15414
15415 * ada-lang.c (type_as_string): Use string_file.
15416 * ada-valprint.c (ada_print_floating): Use string_file.
15417 * ada-varobj.c (ada_varobj_scalar_image)
15418 (ada_varobj_get_value_image): Use string_file.
15419 * aix-thread.c (aix_thread_extra_thread_info): Use string_file.
15420 * arm-tdep.c (_initialize_arm_tdep): Use string_printf.
15421 * breakpoint.c (update_inserted_breakpoint_locations)
15422 (insert_breakpoint_locations, reattach_breakpoints)
15423 (print_breakpoint_location, print_one_detail_ranged_breakpoint)
15424 (print_it_watchpoint): Use string_file.
15425 (save_breakpoints): Use stdio_file.
15426 * c-exp.y (oper): Use string_file.
15427 * cli/cli-logging.c (set_logging_redirect): Use ui_file_up and
15428 tee_file.
15429 (pop_output_files): Use delete.
15430 (handle_redirections): Use stdio_file and tee_file.
15431 * cli/cli-setshow.c (do_show_command): Use string_file.
15432 * compile/compile-c-support.c (c_compute_program): Use
15433 string_file.
15434 * compile/compile-c-symbols.c (generate_vla_size): Take a
15435 'string_file &' instead of a 'ui_file *'.
15436 (generate_c_for_for_one_variable): Take a 'string_file &' instead
15437 of a 'ui_file *'. Use string_file.
15438 (generate_c_for_variable_locations): Take a 'string_file &'
15439 instead of a 'ui_file *'.
15440 * compile/compile-internal.h (generate_c_for_for_one_variable):
15441 Take a 'string_file &' instead of a 'ui_file *'.
15442 * compile/compile-loc2c.c (push, pushf, unary, binary)
15443 (print_label, pushf_register_address, pushf_register)
15444 (do_compile_dwarf_expr_to_c): Take a 'string_file &' instead of a
15445 'ui_file *'. Adjust.
15446 * compile/compile.c (compile_to_object): Use string_file.
15447 * compile/compile.h (compile_dwarf_expr_to_c)
15448 (compile_dwarf_bounds_to_c): Take a 'string_file &' instead of a
15449 'ui_file *'.
15450 * cp-support.c (inspect_type): Use string_file and obstack_copy0.
15451 (replace_typedefs_qualified_name): Use string_file and
15452 obstack_copy0.
15453 * disasm.c (gdb_pretty_print_insn): Use string_file.
15454 (gdb_disassembly): Adjust reference the null_stream global.
15455 (do_ui_file_delete): Delete.
15456 (gdb_insn_length): Use null_stream.
15457 * dummy-frame.c (maintenance_print_dummy_frames): Use stdio_file.
15458 * dwarf2loc.c (dwarf2_compile_property_to_c)
15459 (locexpr_generate_c_location, loclist_generate_c_location): Take a
15460 'string_file &' instead of a 'ui_file *'.
15461 * dwarf2loc.h (dwarf2_compile_property_to_c): Likewise.
15462 * dwarf2read.c (do_ui_file_peek_last): Delete.
15463 (dwarf2_compute_name): Use string_file.
15464 * event-top.c (gdb_setup_readline): Use stdio_file.
15465 * gdbarch.sh (verify_gdbarch): Use string_file.
15466 * gdbtypes.c (safe_parse_type): Use null_stream.
15467 * guile/scm-breakpoint.c (gdbscm_breakpoint_commands): Use
15468 string_file.
15469 * guile/scm-disasm.c (gdbscm_print_insn_from_port): Take a
15470 'string_file *' instead of a 'ui_file *'.
15471 (gdbscm_arch_disassemble): Use string_file.
15472 * guile/scm-frame.c (frscm_print_frame_smob): Use string_file.
15473 * guile/scm-ports.c (class ioscm_file_port): Now a class that
15474 inherits from ui_file.
15475 (ioscm_file_port_delete, ioscm_file_port_rewind)
15476 (ioscm_file_port_put): Delete.
15477 (ioscm_file_port_write): Rename to ...
15478 (ioscm_file_port::write): ... this. Remove file_port_magic
15479 checks.
15480 (ioscm_file_port_new): Delete.
15481 (ioscm_with_output_to_port_worker): Use ioscm_file_port and
15482 ui_file_up.
15483 * guile/scm-type.c (tyscm_type_name): Use string_file.
15484 * guile/scm-value.c (vlscm_print_value_smob, gdbscm_value_print):
15485 Use string_file.
15486 * infcmd.c (print_return_value_1): Use string_file.
15487 * infrun.c (print_target_wait_results): Use string_file.
15488 * language.c (add_language): Use string_file.
15489 * location.c (explicit_to_string_internal): Use string_file.
15490 * main.c (captured_main_1): Use null_file.
15491 * maint.c (maintenance_print_architecture): Use stdio_file.
15492 * mi/mi-cmd-stack.c (list_arg_or_local): Use string_file.
15493 * mi/mi-common.h (struct mi_interp) <out, err, log, targ,
15494 event_channel>: Change type to mi_console_file pointer.
15495 * mi/mi-console.c (mi_console_file_fputs, mi_console_file_flush)
15496 (mi_console_file_delete): Delete.
15497 (struct mi_console_file): Delete.
15498 (mi_console_file_magic): Delete.
15499 (mi_console_file_new): Delete.
15500 (mi_console_file::mi_console_file): New.
15501 (mi_console_file_delete): Delete.
15502 (mi_console_file_fputs): Delete.
15503 (mi_console_file::write): New.
15504 (mi_console_raw_packet): Delete.
15505 (mi_console_file::flush): New.
15506 (mi_console_file_flush): Delete.
15507 (mi_console_set_raw): Rename to ...
15508 (mi_console_file::set_raw): ... this.
15509 * mi/mi-console.h (class mi_console_file): New class.
15510 (mi_console_file_new, mi_console_set_raw): Delete.
15511 * mi/mi-interp.c (mi_interpreter_init): Use mi_console_file.
15512 (mi_set_logging): Use delete and tee_file. Adjust.
15513 * mi/mi-main.c (output_register): Use string_file.
15514 (mi_cmd_data_evaluate_expression): Use string_file.
15515 (mi_cmd_data_read_memory): Use string_file.
15516 (mi_cmd_execute, print_variable_or_computed): Use string_file.
15517 * mi/mi-out.c (mi_ui_out::main_stream): New.
15518 (mi_ui_out::rewind): Use main_stream and
15519 string_file.
15520 (mi_ui_out::put): Use main_stream and string_file.
15521 (mi_ui_out::mi_ui_out): Remove 'stream' parameter.
15522 Allocate a 'string_file' instead.
15523 (mi_out_new): Don't allocate a mem_fileopen stream here.
15524 * mi/mi-out.h (mi_ui_out::mi_ui_out): Remove 'stream' parameter.
15525 (mi_ui_out::main_stream): Declare method.
15526 * printcmd.c (eval_command): Use string_file.
15527 * psymtab.c (maintenance_print_psymbols): Use stdio_file.
15528 * python/py-arch.c (archpy_disassemble): Use string_file.
15529 * python/py-breakpoint.c (bppy_get_commands): Use string_file.
15530 * python/py-frame.c (frapy_str): Use string_file.
15531 * python/py-framefilter.c (py_print_type, py_print_single_arg):
15532 Use string_file.
15533 * python/py-type.c (typy_str): Use string_file.
15534 * python/py-unwind.c (unwind_infopy_str): Use string_file.
15535 * python/py-value.c (valpy_str): Use string_file.
15536 * record-btrace.c (btrace_insn_history): Use string_file.
15537 * regcache.c (regcache_print): Use stdio_file.
15538 * reggroups.c (maintenance_print_reggroups): Use stdio_file.
15539 * remote.c (escape_buffer): Use string_file.
15540 * rust-lang.c (rust_get_disr_info): Use string_file.
15541 * serial.c (serial_open_ops_1): Use stdio_file.
15542 (do_serial_close): Use delete.
15543 * stack.c (print_frame_arg): Use string_file.
15544 (print_frame_args): Remove local mem_fileopen stream, not used.
15545 (print_frame): Use string_file.
15546 * symmisc.c (maintenance_print_symbols): Use stdio_file.
15547 * symtab.h (struct symbol_computed_ops) <generate_c_location>:
15548 Take a 'string_file *' instead of a 'ui_file *'.
15549 * top.c (new_ui): Use stdio_file and stderr_file.
15550 (free_ui): Use delete.
15551 (execute_command_to_string): Use string_file.
15552 (quit_confirm): Use string_file.
15553 * tracepoint.c (collection_list::append_exp): Use string_file.
15554 * tui/tui-disasm.c (tui_disassemble): Use string_file.
15555 * tui/tui-file.c: Don't include "ui-file.h".
15556 (enum streamtype, struct tui_stream): Delete.
15557 (tui_file_new, tui_file_delete, tui_fileopen, tui_sfileopen)
15558 (tui_file_isatty, tui_file_rewind, tui_file_put): Delete.
15559 (tui_file::tui_file): New method.
15560 (tui_file_fputs): Delete.
15561 (tui_file_get_strbuf): Delete.
15562 (tui_file::puts): New method.
15563 (tui_file_adjust_strbuf): Delete.
15564 (tui_file_flush): Delete.
15565 (tui_file::flush): New method.
15566 * tui/tui-file.h: Tweak intro comment.
15567 Include ui-file.h.
15568 (tui_fileopen, tui_sfileopen, tui_file_get_strbuf)
15569 (tui_file_adjust_strbuf): Delete declarations.
15570 (class tui_file): New class.
15571 * tui/tui-io.c (tui_initialize_io): Use tui_file.
15572 * tui/tui-regs.c (tui_restore_gdbout): Use delete.
15573 (tui_register_format): Use string_stream.
15574 * tui/tui-stack.c (tui_make_status_line): Use string_file.
15575 (tui_get_function_from_frame): Use string_file.
15576 * typeprint.c (type_to_string): Use string_file.
15577 * ui-file.c (struct ui_file, ui_file_magic, ui_file_new): Delete.
15578 (null_stream): New global.
15579 (ui_file_delete): Delete.
15580 (ui_file::ui_file): New.
15581 (null_file_isatty): Delete.
15582 (ui_file::~ui_file): New.
15583 (null_file_rewind): Delete.
15584 (ui_file::printf): New.
15585 (null_file_put): Delete.
15586 (null_file_flush): Delete.
15587 (ui_file::putstr): New.
15588 (null_file_write): Delete.
15589 (ui_file::putstrn): New.
15590 (null_file_read): Delete.
15591 (ui_file::putc): New.
15592 (null_file_fputs): Delete.
15593 (null_file_write_async_safe): Delete.
15594 (ui_file::vprintf): New.
15595 (null_file_delete): Delete.
15596 (null_file::write): New.
15597 (null_file_fseek): Delete.
15598 (null_file::puts): New.
15599 (ui_file_data): Delete.
15600 (null_file::write_async_safe): New.
15601 (gdb_flush, ui_file_isatty): Adjust.
15602 (ui_file_put, ui_file_rewind): Delete.
15603 (ui_file_write): Adjust.
15604 (ui_file_write_for_put): Delete.
15605 (ui_file_write_async_safe, ui_file_read): Adjust.
15606 (ui_file_fseek): Delete.
15607 (fputs_unfiltered): Adjust.
15608 (set_ui_file_flush, set_ui_file_isatty, set_ui_file_rewind)
15609 (set_ui_file_put, set_ui_file_write, set_ui_file_write_async_safe)
15610 (set_ui_file_read, set_ui_file_fputs, set_ui_file_fseek)
15611 (set_ui_file_data): Delete.
15612 (string_file::~string_file, string_file::write)
15613 (struct accumulated_ui_file, do_ui_file_xstrdup, ui_file_xstrdup)
15614 (do_ui_file_as_string, ui_file_as_string): Delete.
15615 (do_ui_file_obsavestring, ui_file_obsavestring): Delete.
15616 (struct mem_file): Delete.
15617 (mem_file_new): Delete.
15618 (stdio_file::stdio_file): New.
15619 (mem_file_delete): Delete.
15620 (stdio_file::stdio_file): New.
15621 (mem_fileopen): Delete.
15622 (stdio_file::~stdio_file): New.
15623 (mem_file_rewind): Delete.
15624 (stdio_file::set_stream): New.
15625 (mem_file_put): Delete.
15626 (stdio_file::open): New.
15627 (mem_file_write): Delete.
15628 (stdio_file_magic, struct stdio_file): Delete.
15629 (stdio_file_new, stdio_file_delete, stdio_file_flush): Delete.
15630 (stdio_file::flush): New.
15631 (stdio_file_read): Rename to ...
15632 (stdio_file::read): ... this. Adjust.
15633 (stdio_file_write): Rename to ...
15634 (stdio_file::write): ... this. Adjust.
15635 (stdio_file_write_async_safe): Rename to ...
15636 (stdio_file::write_async_safe) ... this. Adjust.
15637 (stdio_file_fputs): Rename to ...
15638 (stdio_file::puts) ... this. Adjust.
15639 (stdio_file_isatty): Delete.
15640 (stdio_file_fseek): Delete.
15641 (stdio_file::isatty): New.
15642 (stderr_file_write): Rename to ...
15643 (stderr_file::write) ... this. Adjust.
15644 (stderr_file_fputs): Rename to ...
15645 (stderr_file::puts) ... this. Adjust.
15646 (stderr_fileopen, stdio_fileopen, gdb_fopen): Delete.
15647 (stderr_file::stderr_file): New.
15648 (tee_file_magic): Delete.
15649 (struct tee_file): Delete.
15650 (tee_file::tee_file): New.
15651 (tee_file_new): Delete.
15652 (tee_file::~tee_file): New.
15653 (tee_file_delete): Delete.
15654 (tee_file_flush): Rename to ...
15655 (tee_file::flush): ... this. Adjust.
15656 (tee_file_write): Rename to ...
15657 (tee_file::write): ... this. Adjust.
15658 (tee_file::write_async_safe): New.
15659 (tee_file_fputs): Rename to ...
15660 (tee_file::puts): ... this. Adjust.
15661 (tee_file_isatty): Rename to ...
15662 (tee_file::isatty): ... this. Adjust.
15663 * ui-file.h (struct obstack, struct ui_file): Don't
15664 forward-declare.
15665 (ui_file_new, ui_file_flush_ftype, set_ui_file_flush)
15666 (ui_file_write_ftype)
15667 (set_ui_file_write, ui_file_fputs_ftype, set_ui_file_fputs)
15668 (ui_file_write_async_safe_ftype, set_ui_file_write_async_safe)
15669 (ui_file_read_ftype, set_ui_file_read, ui_file_isatty_ftype)
15670 (set_ui_file_isatty, ui_file_rewind_ftype, set_ui_file_rewind)
15671 (ui_file_put_method_ftype, ui_file_put_ftype, set_ui_file_put)
15672 (ui_file_delete_ftype, set_ui_file_data, ui_file_fseek_ftype)
15673 (set_ui_file_fseek): Delete.
15674 (ui_file_data, ui_file_delete, ui_file_rewind)
15675 (struct ui_file): New.
15676 (ui_file_up): New.
15677 (class null_file): New.
15678 (null_stream): Declare.
15679 (ui_file_write_for_put, ui_file_put): Delete.
15680 (ui_file_xstrdup, ui_file_as_string, ui_file_obsavestring):
15681 Delete.
15682 (ui_file_fseek, mem_fileopen, stdio_fileopen, stderr_fileopen)
15683 (gdb_fopen, tee_file_new): Delete.
15684 (struct string_file): New.
15685 (struct stdio_file): New.
15686 (stdio_file_up): New.
15687 (struct stderr_file): New.
15688 (class tee_file): New.
15689 * ui-out.c (ui_out::field_stream): Take a 'string_file &' instead
15690 of a 'ui_file *'. Adjust.
15691 * ui-out.h (class ui_out) <field_stream>: Likewise.
15692 * utils.c (do_ui_file_delete, make_cleanup_ui_file_delete)
15693 (null_stream): Delete.
15694 (error_stream): Take a 'string_file &' instead of a 'ui_file *'.
15695 Adjust.
15696 * utils.h (struct ui_file): Delete forward declaration..
15697 (make_cleanup_ui_file_delete, null_stream): Delete declarations.
15698 (error_stream): Take a 'string_file &' instead of a
15699 'ui_file *'.
15700 * varobj.c (varobj_value_get_print_value): Use string_file.
15701 * xtensa-tdep.c (xtensa_verify_config): Use string_file.
15702 * gdbarch.c: Regenerate.
15703
187808b0
PA
157042017-02-02 Pedro Alves <palves@redhat.com>
15705
15706 * disasm.c (gdb_disassembler::pretty_print_insn): Rename to...
15707 (gdb_pretty_print_insn): ... this. Now a free function. Add back
15708 a 'gdbarch' parameter. Allocate a mem_fileopen stream here.
15709 Adjust to call gdb_print_insn instead of
15710 gdb_disassembler::print_insn.
15711 (dump_insns, do_mixed_source_and_assembly_deprecated)
15712 (do_mixed_source_and_assembly, do_assembly_only): Add back a
15713 'gdbarch' parameter. Remove gdb_disassembler parameter.
15714 (gdb_disassembly): Don't allocate a gdb_disassembler here.
15715 * disasm.h (gdb_disassembler::pretty_print_insn): Delete
15716 declaration.
15717 (gdb_pretty_print_insn): Re-add declaration.
15718 * record-btrace.c (btrace_insn_history): Don't allocate a
15719 gdb_disassembler here. Adjust to call gdb_pretty_print_insn.
15720
7a8eb317
SM
157212017-02-01 Simon Marchi <simon.marchi@polymtl.ca>
15722
15723 * disasm.h (gdb_disassembly): Remove file_string parameter.
15724 * disasm.c (gdb_disassembly): Likewise.
15725 * cli/cli-cmds.c (print_disassembly): Adapt.
15726 * mi/mi-cmd-disas.c (mi_cmd_disassemble): Likewise.
15727 * stack.c (do_gdb_disassembly): Likewise.
15728
7346ef59
AA
157292017-02-01 Andreas Arnez <arnez@linux.vnet.ibm.com>
15730
15731 * dwarf2loc.c (dwarf2_evaluate_loc_desc_full): For
15732 DWARF_VALUE_LITERAL, no longer ignore the offset on big-endian
15733 targets. And if the implicit value is longer than needed, extract
15734 the first bytes instead of the "least significant" ones.
15735
cd4007e4
MM
157362017-02-01 Markus Metzger <markus.t.metzger@intel.com>
15737
15738 * btrace.c (btrace_enable): Do not call btrace_add_pc for
15739 BTRACE_FORMAT_PT or if can_access_registers_ptid returns false.
15740 (btrace_fetch): Assert can_access_registers_ptid.
15741 * record-btrace.c (require_btrace_thread, record_btrace_info): Call
15742 validate_registers_access.
15743
cf77c34e
MM
157442017-02-01 Markus Metzger <markus.t.metzger@intel.com>
15745
15746 * gdbthread.h (can_access_registers_ptid): New.
15747 * thread.c (can_access_registers_ptid): New.
15748
be85ce7d
PA
157492017-02-01 Pedro Alves <palves@redhat.com>
15750
15751 * i386-tdep.c (i386_fast_tracepoint_valid_at): Use gdb_insn_length.
15752
29b0b251
PA
157532017-01-31 Pedro Alves <palves@redhat.com>
15754
15755 * mi/mi-interp.c (mi_breakpoint_created, mi_breakpoint_modified):
15756 Fix typos.
15757
289b5b24
PA
157582017-01-31 Pedro Alves <palves@redhat.com>
15759
15760 * stack.c (print_frame_args): Remove local mem_fileopen stream,
15761 not used.
15762
b47413b4
PA
157632017-01-31 Pedro Alves <palves@redhat.com>
15764
15765 * varobj.c (varobj_value_get_print_value): Remove xstrdup call.
15766
60adb36c
PA
157672017-01-31 Pedro Alves <palves@redhat.com>
15768
15769 * common/scoped_restore.h
15770 (scoped_restore_tmpl::scoped_restore_tmpl): Template on T2, and
15771 change the value's parameter type to T2.
15772 (make_scoped_restore): Likewise.
15773
2735833d
WT
157742017-01-27 Walfred Tedeschi <walfred.tedeschi@intel.com>
15775 Richard Henderson <rth@redhat.com>
15776
15777 * amd64-linux-nat.c (PTRACE_ARCH_PRCTL): New define.
15778 (amd64_linux_fetch_inferior_registers): Add case to fetch FS_BASE
15779 GS_BASE for older kernels.
15780 (amd64_linux_store_inferior_registers): Add case to store FS_BASE
15781 GS_BASE for older kernels.
15782 * amd64-linux-tdep.c (amd64_linux_gregset_reg_offset): Add FS_BASE
15783 and GS_BASE to the offset table.
15784 (amd64_linux_register_reggroup_p): Add FS_BASE and GS_BASE to the
15785 system register group.
15786 * amd64-nat.c (amd64_native_gregset_reg_offset): Implements case
15787 for older kernels.
15788 * amd64-tdep.c (amd64_init_abi): Add segment registers for the
15789 amd64 ABI.
15790 * amd64-tdep.h (amd64_regnum): Add AMD64_FSBASE_REGNUM and
15791 AMD64_GSBASE_REGNUM.
15792 (AMD64_NUM_REGS): Set to AMD64_GSBASE_REGNUM + 1.
15793 * features/Makefile (amd64-linux.dat, amd64-avx-linux.dat)
15794 (amd64-mpx-linux.dat, amd64-avx512-linux.dat, x32-linux.dat)
15795 (x32-avx-linux.dat, x32-avx512-linux.dat): Add
15796 i386/64bit-segments.xml in those rules.
15797 * features/i386/64bit-segments.xml: New file.
15798 * features/i386/amd64-avx-mpx-linux.xml: Add 64bit-segments.xml.
15799 * features/i386/amd64-avx-linux.xml: Add 64bit-segments.xml.
15800 * features/i386/amd64-avx512-linux.xml: Add 64bit-segments.xml.
15801 * features/i386/amd64-mpx-linux.xml: Add 64bit-segments.xml.
15802 * features/i386/x32-avx512-linux.xml: Add 64bit-segments.xml.
15803 * features/i386/x32-avx-linux.xml: Add 64bit-segments.xml.
15804 * features/i386/amd64-linux.xml: Add 64bit-segments.xml.
15805 * features/i386/amd64-avx-linux.c: Regenerated.
15806 * features/i386/amd64-avx-mpx-linux.c: Regenerated.
15807 * features/i386/amd64-avx-mpx.c: Regenerated.
15808 * features/i386/amd64-avx512-linux.c: Regenerated.
15809 * features/i386/amd64-linux.c: Regenerated.
15810 * features/i386/amd64-mpx-linux.c: Regenerated.
15811 * features/i386/i386-avx-mpx-linux.c: Regenerated.
15812 * features/i386/i386-avx-mpx.c: Regenerated.
15813 * features/i386/x32-avx-linux.c: Regenerated.
15814 * features/i386/x32-avx512-linux.c: Regenerated.
15815 * regformats/i386/amd64-avx-linux.dat: Regenerated.
15816 * regformats/i386/amd64-avx-mpx-linux.dat: Regenerated.
15817 * regformats/i386/amd64-avx512-linux.dat: Regenerated.
15818 * regformats/i386/amd64-linux.dat: Regenerated.
15819 * regformats/i386/amd64-mpx-linux.dat: Regenerated.
15820 * regformats/i386/x32-avx-linux.dat: Regenerated.
15821 * regformats/i386/x32-avx512-linux.dat: Regenerated.
15822 * regformats/i386/x32-linux.dat: Regenerated.
15823
8884e97e
WT
158242017-01-27 Walfred Tedeschi <walfred.tedeschi@intel.com>
15825
15826 * amd64-linux-tdep.h (AMD64_LINUX_ORIG_RAX_REGNUM):
15827 Set to AMD64_NUM_REGS.
15828
7005d26a
WT
158292017-01-27 Walfred Tedeschi <walfred.tedeschi@intel.com>
15830
15831 * amd64-nat.c (amd64_native_gregset_reg_offset): Simplify logic
15832 that checks validity of a register number.
15833
4bd2e1b2
KC
158342017-01-27 Kees Cook <keescook@google.com>
15835
15836 * gdb/arm-linux-nat.c (arm_linux_fetch_inferior_registers): Call
15837 fetch_fpregs if target has fpa registers.
15838 (arm_linux_store_inferior_registers): Call store_fpregs if target
15839 has fpa registers.
15840
7cf1de6c
AA
158412017-01-26 Andreas Arnez <arnez@linux.vnet.ibm.com>
15842
15843 * cris-tdep.c (cris_gdbarch_init): Remove check for
15844 info.byte_order and force it to BFD_ENDIAN_LITTLE.
15845
874a1c8c
AT
158462017-01-26 Antoine Tremblay <antoine.tremblay@ericsson.com>
15847
15848 * corelow.c (get_core_register_section): Check for regset
15849 existence before checking for REGSET_VARIABLE_SIZE.
15850
d8b49cf0
YQ
158512017-01-26 Yao Qi <yao.qi@linaro.org>
15852 Pedro Alves <palves@redhat.com>
15853
15854 PR gdb/20939
15855 * disasm.c (gdb_disassembler::dis_asm_memory_error): Don't
15856 call memory_error, save memaddr instead.
15857 (gdb_disassembler::print_insn): If gdbarch_print_insn returns
15858 negative, cal memory_error.
15859 * disasm.h (gdb_disassembler) <m_err_memaddr>: New field.
15860
658ca58c
YQ
158612017-01-26 Yao Qi <yao.qi@linaro.org>
15862
15863 * disasm-selftests.c (memory_error_test): New function.
15864 (_initialize_disasm_selftests): Register memory_error_test.
15865
79843d45
YQ
158662017-01-26 Yao Qi <yao.qi@linaro.org>
15867
15868 * Makefile.in (SFILES): Add disasm-selftests.c and
15869 selftest-arch.c.
15870 (COMMON_OBS): Add disasm-selftests.o and selftest-arch.o.
15871 * disasm-selftests.c: New file.
15872 * selftest-arch.c: New file.
15873 * selftest-arch.h: New file.
15874
8cafda32
YQ
158752017-01-26 Yao Qi <yao.qi@linaro.org>
15876
15877 * mep-tdep.c (mep_gdb_print_insn): Set info->arch
15878 to bfd_arch_mep. Don't return 0 if section is not
15879 found. Call print_insn_mep.
15880
e47ad6c0
YQ
158812017-01-26 Pedro Alves <palves@redhat.com>
15882 Yao Qi <yao.qi@linaro.org>
15883
15884 * arm-tdep.c: Include "disasm.h".
15885 (gdb_print_insn_arm): Update code to get gdbarch.
15886 * disasm.c (dis_asm_read_memory): Change it to
15887 gdb_disassembler::dis_asm_read_memory.
15888 (dis_asm_memory_error): Likewise.
15889 (dis_asm_print_address): Likewise.
15890 (gdb_pretty_print_insn): Change it to
15891 gdb_disassembler::pretty_print_insn.
15892 (dump_insns): Add one argument gdb_disassemlber. All
15893 callers updated.
15894 (do_mixed_source_and_assembly_deprecated): Likewise.
15895 (do_mixed_source_and_assembly): Likewise.
15896 (do_assembly_only): Likewise.
15897 (gdb_disassembler::gdb_disassembler): New.
15898 (gdb_disassembler::print_insn): New.
15899 * disasm.h (class gdb_disassembler): New.
15900 (gdb_pretty_print_insn): Remove declaration.
15901 (gdb_disassemble_info): Likewise.
15902 * guile/scm-disasm.c (class gdbscm_disassembler): New.
15903 (gdbscm_disasm_read_memory_worker): Update.
15904 (gdbscm_disasm_read_memory): Update.
15905 (gdbscm_disasm_memory_error): Remove.
15906 (gdbscm_disasm_print_address): Remove.
15907 (gdbscm_disassembler::gdbscm_disassembler): New.
15908 (gdbscm_print_insn_from_port): Update.
15909 * mips-tdep.c: Include disasm.h.
15910 (gdb_print_insn_mips): Update code to get gdbarch.
15911 * record-btrace.c (btrace_insn_history): Update.
15912 * spu-tdep.c: Include disasm.h.
15913 (struct spu_dis_asm_data): Remove.
15914 (struct spu_dis_asm_info): New.
15915 (spu_dis_asm_print_address): Use spu_dis_asm_info to get
15916 SPU id.
15917 (gdb_print_insn_spu): Cast disassemble_info to
15918 spu_dis_asm_info.
15919
80d75874
YQ
159202017-01-26 Yao Qi <yao.qi@linaro.org>
15921
15922 * disasm.c (do_ui_file_delete): Delete.
15923 (gdb_insn_length): Move code creating stream to ...
15924 * utils.c (null_stream): ... here. New function.
15925 * utils.h (null_stream): Declare.
15926
60685cd0
SM
159272017-01-23 Simon Marchi <simon.marchi@polymtl.ca>
15928
15929 * python/py-inferior.c (find_thread_object): Return directly
15930 from the loop. Remove "found" variable.
15931
eb1cdb62
JB
159322017-01-21 Joel Brobecker <brobecker@adacore.com>
15933
15934 GDB 7.12.1 released.
15935
b1ce6568
SM
159362017-01-20 Simon Marchi <simon.marchi@ericsson.com>
15937
15938 * python/py-function.c (fnpy_call): Reorder declarations to have
15939 the gdbpy_enter object declared first.
15940 * python/py-xmethods.c (gdbpy_get_xmethod_arg_types): Likewise.
15941
6f8b0407
SM
159422017-01-20 Simon Marchi <simon.marchi@ericsson.com>
15943
fec93fb1 15944 PR python/21068
6f8b0407
SM
15945 * python/python-internal.h (PyMem_RawMalloc): Define for
15946 Python < 3.4.
15947 * python/py-gdb-readline.c (gdbpy_readline_wrapper): Use
15948 PyMem_RawMalloc instead of PyMem_Malloc.
15949
78cbbba8
LM
159502017-01-20 Mike Wrighton <mike_wrighton@codesourcery.com>
15951 Luis Machado <lgustavo@codesourcery.com>
15952
15953 * NEWS (New commands): Mention flash-erase.
15954 (New MI commands): Mention target-flash-erase.
15955 * mi/mi-cmds.c (mi_cmd_target_flash_erase): Add target-flash-erase MI
15956 command.
15957 * mi/mi-cmds.h (mi_cmd_target_flash_erase): New declaration.
15958 * mi/mi-main.c (mi_cmd_target_flash_erase): New function.
15959 * target.c (flash_erase_command): New function.
15960 (initialize_targets): Add new flash-erase command.
15961 * target.h (flash_erase_command): New declaration.
15962
2132fe85
JB
159632017-01-20 Joel Brobecker <brobecker@adacore.com>
15964
15965 * nat/linux-ptrace.c: Only include <sys/procfs.h> if
15966 HAVE_SYS_PROCFS_H is defined.
15967
d1dff226
AH
159682017-01-18 Alan Hayward <alan.hayward@arm.com>
15969
15970 * remote.c (struct cached_reg): Change data into a pointer.
15971 * (stop_reply_dtr): Free data pointers before deleting vector.
15972 (process_stop_reply): Likewise.
15973 (remote_parse_stop_reply): Allocate space for data
15974
9890e433
AH
159752017-01-18 Alan Hayward <alan.hayward@arm.com>
15976
15977 * amd64-tdep.c (amd64_pseudo_register_read_value): remove
15978 MAX_REGISTER_SIZE.
15979 (amd64_pseudo_register_read_value): Likewise.
15980 * remote.c (fetch_register_using_p): Remove MAX_REGISTER_SIZE.
15981 (store_register_using_P): Likewise.
15982 * regcache.c (regcache_xfer_part): Likewise.
15983
7a36499a
IR
159842017-01-16 Ivo Raisr <ivo.raisr@oracle.com>
15985
15986 Split real and pseudo registers.
15987 * sparc-tdep.h (SPARC_CORE_REGISTERS): New macro.
15988 (sparc32_pseudo_regnum): New enum.
15989 * sparc64-tdep.h (sparc64_pseudo_regnum): New enum.
15990 * sparc-tdep.c (SPARC32_FPU_REGISTERS): New macro.
15991 (SPARC32_CP0_REGISTERS): New macro.
15992 (sparc32_pseudo_register_name): New function.
15993 (sparc32_register_name): Use sparc32_pseudo_register_name.
15994 (sparc32_pseudo_register_type): New function.
15995 (sparc32_register_type): Use sparc32_pseudo_register_type.
15996 (sparc32_pseudo_register_read, sparc32_pseudo_register_write): Handle
15997 pseudo register numbers.
15998 * sparc64-tdep.c SPARC64_FPU_REGISTERS): New macro.
15999 (SPARC64_CP0_REGISTERS): New macro.
16000 (sparc64_pseudo_register_name): New function.
16001 (sparc64_register_name): Use sparc64_pseudo_register_name.
16002 (sparc64_pseudo_register_type): New function.
16003 (sparc64_register_type): Use sparc64_pseudo_register_type.
16004 (sparc64_pseudo_register_read, sparc64_pseudo_register_write): Handle
16005 pseudo register numbers.
16006 (sparc64_store_floating_fields, sparc64_extract_floating_fields,
16007 sparc64_store_arguments): Handle pseudo register numbers.
16008
6f8976bf
YQ
160092017-01-13 Yao Qi <yao.qi@linaro.org>
16010
16011 * remote.c (REMOTE_DEBUG_MAX_CHAR): New macro.
16012 (putpkt_binary): Print only REMOTE_DEBUG_MAX_CHAR chars in debug
16013 output.
16014 (getpkt_or_notif_sane_1): Likewise.
16015
e4241ace
YQ
160162017-01-13 Yao Qi <yao.qi@linaro.org>
16017
16018 * Makefile.in (checker-headers): Use CXX and CXX_DIALET instead
16019 of CC. Pass "-x c++-header" instead of "-x c".
16020
3015c064
SM
160212017-01-12 Simon Marchi <simon.marchi@ericsson.com>
16022
16023 * remote.c (remote_can_async_p): Update comment.
16024
fde1b17d
SM
160252017-01-12 Simon Marchi <simon.marchi@ericsson.com>
16026
16027 * linux-nat.c (linux_nat_can_async_p): Update comment.
16028
ca1ca08b
SM
160292017-01-12 Simon Marchi <simon.marchi@ericsson.com>
16030
16031 * serial.c (serial_open): Forget about "pc" and "lpt" serial interface.
16032
4ad2da73
SM
160332017-01-11 Simon Marchi <simon.marchi@ericsson.com>
16034
16035 * cli/cli-decode.c (lookup_cmd_1): Fix typo in comment.
16036
c8b23b3f
TT
160372017-01-10 Tom Tromey <tom@tromey.com>
16038
16039 * python/py-type.c (typy_legacy_template_argument): Update.
16040 * cp-support.h (struct demangle_parse_info) (demangle_parse_info,
16041 ~demangle_parse_info): Declare new members.
16042 (cp_demangled_name_to_comp): Return unique_ptr.
16043 (cp_demangled_name_parse_free)
16044 (make_cleanup_cp_demangled_name_parse_free)
16045 (cp_new_demangle_parse_info): Remove.
16046 * cp-support.c (do_demangled_name_parse_free_cleanup)
16047 (make_cleanup_cp_demangled_name_parse_free): Remove.
16048 (inspect_type, cp_canonicalize_string_full)
16049 (cp_canonicalize_string): Update.
16050 (mangled_name_to_comp): Change return type.
16051 (cp_class_name_from_physname, method_name_from_physname)
16052 (cp_func_name, cp_remove_params): Update.
16053 * cp-name-parser.y (demangle_parse_info): New constructor, from
16054 cp_new_demangle_parse_info.
16055 (~demangle_parse_info): New destructor, from
16056 cp_demangled_name_parse_free.
16057 (cp_merge_demangle_parse_infos): Update.
16058 (cp_demangled_name_to_comp): Change return type.
16059
1ac32117
TT
160602017-01-10 Tom Tromey <tom@tromey.com>
16061
16062 * top.c (prevent_dont_repeat): Change return type.
16063 * python/python.c (execute_gdb_command): Use std::string.
16064 Update.
16065 * guile/guile.c (gdbscm_execute_gdb_command): Update.
16066 * command.h (prevent_dont_repeat): Change return type.
16067 * breakpoint.c (bpstat_do_actions_1): Update.
16068
0cf08227
TT
160692017-01-10 Tom Tromey <tom@tromey.com>
16070
16071 * value.h (scoped_value_mark::~scoped_value_mark): Call
16072 free_to_mark.
16073 (scoped_value_mark::free_to_mark): New method.
16074 * dwarf2loc.c (dwarf2_evaluate_loc_desc_full): Use
16075 scoped_value_mark.
16076
eb115069
TT
160772017-01-10 Tom Tromey <tom@tromey.com>
16078
16079 * python/py-value.c (valpy_dereference, valpy_referenced_value)
16080 (valpy_reference_value, valpy_const_value, valpy_get_address)
16081 (valpy_get_dynamic_type, valpy_lazy_string, valpy_do_cast)
16082 (valpy_getitem, valpy_call, valpy_binop_throw, valpy_negative)
16083 (valpy_absolute, valpy_richcompare_throw): Use scoped_value_mark.
16084 * dwarf2loc.c (dwarf2_loc_desc_get_symbol_read_needs): Use
16085 scoped_value_mark.
16086 * dwarf2-frame.c (execute_stack_op): Use scoped_value_mark.
16087 * value.h (scoped_value_mark): New class.
16088
906768f9
TT
160892017-01-10 Tom Tromey <tom@tromey.com>
16090
16091 * dwarf2read.c (dwarf2_build_psymtabs): Use psymtab_discarder.
16092 * psympriv.h (make_cleanup_discard_psymtabs): Don't declare.
16093 * psymtab.c (discard_psymtabs_upto): Remove.
16094 (make_cleanup_discard_psymtabs): Remove.
16095 (struct psymtab_state): Remove.
16096
bef155c3
TT
160972017-01-10 Tom Tromey <tom@tromey.com>
16098
16099 * record-full.c (record_full_save_cleanups): Remove.
16100 (record_full_save): Use gdb::unlinker.
16101 * gcore.c (do_bfd_delete_cleanup): Remove.
16102 (gcore_command): Use gdb::unlinker, unique_xmalloc_ptr. Remove
16103 cleanups.
16104 * dwarf2read.c (unlink_if_set): Remove.
16105 (write_psymtabs_to_index): Use gdb::unlinker.
16106 * common/gdb_unlinker.h: New file.
16107
192b62ce
TT
161082017-01-10 Tom Tromey <tom@tromey.com>
16109
16110 * windows-tdep.c (windows_xfer_shared_library): Update.
16111 * windows-nat.c (windows_make_so): Update.
16112 * utils.h (make_cleanup_bfd_unref): Remove.
16113 * utils.c (do_bfd_close_cleanup, make_cleanup_bfd_unref): Remove.
16114 * symfile.h (symfile_bfd_open)
16115 (find_separate_debug_file_in_section): Return gdb_bfd_ref_ptr.
16116 * symfile.c (read_symbols, symbol_file_add)
16117 (separate_debug_file_exists): Update.
16118 (symfile_bfd_open): Return gdb_bfd_ref_ptr.
16119 (generic_load, reread_symbols): Update.
16120 * symfile-mem.c (symbol_file_add_from_memory): Update.
16121 * spu-linux-nat.c (spu_bfd_open): Return gdb_bfd_ref_ptr.
16122 (spu_symbol_file_add_from_memory): Update.
16123 * solist.h (struct target_so_ops) <bfd_open>: Return
16124 gdb_bfd_ref_ptr.
16125 (solib_bfd_fopen, solib_bfd_open): Return gdb_bfd_ref_ptr.
16126 * solib.c (solib_bfd_fopen, solib_bfd_open): Return
16127 gdb_bfd_ref_ptr.
16128 (solib_map_sections, reload_shared_libraries_1): Update.
16129 * solib-svr4.c (enable_break): Update.
16130 * solib-spu.c (spu_bfd_fopen): Return gdb_bfd_ref_ptr.
16131 * solib-frv.c (enable_break2): Update.
16132 * solib-dsbt.c (enable_break): Update.
16133 * solib-darwin.c (gdb_bfd_mach_o_fat_extract): Return
16134 gdb_bfd_ref_ptr.
16135 (darwin_solib_get_all_image_info_addr_at_init): Update.
16136 (darwin_bfd_open): Return gdb_bfd_ref_ptr.
16137 * solib-aix.c (solib_aix_bfd_open): Return gdb_bfd_ref_ptr.
16138 * record-full.c (record_full_save): Update.
16139 * python/py-objfile.c (objfpy_add_separate_debug_file): Update.
16140 * procfs.c (insert_dbx_link_bpt_in_file): Update.
16141 * minidebug.c (find_separate_debug_file_in_section): Return
16142 gdb_bfd_ref_ptr.
16143 * machoread.c (macho_add_oso_symfile): Change abfd to
16144 gdb_bfd_ref_ptr.
16145 (macho_symfile_read_all_oso): Update.
16146 (macho_check_dsym): Return gdb_bfd_ref_ptr.
16147 (macho_symfile_read): Update.
16148 * jit.c (bfd_open_from_target_memory): Return gdb_bfd_ref_ptr.
16149 (jit_bfd_try_read_symtab): Update.
16150 * gdb_bfd.h (gdb_bfd_open, gdb_bfd_fopen, gdb_bfd_openr)
16151 (gdb_bfd_openw, gdb_bfd_openr_iovec)
16152 (gdb_bfd_openr_next_archived_file, gdb_bfd_fdopenr): Return
16153 gdb_bfd_ref_ptr.
16154 (gdb_bfd_ref_policy): New struct.
16155 (gdb_bfd_ref_ptr): New typedef.
16156 * gdb_bfd.c (gdb_bfd_open, gdb_bfd_fopen, gdb_bfd_openr)
16157 (gdb_bfd_openw, gdb_bfd_openr_iovec)
16158 (gdb_bfd_openr_next_archived_file, gdb_bfd_fdopenr): Return
16159 gdb_bfd_ref_ptr.
16160 * gcore.h (create_gcore_bfd): Return gdb_bfd_ref_ptr.
16161 * gcore.c (create_gcore_bfd): Return gdb_bfd_ref_ptr.
16162 (gcore_command): Update.
16163 * exec.c (exec_file_attach): Update.
16164 * elfread.c (elf_symfile_read): Update.
16165 * dwarf2read.c (dwarf2_get_dwz_file): Update.
16166 (try_open_dwop_file, open_dwo_file): Return gdb_bfd_ref_ptr.
16167 (open_and_init_dwo_file): Update.
16168 (open_dwp_file): Return gdb_bfd_ref_ptr.
16169 (open_and_init_dwp_file): Update.
16170 * corelow.c (core_open): Update.
16171 * compile/compile-object-load.c (compile_object_load): Update.
16172 * common/gdb_ref_ptr.h (ref_ptr::operator->): New operator.
16173 * coffread.c (coff_symfile_read): Update.
16174 * cli/cli-dump.c (bfd_openr_or_error, bfd_openw_or_error): Return
16175 gdb_bfd_ref_ptr. Rename.
16176 (dump_bfd_file, restore_command): Update.
16177 * build-id.h (build_id_to_debug_bfd): Return gdb_bfd_ref_ptr.
16178 * build-id.c (build_id_to_debug_bfd): Return gdb_bfd_ref_ptr.
16179 (find_separate_debug_file_by_buildid): Update.
16180
50315b21
TT
161812017-01-10 Tom Tromey <tom@tromey.com>
16182
16183 * common/gdb_ref_ptr.h: New file.
16184 * python/py-ref.h (struct gdbpy_ref_policy): New.
16185 (gdbpy_ref): Now a typedef.
16186
fc4007c9
TT
161872017-01-10 Tom Tromey <tom@tromey.com>
16188
16189 * utils.h (make_cleanup_htab_delete): Don't declare.
16190 * utils.c (do_htab_delete_cleanup, make_cleanup_htab_delete):
16191 Remove.
16192 * linespec.c (decode_compound_collector): Add constructor,
16193 destructor.
16194 (lookup_prefix_sym): Remove cleanup.
16195 (symtab_collector): Add constructor, destructor.
16196 (collect_symtabs_from_filename): Remove cleanup.
16197 * disasm.c (do_mixed_source_and_assembly): Use htab_up.
16198 * compile/compile-c-symbols.c (generate_c_for_variable_locations):
16199 Use htab_up.
16200 * gnu-v3-abi.c (gnuv3_print_vtable): Use htab_up.
16201 * dwarf2read.c (dw2_expand_symtabs_matching)
16202 (dw2_map_symbol_filenames, dwarf_decode_macros)
16203 (write_psymtabs_to_index): Use htab_up.
16204 * dwarf2loc.c (func_verify_no_selftailcall)
16205 (call_site_find_chain_1, func_verify_no_selftailcall)
16206 (chain_candidate, call_site_find_chain_1): Use std::unordered_set,
16207 std::vector, gdb::unique_xmalloc_ptr.
16208 (call_sitep): Remove typedef.
16209 (dwarf2_locexpr_baton_eval): Remove unused variable.
16210
8dbcee67
TT
162112017-01-10 Tom Tromey <tom@tromey.com>
16212
16213 * python/python-internal.h (make_cleanup_py_decref)
16214 (make_cleanup_py_xdecref): Don't declare.
16215 * python/py-utils.c (py_decref, make_cleanup_py_decref)
16216 (py_xdecref, make_cleanup_py_xdecref): Remove.
16217
13df46cc
TT
162182017-01-10 Tom Tromey <tom@tromey.com>
16219
16220 * python/py-framefilter.c (py_mi_print_variables): Use gdbpy_ref.
16221 (py_print_locals, enumerate_locals, py_print_args): Use gdbpy_ref.
16222
06fc9bf7
TT
162232017-01-10 Tom Tromey <tom@tromey.com>
16224
16225 * python/py-framefilter.c (enumerate_args): Use gdbpy_ref.
16226
830a4934
TT
162272017-01-10 Tom Tromey <tom@tromey.com>
16228
16229 * python/py-utils.c (unicode_to_encoded_string)
16230 (python_string_to_target_string)
16231 (python_string_to_target_python_string)
16232 (python_string_to_host_string, gdbpy_obj_to_string)
16233 (get_addr_from_python): Use gdbpy_ref.
16234
4586d543
TT
162352017-01-10 Tom Tromey <tom@tromey.com>
16236
16237 * python/py-unwind.c (pyuw_object_attribute_to_pointer): Use
16238 gdbpy_ref.
16239
59876f8f
TT
162402017-01-10 Tom Tromey <tom@tromey.com>
16241
16242 * python/python.c (eval_python_command, gdbpy_decode_line)
16243 (gdbpy_run_events, gdbpy_start_type_printers)
16244 (gdbpy_apply_type_printers): Use gdbpy_ref.
16245
97d83487
TT
162462017-01-10 Tom Tromey <tom@tromey.com>
16247
16248 * python/py-param.c (get_doc_string, compute_enum_values): Use
16249 gdbpy_ref.
16250
9205649a
TT
162512017-01-10 Tom Tromey <tom@tromey.com>
16252
16253 * python/py-inferior.c (find_thread_object, build_inferior_list):
16254 Use gdbpy_ref.
16255
74c49d45
TT
162562017-01-10 Tom Tromey <tom@tromey.com>
16257
16258 * python/py-framefilter.c (py_print_frame): Use gdbpy_ref.
16259
16361ffb
TT
162602017-01-10 Tom Tromey <tom@tromey.com>
16261
16262 * python/py-finishbreakpoint.c (bpfinishpy_out_of_scope): Use
16263 gdbpy_ref.
16264
905f2cca
TT
162652017-01-10 Tom Tromey <tom@tromey.com>
16266
16267 * python/py-cmd.c (cmdpy_completer_helper): Use gdbpy_ref. Remove
16268 extra incref.
16269 (cmdpy_completer_handle_brkchars, cmdpy_completer, cmdpy_init):
16270 Use gdbpy_ref.
16271
64081434
TT
162722017-01-10 Tom Tromey <tom@tromey.com>
16273
16274 * python/py-breakpoint.c (gdbpy_breakpoint_cond_says_stop): Use
16275 gdbpy_ref.
16276
59e9e831
TT
162772017-01-10 Tom Tromey <tom@tromey.com>
16278
16279 * python/py-arch.c (archpy_disassemble): Use gdbpy_ref. Don't
16280 decref results of PyArg_ParseTupleAndKeywords.
16281
9de10f6d
TT
162822017-01-10 Tom Tromey <tom@tromey.com>
16283
16284 * python/python.c (python_run_simple_file): Use
16285 unique_xmalloc_ptr, gdbpy_ref.
16286
2bd5759d
TT
162872017-01-10 Tom Tromey <tom@tromey.com>
16288
16289 * python/py-prettyprint.c (print_stack_unless_memory_error)
16290 (print_string_repr, print_children): Use gdbpy_ref.
16291 (dummy_python_frame): New class.
16292 (dummy_python_frame::dummy_python_frame): Rename from
16293 push_dummy_python_frame.
16294 (py_restore_tstate): Remove.
16295
3b4e0e01
TT
162962017-01-10 Tom Tromey <tom@tromey.com>
16297
16298 * python/py-framefilter.c (py_print_frame): Use gdbpy_ref.
16299
17a22718
TT
163002017-01-10 Tom Tromey <tom@tromey.com>
16301
16302 * python/python.c (ensure_python_env, restore_python_env):
16303 Remove.
16304 * python/python-internal.h (ensure_python_env): Don't declare.
16305 * varobj.h (varobj_ensure_python_env): Don't declare.
16306 * varobj.c (varobj_ensure_python_env): Remove.
16307
68cdc557
TT
163082017-01-10 Tom Tromey <tom@tromey.com>
16309
16310 * varobj.c (varobj_value_get_print_value): Use
16311 gdbpy_enter_varobj.
16312
1eba6383
TT
163132017-01-10 Tom Tromey <tom@tromey.com>
16314
16315 * python/py-prettyprint.c (print_string_repr, print_children):
16316 Update.
16317 * python/py-lazy-string.c (gdbpy_extract_lazy_string): Change type
16318 of "encoding".
16319 * varobj.c (varobj_value_get_print_value): Update.
16320 * python/python-internal.h (gdbpy_extract_lazy_string): Update.
16321
bde7b3e3
TT
163222017-01-10 Tom Tromey <tom@tromey.com>
16323
16324 * varobj.c (varobj_get_display_hint)
16325 (dynamic_varobj_has_child_method, install_new_value_visualizer)
16326 (varobj_set_visualizer, free_variable): Use
16327 gdbpy_enter_varobj.
16328
a7785f8c
TT
163292017-01-10 Tom Tromey <tom@tromey.com>
16330
16331 * python/python.c (python_command): Use gdbpy_enter, gdbpy_ref.
16332 (do_finish_initialization): New function. Use gdbpy_ref.
16333 (gdbpy_finish_initialization): Use gdbpy_enter. Call
16334 do_finish_initialization.
16335
2865bfce
TT
163362017-01-10 Tom Tromey <tom@tromey.com>
16337
16338 * python/py-param.c (get_set_value, get_show_value): Use
16339 gdbpy_enter, gdbpy_ref.
16340
0e9dcc75
TT
163412017-01-10 Tom Tromey <tom@tromey.com>
16342
16343 * python/py-function.c (fnpy_call): Use gdbpy_enter, gdbpy_ref.
16344
12a5cedd
TT
163452017-01-10 Tom Tromey <tom@tromey.com>
16346
16347 * python/py-cmd.c (cmdpy_function): Use gdbpy_enter, gdbpy_ref.
16348
788f2586
TT
163492017-01-10 Tom Tromey <tom@tromey.com>
16350
16351 * python/py-varobj.c (py_varobj_iter_dtor, py_varobj_iter_next):
16352 Use gdbpy_enter_varobj.
16353
6cd67bea
TT
163542017-01-10 Tom Tromey <tom@tromey.com>
16355
16356 * varobj.c (gdbpy_enter_varobj): New constructor.
16357 * python/python-internal.h (gdbpy_enter_varobj): New class.
16358 * python/py-varobj.c (py_varobj_get_iterator): Use
16359 gdbpy_enter_varobj.
16360
14b122bf
TT
163612017-01-10 Tom Tromey <tom@tromey.com>
16362
16363 * python/py-xmethods.c (gdbpy_get_xmethod_result_type): Use
16364 gdbpy_enter, gdbpy_ref, unique_xmalloc_ptr.
16365 (gdbpy_invoke_xmethod): Use gdbpy_ref, gdbpy_enter.
16366 (gdbpy_get_xmethod_arg_types): Use gdbpy_ref,
16367 unique_xmalloc_ptr.
16368 (gdbpy_get_xmethod_arg_types): Use gdbpy_ref, gdbpy_enter.
16369
bf1ca3b9
TT
163702017-01-10 Tom Tromey <tom@tromey.com>
16371
16372 * python/py-xmethods.c (invoke_match_method): Use
16373 gdbpy_ref.
16374
572a5524
TT
163752017-01-10 Tom Tromey <tom@tromey.com>
16376
16377 * python/py-xmethods.c (gdbpy_get_matching_xmethod_workers): use
16378 gdbpy_enter, gdbpy_ref.
16379
396a78b6
TT
163802017-01-10 Tom Tromey <tom@tromey.com>
16381
16382 * python/python.c (python_interactive_command): Use gdbpy_enter.
16383
a88b13c7
TT
163842017-01-10 Tom Tromey <tom@tromey.com>
16385
16386 * python/python.c (gdbpy_before_prompt_hook): Use gdbpy_enter,
16387 gdbpy_ref.
16388
e9f0c363
TT
163892017-01-10 Tom Tromey <tom@tromey.com>
16390
16391 * python/py-prettyprint.c (gdbpy_apply_val_pretty_printer): Use
16392 gdbpy_enter, gdbpy_ref, unique_xmalloc_ptr.
16393
6349f452
TT
163942017-01-10 Tom Tromey <tom@tromey.com>
16395
16396 * utils.h (htab_deleter): New struct.
16397 (htab_up): New typedef.
16398 * python/py-framefilter.c (gdbpy_apply_frame_filter): Use
16399 gdbpy_enter, gdbpy_ref, htab_up.
16400
c0171de6
TT
164012017-01-10 Tom Tromey <tom@tromey.com>
16402
16403 * python/py-unwind.c (pending_frame_invalidate): Remove.
16404 (pyuw_sniffer): Use gdbpy_enter and gdbpy_ref.
16405
f18e226f
TT
164062017-01-10 Tom Tromey <tom@tromey.com>
16407
16408 * python/py-xmethods.c (gdbpy_free_xmethod_worker_data)
16409 (gdbpy_clone_xmethod_worker_data): Use gdbpy_enter.
16410
c57af3f1
TT
164112017-01-10 Tom Tromey <tom@tromey.com>
16412
16413 * python/py-type.c (save_objfile_types): Use gdbpy_enter.
16414
60e600ec
TT
164152017-01-10 Tom Tromey <tom@tromey.com>
16416
16417 * python/python.c (gdbpy_eval_from_control_command)
16418 (gdbpy_source_script, gdbpy_run_events)
16419 (gdbpy_source_objfile_script, gdbpy_execute_objfile_script)
16420 (gdbpy_free_type_printers, gdbpy_finish_initialization): Use
16421 gdbpy_enter.
16422
bf7da5b0
TT
164232017-01-10 Tom Tromey <tom@tromey.com>
16424
16425 * python/py-progspace.c (py_free_pspace): Use gdbpy_enter.
16426
2d38bced
TT
164272017-01-10 Tom Tromey <tom@tromey.com>
16428
16429 * python/py-objfile.c (py_free_objfile): Use gdbpy_enter.
16430
07bc7329
TT
164312017-01-10 Tom Tromey <tom@tromey.com>
16432
16433 * python/py-inferior.c (python_on_normal_stop, python_on_resume)
16434 (python_on_inferior_call_pre, python_on_inferior_call_post)
16435 (python_on_memory_change, python_on_register_change)
16436 (python_inferior_exit, python_new_objfile, add_thread_object)
16437 (delete_thread_object, py_free_inferior): Use gdbpy_enter.
16438
6e7c365e
TT
164392017-01-10 Tom Tromey <tom@tromey.com>
16440
16441 * python/py-finishbreakpoint.c (bpfinishpy_handle_stop)
16442 (bpfinishpy_handle_exit): Use gdbpy_enter.
16443
6ba0cd40
TT
164442017-01-10 Tom Tromey <tom@tromey.com>
16445
16446 * python/py-cmd.c (cmdpy_destroyer)
16447 (cmdpy_completer_handle_brkchars, cmdpy_completer): Use
16448 gdbpy_enter.
16449
de2dc875
TT
164502017-01-10 Tom Tromey <tom@tromey.com>
16451
16452 * python/py-breakpoint.c (gdbpy_breakpoint_cond_says_stop): Use
16453 gdbpy_enter.
16454 (gdbpy_breakpoint_has_cond): Likewise.
16455
4ecee2c4
TT
164562017-01-10 Tom Tromey <tom@tromey.com>
16457
16458 * python/python.c (gdbpy_enter): New constructor.
16459 (~gdbpy_enter): New destructor.
16460 (restore_python_env, ensure_python_env): Rewrite.
16461 * python/python-internal.h (gdbpy_enter): New class.
16462
37fce74f
TT
164632017-01-10 Tom Tromey <tom@tromey.com>
16464
16465 * python/py-symbol.c (gdbpy_lookup_symbol): Use gdbpy_ref.
16466
53a0cca3
TT
164672017-01-10 Tom Tromey <tom@tromey.com>
16468
16469 * python/py-value.c (value_has_field, get_field_flag)
16470 (get_field_type, valpy_getitem, convert_value_from_python): Use
16471 gdbpy_ref.
16472
ff3724f5
TT
164732017-01-10 Tom Tromey <tom@tromey.com>
16474
16475 * python/python.c (gdbpy_progspaces, gdbpy_objfiles): Use
16476 gdbpy_ref.
16477
0700aea5
TT
164782017-01-10 Tom Tromey <tom@tromey.com>
16479
16480 * python/py-prettyprint.c (search_pp_list)
16481 (find_pretty_printer_from_objfiles)
16482 (find_pretty_printer_from_progspace)
16483 (find_pretty_printer_from_gdb, find_pretty_printer)
16484 (gdbpy_get_display_hint, gdbpy_get_varobj_pretty_printer): Use
16485 gdbpy_ref.
16486
1bb44c9f
TT
164872017-01-10 Tom Tromey <tom@tromey.com>
16488
16489 * python/py-param.c (call_doc_function): Use gdbpy_ref.
16490
87ce03fd
TT
164912017-01-10 Tom Tromey <tom@tromey.com>
16492
16493 * python/py-linetable.c (build_line_table_tuple_from_pcs)
16494 (ltpy_get_all_source_lines): Use gdbpy_ref.
16495
ee0a3fb8
TT
164962017-01-10 Tom Tromey <tom@tromey.com>
16497
16498 * python/py-framefilter.c (extract_sym, extract_value)
16499 (get_py_iter_from_func, bootstrap_python_frame_filters): Use
16500 gdbpy_ref.
16501
bf2a52fa
TT
165022017-01-10 Tom Tromey <tom@tromey.com>
16503
16504 * python/py-breakpoint.c (gdbpy_breakpoints): Use gdbpy_ref.
16505
f59fe7f8
TT
165062017-01-10 Tom Tromey <tom@tromey.com>
16507
16508 * python/py-inferior.c (gdbpy_inferiors): Use gdbpy_ref.
16509
80bd970a
TT
165102017-01-10 Tom Tromey <tom@tromey.com>
16511
16512 * python/py-function.c (convert_values_to_python, fnpy_init): Use
16513 gdbpy_ref.
16514
d1b3de2e
TT
165152017-01-10 Tom Tromey <tom@tromey.com>
16516
16517 * python/py-cmd.c (gdbpy_string_to_argv): Use gdbpy_ref.
16518
3bb43384
TT
165192017-01-10 Tom Tromey <tom@tromey.com>
16520
16521 * python/py-type.c (convert_field, make_fielditem, typy_fields)
16522 (typy_range): Use gdbpy_ref.
16523
abf5651e
TT
165242017-01-10 Tom Tromey <tom@tromey.com>
16525
16526 * python/py-threadevent.c (create_thread_event_object): Use
16527 gdbpy_ref.
16528 * python/py-stopevent.c (create_stop_event_object): Simplify.
16529 (emit_stop_event): Use gdbpy_ref.
16530 * python/py-signalevent.c (create_signal_event_object): Use
16531 gdbpy_ref.
16532 * python/py-newobjfileevent.c (create_new_objfile_event_object)
16533 (emit_new_objfile_event, create_clear_objfiles_event_object)
16534 (emit_clear_objfiles_event): Use gdbpy_ref.
16535 * python/py-infevents.c (create_inferior_call_event_object)
16536 (create_register_changed_event_object)
16537 (create_memory_changed_event_object, emit_inferior_call_event)
16538 (emit_memory_changed_event, emit_register_changed_event): Use
16539 gdbpy_ref.
16540 * python/py-exitedevent.c (create_exited_event_object)
16541 (emit_exited_event): Use gdbpy_ref.
16542 * python/py-event.h (evpy_emit_event): Remove
16543 CPYCHECKER_STEALS_REFERENCE_TO_ARG annotation.
16544 * python/py-event.c (evpy_emit_event): Use gdbpy_ref.
16545 * python/py-continueevent.c (emit_continue_event): Use
16546 gdbpy_ref.
16547 * python/py-breakpoint.c (gdbpy_breakpoint_created)
16548 (gdbpy_breakpoint_deleted, gdbpy_breakpoint_modified): Use
16549 gdbpy_ref.
16550 * python/py-bpevent.c (create_breakpoint_event_object): Use
16551 gdbpy_ref.
16552
a68ff33e
TT
165532017-01-10 Tom Tromey <tom@tromey.com>
16554
16555 * python/py-ref.h: New file.
16556
7becfd03
SM
165572017-01-10 Simon Marchi <simon.marchi@ericsson.com>
16558
16559 * cli-out.c (cli_ui_out::do_redirect): Change return type to
16560 void.
16561 * cli-out.h (cli_ui_out::do_redirect): Likewise.
16562 * mi/mi-out.c (mi_ui_out::do_redirect): Likewise.
16563 * mi/mi-out.h (mi_ui_out::do_redirect): Likewise.
16564 * ui-out.c (ui_out::redirect): Likewise.
16565 * ui-out.h (ui_out::redirect, ui_out::do_redirect): Likewise.
16566 * cli/cli-logging.c (set_logging_redirect): Update call site of
16567 ui_out::redirect.
16568 (handle_redirections): Likewise.
16569 * scm-ports.c (ioscm_with_output_to_port_worker): Likewise.
16570 * top.c (execute_command_to_string): Likewise.
16571 * utils.c (do_ui_out_redirect_pop): Likewise.
16572
df294654
SM
165732017-01-10 Simon Marchi <simon.marchi@ericsson.com>
16574
16575 * stack.c (_initialize_stack): Update "frame" command help message.
16576
f5e6296e
IB
165772017-01-08 Iain Buclaw <ibuclaw@gdcproject.org>
16578
16579 * d-exp.y (CastExpression): Emit UNOP_CAST_TYPE.
16580
0e2d6fa6
YQ
165812017-01-06 Yao Qi <yao.qi@linaro.org>
16582
16583 * x86-linux-nat.h: Include gdb_proc_service.h.
16584
44d6d3f9
YQ
165852017-01-06 Yao Qi <yao.qi@linaro.org>
16586
16587 * ser-base.h: Include serial.h.
16588
656731fe
YQ
165892017-01-06 Yao Qi <yao.qi@linaro.org>
16590
16591 * ppc-linux-tdep.h: Include ppc-tdep.h.
16592
1ca8f924
YQ
165932017-01-06 Yao Qi <yao.qi@linaro.org>
16594
16595 * nat/amd64-linux-siginfo.h: Include signal.h.
16596
bc3008c4
YQ
165972017-01-06 Yao Qi <yao.qi@linaro.org>
16598
16599 * nat/aarch64-linux-hw-point.h: Include break-common.h.
16600
66c80d03
YQ
166012017-01-06 Yao Qi <yao.qi@linaro.org>
16602
16603 * mi/mi-parse.h: Include mi-cmds.h.
16604
051d2dda
YQ
166052017-01-06 Yao Qi <yao.qi@linaro.org>
16606
16607 * inf-loop.c: Don't include "target.h".
16608 * inf-loop.h: Include it here.
16609
8018d34f
YQ
166102017-01-06 Yao Qi <yao.qi@linaro.org>
16611
16612 * dfp.h: Include "dboulest.h" and "expression.h".
16613
c0b8369c
YQ
166142017-01-06 Yao Qi <yao.qi@linaro.org>
16615
16616 * ax-gdb.h: Include "ax.h".
16617
ad5cba2a
YQ
166182017-01-06 Yao Qi <yao.qi@linaro.org>
16619
16620 * Makefile.in (HFILES_NO_SRCDIR): Replace gdb_ptrace.h
16621 with nat/gdb_ptrace.h.
16622
1c33cd7f
YQ
166232017-01-05 Yao Qi <yao.qi@linaro.org>
16624
16625 * mips-fbsd-tdep.c (mips_fbsd_sigframe_init): Move && to
16626 new line.
16627 (mips64_fbsd_sigframe_init): Likewise.
16628
c988ac1d
JB
166292017-01-04 John Baldwin <jhb@FreeBSD.org>
16630
16631 * mips-fbsd-tdep.c (_initialize_mips_fbsd_tdep): Use
16632 GDB_OSABI_FREEBSD instead of GDB_OSABI_FREEBSD_ELF.
16633
b268007c
JB
166342017-01-04 John Baldwin <jhb@FreeBSD.org>
16635
16636 * Makefile.in (ALLDEPFILES): Add mips-fbsd-nat.c.
16637 * NEWS: Mention new FreeBSD/mips native configuration.
16638 * config/mips/fbsd.mh: New file.
16639 * configure.host: Add mips*-*-freebsd*.
16640 * mips-fbsd-nat.c: New file.
16641
387360da
JB
166422017-01-04 John Baldwin <jhb@FreeBSD.org>
16643
16644 * Makefile.in (ALL_TARGET_OBS): Add mips-fbsd-tdep.o.
16645 (ALLDEPFILES): Add mips-fbsd-tdep.c.
16646 * NEWS: Mention new FreeBSD/mips target.
16647 * configure.tgt: Add mips*-*-freebsd*.
16648 * mips-fbsd-tdep.c: New file.
16649 * mips-fbsd-tdep.h: New file.
16650
2aaaf250
YQ
166512017-01-04 Yao Qi <yao.qi@linaro.org>
16652
16653 * dwarf2loc.c (write_pieced_value): Don't use VALUE_FRAME_ID (to),
16654 use c->frame_id when the piece location is DWARF_VALUE_REGISTER.
16655
61baf725
JB
166562017-01-01 Joel Brobecker <brobecker@adacore.com>
16657
6dbb839a 16658 Update copyright year range in all GDB files.
61baf725 16659
c113e7ff 166602017-01-01 Joel Brobecker <brobecker@adacore.com>
ce0db137 16661
c113e7ff 16662 * config/djgpp/fnchange.lst: Add entry for gdb/ChangeLog-2016.
ce0db137 16663
c113e7ff 16664For older changes see ChangeLog-2016.
c906108c
SS
16665\f
16666Local Variables:
16667mode: change-log
16668left-margin: 8
16669fill-column: 74
16670version-control: never
57da7796 16671coding: utf-8
c906108c 16672End: