From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 4309 invoked by alias); 5 Mar 2008 03:38:10 -0000 Received: (qmail 4223 invoked by uid 48); 5 Mar 2008 03:37:27 -0000 Date: Wed, 05 Mar 2008 03:38:00 -0000 Message-ID: <20080305033727.4222.qmail@sourceware.org> From: "cagney at redhat dot com" To: frysk-bugzilla@sourceware.org In-Reply-To: <20080304222446.5869.tromey@redhat.com> References: <20080304222446.5869.tromey@redhat.com> Reply-To: sourceware-bugzilla@sourceware.org Subject: [Bug general/5869] can't print contents of a C string X-Bugzilla-Reason: AssignedTo Mailing-List: contact frysk-bugzilla-help@sourceware.org; run by ezmlm Precedence: bulk List-Subscribe: List-Post: List-Help: , Sender: frysk-bugzilla-owner@sourceware.org X-SW-Source: 2008-q1/txt/msg00451.txt.bz2 List-Id: ------- Additional Comments From cagney at redhat dot com 2008-03-05 03:37 ------- The "const" is likely throwing it vis: $ ./frysk/bindir/fhpd ./frysk/pkglibdir/funit-hello Loaded executable file: /home/scratch/frysk/git/native/frysk-core/./frysk/pkglibdir/funit-hello (fhpd) b main breakpoint 0 deferred (fhpd) run foo Attached to process 30018 starting/running with this command: ./frysk/pkglibdir/funit-hello foo Running process 30018 (fhpd) Breakpoint 0 main 0x804842a list [0.0] 43 print(char *what) { 44 while (*what != '\0') { 45 write(1, what, 1); 46 what++; 47 } 48 } 49 50 int 51 main(int argc, char** argv) { 52 // XXX: This forgets to check ARGC. -> 53 print(argv[1]); 54 print("\n"); 55 return 0; 56 } (fhpd) print argv (char **) 0xbf945154 (fhpd) print *argv (char *) 0xbf945986 "./frysk/pkglibdir/funit-hello" -- http://sourceware.org/bugzilla/show_bug.cgi?id=5869 ------- You are receiving this mail because: ------- You are the assignee for the bug, or are watching the assignee.