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