Gmail Calendar Documents Reader Web more »
Recently Visited Groups | Help | Sign in
Google Groups Home
#line directives from PMC file should now work
There are currently too many topics in this group that display first. To make this topic appear first, remove this option from another topic.
There was an error processing your request. Please try again.
flag
  5 messages - Collapse all  -  Translate all to Translated (View all originals)
The group you are posting to is a Usenet group. Messages posted to this group will make your email address visible to anyone on the Internet.
Your reply message has not been sent.
Your post was successful
 
From:
To:
Cc:
Followup To:
Add Cc | Add Followup-to | Edit Subject
Subject:
Validation:
For verification purposes please type the characters you see in the picture below or the numbers you hear by clicking the accessibility icon. Listen and type the numbers you hear
 
Nicholas Clark  
View profile  
 More options Nov 11 2004, 9:21 am
Newsgroups: perl.perl6.internals
From: n...@ccl4.org (Nicholas Clark)
Date: Thu, 11 Nov 2004 14:21:18 +0000
Local: Thurs, Nov 11 2004 9:21 am
Subject: #line directives from PMC file should now work
I believe that I've now fixed all the bugs and made pmc2c2.pl emit accurate
#line directives in the C source files it generates. This means that C errors
in PMC files under development will be reported by the C compiler as being at
the correct line in the source PMC file, rather than the pseudo-random line
in the auto-generated C file. This should help anyone writing PMCs

Builds pass with the --no-lines option in Makefile removed. Should this
be removed from the template Makefile so that all builds now use #line
directives?

Nicholas Clark


    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Leopold Toetsch  
View profile  
 More options Nov 11 2004, 9:53 am
Newsgroups: perl.perl6.internals
From: l...@toetsch.at (Leopold Toetsch)
Date: Thu, 11 Nov 2004 15:53:19 +0100
Local: Thurs, Nov 11 2004 9:53 am
Subject: Re: #line directives from PMC file should now work

Nicholas Clark <n...@ccl4.org> wrote:
> I believe that I've now fixed all the bugs and made pmc2c2.pl emit accurate
> #line directives in the C source files it generates.

Great, thanks a lot.

> Builds pass with the --no-lines option in Makefile removed. Should this
> be removed from the template Makefile so that all builds now use #line
> directives?

Yep. Is there still that %ENV var around to turn line numbers off? - Or
was that in ops2c.pl - PARROT_NO_LINE is it, could be handy sometimes.

> Nicholas Clark

leo

    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Jeff Clites  
View profile  
 More options Nov 11 2004, 12:13 pm
Newsgroups: perl.perl6.internals
From: jcli...@mac.com (Jeff Clites)
Date: Thu, 11 Nov 2004 09:13:27 -0800
Local: Thurs, Nov 11 2004 12:13 pm
Subject: Re: #line directives from PMC file should now work
On Nov 11, 2004, at 6:53 AM, Leopold Toetsch wrote:

> Nicholas Clark <n...@ccl4.org> wrote:

>> Builds pass with the --no-lines option in Makefile removed. Should
>> this
>> be removed from the template Makefile so that all builds now use #line
>> directives?

> Yep. Is there still that %ENV var around to turn line numbers off? - Or
> was that in ops2c.pl - PARROT_NO_LINE is it, could be handy sometimes.

I'd really like a way to turn them off easily (for the ops as well,
actually). I find them to be counterproductive (for our stuff), since
what gets shown in the debugger isn't stuff you can actually get gdb to
evaluate.

JEff


    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Leopold Toetsch  
View profile  
 More options Nov 11 2004, 2:12 pm
Newsgroups: perl.perl6.internals
From: l...@toetsch.at (Leopold Toetsch)
Date: Thu, 11 Nov 2004 20:12:52 +0100
Local: Thurs, Nov 11 2004 2:12 pm
Subject: Re: #line directives from PMC file should now work

Jeff Clites <jcli...@mac.com> wrote:
> I'd really like a way to turn them off easily (for the ops as well,
> actually). I find them to be counterproductive (for our stuff), since
> what gets shown in the debugger isn't stuff you can actually get gdb to
> evaluate.

It depends. While hacking PMC files its much more useful to have the gcc
error line within the pmc files. Debugging ops is sometimes more
intuitive, if you see the corresponding .c file in the debugger, but not
always.

Anyway, as $ENV{PARROT_NO_LINE} is already in ops2c.pl, it should be
present in all build tools.

> JEff

leo

    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Jeff Clites  
View profile  
 More options Nov 11 2004, 10:37 pm
Newsgroups: perl.perl6.internals
From: jcli...@mac.com (Jeff Clites)
Date: Thu, 11 Nov 2004 19:37:25 -0800
Local: Thurs, Nov 11 2004 10:37 pm
Subject: Re: #line directives from PMC file should now work
On Nov 11, 2004, at 11:12 AM, Leopold Toetsch wrote:

> Jeff Clites <jcli...@mac.com> wrote:

>> I'd really like a way to turn them off easily (for the ops as well,
>> actually). I find them to be counterproductive (for our stuff), since
>> what gets shown in the debugger isn't stuff you can actually get gdb
>> to
>> evaluate.

> It depends. While hacking PMC files its much more useful to have the
> gcc
> error line within the pmc files. Debugging ops is sometimes more
> intuitive, if you see the corresponding .c file in the debugger, but
> not
> always.

Sure--definitely depends on what you're doing. For me, I'm often
debugging a JIT problem, and when I end up in a normal-op call I need
to be able to examine the environment (registers, subsequent ops).

> Anyway, as $ENV{PARROT_NO_LINE} is already in ops2c.pl, it should be
> present in all build tools.

Or maybe also CLI options to the tools, so at least you can hand-modify
the Makefile to easily turn off some, and leave on other. Having a
Configure.pl parameter is also more consistent with everything else we
do, compared to an env. variable.

JEff


    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
End of messages
« Back to Discussions « Newer topic     Older topic »

Create a group - Google Groups - Google Home - Terms of Service - Privacy Policy
©2010 Google