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