btrace: read entire aux buffer
[binutils-gdb.git] / gdb / ChangeLog
1 2016-11-14 Markus Metzger <markus.t.metzger@intel.com>
2
3 * nat/linux-btrace.c (perf_event_read): Allow data_head < size.
4 * nat/linux-btrace.c (perf_event_read_all): Do not adjust size.
5
6 2016-11-12 Tom Tromey <tom@tromey.com>
7
8 * rust-exp.y (super_name): Use std::vector.
9 (lex_number): Use std::string.
10 (convert_params_to_types): Return std::vector.
11 (convert_ast_to_type, convert_name): Update.
12 * rust-lang.c (rust_get_disr_info): Use unique_xmalloc_ptr.
13
14 2016-11-12 Tom Tromey <tom@tromey.com>
15
16 * rust-lang.c (rust_get_disr_info): Use std::string in one more
17 spot.
18
19 2016-11-11 Yao Qi <yao.qi@linaro.org>
20
21 * spu-tdep.c (spu_software_single_step): Don't call
22 get_frame_register_bytes, call get_frame_register_unsigned
23 instead.
24
25 2016-11-11 Yao Qi <yao.qi@linaro.org>
26
27 * cp-valprint.c (cp_print_value): Remove local base_valaddr.
28 * extension-priv.h (struct extension_language_ops)
29 <apply_val_pretty_printer>: Remove the second parameter.
30 Remove const from "struct value *". Callers updated.
31 * extension.c (apply_ext_lang_val_pretty_printer): Update
32 comments. Remove parameter valaddr. Remove const from
33 "struct value *".
34 * extension.h (apply_ext_lang_val_pretty_printer): Update
35 declaration.
36 * guile/guile-internal.h (gdbscm_apply_val_pretty_printer):
37 Update declaration.
38 * guile/scm-pretty-print.c (gdbscm_apply_val_pretty_printer):
39 Remove parameter valaddr. Remove const from "struct value *".
40 * python/py-prettyprint.c (gdbpy_apply_val_pretty_printer):
41 Likewise.
42 * python/python-internal.h (gdbpy_apply_val_pretty_printer):
43 Update declaration.
44
45 2016-11-11 Yao Qi <yao.qi@linaro.org>
46
47 * c-lang.h (cp_print_value_fields): Update declaration.
48 * cp-valprint.c (cp_print_value): Update declaration.
49 (cp_print_value_fields): Remove parameter valaddr. Callers
50 updated.
51 (cp_print_value): Likewise.
52
53 2016-11-09 Tom Tromey <tom@tromey.com>
54
55 * varobj.h (varobj_get_display_hint): Change return type.
56 * varobj.c (varobj_get_display_hint): Return unique_xmalloc_ptr.
57 (varobj_value_get_print_value): Update.
58 * python/python.c (gdbpy_before_prompt_hook, gdbpy_print_stack)
59 (gdbpy_apply_type_printers): Update.
60 * python/python-internal.h (unicode_to_target_string)
61 (python_string_to_target_string, python_string_to_host_string)
62 (gdbpy_obj_to_string, gdbpy_exception_to_string)
63 (gdbpy_get_display_hint): Change return types.
64 * python/py-varobj.c (py_varobj_iter_next): Update.
65 * python/py-value.c (valpy_getitem, convert_value_from_python):
66 Update.
67 * python/py-utils.c (unicode_to_encoded_string)
68 (unicode_to_target_string, python_string_to_target_string)
69 (python_string_to_host_string, gdbpy_obj_to_string)
70 (gdbpy_exception_to_string): Return unique_xmalloc_ptr.
71 * python/py-unwind.c (pyuw_parse_register_id): Update.
72 * python/py-type.c (typy_getitem): Update.
73 * python/py-prettyprint.c (gdbpy_get_display_hint)
74 (print_stack_unless_memory_error, print_children)
75 (gdbpy_apply_val_pretty_printer): Update.
76 * python/py-param.c (set_parameter_value): Update.
77 (get_doc_string, call_doc_function): Return unique_xmalloc_ptr.
78 (get_set_value, get_show_value, compute_enum_values, parmpy_init):
79 Update.
80 * python/py-infthread.c (thpy_set_name): Update.
81 * python/py-function.c (fnpy_call, fnpy_init): Update.
82 * python/py-framefilter.c (extract_sym): Change "name" to
83 unique_xmalloc_ptr.
84 (enumerate_args, enumerate_locals): Update.
85 (py_print_frame): Use unique_xmalloc_ptr.
86 * python/py-frame.c (frapy_read_var): Update. Remove cleanup.
87 * python/py-cmd.c (cmdpy_function, cmdpy_completer, cmdpy_init):
88 Update.
89 * python/py-breakpoint.c (bppy_set_condition): Use
90 unique_xmalloc_ptr.
91 (bppy_init): Likewise. Remove cleanup.
92 (local_setattro): Update.
93 * mi/mi-cmd-var.c (print_varobj, mi_cmd_var_list_children)
94 (varobj_update_one): Update.
95
96 2016-11-09 Pedro Alves <palves@redhat.com>
97
98 * ax-gdb.c (agent_eval_command_one): Use std::move instead of
99 gdb::move.
100 * ax.h (agent_expr_up): Use std::unique_ptr instead of
101 gdb::unique_ptr.
102 * breakpoint.c (parse_cond_to_aexpr): Use std::move instead of
103 gdb::move.
104 * tracepoint.c (collection_list::collect_symbol): Likewise.
105 (collection_list::~collection_list): Delete.
106 (encode_actions_1): Use std::move instead of gdb::move.
107 (collection_list::add_aexpr): Use std::move instead of
108 unique_ptr::release.
109 * tracepoint.h (collection_list) <~collection_list>: Delete
110 declaration.
111 <m_aexprs>: Now a vector of agent_ptr_up.
112
113 2016-11-09 Pedro Alves <palves@redhat.com>
114
115 * main.c (struct cmdarg): Add constructor.
116 (captured_main_1): Use vector::emplace_back.
117 * tracepoint.c (collection_list::add_memrange): Likewise.
118
119 2016-11-09 Andreas Arnez <arnez@linux.vnet.ibm.com>
120
121 * tui/tui-winsource.c (tui_alloc_source_buffer): Remove
122 failed-xmalloc handling.
123
124 2016-11-09 Andreas Arnez <arnez@linux.vnet.ibm.com>
125
126 * tui/tui-winsource.c (tui_alloc_source_buffer): Subtract
127 highlight box's overhead when calculating the content height.
128
129 2016-11-09 Andreas Arnez <arnez@linux.vnet.ibm.com>
130
131 * tui/tui-disasm.c (tui_set_disassem_content): Fix calculation of
132 the longest disassembly line's length.
133
134 2016-11-09 Andreas Arnez <arnez@linux.vnet.ibm.com>
135
136 * tui/tui-disasm.c (tui_set_disassem_content): Fix line buffer
137 overrun due to unchecked strcpy.
138
139 2016-11-09 Tristan Gingold <gingold@adacore.com>
140
141 * darwin-nat.c (find_inferior_task_it): Fix indentation.
142 (find_inferior_notify_it): Remove.
143 (find_inferior_pid_it): New function.
144 (darwin_find_inferior_by_notify): Remove.
145 (darwin_find_inferior_by_pid): New function.
146 (darwin_find_new_inferior): New function.
147 (darwin_check_message_ndr): New function from
148 darwin_decode_exception_message.
149 (darwin_decode_exception_message): Call darwin_check_message_ndr.
150 Handle SIGTRAP addressed to an unknown task (when a task spawned).
151 (darwin_decode_notify_message): New function.
152 (darwin_decode_message): Handle unknown task.
153 (darwin_deallocate_threads): New function from darwin_mourn_inferior.
154 (darwin_mourn_inferior): Use darwin_deallocate_threads and
155 darwin_deallocate_exception_ports.
156 (darwin_deallocate_exception_ports): New function from
157 darwin_mourn_inferior.
158 (darwin_setup_exceptions): New function from darwin_attach_pid.
159 (darwin_setup_request_notification): Likewise.
160 (darwin_attach_pid): Call darwin_setup_request_notification and
161 darwin_setup_request_notification.
162
163 2016-11-08 Tom Tromey <tom@tromey.com>
164
165 * python/py-framefilter.c (py_print_frame): Use
166 get_addr_from_python. Check for errors when getting line number.
167
168 2016-11-08 Yao Qi <yao.qi@linaro.org>
169
170 * ada-lang.h (ada_val_print): Remove second parameter. Remove
171 const from "struct value *".
172 * ada-valprint.c (print_field_values): Remove const from
173 "struct value *".
174 (val_print_packed_array_elements): Likewise.
175 (print_variant_part): Likewise.
176 (ada_val_print_string): Likewise.
177 (ada_val_print_gnat_array): Likewise.
178 (ada_val_print_ptr): Likewise.
179 (ada_val_print_num): Likewise.
180 (ada_val_print_enum): Likewise.
181 (ada_val_print_flt): Likewise.
182 (ada_val_print_union): Likewise.
183 (ada_val_print_struct_union): Likewise.
184 (ada_val_print_ref): Likewise.
185 (ada_val_print_1): Remove second parameter. Remove const from
186 "struct value *".
187 (ada_val_print): Likewise.
188 * c-lang.h (c_val_print): Likewise.
189 * c-valprint.c (c_val_print_array): Remove const from
190 "struct value *".
191 (c_val_print_ptr): Likewise.
192 (c_val_print_struct): Likewise.
193 (c_val_print_union): Likewise.
194 (c_val_print_int): Likewise.
195 (c_val_print_memberptr): Likewise.
196 (c_val_print): Remove second parameter. Remove const from
197 "struct value *". All callers updated.
198 * cp-valprint.c (cp_print_value): Remove const from
199 "struct value *".
200 (cp_print_value_fields): Likewise.
201 (c_val_print_value): Likewise.
202 * d-lang.h (d_val_print): Remove second parameter. Remove const
203 from "struct value *".
204 * d-valprint.c (dynamic_array_type): Likewise.
205 (d_val_print): Likewise.
206 * f-lang.h (f_val_print): Likewise.
207 * f-valprint.c (f_val_print): Likewise.
208 * go-lang.h (go_val_print): Likewise.
209 * go-valprint.c (print_go_string): Likewise.
210 (go_val_print): Likewise.
211 * language.c (unk_lang_val_print): Likewise.
212 * language.h (struct language_defn) <la_val_print>: Likewise.
213 Update comments.
214 (LA_VAL_PRINT): Remove.
215 * m2-lang.h (m2_val_print): Remove const from
216 "struct value *".
217 * m2-valprint.c (m2_print_array_contents): Likewise.
218 (m2_val_print): Likewise.
219 * p-lang.h (pascal_val_print): Remove second parameter. Remove
220 const from "struct value *".
221 (pascal_object_print_value_fields): Likewise.
222 * p-valprint.c (pascal_val_print): Likewise.
223 (pascal_object_print_value_fields): Likewise.
224 (pascal_object_print_value): Likewise.
225 * rust-lang.c (rust_get_disr_info): Likewise.
226 (val_print_struct): Likewise.
227 (rust_val_print): Likewise.
228 * valprint.c (generic_val_print_array): Likewise.
229 (generic_val_print_ptr): Likewise.
230 (generic_val_print_memberptr): Likewise.
231 (generic_val_print_ref): Likewise.
232 (generic_val_print_enum): Likewise.
233 (generic_val_print_flags): Likewise.
234 (generic_val_print_func): Likewise.
235 (generic_val_print_bool): Likewise.
236 (generic_val_print_int): Likewise.
237 (generic_val_print_char): Likewise.
238 (generic_val_print_float): Likewise.
239 (generic_val_print_decfloat): Likewise.
240 (generic_val_print_complex): Likewise.
241 (generic_val_print): Likewise.
242 (val_print): Likewise.
243 (common_val_print): Likewise.
244 (val_print_type_code_flags): Likewise.
245 (val_print_scalar_formatted): Likewise.
246 (val_print_array_elements): Likewise.
247 * valprint.h (val_print_array_elements): Update declaration.
248 (val_print_scalar_formatted): Likewise.
249 (generic_val_print): Likewise.
250 * value.h (val_print): Likewise.
251
252 2016-11-08 Yao Qi <yao.qi@linaro.org>
253
254 * mt-tdep.c (mt_registers_info): Call
255 get_frame_register_value instead of
256 deprecated_frame_register_read.
257 * sh64-tdep.c (sh64_do_register): Likewise.
258
259 2016-11-08 Pedro Alves <palves@redhat.com>
260
261 * ax.h (agent_expr_p): Delete.
262 (DEF_VEC_P (agent_expr_p)): Delete.
263 * breakpoint.c (build_target_condition_list)
264 (build_target_command_list): Adjust to use of std::vector.
265 (bp_location_dtor): Remove now unnecessary VEC_free calls.
266 * breakpoint.h: Include <vector>.
267 (struct bp_target_info) <conditions, tcommands>: Now
268 std::vector's.
269 * remote.c (remote_add_target_side_condition): bp_tgt->conditions
270 is now a std::vector; adjust.
271 (remote_add_target_side_commands, remote_insert_breakpoint):
272 bp_tgt->tcommands is now a std::vector; adjust.
273
274 2016-11-08 Pedro Alves <palves@redhat.com>
275
276 * ax-gdb.c (is_nontrivial_conversion): Use agent_expr_up.
277 (gen_trace_for_var, gen_trace_for_expr, gen_eval_for_expr)
278 (gen_trace_for_return_address, gen_printf): Use and return an
279 agent_expr_up. Don't use make_cleanup_free_agent_expr.
280 (agent_eval_command_one, maint_agent_printf_command): Use
281 agent_expr_up. Don't use make_cleanup_free_agent_expr.
282 * ax-gdb.h (gen_trace_for_expr, gen_trace_for_var)
283 (gen_trace_for_return_address, gen_eval_for_expr, gen_printf): Use
284 agent_expr_up.
285 * ax-general.c (new_agent_expr): Rename to ...
286 (agent_expr::agent_expr): ... this, and now a constructor.
287 (free_agent_expr): Rename to ...
288 (agent_expr::~agent_exp): ... this, and now a destructor.
289 (do_free_agent_expr_cleanup, make_cleanup_free_agent_expr):
290 Delete.
291 * ax.h (struct agent_expr): Add ctor/dtor.
292 (agent_expr_up): New typedef.
293 (new_agent_expr, free_agent_expr, make_cleanup_free_agent_expr):
294 Delete declarations.
295 * breakpoint.c (parse_cond_to_aexpr): Use and return an
296 agent_expr_up. Don't use make_cleanup_free_agent_expr.
297 (build_target_condition_list): Adjust to use agent_expr_up.
298 (parse_cmd_to_aexpr): Use and return an agent_expr_up. Don't use
299 make_cleanup_free_agent_expr.
300 (build_target_command_list): Adjust to use agent_expr_up.
301 (force_breakpoint_reinsertion): Adjust to use agent_expr_up.
302 (bp_location_dtor): Remove unnecessary free_agent_expr and xfree
303 calls.
304 * breakpoint.h (struct bp_target_info) <cond_bytecode,
305 cmd_bytecode>: Now agent_expr_up's.
306 * remote.c (remote_download_tracepoint): Adjust to use
307 agent_expr_up and remove use of make_cleanup_free_agent_expr.
308 * tracepoint.c (validate_actionline, collect_symbol): Adjust to
309 use agent_expr_up and remove uses of make_cleanup_free_agent_expr.
310 (collection_list::~collection_list): Call delete instead of
311 free_agent_expr.
312 (encode_actions_1): Adjust to use agent_expr_up and remove uses of
313 make_cleanup_free_agent_expr.
314 (add_aexpr): Change parameter type to agent_expr_up; Return a raw
315 agent_expr pointer.
316
317 2016-11-08 Pedro Alves <palves@redhat.com>
318
319 * ada-lang.c (ada_name_for_lookup, type_as_string): Use and return
320 std::string.
321 (type_as_string_and_cleanup): Delete.
322 (ada_lookup_struct_elt_type): Use type_as_string.
323 * ada-lang.h (ada_name_for_lookup): Now returns std::string.
324 * ada-varobj.c (ada_varobj_scalar_image): Return a std::string.
325 (ada_varobj_describe_child): Make 'child_name' and
326 'child_path_expr' parameters std::string pointers.
327 (ada_varobj_describe_struct_child, ada_varobj_describe_ptr_child):
328 Likewise, and use string_printf.
329 (ada_varobj_describe_simple_array_child)
330 (ada_varobj_describe_child): Likewise.
331 (ada_varobj_get_name_of_child, ada_varobj_get_path_expr_of_child)
332 (ada_varobj_get_value_image)
333 (ada_varobj_get_value_of_array_variable)
334 (ada_varobj_get_value_of_variable, ada_name_of_variable)
335 (ada_name_of_child, ada_path_expr_of_child)
336 (ada_value_of_variable): Now returns std::string. Use
337 string_printf.
338 (ada_value_of_child): Adjust.
339 * break-catch-throw.c (check_status_exception_catchpoint): Adjust
340 to use std::string.
341 * breakpoint.c (watch_command_1): Adjust to use std::string.
342 * c-lang.c (c_get_string): Adjust to use std::string.
343 * c-typeprint.c (print_name_maybe_canonical): Use std::string.
344 * c-varobj.c (varobj_is_anonymous_child): Use ==/!= std::string
345 operators.
346 (c_name_of_variable): Now returns a std::string.
347 (c_describe_child): The 'cname' and 'cfull_expression' output
348 parameters are now std::string pointers. Adjust.
349 (c_name_of_child, c_path_expr_of_child, c_value_of_variable)
350 (cplus_number_of_children): Adjust to use std::string and
351 string_printf.
352 (cplus_name_of_variable): Now returns a std::string.
353 (cplus_describe_child): The 'cname' and 'cfull_expression' output
354 parameters are now std::string pointers. Adjust.
355 (cplus_name_of_child, cplus_path_expr_of_child)
356 (cplus_value_of_variable): Now returns a std::string.
357 * cp-abi.c (cplus_typename_from_type_info): Return std::string.
358 * cp-abi.h (cplus_typename_from_type_info): Return std::string.
359 (struct cp_abi_ops) <get_typename_from_type_info>: Return
360 std::string.
361 * cp-support.c (inspect_type): Use std::string.
362 (cp_canonicalize_string_full, cp_canonicalize_string_no_typedefs)
363 (cp_canonicalize_string): Return std::string and adjust.
364 * cp-support.h (cp_canonicalize_string)
365 (cp_canonicalize_string_no_typedefs, cp_canonicalize_string_full):
366 Return std::string.
367 * dbxread.c (read_dbx_symtab): Use std::string.
368 * dwarf2read.c (dwarf2_canonicalize_name): Adjust to use std::string.
369 * gdbcmd.h (lookup_struct_elt_type): Adjust to use std::string.
370 * gnu-v3-abi.c (gnuv3_get_typeid): Use std::string.
371 (gnuv3_get_typename_from_type_info): Return a std::string and
372 adjust.
373 (gnuv3_get_type_from_type_info): Adjust to use std::string.
374 * guile/guile.c (gdbscm_execute_gdb_command): Adjust to use
375 std::string.
376 * infcmd.c (print_return_value_1): Adjust to use std::string.
377 * linespec.c (find_linespec_symbols): Adjust to
378 demangle_for_lookup API change. Use std::string.
379 * mi/mi-cmd-var.c (print_varobj, mi_cmd_var_set_format)
380 (mi_cmd_var_info_type, mi_cmd_var_info_path_expression)
381 (mi_cmd_var_info_expression, mi_cmd_var_evaluate_expression)
382 (mi_cmd_var_assign, varobj_update_one): Adjust to use std::string.
383 * minsyms.c (lookup_minimal_symbol): Use std::string.
384 * python/py-varobj.c (py_varobj_iter_next): Use new instead of
385 XNEW. vitem->name is a std::string now, adjust.
386 * rust-exp.y (convert_ast_to_type, convert_name): Adjust to use
387 std::string.
388 * stabsread.c (define_symbol): Adjust to use std::string.
389 * symtab.c (demangle_for_lookup): Now returns 'const char *'. Add
390 a demangle_result_storage parameter. Use it for storage.
391 (lookup_symbol_in_language)
392 (lookup_symbol_in_objfile_from_linkage_name): Adjust to new
393 demangle_for_lookup API.
394 * symtab.h (struct demangle_result_storage): New type.
395 (demangle_for_lookup): Now returns 'const char *'. Add a
396 demangle_result_storage parameter.
397 * typeprint.c (type_to_string): Return std::string and use
398 ui_file_as_string.
399 * value.h (type_to_string): Change return type to std::string.
400 * varobj-iter.h (struct varobj_item) <name>: Now a std::string.
401 (varobj_iter_delete): Use delete instead of xfree.
402 * varobj.c (create_child): Return std::string instead of char * in
403 output parameter.
404 (name_of_variable, name_of_child, my_value_of_variable): Return
405 std::string instead of char *.
406 (varobj_create, varobj_get_handle): Constify 'objname' parameter.
407 Adjust to std::string fields.
408 (varobj_get_objname): Return a const char * instead of a char *.
409 (varobj_get_expression): Return a std::string.
410 (varobj_list_children): Adjust to use std::string.
411 (varobj_get_type): Return a std::string.
412 (varobj_get_path_expr): Return a const char * instead of a char *.
413 Adjust to std::string fields.
414 (varobj_get_formatted_value, varobj_get_value): Return a
415 std::string.
416 (varobj_set_value): Change type of 'expression' parameter to
417 std::string. Use std::string.
418 (install_new_value): Use std::string.
419 (delete_variable_1): Adjust to use std::string.
420 (create_child): Change the 'name' parameter to a std::string
421 reference. Swap it into the new item's name.
422 (create_child_with_value): Swap item's name into the new child's
423 name. Use string_printf.
424 (new_variable): Use new instead of XNEW.
425 (free_variable): Don't xfree fields that are now std::string.
426 (name_of_variable, name_of_child): Now returns std::string.
427 (value_of_root): Adjust to use std::string.
428 (my_value_of_variable, varobj_value_get_print_value): Return
429 and use std::string.
430 (varobj_value_get_print_value): Adjust to use ui_file_as_string
431 and std::string.
432 * varobj.h (struct varobj) <name, path_expr, obj_name,
433 print_value>: Now std::string's.
434 <name_of_variable, name_of_child, path_expr_of_child,
435 value_of_variable>: Return std::string.
436 (varobj_create, varobj_get_handle): Constify 'objname' parameter.
437 (varobj_get_objname): Return a const char * instead of a char *.
438 (varobj_get_expression, varobj_get_type): Return a std::string.
439 (varobj_get_path_expr): Return a const char * instead of a char *.
440 (varobj_get_formatted_value, varobj_get_value): Return a
441 std::string.
442 (varobj_set_value): Constify 'expression' parameter.
443 (varobj_value_get_print_value): Return a std::string.
444
445 2016-11-08 Pedro Alves <palves@redhat.com>
446
447 * language.c (add_language): Use ui_file_as_string and adjust to
448 use std::string.
449
450 2016-11-08 Pedro Alves <palves@redhat.com>
451 Tom Tromey <tom@tromey.com>
452
453 * rust-lang.c (struct disr_info) <name>: Now a std::string.
454 (rust_get_disr_info): Use ui_file_as_string and adjust to use
455 std::string.
456 (rust_val_print): Adjust to use std::string.
457
458 2016-11-08 Pedro Alves <palves@redhat.com>
459
460 * infrun.c (print_target_wait_results): Use ui_file_as_string and
461 std::string.
462
463 2016-11-08 Pedro Alves <palves@redhat.com>
464
465 * ada-lang.c (type_as_string): Use ui_file_as_string and return
466 std::string.
467 (type_as_string_and_cleanup): Delete.
468 (ada_lookup_struct_elt_type): Use type_as_string.
469
470 2016-11-08 Pedro Alves <palves@redhat.com>
471
472 * gdbarch.sh (verify_gdbarch): Use ui_file_as_string and
473 std::string.
474 * gdbarch.c: Regenerate.
475
476 2016-11-08 Pedro Alves <palves@redhat.com>
477
478 * c-exp.y (OPERATOR NEW): Adjust to use ui_file_as_string and
479 std::string.
480
481 2016-11-08 Pedro Alves <palves@redhat.com>
482
483 * c-lang.h (c_compute_program): Now returns std::string.
484 * compile/compile-internal.h (class compile_file_names): New
485 class.
486 * compile/compile-object-load.c (compile_object_load): Replace
487 object_file and source_file parameters with a compile_file_names
488 parameter. Adjust.
489 * compile-object-load.h: Include "compile-internal.h".
490 (compile_object_load): Replace object_file and source_file
491 parameters with a compile_file_names parameter.
492 * compile/compile-c-support.c (c_compute_program): Now returns a
493 std::string. Use ui_file_as_string.
494 * compile/compile.c (get_new_file_names): Remove parameters and
495 return a compile_file_names instead.
496 (compile_to_object): Now returns a compile_file_names. Use
497 ui_file_as_string.
498 (eval_compile_command): Use compile_file_names.
499 * language.h (struct language_defn) <la_compute_program>: Now
500 returns std::string.
501
502 2016-11-08 Pedro Alves <palves@redhat.com>
503
504 * cli/cli-setshow.c (do_show_command): Adjust to use
505 ui_file_as_string and std::string.
506
507 2016-11-08 Pedro Alves <palves@redhat.com>
508
509 * remote.c (escape_buffer): Use ui_file_as_string and return
510 std::string.
511 (putpkt_binary, read_frame): Adjust to use std::string.
512
513 2016-11-08 Pedro Alves <palves@redhat.com>
514
515 * python/py-arch.c (archpy_disassemble): Use ui_file_as_string and
516 std::string.
517 * python/py-breakpoint.c (bppy_get_commands): Use
518 ui_file_as_string and std::string.
519 * python/py-frame.c (frapy_str): Likewise.
520 * python/py-type.c (typy_str): Likewise.
521 * python/py-unwind.c (unwind_infopy_str): Likewise.
522 * python/py-value.c (valpy_str): Likewise.
523
524 2016-11-08 Pedro Alves <palves@redhat.com>
525
526 * printcmd.c (eval_command): Use ui_file_as_string and
527 std::string.
528
529 2016-11-08 Pedro Alves <palves@redhat.com>
530
531 * top.c (quit_confirm): Use ui_file_as_string and std::string.
532
533 2016-11-08 Pedro Alves <palves@redhat.com>
534
535 * gdbcmd.h (execute_command_to_string): Now returns std::string.
536 (lookup_struct_elt_type): Adjust to use std::string.
537 * top.c (execute_command_to_string): Use ui_file_as_string and
538 return std::string.
539 * guile/guile.c (gdbscm_execute_gdb_command): Adjust to use
540 std::string.
541 * python/python.c (execute_gdb_command): Adjust to use
542 std::string.
543
544 2016-11-08 Pedro Alves <palves@redhat.com>
545
546 * guile/scm-breakpoint.c (gdbscm_breakpoint_commands): Use
547 ui_file_as_string and adjust to use std::string.
548 * guile/scm-disasm.c (gdbscm_arch_disassemble): Likewise.
549 * guile/scm-frame.c (frscm_print_frame_smob): Likewise.
550 * guile/scm-type.c (tyscm_type_name): Use ui_file_as_string and
551 adjust to use std::string. Throw exception directly instead of
552 returning it in EXCP output parameter.
553 (tyscm_print_type_smob, gdbscm_type_print_name): Adjust to
554 tyscm_type_name interface change.
555 * guile/scm-value.c (vlscm_print_value_smob, gdbscm_value_print):
556 Use ui_file_as_string and std::string.
557
558 2016-11-08 Pedro Alves <palves@redhat.com>
559
560 * arm-tdep.c (_initialize_arm_tdep): Use ui_file_as_string and
561 std::string.
562
563 2016-11-08 Pedro Alves <palves@redhat.com>
564
565 * utils.c (error_stream): Use ui_file_as_string and std::string.
566
567 2016-11-08 Pedro Alves <palves@redhat.com>
568
569 * ui-out.c (ui_out_field_stream): Use ui_file_as_string.
570
571 2016-11-08 Pedro Alves <palves@redhat.com>
572
573 * ada-valprint.c (ada_print_floating): Use ui_file_as_string and
574 std::string.
575
576 2016-11-08 Pedro Alves <palves@redhat.com>
577
578 * xtensa-tdep.c (xtensa_verify_config): Use ui_file_as_string and
579 std::string.
580
581 2016-11-08 Pedro Alves <palves@redhat.com>
582
583 * dwarf2read.c (dwarf2_compute_name): Use ui_file_as_string and
584 std::string.
585
586 2016-11-08 Pedro Alves <palves@redhat.com>
587
588 * mi/mi-main.c (print_variable_or_computed): Constify 'expression'
589 parameter.
590 (mi_cmd_trace_frame_collected): Call encode_actions instead of
591 encode_actions_and_make_cleanup. Adjust to use std::vector.
592 * tracepoint.c (memrange_cmp): Delete.
593 (memrange_comp): New.
594 (memrange_sortmerge): Take a memrange vector as parameter instead
595 of a collection_list. Use std::sort instead of qsort.
596 (add_register): Now a method of collection_list. Adjust to m_
597 prefix of data fields.
598 (add_memrange): Now a method of collection_list. Adjust to m_
599 prefix of data fields. Adjust to use std::vector.
600 (collect_symbol): Now a method of collection_list. Adjust to m_
601 prefix of data fields.
602 (do_collect_symbol): Adjust. Call add_wholly_collected instead of
603 accessing the vector directly.
604 (collection_list::add_wholly_collected): New.
605 (add_local_symbols): Now a method of collection_list.
606 (add_static_trace_data): Now a method of collection_list. Adjust
607 to use bool.
608 (clear_collection_list, do_clear_collection_list): Delete.
609 (init_collection_list): Delete.
610 (collection_list::collection_list): New.
611 (collection_list::~collection_list): New.
612 (stringify_collection_list): Rename to ...
613 (collection_list::stringify): ... this and adjust to being a
614 method of collection_list. Adjust to use of std::vector.
615 (append_exp): Now a method of collection_list. Use
616 ui_file_as_string. Adjust to std::vector.
617 (collection_list::finish): New.
618 (encode_actions_1): Adjust.
619 (encode_actions_and_make_cleanup): Rename to ...
620 (encode_actions)... this. No longer returns a cleanup. No longer
621 call init_collection_list nor install do_clear_collection_list
622 cleanups. Call collection_list::finish instead of
623 memrange_sortmerge directly.
624 (encode_actions_rsp): Adjust to call encode_actions instead of
625 encode_actions_and_make_cleanup. Adjust to method renames.
626 (add_aexpr): Now a method of collection_list.
627 * tracepoint.h: Include <vector> and <string>.
628 (struct memrange): Add constructors.
629 (struct collection_list): Now a class.
630 (class collection_list) <collection_list, ~collection_list,
631 add_wholly_collected, append_exp, add_aexpr, add_register,
632 add_memrange, collect_symbol, add_local_symbols,
633 add_static_trace_data, finish, stringify, wholly_collected, and
634 computed>: New methods.
635 <regs_mask>: Rename to ...
636 <m_regs_mask>: ... this.
637 <listsize, next_memrange, list>: Delete fields.
638 <m_memranges>: New field.
639 <aexpr_listsize, next_aexpr_elt, aexpr_list>: Delete fields.
640 <m_aexprs>: New field.
641 <strace_data>: Rename to ...
642 <m_strace_data>: ... this. Now a bool.
643 <wholly_collected>: Rename to ...
644 <m_wholly_collected>: ... this. Now a std::vector<std::string>.
645 <computed>: Rename to ...
646 <m_computed>: ... this. Now a std::vector<std::string>.
647 (encode_actions_and_make_cleanup): Delete declaration.
648 (encode_actions): New declaration.
649
650 2016-11-08 Pedro Alves <palves@redhat.com>
651
652 * ui-file.c (do_ui_file_as_string, ui_file_as_string): New
653 functions.
654 * ui-file.h: Include <string>.
655 (ui_file_as_string): New declaration.
656
657 2016-11-08 Pedro Alves <palves@redhat.com>
658
659 * ada-lang.c (ada_read_renaming_var_value): Use expression_up.
660 (struct ada_catchpoint_location) <excep_cond_expr>: Now an
661 expression_up.
662 (ada_catchpoint_location_dtor): Reset excep_cond_expr instead of
663 using xfree.
664 (create_excep_cond_exprs): Use expression_up and gdb::move.
665 (allocate_location_exception): Use new instead of XNEW.
666 (should_stop_exception): Likewise. Adjust to use expression_up.
667 (create_ada_exception_catchpoint): Use new instead of XNEW.
668 * ax-gdb.c (agent_eval_command_one): Use expression_up instead of
669 cleanups.
670 (maint_agent_printf_command): Use expression_up.
671 * break-catch-sig.c (create_signal_catchpoint): Use new instead of
672 XNEW.
673 * break-catch-syscall.c (create_syscall_event_catchpoint):
674 Likewise.
675 * break-catch-throw.c (handle_gnu_v3_exceptions): Use new instead
676 of XCNEW. Use gdb::unique_ptr instead of cleanups.
677 * breakpoint.c (set_breakpoint_condition, update_watchpoint)
678 (parse_cmd_to_aexpr, watchpoint_check)
679 (bpstat_check_breakpoint_conditions, watchpoint_locations_match):
680 Adjust to use expression_up.
681 (init_bp_location): Adjust.
682 (free_bp_location): Use delete instead of xfree.
683 (set_raw_breakpoint_without_location, set_raw_breakpoint)
684 (add_solib_catchpoint, create_fork_vfork_event_catchpoint)
685 (new_single_step_breakpoint, create_breakpoint_sal): Use new
686 instead of XNEW.
687 (find_condition_and_thread): Adjust to use expression_up.
688 (create_breakpoint): Use new instead of XNEW.
689 (dtor_watchpoint): Don't xfree expression pointers, they're
690 unique_ptr's now.
691 (insert_watchpoint, remove_watchpoint): Adjust.
692 (watch_command_1): Use expression_up. Use new instead of XCNEW.
693 (catch_exec_command_1): Use new instead of XNEW.
694 (bp_location_dtor): Don't xfree expression pointers, they're
695 unique_ptr's now.
696 (base_breakpoint_allocate_location)
697 (strace_marker_create_breakpoints_sal): Use new instead of XNEW.
698 (delete_breakpoint): Use delete instead of xfree.
699 * breakpoint.h (struct bp_location) <cond>: Now an
700 unique_ptr<expression> instead of a raw pointer.
701 (struct watchpoint) <exp, cond_exp>: Likewise.
702 * cli/cli-script.c (execute_control_command): Use expression_up
703 instead of cleanups.
704 * dtrace-probe.c (dtrace_process_dof_probe): Use expression_up.
705 * eval.c (parse_and_eval_address, parse_and_eval_long)
706 (parse_and_eval, parse_to_comma_and_eval, parse_and_eval_type):
707 Use expression_up instead of cleanups.
708 * expression.h (expression_up): New typedef.
709 (parse_expression, parse_expression_with_language, parse_exp_1):
710 Change return type to expression_up.
711 * mi/mi-main.c (mi_cmd_data_evaluate_expression)
712 (print_variable_or_computed): Use expression_up.
713 * objc-lang.c (print_object_command): Use expression_up instead of
714 cleanups.
715 * parse.c (parse_exp_1, parse_exp_in_context)
716 (parse_exp_in_context_1, parse_expression)
717 (parse_expression_with_language): Return an expression_up instead
718 of a raw pointer.
719 (parse_expression_for_completion): Use expression_up.
720 * printcmd.c (struct display) <exp>: Now an expression_up instead
721 of a raw pointer.
722 (print_command_1, output_command_const, set_command, x_command):
723 Use expression_up instead of cleanups.
724 (display_command): Likewise. Use new instead of XNEW.
725 (free_display): Use delete instead of xfree.
726 (do_one_display): Adjust to use expression_up.
727 * remote.c (remote_download_tracepoint): Likewise.
728 * stack.c (return_command): Likewise.
729 * tracepoint.c (validate_actionline, encode_actions_1): Use
730 expression_up instead of cleanups.
731 * typeprint.c (whatis_exp, maintenance_print_type): Likewise.
732 * value.c (init_if_undefined_command): Likewise.
733 * varobj.c (struct varobj_root) <exp>: Now an expression_up
734 instead of a raw pointer.
735 (varobj_create): Adjust.
736 (varobj_set_value): Use an expression_up instead of cleanups.
737 (new_root_variable): Use new instead of XNEW.
738 (free_variable): Use delete instead of xfree.
739 (value_of_root_1): Use std::swap.
740
741 2016-11-08 Pedro Alves <palves@redhat.com>
742
743 * cli/cli-script.c (execute_control_command): Use std::string
744 instead of cleanups.
745 (locate_arg): Constify return type.
746 (insert_args): Constify paremeter. Simplify using std::string.
747 Return a std::string.
748
749 2016-11-08 Pedro Alves <palves@redhat.com>
750
751 * breakpoint.c (struct commands_info) <arg>: Constify.
752 (commands_command_1): Constify 'arg' parameter. Use std::string
753 and string_printf.
754 (commands_from_control_command): Constify 'arg' parameter.
755 (map_breakpoint_numbers): Constify 'args' parameter.
756 * breakpoint.h (commands_from_control_command): Constify 'arg'
757 parameter.
758
759 2016-11-08 Pedro Alves <palves@redhat.com>
760
761 * cli/cli-script.c (execute_control_command): Assume insert_args
762 never returns NULL.
763 (insert_args): Assume xmalloc never returns NULL.
764
765 2016-11-08 Pedro Alves <palves@redhat.com>
766
767 * Makefile.in (COMMON_OBS): Add utils-selftests.o.
768 * common/common-utils.c (string_printf): New function.
769 * common/common-utils.h: Include <string>.
770 (string_printf): Declare.
771 * utils-selftests.c: New file.
772
773 2016-11-08 Yao Qi <yao.qi@linaro.org>
774
775 * aarch64-tdep.c (aarch64_software_single_step): Return
776 VEC (CORE_ADDR) *. Return NULL instead of 0. Don't call
777 insert_single_step_breakpoint.
778 * alpha-tdep.c (alpha_deal_with_atomic_sequence): Likewise.
779 (alpha_software_single_step): Likewise.
780 * alpha-tdep.h (alpha_software_single_step): Update declaration.
781 * arm-linux-tdep.c (arm_linux_software_single_step): Return
782 VEC (CORE_ADDR) *. Return NULL instead of 0.
783 * arm-tdep.c (arm_software_single_step): Return NULL instead of 0.
784 * arm-tdep.h (arm_software_single_step): Update declaration.
785 * breakpoint.c (insert_single_step_breakpoints): New function.
786 * breakpoint.h (insert_single_step_breakpoints): Declare.
787 * cris-tdep.c (cris_software_single_step): Return
788 VEC (CORE_ADDR) *. Don't call insert_single_step_breakpoint.
789 * gdbarch.sh (software_single_step): Change it to return
790 VEC (CORE_ADDR) *.
791 * gdbarch.c, gdbarch.h: Regenerated.
792 * infrun.c (maybe_software_singlestep): Adjust.
793 * mips-tdep.c (mips_deal_with_atomic_sequence): Return
794 VEC (CORE_ADDR) *. Don't call insert_single_step_breakpoint.
795 (micromips_deal_with_atomic_sequence): Likewise.
796 (deal_with_atomic_sequence): Likewise.
797 (mips_software_single_step): Likewise.
798 * mips-tdep.h (mips_software_single_step): Update declaration.
799 * moxie-tdep.c (moxie_software_single_step): Likewise.
800 * nios2-tdep.c (nios2_software_single_step): Likewise.
801 * ppc-tdep.h (ppc_deal_with_atomic_sequence): Update
802 declaration.
803 * record-full.c (record_full_resume): Adjust.
804 (record_full_wait_1): Likewise.
805 * rs6000-aix-tdep.c (rs6000_software_single_step): Return
806 VEC (CORE_ADDR) *. Don't call insert_single_step_breakpoint.
807 * rs6000-tdep.c (ppc_deal_with_atomic_sequence): Return
808 VEC (CORE_ADDR) *. Don't call insert_single_step_breakpoint.
809 * s390-linux-tdep.c (s390_software_single_step): Likewise.
810 * sparc-tdep.c (sparc_software_single_step): Likewise.
811 * spu-tdep.c (spu_software_single_step): Likewise.
812 * tic6x-tdep.c (tic6x_software_single_step): Likewise.
813
814 2016-11-08 Yao Qi <yao.qi@linaro.org>
815
816 * arm-linux-tdep.c (arm_linux_software_single_step): Write
817 adjusted address back to vector. Call insert_single_step_breakpoint
818 in a new loop.
819 * arm-tdep.c (arm_software_single_step): Likewise.
820
821 2016-11-08 Yao Qi <yao.qi@linaro.org>
822
823 * arm-linux-tdep.c (arm_linux_software_single_step): Don't
824 call arm_insert_single_step_breakpoint, call
825 insert_single_step_breakpoint instead.
826 * arm-tdep.c (arm_insert_single_step_breakpoint): Remove.
827 (arm_software_single_step): Don't call
828 arm_insert_single_step_breakpoint, call
829 insert_single_step_breakpoint instead.
830 * arm-tdep.h (arm_insert_single_step_breakpoint): Remove
831 declaration.
832
833 2016-11-08 Cordian A. Daniluk <th3c0r1uk@gmail.com>
834
835 PR breakpoints/20739
836 * breakpoint.c (check_fast_tracepoint_sals): Don't print duplicate
837 0x prefix.
838
839 2016-11-08 Yao Qi <yao.qi@linaro.org>
840
841 * rust-lang.c (val_print_struct): Fix indentation.
842
843 2016-11-08 Lionel Flandrin <lionel@svkt.org>
844
845 * remote.c (process_g_packet): Detect truncated registers in 'g'
846 packets and raise an error.
847
848 2016-11-07 Doug Evans <dje@google.com>
849
850 * guile/scm-value.c (gdbscm_value_field): Fix call to value_struct_elt.
851 * python/py-value.c (valpy_getitem): Ditto.
852
853 2016-11-07 Doug Evans <dje@google.com>
854
855 * i386-tdep.c (i386_gdbarch_init): Add comments.
856
857 2016-11-07 Doug Evans <dje@google.com>
858
859 * python/py-unwind.c (unwind_infopy_str): Fix use of VEC_iterate.
860
861 2016-11-07 Doug Evans <dje@google.com>
862
863 * configure.tgt (x86_64-*-elf*): Remove i386bsd-tdep.o.
864
865 2016-11-04 Simon Marchi <simon.marchi@polymtl.ca>
866
867 * maint.c (scoped_command_stats::scoped_command_stats): Fix typo.
868 * ppcnbsd-tdep.c (_initialize_ppcnbsd_tdep): Likewise.
869 * ppcobsd-tdep.c (_initialize_ppcobsd_tdep): Likewise.
870 * ui-out.c (ui_out_new): Likewise.
871 * utils.c (init_page_info): Likewise.
872 (reset_prompt_for_continue_wait_time): Likewise.
873 * windows-nat.c (windows_init_thread_list): Likewise.
874 * xtensa-tdep.c (call0_analyze_prologue): Likewise.
875
876 2016-10-29 Manish Goregaokar <manish@mozilla.com>
877
878 * rust-exp.y: Parse `sizeof(exp)` as `UNOP_SIZEOF`.
879
880 2016-10-28 Manish Goregaokar <manish@mozilla.com>
881
882 * rust-lang.c (rust_union_is_untagged): Add function to check if a
883 union is an untagged union.
884 (rust_val_print): Handle printing of untagged union values.
885 (rust_print_type): Handle printing of untagged union types.
886 (rust_evaluate_subexp): Handle evaluating field access on untagged
887 unions.
888
889 2016-10-27 Manish Goregaokar <manish@mozilla.com>
890
891 * rust-lang.c (rust_get_disr_info): Treat univariant enums without
892 discriminants as encoded enums with a real field.
893 * rust-lang.c (rust_evaluate_subexp): Handle field access on
894 encoded struct-like enums.
895
896 2016-11-03 Yao Qi <yao.qi@linaro.org>
897
898 * Makefile.in (.y.c): Replace YY_NULL with YY_NULLPTR.
899
900 2016-11-03 Yao Qi <yao.qi@linaro.org>
901 Pedro Alves <palves@redhat.com>
902
903 * aarch64-tdep.c (aarch64_default_breakpoint): Change it to
904 constexpr. Don't use GDBARCH_BREAKPOINT_MANIPULATION.
905 (aarch64_gdbarch_init): Don't use
906 SET_GDBARCH_BREAKPOINT_MANIPULATION.
907 * alpha-tdep.c (break_insn): Rename to alpha_break_insn.
908 Don't use GDBARCH_BREAKPOINT_MANIPULATION.
909 (alpha_gdbarch_init): Don't use
910 SET_GDBARCH_BREAKPOINT_MANIPULATION.
911 * arc-tdep.c (arc_gdbarch_init): Don't use
912 SET_GDBARCH_BREAKPOINT_MANIPULATION.
913 * arch-utils.h (GDBARCH_BREAKPOINT_MANIPULATION): Remove.
914 (struct bp_manipulation): New.
915 (SET_GDBARCH_BREAKPOINT_MANIPULATION): Remove.
916 (struct bp_manipulation_endian): New.
917 (BP_MANIPULATION): New.
918 (BP_MANIPULATION_ENDIAN): New.
919 * arm-tdep.c (arm_gdbarch_init): Don't use
920 SET_GDBARCH_BREAKPOINT_MANIPULATION.
921 * avr-tdep.c (avr_break_insn): Change it constexpr.
922 (avr_gdbarch_init): Don't use
923 SET_GDBARCH_BREAKPOINT_MANIPULATION.
924 * bfin-tdep.c (bfin_gdbarch_init): Likewise.
925 * cris-tdep.c (cris_gdbarch_init): Likewise.
926 * frv-tdep.c (breakpoint): Rename it to frv_break_insn, and
927 change its type to constexpr. Don't use
928 GDBARCH_BREAKPOINT_MANIPULATION.
929 (frv_gdbarch_init): Don't use
930 SET_GDBARCH_BREAKPOINT_MANIPULATION.
931 * ft32-tdep.c (breakpoint): Rename it to ft32_break_insn and
932 change its type to constexpr. Don't use
933 GDBARCH_BREAKPOINT_MANIPULATION.
934 (ft32_gdbarch_init): Don't use
935 SET_GDBARCH_BREAKPOINT_MANIPULATION.
936 * h8300-tdep.c (breakpoint): Rename it to h8300_break_insn.
937 Don't use GDBARCH_BREAKPOINT_MANIPULATION.
938 (h8300_gdbarch_init): Don't use
939 SET_GDBARCH_BREAKPOINT_MANIPULATION.
940 * hppa-tdep.c (breakpoint): Rename it to h8300_break_insn.
941 Don't use GDBARCH_BREAKPOINT_MANIPULATION.
942 (hppa_gdbarch_init): Don't use
943 SET_GDBARCH_BREAKPOINT_MANIPULATION.
944 * i386-tdep.c (break_insn): Rename it to i386_break_insn.
945 Don't use GDBARCH_BREAKPOINT_MANIPULATION.
946 (i386_gdbarch_init): Don't use
947 SET_GDBARCH_BREAKPOINT_MANIPULATION.
948 * iq2000-tdep.c (iq2000_gdbarch_init): Don't use
949 SET_GDBARCH_BREAKPOINT_MANIPULATION.
950 * lm32-tdep.c (breakpoint): Rename it to lm32_break_insn and
951 change its type to constexpr. Don't use
952 GDBARCH_BREAKPOINT_MANIPULATION.
953 (lm32_gdbarch_init): Don't use
954 SET_GDBARCH_BREAKPOINT_MANIPULATION.
955 * m32c-tdep.c (break_insn): Rename it to m32c_break_insn and change
956 its type to constexpr. Don't use GDBARCH_BREAKPOINT_MANIPULATION.
957 (m32c_gdbarch_init): Don't use
958 SET_GDBARCH_BREAKPOINT_MANIPULATION.
959 * m32r-tdep.c (m32r_gdbarch_init): Likewise.
960 * m68hc11-tdep.c (breakpoint): Rename it to m68hc11_break_insn and
961 change its type to constexpr.
962 Don't use GDBARCH_BREAKPOINT_MANIPULATION.
963 (m68hc11_gdbarch_init): Don't use SET_GDBARCH_BREAKPOINT_MANIPULATION.
964 * m68k-tdep.c (break_insn): Rename it to m68k_break_insn and change
965 its type to constexpr. Don't use GDBARCH_BREAKPOINT_MANIPULATION.
966 (m68k_gdbarch_init): Don't use
967 SET_GDBARCH_BREAKPOINT_MANIPULATION.
968 * m88k-tdep.c (break_insn): Rename it to m88k_break_insn and change
969 its type to constexpr. Don't use GDBARCH_BREAKPOINT_MANIPULATION.
970 (m88k_gdbarch_init): Don't use
971 SET_GDBARCH_BREAKPOINT_MANIPULATION.
972 * mep-tdep.c (breakpoint): Rename it to mep_break_insn and change
973 its type to constexpr. Don't use GDBARCH_BREAKPOINT_MANIPULATION.
974 (mep_gdbarch_init): Don't use
975 SET_GDBARCH_BREAKPOINT_MANIPULATION.
976 * microblaze-tdep.c (break_insn): Rename it to
977 microblaze_break_insn and change its type to constexpr. Don't use
978 GDBARCH_BREAKPOINT_MANIPULATION.
979 (microblaze_gdbarch_init): Don't use
980 SET_GDBARCH_BREAKPOINT_MANIPULATION.
981 * mips-tdep.c (mips_gdbarch_init): Likewise.
982 * mn10300-tdep.c (breakpoint): Rename it to mn10300_break_insn and
983 change its type to constexpr. Don't use
984 GDBARCH_BREAKPOINT_MANIPULATION.
985 (mn10300_gdbarch_init): Don't use
986 SET_GDBARCH_BREAKPOINT_MANIPULATION.
987 * moxie-tdep.c (breakpoint): Rename it to moxie_break_insn and
988 change its type to constexpr. Don't use
989 GDBARCH_BREAKPOINT_MANIPULATION.
990 (moxie_gdbarch_init): Don't use
991 SET_GDBARCH_BREAKPOINT_MANIPULATION.
992 * msp430-tdep.c (breakpoint): Rename it to msp430_break_insn
993 and change its type to constexpr. Don't use
994 GDBARCH_BREAKPOINT_MANIPULATION.
995 (msp430_gdbarch_init): Don't use
996 SET_GDBARCH_BREAKPOINT_MANIPULATION.
997 * mt-tdep.c (mt_gdbarch_init): Likewise.
998 * nds32-tdep.c (break_insn): Rename it to nds32_break_insn
999 and change its type to constexpr. Don't use
1000 GDBARCH_BREAKPOINT_MANIPULATION.
1001 (nds32_gdbarch_init): Don't use
1002 SET_GDBARCH_BREAKPOINT_MANIPULATION.
1003 * nios2-tdep.c (nios2_gdbarch_init): Likewise.
1004 * rl78-tdep.c (breakpoint): Rename it to rl78_break_ins
1005 and change its type to rl78_break_insn. Don't use
1006 GDBARCH_BREAKPOINT_MANIPULATION.
1007 (rl78_gdbarch_init): Don't use
1008 SET_GDBARCH_BREAKPOINT_MANIPULATION.
1009 * rs6000-tdep.c (big_breakpoint): Change its type to
1010 constexpr.
1011 (little_breakpoint): Likewise.
1012 Don't use GDBARCH_BREAKPOINT_MANIPULATION_ENDIAN.
1013 (rs6000_gdbarch_init): Don't use
1014 SET_GDBARCH_BREAKPOINT_MANIPULATION.
1015 * rx-tdep.c (breakpoint): Rename it to rx_break_insn and
1016 change its type to constexpr. Don't use
1017 GDBARCH_BREAKPOINT_MANIPULATION.
1018 (rx_gdbarch_init): Don't use
1019 SET_GDBARCH_BREAKPOINT_MANIPULATION.
1020 * s390-linux-tdep.c (breakpoint): Rename it to s390_break_insn
1021 and change its type to constexpr. Don't use
1022 GDBARCH_BREAKPOINT_MANIPULATION
1023 (s390_gdbarch_init): Don't use
1024 SET_GDBARCH_BREAKPOINT_MANIPULATION.
1025 * score-tdep.c (score_gdbarch_init): Likewise.
1026 * sh-tdep.c (sh_gdbarch_init): Likewise.
1027 * sh64-tdep.c (sh64_gdbarch_init): Likewise.
1028 * sparc-tdep.c (break_insn): Rename it to sparc_break_insn
1029 and change its type to constexpr. Don't use
1030 GDBARCH_BREAKPOINT_MANIPULATION.
1031 (sparc32_gdbarch_init): Don't use
1032 SET_GDBARCH_BREAKPOINT_MANIPULATION.
1033 * spu-tdep.c (breakpoint): Rename it to spu_break_insn and change
1034 its type to constexpr. Don't use
1035 GDBARCH_BREAKPOINT_MANIPULATION.
1036 (spu_gdbarch_init): Don't use
1037 SET_GDBARCH_BREAKPOINT_MANIPULATION.
1038 * tic6x-tdep.c (tic6x_gdbarch_init): Likewise.
1039 * tilegx-tdep.c (breakpoint): Rename it to tilegx_break_insn
1040 and change its type to constexpr. Don't use
1041 GDBARCH_BREAKPOINT_MANIPULATION.
1042 (tilegx_gdbarch_init): Don't use
1043 SET_GDBARCH_BREAKPOINT_MANIPULATION.
1044 * v850-tdep.c (v850_gdbarch_init): Likewise.
1045 * vax-tdep.c (break_insn): Rename it to vax_break_insn and
1046 change its type to constexpr.
1047 Don't use GDBARCH_BREAKPOINT_MANIPULATION.
1048 (vax_gdbarch_init): Don't use
1049 SET_GDBARCH_BREAKPOINT_MANIPULATION.
1050 * xstormy16-tdep.c (breakpoint): Rename it to
1051 xstormy16_break_insn and change its type to constexpr.
1052 Don't use GDBARCH_BREAKPOINT_MANIPULATION.
1053 (xstormy16_gdbarch_init): Don't use
1054 SET_GDBARCH_BREAKPOINT_MANIPULATION.
1055 * xtensa-tdep.c (xtensa_gdbarch_init): Likewise.
1056
1057 2016-11-03 Yao Qi <yao.qi@linaro.org>
1058
1059 * arm-tdep.c (arm_override_mode): Remove.
1060 (arm_pc_is_thumb): Update.
1061 (arm_insert_single_step_breakpoint): Update.
1062
1063 2016-11-03 Yao Qi <yao.qi@linaro.org>
1064
1065 * arch-utils.c (default_breakpoint_kind_from_current_state):
1066 New function.
1067 * arch-utils.h (default_breakpoint_kind_from_current_state):
1068 Declare.
1069 * arm-tdep.c (arm_breakpoint_kind_from_current_state): New
1070 function.
1071 (arm_gdbarch_init): Call
1072 set_gdbarch_breakpoint_kind_from_current_state.
1073 * breakpoint.c (breakpoint_kind): Call
1074 gdbarch_breakpoint_kind_from_current_state for single step
1075 breakpoint. Update comments.
1076 * gdbarch.sh (breakpoint_kind_from_current_state): New.
1077 * gdbarch.c, gdbarch.h: Regenerate.
1078
1079 2016-11-03 Yao Qi <yao.qi@linaro.org>
1080
1081 * arch-utils.c (default_breakpoint_from_pc): New function.
1082 * arch-utils.h (GDBARCH_BREAKPOINT_FROM_PC): Remove.
1083 (GDBARCH_BREAKPOINT_MANIPULATION): Don't use
1084 GDBARCH_BREAKPOINT_FROM_PC.
1085 (SET_GDBARCH_BREAKPOINT_MANIPULATION): Don't call
1086 set_gdbarch_breakpoint_from_pc.
1087 (default_breakpoint_from_pc): Remove declaration.
1088 * gdbarch.sh (breakpoint_from_pc): Add its default implementation.
1089 * gdbarch.c, gdbarch.h: Regenerate.
1090 * arm-tdep.c: Don't use GDBARCH_BREAKPOINT_FROM_PC.
1091 * arc-tdep.c, bfin-tdep.c, cris-tdep.c, iq2000-tdep.c: Likewise.
1092 * m32r-tdep.c, mips-tdep.c, mt-tdep.c: Likewise.
1093 * nios2-tdep.c, score-tdep.c, sh-tdep.c: Likewise.
1094 * sh64-tdep.c, tic6x-tdep.c, v850-tdep.c, xtensa-tdep.c: Likewise.
1095
1096 2016-11-03 Yao Qi <yao.qi@linaro.org>
1097
1098 * arch-utils.c (default_remote_breakpoint_from_pc): Remove.
1099 * arch-utils.h (default_remote_breakpoint_from_pc): Remove.
1100 * arm-tdep.c (arm_remote_breakpoint_from_pc): Remove.
1101 (arm_gdbarch_init): Don't call
1102 set_gdbarch_remote_breakpoint_from_pc.
1103 * gdbarch.sh (remote_breakpoint_from_pc): Remove.
1104 * gdbarch.c, gdbarch.h: Regenerate.
1105 * mips-tdep.c (mips_remote_breakpoint_from_pc): Remove.
1106 (mips_gdbarch_init): Don't call
1107 set_gdbarch_remote_breakpoint_from_pc.
1108
1109 2016-11-03 Yao Qi <yao.qi@linaro.org>
1110
1111 * breakpoint.h (struct bp_target_info) <placed_size>: Remove.
1112 <kind>: New field.
1113 Update all users.
1114
1115 2016-11-03 Yao Qi <yao.qi@linaro.org>
1116
1117 * arch-utils.h (GDBARCH_BREAKPOINT_MANIPULATION): Define
1118 breakpoint_kind_from_pc and sw_breakpoint_from_kind.
1119 (GDBARCH_BREAKPOINT_MANIPULATION_ENDIAN): Likewise.
1120 (SET_GDBARCH_BREAKPOINT_MANIPULATION): Call
1121 set_gdbarch_breakpoint_kind_from_pc and
1122 set_gdbarch_sw_breakpoint_from_kind.
1123 * arm-tdep.c: Add comments.
1124 * bfin-tdep.c: Likewise.
1125 * breakpoint.c (breakpoint_kind): New function.
1126 (insert_bp_location): Set target_info.placed_size and
1127 target_info.placed_address.
1128 (bkpt_insert_location): Likewise.
1129 * cris-tdep.c: Add comments.
1130 * gdbarch.sh (breakpoint_kind_from_pc): New.
1131 (sw_breakpoint_from_kind): New.
1132 * gdbarch.c, gdbarch.h: Regenerated.
1133 * ia64-tdep.c (ia64_memory_insert_breakpoint): Don't set
1134 bp_tgt->placed_size.
1135 (ia64_memory_remove_breakpoint): Don't assert
1136 bp_tgt->placed_size.
1137 (ia64_breakpoint_kind_from_pc): New function.
1138 (ia64_gdbarch_init): Install ia64_breakpoint_kind_from_pc.
1139 * m32r-tdep.c (m32r_memory_insert_breakpoint): Don't set
1140 bp_tgt->placed_size.
1141 * mem-break.c (default_memory_insert_breakpoint): Don't set
1142 bp_tgt->placed_size. Call gdbarch_sw_breakpoint_from_kind.
1143 (default_memory_remove_breakpoint): Call
1144 gdbarch_sw_breakpoint_from_kind.
1145 (memory_validate_breakpoint): Don't check bp_tgt->placed_size.
1146 * mips-tdep.c: Add comments.
1147 * mt-tdep.c: Likewise.
1148 * nios2-tdep.c: Likewise.
1149 * record-full.c (record_full_insert_breakpoint): Don't call
1150 gdbarch_breakpoint_from_pc. Don't set bp_tgt->placed_address
1151 and bp_tgt->placed_size.
1152 * remote.c (remote_insert_breakpoint): Don't call
1153 gdbarch_remote_breakpoint_from_pc. Use bp_tgt->placed_size.
1154 Don't set bp_tgt->placed_address and bp_tgt->placed_size.
1155 (remote_insert_hw_breakpoint): Likewise.
1156 * score-tdep.c: Likewise.
1157 * sh-tdep.c: Likewise.
1158 * tic6x-tdep.c: Likewise.
1159 * v850-tdep.c: Likewise.
1160 * xtensa-tdep.c: Likewise.
1161
1162 2016-11-03 Yao Qi <yao.qi@linaro.org>
1163
1164 * arch-utils.h (GDBARCH_BREAKPOINT_FROM_PC): New macro.
1165 (GDBARCH_BREAKPOINT_MANIPULATION_ENDIAN): New macro.
1166 * arm-tdep.c (arm_breakpoint_from_pc): Remove.
1167 (arm_breakpoint_kind_from_pc): New function.
1168 (arm_sw_breakpoint_from_kind): New function.
1169 (arm_breakpoint_from_pc): Call arm_breakpoint_kind_from_pc
1170 and arm_sw_breakpoint_from_kind.
1171 Use GDBARCH_BREAKPOINT_FROM_PC.
1172 (arm_remote_breakpoint_from_pc): Call
1173 arm_breakpoint_kind_from_pc.
1174 (arm_gdbarch_init): Replace set_gdbarch_breakpoint_from_pc
1175 with SET_GDBARCH_BREAKPOINT_MANIPULATION.
1176 * arc-tdep.c: Likewise.
1177 * bfin-tdep.c: Likewise.
1178 * cris-tdep.c: Likewise.
1179 * iq2000-tdep.c: Likewise.
1180 * m32r-tdep.c: Likewise.
1181 * mips-tdep.c: Likewise.
1182 * mt-tdep.c: Likewise.
1183 * nios2-tdep.c: Likewise.
1184 * rs6000-tdep.c: Likewise.
1185 * score-tdep.c: Likewise.
1186 * sh-tdep.c: Likewise.
1187 * sh64-tdep.c: Likewise.
1188 * tic6x-tdep.c: Likewise.
1189 * v850-tdep.c: Likewise.
1190 * xtensa-tdep.c: Likewise.
1191
1192 2016-11-03 Yao Qi <yao.qi@linaro.org>
1193
1194 * mips-tdep.c (mips_breakpoint_kind): New enum.
1195 (mips_breakpoint_from_pc): Use it.
1196 (mips_remote_breakpoint_from_pc): Likewise.
1197
1198 2016-11-03 Yao Qi <yao.qi@linaro.org>
1199
1200 * arch-utils.h (GDBARCH_BREAKPOINT_MANIPULATION): New macro.
1201 (SET_GDBARCH_BREAKPOINT_MANIPULATION): New macro.
1202 aarch64-tdep.c (aarch64_breakpoint_from_pc): Remove. Use
1203 GDBARCH_BREAKPOINT_MANIPULATION.
1204 (aarch64_gdbarch_init): Replace set_gdbarch_breakpoint_from_pc
1205 with SET_GDBARCH_BREAKPOINT_MANIPULATION.
1206 * alpha-tdep.c: Likewise.
1207 * avr-tdep.c: Likewise.
1208 * frv-tdep.c: Likewise.
1209 * ft32-tdep.c: Likewise.
1210 * h8300-tdep.c: Likewise.
1211 * hppa-tdep.c: Likewise.
1212 * i386-tdep.c: Likewise.
1213 * lm32-tdep.c: Likewise.
1214 * m32c-tdep.c: Likewise.
1215 * m68hc11-tdep.c: Likewise.
1216 * m68k-tdep.c: Likewise.
1217 * m88k-tdep.c: Likewise.
1218 * mep-tdep.c: Likewise.
1219 * microblaze-tdep.c: Likewise.
1220 * mn10300-tdep.c: Likewise.
1221 * moxie-tdep.c: Likewise.
1222 * msp430-tdep.c: Likewise.
1223 * rl78-tdep.c: Likewise.
1224 * rx-tdep.c: Likewise.
1225 * s390-linux-tdep.c: Likewise.
1226 * sparc-tdep.c: Likewise.
1227 * spu-tdep.c: Likewise.
1228 * tilegx-tdep.c: Likewise.
1229 * vax-tdep.c: Likewise.
1230 * xstormy16-tdep.c: Likewise.
1231
1232 2016-11-03 Yao Qi <yao.qi@linaro.org>
1233
1234 * mem-break.c (default_memory_insert_breakpoint): Don't check
1235 'bp' against NULL.
1236 * microblaze-linux-tdep.c (microblaze_linux_memory_remove_breakpoint):
1237 Likewise.
1238 * ppc-linux-tdep.c (ppc_linux_memory_remove_breakpoint): Likewise.
1239
1240 2016-11-02 Tom Tromey <tom@tromey.com>
1241
1242 * dwarf2loc.c (dwarf_evaluate_loc_desc::get_base_type): Rename
1243 from impl_get_base_type. Rewrite.
1244 (struct dwarf_expr_baton): Remove.
1245 (dwarf_evaluate_loc_desc::push_dwarf_reg_entry_value): Save and
1246 restore more fields.
1247 (symbol_needs_eval_context::get_frame_pc): New method.
1248 * dwarf2expr.h (dwarf_expr_context::get_base_type): Now public,
1249 virtual.
1250 (dwarf_expr_context::impl_get_base_type): Remove.
1251 * dwarf2expr.c (dwarf_expr_context::get_base_type): Remove.
1252
1253 2016-10-31 Maciej W. Rozycki <macro@imgtec.com>
1254
1255 * configure.ac <mips-sgi-irix5*>: Remove <sys/proc.h> _KMEMUSER
1256 workaround.
1257 * configure: Regenerate.
1258 * config.in: Regenerate.
1259
1260 2016-10-31 Maciej W. Rozycki <macro@imgtec.com>
1261
1262 * mips-tdep.c (mips_r3041_reg_names): Remove.
1263 (mips_breakpoint_from_pc): Remove IDT and PMON breakpoint
1264 encodings.
1265
1266 2016-10-31 Maciej W. Rozycki <macro@imgtec.com>
1267
1268 * defs.h (gdb_osabi): Remove GDB_OSABI_IRIX enum value.
1269 * osabi.c (gdb_osabi_names): Remove "Irix" entry.
1270 * mips-tdep.c (mips_irix_reg_names): Remove.
1271 (mips_register_type): Remove GDB_OSABI_IRIX code.
1272 (mips_pseudo_register_type): Likewise.
1273 (mips_breakpoint_from_pc): Likewise.
1274 (mips_gdbarch_init): Likewise.
1275
1276 2016-10-29 Pedro Alves <palves@redhat.com>
1277
1278 * NEWS: Clarify C++ requirement.
1279
1280 2016-10-29 Pedro Alves <palves@redhat.com>
1281
1282 * NEWS: Adjust to mention C++11 requirement.
1283
1284 2016-10-29 Eli Zaretskii <eliz@gnu.org>
1285
1286 * NEWS: Mention support for redirection on MS-Windows.
1287
1288 * windows-nat.c (redir_open, redir_set_redirection)
1289 (redirect_inferior_handles) [!__CYGWIN__]: New functions.
1290 (windows_create_inferior) [!__CYGWIN__]: Use
1291 'redirect_inferior_handles' to redirect standard handles of the
1292 debuggee if the command line requests that.
1293
1294 2016-10-28 Pedro Alves <palves@redhat.com>
1295
1296 * Makefile.in (CXX_DIALECT): Get from configure.
1297 (COMPILE.pre, CC_LD): Append $(CXX_DIALECT).
1298 (FLAGS_TO_PASS): Pass CXX_DIALECT.
1299 * acinclude.m4: Include ax_cxx_compile_stdcxx.m4.
1300 * ax_cxx_compile_stdcxx.m4: Add FSF copyright header. Set and
1301 AC_SUBST CXX_DIALECT instead of changing CXX/CXXCPP.
1302 * configure.ac: Call AX_CXX_COMPILE_STDCXX.
1303 * config.in: Regenerate.
1304 * configure: Regenerate.
1305
1306 2016-10-28 Pedro Alves <palves@redhat.com>
1307
1308 * ax_cxx_compile_stdcxx.m4: New file.
1309
1310 2016-10-28 Pedro Alves <palves@redhat.com>
1311
1312 * maint.c (scoped_command_stats::scoped_command_stats): Clear
1313 m_space_enabled, m_time_enabled and m_symtab_enabled.
1314
1315 2016-10-28 Markus Metzger <markus.t.metzger@intel.com>
1316
1317 * btrace.c (bfun_s): New typedef.
1318 (ftrace_update_caller): Print caller in debug dump.
1319 (ftrace_get_caller, ftrace_match_backtrace, ftrace_fixup_level)
1320 (ftrace_compute_global_level_offset, ftrace_connect_bfun)
1321 (ftrace_connect_backtrace, ftrace_bridge_gap, btrace_bridge_gaps): New.
1322 (btrace_compute_ftrace_bts): Pass vector of gaps. Collect gaps.
1323 (btrace_compute_ftrace_pt): Likewise.
1324 (btrace_compute_ftrace): Split into this, ...
1325 (btrace_compute_ftrace_1): ... this, and ...
1326 (btrace_finalize_ftrace): ... this. Call btrace_bridge_gaps.
1327
1328 2016-10-28 Markus Metzger <markus.t.metzger@intel.com>
1329
1330 * btrace.c (ftrace_new_return): Start from the previous function's
1331 level if we can't find a matching call for a return.
1332
1333 2016-10-28 Markus Metzger <markus.t.metzger@intel.com>
1334
1335 * btrace.c (ftrace_update_function): Update tail call heuristic.
1336
1337 2016-10-28 Markus Metzger <markus.t.metzger@intel.com>
1338
1339 * btrace.c (btrace_compute_ftrace_bts, ftrace_add_pt): Allow
1340 leading gaps.
1341 * record-btrace.c (record_btrace_single_step_forward)
1342 (record_btrace_single_step_backward): Jump back to last
1343 instruction if step ends at a gap.
1344 (record_btrace_goto_begin): Skip gaps.
1345
1346 2016-10-28 Markus Metzger <markus.t.metzger@intel.com>
1347
1348 * btrace.c (ftrace_add_pt): Fix gap indication. Add warning for non-
1349 contiguous trace and overflow. Rephrase trace decode warning and print
1350 instruction number. Remove dead gaps warning.
1351 (btrace_compute_ftrace_bts): Rephrase warnings and print instruction
1352 number.
1353
1354 2016-10-25 Sandra Loosemore <sandra@codesourcery.com>
1355 Luis Machado <lgustavo@codesourcery.com>
1356 Pedro Alves <palves@redhat.com>
1357
1358 PR gdb/20569
1359 * exceptions.c (exception_print_same): Moved here from exec.c.
1360 * exceptions.h (exception_print_same): Declare.
1361 * exec.h: Include "symfile-add-flags.h".
1362 (try_open_exec_file): New declaration.
1363 * exec.c (exception_print_same): Moved to exceptions.c.
1364 (try_open_exec_file): New function.
1365 (exec_file_locate_attach): Rename exec_file and full_exec_path
1366 variables to avoid confusion between target and host pathnames.
1367 Move pathname processing logic to exec_file_find. Do not return
1368 early if pathname lookup fails; Call try_open_exec_file.
1369 * infrun.c (follow_exec): Split and rename execd_pathname variable
1370 to avoid confusion between target and host pathnames. Warn if
1371 pathname lookup fails. Pass target pathname to
1372 target_follow_exec, not hostpathname. Call try_open_exec_file.
1373 * main.c (symbol_file_add_main_adapter): New function.
1374 (captured_main_1): Use it.
1375 * solib-svr4.c (open_symbol_file_object): Adjust to pass
1376 symfile_add_flags to symbol_file_add_main.
1377 * solib.c (exec_file_find): Incorporate fallback logic for relative
1378 pathnames formerly in exec_file_locate_attach.
1379 * symfile.c (symbol_file_add_main, symbol_file_add_main_1):
1380 Replace 'from_tty' parameter with a symfile_add_file.
1381 (symbol_file_command): Adjust to pass symfile_add_flags to
1382 symbol_file_add_main.
1383 * symfile.h (symbol_file_add_main): Replace 'from_tty' parameter
1384 with a symfile_add_file.
1385
1386 2016-10-26 Pedro Alves <palves@redhat.com>
1387
1388 * coffread.c (coff_symfile_read): Use symfile_add_flags.
1389 * dbxread.c (dbx_symfile_read): Ditto.
1390 * elfread.c (elf_symfile_read): Ditto.
1391 * inferior.h: Include symfile-add-flags.h.
1392 (struct inferior) <symfile_flags>: Now symfile_add_flags.
1393 * machoread.c (macho_add_oso_symfile, macho_symfile_read_all_oso)
1394 (macho_symfile_read, mipscoff_symfile_read): Use
1395 symfile_add_flags.
1396 * objfile-flags.h: New file.
1397 * objfiles.c (allocate_objfile): Use objfile_flags.
1398 * objfiles.h: Include objfile-flags.h.
1399 (struct objfile) <flags>: Now an objfile_flags.
1400 (OBJF_REORDERED, OBJF_SHARED, OBJF_READNOW, OBJF_USERLOADED)
1401 (OBJF_PSYMTABS_READ, OBJF_MAINLINE, OBJF_NOT_FILENAME): Delete.
1402 Converted to an enum-flags in objfile-flags.h.
1403 (allocate_objfile): Use objfile_flags.
1404 * python/py-objfile.c (objfpy_add_separate_debug_file): Remove
1405 unnecessary local.
1406 * solib.c (solib_read_symbols, solib_add)
1407 (reload_shared_libraries_1): Use symfile_add_flags.
1408 * solib.h: Include "symfile-add-flags.h".
1409 (solib_read_symbols): Use symfile_add_flags.
1410 * symfile-add-flags.h: New file.
1411 * symfile-debug.c (debug_sym_read): Use symfile_add_flags.
1412 * symfile-mem.c (symbol_file_add_from_memory): Use
1413 symfile_add_flags.
1414 * symfile.c (read_symbols, syms_from_objfile_1)
1415 (syms_from_objfile, finish_new_objfile): Use symfile_add_flags.
1416 (symbol_file_add_with_addrs): Use symfile_add_flags and
1417 objfile_flags.
1418 (symbol_file_add_separate): Use symfile_add_flags.
1419 (symbol_file_add_from_bfd, symbol_file_add): Use symfile_add_flags
1420 and objfile_flags.
1421 (symbol_file_add_main_1): : Use objfile_flags. Fix add_flags vs
1422 flags confusion.
1423 (symbol_file_command): Use objfile_flags.
1424 (add_symbol_file_command): Use symfile_add_flags and
1425 objfile_flags.
1426 (clear_symtab_users): Use symfile_add_flags.
1427 * symfile.h: Include "symfile-add-flags.h" and "objfile-flags.h".
1428 (struct sym_fns) <sym_read>: Use symfile_add_flags.
1429 (clear_symtab_users): Use symfile_add_flags.
1430 (enum symfile_add_flags): Delete, moved to symfile-add-flags.h and
1431 converted to enum-flags.
1432 (symbol_file_add, symbol_file_add_from_bfd)
1433 (symbol_file_add_separate): Use symfile_add_flags.
1434 * xcoffread.c (xcoff_initial_scan): Use symfile_add_flags.
1435
1436 2016-10-26 Pedro Alves <palves@redhat.com>
1437
1438 * inferior.h (ALL_NON_EXITED_INFERIORS): New macro.
1439 * infrun.c (do_target_resume): Call target_commit_resume.
1440 (proceed): Defer target_commit_resume while looping over threads,
1441 resuming them. Call target_commit_resume at the end.
1442 * record-btrace.c (record_btrace_commit_resume): New function.
1443 (init_record_btrace_ops): Install it as to_commit_resume method.
1444 * record-full.c (record_full_commit_resume): New function.
1445 (record_full_wait_1): Call the beneath target's to_commit_resume
1446 method.
1447 (init_record_full_ops): Install record_full_commit_resume as
1448 to_commit_resume method.
1449 * remote.c (struct private_thread_info) <last_resume_step,
1450 last_resume_sig, vcont_resumed>: New fields.
1451 (remote_add_thread): Set the new thread's vcont_resumed flag.
1452 (demand_private_info): Delete.
1453 (get_private_info_thread, get_private_info_ptid): New functions.
1454 (remote_update_thread_list): Adjust.
1455 (process_initial_stop_replies): Clear the thread's vcont_resumed
1456 flag.
1457 (remote_resume): If connected in non-stop mode, record the resume
1458 request and return early.
1459 (struct private_inferior): New.
1460 (struct vcont_builder): New.
1461 (vcont_builder_restart, vcont_builder_flush)
1462 (vcont_builder_push_action): New functions.
1463 (MAX_ACTION_SIZE): New macro.
1464 (remote_commit_resume): New function.
1465 (thread_pending_fork_status, is_pending_fork_parent_thread): New
1466 functions.
1467 (check_pending_event_prevents_wildcard_vcont_callback)
1468 (check_pending_events_prevent_wildcard_vcont): New functions.
1469 (process_stop_reply): Adjust. Clear the thread's vcont_resumed
1470 flag.
1471 (init_remote_ops): Install remote_commit_resume.
1472 * target-delegates.c: Regenerate.
1473 * target.c (defer_target_commit_resume): New global.
1474 (target_commit_resume, make_cleanup_defer_target_commit_resume):
1475 New functions.
1476 * target.h (struct target_ops) <to_commit_resume>: New field.
1477 (target_resume): Update comments.
1478 (target_commit_resume): New declaration.
1479
1480 2016-10-26 Pedro Alves <palves@redhat.com>
1481
1482 * inferior.c (exit_inferior_1): Free 'priv'.
1483
1484 2016-10-26 Pedro Alves <palves@redhat.com>
1485
1486 * remote.c (remote_resume_with_hc): New function, factored out
1487 from ...
1488 (remote_resume): ... this. Always try vCont first.
1489 (remote_vcont_resume): Rename to ...
1490 (remote_resume_with_vcont): ... this. Bail out if execution
1491 direction is reverse.
1492
1493 2016-10-25 Pedro Alves <palves@redhat.com>
1494
1495 * dwarf2expr.h (struct dwarf_expr_context) <~dwarf_expr_context>:
1496 Make virtual.
1497
1498 2016-10-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1499
1500 PR build/20712
1501 * defs.h: Remove obsolete comment
1502 (atof): Remove.
1503 * procfs.c (do_destroy_procinfo_cleanup): Add cast.
1504 (sysset_t_alloc): Likewise.
1505 (proc_set_traced_sysentry): Likewise.
1506 (proc_set_traced_sysexit): Likewise.
1507 [!PIOCLSTATUS && NEW_PROC_API] (do_closedir_cleanup): Likewise.
1508 (proc_get_LDT_entry): Initiate cleanups before returns.
1509 (procfs_wait): Use GDB_SIGNAL_0.
1510 (procfs_corefile_thread_callback): Add cast.
1511 * sol-thread.c (td_log_ftype, td_ta_new_ftype, td_ta_delete_ftype)
1512 (td_init_ftype, td_ta_get_ph_ftype, td_ta_get_nthreads_ftype)
1513 (td_ta_tsd_iter_ftype, td_ta_thr_iter_ftype)
1514 (td_thr_validate_ftype, td_thr_tsd_ftype, td_thr_get_info_ftype)
1515 (td_thr_getfpregs_ftype, td_thr_getxregsize_ftype)
1516 (td_thr_getxregs_ftype, td_thr_sigsetmask_ftype)
1517 (td_thr_setprio_ftype, td_thr_setsigpending_ftype)
1518 (td_thr_setfpregs_ftype, td_thr_setxregs_ftype)
1519 (td_ta_map_id2thr_ftype, td_ta_map_lwp2thr_ftype)
1520 (td_thr_getgregs_ftype, td_thr_setgregs_ftype): New typedefs.
1521 (p_td_log, p_td_ta_new, p_td_ta_delete, p_td_init, p_td_ta_get_ph)
1522 (p_td_ta_get_nthreads, p_td_ta_tsd_iter, p_td_ta_thr_iter)
1523 (p_td_thr_validate, p_td_thr_tsd, p_td_thr_get_info)
1524 (p_td_thr_getfpregs, p_td_thr_getxregsize, p_td_thr_getxregs)
1525 (p_td_thr_sigsetmask, p_td_thr_setprio, p_td_thr_setsigpending)
1526 (p_td_thr_setfpregs, p_td_thr_setxregs, p_td_ta_map_id2thr)
1527 (p_td_ta_map_lwp2thr, p_td_thr_getgregs, p_td_thr_setgregs): Use them.
1528 (ps_pdread): Add cast.
1529 (ps_ptread): Likewise.
1530 (resolve): Likewise.
1531 * top.c (gdb_safe_append_history): Print pid_t as long.
1532
1533 2016-10-25 Pedro Alves <palves@redhat.com>
1534
1535 * common/common-defs.h (__STDC_FORMAT_MACROS): Define.
1536
1537 2016-10-25 Pedro Alves <palves@redhat.com>
1538
1539 * common/new-op.c: Add comment about -fsanitize=address.
1540
1541 2016-10-25 Pedro Alves <palves@redhat.com>
1542
1543 * common/common-defs.h (__STDC_CONSTANT_MACROS)
1544 (__STDC_LIMIT_MACROS): Define.
1545
1546 2016-10-25 Yao Qi <yao.qi@linaro.org>
1547
1548 PR gdb/20716
1549 * common/new-op.c (__has_feature): New macro.
1550 Don't override operator new if asan is used.
1551
1552 2016-10-24 Luis Machado <lgustavo@codesourcery.com>
1553
1554 * exec.c (exec_file_locate_attach): Prevent NULL pointer dereference
1555 when duplicating a string.
1556
1557 2016-10-24 Luis Machado <lgustavo@codesourcery.com>
1558
1559 * exec.c (exception_print_same): Fix string comparison to use
1560 statically-allocated ones.
1561
1562 2016-10-21 Tom Tromey <tom@tromey.com>
1563
1564 * dwarf2expr.h (class dwarf_expr_context)
1565 <get_frame_base, get_frame_cfa, get_tls_address, dwarf_call,
1566 push_dwarf_block_entry_value, get_addr_index, get_object_address>:
1567 Now pure virtual.
1568 * dwarf2-frame.c (class dwarf_expr_executor)
1569 <get_frame_base, get_frame_cfa, get_tls_address, dwarf_call,
1570 push_dwarf_block_entry_value, get_addr_index, get_object_address>:
1571 New methods.
1572 <invalid>: New method.
1573
1574 2016-10-21 Tom Tromey <tom@tromey.com>
1575
1576 * minsyms.h (minimal_symbol_reader::record_full): "copy_name" now
1577 a bool.
1578 (record, record_with_info): Update.
1579 * minsyms.c (record): Fix indentation.
1580 (record_full): Fix indentation. Update for type change.
1581 * elfread.c (record_minimal_symbol): "copy_name" now a bool.
1582 (elf_symtab_read): "copy_names" now a bool.
1583 (elf_rel_plt_read, elf_read_minimal_symbols): Update.
1584
1585 2016-10-21 Tom Tromey <tom@tromey.com>
1586
1587 * main.c: Include <vector>.
1588 (cmdarg_s): Remove typedef. Don't define VEC.
1589 (captured_main_1): Use vector, not VEC. Remove cleanups.
1590
1591 2016-10-21 Tom Tromey <tom@tromey.com>
1592
1593 * dwarf2loc.c (struct dwarf_expr_context_funcs): Don't declare.
1594 (dwarf_expr_read_addr_from_reg, dwarf_expr_get_reg_value)
1595 (dwarf_expr_read_mem, dwarf_expr_frame_base): Rename; turn into
1596 methods.
1597 (get_frame_pc_for_per_cu_dwarf_call): New function.
1598 (dwarf_expr_frame_cfa, dwarf_expr_frame_pc)
1599 (dwarf_expr_tls_address): Rename; turn into methods.
1600 (per_cu_dwarf_call): Remove arguments. Use
1601 get_frame_pc_for_per_cu_dwarf_call.
1602 (dwarf_evaluate_loc_desc): New class.
1603 (dwarf_expr_dwarf_call, dwarf_expr_context)
1604 (dwarf_expr_push_dwarf_reg_entry_value)
1605 (dwarf_expr_get_addr_index, dwarf_expr_get_obj_addr): Rename; turn
1606 into methods.
1607 (dwarf_expr_ctx_funcs): Remove.
1608 (dwarf2_evaluate_loc_desc_full): Update.
1609 (dwarf2_locexpr_baton_eval): Update.
1610 (symbol_needs_eval_context): New class.
1611 (symbol_needs_read_addr_from_reg, symbol_needs_get_reg_value)
1612 (symbol_needs_read_mem, symbol_needs_frame_base)
1613 (symbol_needs_frame_cfa, symbol_needs_tls_address)
1614 (symbol_needs_dwarf_call, needs_dwarf_reg_entry_value): Rename;
1615 turn into methods.
1616 (needs_get_addr_index, needs_get_obj_addr): Remove; turn into
1617 methods.
1618 (symbol_needs_ctx_funcs): Remove.
1619 (dwarf2_loc_desc_get_symbol_read_needs): Update.
1620 * dwarf2expr.h (struct dwarf_expr_context_funcs): Remove; turn
1621 contents into methods.
1622 (struct dwarf_expr_context) <baton, funcs>: Remove.
1623 <read_addr_from_reg, get_reg_value, read_mem, get_frame_base,
1624 get_frame_cfa, get_frame_pc, get_tls_address, dwarf_call,
1625 impl_get_base_type, push_dwarf_block_entry_value, get_addr_index,
1626 get_object_address>: Declare new methods.
1627 (ctx_no_get_frame_base, ctx_no_get_frame_cfa)
1628 (ctx_no_get_frame_pc, ctx_no_get_tls_address, ctx_no_dwarf_call)
1629 (ctx_no_get_base_type, ctx_no_push_dwarf_reg_entry_value)
1630 (ctx_no_get_addr_index): Don't declare.
1631 * dwarf2expr.c (get_base_type): Use impl_get_base_type.
1632 (execute_stack_op): Update.
1633 (ctx_no_get_frame_base, ctx_no_get_frame_cfa)
1634 (ctx_no_get_frame_pc, ctx_no_get_tls_address, ctx_no_dwarf_call)
1635 (ctx_no_get_base_type, ctx_no_push_dwarf_reg_entry_value)
1636 (ctx_no_get_addr_index): Remove; now methods on
1637 dwarf_expr_context.
1638 * dwarf2-frame.c (read_addr_from_reg): Take a frame_info, not a
1639 baton.
1640 (class dwarf_expr_executor): New class.
1641 (get_reg_value, read_mem): Rename, turn into methods.
1642 (execute_stack_op): Use dwarf_expr_executor.
1643
1644 2016-10-21 Tom Tromey <tom@tromey.com>
1645
1646 * dwarf2loc.c (per_cu_dwarf_call)
1647 (dwarf_expr_push_dwarf_reg_entry_value)
1648 (dwarf2_evaluate_loc_desc_full, dwarf2_locexpr_baton_eval)
1649 (needs_dwarf_reg_entry_value)
1650 (dwarf2_loc_desc_get_symbol_read_needs): Update.
1651 * dwarf2expr.h (dwarf_expr_context) <push_address, eval, fetch,
1652 fetch_address, fetch_in_stack_memory, address_type, grow_stack,
1653 push, stack_empty_p, add_piece, get_base_type, execute_stack_op,
1654 pop>: New method declarations.
1655 (dwarf_expr_push_address, dwarf_expr_eval, dwarf_expr_fetch)
1656 (dwarf_expr_fetch_address, dwarf_expr_fetch_in_stack_memory):
1657 Don't declare.
1658 * dwarf2expr.c (address_type, grow_stack, push, push_address)
1659 (pop, fetch, fetch_address, fetch_in_stack_memory)
1660 (stack_empty_p, add_piece, eval, get_base_type)
1661 (execute_stack_op): Rename. Turn into methods.
1662 * dwarf2-frame.c (execute_stack_op): Update.
1663
1664 2016-10-21 Tom Tromey <tom@tromey.com>
1665
1666 * dwarf2loc.c (dwarf2_evaluate_loc_desc_full): Stack-allocate
1667 dwarf_expr_context. Remove cleanups.
1668 (dwarf2_locexpr_baton_eval)
1669 (dwarf2_loc_desc_get_symbol_read_needs): Likewise.
1670 * dwarf2expr.h (dwarf_expr_context, ~dwarf_expr_context): Add
1671 constructors and destructors.
1672 (new_dwarf_expr_context, free_dwarf_expr_context)
1673 (make_cleanup_free_dwarf_expr_context): Don't declare.
1674 * dwarf2-frame.c (execute_stack_op): Stack-allocate
1675 dwarf_expr_context. Remove cleanups.
1676 (dwarf_expr_context): Rename from new_dwarf_expr_context. Turn
1677 into constructor.
1678 (free_dwarf_expr_context, free_dwarf_expr_context_cleanup):
1679 Remove.
1680 (~dwarf_expr_context): Rename from
1681 make_cleanup_free_dwarf_expr_context. Turn into destructor.
1682
1683 2016-10-21 Tom Tromey <tom@tromey.com>
1684
1685 * dwarf2loc.c: Include <vector>.
1686 (read_pieced_value, write_pieced_value)
1687 (dwarf2_compile_expr_to_ax): Use std::vector.
1688
1689 2016-10-21 Tom Tromey <tom@tromey.com>
1690
1691 * stack.c (print_stack_frame_to_uiout): Use scoped_restore.
1692 * ui-out.c (make_cleanup_restore_current_uiout)
1693 (restore_current_uiout_cleanup): Remove.
1694 * infrun.c (print_stop_event): Use scoped_restore.
1695 * ui-out.h (make_cleanup_restore_current_uiout): Don't declare.
1696
1697 2016-10-21 Tom Tromey <tom@tromey.com>
1698
1699 * elfread.c (elf_read_minimal_symbols): Use gdb::unique_ptr.
1700
1701 2016-10-21 Tom Tromey <tom@tromey.com>
1702
1703 * cli/cli-dump.c (dump_memory_to_file): Use gdb::unique_ptr.
1704 (restore_binary_file): Likewise.
1705
1706 2016-10-21 Tom Tromey <tom@tromey.com>
1707
1708 * maint.h (scoped_command_stats): New class.
1709 (make_command_stats_cleanup): Don't declare.
1710 * maint.c (struct cmd_stats): Remove.
1711 (~scoped_command_stats): Rename from report_command_stats. Now a
1712 destructor.
1713 (scoped_command_stats): Rename from make_command_stats_cleanup.
1714 Now a constructor.
1715 * main.c (captured_main_1): New function. Use
1716 scoped_command_stats.
1717 (captured_main): Call captured_main_1.
1718 * event-top.c (command_handler): Use scoped_command_stats.
1719
1720 2016-10-21 Tom Tromey <tom@tromey.com>
1721
1722 * mi/mi-main.c (mi_cmd_data_read_memory): Use gdb::unique_ptr.
1723 Remove some cleanups.
1724
1725 2016-10-21 Tom Tromey <tom@tromey.com>
1726
1727 * tui/tui-interp.c (tui_on_normal_stop, tui_on_signal_received)
1728 (tui_on_end_stepping_range, tui_on_signal_exited, tui_on_exited)
1729 (tui_on_no_history, tui_on_user_selected_context_changed):
1730 Update.
1731 * top.h (switch_thru_all_uis): New class.
1732 (SWITCH_THRU_ALL_UIS): Rewrite.
1733 (make_cleanup_restore_current_ui, switch_thru_all_uis_init)
1734 (switch_thru_all_uis_cond, switch_thru_all_uis_next): Don't
1735 declare.
1736 * mi/mi-interp.c (mi_new_thread, mi_thread_exit)
1737 (mi_record_changed, mi_inferior_added, mi_inferior_appeared)
1738 (mi_inferior_exit, mi_inferior_removed, mi_on_signal_received)
1739 (mi_on_end_stepping_range, mi_on_signal_exited, mi_on_exited)
1740 (mi_on_no_history, mi_on_normal_stop, mi_traceframe_changed)
1741 (mi_tsv_created, mi_tsv_deleted, mi_tsv_modified)
1742 (mi_breakpoint_created, mi_breakpoint_deleted)
1743 (mi_breakpoint_modified, mi_output_running_pid, mi_on_resume)
1744 (mi_solib_loaded, mi_solib_unloaded, mi_command_param_changed)
1745 (mi_memory_changed, mi_user_selected_context_changed): Update.
1746 * infrun.c (all_uis_check_sync_execution_done)
1747 (all_uis_on_sync_execution_starting, normal_stop): Update.
1748 * event-top.c (restore_ui_cleanup)
1749 (make_cleanup_restore_current_ui, switch_thru_all_uis_init)
1750 (switch_thru_all_uis_cond, switch_thru_all_uis_next): Remove.
1751 * cli/cli-interp.c (cli_on_normal_stop, cli_on_signal_received)
1752 (cli_on_end_stepping_range, cli_on_signal_exited, cli_on_exited)
1753 (cli_on_no_history, cli_on_user_selected_context_changed):
1754 Update.
1755 * breakpoint.c (watchpoint_check): Update.
1756
1757 2016-10-21 Tom Tromey <tom@tromey.com>
1758
1759 * xcoffread.c (record_minimal_symbol, scan_xcoff_symtab): Add
1760 "reader" argument. Update.
1761 (xcoff_initial_scan): Update.
1762 * symfile.h (mdebug_build_psymtabs): Add "reader" argument.
1763 * mipsread.c (mipscoff_symfile_read): Update.
1764 (read_alphacoff_dynamic_symtab): Add "reader" argument. Update.
1765 * minsyms.h (minimal_symbol_reader) <record, record_full>:
1766 Declare.
1767 <m_msym_bunch, m_msym_bunch_index, m_msym_count>: New members.
1768 <record_with_info>: New function, renamed from
1769 prim_record_minimal_symbol_and_info.
1770 * minsyms.c (msym_bunch, msym_bunch_index, msym_count): Remove
1771 globals.
1772 (minimal_symbol_reader): Initialize new members.
1773 (minimal_symbol_reader::record): Renamed from
1774 prim_record_minimal_symbol.
1775 (minimal_symbol_reader::record_full): Renamed from
1776 prim_record_minimal_symbol_full.
1777 (prim_record_minimal_symbol_and_info): Move to minsyms.h; rename.
1778 * mdebugread.c (mdebug_build_psymtabs, parse_partial_symbols)
1779 (record_minimal_symbol): Add "reader" argument. Update.
1780 (elfmdebug_build_psymtabs): Update.
1781 * machoread.c (macho_symtab_add_minsym, macho_symtab_read): Add
1782 "reader" argument. Update.
1783 (macho_symfile_read): Update.
1784 * elfread.c (record_minimal_symbol, elf_symtab_read)
1785 (elf_rel_plt_read): Add "reader" argument. Update.
1786 (elf_read_minimal_symbols): Update.
1787 * dbxread.c (record_minimal_symbol, read_dbx_dynamic_symtab)
1788 (read_dbx_symtab): Add "reader" argument. Update.
1789 (dbx_symfile_read): Update.
1790 * coffread.c (record_minimal_symbol, coff_symtab_read): Add
1791 "reader" argument. Update.
1792 (coff_symfile_read): Update.
1793 * coff-pe-read.h (read_pe_exported_syms): Add "reader" argument.
1794 * coff-pe-read.c (add_pe_exported_sym, add_pe_forwarded_sym)
1795 (read_pe_exported_syms): Add "reader" argument. Update.
1796
1797 2016-10-21 Tom Tromey <tom@tromey.com>
1798
1799 * xcoffread.c (xcoff_initial_scan): Update.
1800 * mipsread.c (mipscoff_symfile_read): Update.
1801 * minsyms.c (minimal_symbol_reader): Add obj argument.
1802 Initialize member.
1803 (install): Remove objfile argument. Update.
1804 * mdebugread.c (elfmdebug_build_psymtabs): Update.
1805 * machoread.c (macho_symfile_read): Update.
1806 * elfread.c (elf_read_minimal_symbols): Update.
1807 * dbxread.c (dbx_symfile_read): Update.
1808 * coffread.c (coff_symfile_read): Update.
1809 * minsyms.h (minimal_symbol_reader): Add m_objfile member.
1810 (constructor): Add objfile argument.
1811 (minimal_symbol_reader::install): Remove objfile argument.
1812
1813 2016-10-21 Tom Tromey <tom@tromey.com>
1814
1815 * xcoffread.c (xcoff_initial_scan): Use
1816 minimal_symbol_reader.
1817 * mipsread.c (mipscoff_symfile_read): Use
1818 minimal_symbol_reader.
1819 * minsyms.h (minimal_symbol_reader): New class.
1820 (init_minimal_symbol_collection)
1821 (make_cleanup_discard_minimal_symbols, install_minimal_symbols):
1822 Don't declare.
1823 * minsyms.c (minimal_symbol_reader): Renamed from
1824 init_minimal_symbol_collection, turned into constructor.
1825 (~minimal_symbol_reader): Renamed from
1826 do_discard_minimal_symbols_cleanup, turned into destructor.
1827 (make_cleanup_discard_minimal_symbols): Remove.
1828 (minimal_symbol_reader::install): Rename form
1829 install_minimal_symbols.
1830 * mdebugread.c (elfmdebug_build_psymtabs): Use
1831 minimal_symbol_reader.
1832 * machoread.c (macho_symfile_read): Use
1833 minimal_symbol_reader.
1834 * elfread.c (elf_read_minimal_symbols): Use
1835 minimal_symbol_reader.
1836 * dbxread.c (dbx_symfile_read): Use minimal_symbol_reader.
1837 * coffread.c (coff_symfile_read): Use
1838 minimal_symbol_reader.
1839
1840 2016-10-21 Tom Tromey <tom@tromey.com>
1841
1842 * top.c (new_ui_command, wait_sync_command_done)
1843 (gdb_readline_wrapper): Use scoped_restore.
1844 * infrun.c (fetch_inferior_event): Use scoped_restore.
1845 * infcall.c (call_thread_fsm_should_stop): Use scoped_restore.
1846
1847 2016-10-21 Tom Tromey <tom@tromey.com>
1848
1849 * utils.c (make_cleanup_restore_ui_file, do_restore_ui_file)
1850 (struct restore_ui_file_closure): Remove.
1851 * utils.h (make_cleanup_restore_ui_file): Don't declare.
1852 * guile/scm-ports.c (ioscm_with_output_to_port_worker): Use
1853 scoped_restore.
1854 * top.c (execute_command_to_string): Use scoped_restore.
1855
1856 2016-10-21 Tom Tromey <tom@tromey.com>
1857
1858 * common/scoped_restore.h: New file.
1859 * utils.h: Include scoped_restore.h.
1860 * top.c (execute_command_to_string): Use scoped_restore.
1861 * python/python.c (python_interactive_command): Use
1862 scoped_restore.
1863 (python_command, execute_gdb_command): Likewise.
1864 * printcmd.c (do_one_display): Use scoped_restore.
1865 * mi/mi-main.c (exec_continue): Use scoped_restore.
1866 * mi/mi-cmd-var.c (mi_cmd_var_assign): Use scoped_restore.
1867 * linux-fork.c (checkpoint_command): Use scoped_restore.
1868 * infrun.c (restore_execution_direction): Remove.
1869 (fetch_inferior_event): Use scoped_restore.
1870 * compile/compile.c (compile_file_command): Use
1871 scoped_restore.
1872 (compile_code_command, compile_print_command): Likewise.
1873 * cli/cli-script.c (execute_user_command): Use
1874 scoped_restore.
1875 (while_command, if_command, script_from_file): Likewise.
1876 * arm-tdep.c (arm_insert_single_step_breakpoint): Use
1877 scoped_restore.
1878
1879 2016-10-21 Tom Tromey <tom@tromey.com>
1880
1881 * xcoffread.c (read_xcoff_symtab): Make "filestring" const.
1882
1883 2016-10-21 Sangamesh Mallayya <sangamesh.swamy@in.ibm.com>
1884 Ulrich Weigand <uweigand@de.ibm.com>
1885
1886 * xcoffread.c (read_xcoff_symtab): Make name of current file as
1887 pst->filename instead of _start_ in AIX.
1888
1889 2016-10-21 Philipp Rudo <prudo@linux.vnet.ibm.com>
1890
1891 * solist.h (struct target_so_ops): Delete special_symbol_handling
1892 hook.
1893 * solib.c (solib_add, reload_shared_libraries): Adjust.
1894 * solib-aix.c (solib_aix_special_symbol_handling): Delete
1895 (_initialize_solib_aix): Adjust
1896 * solib-darwin.c (darwin_special_symbol_handling): Delete
1897 (_initialize_darwin_solib): Adjust
1898 * solib-dsbt.c (dsbt_special_symbol_handling): Delete
1899 (_initialize_dsbt_solib): Adjust
1900 * solib-frv.c (frv_special_symbol_handling): Delete
1901 (_initialize_frv_solib): Adjust
1902 * solib-svr4.c (svr4_special_symbol_handling): Delete
1903 (_initialize_svr4_solib): Adjust
1904 * solib-target.c (solib_target_special_symbol_handling): Delete
1905 (_initialize_solib_target): Adjust
1906
1907 2016-10-20 Yao Qi <yao.qi@linaro.org>
1908
1909 * configure.tgt: Don't configure if target is *-*-vxworks*.
1910
1911 2016-10-19 Pedro Alves <palves@redhat.com>
1912
1913 * config.in: Regenerate.
1914
1915 2016-10-18 Pedro Alves <palves@redhat.com>
1916
1917 * common/common-defs.h (__STDC_CONSTANT_MACROS)
1918 (__STDC_LIMIT_MACROS): Delete.
1919
1920 2016-10-18 Pedro Alves <palves@redhat.com>
1921
1922 * gnulib/update-gnulib.sh (GNULIB_COMMIT_SHA1): Set to
1923 2692e23a48e21f6daa029e8af9f1a143b7532f47.
1924 * gnulib/configure, gnulib/config.in, gnulib/aclocal.m4:
1925 Regenerate.
1926 * gnulib/import/Makefile: Update.
1927 * gnulib/import/alloca: Update.
1928 * gnulib/import/basename-lgpl: Update.
1929 * gnulib/import/canonicalize-lgpl: Update.
1930 * gnulib/import/config: Update.
1931 * gnulib/import/dirent: Update.
1932 * gnulib/import/dirfd: Update.
1933 * gnulib/import/dirname-lgpl: Update.
1934 * gnulib/import/dirname.h: Update.
1935 * gnulib/import/dosname.h: Update.
1936 * gnulib/import/errno: Update.
1937 * gnulib/import/extra/snippet/arg-nonnull.h: Update.
1938 * gnulib/import/extra/snippet/c++defs.h: Update.
1939 * gnulib/import/extra/snippet/warn-on-use.h: Update.
1940 * gnulib/import/extra/update-copyright: Update.
1941 * gnulib/import/flexmember.h: Update.
1942 * gnulib/import/float+.h: Update.
1943 * gnulib/import/float: Update.
1944 * gnulib/import/float: Update.
1945 * gnulib/import/fnmatch: Update.
1946 * gnulib/import/fnmatch: Update.
1947 * gnulib/import/fnmatch_loop: Update.
1948 * gnulib/import/fpucw.h: Update.
1949 * gnulib/import/frexp: Update.
1950 * gnulib/import/frexpl: Update.
1951 * gnulib/import/gettimeofday: Update.
1952 * gnulib/import/hard-locale: Update.
1953 * gnulib/import/hard-locale.h: Update.
1954 * gnulib/import/inttypes: Update.
1955 * gnulib/import/isnan: Update.
1956 * gnulib/import/isnand-nolibm.h: Update.
1957 * gnulib/import/isnand: Update.
1958 * gnulib/import/isnanl-nolibm.h: Update.
1959 * gnulib/import/isnanl: Update.
1960 * gnulib/import/itold: Update.
1961 * gnulib/import/limits: Update.
1962 * gnulib/import/localcharset: Update.
1963 * gnulib/import/localcharset.h: Update.
1964 * gnulib/import/lstat: Update.
1965 * gnulib/import/m4/00gnulib: Update.
1966 * gnulib/import/m4/absolute-header: Update.
1967 * gnulib/import/m4/alloca: Update.
1968 * gnulib/import/m4/canonicalize: Update.
1969 * gnulib/import/m4/codeset: Update.
1970 * gnulib/import/m4/configmake: Update.
1971 * gnulib/import/m4/dirent_h: Update.
1972 * gnulib/import/m4/dirfd: Update.
1973 * gnulib/import/m4/dirname: Update.
1974 * gnulib/import/m4/double-slash-root: Update.
1975 * gnulib/import/m4/eealloc: Update.
1976 * gnulib/import/m4/errno_h: Update.
1977 * gnulib/import/m4/exponentd: Update.
1978 * gnulib/import/m4/exponentl: Update.
1979 * gnulib/import/m4/extensions: Update.
1980 * gnulib/import/m4/extern-inline: Update.
1981 * gnulib/import/m4/fcntl-o: Update.
1982 * gnulib/import/m4/flexmember: Update.
1983 * gnulib/import/m4/float_h: Update.
1984 * gnulib/import/m4/fnmatch: Update.
1985 * gnulib/import/m4/fpieee: Update.
1986 * gnulib/import/m4/frexp: Update.
1987 * gnulib/import/m4/frexpl: Update.
1988 * gnulib/import/m4/gettimeofday: Update.
1989 * gnulib/import/m4/glibc21: Update.
1990 * gnulib/import/m4/gnulib-cache: Update.
1991 * gnulib/import/m4/gnulib-common: Update.
1992 * gnulib/import/m4/gnulib-comp: Update.
1993 * gnulib/import/m4/gnulib-tool: Update.
1994 * gnulib/import/m4/hard-locale: Update.
1995 * gnulib/import/m4/include_next: Update.
1996 * gnulib/import/m4/inttypes-pri: Update.
1997 * gnulib/import/m4/inttypes: Update.
1998 * gnulib/import/m4/isnand: Update.
1999 * gnulib/import/m4/isnanl: Update.
2000 * gnulib/import/m4/largefile: Update.
2001 * gnulib/import/m4/limits-h: Update.
2002 * gnulib/import/m4/localcharset: Update.
2003 * gnulib/import/m4/locale-fr: Update.
2004 * gnulib/import/m4/locale-ja: Update.
2005 * gnulib/import/m4/locale-zh: Update.
2006 * gnulib/import/m4/longlong: Update.
2007 * gnulib/import/m4/lstat: Update.
2008 * gnulib/import/m4/malloc: Update.
2009 * gnulib/import/m4/malloca: Update.
2010 * gnulib/import/m4/math_h: Update.
2011 * gnulib/import/m4/mbrtowc: Update.
2012 * gnulib/import/m4/mbsinit: Update.
2013 * gnulib/import/m4/mbsrtowcs: Update.
2014 * gnulib/import/m4/mbstate_t: Update.
2015 * gnulib/import/m4/memchr: Update.
2016 * gnulib/import/m4/memmem: Update.
2017 * gnulib/import/m4/mmap-anon: Update.
2018 * gnulib/import/m4/multiarch: Update.
2019 * gnulib/import/m4/nocrash: Update.
2020 * gnulib/import/m4/off_t: Update.
2021 * gnulib/import/m4/pathmax: Update.
2022 * gnulib/import/m4/rawmemchr: Update.
2023 * gnulib/import/m4/readlink: Update.
2024 * gnulib/import/m4/rename: Update.
2025 * gnulib/import/m4/rmdir: Update.
2026 * gnulib/import/m4/signal_h: Update.
2027 * gnulib/import/m4/ssize_t: Update.
2028 * gnulib/import/m4/stat: Update.
2029 * gnulib/import/m4/stdbool: Update.
2030 * gnulib/import/m4/stddef_h: Update.
2031 * gnulib/import/m4/stdint: Update.
2032 * gnulib/import/m4/stdio_h: Update.
2033 * gnulib/import/m4/stdlib_h: Update.
2034 * gnulib/import/m4/strchrnul: Update.
2035 * gnulib/import/m4/string_h: Update.
2036 * gnulib/import/m4/strstr: Update.
2037 * gnulib/import/m4/strtok_r: Update.
2038 * gnulib/import/m4/sys_socket_h: Update.
2039 * gnulib/import/m4/sys_stat_h: Update.
2040 * gnulib/import/m4/sys_time_h: Update.
2041 * gnulib/import/m4/sys_types_h: Update.
2042 * gnulib/import/m4/time_h: Update.
2043 * gnulib/import/m4/unistd_h: Update.
2044 * gnulib/import/m4/warn-on-use: Update.
2045 * gnulib/import/m4/wchar_h: Update.
2046 * gnulib/import/m4/wchar_t: Update.
2047 * gnulib/import/m4/wctype_h: Update.
2048 * gnulib/import/m4/wint_t: Update.
2049 * gnulib/import/malloc: Update.
2050 * gnulib/import/malloca: Update.
2051 * gnulib/import/malloca.h: Update.
2052 * gnulib/import/math: Update.
2053 * gnulib/import/math: Update.
2054 * gnulib/import/mbrtowc: Update.
2055 * gnulib/import/mbsinit: Update.
2056 * gnulib/import/mbsrtowcs-impl.h: Update.
2057 * gnulib/import/mbsrtowcs-state: Update.
2058 * gnulib/import/mbsrtowcs: Update.
2059 * gnulib/import/memchr: Update.
2060 * gnulib/import/memmem: Update.
2061 * gnulib/import/pathmax.h: Update.
2062 * gnulib/import/rawmemchr: Update.
2063 * gnulib/import/readlink: Update.
2064 * gnulib/import/ref-add.sin: Update.
2065 * gnulib/import/ref-del.sin: Update.
2066 * gnulib/import/rename: Update.
2067 * gnulib/import/rmdir: Update.
2068 * gnulib/import/same-inode.h: Update.
2069 * gnulib/import/signal: Update.
2070 * gnulib/import/stat: Update.
2071 * gnulib/import/stdbool: Update.
2072 * gnulib/import/stddef: Update.
2073 * gnulib/import/stdint: Update.
2074 * gnulib/import/stdio: Update.
2075 * gnulib/import/stdlib: Update.
2076 * gnulib/import/str-two-way.h: Update.
2077 * gnulib/import/strchrnul: Update.
2078 * gnulib/import/streq.h: Update.
2079 * gnulib/import/string: Update.
2080 * gnulib/import/stripslash: Update.
2081 * gnulib/import/strnlen1: Update.
2082 * gnulib/import/strnlen1.h: Update.
2083 * gnulib/import/strstr: Update.
2084 * gnulib/import/strtok_r: Update.
2085 * gnulib/import/sys_stat: Update.
2086 * gnulib/import/sys_time: Update.
2087 * gnulib/import/sys_types: Update.
2088 * gnulib/import/time: Update.
2089 * gnulib/import/unistd: Update.
2090 * gnulib/import/unistd: Update.
2091 * gnulib/import/verify.h: Update.
2092 * gnulib/import/wchar: Update.
2093 * gnulib/import/wctype: Update.
2094 * gnulib/import/flexmember.h: New file.
2095 * gnulib/import/hard-locale.c: New file.
2096 * gnulib/import/hard-locale.h: New file.
2097 * gnulib/import/limits.in.h: New file.
2098 * gnulib/import/m4/flexmember.m4: New file.
2099 * gnulib/import/m4/hard-locale.m4: New file.
2100 * gnulib/import/m4/limits-h.m4: New file.
2101
2102 2016-10-18 Pedro Alves <palves@redhat.com>
2103
2104 * common/common-defs.h: Include "gdb_unique_ptr.h".
2105 * common/gdb_unique_ptr.h: New.
2106
2107 2016-10-18 Maciej W. Rozycki <macro@imgtec.com>
2108
2109 * i386-tdep.c (i386_mpx_info_bounds): Make sure the architecture
2110 is `bfd_arch_i386' before proceeding.
2111 (i386_mpx_set_bounds): Likewise.
2112
2113 2016-10-18 Maciej W. Rozycki <macro@imgtec.com>
2114
2115 * tilegx-tdep.c (tilegx_analyze_prologue): Use the `long long'
2116 type for `operands'.
2117
2118 2016-10-17 Simon Marchi <simon.marchi@ericsson.com>
2119
2120 * mi/mi-main.c (mi_cmd_trace_save): Check if argument is present
2121 before using it.
2122
2123 2016-10-17 Pedro Alves <palves@redhat.com>
2124
2125 * charset.h (class wchar_iterator) [PHONY_ICONV] <m_desc>: Use
2126 'int' as type.
2127
2128 2016-10-14 Sangamesh Mallayya <sangamesh.swamy@in.ibm.com>
2129 Ulrich Weigand <uweigand@de.ibm.com>
2130
2131 * solib-aix.c (solib_aix_bfd_open): Call solib_find so that sysroot
2132 path is set properly if program has a dependency on .a archive and
2133 sysroot is set via set sysroot command.
2134
2135 2016-10-14 Markus Metzger <markus.t.metzger@intel.com>
2136
2137 * nat/linux-btrace.c: Remove leftover comment.
2138
2139 2016-10-14 Eli Zaretskii <eliz@gnu.org>
2140
2141 * common/common-defs.h [HAVE_STRINGS_H]: Include strings.h if
2142 available, to get prototypes of 'strcasecmp' and 'strncasecmp'.
2143
2144 2016-10-13 Pedro Alves <palves@redhat.com>
2145
2146 * contrib/ari/gdb_ari.sh (boolean): Suggest bool instead.
2147 (false, true): Remove checks.
2148
2149 2016-10-12 Tom Tromey <tom@tromey.com>
2150
2151 * machoread.c (macho_symfile_read_all_oso): Use std::string.
2152
2153 2016-10-12 Tom Tromey <tom@tromey.com>
2154
2155 * tracepoint.c (trace_dump_command): Remove unnecessary
2156 null_cleanup.
2157
2158 2016-10-12 Tom Tromey <tom@tromey.com>
2159
2160 * valprint.c (generic_emit_char, count_next_character)
2161 (generic_printstr): Update.
2162 * charset.c (struct wchar_iterator): Move to charset.h.
2163 (wchar_iterator::wchar_iterator): Rename from
2164 make_wchar_iterator, turn into a constructor.
2165 (wchar_iterator::~wchar_iterator): Rename from
2166 do_cleanup_iterator, turn into a destructor.
2167 (make_cleanup_wchar_iterator): Remove.
2168 (wchar_iterator::iterate): Rename from wchar_iterate. Remove
2169 "iter" argument. Update.
2170 * charset.h: Include <vector>.
2171 (class wchar_iterator): New class, from old struct
2172 wchar_iterator.
2173 (make_wchar_iterator, make_cleanup_wchar_iterator): Don't
2174 declare.
2175
2176 2016-10-12 Tom Tromey <tom@tromey.com>
2177
2178 * selftest.c: Include <vector>, not "vec.h".
2179 (self_test_function_ptr): Remove.
2180 (tests): Now a std::vector.
2181 (register_self_test, run_self_tests): Update.
2182
2183 2016-10-13 Pedro Alves <palves@redhat.com>
2184 Tom Tromey <tom@tromey.com>
2185
2186 * tid-parse.h (tid_range_parser): New class.
2187 (enum tid_range_state): Move into tid_range_parser's scope.
2188 Remove TID_RANGE_ prefix from all values.
2189 (tid_range_parser_get_tid, tid_range_parser_get_tid_range)
2190 (tid_range_parser_star_range, tid_range_parser_finished)
2191 (tid_range_parser_skip, tid_range_parser_qualified): Don't
2192 declare.
2193 (tid_is_in_list): Update comment.
2194 * tid-parse.c (tid_range_parser::tid_range_parser): New.
2195 (init, finished, get_string, skip, tid_is_qualified)
2196 (get_tid_or_range, get_tid_range, get_tid, star_range): Rename;
2197 turn into methods.
2198 (tid_is_in_list): Adjust.
2199 * cli/cli-utils.h (number_or_range_parser): New class.
2200 (init_number_or_range, get_number_or_range)
2201 (number_range_setup_range): Don't declare.
2202 * cli/cli-utils.c
2203 (number_or_range_parser::number_or_range_parser): New.
2204 (init_number_or_range, get_number_or_range)
2205 (number_range_setup_range): Rename; turn into methods.
2206 (number_is_in_list): Adjust.
2207 * breakpoint.c (map_breakpoint_numbers): Adjust. Use bool.
2208 (trace_pass_command, get_tracepoint_by_number): Adjust.
2209 * breakpoint.h (get_tracepoint_by_number): Adjust.
2210 * inferior.c (detach_inferior_command, kill_inferior_command)
2211 (remove_inferior_command): Adjust.
2212 * linespec.c (decode_line_2): Adjust.
2213 * memattr.c (mem_enable_command, mem_disable_command)
2214 (mem_delete_command): Adjust.
2215 * printcmd.c (map_display_numbers): Adjust.
2216 * reverse.c (delete_bookmark_command, bookmarks_info): Adjust.
2217 * thread.c (thread_apply_command): Adjust.
2218
2219 2016-10-12 Anton Kolesov <anton.kolesov@synopsys.com>
2220
2221 * arc-newlib-tdep.c: New file.
2222 * configure.tgt: Add newlib support for ARC.
2223
2224 2016-10-12 Anton Kolesov <anton.kolesov@synopsys.com>
2225
2226 * arc-tdep.h (struct gdbarch_tdep) <jb_pc>: New field.
2227 * arc-tdep.c (arc_get_longjmp_target): New function.
2228 (arc_gdbarch_init): Set get_longjmp_target if jb_pc is non-negative.
2229 (arc_dump_tdep): Print jb_pc.
2230
2231 2016-10-12 Anton Kolesov <anton.kolesov@synopsys.com>
2232
2233 * arc-tdep.h (struct gdbarch_tdep): New.
2234 * arc-tdep.c (arc_gdbarch_init): Allocate gdbarch_tdep.
2235
2236 2016-10-12 Yao Qi <yao.qi@linaro.org>
2237
2238 PR tdep/20682
2239 * aarch64-tdep.c: Replace 32 with AARCH64_D_REGISTER_COUNT.
2240 (aarch64_analyze_prologue): Extend array 'regs' for D registers.
2241 Assert that operand 0 and 1 can be X or D registers. Update
2242 register number for D registers. Update registers in frame
2243 cache.
2244 * aarch64-tdep.h (AARCH64_D_REGISTER_COUNT): New macro.
2245
2246 2016-10-10 Yao Qi <yao.qi@linaro.org>
2247
2248 * arch/arm.h (enum arm_breakpoint_kinds): New.
2249 * arm-tdep.c (arm_remote_breakpoint_from_pc): Use
2250 ARM_BP_KIND_THUMB2.
2251
2252 2016-10-10 Yao Qi <yao.qi@linaro.org>
2253
2254 * m32c-tdep.c (m32c_gdbarch_init): Rename local 'arch' by
2255 'gdbarch'.
2256
2257 2016-10-10 Yao Qi <yao.qi@linaro.org>
2258
2259 * v850-tdep.c (v850_breakpoint_from_pc): Use the right
2260 breakpoint instruction.
2261 (v850_dbtrap_breakpoint_from_pc): Remove.
2262 (v850_gdbarch_init): Update.
2263
2264 2016-10-08 Simon Marchi <simon.marchi@polymtl.ca>
2265
2266 * ui-out.c (push_level): Remove "id" parameter.
2267 (ui_out_begin): Update call.
2268
2269 2016-10-07 Joel Brobecker <brobecker@adacore.com>
2270
2271 GDB 7.12 released.
2272
2273 2016-10-07 Markus Metzger <markus.t.metzger@intel.com>
2274
2275 * python/python.c (gdbpy_decode_line): Call
2276 string_to_event_location_basic instead of new_linespec_location.
2277
2278 2016-10-06 Sergio Durigan Junior <sergiodj@redhat.com>
2279
2280 * target.c (target_supports_multi_process): New function, moved
2281 from...
2282 * target.h (target_supports_multi_process): ... here. Remove
2283 macro.
2284 * target/target.h (target_supports_multi_process): New prototype.
2285
2286 2016-10-06 Pedro Alves <palves@redhat.com>
2287
2288 * cp-valprint.c (vtbl_ptr_name): Write "extern const" instead of
2289 EXPORTED_CONST.
2290 * stub-termcap.c: Remove __cplusplus checks.
2291 * common/common-defs.h [!__cplusplus] (EXTERN_C, EXTERN_C_PUSH,
2292 EXTERN_C_POP): Delete.
2293 * common/common-exceptions.h (GDB_XCPT_SJMP): Update comments.
2294 (GDB_XCPT) [!__cplusplus]: Delete.
2295 (throw_exception, throw_exception_sjlj): Update comments.
2296 * guile/guile-internal.h (as_a_scm_t_subr) [!__cplusplus]: Delete.
2297 * guile/guile.c (extension_language_guile): Write "extern const"
2298 instead of EXPORTED_CONST.
2299 * features/feature_to_c.sh: Don't emit !__cplusplus code. Write
2300 "extern const" instead of EXPORTED_CONST.
2301
2302 2016-10-06 Doug Evans <dje@google.com>
2303
2304 * python/py-value.c (valpy_long): Handle unsigned values.
2305
2306 2016-10-06 Simon Marchi <simon.marchi@ericsson.com>
2307
2308 * frame.h: Forward-declare struct ui_out.
2309
2310 2016-10-06 Tom Tromey <tom@tromey.com>
2311
2312 * MAINTAINERS: Remove Java test maintainer.
2313 * varobj.h (java_varobj_ops): Don't declare.
2314 * valprint.h (struct value_print_options)
2315 <pascal_static_field_print>: Update comment.
2316 * utils.c (producer_is_gcc): Remove java reference.
2317 * symtab.h (struct general_symbol_info): Remove java references.
2318 (SYMBOL_SEARCH_NAME): Likewise.
2319 * objfiles.c (allocate_objfile): Update comment.
2320 * linespec.c (find_linespec_symbols): Remove java references.
2321 * gnu-v3-abi.c (gnuv3_rtti_type, gnuv3_baseclass_offset): Remove
2322 java references.
2323 * gdbtypes.h (struct cplus_struct_type) <is_java>: Remove.
2324 (TYPE_CPLUS_REALLY_JAVA): Remove.
2325 * c-varobj.c (enum vsections): Update comment.
2326 * symtab.c (symbol_set_language, symbol_set_names)
2327 (symbol_natural_name, symbol_demangled_name)
2328 (demangle_for_lookup, symbol_matches_domain)
2329 (default_make_symbol_completion_list_break_on_1): Remove java
2330 references.
2331 (JAVA_PREFIX, JAVA_PREFIX_LEN): Remove.
2332 * psymtab.c (match_partial_symbol, psymtab_search_name)
2333 (lookup_partial_symbol): Remove java references.
2334 * dwarf2read.c (find_slot_in_mapped_hash): Remove java references.
2335 (add_partial_symbol, dwarf2_compute_name, dwarf2_physname)
2336 (dwarf2_add_member_fn, is_vtable_name, read_structure_type)
2337 (process_structure_scope, read_subroutine_type)
2338 (read_subrange_type, load_partial_dies)
2339 (new_symbol_full, determine_prefix, typename_concat)
2340 (dwarf2_name): Remove java references.
2341 (set_cu_language): Treat Java as C++.
2342 * c-typeprint.c (c_type_print_args): Remove java reference.
2343 * defs.h (enum language) <language_java>: Remove.
2344 * Makefile.in (SFILES, HFILES_NO_SRCDIR, COMMON_OBS, YYFILES)
2345 (YYOBJ, local-maintainer-clean): Don't mention java files.
2346 * jv-exp.y, jv-lang.c, jv-lang.h, jv-typeprint.c, jv-valprint.c,
2347 jv-varobj.c: Remove.
2348
2349 2016-10-06 Maciej W. Rozycki <macro@imgtec.com>
2350
2351 * mips-tdep.c (mips_pseudo_register_type): Make FCRs always
2352 32-bit.
2353
2354 2016-10-06 Maciej W. Rozycki <macro@imgtec.com>
2355
2356 * mips-tdep.c (mips_pseudo_register_type): Rearrange comments
2357 throughout.
2358
2359 2016-10-06 Markus Metzger <markus.t.metzger@intel.com>
2360
2361 * stack.c (frame_info): Call val_print_not_saved instead of
2362 val_print_unavailable if frame_id check fails.
2363
2364 2016-10-06 Pedro Alves <palves@redhat.com>
2365
2366 * jit.c (free_objfile_data): Delete the JIT breakpoint and clear
2367 the cached code address.
2368
2369 2016-10-06 Doug Evans <dje@google.com>
2370
2371 * features/aarch64-core.xml (cpsr_flags): Elide "type" and specify
2372 "end" in all fields.
2373 * features/aarch64.c: Regenerate.
2374 * features/i386/32bit-mpx.xml (_bndcfgu): Specify type of "preserved"
2375 and "enabled" fields. Correct size of "enabled" field.
2376 * features/i386/64bit-mpx.xml (_bndcfgu): Specify type of "preserved"
2377 and "enabled" fields.
2378 * features/i386/i386-avx-mpx-linux.c: Regenerate.
2379 * features/i386/i386-avx-mpx.c: Regenerate.
2380 * features/i386/i386-avx512-linux.c: Regenerate.
2381 * features/i386/i386-avx512.c: Regenerate.
2382 * features/i386/i386-mpx-linux.c: Regenerate.
2383 * features/i386/i386-mpx.c: Regenerate.
2384 * features/arc-arcompact.c: Regenerate.
2385 * features/arc-v2.c: Regenerate.
2386 * xml-tdesc.c (tdesc_start_field): Require "end" spec. Single bit
2387 fields default to "bool" type.
2388
2389 Revert 2016-03-15 Doug Evans <dje@google.com>
2390 * features/i386/32bit-core.xml (i386_eflags): Remove "end" spec.
2391 * features/i386/32bit-sse.xml (i386_eflags): Ditto.
2392 * features/i386/64bit-core.xml (i386_eflags): Ditto.
2393 * features/i386/64bit-sse.xml (i386_eflags): Ditto.
2394 * features/i386/x32-core.xml (i386_eflags): Ditto.
2395
2396 2016-10-05 Tom Tromey <tom@tromey.com>
2397
2398 PR breakpoints/20653:
2399 * location.c (string_to_explicit_location): Use NULL, not '\0'.
2400
2401 2016-10-05 Tom Tromey <tom@tromey.com>
2402
2403 PR symtab/20652:
2404 * psymtab.c (psymbol_compare): Correctly compare "ginfo.value"
2405 fields.
2406
2407 2016-10-05 Andreas Arnez <arnez@linux.vnet.ibm.com>
2408
2409 * dwarf2expr.c (dwarf_expr_require_composition): Allow
2410 DW_OP_GNU_uninit.
2411 (execute_stack_op): Use dwarf_expr_require_composition instead of
2412 copying its logic.
2413
2414 2016-10-05 Anton Kolesov <anton.kolesov@synopsys.com>
2415
2416 * arc-tdep.c (arc_frame_prev_register): Remove annoying log message.
2417
2418 2016-10-05 Yao Qi <yao.qi@linaro.org>
2419
2420 * features/Makefile (WHICH): Add
2421 rs6000/powerpc-isa205-32l, rs6000/powerpc-isa205-64l,
2422 rs6000/powerpc-isa205-altivec32l, rs6000/powerpc-isa205-altivec64l,
2423 rs6000/powerpc-isa205-vsx32l and rs6000/powerpc-isa205-vsx64l.
2424 * regformats/rs6000/powerpc-isa205-32l.dat: Regenerated.
2425 * regformats/rs6000/powerpc-isa205-64l.dat: Likewise.
2426 * regformats/rs6000/powerpc-isa205-altivec32l.dat: Likewise.
2427 * regformats/rs6000/powerpc-isa205-altivec64l.dat: Likewise.
2428 * regformats/rs6000/powerpc-isa205-vsx32l.dat: Likewise.
2429 * regformats/rs6000/powerpc-isa205-vsx64l.dat: Likewise.
2430
2431 2016-10-05 Yao Qi <yao.qi@linaro.org>
2432
2433 * features/Makefile (XMLTOC): Add s390-tevx-linux64.xml,
2434 s390-vx-linux64.xml, s390x-tevx-linux64.xml and
2435 s390x-vx-linux64.xml.
2436
2437 2016-10-05 Yao Qi <yao.qi@linaro.org>
2438
2439 * features/Makefile: Remove i386/*-expedite. Add i386-expedite,
2440 amd64-expedite, and x32-expedite.
2441
2442 2016-10-05 Terry Guo <terry.guo@arm.com>
2443 Yao Qi <yao.qi@linaro.org>
2444
2445 * arm-tdep.c: Adjust includes.
2446 * features/Makefile (WHICH): Add "arm/" directory to arm
2447 target descriptions.
2448 (XMLTOC): Likewise.
2449 (arm/arm-with-iwmmxt.dat): Adjust the path for
2450 dependencies.
2451 * features/arm-core.xml: Moved to ...
2452 * features/arm/arm-core.xml: ... it.
2453 * features/arm-fpa.xml: Moved to ...
2454 * features/arm/arm-fpa.xml: ... it.
2455 * features/arm-m-profile.xml: Moved to ...
2456 * features/arm/arm-m-profile.xm: ... it.
2457 * features/arm-vfpv2.xml: Moved to ...
2458 * features/arm/arm-vfpv2.xm: ... it.
2459 * features/arm-vfpv3.xml: Moved to ...
2460 * features/arm/arm-vfpv3.xml: ... it.
2461 * features/arm-with-iwmmxt.c: Moved to ...
2462 * features/arm/arm-with-iwmmxt.c: ... it.
2463 * features/arm-with-iwmmxt.xml: Moved to ...
2464 * features/arm/arm-with-iwmmxt.xml: ... it.
2465 * features/arm-with-m-fpa-layout.c: Moved to ...
2466 * features/arm/arm-with-m-fpa-layout.c: ... it.
2467 * features/arm-with-m-fpa-layout.xml: Moved to ...
2468 * features/arm/arm-with-m-fpa-layout.xml: ... it.
2469 * features/arm-with-m-vfp-d16.c: Moved to ...
2470 * features/arm/arm-with-m-vfp-d16.c: ... it.
2471 * features/arm-with-m-vfp-d16.xml: Moved to ...
2472 * features/arm/arm-with-m-vfp-d16.xml: ... it.
2473 * features/arm-with-m.c: Moved to ...
2474 * features/arm/arm-with-m.c: ... it.
2475 * features/arm-with-m.xml: Moved to ...
2476 * features/arm/arm-with-m.xm: ... it.
2477 * features/arm-with-neon.c: Moved to ...
2478 * features/arm/arm-with-neon.c: ... it.
2479 * features/arm-with-neon.xml: Moved to ...
2480 * features/arm/arm-with-neon.xml: ... it.
2481 * features/arm-with-vfpv2.c: Moved to ...
2482 * features/arm/arm-with-vfpv2.c: ... it.
2483 * features/arm-with-vfpv2.xml: Moved to ...
2484 * features/arm/arm-with-vfpv2.xml: ... it.
2485 * features/arm-with-vfpv3.c: Moved to ...
2486 * features/arm/arm-with-vfpv3.c: ... it.
2487 * features/arm-with-vfpv3.xml: Moved to ...
2488 * features/arm/arm-with-vfpv3.xml: ... it.
2489 * features/xscale-iwmmxt.xml: Moved to ...
2490 * features/arm/xscale-iwmmxt.xml: ... it.
2491
2492 2016-10-03 Antoine Tremblay <antoine.tremblay@ericsson.com>
2493 2016-10-03 Simon Marchi <simon.marchi@ericsson.com>
2494
2495 PR gdb/20487
2496 * NEWS: Mention new frame field of =thread-selected event.
2497 * cli/cli-decode.c (add_cmd): Initialize c->suppress_notification.
2498 (add_com_suppress_notification): New function definition.
2499 (cmd_func): Set and restore the suppress_notification flag.
2500 * cli/cli-deicode.h (struct cmd_list_element)
2501 <suppress_notification>: New field.
2502 * cli/cli-interp.c (cli_suppress_notification): New global variable.
2503 (cli_on_user_selected_context_changed): New function.
2504 (_initialize_cli_interp): Attach to user_selected_context_changed
2505 observer.
2506 * command.h (struct cli_suppress_notification): New structure.
2507 (cli_suppress_notification): New global variable declaration.
2508 (add_com_suppress_notification): New function declaration.
2509 * defs.h (enum user_selected_what_flag): New enum.
2510 (user_selected_what): New enum flag type.
2511 * frame.h (print_stack_frame_to_uiout): New function declaration.
2512 * gdbthread.h (print_selected_thread_frame): New function declaration.
2513 * inferior.c (print_selected_inferior): New function definition.
2514 (inferior_command): Remove printing of inferior/thread/frame switch
2515 notifications, notify user_selected_context_changed observer.
2516 * inferior.h (print_selected_inferior): New function declaration.
2517 * mi/mi-cmds.c (struct mi_cmd): Add user_selected_context
2518 suppression to stack-select-frame and thread-select commands.
2519 * mi/mi-interp.c (struct mi_suppress_notification)
2520 <user_selected_context>: Initialize.
2521 (mi_user_selected_context_changed): New function definition.
2522 (_initialize_mi_interp): Attach to user_selected_context_changed.
2523 * mi/mi-main.c (mi_cmd_thread_select): Print thread selection reply.
2524 (mi_execute_command): Handle notification suppression. Notify
2525 user_selected_context_changed observer on thread change instead of printing
2526 event directly. Don't send it if command already sends the notification.
2527 (command_notifies_uscc_observer): New function.
2528 (mi_cmd_execute): Don't handle notification suppression.
2529 * mi/mi-main.h (struct mi_suppress_notification)
2530 <user_selected_context>: New field.
2531 * stack.c (print_stack_frame_to_uiout): New function definition.
2532 (select_frame_command): Notify user_selected_context_changed
2533 observer.
2534 (frame_command): Call print_selected_thread_frame if there's no frame
2535 change or notify user_selected_context_changed observer if there is.
2536 (up_command): Notify user_selected_context_changed observer.
2537 (down_command): Likewise.
2538 (_initialize_stack): Suppress user_selected_context notification for
2539 command select-frame.
2540 * thread.c (thread_command): Notify
2541 user_selected_context_changed if the thread has changed, print
2542 thread info directly if it hasn't.
2543 (do_captured_thread_select): Do not print thread switch event.
2544 (print_selected_thread_frame): New function definition.
2545 * tui/tui-interp.c (tui_on_user_selected_context_changed):
2546 New function definition.
2547 (_initialize_tui_interp): Attach to user_selected_context_changed
2548 observer.
2549
2550 2016-09-29 Jan Kratochvil <jan.kratochvil@redhat.com>
2551
2552 PR gdb/20609 - attach of JIT-debug-enabled inf 7.11.1 regression
2553 * exec.c (exec_file_locate_attach): Add parameter defer_bp_reset.
2554 Use it.
2555 * gdbcore.h (exec_file_locate_attach): Add parameter defer_bp_reset.
2556 * infcmd.c (setup_inferior): Update caller.
2557 * remote.c (remote_add_inferior): Likewise.
2558
2559 2016-09-28 Pedro Alves <palves@redhat.com>
2560
2561 * infcall.c (run_inferior_call): Remove input from the event
2562 loop while running the infcall.
2563
2564 2016-09-27 Fredrik Hederstierna <fredrik.hederstierna@verisure.com>
2565
2566 * arm-tdep.c (arm_m_addr_is_magic): New function.
2567 (arm_addr_bits_remove): Call arm_m_addr_is_magic.
2568 (arm_m_exception_unwind_sniffer): Likewise.
2569
2570 2016-09-23 Jon Turney <jon.turney@dronecode.org.uk>
2571
2572 * windows-nat.c (windows_delete_thread): Adjusting call to
2573 target_mourn_inferior to include ptid_t argument.
2574
2575 2016-09-23 Tom Tromey <tom@tromey.com>
2576
2577 * utils.h (make_cleanup_dyn_string_delete): Remove declaration.
2578 * utils.c: Don't include dyn-string.h.
2579 (do_dyn_string_delete, make_cleanup_dyn_string_delete): Remove.
2580 * cli/cli-cmds.c: Include <string>. Don't include dyn-string.h.
2581 (argv_to_string): Rename. Change return type to std::string.
2582 (alias_command): Use std::string.
2583
2584 2016-09-23 Tom Tromey <tom@tromey.com>
2585
2586 * objfiles.c: Include <vector>.
2587 (objfile_relocate): Use std::vector.
2588
2589 2016-09-23 Tom Tromey <tom@tromey.com>
2590
2591 * rust-lang.c: Include <string> and <vector>.
2592 (rust_evaluate_funcall): Use std::vector, std::string.
2593 (rust_evaluate_subexp): Use std::string.
2594 (rust_lookup_symbol_nonlocal): Use std::string.
2595
2596 2016-09-23 Tom Tromey <tom@tromey.com>
2597
2598 * cp-namespace.c: Include <string>.
2599 (cp_search_static_and_baseclasses)
2600 (cp_lookup_symbol_imports_or_template, find_symbol_in_baseclass):
2601 Use std::string.
2602
2603 2016-09-23 Tom Tromey <tom@tromey.com>
2604
2605 * break-catch-sig.c: Include <string>.
2606 (signal_catchpoint_print_one): Use std::string.
2607
2608 2016-09-23 Tom Tromey <tom@tromey.com>
2609
2610 * utils.c (struct restore_ui_out_closure): Remove.
2611 * objfiles.h (terminate_minimal_symbol_table): Don't declare.
2612
2613 2016-09-23 Yao Qi <yao.qi@linaro.org>
2614
2615 * nat/linux-osdata.c (linux_xfer_osdata_threads): Replace
2616 sprintf with xsnprintf.
2617 (linux_xfer_osdata_fds): Likewise.
2618
2619 2016-09-23 Pedro Alves <palves@redhat.com>
2620
2621 * Makefile.in (SFILES): Add common/new-op.c.
2622 (COMMON_OBS): Add common/new-op.o.
2623 (new-op.o): New rule.
2624 * common/common-exceptions.h: Include <new>.
2625 (struct gdb_quit_bad_alloc): New type.
2626 * common/new-op.c: New file.
2627
2628 2016-09-22 Edjunior Barbosa Machado <emachado@linux.vnet.ibm.com>
2629
2630 * rs6000-tdep.c (ppc_process_record_op31): Fix
2631 regcache_raw_read_unsigned call using the correct parameter type.
2632
2633 2016-09-22 Anton Kolesov <anton.kolesov@synopsys.com>
2634
2635 * arc-tdep.c: Fix ARI warning for printf(%p).
2636
2637 2016-09-21 Anton Kolesov <anton.kolesov@synopsys.com>
2638
2639 * MAINTAINERS (Write After Approval): Add Anton Kolesov.
2640
2641 2016-09-21 Anton Kolesov <anton.kolesov@synopsys.com>
2642
2643 * Makefile.in (ALL_TARGET_OBS): Add arc-tdep.o.
2644 (HFILES_NO_SRCDIR): Add arc-tdep.h.
2645 (ALLDEPFILES): Add arc-tdep.c.
2646 * NEWS: Mention new ARC port.
2647 * configure.tgt: Add ARC.
2648 * arc-tdep.c: New file.
2649 * arc-tdep.h: New file.
2650 * features/Makefile (XMLTOC): Add arc-v2.xml and arc-arcompact.xml.
2651 * features/arc-v2.xml: New file.
2652 * features/arc-v2.c: New file (generated).
2653 * features/arc-arcompact.xml: New file.
2654 * features/arc-arcompact.c: New file (generated).
2655
2656 2016-09-21 Edjunior Barbosa Machado <emachado@linux.vnet.ibm.com>
2657
2658 * rs6000-tdep.c (ppc_process_record_op63): Fix return of instruction
2659 handlers.
2660
2661 2016-09-21 Tom Tromey <tom@tromey.com>
2662
2663 PR gdb/20604:
2664 * top.h (quit_force): Update.
2665 * top.c (quit_force): Changed type of first argument. Don't
2666 evaluate expression. Pass NULL to kill_or_detach.
2667 * cli/cli-cmds.c (quit_command): Evaluate "args".
2668
2669 2016-09-21 Simon Marchi <simon.marchi@ericsson.com>
2670
2671 * .gitignore: Ignore more files.
2672 * data-directory/.gitignore: Likewise.
2673
2674 2016-09-21 Edjunior Barbosa Machado <emachado@linux.vnet.ibm.com>
2675
2676 * rs6000-tdep.c (PPC_DQ): New macro.
2677 (ppc_process_record_op4): Add Power ISA 3.0 instructions.
2678 (ppc_process_record_op19): Likewise.
2679 (ppc_process_record_op31): Likewise.
2680 (ppc_process_record_op59): Likewise.
2681 (ppc_process_record_op60): Likewise.
2682 (ppc_process_record_op63): Likewise.
2683 (ppc_process_record): Likewise.
2684 (ppc_process_record_op61): New function.
2685
2686 2016-09-21 Yao Qi <yao.qi@linaro.org>
2687
2688 * aarch32-linux-nat.c (aarch32_gp_regcache_collect): Keep
2689 bits 20 to 23.
2690
2691 2016-09-20 Tom Tromey <tom@tromey.com>
2692
2693 * python/py-value.c (convert_value_from_python): Make PyInt_Check
2694 conditional on Python 2.
2695 * python/py-arch.c (archpy_disassemble): Make PyInt_Check
2696 conditional on Python 2.
2697
2698 2016-09-20 Edjunior Barbosa Machado <emachado@linux.vnet.ibm.com>
2699
2700 * rs6000-tdep.c (ppc_process_record_op31): Fix record of Store String
2701 Word instructions.
2702
2703 2016-09-20 Sergio Durigan Junior <sergiodj@redhat.com>
2704
2705 * fork-inferior.c (startup_inferior): Pass 'event_ptid' instead of
2706 'resume_ptid' to 'target_mourn_inferior'. Fix regression
2707 introduced by my last commit.
2708
2709 2016-09-19 Pedro Alves <palves@redhat.com>
2710
2711 * common/gdb_locale.h [!ENABLE_NLS] (gettext, dgettext, dcgettext,
2712 textdomain, bindtextdomain): Delete macros.
2713 * main.c (captured_main) [!ENABLE_NLS]: Skip bintextdomain and
2714 textdomain calls.
2715
2716 2016-09-19 Sergio Durigan Junior <sergiodj@redhat.com>
2717
2718 * darwin-nat.c (darwin_kill_inferior): Adjusting call to
2719 target_mourn_inferior to include ptid_t argument.
2720 * fork-child.c (startup_inferior): Likewise.
2721 * gnu-nat.c (gnu_kill_inferior): Likewise.
2722 * inf-ptrace.c (inf_ptrace_kill): Likewise.
2723 * infrun.c (handle_inferior_event_1): Likewise.
2724 * linux-nat.c (linux_nat_attach): Likewise.
2725 (linux_nat_kill): Likewise.
2726 * nto-procfs.c (interrupt_query): Likewise.
2727 (procfs_interrupt): Likewise.
2728 (procfs_kill_inferior): Likewise.
2729 * procfs.c (procfs_kill_inferior): Likewise.
2730 * record.c (record_mourn_inferior): Likewise.
2731 * remote-sim.c (gdbsim_kill): Likewise.
2732 * remote.c (remote_detach_1): Likewise.
2733 (remote_kill): Likewise.
2734 * target.c (target_mourn_inferior): Change declaration to accept
2735 new ptid_t argument; use gdb_assert on it.
2736 * target.h (target_mourn_inferior): Move function prototype from
2737 here...
2738 * target/target.h (target_mourn_inferior): ... to here. Adjust it
2739 to accept new ptid_t argument.
2740 * windows-nat.c (get_windows_debug_event): Adjusting call to
2741 target_mourn_inferior to include ptid_t argument.
2742
2743 2016-09-18 Pedro Alves <palves@redhat.com>
2744
2745 * s390-linux-nat.c: Include <algorithm>.
2746
2747 2016-09-18 Pedro Alves <palves@redhat.com>
2748
2749 * breakpoint.c (hardware_watchpoint_inserted_in_range): Explicitly
2750 specify the std:min/std::max specialization.
2751 * exec.c (section_table_read_available_memory): Likewise.
2752 * remote.c (remote_read_qxfer): Likewise.
2753 * target.c (simple_verify_memory): Likewise.
2754
2755 2016-09-16 Simon Marchi <simark@simark.ca>
2756
2757 * infrun.c (restore_current_uiout_cleanup): Move to ui-out.c.
2758 (print_stop_event): Use make_cleanup_restore_current_uiout.
2759 * python/python.c (execute_gdb_command): Likewise.
2760 * ui-out.c (restore_current_uiout_cleanup): Move from infrun.c.
2761 (make_cleanup_restore_current_uiout): New function definition.
2762 * ui-out.h (make_cleanup_restore_current_uiout): New function
2763 declaration.
2764 * utils.c (do_restore_ui_out): Remove.
2765 (make_cleanup_restore_ui_out): Remove.
2766 * utils.h (make_cleanup_restore_ui_out): Remove.
2767
2768 2016-09-16 Pedro Alves <palves@redhat.com>
2769
2770 * defs.h (min, max): Delete.
2771 * aarch64-tdep.c: Include <algorithm> and use std::min and
2772 std::max throughout.
2773 * aarch64-tdep.c: Likewise.
2774 * alpha-tdep.c: Likewise.
2775 * amd64-tdep.c: Likewise.
2776 * amd64-windows-tdep.c: Likewise.
2777 * arm-tdep.c: Likewise.
2778 * avr-tdep.c: Likewise.
2779 * breakpoint.c: Likewise.
2780 * btrace.c: Likewise.
2781 * ctf.c: Likewise.
2782 * disasm.c: Likewise.
2783 * doublest.c: Likewise.
2784 * dwarf2loc.c: Likewise.
2785 * dwarf2read.c: Likewise.
2786 * environ.c: Likewise.
2787 * exec.c: Likewise.
2788 * f-exp.y: Likewise.
2789 * findcmd.c: Likewise.
2790 * ft32-tdep.c: Likewise.
2791 * gcore.c: Likewise.
2792 * hppa-tdep.c: Likewise.
2793 * i386-darwin-tdep.c: Likewise.
2794 * i386-tdep.c: Likewise.
2795 * linux-thread-db.c: Likewise.
2796 * lm32-tdep.c: Likewise.
2797 * m32r-tdep.c: Likewise.
2798 * m88k-tdep.c: Likewise.
2799 * memrange.c: Likewise.
2800 * minidebug.c: Likewise.
2801 * mips-tdep.c: Likewise.
2802 * moxie-tdep.c: Likewise.
2803 * nds32-tdep.c: Likewise.
2804 * nios2-tdep.c: Likewise.
2805 * nto-procfs.c: Likewise.
2806 * parse.c: Likewise.
2807 * ppc-sysv-tdep.c: Likewise.
2808 * probe.c: Likewise.
2809 * record-btrace.c: Likewise.
2810 * remote.c: Likewise.
2811 * rs6000-tdep.c: Likewise.
2812 * rx-tdep.c: Likewise.
2813 * s390-linux-nat.c: Likewise.
2814 * s390-linux-tdep.c: Likewise.
2815 * ser-tcp.c: Likewise.
2816 * sh-tdep.c: Likewise.
2817 * sh64-tdep.c: Likewise.
2818 * source.c: Likewise.
2819 * sparc-tdep.c: Likewise.
2820 * symfile.c: Likewise.
2821 * target-memory.c: Likewise.
2822 * target.c: Likewise.
2823 * tic6x-tdep.c: Likewise.
2824 * tilegx-tdep.c: Likewise.
2825 * tracefile-tfile.c: Likewise.
2826 * tracepoint.c: Likewise.
2827 * valprint.c: Likewise.
2828 * value.c: Likewise.
2829 * xtensa-tdep.c: Likewise.
2830 * cli/cli-cmds.c: Likewise.
2831 * compile/compile-object-load.c: Likewise.
2832
2833 2016-09-16 Andreas Arnez <arnez@linux.vnet.ibm.com>
2834
2835 * s390-linux-nat.c (PER_BIT, PER_EVENT_BRANCH, PER_EVENT_IFETCH)
2836 (PER_EVENT_STORE, PER_EVENT_NULLIFICATION)
2837 (PER_CONTROL_BRANCH_ADDRESS, PER_CONTROL_SUSPENSION)
2838 (PER_CONTROL_ALTERATION): New macros.
2839 (struct s390_debug_reg_state) <break_areas>: New member.
2840 (s390_forget_process): Free break_areas as well.
2841 (s390_linux_new_fork): Copy break_areas as well.
2842 (s390_prepare_to_resume): Install hardware breakpoints.
2843 (s390_can_use_hw_breakpoint): Indicate support for hardware
2844 breakpoints.
2845 (s390_insert_hw_breakpoint, s390_remove_hw_breakpoint): New
2846 linux_nat target methods.
2847 (_initialize_s390_nat): Register them.
2848
2849 2016-09-16 Andreas Arnez <arnez@linux.vnet.ibm.com>
2850
2851 * nat/linux-nat.h (lwp_is_stepping): New declaration.
2852 * linux-nat.c (lwp_is_stepping): New function.
2853
2854 2016-09-16 Andreas Arnez <arnez@linux.vnet.ibm.com>
2855
2856 * s390-linux-nat.c (gdbcmd.h): New include.
2857 (s390_show_debug_regs): New function.
2858 (s390_stopped_by_watchpoint): Call it, if show_debug_regs is set.
2859 (s390_prepare_to_resume): Likewise.
2860 (_initialize_s390_nat): Register the command "maint set
2861 show-debug-regs".
2862
2863 2016-09-16 Andreas Arnez <arnez@linux.vnet.ibm.com>
2864
2865 * s390-linux-nat.c (watch_areas): Remove variable. Replace by a
2866 member of...
2867 (struct s390_debug_reg_state): ...this. New struct.
2868 (struct s390_process_info): New struct.
2869 (s390_process_list): New variable.
2870 (s390_find_process_pid, s390_add_process, s390_process_info_get)
2871 (s390_get_debug_reg_state): New functions.
2872 (s390_stopped_by_watchpoint): Now access the watch_areas VEC via
2873 s390_get_debug_reg_state.
2874 (s390_prepare_to_resume): Likewise.
2875 (s390_insert_watchpoint): Likewise.
2876 (s390_remove_watchpoint): Likewise.
2877 (s390_forget_process, s390_linux_new_fork): New linux_nat target
2878 methods.
2879 (_initialize_s390_nat): Register them.
2880
2881 2016-09-16 Andreas Arnez <arnez@linux.vnet.ibm.com>
2882
2883 * s390-linux-nat.c (s390_watch_area): New typedef. Define a VEC.
2884 (watch_base): Remove variable.
2885 (watch_areas): New variable.
2886 (s390_stopped_by_watchpoint): Transform operations on the
2887 watch_base list to equivalent operations on the watch_areas VEC.
2888 (s390_prepare_to_resume): Likewise.
2889 (s390_insert_watchpoint): Likewise.
2890 (s390_remove_watchpoint): Likewise.
2891
2892 2016-09-16 Andreas Arnez <arnez@linux.vnet.ibm.com>
2893
2894 * s390-linux-nat.c (s390_prepare_to_resume): Use advertised lwp
2895 functions instead of accessing lwp_info structure members.
2896 (s390_mark_per_info_changed): New function.
2897 (s390_new_thread): Use it.
2898 (s390_refresh_per_info_cb): New function.
2899 (s390_refresh_per_info): Remove parameter. Refresh all lwps of
2900 the current process.
2901 (s390_insert_watchpoint): Adjust call to s390_refresh_per_info.
2902 (s390_remove_watchpoint): Likewise.
2903
2904 2016-09-09 Andreas Arnez <arnez@linux.vnet.ibm.com>
2905
2906 * elfread.c (auxv.h): New include.
2907 (elf_gnu_ifunc_resolve_addr): Pass HWCAP to ifunc resolver.
2908
2909 2016-09-08 Tom Tromey <tom@tromey.com>
2910
2911 * remote.c (remote_notif_stop_ack, remote_wait_as)
2912 (show_remote_cmd): Remove unneeded casts.
2913
2914 2016-09-06 Pedro Alves <palves@redhat.com>
2915
2916 * top.c (wait_sync_command_done): Don't assume current_ui doesn't
2917 change across events. Restore the current UI before returning.
2918 (gdb_readline_wrapper): Restore the current UI before returning.
2919
2920 2016-09-06 Pedro Alves <palves@redhat.com>
2921
2922 * event-top.c (restore_ui_cleanup): Now static.
2923 (make_cleanup_restore_current_ui): New function.
2924 (switch_thru_all_uis_init): Use it.
2925 * infcall.c (call_thread_fsm_should_stop): Use it.
2926 * infrun.c (fetch_inferior_event): Use it.
2927 * top.c (new_ui_command): Use it.
2928 * top.h (restore_ui_cleanup): Delete declaration.
2929 (make_cleanup_restore_current_ui): New declaration.
2930
2931 2016-09-05 Ulrich Weigand <uweigand@de.ibm.com>
2932
2933 * i386-tdep.c (i386_floatformat_for_type): New function.
2934 (i386_gdbarch_init): Install it.
2935 * ppc-linux-tdep.c (ppc_floatformat_for_type): New function.
2936 (ppc_linux_init_abi): Install it.
2937
2938 2016-09-05 Ulrich Weigand <uweigand@de.ibm.com>
2939
2940 * gdbarch.sh (floatformat_for_type): New gdbarch callback.
2941 * gdbarch.h, gdbarch.c: Re-generate.
2942 * arch-utils.h (default_floatformat_for_type): New prototype.
2943 * arch-utils.c (default_floatformat_for_type): New function.
2944
2945 * doublest.c (floatformat_from_length): Remove.
2946 (floatformat_from_type): Assume TYPE_FLOATFORMAT is non-NULL.
2947 * gdbtypes.c (verify_floatformat): Require non-NULL format.
2948
2949 * dwarf2read.c (dwarf2_init_float_type): New function.
2950 (read_base_type): Use it.
2951 * stabsread.c (dbx_init_float_type): New function.
2952 (read_sun_floating_type): Use it.
2953 (read_range_type): Likewise.
2954
2955 2016-09-05 Ulrich Weigand <uweigand@de.ibm.com>
2956
2957 * ada-lang.c (ada_language_arch_info): Use gdbarch-provided
2958 platform ABI floating-point formats for built-in types.
2959 * d-lang.c (build_d_types): Likewise.
2960 * f-lang.c (build_fortran_types): Likewise.
2961 * m2-lang.c (build_m2_types): Likewise.
2962 * mdebugread.c (basic_type): Likewise.
2963
2964 * go-lang.c (build_go_types): Use IEEE floating-point formats
2965 for language built-in types as mandanted by the language.
2966 * jv-lang.c (build_java_types): Likewise.
2967 * rust-lang.c (rust_language_arch_info): Likewise.
2968 * stabsread.c (rs6000_builtin_type): Likewise.
2969
2970 2016-09-05 Ulrich Weigand <uweigand@de.ibm.com>
2971
2972 * gdbtypes.c (init_type): Remove "char" special case.
2973 (arch_integer_type): Likewise.
2974 (gdbtypes_post_init): Set TYPE_NOSIGN for "char" type.
2975 (objfile_type): Likewise.
2976 * mdebugread.c (basic_type): Likewise.
2977 * stabsread.c (rs6000_builtin_type): Likewise.
2978
2979 2016-09-05 Ulrich Weigand <uweigand@de.ibm.com>
2980
2981 * gdbtypes.h (enum type_flag_value): Remove.
2982 Remove references to TYPE_FLAG_... in comments throughout.
2983 * gdbtypes.c (recursive_dump_type): Do not print TYPE_FLAG_...
2984 flags, print the corresponding TYPE_... access macro names.
2985 Remove references to TYPE_FLAG_... in comments throughout.
2986 * infcall.c: Remove references to TYPE_FLAG_... in comments.
2987 * valprint.c: Likewise.
2988 * gdb-gdb.py (class TypeFlag): No longer consider TYPE_FLAG_...
2989 values, only TYPE_INSTANCE_FLAG_... values.
2990 (class TypeFlagsPrinter): Likewise.
2991
2992 2016-09-05 Ulrich Weigand <uweigand@de.ibm.com>
2993
2994 * gdbtypes.h (init_type): Remove FLAGS argument. Move OBJFILE
2995 argument to first position.
2996 (init_integer_type): New prototype.
2997 (init_character_type): Likewise.
2998 (init_boolean_type): Likewise.
2999 (init_float_type): Likewise.
3000 (init_decfloat_type): Likewise.
3001 (init_complex_type): Likewise.
3002 (init_pointer_type): Likewise.
3003 * gdbtypes.c (verify_floatflormat): New function.
3004 (init_type): Remove FLAGS argument and processing. Move OBJFILE
3005 argument to first position.
3006 (init_integer_type): New function.
3007 (init_character_type): Likewise.
3008 (init_boolean_type): Likewise.
3009 (init_float_type): Likewise.
3010 (init_decfloat_type): Likewise.
3011 (init_complex_type): Likewise.
3012 (init_pointer_type): Likewise.
3013 (arch_float_type): Use verify_floatflormat.
3014 (objfile_type): Use init_..._type helpers instead of calling
3015 init_type directly.
3016 * dwarf2read.c (fixup_go_packaging): Update to changed init_type
3017 prototype.
3018 (read_namespace_type): Likewise.
3019 (read_module_type): Likewise.
3020 (read_typedef): Likewise.
3021 (read_unspecified_type): Likewise.
3022 (build_error_marker_type): Likewise.
3023 (read_base_type): Use init_..._type helpers.
3024 * mdebugread.c (basic_type): Use init_..._type helpers.
3025 (parse_type): Update to changed init_type prototype.
3026 (cross_ref): Likewise.
3027 * stabsread.c (rs6000_builtin_type): Use init_..._type helpers.
3028 (read_sun_builtin_type): Likewise.
3029 (read_sun_floating_type): Likewise.
3030 (read_range_type): Likewise. Also update to changed init_type
3031 prototype.
3032
3033 2016-09-05 Ulrich Weigand <uweigand@de.ibm.com>
3034
3035 * gdbtypes.h (arch_decfloat_type): New prototype.
3036 (arch_pointer_type): Likewise.
3037 * gdbtypes.c (arch_decfloat_type): New function.
3038 (arch_pointer_type): Likewise.
3039 (gdbtypes_post_init): Use arch_decfloat_type.
3040 * avr-tdep.c (avr_gdbarch_init): Use arch_pointer_type.
3041 * ft32-tdep.c (ft32_gdbarch_init): Likewise.
3042 * m32c-tdep.c (make_types): Likewise.
3043 * rl78-tdep.c (rl78_gdbarch_init): Likewise.
3044
3045 2016-09-05 Ulrich Weigand <uweigand@de.ibm.com>
3046
3047 * gdbtypes.c (set_type_code): New function.
3048 (init_type, arch_type): Use it.
3049
3050 2016-09-05 Ulrich Weigand <uweigand@de.ibm.com>
3051
3052 * ada-lang.c (ada_language_arch_info): Use gdbarch_long_double_bit
3053 instead of gdbarch_double_bit for "long_long_float".
3054
3055 2016-09-05 Pedro Alves <palves@redhat.com>
3056
3057 * NEWS: Mention that a C++ compiler is now required.
3058 * Makefile.in (COMPILER, COMPILER_CFLAGS): Remove.
3059 (COMPILE.pre, CC_LD): Use CXX directly.
3060 (INTERNAL_CFLAGS_BASE): Use CXXFLAGS directly.
3061 * acinclude.m4: Don't include build-with-cxx.m4.
3062 * build-with-cxx.m4: Delete file.
3063 * configure.ac: Remove GDB_AC_BUILD_WITH_CXX call.
3064 * warning.m4: Assume $enable_build_with_cxx is yes.
3065 * configure: Regenerate.
3066
3067 2016-09-05 Pedro Alves <palves@redhat.com>
3068
3069 PR backtrace/19927
3070 * frame.c (get_frame_id): Compute the frame id if not computed
3071 yet.
3072 (unwind_to_current_frame): Delete.
3073 (get_current_frame): Use get_prev_frame_always_1 to get the
3074 current frame and assert that that always succeeds.
3075 (get_prev_frame_if_no_cycle): Skip cycle detection if returning
3076 the current frame.
3077
3078 2016-09-02 Tom Tromey <tom@tromey.com>
3079
3080 PR gdb/11616:
3081 * dwarf2read.c (decode_locdesc): Handle DW_OP_form_tls_address.
3082 * dwarf2loc.c (dwarf2_compile_expr_to_ax): Handle
3083 DW_OP_form_tls_address.
3084 (locexpr_describe_location_piece): Likewise.
3085 * dwarf2expr.h (struct dwarf_expr_context_funcs): Update comment.
3086 * dwarf2expr.c (execute_stack_op): Handle DW_OP_form_tls_address.
3087 (ctx_no_get_tls_address): Mention DW_OP_form_tls_address.
3088 * compile/compile-loc2c.c (struct insn_info): Update comment.
3089 (compute_stack_depth_worker): Handle DW_OP_form_tls_address.
3090
3091 2016-09-01 Sergio Durigan Junior <sergiodj@redhat.com>
3092
3093 * target.c (target_wait): Mention that the function's prototype
3094 can be found at target/target.h.
3095 * target.h (target_wait): Move prototype from here...
3096 * target/target.h (target_wait): ... to here.
3097
3098 2016-09-01 Sergio Durigan Junior <sergiodj@redhat.com>
3099
3100 * fork-child.c (startup_inferior): Replace calls to target_resume
3101 by target_continue{,_no_signal}, depending on the case.
3102 * linux-nat.c (cleanup_target_stop): Call
3103 target_continue_no_signal instead of target_resume.
3104 * procfs.c (procfs_wait): Likewise.
3105 * target.c (target_continue): New function.
3106 * target/target.h (target_continue): New prototype.
3107
3108 2016-08-31 Yao Qi <yao.qi@linaro.org>
3109
3110 * record-full.c (record_full_insert_breakpoint): Fix typo.
3111
3112 2016-08-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
3113
3114 * thread.c (tp_array_compar): Insert missing parentheses.
3115
3116 2016-08-25 Andreas Arnez <arnez@linux.vnet.ibm.com>
3117
3118 * xtensa-tdep.h (XTENSA_GDBARCH_TDEP_INSTANTIATE): Replace
3119 designated initializer list by plain initializer list, for C++
3120 compliance.
3121
3122 2016-08-25 Adhemerval Zanella <adhemerval.zanella@linaro.org>
3123
3124 * aarch64-linux-nat.c (ps_get_thread_area): Remove const from
3125 struct ps_prochandle.
3126 * amd64-linux-nat.c (ps_get_thread_area): Likewise.
3127 * arm-linux-nat.c (ps_get_thread_area): Likewise.
3128 * gdb_proc_service.h (ps_get_thread_area): Likewise.
3129 * i386-linux-nat.c (ps_get_thread_area): Likewise.
3130 * m68klinux-nat.c (ps_get_thread_area): Likewise.
3131 * mips-linux-nat.c (ps_get_thread_area): Likewise.
3132 * nat/aarch64-linux.c (aarch64_ps_get_thread_area): Likewise.
3133 * nat/aarch64-linux.h (aarch64_ps_get_thread_area): Likewise.
3134 * xtensa-linux-nat.c (ps_get_thread_area): Likewise.
3135
3136 2016-08-24 Simon Marchi <simon.marchi@ericsson.com>
3137
3138 * infcmd.c (set_inferior_io_terminal): Set inferior terminal to
3139 NULL if terminal_name is an empty string.
3140 (_initialize_infcmd): Make the argument of "set inferior-tty"
3141 optional, mention it in the help doc.
3142
3143 2016-08-24 Carl Love <cel@us.ibm.com>
3144
3145 * rs6000-tdep.c (rs6000_gdbarch_init): Remove call
3146 set_gdbarch_deprecated_fp_regnum() architecture
3147 initialization function.
3148
3149 2016-08-23 Simon Marchi <simon.marchi@ericsson.com>
3150
3151 * stack.c (parse_frame_specification): Fix typo in comment.
3152
3153 2016-08-23 Pedro Alves <palves@redhat.com>
3154
3155 PR gdb/20494
3156 * inflow.c (our_terminal_info, initial_gdb_ttystate): Update
3157 comments.
3158 (enum gdb_has_a_terminal_flag_enum, gdb_has_a_terminal_flag):
3159 Delete.
3160 (set_initial_gdb_ttystate): Record our_terminal_info here too,
3161 instead of ...
3162 (gdb_has_a_terminal): ... here. Reimplement in terms of
3163 initial_gdb_ttystate. Make static.
3164 * terminal.h (gdb_has_a_terminal): Delete declaration.
3165 (set_initial_gdb_ttystate): Add comment.
3166 * top.c (show_interactive_mode): Use input_interactive_p instead
3167 of gdb_has_a_terminal.
3168
3169 2016-08-22 Pedro Alves <palves@redhat.com>
3170
3171 PR gdb/20505
3172 * linux-tdep.c (linux_vsyscall_range_raw): For core inferiors,
3173 find the vDSO's start address with AT_SYSINFO_EHDR too, and
3174 determine the vDSO's size by finding the PT_LOAD segment that
3175 matches AT_SYSINFO_EHDR.
3176
3177 2016-08-19 Yao Qi <yao.qi@linaro.org>
3178
3179 * aarch64-tdep.c (aarch64_analyze_prologue): Handle register
3180 based STP instruction.
3181
3182 2016-08-19 Yao Qi <yao.qi@linaro.org>
3183
3184 * completer.c (linespec_location_completer): Make file_to_match
3185 null-terminated.
3186
3187 2016-08-19 Pedro Alves <palves@redhat.com>
3188
3189 * amd64-tdep.c (amd64_relocate_instruction) <callq>: Handle return
3190 addresses over 0x7fffffff.
3191
3192 2016-08-18 Carl Love <cel@us.ibm.com>
3193
3194 * MAINTANERS Write After Approval): Add "Carl Love".
3195
3196 2016-08-18 Edjunior Barbosa Machado <emachado@linux.vnet.ibm.com>
3197
3198 * rs6000-tdep.c (ppc_process_record_op31): Handle HTM instructions.
3199
3200 2016-08-17 Simon Marchi <simon.marchi@ericsson.com>
3201
3202 * inferior.c (remove_inferior_command): Fix error message.
3203
3204 2016-08-17 Simon Marchi <simon.marchi@ericsson.com>
3205
3206 * inferior.c (exit_inferior_1): Remove comment.
3207
3208 2016-08-15 Matthew Wahab <matthew.wahab@arm.com>
3209
3210 PR gdb/20457
3211 * gdb_proc_service.h: Add an include of gregset.h
3212 [!HAVE_PROC_SERVICE_H]: Remove the include of gregset.h.
3213
3214 2016-08-15 Yao Qi <yao.qi@linaro.org>
3215
3216 * location.c (explicit_location_lex_one): Compare the return
3217 value of strncmp with zero. Don't check (*inp)[9]. Increment
3218 *inp by 8.
3219
3220 2016-08-11 Pedro Alves <palves@redhat.com>
3221
3222 PR gdb/20413
3223 * nat/linux-ptrace.c: Include <sys/procfs.h> instead of
3224 "gregset.h".
3225
3226 2016-08-10 Pedro Alves <palves@redhat.com>
3227
3228 PR gdb/19187
3229 * record-full.c (record_full_remove_breakpoint): Don't remove the
3230 breakpoint from the record_full_breakpoints VEC if we're detaching
3231 the breakpoint from a fork child.
3232
3233 2016-08-10 Pedro Alves <palves@redhat.com>
3234
3235 PR gdb/19187
3236 * break-catch-sig.c (signal_catchpoint_remove_location): Adjust
3237 interface.
3238 * break-catch-syscall.c (remove_catch_syscall):
3239 * breakpoint.c (enum remove_bp_reason): Moved to breakpoint.h.
3240 (remove_breakpoint_1): Pass 'reason' down.
3241 (remove_catch_fork, remove_catch_vfork, remove_catch_solib)
3242 (remove_catch_exec, remove_watchpoint, remove_masked_watchpoint)
3243 (base_breakpoint_remove_location, bkpt_remove_location)
3244 (bkpt_probe_remove_location, bkpt_probe_remove_location): Adjust
3245 interface.
3246 * breakpoint.h (enum remove_bp_reason): Moved here from
3247 breakpoint.c.
3248 (struct breakpoint_ops) <remove_location>: Add 'reason' parameter.
3249 * corelow.c (core_remove_breakpoint): New function.
3250 (init_core_ops): Install it as to_remove_breakpoint method.
3251 * exec.c (exec_remove_breakpoint): New function.
3252 (init_exec_ops): Install it as to_remove_breakpoint method.
3253 * mem-break.c (memory_remove_breakpoint): Adjust interface.
3254 * record-btrace.c (record_btrace_remove_breakpoint): Adjust
3255 interface.
3256 * record-full.c (record_full_remove_breakpoint)
3257 (record_full_core_remove_breakpoint): Adjust interface.
3258 * remote.c (remote_remove_breakpoint): Adjust interface.
3259 * target-debug.h (target_debug_print_enum_remove_bp_reason): New
3260 macro.
3261 * target-delegates.c: Regenerate.
3262 * target.c (target_remove_breakpoint): Add 'reason' parameter.
3263 * target.h (struct target_ops) <to_remove_breakpoint>: Add
3264 'reason' parameter.
3265 (target_remove_breakpoint, memory_remove_breakpoint): Add 'reason'
3266 parameter.
3267
3268 2016-08-10 Pedro Alves <palves@redhat.com>
3269
3270 PR gdb/19187
3271 * breakpoint.c (insertion_state_t): Delete.
3272 (enum remove_bp_reason): New.
3273 (detach_breakpoints, remove_breakpoint_1, remove_breakpoint):
3274 Adjust to use enum remove_bp_reason instead of insertion_state_t.
3275
3276 2016-08-10 Pedro Alves <palves@redhat.com>
3277
3278 PR gdb/19187
3279 * breakpoint.c (remove_breakpoint): Remove 'is' parameter and
3280 always pass mark_uninserted to remove_breakpoint_1.
3281 (insert_breakpoint_locations, remove_breakpoints)
3282 (remove_breakpoints_pid, update_global_location_list): Update
3283 callers.
3284
3285 2016-08-10 Руслан Ижбулатов <lrn1986@gmail.com>
3286 Pedro Alves <palves@redhat.com>
3287
3288 * windows-nat.c (MS_VC_EXCEPTION): New define.
3289 (handle_exception_result): New enum.
3290 (windows_delete_thread): Free the thread's name.
3291 (handle_exception): Handle MS_VC_EXCEPTION.
3292 (get_windows_debug_event): Handle HANDLE_EXCEPTION_IGNORED.
3293 (windows_thread_name): New function.
3294 (windows_target): Install it as to_thread_name method.
3295 * NEWS: Mention the thread naming support on MS-Windows.
3296
3297 2016-08-10 Pedro Alves <palves@redhat.com>
3298
3299 * common/signals-state-save-restore.c
3300 (save_original_signals_state, restore_original_signals_state):
3301 Wrap perror_with_name arguments with '()'.
3302
3303 2016-08-09 Pedro Alves <palves@redhat.com>
3304
3305 PR gdb/20418
3306 * event-top.c (ui_register_input_event_handler)
3307 (ui_unregister_input_event_handler): New functions.
3308 (async_enable_stdin): Register input in the event loop.
3309 (async_disable_stdin): Unregister input from the event loop.
3310 (gdb_setup_readline): Register input in the event loop.
3311 * infrun.c (check_curr_ui_sync_execution_done): Register input in
3312 the event loop.
3313 * target.c (target_terminal_inferior): Don't unregister input from
3314 the event loop.
3315 (target_terminal_ours): Don't register input in the event loop.
3316 * target.h (target_terminal_inferior)
3317 (target_terminal_ours_for_output, target_terminal_ours): Update
3318 comments.
3319 * top.h (ui_register_input_event_handler)
3320 (ui_unregister_input_event_handler): New declarations.
3321 * utils.c (ui_unregister_input_event_handler_cleanup)
3322 (prepare_to_handle_input): New functions.
3323 (defaulted_query, prompt_for_continue): Use
3324 prepare_to_handle_input.
3325
3326 2016-08-09 Pedro Alves <palves@redhat.com>
3327
3328 PR mi/20431
3329 * mi/mi-main.c (mi_execute_command): Enable input and set prompt
3330 state to PROMPT_NEEDED.
3331
3332 2016-08-09 Pedro Alves <palves@redhat.com>
3333
3334 PR gdb/18653
3335 * Makefile.in (SFILES): Add
3336 common/signals-state-save-restore.c.
3337 (HFILES_NO_SRCDIR): Add common/signals-state-save-restore.h.
3338 (COMMON_OBS): Add signals-state-save-restore.o.
3339 (signals-state-save-restore.o): New rule.
3340 * configure: Regenerate.
3341 * fork-child.c: Include "signals-state-save-restore.h".
3342 (fork_inferior): Call restore_original_signals_state.
3343 * main.c: Include "signals-state-save-restore.h".
3344 (captured_main): Call save_original_signals_state.
3345 * common/common.m4: Add sigaction to AC_CHECK_FUNCS checks.
3346 * common/signals-state-save-restore.c: New file.
3347 * common/signals-state-save-restore.h: New file.
3348
3349 2016-08-09 Pedro Alves <palves@redhat.com>
3350
3351 * value.c (unpack_value_bitfield): Skip unpacking if the parent
3352 has no contents buffer to begin with.
3353
3354 2016-08-08 Pedro Alves <palves@redhat.com>
3355
3356 * features/i386/amd64-avx-mpx-linux.c: Regenerate.
3357 * features/i386/amd64-avx-mpx.c: Regenerate.
3358 * features/i386/i386-avx-mpx-linux.c: Regenerate.
3359 * features/i386/i386-avx-mpx.c: Regenerate.
3360
3361 2016-08-05 Simon Marchi <simon.marchi@ericsson.com>
3362
3363 * event-top.h (cli_command_loop): Remove.
3364
3365 2016-08-05 Pedro Alves <palves@redhat.com>
3366
3367 PR remote/20398
3368 * remote-fileio.c (remote_fileio_quit_handler): Check the quit
3369 flag before calling quit.
3370
3371 2016-08-05 Pedro Alves <palves@redhat.com>
3372
3373 * NEWS: Mention that GDB and GDBserver build with a C++ compiler
3374 by default.
3375
3376 2016-08-05 Pedro Alves <palves@redhat.com>
3377
3378 * build-with-cxx.m4: Change help string to be in terms of
3379 --disable-build-with-cxx.
3380 * configure: Regenerate.
3381
3382 2016-08-04 Yao Qi <yao.qi@linaro.org>
3383
3384 * aarch64-linux-nat.c (tdesc_arm_with_vfpv3): Remove the
3385 declaration.
3386 (aarch64_linux_read_description): Remove code on getting
3387 auxv and select target description on it. Select target
3388 description by the result of NT_ARM_VFP ptrace request.
3389
3390 2016-08-03 Tom Tromey <tom@tromey.com>
3391
3392 PR python/18565:
3393 * python/py-frame.c (frapy_function): Use find_frame_funname.
3394
3395 2016-08-03 Tom Tromey <tom@tromey.com>
3396
3397 * stack.c (find_frame_funname): Avoid any possible leak in case
3398 cp_remove_params can throw.
3399
3400 2016-08-03 Tom Tromey <tom@tromey.com>
3401
3402 * NEWS: Mention new Python breakpoint events.
3403
3404 2016-08-02 Tom Tromey <tom@tromey.com>
3405
3406 * MAINTAINERS (Core): Add self as Rust maintainer.
3407
3408 2016-08-01 Joel Brobecker <brobecker@adacore.com>
3409
3410 * NEWS: Create a new section for the next release branch.
3411 Rename the section of the current branch, now that it has
3412 been cut.
3413
3414 2016-08-01 Joel Brobecker <brobecker@adacore.com>
3415
3416 GDB 7.12 branch created (41bfcd638a4e0e48b96ce4de2845372dea481322):
3417 * version.in: Bump version to 7.12.50.DATE-git.
3418
3419 2016-07-27 Alan Modra <amodra@gmail.com>
3420
3421 * amd64-darwin-tdep.c: Don't include libbfd.h.
3422 * i386-darwin-tdep.c: Likewise.
3423 * rs6000-nat.c: Likewise.
3424 * rs6000-tdep.c: Likewise.
3425
3426 2016-07-26 Tom Tromey <tom@tromey.com>
3427
3428 * symtab.c (register_symbol_computed_impl): Update.
3429 PR python/20190:
3430 * value.h (symbol_read_needs): Declare.
3431 (symbol_read_needs_frame): Add comment.
3432 * symtab.h (struct symbol_computed_ops) <read_variable>: Update
3433 comment.
3434 <get_symbol_read_needs>: Rename. Change return type.
3435 * findvar.c (symbol_read_needs): New function.
3436 (symbol_read_needs_frame): Rewrite.
3437 (default_read_var_value): Use symbol_read_needs.
3438 * dwarf2loc.c (struct symbol_needs_baton): Rename.
3439 <needs>: Renamed from needs_frame. Changed type.
3440 (needs_frame_read_addr_from_reg, symbol_needs_get_reg_value)
3441 (symbol_needs_read_mem, symbol_needs_frame_base)
3442 (symbol_needs_frame_cfa, symbol_needs_tls_address)
3443 (symbol_needs_dwarf_call): Rename.
3444 (needs_dwarf_reg_entry_value): Update.
3445 (symbol_needs_ctx_funcs, dwarf2_loc_desc_get_symbol_read_needs):
3446 Rename and update.
3447 (locexpr_get_symbol_read_needs, loclist_symbol_needs): Likewise.
3448 (dwarf2_locexpr_funcs, dwarf2_loclist_funcs): Update.
3449 * defs.h (enum symbol_needs_kind): New.
3450
3451 2016-07-26 Pedro Alves <palves@redhat.com>
3452
3453 * nat/linux-ptrace.c: Include "gregset.h".
3454 (linux_ptrace_test_ret_to_nx): Use PTRACE_GETREGS instead of
3455 PTRACE_PEEKUSER.
3456
3457 2016-07-26 Pedro Alves <palves@redhat.com>
3458
3459 * amd64-linux-nat.c (amd64_linux_siginfo_fixup): Rename 'native'
3460 parameter to 'ptrace'.
3461 * nat/amd64-linux-siginfo.c (GDB_SI_SIZE): New define.
3462 (nat_uptr_t): New an unsigned long.
3463 (nat_clock_t): Remove attribute __aligned__.
3464 (struct nat_timeval): Delete.
3465 (nat_siginfo_t): Remove attribute __aligned__.
3466 (ptrace_siginfo_t): Define.
3467 (compat_siginfo_from_siginfo, siginfo_from_compat_siginfo)
3468 (compat_x32_siginfo_from_siginfo)
3469 (siginfo_from_compat_x32_siginfo): Make 'from' parameter const.
3470 Convert through a ptrace_siginfo_t instead of a nat_siginfo_t.
3471 Remove casts.
3472 (amd64_linux_siginfo_fixup_common): Rename 'native' parameter to
3473 'ptrace'. Remove static assertions.
3474 (top level): New static assertions.
3475
3476 2016-07-25 Simon Marchi <simon.marchi@ericsson.com>
3477
3478 * top.h (make_delete_ui_cleanup): New declaration.
3479 * top.c (delete_ui_cleanup): New function.
3480 (make_delete_ui_cleanup): New function.
3481 (new_ui_command): Create restore_ui cleanup earlier, create a
3482 delete_ui cleanup and discard it on success.
3483
3484 2016-07-25 Pedro Alves <palves@redhat.com>
3485 Jan Kratochvil <jan.kratochvil@redhat.com>
3486
3487 * nat/linux-procfs.c (parse_proc_status_state): Handle lowercase
3488 't'.
3489
3490 2016-07-25 Pedro Alves <palves@redhat.com>
3491
3492 * nat/linux-procfs.c (enum proc_state): New enum.
3493 (parse_proc_status_state): New function.
3494 (linux_proc_pid_get_state): Replace output string buffer parameter
3495 with an output proc_state parameter. Use parse_proc_status_state.
3496 (linux_proc_pid_is_gone): Adjust to use proc_state values.
3497 (linux_proc_pid_has_state): Change type of 'state' parameter; now
3498 an enum proc_state. Adjust to linux_proc_pid_get_state interface
3499 change.
3500 (linux_proc_pid_is_stopped)
3501 (linux_proc_pid_is_trace_stopped_nowarn)
3502 (linux_proc_pid_is_zombie_maybe_warn): Adjust to
3503 linux_proc_pid_get_state interface change.
3504
3505 2016-07-25 Tim Wiederhake <tim.wiederhake@intel.com>
3506
3507 * MAINTAINERS (Write After Approval): Add Tim Wiederhake
3508
3509 2016-07-25 Tim Wiederhake <tim.wiederhake@intel.com>
3510
3511 * NEWS: Resume btrace on reconnect.
3512 * record-btrace.c: Added record-btrace.h include.
3513 (record_btrace_open): Split into this and ...
3514 (record_btrace_push_target): ... this.
3515 (record_btrace_disconnect): New function.
3516 (init_record_btrace_ops): Use record_btrace_disconnect.
3517 * record-btrace.h: New file.
3518 * remote.c: Added record-btrace.h include.
3519 (remote_start_remote): Check recording status.
3520 (remote_btrace_maybe_reopen): New function.
3521
3522 2016-07-23 Gabriel Krisman Bertazi <gabriel@krisman.be>
3523
3524 * xml-syscall.c (get_syscalls_by_group): New.
3525 (get_syscall_group_names): New.
3526 (struct syscall_group_desc): New structure to store group data.
3527 (struct syscalls_info): Include field to store the group list.
3528 (sysinfo_free_syscall_group_desc): New.
3529 (free_syscalls_info): Free group list.
3530 (syscall_group_create_syscall_group_desc): New.
3531 (syscall_group_add_syscall): New.
3532 (syscall_create_syscall_desc): Add syscall to its groups.
3533 (syscall_start_syscall): Load group attribute.
3534 (syscall_group_get_group_by_name): New.
3535 (xml_list_syscalls_by_group): New.
3536 (xml_list_of_groups): New.
3537 * xml-syscall.h (get_syscalls_by_group): Export function
3538 to retrieve a list of syscalls filtered by the group name.
3539 (get_syscall_group_names): Export function to retrieve the list
3540 of syscall groups.
3541 * break-catch-syscall.c (catch_syscall_split_args): Verify if
3542 argument is a syscall group and expand it to a list of syscalls
3543 when creating catchpoints.
3544 (catch_syscall_completer): Add word completion for system call
3545 groups.
3546 * configure.ac: Include dependency for xsltproc when building
3547 in maintainer-mode.
3548 * break-catch-syscall.c (_initialize_breakpoint): Update catch
3549 syscall command documentation.
3550 * NEWS: Include section about catching groups of syscalls.
3551 * configure: Regenerate.
3552 * data-directory/Makefile.in: Generate syscall xml when building
3553 in maintainer mode.
3554 * syscalls/gdb-syscalls.dtd: Include group attribute to the
3555 syscall element.
3556 * syscalls/apply-defaults.xsl: New.
3557 * syscalls/linux-defaults.xml.in: New.
3558 * syscalls/aarch64-linux.xml: Rename to aarch64-linux.xml.in.
3559 * syscalls/amd64-linux.xml: Rename to amd64-linux.xml.in.
3560 * syscalls/arm-linux.xml: Rename to arm-linux.xml.in.
3561 * syscalls/bfin-linux.xml: Rename to bfin-linux.xml.in.
3562 * syscalls/i386-linux.xml: Rename to i386-linux.xml.in.
3563 * syscalls/mips-n32-linux.xml: Rename to mips-n32-linux.xml.in.
3564 * syscalls/mips-n64-linux.xml: Rename to mips-n64-linux.xml.in.
3565 * syscalls/mips-o32-linux.xml: Rename to mips-o32-linux.xml.in.
3566 * syscalls/ppc-linux.xml: Rename to ppc-linux.xml.in.
3567 * syscalls/ppc64-linux.xml: Rename to ppc64-linux.xml.in.
3568 * syscalls/s390-linux.xml: Rename to s390-linux.xml.in.
3569 * syscalls/s390x-linux.xml: Rename to s390x-linux.xml.in.
3570 * syscalls/sparc-linux.xml: Rename to sparc-linux.xml.in.
3571 * syscalls/sparc64-linux.xml: Rename to sparc64-linux.xml.in.
3572 * syscalls/aarch64-linux.xml: Regenerate.
3573 * syscalls/amd64-linux.xml: Regenerate.
3574 * syscalls/arm-linux.xml: Regenerate.
3575 * syscalls/i386-linux.xml: Regenerate.
3576 * syscalls/mips-n32-linux.xml: Regenerate.
3577 * syscalls/mips-n64-linux.xml: Regenerate.
3578 * syscalls/mips-o32-linux.xml: Regenerate.
3579 * syscalls/ppc-linux.xml: Regenerate.
3580 * syscalls/ppc64-linux.xml: Regenerate.
3581 * syscalls/s390-linux.xml: Regenerate.
3582 * syscalls/s390x-linux.xml: Regenerate.
3583 * syscalls/sparc-linux.xml: Regenerate.
3584 * syscalls/sparc64-linux.xml: Regenerate.
3585
3586 2016-07-23 Andrew Pinski <apinski@cavium.com>
3587
3588 * nat/aarch64-linux-hw-point.c
3589 (aarch64_linux_get_debug_reg_capacity): Handle
3590 ARMv8.1 and ARMv8.2 debug versions.
3591 * nat/aarch64-linux-hw-point.h
3592 (AARCH64_DEBUG_ARCH_V8_1): New define.
3593 (AARCH64_DEBUG_ARCH_V8_2): New define.
3594
3595 2016-06-30 Руслан Ижбулатов <lrn1986@gmail.com>
3596
3597 PR gdb/14529
3598 * windows-nat.c (signal_event_command): New command 'signal-event'
3599 for W32 JIT debug support.
3600 * NEWS: Add an entry about the new 'signal-event' command.
3601
3602 2016-07-22 Tom Tromey <tom@tromey.com>
3603
3604 PR rust/20162:
3605 * dwarf2read.c (scan_partial_symbols) <DW_TAG_structure_type>:
3606 Call scan_partial_symbols for children when reading a Rust CU.
3607 (dwarf2_physname): Ignore invalid DW_AT_linkage_name generated by
3608 rustc.
3609 (process_structure_scope) <DW_TAG_subprogram>: Call
3610 read_func_scope for Rust.
3611
3612 2016-07-22 Yao Qi <yao.qi@linaro.org>
3613
3614 * ctf.c (ctf_traceframe_info): Call bt_ctf_get_uint64 rather than
3615 bt_ctf_get_int64.
3616
3617 2016-07-21 Tom Tromey <tom@tromey.com>
3618
3619 * rust-lang.c (rust_tuple_struct_type_p): Return false for empty
3620 structs.
3621 * rust-exp.y (struct_expr_list): Allow empty elements.
3622
3623 2016-07-21 Tom Tromey <tom@tromey.com>
3624
3625 * configure: Rebuild.
3626 * warning.m4 (AM_GDB_WARNINGS) <build_warnings>: Add
3627 -Wunused-but-set-parameter, -Wunused-but-set-variable.
3628
3629 2016-07-21 Pedro Alves <palves@redhat.com>
3630
3631 * go32-nat.c (go32_create_inferior): Add cast.
3632 * ser-go32.c (dos_noop): Delete.
3633 (dos_flush_output, dos_setparity, dos_drain_output): New
3634 functions.
3635 (dos_write): Add cast.
3636 (dos_ops): Use dos_flush_output, dos_setparity and
3637 dos_drain_output.
3638 * top.c (do_chdir_cleanup): Add cast.
3639
3640 2016-07-21 Pedro Alves <palves@redhat.com>
3641
3642 * windows-nat.c (handle_exception): Remove "th".
3643
3644 2016-07-21 Pedro Alves <palves@redhat.com>
3645
3646 * varobj.c (varobj_value_get_print_value): Move "gdbarch" to block
3647 scope that uses it.
3648
3649 2016-07-20 John Baldwin <jhb@FreeBSD.org>
3650
3651 * fbsd-nat.c (fbsd_enable_proc_events): Enable "PTRACE_VFORK"
3652 events.
3653 (fbsd_pending_vfork_done): Only define if "PTRACE_VFORK" is not
3654 defined.
3655 (fbsd_add_vfork_done): Likewise.
3656 (fbsd_is_vfork_done_pending): Likewise.
3657 (fbsd_next_vfork_done): Likewise.
3658 (fbsd_resume): Only ignore pending vfork done events if
3659 "PTRACE_VFORK" is not defined.
3660 (fbsd_wait): Only look for pending vfork done events if
3661 "PTRACE_VFORK" is not defined.
3662 [PTRACE_VFORK]: Handle "PL_FLAG_VFORKED" and "PL_FLAG_VFORK_DONE"
3663 events.
3664 (fbsd_follow_fork): Only fake a vfork done event if "PTRACE_VFORK"
3665 is not defined.
3666
3667 2016-07-20 John Baldwin <jhb@FreeBSD.org>
3668
3669 * fbsd-nat.c (fbsd_wait): Use "fbsd_enable_proc_events" on
3670 new child processes.
3671
3672 2016-07-20 John Baldwin <jhb@FreeBSD.org>
3673
3674 * fbsd-nat.c (fbsd_enable_lwp_events): Remove function.
3675 (fbsd_enable_proc_events): New function.
3676 (fbsd_enable_follow_fork): Remove function.
3677 (fbsd_post_startup_inferior): Use "fbsd_enable_proc_events".
3678 (fbsd_post_attach): Likewise.
3679
3680 2016-07-15 John Baldwin <jhb@FreeBSD.org>
3681
3682 * common/signals.c (gdb_signal_from_host): Handle SIGLIBRT.
3683 (do_gdb_signal_to_host): Likewise.
3684 * infrun.c (_initialize_infrun): Pass GDB_SIGNAL_LIBRT through to
3685 programs.
3686 * proc-events.c (signal_table): Add entry for SIGLIBRT.
3687
3688 2016-07-14 Tom Tromey <tom@tromey.com>
3689
3690 * python/py-breakpoint.c (gdbpy_breakpoint_deleted): Add missing
3691 newline.
3692
3693 2016-07-14 Tom Tromey <tom@tromey.com>
3694
3695 * mips-tdep.c (micromips_scan_prologue): Remove "frame_addr".
3696 (mips_o32_push_dummy_call): Remove "stack_used_p".
3697 * aarch64-tdep.c (aarch64_record_data_proc_imm): Remove
3698 "insn_bit28".
3699 * rust-lang.c (rust_print_type): Remove "len".
3700 * rust-exp.y (super_name): Remove "current_len".
3701 * python/py-framefilter.c (py_print_type): Remove "type".
3702 * mdebugread.c (parse_partial_symbols): Remove
3703 "past_first_source_file".
3704 <N_SO>: Remove "valu", "first_so_symnum", "prev_textlow_not_set".
3705 * m2-valprint.c (m2_print_unbounded_array): Remove
3706 "content_type".
3707 (m2_val_print): Remove "i".
3708 * linespec.c (unexpected_linespec_error): Remove "cleanup".
3709 * f-valprint.c (f_val_print): Remove "i".
3710 * elfread.c (elf_symtab_read): Remove "offset".
3711 * dwarf2-frame.c (dwarf2_fetch_cfa_info): Remove "addr_size".
3712 * jit.c (jit_dealloc_cache): Remove "i" and "frame_arch".
3713
3714 2016-07-14 Tom Tromey <tom@tromey.com>
3715
3716 * arch-utils.c (default_skip_permanent_breakpoint): Remove
3717 "bp_insn".
3718 * disasm.c (do_assembly_only): Remove "num_displayed".
3719 * dwarf2read.c (read_abbrev_offset): Remove "length".
3720 (dwarf_decode_macro_bytes) <DW_MACINFO_vendor_ext>: Remove
3721 "constant".
3722 * m32c-tdep.c (make_regs): Remove "r2hl", "r3hl", and "intbhl".
3723 * microblaze-tdep.c (microblaze_frame_cache): Remove "func".
3724 * tracefile.c (trace_save): Remove "status".
3725
3726 2016-07-14 Tom Tromey <tom@tromey.com>
3727
3728 * symfile.c (simple_overlay_update_1): Remove initialization
3729 of "size", and commented-out code.
3730 (simple_overlay_update): Likewise.
3731
3732 2016-07-14 Tom Tromey <tom@tromey.com>
3733
3734 * tui/tui-winsource.c (tui_show_source_line): Use getcurx.
3735 * tui/tui-io.c (tui_puts): Use getcurx.
3736 (tui_redisplay_readline): Likewise.
3737
3738 2016-07-14 Tom Tromey <tom@tromey.com>
3739
3740 * inflow.c (child_terminal_ours_1): Use ATTRIBUTE_UNUSED.
3741
3742 2016-07-14 Tom Tromey <tom@tromey.com>
3743
3744 * corefile.c (reopen_exec_file): Only examine st.st_mtime if stat
3745 succeeded.
3746
3747 2016-07-13 Tom Tromey <tom@tromey.com>
3748
3749 PR python/15620, PR python/18620:
3750 * python/py-evts.c (gdbpy_initialize_py_events): Call
3751 add_new_registry for new events.
3752 * python/py-events.h (events_object) <breakpoint_created,
3753 breakpoint_deleted, breakpoint_modified>: New fields.
3754 * python/py-breakpoint.c (gdbpy_breakpoint_created): Emit the
3755 breakpoint changed event.
3756 (gdbpy_breakpoint_deleted): Emit the breakpoint deleted event.
3757 (gdbpy_breakpoint_modified): New function.
3758 (gdbpy_initialize_breakpoints): Attach to the breakpoint modified
3759 observer.
3760
3761 2016-07-13 Tom Tromey <tom@tromey.com>
3762
3763 PR python/17698:
3764 * NEWS: Update.
3765 * python/py-breakpoint.c (bppy_get_pending): New function.
3766 (breakpoint_object_getset): Add entry for "pending".
3767 * breakpoint.h (pending_breakpoint_p): Declare.
3768 * breakpoint.c (pending_breakpoint_p): New function.
3769
3770 2016-07-13 Tom Tromey <tom@tromey.com>
3771
3772 * python/py-breakpoint.c (bppy_get_visibility)
3773 (gdbpy_breakpoint_created): Use user_breakpoint_p.
3774
3775 2016-07-13 Tom Tromey <tom@tromey.com>
3776
3777 PR cli/18053:
3778 * jit.c (jit_reader_load_command): Use tilde_expand.
3779 (_initialize_jit): Fix help for jit-reader-unload. Set completer
3780 for new commands.
3781
3782 2016-07-12 Tom Tromey <tom@tromey.com>
3783
3784 PR python/19293:
3785 * python/lib/gdb/command/unwinders.py (do_enable_unwinder): Call
3786 gdb.invalidate_cached_frames.
3787 * python/lib/gdb/unwinder.py (register_unwinder): Call
3788 gdb.invalidate_cached_frames.
3789 * python/python.c (gdbpy_invalidate_cached_frames): New function.
3790 (python_GdbMethods): Add entry for invalidate_cached_frames.
3791
3792 2016-07-07 Walfred Tedeschi <walfred.tedeschi@intel.com>
3793
3794 * cp-namespace.c (cp_lookup_bare_symbol): Initialize
3795 lang_this.symbol.
3796
3797 2016-07-07 Walfred Tedeschi <walfred.tedeschi@intel.com>
3798
3799 * cp-namespace.c (cp_lookup_bare_symbol): Use language passed as
3800 parameter to look for the symbol "this".
3801
3802
3803 2016-07-06 John Baldwin <jhb@FreeBSD.org>
3804
3805 * h8300-tdep.c (h8300_print_register): Remove extraneous parentheses.
3806
3807 2016-07-06 John Baldwin <jhb@FreeBSD.org>
3808
3809 * ada-lang.c (ada_unpack_from_contents): Use unsigned constants with
3810 left shifts.
3811
3812 2016-07-06 John Baldwin <jhb@FreeBSD.org>
3813
3814 * sh64-tdep.c (sh64_analyze_prologue): Set "uses_fp" when setting
3815 the MEDIA_FP_REGNUM register.
3816
3817 2016-07-06 John Baldwin <jhb@FreeBSD.org>
3818
3819 * score-tdep.c (score7_malloc_and_get_memblock): Remove check for
3820 negative size.
3821
3822 2016-07-06 John Baldwin <jhb@FreeBSD.org>
3823
3824 * fbsd-nat.c (fbsd_is_vfork_done_pending): Fix return type.
3825
3826 2016-07-06 Yao Qi <yao.qi@linaro.org>
3827
3828 * arm-tdep.c (arm_vfp_cprc_sub_candidate): Don't call
3829 arm_vfp_cprc_sub_candidate for static field.
3830
3831 2016-07-06 Manish Goregaokar <manish@mozilla.com>
3832
3833 * rust-lang.c (rust_subscript): Allow subscripting pointers.
3834
3835 2016-07-05 Jan Kratochvil <jan.kratochvil@redhat.com>
3836
3837 * configure: Regenerate.
3838 * configure.ac (HAVE_LIBBABELTRACE): Fix pos variable dereference.
3839
3840 2016-07-01 Don Breazeal <donb@codesourcery.com>
3841
3842 * remote.c (remote_get_memory_xfer_limit): New function.
3843 * target-delegates.c: Regenerate.
3844 * target.c (memory_xfer_partial): Call
3845 target_ops.to_get_memory_xfer_limit.
3846 * target.h (struct target_ops) <to_get_memory_xfer_limit>: New
3847 member.
3848
3849 2016-07-01 John Baldwin <jhb@FreeBSD.org>
3850
3851 * fbsd-nat.c (struct fbsd_fork_child_info): Rename to ...
3852 (struct fbsd_fork_info): ... this.
3853 (struct fbsd_fork_info) <child>: Rename to ...
3854 (struct fbsd_fork_info) <ptid>: ... this.
3855 (fbsd_pending_children): Update type.
3856 (fbsd_remember_child): Update type and field name.
3857 (fbsd_is_child_pending): Likewise.
3858 (fbsd_pending_vfork_done): New variable.
3859 (fbsd_is_vfork_done_pending): New function.
3860 (fbsd_next_vfork_done): New function.
3861 (fbsd_resume): Don't resume processes with a pending vfork done
3862 event.
3863 (fbsd_wait): Report pending vfork done events.
3864 (fbsd_follow_fork): Delay and record a pending vfork done event
3865 for a vfork parent when detaching the child.
3866
3867 2016-07-01 John Baldwin <jhb@FreeBSD.org>
3868
3869 * fbsd-nat.c (super_resume): Move earlier next to "super_wait".
3870 (resume_one_thread_cb): Move below fork following helper code.
3871 (resume_all_threads_cb): Likewise.
3872 (fbsd_resume): Likewise.
3873
3874 2016-07-01 John Baldwin <jhb@FreeBSD.org>
3875
3876 * fbsd-nat.c (fbsd_follow_fork): Only detach child if
3877 "detach_fork" is true.
3878
3879 2016-07-01 John Baldwin <jhb@FreeBSD.org>
3880
3881 * x86bsd-nat.c: Include 'gdbthread.h'.
3882 (x86bsd_dr_set): Set debug registers on all threads belonging to
3883 the current inferior.
3884
3885 2016-07-01 John Baldwin <jhb@FreeBSD.org>
3886
3887 * Makefile.in [HFILES_NO_SRCDIR]: Replace 'amd64bsd-nat.h' with
3888 'x86bsd-nat.h'.
3889 * amd64bsd-nat.c: Include 'x86bsd-nat.h' instead of
3890 'amd64bsd-nat.h'.
3891 (amd64bsd_xsave_len): Rename and move to x86bsd-nat.c.
3892 (amd64bsd_fetch_inferior_registers): Replace 'amd64bsd_xsave_len'
3893 with 'x86bsd_xsave_len'.
3894 (amd64bsd_store_inferior_registers): Likewise.
3895 (amd64bsd_target): Inherit from x86bsd_target.
3896 (amd64bsd_dr_get): Rename and move to x86bsd-nat.c.
3897 (amd64bsd_dr_set): Likewise.
3898 (amd64bsd_dr_set_control): Likewise.
3899 (amd64bsd_dr_set_addr): Likewise.
3900 (amd64bsd_dr_get_addr): Likewise.
3901 (amd64bsd_dr_get_status): Likewise.
3902 (amd64bsd_dr_get_control): Likewise.
3903 * amd64fbsd-nat.c: Include 'x86bsd-nat.h' instead of
3904 'amd64bsd-nat.h'.
3905 (super_mourn_inferior): Move to x86bsd-nat.c.
3906 (amd64fbsd_mourn_inferior): Rename and move to x86bsd-nat.c.
3907 (amd64fbsd_read_description): Replace 'amd64bsd_xsave_len' with
3908 'x86bsd_xsave_len'.
3909 (_initialize_amd64fbsd_nat): Remove x86 watchpoint setup and
3910 mourn_inferior' target op.
3911 * config/i386/fbsd.mh (NATDEPFILES): Add x86bsd-nat.o.
3912 * config/i386/fbsd64.mh: Likewise.
3913 * config/i386/nbsd64.mh: Likewise.
3914 * config/i386/nbsdelf.mh: Likewise.
3915 * config/i386/obsd.mh: Likewise.
3916 * config/i386/obsd64.mh: Likewise.
3917 * i386bsd-nat.c: Include 'x86bsd-nat.h'.
3918 (i386bsd_xsave_len): Rename and move to x86bsd-nat.c.
3919 (i386bsd_fetch_inferior_registers): Replace 'i386bsd_xsave_len'
3920 with 'x86bsd_xsave_len'.
3921 (i386bsd_store_inferior_registers): Likewise.
3922 (i386bsd_target): Inherit from x86bsd_target.
3923 (i386bsd_dr_get): Rename and move to x86bsd-nat.c.
3924 (i386bsd_dr_set): Likewise.
3925 (i386bsd_dr_set_control): Likewise.
3926 (i386bsd_dr_set_addr): Likewise.
3927 (i386bsd_dr_get_addr): Likewise.
3928 (i386bsd_dr_get_status): Likewise.
3929 (i386bsd_dr_get_control): Likewise.
3930 * i386bsd-nat.h (i386bsd_xsave_len): Remove.
3931 (i386bsd_dr_set_control): Remove.
3932 (i386bsd_dr_set_addr): Remove.
3933 (i386bsd_dr_get_addr): Remove.
3934 (i386bsd_dr_get_status): Remove.
3935 (i386bsd_dr_get_control): Remove.
3936 * i386fbsd-nat.c: Include 'x86bsd-nat.h'.
3937 (i386fbsd_read_description): Replace 'i386bsd_xsave_len' with
3938 'x86bsd_xsave_len'.
3939 (_initialize_i386fbsd_nat): Remove x86 watchpoint setup and
3940 mourn_inferior' target op.
3941 * x86bsd-nat.c: New file.
3942 * x86bsd-nat.h: New file.
3943
3944 2016-07-01 Pedro Alves <palves@redhat.com>
3945 Tom Tromey <tom@tromey.com>
3946
3947 * jit.c (jit_reader_load_command): Call reinit_frame_cache and
3948 jit_inferior_created_hook.
3949 (jit_reader_unload_command): Call reinit_frame_cache and
3950 jit_inferior_exit_hook.
3951 * jit.c (struct jit_unwind_private) <registers>: Delete field.
3952 <regcache>: New field.
3953 (jit_unwind_reg_set_impl): Set the register's value in the
3954 regcache. Free the passed-in gdb_reg_value.
3955 (jit_dealloc_cache): Adjust to free the regcache.
3956 (jit_frame_sniffer): Allocate a regcache instead of an array of
3957 gdb_reg_value pointers.
3958 (jit_frame_this_id): Adjust.
3959 (jit_frame_prev_register): Read raw registers off of the regcache
3960 instead of from the gdb_reg_value pointer array. Use
3961 gdbarch_pseudo_register_read_value to read pseudo registers.
3962 * regcache.c (regcache_raw_set_cached_value): New function,
3963 factored out from ...
3964 (regcache_raw_write): ... here.
3965 * regcache.h (regcache_raw_set_cached_value): Declare.
3966
3967 2016-07-01 Pedro Alves <palves@redhat.com>
3968 Antoine Tremblay <antoine.tremblay@ericsson.com>
3969
3970 * inf-ptrace.c (inf_ptrace_detach_success): New function, factored
3971 out from ...
3972 (inf_ptrace_detach): ... here.
3973 * inf-ptrace.h (inf_ptrace_detach_success): New declaration.
3974 * linux-nat.c (get_pending_status): Rename to ...
3975 (get_detach_signal): ... this, and return a host signal instead of
3976 filling in a wait status.
3977 (detach_one_lwp): New function, factored out from detach_callback
3978 and adjusted to handle detaching from a zombie thread.
3979 (detach_callback): Skip the leader thread.
3980 (linux_nat_detach): No longer defer to inf_ptrace_detach to detach
3981 the leader thread, nor build a signal string to pass down.
3982 Instead, use target_announce_detach, detach_one_lwp and
3983 inf_ptrace_detach_success.
3984
3985 2016-07-01 Pedro Alves <palves@redhat.com>
3986
3987 * breakpoint.c (breakpoint_init_inferior): Discard watchpoint
3988 locations.
3989 * infcmd.c (detach_command): Call breakpoint_init_inferior.
3990
3991 2016-07-01 Pedro Alves <palves@redhat.com>
3992
3993 * darwin-nat.c (darwin_detach): Use target_announce_detach.
3994 * inf-ptrace.c (inf_ptrace_detach): Likewise.
3995 * nto-procfs.c (procfs_detach): Likewise.
3996 * remote.c (remote_detach_1): Likewise.
3997 * target.c (target_announce_detach): New function.
3998 * target.h (target_announce_detach): New declaration.
3999
4000 2016-06-29 Tom Tromey <tom@tromey.com>
4001
4002 PR python/20129:
4003 * python/lib/gdb/command/frame_filters.py (_do_enable_frame_filter)
4004 (SetFrameFilterPriority._set_filter_priority): Use "frame_filter",
4005 not "name".
4006
4007 2016-06-29 Tom Tromey <tom@tromey.com>
4008
4009 PR gdb/17210:
4010 * target.c (free_memory_read_result_vector): Take a pointer to the
4011 VEC as an argument.
4012 (read_memory_robust): Install a cleanup for "result".
4013 * mi/mi-main.c (mi_cmd_data_read_memory_bytes): Update.
4014
4015 2016-06-29 Manish Goregaokar <manish@mozilla.com>
4016
4017 * rust-lang.c (rust_get_disr_info): Initialize saveptr to NULL.
4018
4019 2016-06-29 Manish Goregaokar <manish@mozilla.com>
4020
4021 * rust-lang.c (rust_get_disr_info): Use strtok_r instead of strsep.
4022
4023 2016-06-28 Yao Qi <yao.qi@linaro.org>
4024
4025 * aarch64-tdep.c (aarch64_displaced_step_b): Use int64_t for
4026 variable new_offset.
4027
4028 2016-06-27 Manish Goregaokar <manish@mozilla.com>
4029
4030 * rust-lang.c (rust_print_type, rust_decorations): Print unit
4031 types as "()".
4032 (rust_print_type): Omit return type for functions returning unit.
4033
4034 2016-06-25 Pierre-Marie de Rodat <derodat@adacore.com>
4035
4036 * python/py-breakpoint.c (bppy_init): Clear bppy_pending_object
4037 when there is an error during the breakpoint creation.
4038
4039 2016-06-25 Tom Tromey <tom@tromey.com>
4040
4041 * rust-lang.c (rust_get_disr_info, rust_print_type): Fix
4042 formatting.
4043
4044 2016-06-25 Manish Goregaokar <manish@mozilla.com>
4045
4046 PR gdb/20239
4047 * rust-lang.c (rust_get_disr_info): Correctly interpret
4048 NonZero-optimized enums of arbitrary depth.
4049 (rust_print_type): Correctly print NonZero-optimized
4050 enums.
4051
4052 2016-06-24 David Taylor <dtaylor@emc.com>
4053
4054 PR gdb/17520 Structure offset wrong when 1/4 GB or greater.
4055 * c-lang.h: Change all parameters, variables, and struct or union
4056 members used as struct or union fie3ld offsets from int to
4057 LONGEST.
4058 * c-valprint.c: Likewise.
4059 * cp-abi.c: Likewise.
4060 * cp-abi.h: Likewise.
4061 * cp-valprint.c: Likewise.
4062 * d-valprint.c: Likewise.
4063 * dwarf2loc.c: Likewise.
4064 * eval.c: Likewise.
4065 * extension-priv.h: Likewise.
4066 * extension.c: Likewise.
4067 * extension.h: Likewise.
4068 * findvar.c: Likewise.
4069 * gdbtypes.h: Likewise.
4070 * gnu-v2-abi.c: Likewise.
4071 * gnu-v3-abi.c: Likewise.
4072 * go-valprint.c: Likewise.
4073 * guile/guile-internal.h: Likewise.
4074 * guile/scm-pretty-print.c: Likewise.
4075 * jv-valprint.c Likewise.
4076 * opencl-lang.c: Likewise.
4077 * p-lang.h: Likewise.
4078 * python/py-prettyprint.c: Likewise.
4079 * python/python-internal.h: Likewise.
4080 * spu-tdep.c: Likewise.
4081 * typeprint.c: Likewise.
4082 * valarith.c: Likewise.
4083 * valops.c: Likewise.
4084 * valprint.c: Likewise.
4085 * valprint.h: Likewise.
4086 * value.c: Likewise.
4087 * value.h: Likewise.
4088 * p-valprint.c: Likewise.
4089 * c-typeprint.c (c_type_print_base): When printing offset, use
4090 plongest, not %d.
4091 * gdbtypes.c (recursive_dump_type): Ditto.
4092
4093 2016-06-24 David Taylor <david.taylor@emc.com>
4094
4095 * MAINTAINERS (Write After Approval): Add David Taylor.
4096
4097 2016-06-24 John Baldwin <jhb@FreeBSD.org>
4098
4099 * configure.ac: Check for support for system call LWP fields on
4100 FreeBSD.
4101 * config.in, configure: Rebuild.
4102 * data-directory/Makefile.in (SYSCALLS_FILES): Add freebsd.xml.
4103 * fbsd-nat.c (fbsd_wait) [HAVE_STRUCT_PTRACE_LWPINFO_PL_SYSCALL_CODE]:
4104 Report system call events.
4105 [HAVE_STRUCT_PTRACE_LWPINFO_PL_SYSCALL_CODE]
4106 (fbsd_set_syscall_catchpoint): New function.
4107 (fbsd_nat_add_target) [HAVE_STRUCT_PTRACE_LWPINFO_PL_SYSCALL_CODE]:
4108 Set "to_set_syscall_catchpoint" to "fbsd_set_syscall_catchpoint".
4109 * fbsd-tdep.c: Include xml-syscall.h
4110 (fbsd_get_syscall_number): New function.
4111 (fbsd_init_abi): Set XML system call file name.
4112 Add "get_syscall_number" gdbarch method.
4113 * syscalls/freebsd.xml: New file.
4114
4115 2016-06-24 John Baldwin <jhb@FreeBSD.org>
4116
4117 * fbsd-tdep.c: Include "auxv.h".
4118 (fbsd_print_auxv_entry): New function.
4119 (fbsd_init_abi): Install gdbarch "print_auxv_entry" method.
4120
4121 2016-06-24 John Baldwin <jhb@FreeBSD.org>
4122
4123 * auxv.c (fprint_auxv_entry): New function.
4124 (default_print_auxv_entry): New function.
4125 (fprint_target_auxv): Use gdbarch_print_auxv_entry.
4126 * auxv.h (enum auxv_format): New enum.
4127 (fprint_auxv_entry): Declare.
4128 (default_print_auxv_entry): Declare.
4129 * gdbarch.sh (print_auxv_entry): New.
4130 * gdbarch.c, gdbarch.h: Re-generated.
4131
4132 2016-06-24 John Baldwin <jhb@FreeBSD.org>
4133
4134 * fbsd-nat.c [KERN_PROC_AUXV] New variable super_xfer_partial.
4135 (fbsd_xfer_partial): New function.
4136 (fbsd_nat_add_target) [KERN_PROC_AUXV] Set "to_xfer_partial" to
4137 "fbsd_xfer_partial".
4138
4139 2016-06-23 Tom Tromey <tom@tromey.com>
4140
4141 * symtab.c (symbol_find_demangled_name): Loop over languages and
4142 use language_sniff_from_mangled_name.
4143 * rust-lang.c (rust_sniff_from_mangled_name): New function.
4144 (rust_language_defn): Update.
4145 * p-lang.c (pascal_language_defn): Update.
4146 * opencl-lang.c (opencl_language_defn): Update.
4147 * objc-lang.c (objc_sniff_from_mangled_name): New function.
4148 (objc_language_defn): Update.
4149 * m2-lang.c (m2_language_defn): Update.
4150 * language.h (struct language_defn) <la_sniff_from_mangled_name>: New
4151 field.
4152 (language_sniff_from_mangled_name): Declare.
4153 * language.c (language_sniff_from_mangled_name): New function.
4154 (unknown_language_defn, auto_language_defn, local_language_defn):
4155 Update.
4156 * jv-lang.c (java_sniff_from_mangled_name): New function.
4157 (java_language_defn): Use it.
4158 * go-lang.c (go_sniff_from_mangled_name): New function.
4159 (go_language_defn): Use it.
4160 * f-lang.c (f_language_defn): Update.
4161 * defs.h (enum language): Reorder.
4162 * d-lang.c (d_sniff_from_mangled_name): New function.
4163 (d_language_defn): Use it.
4164 * cp-support.h (gdb_sniff_from_mangled_name): Declare.
4165 * cp-support.c (gdb_sniff_from_mangled_name): New function.
4166 * c-lang.c (c_language_defn, cplus_language_defn)
4167 (asm_language_defn, minimal_language_defn): Update.
4168 * ada-lang.c (ada_sniff_from_mangled_name): New function.
4169 (ada_language_defn): Use it.
4170
4171 2016-06-23 Tom Tromey <tom@tromey.com>
4172
4173 * ada-lang.c (ada_extensions): New array.
4174 (ada_language_defn): Use it.
4175 * c-lang.c (c_extensions): New array.
4176 (c_language_defn): Use it.
4177 (cplus_extensions): New array.
4178 (cplus_language_defn): Use it.
4179 (asm_extensions): New array.
4180 (asm_language_defn): Use it.
4181 (minimal_language_defn): Update.
4182 * d-lang.c (d_extensions): New array.
4183 (d_language_defn): Use it.
4184 * f-lang.c (f_extensions): New array.
4185 (f_language_defn): Use it.
4186 * go-lang.c (go_language_defn): Update.
4187 * jv-lang.c (java_extensions): New array.
4188 (java_language_defn): Use it.
4189 * language.c (add_language): Call add_filename_language.
4190 (unknown_language_defn, auto_language_defn, local_language_defn):
4191 Update.
4192 * language.h (struct language_defn) <la_filename_extensions>: New
4193 field.
4194 * m2-lang.c (m2_language_defn): Update.
4195 * objc-lang.c (objc_extensions): New array.
4196 (objc_language_defn): Use it.
4197 * opencl-lang.c (opencl_language_defn): Update.
4198 * p-lang.c (p_extensions): New array.
4199 (pascal_language_defn): Use it.
4200 * rust-lang.c (rust_extensions): New array.
4201 (rust_language_defn): Use it.
4202 * symfile.c (add_filename_language): No longer static. Make "ext"
4203 const.
4204 (init_filename_language_table): Remove.
4205 (_initialize_symfile): Update.
4206 * symfile.h (add_filename_language): Declare.
4207
4208 2016-06-23 Tom Tromey <tom@tromey.com>
4209
4210 * symfile.c (filename_language_table): Now a VEC.
4211 (fl_table_size, fl_table_next): Remove.
4212 (add_filename_language): Use VEC_safe_push.
4213 (set_ext_lang_command, info_ext_lang_command)
4214 (deduce_language_from_filename): Use VEC_iterate.
4215 (init_filename_language_table): Use VEC_empty.
4216
4217 2016-06-23 Tom Tromey <tom@tromey.com>
4218
4219 * python/python.c (gdbpy_parameter): Now static.
4220 * python/python-internal.h (gdbpy_parameter): Don't declare.
4221
4222 2016-06-23 Tom Tromey <tom@tromey.com>
4223
4224 PR gdb/16483:
4225 * python/lib/gdb/command/frame_filters.py
4226 (InfoFrameFilter.list_frame_filters): Rename to print_list. Print
4227 nothing if no filters found. Return value indicating whether
4228 filters were printed.
4229 (InfoFrameFilter.print_list): Remove.
4230 (InfoFrameFilter.invoke): Print message if no frame filters
4231 found.
4232
4233 2016-06-21 Walfred Tedeschi <walfred.tedeschi@intel.com>
4234
4235 * f-valprint.c (f_val_print): Add field names for printing
4236 derived types fields.
4237
4238 2016-06-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
4239
4240 * s390-linux-tdep.c (s390_iterate_over_regset_sections): Fix typo
4241 in name of last-break regset.
4242
4243 2016-06-21 Pedro Alves <palves@redhat.com>
4244
4245 * fork-child.c (fork_inferior): Switch the child to the main UI
4246 right after vfork. Save/restore the current UI in the parent.
4247 Flush outputs of the main UI instead of the current UI.
4248
4249 2016-06-21 Pedro Alves <palves@redhat.com>
4250
4251 * breakpoint.c (watchpoint_check): Send watchpoint-deleted output
4252 to all UIs.
4253
4254 2016-06-21 Pedro Alves <palves@redhat.com>
4255
4256 * NEWS: Mention support for running interpreters on separate
4257 UIs and the new new-ui command.
4258
4259 2016-06-21 Pedro Alves <palves@redhat.com>
4260
4261 * interps.c (set_top_level_interpreter): New function, factored
4262 out from captured_main.
4263 (interpreter_completer): Make extern.
4264 * interps.h (set_top_level_interpreter, interpreter_completer):
4265 New declarations.
4266 (captured_main): Use set_top_level_interpreter.
4267 * top.c [!O_NOCTTY] (O_NOCTTY): Define as 0.
4268 (open_terminal_stream, new_ui_command): New functions.
4269 (init_main): Install the "new-ui" command.
4270
4271 2016-06-21 Pedro Alves <palves@redhat.com>
4272
4273 * cli/cli-script.c (read_next_line): Adjust to per-UI stdin.
4274 (read_command_lines): Use input_interactive_p instead of
4275 input_from_terminal_p.
4276 * defs.h (struct ui): Forward declare.
4277 (input_from_terminal_p): Rename to ...
4278 (input_interactive_p): ... this.
4279 * event-top.c (stdin_event_handler): Pass 0 as from_tty argument
4280 to quit_command.
4281 (command_handler): Adjust to per-UI stdin.
4282 (handle_line_of_input): Adjust to per-UI stdin and use
4283 input_interactive_p instead of ISATTY and input_from_terminal_p.
4284 (gdb_readline_no_editing_callback): Adjust to per-UI stdin.
4285 (command_line_handler): Always pass true as "from_tty" parameter
4286 of handle_line_of_input and execute_command.
4287 (async_sigterm_handler): Pass 0 as from_tty argument to
4288 quit_command.
4289 * inflow.c (interactive_mode, show_interactive_mode): Moved to ...
4290 (gdb_has_a_terminal): Don't check interactive_mode here.
4291 (_initialize_inflow): Don't install "set interactive-mode" here.
4292 * main.c (captured_command_loop): Adjust to per-UI stdin.
4293 * mi/mi-interp.c (mi_execute_command_wrapper): Adjust to per-UI
4294 stdin.
4295 * top.c (new_ui): Save the stdin stream and whether it's a tty.
4296 (dont_repeat): Adjust to per-UI stdin.
4297 (command_line_input): Adjust to per-UI stdin and to use
4298 input_interactive_p.
4299 (quit_force): Write history if any UI supports interactive input.
4300 (interactive_mode, show_interactive_mode): Move here, from
4301 inflow.c.
4302 (input_from_terminal_p): Rename to ...
4303 (input_interactive_p): ... this, and check the "interactive_mode"
4304 global instead of calling gdb_has_a_terminal.
4305 (_initialize_top): Install "set interactive-mode" here.
4306 * top.h (struct ui) <stdin_stream, input_interactive_p>: New
4307 fields.
4308 * utils.c (quit): Pass 0 as from_tty argument to quit_force.
4309 (defaulted_query): Adjust to per-UI stdin and to use
4310 input_interactive_p.
4311
4312 2016-06-21 Pedro Alves <palves@redhat.com>
4313
4314 * event-top.c (stdin_event_handler): Don't quit gdb if it was a
4315 secondary UI's input stream that closed. Instead, just delete the
4316 UI.
4317
4318 2016-06-21 Pedro Alves <palves@redhat.com>
4319
4320 * event-top.c (main_ui_): Delete.
4321 (main_ui, current_ui, ui_list): No longer initialize here.
4322 * main.c (captured_main): UI initialization code factored out to
4323 new new_ui function.
4324 (gdb_main): Wrap captured_main with TRY/CATCH instead of
4325 catch_errors.
4326 * top.c (highest_ui_num): New global.
4327 (new_ui): New function.
4328 * top.h (struct ui) <num>: New field.
4329 (new_ui): New declaration.
4330
4331 2016-06-21 Pedro Alves <palves@redhat.com>
4332
4333 * cli/cli-interp.c (cli_on_normal_stop): Bail out early if there's
4334 nothing to print. Use should_print_stop_to_console.
4335 * tui/tui-interp.c (tui_on_normal_stop): Likewise.
4336
4337 2016-06-21 Pedro Alves <palves@redhat.com>
4338
4339 * breakpoint.c (new_until_break_fsm): Add 'cmd_interp' parameter.
4340 (until_break_fsm_should_stop, until_break_fsm_clean_up): Add
4341 thread parameter.
4342 (until_break_command): Pass command interpreter to thread fsm
4343 ctor.
4344 * cli/cli-interp.c (should_print_stop_to_console): Adjust.
4345 * gdbthread.h (struct thread_control_state) <command_interp>:
4346 Delete field.
4347 * infcall.c (new_call_thread_fsm): Add 'cmd_interp' parameter.
4348 Pass it down.
4349 (call_thread_fsm_should_stop): Add thread parameter.
4350 (call_function_by_hand_dummy): Pass command interpreter to thread
4351 fsm ctor. Pass thread pointer to fsm clean up method.
4352 * infcmd.c: Include interps.h.
4353 (struct step_command_fsm) <thread>: Delete field.
4354 (new_step_command_fsm): Add 'cmd_interp' parameter. Pass it down.
4355 (step_command_fsm_prepare): Remove references to fsm's thread
4356 field.
4357 (step_1): Pass command interpreter to thread
4358 fsm ctor. Pass thread pointer to fsm clean up method.
4359 (step_command_fsm_should_stop, step_command_fsm_clean_up): Add
4360 thread parameter and use it.
4361 (new_until_next_fsm): Add 'cmd_interp' parameter. Pass it down.
4362 (until_next_fsm_should_stop, until_next_fsm_clean_up): Add thread
4363 parameter and use it.
4364 (until_next_command): Pass command interpreter to thread fsm ctor.
4365 (struct finish_command_fsm) <thread>: Delete field.
4366 (finish_command_fsm_ops): Add NULL slot for should_notify_stop.
4367 (new_finish_command_fsm): Add 'cmd_interp' parameter and pass it
4368 down. Remove thread parameter and adjust.
4369 (finish_command_fsm_should_stop, finish_command_fsm_clean_up): Add
4370 thread parameter and use it.
4371 (finish_command): Pass command interpreter to thread fsm ctor.
4372 Don't pass thread.
4373 * infrun.c (follow_fork): Move thread fsm to child fork instead of
4374 command interpreter, only.
4375 (clear_proceed_status_thread): Remove reference to command_interp.
4376 (proceed): Don't record the thread's command interpreter.
4377 (clean_up_just_stopped_threads_fsms): Pass thread to fsm clean_up
4378 method.
4379 (fetch_inferior_event): Pass thread to fsm should_stop method.
4380 * thread-fsm.c (thread_fsm_ctor): Add 'cmd_interp' parameter.
4381 Store it.
4382 (thread_fsm_clean_up, thread_fsm_should_stop): Add thread
4383 parameter and pass it down.
4384 * thread-fsm.h (struct thread_fsm) <command_interp>: New field.
4385 (struct thread_fsm_ops) <clean_up, should_stop>: Add thread
4386 parameter.
4387 (thread_fsm_ctor): Add 'cmd_interp' parameter.
4388 (thread_fsm_clean_up, thread_fsm_should_stop): Add thread
4389 parameter.
4390 * thread.c (thread_cancel_execution_command): Pass thread to
4391 thread fsm clean_up method.
4392
4393 2016-06-21 Pedro Alves <palves@redhat.com>
4394
4395 * cli/cli-interp.c: Include gdbthread.h and thread-fsm.h.
4396 (should_print_stop_to_console): New function, factored out from
4397 mi_on_normal_stop_1.
4398 * cli/cli-interp.h (should_print_stop_to_console): Declare.
4399 * mi/mi-interp.c (mi_on_normal_stop_1): Use
4400 should_print_stop_to_console. Pass it the current UI's console
4401 interpreter.
4402 * mi/mi-main.c (captured_mi_execute_command): Use the
4403 INTERP_CONSOLE symbol rather than explicit "console".
4404
4405 2016-06-21 Pedro Alves <palves@redhat.com>
4406
4407 * infcmd.c (prepare_execution_command): Use
4408 all_uis_on_sync_execution_starting.
4409 * infrun.c (all_uis_on_sync_execution_starting): New function.
4410 * infrun.h (all_uis_on_sync_execution_starting): Declare.
4411
4412 2016-06-21 Pedro Alves <palves@redhat.com>
4413
4414 * annotate.c: Include top.h.
4415 (async_background_execution_p): Delete.
4416 (print_value_flags): Check the UI's prompt state rather then
4417 async_background_execution_p.
4418 * event-loop.c (start_event_loop): Set the prompt state to
4419 PROMPT_NEEDED.
4420 * event-top.c (display_gdb_prompt, async_enable_stdin)
4421 (async_disable_stdin): Check the current UI's prompt state instead
4422 of the sync_execution global.
4423 (command_line_handler): Set the prompt state to PROMPT_NEEDED
4424 before running a command, and display the prompt if still needed
4425 afterwards.
4426 * infcall.c (struct call_thread_fsm) <waiting_ui>: New field.
4427 (new_call_thread_fsm): New parameter 'waiting_ui'. Store it.
4428 (call_thread_fsm_should_stop): Set the prompt state to
4429 PROMPT_NEEDED.
4430 (run_inferior_call): Adjust to temporarily set the prompt state to
4431 PROMPT_BLOCKED instead of using the sync_execution global.
4432 (call_function_by_hand_dummy): Pass the current UI to
4433 new_call_thread_fsm.
4434 * infcmd.c: Include top.h.
4435 (continue_1): Check the current UI's prompt state instead of the
4436 sync_execution global.
4437 (continue_command): Validate global execution state before calling
4438 prepare_execution_command.
4439 (step_1): Call all_uis_check_sync_execution_done.
4440 (attach_post_wait): Don't call async_enable_stdin here. Remove
4441 reference to sync_execution.
4442 * infrun.c (sync_execution): Delete global.
4443 (follow_fork_inferior)
4444 (reinstall_readline_callback_handler_cleanup): Check the current
4445 UI's prompt state instead of the sync_execution global.
4446 (check_curr_ui_sync_execution_done)
4447 (all_uis_check_sync_execution_done): New functions.
4448 (fetch_inferior_event): Call all_uis_check_sync_execution_done
4449 instead of trying to determine whether the global sync execution
4450 changed.
4451 (handle_no_resumed): Check the prompt state of all UIs.
4452 (normal_stop): Emit the no unwait-for even to all PROMPT_BLOCKED
4453 UIs. Emit the "Switching to" notification to all UIs. Enable
4454 stdin in all UIs.
4455 * infrun.h (sync_execution): Delete.
4456 (all_uis_check_sync_execution_done): Declare.
4457 * main.c (captured_command_loop): Don't call
4458 interp_pre_command_loop if the prompt is blocked.
4459 (catch_command_errors, catch_command_errors_const): Adjust.
4460 (captured_main): Set the initial prompt state to PROMPT_NEEDED.
4461 * mi/mi-interp.c (display_mi_prompt): Set the prompt state to
4462 PROMPTED.
4463 (mi_interpreter_resume): Don't clear sync_execution. Remove hack
4464 comment.
4465 (mi_execute_command_input_handler): Set the prompt state to
4466 PROMPT_NEEDED before executing the command, and only display the
4467 prompt if the prompt state is PROMPT_NEEDED afterwards.
4468 (mi_on_resume_1): Adjust to check the prompt state.
4469 * target.c (target_terminal_inferior): Adjust to check the prompt
4470 state.
4471 * top.c (wait_sync_command_done, maybe_wait_sync_command_done)
4472 (execute_command): Check the current UI's prompt state instead of
4473 sync_execution.
4474 * top.h (enum prompt_state): New.
4475 (struct ui) <prompt_state>: New field.
4476 (ALL_UIS): New macro.
4477
4478 2016-06-21 Pedro Alves <palves@redhat.com>
4479
4480 * top.c (gdb_secondary_prompt_depth): Delete.
4481 (gdb_in_secondary_prompt_p): Add ui parameter. Use it.
4482 (gdb_readline_wrapper_cleanup, gdb_readline_wrapper): Adjust to
4483 per-UI gdb_secondary_prompt_depth.
4484 * top.h (struct ui) <secondary_prompt_depth>: New field.
4485
4486 2016-06-21 Pedro Alves <palves@redhat.com>
4487
4488 * cli/cli-interp.c (cli_interpreter_pre_command_loop): New
4489 function.
4490 (cli_interp_procs): Install it instead of cli_command_loop.
4491 * cli/cli-interp.h (cli_interpreter_pre_command_loop): Declare.
4492 * event-top.c (cli_command_loop): Delete.
4493 * interps.c (interp_new): Remove reference to command_loop_proc.
4494 (current_interp_command_loop): Delete.
4495 (interp_pre_command_loop): New function.
4496 (interp_command_loop_ftype): Delete.
4497 * interps.h (interp_pre_command_loop_ftype): New typedef.
4498 (struct interp_procs) <command_loop_proc>: Delele field.
4499 <pre_command_loop_proc>: New field.
4500 (current_interp_command_loop): Delete declaration.
4501 (interp_pre_command_loop): New declaration.
4502 * main.c (captured_command_loop): Call interp_pre_command_loop
4503 instead of current_interp_command_loop and start an event loop.
4504 * mi/mi-interp.c (mi_command_loop): Delete.
4505 (mi_interpreter_pre_command_loop): New.
4506 (mi_interp_procs): Update.
4507 * tui/tui-interp.c (tui_interp_procs): Install
4508 cli_interpreter_pre_command_loop instead of cli_command_loop.
4509
4510 2016-06-21 Pedro Alves <palves@redhat.com>
4511
4512 * interps.c (current_interpreter): New function.
4513 * interps.h (current_interpreter): New declaration.
4514 * mi/mi-cmds.h (raw_stdout): Delete declaration.
4515 * mi/mi-common.h (struct mi_interp) <raw_stdout,
4516 saved_raw_stdout>: New field.
4517 * mi/mi-interp.c (display_mi_prompt): New parameter 'mi'. Adjust
4518 to per-UI raw_stdout.
4519 (mi_interpreter_init): Adjust to per-UI raw_stdout.
4520 (mi_on_sync_execution_done, mi_execute_command_input_handler)
4521 (mi_command_loop): Pass MI instance to display_mi_prompt.
4522 (mi_on_normal_stop_1, mi_output_running_pid, mi_on_resume_1)
4523 (mi_on_resume): Adjust to per-UI raw_stdout.
4524 (saved_raw_stdout): Delete.
4525 (mi_set_logging): Adjust to per-UI raw_stdout and
4526 saved_raw_stdout.
4527 * mi/mi-main.c (raw_stdout): Delete.
4528 (mi_cmd_gdb_exit, captured_mi_execute_command)
4529 (mi_print_exception, mi_load_progress): Adjust to per-UI
4530 raw_stdout.
4531 (print_diff_now, mi_print_timing_maybe): New ui_file parameter.
4532 Pass it along.
4533 (print_diff): New ui_file parameter. Send output there instead of
4534 raw_stdout.
4535 * mi/mi-main.h (struct ui_file): Forward declare.
4536 (mi_print_timing_maybe): Add ui_file parameter.
4537
4538 2016-06-21 Pedro Alves <palves@redhat.com>
4539
4540 * mi/mi-interp.c (display_mi_prompt): New function.
4541
4542 2016-06-21 Pedro Alves <palves@redhat.com>
4543
4544 * target.c (target_terminal_inferior): Bail out after
4545 unregistering input_fd if not on the main UI.
4546 (target_terminal_ours): Bail out after registering input_fd if not
4547 on the main UI.
4548 (target_terminal_ours_for_output): Bail out if not on the main UI.
4549
4550 2016-06-21 Pedro Alves <palves@redhat.com>
4551
4552 * event-top.c (restore_ui_cleanup): Make extern.
4553 * infrun.c (fetch_inferior_event): Always switch to the main UI.
4554 * top.h (restore_ui_cleanup): Declare.
4555
4556 2016-06-21 Pedro Alves <palves@redhat.com>
4557
4558 PR mi/20034
4559 * cli/cli-interp.c: Include cli-interp.h and event-top.h.
4560 (cli_interpreter_resume): Pass 1 to gdb_setup_readline. Set the
4561 UI's input_handler here.
4562 (cli_interpreter_supports_command_editing): New function.
4563 (cli_interp_procs): Install it.
4564 * cli/cli-interp.h: New file.
4565 * event-top.c (async_command_editing_p): Rename to ...
4566 (set_editing_cmd_var): ... this.
4567 (change_line_handler): Add parameter 'editing', and use it. Bail
4568 early if the interpreter doesn't support editing. Don't touch
4569 readline state if editing is off.
4570 (gdb_rl_callback_handler_remove, gdb_rl_callback_handler_install)
4571 (gdb_rl_callback_handler_reinstall): Assert the current UI is the
4572 main UI.
4573 (display_gdb_prompt): Don't call gdb_rl_callback_handler_remove if
4574 not using readline. Check whether the current UI is using command
4575 editing instead of checking the async_command_editing_p global.
4576 (set_async_editing_command): Delete.
4577 (gdb_setup_readline): Add 'editing' parameter. Only allow editing
4578 on the main UI. Don't touch readline state if editing is off.
4579 (gdb_disable_readline): Don't touch readline state if editing is
4580 off.
4581 * event-top.h (gdb_setup_readline): Add 'int' parameter.
4582 (set_async_editing_command): Delete declaration.
4583 (change_line_handler, command_line_handler): Declare.
4584 (async_command_editing_p): Rename to ...
4585 (set_editing_cmd_var): ... this.
4586 * infrun.c (reinstall_readline_callback_handler_cleanup): Check
4587 whether the current UI has editing enabled rather than checking
4588 the async_command_editing_p global.
4589 * interps.c (interp_supports_command_editing): New function.
4590 * interps.h (interp_supports_command_editing_ftype): New typedef.
4591 (struct interp_procs) <supports_command_editing_proc>: New field.
4592 (interp_supports_command_editing): Declare.
4593 * mi/mi-interp.c (mi_interpreter_resume): Pass 0 to
4594 gdb_setup_readline. Don't clear the async_command_editing_p
4595 global. Update comments.
4596 * top.c (gdb_readline_wrapper_line, gdb_readline_wrapper): Check
4597 whether the current UI has editing enabled rather than checking
4598 the async_command_editing_p global. Don't touch readline state if
4599 editing is off.
4600 (undo_terminal_modifications_before_exit): Switch to the main UI.
4601 Unconditionally call gdb_disable_readline.
4602 (set_editing): New function.
4603 (show_async_command_editing_p): Rename to ...
4604 (show_editing): ... this. Show the state of the current UI.
4605 (_initialize_top): Adjust.
4606 * top.h (struct ui) <command_editing>: New field.
4607 * tui/tui-interp.c: Include cli/cli-interp.h.
4608 (tui_resume): Pass 1 to gdb_setup_readline. Set the UI's
4609 input_handler.
4610 (tui_interp_procs): Install
4611 cli_interpreter_supports_command_editing.
4612 * tui/tui-io.c (tui_getc): Check whether the current UI has
4613 editing enabled rather than checking the async_command_editing_p
4614 global.
4615
4616 2016-06-21 Pedro Alves <palves@redhat.com>
4617
4618 * top.c: Call gen_ret_current_ui_field_ptr for current_uiout.
4619 * top.h (struct ui) <m_current_uiout>: New field.
4620 * ui-out.c (current_uiout): Delete.
4621 * ui-out.h (current_uiout): Delete.
4622 (current_ui_current_uiout_ptr): New declaration.
4623 (current_uiout): Reimplement as wrapper around
4624 current_ui_current_uiout_ptr.
4625
4626 2016-06-21 Pedro Alves <palves@redhat.com>
4627
4628 * ui-out.c (default_ui_out_impl): Delete.
4629 (def_uiout): Delete.
4630 (current_uiout): Set to NULL.
4631 (default_table_begin, default_table_body, default_table_end)
4632 (default_table_header, default_begin, default_end)
4633 (default_field_int, default_field_skip, default_field_string)
4634 (default_field_fmt, default_spaces, default_text, default_message)
4635 (default_wrap_hint, default_flush, default_data_destroy): Delete.
4636
4637 2016-06-21 Pedro Alves <palves@redhat.com>
4638
4639 * event-top.c (gdb_setup_readline): Pass the UI's outstream and
4640 errstream to stdout_fileopen and stderr_fileopen.
4641 * exceptions.c: Include top.h.
4642 (print_flush): Open the current UI's outstream file descriptor,
4643 instead of hardcoding file descriptor 1.
4644 * main.c (captured_main): Save the main UI's out and error
4645 streams. Adjust stderr_fileopen call.
4646 * top.h (struct ui) <outstream, errstream>: New fields.
4647 * ui-file.c (stderr_fileopen): Add stream parameter. Use it
4648 instead of stderr.
4649 * ui-file.h (stderr_fileopen): Add stream parameter and update
4650 comment.
4651
4652 2016-06-21 Pedro Alves <palves@redhat.com>
4653
4654 * event-top.c (input_fd): Delete.
4655 (stdin_event_handler): Switch to the UI whose input descriptor got
4656 the event. Adjust to per-UI input_fd.
4657 (gdb_setup_readline): Don't set the input_fd global. Adjust to
4658 per-UI input_fd.
4659 (gdb_disable_readline): Adjust to per-UI input_fd.
4660 * event-top.h (input_fd): Delete declaration.
4661 * linux-nat.c (linux_nat_terminal_inferior): Don't remove input_fd
4662 from the event-loop here.
4663 (linux_nat_terminal_ours): Don't register input_fd in the
4664 event-loop here.
4665 * main.c (captured_main): Adjust to per-UI input_fd.
4666 * remote.c (remote_terminal_inferior): Don't remove input_fd from
4667 the event-loop here.
4668 (remote_terminal_ours): Don't register input_fd in the event-loop
4669 here.
4670 * target.c: Include top.h and event-top.h.
4671 (target_terminal_inferior): Remove input_fd from the event-loop
4672 here.
4673 (target_terminal_ours): Register input_fd in the event-loop.
4674 * top.h (struct ui) <input_fd>: New field.
4675
4676 2016-06-21 Pedro Alves <palves@redhat.com>
4677
4678 * cli/cli-script.c (execute_user_command, read_next_line)
4679 (read_next_line): Adjust to per-UI instream.
4680 * event-top.c (stdin_event_handler, command_handler)
4681 (handle_line_of_input, command_line_handler)
4682 (gdb_readline_no_editing_callback, async_sigterm_handler)
4683 (gdb_setup_readline): Likewise.
4684 * inflow.c: Include top.h.
4685 (gdb_has_a_terminal, child_terminal_init_with_pgrp)
4686 (gdb_save_tty_state, child_terminal_inferior)
4687 (child_terminal_ours_1, copy_terminal_info): Use the main UI.
4688 (initialize_stdin_serial): Adjust to per-UI instream.
4689 * main.c (captured_command_loop, captured_main): Adjust to per-UI
4690 instream.
4691 * mi/mi-interp.c (mi_execute_command_wrapper): Likewise.
4692 * python/python.c (python_interactive_command): Likewise.
4693 * terminal.h (struct ui): Forward declare.
4694 (initialize_stdin_serial): Add struct ui parameter.
4695 * top.c (instream): Delete.
4696 (do_restore_instream_cleanup, read_command_file, dont_repeat)
4697 (gdb_readline_no_editing, command_line_input)
4698 (input_from_terminal_p, gdb_init): Adjust to per-UI instream.
4699 * top.h (struct ui) <instream>: New field.
4700 (instream): Delete declaration.
4701 (quit): Adjust to per-UI instream.
4702
4703 2016-06-21 Pedro Alves <palves@redhat.com>
4704
4705 * event-loop.c: Include top.h.
4706 (invoke_async_signal_handlers): Switch to the main UI.
4707 * event-top.c (main_ui_): Update comment.
4708 (main_ui): New global.
4709 * top.h (main_ui): Declare.
4710
4711 2016-06-21 Pedro Alves <palves@redhat.com>
4712
4713 * cli/cli-interp.c (cli_interp): Delete.
4714 (as_cli_interp): New function.
4715 (cli_on_normal_stop, cli_on_signal_received)
4716 (cli_on_end_stepping_range, cli_on_signal_exited, cli_on_exited)
4717 (cli_on_no_history): Send output to all CLI UIs.
4718 (cli_on_sync_execution_done, cli_on_command_error): Skip output if
4719 the top level interpreter is not a CLI.
4720 (cli_interpreter_init): Don't set cli_interp or install observers
4721 here.
4722 (_initialize_cli_interp): Install observers here.
4723 * event-top.c (main_ui_, ui_list): New globals.
4724 (current_ui): Point to main_ui_.
4725 (restore_ui_cleanup, switch_thru_all_uis_init)
4726 (switch_thru_all_uis_cond, switch_thru_all_uis_next): New
4727 functions.
4728 * mi/mi-interp.c (as_mi_interp): New function.
4729 (mi_interpreter_init): Don't install observers here.
4730 (mi_on_sync_execution_done): Skip output if the top level
4731 interpreter is not a MI.
4732 (mi_new_thread, mi_thread_exit, mi_record_changed)
4733 (mi_inferior_added, mi_inferior_appeared, mi_inferior_exit)
4734 (mi_inferior_removed): Send output to all MI UIs.
4735 (find_mi_interpreter, mi_interp_data): Delete.
4736 (find_mi_interp): New function.
4737 (mi_on_signal_received, mi_on_end_stepping_range)
4738 (mi_on_signal_exited, mi_on_exited, mi_on_no_history): Send output
4739 to all MI UIs.
4740 (mi_on_normal_stop): Rename to ...
4741 (mi_on_normal_stop_1): ... this.
4742 (mi_on_normal_stop): Reimplement, sending output to all MI UIs.
4743 (mi_traceframe_changed, mi_tsv_created, mi_tsv_deleted)
4744 (mi_tsv_modified, mi_breakpoint_created, mi_breakpoint_deleted)
4745 (mi_breakpoint_modified, mi_output_running_pid): Send output to
4746 all MI UIs.
4747 (mi_on_resume): Rename to ...
4748 (mi_on_resume_1): ... this. Don't handle infcalls here.
4749 (mi_on_resume): Reimplement, sending output to all MI UIs.
4750 (mi_solib_loaded, mi_solib_unloaded, mi_command_param_changed)
4751 (mi_memory_changed): Send output to all MI UIs.
4752 (report_initial_inferior): Install observers here.
4753 * top.h (struct ui) <next>: New field.
4754 (ui_list): Declare.
4755 (struct switch_thru_all_uis): New.
4756 (switch_thru_all_uis_init, switch_thru_all_uis_cond)
4757 (switch_thru_all_uis_next): Declare.
4758 (SWITCH_THRU_ALL_UIS): New macro.
4759 * tui/tui-interp.c (tui_interp): Delete global.
4760 (as_tui_interp): New function.
4761 (tui_on_normal_stop, tui_on_signal_received)
4762 (tui_on_end_stepping_range, tui_on_signal_exited, tui_on_exited)
4763 (tui_on_no_history): Send output to all TUI UIs.
4764 (tui_on_sync_execution_done, tui_on_command_error): Skip output if
4765 the top level interpreter is not a TUI.
4766 (tui_init): Don't set tui_interp or install observers here.
4767 (_initialize_tui_interp): Install observers here.
4768
4769 2016-06-21 Pedro Alves <palves@redhat.com>
4770
4771 * cli/cli-interp.c (cli_uiout): Delete, moved into ...
4772 (struct cli_interp): ... this new structure.
4773 (cli_on_normal_stop, cli_on_signal_received)
4774 (cli_on_end_stepping_range, cli_on_signal_exited, cli_on_exited)
4775 (cli_on_no_history): Use interp_ui_out.
4776 (cli_interpreter_init): If top level, set the cli_interp global.
4777 (cli_interpreter_init): Return the interp's data instead of NULL.
4778 (cli_interpreter_resume, cli_interpreter_exec, cli_ui_out): Adjust
4779 to cli_uiout being in the interpreter's data.
4780 (cli_interp_procs): New, factored out from _initialize_cli_interp.
4781 (cli_interp_factory): New function.
4782 (_initialize_cli_interp): Call interp_factory_register.
4783 * interps.c (get_interp_info): New, factored out from ...
4784 (get_current_interp_info): ... this.
4785 (interp_new): Add parameter 'data'. Store it.
4786 (struct interp_factory): New function.
4787 (interp_factory_p): New typedef. Define a VEC_P.
4788 (interpreter_factories): New global.
4789 (interp_factory_register): New function.
4790 (interp_add): Add 'ui' parameter. Use get_interp_info and
4791 interp_lookup_existing.
4792 (interp_lookup): Rename to ...
4793 (interp_lookup_existing): ... this. Add 'ui' parameter. Don't
4794 check for NULL or empty name here.
4795 (interp_lookup): Add 'ui' parameter and reimplement.
4796 (interp_set_temp, interpreter_exec_cmd): Adjust.
4797 (interpreter_completer): Complete on registered interpreter
4798 factories instead of interpreters.
4799 * interps.h (interp_factory_func): New typedef.
4800 (interp_factory_register): Declare.
4801 (interp_new, interp_add): Adjust.
4802 (interp_lookup): Declare.
4803 * main.c (captured_main): Adjust.
4804 * mi/mi-interp.c (mi_cmd_interpreter_exec): Adjust.
4805 (mi_interp_procs): New, factored out from
4806 _initialize_mi_interp.
4807 (mi_interp_factory): New function.
4808 * python/python.c (execute_gdb_command): Adjust.
4809 * tui/tui-interp.c (tui_init): If top level, set the tui_interp
4810 global.
4811 (tui_interp_procs): New.
4812 (tui_interp_factory): New function.
4813 (_initialize_tui_interp): Call interp_factory_register.
4814
4815 2016-06-21 Pedro Alves <palves@redhat.com>
4816
4817 * breakpoint.c (bpstat_do_actions_1): Access the current UI's
4818 async field instead of the interpreter_async global.
4819 * cli/cli-script.c (execute_user_command, while_command)
4820 (if_command, script_from_file): Likewise.
4821 * compile/compile.c: Include top.h instead of interps.h.
4822 (compile_file_command, compile_code_command)
4823 (compile_print_command): Access the current UI's async field
4824 instead of the interpreter_async global.
4825 * guile/guile.c: Include top.h instead of interps.h.
4826 (guile_repl_command, guile_command, gdbscm_execute_gdb_command):
4827 Access the current UI's async field instead of the
4828 interpreter_async global.
4829 * guile/scm-ports.c: Include top.h instead of interps.h.
4830 (ioscm_with_output_to_port_worker): Access the current UI's async
4831 field instead of the interpreter_async global.
4832 * inf-loop.c (inferior_event_handler): Likewise.
4833 * infcall.c (run_inferior_call): Likewise.
4834 * infrun.c (reinstall_readline_callback_handler_cleanup)
4835 (fetch_inferior_event): Likewise.
4836 * interps.c (interpreter_async): Delete.
4837 (struct ui_interp_info): New.
4838 (get_current_interp_info): New function.
4839 (interp_list, current_interpreter, top_level_interpreter_ptr):
4840 Delete.
4841 (interp_add, interp_set, interp_lookup, interp_ui_out)
4842 (current_interp_set_logging, interp_set_temp)
4843 (current_interp_named_p): Adjust to per-UI interpreters.
4844 (command_interpreter): Delete.
4845 (command_interp, current_interp_command_loop, interp_quiet_p)
4846 (interp_exec, interpreter_exec_cmd, interpreter_completer)
4847 (top_level_interpreter, top_level_interpreter_data): Adjust to
4848 per-UI interpreters.
4849 * interps.h (interpreter_async): Delete.
4850 * main.c (captured_command_loop): Access the current UI's async
4851 field instead of the interpreter_async global.
4852 * python/python.c (python_interactive_command, python_command)
4853 (execute_gdb_command): Likewise.
4854 * top.c (maybe_wait_sync_command_done, execute_command_to_string):
4855 Access the current UI's async field instead of the
4856 interpreter_async global.
4857 * top.h (struct tl_interp_info): Forward declare.
4858 (struct ui) <interp_info, async>: New fields.
4859
4860 2016-06-21 Pedro Alves <palves@redhat.com>
4861
4862 * main.c (gdb_stdout, gdb_stderr, gdb_stdlog, gdb_stdin): Delete
4863 globals.
4864 (gen_ret_current_ui_field_ptr): New macro. Use it to generate
4865 wrappers for gdb_stdout, gdb_stderr, gdb_stdlog and gdb_stdin.
4866 * top.h (struct ui) <m_gdb_stdout, m_gdb_stdin, m_gdb_stderr,
4867 m_gdb_stdlog>: New fields.
4868 (current_ui_gdb_stdout_ptr, current_ui_gdb_stdin_ptr)
4869 (current_ui_gdb_stderr_ptr, current_ui_gdb_stdlog_ptr): Declare.
4870 (gdb_stdout, gdb_stdin, gdb_stderr, gdb_stdlog): Reimplement as
4871 macros.
4872
4873 2016-06-21 Pedro Alves <palves@redhat.com>
4874
4875 * event-top.c: Update readline-related comments.
4876 (input_handler, call_readline): Delete globals.
4877 (gdb_rl_callback_handler): Call the current UI's input_handler
4878 method.
4879 (change_line_handler): Adjust to set current UI's properties
4880 instead of globals.
4881 (current_ui_, current_ui): New globals.
4882 (get_command_line_buffer): Rewrite to refer to the current UI.
4883 (stdin_event_handler): Adjust to call the call_readline method of
4884 the current UI.
4885 (gdb_readline_no_editing_callback): Adjust to call the current UI's
4886 input_handler method.
4887 (gdb_setup_readline): Adjust to set current UI's properties
4888 instead of globals.
4889 * event-top.h (call_readline, input_handler): Delete declarations.
4890 * mi/mi-interp.c (mi_interpreter_resume): Adjust to set current
4891 UI's properties instead of globals.
4892 * top.c (gdb_readline_wrapper_cleanup): Adjust to set current UI's
4893 properties instead of globals.
4894 (gdb_readline_wrapper): Adjust to call and set current UI's
4895 methods instead of globals.
4896 * top.h: Include buffer.h and event-loop.h.
4897 (struct ui): New struct.
4898 (current_ui): New declaration.
4899
4900 2016-06-21 Pedro Alves <palves@redhat.com>
4901
4902 * ada-lang.c (ada_exception_name_addr_1): Add comment.
4903 (print_it_exception): Select the current frame.
4904
4905 2016-06-17 Yan-Ting Lin <currygt52@gmail.com>
4906
4907 * Makefile.in (ALL_TARGET_OBS): Add nds32-tdep.o.
4908 (HFILES_NO_SRCDIR): Add nds32-tdep.h.
4909 (ALLDEPFILES): Add nds32-tdep.c.
4910 * NEWS: Mention new NDS32 port.
4911 * configure.tgt: Add NDS32.
4912 * nds32-tdep.c: New file.
4913 * nds32-tdep.h: New file.
4914 * features/Makefile (XMLTOC): Add nds32.xml.
4915 * features/nds32-core.xml: New file.
4916 * features/nds32-fpu.xml: New file.
4917 * features/nds32-system.xml: New file.
4918 * features/nds32.c: New file (generated).
4919 * features/nds32.xml: New file.
4920
4921 2016-06-14 John Baldwin <jhb@FreeBSD.org>
4922
4923 * v850-tdep.c (v850_use_struct_convention): Trim type length checks.
4924
4925 2016-06-14 John Baldwin <jhb@FreeBSD.org>
4926
4927 * tui/tui-stack.c (tui_show_frame_info): Fix type mismatch.
4928
4929 2016-06-14 John Baldwin <jhb@FreeBSD.org>
4930
4931 * rs6000-tdep.c (ppc_process_record_op31): Initialize ra.
4932
4933 2016-06-13 Nick Clifton <nickc@redhat.com>
4934
4935 * gdbtypes.c (replace_type): Fix assertion.
4936
4937 2016-06-10 Tom Tromey <tom@tromey.com>
4938
4939 * gdbtypes.c (arch_type, arch_integer_type, arch_character_type)
4940 (arch_boolean_type, arch_float_type, arch_complex_type)
4941 (arch_flags_type, append_flags_type_field)
4942 (append_flags_type_flag, arch_composite_type)
4943 (append_composite_type_field_raw)
4944 (append_composite_type_field_aligned)
4945 (append_composite_type_field): Make "name" parameter const.
4946 * gdbtypes.h (arch_type, arch_integer_type, arch_character_type)
4947 (arch_boolean_type, arch_float_type, arch_complex_type)
4948 (append_composite_type_field, append_composite_type_field_aligned)
4949 (append_composite_type_field_raw, arch_flags_type)
4950 (append_flags_type_field, append_flags_type_flag): Constify.
4951
4952 2016-06-10 Tom Tromey <tom@tromey.com>
4953
4954 PR rust/20110:
4955 * rust-exp.y (lex_number): Don't truncate large numbers to i32.
4956
4957 2016-06-10 Tom Tromey <tom@tromey.com>
4958
4959 * Makefile.in (COMMON_OBS): Remove rust-exp.o.
4960 (YYFILES): Add rust-exp.c.
4961 (YYOBJ): Add rust-exp.o.
4962 (local-maintainer-clean): Remove rust-exp.c.
4963
4964 2016-06-09 Toshihito Kikuchi <k.toshihito@yahoo.de>
4965
4966 * NEWS: Mention that GDB now supports a negative repeat count in
4967 the 'x' command.
4968 * printcmd.c (decode_format): Allow '-' in the parameter
4969 "string_ptr" to accept a negative repeat count.
4970 (find_instruction_backward): New function.
4971 (read_memory_backward): New function.
4972 (integer_is_zero): New function.
4973 (find_string_backward): New function.
4974 (do_examine): Use new functions to examine memory backward.
4975 (_initialize_printcmd): Mention that 'x' command supports a negative
4976 repeat count.
4977
4978 2016-06-09 Toshihito Kikuchi <k.toshihito@yahoo.de>
4979
4980 * MAINTAINERS (Write After Approval): Add Toshihito Kikuchi.
4981
4982 2016-06-09 Tom Tromey <tom@tromey.com>
4983
4984 PR python/19819:
4985 * python/py-xmethods.c (invoke_method_name)
4986 (py_get_result_type_method_name, py_invoke_method_name): Remove.
4987 (gdbpy_initialize_xmethods): Don't initialize
4988 py_invoke_method_name, py_get_result_type_method_name.
4989
4990 2016-06-07 Simon Marchi <simon.marchi@ericsson.com>
4991
4992 * mi/mi-interp.c (mi_record_changed): Add missing braces.
4993
4994 2016-06-07 Bernhard Heckel <bernhard.heckel@intel.com>
4995
4996 * findvar.c (follow_static_link): Check for valid pointer.
4997
4998 2016-06-06 Simon Marchi <simon.marchi@ericsson.com>
4999
5000 * NEWS: Mention the new fields in =record-started.
5001 * common/btrace-common.h (btrace_format_short_string): New function
5002 declaration.
5003 * common/btrace-common.c (btrace_format_short_string): New
5004 function.
5005 * mi/mi-interp.c (mi_record_changed): Output method and format
5006 fields in the =record-started record.
5007 * record-btrace.c (record_btrace_open): Adapt record_changed
5008 notification.
5009 * record-full.c (record_full_open): Likewise.
5010 * record.c (cmd_record_stop): Likewise.
5011
5012 2016-06-02 Jon Turney <jon.turney@dronecode.org.uk>
5013
5014 * windows-nat.c (handle_output_debug_string): Return type of
5015 gdb_signal_from_host() is gdb_signal, not an int.
5016 (windows_get_exec_module_filename): Add pointer casts for C++.
5017
5018 2016-06-02 Tom Tromey <tom@tromey.com>
5019
5020 PR python/18984:
5021 * python/python.c (gdbpy_solib_name): Use GDB_PY_LLU_ARG.
5022
5023 2016-06-01 Pedro Alves <palves@redhat.com>
5024
5025 * remote-fileio.c (remote_fio_ctrl_c_flag, remote_fio_sa)
5026 (remote_fio_osa)
5027 (remote_fio_ofunc, remote_fileio_sig_init, remote_fileio_sig_set)
5028 (remote_fileio_sig_exit, remote_fileio_ctrl_c_signal_handler):
5029 Delete.
5030 (remote_fileio_o_quit_handler): New global.
5031 (remote_fileio_quit_handler): New function.
5032 (remote_fileio_reply): Check the quit flag instead of the custom
5033 'remote_fio_ctrl_c_flag' flag. Restore the quit handler instead
5034 of changing the SIGINT handler.
5035 (do_remote_fileio_request): Override the quit handler instead of
5036 changing the SIGINT handler.
5037
5038 2016-06-01 Nick Clifton <nickc@redhat.com>
5039
5040 * common/common-utils.c (xmalloc_failed): New function. Provided
5041 so that the version in libiberty is not linked in.
5042
5043 2016-06-01 Markus Metzger <markus.t.metzger@intel.com>
5044
5045 * infcmd.c (skip_finish_frames): New.
5046 (finish_command): Call skip_finish_frames.
5047
5048 2016-06-01 Yao Qi <yao.qi@linaro.org>
5049
5050 PR remote/19998
5051 * remote-fileio.c (remote_fileio_ctrl_c_signal_handler): Call
5052 quit_serial_event_set.
5053
5054 2016-06-01 Joel Brobecker <brobecker@adacore.com>
5055
5056 GDB 7.11.1 released.
5057
5058 2016-05-31 Martin Galvan <martin.galvan@tallertechnologies.com>
5059
5060 PR c++/19893
5061 * dwarf2loc.c (coerce_pieced_ref, indirect_synthetic_pointer,
5062 fetch_const_value_from_synthetic_pointer): New functions.
5063 (indirect_pieced_value): Move lower half to indirect_synthetic_pointer.
5064 (pieced_value_funcs): Implement coerce_ref.
5065 * valops.c (value_addr): Call coerce_ref for synthetic references.
5066 * valprint.c (valprint_check_validity): Return true for synthetic
5067 references. Also, don't show "<synthetic pointer>" if they reference
5068 addressable values.
5069 (generic_val_print_ref): Handle synthetic references. Also move some
5070 code to print_ref_address.
5071 (print_ref_address, get_value_addr_contents): New functions.
5072
5073 2016-05-30 Jan Kratochvil <jan.kratochvil@redhat.com>
5074
5075 PR c++/15231
5076 * dwarf2read.c (enum pc_bounds_kind): Add PC_BOUNDS_INVALID.
5077 (process_psymtab_comp_unit_reader, read_func_scope): Adjust callers.
5078 (read_lexical_block_scope): Import DIEs from bare DW_TAG_lexical_block.
5079 (read_call_site_scope): Adjust callers.
5080 (dwarf2_get_pc_bounds): Implement pc_bounds_invalid.
5081 (dwarf2_get_subprogram_pc_bounds, get_scope_pc_bounds): Adjust callers.
5082
5083 2016-05-30 Jan Kratochvil <jan.kratochvil@redhat.com>
5084
5085 Code cleanup: dwarf2_get_pc_bounds: -1/0/+1 -> enum
5086 * dwarf2read.c (enum pc_bounds_kind) New.
5087 (dwarf2_get_pc_bounds): Use it in the declaration.
5088 (process_psymtab_comp_unit_reader): Adjust caller. Rename has_pc_info
5089 to cu_bounds_kind.
5090 (read_func_scope, read_lexical_block_scope, read_call_site_scope):
5091 Adjust callers.
5092 (dwarf2_get_pc_bounds): Use enum pc_bounds_kind in the definition.
5093 (dwarf2_get_subprogram_pc_bounds, get_scope_pc_bounds): Adjust callers.
5094
5095 2016-05-29 Jan Kratochvil <jan.kratochvil@redhat.com>
5096
5097 * NEWS (QCatchSyscalls): Remove the parameter. Include ...
5098 (QCatchSyscalls:1 in qSupported) ... this separate entry which got
5099 deleted.
5100
5101 2016-05-29 Jan Kratochvil <jan.kratochvil@redhat.com>
5102
5103 * NEWS (N stop reply): Remove empty line.
5104
5105 2016-05-28 Alan Modra <amodra@gmail.com>
5106
5107 * compile/compile-object-load.c (link_callbacks_multiple_definition,
5108 link_callbacks_warning, link_callbacks_undefined_symbol,
5109 link_callbacks_undefined_symbol, link_callbacks_reloc_overflow,
5110 link_callbacks_reloc_dangerous,
5111 link_callbacks_unattached_reloc): Return void.
5112
5113 2016-05-27 Andrew Burgess <andrew.burgess@embecosm.com>
5114
5115 * opencl-lang.c (evaluate_subexp_opencl): If
5116 EVAL_AVOID_SIDE_EFFECTS mode, forward the VALUE_LVAL attribute to
5117 the returned value in the STRUCTOP_STRUCT case.
5118
5119 2016-05-27 Andrew Burgess <andrew.burgess@embecosm.com>
5120
5121 * eval.c (evaluate_subexp_standard): If EVAL_AVOID_SIDE_EFFECTS
5122 mode, forward the VALUE_LVAL attribute to the returned value in
5123 the STRUCTOP_PTR case.
5124
5125 2016-05-25 Tom Tromey <tom@tromey.com>
5126
5127 * python/py-value.c (value_object_as_number): Use correct spelling
5128 of HAVE_LIBPYTHON2_4.
5129
5130 2016-05-25 Bernhard Heckel <bernhard.heckel@intel.com>
5131
5132 * f-typeprint.c (f_type_print_base): Replace 0 by show.
5133
5134 2016-05-25 Bernhard Heckel <bernhard.heckel@intel.com>
5135
5136 * f-typeprint.c (f_type_print_base): Decrease show by one.
5137
5138 2016-05-25 Bernhard Heckel <bernhard.heckel@intel.com>
5139
5140 * f-typeprint.c (f_type_print_base): Don't print fields when show < 0.
5141
5142 2016-05-25 Bernhard Heckel <bernhard.heckel@intel.com>
5143
5144 * f-typeprint.c (f_type_print_base): Take print level into account.
5145
5146 2016-05-24 Tom Tromey <tom@tromey.com>
5147
5148 PR python/17386:
5149 * python/py-value.c (value_object_as_number): Add
5150 nb_inplace_floor_divide, nb_inplace_true_divide, nb_index.
5151
5152 2016-05-24 Tom Tromey <tom@tromey.com>
5153
5154 * python/py-value.c (value_object_as_number): Add
5155 nb_inplace_divide for Python 2.
5156
5157 2016-05-23 Tom Tromey <tom@tromey.com>
5158
5159 PR python/17981:
5160 * python/py-breakpoint.c (gdbpy_breakpoints): Return a new tuple
5161 when there are no breakpoints.
5162
5163 2016-05-24 Pedro Alves <palves@redhat.com>
5164
5165 PR gdb/19828
5166 * linux-nat.c (attach_proc_task_lwp_callback): Mark the lwp
5167 resumed, and add the thread to GDB's thread list.
5168
5169 2016-05-24 Pedro Alves <palves@redhat.com>
5170
5171 PR gdb/19828
5172 * linux-nat.c (get_pending_status): If the thread reported the
5173 event to the core and it's pending, use the pending status signal
5174 number.
5175
5176 2016-05-24 Pedro Alves <palves@redhat.com>
5177
5178 PR gdb/19828
5179 * linux-nat.c (lwp_lwpid_htab): New htab.
5180 (lwp_info_hash, lwp_lwpid_htab_eq, lwp_lwpid_htab_create)
5181 (lwp_lwpid_htab_add_lwp): New functions.
5182 (lwp_list): Tweak comment.
5183 (lwp_list_add, lwp_list_remove, lwp_lwpid_htab_remove_pid): New
5184 functions.
5185 (purge_lwp_list): Rewrite, using htab_traverse_noresize.
5186 (add_initial_lwp): Add lwp to htab too. Use lwp_list_add.
5187 (delete_lwp): Use lwp_list_remove. Remove htab too.
5188 (find_lwp_pid): Search in htab.
5189 (_initialize_linux_nat): Call lwp_lwpid_htab_create.
5190 * linux-nat.h (struct lwp_info) <prev>: New field.
5191
5192 2016-05-24 Pedro Alves <palves@redhat.com>
5193
5194 PR gdb/19828
5195 * linux-nat.c (lwp_lwpid_htab): New htab.
5196 (lwp_info_hash, lwp_lwpid_htab_eq, lwp_lwpid_htab_create)
5197 (lwp_lwpid_htab_add_lwp): New functions.
5198 (lwp_list): Tweak comment.
5199 (lwp_list_add, lwp_list_remove, lwp_lwpid_htab_remove_pid): New
5200 functions.
5201 (purge_lwp_list): Rewrite, using htab_traverse_noresize.
5202 (add_initial_lwp): Add lwp to htab too. Use lwp_list_add.
5203 (delete_lwp): Use lwp_list_remove. Remove htab too.
5204 (find_lwp_pid): Search in htab.
5205 (_initialize_linux_nat): Call lwp_lwpid_htab_create.
5206 * linux-nat.h (struct lwp_info) <prev>: New field.
5207
5208 2016-05-24 Pedro Alves <palves@redhat.com>
5209
5210 PR gdb/19828
5211 * linux-nat.c (linux_resume_one_lwp_throw): Clear the LWP's core
5212 field.
5213 (linux_nat_update_thread_list): Don't fetch the core if already
5214 known.
5215
5216 2016-05-24 Pedro Alves <palves@redhat.com>
5217
5218 PR gdb/19828
5219 * linux-tdep.c (find_mapping_size): Delete.
5220 (linux_vsyscall_range_raw): Rewrite reading from
5221 /proc/PID/task/PID/maps directly instead of using
5222 gdbarch_find_memory_regions.
5223
5224 2016-05-24 Pedro Alves <palves@redhat.com>
5225
5226 PR gdb/19828
5227 * linux-nat.c (report_thread_events): New global.
5228 (linux_handle_extended_wait): Report
5229 TARGET_WAITKIND_THREAD_CREATED if thread event reporting is
5230 enabled.
5231 (wait_lwp, linux_nat_filter_event): Report all thread exits if
5232 thread event reporting is enabled. Remove comment.
5233 (filter_exit_event): New function.
5234 (linux_nat_wait_1): Use it.
5235 (linux_nat_thread_events): New function.
5236 (linux_nat_add_target): Install it as target_thread_events method.
5237
5238 2016-05-24 Yan-Ting Lin <currygt52@gmail.com>
5239
5240 * MAINTAINERS (Write After Approval): Add "Yan-Ting Lin".
5241
5242 2016-05-23 Yao Qi <yao.qi@arm.com>
5243
5244 * arch-utils.c (default_code_of_frame_writable): New function.
5245 * arch-utils.h (default_code_of_frame_writable): Declare.
5246 * arm-tdep.c (arm_code_of_frame_writable): New function.
5247 (arm_gdbarch_init): Install gdbarch method
5248 code_of_frame_writable if the target is M-profile.
5249 * frame.c (skip_unwritable_frames): New function.
5250 * frame.h (skip_unwritable_frames): Declare.
5251 * gdbarch.sh (code_of_frame_writable): New.
5252 * gdbarch.c, gdbarch.h: Re-generated.
5253 * infcmd.c (finish_command): Call skip_unwritable_frames.
5254
5255 2016-05-23 Tom Tromey <tom@tromey.com>
5256
5257 PR python/19438, PR python/18393:
5258 * python/py-objfile.c (objfpy_initialize): Initialize self->dict.
5259 * python/py-progspace.c (pspy_initialize): Initialize self->dict.
5260
5261 2016-05-23 Gary Benson <gbenson@redhat.com>
5262
5263 * nat/gdb_thread_db.h (td_thr_validate_ftype): Remove typedef.
5264 * linux-thread-db.c (struct thread_db_info) <td_thr_validate_p>:
5265 Remove field.
5266 (try_thread_db_load_1): Remove td_thr_validate initialization.
5267
5268 2016-05-23 Jon Boden <jon@ubuntubsd.org> (tiny change)
5269
5270 * configure.ac: Search for libutil-freebsd as alternative to libutil.
5271 * configure: Re-generated.
5272
5273 2016-05-19 Andreas Schwab <schwab@suse.de>
5274
5275 * ia64-libunwind-tdep.c (libunwind_descr): Add cast from void *.
5276 (libunwind_frame_set_descr): Likewise.
5277 (libunwind_frame_cache): Likewise.
5278 (libunwind_frame_dealloc_cache): Likewise.
5279 (libunwind_frame_sniffer): Likewise.
5280 (libunwind_search_unwind_table): Likewise.
5281 (libunwind_sigtramp_frame_sniffer): Likewise.
5282 (libunwind_get_reg_special): Likewise.
5283 (libunwind_load): Likewise.
5284 * ia64-linux-nat.c (ia64_linux_fetch_register): Likewise.
5285 (ia64_linux_store_register): Likewise.
5286 (ia64_linux_xfer_partial): Likewise.
5287 * ia64-tdep.c (ia64_access_reg): Likewise.
5288 (ia64_access_fpreg): Likewise.
5289 (ia64_access_rse_reg): Likewise.
5290 (ia64_access_rse_fpreg): Likewise.
5291
5292 2016-05-18 Tom Tromey <tom@tromey.com>
5293
5294 * rust-lang.c (rust_subscript): Initialize "high".
5295
5296 2016-05-17 Simon Marchi <simon.marchi@ericsson.com>
5297
5298 PR gdb/20045
5299 * mi/mi-main.c (mi_on_resume): Call target_can_async_p instead
5300 of target_is_async_p.
5301
5302 2016-05-17 Simon Marchi <simon.marchi@ericsson.com>
5303
5304 PR gdb/18077
5305 * mi/mi-main.c (run_one_inferior): Use run target to determine
5306 whether to run async or not.
5307 (mi_cmd_exec_run): Likewise.
5308
5309 2016-05-17 Tom Tromey <tom@tromey.com>
5310
5311 * std-operator.def (OP_RANGE): Rename from OP_F90_RANGE.
5312 * rust-lang.c: Don't include f-lang.h.
5313 (rust_range, rust_compute_range, rust_subscript)
5314 (rust_evaluate_subexp): Update.
5315 * rust-exp.y: Don't include f-lang.h.
5316 (ast_range, convert_ast_to_expression): Update.
5317 * parse.c (operator_length_standard): Update.
5318 * f-lang.h (enum f90_range_type): Move to expression.h.
5319 * f-exp.y: Use OP_RANGE.
5320 * expression.h (enum range_type): New enum; renamed from
5321 f90_range_type.
5322 * expprint.c: Don't include f-lang.h.
5323 (print_subexp_standard, dump_subexp_body_standard): Use OP_RANGE.
5324 * eval.c (value_f90_subarray, evaluate_subexp_standard): Update.
5325
5326 2016-05-17 Tom Tromey <tom@tromey.com>
5327
5328 * NEWS: Add Rust item.
5329
5330 2016-05-17 Tom Tromey <tom@tromey.com>
5331 Manish Goregaokar <manishsmail@gmail.com>
5332
5333 * symtab.c (symbol_find_demangled_name): Handle Rust.
5334 * symfile.c (init_filename_language_table): Treat ".rs" as Rust.
5335 * std-operator.def (STRUCTOP_ANONYMOUS, OP_RUST_ARRAY): New
5336 constants.
5337 * rust-lang.h: New file.
5338 * rust-lang.c: New file.
5339 * rust-exp.y: New file.
5340 * dwarf2read.c (read_file_scope): Add Rust producer sniffing.
5341 (dwarf2_compute_name, read_func_scope, read_structure_type)
5342 (read_base_type, read_subrange_type, set_cu_language)
5343 (new_symbol_full, determine_prefix): Handle Rust.
5344 * defs.h (enum language) <language_rust>: New constant.
5345 * Makefile.in (SFILES): Add rust-exp.y, rust-lang.c.
5346 (COMMON_OBS): Add rust-exp.o, rust-lang.o.
5347
5348 2016-05-17 Tom Tromey <tom@tromey.com>
5349
5350 * valprint.h (struct generic_val_print_array) <array_start,
5351 array_end>: New fields.
5352 * valprint.c (generic_val_print_array): Add "decorations"
5353 parameter. Use "array_start", "array_end".
5354 (generic_val_print) <TYPE_CODE_ARRAY>: Update.
5355 * p-valprint.c (p_decorations): Update.
5356 * m2-valprint.c (m2_decorations): Update.
5357 * f-valprint.c (f_decorations): Update.
5358 * c-valprint.c (c_decorations): Update.
5359
5360 2016-05-17 Tom Tromey <tom@tromey.com>
5361
5362 * NEWS: Add "maint selftest" entry.
5363 * selftest.h: New file.
5364 * selftest.c: New file.
5365 * maint.c: Include selftest.h.
5366 (maintenance_selftest): New function.
5367 (_initialize_maint_cmds): Add "maint selftest" command.
5368 * configure.ac (GDB_SELF_TEST): Maybe define.
5369 * config.in, configure: Rebuild.
5370 * Makefile.in (SFILES): Add selftest.c.
5371 (COMMON_OBS): Add selftest.o.
5372
5373 2016-05-17 Tom Tromey <tom@tromey.com>
5374
5375 * expprint.c: Include f-lang.h.
5376 (print_subexp_standard, dump_subexp_body_standard): Handle
5377 OP_F90_RANGE.
5378
5379 2016-05-17 Tom Tromey <tom@tromey.com>
5380
5381 * Makefile.in (init.c): Search .y files for initialization
5382 functions.
5383
5384 2016-05-12 Doug Evans <dje@google.com>
5385
5386 PR symtab/19999
5387 * dwarf2loc.c (dwarf2_find_location_expression): For DWO files still
5388 add base_offset.
5389
5390 2016-05-10 Trevor Saunders <tbsaunde+binutils@tbsaunde.org>
5391
5392 * iq2000-tdep.c (iq2000_scan_prologue): Remove if that shouldn't guard
5393 anything.
5394 * linespec.c (add_sal_to_sals): Restore call to symtab_to_fullname.
5395
5396 2016-05-10 Thomas Preud'homme <thomas.preudhomme@arm.com>
5397
5398 * arm-tdep.c (arm_elf_make_msymbol_special): Use
5399 ARM_GET_SYM_BRANCH_TYPE to get branch type of a symbol.
5400
5401 2016-05-07 Trevor Saunders <tbsaunde+binutils@tbsaunde.org>
5402
5403 * aarch64-linux-tdep.c (aarch64_linux_sigframe_init): Remove unused
5404 variables.
5405 * aarch64-tdep.c (aarch64_skip_prologue): Likewise.
5406 (aarch64_scan_prologue): Likewise.
5407 (aarch64_prologue_prev_register): Likewise.
5408 (aarch64_dwarf2_prev_register): Likewise.
5409 (pass_in_v): Likewise.
5410 (aarch64_push_dummy_call): Likewise.
5411 (aarch64_breakpoint_from_pc): Likewise.
5412 (aarch64_return_in_memory): Likewise.
5413 (aarch64_return_value): Likewise.
5414 (aarch64_displaced_step_b_cond): Likewise.
5415 (aarch64_displaced_step_cb): Likewise.
5416 (aarch64_displaced_step_tb): Likewise.
5417 (aarch64_gdbarch_init): Likewise.
5418 (aarch64_process_record): Likewise.
5419 * alpha-mdebug-tdep.c (alpha_mdebug_init_abi): Likewise.
5420 * alpha-tdep.c (_initialize_alpha_tdep): Likewise.
5421 * amd64-dicos-tdep.c (amd64_dicos_init_abi): Likewise.
5422 * amd64-linux-tdep.c (amd64_dtrace_parse_probe_argument): Likewise.
5423 * amd64-tdep.c (fixup_riprel): Likewise.
5424 * amd64-windows-tdep.c (amd64_windows_frame_decode_epilogue): Likewise.
5425 (amd64_windows_frame_decode_insns): Likewise.
5426 (amd64_windows_frame_cache): Likewise.
5427 (amd64_windows_frame_prev_register): Likewise.
5428 (amd64_windows_frame_this_id): Likewise.
5429 (amd64_windows_init_abi): Likewise.
5430 * arm-linux-tdep.c (arm_linux_get_syscall_number): Likewise.
5431 (arm_linux_get_next_pcs_syscall_next_pc): Likewise.
5432 * arm-symbian-tdep.c (arm_symbian_init_abi): Likewise.
5433 * arm-tdep.c (arm_make_epilogue_frame_cache): Likewise.
5434 (arm_epilogue_frame_prev_register): Likewise.
5435 (arm_record_vdata_transfer_insn): Likewise.
5436 (arm_record_exreg_ld_st_insn): Likewise.
5437 * auto-load.c (execute_script_contents): Likewise.
5438 (print_scripts): Likewise.
5439 * avr-tdep.c (avr_frame_prev_register): Likewise.
5440 (avr_push_dummy_call): Likewise.
5441 * bfin-linux-tdep.c (bfin_linux_sigframe_init): Likewise.
5442 * bfin-tdep.c (bfin_gdbarch_init): Likewise.
5443 * blockframe.c (find_pc_partial_function_gnu_ifunc): Likewise.
5444 * break-catch-throw.c (fetch_probe_arguments): Likewise.
5445 * breakpoint.c (breakpoint_xfer_memory): Likewise.
5446 (breakpoint_init_inferior): Likewise.
5447 (breakpoint_inserted_here_p): Likewise.
5448 (software_breakpoint_inserted_here_p): Likewise.
5449 (hardware_breakpoint_inserted_here_p): Likewise.
5450 (bpstat_what): Likewise.
5451 (break_range_command): Likewise.
5452 (save_breakpoints): Likewise.
5453 * coffread.c (coff_symfile_read): Likewise.
5454 * cris-tdep.c (cris_push_dummy_call): Likewise.
5455 (cris_scan_prologue): Likewise.
5456 (cris_register_size): Likewise.
5457 (_initialize_cris_tdep): Likewise.
5458 * d-exp.y: Likewise.
5459 * dbxread.c (dbx_read_symtab): Likewise.
5460 (process_one_symbol): Likewise.
5461 (coffstab_build_psymtabs): Likewise.
5462 (elfstab_build_psymtabs): Likewise.
5463 * dicos-tdep.c (dicos_init_abi): Likewise.
5464 * disasm.c (do_mixed_source_and_assembly): Likewise.
5465 (gdb_disassembly): Likewise.
5466 * dtrace-probe.c (dtrace_process_dof): Likewise.
5467 * dwarf2read.c (error_check_comp_unit_head): Likewise.
5468 (build_type_psymtabs_1): Likewise.
5469 (skip_one_die): Likewise.
5470 (process_imported_unit_die): Likewise.
5471 (dwarf2_physname): Likewise.
5472 (read_file_scope): Likewise.
5473 (setup_type_unit_groups): Likewise.
5474 (create_dwo_cu_reader): Likewise.
5475 (create_dwo_cu): Likewise.
5476 (create_dwo_unit_in_dwp_v1): Likewise.
5477 (create_dwo_unit_in_dwp_v2): Likewise.
5478 (lookup_dwo_unit_in_dwp): Likewise.
5479 (free_dwo_file): Likewise.
5480 (check_producer): Likewise.
5481 (dwarf2_add_typedef): Likewise.
5482 (dwarf2_add_member_fn): Likewise.
5483 (read_unsigned_leb128): Likewise.
5484 (read_signed_leb128): Likewise.
5485 (dwarf2_const_value): Likewise.
5486 (follow_die_sig_1): Likewise.
5487 (dwarf_decode_macro_bytes): Likewise.
5488 * extension.c (restore_active_ext_lang): Likewise.
5489 * frv-linux-tdep.c (frv_linux_sigtramp_frame_cache): Likewise.
5490 * ft32-tdep.c (ft32_analyze_prologue): Likewise.
5491 * gdbtypes.c (lookup_typename): Likewise.
5492 (resolve_dynamic_range): Likewise.
5493 (check_typedef): Likewise.
5494 * h8300-tdep.c (h8300_is_argument_spill): Likewise.
5495 (h8300_gdbarch_init): Likewise.
5496 * hppa-tdep.c (hppa32_push_dummy_call): Likewise.
5497 (hppa_frame_this_id): Likewise.
5498 (_initialize_hppa_tdep): Likewise.
5499 * hppanbsd-tdep.c (hppanbsd_sigtramp_cache_init): Likewise.
5500 * hppaobsd-tdep.c (hppaobsd_supply_fpregset): Likewise.
5501 * i386-dicos-tdep.c (i386_dicos_init_abi): Likewise.
5502 * i386-tdep.c (i386_bnd_type): Likewise.
5503 (i386_gdbarch_init): Likewise.
5504 (i386_mpx_bd_base): Likewise.
5505 * i386nbsd-tdep.c (i386nbsd_sigtramp_cache_init): Likewise.
5506 * i386obsd-tdep.c (i386obsd_elf_init_abi): Likewise.
5507 * ia64-tdep.c (examine_prologue): Likewise.
5508 (ia64_frame_cache): Likewise.
5509 (ia64_push_dummy_call): Likewise.
5510 * infcmd.c (finish_command_fsm_async_reply_reason): Likewise.
5511 (default_print_one_register_info): Likewise.
5512 * infrun.c (infrun_thread_ptid_changed): Likewise.
5513 (thread_still_needs_step_over): Likewise.
5514 (stop_all_threads): Likewise.
5515 (restart_threads): Likewise.
5516 (keep_going_stepped_thread): Likewise.
5517 * iq2000-tdep.c (iq2000_scan_prologue): Likewise.
5518 * language.c (language_init_primitive_type_symbols): Likewise.
5519 * linespec.c (add_sal_to_sals): Likewise.
5520 * linux-nat.c (status_callback): Likewise.
5521 (kill_unfollowed_fork_children): Likewise.
5522 (linux_nat_kill): Likewise.
5523 * linux-tdep.c (linux_fill_prpsinfo): Likewise.
5524 * linux-thread-db.c (thread_db_notice_clone): Likewise.
5525 (record_thread): Likewise.
5526 * location.c (string_to_event_location_basic): Likewise.
5527 * m32c-tdep.c (m32c_prev_register): Likewise.
5528 * m32r-linux-tdep.c (m32r_linux_init_abi): Likewise.
5529 * m32r-tdep.c (decode_prologue): Likewise.
5530 * m68klinux-tdep.c (m68k_linux_sigtramp_frame_cache): Likewise.
5531 * machoread.c (macho_symtab_read): Likewise.
5532 (macho_symfile_read): Likewise.
5533 (macho_symfile_offsets): Likewise.
5534 * maint.c (set_per_command_cmd): Likewise.
5535 * mi/mi-cmd-stack.c (mi_cmd_stack_list_locals): Likewise.
5536 (mi_cmd_stack_list_variables): Likewise.
5537 * mi/mi-main.c (mi_cmd_exec_run): Likewise.
5538 (output_register): Likewise.
5539 (mi_cmd_execute): Likewise.
5540 (mi_cmd_trace_define_variable): Likewise.
5541 (print_variable_or_computed): Likewise.
5542 * minsyms.c (prim_record_minimal_symbol_full): Likewise.
5543 * mn10300-tdep.c (mn10300_frame_prev_register): Likewise.
5544 * msp430-tdep.c (msp430_pseudo_register_write): Likewise.
5545 * mt-tdep.c (mt_registers_info): Likewise.
5546 * nios2-tdep.c (nios2_analyze_prologue): Likewise.
5547 (nios2_push_dummy_call): Likewise.
5548 (nios2_frame_unwind_cache): Likewise.
5549 (nios2_stub_frame_cache): Likewise.
5550 (nios2_stub_frame_sniffer): Likewise.
5551 (nios2_gdbarch_init): Likewise.
5552 * ppc-ravenscar-thread.c: Likewise.
5553 * ppcfbsd-tdep.c (ppcfbsd_sigtramp_frame_cache): Likewise.
5554 * python/py-evts.c (add_new_registry): Likewise.
5555 * python/py-finishbreakpoint.c (bpfinishpy_init): Likewise.
5556 (bpfinishpy_detect_out_scope_cb): Likewise.
5557 * python/py-framefilter.c (py_print_value): Likewise.
5558 * python/py-inferior.c (infpy_write_memory): Likewise.
5559 * python/py-infevents.c (create_inferior_call_event_object): Likewise.
5560 * python/py-infthread.c (thpy_get_ptid): Likewise.
5561 * python/py-linetable.c (ltpy_get_pcs_for_line): Likewise.
5562 (ltpy_get_all_source_lines): Likewise.
5563 (ltpy_is_valid): Likewise.
5564 (ltpy_iternext): Likewise.
5565 * python/py-symtab.c (symtab_and_line_to_sal_object): Likewise.
5566 * python/py-unwind.c (pyuw_object_attribute_to_pointer): Likewise.
5567 (unwind_infopy_str): Likewise.
5568 * python/py-varobj.c (py_varobj_get_iterator): Likewise.
5569 * ravenscar-thread.c (ravenscar_inferior_created): Likewise.
5570 * rs6000-aix-tdep.c (rs6000_push_dummy_call): Likewise.
5571 * rs6000-lynx178-tdep.c (rs6000_lynx178_push_dummy_call): Likewise.
5572 * rs6000-tdep.c (ppc_deal_with_atomic_sequence): Likewise.
5573 * s390-linux-tdep.c (s390_supply_tdb_regset): Likewise.
5574 (s390_frame_prev_register): Likewise.
5575 (s390_dwarf2_frame_init_reg): Likewise.
5576 (s390_record_vr): Likewise.
5577 (s390_process_record): Likewise.
5578 * score-tdep.c (score_push_dummy_call): Likewise.
5579 (score3_analyze_prologue): Likewise.
5580 * sh-tdep.c (sh_extract_return_value_nofpu): Likewise.
5581 * sh64-tdep.c (sh64_analyze_prologue): Likewise.
5582 (sh64_push_dummy_call): Likewise.
5583 (sh64_extract_return_value): Likewise.
5584 (sh64_do_fp_register): Likewise.
5585 * solib-aix.c (solib_aix_get_section_offsets): Likewise.
5586 * solib-darwin.c (darwin_read_exec_load_addr_from_dyld): Likewise.
5587 (darwin_solib_read_all_image_info_addr): Likewise.
5588 * solib-dsbt.c (enable_break): Likewise.
5589 * solib-frv.c (enable_break2): Likewise.
5590 (frv_fdpic_find_canonical_descriptor): Likewise.
5591 * solib-svr4.c (svr4_handle_solib_event): Likewise.
5592 * sparc-tdep.c (sparc_skip_stack_check): Likewise.
5593 * sparc64-linux-tdep.c (sparc64_linux_get_longjmp_target): Likewise.
5594 * sparcobsd-tdep.c (sparc32obsd_init_abi): Likewise.
5595 * spu-tdep.c (info_spu_dma_cmdlist): Likewise.
5596 * stack.c (read_frame_local): Likewise.
5597 * symfile.c (symbol_file_add_separate): Likewise.
5598 (remove_symbol_file_command): Likewise.
5599 * symmisc.c (maintenance_print_one_line_table): Likewise.
5600 * symtab.c (symbol_cache_flush): Likewise.
5601 (basic_lookup_transparent_type): Likewise.
5602 (sort_search_symbols_remove_dups): Likewise.
5603 * target.c (target_memory_map): Likewise.
5604 (target_detach): Likewise.
5605 (target_resume): Likewise.
5606 (acquire_fileio_fd): Likewise.
5607 (target_store_registers): Likewise.
5608 * thread.c (print_thread_info_1): Likewise.
5609 * tic6x-tdep.c (tic6x_analyze_prologue): Likewise.
5610 * tilegx-linux-tdep.c (tilegx_linux_sigframe_init): Likewise.
5611 * tilegx-tdep.c (tilegx_push_dummy_call): Likewise.
5612 (tilegx_analyze_prologue): Likewise.
5613 (tilegx_stack_frame_destroyed_p): Likewise.
5614 (tilegx_frame_cache): Likewise.
5615 * tracefile.c (trace_save): Likewise.
5616 * tracepoint.c (encode_actions_and_make_cleanup): Likewise.
5617 (start_tracing): Likewise.
5618 (print_one_static_tracepoint_marker): Likewise.
5619 * tui/tui.c (tui_enable): Likewise.
5620 * valops.c (value_struct_elt_bitpos): Likewise.
5621 (find_overload_match): Likewise.
5622 (find_oload_champ): Likewise.
5623 * value.c (value_contents_copy_raw): Likewise.
5624 * windows-tdep.c (windows_get_tlb_type): Likewise.
5625 * x86-linux-nat.c (x86_linux_enable_btrace): Likewise.
5626 * xcoffread.c (record_minimal_symbol): Likewise.
5627 (scan_xcoff_symtab): Likewise.
5628 * xtensa-tdep.c (execute_code): Likewise.
5629 (xtensa_gdbarch_init): Likewise.
5630 (_initialize_xtensa_tdep): Likewise.
5631
5632 2016-05-04 Ulrich Weigand <uweigand@de.ibm.com>
5633
5634 * spu-linux-nat.c (spu_bfd_iovec_pread): Add pointer cast for C++.
5635 (spu_bfd_open): Likewise.
5636
5637 2016-05-04 Yao Qi <yao.qi@linaro.org>
5638
5639 PR gdb/19947
5640 * corefile.c (read_memory): Rename it to ...
5641 (read_memory_object): ... it. Add parameter object.
5642 (read_memory): Call read_memory_object.
5643 (read_stack): Likewise.
5644 (read_code): Likewise.
5645
5646 2016-05-03 Yunlian Jiang <yunlian@google.com>
5647 Doug Evans <dje@google.com>
5648
5649 PR symtab/19914
5650 * dwarf2read.c (open_and_init_dwp_file): Look at backlink if objfile
5651 is separate debug file.
5652
5653 2016-05-03 Don Breazeal <donb@codesourcery.com>
5654
5655 * serial.h (gdb_pipe): Fix argument names in comment.
5656
5657 2016-05-03 Pedro Alves <palves@redhat.com>
5658
5659 PR python/20037
5660 * python/python.c (_initialize_python) [IS_PY3K]: xstrdup/xfree
5661 oldloc.
5662
5663 2016-05-03 Pedro Alves <palves@redhat.com>
5664
5665 * python/python.c (_initialize_python) [IS_PY3K]: Remove dead
5666 code.
5667
5668 2016-05-03 Pedro Alves <palves@redhat.com>
5669
5670 * configure.ac (PYTHON_LIBS): Sed away "-Xlinker -export-dynamic".
5671 * configure: Regenerate.
5672
5673 2016-05-03 Pedro Alves <palves@redhat.com>
5674
5675 * configure.ac (checking for the dynamic export flag): Add
5676 $PYTHON_CPPFLAGS to CPPFLAGS.
5677 * configure: Regenerate.
5678
5679 2016-05-03 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
5680
5681 * symfile.c (find_pc_overlay): Add braces to avoid -Wparentheses
5682 warning.
5683 (find_pc_mapped_section): Likewise.
5684 (list_overlays_command): Likewise.
5685
5686 2016-05-02 Eli Zaretskii <eliz@gnu.org>
5687
5688 * windows-nat.c (_initialize_check_for_gdb_ini): Fix off-by-one
5689 error in allocation of space for "$HOME/.gdbinit" string. This
5690 caused GDB to abort on startup whenever a '~/gdb.ini' file was
5691 actually found, because xsnprintf would hit an assertion
5692 violation.
5693
5694 2016-04-28 Simon Marchi <simon.marchi@ericsson.com>
5695
5696 * cli/cli-decode.c (help_cmd_list): Do not list commands that
5697 are deprecated.
5698
5699 2016-04-27 Jan Kratochvil <jan.kratochvil@redhat.com>
5700
5701 * remote.c (remote_start_remote): Detect PACKET_vFile_setfs.support.
5702
5703 2016-04-27 Martin Galvan <martin.galvan@tallertechnologies.com>
5704
5705 * c-valprint.c (c_value_print): Always convert val back to reference
5706 type if we converted it to a pointer type.
5707
5708 2016-04-27 Andreas Arnez <arnez@linux.vnet.ibm.com>
5709
5710 * configure.ac: Enhance configure check for babeltrace to reject
5711 non-C++-enabled versions.
5712 * configure: Regenerate.
5713
5714 2016-04-26 Sanimir Agovic <sanimir.agovic@intel.com>
5715 Keven Boell <keven.boell@intel.com>
5716 Bernhard Heckel <bernhard.heckel@intel.com>
5717
5718 * f-valprint.c (f77_create_arrayprint_offset_tbl): Remove
5719 function.
5720 (F77_DIM_SIZE, F77_DIM_OFFSET): Remove macro.
5721 (f77_print_array_1): Use value_subscript to subscript a
5722 value array.
5723 (f77_print_array): Remove call to f77_create_arrayprint_offset_tbl.
5724 (f_val_print): Use value_field to construct a field value.
5725
5726 2016-04-26 Bernhard Heckel <bernhard.heckel@intel.com>
5727
5728 * valarith.c (value_address): Resolve dynamic types.
5729
5730 2016-04-26 Bernhard Heckel <bernhard.heckel@intel.com>
5731 Keven Boell <kevel.boell@intel.com>
5732
5733 * NEWS: Add new supported features for fortran.
5734 * gdbtypes.c (remove_dyn_prop): New.
5735 (resolve_dynamic_struct): Keep type length for fortran structs.
5736 * gdbtypes.h: Forward declaration of new function.
5737 * value.c (value_address): Return dynamic resolved location of a value.
5738 (set_value_component_location): Adjust the value address
5739 for single value prints.
5740 (value_primitive_field): Support value types with a dynamic location.
5741 (set_internalvar): Remove dynamic location property of
5742 internal variables.
5743
5744 2016-04-25 Pedro Alves <palves@redhat.com>
5745 Yao Qi <yao.qi@linaro.org>
5746
5747 * mem-break.c (set_raw_breakpoint_at): Create a raw breakpoint
5748 object. Insert it if it is not inserted yet. Increase the
5749 refcount and link it into the proc's raw breakpoint list.
5750
5751 2016-04-25 Yao Qi <yao.qi@linaro.org>
5752
5753 * breakpoint.c (should_be_inserted): Return 0 if the location's
5754 owner is not single step breakpoint or single step breakpoint's
5755 thread isn't the thread which is stepping past a breakpoint.
5756 * gdbarch.sh (software_single_step): Update comments.
5757 * gdbarch.h: Regenerated.
5758 * infrun.c (struct step_over_info) <thread>: New field.
5759 (set_step_over_info): New argument 'thread'. Callers updated.
5760 (clear_step_over_info): Set field thread to -1.
5761 (thread_is_stepping_over_breakpoint): New function.
5762 * infrun.h (thread_is_stepping_over_breakpoint): Declaration.
5763
5764 2016-04-22 Edjunior Barbosa Machado <emachado@linux.vnet.ibm.com>
5765
5766 * ppc-linux-nat.c (ppc_linux_read_description): Use PPC_FEATURE_HAS_VSX
5767 and PPC_FEATURE_HAS_ALTIVEC to check if such features are available.
5768
5769 2016-04-22 Yao Qi <yao.qi@linaro.org>
5770
5771 * valops.c (read_value_memory): New local variable 'stack'.
5772 Set it to either TARGET_OBJECT_STACK_MEMORY or
5773 TARGET_OBJECT_MEMORY.
5774
5775 2016-04-22 Pedro Alves <palves@redhat.com>
5776
5777 * ada-exp.y: Remove all yy symbol remappings.
5778 (GDB_YY_REMAP_PREFIX): Define.
5779 Include "yy-remap.h".
5780 * ada-lang.c (ada_language_defn): Adjust.
5781 * ada-lang.h (ada_error): Rename to ...
5782 (ada_yyerror): ... this.
5783 * c-exp.y: Remove all yy symbol remappings.
5784 (GDB_YY_REMAP_PREFIX): Define.
5785 Include "yy-remap.h".
5786 * c-lang.c (c_language_defn, cplus_language_defn)
5787 (asm_language_defn, minimal_language_defn): Adjust.
5788 * c-lang.h (c_error): Rename to ...
5789 (c_yyerror): ... this.
5790 * d-exp.y: Remove all yy symbol remappings.
5791 (GDB_YY_REMAP_PREFIX): Define.
5792 Include "yy-remap.h".
5793 * d-lang.c (d_language_defn): Adjust.
5794 * d-lang.h (d_error): Rename to ...
5795 (d_yyerror): ... this.
5796 * f-exp.y: Remove all yy symbol remappings.
5797 (GDB_YY_REMAP_PREFIX): Define.
5798 Include "yy-remap.h".
5799 * f-lang.c (f_language_defn): Adjust.
5800 * f-lang.h (f_error): Rename to ...
5801 (f_yyerror): ... this.
5802 * go-exp.y: Remove all yy symbol remappings.
5803 (GDB_YY_REMAP_PREFIX): Define.
5804 Include "yy-remap.h".
5805 * go-lang.c (go_language_defn): Adjust.
5806 * go-lang.h (go_error): Rename to ...
5807 (go_yyerror): ... this.
5808 * jv-exp.y: Remove all yy symbol remappings.
5809 (GDB_YY_REMAP_PREFIX): Define.
5810 Include "yy-remap.h".
5811 * jv-lang.c (java_language_defn): Adjust.
5812 * jv-lang.h (java_error): Rename to ...
5813 (java_yyerror): ... this.
5814 * m2-exp.y: Remove all yy symbol remappings.
5815 (GDB_YY_REMAP_PREFIX): Define.
5816 Include "yy-remap.h".
5817 * m2-lang.c (m2_language_defn): Adjust.
5818 * m2-lang.h (m2_error): Rename to ...
5819 (m2_yyerror): ... this.
5820 * objc-exp.y: Remove all yy symbol remappings.
5821 (GDB_YY_REMAP_PREFIX): Define.
5822 Include "yy-remap.h".
5823 * objc-lang.c (objc_language_defn): Adjust.
5824 * opencl-lang.c (opencl_language_defn): Adjust.
5825 * p-exp.y: Remove all yy symbol remappings.
5826 (GDB_YY_REMAP_PREFIX): Define.
5827 Include "yy-remap.h".
5828 * p-lang.c (pascal_language_defn): Adjust.
5829 * p-lang.h (pascal_error): Rename to ...
5830 (pascal_yyerror): ... this.
5831 * yy-remap.h: New file.
5832
5833 2016-04-22 Pedro Alves <palves@redhat.com>
5834
5835 * common/common-exceptions.h (GDB_XCPT_TRY): Remove mention of
5836 the foreign frames issue.
5837 [__cplusplus] (GDB_XCPT): Define as GDB_XCPT_TRY.
5838
5839 2016-04-22 Pedro Alves <palves@redhat.com>
5840
5841 * common/common-exceptions.c (enum catcher_state, struct catcher)
5842 (current_catcher): Define in C++ mode too.
5843 (exceptions_state_mc_catch): Call throw_exception_sjlj instead of
5844 throw_exception.
5845 (throw_exception_sjlj, throw_exception_cxx): New functions,
5846 factored out from throw_exception.
5847 (throw_exception): Reimplement.
5848 * common/common-exceptions.h (exceptions_state_mc_init)
5849 (exceptions_state_mc_action_iter)
5850 (exceptions_state_mc_action_iter_1, exceptions_state_mc_catch):
5851 Declare in C++ mode too.
5852 (TRY): Rename to ...
5853 (TRY_SJLJ): ... this.
5854 (CATCH): Rename to ...
5855 (CATCH_SJLJ): ... this.
5856 (END_CATCH): Rename to ...
5857 (END_CATCH_SJLJ): ... this.
5858 [GDB_XCPT == GDB_XCPT_SJMP] (TRY, CATCH, END_CATCH): Map to SJLJ
5859 equivalents.
5860 (throw_exception): Update comments.
5861 (throw_exception_sjlj): Declare.
5862 * event-top.c (gdb_rl_callback_read_char_wrapper): Extend intro
5863 comment. Wrap body in TRY_SJLJ/CATCH_SJLJ and rethrow any
5864 intercepted exception.
5865 (gdb_rl_callback_handler): New function.
5866 (gdb_rl_callback_handler_install): Always install
5867 gdb_rl_callback_handler as readline callback.
5868
5869 2016-04-22 Pedro Alves <palves@redhat.com>
5870
5871 * event-top.c (rl_callback_read_char_wrapper): Rename to ...
5872 (gdb_rl_callback_read_char_wrapper): ... this.
5873 (change_line_handler, gdb_setup_readline): Adjust.
5874
5875 2016-04-22 Yao Qi <yao.qi@linaro.org>
5876
5877 * aarch32-linux-nat.c (aarch32_gp_regcache_supply): Clear CPSR
5878 bits 20 to 23.
5879
5880 2016-04-22 Joel Brobecker <brobecker@adacore.com>
5881
5882 * MAINTAINER: Remove myself as AIX Maintainer.
5883
5884 2016-04-22 Maciej W. Rozycki <macro@imgtec.com>
5885
5886 * mips-tdep.c (mips_gdbarch_init): For GDB_OSABI_LINUX set
5887 `num_regs' to 90 rather than 79. Where a target description is
5888 present adjust the setting appropriately.
5889
5890 2016-04-21 Pedro Alves <palves@redhat.com>
5891
5892 * common/common-exceptions.h (GDB_XCPT_TRY): Add comment.
5893 (GDB_XCPT): Always define as GDB_XCPT_SJMP.
5894
5895 2016-04-21 Pedro Alves <palves@redhat.com>
5896
5897 * aix-thread.c (pdc_read_data, pdc_write_data): Add cast.
5898 (aix_thread_resume): Use PTRACE_TYPE_ARG5.
5899 * rs6000-nat.c (rs6000_ptrace64): Use PTRACE_TYPE_ARG5.
5900 (rs6000_ptrace_ldinfo): Change type of 'ldi' local to void
5901 pointer, and cast return to gdb_byte pointer.
5902
5903 2016-04-21 Pedro Alves <palves@redhat.com>
5904
5905 * s390-linux-nat.c (fetch_regset, store_regset, check_regset): Use
5906 void * instead of gdb_byte *.
5907
5908 2016-04-21 Pedro Alves <palves@redhat.com>
5909
5910 * dwarf2read.c (try_open_dwop_file, open_dwo_file)
5911 (file_file_name, file_full_name): Add char * cast to sentinel in
5912 concat/reconcat calls.
5913 * event-top.c (top_level_prompt): Likewise.
5914 * guile/guile.c (initialize_scheme_side): Likewise.
5915 * linux-tdep.c (linux_fill_prpsinfo): Likewise.
5916 * macrotab.c (macro_source_fullname): Likewise.
5917 * main.c (get_init_files, captured_main): Likewise.
5918 * psymtab.c (psymtab_to_fullname): Likewise.
5919 * python/python.c (_initialize_python)
5920 (gdbpy_finish_initialization): Likewise.
5921 * source.c (symtab_to_fullname): Likewise.
5922
5923 2016-04-20 Pedro Alves <palves@redhat.com>
5924
5925 * build-with-cxx.m4 (GDB_AC_BUILD_WITH_CXX): Default to yes.
5926 * configure: Renegerate.
5927
5928 2016-04-20 Pedro Alves <palves@redhat.com>
5929
5930 * darwin-nat.c (darwin_decode_message): Use gdb_signal_from_host.
5931
5932 2016-04-20 Pedro Alves <palves@redhat.com>
5933
5934 * aarch64-tdep.c (aarch64_record_load_store): Change type of
5935 'reg_rm_val' local to ULONGEST.
5936
5937 2016-04-20 Pedro Alves <palves@redhat.com>
5938
5939 * darwin-nat.c (darwin_resume_thread): Add uintptr_t cast.
5940
5941 2016-04-20 Doug Evans <xdje42@gmail.com>
5942
5943 * symmisc.c (dump_symtab_1): Print owning compunit for identical
5944 blockvectors.
5945
5946 2016-04-20 Yao Qi <yao.qi@linaro.org>
5947
5948 * aarch32-linux-nat.c: Include "arch/arm-linux.h".
5949
5950 2016-04-20 Yao Qi <yao.qi@linaro.org>
5951
5952 * arm-linux-tdep.h (ARM_CPSR_GREGNUM): Move it to ...
5953 * arch/arm-linux.h: ... here.
5954
5955 2016-04-19 John Baldwin <jhb@FreeBSD.org>
5956
5957 * amd64bsd-nat.c (amd64bsd_fetch_inferior_registers): Change xstateregs
5958 to void *.
5959 (amd64bsd_store_inferior_registers): Likewise.
5960 * fbsd-nat.c (resume_one_thread_cb): Explicitly cast data to ptid_t *.
5961 (resume_all_threads_cb): Likewise.
5962 * i386bsd-nat.c (i386bsd_supply_gregset): Cast gregs to char *.
5963 (i386bsd_collect_gregset): Likewise.
5964 (i386bsd_fetch_inferior_registers): Change xstateregs to void *.
5965 (i386bsd_store_inferior_registers): Likewise.
5966
5967 2016-04-19 John Baldwin <jhb@FreeBSD.org>
5968
5969 * main.c (setup_alternate_signal_stack): Cast to char *.
5970
5971 2016-04-19 Doug Evans <xdje42@gmail.com>
5972
5973 * symmisc.c (dump_symtab_1, dump_symtab): Delete arg objfile.
5974 All callers updated.
5975
5976 2016-04-19 Doug Evans <xdje42@gmail.com>
5977
5978 PR gdb/17911
5979 * source.c (is_regular_file): New arg errno_ptr.
5980 All callers updated.
5981
5982 2016-04-19 Andreas Arnez <arnez@linux.vnet.ibm.com>
5983
5984 * linux-record.c (record_linux_system_call): Merge handling for
5985 readlink/recv/read and pipe/pipe2.
5986
5987 2016-04-14 Walfred Tedeschi <walfred.tedeschi@intel.com>
5988
5989 * features/i386/amd64-mpx-linux.xml: Remove AVX feature.
5990 * features/i386/amd64-mpx.xml: Remove AVX feature.
5991 * features/i386/i386-mpx-linux.xml: Remove AVX feature.
5992 * features/i386/i386-mpx.xml: Remove AVX feature.
5993 * features/i386/amd64-mpx-linux.c: Regenerate.
5994 * features/i386/amd64-mpx.c: Regenerate.
5995 * features/i386/i386-mpx-linux.c: Regenerate.
5996 * features/i386/i386-mpx.c: Regenerate.
5997 * regformats/i386/amd64-mpx-linux.dat: Regenerate.
5998 * regformats/i386/amd64-mpx.dat: Regenerate.
5999 * regformats/i386/i386-mpx-linux.dat: Regenerate.
6000 * regformats/i386/i386-mpx.dat: Regenerate.
6001
6002 2016-04-16 Walfred Tedeschi <walfred.tedeschi@intel.com>
6003
6004 * amd64-linux-tdep.c (features/i386/amd64-avx-mpx-linux.c):
6005 New include.
6006 (amd64_linux_core_read_description): Add case for
6007 X86_XSTATE_AVX_MPX_MASK.
6008 (_initialize_amd64_linux_tdep): Call initialize_tdesc_amd64_avx_mpx_linux.
6009 * amd64-linux-tdep.h (tdesc_amd64_avx_mpx_linux): New definition.
6010 * amd64-tdep.c (features/i386/amd64-avx-mpx.c): New include.
6011 (amd64_target_description): Add case for X86_XSTATE_AVX_MPX_MASK.
6012 (_initialize_amd64_tdep): Call initialize_tdesc_amd64_avx_mpx.
6013 * common/x86-xstate.h (X86_XSTATE_MPX_MASK): Remove AVX bits.
6014 (X86_XSTATE_AVX_MPX_MASK): New case.
6015 * features/Makefile (i386/i386-avx-mpx, i386/i386-avx-mpx-linux)
6016 (i386/amd64-avx-mpx, i386/amd64-avx-mpx-linux): New rules.
6017 (i386/i386-avx-mpx-expedite, i386/i386-avx-mpx-linux-expedite)
6018 (i386/amd64-avx-mpx-expedite, i386/amd64-avx-mpx-linux-expedite):
6019 New expedites.
6020 * i386-linux-tdep.c (features/i386/i386-avx-mpx-linux.c): New
6021 include.
6022 (i386_linux_core_read_description): Add case
6023 X86_XSTATE_AVX_MPX_MASK.
6024 (_initialize_i386_linux_tdep): Call
6025 initialize_tdesc_i386_avx_mpx_linux.
6026 * i386-linux-tdep.h (tdesc_i386_avx_mpx_linux): New include.
6027 * i386-tdep.c (features/i386/i386-avx-mpx.c): New include.
6028 (i386_target_description): Add case for X86_XSTATE_AVX_MPX_MASK.
6029 * x86-linux-nat.c (x86_linux_read_description): Add case for
6030 X86_XSTATE_AVX_MPX_MASK.
6031 * features/i386/amd64-avx-mpx-linux.xml: New file.
6032 * features/i386/i386-avx-mpx-linux.xml: New file.
6033 * features/i386/i386-avx-mpx.xml: New file.
6034 * features/i386/amd64-avx-mpx.xml: New file.
6035 * features/i386/amd64-avx-mpx-linux.c: Generated.
6036 * features/i386/amd64-avx-mpx.c: Generated.
6037 * features/i386/i386-avx-mpx-linux.c: Generated.
6038 * features/i386/i386-avx-mpx.c: Generated.
6039 * regformats/i386/amd64-avx-mpx-linux.dat: Generated.
6040 * regformats/i386/amd64-avx-mpx.dat: Generated.
6041 * regformats/i386/i386-avx-mpx-linux.dat: Generated.
6042 * regformats/i386/i386-avx-mpx.dat: Generated.
6043
6044 2016-04-18 Pedro Alves <palves@redhat.com>
6045
6046 * ptrace.m4 (GDB_AC_PTRACE): Don't run tests in C++ mode.
6047 * configure: Regenerate.
6048
6049 2016-04-18 Martin Galvan <martin.galvan@tallertechnologies.com>
6050
6051 * valops.c (value_addr): For C++ references, set the copied value's
6052 enclosing_type as well.
6053
6054 2016-04-18 Yao Qi <yao.qi@linaro.org>
6055
6056 Revert:
6057 2016-04-15 Yao Qi <yao.qi@linaro.org>
6058
6059 * arm-tdep.c (thumb_stack_frame_destroyed_p): Return zero if
6060 PC is far from the end of function.
6061
6062 2016-04-16 Pedro Alves <palves@redhat.com>
6063
6064 * ada-exp.y (yydefred): Define as ada_yydefred.
6065
6066 2016-04-15 Pedro Alves <palves@redhat.com>
6067
6068 * ada-lang.c (ada_lookup_struct_elt_type): Constify 'type_str' and
6069 'name_str' locals.
6070
6071 2016-04-15 Pedro Alves <palves@redhat.com>
6072
6073 * btrace.c (pt_btrace_insn_flags): Change return type to
6074 btrace_insn_flags. Use btrace_insn_flags for local.
6075
6076 2016-04-15 Pedro Alves <palves@redhat.com>
6077
6078 * nat/linux-ptrace.h [__mips__] (GDB_ARCH_IS_TRAP_BRKPT): Also
6079 accept TRAP_BRKPT.
6080 [__mips__] (GDB_ARCH_IS_TRAP_HWBKPT): Also accept TRAP_HWBKPT.
6081
6082 2016-04-15 Yao Qi <yao.qi@linaro.org>
6083
6084 * arm-tdep.c (thumb_stack_frame_destroyed_p): Return zero if
6085 PC is far from the end of function.
6086
6087 2016-04-14 Pedro Alves <palves@redhat.com>
6088
6089 * cli/cli-cmds.c (alias_usage_error): New function.
6090 (alias_command): Use it.
6091 * ctf.c (ctf_save_metadata_header): Inline metadata_fmt local in
6092 ctf_save_write_metadata call.
6093
6094 2016-04-14 Pedro Alves <palves@redhat.com>
6095
6096 * ada-typeprint.c (print_fixed_point_type): Don't pass float as
6097 argument to function expecting LONGEST.
6098 * value.c (unpack_long): Add casts to LONGEST.
6099
6100 2016-04-13 Luis Machado <lgustavo@codesourcery.com>
6101
6102 * exec.c (exec_file_locate_attach): Guard a couple functions
6103 that can throw errors.
6104 (exception_print_same): New helper function.
6105
6106 2016-04-13 Pedro Alves <palves@redhat.com>
6107
6108 PR remote/19840
6109 * remote.c (struct remote_state) <last_resume_exec_dir>: New
6110 field.
6111 (new_remote_state): Default last_resume_exec_dir to EXEC_FORWARD.
6112 (remote_open_1): Reset last_resume_exec_dir to EXEC_FORWARD.
6113 (remote_resume): Store the last execution direction.
6114 (remote_execution_direction): New function.
6115 (init_remote_ops): Install it as to_execution_direction target_ops
6116 method.
6117
6118 2016-04-12 Pedro Alves <palves@redhat.com>
6119
6120 * common/common-exceptions.h (GDB_XCPT_TRY): Update comment.
6121 [__cplusplus] (GDB_XCPT): Define as GDB_XCPT_TRY.
6122
6123 2016-04-12 Pedro Alves <palves@redhat.com>
6124
6125 * common/common-exceptions.c (struct catcher) <buf>: Now a
6126 'jmp_buf' instead of SIGJMP_BUF.
6127 (exceptions_state_mc_init): Change return type to 'jmp_buf'.
6128 (throw_exception): Use longjmp instead of SIGLONGJMP.
6129 * common/common-exceptions.h: Include <setjmp.h> instead of
6130 "gdb_setjmp.h".
6131 (exceptions_state_mc_init): Change return type to 'jmp_buf'.
6132 [GDB_XCPT == GDB_XCPT_SJMP] (TRY): Use setjmp instead of
6133 SIGSETJMP.
6134 * cp-support.c: Include "gdb_setjmp.h".
6135
6136 2016-04-12 Pedro Alves <palves@redhat.com>
6137
6138 * common/common-exceptions.c (exception_rethrow): Remove
6139 prepare_to_throw_exception call.
6140 * common/common-exceptions.h (prepare_to_throw_exception): Delete
6141 declaration.
6142 * exceptions.c (prepare_to_throw_exception): Delete.
6143
6144 2016-04-12 Pedro Alves <palves@redhat.com>
6145
6146 * target.c (target_check_pending_interrupt): Delete.
6147 * target.h (struct target_ops) <to_check_pending_interrupt>:
6148 Remove method.
6149 (target_check_pending_interrupt): Remove declaration.
6150 * target-delegates.c: Regenerate.
6151
6152 2016-04-12 Pedro Alves <palves@redhat.com>
6153
6154 * defs.h: Update comments on SIGINT handling.
6155 (immediate_quit): Delete declaration.
6156 * event-loop.c (call_async_signal_handler): Delete.
6157 * event-loop.h (call_async_signal_handler): Delete declaration.
6158 (mark_async_signal_handler): Update comments.
6159 (gdb_call_async_signal_handler): Delete declaration.
6160 * event-top.c (handle_sigint): Call mark_async_signal_handler
6161 instead of gdb_call_async_signal_handler.
6162 * exceptions.c (prepare_to_throw_exception): Remove reference to
6163 immediate_quit.
6164 (exception_fprintf): Remove comments about immediate_quit.
6165 * mingw-hdep.c (sigint_event, sigint_handler): Delete.
6166 (gdb_select): Don't wait on sigint_event.
6167 (gdb_call_async_signal_handler): Delete.
6168 (_initialize_mingw_hdep): Delete.
6169 * posix-hdep.c (gdb_call_async_signal_handler): Delete.
6170 * utils.c (immediate_quit): Delete.
6171
6172 2016-04-12 Pedro Alves <palves@redhat.com>
6173
6174 * defs.h (quit_handler_ftype, quit_handler)
6175 (make_cleanup_override_quit_handler, default_quit_handler): New.
6176 (QUIT): Adjust comments.
6177 * event-top.c (default_quit_handler): New function.
6178 (quit_handler): New global.
6179 (struct quit_handler_cleanup_data): New.
6180 (restore_quit_handler, restore_quit_handler_dtor)
6181 (make_cleanup_override_quit_handler): New.
6182 (async_request_quit): Call QUIT.
6183 * remote.c (struct remote_state) <got_ctrlc_during_io>: New field.
6184 (async_sigint_remote_twice_token, async_sigint_remote_token):
6185 Delete.
6186 (remote_close): Update comments.
6187 (remote_start_remote): Don't set immediate_quit. Set starting_up
6188 earlier.
6189 (remote_serial_quit_handler, remote_unpush_and_throw): New
6190 functions.
6191 (remote_open_1): Clear got_ctrlc_during_io. Set
6192 remote_async_terminal_ours_p unconditionally.
6193 (async_initialize_sigint_signal_handler)
6194 (async_handle_remote_sigint, async_handle_remote_sigint_twice)
6195 (remote_check_pending_interrupt, async_remote_interrupt)
6196 (async_remote_interrupt_twice)
6197 (async_cleanup_sigint_signal_handler, ofunc)
6198 (sync_remote_interrupt, sync_remote_interrupt_twice): Delete.
6199 (remote_terminal_inferior, remote_terminal_ours): Remove async
6200 checks.
6201 (remote_wait_as): Don't install a SIGINT handler in sync mode.
6202 (readchar, remote_serial_write): Override the quit handler with
6203 remote_serial_quit_handler.
6204 (getpkt_or_notif_sane_1): Don't call QUIT.
6205 (initialize_remote_ops): Don't install
6206 remote_check_pending_interrupt.
6207 (_initialize_remote): Don't create async_sigint_remote_token and
6208 async_sigint_remote_twice_token.
6209 * ser-base.c (ser_base_wait_for): Call QUIT and use
6210 interruptible_select.
6211 (ser_base_write): Call QUIT.
6212 * ser-go32.c (dos_readchar, dos_write): Call QUIT.
6213 * ser-unix.c (wait_for): Don't use VTIME. Always take the
6214 gdb_select path, but call QUIT and interruptible_select.
6215 * utils.c (maybe_quit): Call the current quit handler. Don't call
6216 target_check_pending_interrupt.
6217 (defaulted_query, prompt_for_continue): Override the quit handler
6218 with the default quit handler.
6219
6220 2016-04-12 Pedro Alves <palves@redhat.com>
6221
6222 * tui/tui-hooks.c (tui_target_has_run): Delete.
6223 (tui_about_to_proceed): Delete.
6224 (tui_about_to_proceed_observer): Delete.
6225 (tui_install_hooks, tui_remove_hooks): Don't install/remove an
6226 about_to_proceed observer.
6227
6228 2016-04-12 Pedro Alves <palves@redhat.com>
6229
6230 * mi/mi-interp.c (mi_new_thread): Put
6231 target_terminal_ours_for_output in effect while outputting.
6232 (mi_thread_exit): Use target_terminal_ours_for_output instead of
6233 target_terminal_ours.
6234 (mi_record_changed, mi_inferior_added, mi_inferior_appeared)
6235 (mi_inferior_exit, mi_inferior_removed, mi_traceframe_changed)
6236 (mi_tsv_created, mi_tsv_deleted, mi_tsv_modified)
6237 (mi_breakpoint_created, mi_breakpoint_deleted)
6238 (mi_breakpoint_modified, mi_solib_loaded, mi_solib_unloaded)
6239 (mi_command_param_changed, mi_memory_changed)
6240 (report_initial_inferior): Use target_terminal_ours_for_output
6241 instead of target_terminal_ours. Restore terminal settings.
6242 * mi/mi-main.c (mi_execute_command): Use
6243 target_terminal_ours_for_output instead of target_terminal_ours.
6244 Restore terminal settings.
6245
6246 2016-04-12 Pedro Alves <palves@redhat.com>
6247
6248 PR gdb/19828
6249 * gnu-nat.c (inf_validate_task_sc): Don't call
6250 target_terminal_ours / target_terminal_inferior around query.
6251 * i386-tdep.c (i386_record_lea_modrm, i386_process_record): Don't
6252 call target_terminal_ours / target_terminal_inferior around
6253 yquery.
6254 * linux-record.c (record_linux_system_call): Don't call
6255 target_terminal_ours / target_terminal_inferior around yquery.
6256 * nto-procfs.c (interrupt_query): Don't call target_terminal_ours
6257 / target_terminal_inferior around query.
6258 * record-full.c (record_full_check_insn_num): Remove
6259 'set_terminal' parameter. Don't call target_terminal_ours /
6260 target_terminal_inferior around query.
6261 (record_full_message, record_full_registers_change)
6262 (record_full_xfer_partial): Adjust.
6263 * remote.c (interrupt_query): Don't call target_terminal_ours /
6264 target_terminal_inferior around query.
6265 * utils.c (defaulted_query): Install cleanup to restore target
6266 terminal. Put target_terminal_ours_for_output in effect while
6267 defaulted producing, and target_terminal_ours in in effect while
6268 handling input.
6269 (prompt_for_continue): Install cleanup to restore target terminal.
6270 Put target_terminal_ours in in effect while handling input.
6271
6272 2016-04-12 Pedro Alves <palves@redhat.com>
6273
6274 * utils.c (defaulted_query, prompt_for_continue): Free temporary
6275 strings with cleanups, instead of xfree.
6276
6277 2016-04-12 Pedro Alves <palves@redhat.com>
6278
6279 * utils.c (vwarning, internal_vproblem): Use
6280 make_cleanup_restore_target_terminal and
6281 target_terminal_ours_for_output.
6282
6283 2016-04-12 Pedro Alves <palves@redhat.com>
6284
6285 * infcmd.c (post_create_inferior, prepare_one_step): Use
6286 target_terminal_ours_for_output instead of target_terminal_ours.
6287
6288 2016-04-12 Pedro Alves <palves@redhat.com>
6289
6290 * exceptions.c (print_flush): Use target_terminal_ours_for_output
6291 instead of target_terminal_ours, and restore target terminal with
6292 a cleanup.
6293
6294 2016-04-12 Pedro Alves <palves@redhat.com>
6295
6296 * cp-support.c (gdb_demangle): Use target_terminal_ours_for_output
6297 instead of target_terminal_ours, and restore target terminal with
6298 a cleanup.
6299
6300 2016-04-12 Pedro Alves <palves@redhat.com>
6301
6302 * ada-lang.c (type_as_string, type_as_string_and_cleanup): New
6303 functions.
6304 (ada_lookup_struct_elt_type): Use type_as_string_and_cleanup.
6305
6306 2016-04-12 Pedro Alves <palves@redhat.com>
6307
6308 * ser-base.c (fd_event): Retry read_prim on EINTR.
6309 (do_ser_base_readchar): Retry read_prim on EINTR.
6310 (ser_base_write): Retry write_prim on EINTR.
6311 * ser-unix.c (ser_unix_read_prim): Don't retry on EINTR here.
6312 (ser_unix_write_prim): Remove comment.
6313
6314 2016-04-12 Pedro Alves <palves@redhat.com>
6315
6316 * remote.c (remote_pass_ctrlc): New function.
6317 (init_remote_ops): Install it.
6318 * target.c (target_terminal_inferior): Pass pending Ctrl-C to the
6319 target.
6320 (target_pass_ctrlc, default_target_pass_ctrlc): New functions.
6321 * target.h (struct target_ops) <to_pass_ctrlc>: New method.
6322 (target_pass_ctrlc, default_target_pass_ctrlc): New declarations.
6323 * target-delegates.c: Regenerate.
6324
6325 2016-04-12 Pedro Alves <palves@redhat.com>
6326
6327 * infcmd.c (interrupt_target_1): Call target_stop is in non-stop
6328 mode.
6329 * linux-nat.c (linux_nat_interrupt): Delete.
6330 (linux_nat_add_target): Don't install linux_nat_interrupt.
6331 * remote.c (remote_interrupt_ns): Change return type to void.
6332 Throw error if interrupting the target is not supported.
6333 (remote_interrupt): Don't call the remote_stop_ns/remote_stop_as.
6334
6335 2016-04-12 Pedro Alves <palves@redhat.com>
6336
6337 * defs.h (clear_quit_flag): Remove declaration.
6338 * extension-priv.h (struct extension_language_ops)
6339 <clear_quit_flag>: Remove field and update comments.
6340 * extension.c (clear_quit_flag): Delete.
6341 * guile/guile.c (guile_extension_ops): Adjust.
6342 * python/python.c (python_extension_ops): Adjust.
6343 (gdbpy_clear_quit_flag): Delete.
6344
6345 2016-04-12 Pedro Alves <palves@redhat.com>
6346
6347 * main.c (captured_main): Don't clear the quit flag.
6348
6349 2016-04-12 Pedro Alves <palves@redhat.com>
6350
6351 * exceptions.c (prepare_to_throw_exception): Don't clear the quit
6352 flag.
6353
6354 2016-04-12 Pedro Alves <palves@redhat.com>
6355
6356 * event-top.c (command_handler): Don't call clear_quit_flag.
6357
6358 2016-04-12 Pedro Alves <palves@redhat.com>
6359
6360 * remote-sim.c (gdb_os_poll_quit): Don't call clear_quit_flag.
6361 * remote.c (remote_wait_as): Don't call clear_quit_flag.
6362
6363 2016-04-12 Pedro Alves <palves@redhat.com>
6364
6365 * python/python.c: Include "ser-event.h".
6366 (gdbpy_event_fds): Delete.
6367 (gdbpy_serial_event): New.
6368 (gdbpy_run_events): Change prototype. Use serial_event_clear
6369 instead of serial_readchar.
6370 (gdbpy_post_event): Use serial_event_set instead of serial_write.
6371 (gdbpy_initialize_events): Use make_serial_event instead of
6372 serial_pipe.
6373
6374 2016-04-12 Pedro Alves <palves@redhat.com>
6375
6376 * defs.h: Extend QUIT-related comments to mention
6377 interruptible_select.
6378 (quit_serial_event_set, quit_serial_event_clear): Declare.
6379 * event-top.c: Include "ser-event.h" and "gdb_select.h".
6380 (quit_serial_event): New global.
6381 (async_init_signals): Make quit_serial_event.
6382 (quit_serial_event_set, quit_serial_event_clear)
6383 (quit_serial_event_fd, interruptible_select): New functions.
6384 * extension.c (set_quit_flag): Set the quit serial event.
6385 (check_quit_flag): Clear the quit serial event.
6386 * gdb_select.h (interruptible_select): New declaration.
6387 * guile/scm-ports.c (ioscm_input_waiting): Use
6388 interruptible_select instead of gdb_select.
6389 * top.c (gdb_readline_no_editing): Likewise.
6390 * ui-file.c (stdio_file_read): Likewise.
6391
6392 2016-04-12 Pedro Alves <palves@redhat.com>
6393
6394 * event-loop.c: Include "ser-event.h".
6395 (async_signal_handlers_serial_event): New global.
6396 (async_signals_handler, initialize_async_signal_handlers): New
6397 functions.
6398 (mark_async_signal_handler): Set
6399 async_signal_handlers_serial_event.
6400 (invoke_async_signal_handlers): Clear
6401 async_signal_handlers_serial_event.
6402 * event-top.c (async_init_signals): Call
6403 initialize_async_signal_handlers.
6404
6405 2016-04-12 Pedro Alves <palves@redhat.com>
6406
6407 * Makefile.in (SFILES): Add ser-event.c.
6408 (HFILES_NO_SRCDIR): Add ser-event.h.
6409 (COMMON_OBS): Add ser-event.o.
6410 * ser-event.c, ser-event.h: New files.
6411 * serial.c (new_serial): New function, factored out from
6412 (serial_fdopen_ops): ... this.
6413 (serial_open_ops_1): New function, factored out from
6414 (serial_open): ... this.
6415 (serial_open_ops): New function.
6416 * serial.h (struct serial): Forware declare.
6417 (serial_open_ops): New declaration.
6418
6419 2016-04-12 Pedro Alves <palves@redhat.com>
6420
6421 * serial.c (serial_open, serial_fdopen_ops, do_serial_close):
6422 Remove references to name.
6423 * serial.h (struct serial) <name>: Delete.
6424
6425 2016-04-12 Pedro Alves <palves@redhat.com>
6426
6427 * remote-fileio.c (sigint_fileio_token, remote_fio_no_longjmp):
6428 Delete.
6429 (async_remote_fileio_interrupt): Delete.
6430 (remote_fileio_ctrl_c_signal_handler): Don't call the async signal
6431 handler. Instead just always set the ctrl_c flag.
6432 (remote_fileio_reply): Clear remote_fio_ctrl_c_flag before
6433 re-enabling the SIGINT handler.
6434 (remote_fileio_func_open, remote_fileio_func_close)
6435 (remote_fileio_func_read, remote_fileio_func_write)
6436 (remote_fileio_func_lseek, remote_fileio_func_rename)
6437 (remote_fileio_func_unlink, remote_fileio_func_stat)
6438 (remote_fileio_func_fstat, remote_fileio_func_gettimeofday)
6439 (remote_fileio_func_isatty, remote_fileio_func_system)
6440 (remote_fileio_request): Remove references to
6441 remote_fio_no_longjmp.
6442 (initialize_remote_fileio): Don't create an async signal handler.
6443
6444 2016-04-12 Pedro Alves <palves@redhat.com>
6445
6446 * event-top.c (stdin_event_handler): Call QUIT;
6447 (prompt_for_continue): Don't run with immediate_quit set.
6448
6449 2016-04-12 Pedro Alves <palves@redhat.com>
6450
6451 * tui/tui-io.c (tui_redisplay_readline): Check
6452 gdb_in_secondary_prompt_p instead of immediate_quit.
6453 * tui/tui.c: Include top.h.
6454 (tui_rl_startup_hook): Check gdb_in_secondary_prompt_p instead of
6455 immediate_quit.
6456
6457 2016-04-12 Pedro Alves <palves@redhat.com>
6458
6459 * top.c (read_command_file): Inline command_loop here.
6460 (command_loop): Delete.
6461
6462 2016-04-12 Pedro Alves <palves@redhat.com>
6463
6464 * top.c: Include "gdb_select.h".
6465 (gdb_readline_no_editing): Wait for input with gdb_select instead
6466 of blocking in fgetc.
6467 (command_line_input): Don't set immediate_quit.
6468
6469 2016-04-08 Martin Galvan <martin.galvan@tallertechnologies.com>
6470
6471 * value.c (value_next): Make pass-by-reference parameters const-correct.
6472 (value_parent): Likewise.
6473 (value_enclosing_type): Likewise.
6474 (value_lazy): Likewise.
6475 (value_stack): Likewise.
6476 (value_embedded_offset): Likewise.
6477 (value_pointed_to_offset): Likewise.
6478 (value_raw_address): Likewise.
6479 (deprecated_value_modifiable): Likewise.
6480 (value_free_to_mark): Likewise.
6481 (value_release_to_mark): Likewise.
6482 (internalvar_name): Likewise.
6483 (readjust_indirect_value_type): Likewise.
6484 (value_initialized): Likewise.
6485 * value.h (value_next): Likewise.
6486 (value_parent): Likewise.
6487 (value_enclosing_type): Likewise.
6488 (value_lazy): Likewise.
6489 (value_stack): Likewise.
6490 (value_embedded_offset): Likewise.
6491 (value_pointed_to_offset): Likewise.
6492 (value_raw_address): Likewise.
6493 (deprecated_value_modifiable): Likewise.
6494 (value_free_to_mark): Likewise.
6495 (value_release_to_mark): Likewise.
6496 (internalvar_name): Likewise.
6497 (readjust_indirect_value_type): Likewise.
6498 (value_initialized): Likewise.
6499
6500 2016-04-07 Yao Qi <yao.qi@linaro.org>
6501
6502 * record-full.c (record_full_insert_breakpoint): Return
6503 early if entry on the address is found in
6504 record_full_breakpoints.
6505
6506 2016-04-07 Yao Qi <yao.qi@linaro.org>
6507
6508 * record-full.c (record_full_insert_breakpoint): Set
6509 bp_tgt->reqstd_address and bp_tgt->placed_size.
6510
6511 2016-04-06 Don Breazeal <donb@codesourcery.com>
6512
6513 * value.c (value_actual_type): Don't try to get rtti type
6514 of the value if it has been optimized out.
6515 (value_optimized_out): If a memory access error occurs,
6516 just check vaue->optimized_out.
6517
6518 2016-04-06 Jan Kratochvil <jan.kratochvil@redhat.com>
6519
6520 Revert the previous commit adding unknown_v_replies_ok.
6521
6522 2016-04-06 Jan Kratochvil <jan.kratochvil@redhat.com>
6523
6524 * remote.c (struct remote_state): New field unknown_v_replies_ok.
6525 (packet_config_support): Read it.
6526 (remote_start_remote): Set it.
6527
6528 2016-04-06 Jan Kratochvil <jan.kratochvil@redhat.com>
6529
6530 * remote.c: Revert check-in by a mistake in the previous commit.
6531
6532 2016-04-06 Jan Kratochvil <jan.kratochvil@redhat.com>
6533 Pedro Alves <palves@redhat.com>
6534
6535 * exec.c (exec_file_locate_attach): Print warning for unsupported
6536 target_pid_to_exec_file.
6537 * symfile-mem.c (add_vsyscall_page): Remove the "file" command
6538 message part.
6539
6540 2016-04-04 Simon Marchi <simon.marchi@ericsson.com>
6541
6542 * cli/cli-decode.c (help_cmd_list): Fix function doc and remove
6543 trailing spaces.
6544
6545 2016-04-01 Artemiy Volkov <artemiyv@acm.org>
6546
6547 PR gdb/19820
6548 * eval.c (evaluate_subexp_standard): Allow TYPE_CODE_ENUM to be
6549 the type of BINOP_REPEAT's second operand.
6550
6551 2016-03-31 Yichao Yu <yyc1992@gmail.com>
6552
6553 PR gdb/19858
6554 * jit.c (jit_breakpoint_re_set_internal): Return 0 if we already
6555 got the breakpoint at the right address.
6556 (jit_inferior_created): New function.
6557 (_initialize_jit): Install jit_inferior_created as
6558 inferior_created observer.
6559
6560 2016-03-31 Marcin Kościelnicki <koriakin@0x04.net>
6561
6562 * NEWS: Mention support for tracepoints on powerpc*-linux.
6563
6564 2016-03-31 Catalin Udma <catalin.udma@freescale.com>
6565
6566 PR python/19743
6567 * python/python.c (execute_gdb_command): Use console uiout
6568 when executing gdb command.
6569 * utils.c (restore_ui_out_closure): New structure.
6570 (do_restore_ui_out): New function.
6571 (make_cleanup_restore_ui_out): Likewise.
6572 * utils.h (make_cleanup_restore_ui_out): Declare.
6573
6574 2016-03-31 Pedro Alves <palves@redhat.com>
6575
6576 * NEWS: Mention that support for "target m32rsdi", "target mips",
6577 "target pmon", "target ddb", "target rockhopper", and "target lsi"
6578 was removed.
6579 * Makefile.in (ALL_TARGET_OBS): Remove remote-m32r-sdi.o and
6580 remote-mips.o.
6581 (ALLDEPFILES): Remove remote-m32r-sdi.c and remote-mips.c.
6582 * configure.tgt: Remove all references to remote-m32r-sdi.o and
6583 remote-mips.o.
6584 * mips-tdep.c (deprecated_mips_set_processor_regs_hack): Delete
6585 function.
6586 * mips-tdep.h (deprecated_mips_set_processor_regs_hack): Delete
6587 declaration.
6588 * remote-m32r-sdi.c, remote-mips.c: Delete files.
6589 * symfile.c (generic_load, generic_load): Remove comments.
6590
6591 2016-03-30 Yao Qi <yao.qi@linaro.org>
6592
6593 * arm-tdep.c (arm_epilogue_frame_this_id): Check 'func' against
6594 0 rather than NULL.
6595
6596 2016-03-30 Yao Qi <yao.qi@linaro.org>
6597
6598 * arm-tdep.c: (arm_make_epilogue_frame_cache): New function.
6599 (arm_epilogue_frame_this_id): New function.
6600 (arm_epilogue_frame_prev_register): New function.
6601 (arm_epilogue_frame_sniffer): New function.
6602 (arm_epilogue_frame_unwind): New.
6603 (arm_gdbarch_init): Append unwinder arm_epilogue_frame_unwind.
6604
6605 2016-03-30 Yao Qi <yao.qi@linaro.org>
6606
6607 * arm-tdep.c (arm_stack_frame_destroyed_p): Rename it ...
6608 (arm_stack_frame_destroyed_p_1): ... here. Don't call
6609 arm_pc_is_thumb.
6610 (arm_stack_frame_destroyed_p): Call
6611 thumb_stack_frame_destroyed_p and
6612 arm_stack_frame_destroyed_p_1.
6613
6614 2016-03-30 Doug Evans <dje@google.com>
6615
6616 * python/py-utils.c (host_string_to_python_string): New function.
6617 * python/python-internal.h (host_string_to_python_string): Declare it.
6618 * python/py-*.c (*): Update all calls to
6619 PyString_Decode (str, strlen (str), host_charset (), NULL);
6620 to use host_string_to_python_string instead.
6621
6622 2016-03-30 Marcin Kościelnicki <koriakin@0x04.net>
6623
6624 * remote.c (remote_check_symbols): Allocate own buffer for reply.
6625
6626 2016-03-29 Max Filippov <jcmvbkbc@gmail.com>
6627
6628 * xtensa-tdep.c (xtensa_frame_cache): Change op1 type to LONGEST.
6629 Use safe_read_memory_integer instead of read_memory_integer.
6630
6631 2016-03-29 Marcin Kościelnicki <koriakin@0x04.net>
6632
6633 * NEWS: Mention support for tracepoints on s390*-linux.
6634
6635 2016-03-29 Don Breazeal <donb@codesourcery.com>
6636
6637 * gdb/value.c (value_actual_type): Fix formatting issue.
6638
6639 2016-03-23 Yao Qi <yao.qi@linaro.org>
6640
6641 * gdbarch.sh (software_single_step): Remove comments.
6642 * gdbarch.h: Regenerated.
6643
6644 2016-03-21 Yao Qi <yao.qi@linaro.org>
6645
6646 * arm-tdep.c (arm_record_media): New.
6647 (arm_record_ld_st_reg_offset): Call arm_record_media.
6648
6649 2016-03-21 Yao Qi <yao.qi@linaro.org>
6650
6651 * arm-linux-tdep.c (arm_canonicalize_syscall): Canonicalize
6652 more syscalls.
6653
6654 2016-03-18 Yao Qi <yao.qi@linaro.org>
6655
6656 * sparc-tdep.c (sparc_software_single_step): Make it static.
6657 * sparc-tdep.h (sparc_software_single_step): Remove declaration.
6658
6659 2016-03-18 Yao Qi <yao.qi@linaro.org>
6660
6661 * spu-tdep.c (spu_software_single_step): Throw error when
6662 target_read_memory fails.
6663
6664 2016-03-17 Jan Kratochvil <jan.kratochvil@redhat.com>
6665
6666 * linux-thread-db.c (check_pid_namespace_match): Extend the message.
6667
6668 2016-03-17 Pedro Alves <palves@redhat.com>
6669 Don Breazeal <donb@codesourcery.com>
6670
6671 PR remote/19496
6672 * infcmd.c (notice_new_inferior): Use the 'leave_running' argument
6673 instead of checking the 'non_stop' global.
6674 * remote.c (remote_add_thread): New parameter 'executing'. Use it
6675 to set the new thread's executing state.
6676 (remote_notice_new_inferior): Rename parameter 'running' to
6677 'executing'. Always set the thread state to THREAD_RUNNING in
6678 non-stop mode, and to THREAD_STOPPED in all-stop mode. Pass
6679 EXECUTING to remote_add_thread and notice_new_inferior.
6680 (remote_update_thread_list): Update to pass executing state, not
6681 running state.
6682
6683 2016-03-17 Andreas Arnez <arnez@linux.vnet.ibm.com>
6684
6685 * syscalls/s390-linux.xml: Add NUMA syscalls and new syscalls up
6686 to 374.
6687 * syscalls/s390x-linux.xml: Likewise.
6688
6689 2016-03-17 Andreas Arnez <arnez@linux.vnet.ibm.com>
6690
6691 * linux-record.c (record_mem_at_reg): New helper function.
6692 (record_linux_system_call): Exploit new helper function where
6693 applicable.
6694
6695 2016-03-17 Andreas Arnez <arnez@linux.vnet.ibm.com>
6696
6697 * linux-record.c: Fix whitespace issues; tabify, remove trailing
6698 spaces.
6699
6700 2016-03-17 Andreas Arnez <arnez@linux.vnet.ibm.com>
6701
6702 * linux-record.c (record_linux_system_call): Add missing return
6703 statements to handling of pipe and pipe2 syscalls.
6704
6705 2016-03-16 Doug Evans <dje@google.com>
6706
6707 * xml-tdesc.c (tdesc_start_enum): Fix c++ build.
6708
6709 2016-03-16 Yao Qi <yao.qi@linaro.org>
6710
6711 * arm-linux-tdep.c (arm_linux_init_abi): Fix
6712 arm_linux_record_tdep.arg1, arm_linux_record_tdep.arg2 and
6713 arm_linux_record_tdep.arg3. Set arm_linux_record_tdep.arg4,
6714 arm_linux_record_tdep.arg5, arm_linux_record_tdep.arg6, and
6715 arm_linux_record_tdep.arg7.
6716
6717 2016-03-15 Keith Seitz <keiths@redhat.com>
6718
6719 PR breakpoints/18303
6720 * cp-namespace.c (cp_lookup_bare_symbol): Change assertion to
6721 look for "::" instead of simply ":".
6722 (cp_search_static_and_baseclasses): Return null_block_symbol for
6723 malformed input.
6724 Remove assertions.
6725 * cp-support.c (cp_find_first_component_aux): Do not return
6726 a prefix length for ':' unless the next character is also ':'.
6727
6728 2016-03-15 Doug Evans <dje@google.com>
6729
6730 * features/aarch64-core.xml (cpsr_flags): New flags type.
6731 (cpsr): Use it.
6732 * features/aarch64.c: Regenerate.
6733
6734 2016-03-15 Doug Evans <dje@google.com>
6735
6736 * features/i386/32bit-core.xml (i386_eflags): Remove "end" spec.
6737 * features/i386/32bit-sse.xml (i386_eflags): Ditto.
6738 * features/i386/64bit-core.xml (i386_eflags): Ditto.
6739 * features/i386/64bit-sse.xml (i386_eflags): Ditto.
6740 * features/i386/x32-core.xml (i386_eflags): Ditto.
6741
6742 2016-03-15 Doug Evans <dje@google.com>
6743 Wei-cheng Wang <cole945@gmail.com>
6744
6745 Extend flags to support multibit and enum bitfields.
6746 * NEWS: Document new features.
6747 * c-typeprint.c (c_type_print_varspec_prefix): Handle TYPE_CODE_FLAGS.
6748 (c_type_print_varspec_suffix, c_type_print_base): Ditto.
6749 * gdbtypes.c (arch_flags_type): Don't assume all fields are one bit.
6750 (append_flags_type_field): New function.
6751 (append_flags_type_flag): Call it.
6752 * gdbtypes.h (append_flags_type_field): Declare.
6753 * target-descriptions.c (struct tdesc_type_flag): Delete.
6754 (enum tdesc_type_kind) <TDESC_TYPE_BOOL>: New enum value.
6755 (enum tdesc_type_kind) <TDESC_TYPE_ENUM>: Ditto.
6756 (struct tdesc_type) <u.f>: Delete.
6757 (tdesc_predefined_types): Add "bool".
6758 (tdesc_predefined_type): New function.
6759 (tdesc_gdb_type): Handle TDESC_TYPE_BOOL, TDESC_TYPE_ENUM.
6760 Update TDESC_TYPE_FLAGS support.
6761 (tdesc_free_type): Handle TDESC_TYPE_ENUM. Update TDESC_TYPE_FLAGS.
6762 (tdesc_create_flags): Update.
6763 (tdesc_create_enum): New function.
6764 (tdesc_add_field): Initialize start,end to -1.
6765 (tdesc_add_typed_bitfield): New function.
6766 (tdesc_add_bitfield): Call it.
6767 (tdesc_add_flag): Allow TDESC_TYPE_STRUCT. Update.
6768 (tdesc_add_enum_value): New function.
6769 (maint_print_c_tdesc_cmd): Fold TDESC_TYPE_FLAGS support into
6770 TDESC_TYPE_STRUCT. Handle TDESC_TYPE_ENUM.
6771 * target-descriptions.h (tdesc_create_enum): Declare.
6772 (tdesc_add_typed_bitfield, tdesc_add_enum_value): Declare.
6773 * valprint.c (generic_val_print_enum_1): New function.
6774 (generic_val_print_enum): Call it.
6775 (val_print_type_code_flags): Make static. Handle multibit bitfields
6776 and enum bitfields.
6777 * valprint.h (val_print_type_code_flags): Delete.
6778 * xml-tdesc.c (struct tdesc_parsing_data) <current_type_is_flags>:
6779 Delete. All uses removed.
6780 (tdesc_start_enum): New function.
6781 (tdesc_start_field): Handle multibit and enum bitfields.
6782 (tdesc_start_enum_value): New function.
6783 (enum_value_attributes, enum_children, enum_attributes): New static
6784 globals.
6785 (feature_children): Add "enum".
6786 * features/gdb-target.dtd (enum, evalue): New elements.
6787
6788 2016-03-15 Doug Evans <dje@google.com>
6789
6790 * target-descriptions.c (struct tdesc_type) <u.u.size>: Change type
6791 from LONGEST to int.
6792 (struct tdesc_type) <u.f.size>: Ditto.
6793 (tdesc_set_struct_size): Change type of "size" arg from LONGEST
6794 to int. Add assertion size > 0.
6795 (tdesc_create_flags): Ditto.
6796 * target-descriptions.h (tdesc_set_struct_size): Update.
6797 (tdesc_create_flags): Update.
6798 * xml-tdesc.c (MAX_FIELD_SIZE, MAX_FIELD_BITSIZE): New macros.
6799 (MAX_VECTOR_SIZE): New macro.
6800 (tdesc_start_struct): Catch conversion errors from LONGEST to int.
6801 (tdesc_start_flags, tdesc_start_field, tdesc_start_vector): Ditto.
6802
6803 2016-03-15 Doug Evans <dje@google.com>
6804
6805 * target-descriptions.c (maint_print_c_tdesc_cmd): Use "type" for
6806 TYPE_CODE_FLAGS instead of "field_type", for consistency.
6807 * features/i386/amd64-avx-linux.c: Regenerate.
6808 * features/i386/amd64-avx.c: Regenerate.
6809 * features/i386/amd64-avx512-linux.c: Regenerate.
6810 * features/i386/amd64-avx512.c: Regenerate.
6811 * features/i386/amd64-linux.c: Regenerate.
6812 * features/i386/amd64-mpx-linux.c: Regenerate.
6813 * features/i386/amd64-mpx.c: Regenerate.
6814 * features/i386/amd64.c: Regenerate.
6815 * features/i386/i386-avx-linux.c: Regenerate.
6816 * features/i386/i386-avx.c: Regenerate.
6817 * features/i386/i386-avx512-linux.c: Regenerate.
6818 * features/i386/i386-avx512.c: Regenerate.
6819 * features/i386/i386-linux.c: Regenerate.
6820 * features/i386/i386-mmx-linux.c: Regenerate.
6821 * features/i386/i386-mmx.c: Regenerate.
6822 * features/i386/i386-mpx-linux.c: Regenerate.
6823 * features/i386/i386-mpx.c: Regenerate.
6824 * features/i386/i386.c: Regenerate.
6825 * features/i386/x32-avx-linux.c: Regenerate.
6826 * features/i386/x32-avx.c: Regenerate.
6827 * features/i386/x32-avx512-linux.c: Regenerate.
6828 * features/i386/x32-avx512.c: Regenerate.
6829 * features/i386/x32-linux.c: Regenerate.
6830 * features/i386/x32.c: Regenerate.
6831
6832 2016-03-15 Pedro Alves <palves@redhat.com>
6833
6834 PR gdb/19676
6835 * linux-thread-db.c (try_thread_db_load_1): Leave
6836 info->td_ta_thr_iter_p NULL iff debugging a live process and we
6837 have /proc access.
6838 (find_new_threads_once): Assert that we have a non-NULL
6839 info->td_ta_thr_iter_p instead of checking whether the target has
6840 execution.
6841
6842 2016-03-15 Pedro Alves <palves@redhat.com>
6843
6844 PR gdb/19676
6845 * infrun.c (displaced_step_prepare): Also disable displaced
6846 stepping on NOT_SUPPORTED_ERROR.
6847 * linux-tdep.c (linux_displaced_step_location): If reading auxv
6848 fails, throw NOT_SUPPORTED_ERROR instead of generic error.
6849
6850 2016-03-13 Marcin Kościelnicki <koriakin@0x04.net>
6851
6852 * s390-linux-tdep.c (s390_gen_return_address): New function.
6853 (s390_gdbarch_init): Fill gen_return_address hook.
6854
6855 2016-03-11 Andrew Burgess <andrew.burgess@embecosm.com>
6856
6857 * symmisc.c (maintenance_info_line_tables): New function.
6858 (maintenance_print_one_line_table): New function.
6859 (_initialize_symmisc): Register 'maint info line-table' command.
6860 * NEWS: Mention new command.
6861
6862 2016-03-11 Marcin Kościelnicki <koriakin@0x04.net>
6863
6864 * s390-linux-tdep.c (s390_ax_pseudo_register_collect): New function.
6865 (s390_ax_pseudo_register_push_stack): New function.
6866 (s390_gdbarch_init): Fill ax_pseudo_register_collect and
6867 ax_pseudo_register_push_stack hooks.
6868
6869 2016-03-10 Simon Marchi <simon.marchi@polymtl.ca>
6870
6871 * data-directory/Makefile.in (PYTHON_FILE_LIST): Install
6872 gdb/function/as_string.py.
6873 * python/lib/gdb/function/as_string.py: New file.
6874 * NEWS: Mention the new $_as_string function.
6875
6876 2016-03-09 Jose E. Marchesi <jose.marchesi@oracle.com>
6877
6878 * target.h: Fix doc string of target_can_use_hardware_watchpoint.
6879
6880 2016-03-09 Pedro Alves <palves@redhat.com>
6881
6882 * event-top.c (more_to_come): Delete.
6883 (struct readline_input_state): Delete.
6884 (readline_input_state): Delete.
6885 (get_command_line_buffer): New function.
6886 (command_handler): Update comments. Don't handle NULL commands
6887 here. Do not execute commented lines.
6888 (command_line_append_input_line): New function.
6889 (handle_line_of_input): New function, partly based on
6890 command_line_handler and command_line_input.
6891 (command_line_handler): Rewrite.
6892 * event-top.h (command_handler): New declaration.
6893 (command_loop): Defer command execution to command_handler.
6894 (command_line_input): Update comments. Simplify, using struct
6895 buffer and handle_line_of_input.
6896 * top.h (struct buffer): New forward declaration.
6897 (handle_line_of_input): New declaration.
6898
6899 2016-03-09 Pedro Alves <palves@redhat.com>
6900
6901 * event-top.c (command_line_handler): Use xfree + xstrdup instead
6902 of xrealloc + strcpy.
6903 * main.c (captured_main): Use xstrdup instead of xmalloc plus
6904 manual clear.
6905 * top.c (saved_command_line): Rewrite comment.
6906 (saved_command_line_size): Delete.
6907 (command_line_input): Use xfree + xstrdup instead of xrealloc +
6908 strcpy.
6909 * top.h (saved_command_line_size): Delete declaration.
6910
6911 2016-03-09 Pedro Alves <palves@redhat.com>
6912
6913 * event-top.c: Include buffer.h.
6914 (gdb_readline_no_editing_callback): Use struct buffer instead
6915 of xrealloc.
6916
6917 2016-03-09 Pedro Alves <palves@redhat.com>
6918
6919 * common/buffer.h (buffer_grow_char): New function.
6920 * top.c: Include buffer.h.
6921 (gdb_readline_no_editing): Rename 'prompt_arg' parameter to
6922 'prompt'. Use struct buffer instead of xrealloc.
6923
6924 2016-03-09 Pedro Alves <palves@redhat.com>
6925
6926 * defs.h (gdb_readline): Delete declaration.
6927 * top.c (gdb_readline): Rename to ...
6928 (gdb_readline_no_editing): ... this, and make static.
6929
6930 2016-03-09 Pedro Alves <palves@redhat.com>
6931
6932 * utils.c (prompt_for_continue): Update comments.
6933
6934 2016-03-09 Pedro Alves <palves@redhat.com>
6935
6936 * event-top.c (async_annotation_suffix): Delete.
6937 (top_level_prompt, command_line_handler): Don't use
6938 'async_annotation_suffix' and simplify.
6939 * event-top.h (async_annotation_suffix): Delete declaration.
6940 (init_main): Remove reference to 'async_annotation_suffix'.
6941
6942 2016-03-09 Pedro Alves <palves@redhat.com>
6943
6944 * event-top.c (gdb_readline2): Rename to ...
6945 (gdb_readline_no_editing_callback): ... this.
6946 (change_line_handler, stdin_event_handler)
6947 (gdb_setup_readline): Adjust.
6948 * event-top.h (gdb_readline2): Rename to ...
6949 (gdb_readline_no_editing_callback): ... this, and move closer to
6950 other readline-related declarations.
6951 * mi/mi-interp.c (mi_interpreter_resume): Adjust.
6952
6953 2016-03-09 Pedro Alves <palves@redhat.com>
6954
6955 * top.c (window_hook): Delete.
6956 (command_loop): Remove references to window_hook.
6957
6958 2016-03-09 Marcin Kościelnicki <koriakin@0x04.net>
6959
6960 * corefile.c (safe_read_memory_unsigned_integer): New function.
6961 * gdbcore.h (safe_read_memory_unsigned_integer): New prototype.
6962 * rs6000-tdep.c (rs6000_frame_cache): Read backchain as unsigned.
6963
6964 2016-03-09 Marcin Kościelnicki <koriakin@0x04.net>
6965
6966 * rs6000-tdep.c: Add "ax.h" and "ax-gdb.h" includes.
6967 (rs6000_gen_return_address): New function.
6968 (rs6000_gdbarch_init): Wire in the above.
6969
6970 2016-03-09 Marcin Kościelnicki <koriakin@0x04.net>
6971
6972 * rs6000-tdep.c (rs6000_ax_pseudo_register_collect): New function.
6973 (rs6000_gdbarch_init): Wire in the above.
6974
6975 2016-03-09 Andreas Arnez <arnez@linux.vnet.ibm.com>
6976
6977 * s390-linux-tdep.c (s390_analyze_prologue): Ignore BRC and BRCL
6978 instructions that do nothing or are conditional traps.
6979
6980 2016-03-09 Andreas Arnez <arnez@linux.vnet.ibm.com>
6981
6982 * s390-linux-tdep.c (s390_prologue_frame_unwind_cache): Store
6983 frame func's PC in info->func before any other failure can occur.
6984 (s390_frame_this_id): Use frame_id_build_unavailable_stack if
6985 info->func has been filled out.
6986
6987 2016-03-09 Pedro Alves <palves@redhat.com>
6988
6989 * osabi.c (gdb_osabi_names): Avoid spaces in osabi names.
6990
6991 2016-03-09 Pedro Alves <palves@redhat.com>
6992
6993 * frv-tdep.c (frv_gdbarch_init): Handle bfd_mach_fr300.
6994
6995 2016-03-09 Pedro Alves <palves@redhat.com>
6996
6997 * cris-tdep.c (cris_gdbarch_init): Return 0 if the info's byte
6998 order is BFD_ENDIAN_BIG or if the cris version is unsupported.
6999
7000 2016-03-09 Pedro Alves <palves@redhat.com>
7001
7002 * doublest.c: Extend comments.
7003 (floatformat_to_doublest, floatformat_from_doublest): Copy the
7004 floatformat's total size, not the host type's size.
7005
7006 2016-03-09 Pedro Alves <palves@redhat.com>
7007
7008 * doublest.c (floatformat_totalsize_bytes): New function.
7009 (floatformat_from_type): Assert that the type's length is at least
7010 as long as the floatformat's totalsize.
7011 * doublest.h (floatformat_totalsize_bytes): New declaration.
7012 * gdbtypes.c (arch_float_type): Assert that the type's length is
7013 at least as long as the floatformat's totalsize.
7014
7015 2016-03-09 Pedro Alves <palves@redhat.com>
7016
7017 * hppa-linux-tdep.c (hppa_linux_init_abi): Set the long double
7018 format to floatformats_ieee_double.
7019
7020 2016-03-07 Pedro Alves <palves@redhat.com>
7021
7022 * mips-tdep.c (mips_gdbarch_init): Check whether info.abfd is NULL
7023 before calling bfd_get_flavour.
7024
7025 2016-03-05 Pitchumani Sivanupandi <pitchumani.s@atmel.com>
7026
7027 * avr-tdep.c (AVR_LAST_ARG_REGNUM): Define.
7028 (avr_push_dummy_call): Correct last needed argument register.
7029 Write MSB of argument into register and subsequent bytes into
7030 other registers in decreasing order.
7031
7032 2016-03-04 Yao Qi <yao.qi@linaro.org>
7033
7034 * arm-tdep.c (arm_record_vdata_transfer_insn): Simplify the
7035 condition check. Record the right D register number.
7036
7037 2016-03-04 Yao Qi <yao.qi@linaro.org>
7038
7039 * arm-tdep.c (arm_record_extension_space): Remove code
7040 printing "Process record does not support".
7041 (arm_record_data_proc_misc_ld_str): Likewise.
7042 (decode_insn): Call arm_record_extension_space if condition
7043 is 0xf. Call arm_record_unsupported_insn if ret isn't
7044 ARM_RECORD_SUCCESS. Use 'ret' instead of 'insn_id' to hold
7045 the value of thumb2_record_decode_insn_handler.
7046
7047 2016-03-04 Simon Marchi <simon.marchi@ericsson.com>
7048
7049 * features/feature_to_c.sh: Print the help when passing no
7050 argument.
7051
7052 2016-03-02 Bernhard Heckel <bernhard.heckel@intel.com>
7053
7054 * MAINTAINERS (Write After Approval): Add Bernhard Heckel.
7055
7056 2016-03-02 Bernhard Heckel <bernhard.heckel@intel.com>
7057
7058 * dwarf2read.c (new_symbol_full): Fix detection of gfortran compilers.
7059
7060 2016-03-01 Andreas Arnez <arnez@linux.vnet.ibm.com>
7061
7062 * s390-linux-tdep.c (s390_backchain_frame_unwind_cache): Avoid
7063 exception when attempting to access the inferior's backchain.
7064
7065 2016-02-29 Yao Qi <yao.qi@linaro.org>
7066
7067 * aarch64-linux-tdep.c (aarch64_canonicalize_syscall): Support
7068 eventfd2, eventfd2, dup3, inotify_init1, fallocate and pipe2.
7069 Return gdb_sys_epoll_create1 instead of gdb_sys_epoll_create
7070 for aarch64_sys_epoll_create1.
7071
7072 2016-02-29 Yao Qi <yao.qi@linaro.org>
7073
7074 * linux-record.h (enum gdb_syscall) <gdb_sys_fallocate>: New.
7075 <gdb_sys_eventfd2, gdb_sys_epoll_create1, gdb_sys_dup3>: New.
7076 <gdb_sys_pipe2, gdb_sys_inotify_init1>: New.
7077 * linux-record.c (record_linux_system_call): Handle them.
7078
7079 2016-02-28 Iain Buclaw <ibuclaw@gdcproject.org>
7080
7081 * d-namespace.c (d_lookup_symbol_imports): Avoid recursive lookups from
7082 cyclic imports.
7083
7084 2016-02-26 Keith Seitz <keiths@redhat.com>
7085
7086 * rs6000-tdep.c (rs6000_frame_cache): Explicitly cast return result
7087 to avoid invalid conversion from void *.
7088
7089 2016-02-26 Yao Qi <yao.qi@linaro.org>
7090
7091 * arm-tdep.c (arm_record_exreg_ld_st_insn): Set 'single_reg'
7092 per bit 8. Check bit 20 instead of bit 4 for VMOV
7093 instruction. Record D registers for instructions changing
7094 S registers. Change of the order of length and address
7095 in record_buf_mem array.
7096
7097 2016-02-26 Yao Qi <yao.qi@linaro.org>
7098
7099 * arm-tdep.c (thumb_record_ld_st_reg_offset): Fix the register
7100 number of Rd.
7101
7102 2016-02-25 Doug Evans <dje@google.com>
7103
7104 * remote-m32r-sdi.c (recv_char_data): Initialize val to avoid
7105 compiler warning.
7106 (recv_long_data): Ditto.
7107
7108 2016-02-25 Simon Marchi <simon.marchi@ericsson.com>
7109
7110 * i386-linux-tdep.c (i386_linux_handle_segmentation_fault):
7111 Initialize variables.
7112
7113 2016-02-25 Antoine Tremblay <antoine.tremblay@ericsson.com>
7114
7115 * ax-general.c (ax_reg): Call gdbarch_remote_register_number.
7116 (ax_reg_mask): Likewise.
7117
7118 2016-02-24 Pedro Alves <palves@redhat.com>
7119
7120 * linux-nat.c (save_sigtrap) Delete.
7121 (stop_wait_callback): Call save_stop_reason instead of
7122 save_sigtrap.
7123 (check_stopped_by_breakpoint): Rename to ...
7124 (save_stop_reason): ... this. Bits of save_sigtrap folded here.
7125 Use GDB_ARCH_IS_TRAP_HWBKPT and handle ambiguous
7126 GDB_ARCH_IS_TRAP_BRKPT / GDB_ARCH_IS_TRAP_HWBKPT. Factor out
7127 common code between the USE_SIGTRAP_SIGINFO and
7128 !USE_SIGTRAP_SIGINFO blocks.
7129 (linux_nat_filter_event): Call save_stop_reason instead of
7130 save_sigtrap.
7131 * nat/linux-ptrace.h: Check for both SI_KERNEL and TRAP_BRKPT
7132 si_code for MIPS.
7133 * nat/linux-ptrace.h: Fix "TRAP_HWBPT" typo in x86 table. Add
7134 comments on MIPS behavior.
7135 (GDB_ARCH_IS_TRAP_HWBKPT): Define for all archs.
7136
7137 2016-02-24 Marcin Kościelnicki <koriakin@0x04.net>
7138
7139 * rs6000-tdep.c (rs6000_frame_cache): Initialize frame and pc to 0
7140 to avoid spurious warnings.
7141
7142 2016-02-24 Gary Benson <gbenson@redhat.com>
7143
7144 * exec.c (exec_file_locate_attach): Do not attempt to
7145 locate main executable locally if not found in sysroot.
7146
7147 2016-02-24 Joel Brobecker <brobecker@adacore.com>
7148
7149 GDB 7.11 released.
7150
7151 2016-02-24 Wei-cheng Wang <cole945@gmail.com>
7152
7153 * rs6000-tdep.c (rs6000_frame_cache, rs6000_frame_this_id): Handle
7154 unavailable PC/SP to build unavailable frame.
7155
7156 2016-02-23 Doug Evans <dje@google.com>
7157
7158 Extend "skip" command to support -file, -gfile, -function, -rfunction.
7159 * NEWS: Document new features.
7160 * skip.c: #include "fnmatch.h", "gdb_regex.h".
7161 (skiplist_entry) <file>: Renamed from filename.
7162 <function>: Renamed from function_name.
7163 <file_is_glob, function_is_regexp>: New members.
7164 <compiled_function_regexp, compiled_function_regexp_is_valid>:
7165 New members.
7166 (make_skip_entry): New function.
7167 (free_skiplist_entry, free_skiplist_entry_cleanup): New functions.
7168 (make_free_skiplist_entry_cleanup): New function.
7169 (skip_file_command): Update.
7170 (skip_function, skip_function_command): Update.
7171 (compile_skip_regexp): New functions.
7172 (skip_command): Add support for new options.
7173 (skip_info): Update.
7174 (skip_file_p, skip_gfile_p): New functions.
7175 (skip_function_p, skip_rfunction_p): New functions.
7176 (function_name_is_marked_for_skip): Update and simplify.
7177 (_initialize_step_skip): Update.
7178 * symtab.c: #include "fnmatch.h".
7179 (compare_glob_filenames_for_search): New function.
7180 * symtab.h (compare_glob_filenames_for_search): Declare.
7181 * utils.c (count_path_elements): New function.
7182 (strip_leading_path_elements): New function.
7183 * utils.h (count_path_elements): Declare.
7184 (strip_leading_path_elements): Declare.
7185
7186 2016-02-23 Simon Marchi <simon.marchi@ericsson.com>
7187
7188 * arm-tdep.c (arm_decode_svc_copro): Remove "to" parameter.
7189 (thumb_process_displaced_insn): Likewise.
7190 (arm_process_displaced_insn): Adjust calls.
7191
7192 2016-02-23 Yao Qi <yao.qi@linaro.org>
7193
7194 * aarch64-linux-tdep.c (enum aarch64_syscall) <aarch64_sys_mknod>:
7195 Remove.
7196 <aarch64_sys_mkdir, aarch64_sys_unlink, aarch64_sys_symlink>: Remove.
7197 <aarch64_sys_link, aarch64_sys_rename, aarch64_sys_faccess>: Remove.
7198 <aarch64_sys_mknodat, aarch64_sys_mkdirat>: New.
7199 <aarch64_sys_unlinkat, aarch64_sys_symlinkat>: New.
7200 <aarch64_sys_linkat, aarch64_sys_renameat>: New.
7201 <aarch64_sys_faccessat>: New.
7202 <aarch64_sys_open, aarch64_sys_readlink, aarch64_sys_fstatat>: Remove.
7203 <aarch64_sys_openat, aarch64_sys_readlinkat>: New.
7204 <aarch64_sys_newfstatat>: New.
7205 (UNSUPPORTED_SYSCALL_MAP): New macro.
7206 (aarch64_canonicalize_syscall): Add missing syscalls.
7207
7208 2016-02-22 Jan Kratochvil <jan.kratochvil@redhat.com>
7209
7210 * gdb-gdb.py (class TypeFlagsPrinter): Use parentheses for print.
7211
7212 2016-02-22 Yao Qi <yao.qi@linaro.org>
7213
7214 * arm-tdep.c: Fix code format issues.
7215
7216 2016-02-21 Iain Buclaw <ibuclaw@gdcproject.org>
7217
7218 * d-namespace.c (d_lookup_symbol_imports): Remove argument
7219 'search_parents'. All callers updated.
7220
7221 2016-02-18 Marcin Kościelnicki <koriakin@0x04.net>
7222
7223 * s390-linux-tdep.c (s390_guess_tracepoint_registers): New function.
7224 (s390_gdbarch_init): Fill guess_tracepoint_registers hook.
7225
7226 2016-02-18 Walfred Tedeschi <walfred.tedeschi@intel.com>
7227
7228 * NEWS: Add entry for bound violation.
7229 * amd64-linux-tdep.c (amd64_linux_init_abi_common):
7230 Add handler for segmentation fault.
7231 * gdbarch.sh (handle_segmentation_fault): New.
7232 * gdbarch.c: Regenerate.
7233 * gdbarch.h: Regenerate.
7234 * i386-linux-tdep.c (i386_linux_handle_segmentation_fault): New.
7235 (SIG_CODE_BONDARY_FAULT): New define.
7236 (i386_linux_init_abi): Use i386_mpx_bound_violation_handler.
7237 * i386-linux-tdep.h (i386_linux_handle_segmentation_fault) New.
7238 * i386-tdep.c (i386_mpx_enabled): Add as external.
7239 * i386-tdep.c (i386_mpx_enabled): Add as external.
7240 * infrun.c (handle_segmentation_fault): New function.
7241 (print_signal_received_reason): Use handle_segmentation_fault.
7242
7243 2016-02-18 Marcin Kościelnicki <koriakin@0x04.net>
7244
7245 * arch-utils.c (default_guess_tracepoint_registers): New function.
7246 * arch-utils.h (default_guess_tracepoint_registers): New prototype.
7247 * gdbarch.c: Regenerate.
7248 * gdbarch.h: Regenerate.
7249 * gdbarch.sh: Add guess_tracepoint_registers hook.
7250 * tracefile.c (tracefile_fetch_registers): Use the new gdbarch hook.
7251
7252 2016-02-17 Gary Benson <gbenson@redhat.com>
7253
7254 * exec.c (exec_file_locate_attach): Add missing cleanup.
7255
7256 2016-02-16 Don Breazeal <donb@codesourcery.com>
7257
7258 PR remote/19496
7259 * remote.c (remove_new_fork_children): Check for pending
7260 fork status in thread_info.suspend.
7261
7262 2016-02-16 Yao Qi <yao.qi@linaro.org>
7263
7264 * arm-linux-tdep.c (arm_linux_software_single_step): Assign
7265 'old_chain' later.
7266
7267 2016-02-16 Yao Qi <yao.qi@linaro.org>
7268
7269 * arch/arm-get-next-pcs.h (struct arm_get_next_pcs_ops)
7270 <syscall_next_pc>: Remove argument PC. Callers updated.
7271 * arm-linux-tdep.c (arm_linux_get_next_pcs_syscall_next_pc):
7272 Remove argument PC. Get pc from regcache_read_pc.
7273 * arm-tdep.c (arm_get_next_pcs_syscall_next_pc): Remove
7274 argument PC.
7275
7276 2016-02-15 Yao Qi <yao.qi@linaro.org>
7277
7278 * aarch64-tdep.c (aarch64_analyze_prologue): Remove "0x".
7279
7280 2016-02-12 Yao Qi <yao.qi@linaro.org>
7281
7282 * arch/arm-linux.c (arm_linux_get_next_pcs_fixup): Calculate
7283 nextpc according to instruction.
7284
7285 2016-02-12 Yao Qi <yao.qi@linaro.org>
7286
7287 * arch/arm-get-next-pcs.c (arm_get_next_pcs): Call
7288 self->ops->fixup if it isn't NULL.
7289 * arch/arm-get-next-pcs.h: Include gdb_vecs.h.
7290 (struct arm_get_next_pcs_ops) <fixup>: New field.
7291 * arch/arm-linux.c: Include common-regcache.h and
7292 arch/arm-get-next-pcs.h.
7293 (arm_linux_get_next_pcs_fixup): New function.
7294 * arch/arm-linux.h (arm_linux_get_next_pcs_fixup): Declare.
7295 * arm-linux-tdep.c (arm_linux_get_next_pcs_ops): Initialize
7296 it with arm_linux_get_next_pcs_fixup.
7297 (arm_linux_software_single_step): Move code to
7298 arm_linux_get_next_pcs_fixup.
7299 * arm-tdep.c (arm_get_next_pcs_ops): Initialize it.
7300
7301 2016-02-12 Marcin Kościelnicki <koriakin@0x04.net>
7302
7303 * xml-tdesc.c (target_fetch_description_xml) [!HAVE_LIBEXPAT]: Warn
7304 and return NULL.
7305
7306 2016-02-12 Markus Metzger <markus.t.metzger@intel.com>
7307
7308 * frame.h (skip_tailcall_frames): Update comment.
7309 * frame.c (skip_artificial_frames, skip_tailcall_frames): Return NULL
7310 if only artificial frames are found. Update comment.
7311 (frame_unwind_caller_id): Handle NULL return.
7312 (frame_unwind_caller_pc, frame_unwind_caller_arch): Assert that
7313 skip_artificial_frames does not return NULL.
7314 (frame_pop): Add an error if only tailcall frames are found.
7315 * infcmd.c (finish_command): Move skip_tailcall_frames call into
7316 forward-execution case. Add an error if only tailcall frames are
7317 found.
7318
7319 2016-02-12 Markus Metzger <markus.t.metzger@intel.com>
7320
7321 * stack.c (frame_info): Check frame_unwind_caller_id.
7322
7323 2016-02-12 Markus Metzger <markus.t.metzger@intel.com>
7324
7325 * frame.h (skip_tailcall_frames): New.
7326 * frame.c (skip_tailcall_frames): New.
7327 (frame_pop): Call skip_tailcall_frames.
7328 * infcmd.c (finish_command): Call skip_tailcall_frames.
7329
7330 2016-02-11 Pedro Alves <palves@redhat.com>
7331
7332 * Makefile.in (check-parallel): New rule.
7333
7334 2016-02-11 Simon Marchi <simon.marchi@ericsson.com>
7335
7336 * arm-tdep.c (arm_skip_prologue): Remove unused variables.
7337 (arm_analyze_prologue): Likewise.
7338 (arm_scan_prologue): Likewise.
7339 (arm_m_exception_prev_register): Likewise.
7340 (arm_copy_block_xfer): Likewise.
7341 (thumb2_copy_block_xfer): Likewise.
7342 (arm_decode_miscellaneous): Likewise.
7343 (arm_decode_ld_st_word_ubyte): Likewise.
7344 (arm_decode_svc_copro): Likewise.
7345 (thumb2_decode_svc_copro): Likewise.
7346 (thumb_copy_16bit_ldr_literal): Likewise.
7347 (thumb_copy_pop_pc_16bit): Likewise.
7348 (decode_thumb_32bit_ld_mem_hints): Likewise.
7349 (arm_show_force_mode): Likewise.
7350 (_initialize_arm_tdep): Likewise.
7351 (arm_record_strx): Likewise.
7352 (arm_record_extension_space): Likewise.
7353 (arm_record_data_proc_misc_ld_str): Likewise.
7354 (arm_record_exreg_ld_st_insn): Likewise.
7355 (arm_record_vfp_data_proc_insn): Likewise.
7356 (arm_record_coproc_data_proc): Likewise.
7357 (thumb_record_misc): Likewise.
7358 (thumb_record_ldm_stm_swi): Likewise.
7359 (thumb2_record_ld_st_dual_ex_tbb): Likewise.
7360 (thumb2_record_ld_mem_hints): Likewise.
7361 (thumb2_record_lmul_lmla_div): Likewise.
7362 (thumb2_record_asimd_struct_ld_st): Likewise.
7363 (arm_process_record): Likewise.
7364
7365 2016-02-11 Simon Marchi <simon.marchi@ericsson.com>
7366
7367 * arm-tdep.c (arm_displaced_step_copy_insn): Remove.
7368 (ARM displaced stepping support): Remove reference to
7369 arm_displaced_step_copy_insn in comment.
7370 * arm-tdep.h (arm_displaced_step_copy_insn): Remove.
7371 * arm-linux-tdep.c (arm_linux_displaced_step_copy_insn): Remove
7372 reference to arm_displaced_step_copy_insn in comment.
7373
7374 2016-02-11 Simon Marchi <simon.marchi@ericsson.com>
7375
7376 * arm-tdep.c (thumb_copy_unmodified_16bit): Change type of insn.
7377 (thumb_copy_b): Likewise.
7378 (arm_decode_b_bl_ldmstm): Likewise.
7379 (thumb_copy_16bit_ldr_literal): Likewise.
7380 (thumb_copy_pop_pc_16bit): Likewise.
7381
7382 2016-02-11 Antoine Tremblay <antoine.tremblay@ericsson.com>
7383
7384 * tracepoint.c (encode_actions_1): Use target_gdbarch () rather
7385 than loc->gdbarch.
7386
7387 2016-02-10 Marcin Kościelnicki <koriakin@0x04.net>
7388
7389 * tracefile-tfile.c (trace_tdesc): New static variable.
7390 (tfile_open): Clear trace_tdesc, call target_find_description.
7391 (tfile_interp_line): Recognize tdesc lines.
7392 (tfile_close): Clear trace_tdesc.
7393 (tfile_xfer_partial_features): New function.
7394 (tfile_xfer_partial): Call tfile_xfer_partial_features.
7395 (tfile_append_tdesc_line): New function.
7396
7397 2016-02-10 Marcin Kościelnicki <koriakin@0x04.net>
7398
7399 * ctf.c (ctf_write_tdesc): New function.
7400 (ctf_write_ops): Wire in ctf_write_tdesc.
7401 * tracefile-tfile.c (tfile_write_tdesc): New function.
7402 (tfile_write_ops): Wire in tfile_write_tdesc.
7403 * tracefile.c (trace_save): Call write_tdesc method.
7404 * tracefile.h (struct trace_file_write_ops): Add write_tdesc method.
7405 * xml-tdesc.c (target_fetch_description_xml): New function.
7406 * xml-tdesc.h: Add target_fetch_description_xml prototype.
7407
7408 2016-02-10 Simon Marchi <simon.marchi@ericsson.com>
7409
7410 * arm-tdep.c (arm_copy_extra_ld_st): Fix "unpriveleged" typo.
7411 (arm_decode_dp_misc): Likewise.
7412
7413 2016-02-10 Marcin Kościelnicki <koriakin@0x04.net>
7414
7415 * amd64-tdep.c (amd64_ax_pseudo_register_collect): New function.
7416 (amd64_init_abi): Fill ax_pseudo_register_collect hook.
7417 * gdb/i386-tdep.c (i386_pseudo_register_read_into_value): Remove
7418 misleading comment.
7419 (i386_pseudo_register_write): Ditto.
7420 (i386_ax_pseudo_register_collect): New function.
7421 (i386_gdbarch_init): Fill ax_pseudo_register_collect hook.
7422 * i386-tdep.h: Add i386_ax_pseudo_register_collect prototype.
7423
7424 2016-02-10 Marcin Kościelnicki <koriakin@0x04.net>
7425
7426 * tracefile-tfile.c (tfile_fetch_registers): Use g packet order
7427 instead of gdb order.
7428
7429 2016-02-10 Marcin Kościelnicki <koriakin@0x04.net>
7430
7431 * tracefile-tfile.c (tfile_fetch_registers): Fix off-by-one in bounds
7432 check.
7433
7434 2016-02-10 Joel Brobecker <brobecker@adacore.com>
7435
7436 * NEWS: Create a new section for the next release branch.
7437 Rename the section of the current branch, now that it has
7438 been cut.
7439
7440 2016-02-10 Joel Brobecker <brobecker@adacore.com>
7441
7442 GDB 7.11 branch created (9ef9e6a6a0dd8f948708cb67c9afcfd0be40cb0a):
7443 * version.in: Bump version to 7.11.50.DATE-git.
7444
7445 2016-02-09 Keith Seitz <keiths@redhat.com>
7446
7447 PR breakpoints/19546
7448 * breakpoint.c (breakpoint_event_location_empty_p): New function.
7449 (update_breakpoints_after_exec, bkpt_re_set): Use this new function
7450 instead of event_location_empty_p.
7451
7452 2016-02-09 Keith Seitz <keiths@redhat.com>
7453
7454 * mi/mi-cmd-break.c (mi_cmd_break_insert_1): Use
7455 string_to_event_location_basic instead of string_to_event_location.
7456
7457 2016-02-09 Keith Seitz <keiths@redhat.com>
7458
7459 * guile/scm-breakpoint.c (gdbscm_register_breakpoint_x): Skip
7460 leading whitespace and use string_to_event_location_basic instead
7461 of new_linespec_location.
7462
7463 2016-02-09 Keith Seitz <keiths@redhat.com>
7464
7465 PR python/19506
7466 * python/py-breakpoint.c (bppy_init): Use
7467 string_to_event_location_basic instead of new_linespec_location.
7468
7469 2016-02-09 Keith Seitz <keiths@redhat.com>
7470
7471 * location.c (string_to_explicit_location): Note that "-p" is
7472 reserved for probe locations and return NULL for any input
7473 that starts with that.
7474 (string_to_event_location): Move "legacy" linespec code to ...
7475 (string_to_event_location_basic): ... here.
7476 * location.h (string_to_event_location): Update comment.
7477 (string_to_event_location_basic): New function.
7478
7479 2016-02-09 Simon Marchi <simon.marchi@ericsson.com>
7480
7481 * configure.ac: Use AC_CONFIG_FILES instead of passing arguments
7482 to AC_OUTPUT. Remove "exit 0" at the end.
7483 * configure: Regenerate.
7484
7485 2016-02-09 Pedro Alves <palves@redhat.com>
7486
7487 PR breakpoints/19548
7488 * breakpoint.c (create_overlay_event_breakpoint): Don't update
7489 global location list here.
7490 (create_longjmp_master_breakpoint)
7491 (create_std_terminate_master_breakpoint)
7492 (create_exception_master_breakpoint, create_jit_event_breakpoint)
7493 (update_breakpoint_locations):
7494 (breakpoint_re_set): Update global location list after all
7495 breakpoints are re-set.
7496
7497 2016-02-08 Simon Marchi <simon.marchi@ericsson.com>
7498
7499 * remote.c (remote_register_number_and_offset): Remove unused
7500 variable(s).
7501 (remote_thread_always_alive): Likewise.
7502 (remote_update_thread_list): Likewise.
7503 (process_initial_stop_replies): Likewise.
7504 (remote_start_remote): Likewise.
7505 (remote_check_symbols): Likewise.
7506 (discard_pending_stop_replies): Likewise.
7507 (process_stop_reply): Likewise.
7508 (putpkt_binary): Likewise.
7509 (getpkt): Likewise.
7510 (remote_add_target_side_condition): Likewise.
7511 (remote_insert_breakpoint): Likewise.
7512 (remote_supports_stopped_by_sw_breakpoint): Likewise.
7513 (remote_supports_stopped_by_hw_breakpoint): Likewise.
7514 (remote_xfer_partial): Likewise.
7515 (remote_read_btrace): Likewise.
7516 (remote_async_serial_handler): Likewise.
7517 (remote_thread_events): Likewise.
7518 (_initialize_remote): Likewise.
7519
7520 2016-02-07 Simon Marchi <simon.marchi@polymtl.ca>
7521
7522 * varobj.h (varobj_delete): Remove dellist parameter, update and
7523 move documentation here.
7524 * varobj.c (struct cpstack, cppush, cppop): Remove.
7525 (delete_variable): Remove resultp (first) parameter.
7526 (delete_variable_1): Likewise.
7527 (varobj_delete): Remove dellist parameter and unused code.
7528 (update_dynamic_varobj_children): Adjust varobj_delete call.
7529 (update_type_if_necessary): Likewise.
7530 (varobj_set_visualizer): Likewise.
7531 (varobj_update): Likewise.
7532 (value_of_root): Likewise.
7533 (varobj_invalidate_iter): Likewise.
7534 * mi/mi-cmd-var.c (mi_cmd_var_delete): Likewise.
7535
7536 2016-02-04 Yao Qi <yao.qi@linaro.org>
7537
7538 * remote.c (remote_wait_as): Set rs->waiting_for_stop_reply to
7539 0 before handling 'F' and set it back afterwards.
7540
7541 2016-02-02 Simon Marchi <simon.marchi@ericsson.com>
7542
7543 * ui-out.c (MAX_UI_OUT_LEVELS): Remove.
7544
7545 2016-02-02 Walfred Tedeschi <walfred.tedeschi@intel.com>
7546
7547 * amd64-linux-siginfo.c (nat_siginfo_t, nat_sigval_t, nat_timeval):
7548 New types.
7549 (compat_siginfo): New bound fields added.
7550 (compat_x32_siginfo): New field added.
7551 (cpt_si_addr_lsb): New define.
7552 (compat_siginfo_from_siginfo): Use nat_siginfo.
7553 (siginfo_from_compat_siginfo): Use nat_siginfo.
7554 (compat_x32_siginfo_from_siginfo): Likewise.
7555 (siginfo_from_compat_x32_siginfo): Likewise.
7556
7557 2016-02-02 Walfred Tedeschi <walfred.tedeschi@intel.com>
7558
7559 * linux-tdep.c (linux_get_siginfo_type): Add the _addr_bnd
7560 structure to the siginfo if extra_fields contains
7561 LINUX_SIGINFO_FIELD_ADDR_BND.
7562
7563 2016-02-02 Walfred Tedeschi <walfred.tedeschi@intel.com>
7564
7565 * linux-tdep.h (linux_get_siginfo_type_with_fields): Make extern.
7566 * linux-tdep.c (linux_get_siginfo_type_with_fields): Make extern.
7567 * i386-linux-tdep.h (x86_linux_get_siginfo_type): New
7568 function.
7569 * amd64-linux-tdep.c (amd64_linux_init_abi_common): Add
7570 x86_linux_get_siginfo_type for the amd64 abi.
7571 * i386-linux-tdep.c (x86_linux_get_siginfo_type): New
7572 function.
7573 (i386_linux_init_abi): Add new function at the i386 ABI
7574 initialization.
7575
7576 2016-02-02 Walfred Tedeschi <walfred.tedeschi@intel.com>
7577
7578 * linux-tdep.h (linux_siginfo_extra_field_values): New enum values.
7579 (linux_siginfo_extra_fields): New enum type.
7580 * linux-tdep.c (linux_get_siginfo_type_with_fields): New function.
7581 (linux_get_siginfo_type): Use new function.
7582
7583 2016-02-02 Walfred Tedeschi <walfred.tedeschi@intel.com>
7584
7585 * nat/amd64-linux-siginfo.c: New file.
7586 * nat/amd64-linux-siginfo.h: New file.
7587 * Makefile.in (HFILES_NO_SRCDIR): Add nat/amd64-linux-siginfo.h.
7588 (amd64-linux-siginfo.o): New rule.
7589 * config/i386/linux64.mh (NATDEPFILES): Add amd64-linux-siginfo.o.
7590 * amd64-linux-nat.c (nat/amd64-linux-siginfo.h): New include.
7591 (compat_siginfo_from_siginfo, siginfo_from_compat_siginfo)
7592 (compat_x32_siginfo_from_siginfo, siginfo_from_compat_x32_siginfo)
7593 (compat_timeval, compat_sigval, compat_x32_clock, cpt_si_pid)
7594 (cpt_si_uid, cpt_si_timerid, cpt_si_overrun, cpt_si_status)
7595 (cpt_si_utime, cpt_si_stime, cpt_si_ptr, cpt_si_addr, cpt_si_band)
7596 (cpt_si_fd, si_timerid, si_overrun): Move to nat/amd64-linux-siginfo.c.
7597
7598 2016-02-01 Andrew Burgess <andrew.burgess@embecosm.com>
7599
7600 * value.c (max_value_size): New variable.
7601 (MIN_VALUE_FOR_MAX_VALUE_SIZE): New define.
7602 (set_max_value_size): New function.
7603 (show_max_value_size): New function.
7604 (check_type_length_before_alloc): New function.
7605 (allocate_value_contents): Call check_type_length_before_alloc.
7606 (set_value_enclosing_type): Likewise.
7607 (_initialize_values): Add set/show handler for max-value-size.
7608 * NEWS: Mention new set/show command.
7609
7610 2016-01-31 Simon Marchi <simon.marchi@polymtl.ca>
7611
7612 * varobj.h (struct varobj): Fix typos in comments.
7613 (struct lang_varobj_ops): Likewise.
7614 * varobj.c (VAROBJ_TABLE_SIZE): Likewise.
7615 (varobj_create): Move misplaced comment.
7616
7617 2016-01-29 Simon Marchi <simon.marchi@ericsson.com>
7618
7619 * aarch64-tdep.c (aarch64_record_asimd_load_store): Add braces
7620 to for include additional lines.
7621 * xcoffread.c (scan_xcoff_symtab): Remove unnecessary braces.
7622
7623 2016-01-28 Simon Marchi <simon.marchi@ericsson.com>
7624
7625 * gnulib/import/Makefile.am: Regenerate.
7626 * gnulib/import/Makefile.in: Regenerate.
7627 * gnulib/import/m4/gnulib-cache.m4: Regenerate.
7628 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add rawmemchr.
7629
7630 2016-01-28 Simon Marchi <simon.marchi@ericsson.com>
7631
7632 * remote.c (skip_to_semicolon): Remove.
7633 (remote_parse_stop_reply): Use strchrnul instead of
7634 skip_to_semicolon.
7635 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add
7636 strchrnul.
7637 * gnulib/aclocal.m4: Regenerate.
7638 * gnulib/config.in: Regenerate.
7639 * gnulib/configure: Regenerate.
7640 * gnulib/import/Makefile.am: Regenerate.
7641 * gnulib/import/Makefile.in: Regenerate.
7642 * gnulib/import/m4/gnulib-cache.m4: Regenerate.
7643 * gnulib/import/m4/gnulib-comp.m4: Regenerate.
7644 * gnulib/import/m4/rawmemchr.m4: New file.
7645 * gnulib/import/m4/strchrnul.m4: New file.
7646 * gnulib/import/rawmemchr.c: New file.
7647 * gnulib/import/rawmemchr.valgrind: New file.
7648 * gnulib/import/strchrnul.c: New file.
7649 * gnulib/import/strchrnul.valgrind: New file.
7650
7651 2016-01-28 Yao Qi <yao.qi@linaro.org>
7652
7653 * breakpoint.c (build_target_command_list): Don't call continue
7654 if aexpr is NULL.
7655 (build_target_condition_list): Likewise.
7656
7657 2016-01-27 Kevin Buettner <kevinb@redhat.com>
7658
7659 * rx-tdep.c (rx_push_dummy_call): Treat scalars larger than 8
7660 bytes as aggregates.
7661
7662 2016-01-27 Joel Brobecker <brobecker@adacore.com>
7663
7664 * MAINTAINERS (Responsible Maintainers): Add Keith Seitz as
7665 Linespec Maintainers.
7666
7667 2016-01-26 Simon Marchi <simon.marchi@ericsson.com>
7668
7669 * common/common-utils.c (skip_spaces): Fix comment.
7670 (skip_to_space_const): Likewise.
7671
7672 2016-01-25 Yao Qi <yao.qi@linaro.org>
7673
7674 * arch/arm-get-next-pcs.c (thumb_deal_with_atomic_sequence_raw):
7675 Remove argument pc. Get pc by regcache_read_pc. Callers updated.
7676 (arm_deal_with_atomic_sequence_raw): Likewise.
7677 (thumb_get_next_pcs_raw): Likewise.
7678 (arm_get_next_pcs_raw): Likewise.
7679 (arm_get_next_pcs): Remove argument pc. Callers updated.
7680 * arch/arm-get-next-pcs.h (arm_get_next_pcs): Update declaration.
7681
7682 2016-01-25 Mark Wielaard <mjw@redhat.com>
7683
7684 * ada-lang.c (ada_evaluate_subexp): Add proper else block.
7685 * c-typeprint.c (c_type_print_base): Fix misleading indentation of
7686 if statement.
7687 * inflow.c (child_terminal_ours_1): Fix misleading indentation of
7688 statement block by introducing an else.
7689 * linux-record.c (record_linux_sockaddr): Fix misleading indentation
7690 of return statements.
7691 (record_linux_msghdr): Likewise.
7692
7693 2016-01-25 Pedro Alves <palves@redhat.com>
7694
7695 PR threads/19461
7696 * infrun.c (handle_inferior_event_1) <fork/vfork>: Update
7697 parent/child running states.
7698
7699 2016-01-25 Pedro Alves <palves@redhat.com>
7700
7701 PR gdb/19494
7702 * linux-nat.c (kill_one_lwp): New, factored out from ...
7703 (kill_callback): ... this.
7704 (kill_wait_callback): New, factored out from ...
7705 (kill_wait_one_lwp): ... this.
7706 (kill_unfollowed_fork_children): New function.
7707 (linux_nat_kill): Use it.
7708
7709 2016-01-22 John Baldwin <jhb@FreeBSD.org>
7710
7711 * fbsd-nat.c (fbsd_pid_to_str): Adjust string format.
7712
7713 2016-01-22 Yao Qi <yao.qi@linaro.org>
7714
7715 * arm-linux-nat.c (fetch_fpregs): Call perror_with_name
7716 instead of warning.
7717 (store_fpregs, fetch_regs, store_regs): Likewise.
7718 (fetch_wmmx_regs, store_wmmx_regs): Likewise.
7719 (fetch_vfp_regs, store_vfp_regs): Likewise.
7720
7721 2016-01-21 Doug Evans <dje@google.com>
7722
7723 * breakpoint.c (init_breakpoint_sal): Add comment.
7724
7725 2016-01-21 Marcin Kościelnicki <koriakin@0x04.net>
7726
7727 * ax-gdb.c (gen_traced_pop): Use gen_fetch for string collection.
7728
7729 2016-01-21 Andrew Burgess <andrew.burgess@embecosm.com>
7730
7731 * disasm.c (maybe_add_dis_line_entry): Rename to...
7732 (add_dis_line_entry): ...this, and update header comment.
7733 (do_mixed_source_and_assembly): Now use add_dis_line_entry.
7734
7735 2016-01-21 Pedro Alves <palves@redhat.com>
7736
7737 * Makefile.in (COMPILER_CFLAGS): New.
7738 (CXXFLAGS): Get it from configure.
7739 (INTERNAL_CFLAGS_BASE, INTERNAL_LDFLAGS): Use COMPILER_CFLAGS
7740 instead of CFLAGS.
7741 * build-with-cxx.m4 (GDB_AC_BUILD_WITH_CXX): Set and AC_SUBST
7742 COMPILER_CFLAGS.
7743 * configure: Regenerate.
7744
7745 2016-01-21 Joel Brobecker <brobecker@adacore.com>
7746
7747 * location.h (new_address_location): Add new parameters
7748 "addr_string" and "addr_string_len".
7749 (get_address_string_location): Add declaration.
7750 * location.c (new_address_location): Add new parameters
7751 "addr_string" and "addr_string_len". If not NULL, store
7752 a copy of the addr_string in the new location as well.
7753 (get_address_string_location): New function.
7754 (string_to_event_location): Update call to new_address_location.
7755 * linespec.c (event_location_to_sals) <ADDRESS_LOCATION>:
7756 Save the event location in the parser's state before
7757 passing it to convert_address_location_to_sals.
7758 * breakpoint.c (create_thread_event_breakpoint): Update call
7759 to new_address_location.
7760 (init_breakpoint_sal): Get the event location's string, if any,
7761 and use it to update call to new_address_location.
7762 * python/py-finishbreakpoint.c (bpfinishpy_init):
7763 Update call to new_address_location.
7764 * spu-tdep.c (spu_catch_start): Likewise.
7765
7766 * config/djgpp/fnchange.lst: Add entries for
7767 gdb/testsuite/gdb.base/break-fun-addr1.c and
7768 gdb/testsuite/gdb.base/break-fun-addr2.c.
7769
7770 2016-01-21 Yao Qi <yao.qi@linaro.org>
7771
7772 * arm-linux-tdep.c (arm_linux_sigreturn_next_pc): Add parameter
7773 is_thumb and set it according to CPSR saved on the stack.
7774 (arm_linux_get_next_pcs_syscall_next_pc): Pass is_thumb to
7775 arm_linux_sigreturn_next_pc.
7776
7777 2016-01-20 Simon Marchi <simon.marchi@polymtl.ca>
7778
7779 * python/lib/gdb/printing.py (FlagEnumerationPrinter.__call__):
7780 Fix enumerators sort key function.
7781
7782 2016-01-20 Joel Brobecker <brobecker@adacore.com>
7783
7784 * printcmd.c (print_scalar_formatted): Move binary operator from
7785 end of line to beginning of next line. Adjust formatting
7786 accordingly.
7787
7788 2016-01-19 John Baldwin <jhb@FreeBSD.org>
7789
7790 * fbsd-nat.c (fbsd_pid_to_exec_file): Use new "buflen" instead of
7791 "len" with sysctl.
7792
7793 2016-01-19 John Baldwin <jhb@FreeBSD.org>
7794
7795 * fbsd-tdep.c (find_stop_signal): Remove.
7796 (struct fbsd_collect_regset_section_cb) <lwp>: New field.
7797 <stop_signal>: New field.
7798 <abort_iteration>: New field.
7799 (fbsd_collect_regset_section_cb): Use new fields.
7800 (fbsd_collect_thread_registers): New function.
7801 (struct fbsd_corefile_thread_data): New structure.
7802 (fbsd_corefile_thread): New function.
7803 (fbsd_make_corefile_notes): Use new function to dump notes for each
7804 non-exited thread in a process.
7805
7806 2016-01-19 John Baldwin <jhb@FreeBSD.org>
7807
7808 * configure.ac: Check for support for LWP names on FreeBSD.
7809 * fbsd-nat.c [PT_LWPINFO] New variable debug_fbsd_lwp.
7810 [TDP_RFPPWAIT || HAVE_STRUCT_PTRACE_LWPINFO_PL_TDNAME]
7811 (fbsd_fetch_kinfo_proc): Move function earlier.
7812 [PT_LWPINFO] (fbsd_thread_alive): New function.
7813 [PT_LWPINFO] (fbsd_pid_to_str): New function.
7814 [HAVE_STRUCT_PTRACE_LWPINFO_PL_TDNAME] (fbsd_thread_name): New function.
7815 [PT_LWP_EVENTS] (fbsd_enable_lwp_events): New function.
7816 [PT_LWPINFO] (fbsd_add_threads): New function.
7817 [PT_LWPINFO] (fbsd_update_thread_list): New function.
7818 [PT_LWPINFO] New variable super_resume.
7819 [PT_LWPINFO] (resume_one_thread_cb): New function.
7820 [PT_LWPINFO] (resume_all_threads_cb): New function.
7821 [PT_LWPINFO] (fbsd_resume): New function.
7822 (fbsd_remember_child): Save full ptid instead of plain pid.
7823 (fbsd_is_child_pending): Return ptid of saved child process.
7824 (fbsd_wait): Include lwp in returned ptid and switch to LWP ptid on
7825 first stop.
7826 [PT_LWP_EVENTS] Handle LWP events.
7827 [TDP_RFPPWAIT] Include LWP in child ptid.
7828 (fbsd_post_startup_inferior) [PT_LWP_EVENTS]: Enable LWP events.
7829 (fbsd_post_attach) [PT_LWP_EVENTS]: Enable LWP events.
7830 Add threads for existing processes.
7831 (fbsd_nat_add_target) [PT_LWPINFO]: Set "to_thread_alive" to
7832 "fbsd_thread_alive".
7833 Set "to_pid_to_str" to "fbsd_pid_to_str".
7834 [HAVE_STRUCT_PTRACE_LWPINFO_PL_TDNAME]: Set "to_thread_name" to
7835 "fbsd_thread_name".
7836 [PT_LWPINFO]: Set "to_update_thread_list" to "fbsd_update_thread_list".
7837 Set "to_has_thread_control" to "tc_schedlock".
7838 Set "to_resume" to "fbsd_resume".
7839 (_initialize_fbsd_nat): New function.
7840 * configure: Regenerate.
7841 * config.in: Regenerate.
7842
7843 2016-01-19 John Baldwin <jhb@FreeBSD.org>
7844
7845 * amd64bsd-nat.c (amd64bsd_fetch_inferior_registers): Use
7846 get_ptrace_pid.
7847 (amd64bsd_store_inferior_registers): Use get_ptrace_pid.
7848 (amd64bsd_dr_get): Use get_ptrace_pid.
7849 (amd64bsd_dr_set): Use get_ptrace_pid.
7850 * i386bsd-nat.c (i386bsd_fetch_inferior_registers): Use get_ptrace_pid.
7851 (i386bsd_store_inferior_registers): Use get_ptrace_pid.
7852 (i386bsd_dr_get): Use get_ptrace_pid.
7853 (i386bsd_dr_set): Use get_ptrace_pid.
7854 * inf-ptrace.c (get_ptrace_pid): Export.
7855 * inf-ptrace.h (get_ptrace_pid): Declare.
7856 * ppcfbsd-nat.c (ppcfbsd_fetch_inferior_registers): Use lwp id.
7857 (ppcfbsd_store_inferior_registers): Use lwp id.
7858
7859 2016-01-19 John Baldwin <jhb@FreeBSD.org>
7860
7861 * fbsd_tdep.c (fbsd_core_pid_to_str): New function.
7862 (fbsd_core_thread_name): New function.
7863 (fbsd_init_abi): Add "core_pid_to_str" gdbarch method.
7864 Add "core_thread_name" gdbarch method.
7865
7866 2016-01-19 John Baldwin <jhb@FreeBSD.org>
7867
7868 * corelow.c (core_thread_name): New function.
7869 (init_core_ops): Use "core_thread_name" for the "to_thread_name"
7870 target op.
7871 * gdbarch.sh (core_thread_name): New gdbarch callback.
7872 * gdbarch.h: Re-generate.
7873 * gdbarch.c: Re-generate.
7874
7875 2016-01-19 Simon Marchi <simon.marchi@polymtl.ca>
7876
7877 * python/lib/gdb/printing.py (_EnumInstance.to_string): Explicitly
7878 convert gdb.Value to integer type using int().
7879
7880 2016-01-19 John Baldwin <jhb@FreeBSD.org>
7881
7882 * configure.ac: Include <sys/types.h when checking for "r_fs" in
7883 "struct reg".
7884 * configure: Regenerate.
7885
7886 2016-01-19 Pedro Alves <palves@redhat.com>
7887
7888 * ax-gdb.c (agent_command_1): Adjust call to decode_line_full.
7889 * break-catch-throw.c (re_set_exception_catchpoint): Pass the
7890 current program space down to linespec decoding and breakpoint
7891 location updating.
7892 * breakpoint.c (parse_breakpoint_sals): Adjust calls to
7893 decode_line_full.
7894 (until_break_command): Adjust calls to decode_line_1.
7895 (base_breakpoint_decode_location, bkpt_decode_location): Add
7896 'search_pspace' parameter. Pass it along.
7897 (bkpt_probe_create_sals_from_location): Adjust calls to
7898 parse_probes.
7899 (tracepoint_decode_location, tracepoint_probe_decode_location)
7900 (strace_marker_decode_location): Add 'search_pspace' parameter.
7901 Pass it along.
7902 (all_locations_are_pending): Rewrite to take a breakpoint and
7903 program space as arguments instead.
7904 (hoist_existing_locations): New function.
7905 (update_breakpoint_locations): Add 'filter_pspace' parameter. Use
7906 hoist_existing_locations instead of always removing all locations,
7907 and adjust to all_locations_are_pending change.
7908 (location_to_sals): Add 'search_pspace' parameter. Pass it along.
7909 Don't disable the breakpoint if there are other locations in
7910 another program space.
7911 (breakpoint_re_set_default): Adjust to pass down the current
7912 program space as filter program space.
7913 (decode_location_default): Add 'search_pspace' parameter and pass
7914 it along.
7915 (prepare_re_set_context): Don't switch program space here.
7916 (breakpoint_re_set): Use save_current_space_and_thread instead of
7917 save_current_program_space.
7918 * breakpoint.h (struct breakpoint_ops) <decode_location>: Add
7919 'search_pspace' parameter.
7920 (update_breakpoint_locations): Add 'filter_pspace' parameter.
7921 * cli/cli-cmds.c (edit_command, list_command): Adjust calls to
7922 decode_line_1.
7923 * elfread.c (elf_gnu_ifunc_resolver_return_stop): Pass the current
7924 program space as filter program space.
7925 * linespec.c (struct linespec_state) <search_pspace>: New field.
7926 (create_sals_line_offset, convert_explicit_location_to_sals)
7927 (parse_linespec): Pass the search program space down.
7928 (linespec_state_constructor): Add 'search_pspace' parameter.
7929 Store it.
7930 (linespec_parser_new): Add 'search_pspace' parameter and pass it
7931 along.
7932 (linespec_lex_to_end): Adjust.
7933 (decode_line_full, decode_line_1): Add 'search_pspace' parameter
7934 and pass it along.
7935 (decode_line_with_last_displayed): Adjust.
7936 (collect_symtabs_from_filename, symtabs_from_filename): New
7937 'search_pspace' parameter. Use it.
7938 (find_function_symbols): Pass the search program space down.
7939 * linespec.h (decode_line_1, decode_line_full): Add
7940 'search_pspace' parameter.
7941 * probe.c (parse_probes_in_pspace): New function, factored out
7942 from ...
7943 (parse_probes): ... this. Add 'search_pspace' parameter and use
7944 it.
7945 * probe.h (parse_probes): Add pspace' parameter.
7946 * python/python.c (gdbpy_decode_line): Adjust.
7947 * tracepoint.c (scope_info): Adjust.
7948
7949 2016-01-18 Maciej W. Rozycki <macro@imgtec.com>
7950
7951 * mips-tdep.c (mips_insn_size): Remove 48-bit microMIPS
7952 instruction support.
7953 (micromips_next_pc): Likewise.
7954 (micromips_scan_prologue): Likewise.
7955 (micromips_deal_with_atomic_sequence): Likewise.
7956 (micromips_stack_frame_destroyed_p): Likewise.
7957 (mips_breakpoint_from_pc): Likewise.
7958
7959 2016-01-18 Maciej W. Rozycki <macro@imgtec.com>
7960
7961 * mips-tdep.c (micromips_insn_at_pc_has_delay_slot): Pass
7962 unshifted 16-bit microMIPS instruction word to `mips_insn_size'.
7963
7964 2016-01-18 Pedro Alves <palves@redhat.com>
7965
7966 * NEWS: Mention that GDB now displays the ID and name of the
7967 thread that hit a breakpoint or received a signal.
7968 * break-catch-sig.c (signal_catchpoint_print_it): Use
7969 maybe_print_thread_hit_breakpoint.
7970 * break-catch-syscall.c (print_it_catch_syscall): Likewise.
7971 * break-catch-throw.c (print_it_exception_catchpoint): Likewise.
7972 * breakpoint.c (maybe_print_thread_hit_breakpoint): New function.
7973 (print_it_catch_fork, print_it_catch_vfork, print_it_catch_solib)
7974 (print_it_catch_exec, print_it_ranged_breakpoint)
7975 (print_it_watchpoint, print_it_masked_watchpoint, bkpt_print_it):
7976 Use maybe_print_thread_hit_breakpoint.
7977 * breakpoint.h (maybe_print_thread_hit_breakpoint): Declare.
7978 * gdbthread.h (show_thread_that_caused_stop): Declare.
7979 * infrun.c (print_signal_received_reason): Print which thread
7980 received signal.
7981 * thread.c (show_thread_that_caused_stop): New function.
7982
7983 2016-01-18 Gary Benson <gbenson@redhat.com>
7984
7985 * nat/linux-namespaces.c (do_fork): New function.
7986 (linux_mntns_get_helper): Use the above.
7987
7988 2016-01-17 Jonas Hahnfeld <Hahnfeld@itc.rwth-aachen.de> (tiny change)
7989
7990 Pushed by Joel Brobecker <brobecker@adacore.com>.
7991 PR gdb/19208
7992 * dwarf2read.c (read_partial_die): Do not call set_objfile_main_name
7993 if the function has no name.
7994
7995 2016-01-15 Sandra Loosemore <sandra@codesourcery.com>
7996
7997 * charset.c [PHONY_ICONV] (GDB_DEFAULT_HOST_CHARSET):
7998 Conditionalize for Windows host.
7999 (GDB_DEFAULT_TARGET_CHARSET): Match GDB_DEFAULT_HOST_CHARSET.
8000 (GDB_DEFAULT_TARGET_WIDE_CHARSET): Use UTF-32.
8001 (phony_iconv_open): Handle both UTF-32 endiannesses.
8002 (phony_iconv): Likewise. Check for output overflow and clean up
8003 out-of-input cases. Correct adjustment to input buffer pointer.
8004 (set_be_le_names) [PHONY_ICONV]: Use hard-wired names to match
8005 phony_iconv_open.
8006
8007 2016-01-15 Pedro Alves <palves@redhat.com>
8008
8009 * NEWS: Mention star wildcard ranges.
8010 * cli/cli-utils.c (get_number_or_range): Check state->in_range first.
8011 (number_range_setup_range): New function.
8012 * cli/cli-utils.h (number_range_setup_range): New declaration.
8013 * thread.c (thread_apply_command): Support star TID ranges.
8014 * tid-parse.c (tid_range_parser_finished)
8015 (tid_range_parser_string, tid_range_parser_skip)
8016 (get_tid_or_range, get_tid_or_range): Handle
8017 TID_RANGE_STATE_STAR_RANGE.
8018 (tid_range_parser_star_range): New function.
8019 * tid-parse.h (enum tid_range_state) <TID_RANGE_STATE_STAR_RANGE>:
8020 New value.
8021 (tid_range_parser_star_range): New declaration.
8022
8023 2016-01-15 Pedro Alves <palves@redhat.com>
8024
8025 * thread.c (thread_apply_command): Use the tid range parser to
8026 advance past the thread ID list.
8027 * tid-parse.c (get_positive_number_trailer): New function.
8028 (parse_thread_id): Use it.
8029 (get_tid_or_range): Use it. Return 0 instead of throwing invalid
8030 thread ID error.
8031 (get_tid_or_range): Detect negative values. Return 0 instead of
8032 throwing invalid thread ID error.
8033
8034 2016-01-14 Yao Qi <yao.qi@linaro.org>
8035
8036 * arm-linux-tdep.c (arm_linux_get_next_pcs_syscall_next_pc):
8037 Declare.
8038 (arm_linux_get_next_pcs_ops): Install
8039 arm_linux_get_next_pcs_syscall_next_pc.
8040 (arm_linux_syscall_next_pc): Change to ...
8041 (arm_linux_get_next_pcs_syscall_next_pc): ... it.
8042 (arm_linux_init_abi): Don't set tdep->syscall_next_pc.
8043 * arm-tdep.c (arm_get_next_pcs_syscall_next_pc): Declare.
8044 (arm_get_next_pcs_syscall_next_pc): Make it static. Don't
8045 call tdep->syscall_next_pc.
8046 * arm-tdep.h (struct gdbarch_tdep) <syscall_next_pc>: Remove.
8047 (arm_get_next_pcs_syscall_next_pc): Remove.
8048
8049 2016-01-14 Yao Qi <yao.qi@linaro.org>
8050
8051 * remote.c (remote_set_syscall_catchpoint): Cast to char *.
8052 * thread.c (do_captured_thread_select): Cast to const char *.
8053
8054 2016-01-14 Yao Qi <yao.qi@linaro.org>
8055
8056 * arch/arm-get-next-pcs.c (arm_get_next_pcs_ctor): Change
8057 argument arm_thumb2_breakpoint to has_thumb2_breakpoint.
8058 (thumb_get_next_pcs_raw): Check has_thumb2_breakpoint
8059 instead.
8060 * arch/arm-get-next-pcs.h (struct arm_get_next_pcs)
8061 <arm_thumb2_breakpoint>: Remove.
8062 <has_thumb2_breakpoint>: New field.
8063 (arm_get_next_pcs_ctor): Update declaration.
8064 * arm-linux-tdep.c (arm_linux_software_single_step): Pass
8065 1 to arm_get_next_pcs_ctor.
8066 * arm-tdep.c (arm_software_single_step): Pass 0 to
8067 arm_get_next_pcs_ctor.
8068
8069 2016-01-13 Ulrich Weigand <uweigand@de.ibm.com>
8070
8071 * MAINTAINERS: Add Andreas Arnez as s390 target maintainer.
8072
8073 2016-01-13 Yao Qi <yao.qi@linaro.org>
8074
8075 * arch/arm-get-next-pcs.c (arm_get_next_pcs_raw): Use
8076 byte_order_for_code to read instruction.
8077
8078 2016-01-13 Pedro Alves <palves@redhat.com>
8079
8080 * NEWS: Mention $_gthread.
8081 * gdbthread.h (struct thread_info) <global_num>: Mention
8082 $_gthread.
8083 * thread.c (thread_num_make_value_helper): New function.
8084 (thread_id_make_value): Delete.
8085 (thread_id_per_inf_num_make_value, global_thread_id_make_value):
8086 New.
8087 (thread_funcs): Adjust.
8088 (gthread_funcs): New.
8089 (_initialize_thread): Register $_gthread variable.
8090
8091 2016-01-13 Pedro Alves <palves@redhat.com>
8092
8093 * NEWS: Mention "info threads -gid".
8094 * gdbthread.h (struct thread_info) <global_num>: Mention "info
8095 threads -gid".
8096 * thread.c (info_threads_command): Handle "-gid".
8097 (_initialize_thread): Adjust "info threads" help string to mention
8098 -gid.
8099
8100 2016-01-13 Pedro Alves <palves@redhat.com>
8101
8102 * NEWS: Mention InferiorThread.global_num.
8103 * python/py-infthread.c (thpy_get_global_num): New function.
8104 (thread_object_getset): Register "global_num".
8105
8106 2016-01-13 Pedro Alves <palves@redhat.com>
8107
8108 * NEWS: Mention that thread IDs are now per inferior and global
8109 thread IDs.
8110 * Makefile.in (SFILES): Add tid-parse.c.
8111 (COMMON_OBS): Add tid-parse.o.
8112 (HFILES_NO_SRCDIR): Add tid-parse.h.
8113 * ada-tasks.c: Adjust to use ptid_to_global_thread_id.
8114 * breakpoint.c (insert_breakpoint_locations)
8115 (remove_threaded_breakpoints, bpstat_check_breakpoint_conditions)
8116 (print_one_breakpoint_location, set_longjmp_breakpoint)
8117 (check_longjmp_breakpoint_for_call_dummy)
8118 (set_momentary_breakpoint): Adjust to use global IDs.
8119 (find_condition_and_thread, watch_command_1): Use parse_thread_id.
8120 (until_break_command, longjmp_bkpt_dtor)
8121 (breakpoint_re_set_thread, insert_single_step_breakpoint): Adjust
8122 to use global IDs.
8123 * dummy-frame.c (pop_dummy_frame_bpt): Adjust to use
8124 ptid_to_global_thread_id.
8125 * elfread.c (elf_gnu_ifunc_resolver_stop): Likewise.
8126 * gdbthread.h (struct thread_info): Rename field 'num' to
8127 'global_num. Add new fields 'per_inf_num' and 'inf'.
8128 (thread_id_to_pid): Rename thread_id_to_pid to
8129 global_thread_id_to_ptid.
8130 (pid_to_thread_id): Rename to ...
8131 (ptid_to_global_thread_id): ... this.
8132 (valid_thread_id): Rename to ...
8133 (valid_global_thread_id): ... this.
8134 (find_thread_id): Rename to ...
8135 (find_thread_global_id): ... this.
8136 (ALL_THREADS, ALL_THREADS_BY_INFERIOR): Declare.
8137 (print_thread_info): Add comment.
8138 * tid-parse.h: New file.
8139 * tid-parse.c: New file.
8140 * infcmd.c (step_command_fsm_prepare)
8141 (step_command_fsm_should_stop): Adjust to use the global thread
8142 ID.
8143 (until_next_command, until_next_command)
8144 (finish_command_fsm_should_stop): Adjust to use the global thread
8145 ID.
8146 (attach_post_wait): Adjust to check the inferior number too.
8147 * inferior.h (struct inferior) <highest_thread_num>: New field.
8148 * infrun.c (handle_signal_stop)
8149 (insert_exception_resume_breakpoint)
8150 (insert_exception_resume_from_probe): Adjust to use the global
8151 thread ID.
8152 * record-btrace.c (record_btrace_open): Use global thread IDs.
8153 * remote.c (process_initial_stop_replies): Also consider the
8154 inferior number.
8155 * target.c (target_pre_inferior): Clear the inferior's highest
8156 thread num.
8157 * thread.c (clear_thread_inferior_resources): Adjust to use the
8158 global thread ID.
8159 (new_thread): New inferior parameter. Adjust to use it. Set both
8160 the thread's global ID and the thread's per-inferior ID.
8161 (add_thread_silent): Adjust.
8162 (find_thread_global_id): New.
8163 (find_thread_id): Make static. Adjust to rename.
8164 (valid_thread_id): Rename to ...
8165 (valid_global_thread_id): ... this.
8166 (pid_to_thread_id): Rename to ...
8167 (ptid_to_global_thread_id): ... this.
8168 (thread_id_to_pid): Rename to ...
8169 (global_thread_id_to_ptid): ... this. Adjust.
8170 (first_thread_of_process): Adjust.
8171 (do_captured_list_thread_ids): Adjust to use global thread IDs.
8172 (should_print_thread): New function.
8173 (print_thread_info): Rename to ...
8174 (print_thread_info_1): ... this, and add new show_global_ids
8175 parameter. Handle it. Iterate over inferiors.
8176 (print_thread_info): Reimplement as wrapper around
8177 print_thread_info_1.
8178 (show_inferior_qualified_tids): New function.
8179 (print_thread_id): Use it.
8180 (tp_array_compar): Compare inferior numbers too.
8181 (thread_apply_command): Use tid_range_parser.
8182 (do_captured_thread_select): Use parse_thread_id.
8183 (thread_id_make_value): Adjust.
8184 (_initialize_thread): Adjust "info threads" help string.
8185 * varobj.c (struct varobj_root): Update comment.
8186 (varobj_create): Adjust to use global thread IDs.
8187 (value_of_root_1): Adjust to use global_thread_id_to_ptid.
8188 * windows-tdep.c (display_tib): No longer accept an argument.
8189 * cli/cli-utils.c (get_number_trailer): Make extern.
8190 * cli/cli-utils.h (get_number_trailer): Declare.
8191 (get_number_const): Adjust documentation.
8192 * mi/mi-cmd-var.c (mi_cmd_var_update_iter): Adjust to use global
8193 thread IDs.
8194 * mi/mi-interp.c (mi_new_thread, mi_thread_exit)
8195 (mi_on_normal_stop, mi_output_running_pid, mi_on_resume):
8196 * mi/mi-main.c (mi_execute_command, mi_cmd_execute): Likewise.
8197 * guile/scm-breakpoint.c (gdbscm_set_breakpoint_thread_x):
8198 Likewise.
8199 * python/py-breakpoint.c (bppy_set_thread): Likewise.
8200 * python/py-finishbreakpoint.c (bpfinishpy_init): Likewise.
8201 * python/py-infthread.c (thpy_get_num): Add comment and return the
8202 per-inferior thread ID.
8203 (thread_object_getset): Update comment of "num".
8204
8205 2016-01-13 Pedro Alves <palves@redhat.com>
8206
8207 * breakpoint.c (remove_threaded_breakpoints)
8208 (print_one_breakpoint_location): Use print_thread_id.
8209 * btrace.c (btrace_enable, btrace_disable, btrace_teardown)
8210 (btrace_fetch, btrace_clear): Use print_thread_id.
8211 * common/print-utils.c (CELLSIZE): Delete.
8212 (get_cell): Rename to ...
8213 (get_print_cell): ... this and made extern. Adjust call callers.
8214 Adjust to use PRINT_CELL_SIZE.
8215 * common/print-utils.h (get_print_cell): Declare.
8216 (PRINT_CELL_SIZE): New.
8217 * gdbthread.h (print_thread_id): Declare.
8218 * infcmd.c (signal_command): Use print_thread_id.
8219 * inferior.c (print_inferior): Use print_thread_id.
8220 * infrun.c (handle_signal_stop)
8221 (insert_exception_resume_breakpoint)
8222 (insert_exception_resume_from_probe)
8223 (print_signal_received_reason): Use print_thread_id.
8224 * record-btrace.c (record_btrace_info)
8225 (record_btrace_resume_thread, record_btrace_cancel_resume)
8226 (record_btrace_step_thread, record_btrace_wait): Use
8227 print_thread_id.
8228 * thread.c (thread_apply_all_command): Use print_thread_id.
8229 (print_thread_id): New function.
8230 (thread_apply_command): Use print_thread_id.
8231 (thread_command, thread_find_command, do_captured_thread_select):
8232 Use print_thread_id.
8233
8234 2016-01-13 Pedro Alves <palves@redhat.com>
8235
8236 * NEWS: Mention InferiorThread.inferior.
8237 * python/py-infthread.c (thpy_get_inferior): New.
8238 (thread_object_getset): Register "inferior".
8239
8240 2016-01-13 Pedro Alves <palves@redhat.com>
8241
8242 * NEWS: Mention $_inferior.
8243 * inferior.c (inferior_id_make_value): New.
8244 (inferior_funcs): New.
8245 (_initialize_inferior): Create $_inferior variable.
8246
8247 2016-01-13 Pedro Alves <palves@redhat.com>
8248
8249 PR breakpoints/19388
8250 * frame.c (get_current_frame): Use validate_registers_access.
8251 * gdbthread.h (validate_registers_access): Declare.
8252 * infrun.c (validate_siginfo_access): Delete.
8253 (siginfo_value_read, siginfo_value_write): Use
8254 validate_registers_access.
8255 * thread.c (validate_registers_access): New function.
8256
8257 2016-01-12 Josh Stone <jistone@redhat.com>
8258 Philippe Waroquiers <philippe.waroquiers@skynet.be>
8259
8260 * NEWS (Changes since GDB 7.10): Mention QCatchSyscalls and the
8261 syscall_entry and syscall_return stop reasons. Mention GDB
8262 support for remote catch syscall.
8263 * remote.c (PACKET_QCatchSyscalls): New enum.
8264 (remote_set_syscall_catchpoint): New function.
8265 (remote_protocol_features): New element for QCatchSyscalls.
8266 (remote_parse_stop_reply): Parse syscall_entry/return stops.
8267 (init_remote_ops): Install remote_set_syscall_catchpoint.
8268 (_initialize_remote): Config QCatchSyscalls.
8269 * linux-nat.h (struct lwp_info) <syscall_state>: Comment typo.
8270
8271 2016-01-12 Yao Qi <yao.qi@linaro.org>
8272
8273 * nat/linux-ptrace.c (linux_child_function): Cast child_stack
8274 to gdb_byte * and pass to linux_fork_to_function.
8275
8276 2016-01-12 Yao Qi <yao.qi@linaro.org>
8277
8278 * nat/linux-ptrace.c (linux_fork_to_function): Change type
8279 of argument 'function'.
8280 (linux_grandchild_function): Change return type to 'int'.
8281 Change child_stack's type to 'void *'.
8282 (linux_child_function): Likewise.
8283
8284 2016-01-12 Pedro Alves <palves@redhat.com>
8285
8286 Remove use of the registered trademark symbol throughout.
8287
8288 2016-01-12 Thomas Schwinge <thomas@codesourcery.com>
8289
8290 * reply_mig_hack.awk: Rewrite one regular expression.
8291
8292 2016-01-11 Mike Frysinger <vapier@gentoo.org>
8293
8294 * acinclude.m4: Include new warning.m4 file.
8295 * configure: Regenerated.
8296 * configure.ac: Move all warning logic ...
8297 * warning.m4: ... here.
8298
8299 2016-01-08 Yao Qi <yao.qi@linaro.org>
8300
8301 * extension.c: Include target.h.
8302 (set_active_ext_lang): Only call install_gdb_sigint_handler,
8303 check_quit_flag, and set_quit_flag if target_terminal_is_ours
8304 returns false.
8305 (restore_active_ext_lang): Likewise.
8306 * target.c (target_terminal_is_ours): New function.
8307 * target.h (target_terminal_is_ours): Declare.
8308
8309 2016-01-07 Maciej W. Rozycki <macro@imgtec.com>
8310
8311 * mips-tdep.c (mips_breakpoint_from_pc): Rename local `status'
8312 to `err' in the little-endian leg.
8313
8314 2016-01-06 Yao Qi <yao.qi@linaro.org>
8315
8316 * arch/arm-get-next-pcs.c (arm_get_next_pcs): Move it to some
8317 lines below.
8318 (thumb_get_next_pcs_raw): Make it static.
8319 (arm_get_next_pcs_raw): Likewise.
8320 * arch/arm-get-next-pcs.h (thumb_get_next_pcs_raw): Remove the
8321 declaration.
8322 (arm_get_next_pcs_raw): Likewise.
8323
8324 2016-01-05 Mike Frysinger <vapier@gentoo.org>
8325
8326 * version.in: Change cvs to git.
8327
8328 2016-01-05 Mike Frysinger <vapier@gentoo.org>
8329
8330 * configure.tgt (score-*-*): Delete gdb_sim assignment.
8331
8332 2016-01-05 Pedro Alves <palves@redhat.com>
8333
8334 PR sim/13418
8335 * configure.ac: Define WITH_PPC_SIM when linking in the sim and
8336 the target is powerpc*.
8337 * rs6000-tdep.c (init_sim_regno_table): Check WITH_PPC_SIM instead
8338 of WITH_SIM.
8339 * configure: Regenerate.
8340 * config.in: Regenerate.
8341
8342 2016-01-04 Markus Metzger <markus.t.metzger@intel.com>
8343
8344 * btrace.c (btrace_pt_readmem_callback): Do not return in TRY/CATCH.
8345
8346 2016-01-02 Mike Frysinger <vapier@gentoo.org>
8347
8348 * configure.tgt (powerpc*-*-*): Delete test call and
8349 always assign gdb_sim.
8350
8351 2016-01-01 Joel Brobecker <brobecker@adacore.com>
8352
8353 Update year range in copyright notice of all files.
8354
8355 2016-01-01 Joel Brobecker <brobecker@adacore.com>
8356
8357 * top.c (print_gdb_version): Change copyright year in version
8358 message.
8359
8360 2016-01-01 Joel Brobecker <brobecker@adacore.com>
8361
8362 * config/djgpp/fnchange.lst: Add entry for gdb/ChangeLog-2015.
8363
8364 For older changes see ChangeLog-2015.
8365 \f
8366 Local Variables:
8367 mode: change-log
8368 left-margin: 8
8369 fill-column: 74
8370 version-control: never
8371 coding: utf-8
8372 End: