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