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