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