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