From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 27136 invoked by alias); 16 Feb 2012 15:58:29 -0000 Received: (qmail 27126 invoked by uid 22791); 16 Feb 2012 15:58:28 -0000 X-SWARE-Spam-Status: No, hits=-1.9 required=5.0 tests=AWL,BAYES_00 X-Spam-Check-By: sourceware.org Received: from hagrid.ecoscentric.com (HELO mail.ecoscentric.com) (212.13.207.197) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Thu, 16 Feb 2012 15:57:54 +0000 Received: from localhost (hagrid.ecoscentric.com [127.0.0.1]) by mail.ecoscentric.com (Postfix) with ESMTP id B34482F7800A for ; Thu, 16 Feb 2012 15:57:52 +0000 (GMT) Received: from mail.ecoscentric.com ([127.0.0.1]) by localhost (hagrid.ecoscentric.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id pStTeWtbbrF4; Thu, 16 Feb 2012 15:57:47 +0000 (GMT) From: bugzilla-daemon@bugs.ecos.sourceware.org To: ecos-patches@ecos.sourceware.org Subject: [Bug 1001466] /dev/null serial driver X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: eCos X-Bugzilla-Component: Patches and contributions X-Bugzilla-Keywords: X-Bugzilla-Severity: enhancement X-Bugzilla-Who: sergei.gavrikov@gmail.com X-Bugzilla-Status: UNCONFIRMED X-Bugzilla-Priority: low X-Bugzilla-Assigned-To: unassigned@bugs.ecos.sourceware.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Changed-Fields: In-Reply-To: References: X-Bugzilla-URL: http://bugs.ecos.sourceware.org/ Auto-Submitted: auto-generated Content-Type: text/plain; charset="UTF-8" MIME-Version: 1.0 Date: Thu, 16 Feb 2012 15:58:00 -0000 Message-Id: <20120216155747.866B92F78001@mail.ecoscentric.com> Mailing-List: contact ecos-patches-help@ecos.sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Post: List-Help: , Sender: ecos-patches-owner@ecos.sourceware.org X-SW-Source: 2012-02/txt/msg00065.txt.bz2 Please do not reply to this email. Use the web interface provided at: http://bugs.ecos.sourceware.org/show_bug.cgi?id=1001466 --- Comment #9 from Sergei Gavrikov 2012-02-16 15:57:43 GMT --- (In reply to comment #6) > Maybe the proper solution is in the stdio lib? My check for eCos fopen("/dev/null", ...) from the box The eCos template: cdl_configuration eCos { template default ; package CYGPKG_IO_FILEIO current ; }; Example of GDB session: % arm-eabi-gdb -q examples/hello (gdb) target remote /dev/ttyUSB0 Remote debugging using /dev/ttyUSB0 0x00002d48 in ?? () (gdb) load Loading section .rom_vectors, size 0x40 lma 0x81008000 Loading section .text, size 0x9714 lma 0x81008040 Loading section .rodata, size 0x344 lma 0x81011754 Loading section .data, size 0x484 lma 0x81011a98 Start address 0x81008040, load size 40732 Transfer rate: 3 KB/sec, 299 bytes/write. (gdb) b main Breakpoint 1 at 0x81008534: file hello.c, line 7. (gdb) b exit Breakpoint 2 at 0x81010ad0: file /home/sg/repo/ecos-hg/packages/language/c/libc/startup/current/src/exit.cxx, line 74. (gdb) cont Continuing. [New Thread 2] [Switching to Thread 2] Breakpoint 1, main () at hello.c:7 7 FILE *fh = fopen("/dev/null", "r+"); (gdb) l 2 #include 3 4 int 5 main(void) 6 { 7 FILE *fh = fopen("/dev/null", "r+"); 8 fprintf(stdout, "Hello, eCos world! (at stdout)\n"); 9 fprintf(fh, "Hello, eCos world! (at /dev/null)\n"); 10 fclose(fh); 11 fprintf(stdout, "Bye! (at stdout)\n"); (gdb) cont Continuing. Hello, eCos world! (at stdout) Bye! (at stdout) Breakpoint 2, exit (status=0) at /home/sg/repo/ecos-hg/packages/language/c/libc/startup/current/src/exit.cxx:74 74 exit( int status ) Current language: auto; currently c++ (gdb) And what you get? -- Configure bugmail: http://bugs.ecos.sourceware.org/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.