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