Check return values of functions declared with warn_unused_result
[deliverable/binutils-gdb.git] / gdb / ChangeLog
index 59caeab81790c8cdff1dd392f8b7512a09b19582..8c93b4aff69f395af80afc2d2f0cdec31a373715 100644 (file)
@@ -1,5 +1,19 @@
 2009-01-06  Jim Blandy  <jimb@red-bean.com>
 
+       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.
+
        * top.c (gdb_init): Don't set the current directory here; that's
        already been done in captured_main.
 
This page took 0.037257 seconds and 4 git commands to generate.