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