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