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