d08372b03fd0f44a1acde4d6f15d3e94da33436a
[deliverable/binutils-gdb.git] / gdb / ChangeLog
1 2016-05-24 Pedro Alves <palves@redhat.com>
2
3 PR gdb/19828
4 * linux-nat.c (lwp_lwpid_htab): New htab.
5 (lwp_info_hash, lwp_lwpid_htab_eq, lwp_lwpid_htab_create)
6 (lwp_lwpid_htab_add_lwp): New functions.
7 (lwp_list): Tweak comment.
8 (lwp_list_add, lwp_list_remove, lwp_lwpid_htab_remove_pid): New
9 functions.
10 (purge_lwp_list): Rewrite, using htab_traverse_noresize.
11 (add_initial_lwp): Add lwp to htab too. Use lwp_list_add.
12 (delete_lwp): Use lwp_list_remove. Remove htab too.
13 (find_lwp_pid): Search in htab.
14 (_initialize_linux_nat): Call lwp_lwpid_htab_create.
15 * linux-nat.h (struct lwp_info) <prev>: New field.
16
17 2016-05-24 Pedro Alves <palves@redhat.com>
18
19 PR gdb/19828
20 * linux-nat.c (lwp_lwpid_htab): New htab.
21 (lwp_info_hash, lwp_lwpid_htab_eq, lwp_lwpid_htab_create)
22 (lwp_lwpid_htab_add_lwp): New functions.
23 (lwp_list): Tweak comment.
24 (lwp_list_add, lwp_list_remove, lwp_lwpid_htab_remove_pid): New
25 functions.
26 (purge_lwp_list): Rewrite, using htab_traverse_noresize.
27 (add_initial_lwp): Add lwp to htab too. Use lwp_list_add.
28 (delete_lwp): Use lwp_list_remove. Remove htab too.
29 (find_lwp_pid): Search in htab.
30 (_initialize_linux_nat): Call lwp_lwpid_htab_create.
31 * linux-nat.h (struct lwp_info) <prev>: New field.
32
33 2016-05-24 Pedro Alves <palves@redhat.com>
34
35 PR gdb/19828
36 * linux-nat.c (linux_resume_one_lwp_throw): Clear the LWP's core
37 field.
38 (linux_nat_update_thread_list): Don't fetch the core if already
39 known.
40
41 2016-05-24 Pedro Alves <palves@redhat.com>
42
43 PR gdb/19828
44 * linux-tdep.c (find_mapping_size): Delete.
45 (linux_vsyscall_range_raw): Rewrite reading from
46 /proc/PID/task/PID/maps directly instead of using
47 gdbarch_find_memory_regions.
48
49 2016-05-24 Pedro Alves <palves@redhat.com>
50
51 PR gdb/19828
52 * linux-nat.c (report_thread_events): New global.
53 (linux_handle_extended_wait): Report
54 TARGET_WAITKIND_THREAD_CREATED if thread event reporting is
55 enabled.
56 (wait_lwp, linux_nat_filter_event): Report all thread exits if
57 thread event reporting is enabled. Remove comment.
58 (filter_exit_event): New function.
59 (linux_nat_wait_1): Use it.
60 (linux_nat_thread_events): New function.
61 (linux_nat_add_target): Install it as target_thread_events method.
62
63 2016-05-24 Yan-Ting Lin <currygt52@gmail.com>
64
65 * MAINTAINERS (Write After Approval): Add "Yan-Ting Lin".
66
67 2016-05-23 Yao Qi <yao.qi@arm.com>
68
69 * arch-utils.c (default_code_of_frame_writable): New function.
70 * arch-utils.h (default_code_of_frame_writable): Declare.
71 * arm-tdep.c (arm_code_of_frame_writable): New function.
72 (arm_gdbarch_init): Install gdbarch method
73 code_of_frame_writable if the target is M-profile.
74 * frame.c (skip_unwritable_frames): New function.
75 * frame.h (skip_unwritable_frames): Declare.
76 * gdbarch.sh (code_of_frame_writable): New.
77 * gdbarch.c, gdbarch.h: Re-generated.
78 * infcmd.c (finish_command): Call skip_unwritable_frames.
79
80 2016-05-23 Tom Tromey <tom@tromey.com>
81
82 PR python/19438, PR python/18393:
83 * python/py-objfile.c (objfpy_initialize): Initialize self->dict.
84 * python/py-progspace.c (pspy_initialize): Initialize self->dict.
85
86 2016-05-23 Gary Benson <gbenson@redhat.com>
87
88 * nat/gdb_thread_db.h (td_thr_validate_ftype): Remove typedef.
89 * linux-thread-db.c (struct thread_db_info) <td_thr_validate_p>:
90 Remove field.
91 (try_thread_db_load_1): Remove td_thr_validate initialization.
92
93 2016-05-23 Jon Boden <jon@ubuntubsd.org> (tiny change)
94
95 * configure.ac: Search for libutil-freebsd as alternative to libutil.
96 * configure: Re-generated.
97
98 2016-05-19 Andreas Schwab <schwab@suse.de>
99
100 * ia64-libunwind-tdep.c (libunwind_descr): Add cast from void *.
101 (libunwind_frame_set_descr): Likewise.
102 (libunwind_frame_cache): Likewise.
103 (libunwind_frame_dealloc_cache): Likewise.
104 (libunwind_frame_sniffer): Likewise.
105 (libunwind_search_unwind_table): Likewise.
106 (libunwind_sigtramp_frame_sniffer): Likewise.
107 (libunwind_get_reg_special): Likewise.
108 (libunwind_load): Likewise.
109 * ia64-linux-nat.c (ia64_linux_fetch_register): Likewise.
110 (ia64_linux_store_register): Likewise.
111 (ia64_linux_xfer_partial): Likewise.
112 * ia64-tdep.c (ia64_access_reg): Likewise.
113 (ia64_access_fpreg): Likewise.
114 (ia64_access_rse_reg): Likewise.
115 (ia64_access_rse_fpreg): Likewise.
116
117 2016-05-18 Tom Tromey <tom@tromey.com>
118
119 * rust-lang.c (rust_subscript): Initialize "high".
120
121 2016-05-17 Simon Marchi <simon.marchi@ericsson.com>
122
123 PR gdb/20045
124 * mi/mi-main.c (mi_on_resume): Call target_can_async_p instead
125 of target_is_async_p.
126
127 2016-05-17 Simon Marchi <simon.marchi@ericsson.com>
128
129 PR gdb/18077
130 * mi/mi-main.c (run_one_inferior): Use run target to determine
131 whether to run async or not.
132 (mi_cmd_exec_run): Likewise.
133
134 2016-05-17 Tom Tromey <tom@tromey.com>
135
136 * std-operator.def (OP_RANGE): Rename from OP_F90_RANGE.
137 * rust-lang.c: Don't include f-lang.h.
138 (rust_range, rust_compute_range, rust_subscript)
139 (rust_evaluate_subexp): Update.
140 * rust-exp.y: Don't include f-lang.h.
141 (ast_range, convert_ast_to_expression): Update.
142 * parse.c (operator_length_standard): Update.
143 * f-lang.h (enum f90_range_type): Move to expression.h.
144 * f-exp.y: Use OP_RANGE.
145 * expression.h (enum range_type): New enum; renamed from
146 f90_range_type.
147 * expprint.c: Don't include f-lang.h.
148 (print_subexp_standard, dump_subexp_body_standard): Use OP_RANGE.
149 * eval.c (value_f90_subarray, evaluate_subexp_standard): Update.
150
151 2016-05-17 Tom Tromey <tom@tromey.com>
152
153 * NEWS: Add Rust item.
154
155 2016-05-17 Tom Tromey <tom@tromey.com>
156 Manish Goregaokar <manishsmail@gmail.com>
157
158 * symtab.c (symbol_find_demangled_name): Handle Rust.
159 * symfile.c (init_filename_language_table): Treat ".rs" as Rust.
160 * std-operator.def (STRUCTOP_ANONYMOUS, OP_RUST_ARRAY): New
161 constants.
162 * rust-lang.h: New file.
163 * rust-lang.c: New file.
164 * rust-exp.y: New file.
165 * dwarf2read.c (read_file_scope): Add Rust producer sniffing.
166 (dwarf2_compute_name, read_func_scope, read_structure_type)
167 (read_base_type, read_subrange_type, set_cu_language)
168 (new_symbol_full, determine_prefix): Handle Rust.
169 * defs.h (enum language) <language_rust>: New constant.
170 * Makefile.in (SFILES): Add rust-exp.y, rust-lang.c.
171 (COMMON_OBS): Add rust-exp.o, rust-lang.o.
172
173 2016-05-17 Tom Tromey <tom@tromey.com>
174
175 * valprint.h (struct generic_val_print_array) <array_start,
176 array_end>: New fields.
177 * valprint.c (generic_val_print_array): Add "decorations"
178 parameter. Use "array_start", "array_end".
179 (generic_val_print) <TYPE_CODE_ARRAY>: Update.
180 * p-valprint.c (p_decorations): Update.
181 * m2-valprint.c (m2_decorations): Update.
182 * f-valprint.c (f_decorations): Update.
183 * c-valprint.c (c_decorations): Update.
184
185 2016-05-17 Tom Tromey <tom@tromey.com>
186
187 * NEWS: Add "maint selftest" entry.
188 * selftest.h: New file.
189 * selftest.c: New file.
190 * maint.c: Include selftest.h.
191 (maintenance_selftest): New function.
192 (_initialize_maint_cmds): Add "maint selftest" command.
193 * configure.ac (GDB_SELF_TEST): Maybe define.
194 * config.in, configure: Rebuild.
195 * Makefile.in (SFILES): Add selftest.c.
196 (COMMON_OBS): Add selftest.o.
197
198 2016-05-17 Tom Tromey <tom@tromey.com>
199
200 * expprint.c: Include f-lang.h.
201 (print_subexp_standard, dump_subexp_body_standard): Handle
202 OP_F90_RANGE.
203
204 2016-05-17 Tom Tromey <tom@tromey.com>
205
206 * Makefile.in (init.c): Search .y files for initialization
207 functions.
208
209 2016-05-12 Doug Evans <dje@google.com>
210
211 PR symtab/19999
212 * dwarf2loc.c (dwarf2_find_location_expression): For DWO files still
213 add base_offset.
214
215 2016-05-10 Trevor Saunders <tbsaunde+binutils@tbsaunde.org>
216
217 * iq2000-tdep.c (iq2000_scan_prologue): Remove if that shouldn't guard
218 anything.
219 * linespec.c (add_sal_to_sals): Restore call to symtab_to_fullname.
220
221 2016-05-10 Thomas Preud'homme <thomas.preudhomme@arm.com>
222
223 * arm-tdep.c (arm_elf_make_msymbol_special): Use
224 ARM_GET_SYM_BRANCH_TYPE to get branch type of a symbol.
225
226 2016-05-07 Trevor Saunders <tbsaunde+binutils@tbsaunde.org>
227
228 * aarch64-linux-tdep.c (aarch64_linux_sigframe_init): Remove unused
229 variables.
230 * aarch64-tdep.c (aarch64_skip_prologue): Likewise.
231 (aarch64_scan_prologue): Likewise.
232 (aarch64_prologue_prev_register): Likewise.
233 (aarch64_dwarf2_prev_register): Likewise.
234 (pass_in_v): Likewise.
235 (aarch64_push_dummy_call): Likewise.
236 (aarch64_breakpoint_from_pc): Likewise.
237 (aarch64_return_in_memory): Likewise.
238 (aarch64_return_value): Likewise.
239 (aarch64_displaced_step_b_cond): Likewise.
240 (aarch64_displaced_step_cb): Likewise.
241 (aarch64_displaced_step_tb): Likewise.
242 (aarch64_gdbarch_init): Likewise.
243 (aarch64_process_record): Likewise.
244 * alpha-mdebug-tdep.c (alpha_mdebug_init_abi): Likewise.
245 * alpha-tdep.c (_initialize_alpha_tdep): Likewise.
246 * amd64-dicos-tdep.c (amd64_dicos_init_abi): Likewise.
247 * amd64-linux-tdep.c (amd64_dtrace_parse_probe_argument): Likewise.
248 * amd64-tdep.c (fixup_riprel): Likewise.
249 * amd64-windows-tdep.c (amd64_windows_frame_decode_epilogue): Likewise.
250 (amd64_windows_frame_decode_insns): Likewise.
251 (amd64_windows_frame_cache): Likewise.
252 (amd64_windows_frame_prev_register): Likewise.
253 (amd64_windows_frame_this_id): Likewise.
254 (amd64_windows_init_abi): Likewise.
255 * arm-linux-tdep.c (arm_linux_get_syscall_number): Likewise.
256 (arm_linux_get_next_pcs_syscall_next_pc): Likewise.
257 * arm-symbian-tdep.c (arm_symbian_init_abi): Likewise.
258 * arm-tdep.c (arm_make_epilogue_frame_cache): Likewise.
259 (arm_epilogue_frame_prev_register): Likewise.
260 (arm_record_vdata_transfer_insn): Likewise.
261 (arm_record_exreg_ld_st_insn): Likewise.
262 * auto-load.c (execute_script_contents): Likewise.
263 (print_scripts): Likewise.
264 * avr-tdep.c (avr_frame_prev_register): Likewise.
265 (avr_push_dummy_call): Likewise.
266 * bfin-linux-tdep.c (bfin_linux_sigframe_init): Likewise.
267 * bfin-tdep.c (bfin_gdbarch_init): Likewise.
268 * blockframe.c (find_pc_partial_function_gnu_ifunc): Likewise.
269 * break-catch-throw.c (fetch_probe_arguments): Likewise.
270 * breakpoint.c (breakpoint_xfer_memory): Likewise.
271 (breakpoint_init_inferior): Likewise.
272 (breakpoint_inserted_here_p): Likewise.
273 (software_breakpoint_inserted_here_p): Likewise.
274 (hardware_breakpoint_inserted_here_p): Likewise.
275 (bpstat_what): Likewise.
276 (break_range_command): Likewise.
277 (save_breakpoints): Likewise.
278 * coffread.c (coff_symfile_read): Likewise.
279 * cris-tdep.c (cris_push_dummy_call): Likewise.
280 (cris_scan_prologue): Likewise.
281 (cris_register_size): Likewise.
282 (_initialize_cris_tdep): Likewise.
283 * d-exp.y: Likewise.
284 * dbxread.c (dbx_read_symtab): Likewise.
285 (process_one_symbol): Likewise.
286 (coffstab_build_psymtabs): Likewise.
287 (elfstab_build_psymtabs): Likewise.
288 * dicos-tdep.c (dicos_init_abi): Likewise.
289 * disasm.c (do_mixed_source_and_assembly): Likewise.
290 (gdb_disassembly): Likewise.
291 * dtrace-probe.c (dtrace_process_dof): Likewise.
292 * dwarf2read.c (error_check_comp_unit_head): Likewise.
293 (build_type_psymtabs_1): Likewise.
294 (skip_one_die): Likewise.
295 (process_imported_unit_die): Likewise.
296 (dwarf2_physname): Likewise.
297 (read_file_scope): Likewise.
298 (setup_type_unit_groups): Likewise.
299 (create_dwo_cu_reader): Likewise.
300 (create_dwo_cu): Likewise.
301 (create_dwo_unit_in_dwp_v1): Likewise.
302 (create_dwo_unit_in_dwp_v2): Likewise.
303 (lookup_dwo_unit_in_dwp): Likewise.
304 (free_dwo_file): Likewise.
305 (check_producer): Likewise.
306 (dwarf2_add_typedef): Likewise.
307 (dwarf2_add_member_fn): Likewise.
308 (read_unsigned_leb128): Likewise.
309 (read_signed_leb128): Likewise.
310 (dwarf2_const_value): Likewise.
311 (follow_die_sig_1): Likewise.
312 (dwarf_decode_macro_bytes): Likewise.
313 * extension.c (restore_active_ext_lang): Likewise.
314 * frv-linux-tdep.c (frv_linux_sigtramp_frame_cache): Likewise.
315 * ft32-tdep.c (ft32_analyze_prologue): Likewise.
316 * gdbtypes.c (lookup_typename): Likewise.
317 (resolve_dynamic_range): Likewise.
318 (check_typedef): Likewise.
319 * h8300-tdep.c (h8300_is_argument_spill): Likewise.
320 (h8300_gdbarch_init): Likewise.
321 * hppa-tdep.c (hppa32_push_dummy_call): Likewise.
322 (hppa_frame_this_id): Likewise.
323 (_initialize_hppa_tdep): Likewise.
324 * hppanbsd-tdep.c (hppanbsd_sigtramp_cache_init): Likewise.
325 * hppaobsd-tdep.c (hppaobsd_supply_fpregset): Likewise.
326 * i386-dicos-tdep.c (i386_dicos_init_abi): Likewise.
327 * i386-tdep.c (i386_bnd_type): Likewise.
328 (i386_gdbarch_init): Likewise.
329 (i386_mpx_bd_base): Likewise.
330 * i386nbsd-tdep.c (i386nbsd_sigtramp_cache_init): Likewise.
331 * i386obsd-tdep.c (i386obsd_elf_init_abi): Likewise.
332 * ia64-tdep.c (examine_prologue): Likewise.
333 (ia64_frame_cache): Likewise.
334 (ia64_push_dummy_call): Likewise.
335 * infcmd.c (finish_command_fsm_async_reply_reason): Likewise.
336 (default_print_one_register_info): Likewise.
337 * infrun.c (infrun_thread_ptid_changed): Likewise.
338 (thread_still_needs_step_over): Likewise.
339 (stop_all_threads): Likewise.
340 (restart_threads): Likewise.
341 (keep_going_stepped_thread): Likewise.
342 * iq2000-tdep.c (iq2000_scan_prologue): Likewise.
343 * language.c (language_init_primitive_type_symbols): Likewise.
344 * linespec.c (add_sal_to_sals): Likewise.
345 * linux-nat.c (status_callback): Likewise.
346 (kill_unfollowed_fork_children): Likewise.
347 (linux_nat_kill): Likewise.
348 * linux-tdep.c (linux_fill_prpsinfo): Likewise.
349 * linux-thread-db.c (thread_db_notice_clone): Likewise.
350 (record_thread): Likewise.
351 * location.c (string_to_event_location_basic): Likewise.
352 * m32c-tdep.c (m32c_prev_register): Likewise.
353 * m32r-linux-tdep.c (m32r_linux_init_abi): Likewise.
354 * m32r-tdep.c (decode_prologue): Likewise.
355 * m68klinux-tdep.c (m68k_linux_sigtramp_frame_cache): Likewise.
356 * machoread.c (macho_symtab_read): Likewise.
357 (macho_symfile_read): Likewise.
358 (macho_symfile_offsets): Likewise.
359 * maint.c (set_per_command_cmd): Likewise.
360 * mi/mi-cmd-stack.c (mi_cmd_stack_list_locals): Likewise.
361 (mi_cmd_stack_list_variables): Likewise.
362 * mi/mi-main.c (mi_cmd_exec_run): Likewise.
363 (output_register): Likewise.
364 (mi_cmd_execute): Likewise.
365 (mi_cmd_trace_define_variable): Likewise.
366 (print_variable_or_computed): Likewise.
367 * minsyms.c (prim_record_minimal_symbol_full): Likewise.
368 * mn10300-tdep.c (mn10300_frame_prev_register): Likewise.
369 * msp430-tdep.c (msp430_pseudo_register_write): Likewise.
370 * mt-tdep.c (mt_registers_info): Likewise.
371 * nios2-tdep.c (nios2_analyze_prologue): Likewise.
372 (nios2_push_dummy_call): Likewise.
373 (nios2_frame_unwind_cache): Likewise.
374 (nios2_stub_frame_cache): Likewise.
375 (nios2_stub_frame_sniffer): Likewise.
376 (nios2_gdbarch_init): Likewise.
377 * ppc-ravenscar-thread.c: Likewise.
378 * ppcfbsd-tdep.c (ppcfbsd_sigtramp_frame_cache): Likewise.
379 * python/py-evts.c (add_new_registry): Likewise.
380 * python/py-finishbreakpoint.c (bpfinishpy_init): Likewise.
381 (bpfinishpy_detect_out_scope_cb): Likewise.
382 * python/py-framefilter.c (py_print_value): Likewise.
383 * python/py-inferior.c (infpy_write_memory): Likewise.
384 * python/py-infevents.c (create_inferior_call_event_object): Likewise.
385 * python/py-infthread.c (thpy_get_ptid): Likewise.
386 * python/py-linetable.c (ltpy_get_pcs_for_line): Likewise.
387 (ltpy_get_all_source_lines): Likewise.
388 (ltpy_is_valid): Likewise.
389 (ltpy_iternext): Likewise.
390 * python/py-symtab.c (symtab_and_line_to_sal_object): Likewise.
391 * python/py-unwind.c (pyuw_object_attribute_to_pointer): Likewise.
392 (unwind_infopy_str): Likewise.
393 * python/py-varobj.c (py_varobj_get_iterator): Likewise.
394 * ravenscar-thread.c (ravenscar_inferior_created): Likewise.
395 * rs6000-aix-tdep.c (rs6000_push_dummy_call): Likewise.
396 * rs6000-lynx178-tdep.c (rs6000_lynx178_push_dummy_call): Likewise.
397 * rs6000-tdep.c (ppc_deal_with_atomic_sequence): Likewise.
398 * s390-linux-tdep.c (s390_supply_tdb_regset): Likewise.
399 (s390_frame_prev_register): Likewise.
400 (s390_dwarf2_frame_init_reg): Likewise.
401 (s390_record_vr): Likewise.
402 (s390_process_record): Likewise.
403 * score-tdep.c (score_push_dummy_call): Likewise.
404 (score3_analyze_prologue): Likewise.
405 * sh-tdep.c (sh_extract_return_value_nofpu): Likewise.
406 * sh64-tdep.c (sh64_analyze_prologue): Likewise.
407 (sh64_push_dummy_call): Likewise.
408 (sh64_extract_return_value): Likewise.
409 (sh64_do_fp_register): Likewise.
410 * solib-aix.c (solib_aix_get_section_offsets): Likewise.
411 * solib-darwin.c (darwin_read_exec_load_addr_from_dyld): Likewise.
412 (darwin_solib_read_all_image_info_addr): Likewise.
413 * solib-dsbt.c (enable_break): Likewise.
414 * solib-frv.c (enable_break2): Likewise.
415 (frv_fdpic_find_canonical_descriptor): Likewise.
416 * solib-svr4.c (svr4_handle_solib_event): Likewise.
417 * sparc-tdep.c (sparc_skip_stack_check): Likewise.
418 * sparc64-linux-tdep.c (sparc64_linux_get_longjmp_target): Likewise.
419 * sparcobsd-tdep.c (sparc32obsd_init_abi): Likewise.
420 * spu-tdep.c (info_spu_dma_cmdlist): Likewise.
421 * stack.c (read_frame_local): Likewise.
422 * symfile.c (symbol_file_add_separate): Likewise.
423 (remove_symbol_file_command): Likewise.
424 * symmisc.c (maintenance_print_one_line_table): Likewise.
425 * symtab.c (symbol_cache_flush): Likewise.
426 (basic_lookup_transparent_type): Likewise.
427 (sort_search_symbols_remove_dups): Likewise.
428 * target.c (target_memory_map): Likewise.
429 (target_detach): Likewise.
430 (target_resume): Likewise.
431 (acquire_fileio_fd): Likewise.
432 (target_store_registers): Likewise.
433 * thread.c (print_thread_info_1): Likewise.
434 * tic6x-tdep.c (tic6x_analyze_prologue): Likewise.
435 * tilegx-linux-tdep.c (tilegx_linux_sigframe_init): Likewise.
436 * tilegx-tdep.c (tilegx_push_dummy_call): Likewise.
437 (tilegx_analyze_prologue): Likewise.
438 (tilegx_stack_frame_destroyed_p): Likewise.
439 (tilegx_frame_cache): Likewise.
440 * tracefile.c (trace_save): Likewise.
441 * tracepoint.c (encode_actions_and_make_cleanup): Likewise.
442 (start_tracing): Likewise.
443 (print_one_static_tracepoint_marker): Likewise.
444 * tui/tui.c (tui_enable): Likewise.
445 * valops.c (value_struct_elt_bitpos): Likewise.
446 (find_overload_match): Likewise.
447 (find_oload_champ): Likewise.
448 * value.c (value_contents_copy_raw): Likewise.
449 * windows-tdep.c (windows_get_tlb_type): Likewise.
450 * x86-linux-nat.c (x86_linux_enable_btrace): Likewise.
451 * xcoffread.c (record_minimal_symbol): Likewise.
452 (scan_xcoff_symtab): Likewise.
453 * xtensa-tdep.c (execute_code): Likewise.
454 (xtensa_gdbarch_init): Likewise.
455 (_initialize_xtensa_tdep): Likewise.
456
457 2016-05-04 Ulrich Weigand <uweigand@de.ibm.com>
458
459 * spu-linux-nat.c (spu_bfd_iovec_pread): Add pointer cast for C++.
460 (spu_bfd_open): Likewise.
461
462 2016-05-04 Yao Qi <yao.qi@linaro.org>
463
464 PR gdb/19947
465 * corefile.c (read_memory): Rename it to ...
466 (read_memory_object): ... it. Add parameter object.
467 (read_memory): Call read_memory_object.
468 (read_stack): Likewise.
469 (read_code): Likewise.
470
471 2016-05-03 Yunlian Jiang <yunlian@google.com>
472 Doug Evans <dje@google.com>
473
474 PR symtab/19914
475 * dwarf2read.c (open_and_init_dwp_file): Look at backlink if objfile
476 is separate debug file.
477
478 2016-05-03 Don Breazeal <donb@codesourcery.com>
479
480 * serial.h (gdb_pipe): Fix argument names in comment.
481
482 2016-05-03 Pedro Alves <palves@redhat.com>
483
484 PR python/20037
485 * python/python.c (_initialize_python) [IS_PY3K]: xstrdup/xfree
486 oldloc.
487
488 2016-05-03 Pedro Alves <palves@redhat.com>
489
490 * python/python.c (_initialize_python) [IS_PY3K]: Remove dead
491 code.
492
493 2016-05-03 Pedro Alves <palves@redhat.com>
494
495 * configure.ac (PYTHON_LIBS): Sed away "-Xlinker -export-dynamic".
496 * configure: Regenerate.
497
498 2016-05-03 Pedro Alves <palves@redhat.com>
499
500 * configure.ac (checking for the dynamic export flag): Add
501 $PYTHON_CPPFLAGS to CPPFLAGS.
502 * configure: Regenerate.
503
504 2016-05-03 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
505
506 * symfile.c (find_pc_overlay): Add braces to avoid -Wparentheses
507 warning.
508 (find_pc_mapped_section): Likewise.
509 (list_overlays_command): Likewise.
510
511 2016-05-02 Eli Zaretskii <eliz@gnu.org>
512
513 * windows-nat.c (_initialize_check_for_gdb_ini): Fix off-by-one
514 error in allocation of space for "$HOME/.gdbinit" string. This
515 caused GDB to abort on startup whenever a '~/gdb.ini' file was
516 actually found, because xsnprintf would hit an assertion
517 violation.
518
519 2016-04-28 Simon Marchi <simon.marchi@ericsson.com>
520
521 * cli/cli-decode.c (help_cmd_list): Do not list commands that
522 are deprecated.
523
524 2016-04-27 Jan Kratochvil <jan.kratochvil@redhat.com>
525
526 * remote.c (remote_start_remote): Detect PACKET_vFile_setfs.support.
527
528 2016-04-27 Martin Galvan <martin.galvan@tallertechnologies.com>
529
530 * c-valprint.c (c_value_print): Always convert val back to reference
531 type if we converted it to a pointer type.
532
533 2016-04-27 Andreas Arnez <arnez@linux.vnet.ibm.com>
534
535 * configure.ac: Enhance configure check for babeltrace to reject
536 non-C++-enabled versions.
537 * configure: Regenerate.
538
539 2016-04-26 Sanimir Agovic <sanimir.agovic@intel.com>
540 Keven Boell <keven.boell@intel.com>
541 Bernhard Heckel <bernhard.heckel@intel.com>
542
543 * f-valprint.c (f77_create_arrayprint_offset_tbl): Remove
544 function.
545 (F77_DIM_SIZE, F77_DIM_OFFSET): Remove macro.
546 (f77_print_array_1): Use value_subscript to subscript a
547 value array.
548 (f77_print_array): Remove call to f77_create_arrayprint_offset_tbl.
549 (f_val_print): Use value_field to construct a field value.
550
551 2016-04-26 Bernhard Heckel <bernhard.heckel@intel.com>
552
553 * valarith.c (value_address): Resolve dynamic types.
554
555 2016-04-26 Bernhard Heckel <bernhard.heckel@intel.com>
556 Keven Boell <kevel.boell@intel.com>
557
558 * NEWS: Add new supported features for fortran.
559 * gdbtypes.c (remove_dyn_prop): New.
560 (resolve_dynamic_struct): Keep type length for fortran structs.
561 * gdbtypes.h: Forward declaration of new function.
562 * value.c (value_address): Return dynamic resolved location of a value.
563 (set_value_component_location): Adjust the value address
564 for single value prints.
565 (value_primitive_field): Support value types with a dynamic location.
566 (set_internalvar): Remove dynamic location property of
567 internal variables.
568
569 2016-04-25 Pedro Alves <palves@redhat.com>
570 Yao Qi <yao.qi@linaro.org>
571
572 * mem-break.c (set_raw_breakpoint_at): Create a raw breakpoint
573 object. Insert it if it is not inserted yet. Increase the
574 refcount and link it into the proc's raw breakpoint list.
575
576 2016-04-25 Yao Qi <yao.qi@linaro.org>
577
578 * breakpoint.c (should_be_inserted): Return 0 if the location's
579 owner is not single step breakpoint or single step breakpoint's
580 thread isn't the thread which is stepping past a breakpoint.
581 * gdbarch.sh (software_single_step): Update comments.
582 * gdbarch.h: Regenerated.
583 * infrun.c (struct step_over_info) <thread>: New field.
584 (set_step_over_info): New argument 'thread'. Callers updated.
585 (clear_step_over_info): Set field thread to -1.
586 (thread_is_stepping_over_breakpoint): New function.
587 * infrun.h (thread_is_stepping_over_breakpoint): Declaration.
588
589 2016-04-22 Edjunior Barbosa Machado <emachado@linux.vnet.ibm.com>
590
591 * ppc-linux-nat.c (ppc_linux_read_description): Use PPC_FEATURE_HAS_VSX
592 and PPC_FEATURE_HAS_ALTIVEC to check if such features are available.
593
594 2016-04-22 Yao Qi <yao.qi@linaro.org>
595
596 * valops.c (read_value_memory): New local variable 'stack'.
597 Set it to either TARGET_OBJECT_STACK_MEMORY or
598 TARGET_OBJECT_MEMORY.
599
600 2016-04-22 Pedro Alves <palves@redhat.com>
601
602 * ada-exp.y: Remove all yy symbol remappings.
603 (GDB_YY_REMAP_PREFIX): Define.
604 Include "yy-remap.h".
605 * ada-lang.c (ada_language_defn): Adjust.
606 * ada-lang.h (ada_error): Rename to ...
607 (ada_yyerror): ... this.
608 * c-exp.y: Remove all yy symbol remappings.
609 (GDB_YY_REMAP_PREFIX): Define.
610 Include "yy-remap.h".
611 * c-lang.c (c_language_defn, cplus_language_defn)
612 (asm_language_defn, minimal_language_defn): Adjust.
613 * c-lang.h (c_error): Rename to ...
614 (c_yyerror): ... this.
615 * d-exp.y: Remove all yy symbol remappings.
616 (GDB_YY_REMAP_PREFIX): Define.
617 Include "yy-remap.h".
618 * d-lang.c (d_language_defn): Adjust.
619 * d-lang.h (d_error): Rename to ...
620 (d_yyerror): ... this.
621 * f-exp.y: Remove all yy symbol remappings.
622 (GDB_YY_REMAP_PREFIX): Define.
623 Include "yy-remap.h".
624 * f-lang.c (f_language_defn): Adjust.
625 * f-lang.h (f_error): Rename to ...
626 (f_yyerror): ... this.
627 * go-exp.y: Remove all yy symbol remappings.
628 (GDB_YY_REMAP_PREFIX): Define.
629 Include "yy-remap.h".
630 * go-lang.c (go_language_defn): Adjust.
631 * go-lang.h (go_error): Rename to ...
632 (go_yyerror): ... this.
633 * jv-exp.y: Remove all yy symbol remappings.
634 (GDB_YY_REMAP_PREFIX): Define.
635 Include "yy-remap.h".
636 * jv-lang.c (java_language_defn): Adjust.
637 * jv-lang.h (java_error): Rename to ...
638 (java_yyerror): ... this.
639 * m2-exp.y: Remove all yy symbol remappings.
640 (GDB_YY_REMAP_PREFIX): Define.
641 Include "yy-remap.h".
642 * m2-lang.c (m2_language_defn): Adjust.
643 * m2-lang.h (m2_error): Rename to ...
644 (m2_yyerror): ... this.
645 * objc-exp.y: Remove all yy symbol remappings.
646 (GDB_YY_REMAP_PREFIX): Define.
647 Include "yy-remap.h".
648 * objc-lang.c (objc_language_defn): Adjust.
649 * opencl-lang.c (opencl_language_defn): Adjust.
650 * p-exp.y: Remove all yy symbol remappings.
651 (GDB_YY_REMAP_PREFIX): Define.
652 Include "yy-remap.h".
653 * p-lang.c (pascal_language_defn): Adjust.
654 * p-lang.h (pascal_error): Rename to ...
655 (pascal_yyerror): ... this.
656 * yy-remap.h: New file.
657
658 2016-04-22 Pedro Alves <palves@redhat.com>
659
660 * common/common-exceptions.h (GDB_XCPT_TRY): Remove mention of
661 the foreign frames issue.
662 [__cplusplus] (GDB_XCPT): Define as GDB_XCPT_TRY.
663
664 2016-04-22 Pedro Alves <palves@redhat.com>
665
666 * common/common-exceptions.c (enum catcher_state, struct catcher)
667 (current_catcher): Define in C++ mode too.
668 (exceptions_state_mc_catch): Call throw_exception_sjlj instead of
669 throw_exception.
670 (throw_exception_sjlj, throw_exception_cxx): New functions,
671 factored out from throw_exception.
672 (throw_exception): Reimplement.
673 * common/common-exceptions.h (exceptions_state_mc_init)
674 (exceptions_state_mc_action_iter)
675 (exceptions_state_mc_action_iter_1, exceptions_state_mc_catch):
676 Declare in C++ mode too.
677 (TRY): Rename to ...
678 (TRY_SJLJ): ... this.
679 (CATCH): Rename to ...
680 (CATCH_SJLJ): ... this.
681 (END_CATCH): Rename to ...
682 (END_CATCH_SJLJ): ... this.
683 [GDB_XCPT == GDB_XCPT_SJMP] (TRY, CATCH, END_CATCH): Map to SJLJ
684 equivalents.
685 (throw_exception): Update comments.
686 (throw_exception_sjlj): Declare.
687 * event-top.c (gdb_rl_callback_read_char_wrapper): Extend intro
688 comment. Wrap body in TRY_SJLJ/CATCH_SJLJ and rethrow any
689 intercepted exception.
690 (gdb_rl_callback_handler): New function.
691 (gdb_rl_callback_handler_install): Always install
692 gdb_rl_callback_handler as readline callback.
693
694 2016-04-22 Pedro Alves <palves@redhat.com>
695
696 * event-top.c (rl_callback_read_char_wrapper): Rename to ...
697 (gdb_rl_callback_read_char_wrapper): ... this.
698 (change_line_handler, gdb_setup_readline): Adjust.
699
700 2016-04-22 Yao Qi <yao.qi@linaro.org>
701
702 * aarch32-linux-nat.c (aarch32_gp_regcache_supply): Clear CPSR
703 bits 20 to 23.
704
705 2016-04-22 Joel Brobecker <brobecker@adacore.com>
706
707 * MAINTAINER: Remove myself as AIX Maintainer.
708
709 2016-04-22 Maciej W. Rozycki <macro@imgtec.com>
710
711 * mips-tdep.c (mips_gdbarch_init): For GDB_OSABI_LINUX set
712 `num_regs' to 90 rather than 79. Where a target description is
713 present adjust the setting appropriately.
714
715 2016-04-21 Pedro Alves <palves@redhat.com>
716
717 * common/common-exceptions.h (GDB_XCPT_TRY): Add comment.
718 (GDB_XCPT): Always define as GDB_XCPT_SJMP.
719
720 2016-04-21 Pedro Alves <palves@redhat.com>
721
722 * aix-thread.c (pdc_read_data, pdc_write_data): Add cast.
723 (aix_thread_resume): Use PTRACE_TYPE_ARG5.
724 * rs6000-nat.c (rs6000_ptrace64): Use PTRACE_TYPE_ARG5.
725 (rs6000_ptrace_ldinfo): Change type of 'ldi' local to void
726 pointer, and cast return to gdb_byte pointer.
727
728 2016-04-21 Pedro Alves <palves@redhat.com>
729
730 * s390-linux-nat.c (fetch_regset, store_regset, check_regset): Use
731 void * instead of gdb_byte *.
732
733 2016-04-21 Pedro Alves <palves@redhat.com>
734
735 * dwarf2read.c (try_open_dwop_file, open_dwo_file)
736 (file_file_name, file_full_name): Add char * cast to sentinel in
737 concat/reconcat calls.
738 * event-top.c (top_level_prompt): Likewise.
739 * guile/guile.c (initialize_scheme_side): Likewise.
740 * linux-tdep.c (linux_fill_prpsinfo): Likewise.
741 * macrotab.c (macro_source_fullname): Likewise.
742 * main.c (get_init_files, captured_main): Likewise.
743 * psymtab.c (psymtab_to_fullname): Likewise.
744 * python/python.c (_initialize_python)
745 (gdbpy_finish_initialization): Likewise.
746 * source.c (symtab_to_fullname): Likewise.
747
748 2016-04-20 Pedro Alves <palves@redhat.com>
749
750 * build-with-cxx.m4 (GDB_AC_BUILD_WITH_CXX): Default to yes.
751 * configure: Renegerate.
752
753 2016-04-20 Pedro Alves <palves@redhat.com>
754
755 * darwin-nat.c (darwin_decode_message): Use gdb_signal_from_host.
756
757 2016-04-20 Pedro Alves <palves@redhat.com>
758
759 * aarch64-tdep.c (aarch64_record_load_store): Change type of
760 'reg_rm_val' local to ULONGEST.
761
762 2016-04-20 Pedro Alves <palves@redhat.com>
763
764 * darwin-nat.c (darwin_resume_thread): Add uintptr_t cast.
765
766 2016-04-20 Doug Evans <xdje42@gmail.com>
767
768 * symmisc.c (dump_symtab_1): Print owning compunit for identical
769 blockvectors.
770
771 2016-04-20 Yao Qi <yao.qi@linaro.org>
772
773 * aarch32-linux-nat.c: Include "arch/arm-linux.h".
774
775 2016-04-20 Yao Qi <yao.qi@linaro.org>
776
777 * arm-linux-tdep.h (ARM_CPSR_GREGNUM): Move it to ...
778 * arch/arm-linux.h: ... here.
779
780 2016-04-19 John Baldwin <jhb@FreeBSD.org>
781
782 * amd64bsd-nat.c (amd64bsd_fetch_inferior_registers): Change xstateregs
783 to void *.
784 (amd64bsd_store_inferior_registers): Likewise.
785 * fbsd-nat.c (resume_one_thread_cb): Explicitly cast data to ptid_t *.
786 (resume_all_threads_cb): Likewise.
787 * i386bsd-nat.c (i386bsd_supply_gregset): Cast gregs to char *.
788 (i386bsd_collect_gregset): Likewise.
789 (i386bsd_fetch_inferior_registers): Change xstateregs to void *.
790 (i386bsd_store_inferior_registers): Likewise.
791
792 2016-04-19 John Baldwin <jhb@FreeBSD.org>
793
794 * main.c (setup_alternate_signal_stack): Cast to char *.
795
796 2016-04-19 Doug Evans <xdje42@gmail.com>
797
798 * symmisc.c (dump_symtab_1, dump_symtab): Delete arg objfile.
799 All callers updated.
800
801 2016-04-19 Doug Evans <xdje42@gmail.com>
802
803 PR gdb/17911
804 * source.c (is_regular_file): New arg errno_ptr.
805 All callers updated.
806
807 2016-04-19 Andreas Arnez <arnez@linux.vnet.ibm.com>
808
809 * linux-record.c (record_linux_system_call): Merge handling for
810 readlink/recv/read and pipe/pipe2.
811
812 2016-04-14 Walfred Tedeschi <walfred.tedeschi@intel.com>
813
814 * features/i386/amd64-mpx-linux.xml: Remove AVX feature.
815 * features/i386/amd64-mpx.xml: Remove AVX feature.
816 * features/i386/i386-mpx-linux.xml: Remove AVX feature.
817 * features/i386/i386-mpx.xml: Remove AVX feature.
818 * features/i386/amd64-mpx-linux.c: Regenerate.
819 * features/i386/amd64-mpx.c: Regenerate.
820 * features/i386/i386-mpx-linux.c: Regenerate.
821 * features/i386/i386-mpx.c: Regenerate.
822 * regformats/i386/amd64-mpx-linux.dat: Regenerate.
823 * regformats/i386/amd64-mpx.dat: Regenerate.
824 * regformats/i386/i386-mpx-linux.dat: Regenerate.
825 * regformats/i386/i386-mpx.dat: Regenerate.
826
827 2016-04-16 Walfred Tedeschi <walfred.tedeschi@intel.com>
828
829 * amd64-linux-tdep.c (features/i386/amd64-avx-mpx-linux.c):
830 New include.
831 (amd64_linux_core_read_description): Add case for
832 X86_XSTATE_AVX_MPX_MASK.
833 (_initialize_amd64_linux_tdep): Call initialize_tdesc_amd64_avx_mpx_linux.
834 * amd64-linux-tdep.h (tdesc_amd64_avx_mpx_linux): New definition.
835 * amd64-tdep.c (features/i386/amd64-avx-mpx.c): New include.
836 (amd64_target_description): Add case for X86_XSTATE_AVX_MPX_MASK.
837 (_initialize_amd64_tdep): Call initialize_tdesc_amd64_avx_mpx.
838 * common/x86-xstate.h (X86_XSTATE_MPX_MASK): Remove AVX bits.
839 (X86_XSTATE_AVX_MPX_MASK): New case.
840 * features/Makefile (i386/i386-avx-mpx, i386/i386-avx-mpx-linux)
841 (i386/amd64-avx-mpx, i386/amd64-avx-mpx-linux): New rules.
842 (i386/i386-avx-mpx-expedite, i386/i386-avx-mpx-linux-expedite)
843 (i386/amd64-avx-mpx-expedite, i386/amd64-avx-mpx-linux-expedite):
844 New expedites.
845 * i386-linux-tdep.c (features/i386/i386-avx-mpx-linux.c): New
846 include.
847 (i386_linux_core_read_description): Add case
848 X86_XSTATE_AVX_MPX_MASK.
849 (_initialize_i386_linux_tdep): Call
850 initialize_tdesc_i386_avx_mpx_linux.
851 * i386-linux-tdep.h (tdesc_i386_avx_mpx_linux): New include.
852 * i386-tdep.c (features/i386/i386-avx-mpx.c): New include.
853 (i386_target_description): Add case for X86_XSTATE_AVX_MPX_MASK.
854 * x86-linux-nat.c (x86_linux_read_description): Add case for
855 X86_XSTATE_AVX_MPX_MASK.
856 * features/i386/amd64-avx-mpx-linux.xml: New file.
857 * features/i386/i386-avx-mpx-linux.xml: New file.
858 * features/i386/i386-avx-mpx.xml: New file.
859 * features/i386/amd64-avx-mpx.xml: New file.
860 * features/i386/amd64-avx-mpx-linux.c: Generated.
861 * features/i386/amd64-avx-mpx.c: Generated.
862 * features/i386/i386-avx-mpx-linux.c: Generated.
863 * features/i386/i386-avx-mpx.c: Generated.
864 * regformats/i386/amd64-avx-mpx-linux.dat: Generated.
865 * regformats/i386/amd64-avx-mpx.dat: Generated.
866 * regformats/i386/i386-avx-mpx-linux.dat: Generated.
867 * regformats/i386/i386-avx-mpx.dat: Generated.
868
869 2016-04-18 Pedro Alves <palves@redhat.com>
870
871 * ptrace.m4 (GDB_AC_PTRACE): Don't run tests in C++ mode.
872 * configure: Regenerate.
873
874 2016-04-18 Martin Galvan <martin.galvan@tallertechnologies.com>
875
876 * valops.c (value_addr): For C++ references, set the copied value's
877 enclosing_type as well.
878
879 2016-04-18 Yao Qi <yao.qi@linaro.org>
880
881 Revert:
882 2016-04-15 Yao Qi <yao.qi@linaro.org>
883
884 * arm-tdep.c (thumb_stack_frame_destroyed_p): Return zero if
885 PC is far from the end of function.
886
887 2016-04-16 Pedro Alves <palves@redhat.com>
888
889 * ada-exp.y (yydefred): Define as ada_yydefred.
890
891 2016-04-15 Pedro Alves <palves@redhat.com>
892
893 * ada-lang.c (ada_lookup_struct_elt_type): Constify 'type_str' and
894 'name_str' locals.
895
896 2016-04-15 Pedro Alves <palves@redhat.com>
897
898 * btrace.c (pt_btrace_insn_flags): Change return type to
899 btrace_insn_flags. Use btrace_insn_flags for local.
900
901 2016-04-15 Pedro Alves <palves@redhat.com>
902
903 * nat/linux-ptrace.h [__mips__] (GDB_ARCH_IS_TRAP_BRKPT): Also
904 accept TRAP_BRKPT.
905 [__mips__] (GDB_ARCH_IS_TRAP_HWBKPT): Also accept TRAP_HWBKPT.
906
907 2016-04-15 Yao Qi <yao.qi@linaro.org>
908
909 * arm-tdep.c (thumb_stack_frame_destroyed_p): Return zero if
910 PC is far from the end of function.
911
912 2016-04-14 Pedro Alves <palves@redhat.com>
913
914 * cli/cli-cmds.c (alias_usage_error): New function.
915 (alias_command): Use it.
916 * ctf.c (ctf_save_metadata_header): Inline metadata_fmt local in
917 ctf_save_write_metadata call.
918
919 2016-04-14 Pedro Alves <palves@redhat.com>
920
921 * ada-typeprint.c (print_fixed_point_type): Don't pass float as
922 argument to function expecting LONGEST.
923 * value.c (unpack_long): Add casts to LONGEST.
924
925 2016-04-13 Luis Machado <lgustavo@codesourcery.com>
926
927 * exec.c (exec_file_locate_attach): Guard a couple functions
928 that can throw errors.
929 (exception_print_same): New helper function.
930
931 2016-04-13 Pedro Alves <palves@redhat.com>
932
933 PR remote/19840
934 * remote.c (struct remote_state) <last_resume_exec_dir>: New
935 field.
936 (new_remote_state): Default last_resume_exec_dir to EXEC_FORWARD.
937 (remote_open_1): Reset last_resume_exec_dir to EXEC_FORWARD.
938 (remote_resume): Store the last execution direction.
939 (remote_execution_direction): New function.
940 (init_remote_ops): Install it as to_execution_direction target_ops
941 method.
942
943 2016-04-12 Pedro Alves <palves@redhat.com>
944
945 * common/common-exceptions.h (GDB_XCPT_TRY): Update comment.
946 [__cplusplus] (GDB_XCPT): Define as GDB_XCPT_TRY.
947
948 2016-04-12 Pedro Alves <palves@redhat.com>
949
950 * common/common-exceptions.c (struct catcher) <buf>: Now a
951 'jmp_buf' instead of SIGJMP_BUF.
952 (exceptions_state_mc_init): Change return type to 'jmp_buf'.
953 (throw_exception): Use longjmp instead of SIGLONGJMP.
954 * common/common-exceptions.h: Include <setjmp.h> instead of
955 "gdb_setjmp.h".
956 (exceptions_state_mc_init): Change return type to 'jmp_buf'.
957 [GDB_XCPT == GDB_XCPT_SJMP] (TRY): Use setjmp instead of
958 SIGSETJMP.
959 * cp-support.c: Include "gdb_setjmp.h".
960
961 2016-04-12 Pedro Alves <palves@redhat.com>
962
963 * common/common-exceptions.c (exception_rethrow): Remove
964 prepare_to_throw_exception call.
965 * common/common-exceptions.h (prepare_to_throw_exception): Delete
966 declaration.
967 * exceptions.c (prepare_to_throw_exception): Delete.
968
969 2016-04-12 Pedro Alves <palves@redhat.com>
970
971 * target.c (target_check_pending_interrupt): Delete.
972 * target.h (struct target_ops) <to_check_pending_interrupt>:
973 Remove method.
974 (target_check_pending_interrupt): Remove declaration.
975 * target-delegates.c: Regenerate.
976
977 2016-04-12 Pedro Alves <palves@redhat.com>
978
979 * defs.h: Update comments on SIGINT handling.
980 (immediate_quit): Delete declaration.
981 * event-loop.c (call_async_signal_handler): Delete.
982 * event-loop.h (call_async_signal_handler): Delete declaration.
983 (mark_async_signal_handler): Update comments.
984 (gdb_call_async_signal_handler): Delete declaration.
985 * event-top.c (handle_sigint): Call mark_async_signal_handler
986 instead of gdb_call_async_signal_handler.
987 * exceptions.c (prepare_to_throw_exception): Remove reference to
988 immediate_quit.
989 (exception_fprintf): Remove comments about immediate_quit.
990 * mingw-hdep.c (sigint_event, sigint_handler): Delete.
991 (gdb_select): Don't wait on sigint_event.
992 (gdb_call_async_signal_handler): Delete.
993 (_initialize_mingw_hdep): Delete.
994 * posix-hdep.c (gdb_call_async_signal_handler): Delete.
995 * utils.c (immediate_quit): Delete.
996
997 2016-04-12 Pedro Alves <palves@redhat.com>
998
999 * defs.h (quit_handler_ftype, quit_handler)
1000 (make_cleanup_override_quit_handler, default_quit_handler): New.
1001 (QUIT): Adjust comments.
1002 * event-top.c (default_quit_handler): New function.
1003 (quit_handler): New global.
1004 (struct quit_handler_cleanup_data): New.
1005 (restore_quit_handler, restore_quit_handler_dtor)
1006 (make_cleanup_override_quit_handler): New.
1007 (async_request_quit): Call QUIT.
1008 * remote.c (struct remote_state) <got_ctrlc_during_io>: New field.
1009 (async_sigint_remote_twice_token, async_sigint_remote_token):
1010 Delete.
1011 (remote_close): Update comments.
1012 (remote_start_remote): Don't set immediate_quit. Set starting_up
1013 earlier.
1014 (remote_serial_quit_handler, remote_unpush_and_throw): New
1015 functions.
1016 (remote_open_1): Clear got_ctrlc_during_io. Set
1017 remote_async_terminal_ours_p unconditionally.
1018 (async_initialize_sigint_signal_handler)
1019 (async_handle_remote_sigint, async_handle_remote_sigint_twice)
1020 (remote_check_pending_interrupt, async_remote_interrupt)
1021 (async_remote_interrupt_twice)
1022 (async_cleanup_sigint_signal_handler, ofunc)
1023 (sync_remote_interrupt, sync_remote_interrupt_twice): Delete.
1024 (remote_terminal_inferior, remote_terminal_ours): Remove async
1025 checks.
1026 (remote_wait_as): Don't install a SIGINT handler in sync mode.
1027 (readchar, remote_serial_write): Override the quit handler with
1028 remote_serial_quit_handler.
1029 (getpkt_or_notif_sane_1): Don't call QUIT.
1030 (initialize_remote_ops): Don't install
1031 remote_check_pending_interrupt.
1032 (_initialize_remote): Don't create async_sigint_remote_token and
1033 async_sigint_remote_twice_token.
1034 * ser-base.c (ser_base_wait_for): Call QUIT and use
1035 interruptible_select.
1036 (ser_base_write): Call QUIT.
1037 * ser-go32.c (dos_readchar, dos_write): Call QUIT.
1038 * ser-unix.c (wait_for): Don't use VTIME. Always take the
1039 gdb_select path, but call QUIT and interruptible_select.
1040 * utils.c (maybe_quit): Call the current quit handler. Don't call
1041 target_check_pending_interrupt.
1042 (defaulted_query, prompt_for_continue): Override the quit handler
1043 with the default quit handler.
1044
1045 2016-04-12 Pedro Alves <palves@redhat.com>
1046
1047 * tui/tui-hooks.c (tui_target_has_run): Delete.
1048 (tui_about_to_proceed): Delete.
1049 (tui_about_to_proceed_observer): Delete.
1050 (tui_install_hooks, tui_remove_hooks): Don't install/remove an
1051 about_to_proceed observer.
1052
1053 2016-04-12 Pedro Alves <palves@redhat.com>
1054
1055 * mi/mi-interp.c (mi_new_thread): Put
1056 target_terminal_ours_for_output in effect while outputting.
1057 (mi_thread_exit): Use target_terminal_ours_for_output instead of
1058 target_terminal_ours.
1059 (mi_record_changed, mi_inferior_added, mi_inferior_appeared)
1060 (mi_inferior_exit, mi_inferior_removed, mi_traceframe_changed)
1061 (mi_tsv_created, mi_tsv_deleted, mi_tsv_modified)
1062 (mi_breakpoint_created, mi_breakpoint_deleted)
1063 (mi_breakpoint_modified, mi_solib_loaded, mi_solib_unloaded)
1064 (mi_command_param_changed, mi_memory_changed)
1065 (report_initial_inferior): Use target_terminal_ours_for_output
1066 instead of target_terminal_ours. Restore terminal settings.
1067 * mi/mi-main.c (mi_execute_command): Use
1068 target_terminal_ours_for_output instead of target_terminal_ours.
1069 Restore terminal settings.
1070
1071 2016-04-12 Pedro Alves <palves@redhat.com>
1072
1073 PR gdb/19828
1074 * gnu-nat.c (inf_validate_task_sc): Don't call
1075 target_terminal_ours / target_terminal_inferior around query.
1076 * i386-tdep.c (i386_record_lea_modrm, i386_process_record): Don't
1077 call target_terminal_ours / target_terminal_inferior around
1078 yquery.
1079 * linux-record.c (record_linux_system_call): Don't call
1080 target_terminal_ours / target_terminal_inferior around yquery.
1081 * nto-procfs.c (interrupt_query): Don't call target_terminal_ours
1082 / target_terminal_inferior around query.
1083 * record-full.c (record_full_check_insn_num): Remove
1084 'set_terminal' parameter. Don't call target_terminal_ours /
1085 target_terminal_inferior around query.
1086 (record_full_message, record_full_registers_change)
1087 (record_full_xfer_partial): Adjust.
1088 * remote.c (interrupt_query): Don't call target_terminal_ours /
1089 target_terminal_inferior around query.
1090 * utils.c (defaulted_query): Install cleanup to restore target
1091 terminal. Put target_terminal_ours_for_output in effect while
1092 defaulted producing, and target_terminal_ours in in effect while
1093 handling input.
1094 (prompt_for_continue): Install cleanup to restore target terminal.
1095 Put target_terminal_ours in in effect while handling input.
1096
1097 2016-04-12 Pedro Alves <palves@redhat.com>
1098
1099 * utils.c (defaulted_query, prompt_for_continue): Free temporary
1100 strings with cleanups, instead of xfree.
1101
1102 2016-04-12 Pedro Alves <palves@redhat.com>
1103
1104 * utils.c (vwarning, internal_vproblem): Use
1105 make_cleanup_restore_target_terminal and
1106 target_terminal_ours_for_output.
1107
1108 2016-04-12 Pedro Alves <palves@redhat.com>
1109
1110 * infcmd.c (post_create_inferior, prepare_one_step): Use
1111 target_terminal_ours_for_output instead of target_terminal_ours.
1112
1113 2016-04-12 Pedro Alves <palves@redhat.com>
1114
1115 * exceptions.c (print_flush): Use target_terminal_ours_for_output
1116 instead of target_terminal_ours, and restore target terminal with
1117 a cleanup.
1118
1119 2016-04-12 Pedro Alves <palves@redhat.com>
1120
1121 * cp-support.c (gdb_demangle): Use target_terminal_ours_for_output
1122 instead of target_terminal_ours, and restore target terminal with
1123 a cleanup.
1124
1125 2016-04-12 Pedro Alves <palves@redhat.com>
1126
1127 * ada-lang.c (type_as_string, type_as_string_and_cleanup): New
1128 functions.
1129 (ada_lookup_struct_elt_type): Use type_as_string_and_cleanup.
1130
1131 2016-04-12 Pedro Alves <palves@redhat.com>
1132
1133 * ser-base.c (fd_event): Retry read_prim on EINTR.
1134 (do_ser_base_readchar): Retry read_prim on EINTR.
1135 (ser_base_write): Retry write_prim on EINTR.
1136 * ser-unix.c (ser_unix_read_prim): Don't retry on EINTR here.
1137 (ser_unix_write_prim): Remove comment.
1138
1139 2016-04-12 Pedro Alves <palves@redhat.com>
1140
1141 * remote.c (remote_pass_ctrlc): New function.
1142 (init_remote_ops): Install it.
1143 * target.c (target_terminal_inferior): Pass pending Ctrl-C to the
1144 target.
1145 (target_pass_ctrlc, default_target_pass_ctrlc): New functions.
1146 * target.h (struct target_ops) <to_pass_ctrlc>: New method.
1147 (target_pass_ctrlc, default_target_pass_ctrlc): New declarations.
1148 * target-delegates.c: Regenerate.
1149
1150 2016-04-12 Pedro Alves <palves@redhat.com>
1151
1152 * infcmd.c (interrupt_target_1): Call target_stop is in non-stop
1153 mode.
1154 * linux-nat.c (linux_nat_interrupt): Delete.
1155 (linux_nat_add_target): Don't install linux_nat_interrupt.
1156 * remote.c (remote_interrupt_ns): Change return type to void.
1157 Throw error if interrupting the target is not supported.
1158 (remote_interrupt): Don't call the remote_stop_ns/remote_stop_as.
1159
1160 2016-04-12 Pedro Alves <palves@redhat.com>
1161
1162 * defs.h (clear_quit_flag): Remove declaration.
1163 * extension-priv.h (struct extension_language_ops)
1164 <clear_quit_flag>: Remove field and update comments.
1165 * extension.c (clear_quit_flag): Delete.
1166 * guile/guile.c (guile_extension_ops): Adjust.
1167 * python/python.c (python_extension_ops): Adjust.
1168 (gdbpy_clear_quit_flag): Delete.
1169
1170 2016-04-12 Pedro Alves <palves@redhat.com>
1171
1172 * main.c (captured_main): Don't clear the quit flag.
1173
1174 2016-04-12 Pedro Alves <palves@redhat.com>
1175
1176 * exceptions.c (prepare_to_throw_exception): Don't clear the quit
1177 flag.
1178
1179 2016-04-12 Pedro Alves <palves@redhat.com>
1180
1181 * event-top.c (command_handler): Don't call clear_quit_flag.
1182
1183 2016-04-12 Pedro Alves <palves@redhat.com>
1184
1185 * remote-sim.c (gdb_os_poll_quit): Don't call clear_quit_flag.
1186 * remote.c (remote_wait_as): Don't call clear_quit_flag.
1187
1188 2016-04-12 Pedro Alves <palves@redhat.com>
1189
1190 * python/python.c: Include "ser-event.h".
1191 (gdbpy_event_fds): Delete.
1192 (gdbpy_serial_event): New.
1193 (gdbpy_run_events): Change prototype. Use serial_event_clear
1194 instead of serial_readchar.
1195 (gdbpy_post_event): Use serial_event_set instead of serial_write.
1196 (gdbpy_initialize_events): Use make_serial_event instead of
1197 serial_pipe.
1198
1199 2016-04-12 Pedro Alves <palves@redhat.com>
1200
1201 * defs.h: Extend QUIT-related comments to mention
1202 interruptible_select.
1203 (quit_serial_event_set, quit_serial_event_clear): Declare.
1204 * event-top.c: Include "ser-event.h" and "gdb_select.h".
1205 (quit_serial_event): New global.
1206 (async_init_signals): Make quit_serial_event.
1207 (quit_serial_event_set, quit_serial_event_clear)
1208 (quit_serial_event_fd, interruptible_select): New functions.
1209 * extension.c (set_quit_flag): Set the quit serial event.
1210 (check_quit_flag): Clear the quit serial event.
1211 * gdb_select.h (interruptible_select): New declaration.
1212 * guile/scm-ports.c (ioscm_input_waiting): Use
1213 interruptible_select instead of gdb_select.
1214 * top.c (gdb_readline_no_editing): Likewise.
1215 * ui-file.c (stdio_file_read): Likewise.
1216
1217 2016-04-12 Pedro Alves <palves@redhat.com>
1218
1219 * event-loop.c: Include "ser-event.h".
1220 (async_signal_handlers_serial_event): New global.
1221 (async_signals_handler, initialize_async_signal_handlers): New
1222 functions.
1223 (mark_async_signal_handler): Set
1224 async_signal_handlers_serial_event.
1225 (invoke_async_signal_handlers): Clear
1226 async_signal_handlers_serial_event.
1227 * event-top.c (async_init_signals): Call
1228 initialize_async_signal_handlers.
1229
1230 2016-04-12 Pedro Alves <palves@redhat.com>
1231
1232 * Makefile.in (SFILES): Add ser-event.c.
1233 (HFILES_NO_SRCDIR): Add ser-event.h.
1234 (COMMON_OBS): Add ser-event.o.
1235 * ser-event.c, ser-event.h: New files.
1236 * serial.c (new_serial): New function, factored out from
1237 (serial_fdopen_ops): ... this.
1238 (serial_open_ops_1): New function, factored out from
1239 (serial_open): ... this.
1240 (serial_open_ops): New function.
1241 * serial.h (struct serial): Forware declare.
1242 (serial_open_ops): New declaration.
1243
1244 2016-04-12 Pedro Alves <palves@redhat.com>
1245
1246 * serial.c (serial_open, serial_fdopen_ops, do_serial_close):
1247 Remove references to name.
1248 * serial.h (struct serial) <name>: Delete.
1249
1250 2016-04-12 Pedro Alves <palves@redhat.com>
1251
1252 * remote-fileio.c (sigint_fileio_token, remote_fio_no_longjmp):
1253 Delete.
1254 (async_remote_fileio_interrupt): Delete.
1255 (remote_fileio_ctrl_c_signal_handler): Don't call the async signal
1256 handler. Instead just always set the ctrl_c flag.
1257 (remote_fileio_reply): Clear remote_fio_ctrl_c_flag before
1258 re-enabling the SIGINT handler.
1259 (remote_fileio_func_open, remote_fileio_func_close)
1260 (remote_fileio_func_read, remote_fileio_func_write)
1261 (remote_fileio_func_lseek, remote_fileio_func_rename)
1262 (remote_fileio_func_unlink, remote_fileio_func_stat)
1263 (remote_fileio_func_fstat, remote_fileio_func_gettimeofday)
1264 (remote_fileio_func_isatty, remote_fileio_func_system)
1265 (remote_fileio_request): Remove references to
1266 remote_fio_no_longjmp.
1267 (initialize_remote_fileio): Don't create an async signal handler.
1268
1269 2016-04-12 Pedro Alves <palves@redhat.com>
1270
1271 * event-top.c (stdin_event_handler): Call QUIT;
1272 (prompt_for_continue): Don't run with immediate_quit set.
1273
1274 2016-04-12 Pedro Alves <palves@redhat.com>
1275
1276 * tui/tui-io.c (tui_redisplay_readline): Check
1277 gdb_in_secondary_prompt_p instead of immediate_quit.
1278 * tui/tui.c: Include top.h.
1279 (tui_rl_startup_hook): Check gdb_in_secondary_prompt_p instead of
1280 immediate_quit.
1281
1282 2016-04-12 Pedro Alves <palves@redhat.com>
1283
1284 * top.c (read_command_file): Inline command_loop here.
1285 (command_loop): Delete.
1286
1287 2016-04-12 Pedro Alves <palves@redhat.com>
1288
1289 * top.c: Include "gdb_select.h".
1290 (gdb_readline_no_editing): Wait for input with gdb_select instead
1291 of blocking in fgetc.
1292 (command_line_input): Don't set immediate_quit.
1293
1294 2016-04-08 Martin Galvan <martin.galvan@tallertechnologies.com>
1295
1296 * value.c (value_next): Make pass-by-reference parameters const-correct.
1297 (value_parent): Likewise.
1298 (value_enclosing_type): Likewise.
1299 (value_lazy): Likewise.
1300 (value_stack): Likewise.
1301 (value_embedded_offset): Likewise.
1302 (value_pointed_to_offset): Likewise.
1303 (value_raw_address): Likewise.
1304 (deprecated_value_modifiable): Likewise.
1305 (value_free_to_mark): Likewise.
1306 (value_release_to_mark): Likewise.
1307 (internalvar_name): Likewise.
1308 (readjust_indirect_value_type): Likewise.
1309 (value_initialized): Likewise.
1310 * value.h (value_next): Likewise.
1311 (value_parent): Likewise.
1312 (value_enclosing_type): Likewise.
1313 (value_lazy): Likewise.
1314 (value_stack): Likewise.
1315 (value_embedded_offset): Likewise.
1316 (value_pointed_to_offset): Likewise.
1317 (value_raw_address): Likewise.
1318 (deprecated_value_modifiable): Likewise.
1319 (value_free_to_mark): Likewise.
1320 (value_release_to_mark): Likewise.
1321 (internalvar_name): Likewise.
1322 (readjust_indirect_value_type): Likewise.
1323 (value_initialized): Likewise.
1324
1325 2016-04-07 Yao Qi <yao.qi@linaro.org>
1326
1327 * record-full.c (record_full_insert_breakpoint): Return
1328 early if entry on the address is found in
1329 record_full_breakpoints.
1330
1331 2016-04-07 Yao Qi <yao.qi@linaro.org>
1332
1333 * record-full.c (record_full_insert_breakpoint): Set
1334 bp_tgt->reqstd_address and bp_tgt->placed_size.
1335
1336 2016-04-06 Don Breazeal <donb@codesourcery.com>
1337
1338 * value.c (value_actual_type): Don't try to get rtti type
1339 of the value if it has been optimized out.
1340 (value_optimized_out): If a memory access error occurs,
1341 just check vaue->optimized_out.
1342
1343 2016-04-06 Jan Kratochvil <jan.kratochvil@redhat.com>
1344
1345 Revert the previous commit adding unknown_v_replies_ok.
1346
1347 2016-04-06 Jan Kratochvil <jan.kratochvil@redhat.com>
1348
1349 * remote.c (struct remote_state): New field unknown_v_replies_ok.
1350 (packet_config_support): Read it.
1351 (remote_start_remote): Set it.
1352
1353 2016-04-06 Jan Kratochvil <jan.kratochvil@redhat.com>
1354
1355 * remote.c: Revert check-in by a mistake in the previous commit.
1356
1357 2016-04-06 Jan Kratochvil <jan.kratochvil@redhat.com>
1358 Pedro Alves <palves@redhat.com>
1359
1360 * exec.c (exec_file_locate_attach): Print warning for unsupported
1361 target_pid_to_exec_file.
1362 * symfile-mem.c (add_vsyscall_page): Remove the "file" command
1363 message part.
1364
1365 2016-04-04 Simon Marchi <simon.marchi@ericsson.com>
1366
1367 * cli/cli-decode.c (help_cmd_list): Fix function doc and remove
1368 trailing spaces.
1369
1370 2016-04-01 Artemiy Volkov <artemiyv@acm.org>
1371
1372 PR gdb/19820
1373 * eval.c (evaluate_subexp_standard): Allow TYPE_CODE_ENUM to be
1374 the type of BINOP_REPEAT's second operand.
1375
1376 2016-03-31 Yichao Yu <yyc1992@gmail.com>
1377
1378 PR gdb/19858
1379 * jit.c (jit_breakpoint_re_set_internal): Return 0 if we already
1380 got the breakpoint at the right address.
1381 (jit_inferior_created): New function.
1382 (_initialize_jit): Install jit_inferior_created as
1383 inferior_created observer.
1384
1385 2016-03-31 Marcin Kościelnicki <koriakin@0x04.net>
1386
1387 * NEWS: Mention support for tracepoints on powerpc*-linux.
1388
1389 2016-03-31 Catalin Udma <catalin.udma@freescale.com>
1390
1391 PR python/19743
1392 * python/python.c (execute_gdb_command): Use console uiout
1393 when executing gdb command.
1394 * utils.c (restore_ui_out_closure): New structure.
1395 (do_restore_ui_out): New function.
1396 (make_cleanup_restore_ui_out): Likewise.
1397 * utils.h (make_cleanup_restore_ui_out): Declare.
1398
1399 2016-03-31 Pedro Alves <palves@redhat.com>
1400
1401 * NEWS: Mention that support for "target m32rsdi", "target mips",
1402 "target pmon", "target ddb", "target rockhopper", and "target lsi"
1403 was removed.
1404 * Makefile.in (ALL_TARGET_OBS): Remove remote-m32r-sdi.o and
1405 remote-mips.o.
1406 (ALLDEPFILES): Remove remote-m32r-sdi.c and remote-mips.c.
1407 * configure.tgt: Remove all references to remote-m32r-sdi.o and
1408 remote-mips.o.
1409 * mips-tdep.c (deprecated_mips_set_processor_regs_hack): Delete
1410 function.
1411 * mips-tdep.h (deprecated_mips_set_processor_regs_hack): Delete
1412 declaration.
1413 * remote-m32r-sdi.c, remote-mips.c: Delete files.
1414 * symfile.c (generic_load, generic_load): Remove comments.
1415
1416 2016-03-30 Yao Qi <yao.qi@linaro.org>
1417
1418 * arm-tdep.c (arm_epilogue_frame_this_id): Check 'func' against
1419 0 rather than NULL.
1420
1421 2016-03-30 Yao Qi <yao.qi@linaro.org>
1422
1423 * arm-tdep.c: (arm_make_epilogue_frame_cache): New function.
1424 (arm_epilogue_frame_this_id): New function.
1425 (arm_epilogue_frame_prev_register): New function.
1426 (arm_epilogue_frame_sniffer): New function.
1427 (arm_epilogue_frame_unwind): New.
1428 (arm_gdbarch_init): Append unwinder arm_epilogue_frame_unwind.
1429
1430 2016-03-30 Yao Qi <yao.qi@linaro.org>
1431
1432 * arm-tdep.c (arm_stack_frame_destroyed_p): Rename it ...
1433 (arm_stack_frame_destroyed_p_1): ... here. Don't call
1434 arm_pc_is_thumb.
1435 (arm_stack_frame_destroyed_p): Call
1436 thumb_stack_frame_destroyed_p and
1437 arm_stack_frame_destroyed_p_1.
1438
1439 2016-03-30 Doug Evans <dje@google.com>
1440
1441 * python/py-utils.c (host_string_to_python_string): New function.
1442 * python/python-internal.h (host_string_to_python_string): Declare it.
1443 * python/py-*.c (*): Update all calls to
1444 PyString_Decode (str, strlen (str), host_charset (), NULL);
1445 to use host_string_to_python_string instead.
1446
1447 2016-03-30 Marcin Kościelnicki <koriakin@0x04.net>
1448
1449 * remote.c (remote_check_symbols): Allocate own buffer for reply.
1450
1451 2016-03-29 Max Filippov <jcmvbkbc@gmail.com>
1452
1453 * xtensa-tdep.c (xtensa_frame_cache): Change op1 type to LONGEST.
1454 Use safe_read_memory_integer instead of read_memory_integer.
1455
1456 2016-03-29 Marcin Kościelnicki <koriakin@0x04.net>
1457
1458 * NEWS: Mention support for tracepoints on s390*-linux.
1459
1460 2016-03-29 Don Breazeal <donb@codesourcery.com>
1461
1462 * gdb/value.c (value_actual_type): Fix formatting issue.
1463
1464 2016-03-23 Yao Qi <yao.qi@linaro.org>
1465
1466 * gdbarch.sh (software_single_step): Remove comments.
1467 * gdbarch.h: Regenerated.
1468
1469 2016-03-21 Yao Qi <yao.qi@linaro.org>
1470
1471 * arm-tdep.c (arm_record_media): New.
1472 (arm_record_ld_st_reg_offset): Call arm_record_media.
1473
1474 2016-03-21 Yao Qi <yao.qi@linaro.org>
1475
1476 * arm-linux-tdep.c (arm_canonicalize_syscall): Canonicalize
1477 more syscalls.
1478
1479 2016-03-18 Yao Qi <yao.qi@linaro.org>
1480
1481 * sparc-tdep.c (sparc_software_single_step): Make it static.
1482 * sparc-tdep.h (sparc_software_single_step): Remove declaration.
1483
1484 2016-03-18 Yao Qi <yao.qi@linaro.org>
1485
1486 * spu-tdep.c (spu_software_single_step): Throw error when
1487 target_read_memory fails.
1488
1489 2016-03-17 Jan Kratochvil <jan.kratochvil@redhat.com>
1490
1491 * linux-thread-db.c (check_pid_namespace_match): Extend the message.
1492
1493 2016-03-17 Pedro Alves <palves@redhat.com>
1494 Don Breazeal <donb@codesourcery.com>
1495
1496 PR remote/19496
1497 * infcmd.c (notice_new_inferior): Use the 'leave_running' argument
1498 instead of checking the 'non_stop' global.
1499 * remote.c (remote_add_thread): New parameter 'executing'. Use it
1500 to set the new thread's executing state.
1501 (remote_notice_new_inferior): Rename parameter 'running' to
1502 'executing'. Always set the thread state to THREAD_RUNNING in
1503 non-stop mode, and to THREAD_STOPPED in all-stop mode. Pass
1504 EXECUTING to remote_add_thread and notice_new_inferior.
1505 (remote_update_thread_list): Update to pass executing state, not
1506 running state.
1507
1508 2016-03-17 Andreas Arnez <arnez@linux.vnet.ibm.com>
1509
1510 * syscalls/s390-linux.xml: Add NUMA syscalls and new syscalls up
1511 to 374.
1512 * syscalls/s390x-linux.xml: Likewise.
1513
1514 2016-03-17 Andreas Arnez <arnez@linux.vnet.ibm.com>
1515
1516 * linux-record.c (record_mem_at_reg): New helper function.
1517 (record_linux_system_call): Exploit new helper function where
1518 applicable.
1519
1520 2016-03-17 Andreas Arnez <arnez@linux.vnet.ibm.com>
1521
1522 * linux-record.c: Fix whitespace issues; tabify, remove trailing
1523 spaces.
1524
1525 2016-03-17 Andreas Arnez <arnez@linux.vnet.ibm.com>
1526
1527 * linux-record.c (record_linux_system_call): Add missing return
1528 statements to handling of pipe and pipe2 syscalls.
1529
1530 2016-03-16 Doug Evans <dje@google.com>
1531
1532 * xml-tdesc.c (tdesc_start_enum): Fix c++ build.
1533
1534 2016-03-16 Yao Qi <yao.qi@linaro.org>
1535
1536 * arm-linux-tdep.c (arm_linux_init_abi): Fix
1537 arm_linux_record_tdep.arg1, arm_linux_record_tdep.arg2 and
1538 arm_linux_record_tdep.arg3. Set arm_linux_record_tdep.arg4,
1539 arm_linux_record_tdep.arg5, arm_linux_record_tdep.arg6, and
1540 arm_linux_record_tdep.arg7.
1541
1542 2016-03-15 Keith Seitz <keiths@redhat.com>
1543
1544 PR breakpoints/18303
1545 * cp-namespace.c (cp_lookup_bare_symbol): Change assertion to
1546 look for "::" instead of simply ":".
1547 (cp_search_static_and_baseclasses): Return null_block_symbol for
1548 malformed input.
1549 Remove assertions.
1550 * cp-support.c (cp_find_first_component_aux): Do not return
1551 a prefix length for ':' unless the next character is also ':'.
1552
1553 2016-03-15 Doug Evans <dje@google.com>
1554
1555 * features/aarch64-core.xml (cpsr_flags): New flags type.
1556 (cpsr): Use it.
1557 * features/aarch64.c: Regenerate.
1558
1559 2016-03-15 Doug Evans <dje@google.com>
1560
1561 * features/i386/32bit-core.xml (i386_eflags): Remove "end" spec.
1562 * features/i386/32bit-sse.xml (i386_eflags): Ditto.
1563 * features/i386/64bit-core.xml (i386_eflags): Ditto.
1564 * features/i386/64bit-sse.xml (i386_eflags): Ditto.
1565 * features/i386/x32-core.xml (i386_eflags): Ditto.
1566
1567 2016-03-15 Doug Evans <dje@google.com>
1568 Wei-cheng Wang <cole945@gmail.com>
1569
1570 Extend flags to support multibit and enum bitfields.
1571 * NEWS: Document new features.
1572 * c-typeprint.c (c_type_print_varspec_prefix): Handle TYPE_CODE_FLAGS.
1573 (c_type_print_varspec_suffix, c_type_print_base): Ditto.
1574 * gdbtypes.c (arch_flags_type): Don't assume all fields are one bit.
1575 (append_flags_type_field): New function.
1576 (append_flags_type_flag): Call it.
1577 * gdbtypes.h (append_flags_type_field): Declare.
1578 * target-descriptions.c (struct tdesc_type_flag): Delete.
1579 (enum tdesc_type_kind) <TDESC_TYPE_BOOL>: New enum value.
1580 (enum tdesc_type_kind) <TDESC_TYPE_ENUM>: Ditto.
1581 (struct tdesc_type) <u.f>: Delete.
1582 (tdesc_predefined_types): Add "bool".
1583 (tdesc_predefined_type): New function.
1584 (tdesc_gdb_type): Handle TDESC_TYPE_BOOL, TDESC_TYPE_ENUM.
1585 Update TDESC_TYPE_FLAGS support.
1586 (tdesc_free_type): Handle TDESC_TYPE_ENUM. Update TDESC_TYPE_FLAGS.
1587 (tdesc_create_flags): Update.
1588 (tdesc_create_enum): New function.
1589 (tdesc_add_field): Initialize start,end to -1.
1590 (tdesc_add_typed_bitfield): New function.
1591 (tdesc_add_bitfield): Call it.
1592 (tdesc_add_flag): Allow TDESC_TYPE_STRUCT. Update.
1593 (tdesc_add_enum_value): New function.
1594 (maint_print_c_tdesc_cmd): Fold TDESC_TYPE_FLAGS support into
1595 TDESC_TYPE_STRUCT. Handle TDESC_TYPE_ENUM.
1596 * target-descriptions.h (tdesc_create_enum): Declare.
1597 (tdesc_add_typed_bitfield, tdesc_add_enum_value): Declare.
1598 * valprint.c (generic_val_print_enum_1): New function.
1599 (generic_val_print_enum): Call it.
1600 (val_print_type_code_flags): Make static. Handle multibit bitfields
1601 and enum bitfields.
1602 * valprint.h (val_print_type_code_flags): Delete.
1603 * xml-tdesc.c (struct tdesc_parsing_data) <current_type_is_flags>:
1604 Delete. All uses removed.
1605 (tdesc_start_enum): New function.
1606 (tdesc_start_field): Handle multibit and enum bitfields.
1607 (tdesc_start_enum_value): New function.
1608 (enum_value_attributes, enum_children, enum_attributes): New static
1609 globals.
1610 (feature_children): Add "enum".
1611 * features/gdb-target.dtd (enum, evalue): New elements.
1612
1613 2016-03-15 Doug Evans <dje@google.com>
1614
1615 * target-descriptions.c (struct tdesc_type) <u.u.size>: Change type
1616 from LONGEST to int.
1617 (struct tdesc_type) <u.f.size>: Ditto.
1618 (tdesc_set_struct_size): Change type of "size" arg from LONGEST
1619 to int. Add assertion size > 0.
1620 (tdesc_create_flags): Ditto.
1621 * target-descriptions.h (tdesc_set_struct_size): Update.
1622 (tdesc_create_flags): Update.
1623 * xml-tdesc.c (MAX_FIELD_SIZE, MAX_FIELD_BITSIZE): New macros.
1624 (MAX_VECTOR_SIZE): New macro.
1625 (tdesc_start_struct): Catch conversion errors from LONGEST to int.
1626 (tdesc_start_flags, tdesc_start_field, tdesc_start_vector): Ditto.
1627
1628 2016-03-15 Doug Evans <dje@google.com>
1629
1630 * target-descriptions.c (maint_print_c_tdesc_cmd): Use "type" for
1631 TYPE_CODE_FLAGS instead of "field_type", for consistency.
1632 * features/i386/amd64-avx-linux.c: Regenerate.
1633 * features/i386/amd64-avx.c: Regenerate.
1634 * features/i386/amd64-avx512-linux.c: Regenerate.
1635 * features/i386/amd64-avx512.c: Regenerate.
1636 * features/i386/amd64-linux.c: Regenerate.
1637 * features/i386/amd64-mpx-linux.c: Regenerate.
1638 * features/i386/amd64-mpx.c: Regenerate.
1639 * features/i386/amd64.c: Regenerate.
1640 * features/i386/i386-avx-linux.c: Regenerate.
1641 * features/i386/i386-avx.c: Regenerate.
1642 * features/i386/i386-avx512-linux.c: Regenerate.
1643 * features/i386/i386-avx512.c: Regenerate.
1644 * features/i386/i386-linux.c: Regenerate.
1645 * features/i386/i386-mmx-linux.c: Regenerate.
1646 * features/i386/i386-mmx.c: Regenerate.
1647 * features/i386/i386-mpx-linux.c: Regenerate.
1648 * features/i386/i386-mpx.c: Regenerate.
1649 * features/i386/i386.c: Regenerate.
1650 * features/i386/x32-avx-linux.c: Regenerate.
1651 * features/i386/x32-avx.c: Regenerate.
1652 * features/i386/x32-avx512-linux.c: Regenerate.
1653 * features/i386/x32-avx512.c: Regenerate.
1654 * features/i386/x32-linux.c: Regenerate.
1655 * features/i386/x32.c: Regenerate.
1656
1657 2016-03-15 Pedro Alves <palves@redhat.com>
1658
1659 PR gdb/19676
1660 * linux-thread-db.c (try_thread_db_load_1): Leave
1661 info->td_ta_thr_iter_p NULL iff debugging a live process and we
1662 have /proc access.
1663 (find_new_threads_once): Assert that we have a non-NULL
1664 info->td_ta_thr_iter_p instead of checking whether the target has
1665 execution.
1666
1667 2016-03-15 Pedro Alves <palves@redhat.com>
1668
1669 PR gdb/19676
1670 * infrun.c (displaced_step_prepare): Also disable displaced
1671 stepping on NOT_SUPPORTED_ERROR.
1672 * linux-tdep.c (linux_displaced_step_location): If reading auxv
1673 fails, throw NOT_SUPPORTED_ERROR instead of generic error.
1674
1675 2016-03-13 Marcin Kościelnicki <koriakin@0x04.net>
1676
1677 * s390-linux-tdep.c (s390_gen_return_address): New function.
1678 (s390_gdbarch_init): Fill gen_return_address hook.
1679
1680 2016-03-11 Andrew Burgess <andrew.burgess@embecosm.com>
1681
1682 * symmisc.c (maintenance_info_line_tables): New function.
1683 (maintenance_print_one_line_table): New function.
1684 (_initialize_symmisc): Register 'maint info line-table' command.
1685 * NEWS: Mention new command.
1686
1687 2016-03-11 Marcin Kościelnicki <koriakin@0x04.net>
1688
1689 * s390-linux-tdep.c (s390_ax_pseudo_register_collect): New function.
1690 (s390_ax_pseudo_register_push_stack): New function.
1691 (s390_gdbarch_init): Fill ax_pseudo_register_collect and
1692 ax_pseudo_register_push_stack hooks.
1693
1694 2016-03-10 Simon Marchi <simon.marchi@polymtl.ca>
1695
1696 * data-directory/Makefile.in (PYTHON_FILE_LIST): Install
1697 gdb/function/as_string.py.
1698 * python/lib/gdb/function/as_string.py: New file.
1699 * NEWS: Mention the new $_as_string function.
1700
1701 2016-03-09 Jose E. Marchesi <jose.marchesi@oracle.com>
1702
1703 * target.h: Fix doc string of target_can_use_hardware_watchpoint.
1704
1705 2016-03-09 Pedro Alves <palves@redhat.com>
1706
1707 * event-top.c (more_to_come): Delete.
1708 (struct readline_input_state): Delete.
1709 (readline_input_state): Delete.
1710 (get_command_line_buffer): New function.
1711 (command_handler): Update comments. Don't handle NULL commands
1712 here. Do not execute commented lines.
1713 (command_line_append_input_line): New function.
1714 (handle_line_of_input): New function, partly based on
1715 command_line_handler and command_line_input.
1716 (command_line_handler): Rewrite.
1717 * event-top.h (command_handler): New declaration.
1718 (command_loop): Defer command execution to command_handler.
1719 (command_line_input): Update comments. Simplify, using struct
1720 buffer and handle_line_of_input.
1721 * top.h (struct buffer): New forward declaration.
1722 (handle_line_of_input): New declaration.
1723
1724 2016-03-09 Pedro Alves <palves@redhat.com>
1725
1726 * event-top.c (command_line_handler): Use xfree + xstrdup instead
1727 of xrealloc + strcpy.
1728 * main.c (captured_main): Use xstrdup instead of xmalloc plus
1729 manual clear.
1730 * top.c (saved_command_line): Rewrite comment.
1731 (saved_command_line_size): Delete.
1732 (command_line_input): Use xfree + xstrdup instead of xrealloc +
1733 strcpy.
1734 * top.h (saved_command_line_size): Delete declaration.
1735
1736 2016-03-09 Pedro Alves <palves@redhat.com>
1737
1738 * event-top.c: Include buffer.h.
1739 (gdb_readline_no_editing_callback): Use struct buffer instead
1740 of xrealloc.
1741
1742 2016-03-09 Pedro Alves <palves@redhat.com>
1743
1744 * common/buffer.h (buffer_grow_char): New function.
1745 * top.c: Include buffer.h.
1746 (gdb_readline_no_editing): Rename 'prompt_arg' parameter to
1747 'prompt'. Use struct buffer instead of xrealloc.
1748
1749 2016-03-09 Pedro Alves <palves@redhat.com>
1750
1751 * defs.h (gdb_readline): Delete declaration.
1752 * top.c (gdb_readline): Rename to ...
1753 (gdb_readline_no_editing): ... this, and make static.
1754
1755 2016-03-09 Pedro Alves <palves@redhat.com>
1756
1757 * utils.c (prompt_for_continue): Update comments.
1758
1759 2016-03-09 Pedro Alves <palves@redhat.com>
1760
1761 * event-top.c (async_annotation_suffix): Delete.
1762 (top_level_prompt, command_line_handler): Don't use
1763 'async_annotation_suffix' and simplify.
1764 * event-top.h (async_annotation_suffix): Delete declaration.
1765 (init_main): Remove reference to 'async_annotation_suffix'.
1766
1767 2016-03-09 Pedro Alves <palves@redhat.com>
1768
1769 * event-top.c (gdb_readline2): Rename to ...
1770 (gdb_readline_no_editing_callback): ... this.
1771 (change_line_handler, stdin_event_handler)
1772 (gdb_setup_readline): Adjust.
1773 * event-top.h (gdb_readline2): Rename to ...
1774 (gdb_readline_no_editing_callback): ... this, and move closer to
1775 other readline-related declarations.
1776 * mi/mi-interp.c (mi_interpreter_resume): Adjust.
1777
1778 2016-03-09 Pedro Alves <palves@redhat.com>
1779
1780 * top.c (window_hook): Delete.
1781 (command_loop): Remove references to window_hook.
1782
1783 2016-03-09 Marcin Kościelnicki <koriakin@0x04.net>
1784
1785 * corefile.c (safe_read_memory_unsigned_integer): New function.
1786 * gdbcore.h (safe_read_memory_unsigned_integer): New prototype.
1787 * rs6000-tdep.c (rs6000_frame_cache): Read backchain as unsigned.
1788
1789 2016-03-09 Marcin Kościelnicki <koriakin@0x04.net>
1790
1791 * rs6000-tdep.c: Add "ax.h" and "ax-gdb.h" includes.
1792 (rs6000_gen_return_address): New function.
1793 (rs6000_gdbarch_init): Wire in the above.
1794
1795 2016-03-09 Marcin Kościelnicki <koriakin@0x04.net>
1796
1797 * rs6000-tdep.c (rs6000_ax_pseudo_register_collect): New function.
1798 (rs6000_gdbarch_init): Wire in the above.
1799
1800 2016-03-09 Andreas Arnez <arnez@linux.vnet.ibm.com>
1801
1802 * s390-linux-tdep.c (s390_analyze_prologue): Ignore BRC and BRCL
1803 instructions that do nothing or are conditional traps.
1804
1805 2016-03-09 Andreas Arnez <arnez@linux.vnet.ibm.com>
1806
1807 * s390-linux-tdep.c (s390_prologue_frame_unwind_cache): Store
1808 frame func's PC in info->func before any other failure can occur.
1809 (s390_frame_this_id): Use frame_id_build_unavailable_stack if
1810 info->func has been filled out.
1811
1812 2016-03-09 Pedro Alves <palves@redhat.com>
1813
1814 * osabi.c (gdb_osabi_names): Avoid spaces in osabi names.
1815
1816 2016-03-09 Pedro Alves <palves@redhat.com>
1817
1818 * frv-tdep.c (frv_gdbarch_init): Handle bfd_mach_fr300.
1819
1820 2016-03-09 Pedro Alves <palves@redhat.com>
1821
1822 * cris-tdep.c (cris_gdbarch_init): Return 0 if the info's byte
1823 order is BFD_ENDIAN_BIG or if the cris version is unsupported.
1824
1825 2016-03-09 Pedro Alves <palves@redhat.com>
1826
1827 * doublest.c: Extend comments.
1828 (floatformat_to_doublest, floatformat_from_doublest): Copy the
1829 floatformat's total size, not the host type's size.
1830
1831 2016-03-09 Pedro Alves <palves@redhat.com>
1832
1833 * doublest.c (floatformat_totalsize_bytes): New function.
1834 (floatformat_from_type): Assert that the type's length is at least
1835 as long as the floatformat's totalsize.
1836 * doublest.h (floatformat_totalsize_bytes): New declaration.
1837 * gdbtypes.c (arch_float_type): Assert that the type's length is
1838 at least as long as the floatformat's totalsize.
1839
1840 2016-03-09 Pedro Alves <palves@redhat.com>
1841
1842 * hppa-linux-tdep.c (hppa_linux_init_abi): Set the long double
1843 format to floatformats_ieee_double.
1844
1845 2016-03-07 Pedro Alves <palves@redhat.com>
1846
1847 * mips-tdep.c (mips_gdbarch_init): Check whether info.abfd is NULL
1848 before calling bfd_get_flavour.
1849
1850 2016-03-05 Pitchumani Sivanupandi <pitchumani.s@atmel.com>
1851
1852 * avr-tdep.c (AVR_LAST_ARG_REGNUM): Define.
1853 (avr_push_dummy_call): Correct last needed argument register.
1854 Write MSB of argument into register and subsequent bytes into
1855 other registers in decreasing order.
1856
1857 2016-03-04 Yao Qi <yao.qi@linaro.org>
1858
1859 * arm-tdep.c (arm_record_vdata_transfer_insn): Simplify the
1860 condition check. Record the right D register number.
1861
1862 2016-03-04 Yao Qi <yao.qi@linaro.org>
1863
1864 * arm-tdep.c (arm_record_extension_space): Remove code
1865 printing "Process record does not support".
1866 (arm_record_data_proc_misc_ld_str): Likewise.
1867 (decode_insn): Call arm_record_extension_space if condition
1868 is 0xf. Call arm_record_unsupported_insn if ret isn't
1869 ARM_RECORD_SUCCESS. Use 'ret' instead of 'insn_id' to hold
1870 the value of thumb2_record_decode_insn_handler.
1871
1872 2016-03-04 Simon Marchi <simon.marchi@ericsson.com>
1873
1874 * features/feature_to_c.sh: Print the help when passing no
1875 argument.
1876
1877 2016-03-02 Bernhard Heckel <bernhard.heckel@intel.com>
1878
1879 * MAINTAINERS (Write After Approval): Add Bernhard Heckel.
1880
1881 2016-03-02 Bernhard Heckel <bernhard.heckel@intel.com>
1882
1883 * dwarf2read.c (new_symbol_full): Fix detection of gfortran compilers.
1884
1885 2016-03-01 Andreas Arnez <arnez@linux.vnet.ibm.com>
1886
1887 * s390-linux-tdep.c (s390_backchain_frame_unwind_cache): Avoid
1888 exception when attempting to access the inferior's backchain.
1889
1890 2016-02-29 Yao Qi <yao.qi@linaro.org>
1891
1892 * aarch64-linux-tdep.c (aarch64_canonicalize_syscall): Support
1893 eventfd2, eventfd2, dup3, inotify_init1, fallocate and pipe2.
1894 Return gdb_sys_epoll_create1 instead of gdb_sys_epoll_create
1895 for aarch64_sys_epoll_create1.
1896
1897 2016-02-29 Yao Qi <yao.qi@linaro.org>
1898
1899 * linux-record.h (enum gdb_syscall) <gdb_sys_fallocate>: New.
1900 <gdb_sys_eventfd2, gdb_sys_epoll_create1, gdb_sys_dup3>: New.
1901 <gdb_sys_pipe2, gdb_sys_inotify_init1>: New.
1902 * linux-record.c (record_linux_system_call): Handle them.
1903
1904 2016-02-28 Iain Buclaw <ibuclaw@gdcproject.org>
1905
1906 * d-namespace.c (d_lookup_symbol_imports): Avoid recursive lookups from
1907 cyclic imports.
1908
1909 2016-02-26 Keith Seitz <keiths@redhat.com>
1910
1911 * rs6000-tdep.c (rs6000_frame_cache): Explicitly cast return result
1912 to avoid invalid conversion from void *.
1913
1914 2016-02-26 Yao Qi <yao.qi@linaro.org>
1915
1916 * arm-tdep.c (arm_record_exreg_ld_st_insn): Set 'single_reg'
1917 per bit 8. Check bit 20 instead of bit 4 for VMOV
1918 instruction. Record D registers for instructions changing
1919 S registers. Change of the order of length and address
1920 in record_buf_mem array.
1921
1922 2016-02-26 Yao Qi <yao.qi@linaro.org>
1923
1924 * arm-tdep.c (thumb_record_ld_st_reg_offset): Fix the register
1925 number of Rd.
1926
1927 2016-02-25 Doug Evans <dje@google.com>
1928
1929 * remote-m32r-sdi.c (recv_char_data): Initialize val to avoid
1930 compiler warning.
1931 (recv_long_data): Ditto.
1932
1933 2016-02-25 Simon Marchi <simon.marchi@ericsson.com>
1934
1935 * i386-linux-tdep.c (i386_linux_handle_segmentation_fault):
1936 Initialize variables.
1937
1938 2016-02-25 Antoine Tremblay <antoine.tremblay@ericsson.com>
1939
1940 * ax-general.c (ax_reg): Call gdbarch_remote_register_number.
1941 (ax_reg_mask): Likewise.
1942
1943 2016-02-24 Pedro Alves <palves@redhat.com>
1944
1945 * linux-nat.c (save_sigtrap) Delete.
1946 (stop_wait_callback): Call save_stop_reason instead of
1947 save_sigtrap.
1948 (check_stopped_by_breakpoint): Rename to ...
1949 (save_stop_reason): ... this. Bits of save_sigtrap folded here.
1950 Use GDB_ARCH_IS_TRAP_HWBKPT and handle ambiguous
1951 GDB_ARCH_IS_TRAP_BRKPT / GDB_ARCH_IS_TRAP_HWBKPT. Factor out
1952 common code between the USE_SIGTRAP_SIGINFO and
1953 !USE_SIGTRAP_SIGINFO blocks.
1954 (linux_nat_filter_event): Call save_stop_reason instead of
1955 save_sigtrap.
1956 * nat/linux-ptrace.h: Check for both SI_KERNEL and TRAP_BRKPT
1957 si_code for MIPS.
1958 * nat/linux-ptrace.h: Fix "TRAP_HWBPT" typo in x86 table. Add
1959 comments on MIPS behavior.
1960 (GDB_ARCH_IS_TRAP_HWBKPT): Define for all archs.
1961
1962 2016-02-24 Marcin Kościelnicki <koriakin@0x04.net>
1963
1964 * rs6000-tdep.c (rs6000_frame_cache): Initialize frame and pc to 0
1965 to avoid spurious warnings.
1966
1967 2016-02-24 Gary Benson <gbenson@redhat.com>
1968
1969 * exec.c (exec_file_locate_attach): Do not attempt to
1970 locate main executable locally if not found in sysroot.
1971
1972 2016-02-24 Joel Brobecker <brobecker@adacore.com>
1973
1974 GDB 7.11 released.
1975
1976 2016-02-24 Wei-cheng Wang <cole945@gmail.com>
1977
1978 * rs6000-tdep.c (rs6000_frame_cache, rs6000_frame_this_id): Handle
1979 unavailable PC/SP to build unavailable frame.
1980
1981 2016-02-23 Doug Evans <dje@google.com>
1982
1983 Extend "skip" command to support -file, -gfile, -function, -rfunction.
1984 * NEWS: Document new features.
1985 * skip.c: #include "fnmatch.h", "gdb_regex.h".
1986 (skiplist_entry) <file>: Renamed from filename.
1987 <function>: Renamed from function_name.
1988 <file_is_glob, function_is_regexp>: New members.
1989 <compiled_function_regexp, compiled_function_regexp_is_valid>:
1990 New members.
1991 (make_skip_entry): New function.
1992 (free_skiplist_entry, free_skiplist_entry_cleanup): New functions.
1993 (make_free_skiplist_entry_cleanup): New function.
1994 (skip_file_command): Update.
1995 (skip_function, skip_function_command): Update.
1996 (compile_skip_regexp): New functions.
1997 (skip_command): Add support for new options.
1998 (skip_info): Update.
1999 (skip_file_p, skip_gfile_p): New functions.
2000 (skip_function_p, skip_rfunction_p): New functions.
2001 (function_name_is_marked_for_skip): Update and simplify.
2002 (_initialize_step_skip): Update.
2003 * symtab.c: #include "fnmatch.h".
2004 (compare_glob_filenames_for_search): New function.
2005 * symtab.h (compare_glob_filenames_for_search): Declare.
2006 * utils.c (count_path_elements): New function.
2007 (strip_leading_path_elements): New function.
2008 * utils.h (count_path_elements): Declare.
2009 (strip_leading_path_elements): Declare.
2010
2011 2016-02-23 Simon Marchi <simon.marchi@ericsson.com>
2012
2013 * arm-tdep.c (arm_decode_svc_copro): Remove "to" parameter.
2014 (thumb_process_displaced_insn): Likewise.
2015 (arm_process_displaced_insn): Adjust calls.
2016
2017 2016-02-23 Yao Qi <yao.qi@linaro.org>
2018
2019 * aarch64-linux-tdep.c (enum aarch64_syscall) <aarch64_sys_mknod>:
2020 Remove.
2021 <aarch64_sys_mkdir, aarch64_sys_unlink, aarch64_sys_symlink>: Remove.
2022 <aarch64_sys_link, aarch64_sys_rename, aarch64_sys_faccess>: Remove.
2023 <aarch64_sys_mknodat, aarch64_sys_mkdirat>: New.
2024 <aarch64_sys_unlinkat, aarch64_sys_symlinkat>: New.
2025 <aarch64_sys_linkat, aarch64_sys_renameat>: New.
2026 <aarch64_sys_faccessat>: New.
2027 <aarch64_sys_open, aarch64_sys_readlink, aarch64_sys_fstatat>: Remove.
2028 <aarch64_sys_openat, aarch64_sys_readlinkat>: New.
2029 <aarch64_sys_newfstatat>: New.
2030 (UNSUPPORTED_SYSCALL_MAP): New macro.
2031 (aarch64_canonicalize_syscall): Add missing syscalls.
2032
2033 2016-02-22 Jan Kratochvil <jan.kratochvil@redhat.com>
2034
2035 * gdb-gdb.py (class TypeFlagsPrinter): Use parentheses for print.
2036
2037 2016-02-22 Yao Qi <yao.qi@linaro.org>
2038
2039 * arm-tdep.c: Fix code format issues.
2040
2041 2016-02-21 Iain Buclaw <ibuclaw@gdcproject.org>
2042
2043 * d-namespace.c (d_lookup_symbol_imports): Remove argument
2044 'search_parents'. All callers updated.
2045
2046 2016-02-18 Marcin Kościelnicki <koriakin@0x04.net>
2047
2048 * s390-linux-tdep.c (s390_guess_tracepoint_registers): New function.
2049 (s390_gdbarch_init): Fill guess_tracepoint_registers hook.
2050
2051 2016-02-18 Walfred Tedeschi <walfred.tedeschi@intel.com>
2052
2053 * NEWS: Add entry for bound violation.
2054 * amd64-linux-tdep.c (amd64_linux_init_abi_common):
2055 Add handler for segmentation fault.
2056 * gdbarch.sh (handle_segmentation_fault): New.
2057 * gdbarch.c: Regenerate.
2058 * gdbarch.h: Regenerate.
2059 * i386-linux-tdep.c (i386_linux_handle_segmentation_fault): New.
2060 (SIG_CODE_BONDARY_FAULT): New define.
2061 (i386_linux_init_abi): Use i386_mpx_bound_violation_handler.
2062 * i386-linux-tdep.h (i386_linux_handle_segmentation_fault) New.
2063 * i386-tdep.c (i386_mpx_enabled): Add as external.
2064 * i386-tdep.c (i386_mpx_enabled): Add as external.
2065 * infrun.c (handle_segmentation_fault): New function.
2066 (print_signal_received_reason): Use handle_segmentation_fault.
2067
2068 2016-02-18 Marcin Kościelnicki <koriakin@0x04.net>
2069
2070 * arch-utils.c (default_guess_tracepoint_registers): New function.
2071 * arch-utils.h (default_guess_tracepoint_registers): New prototype.
2072 * gdbarch.c: Regenerate.
2073 * gdbarch.h: Regenerate.
2074 * gdbarch.sh: Add guess_tracepoint_registers hook.
2075 * tracefile.c (tracefile_fetch_registers): Use the new gdbarch hook.
2076
2077 2016-02-17 Gary Benson <gbenson@redhat.com>
2078
2079 * exec.c (exec_file_locate_attach): Add missing cleanup.
2080
2081 2016-02-16 Don Breazeal <donb@codesourcery.com>
2082
2083 PR remote/19496
2084 * remote.c (remove_new_fork_children): Check for pending
2085 fork status in thread_info.suspend.
2086
2087 2016-02-16 Yao Qi <yao.qi@linaro.org>
2088
2089 * arm-linux-tdep.c (arm_linux_software_single_step): Assign
2090 'old_chain' later.
2091
2092 2016-02-16 Yao Qi <yao.qi@linaro.org>
2093
2094 * arch/arm-get-next-pcs.h (struct arm_get_next_pcs_ops)
2095 <syscall_next_pc>: Remove argument PC. Callers updated.
2096 * arm-linux-tdep.c (arm_linux_get_next_pcs_syscall_next_pc):
2097 Remove argument PC. Get pc from regcache_read_pc.
2098 * arm-tdep.c (arm_get_next_pcs_syscall_next_pc): Remove
2099 argument PC.
2100
2101 2016-02-15 Yao Qi <yao.qi@linaro.org>
2102
2103 * aarch64-tdep.c (aarch64_analyze_prologue): Remove "0x".
2104
2105 2016-02-12 Yao Qi <yao.qi@linaro.org>
2106
2107 * arch/arm-linux.c (arm_linux_get_next_pcs_fixup): Calculate
2108 nextpc according to instruction.
2109
2110 2016-02-12 Yao Qi <yao.qi@linaro.org>
2111
2112 * arch/arm-get-next-pcs.c (arm_get_next_pcs): Call
2113 self->ops->fixup if it isn't NULL.
2114 * arch/arm-get-next-pcs.h: Include gdb_vecs.h.
2115 (struct arm_get_next_pcs_ops) <fixup>: New field.
2116 * arch/arm-linux.c: Include common-regcache.h and
2117 arch/arm-get-next-pcs.h.
2118 (arm_linux_get_next_pcs_fixup): New function.
2119 * arch/arm-linux.h (arm_linux_get_next_pcs_fixup): Declare.
2120 * arm-linux-tdep.c (arm_linux_get_next_pcs_ops): Initialize
2121 it with arm_linux_get_next_pcs_fixup.
2122 (arm_linux_software_single_step): Move code to
2123 arm_linux_get_next_pcs_fixup.
2124 * arm-tdep.c (arm_get_next_pcs_ops): Initialize it.
2125
2126 2016-02-12 Marcin Kościelnicki <koriakin@0x04.net>
2127
2128 * xml-tdesc.c (target_fetch_description_xml) [!HAVE_LIBEXPAT]: Warn
2129 and return NULL.
2130
2131 2016-02-12 Markus Metzger <markus.t.metzger@intel.com>
2132
2133 * frame.h (skip_tailcall_frames): Update comment.
2134 * frame.c (skip_artificial_frames, skip_tailcall_frames): Return NULL
2135 if only artificial frames are found. Update comment.
2136 (frame_unwind_caller_id): Handle NULL return.
2137 (frame_unwind_caller_pc, frame_unwind_caller_arch): Assert that
2138 skip_artificial_frames does not return NULL.
2139 (frame_pop): Add an error if only tailcall frames are found.
2140 * infcmd.c (finish_command): Move skip_tailcall_frames call into
2141 forward-execution case. Add an error if only tailcall frames are
2142 found.
2143
2144 2016-02-12 Markus Metzger <markus.t.metzger@intel.com>
2145
2146 * stack.c (frame_info): Check frame_unwind_caller_id.
2147
2148 2016-02-12 Markus Metzger <markus.t.metzger@intel.com>
2149
2150 * frame.h (skip_tailcall_frames): New.
2151 * frame.c (skip_tailcall_frames): New.
2152 (frame_pop): Call skip_tailcall_frames.
2153 * infcmd.c (finish_command): Call skip_tailcall_frames.
2154
2155 2016-02-11 Pedro Alves <palves@redhat.com>
2156
2157 * Makefile.in (check-parallel): New rule.
2158
2159 2016-02-11 Simon Marchi <simon.marchi@ericsson.com>
2160
2161 * arm-tdep.c (arm_skip_prologue): Remove unused variables.
2162 (arm_analyze_prologue): Likewise.
2163 (arm_scan_prologue): Likewise.
2164 (arm_m_exception_prev_register): Likewise.
2165 (arm_copy_block_xfer): Likewise.
2166 (thumb2_copy_block_xfer): Likewise.
2167 (arm_decode_miscellaneous): Likewise.
2168 (arm_decode_ld_st_word_ubyte): Likewise.
2169 (arm_decode_svc_copro): Likewise.
2170 (thumb2_decode_svc_copro): Likewise.
2171 (thumb_copy_16bit_ldr_literal): Likewise.
2172 (thumb_copy_pop_pc_16bit): Likewise.
2173 (decode_thumb_32bit_ld_mem_hints): Likewise.
2174 (arm_show_force_mode): Likewise.
2175 (_initialize_arm_tdep): Likewise.
2176 (arm_record_strx): Likewise.
2177 (arm_record_extension_space): Likewise.
2178 (arm_record_data_proc_misc_ld_str): Likewise.
2179 (arm_record_exreg_ld_st_insn): Likewise.
2180 (arm_record_vfp_data_proc_insn): Likewise.
2181 (arm_record_coproc_data_proc): Likewise.
2182 (thumb_record_misc): Likewise.
2183 (thumb_record_ldm_stm_swi): Likewise.
2184 (thumb2_record_ld_st_dual_ex_tbb): Likewise.
2185 (thumb2_record_ld_mem_hints): Likewise.
2186 (thumb2_record_lmul_lmla_div): Likewise.
2187 (thumb2_record_asimd_struct_ld_st): Likewise.
2188 (arm_process_record): Likewise.
2189
2190 2016-02-11 Simon Marchi <simon.marchi@ericsson.com>
2191
2192 * arm-tdep.c (arm_displaced_step_copy_insn): Remove.
2193 (ARM displaced stepping support): Remove reference to
2194 arm_displaced_step_copy_insn in comment.
2195 * arm-tdep.h (arm_displaced_step_copy_insn): Remove.
2196 * arm-linux-tdep.c (arm_linux_displaced_step_copy_insn): Remove
2197 reference to arm_displaced_step_copy_insn in comment.
2198
2199 2016-02-11 Simon Marchi <simon.marchi@ericsson.com>
2200
2201 * arm-tdep.c (thumb_copy_unmodified_16bit): Change type of insn.
2202 (thumb_copy_b): Likewise.
2203 (arm_decode_b_bl_ldmstm): Likewise.
2204 (thumb_copy_16bit_ldr_literal): Likewise.
2205 (thumb_copy_pop_pc_16bit): Likewise.
2206
2207 2016-02-11 Antoine Tremblay <antoine.tremblay@ericsson.com>
2208
2209 * tracepoint.c (encode_actions_1): Use target_gdbarch () rather
2210 than loc->gdbarch.
2211
2212 2016-02-10 Marcin Kościelnicki <koriakin@0x04.net>
2213
2214 * tracefile-tfile.c (trace_tdesc): New static variable.
2215 (tfile_open): Clear trace_tdesc, call target_find_description.
2216 (tfile_interp_line): Recognize tdesc lines.
2217 (tfile_close): Clear trace_tdesc.
2218 (tfile_xfer_partial_features): New function.
2219 (tfile_xfer_partial): Call tfile_xfer_partial_features.
2220 (tfile_append_tdesc_line): New function.
2221
2222 2016-02-10 Marcin Kościelnicki <koriakin@0x04.net>
2223
2224 * ctf.c (ctf_write_tdesc): New function.
2225 (ctf_write_ops): Wire in ctf_write_tdesc.
2226 * tracefile-tfile.c (tfile_write_tdesc): New function.
2227 (tfile_write_ops): Wire in tfile_write_tdesc.
2228 * tracefile.c (trace_save): Call write_tdesc method.
2229 * tracefile.h (struct trace_file_write_ops): Add write_tdesc method.
2230 * xml-tdesc.c (target_fetch_description_xml): New function.
2231 * xml-tdesc.h: Add target_fetch_description_xml prototype.
2232
2233 2016-02-10 Simon Marchi <simon.marchi@ericsson.com>
2234
2235 * arm-tdep.c (arm_copy_extra_ld_st): Fix "unpriveleged" typo.
2236 (arm_decode_dp_misc): Likewise.
2237
2238 2016-02-10 Marcin Kościelnicki <koriakin@0x04.net>
2239
2240 * amd64-tdep.c (amd64_ax_pseudo_register_collect): New function.
2241 (amd64_init_abi): Fill ax_pseudo_register_collect hook.
2242 * gdb/i386-tdep.c (i386_pseudo_register_read_into_value): Remove
2243 misleading comment.
2244 (i386_pseudo_register_write): Ditto.
2245 (i386_ax_pseudo_register_collect): New function.
2246 (i386_gdbarch_init): Fill ax_pseudo_register_collect hook.
2247 * i386-tdep.h: Add i386_ax_pseudo_register_collect prototype.
2248
2249 2016-02-10 Marcin Kościelnicki <koriakin@0x04.net>
2250
2251 * tracefile-tfile.c (tfile_fetch_registers): Use g packet order
2252 instead of gdb order.
2253
2254 2016-02-10 Marcin Kościelnicki <koriakin@0x04.net>
2255
2256 * tracefile-tfile.c (tfile_fetch_registers): Fix off-by-one in bounds
2257 check.
2258
2259 2016-02-10 Joel Brobecker <brobecker@adacore.com>
2260
2261 * NEWS: Create a new section for the next release branch.
2262 Rename the section of the current branch, now that it has
2263 been cut.
2264
2265 2016-02-10 Joel Brobecker <brobecker@adacore.com>
2266
2267 GDB 7.11 branch created (9ef9e6a6a0dd8f948708cb67c9afcfd0be40cb0a):
2268 * version.in: Bump version to 7.11.50.DATE-git.
2269
2270 2016-02-09 Keith Seitz <keiths@redhat.com>
2271
2272 PR breakpoints/19546
2273 * breakpoint.c (breakpoint_event_location_empty_p): New function.
2274 (update_breakpoints_after_exec, bkpt_re_set): Use this new function
2275 instead of event_location_empty_p.
2276
2277 2016-02-09 Keith Seitz <keiths@redhat.com>
2278
2279 * mi/mi-cmd-break.c (mi_cmd_break_insert_1): Use
2280 string_to_event_location_basic instead of string_to_event_location.
2281
2282 2016-02-09 Keith Seitz <keiths@redhat.com>
2283
2284 * guile/scm-breakpoint.c (gdbscm_register_breakpoint_x): Skip
2285 leading whitespace and use string_to_event_location_basic instead
2286 of new_linespec_location.
2287
2288 2016-02-09 Keith Seitz <keiths@redhat.com>
2289
2290 PR python/19506
2291 * python/py-breakpoint.c (bppy_init): Use
2292 string_to_event_location_basic instead of new_linespec_location.
2293
2294 2016-02-09 Keith Seitz <keiths@redhat.com>
2295
2296 * location.c (string_to_explicit_location): Note that "-p" is
2297 reserved for probe locations and return NULL for any input
2298 that starts with that.
2299 (string_to_event_location): Move "legacy" linespec code to ...
2300 (string_to_event_location_basic): ... here.
2301 * location.h (string_to_event_location): Update comment.
2302 (string_to_event_location_basic): New function.
2303
2304 2016-02-09 Simon Marchi <simon.marchi@ericsson.com>
2305
2306 * configure.ac: Use AC_CONFIG_FILES instead of passing arguments
2307 to AC_OUTPUT. Remove "exit 0" at the end.
2308 * configure: Regenerate.
2309
2310 2016-02-09 Pedro Alves <palves@redhat.com>
2311
2312 PR breakpoints/19548
2313 * breakpoint.c (create_overlay_event_breakpoint): Don't update
2314 global location list here.
2315 (create_longjmp_master_breakpoint)
2316 (create_std_terminate_master_breakpoint)
2317 (create_exception_master_breakpoint, create_jit_event_breakpoint)
2318 (update_breakpoint_locations):
2319 (breakpoint_re_set): Update global location list after all
2320 breakpoints are re-set.
2321
2322 2016-02-08 Simon Marchi <simon.marchi@ericsson.com>
2323
2324 * remote.c (remote_register_number_and_offset): Remove unused
2325 variable(s).
2326 (remote_thread_always_alive): Likewise.
2327 (remote_update_thread_list): Likewise.
2328 (process_initial_stop_replies): Likewise.
2329 (remote_start_remote): Likewise.
2330 (remote_check_symbols): Likewise.
2331 (discard_pending_stop_replies): Likewise.
2332 (process_stop_reply): Likewise.
2333 (putpkt_binary): Likewise.
2334 (getpkt): Likewise.
2335 (remote_add_target_side_condition): Likewise.
2336 (remote_insert_breakpoint): Likewise.
2337 (remote_supports_stopped_by_sw_breakpoint): Likewise.
2338 (remote_supports_stopped_by_hw_breakpoint): Likewise.
2339 (remote_xfer_partial): Likewise.
2340 (remote_read_btrace): Likewise.
2341 (remote_async_serial_handler): Likewise.
2342 (remote_thread_events): Likewise.
2343 (_initialize_remote): Likewise.
2344
2345 2016-02-07 Simon Marchi <simon.marchi@polymtl.ca>
2346
2347 * varobj.h (varobj_delete): Remove dellist parameter, update and
2348 move documentation here.
2349 * varobj.c (struct cpstack, cppush, cppop): Remove.
2350 (delete_variable): Remove resultp (first) parameter.
2351 (delete_variable_1): Likewise.
2352 (varobj_delete): Remove dellist parameter and unused code.
2353 (update_dynamic_varobj_children): Adjust varobj_delete call.
2354 (update_type_if_necessary): Likewise.
2355 (varobj_set_visualizer): Likewise.
2356 (varobj_update): Likewise.
2357 (value_of_root): Likewise.
2358 (varobj_invalidate_iter): Likewise.
2359 * mi/mi-cmd-var.c (mi_cmd_var_delete): Likewise.
2360
2361 2016-02-04 Yao Qi <yao.qi@linaro.org>
2362
2363 * remote.c (remote_wait_as): Set rs->waiting_for_stop_reply to
2364 0 before handling 'F' and set it back afterwards.
2365
2366 2016-02-02 Simon Marchi <simon.marchi@ericsson.com>
2367
2368 * ui-out.c (MAX_UI_OUT_LEVELS): Remove.
2369
2370 2016-02-02 Walfred Tedeschi <walfred.tedeschi@intel.com>
2371
2372 * amd64-linux-siginfo.c (nat_siginfo_t, nat_sigval_t, nat_timeval):
2373 New types.
2374 (compat_siginfo): New bound fields added.
2375 (compat_x32_siginfo): New field added.
2376 (cpt_si_addr_lsb): New define.
2377 (compat_siginfo_from_siginfo): Use nat_siginfo.
2378 (siginfo_from_compat_siginfo): Use nat_siginfo.
2379 (compat_x32_siginfo_from_siginfo): Likewise.
2380 (siginfo_from_compat_x32_siginfo): Likewise.
2381
2382 2016-02-02 Walfred Tedeschi <walfred.tedeschi@intel.com>
2383
2384 * linux-tdep.c (linux_get_siginfo_type): Add the _addr_bnd
2385 structure to the siginfo if extra_fields contains
2386 LINUX_SIGINFO_FIELD_ADDR_BND.
2387
2388 2016-02-02 Walfred Tedeschi <walfred.tedeschi@intel.com>
2389
2390 * linux-tdep.h (linux_get_siginfo_type_with_fields): Make extern.
2391 * linux-tdep.c (linux_get_siginfo_type_with_fields): Make extern.
2392 * i386-linux-tdep.h (x86_linux_get_siginfo_type): New
2393 function.
2394 * amd64-linux-tdep.c (amd64_linux_init_abi_common): Add
2395 x86_linux_get_siginfo_type for the amd64 abi.
2396 * i386-linux-tdep.c (x86_linux_get_siginfo_type): New
2397 function.
2398 (i386_linux_init_abi): Add new function at the i386 ABI
2399 initialization.
2400
2401 2016-02-02 Walfred Tedeschi <walfred.tedeschi@intel.com>
2402
2403 * linux-tdep.h (linux_siginfo_extra_field_values): New enum values.
2404 (linux_siginfo_extra_fields): New enum type.
2405 * linux-tdep.c (linux_get_siginfo_type_with_fields): New function.
2406 (linux_get_siginfo_type): Use new function.
2407
2408 2016-02-02 Walfred Tedeschi <walfred.tedeschi@intel.com>
2409
2410 * nat/amd64-linux-siginfo.c: New file.
2411 * nat/amd64-linux-siginfo.h: New file.
2412 * Makefile.in (HFILES_NO_SRCDIR): Add nat/amd64-linux-siginfo.h.
2413 (amd64-linux-siginfo.o): New rule.
2414 * config/i386/linux64.mh (NATDEPFILES): Add amd64-linux-siginfo.o.
2415 * amd64-linux-nat.c (nat/amd64-linux-siginfo.h): New include.
2416 (compat_siginfo_from_siginfo, siginfo_from_compat_siginfo)
2417 (compat_x32_siginfo_from_siginfo, siginfo_from_compat_x32_siginfo)
2418 (compat_timeval, compat_sigval, compat_x32_clock, cpt_si_pid)
2419 (cpt_si_uid, cpt_si_timerid, cpt_si_overrun, cpt_si_status)
2420 (cpt_si_utime, cpt_si_stime, cpt_si_ptr, cpt_si_addr, cpt_si_band)
2421 (cpt_si_fd, si_timerid, si_overrun): Move to nat/amd64-linux-siginfo.c.
2422
2423 2016-02-01 Andrew Burgess <andrew.burgess@embecosm.com>
2424
2425 * value.c (max_value_size): New variable.
2426 (MIN_VALUE_FOR_MAX_VALUE_SIZE): New define.
2427 (set_max_value_size): New function.
2428 (show_max_value_size): New function.
2429 (check_type_length_before_alloc): New function.
2430 (allocate_value_contents): Call check_type_length_before_alloc.
2431 (set_value_enclosing_type): Likewise.
2432 (_initialize_values): Add set/show handler for max-value-size.
2433 * NEWS: Mention new set/show command.
2434
2435 2016-01-31 Simon Marchi <simon.marchi@polymtl.ca>
2436
2437 * varobj.h (struct varobj): Fix typos in comments.
2438 (struct lang_varobj_ops): Likewise.
2439 * varobj.c (VAROBJ_TABLE_SIZE): Likewise.
2440 (varobj_create): Move misplaced comment.
2441
2442 2016-01-29 Simon Marchi <simon.marchi@ericsson.com>
2443
2444 * aarch64-tdep.c (aarch64_record_asimd_load_store): Add braces
2445 to for include additional lines.
2446 * xcoffread.c (scan_xcoff_symtab): Remove unnecessary braces.
2447
2448 2016-01-28 Simon Marchi <simon.marchi@ericsson.com>
2449
2450 * gnulib/import/Makefile.am: Regenerate.
2451 * gnulib/import/Makefile.in: Regenerate.
2452 * gnulib/import/m4/gnulib-cache.m4: Regenerate.
2453 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add rawmemchr.
2454
2455 2016-01-28 Simon Marchi <simon.marchi@ericsson.com>
2456
2457 * remote.c (skip_to_semicolon): Remove.
2458 (remote_parse_stop_reply): Use strchrnul instead of
2459 skip_to_semicolon.
2460 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add
2461 strchrnul.
2462 * gnulib/aclocal.m4: Regenerate.
2463 * gnulib/config.in: Regenerate.
2464 * gnulib/configure: Regenerate.
2465 * gnulib/import/Makefile.am: Regenerate.
2466 * gnulib/import/Makefile.in: Regenerate.
2467 * gnulib/import/m4/gnulib-cache.m4: Regenerate.
2468 * gnulib/import/m4/gnulib-comp.m4: Regenerate.
2469 * gnulib/import/m4/rawmemchr.m4: New file.
2470 * gnulib/import/m4/strchrnul.m4: New file.
2471 * gnulib/import/rawmemchr.c: New file.
2472 * gnulib/import/rawmemchr.valgrind: New file.
2473 * gnulib/import/strchrnul.c: New file.
2474 * gnulib/import/strchrnul.valgrind: New file.
2475
2476 2016-01-28 Yao Qi <yao.qi@linaro.org>
2477
2478 * breakpoint.c (build_target_command_list): Don't call continue
2479 if aexpr is NULL.
2480 (build_target_condition_list): Likewise.
2481
2482 2016-01-27 Kevin Buettner <kevinb@redhat.com>
2483
2484 * rx-tdep.c (rx_push_dummy_call): Treat scalars larger than 8
2485 bytes as aggregates.
2486
2487 2016-01-27 Joel Brobecker <brobecker@adacore.com>
2488
2489 * MAINTAINERS (Responsible Maintainers): Add Keith Seitz as
2490 Linespec Maintainers.
2491
2492 2016-01-26 Simon Marchi <simon.marchi@ericsson.com>
2493
2494 * common/common-utils.c (skip_spaces): Fix comment.
2495 (skip_to_space_const): Likewise.
2496
2497 2016-01-25 Yao Qi <yao.qi@linaro.org>
2498
2499 * arch/arm-get-next-pcs.c (thumb_deal_with_atomic_sequence_raw):
2500 Remove argument pc. Get pc by regcache_read_pc. Callers updated.
2501 (arm_deal_with_atomic_sequence_raw): Likewise.
2502 (thumb_get_next_pcs_raw): Likewise.
2503 (arm_get_next_pcs_raw): Likewise.
2504 (arm_get_next_pcs): Remove argument pc. Callers updated.
2505 * arch/arm-get-next-pcs.h (arm_get_next_pcs): Update declaration.
2506
2507 2016-01-25 Mark Wielaard <mjw@redhat.com>
2508
2509 * ada-lang.c (ada_evaluate_subexp): Add proper else block.
2510 * c-typeprint.c (c_type_print_base): Fix misleading indentation of
2511 if statement.
2512 * inflow.c (child_terminal_ours_1): Fix misleading indentation of
2513 statement block by introducing an else.
2514 * linux-record.c (record_linux_sockaddr): Fix misleading indentation
2515 of return statements.
2516 (record_linux_msghdr): Likewise.
2517
2518 2016-01-25 Pedro Alves <palves@redhat.com>
2519
2520 PR threads/19461
2521 * infrun.c (handle_inferior_event_1) <fork/vfork>: Update
2522 parent/child running states.
2523
2524 2016-01-25 Pedro Alves <palves@redhat.com>
2525
2526 PR gdb/19494
2527 * linux-nat.c (kill_one_lwp): New, factored out from ...
2528 (kill_callback): ... this.
2529 (kill_wait_callback): New, factored out from ...
2530 (kill_wait_one_lwp): ... this.
2531 (kill_unfollowed_fork_children): New function.
2532 (linux_nat_kill): Use it.
2533
2534 2016-01-22 John Baldwin <jhb@FreeBSD.org>
2535
2536 * fbsd-nat.c (fbsd_pid_to_str): Adjust string format.
2537
2538 2016-01-22 Yao Qi <yao.qi@linaro.org>
2539
2540 * arm-linux-nat.c (fetch_fpregs): Call perror_with_name
2541 instead of warning.
2542 (store_fpregs, fetch_regs, store_regs): Likewise.
2543 (fetch_wmmx_regs, store_wmmx_regs): Likewise.
2544 (fetch_vfp_regs, store_vfp_regs): Likewise.
2545
2546 2016-01-21 Doug Evans <dje@google.com>
2547
2548 * breakpoint.c (init_breakpoint_sal): Add comment.
2549
2550 2016-01-21 Marcin Kościelnicki <koriakin@0x04.net>
2551
2552 * ax-gdb.c (gen_traced_pop): Use gen_fetch for string collection.
2553
2554 2016-01-21 Andrew Burgess <andrew.burgess@embecosm.com>
2555
2556 * disasm.c (maybe_add_dis_line_entry): Rename to...
2557 (add_dis_line_entry): ...this, and update header comment.
2558 (do_mixed_source_and_assembly): Now use add_dis_line_entry.
2559
2560 2016-01-21 Pedro Alves <palves@redhat.com>
2561
2562 * Makefile.in (COMPILER_CFLAGS): New.
2563 (CXXFLAGS): Get it from configure.
2564 (INTERNAL_CFLAGS_BASE, INTERNAL_LDFLAGS): Use COMPILER_CFLAGS
2565 instead of CFLAGS.
2566 * build-with-cxx.m4 (GDB_AC_BUILD_WITH_CXX): Set and AC_SUBST
2567 COMPILER_CFLAGS.
2568 * configure: Regenerate.
2569
2570 2016-01-21 Joel Brobecker <brobecker@adacore.com>
2571
2572 * location.h (new_address_location): Add new parameters
2573 "addr_string" and "addr_string_len".
2574 (get_address_string_location): Add declaration.
2575 * location.c (new_address_location): Add new parameters
2576 "addr_string" and "addr_string_len". If not NULL, store
2577 a copy of the addr_string in the new location as well.
2578 (get_address_string_location): New function.
2579 (string_to_event_location): Update call to new_address_location.
2580 * linespec.c (event_location_to_sals) <ADDRESS_LOCATION>:
2581 Save the event location in the parser's state before
2582 passing it to convert_address_location_to_sals.
2583 * breakpoint.c (create_thread_event_breakpoint): Update call
2584 to new_address_location.
2585 (init_breakpoint_sal): Get the event location's string, if any,
2586 and use it to update call to new_address_location.
2587 * python/py-finishbreakpoint.c (bpfinishpy_init):
2588 Update call to new_address_location.
2589 * spu-tdep.c (spu_catch_start): Likewise.
2590
2591 * config/djgpp/fnchange.lst: Add entries for
2592 gdb/testsuite/gdb.base/break-fun-addr1.c and
2593 gdb/testsuite/gdb.base/break-fun-addr2.c.
2594
2595 2016-01-21 Yao Qi <yao.qi@linaro.org>
2596
2597 * arm-linux-tdep.c (arm_linux_sigreturn_next_pc): Add parameter
2598 is_thumb and set it according to CPSR saved on the stack.
2599 (arm_linux_get_next_pcs_syscall_next_pc): Pass is_thumb to
2600 arm_linux_sigreturn_next_pc.
2601
2602 2016-01-20 Simon Marchi <simon.marchi@polymtl.ca>
2603
2604 * python/lib/gdb/printing.py (FlagEnumerationPrinter.__call__):
2605 Fix enumerators sort key function.
2606
2607 2016-01-20 Joel Brobecker <brobecker@adacore.com>
2608
2609 * printcmd.c (print_scalar_formatted): Move binary operator from
2610 end of line to beginning of next line. Adjust formatting
2611 accordingly.
2612
2613 2016-01-19 John Baldwin <jhb@FreeBSD.org>
2614
2615 * fbsd-nat.c (fbsd_pid_to_exec_file): Use new "buflen" instead of
2616 "len" with sysctl.
2617
2618 2016-01-19 John Baldwin <jhb@FreeBSD.org>
2619
2620 * fbsd-tdep.c (find_stop_signal): Remove.
2621 (struct fbsd_collect_regset_section_cb) <lwp>: New field.
2622 <stop_signal>: New field.
2623 <abort_iteration>: New field.
2624 (fbsd_collect_regset_section_cb): Use new fields.
2625 (fbsd_collect_thread_registers): New function.
2626 (struct fbsd_corefile_thread_data): New structure.
2627 (fbsd_corefile_thread): New function.
2628 (fbsd_make_corefile_notes): Use new function to dump notes for each
2629 non-exited thread in a process.
2630
2631 2016-01-19 John Baldwin <jhb@FreeBSD.org>
2632
2633 * configure.ac: Check for support for LWP names on FreeBSD.
2634 * fbsd-nat.c [PT_LWPINFO] New variable debug_fbsd_lwp.
2635 [TDP_RFPPWAIT || HAVE_STRUCT_PTRACE_LWPINFO_PL_TDNAME]
2636 (fbsd_fetch_kinfo_proc): Move function earlier.
2637 [PT_LWPINFO] (fbsd_thread_alive): New function.
2638 [PT_LWPINFO] (fbsd_pid_to_str): New function.
2639 [HAVE_STRUCT_PTRACE_LWPINFO_PL_TDNAME] (fbsd_thread_name): New function.
2640 [PT_LWP_EVENTS] (fbsd_enable_lwp_events): New function.
2641 [PT_LWPINFO] (fbsd_add_threads): New function.
2642 [PT_LWPINFO] (fbsd_update_thread_list): New function.
2643 [PT_LWPINFO] New variable super_resume.
2644 [PT_LWPINFO] (resume_one_thread_cb): New function.
2645 [PT_LWPINFO] (resume_all_threads_cb): New function.
2646 [PT_LWPINFO] (fbsd_resume): New function.
2647 (fbsd_remember_child): Save full ptid instead of plain pid.
2648 (fbsd_is_child_pending): Return ptid of saved child process.
2649 (fbsd_wait): Include lwp in returned ptid and switch to LWP ptid on
2650 first stop.
2651 [PT_LWP_EVENTS] Handle LWP events.
2652 [TDP_RFPPWAIT] Include LWP in child ptid.
2653 (fbsd_post_startup_inferior) [PT_LWP_EVENTS]: Enable LWP events.
2654 (fbsd_post_attach) [PT_LWP_EVENTS]: Enable LWP events.
2655 Add threads for existing processes.
2656 (fbsd_nat_add_target) [PT_LWPINFO]: Set "to_thread_alive" to
2657 "fbsd_thread_alive".
2658 Set "to_pid_to_str" to "fbsd_pid_to_str".
2659 [HAVE_STRUCT_PTRACE_LWPINFO_PL_TDNAME]: Set "to_thread_name" to
2660 "fbsd_thread_name".
2661 [PT_LWPINFO]: Set "to_update_thread_list" to "fbsd_update_thread_list".
2662 Set "to_has_thread_control" to "tc_schedlock".
2663 Set "to_resume" to "fbsd_resume".
2664 (_initialize_fbsd_nat): New function.
2665 * configure: Regenerate.
2666 * config.in: Regenerate.
2667
2668 2016-01-19 John Baldwin <jhb@FreeBSD.org>
2669
2670 * amd64bsd-nat.c (amd64bsd_fetch_inferior_registers): Use
2671 get_ptrace_pid.
2672 (amd64bsd_store_inferior_registers): Use get_ptrace_pid.
2673 (amd64bsd_dr_get): Use get_ptrace_pid.
2674 (amd64bsd_dr_set): Use get_ptrace_pid.
2675 * i386bsd-nat.c (i386bsd_fetch_inferior_registers): Use get_ptrace_pid.
2676 (i386bsd_store_inferior_registers): Use get_ptrace_pid.
2677 (i386bsd_dr_get): Use get_ptrace_pid.
2678 (i386bsd_dr_set): Use get_ptrace_pid.
2679 * inf-ptrace.c (get_ptrace_pid): Export.
2680 * inf-ptrace.h (get_ptrace_pid): Declare.
2681 * ppcfbsd-nat.c (ppcfbsd_fetch_inferior_registers): Use lwp id.
2682 (ppcfbsd_store_inferior_registers): Use lwp id.
2683
2684 2016-01-19 John Baldwin <jhb@FreeBSD.org>
2685
2686 * fbsd_tdep.c (fbsd_core_pid_to_str): New function.
2687 (fbsd_core_thread_name): New function.
2688 (fbsd_init_abi): Add "core_pid_to_str" gdbarch method.
2689 Add "core_thread_name" gdbarch method.
2690
2691 2016-01-19 John Baldwin <jhb@FreeBSD.org>
2692
2693 * corelow.c (core_thread_name): New function.
2694 (init_core_ops): Use "core_thread_name" for the "to_thread_name"
2695 target op.
2696 * gdbarch.sh (core_thread_name): New gdbarch callback.
2697 * gdbarch.h: Re-generate.
2698 * gdbarch.c: Re-generate.
2699
2700 2016-01-19 Simon Marchi <simon.marchi@polymtl.ca>
2701
2702 * python/lib/gdb/printing.py (_EnumInstance.to_string): Explicitly
2703 convert gdb.Value to integer type using int().
2704
2705 2016-01-19 John Baldwin <jhb@FreeBSD.org>
2706
2707 * configure.ac: Include <sys/types.h when checking for "r_fs" in
2708 "struct reg".
2709 * configure: Regenerate.
2710
2711 2016-01-19 Pedro Alves <palves@redhat.com>
2712
2713 * ax-gdb.c (agent_command_1): Adjust call to decode_line_full.
2714 * break-catch-throw.c (re_set_exception_catchpoint): Pass the
2715 current program space down to linespec decoding and breakpoint
2716 location updating.
2717 * breakpoint.c (parse_breakpoint_sals): Adjust calls to
2718 decode_line_full.
2719 (until_break_command): Adjust calls to decode_line_1.
2720 (base_breakpoint_decode_location, bkpt_decode_location): Add
2721 'search_pspace' parameter. Pass it along.
2722 (bkpt_probe_create_sals_from_location): Adjust calls to
2723 parse_probes.
2724 (tracepoint_decode_location, tracepoint_probe_decode_location)
2725 (strace_marker_decode_location): Add 'search_pspace' parameter.
2726 Pass it along.
2727 (all_locations_are_pending): Rewrite to take a breakpoint and
2728 program space as arguments instead.
2729 (hoist_existing_locations): New function.
2730 (update_breakpoint_locations): Add 'filter_pspace' parameter. Use
2731 hoist_existing_locations instead of always removing all locations,
2732 and adjust to all_locations_are_pending change.
2733 (location_to_sals): Add 'search_pspace' parameter. Pass it along.
2734 Don't disable the breakpoint if there are other locations in
2735 another program space.
2736 (breakpoint_re_set_default): Adjust to pass down the current
2737 program space as filter program space.
2738 (decode_location_default): Add 'search_pspace' parameter and pass
2739 it along.
2740 (prepare_re_set_context): Don't switch program space here.
2741 (breakpoint_re_set): Use save_current_space_and_thread instead of
2742 save_current_program_space.
2743 * breakpoint.h (struct breakpoint_ops) <decode_location>: Add
2744 'search_pspace' parameter.
2745 (update_breakpoint_locations): Add 'filter_pspace' parameter.
2746 * cli/cli-cmds.c (edit_command, list_command): Adjust calls to
2747 decode_line_1.
2748 * elfread.c (elf_gnu_ifunc_resolver_return_stop): Pass the current
2749 program space as filter program space.
2750 * linespec.c (struct linespec_state) <search_pspace>: New field.
2751 (create_sals_line_offset, convert_explicit_location_to_sals)
2752 (parse_linespec): Pass the search program space down.
2753 (linespec_state_constructor): Add 'search_pspace' parameter.
2754 Store it.
2755 (linespec_parser_new): Add 'search_pspace' parameter and pass it
2756 along.
2757 (linespec_lex_to_end): Adjust.
2758 (decode_line_full, decode_line_1): Add 'search_pspace' parameter
2759 and pass it along.
2760 (decode_line_with_last_displayed): Adjust.
2761 (collect_symtabs_from_filename, symtabs_from_filename): New
2762 'search_pspace' parameter. Use it.
2763 (find_function_symbols): Pass the search program space down.
2764 * linespec.h (decode_line_1, decode_line_full): Add
2765 'search_pspace' parameter.
2766 * probe.c (parse_probes_in_pspace): New function, factored out
2767 from ...
2768 (parse_probes): ... this. Add 'search_pspace' parameter and use
2769 it.
2770 * probe.h (parse_probes): Add pspace' parameter.
2771 * python/python.c (gdbpy_decode_line): Adjust.
2772 * tracepoint.c (scope_info): Adjust.
2773
2774 2016-01-18 Maciej W. Rozycki <macro@imgtec.com>
2775
2776 * mips-tdep.c (mips_insn_size): Remove 48-bit microMIPS
2777 instruction support.
2778 (micromips_next_pc): Likewise.
2779 (micromips_scan_prologue): Likewise.
2780 (micromips_deal_with_atomic_sequence): Likewise.
2781 (micromips_stack_frame_destroyed_p): Likewise.
2782 (mips_breakpoint_from_pc): Likewise.
2783
2784 2016-01-18 Maciej W. Rozycki <macro@imgtec.com>
2785
2786 * mips-tdep.c (micromips_insn_at_pc_has_delay_slot): Pass
2787 unshifted 16-bit microMIPS instruction word to `mips_insn_size'.
2788
2789 2016-01-18 Pedro Alves <palves@redhat.com>
2790
2791 * NEWS: Mention that GDB now displays the ID and name of the
2792 thread that hit a breakpoint or received a signal.
2793 * break-catch-sig.c (signal_catchpoint_print_it): Use
2794 maybe_print_thread_hit_breakpoint.
2795 * break-catch-syscall.c (print_it_catch_syscall): Likewise.
2796 * break-catch-throw.c (print_it_exception_catchpoint): Likewise.
2797 * breakpoint.c (maybe_print_thread_hit_breakpoint): New function.
2798 (print_it_catch_fork, print_it_catch_vfork, print_it_catch_solib)
2799 (print_it_catch_exec, print_it_ranged_breakpoint)
2800 (print_it_watchpoint, print_it_masked_watchpoint, bkpt_print_it):
2801 Use maybe_print_thread_hit_breakpoint.
2802 * breakpoint.h (maybe_print_thread_hit_breakpoint): Declare.
2803 * gdbthread.h (show_thread_that_caused_stop): Declare.
2804 * infrun.c (print_signal_received_reason): Print which thread
2805 received signal.
2806 * thread.c (show_thread_that_caused_stop): New function.
2807
2808 2016-01-18 Gary Benson <gbenson@redhat.com>
2809
2810 * nat/linux-namespaces.c (do_fork): New function.
2811 (linux_mntns_get_helper): Use the above.
2812
2813 2016-01-17 Jonas Hahnfeld <Hahnfeld@itc.rwth-aachen.de> (tiny change)
2814
2815 Pushed by Joel Brobecker <brobecker@adacore.com>.
2816 PR gdb/19208
2817 * dwarf2read.c (read_partial_die): Do not call set_objfile_main_name
2818 if the function has no name.
2819
2820 2016-01-15 Sandra Loosemore <sandra@codesourcery.com>
2821
2822 * charset.c [PHONY_ICONV] (GDB_DEFAULT_HOST_CHARSET):
2823 Conditionalize for Windows host.
2824 (GDB_DEFAULT_TARGET_CHARSET): Match GDB_DEFAULT_HOST_CHARSET.
2825 (GDB_DEFAULT_TARGET_WIDE_CHARSET): Use UTF-32.
2826 (phony_iconv_open): Handle both UTF-32 endiannesses.
2827 (phony_iconv): Likewise. Check for output overflow and clean up
2828 out-of-input cases. Correct adjustment to input buffer pointer.
2829 (set_be_le_names) [PHONY_ICONV]: Use hard-wired names to match
2830 phony_iconv_open.
2831
2832 2016-01-15 Pedro Alves <palves@redhat.com>
2833
2834 * NEWS: Mention star wildcard ranges.
2835 * cli/cli-utils.c (get_number_or_range): Check state->in_range first.
2836 (number_range_setup_range): New function.
2837 * cli/cli-utils.h (number_range_setup_range): New declaration.
2838 * thread.c (thread_apply_command): Support star TID ranges.
2839 * tid-parse.c (tid_range_parser_finished)
2840 (tid_range_parser_string, tid_range_parser_skip)
2841 (get_tid_or_range, get_tid_or_range): Handle
2842 TID_RANGE_STATE_STAR_RANGE.
2843 (tid_range_parser_star_range): New function.
2844 * tid-parse.h (enum tid_range_state) <TID_RANGE_STATE_STAR_RANGE>:
2845 New value.
2846 (tid_range_parser_star_range): New declaration.
2847
2848 2016-01-15 Pedro Alves <palves@redhat.com>
2849
2850 * thread.c (thread_apply_command): Use the tid range parser to
2851 advance past the thread ID list.
2852 * tid-parse.c (get_positive_number_trailer): New function.
2853 (parse_thread_id): Use it.
2854 (get_tid_or_range): Use it. Return 0 instead of throwing invalid
2855 thread ID error.
2856 (get_tid_or_range): Detect negative values. Return 0 instead of
2857 throwing invalid thread ID error.
2858
2859 2016-01-14 Yao Qi <yao.qi@linaro.org>
2860
2861 * arm-linux-tdep.c (arm_linux_get_next_pcs_syscall_next_pc):
2862 Declare.
2863 (arm_linux_get_next_pcs_ops): Install
2864 arm_linux_get_next_pcs_syscall_next_pc.
2865 (arm_linux_syscall_next_pc): Change to ...
2866 (arm_linux_get_next_pcs_syscall_next_pc): ... it.
2867 (arm_linux_init_abi): Don't set tdep->syscall_next_pc.
2868 * arm-tdep.c (arm_get_next_pcs_syscall_next_pc): Declare.
2869 (arm_get_next_pcs_syscall_next_pc): Make it static. Don't
2870 call tdep->syscall_next_pc.
2871 * arm-tdep.h (struct gdbarch_tdep) <syscall_next_pc>: Remove.
2872 (arm_get_next_pcs_syscall_next_pc): Remove.
2873
2874 2016-01-14 Yao Qi <yao.qi@linaro.org>
2875
2876 * remote.c (remote_set_syscall_catchpoint): Cast to char *.
2877 * thread.c (do_captured_thread_select): Cast to const char *.
2878
2879 2016-01-14 Yao Qi <yao.qi@linaro.org>
2880
2881 * arch/arm-get-next-pcs.c (arm_get_next_pcs_ctor): Change
2882 argument arm_thumb2_breakpoint to has_thumb2_breakpoint.
2883 (thumb_get_next_pcs_raw): Check has_thumb2_breakpoint
2884 instead.
2885 * arch/arm-get-next-pcs.h (struct arm_get_next_pcs)
2886 <arm_thumb2_breakpoint>: Remove.
2887 <has_thumb2_breakpoint>: New field.
2888 (arm_get_next_pcs_ctor): Update declaration.
2889 * arm-linux-tdep.c (arm_linux_software_single_step): Pass
2890 1 to arm_get_next_pcs_ctor.
2891 * arm-tdep.c (arm_software_single_step): Pass 0 to
2892 arm_get_next_pcs_ctor.
2893
2894 2016-01-13 Ulrich Weigand <uweigand@de.ibm.com>
2895
2896 * MAINTAINERS: Add Andreas Arnez as s390 target maintainer.
2897
2898 2016-01-13 Yao Qi <yao.qi@linaro.org>
2899
2900 * arch/arm-get-next-pcs.c (arm_get_next_pcs_raw): Use
2901 byte_order_for_code to read instruction.
2902
2903 2016-01-13 Pedro Alves <palves@redhat.com>
2904
2905 * NEWS: Mention $_gthread.
2906 * gdbthread.h (struct thread_info) <global_num>: Mention
2907 $_gthread.
2908 * thread.c (thread_num_make_value_helper): New function.
2909 (thread_id_make_value): Delete.
2910 (thread_id_per_inf_num_make_value, global_thread_id_make_value):
2911 New.
2912 (thread_funcs): Adjust.
2913 (gthread_funcs): New.
2914 (_initialize_thread): Register $_gthread variable.
2915
2916 2016-01-13 Pedro Alves <palves@redhat.com>
2917
2918 * NEWS: Mention "info threads -gid".
2919 * gdbthread.h (struct thread_info) <global_num>: Mention "info
2920 threads -gid".
2921 * thread.c (info_threads_command): Handle "-gid".
2922 (_initialize_thread): Adjust "info threads" help string to mention
2923 -gid.
2924
2925 2016-01-13 Pedro Alves <palves@redhat.com>
2926
2927 * NEWS: Mention InferiorThread.global_num.
2928 * python/py-infthread.c (thpy_get_global_num): New function.
2929 (thread_object_getset): Register "global_num".
2930
2931 2016-01-13 Pedro Alves <palves@redhat.com>
2932
2933 * NEWS: Mention that thread IDs are now per inferior and global
2934 thread IDs.
2935 * Makefile.in (SFILES): Add tid-parse.c.
2936 (COMMON_OBS): Add tid-parse.o.
2937 (HFILES_NO_SRCDIR): Add tid-parse.h.
2938 * ada-tasks.c: Adjust to use ptid_to_global_thread_id.
2939 * breakpoint.c (insert_breakpoint_locations)
2940 (remove_threaded_breakpoints, bpstat_check_breakpoint_conditions)
2941 (print_one_breakpoint_location, set_longjmp_breakpoint)
2942 (check_longjmp_breakpoint_for_call_dummy)
2943 (set_momentary_breakpoint): Adjust to use global IDs.
2944 (find_condition_and_thread, watch_command_1): Use parse_thread_id.
2945 (until_break_command, longjmp_bkpt_dtor)
2946 (breakpoint_re_set_thread, insert_single_step_breakpoint): Adjust
2947 to use global IDs.
2948 * dummy-frame.c (pop_dummy_frame_bpt): Adjust to use
2949 ptid_to_global_thread_id.
2950 * elfread.c (elf_gnu_ifunc_resolver_stop): Likewise.
2951 * gdbthread.h (struct thread_info): Rename field 'num' to
2952 'global_num. Add new fields 'per_inf_num' and 'inf'.
2953 (thread_id_to_pid): Rename thread_id_to_pid to
2954 global_thread_id_to_ptid.
2955 (pid_to_thread_id): Rename to ...
2956 (ptid_to_global_thread_id): ... this.
2957 (valid_thread_id): Rename to ...
2958 (valid_global_thread_id): ... this.
2959 (find_thread_id): Rename to ...
2960 (find_thread_global_id): ... this.
2961 (ALL_THREADS, ALL_THREADS_BY_INFERIOR): Declare.
2962 (print_thread_info): Add comment.
2963 * tid-parse.h: New file.
2964 * tid-parse.c: New file.
2965 * infcmd.c (step_command_fsm_prepare)
2966 (step_command_fsm_should_stop): Adjust to use the global thread
2967 ID.
2968 (until_next_command, until_next_command)
2969 (finish_command_fsm_should_stop): Adjust to use the global thread
2970 ID.
2971 (attach_post_wait): Adjust to check the inferior number too.
2972 * inferior.h (struct inferior) <highest_thread_num>: New field.
2973 * infrun.c (handle_signal_stop)
2974 (insert_exception_resume_breakpoint)
2975 (insert_exception_resume_from_probe): Adjust to use the global
2976 thread ID.
2977 * record-btrace.c (record_btrace_open): Use global thread IDs.
2978 * remote.c (process_initial_stop_replies): Also consider the
2979 inferior number.
2980 * target.c (target_pre_inferior): Clear the inferior's highest
2981 thread num.
2982 * thread.c (clear_thread_inferior_resources): Adjust to use the
2983 global thread ID.
2984 (new_thread): New inferior parameter. Adjust to use it. Set both
2985 the thread's global ID and the thread's per-inferior ID.
2986 (add_thread_silent): Adjust.
2987 (find_thread_global_id): New.
2988 (find_thread_id): Make static. Adjust to rename.
2989 (valid_thread_id): Rename to ...
2990 (valid_global_thread_id): ... this.
2991 (pid_to_thread_id): Rename to ...
2992 (ptid_to_global_thread_id): ... this.
2993 (thread_id_to_pid): Rename to ...
2994 (global_thread_id_to_ptid): ... this. Adjust.
2995 (first_thread_of_process): Adjust.
2996 (do_captured_list_thread_ids): Adjust to use global thread IDs.
2997 (should_print_thread): New function.
2998 (print_thread_info): Rename to ...
2999 (print_thread_info_1): ... this, and add new show_global_ids
3000 parameter. Handle it. Iterate over inferiors.
3001 (print_thread_info): Reimplement as wrapper around
3002 print_thread_info_1.
3003 (show_inferior_qualified_tids): New function.
3004 (print_thread_id): Use it.
3005 (tp_array_compar): Compare inferior numbers too.
3006 (thread_apply_command): Use tid_range_parser.
3007 (do_captured_thread_select): Use parse_thread_id.
3008 (thread_id_make_value): Adjust.
3009 (_initialize_thread): Adjust "info threads" help string.
3010 * varobj.c (struct varobj_root): Update comment.
3011 (varobj_create): Adjust to use global thread IDs.
3012 (value_of_root_1): Adjust to use global_thread_id_to_ptid.
3013 * windows-tdep.c (display_tib): No longer accept an argument.
3014 * cli/cli-utils.c (get_number_trailer): Make extern.
3015 * cli/cli-utils.h (get_number_trailer): Declare.
3016 (get_number_const): Adjust documentation.
3017 * mi/mi-cmd-var.c (mi_cmd_var_update_iter): Adjust to use global
3018 thread IDs.
3019 * mi/mi-interp.c (mi_new_thread, mi_thread_exit)
3020 (mi_on_normal_stop, mi_output_running_pid, mi_on_resume):
3021 * mi/mi-main.c (mi_execute_command, mi_cmd_execute): Likewise.
3022 * guile/scm-breakpoint.c (gdbscm_set_breakpoint_thread_x):
3023 Likewise.
3024 * python/py-breakpoint.c (bppy_set_thread): Likewise.
3025 * python/py-finishbreakpoint.c (bpfinishpy_init): Likewise.
3026 * python/py-infthread.c (thpy_get_num): Add comment and return the
3027 per-inferior thread ID.
3028 (thread_object_getset): Update comment of "num".
3029
3030 2016-01-13 Pedro Alves <palves@redhat.com>
3031
3032 * breakpoint.c (remove_threaded_breakpoints)
3033 (print_one_breakpoint_location): Use print_thread_id.
3034 * btrace.c (btrace_enable, btrace_disable, btrace_teardown)
3035 (btrace_fetch, btrace_clear): Use print_thread_id.
3036 * common/print-utils.c (CELLSIZE): Delete.
3037 (get_cell): Rename to ...
3038 (get_print_cell): ... this and made extern. Adjust call callers.
3039 Adjust to use PRINT_CELL_SIZE.
3040 * common/print-utils.h (get_print_cell): Declare.
3041 (PRINT_CELL_SIZE): New.
3042 * gdbthread.h (print_thread_id): Declare.
3043 * infcmd.c (signal_command): Use print_thread_id.
3044 * inferior.c (print_inferior): Use print_thread_id.
3045 * infrun.c (handle_signal_stop)
3046 (insert_exception_resume_breakpoint)
3047 (insert_exception_resume_from_probe)
3048 (print_signal_received_reason): Use print_thread_id.
3049 * record-btrace.c (record_btrace_info)
3050 (record_btrace_resume_thread, record_btrace_cancel_resume)
3051 (record_btrace_step_thread, record_btrace_wait): Use
3052 print_thread_id.
3053 * thread.c (thread_apply_all_command): Use print_thread_id.
3054 (print_thread_id): New function.
3055 (thread_apply_command): Use print_thread_id.
3056 (thread_command, thread_find_command, do_captured_thread_select):
3057 Use print_thread_id.
3058
3059 2016-01-13 Pedro Alves <palves@redhat.com>
3060
3061 * NEWS: Mention InferiorThread.inferior.
3062 * python/py-infthread.c (thpy_get_inferior): New.
3063 (thread_object_getset): Register "inferior".
3064
3065 2016-01-13 Pedro Alves <palves@redhat.com>
3066
3067 * NEWS: Mention $_inferior.
3068 * inferior.c (inferior_id_make_value): New.
3069 (inferior_funcs): New.
3070 (_initialize_inferior): Create $_inferior variable.
3071
3072 2016-01-13 Pedro Alves <palves@redhat.com>
3073
3074 PR breakpoints/19388
3075 * frame.c (get_current_frame): Use validate_registers_access.
3076 * gdbthread.h (validate_registers_access): Declare.
3077 * infrun.c (validate_siginfo_access): Delete.
3078 (siginfo_value_read, siginfo_value_write): Use
3079 validate_registers_access.
3080 * thread.c (validate_registers_access): New function.
3081
3082 2016-01-12 Josh Stone <jistone@redhat.com>
3083 Philippe Waroquiers <philippe.waroquiers@skynet.be>
3084
3085 * NEWS (Changes since GDB 7.10): Mention QCatchSyscalls and the
3086 syscall_entry and syscall_return stop reasons. Mention GDB
3087 support for remote catch syscall.
3088 * remote.c (PACKET_QCatchSyscalls): New enum.
3089 (remote_set_syscall_catchpoint): New function.
3090 (remote_protocol_features): New element for QCatchSyscalls.
3091 (remote_parse_stop_reply): Parse syscall_entry/return stops.
3092 (init_remote_ops): Install remote_set_syscall_catchpoint.
3093 (_initialize_remote): Config QCatchSyscalls.
3094 * linux-nat.h (struct lwp_info) <syscall_state>: Comment typo.
3095
3096 2016-01-12 Yao Qi <yao.qi@linaro.org>
3097
3098 * nat/linux-ptrace.c (linux_child_function): Cast child_stack
3099 to gdb_byte * and pass to linux_fork_to_function.
3100
3101 2016-01-12 Yao Qi <yao.qi@linaro.org>
3102
3103 * nat/linux-ptrace.c (linux_fork_to_function): Change type
3104 of argument 'function'.
3105 (linux_grandchild_function): Change return type to 'int'.
3106 Change child_stack's type to 'void *'.
3107 (linux_child_function): Likewise.
3108
3109 2016-01-12 Pedro Alves <palves@redhat.com>
3110
3111 Remove use of the registered trademark symbol throughout.
3112
3113 2016-01-12 Thomas Schwinge <thomas@codesourcery.com>
3114
3115 * reply_mig_hack.awk: Rewrite one regular expression.
3116
3117 2016-01-11 Mike Frysinger <vapier@gentoo.org>
3118
3119 * acinclude.m4: Include new warning.m4 file.
3120 * configure: Regenerated.
3121 * configure.ac: Move all warning logic ...
3122 * warning.m4: ... here.
3123
3124 2016-01-08 Yao Qi <yao.qi@linaro.org>
3125
3126 * extension.c: Include target.h.
3127 (set_active_ext_lang): Only call install_gdb_sigint_handler,
3128 check_quit_flag, and set_quit_flag if target_terminal_is_ours
3129 returns false.
3130 (restore_active_ext_lang): Likewise.
3131 * target.c (target_terminal_is_ours): New function.
3132 * target.h (target_terminal_is_ours): Declare.
3133
3134 2016-01-07 Maciej W. Rozycki <macro@imgtec.com>
3135
3136 * mips-tdep.c (mips_breakpoint_from_pc): Rename local `status'
3137 to `err' in the little-endian leg.
3138
3139 2016-01-06 Yao Qi <yao.qi@linaro.org>
3140
3141 * arch/arm-get-next-pcs.c (arm_get_next_pcs): Move it to some
3142 lines below.
3143 (thumb_get_next_pcs_raw): Make it static.
3144 (arm_get_next_pcs_raw): Likewise.
3145 * arch/arm-get-next-pcs.h (thumb_get_next_pcs_raw): Remove the
3146 declaration.
3147 (arm_get_next_pcs_raw): Likewise.
3148
3149 2016-01-05 Mike Frysinger <vapier@gentoo.org>
3150
3151 * version.in: Change cvs to git.
3152
3153 2016-01-05 Mike Frysinger <vapier@gentoo.org>
3154
3155 * configure.tgt (score-*-*): Delete gdb_sim assignment.
3156
3157 2016-01-05 Pedro Alves <palves@redhat.com>
3158
3159 PR sim/13418
3160 * configure.ac: Define WITH_PPC_SIM when linking in the sim and
3161 the target is powerpc*.
3162 * rs6000-tdep.c (init_sim_regno_table): Check WITH_PPC_SIM instead
3163 of WITH_SIM.
3164 * configure: Regenerate.
3165 * config.in: Regenerate.
3166
3167 2016-01-04 Markus Metzger <markus.t.metzger@intel.com>
3168
3169 * btrace.c (btrace_pt_readmem_callback): Do not return in TRY/CATCH.
3170
3171 2016-01-02 Mike Frysinger <vapier@gentoo.org>
3172
3173 * configure.tgt (powerpc*-*-*): Delete test call and
3174 always assign gdb_sim.
3175
3176 2016-01-01 Joel Brobecker <brobecker@adacore.com>
3177
3178 Update year range in copyright notice of all files.
3179
3180 2016-01-01 Joel Brobecker <brobecker@adacore.com>
3181
3182 * top.c (print_gdb_version): Change copyright year in version
3183 message.
3184
3185 2016-01-01 Joel Brobecker <brobecker@adacore.com>
3186
3187 * config/djgpp/fnchange.lst: Add entry for gdb/ChangeLog-2015.
3188
3189 For older changes see ChangeLog-2015.
3190 \f
3191 Local Variables:
3192 mode: change-log
3193 left-margin: 8
3194 fill-column: 74
3195 version-control: never
3196 coding: utf-8
3197 End:
This page took 0.089777 seconds and 3 git commands to generate.