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