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