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