From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on polar.synack.me X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00 autolearn=ham autolearn_force=no version=3.4.4 X-Google-Thread: 103376,392a654c4e778943 X-Google-Attributes: gid103376,public X-Google-Language: ENGLISH,ASCII-7-bit Path: g2news1.google.com!news3.google.com!border1.nntp.dca.giganews.com!border2.nntp.dca.giganews.com!nntp.giganews.com!cyclone1.gnilink.net!spamkiller.gnilink.net!gnilink.net!trnddc01.POSTED!20ae255c!not-for-mail Newsgroups: comp.lang.ada From: Anonymous Coward Subject: Re: Debugger for GNAT References: <1132317809.937986.140480@g49g2000cwa.googlegroups.com> Message-Id: User-Agent: slrn/0.9.7.4 (Linux) Date: Sat, 19 Nov 2005 15:39:49 GMT NNTP-Posting-Host: 129.44.82.251 X-Complaints-To: abuse@verizon.net X-Trace: trnddc01 1132414789 129.44.82.251 (Sat, 19 Nov 2005 10:39:49 EST) NNTP-Posting-Date: Sat, 19 Nov 2005 10:39:49 EST Xref: g2news1.google.com comp.lang.ada:6477 Date: 2005-11-19T15:39:49+00:00 List-Id: Regarding this discussion as to whether GDB is robust, I've encountered many problems with GDB, many of which I believe are not user errors. I'd like to post some examples of the anomalies I've observed, to see if you folks can discover user errors that I'm unaware of. Here is the first example. Keeping it simple, I'm merely asking gdb to list the functions that I can set breakpoints in. [hello_world.adb] with Ada.Text_IO; procedure Hello_World is function Hello_World_String return String is begin return "Hello world!"; end Hello_World_String; begin Ada.Text_IO.Put_Line(Hello_World_String); end Hello_World; compiled as: $ gnatmake -O0 -ggdb hello_world.adb gcc -c -O0 -ggdb hello_world.adb gnatbind -x hello_world.ali gnatlink -ggdb hello_world.ali GDB session: GNU gdb Red Hat Linux (5.3post-0.20021129.18rh) (gdb) file hello_world Reading symbols from hello_world...done. (gdb) info function internal error - unimplemented function unk_lang_create_fundamental_type called. (gdb) break hello_world.adb:14 internal error - unimplemented function unk_lang_create_fundamental_type called. So GDB finds no functions, and it also fails to set a breakpoint on line 14.