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