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