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