Fix clang warnings about copy elision
[binutils-gdb.git] / gdb / ChangeLog
1 2017-11-23 Simon Marchi <simon.marchi@ericsson.com>
2
3 * osdata.c (osdata_end_column, get_osdata): Remove std::move.
4
5 2017-11-23 Simon Marchi <simon.marchi@ericsson.com>
6
7 * varobj.c (struct varobj_dynamic) <children_requested_>: Rename
8 back to...
9 <children_requested>: ... this.
10 (varobj_get_num_children, varobj_update): Adjust.
11
12 2017-11-23 Simon Marchi <simon.marchi@ericsson.com>
13
14 * ada-varobj.c (ada_value_is_changeable_p): Change int to bool where applicable.
15 (ada_value_has_mutated): Likewise.
16 * c-varobj.c (varobj_is_anonymous_child): Likewise.
17 (c_is_path_expr_parent): Likewise.
18 * mi/mi-cmd-var.c (varobj_update_one): Likewise.
19 (mi_cmd_var_set_frozen): Likewise.
20 (mi_cmd_var_update_iter): Likewise.
21 (mi_cmd_var_update): Likewise.
22 * varobj.c (pretty_printing): Likewise.
23 (varobj_enable_pretty_printing): Likewise.
24 (struct varobj_root) <floating, is_valid>: Likewise.
25 (struct varobj_dynamic) <children_requested>: Likewise.
26 (delete_variable): Likewise.
27 (delete_variable_1): Likewise.
28 (install_variable): Likewise.
29 (update_type_if_necessary): Likewise.
30 (install_new_value): Likewise.
31 (value_of_root): Likewise.
32 (is_root_p): Likewise.
33 (varobj_create): Likewise.
34 (varobj_delete): Likewise.
35 (varobj_has_more): Likewise.
36 (varobj_set_frozen): Likewise.
37 (varobj_get_frozen): Likewise.
38 (install_dynamic_child): Likewise.
39 (dynamic_varobj_has_child_method): Likewise.
40 (update_dynamic_varobj_children): Likewise.
41 (varobj_get_num_children): Likewise.
42 (varobj_list_children): Likewise.
43 (is_path_expr_parent): Likewise.
44 (varobj_default_is_path_expr_parent): Likewise.
45 (varobj_is_dynamic_p): Likewise.
46 (varobj_set_value): Likewise.
47 (varobj_value_has_mutated): Likewise.
48 (varobj_update): Likewise.
49 (check_scope): Likewise.
50 (value_of_root_1): Likewise.
51 (varobj_value_get_print_value): Likewise.
52 (varobj_editable_p): Likewise.
53 (varobj_value_is_changeable_p): Likewise.
54 (varobj_floating_p): Likewise.
55 (varobj_default_value_is_changeable_p): Likewise.
56 (varobj_invalidate_iter): Likewise.
57 * varobj.h (struct varobj_update_result) <type_changed,
58 children_changed, changed, value_installed>: Likewise.
59 (struct varobj) <updated, frozen, not_fetched>: Likewise.
60 (struct lang_varobj_ops) <value_is_changeable_p,
61 value_has_mutated, is_path_expr_parent>: Likewise.
62 (varobj_delete): Likewise.
63 (varobj_set_frozen): Likewise.
64 (varobj_get_frozen): Likewise.
65 (varobj_set_value): Likewise.
66 (varobj_update): Likewise.
67 (varobj_editable_p): Likewise.
68 (varobj_floating_p): Likewise.
69 (varobj_has_more): Likewise.
70 (varobj_is_dynamic_p): Likewise.
71 (varobj_default_value_is_changeable_p): Likewise.
72 (varobj_value_is_changeable_p): Likewise.
73 (varobj_is_anonymous_child): Likewise.
74 (varobj_default_is_path_expr_parent): Likewise.
75
76 2017-11-22 Sergio Durigan Junior <sergiodj@redhat.com>
77
78 * dtrace-probe.c (struct probe_ops dtrace_probe_ops): Delete.
79 (struct dtrace_probe_arg) <dtrace_probe_arg>: New constructor.
80 <type_str>: Convert to 'std::string'.
81 <expr>: Convert to 'expression_up'.
82 (dtrace_probe_arg_s): Delete type and VEC.
83 (dtrace_probe_enabler_s): Likewise.
84 (struct dtrace_probe): Replace by...
85 (class dtrace_static_probe_ops): ...this and...
86 (class dtrace_probe): ...this.
87 (dtrace_probe_is_linespec): Rename to...
88 (dtrace_static_probe_ops::is_linespec): ...this. Adjust code
89 to reflect change.
90 (dtrace_process_dof_probe): Use 'std::vector' instead of VEC.
91 Adjust code. Create new instance of 'dtrace_probe'.
92 (dtrace_build_arg_exprs): Rename to...
93 (dtrace_probe::build_arg_exprs): ...this. Adjust code to
94 reflect change.
95 (dtrace_get_probes): Rename to...
96 (dtrace_static_probe_ops::get_probes): ...this. Adjust code
97 to reflect change.
98 (dtrace_get_arg): Rename to...
99 (dtrace_probe::get_arg_by_number): ...this. Adjust code to
100 reflect change.
101 (dtrace_probe_is_enabled): Rename to...
102 (dtrace_probe::is_enabled): ...this. Adjust code to reflect
103 change.
104 (dtrace_get_probe_address): Rename to...
105 (dtrace_probe::get_relocated_address): ...this. Adjust code
106 to reflect change.
107 (dtrace_get_probe_argument_count): Rename to...
108 (dtrace_probe::get_argument_count): ...this. Adjust code to
109 reflect change.
110 (dtrace_can_evaluate_probe_arguments): Rename to...
111 (dtrace_probe::can_evaluate_arguments): ...this. Adjust code
112 to reflect change.
113 (dtrace_evaluate_probe_argument): Rename to...
114 (dtrace_probe::evaluate_argument): ...this. Adjust code to
115 reflect change.
116 (dtrace_compile_to_ax): Rename to...
117 (dtrace_probe::compile_to_ax): ...this. Adjust code to
118 reflect change.
119 (dtrace_probe_destroy): Delete.
120 (dtrace_type_name): Rename to...
121 (dtrace_static_probe_ops::type_name): ...this. Adjust code to
122 reflect change.
123 (dtrace_probe::get_static_ops): New method.
124 (dtrace_gen_info_probes_table_header): Rename to...
125 (dtrace_static_probe_ops::gen_info_probes_table_header):
126 ...this. Adjust code to reflect change.
127 (dtrace_gen_info_probes_table_values): Rename to...
128 (dtrace_probe::gen_info_probes_table_values): ...this. Adjust
129 code to reflect change.
130 (dtrace_enable_probe): Rename to...
131 (dtrace_probe::enable_probe): ...this. Adjust code to reflect
132 change.
133 (dtrace_disable_probe): Rename to...
134 (dtrace_probe::disable_probe): ...this. Adjust code to reflect
135 change.
136 (struct probe_ops dtrace_probe_ops): Delete.
137 (info_probes_dtrace_command): Call 'info_probes_for_spops'
138 instead of 'info_probes_for_ops'.
139 (_initialize_dtrace_probe): Use 'all_static_probe_ops' instead
140 of 'all_probe_ops'.
141
142 2017-11-22 Sergio Durigan Junior <sergiodj@redhat.com>
143 Simon Marchi <simark@simark.ca>
144
145 * stap-probe.c (struct probe_ops stap_probe_ops): Delete
146 variable.
147 (struct stap_probe_arg) <stap_probe_arg>: New constructor.
148 <aexpr>: Change type to 'expression_up'.
149 (stap_probe_arg_s): Delete type and VEC.
150 (struct stap_probe): Delete. Replace by...
151 (class stap_static_probe_ops): ...this and...
152 (class stap_probe): ...this. Rename variables to add 'm_'
153 prefix. Do not use 'union' for arguments anymore.
154 (stap_get_expected_argument_type): Receive probe name instead
155 of 'struct stap_probe'. Adjust code.
156 (stap_parse_probe_arguments): Rename to...
157 (stap_probe::parse_arguments): ...this. Adjust code to
158 reflect change.
159 (stap_get_probe_address): Rename to...
160 (stap_probe::get_relocated_address): ...this. Adjust code
161 to reflect change.
162 (stap_get_probe_argument_count): Rename to...
163 (stap_probe::get_argument_count): ...this. Adjust code
164 to reflect change.
165 (stap_get_arg): Rename to...
166 (stap_probe::get_arg_by_number'): ...this. Adjust code to
167 reflect change.
168 (can_evaluate_probe_arguments): Rename to...
169 (stap_probe::can_evaluate_arguments): ...this. Adjust code
170 to reflect change.
171 (stap_evaluate_probe_argument): Rename to...
172 (stap_probe::evaluate_argument): ...this. Adjust code
173 to reflect change.
174 (stap_compile_to_ax): Rename to...
175 (stap_probe::compile_to_ax): ...this. Adjust code to
176 reflect change.
177 (stap_probe_destroy): Delete.
178 (stap_modify_semaphore): Adjust comment.
179 (stap_set_semaphore): Rename to...
180 (stap_probe::set_semaphore): ...this. Adjust code to reflect
181 change.
182 (stap_clear_semaphore): Rename to...
183 (stap_probe::clear_semaphore): ...this. Adjust code to
184 reflect change.
185 (stap_probe::get_static_ops): New method.
186 (handle_stap_probe): Adjust code to create instance of
187 'stap_probe'.
188 (stap_get_probes): Rename to...
189 (stap_static_probe_ops::get_probes): ...this. Adjust code to
190 reflect change.
191 (stap_probe_is_linespec): Rename to...
192 (stap_static_probe_ops::is_linespec): ...this. Adjust code to
193 reflect change.
194 (stap_type_name): Rename to...
195 (stap_static_probe_ops::type_name): ...this. Adjust code to
196 reflect change.
197 (stap_gen_info_probes_table_header): Rename to...
198 (stap_static_probe_ops::gen_info_probes_table_header):
199 ...this. Adjust code to reflect change.
200 (stap_gen_info_probes_table_values): Rename to...
201 (stap_probe::gen_info_probes_table_values): ...this. Adjust
202 code to reflect change.
203 (struct probe_ops stap_probe_ops): Delete.
204 (info_probes_stap_command): Use 'info_probes_for_spops'
205 instead of 'info_probes_for_ops'.
206 (_initialize_stap_probe): Use 'all_static_probe_ops' instead
207 of 'all_probe_ops'.
208
209 2017-11-22 Sergio Durigan Junior <sergiodj@redhat.com>
210
211 * break-catch-throw.c (fetch_probe_arguments): Use
212 'probe.prob' instead of 'probe.probe'.
213 * breakpoint.c (create_longjmp_master_breakpoint): Call
214 'can_evaluate_arguments' and 'get_relocated_address' methods
215 from probe.
216 (create_exception_master_breakpoint): Likewise.
217 (add_location_to_breakpoint): Use 'sal->prob' instead of
218 'sal->probe'.
219 (bkpt_probe_insert_location): Call 'set_semaphore' method from
220 probe.
221 (bkpt_probe_remove_location): Likewise, for 'clear_semaphore'.
222 * elfread.c (elf_get_probes): Use 'static_probe_ops' instead
223 of 'probe_ops'.
224 (probe_key_free): Call 'delete' on probe.
225 (check_exception_resume): Use 'probe.prob' instead of
226 'probe.probe'.
227 * location.c (string_to_event_location_basic): Call
228 'probe_linespec_to_static_ops'.
229 * probe.c (class any_static_probe_ops): New class.
230 (any_static_probe_ops any_static_probe_ops): New variable.
231 (parse_probes_in_pspace): Receive 'static_probe_ops' as
232 argument. Adjust code to reflect change.
233 (parse_probes): Use 'static_probe_ops' instead of
234 'probe_ops'. Adjust code to reflect change.
235 (find_probes_in_objfile): Call methods to get name and
236 provider from probe.
237 (find_probe_by_pc): Use 'result.prob' instead of
238 'result.probe'. Call 'get_relocated_address' method from
239 probe.
240 (collect_probes): Adjust comment and argument list to receive
241 'static_probe_ops' instead of 'probe_ops'. Adjust code to
242 reflect change. Call necessary methods from probe.
243 (compare_probes): Call methods to get name and provider from
244 probes.
245 (gen_ui_out_table_header_info): Receive 'static_probe_ops'
246 instead of 'probe_ops'. Use 'std::vector' instead of VEC,
247 adjust code accordingly.
248 (print_ui_out_not_applicables): Likewise.
249 (info_probes_for_ops): Rename to...
250 (info_probes_for_spops): ...this. Receive 'static_probe_ops'
251 as argument instead of 'probe_ops'. Adjust code. Call
252 necessary methods from probe.
253 (info_probes_command): Use 'info_probes_for_spops'.
254 (enable_probes_command): Pass correct argument to
255 'collect_probes'. Call methods from probe.
256 (disable_probes_command): Likewise.
257 (get_probe_address): Move to 'any_static_probe_ops::get_address'.
258 (get_probe_argument_count): Move to
259 'any_static_probe_ops::get_argument_count'.
260 (can_evaluate_probe_arguments): Move to
261 'any_static_probe_ops::can_evaluate_arguments'.
262 (evaluate_probe_argument): Move to
263 'any_static_probe_ops::evaluate_argument'.
264 (probe_safe_evaluate_at_pc): Use 'probe.prob' instead of
265 'probe.probe'.
266 (probe_linespec_to_ops): Rename to...
267 (probe_linespec_to_static_ops): ...this. Adjust code.
268 (probe_any_is_linespec): Rename to...
269 (any_static_probe_ops::is_linespec): ...this.
270 (probe_any_get_probes): Rename to...
271 (any_static_probe_ops::get_probes): ...this.
272 (any_static_probe_ops::type_name): New method.
273 (any_static_probe_ops::gen_info_probes_table_header): New
274 method.
275 (compute_probe_arg): Use 'pc_probe.prob' instead of
276 'pc_probe.probe'. Call methods from probe.
277 (compile_probe_arg): Likewise.
278 (std::vector<const probe_ops *> all_probe_ops): Delete.
279 (std::vector<const static_probe_ops *> all_static_probe_ops):
280 New variable.
281 (_initialize_probe): Use 'all_static_probe_ops' instead of
282 'all_probe_ops'.
283 * probe.h (struct info_probe_column) <field_name>: Delete
284 extraneous newline
285 (info_probe_column_s): Delete type and VEC.
286 (struct probe_ops): Delete. Replace with...
287 (class static_probe_ops): ...this and...
288 (clas probe): ...this.
289 (struct bound_probe) <bound_probe>: Delete extraneous
290 newline. Adjust constructor to receive 'probe' instead of
291 'struct probe'.
292 <probe>: Rename to...
293 <prob>: ...this. Delete extraneous newline.
294 <objfile>: Delete extraneous newline.
295 (register_probe_ops): Delete unused prototype.
296 (info_probes_for_ops): Rename to...
297 (info_probes_for_spops): ...this. Adjust comment.
298 (get_probe_address): Move to 'probe::get_address'.
299 (get_probe_argument_count): Move to
300 'probe::get_argument_count'.
301 (can_evaluate_probe_arguments): Move to
302 'probe::can_evaluate_arguments'.
303 (evaluate_probe_argument): Move to 'probe::evaluate_argument'.
304 * solib-svr4.c (struct svr4_info): Adjust comment.
305 (struct probe_and_action) <probe>: Rename to...
306 <prob>: ...this.
307 (register_solib_event_probe): Receive 'probe' instead of
308 'struct probe' as argument. Use 'prob' instead of 'probe'
309 when applicable.
310 (solib_event_probe_action): Call 'get_argument_count' method
311 from probe. Adjust comment.
312 (svr4_handle_solib_event): Adjust comment. Call
313 'evaluate_argument' method from probe.
314 (svr4_create_probe_breakpoints): Call 'get_relocated_address'
315 from probe.
316 (svr4_create_solib_event_breakpoints): Use 'probe' instead of
317 'struct probe'. Call 'can_evaluate_arguments' from probe.
318 * symfile.h: Forward declare 'class probe' instead of 'struct
319 probe'.
320 * symtab.h: Likewise.
321 (struct symtab_and_line) <probe>: Rename to...
322 <prob>: ...this.
323 * tracepoint.c (start_tracing): Use 'prob' when applicable.
324 Call probe methods.
325 (stop_tracing): Likewise.
326
327 2017-11-22 Joel Brobecker <brobecker@adacore.com>
328
329 * ravenscar-thread.c (ravenscar_inferior_created): Remove
330 trailing newline at end of string in call to warning.
331
332 2017-11-22 Simon Marchi <simon.marchi@polymtl.ca>
333
334 * osdata.h: Include vector isntead of vec.h.
335 (osdata_column_s): Remove typedef.
336 (struct osdata_column): Add constructor.
337 <name, value>: Change type to std::string.
338 (DEF_VEC_O (osdata_column_s)): Remove.
339 (osdata_item_s): Remove typedef.
340 (struct osdata_item) <columns>: Change type to std::vector.
341 (DEF_VEC_O (osdata_item_s)): Remove.
342 (struct osdata): Add constructor.
343 <type>: Change type to std::string.
344 <items>: Change type to std::vector.
345 (osdata_p): Remove typedef.
346 (DEF_VEC_P (osdata_p)): Remove.
347 (osdata_parse): Return a unique_ptr.
348 (osdata_free): Remove.
349 (make_cleanup_osdata_free): Remove.
350 (get_osdata): Return a unique_ptr.
351 (get_osdata_column): Return pointer to std::string, take a
352 reference to osdata_item as parameter.
353 * osdata.c (struct osdata_parsing_data) <osdata>: Change type to
354 unique_ptr.
355 <property_name>: Change type to std::string.
356 (osdata_start_osdata): Allocate osdata with new and adjust.
357 (osdata_start_item): Adjust.
358 (osdata_start_column): Adjust.
359 (osdata_end_column): Adjust.
360 (clear_parsing_data): Remove.
361 (osdata_parse): Return a unique_ptr and adjust, remove cleanup.
362 (osdata_item_clear): Remove.
363 (get_osdata): return a unique_ptr and adjust.
364 (get_osdata_column): Return a pointer to std::string and adjust.
365 (info_osdata): Adjust.
366 * mi/mi-main.c: Include <map>.
367 (free_vector_of_osdata_items): Remove.
368 (list_available_thread_groups): Adjust, use std::map instead of
369 splay tree.
370
371 2017-11-22 Simon Marchi <simon.marchi@ericsson.com>
372
373 * stack.c (iterate_over_block_locals): Add LOC_OPTIMIZED_OUT
374 case in switch.
375
376 2017-11-22 Simon Marchi <simon.marchi@polymtl.ca>
377
378 * varobj.h (DEF_VEC_P (varobj_p)): Remove.
379
380 2017-11-22 Simon Marchi <simon.marchi@polymtl.ca>
381
382 * varobj.h (struct varobj_update_result): Add constructor, add
383 move constructor, disable copy and assign, initialize fields.
384 <newobj>: Change type to std::vector.
385 (varobj_update): Return std::vector.
386 * varobj.c (install_dynamic_child): Change VEC parameters to
387 std::vector and adjust.
388 (update_dynamic_varobj_children): Likewise.
389 (varobj_update): Return std::vector and adjust.
390 * mi/mi-cmd-var.c (varobj_update_one): Adjust to vector changes.
391
392 2017-11-22 Simon Marchi <simon.marchi@polymtl.ca>
393
394 * varobj.h (struct varobj) <parent>: Remove const.
395 <children>: Change type to std::vector.
396 (varobj_list_children): Return std::vector const reference.
397 (varobj_restrict_range): Change parameter type to std::vector
398 const reference.
399 * varobj.c (varobj_has_more): Adjust.
400 (varobj_restrict_range): Change parameter type to std::vector
401 const reference and adjust.
402 (install_dynamic_child): Adjust.
403 (update_dynamic_varobj_children): Adjust.
404 (varobj_list_children): Return std::vector const reference and
405 adjust.
406 (varobj_add_child): Adjust.
407 (update_type_if_necessary): Adjust.
408 (varobj_update): Adjust.
409 (delete_variable_1): Adjust.
410 * ada-varobj.c (ada_value_has_mutated): Adjust.
411 * mi/mi-cmd-var.c (mi_cmd_var_list_children): Adjust.
412
413 2017-11-22 Simon Marchi <simon.marchi@polymtl.ca>
414
415 * varobj.h (struct varobj): Add constructor and destructor,
416 initialize fields.
417 * varobj.c (struct varobj_root): Initialize fields.
418 (struct varobj_dynamic): Initialize fields.
419 (varobj_create): Use unique_ptr instead of cleanup. Create
420 varobj with new instead of new_root_variable.
421 (delete_variable_1): Free variable with delete instead of
422 free_variable.
423 (create_child_with_value): Create variable with new instead of
424 new_variable.
425 (varobj::varobj): New.
426 (varobj::~varobj): New (body mostly coming from free_variable).
427 (new_variable): Remove.
428 (free_variable): Remove.
429 (do_free_variable_cleanup): Remove.
430 (make_cleanup_free_variable): Remove.
431
432 2017-11-22 Ulrich Weigand <uweigand@de.ibm.com>
433
434 * core-regset.c: Remove file.
435 * Makefile.in (ALLDEPFILES): Remove core-regset.c.
436
437 2017-11-22 Ulrich Weigand <uweigand@de.ibm.com>
438
439 * NEWS: Document use of GNU MPFR.
440 * README: Likewise.
441
442 * Makefile.in (LIBMPFR): Add define.
443 (CLIBS): Add $(LIBMPFR).
444 * configure.ac: Add --with-mpfr configure option.
445 * configure: Regenerate.
446 * config.in: Regenerate.
447
448 * target-float.c [HAVE_LIBMPFR]: Include <mpfr.h>.
449 (class mpfr_float_ops): New type.
450 (mpfr_float_ops::from_target): Two new overloaded functions.
451 (mpfr_float_ops::to_target): Likewise.
452 (mpfr_float_ops::to_string): New function.
453 (mpfr_float_ops::from_string): Likewise.
454 (mpfr_float_ops::to_longest): Likewise.
455 (mpfr_float_ops::from_longest): Likewise.
456 (mpfr_float_ops::from_ulongest): Likewise.
457 (mpfr_float_ops::to_host_double): Likewise.
458 (mpfr_float_ops::from_host_double): Likewise.
459 (mpfr_float_ops::convert): Likewise.
460 (mpfr_float_ops::binop): Likewise.
461 (mpfr_float_ops::compare): Likewise.
462 (get_target_float_ops): Use mpfr_float_ops if available.
463
464 2017-11-22 Ulrich Weigand <uweigand@de.ibm.com>
465
466 * target-float.c: Do not include <math.h>.
467 Include <cmath> and <limits>.
468 (DOUBLEST): Do not define.
469 (class target_float_ops): New type.
470 (class host_float_ops): New templated type.
471 (class decimal_float_ops): New type.
472
473 (floatformat_to_doublest): Rename to ...
474 (host_float_ops<T>::from_target): ... this. Use template type T
475 instead of DOUBLEST. Use C++ math routines. Update recursive calls.
476 (host_float_ops<T>::from_target): New overload using a type argument.
477 (floatformat_from_doublest): Rename to ...
478 (host_float_ops<T>::to_target): ... this. Use template type T
479 instead of DOUBLEST. Use C++ math routines. Update recursive calls.
480 (host_float_ops<T>::to_target): New overload using a type argument.
481 (floatformat_printf_format): New function.
482 (struct printf_length_modifier): New templated type.
483 (floatformat_to_string): Rename to ...
484 (host_float_ops<T>::to_string): ... this. Use type instead of
485 floatformat argument. Use floatformat_printf_format and
486 printf_length_modifier. Remove special handling of invalid numbers,
487 infinities and NaN (moved to target_float_to_string).
488 (struct scanf_length_modifier): New templated type.
489 (floatformat_from_string): Rename to ...
490 (host_float_ops<T>::from_string): ... this. Use type instead of
491 floatformat argument. Use scanf_length_modifier.
492 (floatformat_to_longest): Rename to ...
493 (host_float_ops<T>::to_longest): ... this. Use type instead of
494 floatformat argument. Handle out-of-range values deterministically.
495 (floatformat_from_longest): Rename to ...
496 (host_float_ops<T>::from_longest): ... this. Use type instead of
497 floatformat argument.
498 (floatformat_from_ulongest): Rename to ...
499 (host_float_ops<T>::from_ulongest): ... this. Use type instead of
500 floatformat argument.
501 (floatformat_to_host_double): Rename to ...
502 (host_float_ops<T>::to_host_double): ... this. Use type instead of
503 floatformat argument.
504 (floatformat_from_host_double): Rename to ...
505 (host_float_ops<T>::from_host_double): ... this. Use type instead of
506 floatformat argument.
507 (floatformat_convert): Rename to ...
508 (host_float_ops<T>::convert): ... this. Use type instead of
509 floatformat arguments. Remove handling of no-op conversions.
510 (floatformat_binop): Rename to ...
511 (host_float_ops<T>::binop): ... this. Use type instead of
512 floatformat arguments.
513 (floatformat_compare): Rename to ...
514 (host_float_ops<T>::compare): ... this. Use type instead of
515 floatformat arguments.
516
517 (match_endianness): Use type instead of length/byte_order arguments.
518 (set_decnumber_context): Likewise.
519 (decimal_from_number): Likewise. Update calls.
520 (decimal_to_number): Likewise.
521 (decimal_is_zero): Likewise. Update calls. Move to earlier in file.
522 (decimal_float_ops::to_host_double): New dummy function.
523 (decimal_float_ops::from_host_double): Likewise.
524 (decimal_to_string): Rename to ...
525 (decimal_float_ops::to_string): ... this. Use type instead of
526 length/byte_order arguments. Update calls.
527 (decimal_from_string): Rename to ...
528 (decimal_float_ops::from_string): ... this. Use type instead of
529 length/byte_order arguments. Update calls.
530 (decimal_from_longest): Rename to ...
531 (decimal_float_ops::from_longest): ... this. Use type instead of
532 length/byte_order arguments. Update calls.
533 (decimal_from_ulongest): Rename to ...
534 (decimal_float_ops::from_ulongest): ... this. Use type instead of
535 length/byte_order arguments. Update calls.
536 (decimal_to_longest): Rename to ...
537 (decimal_float_ops::to_longest): ... this. Use type instead of
538 length/byte_order arguments. Update calls.
539 (decimal_binop): Rename to ...
540 (decimal_float_ops::binop): ... this. Use type instead of
541 length/byte_order arguments. Update calls.
542 (decimal_compare): Rename to ...
543 (decimal_float_ops::compare): ... this. Use type instead of
544 length/byte_order arguments. Update calls.
545 (decimal_convert): Rename to ...
546 (decimal_float_ops::convert): ... this. Use type instead of
547 length/byte_order arguments. Update calls.
548
549 (target_float_same_category_p): New function.
550 (target_float_same_format_p): Likewise.
551 (target_float_format_length): Likewise.
552 (enum target_float_ops_kind): New type.
553 (get_target_float_ops_kind): New function.
554 (get_target_float_ops): Three new overloaded functions.
555
556 (target_float_is_zero): Update call.
557 (target_float_to_string): Add special handling of invalid numbers,
558 infinities and NaN (moved from floatformat_to_string). Use
559 target_float_ops callback.
560 (target_float_from_string): Use target_float_ops callback.
561 (target_float_to_longest): Likewise.
562 (target_float_from_longest): Likewise.
563 (target_float_from_ulongest): Likewise.
564 (target_float_to_host_double): Likewise.
565 (target_float_from_host_double): Likewise.
566 (target_float_convert): Add special case for no-op conversions.
567 Use target_float_ops callback.
568 (target_float_binop): Use target_float_ops callback.
569 (target_float_compare): Likewise.
570
571 2017-11-22 Yao Qi <yao.qi@linaro.org>
572
573 * python/py-gdb-readline.c (gdbpy_readline_wrapper): Use strcpy.
574
575 2017-11-22 Yao Qi <yao.qi@linaro.org>
576
577 * cli/cli-decode.c (help_list): Use memcpy instead of strncpy.
578 * cp-namespace.c (cp_lookup_transparent_type_loop): Likewise.
579
580 2017-11-21 Jerome Guitton <guitton@adacore.com>
581
582 * ravenscar-thread.c (ravenscar_wait): Update inferior ptid
583 with event ptid from the lower layer before doing the
584 ravenscar-specific update.
585
586 2017-11-21 Joel Brobecker <brobecker@adacore.com>
587
588 * ravenscar-thread.c (is_ravenscar_task): Also verify that
589 the ptid's TID is nonzero.
590
591 2017-11-21 Joel Brobecker <brobecker@adacore.com>
592
593 * ada-lang.h (ada_get_tcb_types_info): Add declaration.
594 * ada-tasks.c (ada_get_tcb_types_info): Renames get_tcb_types_info.
595 Make non-static. Change return type to char *. Adjust code
596 accordingly. Rewrite the function's documentation.
597 (read_atcb): Adjust call to get_tcb_types_info accordingly.
598 * ravenscar-thread.c (ravenscar_inferior_created): Check that
599 we have enough debugging information in the runtime to support
600 Ada task debugging before we enable the ravenscar-thread layer.
601
602 2017-11-21 Joel Brobecker <brobecker@adacore.com>
603
604 * ada-lang.h (ada_get_task_info_from_ptid): Add declaration.
605 * ada-tasks.c (ada_get_task_info_from_ptid): New function.
606 * ravenscar-thread.c: Add into comment.
607 (base_magic_null_ptid): Delete.
608 (base_ptid): Change documentation.
609 (ravenscar_active_task): Renames ravenscar_running_thread.
610 All callers updated throughout.
611 (is_ravenscar_task, ravenscar_get_thread_base_cpu): New function.
612 (ravenscar_task_is_currently_active): Likewise.
613 (get_base_thread_from_ravenscar_task): Ditto.
614 (ravenscar_update_inferior_ptid): Adjust to handle multiple CPUs.
615 (ravenscar_runtime_initialized): Likewise.
616 (get_running_thread_id): Add new parameter "cpu". Adjust
617 implementation to handle this new parameter.
618 (ravenscar_fetch_registers): Small adjustment to use
619 is_ravenscar_task and ravenscar_task_is_currently_active in
620 order to decide whether to use the target beneath or this
621 module's arch_ops.
622 (ravenscar_store_registers, ravenscar_prepare_to_store): Likewise.
623 (ravenscar_stopped_by_sw_breakpoint): Use
624 get_base_thread_from_ravenscar_task to get the underlying
625 thread, rather than using base_ptid.
626 (ravenscar_stopped_by_hw_breakpoint, ravenscar_stopped_by_watchpoint)
627 (ravenscar_stopped_data_address, ravenscar_core_of_thread):
628 Likewise.
629 (ravenscar_inferior_created): Do not set base_magic_null_ptid.
630
631 2017-11-21 Joel Brobecker <brobecker@adacore.com>
632
633 * ada-lang.h (struct ada_task_info) <base_cpu>: New field.
634 * ada-lang.c (struct atcb_fieldno) <base_cpu>: New field.
635 (get_tcb_types_info): Set fieldnos.base_cpu.
636 (read_atcb): Set task_info->base_cpu.
637 (info_task): Print "Base CPU" info if set by runtime.
638
639 2017-11-21 Joel Brobecker <brobecker@adacore.com>
640
641 * ravenscar-thread.c (ravenscar_stopped_by_sw_breakpoint)
642 (ravenscar_stopped_by_hw_breakpoint, ravenscar_stopped_by_watchpoint)
643 (ravenscar_stopped_data_address, ravenscar_core_of_thread):
644 New functions.
645 (init_ravenscar_thread_ops): Set the to_stopped_by_sw_breakpoint,
646 to_stopped_by_hw_breakpoint, to_stopped_by_watchpoint,
647 to_stopped_data_address and to_core_of_thread fields of
648 ravenscar_ops.
649
650 2017-11-21 Ulrich Weigand <uweigand@de.ibm.com>
651
652 * ppc-tdep.h (enum powerpc_long_double_abi): New data type.
653 (struct gdbarch_tdep): New member long_double_abi.
654 * rs6000-tdep.c (rs6000_gdbarch_init): Initialize long_double_abi
655 member of tdep struct based on Tag_GNU_Power_ABI_FP attribute.
656 * ppc-linux-tdep.c (ppc_linux_init_abi): Install long double data
657 format depending on long_double_abi tdep member.
658 (ppc_floatformat_for_type): Handle __ibm128 type.
659
660 2017-11-20 Simon Marchi <simon.marchi@polymtl.ca>
661
662 * darwin-nat.c (set_enable_mach_exceptions): Constify parameter.
663
664 2017-11-21 Pedro Alves <palves@redhat.com>
665
666 * dwarf2read.c (mapped_index::find_name_components_bounds)
667 <completion mode, upper bound>: Use std::lower_bound instead of
668 std::upper_bound.
669 (test_mapped_index_find_name_component_bounds): Remove incorrect
670 "t1_fund" from expected symbols.
671
672 2017-11-21 Pedro Alves <palves@redhat.com>
673
674 * dwarf2read.c (mapped_index::name_components_casing): New field.
675 (mapped_index) <build_name_components,
676 find_name_components_bounds): Declare new methods.
677 (mapped_index::find_name_components_bounds)
678 (mapped_index::build_name_components): New methods, factored out
679 from dw2_expand_symtabs_matching_symbol.
680 (check_find_bounds_finds)
681 (test_mapped_index_find_name_component_bounds): New.
682 (run_test): Rename to ...
683 (test_dw2_expand_symtabs_matching_symbol): ... this.
684 (run_test): Reimplement.
685
686 2017-11-21 Pedro Alves <palves@redhat.com>
687
688 * cp-name-parser.y (cp_ident_is_alpha, cp_ident_is_alnum): New.
689 (symbol_end): Use cp_ident_is_alnum.
690 (yylex): Use cp_ident_is_alpha and cp_ident_is_alnum.
691 * dwarf2read.c (make_sort_after_prefix_name): New function.
692 (dw2_expand_symtabs_matching_symbol): Use it.
693 (test_symbols): Add more symbols.
694 (run_test): Add tests.
695
696 2017-11-17 Tom Tromey <tom@tromey.com>
697
698 * symtab.h (enum symbol_subclass_kind): New.
699 (struct symbol) <is_cplus_template_function, is_rust_vtable>:
700 Remove.
701 <subclass>: New member.
702 (SYMBOL_IS_CPLUS_TEMPLATE_FUNCTION): Update.
703 * rust-lang.c (rust_get_trait_object_pointer): Update.
704 * dwarf2read.c (read_func_scope): Update.
705 (read_variable): Update.
706
707 2017-11-17 Tom Tromey <tom@tromey.com>
708
709 * dwarf2read.c (read_func_scope): Update.
710 * symtab.h (struct template_symbol): Derive from symbol.
711 <base>: Remove.
712
713 2017-11-17 Tom Tromey <tom@tromey.com>
714
715 * symtab.h (struct symbol) <is_rust_vtable>: New member.
716 (struct rust_vtable_symbol): New.
717 (find_symbol_at_address): Declare.
718 * symtab.c (find_symbol_at_address): New function.
719 * symfile.h (struct quick_symbol_functions)
720 <find_compunit_symtab_by_address>: New member.
721 * symfile-debug.c (debug_qf_find_compunit_symtab_by_address): New
722 function.
723 (debug_sym_quick_functions): Link to
724 debug_qf_find_compunit_symtab_by_address.
725 * rust-lang.c (rust_get_trait_object_pointer): New function.
726 (rust_evaluate_subexp) <case UNOP_IND>: New case. Call
727 rust_get_trait_object_pointer.
728 * psymtab.c (psym_relocate): Clear psymbol_map.
729 (psym_fill_psymbol_map, psym_find_compunit_symtab_by_address): New
730 functions.
731 (psym_functions): Link to psym_find_compunit_symtab_by_address.
732 * objfiles.h (struct objfile) <psymbol_map>: New member.
733 * dwarf2read.c (dwarf2_gdb_index_functions): Update.
734 (process_die) <DW_TAG_variable>: New case. Call read_variable.
735 (rust_containing_type, read_variable): New functions.
736
737 2017-11-17 Simon Marchi <simon.marchi@polymtl.ca>
738
739 * common/gdb_vecs.h (DEF_VEC_I (int)): Remove.
740
741 2017-11-17 Simon Marchi <simon.marchi@polymtl.ca>
742
743 * common/filestuff.c: Include <algorithm>.
744 (open_fds): Change type to std::vector<int>.
745 (do_mark_open_fd): Adjust.
746 (unmark_fd_no_cloexec): Adjust.
747 (do_close): Adjust.
748
749 2017-11-17 Simon Marchi <simon.marchi@polymtl.ca>
750
751 * breakpoint.c (output_thread_groups): Take an std::vector.
752 (print_one_breakpoint_location): Adjust.
753
754 2017-11-17 Joel Brobecker <brobecker@adacore.com>
755
756 * ada-lang.c (resolve_subexp): Add handling of OP_VAR_MSYM_VALUE.
757 (ada_evaluate_subexp_for_cast): New function.
758 (ada_evaluate_subexp) <UNOP_CAST>: Replace code by call to
759 ada_evaluate_subexp_for_cast.
760 (ada_evaluate_subexp) <nosideret>: Replace code by call to
761 eval_skip_value.
762 * eval.c (evaluate_var_value): Make non-static.
763 (evaluate_var_msym_value, eval_skip_value): Likewise.
764 * value.h (evaluate_var_value, evaluate_var_msym_value)
765 (eval_skip_value): Declare.
766
767 2017-11-16 Joel Brobecker <brobecker@adacore.com>
768
769 * ada-lang.c (ada_value_cast): Remove parameter "noside".
770 Update all callers.
771
772 2017-11-16 Pedro Alves <palves@redhat.com>
773
774 * python/py-unwind.c (pyuw_sniffer): Translate
775 PyExc_KeyboardInterrupt to a GDB Quit exception.
776
777 2017-11-16 Pedro Alves <palves@redhat.com>
778
779 * infrun.c (resume_cleanups): Delete.
780 (resume): No longer install a resume_cleanups cleanup nor call
781 QUIT.
782 (proceed): Pass the terminal to the inferior.
783 (keep_going_pass_signal): No longer install a resume_cleanups
784 cleanup.
785
786 2017-11-16 Pedro Alves <palves@redhat.com>
787
788 * inf-loop.c (inferior_event_handler): Don't swallow the exception
789 if the prompt is blocked.
790
791 2017-11-16 Pedro Alves <palves@redhat.com>
792
793 * breakpoint.c (insert_bp_location): Replace bp_err and
794 bp_err_message locals by a gdb_exception local.
795
796 2017-11-16 Pedro Alves <palves@redhat.com>
797
798 * inflow.c (scoped_ignore_sigttou): New class.
799 (child_terminal_ours_1, new_tty): Use it.
800
801 2017-11-16 Ulrich Weigand <uweigand@de.ibm.com>
802
803 * target-float.c (decimal_from_number): Add byte_order argument and
804 call match_endianness. Error if unknown floating-point type.
805 (decimal_to_number): Add byte_order argument and call match_endianness.
806 (decimal_from_longest): Update call. Do not call match_endianness.
807 (decimal_from_ulongest): Likewise.
808 (decimal_binop): Likewise.
809 (decimal_is_zero): Likewise.
810 (decimal_compare): Likewise.
811 (decimal_convert): Likewise.
812
813 2017-11-16 Phil Muldoon <pmuldoon@redhat.com>
814
815 * python/python.c (gdbpy_rbreak): New function.
816 * NEWS: Document Python rbreak feature.
817
818 2017-11-16 Yao Qi <yao.qi@linaro.org>
819
820 * features/tic6x-c62x.xml: Remove.
821 * features/tic6x-c64x.xml: Remove.
822 * features/tic6x-c64xp.xml: Remove.
823
824 2017-11-15 John Baldwin <jhb@FreeBSD.org>
825
826 * symtab.h: Include <array>.
827
828 2017-11-15 John Baldwin <jhb@FreeBSD.org>
829
830 * bsd-kvm.c (bsd_kvm_cmd): Constify 'arg'.
831 (bsd_kvm_proc_cmd): Likewise.
832
833 2017-11-15 Simon Marchi <simon.marchi@ericsson.com>
834
835 * tui/tui-win.c (window_name_completer): Replace VEC with
836 std::vector.
837
838 2017-11-15 Andrew Cagney <cagney@gnu.org>
839
840 * MAINTAINERS: Remove no-longer applicable entries.
841
842 2017-11-15 Andrew Cagney <cagney@gnu.org>
843
844 * MAINTAINERS: Move self to Past Maintainers.
845
846 2017-11-15 Yao Qi <yao.qi@linaro.org>
847
848 * features/Makefile (XMLTOC): Remove nios2-linux.xml.
849 * features/nios2-linux.c: Remove.
850 * nios2-linux-tdep.c (_initialize_nios2_linux_tdep): Don't call
851 initialize_tdesc_nios2_linux.
852
853 2017-11-15 Yao Qi <yao.qi@linaro.org>
854
855 * m68hc11-tdep.c (M68HC11_NUM_REGS): Change it to
856 M68HC11_LAST_HARD_REG + 1.
857
858 2017-11-14 Paul Carroll <pcarroll@codesourcery.com>
859
860 PR gdb/22388
861 * remote.c (remote_write_bytes_aux, remote_read_bytes_1,
862 remote_read_bytes, remote_write_qxfer, remote_xfer_partial):
863 Return TARGET_XFER_EOF if size of returned data is 0.
864
865 2017-11-14 Simon Marchi <simon.marchi@ericsson.com>
866
867 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
868 memory-map-selftests.c.
869 (SUBDIR_UNITTESTS_OBS): Add memory-map-selftests.o.
870 * memory-map.c (memory_map_start_memory): Fix computation of hi
871 address.
872 * unittests/memory-map-selftests.c: New file.
873
874 2017-11-09 Joel Brobecker <brobecker@adacore.com>
875
876 * ada-lang.c: Fix some typos in the general command documenting
877 how Ada expressions are being evaluated and how their result
878 is printed.
879
880 2017-11-09 Tom Tromey <tom@tromey.com>
881
882 * psymtab.c (psymbol_hash): Do not hash string contents.
883 (psymbol_compare): Add comment.
884
885 2017-11-09 Tom Tromey <tom@tromey.com>
886
887 * dictionary.c (dict_hash): Move "TKB" check into the "switch".
888
889 2017-11-08 Joel Brobecker <brobecker@adacore.com>
890
891 * ada-exp.y (write_var_from_sym): Remove parameter
892 "orig_left_context". Update all callers.
893
894 2017-11-08 Simon Marchi <simon.marchi@ericsson.com>
895
896 * tracepoint.h (class collection_list) <stringify>: Return
897 std::vector<std::string>.
898 (encode_actions_rsp): Change parameters to
899 std::vector<std::string> *.
900 * tracepoint.c (collection_list::stringify): Return
901 std::vector<std::string> and adjust accordingly.
902 (encode_actions_rsp): Changee parameters to
903 std::vector<std::string> and adjust accordingly.
904 * remote.c (free_actions_list),
905 free_actions_list_cleanup_wrapper): Remove.
906 (remote_download_tracepoint): Adjust to std::vector.
907
908 2017-11-08 Tom Tromey <tom@tromey.com>
909
910 * dwarf2read.c (symbolp): Remove typedef.
911 (read_func_scope): Use std::vector.
912 (process_structure_scope): Use std::vector.
913
914 2017-11-08 Pedro Alves <palves@redhat.com>
915
916 * ada-lang.c (ada_make_symbol_completion_list): Use
917 completion_skip_symbol.
918 * symtab.c (symbol_is_function_or_method(minimal_symbol*)): New.
919 (symbol_is_function_or_method(symbol*)): New.
920 (add_symtab_completions): Add complete_symbol_mode parameter. Use
921 completion_skip_symbol.
922 (default_collect_symbol_completion_matches_break_on): Use
923 completion_skip_symbol. Pass down mode.
924 (collect_file_symbol_completion_matches): Pass down mode.
925 * symtab.h (symbol_is_function_or_method): New declarations.
926 (completion_skip_symbol): New template function.
927
928 2017-11-08 Pedro Alves <palves@redhat.com>
929
930 * linespec.c (iterate_over_all_matching_symtabs): Add
931 search_domain parameter. Pass it down to expand_symtabs_matching.
932 (decode_objc): Request FUNCTIONS_DOMAIN symbols only.
933 (lookup_prefix_sym): Adjust by passing ALL_DOMAIN as
934 search_domain.
935 (add_all_symbol_names_from_pspace): Add search_domain parameter.
936 Pass it down.
937 (find_method, find_function_symbols): Request FUNCTIONS_DOMAIN
938 symbols.
939 (add_matching_symbols_to_info): Add search_domain parameter. Pass
940 it down.
941
942 2017-11-08 Pedro Alves <palves@redhat.com>
943
944 * ada-lang.c (ada_make_symbol_completion_list): Remove text and
945 text_len locals and don't pass them down.
946 * symtab.c (completion_list_add_name): Remove
947 sym_text/sym_text_len parameters and adjust.
948 (completion_list_add_symbol, completion_list_add_msymbol)
949 (completion_list_objc_symbol, completion_list_add_fields)
950 (add_symtab_completions): Likewise.
951 (default_collect_symbol_completion_matches_break_on)
952 (collect_file_symbol_completion_matches): Remove sym_text_len
953 local and don't pass it down.
954 * symtab.h (completion_list_add_name): Remove
955 sym_text/sym_text_len parameters.
956
957 2017-11-08 Pedro Alves <palves@redhat.com>
958
959 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
960 unittests/lookup_name_info-selftests.c.
961 (SUBDIR_UNITTESTS_OBS): Add lookup_name_info-selftests.o.
962 * cp-support.c: Include "selftest.h".
963 (cp_remove_params_1): Rename from cp_remove_params. Add
964 'require_param' parameter, and handle it.
965 (cp_remove_params): Reimplement.
966 (cp_remove_params_if_any): New.
967 (selftests::quote): New.
968 (selftests::check_remove_params): New.
969 (selftests::test_cp_remove_params): New.
970 (_initialize_cp_support): Install
971 selftests::test_cp_remove_params.
972 * cp-support.h (cp_remove_params_if_any): Declare.
973 * dwarf2read.c :Include "selftest.h".
974 (dw2_expand_symtabs_matching_symbol): Use
975 lookup_name_info::make_ignore_params.
976 (selftests::dw2_expand_symtabs_matching::mock_mapped_index)
977 (selftests::dw2_expand_symtabs_matching::string_or_null)
978 (selftests::dw2_expand_symtabs_matching::check_match)
979 (selftests::dw2_expand_symtabs_matching::test_symbols)
980 (selftests::dw2_expand_symtabs_matching::run_test): New.
981 (_initialize_dwarf2_read): Register
982 selftests::dw2_expand_symtabs_matching::run_test.
983 * psymtab.c (psym_expand_symtabs_matching): Use
984 lookup_name_info::make_ignore_params.
985 * symtab.c (demangle_for_lookup_info::demangle_for_lookup_info):
986 If the lookup name wants to ignore parameters, strip them.
987 (compare_symbol_name): Remove sym_text/sym_text_len parameters and
988 code handling '('.
989 (completion_list_add_name): Don't pass down sym_text/sym_text_len.
990 (default_collect_symbol_completion_matches_break_on): Don't try to
991 strip parameters.
992 * symtab.h (lookup_name_info::lookup_name_info): Add
993 'ignore_parameters' parameter.
994 (lookup_name_info::ignore_parameters)
995 (lookup_name_info::make_ignore_params): New methods.
996 (lookup_name_info::m_ignore_parameters): New field.
997 * unittests/lookup_name_info-selftests.c: New file.
998
999 2017-11-08 Pedro Alves <palves@redhat.com>
1000
1001 * dwarf2read.c (dw2_expand_marked_cus)
1002 (dw2_expand_symtabs_matching_symbol): Remove forward declarations.
1003 (dw2_expand_symtabs_matching): Move further below.
1004 (dw2_expand_marked_cus): Reindent.
1005
1006 2017-11-08 Pedro Alves <palves@redhat.com>
1007
1008 * dwarf2read.c (byte_swap, MAYBE_SWAP): Move higher up in file.
1009 (struct name_component): New.
1010 (mapped_index::name_components): New field.
1011 (mapped_index::symbol_name_at): New method.
1012 (dwarf2_read_index): Call mapped_index ctor.
1013 (dw2_map_matching_symbols): Add comment about name_components
1014 table.
1015 (dw2_expand_symtabs_matching): Factor part to...
1016 (dw2_expand_symtabs_matching_symbol): ... this new function.
1017 Build name components table, and lookup symbols in it before
1018 calling the name matcher.
1019 (dw2_expand_marked_cus): New, factored out from
1020 dw2_expand_symtabs_matching.
1021 (dwarf2_per_objfile_free): Call the mapped_index's dtor.
1022
1023 2017-11-08 Pedro Alves <palves@redhat.com>
1024
1025 * ada-lang.c (ada_encode): Rename to ..
1026 (ada_encode_1): ... this. Add throw_errors parameter and handle
1027 it.
1028 (ada_encode): Reimplement.
1029 (match_name): Delete, folded into full_name.
1030 (resolve_subexp): No longer pass the encoded name to
1031 ada_lookup_symbol_list.
1032 (should_use_wild_match): Delete.
1033 (name_match_type_from_name): New.
1034 (ada_lookup_simple_minsym): Use lookup_name_info and the
1035 language's symbol_name_matcher_ftype.
1036 (add_symbols_from_enclosing_procs, ada_add_local_symbols)
1037 (ada_add_block_renamings): Adjust to use lookup_name_info.
1038 (ada_lookup_name): New.
1039 (add_nonlocal_symbols, ada_add_all_symbols)
1040 (ada_lookup_symbol_list_worker, ada_lookup_symbol_list)
1041 (ada_iterate_over_symbols): Adjust to use lookup_name_info.
1042 (ada_name_for_lookup): Delete.
1043 (ada_lookup_encoded_symbol): Construct a verbatim name.
1044 (wild_match): Reverse sense of return type. Use bool.
1045 (full_match): Reverse sense of return type. Inline bits of old
1046 match_name here.
1047 (ada_add_block_symbols): Adjust to use lookup_name_info.
1048 (symbol_completion_match): Delete, folded into...
1049 (ada_lookup_name_info::matches): ... .this new method.
1050 (symbol_completion_add): Delete.
1051 (ada_collect_symbol_completion_matches): Add name_match_type
1052 parameter. Adjust to use lookup_name_info and
1053 completion_list_add_name.
1054 (get_var_value, ada_add_global_exceptions): Adjust to use
1055 lookup_name_info.
1056 (ada_get_symbol_name_cmp): Delete.
1057 (do_wild_match, do_full_match): New functions.
1058 (ada_lookup_name_info::ada_lookup_name_info): New method.
1059 (ada_symbol_name_matches, ada_get_symbol_name_matcher): New
1060 functions.
1061 (ada_language_defn): Install ada_get_symbol_name_matcher.
1062 * ada-lex.l (processId): If name starts with '<', copy it
1063 verbatim.
1064 * block.c (block_iter_match_step, block_iter_match_first)
1065 (block_iter_match_next, block_lookup_symbol)
1066 (block_lookup_symbol_primary, block_find_symbol): Adjust to use
1067 lookup_name_info.
1068 * block.h (block_iter_match_first, block_iter_match_next)
1069 (ALL_BLOCK_SYMBOLS_WITH_NAME): Adjust to use lookup_name_info.
1070 * c-lang.c (c_language_defn, cplus_language_defn)
1071 (asm_language_defn, minimal_language_defn): Adjust comments to
1072 refer to la_get_symbol_name_matcher.
1073 * completer.c (complete_files_symbols)
1074 (collect_explicit_location_matches, symbol_completer): Pass a
1075 symbol_name_match_type down.
1076 * completer.h (class completion_match, completion_match_result):
1077 New classes.
1078 (completion_tracker::reset_completion_match_result): New method.
1079 (completion_tracker::m_completion_match_result): New field.
1080 * cp-support.c (make_symbol_overload_list_block): Adjust to use
1081 lookup_name_info.
1082 (cp_fq_symbol_name_matches, cp_get_symbol_name_matcher): New
1083 functions.
1084 * cp-support.h (cp_get_symbol_name_matcher): New declaration.
1085 * d-lang.c: Adjust comments to refer to
1086 la_get_symbol_name_matcher.
1087 * dictionary.c (dict_vector) <iter_match_first, iter_match_next>:
1088 Adjust to use lookup_name_info.
1089 (dict_iter_match_first, dict_iter_match_next)
1090 (iter_match_first_hashed, iter_match_next_hashed)
1091 (iter_match_first_linear, iter_match_next_linear): Adjust to work
1092 with a lookup_name_info.
1093 * dictionary.h (dict_iter_match_first, dict_iter_match_next):
1094 Likewise.
1095 * dwarf2read.c (dw2_lookup_symbol): Adjust to use lookup_name_info.
1096 (dw2_map_matching_symbols): Adjust to use symbol_name_match_type.
1097 (gdb_index_symbol_name_matcher): New class.
1098 (dw2_expand_symtabs_matching) Adjust to use lookup_name_info and
1099 gdb_index_symbol_name_matcher. Accept a NULL symbol_matcher.
1100 * f-lang.c (f_collect_symbol_completion_matches): Adjust to work
1101 with a symbol_name_match_type.
1102 (f_language_defn): Adjust comments to refer to
1103 la_get_symbol_name_matcher.
1104 * go-lang.c (go_language_defn): Adjust comments to refer to
1105 la_get_symbol_name_matcher.
1106 * language.c (default_symbol_name_matcher)
1107 (language_get_symbol_name_matcher): New functions.
1108 (unknown_language_defn, auto_language_defn): Adjust comments to
1109 refer to la_get_symbol_name_matcher.
1110 * language.h (symbol_name_cmp_ftype): Delete.
1111 (language_defn) <la_collect_symbol_completion_matches>: Add match
1112 type parameter.
1113 <la_get_symbol_name_cmp>: Delete field.
1114 <la_get_symbol_name_matcher>: New field.
1115 <la_iterate_over_symbols>: Adjust to use lookup_name_info.
1116 (default_symbol_name_matcher, language_get_symbol_name_matcher):
1117 Declare.
1118 * linespec.c (iterate_over_all_matching_symtabs)
1119 (iterate_over_file_blocks): Adjust to use lookup_name_info.
1120 (find_methods): Add language parameter, and use lookup_name_info
1121 and the language's symbol_name_matcher_ftype.
1122 (linespec_complete_function): Adjust.
1123 (lookup_prefix_sym): Use lookup_name_info.
1124 (add_all_symbol_names_from_pspace): Adjust.
1125 (find_superclass_methods): Add language parameter and pass it
1126 down.
1127 (find_method): Pass symbol language down.
1128 (find_linespec_symbols): Don't demangle or Ada encode here.
1129 (search_minsyms_for_name): Add lookup_name_info parameter.
1130 (add_matching_symbols_to_info): Add name_match_type parameter.
1131 Use lookup_name_info.
1132 * m2-lang.c (m2_language_defn): Adjust comments to refer to
1133 la_get_symbol_name_matcher.
1134 * minsyms.c: Include <algorithm>.
1135 (add_minsym_to_demangled_hash_table): Remove table parameter and
1136 add objfile parameter. Use search_name_hash, and add language to
1137 demangled languages vector.
1138 (struct found_minimal_symbols): New struct.
1139 (lookup_minimal_symbol_mangled, lookup_minimal_symbol_demangled):
1140 New functions.
1141 (lookup_minimal_symbol): Adjust to use them. Don't canonicalize
1142 input names here. Use lookup_name_info instead. Lookup up
1143 demangled names once for each language in the demangled names
1144 vector.
1145 (iterate_over_minimal_symbols): Use lookup_name_info. Lookup up
1146 demangled names once for each language in the demangled names
1147 vector.
1148 (build_minimal_symbol_hash_tables): Adjust.
1149 * minsyms.h (iterate_over_minimal_symbols): Adjust to pass down a
1150 lookup_name_info.
1151 * objc-lang.c (objc_language_defn): Adjust comment to refer to
1152 la_get_symbol_name_matcher.
1153 * objfiles.h: Include <vector>.
1154 (objfile_per_bfd_storage) <demangled_hash_languages>: New field.
1155 * opencl-lang.c (opencl_language_defn): Adjust comment to refer to
1156 la_get_symbol_name_matcher.
1157 * p-lang.c (pascal_language_defn): Adjust comment to refer to
1158 la_get_symbol_name_matcher.
1159 * psymtab.c (psym_lookup_symbol): Use lookup_name_info.
1160 (match_partial_symbol): Use symbol_name_match_type,
1161 lookup_name_info and psymbol_name_matches.
1162 (lookup_partial_symbol): Use lookup_name_info.
1163 (map_block): Use symbol_name_match_type and lookup_name_info.
1164 (psym_map_matching_symbols): Use symbol_name_match_type.
1165 (psymbol_name_matches): New.
1166 (recursively_search_psymtabs): Use lookup_name_info and
1167 psymbol_name_matches. Rename 'kind' parameter to 'domain'.
1168 (psym_expand_symtabs_matching): Use lookup_name_info. Rename
1169 'kind' parameter to 'domain'.
1170 * rust-lang.c (rust_language_defn): Adjust comment to refer to
1171 la_get_symbol_name_matcher.
1172 * symfile-debug.c (debug_qf_map_matching_symbols)
1173 (debug_qf_map_matching_symbols): Use symbol_name_match_type.
1174 (debug_qf_expand_symtabs_matching): Use lookup_name_info.
1175 * symfile.c (expand_symtabs_matching): Use lookup_name_info.
1176 * symfile.h (quick_symbol_functions) <map_matching_symbols>:
1177 Adjust to use symbol_name_match_type.
1178 <expand_symtabs_matching>: Adjust to use lookup_name_info.
1179 (expand_symtabs_matching): Adjust to use lookup_name_info.
1180 * symmisc.c (maintenance_expand_symtabs): Use
1181 lookup_name_info::match_any ().
1182 * symtab.c (symbol_matches_search_name): New.
1183 (eq_symbol_entry): Adjust to use lookup_name_info and the
1184 language's matcher.
1185 (demangle_for_lookup_info::demangle_for_lookup_info): New.
1186 (lookup_name_info::match_any): New.
1187 (iterate_over_symbols, search_symbols): Use lookup_name_info.
1188 (compare_symbol_name): Add language, lookup_name_info and
1189 completion_match_result parameters, and use them.
1190 (completion_list_add_name): Make extern. Add language and
1191 lookup_name_info parameters. Use them.
1192 (completion_list_add_symbol, completion_list_add_msymbol)
1193 (completion_list_objc_symbol): Add lookup_name_info parameters and
1194 adjust. Pass down language.
1195 (completion_list_add_fields): Add lookup_name_info parameters and
1196 adjust. Pass down language.
1197 (add_symtab_completions): Add lookup_name_info parameters and
1198 adjust.
1199 (default_collect_symbol_completion_matches_break_on): Add
1200 name_match_type parameter, and use it. Use lookup_name_info.
1201 (default_collect_symbol_completion_matches)
1202 (collect_symbol_completion_matches): Add name_match_type
1203 parameter, and pass it down.
1204 (collect_symbol_completion_matches_type): Adjust.
1205 (collect_file_symbol_completion_matches): Add name_match_type
1206 parameter, and use lookup_name_info.
1207 * symtab.h: Include <string> and "common/gdb_optional.h".
1208 (enum class symbol_name_match_type): New.
1209 (class ada_lookup_name_info): New.
1210 (struct demangle_for_lookup_info): New.
1211 (class lookup_name_info): New.
1212 (symbol_name_matcher_ftype): New.
1213 (SYMBOL_MATCHES_SEARCH_NAME): Use symbol_matches_search_name.
1214 (symbol_matches_search_name): Declare.
1215 (MSYMBOL_MATCHES_SEARCH_NAME): Delete.
1216 (default_collect_symbol_completion_matches)
1217 (collect_symbol_completion_matches)
1218 (collect_file_symbol_completion_matches): Add name_match_type
1219 parameter.
1220 (iterate_over_symbols): Use lookup_name_info.
1221 (completion_list_add_name): Declare.
1222 * utils.c (enum class strncmp_iw_mode): Moved to utils.h.
1223 (strncmp_iw_with_mode): Now extern.
1224 * utils.h (enum class strncmp_iw_mode): Moved from utils.c.
1225 (strncmp_iw_with_mode): Declare.
1226
1227 2017-11-08 Keith Seitz <keiths@redhat.com>
1228 Pedro Alves <palves@redhat.com>
1229
1230 * ada-lang.c (ada_language_defn): Install
1231 default_search_name_hash.
1232 * buildsym.c (struct buildsym_compunit): <language>: New field.
1233 (finish_block_internal): Pass language when creating dictionaries.
1234 (start_buildsym_compunit, start_symtab): New language parameters.
1235 Use them.
1236 (restart_symtab): Pass down compilation unit's language.
1237 * buildsym.h (enum language): Forward declare.
1238 (start_symtab): New 'language' parameter.
1239 * c-lang.c (c_language_defn, cplus_language_defn)
1240 (asm_language_defn, minimal_language_defn): Install
1241 default_search_name_hash.
1242 * coffread.c (coff_start_symtab): Adjust.
1243 * d-lang.c (d_language_defn): Install default_search_name_hash.
1244 * dbxread.c (struct symloc): Add 'pst_language' field.
1245 (PST_LANGUAGE): Define.
1246 (start_psymtab, read_ofile_symtab): Use it.
1247 (process_one_symbol): New 'language' parameter. Pass it down.
1248 * dictionary.c (struct dictionary) <language>: New field.
1249 (DICT_LANGUAGE): Define.
1250 (dict_create_hashed, dict_create_hashed_expandable)
1251 (dict_create_linear, dict_create_linear_expandable): New parameter
1252 'language'. Set the dictionary's language.
1253 (iter_match_first_hashed): Adjust to rename.
1254 (insert_symbol_hashed): Assert we don't see mismatching
1255 languages. Adjust to rename.
1256 (dict_hash): Rename to ...
1257 (default_search_name_hash): ... this and make extern.
1258 * dictionary.h (struct language_defn): Forward declare.
1259 (dict_create_hashed): New parameter 'language'.
1260 * dwarf2read.c (dwarf2_start_symtab): Pass down language.
1261 * f-lang.c (f_language_defn): Install default_search_name_hash.
1262 * go-lang.c (go_language_defn): Install default_search_name_hash.
1263 * jit.c (finalize_symtab): Pass compunit's language to dictionary
1264 creation.
1265 * language.c (unknown_language_defn, auto_language_defn):
1266 * language.h (language_defn::la_search_name_hash): New field.
1267 (default_search_name_hash): Declare.
1268 * m2-lang.c (m2_language_defn): Install default_search_name_hash.
1269 * mdebugread.c (new_block): New parameter 'language'.
1270 * mdebugread.c (parse_symbol): Pass symbol language to block
1271 allocation.
1272 (psymtab_to_symtab_1): Pass down language.
1273 (new_symtab): Pass compunit's language to block allocation.
1274 * objc-lang.c (objc_language_defn): Install
1275 default_search_name_hash.
1276 * opencl-lang.c (opencl_language_defn):
1277 * p-lang.c (pascal_language_defn): Install
1278 default_search_name_hash.
1279 * rust-lang.c (rust_language_defn): Install
1280 default_search_name_hash.
1281 * stabsread.h (enum language): Forward declare.
1282 (process_one_symbol): Add 'language' parameter.
1283 * symtab.c (search_name_hash): New function.
1284 * symtab.h (search_name_hash): Declare.
1285 * xcoffread.c (read_xcoff_symtab): Pass language to start_symtab.
1286
1287 2017-11-08 Pedro Alves <palves@redhat.com>
1288
1289 * cp-name-parser.y (main): Don't initialize extra_chars.
1290
1291 2017-11-07 Tom Tromey <tom@tromey.com>
1292
1293 * event-top.h (command_handler): Constify.
1294 * record-full.c (cmd_record_full_start): Update.
1295 * thread.c (thread_apply_all_command): Update.
1296 * printcmd.c (eval_command): Update.
1297 * mi/mi-main.c (mi_execute_cli_command): Update.
1298 (mi_execute_async_cli_command): Update.
1299 * tui/tui-stack.c (tui_update_command): Update.
1300 * cli/cli-interp.c (safe_execute_command): Constify.
1301 * record.c (record_start): Update.
1302 (record_start, record_stop, cmd_record_start): Update.
1303 * record-btrace.c (cmd_record_btrace_bts_start): Update.
1304 (cmd_record_btrace_pt_start): Update.
1305 (cmd_record_btrace_start): Update.
1306 (cmd_record_btrace_start): Update.
1307 * reverse.c (exec_reverse_once): Update.
1308 * python/python.c (execute_gdb_command): Don't copy the command.
1309 * event-top.c (command_line_handler): Update.
1310 (command_handler): Constify.
1311 * defs.h (deprecated_call_command_hook): Constify.
1312 * cli/cli-script.h (execute_user_command): Constify.
1313 * cli/cli-script.c (execute_user_command): Constify.
1314 (execute_cmd_pre_hook, execute_cmd_post_hook): Constify.
1315 (enum command_control_type): Update.
1316 * main.c (catch_command_errors): Remove non-const overload.
1317 (catch_command_errors_ftype): Remove.
1318 * python/py-cmd.c (cmdpy_function): Constify.
1319 * guile/scm-cmd.c (cmdscm_function): Constify.
1320 * cli/cli-dump.c (call_dump_func): Constify.
1321 * cli/cli-decode.c (do_const_cfunc): Constify.
1322 (do_sfunc): Constify.
1323 (cmd_func): Constify.
1324 * gdbcmd.h (execute_command, execute_command_to_string): Constify.
1325 * top.h (execute_command): Constify.
1326 * top.c (execute_command): Constify.
1327 (execute_command_to_string): Constify.
1328 (deprecated_call_command_hook): Constify.
1329 * command.h (cmd_func): Constify.
1330 * cli/cli-decode.h (struct cmd_list_element) <func>: Constify.
1331
1332 2017-11-07 Tom Tromey <tom@tromey.com>
1333
1334 * ada-lang.c (catch_ada_exception_command): Constify.
1335 (catch_assert_command): Constify.
1336 * break-catch-throw.c (catch_catch_command, catch_throw_command)
1337 (catch_rethrow_command): Constify.
1338 (catch_exception_command_1): Constify.
1339 * breakpoint.h (add_catch_command): Constify.
1340 * break-catch-syscall.c (catch_syscall_command_1): Constify.
1341 (catch_syscall_split_args): Constify.
1342 * break-catch-sig.c (catch_signal_command): Constify.
1343 (catch_signal_split_args): Constify.
1344 * cli/cli-decode.h (struct cmd_list_element) <function>: Use
1345 cmd_const_sfunc_ftype.
1346 * cli/cli-decode.c (add_setshow_cmd_full): Constify.
1347 (add_setshow_enum_cmd, add_setshow_auto_boolean_cmd)
1348 (add_setshow_boolean_cmd, add_setshow_filename_cmd)
1349 (add_setshow_string_cmd, struct cmd_list_element)
1350 (add_setshow_optional_filename_cmd, add_setshow_integer_cmd)
1351 (add_setshow_uinteger_cmd, add_setshow_zinteger_cmd)
1352 (add_setshow_zuinteger_unlimited_cmd, add_setshow_zuinteger_cmd):
1353 Constify.
1354 (set_cmd_sfunc): Constify.
1355 (empty_sfunc): Constify.
1356 * command.h (add_setshow_enum_cmd, add_setshow_auto_boolean_cmd)
1357 (add_setshow_boolean_cmd, add_setshow_filename_cmd)
1358 (add_setshow_string_cmd, add_setshow_string_noescape_cmd)
1359 (add_setshow_optional_filename_cmd, add_setshow_integer_cmd)
1360 (add_setshow_uinteger_cmd, add_setshow_zinteger_cmd)
1361 (add_setshow_zuinteger_cmd, add_setshow_zuinteger_unlimited_cmd):
1362 Constify.
1363 (set_cmd_sfunc): Constify.
1364 (cmd_sfunc_ftype): Remove.
1365 * compile/compile.c (set_compile_args): Constify.
1366 * infrun.c (set_disable_randomization): Constify.
1367 * infcmd.c (set_args_command, set_cwd_command): Constify.
1368 * breakpoint.c (set_condition_evaluation_mode): Constify.
1369 (add_catch_command): Constify.
1370 (catch_fork_command_1, catch_exec_command_1)
1371 (catch_load_command_1, catch_unload_command_1): Constify.
1372 (catch_load_or_unload): Constify.
1373 * guile/scm-param.c (pascm_set_func): Constify.
1374 (add_setshow_generic): Constify.
1375 * python/py-param.c (get_set_value): Constify.
1376 * top.h (set_verbose): Constify.
1377 * tui/tui-win.c (tui_set_var_cmd): Constify.
1378 * mi/mi-main.c (set_mi_async_command): Constify.
1379 * cli/cli-logging.c (set_logging_overwrite)
1380 (set_logging_redirect): Constify.
1381 * value.c (set_max_value_size): Constify.
1382 * valprint.c (set_input_radix, set_output_radix): Constify.
1383 * utils.c (set_width_command, set_height_command): Constify.
1384 * typeprint.c (set_print_type_methods, set_print_type_typedefs): Constify.
1385 * tracepoint.c (set_disconnected_tracing)
1386 (set_circular_trace_buffer, set_trace_buffer_size)
1387 (set_trace_user, set_trace_notes, set_trace_stop_notes): Constify.
1388 * top.c (set_history_size_command, set_verbose, set_editing)
1389 (set_gdb_datadir, set_history_filename): Constify.
1390 * target.c (set_targetdebug, maint_set_target_async_command)
1391 (maint_set_target_non_stop_command, set_target_permissions)
1392 (set_write_memory_permission): Constify.
1393 (open_target): Constify.
1394 * target-descriptions.c (set_tdesc_filename_cmd): Constify.
1395 * target-dcache.c (set_stack_cache, set_code_cache): Constify.
1396 * symtab.c (set_symbol_cache_size_handler): Constify.
1397 * symfile.c (set_ext_lang_command): Constify.
1398 * symfile-debug.c (set_debug_symfile): Constify.
1399 * source.c (set_directories_command): Constify.
1400 * solib.c (reload_shared_libraries, gdb_sysroot_changed): Constify.
1401 * serial.c (set_parity): Constify.
1402 * rs6000-tdep.c (powerpc_set_soft_float, powerpc_set_vector_abi): Constify.
1403 * remote.c (set_remote_exec_file, set_remotebreak)
1404 (set_remote_protocol_Z_packet_cmd, set_range_stepping): Constify.
1405 * record.c (set_record_insn_history_size)
1406 (set_record_call_history_size): Constify.
1407 * record-full.c (set_record_full_insn_max_num): Constify.
1408 * proc-api.c (set_procfs_trace_cmd, set_procfs_file_cmd): Constify.
1409 * osabi.c (set_osabi): Constify.
1410 * mips-tdep.c (set_mips64_transfers_32bit_regs)
1411 (reinit_frame_cache_sfunc, mips_abi_update): Constify.
1412 * maint.c (maintenance_set_profile_cmd): Constify.
1413 * linux-thread-db.c (set_libthread_db_search_path): Constify.
1414 * language.c (set_language_command, set_range_command)
1415 (set_case_command): Constify.
1416 * infrun.c (set_non_stop, set_observer_mode)
1417 (set_stop_on_solib_events, set_schedlock_func)
1418 (set_exec_direction_func): Constify.
1419 * infcmd.c (set_inferior_tty_command): Constify.
1420 * disasm.c (set_disassembler_options_sfunc): Constify.
1421 * demangle.c (set_demangling_command): Constify.
1422 * dcache.c (set_dcache_size, set_dcache_line_size): Constify.
1423 * cris-tdep.c (set_cris_version, set_cris_mode)
1424 (set_cris_dwarf2_cfi): Constify.
1425 * corefile.c (set_gnutarget_command): Constify.
1426 * charset.c (set_host_charset_sfunc, set_target_charset_sfunc)
1427 (set_target_wide_charset_sfunc): Constify.
1428 * breakpoint.c (update_dprintf_commands): Constify.
1429 * auto-load.c (set_auto_load_dir, set_auto_load_safe_path): Constify.
1430 * arm-tdep.c (set_fp_model_sfunc, arm_set_abi)
1431 (set_disassembly_style_sfunc): Constify.
1432 * arch-utils.c (set_endian, set_architecture): Constify.
1433 * alpha-tdep.c (reinit_frame_cache_sfunc): Constify.
1434 * agent.c (set_can_use_agent): Constify.
1435
1436 2017-11-07 Tom Tromey <tom@tromey.com>
1437
1438 * go32-nat.c (go32_sysinfo, go32_sldt, go32_sgdt, go32_sidt)
1439 (go32_pde, go32_pte, go32_pte_for_address): Constify.
1440 * gnu-nat.c (_parse_bool_arg, show_thread_default_pause_cmd)
1441 (set_thread_default_pause_cmd, set_thread_default_run_cmd)
1442 (show_thread_default_run_cmd, set_thread_default_detach_sc_cmd)
1443 (parse_int_arg, show_thread_default_detach_sc_cmd)
1444 (set_signals_cmd, show_signals_cmd, set_sig_thread_cmd)
1445 (show_sig_thread_cmd, set_stopped_cmd, show_stopped_cmd)
1446 (set_exceptions_cmd, show_exceptions_cmd, set_task_pause_cmd)
1447 (show_task_pause_cmd, set_task_detach_sc_cmd)
1448 (show_task_detach_sc_cmd, set_task_exc_port_cmd)
1449 (set_noninvasive_cmd, set_thread_pause_cmd)
1450 (show_thread_pause_cmd, set_thread_run_cmd, show_thread_run_cmd)
1451 (set_thread_detach_sc_cmd, show_thread_detach_sc_cmd)
1452 (set_thread_exc_port_cmd, thread_takeover_sc_cmd): Constify.
1453 * windows-nat.c (display_selectors): Constify.
1454 * cli/cli-decode.h (struct cmd_list_element) <function>: Remove
1455 non-const "cfunc".
1456 * cli/cli-decode.c (set_cmd_cfunc): Remove non-const overload.
1457 (cmd_cfunc_eq): Likewise.
1458 (struct cmd_list_element): Likewise.
1459 (do_cfunc): Remove.
1460 (cli_user_command_p): Update.
1461 * command.h (add_cmd): Remove non-const overload.
1462 (cmd_cfunc_ftype): Remove typedef.
1463 (cmd_cfunc_eq): Remove non-const overload.
1464 * value.c (show_values): Constify.
1465 * thread.c (thread_apply_all_command): Constify.
1466 * symfile.c (load_command): Constify.
1467 * source.c (directory_command): Constify.
1468 * maint.c (maintenance_internal_error)
1469 (maintenance_demangler_warning, maintenance_space_display)
1470 (maintenance_print_architecture, maintenance_translate_address)
1471 (maintenance_info_selftests, maintenance_internal_warning):
1472 Constify.
1473 * breakpoint.c (disable_trace_command, enable_trace_command):
1474 Constify.
1475 * auto-load.c (info_auto_load_local_gdbinit, add_auto_load_dir):
1476 Constify.
1477 (add_auto_load_safe_path): Constify.
1478 * guile/scm-auto-load.c (info_auto_load_guile_scripts): Constify.
1479 * top.h (show_commands): Constify.
1480 * linux-thread-db.c (info_auto_load_libthread_db): Constify.
1481 * sparc64-tdep.c (adi_examine_command): Constify.
1482 (adi_assign_command): Constify.
1483
1484 2017-11-07 Tom Tromey <tom@tromey.com>
1485
1486 * frame.h (info_locals_command, info_args_command): Constify.
1487 * auto-load.h (auto_load_info_scripts): Constify.
1488 * inferior.h (registers_info): Constify.
1489 * copying.c: Rebuild.
1490 * copying.awk: Constify generated commands.
1491 * auto-load.c (auto_load_info_scripts)
1492 (info_auto_load_gdb_scripts): Constify.
1493 * cli/cli-decode.c (struct cmd_list_element): Take a
1494 cmd_const_cfunc_ftype.
1495 * command.h (add_info): Take a cmd_const_cfunc_ftype.
1496 * tui/tui-win.c (tui_all_windows_info): Constify.
1497 * python/py-auto-load.c (info_auto_load_python_scripts):
1498 Constify.
1499 * cli/cli-cmds.c (show_command): Remove non-const overload.
1500 * tracepoint.c (info_tvariables_command, info_scope_command):
1501 Constify.
1502 (info_static_tracepoint_markers_command): Constify.
1503 * thread.c (info_threads_command): Constify.
1504 (print_thread_info_1): Constify.
1505 * target.c (info_target_command): Constify.
1506 * symtab.c (info_sources_command, info_functions_command)
1507 (info_types_command): Constify.
1508 (info_variables_command): Remove non-const overload.
1509 * symfile.c (info_ext_lang_command): Constify.
1510 * stack.c (info_frame_command, info_locals_command)
1511 (info_args_command): Constify.
1512 (backtrace_command): Remove non-const overload.
1513 * source.c (info_source_command, info_line_command): Constify.
1514 * solib.c (info_sharedlibrary_command): Constify.
1515 * skip.c (info_skip_command): Constify.
1516 * ser-go32.c (info_serial_command): Constify.
1517 * reverse.c (info_bookmarks_command): Constify.
1518 * printcmd.c (info_symbol_command, info_address_command)
1519 (info_display_command): Constify.
1520 * osdata.c (info_osdata_command): Constify.
1521 * objc-lang.c (info_selectors_command, info_classes_command):
1522 Constify.
1523 * nto-procfs.c (procfs_pidlist, procfs_meminfo): Constify.
1524 * memattr.c (info_mem_command): Constify.
1525 * macrocmd.c (info_macro_command, info_macros_command): Constify.
1526 * linux-fork.c (info_checkpoints_command): Constify.
1527 * infrun.c (info_signals_command): Constify.
1528 * inflow.c (info_terminal_command): Constify.
1529 * inferior.c (info_inferiors_command): Constify.
1530 (print_inferior): Constify.
1531 * infcmd.c (info_program_command, info_all_registers_command)
1532 (info_registers_command, info_vector_command)
1533 (info_float_command): Constify.
1534 (registers_info): Constify.
1535 * gnu-nat.c (info_send_rights_cmd, info_recv_rights_cmd)
1536 (info_port_sets_cmd, info_dead_names_cmd, info_port_rights_cmd):
1537 Constify.
1538 * f-valprint.c (info_common_command): Constify.
1539 * dcache.c (info_dcache_command): Constify.
1540 (dcache_info_1): Constify.
1541 * darwin-nat-info.c (info_mach_tasks_command)
1542 (info_mach_task_command, info_mach_ports_command)
1543 (info_mach_port_command, info_mach_threads_command)
1544 (info_mach_thread_command, info_mach_regions_command)
1545 (info_mach_regions_recurse_command, info_mach_region_command)
1546 (info_mach_exceptions_command): Constify.
1547 (get_task_from_args): Constify.
1548 * cp-support.c (info_vtbl_command): Constify.
1549 * breakpoint.c (info_watchpoints_command)
1550 (info_tracepoints_command): Constify.
1551 (info_breakpoints_command): Remove non-const overload.
1552 * avr-tdep.c (avr_io_reg_read_command): Constify.
1553 * auxv.c (info_auxv_command): Constify.
1554 * ada-tasks.c (info_tasks_command): Constify.
1555 (info_task): Constify.
1556 * ada-lang.c (info_exceptions_command): Constify.
1557
1558 2017-11-07 Tom Tromey <tom@tromey.com>
1559
1560 * solib.h (no_shared_libraries): Constify.
1561 * frame.h (return_command): Constify.
1562 * cli/cli-cmds.h (quit_command): Constify.
1563 * top.h (quit_command, execute_command): Constify.
1564 * target.h (flash_erase_command): Constify.
1565 * inferior.h (set_inferior_args, attach_command): Constify.
1566 * tracepoint.h (start_tracing, stop_tracing): Constify.
1567 * breakpoint.h (break_command, tbreak_command)
1568 (hbreak_command_wrapper, thbreak_command_wrapper)
1569 (rbreak_command_wrapper, watch_command_wrapper)
1570 (awatch_command_wrapper, rwatch_command_wrapper)
1571 (get_tracepoint_by_number): Constify.
1572 * symtab.c (info_variables_command, rbreak_command)
1573 (symtab_symbol_info): Constify.
1574 (info_variables_command): Add non-const overload.
1575 * top.c (dont_repeat_command): Constify.
1576 * breakpoint.c (ignore_command, commands_command)
1577 (condition_command, tbreak_command, hbreak_command)
1578 (thbreak_command, clear_command, break_command)
1579 (info_breakpoints_command, watch_command, rwatch_command)
1580 (awatch_command, trace_command, ftrace_command, strace_command)
1581 (trace_pass_command, break_range_command, dprintf_command)
1582 (agent_printf_command, get_tracepoint_by_number)
1583 (watch_maybe_just_location, trace_pass_command): Constify.
1584 (info_breakpoints_command): Add non-const overload.
1585 * tracefile.c (tsave_command): Constify.
1586 * infcmd.c (attach_command, disconnect_command, signal_command)
1587 (queue_signal_command, stepi_command, nexti_command)
1588 (finish_command, next_command, step_command, until_command)
1589 (advance_command, jump_command, continue_command, run_command)
1590 (start_command, starti_command, interrupt_command)
1591 (run_command_1, set_inferior_args, step_1): Constify.
1592 * inferior.c (add_inferior_command, remove_inferior_command)
1593 (clone_inferior_command): Constify.
1594 * linux-fork.c (checkpoint_command, restart_command): Constify.
1595 * windows-nat.c (signal_event_command): Constify.
1596 * guile/guile.c (guile_repl_command, guile_command): Constify.
1597 * printcmd.c (x_command, display_command, printf_command)
1598 (output_command, set_command, call_command, print_command)
1599 (eval_command): Constify.
1600 (non_const_set_command): Remove.
1601 (_initialize_printcmd): Update.
1602 * source.c (forward_search_command, reverse_search_command):
1603 Constify.
1604 * jit.c (jit_reader_load_command, jit_reader_unload_command):
1605 Constify.
1606 * infrun.c (handle_command): Constify.
1607 * memattr.c (mem_command): Constify.
1608 * stack.c (return_command, up_command, up_silently_command)
1609 (down_command, down_silently_command, frame_command)
1610 (backtrace_command, func_command, backtrace_command_1): Constify.
1611 (backtrace_command): Add non-const overload.
1612 * remote-sim.c (simulator_command): Constify.
1613 * exec.c (set_section_command): Constify.
1614 * tracepoint.c (tdump_command, trace_variable_command)
1615 (tstatus_command, tstop_command, tstart_command)
1616 (end_actions_pseudocommand, while_stepping_pseudocommand)
1617 (collect_pseudocommand, teval_pseudocommand, actions_command)
1618 (start_tracing, stop_tracing): Constify.
1619 * value.c (init_if_undefined_command): Constify.
1620 * tui/tui-stack.c (tui_update_command): Constify.
1621 * tui/tui-win.c (tui_refresh_all_command)
1622 (tui_set_tab_width_command, tui_set_win_height_command)
1623 (tui_set_focus_command, tui_scroll_forward_command)
1624 (tui_scroll_backward_command, tui_scroll_left_command)
1625 (tui_scroll_right_command, parse_scrolling_args, tui_set_focus)
1626 (tui_set_win_height): Constify.
1627 * tui/tui-layout.c (tui_layout_command): Constify.
1628 * procfs.c (proc_trace_syscalls, proc_trace_sysentry_cmd)
1629 (proc_trace_sysexit_cmd, proc_untrace_sysentry_cmd)
1630 (proc_untrace_sysexit_cmd): Constify.
1631 * remote.c (threadlist_test_cmd, threadinfo_test_cmd)
1632 (threadset_test_cmd, threadlist_update_test_cmd)
1633 (threadalive_test): Constify.
1634 * objc-lang.c (print_object_command): Constify.
1635 * command.h (add_com): Constify.
1636 * cli/cli-dump.c (restore_command): Constify.
1637 * cli/cli-cmds.c (pwd_command, echo_command, quit_command)
1638 (help_command, complete_command, shell_command, edit_command)
1639 (list_command, disassemble_command, make_command)
1640 (apropos_command, alias_command): Constify.
1641 * cli/cli-script.c (document_command, define_command)
1642 (while_command, if_command, validate_comname): Constify.
1643 * cli/cli-decode.c (struct cmd_list_element): Change type of
1644 "fun".
1645 * target.c (do_monitor_command, flash_erase_command): Constify.
1646 * regcache.c (reg_flush_command): Constify.
1647 * reverse.c (reverse_step, reverse_next, reverse_stepi)
1648 (reverse_nexti, reverse_continue, reverse_finish)
1649 (save_bookmark_command, goto_bookmark_command)
1650 (exec_reverse_once): Constify.
1651 * python/python.c (python_interactive_command, python_command):
1652 Constify.
1653 * typeprint.c (ptype_command, whatis_command, whatis_exp):
1654 Constify.
1655 * solib.c (sharedlibrary_command, no_shared_libraries): Constify.
1656 * gcore.c (gcore_command): Constify.
1657
1658 2017-11-07 Tom Tromey <tom@tromey.com>
1659
1660 * printcmd.c (x_command): Call set_repeat_arguments.
1661 * cli/cli-cmds.c (list_command): Call set_repeat_arguments.
1662 * top.c (repeat_arguments): New global.
1663 (set_repeat_arguments): New function.
1664 (execute_command): Handle repeat_arguments.
1665 (show_commands): Calls set_repeat_arguments.
1666 * command.h (set_repeat_arguments): Declare.
1667
1668 2017-11-07 Tom Tromey <tom@tromey.com>
1669
1670 * stack.c (backtrace_command): Use std::string.
1671 (backtrace_command_1): Make "count_exp" const.
1672
1673 2017-11-07 Tom Tromey <tom@tromey.com>
1674
1675 * source.c (directory_switch, mod_path, add_path): Constify.
1676 * defs.h (add_path, mod_path, directory_switch): Constify.
1677 * mi/mi-cmd-env.c (env_mod_path): Constify.
1678
1679 2017-11-07 Tom Tromey <tom@tromey.com>
1680
1681 * infcmd.c (strip_bg_char): Return gdb::unique_xmalloc_ptr.
1682 (run_command_1, continue_command, step_1, jump_command)
1683 (signal_command, until_command, advance_command, finish_command)
1684 (attach_command): Update.
1685
1686 2017-11-07 Tom Tromey <tom@tromey.com>
1687
1688 * command.h (set_cmd_cfunc): Don't declare.
1689 * cli/cli-decode.c (set_cmd_cfunc): Now static.
1690
1691 2017-11-07 Tom Tromey <tom@tromey.com>
1692
1693 * stack.c (select_frame_command): Constify.
1694 * cli/cli-decode.c (add_com_suppress_notification): Constify.
1695 * command.h (add_com_suppress_notification): Constify.
1696
1697 2017-11-07 Tom Tromey <tom@tromey.com>
1698
1699 * breakpoint.c (stop_command): Constify.
1700 * cli/cli-decode.c (struct cmd_list_element): Constify.
1701 * command.h (add_abbrev_prefix_cmd): Constify.
1702
1703 2017-11-07 Pedro Alves <palves@redhat.com>
1704
1705 * breakpoint.c (extract_bp_kind): New enum.
1706 (extract_bp_num, extract_bp_or_bp_range): New functions, partially
1707 factored out from ...
1708 (extract_bp_number_and_location): ... here.
1709 * cli/cli-utils.c (get_number_trailer): Handle '-$variable'.
1710
1711 2017-11-07 Pedro Alves <palves@redhat.com>
1712
1713 * breakpoint.c (extract_bp_number_and_location): Change return
1714 type to void. Throw error instead of warning.
1715 (enable_disable_command): Adjust.
1716
1717 2017-11-07 Xavier Roirand <roirand@adacore.com>
1718 Pedro Alves <palves@redhat.com>
1719
1720 * breakpoint.c (map_breakpoint_number_range): New, factored out
1721 from ...
1722 (map_breakpoint_numbers): ... here.
1723 (find_location_by_number): Change parameters from string to
1724 breakpoint number and location.
1725 (extract_bp_number_and_location): New function.
1726 (enable_disable_bp_num_loc)
1727 (enable_disable_breakpoint_location_range)
1728 (enable_disable_command): New functions, factored out ...
1729 (enable_command, disable_command): ... these functions, and
1730 adjusted to support ranges.
1731 * NEWS: Document enable/disable breakpoint location range feature.
1732
1733 2017-11-06 Luis Machado <luis.machado@linaro.org>
1734
1735 * MAINTAINERS (Write After Approval): Update my e-mail address.
1736
1737 2017-11-06 Pedro Alves <palves@redhat.com>
1738
1739 * gnu-nat.c (gnu_terminal_init): Delete.
1740 (gnu_target): Don't install gnu_terminal_init.
1741 * inflow.c (child_terminal_init_with_pgrp): Delete, merged with ...
1742 (child_terminal_init): ... this function.
1743
1744 2017-11-06 Pedro Alves <palves@redhat.com>
1745
1746 * common/common.m4 (GDB_AC_COMMON): No longer check termio.h nor
1747 sgtty.h.
1748 * config.in, configure: Regenerate.
1749
1750 2017-11-06 Pedro Alves <palves@redhat.com>
1751
1752 * event-top.c: Check SIGTSTP instead of STOP_SIGNAL thoughout.
1753 (async_init_signals): Adjust.
1754 (handle_stop_sig): Rename to ...
1755 (handle_sigtstp): ... this.
1756 (async_stop_sig): Rename to ...
1757 (async_sigtstp_handler): ... this, and delete STOP_SIGNAL !=
1758 SIGTSTP path.
1759 * event-top.h: Move signal.h include to the top. Check SIGTSTP
1760 instead of STOP_SIGNAL thoughout.
1761 (handle_stop_sig): Rename to ...
1762 (handle_sigtstp): ... this.
1763 * top.c (command_line_input): Replace STOP_SIGNAL -> SIGTSTP.
1764
1765 2017-11-06 Pedro Alves <palves@redhat.com>
1766
1767 * inflow.c (child_terminal_inferior, child_terminal_ours_1): No
1768 longer set flags twice in row.
1769
1770 2017-11-06 Pedro Alves <palves@redhat.com>
1771
1772 * Makefile.in (SER_HARDWIRE): Update comment.
1773 (HFILES_NO_SRCDIR): Remove gdb_termios.h.
1774 * common/gdb_termios.h: Delete file.
1775 * common/job-control.c: Include termios.h and unistd.h instead of
1776 gdb_termios.h.
1777 (gdb_setpgid): Remove HAVE_TERMIOS || TIOCGPGRP preprocessor
1778 check.
1779 (have_job_control): Check HAVE_TERMIOS_H instead of HAVE_TERMIOS.
1780 Remove sgtty code.
1781 * configure.ac: No longer check for termio.h and sgtty.h.
1782 * configure: Regenerate.
1783 * inflow.c: Include termios.h instead of gdb_termios.h. Replace
1784 PROCESS_GROUP_TYPE checks with HAVE_TERMIOS_H checks throughout.
1785 Replace PROCESS_GROUP_TYPE references with pid_t references
1786 throughout.
1787 (gdb_getpgrp): Delete.
1788 (set_initial_gdb_ttystate): Use tcgetpgrp instead of gdb_getpgrp.
1789 (child_terminal_inferior): Remove comment. Remove sgtty code.
1790 (child_terminal_ours_1): Use tcgetpgrp directly instead of
1791 gdb_getpgrp. Use serial_set_tty_state instead aof
1792 serial_noflush_set_tty_state. Remove sgtty code.
1793 * inflow.h: Include unistd.h instead of gdb_termios.h. Replace
1794 PROCESS_GROUP_TYPE check with HAVE_TERMIOS_H check.
1795 (inferior_process_group): Now returns pid_t.
1796 * ser-base.c (ser_base_noflush_set_tty_state): Delete.
1797 * ser-base.h (ser_base_noflush_set_tty_state): Delete.
1798 * ser-event.c (serial_event_ops): Update.
1799 * ser-go32.c (dos_noflush_set_tty_state): Delete.
1800 (dos_ops): Update.
1801 * ser-mingw.c (hardwire_ops, tty_ops, pipe_ops, tcp_ops): Update.
1802 * ser-pipe.c (pipe_ops): Update.
1803 * ser-tcp.c (tcp_ops): Update.
1804 * ser-unix.c: Include termios.h instead of gdb_termios.h. Remove
1805 HAVE_TERMIOS checks.
1806 [HAVE_TERMIO] (struct hardwire_ttystate): Delete.
1807 [HAVE_SGTTY] (struct hardwire_ttystate): Delete.
1808 (get_tty_state, set_tty_state): Drop termio and sgtty code, and
1809 assume termios.
1810 (hardwire_noflush_set_tty_state): Delete.
1811 (hardwire_print_tty_state, hardwire_drain_output)
1812 (hardwire_flush_output, hardwire_flush_input)
1813 (hardwire_send_break, hardwire_raw, hardwire_setbaudrate)
1814 (hardwire_setstopbits, hardwire_setparity): Drop termio and sgtty
1815 code, and assume termios.
1816 (hardwire_ops): Update.
1817 (_initialize_ser_hardwire): Remove HAVE_TERMIOS check.
1818 * serial.c (serial_noflush_set_tty_state): Delete.
1819 * serial.h (serial_noflush_set_tty_state): Delete.
1820 (serial_ops::noflush_set_tty_state): Delete.
1821
1822 2017-11-06 Ulrich Weigand <uweigand@de.ibm.com>
1823
1824 * Makefile.in (SFILES): Remove doublest.c and dfp.c.
1825 (HFILES_NO_SRCDIR): Remove doublest.h and dfp.h.
1826 (COMMON_OBS): Remove doublest.o and dfp.o.
1827 Do not build target-float.c (instead of doublest.c)
1828 with -Wformat-nonliteral.
1829
1830 * doublest.c: Remove file.
1831 * doublest.h: Remove file.
1832 * dfp.c: Remove file.
1833 * dfp.h: Remove file.
1834
1835 * target-float.c: Do not include "doublest.h" and "dfp.h".
1836 (DOUBLEST): Move here from doublest.h.
1837 (enum float_kind): Likewise.
1838 (FLOATFORMAT_CHAR_BIT): Likewise.
1839 (FLOATFORMAT_LARGEST_BYTES): Likewise.
1840 (floatformat_totalsize_bytes): Move here from doublest.c. Make static.
1841 (floatformat_precision): Likewise.
1842 (floatformat_normalize_byteorder, get_field, put_field): Likewise.
1843 (floatformat_is_negative, floatformat_classify, floatformat_mantissa):
1844 Likewise.
1845 (host_float_format, host_double_format, host_long_double_format):
1846 Likewise.
1847 (floatformat_to_string, floatformat_from_string): Likewise.
1848 (floatformat_to_doublest): Likewise. Also, inline the original
1849 convert_floatformat_to_doublest.
1850 (floatformat_from_doublest): Likewise. Also, inline the original
1851 convert_floatformat_from_doublest.
1852
1853 Include "dpd/decimal128.h", "dpd/decimal64.h", and "dpd/decimal32.h".
1854 (MAX_DECIMAL_STRING): Move here from dfp.c.
1855 (match_endianness): Likewise.
1856 (set_decnumber_context, decimal_check_errors): Likewise.
1857 (decimal_from_number, decimal_to_number): Likewise.
1858 (decimal_to_string, decimal_from_string): Likewise. Make static.
1859 (decimal_from_longest, decimal_from_ulongest): Likewise.
1860 (decimal_to_longest): Likewise.
1861 (decimal_binop, decimal_is_zero, decimal_compare): Likewise.
1862 (decimal_convert): Likewise.
1863
1864 2017-11-06 Ulrich Weigand <uweigand@de.ibm.com>
1865
1866 * doublest.c: Do not include "gdbtypes.h".
1867 (extract_typed_floating): Remove.
1868 (store_typed_floating): Remove.
1869 (convert_typed_floating): Remove.
1870 * doublest.h (struct type): Remove.
1871 (DOUBLEST_PRINT_FORMAT): Remove.
1872 (DOUBLEST_SCAN_FORMAT): Remove.
1873 (extract_typed_floating): Remove.
1874 (store_typed_floating): Remove.
1875 (convert_typed_floating): Remove.
1876
1877 * dfp.c (decimal_from_doublest): Remove.
1878 (decimal_to_doublest): Remove.
1879 * dfp.h: Do not include "doublest.h".
1880 (decimal_from_doublest): Remove.
1881 (decimal_to_doublest): Remove.
1882
1883 * value.c: Do not include "doublest.h" and "dfp.h".
1884 (value_as_double): Remove.
1885 (unpack_double): Remove.
1886 (value_from_double): Remove.
1887 (value_from_decfloat): Remove.
1888 * value.h: Do not include "doublest.h".
1889 (value_as_double): Remove.
1890 (unpack_double): Remove.
1891 (value_from_double): Remove.
1892 (value_from_decfloat): Remove.
1893
1894 2017-11-06 Ulrich Weigand <uweigand@de.ibm.com>
1895
1896 * i386-tdep.c: Include "target-float.h". Do not include "doublest.h".
1897 (i386_extract_return_value): Use target_float_convert.
1898 (i386_store_return_value): Likewise.
1899 * i387-tdep.c (i387_register_to_value): Use target_float_convert.
1900 (i387_value_to_register): Likewise.
1901 * ia64-tdep.c: Include "target-float.h". Do not include "doublest.h".
1902 (ia64_register_to_value): Use target_float_convert.
1903 (ia64_value_to_register): Likewise.
1904 (ia64_extract_return_value): Likewise.
1905 (ia64_store_return_value): Likewise.
1906 (ia64_push_dummy_call): Likewise.
1907 * m68k-tdep.c: Include "target-float.h".
1908 (m68k_register_to_value): Use target_float_convert.
1909 (m68k_value_to_register): Likewise.
1910 (m68k_svr4_extract_return_value): Likewise.
1911 (m68k_svr4_store_return_value): Likewise.
1912 * ppc-sysv-tdep.c: Include "target-float.h".
1913 (ppc_sysv_abi_push_dummy_call): Use target_float_convert.
1914 (do_ppc_sysv_return_value): Likewise.
1915 (ppc64_sysv_abi_push_freg): Likewise.
1916 (ppc64_sysv_abi_return_value_base): Likewise.
1917 * rs6000-aix-tdep.c: Include "target-float.h".
1918 (rs6000_push_dummy_call): Use target_float_convert.
1919 (rs6000_return_value): Likewise.
1920 * rs6000-lynx178-tdep.c: Include "target-float.h".
1921 (rs6000_lynx178_push_dummy_call): Use target_float_convert.
1922 (rs6000_lynx178_return_value): Likewise.
1923 * rs6000-tdep.c: Include "target-float.h". Do not include "doublest.h".
1924 (rs6000_register_to_value): Use target_float_convert.
1925 (rs6000_value_to_register): Likewise.
1926 * arm-tdep.c: Include "target-float.h". Do not include "doublest.h".
1927 (arm_extract_return_value): Use target_float_convert.
1928 (arm_store_return_value): Likewise.
1929 * sh-tdep.c: Include "target-float.h". Do not include "doublest.h".
1930 (sh_register_convert_to_virtual): Use target_float_convert.
1931 (sh_register_convert_to_raw): Likewise.
1932 * sh64-tdep.c: Include "target-float.h".
1933 (sh64_extract_return_value): Use target_float_convert.
1934 (sh64_register_convert_to_virtual): Likewise.
1935 (sh64_register_convert_to_raw): Likewise. Fix argument types.
1936
1937 2017-11-06 Ulrich Weigand <uweigand@de.ibm.com>
1938
1939 * target-float.c (floatformat_to_host_double): New function.
1940 (floatformat_from_host_double): Likewise.
1941 (target_float_to_host_double): Likewise.
1942 (target_float_from_host_double): Likewise.
1943 * target-float.h (target_float_to_host_double): Add prototype.
1944 (target_float_from_host_double): Likewise.
1945
1946 * guile/scm-value.c: Include "target-float.h".
1947 (gdbscm_value_to_real): Use target_float_to_host_double.
1948 Handle integer source values via value_as_long.
1949 * guile/scm-math.c: Include "target-float.h". Do not include
1950 "doublest.h", "dfp.h", and "expression.h".
1951 (vlscm_convert_typed_number): Use target_float_from_host_double.
1952 (vlscm_convert_number): Likewise.
1953
1954 * python/py-value.c (valpy_float): Use target_float_to_host_double.
1955 (convert_value_from_python): Use target_float_from_host_double.
1956
1957 2017-11-06 Ulrich Weigand <uweigand@de.ibm.com>
1958
1959 * ada-lang.c (cast_to_fixed): Reimplement in target arithmetic.
1960 (cast_from_fixed): Likewise.
1961 (ada_scaling_type): New function.
1962 (ada_delta): Return value instead of DOUBLEST. Perform target
1963 arithmetic instead of host arithmetic.
1964 (scaling_factor): Rename to ...
1965 (ada_scaling_factor) ... this. Make non-static. Return value instead
1966 of DOUBLEST. Perform target arithmetic instead of host arithmetic.
1967 (ada_fixed_to_float): Remove.
1968 (ada_float_to_fixed): Remove.
1969 * ada-lang.h (ada_fixed_to_float): Remove.
1970 (ada_float_to_fixed): Remove.
1971 (ada_delta): Return value instead of DOUBLEST.
1972 (ada_scaling_factor): Add prototype.
1973
1974 * ada-typeprint.c: Include "target-float.h".
1975 (print_fixed_point_type): Perform target arithmetic instead of
1976 host arithmetic.
1977 * ada-valprint.c: Include "target-float.h".
1978 (ada_val_print_num): Perform target arithmetic instead of
1979 host arithmetic for fixed-point types.
1980
1981 2017-11-06 Ulrich Weigand <uweigand@de.ibm.com>
1982
1983 * target-float.c: Include <math.h>.
1984 (floatformat_binop): New function.
1985 (floatformat_compare): Likewise.
1986 (target_float_binop): Likewise.
1987 (target_float_compare): Likewise.
1988 * target-float.h: Include "expression.h".
1989 (target_float_binop): Add prototype.
1990 (target_float_compare): Likewise.
1991
1992 * valarith.c: Do not include "doublest.h" and "dfp.h".
1993 Include "common/byte-vector.h".
1994 (value_args_as_decimal): Remove, replace by ...
1995 (value_args_as_target_float): ... this function. Handle both
1996 binary and decimal target floating-point formats.
1997 (scalar_binop): Handle both binary and decimal FP using
1998 value_args_as_target_float and target_float_binop.
1999 (value_equal): Handle both binary and decimal FP using
2000 value_args_as_target_float and target_float_compare.
2001 (value_less): Likewise.
2002 (value_pos): Handle all scalar types as simple copy.
2003 (value_neg): Handle all scalar types via BINOP_SUB from 0.
2004 * dfp.c (decimal_binop): Throw error instead of internal_error
2005 when called with an unsupported operation code.
2006
2007 2017-11-06 Ulrich Weigand <uweigand@de.ibm.com>
2008
2009 * target-float.c (target_float_to_string): New function.
2010 (target_float_from_string): New function.
2011 * target-float.h (target_float_to_string): Add prototype.
2012 (target_float_from_string): Add prototype.
2013
2014 * valprint.c: Include "target-float.h". Do not include
2015 "doublest.h" and "dfp.h".
2016 (print_floating): Use target_float_to_string.
2017 * printcmd.c: Include "target-float.h". Do not include "dfp.h".
2018 (printf_floating): Use target_float_to_string.
2019 * i387-tdep.c: Include "target-float.h". Do not include "doublest.h".
2020 (print_i387_value): Use target_float_to_string.
2021 * mips-tdep.c: Include "target-float.h".
2022 (mips_print_fp_register): Use target_float_to_string.
2023 * sh64-tdep.c: Include "target-float.h".
2024 (sh64_do_fp_register): Use target_float_to_string.
2025
2026 * parse.c: Include "target-float.h". Do not include
2027 "doublest.h" and "dfp.h".
2028 (parse_float): Use target_float_from_string.
2029 * stabsread.c: Include "target-float.h". Do not include "doublest.h".
2030 (define_symbol): Use target_float_from_string.
2031 * gdbarch-selftests.c: Include "target-float.h".
2032 (register_to_value_test): Use target_float_from_string.
2033
2034 2017-11-06 Ulrich Weigand <uweigand@de.ibm.com>
2035
2036 * Makefile.c (SFILES): Add target-float.c.
2037 (HFILES_NO_SRCDIR): Add target-float.h.
2038 (COMMON_OBS): Add target-float.o.
2039 * target-float.h: New file.
2040 * target-float.c: New file.
2041
2042 * doublest.c (floatformat_classify): Fix detection of float_zero.
2043
2044 * gdbtypes.c (is_floating_type): New function.
2045 * gdbtypes.h (is_floating_type): Add prototype.
2046
2047 * value.c: Do not include "floatformat.h".
2048 (unpack_double): Use target_float_is_valid.
2049 (is_floating_value): New function.
2050 * value.h (is_floating_value): Add prototype-
2051
2052 * valarith.c: Include "target-float.h".
2053 (value_logical_not): Use target_float_is_zero.
2054
2055 * python/py-value.c: Include "target-float.h".
2056 (valpy_nonzero): Use target_float_is_zero.
2057
2058 2017-11-04 Tom Tromey <tom@tromey.com>
2059
2060 * h8300-tdep.c (h8300_push_dummy_call): Use std::vector.
2061
2062 2017-11-04 Tom Tromey <tom@tromey.com>
2063
2064 * breakpoint.c (set_momentary_breakpoint): Return
2065 breakpoint_up.
2066 (until_break_command): Update.
2067 (new_until_break_fsm): Change argument types to
2068 breakpoint_up.
2069 (set_momentary_breakpoint_at_pc): Return breakpoint_up.
2070 (do_delete_breakpoint_cleanup, make_cleanup_delete_breakpoint):
2071 Remove.
2072 * infcmd.c (finish_forward): Update.
2073 * breakpoint.h (set_momentary_breakpoint)
2074 (set_momentary_breakpoint_at_pc): Return breakpoint_up.
2075 (make_cleanup_delete_breakpoint): Remove.
2076 (struct breakpoint_deleter): New.
2077 (breakpoint_up): New typedef.
2078 * infrun.c (insert_step_resume_breakpoint_at_sal_1): Update.
2079 (insert_exception_resume_breakpoint): Update.
2080 (insert_exception_resume_from_probe): Update.
2081 (insert_longjmp_resume_breakpoint): Update.
2082 * arm-linux-tdep.c (arm_linux_copy_svc): Update.
2083 * elfread.c (elf_gnu_ifunc_resolver_stop): Update.
2084 * infcall.c (call_function_by_hand_dummy): Update
2085
2086 2017-11-04 Tom Tromey <tom@tromey.com>
2087
2088 * c-typeprint.c (c_type_print_base): Use gdb::unique_xmalloc_ptr.
2089
2090 2017-11-04 Tom Tromey <tom@tromey.com>
2091
2092 * linux-tdep.c (linux_core_info_proc_mappings): Use
2093 gdb::def_vector.
2094 (linux_get_siginfo_data): Return gdb::byte_vector. Remove
2095 "size" argument.
2096 (linux_corefile_thread): Update.
2097 (linux_make_corefile_notes): Remove unused variable.
2098
2099 2017-11-04 Tom Tromey <tom@tromey.com>
2100
2101 * ppc-linux-tdep.c (ppc_linux_get_syscall_number): Use
2102 gdb::byte_vector.
2103
2104 2017-11-04 Tom Tromey <tom@tromey.com>
2105
2106 * objfiles.c (do_free_objfile_cleanup): Remove.
2107 * compile/compile-object-load.c (compile_object_load): Update.
2108 * objfiles.h (make_cleanup_free_objfile): Remove.
2109
2110 2017-11-04 Tom Tromey <tom@tromey.com>
2111
2112 * sparc64-tdep.c (do_examine): Use gdb::def_vector.
2113 (adi_read_versions): Change "tags" to "gdb_byte *".
2114 (adi_print_versions): Likewise.
2115
2116 2017-11-04 Tom Tromey <tom@tromey.com>
2117
2118 * breakpoint.c
2119 (scoped_rbreak_breakpoints::scoped_rbreak_breakpoints): Rename
2120 from start_rbreak_breakpoints.
2121 (scoped_rbreak_breakpoints): Rename from end_rbreak_breakpoints.
2122 * breakpoint.h (class scoped_rbreak_breakpoints): New.
2123 (start_rbreak_breakpoints, end_rbreak_breakpoints): Remove.
2124 * symtab.c (do_end_rbreak_breakpoints): Remove.
2125 (rbreak_command): Use scoped_rbreak_breakpoints, std::string.
2126
2127 2017-11-04 Tom Tromey <tom@tromey.com>
2128
2129 * cp-namespace.c (reset_directive_searched): Remove.
2130 (cp_lookup_symbol_via_imports): Use scoped_restore.
2131 * cp-support.c (reset_directive_searched): Remove.
2132 (make_symbol_overload_list_using): Use scoped_restore.
2133 * d-namespace.c (d_lookup_symbol_imports): Use scoped_restore.
2134 (reset_directive_searched): Remove.
2135
2136 2017-11-04 Tom Tromey <tom@tromey.com>
2137
2138 * symfile.c (find_separate_debug_file_by_debuglink): Use
2139 unique_xmalloc_ptr.
2140
2141 2017-11-04 Tom Tromey <tom@tromey.com>
2142
2143 * compile/compile-loc2c.c (compute_stack_depth_worker): Change
2144 type of "info".
2145 (compute_stack_depth): Likewise.
2146 (do_compile_dwarf_expr_to_c): Use std::vector.
2147
2148 2017-11-04 Tom Tromey <tom@tromey.com>
2149
2150 * compile/compile-object-load.c (link_callbacks_einfo): Use
2151 std::string.
2152
2153 2017-11-04 Tom Tromey <tom@tromey.com>
2154
2155 * dwarf2read.c (process_full_comp_unit, process_full_type_unit):
2156 Use scoped_free_pendings.
2157 * dbxread.c (dbx_symfile_read, dbx_psymtab_to_symtab_1): Use
2158 scoped_free_pendings.
2159 * xcoffread.c (xcoff_psymtab_to_symtab_1): Use scoped_free_pendings.
2160 (xcoff_initial_scan): Likewise.
2161 * buildsym.c (reset_symtab_globals): Update comment.
2162 (scoped_free_pendings): Rename from really_free_pendings.
2163 (prepare_for_building): Update comment.
2164 (buildsym_init): Likewise.
2165 * buildsym.h (class scoped_free_pendings): New class.
2166 (really_free_pendings): Don't declare.
2167
2168 2017-11-03 Ulrich Weigand <uweigand@de.ibm.com>
2169
2170 * doublest.c (convert_doublest_to_floatformat): Fix uninitialized
2171 output when converting a zero value to a special byteorder format.
2172
2173 2017-11-02 Yao Qi <yao.qi@linaro.org>
2174
2175 * frame.c (do_frame_register_read): Remove aspace.
2176 * jit.c (jit_frame_sniffer): Likwise.
2177 * ppc-linux-tdep.c (ppu2spu_sniffer): Likewise.
2178 * regcache.c (regcache::regcache): Pass nullptr.
2179 (regcache_print): Caller updated.
2180 * regcache.h (regcache::regcache): Remove one constructor
2181 parameter aspace.
2182
2183 2017-11-02 Yao Qi <yao.qi@linaro.org>
2184
2185 * regcache.h (regcache) <m_readonly_p>: Change it to const bool.
2186
2187 2017-11-02 Yao Qi <yao.qi@linaro.org>
2188
2189 * breakpoint.c (insert_single_step_breakpoints): Update.
2190 * frame.c (struct frame_info) <aspace>: Add const.
2191 (frame_save_as_regcache): Add const.
2192 (get_frame_address_space): Return const address_space *.
2193 * frame.h (get_frame_address_space): Update declaration.
2194 * infrun.c (struct step_over_info) <aspace>: Add const.
2195 (set_step_over_info): Make aspace const.
2196 (displaced_step_prepare_throw): Change variable const.
2197 (resume): Likewise.
2198 (proceed): Likewise.
2199 (adjust_pc_after_break): Likewise.
2200 (save_waitstatus): Likewise.
2201 (handle_signal_stop): Likewise.
2202 (keep_going_pass_signal): Likewise.
2203 * jit.c (jit_frame_sniffer): Add const.
2204 * mips-tdep.c (mips_single_step_through_delay): Likewise.
2205 * ppc-linux-tdep.c (ppu2spu_sniffer): Likewise.
2206 * record-full.c (record_full_wait_1): Likewise.
2207 * regcache.c (regcache::regcache): Change parameter to const.
2208 * regcache.h (regcache::regcache): Likewise.
2209 (regcache::aspace): Return const address_space *.
2210 (regcache) <m_aspace>: Add const.
2211
2212 2017-11-02 Yao Qi <yao.qi@linaro.org>
2213
2214 * darwin-nat.c (cancel_breakpoint): Use regcache->aspace ().
2215 * frame.c (create_sentinel_frame): Likewise.
2216 * infrun.c (displaced_step_prepare_throw): Likewise.
2217 (resume): Likewise.
2218 (thread_still_needs_step_over_bp): Likewise.
2219 (proceed): Likewise.
2220 (do_target_wait): Likewise.
2221 (adjust_pc_after_break): Likewise.
2222 (handle_syscall_event): Likewise.
2223 (save_waitstatus): Likewise.
2224 (handle_inferior_event_1): Likewise.
2225 (handle_signal_stop): Likewise.
2226 (keep_going_pass_signal): Likewise.
2227 * linux-nat.c (status_callback): Likewise.
2228 (save_stop_reason): Likewise.
2229 (resume_stopped_resumed_lwps): Likewise.
2230 * record-full.c (record_full_exec_insn): Likewise.
2231 (record_full_wait_1): Likewise.
2232 * regcache.c (get_regcache_aspace): Remove.
2233 * regcache.h (get_regcache_aspace): Remove.
2234
2235 2017-11-02 Yao Qi <yao.qi@linaro.org>
2236
2237 * regcache.c (struct regcache_descr) <nr_raw_registers>: Remove.
2238 (init_regcache_descr): Use gdbarch_num_regs.
2239 (regcache::regcache): Likewise.
2240 (regcache::get_register_status): Likewise.
2241 (regcache::assert_raw_regnum): Likewise.
2242 (regcache::cooked_read): Likewise.
2243 (regcache::cooked_read_value): Likewise.
2244 (regcache::cooked_write): Likewise.
2245 (regcache::dump): Likewise.
2246 (regcache::num_raw_registers): New method.
2247 * regcache.h (class regcache) <num_raw_registers>: New.
2248
2249 2017-11-02 Yao Qi <yao.qi@linaro.org>
2250
2251 * regcache.c (regcache::assert_regnum): New method.
2252 (regcache::invalidate): Call assert_regnum.
2253 (regcache::raw_update): Likewise.
2254 (regcache::raw_write): Likewise.
2255 (regcache::raw_read_part): Likewise.
2256 (regcache::raw_write_part): Likewise.
2257 (regcache::raw_supply): Likewise.
2258 (regcache::raw_supply_integer): Likewise.
2259 (regcache::raw_supply_zeroed): Likewise.
2260 (regcache::raw_collect): Likewise.
2261 (regcache::raw_collect_integer): Likewise.
2262 * regcache.h (regcache::assert_regnum): Declare.
2263
2264 2017-11-02 Yao Qi <yao.qi@linaro.org>
2265
2266 * regcache.c (regcache::dump): Remove code.
2267
2268 2017-11-02 Yao Qi <yao.qi@linaro.org>
2269
2270 * regcache.c (struct regcache_descr) <sizeof_raw_register_status>:
2271 Remove.
2272 <sizeof_cooked_register_status>: Remove.
2273 (init_regcache_descr): Update.
2274 (regcache::regcache): Use nr_cooked_registers and nr_raw_registers.
2275 (regcache::save): Likewise.
2276 (regcache::dump): Likewise.
2277
2278 2017-11-01 James Bowman <james.bowman@ftdichip.com>
2279
2280 * ft32-tdep.c (ft32_fetch_instruction): New function.
2281 (ft32_analyze_prologue): Use ft32_fetch_instruction().
2282
2283 2017-10-31 Simon Marchi <simon.marchi@polymtl.ca>
2284
2285 * cli/cli-script.c (execute_control_command): Rename to ...
2286 (execute_control_command_1): ... this.
2287 (execute_control_command): New function.
2288
2289 2017-10-31 Simon Marchi <simon.marchi@ericsson.com>
2290
2291 * tracepoint.c (tfind_command): Remove const_cast.
2292
2293 2017-10-30 Mike Gulick <mgulick@mathworks.com>
2294
2295 * Makefile.in (HFILES_NO_SRCDIR): Remove reference to gdb.h.
2296
2297 2017-10-30 Simon Marchi <simon.marchi@ericsson.com>
2298
2299 * common/common-utils.h (in_inclusive_range): New function.
2300 * arm-tdep.c (arm_record_extension_space): Use
2301 in_inclusive_range.
2302 (thumb_record_ld_st_reg_offset): Use in_inclusive_range.
2303 * cris-tdep.c (cris_spec_reg_applicable): Use
2304 in_inclusive_range.
2305
2306 2017-10-30 Pedro Alves <palves@redhat.com>
2307 Simon Marchi <simon.marchi@ericsson.com>
2308
2309 * remote.c (remote_set_syscall_catchpoint): Build a std::string
2310 instead of a gdb::unique_xmalloc_ptr, using string_appendf.
2311
2312 2017-10-30 Pedro Alves <palves@redhat.com>
2313
2314 * common/common-utils.c (string_appendf, string_vappendf): New
2315 functions.
2316 * common/common-utils.h (string_appendf, string_vappendf): New
2317 declarations.
2318 * unittests/common-utils-selftests.c (string_appendf_func)
2319 (test_appendf_func, string_vappendf_wrapper, string_appendf_tests)
2320 (string_vappendf_tests): New functions.
2321 (_initialize_common_utils_selftests): Register "string_appendf" and
2322 "string_vappendf tests".
2323
2324 2017-10-30 Pedro Alves <palves@redhat.com>
2325
2326 * unittests/common-utils-selftests.c (format_func): New typedef.
2327 (string_printf_tests, string_vprintf_tests): Tests factored out
2328 and merged to ...
2329 (test_format_func): ... this new function.
2330 (string_printf_tests, string_vprintf_tests): Reimplement on top of
2331 test_format_func.
2332
2333 2017-10-29 Simon Marchi <simon.marchi@ericsson.com>
2334
2335 * darwin-nat.c: Remove include of gdb.h.
2336
2337 2017-10-29 Simon Marchi <simon.marchi@ericsson.com>
2338
2339 * xtensa-xtregs.c: Fix formatting issues.
2340
2341 2017-10-29 Simon Marchi <simon.marchi@ericsson.com>
2342
2343 * xtensa-xtregs.c (xtensa_regtable_t) <name>: Constify.
2344
2345 2017-10-28 Maksim Dzabraev <dzabraew@gmail.com>
2346
2347 PR python/21213
2348 * python/py-infthread.c (thpy_get_inferior): Increment reference
2349 of inferior before returning it.
2350
2351 2017-10-27 Simon Marchi <simon.marchi@ericsson.com>
2352
2353 * unittests/common-utils-selftests.c (format): Add
2354 ATTRIBUTE_PRINTF.
2355
2356 2017-10-27 Simon Marchi <simon.marchi@polymtl.ca>
2357
2358 * xml-syscall.c (struct syscall_desc): Add constructor.
2359 <name>: Change type to std::string.
2360 (syscall_desc_up): New typedef.
2361 (syscall_desc_p): Remove typeder.
2362 (DEF_VEC_P(syscall_desc_p)): Remove.
2363 (struct syscall_group_desc): Add constructor.
2364 <name>: Change type to std::string.
2365 <syscalls>: Change type to std::vector.
2366 (syscall_group_desc_up): New typedef.
2367 (syscall_group_desc_p): Remove typedef.
2368 (DEF_VEC_P(syscall_group_desc_p)): Remove.
2369 (struct syscalls_info) <syscalls>: Change type to std::vector of
2370 unique_ptr.
2371 <groups>: Likewise.
2372 <my_gdb_datadir>: Change type to std::string.
2373 (syscalls_info_up): New typedef.
2374 (allocate_syscalls_info): Remove.
2375 (syscalls_info_free_syscalls_desc): Remove.
2376 (syscalls_info_free_syscall_group_desc): Remove.
2377 (free_syscalls_info): Remove.
2378 (make_cleanup_free_syscalls_info): Remove.
2379 (syscall_group_create_syscall_group_desc): Adjust.
2380 (syscall_group_add_syscall): Adjust.
2381 (syscall_create_syscall_desc): Adjust.
2382 (syscall_parse_xml): Adjust, use unique_ptr instead of cleanup.
2383 (init_syscalls_info): Adjust.
2384 (syscall_group_get_group_by_name): Adjust.
2385 (xml_get_syscall_number): Adjust.
2386 (xml_get_syscall_name): Adjust.
2387 (xml_list_of_syscalls): Adjust.
2388 (xml_list_syscalls_by_group): Adjust.
2389 (xml_list_of_groups): Adjust.
2390
2391 2017-10-27 Simon Marchi <simon.marchi@ericsson.com>
2392
2393 * probe.h: Don't include gdb_vecs.h.
2394 (DEF_VEC_P (probe_p)): Remove.
2395 (find_probes_in_objfile): Return an std::vector.
2396 * probe.c (find_probes_in_objfile): Likewise.
2397 * breakpoint.c (breakpoint_objfile_data)
2398 <longjmp_probes>: Change type to std::vector.
2399 <exception_probes>: Likewise.
2400 (free_breakpoint_probes): Don't manually free vectors.
2401 (create_longjmp_master_breakpoint): Adjust.
2402 (create_exception_master_breakpoint): Adjust.
2403 * solib-svr4.c (svr4_create_probe_breakpoints): Change
2404 parameter type, adjust.
2405 (svr4_create_solib_event_breakpoints): Adjust.
2406
2407 2017-10-27 Simon Marchi <simon.marchi@ericsson.com>
2408
2409 * breakpoint.c (breakpoint_objfile_data): Initialize fields.
2410 (get_breakpoint_objfile_data): Allocate breakpoint_objfile_data
2411 with new.
2412 (free_breakpoint_probes): Rename to ...
2413 (free_breakpoint_objfile_data): ... this, and call delete on
2414 bp_objfile_data..
2415
2416 2017-10-27 Simon Marchi <simon.marchi@polymtl.ca>
2417
2418 * auto-load.c: Don't include gdb_vecs.h, include algorithm.
2419 (loaded_script_ptr): Remove typedef.
2420 (DEF_VEC_P (loaded_script_ptr)): Remove.
2421 (struct collect_matching_scripts_data): Add constructor.
2422 <scripts_p>: Change type to (pointer to) std::vector.
2423 (collect_matching_scripts_data): Adjust.
2424 (sort_scripts_by_name): Make suitable for std::sort.
2425 (print_scripts): Don't sort vector, adjust to std::vector.
2426 (auto_load_info_scripts): Sort vectors, adjust to std::vector.
2427
2428 2017-10-27 Simon Marchi <simon.marchi@ericsson.com>
2429
2430 * symfile.c (filename_language): Make struct, not typedef. Add
2431 constructor.
2432 <ext>: Change type to std::string.
2433 (DEF_VEC_O (filename_language)): Remove.
2434 (filename_language_table): Change type to std::vector.
2435 (add_filename_language): Adjust.
2436 (set_ext_lang_command): Adjust.
2437 (info_ext_lang_command): Adjust.
2438 (deduce_language_from_filename): Adjust.
2439 (class scoped_restore_filename_language_table): Remove.
2440 (test_filename_language): Use scoped_restore.
2441 (test_set_ext_lang_command): Use scoped_restore, adjust to
2442 std::vector change.
2443
2444 2017-10-27 Simon Marchi <simon.marchi@ericsson.com>
2445
2446 * symfile.c: Include selftest.h.
2447 (class scoped_restore_filename_language_table): New.
2448 (test_filename_language): New test.
2449 (test_set_ext_lang_command): New test.
2450 (_initialize_symfile): Register tests.
2451
2452 2017-10-27 Keith Seitz <keiths@redhat.com>
2453
2454 * breakpoint.c (print_breakpoint_location): Use the symbol saved
2455 in the bp_location, falling back to find_pc_sect_function when
2456 needed.
2457 (add_location_to_breakpoint): Save sal->symbol.
2458 * breakpoint.h (struct bp_location) <symbol>: New field.
2459 * symtab.c (find_function_start_sal): Save the symbol into the SaL.
2460 * symtab.h (struct symtab_and_line) <symbol>: New field.
2461
2462 2017-10-26 Patrick Frants <osscontribute@gmail.com>
2463
2464 PR gdb/13669
2465 * cp-valprint.c (cp_print_value_fields): Use obstack_blank_fast
2466 to rewind obstack.
2467
2468 2017-10-26 Pedro Alves <palves@redhat.com>
2469
2470 * remote.c (remote_async_terminal_ours_p): Delete.
2471 (remote_open_1, remote_terminal_inferior, remote_terminal_ours):
2472 Remove references to 'remote_async_terminal_ours_p'.
2473
2474 2017-10-26 Yao Qi <yao.qi@linaro.org>
2475
2476 * breakpoint.h (regular_breakpoint_inserted_here_p): Remove.
2477
2478 2017-10-26 Yao Qi <yao.qi@linaro.org>
2479
2480 * break-catch-sig.c (signal_catchpoint_breakpoint_hit): Make
2481 aspace const.
2482 * break-catch-syscall.c (breakpoint_hit_catch_syscall):
2483 Likewise.
2484 * breakpoint.c (bpstat_check_location): Remove cast.
2485 (breakpoint_hit_catch_fork): Make aspce const.
2486 (breakpoint_hit_catch_solib): Likewise.
2487 (breakpoint_hit_catch_exec): Likewise.
2488 (breakpoint_hit_ranged_breakpoint): Likewise.
2489 (breakpoint_hit_watchpoint): Likewise.
2490 (base_breakpoint_breakpoint_hit): Likewise.
2491 (bkpt_breakpoint_hit): Likewise.
2492 (dprintf_breakpoint_hit): Likewise.
2493 (tracepoint_breakpoint_hit): Likewise.
2494 * breakpoint.h (breakpoint_ops) <breakpoint_hit>: Likewise.
2495
2496 2017-10-26 Yao Qi <yao.qi@linaro.org>
2497
2498 * breakpoint.c (breakpoint_location_address_match): Change
2499 "struct address_space *" to "const address_space".
2500 (breakpoint_location_address_range_overlap): Likewise.
2501 (breakpoint_here_p): Likewise.
2502 (breakpoint_in_range_p): Likewise.
2503 (moribund_breakpoint_here_p): Likewise.
2504 (bp_location_inserted_here_p): Likewise.
2505 (software_breakpoint_inserted_here_p): Likewise.
2506 (hardware_breakpoint_inserted_here_p): Likewise.
2507 (hardware_watchpoint_inserted_in_range): Likewise.
2508 (bpstat_check_location): Likewise.
2509 (bpstat_stop_status): Likewise.
2510 (breakpoint_address_match): Likewise.
2511 (breakpoint_address_match_range): Likewise.
2512 (breakpoint_location_address_match): Likewise.
2513 (breakpoint_location_address_range_overlap): Likewise.
2514 (insert_single_step_breakpoint): Likewise.
2515 (breakpoint_has_location_inserted_here): Likewise.
2516 (single_step_breakpoint_inserted_here_p): Likewise.
2517 (pc_at_non_inline_function): Likewise.
2518 * breakpoint.h (bpstat_stop_status): Update declaration.
2519 (breakpoint_here_p): Likewise.
2520 (breakpoint_in_range_p): Likewise.
2521 (moribund_breakpoint_here_p): Likewise.
2522 (breakpoint_inserted_here_p): Likewise.
2523 (software_breakpoint_inserted_here_p): Likewise.
2524 (hardware_breakpoint_inserted_here_p): Likewise.
2525 (breakpoint_has_location_inserted_here): Likewise.
2526 (single_step_breakpoint_inserted_here_p): Likewise.
2527 (hardware_watchpoint_inserted_in_range): Likewise.
2528 (breakpoint_address_match): Likewise.
2529 (insert_single_step_breakpoint): Likewise.
2530 (pc_at_non_inline_function): Likewise.
2531 * gdbthread.h (thread_has_single_step_breakpoint_here): Likewise.
2532 * record.c (record_check_stopped_by_breakpoint): Likewise.
2533 * record.h (record_check_stopped_by_breakpoint): Likewise.
2534 * thread.c (thread_has_single_step_breakpoint_here): Likewise.
2535
2536 2017-10-25 Yao Qi <yao.qi@linaro.org>
2537
2538 * aarch32-linux-nat.c (aarch32_gp_regcache_supply): Use
2539 regcache->arch () instead get_regcache_arch.
2540 * aarch64-fbsd-nat.c (aarch64_fbsd_fetch_inferior_registers):
2541 Likewise.
2542 (aarch64_fbsd_store_inferior_registers): Likewise.
2543 * aarch64-linux-nat.c (fetch_gregs_from_thread): Likewise.
2544 (store_gregs_to_thread): Likewise.
2545 (fetch_fpregs_from_thread): Likewise.
2546 (store_fpregs_to_thread): Likewise.
2547 * aarch64-tdep.c (aarch64_extract_return_value): Likewise.
2548 (aarch64_store_return_value): Likewise.
2549 (aarch64_software_single_step): Likewise.
2550 * aix-thread.c (aix_thread_wait): Likewise.
2551 (supply_reg32): Likewise.
2552 (supply_sprs64): Likewise.
2553 (supply_sprs32): Likewise.
2554 (fill_gprs64): Likewise.
2555 (fill_gprs32): Likewise.
2556 (fill_sprs64): Likewise.
2557 (fill_sprs32): Likewise.
2558 (store_regs_user_thread): Likewise.
2559 (store_regs_kernel_thread): Likewise.
2560 * alpha-bsd-nat.c (alphabsd_fetch_inferior_registers): Likewise.
2561 (alphabsd_store_inferior_registers): Likewise.
2562 * alpha-tdep.c (alpha_extract_return_value): Likewise.
2563 (alpha_store_return_value): Likewise.
2564 (alpha_deal_with_atomic_sequence): Likewise.
2565 (alpha_next_pc): Likewise.
2566 (alpha_software_single_step): Likewise.
2567 * amd64-bsd-nat.c (amd64bsd_fetch_inferior_registers): Likewise.
2568 (amd64bsd_store_inferior_registers): Likewise.
2569 * amd64-linux-nat.c (amd64_linux_fetch_inferior_registers):
2570 Likewise.
2571 (amd64_linux_store_inferior_registers): Likewise.
2572 * amd64-nat.c (amd64_supply_native_gregset): Likewise.
2573 (amd64_collect_native_gregset): Likewise.
2574 * amd64-obsd-tdep.c (amd64obsd_supply_uthread): Likewise.
2575 (amd64obsd_collect_uthread): Likewise.
2576 * amd64-tdep.c (amd64_supply_fpregset): Likewise.
2577 (amd64_collect_fpregset): Likewise.
2578 (amd64_supply_fxsave): Likewise.
2579 (amd64_supply_xsave): Likewise.
2580 (amd64_collect_fxsave): Likewise.
2581 (amd64_collect_xsave): Likewise.
2582 * arc-tdep.c (arc_write_pc): Likewise.
2583 * arch-utils.c (default_skip_permanent_breakpoint): Likewise.
2584 * arm-fbsd-nat.c (arm_fbsd_fetch_inferior_registers): Likewise.
2585 (arm_fbsd_store_inferior_registers): Likewise.
2586 * arm-linux-nat.c (fetch_vfp_regs): Likewise.
2587 (store_vfp_regs): Likewise.
2588 (arm_linux_fetch_inferior_registers): Likewise.
2589 (arm_linux_store_inferior_registers): Likewise.
2590 * arm-linux-tdep.c (arm_linux_supply_gregset): Likewise.
2591 (arm_linux_sigreturn_next_pc): Likewise.
2592 (arm_linux_get_next_pcs_syscall_next_pc): Likewise.
2593 * arm-nbsd-nat.c (arm_supply_gregset): Likewise.
2594 (fetch_register): Likewise.
2595 (store_register): Likewise.
2596 * arm-tdep.c (arm_is_thumb): Likewise.
2597 (displaced_in_arm_mode): Likewise.
2598 (bx_write_pc): Likewise.
2599 (arm_get_next_pcs_addr_bits_remove): Likewise.
2600 (arm_software_single_step): Likewise.
2601 (arm_extract_return_value): Likewise.
2602 (arm_store_return_value): Likewise.
2603 (arm_write_pc): Likewise.
2604 * bfin-tdep.c (bfin_extract_return_value): Likewise.
2605 * bsd-uthread.c (bsd_uthread_fetch_registers): Likewise.
2606 (bsd_uthread_store_registers): Likewise.
2607 * core-regset.c (fetch_core_registers): Likewise.
2608 * corelow.c (get_core_registers): Likewise.
2609 * cris-tdep.c (cris_store_return_value): Likewise.
2610 (cris_extract_return_value): Likewise.
2611 (find_step_target): Likewise.
2612 (find_step_target): Likewise.
2613 (cris_software_single_step): Likewise.
2614 * ctf.c (ctf_fetch_registers): Likewise.
2615 * darwin-nat.c (cancel_breakpoint): Likewise.
2616 * fbsd-tdep.c (fbsd_collect_thread_registers): Likewise.
2617 * frv-tdep.c (frv_extract_return_value): Likewise.
2618 * ft32-tdep.c (ft32_store_return_value): Likewise.
2619 (ft32_extract_return_value): Likewise.
2620 * go32-nat.c (fetch_register): Likewise.
2621 (go32_fetch_registers): Likewise.
2622 (go32_store_registers): Likewise.
2623 (store_register): Likewise.
2624 * h8300-tdep.c (h8300_extract_return_value): Likewise.
2625 (h8300_store_return_value): Likewise.
2626 * hppa-linux-nat.c (fetch_register): Likewise.
2627 (store_register): Likewise.
2628 (hppa_linux_fetch_inferior_registers): Likewise.
2629 (hppa_linux_store_inferior_registers): Likewise.
2630 * i386-darwin-nat.c (i386_darwin_fetch_inferior_registers): Likewise.
2631 (i386_darwin_store_inferior_registers): Likewise.
2632 * i386-gnu-nat.c (gnu_fetch_registers): Likewise.
2633 (gnu_store_registers): Likewise.
2634 * i386-linux-nat.c (fetch_register): Likewise.
2635 (store_register): Likewise.
2636 (supply_gregset): Likewise.
2637 (fill_gregset): Likewise.
2638 (i386_linux_fetch_inferior_registers): Likewise.
2639 (i386_linux_store_inferior_registers): Likewise.
2640 (i386_linux_resume): Likewise.
2641 * i386-linux-tdep.c (i386_linux_get_syscall_number_from_regcache):
2642 Likewise.
2643 * i386-nto-tdep.c (i386nto_supply_gregset): Likewise.
2644 * i386-obsd-nat.c (i386obsd_supply_pcb): Likewise.
2645 * i386-obsd-tdep.c (i386obsd_supply_uthread): Likewise.
2646 (i386obsd_collect_uthread): Likewise.
2647 * i386-tdep.c (i386_mmx_regnum_to_fp_regnum): Likewise.
2648 (i386_supply_gregset): Likewise.
2649 (i386_collect_gregset): Likewise.
2650 (i386_supply_fpregset): Likewise.
2651 (i386_collect_fpregset): Likewise.
2652 (i386_mpx_bd_base): Likewise.
2653 * i386-v4-nat.c (supply_fpregset): Likewise.
2654 (fill_fpregset): Likewise.
2655 * i387-tdep.c (i387_supply_fsave): Likewise.
2656 (i387_collect_fsave): Likewise.
2657 (i387_supply_fxsave): Likewise.
2658 (i387_collect_fxsave): Likewise.
2659 (i387_supply_xsave): Likewise.
2660 (i387_collect_xsave): Likewise.
2661 * ia64-linux-nat.c (ia64_linux_fetch_registers): Likewise.
2662 (ia64_linux_store_registers): Likewise.
2663 * ia64-tdep.c (ia64_access_rse_reg): Likewise.
2664 (ia64_extract_return_value): Likewise.
2665 (ia64_store_return_value): Likewise.
2666 (find_func_descr): Likewise.
2667 * inf-child.c (inf_child_fetch_inferior_registers): Likewise.
2668 * inf-ptrace.c (inf_ptrace_fetch_registers): Likewise.
2669 (inf_ptrace_store_registers): Likewise.
2670 * infrun.c (use_displaced_stepping): Likewise.
2671 (displaced_step_prepare_throw): Likewise.
2672 (resume): Likewise.
2673 (proceed): Likewise.
2674 (do_target_wait): Likewise.
2675 (adjust_pc_after_break): Likewise.
2676 (handle_inferior_event_1): Likewise.
2677 (handle_signal_stop): Likewise.
2678 (save_infcall_suspend_state): Likewise.
2679 (restore_infcall_suspend_state): Likewise.
2680 * iq2000-tdep.c (iq2000_extract_return_value): Likewise.
2681 * jit.c (jit_frame_prev_register): Likewise.
2682 * linux-nat.c (save_stop_reason): Likewise.
2683 (linux_nat_wait_1): Likewise.
2684 (resume_stopped_resumed_lwps): Likewise.
2685 * linux-record.c (record_linux_sockaddr): Likewise.
2686 (record_linux_msghdr): Likewise.
2687 (record_linux_system_call): Likewise.
2688 * linux-tdep.c (linux_collect_thread_registers): Likewise.
2689 * lm32-tdep.c (lm32_extract_return_value): Likewise.
2690 (lm32_store_return_value): Likewise.
2691 * m32c-tdep.c (m32c_read_flg): Likewise.
2692 (m32c_pseudo_register_read): Likewise.
2693 (m32c_pseudo_register_write): Likewise.
2694 * m32r-linux-tdep.c (m32r_linux_supply_gregset): Likewise.
2695 (m32r_linux_collect_gregset): Likewise.
2696 * m32r-tdep.c (m32r_store_return_value): Likewise.
2697 (m32r_extract_return_value): Likewise.
2698 * m68k-bsd-nat.c (m68kbsd_supply_fpregset): Likewise.
2699 (m68kbsd_collect_fpregset): Likewise.
2700 * m68k-bsd-tdep.c (m68kbsd_supply_fpregset): Likewise.
2701 * m68k-linux-nat.c (fetch_register): Likewise.
2702 (old_fetch_inferior_registers): Likewise.
2703 (old_store_inferior_registers): Likewise.
2704 (store_regs): Likewise.
2705 * m68k-tdep.c (m68k_svr4_extract_return_value): Likewise.
2706 (m68k_svr4_store_return_value): Likewise.
2707 * m88k-tdep.c (m88k_store_arguments): Likewise.
2708 * mi/mi-main.c (mi_cmd_data_list_changed_registers): Likewise.
2709 (mi_cmd_data_write_register_values): Likewise.
2710 * mips-fbsd-nat.c (mips_fbsd_fetch_inferior_registers): Likewise.
2711 (mips_fbsd_store_inferior_registers): Likewise.
2712 * mips-fbsd-tdep.c (mips_fbsd_supply_fpregs): Likewise.
2713 (mips_fbsd_supply_gregs): Likewise.
2714 (mips_fbsd_collect_fpregs): Likewise.
2715 (mips_fbsd_collect_gregs): Likewise.
2716 (mips_fbsd_supply_fpregset): Likewise.
2717 (mips_fbsd_collect_fpregset): Likewise.
2718 (mips_fbsd_supply_gregset): Likewise.
2719 (mips_fbsd_collect_gregset): Likewise.
2720 * mips-linux-nat.c (supply_gregset): Likewise.
2721 (fill_gregset): Likewise.
2722 (supply_fpregset): Likewise.
2723 (fill_fpregset): Likewise.
2724 * mips-linux-tdep.c (mips_supply_gregset): Likewise.
2725 (mips_fill_gregset): Likewise.
2726 (mips_supply_fpregset): Likewise.
2727 (mips_fill_fpregset): Likewise.
2728 (mips64_supply_gregset): Likewise.
2729 (micromips_linux_sigframe_validate): Likewise.
2730 * mips-nbsd-nat.c (mipsnbsd_fetch_inferior_registers): Likewise.
2731 (mipsnbsd_fetch_inferior_registers): Likewise.
2732 (mipsnbsd_store_inferior_registers): Likewise.
2733 * mips-nbsd-tdep.c (mipsnbsd_supply_fpregset): Likewise.
2734 (mipsnbsd_supply_gregset): Likewise.
2735 (mipsnbsd_iterate_over_regset_sections): Likewise.
2736 (mipsnbsd_supply_reg): Likewise.
2737 (mipsnbsd_supply_fpreg): Likewise.
2738 * mips-tdep.c (mips_in_frame_stub): Likewise.
2739 (mips_dummy_id): Likewise.
2740 (is_octeon_bbit_op): Likewise.
2741 (micromips_bc1_pc): Likewise.
2742 (extended_mips16_next_pc): Likewise.
2743 (mips16_next_pc): Likewise.
2744 (deal_with_atomic_sequence): Likewise.
2745 * moxie-tdep.c (moxie_process_readu): Likewise.
2746 * nios2-tdep.c (nios2_get_next_pc): Likewise.
2747 * nto-procfs.c (procfs_store_registers): Likewise.
2748 * ppc-fbsd-nat.c (ppcfbsd_fetch_inferior_registers): Likewise.
2749 (ppcfbsd_store_inferior_registers): Likewise.
2750 * ppc-linux-nat.c (fetch_vsx_register): Likewise.
2751 (fetch_altivec_register): Likewise.
2752 (get_spe_registers): Likewise.
2753 (fetch_spe_register): Likewise.
2754 (fetch_altivec_registers): Likewise.
2755 (fetch_all_gp_regs): Likewise.
2756 (fetch_all_fp_regs): Likewise.
2757 (store_vsx_register): Likewise.
2758 (store_altivec_register): Likewise.
2759 (set_spe_registers): Likewise.
2760 (store_spe_register): Likewise.
2761 (store_altivec_registers): Likewise.
2762 (store_all_gp_regs): Likewise.
2763 (store_all_fp_regs): Likewise.
2764 * ppc-linux-tdep.c (ppc_linux_supply_gregset): Likewise.
2765 (ppc_linux_collect_gregset): Likewise.
2766 (ppc_canonicalize_syscall): Likewise.
2767 (ppc_linux_record_signal): Likewise.
2768 (ppu2spu_prev_register): Likewise.
2769 * ppc-nbsd-nat.c (ppcnbsd_supply_pcb): Likewise.
2770 * ppc-obsd-nat.c (ppcobsd_fetch_registers): Likewise.
2771 (ppcobsd_store_registers): Likewise.
2772 * ppc-ravenscar-thread.c (ppc_ravenscar_generic_fetch_registers):
2773 Likewise.
2774 (ppc_ravenscar_generic_store_registers): Likewise.
2775 * procfs.c (procfs_fetch_registers): Likewise.
2776 (procfs_store_registers): Likewise.
2777 * ravenscar-thread.c (ravenscar_fetch_registers): Likewise.
2778 (ravenscar_store_registers): Likewise.
2779 (ravenscar_prepare_to_store): Likewise.
2780 * record-btrace.c (record_btrace_fetch_registers): Likewise.
2781 * record-full.c (record_full_wait_1): Likewise.
2782 (record_full_registers_change): Likewise.
2783 (record_full_store_registers): Likewise.
2784 (record_full_core_fetch_registers): Likewise.
2785 (record_full_save): Likewise.
2786 (record_full_goto_insn): Likewise.
2787 * regcache.c (regcache_register_size): Likewise.
2788 (get_regcache_arch): Remove.
2789 (regcache_read_pc): Likewise.
2790 * regcache.h (get_regcache_arch): Remove.
2791 * remote-sim.c (gdbsim_fetch_register): Likewise.
2792 (gdbsim_store_register): Likewise.
2793 * remote.c (fetch_register_using_p): Likewise.
2794 (send_g_packet): Likewise.
2795 (remote_prepare_to_store): Likewise.
2796 (store_registers_using_G): Likewise.
2797 * reverse.c (save_bookmark_command): Likewise.
2798 (goto_bookmark_command): Likewise.
2799 * rs6000-aix-tdep.c (branch_dest): Likewise.
2800 * rs6000-nat.c (rs6000_ptrace64): Likewise.
2801 (fetch_register): Likewise.
2802 * rs6000-tdep.c (ppc_supply_reg): Likewise.
2803 (ppc_collect_reg): Likewise.
2804 (ppc_collect_gregset): Likewise.
2805 (ppc_collect_fpregset): Likewise.
2806 (ppc_collect_vsxregset): Likewise.
2807 (ppc_collect_vrregset): Likewise.
2808 (ppc_displaced_step_hw_singlestep): Likewise.
2809 (rs6000_pseudo_register_read): Likewise.
2810 (rs6000_pseudo_register_write): Likewise.
2811 * s390-linux-nat.c (supply_gregset): Likewise.
2812 (fill_gregset): Likewise.
2813 (s390_linux_fetch_inferior_registers): Likewise.
2814 * s390-linux-tdep.c (s390_write_pc): Likewise.
2815 (s390_software_single_step): Likewise.
2816 (s390_all_but_pc_registers_record): Likewise.
2817 (s390_linux_syscall_record): Likewise.
2818 * sentinel-frame.c (sentinel_frame_prev_arch): Likewise.
2819 * sh-nbsd-nat.c (shnbsd_fetch_inferior_registers): Likewise.
2820 (shnbsd_store_inferior_registers): Likewise.
2821 * sh-tdep.c (sh_extract_return_value_nofpu): Likewise.
2822 (sh_extract_return_value_fpu): Likewise.
2823 (sh_store_return_value_nofpu): Likewise.
2824 (sh_corefile_supply_regset): Likewise.
2825 (sh_corefile_collect_regset): Likewise.
2826 * sh64-tdep.c (sh64_extract_return_value): Likewise.
2827 (sh64_store_return_value): Likewise.
2828 * sparc-linux-tdep.c (sparc32_linux_collect_core_fpregset): Likewise.
2829 * sparc-nat.c (sparc_fetch_inferior_registers): Likewise.
2830 (sparc_store_inferior_registers): Likewise.
2831 * sparc-ravenscar-thread.c (register_in_thread_descriptor_p): Likewise.
2832 (sparc_ravenscar_prepare_to_store): Likewise.
2833 * sparc-tdep.c (sparc32_store_arguments): Likewise.
2834 (sparc_analyze_control_transfer): Likewise.
2835 (sparc_step_trap): Likewise.
2836 (sparc_software_single_step): Likewise.
2837 (sparc32_gdbarch_init): Likewise.
2838 (sparc_supply_rwindow): Likewise.
2839 (sparc_collect_rwindow): Likewise.
2840 * sparc64-linux-tdep.c (sparc64_linux_collect_core_fpregset): Likewise.
2841 * sparc64-nbsd-nat.c (sparc64nbsd_supply_gregset): Likewise.
2842 (sparc64nbsd_collect_gregset): Likewise.
2843 (sparc64nbsd_supply_fpregset): Likewise.
2844 (sparc64nbsd_collect_fpregset): Likewise.
2845 * sparc64-tdep.c (sparc64_store_arguments): Likewise.
2846 (sparc64_supply_gregset): Likewise.
2847 (sparc64_collect_gregset): Likewise.
2848 (sparc64_supply_fpregset): Likewise.
2849 (sparc64_collect_fpregset): Likewise.
2850 * spu-linux-nat.c (spu_fetch_inferior_registers): Likewise.
2851 * spu-tdep.c (spu_unwind_sp): Likewise.
2852 (spu2ppu_prev_register): Likewise.
2853 (spu_memory_remove_breakpoint): Likewise.
2854 * stack.c (return_command): Likewise.
2855 * tic6x-tdep.c (tic6x_extract_signed_field): Likewise.
2856 * tracefile-tfile.c (tfile_fetch_registers): Likewise.
2857 * tracefile.c (trace_save_ctf): Likewise.
2858 * windows-nat.c (do_windows_fetch_inferior_registers): Likewise.
2859 (do_windows_store_inferior_registers): Likewise.
2860 (windows_resume): Likewise.
2861 * xtensa-linux-nat.c (fill_gregset): Likewise.
2862 (supply_gregset_reg): Likewise.
2863 * xtensa-tdep.c (xtensa_register_write_masked): Likewise.
2864 (xtensa_register_read_masked): Likewise.
2865 (xtensa_supply_gregset): Likewise.
2866 (xtensa_extract_return_value): Likewise.
2867 (xtensa_store_return_value): Likewise.
2868
2869 2017-10-25 Ulrich Weigand <uweigand@de.ibm.com>
2870
2871 * doublest.c (floatformat_from_string): New function.
2872 * doublest.h (floatformat_from_string): Add prototype.
2873
2874 * std-operator.def (OP_DOUBLE, OP_DECFLOAT): Remove, replace by ...
2875 (OP_FLOAT): ... this.
2876 * expression.h: Do not include "doublest.h".
2877 (union exp_element): Replace doubleconst and decfloatconst by
2878 new element floatconst.
2879 * ada-lang.c (resolve_subexp): Handle OP_FLOAT instead of OP_DOUBLE.
2880 (ada_evaluate_subexp): Likewise.
2881 * eval.c (evaluate_subexp_standard): Handle OP_FLOAT instead of
2882 OP_DOUBLE and OP_DECFLOAT.
2883 * expprint.c (print_subexp_standard): Likewise.
2884 (dump_subexp_body_standard): Likewise.
2885 * breakpoint.c (watchpoint_exp_is_const): Likewise.
2886
2887 * parse.c: Include "dfp.h".
2888 (write_exp_elt_dblcst, write_exp_elt_decfloatcst): Remove.
2889 (write_exp_elt_floatcst): New function.
2890 (operator_length_standard): Handle OP_FLOAT instead of OP_DOUBLE
2891 and OP_DECFLOAT.
2892 (operator_check_standard): Likewise.
2893 (parse_float): Do not accept suffix. Take type as input. Return bool.
2894 Return target format buffer instead of host DOUBLEST.
2895 Use floatformat_from_string and decimal_from_string to parse
2896 either binary or decimal floating-point types.
2897 (parse_c_float): Remove.
2898 * parser-defs.h: Do not include "doublest.h".
2899 (write_exp_elt_dblcst, write_exp_elt_decfloatcst): Remove.
2900 (write_exp_elt_floatcst): Add prototype.
2901 (parse_float): Update prototype.
2902 (parse_c_float): Remove.
2903
2904 * c-exp.y: Do not include "dfp.h".
2905 (typed_val_float): Use byte buffer instead of DOUBLEST.
2906 (typed_val_decfloat): Remove.
2907 (DECFLOAT): Remove.
2908 (FLOAT): Use OP_FLOAT and write_exp_elt_floatcst.
2909 (parse_number): Update to new parse_float interface.
2910 Parse suffixes and determine type before calling parse_float.
2911 Handle decimal and binary FP types the same way.
2912
2913 * d-exp.y (typed_val_float): Use byte buffer instead of DOUBLEST.
2914 (FLOAT_LITERAL): Use OP_FLOAT and write_exp_elt_floatcst.
2915 (parse_number): Update to new parse_float interface.
2916 Parse suffixes and determine type before calling parse_float.
2917
2918 * f-exp.y: Replace dval by typed_val_float.
2919 (FLOAT): Use OP_FLOAT and write_exp_elt_floatcst.
2920 (parse_number): Use parse_float instead of atof.
2921
2922 * go-exp.y (typed_val_float): Use byte buffer instead of DOUBLEST.
2923 (parse_go_float): Remove.
2924 (FLOAT): Use OP_FLOAT and write_exp_elt_floatcst.
2925 (parse_number): Call parse_float instead of parse_go_float.
2926 Parse suffixes and determine type before calling parse_float.
2927
2928 * p-exp.y (typed_val_float): Use byte buffer instead of DOUBLEST.
2929 (FLOAT): Use OP_FLOAT and write_exp_elt_floatcst.
2930 (parse_number): Update to new parse_float interface.
2931 Parse suffixes and determine type before calling parse_float.
2932
2933 * m2-exp.y: Replace dval by byte buffer val.
2934 (FLOAT): Use OP_FLOAT and write_exp_elt_floatcst.
2935 (parse_number): Call parse_float instead of atof.
2936
2937 * rust-exp.y (typed_val_float): Use byte buffer instead of DOUBLEST.
2938 (lex_number): Call parse_float instead of strtod.
2939 (ast_dliteral): Use OP_FLOAT instead of OP_DOUBLE.
2940 (convert_ast_to_expression): Handle OP_FLOAT instead of OP_DOUBLE.
2941 Use write_exp_elt_floatcst.
2942 (unit_testing): Remove static variable.
2943 (rust_type): Do not check unit_testing.
2944 (rust_lex_tests): Do not set uint_testing. Set up dummy rust_parser.
2945
2946 * ada-exp.y (type_float, type_double): Remove.
2947 (typed_val_float): Use byte buffer instead of DOUBLEST.
2948 (FLOAT): Use OP_FLOAT and write_exp_elt_floatcst.
2949 * ada-lex.l (processReal): Use parse_float instead of sscanf.
2950
2951 2017-10-25 Alan Hayward <alan.hayward@arm.com>
2952
2953 * aarch64-tdep.h (enum aarch64_regnum): Remove.
2954 * arch/aarch64.h: New file.
2955
2956 2017-10-24 Ulrich Weigand <uweigand@de.ibm.com>
2957
2958 * dfp.h (decimal_from_string): Use const reference for argument.
2959 * dfp.c (decimal_from_string): Likewise.
2960
2961 2017-10-24 Ulrich Weigand <uweigand@de.ibm.com>
2962
2963 * i387-tdep.c (print_i387_value): Use floatformat_to_string.
2964 * sh64-tdep.c (sh64_do_fp_register): Likewise.
2965 * mips-tdep.c (mips_print_fp_register): Likewise.
2966
2967 2017-10-24 Ulrich Weigand <uweigand@de.ibm.com>
2968
2969 * common/format.h (enum argclass): Replace decfloat_arg by
2970 dec32float_arg, dec64float_arg, and dec128float_arg.
2971 * common/format.c (parse_format_string): Update to return
2972 new decimal float argument classes.
2973
2974 * printcmd.c (printf_decfloat): Rename to ...
2975 (printf_floating): ... this. Add argclass argument, and use it
2976 instead of parsing the format string again. Add support for
2977 binary floating-point values, using floatformat_to_string.
2978 Convert value to the target format if it doesn't already match.
2979 (ui_printf): Call printf_floating instead of printf_decfloat,
2980 also for double_arg / long_double_arg. Pass argclass.
2981
2982 * dfp.c (decimal_to_string): Add format string argument.
2983 * dfp.h (decimal_to_string): Likewise.
2984
2985 * doublest.c (floatformat_to_string): Add format string argument.
2986 * doublest.h (floatformat_to_string): Likewise.
2987
2988 2017-10-24 Ulrich Weigand <uweigand@de.ibm.com>
2989
2990 * doublest.c (floatformat_precision): New routine.
2991 (floatformat_to_string): Likewise.
2992 * doublest.c (floatformat_to_string): Add prototype.
2993
2994 * printcmd.c (print_scalar_formatted): Only call print_floating
2995 on floating-point types.
2996 * valprint.c: Do not include "floatformat.h".
2997 (generic_val_print_decfloat): Remove.
2998 (generic_val_print): Call generic_val_print_float for both
2999 TYPE_CODE_FLT and TYPE_CODE_DECFLOAT.
3000 (print_floating): Use floatformat_to_string. Handle decimal float.
3001 (print_decimal_floating): Remove, merge into floatformat_to_string.
3002 * value.h (print_decimal_floating): Remove.
3003
3004 * Makefile.in: Do not build doublest.c with -Wformat-nonliteral.
3005
3006 2017-10-24 Ulrich Weigand <uweigand@de.ibm.com>
3007
3008 * buildsym.c (end_symtab_get_static_block): Use std::stable_sort.
3009
3010 2017-10-21 Simon Marchi <simon.marchi@ericsson.com>
3011
3012 * memattr.h: Don't include vec.h.
3013 (struct mem_attrib): Initialize fields.
3014 <unknown>: New static method.
3015 (struct mem_region): Add constructors, operator<, initialize
3016 fields.
3017 * memattr.c: Include algorithm.
3018 (default_mem_attrib, unknown_mem_attrib): Remove.
3019 (user_mem_region_list): New global.
3020 (target_mem_region_list, mem_region_list): Change type to
3021 std::vector<mem_region>.
3022 (mem_use_target): Now a function.
3023 (target_mem_regions_valid): Change type to bool.
3024 (mem_region_lessthan, mem_region_cmp, mem_region_init): Remove.
3025 (require_user_regions): Adjust.
3026 (require_target_regions): Adjust.
3027 (create_mem_region): Adjust.
3028 (lookup_mem_region): Adjust.
3029 (invalidate_target_mem_regions): Adjust.
3030 (mem_clear): Rename to...
3031 (user_mem_clear): ... this, and adjust.
3032 (mem_command): Adjust.
3033 (info_mem_command): Adjust.
3034 (mem_enable, enable_mem_command, mem_disable,
3035 disable_mem_command): Adjust.
3036 (mem_delete): Adjust.
3037 (delete_mem_command): Adjust.
3038 * memory-map.h (parse_memory_map): Return an std::vector.
3039 * memory-map.c (parse_memory_map): Likewise.
3040 (struct memory_map_parsing_data): Add constructor.
3041 <memory_map>: Point to std::vector.
3042 (memory_map_start_memory): Adjust.
3043 (memory_map_end_memory): Adjust.
3044 (memory_map_end_property): Adjust.
3045 (clear_result): Remove.
3046 * remote.c (remote_memory_map): Return an std::vector.
3047 * target-debug.h (target_debug_print_VEC_mem_region_s__p):
3048 Remove.
3049 (target_debug_print_mem_region_vector): New.
3050 * target-delegates.c: Regenerate.
3051 * target.h (mem_region_vector): New typedef.
3052 (to_memory_map): Return mem_region_vector.
3053 (target_memory_map): Return an std::vector.
3054 * target.c (target_memory_map): Return an std::vector.
3055 (flash_erase_command): Adjust.
3056
3057 2017-10-21 Simon Marchi <simon.marchi@ericsson.com>
3058
3059 * memory-map.c (struct memory_map_parsing_data) <property_name>:
3060 Change type to std::string.
3061 (memory_map_start_property): Adjust.
3062 (memory_map_end_property): Adjust.
3063
3064 2017-10-21 Simon Marchi <simon.marchi@polymtl.ca>
3065
3066 * infrun.h: Include common/byte-vector.h.
3067 (struct displaced_step_closure): New struct.
3068 (struct buf_displaced_step_closure): New struct.
3069 * infrun.c (displaced_step_closure::~displaced_step_closure):
3070 Provide default implementation.
3071 (displaced_step_clear): Deallocate step closure with delete.
3072 * aarch64-tdep.c (displaced_step_closure): Rename to ...
3073 (aarch64_displaced_step_closure): ... this, extend
3074 displaced_step_closure.
3075 (aarch64_displaced_step_data) <dsc>: Change type to
3076 aarch64_displaced_step_closure.
3077 (aarch64_displaced_step_copy_insn): Adjust to type change, use
3078 unique_ptr.
3079 (aarch64_displaced_step_fixup): Add cast for displaced step
3080 closure.
3081 * amd64-tdep.c (displaced_step_closure): Rename to ...
3082 (amd64_displaced_step_closure): ... this, extend
3083 displaced_step_closure.
3084 <insn_buf>: Change type to std::vector<gdb_byte>.
3085 <max_len>: Remove.
3086 (fixup_riprel): Change type of DSC parameter, adjust to type
3087 change of insn_buf.
3088 (fixup_displaced_copy): Change type of DSC parameter.
3089 (amd64_displaced_step_copy_insn): Instantiate
3090 amd64_displaced_step_closure.
3091 (amd64_displaced_step_fixup): Add cast for closure type, adjust
3092 to type change of insn_buf.
3093 * arm-linux-tdep.c (arm_linux_cleanup_svc): Change type of
3094 parameter DSC.
3095 (arm_linux_copy_svc): Likewise.
3096 (cleanup_kernel_helper_return): Likewise.
3097 (arm_catch_kernel_helper_return): Likewise.
3098 (arm_linux_displaced_step_copy_insn): Instantiate
3099 arm_displaced_step_closure.
3100 * arm-tdep.c (arm_pc_is_thumb): Add cast for closure.
3101 (displaced_read_reg): Change type of parameter DSC.
3102 (branch_write_pc): Likewise.
3103 (load_write_pc): Likewise.
3104 (alu_write_pc): Likewise.
3105 (displaced_write_reg): Likewise.
3106 (arm_copy_unmodified): Likewise.
3107 (thumb_copy_unmodified_32bit): Likewise.
3108 (thumb_copy_unmodified_16bit): Likewise.
3109 (cleanup_preload): Likewise.
3110 (install_preload): Likewise.
3111 (arm_copy_preload): Likewise.
3112 (thumb2_copy_preload): Likewise.
3113 (install_preload_reg): Likewise.
3114 (arm_copy_preload_reg): Likewise.
3115 (cleanup_copro_load_store): Likewise.
3116 (install_copro_load_store): Likewise.
3117 (arm_copy_copro_load_store) Likewise.
3118 (thumb2_copy_copro_load_store): Likewise.
3119 (cleanup_branch): Likewise.
3120 (install_b_bl_blx): Likewise.
3121 (arm_copy_b_bl_blx): Likewise.
3122 (thumb2_copy_b_bl_blx): Likewise.
3123 (thumb_copy_b): Likewise.
3124 (install_bx_blx_reg): Likewise.
3125 (arm_copy_bx_blx_reg): Likewise.
3126 (thumb_copy_bx_blx_reg): Likewise.
3127 (cleanup_alu_imm): Likewise.
3128 (arm_copy_alu_imm): Likewise.
3129 (thumb2_copy_alu_imm): Likewise.
3130 (cleanup_alu_reg): Likewise.
3131 (install_alu_reg): Likewise.
3132 (arm_copy_alu_reg): Likewise.
3133 (thumb_copy_alu_reg): Likewise.
3134 (cleanup_alu_shifted_reg): Likewise.
3135 (install_alu_shifted_reg): Likewise.
3136 (arm_copy_alu_shifted_reg): Likewise.
3137 (cleanup_load): Likewise.
3138 (cleanup_store): Likewise.
3139 (arm_copy_extra_ld_st): Likewise.
3140 (install_load_store): Likewise.
3141 (thumb2_copy_load_literal): Likewise.
3142 (thumb2_copy_load_reg_imm): Likewise.
3143 (arm_copy_ldr_str_ldrb_strb): Likewise.
3144 (cleanup_block_load_all): Likewise.
3145 (cleanup_block_store_pc): Likewise.
3146 (cleanup_block_load_pc): Likewise.
3147 (arm_copy_block_xfer): Likewise.
3148 (thumb2_copy_block_xfer): Likewise.
3149 (cleanup_svc): Likewise.
3150 (install_svc): Likewise.
3151 (arm_copy_svc): Likewise.
3152 (thumb_copy_svc): Likewise.
3153 (arm_copy_undef): Likewise.
3154 (thumb_32bit_copy_undef): Likewise.
3155 (arm_copy_unpred): Likewise.
3156 (arm_decode_misc_memhint_neon): Likewise.
3157 (arm_decode_unconditional): Likewise.
3158 (arm_decode_miscellaneous): Likewise.
3159 (arm_decode_dp_misc): Likewise.
3160 (arm_decode_ld_st_word_ubyte): Likewise.
3161 (arm_decode_media): Likewise.
3162 (arm_decode_b_bl_ldmstm): Likewise.
3163 (arm_decode_ext_reg_ld_st): Likewise.
3164 (thumb2_decode_dp_shift_reg): Likewise.
3165 (thumb2_decode_ext_reg_ld_st): Likewise.
3166 (arm_decode_svc_copro): Likewise.
3167 (thumb2_decode_svc_copro): Likewise.
3168 (install_pc_relative): Likewise.
3169 (thumb_copy_pc_relative_16bit): Likewise.
3170 (thumb_decode_pc_relative_16bit): Likewise.
3171 (thumb_copy_pc_relative_32bit): Likewise.
3172 (thumb_copy_16bit_ldr_literal): Likewise.
3173 (thumb_copy_cbnz_cbz): Likewise.
3174 (thumb2_copy_table_branch): Likewise.
3175 (cleanup_pop_pc_16bit_all): Likewise.
3176 (thumb_copy_pop_pc_16bit): Likewise.
3177 (thumb_process_displaced_16bit_insn): Likewise.
3178 (decode_thumb_32bit_ld_mem_hints): Likewise.
3179 (thumb_process_displaced_32bit_insn): Likewise.
3180 (thumb_process_displaced_insn): Likewise.
3181 (arm_process_displaced_insn): Likewise.
3182 (arm_displaced_init_closure): Likewise.
3183 (arm_displaced_step_fixup): Add cast for closure.
3184 * arm-tdep.h: Include infrun.h.
3185 (displaced_step_closure): Rename to ...
3186 (arm_displaced_step_closure): ... this, extend
3187 displaced_step_closure.
3188 <u::svc::copy_svc_os>: Change type of parameter DSC.
3189 <cleanup>: Likewise.
3190 (arm_process_displaced_insn): Likewise.
3191 (arm_displaced_init_closure): Likewise.
3192 (displaced_read_reg): Likewise.
3193 (displaced_write_reg): Likewise.
3194 * i386-linux-tdep.c (i386_linux_displaced_step_copy_insn):
3195 Adjust.
3196 * i386-tdep.h: Include infrun.h.
3197 (i386_displaced_step_closure): New typedef.
3198 * i386-tdep.c (i386_displaced_step_copy_insn): Use
3199 i386_displaced_step_closure.
3200 (i386_displaced_step_fixup): Adjust.
3201 * rs6000-tdep.c (ppc_displaced_step_closure): New typedef.
3202 (ppc_displaced_step_copy_insn): Use ppc_displaced_step_closure
3203 and unique_ptr.
3204 (ppc_displaced_step_fixup): Adjust.
3205 * s390-linux-tdep.c (s390_displaced_step_closure): New typedef.
3206 (s390_displaced_step_copy_insn): Use s390_displaced_step_closure
3207 and unique_ptr.
3208 (s390_displaced_step_fixup): Adjust.
3209
3210 2017-10-21 Simon Marchi <simon.marchi@polymtl.ca>
3211
3212 * interps.h (interp_resume, interp_suspend, interp_set_temp):
3213 Remove declarations.
3214
3215 2017-10-20 Tom Tromey <tom@tromey.com>
3216
3217 * gdb_bfd.c (struct gdb_bfd_data) <included_bfds>: Now a
3218 std::vector.
3219 (gdb_bfd_record_inclusion): Update.
3220 (bfdp): Remove typedef.
3221
3222 2017-10-20 Tom Tromey <tom@tromey.com>
3223
3224 * gdb_bfd.c (gdb_bfd_ref): Use new.
3225 (struct gdb_bfd_data): Add constructor, destructor, and member
3226 initializers.
3227 (gdb_bfd_unref): Use delete.
3228
3229 2017-10-20 Tom Tromey <tom@tromey.com>
3230
3231 * exec.c (exec_file_attach): Use new_bfd_ref.
3232 * symfile-mem.c (symbol_file_add_from_memory): Use new_bfd_ref.
3233 * gdb_bfd.c (gdb_bfd_open, gdb_bfd_fopen, gdb_bfd_openr)
3234 (gdb_bfd_openw, gdb_bfd_openr_iovec, gdb_bfd_fdopenr): Use
3235 new_bfd_ref.
3236 * gdb_bfd.h (new_bfd_ref): New function.
3237
3238 2017-10-20 Pedro Alves <palves@redhat.com>
3239
3240 * main.c (captured_command_loop): Add attribute noinline.
3241
3242 2017-10-19 Simon Marchi <simon.marchi@ericsson.com>
3243
3244 * interps.c (struct interp_factory): Add constructor.
3245 (interp_factory_p): Remove typedef.
3246 (DEF_VEC_P(interp_factory_p)): Remove.
3247 (interpreter_factories): Change type to std::vector.
3248 (interp_factory_register): Adjust.
3249 (interp_lookup): Adjust.
3250 (interpreter_completer): Adjust.
3251
3252 2017-10-19 Tom Tromey <tom@tromey.com>
3253
3254 * break-catch-syscall.c (catch_syscall_completer): Use
3255 std::string, gdb::unique_xmalloc_ptr.
3256
3257 2017-10-19 Tom Tromey <tom@tromey.com>
3258
3259 * infcall.c (call_function_by_hand_dummy): Use std::string.
3260
3261 2017-10-19 Tom Tromey <tom@tromey.com>
3262
3263 * mi/mi-main.c (mi_cmd_execute): Update.
3264 * top.h (prepare_execute_command): Return scoped_value_mark.
3265 * value.h (class scoped_value_mark): Use DISABLE_COPY_AND_ASSIGN.
3266 Add move constructor.
3267 * top.c (prepare_execute_command): Return scoped_value_mark.
3268 (execute_command): Update.
3269
3270 2017-10-19 Pedro Alves <palves@redhat.com>
3271
3272 * xml-support.c (xml_fetch_content_from_file): Check fread's
3273 return.
3274
3275 2017-10-19 Pedro Alves <palves@redhat.com>
3276
3277 * ser-base.c (ser_base_read_error_fd): Delete the file handler if
3278 async.
3279 (handle_error_fd): New function.
3280 (ser_base_async): Add/delete an event loop file handler for
3281 error_fd.
3282
3283 2017-10-19 Pedro Alves <palves@redhat.com>
3284
3285 * xml-support.c (xml_fetch_content_from_file): Don't read in
3286 chunks. Instead use fseek to determine the file's size, and read
3287 it in one go.
3288
3289 2017-11-18 Keith Seitz <keiths@redhat.com>
3290
3291 * c-exp.y (oper): Canonicalize conversion operators of user-defined
3292 types.
3293 Add whitespace to front of type name.
3294
3295 2017-10-18 Keith Seitz <keiths@redhat.com>
3296
3297 * dwarf2read.c (dwarf2_add_typedef): Issue a complaint on unhandled
3298 DW_AT_accessibility.
3299
3300 2017-10-18 Yao Qi <yao.qi@linaro.org>
3301
3302 * features/tic6x-c62x-linux.c: Remove.
3303
3304 2017-10-17 Tom Tromey <tom@tromey.com>
3305
3306 * disasm.c (do_mixed_source_and_assembly_deprecated): Use
3307 gdb::optional, ui_out_emit_list, ui_out_emit_tuple.
3308 (do_mixed_source_and_assembly): Likewise.
3309
3310 2017-10-17 Tom Tromey <tom@tromey.com>
3311
3312 * regcache.c (regcache::xfer_part): Remove assertion.
3313
3314 2017-10-17 Pedro Alves <palves@redhat.com>
3315
3316 * xml-support.c (xml_fetch_content_from_file): Call
3317 unique_ptr::release() instead unique_ptr::get() when passing
3318 through xrealloc.
3319
3320 2017-10-17 Yao Qi <yao.qi@linaro.org>
3321
3322 * regcache.c (regcache::xfer_part): Remove parameters read and
3323 write, add parameter is_raw. All callers are updated.
3324
3325 2017-10-16 Keith Seitz <keiths@redhat.com>
3326
3327 * c-typeprint.c (enum access_specifier): Moved here from
3328 c_type_print_base.
3329 (output_access_specifier): New function.
3330 (c_type_print_base): Consider typedefs when assessing
3331 whether access labels are needed.
3332 Use output_access_specifier as needed.
3333 Output access specifier for typedefs, if needed.
3334 * dwarf2read.c (dwarf2_add_typedef): Record DW_AT_accessibility.
3335 * gdbtypes.h (struct typedef_field) <is_protected, is_private>: New
3336 fields.
3337 (TYPE_TYPEDEF_FIELD_PROTECTED, TYPE_TYPEDEF_FIELD_PRIVATE): New
3338 accessor macros.
3339
3340 2017-10-16 Tom Tromey <tom@tromey.com>
3341
3342 * linux-tdep.c (linux_info_proc, linux_find_memory_regions_full)
3343 (linux_fill_prpsinfo, linux_vsyscall_range_raw): Update.
3344 * target.c (target_fileio_read_stralloc): Update.
3345 * sparc64-tdep.c (adi_is_addr_mapped): Update.
3346 * target.h (target_fileio_read_stralloc): Return
3347 unique_xmalloc_ptr.
3348
3349 2017-10-16 Tom Tromey <tom@tromey.com>
3350
3351 * xml-syscall.c (xml_init_syscalls_info): Update.
3352 * xml-support.c (xinclude_start_include): Update.
3353 (xml_fetch_content_from_file): Return unique_xmalloc_ptr.
3354 * xml-support.h (xml_fetch_another): Return unique_xmalloc_ptr.
3355 (xml_fetch_content_from_file): Likewise.
3356 * osdata.c (get_osdata): Update.
3357 * target.h (target_read_stralloc, target_get_osdata): Return
3358 unique_xmalloc_ptr.
3359 * solib-aix.c (solib_aix_get_library_list): Update.
3360 * solib-target.c (solib_target_current_sos): Update.
3361 * solib-svr4.c (svr4_current_sos_via_xfer_libraries): Update.
3362 * xml-tdesc.c (fetch_available_features_from_target): Update.
3363 (target_fetch_description_xml): Update.
3364 (file_read_description_xml): Update.
3365 * remote.c (remote_get_threads_with_qxfer, remote_memory_map)
3366 (remote_traceframe_info, btrace_read_config, remote_read_btrace)
3367 (remote_pid_to_exec_file): Update.
3368 * target.c (target_read_stralloc): Return unique_xmalloc_ptr.
3369 (target_get_osdata): Likewise.
3370
3371 2017-10-16 Tom Tromey <tom@tromey.com>
3372
3373 * remote.c (remote_register_number_and_offset): Use std::vector.
3374 (remote_set_syscall_catchpoint): Use gdb::unique_xmalloc_ptr.
3375 (putpkt_binary): Use gdb::def_vector.
3376 (compare_sections_command): Use gdb::byte_vector.
3377
3378 2017-10-16 Tom Tromey <tom@tromey.com>
3379
3380 * ppc-linux-nat.c (hwdebug_insert_point): Use
3381 gdb::unique_xmalloc_ptr, XDUP.
3382
3383 2017-10-16 Tom Tromey <tom@tromey.com>
3384
3385 * probe.c (parse_probes): Use std::string.
3386 (info_probes_for_ops, enable_probes_command)
3387 (disable_probes_command): Remove cleanups.
3388
3389 2017-10-16 Tom Tromey <tom@tromey.com>
3390
3391 * buildsym.c (block_compar): Remove.
3392 (end_symtab_get_static_block): Use std::vector.
3393
3394 2017-10-16 Simon Marchi <simon.marchi@ericsson.com>
3395
3396 * memrange.h (struct mem_range): Define operator< and operator==.
3397 (mem_range_s): Remove.
3398 (DEF_VEC_O (mem_range_s)): Remove.
3399 (normalize_mem_ranges): Change parameter type to std::vector.
3400 * memrange.c (compare_mem_ranges): Remove.
3401 (normalize_mem_ranges): Change parameter type to std::vector,
3402 adjust to vector change.
3403 * exec.c (section_table_available_memory): Return vector, remove
3404 parameter.
3405 (section_table_read_available_memory): Adjust to std::vector
3406 change.
3407 * remote.c (remote_read_bytes): Adjust to std::vector
3408 change.
3409 * tracepoint.h (traceframe_available_memory): Change parameter
3410 type to std::vector.
3411 * tracepoint.c (traceframe_available_memory): Change parameter
3412 type to std::vector, adjust.
3413 * gdb/mi/mi-main.c (mi_cmd_trace_frame_collected): Adjust to
3414 std::vector change.
3415 * gdb/Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
3416 unittests/memrange-selftests.c.
3417 (SUBDIR_UNITTESTS_OBS): Add memrange-selftests.o.
3418 * gdb/unittests/memrange-selftests.c: New file.
3419
3420 2017-10-16 Pedro Alves <palves@redhat.com>
3421
3422 * elfread.c (probe_key_free): Rename range-for variable.
3423 * probe.c (parse_probes_in_pspace, find_probes_in_objfile)
3424 (find_probe_by_pc, collect_probes): Rename range-for variable.
3425
3426 2017-10-16 Yao Qi <yao.qi@linaro.org>
3427
3428 * features/Makefile (XMLTOC): Remove tic6x-*.xml.
3429 * features/tic6x-c62x.c: Remove.
3430 * features/tic6x-c64x-linux.c: Remove.
3431 * features/tic6x-c64x.c: Remove.
3432 * features/tic6x-c64xp-linux.c: Remove.
3433 * features/tic6x-c64xp.c: Remove.
3434 * tic6x-linux-tdep.c (_initialize_tic6x_linux_tdep): Don't call
3435 initialize_tdesc_tic6x_*_linux functions.
3436 * tic6x-tdep.c (_initialize_tic6x_tdep): Don't call
3437 initialize_tdesc_tic6x_* functions.
3438
3439 2017-10-16 Yao Qi <yao.qi@linaro.org>
3440
3441 * features/Makefile (WHICH): Remove tic6x-c64xp, tic6x-c64x
3442 tic6x-c62x.
3443 * regformats/tic6x-c62x.dat: Remove.
3444 * regformats/tic6x-c64x.dat: Remove.
3445 * regformats/tic6x-c64xp.dat: Remove.
3446
3447 2017-10-15 Simon Marchi <simon.marchi@ericsson.com>
3448
3449 * tracepoint.c (parse_traceframe_info): Return a unique_ptr
3450 (the !HAVE_LIBEXPAT version).
3451
3452 2017-10-14 Simon Marchi <simon.marchi@ericsson.com>
3453
3454 * nat/linux-osdata.c (struct pid_pgid_entry) <operator<>: Make
3455 const.
3456
3457 2017-10-14 Simon Marchi <simon.marchi@polymtl.ca>
3458
3459 * target.h: Include tracepoint.h.
3460 (enum trace_find_type): Move to tracepoint.h.
3461 (struct target_ops) <to_traceframe_info>: Return a unique ptr.
3462 * tracepoint.h: Don't include target.h
3463 (enum trace_find_type): Move from target.h.
3464 (parse_traceframe_info): Return a unique ptr.
3465 * tracepoint.c (current_traceframe_info): Change type to unique
3466 ptr.
3467 (free_traceframe_info): Remove.
3468 (clear_traceframe_info): Don't manually free
3469 current_traceframe_info.
3470 (free_result): Remove.
3471 (parse_traceframe_info): Return a unique ptr.
3472 (get_traceframe_info): Adjust to unique ptr.
3473 * ctf.c (ctf_traceframe_info): Return a unique ptr.
3474 * remote.c (remote_traceframe_info): Return a unique ptr.
3475 * tracefile-tfile.c (tfile_traceframe_info): Return a unique
3476 ptr.
3477 * target-debug.h (target_debug_print_traceframe_info_up): New
3478 macro.
3479 * target-delegates.c: Regenerate.
3480
3481 2017-10-14 Simon Marchi <simon.marchi@polymtl.ca>
3482
3483 * memrange.h (struct mem_range): Add constructors.
3484 * tracepoint.h (struct traceframe_info) <memory>: Change type to
3485 std::vector<mem_range>.
3486 * tracepoint.c (free_traceframe_info): Don't manually free
3487 vector.
3488 (traceframe_info_start_memory): Adjust to vector change.
3489 (traceframe_available_memory): Likewise.
3490 * tracefile-tfile.c (build_traceframe_info): Likewise.
3491 * ctf.c (ctf_traceframe_info): Likewise.
3492
3493 2017-10-14 Simon Marchi <simon.marchi@polymtl.ca>
3494
3495 * tracepoint.h (struct traceframe_info) <tvars>: Change type to
3496 std::vector<int>.
3497 * tracepoint.c (free_traceframe_info): Deallocate with delete.
3498 (traceframe_info_start_tvar): Adjust to vector change.
3499 (parse_traceframe_info): Allocate with new.
3500 * ctf.c (ctf_traceframe_info): Allocate with new, adjust to
3501 vector change.
3502 * tracefile-tfile.c (build_traceframe_info): Adjust to vector
3503 change.
3504 tfile_traceframe_info): Allocate with new.
3505 * mi/mi-main.c (mi_cmd_trace_frame_collected): Adjust to vector
3506 change.
3507
3508 2017-10-14 Simon Marchi <simon.marchi@polymtl.ca>
3509
3510 * tracepoint.c (traceframe_info): Rename to...
3511 (current_traceframe_info): ...this.
3512 (clear_traceframe_info): Adjust.
3513 (get_traceframe_info): Adjust.
3514
3515 2017-10-14 Simon Marchi <simon.marchi@ericsson.com>
3516
3517 * nat/linux-osdata.c: Include algorithm.
3518 (compare_processes): Remove.
3519 (struct pid_pgid_entry): New struct.
3520 (linux_xfer_osdata_processgroups): Use std::vector instead of
3521 XNEWVEC.
3522
3523 2017-10-14 Simon Marchi <simon.marchi@ericsson.com>
3524
3525 * objfiles.h: Don't include symfile.h.
3526 (struct partial_symbol): Remove forward-declaration.
3527 (struct objfile) <global_psymbols, static_psymbols>: Change type
3528 to std::vector<partial_symbol *>.
3529 * objfiles.c (objfile::objfile): Don't memset those fields.
3530 (objfile::~objfile): Don't free those fields.
3531 * psympriv.h (struct psymbol_allocation_list): Remove
3532 forward-declaration.
3533 (add_psymbol_to_list): Change psymbol_allocation_list parameter
3534 to std::vector.
3535 (start_psymtab_common): Change parameters to std::vector.
3536 * psymtab.c: Include algorithm.
3537 (require_partial_symbols): Call shrink_to_fit.
3538 (find_pc_sect_psymbol): Adjust to vector change.
3539 (match_partial_symbol): Likewise.
3540 (lookup_partial_symbol): Likewise.
3541 (psym_relocate): Likewise.
3542 (dump_psymtab): Likewise.
3543 (recursively_search_psymtabs): Likewise.
3544 (compare_psymbols): Remove.
3545 (sort_pst_symbols): Adjust to vector change.
3546 (start_psymtab_common): Likewise.
3547 (end_psymtab_common): Likewise.
3548 (psymbol_bcache_full): De-constify return value.
3549 (add_psymbol_to_bcache): Likewise.
3550 (extend_psymbol_list): Remove.
3551 (append_psymbol_to_list): Adjust to vector change.
3552 (add_psymbol_to_list): Likewise.
3553 (init_psymbol_list): Likewise.
3554 (maintenance_info_psymtabs): Likewise.
3555 (maintenance_check_psymtabs): Likewise.
3556 * symfile.h (struct psymbol_allocation_list): Remove.
3557 * symfile.c (reread_symbols): Adjust to vector change.
3558 * dbxread.c (start_psymtab): Change type of parameters.
3559 (dbx_symfile_read): Adjust to vector change.
3560 (read_dbx_symtab): Likewise.
3561 (start_psymtab): Change type of parameters.
3562 * dwarf2read.c (dwarf2_build_psymtabs): Adjust to vector change.
3563 (create_partial_symtab): Likewise.
3564 (add_partial_symbol): Likewise.
3565 (write_one_signatured_type): Likewise.
3566 (recursively_write_psymbols): Likewise.
3567 * mdebugread.c (parse_partial_symbols): Likewise.
3568 * xcoffread.c (xcoff_start_psymtab): Change type of parameters.
3569 (scan_xcoff_symtab): Adjust to vector change.
3570 (xcoff_initial_scan): Likewise.
3571
3572 2017-10-13 Simon Marchi <simon.marchi@ericsson.com>
3573
3574 * ada-typeprint.c (print_dynamic_range_bound): Use std::string.
3575
3576 2017-10-13 Yao Qi <yao.qi@linaro.org>
3577
3578 * features/Makefile: Remove tic6x-*-expedite, add tic6x-expedite.
3579 Remove s390x-*-expedite, add s390x-expedite.
3580
3581 2017-10-13 Yao Qi <yao.qi@linaro.org>
3582
3583 * features/s390-gs-linux64.c: Regenerated.
3584 * features/s390x-gs-linux64.c: Regenerated.
3585
3586 2017-10-13 Tom Tromey <tom@tromey.com>
3587
3588 * compile/compile-object-run.c (do_module_cleanup): Use delete.
3589 * solib.c (update_solib_list, reload_shared_libraries_1): Use
3590 delete.
3591 * symfile.c (symbol_file_add_with_addrs): Use new.
3592 (symbol_file_add_separate): Update comment.
3593 (syms_from_objfile_1, remove_symbol_file_command): Use delete.
3594 * jit.c (jit_object_close_impl): Use new.
3595 (jit_unregister_code): Use delete.
3596 * objfiles.c (objfile::objfile): Rename from allocate_objfile.
3597 (~objfile): Rename from free_objfile.
3598 (free_objfile_separate_debug, do_free_objfile_cleanup)
3599 (free_all_objfiles, objfile_purge_solibs): Use delete.
3600 * objfiles.h (struct objfile): Add constructor and destructor.
3601 Use DISABLE_COPY_AND_ASSIGN. Add initializers to data members.
3602 (allocate_objfile, free_objfile): Don't declare.
3603 (struct objstats): Add initializers.
3604
3605 2017-10-12 Simon Marchi <simon.marchi@ericsson.com>
3606
3607 * arch-utils.h (simple_displaced_step_copy_insn): Remove.
3608 * arch-utils.c (simple_displaced_step_copy_insn): Remove.
3609 * gdbarch.sh (displaced_step_copy_insn): Adjust comment.
3610 * gdbarch.h: Regenerate.
3611 * i386-linux-tdep.c (i386_linux_displaced_step_copy_insn):
3612 Adjust comment.
3613 * i386-tdep.c (i386_displaced_step_copy_insn): Adjust comment.
3614 (i386_displaced_step_fixup): Adjust comment.
3615 * rs6000-tdep.c (ppc_displaced_step_copy_insn): Adjust comment.
3616
3617 2017-10-12 Tom Tromey <tom@tromey.com>
3618
3619 * prologue-value.h (pv_area::store_would_trash): Return bool.
3620 (pv_area::find_reg): Likewise.
3621 * prologue-value.c (pv_area::store_would_trash): Return bool.
3622 (pv_area::find_reg): Likewise.
3623
3624 2017-10-12 Tom Tromey <tom@tromey.com>
3625
3626 * s390-linux-tdep.c (s390_store, s390_load)
3627 (s390_check_for_saved, s390_analyze_prologue): Update.
3628 * rx-tdep.c (check_for_saved, rx_analyze_prologue): Update.
3629 * rl78-tdep.c (rl78_analyze_prologue, check_for_saved): Update.
3630 * prologue-value.h (class pv_area): Move from prologue-value.c.
3631 Change names of members. Add constructor, destructor, member
3632 functions.
3633 (make_pv_area, free_pv_area, make_cleanup_free_pv_area)
3634 (pv_area_store, pv_area_fetch, pv_area_store_would_trash)
3635 (pv_area_fetch, pv_area_scan): Don't declare.
3636 * prologue-value.c (struct pv_area::area_entry): Now member of
3637 pv_area.
3638 (struct pv_area): Move to prologue-value.h.
3639 (pv_area::pv_area): Rename from make_pv_area.
3640 (pv_area::~pv_area): Rename from free_pv_area.
3641 (do_free_pv_area_cleanup, make_cleanup_free_pv_area): Remove.
3642 (clear_entries, find_entry, overlaps, store_would_trash, store)
3643 (fetch, find_reg, scan): Now member of pv_area.
3644 Remove "area" argument. Update.
3645 * msp430-tdep.c (check_for_saved, msp430_analyze_prologue):
3646 Update.
3647 * mn10300-tdep.c (push_reg, check_for_saved)
3648 (mn10300_analyze_prologue): Update.
3649 * mep-tdep.c (is_arg_spill, check_for_saved)
3650 (mep_analyze_prologue): Update.
3651 * m32c-tdep.c (m32c_pv_push, m32c_srcdest_fetch)
3652 (m32c_srcdest_store, m32c_pv_enter, m32c_is_arg_spill)
3653 (m32c_is_struct_return, m32c_analyze_prologue): Update.
3654 * arm-tdep.c (thumb_analyze_prologue, arm_analyze_prologue):
3655 Update.
3656 * arc-tdep.c (arc_is_in_prologue, arc_analyze_prologue): Update.
3657 * aarch64-tdep.c (aarch64_analyze_prologue): Update.
3658
3659 2017-10-12 Simon Marchi <simon.marchi@ericsson.com>
3660
3661 * linux-nat.h (linux_nat_set_delete_thread): New declaration.
3662 * linux-nat.c (linux_nat_delete_thread): New variable.
3663 (lwp_free): Invoke linux_nat_delete_thread if set.
3664 (linux_nat_set_delete_thread): New function.
3665 * aarch64-linux-nat.c (_initialize_aarch64_linux_nat): Assign
3666 thread delete callback.
3667 * arm-linux-nat.c (arm_linux_delete_thread): New function.
3668 (_initialize_arm_linux_nat): Assign thread delete callback.
3669 * s390-linux-nat.c (s390_delete_thread): New function.
3670 (_initialize_s390_nat): Assign thread delete callback.
3671 * x86-linux-nat.c (x86_linux_add_target): Likewise.
3672 * nat/aarch64-linux.c (aarch64_linux_delete_thread): New
3673 function.
3674 * nat/aarch64-linux.h (aarch64_linux_delete_thread): New
3675 declaration.
3676 * nat/x86-linux.c (x86_linux_delete_thread): New function.
3677 * nat/x86-linux.h (x86_linux_delete_thread): New declaration.
3678
3679 2017-10-09 Tom Tromey <tom@tromey.com>
3680
3681 * tui/tui-win.c (tui_set_win_height, parse_scrolling_args): Use
3682 std::string.
3683 * tui/tui-layout.c (enum tui_status): Use std::string.
3684
3685 2017-10-11 Tom Tromey <tom@tromey.com>
3686
3687 * gdbthread.h (thread_command): Constify.
3688 * inferior.h (detach_command): Constify.
3689 * top.h (set_history, show_history): Constify.
3690 * arm-tdep.c (set_arm_command, show_arm_command): Constify.
3691 * serial.c (serial_set_cmd, serial_show_cmd): Constify.
3692 * bsd-kvm.c (bsd_kvm_cmd): Constify.
3693 * printcmd.c (set_command): Constify.
3694 (non_const_set_command): New function.
3695 * dcache.c (set_dcache_command, show_dcache_command): Constify.
3696 * breakpoint.c (enable_command, disable_command, delete_command)
3697 (catch_command, tcatch_command, set_breakpoint_cmd)
3698 (show_breakpoint_cmd): Constify.
3699 * macrocmd.c (macro_command): Constify.
3700 * infcmd.c (unset_command, kill_command, detach_command)
3701 (info_proc_cmd): Constify.
3702 * i386-tdep.c (set_mpx_cmd, show_mpx_cmd): Constify.
3703 * auto-load.c (show_auto_load_cmd, set_auto_load_cmd)
3704 (info_auto_load_cmd): Constify.
3705 * target-descriptions.c (set_tdesc_cmd, show_tdesc_cmd)
3706 (unset_tdesc_cmd): Constify.
3707 * ada-lang.c (set_ada_command, show_ada_command)
3708 (maint_set_ada_cmd, maint_show_ada_cmd): Constify.
3709 * guile/guile.c (set_guile_command, show_guile_command)
3710 (info_guile_command): Constify.
3711 * tui/tui-win.c (tui_command, set_tui_cmd, show_tui_cmd):
3712 Constify.
3713 * skip.c (skip_command): Constify.
3714 * compile/compile.c (_initialize_compile): Constify.
3715 * dwarf2read.c (set_dwarf_cmd, show_dwarf_cmd): Constify.
3716 * btrace.c (maint_btrace_cmd, maint_btrace_set_cmd)
3717 (maint_btrace_show_cmd, maint_btrace_pt_set_cmd)
3718 (maint_btrace_pt_show_cmd): Constify.
3719 * remote.c (set_remote_cmd, show_remote_cmd, remote_command):
3720 Constify.
3721 * python/python.c (user_show_python, user_set_python): Constify.
3722 * mips-tdep.c (set_mips_command, show_mips_command)
3723 (set_mipsfpu_command): Constify.
3724 * record-btrace.c (cmd_record_btrace_start)
3725 (cmd_set_record_btrace, cmd_show_record_btrace)
3726 (cmd_set_record_btrace_bts, cmd_show_record_btrace_bts)
3727 (cmd_set_record_btrace_pt, cmd_show_record_btrace_pt): Constify.
3728 * rs6000-tdep.c (set_powerpc_command, show_powerpc_command):
3729 Constify.
3730 * symfile.c (overlay_command): Constify.
3731 * spu-tdep.c (set_spu_command, show_spu_command): Constify.
3732 * cli/cli-logging.c (set_logging_command, show_logging_command):
3733 Constify.
3734 * cli/cli-dump.c (dump_command, append_command)
3735 (srec_dump_command, ihex_dump_command, verilog_dump_command)
3736 (tekhex_dump_command, binary_dump_command)
3737 (binary_append_command): Constify.
3738 * cli/cli-decode.c (struct cmd_list_element): Change type of
3739 "fun".
3740 * cli/cli-cmds.c (info_command, show_command, set_debug)
3741 (show_debug): Constify.
3742 (show_command): Add non-const overload.
3743 * top.c (set_history, show_history): Constify.
3744 * sh-tdep.c (set_sh_command, show_sh_command): Constify.
3745 * command.h (add_prefix_cmd): Accept a cmd_const_cfunc_ftype.
3746 * target.c (target_command): Constify.
3747 * sparc64-tdep.c (info_adi_command): Constify.
3748 * record-full.c (cmd_record_full_start): Constify.
3749 (set_record_full_command): Constify. Fix typo.
3750 (show_record_full_command): Constify.
3751 * thread.c (thread_command, thread_apply_command): Constify.
3752 * memattr.c (dummy_cmd): Constify.
3753 * value.c (function_command): Constify.
3754 * frame.c (set_backtrace_cmd, show_backtrace_cmd): Constify.
3755 * probe.c (info_probes_command): Constify.
3756 * ser-tcp.c (set_tcp_cmd, show_tcp_cmd): Constify.
3757 * gnu-nat.c (set_task_cmd, show_task_cmd, set_thread_cmd)
3758 (show_thread_cmd, set_thread_default_cmd)
3759 (show_thread_default_cmd): Constify.
3760 (check_empty): Constify.
3761 * tracepoint.c (tfind_command): Constify.
3762 * cp-support.c (maint_cplus_command): Constify.
3763 * windows-tdep.c (info_w32_command): Constify.
3764 * record.c (cmd_record_start, set_record_command)
3765 (show_record_command, info_record_command, cmd_record_goto):
3766 Constify.
3767 * ravenscar-thread.c (set_ravenscar_command)
3768 (show_ravenscar_command): Constify.
3769 * utils.c (set_internal_problem_cmd, show_internal_problem_cmd):
3770 Constify.
3771 (add_internal_problem_command): Remove casts.
3772 * arc-tdep.c (maintenance_print_arc_command): Constify.
3773 * valprint.c (set_print, show_print, set_print_raw)
3774 (show_print_raw): Constify.
3775 * maint.c (maintenance_command, maintenance_info_command)
3776 (maintenance_print_command, maintenance_set_cmd)
3777 (maintenance_show_cmd, set_per_command_cmd)
3778 (show_per_command_cmd, maintenance_check_command): Constify.
3779 * language.c (set_check, show_check): Constify.
3780 * typeprint.c (show_print_type, set_print_type): Constify.
3781 * go32-nat.c (go32_info_dos_command): Constify.
3782
3783 2017-10-11 Tom Tromey <tom@tromey.com>
3784
3785 * breakpoint.c (prepare_re_set_context): Remove.
3786 (breakpoint_re_set_one): Update. Don't use cleanups.
3787 (breakpoint_re_set): Use scoped_restore, std::string, and
3788 scoped_restore_current_language.
3789
3790 2017-10-11 Tom Tromey <tom@tromey.com>
3791
3792 * breakpoint.c (commands_command_1): Use std::string.
3793 (cleanup_executing_breakpoints): Remove.
3794 (bpstat_do_actions_1): Use scoped_restore.
3795 (bpstat_check_watchpoint): Use std::string.
3796 (decode_static_tracepoint_spec): Likewise.
3797 (break_range_command): Likewise.
3798 (watch_command_1): Likewise.
3799 (compare_breakpoints): Change argument types.
3800 (clear_command): Use std::vector.
3801 (cleanup_executing_breakpoints): Remove.
3802 (update_global_location_list): Use unique_xmalloc_ptr.
3803 (strace_command): Remove unused declaration.
3804
3805 2017-10-11 John Baldwin <jhb@FreeBSD.org>
3806
3807 * Makefile.in (ALLDEPFILES): Add arm-fbsd-nat.c.
3808 * NEWS: Mention new FreeBSD/arm native configuration.
3809 * configure.host: Add arm*-*-freebsd*.
3810 * configure.nat: Likewise.
3811 * arm-fbsd-nat.c: New file.
3812
3813 2017-10-11 John Baldwin <jhb@FreeBSD.org>
3814
3815 * Makefile.in (ALL_TARGET_OBS): Add arm-fbsd-tdep.o.
3816 (ALLDEPFILES): Add arm-fbsd-tdep.c.
3817 * NEWS: Mention new FreeBSD/arm target.
3818 * configure.tgt: Add arm*-*-freebsd*.
3819 * arm-fbsd-tdep.c: New file.
3820 * arm-fbsd-tdep.h: New file.
3821
3822 2017-10-11 Maciej W. Rozycki <macro@imgtec.com>
3823
3824 * linux-tdep.c (linux_make_corefile_notes): Remove call to
3825 `gdbarch_elfcore_write_linux_prpsinfo'.
3826 * gdbarch.sh (elfcore_write_linux_prpsinfo): Remove architecture
3827 method.
3828 (elf_internal_linux_prpsinfo): Remove declaration.
3829 * gdbarch.h: Regenerate.
3830 * gdbarch.c: Regenerate.
3831
3832 2017-10-11 Maciej W. Rozycki <macro@imgtec.com>
3833
3834 * ppc-linux-tdep.c (ppc_linux_init_abi): Remove call to
3835 `set_gdbarch_elfcore_write_linux_prpsinfo'.
3836
3837 2017-10-11 Pedro Alves <palves@redhat.com>
3838
3839 * breakpoint.c (reattach_breakpoints): Delete.
3840 * breakpoint.h (reattach_breakpoints): Delete.
3841
3842 2017-10-11 Simon Marchi <simon.marchi@ericsson.com>
3843
3844 * symfile.c (registered_sym_fns): Make struct, not typedef.
3845 (DEF_VEC_O (registered_sym_fns)): Remove.
3846 (symtab_fns): Change type to std::vector.
3847 (add_symtab_fns): Adjust.
3848 (find_sym_fns): Adjust.
3849
3850 2017-10-11 Anton Kolesov <Anton.Kolesov@synopsys.com>
3851
3852 * arc-tdep.c (arc_gdbarch_init): Pass proper cpu value to disassembler.
3853 * arc-tdep.h (arc_arch_is_em): New function.
3854 (arc_arch_is_hs): Likewise.
3855
3856 2017-10-11 Egeyar Bagcioglu <egeyar.bagcioglu@oracle.com>
3857
3858 * macrotab.h (macro_lookup_inclusion): Remove unnecessary
3859 parentheses in the declaration.
3860 (macro_lookup_inclusion): Likewise.
3861 (macro_lookup_definition): Likewise.
3862 * p-lang.h (pascal_builtin_types): Likewise.
3863 * tui/tui-data.c (tui_win_list): Likewise.
3864 * tui/tui-data.h (tui_win_list): Likewise.
3865 * utils.h (make_cleanup_free_section_addr_info): Likewise.
3866
3867 2017-10-11 Mark Rages <markrages@gmail.com>
3868
3869 * target-memory.c (block_boundaries): Fix for block address not
3870 aligned on block size.
3871
3872 2017-10-10 Pedro Alves <palves@redhat.com>
3873 Tom Tromey <tom@tromey.com>
3874
3875 * breakpoint.c (struct captured_breakpoint_query_args)
3876 (do_captured_breakpoint_query, gdb_breakpoint_query): Delete.
3877 (print_breakpoint): New.
3878 * breakpoint.h (print_breakpoint): Declare.
3879 * common/common-exceptions.h (enum return_reason): Remove
3880 references to catch_exceptions.
3881 * exceptions.c (catch_exceptions, catch_exceptions_with_msg):
3882 Delete.
3883 * exceptions.h (catch_exceptions_ftype, catch_exceptions)
3884 (catch_exception_ftype, catch_exceptions_with_msg): Delete.
3885 * gdb.h: Delete.
3886 * gdbthread.h (thread_select): Declare.
3887 * mi/mi-cmd-break.c: Don't include gdb.h.
3888 (breakpoint_notify): Use print_breakpoint.
3889 * mi/mi-cmd-catch.c: Don't include gdb.h.
3890 * mi/mi-interp.c: Don't include gdb.h.
3891 (mi_print_breakpoint_for_event): New.
3892 (mi_breakpoint_created, mi_breakpoint_modified): Use
3893 mi_print_breakpoint_for_event.
3894 * mi/mi-main.c: Don't include gdb.h.
3895 (mi_cmd_thread_select): Parse the global thread ID here. Use
3896 thread_select instead of gdb_thread_select.
3897 (mi_cmd_thread_list_ids): Output "thread-ids" tuple here instead
3898 of using gdb_list_thread_ids.
3899 * remote-fileio.c (do_remote_fileio_request): Change type. Reply
3900 FILEIO_ENOSYS here.
3901 (remote_fileio_request): Use TRY/CATCH instead of
3902 catch_exceptions.
3903 * symfile-mem.c (struct symbol_file_add_from_memory_args)
3904 (symbol_file_add_from_memory_wrapper): Delete.
3905 (add_vsyscall_page): Use TRY/CATCH instead of catch_exceptions.
3906 * thread.c: Don't include gdb.h.
3907 (do_captured_list_thread_ids, gdb_list_thread_ids): Delete.
3908 (thread_alive): Use thread_select.
3909 (do_captured_thread_select): Delete, parts salvaged as ...
3910 (thread_select): ... this new function.
3911 (gdb_thread_select): Delete.
3912
3913 2017-10-10 Pedro Alves <palves@redhat.com>
3914 Tom Tromey <tom@tromey.com>
3915
3916 * breakpoint.c (breakpoint_cond_eval): Change return type to bool
3917 and reverse logic.
3918 (WP_DELETED, WP_VALUE_CHANGED, WP_VALUE_NOT_CHANGED, WP_IGNORE):
3919 No longer macros. Instead ...
3920 (enum wp_check_result): They're now values of this new
3921 enumeration.
3922 (watchpoint_check): Change return type to wp_check_result and
3923 parameter type to bpstat.
3924 (bpstat_check_watchpoint): Use TRY/CATCH instead of catch_errors.
3925 (bpstat_check_breakpoint_conditions): Use TRY/CATCH instead of
3926 catch_errors. Reverse logic of watchpoint_check call.
3927 (breakpoint_re_set_one): Now returns void and takes a breakpoint
3928 pointer as parameter.
3929 (breakpoint_re_set): Use TRY/CATCH instead of catch_errors.
3930 * common/common-exceptions.c (throw_exception_sjlj): Update
3931 comments to avoid mentioning catch_errors.
3932 * exceptions.c (catch_errors): Delete.
3933 * exceptions.h: Update comments to avoid mentioning catch_errors.
3934 (catch_errors_ftype, catch_errors): Delete.
3935 * infrun.c (normal_stop): Use TRY/CATCH instead of catch_errors.
3936 (hook_stop_stub): Delete.
3937 (restore_selected_frame): Change return type to void, and
3938 parameter type to const frame_id &.
3939 (restore_infcall_control_state): Use TRY/CATCH instead of
3940 catch_errors.
3941 * main.c (captured_command_loop): Return void and remove
3942 parameter. Remove references to catch_errors.
3943 (captured_main): Use TRY/CATCH instead of catch_errors.
3944 * objc-lang.c (objc_submethod_helper_data)
3945 (find_objc_msgcall_submethod_helper): Delete.
3946 (find_objc_msgcall_submethod): Use TRY/CATCH instead of
3947 catch_errors.
3948 * record-full.c (record_full_message): Return void.
3949 (record_full_message_args, record_full_message_wrapper): Delete.
3950 (record_full_message_wrapper_safe): Return bool and use TRY/CATCH
3951 instead of catch_errors.
3952 * solib-aix.c (solib_aix_open_symbol_file_object): Change
3953 parameter type to int.
3954 * solib-darwin.c (open_symbol_file_object): Ditto.
3955 * solib-dsbt.c (open_symbol_file_object): Ditto.
3956 * solib-frv.c (open_symbol_file_object): Ditto.
3957 * solib-svr4.c (open_symbol_file_object): Ditto.
3958 * solib-target.c (solib_target_open_symbol_file_object): Ditto.
3959 * solib.c (update_solib_list): Use TRY/CATCH instead of
3960 catch_errors.
3961 * solist.h (struct target_so_ops) <open_symbol_file_object>:
3962 Change type.
3963 * symmisc.c (struct print_symbol_args): Remove.
3964 (dump_symtab_1): Use TRY/CATCH instead of catch_errors.
3965 (print_symbol): Change type.
3966 * windows-nat.c (handle_load_dll, handle_unload_dll): Return void
3967 and remove parameters.
3968 (catch_errors): New.
3969 (get_windows_debug_event): Adjust.
3970
3971 2017-10-09 Tom Tromey <tom@tromey.com>
3972
3973 * mi/mi-main.c (free_splay_tree): Remove.
3974 (list_available_thread_groups): Use splay_tree_up.
3975 * common/gdb_splay_tree.h: New file.
3976
3977 2017-10-09 Tom Tromey <tom@tromey.com>
3978
3979 * mi/mi-main.c (do_nothing): Remove.
3980 (list_available_thread_groups): Update.
3981
3982 2017-10-09 Pedro Alves <palves@redhat.com>
3983
3984 * infrun.c (handle_inferior_event_1) <TARGET_WAITKIND_EXECD>: Skip
3985 reading registers when switching context.
3986
3987 2017-10-09 John Baldwin <jhb@FreeBSD.org>
3988
3989 * fbsd-nat.c (fbsd_siginfo_size): Use gdbarch_long_bit.
3990 (fbsd_convert_siginfo): Likewise.
3991 * fbsd-tdep.c (fbsd_core_xfer_siginfo): Likewise.
3992
3993 2017-10-09 Simon Marchi <simon.marchi@polymtl.ca>
3994
3995 * configure.ac (try_guile_versions): Remove guile-2.2.
3996 * configure: Regenerate.
3997
3998 2017-10-09 Tom Tromey <tom@tromey.com>
3999
4000 * Makefile.in (COMPILE.post, POSTCOMPILE): Restore $(basename).
4001 (COMPILE.pre): Use $(CXX).
4002
4003 2017-10-09 Pedro Alves <palves@redhat.com>
4004
4005 * cp-support.c (cp_remove_params): Return a gdb::unique_xmalloc_ptr.
4006 Use bool.
4007 (overload_list_add_symbol): Adjust to use gdb::unique_xmalloc_ptr.
4008 * cp-support.h (cp_remove_params): Now returns a
4009 gdb::unique_xmalloc_ptr.
4010 * dwarf2read.c (find_slot_in_mapped_hash): Now returns bool.
4011 Adjust to cp_remove_params returning a gdb::unique_xmalloc_ptr.
4012 * psymtab.c (psymtab_search_name): Adjust to cp_remove_params
4013 returning a gdb::unique_xmalloc_ptr.
4014 (lookup_partial_symbol): Adjust to use gdb::unique_xmalloc_ptr.
4015 * stack.c (find_frame_funname): Adjust to cp_remove_params
4016 returning a gdb::unique_xmalloc_ptr.
4017
4018 2017-10-08 Tom Tromey <tom@tromey.com>
4019
4020 * dwarf2read.c (dwarf2_get_dwz_file): Use
4021 gdb::unique_xmalloc_ptr.
4022 (find_slot_in_mapped_hash): Likewise.
4023 (dwarf2_physname): Likewise.
4024 (create_dwo_unit_in_dwp_v1): Use std::string.
4025 (create_dwo_unit_in_dwp_v2): Likewise.
4026 (lookup_dwo_cutu): Likewise.
4027 (inherit_abstract_dies): Use std::vector.
4028 (read_array_type): Likewise.
4029 (dwarf_decode_macros): Remove unused declaration.
4030 (unsigned_int_compar): Remove.
4031 (dwarf2_build_psymtabs_hard): Use scoped_restore.
4032 (psymtabs_addrmap_cleanup): Remove.
4033
4034 2017-10-08 Tom Tromey <tom@tromey.com>
4035
4036 * frame-unwind.c (frame_unwind_try_unwinder): Update.
4037 * frame.h (frame_cleanup_after_sniffer): Declare.
4038 (frame_prepare_for_sniffer): Return void.
4039 * frame.c (frame_cleanup_after_sniffer): No longer static. Change
4040 type of argument.
4041 (frame_prepare_for_sniffer): Return void.
4042
4043 2017-10-08 Tom Tromey <tom@tromey.com>
4044
4045 * utils.h (make_cleanup_value_free): Remove.
4046 * utils.c (do_value_free, struct cleanup): Remove.
4047 * dwarf2loc.c (dwarf2_evaluate_loc_desc_full) <DWARF_VALUE_STACK>:
4048 Use gdb_value_up.
4049 * value.h (struct value_deleter): New.
4050 (gdb_value_up): New typedef.
4051
4052 2017-10-08 Tom Tromey <tom@tromey.com>
4053
4054 * symtab.c (free_search_symbols, do_free_search_symbols_cleanup)
4055 (make_cleanup_free_search_symbols): Remove.
4056 (search_symbols): Return std::vector.
4057 (symbol_search::compare_search_syms): Now member of
4058 symbol_search. Change arguments.
4059 (sort_search_symbols_remove_dups): Change arguments. Rewrite.
4060 (symtab_symbol_info, rbreak_command): Update.
4061 * symtab.h (struct symbol_search) <next>: Remove.
4062 Add constructors.
4063 (symbol_search::operator<): New function.
4064 (symbol_search::operator==): New function.
4065 (search_symbols): Remove std::vector.
4066 (free_search_symbols, make_cleanup_free_search_symbols): Remove.
4067 (symbol_search::compare_search_syms): Declare.
4068
4069 2017-10-06 Yao Qi <yao.qi@linaro.org>
4070
4071 * Makefile.in (ALL_64_TARGET_OBS): Replace aarch64-insn.o with
4072 arch/aarch64-insn.o.
4073 Remove one rule.
4074 * configure.tgt: Replace aarch64-insn.o with arch/aarch64-insn.o.
4075
4076 2017-10-06 Yao Qi <yao.qi@linaro.org>
4077
4078 * Makefile.in (ALL_TARGET_OBS): Replace arm.o, arm-get-next-pcs.o,
4079 and arm-linux.o with arch/arm.o, arch/arm-get-next-pcs.o and
4080 arch/arm-linux.o respectively.
4081 * configure.tgt: Likewise.
4082
4083 2017-10-06 Yao Qi <yao.qi@linaro.org>
4084
4085 * Makefile.in (ALL_TARGET_OBS): Rename i386.o to arch/i386.o.
4086 * configure.tgt (i386_tobjs): Replace i386.o with arch/i386.o.
4087
4088 2017-10-06 Pedro Alves <palves@redhat.com>
4089
4090 * windows-nat.c: Include <algorithm>.
4091
4092 2017-10-06 Yao Qi <yao.qi@linaro.org>
4093
4094 * configure.tgt (i386_tobjs): New variable.
4095 (amd64_tobjs): New variable.
4096 Set $cpu_obs and $os_obs.
4097
4098 2017-10-06 Yao Qi <yao.qi@linaro.org>
4099
4100 * Makefile.in (CONFIG_SRC_SUBDIR): New.
4101 (ALL_64_TARGET_OBS): Replace amd64.o with arch/amd64.o.
4102 (clean): Remove object files and dependency files.
4103 (distclean): Remove the directory.
4104 * configure.ac: Invoke AC_CONFIG_COMMANDS.
4105 * configure: Re-generated.
4106 * configure.tgt: Replace amd64.o with arch/amd64.o.
4107
4108 2017-10-05 Jose E. Marchesi <jose.marchesi@oracle.com>
4109
4110 PR build/22188
4111 * arm-tdep.c (arm_decode_misc_memhint_neon): Fix decoding of CPS
4112 and SETEND.
4113
4114 2017-10-05 Pedro Alves <palves@redhat.com>
4115
4116 * linux-nat.c (linux_child_follow_fork): When following the parent
4117 and detaching the child, consult the parent thread's architecture
4118 instead of the child's.
4119
4120 2017-10-05 Ulrich Weigand <uweigand@de.ibm.com>
4121
4122 * ax.h: Do not include "doublest.h".
4123 (union agent_val): Remove.
4124
4125 2017-10-05 Ulrich Weigand <uweigand@de.ibm.com>
4126
4127 * dfp.h (MAX_DECIMAL_STRING): Move to dfp.c.
4128 (decimal_to_string): Return std::string object.
4129 (decimal_from_string): Accept std::string object. Return bool.
4130 (decimal_from_integral, decimal_from_doublest): Remove.
4131 (decimal_from_longest): Add prototype.
4132 (decimal_from_ulongest): Likewise.
4133 (decimal_to_longest): Likewise.
4134 (decimal_from_doublest): Likewise.
4135 * dfp.c: Do not include "gdbtypes.h" or "value.h".
4136 (MAX_DECIMAL_STRING): Move here.
4137 (decimal_to_string): Return std::string object.
4138 (decimal_from_string): Accept std::string object. Return bool.
4139 (decimal_from_integral): Remove, replace by ...
4140 (decimal_from_longest, decimal_from_ulongest): ... these new functions.
4141 (decimal_to_longest): New function.
4142 (decimal_from_floating): Remove, replace by ...
4143 (decimal_from_doublest): ... this new function.
4144 (decimal_to_doublest): Update to new decimal_to_string interface.
4145
4146 * value.c (unpack_long): Use decimal_to_longest.
4147 * valops.c (value_cast): Use decimal_from_doublest instead of
4148 decimal_from_floating. Use decimal_from_[u]longest isntead of
4149 decimal_from_integral.
4150 * valarith.c (value_args_as_decimal): Likewise.
4151 * valprint.c (print_decimal_floating): Update to new
4152 decimal_to_string interface.
4153 * printcmd.c (printf_decfloat): Likewise.
4154 * c-exp.y (parse_number): Update to new decimal_from_string interface.
4155
4156 2017-10-05 Ulrich Weigand <uweigand@de.ibm.com>
4157
4158 * doublest.h: Do not include "floatformat.h". Remove stale comments.
4159 * gdbtypes.c: Include "floatformat.h".
4160 * value.c: Likewise.
4161 * m68k-tdep.c: Likewise.
4162
4163 * findvar.c: Do not include "floatformat.h".
4164 * amd64-darwin-tdep.c: Likewise.
4165 * arm-linux-tdep.c: Likewise.
4166 * i386-darwin-tdep.c: Likewise.
4167 * i387-tdep.c: Likewise.
4168 * m68k-linux-tdep.c: Likewise.
4169 * mep-tdep.c: Likewise.
4170 * mips-tdep.c: Likewise.
4171 * nios2-tdep.c: Likewise.
4172 * s390-linux-tdep.c: Likewise.
4173 * sparc-obsd-tdep.c: Likewise.
4174 * sparc-tdep.c: Likewise.
4175 * sparc64-tdep.c: Likewise.
4176 * spu-tdep.c: Likewise.
4177 * tic6x-tdep.c: Likewise.
4178 * tilegx-tdep.c: Likewise.
4179 * vax-tdep.c: Likewise.
4180 * xstormy16-tdep.c: Likewise.
4181 * xtensa-tdep.c: Likewise.
4182
4183 * top.c: Do not include "doublest.h".
4184 * aarch64-tdep.c: Likewise.
4185 * alpha-tdep.c: Likewise.
4186 * arm-linux-tdep.c: Likewise.
4187 * m68k-linux-tdep.c: Likewise.
4188 * tilegx-tdep.c: Likewise.
4189 * xstormy16-tdep.c: Likewise.
4190
4191 2017-10-05 John Baldwin <jhb@FreeBSD.org>
4192
4193 * mips-fbsd-tdep.c (MIPS_INST_ADDIU_A0_SP_N32): Define.
4194 (mipsn32_fbsd_sigframe): Define.
4195 (mips_fbsd_init_abi): Install mipsn32_fbsd_sigframe unwinder
4196 for FreeBSD/mipsn32.
4197
4198 2017-10-05 John Baldwin <jhb@FreeBSD.org>
4199
4200 * fbsd-tdep.c (fbsd_print_auxv_entry): Handle AT_EHDRFLAGS and
4201 AT_HWCAP.
4202
4203 2017-10-05 Tristan Gingold <tgingold@free.fr>
4204
4205 * MAINTAINERS (Misc): Update my email address.
4206
4207 2017-10-04 Pedro Alves <palves@redhat.com>
4208
4209 * remote.c (get_remote_arch_state): New 'gdbarch' parameter. Use
4210 it instead of target_gdbarch.
4211 (get_remote_state, get_remote_packet_size): Adjust
4212 get_remote_arch_state calls, passing down target_gdbarch
4213 explicitly.
4214 (packet_reg_from_regnum, packet_reg_from_pnum): New parameter
4215 'gdbarch' and use it instead of target_gdbarch.
4216 (get_memory_packet_size): Adjust get_remote_arch_state calls,
4217 passing down target_gdbarch explicitly.
4218 (struct stop_reply) <arch>: New field.
4219 (remote_parse_stop_reply): Use the stopped thread's architecture,
4220 not the current inferior's. Save the architecture in the
4221 stop_reply.
4222 (process_stop_reply): Use the stop reply's architecture.
4223 (process_g_packet, remote_fetch_registers)
4224 (remote_prepare_to_store, store_registers_using_G)
4225 (remote_store_registers): Adjust get_remote_arch_state calls,
4226 using the regcache's architecture.
4227 (remote_get_trace_status): Adjust get_remote_arch_state calls,
4228 passing down target_gdbarch explicitly.
4229 * spu-multiarch.c (spu_thread_architecture): Defer to the target
4230 beneath instead of calling target_gdbarch.
4231 * target.c (default_thread_architecture): Use the specified
4232 inferior's architecture, instead of the current inferior's
4233 architecture (via target_gdbarch).
4234
4235 2017-10-04 Pedro Alves <palves@redhat.com>
4236
4237 * regcache.c (get_thread_arch_regcache): Remove null_ptid special
4238 case.
4239 (regcache_print): Handle !target_has_registers here instead.
4240
4241 2017-10-04 Pedro Alves <palves@redhat.com>
4242
4243 * frame.c (create_test_frame): Delete.
4244 * frame.h (create_test_frame): Delete.
4245 * gdbarch-selftests.c: Include gdbthread.h and target.h.
4246 (class regcache_test): Delete.
4247 (test_target_has_registers, test_target_has_stack)
4248 (test_target_has_memory, test_target_prepare_to_store)
4249 (test_target_store_registers): New functions.
4250 (test_target_ops): New class.
4251 (register_to_value_test): Error out if there's already a
4252 process_stratum (or higher) target pushed. Create a fuller mock
4253 environment, with mock target_ops, inferior, address space, thread
4254 and inferior_ptid.
4255 * progspace.c (struct address_space): Move to ...
4256 * progspace.h (struct address_space): ... here.
4257 * regcache.h (regcache::~regcache, regcache::raw_write)
4258 [GDB_SELF_TEST]: No longer virtual.
4259
4260 2017-10-04 Simon Marchi <simon.marchi@ericsson.com>
4261
4262 * mi/mi-main.c (list_available_thread_groups): Reverse filter logic.
4263
4264 2017-10-04 Pedro Alves <palves@redhat.com>
4265
4266 * guile/scm-breakpoint.c (gdbscm_breakpoint_commands): Move code
4267 out of 'between TRY and CATCH'.
4268
4269 2017-10-04 Pedro Alves <palves@redhat.com>
4270
4271 * cli/cli-cmds.c (complete_command): Add missing END_CATCH.
4272 * common/common-exceptions.h (TRY): Open an outermost scope.
4273 Expand intro comment.
4274 (CATCH): Reindent.
4275 (END_CATCH): Close the outermost scope.
4276 * completer.c (complete_line_internal): Add missing END_CATCH.
4277
4278 2017-10-04 Sergio Durigan Junior <sergiodj@redhat.com>
4279
4280 * NEWS (Changes since GDB 8.0): Add entry about new
4281 'set-cwd-on-gdbserver' feature.
4282 (New remote packets): Add entry for QSetWorkingDir.
4283 * common/common-inferior.h (set_inferior_cwd): New prototype.
4284 * infcmd.c (set_inferior_cwd): Remove "static".
4285 (show_cwd_command): Expand text to include remote debugging.
4286 * remote.c: Add PACKET_QSetWorkingDir.
4287 (remote_protocol_features) <QSetWorkingDir>: New entry for
4288 PACKET_QSetWorkingDir.
4289 (extended_remote_set_inferior_cwd): New function.
4290 (extended_remote_create_inferior): Call
4291 "extended_remote_set_inferior_cwd".
4292 (_initialize_remote): Call "add_packet_config_cmd" for
4293 QSetWorkingDir.
4294
4295 2017-10-04 Sergio Durigan Junior <sergiodj@redhat.com>
4296
4297 * NEWS (New commands): Mention "set/show cwd".
4298 * cli/cli-cmds.c (_initialize_cli_cmds): Mention "set cwd" on
4299 "cd" command's help text.
4300 * common/common-inferior.h (get_inferior_cwd): New prototype.
4301 * infcmd.c (inferior_cwd_scratch): New global variable.
4302 (set_inferior_cwd): New function.
4303 (get_inferior_cwd): Likewise.
4304 (set_cwd_command): Likewise.
4305 (show_cwd_command): Likewise.
4306 (_initialize_infcmd): Add "set/show cwd" commands.
4307 * inferior.h (class inferior) <cwd>: New field.
4308 * nat/fork-inferior.c: Include "gdb_tilde_expand.h".
4309 (fork_inferior): Change inferior's cwd before its execution.
4310 * windows-nat.c (windows_create_inferior): Pass inferior's cwd
4311 to CreateProcess.
4312
4313 2017-10-04 Sergio Durigan Junior <sergiodj@redhat.com>
4314
4315 * Makefile.in (SFILES): Add gdb_tilde_expand.c.
4316 (HFILES_NO_SRCDIR): Add gdb_tilde_expand.h.
4317 (COMMON_OBS): Add gdb_tilde_expand.o.
4318 * common/gdb_tilde_expand.c: New file.
4319 * common/gdb_tilde_expand.h: Likewise.
4320
4321 2017-10-03 Maciej W. Rozycki <macro@imgtec.com>
4322
4323 * gdbarch.sh (objfile): Remove duplicate declaration.
4324 * gdbarch.h: Regenerate.
4325
4326 2017-10-03 Tom Tromey <tom@tromey.com>
4327
4328 * utils.c (internal_vproblem): Use string_vprintf.
4329
4330 2017-10-03 Tom Tromey <tom@tromey.com>
4331
4332 * printcmd.c (info_symbol_command): Use std::string.
4333
4334 2017-10-03 Tom Tromey <tom@tromey.com>
4335
4336 * top.c (gdb_safe_append_history): Use std::string.
4337
4338 2017-10-03 Tom Tromey <tom@tromey.com>
4339
4340 * event-top.c (stdin_event_handler): Update.
4341 * main.c (captured_main_1): Update.
4342 * top.h (make_delete_ui_cleanup): Remove.
4343 (struct ui): Add constructor and destructor.
4344 (new_ui, delete_ui): Remove.
4345 * top.c (make_delete_ui_cleanup): Remove.
4346 (new_ui_command): Use std::unique_ptr.
4347 (delete_ui_cleanup): Remove.
4348 (ui::ui): Rename from new_ui. Update.
4349 (free_ui): Remove.
4350 (ui::~ui): Rename from delete_ui. Update.
4351
4352 2017-10-03 Tom Tromey <tom@tromey.com>
4353
4354 * symfile.c (load_progress): Use gdb::byte_vector.
4355
4356 2017-10-03 Tom Tromey <tom@tromey.com>
4357
4358 * mi/mi-main.c (mi_cmd_trace_frame_collected): Remove unused
4359 declaration.
4360 * printcmd.c (x_command): Remove unused declaration.
4361 * symfile.c (symbol_file_command): Remove unused declaration.
4362
4363 2017-10-03 Tom Tromey <tom@tromey.com>
4364
4365 * utils.c (internal_vproblem): Use std::string.
4366 (defaulted_query): Likewise.
4367
4368 2017-10-03 Tom Tromey <tom@tromey.com>
4369
4370 * guile/scm-ports.c (ioscm_with_output_to_port_worker): Update.
4371 * top.c (execute_command_to_string): Update.
4372 * utils.c (make_cleanup_restore_page_info): Remove.
4373 (do_restore_page_info_cleanup): Remove.
4374 (set_batch_flag_and_restore_page_info):
4375 New.
4376 (make_cleanup_restore_page_info): Remove.
4377 (set_batch_flag_and_make_cleanup_restore_page_info): Remove.
4378 (~set_batch_flag_and_restore_page_info): New
4379 (make_cleanup_restore_uinteger): Remove.
4380 (make_cleanup_restore_integer): Remove.
4381 (struct restore_integer_closure): Remove.
4382 (restore_integer): Remove.
4383 * utils.h (struct set_batch_flag_and_restore_page_info): New
4384 class.
4385 (set_batch_flag_and_make_cleanup_restore_page_info): Remove.
4386 (make_cleanup_restore_page_info): Remove.
4387 (make_cleanup_restore_uinteger) Remove.
4388 (make_cleanup_restore_integer) Remove.
4389
4390 2017-10-03 Tom Tromey <tom@tromey.com>
4391
4392 * record-full.h (record_full_gdb_operation_disable_set): Return
4393 scoped_restore_tmpl<int>.
4394 * infrun.c (adjust_pc_after_break): Update.
4395 (handle_signal_stop): Update.
4396 * record-full.c (record_full_gdb_operation_disable_set): Return
4397 scoped_restore_tmpl<int>.
4398 (record_full_wait_1, record_full_insert_breakpoint)
4399 (record_full_remove_breakpoint, record_full_save)
4400 (record_full_goto_insn): Update.
4401
4402 2017-10-02 Tom Tromey <tom@tromey.com>
4403
4404 PR rust/22236:
4405 * rust-lang.c (rust_val_print_str): New function.
4406 (val_print_struct): Call it.
4407 (rust_subscript): Preserve name of slice type.
4408
4409 2017-10-02 Tom Tromey <tom@tromey.com>
4410
4411 * rust-lang.c (rust_subscript): Handle slices in
4412 EVAL_AVOID_SIDE_EFFECTS case.
4413
4414 2017-10-02 Tom Tromey <tom@tromey.com>
4415
4416 * rust-lang.c (rust_slice_type_p): Recognize &str as a slice type.
4417
4418 2017-10-02 Tom Tromey <tom@tromey.com>
4419
4420 * rust-lang.h (rust_slice_type): Add "extern".
4421
4422 2017-10-02 Tom Tromey <tom@tromey.com>
4423 Pedro Alves <palves@redhat.com>
4424
4425 * ada-lang.h (ada_exc_info::operator<): Make const.
4426 (ada_exc_info::operator==): Make const.
4427 * ada-lang.c (ada_exc_info::operator<, ada_exc_info::operator==):
4428 Make const.
4429
4430 2017-09-29 Tom Tromey <tom@tromey.com>
4431
4432 * target.c (read_whatever_is_readable): Change type of "result".
4433 Update.
4434 (free_memory_read_result_vector): Remove.
4435 (read_memory_robust): Change return type. Update.
4436 * mi/mi-main.c (mi_cmd_data_read_memory_bytes): Update. Use
4437 bin2hex, std::string.
4438 * target.h (memory_read_result_s): Remove typedef.
4439 (free_memory_read_result_vector): Remove.
4440 (read_memory_robust): Return std::vector.
4441
4442 2017-09-29 Tom Tromey <tom@tromey.com>
4443
4444 * mi/mi-main.c (captured_mi_execute_command): Use scope_restore.
4445
4446 2017-09-29 Tom Tromey <tom@tromey.com>
4447
4448 * mi/mi-cmd-info.c (mi_cmd_info_ada_exceptions): Update.
4449 * ada-lang.h (struct ada_exc_info): Remove typedef. Declare
4450 operator< and operator==.
4451 (ada_exceptions_list): Return a std::vector.
4452 * ada-lang.c (ada_exc_info::operator<): Rename from
4453 compare_ada_exception_info.
4454 (ada_exc_info::operator==): New.
4455 (sort_remove_dups_ada_exceptions_list): Change type of
4456 "exceptions".
4457 (ada_add_standard_exceptions, ada_add_exceptions_from_frame)
4458 (ada_add_global_exceptions): Likewise.
4459 (ada_exceptions_list_1): Return a std::vector.
4460 (ada_exceptions_list): Likewise.
4461
4462 2017-09-29 Tom Tromey <tom@tromey.com>
4463
4464 * mi/mi-main.c (struct print_one_inferior_data) <inferiors>: Now a
4465 'std::set *'.
4466 (print_one_inferior): Update.
4467 (free_vector_of_ints): Remove.
4468 (list_available_thread_groups): Change "ids" to std::set.
4469 (mi_cmd_list_thread_groups): Update.
4470 (struct collect_cores_data) <core>: Now a std::set.
4471 (collect_cores): Update.
4472 (unique): Remove.
4473 (print_one_inferior): Update.
4474
4475 2017-09-29 Tom Tromey <tom@tromey.com>
4476
4477 * mi/mi-main.c (mi_execute_cli_command): Use std::string.
4478 (mi_execute_async_cli_command): Likewise.
4479 (mi_cmd_trace_frame_collected): Use field_fmt.
4480
4481 2017-09-29 Tom Tromey <tom@tromey.com>
4482
4483 * mi/mi-main.c (mi_cmd_data_write_memory_bytes): Use
4484 gdb::byte_vector.
4485
4486 2017-09-29 Tom Tromey <tom@tromey.com>
4487
4488 * mi/mi-parse.c (mi_parse): Remove unused declaration.
4489
4490 2017-09-29 Tom Tromey <tom@tromey.com>
4491
4492 * mi/mi-cmd-disas.c (mi_cmd_disassemble): Don't copy "oarg".
4493
4494 2017-09-29 Tom Tromey <tom@tromey.com>
4495
4496 * varobj.h (varobj_gen_name): Return std::string.
4497 * varobj.c (varobj_gen_name): Return std::string.
4498 * mi/mi-cmd-var.c (mi_cmd_var_create): Use std::string.
4499 (mi_cmd_var_delete): Don't copy "name".
4500
4501 2017-09-29 Tom Tromey <tom@tromey.com>
4502
4503 * mi/mi-cmd-break.c (mi_argv_to_format): Return std::string.
4504 (mi_cmd_break_insert_1): Update.
4505
4506 2017-09-29 Tom Tromey <tom@tromey.com>
4507
4508 * target.h (make_scoped_defer_target_commit_resume): Update.
4509 * target.c (make_scoped_defer_target_commit_resume): Rename from
4510 make_cleanup_defer_target_commit_resume. Return a
4511 scoped_restore.
4512 * infrun.c (proceed): Use make_scoped_defer_target_commit_resume.
4513
4514 2017-09-29 Tom Tromey <tom@tromey.com>
4515
4516 * main.c (captured_main_1): Remove unused declaration.
4517 * spu-multiarch.c (parse_spufs_run): Remove unused declaration.
4518
4519 2017-09-29 Tom Tromey <tom@tromey.com>
4520
4521 * symtab.c (search_symbols): Remove unused outer cleanup.
4522 (make_source_files_completion_list): Remove unused declaration.
4523
4524 2017-09-29 Tom Tromey <tom@tromey.com>
4525
4526 * mt-tdep.c (mt_push_dummy_call): Use gdb::byte_vector.
4527
4528 2017-09-29 Tom Tromey <tom@tromey.com>
4529
4530 * xstormy16-tdep.c (xstormy16_push_dummy_call): Use
4531 gdb::byte_vector.
4532
4533 2017-09-29 Tom Tromey <tom@tromey.com>
4534
4535 * complaints.c (vcomplaint): Use std::string.
4536
4537 2017-09-29 Tom Tromey <tom@tromey.com>
4538
4539 * tracepoint.c (trace_variable_command): Use std::string.
4540 (encode_actions_1): Remove unused declarations.
4541 (create_tsv_from_upload): Use std::string.
4542
4543 2017-09-29 Tom Tromey <tom@tromey.com>
4544
4545 * cp-support.c (gdb_demangle): Use std::string.
4546
4547 2017-09-29 Tom Tromey <tom@tromey.com>
4548
4549 * stack.c (parse_frame_specification): Use std::string
4550 (info_frame_command): Use gdb::unique_xmalloc_ptr.
4551
4552 2017-09-29 Tom Tromey <tom@tromey.com>
4553
4554 * tilegx-tdep.c (tilegx_push_dummy_call): Use gdb::byte_vector.
4555
4556 2017-09-29 Tom Tromey <tom@tromey.com>
4557
4558 * utils.c (vfprintf_maybe_filtered): Use std::string.
4559 (vfprintf_unfiltered): Likewise.
4560
4561 2017-09-29 Tom Tromey <tom@tromey.com>
4562
4563 * event-top.c (top_level_prompt): Return std::string.
4564 (display_gdb_prompt): Update.
4565
4566 2017-09-29 Tom Tromey <tom@tromey.com>
4567
4568 * unittests/common-utils-selftests.c (format): New function.
4569 (string_vprintf_tests): New function.
4570 (_initialize_common_utils_selftests): Register new tests.
4571 * common/common-utils.c (string_vprintf): New function.
4572 * common/common-utils.h (string_vprintf): Declare.
4573
4574 2017-09-29 Pedro Alves <palves@redhat.com>
4575
4576 * common/rsp-low.c (unpack_varlen_hex): Constify.
4577 * common/rsp-low.h (unpack_varlen_hex): Constify.
4578 * linux-nat.c (linux_child_static_tracepoint_markers_by_strid):
4579 Constify.
4580 * remote.c (remote_set_permissions, read_ptid)
4581 (remote_current_thread, remote_get_threads_with_qthreadinfo)
4582 (remote_static_tracepoint_marker_at)
4583 (remote_static_tracepoint_markers_by_strid)
4584 (stop_reply_extract_thread, remote_parse_stop_reply): Constify.
4585 * tracepoint.c (parse_trace_status, parse_tracepoint_status)
4586 (parse_tracepoint_definition, parse_tsv_definition)
4587 (parse_static_tracepoint_marker_definition): Constify.
4588 * tracepoint.h (parse_static_tracepoint_marker_definition)
4589 (parse_trace_status, parse_tracepoint_status)
4590 (parse_tracepoint_definition, parse_tsv_definition): Constify.
4591
4592 2017-09-29 Pedro Alves <palves@redhat.com>
4593
4594 * remote.c (target_buf, target_buf_size): Delete.
4595 (remote_get_noisy_reply): Remove buf_p and sizeof_buf parameters.
4596 Use the connection's packet buffer instead.
4597 All callers adjusted.
4598 (_initialize_remote): Remove references to target_buf and
4599 target_buf_size.
4600
4601 2017-09-28 Pedro Alves <palves@redhat.com>
4602
4603 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
4604 unittests/common-utils-selftests.c.
4605 (SUBDIR_UNITTESTS_OBS): Add common-utils-selftests.o.
4606 (COMMON_OBS): Remove utils-selftests.o.
4607 * utils-selftests.c: Move to ...
4608 * unittests/common-utils-selftests.c: ... here and rename self
4609 test to "string_printf".
4610
4611 2017-09-28 Alexander Shaposhnikov <alexander.v.shaposhnikov@gmail.com> (tiny patch)
4612
4613 * dwarf2read.c (open_and_init_dwp_file): Protect against dwp_file
4614 having NULL cus or tus.
4615
4616 2017-09-27 Ulrich Weigand <uweigand@de.ibm.com>
4617
4618 * arm-tdep.c: (convert_from_extended): Remove.
4619 (convert_to_extended): Likewise.
4620 (arm_extract_return_value): Use convert_typed_floating.
4621 (arm_store_return_value): Likewise.
4622
4623 * sh-tdep.h (struct gdbarch_tdep): Add sh_littlebyte_bigword_type.
4624 * sh-tdep.c: Do not include "floatformat.h".
4625 (sh_littlebyte_bigword_type): New function.
4626 (sh_register_convert_to_virtual): Use convert_typed_floating.
4627 (sh_register_convert_to_raw): Likewise.
4628 * sh64-tdep.c: (struct gdbarch_tdep): Add sh_littlebyte_bigword_type.
4629 (sh64_littlebyte_bigword_type): New function.
4630 (sh64_extract_return_value): Use convert_typed_floating.
4631 (sh64_register_convert_to_virtual): Likewise.
4632 (sh64_register_convert_to_raw): Likewise.
4633
4634 2017-09-27 Ulrich Weigand <uweigand@de.ibm.com>
4635
4636 * doublest.h (floatformat_from_type): Move to gdbtypes.h.
4637 * doublest.c (floatformat_from_type): Move to gdbtypes.c.
4638
4639 * gdbtypes.h (union type_specific): Make field floatformat hold
4640 just a single struct floatformat, not an array.
4641 (floatformat_from_type): Move here.
4642 * gdbtypes.c (floatformat_from_type): Move here. Update to
4643 changed TYPE_FLOATFORMAT definition.
4644 (verify_floatformat): Update to changed TYPE_FLOATFORMAT.
4645 (recursive_dump_type): Likewise.
4646 (init_float_type): Install correct floatformat for byte order.
4647 (arch_float_type): Likewise.
4648
4649 2017-09-27 Ulrich Weigand <uweigand@de.ibm.com>
4650
4651 * gdbtypes.c (init_type): Change incoming argument from
4652 length-in-bytes to length-in-bits. Assert length is a
4653 multiple of TARGET_CHAR_BITS.
4654 (arch_type, arch_flags_type): Likewise.
4655 (init_integer_type): Update call to init_type.
4656 (init_character_type): Likewise.
4657 (init_boolean_type): Likewise.
4658 (init_float_type): Likewise.
4659 (init_decfloat_type): Likewise.
4660 (init_complex_type): Likewise.
4661 (init_pointer_type): Likewise.
4662 (objfile_type): Likewise.
4663 (arch_integer_type): Update call to arch_type.
4664 (arch_character_type): Likewise.
4665 (arch_boolean_type): Likewise.
4666 (arch_float_type): Likewise.
4667 (arch_decfloat_type): Likewise.
4668 (arch_complex_type): Likewise.
4669 (arch_pointer_type): Likewise.
4670 (gdbtypes_post_init): Likewise.
4671
4672 * dwarf2read.c (dwarf2_init_float_type): Update call to init_type.
4673 (read_base_type): Likewise.
4674 * mdebugread.c (basic_type): Likewise.
4675 * stabsread.c (dbx_init_float_type): Likewise.
4676 (rs6000_builtin_type): Likewise.
4677 (read_range_type): Likewise. Also, fix call to init_integer_type
4678 with erroneous length argument.
4679
4680 * ada-lang.c (ada_language_arch_info): Update call to arch_type.
4681 * d-lang.c (build_d_types): Likewise.
4682 * f-lang.c (build_fortran_types): Likewise.
4683 * go-lang.c (build_go_types): Likewise.
4684 * opencl-lang.c (build_opencl_types): Likewise.
4685 * jit.c (finalize_symtab): Likewise.
4686 * gnu-v3-abi.c (build_gdb_vtable_type): Likewise.
4687 (build_std_type_info_type): Likewise.
4688 * target-descriptions.c (tdesc_gdb_type): Likewise. Also,
4689 update call to arch_flags_type.
4690
4691 * linux-tdep.c (linux_get_siginfo_type_with_fields): Update call to
4692 arch_type.
4693 * fbsd-tdep.c (fbsd_get_siginfo_type): Likewise.
4694 * windows-tdep.c (windows_get_tlb_type): Likewise.
4695
4696 * avr-tdep.c (avr_gdbarch_init): Update call to arch_type.
4697 * ft32-tdep.c (ft32_gdbarch_init): Likewise.
4698 * m32c-tdep.c (make_types): Likewise.
4699 * rl78-tdep.c (rl78_gdbarch_init): Likewise.
4700 (rl78_psw_type): Update call to arch_flags_type.
4701 * m68k-tdep.c (m68k_ps_type): Update call to arch_flags_type.
4702 * rx-tdep.c (rx_psw_type): Likewise.
4703 (rx_fpsw_type): Likewise.
4704 * sparc-tdep.c (sparc_psr_type): Likewise.
4705 (sparc_fsr_type): Likewise.
4706 * sparc64-tdep.c (sparc64_pstate_type): Likewise.
4707 (sparc64_ccr_type): Likewise.
4708 (sparc64_fsr_type): Likewise.
4709 (sparc64_fprs_type): Likewise.
4710
4711 2017-09-27 Tom Tromey <tom@tromey.com>
4712
4713 * findcmd.c (find_command): Constify.
4714
4715 2017-09-27 Tom Tromey <tom@tromey.com>
4716
4717 * ada-tasks.c (task_command_1, task_command): Constify.
4718
4719 2017-09-27 Tom Tromey <tom@tromey.com>
4720
4721 * symtab.c (maintenance_print_symbol_cache)
4722 (maintenance_flush_symbol_cache)
4723 (maintenance_print_symbol_cache_statistics): Constify.
4724
4725 2017-09-27 Tom Tromey <tom@tromey.com>
4726
4727 * inferior.c (detach_inferior_command, kill_inferior_command)
4728 (inferior_command): Constify.
4729
4730 2017-09-27 Tom Tromey <tom@tromey.com>
4731
4732 * regcache.c (regcache_print, maintenance_print_registers)
4733 (maintenance_print_raw_registers)
4734 (maintenance_print_cooked_registers)
4735 (maintenance_print_register_groups)
4736 (maintenance_print_remote_registers): Constify.
4737
4738 2017-09-27 Tom Tromey <tom@tromey.com>
4739
4740 * printcmd.c (map_display_numbers, undisplay_command)
4741 (enable_disable_display_command, enable_display_command)
4742 (disable_display_command): Constify.
4743
4744 2017-09-27 Tom Tromey <tom@tromey.com>
4745
4746 * breakpoint.h (delete_command): Don't declare.
4747 * breakpoint.c (delete_command, enable_once_command)
4748 (enable_count_command, enable_delete_command, breakpoint_1)
4749 (maintenance_info_breakpoints, stopin_command, stopat_command)
4750 (delete_command, delete_trace_command, save_breakpoints)
4751 (save_breakpoints_command, save_tracepoints_command): Constify.
4752
4753 2017-09-27 Tom Tromey <tom@tromey.com>
4754
4755 * macrocmd.c (macro_expand_command, macro_expand_once_command)
4756 (skip_ws, extract_identifier, macro_define_command)
4757 (macro_undef_command, macro_list_command): Constify.
4758
4759 2017-09-27 Tom Tromey <tom@tromey.com>
4760
4761 * infcmd.c (environment_info, set_environment_command)
4762 (unset_environment_command, path_info, info_proc_cmd_1)
4763 (info_proc_cmd_mappings, info_proc_cmd_stat)
4764 (info_proc_cmd_status, info_proc_cmd_cwd, info_proc_cmd_cmdline)
4765 (info_proc_cmd_exe, info_proc_cmd_all): Constify.
4766
4767 2017-09-27 Tom Tromey <tom@tromey.com>
4768
4769 * i386-tdep.c (i386_mpx_info_bounds, i386_mpx_set_bounds):
4770 Constify.
4771
4772 2017-09-27 Tom Tromey <tom@tromey.com>
4773
4774 * symfile-mem.c (add_symbol_file_from_memory_command): Constify.
4775
4776 2017-09-27 Tom Tromey <tom@tromey.com>
4777
4778 * demangle.c (demangle_command): Constify.
4779
4780 2017-09-27 Tom Tromey <tom@tromey.com>
4781
4782 * progspace.c (maintenance_info_program_spaces_command):
4783 Constify.
4784
4785 2017-09-27 Tom Tromey <tom@tromey.com>
4786
4787 * compile/compile.c (check_raw_argument, compile_file_command)
4788 (compile_code_command, compile_print_command): Constify.
4789
4790 2017-09-27 Tom Tromey <tom@tromey.com>
4791
4792 * reggroups.c (maintenance_print_reggroups): Constify.
4793
4794 2017-09-27 Tom Tromey <tom@tromey.com>
4795
4796 * dwarf2read.c (save_gdb_index_command): Constify.
4797
4798 2017-09-27 Tom Tromey <tom@tromey.com>
4799
4800 * stap-probe.c (info_probes_stap_command): Constify.
4801
4802 2017-09-27 Tom Tromey <tom@tromey.com>
4803
4804 * fork-child.c (unset_exec_wrapper_command): Constify.
4805
4806 2017-09-27 Tom Tromey <tom@tromey.com>
4807
4808 * btrace.c (get_uint, get_context_size, no_chunk)
4809 (maint_btrace_packet_history_cmd)
4810 (maint_btrace_clear_packet_history_cmd, maint_btrace_clear_cmd)
4811 (maint_info_btrace_cmd): Constify.
4812
4813 2017-09-27 Tom Tromey <tom@tromey.com>
4814
4815 * reverse.c (delete_bookmark_command): Constify.
4816
4817 2017-09-27 Tom Tromey <tom@tromey.com>
4818
4819 * remote.c (set_memory_packet_size)
4820 (set_memory_write_packet_size, show_memory_write_packet_size)
4821 (set_memory_read_packet_size, show_memory_read_packet_size)
4822 (compare_sections_command, packet_command, remote_put_command)
4823 (remote_get_command, remote_delete_command): Constify.
4824
4825 2017-09-27 Tom Tromey <tom@tromey.com>
4826
4827 * mips-tdep.c (show_mipsfpu_command, set_mipsfpu_single_command)
4828 (set_mipsfpu_double_command, set_mipsfpu_none_command)
4829 (set_mipsfpu_auto_command): Constify.
4830
4831 2017-09-27 Tom Tromey <tom@tromey.com>
4832
4833 * cli/cli-cmds.h (cd_command): Constify.
4834 * cli/cli-cmds.c (cd_command): Constify.
4835
4836 2017-09-27 Tom Tromey <tom@tromey.com>
4837
4838 * thread.c (thread_name_command, thread_find_command): Constify.
4839
4840 2017-09-27 Tom Tromey <tom@tromey.com>
4841
4842 * probe.c (enable_probes_command, disable_probes_command):
4843 Constify.
4844
4845 2017-09-27 Tom Tromey <tom@tromey.com>
4846
4847 * symfile.c (symbol_file_command): Constify.
4848 * gdbcore.h (deprecated_file_changed_hook): Constify.
4849 * exec.c (deprecated_file_changed_hook, exec_file_command)
4850 (file_command): Constify.
4851 * defs.h (symbol_file_command): Constify.
4852
4853 2017-09-27 Tom Tromey <tom@tromey.com>
4854
4855 * remote-fileio.c (set_system_call_allowed)
4856 (show_system_call_allowed): Constify.
4857
4858 2017-09-27 Tom Tromey <tom@tromey.com>
4859
4860 * tracepoint.c (delete_trace_variable_command)
4861 (tfind_end_command, tfind_start_command, tfind_pc_command)
4862 (tfind_tracepoint_command, tfind_line_command)
4863 (tfind_range_command, tfind_outside_command): Constify.
4864
4865 2017-09-27 Tom Tromey <tom@tromey.com>
4866
4867 * ax-gdb.c (maint_agent_printf_command, agent_command)
4868 (agent_eval_command): Constify.
4869
4870 2017-09-27 Tom Tromey <tom@tromey.com>
4871
4872 * tracepoint.c (info_scope_command): Constify.
4873 * python/python.c (gdbpy_decode_line): Constify.
4874 * python/py-breakpoint.c (bppy_init): Constify.
4875 * mi/mi-cmd-break.c (mi_cmd_break_insert_1): Constify.
4876 * location.h: (new_linespec_location)
4877 (string_to_event_location_basic, string_to_event_location):
4878 Constify.
4879 * location.c (new_linespec_location)
4880 (string_to_event_location_basic, string_to_event_location):
4881 Constify.
4882 * linespec.h (decode_line_with_current_source)
4883 (decode_line_with_last_displayed, linespec_lex_to_end): Constify.
4884 * linespec.c (linespec_lex_to_end)
4885 (decode_line_with_current_source)
4886 (decode_line_with_last_displayed): Constify.
4887 * guile/scm-breakpoint.c (gdbscm_register_breakpoint_x):
4888 Constify.
4889 * cli/cli-cmds.c (edit_command, list_command): Constify.
4890 * breakpoint.h (until_break_command, watch_command_wrapper)
4891 (awatch_command_wrapper, rwatch_command_wrapper)
4892 (init_ada_exception_breakpoint): Constify.
4893 * breakpoint.c (break_command_1, dprintf_command)
4894 (break_range_command, watch_command_wrapper)
4895 (rwatch_command_wrapper, awatch_command_wrapper)
4896 (until_break_command, init_ada_exception_breakpoint)
4897 (strace_marker_create_sals_from_location, trace_command)
4898 (ftrace_command, strace_command, struct tracepoint): Constify.
4899 * ax-gdb.c (agent_command_1): Constify.
4900 * ada-lang.c (ada_exception_sal): Constify.
4901
4902 2017-09-27 Tom Tromey <tom@tromey.com>
4903
4904 * record.c (cmd_record_delete, cmd_record_stop, cmd_record_save)
4905 (cmd_record_goto_begin, cmd_record_goto_end, get_insn_number)
4906 (get_context_size, no_chunk, get_insn_history_modifiers)
4907 (cmd_record_insn_history, get_call_history_modifiers)
4908 (cmd_record_call_history): Constify.
4909
4910 2017-09-27 Tom Tromey <tom@tromey.com>
4911
4912 * source.c (show_substitute_path_command)
4913 (unset_substitute_path_command, set_substitute_path_command):
4914 Constify.
4915
4916 2017-09-27 Tom Tromey <tom@tromey.com>
4917
4918 * typeprint.c (maintenance_print_type): Constify.
4919 * maint.c (maintenance_dump_me, maintenance_demangle)
4920 (maintenance_time_display, maintenance_info_sections)
4921 (maintenance_print_statistics, maintenance_deprecate)
4922 (maintenance_undeprecate): Constify.
4923 (maintenance_do_deprecate): Constify. Use std::string.
4924 (maintenance_selftest): Constify.
4925 * gdbtypes.h (maintenance_print_type): Constify.
4926
4927 2017-09-27 Tom Tromey <tom@tromey.com>
4928
4929 * hppa-tdep.c (unwind_command): Constify.
4930
4931 2017-09-27 Tom Tromey <tom@tromey.com>
4932
4933 * target-descriptions.c (unset_tdesc_filename_cmd)
4934 (maint_print_c_tdesc_cmd, maintenance_check_xml_descriptions):
4935 Constify.
4936
4937 2017-09-27 Tom Tromey <tom@tromey.com>
4938
4939 * dummy-frame.c (maintenance_print_dummy_frames): Constify.
4940
4941 2017-09-27 Tom Tromey <tom@tromey.com>
4942
4943 * tui/tui.c (tui_enable_command, tui_disable_command): Constify.
4944
4945 2017-09-27 Tom Tromey <tom@tromey.com>
4946
4947 * tui/tui-regs.c (tui_reg_command): Constify.
4948
4949 2017-09-27 Tom Tromey <tom@tromey.com>
4950
4951 * skip.c (skip_file_command, skip_function_command)
4952 (skip_enable_command, skip_disable_command, skip_delete_command):
4953 Constify.
4954
4955 2017-09-27 Tom Tromey <tom@tromey.com>
4956
4957 * record-btrace.c (cmd_record_btrace_bts_start)
4958 (cmd_record_btrace_pt_start): Constify.
4959
4960 2017-09-27 Tom Tromey <tom@tromey.com>
4961
4962 * symmisc.c (maintenance_print_symbols)
4963 (maintenance_print_msymbols, maintenance_print_objfiles)
4964 (maintenance_info_symtabs, maintenance_check_symtabs)
4965 (maintenance_expand_symtabs, maintenance_info_line_tables):
4966 Constify.
4967
4968 2017-09-27 Tom Tromey <tom@tromey.com>
4969
4970 * top.c (new_ui_command): Constify.
4971
4972 2017-09-27 Tom Tromey <tom@tromey.com>
4973
4974 * symfile.c (add_symbol_file_command)
4975 (remove_symbol_file_command, list_overlays_command)
4976 (map_overlay_command, unmap_overlay_command)
4977 (overlay_auto_command, overlay_manual_command)
4978 (overlay_off_command, overlay_load_command): Constify.
4979
4980 2017-09-27 Tom Tromey <tom@tromey.com>
4981
4982 * spu-tdep.c (info_spu_event_command, info_spu_signal_command)
4983 (info_spu_mailbox_command, info_spu_dma_command)
4984 (info_spu_proxydma_command): Constify.
4985
4986 2017-09-27 Tom Tromey <tom@tromey.com>
4987
4988 * cli/cli-logging.c (set_logging_on, set_logging_off): Constify.
4989
4990 2017-09-27 Tom Tromey <tom@tromey.com>
4991
4992 * cli/cli-script.c (user_defined_command): Constify.
4993
4994 2017-09-27 Tom Tromey <tom@tromey.com>
4995
4996 * cli/cli-dump.c (dump_memory_command, dump_value_command)
4997 (dump_srec_memory, dump_srec_value, dump_ihex_memory)
4998 (dump_ihex_value, dump_verilog_memory, dump_verilog_value)
4999 (dump_tekhex_memory, dump_tekhex_value, dump_binary_memory)
5000 (dump_binary_value, append_binary_memory, append_binary_value):
5001 Constify.
5002 (struct dump_context) <func>: Constify.
5003 (add_dump_command): Update.
5004
5005 2017-09-27 Tom Tromey <tom@tromey.com>
5006
5007 * cli/cli-cmds.c (show_version, show_configuration)
5008 (source_command, show_user): Constify.
5009
5010 2017-09-27 Tom Tromey <tom@tromey.com>
5011
5012 * target.c (maintenance_print_target_stack): Constify.
5013
5014 2017-09-27 Tom Tromey <tom@tromey.com>
5015
5016 * interps.c (interpreter_exec_cmd): Constify.
5017
5018 2017-09-27 Tom Tromey <tom@tromey.com>
5019
5020 * record-full.c (cmd_record_full_restore): Constify.
5021
5022 2017-09-27 Tom Tromey <tom@tromey.com>
5023
5024 * memattr.c (enable_mem_command, disable_mem_command)
5025 (delete_mem_command): Constify.
5026
5027 2017-09-27 Tom Tromey <tom@tromey.com>
5028
5029 * value.c (show_convenience): Constify.
5030
5031 2017-09-27 Tom Tromey <tom@tromey.com>
5032
5033 * gdbcore.h (core_file_command): Update.
5034 * corefile.c (core_file_command): Constify.
5035
5036 2017-09-27 Tom Tromey <tom@tromey.com>
5037
5038 * user-regs.c (maintenance_print_user_registers): Constify.
5039
5040 2017-09-27 Tom Tromey <tom@tromey.com>
5041
5042 * cp-namespace.c (maintenance_cplus_namespace): Constify.
5043
5044 2017-09-27 Tom Tromey <tom@tromey.com>
5045
5046 * cp-support.c (first_component_command): Constify.
5047
5048 2017-09-27 Tom Tromey <tom@tromey.com>
5049
5050 * psymtab.c (maintenance_print_psymbols)
5051 (maintenance_info_psymtabs, maintenance_check_psymtabs):
5052 Constify.
5053
5054 2017-09-27 Tom Tromey <tom@tromey.com>
5055
5056 * windows-tdep.c (display_tib): Constify.
5057
5058 2017-09-27 Tom Tromey <tom@tromey.com>
5059
5060 * linux-fork.c (delete_checkpoint_command)
5061 (detach_checkpoint_command): Constify.
5062
5063 2017-09-27 Tom Tromey <tom@tromey.com>
5064
5065 * cp-abi.c (set_cp_abi_cmd, show_cp_abi_cmd): Constify.
5066
5067 2017-09-27 Tom Tromey <tom@tromey.com>
5068
5069 * arc-tdep.c (dump_arc_instruction_command): Constify.
5070
5071 2017-09-27 Tom Tromey <tom@tromey.com>
5072
5073 * valprint.c (set_radix, show_radix): Constify.
5074
5075 2017-09-27 Tom Tromey <tom@tromey.com>
5076
5077 * dtrace-probe.c (info_probes_dtrace_command): Constify.
5078
5079 2017-09-27 Tom Tromey <tom@tromey.com>
5080
5081 * command.h (not_just_help_class_command): Update.
5082 * cli/cli-decode.h (not_just_help_class_command): Update.
5083 * cli/cli-decode.c (not_just_help_class_command): Constify.
5084
5085 2017-09-27 Tom Tromey <tom@tromey.com>
5086
5087 * gdb_bfd.c (maintenance_info_bfds): Constify.
5088
5089 2017-09-27 Tom Tromey <tom@tromey.com>
5090
5091 * cli/cli-decode.c (add_cmd, set_cmd_cfunc): New function
5092 overloads.
5093 (do_add_cmd): Rename from add_cmd. Don't call set_cmd_cfunc.
5094 (do_const_cfunc): New function.
5095 (cmd_cfunc_eq): New overload.
5096 (cli_user_command_p): Check do_const_cfunc.
5097 * cli/cli-decode.h (struct cmd_list_element) <function>: New field
5098 const_cfunc.
5099 * command.h (add_cmd): Add const overload and no-function
5100 overload.
5101 (set_cmd_cfunc): Add const overload.
5102 (cmd_const_cfunc_ftype): Declare.
5103 (cmd_cfunc_eq): Add const overload.
5104 * breakpoint.c, cli-cmds.c, cli-dump.c, guile/scm-cmd.c,
5105 python/py-cmd.c, target.c, tracepoint.c: Use no-function add_cmd
5106 overload.
5107
5108 2017-09-27 Tom Tromey <tom@tromey.com>
5109
5110 * macroexp.c (get_next_token_for_substitution): New function.
5111 (substitute_args): Call it. Check for __VA_OPT__.
5112
5113 2017-09-26 Walfred Tedeschi <walfred.tedeschi@intel.com>
5114 Pedro Alves <palves@redhat.com>
5115
5116 * dwarf2read.c (dwarf2_cu): Remove field producer_is_icc and add
5117 producer_is_icc_lt_14.
5118 (producer_is_icc_lt_14): New function.
5119 (check_producer): Add code for checking version of ICC.
5120 (producer_is_icc): Move to producer.c.
5121 (read_structure_type): Restrict ICC workaround to ICC<14.
5122 * producer.c: Include selftest.h.
5123 (producer_is_icc, producer_parsing_tests, _initialize_producer):
5124 New functions.
5125 * producer.h (producer_is_icc): New declaration.
5126
5127 2017-09-26 Walfred Tedeschi <walfred.tedeschi@intel.com>
5128
5129 * Makefile.in (SFILES): Add producer.c.
5130 (COMMON_OBS): Add producer.o
5131 * amd64-tdep.c (producer.h): Add new include.
5132 * dwarf2read.c (producer.h): Add new include.
5133 * producer.c: New file.
5134 * producer.h: New file.
5135 * utils.c (producer_is_gcc, producer_is_gcc_ge_4): Move to
5136 producer.c.
5137 * utils.h (producer_is_gcc, producer_is_gcc_ge_4): Move to
5138 producer.h.
5139
5140 2017-09-26 Matthias Klose <doko@ubuntu.com>
5141
5142 * configure.ac: Search ncursesw before ncurses.
5143 Check ncursesw/ncurses.h before ncurses/ncurses.h.
5144 * gdb_curses.h: Include <ncursesw/ncurses.h>
5145 * config.in, configure: Regenerate.
5146
5147 2017-09-26 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
5148
5149 PR gdb/22185
5150 * configure.host <*-*-solaris2.[01], *-*-solaris2.[2-9]*>: Mark as
5151 obsolete.
5152 Use gdb_host sol2 for i[34567]86-*-solaris2*, x86_64-*-solaris2*.
5153 Remove i386sol2 support.
5154 * configure.nat <i386sol2>: Remove.
5155 <sol2-64>: Fold into ...
5156 <sol2>: ... this.
5157 Move common settings to default section.
5158 Add sol-thread.o.
5159 * configure.tgt <i[34567]86-*-solaris2.1[0-9]*,
5160 x86_64-*-solaris2.1[0-9]*>: Rename to ...
5161 <i[34567]86-*-solaris2*, x86_64-*-solaris2*>: ... this.
5162 <i[34567]86-*-solaris*>: Remove.
5163 <sparc-*-solaris2.[0-6], sparc-*-solaris2.[0-6].*>: Remove.
5164
5165 * configure.ac: Remove wctype in libw check.
5166 (_MSE_INT_H): Don't define on Solaris 7-9.
5167 <solaris*>: Remove libthread_db.so.1 check.
5168 * configure: Regenerate.
5169 * config.in: Regenerate.
5170
5171 * proc-service.c: Remove PROC_SERVICE_IS_OLD handling.
5172 (gdb_ps_prochandle_t, gdb_ps_read_buf_t, gdb_ps_write_buf_t)
5173 (gdb_ps_size_t): Remove.
5174 Use base types in users.
5175 * sol-thread.c: Likewise, also for gdb_ps_addr_t.
5176
5177 * NEWS (Changes since GDB 8.0): Document Solaris 2.0-9 removal.
5178
5179 2017-09-26 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
5180
5181 PR build/22206
5182 * sparc64-tdep.c (adi_tag_fd): Print pid as long.
5183 (adi_is_addr_mapped): Likewise.
5184 (PSR_ICC): Don't redefine.
5185 (PSR_IMPL): Likewise.
5186
5187 2017-09-25 Tom Tromey <tom@tromey.com>
5188
5189 * regcache.c (regcache::dump): Use string_printf.
5190
5191 2017-09-25 Tom Tromey <tom@tromey.com>
5192
5193 * regcache.c (class regcache_invalidator): New.
5194 (struct register_to_invalidate): Remove.
5195 (make_cleanup_regcache_invalidate): Remove.
5196 (regcache::raw_write): Use regcache_invalidator.
5197
5198 2017-09-25 Tom Tromey <tom@tromey.com>
5199
5200 * spu-tdep.c (spu2ppu_sniffer): Update.
5201 * regcache.h (make_cleanup_regcache_xfree): Don't declare.
5202 * regcache.c (do_regcache_xfree, make_cleanup_regcache_xfree):
5203 Remove.
5204 * ppc-linux-tdep.c (ppu2spu_sniffer): Update.
5205 * mi/mi-main.c (mi_cmd_data_list_changed_registers): Update.
5206 * frame.h (frame_save_as_regcache): Return std::unique_ptr.
5207 * frame.c (frame_save_as_regcache): Return std::unique_ptr.
5208 (frame_pop): Update.
5209
5210 2017-09-25 Tom Tromey <tom@tromey.com>
5211
5212 * spu-tdep.c (spu2ppu_dealloc_cache): Use delete.
5213 * regcache.h (regcache_xfree): Don't declare.
5214 * regcache.c (regcache_xfree): Remove.
5215 (do_regcache_xfree): Use delete.
5216 * ppc-linux-tdep.c (ppu2spu_dealloc_cache): Use delete.
5217 * linux-fork.c (free_fork): Use delete.
5218 (fork_save_infrun_state): Likewise.
5219 * jit.c (jit_dealloc_cache): Use delete.
5220 * infrun.c (discard_infcall_suspend_state): Use delete.
5221
5222 2017-09-25 Tom Tromey <tom@tromey.com>
5223
5224 * regcache.h (regcache_xmalloc): Don't declare.
5225 (regcache_raw_set_cached_value): Update comment.
5226 * regcache.c (regcache_xmalloc): Remove.
5227 * ppc-linux-tdep.c (ppu2spu_sniffer): Use new.
5228 * jit.c (jit_frame_sniffer): Use new.
5229 * frame.c (frame_save_as_regcache): Use new.
5230
5231 2017-09-25 Andreas Arnez <arnez@linux.vnet.ibm.com>
5232
5233 * NEWS: Advertise support for guarded-storage registers on IBM z.
5234
5235 2017-09-25 Andreas Arnez <arnez@linux.vnet.ibm.com>
5236
5237 * s390-linux-nat.c (have_regset_gs): New static variable.
5238 (s390_linux_fetch_inferior_registers): Handle guarded-storage
5239 control block and guarded-storage broadcast control regsets.
5240 (s390_read_description): Detect whether the target has
5241 guarded-storage support, return appropriate tdesc.
5242 * s390-linux-tdep.c (features/s390-gs-linux64.c): New include.
5243 (features/s390x-gs-linux64.c): Likewise.
5244 (struct gdbarch_tdep) <have_gs>: New field.
5245 (s390_regmap_gs, s390_regmap_gsbc, s390_gs_regset)
5246 (s390_gsbc_regset): New variables.
5247 (s390_iterate_over_regset_sections): Iterate over s390_gs_regset
5248 and s390_gsbc_regset, if applicable.
5249 (s390_core_read_description): Check whether core file was from a
5250 target with guarded-storage support; include appropriate regsets.
5251 (s390_gdbarch_init): Add registers for guarded-storage support.
5252 (_initialize_s390_tdep): Initialize new target descriptions that
5253 include registers for guarded-storage support.
5254 * s390-linux-tdep.h (HWCAP_S390_GS, S390_GSD_REGNUM)
5255 (S390_GSSM_REGNUM, S390_GSEPLA_REGNUM)
5256 (S390_BC_GSD_REGNUM, S390_BC_GSSM_REGNUM): New defines.
5257 (S390_NUM_REGS): Adjust macro definition.
5258 (s390_gs_regset, s390_gsbc_regset, tdesc_s390_gs_linux64)
5259 (tdesc_s390x_gs_linux64): New declarations.
5260
5261 2017-09-25 Andreas Arnez <arnez@linux.vnet.ibm.com>
5262
5263 * features/s390-gs-linux64.xml: New file.
5264 * features/s390-gs.xml: New file.
5265 * features/s390-gsbc.xml: New file.
5266 * features/s390x-gs-linux64.xml: New file.
5267 * features/Makefile (WHICH): Add s390-gs-linux64 and
5268 s390x-gs-linux64.
5269 (s390-gs-linux64-expedite, s390x-gs-linux64-expedite): New macros.
5270 (XMLTOC): Add s390-gs-linux64.xml and s390x-linux64.xml.
5271 * features/s390-gs-linux64.c: New generated file.
5272 * features/s390x-gs-linux64.c: New file.
5273 * regformats/s390-gs-linux64.dat: New file.
5274 * regformats/s390x-gs-linux64.dat: New file.
5275
5276 2017-09-23 Tom Tromey <tom@tromey.com>
5277
5278 * defs.h (make_cleanup_override_quit_handler): Don't declare.
5279
5280 2017-09-22 Tom Tromey <tom@tromey.com>
5281
5282 * utils.c (class scoped_input_handler) <m_quit_handler>: Change
5283 type to scoped_restore_tmpl.
5284 <scoped_input_handler>: Initialize m_quit_handler directly.
5285
5286 2017-09-22 Sergio Durigan Junior <sergiodj@redhat.com>
5287
5288 * cli/cli-cmds.c (pwd_command): Use "getcwd (NULL, 0)".
5289 (cd_command): Likewise. Free "current_directory" before
5290 assigning to it.
5291 * main.c (captured_main_1): Use "getcwd (NULL, 0)".
5292 * mi/mi-cmd-env.c (mi_cmd_env_pwd): Likewise.
5293 * top.c (gdb_dirbuf): Remove global declaration.
5294 * top.h (gdb_dirbuf): Likewise.
5295
5296 2017-09-22 Sergio Durigan Junior <sergiodj@redhat.com>
5297
5298 * gnulib/aclocal.m4: Regenerate.
5299 * gnulib/config.in: Regenerate.
5300 * gnulib/configure: Regenerate.
5301 * gnulib/import/Makefile.am: Regenerate.
5302 * gnulib/import/Makefile.in: Regenerate.
5303 * gnulib/import/assure.h: New file.
5304 * gnulib/import/at-func.c: Likewise
5305 * gnulib/import/chdir-long.c: New file.
5306 * gnulib/import/chdir-long.h: New file.
5307 * gnulib/import/cloexec.c: New file.
5308 * gnulib/import/cloexec.h: New file.
5309 * gnulib/import/close.c: New file.
5310 * gnulib/import/closedir.c: New file.
5311 * gnulib/import/dirent-private.h: New file.
5312 * gnulib/import/dup-safer.c: New file.
5313 * gnulib/import/dup.c: New file.
5314 * gnulib/import/dup2.c: New file.
5315 * gnulib/import/error.c: New file.
5316 * gnulib/import/error.h: New file.
5317 * gnulib/import/exitfail.c: New file.
5318 * gnulib/import/exitfail.h: New file.
5319 * gnulib/import/fchdir.c: New file.
5320 * gnulib/import/fcntl.c: New file.
5321 * gnulib/import/fcntl.in.h: New file.
5322 * gnulib/import/fd-hook.c: New file.
5323 * gnulib/import/fd-hook.h: New file.
5324 * gnulib/import/fd-safer.c: New file.
5325 * gnulib/import/fdopendir.c: New file.
5326 * gnulib/import/filename.h: New file.
5327 * gnulib/import/filenamecat-lgpl.c: New file.
5328 * gnulib/import/filenamecat.h: New file.
5329 * gnulib/import/fstat.c: New file.
5330 * gnulib/import/fstatat.c: New file.
5331 * gnulib/import/getcwd-lgpl.c: New file.
5332 * gnulib/import/getcwd.c: New file.
5333 * gnulib/import/getdtablesize.c: New file.
5334 * gnulib/import/getlogin_r.c: New file.
5335 * gnulib/import/getprogname.c: New file.
5336 * gnulib/import/getprogname.h: New file.
5337 * gnulib/import/gettext.h: New file.
5338 * gnulib/import/glob-libc.h: New file.
5339 * gnulib/import/glob.c: New file.
5340 * gnulib/import/glob.in.h: New file.
5341 * gnulib/import/intprops.h: New file.
5342 * gnulib/import/m4/chdir-long.m4: New file.
5343 * gnulib/import/m4/close.m4: New file.
5344 * gnulib/import/m4/closedir.m4: New file.
5345 * gnulib/import/m4/d-ino.m4: New file.
5346 * gnulib/import/m4/d-type.m4: New file.
5347 * gnulib/import/m4/dup.m4: New file.
5348 * gnulib/import/m4/dup2.m4: New file.
5349 * gnulib/import/m4/error.m4: New file.
5350 * gnulib/import/m4/fchdir.m4: New file.
5351 * gnulib/import/m4/fcntl.m4: New file.
5352 * gnulib/import/m4/fcntl_h.m4: New file.
5353 * gnulib/import/m4/fdopendir.m4: New file.
5354 * gnulib/import/m4/filenamecat.m4: New file.
5355 * gnulib/import/m4/fstat.m4: New file.
5356 * gnulib/import/m4/fstatat.m4: New file.
5357 * gnulib/import/m4/getcwd-abort-bug.m4: New file.
5358 * gnulib/import/m4/getcwd-path-max.m4: New file.
5359 * gnulib/import/m4/getcwd.m4: New file.
5360 * gnulib/import/m4/getdtablesize.m4: New file.
5361 * gnulib/import/m4/getlogin_r.m4: New file.
5362 * gnulib/import/m4/getprogname.m4: New file.
5363 * gnulib/import/m4/glob.m4: New file.
5364 * gnulib/import/m4/gnulib-cache.m4: Regenerate.
5365 * gnulib/import/m4/gnulib-comp.m4: Regenerate.
5366 * gnulib/import/m4/mempcpy.m4: New file.
5367 * gnulib/import/m4/memrchr.m4: New file.
5368 * gnulib/import/m4/mode_t.m4: New file.
5369 * gnulib/import/m4/msvc-inval.m4: New file.
5370 * gnulib/import/m4/msvc-nothrow.m4: New file.
5371 * gnulib/import/m4/open.m4: New file.
5372 * gnulib/import/m4/openat.m4: New file.
5373 * gnulib/import/m4/opendir.m4: New file.
5374 * gnulib/import/m4/readdir.m4: New file.
5375 * gnulib/import/m4/realloc.m4: New file.
5376 * gnulib/import/m4/rewinddir.m4: New file.
5377 * gnulib/import/m4/save-cwd.m4: New file.
5378 * gnulib/import/m4/strdup.m4: New file.
5379 * gnulib/import/m4/strerror.m4: New file.
5380 * gnulib/import/m4/unistd-safer.m4: New file.
5381 * gnulib/import/mempcpy.c: New file.
5382 * gnulib/import/memrchr.c: New file.
5383 * gnulib/import/msvc-inval.c: New file.
5384 * gnulib/import/msvc-inval.h: New file.
5385 * gnulib/import/msvc-nothrow.c: New file.
5386 * gnulib/import/msvc-nothrow.h: New file.
5387 * gnulib/import/open.c: New file.
5388 * gnulib/import/openat-die.c: New file.
5389 * gnulib/import/openat-priv.h: New file.
5390 * gnulib/import/openat-proc.c: New file.
5391 * gnulib/import/openat.c: New file.
5392 * gnulib/import/openat.h: New file.
5393 * gnulib/import/opendir.c: New file.
5394 * gnulib/import/pipe-safer.c: New file.
5395 * gnulib/import/readdir.c: New file.
5396 * gnulib/import/realloc.c: New file.
5397 * gnulib/import/rewinddir.c: New file.
5398 * gnulib/import/save-cwd.c: New file.
5399 * gnulib/import/save-cwd.h: New file.
5400 * gnulib/import/strdup.c: New file.
5401 * gnulib/import/strerror-override.c: New file.
5402 * gnulib/import/strerror-override.h: New file.
5403 * gnulib/import/strerror.c: New file.
5404 * gnulib/import/unistd--.h: New file.
5405 * gnulib/import/unistd-safer.h: New file.
5406 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add
5407 "getcwd" and "glob".
5408 * ser-tcp.c: Undefine "close" before redefining it.
5409
5410 2017-09-21 Simon Marchi <simon.marchi@ericsson.com>
5411
5412 * guile/scm-value.c (gdbscm_value_address): Initialize address,
5413 get rid of res_val.
5414
5415 2017-09-22 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
5416
5417 * configure.nat <i386sol2,i386>: Add fork-inferior.o to NATDEPFILES.
5418 <sol2,sparc>: Likewise.
5419 <sol2-64,i386>: Likewise.
5420
5421 * warning.m4 (AM_GDB_WARNINGS): Disable -Wunknown-pragmas,
5422 -Wdeprecated-declarations on *-*-solaris*.
5423 * configure: Regenerate.
5424
5425 * procfs.c: Include "nat/inferior.h".
5426 (procfs_info_proc): Fix typo.
5427
5428 2017-09-21 Kevin Buettner <kevinb@redhat.com>
5429
5430 * remote.c (vector): Include.
5431 (struct private_thread_info): Add field, thread_handle.
5432 (free_private_thread_info): Deallocate storage associated with
5433 thread handle.
5434 (get_private_info_thread): Initialize `thread_handle' field.
5435 (struct thread_item): Add field, thread_handle.
5436 (clear_threads_listing_context): Deallocate storage associated
5437 with thread handle.
5438 (start_thread): Add support for "handle" attribute.
5439 (thread_attributes): Add "handle".
5440 (remote_get_threads_with_qthreadinfo): Initialize thread_handle
5441 field.
5442 (remote_update_thread_list): Update thread_handle.
5443 (remote_thread_handle_to_thread_info): New function.
5444 (init_remote_ops): Initialize to_thread_handle_to_thread_info.
5445
5446 2017-09-21 Kevin Buettner <kevinb@redhat.com>
5447
5448 * python/py-inferior.c (gdbpy_thread_from_thread_handle): New
5449 function.
5450 (inferior_object_methods): Add gdbpy_thread_from_thread_handle.
5451 * python/python-internal.h (thread_object_type): Declare.
5452
5453 2017-09-21 Kevin Buettner <kevinb@redhat.com>
5454
5455 * target.h (struct target_ops): Add to_thread_handle_to_thread_info.
5456 (target_thread_handle_to_thread_info): Declare.
5457 * target.c (target_thread_handle_to_thread_info): New function.
5458 * target-delegates.c: Regenerate.
5459 * gdbthread.h (find_thread_by_handle): Declare.
5460 * thread.c (find_thread_by_handle): New function.
5461 * linux-thread-db.c (thread_db_thread_handle_to_thread_info): New
5462 function.
5463 (init_thread_db_ops): Register thread_db_thread_handle_to_thread_info.
5464
5465 2017-09-21 Simon Marchi <simon.marchi@ericsson.com>
5466
5467 * nat/linux-waitpid.c (linux_debug): Add ATTRIBUTE_PRINTF.
5468
5469 2017-09-21 Simon Marchi <simon.marchi@ericsson.com>
5470
5471 * microblaze-tdep.c (microblaze_debug): Add ATTRIBUTE_PRINTF.
5472
5473 2017-09-21 Yao Qi <yao.qi@linaro.org>
5474
5475 * configure.tgt (aarch64*-*-freebsd*): Add fbsd-tdep.o solib-svr4.o
5476 to gdb_target_obs.
5477
5478 2017-09-20 Tom Tromey <tom@tromey.com>
5479
5480 * breakpoint.c (struct counted_command_line): Remove.
5481 (breakpoint_commands): Update.
5482 (alloc_counted_command_line, incref_counted_command_line)
5483 (decref_counted_command_line, do_cleanup_counted_command_line)
5484 (make_cleanup_decref_counted_command_line): Remove.
5485 (breakpoint_set_commands, commands_command_1, ~bpstats, bpstats)
5486 (bpstat_clear_actions, bpstat_do_actions_1, watchpoint_check)
5487 (bpstat_stop_status, print_one_breakpoint_location, ~breakpoint)
5488 (save_breakpoints): Update.
5489 * breakpoint.h (counted_command_line): Now a typedef to
5490 shared_ptr.
5491 (struct breakpoint) <commands>: Now a counted_command_line.
5492 (struct bpstats) <command>: Likewise.
5493
5494 2017-09-20 Tom Tromey <tom@tromey.com>
5495
5496 * breakpoint.c (struct commands_info, do_map_commands_command):
5497 Remove.
5498 (commands_command_1): Update.
5499 (iterate_over_related_breakpoints): Take a function_view.
5500 (do_delete_breakpoint, do_map_delete_breakpoint): Remove.
5501 (delete_command): Update.
5502 (map_breakpoint_numbers): Take a function_view.
5503 (do_disable_breakpoint, do_map_delete_breakpoint): Remove.
5504 (disable_command): Update.
5505 (do_enable_breakpoint, do_map_enable_breakpoint): Remove.
5506 (enable_command): Update.
5507 (struct disp_data, do_enable_breakpoint_disp)
5508 (do_map_enable_once_breakpoint, do_map_enable_count_breakpoint)
5509 (do_map_enable_delete_breakpoint): Remove.
5510 (enable_once_command, enable_count_command, enable_delete_command)
5511 (delete_trace_variable_command): Update.
5512
5513 2017-09-20 Tom Tromey <tom@tromey.com>
5514
5515 * breakpoint.c (~bpstats): Rename from bpstat_free. Update.
5516 (bpstat_clear): Use delete.
5517 (bpstats): New constructors.
5518 (bpstat_copy, bpstat_stop_status): Use new.
5519 (dprintf_after_condition_true): Update.
5520 * breakpoint.h (bpstats::bpstats): Add constructors.
5521 (bpstats::~bpstats): Add destructor.
5522
5523 2017-09-20 Pedro Alves <palves@redhat.com>
5524
5525 * eval.c (make_params): Delete, refactored as ...
5526 (class fake_method): ... this new type's ctor.
5527 (fake_method::~fake_method): New.
5528 (evaluate_subexp_standard): Use 'fake_method'.
5529
5530 2017-09-20 Tom Tromey <tom@tromey.com>
5531
5532 * windows-nat.c (get_windows_debug_event, windows_wait)
5533 (do_initial_windows_stuff, windows_attach): Update.
5534 * utils.c (vwarning, internal_vproblem): Update.
5535 (ui_unregister_input_event_handler_cleanup)
5536 (prepare_to_handle_input): Remove.
5537 (class scoped_input_handler): New.
5538 (defaulted_query, prompt_for_continue): Update.
5539 * tui/tui-hooks.c (tui_refresh_frame_and_register_information):
5540 Update.
5541 * top.c (undo_terminal_modifications_before_exit): Update.
5542 * target/target.h (target_terminal_init, target_terminal_inferior)
5543 (target_terminal_ours): Don't declare.
5544 (class target_terminal): New.
5545 * target.h (target_terminal_is_inferior, target_terminal_is_ours)
5546 (target_terminal_ours_for_output)
5547 (make_cleanup_restore_target_terminal): Don't declare.
5548 (target_terminal_info): Remove.
5549 * target.c (enum terminal_state, terminal_state): Remove.
5550 (target_terminal::terminal_state): Define.
5551 (target_terminal::init): Rename from target_terminal_init.
5552 (target_terminal::inferior): Rename from
5553 target_terminal_inferior.
5554 (target_terminal::ours): Rename from target_terminal_ours.
5555 (target_terminal::ours_for_output): Rename from
5556 target_terminal_ours_for_output.
5557 (target_terminal::info): New method.
5558 (cleanup_restore_target_terminal)
5559 (make_cleanup_restore_target_terminal): Remove.
5560 * solib.c (handle_solib_event): Update.
5561 * remote.c (remote_serial_quit_handler): Update.
5562 (remote_terminal_inferior, remote_wait_as): Update.
5563 * record-full.c (record_full_wait_1): Update.
5564 * nto-procfs.c (procfs_create_inferior): Update.
5565 * nat/fork-inferior.c (startup_inferior): Update.
5566 * mi/mi-interp.c (mi_new_thread, mi_thread_exit)
5567 (mi_record_changed, mi_inferior_added, mi_inferior_appeared)
5568 (mi_inferior_exit, mi_inferior_removed, mi_traceframe_changed)
5569 (mi_tsv_created, mi_tsv_deleted, mi_tsv_modified)
5570 (mi_breakpoint_created, mi_breakpoint_deleted)
5571 (mi_breakpoint_modified, mi_on_resume, mi_solib_loaded)
5572 (mi_solib_unloaded, mi_command_param_changed, mi_memory_changed)
5573 (mi_user_selected_context_changed, report_initial_inferior):
5574 Update.
5575 * linux-nat.c (linux_nat_attach, linux_nat_terminal_ours)
5576 (linux_nat_terminal_inferior): Update.
5577 * infrun.c (follow_fork_inferior)
5578 (handle_vfork_child_exec_or_exit, do_target_resume)
5579 (check_curr_ui_sync_execution_done, handle_inferior_event_1)
5580 (handle_signal_stop, maybe_remove_breakpoints, normal_stop):
5581 Update.
5582 * inflow.c (child_terminal_init, info_terminal_command): Update.
5583 * infcmd.c (post_create_inferior, continue_1, prepare_one_step)
5584 (attach_command): Update.
5585 * infcall.c (call_thread_fsm_should_stop): Update.
5586 * gnu-nat.c (gnu_attach): Update.
5587 * extension.c (struct active_ext_lang_state)
5588 (restore_active_ext_lang): Update.
5589 * exceptions.c (print_flush): Update.
5590 * event-top.c (async_enable_stdin, default_quit_handler): Update.
5591 (struct quit_handler_cleanup_data, restore_quit_handler)
5592 (restore_quit_handler_dtor, make_cleanup_override_quit_handler):
5593 Remove.
5594 * cp-support.c (gdb_demangle): Update.
5595 * breakpoint.c (update_inserted_breakpoint_locations)
5596 (insert_breakpoint_locations, handle_jit_event)
5597 (disable_breakpoints_in_unloaded_shlib): Update.
5598 * annotate.c (annotate_breakpoints_invalid)
5599 (annotate_frames_invalid): Update.
5600
5601 2017-09-20 Tom Tromey <tom@tromey.com>
5602
5603 * main.c (catch_command_errors): Rename from
5604 catch_command_errors_const.
5605 (captured_main_1): Update.
5606
5607 2017-09-20 Pedro Alves <palves@redhat.com>
5608
5609 * cli/cli-cmds.c (list_command): Use print_sal_location.
5610 (print_sal_location): New function.
5611 (ambiguous_line_spec): Use print_sal_location.
5612 * linespec.c (symbol_to_sal): Record the symbol in the sal.
5613 * symtab.c (find_function_start_sal): Likewise.
5614 * symtab.h (symtab_and_line::symbol): New field.
5615
5616 2017-09-20 Pedro Alves <palves@redhat.com>
5617
5618 * linespec.c (minsym_found): Handle non-text minsyms.
5619 (symbol_to_sal): Record a sal.pc for non-block, non-label symbols.
5620
5621 2017-09-20 Walfred Tedeschi <walfred.tedeschi@intel.com>
5622
5623 * features/Makefile (i386-avx-mpx-avx512-pku.dat): Add missing
5624 backslash.
5625
5626 2017-09-20 Walfred Tedeschi <walfred.tedeschi@intel.com>
5627
5628 * gdb.arch/i386-avx512.c (move_zmm_data_to_reg): Use
5629 vmovups instead vmovaps.
5630 (move_zmm_data_to_memory): Use vmovups instead vmovaps.
5631
5632 2017-09-19 John Baldwin <jhb@FreeBSD.org>
5633
5634 * NEWS (Changes since GDB 8.0): Add starti.
5635 * infcmd.c (enum run_break): New.
5636 (run_command_1): Queue pending event for RUN_STOP_AT_FIRST_INSN
5637 case.
5638 (run_command): Use enum run_how.
5639 (start_command): Likewise.
5640 (starti_command): New function.
5641 (RUN_ARGS_HELP): New macro.
5642 (_initialize_infcmd): Use RUN_ARGS_HELP for run and start
5643 commands. Add starti command.
5644
5645 2017-09-19 Yao Qi <yao.qi@linaro.org>
5646
5647 * Makefile.in (monitor.o): Remove the rule.
5648
5649 2017-09-19 Yao Qi <yao.qi@linaro.org>
5650
5651 * annotate.h (struct annotate_arg_emitter): Use
5652 DISABLE_COPY_AND_ASSIGN.
5653 * common/refcounted-object.h (refcounted_object): Likewise.
5654 * completer.h (struct completion_result): Likewise.
5655 * dwarf2read.c (struct dwarf2_per_objfile): Likewise.
5656 * filename-seen-cache.h (filename_seen_cache): Likewise.
5657 * gdbcore.h (thread_section_name): Likewise.
5658 * gdb_regex.h (compiled_regex): Likewise.
5659 * gdbthread.h (scoped_restore_current_thread): Likewise.
5660 * inferior.h (scoped_restore_current_inferior): Likewise.
5661 * jit.c (jit_reader): Likewise.
5662 * linespec.h (struct linespec_result): Likewise.
5663 * mi/mi-parse.h (struct mi_parse): Likewise.
5664 * nat/fork-inferior.c (execv_argv): Likewise.
5665 * progspace.h (scoped_restore_current_program_space): Likewise.
5666 * python/python-internal.h (class gdbpy_enter): Likewise.
5667 * regcache.h (regcache): Likewise.
5668 * target-descriptions.c (struct tdesc_reg): Likewise.
5669 (struct tdesc_type): Likewise.
5670 (struct tdesc_feature): Likewise.
5671 * ui-out.h (ui_out_emit_type): Likewise.
5672
5673 2017-09-18 Simon Marchi <simon.marchi@ericsson.com>
5674
5675 * dwarf2expr.c (dwarf_expr_context::execute_stack_op): Remove
5676 label abort_expression.
5677
5678 2017-09-16 Simon Marchi <simon.marchi@ericsson.com>
5679
5680 * common/buffer.c (buffer_xml_printf): Adjust.
5681 * common/xml-utils.c (xml_escape_text): Change return type to
5682 std::string, update code accordingly.
5683 * common/xml-utils.h (xml_escape_text): Change return type to
5684 std::string.
5685 * rs6000-aix-tdep.c (rs6000_aix_shared_library_to_xml): Adjust.
5686 * windows-tdep.c (windows_xfer_shared_library): Adjust.
5687 * unittests/xml-utils-selftests.c (test_xml_escape_text):
5688 Adjust.
5689
5690 2017-09-16 Simon Marchi <simon.marchi@ericsson.com>
5691
5692 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add new source file.
5693 (SUBDIR_UNITTESTS_OBS): Add new object file.
5694 * unittests/xml-utils-selftests.c: New file.
5695
5696 2017-09-16 Simon Marchi <simon.marchi@ericsson.com>
5697
5698 * common/selftest.h (selftest): New struct/interface.
5699 (register_test): Add name parameter, add new overload.
5700 (run_tests): Add filter parameter.
5701 (for_each_selftest_ftype): New typedef.
5702 (for_each_selftest): New declaration.
5703 * common/selftest.c (tests): Change type to
5704 map<string, unique_ptr<selftest>>.
5705 (simple_selftest): New struct.
5706 (register_test): New function.
5707 (register_test): Add name parameter and use it.
5708 (run_tests): Add filter parameter and use it. Add prints.
5709 Adjust to vector -> map change.
5710 * aarch64-tdep.c (_initialize_aarch64_tdep): Add names when
5711 registering selftests.
5712 * arm-tdep.c (_initialize_arm_tdep): Likewise.
5713 * disasm-selftests.c (_initialize_disasm_selftests): Likewise.
5714 * dwarf2-frame.c (_initialize_dwarf2_frame): Likewise.
5715 * dwarf2loc.c (_initialize_dwarf2loc): Likewise.
5716 * findvar.c (_initialize_findvar): Likewise.
5717 * gdbarch-selftests.c (_initialize_gdbarch_selftests): Likewise.
5718 * maint.c (maintenance_selftest): Update call to run_tests.
5719 (maintenance_info_selftests): New function.
5720 (_initialize_maint_cmds): Register "maintenance info selftests"
5721 command. Update "maintenance selftest" doc.
5722 * regcache.c (_initialize_regcache): Add names when registering
5723 selftests.
5724 * rust-exp.y (_initialize_rust_exp): Likewise.
5725 * selftest-arch.c (gdbarch_selftest): New struct.
5726 (gdbarch_tests): Remove.
5727 (register_test_foreach_arch): Add name parameter. Call
5728 register_test.
5729 (tests_with_arch): Remove, move most content to
5730 gdbarch_selftest::operator().
5731 (_initialize_selftests_foreach_arch): Remove.
5732 * selftest-arch.h (register_test_foreach_arch): Add name
5733 parameter.
5734 (run_tests_with_arch): New declaration.
5735 * utils-selftests.c (_initialize_utils_selftests): Add names
5736 when registering selftests.
5737 * utils.c (_initialize_utils): Likewise.
5738 * unittests/array-view-selftests.c
5739 (_initialize_array_view_selftests): Likewise.
5740 * unittests/environ-selftests.c (_initialize_environ_selftests):
5741 Likewise.
5742 * unittests/function-view-selftests.c
5743 (_initialize_function_view_selftests): Likewise.
5744 * unittests/offset-type-selftests.c
5745 (_initialize_offset_type_selftests): Likewise.
5746 * unittests/optional-selftests.c
5747 (_initialize_optional_selftests): Likewise.
5748 * unittests/scoped_restore-selftests.c
5749 (_initialize_scoped_restore_selftests): Likewise.
5750 * NEWS: Document "maintenance selftest" and "maint info
5751 selftests".
5752
5753 2017-09-16 Simon Marchi <simon.marchi@ericsson.com>
5754
5755 * mi/mi-main.c (mi_load_progress): Restore current_uiout using a
5756 scoped_restore.
5757
5758 2017-09-16 Simon Marchi <simon.marchi@ericsson.com>
5759
5760 * mi/mi-main.c (mi_load_progress): Make uiout variable
5761 a unique_ptr.
5762
5763 2017-09-15 Pedro Alves <palves@redhat.com>
5764
5765 * compile/compile-c-types.c (convert_enum, convert_int)
5766 (convert_float): Adjust to refer to int_type_v0 and float_type_v0.
5767
5768 2017-09-15 Simon Marchi <simon.marchi@ericsson.com>
5769
5770 * dwarf2read.c (copy_string): Remove.
5771 (parse_macro_definition): Replace copy_string with savestring.
5772
5773 2017-09-15 Yao Qi <yao.qi@linaro.org>
5774
5775 * configure.tgt (i[34567]86-*-darwin*): Append amd64.o to
5776 gdb_target_obs.
5777 (i[34567]86-*-solaris2.1[0-9]* | x86_64-*-solaris2.1[0-9]*):
5778 Likewise.
5779 (i[34567]86-*-linux*): Likewise.
5780
5781 2017-09-14 Simon Marchi <simon.marchi@ericsson.com>
5782
5783 * dwarf2expr.h (dwarf_stack_value): Add constructor.
5784 (dwarf_expr_context) <~dwarf_expr_context>: Define as default.
5785 <stack>: Change type to std::vector.
5786 <stack_len, stack_allocated>: Remove.
5787 <grow_stack>: Remove.
5788 * dwarf2expr.c (dwarf_expr_context::dwarf_expr_context): Adjust.
5789 (dwarf_expr_context::~dwarf_expr_context): Remove.
5790 (dwarf_expr_context::grow_stack): Remove.
5791 (dwarf_expr_context::push): Adjust.
5792 (dwarf_expr_context::pop): Adjust.
5793 (dwarf_expr_context::fetch): Adjust.
5794 (dwarf_expr_context::fetch_in_stack_memory): Adjust.
5795 (dwarf_expr_context::stack_empty_p): Adjust.
5796 (dwarf_expr_context::execute_stack_op): Adjust.
5797
5798 2017-09-14 Simon Marchi <simon.marchi@ericsson.com>
5799
5800 * dwarf2expr.h (dwarf_expr_context) <stack_empty_p>: Change
5801 return type to bool.
5802 * dwarf2expr.c (dwarf_expr_context::stack_empty_p): Likewise.
5803
5804 2017-09-14 Simon Marchi <simon.marchi@ericsson.com>
5805
5806 * dwarf2expr.h (dwarf_expr_piece) <v.mem.in_stack_memory>:
5807 Change type to bool.
5808 (dwarf_stack_value) <in_stack_memory>: Likewise.
5809 (dwarf_expr_context) <push_address>: Change parameter type to
5810 bool.
5811 <fetch_in_stack_memory>: Change return type to bool.
5812 <push>: Change parameter type to bool.
5813 * dwarf2expr.c (dwarf_expr_context::push): Change parameter type
5814 to bool.
5815 (dwarf_expr_context::push_address): Likewise.
5816 (dwarf_expr_context::fetch_in_stack_memory): Change return type
5817 to bool.
5818 (dwarf_expr_context::execute_stack_op): Adjust.
5819 * dwarf2loc.c (dwarf2_evaluate_loc_desc_full): Adjust.
5820
5821 2017-09-14 Simon Marchi <simon.marchi@ericsson.com>
5822
5823 * dwarf2expr.h (struct dwarf_expr_piece): Move up.
5824 (struct dwarf_expr_context) <n_pieces>: Remove.
5825 <pieces>: Change type to std::vector.
5826 * dwarf2expr.c (dwarf_expr_context::dwarf_expr_context): Adjust.
5827 (dwarf_expr_context::~dwarf_expr_context): Don't manually free
5828 pieces.
5829 (dwarf_expr_context::add_piece): Adjust.
5830 * dwarf2loc.c (struct piece_closure): Initialize fields.
5831 <n_pieces>: Remove.
5832 <pieces>: Change type to std::vector.
5833 (allocate_piece_closure): Adjust, change parameter to
5834 std::vector rvalue and std::move it to piece_closure.
5835 (rw_pieced_value): Adjust.
5836 (check_pieced_synthetic_pointer): Adjust.
5837 (indirect_synthetic_pointer): Adjust.
5838 (coerce_pieced_ref): Adjust.
5839 (free_pieced_value_closure): Adjust. Use delete to free
5840 piece_closure.
5841 (dwarf2_evaluate_loc_desc_full): Adjust. std::move ctx.pieces
5842 to allocate_piece_closure.
5843 (dwarf2_loc_desc_get_symbol_read_needs): Adjust.
5844
5845 2017-09-12 Simon Marchi <simon.marchi@ericsson.com>
5846
5847 * probe.h (probe_ops_cp): Remove typedef.
5848 (DEF_VEC_P (probe_ops_cp)): Remove.
5849 (all_probe_ops): Change type to std::vector.
5850 * probe.c (info_probes_for_ops): Adjust to vector change.
5851 (probe_linespec_to_ops): Likewise.
5852 (all_probe_ops): Change type to std::vector.
5853 (_initialize_probe): Adjust to vector change.
5854 * dtrace-probe.c (_initialize_dtrace_probe): Likewise.
5855 * elfread.c (elf_get_probes): Likewise.
5856 * stap-probe.c (_initialize_stap_probe): Likewise.
5857
5858 2017-09-12 Simon Marchi <simon.marchi@ericsson.com>
5859
5860 * probe.h (struct bound_probe): Define constructors.
5861 * probe.c (bound_probe_s): Remove typedef.
5862 (DEF_VEC_O (bound_probe_s)): Remove VEC.
5863 (collect_probes): Change return type to std::vector, remove
5864 cleanup.
5865 (compare_probes): Return bool, change parameter type. Change
5866 semantic to "less than".
5867 (gen_ui_out_table_header_info): Change parameter to std::vector
5868 and update.
5869 (exists_probe_with_pops): Likewise.
5870 (info_probes_for_ops): Update to std::vector change.
5871 (enable_probes_command): Likewise.
5872 (disable_probes_command): Likewise.
5873
5874 2017-09-12 Simon Marchi <simon.marchi@ericsson.com>
5875
5876 * probe.h (struct probe_ops) <get_probes>: Change parameter from
5877 vec to std::vector.
5878 * probe.c (parse_probes_in_pspace): Update.
5879 (find_probes_in_objfile): Update.
5880 (find_probe_by_pc): Update.
5881 (collect_probes): Update.
5882 (probe_any_get_probes): Update.
5883 * symfile.h (struct sym_probe_fns) <sym_get_probes> Change
5884 return type to reference to std::vector.
5885 * dtrace-probe.c (dtrace_process_dof_probe): Change parameter to
5886 std::vector and update.
5887 (dtrace_process_dof): Likewise.
5888 (dtrace_get_probes): Likewise.
5889 * elfread.c (elf_get_probes): Change return type to std::vector,
5890 store an std::vector in bfd_data.
5891 (probe_key_free): Update to std::vector.
5892 * stap-probe.c (handle_stap_probe): Change parameter to
5893 std::vector and update.
5894 (stap_get_probes): Likewise.
5895 * symfile-debug.c (debug_sym_get_probes): Change return type to
5896 std::vector and update.
5897
5898 2017-09-11 Tom Tromey <tom@tromey.com>
5899
5900 * breakpoint.c (program_breakpoint_here_p): Update.
5901 * target.c (make_scoped_restore_show_memory_breakpoints): Rename
5902 from make_show_memory_breakpoints_cleanup. Return a
5903 scoped_restore_tmpl<int>.
5904 (restore_show_memory_breakpoints): Remove.
5905 * ppc-linux-tdep.c (ppc_linux_memory_remove_breakpoint): Update.
5906 * mem-break.c (memory_validate_breakpoint): Update.
5907 * ia64-tdep.c (ia64_memory_insert_breakpoint): Update.
5908 (ia64_memory_remove_breakpoint): Update.
5909 (ia64_breakpoint_from_pc): Update.
5910 * target.h (make_scoped_restore_show_memory_breakpoints): Rename
5911 from make_show_memory_breakpoints_cleanup.
5912
5913 2017-09-11 Tom Tromey <tom@tromey.com>
5914
5915 * d-namespace.c (d_lookup_symbol): Use std::string.
5916 (find_symbol_in_baseclass): Likewise.
5917
5918 2017-09-11 Tom Tromey <tom@tromey.com>
5919
5920 * ctf.c (ctf_start): Use std::string.
5921
5922 2017-09-11 Tom Tromey <tom@tromey.com>
5923
5924 * ada-lang.c (is_known_support_routine): Update.
5925 (ada_unhandled_exception_name_addr_from_raise): Update.
5926 * guile/scm-frame.c (gdbscm_frame_name): Update.
5927 * python/py-frame.c (frapy_name): Update.
5928 (frapy_function): Update.
5929 * stack.h (find_frame_funname): Update.
5930 * stack.c (find_frame_funname): Return unique_xmalloc_ptr.
5931 (print_frame): Update.
5932
5933 2017-09-11 Tom Tromey <tom@tromey.com>
5934
5935 * findcmd.c (put_bits): Take a gdb::byte_vector.
5936 (parse_find_args): Return gdb::byte_vector. "args" now const.
5937 Remove "pattern_bufp" and "pattern_lenp" parameters. Remove
5938 cleanups.
5939 (find_command): Update.
5940
5941 2017-09-11 Tom Tromey <tom@tromey.com>
5942
5943 * cli/cli-script.c (class scoped_restore_hook_in): New.
5944 (clear_hook_in_cleanup): Remove.
5945 (execute_cmd_pre_hook, execute_cmd_post_hook): Use
5946 scoped_restore_hook_in.
5947
5948 2017-09-11 Tom Tromey <tom@tromey.com>
5949
5950 * cli/cli-script.c (restore_interp): Remove.
5951 (read_command_lines): Use scoped_restore_interp.
5952 * interps.c (scoped_restore_interp::set_temp): Rename from
5953 interp_set_temp.
5954 * interps.h (class scoped_restore_interp): New.
5955 (interp_set_temp): Remove.
5956
5957 2017-09-11 Tom Tromey <tom@tromey.com>
5958
5959 * mi/mi-cmd-catch.c (mi_cmd_catch_assert)
5960 (mi_cmd_catch_exception, mi_catch_load_unload): Update.
5961 * mi/mi-cmd-break.c (setup_breakpoint_reporting): Return a
5962 scoped_restore.
5963 (mi_cmd_break_insert_1): Update.
5964 * mi/mi-cmd-break.h (setup_breakpoint_reporting): Return a
5965 scoped_restore.
5966
5967 2017-09-11 Tom Tromey <tom@tromey.com>
5968
5969 * demangle.c (demangle_command): Update.
5970 * breakpoint.c (disable_command): Update.
5971 (enable_command): Update.
5972 (find_location_by_number): Make "number" const. Use
5973 get_number_trailer.
5974 * cli/cli-utils.c (extract_arg): Return std::string.
5975 * probe.c (parse_probe_linespec): Update. Change types.
5976 (collect_probes): Take string arguments.
5977 (parse_probe_linespec): Likewise.
5978 (info_probes_for_ops): Update.
5979 (enable_probes_command): Update.
5980 (disable_probes_command): Update.
5981 * break-catch-sig.c (catch_signal_split_args): Update.
5982 * mi/mi-parse.c (mi_parse): Update.
5983
5984 2017-09-11 Tom Tromey <tom@tromey.com>
5985
5986 * language.h (language_enum): Make argument const.
5987 * language.c (language_enum): Make argument const.
5988
5989 2017-09-11 Tom Tromey <tom@tromey.com>
5990
5991 * common/common-utils.h (skip_to_space): Remove macro, redeclare
5992 as function.
5993 (skip_to_space): Rename from skip_to_space_const.
5994 * common/common-utils.c (skip_to_space): New function.
5995 (skip_to_space): Rename from skip_to_space_const.
5996 * cli/cli-utils.h (get_number): Rename from get_number_const.
5997 (extract_arg): Rename from extract_arg_const.
5998 * cli/cli-utils.c (get_number): Rename from get_number_const.
5999 (extract_arg): Rename from extract_arg_const.
6000 (number_or_range_parser::get_number): Use ::get_number.
6001 * aarch64-linux-tdep.c, ada-lang.c, arm-linux-tdep.c, ax-gdb.c,
6002 break-catch-throw.c, breakpoint.c, cli/cli-cmds.c, cli/cli-dump.c,
6003 cli/cli-script.c, cli/cli-setshow.c, compile/compile.c,
6004 completer.c, demangle.c, disasm.c, findcmd.c, linespec.c,
6005 linux-tdep.c, linux-thread-db.c, location.c, mi/mi-parse.c,
6006 minsyms.c, nat/linux-procfs.c, printcmd.c, probe.c,
6007 python/py-breakpoint.c, record.c, rust-exp.y, serial.c, stack.c,
6008 stap-probe.c, tid-parse.c, tracepoint.c: Update all callers.
6009
6010 2017-09-11 Tom Tromey <tom@tromey.com>
6011
6012 * python/python.c (do_start_initialization): Use
6013 py-event-types.def to initialize types.
6014 Define all object type structures.
6015 * python/python-internal.h: Don't declare event initialization
6016 functions.
6017 * python/py-threadevent.c (thread_event_object_type): Don't
6018 define.
6019 * python/py-stopevent.c (stop_event_object_type): Don't define.
6020 * python/py-signalevent.c (signal_event_object_type): Don't
6021 declare or define.
6022 * python/py-newobjfileevent.c (new_objfile_event_object_type)
6023 (clear_objfiles_event_object_type): Don't declare or define.
6024 * python/py-infevents.c (inferior_call_pre_event_object_type)
6025 (inferior_call_post_event_object_type)
6026 (register_changed_event_object_type)
6027 (memory_changed_event_object_type): Don't declare or define.
6028 * python/py-inferior.c (new_thread_event_object_type)
6029 (new_inferior_event_object_type)
6030 (inferior_deleted_event_object_type): Don't declare or define.
6031 * python/py-exitedevent.c (exited_event_object_type): Don't
6032 declare or define.
6033 * python/py-evts.c (gdbpy_initialize_py_events): Use
6034 py-all-events.def.
6035 * python/py-events.h (thread_event_object_type): Don't declare.
6036 (events_object): Use py-all-events.def.
6037 * python/py-event.h (GDBPY_NEW_EVENT_TYPE): Remove. Use
6038 py-event-types.def.
6039 * python/py-event-types.def: New file.
6040 * python/py-continueevent.c (create_continue_event_object): Don't
6041 declare or define.
6042 * python/py-bpevent.c (breakpoint_event_object_type): Don't
6043 declare or define.
6044 * python/py-all-events.def: New file.
6045
6046 2017-09-11 Tom Tromey <tom@tromey.com>
6047
6048 * python/py-threadevent.c (create_thread_event_object): Return
6049 gdbpy_ref.
6050 * python/py-stopevent.h (create_stop_event_object)
6051 (create_breakpoint_event_object, create_signal_event_object):
6052 Update.
6053 * python/py-stopevent.c (create_stop_event_object): Return
6054 gdbpy_ref.
6055 (emit_stop_event): Update.
6056 * python/py-signalevent.c (create_signal_event_object): Return
6057 gdbpy_ref.
6058 * python/py-infevents.c (create_inferior_call_event_object):
6059 Update.
6060 * python/py-event.h (create_event_object)
6061 (create_thread_event_object): Update.
6062 * python/py-event.c (create_event_object): Return gdbpy_ref.
6063 * python/py-continueevent.c: Return gdbpy_ref.
6064 * python/py-bpevent.c (create_breakpoint_event_object): Return
6065 gdbpy_ref.
6066
6067 2017-09-11 Tom Tromey <tom@tromey.com>
6068
6069 PR python/15622:
6070 * NEWS: Add entry.
6071 * python/python.c (do_start_initialization): Initialize new event
6072 types.
6073 * python/python-internal.h (gdbpy_initialize_new_inferior_event)
6074 (gdbpy_initialize_inferior_deleted_event)
6075 (gdbpy_initialize_new_thread_event): Declare.
6076 * python/py-threadevent.c (create_thread_event_object): Add option
6077 "thread" parameter.
6078 * python/py-inferior.c (new_thread_event_object_type)
6079 (new_inferior_event_object_type)
6080 (inferior_deleted_event_object_type): Declare.
6081 (python_new_inferior, python_inferior_deleted): New functions.
6082 (add_thread_object): Emit new_thread event.
6083 (gdbpy_initialize_inferior): Attach new functions to corresponding
6084 observers.
6085 (new_thread, new_inferior, inferior_deleted): Define new event
6086 types.
6087 * python/py-evts.c (gdbpy_initialize_py_events): Add new
6088 registries.
6089 * python/py-events.h (events_object) <new_inferior,
6090 inferior_deleted, new_thread>: New fields.
6091 * python/py-event.h (create_thread_event_breakpoint): Add optional
6092 "thread" parameter.
6093
6094 2017-09-10 Andrew Burgess <andrew.burgess@embecosm.com>
6095
6096 * utils.c (abort_with_message): Don't compare gdb_stderr to NULL,
6097 check current_ui instead.
6098 (internal_vproblem): Likewise.
6099
6100 2017-09-09 Simon Marchi <simon.marchi@ericsson.com>
6101
6102 * thread.c (print_thread_info_1): Remove unnecessary calls to
6103 uiout->is_mi_like_p.
6104
6105 2017-09-09 Tom Tromey <tom@tromey.com>
6106
6107 * namespace.h (add_using_directive): Update.
6108 * namespace.c (add_using_directive): Change type of excludes to
6109 std::vector.
6110 * dwarf2read.c (read_import_statement): Use std::vector.
6111 (read_namespace): Update.
6112 * cp-namespace.c (cp_scan_for_anonymous_namespaces): Update.
6113
6114 2017-09-09 Tom Tromey <tom@tromey.com>
6115
6116 * linespec.c (create_sals_line_offset): Use gdb::def_vector.
6117
6118 2017-09-09 Tom Tromey <tom@tromey.com>
6119
6120 * p-valprint.c (pascal_object_print_value): Use gdb::byte_vector.
6121
6122 2017-09-09 Tom Tromey <tom@tromey.com>
6123
6124 * stack.c (func_command): Use gdb::def_vector.
6125
6126 2017-09-09 Tom Tromey <tom@tromey.com>
6127
6128 * mi/mi-cmd-var.c (mi_cmd_var_list_children): Use gdb::optional,
6129 ui_out_emit_list, ui_out_emit_tuple.
6130 (mi_cmd_var_update): Likewise.
6131
6132 2017-09-09 Tom Tromey <tom@tromey.com>
6133
6134 * mi/mi-interp.c (mi_user_selected_context_changed): Use
6135 ui_out_redirect_pop.
6136 * guile/scm-ports.c (ioscm_with_output_to_port_worker): Use
6137 ui_out_redirect_pop.
6138 * utils.c (do_ui_out_redirect_pop)
6139 (make_cleanup_ui_out_redirect_pop): Remove.
6140 * top.c (execute_command_to_string): Use ui_out_redirect_pop.
6141 * utils.h (make_cleanup_ui_out_redirect_pop): Remove.
6142 * ui-out.h (ui_out_redirect_pop): New class.
6143
6144 2017-09-09 Tom Tromey <tom@tromey.com>
6145
6146 * mi/mi-main.c (output_cores): Use ui_out_emit_list.
6147 (list_available_thread_groups, mi_cmd_list_thread_groups)
6148 (mi_cmd_data_list_changed_registers, mi_cmd_data_read_memory)
6149 (mi_cmd_data_read_memory_bytes, mi_cmd_trace_frame_collected):
6150 Likewise.
6151
6152 2017-09-09 Tom Tromey <tom@tromey.com>
6153
6154 * disasm.c (gdb_pretty_print_disassembler::pretty_print_insn): Use
6155 ui_out_emit_tuple.
6156
6157 2017-09-09 Tom Tromey <tom@tromey.com>
6158
6159 * target.c (flash_erase_command): Use ui_out_emit_tuple.
6160 * stack.c (print_frame): Use ui_out_emit_tuple.
6161 * spu-tdep.c (info_spu_event_command): Use ui_out_emit_tuple.
6162 (info_spu_mailbox_command, info_spu_dma_command)
6163 (info_spu_proxydma_command): Likewise.
6164 * mi/mi-main.c (mi_cmd_trace_frame_collected): Use
6165 ui_out_emit_tuple, gdb::byte_vector, bin2hex.
6166 * mi/mi-cmd-file.c (mi_cmd_file_list_shared_libraries): Use
6167 ui_out_emit_tuple.
6168 * breakpoint.c (print_it_watchpoint): Use ui_out_emit_tuple.
6169
6170 2017-09-09 Tom Tromey <tom@tromey.com>
6171
6172 * ui-out.h (make_cleanup_ui_out_table_begin_end): Remove.
6173 (class ui_out_emit_table): Update comment.
6174 * ui-out.c (do_cleanup_table_end)
6175 (make_cleanup_ui_out_table_begin_end): Remove.
6176 * spu-tdep.c (info_spu_mailbox_list): Use ui_out_emit_table.
6177 (info_spu_dma_cmdlist): Likewise.
6178 * probe.c (info_probes_for_ops): Use ui_out_emit_table.
6179 * darwin-nat-info.c (darwin_debug_regions_recurse): Use
6180 ui_out_emit_table.
6181
6182 2017-09-09 Tom Tromey <tom@tromey.com>
6183
6184 * thread.c (print_thread_info_1): Use ui_out_emit_table,
6185 ui_out_emit_list, gdb::optional.
6186
6187 2017-09-09 John Baldwin <jhb@FreeBSD.org>
6188
6189 * aarch64-linux-nat.c: Remove _initialize_aarch64_linux_nat
6190 prototype.
6191 * aarch64-linux-tdep.c: Remove _initialize_aarch64_linux_tdep
6192 prototype.
6193 * aarch64-newlib-tdep.c: Remove _initialize_aarch64_newlib_tdep
6194 prototype.
6195 * aarch64-tdep.c: Remove _initialize_aarch64_tdep prototype.
6196 * ada-exp.y: Remove _initialize_ada_exp prototype.
6197 * ada-lang.c: Remove _initialize_ada_language prototype.
6198 * ada-tasks.c: Remove _initialize_tasks prototype.
6199 * addrmap.c: Remove _initialize_addrmap prototype.
6200 * agent.c: Remove _initialize_agent prototype.
6201 * aix-thread.c: Remove _initialize_aix_thread prototype.
6202 * alpha-bsd-nat.c: Remove _initialize_alphabsd_nat prototype.
6203 * alpha-linux-nat.c: Remove _initialize_alpha_linux_nat prototype.
6204 * alpha-linux-tdep.c: Remove _initialize_alpha_linux_tdep
6205 prototype.
6206 * alpha-nbsd-tdep.c: Remove _initialize_alphanbsd_tdep prototype.
6207 * alpha-obsd-tdep.c: Remove _initialize_alphaobsd_tdep prototype.
6208 * alpha-tdep.c: Remove _initialize_alpha_tdep prototype.
6209 * amd64-darwin-tdep.c: Remove _initialize_amd64_darwin_tdep
6210 prototype.
6211 * amd64-dicos-tdep.c: Remove _initialize_amd64_dicos_tdep
6212 prototype.
6213 * amd64-fbsd-nat.c: Remove _initialize_amd64fbsd_nat prototype.
6214 * amd64-fbsd-tdep.c: Remove _initialize_amd64fbsd_tdep prototype.
6215 * amd64-linux-nat.c: Remove _initialize_amd64_linux_nat prototype.
6216 * amd64-linux-tdep.c: Remove _initialize_amd64_linux_tdep
6217 prototype.
6218 * amd64-nbsd-nat.c: Remove _initialize_amd64nbsd_nat prototype.
6219 * amd64-nbsd-tdep.c: Remove _initialize_amd64nbsd_tdep prototype.
6220 * amd64-obsd-nat.c: Remove _initialize_amd64obsd_nat prototype.
6221 * amd64-obsd-tdep.c: Remove _initialize_amd64obsd_tdep prototype.
6222 * amd64-sol2-tdep.c: Remove _initialize_amd64_sol2_tdep prototype.
6223 * amd64-tdep.c: Remove _initialize_amd64_tdep prototype.
6224 * amd64-windows-nat.c: Remove _initialize_amd64_windows_nat
6225 prototype.
6226 * amd64-windows-tdep.c: Remove _initialize_amd64_windows_tdep
6227 prototype.
6228 * annotate.c: Remove _initialize_annotate prototype.
6229 * arc-newlib-tdep.c: Remove _initialize_arc_newlib_tdep prototype.
6230 * arc-tdep.c: Remove _initialize_arc_tdep prototype.
6231 * arch-utils.c: Remove _initialize_gdbarch_utils prototype.
6232 * arm-linux-nat.c: Remove _initialize_arm_linux_nat prototype.
6233 * arm-linux-tdep.c: Remove _initialize_arm_linux_tdep prototype.
6234 * arm-nbsd-tdep.c: Remove _initialize_arm_netbsd_tdep prototype.
6235 * arm-obsd-tdep.c: Remove _initialize_armobsd_tdep prototype.
6236 * arm-symbian-tdep.c: Remove _initialize_arm_symbian_tdep
6237 prototype.
6238 * arm-tdep.c: Remove _initialize_arm_tdep prototype.
6239 * arm-wince-tdep.c: Remove _initialize_arm_wince_tdep prototype.
6240 * auto-load.c: Remove _initialize_auto_load prototype.
6241 * auxv.c: Remove _initialize_auxv prototype.
6242 * avr-tdep.c: Remove _initialize_avr_tdep prototype.
6243 * ax-gdb.c: Remove _initialize_ax_gdb prototype.
6244 * bfin-linux-tdep.c: Remove _initialize_bfin_linux_tdep prototype.
6245 * bfin-tdep.c: Remove _initialize_bfin_tdep prototype.
6246 * break-catch-sig.c: Remove _initialize_break_catch_sig prototype.
6247 * break-catch-syscall.c: Remove _initialize_break_catch_syscall
6248 prototype.
6249 * break-catch-throw.c: Remove _initialize_break_catch_throw
6250 prototype.
6251 * breakpoint.c: Remove _initialize_breakpoint prototype.
6252 * bsd-uthread.c: Remove _initialize_bsd_uthread prototype.
6253 * btrace.c: Remove _initialize_btrace prototype.
6254 * charset.c: Remove _initialize_charset prototype.
6255 * cli/cli-cmds.c: Remove _initialize_cli_cmds prototype.
6256 * cli/cli-dump.c: Remove _initialize_cli_dump prototype.
6257 * cli/cli-interp.c: Remove _initialize_cli_interp prototype.
6258 * cli/cli-logging.c: Remove _initialize_cli_logging prototype.
6259 * cli/cli-script.c: Remove _initialize_cli_script prototype.
6260 * coff-pe-read.c: Remove _initialize_coff_pe_read prototype.
6261 * coffread.c: Remove _initialize_coffread prototype.
6262 * compile/compile.c: Remove _initialize_compile prototype.
6263 * complaints.c: Remove _initialize_complaints prototype.
6264 * completer.c: Remove _initialize_completer prototype.
6265 * copying.awk: Remove _initialize_copying prototype.
6266 * copying.c: Regenerate.
6267 * core-regset.c: Remove _initialize_core_regset prototype.
6268 * corefile.c: Remove _initialize_core prototype.
6269 * corelow.c: Remove _initialize_corelow prototype.
6270 * cp-abi.c: Remove _initialize_cp_abi prototype.
6271 * cp-namespace.c: Remove _initialize_cp_namespace prototype.
6272 * cp-support.c: Remove _initialize_cp_support prototype.
6273 * cp-valprint.c: Remove _initialize_cp_valprint prototype.
6274 * cris-linux-tdep.c: Remove _initialize_cris_linux_tdep prototype.
6275 * cris-tdep.c: Remove _initialize_cris_tdep prototype.
6276 * ctf.c: Remove _initialize_ctf prototype.
6277 * d-lang.c: Remove _initialize_d_language prototype.
6278 * darwin-nat-info.c: Remove _initialize_darwin_info_commands
6279 prototype.
6280 * darwin-nat.c: Remove _initialize_darwin_inferior prototype.
6281 * dbxread.c: Remove _initialize_dbxread prototype.
6282 * dcache.c: Remove _initialize_dcache prototype.
6283 * demangle.c: Remove _initialize_demangler prototype.
6284 * disasm-selftests.c: Remove _initialize_disasm_selftests
6285 prototype.
6286 * disasm.c: Remove _initialize_disasm prototype.
6287 * dtrace-probe.c: Remove _initialize_dtrace_probe prototype.
6288 * dummy-frame.c: Remove _initialize_dummy_frame prototype.
6289 * dwarf2-frame-tailcall.c: Remove _initialize_tailcall_frame
6290 prototype.
6291 * dwarf2-frame.c: Remove _initialize_dwarf2_frame prototype.
6292 * dwarf2expr.c: Remove _initialize_dwarf2expr prototype.
6293 * dwarf2loc.c: Remove _initialize_dwarf2loc prototype.
6294 * dwarf2read.c: Remove _initialize_dwarf2_read prototype.
6295 * elfread.c: Remove _initialize_elfread prototype.
6296 * exec.c: Remove _initialize_exec prototype.
6297 * extension.c: Remove _initialize_extension prototype.
6298 * f-lang.c: Remove _initialize_f_language prototype.
6299 * f-valprint.c: Remove _initialize_f_valprint prototype.
6300 * fbsd-nat.c: Remove _initialize_fbsd_nat prototype.
6301 * fbsd-tdep.c: Remove _initialize_fbsd_tdep prototype.
6302 * filesystem.c: Remove _initialize_filesystem prototype.
6303 * findcmd.c: Remove _initialize_mem_search prototype.
6304 * fork-child.c: Remove _initialize_fork_child prototype.
6305 * frame-base.c: Remove _initialize_frame_base prototype.
6306 * frame-unwind.c: Remove _initialize_frame_unwind prototype.
6307 * frame.c: Remove _initialize_frame prototype.
6308 * frv-linux-tdep.c: Remove _initialize_frv_linux_tdep prototype.
6309 * frv-tdep.c: Remove _initialize_frv_tdep prototype.
6310 * ft32-tdep.c: Remove _initialize_ft32_tdep prototype.
6311 * gcore.c: Remove _initialize_gcore prototype.
6312 * gdb_bfd.c: Remove _initialize_gdb_bfd prototype.
6313 * gdbarch.c: Regenerate.
6314 * gdbarch.sh: Remove _initialize_gdbarch prototype.
6315 * gdbtypes.c: Remove _initialize_gdbtypes prototype.
6316 * gnu-nat.c: Remove _initialize_gnu_nat prototype.
6317 * gnu-v2-abi.c: Remove _initialize_gnu_v2_abi prototype.
6318 * gnu-v3-abi.c: Remove _initialize_gnu_v3_abi prototype.
6319 * go-lang.c: Remove _initialize_go_language prototype.
6320 * go32-nat.c: Remove _initialize_go32_nat prototype.
6321 * guile/guile.c: Remove _initialize_guile prototype.
6322 * h8300-tdep.c: Remove _initialize_h8300_tdep prototype.
6323 * hppa-linux-nat.c: Remove _initialize_hppa_linux_nat prototype.
6324 * hppa-linux-tdep.c: Remove _initialize_hppa_linux_tdep prototype.
6325 * hppa-nbsd-nat.c: Remove _initialize_hppanbsd_nat prototype.
6326 * hppa-nbsd-tdep.c: Remove _initialize_hppanbsd_tdep prototype.
6327 * hppa-obsd-nat.c: Remove _initialize_hppaobsd_nat prototype.
6328 * hppa-obsd-tdep.c: Remove _initialize_hppaobsd_tdep prototype.
6329 * hppa-tdep.c: Remove _initialize_hppa_tdep prototype.
6330 * i386-bsd-nat.c: Remove _initialize_i386bsd_nat prototype.
6331 * i386-cygwin-tdep.c: Remove _initialize_i386_cygwin_tdep
6332 prototype.
6333 * i386-darwin-tdep.c: Remove _initialize_i386_darwin_tdep
6334 prototype.
6335 * i386-dicos-tdep.c: Remove _initialize_i386_dicos_tdep prototype.
6336 * i386-fbsd-nat.c: Remove _initialize_i386fbsd_nat prototype.
6337 * i386-fbsd-tdep.c: Remove _initialize_i386fbsd_tdep prototype.
6338 * i386-gnu-nat.c: Remove _initialize_i386gnu_nat prototype.
6339 * i386-gnu-tdep.c: Remove _initialize_i386gnu_tdep prototype.
6340 * i386-linux-nat.c: Remove _initialize_i386_linux_nat prototype.
6341 * i386-linux-tdep.c: Remove _initialize_i386_linux_tdep prototype.
6342 * i386-nbsd-nat.c: Remove _initialize_i386nbsd_nat prototype.
6343 * i386-nbsd-tdep.c: Remove _initialize_i386nbsd_tdep prototype.
6344 * i386-nto-tdep.c: Remove _initialize_i386nto_tdep prototype.
6345 * i386-obsd-nat.c: Remove _initialize_i386obsd_nat prototype.
6346 * i386-obsd-tdep.c: Remove _initialize_i386obsd_tdep prototype.
6347 * i386-sol2-nat.c: Remove _initialize_amd64_sol2_nat prototype.
6348 * i386-sol2-tdep.c: Remove _initialize_amd64_sol2_tdep prototype.
6349 * i386-tdep.c: Remove _initialize_i386_tdep prototype.
6350 * i386-windows-nat.c: Remove _initialize_i386_windows_nat
6351 prototype.
6352 * ia64-libunwind-tdep.c: Remove _initialize_libunwind_frame
6353 prototype.
6354 * ia64-linux-nat.c: Remove _initialize_ia64_linux_nat prototype.
6355 * ia64-linux-tdep.c: Remove _initialize_ia64_linux_tdep prototype.
6356 * ia64-tdep.c: Remove _initialize_ia64_tdep prototype.
6357 * ia64-vms-tdep.c: Remove _initialize_ia64_vms_tdep prototype.
6358 * infcall.c: Remove _initialize_infcall prototype.
6359 * infcmd.c: Remove _initialize_infcmd prototype.
6360 * inferior.c: Remove _initialize_inferiors prototype.
6361 * inflow.c: Remove _initialize_inflow prototype.
6362 * infrun.c: Remove _initialize_infrun prototype.
6363 * interps.c: Remove _initialize_interpreter prototype.
6364 * iq2000-tdep.c: Remove _initialize_iq2000_tdep prototype.
6365 * jit.c: Remove _initialize_jit prototype.
6366 * language.c: Remove _initialize_language prototype.
6367 * linux-fork.c: Remove _initialize_linux_fork prototype.
6368 * linux-nat.c: Remove _initialize_linux_nat prototype.
6369 * linux-tdep.c: Remove _initialize_linux_tdep prototype.
6370 * linux-thread-db.c: Remove _initialize_thread_db prototype.
6371 * lm32-tdep.c: Remove _initialize_lm32_tdep prototype.
6372 * m2-lang.c: Remove _initialize_m2_language prototype.
6373 * m32c-tdep.c: Remove _initialize_m32c_tdep prototype.
6374 * m32r-linux-nat.c: Remove _initialize_m32r_linux_nat prototype.
6375 * m32r-linux-tdep.c: Remove _initialize_m32r_linux_tdep prototype.
6376 * m32r-tdep.c: Remove _initialize_m32r_tdep prototype.
6377 * m68hc11-tdep.c: Remove _initialize_m68hc11_tdep prototype.
6378 * m68k-bsd-nat.c: Remove _initialize_m68kbsd_nat prototype.
6379 * m68k-bsd-tdep.c: Remove _initialize_m68kbsd_tdep prototype.
6380 * m68k-linux-nat.c: Remove _initialize_m68k_linux_tdep prototype.
6381 * m68k-linux-tdep.c: Remove _initialize_m68k_linux_tdep prototype.
6382 * m68k-tdep.c: Remove _initialize_m68k_tdep prototype.
6383 * m88k-bsd-nat.c: Remove _initialize_m68kbsd_nat prototype.
6384 * m88k-tdep.c: Remove _initialize_m68kbsd_tdep prototype.
6385 * machoread.c: Remove _initialize_machoread prototype.
6386 * macrocmd.c: Remove _initialize_macrocmd prototype.
6387 * macroscope.c: Remove _initialize_macroscope prototype.
6388 * maint.c: Remove _initialize_maint_cmds prototype.
6389 * mdebugread.c: Remove _initialize_mdebugread prototype.
6390 * memattr.c: Remove _initialize_mem prototype.
6391 * mep-tdep.c: Remove _initialize_mep_tdep prototype.
6392 * mi/mi-cmd-env.c: Remove _initialize_mi_cmd_env prototype.
6393 * mi/mi-cmds.c: Remove _initialize_mi_cmds prototype.
6394 * mi/mi-interp.c: Remove _initialize_mi_interp prototype.
6395 * mi/mi-main.c: Remove _initialize_mi_main prototype.
6396 * microblaze-linux-tdep.c: Remove
6397 _initialize_microblaze_linux_tdep prototype.
6398 * microblaze-tdep.c: Remove _initialize_microblaze_tdep prototype.
6399 * mips-fbsd-nat.c: Remove _initialize_mips_fbsd_nat prototype.
6400 * mips-fbsd-tdep.c: Remove _initialize_mips_fbsd_tdep prototype.
6401 * mips-linux-nat.c: Remove _initialize_mips_linux_nat prototype.
6402 * mips-linux-tdep.c: Remove _initialize_mips_linux_tdep prototype.
6403 * mips-nbsd-nat.c: Remove _initialize_mipsnbsd_nat prototype.
6404 * mips-nbsd-tdep.c: Remove _initialize_mipsnbsd_tdep prototype.
6405 * mips-sde-tdep.c: Remove _initialize_mips_sde_tdep prototype.
6406 * mips-tdep.c: Remove _initialize_mips_tdep prototype.
6407 * mips64-obsd-nat.c: Remove _initialize_mips64obsd_nat prototype.
6408 * mips64-obsd-tdep.c: Remove _initialize_mips64obsd_tdep
6409 prototype.
6410 * mipsread.c: Remove _initialize_mipsread prototype.
6411 * mn10300-linux-tdep.c: Remove _initialize_mn10300_linux_tdep
6412 prototype.
6413 * mn10300-tdep.c: Remove _initialize_mn10300_tdep prototype.
6414 * moxie-tdep.c: Remove _initialize_moxie_tdep prototype.
6415 * msp430-tdep.c: Remove _initialize_msp430_tdep prototype.
6416 * mt-tdep.c: Remove _initialize_mt_tdep prototype.
6417 * nds32-tdep.c: Remove _initialize_nds32_tdep prototype.
6418 * nios2-linux-tdep.c: Remove _initialize_nios2_linux_tdep
6419 prototype.
6420 * nios2-tdep.c: Remove _initialize_nios2_tdep prototype.
6421 * nto-procfs.c: Remove _initialize_procfs prototype.
6422 * nto-tdep.c: Remove _initialize_nto_tdep prototype.
6423 * objc-lang.c: Remove _initialize_objc_language prototype.
6424 * objfiles.c: Remove _initialize_objfiles prototype.
6425 * observer.c: Remove observer_test_first_notification_function,
6426 observer_test_second_notification_function,
6427 observer_test_third_notification_function, and
6428 _initialize_observer prototypes.
6429 * opencl-lang.c: Remove _initialize_opencl_language prototypes.
6430 * osabi.c: Remove _initialize_gdb_osabi prototype.
6431 * osdata.c: Remove _initialize_osdata prototype.
6432 * p-valprint.c: Remove _initialize_pascal_valprint prototype.
6433 * parse.c: Remove _initialize_parse prototype.
6434 * ppc-fbsd-nat.c: Remove _initialize_ppcfbsd_nat prototype.
6435 * ppc-fbsd-tdep.c: Remove _initialize_ppcfbsd_tdep prototype.
6436 * ppc-linux-nat.c: Remove _initialize_ppc_linux_nat prototype.
6437 * ppc-linux-tdep.c: Remove _initialize_ppc_linux_tdep prototype.
6438 * ppc-nbsd-nat.c: Remove _initialize_ppcnbsd_nat prototype.
6439 * ppc-nbsd-tdep.c: Remove _initialize_ppcnbsd_tdep prototype.
6440 * ppc-obsd-nat.c: Remove _initialize_ppcobsd_nat prototype.
6441 * ppc-obsd-tdep.c: Remove _initialize_ppcobsd_tdep prototype.
6442 * printcmd.c: Remove _initialize_printcmd prototype.
6443 * probe.c: Remove _initialize_probe prototype.
6444 * proc-api.c: Remove _initialize_proc_api prototype.
6445 * proc-events.c: Remove _initialize_proc_events prototype.
6446 * proc-service.c: Remove _initialize_proc_service prototype.
6447 * procfs.c: Remove _initialize_procfs prototype.
6448 * psymtab.c: Remove _initialize_psymtab prototype.
6449 * python/python.c: Remove _initialize_python prototype.
6450 * ravenscar-thread.c: Remove _initialize_ravenscar prototype.
6451 * record-btrace.c: Remove _initialize_record_btrace prototype.
6452 * record-full.c: Remove _initialize_record_full prototype.
6453 * record.c: Remove _initialize_record prototype.
6454 * regcache.c: Remove _initialize_regcache prototype.
6455 * reggroups.c: Remove _initialize_reggroup prototype.
6456 * remote-notif.c: Remove _initialize_notif prototype.
6457 * remote-sim.c: Remove _initialize_remote_sim prototype.
6458 * remote.c: Remove _initialize_remote prototype.
6459 * reverse.c: Remove _initialize_reverse prototype.
6460 * rl78-tdep.c: Remove _initialize_rl78_tdep prototype.
6461 * rs6000-aix-tdep.c: Remove _initialize_rs6000_aix_tdep prototype.
6462 * rs6000-lynx178-tdep.c: Remove _initialize_rs6000_lynx178_tdep
6463 prototype.
6464 * rs6000-nat.c: Remove _initialize_rs6000_nat prototype.
6465 * rs6000-tdep.c: Remove _initialize_rs6000_tdep prototype.
6466 * rust-exp.y: Remove _initialize_rust_exp prototype.
6467 * rx-tdep.c: Remove _initialize_rx_tdep prototype.
6468 * s390-linux-nat.c: Remove _initialize_s390_nat prototype.
6469 * s390-linux-tdep.c: Remove _initialize_s390_tdep prototype.
6470 * score-tdep.c: Remove _initialize_score_tdep prototype.
6471 * selftest-arch.c: Remove _initialize_selftests_foreach_arch
6472 prototype.
6473 * ser-go32.c: Remove _initialize_ser_dos prototype.
6474 * ser-mingw.c: Remove _initialize_ser_windows prototype.
6475 * ser-pipe.c: Remove _initialize_ser_pipe prototype.
6476 * ser-tcp.c: Remove _initialize_ser_tcp prototype.
6477 * ser-unix.c: Remove _initialize_ser_hardwire prototype.
6478 * serial.c: Remove _initialize_serial prototype.
6479 * sh-linux-tdep.c: Remove _initialize_sh_linux_tdep prototype.
6480 * sh-nbsd-nat.c: Remove _initialize_shnbsd_nat prototype.
6481 * sh-nbsd-tdep.c: Remove _initialize_shnbsd_tdep prototype.
6482 * sh-tdep.c: Remove _initialize_sh_tdep prototype.
6483 * skip.c: Remove _initialize_step_skip prototype.
6484 * sol-thread.c: Remove _initialize_sol_thread prototype.
6485 * solib-aix.c: Remove _initialize_solib_aix prototype.
6486 * solib-darwin.c: Remove _initialize_darwin_solib prototype.
6487 * solib-dsbt.c: Remove _initialize_dsbt_solib prototype.
6488 * solib-frv.c: Remove _initialize_frv_solib prototype.
6489 * solib-spu.c: Remove _initialize_spu_solib prototype.
6490 * solib-svr4.c: Remove _initialize_svr4_solib prototype.
6491 * solib-target.c: Remove _initialize_solib_target prototype.
6492 * solib.c: Remove _initialize_solib prototype.
6493 * source.c: Remove _initialize_source prototype.
6494 * sparc-linux-nat.c: Remove _initialize_sparc_linux_nat prototype.
6495 * sparc-linux-tdep.c: Remove _initialize_sparc_linux_tdep
6496 prototype.
6497 * sparc-nat.c: Remove _initialize_sparc_nat prototype.
6498 * sparc-nbsd-nat.c: Remove _initialize_sparcnbsd_nat prototype.
6499 * sparc-nbsd-tdep.c: Remove _initialize_sparcnbsd_tdep prototype.
6500 * sparc-obsd-tdep.c: Remove _initialize_sparc32obsd_tdep
6501 prototype.
6502 * sparc-sol2-nat.c: Remove _initialize_sparc_sol2_nat prototype.
6503 * sparc-sol2-tdep.c: Remove _initialize_sparc_sol2_tdep prototype.
6504 * sparc-tdep.c: Remove _initialize_sparc_tdep prototype.
6505 * sparc64-fbsd-nat.c: Remove _initialize_sparc64fbsd_nat
6506 prototype.
6507 * sparc64-fbsd-tdep.c: Remove _initialize_sparc64fbsd_tdep
6508 prototype.
6509 * sparc64-linux-nat.c: Remove _initialize_sparc64_linux_nat
6510 prototype.
6511 * sparc64-linux-tdep.c: Remove _initialize_sparc64_linux_tdep
6512 prototype.
6513 * sparc64-nat.c: Remove _initialize_sparc64_nat prototype.
6514 * sparc64-nbsd-nat.c: Remove _initialize_sparc64nbsd_nat
6515 prototype.
6516 * sparc64-nbsd-tdep.c: Remove _initialize_sparc64nbsd_tdep
6517 prototype.
6518 * sparc64-obsd-nat.c: Remove _initialize_sparc64obsd_nat
6519 prototype.
6520 * sparc64-obsd-tdep.c: Remove _initialize_sparc64obsd_tdep
6521 prototype.
6522 * sparc64-sol2-tdep.c: Remove _initialize_sparc64_sol2_tdep
6523 prototype.
6524 * spu-linux-nat.c: Remove _initialize_spu_nat prototype.
6525 * spu-multiarch.c: Remove _initialize_spu_multiarch prototype.
6526 * spu-tdep.c: Remove _initialize_spu_tdep prototype.
6527 * stabsread.c: Remove _initialize_stabsread prototype.
6528 * stack.c: Remove _initialize_stack prototype.
6529 * stap-probe.c: Remove _initialize_stap_probe prototype.
6530 * std-regs.c: Remove _initialize_frame_reg prototype.
6531 * symfile-debug.c: Remove _initialize_symfile_debug prototype.
6532 * symfile-mem.c: Remove _initialize_symfile_mem prototype.
6533 * symfile.c: Remove _initialize_symfile prototype.
6534 * symmisc.c: Remove _initialize_symmisc prototype.
6535 * symtab.c: Remove _initialize_symtab prototype.
6536 * target-dcache.c: Remove _initialize_target_dcache prototype.
6537 * target-descriptions.c: Remove _initialize_target_descriptions
6538 prototype.
6539 * thread.c: Remove _initialize_thread prototype.
6540 * tic6x-linux-tdep.c: Remove _initialize_tic6x_linux_tdep
6541 prototype.
6542 * tic6x-tdep.c: Remove _initialize_tic6x_tdep prototype.
6543 * tilegx-linux-nat.c: Remove _initialize_tile_linux_nat prototype.
6544 * tilegx-linux-tdep.c: Remove _initialize_tilegx_linux_tdep
6545 prototype.
6546 * tilegx-tdep.c: Remove _initialize_tilegx_tdep prototype.
6547 * tracefile-tfile.c: Remove _initialize_tracefile_tfile prototype.
6548 * tracefile.c: Remove _initialize_tracefile prototype.
6549 * tracepoint.c: Remove _initialize_tracepoint prototype.
6550 * tui/tui-hooks.c: Remove _initialize_tui_hooks prototype.
6551 * tui/tui-interp.c: Remove _initialize_tui_interp prototype.
6552 * tui/tui-layout.c: Remove _initialize_tui_layout prototype.
6553 * tui/tui-regs.c: Remove _initialize_tui_regs prototype.
6554 * tui/tui-stack.c: Remove _initialize_tui_stack prototype.
6555 * tui/tui-win.c: Remove _initialize_tui_win prototype.
6556 * tui/tui.c: Remove _initialize_tui prototype.
6557 * typeprint.c: Remove _initialize_typeprint prototype.
6558 * user-regs.c: Remove _initialize_user_regs prototype.
6559 * utils.c: Remove _initialize_utils prototype.
6560 * v850-tdep.c: Remove _initialize_v850_tdep prototype.
6561 * valarith.c: Remove _initialize_valarith prototype.
6562 * valops.c: Remove _initialize_valops prototype.
6563 * valprint.c: Remove _initialize_valprint prototype.
6564 * value.c: Remove _initialize_values prototype.
6565 * varobj.c: Remove _initialize_varobj prototype.
6566 * vax-bsd-nat.c: Remove _initialize_vaxbsd_nat prototype.
6567 * vax-nbsd-tdep.c: Remove _initialize_vaxnbsd_tdep prototype.
6568 * vax-tdep.c: Remove _initialize_vax_tdep prototype.
6569 * windows-nat.c: Remove _initialize_windows_nat,
6570 _initialize_check_for_gdb_ini, and _initialize_loadable
6571 prototypes.
6572 * windows-tdep.c: Remove _initialize_windows_tdep prototype.
6573 * xcoffread.c: Remove _initialize_xcoffread prototype.
6574 * xml-support.c: Remove _initialize_xml_support prototype.
6575 * xstormy16-tdep.c: Remove _initialize_xstormy16_tdep prototype.
6576 * xtensa-linux-nat.c: Remove _initialize_xtensa_linux_nat
6577 prototype.
6578 * xtensa-linux-tdep.c: Remove _initialize_xtensa_linux_tdep
6579 prototype.
6580 * xtensa-tdep.c: Remove _initialize_xtensa_tdep prototype.
6581
6582 2017-09-08 Keith Seitz <keiths@redhat.com>
6583
6584 * dwarf2read.c (struct field_info) <fnfields>: Remove unused
6585 field.
6586
6587 2017-09-08 Christoph Weinmann <christoph.t.weinmann@intel.com>
6588
6589 * f-valprint.c (f_val_print): Remove check for one byte
6590 sized integers. Remove printing of character type.
6591
6592 2017-09-08 Frank Penczek <frank.penczek@intel.com>
6593 Christoph Weinmann <christoph.t.weinmann@intel.com>
6594 Bernhard Heckel <bernhard.heckel@intel.com>
6595
6596 * f-typeprint.c (f_type_print_base): Use fprintfi_filtered
6597 to maintain proper indentation when printing pointers/refs.
6598
6599 2017-09-07 Joel Brobecker <brobecker@adacore.com>
6600
6601 GDB 8.0.1 released.
6602
6603 2017-09-07 Joel Brobecker <brobecker@adacore.com>
6604
6605 * NEWS (Changes in GDB 7.11): Remove entry for QStartupWithShell.
6606
6607 2017-09-05 Tom Tromey <tom@tromey.com>
6608
6609 * parse.c (funcall_chain): Now a std::vector.
6610 (start_arglist, end_arglist): Simplify.
6611 (free_funcalls): Remove.
6612 (parse_exp_in_context_1): Remove cleanup.
6613
6614 2017-09-05 Tom Tromey <tom@tromey.com>
6615
6616 * go-exp.y (go_parse): Don't create a cleanup.
6617
6618 2017-09-05 Tom Tromey <tom@tromey.com>
6619
6620 * d-exp.y (PrimaryExpression): Use std::string.
6621 (d_parse): Don't create a cleanup.
6622
6623 2017-09-05 Tom Tromey <tom@tromey.com>
6624
6625 * utils.c (do_clear_parser_state): Remove.
6626 (make_cleanup_clear_parser_state): Remove.
6627 * p-exp.y (pascal_parse): Use scoped_restore.
6628 * m2-exp.y (m2_parse): Use scoped_restore.
6629 * f-exp.y (f_parse): Use scoped_restore.
6630 * d-exp.y (d_parse): Use scoped_restore.
6631 * c-exp.y (c_parse): Use scoped_restore.
6632 * ada-exp.y (ada_parse): Use scoped_restore.
6633 * utils.h (make_cleanup_clear_parser_state): Remove.
6634
6635 2017-09-06 Keith Seitz <keiths@redhat.com>
6636
6637 * dwarf2read.c (dw2_linkage_name_attr): New function.
6638 (dw2_linkage_name): New function.
6639 (dwarf2_compute_name, dwarf2_physname, read_call_site_scope)
6640 (guess_full_die_structure_name, dwarf2_name): Use dw2_linkage_name.
6641 (anonymous_struct_prefix, dwarf2_name): Use dw2_linkage_name_attr.
6642
6643 2017-09-06 Kamil Rytarowski <n54@gmx.com>
6644
6645 * config/djgpp/djconfig.sh: Correct shell portability issue.
6646
6647 2017-09-06 Kamil Rytarowski <n54@gmx.com>
6648
6649 * configure.nat: Define HAVE_NATIVE_GCORE_HOST on NetBSD.
6650
6651 2017-09-06 John Baldwin <jhb@FreeBSD.org>
6652
6653 * Makefile.in (ALLDEPFILES): Add mips-fbsd-nat.c.
6654 * NEWS: Mention new FreeBSD/mips native configuration.
6655 * configure.host: Add aarch64*-*-freebsd*.
6656 * configure.nat: Likewise.
6657 * aarch64-fbsd-nat.c: New file.
6658
6659 2017-09-06 John Baldwin <jhb@FreeBSD.org>
6660
6661 * Makefile.in (ALL_64_TARGET_OBS): Add aarch64-fbsd-tdep.o.
6662 (ALLDEPFILES): Add aarch64-fbsd-tdep.c.
6663 * NEWS: Mention new FreeBSD/aarch64 target.
6664 * configure.tgt: Add aarch64*-*-freebsd*.
6665 * aarch64-fbsd-tdep.c: New file.
6666 * aarch64-fbsd-tdep.h: New file.
6667
6668 2017-09-06 Kamil Rytarowski <n54@gmx.com>
6669
6670 * MAINTAINERS (Write After Approval): Add Kamil Rytarowski.
6671
6672 2017-09-06 Jan Kratochvil <jan.kratochvil@redhat.com>
6673
6674 * parse.c (find_minsym_type_and_address): Don't relocate addresses
6675 of TLS symbols.
6676
6677 2017-09-05 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6678
6679 * objfiles.c (get_objfile_bfd_data): Remove useless obstack_init
6680 call.
6681
6682 2017-09-05 Simon Marchi <simon.marchi@ericsson.com>
6683
6684 * infrun.c (follow_exec): Call add_thread after
6685 target_find_description.
6686
6687 2017-09-05 Simon Marchi <simon.marchi@ericsson.com>
6688
6689 * infrun.c (handle_inferior_event_1): When exec'ing, read
6690 stop_pc after follow_exec.
6691
6692 2017-09-05 Simon Marchi <simon.marchi@ericsson.com>
6693
6694 * remote.c (process_g_packet): Update error message.
6695
6696 2017-09-05 Yao Qi <yao.qi@linaro.org>
6697
6698 * configure.tgt (gdb_target_obs): Add i386.o for x86_64-*
6699 targets.
6700
6701 2017-09-05 Pedro Alves <palves@redhat.com>
6702
6703 * eval.c (eval_call, evaluate_funcall): New functions, factored
6704 out from ...
6705 (evaluate_subexp_standard): ... this.
6706
6707 2017-09-05 Yao Qi <yao.qi@linaro.org>
6708
6709 * amd64-tdep.c (amd64_target_description): Create target
6710 descriptions.
6711 (_initialize_amd64_tdep): Don't call functions
6712 initialize_tdesc_amd64_*. Add self tests.
6713 * arch/amd64.c (amd64_create_target_description): Add parameter
6714 is_linux. Call set_tdesc_osabi if is_linux is true.
6715 * arch/amd64.h (amd64_create_target_description): Update the
6716 declaration.
6717 * arch/i386.c (i386_create_target_description): Add parameter
6718 is_linux. Call set_tdesc_osabi if is_linux is true.
6719 * arch/i386.h (i386_create_target_description): Update
6720 declaration.
6721 * configure.tgt: Add i386.o to gdb_target_obs.
6722 * features/Makefile (XMLTOC): Remove i386/*.xml.
6723 * features/i386/amd64-avx-avx512.c: Remove.
6724 * features/i386/amd64-avx-mpx-avx512-pku.c: Remove.
6725 * features/i386/amd64-avx-mpx.c: Remove.
6726 * features/i386/amd64-avx.c: Remove.
6727 * features/i386/amd64-mpx.c: Remove.
6728 * features/i386/amd64.c: Remove.
6729 * features/i386/i386-avx-avx512.c: Remove.
6730 * features/i386/i386-avx-mpx-avx512-pku.c: Remove.
6731 * features/i386/i386-avx-mpx.c: Remove.
6732 * features/i386/i386-avx.c: Remove.
6733 * features/i386/i386-mmx.c: Remove.
6734 * features/i386/i386-mpx.c: Remove.
6735 * features/i386/i386.c: Remove.
6736 * i386-tdep.c: Don't include features/i386/i386*.c., include
6737 target-descriptions.h and arch/i386.h.
6738 (i386_target_description): Create target descriptions.
6739 (i386_gdbarch_init): Don't call initialize_tdesc_i386_*
6740 functions. Do self tests.
6741
6742 2017-09-05 Yao Qi <yao.qi@linaro.org>
6743
6744 * features/Makefile (XMLTOC): Remove i386/amd64XXX-linux.xml.
6745 * features/i386/amd64-avx-avx512-linux.c: Removed.
6746 * features/i386/amd64-avx-linux.c: Removed.
6747 * features/i386/amd64-avx-mpx-avx512-pku-linux.c: Removed.
6748 * features/i386/amd64-avx-mpx-linux.c: Removed.
6749 * features/i386/amd64-linux.c: Removed.
6750 * features/i386/amd64-mpx-linux.c: Removed.
6751 * features/i386/x32-avx-avx512-linux.c: Removed.
6752 * features/i386/x32-avx-linux.c: Removed.
6753 * features/i386/x32-linux.c: Removed.
6754
6755 2017-09-05 Yao Qi <yao.qi@linaro.org>
6756
6757 * amd64-linux-tdep.c: Include arch/amd64.h. Don't include
6758 features/i386/*.c.
6759 (amd64_linux_read_description): Call
6760 amd64_create_target_description.
6761 * arch/amd64.c: New file.
6762 * arch/amd64.h: New file.
6763 * configure.tgt (x86_64-*-linux*): Append amd64.o.
6764 * Makefile.in (ALL_64_TARGET_OBS): Append amd64.o.
6765
6766 2017-09-05 Yao Qi <yao.qi@linaro.org>
6767
6768 * amd64-linux-tdep.c: Don't include amd64-XXX-linux and
6769 x32-XXX-linux.c. Include 64bit-XX.c and x32-XX.c.
6770 (amd64_linux_read_description): Create target descriptions.
6771 (_initialize_amd64_linux_tdep): Don't call initialize_tdesc_XXX
6772 functions. Add unit tests.
6773 * features/Makefile (FEATURE_XMLFILES): Append 64bit-XXX.xml and
6774 x32-core.xml.
6775 * features/i386/64bit-avx.c: Generated.
6776 * features/i386/64bit-avx512.c: Generated.
6777 * features/i386/64bit-core.c: Generated.
6778 * features/i386/64bit-linux.c: Generated.
6779 * features/i386/64bit-mpx.c: Generated.
6780 * features/i386/64bit-pkeys.c: Generated.
6781 * features/i386/64bit-segments.c: Generated.
6782 * features/i386/64bit-sse.c: Generated.
6783 * features/i386/x32-core.c: Generated.
6784 * target-descriptions.c (maint_print_c_tdesc_cmd): Print feature
6785 c files for amd64-linux and x32-linux.
6786
6787 2017-09-05 Yao Qi <yao.qi@linaro.org>
6788
6789 * amd64-linux-tdep.c (amd64_linux_read_description): New
6790 function.
6791 (amd64_linux_core_read_description): Call
6792 amd64_linux_read_description.
6793 (amd64_linux_init_abi): Likewise.
6794 (amd64_x32_linux_init_abi): Likewise.
6795 * amd64-linux-tdep.h (amd64_linux_read_description): Declare.
6796 * x86-linux-nat.c (x86_linux_read_description): Call
6797 amd64_linux_read_description.
6798
6799 2017-09-05 Yao Qi <yao.qi@linaro.org>
6800
6801 * amd64-linux-tdep.c (amd64_linux_core_read_description): Update
6802 comments.
6803
6804 2017-09-05 Yao Qi <yao.qi@linaro.org>
6805
6806 * features/Makefile (XMLTOC): Remove i386/i386-XX-linux.xml.
6807 * features/i386/i386-avx-avx512-linux.c: Remove.
6808 * features/i386/i386-avx-linux.c: Remove.
6809 * features/i386/i386-avx-mpx-avx512-pku-linux.c: Remove.
6810 * features/i386/i386-avx-mpx-linux.c: Remove.
6811 * features/i386/i386-linux.c: Remove.
6812 * features/i386/i386-mmx-linux.c: Remove.
6813 * features/i386/i386-mpx-linux.c: Remove.
6814
6815 2017-09-05 Yao Qi <yao.qi@linaro.org>
6816
6817 * Makefile.in (ALL_TARGET_OBS): Add i386.o.
6818 (SFILES): Add arch/i386.c.
6819 (HFILES_NO_SRCDIR): Add arch/i386.h.
6820 * arch/i386.c: New file.
6821 * arch/i386.h: New file.
6822 * arch/tdesc.h (allocate_target_description): Declare.
6823 (set_tdesc_architecture): Declare.
6824 (set_tdesc_osabi): Declare.
6825 * configure.tgt (i[34567]86-*-linux*): Add i386.o.
6826 * i386-linux-tdep.c: Don't include ../features/i386/32bit-XXX.c.
6827 include arch/i386.h.
6828 (i386_linux_read_description): Remove code and call
6829 i386_create_target_description.
6830 (set_tdesc_architecture): New function.
6831 (set_tdesc_osabi): New function.
6832 * target-descriptions.h (allocate_target_description): Remove.
6833
6834 2017-09-05 Yao Qi <yao.qi@linaro.org>
6835
6836 * arch/tdesc.h (tdesc_create_feature): Add an argument xml.
6837 * target-descriptions.c (tdesc_create_feature): Likewise, and
6838 adjust code.
6839 * features/i386/32bit-avx.c: Re-generated.
6840 * features/i386/32bit-avx512.c: Re-generated.
6841 * features/i386/32bit-core.c: Re-generated.
6842 * features/i386/32bit-linux.c: Re-generated.
6843 * features/i386/32bit-mpx.c: Re-generated.
6844 * features/i386/32bit-pkeys.c: Re-generated.
6845 * features/i386/32bit-sse.c: Re-generated.
6846
6847 2017-09-05 Yao Qi <yao.qi@linaro.org>
6848
6849 * regformats/regdef.h (struct reg): Override operator == and !=.
6850
6851 2017-09-05 Yao Qi <yao.qi@linaro.org>
6852
6853 * arch/tdesc.h: New file.
6854 * regformats/regdat.sh: Generate code using tdesc_create_reg.
6855 * target-descriptions.c: Update comments.
6856 * target-descriptions.h: Include "arch/tdesc.h". Remove the
6857 declarations.
6858 * features/i386/32bit-avx.c: Re-generated.
6859 * features/i386/32bit-avx512.c: Re-generated.
6860 * features/i386/32bit-core.c: Re-generated.
6861 * features/i386/32bit-linux.c: Re-generated.
6862 * features/i386/32bit-mpx.c: Re-generated.
6863 * features/i386/32bit-pkeys.c: Re-generated.
6864 * features/i386/32bit-sse.c: Re-generated.
6865
6866 2017-09-05 Yao Qi <yao.qi@linaro.org>
6867
6868 * regformats/regdat.sh: Update generated code.
6869
6870 2017-09-05 Yao Qi <yao.qi@linaro.org>
6871
6872 * regformats/regdat.sh: Adjust code order.
6873
6874 2017-09-05 Simon Marchi <simon.marchi@ericsson.com>
6875
6876 * expprint.c (dump_subexp_body_standard): Use constant format
6877 string in fprintf_filtered call.
6878
6879 2017-09-04 John Baldwin <jhb@FreeBSD.org>
6880
6881 * configure.nat: Add "x86-nat.o x86-dregs.o" for NetBSD/amd64 and
6882 NetBSD/i386.
6883 * x86-bsd-nat.c [!DBREG_DRX && __NetBSD__]: Define DBREG_DRX.
6884
6885 2017-09-04 John Baldwin <jhb@FreeBSD.org>
6886
6887 * bsd-kvm.o: Make <sys/user.h> conditional on HAVE_SYS_USER_H.
6888
6889 2017-09-04 John Baldwin <jhb@FreeBSD.org>
6890
6891 * bsd-kvm.o: Define _KMEMUSER.
6892 * configure.ac: Define _KMEMUSER when checking for "struct lwp".
6893 * configure: Regenerate.
6894
6895 2017-09-04 John Baldwin <jhb@FreeBSD.org>
6896
6897 * amd64-fbsd-nat.c: Add include of "x86-xstate.h".
6898 * i386-fbsd-nat.c: Likewise.
6899
6900 2017-09-04 John Baldwin <jhb@FreeBSD.org>
6901
6902 * unittests/array-view-selftests.c: Add include of <array>.
6903
6904 2017-09-04 John Baldwin <jhb@FreeBSD.org>
6905
6906 * spu-tdep.c (flush_ea_cache): Add missing argument to
6907 call_function_by_hand.
6908
6909 2017-09-04 Pedro Alves <palves@redhat.com>
6910
6911 * NEWS (Safer support for debugging with no debug info): New.
6912
6913 2017-09-04 Pedro Alves <palves@redhat.com>
6914
6915 * c-exp.y (function_method, function_method_void): Add current
6916 instance flags to TYPE_INSTANCE.
6917 * dwarf2read.c (check_modifier): New.
6918 (compute_delayed_physnames): Assert that only C++ adds delayed
6919 physnames. Mark fn_fields as const/volatile depending on
6920 physname.
6921 * eval.c (make_params): New type_instance_flags parameter. Use
6922 it as the new type's instance flags.
6923 (evaluate_subexp_standard) <TYPE_INSTANCE>: Extract the instance
6924 flags element and pass it to make_params.
6925 * expprint.c (print_subexp_standard) <TYPE_INSTANCE>: Handle
6926 instance flags element.
6927 (dump_subexp_body_standard) <TYPE_INSTANCE>: Likewise.
6928 * gdbtypes.h: Include "enum-flags.h".
6929 (type_instance_flags): New enum-flags type.
6930 (TYPE_CONST, TYPE_VOLATILE, TYPE_RESTRICT, TYPE_ATOMIC)
6931 (TYPE_CODE_SPACE, TYPE_DATA_SPACE): Return boolean.
6932 * parse.c (operator_length_standard) <TYPE_INSTANCE>: Adjust.
6933 (follow_type_instance_flags): New function.
6934 (operator_check_standard) <TYPE_INSTANCE>: Adjust.
6935 * parser-defs.h (follow_type_instance_flags): Declare.
6936 * valops.c (value_struct_elt_for_reference): const/volatile must
6937 match too.
6938
6939 2017-09-04 Pedro Alves <palves@redhat.com>
6940
6941 * cp-namespace.c (cp_search_static_and_baseclasses): Handle
6942 function/method scopes; lookup the nested name as a function local
6943 static variable.
6944
6945 2017-09-04 Pedro Alves <palves@redhat.com>
6946
6947 (%type <voidval>): Add function_method.
6948 * c-exp.y (exp): New production for calls with no arguments.
6949 (function_method, function_method_void_or_typelist): New
6950 productions.
6951 (exp): New production for "method()::static_var".
6952 * eval.c (evaluate_subexp_standard): Handle OP_FUNC_STATIC_VAR.
6953 * expprint.c (print_subexp_standard, dump_subexp_body_standard):
6954 Handle OP_FUNC_STATIC_VAR.
6955 * parse.c (operator_length_standard):
6956 Handle OP_FUNC_STATIC_VAR.
6957
6958 2017-09-04 Pedro Alves <palves@redhat.com>
6959
6960 * eval.c (evaluate_subexp_standard): Remove UNOP_MEMVAL_TLS
6961 handling.
6962 * expprint.c (print_subexp_standard, dump_subexp_body_standard):
6963 Ditto.
6964 * parse.c (operator_length_standard, operator_check_standard):
6965 Ditto.
6966 * std-operator.def (UNOP_MEMVAL_TLS): Delete.
6967
6968 2017-09-04 Pedro Alves <palves@redhat.com>
6969
6970 * ax-gdb.c: Include "typeprint.h".
6971 (gen_expr_for_cast): New function.
6972 (gen_expr) <OP_CAST, OP_CAST_TYPE>: Use it.
6973 <OP_VAR_VALUE, OP_MSYM_VAR_VALUE>: Error out if the variable's
6974 type is unknown.
6975 * dwarf2read.c (new_symbol_full): Fallback to int instead of
6976 nodebug_data_symbol.
6977 * eval.c: Include "typeprint.h".
6978 (evaluate_subexp_standard) <OP_VAR_VALUE, OP_VAR_MSYM_VALUE>:
6979 Error out if symbol has unknown type.
6980 <UNOP_CAST, UNOP_CAST_TYPE>: Common bits factored out to
6981 evaluate_subexp_for_cast.
6982 (evaluate_subexp_for_address, evaluate_subexp_for_sizeof): Handle
6983 OP_VAR_MSYM_VALUE.
6984 (evaluate_subexp_for_cast): New function.
6985 * gdbtypes.c (init_nodebug_var_type): New function.
6986 (objfile_type): Use it to initialize types of variables with no
6987 debug info.
6988 * typeprint.c (error_unknown_type): New.
6989 * typeprint.h (error_unknown_type): New declaration.
6990 * compile/compile-c-types.c (convert_type_basic): Handle
6991 TYPE_CODE_ERROR; warn and fallback to int for variables with
6992 unknown type.
6993
6994 2017-09-04 Pedro Alves <palves@redhat.com>
6995
6996 * eval.c (evaluate_var_value): New function, factored out from ...
6997 (evaluate_subexp_standard): ... here.
6998
6999 2017-09-04 Pedro Alves <palves@redhat.com>
7000
7001 * eval.c (evaluate_subexp_standard) <UNOP_COMPLEMENT, UNOP_ADDR>:
7002 Remove useless assignments to 'op'.
7003
7004 2017-09-04 Pedro Alves <palves@redhat.com>
7005
7006 * eval.c (eval_skip_value): New function.
7007 (evaluate_subexp_standard): Use it.
7008
7009 2017-09-04 Pedro Alves <palves@redhat.com>
7010
7011 * eval.c (evaluate_subexp_standard): <OP_FUNCALL>: Extract
7012 function name from symbol/minsym and pass it to
7013 error_call_unknown_return_type.
7014
7015 2017-09-04 Pedro Alves <palves@redhat.com>
7016
7017 * ada-lang.c (resolve_subexp): Handle OP_VAR_MSYM_VALUE.
7018 * ax-gdb.c (gen_msym_var_ref): New function.
7019 (gen_expr): Handle OP_VAR_MSYM_VALUE.
7020 * eval.c (evaluate_var_msym_value): New function.
7021 * eval.c (evaluate_subexp_standard): Handle OP_VAR_MSYM_VALUE.
7022 <OP_FUNCALL>: Extract function name from symbol/minsym and pass it
7023 to call_function_by_hand.
7024 * expprint.c (print_subexp_standard, dump_subexp_body_standard):
7025 Handle OP_VAR_MSYM_VALUE.
7026 (union exp_element) <msymbol>: New field.
7027 * minsyms.h (struct type): Forward declare.
7028 (find_minsym_type_and_address): Declare.
7029 * parse.c (write_exp_elt_msym): New function.
7030 (write_exp_msymbol): Delete, refactored as ...
7031 (find_minsym_type_and_address): ... this new function.
7032 (write_exp_msymbol): Reimplement using OP_VAR_MSYM_VALUE.
7033 (operator_length_standard, operator_check_standard): Handle
7034 OP_VAR_MSYM_VALUE.
7035 * std-operator.def (OP_VAR_MSYM_VALUE): New.
7036
7037 2017-09-04 Pedro Alves <palves@redhat.com>
7038
7039 * ada-lang.c (ada_evaluate_subexp) <TYPE_CODE_FUNC>: Don't handle
7040 TYPE_GNU_IFUNC specially here. Throw error if return type is
7041 unknown.
7042 * ada-typeprint.c (print_func_type): Handle functions with unknown
7043 return type.
7044 * c-typeprint.c (c_type_print_base): Handle functions and methods
7045 with unknown return type.
7046 * compile/compile-c-symbols.c (convert_symbol_bmsym)
7047 <mst_text_gnu_ifunc>: Use nodebug_text_gnu_ifunc_symbol.
7048 * compile/compile-c-types.c: Include "objfiles.h".
7049 (convert_func): For functions with unknown return type, warn and
7050 default to int.
7051 * compile/compile-object-run.c (compile_object_run): Adjust call
7052 to call_function_by_hand_dummy.
7053 * elfread.c (elf_gnu_ifunc_resolve_addr): Adjust call to
7054 call_function_by_hand.
7055 * eval.c (evaluate_subexp_standard): Adjust calls to
7056 call_function_by_hand. Handle functions and methods with unknown
7057 return type. Pass expect_type to call_function_by_hand.
7058 * f-typeprint.c (f_type_print_base): Handle functions with unknown
7059 return type.
7060 * gcore.c (call_target_sbrk): Adjust call to
7061 call_function_by_hand.
7062 * gdbtypes.c (objfile_type): Leave nodebug text symbol with NULL
7063 return type instead of int. Make nodebug_text_gnu_ifunc_symbol be
7064 an integer address type instead of nodebug.
7065 * guile/scm-value.c (gdbscm_value_call): Adjust call to
7066 call_function_by_hand.
7067 * infcall.c (error_call_unknown_return_type): New function.
7068 (call_function_by_hand): New "default_return_type" parameter.
7069 Pass it down.
7070 (call_function_by_hand_dummy): New "default_return_type"
7071 parameter. Use it instead of defaulting to int. If there's no
7072 default and the return type is unknown, throw an error. If
7073 there's a default return type, and the called function has no
7074 debug info, then assume the function is prototyped.
7075 * infcall.h (call_function_by_hand, call_function_by_hand_dummy):
7076 New "default_return_type" parameter.
7077 (error_call_unknown_return_type): New declaration.
7078 * linux-fork.c (call_lseek): Cast return type of lseek.
7079 (inferior_call_waitpid, checkpoint_command): Adjust calls to
7080 call_function_by_hand.
7081 * linux-tdep.c (linux_infcall_mmap, linux_infcall_munmap): Adjust
7082 calls to call_function_by_hand.
7083 * m2-typeprint.c (m2_procedure): Handle functions with unknown
7084 return type.
7085 * objc-lang.c (lookup_objc_class, lookup_child_selector)
7086 (value_nsstring, print_object_command): Adjust calls to
7087 call_function_by_hand.
7088 * p-typeprint.c (pascal_type_print_varspec_prefix): Handle
7089 functions with unknown return type.
7090 (pascal_type_print_func_varspec_suffix): New function.
7091 (pascal_type_print_varspec_suffix) <TYPE_CODE_FUNC,
7092 TYPE_CODE_METHOD>: Use it.
7093 * python/py-value.c (valpy_call): Adjust call to
7094 call_function_by_hand.
7095 * rust-lang.c (rust_evaluate_funcall): Adjust call to
7096 call_function_by_hand.
7097 * valarith.c (value_x_binop, value_x_unop): Adjust calls to
7098 call_function_by_hand.
7099 * valops.c (value_allocate_space_in_inferior): Adjust call to
7100 call_function_by_hand.
7101 * typeprint.c (type_print_unknown_return_type): New function.
7102 * typeprint.h (type_print_unknown_return_type): New declaration.
7103
7104 2017-09-04 Pedro Alves <palves@redhat.com>
7105
7106 * gdbtypes.c (lookup_function_type_with_arguments): Mark function
7107 types with more than one parameter as prototyped.
7108
7109 2017-09-04 Pedro Alves <palves@redhat.com>
7110
7111 * cli/cli-cmds.c (print_disassembly, disassemble_current_function)
7112 (disassemble_command): Use gdb_disassembly_flags instead of bare
7113 int.
7114 * disasm.c (gdb_pretty_print_disassembler::pretty_print_insn)
7115 (dump_insns, do_mixed_source_and_assembly_deprecated)
7116 (do_mixed_source_and_assembly, do_assembly_only, gdb_disassembly):
7117 Use gdb_disassembly_flags instead of bare int.
7118 * disasm.h (DISASSEMBLY_SOURCE_DEPRECATED, DISASSEMBLY_RAW_INSN)
7119 (DISASSEMBLY_OMIT_FNAME, DISASSEMBLY_FILENAME)
7120 (DISASSEMBLY_OMIT_PC, DISASSEMBLY_SOURCE)
7121 (DISASSEMBLY_SPECULATIVE): No longer macros. Instead they're...
7122 (enum gdb_disassembly_flag): ... values of this new enumeration.
7123 (gdb_disassembly_flags): Define.
7124 (gdb_disassembly)
7125 (gdb_pretty_print_disassembler::pretty_print_insn): Use it.
7126 * mi/mi-cmd-disas.c (mi_cmd_disassemble): Use
7127 gdb_disassembly_flags instead of bare int.
7128 * record-btrace.c (btrace_insn_history)
7129 (record_btrace_insn_history, record_btrace_insn_history_range)
7130 (record_btrace_insn_history_from): Use gdb_disassembly_flags
7131 instead of bare int.
7132 * record.c (get_insn_history_modifiers, cmd_record_insn_history):
7133 Use gdb_disassembly_flags instead of bare int.
7134 * target-debug.h (target_debug_print_gdb_disassembly_flags):
7135 Define.
7136 * target-delegates.c: Regenerate.
7137 * target.c (target_insn_history, target_insn_history_from)
7138 (target_insn_history_range): Use gdb_disassembly_flags instead of
7139 bare int.
7140 * target.h: Include "disasm.h".
7141 (struct target_ops) <to_insn_history, to_insn_history_from,
7142 to_insn_history_range>: Use gdb_disassembly_flags instead of bare
7143 int.
7144 (target_insn_history, target_insn_history_from)
7145 (target_insn_history_range): Use gdb_disassembly_flags instead of
7146 bare int.
7147
7148 2017-09-04 Simon Marchi <simon.marchi@ericsson.com>
7149
7150 * cli/cli-script.c (build_command_line): For if/while commands,
7151 check whether args is empty.
7152
7153 2017-09-04 Simon Marchi <simon.marchi@ericsson.com>
7154
7155 * cli/cli-script.h (enum misc_command_type): Move from defs.h.
7156 (enum command_control_type): Likewise.
7157 (struct command_line): Likewise.
7158 (free_command_lines): Likewise.
7159 (struct command_lines_deleter): Likewise.
7160 (command_line_up): Likewise.
7161 (read_command_lines): Likewise.
7162 (read_command_lines_1): Likewise.
7163 * defs.h (enum misc_command_type): Move to cli/cli-script.h.
7164 (enum command_control_type): Likewise.
7165 (struct command_line): Likewise.
7166 (free_command_lines): Likewise.
7167 (struct command_lines_deleter): Likewise.
7168 (command_line_up): Likewise.
7169 (read_command_lines): Likewise.
7170 (read_command_lines_1): Likewise.
7171 * breakpoint.h: Include cli/cli-script.h.
7172 * extension-priv.h: Likewise.
7173 * gdbcmd.h: Likewise.
7174
7175 2017-09-04 Pedro Alves <palves@redhat.com>
7176
7177 * ada-lang.c (is_known_support_routine): Move sal declaration to
7178 where it is initialized.
7179 * breakpoint.c (create_internal_breakpoint, init_catchpoint)
7180 (parse_breakpoint_sals, decode_static_tracepoint_spec)
7181 (clear_command, update_static_tracepoint): Remove init_sal
7182 references. Move declarations closer to initializations.
7183 * cli/cli-cmds.c (list_command): Move sal declarations closer to
7184 initializations.
7185 * elfread.c (elf_gnu_ifunc_resolver_stop): Remove init_sal
7186 references. Move sal declarations closer to initializations.
7187 * frame.c (find_frame_sal): Return a symtab_and_line via function
7188 return instead of output parameter. Remove init_sal references.
7189 * frame.h (find_frame_sal): Return a symtab_and_line via function
7190 return instead of output parameter.
7191 * guile/scm-frame.c (gdbscm_frame_sal): Adjust.
7192 * guile/scm-symtab.c (stscm_make_sal_smob): Use in-place new
7193 instead of memset.
7194 (gdbscm_find_pc_line): Remove init_sal reference.
7195 * infcall.c (call_function_by_hand_dummy): Remove init_sal
7196 references. Move declarations closer to initializations.
7197 * infcmd.c (set_step_frame): Update. Move declarations closer to
7198 initializations.
7199 (finish_backward): Remove init_sal references. Move declarations
7200 closer to initializations.
7201 * infrun.c (process_event_stop_test, handle_step_into_function)
7202 (insert_hp_step_resume_breakpoint_at_frame)
7203 (insert_step_resume_breakpoint_at_caller): Likewise.
7204 * linespec.c (create_sals_line_offset, decode_digits_ordinary)
7205 (symbol_to_sal): Likewise.
7206 * probe.c (parse_probes_in_pspace): Remove init_sal reference.
7207 * python/py-frame.c (frapy_find_sal): Move sal declaration closer
7208 to its initialization.
7209 * reverse.c (save_bookmark_command): Use new/delete. Remove
7210 init_sal references. Move declarations closer to initializations.
7211 * source.c (get_current_source_symtab_and_line): Remove brace
7212 initialization.
7213 (set_current_source_symtab_and_line): Now takes the sal by const
7214 reference. Remove brace initialization.
7215 (line_info): Remove init_sal reference.
7216 * source.h (set_current_source_symtab_and_line): Now takes a
7217 symtab_and_line via const reference.
7218 * stack.c (set_current_sal_from_frame): Adjust.
7219 (print_frame_info): Adjust.
7220 (get_last_displayed_sal): Return the sal via function return
7221 instead of via output parameter. Simplify.
7222 (frame_info): Adjust.
7223 * stack.h (get_last_displayed_sal): Return the sal via function
7224 return instead of via output parameter.
7225 * symtab.c (init_sal): Delete.
7226 (find_pc_sect_line): Remove init_sal references. Move
7227 declarations closer to initializations.
7228 (find_function_start_sal): Remove init_sal references. Move
7229 declarations closer to initializations.
7230 * symtab.h (struct symtab_and_line): In-class initialize all
7231 fields.
7232 * tracepoint.c (set_traceframe_context)
7233 (print_one_static_tracepoint_marker): Remove init_sal references.
7234 Move declarations closer to initializations.
7235 * tui/tui-disasm.c (tui_show_disassem_and_update_source): Adjust.
7236 * tui/tui-stack.c (tui_show_frame_info): Adjust. Move
7237 declarations closer to initializations.
7238 * tui/tui-winsource.c (tui_update_source_window_as_is): Remove
7239 init_sal references. Adjust.
7240
7241 2017-09-04 Pedro Alves <palves@redhat.com>
7242
7243 * ax-gdb.c (agent_command_1): Use range-for.
7244 * break-catch-throw.c (re_set_exception_catchpoint): Update.
7245 * breakpoint.c: Include "common/array-view.h".
7246 (init_breakpoint_sal, create_breakpoint_sal): Change sals
7247 parameter from struct symtabs_and_lines to
7248 array_view<symtab_and_line>. Adjust. Use range-for. Update.
7249 (breakpoint_sals_to_pc): Change sals parameter from struct
7250 symtabs_and_lines to std::vector reference.
7251 (check_fast_tracepoint_sals): Change sals parameter from struct
7252 symtabs_and_lines to std::array_view. Use range-for.
7253 (decode_static_tracepoint_spec): Return a std::vector instead of
7254 symtabs_and_lines. Update.
7255 (create_breakpoint): Update.
7256 (break_range_command, until_break_command, clear_command): Update.
7257 (base_breakpoint_decode_location, bkpt_decode_location)
7258 (bkpt_probe_create_sals_from_location)
7259 (bkpt_probe_decode_location, tracepoint_decode_location)
7260 (tracepoint_probe_decode_location)
7261 (strace_marker_create_sals_from_location): Return a std::vector
7262 instead of symtabs_and_lines.
7263 (strace_marker_create_breakpoints_sal): Update.
7264 (strace_marker_decode_location): Return a std::vector instead of
7265 symtabs_and_lines. Update.
7266 (update_breakpoint_locations): Change struct symtabs_and_lines
7267 parameters to gdb::array_view. Adjust.
7268 (location_to_sals): Return a std::vector instead of
7269 symtabs_and_lines. Update.
7270 (breakpoint_re_set_default): Use std::vector instead of struct
7271 symtabs_and_lines.
7272 (decode_location_default): Return a std::vector instead of
7273 symtabs_and_lines. Update.
7274 * breakpoint.h: Include "common/array-view.h".
7275 (struct breakpoint_ops) <decode_location>: Now returns a
7276 std::vector instead of returning a symtabs_and_lines via output
7277 parameter.
7278 (update_breakpoint_locations): Change sals parameters to use
7279 gdb::array_view.
7280 * cli/cli-cmds.c (edit_command, list_command): Update to use
7281 std::vector and gdb::array_view.
7282 (ambiguous_line_spec): Adjust to use gdb::array_view and
7283 range-for.
7284 (compare_symtabs): Rename to ...
7285 (cmp_symtabs): ... this. Change parameters to symtab_and_line
7286 const reference and adjust.
7287 (filter_sals): Rewrite using std::vector and standard algorithms.
7288 * elfread.c (elf_gnu_ifunc_resolver_return_stop): Simplify.
7289 (jump_command): Update to use std::vector.
7290 * linespec.c (struct linespec_state) <canonical_names>: Update
7291 comment.
7292 (add_sal_to_sals_basic): Delete.
7293 (add_sal_to_sals, filter_results, convert_results_to_lsals)
7294 (decode_line_2, create_sals_line_offset)
7295 (convert_address_location_to_sals, convert_linespec_to_sals)
7296 (convert_explicit_location_to_sals, parse_linespec)
7297 (event_location_to_sals, decode_line_full, decode_line_1)
7298 (decode_line_with_current_source)
7299 (decode_line_with_last_displayed, decode_objc)
7300 (decode_digits_list_mode, decode_digits_ordinary, minsym_found)
7301 (linespec_result::~linespec_result): Adjust to use std::vector
7302 instead of symtabs_and_lines.
7303 * linespec.h (linespec_sals::sals): Now a std::vector.
7304 (struct linespec_result): Use std::vector, bool, and in-class
7305 initialization.
7306 (decode_line_1, decode_line_with_current_source)
7307 (decode_line_with_last_displayed): Return std::vector.
7308 * macrocmd.c (info_macros_command): Use std::vector.
7309 * mi/mi-main.c (mi_cmd_trace_find): Use std::vector.
7310 * probe.c (parse_probes_in_pspace, parse_probes): Adjust to use
7311 std::vector.
7312 * probe.h (parse_probes): Return a std::vector.
7313 * python/python.c (gdbpy_decode_line): Use std::vector and
7314 gdb::array_view.
7315 * source.c (select_source_symtab, line_info): Use std::vector.
7316 * stack.c (func_command): Use std::vector.
7317 * symtab.h (struct symtabs_and_lines): Delete.
7318 * tracepoint.c (tfind_line_command, scope_info): Use std::vector.
7319
7320 2017-09-04 Pedro Alves <palves@redhat.com>
7321
7322 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
7323 unittests/array-view-selftests.c.
7324 (SUBDIR_UNITTESTS_OBS): Add array-view-selftests.o.
7325 * common/array-view.h: New file.
7326 * unittests/array-view-selftests.c: New file.
7327
7328 2017-09-04 Pedro Alves <palves@redhat.com>
7329
7330 * cli/cli-cmds.c (edit_command): Pass message to
7331 ambiguous_line_spec.
7332 (list_command): Pass message to ambiguous_line_spec. Say
7333 "first"/"last" instead of "start" and "end" to be consistent with
7334 the manual.
7335 (ambiguous_line_spec): Add 'format' and vararg parameters. Use
7336 them to print formatted message.
7337
7338 2017-09-04 Pedro Alves <palves@redhat.com>
7339
7340 * btrace.c (ftrace_add_pt): Pass btrace_insn to
7341 ftrace_update_insns by reference instead of pointer.
7342
7343 2017-09-04 Yao Qi <yao.qi@linaro.org>
7344
7345 * i386-go32-tdep.c: Include x86-xstate.h.
7346 (i386_go32_init_abi): Call i386_target_description.
7347 * i386-tdep.c (i386_target_description): Return tdesc_i386_mmx
7348 if xcr0 is X86_XSTATE_X87_MASK.
7349 * i386-tdep.h (tdesc_i386): Remove the declaration.
7350 (tdesc_i386_mmx): Likewise.
7351
7352 2017-09-04 Yao Qi <yao.qi@linaro.org>
7353
7354 * i386-fbsd-tdep.c (i386fbsd_core_read_xcr0): Return
7355 X86_XSTATE_SSE_MASK instead of 0.
7356
7357 2017-09-04 Yao Qi <yao.qi@linaro.org>
7358
7359 * amd64-fbsd-nat.c (amd64fbsd_read_description): Call
7360 i386_target_description.
7361 * i386-fbsd-nat.c (i386fbsd_read_description): Call
7362 i386_target_description.
7363 * i386-tdep.c (i386_gdbarch_init): Likewise.
7364
7365 2017-09-04 Yao Qi <yao.qi@linaro.org>
7366
7367 * amd64-darwin-tdep.c: Include "x86-xstate.h".
7368 (x86_darwin_init_abi_64): Call amd64_target_description.
7369 * amd64-dicos-tdep.c: Likewise.
7370 * amd64-fbsd-nat.c: Likewise.
7371 * amd64-fbsd-tdep.c: Likewise.
7372 * amd64-nbsd-tdep.c: Likewise.
7373 * amd64-obsd-tdep.c: Likewise.
7374 * amd64-sol2-tdep.c: Likewise.
7375 * amd64-windows-tdep.c: Likewise.
7376 * amd64-tdep.h (tdesc_amd64): Remove the declaration.
7377
7378 2017-09-04 Simon Marchi <simon.marchi@ericsson.com>
7379
7380 * btrace.h (btrace_insn_s, DEF_VEC_O (btrace_insn_s)): Remove.
7381 (btrace_function) <insn>: Change type to use std::vector.
7382 * btrace.c (ftrace_debug, ftrace_call_num_insn,
7383 ftrace_find_call, ftrace_new_gap, ftrace_update_function,
7384 ftrace_update_insns, ftrace_compute_global_level_offset,
7385 btrace_stitch_bts, btrace_clear, btrace_insn_get,
7386 btrace_insn_end, btrace_insn_next, btrace_insn_prev): Adjust to
7387 change to std::vector.
7388 (ftrace_update_insns): Adjust to change to std::vector, change
7389 type of INSN parameter.
7390 (btrace_compute_ftrace_bts): Adjust call to ftrace_update_insns.
7391 * record-btrace.c (btrace_call_history_insn_range,
7392 btrace_compute_src_line_range,
7393 record_btrace_frame_prev_register): Adjust to change to
7394 std::vector.
7395 * python/py-record-btrace.c (recpy_bt_func_instructions): Adjust
7396 to change to std::vector.
7397
7398 2017-09-03 Tom Tromey <tom@tromey.com>
7399
7400 * corefile.c (reopen_exec_file): Use std::string.
7401
7402 2017-09-03 Tom Tromey <tom@tromey.com>
7403
7404 * compile/compile.c (compile_register_name_mangled): Return
7405 std::string.
7406 * compile/compile-loc2c.c (pushf_register_address): Update.
7407 (pushf_register): Update.
7408 * compile/compile-c-types.c (convert_array): Update.
7409 * compile/compile-c-symbols.c (generate_vla_size): Update.
7410 (error_symbol_once): Use a gdb::unique_xmalloc_ptr.
7411 (symbol_substitution_name): Return a gdb::unique_xmalloc_ptr.
7412 (convert_one_symbol): Update.
7413 (generate_c_for_for_one_variable): Update.
7414 * compile/compile-c-support.c (c_get_range_decl_name): Return a
7415 std::string.
7416 (generate_register_struct): Update.
7417 * compile/compile-internal.h (c_get_range_decl_name): Return a
7418 std::string.
7419 (compile_register_name_mangled): Return std::string.
7420
7421 2017-09-03 Tom Tromey <tom@tromey.com>
7422
7423 * utils.c (perror_string): Return a std::string.
7424 (throw_perror_with_name, perror_warning_with_name): Update.
7425
7426 2017-09-03 Tom Tromey <tom@tromey.com>
7427
7428 * demangle.c (demangle_command): Use std::string,
7429 unique_xmalloc_ptr.
7430
7431 2017-09-03 Tom Tromey <tom@tromey.com>
7432
7433 * cli/cli-setshow.c (do_set_command): Use std::string.
7434
7435 2017-09-03 Tom Tromey <tom@tromey.com>
7436
7437 * cli/cli-cmds.c (cd_command): Use gdb::unique_xmalloc_ptr.
7438
7439 2017-09-03 Tom Tromey <tom@tromey.com>
7440
7441 * mi/mi-interp.c (mi_cmd_interpreter_exec): Use std::string.
7442
7443 2017-09-03 Tom Tromey <tom@tromey.com>
7444
7445 * mi/mi-cmd-env.c (env_execute_cli_command): Use
7446 gdb::unique_xmalloc_ptr.
7447
7448 2017-09-03 Tom Tromey <tom@tromey.com>
7449
7450 * thread.c (print_thread_info_1): Use string_printf.
7451 (thread_apply_command, thread_apply_all_command): Use
7452 std::string.
7453
7454 2017-09-03 Tom Tromey <tom@tromey.com>
7455
7456 * valprint.c (val_print_string): Update.
7457 * gdbcore.h (memory_error_message): Return std::string.
7458 * corefile.c (memory_error_message): Return std::string.
7459 (memory_error): Update.
7460 * breakpoint.c (insert_bp_location): Update.
7461
7462 2017-09-03 Simon Marchi <simon.marchi@ericsson.com>
7463
7464 * target/waitstatus.h (target_waitstatus_to_string): Change
7465 return type to std::string.
7466 * target/waitstatus.c (target_waitstatus_to_string): Return
7467 std::string.
7468 * target.h (target_waitstatus_to_string): Remove declaration.
7469 * infrun.c (resume, clear_proceed_status_thread,
7470 print_target_wait_results, do_target_wait, save_waitstatus,
7471 stop_all_threads): Adjust.
7472 * record-btrace.c (record_btrace_wait): Adjust.
7473 * target-debug.h
7474 (target_debug_print_struct_target_waitstatus_p): Adjust.
7475
7476 2017-09-01 Jan Kratochvil <jan.kratochvil@redhat.com>
7477
7478 PR gdb/22046
7479 * nat/linux-procfs.c (parse_proc_status_state): Fix PROC_STATE_STOPPED
7480 detection.
7481
7482 2017-08-31 Sergio Durigan Junior <sergiodj@redhat.com>
7483
7484 * NEWS (Changes since GDB 8.0): Add entry mentioning new support
7485 for setting/unsetting environment variables on the remote target.
7486 (New remote packets): Add entries for QEnvironmentHexEncoded,
7487 QEnvironmentUnset and QEnvironmentReset.
7488 * common/environ.c (gdb_environ::operator=): Extend method to
7489 handle m_user_set_env_list and m_user_unset_env_list.
7490 (gdb_environ::clear): Likewise.
7491 (match_var_in_string): Change type of first parameter from 'char
7492 *' to 'const char *'.
7493 (gdb_environ::set): Extend method to handle
7494 m_user_set_env_list and m_user_unset_env_list.
7495 (gdb_environ::unset): Likewise.
7496 (gdb_environ::clear_user_set_env): New method.
7497 (gdb_environ::user_set_envp): Likewise.
7498 (gdb_environ::user_unset_envp): Likewise.
7499 * common/environ.h (gdb_environ): Handle m_user_set_env_list and
7500 m_user_unset_env_list on move constructor/assignment.
7501 (unset): Add new default parameter 'update_unset_list = true'.
7502 (clear_user_set_env): New method.
7503 (user_set_envp): Likewise.
7504 (user_unset_envp): Likewise.
7505 (m_user_set_env_list): New std::set.
7506 (m_user_unset_env_list): Likewise.
7507 * common/rsp-low.c (hex2str): New function.
7508 (bin2hex): New overload for bin2hex function.
7509 * common/rsp-low.c (hex2str): New prototype.
7510 (str2hex): New overload prototype.
7511 * remote.c: Include "environ.h". Add QEnvironmentHexEncoded,
7512 QEnvironmentUnset and QEnvironmentReset.
7513 (remote_protocol_features): Add QEnvironmentHexEncoded,
7514 QEnvironmentUnset and QEnvironmentReset packets.
7515 (send_environment_packet): New function.
7516 (extended_remote_environment_support): Likewise.
7517 (extended_remote_create_inferior): Call
7518 extended_remote_environment_support.
7519 (_initialize_remote): Add QEnvironmentHexEncoded,
7520 QEnvironmentUnset and QEnvironmentReset packet configs.
7521 * unittests/environ-selftests.c (gdb_selftest_env_var):
7522 New variable.
7523 (test_vector_initialization): New function.
7524 (test_init_from_host_environ): Likewise.
7525 (test_reinit_from_host_environ): Likewise.
7526 (test_set_A_unset_B_unset_A_cannot_find_A_can_find_B):
7527 Likewise.
7528 (test_unset_set_empty_vector): Likewise.
7529 (test_vector_clear): Likewise.
7530 (test_std_move): Likewise.
7531 (test_move_constructor):
7532 (test_self_move): Likewise.
7533 (test_set_unset_reset): Likewise.
7534 (run_tests): Rewrite in terms of the functions above.
7535
7536 2017-08-31 Weimin Pan <weimin.pan@oracle.com>
7537
7538 * sparc64-tdep.c (adi_stat_t): Fix comment formatting.
7539 (adi_available): Use a temp variable of type CORE_ADDR as argument
7540 3 when calling target_auxv_search.
7541 (adi_normalize_address): Use masks and xor operators to calculate
7542 normalized address.
7543 (adi_read_versions, adi_write_versions, adi_print_versions)
7544 (do_examine, do_assign): Use paddress.
7545
7546 2017-08-29 John Baldwin <jhb@FreeBSD.org>
7547
7548 * mips-fbsd-nat.c (getfpregs_supplies): Return true for FIR.
7549 * mips-fbsd-tdep.c (mips_fbsd_supply_fpregs): Split supply of FSR
7550 out of loop and add supply of FIR.
7551 (mips_fbsd_collect_fpregs): Split collect of FSR out of loop and
7552 add collect of FIR.
7553
7554 2017-08-28 Simon Marchi <simon.marchi@ericsson.com>
7555
7556 PR gdb/21827
7557 * cli/cli-script.c (define_command): Don't convert command name
7558 to lower case.
7559
7560 2017-08-25 Joel Brobecker <brobecker@adacore.com>
7561
7562 * ada-lang.c (ada_lookup_struct_elt_type): Remove parameter "dispp".
7563 Update all callers accordingly. Remove all code blocks handling
7564 the case where DISPP is not NULL.
7565
7566 2017-08-24 Jan Kratochvil <jan.kratochvil@redhat.com>
7567
7568 PR symtab/22003
7569 * dwarf2read.c (dwarf2_const_value_attr, dump_die_shallow)
7570 (dwarf2_get_attr_constant_value, dwarf2_fetch_constant_bytes)
7571 (skip_form_bytes, attr_form_is_constant): Handle DW_FORM_implicit_const.
7572
7573 2017-08-24 Jan Kratochvil <jan.kratochvil@redhat.com>
7574
7575 * dwarf2read.c (build_type_psymtabs_reader): New prototype.
7576 (process_psymtab_comp_unit): Accept IS_DEBUG_TYPES.
7577 (read_comp_units_from_section): New parameter abbrev_section, use
7578 read_and_check_comp_unit_head, allocate signatured_type if needed.
7579 (create_all_comp_units): Update read_comp_units_from_section caller.
7580
7581 2017-08-23 Pedro Alves <palves@redhat.com>
7582
7583 PR remote/21852
7584 * remote.c (add_current_inferior_and_thread): Set inferior_ptid
7585 to null_ptid and switch to thread without reading the registers
7586 after adding the inferior.
7587
7588 2017-08-23 Jan Kratochvil <jan.kratochvil@redhat.com>
7589
7590 * NEWS (Changes since GDB 8.0): Add set compile-gcc and show
7591 compile-gcc.
7592 * compile/compile.c (compile_gcc, show_compile_gcc): New.
7593 (compile_to_object): Implement compile_gcc.
7594 (_initialize_compile): Install "set compile-gcc". Initialize
7595 compile_gcc.
7596
7597 2017-08-23 Jan Kratochvil <jan.kratochvil@redhat.com>
7598
7599 * compile/compile.c (compile_to_object): Conditionally call
7600 set_verbose. Conditionally call compile or compile_v0.
7601
7602 2017-08-07 Weimin Pan <weimin.pan@oracle.com>
7603
7604 * sparc64-tdep.h: (adi_normalize_address): New export.
7605 * sparc-nat.h: (open_adi_tag_fd): New export.
7606 * sparc64-linux-nat.c: (open_adi_tag_fd): New function.
7607 * sparc64-linux-tdep.c:
7608 (SEGV_ACCADI, SEGV_ADIDERR, SEGV_ADIPERR) New defines.
7609 (sparc64_linux_handle_segmentation_fault): New function.
7610 (sparc64_linux_init_abi): Register
7611 sparc64_linux_handle_segmentation_fault
7612 * sparc64-tdep.c: Include cli-utils.h,gdbcmd.h,auxv.h.
7613 (sparc64_addr_bits_remove): New function.
7614 (sparc64_init_abi): Register sparc64_addr_bits_remove.
7615 (MAX_PROC_NAME_SIZE): New macro.
7616 (AT_ADI_BLKSZ, AT_ADI_NBITS, AT_ADI_UEONADI) New defines.
7617 (sparc64adilist): New variable.
7618 (adi_proc_list): New variable.
7619 (find_adi_info): New function.
7620 (add_adi_info): New function.
7621 (get_adi_info_proc): New function.
7622 (get_adi_info): New function.
7623 (info_adi_command): New function.
7624 (read_maps_entry): New function.
7625 (adi_available): New function.
7626 (adi_normalize_address): New function.
7627 (adi_align_address): New function.
7628 (adi_convert_byte_count): New function.
7629 (adi_tag_fd): New function.
7630 (adi_is_addr_mapped): New function.
7631 (adi_read_versions): New function.
7632 (adi_write_versions): New function.
7633 (adi_print_versions): New function.
7634 (do_examine): New function.
7635 (do_assign): New function.
7636 (adi_examine_command): New function.
7637 (adi_assign_command): New function.
7638 (_initialize_sparc64_adi_tdep): New function.
7639
7640 2017-08-22 Simon Marchi <simon.marchi@ericsson.com>
7641
7642 * breakpoint.c (breakpoints_info): Rename to ...
7643 (info_breakpoints_command): ... this.
7644 (watchpoints_info): Rename to ...
7645 (info_watchpoints_command): ... this.
7646 (tracepoints_info): Rename to ...
7647 (info_tracepoints_command): ... this.
7648 (_initialize_breakpoint): Adjust.
7649 * dcache.c (dcache_info): Rename to ...
7650 (info_display_command): ... this.
7651 (_initialize_dcache): Adjust.
7652 * frame.h (args_info): Rename to ...
7653 (info_args_command): ... this.
7654 (locals_info): Rename to ...
7655 (info_locals_command): ... this.
7656 * infcmd.c (nofp_registers_info): Rename to ...
7657 (info_registers_command): ... this.
7658 (float_info): Rename to ...
7659 (info_float_command): ... this.
7660 (program_info): Rename to ...
7661 (info_program_command): ... this.
7662 (all_registers_info): Rename to ...
7663 (info_all_registers_command): ... this.
7664 (vector_info): Rename to ...
7665 (info_vector_command): ... this.
7666 (float_info): Rename to ...
7667 (info_float_command): ... this.
7668 (_initialize_infcmd): Adjust.
7669 * inferior.h (term_info): Rename to ...
7670 (info_terminal_command): ... this.
7671 * inflow.c (term_info): Rename to ...
7672 (info_terminal_command): ... this.
7673 (_initialize_inflow): Adjust.
7674 * infrun.c (signals_info): Rename to ...
7675 (info_signals_command): ... this.
7676 (_initialize_infrun): Adjust.
7677 * objc-lang.c (classes_info): Rename to ...
7678 (info_classes_command): ... this.
7679 (selectors_info): Rename to ...
7680 (info_selectors_command): ... this.
7681 (_initialize_objc_language): Adjust.
7682 * printcmd.c (sym_info): Rename to ...
7683 (info_symbol_command): ... this.
7684 (address_info): Rename to ...
7685 (info_address_command): ... this.
7686 (display_info): Rename to ...
7687 (info_display_command): ... this.
7688 (_initialize_printcmd): Adjust.
7689 * reverse.c (bookmarks_info): Rename to ...
7690 (info_breakpoints_command): ... this.
7691 (_initialize_reverse): Adjust.
7692 * ser-go32.c (dos_info): Rename to ...
7693 (info_serial_command): ... this.
7694 (_initialize_ser_dos): Adjust.
7695 * skip.c (skip_info): Rename to ...
7696 (info_skip_command): ... this.
7697 (_initialize_step_skip): Adjust.
7698 * source.c (line_info): Rename to ...
7699 (info_line_command): ... this.
7700 (source_info): Rename to ...
7701 (info_source_command)
7702 * stack.c (frame_info): Rename to ...
7703 (info_frame_command): ... this.
7704 (locals_info): Rename to ...
7705 (info_locals_command): ... this.
7706 (args_info): Rename to ...
7707 (info_args_command): ... this.
7708 (_initialize_stack): Adjust.
7709 * symtab.c (sources_info): Rename to ...
7710 (info_sources_command): ... this.
7711 (variables_info): Rename to ...
7712 (info_variables_command): ... this.
7713 (functions_info): Rename to ...
7714 (info_functions_command): ... this.
7715 (types_info): Rename to ...
7716 (info_types_command): ... this.
7717 (_initialize_symtab): Adjust.
7718 * target.c (target_info): Rename to ...
7719 (info_target_command): ... this.
7720 (initialize_targets): Adjust.
7721 * tracepoint.c (tvariables_info): Rename to ...
7722 (info_tvariables_command): ... this.
7723 (scope_info): Rename to ...
7724 (info_scope_command): ... this.
7725 (trace_dump_actions): Adjust.
7726 (_initialize_tracepoint): Adjust.
7727
7728 2017-08-22 Tom Tromey <tom@tromey.com>
7729
7730 * breakpoint.h (install_breakpoint): Update.
7731 * breakpoint.c (add_solib_catchpoint): Update.
7732 (install_breakpoint): Change argument to a std::unique_ptr.
7733 (create_fork_vfork_event_catchpoint): Use std::unique_ptr.
7734 (create_breakpoint_sal, create_breakpoint): Update.
7735 (watch_command_1, catch_exec_command_1)
7736 (strace_marker_create_breakpoints_sal): Use std::unique_ptr.
7737 (add_to_breakpoint_chain): Change argument to a std::unique_ptr.
7738 Return the breakpoint.
7739 (set_raw_breakpoint_without_location, set_raw_breakpoint)
7740 (new_single_step_breakpoint): Update.
7741 * break-catch-throw.c (handle_gnu_v3_exceptions): Use
7742 std::unique_ptr.
7743 * break-catch-syscall.c (create_syscall_event_catchpoint): Use
7744 std::unique_ptr.
7745 * break-catch-sig.c (create_signal_catchpoint): Use
7746 std::unique_ptr.
7747 * ada-lang.c (create_ada_exception_catchpoint): Use
7748 std::unique_ptr.
7749
7750 2017-08-22 Tom Tromey <tom@tromey.com>
7751
7752 * breakpoint.c (add_solib_catchpoint): Use std::unique_ptr.
7753
7754 2017-08-22 Tom Tromey <tom@tromey.com>
7755
7756 * psymtab.c (psymtab_search_name): Return a unique_xmalloc_ptr.
7757 (lookup_partial_symbol): Update.
7758
7759 2017-08-22 Tom Tromey <tom@tromey.com>
7760
7761 * source.h (rewrite_source_path): Return a unique_xmalloc_ptr.
7762 * source.c (rewrite_source_path): Return a unique_xmalloc_ptr.
7763 (find_and_open_source, symtab_to_fullname): Update.
7764 * psymtab.c (psymtab_to_fullname): Update.
7765
7766 2017-08-22 Tom Tromey <tom@tromey.com>
7767
7768 * exec.c (exec_file_attach): Update.
7769 * linux-thread-db.c (try_thread_db_load): Update.
7770 * guile/scm-safe-call.c (gdbscm_safe_source_script): Update.
7771 * utils.c (gdb_realpath): Change return type.
7772 (gdb_realpath_keepfile): Update.
7773 (gdb_realpath_check_trailer, gdb_realpath_tests): New functions.
7774 (_initialize_utils): Register the new self test.
7775 * source.c (openp): Update.
7776 (find_and_open_source): Update.
7777 * nto-tdep.c (nto_find_and_open_solib): Update.
7778 * main.c (set_gdb_data_directory): Update.
7779 (captured_main_1): Update.
7780 * dwarf2read.c (dwarf2_get_dwz_file): Update
7781 (dw2_map_symbol_filenames): Update.
7782 * auto-load.c (auto_load_safe_path_vec_update): Update.
7783 (filename_is_in_auto_load_safe_path_vec): Change type of
7784 "filename_realp".
7785 (auto_load_objfile_script): Update.
7786 (file_is_auto_load_safe): Update. Use std::string.
7787 * utils.h (gdb_realpath): Return a gdb::unique_xmalloc_ptr.
7788
7789 2017-08-22 Tom Tromey <tom@tromey.com>
7790
7791 * utils.c (gdb_realpath_keepfile): Return a
7792 gdb::unique_xmalloc_ptr.
7793 * exec.c (exec_file_attach): Update.
7794 * utils.h (gdb_realpath_keepfile): Return a
7795 gdb::unique_xmalloc_ptr.
7796
7797 2017-08-22 Tom Tromey <tom@tromey.com>
7798
7799 * compile/compile.c (compile_file_command): Use
7800 gdb::unique_xmalloc_ptr, std::string.
7801 * utils.c (gdb_abspath): Change return type.
7802 * source.c (openp): Update.
7803 * objfiles.c (allocate_objfile): Update.
7804 * main.c (set_gdb_data_directory): Update.
7805 * utils.h (gdb_abspath): Return a gdb::unique_xmalloc_ptr.
7806
7807 2017-08-22 Zhouyi Zhou <zhouzhouyi@gmail.com>
7808
7809 * cli-cmds.c (list_commands): List actual code around more than
7810 one location.
7811
7812 2017-08-21 John Baldwin <jhb@FreeBSD.org>
7813
7814 * fbsd-nat.c (fbsd_add_threads): Use array type for `lwps'.
7815
7816 2017-08-21 Pedro Alves <palves@redhat.com>
7817
7818 PR gdb/19487
7819 * c-exp.y (variable production): Handle function aliases.
7820 * minsyms.c (msymbol_is_text): New function.
7821 * minsyms.h (msymbol_is_text): Declare.
7822 * symtab.c (find_function_alias_target): New function.
7823 * symtab.h (find_function_alias_target): Declare.
7824
7825 2017-08-21 Pedro Alves <palves@redhat.com>
7826
7827 * eval.c (evaluate_subexp_standard) <OP_TYPE>: Don't dig past
7828 typedefs.
7829 * typeprint.c (whatis_exp): If handling "whatis", and expression
7830 is OP_TYPE, strip one typedef level. Otherwise don't strip
7831 typedefs here.
7832 * valops.c (value_cast): Save "to" type before resolving
7833 stubs/typedefs. Use that type as resulting value's type.
7834
7835 2017-08-18 Tom Tromey <tom@tromey.com>
7836 Pedro Alves <palves@redhat.com>
7837
7838 * spu-multiarch.c (parse_spufs_run): Use scoped_restore.
7839 * sol-thread.c (sol_thread_resume, sol_thread_wait)
7840 (sol_thread_xfer_partial, rw_common): Use scoped_restore.
7841 * procfs.c (procfs_do_thread_registers): Use scoped_restore.
7842 * proc-service.c (ps_xfer_memory): Use scoped_restore.
7843 * linux-tdep.c (linux_corefile_thread): Remove a cleanup.
7844 (linux_get_siginfo_data): Add "thread" argument. Use
7845 scoped_restore.
7846 * linux-nat.c (linux_child_follow_fork)
7847 (check_stopped_by_watchpoint): Use scoped_restore.
7848 * infrun.c (displaced_step_prepare_throw, write_memory_ptid)
7849 (THREAD_STOPPED_BY, handle_signal_stop): Use scoped_restore.
7850 (restore_inferior_ptid, save_inferior_ptid): Remove.
7851 * btrace.c (btrace_fetch): Use scoped_restore.
7852 * bsd-uthread.c (bsd_uthread_fetch_registers)
7853 (bsd_uthread_store_registers): Use scoped_restore.
7854 * breakpoint.c (reattach_breakpoints, detach_breakpoints): Use
7855 scoped_restore.
7856 * aix-thread.c (aix_thread_resume, aix_thread_wait)
7857 (aix_thread_xfer_partial): Use scoped_restore.
7858 * inferior.h (save_inferior_ptid): Remove.
7859
7860 2017-08-18 Yao Qi <yao.qi@linaro.org>
7861
7862 PR tdep/21818
7863 * arm-tdep.c (gdb_print_insn_arm): Mark
7864 USER_SPECIFIED_MACHINE_TYPE if exec_bfd isn't NULL.
7865
7866 2017-08-18 Yao Qi <yao.qi@linaro.org>
7867
7868 * NEWS: Mention GDBserver's new option "--selftest".
7869 * Makefile.in (SFILES): Remove selftest.c, add common/selftest.c.
7870 * selftest.c: Move it to common/selftest.c.
7871 * selftest.h: Move it to common/selftest.h.
7872 * selftest-arch.c (reset): New function.
7873 (tests_with_arch): Call reset.
7874
7875 2017-08-18 Yao Qi <yao.qi@linaro.org>
7876
7877 * selftest.c (run_tests): Don't call QUIT. Call debug_printf
7878 instead of exception_fprintf and printf_filtered.
7879
7880 2017-08-18 Yao Qi <yao.qi@linaro.org>
7881
7882 * selftest.c (register_self_test): Rename it to
7883 selftests::register_test.
7884 (run_self_tests): selftest::run_tests.
7885 * selftest.h: Update declarations.
7886 * selftest-arch.c (register_self_test_foreach_arch): Rename it to
7887 selftests::register_test_foreach_arch.
7888 * selftest-arch.h: Update declaration.
7889 * aarch64-tdep.c: Update.
7890 * arm-tdep.c: Likewise.
7891 * disasm-selftests.c: Likewise.
7892 * dwarf2loc.c: Likewise.
7893 * dwarf2-frame.c: Likewise.
7894 * findvar.c: Likewise.
7895 * gdbarch-selftests.c: Likewise.
7896 * maint.c (maintenance_selftest): Likewise.
7897 * regcache.c: Likewise.
7898 * rust-exp.y: Likewise.
7899 * selftest-arch.c: Likewise.
7900 * unittests/environ-selftests.c: Likewise.
7901 * unittests/function-view-selftests.c: Likewise.
7902 * unittests/offset-type-selftests.c: Likewise.
7903 * unittests/optional-selftests.c: Likewise.
7904 * unittests/scoped_restore-selftests.c: Likewise.
7905 * utils-selftests.c: Likewise.
7906
7907 2017-08-17 Pedro Alves <palves@redhat.com>
7908
7909 * cli/cli-cmds.c (source_command): Delete 'old_source_verbose'
7910 local.
7911
7912 2017-08-17 Pedro Alves <palves@redhat.com>
7913
7914 * dwarf2read.c (struct dwarf2_cu) <line_header_die_owner>: New
7915 field.
7916 (reset_die_in_process): Delete, replaced by ...
7917 (process_die_scope): ... this new class. Make it responsible for
7918 freeing cu->line_header too.
7919 (process_die): Use process_die_scope.
7920 (handle_DW_AT_stmt_list): Record the line header's owner CU/DIE in
7921 cu->line_header_die_owner. Don't release the line header if it's
7922 owned by the CU.
7923 (setup_type_unit_groups): Make the CU/DIE own the line header.
7924 Don't release the line header here.
7925
7926 2017-08-17 Alex Lindsay <alexlindsay239@gmail.com> (tiny change)
7927
7928 * elfread.c (elf_read_minimal_symbols): xfree synthsyms.
7929
7930 2017-08-17 Ruslan Kabatsayev <b7.10110111@gmail.com>
7931
7932 * NEWS: Mention new shortcuts for nexti and stepi in TUI
7933 Single-Key mode
7934
7935 2017-08-16 Ruslan Kabatsayev <b7.10110111@gmail.com>
7936
7937 * tui/tui.c (tui_commands): Add "nexti" and "stepi" to the Single-Key
7938 mode command list.
7939
7940 2017-08-15 Stafford Horne <shorne@gmail.com>
7941
7942 * MAINTAINERS (Write After Approval): Add Stafford Horne.
7943
7944 2017-08-15 Stafford Horne <shorne@gmail.com>
7945
7946 * xtensa-tdep.c (xtensa_init_reggroups): Use xstrdup for cpname.
7947
7948 2017-08-15 Sergio Durigan Junior <sergiodj@redhat.com>
7949
7950 PR gdb/21954
7951 * infcmd.c (unset_environment_command): Use the 'clear' method on
7952 the environment instead of resetting it.
7953
7954 2017-08-15 John Baldwin <jhb@FreeBSD.org>
7955
7956 * fbsd-nat.c (fbsd_convert_siginfo): Fix compile on big-endian
7957 platforms.
7958
7959 2017-08-14 Tom Tromey <tom@tromey.com>
7960
7961 * valprint.c (print_octal_chars): Use HOST_CHAR_BIT.
7962 (print_binary_chars): Likewise.
7963 (BITS_IN_BYTES): Remove.
7964
7965 2017-08-14 Tom Tromey <tom@tromey.com>
7966
7967 PR gdb/21675
7968 * valprint.c (LOW_ZERO): Change value to 034.
7969 (print_octal_chars): Add static_asserts for octal constants.
7970 * printcmd.c (print_scalar_formatted): Add 'd' case.
7971
7972 2017-08-11 Tom Tromey <tom@tromey.com>
7973
7974 * symfile.c (add_symbol_file_command): Use std::vector.
7975
7976 2017-08-14 Tom Tromey <tom@tromey.com>
7977
7978 * break-catch-throw.c (handle_gnu_v3_exceptions): Use std::move.
7979 * break-catch-syscall.c (create_syscall_event_catchpoint): Use
7980 std::move.
7981 * break-catch-sig.c (create_signal_catchpoint): Use std::move.
7982
7983 2017-08-11 Pedro Alves <palves@redhat.com>
7984
7985 * infrun.c (process_event_stop_test): Adjust
7986 function_name_is_marked_for_skip call.
7987 * skip.c: Include <list>.
7988 (skiplist_entry): Make it a class with private fields, and
7989 getters/setters.
7990 (skiplist_entry_chain): Delete.
7991 (skiplist_entries): New.
7992 (skiplist_entry_count): Delete.
7993 (highest_skiplist_entry_num): New.
7994 (ALL_SKIPLIST_ENTRIES, ALL_SKIPLIST_ENTRIES_SAFE): Delete.
7995 (add_skiplist_entry): Delete.
7996 (skiplist_entry::skiplist_entry): New.
7997 (skiplist_entry::add_entry): New.
7998 (skip_file_command, skip_function): Adjust.
7999 (compile_skip_regexp): Delete.
8000 (skip_command): Don't compile regexp here. Adjust to use
8001 skiplist_entry::add_entry.
8002 (skip_info): Adjust to use range-for and getters.
8003 (skip_enable_command, skip_disable_command): Adjust to use
8004 range-for and setters.
8005 (skip_delete_command): Adjust to use std::list.
8006 (add_skiplist_entry): Delete.
8007 (skip_file_p): Delete, refactored as ...
8008 (skiplist_entry::do_skip_file_p): ... this new method.
8009 (skip_gfile_p): Delete, refactored as ...
8010 (skiplist_entry::do_gskip_file_p): ... this new method.
8011 (skip_function_p, skip_rfunction_p): Delete, refactored as ...
8012 (skiplist_entry::skip_function_p): ... this new method.
8013 (function_name_is_marked_for_skip): Now returns bool, and takes
8014 the function sal by const reference. Adjust to use range-for and
8015 skiplist_entry methods.
8016 (_initialize_step_skip): Remove references to
8017 skiplist_entry_chain, skiplist_entry_count.
8018 * skip.h (function_name_is_marked_for_skip): Now returns bool, and
8019 takes the function sal by const reference.
8020
8021 2017-08-11 Yao Qi <yao.qi@linaro.org>
8022
8023 * dwarf2-frame.c (clear_pointer_cleanup): Remove.
8024 (dwarf2_frame_cache): Remove reset_cache_cleanup.
8025 (dwarf2_frame_cache):
8026 * frame-unwind.c (frame_unwind_try_unwinder): Catch
8027 RETURN_MASK_ALL and set *this_case to NULL.
8028 * frame-unwind.h: Update comments.
8029
8030 2017-08-11 Yao Qi <yao.qi@linaro.org>
8031
8032 * dwarf2-frame.c (dwarf2_frame_state_alloc_regs): Remove.
8033 (dwarf2_frame_state_copy_regs): Remove.
8034 (dwarf2_frame_state_free_regs): Remove.
8035 (dwarf2_frame_state::~dwarf2_frame_state): Remove.
8036 (dwarf2_restore_rule): Call method .alloc_regs instead of
8037 dwarf2_frame_state_alloc_regs.
8038 (execute_cfa_program): Likewise. Call dwarf2_frame_state_reg_info
8039 constructor. Call std::move.
8040 (dwarf2_fetch_cfa_info): Don't call dwarf2_frame_state_copy_regs.
8041 (dwarf2_frame_cache): Likewise.
8042
8043 [GDB_SELF_TEST]: Include selftest.h and
8044 selftest-arch.h.
8045 [GDB_SELF_TEST] (execute_cfa_program_test): New function.
8046 (_initialize_dwarf2_frame) [GDB_SELF_TEST]: Register
8047 execute_cfa_program_test.
8048
8049 * dwarf2-frame.h (dwarf2_frame_state_reg_info): Add ctor, dtor,
8050 copy ctor, assignment operator, move assignment.
8051 <alloc_regs>: New method.
8052 <swap>: New method.
8053 (struct dwarf2_frame_state): Delete dtor.
8054 (dwarf2_frame_state_alloc_regs): Remove declaration.
8055 * sparc-tdep.c (sparc_execute_dwarf_cfa_vendor_op): Don't call
8056 dwarf2_frame_state_alloc_regs, use .alloc_regs instead.
8057
8058 2017-08-11 Yao Qi <yao.qi@linaro.org>
8059
8060 * dwarf2-frame.c (dwarf2_frame_state_free): Remove.
8061 (dwarf2_frame_state::dwarf2_frame_state): New.
8062 (dwarf2_frame_state::~dwarf2_frame_state): New.
8063 (dwarf2_fetch_cfa_info): Update.
8064 (dwarf2_frame_cache): Remove old_chain. Change 'fs' to an object
8065 rather than a pointer. Update code.
8066 * dwarf2-frame.h (struct dwarf2_frame_state): Declare ctor and
8067 dtor.
8068 <data_align, code_align, retaddr_column>: Change them to const.
8069 <armcc_cfa_offsets_sf, armcc_cfa_offsets_reversed>: Change them
8070 to bool.
8071
8072 2017-08-11 Yao Qi <yao.qi@linaro.org>
8073
8074 * dwarf2-frame.h (struct dwarf2_frame_state_reg) <exp_len>: Remove.
8075 <loc.exp>: New field.
8076 * dwarf2-frame.c (execute_cfa_program): Update.
8077 (dwarf2_frame_prev_register): Update.
8078
8079 2017-08-10 Pedro Alves <palves@redhat.com>
8080
8081 * common/gdb_unique_ptr.h (xfree_deleter<T[]>): Define.
8082
8083 2017-08-09 John Baldwin <jhb@FreeBSD.org>
8084
8085 * fbsd-nat.c (struct fbsd_fork_info): Remove.
8086 (fbsd_pending_children): Use std::list.
8087 (fbsd_remember_child): Likewise.
8088 (fbsd_is_child_pending): Likewise.
8089 (fbsd_pending_vfork_done): Use std::forward_list.
8090 (fbsd_add_vfork_done): Likewise.
8091 (fbsd_is_vfork_done_pending): Likewise.
8092 (fbsd_next_vfork_done): Likewise.
8093
8094 2017-08-09 John Baldwin <jhb@FreeBSD.org>
8095
8096 * fbsd-nat.c [HAVE_KINFO_GETVMMAP] (struct free_deleter): New.
8097 (fbsd_find_memory_regions): Use free_deleter with std::unique_ptr.
8098 [!HAVE_KINFO_GETVMMAP] (fbsd_find_memory_regions): Use std::string
8099 for `mapfilename'.
8100 (fbsd_xfer_partial): Use gdb::byte_vector.
8101 (fbsd_add_threads): Use gdb::unique_xmalloc_ptr.
8102
8103 2017-08-09 John Baldwin <jhb@FreeBSD.org>
8104
8105 * fbsd-nat.c: [!HAVE_KINFO_GETVMMAP]: Include <sys/user.h> and
8106 "filestuff.h".
8107 (fbsd_find_memory_regions): Fix `mapfile' initialization.
8108
8109 2017-08-09 Tom Tromey <tom@tromey.com>
8110
8111 * skip.c (skiplist_entry): New constructor.
8112 (skiplist_entry::enabled, skiplist_entry::function_is_regexp)
8113 (skiplist_entry::file_is_glob): Now bool.
8114 (skiplist_entry::file, skiplist_entry::function): Now
8115 std::string.
8116 (make_skip_entry): Return a unique_ptr. Use new.
8117 (free_skiplist_entry, free_skiplist_entry_cleanup)
8118 (make_free_skiplist_entry_cleanup): Remove.
8119 (skip_command, skip_disable_command, add_skiplist_entry)
8120 (skip_form_bytes, compile_skip_regexp, skip_command, skip_info)
8121 (skip_file_p, skip_gfile_p, skip_function_p, skip_rfunction_p)
8122 (function_name_is_marked_for_skip): Update.
8123 (skip_delete_command): Update. Use delete.
8124
8125 2017-08-09 Jiong Wang <jiong.wang@arm.com>
8126
8127 * aarch64-linux-tdep.c: Include "auxv.h" and "elf/common.h".
8128 (aarch64_linux_core_read_description): New function.
8129 (aarch64_linux_init_abi): Register gdbarch_core_read_description.
8130
8131 2017-08-09 Pedro Alves <palves@redhat.com>
8132
8133 * cp-name-parser.y (cp_comp_to_string): Return a
8134 gdb::unique_xmalloc_ptr<char>.
8135 * cp-support.c (replace_typedefs_qualified_name)
8136 (replace_typedefs): Adjust to use gdb::unique_xmalloc_ptr<char>.
8137 (cp_canonicalize_string_full): Use op= instead of explicit
8138 convertion.
8139 (cp_class_name_from_physname, method_name_from_physname)
8140 (cp_func_name, cp_remove_params): Adjust to use
8141 gdb::unique_xmalloc_ptr<char>.
8142 * cp-support.h (cp_comp_to_string): Return a
8143 gdb::unique_xmalloc_ptr<char>.
8144 * python/py-type.c (typy_lookup_type): Adjust to use
8145 gdb::unique_xmalloc_ptr<char>.
8146
8147 2017-08-09 H.J. Lu <hongjiu.lu@intel.com>
8148
8149 * dwarf2read.c (dwarf2_string_attr): Fix a typo.
8150
8151 2017-08-09 Alex Lindsay <alexlindsay239@gmail.com>
8152 Yao Qi <yao.qi@linaro.org>
8153
8154 * cp-support.c (cp_canonicalize_string_full): Use
8155 gdb::unique_xmalloc_ptr<char>.
8156 (cp_canonicalize_string): Likewise.
8157
8158 2017-08-09 Yao Qi <yao.qi@linaro.org>
8159
8160 * features/Makefile (WHICH): Remove i386/ non-linux stuff.
8161 * regformats/i386/amd64-avx-avx512.dat: Remove.
8162 * regformats/i386/amd64-avx-mpx-avx512-pku.dat: Remove.
8163 * regformats/i386/amd64-avx-mpx.dat:Remove.
8164 * regformats/i386/amd64-avx.dat: Remove.
8165 * regformats/i386/amd64-mpx.dat: Remove.
8166 * regformats/i386/i386-avx-avx512.dat: Remove.
8167 * regformats/i386/i386-avx-mpx-avx512-pku.dat: Remove.
8168 * regformats/i386/i386-avx-mpx.dat: Remove.
8169 * regformats/i386/i386-mmx.dat: Remove.
8170 * regformats/i386/i386-mpx.dat: Remove.
8171
8172 2017-08-09 Yao Qi <yao.qi@linaro.org>
8173
8174 * amd64-tdep.h (tdesc_x32): Remove the declaration.
8175 * amd64-tdep.c: Don't include features/i386/x32*.c.
8176 (_initialize_amd64_tdep): Don't call initialize_tdesc_x32*
8177 functions.
8178 * features/Makefile (WHICH): Remove i386/x32, i386/x32-avx,
8179 and i386/x32-avx-avx512.
8180 (XMLTOC): Remove i386/x32-avx.xml, i386/x32-avx-avx512.xml,
8181 and i386/x32.xml.
8182 * features/i386/x32-avx-avx512.c: Removed.
8183 * features/i386/x32-avx-avx512.xml: Removed.
8184 * features/i386/x32-avx.c: Removed.
8185 * features/i386/x32-avx.xml: Removed.
8186 * features/i386/x32.c: Removed.
8187 * features/i386/x32.xml: Removed.
8188 * regformats/i386/x32-avx-avx512.dat: Removed.
8189 * regformats/i386/x32-avx.dat: Removed.
8190 * regformats/i386/x32.dat: Removed.
8191
8192 2017-08-07 Maciej W. Rozycki <macro@imgtec.com>
8193
8194 PR breakpoints/21886
8195 * mem-break.c (default_memory_insert_breakpoint): Use
8196 `->placed_address' rather than `->reqstd_address' for the
8197 breakpoint location.
8198
8199 2017-08-07 Maciej W. Rozycki <macro@imgtec.com>
8200
8201 * arch-utils.c (default_print_insn): Remove arch/mach/endian
8202 assertions.
8203
8204 2017-08-07 Maciej W. Rozycki <macro@imgtec.com>
8205
8206 * gdbarch.sh (gdbarch_info): Replace the `tdep_info' member with
8207 a union of `tdep_info', `tdesc_data' and `id'.
8208 * aarch64-tdep.c (aarch64_gdbarch_init): Use `info.tdesc_data'
8209 rather than `info.tdep_info'.
8210 * amd64-linux-tdep.c (amd64_linux_init_abi): Likewise.
8211 * i386-linux-tdep.c (i386_linux_init_abi): Likewise.
8212 * i386-tdep.c (i386_gdbarch_init): Likewise.
8213 * mips-linux-tdep.c (mips_linux_init_abi): Likewise.
8214 * mips-tdep.c (mips_gdbarch_init): Likewise.
8215 * nds32-tdep.c (nds32_gdbarch_init): Likewise.
8216 * rs6000-tdep.c (rs6000_gdbarch_init): Likewise.
8217 * ppc-linux-tdep.c (ppu2spu_sniffer): Use `info.id' rather than
8218 `info.tdep_info'.
8219 (ppc_linux_init_abi): Use `info.tdesc_data' rather than
8220 `info.tdep_info'.
8221 * sparc-tdep.c (sparc32_gdbarch_init): Likewise.
8222 * spu-multiarch.c (spu_gdbarch): Use `info.id' rather than
8223 `info.tdep_info'.
8224 * spu-tdep.c (spu_gdbarch_init): Likewise.
8225 * gdbarch.h: Regenerate.
8226
8227 2017-08-07 Leszek Swirski <leszeks@google.com>
8228
8229 PR symtab/20899
8230 * dwarf2read.c (dwarf2_string_attr): Allow DW_FORM_GNU_strp_alt.
8231
8232 2017-08-07 Simon Marchi <simon.marchi@ericsson.com>
8233
8234 * remote-sim.c (gdbsim_load): Remove char **argv local variable.
8235 (gdbsim_open): Rename gdb_argv args object to argv.
8236
8237 2017-08-05 Tom Tromey <tom@tromey.com>
8238
8239 * compile/compile-object-load.c (compile_object_load): Use
8240 gdb::unique_xmalloc_ptr.
8241 * cli/cli-dump.c (scan_filename): Rename from
8242 scan_filename_with_cleanup. Change return type.
8243 (scan_expression): Rename from scan_expression_with_cleanup.
8244 Change return type.
8245 (dump_memory_to_file, dump_value_to_file, restore_command):
8246 Use gdb::unique_xmalloc_ptr. Update.
8247 * cli/cli-cmds.c (find_and_open_script): Use
8248 gdb::unique_xmalloc_ptr.
8249 * tracefile-tfile.c (tfile_open): Use gdb::unique_xmalloc_ptr.
8250 * symmisc.c (maintenance_print_symbols)
8251 (maintenance_print_msymbols): Use gdb::unique_xmalloc_ptr.
8252 * symfile.c (symfile_bfd_open, generic_load)
8253 (add_symbol_file_command, remove_symbol_file_command): Use
8254 gdb::unique_xmalloc_ptr.
8255 * source.c (openp): Use gdb::unique_xmalloc_ptr.
8256 * psymtab.c (maintenance_print_psymbols): Use
8257 gdb::unique_xmalloc_ptr.
8258 * corelow.c (core_open): Use gdb::unique_xmalloc_ptr.
8259 * breakpoint.c (save_breakpoints): Use gdb::unique_xmalloc_ptr.
8260 * solib.c (solib_map_sections): Use gdb::unique_xmalloc_ptr.
8261 (reload_shared_libraries_1): Likewise.
8262
8263 2017-08-05 Tom Tromey <tom@tromey.com>
8264
8265 * rust-exp.y (rust_op_ptr, set_field): Remove typedefs.
8266 (rust_op_vector, rust_set_vector): New typedefs.
8267 (current_parser): New global.
8268 (work_obstack): Change to pointer type. Update all users.
8269 (rust_ast, pstate): Remove globals.
8270 (struct rust_parser): New.
8271 (%union) <params, field_inits>: Change type.
8272 (start, tuple_expr, unit_expr, struct_expr_list, literal)
8273 (field_expr, expr_list, maybe_expr_list, type_list): Update.
8274 (ast_call_ish, ast_path, ast_function_type, ast_tuple_type)
8275 (convert_params_to_types, convert_params_to_expression): Change
8276 type of "params".
8277 (ast_string): Change type of "fields".
8278 (rust_parse): Make a rust_parser. Remove cleanups.
8279 (rust_lex_tests): Make and install an auto_obstack.
8280
8281 2017-08-04 Yao Qi <yao.qi@linaro.org>
8282
8283 * configure.srv (ipa_x32_linux_regobj): New.
8284 * linux-amd64-ipa.c (get_ipa_tdesc): Use X86_TDESC_AVX_AVX512
8285 instead of X86_TDESC_AVX512.
8286 (initialize_low_tracepoint): Call
8287 init_registers_x32_avx_avx512_linux.
8288
8289 2017-08-04 Yao Qi <yao.qi@linaro.org>
8290
8291 * utils.h (gdb_argv): Add namespace std for nullptr_t.
8292
8293 2017-08-03 Ruslan Kabatsayev <b7.10110111@gmail.com>
8294
8295 * MAINTAINERS (Write After Approval): Add Ruslan Kabatsayev.
8296
8297 2017-08-03 Tom Tromey <tom@tromey.com>
8298
8299 * utils.c (make_cleanup_freeargv, do_freeargv, gdb_buildargv):
8300 Remove.
8301 * utils.h (make_cleanup_freeargv, gdb_buildargv): Remove.
8302
8303 2017-08-03 Tom Tromey <tom@tromey.com>
8304
8305 * python/py-param.c (compute_enum_values): Use gdb_argv.
8306
8307 2017-08-03 Tom Tromey <tom@tromey.com>
8308
8309 * utils.h (struct gdb_argv_deleter): New.
8310 (gdb_argv): New class.
8311 * utils.c (gdb_argv::reset): New method.
8312 * tracepoint.c (delete_trace_variable_command): Use gdb_argv.
8313 * tracefile.c (tsave_command): Use gdb_argv.
8314 * top.c (new_ui_command): Use gdb_argv.
8315 * symmisc.c (maintenance_print_symbols)
8316 (maintenance_print_msymbols, maintenance_expand_symtabs): Use gdb_argv.
8317 * symfile.c (symbol_file_command, generic_load)
8318 (remove_symbol_file_command): Use gdb_argv.
8319 * stack.c (backtrace_command): Use gdb_argv.
8320 * source.c (add_path, show_substitute_path_command)
8321 (unset_substitute_path_command, set_substitute_path_command):
8322 Use gdb_argv.
8323 * skip.c (skip_command): Use gdb_argv. Use gdb_buildargv.
8324 * ser-mingw.c (pipe_windows_open): Use gdb_argv.
8325 * remote.c (extended_remote_run, remote_put_command)
8326 (remote_get_command, remote_delete_command): Use gdb_argv.
8327 * remote-sim.c (gdbsim_load, gdbsim_create_inferior)
8328 (gdbsim_open): Use gdb_argv.
8329 * python/py-cmd.c (gdbpy_string_to_argv): Use gdb_argv.
8330 * psymtab.c (maintenance_print_psymbols): Use gdb_argv.
8331 * procfs.c (procfs_info_proc): Use gdb_argv.
8332 * interps.c (interpreter_exec_cmd): Use gdb_argv.
8333 * infrun.c (handle_command): Use gdb_argv.
8334 * inferior.c (add_inferior_command, clone_inferior_command):
8335 Use gdb_argv.
8336 * guile/scm-string.c (gdbscm_string_to_argv): Use gdb_argv.
8337 * exec.c (exec_file_command): Use gdb_argv.
8338 * cli/cli-cmds.c (alias_command): Use gdb_argv.
8339 * compile/compile.c (build_argc_argv): Use gdb_argv.
8340
8341 2017-08-03 Tom Tromey <tom@tromey.com>
8342
8343 * python/python.c (gdbpy_decode_line): Use unique_xmalloc_ptr.
8344
8345 2017-08-03 Tom Tromey <tom@tromey.com>
8346
8347 * python/python.c (compute_python_string): Return std::string.
8348 (gdbpy_eval_from_control_command): Update.
8349 (do_start_initialization): Use std::string.
8350 * python/py-varobj.c (py_varobj_iter_next): Use string_printf, not
8351 xstrprintf.
8352 * python/py-breakpoint.c (local_setattro): Use string_printf, not
8353 xstrprintf.
8354
8355 2017-08-03 Tom Tromey <tom@tromey.com>
8356
8357 * top.h (do_restore_instream_cleanup): Remove.
8358 * top.c (do_restore_instream_cleanup): Remove.
8359 (read_command_file): Use scoped_restore.
8360 * cli/cli-script.c (execute_user_command): Use scoped_restore.
8361
8362 2017-08-03 Tom Tromey <tom@tromey.com>
8363
8364 * cli/cli-script.c (execute_user_command)
8365 (execute_control_command): Use scoped_restore.
8366
8367 2017-08-03 Tom Tromey <tom@tromey.com>
8368
8369 * cli/cli-script.c (do_restore_user_call_depth): Remove.
8370 (execute_user_command): Remove user_call_depth; use
8371 user_args_stack's size instead.
8372
8373 2017-08-03 Tom Tromey <tom@tromey.com>
8374
8375 * top.h (in_user_command): Remove.
8376 * top.c (in_user_command): Remove.
8377 * cli/cli-script.c (do_restore_user_call_depth)
8378 (execute_user_command): Update.
8379
8380 2017-08-03 Tom Tromey <tom@tromey.com>
8381
8382 * valops.c (search_struct_method): Use gdb::byte_vector.
8383 * valarith.c (value_concat): Use std::vector.
8384 * target.c (memory_xfer_partial): Use gdb::byte_vector.
8385 (simple_search_memory): Likewise.
8386 * printcmd.c (find_string_backward): Use gdb::byte_vector.
8387 * mi/mi-main.c (mi_cmd_data_write_memory): Use gdb::byte_vector.
8388 * gcore.c (gcore_copy_callback): Use gdb::byte_vector.
8389 * elfread.c (elf_rel_plt_read): Use std::string.
8390 * cp-valprint.c (cp_print_value): Use gdb::byte_vector.
8391 * cli/cli-dump.c (restore_section_callback): Use
8392 gdb::byte_vector.
8393
8394 2017-08-03 Tom Tromey <tom@tromey.com>
8395
8396 * jit.c (jit_reader_load_command): Use unique_xmalloc_ptr.
8397
8398 2017-08-03 Tom Tromey <tom@tromey.com>
8399
8400 * tui/tui-regs.c (tui_restore_gdbout): Remove.
8401 (tui_register_format): Use scoped_restore.
8402
8403 2017-08-03 Tom Tromey <tom@tromey.com>
8404
8405 * reverse.c (exec_direction_default): Remove.
8406 (exec_reverse_once): Use scoped_restore.
8407 * remote.c (restore_remote_timeout): Remove.
8408 (remote_flash_erase, remote_flash_write, remote_flash_done)
8409 (readchar, remote_serial_write): Use scoped_restore.
8410 * cli/cli-script.c (struct source_cleanup_lines_args)
8411 (source_cleanup_lines): Remove.
8412 (script_from_file): Use scoped_restore.
8413 * cli/cli-cmds.c (source_verbose_cleanup): Remove.
8414 (source_command): Use scoped_restore.
8415
8416 2017-08-03 Tom Tromey <tom@tromey.com>
8417
8418 * utils.h (make_cleanup_free_so): Remove.
8419 * utils.c (do_free_so, make_cleanup_free_so): Remove.
8420 * solist.h (struct so_deleter): New.
8421 (so_list_up): New typedef.
8422 * solib-svr4.c (svr4_read_so_list): Use so_list_up.
8423
8424 2017-08-03 Tom Tromey <tom@tromey.com>
8425
8426 * utils.h (make_cleanup_restore_current_language): Remove.
8427 * utils.c (do_restore_current_language)
8428 (make_cleanup_restore_current_language): Remove.
8429 * parse.c (parse_exp_in_context_1)
8430 (parse_expression_with_language): Use
8431 scoped_restore_current_language.
8432 * mi/mi-main.c (mi_cmd_execute): Use
8433 scoped_restore_current_language.
8434 * language.h (scoped_restore_current_language): New class.
8435
8436 2017-08-03 Tom Tromey <tom@tromey.com>
8437
8438 * compile/compile.c (cleanup_unlink_file): Remove.
8439 (compile_to_object): Use gdb::unlinker.
8440 (eval_compile_command): Likewise.
8441
8442 2017-08-03 Tom Tromey <tom@tromey.com>
8443
8444 * utils.h (make_cleanup_fclose): Remove.
8445 * utils.c (do_fclose_cleanup, make_cleanup_fclose): Remove.
8446
8447 2017-08-03 Tom Tromey <tom@tromey.com>
8448
8449 * top.c (open_terminal_stream): Return gdb_file_up.
8450 (new_ui_command): Update.
8451
8452 2017-08-03 Tom Tromey <tom@tromey.com>
8453
8454 * source.c (print_source_lines_base, forward_search_command)
8455 (reverse_search_command): Use gdb_file_up.
8456
8457 2017-08-03 Tom Tromey <tom@tromey.com>
8458
8459 * fbsd-nat.c (fbsd_find_memory_regions): Update.
8460
8461 2017-08-03 Tom Tromey <tom@tromey.com>
8462
8463 * cli/cli-cmds.c (find_and_open_script): Change return type.
8464 Remove "streamp" and "full_path" parameters.
8465 (source_script_with_search): Update.
8466 * auto-load.c (source_script_file): Update.
8467 * cli/cli-cmds.h (find_and_open_script): Change type.
8468 (open_script): New struct.
8469
8470 2017-08-03 Tom Tromey <tom@tromey.com>
8471
8472 * xml-support.c (xml_fetch_content_from_file): Update.
8473 * ui-file.c (stdio_file::open): Update.
8474 * tracefile-tfile.c (tfile_start): Update.
8475 * remote.c (remote_file_put, remote_file_get): Update.
8476 * nat/linux-procfs.c (linux_proc_get_int)
8477 (linux_proc_pid_get_state, linux_proc_tid_get_name): Update.
8478 * nat/linux-osdata.c (linux_common_core_of_thread): Update.
8479 (command_from_pid, commandline_from_pid, linux_xfer_osdata_cpus)
8480 (print_sockets, linux_xfer_osdata_shm, linux_xfer_osdata_sem)
8481 (linux_xfer_osdata_msg, linux_xfer_osdata_modules): Update.
8482 * nat/linux-btrace.c (linux_determine_kernel_start): Update.
8483 * linux-nat.c (linux_proc_pending_signals): Update.
8484 * dwarf2read.c (write_psymtabs_to_index): Use gdb_file_up.
8485 (file_closer): Remove.
8486 * compile/compile.c (compile_to_object): Update.
8487 * common/filestuff.h (struct gdb_file_deleter): New.
8488 (gdb_file_up): New typedef.
8489 (gdb_fopen_cloexec): Change return type.
8490 * common/filestuff.c (gdb_fopen_cloexec): Return gdb_file_up.
8491 * cli/cli-dump.c (fopen_with_cleanup): Remove.
8492 (dump_binary_file, restore_binary_file): Update.
8493 * auto-load.c (auto_load_objfile_script_1): Update.
8494
8495 2017-08-03 Tom Tromey <tom@tromey.com>
8496
8497 * tracepoint.c (tvariables_info_1): Use ui_out_emit_table.
8498 (info_static_tracepoint_markers_command): Likewise.
8499 * solib.c (info_sharedlibrary_command): Use ui_out_emit_table.
8500 * skip.c (skip_info): Use ui_out_emit_table.
8501 * progspace.c (print_program_space): Use ui_out_emit_table.
8502 * osdata.c (info_osdata): Use ui_out_emit_table.
8503 * mi/mi-cmd-info.c (mi_cmd_info_ada_exceptions): Use
8504 ui_out_emit_table.
8505 * linux-thread-db.c (info_auto_load_libthread_db): Use
8506 ui_out_emit_table.
8507 * inferior.c (print_inferior): Use ui_out_emit_table.
8508 * gdb_bfd.c (maintenance_info_bfds): Use ui_out_emit_table.
8509 * breakpoint.c (breakpoint_1): Use ui_out_emit_table.
8510 * auto-load.c (auto_load_info_scripts): Use ui_out_emit_table.
8511 * ada-tasks.c (print_ada_task_info): Use ui_out_emit_table.
8512 * ui-out.h (class ui_out_emit_table): New.
8513
8514 2017-08-02 Maciej W. Rozycki <macro@imgtec.com>
8515
8516 * mips-tdep.c (mips_fpu_type_str): New function.
8517 (mips_dump_tdep): Call it.
8518
8519 2017-08-01 Maciej W. Rozycki <macro@imgtec.com>
8520
8521 * mips-tdep.c (mips_gdbarch_init): Use MIPS_FPU_TYPE to access
8522 `->mips_fpu_type'.
8523
8524 2017-07-31 Xavier Roirand <roirand@adacore.com>
8525
8526 * solib-darwin.c (DYLD_VERSION_MAX): Increase value.
8527
8528 2017-07-27 Xavier Roirand <roirand@adacore.com>
8529
8530 * MAINTAINERS (Write After Approval): Add Xavier Roirand.
8531
8532 2017-07-26 Yao Qi <yao.qi@linaro.org>
8533
8534 * cli/cli-cmds.c (maintenancechecklist): New variable.
8535 * gdbcmd.h (maintenancechecklist): Declare it.
8536 * i386-linux-tdep.c (_initialize_i386_linux_tdep) [GDB_SELF_TEST]:
8537 Call i386_linux_read_description with different masks.
8538 * maint.c (maintenance_check_command): New function.
8539 (_initialize_maint_cmds): Call add_prefix_cmd.
8540 * target-descriptions.c (tdesc_reg): override operator != and ==.
8541 (tdesc_type): Likewise.
8542 (tdesc_feature): Likewise.
8543 (target_desc): Likewise.
8544 [GDB_SELF_TEST] (selftests::record_xml_tdesc): New function.
8545 (maintenance_check_xml_descriptions): New function.
8546 (_initialize_target_descriptions) Add command "xml-descriptions".
8547 * target-descriptions.h (selftests::record_xml_tdesc): Declare.
8548
8549 2017-07-26 Yao Qi <yao.qi@linaro.org>
8550
8551 * i386-linux-tdep.c: Don't include features/i386/i386-*linux.c.
8552 Include features/i386/32bit-*.c.
8553 (i386_linux_read_description): Generate target description if it
8554 doesn't exist.
8555 (_initialize_i386_linux_tdep): Don't call _initialize_tdesc_i386
8556 functions.
8557 * features/i386/32bit-linux.c: Re-generated.
8558 * features/i386/32bit-sse.c: Likewise.
8559 * target-descriptions.c (print_c_feature::visit): Print code to
8560 set register number if needed.
8561 (print_c_feature) <m_next_regnum>: New field.
8562
8563 2017-07-26 Yao Qi <yao.qi@linaro.org>
8564
8565 * features/Makefile (CFILES): Rename with TDESC_CFILES.
8566 (FEATURE_XMLFILES): New.
8567 (FEATURE_CFILES): New.
8568 New rules.
8569 (clean-cfiles): Remove generated c files.
8570 * features/i386/32bit-avx.c: Generated.
8571 * features/i386/32bit-avx512.c: Generated.
8572 * features/i386/32bit-core.c: Generated.
8573 * features/i386/32bit-linux.c: Generated.
8574 * features/i386/32bit-mpx.c: Generated.
8575 * features/i386/32bit-pkeys.c: Generated.
8576 * features/i386/32bit-sse.c: Generated.
8577 * target-descriptions.c: Include algorithm.
8578 (tdesc_element_visitor): Add method visit_end.
8579 (print_c_tdesc): Implement visit_end.
8580 (print_c_tdesc:: m_filename_after_features): Move it to
8581 protected.
8582 (print_c_feature): New class.
8583 (maint_print_c_tdesc_cmd): Use print_c_feature if XML file
8584 name starts with "i386/32bit-".
8585
8586 2017-07-26 Yao Qi <yao.qi@linaro.org>
8587
8588 * target-descriptions.c (tdesc_element_visitor): New class.
8589 (tdesc_element): New class.
8590 (tdesc_reg): Inherit from tdesc_element.
8591 (tdesc_reg::accept): New function.
8592 (tdesc_type): Inherit from tdesc_element.
8593 (tdesc_type::accept): New function.
8594 (tdesc_feature): Inherit from tdesc_element.
8595 (tdesc_feature::accept): New function.
8596 (target_desc): Inherit from tdesc_element.
8597 (target_desc::target_desc): New.
8598 (target_desc::~target_desc): New.
8599 (target_desc::accept): New.
8600 (allocate_target_description): Use new.
8601 (free_target_description): Use delete.
8602 (print_c_tdesc): New class.
8603 (maint_print_c_tdesc_cmd): Adjust.
8604
8605 * features/aarch64.c: Re-generated.
8606 * features/arc-arcompact.c: Re-generated.
8607 * features/arc-v2.c: Re-generated.
8608 * features/arm/arm-with-iwmmxt.c: Re-generated.
8609 * features/arm/arm-with-m.c: Re-generated.
8610 * features/arm/arm-with-m-fpa-layout.c: Re-generated.
8611 * features/arm/arm-with-m-vfp-d16.c: Re-generated.
8612 * features/arm/arm-with-neon.c: Re-generated.
8613 * features/arm/arm-with-vfpv2.c: Re-generated.
8614 * features/arm/arm-with-vfpv3.c: Re-generated.
8615 * features/i386/amd64-avx-avx512.c: Re-generated.
8616 * features/i386/amd64-avx-avx512-linux.c: Re-generated.
8617 * features/i386/amd64-avx.c: Re-generated.
8618 * features/i386/amd64-avx-linux.c: Re-generated.
8619 * features/i386/amd64-avx-mpx-avx512-pku.c: Re-generated.
8620 * features/i386/amd64-avx-mpx-avx512-pku-linux.c: Re-generated.
8621 * features/i386/amd64-avx-mpx.c: Re-generated.
8622 * features/i386/amd64-avx-mpx-linux.c: Re-generated.
8623 * features/i386/amd64.c: Re-generated.
8624 * features/i386/amd64-linux.c: Re-generated.
8625 * features/i386/amd64-mpx.c: Re-generated.
8626 * features/i386/amd64-mpx-linux.c: Re-generated.
8627 * features/i386/i386-avx-avx512.c: Re-generated.
8628 * features/i386/i386-avx-avx512-linux.c: Re-generated.
8629 * features/i386/i386-avx.c: Re-generated.
8630 * features/i386/i386-avx-linux.c: Re-generated.
8631 * features/i386/i386-avx-mpx-avx512-pku.c: Re-generated.
8632 * features/i386/i386-avx-mpx-avx512-pku-linux.c: Re-generated.
8633 * features/i386/i386-avx-mpx.c: Re-generated.
8634 * features/i386/i386-avx-mpx-linux.c: Re-generated.
8635 * features/i386/i386.c: Re-generated.
8636 * features/i386/i386-linux.c: Re-generated.
8637 * features/i386/i386-mmx.c: Re-generated.
8638 * features/i386/i386-mmx-linux.c: Re-generated.
8639 * features/i386/i386-mpx.c: Re-generated.
8640 * features/i386/i386-mpx-linux.c: Re-generated.
8641 * features/i386/x32-avx-avx512.c: Re-generated.
8642 * features/i386/x32-avx-avx512-linux.c: Re-generated.
8643 * features/i386/x32-avx.c: Re-generated.
8644 * features/i386/x32-avx-linux.c: Re-generated.
8645 * features/i386/x32.c: Re-generated.
8646 * features/i386/x32-linux.c: Re-generated.
8647 * features/microblaze.c: Re-generated.
8648 * features/microblaze-with-stack-protect.c: Re-generated.
8649 * features/mips64-dsp-linux.c: Re-generated.
8650 * features/mips64-linux.c: Re-generated.
8651 * features/mips-dsp-linux.c: Re-generated.
8652 * features/mips-linux.c: Re-generated.
8653 * features/nds32.c: Re-generated.
8654 * features/nios2.c: Re-generated.
8655 * features/nios2-linux.c: Re-generated.
8656 * features/rs6000/powerpc-32.c: Re-generated.
8657 * features/rs6000/powerpc-32l.c: Re-generated.
8658 * features/rs6000/powerpc-403.c: Re-generated.
8659 * features/rs6000/powerpc-403gc.c : Re-generated.
8660 * features/rs6000/powerpc-405.c: Re-generated.
8661 * features/rs6000/powerpc-505.c: Re-generated.
8662 * features/rs6000/powerpc-601.c: Re-generated.
8663 * features/rs6000/powerpc-602.c: Re-generated.
8664 * features/rs6000/powerpc-603.c: Re-generated.
8665 * features/rs6000/powerpc-604.c: Re-generated.
8666 * features/rs6000/powerpc-64.c: Re-generated.
8667 * features/rs6000/powerpc-64l.c: Re-generated.
8668 * features/rs6000/powerpc-7400.c: Re-generated.
8669 * features/rs6000/powerpc-750.c: Re-generated.
8670 * features/rs6000/powerpc-860.c: Re-generated.
8671 * features/rs6000/powerpc-altivec32.c: Re-generated.
8672 * features/rs6000/powerpc-altivec32l.c: Re-generated.
8673 * features/rs6000/powerpc-altivec64.c: Re-generated.
8674 * features/rs6000/powerpc-altivec64l.c: Re-generated.
8675 * features/rs6000/powerpc-cell32l.c: Re-generated.
8676 * features/rs6000/powerpc-cell64l.c: Re-generated.
8677 * features/rs6000/powerpc-e500.c: Re-generated.
8678 * features/rs6000/powerpc-e500l.c: Re-generated.
8679 * features/rs6000/powerpc-isa205-32l.c: Re-generated.
8680 * features/rs6000/powerpc-isa205-64l.c: Re-generated.
8681 * features/rs6000/powerpc-isa205-altivec32l.c: Re-generated.
8682 * features/rs6000/powerpc-isa205-altivec64l.c: Re-generated.
8683 * features/rs6000/powerpc-isa205-vsx32l.c: Re-generated.
8684 * features/rs6000/powerpc-isa205-vsx64l.c: Re-generated.
8685 * features/rs6000/powerpc-vsx32.c: Re-generated.
8686 * features/rs6000/powerpc-vsx32l.c: Re-generated.
8687 * features/rs6000/powerpc-vsx64.c: Re-generated.
8688 * features/rs6000/powerpc-vsx64l.c: Re-generated.
8689 * features/rs6000/rs6000.c: Re-generated.
8690 * features/s390-linux32.c: Re-generated.
8691 * features/s390-linux32v1.c: Re-generated.
8692 * features/s390-linux32v2.c: Re-generated.
8693 * features/s390-linux64.c: Re-generated.
8694 * features/s390-linux64v1.c: Re-generated.
8695 * features/s390-linux64v2.c: Re-generated.
8696 * features/s390-te-linux64.c: Re-generated.
8697 * features/s390-tevx-linux64.c: Re-generated.
8698 * features/s390-vx-linux64.c: Re-generated.
8699 * features/s390x-linux64.c: Re-generated.
8700 * features/s390x-linux64v1.c: Re-generated.
8701 * features/s390x-linux64v2.c: Re-generated.
8702 * features/s390x-te-linux64.c: Re-generated.
8703 * features/s390x-tevx-linux64.c: Re-generated.
8704 * features/s390x-vx-linux64.c: Re-generated.
8705 * features/sparc/sparc32-solaris.c: Re-generated.
8706 * features/sparc/sparc64-solaris.c: Re-generated.
8707 * features/tic6x-c62x.c: Re-generated.
8708 * features/tic6x-c62x-linux.c: Re-generated.
8709 * features/tic6x-c64x.c: Re-generated.
8710 * features/tic6x-c64x-linux.c: Re-generated.
8711 * features/tic6x-c64xp.c: Re-generated.
8712 * features/tic6x-c64xp-linux.c: Re-generated.
8713
8714 2017-07-26 Yao Qi <yao.qi@linaro.org>
8715
8716 * i386-linux-tdep.c (i386_linux_read_description): New function.
8717 (i386_linux_core_read_description): Call
8718 i386_linux_read_description.
8719 * i386-linux-tdep.h (i386_linux_read_description): Declare.
8720 (tdesc_i386_linux, tdesc_i386_mmx_linux): Remove declarations.
8721 (tdesc_i386_avx_linux, tdesc_i386_mpx_linux): Likewise
8722 (tdesc_i386_avx_mpx_linux, tdesc_i386_avx_avx512_linux): Likewise.
8723 (tdesc_i386_avx_mpx_avx512_pku_linux): Likewise.
8724 * x86-linux-nat.c (x86_linux_read_description): Call
8725 i386_linux_read_description.
8726
8727 2017-07-26 Yao Qi <yao.qi@linaro.org>
8728
8729 * NEWS: Mention it.
8730 * features/Makefile (%.c: %.xml): Pass the xml file name to
8731 command "maint print c-tdesc".
8732 * target-descriptions.c (maint_print_c_tdesc_cmd): Get file
8733 name from 'arg'.
8734
8735 2017-07-26 Yao Qi <yao.qi@linaro.org>
8736
8737 * target-descriptions.c (target_desc): Add ctor and dtor. Do
8738 in-class initialization.
8739 (tdesc_create_feature): Call new instead of XCNEW.
8740 (free_target_description): Ue delete.
8741
8742 2017-07-25 John Baldwin <jhb@FreeBSD.org>
8743
8744 * configure.nat: Add "-lkvm" for NetBSD/sparc64 and fix typo.
8745
8746 2017-07-25 Yao Qi <yao.qi@linaro.org>
8747
8748 * amd64-tdep.c (amd64_init_abi): Make argument default_tdesc
8749 constant.
8750 (amd64_x32_init_abi): Likewise.
8751 * amd64-tdep.h (amd64_init_abi): Update declaration.
8752 (amd64_x32_init_abi): Likewise.
8753
8754 2017-07-25 Yao Qi <yao.qi@linaro.org>
8755
8756 PR tdep/21717
8757 * arm-linux-nat.c (arm_linux_fetch_inferior_registers): Update
8758 condition for FPSCR.
8759 (arm_linux_store_inferior_registers): Likewise.
8760
8761 2017-07-22 Tom Tromey <tom@tromey.com>
8762
8763 * break-catch-syscall.c (struct catch_syscall_inferior_data)
8764 <syscalls_counts>: Now a std::vector.
8765 (get_catch_syscall_inferior_data): Use "new".
8766 (catch_syscall_inferior_data_cleanup): Use "delete".
8767 (insert_catch_syscall, remove_catch_syscall)
8768 (clear_syscall_counts): Update.
8769
8770 2017-07-22 Tom Tromey <tom@tromey.com>
8771
8772 * break-catch-syscall.c (syscall_catchpoint)
8773 <syscalls_to_be_caught>: Now a std::vector<int>
8774 (~syscall_catchpoint): Remove.
8775 (insert_catch_syscall, remove_catch_syscall)
8776 (breakpoint_hit_catch_syscall, print_one_catch_syscall)
8777 (print_mention_catch_syscall, print_recreate_catch_syscall):
8778 Update.
8779 (create_syscall_event_catchpoint): Change type of "filter"
8780 parameter.
8781 (catch_syscall_split_args): Return a std::vector.
8782 (catch_syscall_command_1, catching_syscall_number_1): Update.
8783
8784 2017-07-22 Tom Tromey <tom@tromey.com>
8785
8786 * break-catch-throw.c (struct exception_catchpoint)
8787 <exception_rx>: Now a std::string.
8788 (~exception_catchpoint): Remove.
8789 (print_one_detail_exception_catchpoint): Update.
8790 (handle_gnu_v3_exceptions): Change type of except_rx.
8791 (extract_exception_regexp): Return a std::string.
8792 (catch_exception_command_1): Update.
8793
8794 2017-07-22 Tom Tromey <tom@tromey.com>
8795
8796 * break-catch-sig.c (gdb_signal_type): Remove typedef.
8797 (struct signal_catchpoint) <signals_to_be_caught>: Now a
8798 std::vector.
8799 <catch_all>: Now a bool.
8800 (~signal_catchpoint): Remove.
8801 (signal_catchpoint_insert_location)
8802 (signal_catchpoint_remove_location)
8803 (signal_catchpoint_breakpoint_hit, signal_catchpoint_print_one)
8804 (signal_catchpoint_print_mention)
8805 (signal_catchpoint_print_recreate)
8806 (signal_catchpoint_explains_signal): Update.
8807 (create_signal_catchpoint): Change type of "filter" and
8808 "catch_all".
8809 (catch_signal_split_args): Return a std::vector. Change type of
8810 "catch_all".
8811 (catch_signal_command): Update.
8812
8813 2017-07-20 Pedro Alves <palves@redhat.com>
8814
8815 * ada-lang.c (ada_language_defn): Make extern.
8816 (_initialize_ada_language): Remove add_language call.
8817 * c-lang.c (c_language_defn, cplus_language_defn)
8818 (asm_language_defn, minimal_language_defn): Make extern.
8819 (_initialize_c_language): Delete.
8820 * completer.c (compare_cstrings): Delete, moved to utils.h.
8821 * d-lang.c (d_language_defn): Make extern.
8822 (_initialize_d_language): Remove add_language calls.
8823 * defs.h (enum language): Add comment.
8824 * f-lang.c (f_language_defn): Make extern.
8825 (_initialize_f_language): Remove add_language call.
8826 * go-lang.c (go_language_defn): Make extern.
8827 (_initialize_go_language): Remove add_language call.
8828 * language.c: Include <algorithm>.
8829 (languages): Redefine as const array.
8830 (languages_size, languages_allocsize, DEFAULT_ALLOCSIZE): Delete.
8831 (set_language_command): Handle "local". Use for-range loop.
8832 (set_language): Remove loop.
8833 (language_enum): Rewrite.
8834 (language_def, language_str): Remove loops.
8835 (add_language): Delete.
8836 (add_set_language_command): New, based on add_languages.
8837 (skip_language_trampoline): Adjust.
8838 (local_language_defn): Delete.
8839 (language_gdbarch_post_init): Adjust.
8840 (_initialize_language): Remove add_language calls. Call
8841 add_set_language_command.
8842 * language.h (add_language): Delete.
8843 (auto_language_defn)
8844 (unknown_language_defn, minimal_language_defn, ada_language_defn)
8845 (asm_language_defn, c_language_defn, cplus_language_defn)
8846 (d_language_defn, f_language_defn, go_language_defn)
8847 (m2_language_defn, objc_language_defn, opencl_language_defn)
8848 (pascal_language_defn, rust_language_defn): Declare.
8849 * m2-lang.c (m2_language_defn): Make extern.
8850 (_initialize_m2_language): Remove add_language call.
8851 * objc-lang.c (objc_language_defn): Make extern.
8852 (_initialize_objc_language): Remove add_language call.
8853 * opencl-lang.c (opencl_language_defn): Make extern.
8854 (_initialize_opencl_language): Remove add_language call.
8855 * p-lang.c (pascal_language_defn): Make extern.
8856 (_initialize_pascal_language): Delete.
8857 * rust-lang.c (rust_language_defn): Make extern.
8858 (_initialize_rust_language): Delete.
8859 * utils.h (compare_cstrings): New static inline function.
8860
8861 2017-07-20 Pedro Alves <palves@redhat.com>
8862
8863 * ada-lang.c (ada_to_fixed_type_1): Adjust.
8864 (get_var_value): Constify parameters.
8865 (get_int_var_value): Change prototype.
8866 (to_fixed_range_type): Adjust.
8867 * ada-lang.h (get_int_var_value): Change prototype.
8868
8869 2017-07-20 Pedro Alves <palves@redhat.com>
8870
8871 * dwarf2read.c (dw2_lookup_symbol): Use
8872 SYMBOL_MATCHES_SEARCH_NAME.
8873 * psymtab.c (psym_lookup_symbol): Use SYMBOL_MATCHES_SEARCH_NAME.
8874
8875 2017-07-20 Pedro Alves <palves@redhat.com>
8876
8877 * block.c (block_iter_name_step, block_iter_name_first)
8878 (block_iter_name_next): Delete.
8879 (block_lookup_symbol_primary): Adjust to use
8880 dict_iter_match_first/dict_iter_match_next.
8881 * block.h (block_iter_name_first, block_iter_name_next): Delete
8882 declarations.
8883 (ALL_BLOCK_SYMBOLS_WITH_NAME): Adjust to use
8884 dict_iter_match_first/dict_iter_match_next.
8885
8886 2017-07-20 Pedro Alves <palves@redhat.com>
8887
8888 * cp-support.c (cp_find_first_component_aux): Add missing case for
8889 end of string.
8890
8891 2017-07-18 David Blaikie <dblaikie@gmail.com>
8892
8893 * dwarf2read.c (create_cus_hash_table): Re-add lost initialization
8894 of dwo_cu's dwo_file.
8895
8896 2017-07-18 Yao Qi <yao.qi@linaro.org>
8897
8898 * remote.c (store_registers_using_G): Remove one line comment.
8899
8900 2017-07-18 Yao Qi <yao.qi@linaro.org>
8901
8902 * regcache.c (regcache_cpy): Simplify it.
8903 (regcache::cpy_no_passthrough): Remove it.
8904 * regcache.h (cpy_no_passthrough): Remove it.
8905 (regcache_dup, regcache_cpy): Update comments.
8906
8907 2017-07-18 Pedro Alves <palves@redhat.com>
8908
8909 * remote-sim.c (sim_command_completer): Adjust to work with a
8910 completion_tracker instead of a VEC.
8911
8912 2017-07-17 Pedro Alves <palves@redhat.com>
8913
8914 * completer.c (complete_source_filenames): New function.
8915 (complete_address_and_linespec_locations): New function.
8916 (location_completer): Use complete_address_and_linespec_locations.
8917 (completion_tracker::build_completion_result): Honor the tracker's
8918 request to suppress append.
8919 * completer.h (completion_tracker::suppress_append_ws)
8920 (completion_tracker::set_suppress_append_ws): New methods.
8921 (completion_tracker::m_suppress_append_ws): New field.
8922 (complete_source_filenames): New declaration.
8923 * linespec.c (linespec_complete_what): New.
8924 (struct ls_parser) <complete_what, completion_word,
8925 completion_quote_char, completion_quote_end, completion_tracker>:
8926 New fields.
8927 (string_find_incomplete_keyword_at_end): New.
8928 (linespec_lexer_lex_string): Record quote char. If in completion
8929 mode, don't throw.
8930 (linespec_lexer_consume_token): Advance the completion word point.
8931 (linespec_lexer_peek_token): Save/restore completion info.
8932 (save_stream_and_consume_token): New.
8933 (set_completion_after_number): New.
8934 (linespec_parse_basic): Set what to complete next depending on
8935 token. Handle function and label completions specially.
8936 (parse_linespec): Disable objc shortcut in completion mode. Set
8937 what to complete next depending on token type. Skip keyword if in
8938 completion mode.
8939 (complete_linespec_component, linespec_complete): New.
8940 * linespec.h (linespec_complete): Declare.
8941
8942 2017-07-17 Pedro Alves <palves@redhat.com>
8943
8944 * linespec.c (linespec_lexer_lex_string, find_toplevel_char):
8945 Handle 'operator<' / 'operator<<'.
8946
8947 2017-07-17 Pedro Alves <palves@redhat.com>
8948
8949 * completer.c (collect_explicit_location_matches): Handle
8950 MATCH_LABEL.
8951 (convert_explicit_location_to_linespec): New, factored out from
8952 ...
8953 (convert_explicit_location_to_sals): ... this.
8954 (complete_label): New.
8955 (linespec_complete_label, find_label_symbols_in_block): New.
8956 (find_label_symbols): Add completion_mode parameter and adjust to
8957 call find_label_symbols_in_block.
8958 * linespec.h (linespec_complete_label): Declare.
8959
8960 2017-07-17 Pedro Alves <palves@redhat.com>
8961
8962 * ada-lang.c (ada_collect_symbol_completion_matches): Add
8963 complete_symbol_mode parameter.
8964 * cli/cli-cmds.c (complete_command): Get the completion result out
8965 of the handle_brkchars tracker if used a custom word point.
8966 * completer.c: Include "linespec.h".
8967 (enum explicit_location_match_type) <MATCH_LINE>: New enumerator.
8968 (advance_to_expression_complete_word_point): New.
8969 (completion_tracker::completes_to_completion_word): New.
8970 (complete_files_symbols): Pass down
8971 complete_symbol_mode::EXPRESSION.
8972 (explicit_options, probe_options): New.
8973 (collect_explicit_location_matches): Complete on the
8974 explictit_loc->foo instead of word. Use
8975 linespec_complete_function. Handle MATCH_LINE. Handle offering
8976 keyword and options completions.
8977 (backup_text_ptr): Delete.
8978 (skip_keyword): New.
8979 (complete_explicit_location): Remove 'word' parameter. Add
8980 language, quoted_arg_start and quoted_arg_end parameters.
8981 Rewrite, parsing left to right.
8982 (location_completer): Rewrite.
8983 (location_completer_handle_brkchars): New function.
8984 (symbol_completer): Pass down complete_symbol_mode::EXPRESSION.
8985 (enum complete_line_internal_reason): Adjust comments.
8986 (completion_tracker::discard_completions): New.
8987 (completer_handle_brkchars_func_for_completer): Handle
8988 location_completer.
8989 (gdb_custom_word_point_brkchars)
8990 (gdb_org_rl_basic_quote_characters): New.
8991 (gdb_completion_word_break_characters_throw)
8992 (completion_find_completion_word): Handle trackers that use a
8993 custom word point.
8994 (completion_tracker::advance_custom_word_point_by): New.
8995 (completion_tracker::build_completion_result): Don't rely on
8996 readline appending the quote char.
8997 (gdb_rl_attempted_completion_function_throw): Handle trackers that
8998 use a custom word point.
8999 (gdb_rl_attempted_completion_function): Restore
9000 rl_basic_quote_characters.
9001 * completer.h (class completion_tracker): Extend intro comment.
9002 (completion_tracker::set_quote_char)
9003 (completion_tracker::quote_char)
9004 (completion_tracker::set_use_custom_word_point)
9005 (completion_tracker::use_custom_word_point)
9006 (completion_tracker::custom_word_point)
9007 (completion_tracker::set_custom_word_point)
9008 (completion_tracker::advance_custom_word_point_by)
9009 (completion_tracker::completes_to_completion_word)
9010 (completion_tracker::discard_completions): New methods.
9011 (completion_tracker::m_quote_char)
9012 (completion_tracker::m_use_custom_word_point)
9013 (completion_tracker::m_custom_word_point): New fields.
9014 (advance_to_expression_complete_word_point): Declare.
9015 * f-lang.c (f_collect_symbol_completion_matches): Add
9016 complete_symbol_mode parameter.
9017 * language.h (struct language_defn)
9018 <la_collect_symbol_completion_matches>: Add complete_symbol_mode
9019 parameter.
9020 * linespec.c (linespec_keywords): Add NULL terminator. Make extern.
9021 (linespec_complete_function): New function.
9022 (linespec_lexer_lex_keyword): Adjust.
9023 * linespec.h (linespec_keywords, linespec_complete_function): New
9024 declarations.
9025 * location.c (find_end_quote): New function.
9026 (explicit_location_lex_one): Add explicit_completion_info
9027 parameter. Save quoting info. Don't throw if being called for
9028 completion. Don't handle Ada operators here.
9029 (is_cp_operator, skip_op_false_positives, first_of)
9030 (explicit_location_lex_one_function): New function.
9031 (string_to_explicit_location): Replace 'dont_throw' parameter with
9032 an explicit_completion_info pointer parameter. Handle it. Don't
9033 use explicit_location_lex_one to lex function names. Use
9034 explicit_location_lex_one_function instead.
9035 * location.h (struct explicit_completion_info): New.
9036 (string_to_explicit_location): Replace 'dont_throw' parameter with
9037 an explicit_completion_info pointer parameter.
9038 * symtab.c (default_collect_symbol_completion_matches_break_on):
9039 Add complete_symbol_mode parameter. Handle LINESPEC mode.
9040 (default_collect_symbol_completion_matches)
9041 (collect_symbol_completion_matches): Add complete_symbol_mode
9042 parameter.
9043 (collect_symbol_completion_matches_type): Pass down
9044 complete_symbol_mode::EXPRESSION.
9045 (collect_file_symbol_completion_matches): Add complete_symbol_mode
9046 parameter. Handle LINESPEC mode.
9047 * symtab.h (complete_symbol_mode): New.
9048 (default_collect_symbol_completion_matches_break_on)
9049 (default_collect_symbol_completion_matches)
9050 (collect_symbol_completion_matches)
9051 (collect_file_symbol_completion_matches): Add complete_symbol_mode
9052 parameter.
9053
9054 2017-07-17 Pedro Alves <palves@redhat.com>
9055
9056 * utils.c (enum class strncmp_iw_mode): New.
9057 (strcmp_iw): Rename to ...
9058 (strncmp_iw_with_mode): ... this. Add string2_len and mode
9059 parameters. Handle them.
9060 (strncmp_iw): New.
9061 (strcmp_iw): Reimplement as wrapper around strncmp_iw_with_mode.
9062 * utils.h (strncmp_iw): Declare.
9063 (strcmp_iw): Move describing comments here.
9064
9065 2017-07-17 Pedro Alves <palves@redhat.com>
9066
9067 * c-exp.y (operator_stoken): Use CP_OPERATOR_LEN and
9068 CP_OPERATOR_STR.
9069 * c-typeprint.c (is_type_conversion_operator): Use
9070 CP_OPERATOR_STR.
9071 * cp-support.c (LENGTH_OF_OPERATOR): Delete.
9072 (cp_find_first_component_aux): Use CP_OPERATOR_STR and
9073 CP_OPERATOR_LEN.
9074 * cp-support.h (CP_OPERATOR_STR, CP_OPERATOR_LEN): New.
9075 * gnu-v2-abi.c (gnuv2_is_operator_name): Use CP_OPERATOR_STR.
9076 * gnu-v3-abi.c (gnuv3_is_operator_name): Use CP_OPERATOR_STR.
9077 * linespec.c (linespec_lexer_lex_string): Use CP_OPERATOR_LEN and
9078 CP_OPERATOR_STR.
9079 * location.c: Include "cp-support.h".
9080 (explicit_location_lex_one): Use CP_OPERATOR_LEN and
9081 CP_OPERATOR_STR.
9082 * symtab.c (operator_chars): Use CP_OPERATOR_STR and
9083 CP_OPERATOR_LEN.
9084
9085 2017-07-17 Pedro Alves <palves@redhat.com>
9086
9087 * cli/cli-cmds.c (complete_command): Use a completion tracker
9088 along with completion_find_completion_word for handle_brkchars
9089 phase.
9090 * completer.c (RL_QF_SINGLE_QUOTE, RL_QF_DOUBLE_QUOTE)
9091 (RL_QF_BACKSLASH, RL_QF_OTHER_QUOTE): New.
9092 (struct gdb_rl_completion_word_info): New.
9093 (gdb_rl_find_completion_word): New.
9094 (completion_find_completion_word): New.
9095 * completer.h (completion_find_completion_word): Declare.
9096
9097 2017-07-17 Pedro Alves <palves@redhat.com>
9098
9099 * ada-lang.c (symbol_completion_match): Adjust comments.
9100 (symbol_completion_add): Replace vector parameter with
9101 completion_tracker parameter. Use it.
9102 (ada_make_symbol_completion_list): Rename to...
9103 (ada_collect_symbol_completion_matches): ... this. Add
9104 completion_tracker parameter and use it.
9105 (ada_language_defn): Adjust.
9106 * break-catch-syscall.c (catch_syscall_completer): Adjust
9107 prototype and work with completion_tracker instead of VEC.
9108 * breakpoint.c (condition_completer): Adjust prototype and work
9109 with completion_tracker instead of VEC.
9110 * c-lang.c (c_language_defn, cplus_language_defn)
9111 (asm_language_defn, minimal_language_defn): Adjust to renames.
9112 * cli/cli-cmds.c (complete_command): Rework using
9113 completion_tracker. Catch exceptions when completing.
9114 * cli/cli-decode.c (integer_unlimited_completer)
9115 (complete_on_cmdlist, complete_on_enum): Adjust prototype and work
9116 with completion_tracker instead of VEC.
9117 * command.h (struct completion_tracker): Forward declare.
9118 (completer_ftype, completer_handle_brkchars_ftype): Change
9119 types.
9120 (complete_on_cmdlist, complete_on_enum): Adjust.
9121 * completer.c: Include <algorithm>.
9122 (struct gdb_completer_state): New.
9123 (current_completion): New global.
9124 (readline_line_completion_function): Delete.
9125 (noop_completer, filename_completer)
9126 (filename_completer_handle_brkchars, complete_files_symbols)
9127 (linespec_location_completer): Adjust to work with a
9128 completion_tracker instead of a VEC.
9129 (string_or_empty): New.
9130 (collect_explicit_location_matches): Adjust to work with a
9131 completion_tracker instead of a VEC.
9132 (explicit_location_completer): Rename to ...
9133 (complete_explicit_location): ... this and adjust to work with a
9134 completion_tracker instead of a VEC.
9135 (location_completer): Adjust to work with a completion_tracker
9136 instead of a VEC.
9137 (add_struct_fields): Adjust to work with a completion_list instead
9138 of VEC.
9139 (expression_completer): Rename to ...
9140 (complete_expression): ... this and adjust to work with a
9141 completion_tracker instead of a VEC. Use complete_files_symbols.
9142 (expression_completer): Reimplement on top of complete_expression.
9143 (symbol_completer): Adjust to work with a completion_tracker
9144 instead of a VEC.
9145 (enum complete_line_internal_reason): Add describing comments.
9146 (complete_line_internal_normal_command): Adjust to work with a
9147 completion_tracker instead of a VEC.
9148 (complete_line_internal): Rename to ...
9149 (complete_line_internal_1): ... this and adjust to work with a
9150 completion_tracker instead of a VEC. Assert TEXT is NULL in the
9151 handle_brkchars phase.
9152 (new_completion_tracker): Delete.
9153 (complete_line_internal): Reimplement as TRY/CATCH wrapper around
9154 complete_line_internal_1.
9155 (free_completion_tracker): Delete.
9156 (INITIAL_COMPLETION_HTAB_SIZE): New.
9157 (completion_tracker::completion_tracker)
9158 (completion_tracker::~completion_tracker): New.
9159 (maybe_add_completion): Delete.
9160 (completion_tracker::maybe_add_completion)
9161 (completion_tracker::add_completion)
9162 (completion_tracker::add_completions): New.
9163 (throw_max_completions_reached_error): Delete.
9164 (complete_line): Adjust to work with a completion_tracker instead
9165 of a VEC. Don't create a completion_tracker_t or check for max
9166 completions here.
9167 (command_completer, command_completer_handle_brkchars)
9168 (signal_completer, reg_or_group_completer_1)
9169 (reg_or_group_completer, default_completer_handle_brkchars):
9170 Adjust to work with a completion_tracker.
9171 (gdb_completion_word_break_characters_throw): New.
9172 (gdb_completion_word_break_characters): Reimplement.
9173 (line_completion_function): Delete.
9174 (completion_tracker::recompute_lowest_common_denominator)
9175 (expand_preserving_ws)
9176 (completion_tracker::build_completion_result)
9177 (completion_result::completion_result)
9178 (completion_result::completion_result)
9179 (completion_result::~completion_result)
9180 (completion_result::completion_result)
9181 (completion_result::release_match_list, compare_cstrings)
9182 (completion_result::sort_match_list)
9183 (completion_result::reset_match_list)
9184 (gdb_rl_attempted_completion_function_throw)
9185 (gdb_rl_attempted_completion_function): New.
9186 * completer.h (completion_list, struct completion_result)
9187 (class completion_tracker): New.
9188 (complete_line): Add completion_tracker parameter.
9189 (readline_line_completion_function): Delete.
9190 (gdb_rl_attempted_completion_function): New.
9191 (noop_completer, filename_completer, expression_completer)
9192 (location_completer, symbol_completer, command_completer)
9193 (signal_completer, reg_or_group_completer): Update prototypes.
9194 (completion_tracker_t, new_completion_tracker)
9195 (make_cleanup_free_completion_tracker): Delete.
9196 (enum maybe_add_completion_enum): Delete.
9197 (maybe_add_completion): Delete.
9198 (throw_max_completions_reached_error): Delete.
9199 * corefile.c (complete_set_gnutarget): Adjust to work with a
9200 completion_tracker instead of a VEC.
9201 * cp-abi.c (cp_abi_completer): Adjust to work with a
9202 completion_tracker instead of a VEC.
9203 * d-lang.c (d_language_defn): Adjust.
9204 * disasm.c (disassembler_options_completer): Adjust to work with a
9205 completion_tracker instead of a VEC.
9206 * f-lang.c (f_make_symbol_completion_list): Rename to ...
9207 (f_collect_symbol_completion_matches): ... this. Adjust to work
9208 with a completion_tracker instead of a VEC.
9209 (f_language_defn): Adjust.
9210 * go-lang.c (go_language_defn): Adjust.
9211 * guile/scm-cmd.c (cmdscm_add_completion, cmdscm_completer):
9212 Adjust to work with a completion_tracker instead of a VEC.
9213 * infrun.c (handle_completer): Likewise.
9214 * interps.c (interpreter_completer): Likewise.
9215 * interps.h (interpreter_completer): Likewise.
9216 * language.c (unknown_language_defn, auto_language_defn)
9217 (local_language_defn): Adjust.
9218 * language.h (language_defn::la_make_symbol_completion_list):
9219 Rename to ...
9220 (language_defn::la_collect_symbol_completion_matches): ... this
9221 and adjust to work with a completion_tracker instead of a VEC.
9222 * m2-lang.c (m2_language_defn): Adjust.
9223 * objc-lang.c (objc_language_defn): Adjust.
9224 * opencl-lang.c (opencl_language_defn): Adjust.
9225 * p-lang.c (pascal_language_defn): Adjust.
9226 * python/py-cmd.c (cmdpy_completer_helper): Handle NULL word.
9227 (cmdpy_completer_handle_brkchars, cmdpy_completer): Adjust to work
9228 with a completion_tracker.
9229 * rust-lang.c (rust_language_defn): Adjust.
9230 * symtab.c (free_completion_list, do_free_completion_list)
9231 (return_val, completion_tracker): Delete.
9232 (completion_list_add_name, completion_list_add_symbol)
9233 (completion_list_add_msymbol, completion_list_objc_symbol)
9234 (completion_list_add_fields, add_symtab_completions): Add
9235 completion_tracker parameter and use it.
9236 (default_make_symbol_completion_list_break_on_1): Rename to...
9237 (default_collect_symbol_completion_matches_break_on): ... this.
9238 Add completion_tracker parameter and use it instead of allocating
9239 a completion tracker here.
9240 (default_make_symbol_completion_list_break_on): Delete old
9241 implementation.
9242 (default_make_symbol_completion_list): Delete.
9243 (default_collect_symbol_completion_matches): New.
9244 (make_symbol_completion_list): Delete.
9245 (collect_symbol_completion_matches): New.
9246 (make_symbol_completion_type): Rename to ...
9247 (collect_symbol_completion_matches_type): ... this. Add
9248 completion_tracker parameter and use it instead of VEC.
9249 (make_file_symbol_completion_list_1): Rename to...
9250 (collect_file_symbol_completion_matches): ... this. Add
9251 completion_tracker parameter and use it instead of VEC.
9252 (make_file_symbol_completion_list): Delete.
9253 (add_filename_to_list): Use completion_list instead of a VEC.
9254 (add_partial_filename_data::list): Now a completion_list.
9255 (make_source_files_completion_list): Work with a completion_list
9256 instead of a VEC.
9257 * symtab.h: Include "completer.h".
9258 (default_make_symbol_completion_list_break_on)
9259 (default_make_symbol_completion_list, make_symbol_completion_list)
9260 (make_symbol_completion_type, make_file_symbol_completion_list)
9261 (make_source_files_completion_list): Delete.
9262 (default_collect_symbol_completion_matches_break_on)
9263 (default_collect_symbol_completion_matches)
9264 (collect_symbol_completion_matches)
9265 (collect_symbol_completion_matches_type)
9266 (collect_file_symbol_completion_matches)
9267 (make_source_files_completion_list): New.
9268 * top.c (init_main): Don't install a rl_completion_entry_function
9269 hook. Install a rl_attempted_completion_function hook instead.
9270 * tui/tui-layout.c (layout_completer): Adjust to work with a
9271 completion_tracker.
9272 * tui/tui-regs.c (tui_reggroup_completer):
9273 * tui/tui-win.c (window_name_completer, focus_completer)
9274 (winheight_completer): Adjust to work with a completion_tracker.
9275 * value.c: Include "completer.h".
9276 (complete_internalvar): Adjust to work with a completion_tracker.
9277 * value.h (complete_internalvar): Likewise.
9278
9279 2017-07-17 Pedro Alves <palves@redhat.com>
9280
9281 * cli/cli-decode.c (set_cmd_completer_handle_brkchars): Adjust to
9282 renames.
9283 * cli/cli-decode.h (struct cmd_list_element) <completer>: Move
9284 comments to completer_ftype's declaration.
9285 <completer_handle_brkchars>: Change type to
9286 completer_handle_brkchars_ftype.
9287 * command.h (completer_ftype): Add describing comment and give
9288 names to parameters.
9289 (completer_ftype_void): Rename to ...
9290 (completer_handle_brkchars_ftype) ... this. Add describing comment.
9291 (set_cmd_completer_handle_brkchars): Adjust.
9292 * completer.c (filename_completer_handle_brkchars): New function.
9293 (complete_line_internal_normal_command): New function, factored
9294 out from ...
9295 (complete_line_internal): ... here.
9296 (command_completer_handle_brkchars)
9297 (default_completer_handle_brkchars)
9298 (completer_handle_brkchars_func_for_completer): New functions.
9299 * completer.h (set_gdb_completion_word_break_characters): Delete
9300 declaration.
9301 (completer_handle_brkchars_func_for_completer): New declaration.
9302 * python/py-cmd.c (cmdpy_completer_handle_brkchars): Adjust to use
9303 completer_handle_brkchars_func_for_completer.
9304
9305 2017-07-17 Pedro Alves <palves@redhat.com>
9306
9307 * completer.c (symbol_completer): New function, based on
9308 make_symbol_completion_list_fn.
9309 * completer.h (symbol_completer): New declaration.
9310 * guile/scm-cmd.c (cmdscm_completers): Adjust.
9311 * python/py-cmd.c (completers): Adjust.
9312 * symtab.c (make_symbol_completion_list_fn): Delete.
9313 * symtab.h (make_symbol_completion_list_fn): Delete.
9314 * cli/cli-decode.c (add_cmd): Adjust.
9315
9316 2017-07-17 Pedro Alves <palves@redhat.com>
9317
9318 * Makefile.in (COMMON_OBS): Add filename-seen-cache.o.
9319 * dwarf2read.c: Include "filename-seen-cache.h".
9320 * dwarf2read.c (dwarf2_per_objfile) <filenames_cache>: New field.
9321 (dw2_map_symbol_filenames): Build and use a filenames_seen_cache.
9322 * filename-seen-cache.c: New file.
9323 * filename-seen-cache.h: New file.
9324 * symtab.c: Include "filename-seen-cache.h".
9325 (struct filename_seen_cache, INITIAL_FILENAME_SEEN_CACHE_SIZE)
9326 (create_filename_seen_cache, clear_filename_seen_cache)
9327 (delete_filename_seen_cache, filename_seen): Delete, parts moved
9328 to filename-seen-cache.h/filename-seen-cache.c.
9329 (output_source_filename, sources_info)
9330 (maybe_add_partial_symtab_filename)
9331 (make_source_files_completion_list): Adjust to use
9332 filename_seen_cache.
9333
9334 2017-07-17 Pedro Alves <palves@redhat.com>
9335
9336 * dwarf2read.c (dwarf2_per_objfile): In-class initialize all
9337 fields.
9338 (dwarf2_per_objfile::dwarf2_per_objfile(objfile*, const
9339 dwarf2_debug_sections*)): New.
9340 (dwarf2_per_objfile::dwarf2_per_objfile(const
9341 dwarf2_per_objfile&)): Declare as deleted.
9342 (dwarf2_per_objfile::operator=): Declare as deleted.
9343 (dwarf2_per_objfile::dwarf2_per_objfile)
9344 (dwarf2_per_objfile::~dwarf2_per_objfile)
9345 (dwarf2_per_objfile::free_cached_comp_units): New.
9346 (dwarf2_has_info): dwarf2_per_objfile initialization code moved to
9347 ctor. Call dwarf2_per_objfile's ctor manually.
9348 (dwarf2_locate_sections): Deleted/refactored as ...
9349 (dwarf2_per_objfile::locate_sections): ... this new method.
9350 (free_cached_comp_units): Defer to
9351 dwarf2_per_objfile::free_cached_comp_units.
9352 (dwarf2_free_objfile): Call dwarf2_per_objfile's dtor manually.
9353
9354 2017-07-14 Tom Tromey <tom@tromey.com>
9355
9356 PR rust/21764:
9357 * rust-exp.y (convert_ast_to_expression): Add "want_type"
9358 parameter.
9359 <UNOP_SIZEOF>: Split into separate case.
9360 <UNOP_VAR_VALUE>: Handle want_type. Add error case.
9361
9362 2017-07-14 Tom Tromey <tom@tromey.com>
9363
9364 PR rust/21763:
9365 * symtab.c (symbol_matches_domain): Add language_rust to special
9366 case.
9367 * rust-exp.y (convert_ast_to_expression) <OP_VAR_VALUE>: Don't
9368 treat LOC_TYPEDEF symbols as variables.
9369
9370 2017-07-14 Pedro Alves <palves@redhat.com>
9371
9372 * symtab.c (make_file_symbol_completion_list_1): Iterate over
9373 symtabs matching all symtabs with SRCFILE as file name instead of
9374 only considering the first hit, with lookup_symtab.
9375
9376 2017-07-14 Simon Marchi <simon.marchi@ericsson.com>
9377
9378 * ax-gdb.c (gen_aggregate_elt_ref): Remove operand_name and
9379 operator_name parameters.
9380 (gen_expr): Update function call.
9381
9382 2017-07-14 Simon Marchi <simon.marchi@ericsson.com>
9383
9384 * dwarf2loc.h (dwarf2_compile_expr_to_ax): Remove gdbarch
9385 parameter.
9386 * symtab.h (struct symbol_computed_ops::tracepoint_var_ref):
9387 Likewise.
9388 * dwarf2loc.c (dwarf2_compile_expr_to_ax): Remove gdbarch
9389 parameter, use agent_expr::gdbarch instead, update function
9390 calls.
9391 (locexpr_tracepoint_var_ref): Likewise.
9392 (loclist_tracepoint_var_ref): Likewise.
9393 * ax-gdb.c (gen_trace_static_fields): Likewise.
9394 (gen_traced_pop): Likewise.
9395 (gen_frame_args_address): Likewise.
9396 (gen_frame_locals_address): Likewise.
9397 (gen_var_ref): Likewise.
9398 (gen_struct_ref_recursive): Likewise.
9399 (gen_static_field): Likewise.
9400 (gen_maybe_namespace_elt): Likewise.
9401 (gen_expr): Likewise.
9402 (gen_trace_for_var): Likewise.
9403 (gen_trace_for_expr): Likewise.
9404 (gen_trace_for_return_address): Likewise.
9405
9406 2017-07-14 Simon Marchi <simon.marchi@ericsson.com>
9407
9408 * ax-gdb.c (gen_deref, gen_address_of): Remove unused ax
9409 parameter.
9410 (gen_struct_ref, gen_expr, gen_expr_binop_rest): Update call.
9411
9412 2017-07-14 Simon Marchi <simon.marchi@ericsson.com>
9413
9414 * ax-gdb.c (gen_usual_unary): Remove exp parameter, get gdbarch
9415 from ax, update calls.
9416 (gen_usual_arithmetic): Likewise.
9417 (gen_integral_promotions): Likewise.
9418 (gen_bitfield_ref): Likewise.
9419 (gen_primitive_field): Likewise.
9420 (gen_struct_ref_recursive): Likewise.
9421 (gen_struct_ref): Likewise.
9422 (gen_maybe_namespace_elt): Likewise.
9423 (gen_struct_elt_for_reference): Likewise.
9424 (gen_namespace_elt): Likewise.
9425 (gen_aggregate_elt_ref): Likewise.
9426 (gen_expr): Get gdbarch from ax, update calls.
9427 (gen_expr_binop_rest): Likewise.
9428
9429 2017-07-13 Pedro Alves <palves@redhat.com>
9430
9431 * amd64-darwin-tdep.c (x86_darwin_init_abi_64): Pass tdesc_amd64
9432 as default tdesc.
9433 * amd64-dicos-tdep.c (amd64_dicos_init_abi):
9434 * amd64-fbsd-tdep.c (amd64fbsd_init_abi):
9435 * amd64-linux-tdep.c (amd64_linux_init_abi): Pass
9436 tdesc_amd64_linux as default tdesc. Get final tdesc from the
9437 tdep.
9438 (amd64_x32_linux_init_abi): Pass tdesc_x32_linux as default tdesc.
9439 Get final tdesc from the tdep.
9440 * amd64-nbsd-tdep.c (amd64nbsd_init_abi): Pass tdesc_amd64 as
9441 default tdesc.
9442 * amd64-obsd-tdep.c (amd64obsd_init_abi): Likewise.
9443 * amd64-sol2-tdep.c (amd64_sol2_init_abi): Likewise.
9444 * amd64-tdep.c (amd64_init_abi): Add 'default_tdesc' parameter.
9445 Use it as default tdesc.
9446 (amd64_x32_init_abi): Add 'default_tdesc' parameter, and pass it
9447 down to amd_init_abi. No longer handle fallback tdesc here.
9448 * amd64-tdep.h (tdesc_x32): Declare.
9449 (amd64_init_abi, amd64_x32_init_abi): Add 'default_tdesc'
9450 parameter.
9451 * amd64-windows-tdep.c (amd64_windows_init_abi): Pass tdesc_amd64
9452 as default tdesc.
9453
9454 2017-07-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
9455
9456 * s390-linux-tdep.c (s390_process_record): Add support for
9457 instructions new in arch12.
9458
9459 2017-07-11 John Baldwin <jhb@FreeBSD.org>
9460
9461 * amd64-bsd-nat.c (amd64bsd_fetch_inferior_registers): Use
9462 PT_GETFSBASE and PT_GETGSBASE.
9463 (amd64bsd_store_inferior_registers): Use PT_SETFSBASE and
9464 PT_SETGSBASE.
9465
9466 2017-07-11 John Baldwin <jhb@FreeBSD.org>
9467
9468 * features/Makefile (amd64.dat, amd64-avx.dat, amd64-mpx.dat)
9469 (amd64-avx-mpx.dat, amd64-avx-avx512.dat)
9470 (amd64-avx-mpx-avx512-pku.dat): Add i386/64bit-segments.xml in
9471 those rules.
9472 * features/i386/amd64-avx-avx512.xml: Add 64bit-segments.xml.
9473 * features/i386/amd64-avx-mpx-avx512-pku.xml: Add 64bit-segments.xml.
9474 * features/i386/amd64-avx-mpx.xml: Add 64bit-segments.xml.
9475 * features/i386/amd64-avx.xml: Add 64bit-segments.xml.
9476 * features/i386/amd64-mpx.xml: Add 64bit-segments.xml.
9477 * features/i386/amd64.xml: Add 64bit-segments.xml.
9478 * features/i386/amd64-avx-avx512.c: Regenerated.
9479 * features/i386/amd64-avx-mpx-avx512-pku.c: Regenerated.
9480 * features/i386/amd64-avx-mpx.c: Regenerated.
9481 * features/i386/amd64-avx.c: Regenerated.
9482 * features/i386/amd64-mpx.c: Regenerated.
9483 * features/i386/amd64.c: Regenerated.
9484 * regformats/i386/amd64-avx-avx512.dat: Regenerated.
9485 * regformats/i386/amd64-avx-mpx-avx512-pku.dat: Regenerated.
9486 * regformats/i386/amd64-avx-mpx.dat: Regenerated.
9487 * regformats/i386/amd64-avx.dat: Regenerated.
9488 * regformats/i386/amd64-mpx.dat: Regenerated.
9489 * regformats/i386/amd64.dat: Regenerated.
9490
9491 2017-07-10 Yao Qi <yao.qi@linaro.org>
9492
9493 * features/i386/amd64-avx-avx512-linux.c: Re-generated.
9494 * features/i386/amd64-avx-mpx-avx512-pku-linux.c: Re-generated.
9495
9496 2017-07-10 Anton Kolesov <Anton.Kolesov@synopsys.com>
9497
9498 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add setenv and
9499 unsetenv.
9500 * gnulib/aclocal.m4: Regenerate.
9501 * gnulib/config.in: Regenerate.
9502 * gnulib/configure: Regenerate.
9503 * gnulib/import/Makefile.am: Regenerate.
9504 * gnulib/import/Makefile.in: Regenerate.
9505 * gnulib/import/m4/gnulib-cache.m4: Regenerate.
9506 * gnulib/import/m4/gnulib-comp.m4: Regenerate.
9507 * gnulib/import/m4/environ.m4: New file.
9508 * gnulib/import/m4/setenv.m4: New file.
9509 * gnulib/import/setenv.c: New file.
9510 * gnulib/import/unsetenv.c: New file.
9511
9512 2017-07-09 Simon Marchi <simon.marchi@ericsson.com>
9513
9514 * compile/compile-loc2c.c (do_compile_dwarf_expr_to_c): Read
9515 address when op is DW_OP_addr.
9516
9517 2017-07-09 Tom Tromey <tom@tromey.com>
9518
9519 * dwarf2loc.c (dwarf2_evaluate_loc_desc_full): Reverse size
9520 check and apply to outer type.
9521
9522 2017-07-07 John Baldwin <jhb@FreeBSD.org>
9523
9524 * fbsd-tdep.c (LWPINFO_OFFSET, LWPINFO_PL_FLAGS)
9525 (LWPINFO64_PL_SIGINFO, LWPINFO32_PL_SIGINFO, PL_FLAG_SI)
9526 (SIZE64_SIGINFO_T, SIZE32_SIGINFO_T, fbsd_core_xfer_siginfo): New.
9527 (fbsd_init_abi): Install gdbarch "core_xfer_siginfo" method.
9528
9529 2017-07-07 John Baldwin <jhb@FreeBSD.org>
9530
9531 * fbsd-tdep.c (fbsd_core_thread_name): Use thread_section_name.
9532
9533 2017-07-07 John Baldwin <jhb@FreeBSD.org>
9534
9535 * corelow.c (get_core_siginfo): Remove.
9536 (core_xfer_partial): Use the gdbarch "core_xfer_siginfo" method
9537 instead of get_core_siginfo.
9538 * gdbarch.sh (core_xfer_siginfo): New gdbarch callback.
9539 * gdbarch.h: Re-generate.
9540 * gdbarch.c: Re-generate.
9541 * linux-tdep.c (linux_core_xfer_siginfo): New.
9542 (linux_init_abi): Install gdbarch "core_xfer_siginfo" method.
9543
9544 2017-07-07 John Baldwin <jhb@FreeBSD.org>
9545
9546 * corelow.c (thread_section_name): Move to ...
9547 * gdbcore.h (thread_section_name): ... here.
9548
9549 2017-07-07 John Baldwin <jhb@FreeBSD.org>
9550
9551 * fbsd-nat.c [PT_LWPINFO && __LP64__] (union sigval32)
9552 (struct siginfo32): New.
9553 [PT_LWPINFO] (fbsd_siginfo_size, fbsd_convert_siginfo): New.
9554 (fbsd_xfer_partial) [PT_LWPINFO]: Handle TARGET_OBJECT_SIGNAL_INFO
9555 via ptrace(PT_LWPINFO).
9556
9557 2017-07-07 John Baldwin <jhb@FreeBSD.org>
9558
9559 * fbsd-tdep.c (fbsd_gdbarch_data_handle, struct fbsd_gdbarch_data)
9560 (init_fbsd_gdbarch_data, get_fbsd_gdbarch_data)
9561 (fbsd_get_siginfo_type): New.
9562 (fbsd_init_abi): Install gdbarch "get_siginfo_type" method.
9563 (_initialize_fbsd_tdep): New.
9564
9565 2017-07-06 David Blaikie <dblaikie@gmail.com>
9566
9567 * dwarf2read.c (struct dwo_file): Use a htab of dwo_unit* (rather than
9568 a singular dwo_unit*) to support multiple CUs in the same way that
9569 multiple TUs are supported.
9570 (create_cus_hash_table): Replace create_dwo_cu with a function for
9571 parsing multiple CUs from a DWO file.
9572 (open_and_init_dwo_file): Use create_cus_hash_table rather than
9573 create_dwo_cu.
9574 (lookup_dwo_cutu): Lookup CU in the hash table in the dwo_file with
9575 htab_find, rather than comparing the signature to a singleton CU in
9576 the dwo_file.
9577
9578 2017-07-06 Pedro Alves <palves@redhat.com>
9579
9580 * python/py-unwind.c (pyuw_dealloc_cache): Fix for loop condition.
9581
9582 2017-07-04 Pedro Alves <palves@redhat.com>
9583
9584 * gdbtypes.c (recursive_dump_type): Don't reference TYPE_STATIC.
9585 * gdbtypes.h (TYPE_STATIC): Delete.
9586 (struct fn_field) <is_public, is_abstract, is_static, is_final,
9587 is_synchronized, is_native>: Delete.
9588 <dummy>: Bump.
9589 (TYPE_FN_FIELD_PUBLIC, TYPE_FN_FIELD_STATIC, TYPE_FN_FIELD_FINAL)
9590 (TYPE_FN_FIELD_SYNCHRONIZED, TYPE_FN_FIELD_NATIVE)
9591 (TYPE_FN_FIELD_ABSTRACT): Delete.
9592
9593 2017-07-03 Simon Marchi <simon.marchi@ericsson.com>
9594
9595 * buffer.h (buffer_finish): Fix spelling mistakes.
9596
9597 2017-07-01 Eli Zaretskii <eliz@gnu.org>
9598
9599 * .dir-locals.el: Automatically switch to C-style comments in
9600 versions of Emacs that support the feature.
9601
9602 2017-06-30 Sergio Durigan Junior <sergiodj@redhat.com>
9603 Pedro Alves <palves@redhat.com>
9604
9605 PR cli/21688
9606 * cli/cli-script.c (command_name_equals_not_inline): Remove function.
9607 (process_next_line): New variable 'inline_cmd'.
9608 Adjust 'if' clauses for "python", "compile" and "guile" to use
9609 'command_name_equals' and check for '!inline_cmd'.
9610
9611 2017-06-30 Sergio Durigan Junior <sergiodj@redhat.com>
9612
9613 PR cli/21688
9614 * cli/cli-script.c (command_name_equals_not_inline): New function.
9615 (process_next_line): Adjust 'if' clauses for "python", "compile"
9616 and "guile" to use command_name_equals_not_inline.
9617
9618 2017-06-29 Pedro Alves <palves@redhat.com>
9619
9620 * completer.c (expression_completer): Call
9621 linespec_location_completer instead of location_completer.
9622
9623 2017-06-29 Pedro Alves <palves@redhat.com>
9624
9625 * completer.c (expression_completer): Remove code that recomputes
9626 'text' from 'word'.
9627
9628 2017-06-29 Yao Qi <yao.qi@linaro.org>
9629
9630 * regformats/regdat.sh: Generate code with
9631 "ifndef IN_PROCESS_AGENT".
9632
9633 2017-06-28 Pedro Alves <palves@redhat.com>
9634
9635 * command.h: Include "common/scoped_restore.h".
9636
9637 2017-06-28 Yao Qi <yao.qi@linaro.org>
9638
9639 * mi/mi-cmd-break.c (mi_argv_to_format): Use obstack_grow_str
9640 instead of obstack_grow.
9641
9642 2017-06-28 Doug Gilmore <Doug.Gilmore@imgtec.com>
9643
9644 PR gdb/21337
9645 * symfile.c (reread_symbols): Call objfiles_changed just before
9646 read_symbols.
9647
9648 2017-06-27 Pedro Alves <palves@redhat.com>
9649
9650 * symtab.c (COMPLETION_LIST_ADD_SYMBOL)
9651 (MCOMPLETION_LIST_ADD_SYMBOL): Delete macros, replace with ...
9652 (completion_list_add_symbol, completion_list_add_msymbol):
9653 ... these new functions.
9654 (add_symtab_completions)
9655 (default_make_symbol_completion_list_break_on_1): Adjust.
9656
9657 2017-06-27 Pedro Alves <palves@redhat.com>
9658
9659 * objfiles.c (get_objfile_bfd_data): Call bfd_alloc instead of
9660 bfd_zalloc. Call objfile_per_bfd_storage's ctor.
9661 (free_objfile_per_bfd_storage): Call objfile_per_bfd_storage's
9662 dtor.
9663 * objfiles.h (objfile_per_bfd_storage): Add ctor. Make
9664 'storage_obstack' field an auto_obstack. In-class initialize all
9665 non-bitfield fields. Make minsyms_read bool.
9666 * symfile.c (read_symbols): Adjust.
9667
9668 2017-06-27 Alan Hayward <alan.hayward@arm.com>
9669
9670 * remote-sim.c (gdbsim_fetch_register): Use byte_vector.
9671 (gdbsim_store_register): Likewise.
9672
9673 2017-06-27 Pedro Alves <palves@redhat.com>
9674
9675 * c-exp.y (name_obstack): Now an auto_obstack.
9676 (yylex): Use auto_obstack::clear.
9677 (c_parse): Use auto_obstack::clear instead of reinitializing and
9678 freeing the obstack.
9679 * c-lang.c (evaluate_subexp_c): Use auto_obstack.
9680 * d-exp.y (name_obstack): Now an auto_obstack.
9681 (yylex): Use auto_obstack::clear.
9682 (d_parse): Use auto_obstack::clear instead of reinitializing and
9683 freeing the obstack.
9684 * dwarf2loc.c (fetch_const_value_from_synthetic_pointer): Use
9685 auto_obstack.
9686 * dwarf2read.c (create_addrmap_from_index)
9687 (dwarf2_build_psymtabs_hard)
9688 (update_enumeration_type_from_children): Likewise.
9689 * gdb_obstack.h (auto_obstack): New type.
9690 * go-exp.y (name_obstack): Now an auto_obstack.
9691 (build_packaged_name): Use auto_obstack::clear.
9692 (go_parse): Use auto_obstack::clear instead of reinitializing and
9693 freeing the obstack.
9694 * linux-tdep.c (linux_make_mappings_corefile_notes): Use
9695 auto_obstack.
9696 * printcmd.c (printf_wide_c_string, ui_printf): Use auto_obstack.
9697 * rust-exp.y (work_obstack): Now an auto_obstack.
9698 (rust_parse, rust_lex_tests): Use auto_obstack::clear instead of
9699 reinitializing and freeing the obstack.
9700 * utils.c (do_obstack_free, make_cleanup_obstack_free): Delete.
9701 (host_char_to_target): Use auto_obstack.
9702 * utils.h (make_cleanup_obstack_free): Delete declaration.
9703 * valprint.c (generic_emit_char, generic_printstr): Use
9704 auto_obstack.
9705
9706 2017-06-27 Simon Marchi <simon.marchi@ericsson.com>
9707
9708 * darwin-nat.c (darwin_check_new_threads): Don't handle dummy
9709 thread.
9710 (darwin_init_thread_list): Don't update dummy thread.
9711 (darwin_create_inferior, darwin_attach): Don't add a dummy thread.
9712
9713 2017-06-26 Simon Marchi <simon.marchi@ericsson.com>
9714
9715 * record-full.c (netorder16): Remove.
9716
9717 2017-06-26 Simon Marchi <simon.marchi@ericsson.com>
9718
9719 * common/diagnostics.h: Define macros for GCC.
9720 (DIAGNOSTIC_IGNORE_UNUSED_FUNCTION): New macro.
9721 * common/vec.h: Include diagnostics.h.
9722 (DIAGNOSTIC_IGNORE_UNUSED_VEC_FUNCTION): New macro.
9723 (DEF_VEC_I, DEF_VEC_P, DEF_VEC_O): Ignore -Wunused-function
9724 warning.
9725
9726 2017-06-26 Simon Marchi <simon.marchi@ericsson.com>
9727
9728 * common/diagnostics.h (DIAGNOSTIC_IGNORE_DEPRECATED_REGISTER):
9729 New macro.
9730 * ada-lex.l: Ignore deprecated register warnings.
9731
9732 2017-06-25 Simon Marchi <simon.marchi@ericsson.com>
9733
9734 * main.c (get_init_files): Replace "SYSTEM_GDBINIT +
9735 datadir_len" with "&SYSTEM_GDBINIT[datadir_len]".
9736
9737 2017-06-25 Simon Marchi <simon.marchi@ericsson.com>
9738
9739 * dtrace-probe.c (dtrace_process_dof_probe): Put semi-colon on
9740 its own line.
9741
9742 2017-06-25 Simon Marchi <simon.marchi@ericsson.com>
9743
9744 * nat/x86-dregs.c (x86_show_dr): Print registers one per line.
9745
9746 2017-06-23 Alan Hayward <alan.hayward@arm.com>
9747
9748 * xtensa-tdep.c (XTENSA_MAX_REGISTER_SIZE): Add.
9749 (xtensa_register_write_masked): Use XTENSA_MAX_REGISTER_SIZE.
9750 (xtensa_register_read_masked): Likewise.
9751
9752 2017-06-22 Sergio Durigan Junior <sergiodj@redhat.com>
9753
9754 * common/environ.c (gdb_environ::unset): Update comment.
9755
9756 2017-06-22 Alan Hayward <alan.hayward@arm.com>
9757
9758 * python/py-unwind.c (pyuw_sniffer): Allocate space for
9759 registers.
9760
9761 2017-06-22 Alan Hayward <alan.hayward@arm.com>
9762
9763 * record-full.c (record_full_exec_insn): Use byte_vector.
9764
9765 2017-06-22 Yao Qi <yao.qi@linaro.org>
9766
9767 * regformats/i386/amd64-avx-mpx-avx512-pku-linux.dat: Regenerated.
9768 * regformats/i386/amd64-avx-mpx-avx512-pku.dat: Regenerated.
9769
9770 2017-06-22 Alan Hayward <alan.hayward@arm.com>
9771
9772 * remote.c (cached_reg): Move from here...
9773 * regcache.h (cached_reg): ...to here.
9774 * python/py-unwind.c (struct reg_info): Remove.
9775 (cached_frame_info): Use cached_reg_t.
9776 (pyuw_prev_register): Likewise.
9777 (pyuw_sniffer): Use cached_reg_t and allocate registers.
9778 (pyuw_dealloc_cache): Free all registers.
9779
9780 2017-06-22 Pedro Alves <palves@redhat.com>
9781 Simon Marchi <simon.marchi@ericsson.com>
9782
9783 * unittests/environ-selftests.c (run_tests): Ignore -Wself-move
9784 warning.
9785 * common/diagnostics.h: New file.
9786
9787 2017-06-22 Pedro Alves <palves@redhat.com>
9788
9789 * common/agent.h: Add include guards.
9790
9791 2017-06-21 Simon Marchi <simon.marchi@ericsson.com>
9792
9793 * target.h (struct target_ops) <to_xfer_partial>: Update doc to
9794 talk about addressable units instead of bytes.
9795
9796 2017-06-20 Sergio Durigan Junior <sergiodj@redhat.com>
9797
9798 * common/environ.c (gdb_environ::unset): Use '::iterator' instead
9799 of '::const_iterator'.
9800
9801 2017-06-20 Sergio Durigan Junior <sergiodj@redhat.com>
9802
9803 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
9804 'unittests/environ-selftests.c'.
9805 (SUBDIR_UNITTESTS_OBS): Add 'environ-selftests.o'.
9806 * charset.c (find_charset_names): Declare object 'iconv_env'.
9807 Update code to use 'iconv_env' object. Remove call to
9808 'free_environ'.
9809 * common/environ.c: Include <utility>.
9810 (make_environ): Delete function.
9811 (free_environ): Delete function.
9812 (gdb_environ::clear): New function.
9813 (gdb_environ::operator=): New function.
9814 (gdb_environ::get): Likewise.
9815 (environ_vector): Delete function.
9816 (set_in_environ): Delete function.
9817 (gdb_environ::set): New function.
9818 (unset_in_environ): Delete function.
9819 (gdb_environ::unset): New function.
9820 (gdb_environ::envp): Likewise.
9821 * common/environ.h: Include <vector>.
9822 (struct gdb_environ): Delete; transform into...
9823 (class gdb_environ): ... this class.
9824 (free_environ): Delete prototype.
9825 (init_environ, get_in_environ, set_in_environ, unset_in_environ,
9826 environ_vector): Likewise.
9827 * infcmd.c (run_command_1): Update code to call
9828 'envp' from 'gdb_environ' class.
9829 (environment_info): Update code to call methods from 'gdb_environ'
9830 class.
9831 (unset_environment_command): Likewise.
9832 (path_info): Likewise.
9833 (path_command): Likewise.
9834 * inferior.c (inferior::~inferior): Delete call to 'free_environ'.
9835 (inferior::inferior): Initialize 'environment' using the host's
9836 information.
9837 * inferior.h: Remove forward declaration of 'struct gdb_environ'.
9838 Include "environ.h".
9839 (class inferior) <environment>: Change type from 'struct
9840 gdb_environ' to 'gdb_environ'.
9841 * mi/mi-cmd-env.c (mi_cmd_env_path): Update code to call
9842 methods from 'gdb_environ' class.
9843 * solib.c (solib_find_1): Likewise
9844 * unittests/environ-selftests.c: New file.
9845
9846 2017-06-20 Yao Qi <yao.qi@linaro.org>
9847
9848 * features/i386/i386-linux.xml: Exchange the order of including
9849 32bit-linux.xml and 32bit-sse.xml.
9850 * features/i386/i386-linux.c: Regenerated.
9851
9852 2017-06-20 Yao Qi <yao.qi@linaro.org>
9853
9854 * target-descriptions.c (tdesc_reg): Add ctor, dtor.
9855 Delete copy ctor and assignment operator.
9856 (tdesc_type): Likewise.
9857 (tdesc_feature): Likewise.
9858 (tdesc_free_reg): Remove.
9859 (tdesc_create_reg): Use new.
9860 (tdesc_free_type): Remove.
9861 (tdesc_create_vector): Use new.
9862 (tdesc_create_union): Likewise.
9863 (tdesc_create_flags): Likewise.
9864 (tdesc_create_enum): Likewise.
9865 (tdesc_free_feature): Delete.
9866 (free_target_description): Use delete.
9867
9868 2017-06-19 John Baldwin <jhb@FreeBSD.org>
9869
9870 * mips-tdep.c (print_gp_register_row): Don't error for unavailable
9871 registers.
9872
9873 2017-06-19 Pedro Alves <palves@redhat.com>
9874
9875 * dwarf2read.c (write_psymtabs_to_index): Construct file_closer
9876 after gdb::unlinker.
9877
9878 2017-06-19 Sergio Durigan Junior <sergiodj@redhat.com>
9879
9880 * mi/mi-cm-env.c (_initialize_mi_cmd_env): Use getenv instead of
9881 gdb_environ to access an environment variable.
9882
9883 2017-06-18 Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
9884
9885 * nat/linux-ptrace.c (linux_fork_to_function): Add cast to
9886 gdb_byte*.
9887
9888 2017-06-17 Simon Marchi <simon.marchi@ericsson.com>
9889
9890 * nat/fork-inferior.h (trace_start_error): Add ATTRIBUTE_PRINTF.
9891
9892 2017-06-17 Simon Marchi <simon.marchi@ericsson.com>
9893
9894 * configure: Re-generate.
9895 * warning.m4 (build_warnings): Add -Wno-mismatched-tags.
9896
9897 2017-06-17 Simon Marchi <simon.marchi@ericsson.com>
9898
9899 * configure: Re-generate.
9900 * warning.m4: Pass -Werror to compiler when checking for
9901 supported warning flags.
9902
9903 2017-06-17 Simon Marchi <simon.marchi@ericsson.com>
9904
9905 * Makefile.in (COMPILE.pre): Add "-x c++".
9906
9907 2017-06-16 Alan Hayward <alan.hayward@arm.com>
9908 Pedro Alves <palves@redhat.com>
9909 Yao Qi <yao.qi@linaro.org>
9910
9911 * defs.h (RequireLongest): New.
9912 (extract_integer): Declare function template.
9913 (extract_signed_integer): Remove the declaration, but define it
9914 static inline.
9915 (extract_unsigned_integer): Likewise.
9916 (store_integer): Declare function template.
9917 (store_signed_integer): Remove the declaration, but define it
9918 static inline.
9919 (store_unsigned_integer): Likewise.
9920 * findvar.c (extract_integer): New function template.
9921 (extract_signed_integer): Remove.
9922 (extract_unsigned_integer): Remove.
9923 (extract_integer<LONGEST>, extract_integer<ULONGEST>): Explicit
9924 instantiations.
9925 (store_integer): New function template.
9926 (store_signed_integer): Remove.
9927 (store_unsigned_integer): Remove.
9928 (store_integer): Explicit instantiations.
9929 * regcache.c (regcache_raw_read_signed): Update.
9930 (regcache::raw_read): New function.
9931 (regcache::raw_read_signed): Remove.
9932 (regcache::raw_read_unsigned): Remove.
9933 (regcache_raw_read_unsigned): Update.
9934 (regcache_raw_write_unsigned): Update.
9935 (regcache::raw_write_signed): Remove.
9936 (regcache::raw_write): New function.
9937 (regcache_cooked_read_signed): Update.
9938 (regcache::raw_write_unsigned): Remove.
9939 (regcache::cooked_read_signed): Remove.
9940 (regcache_cooked_read_unsigned): Update.
9941 (regcache::cooked_read_unsigned): Remove.
9942 (regcache_cooked_write_signed): Update.
9943 (regcache_cooked_write_unsigned): Update.
9944 * regcache.h (regcache) <raw_read_signed>: Remove.
9945 <raw_write_signed, raw_read_unsigned, raw_write_unsigned>: Remove.
9946 <raw_read, raw_write>: New.
9947 <cooked_read_signed, cooked_write_signed>: Remove.
9948 <cooked_write_unsigned, cooked_read_unsigned>: Remove.
9949 <cooked_read, cooked_write>: New.
9950 * sh64-tdep.c (sh64_pseudo_register_read): Update.
9951 (sh64_pseudo_register_write): Update.
9952
9953 2017-06-16 Anton Kolesov <anton.kolesov@synopsys.com>
9954
9955 * arc-tdep.c (arc_disassembler_options): New variable.
9956 (arc_gdbarch_init): Set and use it. Use arc_delayed_print_insn instead
9957 of default_print_insn.
9958 (arc_delayed_print_insn): Set info->section when needed,
9959 use default_print_insn to retrieve a disassembler.
9960
9961 2017-06-14 Sergio Durigan Junior <sergiodj@redhat.com>
9962
9963 PR gdb/21574
9964 * infcmd.c (_initialize_infcmd): Expand "help run" documentation
9965 to mention $SHELL and startup-with-shell.
9966
9967 2017-06-14 Max Filippov <jcmvbkbc@gmail.com>
9968
9969 * MAINTAINERS: Move Maxim Grigoriev to the Past Maintainers.
9970
9971 2017-06-14 Yao Qi <yao.qi@linaro.org>
9972
9973 * aarch64-tdep.c (aarch64_gdb_print_insn): Call
9974 default_print_insn instead of print_insn_aarch64.
9975 * arm-tdep.c (gdb_print_insn_arm): Call
9976 default_print_insn instead of print_insn_big_arm
9977 and print_insn_little_arm.
9978 * i386-tdep.c (i386_print_insn): Call default_print_insn
9979 instead of print_insn_i386.
9980 * ia64-tdep.c (ia64_print_insn): Call
9981 default_print_insn instead of print_insn_ia64.
9982 * mips-tdep.c (gdb_print_insn_mips): Call
9983 default_print_insn instead of print_insn_big_mips
9984 and print_insn_little_mips.
9985 * spu-tdep.c (gdb_print_insn_spu): Call default_print_insn
9986 instead of print_insn_spu.
9987
9988 2017-06-14 Pedro Alves <palves@redhat.com>
9989
9990 * ada-lang.c: Include "common/byte-vector.h".
9991 (ada_value_primitive_packed_val): Use gdb::byte_vector.
9992 * charset.c (wchar_iterator::iterate): Resize the vector instead
9993 of reserving it.
9994 * common/byte-vector.h: Include "common/def-vector.h".
9995 (wchar_iterator::m_out): Now a gdb::def_vector<gdb_wchar_t>.
9996 * cli/cli-dump.c: Include "common/byte-vector.h".
9997 (dump_memory_to_file, restore_binary_file): Use gdb::byte_vector.
9998 * common/byte-vector.h: New file.
9999 * common/def-vector.h: New file.
10000 * common/default-init-alloc.h: New file.
10001 * dwarf2loc.c: Include "common/byte-vector.h".
10002 (rw_pieced_value): Use gdb::byte_vector, and resize the vector
10003 instead of reserving it.
10004 * dwarf2read.c: Include "common/byte-vector.h".
10005 (data_buf::m_vec): Now a gdb::byte_vector.
10006 * gdb_regex.c: Include "common/def-vector.h".
10007 (compiled_regex::compiled_regex): Use gdb::def_vector<char>.
10008 * mi/mi-main.c: Include "common/byte-vector.h".
10009 (mi_cmd_data_read_memory): Use gdb::byte_vector.
10010 * printcmd.c: Include "common/byte-vector.h".
10011 (print_scalar_formatted): Use gdb::byte_vector.
10012 * valprint.c: Include "common/byte-vector.h".
10013 (maybe_negate_by_bytes, print_decimal_chars): Use
10014 gdb::byte_vector.
10015
10016 2017-06-13 Simon Marchi <simon.marchi@ericsson.com>
10017
10018 * darwin-nat.c: Include "nat/fork-inferior.h".
10019
10020 2017-06-13 Simon Marchi <simon.marchi@ericsson.com>
10021
10022 * configure.nat: Factor out Darwin bits that are not
10023 architecture-specific. Add fork-inferior.o.
10024
10025 2017-06-13 Simon Marchi <simon.marchi@ericsson.com>
10026
10027 * configure.nat: Factor out AIX bits that are not
10028 architecture-specific. Add fork-inferior.o.
10029
10030 2017-06-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
10031
10032 * dwarf2loc.c (rw_pieced_value): New. Merge logic from...
10033 (read_pieced_value, write_pieced_value): ...here. Reduce to
10034 wrappers that just call rw_pieced_value.
10035
10036 2017-06-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
10037
10038 * dwarf2loc.c (write_pieced_value): When writing the data for a
10039 memory piece, use write_memory_with_notification instead of
10040 write_memory.
10041
10042 2017-06-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
10043
10044 * valops.c (read_value_memory): Change embedded_offset to
10045 represent a bit offset instead of a byte offset.
10046 * value.h (read_value_memory): Adjust comment.
10047
10048 2017-06-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
10049
10050 * dwarf2loc.c (read_pieced_value): Remove unnecessary variables
10051 dest_offset_bits and source_offset_bits.
10052 (write_pieced_value): Likewise.
10053
10054 2017-06-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
10055
10056 * dwarf2loc.c (read_pieced_value): Respect the piece offset, as
10057 given by DW_OP_bit_piece.
10058 (write_pieced_value): Likewise.
10059
10060 2017-06-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
10061
10062 * dwarf2loc.c (read_pieced_value): Move the buffer allocation and
10063 some other preparations to the places where sufficient information
10064 is available.
10065 (write_pieced_value): Likewise.
10066
10067 2017-06-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
10068
10069 * dwarf2loc.c (bits_to_bytes): New function.
10070 (read_pieced_value): Fix offset calculations for register pieces
10071 on big-endian targets.
10072 (write_pieced_value): Likewise.
10073
10074 2017-06-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
10075
10076 * dwarf2loc.c (read_pieced_value): Remove buffer_size variable.
10077 (write_pieced_value): Likewise.
10078
10079 2017-06-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
10080
10081 * dwarf2loc.c (write_pieced_value): When writing to a bit-field,
10082 transfer the source value's least significant bits, instead of its
10083 lowest-addressed ones. Rename type_len to max_offset.
10084 (read_pieced_value): Mirror above changes to write_pieced_value as
10085 applicable.
10086
10087 2017-06-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
10088
10089 * dwarf2loc.c (write_pieced_value): In DWARF_VALUE_MEMORY,
10090 truncate full bytes from dest_offset_bits before using it as an
10091 offset into the buffer.
10092
10093 2017-06-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
10094
10095 * dwarf2loc.c (write_pieced_value): Include transfer size in
10096 byte-wise check.
10097
10098 2017-06-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
10099
10100 * dwarf2loc.c (write_pieced_value): Fix copy/paste error in the
10101 calculation of this_size.
10102
10103 2017-06-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
10104
10105 * dwarf2loc.c (read_pieced_value): Respect parent value's offset
10106 when targeting a bit-field.
10107 (write_pieced_value): Likewise.
10108
10109 2017-06-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
10110
10111 * dwarf2loc.c (struct piece_closure) <addr_size>: Remove field.
10112 (allocate_piece_closure): Drop addr_size parameter.
10113 (dwarf2_evaluate_loc_desc_full): Adjust call to
10114 allocate_piece_closure.
10115
10116 2017-06-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
10117
10118 PR gdb/21226
10119 * dwarf2loc.c (read_pieced_value): Anchor stack value pieces at
10120 the LSB end, independent of endianness.
10121
10122 2017-06-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
10123
10124 * dwarf2loc.c (write_pieced_value): Fix order of calculations for
10125 size capping.
10126
10127 2017-06-13 Yao Qi <yao.qi@linaro.org>
10128
10129 * mips-linux-nat.c: Move include features/mips*-linux.c to
10130 mips-linux-tdep.c.
10131 (_initialize_mips_linux_nat): Move initialize_tdesc_mips* calls
10132 to mips-linux-tdep.c.
10133 * mips-linux-tdep.c: Include features/mips*-linux.c
10134 (_initialize_mips_linux_tdep): Call initialize_tdesc_mips*
10135 functions.
10136 * mips-linux-tdep.h (tdesc_mips_linux): Declare.
10137 (tdesc_mips_dsp_linux, tdesc_mips64_linux): Declare.
10138 (tdesc_mips64_dsp_linux): Declare.
10139
10140 2017-06-12 Tom Tromey <tom@tromey.com>
10141
10142 * valprint.h (val_print_type_code_int): Remove.
10143 * valprint.c (generic_val_print_int): Always call
10144 val_print_scalar_formatted.
10145 (val_print_type_code_int): Remove.
10146 * printcmd.c (print_scalar_formatted): Handle options->format==0.
10147 * f-valprint.c (f_val_print): Use val_print_scalar_formatted.
10148 * c-valprint.c (c_val_print_int): Use val_print_scalar_formatted.
10149 * ada-valprint.c (ada_val_print_num): Use
10150 val_print_scalar_formatted.
10151
10152 2017-06-12 Tom Tromey <tom@tromey.com>
10153
10154 * printcmd.c (print_scalar_formatted): Unify the two switches.
10155 Don't convert scalars to LONGEST.
10156
10157 2017-06-12 Tom Tromey <tom@tromey.com>
10158
10159 PR exp/16225:
10160 * valprint.h (print_decimal_chars): Update.
10161 * valprint.c (maybe_negate_by_bytes): New function.
10162 (print_decimal_chars): Add "is_signed" argument.
10163 * printcmd.c (print_scalar_formatted): Update.
10164
10165 2017-06-12 Tom Tromey <tom@tromey.com>
10166
10167 PR exp/16225:
10168 * valprint.h (print_binary_chars, print_hex_chars): Update.
10169 * valprint.c (val_print_type_code_int): Update.
10170 (print_binary_chars): Add "zero_pad" argument.
10171 (emit_octal_digit): New function.
10172 (print_octal_chars): Don't zero-pad.
10173 (print_decimal_chars): Likewise.
10174 (print_hex_chars): Add "zero_pad" argument.
10175 * sh64-tdep.c (sh64_do_fp_register): Update.
10176 * regcache.c (regcache::dump): Update.
10177 * printcmd.c (print_scalar_formatted): Update.
10178 * infcmd.c (default_print_one_register_info): Update.
10179
10180 2017-06-12 Pedro Alves <palves@redhat.com>
10181 Alan Hayward <alan.hayward@arm.com>
10182
10183 * mips-tdep.c (MAX_MIPS_ABI_REGSIZE): New.
10184 (mips_eabi_push_dummy_call): Rename local 'regsize' to
10185 'abi_regsize'. Rename local array 'valbuf' to 'ref_valbuf', and
10186 use MAX_MIPS_ABI_REGSIZE instead of MAX_REGISTER_SIZE to size it.
10187 Assert that abi_regsize bytes fit in 'ref_valbuf'.
10188
10189 2017-06-12 Pedro Alves <palves@redhat.com>
10190
10191 * dwarf2read.c (mapped_symtab::data): Now a vector of
10192 symtab_index_entry instead of vector of
10193 std::unique_ptr<symtab_index_entry>. All users adjusted to check
10194 whether an element's name is NULL instead of checking whether the
10195 element itself is NULL.
10196 (find_slot): Change return type. Adjust.
10197 (hash_expand, , add_index_entry, uniquify_cu_indices)
10198 (write_hash_table): Adjust.
10199
10200 2017-06-12 Pedro Alves <palves@redhat.com>
10201
10202 * dwarf2read.c (recursively_count_psymbols): New function.
10203 (write_psymtabs_to_index): Call it to compute number of psyms and
10204 pass estimate size of psyms_seen to unordered_set's ctor.
10205
10206 2017-06-12 Pedro Alves <palves@redhat.com>
10207
10208 * dwarf2read.c (write_hash_table): Check if key already exists
10209 before emplacing.
10210
10211 2017-06-12 Pedro Alves <palves@redhat.com>
10212
10213 * dwarf2read.c (data_buf::append_space): Rename to...
10214 (data_buf::grow): ... this, and make private. Adjust all callers.
10215 (data_buf::append_uint): New method.
10216 (add_address_entry, write_one_signatured_type)
10217 (write_psymtabs_to_index): Use it.
10218
10219 2017-06-12 Pedro Alves <palves@redhat.com>
10220
10221 * dwarf2read.c (file_write(FILE *, const void *, size_t)): Delete.
10222 (file_write (FILE *, const std::vector<Elem>&)): Delete.
10223 (data_buf::file_write): Call ::fwrite directly.
10224
10225 2017-06-12 Pedro Alves <palves@redhat.com>
10226
10227 * dwarf2read.c (uniquify_cu_indices): Use std::unique and
10228 std::vector::erase.
10229
10230 2017-06-12 Jan Kratochvil <jan.kratochvil@redhat.com>
10231
10232 Code cleanup: C++ify .gdb_index producer.
10233 * dwarf2read.c: Include <unordered_set> and <unordered_map>.
10234 (MAYBE_SWAP) [WORDS_BIGENDIAN]: Cast to offset_type.
10235 (struct strtab_entry, hash_strtab_entry, eq_strtab_entry)
10236 (create_strtab, add_string): Remove.
10237 (file_write, data_buf): New.
10238 (struct symtab_index_entry): Use std::vector for cu_indices.
10239 (struct mapped_symtab): Use std::vector for data.
10240 (hash_symtab_entry, eq_symtab_entry, delete_symtab_entry)
10241 (create_symbol_hash_table, create_mapped_symtab, cleanup_mapped_symtab):
10242 Remove.
10243 (find_slot): Change return type. Update it to the new data structures.
10244 (hash_expand, add_index_entry): Update it to the new data structures.
10245 (offset_type_compare): Remove.
10246 (uniquify_cu_indices): Update it to the new data structures.
10247 (c_str_view, c_str_view_hasher, vector_hasher): New.
10248 (add_indices_to_cpool): Remove.
10249 (write_hash_table): Update it to the new data structures.
10250 (struct psymtab_cu_index_map, hash_psymtab_cu_index)
10251 (eq_psymtab_cu_index): Remove.
10252 (psym_index_map): New typedef.
10253 (struct addrmap_index_data): Change addr_obstack pointer to data_buf
10254 reference and std::unordered_map for cu_index_htab.
10255 (add_address_entry, add_address_entry_worker, write_address_map)
10256 (write_psymbols): Update it to the new data structures.
10257 (write_obstack): Remove.
10258 (struct signatured_type_index_data): Change types_list to a data_buf
10259 reference and psyms_seen to a std::unordered_set reference.
10260 (write_one_signatured_type, recursively_write_psymbols)
10261 (write_psymtabs_to_index): Update it to the new data structures.
10262
10263 2017-06-11 Simon Marchi <simon.marchi@ericsson.com>
10264
10265 * NEWS (Changes since GDB 8.0): Announce {set,show} debug
10266 separate-debug-file commands.
10267 * symfile.h (separate_debug_file_debug): New global.
10268 * symfile.c (separate_debug_file_debug): New global.
10269 (separate_debug_file_exists, find_separate_debug_file): Add
10270 debug output.
10271 (_initialize_symfile): Add "set debug separate-debug-file"
10272 command.
10273 * build-id.c (build_id_to_debug_bfd,
10274 find_separate_debug_file_by_buildid): Add debug output.
10275
10276 2017-06-10 Simon Marchi <simon.marchi@polymtl.ca>
10277
10278 * gdbarch.sh (displaced_step_free_closure): Remove.
10279 * gdbarch.h, gdbarch.c: Re-generate.
10280 * aarch64-linux-tdep.c (aarch64_linux_init_abi): Don't set
10281 displaced_step_free_closure.
10282 * amd64-linux-tdep.c (amd64_linux_init_abi_common): Likewise.
10283 * arm-linux-tdep.c (arm_linux_init_abi): Likewise.
10284 * i386-linux-tdep.c (i386_linux_init_abi): Likewise.
10285 * rs6000-aix-tdep.c (rs6000_aix_init_osabi): Likewise.
10286 * rs6000-tdep.c (rs6000_gdbarch_init): Likewise.
10287 * s390-linux-tdep.c (s390_gdbarch_init): Likewise.
10288 * arch-utils.h (simple_displaced_step_free_closure): Remove.
10289 * arch-utils.c (simple_displaced_step_free_closure): Remove.
10290 * infrun.c (displaced_step_clear): Call xfree instead of
10291 gdbarch_displaced_step_free_closure.
10292
10293 2017-06-08 Sergio Durigan Junior <sergiodj@redhat.com>
10294
10295 * common/common-utils.c (stringify_argv): Check for "arg[0] !=
10296 NULL".
10297
10298 2017-06-08 Alan Hayward <alan.hayward@arm.com>
10299
10300 * mn10300-tdep.c (MN10300_MAX_REGISTER_SIZE): Add.
10301 (mn10300_extract_return_value): Use MN10300_MAX_REGISTER_SIZE.
10302 (mn10300_push_dummy_call): Likewise.
10303
10304 2017-06-08 Alan Hayward <alan.hayward@arm.com>
10305
10306 * mi/mi-main.c (register_changed_p): Use value_contents_eq.
10307
10308 2017-06-08 Alan Hayward <alan.hayward@arm.com>
10309
10310 * mi/mi-main.c (register_changed_p): Use cooked_read_value.
10311
10312 2017-06-07 Sergio Durigan Junior <sergiodj@redhat.com>
10313
10314 * NEWS (Changes since GDB 8.0): Announce that GDBserver is now
10315 able to start inferiors using a shell.
10316 (New remote packets): Announce new packet "QStartupWithShell".
10317 * remote.c: Add PACKET_QStartupWithShell.
10318 (extended_remote_create_inferior): Handle new
10319 PACKET_QStartupWithShell.
10320 (remote_protocol_features) <QStartupWithShell>: New entry for
10321 PACKET_QStartupWithShell.
10322 (_initialize_remote): Call "add_packet_config_cmd" for
10323 QStartupShell.
10324
10325 2017-06-07 Sergio Durigan Junior <sergiodj@redhat.com>
10326 Pedro Alves <palves@redhat.com>
10327
10328 * Makefile.in (HFILES_NO_SRCDIR): Add "common/common-inferior.h"
10329 and "nat/fork-inferior.h".
10330 * common/common-inferior.h: New file, with contents from
10331 "gdb/inferior.h".
10332 * commom/common-utils.c: Include "common-utils.h".
10333 (stringify_argv): New function.
10334 * common/common-utils.h (stringify_argv): New prototype.
10335 * configure.nat: Add "fork-inferior.o" as a dependency for
10336 "*linux*", "fbsd*" and "nbsd*" hosts.
10337 * corefile.c (get_exec_file): Update comment.
10338 * darwin-nat.c (darwin_ptrace_him): Call "gdb_startup_inferior"
10339 instead of "startup_inferior".
10340 (darwin_create_inferior): Call "add_thread_silent" after
10341 "fork_inferior".
10342 * fork-child.c: Cleanup unnecessary includes.
10343 (SHELL_FILE): Move to "common/common-fork-child.c".
10344 (environ): Likewise.
10345 (exec_wrapper): Initialize.
10346 (get_exec_wrapper): New function.
10347 (breakup_args): Move to "common/common-fork-child.c"; rename to
10348 "breakup_args_for_exec".
10349 (escape_bang_in_quoted_argument): Move to
10350 "common/common-fork-child.c".
10351 (saved_ui): New variable.
10352 (prefork_hook): New function.
10353 (postfork_hook): Likewise.
10354 (postfork_child_hook): Likewise.
10355 (gdb_startup_inferior): Likewise.
10356 (fork_inferior): Move to "common/common-fork-child.c". Update
10357 function to support gdbserver.
10358 (startup_inferior): Likewise.
10359 * gdbcore.h (get_exec_file): Remove declaration.
10360 * gnu-nat.c (gnu_create_inferior): Call "gdb_startup_inferior"
10361 instead of "startup_inferior". Call "add_thread_silent" after
10362 "fork_inferior".
10363 * inf-ptrace.c: Include "nat/fork-inferior.h" and "utils.h".
10364 (inf_ptrace_create_inferior): Call "gdb_startup_inferior"
10365 instead of "startup_inferior". Call "add_thread_silent" after
10366 "fork_inferior".
10367 * inferior.h: Include "common-inferior.h".
10368 (trace_start_error): Move to "common/common-utils.h".
10369 (trace_start_error_with_name): Likewise.
10370 (fork_inferior): Move prototype to "nat/fork-inferior.h".
10371 (startup_inferior): Likewise.
10372 (gdb_startup_inferior): New prototype.
10373 * nat/fork-inferior.c: New file, with contents from "fork-child.c".
10374 * nat/fork-inferior.h: New file.
10375 * procfs.c (procfs_init_inferior): Call "gdb_startup_inferior"
10376 instead of "startup_inferior". Call "add_thread_silent" after
10377 "fork_inferior".
10378 * target.h (target_terminal_init): Move prototype to
10379 "target/target.h".
10380 (target_terminal_inferior): Likewise.
10381 (target_terminal_ours): Likewise.
10382 * target/target.h (target_terminal_init): New prototype, moved
10383 from "target.h".
10384 (target_terminal_inferior): Likewise.
10385 (target_terminal_ours): Likewise.
10386 * utils.c (gdb_flush_out_err): New function.
10387
10388 2017-06-07 Sergio Durigan Junior <sergiodj@redhat.com>
10389
10390 * Makefile.in (HFILES_NO_SRCDIR): Add "common/common-gdbthread.h".
10391 * common/common-gdbthread.h: New file, with parts from
10392 "gdb/gdbthread.h".
10393 * gdbthread.h: Include "common-gdbthread.h".
10394 (switch_to_thread): Moved to "common/common-gdbthread.h".
10395
10396 2017-06-07 Sergio Durigan Junior <sergiodj@redhat.com>
10397
10398 * Makefile.in (SFILES): Add "common/job-control.c".
10399 (HFILES_NO_SRCDIR): Add "common/job-control.h".
10400 (COMMON_OBS): Add "job-control.o".
10401 * common/job-control.c: New file, with contents from
10402 "gdb/inflow.c".
10403 * common/job-control.h: New file, with contents from "terminal.h".
10404 * fork-child.c: Include "job-control.h".
10405 * inflow.c: Include "job-control.h".
10406 (gdb_setpgid): Move to "common/common-inflow.c".
10407 (_initialize_inflow): Move setting of "job_control" to
10408 "handle_job_control".
10409 * terminal.h (job_control): Moved to "common/common-terminal.h".
10410 (gdb_setpgid): Likewise.
10411 * top.c: Include "job_control.h".
10412 * utils.c: Likewise.
10413 (job_control): Moved to "job-control.c".
10414
10415 2017-06-07 Pedro Alves <palves@redhat.com>
10416
10417 * Makefile.in (SFILES): Add gdb_regex.c.
10418 (COMMON_OBS): Add gdb_regex.o.
10419 * ada-lang.c (ada_add_standard_exceptions)
10420 (ada_add_exceptions_from_frame, name_matches_regex)
10421 (ada_add_global_exceptions, ada_exceptions_list_1): Change regex
10422 parameter type to compiled_regex. Adjust.
10423 (ada_exceptions_list): Use compiled_regex.
10424 * break-catch-throw.c (exception_catchpoint::pattern): Now a
10425 std::unique_ptr<compiled_regex>.
10426 (exception_catchpoint::~exception_catchpoint): Remove regfree
10427 call.
10428 (check_status_exception_catchpoint): Adjust to use compiled_regex.
10429 (handle_gnu_v3_exceptions): Adjust to use compiled_regex.
10430 * breakpoint.c (solib_catchpoint::compiled): Now a
10431 std::unique_ptr<compiled_regex>.
10432 (solib_catchpoint::~solib_catchpoint): Remove regfree call.
10433 (check_status_catch_solib): Adjust to use compiled_regex.
10434 (add_solib_catchpoint): Adjust to use compiled_regex.
10435 * cli/cli-cmds.c (apropos_command): Use compiled_regex.
10436 * cli/cli-decode.c (apropos_cmd): Change regex parameter to
10437 compiled_regex reference. Adjust to use it.
10438 * cli/cli-decode.h: Remove struct re_pattern_buffer forward
10439 declaration. Include "gdb_regex.h".
10440 (apropos_cmd): Change regex parameter to compiled_regex reference.
10441 * gdb_regex.c: New file.
10442 * gdb_regex.h (make_regfree_cleanup, get_regcomp_error): Delete
10443 declarations.
10444 (class compiled_regex): New.
10445 * linux-tdep.c: Include "common/gdb_optional.h".
10446 (struct mapping_regexes): New, factored out from
10447 mapping_is_anonymous_p, and adjusted to use compiled_regex.
10448 (mapping_is_anonymous_p): Use mapping_regexes wrapped in a
10449 gdb::optional and remove cleanups. Adjust to compiled_regex.
10450 * probe.c: Include "common/gdb_optional.h".
10451 (collect_probes): Use compiled_regex and gdb::optional and remove
10452 cleanups.
10453 * skip.c: Include "common/gdb_optional.h".
10454 (skiplist_entry::compiled_function_regexp): Now a
10455 gdb::optional<compiled_regex>.
10456 (skiplist_entry::compiled_function_regexp_is_valid): Delete field.
10457 (free_skiplist_entry): Remove regfree call.
10458 (compile_skip_regexp, skip_rfunction_p): Adjust to use
10459 compiled_regex and gdb::optional.
10460 * symtab.c: Include "common/gdb_optional.h".
10461 (search_symbols): Use compiled_regex and gdb::optional.
10462 * utils.c (do_regfree_cleanup, make_regfree_cleanup)
10463 (get_regcomp_error, compile_rx_or_error): Delete. Some bits moved
10464 to gdb_regex.c.
10465
10466 2017-06-07 Alan Hayward <alan.hayward@arm.com>
10467
10468 * regcache.c (regcache::save): Avoid buffer use.
10469 (regcache::dump): Likewise.
10470
10471 2017-06-07 Alan Hayward <alan.hayward@arm.com>
10472
10473 * sh-tdep.c (sh_pseudo_register_read): Remove
10474 MAX_REGISTER_SIZE.
10475 (sh_pseudo_register_write): Likewise.
10476 * sh64-tdep.c (sh64_pseudo_register_read): Likewise.
10477 (sh64_pseudo_register_write): Likewise
10478
10479 2017-06-07 Alan Hayward <alan.hayward@arm.com>
10480
10481 * aarch64-tdep.c (aarch64_store_return_value): Use
10482 V_REGISTER_SIZE.
10483 (aarch64_pseudo_read_value): Likewise.
10484 (aarch64_pseudo_write): Likewise.
10485
10486 2017-06-06 Yao Qi <yao.qi@linaro.org>
10487
10488 * regformats/regdef.h (set_register_cache): Remove the
10489 declaration.
10490
10491 2017-06-06 Alan Hayward <alan.hayward@arm.com>
10492
10493 * frame.c (frame_unwind_register_signed): Use
10494 frame_unwind_register_value.
10495
10496 2017-06-06 Pedro Alves <palves@redhat.com>
10497
10498 PR breakpoints/21553
10499 * breakpoint.c (create_breakpoints_sal_default)
10500 (init_breakpoint_sal, create_breakpoint_sal): Use
10501 gdb::unique_xmalloc_ptr for string parameters.
10502 (create_breakpoint): Constify 'extra_string' and 'cond_string'
10503 parameters. Replace cleanups with gdb::unique_xmalloc_ptr.
10504 (base_breakpoint_create_breakpoints_sal)
10505 (bkpt_create_breakpoints_sal, tracepoint_create_breakpoints_sal)
10506 (strace_marker_create_breakpoints_sal)
10507 (create_breakpoints_sal_default): Use gdb::unique_xmalloc_ptr for
10508 string parameters.
10509 * breakpoint.h (breakpoint_ops::create_breakpoints_sal): Use
10510 gdb::unique_xmalloc_ptr for string parameters.
10511 (create_breakpoint): Constify 'extra_string' and 'cond_string'
10512 parameters.
10513
10514 2017-06-06 Alan Hayward <alan.hayward@arm.com>
10515
10516 * alpha-tdep.c (alpha_register_to_value): Use
10517 get_frame_register_value.
10518 (alpha_value_to_register): Use ALPHA_REGISTER_SIZE.
10519
10520 2017-06-06 Alan Hayward <alan.hayward@arm.com>
10521
10522 * ia64-tdep.c (IA64_MAX_FP_REGISTER_SIZE) Add.
10523 (ia64_register_to_value): Use IA64_MAX_FP_REGISTER_SIZE.
10524 (ia64_value_to_register): Likewise.
10525 (ia64_extract_return_value): Likewise.
10526 (ia64_store_return_value): Likewise.
10527 (ia64_push_dummy_call): Likewise.
10528
10529 2017-06-04 Joel Brobecker <brobecker@adacore.com>
10530
10531 GDB 8.0 released.
10532
10533 2017-06-03 Simon Marchi <simon.marchi@ericsson.com>
10534
10535 * x86-linux-nat.c (struct arch_lwp_info): Remove.
10536
10537 2017-06-03 Simon Marchi <simon.marchi@polymtl.ca>
10538
10539 * linux-nat.c (linux_nat_post_attach_wait): Remove FIRST
10540 parameter.
10541 (linux_nat_attach): Adjust call to linux_nat_post_attach_wait.
10542
10543 2017-06-02 Simon Marchi <simon.marchi@ericsson.com>
10544
10545 * event-loop.c (poll_timers): Unallocate timer using delete
10546 instead of xfree.
10547
10548 2017-06-02 Simon Marchi <simon.marchi@polymtl.ca>
10549
10550 * breakpoint.h (struct breakpoint_ops) <dtor>: Remove.
10551 (struct breakpoint) <~breakpoint>: New.
10552 (struct watchpoint): Inherit from breakpoint.
10553 <~watchpoint>: New.
10554 <base>: Remove.
10555 (struct tracepoint): Inherit from breakpoint.
10556 <base>: Remove.
10557 * breakpoint.c (longjmp_breakpoint_ops): Remove.
10558 (struct longjmp_breakpoint): Inherit from breakpoint.
10559 <~longjmp_breakpoint>: New.
10560 <base>: Remove.
10561 (new_breakpoint_from_type): Remove casts.
10562 (watchpoint_in_thread_scope): Remove reference to base field.
10563 (watchpoint_del_at_next_stop): Likewise.
10564 (update_watchpoint): Likewise.
10565 (watchpoint_check): Likewise.
10566 (bpstat_check_watchpoint): Likewise.
10567 (set_longjmp_breakpoint): Likewise.
10568 (struct fork_catchpoint): Inherit from breakpoint.
10569 <base>: Remove.
10570 (struct solib_catchpoint): Inherit from breakpoint.
10571 <~solib_catchpoint>: New.
10572 <base>: Remove.
10573 (dtor_catch_solib): Change to ...
10574 (solib_catchpoint::~solib_catchpoint): ... this.
10575 (breakpoint_hit_catch_solib): Remove reference to base field.
10576 (add_solib_catchpoint): Likewise.
10577 (create_fork_vfork_event_catchpoint): Likewise.
10578 (struct exec_catchpoint): Inherit from breakpoint.
10579 <~exec_catchpoint>: New.
10580 <base>: Remove.
10581 (dtor_catch_exec): Change to ...
10582 (exec_catchpoint::~exec_catchpoint): ... this.
10583 (dtor_watchpoint): Change to ...
10584 (watchpoint::~watchpoint): ... this.
10585 (watch_command_1): Remove reference to base field.
10586 (catch_exec_command_1): Likewise.
10587 (base_breakpoint_dtor): Change to ...
10588 (breakpoint::~breakpoint): ... this.
10589 (base_breakpoint_ops): Remove dtor field value.
10590 (longjmp_bkpt_dtor): Change to ...
10591 (longjmp_breakpoint::~longjmp_breakpoint): ... this.
10592 (strace_marker_create_breakpoints_sal): Remove reference to base
10593 field.
10594 (delete_breakpoint): Don't manually call breakpoint destructor.
10595 (create_tracepoint_from_upload): Remove reference to base field.
10596 (trace_pass_set_count): Likewise.
10597 (initialize_breakpoint_ops): Don't initialize
10598 momentary_breakpoint_ops, don't set dtors.
10599 * ada-lang.c (struct ada_catchpoint): Inherit from breakpoint.
10600 <~ada_catchpoint>: New.
10601 <base>: Remove.
10602 (create_excep_cond_exprs): Remove reference to base field.
10603 (dtor_exception): Change to ...
10604 (ada_catchpoint::~ada_catchpoint): ... this.
10605 (dtor_catch_exception): Remove.
10606 (dtor_catch_exception_unhandled): Remove.
10607 (dtor_catch_assert): Remove.
10608 (create_ada_exception_catchpoint): Remove reference to base
10609 field.
10610 (initialize_ada_catchpoint_ops): Don't set dtors.
10611 * break-catch-sig.c (struct signal_catchpoint): Inherit from
10612 breakpoint.
10613 <~signal_catchpoint>: New.
10614 <base>: Remove.
10615 (signal_catchpoint_dtor): Change to ...
10616 (signal_catchpoint::~signal_catchpoint): ... this.
10617 (create_signal_catchpoint): Remove reference to base field.
10618 (initialize_signal_catchpoint_ops): Don't set dtor.
10619 * break-catch-syscall.c (struct syscall_catchpoint): Inherit
10620 from breakpoint.
10621 <~syscall_catchpoint>: New.
10622 <base>: Remove.
10623 (dtor_catch_syscall): Change to ...
10624 (syscall_catchpoint::~syscall_catchpoint): ... this.
10625 (create_syscall_event_catchpoint): Remove reference to base
10626 field.
10627 (initialize_syscall_catchpoint_ops): Don't set dtor.
10628 * break-catch-throw.c (struct exception_catchpoint): Inherit
10629 from breakpoint.
10630 <~exception_catchpoint>: New.
10631 <base>: Remove.
10632 (dtor_exception_catchpoint): Change to ...
10633 (exception_catchpoint::~exception_catchpoint): ... this.
10634 (handle_gnu_v3_exceptions): Remove reference to base field.
10635 (initialize_throw_catchpoint_ops): Don't set dtor.
10636 * ctf.c (ctf_get_traceframe_address): Remove reference to base
10637 field.
10638 * remote.c (remote_get_tracepoint_status): Likewise.
10639 * tracefile-tfile.c (tfile_get_traceframe_address): Likewise.
10640 * tracefile.c (tracefile_fetch_registers): Likewise.
10641 * tracepoint.c (actions_command): Likewise.
10642 (validate_actionline): Likewise.
10643 (tfind_1): Likewise.
10644 (get_traceframe_location): Likewise.
10645 (find_matching_tracepoint_location): Likewise.
10646 (parse_tracepoint_status): Likewise.
10647 * mi/mi-cmd-break.c (mi_cmd_break_passcount): Likewise.
10648
10649 2017-06-02 Simon Marchi <simon.marchi@polymtl.ca>
10650
10651 * breakpoint.c (struct longjmp_breakpoint): New struct.
10652 (is_tracepoint_type): Change return type to bool.
10653 (is_longjmp_type): New function.
10654 (new_breakpoint_from_type): Handle longjmp kinds of breakpoints.
10655 (set_raw_breakpoint_without_location): Use
10656 new_breakpoint_from_type.
10657 (set_raw_breakpoint): Likewise.
10658
10659 2017-06-02 Simon Marchi <simon.marchi@polymtl.ca>
10660
10661 * breakpoint.c (new_breakpoint_from_type): New function.
10662 (create_breakpoint_sal): Use new_breakpoint_from_type and
10663 unique_ptr.
10664 (create_breakpoint): Likewise.
10665
10666 2017-05-31 Simon Marchi <simon.marchi@ericsson.com>
10667
10668 * memattr.c (mem_info_command): Rename to ...
10669 (info_mem_command): ... this.
10670 (mem_enable_command): Rename to ...
10671 (enable_mem_command): ... this.
10672 (mem_disable_command): Rename to ...
10673 (disable_mem_command): ... this.
10674 (mem_delete_command): Rename to ...
10675 (delete_mem_command): ... this.
10676 (_initialize_mem): Adjust function names.
10677
10678 2017-05-31 Markus Metzger <markus.t.metzger@intel.com>
10679
10680 * btrace.c (handle_pt_insn_events): New.
10681 (ftrace_add_pt): Call handle_pt_insn_events. Rename ERRCODE into
10682 STATUS. Split into this and ...
10683 (handle_pt_insn_event_flags): ... this.
10684
10685 2017-05-31 Markus Metzger <markus.t.metzger@intel.com>
10686
10687 * configure.ac: Check for pt_insn_event, struct pt_insn.enabled,
10688 and struct pt_insn.resynced.
10689 * configure: Regenerated.
10690 * config.in: Regenerated.
10691
10692 2017-05-30 Tim Wiederhake <tim.wiederhake@intel.com>
10693
10694 * btrace.c (ftrace_find_call_by_number): New function.
10695 (ftrace_new_function): Store objects, not pointers.
10696 (ftrace_find_call_by_number, ftrace_new_return, ftrace_new_switch,
10697 ftrace_new_gap, ftrace_update_function,
10698 ftrace_compute_global_level_offset, btrace_stich_bts, btrace_clear,
10699 btrace_insn_get, btrace_insn_get_error, btrace_insn_end,
10700 btrace_insn_next, btrace_insn_prev, ptrace_find_insn_by_number,
10701 btrace_ends_with_single_insn, btrace_call_get): Account for
10702 btrace_thread_info::functions now storing objects.
10703 * btrace.h (struct btrace_thread_info): Add constructor.
10704 (struct btrace_thread_info) <functions>: Make std::vector.
10705 (struct btrace_thread_info) <prev, next, up, insn, errcode, flags):
10706 Initialize with default values.
10707 * record-btrace.c (record_btrace_frame_sniffer): Account for
10708 btrace_thread_info::functions now storing objects.
10709
10710 2017-05-30 Tim Wiederhake <tim.wiederhake@intel.com>
10711
10712 * btrace.c: Remove typedef bfun_s.
10713 (ftrace_new_gap): Directly add gaps to the list of gaps.
10714 (btrace_bridge_gaps, btrace_compute_ftrace_bts, pt_btrace_insn_flags,
10715 ftrace_add_pt, btrace_compute_ftrace_pt, btrace_compute_ftrace_1,
10716 btrace_finalize_ftrace, btrace_compute_ftrace): Use std::vector
10717 instead of gdb VEC.
10718
10719 2017-05-30 Tim Wiederhake <tim.wiederhake@intel.com>
10720
10721 * btrace.c (ftrace_fixup_caller, ftrace_new_return, ftrace_connect_bfun,
10722 ftrace_bridge_gap): Replace references to btrace_thread_info::segment
10723 with btrace_thread_info::next_segment and
10724 btrace_thread_info::prev_segment.
10725 * btrace.h: Remove struct btrace_func_link.
10726 (struct btrace_function): Replace pair of function segment pointers
10727 with pair of indices.
10728 * python/py-record-btrace.c (btpy_call_prev_sibling,
10729 btpy_call_next_sibling): Replace references to
10730 btrace_thread_info::segment with btrace_thread_info::next_segment and
10731 btrace_thread_info::prev_segment.
10732 * record-btrace.c (record_btrace_frame_this_id): Use
10733 btrace_find_call_by_number.
10734
10735 2017-05-30 Tim Wiederhake <tim.wiederhake@intel.com>
10736
10737 * btrace.c (ftrace_new_function, ftrace_fixup_level,
10738 ftrace_connect_bfun, ftrace_bridge_gap, btrace_bridge_gaps,
10739 btrace_insn_next, btrace_insn_prev): Remove references to
10740 btrace_thread_info::flow.
10741 * btrace.h (struct btrace_function): Remove FLOW.
10742
10743 2017-05-30 Tim Wiederhake <tim.wiederhake@intel.com>
10744
10745 * btrace.c (ftrace_find_call_by_number): New function.
10746 (ftrace_update_caller, ftrace_new_call, ftrace_new_tailcall,
10747 ftrace_get_caller, ftrace_find_call, ftrace_new_return,
10748 ftrace_match_backtrace, ftrace_connect_bfun, ftrace_connect_backtrace,
10749 ftrace_bridge_gap, btrace_bridge_gaps): Use btrace_function::up as an
10750 index.
10751 * btrace.h (struct btrace_function): Turn UP into an index.
10752 * python/py-record-btrace.c (btpy_call_up): Use btrace_function::up
10753 as an index.
10754 * record-btrace.c (record_btrace_frame_unwind_stop_reason,
10755 record_btrace_frame_prev_register, record_btrace_frame_sniffer,
10756 record_btrace_tailcall_frame_sniffe): Use btrace_find_call_by_number.
10757
10758 2017-05-30 Tim Wiederhake <tim.wiederhake@intel.com>
10759
10760 * btrace.c (ftrace_new_function, ftrace_new_call, ftrace_new_tailcall,
10761 ftrace_new_return, ftrace_new_switch, ftrace_new_gap,
10762 ftrace_update_function, ftrace_compute_global_level_offset,
10763 btrace_compute_ftrace_bts, ftrace_add_pt, btrace_compute_ftrace_pt,
10764 btrace_stitch_bts, btrace_fetch, btrace_clear, btrace_insn_number,
10765 btrace_insn_end, btrace_is_empty): Remove references to
10766 btrace_thread_info::begin and btrace_thread_info::end.
10767 * btrace.h (struct btrace_thread_info): Remove BEGIN and END.
10768 (struct btrace_thread_info) <functions>: Adjust comment.
10769 * record-btrace.c (record_btrace_start_replaying): Remove reference to
10770 btrace_thread_info::begin.
10771
10772 2017-05-30 Tim Wiederhake <tim.wiederhake@intel.com>
10773
10774 * btrace.c (ftrace_new_function, ftrace_new_call, ftrace_new_tailcall,
10775 ftrace_new_return, ftrace_new_switch, ftrace_new_gap,
10776 ftrace_update_function): Remove arguments that implicitly were always
10777 BTINFO->END.
10778 (btrace_compute_ftrace_bts, ftrace_add_pt, btrace_compute_ftrace_pt):
10779 Don't pass BTINFO->END.
10780
10781 2017-05-30 Tim Wiederhake <tim.wiederhake@intel.com>
10782
10783 * btrace.c: (btrace_insn_get, btrace_insn_get_error, btrace_insn_number,
10784 btrace_insn_begin, btrace_insn_end, btrace_insn_next, btrace_insn_prev,
10785 btrace_find_insn_by_number): Replace function segment pointer with
10786 index.
10787 (btrace_insn_cmp): Simplify.
10788 * btrace.h: (struct btrace_insn_iterator) Rename index to
10789 insn_index. Replace function segment pointer with index into function
10790 segment vector.
10791 * record-btrace.c (record_btrace_call_history): Replace function
10792 segment pointer use with index.
10793 (record_btrace_frame_sniffer): Retrieve function call segment through
10794 vector.
10795 (record_btrace_set_replay): Remove defunc't safety check.
10796
10797 2017-05-30 Tim Wiederhake <tim.wiederhake@intel.com>
10798
10799 * btrace.c (btrace_ends_with_single_insn): New function.
10800 (btrace_call_get, btrace_call_number, btrace_call_begin,
10801 btrace_call_end, btrace_call_next, btrace_call_prev,
10802 btrace_find_call_by_number): Use index into call segment vector
10803 instead of pointer.
10804 (btrace_call_cmp): Simplify.
10805 * btrace.h (struct btrace_call_iterator): Replace function call segment
10806 pointer with index into vector.
10807 * record-btrace.c (record_btrace_call_history): Use index instead of
10808 pointer.
10809
10810 2017-05-30 Tim Wiederhake <tim.wiederhake@intel.com>
10811
10812 * btrace.c (btrace_insn_begin, btrace_insn_end,
10813 btrace_find_insn_by_number): Add btinfo to iterator.
10814 * btrace.h (struct btrace_insn_iterator): Add btinfo.
10815
10816 2017-05-30 Tim Wiederhake <tim.wiederhake@intel.com>
10817
10818 * btrace.c (ftrace_new_function): Add btrace_thread_info to arguments
10819 and save pointers directly.
10820 (ftrace_new_call, ftrace_new_tailcall, ftrace_new_return,
10821 ftrace_new_switch, ftrace_new_gap, ftrace_update_function,
10822 ftrace_add_pt): Add btrace_thread_info to arguments. Adjust for
10823 changed signature of functions.
10824 (btrace_compute_ftrace_pt): Adjust for changed signature of functions.
10825 (btrace_fetch): Remove code that adds btrace_function pointers to
10826 vector of btrace_functions.
10827 (btrace_clear): Simplify freeing vector of btrace_functions.
10828
10829 2017-05-30 Tim Wiederhake <tim.wiederhake@intel.com>
10830
10831 * btrace.c (btrace_fetch, btrace_clear, btrace_find_insn_by_number):
10832 Replace VEC_* with std::vector functions.
10833 * btrace.h: Add include: vector. Remove typedef for DEF_VEC_P.
10834 (struct btrace_thread_info)<functions>: Change type to std::vector.
10835
10836 2017-05-30 Simon Marchi <simon.marchi@ericsson.com>
10837
10838 * NEWS (Changes in GDB 8.0): Remove extra empty line. Move
10839 "Removed targets and native configurations" up. Merge duplicate
10840 "New commands" sub-sections. Add "New options" sub-sections.
10841
10842 2017-05-26 Alan Hayward <alan.hayward@arm.com>
10843
10844 * defs.h (copy_integer_to_size): New declaration.
10845 * findvar.c (copy_integer_to_size): New function.
10846 (do_cint_test): New selftest function.
10847 (copy_integer_to_size_test): Likewise.
10848 (_initialize_findvar): Likewise.
10849 * mips-fbsd-tdep.c (mips_fbsd_supply_reg): Use raw_supply_integer.
10850 (mips_fbsd_collect_reg): Use raw_collect_integer.
10851 * mips-linux-tdep.c (supply_32bit_reg): Use raw_supply_integer.
10852 (mips64_fill_gregset): Use raw_collect_integer
10853 (mips64_fill_fpregset): Use raw_supply_integer.
10854 * regcache.c (regcache::raw_supply_integer): New function.
10855 (regcache::raw_collect_integer): Likewise.
10856 * regcache.h: (regcache::raw_supply_integer): New declaration.
10857 (regcache::raw_collect_integer): Likewise.
10858
10859 2017-05-24 Yao Qi <yao.qi@linaro.org>
10860
10861 * Makefile.in (SFILES): Add gdbarch-selftests.c.
10862 (COMMON_OBS): Add gdbarch-selftests.o.
10863 * frame.c [GDB_SELF_TESTS] (create_new_frame): New function.
10864 * frame.h [GDB_SELF_TESTS] (create_new_frame): Declare.
10865 * gdbarch-selftests.c: New file.
10866 * regcache.h (regcache) <~regcache>: Mark it virtual if
10867 GDB_SELF_TEST.
10868 <raw_write>: Likewise.
10869
10870 2017-05-24 Yao Qi <yao.qi@linaro.org>
10871
10872 * regcache.c (current_regcache): Change it to
10873 regcache::current_regcache.
10874 (regcache_observer_target_changed): Update.
10875 (regcache_thread_ptid_changed): Make it a regcache static
10876 method.
10877 (regcache_thread_ptid_changed): Update.
10878 (class regcache_access): New.
10879 (current_regcache_test): Update.
10880 (_initialize_regcache): Update.
10881 * regcache.h: Include forward_list.
10882 (regcache): Declare regcache_thread_ptid_changed and declare
10883 registers_changed_ptid as friend.
10884
10885 2017-05-24 Yao Qi <yao.qi@linaro.org>
10886
10887 * i387-tdep.c (i387_register_to_value): Use register_size
10888 instead of TYPE_LENGTH.
10889 * m68k-tdep.c (m68k_register_to_value): Likewise.
10890
10891 2017-05-24 Yao Qi <yao.qi@linaro.org>
10892
10893 * i387-tdep.c (i387_convert_register_p): Return false if type
10894 code isn't TYPE_CODE_FLT.
10895
10896 2017-05-24 Yao Qi <yao.qi@linaro.org>
10897
10898 * alpha-tdep.c (alpha_convert_register_p): Return true if type
10899 length is 4.
10900 (alpha_register_to_value): Remove type length check.
10901 (alpha_value_to_register): Likewise.
10902
10903 2017-05-24 Yao Qi <yao.qi@linaro.org>
10904
10905 * ia64-tdep.c (ia64_convert_register_p): Check type's code is
10906 TYPE_CODE_FLT.
10907
10908 2017-05-24 Yao Qi <yao.qi@linaro.org>
10909
10910 * m68k-tdep.c (m68k_convert_register_p): Check type's code is
10911 TYPE_CODE_FLT or not.
10912
10913 2017-05-24 Yao Qi <yao.qi@linaro.org>
10914
10915 * alpha-tdep.c (alpha_gdbarch_init): Use XCNEW instead of XNEW.
10916 * avr-tdep.c (avr_gdbarch_init): Likewise.
10917 * bfin-tdep.c (bfin_gdbarch_init): Likewise.
10918 * cris-tdep.c (cris_gdbarch_init): Likewise.
10919 * ft32-tdep.c (ft32_gdbarch_init): Likewise.
10920 * lm32-tdep.c (lm32_gdbarch_init): Likewise.
10921 * m32r-tdep.c (m32r_gdbarch_init): Likewise.
10922 * m68hc11-tdep.c (m68hc11_gdbarch_init): Likewise.
10923 * mep-tdep.c (mep_gdbarch_init): Likewise.
10924 * microblaze-tdep.c (microblaze_gdbarch_init): Likewise.
10925 * mips-tdep.c (mips_gdbarch_init): Likewise.
10926 * mn10300-tdep.c (mn10300_gdbarch_init): Likewise.
10927 * moxie-tdep.c (moxie_gdbarch_init): Likewise.
10928 * msp430-tdep.c (msp430_gdbarch_init): Likewise.
10929 * sh64-tdep.c (sh64_gdbarch_init): Likewise.
10930 * v850-tdep.c (v850_gdbarch_init): Likewise.
10931
10932 2017-05-24 Yao Qi <yao.qi@linaro.org>
10933
10934 * selftest-arch.c (tests_with_arch): Call registers_changed
10935 and reinit_frame_cache.
10936 * selftest.c (run_self_tests): Likewise.
10937
10938 2017-05-24 Yao Qi <yao.qi@linaro.org>
10939
10940 * rs6000-tdep.c (gdb_print_insn_powerpc): Remove.
10941 (rs6000_gdbarch_init): Don't call set_gdbarch_print_insn.
10942
10943 2017-05-24 Yao Qi <yao.qi@linaro.org>
10944
10945 * rl78-tdep.c (rl78_gdbarch_init): Don't call
10946 set_gdbarch_print_insn.
10947
10948 2017-05-24 Yao Qi <yao.qi@linaro.org>
10949
10950 * h8300-tdep.c (h8300_gdbarch_init): Don't call
10951 set_gdbarch_print_insn.
10952
10953 2017-05-24 Yao Qi <yao.qi@linaro.org>
10954
10955 * alpha-tdep.c (alpha_gdbarch_init): Don't call
10956 set_gdbarch_print_insn.
10957 * arc-tdep.c (arc_gdbarch_init): Likewise.
10958 * arch-utils.c: include dis-asm.h.
10959 (default_print_insn): New function.
10960 * arch-utils.h (default_print_insn): Declare.
10961 * avr-tdep.c (avr_gdbarch_init): Don't call set_gdbarch_print_insn.
10962 * bfin-tdep.c (bfin_gdbarch_init): Likewise.
10963 * cris-tdep.c (cris_delayed_get_disassembler): Remove.
10964 (cris_gdbarch_init): Don't call set_gdbarch_print_insn.
10965 * frv-tdep.c (frv_gdbarch_init): Likewise.
10966 * ft32-tdep.c (ft32_gdbarch_init): Likewise.
10967 * gdbarch.sh (print_insn): Use default_print_insn.
10968 * gdbarch.c: Regenerated.
10969 * hppa-tdep.c (hppa_gdbarch_init): Likewise.
10970 * iq2000-tdep.c (iq2000_gdbarch_init): Likewise.
10971 * lm32-tdep.c (lm32_gdbarch_init): Likewise.
10972 * m32c-tdep.c (m32c_gdbarch_init): Likewise.
10973 * m32r-tdep.c (m32r_gdbarch_init): Likewise.
10974 * m68hc11-tdep.c (gdb_print_insn_m68hc11): Remove.
10975 (m68hc11_gdbarch_init): Don't call set_gdbarch_print_insn.
10976 * m68k-tdep.c (m68k_gdbarch_init): Likewise.
10977 * m88k-tdep.c (m88k_gdbarch_init): Likewise.
10978 * microblaze-tdep.c (microblaze_gdbarch_init): Likewise.
10979 * mn10300-tdep.c (mn10300_gdbarch_init): Likewise.
10980 * moxie-tdep.c (moxie_gdbarch_init): Likewise.
10981 * msp430-tdep.c (msp430_gdbarch_init): Likewise.
10982 * mt-tdep.c (mt_gdbarch_init): Likewise.
10983 * nds32-tdep.c (nds32_gdbarch_init): Likewise.
10984 * nios2-tdep.c (nios2_print_insn): Remove.
10985 (nios2_gdbarch_init): Don't call set_gdbarch_print_insn.
10986 * rx-tdep.c (rx_gdbarch_init): Likewise.
10987 * s390-linux-tdep.c (s390_gdbarch_init): Likewise.
10988 * score-tdep.c (score_print_insn): Remove.
10989 (score_gdbarch_init): Don't call set_gdbarch_print_insn.
10990 * sh-tdep.c (sh_gdbarch_init): Likewise.
10991 * sh64-tdep.c (sh64_gdbarch_init): Likewise.
10992 * sparc-tdep.c (sparc32_gdbarch_init): Likewise.
10993 * tic6x-tdep.c (tic6x_print_insn): Remove.
10994 (tic6x_gdbarch_init): Don't call set_gdbarch_print_insn.
10995 * tilegx-tdep.c (tilegx_gdbarch_init): Likewise.
10996 * v850-tdep.c (v850_gdbarch_init): Likewise.
10997 * vax-tdep.c (vax_gdbarch_init): Likewise.
10998 * xstormy16-tdep.c (xstormy16_gdbarch_init): Likewise.
10999 * xtensa-tdep.c (xtensa_gdbarch_init): Likewise.
11000
11001 2017-05-23 John Baldwin <jhb@FreeBSD.org>
11002
11003 * mips-fbsd-tdep.c (MIPS_PC_REGNUM): Remove.
11004 (MIPS_FP0_REGNUM): Remove.
11005 (MIPS_FSR_REGNUM): Remove.
11006 (mips_fbsd_supply_fpregs): Use mips_regnum.
11007 (mips_fbsd_supply_gregs): Likewise.
11008 (mips_fbsd_collect_fpregs): Likewise.
11009 (mips_fbsd_collect_gregs): Likewise.
11010
11011 2017-05-23 John Baldwin <jhb@FreeBSD.org>
11012
11013 * mips-fbsd-nat.c (getregs_supplies): Fix upper bound comparison.
11014 (getpfpregs_supplies): New function.
11015 (mips_fbsd_fetch_inferior_registers): Remove early exit and use
11016 getfpregs_supplies.
11017 (mips_fbsd_store_inferior_registers): Likewise.
11018
11019 2017-05-22 Pedro Alves <palves@redhat.com>
11020
11021 * MAINTAINERS (Host/Native): Add John Baldwin as FreeBSD
11022 maintainer.
11023
11024 2017-05-22 Alan Hayward <alan.hayward@arm.com>
11025
11026 * ppc-linux-nat.c (fetch_register): Use PPC_MAX_REGISTER_SIZE.
11027 (store_register): Likewise.
11028 * ppc-sysv-tdep.c (ppc_sysv_abi_push_dummy_call): Likewise.
11029 (get_decimal_float_return_value): Likewise.
11030 (do_ppc_sysv_return_value): Likewise.
11031 (ppc64_sysv_abi_push_integer): Likewise.
11032 (ppc64_sysv_abi_push_freg): Likewise.
11033 (ppc64_sysv_abi_return_value_base): Likewise.
11034 (ppc64_sysv_abi_return_value): Likewise.
11035 * rs6000-aix-tdep.c (rs6000_push_dummy_call): Likewise.
11036 * rs6000-lynx178-tdep.c (rs6000_lynx178_push_dummy_call): Likewise.
11037 * rs6000-nat.c: Likewise.
11038 * rs6000-tdep.c (rs6000_register_to_value): Likewise.
11039 (rs6000_value_to_register): Likewise.
11040 * ppc-tdep.h (PPC_MAX_REGISTER_SIZE): Add.
11041
11042 2017-05-21 Tom Tromey <tom@tromey.com>
11043
11044 PR rust/21466:
11045 * rust-lang.c (rust_print_type) <TYPE_CODE_ARRAY>: Print unsized
11046 arrays as "[T]", not "[T; ]".
11047
11048 2017-05-19 Tom Tromey <tom@tromey.com>
11049
11050 PR rust/21484:
11051 * rust-lang.c (exp_descriptor_rust): New function.
11052 (rust_language_defn): Use it.
11053 * p-lang.c (pascal_language_defn): Update.
11054 * opencl-lang.c (opencl_language_defn): Update.
11055 * objc-lang.c (objc_language_defn): Update.
11056 * m2-lang.c (m2_language_defn): Update.
11057 * language.h (struct language_defn)
11058 <la_watch_location_expression>: New member.
11059 * language.c (unknown_language_defn, auto_language_defn)
11060 (local_language_defn): Update.
11061 * go-lang.c (go_language_defn): Update.
11062 * f-lang.c (f_language_defn): Update.
11063 * d-lang.c (d_language_defn): Update.
11064 * c-lang.h (c_watch_location_expression): Declare.
11065 * c-lang.c (c_watch_location_expression): New function.
11066 (c_language_defn, cplus_language_defn, asm_language_defn)
11067 (minimal_language_defn): Use it.
11068 * breakpoint.c (watch_command_1): Call
11069 la_watch_location_expression.
11070 * ada-lang.c (ada_language_defn): Update.
11071
11072 2017-05-19 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
11073
11074 PR tui/21482
11075 * gdb_curses.h (NOMACROS): Define.
11076 (NCURSES_NOMACROS): Define.
11077
11078 2017-05-19 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
11079
11080 PR tui/21482
11081 * tui/tui-windata.c (tui_erase_data_content): Cast last mvwaddstr
11082 arg to char *.
11083 * tui/tui-wingeneral.c (box_win): Likewise.
11084 * tui/tui-winsource.c (tui_erase_source_content): Likewise.
11085 (tui_show_source_line): Likewise.
11086 (tui_show_exec_info_content): Likewise.
11087
11088 2017-05-19 Vladimir Mezentsev <vladimir.mezentsev@oracle.com>
11089
11090 * sparc-tdep.c (sparc_structure_return_p)
11091 (sparc_arg_on_registers_p): New functions.
11092 (sparc32_store_arguments): Use them.
11093 * sparc64-tdep.c (sparc64_16_byte_align_p)
11094 (sparc64_store_floating_fields, sparc64_extract_floating_fields):
11095 Handle TYPE_CODE_ARRAY.
11096
11097 2017-05-17 Yao Qi <yao.qi@linaro.org>
11098
11099 * cli/cli-decode.c (add_alias_cmd): New function.
11100 * command.h (add_alias_cmd): Declare.
11101 * infcmd.c (_initialize_infcmd): Don't call add_com_alias,
11102 instead call add_alias_cmd.
11103
11104 2017-05-17 Pedro Alves <palves@redhat.com>
11105
11106 * Makefile.in (nat_extra_makefile_frag): Rename to ...
11107 (nat_makefile_frag): ... this. All references updated.
11108 * configure.ac: Likewise.
11109 * configure.nat: Likewise. Enhance comments.
11110 * configure: Regenerate.
11111
11112 2017-05-15 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
11113
11114 * procfs.c (procfs_create_inferior): Change prototype to match
11115 definition.
11116
11117 2017-05-13 Eli Zaretskii <eliz@gnu.org>
11118
11119 * tui/tui.c (tui_enable): Cast "unknown" to 'char *' to avoid a
11120 C++ compiler warning.
11121
11122 2017-05-12 Tom Tromey <tom@tromey.com>
11123
11124 PR rust/21483:
11125 * rust-lang.c (rust_evaluate_subexp) <STRUCTOP_STRUCT>: Don't
11126 recurse, just call value_struct_elt directly.
11127
11128 2017-05-12 Tom Tromey <tom@tromey.com>
11129
11130 * rust-lang.c (rust_dump_subexp_body) <STRUCTOP_ANONYMOUS,
11131 OP_RUST_ARRAY>: Fix.
11132
11133 2017-05-12 Tom Tromey <tom@tromey.com>
11134
11135 * rust-lang.c (rust_print_subexp): Replace "return" with "break".
11136
11137 2017-05-09 Yao Qi <yao.qi@linaro.org>
11138
11139 * regcache.c: Include <forward_list>.
11140 (struct regcache_list): Remove.
11141 (current_regcache): Update.
11142 (get_thread_arch_aspace_regcache): Update for std::forward_list.
11143 (regcache_thread_ptid_changed): Likewise.
11144 (registers_changed_ptid): Likewise.
11145 (current_regcache_size): Likewise.
11146
11147 2017-05-09 Yao Qi <yao.qi@linaro.org>
11148
11149 * regcache.c [GDB_SELF_TEST]: Include selftest.h.
11150 (current_regcache_size): New function.
11151 (current_regcache_test): New function.
11152 (_initialize_regcache) [GDB_SELF_TEST]: Register the unit test.
11153
11154 2017-05-08 Alan Hayward <alan.hayward@arm.com>
11155
11156 * mips-tdep.c (mips_o32_return_value): Remove unused buffer.
11157 (print_gp_register_row): Use get_frame_register_value.
11158
11159 2017-05-08 Alan Hayward <alan.hayward@arm.com>
11160
11161 * mips-linux-tdep.c (mips_supply_gregset): Use raw_supply_zeroed.
11162 (mips_supply_fpregset): Likewise.
11163 (mips64_supply_gregset): Likewise.
11164
11165 2017-05-08 Alan Hayward <alan.hayward@arm.com>
11166
11167 * mn10300-linux-tdep.c (am33_supply_gregset_method): Use
11168 regcache->raw_supply_zeroed.
11169
11170 2017-05-06 Sergio Durigan Junior <sergiodj@redhat.com>
11171
11172 * configure.nat: Rearrange 'case' statements to match
11173 host before cpu.
11174
11175 2017-05-06 Sergio Durigan Junior <sergiodj@redhat.com>
11176
11177 * Makefile.in: Remove "@host_makefile_frag@". Add variables
11178 NAT_FILE, NATDEPFILES, NAT_CDEPS, LOADLIBES, MH_CFLAGS, XM_CLIBS,
11179 NAT_GENERATED_FILES, HAVE_NATIVE_GCORE_HOST. Add
11180 "@nat_extra_makefile_frag@".
11181 (Makefile): Remove dependency on "@frags@".
11182 ($(GNULIB_BUILDDIR)/Makefile): Likewise.
11183 (data-directory/Makefile): Likewise.
11184 * config/aarch64/linux.mh: Deleted; moved contents to
11185 "gdb/configure.nat".
11186 * config/alpha/alpha-linux.mh: Likewise.
11187 * config/alpha/nbsd.mh: Likewise.
11188 * config/arm/linux.mh: Likewise.
11189 * config/arm/nbsdelf.mh: Likewise.
11190 * config/i386/cygwin.mh: Likewise.
11191 * config/i386/cygwin64.mh: Likewise.
11192 * config/i386/darwin.mh: Likewise.
11193 * config/i386/fbsd.mh: Likewise.
11194 * config/i386/fbsd64.mh: Likewise.
11195 * config/i386/go32.mh: Likewise.
11196 * config/i386/i386gnu.mh: Likewise.
11197 * config/i386/i386sol2.mh: Likewise.
11198 * config/i386/linux.mh: Likewise.
11199 * config/i386/linux64.mh: Likewise.
11200 * config/i386/mingw.mh: Likewise.
11201 * config/i386/mingw64.mh: Likewise.
11202 * config/i386/nbsd64.mh: Likewise.
11203 * config/i386/nbsdelf.mh: Likewise.
11204 * config/i386/nto.mh: Likewise.
11205 * config/i386/obsd.mh: Likewise.
11206 * config/i386/obsd64.mh: Likewise.
11207 * config/i386/sol2-64.mh: Likewise.
11208 * config/ia64/linux.mh: Likewise.
11209 * config/m32r/linux.mh: Likewise.
11210 * config/m68k/linux.mh: Likewise.
11211 * config/m68k/nbsdelf.mh: Likewise.
11212 * config/m68k/obsd.mh: Likewise.
11213 * config/m88k/obsd.mh: Likewise.
11214 * config/mips/fbsd.mh: Likewise.
11215 * config/mips/linux.mh: Likewise.
11216 * config/mips/nbsd.mh: Likewise.
11217 * config/mips/obsd64.mh: Likewise.
11218 * config/pa/linux.mh: Likewise.
11219 * config/pa/nbsd.mh: Likewise.
11220 * config/pa/obsd.mh: Likewise.
11221 * config/powerpc/aix.mh: Likewise.
11222 * config/powerpc/fbsd.mh: Likewise.
11223 * config/powerpc/linux.mh: Likewise.
11224 * config/powerpc/nbsd.mh: Likewise.
11225 * config/powerpc/obsd.mh: Likewise.
11226 * config/powerpc/ppc64-linux.mh: Likewise.
11227 * config/powerpc/spu-linux.mh: Likewise.
11228 * config/s390/linux.mh: Likewise.
11229 * config/sh/nbsd.mh: Likewise.
11230 * config/sparc/fbsd.mh: Likewise.
11231 * config/sparc/linux.mh: Likewise.
11232 * config/sparc/linux64.mh: Likewise.
11233 * config/sparc/nbsd64.mh: Likewise.
11234 * config/sparc/nbsdelf.mh: Likewise.
11235 * config/sparc/obsd64.mh: Likewise.
11236 * config/sparc/sol2.mh: Likewise.
11237 * config/tilegx/linux.mh: Likewise.
11238 * config/vax/nbsdelf.mh: Likewise.
11239 * config/vax/obsd.mh: Likewise.
11240 * config/xtensa/linux.mh: Likewise.
11241 * config/i386/i386gnu.mn: New file, with excerpts from
11242 "config/i386/i386gnu.mh".
11243 * configure: Regenerate.
11244 * configure.ac: Rewrite code to use "gdb/configure.nat" instead of
11245 *.mh files under "gdb/config".
11246 * configure.nat: New file, with contents from the
11247 "gdb/config/*/*.mh" files.
11248
11249 2017-05-05 Tim Wiederhake <tim.wiederhake@intel.com>
11250
11251 * btrace.c (btrace_clear): Free insn vector.
11252
11253 2017-05-05 Pedro Alves <palves@redhat.com>
11254
11255 * warning.m4 (build_warnings): Add -Wno-error=maybe-uninitialized.
11256 * configure: Regenerate.
11257
11258 2017-05-04 Pedro Alves <palves@redhat.com>
11259
11260 * Makefile.in (SFILES): Add progspace-and-thread.c.
11261 (HFILES_NO_SRCDIR): Add progspace-and-thread.h.
11262 (COMMON_OBS): Add progspace-and-thread.o.
11263 * breakpoint.c: Include "progspace-and-thread.h".
11264 (update_inserted_breakpoint_locations)
11265 (insert_breakpoint_locations, create_longjmp_master_breakpoint):
11266 Use scoped_restore_current_pspace_and_thread.
11267 (create_std_terminate_master_breakpoint): Use
11268 scoped_restore_current_program_space.
11269 (remove_breakpoint): Use scoped_restore_current_pspace_and_thread.
11270 (print_breakpoint_location): Use
11271 scoped_restore_current_program_space.
11272 (bp_loc_is_permanent): Use
11273 scoped_restore_current_pspace_and_thread.
11274 (resolve_sal_pc): Use scoped_restore_current_pspace_and_thread.
11275 (download_tracepoint_locations): Use
11276 scoped_restore_current_pspace_and_thread.
11277 (breakpoint_re_set): Use scoped_restore_current_pspace_and_thread.
11278 * exec.c (exec_close_1): Use scoped_restore_current_program_space.
11279 (enum step_over_calls_kind): Moved from inferior.h.
11280 (class scoped_restore_current_thread): New class.
11281 * gdbthread.h (make_cleanup_restore_current_thread): Delete
11282 declaration.
11283 (scoped_restore_current_thread): New class.
11284 * infcmd.c: Include "common/gdb_optional.h".
11285 (continue_1, proceed_after_attach): Use
11286 scoped_restore_current_thread.
11287 (notice_new_inferior): Use scoped_restore_current_thread.
11288 * inferior.c: Include "progspace-and-thread.h".
11289 (restore_inferior, save_current_inferior): Delete.
11290 (add_inferior_command, clone_inferior_command): Use
11291 scoped_restore_current_pspace_and_thread.
11292 * inferior.h (scoped_restore_current_inferior): New class.
11293 * infrun.c: Include "progspace-and-thread.h" and
11294 "common/gdb_optional.h".
11295 (follow_fork_inferior): Use
11296 scoped_restore_current_pspace_and_thread.
11297 (scoped_restore_exited_inferior): New class.
11298 (handle_vfork_child_exec_or_exit): Use
11299 scoped_restore_exited_inferior,
11300 scoped_restore_current_pspace_and_thread,
11301 scoped_restore_current_thread and scoped_restore.
11302 (fetch_inferior_event): Use scoped_restore_current_thread.
11303 * linespec.c (decode_line_full, decode_line_1): Use
11304 scoped_restore_current_program_space.
11305 * mi/mi-main.c: Include "progspace-and-thread.h".
11306 (exec_continue): Use scoped_restore_current_thread.
11307 (mi_cmd_exec_run): Use scoped_restore_current_pspace_and_thread.
11308 (mi_cmd_trace_frame_collected): Use scoped_restore_current_thread.
11309 * proc-service.c (ps_pglobal_lookup): Use
11310 scoped_restore_current_program_space.
11311 * progspace-and-thread.c: New file.
11312 * progspace-and-thread.h: New file.
11313 * progspace.c (release_program_space, clone_program_space): Use
11314 scoped_restore_current_program_space.
11315 (restore_program_space, save_current_program_space)
11316 (save_current_space_and_thread): Delete.
11317 (switch_to_program_space_and_thread): Moved to
11318 progspace-and-thread.c.
11319 * progspace.h (save_current_program_space)
11320 (save_current_space_and_thread): Delete declarations.
11321 (scoped_restore_current_program_space): New class.
11322 * remote.c (remote_btrace_maybe_reopen): Use
11323 scoped_restore_current_thread.
11324 * symtab.c: Include "progspace-and-thread.h".
11325 (skip_prologue_sal): Use scoped_restore_current_pspace_and_thread.
11326 * thread.c (print_thread_info_1): Use
11327 scoped_restore_current_thread.
11328 (struct current_thread_cleanup): Delete.
11329 (do_restore_current_thread_cleanup)
11330 (restore_current_thread_cleanup_dtor): Rename/convert both to ...
11331 (scoped_restore_current_thread::~scoped_restore_current_thread):
11332 ... this new dtor.
11333 (make_cleanup_restore_current_thread): Rename/convert to ...
11334 (scoped_restore_current_thread::scoped_restore_current_thread):
11335 ... this new ctor.
11336 (thread_apply_all_command): Use scoped_restore_current_thread.
11337 (thread_apply_command): Use scoped_restore_current_thread.
11338 * tracepoint.c (tdump_command): Use scoped_restore_current_thread.
11339 * varobj.c (value_of_root_1): Use scoped_restore_current_thread.
11340
11341 2017-05-04 Pedro Alves <palves@redhat.com>
11342
11343 * thread.c (make_cleanup_restore_current_thread): Move
11344 find_thread_ptid call before the is_stopped call. Assert that the
11345 thread is found. Replace is_stopped call by checking the thread's
11346 state directly. Remove unnecessary NULL-thread check.
11347
11348 2017-05-04 Pedro Alves <palves@redhat.com>
11349
11350 * corelow.c (thread_section_name): New class.
11351 (get_core_register_section, get_core_siginfo): Use it.
11352
11353 2017-05-04 Andreas Arnez <arnez@linux.vnet.ibm.com>
11354
11355 * corelow.c (sniff_core_bfd): Remove extra semicolon.
11356 (get_core_register_section): Remove xfree of NULL pointer.
11357
11358 2017-05-03 Alan Hayward <alan.hayward@arm.com>
11359
11360 * frv-linux-tdep.c (frv_linux_supply_gregset): Use raw_supply_zeroed.
11361 * regcache.c (regcache::raw_supply_zeroed): New function.
11362 * regcache.h (regcache::raw_supply_zeroed): New declaration.
11363
11364 2017-05-03 Simon Marchi <simon.marchi@ericsson.com>
11365
11366 * gdbarch.sh: Remove commented out definition of
11367 TARGET_CHAR_BIT.
11368 * gdbarch.h: Re-generate.
11369
11370 2017-05-03 Sergio Durigan Junior <sergiodj@redhat.com>
11371
11372 * configure: Regenerate.
11373
11374 2017-05-02 Simon Marchi <simon.marchi@ericsson.com>
11375
11376 * solib-target.c (solib_target_relocate_section_addresses):
11377 Remove num_section_bases, num_bases, segment_bases variables.
11378
11379 2017-05-02 Simon Marchi <simon.marchi@polymtl.ca>
11380
11381 * common/gdb_vecs.h (DEF_VEC_I (CORE_ADDR)): Remove.
11382
11383 2017-05-02 Simon Marchi <simon.marchi@polymtl.ca>
11384
11385 * solib-target.c: Include <vector>
11386 (struct lm_info_target) <~lm_info_target>: Remove.
11387 <segment_bases, section_bases>: Change type to
11388 std::vector<CORE_ADDR>.
11389 (library_list_start_segment, library_list_start_section,
11390 library_list_end_library,
11391 solib_target_relocate_section_addresses): Adjust.
11392
11393 2017-05-02 Simon Marchi <simon.marchi@polymtl.ca>
11394
11395 * gdbarch.sh (software_single_step): Change return type to
11396 std::vector<CORE_ADDR>.
11397 * gdbarch.c, gdbarch.h: Re-generate.
11398 * arch/arm-get-next-pcs.c (thumb_deal_with_atomic_sequence_raw):
11399 Adjust.
11400 (arm_deal_with_atomic_sequence_raw): Adjust.
11401 (thumb_get_next_pcs_raw): Adjust.
11402 (arm_get_next_pcs_raw): Adjust.
11403 (arm_get_next_pcs): Adjust.
11404 * arch/arm-get-next-pcs.h (arm_get_next_pcs): Adjust.
11405 * aarch64-tdep.c (aarch64_software_single_step): Adjust.
11406 * alpha-tdep.c (alpha_deal_with_atomic_sequence): Adjust.
11407 (alpha_software_single_step): Adjust.
11408 * alpha-tdep.h (alpha_software_single_step): Adjust.
11409 * arm-linux-tdep.c (arm_linux_software_single_step): Adjust.
11410 * arm-tdep.c (arm_software_single_step): Adjust.
11411 (arm_breakpoint_kind_from_current_state): Adjust.
11412 * arm-tdep.h (arm_software_single_step): Adjust.
11413 * breakpoint.c (insert_single_step_breakpoint): Adjust.
11414 * cris-tdep.c (cris_software_single_step): Adjust.
11415 * mips-tdep.c (mips_deal_with_atomic_sequence): Adjust.
11416 (micromips_deal_with_atomic_sequence): Adjust.
11417 (deal_with_atomic_sequence): Adjust.
11418 (mips_software_single_step): Adjust.
11419 * mips-tdep.h (mips_software_single_step): Adjust.
11420 * moxie-tdep.c (moxie_software_single_step): Adjust.
11421 * nios2-tdep.c (nios2_software_single_step): Adjust.
11422 * ppc-tdep.h (ppc_deal_with_atomic_sequence): Adjust.
11423 * rs6000-aix-tdep.c (rs6000_software_single_step): Adjust.
11424 * rs6000-tdep.c (ppc_deal_with_atomic_sequence): Adjust.
11425 * s390-linux-tdep.c (s390_software_single_step): Adjust.
11426 * sparc-tdep.c (sparc_software_single_step): Adjust.
11427 * spu-tdep.c (spu_software_single_step): Adjust.
11428 * tic6x-tdep.c (tic6x_software_single_step): Adjust.
11429
11430 2017-05-02 Simon Marchi <simon.marchi@polymtl.ca>
11431
11432 * gdbarch.sh: Use semi-colon as field separator instead of colon.
11433 * gdbarch.h: Re-generate.
11434
11435 2017-05-01 Tim Wiederhake <tim.wiederhake@intel.com>
11436
11437 * Makefile.in (SUBDIR_PYTHON_OBS): Add py-instruction.o.
11438 (SUBDIR_PYTHON_SRCS): Add py-instruction.c.
11439 * python/py-instruction.c, python/py-instruction.h: New file.
11440 * python/py-record.c: Add py-instruction.h include.
11441 (gdbpy_initialize_record): Make gdb.Instruction a super class of
11442 gdb.RecordInstruction.
11443 * python/python-internal.h: Add gdbpy_initialize_instruction
11444 declaration.
11445 * python/python.c (do_start_initialization): Add
11446 gdbpy_initialize_instruction.
11447
11448 2017-05-01 Tim Wiederhake <tim.wiederhake@intel.com>
11449
11450 * python/py-record-btrace.c (BTPY_REQUIRE_VALID_CALL, btpy_call_type):
11451 Remove.
11452 (btrace_func_from_recpy_func): New function.
11453 (btpy_call_new, btpy_number, btpy_hash, btpy_richcompare): Remove.
11454 (btpy_call_level, btpy_call_symbol, btpy_call_instructions,
11455 btpy_call_up, btpy_call_prev_sibling, btpy_call_next_sibling): Rename to ...
11456 (recpy_bt_func_level, recpy_bt_func_symbol, recpy_bt_func_instructions,
11457 recpy_bt_func_up, recpy_bt_func_prev, recpy_bt_func_next): This.
11458 Also, use new helper functions.
11459 (btpy_list_item): Use new helper functions.
11460 (recpy_bt_function_call_history): Use new type name.
11461 (btpy_call_getset): Remove.
11462 (gdbpy_initialize_btrace): Remove code to initialize
11463 gdb.BtraceFunctionCall.
11464 * python/py-record-btrace.h (recpy_bt_func_number, recpy_btb_func_level,
11465 recpy_btb_func_symbol, recpy_bt_func_instructions, recpy_bt_func_up,
11466 recpy_bt_func_prev, recpy_bt_func_next): New export.
11467 * python/py-record.c (recpy_func_type): New static object.
11468 (recpy_func_new, recpy_func_level, recpy_func_symbol,
11469 recpy_func_instructions, recpy_func_up, recpy_func_prev,
11470 recpy_func_next): New function.
11471 (recpy_element_hash, recpy_element_richcompare): Updated comment.
11472 (recpy_func_getset): New static object.
11473 (gdbpy_initialize_record): Add code to initialize gdb.RecordInstruction.
11474 * python/py-record.h (recpy_func_type, recpy_func_new): New export.
11475
11476 2017-05-01 Tim Wiederhake <tim.wiederhake@intel.com>
11477
11478 * python/py-record-btrace.c (BTPY_REQUIRE_VALID_INSN): Remove.
11479 (btpy_object, btpy_insn_type, btpy_new): Remove.
11480 (btpy_list_object): Use gdb.RecordInstruction type instead of
11481 gdb.BtraceInstruction type.
11482 (btrace_insn_from_recpy_insn): New function.
11483 (btpy_insn_or_gap_new): Adjust comment. Use recpy_insn_new instead of
11484 btpy_new.
11485 (btpy_call_new, btpy_list_item): Do not use btpy_new anymore.
11486 (btpy_number, btpy_hash, btpy_call_level, btpy_call_symbol,
11487 btpy_call_instructions, btpy_call_up, btpy_call_prev_sibling,
11488 btpy_call_next_sibling, btpy_richcompare): Use recpy_element_object
11489 instead of btpy_object.
11490 (btpy_insn_sal, btpy_insn_pc, btpy_insn_size, btpy_insn_is_speculative,
11491 btpy_insn_data, btpy_insn_decode): Rename to ...
11492 (recpy_bt_insn_sal, recpy_bt_insn_pc, recpy_bt_insn_size,
11493 recpy_bt_insn_is_speculative, recpy_bt_insn_data,
11494 recpy_bt_insn_decode): This. Also, use new helper functions.
11495 (btpy_list_position, recpy_bt_goto): Use recpy_element_object and
11496 recpy_insn_type.
11497 (btpy_insn_getset): Remove.
11498 (gdbpy_initialize_btrace): Remove code to initialize
11499 gdb.BtraceInstruction. Use recpy_element_object.
11500 * python/py-record-btrace.h (recpy_bt_insn_number, recpy_bt_insn_sal,
11501 recpy_bt_insn_pc, recpy_bt_insn_data, recpy_bt_insn_decoded,
11502 recpy_bt_insn_size, recpy_bt_insn_is_speculative): New export.
11503 * python/py-record.c (recpy_insn_type): New static object.
11504 (recpy_insn_new, recpy_insn_sal, recpy_insn_pc, recpy_insn_data,
11505 recpy_insn_decoded, recpy_insn_size, recpy_insn_is_speculative,
11506 recpy_element_number, recpy_element_hash, recpy_element_richcompare):
11507 New function.
11508 (recpy_insn_getset): New static object.
11509 (gdbpy_initialize_record): Initialize gdb.RecordInstruction.
11510 * python/py-record.h (recpy_element_object): New typedef.
11511 (recpy_insn_type, recpy_insn_new): New export.
11512
11513 2017-05-01 Tim Wiederhake <tim.wiederhake@intel.com>
11514
11515 * py-record-btrace.c (btpy_insn_new): Removed.
11516 (btpy_insn_or_gap_new): New function.
11517 (btpy_insn_error): Removed.
11518 (btpy_insn_sal, btpy_insn_pc, btpy_insn_size, btpy_insn_is_speculative,
11519 btpy_insn_data, btpy_insn_decode): Remove code path for gaps.
11520 (recpy_bt_replay_position, recpy_bt_begin, recpy_bt_end): Call
11521 btpy_insn_or_gap_new instead of btpy_insn_new.
11522 (btpy_insn_getset): Remove btpy_insn_error.
11523 * py-record.c (recpy_gap_type): New static object.
11524 (recpy_gap_object): New typedef.
11525 (recpy_gap_new, recpy_gap_number, recpy_gap_reason_code,
11526 recpy_gap_reason_string): New function.
11527 (recpy_gap_getset): New static object.
11528 (gdbpy_initialize_record): Initialize gdb.RecordGap type.
11529 * py-record.h (recpy_gap_new): New export.
11530
11531 2017-05-01 Tim Wiederhake <tim.wiederhake@intel.com>
11532
11533 * python/py-record.c (recpy_ptid): Remove.
11534 (recpy_record_getset): Remove recpy_ptid.
11535
11536 2017-05-01 Tim Wiederhake <tim.wiederhake@intel.com>
11537
11538 * btrace.c (btrace_fetch): Set inferior_ptid.
11539 * python/py-record-btrace.c: Add "py-record.h" include.
11540 (recpy_bt_format, recpy_bt_replay_position, recpy_bt_begin,
11541 recpy_bt_end, recpy_bt_instruction_history,
11542 recpy_bt_function_call_history, recpy_bt_goto): Use ptid stored
11543 in gdb.Record object instead of current ptid.
11544 * python/py-record.c: Include new "py-record.h" file.
11545 (recpy_record_object): Moved to py-record.h.
11546 * python/py-record.h: New file.
11547
11548 2017-05-01 Tim Wiederhake <tim.wiederhake@intel.com>
11549
11550 * python/py-record-btrace.c (BTPY_REQUIRE_VALID_INSN,
11551 BTPY_REQUIRE_VALID_CALL, recpy_bt_function_call_history): Fix
11552 indentation.
11553
11554 2017-05-01 Joel Brobecker <brobecker@adacore.com>
11555
11556 * MAINTAINERS: Move Daniel Jacobowitz and Mark Kettenis to
11557 the past maintainers section.
11558
11559 2017-04-28 Yao Qi <yao.qi@linaro.org>
11560
11561 * infcmd.c (get_return_value): Use regcache ctor, and remove
11562 cleanup.
11563
11564 2017-04-28 Yao Qi <yao.qi@linaro.org>
11565 Pedro Alves <palves@redhat.com>
11566
11567 * regcache.c (regcache::regcache): New tag dispatch ctor.
11568 (do_cooked_read): Moved above.
11569 (regcache_dup): Use the tag dispatch ctor..
11570 * regcache.h (regcache): Declare ctor, delete copy ctor and
11571 assignment operator, remove friend regcache_dup.
11572
11573 2017-04-28 Yao Qi <yao.qi@linaro.org>
11574
11575 * regcache.c (regcache_dup): Assert !src->m_readonly_p and
11576 call method save instead of regcache_cpy.
11577 * regcache.h (struct regcache): Make regcache_dup a friend.
11578
11579 2017-04-28 Yao Qi <yao.qi@linaro.org>
11580
11581 * regcache.c (struct regcache): Move to regcache.h
11582 (regcache::arch): New method.
11583 (regcache_get_ptid): Update.
11584 (get_regcache_arch): Call arch method.
11585 (get_regcache_aspace): Call method aspace.
11586 (register_buffer): Change it to method.
11587 (regcache_save): Change it to regcache::save.
11588 (regcache_restore): Likewise.
11589 (regcache_cpy_no_passthrough): Remove the declaration.
11590 (regcache_cpy): Call methods restore and cpy_no_passthrough.
11591 (regcache_cpy_no_passthrough): Change it to method
11592 cpy_no_passthrough.
11593 (regcache_register_status): Change it to method
11594 get_register_status.
11595 (regcache_invalidate): Change it to method invalidate.
11596 (regcache_thread_ptid_changed): Use methods ptid and set_ptid.
11597 (regcache_raw_update): Change it to method raw_update.
11598 (regcache_raw_read): Likewise.
11599 (regcache_raw_read_signed): Likewise.
11600 (regcache_raw_read_unsigned): Likewise.
11601 (regcache_raw_write_signed): Likewise.
11602 (regcache_raw_write_unsigned): Likewise.
11603 (regcache_cooked_read): Likewise.
11604 (regcache_cooked_read_value): Likewise.
11605 (regcache_cooked_read_signed): Likewise.
11606 (regcache_cooked_read_unsigned): Likewise.
11607 (regcache_cooked_write_signed): Likewise.
11608 (regcache_cooked_write_unsigned): Likewise.
11609 (regcache_raw_set_cached_value): Likewise.
11610 (regcache_raw_write): Likewise.
11611 (regcache_cooked_write): Likewise.
11612 (regcache_xfer_part): Likewise.
11613 (regcache_raw_read_part): Likewise.
11614 (regcache_raw_write_part): Likewise.
11615 (regcache_cooked_read_part): Likewise.
11616 (regcache_cooked_write_part): Likewise.
11617 (regcache_raw_supply): Likewise.
11618 (regcache_raw_collect): Likewise.
11619 (regcache_transfer_regset): Likewise.
11620 (regcache_supply_regset): Likewise.
11621 (regcache_collect_regset): Likewise.
11622 (regcache_debug_print_register): Likewise.
11623 (enum regcache_dump_what): Move it to regcache.h.
11624 (regcache_dump): Change it to method dump.
11625 * regcache.h (enum regcache_dump_what): New.
11626 (class regcache): New.
11627 * target.c (target_fetch_registers): Call method
11628 debug_print_register.
11629 (target_store_registers): Likewise.
11630
11631 2017-04-28 Simon Marchi <simon.marchi@ericsson.com>
11632
11633 * windows-nat.c (struct lm_info_windows): Initialize field.
11634 (windows_make_so): Allocate lm_info_windows with new.
11635 (windows_free_so): Free lm_info_windows with delete.
11636
11637 2017-04-28 Simon Marchi <simon.marchi@ericsson.com>
11638
11639 * solib-darwin.c (struct lm_info_darwin): Initialize field.
11640 (darwin_current_sos): Allocate lm_info_darwin with new, remove
11641 cleanup.
11642 (darwin_free_so): Free lm_info_darwin with delete.
11643
11644 2017-04-28 Simon Marchi <simon.marchi@ericsson.com>
11645
11646 * solib-svr4.h (struct lm_info_svr4): Initialize fields.
11647 <l_addr_p>: Change type to bool.
11648 * solib-svr4.c (lm_info_read): Allocate lm_info_svr4 with new.
11649 (svr4_free_so): Free lm_info_svr4 with delete.
11650 (svr4_copy_library_list): Replace memcpy with call to copy
11651 constructor.
11652 (library_list_start_library, svr4_default_sos): Allocate
11653 lm_info_svr4 with new.
11654
11655 2017-04-28 Simon Marchi <simon.marchi@ericsson.com>
11656
11657 * solib-target.c (struct lm_info_target): Add destructor,
11658 initialize fields.
11659 <name>: Change type to std::string.
11660 (library_list_start_library): Allocate lm_info_target with new.
11661 (solib_target_free_library_list): Free lm_info_target with
11662 delete.
11663 (solib_target_current_sos): Adapt to std::string.
11664 (solib_target_free_so): Free lm_info_target with delete.
11665
11666 2017-04-28 Simon Marchi <simon.marchi@ericsson.com>
11667
11668 * solib-frv.c (struct lm_info_frv): Add destructor, initialize
11669 fields.
11670 (frv_current_sos): Allocate lm_info_frv with new.
11671 (frv_relocate_main_executable): Free lm_info_frv with delete,
11672 allocate with new.
11673 (frv_clear_solib, frv_free_so): Free lm_info_frv with delete.
11674
11675 2017-04-28 Simon Marchi <simon.marchi@ericsson.com>
11676
11677 * solib-frv.c (struct lm_info_frv): Fix indentation.
11678
11679 2017-04-28 Simon Marchi <simon.marchi@ericsson.com>
11680
11681 * solib-dsbt.c (struct lm_info_dsbt): Add destructor, initialize
11682 map field.
11683 (dsbt_current_sos): Allocate lm_info_dsbt with new.
11684 (dsbt_relocate_main_executable): Free lm_info_dsbt with delete
11685 and allocate with new.
11686 (dsbt_clear_solib, dsbt_free_so): Free lm_info_dsbt with delete.
11687
11688 2017-04-28 Simon Marchi <simon.marchi@ericsson.com>
11689
11690 * solib-aix.c (struct lm_info_aix): Initialize fields in-class.
11691 <filename, member_name>: Change type to std::string.
11692 (solib_aix_new_lm_info, solib_aix_xfree_lm_info): Remove.
11693 (library_list_start_library): Allocate lm_info_aix with new.
11694 (solib_aix_free_library_list, solib_aix_free_so): Free with delete.
11695 (solib_aix_current_sos): Adapt to std::string, copy lm_info_aix
11696 with copy constructor.
11697
11698 2017-04-28 Simon Marchi <simon.marchi@ericsson.com>
11699
11700 * solist.h (struct lm_info): Remove.
11701 (struct lm_info_base): New class.
11702 (struct so_list) <lm_info>: Change type to lm_info_base *.
11703 * nto-tdep.c (struct lm_info): Remove.
11704 (lm_addr): Adjust.
11705 * solib-aix.c (struct lm_info): Rename to ...
11706 (struct lm_info_aix): ... this. Extend lm_info_base.
11707 (lm_info_p): Rename to ...
11708 (lm_info_aix_p): ... this, and adjust.
11709 (solib_aix_new_lm_info, solib_aix_xfree_lm_info,
11710 solib_aix_parse_libraries, library_list_start_library,
11711 solib_aix_free_library_list, solib_aix_parse_libraries,
11712 solib_aix_get_library_list,
11713 solib_aix_relocate_section_addresses, solib_aix_free_so,
11714 solib_aix_get_section_offsets,
11715 solib_aix_solib_create_inferior_hook, solib_aix_current_sos):
11716 Adjust.
11717 (struct solib_aix_inferior_data) <library_list>: Adjust.
11718 * solib-darwin.c (struct lm_info): Rename to ...
11719 (struct lm_info_darwin): ... this. Extend lm_info_base.
11720 (darwin_current_sos, darwin_relocate_section_addresses): Adjust.
11721 * solib-dsbt.c (struct lm_info): Rename to ...
11722 (struct lm_info_dsbt): ... this. Extend lm_info_base.
11723 (struct dsbt_info) <main_executable_lm_info): Adjust.
11724 (dsbt_current_sos, dsbt_relocate_main_executable, dsbt_free_so,
11725 dsbt_relocate_section_addresses): Adjust.
11726 * solib-frv.c (struct lm_info): Rename to ...
11727 (struct lm_info_frv): ... this. Extend lm_info_base.
11728 (main_executable_lm_info): Adjust.
11729 (frv_current_sos, frv_relocate_main_executable, frv_free_so,
11730 frv_relocate_section_addresses, frv_fdpic_find_global_pointer,
11731 find_canonical_descriptor_in_load_object,
11732 frv_fdpic_find_canonical_descriptor): Adjust.
11733 * solib-svr4.c (struct lm_info): Move to solib-svr4.h, renamed
11734 to lm_info_svr4.
11735 (lm_info_read, lm_addr_check, svr4_keep_data_in_core,
11736 svr4_clear_so, svr4_copy_library_list,
11737 library_list_start_library, svr4_default_sos, svr4_read_so_list,
11738 svr4_current_sos, svr4_fetch_objfile_link_map,
11739 solist_update_incremental): Adjust.
11740 * solib-svr4.h (struct lm_info_svr4): Move here from
11741 solib-svr4.c.
11742 * solib-target.c (struct lm_info): Rename to ...
11743 (struct lm_info_target): ... this. Extend lm_info_base.
11744 (lm_info_p): Rename to ...
11745 (lm_info_target_p): ... this.
11746 (solib_target_parse_libraries, library_list_start_segment,
11747 library_list_start_section, library_list_start_library,
11748 library_list_end_library, solib_target_free_library_list,
11749 solib_target_current_sos, solib_target_free_so,
11750 solib_target_relocate_section_addresses): Adjust.
11751 * windows-nat.c (struct lm_info): Rename to ...
11752 (struct lm_info_windows): ... this. Extend lm_info_base.
11753 (windows_make_so, handle_load_dll, handle_unload_dll,
11754 windows_xfer_shared_libraries): Adjust.
11755
11756 2017-04-28 Simon Marchi <simon.marchi@ericsson.com>
11757
11758 * solib-darwin.c (struct darwin_so_list): Remove.
11759 (darwin_current_sos): Allocate an so_list object instead of a
11760 darwin_so_list, separately allocate an lm_info object.
11761 (darwin_free_so): Free lm_info.
11762
11763 2017-04-28 John Baldwin <jhb@FreeBSD.org>
11764
11765 * mips-tdep.c (print_gp_register_row): Replace printf_filtered
11766 with fprintf_filtered.
11767
11768 2017-04-28 Yao Qi <yao.qi@linaro.org>
11769
11770 * regcache.c (regcache::regcache): New function.
11771 (regcache::~regcache): New function.
11772 (regcache_xmalloc_1): Remove.
11773 (regcache_xmalloc): Call new regcache.
11774 (regcache_xfree): Call delete regcache.
11775 (get_thread_arch_aspace_regcache): Call new regcache.
11776
11777 2017-04-28 Yao Qi <yao.qi@linaro.org>
11778
11779 * mips-linux-nat.c (mips_linux_new_thread): Use ptid method
11780 lwp instead of ptid_get_lwp.
11781
11782 2017-04-28 Yao Qi <yao.qi@linaro.org>
11783
11784 * mips-linux-nat.c (mips_linux_new_thread): Get lwpid from
11785 lwp_info instead of getting from inferior_ptid.
11786
11787 2017-04-27 Keith Seitz <keiths@redhat.com>
11788
11789 * gdbtypes.c (LVALUE_REFERENCE_TO_RVALUE_BINDING_BADNESS)
11790 DIFFERENT_REFERENCE_TYPE_BADNESS): Remove.
11791 (CV_CONVERSION_BADNESS): Define.
11792 (rank_one_type): Remove overly restrictive rvalue reference
11793 rank checks.
11794 Add cv-qualifier checks and subranks for type equality.
11795 * gdbtypes.h (REFERENCE_CONVERSION_RVALUE,
11796 REFERENCE_CONVERSION_CONST_LVALUE, CV_CONVERSION_BADNESS,
11797 CV_CONVERSION_CONST, CV_CONVERSION_VOLATILE): Declare.
11798
11799 2017-04-27 Simon Marchi <simon.marchi@ericsson.com>
11800
11801 * python/py-inferior.c (inferior_to_inferior_object): Increment reference
11802 count when creating the object.
11803
11804 2017-04-27 Sangamesh Mallayya <sangamesh.swamy@in.ibm.com>
11805 Ulrich Weigand <uweigand@de.ibm.com>
11806
11807 * xcoffread.c (read_xcoff_symtab): Read correct function auxiliary
11808 entry if xlc -qfuncsect or gcc -ffunction-sections compiler option
11809 is used in AIX.
11810 (read_xcoff_symtab): Handle C_WEAKEXT storage class.
11811 (process_xcoff_symbol): Likewise.
11812 (scan_xcoff_symtab): Likewise.
11813
11814 2017-04-26 Alan Hayward <alan.hayward@arm.com>
11815
11816 * ia64-tdep.c (examine_prologue): Use get_frame_register_unsigned.
11817 (ia64_sigtramp_frame_prev_register): Use read_memory_unsigned_integer.
11818 (ia64_access_reg): Use get_frame_register_unsigned.
11819 (ia64_access_rse_reg): Likewise.
11820 (ia64_libunwind_frame_prev_register): Likewise.
11821
11822 2017-04-26 Jiong Wang <jiong.wang@arm.com>
11823
11824 * gdbarch.sh: New gdbarch method execute_dwarf_cfa_vendor_op.
11825 * gdbarch.c: Regenerated.
11826 * gdbarch.h: Regenerated.
11827 * dwarf2-frame.c (dwarf2_frame_state_alloc_regs): Made the
11828 visibility external.
11829 (execute_cfa_program): Call execute_dwarf_cfa_vendor_op for CFI
11830 between DW_CFA_lo_user and DW_CFA_high_user inclusive.
11831 (enum cfa_how_kind): Move to ...
11832 (struct dwarf2_frame_state_reg_info): Likewise.
11833 (struct dwarf2_frame_state): Likewise.
11834 * dwarf2-frame.h: ... here.
11835 (dwarf2_frame_state_alloc_regs): New declaration.
11836 * sparc-tdep.c (sparc_execute_dwarf_cfa_vendor_op): New function.
11837 (sparc32_gdbarch_init): Register execute_dwarf_cfa_vendor_op hook.
11838
11839 2017-04-26 Alan Hayward <alan.hayward@arm.com>
11840
11841 * xtensa-tdep.c (xtensa_pseudo_register_read): Use
11842 regcache_raw_read_unsigned.
11843 (xtensa_pseudo_register_write): Likewise.
11844
11845 2017-04-26 Alan Hayward <alan.hayward@arm.com>
11846
11847 * nds32-tdep.c (nds32_pseudo_register_read): Abort on errors.
11848 (nds32_pseudo_register_write): Likewise.
11849
11850 2017-04-25 Yao Qi <yao.qi@linaro.org>
11851
11852 * regcache.c (struct regcache) <readonly_p>: Change its type
11853 to bool.
11854 (regcache_xmalloc_1): Update parameter type and callers update.
11855
11856 2017-04-25 Yao Qi <yao.qi@linaro.org>
11857
11858 * aarch64-tdep.c (aarch64_gdbarch_init): Don't call
11859 set_gdbarch_wchar_bit.
11860 * arm-tdep.c (arm_gdbarch_init): Likewise.
11861
11862 2017-04-25 Pedro Alves <palves@redhat.com>
11863
11864 * common/poison.h [!HAVE_IS_TRIVIALLY_COPYABLE] (IsRelocatable)
11865 (BothAreRelocatable, memcopy, memmove): Don't define.
11866 * common/traits.h (__has_feature, HAVE_IS_TRIVIALLY_COPYABLE): New
11867 macros.
11868
11869 2017-04-25 Pedro Alves <palves@redhat.com>
11870
11871 * common/common-defs.h: Include "common/poison.h".
11872 * common/function-view.h: (Not, Or, Requires): Move to traits.h
11873 and adjust.
11874 * common/poison.h: New file.
11875 * common/traits.h: Include <type_traits>.
11876 (Not, Or, Requires): New, moved from common/function-view.h.
11877
11878 2017-04-25 Pedro Alves <palves@redhat.com>
11879
11880 * breakpoint.h (struct breakpoint): In-class initialize all
11881 fields. Make boolean fields "bool".
11882 * breakpoint.c (init_raw_breakpoint_without_location): Remove
11883 memset call and initializations no longer necessary.
11884
11885 2017-04-25 Pedro Alves <palves@redhat.com>
11886
11887 * btrace.c (pt_btrace_insn_flags): Change parameter type to
11888 reference.
11889 (pt_btrace_insn): New function.
11890 (ftrace_add_pt): Remove memset call and use pt_btrace_insn.
11891
11892 2017-04-25 Pedro Alves <palves@redhat.com>
11893
11894 * ada-lang.c (ada_catchpoint_location): Now a "class". Remove
11895 "base" field and inherit from "bp_location" instead. Add
11896 non-default ctor.
11897 (allocate_location_exception): Use new non-default ctor.
11898 * breakpoint.c (get_first_locp_gte_addr): Remove memset call.
11899 (init_bp_location): Convert to ...
11900 (bp_location::bp_location): ... this new ctor, and remove memset
11901 call.
11902 (base_breakpoint_allocate_location): Use the new non-default ctor.
11903 * breakpoint.h (bp_location): Now a class. Declare default and
11904 non-default ctors. In-class initialize all members.
11905 (init_bp_location): Remove declaration.
11906
11907 2017-04-25 Pedro Alves <palves@redhat.com>
11908
11909 * common/enum-flags.h (enum_flags): Don't implement copy ctor and
11910 assignment operator.
11911
11912 2017-04-24 Yao Qi <yao.qi@linaro.org>
11913
11914 * doublest.c (convert_doublest_to_floatformat): Call
11915 floatformat_totalsize_bytes.
11916
11917 2017-04-22 Tom Tromey <tom@tromey.com>
11918
11919 * mi/mi-cmd-file.c (mi_cmd_file_list_shared_libraries): Use
11920 ui_out_emit_list.
11921 * stack.c (print_frame): Use ui_out_emit_list.
11922 * mi/mi-symbol-cmds.c (mi_cmd_symbol_list_lines): Use
11923 ui_out_emit_list.
11924 * mi/mi-main.c (print_one_inferior)
11925 (mi_cmd_data_list_register_names)
11926 (mi_cmd_data_list_register_values, mi_cmd_list_features)
11927 (mi_cmd_list_target_features, mi_cmd_trace_frame_collected): Use
11928 ui_out_emit_list.
11929 * mi/mi-interp.c (mi_on_normal_stop_1): Use ui_out_emit_list.
11930 (mi_output_solib_attribs): Use ui_out_emit_list,
11931 ui_out_emit_tuple.
11932 * mi/mi-cmd-var.c (varobj_update_one): Use ui_out_emit_list.
11933 * mi/mi-cmd-stack.c (mi_cmd_stack_list_frames)
11934 (mi_cmd_stack_list_args, list_args_or_locals): Use
11935 ui_out_emit_list.
11936 * disasm.c (do_assembly_only): Use ui_out_emit_list.
11937 * breakpoint.c (print_solib_event, output_thread_groups): Use
11938 ui_out_emit_list.
11939
11940 2017-04-22 Tom Tromey <tom@tromey.com>
11941
11942 * mi/mi-main.c (print_variable_or_computed): Use ui_out_emit_tuple.
11943 * mi/mi-cmd-var.c (varobj_update_one): Use ui_out_emit_tuple.
11944 * mi/mi-cmd-stack.c (list_arg_or_local): Use ui_out_emit_tuple.
11945
11946 2017-04-22 Tom Tromey <tom@tromey.com>
11947
11948 * tracepoint.c (tvariables_info_1)
11949 (print_one_static_tracepoint_marker): Use ui_out_emit_tuple.
11950
11951 2017-04-22 Tom Tromey <tom@tromey.com>
11952
11953 * stack.c (print_frame_arg): Use ui_out_emit_tuple,
11954 annotate_arg_emitter.
11955 * breakpoint.c (print_mention_watchpoint)
11956 (print_mention_masked_watchpoint): Use ui_out_emit_tuple.
11957 * annotate.h (struct annotate_arg_emitter): New.
11958
11959 2017-04-22 Tom Tromey <tom@tromey.com>
11960
11961 * record-btrace.c (record_btrace_insn_history)
11962 (record_btrace_insn_history_range, record_btrace_call_history)
11963 (record_btrace_call_history_range): Use ui_out_emit_tuple.
11964 * thread.c (do_captured_list_thread_ids, print_thread_info_1): Use
11965 ui_out_emit_tuple.
11966 * stack.c (print_frame_info): Use ui_out_emit_tuple.
11967 * solib.c (info_sharedlibrary_command): Use ui_out_emit_tuple.
11968 * skip.c (skip_info): Use ui_out_emit_tuple.
11969 * remote.c (show_remote_cmd): Use ui_out_emit_tuple.
11970 * progspace.c (print_program_space): Use ui_out_emit_tuple.
11971 * probe.c (info_probes_for_ops): Use ui_out_emit_tuple.
11972 * osdata.c (info_osdata): Use ui_out_emit_tuple.
11973 * mi/mi-symbol-cmds.c (mi_cmd_symbol_list_lines): Use
11974 ui_out_emit_tuple.
11975 * mi/mi-main.c (print_one_inferior, list_available_thread_groups)
11976 (output_register, mi_cmd_data_read_memory)
11977 (mi_cmd_data_read_memory_bytes, mi_load_progress)
11978 (mi_cmd_trace_frame_collected): Use ui_out_emit_tuple.
11979 * mi/mi-cmd-var.c (mi_cmd_var_list_children, varobj_update_one):
11980 Use ui_out_emit_tuple.
11981 * mi/mi-cmd-stack.c (mi_cmd_stack_list_args): Use
11982 ui_out_emit_tuple.
11983 * mi/mi-cmd-info.c (mi_cmd_info_ada_exceptions)
11984 (mi_cmd_info_gdb_mi_command): Use ui_out_emit_tuple.
11985 * linux-thread-db.c (info_auto_load_libthread_db): Use
11986 ui_out_emit_tuple.
11987 * inferior.c (print_inferior): Use ui_out_emit_tuple.
11988 * gdb_bfd.c (print_one_bfd): Use ui_out_emit_tuple.
11989 * disasm.c (do_mixed_source_and_assembly_deprecated)
11990 (do_mixed_source_and_assembly): Use ui_out_emit_tuple.
11991 * cp-abi.c (list_cp_abis): Use ui_out_emit_tuple.
11992 * cli/cli-setshow.c (cmd_show_list): Use ui_out_emit_tuple.
11993 * breakpoint.c (print_one_breakpoint_location)
11994 (print_one_breakpoint): Use ui_out_emit_tuple.
11995 * auto-load.c (print_script, info_auto_load_cmd): Use
11996 ui_out_emit_tuple.
11997 * ada-tasks.c (print_ada_task_info): Use ui_out_emit_tuple.
11998
11999 2017-04-21 Simon Marchi <simon.marchi@ericsson.com>
12000
12001 * thread.c (print_thread_info_1): Remove dead code.
12002
12003 2017-04-21 Jan Kratochvil <jan.kratochvil@redhat.com>
12004
12005 * aarch64-tdep.c (selftests::aarch64_process_record_test): Make it #if
12006 GDB_SELF_TEST.
12007 * arm-tdep.c (selftests::arm_record_test): Likewise.
12008
12009 2017-04-21 Yao Qi <yao.qi@linaro.org>
12010
12011 * regcache.c (regcache_restore): Remove argument 2. Replace
12012 argument 3 with regcache. Get register status from
12013 src->register_status and get register contents from
12014 register_buffer (src, regnum).
12015 (regcache_cpy): Update.
12016
12017 2017-04-19 Pedro Alves <palves@redhat.com>
12018
12019 * gdbthread.h (thread): Add missing closing parenthesis in
12020 comment.
12021
12022 2017-04-19 Pedro Alves <palves@redhat.com>
12023
12024 * common/refcounted-object.h: New file.
12025 * gdbthread.h: Include "common/refcounted-object.h".
12026 (thread_info): Inherit from refcounted_object and add comments.
12027 (thread_info::incref, thread_info::decref)
12028 (thread_info::m_refcount): Delete.
12029 (thread_info::deletable): Use the refcounted_object::refcount()
12030 method.
12031 * inferior.c (current_inferior_): Add comment.
12032 (set_current_inferior): Increment/decrement refcounts.
12033 (prune_inferiors, remove_inferior_command): Skip inferiors marked
12034 not-deletable instead of comparing with the current inferior.
12035 (initialize_inferiors): Increment the initial inferior's refcount.
12036 * inferior.h (struct inferior): Forward declare.
12037 Include "common/refcounted-object.h".
12038 (current_inferior, set_current_inferior): Move declaration to
12039 before struct inferior's definition, and fix comment.
12040 (inferior): Inherit from refcounted_object. Add comments.
12041 * thread.c (switch_to_thread_no_regs): Reference the thread's
12042 inferior pointer directly instead of doing a ptid lookup.
12043 (switch_to_no_thread): New function.
12044 (switch_to_thread(thread_info *)): New function, factored out
12045 from ...
12046 (switch_to_thread(ptid_t)): ... this.
12047 (restore_current_thread): Delete.
12048 (current_thread_cleanup): Remove 'inf_id' and 'was_removable'
12049 fields, and add 'inf' field.
12050 (do_restore_current_thread_cleanup): Check whether old->inf is
12051 alive instead of looking up an inferior by ptid. Use
12052 switch_to_thread and switch_to_no_thread.
12053 (restore_current_thread_cleanup_dtor): Use old->inf directly
12054 instead of lookup up an inferior by id. Decref the inferior.
12055 Don't restore 'removable'.
12056 (make_cleanup_restore_current_thread): Same the inferior pointer
12057 in old, instead of the inferior number. Incref the inferior.
12058 Don't save/clear 'removable'.
12059
12060 2017-04-19 Pedro Alves <palves@redhat.com>
12061
12062 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
12063 unittests/scoped_restore-selftests.c.
12064 (SUBDIR_UNITTESTS_OBS): Add scoped_restore-selftests.o.
12065 * common/scoped_restore.h (scoped_restore_base): Make "class".
12066 (scoped_restore_base::release): New public method.
12067 (scoped_restore_base::scoped_restore_base): New protected ctor.
12068 (scoped_restore_base::m_saved_var): New protected field.
12069 (scoped_restore_tmpl::scoped_restore_tmpl(T*)): Initialize the
12070 scoped_restore_base base class instead of m_saved_var directly.
12071 (scoped_restore_tmpl::scoped_restore_tmpl(T*, T2)): Likewise.
12072 (scoped_restore_tmpl::scoped_restore_tmpl(const
12073 scoped_restore_tmpl<T>&)): Likewise.
12074 (scoped_restore_tmpl::~scoped_restore_tmpl): Use the saved_var
12075 method.
12076 (scoped_restore_tmpl::saved_var): New method.
12077 (scoped_restore_tmpl::m_saved_var): Delete.
12078 * inferior.h (inferior::detaching): Now a bool.
12079 * infrun.c (prepare_for_detach): Use a scoped_restore instead of a
12080 cleanup.
12081 * unittests/scoped_restore-selftests.c: New file.
12082
12083 2017-04-19 Pedro Alves <palves@redhat.com>
12084
12085 * Makefile.in (SUBDIR_UNITTESTS_SRCS, SUBDIR_UNITTESTS_OBS):
12086 Re-sort in alphabetic order.
12087
12088 2017-04-18 Pedro Alves <palves@redhat.com>
12089
12090 * xml-support.c (obstack_xml_printf): Delete.
12091 * xml-support.h (obstack_xml_printf): Delete.
12092
12093 2017-04-18 Pedro Alves <palves@redhat.com>
12094
12095 * xml-support.c (gdb_xml_parser) <use_dtd, dtd_name, parse,
12096 vdebug, verror, body_text, start_element, end_element, name,
12097 user_data, set_is_xinclude, set_error, expat_parser>: New methods.
12098 <name, user_data, expat_parser, scopes, error, last_line, dtd_name,
12099 is_xinclude>: Make private and add m_ prefix.
12100 (gdb_xml_parser::body_text): New method, based on ...
12101 (gdb_xml_body_text): ... this. Adjust.
12102 (gdb_xml_parser::vdebug): New method, based on ...
12103 (gdb_xml_debug): ... this. Adjust.
12104 (gdb_xml_parser::verror): New method, based on ...
12105 (gdb_xml_error): ... this. Adjust.
12106 (gdb_xml_parser::start_element): New method, based on ...
12107 (gdb_xml_start_element): ... this. Adjust.
12108 (gdb_xml_start_element_wrapper): Defer to
12109 gdb_xml_parser::start_element and gdb_xml_parser::set_error.
12110 (gdb_xml_parser::end_element): New method, based on ...
12111 (gdb_xml_end_element_wrapper): ... this. Adjust.
12112 (gdb_xml_parser::~gdb_xml_parser): Adjust.
12113 (gdb_xml_parser::gdb_xml_parser): Adjust to field renames.
12114 (gdb_xml_parser::use_dtd): New method, based on ...
12115 (gdb_xml_use_dtd): ... this. Adjust.
12116 (gdb_xml_parser::parse): New method, based on ...
12117 (gdb_xml_parse): ... this. Adjust.
12118 (gdb_xml_parse_quick): Adjust to call the parser's parse method.
12119 (xinclude_start_include): Adjust to call the parser's name method.
12120 (xml_xinclude_default, xml_xinclude_start_doctype)
12121 (xml_xinclude_end_doctype): Adjust to call the parser's user_data
12122 method.
12123 (xml_process_xincludes): Adjust to call parser methods.
12124 * xml-support.h (gdb_xml_use_dtd, gdb_xml_parse): Delete
12125 declarations.
12126
12127 2017-04-18 Pedro Alves <palves@redhat.com>
12128
12129 * tracefile-tfile.c (tfile_write_tdesc): Adjust to use
12130 gdb::optional<std::string>.
12131 * xml-support.c: Include <string>.
12132 (scope_level::scope_level(scope_level &&))
12133 (scope_level::~scope_level): Delete.
12134 (scope_level::body): Now a std::string.
12135 (gdb_xml_body_text, gdb_xml_end_element): Adjust.
12136 (xinclude_parsing_data::xinclude_parsing_data): Add 'output'
12137 parameter.
12138 (xinclude_parsing_data::~xinclude_parsing_data): Delete.
12139 (xinclude_parsing_data::output): Now a std::string reference.
12140 (xinclude_start_include): Adjust.
12141 (xml_xinclude_default): Adjust.
12142 (xml_process_xincludes): Add 'output' parameter, and return bool.
12143 * xml-support.h (xml_process_xincludes): Add 'output' parameter,
12144 and return bool.
12145 * xml-tdesc.c: Include <unordered_map> and <string>.
12146 (tdesc_xml_cache): Delete.
12147 (tdesc_xml_cache_s): Delete.
12148 (xml_cache): Now an std::unordered_map.
12149 (tdesc_parse_xml): Adjust to use std::string and unordered_map.
12150 (target_fetch_description_xml): Change return type to
12151 gdb::optional<std::string>, and adjust.
12152 * xml-tdesc.h: Include "common/gdb_optional.h" and <string>.
12153 (target_fetch_description_xml): Change return type to
12154 gdb::optional<std::string>.
12155
12156 2017-04-18 Pedro Alves <palves@redhat.com>
12157
12158 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
12159 unittests/optional-selftests.c.
12160 (SUBDIR_UNITTESTS_OBS): Add optional-selftests.o.
12161 * unittests/optional-selftests.c: New file.
12162 * unittests/optional/assignment/1.cc: New file.
12163 * unittests/optional/assignment/2.cc: New file.
12164 * unittests/optional/assignment/3.cc: New file.
12165 * unittests/optional/assignment/4.cc: New file.
12166 * unittests/optional/assignment/5.cc: New file.
12167 * unittests/optional/assignment/6.cc: New file.
12168 * unittests/optional/assignment/7.cc: New file.
12169 * unittests/optional/cons/copy.cc: New file.
12170 * unittests/optional/cons/default.cc: New file.
12171 * unittests/optional/cons/move.cc: New file.
12172 * unittests/optional/cons/value.cc: New file.
12173 * unittests/optional/in_place.cc: New file.
12174 * unittests/optional/observers/1.cc: New file.
12175 * unittests/optional/observers/2.cc: New file.
12176
12177 2017-04-18 Pedro Alves <palves@redhat.com>
12178
12179 * common/gdb_optional.h: Include common/traits.h.
12180 (in_place_t): New type.
12181 (in_place): New constexpr variable.
12182 (optional::optional): Remove member initialization of
12183 m_instantiated.
12184 (optional::optional(in_place_t...)): New constructor.
12185 (optional::~optional): Use reset.
12186 (optional::optional(const optional&)): New.
12187 (optional::optional(const optional&&)): New.
12188 (optional::optional(T &)): New.
12189 (optional::optional(T &&)): New.
12190 (operator::operator=(const optional &)): New.
12191 (operator::operator=(optional &&)): New.
12192 (operator::operator= (const T &))
12193 (operator::operator= (T &&))
12194 (operator::emplace (Args &&... args)): Return a T&. Use reset.
12195 (operator::reset): New.
12196 (operator::m_instantiated):: Add in-class initializer.
12197 * common/traits.h: Include <type_traits>.
12198 (struct And): New types.
12199
12200 2017-04-18 Pedro Alves <palves@redhat.com>
12201
12202 * xml-support.c: Include <vector>.
12203 (scope_level::scope_level(const gdb_xml_element *))
12204 (scope_level::scope_level(scope_level&&)): New.
12205 (scope_level::~scope_level): New.
12206 (scope_level_s): Delete.
12207 (gdb_xml_parser::scopes): Now a std::vector.
12208 (gdb_xml_body_text, gdb_xml_start_element, gdb_xml_end_element):
12209 Use std::vector.
12210 (gdb_xml_parser::~gdb_xml_parser): Remove now unnecessary
12211 scope cleanup code.
12212 (gdb_xml_parser::gdb_xml_parser): Remove explicit initialization
12213 of the scopes member. Use std::vector::emplace_back.
12214
12215 2017-04-18 Pedro Alves <palves@redhat.com>
12216
12217 * xml-support.c (gdb_xml_parser): Add ctor/dtor. Make is_xinclude
12218 a bool.
12219 (gdb_xml_end_element): Change type of first parameter.
12220 (gdb_xml_cleanup): Rename to ...
12221 (gdb_xml_parser::~gdb_xml_parser): ... this.
12222 (gdb_xml_create_parser_and_cleanup): Delete with ...
12223 (gdb_xml_parser::gdb_xml_parser): ... creation parts factored out
12224 to this new ctor.
12225 (gdb_xml_parse_quick): Create a local gdb_xml_parser instead of
12226 using gdb_xml_create_parser_and_cleanup.
12227 (xinclude_parsing_data): Add ctor/dtor.
12228 (xml_xinclude_cleanup): Delete.
12229 (xml_process_xincludes): Create a local xinclude_parsing_data
12230 instead of heap-allocating one. Create a local gdb_xml_parser
12231 instead of heap-allocating one with
12232 gdb_xml_create_parser_and_cleanup.
12233
12234 2017-04-18 John Baldwin <jhb@FreeBSD.org>
12235
12236 PR threads/20743
12237 * fbsd-nat.c (resume_one_thread_cb): Remove.
12238 (resume_all_threads_cb): Remove.
12239 (fbsd_resume): Use ALL_NON_EXITED_THREADS instead of
12240 iterate_over_threads.
12241
12242 2017-04-17 Joel Brobecker <brobecker@adacore.com>
12243
12244 * NEWS: Create a new section for the next release branch.
12245 Rename the section of the current branch, now that it has
12246 been cut.
12247
12248 2017-04-17 Joel Brobecker <brobecker@adacore.com>
12249
12250 GDB 8.0 branch created (725bf5cf125783c2a7ca4ab63d3768e220bab2db):
12251 * version.in: Bump version to 8.0.50.DATE-git.
12252
12253 2017-04-13 Sergio Durigan Junior <sergiodj@redhat.com>
12254
12255 PR gdb/21385
12256 * windows-nat.c (windows_create_inferior): Declare 'allargs'
12257 independently of the host, and fix build breakage on Cygwin.
12258
12259 2017-04-13 Pedro Alves <palves@redhat.com>
12260
12261 * inferior.c (free_inferior): Convert to ...
12262 (inferior::~inferior): ... this dtor.
12263 (inferior::inferior): New ctor, factored out from ...
12264 (add_inferior_silent): ... here. Allocate the inferior with a new
12265 expression.
12266 (delete_inferior): Call delete instead of free_inferior.
12267 * inferior.h (gdb_environ, continuation): Forward declare.
12268 (inferior): Now a class. Add in-class initialization to all
12269 members. Make boolean fields bool, except 'detaching'.
12270 (inferior::inferior): New explicit ctor.
12271 (inferior::~inferior): New.
12272
12273 2017-04-13 Pedro Alves <palves@redhat.com>
12274
12275 * inferior.c (init_inferior_list): Delete.
12276 * inferior.h (init_inferior_list): Delete.
12277
12278 2017-04-13 Pedro Alves <palves@redhat.com>
12279
12280 PR threads/13217
12281 * gdb.threads/threadapply.exp (thr_apply_detach): New procedure.
12282 (top level): Call it twice, with different thread sets.
12283
12284 2017-04-13 Pedro Alves <palves@redhat.com>
12285
12286 * thread.c: Include <algorithm>.
12287 (thread_array_cleanup): Delete.
12288 (scoped_inc_dec_ref): New class.
12289 (live_threads_count): New function.
12290 (set_thread_refcount): Delete.
12291 (tp_array_compar_ascending): Now a bool.
12292 (tp_array_compar): Convert to a std::sort comparison function.
12293 (thread_apply_all_command): Use std::vector and scoped_inc_dec_ref
12294 and live_threads_count.
12295
12296 2017-04-13 Pedro Alves <palves@redhat.com>
12297
12298 * infrun.c (follow_fork_inferior): Also switch the current
12299 inferior.
12300
12301 2017-04-13 Pedro Alves <palves@redhat.com>
12302
12303 * breakpoint.c (watch_command_1): Save watchpoint-frame info
12304 before calling create_internal_breakpoint.
12305
12306 2017-04-13 Pedro Alves <palves@redhat.com>
12307
12308 * fork-child.c (execv_argv): New class.
12309 (breakup_args): Refactored as ...
12310 (execv_argv::init_for_no_shell): .. this method of execv_argv.
12311 Copy arguments to storage and replace separators with NULL
12312 terminators in place.
12313 (escape_bang_in_quoted_argument): Adjust to return bool.
12314 (execv_argv::execv_argv): New ctor.
12315 (execv_argv::init_for_shell): New method, factored out from
12316 fork_inferior. Don't strdup strings into the vector.
12317 (fork_inferior): Eliminate "shell" local and use execv_argv. Use
12318 Remove free_vector_argv call.
12319
12320 2017-04-13 Yao Qi <yao.qi@linaro.org>
12321
12322 * rx-tdep.c (rx_fpsw_type): Check tdep->rx_fpsw_type instead of
12323 tdep->rx_psw_type.
12324
12325 2017-04-13 Yao Qi <yao.qi@linaro.org>
12326
12327 * rl78-tdep.c (rl78_gdbarch_init): Use XCNEW instead of XNEW.
12328 * rx-tdep.c (rx_gdbarch_init): Likewise.
12329
12330 2017-04-13 Pedro Alves <palves@redhat.com>
12331
12332 * breakpoint.h (struct breakpoint): Reindent.
12333
12334 2017-04-13 Pedro Alves <palves@redhat.com>
12335
12336 * breakpoint.c (bp_location): Rename to ...
12337 (bp_locations): ... this. All references updated.
12338 (bp_location_count): Rename to ...
12339 (bp_locations_count): ... this. All references updated.
12340 (bp_location_placed_address_before_address_max): Rename to ...
12341 (bp_locations_placed_address_before_address_max): ... this. All
12342 references updated.
12343 (bp_location_shadow_len_after_address_max): Rename to ...
12344 (bp_locations_shadow_len_after_address_max): ... this. All
12345 references updated.
12346 (bp_location_compare_addrs): Rename to ...
12347 (bp_locations_compare_addrs): ... this. All references updated.
12348 (bp_location_compare):Rename to ...
12349 (bp_locations_compare): ... this. All references updated.
12350 (bp_location_target_extensions_update): Rename to ...
12351 (bp_locations_target_extensions_update): ... this. All references
12352 updated.
12353
12354 2017-04-12 Sergio Durigan Junior <sergiodj@redhat.com>
12355
12356 * Makefile.in (HFILES_NO_SRCDIR): Add "common/gdb_termios.h".
12357 * common/common.m4: Check headers 'termios.h', 'termio.h' and
12358 'sgtty.h'.
12359 * common/gdb_termios.h: New file, with parts of "terminal.h".
12360 * inflow.c: Include "gdb_termios.h".
12361 * ser-unix.c: Include "gdb_termios.h".
12362 * terminal.h: Move terminal-related defines to
12363 "common/gdb_termios.h".
12364
12365 2017-04-12 Tom Tromey <tom@tromey.com>
12366
12367 * probe.c (parse_probes): Update.
12368 * location.h (delete_event_location): Don't declare.
12369 (event_location_deleter::operator()): Update.
12370 * location.c (event_location_deleter::operator()): Rename from
12371 delete_event_location.
12372 * linespec.h (linespec_result) <location>: Change type to
12373 event_location_up.
12374 * linespec.c (canonicalize_linespec, event_location_to_sals)
12375 (decode_objc): Update.
12376 (linespec_result): Don't call delete_event_location.
12377 * breakpoint.c (create_breakpoints_sal)
12378 (bkpt_probe_create_sals_from_location)
12379 (strace_marker_create_sals_from_location): Update.
12380
12381 2017-04-12 Tom Tromey <tom@tromey.com>
12382
12383 * linespec.h (struct linespec_result): Add constructor and
12384 destructor.
12385 (init_linespec_result, destroy_linespec_result)
12386 (make_cleanup_destroy_linespec_result): Don't declare.
12387 * linespec.c (init_linespec_result): Remove.
12388 (linespec_result::~linespec_result): Rename from
12389 destroy_linespec_result. Update.
12390 (cleanup_linespec_result, make_cleanup_destroy_linespec_result):
12391 Remove.
12392 * breakpoint.c (create_breakpoint, break_range_command)
12393 (decode_location_default): Update.
12394 * ax-gdb.c (agent_command_1): Update.
12395
12396 2017-04-12 Tom Tromey <tom@tromey.com>
12397
12398 * remote.c (remote_download_tracepoint): Update.
12399 * python/py-breakpoint.c (bppy_get_location): Update.
12400 * guile/scm-breakpoint.c (bpscm_print_breakpoint_smob)
12401 (gdbscm_breakpoint_location): Update.
12402 * elfread.c (elf_gnu_ifunc_resolver_return_stop): Update.
12403 * breakpoint.h (struct breakpoint) <location, location_range_end>:
12404 Change type to event_location_up.
12405 * breakpoint.c (create_overlay_event_breakpoint)
12406 (create_longjmp_master_breakpoint)
12407 (create_std_terminate_master_breakpoint)
12408 (create_exception_master_breakpoint)
12409 (breakpoint_event_location_empty_p, print_breakpoint_location)
12410 (print_one_breakpoint_location, create_thread_event_breakpoint)
12411 (init_breakpoint_sal, create_breakpoint)
12412 (print_recreate_ranged_breakpoint, break_range_command)
12413 (init_ada_exception_breakpoint, say_where): Update.
12414 (base_breakpoint_dtor): Don't call delete_event_location.
12415 (bkpt_print_recreate, tracepoint_print_recreate)
12416 (dprintf_print_recreate, update_static_tracepoint)
12417 (breakpoint_re_set_default): Update.
12418
12419 2017-04-12 Tom Tromey <tom@tromey.com>
12420
12421 * compile/compile-loc2c.c (compute_stack_depth_worker): Change
12422 type of "to_do". Update.
12423 (compute_stack_depth): Use std::vector.
12424
12425 2017-04-12 Tom Tromey <tom@tromey.com>
12426
12427 * printcmd.c (find_instruction_backward): Use std::vector.
12428
12429 2017-04-12 Tom Tromey <tom@tromey.com>
12430
12431 * symfile.c (objfilep): Remove typedef.
12432 (reread_symbols): Use a std::vector.
12433
12434 2017-04-12 Tom Tromey <tom@tromey.com>
12435
12436 * mi/mi-main.c (exec_direction_forward): Remove.
12437 (exec_reverse_continue, mi_execute_command): Use scoped_restore.
12438 * guile/scm-ports.c (ioscm_with_output_to_port_worker): Use
12439 scoped_restore.
12440 * guile/guile.c (guile_repl_command, guile_command)
12441 (gdbscm_execute_gdb_command): Use scoped_restore.
12442 * go-exp.y (go_parse): Use scoped_restore.
12443 * d-exp.y (d_parse): Use scoped_restore.
12444 * cli/cli-decode.c (cmd_func): Use scoped_restore.
12445 * c-exp.y (c_parse): Use scoped_restore.
12446
12447 2017-04-12 Tom Tromey <tom@tromey.com>
12448
12449 * mi/mi-parse.h (struct mi_parse): Add constructor, destructor.
12450 (mi_parse): Update return type.
12451 (mi_parse_free): Remove.
12452 * mi/mi-parse.c (mi_parse::mi_parse): New constructor.
12453 (mi_parse::~mi_parse): Rename from mi_parse_free.
12454 (mi_parse_cleanup): Remove.
12455 (mi_parse): Return a unique_ptr. Use new.
12456 * mi/mi-main.c (mi_execute_command): Update.
12457
12458 2017-04-12 Tom Tromey <tom@tromey.com>
12459
12460 * location.c (explicit_location_lex_one): Return a
12461 unique_xmalloc_ptr.
12462 (string_to_explicit_location): Update. Remove cleanups.
12463
12464 2017-04-12 Tom Tromey <tom@tromey.com>
12465
12466 * gnu-v3-abi.c (value_and_voffset_p): Remove typedef.
12467 (compare_value_and_voffset): Change type. Update.
12468 (compute_vtable_size): Change type of "offset_vec".
12469 (gnuv3_print_vtable): Use std::vector. Remove cleanups.
12470 (gnuv3_get_typeid): Remove extraneous declaration.
12471
12472 2017-04-12 Tom Tromey <tom@tromey.com>
12473
12474 * charset.h (wchar_iterator): Fix comment.
12475
12476 2017-04-12 Tom Tromey <tom@tromey.com>
12477
12478 * charset.c (iconv_wrapper): New class.
12479 (cleanup_iconv): Remove.
12480 (convert_between_encodings): Use it.
12481
12482 2017-04-12 Tom Tromey <tom@tromey.com>
12483
12484 * symfile.h (increment_reading_symtab): Update type.
12485 * symfile.c (decrement_reading_symtab): Remove.
12486 (increment_reading_symtab): Return a scoped_restore_tmpl<int>.
12487 * psymtab.c (psymtab_to_symtab): Update.
12488 * dwarf2read.c (dw2_instantiate_symtab): Update.
12489
12490 2017-04-12 Tom Tromey <tom@tromey.com>
12491
12492 * jit.c (struct jit_reader): Declare separately. Add constructor
12493 and destructor. Change type of "handle".
12494 (loaded_jit_reader): Define separately.
12495 (jit_reader_load): Update. New "new".
12496 (jit_reader_unload_command): Use "delete".
12497 * gdb-dlfcn.h (struct dlclose_deleter): New.
12498 (gdb_dlhandle_up): New typedef.
12499 (gdb_dlopen, gdb_dlsym): Update types.
12500 (gdb_dlclose): Remove.
12501 * gdb-dlfcn.c (gdb_dlopen): Return a gdb_dlhandle_up.
12502 (gdb_dlsym): Change type of "handle".
12503 (make_cleanup_dlclose): Remove.
12504 (dlclose_deleter::operator()): Rename from gdb_dlclose.
12505 * compile/compile-c-support.c (load_libcc): Update.
12506
12507 2017-04-12 Tom Tromey <tom@tromey.com>
12508
12509 * symtab.h (find_pcs_for_symtab_line): Change return type.
12510 * symtab.c (find_pcs_for_symtab_line): Change return type.
12511 * python/py-linetable.c (build_line_table_tuple_from_pcs): Change
12512 type of "vec". Update.
12513 (ltpy_get_pcs_for_line): Update.
12514 * linespec.c (decode_digits_ordinary): Update.
12515
12516 2017-04-12 Tom Tromey <tom@tromey.com>
12517
12518 * tracepoint.c (actions_command): Update.
12519 * python/python.c (python_command, python_interactive_command):
12520 Update.
12521 * mi/mi-cmd-break.c (mi_cmd_break_commands): Update.
12522 * guile/guile.c (guile_command): Update.
12523 * defs.h (read_command_lines, read_command_lines_1): Return
12524 command_line_up.
12525 (command_lines_deleter): New struct.
12526 (command_line_up): New typedef.
12527 * compile/compile.c (compile_code_command)
12528 (compile_print_command): Update.
12529 * cli/cli-script.h (get_command_line, copy_command_lines): Return
12530 command_line_up.
12531 (make_cleanup_free_command_lines): Remove.
12532 * cli/cli-script.c (get_command_line, read_command_lines_1)
12533 (copy_command_lines): Return command_line_up.
12534 (while_command, if_command, read_command_lines, define_command)
12535 (document_command): Update.
12536 (do_free_command_lines_cleanup, make_cleanup_free_command_lines):
12537 Remove.
12538 * breakpoint.h (breakpoint_set_commands): Change type of
12539 "commands".
12540 * breakpoint.c (breakpoint_set_commands): Change type of
12541 "commands". Update.
12542 (do_map_commands_command, update_dprintf_command_list)
12543 (create_tracepoint_from_upload): Update.
12544
12545 2017-04-12 Tom Tromey <tom@tromey.com>
12546
12547 * tracepoint.c (scope_info): Update.
12548 * spu-tdep.c (spu_catch_start): Update.
12549 * python/python.c (gdbpy_decode_line): Update.
12550 * python/py-finishbreakpoint.c (bpfinishpy_init): Update.
12551 * python/py-breakpoint.c (bppy_init): Update.
12552 * probe.c (parse_probes): Update.
12553 * mi/mi-cmd-break.c (mi_cmd_break_insert_1): Update.
12554 * location.h (event_location_deleter): New struct.
12555 (event_location_up): New typedef.
12556 (new_linespec_location, new_address_location, new_probe_location)
12557 (new_explicit_location, copy_event_location)
12558 (string_to_event_location, string_to_event_location_basic)
12559 (string_to_explicit_location): Update return type.
12560 (make_cleanup_delete_event_location): Remove.
12561 * location.c (new_linespec_location, new_address_location)
12562 (new_probe_location, new_explicit_location, copy_event_location):
12563 Return event_location_up.
12564 (delete_event_location_cleanup)
12565 (make_cleanup_delete_event_location): Remove.
12566 (string_to_explicit_location, string_to_event_location_basic)
12567 (string_to_event_location): Return event_location_up.
12568 * linespec.c (canonicalize_linespec, event_location_to_sals)
12569 (decode_line_with_current_source)
12570 (decode_line_with_last_displayed, decode_objc): Update.
12571 * guile/scm-breakpoint.c (gdbscm_register_breakpoint_x): Update.
12572 * completer.c (location_completer): Update.
12573 * cli/cli-cmds.c (edit_command, list_command): Update.
12574 * breakpoint.c (create_overlay_event_breakpoint)
12575 (create_longjmp_master_breakpoint)
12576 (create_std_terminate_master_breakpoint)
12577 (create_exception_master_breakpoint)
12578 (create_thread_event_breakpoint): Update.
12579 (init_breakpoint_sal): Update. Remove some dead code.
12580 (create_breakpoint_sal): Change type of "location". Update.
12581 (create_breakpoints_sal, create_breakpoint, break_command_1)
12582 (dprintf_command, break_range_command, until_break_command)
12583 (init_ada_exception_breakpoint)
12584 (strace_marker_create_sals_from_location)
12585 (update_static_tracepoint, trace_command, ftrace_command)
12586 (strace_command, create_tracepoint_from_upload): Update.
12587 * break-catch-throw.c (re_set_exception_catchpoint): Update.
12588 * ax-gdb.c (agent_command_1): Update.
12589
12590 2017-04-12 Pedro Alves <palves@redhat.com>
12591
12592 * Makefile.in (ALL_TARGET_OBS): Add i386-go32-tdep.o.
12593 * configure.tgt: Handle i[34567]86-*-go32* and
12594 i[34567]86-*-msdosdjgpp*.
12595 * i386-tdep.c (i386_svr4_reg_to_regnum):
12596 Make extern.
12597 (i386_go32_init_abi, i386_coff_osabi_sniffer): Moved to
12598 i386-go32-tdep.c.
12599 (_initialize_i386_tdep): DJGPP bits moved to i386-go32-tdep.c.
12600 * i386-go32-tdep.c: New file.
12601 * i386-tdep.h (tdesc_i386_mmx, i386_svr4_reg_to_regnum): New
12602 declarations.
12603
12604 2017-04-12 Simon Marchi <simon.marchi@ericsson.com>
12605
12606 * aix-thread.c (pd_status2str): Change return type to const char *.
12607
12608 2017-04-12 Pedro Alves <palves@redhat.com>
12609
12610 * i386-tdep.c (i386_elf_init_abi, i386_go32_init_abi): Remove
12611 calls to set_gdbarch_gnu_triplet_regexp.
12612
12613 2017-04-12 Pedro Alves <palves@redhat.com>
12614
12615 PR gdb/21323
12616 * c-lang.c (cplus_primitive_types) <cplus_primitive_type_wchar_t>:
12617 New enum value.
12618 (cplus_language_arch_info): Register cplus_primitive_type_wchar_t.
12619 * gdbtypes.h (struct builtin_type) <builtin_wchar>: New field.
12620 * gdbtypes.c (gdbtypes_post_init): Create the "wchar_t" type.
12621 * gdbarch.sh (wchar_bit, wchar_signed): New per-arch values.
12622 * gdbarch.h, gdbarch.c: Regenerate.
12623 * aarch64-tdep.c (aarch64_gdbarch_init): Override
12624 gdbarch_wchar_bit and gdbarch_wchar_signed.
12625 * alpha-tdep.c (alpha_gdbarch_init): Likewise.
12626 * arm-tdep.c (arm_gdbarch_init): Likewise.
12627 * avr-tdep.c (avr_gdbarch_init): Likewise.
12628 * h8300-tdep.c (h8300_gdbarch_init): Likewise.
12629 * i386-nto-tdep.c (i386nto_init_abi): Likewise.
12630 * i386-tdep.c (i386_go32_init_abi): Likewise.
12631 * m32r-tdep.c (m32r_gdbarch_init): Likewise.
12632 * moxie-tdep.c (moxie_gdbarch_init): Likewise.
12633 * nds32-tdep.c (nds32_gdbarch_init): Likewise.
12634 * rs6000-aix-tdep.c (rs6000_aix_init_osabi): Likewise.
12635 * sh-tdep.c (sh_gdbarch_init): Likewise.
12636 * sparc-tdep.c (sparc32_gdbarch_init): Likewise.
12637 * sparc64-tdep.c (sparc64_init_abi): Likewise.
12638 * windows-tdep.c (windows_init_abi): Likewise.
12639 * xstormy16-tdep.c (xstormy16_gdbarch_init): Likewise.
12640
12641 2017-04-12 Pedro Alves <palves@redhat.com>
12642
12643 PR c++/21323
12644 * c-lang.c (cplus_primitive_types) <cplus_primitive_type_char16_t,
12645 cplus_primitive_type_char32_t>: New enum values.
12646 (cplus_language_arch_info): Register cplus_primitive_type_char16_t
12647 and cplus_primitive_type_char32_t.
12648 * dwarf2read.c (read_base_type) <DW_ATE_UTF>: If bit size is 16 or
12649 32, use the archtecture's built-in type for char16_t and char32_t,
12650 respectively. Otherwise, fallback to init_integer_type as before,
12651 but make the type unsigned, and issue a complaint.
12652 * gdbtypes.c (gdbtypes_post_init): Make char16_t and char32_t unsigned.
12653
12654 2017-04-12 Alan Hayward <alan.hayward@arm.com>
12655
12656 * m32r-tdep.c (M32R_ARG_REGISTER_SIZE): Added.
12657 (m32r_push_dummy_call): Use M32R_ARG_REGISTER_SIZE.
12658
12659 2017-04-12 Sergio Durigan Junior <sergiodj@redhat.com>
12660
12661 * windows-nat.c (windows_create_inferior): Declare 'toexec' as
12662 'const char *'.
12663
12664 2017-04-12 Sergio Durigan Junior <sergiodj@redhat.com>
12665
12666 * common/common-utils.c (free_vector_argv): New function.
12667 * common/common-utils.h: Include <vector>.
12668 (free_vector_argv): New prototype.
12669 * darwin-nat.c (darwin_create_inferior): Rewrite function
12670 prototype in order to constify "exec_file" and accept a
12671 "std::string" for "allargs".
12672 * fork-child.c: Include <vector>.
12673 (breakup_args): Rewrite function, using C++.
12674 (fork_inferior): Rewrite function header, constify "exec_file_arg"
12675 and accept "std::string" for "allargs". Update the code to
12676 calculate "argv" based on "allargs". Update calls to "exec_fun"
12677 and "execvp".
12678 * gnu-nat.c (gnu_create_inferior): Rewrite function prototype in
12679 order to constify "exec_file" and accept a "std::string" for
12680 "allargs".
12681 * go32-nat.c (go32_create_inferior): Likewise.
12682 * inf-ptrace.c (inf_ptrace_create_inferior): Likewise.
12683 * infcmd.c (run_command_1): Constify "exec_file". Use
12684 "std::string" for inferior arguments.
12685 * inferior.h (fork_inferior): Update prototype.
12686 * linux-nat.c (linux_nat_create_inferior): Rewrite function
12687 prototype in order to constify "exec_file" and accept a
12688 "std::string" for "allargs".
12689 * nto-procfs.c (procfs_create_inferior): Likewise.
12690 * procfs.c (procfs_create_inferior): Likewise.
12691 * remote-sim.c (gdbsim_create_inferior): Likewise.
12692 * remote.c (extended_remote_run): Update code to accept
12693 "std::string" as argument.
12694 (extended_remote_create_inferior): Rewrite function prototype in
12695 order to constify "exec_file" and accept a "std::string" for
12696 "allargs".
12697 * rs6000-nat.c (super_create_inferior): Likewise.
12698 (rs6000_create_inferior): Likewise.
12699 * target.h (struct target_ops) <to_create_inferior>: Likewise.
12700 * windows-nat.c (windows_create_inferior): Likewise.
12701
12702 2017-04-11 Pedro Alves <palves@redhat.com>
12703
12704 * thread.c: Fix whitespace throughout.
12705
12706 2017-04-11 Philipp Rudo <prudo@linux.vnet.ibm.com>
12707
12708 * linux-nat.c (linux_nat_detach): Remove delete_lwp call.
12709
12710 2017-04-11 Alan Hayward <alan.hayward@arm.com>
12711
12712 * arm-tdep.c (arm_store_return_value): Use FP_REGISTER_SIZE
12713
12714 2017-04-10 Sergio Durigan Junior <sergiodj@redhat.com>
12715
12716 PR gdb/21364
12717 * osdata.c (info_osdata): Check if 'type' is an empty string
12718 instead of NULL.
12719
12720 2017-04-10 Pedro Alves <palves@redhat.com>
12721
12722 * thread.c (add_thread_silent, delete_thread_1, find_thread_ptid)
12723 (ptid_to_global_thread_id, in_thread_list)
12724 (do_captured_list_thread_ids, set_resumed, set_running)
12725 (set_executing, set_stop_requested, finish_thread_state)
12726 (validate_registers_access, can_access_registers_ptid)
12727 (print_thread_info_1, switch_to_thread)
12728 (do_restore_current_thread_cleanup)
12729 (make_cleanup_restore_current_thread, thread_command)
12730 (thread_name_command): Use operator== instead of ptid_equal.
12731
12732 2017-04-10 Pedro Alves <palves@redhat.com>
12733
12734 * thread.c (struct current_thread_cleanup) <next>: Delete field.
12735 (current_thread_cleanup_chain): Delete.
12736 (restore_current_thread_cleanup_dtor)
12737 (make_cleanup_restore_current_thread): Remove references to
12738 current_thread_cleanup_chain.
12739
12740 2017-04-10 Alan Hayward <alan.hayward@arm.com>
12741
12742 * msp430-tdep.c (msp430_pseudo_register_read): Never return
12743 REG_UNKNOWN.
12744
12745 2017-04-10 Yao Qi <yao.qi@linaro.org>
12746
12747 PR gdb/19942
12748 * gdbthread.h (thread_info::deletable): New method.
12749 (thread_info::incref): New method.
12750 (thread_info::decref): New method.
12751 (thread_info::refcount): Move it to private.
12752 * infrun.c (save_stop_context): Call inc_refcount.
12753 (release_stop_context_cleanup): Likewise.
12754 * thread.c (set_thread_exited): New function.
12755 (init_thread_list): Delete "tp" only it is deletable, otherwise
12756 call set_thread_exited.
12757 (delete_thread_1): Call set_thread_exited.
12758 (current_thread_cleanup) <inferior_pid>: Remove.
12759 <thread>: New field.
12760 (restore_current_thread_ptid_changed): Removed.
12761 (do_restore_current_thread_cleanup): Adjust.
12762 (restore_current_thread_cleanup_dtor): Don't call
12763 find_thread_ptid.
12764 (set_thread_refcount): Use dec_refcount.
12765 (make_cleanup_restore_current_thread): Adjust.
12766 (thread_apply_all_command): Call inc_refcount.
12767 (_initialize_thread): Don't call
12768 observer_attach_thread_ptid_changed.
12769
12770 2017-04-10 Yao Qi <yao.qi@linaro.org>
12771
12772 * thread.c (delete_thread_1): Hoist code on marking thread as
12773 exited.
12774
12775 2017-04-09 Simon Marchi <simon.marchi@polymtl.ca>
12776
12777 * windows-nat.c (windows_detach): Initialize ptid with
12778 minus_one_ptid.
12779
12780 2017-04-07 Simon Marchi <simon.marchi@ericsson.com>
12781
12782 * unittests/ptid-selftests.c: Fix erroneous assert messages.
12783
12784 2017-04-07 Alan Hayward <alan.hayward@arm.com>
12785
12786 * bfin-tdep.c (BFIN_MAX_REGISTER_SIZE): Add.
12787 (bfin_pseudo_register_read): Use BFIN_MAX_REGISTER_SIZE.
12788 (bfin_pseudo_register_write): Likewise
12789
12790 2017-04-06 Simon Marchi <simon.marchi@ericsson.com>
12791
12792 * common/ptid.h (struct ptid): Change to...
12793 (class ptid_t): ... this.
12794 <ptid_t>: New constructors.
12795 <pid, lwp_p, lwp, tid_p, tid, is_pid, operator==, operator!=,
12796 matches>: New methods.
12797 <make_null, make_minus_one>: New static methods.
12798 <pid>: Rename to...
12799 <m_pid>: ...this.
12800 <lwp>: Rename to...
12801 <m_lwp>: ...this.
12802 <tid>: Rename to...
12803 <m_tid>: ...this.
12804 (ptid_build, ptid_get_pid, ptid_get_lwp, ptid_get_tid, ptid_equal,
12805 ptid_is_pid, ptid_lwp_p, ptid_tid_p, ptid_match): Take ptid arguments
12806 as references, move comment to class ptid_t.
12807 * common/ptid.c (null_ptid, minus_one_ptid): Initialize with
12808 ptid_t static methods.
12809 (ptid_build, pid_to_ptid, ptid_get_pid, ptid_get_tid,
12810 ptid_equal, ptid_is_pid, ptid_lwp_p, ptid_tid_p, ptid_match):
12811 Take ptid arguments as references, implement using ptid_t methods.
12812 * unittests/ptid-selftests.c: New file.
12813 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
12814 unittests/ptid-selftests.c.
12815 (SUBDIR_UNITTESTS_OBS): Add unittests/ptid-selftests.o.
12816
12817 2017-04-06 Thomas Preud'homme <thomas.preudhomme@arm.com>
12818
12819 * python/python.c (python_run_simple_file): Cast mode literal to
12820 non-const char pointer as expected by PyFile_FromString.
12821
12822 2017-04-05 Simon Marchi <simon.marchi@ericsson.com>
12823
12824 * common/ptid.c (ptid_lwp_p, ptid_tid_p): Remove comparison with
12825 minus_one_ptid and null_ptid.
12826
12827 2017-04-05 Pedro Alves <palves@redhat.com>
12828
12829 * warning.m4 (build_warnings): Remove -Wno-write-strings.
12830 * configure: Regenerate.
12831
12832 2017-04-05 Pedro Alves <palves@redhat.com>
12833
12834 * ada-exp.y (yyerror): Constify.
12835 * ada-lang.c (bound_name, get_selections)
12836 (ada_variant_discrim_type)
12837 (ada_variant_discrim_name, ada_value_struct_elt)
12838 (ada_lookup_struct_elt_type, is_unchecked_variant)
12839 (ada_which_variant_applies, standard_exc, ada_get_next_arg)
12840 (catch_ada_exception_command_split)
12841 (catch_ada_assert_command_split, catch_assert_command)
12842 (ada_op_name): Constify.
12843 * ada-lang.h (ada_yyerror, get_selections)
12844 (ada_variant_discrim_name, ada_value_struct_elt): Constify.
12845 * arc-tdep.c (arc_print_frame_cache): Constify.
12846 * arm-tdep.c (arm_skip_stub): Constify.
12847 * ax-gdb.c (gen_binop, gen_struct_ref_recursive, gen_struct_ref)
12848 (gen_aggregate_elt_ref): Constify.
12849 * bcache.c (print_bcache_statistics): Constify.
12850 * bcache.h (print_bcache_statistics): Constify.
12851 * break-catch-throw.c (catch_exception_command_1):
12852 * breakpoint.c (struct ep_type_description::description):
12853 Constify.
12854 (add_solib_catchpoint): Constify.
12855 (catch_fork_command_1): Add cast.
12856 (add_catch_command): Constify.
12857 * breakpoint.h (add_catch_command, add_solib_catchpoint):
12858 Constify.
12859 * bsd-uthread.c (bsd_uthread_state): Constify.
12860 * buildsym.c (patch_subfile_names): Constify.
12861 * buildsym.h (next_symbol_text_func, patch_subfile_names):
12862 Constify.
12863 * c-exp.y (yyerror): Constify.
12864 (token::oper): Constify.
12865 * c-lang.h (c_yyerror, cp_print_class_member): Constify.
12866 * c-varobj.c (cplus_describe_child): Constify.
12867 * charset.c (find_charset_names): Add cast.
12868 (find_charset_names): Constify array and add const_cast.
12869 * cli/cli-cmds.c (complete_command, cd_command): Constify.
12870 (edit_command): Constify.
12871 * cli/cli-decode.c (lookup_cmd): Constify.
12872 * cli/cli-dump.c (dump_memory_command, dump_value_command):
12873 Constify.
12874 (struct dump_context): Constify.
12875 (add_dump_command, restore_command): Constify.
12876 * cli/cli-script.c (get_command_line): Constify.
12877 * cli/cli-script.h (get_command_line): Constify.
12878 * cli/cli-utils.c (check_for_argument): Constify.
12879 * cli/cli-utils.h (check_for_argument): Constify.
12880 * coff-pe-read.c (struct read_pe_section_data): Constify.
12881 * command.h (lookup_cmd): Constify.
12882 * common/print-utils.c (decimal2str): Constify.
12883 * completer.c (gdb_print_filename): Constify.
12884 * corefile.c (set_gnutarget): Constify.
12885 * cp-name-parser.y (yyerror): Constify.
12886 * cp-valprint.c (cp_print_class_member): Constify.
12887 * cris-tdep.c (cris_register_name, crisv32_register_name):
12888 Constify.
12889 * d-exp.y (yyerror): Constify.
12890 (struct token::oper): Constify.
12891 * d-lang.h (d_yyerror): Constify.
12892 * dbxread.c (struct header_file_location::name): Constify.
12893 (add_old_header_file, add_new_header_file, last_function_name)
12894 (dbx_next_symbol_text, add_bincl_to_list)
12895 (find_corresponding_bincl_psymtab, set_namestring)
12896 (find_stab_function_addr, read_dbx_symtab, start_psymtab)
12897 (dbx_end_psymtab, read_ofile_symtab, process_one_symbol):
12898 * defs.h (command_line_input, print_address_symbolic)
12899 (deprecated_readline_begin_hook): Constify.
12900 * dwarf2read.c (anonymous_struct_prefix, dwarf_bool_name):
12901 Constify.
12902 * event-top.c (handle_line_of_input): Constify and add cast.
12903 * exceptions.c (catch_errors): Constify.
12904 * exceptions.h (catch_errors): Constify.
12905 * expprint.c (print_subexp_standard, op_string, op_name)
12906 (op_name_standard, dump_raw_expression, dump_raw_expression):
12907 * expression.h (op_name, op_string, dump_raw_expression):
12908 Constify.
12909 * f-exp.y (yyerror): Constify.
12910 (struct token::oper): Constify.
12911 (struct f77_boolean_val::name): Constify.
12912 * f-lang.c (f_word_break_characters): Constify.
12913 * f-lang.h (f_yyerror): Constify.
12914 * fork-child.c (fork_inferior): Add cast.
12915 * frv-tdep.c (struct gdbarch_tdep::register_names): Constify.
12916 (new_variant): Constify.
12917 * gdbarch.sh (pstring_ptr, pstring_list): Constify.
12918 * gdbarch.c: Regenerate.
12919 * gdbcore.h (set_gnutarget): Constify.
12920 * go-exp.y (yyerror): Constify.
12921 (token::oper): Constify.
12922 * go-lang.h (go_yyerror): Constify.
12923 * go32-nat.c (go32_sysinfo): Constify.
12924 * guile/scm-breakpoint.c (gdbscm_breakpoint_expression): Constify.
12925 * guile/scm-cmd.c (cmdscm_function): Constify.
12926 * guile/scm-param.c (pascm_param_value): Constify.
12927 * h8300-tdep.c (h8300_register_name, h8300s_register_name)
12928 (h8300sx_register_name): Constify.
12929 * hppa-tdep.c (hppa32_register_name, hppa64_register_name):
12930 Constify.
12931 * ia64-tdep.c (ia64_register_names): Constify.
12932 * infcmd.c (construct_inferior_arguments): Constify.
12933 (path_command, attach_post_wait): Constify.
12934 * language.c (show_range_command, show_case_command)
12935 (unk_lang_error): Constify.
12936 * language.h (language_defn::la_error)
12937 (language_defn::la_name_of_this): Constify.
12938 * linespec.c (decode_line_2): Constify.
12939 * linux-thread-db.c (thread_db_err_str): Constify.
12940 * lm32-tdep.c (lm32_register_name): Constify.
12941 * m2-exp.y (yyerror): Constify.
12942 * m2-lang.h (m2_yyerror): Constify.
12943 * m32r-tdep.c (m32r_register_names): Constify and make static.
12944 * m68hc11-tdep.c (m68hc11_register_names): Constify.
12945 * m88k-tdep.c (m88k_register_name): Constify.
12946 * macroexp.c (appendmem): Constify.
12947 * mdebugread.c (fdr_name, add_data_symbol, parse_type)
12948 (upgrade_type, parse_external, parse_partial_symbols)
12949 (mdebug_next_symbol_text, cross_ref, mylookup_symbol, new_psymtab)
12950 (new_symbol): Constify.
12951 * memattr.c (mem_info_command): Constify.
12952 * mep-tdep.c (register_name_from_keyword): Constify.
12953 * mi/mi-cmd-env.c (mi_cmd_env_path, _initialize_mi_cmd_env):
12954 Constify.
12955 * mi/mi-cmd-stack.c (list_args_or_locals): Constify.
12956 * mi/mi-cmd-var.c (mi_cmd_var_show_attributes): Constify.
12957 * mi/mi-main.c (captured_mi_execute_command): Constify and add
12958 cast.
12959 (mi_execute_async_cli_command): Constify.
12960 * mips-tdep.c (mips_register_name): Constify.
12961 * mn10300-tdep.c (register_name, mn10300_generic_register_name)
12962 (am33_register_name, am33_2_register_name)
12963 * moxie-tdep.c (moxie_register_names): Constify.
12964 * nat/linux-osdata.c (osdata_type): Constify fields.
12965 * nto-tdep.c (nto_parse_redirection): Constify.
12966 * objc-lang.c (lookup_struct_typedef, lookup_objc_class)
12967 (lookup_child_selector): Constify.
12968 (objc_methcall::name): Constify.
12969 * objc-lang.h (lookup_objc_class, lookup_child_selector)
12970 (lookup_struct_typedef): Constify.
12971 * objfiles.c (pc_in_section): Constify.
12972 * objfiles.h (pc_in_section): Constify.
12973 * p-exp.y (struct token::oper): Constify.
12974 (yyerror): Constify.
12975 * p-lang.h (pascal_yyerror): Constify.
12976 * parser-defs.h (op_name_standard): Constify.
12977 (op_print::string): Constify.
12978 (exp_descriptor::op_name): Constify.
12979 * printcmd.c (print_address_symbolic): Constify.
12980 * psymtab.c (print_partial_symbols): Constify.
12981 * python/py-breakpoint.c (stop_func): Constify.
12982 (bppy_get_expression): Constify.
12983 * python/py-cmd.c (cmdpy_completer::name): Constify.
12984 (cmdpy_function): Constify.
12985 * python/py-event.c (evpy_add_attribute)
12986 (gdbpy_initialize_event_generic): Constify.
12987 * python/py-event.h (evpy_add_attribute)
12988 (gdbpy_initialize_event_generic): Constify.
12989 * python/py-evts.c (add_new_registry): Constify.
12990 * python/py-finishbreakpoint.c (outofscope_func): Constify.
12991 * python/py-framefilter.c (get_py_iter_from_func): Constify.
12992 * python/py-inferior.c (get_buffer): Add cast.
12993 * python/py-param.c (parm_constant::name): Constify.
12994 * python/py-unwind.c (fprint_frame_id): Constify.
12995 * python/python.c (gdbpy_parameter_value): Constify.
12996 * remote-fileio.c (remote_fio_func_map): Make 'name' const.
12997 * remote.c (memory_packet_config::name): Constify.
12998 (show_packet_config_cmd, remote_write_bytes)
12999 (remote_buffer_add_string):
13000 * reverse.c (exec_reverse_once): Constify.
13001 * rs6000-tdep.c (variant::name, variant::description): Constify.
13002 * rust-exp.y (rustyyerror): Constify.
13003 * rust-lang.c (rust_op_name): Constify.
13004 * rust-lang.h (rustyyerror): Constify.
13005 * serial.h (serial_ops::name): Constify.
13006 * sh-tdep.c (sh_sh_register_name, sh_sh3_register_name)
13007 (sh_sh3e_register_name, sh_sh2e_register_name)
13008 (sh_sh2a_register_name, sh_sh2a_nofpu_register_name)
13009 (sh_sh_dsp_register_name, sh_sh3_dsp_register_name)
13010 (sh_sh4_register_name, sh_sh4_nofpu_register_name)
13011 (sh_sh4al_dsp_register_name): Constify.
13012 * sh64-tdep.c (sh64_register_name): Constify.
13013 * solib-darwin.c (lookup_symbol_from_bfd): Constify.
13014 * spu-tdep.c (spu_register_name, info_spu_dma_cmdlist): Constify.
13015 * stabsread.c (patch_block_stabs, read_type_number)
13016 (ref_map::stabs, ref_add, process_reference)
13017 (symbol_reference_defined, define_symbol, define_symbol)
13018 (error_type, read_type, read_member_functions, read_cpp_abbrev)
13019 (read_one_struct_field, read_struct_fields, read_baseclasses)
13020 (read_tilde_fields, read_struct_type, read_array_type)
13021 (read_enum_type, read_sun_builtin_type, read_sun_floating_type)
13022 (read_huge_number, read_range_type, read_args, common_block_start)
13023 (find_name_end): Constify.
13024 * stabsread.h (common_block_start, define_symbol)
13025 (process_one_symbol, symbol_reference_defined, ref_add):
13026 * symfile.c (get_section_index, add_symbol_file_command):
13027 * symfile.h (get_section_index): Constify.
13028 * target-descriptions.c (tdesc_type::name): Constify.
13029 (tdesc_free_type): Add cast.
13030 * target.c (find_default_run_target):
13031 (add_deprecated_target_alias, find_default_run_target)
13032 (target_announce_detach): Constify.
13033 (do_option): Constify.
13034 * target.h (add_deprecated_target_alias): Constify.
13035 * thread.c (print_thread_info_1): Constify.
13036 * top.c (deprecated_readline_begin_hook, command_line_input):
13037 Constify.
13038 (init_main): Add casts.
13039 * top.h (handle_line_of_input): Constify.
13040 * tracefile-tfile.c (tfile_write_uploaded_tsv): Constify.
13041 * tracepoint.c (tvariables_info_1, trace_status_mi): Constify.
13042 (tfind_command): Rename to ...
13043 (tfind_command_1): ... this and constify.
13044 (tfind_command): New function.
13045 (tfind_end_command, tfind_start_command): Adjust.
13046 (encode_source_string): Constify.
13047 * tracepoint.h (encode_source_string): Constify.
13048 * tui/tui-data.c (tui_partial_win_by_name): Constify.
13049 * tui/tui-data.h (tui_partial_win_by_name): Constify.
13050 * tui/tui-source.c (tui_set_source_content_nil): Constify.
13051 * tui/tui-source.h (tui_set_source_content_nil): Constify.
13052 * tui/tui-win.c (parse_scrolling_args): Constify.
13053 * tui/tui-windata.c (tui_erase_data_content): Constify.
13054 * tui/tui-windata.h (tui_erase_data_content): Constify.
13055 * tui/tui-winsource.c (tui_erase_source_content): Constify.
13056 * tui/tui.c (tui_enable): Add cast.
13057 * utils.c (defaulted_query): Constify.
13058 (init_page_info): Add cast.
13059 (puts_debug, subset_compare): Constify.
13060 * utils.h (subset_compare): Constify.
13061 * varobj.c (varobj_format_string): Constify.
13062 * varobj.h (varobj_format_string): Constify.
13063 * vax-tdep.c (vax_register_name): Constify.
13064 * windows-nat.c (windows_detach): Constify.
13065 * xcoffread.c (process_linenos, xcoff_next_symbol_text): Constify.
13066 * xml-support.c (gdb_xml_end_element): Constify.
13067 * xml-tdesc.c (tdesc_start_reg): Constify.
13068 * xstormy16-tdep.c (xstormy16_register_name): Constify.
13069 * xtensa-tdep.c (xtensa_find_register_by_name): Constify.
13070 * xtensa-tdep.h (xtensa_register_t::name): Constify.
13071
13072 2017-04-05 Pedro Alves <palves@redhat.com>
13073
13074 * proc-api.c (struct trans): Constify.
13075 (procfs_note): Constify.
13076 * proc-events.c (struct trans, syscall_table):
13077 * proc-flags.c (struct trans): Constify.
13078 * proc-utils.h (procfs_note): Constify.
13079 * proc-why.c (struct trans): Constify.
13080 * procfs.c (dead_procinfo, find_syscall, proc_warn, proc_error)
13081 (procfs_detach): Constify.
13082 * sol-thread.c (struct string_map): Constify.
13083 (td_err_string, td_state_string): Constify.
13084
13085 2017-04-05 Pedro Alves <palves@redhat.com>
13086
13087 * proc-api.c (procfs_filename): Don't initialize
13088 procfs_filename.
13089 (prepare_to_trace): Assume procfs_filename is non-NULL.
13090 (_initialize_proc_api): Give procfs_filename a default value here.
13091
13092 2017-04-05 Pedro Alves <palves@redhat.com>
13093
13094 * break-catch-throw.c (handle_gnu_v3_exceptions): Constify
13095 'cond_string' parameter.
13096 (extract_exception_regexp): Constify 'string' parameter.
13097 (catch_exception_command_1): Constify.
13098 * breakpoint.c (init_catchpoint)
13099 (create_fork_vfork_event_catchpoint): Constify 'cond_string'
13100 parameter.
13101 (ep_parse_optional_if_clause, catch_fork_command_1)
13102 (catch_exec_command_1): Constify.
13103 * breakpoint.h (init_catchpoint): Constify 'cond_string'
13104 parameter.
13105 (ep_parse_optional_if_clause): Constify.
13106 * cli/cli-utils.c (remove_trailing_whitespace)
13107 (check_for_argument): Constify.
13108 * cli/cli-utils.h (remove_trailing_whitespace): Constify and add
13109 non-const overload.
13110 (check_for_argument): Likewise.
13111
13112 2017-04-05 Pedro Alves <palves@redhat.com>
13113
13114 * event-top.c (command_line_handler): Add cast to execute_command
13115 call.
13116 * record-btrace.c (cmd_record_btrace_bts_start)
13117 (cmd_record_btrace_pt_start, cmd_record_btrace_start)
13118 (cmd_record_btrace_start): Add cast to execute_command call.
13119 * record-full.c (record_full_goto_insn):
13120 * record.c (record_start, record_stop): Add cast to
13121 execute_command_to_string calls.
13122 (cmd_record_start): Add cast to execute_command calls.
13123
13124 2017-04-05 Pedro Alves <palves@redhat.com>
13125
13126 * python/python-internal.h (gdb_PyArg_ParseTupleAndKeywords): New
13127 static inline function.
13128 * python/py-arch.c (archpy_disassemble): Constify 'keywords'
13129 array and use gdb_PyArg_ParseTupleAndKeywords.
13130 * python/py-cmd.c (cmdpy_init): Likewise.
13131 * python/py-finishbreakpoint.c (bpfinishpy_init): Likewise.
13132 * python/py-inferior.c (infpy_read_memory, infpy_write_memory)
13133 (infpy_search_memory): Likewise.
13134 * python/py-objfile.c (objfpy_add_separate_debug_file)
13135 (gdbpy_lookup_objfile): Likewise.
13136 * python/py-symbol.c (gdbpy_lookup_symbol)
13137 (gdbpy_lookup_global_symbol): Likewise.
13138 * python/py-type.c (gdbpy_lookup_type): Likewise.
13139 * python/py-value.c (valpy_lazy_string, valpy_string): Likewise.
13140 * python/python.c (execute_gdb_command, gdbpy_write, gdbpy_flush):
13141 Likewise.
13142
13143 2017-04-05 Pedro Alves <palves@redhat.com>
13144
13145 * python/python-internal.h (gdb_PyGetSetDef): New type.
13146 * python/py-block.c (block_object_getset)
13147 (breakpoint_object_getset): Now a gdb_PyGetSetDef array.
13148 * python/py-event.c (event_object_getset)
13149 (finish_breakpoint_object_getset): Likewise.
13150 * python/py-inferior.c (inferior_object_getset): Likewise.
13151 * python/py-infthread.c (thread_object_getset): Likewise.
13152 * python/py-lazy-string.c (lazy_string_object_getset): Likewise.
13153 * python/py-linetable.c (linetable_entry_object_getset): Likewise.
13154 * python/py-objfile.c (objfile_getset): Likewise.
13155 * python/py-progspace.c (pspace_getset): Likewise.
13156 * python/py-record-btrace.c (btpy_insn_getset, btpy_call_getset):
13157 Likewise.
13158 * python/py-record.c (recpy_record_getset): Likewise.
13159 * python/py-symbol.c (symbol_object_getset): Likewise.
13160 * python/py-symtab.c (symtab_object_getset, sal_object_getset):
13161 Likewise.
13162 * python/py-type.c (type_object_getset, field_object_getset):
13163 Likewise.
13164 * python/py-value.c (value_object_getset): Likewise.
13165
13166 2017-04-05 Pedro Alves <palves@redhat.com>
13167
13168 * python/python-internal.h (gdb_PyObject_CallMethod)
13169 (gdb_PyErr_NewException, gdb_PySys_GetObject, gdb_PySys_SetPath):
13170 New functions.
13171 (GDB_PYSYS_SETPATH_CHAR, PyObject_CallMethod, PyErr_NewException)
13172 (PySys_GetObject, PySys_SetPath): New macros.
13173
13174 2017-04-05 Pedro Alves <palves@redhat.com>
13175
13176 * mi/mi-cmd-info.c (mi_cmd_info_os): Call info_osdata instead of
13177 info_osdata_command.
13178 * osdata.c (info_osdata_command): Rename to ...
13179 (info_osdata): ... this. Constify 'type' parameter, and remove
13180 the 'from_tty' parameter. Accept NULL TYPE.
13181 (info_osdata_command): New function.
13182 * osdata.h (info_osdata_command): Remove declaration.
13183 (info_osdata): New declaration.
13184
13185 2017-04-05 Pedro Alves <palves@redhat.com>
13186
13187 * mi/mi-cmd-break.c (mi_cmd_break_insert_1, mi_cmd_break_insert)
13188 (mi_cmd_dprintf_insert, mi_cmd_break_passcount)
13189 (mi_cmd_break_watch, mi_cmd_break_commands): Constify 'command'
13190 parameter.
13191 * mi/mi-cmd-catch.c (mi_cmd_catch_assert, mi_cmd_catch_exception)
13192 (mi_cmd_catch_load, mi_cmd_catch_unload): Constify cmd' parameter.
13193 * mi/mi-cmd-disas.c (mi_cmd_disassemble): Constify 'command'
13194 parameter.
13195 * mi/mi-cmd-env.c (mi_cmd_env_pwd, mi_cmd_env_cd, mi_cmd_env_path)
13196 (mi_cmd_env_dir, mi_cmd_inferior_tty_set, _cmd_inferior_tty_show)
13197 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_file)
13198 (mi_cmd_file_list_exec_source_files)
13199 (mi_cmd_file_list_shared_libraries): Constify 'command' parameter.
13200 * mi/mi-cmd-info.c (mi_cmd_info_ada_exceptions)
13201 (mi_cmd_info_gdb_mi_command, mi_cmd_info_os): Constify 'command'
13202 parameter.
13203 * mi/mi-cmd-stack.c (mi_cmd_enable_frame_filters)
13204 (mi_cmd_stack_list_frames, mi_cmd_stack_info_depth)
13205 (mi_cmd_stack_list_locals, mi_cmd_stack_list_args)
13206 (mi_cmd_stack_list_variables, mi_cmd_stack_select_frame)
13207 (mi_cmd_stack_info_frame): Constify 'command' parameter.
13208 * mi/mi-cmd-target.c (mi_cmd_target_file_get)
13209 (mi_cmd_target_file_put, mi_cmd_target_file_delete): Constify
13210 'command' parameter.
13211 * mi/mi-cmd-var.c (mi_cmd_var_create, mi_cmd_var_delete)
13212 (mi_cmd_var_set_format, mi_cmd_var_set_visualizer)
13213 (mi_cmd_var_set_frozen, mi_cmd_var_show_format)
13214 (mi_cmd_var_info_num_children, mi_cmd_var_list_children)
13215 (mi_cmd_var_info_type, mi_cmd_var_info_path_expression)
13216 (mi_cmd_var_info_expression, mi_cmd_var_show_attributes)
13217 (mi_cmd_var_evaluate_expression, mi_cmd_var_assign)
13218 (mi_cmd_var_update, mi_cmd_enable_pretty_printing)
13219 (mi_cmd_var_set_update_range): Constify 'command' parameter.
13220 * mi/mi-cmds.h (mi_cmd_argv_ftype): Constify 'command' parameter.
13221 * mi/mi-interp.c (mi_cmd_interpreter_exec): Constify 'command'
13222 parameter.
13223 * mi/mi-main.c (mi_cmd_gdb_exit, mi_cmd_exec_next)
13224 (mi_cmd_exec_next_instruction, mi_cmd_exec_step)
13225 (mi_cmd_exec_step_instruction, mi_cmd_exec_finish)
13226 (mi_cmd_exec_return ,mi_cmd_exec_jump, mi_cmd_exec_continue)
13227 (mi_cmd_exec_interrupt, mi_cmd_exec_run, mi_cmd_target_detach)
13228 (mi_cmd_target_flash_erase, mi_cmd_thread_select)
13229 (mi_cmd_thread_list_ids, mi_cmd_thread_info)
13230 (mi_cmd_list_thread_groups, mi_cmd_data_list_register_names)
13231 (mi_cmd_data_list_changed_registers)
13232 (mi_cmd_data_write_register_values)
13233 (mi_cmd_data_evaluate_expression, mi_cmd_data_read_memory)
13234 (mi_cmd_data_read_memory_bytes, mi_cmd_data_write_memory)
13235 (mi_cmd_data_write_memory_bytes, mi_cmd_enable_timings)
13236 (mi_cmd_list_features, mi_cmd_list_target_features)
13237 (mi_cmd_add_inferior, mi_cmd_remove_inferior)
13238 (mi_cmd_trace_define_variable, mi_cmd_trace_list_variables)
13239 (mi_cmd_trace_find, mi_cmd_trace_save, mi_cmd_trace_start)
13240 (mi_cmd_trace_status, mi_cmd_trace_stop, mi_cmd_ada_task_info)
13241 (mi_cmd_trace_frame_collected): Constify 'command'
13242 parameter.
13243 * mi/mi-symbol-cmds.c (mi_cmd_symbol_list_lines): Constify
13244 'command' parameter.
13245
13246 2017-04-05 Pedro Alves <palves@redhat.com>
13247
13248 * ada-lang.c (ada_completer_word_break_characters): Now a const
13249 array.
13250 (ada_get_gdb_completer_word_break_characters): Constify.
13251 * completer.c (gdb_completer_command_word_break_characters)
13252 (gdb_completer_file_name_break_characters)
13253 (gdb_completer_quote_characters): Now const arrays.
13254 (get_gdb_completer_quote_characters): Constify.
13255 (set_rl_completer_word_break_characters): New function.
13256 (set_gdb_completion_word_break_characters)
13257 (complete_line_internal): Use it.
13258 * completer.h (get_gdb_completer_quote_characters): Constify.
13259 (set_rl_completer_word_break_characters): Declare.
13260 * f-lang.c (f_word_break_characters): Constify.
13261 * language.c (default_word_break_characters): Constify.
13262 * language.h (language_defn::la_word_break_characters): Constify.
13263 (default_word_break_characters): Constify.
13264 * top.c (init_main): Use set_rl_completer_word_break_characters.
13265
13266 2017-04-05 Pedro Alves <palves@redhat.com>
13267
13268 * aix-thread.c (aix_thread_pid_to_str)
13269 (aix_thread_extra_thread_info): Constify.
13270 * bsd-kvm.c (bsd_kvm_pid_to_str): Constify.
13271 * bsd-uthread.c (bsd_uthread_extra_thread_info)
13272 (bsd_uthread_pid_to_str): Constify.
13273 * corelow.c (core_pid_to_str): Constify.
13274 * darwin-nat.c (darwin_pid_to_str): Constify.
13275 * fbsd-nat.c (fbsd_pid_to_str): Constify.
13276 * fbsd-tdep.c (fbsd_core_pid_to_str, gdbarch_core_pid_to_str):
13277 Constify.
13278 * gnu-nat.c (gnu_pid_to_str): Constify.
13279 * go32-nat.c (go32_pid_to_str): Constify.
13280 * i386-cygwin-tdep.c (i386_windows_core_pid_to_str): Constify.
13281 * inf-ptrace.c (inf_ptrace_pid_to_str): Constify.
13282 * inferior.c (inferior_pid_to_str): Constify.
13283 * linux-nat.c (linux_nat_pid_to_str): Constify.
13284 * linux-tdep.c (linux_core_pid_to_str): Constify.
13285 * linux-thread-db.c (thread_db_pid_to_str)
13286 (thread_db_extra_thread_info): Constify.
13287 * nto-tdep.c (nto_extra_thread_info): Constify.
13288 * nto-tdep.h (nto_extra_thread_info): Constify.
13289 * obsd-nat.c (obsd_pid_to_str): Constify.
13290 * procfs.c (procfs_pid_to_str): Constify.
13291 * ravenscar-thread.c (ravenscar_extra_thread_info)
13292 (ravenscar_pid_to_str): Constify.
13293 * remote-sim.c (gdbsim_pid_to_str): Constify.
13294 * remote.c (remote_threads_extra_info, remote_pid_to_str):
13295 Constify.
13296 * sol-thread.c (solaris_pid_to_str): Constify.
13297 * sol2-tdep.c (sol2_core_pid_to_str): Constify.
13298 * sol2-tdep.h (sol2_core_pid_to_str): Constify.
13299 * target.c (default_pid_to_str, target_pid_to_str)
13300 (normal_pid_to_str, default_pid_to_str): Constify.
13301 * target.h (target_ops::to_pid_to_str)
13302 (target_ops::to_extra_thread_info): Constify.
13303 (target_pid_to_str, normal_pid_to_str): Constify.
13304 * windows-nat.c (windows_pid_to_str): Constify.
13305 * gdbarch.sh (core_pid_to_str): Constify.
13306 * target-delegates.c: Regenerate.
13307 * gdbarch.h, gdbarch.c: Regenerate.
13308
13309 2017-04-05 Pedro Alves <palves@redhat.com>
13310
13311 * main.c (captured_main_1): Use gdb::unique_xmalloc_ptr to manage
13312 the memory of the temporary warning_pre_print override.
13313 * utils.c (warning_pre_print): Constify.
13314 * utils.h (warning_pre_print): Constify.
13315
13316 2017-04-05 Pedro Alves <palves@redhat.com>
13317
13318 * cli/cli-cmds.c (shell_escape): Constify 'arg' parameter.
13319 (shell_command): New function.
13320 (make_command): Use std::string.
13321 (init_cli_cmds): Register shell_command instead of shell_escape.
13322
13323 2017-04-05 Pedro Alves <palves@redhat.com>
13324
13325 * breakpoint.c (dprintf_function, dprintf_channel): Don't initialize.
13326 * tracepoint.c (default_collect): Don't initialize.
13327
13328 2017-04-05 Pedro Alves <palves@redhat.com>
13329
13330 * macroexp.c (macro_buffer::shared): Now a bool.
13331 (init_buffer): Update.
13332 (init_shared_buffer): Constify 'addr' parameter.
13333 (substitute_args, expand, macro_expand, macro_expand_next): Remove
13334 casts.
13335
13336 2017-04-05 Pedro Alves <palves@redhat.com>
13337
13338 * arm-tdep.c (show_disassembly_style_sfunc): Constify local.
13339 * disasm.c (set_disassembler_options): Constify local.
13340 * i386-tdep.c (i386_print_insn): Remove cast and FIXME comment.
13341
13342 2017-04-05 Sergio Durigan Junior <sergiodj@redhat.com>
13343
13344 PR gdb/21352
13345 * tracefile.c (tsave_command): Fix argument parsing for '-r'
13346 option.
13347
13348 2017-04-05 Yao Qi <yao.qi@linaro.org>
13349
13350 * frame.c (frame_unwind_register_unsigned): Call
13351 frame_unwind_register_value.
13352
13353 2017-04-05 Yao Qi <yao.qi@linaro.org>
13354
13355 * gdb.threads/thread-specific-bp.exp (check_thread_specific_breakpoint):
13356 Use gdb_test_multiple, and don't match anchor.
13357
13358 2017-04-05 Pedro Alves <palves@redhat.com>
13359
13360 * MAINTAINERS (Global Maintainers): Add Simon Marchi.
13361 (Write After Approval): Remove Simon Marchi.
13362
13363 2017-04-05 Pedro Alves <palves@redhat.com>
13364
13365 * common/gdb_optional.h (optional::optional): Make constexpr and
13366 initialize m_dummy.
13367
13368 2017-04-04 John Baldwin <jhb@FreeBSD.org>
13369
13370 * amd64-fbsd-tdep.c: Remove "bsd-uthread.h" include.
13371 (amd64fbsd_jmp_buf_reg_offset): Remove.
13372 (amd64fbsd_supply_uthread): Remove function.
13373 (amd64fbsd_collect_uthread): Remove function.
13374 (amd64fbsd_init_abi): Don't set bsd-uthread callbacks.
13375 * configure.tgt (i[34567]86-*-freebsd*): Remove bsd-uthread.o.
13376 (x86_64-*-freebsd*): Remove bsd-uthread.o.
13377 (fbsd-nat.c): Update comment.
13378 * i386-fbsd-tdep.c: Remove "bsd-uthread.h" include.
13379 (i386fbsd_jmp_buf_reg_offset): Remove.
13380 (i386fbsd_supply_uthread): Remove function.
13381 (i386fbsd_collect_uthread): Remove function.
13382 (i386fbsd_init_abi): Don't set bsd-uthread callbacks.
13383
13384 2017-04-04 John Baldwin <jhb@FreeBSD.org>
13385
13386 * Makefile.in (ALL_64_TARGET_OBS): Remove alpha-fbsd-tdep.o.
13387 (ALLDEPFILES): Remove alpha-fbsd-tdep.c
13388 * NEWS: Mention that support for FreeBSD/alpha was removed.
13389 * alpha-fbsd-tdep.c: Delete file.
13390 * config/alpha/fbsd.mh: Delete file.
13391 * configure.host: Delete alpha*-*-freebsd* and
13392 alpha*-*-kfreebsd*-gnu.
13393 * configure.tgt: Delete alpha*-*-freebsd* and
13394 alpha*-*-kfreebsd*-gnu.
13395
13396 2017-04-04 John Baldwin <jhb@FreeBSD.org>
13397
13398 * amd64-bsd-nat.c (amd64bsd_fetch_inferior_registers,
13399 amd64bsd_store_inferior_registers): Use ptid from regcache.
13400
13401 2017-04-04 Pedro Alves <palves@redhat.com>
13402
13403 * dwarf2read.c (lnp_state_machine): Now a class. Initialize all
13404 data fields, make them private and add "m_" prefixes.
13405 (lnp_state_machine::lnp_state_machine): New ctor.
13406 (record_line, check_line_address, handle_set_discriminator)
13407 (handle_set_address, handle_advance_pc, handle_special_opcode)
13408 (handle_advance_line, handle_set_file, handle_negate_stmt)
13409 (handle_const_add_pc, handle_fixed_advance_pc, handle_copy)
13410 (end_sequence, advance_line): New methods.
13411 (m_gdbarch, m_record_lines_p): New fields.
13412 (lnp_reader_state): Delete.
13413 (dwarf_record_line): Rename to ...
13414 (lnp_state_machine::record_line): ... adjust.
13415 (init_lnp_state_machine): Delete.
13416 (lnp_state_machine::lnp_state_machine): New.
13417 (check_line_address): Rename to ...
13418 (lnp_state_machine::check_line_address): This.
13419 (dwarf_decode_lines_1): Remove reference to "reader_state".
13420 Adjust lnp_state_machine having a non-default ctor. Use bool.
13421 State machine internal state manipulation moved to
13422 lnp_state_machine methods.
13423
13424 2017-04-04 Pedro Alves <palves@redhat.com>
13425
13426 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
13427 unittests/offset-type-selftests.c.
13428 (SUBDIR_UNITTESTS_OBS): Add offset-type-selftests.o.
13429 * common/offset-type.h: New file.
13430 * common/preprocessor.h: New file.
13431 * common/traits.h: New file.
13432 * common/valid-expr.h: New file.
13433 * dwarf2expr.c: Include "common/underlying.h". Adjust to use
13434 sect_offset and cu_offset strong typedefs throughout.
13435 * dwarf2expr.h: Adjust to use sect_offset and cu_offset strong
13436 typedefs throughout.
13437 * dwarf2loc.c: Include "common/underlying.h". Adjust to use
13438 sect_offset and cu_offset strong typedefs throughout.
13439 * dwarf2read.c: Adjust to use sect_offset and cu_offset strong
13440 typedefs throughout.
13441 * gdbtypes.h: Include "common/offset-type.h".
13442 (cu_offset): Now an offset type (strong typedef) instead of a
13443 struct.
13444 (sect_offset): Likewise.
13445 (union call_site_parameter_u): Rename "param_offset" field to
13446 "param_cu_off".
13447 * unittests/offset-type-selftests.c: New file.
13448
13449 2017-04-04 Pedro Alves <palves@redhat.com>
13450
13451 * common/underlying.h: New file.
13452 * dwarf2read.c: Include "common/gdb_optional.h" and
13453 "common/underlying.h".
13454 (dir_index, file_name_index): New types.
13455 (file_entry): Use them.
13456 (file_entry::include): Use to_underlying.
13457 (line_header::add_file_name): Use dir_index.
13458 (read_formatted_entries): Use gdb::optional. Read form before
13459 writting to file_entry.
13460 (dwarf_decode_line_header): Use dir_index.
13461 (lnp_state_machine::current_file): Use to_underlying.
13462 (lnp_state_machine::file): Change type to file_name_index.
13463 (dwarf_record_line): Use to_underlying.
13464 (init_lnp_state_machine): Use file_name_index.
13465 (dwarf_decode_lines_1): Use dir_index and file_name_index.
13466
13467 2017-04-04 Pedro Alves <palves@redhat.com>
13468
13469 * common/gdb_optional.h (gdb::optiona): Add operator->, operator*,
13470 operator bool, has_value and get methods.
13471
13472 2017-04-04 Pedro Alves <palves@redhat.com>
13473
13474 * dwarf2read.c (struct file_entry): Add ctors, and initialize all
13475 fields.
13476 (line_header): Initialize all data fields. Change type of
13477 standard_opcode_lengths to std::unique_ptr<unsigned char[]>.
13478 Change type of include_dirs to std::vector<const char *>. Remove
13479 num_include_dirs, include_dirs_size. Change type of file_names to
13480 std::vector<file_entry>. Remove num_file_names, file_names_size.
13481 (line_header::line_header): New.
13482 (line_header::add_include_dir, line_header::add_file_name): New
13483 methods.
13484 (line_header::include_dir_at): Remove NULL check.
13485 (line_header::file_name_at): Add const overload.
13486 (line_header_up): New unique_ptr typedef.
13487 (dw2_get_file_names_reader): Use line_header_up. Adjust to use
13488 std::vector. Remove free_line_header call.
13489 (dwarf2_build_include_psymtabs): Use line_header_up. Remove
13490 free_line_header call.
13491 (free_cu_line_header): Delete.
13492 (handle_DW_AT_stmt_list, handle_DW_AT_stmt_list)
13493 (setup_type_unit_groups): Use line_header_up instead of cleanups.
13494 Adjust to use std::vector.
13495 (free_line_header): Delete.
13496 (free_line_header_voidp): Use delete.
13497 (add_include_dir): Replace with ...
13498 (line_header::add_include_dir): ... this method. Use std::vector.
13499 (add_file_name): Replace with ...
13500 (line_header::add_file_name): ... this method. Use std::vector.
13501 (add_include_dir_stub): Delete.
13502 (read_formatted_entries): Remove memset.
13503 (dwarf_decode_line_header): Return a line_header_up instead of a
13504 raw pointer. Remove cleanup handling. Pass lambdas to
13505 read_formatted_entries. Adjust to use line_header methods.
13506 (dwarf_decode_lines_1): Adjust to use line_header methods.
13507 (dwarf_decode_lines, file_file_name, file_full_name): Adjust to
13508 use std::vector.
13509
13510 2017-04-04 Simon Marchi <simon.marchi@polymtl.ca>
13511
13512 * remote.c (set_general_thread, set_continue_thread): Use ptid_t
13513 instead of struct ptid.
13514
13515 2017-05-04 Alan Hayward <alan.hayward@arm.com>
13516
13517 * frame.c (get_frame_register_bytes): Unwind using value.
13518 (put_frame_register_bytes): Likewise.
13519
13520 2017-03-30 Iain Buclaw <ibuclaw@gdcproject.org>
13521
13522 * d-exp.y (type_aggregate_p): Treat TYPE_CODE_MODULE as being
13523 aggregate-like.
13524
13525 2017-03-29 Jan Kratochvil <jan.kratochvil@redhat.com>
13526
13527 * auto-load.c (auto_load_section_scripts): Check SEC_HAS_CONTENTS.
13528
13529 2017-03-29 Yao Qi <yao.qi@linaro.org>
13530
13531 * gdbthread.h (struct thread_info): Declare constructor and
13532 destructor. Add some in-class member initializers.
13533 * thread.c (free_thread): Remove.
13534 (init_thread_list): Call delete instead of free_thread.
13535 (new_thread): Call thread_info constructor.
13536 (thread_info::thread_info): New function.
13537 (thread_info::~thread_info): New function.
13538 (delete_thread_1): Call delete instead of free_thread.
13539 (make_cleanup_restore_current_thread): Move tp and frame to
13540 inner block.
13541
13542 2017-03-28 Anton Kolesov <anton.kolesov@synopsys.com>
13543
13544 * arc-tdep.c (arc_frame_cache): Add support for prologue analysis.
13545 (arc_skip_prologue): Likewise.
13546 (arc_make_frame_cache): Likewise.
13547 (arc_pv_get_operand): New function.
13548 (arc_is_in_prologue): Likewise.
13549 (arc_analyze_prologue): Likewise.
13550 (arc_print_frame_cache): Likewise.
13551 (MAX_PROLOGUE_LENGTH): New constant.
13552
13553 2017-03-28 Anton Kolesov <anton.kolesov@synopsys.com>
13554
13555 * configure.tgt: Add arc-insn.o.
13556 * arc-tdep.c (arc_delayed_print_insn): Make non-static.
13557 (dump_arc_instruction_command): New function.
13558 (arc_fprintf_disasm): Likewise.
13559 (arc_disassemble_info): Likewise.
13560 (arc_insn_get_operand_value): Likewise.
13561 (arc_insn_get_operand_value_signed): Likewise.
13562 (arc_insn_get_memory_base_reg): Likewise.
13563 (arc_insn_get_memory_offset): Likewise.
13564 (arc_insn_get_branch_target): Likewise.
13565 (arc_insn_dump): Likewise.
13566 (arc_insn_get_linear_next_pc): Likewise.
13567 * arc-tdep.h (arc_delayed_print_insn): Add function declaration.
13568 (arc_disassemble_info): Likewise.
13569 (arc_insn_get_branch_target): Likewise.
13570 (arc_insn_get_linear_next_pc): Likewise.
13571 * NEWS: Mention new "maint print arc arc-instruction".
13572
13573 2017-03-28 Anton Kolesov <anton.kolesov@synopsys.com>
13574
13575 * arc-tdep (maintenance_print_arc_list): New variable.
13576 (maintenance_print_arc_command): New function.
13577
13578 2017-03-28 Anton Kolesov <anton.kolesov@synopsys.com>
13579
13580 * arc-tdep.c (core_v2_register_names, core_arcompact_register_names)
13581 Add "limm" and "reserved".
13582 (arc_cannot_fetch_register, arc_cannot_store_register): Add
13583 ARC_RESERVED_REGNUM and ARC_LIMM_REGNUM.
13584 * arc-tdep.h (arc_regnum): Likewise.
13585
13586 2017-03-27 Max Filippov <jcmvbkbc@gmail.com>
13587
13588 * xtensa-linux-nat.c (fill_gregset): Call regcache_raw_collect
13589 for THREADPTR register.
13590 (supply_gregset_reg): Call regcache_raw_supply for THREADPTR
13591 register.
13592 * xtensa-tdep.c (XTENSA_DBREGN_UREG): New definition.
13593 (xtensa_derive_tdep): Initialize tdep->threadptr_regnum.
13594 * xtensa-tdep.h (gdbarch_tdep::threadptr_regnum): New field.
13595
13596 2017-03-27 Max Filippov <jcmvbkbc@gmail.com>
13597
13598 * xtensa-tdep.c (xtensa_pseudo_register_read): Treat all
13599 registers above gdbarch_num_regs (gdbarch) as privileged in
13600 call0 ABI.
13601
13602 2017-03-27 Max Filippov <jcmvbkbc@gmail.com>
13603
13604 * xtensa-linux-nat.c (fill_gregset): Call regcache_raw_collect
13605 for a single specified register or for all registers in
13606 a0_base..a0_base + C0_NREGS range.
13607 (supply_gregset_reg): Call regcache_raw_supply for a single
13608 specified register or for all registers in a0_base..a0_base +
13609 C0_NREGS range.
13610
13611 2017-03-27 Max Filippov <jcmvbkbc@gmail.com>
13612
13613 * arch/xtensa.h (C0_NREGS): Add definition.
13614 * xtensa-tdep.c (C0_NREGS): Remove definition.
13615
13616 2017-03-27 Max Filippov <jcmvbkbc@gmail.com>
13617
13618 * xtensa-tdep.c (xtensa_scan_prologue, call0_analyze_prologue):
13619 Drop xtensa_default_isa initialization.
13620 (xtensa_gdbarch_init): Initialize xtensa_default_isa.
13621
13622 2017-03-27 Pedro Alves <palves@redhat.com>
13623
13624 * dwarf2read.c (file_entry) <dir_index>: Add comment.
13625 (file_entry::include_dir): New method.
13626 (line_header::include_dir_at, line_header::file_name_at): New
13627 methods.
13628 (setup_type_unit_groups, setup_type_unit_groups)
13629 (psymtab_include_file_name): Simplify using the new methods.
13630 (lnp_state_machine) <the_line_header>: New field.
13631 <file>: Add comment.
13632 (lnp_state_machine::current_file): New method.
13633 (dwarf_record_line): Simplify using the new methods.
13634 (init_lnp_state_machine): Initialize the "the_line_header" field.
13635 (dwarf_decode_lines_1, dwarf_decode_lines, file_file_name):
13636 Simplify using the new methods.
13637
13638 2017-03-27 Pedro Alves <palves@redhat.com>
13639
13640 * cp-name-parser.y (make_empty): Delete.
13641 (demangler_special, nested_name, ptr_operator, array_indicator)
13642 (direct_declarator, declarator_1): Use fill_comp instead of
13643 make_empty.
13644
13645 2017-03-27 Pedro Alves <palves@redhat.com>
13646
13647 * xml-support.h (gdb_xml_debug): Pass a "first-to-check" argument
13648 to ATTRIBUTE_PRINTF.
13649 * solib-target.c (library_list_start_list): Print "string" not
13650 "version".
13651 * xml-tdesc.c (tdesc_start_field): Pass "field_name" to
13652 gdb_xml_error call.
13653
13654 2017-03-27 Pedro Alves <palves@redhat.com>
13655
13656 * dwarf2read.c (struct file_and_directory): New.
13657 (dwarf2_get_dwz_file): Adjust to use std::string.
13658 (dw2_get_file_names_reader): Adjust to use file_and_directory.
13659 (find_file_and_directory): Adjust to return a file_and_directory
13660 object.
13661 (read_file_scope): Adjust to use file_and_directory. Remove
13662 make_cleanup/do_cleanups calls.
13663 (open_and_init_dwp_file): Adjust to use std::string. Remove
13664 make_cleanup/do_cleanups calls.
13665 * python/python.c (do_start_initialization): Adjust to ldirname
13666 returning a std::string.
13667 * utils.c (ldirname): Now returns a std::string.
13668 * utils.h (ldirname): Change return type to std::string.
13669 * xml-syscall.c (xml_init_syscalls_info): Adjust to ldirname
13670 returning a std::string.
13671 * xml-tdesc.c (file_read_description_xml): Likewise.
13672
13673 2017-03-24 Alan Hayward <alan.hayward@arm.com>
13674
13675 * regcache.c (regcache_debug_print_register): New function.
13676 * regcache.h (regcache_debug_print_register): New declaration.
13677 * target.c (debug_print_register): Remove.
13678 (target_fetch_registers): Call regcache_debug_print_register.
13679 (target_store_registers): Likewise.
13680
13681 2017-03-24 Pádraig Brady <pbrady@fb.com>
13682
13683 * dwarf2read.c (setup_type_unit_groups): Ensure dir_index doesn't
13684 reference beyond the 'lh->include_dirs' array before accessing to
13685 it.
13686 (psymtab_include_file_name): Likewise.
13687 (dwarf_decode_lines_1): Likewise.
13688 (dwarf_decode_lines): Likewise.
13689 (file_file_name): Likewise.
13690
13691 2017-03-23 Simon Marchi <simon.marchi@ericsson.com>
13692
13693 * fbsd-tdep.c (fbsd_corefile_thread): Don't set/restore
13694 inferior_ptid.
13695 * proc-service.c (ps_lgetregs, ps_lsetregs, ps_lgetfpregs,
13696 ps_lsetfpregs): Likewise.
13697 * regcache.c (regcache_raw_update, regcache_raw_write): Likewise.
13698 * sol-thread.c (ps_lgetregs, ps_lsetregs, ps_lgetfpregs,
13699 ps_lsetfpregs): Likewise.
13700 * target.c (target_fetch_registers, target_store_registers):
13701 Remove asserts.
13702
13703 2017-03-23 Alan Hayward <alan.hayward@arm.com>
13704
13705 * sol-thread.c (sol_thread_store_registers): Remove regcache calls.
13706
13707 2017-03-23 Yao Qi <yao.qi@linaro.org>
13708
13709 * aarch64-tdep.c (aarch64_process_record_test): Declare.
13710 (_initialize_aarch64_tdep): Register it.
13711 (aarch64_record_load_store): Handle PRFM instruction.
13712 (aarch64_process_record_test): New function.
13713
13714 2017-03-23 Yao Qi <yao.qi@linaro.org>
13715
13716 * aarch64-tdep.c (aarch64_record_load_store): Fix code
13717 indentation.
13718
13719 2017-03-23 Yao Qi <yao.qi@linaro.org>
13720
13721 * aarch64-tdep.c: Remove AARCH64_RECORD_FAILURE.
13722
13723 2017-03-23 Philipp Rudo <prudo@linux.vnet.ibm.com>
13724
13725 python/python.c (do_start_initialization): Fix memory leak.
13726
13727 2017-03-22 Simon Marchi <simon.marchi@polymtl.ca>
13728
13729 * inf-ptrace.c (inf_ptrace_xfer_partial): Get pid from ptid
13730 using get_ptrace_pid.
13731 * linux-nat.c (linux_nat_xfer_partial): Don't set/restore
13732 inferior_ptid.
13733 (linux_proc_xfer_partial, linux_proc_xfer_spu): Use lwp of
13734 inferior_ptid instead of pid.
13735
13736 2017-03-22 Yao Qi <yao.qi@linaro.org>
13737
13738 * aarch64-tdep.c: Wrap locally used classes in anonymous
13739 namespace.
13740 * arm-tdep.c: Likewise.
13741 * linespec.c: Likewise.
13742 * ui-out.c: Likewise.
13743
13744 2017-03-22 Jonah Graham <jonah@kichwacoders.com>
13745
13746 PR gdb/19637
13747 * python/lib/gdb/printer/bound_registers.py: Import sys.
13748
13749 2017-03-21 Simon Marchi <simon.marchi@ericsson.com>
13750
13751 * windows-nat.c (do_windows_fetch_inferior_registers): Add
13752 windows_thread_info parameter and use it instead of
13753 current_thread.
13754 (windows_fetch_inferior_registers): Don't set current_thread,
13755 pass the thread to do_windows_fetch_inferior_registers. Use
13756 ptid from regcache instead of inferior_ptid.
13757 (do_windows_store_inferior_registers): Add windows_thread_info
13758 parameter and use it instead of current_thread.
13759 (windows_store_inferior_registers): Don't set current_thread,
13760 pass the thread to do_windows_store_inferior_registers. Use
13761 ptid from regcache instead of inferior_ptid.
13762
13763 2017-03-21 Simon Marchi <simon.marchi@ericsson.com>
13764
13765 * ser-mingw.c (ser_windows_raw): Remove reference to
13766 struct serial::current_timeout.
13767
13768 2017-03-21 Ivo Raisr <ivo.raisr@oracle.com>
13769
13770 PR tdep/20928
13771 * gdb/sparc-tdep.h (gdbarch_tdep) <sparc64_ccr_type>: New field.
13772 * gdb/sparc64-tdep.c (sparc64_ccr_type): New function.
13773 (sparc64_fsr_type): Fix %fsr decoding.
13774
13775 2017-03-21 Tim Wiederhake <tim.wiederhake@intel.com>
13776
13777 * python/py-record-btrace.c (btpy_insn_data): Change return type
13778 for Python 2.
13779
13780 2017-03-20 Simon Marchi <simon.marchi@polymtl.ca>
13781
13782 * spu-linux-nat.c (spu_fetch_inferior_registers,
13783 spu_store_inferior_registers): Use ptid from regcache, set and
13784 restore inferior_ptid.
13785 * spu-multiarch.c (spu_fetch_registers, spu_store_registers):
13786 Likewise.
13787
13788 2017-03-20 Simon Marchi <simon.marchi@polymtl.ca>
13789
13790 * i386-linux-nat.c (fetch_register, store_register,
13791 i386_linux_fetch_inferior_registers,
13792 i386_linux_store_inferior_registers): Use ptid from regcache.
13793 * ia64-linux-nat.c (ia64_linux_fetch_register,
13794 ia64_linux_store_register): Likewise.
13795 * inf-ptrace.c (inf_ptrace_fetch_register,
13796 inf_ptrace_store_register): Likewise.
13797 * m32r-linux-nat.c (m32r_linux_fetch_inferior_registers,
13798 m32r_linux_store_inferior_registers): Likewise.
13799 * m68k-bsd-nat.c (m68kbsd_fetch_inferior_registers,
13800 m68kbsd_store_inferior_registers): Likewise.
13801 * m68k-linux-nat.c (fetch_register, store_register,
13802 m68k_linux_fetch_inferior_registers,
13803 m68k_linux_store_inferior_registers): Likewise.
13804 * m88k-bsd-nat.c (m88kbsd_fetch_inferior_registers,
13805 m88kbsd_store_inferior_registers): Likewise.
13806 * mips-fbsd-nat.c (mips_fbsd_fetch_inferior_registers,
13807 mips_fbsd_store_inferior_registers): Likewise.
13808 * mips-linux-nat.c (mips64_linux_regsets_fetch_registers,
13809 mips64_linux_regsets_store_registers): Likewise.
13810 * mips-nbsd-nat.c (mipsnbsd_fetch_inferior_registers,
13811 mipsnbsd_store_inferior_registers): Likewise.
13812 * mips-obsd-nat.c (mips64obsd_fetch_inferior_registers,
13813 mips64obsd_store_inferior_registers): Likewise.
13814 * nto-procfs.c (procfs_fetch_registers, procfs_store_registers):
13815 Likewise.
13816 * ppc-fbsd-nat.c (ppcfbsd_fetch_inferior_registers,
13817 ppcfbsd_store_inferior_registers): Likewise.
13818 * ppc-linux-nat.c (ppc_linux_fetch_inferior_registers,
13819 ppc_linux_store_inferior_registers): Likewise.
13820 * ppc-nbsd-nat.c (ppcnbsd_fetch_inferior_registers,
13821 ppcnbsd_store_inferior_registers): Likewise.
13822 * ppc-obsd-nat.c (ppcobsd_fetch_registers,
13823 ppcobsd_store_registers): Likewise.
13824 * procfs.c (procfs_fetch_registers, procfs_store_registers):
13825 Likewise.
13826 * ravenscar-thread.c (ravenscar_fetch_registers,
13827 ravenscar_store_registers, ravenscar_prepare_to_store):
13828 Likewise.
13829 * record-btrace.c (record_btrace_fetch_registers,
13830 record_btrace_store_registers, record_btrace_prepare_to_store):
13831 Likewise.
13832 * remote-sim.c (gdbsim_fetch_register, gdbsim_store_register):
13833 Lookup inferior using ptid from regcache, instead of
13834 current_inferior.
13835 * remote.c (remote_fetch_registers, remote_store_registers): Use
13836 ptid from regcache.
13837 * rs6000-nat.c (fetch_register, store_register): Likewise.
13838 * s390-linux-nat.c (s390_linux_fetch_inferior_registers,
13839 s390_linux_store_inferior_registers): Likewise.
13840 * sh-nbsd-nat.c (shnbsd_fetch_inferior_registers,
13841 shnbsd_store_inferior_registers): Likewise.
13842 * sol-thread.c (sol_thread_fetch_registers,
13843 sol_thread_store_registers): Likewise.
13844 * sparc-nat.c (sparc_fetch_inferior_registers,
13845 sparc_store_inferior_registers): Likewise.
13846 * tilegx-linux-nat.c (fetch_inferior_registers,
13847 store_inferior_registers): Likewise.
13848 * vax-bsd-nat.c (vaxbsd_fetch_inferior_registers,
13849 vaxbsd_store_inferior_registers): Likewise.
13850 * xtensa-linux-nat.c (fetch_gregs, store_gregs, fetch_xtregs,
13851 store_xtregs): Likewise.
13852
13853 2017-03-20 Artemiy Volkov <artemiyv@acm.org>
13854
13855 PR gdb/14441
13856 * NEWS: Mention support for rvalue references in GDB and python.
13857 * doc/gdb.texinfo (C Plus Plus Expressions): Mention that GDB
13858 supports both lvalue and rvalue references.
13859
13860 2017-03-20 Artemiy Volkov <artemiyv@acm.org>
13861
13862 PR gdb/14441
13863 * gdbtypes.c (rank_one_type): Implement overloading
13864 resolution rules regarding rvalue references.
13865
13866 2017-03-20 Artemiy Volkov <artemiyv@acm.org>
13867
13868 PR gdb/14441
13869 * aarch64-tdep.c (aarch64_type_align)
13870 (aarch64_extract_return_value, aarch64_store_return_value): Change
13871 lvalue reference type checks to general reference type checks.
13872 * amd64-tdep.c (amd64_classify): Likewise.
13873 * amd64-windows-tdep.c (amd64_windows_passed_by_integer_register):
13874 Likewise.
13875 * arm-tdep.c (arm_type_align, arm_extract_return_value)
13876 (arm_store_return_value): Likewise.
13877 * ax-gdb.c (gen_fetch, gen_cast): Likewise.
13878 * c-typeprint.c (c_print_type): Likewise.
13879 * c-varobj.c (adjust_value_for_child_access, c_value_of_variable)
13880 (cplus_number_of_children, cplus_describe_child): Likewise.
13881 * compile/compile-c-symbols.c (generate_vla_size): Likewise.
13882 * completer.c (expression_completer): Likewise.
13883 * cp-support.c (make_symbol_overload_list_adl_namespace):
13884 Likewise.
13885 * darwin-nat-info.c (info_mach_region_command): Likewise.
13886 * dwarf2loc.c (entry_data_value_coerce_ref)
13887 (value_of_dwarf_reg_entry): Likewise.
13888 * eval.c (ptrmath_type_p, evaluate_subexp_standard)
13889 (evaluate_subexp_for_address, evaluate_subexp_for_sizeof):
13890 Likewise.
13891 * findvar.c (extract_typed_address, store_typed_address):
13892 Likewise.
13893 * gdbtypes.c (rank_one_type): Likewise.
13894 * hppa-tdep.c (hppa64_integral_or_pointer_p): Likewise.
13895 * infcall.c (value_arg_coerce): Likewise.
13896 * language.c (pointer_type): Likewise.
13897 * m32c-tdep.c (m32c_reg_arg_type, m32c_m16c_address_to_pointer):
13898 Likewise.
13899 * m88k-tdep.c (m88k_integral_or_pointer_p): Likewise.
13900 * mn10300-tdep.c (mn10300_type_align): Likewise.
13901 * msp430-tdep.c (msp430_push_dummy_call): Likewise.
13902 * ppc-sysv-tdep.c (do_ppc_sysv_return_value)
13903 (ppc64_sysv_abi_push_param, ppc64_sysv_abi_return_value):
13904 Likewise.
13905 * printcmd.c (print_formatted, x_command): Likewise.
13906 * python/py-type.c (typy_get_composite, typy_template_argument):
13907 Likewise.
13908 * python/py-value.c (valpy_referenced_value)
13909 (valpy_get_dynamic_type, value_has_field): Likewise.
13910 * s390-linux-tdep.c (s390_function_arg_integer): Likewise.
13911 * sparc-tdep.c (sparc_integral_or_pointer_p): Likewise.
13912 * sparc64-tdep.c (sparc64_integral_or_pointer_p): Likewise.
13913 * spu-tdep.c (spu_scalar_value_p): Likewise.
13914 * symtab.c (lookup_symbol_aux): Likewise.
13915 * typeprint.c (whatis_exp, print_type_scalar): Likewise.
13916 * valarith.c (binop_types_user_defined_p, unop_user_defined_p):
13917 Likewise.
13918 * valops.c (value_cast_pointers, value_cast)
13919 (value_reinterpret_cast, value_dynamic_cast, value_addr, typecmp)
13920 (value_struct_elt, value_struct_elt_bitpos)
13921 (value_find_oload_method_list, find_overload_match)
13922 (value_rtti_indirect_type): Likewise.
13923 * valprint.c (val_print_scalar_type_p, generic_val_print):
13924 Likewise.
13925 * value.c (value_actual_type, value_as_address, unpack_long)
13926 (pack_long, pack_unsigned_long, coerce_ref_if_computed)
13927 (coerce_ref): Likewise.
13928 * varobj.c (varobj_get_value_type): Likewise.
13929
13930 2017-03-20 Artemiy Volkov <artemiyv@acm.org>
13931
13932 PR gdb/14441
13933 * doc/python.texi (Types in Python): Add TYPE_CODE_RVALUE_REF to
13934 table of constants.
13935 * python/lib/gdb/command/explore.py: Support exploring values
13936 of rvalue reference types.
13937 * python/lib/gdb/types.py: Implement get_basic_type() for
13938 rvalue reference types.
13939 * python/py-type.c (pyty_codes) <TYPE_CODE_RVALUE_REF>: New
13940 constant.
13941 * python/py-value.c (valpy_getitem): Add an rvalue reference
13942 check.
13943 (valpy_reference_value): Add new parameter "refcode".
13944 (valpy_lvalue_reference_value, valpy_rvalue_reference_value):
13945 New wrappers for valpy_reference_value().
13946 * python/py-xmethods.c (gdbpy_get_xmethod_result_type)
13947 (gdbpy_invoke_xmethod): Likewise.
13948
13949 2017-03-20 Artemiy Volkov <artemiyv@acm.org>
13950
13951 PR gdb/14441
13952 * dwarf2read.c (process_die, read_type_die_1): Handle the
13953 DW_TAG_rvalue_reference_type DIE.
13954 (read_tag_reference_type): Add new parameter "refcode".
13955
13956 2017-03-20 Artemiy Volkov <artemiyv@acm.org>
13957
13958 PR gdb/14441
13959 * c-typeprint.c (c_print_type, c_type_print_varspec_prefix)
13960 (c_type_print_modifier, c_type_print_varspec_suffix)
13961 (c_type_print_base): Support printing rvalue reference types.
13962 * c-valprint.c (c_val_print, c_value_print): Support printing
13963 rvalue reference values.
13964
13965 2017-03-20 Artemiy Volkov <artemiyv@acm.org>
13966
13967 PR gdb/14441
13968 * cp-name-parser.y (ptr_operator): Handle the '&&' token in
13969 typename.
13970 * cp-support.c (replace_typedefs): Handle
13971 DEMANGLE_COMPONENT_RVALUE_REFERENCE.
13972 * python/py-type.c (typy_lookup_type): Likewise.
13973
13974 2017-03-20 Artemiy Volkov <artemiyv@acm.org>
13975
13976 PR gdb/14441
13977 * c-exp.y (ptr_operator): Handle the '&&' token in the typename.
13978 * parse.c (insert_type): Change assert statement.
13979 (follow_types): Handle rvalue reference types.
13980 * parser-defs.h (enum type_pieces) <tp_rvalue_reference>: New
13981 constant.
13982
13983 2017-03-20 Artemiy Volkov <artemiyv@acm.org>
13984
13985 PR gdb/14441
13986 * ada-lang.c (ada_evaluate_subexp): Adhere to the new
13987 value_ref() interface.
13988 * c-valprint.c (c_value_print): Likewise.
13989 * infcall.c (value_arg_coerce): Likewise.
13990 * python/py-value.c (valpy_reference_value): Likewise.
13991 * valops.c (value_cast, value_reinterpret_cast)
13992 (value_dynamic_cast, typecmp): Likewise.
13993 (value_ref): Parameterize by kind of return value reference type.
13994 * value.h (value_ref): Add new parameter "refcode".
13995
13996 2017-03-20 Artemiy Volkov <artemiyv@acm.org>
13997
13998 PR gdb/14441
13999 * dwarf2read.c (read_tag_reference_type): Use
14000 lookup_lvalue_reference_type() instead of lookup_reference_type().
14001 * eval.c (evaluate_subexp_standard): Likewise.
14002 * f-exp.y: Likewise.
14003 * gdbtypes.c (make_reference_type, lookup_reference_type):
14004 Generalize with rvalue reference types.
14005 (lookup_lvalue_reference_type, lookup_rvalue_reference_type): New
14006 convenience wrappers for lookup_reference_type().
14007 * gdbtypes.h (make_reference_type, lookup_reference_type): Add a
14008 reference kind parameter.
14009 (lookup_lvalue_reference_type, lookup_rvalue_reference_type): Add
14010 wrappers for lookup_reference_type().
14011 * guile/scm-type.c (gdbscm_type_reference): Use
14012 lookup_lvalue_reference_type() instead of lookup_reference_type().
14013 * guile/scm-value.c (gdbscm_value_dynamic_type): Likewise.
14014 * parse.c (follow_types): Likewise.
14015 * python/py-type.c (typy_reference, typy_lookup_type): Likewise.
14016 * python/py-value.c (valpy_get_dynamic_type, valpy_getitem):
14017 Likewise.
14018 * python/py-xmethods.c (gdbpy_get_xmethod_result_type)
14019 (gdbpy_invoke_xmethod): Likewise.
14020 * stabsread.c: Provide extra argument to make_reference_type()
14021 call.
14022 * valops.c (value_ref, value_rtti_indirect_type): Use
14023 lookup_lvalue_reference_type() instead of lookup_reference_type().
14024
14025 2017-03-20 Artemiy Volkov <artemiyv@acm.org>
14026
14027 PR gdb/14441
14028 * gdbtypes.h (enum type_code) <TYPE_CODE_RVALUE_REF>: New constant.
14029 (TYPE_IS_REFERENCE): New macro.
14030 (struct type): Add rvalue_reference_type field.
14031 (TYPE_RVALUE_REFERENCE_TYPE): New macro.
14032
14033 2017-03-20 Marc-Andre Laperle <marc-andre.laperle@ericsson.com>
14034
14035 * NEWS: Add an entry about new '-file-list-shared-libraries' command.
14036 * mi/mi-cmd-file.c (mi_cmd_file_list_shared_libraries):
14037 New function definition.
14038 * mi/mi-cmds.c (mi_cmds): Add -file-list-shared-libraries command.
14039 * mi/mi-cmds.h (mi_cmd_file_list_shared_libraries):
14040 New function declaration.
14041 * mi/mi-interp.c (mi_output_solib_attribs): New Function.
14042 * mi/mi-interp.h: New file.
14043 * solib.c (info_sharedlibrary_command): Replace for loop with
14044 ALL_SO_LIBS macro
14045 * solib.h (update_solib_list): New function declaration.
14046 (so_list_head): Move macro.
14047 * solist.h (ALL_SO_LIBS): New macro.
14048
14049 2017-03-20 Marc-Andre Laperle <marc-andre.laperle@ericsson.com>
14050
14051 * infcmd.c (post_create_inferior): Remove unused argument in
14052 call to solib_add.
14053 * remote.c (remote_start_remote): Likewise.
14054 * solib-frv.c (frv_fetch_objfile_link_map): Likewise.
14055 * solib-svr4.c: (svr4_fetch_objfile_link_map): Likewise.
14056 (enable_break): Likewise.
14057 * solib.c (update_solib_list): Remove unused target argument
14058 and its documentation.
14059 (solib_add): Remove unused target argument. Remove unused
14060 argument in call to update_solib_list.
14061 (info_sharedlibrary_command): Remove unused argument in call
14062 to update_solib_list.
14063 (sharedlibrary_command): Remove unused argument in call to
14064 solib_add.
14065 (handle_solib_event): Likewise.
14066 (reload_shared_libraries): Likewise.
14067 * solib.h (solib_add): Remove unused target argument.
14068
14069 2017-03-20 Andreas Arnez <arnez@linux.vnet.ibm.com>
14070
14071 * s390-linux-tdep.c (is_rsi, is_rie): Remove functions.
14072 (s390_displaced_step_fixup): Cover relative branches with the
14073 default fixup handling. This fixes lack of support for some
14074 relative branch instructions.
14075
14076 2017-03-17 Simon Marchi <simon.marchi@polymtl.ca>
14077
14078 * i386-gnu-nat.c (gnu_fetch_registers, gnu_store_registers): Use
14079 ptid from regcache.
14080
14081 2017-03-17 Simon Marchi <simon.marchi@polymtl.ca>
14082
14083 * i386-darwin-nat.c (i386_darwin_fetch_inferior_registers,
14084 i386_darwin_store_inferior_registers): Use ptid from regcache.
14085
14086 2017-03-17 Simon Marchi <simon.marchi@polymtl.ca>
14087
14088 * i386-bsd-nat.c (i386bsd_fetch_inferior_registers,
14089 i386bsd_store_inferior_registers): Use ptid from regcache.
14090
14091 2017-03-17 Simon Marchi <simon.marchi@polymtl.ca>
14092
14093 * hppa-obsd-nat.c (hppaobsd_fetch_registers,
14094 hppaobsd_store_registers): Use ptid from regcache.
14095
14096 2017-03-17 Simon Marchi <simon.marchi@polymtl.ca>
14097
14098 * hppa-nbsd-nat.c (hppanbsd_fetch_registers,
14099 hppanbsd_store_registers): Use ptid from regcache.
14100
14101 2017-03-17 Simon Marchi <simon.marchi@polymtl.ca>
14102
14103 * hppa-linux-nat.c (fetch_register, store_register): Use ptid
14104 from regcache. Use get_ptrace_pid.
14105
14106 2017-03-17 Simon Marchi <simon.marchi@polymtl.ca>
14107
14108 * corelow.c (get_core_register_section): Use ptid from regcache,
14109 update doc.
14110
14111 2017-03-17 Simon Marchi <simon.marchi@polymtl.ca>
14112
14113 * bsd-uthread.c (bsd_uthread_fetch_registers,
14114 bsd_uthread_store_registers): Use ptid from regcache, set and
14115 restore inferior_ptid.
14116
14117 2017-03-17 Simon Marchi <simon.marchi@polymtl.ca>
14118
14119 * arm-nbsd-nat.c (fetch_register, fetch_regs, fetch_fp_register,
14120 fetch_fp_regs, store_register, store_regs, store_fp_register,
14121 store_fp_regs): Use ptid from regcache.
14122
14123 2017-03-17 Simon Marchi <simon.marchi@polymtl.ca>
14124
14125 * arm-linux-nat.c (fetch_fpregs, store_fpregs, fetch_regs,
14126 store_regs, fetch_wmmx_regs, store_wmmx_regs, fetch_vfp_regs,
14127 store_vfp_regs): Use ptid from regcache.
14128
14129 2017-03-17 Pedro Alves <palves@redhat.com>
14130
14131 PR remote/21188
14132 * ser-base.c (ser_base_wait_for): Add comment.
14133 (do_ser_base_readchar): Improve comment based on the ser-unix.c's
14134 version.
14135 * ser-unix.c (hardwire_raw): Remove reference to
14136 scb->current_timeout.
14137 (wait_for, do_hardwire_readchar, hardwire_readchar): Delete.
14138 (hardwire_ops): Install ser_base_readchar instead of
14139 hardwire_readchar.
14140 * serial.h (struct serial) <current_timeout, timeout_remaining>:
14141 Remove fields.
14142
14143 2017-03-17 Jonah Graham <jonah@kichwacoders.com>
14144
14145 PR gdb/19637
14146 * python/lib/gdb/printer/bound_registers.py: Add support for
14147 Python 3.
14148
14149 2017-03-16 Andreas Arnez <arnez@linux.vnet.ibm.com>
14150
14151 * dwarf2loc.c (indirect_synthetic_pointer): Get data type of
14152 pointed-to DIE and pass it to dwarf2_evaluate_loc_desc_full.
14153 (dwarf2_evaluate_loc_desc_full): New parameter subobj_type; rename
14154 byte_offset to subobj_byte_offset. Fix the handling of
14155 DWARF_VALUE_STACK on big-endian targets when coming via an
14156 implicit pointer.
14157 (dwarf2_evaluate_loc_desc): Adjust call to
14158 dwarf2_evaluate_loc_desc_full.
14159 * dwarf2loc.h (dwarf2_fetch_die_type_sect_off): New declaration.
14160 * dwarf2read.c (dwarf2_fetch_die_type_sect_off): New function.
14161
14162 2017-03-16 Yao Qi <yao.qi@linaro.org>
14163
14164 * arm-tdep.c (thumb_record_misc): Decode CBNZ, CBZ, REV16,
14165 and REVSH instructions.
14166
14167 2017-03-16 Yao Qi <yao.qi@linaro.org>
14168
14169 * arm-tdep.c [GDB_SELF_TEST]: include "selftests.h".
14170 (arm_record_test): Declare.
14171 (_initialize_arm_tdep) [GDB_SELF_TEST]: call register_self_test.
14172 (thumb_record_ld_st_reg_offset): Rewrite the opcode matching to
14173 align with the manual.
14174 (thumb_record_misc): Adjust the code order to align with the
14175 manual.
14176 (thumb2_record_decode_insn_handler): Fix instruction matching.
14177 (instruction_reader_thumb): New class.
14178 (arm_record_test): New function.
14179
14180 2017-03-16 Yao Qi <yao.qi@linaro.org>
14181
14182 * arm-tdep.c (abstract_memory_reader): New class.
14183 (instruction_reader): New class.
14184 (extract_arm_insn): Add argument 'reader'. Callers updated.
14185 (decode_insn): Likewise.
14186
14187 2017-03-16 Doug Evans <dje@google.com>
14188
14189 * guile/scm-lazy-string.c (lazy_string_smob): Clarify use of LENGTH
14190 member. Change type of TYPE member to SCM. All uses updated.
14191 (lsscm_make_lazy_string_smob): Add assert.
14192 (lsscm_make_lazy_string): Flag bad length values.
14193 (lsscm_elt_type): New function.
14194 (gdbscm_lazy_string_to_value): Rewrite to use
14195 lsscm_safe_lazy_string_to_value.
14196 (lsscm_safe_lazy_string_to_value): Fix handling of TYPE_CODE_PTR.
14197 * guile/scm-value.c (gdbscm_value_to_lazy_string): Flag bad length
14198 values. Fix TYPE_CODE_PTR. Handle TYPE_CODE_ARRAY. Handle typedefs
14199 in incoming type.
14200 * guile/guile-internal.h (tyscm_scm_to_type): Declare.
14201 * guile/scm-type.c (tyscm_scm_to_type): New function.
14202
14203 2017-03-15 Doug Evans <dje@google.com>
14204
14205 PR python/17728, python/18439, python/18779
14206 * python/py-lazy-string.c (lazy_string_object): Clarify use of LENGTH
14207 member. Change type of TYPE member to PyObject *. All uses updated.
14208 (stpy_convert_to_value): Fix handling of TYPE_CODE_PTR.
14209 (gdbpy_create_lazy_string_object): Flag bad length values.
14210 Handle TYPE_CODE_ARRAY with possibly different user-provided length.
14211 Handle typedefs in incoming type.
14212 (stpy_lazy_string_elt_type): New function.
14213 (gdbpy_extract_lazy_string): Call it.
14214 * python/py-value.c (valpy_lazy_string): Flag bad length values.
14215 Fix handling of TYPE_CODE_PTR. Handle TYPE_CODE_ARRAY. Handle
14216 typedefs in incoming type.
14217
14218 2017-03-16 Doug Evans <dje@google.com>
14219
14220 * guile/guile-internal.h (tyscm_scm_to_type): Declare.
14221 * guile/scm-type.c (tyscm_scm_to_type): New function.
14222
14223 2017-03-16 Jiong Wang <jiong.wang@arm.com>
14224
14225 * inf-ptrace.c (inf_ptrace_peek_poke): Change the type to
14226 "ULONGEST" for "skip".
14227
14228 2017-03-14 Andreas Arnez <arnez@linux.vnet.ibm.com>
14229
14230 PR gdb/21220
14231 * inf-ptrace.c (inf_ptrace_xfer_partial): In "case
14232 TARGET_OBJECT_MEMORY", extract the logic for ptrace peek/poke...
14233 (inf_ptrace_peek_poke): ...here. New function. Now also loop
14234 over ptrace peek/poke until end of buffer or error.
14235
14236 2017-03-14 Simon Marchi <simon.marchi@ericsson.com>
14237
14238 * parse.c (length_of_subexp): Make static.
14239 * parser-defs.h (length_of_subexp): Remove.
14240
14241 2017-03-14 Andreas Arnez <arnez@linux.vnet.ibm.com>
14242
14243 * linux-nat.c (linux_proc_xfer_partial): Handle write operations
14244 as well.
14245
14246 2017-03-14 Pedro Alves <palves@redhat.com>
14247
14248 * cp-name-parser.y (cp_demangled_name_to_comp): Update comment.
14249 (main): Use std::unique_ptr. Remove calls to
14250 cp_demangled_name_parse_free.
14251
14252 2017-03-13 Simon Marchi <simon.marchi@polymtl.ca>
14253
14254 * alpha-bsd-nat.c (alphabsd_fetch_inferior_registers,
14255 alphabsd_store_inferior_registers): Use regcache->ptid instead
14256 of inferior_ptid.
14257
14258 2017-03-13 Simon Marchi <simon.marchi@polymtl.ca>
14259
14260 * aix-thread.c (aix_thread_fetch_registers,
14261 aix_thread_store_registers): Use regcache->ptid instead of
14262 inferior_ptid.
14263
14264 2017-03-13 Simon Marchi <simon.marchi@polymtl.ca>
14265
14266 * aarch64-linux-nat.c (fetch_gregs_from_thread,
14267 store_gregs_to_thread, fetch_fpregs_from_thread,
14268 store_fpregs_to_thread): Use regcache->ptid instead of
14269 inferior_ptid.
14270
14271 2017-03-13 Simon Marchi <simon.marchi@polymtl.ca>
14272
14273 * amd64-linux-nat.c (amd64_linux_fetch_inferior_registers,
14274 amd64_linux_fetch_inferior_registers): Use regcache->ptid
14275 instead of inferior_ptid.
14276
14277 2017-03-13 Simon Marchi <simon.marchi@polymtl.ca>
14278
14279 * target.c (target_fetch_registers, target_store_registers): Add
14280 assert.
14281
14282 2017-03-13 Simon Marchi <simon.marchi@polymtl.ca>
14283
14284 * regcache.h (regcache_get_ptid): New function.
14285 * regcache.c (regcache_get_ptid): New function.
14286
14287 2017-03-13 Mark Wielaard <mark@klomp.org>
14288
14289 * cp-name-parser.y (make_empty): Initialize d_printing to zero.
14290
14291 2017-03-10 Keith Seitz <keiths@redhat.com>
14292
14293 PR c++/8218
14294 * c-typeprint.c (cp_type_print_method_args): Skip artificial arguments.
14295
14296 2017-03-08 Pedro Alves <palves@redhat.com>
14297
14298 PR gdb/18360
14299 * infrun.c (start_step_over, do_target_resume, resume)
14300 (restart_threads): Assert we're not resuming a thread that is
14301 meant to be stopped.
14302 (infrun_thread_stop_requested_callback): Delete.
14303 (infrun_thread_stop_requested): If the thread is internally
14304 stopped, queue a pending stop event and clear the thread's
14305 inline-frame state.
14306 (handle_stop_requested): New function.
14307 (handle_syscall_event, handle_inferior_event_1): Use
14308 handle_stop_requested.
14309 (handle_stop_requested): New function.
14310 (handle_signal_stop): Set the thread's stop_signal here instead of
14311 at caller.
14312 (finish_step_over): Clear step over info unconditionally.
14313 (handle_signal_stop): If the user had interrupted the event
14314 thread, consider the stop a random signal.
14315 (handle_signal_stop) <signal arrived while stepping over
14316 breakpoint>: Don't restart threads here.
14317 (stop_waiting): Don't clear step-over info here.
14318
14319 2017-03-08 Pedro Alves <palves@redhat.com>
14320
14321 PR 21206
14322 * common/gdb_unlinker.h (unlinker::unlinker): Attribute nonnull
14323 goes to argument 2, not 1.
14324
14325 2017-03-08 Pedro Alves <palves@redhat.com>
14326
14327 PR cli/21218
14328 * top.c (gdb_readline_wrapper): Avoid passing NULL to
14329 display_gdb_prompt.
14330 (command_line_input): Add comment.
14331
14332 2017-03-08 Pedro Alves <palves@redhat.com>
14333
14334 PR tui/21216
14335 * tui/tui-file.c (tui_file::write): New.
14336 * tui/tui-file.h (tui_file): Override "write".
14337 * tui/tui-io.c (do_tui_putc, update_start_line): New functions,
14338 factored out from ...
14339 (tui_puts): ... here.
14340 (tui_putc): Use them.
14341 (tui_write): New function.
14342 * tui/tui-io.h (tui_write): Declare.
14343
14344 2017-03-07 Sergio Durigan Junior <sergiodj@redhat.com>
14345
14346 * Makefile.in (SFILES): Replace "environ.c" with
14347 "common/environ.c".
14348 (HFILES_NO_SRCDIR): Likewise, for "environ.h".
14349 * environ.c: Include "common-defs.h" instead of "defs.h. Moved
14350 to...
14351 * common/environ.c: ... here.
14352 * environ.h: Moved to...
14353 * common/environ.h: ... here.
14354
14355 2017-03-07 Peter Bergner <bergner@vnet.ibm.com>
14356
14357 * gdbarch.sh (pstring_ptr): New static function.
14358 (gdbarch_disassembler_options): Use it.
14359 (gdbarch_verify_disassembler_options): Print valid_disassembler_options,
14360 not valid_disassembler_option->name.
14361 * gdbarch.c: Regenerate.
14362
14363 2017-03-07 Peter Bergner <bergner@vnet.ibm.com>
14364
14365 * config/powerpc/ppc64-linux.mh (MH_CFLAGS): Delete.
14366
14367 2017-03-07 Pedro Alves <palves@redhat.com>
14368
14369 * tui/tui-regs.c (tui_restore_gdbout): Don't delete gdb_stdout.
14370
14371 2017-03-07 Walfred Tedeschi <walfred.tedeschi@intel.com>
14372
14373 * i387-tdep.h (i387_reset_bnd_regs): Add function definition.
14374 * i387-tdep.c (i387_reset_bnd_regs): Add function implementation.
14375 * i386-tdep.c (i386_push_dummy_call): Call i387_reset_bnd_regs.
14376 * amd64-tdep.c (amd64_push_dummy_call): Call i387_reset_bnd_regs.
14377
14378 2017-03-06 Simon Marchi <simon.marchi@ericsson.com>
14379
14380 * xtensa-linux-nat.c (fetch_gregs): Remove const.
14381
14382 2017-03-03 Simon Marchi <simon.marchi@ericsson.com>
14383
14384 * remote.c (remote_add_target_side_commands): Use range-based
14385 for loop.
14386
14387 2017-03-03 Yao Qi <yao.qi@linaro.org>
14388
14389 PR gdb/21165
14390 * ada-valprint.c (ada_val_print_ref): Call value_fetch_lazy if
14391 value is lazy.
14392 * valprint.c (common_val_print): Likewise.
14393
14394 2017-02-28 Peter Bergner <bergner@vnet.ibm.com>
14395
14396 * NEWS: Mention new set/show disassembler-options commands.
14397 * doc/gdb.texinfo: Document new set/show disassembler-options commands.
14398 * disasm.c: Include "arch-utils.h", "gdbcmd.h" and "safe-ctype.h".
14399 (prospective_options): New static variable.
14400 (gdb_disassembler::gdb_disassembler): Initialize
14401 m_di.disassembler_options.
14402 (gdb_buffered_insn_length_init_dis): Initilize di->disassembler_options.
14403 (get_disassembler_options): New function.
14404 (set_disassembler_options): Likewise.
14405 (set_disassembler_options_sfunc): Likewise.
14406 (show_disassembler_options_sfunc): Likewise.
14407 (disassembler_options_completer): Likewise.
14408 (_initialize_disasm): Likewise.
14409 * disasm.h (get_disassembler_options): New prototype.
14410 (set_disassembler_options): Likewise.
14411 * gdbarch.sh (gdbarch_disassembler_options): New variable.
14412 (gdbarch_verify_disassembler_options): Likewise.
14413 * gdbarch.c: Regenerate.
14414 * gdbarch.h: Likewise.
14415 * arm-tdep.c (num_disassembly_options): Delete.
14416 (set_disassembly_style): Likewise.
14417 (arm_disassembler_options): New static variable.
14418 (set_disassembly_style_sfunc): Convert short style name into long
14419 option name. Call set_disassembler_options.
14420 (show_disassembly_style_sfunc): New function.
14421 (arm_gdbarch_init): Call set_gdbarch_disassembler_options and
14422 set_gdbarch_verify_disassembler_options.
14423 (_initialize_arm_tdep): Delete regnames variable and update callers.
14424 (arm_disassembler_options): Initialize.
14425 (disasm_options): New variable.
14426 (num_disassembly_options): Rename from this...
14427 (num_disassembly_styles): ...to this. Compute by scanning through
14428 disasm_options.
14429 (valid_disassembly_styles): Initialize using disasm_options.
14430 Remove calls to parse_arm_disassembler_option, get_arm_regnames and
14431 set_arm_regname_option.
14432 Pass show_disassembly_style_sfunc to the "disassembler" setshow command.
14433 * rs6000-tdep.c (powerpc_disassembler_options): New static variable.
14434 (rs6000_gdbarch_init): Call set_gdbarch_disassembler_options and
14435 set_gdbarch_verify_disassembler_options.
14436 * s390-tdep.c (s390_disassembler_options): New static variable.
14437 (s390_gdbarch_init):all set_gdbarch_disassembler_options and
14438 set_gdbarch_verify_disassembler_options.
14439
14440 2017-02-27 Simon Marchi <simon.marchi@ericsson.com>
14441
14442 * remote.c (remote_add_target_side_condition): Remove "struct"
14443 keyword from range-based for loop.
14444
14445 2017-02-27 Simon Marchi <simon.marchi@ericsson.com>
14446
14447 * remote.c (remote_add_target_side_condition): Use range-based
14448 for loop. Update comment.
14449
14450 2017-02-27 Yao Qi <yao.qi@linaro.org>
14451
14452 * f-typeprint.c (f_print_type): Check "varstring" is empty first.
14453
14454 2017-02-26 Alan Hayward <alan.hayward@arm.com>
14455
14456 * regcache.c (regcache_raw_update): New function.
14457 (regcache_raw_read): Move code to regcache_raw_update.
14458 * regcache.h (regcache_raw_update): New declaration.
14459 * remote.c (remote_prepare_to_store): Call regcache_raw_update.
14460
14461 2017-02-26 Jan Kratochvil <jan.kratochvil@redhat.com>
14462
14463 * dwarf2read.c (create_debug_type_hash_table): Initialize
14464 header.signature and header.type_offset_in_tu.
14465
14466 2017-02-24 Pedro Alves <palves@redhat.com>
14467
14468 * symtab.c (make_file_symbol_completion_list_1): Use
14469 add_symtab_completions.
14470
14471 2017-02-24 Alan Hayward <alan.hayward@arm.com>
14472
14473 * stack.c (frame_info): Use frame_unwind_register_value to avoid buf.
14474
14475 2017-02-24 Alan Hayward <alan.hayward@arm.com>
14476
14477 * i386-tdep.c (i386_pseudo_register_read_into_value): Use
14478 I386_MAX_REGISTER_SIZE.
14479 (i386_pseudo_register_write): Likewise.
14480 (i386_process_record): Likewise.
14481 * i387-tdep.c (i387_supply_xsave): Likewise.
14482 * m68k-linux-nat.c (fetch_register): Use M68K_MAX_REGISTER_SIZE.
14483 (store_register): Likewise.
14484
14485 2017-02-23 Pedro Alves <palves@redhat.com>
14486
14487 * ada-lang.c: Include "common/function-view.h".
14488 (ada_iterate_over_symbols): Adjust to use function_view as
14489 callback type.
14490 (struct add_partial_datum, ada_complete_symbol_matcher): Delete.
14491 (ada_make_symbol_completion_list): Use a lambda.
14492 (ada_exc_search_name_matches): Delete.
14493 (name_matches_regex): New.
14494 (ada_add_global_exceptions): Use a lambda and name_matches_regex.
14495 * compile/compile-c-support.c: Include "common/function-view.h".
14496 (print_one_macro): Change prototype to accept a ui_file pointer.
14497 (write_macro_definitions): Use a lambda.
14498 * dwarf2read.c: Include "common/function-view.h".
14499 (dw2_map_expand_apply, dw2_map_symtabs_matching_filename)
14500 (dw2_expand_symtabs_matching): Adjust to use function_view as
14501 callback type.
14502 * language.h: Include "common/function-view.h".
14503 (struct language_defn) <la_iterate_over_symbols>: Adjust to use
14504 function_view as callback type.
14505 (LA_ITERATE_OVER_SYMBOLS): Remove DATA parameter.
14506 * linespec.c: Include "common/function-view.h".
14507 (collect_info::add_symbol): New method.
14508 (struct symbol_and_data_callback, iterate_inline_only, struct
14509 symbol_matcher_data, iterate_name_matcher): Delete.
14510 (iterate_over_all_matching_symtabs): Adjust to use function_view
14511 as callback type and lambdas.
14512 (iterate_over_file_blocks): Adjust to use function_view as
14513 callback type.
14514 (decode_compound_collector): Now a class with private fields.
14515 (decode_compound_collector::release_symbols): New method.
14516 (collect_one_symbol): Rename to...
14517 (decode_compound_collector::operator()): ... this and adjust.
14518 (lookup_prefix_sym): decode_compound_collector construction bits
14519 move to decode_compound_collector ctor. Pass the
14520 decode_compound_collector object directly as callback. Remove
14521 cleanups and use decode_compound_collector::release_symbols
14522 instead.
14523 (symtab_collector): Now a class with private fields.
14524 (symtab_collector::release_symtabs): New method.
14525 (add_symtabs_to_list): Rename to...
14526 (symtab_collector::operator()): ... this and adjust.
14527 (collect_symtabs_from_filename): symtab_collector construction
14528 bits move to symtab_collector ctor. Pass the symtab_collector
14529 object directly as callback. Remove cleanups and use
14530 symtab_collector::release_symtabs instead.
14531 (collect_symbols): Delete.
14532 (add_matching_symbols_to_info): Use lambdas.
14533 * macrocmd.c (print_macro_callback): Delete.
14534 (info_macro_command): Use a lambda.
14535 (info_macros_command): Pass print_macro_definition as callable
14536 directly.
14537 (print_one_macro): Remove 'ignore' parameter.
14538 (macro_list_command): Adjust.
14539 * macrotab.c (macro_for_each_data::fn): Now a function_view.
14540 (macro_for_each_data::user_data): Delete field.
14541 (foreach_macro): Adjust to call the function_view.
14542 (macro_for_each): Adjust to use function_view as callback type.
14543 (foreach_macro_in_scope): Adjust to call the function_view.
14544 (macro_for_each_in_scope): Adjust to use function_view as callback
14545 type.
14546 * macrotab.h: Include "common/function-view.h".
14547 (macro_callback_fn): Declare a prototype instead of a pointer.
14548 Remove "user_data" parameter.
14549 (macro_for_each, macro_for_each_in_scope): Adjust to use
14550 function_view as callback type.
14551 * psymtab.c (partial_map_expand_apply)
14552 (psym_map_symtabs_matching_filename, recursively_search_psymtabs):
14553 Adjust to use function_view as callback type and to return bool.
14554 (psym_expand_symtabs_matching): Adjust to use function_view as
14555 callback types.
14556 * symfile-debug.c (debug_qf_map_symtabs_matching_filename): Adjust
14557 to use function_view as callback type and to return bool.
14558 (debug_qf_expand_symtabs_matching): Adjust to use function_view as
14559 callback types.
14560 * symfile.c (expand_symtabs_matching): Adjust to use function_view
14561 as callback types.
14562 * symfile.h: Include "common/function-view.h".
14563 (expand_symtabs_file_matcher_ftype)
14564 (expand_symtabs_symbol_matcher_ftype)
14565 (expand_symtabs_exp_notify_ftype): Remove "data" parameter and
14566 return bool.
14567 (quick_symbol_functions::map_symtabs_matching_filename)
14568 (quick_symbol_functions::expand_symtabs_matching): Adjust to use
14569 function_view as callback type and return bool.
14570 (expand_symtabs_matching): Adjust to use function_view as callback
14571 type.
14572 (maintenance_expand_name_matcher)
14573 (maintenance_expand_file_matcher): Delete.
14574 (maintenance_expand_symtabs): Use lambdas.
14575 * symtab.c (iterate_over_some_symtabs): Adjust to use
14576 function_view as callback types and return bool.
14577 (iterate_over_symtabs): Likewise. Use unique_xmalloc_ptr instead
14578 of a cleanup.
14579 (lookup_symtab_callback): Delete.
14580 (lookup_symtab): Use a lambda.
14581 (iterate_over_symbols): Adjust to use function_view as callback
14582 type.
14583 (struct search_symbols_data, search_symbols_file_matches)
14584 (search_symbols_name_matches): Delete.
14585 (search_symbols): Use a pair of lambdas.
14586 (struct add_name_data, add_macro_name, symbol_completion_matcher)
14587 (symtab_expansion_callback): Delete.
14588 (default_make_symbol_completion_list_break_on_1): Use lambdas.
14589 * symtab.h: Include "common/function-view.h".
14590 (iterate_over_some_symtabs): Adjust to use function_view as
14591 callback type and return bool.
14592 (iterate_over_symtabs): Adjust to use function_view as callback
14593 type.
14594 (symbol_found_callback_ftype): Remove 'data' parameter and return
14595 bool.
14596 (iterate_over_symbols): Adjust to use function_view as callback
14597 type.
14598
14599 2017-02-23 Pedro Alves <palves@redhat.com>
14600
14601 * Makefile.in (SUBDIR_UNITTESTS_SRCS, SUBDIR_UNITTESTS_OBS): New.
14602 (%.o) <unittests/%.c>: New pattern.
14603 * configure.ac ($development): Add $(SUBDIR_UNITTESTS_OBS) to
14604 CONFIG_OBS, and $(SUBDIR_UNITTESTS_SRCS) to CONFIG_SRCS.
14605 * common/function-view.h: New file.
14606 * unittests/function-view-selftests.c: New file.
14607 * configure: Regenerate.
14608
14609 2017-02-23 Simon Marchi <simon.marchi@ericsson.com>
14610
14611 * bsd-uthread.c (bsd_uthread_thread_alive): Use ptid instead of
14612 inferior_ptid.
14613 * go32-nat.c (go32_thread_alive): Likewise.
14614
14615 2017-02-23 Yao Qi <yao.qi@linaro.org>
14616
14617 * varobj-iter.h (varobj_iter_delete): Call xfree instead of
14618 delete.
14619
14620 2017-02-23 Yao Qi <yao.qi@linaro.org>
14621
14622 * varobj.c (varobj_clear_saved_item): Use delete instead of
14623 xfree.
14624 (update_dynamic_varobj_children): Likewise.
14625
14626 2017-02-21 Jan Kratochvil <jan.kratochvil@redhat.com>
14627
14628 * dwarf2read.c (dwarf2_record_block_ranges): Add forgotten BASEADDR.
14629
14630 2017-02-21 Simon Marchi <simon.marchi@ericsson.com>
14631
14632 * common/enum-flags.h (enum_flags::enum_flags): Initialize
14633 m_enum_value to 0 in default constructor.
14634
14635 2017-02-21 Edjunior Barbosa Machado <emachado@linux.vnet.ibm.com>
14636
14637 * rs6000-tdep.c (LOAD_AND_RESERVE_MASK): Rename from LWARX_MASK.
14638 (STORE_CONDITIONAL_MASK): Rename from STWCX_MASK.
14639 (LBARX_INSTRUCTION, LHARX_INSTRUCTION, LQARX_INSTRUCTION,
14640 STBCX_INSTRUCTION, STHCX_INSTRUCTION, STQCX_INSTRUCTION): New defines.
14641 (IS_LOAD_AND_RESERVE_INSN, IS_STORE_CONDITIONAL_INSN): New macros.
14642 (ppc_displaced_step_copy_insn): Use IS_LOAD_AND_RESERVE_INSN.
14643 (ppc_deal_with_atomic_sequence): Use IS_LOAD_AND_RESERVE_INSN and
14644 IS_STORE_CONDITIONAL_INSN.
14645
14646 2017-02-21 Jan Kratochvil <jan.kratochvil@redhat.com>
14647
14648 * dwarf2_rnglists_process: Initialize range_beginning and range_end.
14649
14650 2017-02-20 Jan Kratochvil <jan.kratochvil@redhat.com>
14651
14652 * NEWS (Changes since GDB 7.12): Add DWARF-5.
14653
14654 2017-02-20 Jan Kratochvil <jan.kratochvil@redhat.com>
14655
14656 * dwarf2read.c (skip_one_die, read_attribute_value)
14657 (dwarf2_const_value_attr, dump_die_shallow)
14658 (dwarf2_get_attr_constant_value, dwarf2_fetch_constant_bytes)
14659 (skip_form_bytes, attr_form_is_constant): Handle DW_FORM_data16.
14660
14661 2017-02-20 Jan Kratochvil <jan.kratochvil@redhat.com>
14662
14663 * dwarf2read.c (read_file_scope): Rename DW_MACRO_GNU_*.
14664 (dwarf_parse_macro_header): Accept DWARF version 5.
14665 (dwarf_decode_macro_bytes, dwarf_decode_macros): Rename DW_MACRO_GNU_*.
14666
14667 2017-02-20 Jan Kratochvil <jan.kratochvil@redhat.com>
14668
14669 * block.c (call_site_for_pc): Rename DW_OP_GNU_*, DW_TAG_GNU_* and
14670 DW_AT_GNU_*.
14671 * common/common-exceptions.h (enum errors): Likewise.
14672 * dwarf2-frame.c (class dwarf_expr_executor): Likewise.
14673 * dwarf2expr.c (dwarf_block_to_dwarf_reg)
14674 (dwarf_expr_context::execute_stack_op): Likewise.
14675 * dwarf2expr.h (struct dwarf_expr_context, struct dwarf_expr_piece):
14676 Likewise.
14677 * dwarf2loc.c (dwarf_evaluate_loc_desc::get_base_type)
14678 (dwarf_evaluate_loc_desc::push_dwarf_reg_entry_value)
14679 (show_entry_values_debug, call_site_to_target_addr)
14680 (func_addr_to_tail_call_list, func_verify_no_selftailcall)
14681 (dwarf_expr_reg_to_entry_parameter, dwarf_entry_parameter_to_value)
14682 (entry_data_value_free_closure, value_of_dwarf_reg_entry)
14683 (value_of_dwarf_block_entry, indirect_pieced_value)
14684 (symbol_needs_eval_context::push_dwarf_reg_entry_value):
14685 (disassemble_dwarf_expression): Likewise.
14686 * dwarf2read.c (process_die, inherit_abstract_dies)
14687 (read_call_site_scope): Likewise.
14688 * gdbtypes.h (struct func_type, struct call_site_parameter)
14689 (struct call_site): Likewise.
14690 * stack.c (read_frame_arg): Likewise.
14691 * std-operator.def (OP_VAR_ENTRY_VALUE): Likewise.
14692
14693 2017-02-20 Jan Kratochvil <jan.kratochvil@redhat.com>
14694
14695 * defs.h (read_unsigned_leb128): New declaration.
14696 * dwarf2loc.c (decode_debug_loclists_addresses): New function.
14697 (decode_debug_loc_dwo_addresses): Update DEBUG_LOC_* to DW_LLE_*.
14698 (dwarf2_find_location_expression): Call also
14699 decode_debug_loclists_addresses. Handle DWARF-5 ULEB128 length.
14700 * dwarf2loc.h (dwarf2_version): New declaration.
14701 * dwarf2read.c (struct dwarf2_per_objfile): Add loclists, line_str,
14702 rnglists.
14703 (dwarf2_elf_names): Add .debug_loclists, .debug_line_str,
14704 .debug_rnglists.
14705 (struct dwop_section_names): Add loclists_dwo.
14706 (dwop_section_names): Add .debug_loclists.dwo.
14707 (struct comp_unit_head): Add unit_type, signature, type_offset_in_tu.
14708 (struct dwarf2_per_cu_data): Add dwarf_version.
14709 (struct dwo_sections): Add loclists.
14710 (struct attr_abbrev): Add implicit_const.
14711 (read_indirect_line_string): New declaration.
14712 (read_unsigned_leb128): Delete declaration.
14713 (rcuh_kind): New definition.
14714 (read_and_check_comp_unit_head): Change parameter
14715 is_debug_types_section to section_kind.
14716 (dwarf2_locate_sections): Handle loclists, line_str and rnglists.
14717 (read_comp_unit_head): Change parameter abfd to section, add parameter
14718 section_kind. Handle DWARF-5.
14719 (error_check_comp_unit_head): Accept also DWARF version 5.
14720 (read_and_check_comp_unit_head): Change parameter
14721 is_debug_types_section to section_kind.
14722 (read_and_check_type_unit_head): Delete function.
14723 (read_abbrev_offset): Handle DWARF-5.
14724 (create_debug_type_hash_table): Add parameter section_kind. Process
14725 only DW_UT_type. Use signature and type_offset_in_tu from struct
14726 comp_unit_head.
14727 (create_debug_types_hash_table): Update create_debug_type_hash_table
14728 caller.
14729 (create_all_type_units): Call create_debug_type_hash_table.
14730 (read_cutu_die_from_dwo, init_cutu_and_read_dies): Change
14731 read_and_check_type_unit_head caller to read_and_check_comp_unit_head
14732 caller.
14733 (skip_one_die): Handle DW_FORM_implicit_const.
14734 (dwarf2_rnglists_process): New function.
14735 (dwarf2_ranges_process): Call dwarf2_rnglists_process for DWARF-5.
14736 (abbrev_table_read_table): Handle DW_FORM_implicit_const.
14737 (read_attribute_value): Handle DW_FORM_implicit_const,
14738 DW_FORM_line_strp.
14739 (read_attribute): Handle DW_FORM_implicit_const.
14740 (read_indirect_string_at_offset_from): New function from
14741 read_indirect_string_at_offset.
14742 (read_indirect_string_at_offset): Call
14743 read_indirect_string_at_offset_from.
14744 (read_indirect_line_string_at_offset): New function.
14745 (read_indirect_string): New function comment.
14746 (read_indirect_line_string): New function.
14747 (read_unsigned_leb128): Make it global.
14748 (dwarf2_string_attr): Handle DWARF-5.
14749 (add_include_dir_stub, read_formatted_entries): New functions.
14750 (dwarf_decode_line_header, dump_die_shallow, cu_debug_loc_section):
14751 Handle DWARF-5.
14752 (per_cu_header_read_in): Update read_comp_unit_head caller.
14753 (dwarf2_version): New function.
14754 * symfile.h (struct dwarf2_debug_sections): Add loclists, line_str and
14755 rnglists.
14756 * xcoffread.c (dwarf2_xcoff_names): Update struct dwarf2_debug_sections
14757 fields.
14758
14759 2017-02-20 Jan Kratochvil <jan.kratochvil@redhat.com>
14760
14761 * dwarf2read.c (abbrev_table_read_table): Read the data only once.
14762
14763 2017-02-20 Jan Kratochvil <jan.kratochvil@redhat.com>
14764
14765 * dwarf2read.c (dwarf2_ranges_process): New function from
14766 dwarf2_ranges_read.
14767 (dwarf2_ranges_read, dwarf2_record_block_ranges): Use
14768 dwarf2_ranges_process.
14769
14770 2017-02-20 Jan Kratochvil <jan.kratochvil@redhat.com>
14771
14772 * dwarf2read.c (create_debug_type_hash_table): New function from
14773 create_debug_types_hash_table.
14774 (create_debug_types_hash_table): Call create_debug_type_hash_table.
14775 (create_all_type_units, open_and_init_dwo_file): Update
14776 create_debug_types_hash_table callers.
14777
14778 2017-02-20 Sergio Durigan Junior <sergiodj@redhat.com>
14779
14780 PR gdb/16188
14781 * fork-child.c (trace_start_error): Fix thinko. va_end should
14782 refer to 'ap', not 'args'.
14783
14784 2017-02-20 Sergio Durigan Junior <sergiodj@redhat.com>
14785 Pedro Alves <palves@redhat.com>
14786
14787 PR gdb/16188
14788 * darwin-nat.c (darwin_ptrace_me): Check if calls to system
14789 calls succeeded.
14790 * fork-child.c (trace_start_error): New function.
14791 (trace_start_error_with_name): Likewise.
14792 * gnu-nat.c (gnu_ptrace_me): Check if call to PTRACE succeeded.
14793 * inf-ptrace.c (inf_ptrace_me): Likewise.
14794 * inferior.h (trace_start_error): New prototype.
14795 (trace_start_error_with_name): Likewise.
14796
14797 2017-02-15 Sergio Durigan Junior <sergiodj@redhat.com>
14798
14799 PR gdb/21164
14800 * psymtab.c (maintenance_print_psymbols): Verify if 'argv' is not
14801 NULL before using it.
14802 * symmisc.c (maintenance_print_symbols): Likewise.
14803 (maintenance_print_msymbols): Likewise.
14804
14805 2017-02-14 Tim Wiederhake <tim.wiederhake@intel.com>
14806
14807 * NEWS: Add record Python bindings entry.
14808
14809 2017-02-14 Tim Wiederhake <tim.wiederhake@intel.com>
14810
14811 * Makefile.in (SUBDIR_PYTHON_OBS): Add py-record-btrace.o,
14812 py-record-full.o.
14813 (SUBDIR_PYTHON_SRCS): Add py-record-btrace.c, py-record-full.c.
14814 * python/py-record-btrace.c, python/py-record-btrace.h,
14815 python/py-record-full.c, python/py-record-full.h: New file.
14816 * python/py-record.c: Add include for py-record-btrace.h and
14817 py-record-full.h.
14818 (recpy_method, recpy_format, recpy_goto, recpy_replay_position,
14819 recpy_instruction_history, recpy_function_call_history, recpy_begin,
14820 recpy_end): Use functions from py-record-btrace.c and py-record-full.c.
14821 * python/python-internal.h (PyInt_FromSsize_t, PyInt_AsSsize_t):
14822 New definition.
14823 (gdbpy_initialize_btrace): New export.
14824 * python/python.c (_initialize_python): Add gdbpy_initialize_btrace.
14825
14826 2017-02-14 Tim Wiederhake <tim.wiederhake@intel.com>
14827
14828 * Makefile.in (SUBDIR_PYTHON_OBS): Add python/py-record.o.
14829 (SUBDIR_PYTHON_SRCS): Add python/py-record.c.
14830 * python/py-record.c: New file.
14831 * python/python-internal.h (gdbpy_start_recording,
14832 gdbpy_current_recording, gdpy_stop_recording,
14833 gdbpy_initialize_record): New export.
14834 * python/python.c (_initialize_python): Add gdbpy_initialize_record.
14835 (python_GdbMethods): Add gdbpy_start_recording,
14836 gdbpy_current_recording and gdbpy_stop_recording.
14837
14838 2017-02-14 Tim Wiederhake <tim.wiederhake@intel.com>
14839
14840 * record-btrace.c (record_btrace_record_method): New function.
14841 (init_record_btrace_ops): Initialize to_record_method.
14842 * record-full.c (record_full_record_method): New function.
14843 (init_record_full_ops, init_record_full_core_ops): Add
14844 record_full_record_method.
14845 * record.h (enum record_method): New enum.
14846 * target-debug.h (target_debug_print_enum_record_method: New define.
14847 * target-delegates.c: Regenerate.
14848 * target.c (target_record_method): New function.
14849 * target.h: Include record.h.
14850 (struct target_ops) <to_record_method>: New field.
14851 (target_record_method): New export.
14852
14853 2017-02-14 Tim Wiederhake <tim.wiederhake@intel.com>
14854
14855 * record.h (record_start, record_stop): New export.
14856 * record.c (record_start, record_stop): New function.
14857
14858 2017-02-14 Tim Wiederhake <tim.wiederhake@intel.com>
14859
14860 * btrace.c (btrace_fetch): Copy function call segments pointer
14861 into a vector.
14862 (btrace_clear): Clear the vector.
14863 (btrace_find_insn_by_number): Use binary search to find the correct
14864 function call segment.
14865 * btrace.h (brace_fun_p): New typedef.
14866 (struct btrace_thread_info) <functions>: New field.
14867
14868 2017-02-14 Tim Wiederhake <tim.wiederhake@intel.com>
14869
14870 * record-btrace.c (btrace_ui_out_decode_error): Move most of it ...
14871 * btrace.c (btrace_decode_error): ... here. New function.
14872 * btrace.h (btrace_decode_error): New export.
14873
14874 2017-02-14 Tim Wiederhake <tim.wiederhake@intel.com>
14875
14876 * btrace.c (ftrace_call_num_insn, btrace_insn_get_error): New function.
14877 (ftrace_new_function, btrace_insn_number, btrace_insn_cmp,
14878 btrace_find_insn_by_number): Remove special case for gaps.
14879 * btrace.h (btrace_insn_get_error): New export.
14880 (btrace_insn_number, btrace_find_insn_by_number): Adjust comment.
14881 * record-btrace.c (btrace_insn_history): Print number for gaps.
14882 (record_btrace_info, record_btrace_goto): Handle gaps.
14883
14884 2017-02-14 Tom Tromey <tom@tromey.com>
14885
14886 PR python/13598:
14887 * python/python.c (gdbpy_before_prompt_hook): Emit before_prompt
14888 event.
14889 * python/py-evts.c (gdbpy_initialize_py_events): Add
14890 before_prompt registry.
14891 * python/py-events.h (events_object) <before_prompt>: New field.
14892
14893 2017-02-14 Markus Metzger <markus.t.metzger@intel.com>
14894
14895 * btrace.c (ftrace_new_switch): Preserve up link and flags.
14896
14897 2017-02-13 Luis Machado <lgustavo@codesourcery.com>
14898
14899 * symfile (_initialize_symfile): Add usage text to the load command's
14900 help text.
14901
14902 2017-02-10 Simon Marchi <simon.marchi@ericsson.com>
14903
14904 * utils.c (defaulted_query): Don't query on secondary UIs.
14905
14906 2017-02-10 Tom Tromey <tom@tromey.com>
14907
14908 * rust-lang.c (rust_get_disr_info): Remove unused variable.
14909
14910 2017-02-10 Tom Tromey <tom@tromey.com>
14911
14912 * python/py-value.c (valpy_richcompare_throw): Remove unnecessary
14913 "cleanup" local.
14914 * python/py-type.c (typy_legacy_template_argument): Remove
14915 unnecessary "cleanup" local.
14916
14917 2017-02-10 Tom Tromey <tom@tromey.com>
14918
14919 * python/python.c (do_start_initialization): New function, from
14920 _initialize_python.
14921 (_initialize_python): Call do_start_initialization.
14922 * python/py-linetable.c (ltpy_iternext): Use explicit returns, not
14923 goto.
14924
14925 2017-02-10 Tom Tromey <tom@tromey.com>
14926
14927 * python/py-prettyprint.c (pretty_print_one_value): Use
14928 gdbpy_ref.
14929
14930 2017-02-10 Tom Tromey <tom@tromey.com>
14931
14932 * python/py-cmd.c (cmdpy_destroyer): Use gdbpy_ref.
14933 * python/py-breakpoint.c (gdbpy_breakpoint_deleted): Use
14934 gdbpy_ref.
14935 * python/py-type.c (field_new): Use gdbpy_ref.
14936 * python/py-symtab.c (symtab_and_line_to_sal_object): Use
14937 gdbpy_ref.
14938 * python/py-progspace.c (pspy_new): Use gdbpy_ref.
14939 (py_free_pspace): Likewise.
14940 (pspace_to_pspace_object): Likewise.
14941 * python/py-objfile.c (objfpy_new): Use gdbpy_ref.
14942 (py_free_objfile): Likewise.
14943 (objfile_to_objfile_object): Likewise.
14944 * python/py-inferior.c (delete_thread_object): Use
14945 gdbpy_ref.
14946 (infpy_read_memory): Likewise.
14947 (py_free_inferior): Likewise.
14948 * python/py-evtregistry.c (create_eventregistry_object): Use
14949 gdbpy_ref.
14950 * python/py-event.c (create_event_object): Use gdbpy_ref.
14951
14952 2017-02-10 Tom Tromey <tom@tromey.com>
14953
14954 * python/py-ref.h (gdbpy_ref_policy): Now a template.
14955 (gdbpy_ref): Now a template; allow subclasses of PyObject to be
14956 used.
14957 * python/py-arch.c, python/py-bpevent.c, python/py-breakpoint.c,
14958 python/py-cmd.c, python/py-continueevent.c, python/py-event.c,
14959 python/py-exitedevent.c, python/py-finishbreakpoint.c,
14960 python/py-framefilter.c, python/py-function.c,
14961 python/py-inferior.c, python/py-infevents.c,
14962 python/py-linetable.c, python/py-newobjfileevent.c,
14963 python/py-param.c, python/py-prettyprint.c, python/py-ref.h,
14964 python/py-signalevent.c, python/py-stopevent.c,
14965 python/py-symbol.c, python/py-threadevent.c, python/py-type.c,
14966 python/py-unwind.c, python/py-utils.c, python/py-value.c,
14967 python/py-varobj.c, python/py-xmethods.c, python/python.c,
14968 varobj.c: Change gdbpy_ref to gdbpy_ref<>.
14969
14970 2017-02-10 Tom Tromey <tom@tromey.com>
14971
14972 * ui-out.h (ui_out_emit_type): New class.
14973 (ui_out_emit_tuple, ui_out_emit_list): New typedefs.
14974 * python/py-framefilter.c (py_print_single_arg): Use gdb::optional
14975 and ui_out_emit_tuple.
14976 (enumerate_locals): Likewise.
14977 (py_mi_print_variables, py_print_locals, py_print_args): Use
14978 ui_out_emit_list.
14979 (py_print_frame): Use gdb::optional, ui_out_emit_tuple,
14980 ui_out_emit_list.
14981 * common/gdb_optional.h: New file.
14982
14983 2017-02-10 Martin Galvan <martingalvan@sourceware.org>
14984
14985 * MAINTAINERS (Write After Approval): Update my e-mail address.
14986
14987 2017-02-10 Martin Galvan <martingalvan@sourceware.org>
14988
14989 PR gdb/21122
14990 * breakpoint.c (_initialize_breakpoint): Update the help description
14991 of the 'commands' command to indicate that it takes a list argument.
14992
14993 2017-02-09 Simon Marchi <simon.marchi@ericsson.com>
14994
14995 * interps.c (current_interp_set_logging): Remove "return".
14996
14997 2017-02-09 Gary Benson <gbenson@redhat.com>
14998
14999 * symtab.c (add_symtab_completions): Prevent NULL pointer
15000 dereference.
15001
15002 2017-02-08 Pedro Alves <palves@redhat.com>
15003
15004 * interps.c (interp::interp): Remove reference to quiet_p.
15005 (interp_set): Make static. Remove dead "Switching to" output
15006 code.
15007 (interp_quiet_p, interp_set_quiet): Delete.
15008 (interpreter_exec_cmd): Don't set the interpreter quiet.
15009 * interps.h (interp_quiet_p): Make static.
15010 (class interp) <quiet_p>: Remove field
15011
15012 2017-02-08 Jerome Guitton <guitton@adacore.com>
15013
15014 * cli/cli-decode.c (find_command_name_length): Make it extern.
15015 * cli/cli-decode.h (find_command_name_length): Declare.
15016 * cli/cli-script.c (command_name_equals, line_first_arg):
15017 New functions.
15018 (process_next_line): Use cli-decode to parse command names.
15019 (build_command_line): Make args a constant pointer.
15020
15021 2017-02-08 Jerome Guitton <guitton@adacore.com>
15022
15023 * cli-decode.c (lookup_cmd_1, lookup_cmd_composition):
15024 Remove case-insensitive search.
15025
15026 2017-02-07 Jose E. Marchesi <jose.marchesi@oracle.com>
15027
15028 * sparc-tdep.c (sparc32_gdbarch_init): Do not place a + operator
15029 at the end of the line. Avoids an ARI warning.
15030
15031 2017-02-06 Luis Machado <lgustavo@codesourcery.com>
15032
15033 * NEWS: Mention support for record/replay of Intel 64 rdrand and
15034 rdseed instructions.
15035 i386-tdep.c (i386_process_record): Handle Intel 64 rdrand and rseed.
15036
15037 2017-02-06 Ivo Raisr <ivo.raisr@oracle.com>
15038
15039 PR tdep/20936
15040 Provide and use sparc32 and sparc64 target description XML files.
15041 * features/sparc/sparc32-cp0.xml, features/sparc/sparc32-cpu.xml,
15042 features/sparc/sparc32-fpu.xml: New files for sparc 32-bit.
15043 * features/sparc/sparc64-cp0.xml, features/sparc/sparc64-cpu.xml,
15044 features/sparc/sparc64-fpu.xml: New files for sparc 64-bit.
15045 * features/sparc/sparc32-solaris.xml: New file.
15046 * features/sparc/sparc64-solaris.xml: New file.
15047 * features/sparc/sparc32-solaris.c: Generated.
15048 * features/sparc/sparc64-solaris.c: Generated.
15049 * sparc-tdep.h: Account for differences in target descriptions.
15050 * sparc-tdep.c (sparc32_register_name): Use target provided registers.
15051 (sparc32_register_type): Use target provided registers.
15052 (validate_tdesc_registers): New function.
15053 (sparc32_gdbarch_init): Use tdesc_has_registers.
15054 Set pseudoregister functions.
15055 * sparc64-tdep.c (sparc64_register_name): Use target provided registers.
15056 (sparc64_register_type): Use target provided registers.
15057 (sparc64_init_abi): Set pseudoregister functions.
15058
15059 2017-02-03 Tom Tromey <tom@tromey.com>
15060
15061 PR rust/21097:
15062 * rust-lang.c (rust_print_type) <TYPE_CODE_UNION>: Handle enums
15063 with a single member.
15064
15065 2017-02-03 Pedro Alves <palves@redhat.com>
15066
15067 * cli/cli-interp.c (cli_interp_base::cli_interp_base)
15068 (cli_interp_base::~cli_interp_base): New.
15069 (cli_interp): New struct.
15070 (as_cli_interp): Cast the interp itself to cli_interp.
15071 (cli_interpreter_pre_command_loop): Rename to ...
15072 (cli_interp_base::pre_command_loop): ... this. Remove 'self'
15073 parameter.
15074 (cli_interpreter_init): Rename to ...
15075 (cli_interp::init): ... this. Remove 'self' parameter. Use
15076 boolean. Make extern.
15077 (cli_interpreter_resume): Rename to ...
15078 (cli_interp::resume): ... this. Remove 'data' parameter. Make
15079 extern.
15080 (cli_interpreter_suspend): Rename to ...
15081 (cli_interp::suspend): ... this. Remove 'data' parameter. Make
15082 extern.
15083 (cli_interpreter_exec): Rename to ...
15084 (cli_interp::exec): ... this. Remove 'data' parameter. Make
15085 extern.
15086 (cli_interpreter_supports_command_editing): Rename to ...
15087 (cli_interp_base::supports_command_editing): ... this. Remove
15088 'interp' parameter. Make extern.
15089 (cli_ui_out): Rename to ...
15090 (cli_interp::interp_ui_out): ... this. Remove 'interp' parameter.
15091 Make extern.
15092 (cli_set_logging): Rename to ...
15093 (cli_interp_base::set_logging): ... this. Remove 'interp'
15094 parameter. Make extern.
15095 (cli_interp_procs): Delete.
15096 (cli_interp_factory): Adjust to use "new".
15097 * cli/cli-interp.h: Include "interps.h".
15098 (struct cli_interp_base): New struct.
15099 * interps.c (struct interp): Delete. Fields moved to interps.h.
15100 (interp_new): Delete.
15101 (interp::interp, interp::~interp): New.
15102 (interp_set): Use bool, and return void. Assume the interpreter
15103 has suspend, init and resume methods, and that the all return
15104 void.
15105 (set_top_level_interpreter): interp_set returns void.
15106 (interp_ui_out): Adapt.
15107 (current_interp_set_logging): Adapt.
15108 (interp_data): Delete.
15109 (interp_pre_command_loop, interp_supports_command_editing): Adapt.
15110 (interp_exec): Adapt.
15111 (top_level_interpreter_data): Delete.
15112 * interps.h (interp_init_ftype, interp_resume_ftype)
15113 (interp_suspend_ftype, interp_exec_ftype)
15114 (interp_pre_command_loop_ftype, interp_ui_out_ftype): Delete.
15115 (class interp): New.
15116 (interp_new): Delete.
15117 (interp_set): Now returns void. Use bool.
15118 (interp_data, top_level_interpreter_data): Delete.
15119 * mi/mi-common.h: Include interps.h.
15120 (class mi_interp): Inherit from interp. Define a ctor. Declare
15121 init, resume, suspect, exec, interp_ui_out, set_logging and
15122 pre_command_loop methods.
15123 * mi/mi-interp.c (as_mi_interp): Cast the interp itself.
15124 (mi_interpreter_init): Rename to ...
15125 (mi_interp::init): ... this. Remove the 'interp' parameter, use
15126 bool, return void and make extern. Adjust.
15127 (mi_interpreter_resume): ... Rename to ...
15128 (mi_interp::resume): ... this. Remove the 'data' parameter,
15129 return void and make extern. Adjust.
15130 (mi_interpreter_suspend): ... Rename to ...
15131 (mi_interp::suspend): ... this. Remove the 'data' parameter,
15132 return void and make extern. Adjust.
15133 (mi_interpreter_exec): ... Rename to ...
15134 (mi_interp::exec): ... this. Remove the 'data' parameter and make
15135 extern. Adjust.
15136 (mi_interpreter_pre_command_loop): ... Rename to ...
15137 (mi_interp::pre_command_loop): ... this. Remove the 'self'
15138 parameter and make extern.
15139 (mi_on_normal_stop_1): Adjust.
15140 (mi_ui_out): Rename to ...
15141 (mi_interp::interp_ui_out): ... this. Remove the 'interp'
15142 parameter and make extern. Adjust.
15143 (mi_set_logging): Rename to ...
15144 (mi_interp::set_logging): ... this. Remove the 'interp'
15145 parameter and make extern. Adjust.
15146 (mi_interp_procs): Delete.
15147 (mi_interp_factory): Adjust to use 'new'.
15148 * mi/mi-main.c (mi_cmd_gdb_exit, captured_mi_execute_command)
15149 (mi_print_exception, mi_execute_command, mi_load_progress):
15150 Adjust.
15151 * tui/tui-interp.c (tui_interp): New class.
15152 (as_tui_interp): Return a tui_interp pointer.
15153 (tui_on_normal_stop, tui_on_signal_received)
15154 (tui_on_end_stepping_range, tui_on_signal_exited, tui_on_exited)
15155 (tui_on_no_history, tui_on_user_selected_context_changed): Adjust
15156 to use interp::interp_ui_out.
15157 (tui_init): Rename to ...
15158 (tui_interp::init): ... this. Remove the 'self' parameter, use
15159 bool, return void and make extern. Adjust.
15160 (tui_resume): Rename to ...
15161 (tui_interp::resume): ... this. Remove the 'data' parameter,
15162 return void and make extern. Adjust.
15163 (tui_suspend): Rename to ...
15164 (tui_interp::suspend): ... this. Remove the 'data' parameter,
15165 return void and make extern. Adjust.
15166 (tui_ui_out): Rename to ...
15167 (tui_interp::interp_ui_out): ... this. Remove the 'self'
15168 parameter, and make extern. Adjust.
15169 (tui_exec): Rename to ...
15170 (tui_interp::exec): ... this. Remove the 'data' parameter and
15171 make extern.
15172 (tui_interp_procs): Delete.
15173 (tui_interp_factory): Use "new".
15174
15175 2017-02-02 Tom Tromey <tom@tromey.com>
15176
15177 * rust-exp.y (ends_raw_string, space_then_number)
15178 (rust_identifier_start_p): Return bool.
15179 * rust-lang.c (rust_tuple_type_p, rust_underscore_fields)
15180 (rust_tuple_struct_type_p, rust_tuple_variant_type_p)
15181 (rust_slice_type_p, rust_range_type_p, rust_u8_type_p)
15182 (rust_chartype_p): Return bool.
15183 (val_print_struct, rust_print_struct_def, rust_print_type):
15184 Update.
15185 * rust-lang.h (rust_tuple_type_p, rust_tuple_struct_type_p):
15186 Return bool.
15187
15188 2017-02-02 Tom Tromey <tom@tromey.com>
15189
15190 * rust-lang.c: Reindent.
15191
15192 2017-02-02 Tom Tromey <tom@tromey.com>
15193
15194 * rust-lang.h (rust_crate_for_block): Update.
15195 * rust-lang.c (rust_crate_for_block): Return std::string.
15196 (rust_get_disr_info): Use std:;string, not
15197 gdb::unique_xmalloc_ptr.
15198 * rust-exp.y (crate_name): Update.
15199
15200 2017-02-02 Pedro Alves <palves@redhat.com>
15201
15202 * disasm-selftests.c (print_one_insn_test): Move the "verbose"
15203 field out of gdb_disassembler_test and make it static.
15204
15205 2017-02-02 Pedro Alves <palves@redhat.com>
15206
15207 * mi/mi-common.h (struct mi_interp): Delete the mi2_interp,
15208 mi1_interp and mi_interp fields.
15209
15210 2017-02-02 Pedro Alves <palves@redhat.com>
15211
15212 * cli/cli-interp.c (struct saved_output_files, saved_output):
15213 Moved from cli/cli-logging.c.
15214 (cli_set_logging): New function.
15215 (cli_interp_procs): Install cli_set_logging.
15216 * cli/cli-interp.h (make_logging_output, cli_set_logging):
15217 Declare.
15218 * cli/cli-logging.c (struct saved_output_files, saved_output):
15219 Moved to cli/cli-interp.c.
15220 (pop_output_files): Don't save outputs here.
15221 (make_logging_output): New function.
15222 (handle_redirections): Don't build tee nor save previous outputs
15223 here.
15224 * interps.c (current_interp_set_logging): Change prototype.
15225 Assume there's always a set_logging_proc method installed.
15226 * interps.h (interp_set_logging_ftype): Change prototype.
15227 (current_interp_set_logging): Change prototype and adjust comment.
15228 * mi/mi-interp.c (mi_set_logging): Change protototype. Adjust to
15229 use make_logging_output.
15230 * tui/tui-interp.c (tui_interp_procs): Install cli_set_logging.
15231 2017-02-02 Pedro Alves <palves@redhat.com>
15232
15233 * cli/cli-logging.c (maybe_warn_already_logging): New factored out
15234 from ...
15235 (set_logging_overwrite): ... here.
15236 (logging_no_redirect_file): Delete.
15237 (set_logging_redirect): Don't handle redirection on the fly.
15238 Instead warn that "logging off" / "logging on" is necessary.
15239 (pop_output_files): Delete references to logging_no_redirect_file.
15240 (show_logging_command): Always speak in terms of what will happen
15241 once logging is reenabled.
15242
15243 2017-02-02 Pedro Alves <palves@redhat.com>
15244
15245 * disasm.h (gdb_pretty_print_disassembler): Tweak intro comment.
15246
15247 2017-02-02 Pedro Alves <palves@redhat.com>
15248
15249 * disasm.c (gdb_pretty_print_insn): Rename to ...
15250 (gdb_pretty_print_disassembler::pretty_print_insn): ... this.
15251 Remove gdbarch parameter. Adapt to clear the object's buffers
15252 instead of allocating new buffers, and to print using the object's
15253 gdb_disassembler instead of calling gdb_print_insn.
15254 (dump_insns): Use gdb_pretty_print_disassembler.
15255 * disasm.h (gdb_pretty_print_insn): Delete declaration.
15256 (gdb_pretty_print_disassembler): New class.
15257 * record-btrace.c (btrace_insn_history): Use
15258 gdb_pretty_print_disassembler.
15259
15260 2017-02-02 Pedro Alves <palves@redhat.com>
15261
15262 * ada-lang.c (type_as_string): Use string_file.
15263 * ada-valprint.c (ada_print_floating): Use string_file.
15264 * ada-varobj.c (ada_varobj_scalar_image)
15265 (ada_varobj_get_value_image): Use string_file.
15266 * aix-thread.c (aix_thread_extra_thread_info): Use string_file.
15267 * arm-tdep.c (_initialize_arm_tdep): Use string_printf.
15268 * breakpoint.c (update_inserted_breakpoint_locations)
15269 (insert_breakpoint_locations, reattach_breakpoints)
15270 (print_breakpoint_location, print_one_detail_ranged_breakpoint)
15271 (print_it_watchpoint): Use string_file.
15272 (save_breakpoints): Use stdio_file.
15273 * c-exp.y (oper): Use string_file.
15274 * cli/cli-logging.c (set_logging_redirect): Use ui_file_up and
15275 tee_file.
15276 (pop_output_files): Use delete.
15277 (handle_redirections): Use stdio_file and tee_file.
15278 * cli/cli-setshow.c (do_show_command): Use string_file.
15279 * compile/compile-c-support.c (c_compute_program): Use
15280 string_file.
15281 * compile/compile-c-symbols.c (generate_vla_size): Take a
15282 'string_file &' instead of a 'ui_file *'.
15283 (generate_c_for_for_one_variable): Take a 'string_file &' instead
15284 of a 'ui_file *'. Use string_file.
15285 (generate_c_for_variable_locations): Take a 'string_file &'
15286 instead of a 'ui_file *'.
15287 * compile/compile-internal.h (generate_c_for_for_one_variable):
15288 Take a 'string_file &' instead of a 'ui_file *'.
15289 * compile/compile-loc2c.c (push, pushf, unary, binary)
15290 (print_label, pushf_register_address, pushf_register)
15291 (do_compile_dwarf_expr_to_c): Take a 'string_file &' instead of a
15292 'ui_file *'. Adjust.
15293 * compile/compile.c (compile_to_object): Use string_file.
15294 * compile/compile.h (compile_dwarf_expr_to_c)
15295 (compile_dwarf_bounds_to_c): Take a 'string_file &' instead of a
15296 'ui_file *'.
15297 * cp-support.c (inspect_type): Use string_file and obstack_copy0.
15298 (replace_typedefs_qualified_name): Use string_file and
15299 obstack_copy0.
15300 * disasm.c (gdb_pretty_print_insn): Use string_file.
15301 (gdb_disassembly): Adjust reference the null_stream global.
15302 (do_ui_file_delete): Delete.
15303 (gdb_insn_length): Use null_stream.
15304 * dummy-frame.c (maintenance_print_dummy_frames): Use stdio_file.
15305 * dwarf2loc.c (dwarf2_compile_property_to_c)
15306 (locexpr_generate_c_location, loclist_generate_c_location): Take a
15307 'string_file &' instead of a 'ui_file *'.
15308 * dwarf2loc.h (dwarf2_compile_property_to_c): Likewise.
15309 * dwarf2read.c (do_ui_file_peek_last): Delete.
15310 (dwarf2_compute_name): Use string_file.
15311 * event-top.c (gdb_setup_readline): Use stdio_file.
15312 * gdbarch.sh (verify_gdbarch): Use string_file.
15313 * gdbtypes.c (safe_parse_type): Use null_stream.
15314 * guile/scm-breakpoint.c (gdbscm_breakpoint_commands): Use
15315 string_file.
15316 * guile/scm-disasm.c (gdbscm_print_insn_from_port): Take a
15317 'string_file *' instead of a 'ui_file *'.
15318 (gdbscm_arch_disassemble): Use string_file.
15319 * guile/scm-frame.c (frscm_print_frame_smob): Use string_file.
15320 * guile/scm-ports.c (class ioscm_file_port): Now a class that
15321 inherits from ui_file.
15322 (ioscm_file_port_delete, ioscm_file_port_rewind)
15323 (ioscm_file_port_put): Delete.
15324 (ioscm_file_port_write): Rename to ...
15325 (ioscm_file_port::write): ... this. Remove file_port_magic
15326 checks.
15327 (ioscm_file_port_new): Delete.
15328 (ioscm_with_output_to_port_worker): Use ioscm_file_port and
15329 ui_file_up.
15330 * guile/scm-type.c (tyscm_type_name): Use string_file.
15331 * guile/scm-value.c (vlscm_print_value_smob, gdbscm_value_print):
15332 Use string_file.
15333 * infcmd.c (print_return_value_1): Use string_file.
15334 * infrun.c (print_target_wait_results): Use string_file.
15335 * language.c (add_language): Use string_file.
15336 * location.c (explicit_to_string_internal): Use string_file.
15337 * main.c (captured_main_1): Use null_file.
15338 * maint.c (maintenance_print_architecture): Use stdio_file.
15339 * mi/mi-cmd-stack.c (list_arg_or_local): Use string_file.
15340 * mi/mi-common.h (struct mi_interp) <out, err, log, targ,
15341 event_channel>: Change type to mi_console_file pointer.
15342 * mi/mi-console.c (mi_console_file_fputs, mi_console_file_flush)
15343 (mi_console_file_delete): Delete.
15344 (struct mi_console_file): Delete.
15345 (mi_console_file_magic): Delete.
15346 (mi_console_file_new): Delete.
15347 (mi_console_file::mi_console_file): New.
15348 (mi_console_file_delete): Delete.
15349 (mi_console_file_fputs): Delete.
15350 (mi_console_file::write): New.
15351 (mi_console_raw_packet): Delete.
15352 (mi_console_file::flush): New.
15353 (mi_console_file_flush): Delete.
15354 (mi_console_set_raw): Rename to ...
15355 (mi_console_file::set_raw): ... this.
15356 * mi/mi-console.h (class mi_console_file): New class.
15357 (mi_console_file_new, mi_console_set_raw): Delete.
15358 * mi/mi-interp.c (mi_interpreter_init): Use mi_console_file.
15359 (mi_set_logging): Use delete and tee_file. Adjust.
15360 * mi/mi-main.c (output_register): Use string_file.
15361 (mi_cmd_data_evaluate_expression): Use string_file.
15362 (mi_cmd_data_read_memory): Use string_file.
15363 (mi_cmd_execute, print_variable_or_computed): Use string_file.
15364 * mi/mi-out.c (mi_ui_out::main_stream): New.
15365 (mi_ui_out::rewind): Use main_stream and
15366 string_file.
15367 (mi_ui_out::put): Use main_stream and string_file.
15368 (mi_ui_out::mi_ui_out): Remove 'stream' parameter.
15369 Allocate a 'string_file' instead.
15370 (mi_out_new): Don't allocate a mem_fileopen stream here.
15371 * mi/mi-out.h (mi_ui_out::mi_ui_out): Remove 'stream' parameter.
15372 (mi_ui_out::main_stream): Declare method.
15373 * printcmd.c (eval_command): Use string_file.
15374 * psymtab.c (maintenance_print_psymbols): Use stdio_file.
15375 * python/py-arch.c (archpy_disassemble): Use string_file.
15376 * python/py-breakpoint.c (bppy_get_commands): Use string_file.
15377 * python/py-frame.c (frapy_str): Use string_file.
15378 * python/py-framefilter.c (py_print_type, py_print_single_arg):
15379 Use string_file.
15380 * python/py-type.c (typy_str): Use string_file.
15381 * python/py-unwind.c (unwind_infopy_str): Use string_file.
15382 * python/py-value.c (valpy_str): Use string_file.
15383 * record-btrace.c (btrace_insn_history): Use string_file.
15384 * regcache.c (regcache_print): Use stdio_file.
15385 * reggroups.c (maintenance_print_reggroups): Use stdio_file.
15386 * remote.c (escape_buffer): Use string_file.
15387 * rust-lang.c (rust_get_disr_info): Use string_file.
15388 * serial.c (serial_open_ops_1): Use stdio_file.
15389 (do_serial_close): Use delete.
15390 * stack.c (print_frame_arg): Use string_file.
15391 (print_frame_args): Remove local mem_fileopen stream, not used.
15392 (print_frame): Use string_file.
15393 * symmisc.c (maintenance_print_symbols): Use stdio_file.
15394 * symtab.h (struct symbol_computed_ops) <generate_c_location>:
15395 Take a 'string_file *' instead of a 'ui_file *'.
15396 * top.c (new_ui): Use stdio_file and stderr_file.
15397 (free_ui): Use delete.
15398 (execute_command_to_string): Use string_file.
15399 (quit_confirm): Use string_file.
15400 * tracepoint.c (collection_list::append_exp): Use string_file.
15401 * tui/tui-disasm.c (tui_disassemble): Use string_file.
15402 * tui/tui-file.c: Don't include "ui-file.h".
15403 (enum streamtype, struct tui_stream): Delete.
15404 (tui_file_new, tui_file_delete, tui_fileopen, tui_sfileopen)
15405 (tui_file_isatty, tui_file_rewind, tui_file_put): Delete.
15406 (tui_file::tui_file): New method.
15407 (tui_file_fputs): Delete.
15408 (tui_file_get_strbuf): Delete.
15409 (tui_file::puts): New method.
15410 (tui_file_adjust_strbuf): Delete.
15411 (tui_file_flush): Delete.
15412 (tui_file::flush): New method.
15413 * tui/tui-file.h: Tweak intro comment.
15414 Include ui-file.h.
15415 (tui_fileopen, tui_sfileopen, tui_file_get_strbuf)
15416 (tui_file_adjust_strbuf): Delete declarations.
15417 (class tui_file): New class.
15418 * tui/tui-io.c (tui_initialize_io): Use tui_file.
15419 * tui/tui-regs.c (tui_restore_gdbout): Use delete.
15420 (tui_register_format): Use string_stream.
15421 * tui/tui-stack.c (tui_make_status_line): Use string_file.
15422 (tui_get_function_from_frame): Use string_file.
15423 * typeprint.c (type_to_string): Use string_file.
15424 * ui-file.c (struct ui_file, ui_file_magic, ui_file_new): Delete.
15425 (null_stream): New global.
15426 (ui_file_delete): Delete.
15427 (ui_file::ui_file): New.
15428 (null_file_isatty): Delete.
15429 (ui_file::~ui_file): New.
15430 (null_file_rewind): Delete.
15431 (ui_file::printf): New.
15432 (null_file_put): Delete.
15433 (null_file_flush): Delete.
15434 (ui_file::putstr): New.
15435 (null_file_write): Delete.
15436 (ui_file::putstrn): New.
15437 (null_file_read): Delete.
15438 (ui_file::putc): New.
15439 (null_file_fputs): Delete.
15440 (null_file_write_async_safe): Delete.
15441 (ui_file::vprintf): New.
15442 (null_file_delete): Delete.
15443 (null_file::write): New.
15444 (null_file_fseek): Delete.
15445 (null_file::puts): New.
15446 (ui_file_data): Delete.
15447 (null_file::write_async_safe): New.
15448 (gdb_flush, ui_file_isatty): Adjust.
15449 (ui_file_put, ui_file_rewind): Delete.
15450 (ui_file_write): Adjust.
15451 (ui_file_write_for_put): Delete.
15452 (ui_file_write_async_safe, ui_file_read): Adjust.
15453 (ui_file_fseek): Delete.
15454 (fputs_unfiltered): Adjust.
15455 (set_ui_file_flush, set_ui_file_isatty, set_ui_file_rewind)
15456 (set_ui_file_put, set_ui_file_write, set_ui_file_write_async_safe)
15457 (set_ui_file_read, set_ui_file_fputs, set_ui_file_fseek)
15458 (set_ui_file_data): Delete.
15459 (string_file::~string_file, string_file::write)
15460 (struct accumulated_ui_file, do_ui_file_xstrdup, ui_file_xstrdup)
15461 (do_ui_file_as_string, ui_file_as_string): Delete.
15462 (do_ui_file_obsavestring, ui_file_obsavestring): Delete.
15463 (struct mem_file): Delete.
15464 (mem_file_new): Delete.
15465 (stdio_file::stdio_file): New.
15466 (mem_file_delete): Delete.
15467 (stdio_file::stdio_file): New.
15468 (mem_fileopen): Delete.
15469 (stdio_file::~stdio_file): New.
15470 (mem_file_rewind): Delete.
15471 (stdio_file::set_stream): New.
15472 (mem_file_put): Delete.
15473 (stdio_file::open): New.
15474 (mem_file_write): Delete.
15475 (stdio_file_magic, struct stdio_file): Delete.
15476 (stdio_file_new, stdio_file_delete, stdio_file_flush): Delete.
15477 (stdio_file::flush): New.
15478 (stdio_file_read): Rename to ...
15479 (stdio_file::read): ... this. Adjust.
15480 (stdio_file_write): Rename to ...
15481 (stdio_file::write): ... this. Adjust.
15482 (stdio_file_write_async_safe): Rename to ...
15483 (stdio_file::write_async_safe) ... this. Adjust.
15484 (stdio_file_fputs): Rename to ...
15485 (stdio_file::puts) ... this. Adjust.
15486 (stdio_file_isatty): Delete.
15487 (stdio_file_fseek): Delete.
15488 (stdio_file::isatty): New.
15489 (stderr_file_write): Rename to ...
15490 (stderr_file::write) ... this. Adjust.
15491 (stderr_file_fputs): Rename to ...
15492 (stderr_file::puts) ... this. Adjust.
15493 (stderr_fileopen, stdio_fileopen, gdb_fopen): Delete.
15494 (stderr_file::stderr_file): New.
15495 (tee_file_magic): Delete.
15496 (struct tee_file): Delete.
15497 (tee_file::tee_file): New.
15498 (tee_file_new): Delete.
15499 (tee_file::~tee_file): New.
15500 (tee_file_delete): Delete.
15501 (tee_file_flush): Rename to ...
15502 (tee_file::flush): ... this. Adjust.
15503 (tee_file_write): Rename to ...
15504 (tee_file::write): ... this. Adjust.
15505 (tee_file::write_async_safe): New.
15506 (tee_file_fputs): Rename to ...
15507 (tee_file::puts): ... this. Adjust.
15508 (tee_file_isatty): Rename to ...
15509 (tee_file::isatty): ... this. Adjust.
15510 * ui-file.h (struct obstack, struct ui_file): Don't
15511 forward-declare.
15512 (ui_file_new, ui_file_flush_ftype, set_ui_file_flush)
15513 (ui_file_write_ftype)
15514 (set_ui_file_write, ui_file_fputs_ftype, set_ui_file_fputs)
15515 (ui_file_write_async_safe_ftype, set_ui_file_write_async_safe)
15516 (ui_file_read_ftype, set_ui_file_read, ui_file_isatty_ftype)
15517 (set_ui_file_isatty, ui_file_rewind_ftype, set_ui_file_rewind)
15518 (ui_file_put_method_ftype, ui_file_put_ftype, set_ui_file_put)
15519 (ui_file_delete_ftype, set_ui_file_data, ui_file_fseek_ftype)
15520 (set_ui_file_fseek): Delete.
15521 (ui_file_data, ui_file_delete, ui_file_rewind)
15522 (struct ui_file): New.
15523 (ui_file_up): New.
15524 (class null_file): New.
15525 (null_stream): Declare.
15526 (ui_file_write_for_put, ui_file_put): Delete.
15527 (ui_file_xstrdup, ui_file_as_string, ui_file_obsavestring):
15528 Delete.
15529 (ui_file_fseek, mem_fileopen, stdio_fileopen, stderr_fileopen)
15530 (gdb_fopen, tee_file_new): Delete.
15531 (struct string_file): New.
15532 (struct stdio_file): New.
15533 (stdio_file_up): New.
15534 (struct stderr_file): New.
15535 (class tee_file): New.
15536 * ui-out.c (ui_out::field_stream): Take a 'string_file &' instead
15537 of a 'ui_file *'. Adjust.
15538 * ui-out.h (class ui_out) <field_stream>: Likewise.
15539 * utils.c (do_ui_file_delete, make_cleanup_ui_file_delete)
15540 (null_stream): Delete.
15541 (error_stream): Take a 'string_file &' instead of a 'ui_file *'.
15542 Adjust.
15543 * utils.h (struct ui_file): Delete forward declaration..
15544 (make_cleanup_ui_file_delete, null_stream): Delete declarations.
15545 (error_stream): Take a 'string_file &' instead of a
15546 'ui_file *'.
15547 * varobj.c (varobj_value_get_print_value): Use string_file.
15548 * xtensa-tdep.c (xtensa_verify_config): Use string_file.
15549 * gdbarch.c: Regenerate.
15550
15551 2017-02-02 Pedro Alves <palves@redhat.com>
15552
15553 * disasm.c (gdb_disassembler::pretty_print_insn): Rename to...
15554 (gdb_pretty_print_insn): ... this. Now a free function. Add back
15555 a 'gdbarch' parameter. Allocate a mem_fileopen stream here.
15556 Adjust to call gdb_print_insn instead of
15557 gdb_disassembler::print_insn.
15558 (dump_insns, do_mixed_source_and_assembly_deprecated)
15559 (do_mixed_source_and_assembly, do_assembly_only): Add back a
15560 'gdbarch' parameter. Remove gdb_disassembler parameter.
15561 (gdb_disassembly): Don't allocate a gdb_disassembler here.
15562 * disasm.h (gdb_disassembler::pretty_print_insn): Delete
15563 declaration.
15564 (gdb_pretty_print_insn): Re-add declaration.
15565 * record-btrace.c (btrace_insn_history): Don't allocate a
15566 gdb_disassembler here. Adjust to call gdb_pretty_print_insn.
15567
15568 2017-02-01 Simon Marchi <simon.marchi@polymtl.ca>
15569
15570 * disasm.h (gdb_disassembly): Remove file_string parameter.
15571 * disasm.c (gdb_disassembly): Likewise.
15572 * cli/cli-cmds.c (print_disassembly): Adapt.
15573 * mi/mi-cmd-disas.c (mi_cmd_disassemble): Likewise.
15574 * stack.c (do_gdb_disassembly): Likewise.
15575
15576 2017-02-01 Andreas Arnez <arnez@linux.vnet.ibm.com>
15577
15578 * dwarf2loc.c (dwarf2_evaluate_loc_desc_full): For
15579 DWARF_VALUE_LITERAL, no longer ignore the offset on big-endian
15580 targets. And if the implicit value is longer than needed, extract
15581 the first bytes instead of the "least significant" ones.
15582
15583 2017-02-01 Markus Metzger <markus.t.metzger@intel.com>
15584
15585 * btrace.c (btrace_enable): Do not call btrace_add_pc for
15586 BTRACE_FORMAT_PT or if can_access_registers_ptid returns false.
15587 (btrace_fetch): Assert can_access_registers_ptid.
15588 * record-btrace.c (require_btrace_thread, record_btrace_info): Call
15589 validate_registers_access.
15590
15591 2017-02-01 Markus Metzger <markus.t.metzger@intel.com>
15592
15593 * gdbthread.h (can_access_registers_ptid): New.
15594 * thread.c (can_access_registers_ptid): New.
15595
15596 2017-02-01 Pedro Alves <palves@redhat.com>
15597
15598 * i386-tdep.c (i386_fast_tracepoint_valid_at): Use gdb_insn_length.
15599
15600 2017-01-31 Pedro Alves <palves@redhat.com>
15601
15602 * mi/mi-interp.c (mi_breakpoint_created, mi_breakpoint_modified):
15603 Fix typos.
15604
15605 2017-01-31 Pedro Alves <palves@redhat.com>
15606
15607 * stack.c (print_frame_args): Remove local mem_fileopen stream,
15608 not used.
15609
15610 2017-01-31 Pedro Alves <palves@redhat.com>
15611
15612 * varobj.c (varobj_value_get_print_value): Remove xstrdup call.
15613
15614 2017-01-31 Pedro Alves <palves@redhat.com>
15615
15616 * common/scoped_restore.h
15617 (scoped_restore_tmpl::scoped_restore_tmpl): Template on T2, and
15618 change the value's parameter type to T2.
15619 (make_scoped_restore): Likewise.
15620
15621 2017-01-27 Walfred Tedeschi <walfred.tedeschi@intel.com>
15622 Richard Henderson <rth@redhat.com>
15623
15624 * amd64-linux-nat.c (PTRACE_ARCH_PRCTL): New define.
15625 (amd64_linux_fetch_inferior_registers): Add case to fetch FS_BASE
15626 GS_BASE for older kernels.
15627 (amd64_linux_store_inferior_registers): Add case to store FS_BASE
15628 GS_BASE for older kernels.
15629 * amd64-linux-tdep.c (amd64_linux_gregset_reg_offset): Add FS_BASE
15630 and GS_BASE to the offset table.
15631 (amd64_linux_register_reggroup_p): Add FS_BASE and GS_BASE to the
15632 system register group.
15633 * amd64-nat.c (amd64_native_gregset_reg_offset): Implements case
15634 for older kernels.
15635 * amd64-tdep.c (amd64_init_abi): Add segment registers for the
15636 amd64 ABI.
15637 * amd64-tdep.h (amd64_regnum): Add AMD64_FSBASE_REGNUM and
15638 AMD64_GSBASE_REGNUM.
15639 (AMD64_NUM_REGS): Set to AMD64_GSBASE_REGNUM + 1.
15640 * features/Makefile (amd64-linux.dat, amd64-avx-linux.dat)
15641 (amd64-mpx-linux.dat, amd64-avx512-linux.dat, x32-linux.dat)
15642 (x32-avx-linux.dat, x32-avx512-linux.dat): Add
15643 i386/64bit-segments.xml in those rules.
15644 * features/i386/64bit-segments.xml: New file.
15645 * features/i386/amd64-avx-mpx-linux.xml: Add 64bit-segments.xml.
15646 * features/i386/amd64-avx-linux.xml: Add 64bit-segments.xml.
15647 * features/i386/amd64-avx512-linux.xml: Add 64bit-segments.xml.
15648 * features/i386/amd64-mpx-linux.xml: Add 64bit-segments.xml.
15649 * features/i386/x32-avx512-linux.xml: Add 64bit-segments.xml.
15650 * features/i386/x32-avx-linux.xml: Add 64bit-segments.xml.
15651 * features/i386/amd64-linux.xml: Add 64bit-segments.xml.
15652 * features/i386/amd64-avx-linux.c: Regenerated.
15653 * features/i386/amd64-avx-mpx-linux.c: Regenerated.
15654 * features/i386/amd64-avx-mpx.c: Regenerated.
15655 * features/i386/amd64-avx512-linux.c: Regenerated.
15656 * features/i386/amd64-linux.c: Regenerated.
15657 * features/i386/amd64-mpx-linux.c: Regenerated.
15658 * features/i386/i386-avx-mpx-linux.c: Regenerated.
15659 * features/i386/i386-avx-mpx.c: Regenerated.
15660 * features/i386/x32-avx-linux.c: Regenerated.
15661 * features/i386/x32-avx512-linux.c: Regenerated.
15662 * regformats/i386/amd64-avx-linux.dat: Regenerated.
15663 * regformats/i386/amd64-avx-mpx-linux.dat: Regenerated.
15664 * regformats/i386/amd64-avx512-linux.dat: Regenerated.
15665 * regformats/i386/amd64-linux.dat: Regenerated.
15666 * regformats/i386/amd64-mpx-linux.dat: Regenerated.
15667 * regformats/i386/x32-avx-linux.dat: Regenerated.
15668 * regformats/i386/x32-avx512-linux.dat: Regenerated.
15669 * regformats/i386/x32-linux.dat: Regenerated.
15670
15671 2017-01-27 Walfred Tedeschi <walfred.tedeschi@intel.com>
15672
15673 * amd64-linux-tdep.h (AMD64_LINUX_ORIG_RAX_REGNUM):
15674 Set to AMD64_NUM_REGS.
15675
15676 2017-01-27 Walfred Tedeschi <walfred.tedeschi@intel.com>
15677
15678 * amd64-nat.c (amd64_native_gregset_reg_offset): Simplify logic
15679 that checks validity of a register number.
15680
15681 2017-01-27 Kees Cook <keescook@google.com>
15682
15683 * gdb/arm-linux-nat.c (arm_linux_fetch_inferior_registers): Call
15684 fetch_fpregs if target has fpa registers.
15685 (arm_linux_store_inferior_registers): Call store_fpregs if target
15686 has fpa registers.
15687
15688 2017-01-26 Andreas Arnez <arnez@linux.vnet.ibm.com>
15689
15690 * cris-tdep.c (cris_gdbarch_init): Remove check for
15691 info.byte_order and force it to BFD_ENDIAN_LITTLE.
15692
15693 2017-01-26 Antoine Tremblay <antoine.tremblay@ericsson.com>
15694
15695 * corelow.c (get_core_register_section): Check for regset
15696 existence before checking for REGSET_VARIABLE_SIZE.
15697
15698 2017-01-26 Yao Qi <yao.qi@linaro.org>
15699 Pedro Alves <palves@redhat.com>
15700
15701 PR gdb/20939
15702 * disasm.c (gdb_disassembler::dis_asm_memory_error): Don't
15703 call memory_error, save memaddr instead.
15704 (gdb_disassembler::print_insn): If gdbarch_print_insn returns
15705 negative, cal memory_error.
15706 * disasm.h (gdb_disassembler) <m_err_memaddr>: New field.
15707
15708 2017-01-26 Yao Qi <yao.qi@linaro.org>
15709
15710 * disasm-selftests.c (memory_error_test): New function.
15711 (_initialize_disasm_selftests): Register memory_error_test.
15712
15713 2017-01-26 Yao Qi <yao.qi@linaro.org>
15714
15715 * Makefile.in (SFILES): Add disasm-selftests.c and
15716 selftest-arch.c.
15717 (COMMON_OBS): Add disasm-selftests.o and selftest-arch.o.
15718 * disasm-selftests.c: New file.
15719 * selftest-arch.c: New file.
15720 * selftest-arch.h: New file.
15721
15722 2017-01-26 Yao Qi <yao.qi@linaro.org>
15723
15724 * mep-tdep.c (mep_gdb_print_insn): Set info->arch
15725 to bfd_arch_mep. Don't return 0 if section is not
15726 found. Call print_insn_mep.
15727
15728 2017-01-26 Pedro Alves <palves@redhat.com>
15729 Yao Qi <yao.qi@linaro.org>
15730
15731 * arm-tdep.c: Include "disasm.h".
15732 (gdb_print_insn_arm): Update code to get gdbarch.
15733 * disasm.c (dis_asm_read_memory): Change it to
15734 gdb_disassembler::dis_asm_read_memory.
15735 (dis_asm_memory_error): Likewise.
15736 (dis_asm_print_address): Likewise.
15737 (gdb_pretty_print_insn): Change it to
15738 gdb_disassembler::pretty_print_insn.
15739 (dump_insns): Add one argument gdb_disassemlber. All
15740 callers updated.
15741 (do_mixed_source_and_assembly_deprecated): Likewise.
15742 (do_mixed_source_and_assembly): Likewise.
15743 (do_assembly_only): Likewise.
15744 (gdb_disassembler::gdb_disassembler): New.
15745 (gdb_disassembler::print_insn): New.
15746 * disasm.h (class gdb_disassembler): New.
15747 (gdb_pretty_print_insn): Remove declaration.
15748 (gdb_disassemble_info): Likewise.
15749 * guile/scm-disasm.c (class gdbscm_disassembler): New.
15750 (gdbscm_disasm_read_memory_worker): Update.
15751 (gdbscm_disasm_read_memory): Update.
15752 (gdbscm_disasm_memory_error): Remove.
15753 (gdbscm_disasm_print_address): Remove.
15754 (gdbscm_disassembler::gdbscm_disassembler): New.
15755 (gdbscm_print_insn_from_port): Update.
15756 * mips-tdep.c: Include disasm.h.
15757 (gdb_print_insn_mips): Update code to get gdbarch.
15758 * record-btrace.c (btrace_insn_history): Update.
15759 * spu-tdep.c: Include disasm.h.
15760 (struct spu_dis_asm_data): Remove.
15761 (struct spu_dis_asm_info): New.
15762 (spu_dis_asm_print_address): Use spu_dis_asm_info to get
15763 SPU id.
15764 (gdb_print_insn_spu): Cast disassemble_info to
15765 spu_dis_asm_info.
15766
15767 2017-01-26 Yao Qi <yao.qi@linaro.org>
15768
15769 * disasm.c (do_ui_file_delete): Delete.
15770 (gdb_insn_length): Move code creating stream to ...
15771 * utils.c (null_stream): ... here. New function.
15772 * utils.h (null_stream): Declare.
15773
15774 2017-01-23 Simon Marchi <simon.marchi@polymtl.ca>
15775
15776 * python/py-inferior.c (find_thread_object): Return directly
15777 from the loop. Remove "found" variable.
15778
15779 2017-01-21 Joel Brobecker <brobecker@adacore.com>
15780
15781 GDB 7.12.1 released.
15782
15783 2017-01-20 Simon Marchi <simon.marchi@ericsson.com>
15784
15785 * python/py-function.c (fnpy_call): Reorder declarations to have
15786 the gdbpy_enter object declared first.
15787 * python/py-xmethods.c (gdbpy_get_xmethod_arg_types): Likewise.
15788
15789 2017-01-20 Simon Marchi <simon.marchi@ericsson.com>
15790
15791 PR python/21068
15792 * python/python-internal.h (PyMem_RawMalloc): Define for
15793 Python < 3.4.
15794 * python/py-gdb-readline.c (gdbpy_readline_wrapper): Use
15795 PyMem_RawMalloc instead of PyMem_Malloc.
15796
15797 2017-01-20 Mike Wrighton <mike_wrighton@codesourcery.com>
15798 Luis Machado <lgustavo@codesourcery.com>
15799
15800 * NEWS (New commands): Mention flash-erase.
15801 (New MI commands): Mention target-flash-erase.
15802 * mi/mi-cmds.c (mi_cmd_target_flash_erase): Add target-flash-erase MI
15803 command.
15804 * mi/mi-cmds.h (mi_cmd_target_flash_erase): New declaration.
15805 * mi/mi-main.c (mi_cmd_target_flash_erase): New function.
15806 * target.c (flash_erase_command): New function.
15807 (initialize_targets): Add new flash-erase command.
15808 * target.h (flash_erase_command): New declaration.
15809
15810 2017-01-20 Joel Brobecker <brobecker@adacore.com>
15811
15812 * nat/linux-ptrace.c: Only include <sys/procfs.h> if
15813 HAVE_SYS_PROCFS_H is defined.
15814
15815 2017-01-18 Alan Hayward <alan.hayward@arm.com>
15816
15817 * remote.c (struct cached_reg): Change data into a pointer.
15818 * (stop_reply_dtr): Free data pointers before deleting vector.
15819 (process_stop_reply): Likewise.
15820 (remote_parse_stop_reply): Allocate space for data
15821
15822 2017-01-18 Alan Hayward <alan.hayward@arm.com>
15823
15824 * amd64-tdep.c (amd64_pseudo_register_read_value): remove
15825 MAX_REGISTER_SIZE.
15826 (amd64_pseudo_register_read_value): Likewise.
15827 * remote.c (fetch_register_using_p): Remove MAX_REGISTER_SIZE.
15828 (store_register_using_P): Likewise.
15829 * regcache.c (regcache_xfer_part): Likewise.
15830
15831 2017-01-16 Ivo Raisr <ivo.raisr@oracle.com>
15832
15833 Split real and pseudo registers.
15834 * sparc-tdep.h (SPARC_CORE_REGISTERS): New macro.
15835 (sparc32_pseudo_regnum): New enum.
15836 * sparc64-tdep.h (sparc64_pseudo_regnum): New enum.
15837 * sparc-tdep.c (SPARC32_FPU_REGISTERS): New macro.
15838 (SPARC32_CP0_REGISTERS): New macro.
15839 (sparc32_pseudo_register_name): New function.
15840 (sparc32_register_name): Use sparc32_pseudo_register_name.
15841 (sparc32_pseudo_register_type): New function.
15842 (sparc32_register_type): Use sparc32_pseudo_register_type.
15843 (sparc32_pseudo_register_read, sparc32_pseudo_register_write): Handle
15844 pseudo register numbers.
15845 * sparc64-tdep.c SPARC64_FPU_REGISTERS): New macro.
15846 (SPARC64_CP0_REGISTERS): New macro.
15847 (sparc64_pseudo_register_name): New function.
15848 (sparc64_register_name): Use sparc64_pseudo_register_name.
15849 (sparc64_pseudo_register_type): New function.
15850 (sparc64_register_type): Use sparc64_pseudo_register_type.
15851 (sparc64_pseudo_register_read, sparc64_pseudo_register_write): Handle
15852 pseudo register numbers.
15853 (sparc64_store_floating_fields, sparc64_extract_floating_fields,
15854 sparc64_store_arguments): Handle pseudo register numbers.
15855
15856 2017-01-13 Yao Qi <yao.qi@linaro.org>
15857
15858 * remote.c (REMOTE_DEBUG_MAX_CHAR): New macro.
15859 (putpkt_binary): Print only REMOTE_DEBUG_MAX_CHAR chars in debug
15860 output.
15861 (getpkt_or_notif_sane_1): Likewise.
15862
15863 2017-01-13 Yao Qi <yao.qi@linaro.org>
15864
15865 * Makefile.in (checker-headers): Use CXX and CXX_DIALET instead
15866 of CC. Pass "-x c++-header" instead of "-x c".
15867
15868 2017-01-12 Simon Marchi <simon.marchi@ericsson.com>
15869
15870 * remote.c (remote_can_async_p): Update comment.
15871
15872 2017-01-12 Simon Marchi <simon.marchi@ericsson.com>
15873
15874 * linux-nat.c (linux_nat_can_async_p): Update comment.
15875
15876 2017-01-12 Simon Marchi <simon.marchi@ericsson.com>
15877
15878 * serial.c (serial_open): Forget about "pc" and "lpt" serial interface.
15879
15880 2017-01-11 Simon Marchi <simon.marchi@ericsson.com>
15881
15882 * cli/cli-decode.c (lookup_cmd_1): Fix typo in comment.
15883
15884 2017-01-10 Tom Tromey <tom@tromey.com>
15885
15886 * python/py-type.c (typy_legacy_template_argument): Update.
15887 * cp-support.h (struct demangle_parse_info) (demangle_parse_info,
15888 ~demangle_parse_info): Declare new members.
15889 (cp_demangled_name_to_comp): Return unique_ptr.
15890 (cp_demangled_name_parse_free)
15891 (make_cleanup_cp_demangled_name_parse_free)
15892 (cp_new_demangle_parse_info): Remove.
15893 * cp-support.c (do_demangled_name_parse_free_cleanup)
15894 (make_cleanup_cp_demangled_name_parse_free): Remove.
15895 (inspect_type, cp_canonicalize_string_full)
15896 (cp_canonicalize_string): Update.
15897 (mangled_name_to_comp): Change return type.
15898 (cp_class_name_from_physname, method_name_from_physname)
15899 (cp_func_name, cp_remove_params): Update.
15900 * cp-name-parser.y (demangle_parse_info): New constructor, from
15901 cp_new_demangle_parse_info.
15902 (~demangle_parse_info): New destructor, from
15903 cp_demangled_name_parse_free.
15904 (cp_merge_demangle_parse_infos): Update.
15905 (cp_demangled_name_to_comp): Change return type.
15906
15907 2017-01-10 Tom Tromey <tom@tromey.com>
15908
15909 * top.c (prevent_dont_repeat): Change return type.
15910 * python/python.c (execute_gdb_command): Use std::string.
15911 Update.
15912 * guile/guile.c (gdbscm_execute_gdb_command): Update.
15913 * command.h (prevent_dont_repeat): Change return type.
15914 * breakpoint.c (bpstat_do_actions_1): Update.
15915
15916 2017-01-10 Tom Tromey <tom@tromey.com>
15917
15918 * value.h (scoped_value_mark::~scoped_value_mark): Call
15919 free_to_mark.
15920 (scoped_value_mark::free_to_mark): New method.
15921 * dwarf2loc.c (dwarf2_evaluate_loc_desc_full): Use
15922 scoped_value_mark.
15923
15924 2017-01-10 Tom Tromey <tom@tromey.com>
15925
15926 * python/py-value.c (valpy_dereference, valpy_referenced_value)
15927 (valpy_reference_value, valpy_const_value, valpy_get_address)
15928 (valpy_get_dynamic_type, valpy_lazy_string, valpy_do_cast)
15929 (valpy_getitem, valpy_call, valpy_binop_throw, valpy_negative)
15930 (valpy_absolute, valpy_richcompare_throw): Use scoped_value_mark.
15931 * dwarf2loc.c (dwarf2_loc_desc_get_symbol_read_needs): Use
15932 scoped_value_mark.
15933 * dwarf2-frame.c (execute_stack_op): Use scoped_value_mark.
15934 * value.h (scoped_value_mark): New class.
15935
15936 2017-01-10 Tom Tromey <tom@tromey.com>
15937
15938 * dwarf2read.c (dwarf2_build_psymtabs): Use psymtab_discarder.
15939 * psympriv.h (make_cleanup_discard_psymtabs): Don't declare.
15940 * psymtab.c (discard_psymtabs_upto): Remove.
15941 (make_cleanup_discard_psymtabs): Remove.
15942 (struct psymtab_state): Remove.
15943
15944 2017-01-10 Tom Tromey <tom@tromey.com>
15945
15946 * record-full.c (record_full_save_cleanups): Remove.
15947 (record_full_save): Use gdb::unlinker.
15948 * gcore.c (do_bfd_delete_cleanup): Remove.
15949 (gcore_command): Use gdb::unlinker, unique_xmalloc_ptr. Remove
15950 cleanups.
15951 * dwarf2read.c (unlink_if_set): Remove.
15952 (write_psymtabs_to_index): Use gdb::unlinker.
15953 * common/gdb_unlinker.h: New file.
15954
15955 2017-01-10 Tom Tromey <tom@tromey.com>
15956
15957 * windows-tdep.c (windows_xfer_shared_library): Update.
15958 * windows-nat.c (windows_make_so): Update.
15959 * utils.h (make_cleanup_bfd_unref): Remove.
15960 * utils.c (do_bfd_close_cleanup, make_cleanup_bfd_unref): Remove.
15961 * symfile.h (symfile_bfd_open)
15962 (find_separate_debug_file_in_section): Return gdb_bfd_ref_ptr.
15963 * symfile.c (read_symbols, symbol_file_add)
15964 (separate_debug_file_exists): Update.
15965 (symfile_bfd_open): Return gdb_bfd_ref_ptr.
15966 (generic_load, reread_symbols): Update.
15967 * symfile-mem.c (symbol_file_add_from_memory): Update.
15968 * spu-linux-nat.c (spu_bfd_open): Return gdb_bfd_ref_ptr.
15969 (spu_symbol_file_add_from_memory): Update.
15970 * solist.h (struct target_so_ops) <bfd_open>: Return
15971 gdb_bfd_ref_ptr.
15972 (solib_bfd_fopen, solib_bfd_open): Return gdb_bfd_ref_ptr.
15973 * solib.c (solib_bfd_fopen, solib_bfd_open): Return
15974 gdb_bfd_ref_ptr.
15975 (solib_map_sections, reload_shared_libraries_1): Update.
15976 * solib-svr4.c (enable_break): Update.
15977 * solib-spu.c (spu_bfd_fopen): Return gdb_bfd_ref_ptr.
15978 * solib-frv.c (enable_break2): Update.
15979 * solib-dsbt.c (enable_break): Update.
15980 * solib-darwin.c (gdb_bfd_mach_o_fat_extract): Return
15981 gdb_bfd_ref_ptr.
15982 (darwin_solib_get_all_image_info_addr_at_init): Update.
15983 (darwin_bfd_open): Return gdb_bfd_ref_ptr.
15984 * solib-aix.c (solib_aix_bfd_open): Return gdb_bfd_ref_ptr.
15985 * record-full.c (record_full_save): Update.
15986 * python/py-objfile.c (objfpy_add_separate_debug_file): Update.
15987 * procfs.c (insert_dbx_link_bpt_in_file): Update.
15988 * minidebug.c (find_separate_debug_file_in_section): Return
15989 gdb_bfd_ref_ptr.
15990 * machoread.c (macho_add_oso_symfile): Change abfd to
15991 gdb_bfd_ref_ptr.
15992 (macho_symfile_read_all_oso): Update.
15993 (macho_check_dsym): Return gdb_bfd_ref_ptr.
15994 (macho_symfile_read): Update.
15995 * jit.c (bfd_open_from_target_memory): Return gdb_bfd_ref_ptr.
15996 (jit_bfd_try_read_symtab): Update.
15997 * gdb_bfd.h (gdb_bfd_open, gdb_bfd_fopen, gdb_bfd_openr)
15998 (gdb_bfd_openw, gdb_bfd_openr_iovec)
15999 (gdb_bfd_openr_next_archived_file, gdb_bfd_fdopenr): Return
16000 gdb_bfd_ref_ptr.
16001 (gdb_bfd_ref_policy): New struct.
16002 (gdb_bfd_ref_ptr): New typedef.
16003 * gdb_bfd.c (gdb_bfd_open, gdb_bfd_fopen, gdb_bfd_openr)
16004 (gdb_bfd_openw, gdb_bfd_openr_iovec)
16005 (gdb_bfd_openr_next_archived_file, gdb_bfd_fdopenr): Return
16006 gdb_bfd_ref_ptr.
16007 * gcore.h (create_gcore_bfd): Return gdb_bfd_ref_ptr.
16008 * gcore.c (create_gcore_bfd): Return gdb_bfd_ref_ptr.
16009 (gcore_command): Update.
16010 * exec.c (exec_file_attach): Update.
16011 * elfread.c (elf_symfile_read): Update.
16012 * dwarf2read.c (dwarf2_get_dwz_file): Update.
16013 (try_open_dwop_file, open_dwo_file): Return gdb_bfd_ref_ptr.
16014 (open_and_init_dwo_file): Update.
16015 (open_dwp_file): Return gdb_bfd_ref_ptr.
16016 (open_and_init_dwp_file): Update.
16017 * corelow.c (core_open): Update.
16018 * compile/compile-object-load.c (compile_object_load): Update.
16019 * common/gdb_ref_ptr.h (ref_ptr::operator->): New operator.
16020 * coffread.c (coff_symfile_read): Update.
16021 * cli/cli-dump.c (bfd_openr_or_error, bfd_openw_or_error): Return
16022 gdb_bfd_ref_ptr. Rename.
16023 (dump_bfd_file, restore_command): Update.
16024 * build-id.h (build_id_to_debug_bfd): Return gdb_bfd_ref_ptr.
16025 * build-id.c (build_id_to_debug_bfd): Return gdb_bfd_ref_ptr.
16026 (find_separate_debug_file_by_buildid): Update.
16027
16028 2017-01-10 Tom Tromey <tom@tromey.com>
16029
16030 * common/gdb_ref_ptr.h: New file.
16031 * python/py-ref.h (struct gdbpy_ref_policy): New.
16032 (gdbpy_ref): Now a typedef.
16033
16034 2017-01-10 Tom Tromey <tom@tromey.com>
16035
16036 * utils.h (make_cleanup_htab_delete): Don't declare.
16037 * utils.c (do_htab_delete_cleanup, make_cleanup_htab_delete):
16038 Remove.
16039 * linespec.c (decode_compound_collector): Add constructor,
16040 destructor.
16041 (lookup_prefix_sym): Remove cleanup.
16042 (symtab_collector): Add constructor, destructor.
16043 (collect_symtabs_from_filename): Remove cleanup.
16044 * disasm.c (do_mixed_source_and_assembly): Use htab_up.
16045 * compile/compile-c-symbols.c (generate_c_for_variable_locations):
16046 Use htab_up.
16047 * gnu-v3-abi.c (gnuv3_print_vtable): Use htab_up.
16048 * dwarf2read.c (dw2_expand_symtabs_matching)
16049 (dw2_map_symbol_filenames, dwarf_decode_macros)
16050 (write_psymtabs_to_index): Use htab_up.
16051 * dwarf2loc.c (func_verify_no_selftailcall)
16052 (call_site_find_chain_1, func_verify_no_selftailcall)
16053 (chain_candidate, call_site_find_chain_1): Use std::unordered_set,
16054 std::vector, gdb::unique_xmalloc_ptr.
16055 (call_sitep): Remove typedef.
16056 (dwarf2_locexpr_baton_eval): Remove unused variable.
16057
16058 2017-01-10 Tom Tromey <tom@tromey.com>
16059
16060 * python/python-internal.h (make_cleanup_py_decref)
16061 (make_cleanup_py_xdecref): Don't declare.
16062 * python/py-utils.c (py_decref, make_cleanup_py_decref)
16063 (py_xdecref, make_cleanup_py_xdecref): Remove.
16064
16065 2017-01-10 Tom Tromey <tom@tromey.com>
16066
16067 * python/py-framefilter.c (py_mi_print_variables): Use gdbpy_ref.
16068 (py_print_locals, enumerate_locals, py_print_args): Use gdbpy_ref.
16069
16070 2017-01-10 Tom Tromey <tom@tromey.com>
16071
16072 * python/py-framefilter.c (enumerate_args): Use gdbpy_ref.
16073
16074 2017-01-10 Tom Tromey <tom@tromey.com>
16075
16076 * python/py-utils.c (unicode_to_encoded_string)
16077 (python_string_to_target_string)
16078 (python_string_to_target_python_string)
16079 (python_string_to_host_string, gdbpy_obj_to_string)
16080 (get_addr_from_python): Use gdbpy_ref.
16081
16082 2017-01-10 Tom Tromey <tom@tromey.com>
16083
16084 * python/py-unwind.c (pyuw_object_attribute_to_pointer): Use
16085 gdbpy_ref.
16086
16087 2017-01-10 Tom Tromey <tom@tromey.com>
16088
16089 * python/python.c (eval_python_command, gdbpy_decode_line)
16090 (gdbpy_run_events, gdbpy_start_type_printers)
16091 (gdbpy_apply_type_printers): Use gdbpy_ref.
16092
16093 2017-01-10 Tom Tromey <tom@tromey.com>
16094
16095 * python/py-param.c (get_doc_string, compute_enum_values): Use
16096 gdbpy_ref.
16097
16098 2017-01-10 Tom Tromey <tom@tromey.com>
16099
16100 * python/py-inferior.c (find_thread_object, build_inferior_list):
16101 Use gdbpy_ref.
16102
16103 2017-01-10 Tom Tromey <tom@tromey.com>
16104
16105 * python/py-framefilter.c (py_print_frame): Use gdbpy_ref.
16106
16107 2017-01-10 Tom Tromey <tom@tromey.com>
16108
16109 * python/py-finishbreakpoint.c (bpfinishpy_out_of_scope): Use
16110 gdbpy_ref.
16111
16112 2017-01-10 Tom Tromey <tom@tromey.com>
16113
16114 * python/py-cmd.c (cmdpy_completer_helper): Use gdbpy_ref. Remove
16115 extra incref.
16116 (cmdpy_completer_handle_brkchars, cmdpy_completer, cmdpy_init):
16117 Use gdbpy_ref.
16118
16119 2017-01-10 Tom Tromey <tom@tromey.com>
16120
16121 * python/py-breakpoint.c (gdbpy_breakpoint_cond_says_stop): Use
16122 gdbpy_ref.
16123
16124 2017-01-10 Tom Tromey <tom@tromey.com>
16125
16126 * python/py-arch.c (archpy_disassemble): Use gdbpy_ref. Don't
16127 decref results of PyArg_ParseTupleAndKeywords.
16128
16129 2017-01-10 Tom Tromey <tom@tromey.com>
16130
16131 * python/python.c (python_run_simple_file): Use
16132 unique_xmalloc_ptr, gdbpy_ref.
16133
16134 2017-01-10 Tom Tromey <tom@tromey.com>
16135
16136 * python/py-prettyprint.c (print_stack_unless_memory_error)
16137 (print_string_repr, print_children): Use gdbpy_ref.
16138 (dummy_python_frame): New class.
16139 (dummy_python_frame::dummy_python_frame): Rename from
16140 push_dummy_python_frame.
16141 (py_restore_tstate): Remove.
16142
16143 2017-01-10 Tom Tromey <tom@tromey.com>
16144
16145 * python/py-framefilter.c (py_print_frame): Use gdbpy_ref.
16146
16147 2017-01-10 Tom Tromey <tom@tromey.com>
16148
16149 * python/python.c (ensure_python_env, restore_python_env):
16150 Remove.
16151 * python/python-internal.h (ensure_python_env): Don't declare.
16152 * varobj.h (varobj_ensure_python_env): Don't declare.
16153 * varobj.c (varobj_ensure_python_env): Remove.
16154
16155 2017-01-10 Tom Tromey <tom@tromey.com>
16156
16157 * varobj.c (varobj_value_get_print_value): Use
16158 gdbpy_enter_varobj.
16159
16160 2017-01-10 Tom Tromey <tom@tromey.com>
16161
16162 * python/py-prettyprint.c (print_string_repr, print_children):
16163 Update.
16164 * python/py-lazy-string.c (gdbpy_extract_lazy_string): Change type
16165 of "encoding".
16166 * varobj.c (varobj_value_get_print_value): Update.
16167 * python/python-internal.h (gdbpy_extract_lazy_string): Update.
16168
16169 2017-01-10 Tom Tromey <tom@tromey.com>
16170
16171 * varobj.c (varobj_get_display_hint)
16172 (dynamic_varobj_has_child_method, install_new_value_visualizer)
16173 (varobj_set_visualizer, free_variable): Use
16174 gdbpy_enter_varobj.
16175
16176 2017-01-10 Tom Tromey <tom@tromey.com>
16177
16178 * python/python.c (python_command): Use gdbpy_enter, gdbpy_ref.
16179 (do_finish_initialization): New function. Use gdbpy_ref.
16180 (gdbpy_finish_initialization): Use gdbpy_enter. Call
16181 do_finish_initialization.
16182
16183 2017-01-10 Tom Tromey <tom@tromey.com>
16184
16185 * python/py-param.c (get_set_value, get_show_value): Use
16186 gdbpy_enter, gdbpy_ref.
16187
16188 2017-01-10 Tom Tromey <tom@tromey.com>
16189
16190 * python/py-function.c (fnpy_call): Use gdbpy_enter, gdbpy_ref.
16191
16192 2017-01-10 Tom Tromey <tom@tromey.com>
16193
16194 * python/py-cmd.c (cmdpy_function): Use gdbpy_enter, gdbpy_ref.
16195
16196 2017-01-10 Tom Tromey <tom@tromey.com>
16197
16198 * python/py-varobj.c (py_varobj_iter_dtor, py_varobj_iter_next):
16199 Use gdbpy_enter_varobj.
16200
16201 2017-01-10 Tom Tromey <tom@tromey.com>
16202
16203 * varobj.c (gdbpy_enter_varobj): New constructor.
16204 * python/python-internal.h (gdbpy_enter_varobj): New class.
16205 * python/py-varobj.c (py_varobj_get_iterator): Use
16206 gdbpy_enter_varobj.
16207
16208 2017-01-10 Tom Tromey <tom@tromey.com>
16209
16210 * python/py-xmethods.c (gdbpy_get_xmethod_result_type): Use
16211 gdbpy_enter, gdbpy_ref, unique_xmalloc_ptr.
16212 (gdbpy_invoke_xmethod): Use gdbpy_ref, gdbpy_enter.
16213 (gdbpy_get_xmethod_arg_types): Use gdbpy_ref,
16214 unique_xmalloc_ptr.
16215 (gdbpy_get_xmethod_arg_types): Use gdbpy_ref, gdbpy_enter.
16216
16217 2017-01-10 Tom Tromey <tom@tromey.com>
16218
16219 * python/py-xmethods.c (invoke_match_method): Use
16220 gdbpy_ref.
16221
16222 2017-01-10 Tom Tromey <tom@tromey.com>
16223
16224 * python/py-xmethods.c (gdbpy_get_matching_xmethod_workers): use
16225 gdbpy_enter, gdbpy_ref.
16226
16227 2017-01-10 Tom Tromey <tom@tromey.com>
16228
16229 * python/python.c (python_interactive_command): Use gdbpy_enter.
16230
16231 2017-01-10 Tom Tromey <tom@tromey.com>
16232
16233 * python/python.c (gdbpy_before_prompt_hook): Use gdbpy_enter,
16234 gdbpy_ref.
16235
16236 2017-01-10 Tom Tromey <tom@tromey.com>
16237
16238 * python/py-prettyprint.c (gdbpy_apply_val_pretty_printer): Use
16239 gdbpy_enter, gdbpy_ref, unique_xmalloc_ptr.
16240
16241 2017-01-10 Tom Tromey <tom@tromey.com>
16242
16243 * utils.h (htab_deleter): New struct.
16244 (htab_up): New typedef.
16245 * python/py-framefilter.c (gdbpy_apply_frame_filter): Use
16246 gdbpy_enter, gdbpy_ref, htab_up.
16247
16248 2017-01-10 Tom Tromey <tom@tromey.com>
16249
16250 * python/py-unwind.c (pending_frame_invalidate): Remove.
16251 (pyuw_sniffer): Use gdbpy_enter and gdbpy_ref.
16252
16253 2017-01-10 Tom Tromey <tom@tromey.com>
16254
16255 * python/py-xmethods.c (gdbpy_free_xmethod_worker_data)
16256 (gdbpy_clone_xmethod_worker_data): Use gdbpy_enter.
16257
16258 2017-01-10 Tom Tromey <tom@tromey.com>
16259
16260 * python/py-type.c (save_objfile_types): Use gdbpy_enter.
16261
16262 2017-01-10 Tom Tromey <tom@tromey.com>
16263
16264 * python/python.c (gdbpy_eval_from_control_command)
16265 (gdbpy_source_script, gdbpy_run_events)
16266 (gdbpy_source_objfile_script, gdbpy_execute_objfile_script)
16267 (gdbpy_free_type_printers, gdbpy_finish_initialization): Use
16268 gdbpy_enter.
16269
16270 2017-01-10 Tom Tromey <tom@tromey.com>
16271
16272 * python/py-progspace.c (py_free_pspace): Use gdbpy_enter.
16273
16274 2017-01-10 Tom Tromey <tom@tromey.com>
16275
16276 * python/py-objfile.c (py_free_objfile): Use gdbpy_enter.
16277
16278 2017-01-10 Tom Tromey <tom@tromey.com>
16279
16280 * python/py-inferior.c (python_on_normal_stop, python_on_resume)
16281 (python_on_inferior_call_pre, python_on_inferior_call_post)
16282 (python_on_memory_change, python_on_register_change)
16283 (python_inferior_exit, python_new_objfile, add_thread_object)
16284 (delete_thread_object, py_free_inferior): Use gdbpy_enter.
16285
16286 2017-01-10 Tom Tromey <tom@tromey.com>
16287
16288 * python/py-finishbreakpoint.c (bpfinishpy_handle_stop)
16289 (bpfinishpy_handle_exit): Use gdbpy_enter.
16290
16291 2017-01-10 Tom Tromey <tom@tromey.com>
16292
16293 * python/py-cmd.c (cmdpy_destroyer)
16294 (cmdpy_completer_handle_brkchars, cmdpy_completer): Use
16295 gdbpy_enter.
16296
16297 2017-01-10 Tom Tromey <tom@tromey.com>
16298
16299 * python/py-breakpoint.c (gdbpy_breakpoint_cond_says_stop): Use
16300 gdbpy_enter.
16301 (gdbpy_breakpoint_has_cond): Likewise.
16302
16303 2017-01-10 Tom Tromey <tom@tromey.com>
16304
16305 * python/python.c (gdbpy_enter): New constructor.
16306 (~gdbpy_enter): New destructor.
16307 (restore_python_env, ensure_python_env): Rewrite.
16308 * python/python-internal.h (gdbpy_enter): New class.
16309
16310 2017-01-10 Tom Tromey <tom@tromey.com>
16311
16312 * python/py-symbol.c (gdbpy_lookup_symbol): Use gdbpy_ref.
16313
16314 2017-01-10 Tom Tromey <tom@tromey.com>
16315
16316 * python/py-value.c (value_has_field, get_field_flag)
16317 (get_field_type, valpy_getitem, convert_value_from_python): Use
16318 gdbpy_ref.
16319
16320 2017-01-10 Tom Tromey <tom@tromey.com>
16321
16322 * python/python.c (gdbpy_progspaces, gdbpy_objfiles): Use
16323 gdbpy_ref.
16324
16325 2017-01-10 Tom Tromey <tom@tromey.com>
16326
16327 * python/py-prettyprint.c (search_pp_list)
16328 (find_pretty_printer_from_objfiles)
16329 (find_pretty_printer_from_progspace)
16330 (find_pretty_printer_from_gdb, find_pretty_printer)
16331 (gdbpy_get_display_hint, gdbpy_get_varobj_pretty_printer): Use
16332 gdbpy_ref.
16333
16334 2017-01-10 Tom Tromey <tom@tromey.com>
16335
16336 * python/py-param.c (call_doc_function): Use gdbpy_ref.
16337
16338 2017-01-10 Tom Tromey <tom@tromey.com>
16339
16340 * python/py-linetable.c (build_line_table_tuple_from_pcs)
16341 (ltpy_get_all_source_lines): Use gdbpy_ref.
16342
16343 2017-01-10 Tom Tromey <tom@tromey.com>
16344
16345 * python/py-framefilter.c (extract_sym, extract_value)
16346 (get_py_iter_from_func, bootstrap_python_frame_filters): Use
16347 gdbpy_ref.
16348
16349 2017-01-10 Tom Tromey <tom@tromey.com>
16350
16351 * python/py-breakpoint.c (gdbpy_breakpoints): Use gdbpy_ref.
16352
16353 2017-01-10 Tom Tromey <tom@tromey.com>
16354
16355 * python/py-inferior.c (gdbpy_inferiors): Use gdbpy_ref.
16356
16357 2017-01-10 Tom Tromey <tom@tromey.com>
16358
16359 * python/py-function.c (convert_values_to_python, fnpy_init): Use
16360 gdbpy_ref.
16361
16362 2017-01-10 Tom Tromey <tom@tromey.com>
16363
16364 * python/py-cmd.c (gdbpy_string_to_argv): Use gdbpy_ref.
16365
16366 2017-01-10 Tom Tromey <tom@tromey.com>
16367
16368 * python/py-type.c (convert_field, make_fielditem, typy_fields)
16369 (typy_range): Use gdbpy_ref.
16370
16371 2017-01-10 Tom Tromey <tom@tromey.com>
16372
16373 * python/py-threadevent.c (create_thread_event_object): Use
16374 gdbpy_ref.
16375 * python/py-stopevent.c (create_stop_event_object): Simplify.
16376 (emit_stop_event): Use gdbpy_ref.
16377 * python/py-signalevent.c (create_signal_event_object): Use
16378 gdbpy_ref.
16379 * python/py-newobjfileevent.c (create_new_objfile_event_object)
16380 (emit_new_objfile_event, create_clear_objfiles_event_object)
16381 (emit_clear_objfiles_event): Use gdbpy_ref.
16382 * python/py-infevents.c (create_inferior_call_event_object)
16383 (create_register_changed_event_object)
16384 (create_memory_changed_event_object, emit_inferior_call_event)
16385 (emit_memory_changed_event, emit_register_changed_event): Use
16386 gdbpy_ref.
16387 * python/py-exitedevent.c (create_exited_event_object)
16388 (emit_exited_event): Use gdbpy_ref.
16389 * python/py-event.h (evpy_emit_event): Remove
16390 CPYCHECKER_STEALS_REFERENCE_TO_ARG annotation.
16391 * python/py-event.c (evpy_emit_event): Use gdbpy_ref.
16392 * python/py-continueevent.c (emit_continue_event): Use
16393 gdbpy_ref.
16394 * python/py-breakpoint.c (gdbpy_breakpoint_created)
16395 (gdbpy_breakpoint_deleted, gdbpy_breakpoint_modified): Use
16396 gdbpy_ref.
16397 * python/py-bpevent.c (create_breakpoint_event_object): Use
16398 gdbpy_ref.
16399
16400 2017-01-10 Tom Tromey <tom@tromey.com>
16401
16402 * python/py-ref.h: New file.
16403
16404 2017-01-10 Simon Marchi <simon.marchi@ericsson.com>
16405
16406 * cli-out.c (cli_ui_out::do_redirect): Change return type to
16407 void.
16408 * cli-out.h (cli_ui_out::do_redirect): Likewise.
16409 * mi/mi-out.c (mi_ui_out::do_redirect): Likewise.
16410 * mi/mi-out.h (mi_ui_out::do_redirect): Likewise.
16411 * ui-out.c (ui_out::redirect): Likewise.
16412 * ui-out.h (ui_out::redirect, ui_out::do_redirect): Likewise.
16413 * cli/cli-logging.c (set_logging_redirect): Update call site of
16414 ui_out::redirect.
16415 (handle_redirections): Likewise.
16416 * scm-ports.c (ioscm_with_output_to_port_worker): Likewise.
16417 * top.c (execute_command_to_string): Likewise.
16418 * utils.c (do_ui_out_redirect_pop): Likewise.
16419
16420 2017-01-10 Simon Marchi <simon.marchi@ericsson.com>
16421
16422 * stack.c (_initialize_stack): Update "frame" command help message.
16423
16424 2017-01-08 Iain Buclaw <ibuclaw@gdcproject.org>
16425
16426 * d-exp.y (CastExpression): Emit UNOP_CAST_TYPE.
16427
16428 2017-01-06 Yao Qi <yao.qi@linaro.org>
16429
16430 * x86-linux-nat.h: Include gdb_proc_service.h.
16431
16432 2017-01-06 Yao Qi <yao.qi@linaro.org>
16433
16434 * ser-base.h: Include serial.h.
16435
16436 2017-01-06 Yao Qi <yao.qi@linaro.org>
16437
16438 * ppc-linux-tdep.h: Include ppc-tdep.h.
16439
16440 2017-01-06 Yao Qi <yao.qi@linaro.org>
16441
16442 * nat/amd64-linux-siginfo.h: Include signal.h.
16443
16444 2017-01-06 Yao Qi <yao.qi@linaro.org>
16445
16446 * nat/aarch64-linux-hw-point.h: Include break-common.h.
16447
16448 2017-01-06 Yao Qi <yao.qi@linaro.org>
16449
16450 * mi/mi-parse.h: Include mi-cmds.h.
16451
16452 2017-01-06 Yao Qi <yao.qi@linaro.org>
16453
16454 * inf-loop.c: Don't include "target.h".
16455 * inf-loop.h: Include it here.
16456
16457 2017-01-06 Yao Qi <yao.qi@linaro.org>
16458
16459 * dfp.h: Include "dboulest.h" and "expression.h".
16460
16461 2017-01-06 Yao Qi <yao.qi@linaro.org>
16462
16463 * ax-gdb.h: Include "ax.h".
16464
16465 2017-01-06 Yao Qi <yao.qi@linaro.org>
16466
16467 * Makefile.in (HFILES_NO_SRCDIR): Replace gdb_ptrace.h
16468 with nat/gdb_ptrace.h.
16469
16470 2017-01-05 Yao Qi <yao.qi@linaro.org>
16471
16472 * mips-fbsd-tdep.c (mips_fbsd_sigframe_init): Move && to
16473 new line.
16474 (mips64_fbsd_sigframe_init): Likewise.
16475
16476 2017-01-04 John Baldwin <jhb@FreeBSD.org>
16477
16478 * mips-fbsd-tdep.c (_initialize_mips_fbsd_tdep): Use
16479 GDB_OSABI_FREEBSD instead of GDB_OSABI_FREEBSD_ELF.
16480
16481 2017-01-04 John Baldwin <jhb@FreeBSD.org>
16482
16483 * Makefile.in (ALLDEPFILES): Add mips-fbsd-nat.c.
16484 * NEWS: Mention new FreeBSD/mips native configuration.
16485 * config/mips/fbsd.mh: New file.
16486 * configure.host: Add mips*-*-freebsd*.
16487 * mips-fbsd-nat.c: New file.
16488
16489 2017-01-04 John Baldwin <jhb@FreeBSD.org>
16490
16491 * Makefile.in (ALL_TARGET_OBS): Add mips-fbsd-tdep.o.
16492 (ALLDEPFILES): Add mips-fbsd-tdep.c.
16493 * NEWS: Mention new FreeBSD/mips target.
16494 * configure.tgt: Add mips*-*-freebsd*.
16495 * mips-fbsd-tdep.c: New file.
16496 * mips-fbsd-tdep.h: New file.
16497
16498 2017-01-04 Yao Qi <yao.qi@linaro.org>
16499
16500 * dwarf2loc.c (write_pieced_value): Don't use VALUE_FRAME_ID (to),
16501 use c->frame_id when the piece location is DWARF_VALUE_REGISTER.
16502
16503 2017-01-01 Joel Brobecker <brobecker@adacore.com>
16504
16505 Update copyright year range in all GDB files.
16506
16507 2017-01-01 Joel Brobecker <brobecker@adacore.com>
16508
16509 * config/djgpp/fnchange.lst: Add entry for gdb/ChangeLog-2016.
16510
16511 For older changes see ChangeLog-2016.
16512 \f
16513 Local Variables:
16514 mode: change-log
16515 left-margin: 8
16516 fill-column: 74
16517 version-control: never
16518 coding: utf-8
16519 End: