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