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