1 2015-01-16 Eli Zaretskii <eliz@gnu.org>
3 * tui/tui-win.c (tui_rehighlight_all, tui_set_var_cmd): New
5 (_initialize_tui_win) <border-kind, border-mode>:
6 <active-border-mode>: Use tui_set_var_cmd as the "set" function.
7 * tui/tui-win.h: Add prototype for tui_rehighlight_all.
9 * tui/tui-win.c (tui_scroll_left_command, tui_scroll_right_command):
11 (tui_set_tab_width_command): Delete and recreate the source and
12 the disassembly windows, to show the effect of the changed tab
15 * tui/tui-data.h (LINE_PREFIX): Make shorter
16 (MAX_PID_WIDTH): Enlarge from 14 to 19, to leave enough space for
17 "Thread NNNNN.XXXX" thread ID notation on Windows.
19 2015-01-16 Jan Kratochvil <jan.kratochvil@redhat.com>
21 Fix gcc-5 compilation.
22 * hppa-tdep.c (inst_saves_gr): Fix parentheses typo.
24 2015-01-15 Sergio Durigan Junior <sergiodj@redhat.com>
26 * Makefile.in (HFILES_NO_SRCDIR): Add nat/linux-personality.h.
27 (linux-personality.o): New rule.
28 * common/common-defs.h: Include <stdint.h>.
29 * config/aarch64/linux.mh (NATDEPFILES): Include
31 * config/alpha/alpha-linux.mh (NATDEPFILES): Likewise.
32 * config/arm/linux.mh (NATDEPFILES): Likewise.
33 * config/i386/linux64.mh (NATDEPFILES): Likewise.
34 * config/i386/linux.mh (NATDEPFILES): Likewise.
35 * config/ia64/linux.mh (NATDEPFILES): Likewise.
36 * config/m32r/linux.mh (NATDEPFILES): Likewise.
37 * config/m68k/linux.mh (NATDEPFILES): Likewise.
38 * config/mips/linux.mh (NATDEPFILES): Likewise.
39 * config/pa/linux.mh (NATDEPFILES): Likewise.
40 * config/powerpc/linux.mh (NATDEPFILES): Likewise.
41 * config/powerpc/ppc64-linux.mh (NATDEPFILES): Likewise.
42 * config/powerpc/spu-linux.mh (NATDEPFILES): Likewise.
43 * config/s390/linux.mh (NATDEPFILES): Likewise.
44 * config/sparc/linux64.mh (NATDEPFILES): Likewise.
45 * config/sparc/linux.mh (NATDEPFILES): Likewise.
46 * config/tilegx/linux.mh (NATDEPFILES): Likewise.
47 * config/xtensa/linux.mh (NATDEPFILES): Likewise.
48 * defs.h: Remove #include <stdint.h> (moved to
49 common/common-defs.h).
50 * linux-nat.c: Include nat/linux-personality.h. Remove #include
51 <sys/personality.h>; do not define ADDR_NO_RANDOMIZE (moved to
52 nat/linux-personality.c).
53 (linux_nat_create_inferior): Remove code to disable address space
54 randomization (moved to nat/linux-personality.c). Create cleanup
55 to disable address space randomization.
56 * nat/linux-personality.c: New file.
57 * nat/linux-personality.h: Likewise.
59 2015-01-15 Sergio Durigan Junior <sergiodj@redhat.com>
61 * Makefile.in (ALLDEPFILES): Including common/mingw-strerror.c and
62 common/posix-strerror.c.
63 (posix-strerror.o): New rule.
64 (mingw-strerror.o): Likewise.
65 * common/common-utils.h (safe_strerror): Move prototype to here,
67 * common/common.host: New file.
68 * common/mingw-strerror.c: Likewise.
69 * common/posix-strerror.c: Likewise.
70 * configure: Regenerated.
71 * configure.ac: Source common/common.host. Add variable
72 common_host_obs to gdb_host_obs.
73 * contrib/ari/gdb_ari.sh: Mention gdb/common/mingw-strerror.c and
74 gdb/common/posix-strerror.c when warning about the use of
76 * mingw-hdep.c (safe_strerror): Remove definition; move it to
77 common/mingw-strerror.c.
78 * posix-hdep.c (safe_strerror): Remove definition; move it to
80 * utils.h (safe_strerror): Remove prototype; move to
81 common/common-utils.h.
83 2015-01-15 Joel Brobecker <brobecker@adacore.com>
87 2015-01-15 Joel Brobecker <brobecker@adacore.com>
89 * ada-lang.c (ada_array_bound_from_type): Ignore array's parallel
90 ___XA type if the array has already been fixed.
92 2015-01-14 Yao Qi <yao@codesourcery.com>
94 * Makefile.in (ppc-linux.o): New rule.
95 * config/powerpc/ppc64-linux.mh (NATDEPFILES): Add ppc-linux.o.
96 * configure.ac: AC_CHECK_FUNCS(getauxval).
97 * config.in: Re-generated.
98 * configure: Re-generated.
99 * nat/ppc-linux.h [__powerpc64__] (ppc64_64bit_inferior_p):
101 * nat/ppc-linux.c: New file.
102 * ppc-linux-nat.c (ppc_linux_target_wordsize) [__powerpc64__]:
103 Call ppc64_64bit_inferior_p.
105 2015-01-14 Yao Qi <yao@codesourcery.com>
107 * ppc-linux-nat.c (PT_ORIG_R3, PT_TRAP): Move to
109 (PPC_FEATURE_CELL, PPC_FEATURE_BOOKE): Likewise.
110 (PPC_FEATURE_HAS_DFP): Likewise.
111 (PTRACE_GETVRREGS, PTRACE_SETVRREGS): Likewise.
112 (PTRACE_GETVSXREGS, PTRACE_SETVSXREGS): Likewise.
113 (PTRACE_GETEVRREGS, PTRACE_SETEVRREGS): Likewise.
114 Include "nat/ppc-linux.h".
115 * nat/ppc-linux.h: New file.
116 * Makefile.in (HFILES_NO_SRCDIR): Add nat/ppc-linux.h.
118 2015-01-14 Pedro Alves <palves@redhat.com>
121 * breakpoint.c: Include "interps.h".
122 (bpstat_do_actions_1): Also check whether the interpreter is
125 2015-01-14 Pedro Alves <palves@redhat.com>
128 * infrun.c (reinstall_readline_callback_handler_cleanup): Don't
129 reinstall if the interpreter is sync.
131 2015-01-13 Doug Evans <dje@google.com>
133 * objfiles.c (objfile_filename): New function.
134 * objfiles.h (objfile_filename): Declare it.
135 (objfile_name): Add function comment.
136 * python/py-objfile.c (objfpy_lookup_objfile_by_name): Try both the
137 bfd file name (which may be realpath'd), and the original name.
139 2015-01-13 Joel Brobecker <brobecker@adacore.com>
141 * NEWS: Create a new section for the next release branch.
142 Rename the section of the current branch, now that it has
145 2015-01-13 Joel Brobecker <brobecker@adacore.com>
147 GDB 7.9 branch created (92fc2e6978d9a7c8324c7e851dbee59e22ec7a37):
148 * version.in: Bump version to 7.9.50.DATE-cvs.
150 2015-01-13 Joel Brobecker <brobecker@adacore.com>
152 * nat/linux-procfs.c (linux_proc_attach_tgid_threads):
153 Remove trailing new-line in argument of call to warning.
155 2015-01-13 Joel Brobecker <brobecker@adacore.com>
157 * linux-nat.c (attach_proc_task_lwp_callback): Remove trailing
158 new-line in argument of call to "warning".
160 2015-01-13 Joel Brobecker <brobecker@adacore.com>
162 * ada-lang.c (ada_lookup_symbol_nonlocal): If name not found
163 in static block, then try searching for primitive types.
165 2015-01-12 Patrick Palka <patrick@parcs.ath.cx>
167 * top.h (gdb_add_history): Declare.
168 * top.c (command_count): New variable.
169 (gdb_add_history): New function.
170 (gdb_safe_append_history): New static function.
171 (quit_force): Call it.
172 (command_line_input): Use gdb_add_history instead of
174 * event-top.c (command_line_handler): Likewise.
176 2015-01-12 James Clarke <jrtc27@jrtc27.com> (tiny patch)
179 * darwin-nat.c: Replace <machine/setjmp.h> #include by
182 2015-01-11 Doug Evans <xdje42@gmail.com>
184 * dwarf2read.c (compute_delayed_physnames): Use TYPE_FN_FIELD_PHYSNAME.
186 2015-01-11 Doug Evans <xdje42@gmail.com>
189 * NEWS: The "maint demangle" command is renamed as "demangle".
190 * demangle.c: #include cli/cli-utils.h, language.h.
191 (demangle_command): New function.
192 (_initialize_demangle): Add new command "demangle".
193 * maint.c (maintenance_demangle): Stub out.
194 (_initialize_maint_cmds): Update help text for "maint demangle",
195 and mark as deprecated.
197 2015-01-11 Mark Kettenis <kettenis@gnu.org>
199 * inf-ptrace.c (inf_ptrace_follow_fork): Adjust now that
200 inferior_thread is a function.
202 2015-01-09 Patrick Palka <patrick@parcs.ath.cx>
204 * Makefile.in (.y.c): Don't munge yacc's #line
207 2015-01-09 Patrick Palka <patrick@parcs.ath.cx>
209 * utils.c (defaulted_query): Rewrite to use gdb_readline_wrapper
211 * tui/tui-hooks.c (tui_query_hook): Remove.
212 (tui_install_hooks): Don't set deprecated_query_hook.
213 * tui/tui-io.c (tui_redisplay_readline): Fix off-by-one error in
214 height calculation. Always update the command window's cur_line.
216 2015-01-09 Pedro Alves <palves@redhat.com>
218 * breakpoint.c (hardware_breakpoint_inserted_here_p): New
220 * breakpoint.h (hardware_breakpoint_inserted_here_p): New
222 * linux-nat.c (linux_nat_status_is_event): Move higher up in file.
223 (linux_resume_one_lwp): Store the thread's PC. Adjust to clear
225 (check_stopped_by_watchpoint): New function.
226 (save_sigtrap): Reimplement.
227 (linux_nat_stopped_by_watchpoint): Adjust.
228 (linux_nat_lp_status_is_event): Delete.
229 (stop_wait_callback): Only call save_sigtrap after storing the
231 (status_callback): If the thread had been stopped for a breakpoint
232 that has since been removed, discard the event and resume the LWP.
233 (count_events_callback, select_event_lwp_callback): Use
234 lwp_status_pending_p instead of linux_nat_lp_status_is_event.
235 (cancel_breakpoint): Rename to ...
236 (check_stopped_by_breakpoint): ... this. Record whether the LWP
237 stopped for a software breakpoint or hardware breakpoint.
238 (select_event_lwp): Only give preference to the stepping LWP in
239 all-stop mode. Adjust comments.
240 (stop_and_resume_callback): Remove references to new_pending_p.
241 (linux_nat_filter_event): Likewise. Leave exit events of the
242 leader thread pending here. Handle signal short circuiting here.
243 Only call save_sigtrap after storing the pending waitstatus.
244 (linux_nat_wait_1): Remove 'retry' label. Remove references to
245 new_pending. Don't handle leaving events the caller is not
246 interested in pending here, nor handle signal short-circuiting
247 here. Also give equal priority to all LWPs that have had events
248 in non-stop mode. If reporting a software breakpoint event,
249 unadjust the LWP's PC.
250 * linux-nat.h (enum lwp_stop_reason): New.
251 (struct lwp_info) <stop_pc>: New field.
252 (struct lwp_info) <stopped_by_watchpoint>: Delete field.
253 (struct lwp_info) <stop_reason>: New field.
254 * x86-linux-nat.c (x86_linux_prepare_to_resume): Adjust.
256 2015-01-09 Pedro Alves <palves@redhat.com>
258 * linux-nat.c (linux_handle_extended_wait) <PTRACE_EVENT_EXEC>:
259 Set the LWP's 'resumed' flag.
261 2015-01-09 Pedro Alves <palves@redhat.com>
263 * linux-nat.c (linux_resume_one_lwp): New function.
264 (resume_lwp): Use lwp_status_pending_p and linux_resume_one_lwp.
265 (linux_nat_resume): Use lwp_status_pending_p and
266 linux_resume_one_lwp.
267 (linux_handle_syscall_trap): Use linux_resume_one_lwp.
268 (linux_handle_extended_wait): Use linux_resume_one_lwp.
269 (status_callback, running_callback): Use lwp_status_pending_p.
270 (lwp_status_pending_p): New function.
271 (stop_and_resume_callback): Use lwp_status_pending_p.
272 (linux_nat_filter_event): Use linux_resume_one_lwp.
273 (linux_nat_wait_1): Always use status_callback to look for an LWP
274 with a pending status. Use linux_resume_one_lwp.
275 (resume_stopped_resumed_lwps): Use lwp_status_pending_p and
276 linux_resume_one_lwp.
278 2015-01-09 Pedro Alves <palves@redhat.com>
280 * breakpoint.c (bp_location_inserted_here_p): New function,
281 factored out from ...
282 (breakpoint_inserted_here_p): ... here. Use
283 ALL_BP_LOCATIONS_AT_ADDR.
284 (software_breakpoint_inserted_here_p): Use
285 bp_location_inserted_here_p and ALL_BP_LOCATIONS_AT_ADDR.
287 2014-01-09 Pedro Alves <palves@redhat.com>
289 Skip enabling event reporting if the kernel supports
291 * linux-thread-db.c: Include "nat/linux-ptrace.h".
292 (thread_db_use_events): New function.
293 (try_thread_db_load_1): Check thread_db_use_events before enabling
295 (update_thread_state): New function.
296 (attach_thread): Use it. Check thread_db_use_events before
297 enabling event reporting.
298 (thread_db_detach): Check thread_db_use_events before disabling
300 (find_new_threads_callback): Check thread_db_use_events before
301 enabling event reporting. Update the thread's state if not using
304 2015-01-09 Pedro Alves <palves@redhat.com>
306 * linux-nat.c (lin_lwp_attach_lwp): Assert that the lwp id we're
307 about to wait for is > 0.
308 * linux-thread-db.c (find_new_threads_callback): Ignore thread if
309 the kernel thread ID is -1.
311 2015-01-09 Pedro Alves <palves@redhat.com>
313 * linux-nat.c (attach_proc_task_lwp_callback): New function.
314 (linux_nat_attach): Use linux_proc_attach_tgid_threads.
315 (wait_lwp, linux_nat_filter_event): If not set yet, set the lwp's
317 * linux-nat.h (struct lwp_info) <must_set_ptrace_flags>: New
319 * nat/linux-procfs.c: Include <dirent.h>.
320 (linux_proc_get_int): New parameter "warn". Handle it.
321 (linux_proc_get_tgid): Adjust.
322 (linux_proc_get_tracerpid): Rename to ...
323 (linux_proc_get_tracerpid_nowarn): ... this.
324 (linux_proc_pid_get_state): New function, factored out from
325 (linux_proc_pid_has_state): ... this. Add new parameter "warn"
327 (linux_proc_pid_is_gone): New function.
328 (linux_proc_pid_is_stopped): Adjust.
329 (linux_proc_pid_is_zombie_maybe_warn)
330 (linux_proc_pid_is_zombie_nowarn): New functions.
331 (linux_proc_pid_is_zombie): Use
332 linux_proc_pid_is_zombie_maybe_warn.
333 (linux_proc_attach_tgid_threads): New function.
334 * nat/linux-procfs.h (linux_proc_get_tgid): Update comment.
335 (linux_proc_get_tracerpid): Rename to ...
336 (linux_proc_get_tracerpid_nowarn): ... this, and update comment.
337 (linux_proc_pid_is_gone): New declaration.
338 (linux_proc_pid_is_zombie): Update comment.
339 (linux_proc_pid_is_zombie_nowarn): New declaration.
340 (linux_proc_attach_lwp_func): New typedef.
341 (linux_proc_attach_tgid_threads): New declaration.
342 * nat/linux-ptrace.c (linux_ptrace_attach_fail_reason): Adjust to
343 use nowarn functions.
344 (linux_ptrace_attach_fail_reason_string): Move here from
345 gdbserver/linux-low.c and rename.
346 (ptrace_supports_feature): If the current ptrace options are not
347 known yet, check them now, instead of asserting.
348 * nat/linux-ptrace.h (linux_ptrace_attach_fail_reason_string):
351 2015-01-09 Pedro Alves <palves@redhat.com>
353 * linux-thread-db.c (thread_db_find_new_threads_silently)
354 (try_thread_db_load_1, try_thread_db_load, thread_db_load_search)
355 (find_new_threads_once): Print debug output on gdb_stdlog.
357 2015-01-09 Chen Gang <gang.chen.5i5j@gmail.com>
358 Pedro Alves <palves@redhat.com>
360 * compile/compile.c: Include "gdb_wait.h".
361 (do_rmdir): Check return value, and free 'zap'.
363 2015-01-08 Pedro Alves <palves@redhat.com>
364 Yao Qi <yao@codesourcery.com>
366 * dwarf2loc.c (indirect_pieced_value): Don't call
367 gdb_sign_extend. Call extract_signed_integer instead.
368 * utils.c (gdb_sign_extend): Remove.
369 * utils.h (gdb_sign_extend): Remove declaration.
371 2015-01-07 Pierre Muller <muller@sourceware.org>
374 * stabsread.c (define_symbol): Set language for C++ special symbols.
376 2015-01-07 Patrick Palka <patrick@parcs.ath.cx>
378 * inflow.c (initial_gdb_ttystate): Tweak comment.
380 2015-01-07 Joel Brobecker <brobecker@adacore.com>
382 * inflow.c (set_initial_gdb_ttystate): Add empty line after
383 comment documenting function.
385 2015-01-07 Patrick Palka <patrick@parcs.ath.cx>
387 * terminal.h (set_initial_gdb_ttystate): Declare.
388 * inflow.c (initial_gdb_ttystate): New static variable.
389 (set_initial_gdb_ttystate): New setter.
390 (child_terminal_init_with_pgrp): Copy initial_gdb_ttystate
391 instead of our current terminal state.
392 * top.c (gdb_init): Call set_initial_gdb_ttystate.
394 2015-01-07 Joel Brobecker <brobecker@adacore.com>
396 * guile/scm-type.c (tyscm_array_1): Add comment.
397 * python/py-type.c (typy_array_1): Add comment.
399 2015-01-06 Joel Brobecker <brobecker@adacore.com>
401 * guile/scm-type.c (tyscm_array_1): Do not raise out-of-range
402 error if N2 is equal to N1 - 1.
404 2015-01-06 Joel Brobecker <brobecker@adacore.com>
406 * python/py-type.c (typy_array_1): Do not raise negative-length
407 exception if N2 is equal to N1 - 1.
409 2015-01-03 Doug Evans <xdje42@gmail.com>
411 * c-exp.y: Whitespace cleanup.
412 (classify_inner_name): Remove extra ;.
414 2015-01-02 Maciej W. Rozycki <macro@codesourcery.com>
416 * mips-tdep.c (mips32_scan_prologue): Keep the extracted stack
419 2015-01-02 Doug Evans <dje@google.com>
421 * dwarf2read.c (setup_type_unit_groups): Remove outdated comment.
423 2015-01-02 Doug Evans <dje@google.com>
425 * symtab.h (struct symbol): Fix typo in comment.
427 2015-01-01 Joel Brobecker <brobecker@adacore.com>
429 Update year range in copyright notice of all files.
431 2015-01-01 Joel Brobecker <brobecker@adacore.com>
433 * top.c (print_gdb_version): Update copyright year to 2015.
435 2015-01-01 Joel Brobecker <brobecker@adacore.com>
437 * config/djgpp/fnchange.lst: Add entry for gdb/ChangeLog-2014.
439 For older changes see ChangeLog-2014.
445 version-control: never