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