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