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