Use linux_get_siginfo_type_with_fields for x86
[deliverable/binutils-gdb.git] / gdb / ChangeLog
CommitLineData
190b495d
WT
12016-02-02 Walfred Tedeschi <walfred.tedeschi@intel.com>
2
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
6 function.
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
10 function.
11 (i386_linux_init_abi): Add new function at the i386 ABI
12 initialization.
13
14
43564574
WT
152016-02-02 Walfred Tedeschi <walfred.tedeschi@intel.com>
16
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.
21
93813b37
WT
222016-02-02 Walfred Tedeschi <walfred.tedeschi@intel.com>
23
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.
36
5fdf6324
AB
372016-02-01 Andrew Burgess <andrew.burgess@embecosm.com>
38
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.
48
5fa13070
SM
492016-01-31 Simon Marchi <simon.marchi@polymtl.ca>
50
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.
55
a2e3e93f
SM
562016-01-29 Simon Marchi <simon.marchi@ericsson.com>
57
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.
61
56e374a6
SM
622016-01-28 Simon Marchi <simon.marchi@ericsson.com>
63
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.
68
8424cc97
SM
692016-01-28 Simon Marchi <simon.marchi@ericsson.com>
70
71 * remote.c (skip_to_semicolon): Remove.
72 (remote_parse_stop_reply): Use strchrnul instead of
73 skip_to_semicolon.
74 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add
75 strchrnul.
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.
89
4a6a1ed4
YQ
902016-01-28 Yao Qi <yao.qi@linaro.org>
91
92 * breakpoint.c (build_target_command_list): Don't call continue
93 if aexpr is NULL.
94 (build_target_condition_list): Likewise.
95
94715c17
KB
962016-01-27 Kevin Buettner <kevinb@redhat.com>
97
98 * rx-tdep.c (rx_push_dummy_call): Treat scalars larger than 8
99 bytes as aggregates.
100
c07af0ab
JB
1012016-01-27 Joel Brobecker <brobecker@adacore.com>
102
103 * MAINTAINERS (Responsible Maintainers): Add Keith Seitz as
104 Linespec Maintainers.
105
41548caa
SM
1062016-01-26 Simon Marchi <simon.marchi@ericsson.com>
107
108 * common/common-utils.c (skip_spaces): Fix comment.
109 (skip_to_space_const): Likewise.
110
4d18591b
YQ
1112016-01-25 Yao Qi <yao.qi@linaro.org>
112
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.
120
a579cd9a
MW
1212016-01-25 Mark Wielaard <mjw@redhat.com>
122
123 * ada-lang.c (ada_evaluate_subexp): Add proper else block.
124 * c-typeprint.c (c_type_print_base): Fix misleading indentation of
125 if statement.
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.
131
a2077e25
PA
1322016-01-25 Pedro Alves <palves@redhat.com>
133
134 PR threads/19461
135 * infrun.c (handle_inferior_event_1) <fork/vfork>: Update
136 parent/child running states.
137
1d2736d4
PA
1382016-01-25 Pedro Alves <palves@redhat.com>
139
140 PR gdb/19494
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.
147
b2bae2f7
JB
1482016-01-22 John Baldwin <jhb@FreeBSD.org>
149
150 * fbsd-nat.c (fbsd_pid_to_str): Adjust string format.
151
d86feca3
YQ
1522016-01-22 Yao Qi <yao.qi@linaro.org>
153
154 * arm-linux-nat.c (fetch_fpregs): Call perror_with_name
155 instead of warning.
156 (store_fpregs, fetch_regs, store_regs): Likewise.
157 (fetch_wmmx_regs, store_wmmx_regs): Likewise.
158 (fetch_vfp_regs, store_vfp_regs): Likewise.
159
b35a8b2f
DE
1602016-01-21 Doug Evans <dje@google.com>
161
162 * breakpoint.c (init_breakpoint_sal): Add comment.
163
f906b857
MK
1642016-01-21 Marcin Kościelnicki <koriakin@0x04.net>
165
166 * ax-gdb.c (gen_traced_pop): Use gen_fetch for string collection.
167
4a099de2
AB
1682016-01-21 Andrew Burgess <andrew.burgess@embecosm.com>
169
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.
173
a994041d
PA
1742016-01-21 Pedro Alves <palves@redhat.com>
175
176 * Makefile.in (COMPILER_CFLAGS): New.
177 (CXXFLAGS): Get it from configure.
178 (INTERNAL_CFLAGS_BASE, INTERNAL_LDFLAGS): Use COMPILER_CFLAGS
179 instead of CFLAGS.
180 * build-with-cxx.m4 (GDB_AC_BUILD_WITH_CXX): Set and AC_SUBST
181 COMPILER_CFLAGS.
182 * configure: Regenerate.
183
305e13e6
JB
1842016-01-21 Joel Brobecker <brobecker@adacore.com>
185
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.
204
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.
208
f7a6a40d
YQ
2092016-01-21 Yao Qi <yao.qi@linaro.org>
210
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.
215
5f5dfff6
SM
2162016-01-20 Simon Marchi <simon.marchi@polymtl.ca>
217
218 * python/lib/gdb/printing.py (FlagEnumerationPrinter.__call__):
219 Fix enumerators sort key function.
220
be56871e
JB
2212016-01-20 Joel Brobecker <brobecker@adacore.com>
222
b12e5614 223 * printcmd.c (print_scalar_formatted): Move binary operator from
be56871e
JB
224 end of line to beginning of next line. Adjust formatting
225 accordingly.
226
f2feec98
JB
2272016-01-19 John Baldwin <jhb@FreeBSD.org>
228
229 * fbsd-nat.c (fbsd_pid_to_exec_file): Use new "buflen" instead of
230 "len" with sysctl.
231
20a0aab3
JB
2322016-01-19 John Baldwin <jhb@FreeBSD.org>
233
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.
244
6e9567fe
JB
2452016-01-19 John Baldwin <jhb@FreeBSD.org>
246
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
264 first stop.
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
271 "fbsd_thread_alive".
272 Set "to_pid_to_str" to "fbsd_pid_to_str".
273 [HAVE_STRUCT_PTRACE_LWPINFO_PL_TDNAME]: Set "to_thread_name" to
274 "fbsd_thread_name".
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.
281
94309df7
JB
2822016-01-19 John Baldwin <jhb@FreeBSD.org>
283
284 * amd64bsd-nat.c (amd64bsd_fetch_inferior_registers): Use
285 get_ptrace_pid.
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.
297
79117428
JB
2982016-01-19 John Baldwin <jhb@FreeBSD.org>
299
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.
304
4dfc5dbc
JB
3052016-01-19 John Baldwin <jhb@FreeBSD.org>
306
307 * corelow.c (core_thread_name): New function.
308 (init_core_ops): Use "core_thread_name" for the "to_thread_name"
309 target op.
310 * gdbarch.sh (core_thread_name): New gdbarch callback.
311 * gdbarch.h: Re-generate.
312 * gdbarch.c: Re-generate.
313
10e3ed90
SM
3142016-01-19 Simon Marchi <simon.marchi@polymtl.ca>
315
316 * python/lib/gdb/printing.py (_EnumInstance.to_string): Explicitly
317 convert gdb.Value to integer type using int().
318
a6e69c1f
JB
3192016-01-19 John Baldwin <jhb@FreeBSD.org>
320
321 * configure.ac: Include <sys/types.h when checking for "r_fs" in
322 "struct reg".
323 * configure: Regenerate.
324
37e42b4f
PA
3252016-01-19 Pedro Alves <palves@redhat.com>
326
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
330 location updating.
331 * breakpoint.c (parse_breakpoint_sals): Adjust calls to
332 decode_line_full.
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
337 parse_probes.
338 (tracepoint_decode_location, tracepoint_probe_decode_location)
339 (strace_marker_decode_location): Add 'search_pspace' parameter.
340 Pass it along.
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
353 it along.
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
361 decode_line_1.
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.
368 Store it.
369 (linespec_parser_new): Add 'search_pspace' parameter and pass it
370 along.
371 (linespec_lex_to_end): Adjust.
372 (decode_line_full, decode_line_1): Add 'search_pspace' parameter
373 and pass it along.
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
381 from ...
382 (parse_probes): ... this. Add 'search_pspace' parameter and use
383 it.
384 * probe.h (parse_probes): Add pspace' parameter.
385 * python/python.c (gdbpy_decode_line): Adjust.
386 * tracepoint.c (scope_info): Adjust.
387
100b4f2e
MR
3882016-01-18 Maciej W. Rozycki <macro@imgtec.com>
389
390 * mips-tdep.c (mips_insn_size): Remove 48-bit microMIPS
391 instruction support.
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.
397
3f7f3650
MR
3982016-01-18 Maciej W. Rozycki <macro@imgtec.com>
399
400 * mips-tdep.c (micromips_insn_at_pc_has_delay_slot): Pass
401 unshifted 16-bit microMIPS instruction word to `mips_insn_size'.
402
f303dbd6
PA
4032016-01-18 Pedro Alves <palves@redhat.com>
404
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
419 received signal.
420 * thread.c (show_thread_that_caused_stop): New function.
421
eb0edac8
GB
4222016-01-18 Gary Benson <gbenson@redhat.com>
423
424 * nat/linux-namespaces.c (do_fork): New function.
425 (linux_mntns_get_helper): Use the above.
426
dc365182
JH
4272016-01-17 Jonas Hahnfeld <Hahnfeld@itc.rwth-aachen.de> (tiny change)
428
429 Pushed by Joel Brobecker <brobecker@adacore.com>.
430 PR gdb/19208
431 * dwarf2read.c (read_partial_die): Do not call set_objfile_main_name
432 if the function has no name.
433
f74f61cb
SL
4342016-01-15 Sandra Loosemore <sandra@codesourcery.com>
435
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
444 phony_iconv_open.
445
71ef29a8
PA
4462016-01-15 Pedro Alves <palves@redhat.com>
447
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>:
459 New value.
460 (tid_range_parser_star_range): New declaration.
461
3f5b7598
PA
4622016-01-15 Pedro Alves <palves@redhat.com>
463
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
469 thread ID error.
470 (get_tid_or_range): Detect negative values. Return 0 instead of
471 throwing invalid thread ID error.
472
e7cf25a8
YQ
4732016-01-14 Yao Qi <yao.qi@linaro.org>
474
475 * arm-linux-tdep.c (arm_linux_get_next_pcs_syscall_next_pc):
476 Declare.
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.
487
c0518081
YQ
4882016-01-14 Yao Qi <yao.qi@linaro.org>
489
490 * remote.c (remote_set_syscall_catchpoint): Cast to char *.
491 * thread.c (do_captured_thread_select): Cast to const char *.
492
1b451dda
YQ
4932016-01-14 Yao Qi <yao.qi@linaro.org>
494
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
498 instead.
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.
507
bc06e0b1
UW
5082016-01-13 Ulrich Weigand <uweigand@de.ibm.com>
509
510 * MAINTAINERS: Add Andreas Arnez as s390 target maintainer.
511
4e7b8bea
YQ
5122016-01-13 Yao Qi <yao.qi@linaro.org>
513
514 * arch/arm-get-next-pcs.c (arm_get_next_pcs_raw): Use
515 byte_order_for_code to read instruction.
516
663f6d42
PA
5172016-01-13 Pedro Alves <palves@redhat.com>
518
519 * NEWS: Mention $_gthread.
520 * gdbthread.h (struct thread_info) <global_num>: Mention
521 $_gthread.
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):
525 New.
526 (thread_funcs): Adjust.
527 (gthread_funcs): New.
528 (_initialize_thread): Register $_gthread variable.
529
c84f6bbf
PA
5302016-01-13 Pedro Alves <palves@redhat.com>
531
532 * NEWS: Mention "info threads -gid".
533 * gdbthread.h (struct thread_info) <global_num>: Mention "info
534 threads -gid".
535 * thread.c (info_threads_command): Handle "-gid".
536 (_initialize_thread): Adjust "info threads" help string to mention
537 -gid.
538
22a02324
PA
5392016-01-13 Pedro Alves <palves@redhat.com>
540
541 * NEWS: Mention InferiorThread.global_num.
542 * python/py-infthread.c (thpy_get_global_num): New function.
543 (thread_object_getset): Register "global_num".
544
5d5658a1
PA
5452016-01-13 Pedro Alves <palves@redhat.com>
546
547 * NEWS: Mention that thread IDs are now per inferior and global
548 thread IDs.
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
561 to use global IDs.
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
581 ID.
582 (until_next_command, until_next_command)
583 (finish_command_fsm_should_stop): Adjust to use the global thread
584 ID.
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
590 thread ID.
591 * record-btrace.c (record_btrace_open): Use global thread IDs.
592 * remote.c (process_initial_stop_replies): Also consider the
593 inferior number.
594 * target.c (target_pre_inferior): Clear the inferior's highest
595 thread num.
596 * thread.c (clear_thread_inferior_resources): Adjust to use the
597 global thread ID.
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
616 print_thread_info_1.
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
632 thread IDs.
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):
637 Likewise.
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".
643
43792cf0
PA
6442016-01-13 Pedro Alves <palves@redhat.com>
645
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
666 print_thread_id.
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):
671 Use print_thread_id.
672
84654457
PA
6732016-01-13 Pedro Alves <palves@redhat.com>
674
675 * NEWS: Mention InferiorThread.inferior.
676 * python/py-infthread.c (thpy_get_inferior): New.
677 (thread_object_getset): Register "inferior".
678
e3940304
PA
6792016-01-13 Pedro Alves <palves@redhat.com>
680
681 * NEWS: Mention $_inferior.
682 * inferior.c (inferior_id_make_value): New.
683 (inferior_funcs): New.
684 (_initialize_inferior): Create $_inferior variable.
685
a911d87a
PA
6862016-01-13 Pedro Alves <palves@redhat.com>
687
688 PR breakpoints/19388
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.
695
82075af2
JS
6962016-01-12 Josh Stone <jistone@redhat.com>
697 Philippe Waroquiers <philippe.waroquiers@skynet.be>
698
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.
709
d18547d8
YQ
7102016-01-12 Yao Qi <yao.qi@linaro.org>
711
712 * nat/linux-ptrace.c (linux_child_function): Cast child_stack
713 to gdb_byte * and pass to linux_fork_to_function.
714
ba4dd7c4
YQ
7152016-01-12 Yao Qi <yao.qi@linaro.org>
716
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.
722
bc504a31
PA
7232016-01-12 Pedro Alves <palves@redhat.com>
724
725 Remove use of the registered trademark symbol throughout.
726
5eddd578
TS
7272016-01-12 Thomas Schwinge <thomas@codesourcery.com>
728
729 * reply_mig_hack.awk: Rewrite one regular expression.
730
b835bb52
MF
7312016-01-11 Mike Frysinger <vapier@gentoo.org>
732
733 * acinclude.m4: Include new warning.m4 file.
734 * configure: Regenerated.
735 * configure.ac: Move all warning logic ...
736 * warning.m4: ... here.
737
2f99e8fc
YQ
7382016-01-08 Yao Qi <yao.qi@linaro.org>
739
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
743 returns false.
744 (restore_active_ext_lang): Likewise.
745 * target.c (target_terminal_is_ours): New function.
746 * target.h (target_terminal_is_ours): Declare.
747
5dd05630
MR
7482016-01-07 Maciej W. Rozycki <macro@imgtec.com>
749
750 * mips-tdep.c (mips_breakpoint_from_pc): Rename local `status'
751 to `err' in the little-endian leg.
752
f5aa3069
YQ
7532016-01-06 Yao Qi <yao.qi@linaro.org>
754
755 * arch/arm-get-next-pcs.c (arm_get_next_pcs): Move it to some
756 lines below.
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
760 declaration.
761 (arm_get_next_pcs_raw): Likewise.
762
bf69ad5a
MF
7632016-01-05 Mike Frysinger <vapier@gentoo.org>
764
765 * version.in: Change cvs to git.
766
66750332
MF
7672016-01-05 Mike Frysinger <vapier@gentoo.org>
768
769 * configure.tgt (score-*-*): Delete gdb_sim assignment.
770
976102cd
PA
7712016-01-05 Pedro Alves <palves@redhat.com>
772
773 PR sim/13418
774 * configure.ac: Define WITH_PPC_SIM when linking in the sim and
775 the target is powerpc*.
fa89c126
PA
776 * rs6000-tdep.c (init_sim_regno_table): Check WITH_PPC_SIM instead
777 of WITH_SIM.
976102cd
PA
778 * configure: Regenerate.
779 * config.in: Regenerate.
780
43368e1d
MM
7812016-01-04 Markus Metzger <markus.t.metzger@intel.com>
782
783 * btrace.c (btrace_pt_readmem_callback): Do not return in TRY/CATCH.
784
32273fe6
MF
7852016-01-02 Mike Frysinger <vapier@gentoo.org>
786
787 * configure.tgt (powerpc*-*-*): Delete test call and
788 always assign gdb_sim.
789
618f726f
JB
7902016-01-01 Joel Brobecker <brobecker@adacore.com>
791
792 Update year range in copyright notice of all files.
793
edd88788
JB
7942016-01-01 Joel Brobecker <brobecker@adacore.com>
795
796 * top.c (print_gdb_version): Change copyright year in version
797 message.
798
0f7b3ef4 7992016-01-01 Joel Brobecker <brobecker@adacore.com>
aec47d1d 800
0f7b3ef4 801 * config/djgpp/fnchange.lst: Add entry for gdb/ChangeLog-2015.
aec47d1d 802
0f7b3ef4 803For older changes see ChangeLog-2015.
c906108c
SS
804\f
805Local Variables:
806mode: change-log
807left-margin: 8
808fill-column: 74
809version-control: never
57da7796 810coding: utf-8
c906108c 811End:
This page took 1.853972 seconds and 4 git commands to generate.