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