Date: Fri, 27 Aug 1999 17:25:50 -0700 (PDT) From: Jin Guojun (FTG staff) <jin@iss-p5.lbl.gov> To: FreeBSD-gnats-submit@freebsd.org Subject: gnu/13427: gdb reports wrong info Message-ID: <199908280025.RAA02316@iss-p5.lbl.gov>
next in thread | raw e-mail | index | archive | help
>Number: 13427 >Category: gnu >Synopsis: gdb reports wrong info >Confidential: no >Severity: serious >Priority: high >Responsible: freebsd-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: sw-bug >Submitter-Id: current-users >Arrival-Date: Fri Aug 27 17:30:01 PDT 1999 >Closed-Date: >Last-Modified: >Originator: Jin Guojun (FTG staff) >Release: FreeBSD 3.2-RELEASE i386 >Organization: >Environment: 3.2-RELEASE with gdb 4.18 >Description: % gdb timidity GNU gdb 4.18 Copyright 1998 Free Software Foundation, Inc. GDB is free software, covered by the GNU General Public License, and you are welcome to change it and/or distribute copies of it under certain conditions. Type "show copying" to see the conditions. There is absolutely no warranty for GDB. Type "show warranty" for details. This GDB was configured as "i386-unknown-freebsd"... (gdb) l 518 } 519 close_file(fp); 520 return 0; 521 } 522 #ifdef __WIN32__ 523 int __cdecl main(int argc, char **argv) 524 #else 525 int main(int argc, char **argv) 526 #endif 527 { (gdb) b 698 Breakpoint 1 at 0x804a7a3: file timidity.c, line 698. (gdb) run ~/music/club.MID Starting program: /tmp/timidity-0.2i/timidity ~/music/club.MID argc = 2, optind = 1 Breakpoint 1, main (argc=-1077945350, argv=0xbfbfdc26) at timidity.c:699 699 fprintf(stderr, "argc = %d, optind = %d\n", argc, optind); (gdb) p argc $1 = -1077945350 (gdb) n argc = 2, optind = 1 700 if (optind<argc) (gdb) p optind $2 = 1 (gdb) p argc $3 = -1077945350 (gdb) display optind 1: {<data variable, no debug info>} (void *) 0x805db78 = 1 (gdb) display argc 2: argc = -1077945350 (gdb) >How-To-Repeat: >Fix: >Release-Note: >Audit-Trail: >Unformatted: To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-bugs" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199908280025.RAA02316>