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