Skip to content

Commit

Permalink
[sub] Added helper functions Parrot_Sub_get_line_from_pc() and
Browse files Browse the repository at this point in the history
Parrot_sub_get_filename_from_pc(), intended for a lighter weight version of
Parrot_Context_get_info().

git-svn-id: https://svn.parrot.org/parrot/trunk@41199 d31e2699-5ff4-0310-a27c-f18f2fbe73fe
  • Loading branch information
chromatic committed Sep 11, 2009
1 parent 1a35011 commit 10a76c3
Show file tree
Hide file tree
Showing 109 changed files with 541 additions and 0 deletions.
64 changes: 64 additions & 0 deletions .gitignore
@@ -0,0 +1,64 @@
/*.patch
/*.tmp
/*.vcproj*
/*.sln
/*.ncb
/*.suo
/*.sto
/CFLAGS
/MANIFEST.configure.generated
/Makefile
/TAGS
/all_cstring.str
/blib
/config_lib.pasm
/install_config.fpmc
/libparrot.def
/libparrot.dll
/miniparrot
/myconfig
/parrot
/parrot_config
/parrot_config.c
/parrot_config.pbc
/parrot.ilk
/parrot.pdb
/parrot.pc
/parrot_test_run.tar.gz
/pbc_disassemble
/pbc_info
/pbc_merge
/pbc_dump
/tags
/temp.file
/test
/test.c
/test.cco
/test.err
/test.ilk
/test.ldo
/test.out
/test.pdb
/vc60.pdb
/vc70.pdb
/vtable.dump
/installable*
/*.exe
/*.core
/*.pdb
/*.ilk
/*.def
/*.lib
/*.obj
/*.o
/*.exp
/*.manifest
/parrot.iss
/cover_db
/pbc_to_exe
/pbc_to_exe.*
/perl6
/.parrot_current_rev
/.git
/parrot_debugger
/pirc
2 changes: 2 additions & 0 deletions compilers/data_json/.gitignore
@@ -0,0 +1,2 @@
/Makefile
/data_json.pbc
2 changes: 2 additions & 0 deletions compilers/data_json/data_json/.gitignore
@@ -0,0 +1,2 @@
/*.pir
/*.pbc
11 changes: 11 additions & 0 deletions compilers/imcc/.gitignore
@@ -0,0 +1,11 @@
/*.flag
/*.o
/*.tmp
/imcc
/imclexer.c
/imcparser.c
/imcparser.h
/imcparser.output
/Makefile
/CFLAGS
/*.obj
2 changes: 2 additions & 0 deletions compilers/json/.gitignore
@@ -0,0 +1,2 @@
/Makefile
/JSON.pbc
2 changes: 2 additions & 0 deletions compilers/json/JSON/.gitignore
@@ -0,0 +1,2 @@
/*.pbc
/*.pir
2 changes: 2 additions & 0 deletions compilers/ncigen/.gitignore
@@ -0,0 +1,2 @@
/Makefile
/ncigen.pbc
3 changes: 3 additions & 0 deletions compilers/ncigen/src/.gitignore
@@ -0,0 +1,3 @@
/gen_actions.pir
/gen_grammar.pir
/gen_builtins.pir
2 changes: 2 additions & 0 deletions compilers/nqp/.gitignore
@@ -0,0 +1,2 @@
/Makefile
/nqp.pbc
2 changes: 2 additions & 0 deletions compilers/nqp/bootstrap/.gitignore
@@ -0,0 +1,2 @@
/nqp.pbc
/gen_actions.pir
1 change: 1 addition & 0 deletions compilers/nqp/src/.gitignore
@@ -0,0 +1 @@
/Grammar_gen.pir
2 changes: 2 additions & 0 deletions compilers/pct/.gitignore
@@ -0,0 +1,2 @@
/Makefile
/*.pbc
1 change: 1 addition & 0 deletions compilers/pct/src/POST/.gitignore
@@ -0,0 +1 @@
/Grammar_gen.pir
4 changes: 4 additions & 0 deletions compilers/pge/.gitignore
@@ -0,0 +1,4 @@
/*.dylib
/*.so
/Makefile
/PGE.pbc
2 changes: 2 additions & 0 deletions compilers/pge/PGE/.gitignore
@@ -0,0 +1,2 @@
/builtins_gen.pir
/*.dll
6 changes: 6 additions & 0 deletions compilers/pirc/.gitignore
@@ -0,0 +1,6 @@
/Makefile
/pirc
/pirc.exe
/*.o
/*.obj
/*.pbd
6 changes: 6 additions & 0 deletions compilers/pirc/t/.gitignore
@@ -0,0 +1,6 @@
/subflags_?.pir
/heredoc_?.pir
/stmts_?.pir
/basic_?.pir
/basic_??.pir
/macro_?.pir
1 change: 1 addition & 0 deletions compilers/tge/.gitignore
@@ -0,0 +1 @@
/Makefile
1 change: 1 addition & 0 deletions compilers/tge/TGE/.gitignore
@@ -0,0 +1 @@
/Parser.pir
1 change: 1 addition & 0 deletions config/gen/call_list/.gitignore
@@ -0,0 +1 @@
/opengl.in
5 changes: 5 additions & 0 deletions docs/.gitignore
@@ -0,0 +1,5 @@
/*.tmp
/html
/Makefile
/packfile-c.pod
/packfile-perl.pod
1 change: 1 addition & 0 deletions docs/book/.gitignore
@@ -0,0 +1 @@
/*.html
1 change: 1 addition & 0 deletions docs/ops/.gitignore
@@ -0,0 +1 @@
/*.pod
4 changes: 4 additions & 0 deletions editor/.gitignore
@@ -0,0 +1,4 @@
/Makefile
/imc.vim
/imcc.xml
/pir.vim
10 changes: 10 additions & 0 deletions examples/languages/abc/.gitignore
@@ -0,0 +1,10 @@
/Makefile
/*.pbc
/*.c
/*.o
/*.obj
/*.exe
/*.iss
/abc
/installable_abc
/man
3 changes: 3 additions & 0 deletions examples/languages/abc/src/.gitignore
@@ -0,0 +1,3 @@
/gen_actions.pir
/gen_grammar.pir
/gen_builtins.pir
2 changes: 2 additions & 0 deletions examples/languages/abc/t/.gitignore
@@ -0,0 +1,2 @@
/*_*.pir
/*_*.out
10 changes: 10 additions & 0 deletions examples/languages/squaak/.gitignore
@@ -0,0 +1,10 @@
/Makefile
/*.pbc
/*.c
/*.o
/*.obj
/*.exe
/*.iss
/squaak
/installable_squaak
/man
1 change: 1 addition & 0 deletions examples/languages/squaak/src/.gitignore
@@ -0,0 +1 @@
/gen_*.pir
2 changes: 2 additions & 0 deletions examples/mops/.gitignore
@@ -0,0 +1,2 @@
/*.o
/mops
1 change: 1 addition & 0 deletions examples/nci/.gitignore
@@ -0,0 +1 @@
/*.pbc
3 changes: 3 additions & 0 deletions examples/pasm/.gitignore
@@ -0,0 +1,3 @@
/hello
/hello.o
/hello.pbc
9 changes: 9 additions & 0 deletions examples/pir/befunge/.gitignore
@@ -0,0 +1,9 @@
/Makefile
/*.pbc
/*.c
/*.o
/*.obj
/*.exe
/*.iss
/befunge
/installable_befunge
1 change: 1 addition & 0 deletions ext/.gitignore
@@ -0,0 +1 @@
/Makefile
29 changes: 29 additions & 0 deletions ext/Parrot-Embed/.gitignore
@@ -0,0 +1,29 @@
/*.tmp
/*.pdb
/_build
/blib
/Build
/Build.bat
/Makefile
/Makefile.PL
/*.bundle
/*.c
/*.dump
/*.dylib
/*.h
/*.so
/*.o
/*.exe
/*.pdb
/*.ilk
/*.def
/*.lib
/*.obj
/*.exp
/*.dll
/*.manifest
/*.bs
/*.old
/*.xs
/pm_to_blib
/dll.base
2 changes: 2 additions & 0 deletions ext/Parrot-Embed/lib/Parrot/.gitignore
@@ -0,0 +1,2 @@
/*.obj
/*.c
1 change: 1 addition & 0 deletions ext/Parrot-Embed/t/.gitignore
@@ -0,0 +1 @@
/*.pbc
11 changes: 11 additions & 0 deletions include/parrot/.gitignore
@@ -0,0 +1,11 @@
/*.tmp
/config.h
/core_pmcs.h
/extend_vtable.h
/feature.h
/has_header.h
/platform.h
/platform_interface.h
/vtable.h
/pbcversion.h
/platform_limits.h
4 changes: 4 additions & 0 deletions include/parrot/oplib/.gitignore
@@ -0,0 +1,4 @@
/*_ops.h
/*_ops_switch.h
/*_ops_cg*.h
/ops.h
24 changes: 24 additions & 0 deletions include/parrot/sub.h
Expand Up @@ -248,6 +248,21 @@ PMC* Parrot_find_pad(PARROT_INTERP,
__attribute__nonnull__(2) __attribute__nonnull__(2)
__attribute__nonnull__(3); __attribute__nonnull__(3);


PARROT_CANNOT_RETURN_NULL
STRING * Parrot_Sub_get_filename_from_pc(PARROT_INTERP,
ARGIN(PMC *sub),
ARGIN(opcode_t *pc))
__attribute__nonnull__(1)
__attribute__nonnull__(2)
__attribute__nonnull__(3);

INTVAL Parrot_Sub_get_line_from_pc(PARROT_INTERP,
ARGIN(PMC *subpmc),
ARGIN(opcode_t *pc))
__attribute__nonnull__(1)
__attribute__nonnull__(2)
__attribute__nonnull__(3);

#define ASSERT_ARGS_new_ret_continuation_pmc __attribute__unused__ int _ASSERT_ARGS_CHECK = \ #define ASSERT_ARGS_new_ret_continuation_pmc __attribute__unused__ int _ASSERT_ARGS_CHECK = \
PARROT_ASSERT_ARG(interp) PARROT_ASSERT_ARG(interp)
#define ASSERT_ARGS_Parrot_Context_get_info __attribute__unused__ int _ASSERT_ARGS_CHECK = \ #define ASSERT_ARGS_Parrot_Context_get_info __attribute__unused__ int _ASSERT_ARGS_CHECK = \
Expand Down Expand Up @@ -288,6 +303,15 @@ PMC* Parrot_find_pad(PARROT_INTERP,
PARROT_ASSERT_ARG(interp) \ PARROT_ASSERT_ARG(interp) \
|| PARROT_ASSERT_ARG(lex_name) \ || PARROT_ASSERT_ARG(lex_name) \
|| PARROT_ASSERT_ARG(ctx) || PARROT_ASSERT_ARG(ctx)
#define ASSERT_ARGS_Parrot_Sub_get_filename_from_pc \
__attribute__unused__ int _ASSERT_ARGS_CHECK = \
PARROT_ASSERT_ARG(interp) \
|| PARROT_ASSERT_ARG(sub) \
|| PARROT_ASSERT_ARG(pc)
#define ASSERT_ARGS_Parrot_Sub_get_line_from_pc __attribute__unused__ int _ASSERT_ARGS_CHECK = \
PARROT_ASSERT_ARG(interp) \
|| PARROT_ASSERT_ARG(subpmc) \
|| PARROT_ASSERT_ARG(pc)
/* Don't modify between HEADERIZER BEGIN / HEADERIZER END. Your changes will be lost. */ /* Don't modify between HEADERIZER BEGIN / HEADERIZER END. Your changes will be lost. */
/* HEADERIZER END: src/sub.c */ /* HEADERIZER END: src/sub.c */


