]> git.ipfire.org Git - thirdparty/binutils-gdb.git/blame - gdb/ChangeLog
Epilogue unwinder for PowerPC.
[thirdparty/binutils-gdb.git] / gdb / ChangeLog
CommitLineData
2608dbf8
WW
12015-01-17 Wei-cheng Wang <cole945@gmail.com>
2
3 * rs6000-tdep.c (rs6000_in_function_epilogue_p): Rename to
4 rs6000_in_function_epilogue_frame_p and add an argument
5 for frame_info.
6 (rs6000_epilogue_frame_cache, rs6000_epilogue_frame_this_id,
7 rs6000_epilogue_frame_prev_register, rs6000_epilogue_frame_sniffer):
8 New functions.
9 (rs6000_epilogue_frame_unwind): New.
10 (rs6000_gdbarch_init): Append epilogue unwinder.
11
4c347be6
SDJ
122015-01-16 Sergio Durigan Junior <sergiodj@redhat.com>
13
14 * nat/linux-personality.c: Replace "#ifndef
15 HAVE_DECL_ADDR_NO_RANDOMIZE" by "#if
16 !HAVE_DECL_ADDR_NO_RANDOMIZE", fixing a regression in RHEL-5
17 systems.
18
9f2850ba
EZ
192015-01-16 Eli Zaretskii <eliz@gnu.org>
20
6cdb25f4
EZ
21 * tui/tui-win.c (tui_rehighlight_all, tui_set_var_cmd): New
22 functions.
23 (_initialize_tui_win) <border-kind, border-mode>:
24 <active-border-mode>: Use tui_set_var_cmd as the "set" function.
c54da50d
EZ
25 (tui_set_tab_width_command): Fix the commentary.
26
6cdb25f4
EZ
27 * tui/tui-win.h: Add prototype for tui_rehighlight_all.
28
bf555842
EZ
29 * tui/tui-win.c (tui_scroll_left_command, tui_scroll_right_command):
30 Doc fix.
cb86fcc1
EZ
31 (tui_set_tab_width_command): Delete and recreate the source and
32 the disassembly windows, to show the effect of the changed tab
33 size immediately.
bf555842 34
9f2850ba
EZ
35 * tui/tui-data.h (LINE_PREFIX): Make shorter
36 (MAX_PID_WIDTH): Enlarge from 14 to 19, to leave enough space for
37 "Thread NNNNN.XXXX" thread ID notation on Windows.
38
95761b2d
JK
392015-01-16 Jan Kratochvil <jan.kratochvil@redhat.com>
40
41 Fix gcc-5 compilation.
42 * hppa-tdep.c (inst_saves_gr): Fix parentheses typo.
43
8cc73a39
SDJ
442015-01-15 Sergio Durigan Junior <sergiodj@redhat.com>
45
46 * Makefile.in (HFILES_NO_SRCDIR): Add nat/linux-personality.h.
47 (linux-personality.o): New rule.
48 * common/common-defs.h: Include <stdint.h>.
49 * config/aarch64/linux.mh (NATDEPFILES): Include
50 linux-personality.o.
51 * config/alpha/alpha-linux.mh (NATDEPFILES): Likewise.
52 * config/arm/linux.mh (NATDEPFILES): Likewise.
53 * config/i386/linux64.mh (NATDEPFILES): Likewise.
54 * config/i386/linux.mh (NATDEPFILES): Likewise.
55 * config/ia64/linux.mh (NATDEPFILES): Likewise.
56 * config/m32r/linux.mh (NATDEPFILES): Likewise.
57 * config/m68k/linux.mh (NATDEPFILES): Likewise.
58 * config/mips/linux.mh (NATDEPFILES): Likewise.
59 * config/pa/linux.mh (NATDEPFILES): Likewise.
60 * config/powerpc/linux.mh (NATDEPFILES): Likewise.
61 * config/powerpc/ppc64-linux.mh (NATDEPFILES): Likewise.
62 * config/powerpc/spu-linux.mh (NATDEPFILES): Likewise.
63 * config/s390/linux.mh (NATDEPFILES): Likewise.
64 * config/sparc/linux64.mh (NATDEPFILES): Likewise.
65 * config/sparc/linux.mh (NATDEPFILES): Likewise.
66 * config/tilegx/linux.mh (NATDEPFILES): Likewise.
67 * config/xtensa/linux.mh (NATDEPFILES): Likewise.
68 * defs.h: Remove #include <stdint.h> (moved to
69 common/common-defs.h).
70 * linux-nat.c: Include nat/linux-personality.h. Remove #include
71 <sys/personality.h>; do not define ADDR_NO_RANDOMIZE (moved to
72 nat/linux-personality.c).
73 (linux_nat_create_inferior): Remove code to disable address space
74 randomization (moved to nat/linux-personality.c). Create cleanup
75 to disable address space randomization.
76 * nat/linux-personality.c: New file.
77 * nat/linux-personality.h: Likewise.
78
fb23d554
SDJ
792015-01-15 Sergio Durigan Junior <sergiodj@redhat.com>
80
81 * Makefile.in (ALLDEPFILES): Including common/mingw-strerror.c and
82 common/posix-strerror.c.
83 (posix-strerror.o): New rule.
84 (mingw-strerror.o): Likewise.
85 * common/common-utils.h (safe_strerror): Move prototype to here,
86 from utils.h.
87 * common/common.host: New file.
88 * common/mingw-strerror.c: Likewise.
89 * common/posix-strerror.c: Likewise.
90 * configure: Regenerated.
91 * configure.ac: Source common/common.host. Add variable
92 common_host_obs to gdb_host_obs.
93 * contrib/ari/gdb_ari.sh: Mention gdb/common/mingw-strerror.c and
94 gdb/common/posix-strerror.c when warning about the use of
95 strerror.
96 * mingw-hdep.c (safe_strerror): Remove definition; move it to
97 common/mingw-strerror.c.
98 * posix-hdep.c (safe_strerror): Remove definition; move it to
99 common/posix-hdep.c.
100 * utils.h (safe_strerror): Remove prototype; move to
101 common/common-utils.h.
102
3af8af43
JB
1032015-01-15 Joel Brobecker <brobecker@adacore.com>
104
105 GDB 7.8.2 released.
106
bafffb51
JB
1072015-01-15 Joel Brobecker <brobecker@adacore.com>
108
109 * ada-lang.c (ada_array_bound_from_type): Ignore array's parallel
110 ___XA type if the array has already been fixed.
111
cdf43629
YQ
1122015-01-14 Yao Qi <yao@codesourcery.com>
113
114 * Makefile.in (ppc-linux.o): New rule.
115 * config/powerpc/ppc64-linux.mh (NATDEPFILES): Add ppc-linux.o.
116 * configure.ac: AC_CHECK_FUNCS(getauxval).
117 * config.in: Re-generated.
118 * configure: Re-generated.
119 * nat/ppc-linux.h [__powerpc64__] (ppc64_64bit_inferior_p):
120 Declare.
121 * nat/ppc-linux.c: New file.
122 * ppc-linux-nat.c (ppc_linux_target_wordsize) [__powerpc64__]:
123 Call ppc64_64bit_inferior_p.
124
514c5338
YQ
1252015-01-14 Yao Qi <yao@codesourcery.com>
126
127 * ppc-linux-nat.c (PT_ORIG_R3, PT_TRAP): Move to
128 nat/ppc-linux.h.
129 (PPC_FEATURE_CELL, PPC_FEATURE_BOOKE): Likewise.
130 (PPC_FEATURE_HAS_DFP): Likewise.
131 (PTRACE_GETVRREGS, PTRACE_SETVRREGS): Likewise.
132 (PTRACE_GETVSXREGS, PTRACE_SETVSXREGS): Likewise.
133 (PTRACE_GETEVRREGS, PTRACE_SETEVRREGS): Likewise.
134 Include "nat/ppc-linux.h".
135 * nat/ppc-linux.h: New file.
136 * Makefile.in (HFILES_NO_SRCDIR): Add nat/ppc-linux.h.
137
5589af0e
PA
1382015-01-14 Pedro Alves <palves@redhat.com>
139
140 PR gdb/17525
141 * breakpoint.c: Include "interps.h".
142 (bpstat_do_actions_1): Also check whether the interpreter is
143 async.
144
6c400b59
PA
1452015-01-14 Pedro Alves <palves@redhat.com>
146
147 PR cli/17828
148 * infrun.c (reinstall_readline_callback_handler_cleanup): Don't
149 reinstall if the interpreter is sync.
150
e02c96a7
DE
1512015-01-13 Doug Evans <dje@google.com>
152
153 * objfiles.c (objfile_filename): New function.
154 * objfiles.h (objfile_filename): Declare it.
155 (objfile_name): Add function comment.
156 * python/py-objfile.c (objfpy_lookup_objfile_by_name): Try both the
157 bfd file name (which may be realpath'd), and the original name.
158
3b2f13ff
JB
1592015-01-13 Joel Brobecker <brobecker@adacore.com>
160
161 * NEWS: Create a new section for the next release branch.
162 Rename the section of the current branch, now that it has
163 been cut.
164
b4cfe7f8
JB
1652015-01-13 Joel Brobecker <brobecker@adacore.com>
166
167 GDB 7.9 branch created (92fc2e6978d9a7c8324c7e851dbee59e22ec7a37):
168 * version.in: Bump version to 7.9.50.DATE-cvs.
169
92fc2e69
JB
1702015-01-13 Joel Brobecker <brobecker@adacore.com>
171
172 * nat/linux-procfs.c (linux_proc_attach_tgid_threads):
173 Remove trailing new-line in argument of call to warning.
174
f71f0b0d
JB
1752015-01-13 Joel Brobecker <brobecker@adacore.com>
176
177 * linux-nat.c (attach_proc_task_lwp_callback): Remove trailing
178 new-line in argument of call to "warning".
179
04dccad0
JB
1802015-01-13 Joel Brobecker <brobecker@adacore.com>
181
182 * ada-lang.c (ada_lookup_symbol_nonlocal): If name not found
183 in static block, then try searching for primitive types.
184
08b13bdd
PP
1852015-01-12 Patrick Palka <patrick@parcs.ath.cx>
186
187 * top.h (gdb_add_history): Declare.
188 * top.c (command_count): New variable.
189 (gdb_add_history): New function.
190 (gdb_safe_append_history): New static function.
191 (quit_force): Call it.
192 (command_line_input): Use gdb_add_history instead of
193 add_history.
194 * event-top.c (command_line_handler): Likewise.
195
4ac15b59
JC
1962015-01-12 James Clarke <jrtc27@jrtc27.com> (tiny patch)
197
198 PR gdb/17046
199 * darwin-nat.c: Replace <machine/setjmp.h> #include by
200 <setjmp.h> #include.
201
005e54bb
DE
2022015-01-11 Doug Evans <xdje42@gmail.com>
203
204 * dwarf2read.c (compute_delayed_physnames): Use TYPE_FN_FIELD_PHYSNAME.
205
439250fb
DE
2062015-01-11 Doug Evans <xdje42@gmail.com>
207
208 PR gdb/15830
209 * NEWS: The "maint demangle" command is renamed as "demangle".
210 * demangle.c: #include cli/cli-utils.h, language.h.
211 (demangle_command): New function.
212 (_initialize_demangle): Add new command "demangle".
213 * maint.c (maintenance_demangle): Stub out.
214 (_initialize_maint_cmds): Update help text for "maint demangle",
215 and mark as deprecated.
216
ebf3aa72
MK
2172015-01-11 Mark Kettenis <kettenis@gnu.org>
218
219 * inf-ptrace.c (inf_ptrace_follow_fork): Adjust now that
220 inferior_thread is a function.
221
6bf045cd
PP
2222015-01-09 Patrick Palka <patrick@parcs.ath.cx>
223
224 * Makefile.in (.y.c): Don't munge yacc's #line
225 directives.
226
588dcc3e
PP
2272015-01-09 Patrick Palka <patrick@parcs.ath.cx>
228
229 * utils.c (defaulted_query): Rewrite to use gdb_readline_wrapper
230 to prompt for input.
231 * tui/tui-hooks.c (tui_query_hook): Remove.
232 (tui_install_hooks): Don't set deprecated_query_hook.
233 * tui/tui-io.c (tui_redisplay_readline): Fix off-by-one error in
234 height calculation. Always update the command window's cur_line.
235
9c02b525
PA
2362015-01-09 Pedro Alves <palves@redhat.com>
237
238 * breakpoint.c (hardware_breakpoint_inserted_here_p): New
239 function.
240 * breakpoint.h (hardware_breakpoint_inserted_here_p): New
241 declaration.
242 * linux-nat.c (linux_nat_status_is_event): Move higher up in file.
243 (linux_resume_one_lwp): Store the thread's PC. Adjust to clear
244 stop_reason.
245 (check_stopped_by_watchpoint): New function.
246 (save_sigtrap): Reimplement.
247 (linux_nat_stopped_by_watchpoint): Adjust.
248 (linux_nat_lp_status_is_event): Delete.
249 (stop_wait_callback): Only call save_sigtrap after storing the
250 pending status.
251 (status_callback): If the thread had been stopped for a breakpoint
252 that has since been removed, discard the event and resume the LWP.
253 (count_events_callback, select_event_lwp_callback): Use
254 lwp_status_pending_p instead of linux_nat_lp_status_is_event.
255 (cancel_breakpoint): Rename to ...
256 (check_stopped_by_breakpoint): ... this. Record whether the LWP
257 stopped for a software breakpoint or hardware breakpoint.
258 (select_event_lwp): Only give preference to the stepping LWP in
259 all-stop mode. Adjust comments.
260 (stop_and_resume_callback): Remove references to new_pending_p.
261 (linux_nat_filter_event): Likewise. Leave exit events of the
262 leader thread pending here. Handle signal short circuiting here.
263 Only call save_sigtrap after storing the pending waitstatus.
264 (linux_nat_wait_1): Remove 'retry' label. Remove references to
265 new_pending. Don't handle leaving events the caller is not
266 interested in pending here, nor handle signal short-circuiting
267 here. Also give equal priority to all LWPs that have had events
268 in non-stop mode. If reporting a software breakpoint event,
269 unadjust the LWP's PC.
270 * linux-nat.h (enum lwp_stop_reason): New.
271 (struct lwp_info) <stop_pc>: New field.
272 (struct lwp_info) <stopped_by_watchpoint>: Delete field.
273 (struct lwp_info) <stop_reason>: New field.
274 * x86-linux-nat.c (x86_linux_prepare_to_resume): Adjust.
275
8af756ef
PA
2762015-01-09 Pedro Alves <palves@redhat.com>
277
278 * linux-nat.c (linux_handle_extended_wait) <PTRACE_EVENT_EXEC>:
279 Set the LWP's 'resumed' flag.
280
8a99810d
PA
2812015-01-09 Pedro Alves <palves@redhat.com>
282
283 * linux-nat.c (linux_resume_one_lwp): New function.
284 (resume_lwp): Use lwp_status_pending_p and linux_resume_one_lwp.
285 (linux_nat_resume): Use lwp_status_pending_p and
286 linux_resume_one_lwp.
287 (linux_handle_syscall_trap): Use linux_resume_one_lwp.
288 (linux_handle_extended_wait): Use linux_resume_one_lwp.
289 (status_callback, running_callback): Use lwp_status_pending_p.
290 (lwp_status_pending_p): New function.
291 (stop_and_resume_callback): Use lwp_status_pending_p.
292 (linux_nat_filter_event): Use linux_resume_one_lwp.
293 (linux_nat_wait_1): Always use status_callback to look for an LWP
294 with a pending status. Use linux_resume_one_lwp.
295 (resume_stopped_resumed_lwps): Use lwp_status_pending_p and
296 linux_resume_one_lwp.
297
f7ce857f
PA
2982015-01-09 Pedro Alves <palves@redhat.com>
299
300 * breakpoint.c (bp_location_inserted_here_p): New function,
301 factored out from ...
302 (breakpoint_inserted_here_p): ... here. Use
303 ALL_BP_LOCATIONS_AT_ADDR.
304 (software_breakpoint_inserted_here_p): Use
305 bp_location_inserted_here_p and ALL_BP_LOCATIONS_AT_ADDR.
306
c1a747c1
PA
3072014-01-09 Pedro Alves <palves@redhat.com>
308
309 Skip enabling event reporting if the kernel supports
310 PTRACE_EVENT_CLONE.
311 * linux-thread-db.c: Include "nat/linux-ptrace.h".
312 (thread_db_use_events): New function.
313 (try_thread_db_load_1): Check thread_db_use_events before enabling
314 event reporting.
315 (update_thread_state): New function.
316 (attach_thread): Use it. Check thread_db_use_events before
317 enabling event reporting.
318 (thread_db_detach): Check thread_db_use_events before disabling
319 event reporting.
320 (find_new_threads_callback): Check thread_db_use_events before
321 enabling event reporting. Update the thread's state if not using
322 libthread_db events.
323
a33e3959
PA
3242015-01-09 Pedro Alves <palves@redhat.com>
325
326 * linux-nat.c (lin_lwp_attach_lwp): Assert that the lwp id we're
327 about to wait for is > 0.
328 * linux-thread-db.c (find_new_threads_callback): Ignore thread if
329 the kernel thread ID is -1.
330
8784d563
PA
3312015-01-09 Pedro Alves <palves@redhat.com>
332
333 * linux-nat.c (attach_proc_task_lwp_callback): New function.
334 (linux_nat_attach): Use linux_proc_attach_tgid_threads.
335 (wait_lwp, linux_nat_filter_event): If not set yet, set the lwp's
336 ptrace option flags.
337 * linux-nat.h (struct lwp_info) <must_set_ptrace_flags>: New
338 field.
339 * nat/linux-procfs.c: Include <dirent.h>.
340 (linux_proc_get_int): New parameter "warn". Handle it.
341 (linux_proc_get_tgid): Adjust.
342 (linux_proc_get_tracerpid): Rename to ...
343 (linux_proc_get_tracerpid_nowarn): ... this.
344 (linux_proc_pid_get_state): New function, factored out from
345 (linux_proc_pid_has_state): ... this. Add new parameter "warn"
346 and handle it.
347 (linux_proc_pid_is_gone): New function.
348 (linux_proc_pid_is_stopped): Adjust.
349 (linux_proc_pid_is_zombie_maybe_warn)
350 (linux_proc_pid_is_zombie_nowarn): New functions.
351 (linux_proc_pid_is_zombie): Use
352 linux_proc_pid_is_zombie_maybe_warn.
353 (linux_proc_attach_tgid_threads): New function.
354 * nat/linux-procfs.h (linux_proc_get_tgid): Update comment.
355 (linux_proc_get_tracerpid): Rename to ...
356 (linux_proc_get_tracerpid_nowarn): ... this, and update comment.
357 (linux_proc_pid_is_gone): New declaration.
358 (linux_proc_pid_is_zombie): Update comment.
359 (linux_proc_pid_is_zombie_nowarn): New declaration.
360 (linux_proc_attach_lwp_func): New typedef.
361 (linux_proc_attach_tgid_threads): New declaration.
362 * nat/linux-ptrace.c (linux_ptrace_attach_fail_reason): Adjust to
363 use nowarn functions.
364 (linux_ptrace_attach_fail_reason_string): Move here from
365 gdbserver/linux-low.c and rename.
366 (ptrace_supports_feature): If the current ptrace options are not
367 known yet, check them now, instead of asserting.
368 * nat/linux-ptrace.h (linux_ptrace_attach_fail_reason_string):
369 Declare.
370
883ed13e
PA
3712015-01-09 Pedro Alves <palves@redhat.com>
372
373 * linux-thread-db.c (thread_db_find_new_threads_silently)
374 (try_thread_db_load_1, try_thread_db_load, thread_db_load_search)
375 (find_new_threads_once): Print debug output on gdb_stdlog.
376
1710aab8
CG
3772015-01-09 Chen Gang <gang.chen.5i5j@gmail.com>
378 Pedro Alves <palves@redhat.com>
379
380 * compile/compile.c: Include "gdb_wait.h".
381 (do_rmdir): Check return value, and free 'zap'.
382
b597c318
YQ
3832015-01-08 Pedro Alves <palves@redhat.com>
384 Yao Qi <yao@codesourcery.com>
385
386 * dwarf2loc.c (indirect_pieced_value): Don't call
387 gdb_sign_extend. Call extract_signed_integer instead.
388 * utils.c (gdb_sign_extend): Remove.
389 * utils.h (gdb_sign_extend): Remove declaration.
390
025ac414
PM
3912015-01-07 Pierre Muller <muller@sourceware.org>
392
393 PR symtab/17811
394 * stabsread.c (define_symbol): Set language for C++ special symbols.
395
fa5af12a
PP
3962015-01-07 Patrick Palka <patrick@parcs.ath.cx>
397
398 * inflow.c (initial_gdb_ttystate): Tweak comment.
399
ea42d6f8
JB
4002015-01-07 Joel Brobecker <brobecker@adacore.com>
401
402 * inflow.c (set_initial_gdb_ttystate): Add empty line after
403 comment documenting function.
404
6a06d660
PP
4052015-01-07 Patrick Palka <patrick@parcs.ath.cx>
406
407 * terminal.h (set_initial_gdb_ttystate): Declare.
408 * inflow.c (initial_gdb_ttystate): New static variable.
409 (set_initial_gdb_ttystate): New setter.
410 (child_terminal_init_with_pgrp): Copy initial_gdb_ttystate
411 instead of our current terminal state.
412 * top.c (gdb_init): Call set_initial_gdb_ttystate.
413
e810d75b
JB
4142015-01-07 Joel Brobecker <brobecker@adacore.com>
415
416 * guile/scm-type.c (tyscm_array_1): Add comment.
417 * python/py-type.c (typy_array_1): Add comment.
418
fce10a84
JB
4192015-01-06 Joel Brobecker <brobecker@adacore.com>
420
421 * guile/scm-type.c (tyscm_array_1): Do not raise out-of-range
422 error if N2 is equal to N1 - 1.
423
8503d6e1
JB
4242015-01-06 Joel Brobecker <brobecker@adacore.com>
425
426 * python/py-type.c (typy_array_1): Do not raise negative-length
427 exception if N2 is equal to N1 - 1.
428
4d29c0a8
DE
4292015-01-03 Doug Evans <xdje42@gmail.com>
430
431 * c-exp.y: Whitespace cleanup.
432 (classify_inner_name): Remove extra ;.
433
eaa6a9a4
MR
4342015-01-02 Maciej W. Rozycki <macro@codesourcery.com>
435
436 * mips-tdep.c (mips32_scan_prologue): Keep the extracted stack
437 offset signed.
438
02fe9972
DE
4392015-01-02 Doug Evans <dje@google.com>
440
441 * dwarf2read.c (setup_type_unit_groups): Remove outdated comment.
442
e2ada9cb
DE
4432015-01-02 Doug Evans <dje@google.com>
444
445 * symtab.h (struct symbol): Fix typo in comment.
446
32d0add0
JB
4472015-01-01 Joel Brobecker <brobecker@adacore.com>
448
449 Update year range in copyright notice of all files.
450
76f2b779
JB
4512015-01-01 Joel Brobecker <brobecker@adacore.com>
452
453 * top.c (print_gdb_version): Update copyright year to 2015.
454
077309e2 4552015-01-01 Joel Brobecker <brobecker@adacore.com>
6bf6fd09 456
077309e2 457 * config/djgpp/fnchange.lst: Add entry for gdb/ChangeLog-2014.
6bf6fd09 458
077309e2 459For older changes see ChangeLog-2014.
c906108c
SS
460\f
461Local Variables:
462mode: change-log
463left-margin: 8
464fill-column: 74
465version-control: never
57da7796 466coding: utf-8
c906108c 467End: