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,9e9f299a881137c6 X-Google-Attributes: gid103376,public,usenet X-Google-Language: ENGLISH,ASCII-7-bit Path: g2news2.google.com!news2.google.com!news.glorb.com!goblin1!goblin.stu.neva.ru!uio.no!fi.sn.net!newsfeed1.fi.sn.net!news.song.fi!not-for-mail Date: Fri, 26 Oct 2007 16:43:57 +0300 From: Niklas Holsti User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.7.8) Gecko/20060628 Debian/1.7.8-1sarge7.1 X-Accept-Language: en MIME-Version: 1.0 Newsgroups: comp.lang.ada Subject: Re: ASIS? References: <1193392044.600378.120160@i13g2000prf.googlegroups.com> <877ilafaqw.fsf@ludovic-brenta.org> <4721db60$0$27834$39db0f71@news.song.fi> <1193403651.550238.61570@e9g2000prf.googlegroups.com> In-Reply-To: <1193403651.550238.61570@e9g2000prf.googlegroups.com> Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit Message-ID: <4721ece5$0$27815$39db0f71@news.song.fi> Organization: TDC Song Internet Services NNTP-Posting-Host: laku61.adsl.netsonic.fi X-Trace: 1193405669 news.song.fi 27815 81.17.205.61:32877 X-Complaints-To: abuse@song.fi Xref: g2news2.google.com comp.lang.ada:2581 Date: 2007-10-26T16:43:57+03:00 List-Id: parthaspanda22@gmail.com wrote: >>I thought ASIS only has "high-level" information prior to the >>target-dependent object-code generation and linking. I think the >>debugger will need the link map, information about the stack frame >>layouts, record layouts, etc, which is not in the ASIS domain. Am I >>wrong? >> You list various non-ASIS sources for the target- and link-map-specific information (below). Your original query was: > If one were to need an API to fulfill all requirements by > a Debugger, Source Browser and a Syntax-aware editor from > the IDE, then would ASIS be it? It was the point "all requirements" to which I objected, but I must have misunderstood or not noticed your phrase "... from the IDE", which I now understand means "... apart from the information that can be had from other sources". But there are some executable program formats that include most of the ASIS-like information (for C code, at least), so for such executable formats a debugger would need no additional information from the IDE. Anyway, your question and Ludovic's answer are sensible if one assumes that the "other sources" are some limited executable format such as ELF without DWARF. > 1) link map: ... > (The map file provides this feature). Yes, or the debugging info in the executable file. > 2) stack-frame > > A lot of the information about stack are constants(e.g. the bias, > the frame pointer register, the stack pointer register, > the ABI) and these are hard-wired into the debugger. Depends on the target. Some ABIs are very flexible and let the compiler do what it likes. > 3) record layouts > > Again, this is in the domain of the ABI Indeed, but as above it can be very flexible / unspecified. So in addition to ASIS the debugger needs the target-specific information from some other source. That was my point, sorry if I added noise. -- Niklas Holsti Tidorum Ltd niklas holsti tidorum fi . @ .