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