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