dbc4b081e7b84223fe722d6b4993ded59aed721a
[deliverable/binutils-gdb.git] / gdb / ChangeLog
1 2016-01-17 Jonas Hahnfeld <Hahnfeld@itc.rwth-aachen.de> (tiny change)
2
3 Pushed by Joel Brobecker <brobecker@adacore.com>.
4 PR gdb/19208
5 * dwarf2read.c (read_partial_die): Do not call set_objfile_main_name
6 if the function has no name.
7
8 2016-01-15 Sandra Loosemore <sandra@codesourcery.com>
9
10 * charset.c [PHONY_ICONV] (GDB_DEFAULT_HOST_CHARSET):
11 Conditionalize for Windows host.
12 (GDB_DEFAULT_TARGET_CHARSET): Match GDB_DEFAULT_HOST_CHARSET.
13 (GDB_DEFAULT_TARGET_WIDE_CHARSET): Use UTF-32.
14 (phony_iconv_open): Handle both UTF-32 endiannesses.
15 (phony_iconv): Likewise. Check for output overflow and clean up
16 out-of-input cases. Correct adjustment to input buffer pointer.
17 (set_be_le_names) [PHONY_ICONV]: Use hard-wired names to match
18 phony_iconv_open.
19
20 2016-01-15 Pedro Alves <palves@redhat.com>
21
22 * NEWS: Mention star wildcard ranges.
23 * cli/cli-utils.c (get_number_or_range): Check state->in_range first.
24 (number_range_setup_range): New function.
25 * cli/cli-utils.h (number_range_setup_range): New declaration.
26 * thread.c (thread_apply_command): Support star TID ranges.
27 * tid-parse.c (tid_range_parser_finished)
28 (tid_range_parser_string, tid_range_parser_skip)
29 (get_tid_or_range, get_tid_or_range): Handle
30 TID_RANGE_STATE_STAR_RANGE.
31 (tid_range_parser_star_range): New function.
32 * tid-parse.h (enum tid_range_state) <TID_RANGE_STATE_STAR_RANGE>:
33 New value.
34 (tid_range_parser_star_range): New declaration.
35
36 2016-01-15 Pedro Alves <palves@redhat.com>
37
38 * thread.c (thread_apply_command): Use the tid range parser to
39 advance past the thread ID list.
40 * tid-parse.c (get_positive_number_trailer): New function.
41 (parse_thread_id): Use it.
42 (get_tid_or_range): Use it. Return 0 instead of throwing invalid
43 thread ID error.
44 (get_tid_or_range): Detect negative values. Return 0 instead of
45 throwing invalid thread ID error.
46
47 2016-01-14 Yao Qi <yao.qi@linaro.org>
48
49 * arm-linux-tdep.c (arm_linux_get_next_pcs_syscall_next_pc):
50 Declare.
51 (arm_linux_get_next_pcs_ops): Install
52 arm_linux_get_next_pcs_syscall_next_pc.
53 (arm_linux_syscall_next_pc): Change to ...
54 (arm_linux_get_next_pcs_syscall_next_pc): ... it.
55 (arm_linux_init_abi): Don't set tdep->syscall_next_pc.
56 * arm-tdep.c (arm_get_next_pcs_syscall_next_pc): Declare.
57 (arm_get_next_pcs_syscall_next_pc): Make it static. Don't
58 call tdep->syscall_next_pc.
59 * arm-tdep.h (struct gdbarch_tdep) <syscall_next_pc>: Remove.
60 (arm_get_next_pcs_syscall_next_pc): Remove.
61
62 2016-01-14 Yao Qi <yao.qi@linaro.org>
63
64 * remote.c (remote_set_syscall_catchpoint): Cast to char *.
65 * thread.c (do_captured_thread_select): Cast to const char *.
66
67 2016-01-14 Yao Qi <yao.qi@linaro.org>
68
69 * arch/arm-get-next-pcs.c (arm_get_next_pcs_ctor): Change
70 argument arm_thumb2_breakpoint to has_thumb2_breakpoint.
71 (thumb_get_next_pcs_raw): Check has_thumb2_breakpoint
72 instead.
73 * arch/arm-get-next-pcs.h (struct arm_get_next_pcs)
74 <arm_thumb2_breakpoint>: Remove.
75 <has_thumb2_breakpoint>: New field.
76 (arm_get_next_pcs_ctor): Update declaration.
77 * arm-linux-tdep.c (arm_linux_software_single_step): Pass
78 1 to arm_get_next_pcs_ctor.
79 * arm-tdep.c (arm_software_single_step): Pass 0 to
80 arm_get_next_pcs_ctor.
81
82 2016-01-13 Ulrich Weigand <uweigand@de.ibm.com>
83
84 * MAINTAINERS: Add Andreas Arnez as s390 target maintainer.
85
86 2016-01-13 Yao Qi <yao.qi@linaro.org>
87
88 * arch/arm-get-next-pcs.c (arm_get_next_pcs_raw): Use
89 byte_order_for_code to read instruction.
90
91 2016-01-13 Pedro Alves <palves@redhat.com>
92
93 * NEWS: Mention $_gthread.
94 * gdbthread.h (struct thread_info) <global_num>: Mention
95 $_gthread.
96 * thread.c (thread_num_make_value_helper): New function.
97 (thread_id_make_value): Delete.
98 (thread_id_per_inf_num_make_value, global_thread_id_make_value):
99 New.
100 (thread_funcs): Adjust.
101 (gthread_funcs): New.
102 (_initialize_thread): Register $_gthread variable.
103
104 2016-01-13 Pedro Alves <palves@redhat.com>
105
106 * NEWS: Mention "info threads -gid".
107 * gdbthread.h (struct thread_info) <global_num>: Mention "info
108 threads -gid".
109 * thread.c (info_threads_command): Handle "-gid".
110 (_initialize_thread): Adjust "info threads" help string to mention
111 -gid.
112
113 2016-01-13 Pedro Alves <palves@redhat.com>
114
115 * NEWS: Mention InferiorThread.global_num.
116 * python/py-infthread.c (thpy_get_global_num): New function.
117 (thread_object_getset): Register "global_num".
118
119 2016-01-13 Pedro Alves <palves@redhat.com>
120
121 * NEWS: Mention that thread IDs are now per inferior and global
122 thread IDs.
123 * Makefile.in (SFILES): Add tid-parse.c.
124 (COMMON_OBS): Add tid-parse.o.
125 (HFILES_NO_SRCDIR): Add tid-parse.h.
126 * ada-tasks.c: Adjust to use ptid_to_global_thread_id.
127 * breakpoint.c (insert_breakpoint_locations)
128 (remove_threaded_breakpoints, bpstat_check_breakpoint_conditions)
129 (print_one_breakpoint_location, set_longjmp_breakpoint)
130 (check_longjmp_breakpoint_for_call_dummy)
131 (set_momentary_breakpoint): Adjust to use global IDs.
132 (find_condition_and_thread, watch_command_1): Use parse_thread_id.
133 (until_break_command, longjmp_bkpt_dtor)
134 (breakpoint_re_set_thread, insert_single_step_breakpoint): Adjust
135 to use global IDs.
136 * dummy-frame.c (pop_dummy_frame_bpt): Adjust to use
137 ptid_to_global_thread_id.
138 * elfread.c (elf_gnu_ifunc_resolver_stop): Likewise.
139 * gdbthread.h (struct thread_info): Rename field 'num' to
140 'global_num. Add new fields 'per_inf_num' and 'inf'.
141 (thread_id_to_pid): Rename thread_id_to_pid to
142 global_thread_id_to_ptid.
143 (pid_to_thread_id): Rename to ...
144 (ptid_to_global_thread_id): ... this.
145 (valid_thread_id): Rename to ...
146 (valid_global_thread_id): ... this.
147 (find_thread_id): Rename to ...
148 (find_thread_global_id): ... this.
149 (ALL_THREADS, ALL_THREADS_BY_INFERIOR): Declare.
150 (print_thread_info): Add comment.
151 * tid-parse.h: New file.
152 * tid-parse.c: New file.
153 * infcmd.c (step_command_fsm_prepare)
154 (step_command_fsm_should_stop): Adjust to use the global thread
155 ID.
156 (until_next_command, until_next_command)
157 (finish_command_fsm_should_stop): Adjust to use the global thread
158 ID.
159 (attach_post_wait): Adjust to check the inferior number too.
160 * inferior.h (struct inferior) <highest_thread_num>: New field.
161 * infrun.c (handle_signal_stop)
162 (insert_exception_resume_breakpoint)
163 (insert_exception_resume_from_probe): Adjust to use the global
164 thread ID.
165 * record-btrace.c (record_btrace_open): Use global thread IDs.
166 * remote.c (process_initial_stop_replies): Also consider the
167 inferior number.
168 * target.c (target_pre_inferior): Clear the inferior's highest
169 thread num.
170 * thread.c (clear_thread_inferior_resources): Adjust to use the
171 global thread ID.
172 (new_thread): New inferior parameter. Adjust to use it. Set both
173 the thread's global ID and the thread's per-inferior ID.
174 (add_thread_silent): Adjust.
175 (find_thread_global_id): New.
176 (find_thread_id): Make static. Adjust to rename.
177 (valid_thread_id): Rename to ...
178 (valid_global_thread_id): ... this.
179 (pid_to_thread_id): Rename to ...
180 (ptid_to_global_thread_id): ... this.
181 (thread_id_to_pid): Rename to ...
182 (global_thread_id_to_ptid): ... this. Adjust.
183 (first_thread_of_process): Adjust.
184 (do_captured_list_thread_ids): Adjust to use global thread IDs.
185 (should_print_thread): New function.
186 (print_thread_info): Rename to ...
187 (print_thread_info_1): ... this, and add new show_global_ids
188 parameter. Handle it. Iterate over inferiors.
189 (print_thread_info): Reimplement as wrapper around
190 print_thread_info_1.
191 (show_inferior_qualified_tids): New function.
192 (print_thread_id): Use it.
193 (tp_array_compar): Compare inferior numbers too.
194 (thread_apply_command): Use tid_range_parser.
195 (do_captured_thread_select): Use parse_thread_id.
196 (thread_id_make_value): Adjust.
197 (_initialize_thread): Adjust "info threads" help string.
198 * varobj.c (struct varobj_root): Update comment.
199 (varobj_create): Adjust to use global thread IDs.
200 (value_of_root_1): Adjust to use global_thread_id_to_ptid.
201 * windows-tdep.c (display_tib): No longer accept an argument.
202 * cli/cli-utils.c (get_number_trailer): Make extern.
203 * cli/cli-utils.h (get_number_trailer): Declare.
204 (get_number_const): Adjust documentation.
205 * mi/mi-cmd-var.c (mi_cmd_var_update_iter): Adjust to use global
206 thread IDs.
207 * mi/mi-interp.c (mi_new_thread, mi_thread_exit)
208 (mi_on_normal_stop, mi_output_running_pid, mi_on_resume):
209 * mi/mi-main.c (mi_execute_command, mi_cmd_execute): Likewise.
210 * guile/scm-breakpoint.c (gdbscm_set_breakpoint_thread_x):
211 Likewise.
212 * python/py-breakpoint.c (bppy_set_thread): Likewise.
213 * python/py-finishbreakpoint.c (bpfinishpy_init): Likewise.
214 * python/py-infthread.c (thpy_get_num): Add comment and return the
215 per-inferior thread ID.
216 (thread_object_getset): Update comment of "num".
217
218 2016-01-13 Pedro Alves <palves@redhat.com>
219
220 * breakpoint.c (remove_threaded_breakpoints)
221 (print_one_breakpoint_location): Use print_thread_id.
222 * btrace.c (btrace_enable, btrace_disable, btrace_teardown)
223 (btrace_fetch, btrace_clear): Use print_thread_id.
224 * common/print-utils.c (CELLSIZE): Delete.
225 (get_cell): Rename to ...
226 (get_print_cell): ... this and made extern. Adjust call callers.
227 Adjust to use PRINT_CELL_SIZE.
228 * common/print-utils.h (get_print_cell): Declare.
229 (PRINT_CELL_SIZE): New.
230 * gdbthread.h (print_thread_id): Declare.
231 * infcmd.c (signal_command): Use print_thread_id.
232 * inferior.c (print_inferior): Use print_thread_id.
233 * infrun.c (handle_signal_stop)
234 (insert_exception_resume_breakpoint)
235 (insert_exception_resume_from_probe)
236 (print_signal_received_reason): Use print_thread_id.
237 * record-btrace.c (record_btrace_info)
238 (record_btrace_resume_thread, record_btrace_cancel_resume)
239 (record_btrace_step_thread, record_btrace_wait): Use
240 print_thread_id.
241 * thread.c (thread_apply_all_command): Use print_thread_id.
242 (print_thread_id): New function.
243 (thread_apply_command): Use print_thread_id.
244 (thread_command, thread_find_command, do_captured_thread_select):
245 Use print_thread_id.
246
247 2016-01-13 Pedro Alves <palves@redhat.com>
248
249 * NEWS: Mention InferiorThread.inferior.
250 * python/py-infthread.c (thpy_get_inferior): New.
251 (thread_object_getset): Register "inferior".
252
253 2016-01-13 Pedro Alves <palves@redhat.com>
254
255 * NEWS: Mention $_inferior.
256 * inferior.c (inferior_id_make_value): New.
257 (inferior_funcs): New.
258 (_initialize_inferior): Create $_inferior variable.
259
260 2016-01-13 Pedro Alves <palves@redhat.com>
261
262 PR breakpoints/19388
263 * frame.c (get_current_frame): Use validate_registers_access.
264 * gdbthread.h (validate_registers_access): Declare.
265 * infrun.c (validate_siginfo_access): Delete.
266 (siginfo_value_read, siginfo_value_write): Use
267 validate_registers_access.
268 * thread.c (validate_registers_access): New function.
269
270 2016-01-12 Josh Stone <jistone@redhat.com>
271 Philippe Waroquiers <philippe.waroquiers@skynet.be>
272
273 * NEWS (Changes since GDB 7.10): Mention QCatchSyscalls and the
274 syscall_entry and syscall_return stop reasons. Mention GDB
275 support for remote catch syscall.
276 * remote.c (PACKET_QCatchSyscalls): New enum.
277 (remote_set_syscall_catchpoint): New function.
278 (remote_protocol_features): New element for QCatchSyscalls.
279 (remote_parse_stop_reply): Parse syscall_entry/return stops.
280 (init_remote_ops): Install remote_set_syscall_catchpoint.
281 (_initialize_remote): Config QCatchSyscalls.
282 * linux-nat.h (struct lwp_info) <syscall_state>: Comment typo.
283
284 2016-01-12 Yao Qi <yao.qi@linaro.org>
285
286 * nat/linux-ptrace.c (linux_child_function): Cast child_stack
287 to gdb_byte * and pass to linux_fork_to_function.
288
289 2016-01-12 Yao Qi <yao.qi@linaro.org>
290
291 * nat/linux-ptrace.c (linux_fork_to_function): Change type
292 of argument 'function'.
293 (linux_grandchild_function): Change return type to 'int'.
294 Change child_stack's type to 'void *'.
295 (linux_child_function): Likewise.
296
297 2016-01-12 Pedro Alves <palves@redhat.com>
298
299 Remove use of the registered trademark symbol throughout.
300
301 2016-01-12 Thomas Schwinge <thomas@codesourcery.com>
302
303 * reply_mig_hack.awk: Rewrite one regular expression.
304
305 2016-01-11 Mike Frysinger <vapier@gentoo.org>
306
307 * acinclude.m4: Include new warning.m4 file.
308 * configure: Regenerated.
309 * configure.ac: Move all warning logic ...
310 * warning.m4: ... here.
311
312 2016-01-08 Yao Qi <yao.qi@linaro.org>
313
314 * extension.c: Include target.h.
315 (set_active_ext_lang): Only call install_gdb_sigint_handler,
316 check_quit_flag, and set_quit_flag if target_terminal_is_ours
317 returns false.
318 (restore_active_ext_lang): Likewise.
319 * target.c (target_terminal_is_ours): New function.
320 * target.h (target_terminal_is_ours): Declare.
321
322 2016-01-07 Maciej W. Rozycki <macro@imgtec.com>
323
324 * mips-tdep.c (mips_breakpoint_from_pc): Rename local `status'
325 to `err' in the little-endian leg.
326
327 2016-01-06 Yao Qi <yao.qi@linaro.org>
328
329 * arch/arm-get-next-pcs.c (arm_get_next_pcs): Move it to some
330 lines below.
331 (thumb_get_next_pcs_raw): Make it static.
332 (arm_get_next_pcs_raw): Likewise.
333 * arch/arm-get-next-pcs.h (thumb_get_next_pcs_raw): Remove the
334 declaration.
335 (arm_get_next_pcs_raw): Likewise.
336
337 2016-01-05 Mike Frysinger <vapier@gentoo.org>
338
339 * version.in: Change cvs to git.
340
341 2016-01-05 Mike Frysinger <vapier@gentoo.org>
342
343 * configure.tgt (score-*-*): Delete gdb_sim assignment.
344
345 2016-01-05 Pedro Alves <palves@redhat.com>
346
347 PR sim/13418
348 * configure.ac: Define WITH_PPC_SIM when linking in the sim and
349 the target is powerpc*.
350 * rs6000-tdep.c (init_sim_regno_table): Check WITH_PPC_SIM instead
351 of WITH_SIM.
352 * configure: Regenerate.
353 * config.in: Regenerate.
354
355 2016-01-04 Markus Metzger <markus.t.metzger@intel.com>
356
357 * btrace.c (btrace_pt_readmem_callback): Do not return in TRY/CATCH.
358
359 2016-01-02 Mike Frysinger <vapier@gentoo.org>
360
361 * configure.tgt (powerpc*-*-*): Delete test call and
362 always assign gdb_sim.
363
364 2016-01-01 Joel Brobecker <brobecker@adacore.com>
365
366 Update year range in copyright notice of all files.
367
368 2016-01-01 Joel Brobecker <brobecker@adacore.com>
369
370 * top.c (print_gdb_version): Change copyright year in version
371 message.
372
373 2016-01-01 Joel Brobecker <brobecker@adacore.com>
374
375 * config/djgpp/fnchange.lst: Add entry for gdb/ChangeLog-2015.
376
377 For older changes see ChangeLog-2015.
378 \f
379 Local Variables:
380 mode: change-log
381 left-margin: 8
382 fill-column: 74
383 version-control: never
384 coding: utf-8
385 End:
This page took 0.038858 seconds and 3 git commands to generate.