Expand Down
1 change: 1 addition & 0 deletions lib/.gitignore
@@ -0,0 +1 @@
/DumbLink.pm
9 changes: 9 additions & 0 deletions lib/Parrot/.gitignore
@@ -0,0 +1,9 @@
/PMC.pm
/Jit.pm
/blib
/pm_to_blib
/PakFile2.c
/PakFile2.bs
/Makefile
/*.tmp
/OpLib
1 change: 1 addition & 0 deletions lib/Parrot/Config/.gitignore
@@ -0,0 +1 @@
/Generated.pm
1 change: 1 addition & 0 deletions lib/Parrot/Pmc2c/.gitignore
@@ -0,0 +1 @@
/PCCMETHOD_BITS.pm
1 change: 1 addition & 0 deletions ports/debian/.gitignore
@@ -0,0 +1 @@
/
13 changes: 13 additions & 0 deletions runtime/parrot/dynext/.gitignore
@@ -0,0 +1,13 @@
/*.dylib
/libnci.*
/*.bundle
/*.so
/*.exe
/*.pdb
/*.ilk
/*.def
/*.lib
/*.obj
/*.exp
/*.dll
/*.manifest
3 changes: 3 additions & 0 deletions runtime/parrot/include/.gitignore
@@ -0,0 +1,3 @@
/*.pasm
/*.pbc
/*.fpmc
4 changes: 4 additions & 0 deletions runtime/parrot/library/.gitignore
@@ -0,0 +1,4 @@
/PAST
/*.pbc
/config.pir
/OpenGL_funcs.pir
1 change: 1 addition & 0 deletions runtime/parrot/library/CGI/.gitignore
@@ -0,0 +1 @@
/*.pbc
1 change: 1 addition & 0 deletions runtime/parrot/library/Config/.gitignore
@@ -0,0 +1 @@
/*.pbc
1 change: 1 addition & 0 deletions runtime/parrot/library/Data/.gitignore
@@ -0,0 +1 @@
/*.pbc
1 change: 1 addition & 0 deletions runtime/parrot/library/Data/Dumper/.gitignore
@@ -0,0 +1 @@
/*.pbc
1 change: 1 addition & 0 deletions runtime/parrot/library/Digest/.gitignore
@@ -0,0 +1 @@
/*.pbc
1 change: 1 addition & 0 deletions runtime/parrot/library/Getopt/.gitignore
@@ -0,0 +1 @@
/Obj.pbc
1 change: 1 addition & 0 deletions runtime/parrot/library/MIME/.gitignore
@@ -0,0 +1 @@
/*.pbc
1 change: 1 addition & 0 deletions runtime/parrot/library/Math/.gitignore
@@ -0,0 +1 @@
/*.pbc
1 change: 1 addition & 0 deletions runtime/parrot/library/Math/Random/.gitignore
@@ -0,0 +1 @@
/*.pbc
1 change: 1 addition & 0 deletions runtime/parrot/library/NCI/.gitignore
@@ -0,0 +1 @@
/*.pbc
1 change: 1 addition & 0 deletions runtime/parrot/library/OpenGL/.gitignore
@@ -0,0 +1 @@
/*.pbc
1 change: 1 addition & 0 deletions runtime/parrot/library/PCT/.gitignore
@@ -0,0 +1 @@
/*.pbc
1 change: 1 addition & 0 deletions runtime/parrot/library/PGE/.gitignore
@@ -0,0 +1 @@
/*.pbc
1 change: 1 addition & 0 deletions runtime/parrot/library/Parrot/.gitignore
@@ -0,0 +1 @@
/*.pbc
1 change: 1 addition & 0 deletions runtime/parrot/library/Stream/.gitignore
@@ -0,0 +1 @@
/*.pbc
1 change: 1 addition & 0 deletions runtime/parrot/library/String/.gitignore
@@ -0,0 +1 @@
/Utils.pbc
1 change: 1 addition & 0 deletions runtime/parrot/library/Tcl/.gitignore
@@ -0,0 +1 @@
/*.pbc
1 change: 1 addition & 0 deletions runtime/parrot/library/Test/.gitignore
@@ -0,0 +1 @@
/*.pbc
1 change: 1 addition & 0 deletions runtime/parrot/library/Test/Builder/.gitignore
@@ -0,0 +1 @@
/*.pbc
1 change: 1 addition & 0 deletions runtime/parrot/library/YAML/.gitignore
@@ -0,0 +1 @@
/*.pbc
1 change: 1 addition & 0 deletions runtime/parrot/library/YAML/Dumper/.gitignore
@@ -0,0 +1 @@
/*.pbc
1 change: 1 addition & 0 deletions runtime/parrot/library/YAML/Parser/.gitignore
@@ -0,0 +1 @@
/*.pbc

0 comments on commit 10a76c3

Please sign in to comment.