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