1 2016-02-02 Walfred Tedeschi <walfred.tedeschi@intel.com>
3 * linux-tdep.h (linux_get_siginfo_type_with_fields): Make extern.
4 * linux-tdep.c (linux_get_siginfo_type_with_fields): Make extern.
5 * i386-linux-tdep.h (x86_linux_get_siginfo_type): New
7 * amd64-linux-tdep.c (amd64_linux_init_abi_common): Add
8 x86_linux_get_siginfo_type for the amd64 abi.
9 * i386-linux-tdep.c (x86_linux_get_siginfo_type): New
11 (i386_linux_init_abi): Add new function at the i386 ABI
15 2016-02-02 Walfred Tedeschi <walfred.tedeschi@intel.com>
17 * linux-tdep.h (linux_siginfo_extra_field_values): New enum values.
18 (linux_siginfo_extra_fields): New enum type.
19 * linux-tdep.c (linux_get_siginfo_type_with_fields): New function.
20 (linux_get_siginfo_type): Use new function.
22 2016-02-02 Walfred Tedeschi <walfred.tedeschi@intel.com>
24 * nat/amd64-linux-siginfo.c: New file.
25 * nat/amd64-linux-siginfo.h: New file.
26 * Makefile.in (HFILES_NO_SRCDIR): Add nat/amd64-linux-siginfo.h.
27 (amd64-linux-siginfo.o): New rule.
28 * config/i386/linux64.mh (NATDEPFILES): Add amd64-linux-siginfo.o.
29 * amd64-linux-nat.c (nat/amd64-linux-siginfo.h): New include.
30 (compat_siginfo_from_siginfo, siginfo_from_compat_siginfo)
31 (compat_x32_siginfo_from_siginfo, siginfo_from_compat_x32_siginfo)
32 (compat_timeval, compat_sigval, compat_x32_clock, cpt_si_pid)
33 (cpt_si_uid, cpt_si_timerid, cpt_si_overrun, cpt_si_status)
34 (cpt_si_utime, cpt_si_stime, cpt_si_ptr, cpt_si_addr, cpt_si_band)
35 (cpt_si_fd, si_timerid, si_overrun): Move to nat/amd64-linux-siginfo.c.
37 2016-02-01 Andrew Burgess <andrew.burgess@embecosm.com>
39 * value.c (max_value_size): New variable.
40 (MIN_VALUE_FOR_MAX_VALUE_SIZE): New define.
41 (set_max_value_size): New function.
42 (show_max_value_size): New function.
43 (check_type_length_before_alloc): New function.
44 (allocate_value_contents): Call check_type_length_before_alloc.
45 (set_value_enclosing_type): Likewise.
46 (_initialize_values): Add set/show handler for max-value-size.
47 * NEWS: Mention new set/show command.
49 2016-01-31 Simon Marchi <simon.marchi@polymtl.ca>
51 * varobj.h (struct varobj): Fix typos in comments.
52 (struct lang_varobj_ops): Likewise.
53 * varobj.c (VAROBJ_TABLE_SIZE): Likewise.
54 (varobj_create): Move misplaced comment.
56 2016-01-29 Simon Marchi <simon.marchi@ericsson.com>
58 * aarch64-tdep.c (aarch64_record_asimd_load_store): Add braces
59 to for include additional lines.
60 * xcoffread.c (scan_xcoff_symtab): Remove unnecessary braces.
62 2016-01-28 Simon Marchi <simon.marchi@ericsson.com>
64 * gnulib/import/Makefile.am: Regenerate.
65 * gnulib/import/Makefile.in: Regenerate.
66 * gnulib/import/m4/gnulib-cache.m4: Regenerate.
67 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add rawmemchr.
69 2016-01-28 Simon Marchi <simon.marchi@ericsson.com>
71 * remote.c (skip_to_semicolon): Remove.
72 (remote_parse_stop_reply): Use strchrnul instead of
74 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add
76 * gnulib/aclocal.m4: Regenerate.
77 * gnulib/config.in: Regenerate.
78 * gnulib/configure: Regenerate.
79 * gnulib/import/Makefile.am: Regenerate.
80 * gnulib/import/Makefile.in: Regenerate.
81 * gnulib/import/m4/gnulib-cache.m4: Regenerate.
82 * gnulib/import/m4/gnulib-comp.m4: Regenerate.
83 * gnulib/import/m4/rawmemchr.m4: New file.
84 * gnulib/import/m4/strchrnul.m4: New file.
85 * gnulib/import/rawmemchr.c: New file.
86 * gnulib/import/rawmemchr.valgrind: New file.
87 * gnulib/import/strchrnul.c: New file.
88 * gnulib/import/strchrnul.valgrind: New file.
90 2016-01-28 Yao Qi <yao.qi@linaro.org>
92 * breakpoint.c (build_target_command_list): Don't call continue
94 (build_target_condition_list): Likewise.
96 2016-01-27 Kevin Buettner <kevinb@redhat.com>
98 * rx-tdep.c (rx_push_dummy_call): Treat scalars larger than 8
101 2016-01-27 Joel Brobecker <brobecker@adacore.com>
103 * MAINTAINERS (Responsible Maintainers): Add Keith Seitz as
104 Linespec Maintainers.
106 2016-01-26 Simon Marchi <simon.marchi@ericsson.com>
108 * common/common-utils.c (skip_spaces): Fix comment.
109 (skip_to_space_const): Likewise.
111 2016-01-25 Yao Qi <yao.qi@linaro.org>
113 * arch/arm-get-next-pcs.c (thumb_deal_with_atomic_sequence_raw):
114 Remove argument pc. Get pc by regcache_read_pc. Callers updated.
115 (arm_deal_with_atomic_sequence_raw): Likewise.
116 (thumb_get_next_pcs_raw): Likewise.
117 (arm_get_next_pcs_raw): Likewise.
118 (arm_get_next_pcs): Remove argument pc. Callers updated.
119 * arch/arm-get-next-pcs.h (arm_get_next_pcs): Update declaration.
121 2016-01-25 Mark Wielaard <mjw@redhat.com>
123 * ada-lang.c (ada_evaluate_subexp): Add proper else block.
124 * c-typeprint.c (c_type_print_base): Fix misleading indentation of
126 * inflow.c (child_terminal_ours_1): Fix misleading indentation of
127 statement block by introducing an else.
128 * linux-record.c (record_linux_sockaddr): Fix misleading indentation
129 of return statements.
130 (record_linux_msghdr): Likewise.
132 2016-01-25 Pedro Alves <palves@redhat.com>
135 * infrun.c (handle_inferior_event_1) <fork/vfork>: Update
136 parent/child running states.
138 2016-01-25 Pedro Alves <palves@redhat.com>
141 * linux-nat.c (kill_one_lwp): New, factored out from ...
142 (kill_callback): ... this.
143 (kill_wait_callback): New, factored out from ...
144 (kill_wait_one_lwp): ... this.
145 (kill_unfollowed_fork_children): New function.
146 (linux_nat_kill): Use it.
148 2016-01-22 John Baldwin <jhb@FreeBSD.org>
150 * fbsd-nat.c (fbsd_pid_to_str): Adjust string format.
152 2016-01-22 Yao Qi <yao.qi@linaro.org>
154 * arm-linux-nat.c (fetch_fpregs): Call perror_with_name
156 (store_fpregs, fetch_regs, store_regs): Likewise.
157 (fetch_wmmx_regs, store_wmmx_regs): Likewise.
158 (fetch_vfp_regs, store_vfp_regs): Likewise.
160 2016-01-21 Doug Evans <dje@google.com>
162 * breakpoint.c (init_breakpoint_sal): Add comment.
164 2016-01-21 Marcin KoĆcielnicki <koriakin@0x04.net>
166 * ax-gdb.c (gen_traced_pop): Use gen_fetch for string collection.
168 2016-01-21 Andrew Burgess <andrew.burgess@embecosm.com>
170 * disasm.c (maybe_add_dis_line_entry): Rename to...
171 (add_dis_line_entry): ...this, and update header comment.
172 (do_mixed_source_and_assembly): Now use add_dis_line_entry.
174 2016-01-21 Pedro Alves <palves@redhat.com>
176 * Makefile.in (COMPILER_CFLAGS): New.
177 (CXXFLAGS): Get it from configure.
178 (INTERNAL_CFLAGS_BASE, INTERNAL_LDFLAGS): Use COMPILER_CFLAGS
180 * build-with-cxx.m4 (GDB_AC_BUILD_WITH_CXX): Set and AC_SUBST
182 * configure: Regenerate.
184 2016-01-21 Joel Brobecker <brobecker@adacore.com>
186 * location.h (new_address_location): Add new parameters
187 "addr_string" and "addr_string_len".
188 (get_address_string_location): Add declaration.
189 * location.c (new_address_location): Add new parameters
190 "addr_string" and "addr_string_len". If not NULL, store
191 a copy of the addr_string in the new location as well.
192 (get_address_string_location): New function.
193 (string_to_event_location): Update call to new_address_location.
194 * linespec.c (event_location_to_sals) <ADDRESS_LOCATION>:
195 Save the event location in the parser's state before
196 passing it to convert_address_location_to_sals.
197 * breakpoint.c (create_thread_event_breakpoint): Update call
198 to new_address_location.
199 (init_breakpoint_sal): Get the event location's string, if any,
200 and use it to update call to new_address_location.
201 * python/py-finishbreakpoint.c (bpfinishpy_init):
202 Update call to new_address_location.
203 * spu-tdep.c (spu_catch_start): Likewise.
205 * config/djgpp/fnchange.lst: Add entries for
206 gdb/testsuite/gdb.base/break-fun-addr1.c and
207 gdb/testsuite/gdb.base/break-fun-addr2.c.
209 2016-01-21 Yao Qi <yao.qi@linaro.org>
211 * arm-linux-tdep.c (arm_linux_sigreturn_next_pc): Add parameter
212 is_thumb and set it according to CPSR saved on the stack.
213 (arm_linux_get_next_pcs_syscall_next_pc): Pass is_thumb to
214 arm_linux_sigreturn_next_pc.
216 2016-01-20 Simon Marchi <simon.marchi@polymtl.ca>
218 * python/lib/gdb/printing.py (FlagEnumerationPrinter.__call__):
219 Fix enumerators sort key function.
221 2016-01-20 Joel Brobecker <brobecker@adacore.com>
223 * printcmd.c (print_scalar_formatted): Move binary operator from
224 end of line to beginning of next line. Adjust formatting
227 2016-01-19 John Baldwin <jhb@FreeBSD.org>
229 * fbsd-nat.c (fbsd_pid_to_exec_file): Use new "buflen" instead of
232 2016-01-19 John Baldwin <jhb@FreeBSD.org>
234 * fbsd-tdep.c (find_stop_signal): Remove.
235 (struct fbsd_collect_regset_section_cb) <lwp>: New field.
236 <stop_signal>: New field.
237 <abort_iteration>: New field.
238 (fbsd_collect_regset_section_cb): Use new fields.
239 (fbsd_collect_thread_registers): New function.
240 (struct fbsd_corefile_thread_data): New structure.
241 (fbsd_corefile_thread): New function.
242 (fbsd_make_corefile_notes): Use new function to dump notes for each
243 non-exited thread in a process.
245 2016-01-19 John Baldwin <jhb@FreeBSD.org>
247 * configure.ac: Check for support for LWP names on FreeBSD.
248 * fbsd-nat.c [PT_LWPINFO] New variable debug_fbsd_lwp.
249 [TDP_RFPPWAIT || HAVE_STRUCT_PTRACE_LWPINFO_PL_TDNAME]
250 (fbsd_fetch_kinfo_proc): Move function earlier.
251 [PT_LWPINFO] (fbsd_thread_alive): New function.
252 [PT_LWPINFO] (fbsd_pid_to_str): New function.
253 [HAVE_STRUCT_PTRACE_LWPINFO_PL_TDNAME] (fbsd_thread_name): New function.
254 [PT_LWP_EVENTS] (fbsd_enable_lwp_events): New function.
255 [PT_LWPINFO] (fbsd_add_threads): New function.
256 [PT_LWPINFO] (fbsd_update_thread_list): New function.
257 [PT_LWPINFO] New variable super_resume.
258 [PT_LWPINFO] (resume_one_thread_cb): New function.
259 [PT_LWPINFO] (resume_all_threads_cb): New function.
260 [PT_LWPINFO] (fbsd_resume): New function.
261 (fbsd_remember_child): Save full ptid instead of plain pid.
262 (fbsd_is_child_pending): Return ptid of saved child process.
263 (fbsd_wait): Include lwp in returned ptid and switch to LWP ptid on
265 [PT_LWP_EVENTS] Handle LWP events.
266 [TDP_RFPPWAIT] Include LWP in child ptid.
267 (fbsd_post_startup_inferior) [PT_LWP_EVENTS]: Enable LWP events.
268 (fbsd_post_attach) [PT_LWP_EVENTS]: Enable LWP events.
269 Add threads for existing processes.
270 (fbsd_nat_add_target) [PT_LWPINFO]: Set "to_thread_alive" to
272 Set "to_pid_to_str" to "fbsd_pid_to_str".
273 [HAVE_STRUCT_PTRACE_LWPINFO_PL_TDNAME]: Set "to_thread_name" to
275 [PT_LWPINFO]: Set "to_update_thread_list" to "fbsd_update_thread_list".
276 Set "to_has_thread_control" to "tc_schedlock".
277 Set "to_resume" to "fbsd_resume".
278 (_initialize_fbsd_nat): New function.
279 * configure: Regenerate.
280 * config.in: Regenerate.
282 2016-01-19 John Baldwin <jhb@FreeBSD.org>
284 * amd64bsd-nat.c (amd64bsd_fetch_inferior_registers): Use
286 (amd64bsd_store_inferior_registers): Use get_ptrace_pid.
287 (amd64bsd_dr_get): Use get_ptrace_pid.
288 (amd64bsd_dr_set): Use get_ptrace_pid.
289 * i386bsd-nat.c (i386bsd_fetch_inferior_registers): Use get_ptrace_pid.
290 (i386bsd_store_inferior_registers): Use get_ptrace_pid.
291 (i386bsd_dr_get): Use get_ptrace_pid.
292 (i386bsd_dr_set): Use get_ptrace_pid.
293 * inf-ptrace.c (get_ptrace_pid): Export.
294 * inf-ptrace.h (get_ptrace_pid): Declare.
295 * ppcfbsd-nat.c (ppcfbsd_fetch_inferior_registers): Use lwp id.
296 (ppcfbsd_store_inferior_registers): Use lwp id.
298 2016-01-19 John Baldwin <jhb@FreeBSD.org>
300 * fbsd_tdep.c (fbsd_core_pid_to_str): New function.
301 (fbsd_core_thread_name): New function.
302 (fbsd_init_abi): Add "core_pid_to_str" gdbarch method.
303 Add "core_thread_name" gdbarch method.
305 2016-01-19 John Baldwin <jhb@FreeBSD.org>
307 * corelow.c (core_thread_name): New function.
308 (init_core_ops): Use "core_thread_name" for the "to_thread_name"
310 * gdbarch.sh (core_thread_name): New gdbarch callback.
311 * gdbarch.h: Re-generate.
312 * gdbarch.c: Re-generate.
314 2016-01-19 Simon Marchi <simon.marchi@polymtl.ca>
316 * python/lib/gdb/printing.py (_EnumInstance.to_string): Explicitly
317 convert gdb.Value to integer type using int().
319 2016-01-19 John Baldwin <jhb@FreeBSD.org>
321 * configure.ac: Include <sys/types.h when checking for "r_fs" in
323 * configure: Regenerate.
325 2016-01-19 Pedro Alves <palves@redhat.com>
327 * ax-gdb.c (agent_command_1): Adjust call to decode_line_full.
328 * break-catch-throw.c (re_set_exception_catchpoint): Pass the
329 current program space down to linespec decoding and breakpoint
331 * breakpoint.c (parse_breakpoint_sals): Adjust calls to
333 (until_break_command): Adjust calls to decode_line_1.
334 (base_breakpoint_decode_location, bkpt_decode_location): Add
335 'search_pspace' parameter. Pass it along.
336 (bkpt_probe_create_sals_from_location): Adjust calls to
338 (tracepoint_decode_location, tracepoint_probe_decode_location)
339 (strace_marker_decode_location): Add 'search_pspace' parameter.
341 (all_locations_are_pending): Rewrite to take a breakpoint and
342 program space as arguments instead.
343 (hoist_existing_locations): New function.
344 (update_breakpoint_locations): Add 'filter_pspace' parameter. Use
345 hoist_existing_locations instead of always removing all locations,
346 and adjust to all_locations_are_pending change.
347 (location_to_sals): Add 'search_pspace' parameter. Pass it along.
348 Don't disable the breakpoint if there are other locations in
349 another program space.
350 (breakpoint_re_set_default): Adjust to pass down the current
351 program space as filter program space.
352 (decode_location_default): Add 'search_pspace' parameter and pass
354 (prepare_re_set_context): Don't switch program space here.
355 (breakpoint_re_set): Use save_current_space_and_thread instead of
356 save_current_program_space.
357 * breakpoint.h (struct breakpoint_ops) <decode_location>: Add
358 'search_pspace' parameter.
359 (update_breakpoint_locations): Add 'filter_pspace' parameter.
360 * cli/cli-cmds.c (edit_command, list_command): Adjust calls to
362 * elfread.c (elf_gnu_ifunc_resolver_return_stop): Pass the current
363 program space as filter program space.
364 * linespec.c (struct linespec_state) <search_pspace>: New field.
365 (create_sals_line_offset, convert_explicit_location_to_sals)
366 (parse_linespec): Pass the search program space down.
367 (linespec_state_constructor): Add 'search_pspace' parameter.
369 (linespec_parser_new): Add 'search_pspace' parameter and pass it
371 (linespec_lex_to_end): Adjust.
372 (decode_line_full, decode_line_1): Add 'search_pspace' parameter
374 (decode_line_with_last_displayed): Adjust.
375 (collect_symtabs_from_filename, symtabs_from_filename): New
376 'search_pspace' parameter. Use it.
377 (find_function_symbols): Pass the search program space down.
378 * linespec.h (decode_line_1, decode_line_full): Add
379 'search_pspace' parameter.
380 * probe.c (parse_probes_in_pspace): New function, factored out
382 (parse_probes): ... this. Add 'search_pspace' parameter and use
384 * probe.h (parse_probes): Add pspace' parameter.
385 * python/python.c (gdbpy_decode_line): Adjust.
386 * tracepoint.c (scope_info): Adjust.
388 2016-01-18 Maciej W. Rozycki <macro@imgtec.com>
390 * mips-tdep.c (mips_insn_size): Remove 48-bit microMIPS
392 (micromips_next_pc): Likewise.
393 (micromips_scan_prologue): Likewise.
394 (micromips_deal_with_atomic_sequence): Likewise.
395 (micromips_stack_frame_destroyed_p): Likewise.
396 (mips_breakpoint_from_pc): Likewise.
398 2016-01-18 Maciej W. Rozycki <macro@imgtec.com>
400 * mips-tdep.c (micromips_insn_at_pc_has_delay_slot): Pass
401 unshifted 16-bit microMIPS instruction word to `mips_insn_size'.
403 2016-01-18 Pedro Alves <palves@redhat.com>
405 * NEWS: Mention that GDB now displays the ID and name of the
406 thread that hit a breakpoint or received a signal.
407 * break-catch-sig.c (signal_catchpoint_print_it): Use
408 maybe_print_thread_hit_breakpoint.
409 * break-catch-syscall.c (print_it_catch_syscall): Likewise.
410 * break-catch-throw.c (print_it_exception_catchpoint): Likewise.
411 * breakpoint.c (maybe_print_thread_hit_breakpoint): New function.
412 (print_it_catch_fork, print_it_catch_vfork, print_it_catch_solib)
413 (print_it_catch_exec, print_it_ranged_breakpoint)
414 (print_it_watchpoint, print_it_masked_watchpoint, bkpt_print_it):
415 Use maybe_print_thread_hit_breakpoint.
416 * breakpoint.h (maybe_print_thread_hit_breakpoint): Declare.
417 * gdbthread.h (show_thread_that_caused_stop): Declare.
418 * infrun.c (print_signal_received_reason): Print which thread
420 * thread.c (show_thread_that_caused_stop): New function.
422 2016-01-18 Gary Benson <gbenson@redhat.com>
424 * nat/linux-namespaces.c (do_fork): New function.
425 (linux_mntns_get_helper): Use the above.
427 2016-01-17 Jonas Hahnfeld <Hahnfeld@itc.rwth-aachen.de> (tiny change)
429 Pushed by Joel Brobecker <brobecker@adacore.com>.
431 * dwarf2read.c (read_partial_die): Do not call set_objfile_main_name
432 if the function has no name.
434 2016-01-15 Sandra Loosemore <sandra@codesourcery.com>
436 * charset.c [PHONY_ICONV] (GDB_DEFAULT_HOST_CHARSET):
437 Conditionalize for Windows host.
438 (GDB_DEFAULT_TARGET_CHARSET): Match GDB_DEFAULT_HOST_CHARSET.
439 (GDB_DEFAULT_TARGET_WIDE_CHARSET): Use UTF-32.
440 (phony_iconv_open): Handle both UTF-32 endiannesses.
441 (phony_iconv): Likewise. Check for output overflow and clean up
442 out-of-input cases. Correct adjustment to input buffer pointer.
443 (set_be_le_names) [PHONY_ICONV]: Use hard-wired names to match
446 2016-01-15 Pedro Alves <palves@redhat.com>
448 * NEWS: Mention star wildcard ranges.
449 * cli/cli-utils.c (get_number_or_range): Check state->in_range first.
450 (number_range_setup_range): New function.
451 * cli/cli-utils.h (number_range_setup_range): New declaration.
452 * thread.c (thread_apply_command): Support star TID ranges.
453 * tid-parse.c (tid_range_parser_finished)
454 (tid_range_parser_string, tid_range_parser_skip)
455 (get_tid_or_range, get_tid_or_range): Handle
456 TID_RANGE_STATE_STAR_RANGE.
457 (tid_range_parser_star_range): New function.
458 * tid-parse.h (enum tid_range_state) <TID_RANGE_STATE_STAR_RANGE>:
460 (tid_range_parser_star_range): New declaration.
462 2016-01-15 Pedro Alves <palves@redhat.com>
464 * thread.c (thread_apply_command): Use the tid range parser to
465 advance past the thread ID list.
466 * tid-parse.c (get_positive_number_trailer): New function.
467 (parse_thread_id): Use it.
468 (get_tid_or_range): Use it. Return 0 instead of throwing invalid
470 (get_tid_or_range): Detect negative values. Return 0 instead of
471 throwing invalid thread ID error.
473 2016-01-14 Yao Qi <yao.qi@linaro.org>
475 * arm-linux-tdep.c (arm_linux_get_next_pcs_syscall_next_pc):
477 (arm_linux_get_next_pcs_ops): Install
478 arm_linux_get_next_pcs_syscall_next_pc.
479 (arm_linux_syscall_next_pc): Change to ...
480 (arm_linux_get_next_pcs_syscall_next_pc): ... it.
481 (arm_linux_init_abi): Don't set tdep->syscall_next_pc.
482 * arm-tdep.c (arm_get_next_pcs_syscall_next_pc): Declare.
483 (arm_get_next_pcs_syscall_next_pc): Make it static. Don't
484 call tdep->syscall_next_pc.
485 * arm-tdep.h (struct gdbarch_tdep) <syscall_next_pc>: Remove.
486 (arm_get_next_pcs_syscall_next_pc): Remove.
488 2016-01-14 Yao Qi <yao.qi@linaro.org>
490 * remote.c (remote_set_syscall_catchpoint): Cast to char *.
491 * thread.c (do_captured_thread_select): Cast to const char *.
493 2016-01-14 Yao Qi <yao.qi@linaro.org>
495 * arch/arm-get-next-pcs.c (arm_get_next_pcs_ctor): Change
496 argument arm_thumb2_breakpoint to has_thumb2_breakpoint.
497 (thumb_get_next_pcs_raw): Check has_thumb2_breakpoint
499 * arch/arm-get-next-pcs.h (struct arm_get_next_pcs)
500 <arm_thumb2_breakpoint>: Remove.
501 <has_thumb2_breakpoint>: New field.
502 (arm_get_next_pcs_ctor): Update declaration.
503 * arm-linux-tdep.c (arm_linux_software_single_step): Pass
504 1 to arm_get_next_pcs_ctor.
505 * arm-tdep.c (arm_software_single_step): Pass 0 to
506 arm_get_next_pcs_ctor.
508 2016-01-13 Ulrich Weigand <uweigand@de.ibm.com>
510 * MAINTAINERS: Add Andreas Arnez as s390 target maintainer.
512 2016-01-13 Yao Qi <yao.qi@linaro.org>
514 * arch/arm-get-next-pcs.c (arm_get_next_pcs_raw): Use
515 byte_order_for_code to read instruction.
517 2016-01-13 Pedro Alves <palves@redhat.com>
519 * NEWS: Mention $_gthread.
520 * gdbthread.h (struct thread_info) <global_num>: Mention
522 * thread.c (thread_num_make_value_helper): New function.
523 (thread_id_make_value): Delete.
524 (thread_id_per_inf_num_make_value, global_thread_id_make_value):
526 (thread_funcs): Adjust.
527 (gthread_funcs): New.
528 (_initialize_thread): Register $_gthread variable.
530 2016-01-13 Pedro Alves <palves@redhat.com>
532 * NEWS: Mention "info threads -gid".
533 * gdbthread.h (struct thread_info) <global_num>: Mention "info
535 * thread.c (info_threads_command): Handle "-gid".
536 (_initialize_thread): Adjust "info threads" help string to mention
539 2016-01-13 Pedro Alves <palves@redhat.com>
541 * NEWS: Mention InferiorThread.global_num.
542 * python/py-infthread.c (thpy_get_global_num): New function.
543 (thread_object_getset): Register "global_num".
545 2016-01-13 Pedro Alves <palves@redhat.com>
547 * NEWS: Mention that thread IDs are now per inferior and global
549 * Makefile.in (SFILES): Add tid-parse.c.
550 (COMMON_OBS): Add tid-parse.o.
551 (HFILES_NO_SRCDIR): Add tid-parse.h.
552 * ada-tasks.c: Adjust to use ptid_to_global_thread_id.
553 * breakpoint.c (insert_breakpoint_locations)
554 (remove_threaded_breakpoints, bpstat_check_breakpoint_conditions)
555 (print_one_breakpoint_location, set_longjmp_breakpoint)
556 (check_longjmp_breakpoint_for_call_dummy)
557 (set_momentary_breakpoint): Adjust to use global IDs.
558 (find_condition_and_thread, watch_command_1): Use parse_thread_id.
559 (until_break_command, longjmp_bkpt_dtor)
560 (breakpoint_re_set_thread, insert_single_step_breakpoint): Adjust
562 * dummy-frame.c (pop_dummy_frame_bpt): Adjust to use
563 ptid_to_global_thread_id.
564 * elfread.c (elf_gnu_ifunc_resolver_stop): Likewise.
565 * gdbthread.h (struct thread_info): Rename field 'num' to
566 'global_num. Add new fields 'per_inf_num' and 'inf'.
567 (thread_id_to_pid): Rename thread_id_to_pid to
568 global_thread_id_to_ptid.
569 (pid_to_thread_id): Rename to ...
570 (ptid_to_global_thread_id): ... this.
571 (valid_thread_id): Rename to ...
572 (valid_global_thread_id): ... this.
573 (find_thread_id): Rename to ...
574 (find_thread_global_id): ... this.
575 (ALL_THREADS, ALL_THREADS_BY_INFERIOR): Declare.
576 (print_thread_info): Add comment.
577 * tid-parse.h: New file.
578 * tid-parse.c: New file.
579 * infcmd.c (step_command_fsm_prepare)
580 (step_command_fsm_should_stop): Adjust to use the global thread
582 (until_next_command, until_next_command)
583 (finish_command_fsm_should_stop): Adjust to use the global thread
585 (attach_post_wait): Adjust to check the inferior number too.
586 * inferior.h (struct inferior) <highest_thread_num>: New field.
587 * infrun.c (handle_signal_stop)
588 (insert_exception_resume_breakpoint)
589 (insert_exception_resume_from_probe): Adjust to use the global
591 * record-btrace.c (record_btrace_open): Use global thread IDs.
592 * remote.c (process_initial_stop_replies): Also consider the
594 * target.c (target_pre_inferior): Clear the inferior's highest
596 * thread.c (clear_thread_inferior_resources): Adjust to use the
598 (new_thread): New inferior parameter. Adjust to use it. Set both
599 the thread's global ID and the thread's per-inferior ID.
600 (add_thread_silent): Adjust.
601 (find_thread_global_id): New.
602 (find_thread_id): Make static. Adjust to rename.
603 (valid_thread_id): Rename to ...
604 (valid_global_thread_id): ... this.
605 (pid_to_thread_id): Rename to ...
606 (ptid_to_global_thread_id): ... this.
607 (thread_id_to_pid): Rename to ...
608 (global_thread_id_to_ptid): ... this. Adjust.
609 (first_thread_of_process): Adjust.
610 (do_captured_list_thread_ids): Adjust to use global thread IDs.
611 (should_print_thread): New function.
612 (print_thread_info): Rename to ...
613 (print_thread_info_1): ... this, and add new show_global_ids
614 parameter. Handle it. Iterate over inferiors.
615 (print_thread_info): Reimplement as wrapper around
617 (show_inferior_qualified_tids): New function.
618 (print_thread_id): Use it.
619 (tp_array_compar): Compare inferior numbers too.
620 (thread_apply_command): Use tid_range_parser.
621 (do_captured_thread_select): Use parse_thread_id.
622 (thread_id_make_value): Adjust.
623 (_initialize_thread): Adjust "info threads" help string.
624 * varobj.c (struct varobj_root): Update comment.
625 (varobj_create): Adjust to use global thread IDs.
626 (value_of_root_1): Adjust to use global_thread_id_to_ptid.
627 * windows-tdep.c (display_tib): No longer accept an argument.
628 * cli/cli-utils.c (get_number_trailer): Make extern.
629 * cli/cli-utils.h (get_number_trailer): Declare.
630 (get_number_const): Adjust documentation.
631 * mi/mi-cmd-var.c (mi_cmd_var_update_iter): Adjust to use global
633 * mi/mi-interp.c (mi_new_thread, mi_thread_exit)
634 (mi_on_normal_stop, mi_output_running_pid, mi_on_resume):
635 * mi/mi-main.c (mi_execute_command, mi_cmd_execute): Likewise.
636 * guile/scm-breakpoint.c (gdbscm_set_breakpoint_thread_x):
638 * python/py-breakpoint.c (bppy_set_thread): Likewise.
639 * python/py-finishbreakpoint.c (bpfinishpy_init): Likewise.
640 * python/py-infthread.c (thpy_get_num): Add comment and return the
641 per-inferior thread ID.
642 (thread_object_getset): Update comment of "num".
644 2016-01-13 Pedro Alves <palves@redhat.com>
646 * breakpoint.c (remove_threaded_breakpoints)
647 (print_one_breakpoint_location): Use print_thread_id.
648 * btrace.c (btrace_enable, btrace_disable, btrace_teardown)
649 (btrace_fetch, btrace_clear): Use print_thread_id.
650 * common/print-utils.c (CELLSIZE): Delete.
651 (get_cell): Rename to ...
652 (get_print_cell): ... this and made extern. Adjust call callers.
653 Adjust to use PRINT_CELL_SIZE.
654 * common/print-utils.h (get_print_cell): Declare.
655 (PRINT_CELL_SIZE): New.
656 * gdbthread.h (print_thread_id): Declare.
657 * infcmd.c (signal_command): Use print_thread_id.
658 * inferior.c (print_inferior): Use print_thread_id.
659 * infrun.c (handle_signal_stop)
660 (insert_exception_resume_breakpoint)
661 (insert_exception_resume_from_probe)
662 (print_signal_received_reason): Use print_thread_id.
663 * record-btrace.c (record_btrace_info)
664 (record_btrace_resume_thread, record_btrace_cancel_resume)
665 (record_btrace_step_thread, record_btrace_wait): Use
667 * thread.c (thread_apply_all_command): Use print_thread_id.
668 (print_thread_id): New function.
669 (thread_apply_command): Use print_thread_id.
670 (thread_command, thread_find_command, do_captured_thread_select):
673 2016-01-13 Pedro Alves <palves@redhat.com>
675 * NEWS: Mention InferiorThread.inferior.
676 * python/py-infthread.c (thpy_get_inferior): New.
677 (thread_object_getset): Register "inferior".
679 2016-01-13 Pedro Alves <palves@redhat.com>
681 * NEWS: Mention $_inferior.
682 * inferior.c (inferior_id_make_value): New.
683 (inferior_funcs): New.
684 (_initialize_inferior): Create $_inferior variable.
686 2016-01-13 Pedro Alves <palves@redhat.com>
689 * frame.c (get_current_frame): Use validate_registers_access.
690 * gdbthread.h (validate_registers_access): Declare.
691 * infrun.c (validate_siginfo_access): Delete.
692 (siginfo_value_read, siginfo_value_write): Use
693 validate_registers_access.
694 * thread.c (validate_registers_access): New function.
696 2016-01-12 Josh Stone <jistone@redhat.com>
697 Philippe Waroquiers <philippe.waroquiers@skynet.be>
699 * NEWS (Changes since GDB 7.10): Mention QCatchSyscalls and the
700 syscall_entry and syscall_return stop reasons. Mention GDB
701 support for remote catch syscall.
702 * remote.c (PACKET_QCatchSyscalls): New enum.
703 (remote_set_syscall_catchpoint): New function.
704 (remote_protocol_features): New element for QCatchSyscalls.
705 (remote_parse_stop_reply): Parse syscall_entry/return stops.
706 (init_remote_ops): Install remote_set_syscall_catchpoint.
707 (_initialize_remote): Config QCatchSyscalls.
708 * linux-nat.h (struct lwp_info) <syscall_state>: Comment typo.
710 2016-01-12 Yao Qi <yao.qi@linaro.org>
712 * nat/linux-ptrace.c (linux_child_function): Cast child_stack
713 to gdb_byte * and pass to linux_fork_to_function.
715 2016-01-12 Yao Qi <yao.qi@linaro.org>
717 * nat/linux-ptrace.c (linux_fork_to_function): Change type
718 of argument 'function'.
719 (linux_grandchild_function): Change return type to 'int'.
720 Change child_stack's type to 'void *'.
721 (linux_child_function): Likewise.
723 2016-01-12 Pedro Alves <palves@redhat.com>
725 Remove use of the registered trademark symbol throughout.
727 2016-01-12 Thomas Schwinge <thomas@codesourcery.com>
729 * reply_mig_hack.awk: Rewrite one regular expression.
731 2016-01-11 Mike Frysinger <vapier@gentoo.org>
733 * acinclude.m4: Include new warning.m4 file.
734 * configure: Regenerated.
735 * configure.ac: Move all warning logic ...
736 * warning.m4: ... here.
738 2016-01-08 Yao Qi <yao.qi@linaro.org>
740 * extension.c: Include target.h.
741 (set_active_ext_lang): Only call install_gdb_sigint_handler,
742 check_quit_flag, and set_quit_flag if target_terminal_is_ours
744 (restore_active_ext_lang): Likewise.
745 * target.c (target_terminal_is_ours): New function.
746 * target.h (target_terminal_is_ours): Declare.
748 2016-01-07 Maciej W. Rozycki <macro@imgtec.com>
750 * mips-tdep.c (mips_breakpoint_from_pc): Rename local `status'
751 to `err' in the little-endian leg.
753 2016-01-06 Yao Qi <yao.qi@linaro.org>
755 * arch/arm-get-next-pcs.c (arm_get_next_pcs): Move it to some
757 (thumb_get_next_pcs_raw): Make it static.
758 (arm_get_next_pcs_raw): Likewise.
759 * arch/arm-get-next-pcs.h (thumb_get_next_pcs_raw): Remove the
761 (arm_get_next_pcs_raw): Likewise.
763 2016-01-05 Mike Frysinger <vapier@gentoo.org>
765 * version.in: Change cvs to git.
767 2016-01-05 Mike Frysinger <vapier@gentoo.org>
769 * configure.tgt (score-*-*): Delete gdb_sim assignment.
771 2016-01-05 Pedro Alves <palves@redhat.com>
774 * configure.ac: Define WITH_PPC_SIM when linking in the sim and
775 the target is powerpc*.
776 * rs6000-tdep.c (init_sim_regno_table): Check WITH_PPC_SIM instead
778 * configure: Regenerate.
779 * config.in: Regenerate.
781 2016-01-04 Markus Metzger <markus.t.metzger@intel.com>
783 * btrace.c (btrace_pt_readmem_callback): Do not return in TRY/CATCH.
785 2016-01-02 Mike Frysinger <vapier@gentoo.org>
787 * configure.tgt (powerpc*-*-*): Delete test call and
788 always assign gdb_sim.
790 2016-01-01 Joel Brobecker <brobecker@adacore.com>
792 Update year range in copyright notice of all files.
794 2016-01-01 Joel Brobecker <brobecker@adacore.com>
796 * top.c (print_gdb_version): Change copyright year in version
799 2016-01-01 Joel Brobecker <brobecker@adacore.com>
801 * config/djgpp/fnchange.lst: Add entry for gdb/ChangeLog-2015.
803 For older changes see ChangeLog-2015.
809 version-control: never