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