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