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