* cygwin-shilka: Remove '#line directives' or suffer debugging oddities. Use
-length option so that device prefixes are used. * devices.cc: Regenerate. * syscalls.cc (ttyname): Add debugging output.
This commit is contained in:
parent
dfb2ac8088
commit
3c1e8187bd
@ -1,3 +1,10 @@
|
|||||||
|
2003-09-27 Christopher Faylor <cgf@redhat.com>
|
||||||
|
|
||||||
|
* cygwin-shilka: Remove '#line directives' or suffer debugging oddities.
|
||||||
|
Use -length option so that device prefixes are used.
|
||||||
|
* devices.cc: Regenerate.
|
||||||
|
* syscalls.cc (ttyname): Add debugging output.
|
||||||
|
|
||||||
2003-09-26 Vaclav Haisman <V.Haisman@sh.cvut.cz>
|
2003-09-26 Vaclav Haisman <V.Haisman@sh.cvut.cz>
|
||||||
|
|
||||||
* Makefile.in: Add libusr32.a to DLL_IMPORTS.
|
* Makefile.in: Add libusr32.a to DLL_IMPORTS.
|
||||||
|
@ -386,10 +386,10 @@ dcrt0.o sigproc.o: child_info_magic.h
|
|||||||
|
|
||||||
shared.o: shared_info_magic.h
|
shared.o: shared_info_magic.h
|
||||||
|
|
||||||
$(srcdir)/devices.cc: cygwin-gperf devices.gperf devices.h
|
$(srcdir)/qevices.cc: cygwin-gperf devices.gperf devices.h
|
||||||
$^ > $@
|
$^ > $@
|
||||||
|
|
||||||
$(srcdir)/qevices.cc: cygwin-shilka devices.shilka devices.h
|
$(srcdir)/devices.cc: cygwin-shilka devices.shilka devices.h
|
||||||
${wordlist 1,2,$^} $@
|
${wordlist 1,2,$^} $@
|
||||||
|
|
||||||
$(PWD)/libpthread.a: speclib $(LIB_NAME) pthread.o thread.o
|
$(PWD)/libpthread.a: speclib $(LIB_NAME) pthread.o thread.o
|
||||||
|
@ -1,6 +1,8 @@
|
|||||||
#!/bin/sh -x
|
#!/bin/sh
|
||||||
c="$(basename $1 .shilka).c"
|
c="$(basename $1 .shilka).c"
|
||||||
shilka -strip -no-definitions $1 && \
|
shilka -length -strip -no-definitions $1 && \
|
||||||
sed -e '1,4d' -e '/KR_reset.*;/d' -e '/KR_output_statistics.*;/d' \
|
sed -e '1,4d' -e '/KR_reset.*;/d' -e '/KR_output_statistics.*;/d' \
|
||||||
-e '/KR_reset.*)/,/}/d' -e '/KR_output_statistics.*)/,/}/d' "$c" > $2 &&
|
-e '/KR_reset.*)/,/}/d' -e '/KR_output_statistics.*)/,/}/d' \
|
||||||
|
-e '/# *line/d' "$c" > $2 &&
|
||||||
rm -f "$c"
|
rm -f "$c"
|
||||||
|
# -e "s%$c"'"%'"$2"'"%g'
|
||||||
|
File diff suppressed because it is too large
Load Diff
@ -1654,10 +1654,13 @@ pathconf (const char *file, int v)
|
|||||||
extern "C" char *
|
extern "C" char *
|
||||||
ttyname (int fd)
|
ttyname (int fd)
|
||||||
{
|
{
|
||||||
|
char *name;
|
||||||
cygheap_fdget cfd (fd);
|
cygheap_fdget cfd (fd);
|
||||||
if (cfd < 0 || !cfd->is_tty ())
|
if (cfd < 0 || !cfd->is_tty ())
|
||||||
return 0;
|
return 0;
|
||||||
return (char *) (cfd->ttyname ());
|
name = (char *) (cfd->ttyname ());
|
||||||
|
debug_printf ("returning %s", name);
|
||||||
|
return name;
|
||||||
}
|
}
|
||||||
|
|
||||||
extern "C" char *
|
extern "C" char *
|
||||||
|
Loading…
x
Reference in New Issue
Block a user