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