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