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