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