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=-0.9 required=5.0 tests=BAYES_00,FORGED_GMAIL_RCVD, FREEMAIL_FROM autolearn=no autolearn_force=no version=3.4.4 X-Google-Thread: a07f3367d7,c689b55786a9f2bd X-Google-Attributes: gida07f3367d7,public,usenet X-Google-NewGroupId: yes X-Google-Language: ENGLISH,ASCII-7-bit Path: g2news2.google.com!news4.google.com!feeder3.cambriumusenet.nl!feed.tweaknews.nl!83.128.0.11.MISMATCH!news-out1.kabelfoon.nl!newsfeed.kabelfoon.nl!xindi.nntp.kabelfoon.nl!news.swapon.de!eternal-september.org!.POSTED!not-for-mail From: Warren Newsgroups: comp.lang.ada Subject: Re: Ada & gdb (was: for S'Image use Func??) Date: Mon, 10 May 2010 15:26:43 +0000 (UTC) Organization: A noiseless patient Spider Message-ID: References: Injection-Date: Mon, 10 May 2010 15:26:43 +0000 (UTC) Injection-Info: mx02.eternal-september.org; posting-host="9f8M0iN5t54V+4DF/iqO8g"; logging-data="2168"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX19HmwiJkuhp11rNQrvi3T1E+P4owFK/1tk=" User-Agent: Xnews/5.04.25 X-Face: &6@]C2>ZS=NM|HE-^zWuryN#Z/2_.s9E|G&~DRi|sav9{E}XQJb*\_>=a5"q]\%A;5}LKP][1mA{gZ,Q!j Cancel-Lock: sha1:NJa3lSX3LVZajKSU3pTRjoXVhps= Xref: g2news2.google.com comp.lang.ada:11448 Date: 2010-05-10T15:26:43+00:00 List-Id: Robert A Duff expounded in news:wccmxwcu6kc.fsf@shell01.TheWorld.com: .. >> True, but in my case I just needed the leading zeros, sans >> any sign: >> >> 900 to be displayed as "00900" (vs " 900"). > > So create a function called Image that does that. > I think Image is a better name than To_String, by the way > -- it's a common convention to use Image. I see. > The leading blank produced by T'Image is indeed annoying! > What were they thinking?! Never mind, that's been discussed > to death. It's not a huge problem, but it's one of the > first things new Ada programmers notice, and it's a real > turn-off. > > - Bob I've since just created a Trim function to strip that off. That saves me from having to create Image() functions for those types that don't have special formatting requirements (except for trimming the leading blank of course). GDB: One thing that I really miss in gdb, is the ability to set breakpoints. Often what I need to step through is buried deep inside the interpreter at a particular method, or "procedure". While gdb seems to know about Ada (mostly), I cannot seem to set qualified breakpoints where I need them. Is there some secret gdb voodoo for that? It's "help" doesn't seem to hint at this. It works for simple names, but if I need to qualify the "name" in any way, it rejects the request. I'm using cygwin's gdb: $ gdb --version GNU gdb 6.8.0.20080328-cvs (cygwin-special) Warren