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