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