Commit | Line | Data |
---|---|---|
0a0da556 YQ |
1 | 2016-02-15 Yao Qi <yao.qi@linaro.org> |
2 | ||
3 | * aarch64-tdep.c (aarch64_analyze_prologue): Remove "0x". | |
4 | ||
01113bc1 YQ |
5 | 2016-02-12 Yao Qi <yao.qi@linaro.org> |
6 | ||
7 | * arch/arm-linux.c (arm_linux_get_next_pcs_fixup): Calculate | |
8 | nextpc according to instruction. | |
9 | ||
ed443b61 YQ |
10 | 2016-02-12 Yao Qi <yao.qi@linaro.org> |
11 | ||
12 | * arch/arm-get-next-pcs.c (arm_get_next_pcs): Call | |
13 | self->ops->fixup if it isn't NULL. | |
14 | * arch/arm-get-next-pcs.h: Include gdb_vecs.h. | |
15 | (struct arm_get_next_pcs_ops) <fixup>: New field. | |
16 | * arch/arm-linux.c: Include common-regcache.h and | |
17 | arch/arm-get-next-pcs.h. | |
18 | (arm_linux_get_next_pcs_fixup): New function. | |
19 | * arch/arm-linux.h (arm_linux_get_next_pcs_fixup): Declare. | |
20 | * arm-linux-tdep.c (arm_linux_get_next_pcs_ops): Initialize | |
21 | it with arm_linux_get_next_pcs_fixup. | |
22 | (arm_linux_software_single_step): Move code to | |
23 | arm_linux_get_next_pcs_fixup. | |
24 | * arm-tdep.c (arm_get_next_pcs_ops): Initialize it. | |
25 | ||
d21b5f15 MK |
26 | 2016-02-12 Marcin Kościelnicki <koriakin@0x04.net> |
27 | ||
28 | * xml-tdesc.c (target_fetch_description_xml) [!HAVE_LIBEXPAT]: Warn | |
29 | and return NULL. | |
30 | ||
33b4777c MM |
31 | 2016-02-12 Markus Metzger <markus.t.metzger@intel.com> |
32 | ||
33 | * frame.h (skip_tailcall_frames): Update comment. | |
34 | * frame.c (skip_artificial_frames, skip_tailcall_frames): Return NULL | |
35 | if only artificial frames are found. Update comment. | |
36 | (frame_unwind_caller_id): Handle NULL return. | |
37 | (frame_unwind_caller_pc, frame_unwind_caller_arch): Assert that | |
38 | skip_artificial_frames does not return NULL. | |
39 | (frame_pop): Add an error if only tailcall frames are found. | |
40 | * infcmd.c (finish_command): Move skip_tailcall_frames call into | |
41 | forward-execution case. Add an error if only tailcall frames are | |
42 | found. | |
43 | ||
a038fa3e MM |
44 | 2016-02-12 Markus Metzger <markus.t.metzger@intel.com> |
45 | ||
46 | * stack.c (frame_info): Check frame_unwind_caller_id. | |
47 | ||
2f3ef606 MM |
48 | 2016-02-12 Markus Metzger <markus.t.metzger@intel.com> |
49 | ||
50 | * frame.h (skip_tailcall_frames): New. | |
51 | * frame.c (skip_tailcall_frames): New. | |
52 | (frame_pop): Call skip_tailcall_frames. | |
53 | * infcmd.c (finish_command): Call skip_tailcall_frames. | |
54 | ||
e352bf0a PA |
55 | 2016-02-11 Pedro Alves <palves@redhat.com> |
56 | ||
57 | * Makefile.in (check-parallel): New rule. | |
58 | ||
bec2ab5a SM |
59 | 2016-02-11 Simon Marchi <simon.marchi@ericsson.com> |
60 | ||
61 | * arm-tdep.c (arm_skip_prologue): Remove unused variables. | |
62 | (arm_analyze_prologue): Likewise. | |
63 | (arm_scan_prologue): Likewise. | |
64 | (arm_m_exception_prev_register): Likewise. | |
65 | (arm_copy_block_xfer): Likewise. | |
66 | (thumb2_copy_block_xfer): Likewise. | |
67 | (arm_decode_miscellaneous): Likewise. | |
68 | (arm_decode_ld_st_word_ubyte): Likewise. | |
69 | (arm_decode_svc_copro): Likewise. | |
70 | (thumb2_decode_svc_copro): Likewise. | |
71 | (thumb_copy_16bit_ldr_literal): Likewise. | |
72 | (thumb_copy_pop_pc_16bit): Likewise. | |
73 | (decode_thumb_32bit_ld_mem_hints): Likewise. | |
74 | (arm_show_force_mode): Likewise. | |
75 | (_initialize_arm_tdep): Likewise. | |
76 | (arm_record_strx): Likewise. | |
77 | (arm_record_extension_space): Likewise. | |
78 | (arm_record_data_proc_misc_ld_str): Likewise. | |
79 | (arm_record_exreg_ld_st_insn): Likewise. | |
80 | (arm_record_vfp_data_proc_insn): Likewise. | |
81 | (arm_record_coproc_data_proc): Likewise. | |
82 | (thumb_record_misc): Likewise. | |
83 | (thumb_record_ldm_stm_swi): Likewise. | |
84 | (thumb2_record_ld_st_dual_ex_tbb): Likewise. | |
85 | (thumb2_record_ld_mem_hints): Likewise. | |
86 | (thumb2_record_lmul_lmla_div): Likewise. | |
87 | (thumb2_record_asimd_struct_ld_st): Likewise. | |
88 | (arm_process_record): Likewise. | |
89 | ||
2ba163c8 SM |
90 | 2016-02-11 Simon Marchi <simon.marchi@ericsson.com> |
91 | ||
92 | * arm-tdep.c (arm_displaced_step_copy_insn): Remove. | |
93 | (ARM displaced stepping support): Remove reference to | |
94 | arm_displaced_step_copy_insn in comment. | |
95 | * arm-tdep.h (arm_displaced_step_copy_insn): Remove. | |
96 | * arm-linux-tdep.c (arm_linux_displaced_step_copy_insn): Remove | |
97 | reference to arm_displaced_step_copy_insn in comment. | |
98 | ||
615234c1 SM |
99 | 2016-02-11 Simon Marchi <simon.marchi@ericsson.com> |
100 | ||
101 | * arm-tdep.c (thumb_copy_unmodified_16bit): Change type of insn. | |
102 | (thumb_copy_b): Likewise. | |
103 | (arm_decode_b_bl_ldmstm): Likewise. | |
104 | (thumb_copy_16bit_ldr_literal): Likewise. | |
105 | (thumb_copy_pop_pc_16bit): Likewise. | |
106 | ||
82e9becd AT |
107 | 2016-02-11 Antoine Tremblay <antoine.tremblay@ericsson.com> |
108 | ||
109 | * tracepoint.c (encode_actions_1): Use target_gdbarch () rather | |
110 | than loc->gdbarch. | |
111 | ||
5ac87a99 MK |
112 | 2016-02-10 Marcin Kościelnicki <koriakin@0x04.net> |
113 | ||
114 | * tracefile-tfile.c (trace_tdesc): New static variable. | |
115 | (tfile_open): Clear trace_tdesc, call target_find_description. | |
116 | (tfile_interp_line): Recognize tdesc lines. | |
117 | (tfile_close): Clear trace_tdesc. | |
118 | (tfile_xfer_partial_features): New function. | |
119 | (tfile_xfer_partial): Call tfile_xfer_partial_features. | |
120 | (tfile_append_tdesc_line): New function. | |
121 | ||
18d3cec5 MK |
122 | 2016-02-10 Marcin Kościelnicki <koriakin@0x04.net> |
123 | ||
124 | * ctf.c (ctf_write_tdesc): New function. | |
125 | (ctf_write_ops): Wire in ctf_write_tdesc. | |
126 | * tracefile-tfile.c (tfile_write_tdesc): New function. | |
127 | (tfile_write_ops): Wire in tfile_write_tdesc. | |
128 | * tracefile.c (trace_save): Call write_tdesc method. | |
129 | * tracefile.h (struct trace_file_write_ops): Add write_tdesc method. | |
130 | * xml-tdesc.c (target_fetch_description_xml): New function. | |
131 | * xml-tdesc.h: Add target_fetch_description_xml prototype. | |
132 | ||
550dc4e2 SM |
133 | 2016-02-10 Simon Marchi <simon.marchi@ericsson.com> |
134 | ||
135 | * arm-tdep.c (arm_copy_extra_ld_st): Fix "unpriveleged" typo. | |
136 | (arm_decode_dp_misc): Likewise. | |
137 | ||
62e5fd57 MK |
138 | 2016-02-10 Marcin Kościelnicki <koriakin@0x04.net> |
139 | ||
140 | * amd64-tdep.c (amd64_ax_pseudo_register_collect): New function. | |
141 | (amd64_init_abi): Fill ax_pseudo_register_collect hook. | |
142 | * gdb/i386-tdep.c (i386_pseudo_register_read_into_value): Remove | |
143 | misleading comment. | |
144 | (i386_pseudo_register_write): Ditto. | |
145 | (i386_ax_pseudo_register_collect): New function. | |
146 | (i386_gdbarch_init): Fill ax_pseudo_register_collect hook. | |
147 | * i386-tdep.h: Add i386_ax_pseudo_register_collect prototype. | |
148 | ||
e909d859 MK |
149 | 2016-02-10 Marcin Kościelnicki <koriakin@0x04.net> |
150 | ||
151 | * tracefile-tfile.c (tfile_fetch_registers): Use g packet order | |
152 | instead of gdb order. | |
153 | ||
473b99e5 MK |
154 | 2016-02-10 Marcin Kościelnicki <koriakin@0x04.net> |
155 | ||
156 | * tracefile-tfile.c (tfile_fetch_registers): Fix off-by-one in bounds | |
157 | check. | |
158 | ||
1233c0ba JB |
159 | 2016-02-10 Joel Brobecker <brobecker@adacore.com> |
160 | ||
161 | * NEWS: Create a new section for the next release branch. | |
162 | Rename the section of the current branch, now that it has | |
163 | been cut. | |
164 | ||
d1dc0942 JB |
165 | 2016-02-10 Joel Brobecker <brobecker@adacore.com> |
166 | ||
167 | GDB 7.11 branch created (9ef9e6a6a0dd8f948708cb67c9afcfd0be40cb0a): | |
168 | * version.in: Bump version to 7.11.50.DATE-git. | |
169 | ||
9ef9e6a6 KS |
170 | 2016-02-09 Keith Seitz <keiths@redhat.com> |
171 | ||
172 | PR breakpoints/19546 | |
173 | * breakpoint.c (breakpoint_event_location_empty_p): New function. | |
174 | (update_breakpoints_after_exec, bkpt_re_set): Use this new function | |
175 | instead of event_location_empty_p. | |
176 | ||
39a67dc4 KS |
177 | 2016-02-09 Keith Seitz <keiths@redhat.com> |
178 | ||
179 | * mi/mi-cmd-break.c (mi_cmd_break_insert_1): Use | |
180 | string_to_event_location_basic instead of string_to_event_location. | |
181 | ||
a96e36da KS |
182 | 2016-02-09 Keith Seitz <keiths@redhat.com> |
183 | ||
184 | * guile/scm-breakpoint.c (gdbscm_register_breakpoint_x): Skip | |
185 | leading whitespace and use string_to_event_location_basic instead | |
186 | of new_linespec_location. | |
187 | ||
9f61929f KS |
188 | 2016-02-09 Keith Seitz <keiths@redhat.com> |
189 | ||
190 | PR python/19506 | |
191 | * python/py-breakpoint.c (bppy_init): Use | |
192 | string_to_event_location_basic instead of new_linespec_location. | |
193 | ||
eeb1af43 KS |
194 | 2016-02-09 Keith Seitz <keiths@redhat.com> |
195 | ||
196 | * location.c (string_to_explicit_location): Note that "-p" is | |
197 | reserved for probe locations and return NULL for any input | |
198 | that starts with that. | |
199 | (string_to_event_location): Move "legacy" linespec code to ... | |
200 | (string_to_event_location_basic): ... here. | |
201 | * location.h (string_to_event_location): Update comment. | |
202 | (string_to_event_location_basic): New function. | |
203 | ||
1e94266c SM |
204 | 2016-02-09 Simon Marchi <simon.marchi@ericsson.com> |
205 | ||
206 | * configure.ac: Use AC_CONFIG_FILES instead of passing arguments | |
207 | to AC_OUTPUT. Remove "exit 0" at the end. | |
208 | * configure: Regenerate. | |
209 | ||
2a7f3dff PA |
210 | 2016-02-09 Pedro Alves <palves@redhat.com> |
211 | ||
212 | PR breakpoints/19548 | |
213 | * breakpoint.c (create_overlay_event_breakpoint): Don't update | |
214 | global location list here. | |
215 | (create_longjmp_master_breakpoint) | |
216 | (create_std_terminate_master_breakpoint) | |
217 | (create_exception_master_breakpoint, create_jit_event_breakpoint) | |
218 | (update_breakpoint_locations): | |
219 | (breakpoint_re_set): Update global location list after all | |
220 | breakpoints are re-set. | |
221 | ||
54887903 SM |
222 | 2016-02-08 Simon Marchi <simon.marchi@ericsson.com> |
223 | ||
224 | * remote.c (remote_register_number_and_offset): Remove unused | |
225 | variable(s). | |
226 | (remote_thread_always_alive): Likewise. | |
227 | (remote_update_thread_list): Likewise. | |
228 | (process_initial_stop_replies): Likewise. | |
229 | (remote_start_remote): Likewise. | |
230 | (remote_check_symbols): Likewise. | |
231 | (discard_pending_stop_replies): Likewise. | |
232 | (process_stop_reply): Likewise. | |
233 | (putpkt_binary): Likewise. | |
234 | (getpkt): Likewise. | |
235 | (remote_add_target_side_condition): Likewise. | |
236 | (remote_insert_breakpoint): Likewise. | |
237 | (remote_supports_stopped_by_sw_breakpoint): Likewise. | |
238 | (remote_supports_stopped_by_hw_breakpoint): Likewise. | |
239 | (remote_xfer_partial): Likewise. | |
240 | (remote_read_btrace): Likewise. | |
241 | (remote_async_serial_handler): Likewise. | |
242 | (remote_thread_events): Likewise. | |
243 | (_initialize_remote): Likewise. | |
244 | ||
30914ca8 SM |
245 | 2016-02-07 Simon Marchi <simon.marchi@polymtl.ca> |
246 | ||
247 | * varobj.h (varobj_delete): Remove dellist parameter, update and | |
248 | move documentation here. | |
249 | * varobj.c (struct cpstack, cppush, cppop): Remove. | |
250 | (delete_variable): Remove resultp (first) parameter. | |
251 | (delete_variable_1): Likewise. | |
252 | (varobj_delete): Remove dellist parameter and unused code. | |
253 | (update_dynamic_varobj_children): Adjust varobj_delete call. | |
254 | (update_type_if_necessary): Likewise. | |
255 | (varobj_set_visualizer): Likewise. | |
256 | (varobj_update): Likewise. | |
257 | (value_of_root): Likewise. | |
258 | (varobj_invalidate_iter): Likewise. | |
259 | * mi/mi-cmd-var.c (mi_cmd_var_delete): Likewise. | |
260 | ||
e42e5352 YQ |
261 | 2016-02-04 Yao Qi <yao.qi@linaro.org> |
262 | ||
263 | * remote.c (remote_wait_as): Set rs->waiting_for_stop_reply to | |
264 | 0 before handling 'F' and set it back afterwards. | |
265 | ||
6456a18b SM |
266 | 2016-02-02 Simon Marchi <simon.marchi@ericsson.com> |
267 | ||
268 | * ui-out.c (MAX_UI_OUT_LEVELS): Remove. | |
269 | ||
3f2f6cb5 WT |
270 | 2016-02-02 Walfred Tedeschi <walfred.tedeschi@intel.com> |
271 | ||
272 | * amd64-linux-siginfo.c (nat_siginfo_t, nat_sigval_t, nat_timeval): | |
273 | New types. | |
274 | (compat_siginfo): New bound fields added. | |
275 | (compat_x32_siginfo): New field added. | |
276 | (cpt_si_addr_lsb): New define. | |
277 | (compat_siginfo_from_siginfo): Use nat_siginfo. | |
278 | (siginfo_from_compat_siginfo): Use nat_siginfo. | |
279 | (compat_x32_siginfo_from_siginfo): Likewise. | |
280 | (siginfo_from_compat_x32_siginfo): Likewise. | |
281 | ||
96b5c49f WT |
282 | 2016-02-02 Walfred Tedeschi <walfred.tedeschi@intel.com> |
283 | ||
284 | * linux-tdep.c (linux_get_siginfo_type): Add the _addr_bnd | |
285 | structure to the siginfo if extra_fields contains | |
286 | LINUX_SIGINFO_FIELD_ADDR_BND. | |
287 | ||
190b495d WT |
288 | 2016-02-02 Walfred Tedeschi <walfred.tedeschi@intel.com> |
289 | ||
290 | * linux-tdep.h (linux_get_siginfo_type_with_fields): Make extern. | |
291 | * linux-tdep.c (linux_get_siginfo_type_with_fields): Make extern. | |
292 | * i386-linux-tdep.h (x86_linux_get_siginfo_type): New | |
293 | function. | |
294 | * amd64-linux-tdep.c (amd64_linux_init_abi_common): Add | |
295 | x86_linux_get_siginfo_type for the amd64 abi. | |
296 | * i386-linux-tdep.c (x86_linux_get_siginfo_type): New | |
297 | function. | |
298 | (i386_linux_init_abi): Add new function at the i386 ABI | |
299 | initialization. | |
300 | ||
43564574 WT |
301 | 2016-02-02 Walfred Tedeschi <walfred.tedeschi@intel.com> |
302 | ||
303 | * linux-tdep.h (linux_siginfo_extra_field_values): New enum values. | |
304 | (linux_siginfo_extra_fields): New enum type. | |
305 | * linux-tdep.c (linux_get_siginfo_type_with_fields): New function. | |
306 | (linux_get_siginfo_type): Use new function. | |
307 | ||
93813b37 WT |
308 | 2016-02-02 Walfred Tedeschi <walfred.tedeschi@intel.com> |
309 | ||
310 | * nat/amd64-linux-siginfo.c: New file. | |
311 | * nat/amd64-linux-siginfo.h: New file. | |
312 | * Makefile.in (HFILES_NO_SRCDIR): Add nat/amd64-linux-siginfo.h. | |
313 | (amd64-linux-siginfo.o): New rule. | |
314 | * config/i386/linux64.mh (NATDEPFILES): Add amd64-linux-siginfo.o. | |
315 | * amd64-linux-nat.c (nat/amd64-linux-siginfo.h): New include. | |
316 | (compat_siginfo_from_siginfo, siginfo_from_compat_siginfo) | |
317 | (compat_x32_siginfo_from_siginfo, siginfo_from_compat_x32_siginfo) | |
318 | (compat_timeval, compat_sigval, compat_x32_clock, cpt_si_pid) | |
319 | (cpt_si_uid, cpt_si_timerid, cpt_si_overrun, cpt_si_status) | |
320 | (cpt_si_utime, cpt_si_stime, cpt_si_ptr, cpt_si_addr, cpt_si_band) | |
321 | (cpt_si_fd, si_timerid, si_overrun): Move to nat/amd64-linux-siginfo.c. | |
322 | ||
5fdf6324 AB |
323 | 2016-02-01 Andrew Burgess <andrew.burgess@embecosm.com> |
324 | ||
325 | * value.c (max_value_size): New variable. | |
326 | (MIN_VALUE_FOR_MAX_VALUE_SIZE): New define. | |
327 | (set_max_value_size): New function. | |
328 | (show_max_value_size): New function. | |
329 | (check_type_length_before_alloc): New function. | |
330 | (allocate_value_contents): Call check_type_length_before_alloc. | |
331 | (set_value_enclosing_type): Likewise. | |
332 | (_initialize_values): Add set/show handler for max-value-size. | |
333 | * NEWS: Mention new set/show command. | |
334 | ||
5fa13070 SM |
335 | 2016-01-31 Simon Marchi <simon.marchi@polymtl.ca> |
336 | ||
337 | * varobj.h (struct varobj): Fix typos in comments. | |
338 | (struct lang_varobj_ops): Likewise. | |
339 | * varobj.c (VAROBJ_TABLE_SIZE): Likewise. | |
340 | (varobj_create): Move misplaced comment. | |
341 | ||
a2e3e93f SM |
342 | 2016-01-29 Simon Marchi <simon.marchi@ericsson.com> |
343 | ||
344 | * aarch64-tdep.c (aarch64_record_asimd_load_store): Add braces | |
345 | to for include additional lines. | |
346 | * xcoffread.c (scan_xcoff_symtab): Remove unnecessary braces. | |
347 | ||
56e374a6 SM |
348 | 2016-01-28 Simon Marchi <simon.marchi@ericsson.com> |
349 | ||
350 | * gnulib/import/Makefile.am: Regenerate. | |
351 | * gnulib/import/Makefile.in: Regenerate. | |
352 | * gnulib/import/m4/gnulib-cache.m4: Regenerate. | |
353 | * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add rawmemchr. | |
354 | ||
8424cc97 SM |
355 | 2016-01-28 Simon Marchi <simon.marchi@ericsson.com> |
356 | ||
357 | * remote.c (skip_to_semicolon): Remove. | |
358 | (remote_parse_stop_reply): Use strchrnul instead of | |
359 | skip_to_semicolon. | |
360 | * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add | |
361 | strchrnul. | |
362 | * gnulib/aclocal.m4: Regenerate. | |
363 | * gnulib/config.in: Regenerate. | |
364 | * gnulib/configure: Regenerate. | |
365 | * gnulib/import/Makefile.am: Regenerate. | |
366 | * gnulib/import/Makefile.in: Regenerate. | |
367 | * gnulib/import/m4/gnulib-cache.m4: Regenerate. | |
368 | * gnulib/import/m4/gnulib-comp.m4: Regenerate. | |
369 | * gnulib/import/m4/rawmemchr.m4: New file. | |
370 | * gnulib/import/m4/strchrnul.m4: New file. | |
371 | * gnulib/import/rawmemchr.c: New file. | |
372 | * gnulib/import/rawmemchr.valgrind: New file. | |
373 | * gnulib/import/strchrnul.c: New file. | |
374 | * gnulib/import/strchrnul.valgrind: New file. | |
375 | ||
4a6a1ed4 YQ |
376 | 2016-01-28 Yao Qi <yao.qi@linaro.org> |
377 | ||
378 | * breakpoint.c (build_target_command_list): Don't call continue | |
379 | if aexpr is NULL. | |
380 | (build_target_condition_list): Likewise. | |
381 | ||
94715c17 KB |
382 | 2016-01-27 Kevin Buettner <kevinb@redhat.com> |
383 | ||
384 | * rx-tdep.c (rx_push_dummy_call): Treat scalars larger than 8 | |
385 | bytes as aggregates. | |
386 | ||
c07af0ab JB |
387 | 2016-01-27 Joel Brobecker <brobecker@adacore.com> |
388 | ||
389 | * MAINTAINERS (Responsible Maintainers): Add Keith Seitz as | |
390 | Linespec Maintainers. | |
391 | ||
41548caa SM |
392 | 2016-01-26 Simon Marchi <simon.marchi@ericsson.com> |
393 | ||
394 | * common/common-utils.c (skip_spaces): Fix comment. | |
395 | (skip_to_space_const): Likewise. | |
396 | ||
4d18591b YQ |
397 | 2016-01-25 Yao Qi <yao.qi@linaro.org> |
398 | ||
399 | * arch/arm-get-next-pcs.c (thumb_deal_with_atomic_sequence_raw): | |
400 | Remove argument pc. Get pc by regcache_read_pc. Callers updated. | |
401 | (arm_deal_with_atomic_sequence_raw): Likewise. | |
402 | (thumb_get_next_pcs_raw): Likewise. | |
403 | (arm_get_next_pcs_raw): Likewise. | |
404 | (arm_get_next_pcs): Remove argument pc. Callers updated. | |
405 | * arch/arm-get-next-pcs.h (arm_get_next_pcs): Update declaration. | |
406 | ||
a579cd9a MW |
407 | 2016-01-25 Mark Wielaard <mjw@redhat.com> |
408 | ||
409 | * ada-lang.c (ada_evaluate_subexp): Add proper else block. | |
410 | * c-typeprint.c (c_type_print_base): Fix misleading indentation of | |
411 | if statement. | |
412 | * inflow.c (child_terminal_ours_1): Fix misleading indentation of | |
413 | statement block by introducing an else. | |
414 | * linux-record.c (record_linux_sockaddr): Fix misleading indentation | |
415 | of return statements. | |
416 | (record_linux_msghdr): Likewise. | |
417 | ||
a2077e25 PA |
418 | 2016-01-25 Pedro Alves <palves@redhat.com> |
419 | ||
420 | PR threads/19461 | |
421 | * infrun.c (handle_inferior_event_1) <fork/vfork>: Update | |
422 | parent/child running states. | |
423 | ||
1d2736d4 PA |
424 | 2016-01-25 Pedro Alves <palves@redhat.com> |
425 | ||
426 | PR gdb/19494 | |
427 | * linux-nat.c (kill_one_lwp): New, factored out from ... | |
428 | (kill_callback): ... this. | |
429 | (kill_wait_callback): New, factored out from ... | |
430 | (kill_wait_one_lwp): ... this. | |
431 | (kill_unfollowed_fork_children): New function. | |
432 | (linux_nat_kill): Use it. | |
433 | ||
b2bae2f7 JB |
434 | 2016-01-22 John Baldwin <jhb@FreeBSD.org> |
435 | ||
436 | * fbsd-nat.c (fbsd_pid_to_str): Adjust string format. | |
437 | ||
d86feca3 YQ |
438 | 2016-01-22 Yao Qi <yao.qi@linaro.org> |
439 | ||
440 | * arm-linux-nat.c (fetch_fpregs): Call perror_with_name | |
441 | instead of warning. | |
442 | (store_fpregs, fetch_regs, store_regs): Likewise. | |
443 | (fetch_wmmx_regs, store_wmmx_regs): Likewise. | |
444 | (fetch_vfp_regs, store_vfp_regs): Likewise. | |
445 | ||
b35a8b2f DE |
446 | 2016-01-21 Doug Evans <dje@google.com> |
447 | ||
448 | * breakpoint.c (init_breakpoint_sal): Add comment. | |
449 | ||
f906b857 MK |
450 | 2016-01-21 Marcin Kościelnicki <koriakin@0x04.net> |
451 | ||
452 | * ax-gdb.c (gen_traced_pop): Use gen_fetch for string collection. | |
453 | ||
4a099de2 AB |
454 | 2016-01-21 Andrew Burgess <andrew.burgess@embecosm.com> |
455 | ||
456 | * disasm.c (maybe_add_dis_line_entry): Rename to... | |
457 | (add_dis_line_entry): ...this, and update header comment. | |
458 | (do_mixed_source_and_assembly): Now use add_dis_line_entry. | |
459 | ||
a994041d PA |
460 | 2016-01-21 Pedro Alves <palves@redhat.com> |
461 | ||
462 | * Makefile.in (COMPILER_CFLAGS): New. | |
463 | (CXXFLAGS): Get it from configure. | |
464 | (INTERNAL_CFLAGS_BASE, INTERNAL_LDFLAGS): Use COMPILER_CFLAGS | |
465 | instead of CFLAGS. | |
466 | * build-with-cxx.m4 (GDB_AC_BUILD_WITH_CXX): Set and AC_SUBST | |
467 | COMPILER_CFLAGS. | |
468 | * configure: Regenerate. | |
469 | ||
305e13e6 JB |
470 | 2016-01-21 Joel Brobecker <brobecker@adacore.com> |
471 | ||
472 | * location.h (new_address_location): Add new parameters | |
473 | "addr_string" and "addr_string_len". | |
474 | (get_address_string_location): Add declaration. | |
475 | * location.c (new_address_location): Add new parameters | |
476 | "addr_string" and "addr_string_len". If not NULL, store | |
477 | a copy of the addr_string in the new location as well. | |
478 | (get_address_string_location): New function. | |
479 | (string_to_event_location): Update call to new_address_location. | |
480 | * linespec.c (event_location_to_sals) <ADDRESS_LOCATION>: | |
481 | Save the event location in the parser's state before | |
482 | passing it to convert_address_location_to_sals. | |
483 | * breakpoint.c (create_thread_event_breakpoint): Update call | |
484 | to new_address_location. | |
485 | (init_breakpoint_sal): Get the event location's string, if any, | |
486 | and use it to update call to new_address_location. | |
487 | * python/py-finishbreakpoint.c (bpfinishpy_init): | |
488 | Update call to new_address_location. | |
489 | * spu-tdep.c (spu_catch_start): Likewise. | |
490 | ||
491 | * config/djgpp/fnchange.lst: Add entries for | |
492 | gdb/testsuite/gdb.base/break-fun-addr1.c and | |
493 | gdb/testsuite/gdb.base/break-fun-addr2.c. | |
494 | ||
f7a6a40d YQ |
495 | 2016-01-21 Yao Qi <yao.qi@linaro.org> |
496 | ||
497 | * arm-linux-tdep.c (arm_linux_sigreturn_next_pc): Add parameter | |
498 | is_thumb and set it according to CPSR saved on the stack. | |
499 | (arm_linux_get_next_pcs_syscall_next_pc): Pass is_thumb to | |
500 | arm_linux_sigreturn_next_pc. | |
501 | ||
5f5dfff6 SM |
502 | 2016-01-20 Simon Marchi <simon.marchi@polymtl.ca> |
503 | ||
504 | * python/lib/gdb/printing.py (FlagEnumerationPrinter.__call__): | |
505 | Fix enumerators sort key function. | |
506 | ||
be56871e JB |
507 | 2016-01-20 Joel Brobecker <brobecker@adacore.com> |
508 | ||
b12e5614 | 509 | * printcmd.c (print_scalar_formatted): Move binary operator from |
be56871e JB |
510 | end of line to beginning of next line. Adjust formatting |
511 | accordingly. | |
512 | ||
f2feec98 JB |
513 | 2016-01-19 John Baldwin <jhb@FreeBSD.org> |
514 | ||
515 | * fbsd-nat.c (fbsd_pid_to_exec_file): Use new "buflen" instead of | |
516 | "len" with sysctl. | |
517 | ||
20a0aab3 JB |
518 | 2016-01-19 John Baldwin <jhb@FreeBSD.org> |
519 | ||
520 | * fbsd-tdep.c (find_stop_signal): Remove. | |
521 | (struct fbsd_collect_regset_section_cb) <lwp>: New field. | |
522 | <stop_signal>: New field. | |
523 | <abort_iteration>: New field. | |
524 | (fbsd_collect_regset_section_cb): Use new fields. | |
525 | (fbsd_collect_thread_registers): New function. | |
526 | (struct fbsd_corefile_thread_data): New structure. | |
527 | (fbsd_corefile_thread): New function. | |
528 | (fbsd_make_corefile_notes): Use new function to dump notes for each | |
529 | non-exited thread in a process. | |
530 | ||
6e9567fe JB |
531 | 2016-01-19 John Baldwin <jhb@FreeBSD.org> |
532 | ||
533 | * configure.ac: Check for support for LWP names on FreeBSD. | |
534 | * fbsd-nat.c [PT_LWPINFO] New variable debug_fbsd_lwp. | |
535 | [TDP_RFPPWAIT || HAVE_STRUCT_PTRACE_LWPINFO_PL_TDNAME] | |
536 | (fbsd_fetch_kinfo_proc): Move function earlier. | |
537 | [PT_LWPINFO] (fbsd_thread_alive): New function. | |
538 | [PT_LWPINFO] (fbsd_pid_to_str): New function. | |
539 | [HAVE_STRUCT_PTRACE_LWPINFO_PL_TDNAME] (fbsd_thread_name): New function. | |
540 | [PT_LWP_EVENTS] (fbsd_enable_lwp_events): New function. | |
541 | [PT_LWPINFO] (fbsd_add_threads): New function. | |
542 | [PT_LWPINFO] (fbsd_update_thread_list): New function. | |
543 | [PT_LWPINFO] New variable super_resume. | |
544 | [PT_LWPINFO] (resume_one_thread_cb): New function. | |
545 | [PT_LWPINFO] (resume_all_threads_cb): New function. | |
546 | [PT_LWPINFO] (fbsd_resume): New function. | |
547 | (fbsd_remember_child): Save full ptid instead of plain pid. | |
548 | (fbsd_is_child_pending): Return ptid of saved child process. | |
549 | (fbsd_wait): Include lwp in returned ptid and switch to LWP ptid on | |
550 | first stop. | |
551 | [PT_LWP_EVENTS] Handle LWP events. | |
552 | [TDP_RFPPWAIT] Include LWP in child ptid. | |
553 | (fbsd_post_startup_inferior) [PT_LWP_EVENTS]: Enable LWP events. | |
554 | (fbsd_post_attach) [PT_LWP_EVENTS]: Enable LWP events. | |
555 | Add threads for existing processes. | |
556 | (fbsd_nat_add_target) [PT_LWPINFO]: Set "to_thread_alive" to | |
557 | "fbsd_thread_alive". | |
558 | Set "to_pid_to_str" to "fbsd_pid_to_str". | |
559 | [HAVE_STRUCT_PTRACE_LWPINFO_PL_TDNAME]: Set "to_thread_name" to | |
560 | "fbsd_thread_name". | |
561 | [PT_LWPINFO]: Set "to_update_thread_list" to "fbsd_update_thread_list". | |
562 | Set "to_has_thread_control" to "tc_schedlock". | |
563 | Set "to_resume" to "fbsd_resume". | |
564 | (_initialize_fbsd_nat): New function. | |
565 | * configure: Regenerate. | |
566 | * config.in: Regenerate. | |
567 | ||
94309df7 JB |
568 | 2016-01-19 John Baldwin <jhb@FreeBSD.org> |
569 | ||
570 | * amd64bsd-nat.c (amd64bsd_fetch_inferior_registers): Use | |
571 | get_ptrace_pid. | |
572 | (amd64bsd_store_inferior_registers): Use get_ptrace_pid. | |
573 | (amd64bsd_dr_get): Use get_ptrace_pid. | |
574 | (amd64bsd_dr_set): Use get_ptrace_pid. | |
575 | * i386bsd-nat.c (i386bsd_fetch_inferior_registers): Use get_ptrace_pid. | |
576 | (i386bsd_store_inferior_registers): Use get_ptrace_pid. | |
577 | (i386bsd_dr_get): Use get_ptrace_pid. | |
578 | (i386bsd_dr_set): Use get_ptrace_pid. | |
579 | * inf-ptrace.c (get_ptrace_pid): Export. | |
580 | * inf-ptrace.h (get_ptrace_pid): Declare. | |
581 | * ppcfbsd-nat.c (ppcfbsd_fetch_inferior_registers): Use lwp id. | |
582 | (ppcfbsd_store_inferior_registers): Use lwp id. | |
583 | ||
79117428 JB |
584 | 2016-01-19 John Baldwin <jhb@FreeBSD.org> |
585 | ||
586 | * fbsd_tdep.c (fbsd_core_pid_to_str): New function. | |
587 | (fbsd_core_thread_name): New function. | |
588 | (fbsd_init_abi): Add "core_pid_to_str" gdbarch method. | |
589 | Add "core_thread_name" gdbarch method. | |
590 | ||
4dfc5dbc JB |
591 | 2016-01-19 John Baldwin <jhb@FreeBSD.org> |
592 | ||
593 | * corelow.c (core_thread_name): New function. | |
594 | (init_core_ops): Use "core_thread_name" for the "to_thread_name" | |
595 | target op. | |
596 | * gdbarch.sh (core_thread_name): New gdbarch callback. | |
597 | * gdbarch.h: Re-generate. | |
598 | * gdbarch.c: Re-generate. | |
599 | ||
10e3ed90 SM |
600 | 2016-01-19 Simon Marchi <simon.marchi@polymtl.ca> |
601 | ||
602 | * python/lib/gdb/printing.py (_EnumInstance.to_string): Explicitly | |
603 | convert gdb.Value to integer type using int(). | |
604 | ||
a6e69c1f JB |
605 | 2016-01-19 John Baldwin <jhb@FreeBSD.org> |
606 | ||
607 | * configure.ac: Include <sys/types.h when checking for "r_fs" in | |
608 | "struct reg". | |
609 | * configure: Regenerate. | |
610 | ||
37e42b4f PA |
611 | 2016-01-19 Pedro Alves <palves@redhat.com> |
612 | ||
613 | * ax-gdb.c (agent_command_1): Adjust call to decode_line_full. | |
614 | * break-catch-throw.c (re_set_exception_catchpoint): Pass the | |
615 | current program space down to linespec decoding and breakpoint | |
616 | location updating. | |
617 | * breakpoint.c (parse_breakpoint_sals): Adjust calls to | |
618 | decode_line_full. | |
619 | (until_break_command): Adjust calls to decode_line_1. | |
620 | (base_breakpoint_decode_location, bkpt_decode_location): Add | |
621 | 'search_pspace' parameter. Pass it along. | |
622 | (bkpt_probe_create_sals_from_location): Adjust calls to | |
623 | parse_probes. | |
624 | (tracepoint_decode_location, tracepoint_probe_decode_location) | |
625 | (strace_marker_decode_location): Add 'search_pspace' parameter. | |
626 | Pass it along. | |
627 | (all_locations_are_pending): Rewrite to take a breakpoint and | |
628 | program space as arguments instead. | |
629 | (hoist_existing_locations): New function. | |
630 | (update_breakpoint_locations): Add 'filter_pspace' parameter. Use | |
631 | hoist_existing_locations instead of always removing all locations, | |
632 | and adjust to all_locations_are_pending change. | |
633 | (location_to_sals): Add 'search_pspace' parameter. Pass it along. | |
634 | Don't disable the breakpoint if there are other locations in | |
635 | another program space. | |
636 | (breakpoint_re_set_default): Adjust to pass down the current | |
637 | program space as filter program space. | |
638 | (decode_location_default): Add 'search_pspace' parameter and pass | |
639 | it along. | |
640 | (prepare_re_set_context): Don't switch program space here. | |
641 | (breakpoint_re_set): Use save_current_space_and_thread instead of | |
642 | save_current_program_space. | |
643 | * breakpoint.h (struct breakpoint_ops) <decode_location>: Add | |
644 | 'search_pspace' parameter. | |
645 | (update_breakpoint_locations): Add 'filter_pspace' parameter. | |
646 | * cli/cli-cmds.c (edit_command, list_command): Adjust calls to | |
647 | decode_line_1. | |
648 | * elfread.c (elf_gnu_ifunc_resolver_return_stop): Pass the current | |
649 | program space as filter program space. | |
650 | * linespec.c (struct linespec_state) <search_pspace>: New field. | |
651 | (create_sals_line_offset, convert_explicit_location_to_sals) | |
652 | (parse_linespec): Pass the search program space down. | |
653 | (linespec_state_constructor): Add 'search_pspace' parameter. | |
654 | Store it. | |
655 | (linespec_parser_new): Add 'search_pspace' parameter and pass it | |
656 | along. | |
657 | (linespec_lex_to_end): Adjust. | |
658 | (decode_line_full, decode_line_1): Add 'search_pspace' parameter | |
659 | and pass it along. | |
660 | (decode_line_with_last_displayed): Adjust. | |
661 | (collect_symtabs_from_filename, symtabs_from_filename): New | |
662 | 'search_pspace' parameter. Use it. | |
663 | (find_function_symbols): Pass the search program space down. | |
664 | * linespec.h (decode_line_1, decode_line_full): Add | |
665 | 'search_pspace' parameter. | |
666 | * probe.c (parse_probes_in_pspace): New function, factored out | |
667 | from ... | |
668 | (parse_probes): ... this. Add 'search_pspace' parameter and use | |
669 | it. | |
670 | * probe.h (parse_probes): Add pspace' parameter. | |
671 | * python/python.c (gdbpy_decode_line): Adjust. | |
672 | * tracepoint.c (scope_info): Adjust. | |
673 | ||
100b4f2e MR |
674 | 2016-01-18 Maciej W. Rozycki <macro@imgtec.com> |
675 | ||
676 | * mips-tdep.c (mips_insn_size): Remove 48-bit microMIPS | |
677 | instruction support. | |
678 | (micromips_next_pc): Likewise. | |
679 | (micromips_scan_prologue): Likewise. | |
680 | (micromips_deal_with_atomic_sequence): Likewise. | |
681 | (micromips_stack_frame_destroyed_p): Likewise. | |
682 | (mips_breakpoint_from_pc): Likewise. | |
683 | ||
3f7f3650 MR |
684 | 2016-01-18 Maciej W. Rozycki <macro@imgtec.com> |
685 | ||
686 | * mips-tdep.c (micromips_insn_at_pc_has_delay_slot): Pass | |
687 | unshifted 16-bit microMIPS instruction word to `mips_insn_size'. | |
688 | ||
f303dbd6 PA |
689 | 2016-01-18 Pedro Alves <palves@redhat.com> |
690 | ||
691 | * NEWS: Mention that GDB now displays the ID and name of the | |
692 | thread that hit a breakpoint or received a signal. | |
693 | * break-catch-sig.c (signal_catchpoint_print_it): Use | |
694 | maybe_print_thread_hit_breakpoint. | |
695 | * break-catch-syscall.c (print_it_catch_syscall): Likewise. | |
696 | * break-catch-throw.c (print_it_exception_catchpoint): Likewise. | |
697 | * breakpoint.c (maybe_print_thread_hit_breakpoint): New function. | |
698 | (print_it_catch_fork, print_it_catch_vfork, print_it_catch_solib) | |
699 | (print_it_catch_exec, print_it_ranged_breakpoint) | |
700 | (print_it_watchpoint, print_it_masked_watchpoint, bkpt_print_it): | |
701 | Use maybe_print_thread_hit_breakpoint. | |
702 | * breakpoint.h (maybe_print_thread_hit_breakpoint): Declare. | |
703 | * gdbthread.h (show_thread_that_caused_stop): Declare. | |
704 | * infrun.c (print_signal_received_reason): Print which thread | |
705 | received signal. | |
706 | * thread.c (show_thread_that_caused_stop): New function. | |
707 | ||
eb0edac8 GB |
708 | 2016-01-18 Gary Benson <gbenson@redhat.com> |
709 | ||
710 | * nat/linux-namespaces.c (do_fork): New function. | |
711 | (linux_mntns_get_helper): Use the above. | |
712 | ||
dc365182 JH |
713 | 2016-01-17 Jonas Hahnfeld <Hahnfeld@itc.rwth-aachen.de> (tiny change) |
714 | ||
715 | Pushed by Joel Brobecker <brobecker@adacore.com>. | |
716 | PR gdb/19208 | |
717 | * dwarf2read.c (read_partial_die): Do not call set_objfile_main_name | |
718 | if the function has no name. | |
719 | ||
f74f61cb SL |
720 | 2016-01-15 Sandra Loosemore <sandra@codesourcery.com> |
721 | ||
722 | * charset.c [PHONY_ICONV] (GDB_DEFAULT_HOST_CHARSET): | |
723 | Conditionalize for Windows host. | |
724 | (GDB_DEFAULT_TARGET_CHARSET): Match GDB_DEFAULT_HOST_CHARSET. | |
725 | (GDB_DEFAULT_TARGET_WIDE_CHARSET): Use UTF-32. | |
726 | (phony_iconv_open): Handle both UTF-32 endiannesses. | |
727 | (phony_iconv): Likewise. Check for output overflow and clean up | |
728 | out-of-input cases. Correct adjustment to input buffer pointer. | |
729 | (set_be_le_names) [PHONY_ICONV]: Use hard-wired names to match | |
730 | phony_iconv_open. | |
731 | ||
71ef29a8 PA |
732 | 2016-01-15 Pedro Alves <palves@redhat.com> |
733 | ||
734 | * NEWS: Mention star wildcard ranges. | |
735 | * cli/cli-utils.c (get_number_or_range): Check state->in_range first. | |
736 | (number_range_setup_range): New function. | |
737 | * cli/cli-utils.h (number_range_setup_range): New declaration. | |
738 | * thread.c (thread_apply_command): Support star TID ranges. | |
739 | * tid-parse.c (tid_range_parser_finished) | |
740 | (tid_range_parser_string, tid_range_parser_skip) | |
741 | (get_tid_or_range, get_tid_or_range): Handle | |
742 | TID_RANGE_STATE_STAR_RANGE. | |
743 | (tid_range_parser_star_range): New function. | |
744 | * tid-parse.h (enum tid_range_state) <TID_RANGE_STATE_STAR_RANGE>: | |
745 | New value. | |
746 | (tid_range_parser_star_range): New declaration. | |
747 | ||
3f5b7598 PA |
748 | 2016-01-15 Pedro Alves <palves@redhat.com> |
749 | ||
750 | * thread.c (thread_apply_command): Use the tid range parser to | |
751 | advance past the thread ID list. | |
752 | * tid-parse.c (get_positive_number_trailer): New function. | |
753 | (parse_thread_id): Use it. | |
754 | (get_tid_or_range): Use it. Return 0 instead of throwing invalid | |
755 | thread ID error. | |
756 | (get_tid_or_range): Detect negative values. Return 0 instead of | |
757 | throwing invalid thread ID error. | |
758 | ||
e7cf25a8 YQ |
759 | 2016-01-14 Yao Qi <yao.qi@linaro.org> |
760 | ||
761 | * arm-linux-tdep.c (arm_linux_get_next_pcs_syscall_next_pc): | |
762 | Declare. | |
763 | (arm_linux_get_next_pcs_ops): Install | |
764 | arm_linux_get_next_pcs_syscall_next_pc. | |
765 | (arm_linux_syscall_next_pc): Change to ... | |
766 | (arm_linux_get_next_pcs_syscall_next_pc): ... it. | |
767 | (arm_linux_init_abi): Don't set tdep->syscall_next_pc. | |
768 | * arm-tdep.c (arm_get_next_pcs_syscall_next_pc): Declare. | |
769 | (arm_get_next_pcs_syscall_next_pc): Make it static. Don't | |
770 | call tdep->syscall_next_pc. | |
771 | * arm-tdep.h (struct gdbarch_tdep) <syscall_next_pc>: Remove. | |
772 | (arm_get_next_pcs_syscall_next_pc): Remove. | |
773 | ||
c0518081 YQ |
774 | 2016-01-14 Yao Qi <yao.qi@linaro.org> |
775 | ||
776 | * remote.c (remote_set_syscall_catchpoint): Cast to char *. | |
777 | * thread.c (do_captured_thread_select): Cast to const char *. | |
778 | ||
1b451dda YQ |
779 | 2016-01-14 Yao Qi <yao.qi@linaro.org> |
780 | ||
781 | * arch/arm-get-next-pcs.c (arm_get_next_pcs_ctor): Change | |
782 | argument arm_thumb2_breakpoint to has_thumb2_breakpoint. | |
783 | (thumb_get_next_pcs_raw): Check has_thumb2_breakpoint | |
784 | instead. | |
785 | * arch/arm-get-next-pcs.h (struct arm_get_next_pcs) | |
786 | <arm_thumb2_breakpoint>: Remove. | |
787 | <has_thumb2_breakpoint>: New field. | |
788 | (arm_get_next_pcs_ctor): Update declaration. | |
789 | * arm-linux-tdep.c (arm_linux_software_single_step): Pass | |
790 | 1 to arm_get_next_pcs_ctor. | |
791 | * arm-tdep.c (arm_software_single_step): Pass 0 to | |
792 | arm_get_next_pcs_ctor. | |
793 | ||
bc06e0b1 UW |
794 | 2016-01-13 Ulrich Weigand <uweigand@de.ibm.com> |
795 | ||
796 | * MAINTAINERS: Add Andreas Arnez as s390 target maintainer. | |
797 | ||
4e7b8bea YQ |
798 | 2016-01-13 Yao Qi <yao.qi@linaro.org> |
799 | ||
800 | * arch/arm-get-next-pcs.c (arm_get_next_pcs_raw): Use | |
801 | byte_order_for_code to read instruction. | |
802 | ||
663f6d42 PA |
803 | 2016-01-13 Pedro Alves <palves@redhat.com> |
804 | ||
805 | * NEWS: Mention $_gthread. | |
806 | * gdbthread.h (struct thread_info) <global_num>: Mention | |
807 | $_gthread. | |
808 | * thread.c (thread_num_make_value_helper): New function. | |
809 | (thread_id_make_value): Delete. | |
810 | (thread_id_per_inf_num_make_value, global_thread_id_make_value): | |
811 | New. | |
812 | (thread_funcs): Adjust. | |
813 | (gthread_funcs): New. | |
814 | (_initialize_thread): Register $_gthread variable. | |
815 | ||
c84f6bbf PA |
816 | 2016-01-13 Pedro Alves <palves@redhat.com> |
817 | ||
818 | * NEWS: Mention "info threads -gid". | |
819 | * gdbthread.h (struct thread_info) <global_num>: Mention "info | |
820 | threads -gid". | |
821 | * thread.c (info_threads_command): Handle "-gid". | |
822 | (_initialize_thread): Adjust "info threads" help string to mention | |
823 | -gid. | |
824 | ||
22a02324 PA |
825 | 2016-01-13 Pedro Alves <palves@redhat.com> |
826 | ||
827 | * NEWS: Mention InferiorThread.global_num. | |
828 | * python/py-infthread.c (thpy_get_global_num): New function. | |
829 | (thread_object_getset): Register "global_num". | |
830 | ||
5d5658a1 PA |
831 | 2016-01-13 Pedro Alves <palves@redhat.com> |
832 | ||
833 | * NEWS: Mention that thread IDs are now per inferior and global | |
834 | thread IDs. | |
835 | * Makefile.in (SFILES): Add tid-parse.c. | |
836 | (COMMON_OBS): Add tid-parse.o. | |
837 | (HFILES_NO_SRCDIR): Add tid-parse.h. | |
838 | * ada-tasks.c: Adjust to use ptid_to_global_thread_id. | |
839 | * breakpoint.c (insert_breakpoint_locations) | |
840 | (remove_threaded_breakpoints, bpstat_check_breakpoint_conditions) | |
841 | (print_one_breakpoint_location, set_longjmp_breakpoint) | |
842 | (check_longjmp_breakpoint_for_call_dummy) | |
843 | (set_momentary_breakpoint): Adjust to use global IDs. | |
844 | (find_condition_and_thread, watch_command_1): Use parse_thread_id. | |
845 | (until_break_command, longjmp_bkpt_dtor) | |
846 | (breakpoint_re_set_thread, insert_single_step_breakpoint): Adjust | |
847 | to use global IDs. | |
848 | * dummy-frame.c (pop_dummy_frame_bpt): Adjust to use | |
849 | ptid_to_global_thread_id. | |
850 | * elfread.c (elf_gnu_ifunc_resolver_stop): Likewise. | |
851 | * gdbthread.h (struct thread_info): Rename field 'num' to | |
852 | 'global_num. Add new fields 'per_inf_num' and 'inf'. | |
853 | (thread_id_to_pid): Rename thread_id_to_pid to | |
854 | global_thread_id_to_ptid. | |
855 | (pid_to_thread_id): Rename to ... | |
856 | (ptid_to_global_thread_id): ... this. | |
857 | (valid_thread_id): Rename to ... | |
858 | (valid_global_thread_id): ... this. | |
859 | (find_thread_id): Rename to ... | |
860 | (find_thread_global_id): ... this. | |
861 | (ALL_THREADS, ALL_THREADS_BY_INFERIOR): Declare. | |
862 | (print_thread_info): Add comment. | |
863 | * tid-parse.h: New file. | |
864 | * tid-parse.c: New file. | |
865 | * infcmd.c (step_command_fsm_prepare) | |
866 | (step_command_fsm_should_stop): Adjust to use the global thread | |
867 | ID. | |
868 | (until_next_command, until_next_command) | |
869 | (finish_command_fsm_should_stop): Adjust to use the global thread | |
870 | ID. | |
871 | (attach_post_wait): Adjust to check the inferior number too. | |
872 | * inferior.h (struct inferior) <highest_thread_num>: New field. | |
873 | * infrun.c (handle_signal_stop) | |
874 | (insert_exception_resume_breakpoint) | |
875 | (insert_exception_resume_from_probe): Adjust to use the global | |
876 | thread ID. | |
877 | * record-btrace.c (record_btrace_open): Use global thread IDs. | |
878 | * remote.c (process_initial_stop_replies): Also consider the | |
879 | inferior number. | |
880 | * target.c (target_pre_inferior): Clear the inferior's highest | |
881 | thread num. | |
882 | * thread.c (clear_thread_inferior_resources): Adjust to use the | |
883 | global thread ID. | |
884 | (new_thread): New inferior parameter. Adjust to use it. Set both | |
885 | the thread's global ID and the thread's per-inferior ID. | |
886 | (add_thread_silent): Adjust. | |
887 | (find_thread_global_id): New. | |
888 | (find_thread_id): Make static. Adjust to rename. | |
889 | (valid_thread_id): Rename to ... | |
890 | (valid_global_thread_id): ... this. | |
891 | (pid_to_thread_id): Rename to ... | |
892 | (ptid_to_global_thread_id): ... this. | |
893 | (thread_id_to_pid): Rename to ... | |
894 | (global_thread_id_to_ptid): ... this. Adjust. | |
895 | (first_thread_of_process): Adjust. | |
896 | (do_captured_list_thread_ids): Adjust to use global thread IDs. | |
897 | (should_print_thread): New function. | |
898 | (print_thread_info): Rename to ... | |
899 | (print_thread_info_1): ... this, and add new show_global_ids | |
900 | parameter. Handle it. Iterate over inferiors. | |
901 | (print_thread_info): Reimplement as wrapper around | |
902 | print_thread_info_1. | |
903 | (show_inferior_qualified_tids): New function. | |
904 | (print_thread_id): Use it. | |
905 | (tp_array_compar): Compare inferior numbers too. | |
906 | (thread_apply_command): Use tid_range_parser. | |
907 | (do_captured_thread_select): Use parse_thread_id. | |
908 | (thread_id_make_value): Adjust. | |
909 | (_initialize_thread): Adjust "info threads" help string. | |
910 | * varobj.c (struct varobj_root): Update comment. | |
911 | (varobj_create): Adjust to use global thread IDs. | |
912 | (value_of_root_1): Adjust to use global_thread_id_to_ptid. | |
913 | * windows-tdep.c (display_tib): No longer accept an argument. | |
914 | * cli/cli-utils.c (get_number_trailer): Make extern. | |
915 | * cli/cli-utils.h (get_number_trailer): Declare. | |
916 | (get_number_const): Adjust documentation. | |
917 | * mi/mi-cmd-var.c (mi_cmd_var_update_iter): Adjust to use global | |
918 | thread IDs. | |
919 | * mi/mi-interp.c (mi_new_thread, mi_thread_exit) | |
920 | (mi_on_normal_stop, mi_output_running_pid, mi_on_resume): | |
921 | * mi/mi-main.c (mi_execute_command, mi_cmd_execute): Likewise. | |
922 | * guile/scm-breakpoint.c (gdbscm_set_breakpoint_thread_x): | |
923 | Likewise. | |
924 | * python/py-breakpoint.c (bppy_set_thread): Likewise. | |
925 | * python/py-finishbreakpoint.c (bpfinishpy_init): Likewise. | |
926 | * python/py-infthread.c (thpy_get_num): Add comment and return the | |
927 | per-inferior thread ID. | |
928 | (thread_object_getset): Update comment of "num". | |
929 | ||
43792cf0 PA |
930 | 2016-01-13 Pedro Alves <palves@redhat.com> |
931 | ||
932 | * breakpoint.c (remove_threaded_breakpoints) | |
933 | (print_one_breakpoint_location): Use print_thread_id. | |
934 | * btrace.c (btrace_enable, btrace_disable, btrace_teardown) | |
935 | (btrace_fetch, btrace_clear): Use print_thread_id. | |
936 | * common/print-utils.c (CELLSIZE): Delete. | |
937 | (get_cell): Rename to ... | |
938 | (get_print_cell): ... this and made extern. Adjust call callers. | |
939 | Adjust to use PRINT_CELL_SIZE. | |
940 | * common/print-utils.h (get_print_cell): Declare. | |
941 | (PRINT_CELL_SIZE): New. | |
942 | * gdbthread.h (print_thread_id): Declare. | |
943 | * infcmd.c (signal_command): Use print_thread_id. | |
944 | * inferior.c (print_inferior): Use print_thread_id. | |
945 | * infrun.c (handle_signal_stop) | |
946 | (insert_exception_resume_breakpoint) | |
947 | (insert_exception_resume_from_probe) | |
948 | (print_signal_received_reason): Use print_thread_id. | |
949 | * record-btrace.c (record_btrace_info) | |
950 | (record_btrace_resume_thread, record_btrace_cancel_resume) | |
951 | (record_btrace_step_thread, record_btrace_wait): Use | |
952 | print_thread_id. | |
953 | * thread.c (thread_apply_all_command): Use print_thread_id. | |
954 | (print_thread_id): New function. | |
955 | (thread_apply_command): Use print_thread_id. | |
956 | (thread_command, thread_find_command, do_captured_thread_select): | |
957 | Use print_thread_id. | |
958 | ||
84654457 PA |
959 | 2016-01-13 Pedro Alves <palves@redhat.com> |
960 | ||
961 | * NEWS: Mention InferiorThread.inferior. | |
962 | * python/py-infthread.c (thpy_get_inferior): New. | |
963 | (thread_object_getset): Register "inferior". | |
964 | ||
e3940304 PA |
965 | 2016-01-13 Pedro Alves <palves@redhat.com> |
966 | ||
967 | * NEWS: Mention $_inferior. | |
968 | * inferior.c (inferior_id_make_value): New. | |
969 | (inferior_funcs): New. | |
970 | (_initialize_inferior): Create $_inferior variable. | |
971 | ||
a911d87a PA |
972 | 2016-01-13 Pedro Alves <palves@redhat.com> |
973 | ||
974 | PR breakpoints/19388 | |
975 | * frame.c (get_current_frame): Use validate_registers_access. | |
976 | * gdbthread.h (validate_registers_access): Declare. | |
977 | * infrun.c (validate_siginfo_access): Delete. | |
978 | (siginfo_value_read, siginfo_value_write): Use | |
979 | validate_registers_access. | |
980 | * thread.c (validate_registers_access): New function. | |
981 | ||
82075af2 JS |
982 | 2016-01-12 Josh Stone <jistone@redhat.com> |
983 | Philippe Waroquiers <philippe.waroquiers@skynet.be> | |
984 | ||
985 | * NEWS (Changes since GDB 7.10): Mention QCatchSyscalls and the | |
986 | syscall_entry and syscall_return stop reasons. Mention GDB | |
987 | support for remote catch syscall. | |
988 | * remote.c (PACKET_QCatchSyscalls): New enum. | |
989 | (remote_set_syscall_catchpoint): New function. | |
990 | (remote_protocol_features): New element for QCatchSyscalls. | |
991 | (remote_parse_stop_reply): Parse syscall_entry/return stops. | |
992 | (init_remote_ops): Install remote_set_syscall_catchpoint. | |
993 | (_initialize_remote): Config QCatchSyscalls. | |
994 | * linux-nat.h (struct lwp_info) <syscall_state>: Comment typo. | |
995 | ||
d18547d8 YQ |
996 | 2016-01-12 Yao Qi <yao.qi@linaro.org> |
997 | ||
998 | * nat/linux-ptrace.c (linux_child_function): Cast child_stack | |
999 | to gdb_byte * and pass to linux_fork_to_function. | |
1000 | ||
ba4dd7c4 YQ |
1001 | 2016-01-12 Yao Qi <yao.qi@linaro.org> |
1002 | ||
1003 | * nat/linux-ptrace.c (linux_fork_to_function): Change type | |
1004 | of argument 'function'. | |
1005 | (linux_grandchild_function): Change return type to 'int'. | |
1006 | Change child_stack's type to 'void *'. | |
1007 | (linux_child_function): Likewise. | |
1008 | ||
bc504a31 PA |
1009 | 2016-01-12 Pedro Alves <palves@redhat.com> |
1010 | ||
1011 | Remove use of the registered trademark symbol throughout. | |
1012 | ||
5eddd578 TS |
1013 | 2016-01-12 Thomas Schwinge <thomas@codesourcery.com> |
1014 | ||
1015 | * reply_mig_hack.awk: Rewrite one regular expression. | |
1016 | ||
b835bb52 MF |
1017 | 2016-01-11 Mike Frysinger <vapier@gentoo.org> |
1018 | ||
1019 | * acinclude.m4: Include new warning.m4 file. | |
1020 | * configure: Regenerated. | |
1021 | * configure.ac: Move all warning logic ... | |
1022 | * warning.m4: ... here. | |
1023 | ||
2f99e8fc YQ |
1024 | 2016-01-08 Yao Qi <yao.qi@linaro.org> |
1025 | ||
1026 | * extension.c: Include target.h. | |
1027 | (set_active_ext_lang): Only call install_gdb_sigint_handler, | |
1028 | check_quit_flag, and set_quit_flag if target_terminal_is_ours | |
1029 | returns false. | |
1030 | (restore_active_ext_lang): Likewise. | |
1031 | * target.c (target_terminal_is_ours): New function. | |
1032 | * target.h (target_terminal_is_ours): Declare. | |
1033 | ||
5dd05630 MR |
1034 | 2016-01-07 Maciej W. Rozycki <macro@imgtec.com> |
1035 | ||
1036 | * mips-tdep.c (mips_breakpoint_from_pc): Rename local `status' | |
1037 | to `err' in the little-endian leg. | |
1038 | ||
f5aa3069 YQ |
1039 | 2016-01-06 Yao Qi <yao.qi@linaro.org> |
1040 | ||
1041 | * arch/arm-get-next-pcs.c (arm_get_next_pcs): Move it to some | |
1042 | lines below. | |
1043 | (thumb_get_next_pcs_raw): Make it static. | |
1044 | (arm_get_next_pcs_raw): Likewise. | |
1045 | * arch/arm-get-next-pcs.h (thumb_get_next_pcs_raw): Remove the | |
1046 | declaration. | |
1047 | (arm_get_next_pcs_raw): Likewise. | |
1048 | ||
bf69ad5a MF |
1049 | 2016-01-05 Mike Frysinger <vapier@gentoo.org> |
1050 | ||
1051 | * version.in: Change cvs to git. | |
1052 | ||
66750332 MF |
1053 | 2016-01-05 Mike Frysinger <vapier@gentoo.org> |
1054 | ||
1055 | * configure.tgt (score-*-*): Delete gdb_sim assignment. | |
1056 | ||
976102cd PA |
1057 | 2016-01-05 Pedro Alves <palves@redhat.com> |
1058 | ||
1059 | PR sim/13418 | |
1060 | * configure.ac: Define WITH_PPC_SIM when linking in the sim and | |
1061 | the target is powerpc*. | |
fa89c126 PA |
1062 | * rs6000-tdep.c (init_sim_regno_table): Check WITH_PPC_SIM instead |
1063 | of WITH_SIM. | |
976102cd PA |
1064 | * configure: Regenerate. |
1065 | * config.in: Regenerate. | |
1066 | ||
43368e1d MM |
1067 | 2016-01-04 Markus Metzger <markus.t.metzger@intel.com> |
1068 | ||
1069 | * btrace.c (btrace_pt_readmem_callback): Do not return in TRY/CATCH. | |
1070 | ||
32273fe6 MF |
1071 | 2016-01-02 Mike Frysinger <vapier@gentoo.org> |
1072 | ||
1073 | * configure.tgt (powerpc*-*-*): Delete test call and | |
1074 | always assign gdb_sim. | |
1075 | ||
618f726f JB |
1076 | 2016-01-01 Joel Brobecker <brobecker@adacore.com> |
1077 | ||
1078 | Update year range in copyright notice of all files. | |
1079 | ||
edd88788 JB |
1080 | 2016-01-01 Joel Brobecker <brobecker@adacore.com> |
1081 | ||
1082 | * top.c (print_gdb_version): Change copyright year in version | |
1083 | message. | |
1084 | ||
0f7b3ef4 | 1085 | 2016-01-01 Joel Brobecker <brobecker@adacore.com> |
aec47d1d | 1086 | |
0f7b3ef4 | 1087 | * config/djgpp/fnchange.lst: Add entry for gdb/ChangeLog-2015. |
aec47d1d | 1088 | |
0f7b3ef4 | 1089 | For older changes see ChangeLog-2015. |
c906108c SS |
1090 | \f |
1091 | Local Variables: | |
1092 | mode: change-log | |
1093 | left-margin: 8 | |
1094 | fill-column: 74 | |
1095 | version-control: never | |
57da7796 | 1096 | coding: utf-8 |
c906108c | 1097 | End: |