- Fixed compatibility with the Rawhide glibc open(2) syscall sanity
checking.
- Update the core_dump_elf_headers=1 compatibility code to the upstream
variant.
This commit is contained in:
parent
7a31f8b0c5
commit
daafa059ee
4 changed files with 181 additions and 21 deletions
|
|
@ -662,3 +662,32 @@ diff -u -rup gdb-6.6-orig/gdb/utils.c gdb-6.6/gdb/utils.c
|
|||
exit (1);
|
||||
}
|
||||
}
|
||||
--- ./gdb/gdbserver/gdbreplay.c 29 Mar 2007 01:06:47 -0000 1.14
|
||||
+++ ./gdb/gdbserver/gdbreplay.c 8 Aug 2007 20:32:12 -0000
|
||||
@@ -358,7 +358,12 @@ expect (FILE *fp)
|
||||
{
|
||||
break;
|
||||
}
|
||||
- read (remote_desc, &fromgdb, 1);
|
||||
+ if (read (remote_desc, &fromgdb, 1) != 1)
|
||||
+ {
|
||||
+ /* Error gets reported below. */
|
||||
+ fromlog = 0;
|
||||
+ break;
|
||||
+ }
|
||||
}
|
||||
while (fromlog == fromgdb);
|
||||
if (fromlog != EOL)
|
||||
@@ -385,7 +390,11 @@ play (FILE *fp)
|
||||
while ((fromlog = logchar (fp)) != EOL)
|
||||
{
|
||||
ch = fromlog;
|
||||
- write (remote_desc, &ch, 1);
|
||||
+ if (write (remote_desc, &ch, 1) != 1)
|
||||
+ {
|
||||
+ sync_error (fp, "Sync error during write of gdb packet", ch, 0);
|
||||
+ break;
|
||||
+ }
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue