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