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