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