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