Commit | Line | Data |
---|---|---|
305e13e6 JB |
1 | 2016-01-21 Joel Brobecker <brobecker@adacore.com> |
2 | ||
3 | * location.h (new_address_location): Add new parameters | |
4 | "addr_string" and "addr_string_len". | |
5 | (get_address_string_location): Add declaration. | |
6 | * location.c (new_address_location): Add new parameters | |
7 | "addr_string" and "addr_string_len". If not NULL, store | |
8 | a copy of the addr_string in the new location as well. | |
9 | (get_address_string_location): New function. | |
10 | (string_to_event_location): Update call to new_address_location. | |
11 | * linespec.c (event_location_to_sals) <ADDRESS_LOCATION>: | |
12 | Save the event location in the parser's state before | |
13 | passing it to convert_address_location_to_sals. | |
14 | * breakpoint.c (create_thread_event_breakpoint): Update call | |
15 | to new_address_location. | |
16 | (init_breakpoint_sal): Get the event location's string, if any, | |
17 | and use it to update call to new_address_location. | |
18 | * python/py-finishbreakpoint.c (bpfinishpy_init): | |
19 | Update call to new_address_location. | |
20 | * spu-tdep.c (spu_catch_start): Likewise. | |
21 | ||
22 | * config/djgpp/fnchange.lst: Add entries for | |
23 | gdb/testsuite/gdb.base/break-fun-addr1.c and | |
24 | gdb/testsuite/gdb.base/break-fun-addr2.c. | |
25 | ||
f7a6a40d YQ |
26 | 2016-01-21 Yao Qi <yao.qi@linaro.org> |
27 | ||
28 | * arm-linux-tdep.c (arm_linux_sigreturn_next_pc): Add parameter | |
29 | is_thumb and set it according to CPSR saved on the stack. | |
30 | (arm_linux_get_next_pcs_syscall_next_pc): Pass is_thumb to | |
31 | arm_linux_sigreturn_next_pc. | |
32 | ||
5f5dfff6 SM |
33 | 2016-01-20 Simon Marchi <simon.marchi@polymtl.ca> |
34 | ||
35 | * python/lib/gdb/printing.py (FlagEnumerationPrinter.__call__): | |
36 | Fix enumerators sort key function. | |
37 | ||
be56871e JB |
38 | 2016-01-20 Joel Brobecker <brobecker@adacore.com> |
39 | ||
b12e5614 | 40 | * printcmd.c (print_scalar_formatted): Move binary operator from |
be56871e JB |
41 | end of line to beginning of next line. Adjust formatting |
42 | accordingly. | |
43 | ||
f2feec98 JB |
44 | 2016-01-19 John Baldwin <jhb@FreeBSD.org> |
45 | ||
46 | * fbsd-nat.c (fbsd_pid_to_exec_file): Use new "buflen" instead of | |
47 | "len" with sysctl. | |
48 | ||
20a0aab3 JB |
49 | 2016-01-19 John Baldwin <jhb@FreeBSD.org> |
50 | ||
51 | * fbsd-tdep.c (find_stop_signal): Remove. | |
52 | (struct fbsd_collect_regset_section_cb) <lwp>: New field. | |
53 | <stop_signal>: New field. | |
54 | <abort_iteration>: New field. | |
55 | (fbsd_collect_regset_section_cb): Use new fields. | |
56 | (fbsd_collect_thread_registers): New function. | |
57 | (struct fbsd_corefile_thread_data): New structure. | |
58 | (fbsd_corefile_thread): New function. | |
59 | (fbsd_make_corefile_notes): Use new function to dump notes for each | |
60 | non-exited thread in a process. | |
61 | ||
6e9567fe JB |
62 | 2016-01-19 John Baldwin <jhb@FreeBSD.org> |
63 | ||
64 | * configure.ac: Check for support for LWP names on FreeBSD. | |
65 | * fbsd-nat.c [PT_LWPINFO] New variable debug_fbsd_lwp. | |
66 | [TDP_RFPPWAIT || HAVE_STRUCT_PTRACE_LWPINFO_PL_TDNAME] | |
67 | (fbsd_fetch_kinfo_proc): Move function earlier. | |
68 | [PT_LWPINFO] (fbsd_thread_alive): New function. | |
69 | [PT_LWPINFO] (fbsd_pid_to_str): New function. | |
70 | [HAVE_STRUCT_PTRACE_LWPINFO_PL_TDNAME] (fbsd_thread_name): New function. | |
71 | [PT_LWP_EVENTS] (fbsd_enable_lwp_events): New function. | |
72 | [PT_LWPINFO] (fbsd_add_threads): New function. | |
73 | [PT_LWPINFO] (fbsd_update_thread_list): New function. | |
74 | [PT_LWPINFO] New variable super_resume. | |
75 | [PT_LWPINFO] (resume_one_thread_cb): New function. | |
76 | [PT_LWPINFO] (resume_all_threads_cb): New function. | |
77 | [PT_LWPINFO] (fbsd_resume): New function. | |
78 | (fbsd_remember_child): Save full ptid instead of plain pid. | |
79 | (fbsd_is_child_pending): Return ptid of saved child process. | |
80 | (fbsd_wait): Include lwp in returned ptid and switch to LWP ptid on | |
81 | first stop. | |
82 | [PT_LWP_EVENTS] Handle LWP events. | |
83 | [TDP_RFPPWAIT] Include LWP in child ptid. | |
84 | (fbsd_post_startup_inferior) [PT_LWP_EVENTS]: Enable LWP events. | |
85 | (fbsd_post_attach) [PT_LWP_EVENTS]: Enable LWP events. | |
86 | Add threads for existing processes. | |
87 | (fbsd_nat_add_target) [PT_LWPINFO]: Set "to_thread_alive" to | |
88 | "fbsd_thread_alive". | |
89 | Set "to_pid_to_str" to "fbsd_pid_to_str". | |
90 | [HAVE_STRUCT_PTRACE_LWPINFO_PL_TDNAME]: Set "to_thread_name" to | |
91 | "fbsd_thread_name". | |
92 | [PT_LWPINFO]: Set "to_update_thread_list" to "fbsd_update_thread_list". | |
93 | Set "to_has_thread_control" to "tc_schedlock". | |
94 | Set "to_resume" to "fbsd_resume". | |
95 | (_initialize_fbsd_nat): New function. | |
96 | * configure: Regenerate. | |
97 | * config.in: Regenerate. | |
98 | ||
94309df7 JB |
99 | 2016-01-19 John Baldwin <jhb@FreeBSD.org> |
100 | ||
101 | * amd64bsd-nat.c (amd64bsd_fetch_inferior_registers): Use | |
102 | get_ptrace_pid. | |
103 | (amd64bsd_store_inferior_registers): Use get_ptrace_pid. | |
104 | (amd64bsd_dr_get): Use get_ptrace_pid. | |
105 | (amd64bsd_dr_set): Use get_ptrace_pid. | |
106 | * i386bsd-nat.c (i386bsd_fetch_inferior_registers): Use get_ptrace_pid. | |
107 | (i386bsd_store_inferior_registers): Use get_ptrace_pid. | |
108 | (i386bsd_dr_get): Use get_ptrace_pid. | |
109 | (i386bsd_dr_set): Use get_ptrace_pid. | |
110 | * inf-ptrace.c (get_ptrace_pid): Export. | |
111 | * inf-ptrace.h (get_ptrace_pid): Declare. | |
112 | * ppcfbsd-nat.c (ppcfbsd_fetch_inferior_registers): Use lwp id. | |
113 | (ppcfbsd_store_inferior_registers): Use lwp id. | |
114 | ||
79117428 JB |
115 | 2016-01-19 John Baldwin <jhb@FreeBSD.org> |
116 | ||
117 | * fbsd_tdep.c (fbsd_core_pid_to_str): New function. | |
118 | (fbsd_core_thread_name): New function. | |
119 | (fbsd_init_abi): Add "core_pid_to_str" gdbarch method. | |
120 | Add "core_thread_name" gdbarch method. | |
121 | ||
4dfc5dbc JB |
122 | 2016-01-19 John Baldwin <jhb@FreeBSD.org> |
123 | ||
124 | * corelow.c (core_thread_name): New function. | |
125 | (init_core_ops): Use "core_thread_name" for the "to_thread_name" | |
126 | target op. | |
127 | * gdbarch.sh (core_thread_name): New gdbarch callback. | |
128 | * gdbarch.h: Re-generate. | |
129 | * gdbarch.c: Re-generate. | |
130 | ||
10e3ed90 SM |
131 | 2016-01-19 Simon Marchi <simon.marchi@polymtl.ca> |
132 | ||
133 | * python/lib/gdb/printing.py (_EnumInstance.to_string): Explicitly | |
134 | convert gdb.Value to integer type using int(). | |
135 | ||
a6e69c1f JB |
136 | 2016-01-19 John Baldwin <jhb@FreeBSD.org> |
137 | ||
138 | * configure.ac: Include <sys/types.h when checking for "r_fs" in | |
139 | "struct reg". | |
140 | * configure: Regenerate. | |
141 | ||
37e42b4f PA |
142 | 2016-01-19 Pedro Alves <palves@redhat.com> |
143 | ||
144 | * ax-gdb.c (agent_command_1): Adjust call to decode_line_full. | |
145 | * break-catch-throw.c (re_set_exception_catchpoint): Pass the | |
146 | current program space down to linespec decoding and breakpoint | |
147 | location updating. | |
148 | * breakpoint.c (parse_breakpoint_sals): Adjust calls to | |
149 | decode_line_full. | |
150 | (until_break_command): Adjust calls to decode_line_1. | |
151 | (base_breakpoint_decode_location, bkpt_decode_location): Add | |
152 | 'search_pspace' parameter. Pass it along. | |
153 | (bkpt_probe_create_sals_from_location): Adjust calls to | |
154 | parse_probes. | |
155 | (tracepoint_decode_location, tracepoint_probe_decode_location) | |
156 | (strace_marker_decode_location): Add 'search_pspace' parameter. | |
157 | Pass it along. | |
158 | (all_locations_are_pending): Rewrite to take a breakpoint and | |
159 | program space as arguments instead. | |
160 | (hoist_existing_locations): New function. | |
161 | (update_breakpoint_locations): Add 'filter_pspace' parameter. Use | |
162 | hoist_existing_locations instead of always removing all locations, | |
163 | and adjust to all_locations_are_pending change. | |
164 | (location_to_sals): Add 'search_pspace' parameter. Pass it along. | |
165 | Don't disable the breakpoint if there are other locations in | |
166 | another program space. | |
167 | (breakpoint_re_set_default): Adjust to pass down the current | |
168 | program space as filter program space. | |
169 | (decode_location_default): Add 'search_pspace' parameter and pass | |
170 | it along. | |
171 | (prepare_re_set_context): Don't switch program space here. | |
172 | (breakpoint_re_set): Use save_current_space_and_thread instead of | |
173 | save_current_program_space. | |
174 | * breakpoint.h (struct breakpoint_ops) <decode_location>: Add | |
175 | 'search_pspace' parameter. | |
176 | (update_breakpoint_locations): Add 'filter_pspace' parameter. | |
177 | * cli/cli-cmds.c (edit_command, list_command): Adjust calls to | |
178 | decode_line_1. | |
179 | * elfread.c (elf_gnu_ifunc_resolver_return_stop): Pass the current | |
180 | program space as filter program space. | |
181 | * linespec.c (struct linespec_state) <search_pspace>: New field. | |
182 | (create_sals_line_offset, convert_explicit_location_to_sals) | |
183 | (parse_linespec): Pass the search program space down. | |
184 | (linespec_state_constructor): Add 'search_pspace' parameter. | |
185 | Store it. | |
186 | (linespec_parser_new): Add 'search_pspace' parameter and pass it | |
187 | along. | |
188 | (linespec_lex_to_end): Adjust. | |
189 | (decode_line_full, decode_line_1): Add 'search_pspace' parameter | |
190 | and pass it along. | |
191 | (decode_line_with_last_displayed): Adjust. | |
192 | (collect_symtabs_from_filename, symtabs_from_filename): New | |
193 | 'search_pspace' parameter. Use it. | |
194 | (find_function_symbols): Pass the search program space down. | |
195 | * linespec.h (decode_line_1, decode_line_full): Add | |
196 | 'search_pspace' parameter. | |
197 | * probe.c (parse_probes_in_pspace): New function, factored out | |
198 | from ... | |
199 | (parse_probes): ... this. Add 'search_pspace' parameter and use | |
200 | it. | |
201 | * probe.h (parse_probes): Add pspace' parameter. | |
202 | * python/python.c (gdbpy_decode_line): Adjust. | |
203 | * tracepoint.c (scope_info): Adjust. | |
204 | ||
100b4f2e MR |
205 | 2016-01-18 Maciej W. Rozycki <macro@imgtec.com> |
206 | ||
207 | * mips-tdep.c (mips_insn_size): Remove 48-bit microMIPS | |
208 | instruction support. | |
209 | (micromips_next_pc): Likewise. | |
210 | (micromips_scan_prologue): Likewise. | |
211 | (micromips_deal_with_atomic_sequence): Likewise. | |
212 | (micromips_stack_frame_destroyed_p): Likewise. | |
213 | (mips_breakpoint_from_pc): Likewise. | |
214 | ||
3f7f3650 MR |
215 | 2016-01-18 Maciej W. Rozycki <macro@imgtec.com> |
216 | ||
217 | * mips-tdep.c (micromips_insn_at_pc_has_delay_slot): Pass | |
218 | unshifted 16-bit microMIPS instruction word to `mips_insn_size'. | |
219 | ||
f303dbd6 PA |
220 | 2016-01-18 Pedro Alves <palves@redhat.com> |
221 | ||
222 | * NEWS: Mention that GDB now displays the ID and name of the | |
223 | thread that hit a breakpoint or received a signal. | |
224 | * break-catch-sig.c (signal_catchpoint_print_it): Use | |
225 | maybe_print_thread_hit_breakpoint. | |
226 | * break-catch-syscall.c (print_it_catch_syscall): Likewise. | |
227 | * break-catch-throw.c (print_it_exception_catchpoint): Likewise. | |
228 | * breakpoint.c (maybe_print_thread_hit_breakpoint): New function. | |
229 | (print_it_catch_fork, print_it_catch_vfork, print_it_catch_solib) | |
230 | (print_it_catch_exec, print_it_ranged_breakpoint) | |
231 | (print_it_watchpoint, print_it_masked_watchpoint, bkpt_print_it): | |
232 | Use maybe_print_thread_hit_breakpoint. | |
233 | * breakpoint.h (maybe_print_thread_hit_breakpoint): Declare. | |
234 | * gdbthread.h (show_thread_that_caused_stop): Declare. | |
235 | * infrun.c (print_signal_received_reason): Print which thread | |
236 | received signal. | |
237 | * thread.c (show_thread_that_caused_stop): New function. | |
238 | ||
eb0edac8 GB |
239 | 2016-01-18 Gary Benson <gbenson@redhat.com> |
240 | ||
241 | * nat/linux-namespaces.c (do_fork): New function. | |
242 | (linux_mntns_get_helper): Use the above. | |
243 | ||
dc365182 JH |
244 | 2016-01-17 Jonas Hahnfeld <Hahnfeld@itc.rwth-aachen.de> (tiny change) |
245 | ||
246 | Pushed by Joel Brobecker <brobecker@adacore.com>. | |
247 | PR gdb/19208 | |
248 | * dwarf2read.c (read_partial_die): Do not call set_objfile_main_name | |
249 | if the function has no name. | |
250 | ||
f74f61cb SL |
251 | 2016-01-15 Sandra Loosemore <sandra@codesourcery.com> |
252 | ||
253 | * charset.c [PHONY_ICONV] (GDB_DEFAULT_HOST_CHARSET): | |
254 | Conditionalize for Windows host. | |
255 | (GDB_DEFAULT_TARGET_CHARSET): Match GDB_DEFAULT_HOST_CHARSET. | |
256 | (GDB_DEFAULT_TARGET_WIDE_CHARSET): Use UTF-32. | |
257 | (phony_iconv_open): Handle both UTF-32 endiannesses. | |
258 | (phony_iconv): Likewise. Check for output overflow and clean up | |
259 | out-of-input cases. Correct adjustment to input buffer pointer. | |
260 | (set_be_le_names) [PHONY_ICONV]: Use hard-wired names to match | |
261 | phony_iconv_open. | |
262 | ||
71ef29a8 PA |
263 | 2016-01-15 Pedro Alves <palves@redhat.com> |
264 | ||
265 | * NEWS: Mention star wildcard ranges. | |
266 | * cli/cli-utils.c (get_number_or_range): Check state->in_range first. | |
267 | (number_range_setup_range): New function. | |
268 | * cli/cli-utils.h (number_range_setup_range): New declaration. | |
269 | * thread.c (thread_apply_command): Support star TID ranges. | |
270 | * tid-parse.c (tid_range_parser_finished) | |
271 | (tid_range_parser_string, tid_range_parser_skip) | |
272 | (get_tid_or_range, get_tid_or_range): Handle | |
273 | TID_RANGE_STATE_STAR_RANGE. | |
274 | (tid_range_parser_star_range): New function. | |
275 | * tid-parse.h (enum tid_range_state) <TID_RANGE_STATE_STAR_RANGE>: | |
276 | New value. | |
277 | (tid_range_parser_star_range): New declaration. | |
278 | ||
3f5b7598 PA |
279 | 2016-01-15 Pedro Alves <palves@redhat.com> |
280 | ||
281 | * thread.c (thread_apply_command): Use the tid range parser to | |
282 | advance past the thread ID list. | |
283 | * tid-parse.c (get_positive_number_trailer): New function. | |
284 | (parse_thread_id): Use it. | |
285 | (get_tid_or_range): Use it. Return 0 instead of throwing invalid | |
286 | thread ID error. | |
287 | (get_tid_or_range): Detect negative values. Return 0 instead of | |
288 | throwing invalid thread ID error. | |
289 | ||
e7cf25a8 YQ |
290 | 2016-01-14 Yao Qi <yao.qi@linaro.org> |
291 | ||
292 | * arm-linux-tdep.c (arm_linux_get_next_pcs_syscall_next_pc): | |
293 | Declare. | |
294 | (arm_linux_get_next_pcs_ops): Install | |
295 | arm_linux_get_next_pcs_syscall_next_pc. | |
296 | (arm_linux_syscall_next_pc): Change to ... | |
297 | (arm_linux_get_next_pcs_syscall_next_pc): ... it. | |
298 | (arm_linux_init_abi): Don't set tdep->syscall_next_pc. | |
299 | * arm-tdep.c (arm_get_next_pcs_syscall_next_pc): Declare. | |
300 | (arm_get_next_pcs_syscall_next_pc): Make it static. Don't | |
301 | call tdep->syscall_next_pc. | |
302 | * arm-tdep.h (struct gdbarch_tdep) <syscall_next_pc>: Remove. | |
303 | (arm_get_next_pcs_syscall_next_pc): Remove. | |
304 | ||
c0518081 YQ |
305 | 2016-01-14 Yao Qi <yao.qi@linaro.org> |
306 | ||
307 | * remote.c (remote_set_syscall_catchpoint): Cast to char *. | |
308 | * thread.c (do_captured_thread_select): Cast to const char *. | |
309 | ||
1b451dda YQ |
310 | 2016-01-14 Yao Qi <yao.qi@linaro.org> |
311 | ||
312 | * arch/arm-get-next-pcs.c (arm_get_next_pcs_ctor): Change | |
313 | argument arm_thumb2_breakpoint to has_thumb2_breakpoint. | |
314 | (thumb_get_next_pcs_raw): Check has_thumb2_breakpoint | |
315 | instead. | |
316 | * arch/arm-get-next-pcs.h (struct arm_get_next_pcs) | |
317 | <arm_thumb2_breakpoint>: Remove. | |
318 | <has_thumb2_breakpoint>: New field. | |
319 | (arm_get_next_pcs_ctor): Update declaration. | |
320 | * arm-linux-tdep.c (arm_linux_software_single_step): Pass | |
321 | 1 to arm_get_next_pcs_ctor. | |
322 | * arm-tdep.c (arm_software_single_step): Pass 0 to | |
323 | arm_get_next_pcs_ctor. | |
324 | ||
bc06e0b1 UW |
325 | 2016-01-13 Ulrich Weigand <uweigand@de.ibm.com> |
326 | ||
327 | * MAINTAINERS: Add Andreas Arnez as s390 target maintainer. | |
328 | ||
4e7b8bea YQ |
329 | 2016-01-13 Yao Qi <yao.qi@linaro.org> |
330 | ||
331 | * arch/arm-get-next-pcs.c (arm_get_next_pcs_raw): Use | |
332 | byte_order_for_code to read instruction. | |
333 | ||
663f6d42 PA |
334 | 2016-01-13 Pedro Alves <palves@redhat.com> |
335 | ||
336 | * NEWS: Mention $_gthread. | |
337 | * gdbthread.h (struct thread_info) <global_num>: Mention | |
338 | $_gthread. | |
339 | * thread.c (thread_num_make_value_helper): New function. | |
340 | (thread_id_make_value): Delete. | |
341 | (thread_id_per_inf_num_make_value, global_thread_id_make_value): | |
342 | New. | |
343 | (thread_funcs): Adjust. | |
344 | (gthread_funcs): New. | |
345 | (_initialize_thread): Register $_gthread variable. | |
346 | ||
c84f6bbf PA |
347 | 2016-01-13 Pedro Alves <palves@redhat.com> |
348 | ||
349 | * NEWS: Mention "info threads -gid". | |
350 | * gdbthread.h (struct thread_info) <global_num>: Mention "info | |
351 | threads -gid". | |
352 | * thread.c (info_threads_command): Handle "-gid". | |
353 | (_initialize_thread): Adjust "info threads" help string to mention | |
354 | -gid. | |
355 | ||
22a02324 PA |
356 | 2016-01-13 Pedro Alves <palves@redhat.com> |
357 | ||
358 | * NEWS: Mention InferiorThread.global_num. | |
359 | * python/py-infthread.c (thpy_get_global_num): New function. | |
360 | (thread_object_getset): Register "global_num". | |
361 | ||
5d5658a1 PA |
362 | 2016-01-13 Pedro Alves <palves@redhat.com> |
363 | ||
364 | * NEWS: Mention that thread IDs are now per inferior and global | |
365 | thread IDs. | |
366 | * Makefile.in (SFILES): Add tid-parse.c. | |
367 | (COMMON_OBS): Add tid-parse.o. | |
368 | (HFILES_NO_SRCDIR): Add tid-parse.h. | |
369 | * ada-tasks.c: Adjust to use ptid_to_global_thread_id. | |
370 | * breakpoint.c (insert_breakpoint_locations) | |
371 | (remove_threaded_breakpoints, bpstat_check_breakpoint_conditions) | |
372 | (print_one_breakpoint_location, set_longjmp_breakpoint) | |
373 | (check_longjmp_breakpoint_for_call_dummy) | |
374 | (set_momentary_breakpoint): Adjust to use global IDs. | |
375 | (find_condition_and_thread, watch_command_1): Use parse_thread_id. | |
376 | (until_break_command, longjmp_bkpt_dtor) | |
377 | (breakpoint_re_set_thread, insert_single_step_breakpoint): Adjust | |
378 | to use global IDs. | |
379 | * dummy-frame.c (pop_dummy_frame_bpt): Adjust to use | |
380 | ptid_to_global_thread_id. | |
381 | * elfread.c (elf_gnu_ifunc_resolver_stop): Likewise. | |
382 | * gdbthread.h (struct thread_info): Rename field 'num' to | |
383 | 'global_num. Add new fields 'per_inf_num' and 'inf'. | |
384 | (thread_id_to_pid): Rename thread_id_to_pid to | |
385 | global_thread_id_to_ptid. | |
386 | (pid_to_thread_id): Rename to ... | |
387 | (ptid_to_global_thread_id): ... this. | |
388 | (valid_thread_id): Rename to ... | |
389 | (valid_global_thread_id): ... this. | |
390 | (find_thread_id): Rename to ... | |
391 | (find_thread_global_id): ... this. | |
392 | (ALL_THREADS, ALL_THREADS_BY_INFERIOR): Declare. | |
393 | (print_thread_info): Add comment. | |
394 | * tid-parse.h: New file. | |
395 | * tid-parse.c: New file. | |
396 | * infcmd.c (step_command_fsm_prepare) | |
397 | (step_command_fsm_should_stop): Adjust to use the global thread | |
398 | ID. | |
399 | (until_next_command, until_next_command) | |
400 | (finish_command_fsm_should_stop): Adjust to use the global thread | |
401 | ID. | |
402 | (attach_post_wait): Adjust to check the inferior number too. | |
403 | * inferior.h (struct inferior) <highest_thread_num>: New field. | |
404 | * infrun.c (handle_signal_stop) | |
405 | (insert_exception_resume_breakpoint) | |
406 | (insert_exception_resume_from_probe): Adjust to use the global | |
407 | thread ID. | |
408 | * record-btrace.c (record_btrace_open): Use global thread IDs. | |
409 | * remote.c (process_initial_stop_replies): Also consider the | |
410 | inferior number. | |
411 | * target.c (target_pre_inferior): Clear the inferior's highest | |
412 | thread num. | |
413 | * thread.c (clear_thread_inferior_resources): Adjust to use the | |
414 | global thread ID. | |
415 | (new_thread): New inferior parameter. Adjust to use it. Set both | |
416 | the thread's global ID and the thread's per-inferior ID. | |
417 | (add_thread_silent): Adjust. | |
418 | (find_thread_global_id): New. | |
419 | (find_thread_id): Make static. Adjust to rename. | |
420 | (valid_thread_id): Rename to ... | |
421 | (valid_global_thread_id): ... this. | |
422 | (pid_to_thread_id): Rename to ... | |
423 | (ptid_to_global_thread_id): ... this. | |
424 | (thread_id_to_pid): Rename to ... | |
425 | (global_thread_id_to_ptid): ... this. Adjust. | |
426 | (first_thread_of_process): Adjust. | |
427 | (do_captured_list_thread_ids): Adjust to use global thread IDs. | |
428 | (should_print_thread): New function. | |
429 | (print_thread_info): Rename to ... | |
430 | (print_thread_info_1): ... this, and add new show_global_ids | |
431 | parameter. Handle it. Iterate over inferiors. | |
432 | (print_thread_info): Reimplement as wrapper around | |
433 | print_thread_info_1. | |
434 | (show_inferior_qualified_tids): New function. | |
435 | (print_thread_id): Use it. | |
436 | (tp_array_compar): Compare inferior numbers too. | |
437 | (thread_apply_command): Use tid_range_parser. | |
438 | (do_captured_thread_select): Use parse_thread_id. | |
439 | (thread_id_make_value): Adjust. | |
440 | (_initialize_thread): Adjust "info threads" help string. | |
441 | * varobj.c (struct varobj_root): Update comment. | |
442 | (varobj_create): Adjust to use global thread IDs. | |
443 | (value_of_root_1): Adjust to use global_thread_id_to_ptid. | |
444 | * windows-tdep.c (display_tib): No longer accept an argument. | |
445 | * cli/cli-utils.c (get_number_trailer): Make extern. | |
446 | * cli/cli-utils.h (get_number_trailer): Declare. | |
447 | (get_number_const): Adjust documentation. | |
448 | * mi/mi-cmd-var.c (mi_cmd_var_update_iter): Adjust to use global | |
449 | thread IDs. | |
450 | * mi/mi-interp.c (mi_new_thread, mi_thread_exit) | |
451 | (mi_on_normal_stop, mi_output_running_pid, mi_on_resume): | |
452 | * mi/mi-main.c (mi_execute_command, mi_cmd_execute): Likewise. | |
453 | * guile/scm-breakpoint.c (gdbscm_set_breakpoint_thread_x): | |
454 | Likewise. | |
455 | * python/py-breakpoint.c (bppy_set_thread): Likewise. | |
456 | * python/py-finishbreakpoint.c (bpfinishpy_init): Likewise. | |
457 | * python/py-infthread.c (thpy_get_num): Add comment and return the | |
458 | per-inferior thread ID. | |
459 | (thread_object_getset): Update comment of "num". | |
460 | ||
43792cf0 PA |
461 | 2016-01-13 Pedro Alves <palves@redhat.com> |
462 | ||
463 | * breakpoint.c (remove_threaded_breakpoints) | |
464 | (print_one_breakpoint_location): Use print_thread_id. | |
465 | * btrace.c (btrace_enable, btrace_disable, btrace_teardown) | |
466 | (btrace_fetch, btrace_clear): Use print_thread_id. | |
467 | * common/print-utils.c (CELLSIZE): Delete. | |
468 | (get_cell): Rename to ... | |
469 | (get_print_cell): ... this and made extern. Adjust call callers. | |
470 | Adjust to use PRINT_CELL_SIZE. | |
471 | * common/print-utils.h (get_print_cell): Declare. | |
472 | (PRINT_CELL_SIZE): New. | |
473 | * gdbthread.h (print_thread_id): Declare. | |
474 | * infcmd.c (signal_command): Use print_thread_id. | |
475 | * inferior.c (print_inferior): Use print_thread_id. | |
476 | * infrun.c (handle_signal_stop) | |
477 | (insert_exception_resume_breakpoint) | |
478 | (insert_exception_resume_from_probe) | |
479 | (print_signal_received_reason): Use print_thread_id. | |
480 | * record-btrace.c (record_btrace_info) | |
481 | (record_btrace_resume_thread, record_btrace_cancel_resume) | |
482 | (record_btrace_step_thread, record_btrace_wait): Use | |
483 | print_thread_id. | |
484 | * thread.c (thread_apply_all_command): Use print_thread_id. | |
485 | (print_thread_id): New function. | |
486 | (thread_apply_command): Use print_thread_id. | |
487 | (thread_command, thread_find_command, do_captured_thread_select): | |
488 | Use print_thread_id. | |
489 | ||
84654457 PA |
490 | 2016-01-13 Pedro Alves <palves@redhat.com> |
491 | ||
492 | * NEWS: Mention InferiorThread.inferior. | |
493 | * python/py-infthread.c (thpy_get_inferior): New. | |
494 | (thread_object_getset): Register "inferior". | |
495 | ||
e3940304 PA |
496 | 2016-01-13 Pedro Alves <palves@redhat.com> |
497 | ||
498 | * NEWS: Mention $_inferior. | |
499 | * inferior.c (inferior_id_make_value): New. | |
500 | (inferior_funcs): New. | |
501 | (_initialize_inferior): Create $_inferior variable. | |
502 | ||
a911d87a PA |
503 | 2016-01-13 Pedro Alves <palves@redhat.com> |
504 | ||
505 | PR breakpoints/19388 | |
506 | * frame.c (get_current_frame): Use validate_registers_access. | |
507 | * gdbthread.h (validate_registers_access): Declare. | |
508 | * infrun.c (validate_siginfo_access): Delete. | |
509 | (siginfo_value_read, siginfo_value_write): Use | |
510 | validate_registers_access. | |
511 | * thread.c (validate_registers_access): New function. | |
512 | ||
82075af2 JS |
513 | 2016-01-12 Josh Stone <jistone@redhat.com> |
514 | Philippe Waroquiers <philippe.waroquiers@skynet.be> | |
515 | ||
516 | * NEWS (Changes since GDB 7.10): Mention QCatchSyscalls and the | |
517 | syscall_entry and syscall_return stop reasons. Mention GDB | |
518 | support for remote catch syscall. | |
519 | * remote.c (PACKET_QCatchSyscalls): New enum. | |
520 | (remote_set_syscall_catchpoint): New function. | |
521 | (remote_protocol_features): New element for QCatchSyscalls. | |
522 | (remote_parse_stop_reply): Parse syscall_entry/return stops. | |
523 | (init_remote_ops): Install remote_set_syscall_catchpoint. | |
524 | (_initialize_remote): Config QCatchSyscalls. | |
525 | * linux-nat.h (struct lwp_info) <syscall_state>: Comment typo. | |
526 | ||
d18547d8 YQ |
527 | 2016-01-12 Yao Qi <yao.qi@linaro.org> |
528 | ||
529 | * nat/linux-ptrace.c (linux_child_function): Cast child_stack | |
530 | to gdb_byte * and pass to linux_fork_to_function. | |
531 | ||
ba4dd7c4 YQ |
532 | 2016-01-12 Yao Qi <yao.qi@linaro.org> |
533 | ||
534 | * nat/linux-ptrace.c (linux_fork_to_function): Change type | |
535 | of argument 'function'. | |
536 | (linux_grandchild_function): Change return type to 'int'. | |
537 | Change child_stack's type to 'void *'. | |
538 | (linux_child_function): Likewise. | |
539 | ||
bc504a31 PA |
540 | 2016-01-12 Pedro Alves <palves@redhat.com> |
541 | ||
542 | Remove use of the registered trademark symbol throughout. | |
543 | ||
5eddd578 TS |
544 | 2016-01-12 Thomas Schwinge <thomas@codesourcery.com> |
545 | ||
546 | * reply_mig_hack.awk: Rewrite one regular expression. | |
547 | ||
b835bb52 MF |
548 | 2016-01-11 Mike Frysinger <vapier@gentoo.org> |
549 | ||
550 | * acinclude.m4: Include new warning.m4 file. | |
551 | * configure: Regenerated. | |
552 | * configure.ac: Move all warning logic ... | |
553 | * warning.m4: ... here. | |
554 | ||
2f99e8fc YQ |
555 | 2016-01-08 Yao Qi <yao.qi@linaro.org> |
556 | ||
557 | * extension.c: Include target.h. | |
558 | (set_active_ext_lang): Only call install_gdb_sigint_handler, | |
559 | check_quit_flag, and set_quit_flag if target_terminal_is_ours | |
560 | returns false. | |
561 | (restore_active_ext_lang): Likewise. | |
562 | * target.c (target_terminal_is_ours): New function. | |
563 | * target.h (target_terminal_is_ours): Declare. | |
564 | ||
5dd05630 MR |
565 | 2016-01-07 Maciej W. Rozycki <macro@imgtec.com> |
566 | ||
567 | * mips-tdep.c (mips_breakpoint_from_pc): Rename local `status' | |
568 | to `err' in the little-endian leg. | |
569 | ||
f5aa3069 YQ |
570 | 2016-01-06 Yao Qi <yao.qi@linaro.org> |
571 | ||
572 | * arch/arm-get-next-pcs.c (arm_get_next_pcs): Move it to some | |
573 | lines below. | |
574 | (thumb_get_next_pcs_raw): Make it static. | |
575 | (arm_get_next_pcs_raw): Likewise. | |
576 | * arch/arm-get-next-pcs.h (thumb_get_next_pcs_raw): Remove the | |
577 | declaration. | |
578 | (arm_get_next_pcs_raw): Likewise. | |
579 | ||
bf69ad5a MF |
580 | 2016-01-05 Mike Frysinger <vapier@gentoo.org> |
581 | ||
582 | * version.in: Change cvs to git. | |
583 | ||
66750332 MF |
584 | 2016-01-05 Mike Frysinger <vapier@gentoo.org> |
585 | ||
586 | * configure.tgt (score-*-*): Delete gdb_sim assignment. | |
587 | ||
976102cd PA |
588 | 2016-01-05 Pedro Alves <palves@redhat.com> |
589 | ||
590 | PR sim/13418 | |
591 | * configure.ac: Define WITH_PPC_SIM when linking in the sim and | |
592 | the target is powerpc*. | |
fa89c126 PA |
593 | * rs6000-tdep.c (init_sim_regno_table): Check WITH_PPC_SIM instead |
594 | of WITH_SIM. | |
976102cd PA |
595 | * configure: Regenerate. |
596 | * config.in: Regenerate. | |
597 | ||
43368e1d MM |
598 | 2016-01-04 Markus Metzger <markus.t.metzger@intel.com> |
599 | ||
600 | * btrace.c (btrace_pt_readmem_callback): Do not return in TRY/CATCH. | |
601 | ||
32273fe6 MF |
602 | 2016-01-02 Mike Frysinger <vapier@gentoo.org> |
603 | ||
604 | * configure.tgt (powerpc*-*-*): Delete test call and | |
605 | always assign gdb_sim. | |
606 | ||
618f726f JB |
607 | 2016-01-01 Joel Brobecker <brobecker@adacore.com> |
608 | ||
609 | Update year range in copyright notice of all files. | |
610 | ||
edd88788 JB |
611 | 2016-01-01 Joel Brobecker <brobecker@adacore.com> |
612 | ||
613 | * top.c (print_gdb_version): Change copyright year in version | |
614 | message. | |
615 | ||
0f7b3ef4 | 616 | 2016-01-01 Joel Brobecker <brobecker@adacore.com> |
aec47d1d | 617 | |
0f7b3ef4 | 618 | * config/djgpp/fnchange.lst: Add entry for gdb/ChangeLog-2015. |
aec47d1d | 619 | |
0f7b3ef4 | 620 | For older changes see ChangeLog-2015. |
c906108c SS |
621 | \f |
622 | Local Variables: | |
623 | mode: change-log | |
624 | left-margin: 8 | |
625 | fill-column: 74 | |
626 | version-control: never | |
57da7796 | 627 | coding: utf-8 |
c906108c | 628 | End: |