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