This is the mail archive of the
gdb-cvs@sourceware.org
mailing list for the GDB project.
src/gdb ChangeLog inflow.c linux-nat.c main.c ...
- From: jimb at sourceware dot org
- To: gdb-cvs at sourceware dot org
- Date: 6 Jan 2009 18:31:59 -0000
- Subject: src/gdb ChangeLog inflow.c linux-nat.c main.c ...
CVSROOT: /cvs/src
Module name: src
Changes by: jimb@sourceware.org 2009-01-06 18:31:59
Modified files:
gdb : ChangeLog inflow.c linux-nat.c main.c ui-file.c
utils.c
gdb/cli : cli-cmds.c
gdb/mi : mi-cmd-env.c
Log message:
Check return values of functions declared with warn_unused_result
attribute in GLIBC 2.8.
* cli/cli-cmds.c (pwd_command): Check return value from getcwd.
* inflow.c (check_syscall): New function.
(new_tty): Use check_syscall to check return values from open and dup.
* linux-nat.c (linux_nat_info_proc_cmd): Check return value from fgets.
* main.c (captured_main): Call cwd after setting up gdb_stderr;
check for errors from getcwd.
* mi/mi-cmd-env.c (mi_cmd_env_pwd): Check return value from getcwd.
* ui-file.c (stdio_file_write): Ignore return value from fwrite.
(stdio_file_fputs): Same.
* utils.c (internal_vproblem): abort if last-ditch error message
write fails.
Patches:
http://sources.redhat.com/cgi-bin/cvsweb.cgi/src/gdb/ChangeLog.diff?cvsroot=src&r1=1.10067&r2=1.10068
http://sources.redhat.com/cgi-bin/cvsweb.cgi/src/gdb/inflow.c.diff?cvsroot=src&r1=1.45&r2=1.46
http://sources.redhat.com/cgi-bin/cvsweb.cgi/src/gdb/linux-nat.c.diff?cvsroot=src&r1=1.115&r2=1.116
http://sources.redhat.com/cgi-bin/cvsweb.cgi/src/gdb/main.c.diff?cvsroot=src&r1=1.71&r2=1.72
http://sources.redhat.com/cgi-bin/cvsweb.cgi/src/gdb/ui-file.c.diff?cvsroot=src&r1=1.16&r2=1.17
http://sources.redhat.com/cgi-bin/cvsweb.cgi/src/gdb/utils.c.diff?cvsroot=src&r1=1.201&r2=1.202
http://sources.redhat.com/cgi-bin/cvsweb.cgi/src/gdb/cli/cli-cmds.c.diff?cvsroot=src&r1=1.81&r2=1.82
http://sources.redhat.com/cgi-bin/cvsweb.cgi/src/gdb/mi/mi-cmd-env.c.diff?cvsroot=src&r1=1.16&r2=1.17