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