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