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