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