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