mirror of
https://github.com/BepInEx/mono.git
synced 2026-11-16 01:41:18 -10:00
Compare commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
18ef7d9a0b | ||
|
|
619f48b58b | ||
|
|
65afb9f640 | ||
|
|
35043d00e4 | ||
|
|
f4d981cf03 | ||
|
|
fcdc920ddc | ||
|
|
78ca023824 | ||
|
|
2026a0b408 | ||
|
|
ed2eeebef1 | ||
|
|
17fda960fe | ||
|
|
b473fbf965 | ||
|
|
9f44a62acf | ||
|
|
19f5183be3 | ||
|
|
7f965e8220 | ||
|
|
e34fe7182c | ||
|
|
21cd9994e7 | ||
|
|
d220cbd99b | ||
|
|
8c6f3ca593 | ||
|
|
664c608478 | ||
|
|
ba95f00ec5 | ||
|
|
3cde89c4da | ||
|
|
5905ff2618 | ||
|
|
90e2692d69 | ||
|
|
1fb554d7ed | ||
|
|
a02ad3af61 | ||
|
|
8205e22ba8 | ||
|
|
198028586b | ||
|
|
024241f424 | ||
|
|
d979cff046 | ||
|
|
f1cfd85041 | ||
|
|
f774f96e05 | ||
|
|
c4a03267f4 | ||
|
|
f48bb4bfb5 | ||
|
|
b564c16226 | ||
|
|
9b0491d2b3 | ||
|
|
b5a3a169df | ||
|
|
c0a692eb5c | ||
|
|
fbb984af9b | ||
|
|
bf3cd4557d | ||
|
|
f0298e5a2c | ||
|
|
6f89034001 | ||
|
|
82822106d8 | ||
|
|
2612ccb64d | ||
|
|
40dffe542e | ||
|
|
bf6cd183cc | ||
|
|
b248963021 | ||
|
|
2b81318351 | ||
|
|
730b4c7fde | ||
|
|
162dd58515 | ||
|
|
44b9eff431 | ||
|
|
01603cf37b | ||
|
|
627772db1c | ||
|
|
736c747fdf | ||
|
|
7a150f7c84 | ||
|
|
a900ef987b | ||
|
|
cc10f1a009 | ||
|
|
9dd8285992 | ||
|
|
0df254ddae | ||
|
|
272336b6a3 | ||
|
|
20d7b6a558 | ||
|
|
02f59bac0c | ||
|
|
b11dfd2aff | ||
|
|
f379b7df51 | ||
|
|
3e9f79184b | ||
|
|
84c32c0c67 | ||
|
|
eb89783365 | ||
|
|
b25f5d16ce | ||
|
|
053f1415ba | ||
|
|
fd213a6d19 | ||
|
|
6e927b4ce3 | ||
|
|
77fa9812f0 | ||
|
|
db654d24db | ||
|
|
db847470a0 | ||
|
|
1f3421e78d | ||
|
|
04ac046007 | ||
|
|
98f0a7b39a | ||
|
|
6723b79e3c | ||
|
|
03f2ff096a | ||
|
|
6e819dea67 | ||
|
|
cec0f68cb8 | ||
|
|
b6a4dad872 | ||
|
|
373031252e | ||
|
|
5defe6f35c | ||
|
|
ef9543e288 | ||
|
|
5260e942a3 | ||
|
|
8d19114895 | ||
|
|
dc60579386 | ||
|
|
dc89b23ded | ||
|
|
dc3a252a52 | ||
|
|
0fce7d666b | ||
|
|
0884bca59e | ||
|
|
a201572042 | ||
|
|
fad223adb8 | ||
|
|
382dd87b48 | ||
|
|
b700aeb026 | ||
|
|
3aa52dca53 | ||
|
|
f9eae9f4bc | ||
|
|
50343d3d2e | ||
|
|
2d707b5dc1 | ||
|
|
216b11bd8d | ||
|
|
091f2cade1 | ||
|
|
edf70859d7 | ||
|
|
35a840a78c | ||
|
|
2a3ec28bff | ||
|
|
f87e37159d | ||
|
|
822ee730f3 | ||
|
|
1585459e2e | ||
|
|
89baf6d449 | ||
|
|
37bae7f34a | ||
|
|
47cc449895 | ||
|
|
ae0dad98ae | ||
|
|
87e93a0d58 | ||
|
|
b44b21ccf9 | ||
|
|
a727206659 | ||
|
|
c90e3b760f | ||
|
|
19ef659344 | ||
|
|
2ea7decb7b | ||
|
|
08198a547b | ||
|
|
76078f9670 | ||
|
|
bf134e25ff | ||
|
|
af3310bbd3 | ||
|
|
ccbe5f6a68 | ||
|
|
ad8807f137 | ||
|
|
d80a218532 | ||
|
|
adef97107b | ||
|
|
6ed62014fd | ||
|
|
79e6db69e0 | ||
|
|
80efb7ab7a | ||
|
|
3e2a9e30af | ||
|
|
d1d6b05324 | ||
|
|
292ee11f1f | ||
|
|
027c82b32c | ||
|
|
a356639122 | ||
|
|
f06366e31d | ||
|
|
18668a1fa4 | ||
|
|
c3145582fc | ||
|
|
ec5ef1e9c2 | ||
|
|
14f32d68f1 | ||
|
|
1cd2c3fa5a | ||
|
|
20482680ae | ||
|
|
09c26bf8c7 | ||
|
|
ebc5130e31 | ||
|
|
ed3e121299 | ||
|
|
46f7140123 | ||
|
|
a49236e879 | ||
|
|
e4426cbcdb | ||
|
|
59b84d7a76 | ||
|
|
572ab4dcbb | ||
|
|
bd5b3ca14b | ||
|
|
74de7595ac | ||
|
|
bd4c8b9074 | ||
|
|
9186521479 | ||
|
|
fded4957dd | ||
|
|
e0b65ae93d | ||
|
|
f85fd107c7 | ||
|
|
61c088a932 | ||
|
|
37ad1431c9 | ||
|
|
88fce13184 | ||
|
|
4e0ae8c578 | ||
|
|
5499b3ecc6 | ||
|
|
6f92ae31be | ||
|
|
92a593c17d | ||
|
|
8bb9bb703b | ||
|
|
39389be976 | ||
|
|
6f50c368f1 | ||
|
|
9d96fb5a76 | ||
|
|
1a77ad3fa7 | ||
|
|
1ba53e055a | ||
|
|
83e015740a |
No files matched your search
@@ -9,6 +9,7 @@ configure.ac crlf=input
|
||||
*.il crlf
|
||||
|
||||
.gitattributes crlf
|
||||
ChangeLog crlf
|
||||
*akefile* crlf
|
||||
*.sources crlf
|
||||
|
||||
|
||||
@@ -38,7 +38,6 @@ obj/
|
||||
[Rr]elease*/
|
||||
Ankh.NoLoad
|
||||
*.gpState
|
||||
.vscode/
|
||||
|
||||
# Tooling
|
||||
_ReSharper*/
|
||||
|
||||
+4
-9
@@ -20,18 +20,13 @@
|
||||
[submodule "external/ikdasm"]
|
||||
path = external/ikdasm
|
||||
url = git://github.com/mono/ikdasm.git
|
||||
[submodule "external/referencesource"]
|
||||
path = external/referencesource
|
||||
url = git://github.com/mono/referencesource
|
||||
branch = mono
|
||||
[submodule "external/reference-assemblies"]
|
||||
path = external/binary-reference-assemblies
|
||||
url = git://github.com/mono/reference-assemblies.git
|
||||
[submodule "external/Lucene.Net.Light"]
|
||||
path = external/Lucene.Net.Light
|
||||
url = git://github.com/mono/Lucene.Net.Light.git
|
||||
[submodule "external/nunit-lite"]
|
||||
path = external/nunit-lite
|
||||
url = git://github.com/mono/NUnitLite.git
|
||||
[submodule "external/nuget-buildtasks"]
|
||||
path = external/nuget-buildtasks
|
||||
url = git://github.com/mono/NuGet.BuildTasks
|
||||
[submodule "external/buildtools"]
|
||||
path = external/buildtools
|
||||
url = git://github.com/mono/buildtools.git
|
||||
+17
-6
@@ -21,18 +21,29 @@ investigate bugs, regressions and problems.
|
||||
License
|
||||
=======
|
||||
|
||||
The Mono runtime, compilers, and tools and most of the class libraries
|
||||
are licensed under the MIT license. But include some bits of code
|
||||
licensed under different licenses. The exact list is [available here] (https://github.com/mono/mono/blob/master/LICENSE).
|
||||
The Mono project uses the MIT X11, GNU LGPL version 2 and the Apache
|
||||
License 2.0. We also imported some Microsoft code licensed under the
|
||||
open source Microsoft Public License.
|
||||
|
||||
Different parts of Mono use different licenses. The actual details of
|
||||
which licenses are used for which parts are detailed on the LICENSE
|
||||
file in this directory.
|
||||
|
||||
CLA
|
||||
=======
|
||||
When contributing code, make sure that your contribution falls under
|
||||
the appropriate license. For example, contributions to code licensed
|
||||
under MIT/X11 code, should be MIT/X11 code.
|
||||
|
||||
Contributions are now taken under the [.NET Foundation CLA] (https://cla2.dotnetfoundation.org/).
|
||||
The runtime (`mono/...`) is a special case. The code is dual-licensed
|
||||
by Xamarin under both the GNU LGPL v2 license and is also available
|
||||
under commercial terms. For the runtime, you should either sign an
|
||||
agreement that grants Xamarin the rights to relicense your code under
|
||||
other licenses other than the LGPL v2 or your contribution must be
|
||||
made as an MIT/X11 license which grants us the same rights, but
|
||||
involves no paperwork. For the latter case, please specify on your
|
||||
commit(s) that you are licensing the changes under MIT/X11.
|
||||
|
||||
For other parts of the project that are dual-licensed, please state
|
||||
on your commit(s) what license you are contributing the changes under.
|
||||
|
||||
Testing
|
||||
=======
|
||||
|
||||
+501
-1
@@ -1 +1,501 @@
|
||||
See LICENSE file in the project root for full license information.
|
||||
|
||||
The Mono runtime is licensed under the terms of the GNU
|
||||
Library General Public License, version 2.
|
||||
|
||||
The eglib directory is licensed under the terms of the MIT
|
||||
X11 license and is a drop-in replacement for Mono's use of
|
||||
glib 2.0 (which was LGPL).
|
||||
|
||||
The Boehm licensing information is in the libgc directory
|
||||
|
||||
The SGen Garbage Collector is under the terms of the MIT X11
|
||||
license
|
||||
|
||||
The class libraries under mono/mcs are unless otherwise stated
|
||||
under the MIT X11 license.
|
||||
|
||||
Open source Microsoft code is licensed under the original terms
|
||||
which is either MS-PL for older components, or dual licensed
|
||||
MS-PL/Apache2 licensed.
|
||||
|
||||
GNU LIBRARY GENERAL PUBLIC LICENSE
|
||||
Version 2, June 1991
|
||||
|
||||
Copyright (C) 1991 Free Software Foundation, Inc.
|
||||
675 Mass Ave, Cambridge, MA 02139, USA
|
||||
Everyone is permitted to copy and distribute verbatim copies
|
||||
of this license document, but changing it is not allowed.
|
||||
|
||||
[This is the first released version of the library GPL. It is
|
||||
numbered 2 because it goes with version 2 of the ordinary GPL.]
|
||||
|
||||
Preamble
|
||||
|
||||
The licenses for most software are designed to take away your
|
||||
freedom to share and change it. By contrast, the GNU General Public
|
||||
Licenses are intended to guarantee your freedom to share and change
|
||||
free software--to make sure the software is free for all its users.
|
||||
|
||||
This license, the Library General Public License, applies to some
|
||||
specially designated Free Software Foundation software, and to any
|
||||
other libraries whose authors decide to use it. You can use it for
|
||||
your libraries, too.
|
||||
|
||||
When we speak of free software, we are referring to freedom, not
|
||||
price. Our General Public Licenses are designed to make sure that you
|
||||
have the freedom to distribute copies of free software (and charge for
|
||||
this service if you wish), that you receive source code or can get it
|
||||
if you want it, that you can change the software or use pieces of it
|
||||
in new free programs; and that you know you can do these things.
|
||||
|
||||
To protect your rights, we need to make restrictions that forbid
|
||||
anyone to deny you these rights or to ask you to surrender the rights.
|
||||
These restrictions translate to certain responsibilities for you if
|
||||
you distribute copies of the library, or if you modify it.
|
||||
|
||||
For example, if you distribute copies of the library, whether gratis
|
||||
or for a fee, you must give the recipients all the rights that we gave
|
||||
you. You must make sure that they, too, receive or can get the source
|
||||
code. If you link a program with the library, you must provide
|
||||
complete object files to the recipients so that they can relink them
|
||||
with the library, after making changes to the library and recompiling
|
||||
it. And you must show them these terms so they know their rights.
|
||||
|
||||
Our method of protecting your rights has two steps: (1) copyright
|
||||
the library, and (2) offer you this license which gives you legal
|
||||
permission to copy, distribute and/or modify the library.
|
||||
|
||||
Also, for each distributor's protection, we want to make certain
|
||||
that everyone understands that there is no warranty for this free
|
||||
library. If the library is modified by someone else and passed on, we
|
||||
want its recipients to know that what they have is not the original
|
||||
version, so that any problems introduced by others will not reflect on
|
||||
the original authors' reputations.
|
||||
|
||||
Finally, any free program is threatened constantly by software
|
||||
patents. We wish to avoid the danger that companies distributing free
|
||||
software will individually obtain patent licenses, thus in effect
|
||||
transforming the program into proprietary software. To prevent this,
|
||||
we have made it clear that any patent must be licensed for everyone's
|
||||
free use or not licensed at all.
|
||||
|
||||
Most GNU software, including some libraries, is covered by the ordinary
|
||||
GNU General Public License, which was designed for utility programs. This
|
||||
license, the GNU Library General Public License, applies to certain
|
||||
designated libraries. This license is quite different from the ordinary
|
||||
one; be sure to read it in full, and don't assume that anything in it is
|
||||
the same as in the ordinary license.
|
||||
|
||||
The reason we have a separate public license for some libraries is that
|
||||
they blur the distinction we usually make between modifying or adding to a
|
||||
program and simply using it. Linking a program with a library, without
|
||||
changing the library, is in some sense simply using the library, and is
|
||||
analogous to running a utility program or application program. However, in
|
||||
a textual and legal sense, the linked executable is a combined work, a
|
||||
derivative of the original library, and the ordinary General Public License
|
||||
treats it as such.
|
||||
|
||||
Because of this blurred distinction, using the ordinary General
|
||||
Public License for libraries did not effectively promote software
|
||||
sharing, because most developers did not use the libraries. We
|
||||
concluded that weaker conditions might promote sharing better.
|
||||
|
||||
However, unrestricted linking of non-free programs would deprive the
|
||||
users of those programs of all benefit from the free status of the
|
||||
libraries themselves. This Library General Public License is intended to
|
||||
permit developers of non-free programs to use free libraries, while
|
||||
preserving your freedom as a user of such programs to change the free
|
||||
libraries that are incorporated in them. (We have not seen how to achieve
|
||||
this as regards changes in header files, but we have achieved it as regards
|
||||
changes in the actual functions of the Library.) The hope is that this
|
||||
will lead to faster development of free libraries.
|
||||
|
||||
The precise terms and conditions for copying, distribution and
|
||||
modification follow. Pay close attention to the difference between a
|
||||
"work based on the library" and a "work that uses the library". The
|
||||
former contains code derived from the library, while the latter only
|
||||
works together with the library.
|
||||
|
||||
Note that it is possible for a library to be covered by the ordinary
|
||||
General Public License rather than by this special one.
|
||||
|
||||
GNU LIBRARY GENERAL PUBLIC LICENSE
|
||||
TERMS AND CONDITIONS FOR COPYING, DISTRIBUTION AND MODIFICATION
|
||||
|
||||
0. This License Agreement applies to any software library which
|
||||
contains a notice placed by the copyright holder or other authorized
|
||||
party saying it may be distributed under the terms of this Library
|
||||
General Public License (also called "this License"). Each licensee is
|
||||
addressed as "you".
|
||||
|
||||
A "library" means a collection of software functions and/or data
|
||||
prepared so as to be conveniently linked with application programs
|
||||
(which use some of those functions and data) to form executables.
|
||||
|
||||
The "Library", below, refers to any such software library or work
|
||||
which has been distributed under these terms. A "work based on the
|
||||
Library" means either the Library or any derivative work under
|
||||
copyright law: that is to say, a work containing the Library or a
|
||||
portion of it, either verbatim or with modifications and/or translated
|
||||
straightforwardly into another language. (Hereinafter, translation is
|
||||
included without limitation in the term "modification".)
|
||||
|
||||
"Source code" for a work means the preferred form of the work for
|
||||
making modifications to it. For a library, complete source code means
|
||||
all the source code for all modules it contains, plus any associated
|
||||
interface definition files, plus the scripts used to control compilation
|
||||
and installation of the library.
|
||||
|
||||
Activities other than copying, distribution and modification are not
|
||||
covered by this License; they are outside its scope. The act of
|
||||
running a program using the Library is not restricted, and output from
|
||||
such a program is covered only if its contents constitute a work based
|
||||
on the Library (independent of the use of the Library in a tool for
|
||||
writing it). Whether that is true depends on what the Library does
|
||||
and what the program that uses the Library does.
|
||||
|
||||
1. You may copy and distribute verbatim copies of the Library's
|
||||
complete source code as you receive it, in any medium, provided that
|
||||
you conspicuously and appropriately publish on each copy an
|
||||
appropriate copyright notice and disclaimer of warranty; keep intact
|
||||
all the notices that refer to this License and to the absence of any
|
||||
warranty; and distribute a copy of this License along with the
|
||||
Library.
|
||||
|
||||
You may charge a fee for the physical act of transferring a copy,
|
||||
and you may at your option offer warranty protection in exchange for a
|
||||
fee.
|
||||
|
||||
2. You may modify your copy or copies of the Library or any portion
|
||||
of it, thus forming a work based on the Library, and copy and
|
||||
distribute such modifications or work under the terms of Section 1
|
||||
above, provided that you also meet all of these conditions:
|
||||
|
||||
a) The modified work must itself be a software library.
|
||||
|
||||
b) You must cause the files modified to carry prominent notices
|
||||
stating that you changed the files and the date of any change.
|
||||
|
||||
c) You must cause the whole of the work to be licensed at no
|
||||
charge to all third parties under the terms of this License.
|
||||
|
||||
d) If a facility in the modified Library refers to a function or a
|
||||
table of data to be supplied by an application program that uses
|
||||
the facility, other than as an argument passed when the facility
|
||||
is invoked, then you must make a good faith effort to ensure that,
|
||||
in the event an application does not supply such function or
|
||||
table, the facility still operates, and performs whatever part of
|
||||
its purpose remains meaningful.
|
||||
|
||||
(For example, a function in a library to compute square roots has
|
||||
a purpose that is entirely well-defined independent of the
|
||||
application. Therefore, Subsection 2d requires that any
|
||||
application-supplied function or table used by this function must
|
||||
be optional: if the application does not supply it, the square
|
||||
root function must still compute square roots.)
|
||||
|
||||
These requirements apply to the modified work as a whole. If
|
||||
identifiable sections of that work are not derived from the Library,
|
||||
and can be reasonably considered independent and separate works in
|
||||
themselves, then this License, and its terms, do not apply to those
|
||||
sections when you distribute them as separate works. But when you
|
||||
distribute the same sections as part of a whole which is a work based
|
||||
on the Library, the distribution of the whole must be on the terms of
|
||||
this License, whose permissions for other licensees extend to the
|
||||
entire whole, and thus to each and every part regardless of who wrote
|
||||
it.
|
||||
|
||||
Thus, it is not the intent of this section to claim rights or contest
|
||||
your rights to work written entirely by you; rather, the intent is to
|
||||
exercise the right to control the distribution of derivative or
|
||||
collective works based on the Library.
|
||||
|
||||
In addition, mere aggregation of another work not based on the Library
|
||||
with the Library (or with a work based on the Library) on a volume of
|
||||
a storage or distribution medium does not bring the other work under
|
||||
the scope of this License.
|
||||
|
||||
3. You may opt to apply the terms of the ordinary GNU General Public
|
||||
License instead of this License to a given copy of the Library. To do
|
||||
this, you must alter all the notices that refer to this License, so
|
||||
that they refer to the ordinary GNU General Public License, version 2,
|
||||
instead of to this License. (If a newer version than version 2 of the
|
||||
ordinary GNU General Public License has appeared, then you can specify
|
||||
that version instead if you wish.) Do not make any other change in
|
||||
these notices.
|
||||
|
||||
Once this change is made in a given copy, it is irreversible for
|
||||
that copy, so the ordinary GNU General Public License applies to all
|
||||
subsequent copies and derivative works made from that copy.
|
||||
|
||||
This option is useful when you wish to copy part of the code of
|
||||
the Library into a program that is not a library.
|
||||
|
||||
4. You may copy and distribute the Library (or a portion or
|
||||
derivative of it, under Section 2) in object code or executable form
|
||||
under the terms of Sections 1 and 2 above provided that you accompany
|
||||
it with the complete corresponding machine-readable source code, which
|
||||
must be distributed under the terms of Sections 1 and 2 above on a
|
||||
medium customarily used for software interchange.
|
||||
|
||||
If distribution of object code is made by offering access to copy
|
||||
from a designated place, then offering equivalent access to copy the
|
||||
source code from the same place satisfies the requirement to
|
||||
distribute the source code, even though third parties are not
|
||||
compelled to copy the source along with the object code.
|
||||
|
||||
5. A program that contains no derivative of any portion of the
|
||||
Library, but is designed to work with the Library by being compiled or
|
||||
linked with it, is called a "work that uses the Library". Such a
|
||||
work, in isolation, is not a derivative work of the Library, and
|
||||
therefore falls outside the scope of this License.
|
||||
|
||||
However, linking a "work that uses the Library" with the Library
|
||||
creates an executable that is a derivative of the Library (because it
|
||||
contains portions of the Library), rather than a "work that uses the
|
||||
library". The executable is therefore covered by this License.
|
||||
Section 6 states terms for distribution of such executables.
|
||||
|
||||
When a "work that uses the Library" uses material from a header file
|
||||
that is part of the Library, the object code for the work may be a
|
||||
derivative work of the Library even though the source code is not.
|
||||
Whether this is true is especially significant if the work can be
|
||||
linked without the Library, or if the work is itself a library. The
|
||||
threshold for this to be true is not precisely defined by law.
|
||||
|
||||
If such an object file uses only numerical parameters, data
|
||||
structure layouts and accessors, and small macros and small inline
|
||||
functions (ten lines or less in length), then the use of the object
|
||||
file is unrestricted, regardless of whether it is legally a derivative
|
||||
work. (Executables containing this object code plus portions of the
|
||||
Library will still fall under Section 6.)
|
||||
|
||||
Otherwise, if the work is a derivative of the Library, you may
|
||||
distribute the object code for the work under the terms of Section 6.
|
||||
Any executables containing that work also fall under Section 6,
|
||||
whether or not they are linked directly with the Library itself.
|
||||
|
||||
6. As an exception to the Sections above, you may also compile or
|
||||
link a "work that uses the Library" with the Library to produce a
|
||||
work containing portions of the Library, and distribute that work
|
||||
under terms of your choice, provided that the terms permit
|
||||
modification of the work for the customer's own use and reverse
|
||||
engineering for debugging such modifications.
|
||||
|
||||
You must give prominent notice with each copy of the work that the
|
||||
Library is used in it and that the Library and its use are covered by
|
||||
this License. You must supply a copy of this License. If the work
|
||||
during execution displays copyright notices, you must include the
|
||||
copyright notice for the Library among them, as well as a reference
|
||||
directing the user to the copy of this License. Also, you must do one
|
||||
of these things:
|
||||
|
||||
a) Accompany the work with the complete corresponding
|
||||
machine-readable source code for the Library including whatever
|
||||
changes were used in the work (which must be distributed under
|
||||
Sections 1 and 2 above); and, if the work is an executable linked
|
||||
with the Library, with the complete machine-readable "work that
|
||||
uses the Library", as object code and/or source code, so that the
|
||||
user can modify the Library and then relink to produce a modified
|
||||
executable containing the modified Library. (It is understood
|
||||
that the user who changes the contents of definitions files in the
|
||||
Library will not necessarily be able to recompile the application
|
||||
to use the modified definitions.)
|
||||
|
||||
b) Accompany the work with a written offer, valid for at
|
||||
least three years, to give the same user the materials
|
||||
specified in Subsection 6a, above, for a charge no more
|
||||
than the cost of performing this distribution.
|
||||
|
||||
c) If distribution of the work is made by offering access to copy
|
||||
from a designated place, offer equivalent access to copy the above
|
||||
specified materials from the same place.
|
||||
|
||||
d) Verify that the user has already received a copy of these
|
||||
materials or that you have already sent this user a copy.
|
||||
|
||||
For an executable, the required form of the "work that uses the
|
||||
Library" must include any data and utility programs needed for
|
||||
reproducing the executable from it. However, as a special exception,
|
||||
the source code distributed need not include anything that is normally
|
||||
distributed (in either source or binary form) with the major
|
||||
components (compiler, kernel, and so on) of the operating system on
|
||||
which the executable runs, unless that component itself accompanies
|
||||
the executable.
|
||||
|
||||
It may happen that this requirement contradicts the license
|
||||
restrictions of other proprietary libraries that do not normally
|
||||
accompany the operating system. Such a contradiction means you cannot
|
||||
use both them and the Library together in an executable that you
|
||||
distribute.
|
||||
|
||||
7. You may place library facilities that are a work based on the
|
||||
Library side-by-side in a single library together with other library
|
||||
facilities not covered by this License, and distribute such a combined
|
||||
library, provided that the separate distribution of the work based on
|
||||
the Library and of the other library facilities is otherwise
|
||||
permitted, and provided that you do these two things:
|
||||
|
||||
a) Accompany the combined library with a copy of the same work
|
||||
based on the Library, uncombined with any other library
|
||||
facilities. This must be distributed under the terms of the
|
||||
Sections above.
|
||||
|
||||
b) Give prominent notice with the combined library of the fact
|
||||
that part of it is a work based on the Library, and explaining
|
||||
where to find the accompanying uncombined form of the same work.
|
||||
|
||||
8. You may not copy, modify, sublicense, link with, or distribute
|
||||
the Library except as expressly provided under this License. Any
|
||||
attempt otherwise to copy, modify, sublicense, link with, or
|
||||
distribute the Library is void, and will automatically terminate your
|
||||
rights under this License. However, parties who have received copies,
|
||||
or rights, from you under this License will not have their licenses
|
||||
terminated so long as such parties remain in full compliance.
|
||||
|
||||
9. You are not required to accept this License, since you have not
|
||||
signed it. However, nothing else grants you permission to modify or
|
||||
distribute the Library or its derivative works. These actions are
|
||||
prohibited by law if you do not accept this License. Therefore, by
|
||||
modifying or distributing the Library (or any work based on the
|
||||
Library), you indicate your acceptance of this License to do so, and
|
||||
all its terms and conditions for copying, distributing or modifying
|
||||
the Library or works based on it.
|
||||
|
||||
10. Each time you redistribute the Library (or any work based on the
|
||||
Library), the recipient automatically receives a license from the
|
||||
original licensor to copy, distribute, link with or modify the Library
|
||||
subject to these terms and conditions. You may not impose any further
|
||||
restrictions on the recipients' exercise of the rights granted herein.
|
||||
You are not responsible for enforcing compliance by third parties to
|
||||
this License.
|
||||
|
||||
11. If, as a consequence of a court judgment or allegation of patent
|
||||
infringement or for any other reason (not limited to patent issues),
|
||||
conditions are imposed on you (whether by court order, agreement or
|
||||
otherwise) that contradict the conditions of this License, they do not
|
||||
excuse you from the conditions of this License. If you cannot
|
||||
distribute so as to satisfy simultaneously your obligations under this
|
||||
License and any other pertinent obligations, then as a consequence you
|
||||
may not distribute the Library at all. For example, if a patent
|
||||
license would not permit royalty-free redistribution of the Library by
|
||||
all those who receive copies directly or indirectly through you, then
|
||||
the only way you could satisfy both it and this License would be to
|
||||
refrain entirely from distribution of the Library.
|
||||
|
||||
If any portion of this section is held invalid or unenforceable under any
|
||||
particular circumstance, the balance of the section is intended to apply,
|
||||
and the section as a whole is intended to apply in other circumstances.
|
||||
|
||||
It is not the purpose of this section to induce you to infringe any
|
||||
patents or other property right claims or to contest validity of any
|
||||
such claims; this section has the sole purpose of protecting the
|
||||
integrity of the free software distribution system which is
|
||||
implemented by public license practices. Many people have made
|
||||
generous contributions to the wide range of software distributed
|
||||
through that system in reliance on consistent application of that
|
||||
system; it is up to the author/donor to decide if he or she is willing
|
||||
to distribute software through any other system and a licensee cannot
|
||||
impose that choice.
|
||||
|
||||
This section is intended to make thoroughly clear what is believed to
|
||||
be a consequence of the rest of this License.
|
||||
|
||||
12. If the distribution and/or use of the Library is restricted in
|
||||
certain countries either by patents or by copyrighted interfaces, the
|
||||
original copyright holder who places the Library under this License may add
|
||||
an explicit geographical distribution limitation excluding those countries,
|
||||
so that distribution is permitted only in or among countries not thus
|
||||
excluded. In such case, this License incorporates the limitation as if
|
||||
written in the body of this License.
|
||||
|
||||
13. The Free Software Foundation may publish revised and/or new
|
||||
versions of the Library General Public License from time to time.
|
||||
Such new versions will be similar in spirit to the present version,
|
||||
but may differ in detail to address new problems or concerns.
|
||||
|
||||
Each version is given a distinguishing version number. If the Library
|
||||
specifies a version number of this License which applies to it and
|
||||
"any later version", you have the option of following the terms and
|
||||
conditions either of that version or of any later version published by
|
||||
the Free Software Foundation. If the Library does not specify a
|
||||
license version number, you may choose any version ever published by
|
||||
the Free Software Foundation.
|
||||
|
||||
14. If you wish to incorporate parts of the Library into other free
|
||||
programs whose distribution conditions are incompatible with these,
|
||||
write to the author to ask for permission. For software which is
|
||||
copyrighted by the Free Software Foundation, write to the Free
|
||||
Software Foundation; we sometimes make exceptions for this. Our
|
||||
decision will be guided by the two goals of preserving the free status
|
||||
of all derivatives of our free software and of promoting the sharing
|
||||
and reuse of software generally.
|
||||
|
||||
NO WARRANTY
|
||||
|
||||
15. BECAUSE THE LIBRARY IS LICENSED FREE OF CHARGE, THERE IS NO
|
||||
WARRANTY FOR THE LIBRARY, TO THE EXTENT PERMITTED BY APPLICABLE LAW.
|
||||
EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT HOLDERS AND/OR
|
||||
OTHER PARTIES PROVIDE THE LIBRARY "AS IS" WITHOUT WARRANTY OF ANY
|
||||
KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, THE
|
||||
IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
|
||||
PURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE
|
||||
LIBRARY IS WITH YOU. SHOULD THE LIBRARY PROVE DEFECTIVE, YOU ASSUME
|
||||
THE COST OF ALL NECESSARY SERVICING, REPAIR OR CORRECTION.
|
||||
|
||||
16. IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN
|
||||
WRITING WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MAY MODIFY
|
||||
AND/OR REDISTRIBUTE THE LIBRARY AS PERMITTED ABOVE, BE LIABLE TO YOU
|
||||
FOR DAMAGES, INCLUDING ANY GENERAL, SPECIAL, INCIDENTAL OR
|
||||
CONSEQUENTIAL DAMAGES ARISING OUT OF THE USE OR INABILITY TO USE THE
|
||||
LIBRARY (INCLUDING BUT NOT LIMITED TO LOSS OF DATA OR DATA BEING
|
||||
RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD PARTIES OR A
|
||||
FAILURE OF THE LIBRARY TO OPERATE WITH ANY OTHER SOFTWARE), EVEN IF
|
||||
SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH
|
||||
DAMAGES.
|
||||
|
||||
END OF TERMS AND CONDITIONS
|
||||
|
||||
Appendix: How to Apply These Terms to Your New Libraries
|
||||
|
||||
If you develop a new library, and you want it to be of the greatest
|
||||
possible use to the public, we recommend making it free software that
|
||||
everyone can redistribute and change. You can do so by permitting
|
||||
redistribution under these terms (or, alternatively, under the terms of the
|
||||
ordinary General Public License).
|
||||
|
||||
To apply these terms, attach the following notices to the library. It is
|
||||
safest to attach them to the start of each source file to most effectively
|
||||
convey the exclusion of warranty; and each file should have at least the
|
||||
"copyright" line and a pointer to where the full notice is found.
|
||||
|
||||
<one line to give the library's name and a brief idea of what it does.>
|
||||
Copyright (C) <year> <name of author>
|
||||
|
||||
This library is free software; you can redistribute it and/or
|
||||
modify it under the terms of the GNU Library General Public
|
||||
License as published by the Free Software Foundation; either
|
||||
version 2 of the License, or (at your option) any later version.
|
||||
|
||||
This library is distributed in the hope that it will be useful,
|
||||
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
||||
Library General Public License for more details.
|
||||
|
||||
You should have received a copy of the GNU Library General Public
|
||||
License along with this library; if not, write to the Free
|
||||
Software Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
|
||||
|
||||
Also add information on how to contact you by electronic and paper mail.
|
||||
|
||||
You should also get your employer (if you work as a programmer) or your
|
||||
school, if any, to sign a "copyright disclaimer" for the library, if
|
||||
necessary. Here is a sample; alter the names:
|
||||
|
||||
Yoyodyne, Inc., hereby disclaims all copyright interest in the
|
||||
library `Frob' (a library for tweaking knobs) written by James Random Hacker.
|
||||
|
||||
<signature of Ty Coon>, 1 April 1990
|
||||
Ty Coon, President of Vice
|
||||
|
||||
That's all there is to it!
|
||||
+10
-23
@@ -4,16 +4,17 @@ AM_CFLAGS = $(WERROR_CFLAGS)
|
||||
|
||||
MONOTOUCH_SUBDIRS = $(libgc_dir) eglib/src mono
|
||||
|
||||
# Some tools might not build when cross-compiling
|
||||
if CROSS_COMPILING
|
||||
tools_dir =
|
||||
else
|
||||
tools_dir = tools
|
||||
endif
|
||||
|
||||
SUBDIRS = po $(libgc_dir) eglib mono $(ikvm_native_dir) support data runtime scripts man samples $(tools_dir) msvc $(docs_dir) acceptance-tests llvm
|
||||
SUBDIRS = po $(libgc_dir) eglib mono $(ikvm_native_dir) support data runtime scripts man samples msvc $(docs_dir) acceptance-tests
|
||||
# Keep in sync with SUBDIRS
|
||||
DIST_SUBDIRS = m4 po $(libgc_dir) eglib mono ikvm-native support data runtime scripts man samples tools msvc docs acceptance-tests llvm
|
||||
## 'tools' is not normally built
|
||||
DIST_SUBDIRS = m4 po $(libgc_dir) eglib mono ikvm-native support data runtime scripts man samples tools msvc docs acceptance-tests
|
||||
else
|
||||
SUBDIRS = po $(libgc_dir) eglib mono $(ikvm_native_dir) support data runtime scripts man samples msvc $(docs_dir) acceptance-tests
|
||||
# Keep in sync with SUBDIRS
|
||||
## 'tools' is not normally built
|
||||
DIST_SUBDIRS = m4 po $(libgc_dir) eglib mono ikvm-native support data runtime scripts man samples tools msvc docs acceptance-tests
|
||||
endif
|
||||
|
||||
all: update_submodules
|
||||
|
||||
@@ -31,8 +32,7 @@ EXTRA_DIST= \
|
||||
mono-uninstalled.pc.in \
|
||||
winconfig.h \
|
||||
code_of_conduct.md \
|
||||
external \
|
||||
mcs/class/referencesource
|
||||
external
|
||||
|
||||
DISTCHECK_CONFIGURE_FLAGS = EXTERNAL_MCS=false EXTERNAL_RUNTIME=false
|
||||
|
||||
@@ -67,14 +67,6 @@ get-monolite-latest:
|
||||
cd $(mcslib) && { (wget -O- $(monolite_url) || curl $(monolite_url)) | gzip -d | tar xf - ; }
|
||||
cd $(mcslib) && mv -f monolite-* monolite
|
||||
|
||||
if BITCODE
|
||||
BITCODE_CHECK=yes
|
||||
endif
|
||||
|
||||
.PHONY: check-ci
|
||||
check-ci:
|
||||
MONO_LLVMONLY=$(BITCODE_CHECK) $(srcdir)/scripts/ci/run-test-$(TEST_PROFILE).sh
|
||||
|
||||
.PHONY: validate do-build-mono-mcs mcs-do-clean mcs-do-tests
|
||||
validate: do-build-mono-mcs
|
||||
$(MAKE) mcs-do-tests
|
||||
@@ -160,7 +152,6 @@ package-inputs:
|
||||
read libou; echo " <library_output>$$libou</library_output>"; \
|
||||
read fx_ver; echo " <fx_version>$$fx_ver</fx_version>"; \
|
||||
read profile; echo " <profile>$$profile</profile>"; \
|
||||
read resxt; echo " <resources>$$resxt</resources>"; \
|
||||
read resp; echo " <response>$$resp</response>"; \
|
||||
echo " </project>") >> msvc/scripts/order.xml; \
|
||||
done
|
||||
@@ -172,7 +163,3 @@ update-llvm-version:
|
||||
REV=`$(LLVM_DIR)/bin/llvm-config --version` && sed -e "s,expected_llvm_version=.*,expected_llvm_version=\"$$REV\"," < configure.ac > tmp && mv tmp configure.ac && echo "Version set to $$REV."
|
||||
|
||||
|
||||
update-solution-files:
|
||||
make update-csproj
|
||||
make package-inputs
|
||||
(cd msvc/scripts; make genproj.exe; mono genproj.exe)
|
||||
-44
@@ -1,44 +0,0 @@
|
||||
Microsoft Patent Promise for Mono
|
||||
|
||||
Microsoft Corporation and its affiliates (“Microsoft”) promise not to
|
||||
assert any Applicable Patents against you for making, using, selling,
|
||||
offering for sale, importing, or distributing Mono.
|
||||
|
||||
If you file, maintain, or voluntarily participate in any claim in a
|
||||
lawsuit alleging direct or contributory patent infringement by Mono,
|
||||
or inducement of patent infringement by Mono, then your rights under
|
||||
this promise will automatically terminate.
|
||||
|
||||
This promise is not an assurance that (i) any Applicable Patents are
|
||||
valid or enforceable or (ii) Mono does not infringe patents or other
|
||||
intellectual property rights of any third party. No rights except
|
||||
those expressly stated in this promise are granted, waived or received
|
||||
by Microsoft, whether by implication, exhaustion, estoppel or
|
||||
otherwise. This is a personal promise directly from Microsoft to you,
|
||||
and you agree as a condition of benefitting from it that no Microsoft
|
||||
rights are received from suppliers, distributors, or otherwise in
|
||||
connection with this promise.
|
||||
|
||||
Definitions:
|
||||
|
||||
“Mono” means those portions of the software development technology, as
|
||||
originally distributed by Xamarin, Inc. or the .NET Foundation under
|
||||
the name “Mono,” that implement .NET Framework Functionality, provided
|
||||
that such portions at a minimum implement all of the required parts of
|
||||
the mandatory provisions of Standard ECMA-335 – Common Language
|
||||
Infrastructure (CLI).
|
||||
|
||||
“.NET Framework Functionality” means any functionality in Microsoft’s
|
||||
.NET Framework as described in Microsoft’s API documentation on
|
||||
Microsoft’s MSDN website, including the functionality in
|
||||
Windowsbase.dll, but excluding all other functionality in the Windows
|
||||
Presentation Foundation component of .NET Framework.
|
||||
|
||||
“Applicable Patents” are those patent claims, currently owned by
|
||||
Microsoft and acquired in the future, that are necessarily infringed
|
||||
by Mono. For clarity, Applicable Patents do not include any patent
|
||||
claims that are infringed (x) by any underlying or enabling technology
|
||||
that may be used, combined, or distributed in connection with Mono
|
||||
(such as hardware, operating systems, or applications that run on
|
||||
Mono), (y) only as a consequence of modification of Mono, or (z) only
|
||||
by the combination of Mono with third party code.
|
||||
@@ -3,8 +3,6 @@ create cross platform applications. It is an open source
|
||||
implementation of Microsoft's .NET Framework based on the ECMA
|
||||
standards for C# and the Common Language Runtime.
|
||||
|
||||
The Mono project is part of the [.NET Foundation](http://www.dotnetfoundation.org/)
|
||||
|
||||
[](https://gitter.im/mono/mono?utm_source=badge&utm_medium=badge&utm_campaign=pr-badge&utm_content=badge)
|
||||
|
||||
1. [Compilation and Installation](#compilation-and-installation)
|
||||
@@ -19,30 +17,28 @@ The Mono project is part of the [.NET Foundation](http://www.dotnetfoundation.or
|
||||
|
||||
Officially supported architectures:
|
||||
|
||||
| ubuntu-1404-amd64 | ubuntu-1404-i386 | debian-8-armel | debian-8-armhf | debian-8-arm64 | windows-amd64 |
|
||||
|------------------------------|-----------------------------|---------------------------|---------------------------|-----------------------------|----------------------------|
|
||||
| [![ubuntu-1404-amd64][1]][2] | [![ubuntu-1404-i386][3]][4] | [![debian-8-armel][5]][6] | [![debian-8-armhf][7]][8] | [![debian-8-arm64][9]][10] | [![windows-amd64][11]][12] |
|
||||
| debian-amd64 | debian-i386 | debian-armel | debian-armhf | windows-amd64 |
|
||||
|-------------------------|------------------------|-------------------------|-------------------------|---------------------------|
|
||||
| [![debian-amd64][1]][2] | [![debian-i386][3]][4] | [![debian-armel][5]][6] | [![debian-armhf][7]][8] | [![windows-amd64][9]][10] |
|
||||
|
||||
Community supported architectures:
|
||||
|
||||
| centos-s390x |
|
||||
|---------------------------|
|
||||
| [![centos-s390x][13]][14] |
|
||||
| [![centos-s390x][11]][12] |
|
||||
|
||||
[1]: https://jenkins.mono-project.com/job/test-mono-mainline-linux/label=ubuntu-1404-amd64/badge/icon
|
||||
[2]: https://jenkins.mono-project.com/job/test-mono-mainline-linux/label=ubuntu-1404-amd64
|
||||
[3]: https://jenkins.mono-project.com/job/test-mono-mainline-linux/label=ubuntu-1404-i386/badge/icon
|
||||
[4]: https://jenkins.mono-project.com/job/test-mono-mainline-linux/label=ubuntu-1404-i386/
|
||||
[5]: https://jenkins.mono-project.com/job/test-mono-mainline-linux/label=debian-8-armel/badge/icon
|
||||
[6]: https://jenkins.mono-project.com/job/test-mono-mainline-linux/label=debian-8-armel/
|
||||
[7]: https://jenkins.mono-project.com/job/test-mono-mainline-linux/label=debian-8-armhf/badge/icon
|
||||
[8]: https://jenkins.mono-project.com/job/test-mono-mainline-linux/label=debian-8-armhf/
|
||||
[9]: https://jenkins.mono-project.com/job/test-mono-mainline-linux/label=debian-8-arm64/badge/icon
|
||||
[10]: https://jenkins.mono-project.com/job/test-mono-mainline-linux/label=debian-8-arm64/
|
||||
[11]: https://ci.appveyor.com/api/projects/status/1e61ebdfpbiei58v/branch/master?svg=true
|
||||
[12]: https://ci.appveyor.com/project/ajlennon/mono-817/branch/master
|
||||
[13]: https://jenkins.mono-project.com/job/z/label=centos-s390x/badge/icon
|
||||
[14]: https://jenkins.mono-project.com/job/z/label=centos-s390x
|
||||
[1]: http://jenkins.mono-project.com/job/test-mono-mainline/label=debian-amd64/badge/icon
|
||||
[2]: http://jenkins.mono-project.com/job/test-mono-mainline/label=debian-amd64/
|
||||
[3]: http://jenkins.mono-project.com/job/test-mono-mainline/label=debian-i386/badge/icon
|
||||
[4]: http://jenkins.mono-project.com/job/test-mono-mainline/label=debian-i386/
|
||||
[5]: http://jenkins.mono-project.com/job/test-mono-mainline/label=debian-armel/badge/icon
|
||||
[6]: http://jenkins.mono-project.com/job/test-mono-mainline/label=debian-armel/
|
||||
[7]: http://jenkins.mono-project.com/job/test-mono-mainline/label=debian-armhf/badge/icon
|
||||
[8]: http://jenkins.mono-project.com/job/test-mono-mainline/label=debian-armhf/
|
||||
[9]: https://ci.appveyor.com/api/projects/status/1e61ebdfpbiei58v/branch/master?svg=true
|
||||
[10]: https://ci.appveyor.com/project/ajlennon/mono-817/branch/master
|
||||
[11]: https://jenkins.mono-project.com/job/z/label=centos-s390x/badge/icon
|
||||
[12]: https://jenkins.mono-project.com/job/z/label=centos-s390x
|
||||
|
||||
Compilation and Installation
|
||||
============================
|
||||
@@ -108,8 +104,6 @@ See the man pages for mono(1), mcs(1) and monodis(1) for further details.
|
||||
Directory Roadmap
|
||||
=================
|
||||
|
||||
* `acceptance-tests/` - Optional third party test suites used to validate Mono against a wider range of test cases.
|
||||
|
||||
* `data/` - Configuration files installed as part of the Mono runtime.
|
||||
|
||||
* `docs/` - Technical documents about the Mono runtime.
|
||||
@@ -187,7 +181,7 @@ while `mono-sgen` uses the Simple Generational GC.
|
||||
* `--with-gc=[included, boehm, none]` - Selects the default Boehm
|
||||
garbage collector engine to use.
|
||||
|
||||
* *included*: (*slightly modified Boehm GC*) This is the default
|
||||
* *included*: (*slighty modified Boehm GC*) This is the default
|
||||
value for the Boehm GC, and it's the most feature complete, it will
|
||||
allow Mono to use typed allocations and support the debugger.
|
||||
|
||||
@@ -200,13 +194,6 @@ Disables the inclusion of a garbage collector.
|
||||
|
||||
* This defaults to `included`.
|
||||
|
||||
* `--with-cooperative-gc`
|
||||
|
||||
* If you pass this flag the Mono runtime is configured to only use
|
||||
the cooperative mode of the garbage collector. If you do not pass
|
||||
this flag, then you can control at runtime the use of the
|
||||
cooperative GC mode by setting the `MONO_ENABLE_COOP` flag.
|
||||
|
||||
* `--with-tls=__thread,pthread`
|
||||
|
||||
* Controls how Mono should access thread local storage,
|
||||
@@ -432,10 +419,8 @@ cycle.
|
||||
multiple CPUs to do its work. This helps performance
|
||||
on multi-CPU machines as the work is divided across CPUS.
|
||||
|
||||
* This option is not currently the default on OSX
|
||||
as it runs into issues there.
|
||||
|
||||
* This option only applies to the Boehm GC.
|
||||
* This option is not currently the default as we have
|
||||
not done much testing with Mono.
|
||||
|
||||
* `--enable-dtrace`
|
||||
|
||||
@@ -511,32 +496,3 @@ to do at all), first edit `.gitmodules` to point to the new location, then:
|
||||
The desired output diff is a change in `.gitmodules` to reflect the
|
||||
change in the remote URL, and a change in /<submodule> where you see
|
||||
the desired change in the commit hash.
|
||||
|
||||
License
|
||||
=======
|
||||
|
||||
See the LICENSE file for licensing information, and the PATENTS.TXT
|
||||
file for information about Microsoft's patent grant.
|
||||
|
||||
Mono Trademark Use Policy
|
||||
=========================
|
||||
|
||||
The use of trademarks and logos for Mono can be found [here] (http://www.dotnetfoundation.org/legal/mono-tm).
|
||||
|
||||
Maintaining the Class Library Solution Files
|
||||
============================================
|
||||
|
||||
Mono now ships with a solution file that can be used to build the
|
||||
assemblies from an IDE. Either by opening the topmost `net_4_x.sln`
|
||||
file, or to by loading one of the individual `csproj` files located in
|
||||
each directory.
|
||||
|
||||
These are maintained by extracting the configuration information from
|
||||
our Makefiles, which as of May 2016 remain the canonical location for
|
||||
configuration information.
|
||||
|
||||
When changes are made to the Makefiles, a user would need to run the
|
||||
following command to re-generate the solution files at the top level:
|
||||
|
||||
$ make update-solution-files
|
||||
|
||||
+5197
-12
File diff suppressed because it is too large.
Load diff
+10
-31
@@ -1,35 +1,14 @@
|
||||
Acceptance tests
|
||||
================
|
||||
This directory contains acceptance tests, handled by optional non git submodule based submodules. Run the tests via "make check-full" (there are also targets for individual test suites).
|
||||
|
||||
This directory contains acceptance tests, which are third party test suites and frameworks that are used to validate Mono against a wider range of test cases that go beyond the Mono unit tests that run as part of CI.
|
||||
The SUBMODULES.json file stores information about the submodules, and make targets are used to check out submodules, check their versions, and update the submodule information.
|
||||
|
||||
In order to make checking out those test suites optional we don't use traditional git submodules, but instead clone them on demand when needed. The custom submodule repositories are checked out into the acceptance-tests/external/ directory.
|
||||
By convention, submodules repositories are at the same level as the mono repository.
|
||||
|
||||
## Usage
|
||||
Make targets available:
|
||||
|
||||
Running all test suites is possible via "make check-full". There are also targets for running individual test suites, see below.
|
||||
|
||||
Some of the test suites require an installed Mono (i.e. they don't work with the in-tree build), those will ask you to pass in the PREFIX variable pointing to the installation directory when invoking make. Note that this directory needs to be writable as we overwrite some files there as part of testing.
|
||||
|
||||
## Individual test suites and targets
|
||||
|
||||
* `make check-ms-test-suite` - Runs tests that were shared with Xamarin, those are not available publically and will be skipped when the repository is not accessible.
|
||||
* `make check-roslyn` - Runs the Roslyn test suite.
|
||||
* `make check-coreclr` - Runs the CoreCLR test suite.
|
||||
* `make coreclr-runtest-coremanglib` - Runs only the CoreMangLib portion of the CoreCLR tests, those tests mostly target the BCL behavior.
|
||||
* `make coreclr-runtest-basic` - Runs only the CoreCLR tests that target runtime behavior and stability.
|
||||
* `make coreclr-compile-tests` - Convenience target that precompiles all the test cases in parallel.
|
||||
* `make coreclr-gcstress` - Runs the CoreCLR GC stress tests.
|
||||
|
||||
## Updating submodules
|
||||
|
||||
The SUBMODULES.json file stores information about the submodules, and make targets are used to check out submodules, check their versions, and update the submodule information:
|
||||
|
||||
* `make validate-<module>` - Checks whenever `<module>` is checked out and matches the version in the info file.
|
||||
* `make reset-<module>` - Clones `<module>` if neccesary and checks out the revision specified in the info file.
|
||||
* `make bump-<module>` - Updates the revision stored in the info file for `<module>`.
|
||||
* `make bump-current-<module>` - Updates the revision stored in the info file for `<module>` to the current revision.
|
||||
* `make commit-bump-<module>` - Same as `make bump-<module>`, but commits the change.
|
||||
* `make commit-bump-current-<module>` - Same as `make bump-current-<module>`, but commits the change.
|
||||
|
||||
Example: when making a change in the CoreCLR submodule (like disabling something on Mono), you'd commit the change there and then run `make bump-current-coreclr` or `make commit-bump-current-coreclr` to update the version in SUBMODULES.json.
|
||||
make check-<module> - Checks whenever <module> is checked out and matches the version in the info file.
|
||||
make reset-<module> - Clones <module>if neccesary and checks out the revision specified in the info file.
|
||||
make bump-<module> - Updates the revision stored in the info file for <module>.
|
||||
make bump-current-<module> - Updates the revision stored in the info file for <module> to the current revision.
|
||||
make commit-bump-<module> - Same as make bump-<module>, but commits the change.
|
||||
make commit-bump-current-<module> - Same as make bump-current-<module>, but commits the change.
|
||||
@@ -10,7 +10,7 @@
|
||||
{
|
||||
"name": "coreclr",
|
||||
"url": "git://github.com/mono/coreclr.git",
|
||||
"rev": "c7da48acf72c40c0c0ed1a80ebfacea21bb3a271",
|
||||
"rev": "96cf61f96b42cf9d013e641609cb7787f6e3a71f",
|
||||
"remote-branch": "origin/mono",
|
||||
"branch": "mono",
|
||||
"directory": "coreclr"
|
||||
@@ -18,7 +18,7 @@
|
||||
{
|
||||
"name": "ms-test-suite",
|
||||
"url": "[email protected]:xamarin/ms-test-suite.git",
|
||||
"rev": "840653918efed24f00f5e166094f06354cae7255",
|
||||
"rev": "8eb26bd72a38e2c78675db45b13e89237dbdf4f2",
|
||||
"remote-branch": "origin/master",
|
||||
"branch": "master",
|
||||
"directory": "ms-test-suite"
|
||||
|
||||
File diff suppressed because it is too large.
Load diff
@@ -1,2 +0,0 @@
|
||||
*
|
||||
!.gitignore
|
||||
@@ -1,10 +0,0 @@
|
||||
check-ms-test-suite:
|
||||
@if $(MAKE) validate-ms-test-suite RESET_VERSIONS=1; then \
|
||||
$(MAKE) -C $(MSTESTSUITE_PATH)/conformance build MCS="$(MCS) -t:library -warn:1 -r:nunit.framework" && \
|
||||
$(MAKE) -C $(MSTESTSUITE_PATH)/conformance run NUNIT-CONSOLE="$(RUNTIME) $(CLASS)/nunit-console.exe -nologo -exclude=MonoBug,BadTest" NUNIT_XML_RESULT=$(abs_top_builddir)/acceptance-tests/TestResult-ms-test-suite-conformance.xml || EXIT_CODE=1; \
|
||||
$(MAKE) -C $(MSTESTSUITE_PATH)/systemruntimebringup build MCS="$(MCS) -debug -warn:1" && \
|
||||
$(MAKE) -C $(MSTESTSUITE_PATH)/systemruntimebringup run MONO="$(RUNTIME)" || EXIT_CODE=1; \
|
||||
exit $$EXIT_CODE; \
|
||||
else \
|
||||
echo "*** [ms-test-suite] Getting the repository failed, you probably don't have access to this Xamarin-internal resource. Skipping."; \
|
||||
fi
|
||||
@@ -1,18 +0,0 @@
|
||||
check-roslyn:
|
||||
@$(MAKE) validate-roslyn RESET_VERSIONS=1
|
||||
@if [ -z $$PREFIX ]; then echo "You need to set PREFIX to the prefix of the Mono installation that should be used for testing Roslyn." && exit 1; fi
|
||||
sed -i -e 's/\\4.5-api"/\\4.5"/g' $$PREFIX/lib/mono/xbuild-frameworks/.NETFramework/v4.5/RedistList/FrameworkList.xml; \
|
||||
export MSBuildExtensionsPath=$$PREFIX/lib/mono/xbuild; \
|
||||
MONO_DOTNET_PORTABLE_DIR=$$PREFIX/lib/mono/xbuild-frameworks/.NETPortable/; \
|
||||
if [ ! -d "$$MONO_DOTNET_PORTABLE_DIR/v4.6" ]; then \
|
||||
mkdir -p $$MONO_DOTNET_PORTABLE_DIR; \
|
||||
curl -SL "http://download.mono-project.com/third-party/RoslynBuildDependencies.zip" > /tmp/RoslynBuildDependencies.zip; \
|
||||
unzip -o /tmp/RoslynBuildDependencies.zip -d /tmp/RoslynBuildDependencies; \
|
||||
cp -r /tmp/RoslynBuildDependencies/PortableReferenceAssemblies/* $$MONO_DOTNET_PORTABLE_DIR; \
|
||||
fi; \
|
||||
cd $(ROSLYN_PATH); \
|
||||
sed -i -e 'N; s/bootstrapArg=".*\n.*"/bootstrapArg=""/g' cibuild.sh; \
|
||||
sed -i -e 's#-xml Binaries/\$$BUILD_CONFIGURATION/xUnitResults/#-nunit $(abs_top_builddir)/acceptance-tests/TestResult-#g' cibuild.sh; \
|
||||
./cibuild.sh --mono-path $$PREFIX/bin || EXIT_CODE=1; \
|
||||
sed -i -e 's/\\4.5"/\\4.5-api"/g' $$PREFIX/lib/mono/xbuild-frameworks/.NETFramework/v4.5/RedistList/FrameworkList.xml; \
|
||||
exit $$EXIT_CODE
|
||||
@@ -1,12 +1,127 @@
|
||||
.PHONY: validate-versions reset-versions
|
||||
|
||||
SUBMODULES_CONFIG_FILE = $(top_srcdir)/acceptance-tests/SUBMODULES.json
|
||||
include $(top_srcdir)/scripts/submodules/versions.mk
|
||||
CONFIG=SUBMODULES.json
|
||||
|
||||
# usage $(call ValidateVersionTemplate (name,MAKEFILE VAR,repo name))
|
||||
# usage $(call ValidateVersionTemplate (mono,MONO,mono))
|
||||
|
||||
define ValidateVersionTemplate
|
||||
#$(eval REPOSITORY_$(2):=$(shell test -z $(3) && echo $(1) || echo "$(3)"))
|
||||
#$(eval DIRECTORY_$(2):=$(shell python versions.py get-dir $(1)))
|
||||
#$(eval DIRECTORY_$(2):=$(shell test -z $(DIRECTORY_$(2)) && echo $(1) || echo $(DIRECTORY_$(2))))
|
||||
#$(eval MODULE_$(2):=$(shell python versions.py get-url $(1)))
|
||||
#$(eval NEEDED_$(2)_VERSION:=$(shell python versions.py get-rev $(1)))
|
||||
#$(eval $(2)_BRANCH_AND_REMOTE:=$(shell python versions.py get-remote-branch $(1)))
|
||||
|
||||
#$(eval $(2)_VERSION:=$$$$(shell cd $($(2)_PATH) 2>/dev/null && git rev-parse HEAD ))
|
||||
|
||||
#$(eval NEEDED_$(2)_BRANCH:=$(word 2, $(subst /, ,$($(2)_BRANCH_AND_REMOTE))))
|
||||
#$(eval NEEDED_$(2)_REMOTE:=$(word 1, $(subst /, ,$($(2)_BRANCH_AND_REMOTE))))
|
||||
#$(eval $(2)_BRANCH:=$$$$(shell cd $($(2)_PATH) 2>/dev/null && git symbolic-ref --short HEAD 2>/dev/null))
|
||||
|
||||
validate-$(1)::
|
||||
@if test x$$(IGNORE_$(2)_VERSION) = "x"; then \
|
||||
if test ! -d $($(2)_PATH); then \
|
||||
if test x$$(RESET_VERSIONS) != "x"; then \
|
||||
$(MAKE) reset-$(1) || exit 1; \
|
||||
else \
|
||||
echo "Your $(1) checkout is missing, please run 'make reset-$(1)'"; \
|
||||
touch .validate-versions-failure; \
|
||||
fi; \
|
||||
else \
|
||||
if test "x$($(2)_VERSION)" != "x$(NEEDED_$(2)_VERSION)" ; then \
|
||||
if test x$$(RESET_VERSIONS) != "x"; then \
|
||||
$(MAKE) reset-$(1) || exit 1; \
|
||||
else \
|
||||
echo "Your $(1) version is out of date, please run 'make reset-$(1)' (found $($(2)_VERSION), expected $(NEEDED_$(2)_VERSION))"; \
|
||||
test -z "$(BUILD_REVISION)" || $(MAKE) test-$(1); \
|
||||
touch .validate-versions-failure; \
|
||||
fi; \
|
||||
elif test "x$($(2)_BRANCH)" != "x$(NEEDED_$(2)_BRANCH)" ; then \
|
||||
if test x$$(RESET_VERSIONS) != "x"; then \
|
||||
test -z "$(BUILD_REVISION)" || $(MAKE) test-$(1); \
|
||||
$(MAKE) reset-$(1) || exit 1; \
|
||||
else \
|
||||
echo "Your $(1) branch is out of date, please run 'make reset-$(1)' (found $($(2)_BRANCH), expected $(NEEDED_$(2)_BRANCH))"; \
|
||||
touch .validate-versions-failure; \
|
||||
fi; \
|
||||
fi; \
|
||||
fi; \
|
||||
fi
|
||||
|
||||
test-$(1)::
|
||||
@echo $(1)
|
||||
@echo " REPOSITORY_$(2)=$(REPOSITORY_$(2))"
|
||||
@echo " DIRECTORY_$(2)=$(DIRECTORY_$(2))"
|
||||
@echo " MODULE_$(2)=$(MODULE_$(2))"
|
||||
@echo " NEEDED_$(2)_VERSION=$(NEEDED_$(2)_VERSION)"
|
||||
@echo " $(2)_VERSION=$($(2)_VERSION)"
|
||||
@echo " $(2)_BRANCH_AND_REMOTE=$($(2)_BRANCH_AND_REMOTE)"
|
||||
@echo " NEEDED_$(2)_BRANCH=$(NEEDED_$(2)_BRANCH)"
|
||||
@echo " NEEDED_$(2)_REMOTE=$(NEEDED_$(2)_REMOTE)"
|
||||
@echo " $(2)_BRANCH=$($(2)_BRANCH)"
|
||||
@echo " $(2)_PATH=$($(2)_PATH) => $(abspath $($(2)_PATH))"
|
||||
|
||||
reset-$(1)::
|
||||
@if test -d $($(2)_PATH); then \
|
||||
if ! (cd $($(2)_PATH) && git show $(NEEDED_$(2)_VERSION) >/dev/null 2>&1 && git log -1 $(NEEDED_$(2)_REMOTE) >/dev/null 2>&1) ; then \
|
||||
echo "*** git fetch `basename $$($(2)_PATH)`" && (cd $($(2)_PATH) && git fetch); \
|
||||
fi; \
|
||||
else \
|
||||
echo "*** git clone $(MODULE_$(2)) --recursive $(DIRECTORY_$(2))" && (cd `dirname $($(2)_PATH)` && git clone $(MODULE_$(2)) --recursive $(DIRECTORY_$(2)) || exit 1 ); \
|
||||
fi
|
||||
@if test x$$(IGNORE_$(2)_VERSION) = "x"; then \
|
||||
echo "*** [$(1)] git checkout -f" $(NEEDED_$(2)_BRANCH) && (cd $($(2)_PATH) ; git checkout -f $(NEEDED_$(2)_BRANCH) || git checkout -f -b $($(2)_BRANCH_AND_REMOTE)); \
|
||||
echo "*** [$(1)] git reset --hard $(NEEDED_$(2)_VERSION)" && (cd $($(2)_PATH) && git reset --hard $(NEEDED_$(2)_VERSION)); \
|
||||
fi
|
||||
@echo "*** [$(1)] git submodule update --init --recursive" && (cd $($(2)_PATH) && git submodule update --init --recursive)
|
||||
|
||||
print-$(1)::
|
||||
@printf "*** %-16s %-45s %s (%s)\n" "$(DIRECTORY_$(2))" "$(MODULE_$(2))" "$(NEEDED_$(2)_VERSION)" "$(NEEDED_$(2)_BRANCH)"
|
||||
|
||||
.PHONY: validate-$(1) reset-$(1) print-$(1)
|
||||
|
||||
reset-versions:: reset-$(1)
|
||||
validate-versions:: Validate-$(1)
|
||||
print-versions:: print-$(1)
|
||||
|
||||
endef
|
||||
|
||||
$(eval $(call ValidateVersionTemplate,roslyn,ROSLYN))
|
||||
$(eval $(call ValidateVersionTemplate,coreclr,CORECLR))
|
||||
$(eval $(call ValidateVersionTemplate,ms-test-suite,MSTESTSUITE))
|
||||
|
||||
reset-versions::
|
||||
|
||||
validate-versions::
|
||||
@if test -e .validate-versions-failure; then \
|
||||
rm .validate-versions-failure; \
|
||||
echo One or more modules needs update; \
|
||||
exit 1; \
|
||||
else \
|
||||
echo All dependent modules up to date; \
|
||||
fi
|
||||
|
||||
reset:
|
||||
@$(MAKE) validate-versions RESET_VERSIONS=1
|
||||
|
||||
__bump-version-%:
|
||||
@if [ "$(REV)" = "" ]; then echo "Usage: make bump-version-$* REV=<ref>"; exit 1; fi
|
||||
python versions.py set-rev $* $(REV)
|
||||
@if [ "$(COMMIT)" = "1" ]; then echo "[acceptance-tests] Bump $* to pick up $(REV)." | git commit -F - $(CONFIG); fi
|
||||
|
||||
__bump-branch-%:
|
||||
@if [ "$(BRANCH)" = "" ]; then echo "Usage: make bump-branch-$* BRANCH=<branch> REMOTE_BRANCH=<remote branch>"; exit 1; fi
|
||||
@if [ "$(REMOTE_BRANCH)" == "" ]; then echo "Usage: make bump-branch-$* BRANCH=<branch> REMOTE_BRANCH=<remote branch>"; exit 1; fi
|
||||
python versions.py set-branch $* $(BRANCH)
|
||||
python versions.py set-remote-branch $* $(REMOTE_BRANCH)
|
||||
@if [ "$(COMMIT)" = "1" ]; then echo "[acceptance-tests] Bump $* to switch to $(BRANCH) $(REMOTE BRANCH)." | git commit -F - $(CONFIG); fi
|
||||
|
||||
__bump-current-version-%:
|
||||
REV=$(shell cd $(TOP)/../$* && git log -1 --pretty=format:%H); \
|
||||
python versions.py set-rev $* $$REV; \
|
||||
if [ "$(COMMIT)" = "1" ]; then echo "[acceptance-tests] Bump $* to pick up $$REV:" | git commit -F - $(CONFIG); fi
|
||||
|
||||
# Bump the given submodule to the revision given by the REV make variable
|
||||
# If COMMIT is 1, commit the change
|
||||
bump-roslyn: __bump-version-roslyn
|
||||
|
||||
Executable
+52
@@ -0,0 +1,52 @@
|
||||
#!/usr/bin/env python
|
||||
|
||||
import sys
|
||||
import json
|
||||
|
||||
def find_module(submodules, name):
|
||||
for item in submodules:
|
||||
if item["name"] == name:
|
||||
return item
|
||||
|
||||
print "Not found"
|
||||
sys.exit(1)
|
||||
|
||||
|
||||
if len(sys.argv) < 2:
|
||||
print "Usage: versions.py <command>"
|
||||
sys.exit(1)
|
||||
|
||||
CONFIG_FILE = "SUBMODULES.json"
|
||||
command = sys.argv[1]
|
||||
|
||||
submodules = json.load(open(CONFIG_FILE))
|
||||
|
||||
if command == "get-rev":
|
||||
mod = find_module(submodules, sys.argv[2])
|
||||
print mod["rev"]
|
||||
elif command == "get-url":
|
||||
mod = find_module(submodules, sys.argv[2])
|
||||
print mod["url"]
|
||||
elif command == "get-dir":
|
||||
mod = find_module(submodules, sys.argv[2])
|
||||
print mod["directory"]
|
||||
elif command == "get-remote-branch":
|
||||
mod = find_module(submodules, sys.argv[2])
|
||||
print mod["remote-branch"]
|
||||
elif command == "set-rev":
|
||||
mod = find_module(submodules, sys.argv[2])
|
||||
mod["rev"] = sys.argv[3]
|
||||
json.dump(submodules, open(CONFIG_FILE, "w"), indent = 2)
|
||||
elif command == "set-branch":
|
||||
mod = find_module(submodules, sys.argv[2])
|
||||
mod["branch"] = sys.argv[3]
|
||||
json.dump(submodules, open(CONFIG_FILE, "w"), indent = 2)
|
||||
elif command == "set-remote-branch":
|
||||
mod = find_module(submodules, sys.argv[2])
|
||||
mod["remote-branch"] = sys.argv[3]
|
||||
json.dump(submodules, open(CONFIG_FILE, "w"), indent = 2)
|
||||
elif command == "cat":
|
||||
print json.dumps(submodules, indent = 2)
|
||||
else:
|
||||
print "Unknown command "" + command + ""."
|
||||
sys.exit(1)
|
||||
+9
-12
@@ -30,18 +30,18 @@ fi
|
||||
DIE=1
|
||||
}
|
||||
|
||||
if [ -z "$LIBTOOLIZE" ]; then
|
||||
LIBTOOLIZE=`which glibtoolize 2>/dev/null`
|
||||
if [ ! -x "$LIBTOOLIZE" ]; then
|
||||
LIBTOOLIZE=`which libtoolize`
|
||||
if [ -z "$LIBTOOL" ]; then
|
||||
LIBTOOL=`which glibtool 2>/dev/null`
|
||||
if [ ! -x "$LIBTOOL" ]; then
|
||||
LIBTOOL=`which libtool`
|
||||
fi
|
||||
fi
|
||||
|
||||
(grep "^AM_PROG_LIBTOOL" $srcdir/configure.ac >/dev/null) && {
|
||||
($LIBTOOLIZE --version) < /dev/null > /dev/null 2>&1 || {
|
||||
($LIBTOOL --version) < /dev/null > /dev/null 2>&1 || {
|
||||
echo
|
||||
echo "**Error**: You must have \`libtoolize' installed to compile Mono."
|
||||
echo "Get ftp://ftp.gnu.org/gnu/libtool/libtool-1.2.tar.gz"
|
||||
echo "**Error**: You must have \`libtool' installed to compile Mono."
|
||||
echo "Get ftp://ftp.gnu.org/pub/gnu/libtool-1.2d.tar.gz"
|
||||
echo "(or a newer version if it is available)"
|
||||
DIE=1
|
||||
}
|
||||
@@ -98,7 +98,7 @@ esac
|
||||
if grep "^AM_PROG_LIBTOOL" configure.ac >/dev/null; then
|
||||
if test -z "$NO_LIBTOOLIZE" ; then
|
||||
echo "Running libtoolize..."
|
||||
$LIBTOOLIZE --force --copy
|
||||
${LIBTOOL}ize --force --copy
|
||||
fi
|
||||
fi
|
||||
|
||||
@@ -160,11 +160,8 @@ if test -d $srcdir/eglib; then
|
||||
echo Done running eglib/autogen.sh ...
|
||||
fi
|
||||
|
||||
if test x$MONO_EXTRA_CONFIGURE_FLAGS != x; then
|
||||
echo "MONO_EXTRA_CONFIGURE_FLAGS is $MONO_EXTRA_CONFIGURE_FLAGS"
|
||||
fi
|
||||
|
||||
conf_flags="$MONO_EXTRA_CONFIGURE_FLAGS --enable-maintainer-mode --enable-compile-warnings" #--enable-iso-c
|
||||
conf_flags="--enable-maintainer-mode --enable-compile-warnings" #--enable-iso-c
|
||||
|
||||
if test x$NOCONFIGURE = x; then
|
||||
echo Running $srcdir/configure $conf_flags "$@" ...
|
||||
|
||||
@@ -1,7 +0,0 @@
|
||||
@echo off
|
||||
cd mcs\jay
|
||||
vcbuild jay.vcxproj
|
||||
cd msvc\scripts
|
||||
csc prepare.cs
|
||||
prepare.exe ..\..\mcs core
|
||||
msbuild net_4_x.sln
|
||||
@@ -1,4 +0,0 @@
|
||||
#!/bin/sh
|
||||
(cd mcs/jay; make)
|
||||
(cd msvc/scripts/; make prepare.exe; mono prepare.exe ../../mcs core)
|
||||
msbuild net_4_x.sln
|
||||
+190
-491
@@ -1,8 +1,7 @@
|
||||
# Process this file with autoconf to produce a configure script.
|
||||
#AC_PREREQ([2.62])
|
||||
|
||||
# when bumping version number below, keep it in sync with man/mono.1 too
|
||||
AC_INIT(mono, [4.7.0],
|
||||
AC_INIT(mono, [4.3.2],
|
||||
[http://bugzilla.xamarin.com/enter_bug.cgi?classification=Mono])
|
||||
|
||||
AC_CONFIG_SRCDIR([README.md])
|
||||
@@ -93,11 +92,11 @@ case "$host" in
|
||||
host_win32=yes
|
||||
mono_cv_clang=no
|
||||
if test "x$cross_compiling" = "xno"; then
|
||||
if test "x$host" = "x$build" -a "x$host" = "x$target"; then
|
||||
if test "x$host" == "x$build" -a "x$host" == "x$target"; then
|
||||
target_win32=yes
|
||||
fi
|
||||
else
|
||||
if test "x$host" = "x$target"; then
|
||||
if test "x$host" == "x$target"; then
|
||||
target_win32=yes
|
||||
fi
|
||||
fi
|
||||
@@ -273,6 +272,8 @@ case "$host" in
|
||||
need_link_unlink=yes
|
||||
libmono_cflags="-D_REENTRANT"
|
||||
libgc_threads=pthreads
|
||||
# This doesn't seem to work on solaris/x86, but the configure test runs
|
||||
with_tls=pthread
|
||||
has_dtrace=yes
|
||||
use_sigposix=yes
|
||||
enable_solaris_tar_check=yes
|
||||
@@ -353,18 +354,6 @@ AM_CONDITIONAL(PLATFORM_DARWIN, test x$host_darwin = xyes)
|
||||
AM_CONDITIONAL(PLATFORM_SIGPOSIX, test x$use_sigposix = xyes)
|
||||
AM_CONDITIONAL(PLATFORM_ANDROID, test x$platform_android = xyes)
|
||||
|
||||
if test -z "$PLATFORM_DARWIN_TRUE"; then :
|
||||
PLATFORM_AOT_SUFFIX=.dylib
|
||||
fi
|
||||
|
||||
if test -z "$PLATFORM_LINUX_TRUE"; then :
|
||||
PLATFORM_AOT_SUFFIX=.so
|
||||
fi
|
||||
|
||||
AC_SUBST(PLATFORM_AOT_SUFFIX)
|
||||
|
||||
## PLATFORM_AOT_SUFFIX not so simple for windows :-)
|
||||
|
||||
AC_CHECK_TOOL(CC, gcc, gcc)
|
||||
AC_PROG_CC
|
||||
AC_CHECK_TOOL(CXX, g++, g++)
|
||||
@@ -532,9 +521,6 @@ if test x"$GCC" = xyes; then
|
||||
# We rely on signed overflow to behave
|
||||
CFLAGS="$CFLAGS -fwrapv"
|
||||
|
||||
# We rely on zero length arrays in structs
|
||||
CFLAGS="$CFLAGS -Wno-zero-length-array"
|
||||
|
||||
CFLAGS="$CFLAGS -DMONO_DLL_EXPORT"
|
||||
if test x"$disable_visibility_hidden" = xno; then
|
||||
# Don't export any symbols by default
|
||||
@@ -560,7 +546,7 @@ if test x"$GCC" = xyes; then
|
||||
if test "x$mono_cv_clang" = "xyes"; then
|
||||
# https://bugzilla.samba.org/show_bug.cgi?id=8118
|
||||
WARN="$WARN -Qunused-arguments"
|
||||
WARN="$WARN -Wno-unused-function -Wno-tautological-compare -Wno-parentheses-equality -Wno-self-assign -Wno-return-stack-address -Wno-constant-logical-operand"
|
||||
WARN="$WARN -Wno-unused-function -Wno-tautological-compare -Wno-parentheses-equality -Wno-self-assign -Wno-return-stack-address"
|
||||
fi
|
||||
else
|
||||
# The Sun Forte compiler complains about inline functions that access static variables
|
||||
@@ -742,202 +728,6 @@ AC_ARG_ENABLE(system-aot, [ --enable-system-aot Enable the Ahead-Of-Time compi
|
||||
|
||||
DISABLED_FEATURES=none
|
||||
|
||||
#
|
||||
# Set the build profiles and options before things which use them
|
||||
#
|
||||
|
||||
AC_ARG_WITH(profile4_x, [ --with-profile4=yes,no If you want to install the 4.x FX (defaults to yes)], [], [with_profile4_x=default])
|
||||
AC_ARG_WITH(monodroid, [ --with-monodroid=yes,no If you want to build the MonoDroid assemblies (defaults to no)], [], [with_monodroid=default])
|
||||
AC_ARG_WITH(monotouch, [ --with-monotouch=yes,no If you want to build the Xamarin.iOS assemblies (defaults to no)], [], [with_monotouch=default])
|
||||
AC_ARG_WITH(monotouch_watch, [ --with-monotouch_watch=yes,no If you want to build the Xamarin.WatchOS assemblies (defaults to no)],[], [with_monotouch_watch=default])
|
||||
AC_ARG_WITH(monotouch_tv, [ --with-monotouch_tv=yes,no If you want to build the Xamarin.TVOS assemblies (defaults to no)], [], [with_monotouch_tv=default])
|
||||
AC_ARG_WITH(bitcode, [ --with-bitcode=yes,no If bitcode is enabled (defaults to no)], [], [with_bitcode=default])
|
||||
AC_ARG_WITH(xammac, [ --with-xammac=yes,no If you want to build the Xamarin.Mac assemblies (defaults to no)], [], [with_xammac=default])
|
||||
AC_ARG_WITH(mobile_static, [ --with-mobile_static=yes,no If you want to build the mobile_static assemblies (defaults to no)], [], [with_mobile_static=default])
|
||||
|
||||
AC_ARG_WITH(runtime_preset, [ --with-runtime_preset=net_4_x,all,mobile_static,bitcode_mobile_static Which default profile to build (defaults to net_4_x)], [], [with_runtime_preset=net_4_x])
|
||||
|
||||
dnl
|
||||
dnl Profile defaults
|
||||
dnl
|
||||
TEST_PROFILE=default
|
||||
enable_llvm_default=no
|
||||
|
||||
INVARIANT_AOT_OPTIONS=nimt-trampolines=900,ntrampolines=8000,nrgctx-fetch-trampolines=256,ngsharedvt-trampolines=2800
|
||||
|
||||
if test x$cross_compiling = xyes -o x$enable_mcs_build = xno; then
|
||||
DISABLE_MCS_DOCS_default=yes
|
||||
with_profile4_x_default=no
|
||||
with_monodroid_default=no
|
||||
with_monotouch_default=no
|
||||
with_monotouch_watch_default=no
|
||||
with_monotouch_tv_default=no
|
||||
with_xammac_default=no
|
||||
with_mobile_static_default=no
|
||||
with_bitcode_default=no
|
||||
with_cooperative_gc_default=no
|
||||
elif test x$with_runtime_preset = xnet_4_x; then
|
||||
with_cooperative_gc_default=no
|
||||
with_profile4_x_default=yes
|
||||
with_monodroid_default=no
|
||||
with_monotouch_default=no
|
||||
with_monotouch_watch_default=no
|
||||
with_monotouch_tv_default=no
|
||||
with_xammac_default=no
|
||||
with_mobile_static_default=no
|
||||
with_bitcode_default=no
|
||||
elif test x$with_runtime_preset = xall; then
|
||||
with_cooperative_gc_default=no
|
||||
with_profile4_x_default=yes
|
||||
with_monodroid_default=yes
|
||||
with_monotouch_default=yes
|
||||
with_monotouch_watch_default=yes
|
||||
with_monotouch_tv_default=yes
|
||||
with_xammac_default=yes
|
||||
with_mobile_static_default=no
|
||||
with_bitcode_default=no
|
||||
elif test x$with_runtime_preset = xmobile_static; then
|
||||
DISABLE_MCS_DOCS_default=yes
|
||||
with_cooperative_gc_default=no
|
||||
with_profile4_x_default=no
|
||||
with_monodroid_default=no
|
||||
with_monotouch_default=no
|
||||
with_monotouch_watch_default=no
|
||||
with_monotouch_tv_default=no
|
||||
with_xammac_default=no
|
||||
with_mobile_static_default=yes
|
||||
with_bitcode_default=no
|
||||
with_cooperative_gc_default=no
|
||||
TEST_PROFILE=mobile_static
|
||||
|
||||
mono_feature_disable_com='yes'
|
||||
mono_feature_disable_remoting='yes'
|
||||
mono_feature_disable_reflection_emit_save='yes'
|
||||
mono_feature_disable_reflection_emit='yes'
|
||||
mono_feature_disable_appdomains='yes'
|
||||
|
||||
AOT_BUILD_FLAGS="-O=gsharedvt --aot=full,$INVARIANT_AOT_OPTIONS"
|
||||
AOT_RUN_FLAGS="--full-aot"
|
||||
elif test x$with_runtime_preset = xbitcode_mobile_static; then
|
||||
DISABLE_MCS_DOCS_default=yes
|
||||
with_profile4_x_default=no
|
||||
with_monodroid_default=no
|
||||
with_monotouch_default=no
|
||||
with_monotouch_watch_default=no
|
||||
with_monotouch_tv_default=no
|
||||
with_xammac_default=no
|
||||
with_mobile_static_default=yes
|
||||
with_bitcode_default=yes
|
||||
with_cooperative_gc_default=yes
|
||||
TEST_PROFILE=mobile_static
|
||||
enable_llvm_default=yes
|
||||
|
||||
mono_feature_disable_com='yes'
|
||||
mono_feature_disable_remoting='yes'
|
||||
mono_feature_disable_reflection_emit_save='yes'
|
||||
mono_feature_disable_reflection_emit='yes'
|
||||
mono_feature_disable_appdomains='yes'
|
||||
|
||||
AOT_BUILD_FLAGS="--aot=llvmonly,$INVARIANT_AOT_OPTIONS"
|
||||
AOT_RUN_FLAGS="--llvmonly"
|
||||
else
|
||||
with_profile4_x_default=yes
|
||||
with_monodroid_default=no
|
||||
with_monotouch_default=no
|
||||
with_monotouch_watch_default=no
|
||||
with_monotouch_tv_default=no
|
||||
with_bitcode_default=no
|
||||
with_xammac_default=no
|
||||
with_mobile_static_default=no
|
||||
with_cooperative_gc_default=no
|
||||
fi
|
||||
|
||||
if test "x$AOT_BUILD_FLAGS" != "x"; then :
|
||||
AC_SUBST(AOT_BUILD_FLAGS)
|
||||
AC_SUBST(AOT_RUN_FLAGS)
|
||||
# For llvmonlycheck + fullaotcheck
|
||||
AC_SUBST(INVARIANT_AOT_OPTIONS)
|
||||
fi
|
||||
|
||||
AC_SUBST(TEST_PROFILE)
|
||||
|
||||
if test "x$with_profile4_x" = "xdefault"; then
|
||||
with_profile4_x=$with_profile4_x_default
|
||||
fi
|
||||
if test "x$with_monodroid" = "xdefault"; then
|
||||
with_monodroid=$with_monodroid_default
|
||||
fi
|
||||
if test "x$with_monotouch" = "xdefault"; then
|
||||
with_monotouch=$with_monotouch_default
|
||||
fi
|
||||
if test "x$with_monotouch_watch" = "xdefault"; then
|
||||
with_monotouch_watch=$with_monotouch_watch_default
|
||||
fi
|
||||
if test "x$with_monotouch_tv" = "xdefault"; then
|
||||
with_monotouch_tv=$with_monotouch_tv_default
|
||||
fi
|
||||
if test "x$with_bitcode" = "xdefault"; then
|
||||
with_bitcode=$with_bitcode_default
|
||||
fi
|
||||
if test "x$with_xammac" = "xdefault"; then
|
||||
with_xammac=$with_xammac_default
|
||||
fi
|
||||
if test "x$with_mobile_static" = "xdefault"; then
|
||||
with_mobile_static=$with_mobile_static_default
|
||||
fi
|
||||
|
||||
AM_CONDITIONAL(INSTALL_4_x, [test "x$with_profile4_x" = "xyes"])
|
||||
AM_CONDITIONAL(INSTALL_MONODROID, [test "x$with_monodroid" != "xno"])
|
||||
AM_CONDITIONAL(INSTALL_MONOTOUCH, [test "x$with_monotouch" != "xno"])
|
||||
AM_CONDITIONAL(INSTALL_MONOTOUCH_WATCH, [test "x$with_monotouch_watch" != "xno"])
|
||||
AM_CONDITIONAL(INSTALL_MONOTOUCH_TV, [test "x$with_monotouch_tv" != "xno"])
|
||||
AM_CONDITIONAL(BITCODE, test "x$with_bitcode" = "xyes")
|
||||
AM_CONDITIONAL(INSTALL_XAMMAC, [test "x$with_xammac" != "xno"])
|
||||
AM_CONDITIONAL(INSTALL_MOBILE_STATIC, [test "x$with_mobile_static" != "xno"])
|
||||
|
||||
AC_SUBST(INSTALL_MOBILE_STATIC)
|
||||
|
||||
default_profile=net_4_x
|
||||
if test -z "$INSTALL_MONODROID_TRUE"; then :
|
||||
default_profile=monodroid
|
||||
fi
|
||||
if test -z "$INSTALL_MONOTOUCH_TRUE"; then :
|
||||
default_profile=monotouch
|
||||
fi
|
||||
if test -z "$INSTALL_XAMMAC_TRUE"; then :
|
||||
default_profile=xammac
|
||||
fi
|
||||
if test -z "$INSTALL_MOBILE_STATIC_TRUE"; then :
|
||||
default_profile=mobile_static
|
||||
fi
|
||||
if test -z "$INSTALL_4_x_TRUE"; then :
|
||||
default_profile=net_4_x
|
||||
fi
|
||||
DEFAULT_PROFILE=$default_profile
|
||||
AC_SUBST(DEFAULT_PROFILE)
|
||||
|
||||
#
|
||||
# End build profile configuration
|
||||
#
|
||||
|
||||
if test x$USE_NLS = xprofile_default; then
|
||||
|
||||
if test x$host_darwin = xyes; then
|
||||
# We make the default value for USE_NLS
|
||||
# "no" on OSX because it isn't available on most
|
||||
# default OSX installs. The most common configurations will
|
||||
# all disable it, so this saves us typing.
|
||||
USE_NLS=no
|
||||
AC_SUBST([USE_NLS])
|
||||
AC_MSG_RESULT([$USE_NLS])
|
||||
else
|
||||
USE_NLS=yes
|
||||
AC_SUBST([USE_NLS])
|
||||
AC_MSG_RESULT([$USE_NLS])
|
||||
fi
|
||||
|
||||
fi
|
||||
|
||||
AC_ARG_ENABLE(minimal, [ --enable-minimal=LIST drop support for LIST subsystems.
|
||||
LIST is a comma-separated list from: aot, profiler, decimal, pinvoke, debug, appdomains, verifier,
|
||||
reflection_emit, reflection_emit_save, large_code, logging, com, ssa, generics, attach, jit, simd, soft_debug, perfcounters, normalization, assembly_remapping, shared_perfcounters, remoting,
|
||||
@@ -1139,8 +929,15 @@ if test x$has_extension_module != xno ; then
|
||||
AC_MSG_NOTICE([Enabling mono extension module.])
|
||||
fi
|
||||
|
||||
# Deprecated
|
||||
AC_ARG_ENABLE(gsharedvt, [ --enable-gsharedvt Enable generic valuetype sharing (Deprecated)], enable_gsharedvt=$enableval, enable_gsharedvt=no)
|
||||
AC_ARG_ENABLE(gsharedvt, [ --enable-gsharedvt Enable generic valuetype sharing], enable_gsharedvt=$enableval, enable_gsharedvt=no)
|
||||
if test x$enable_gsharedvt = xyes; then
|
||||
AC_DEFINE(ENABLE_GSHAREDVT,1,[Gsharedvt])
|
||||
fi
|
||||
|
||||
AC_ARG_ENABLE(native-types, [ --enable-native-types Enable native types], enable_native_types=$enableval, enable_native_types=no)
|
||||
if test x$enable_native_types = xyes; then
|
||||
AC_DEFINE(MONO_NATIVE_TYPES,1,[native types])
|
||||
fi
|
||||
|
||||
AC_MSG_CHECKING(for visibility __attribute__)
|
||||
AC_COMPILE_IFELSE([
|
||||
@@ -1179,76 +976,72 @@ AC_ARG_WITH(libgc, [ --with-gc=included,none Controls the Boehm GC config, d
|
||||
AC_ARG_ENABLE(boehm, [ --disable-boehm Disable the Boehm GC.], support_boehm=$enableval,support_boehm=${support_boehm:-yes})
|
||||
AM_CONDITIONAL(SUPPORT_BOEHM, test x$support_boehm = xyes)
|
||||
|
||||
if test "x$support_boehm" = "xyes"; then
|
||||
|
||||
AC_ARG_ENABLE(parallel-mark, [ --enable-parallel-mark Enables Boehm GC Parallel Marking], enable_parallel_mark=$enableval, enable_parallel_mark=$parallel_mark)
|
||||
if test x$enable_parallel_mark = xyes; then
|
||||
libgc_configure_args="$libgc_configure_args --enable-parallel-mark"
|
||||
fi
|
||||
|
||||
gc_msg=""
|
||||
LIBGC_CPPFLAGS=
|
||||
LIBGC_LIBS=
|
||||
LIBGC_STATIC_LIBS=
|
||||
libgc_dir=
|
||||
case "x$libgc" in
|
||||
xincluded)
|
||||
if test "x$support_boehm" = "xyes"; then
|
||||
libgc_dir=libgc
|
||||
fi
|
||||
|
||||
LIBGC_CPPFLAGS='-I$(top_srcdir)/libgc/include'
|
||||
LIBGC_LIBS='$(top_builddir)/libgc/libmonogc.la'
|
||||
LIBGC_STATIC_LIBS='$(top_builddir)/libgc/libmonogc-static.la'
|
||||
|
||||
BOEHM_DEFINES="-DHAVE_BOEHM_GC"
|
||||
|
||||
if test x$target_win32 = xyes; then
|
||||
BOEHM_DEFINES="$BOEHM_DEFINES -DGC_NOT_DLL"
|
||||
CFLAGS_FOR_LIBGC="$CFLAGS_FOR_LIBGC -DGC_BUILD -DGC_NOT_DLL"
|
||||
fi
|
||||
|
||||
gc_msg="Included Boehm GC with typed GC"
|
||||
if test x$enable_parallel_mark = xyes; then
|
||||
AC_DEFINE_UNQUOTED(DEFAULT_GC_NAME, "Included Boehm (with typed GC and Parallel Mark)", [GC description])
|
||||
gc_msg="$gc_msg and parallel mark"
|
||||
else
|
||||
AC_DEFINE_UNQUOTED(DEFAULT_GC_NAME, "Included Boehm (with typed GC)", [GC description])
|
||||
fi
|
||||
;;
|
||||
|
||||
xboehm|xbohem|xyes)
|
||||
AC_MSG_WARN("External Boehm is no longer supported")
|
||||
;;
|
||||
|
||||
xsgen)
|
||||
AC_MSG_WARN("Use --with-sgen instead, --with-gc= controls Boehm configuration")
|
||||
;;
|
||||
|
||||
xnone)
|
||||
AC_MSG_WARN("Compiling mono without GC.")
|
||||
AC_DEFINE_UNQUOTED(DEFAULT_GC_NAME, "none", [GC description])
|
||||
AC_DEFINE(HAVE_NULL_GC,1,[No GC support.])
|
||||
gc_msg="none"
|
||||
;;
|
||||
*)
|
||||
AC_MSG_ERROR([Invalid argument to --with-gc.])
|
||||
;;
|
||||
esac
|
||||
|
||||
AC_ARG_WITH(large-heap, [ --with-large-heap=yes,no Enable support for GC heaps larger than 3GB (defaults to no)], [large_heap=$withval], [large_heap=no])
|
||||
if test "x$large_heap" = "xyes"; then
|
||||
CPPFLAGS="$CPPFLAGS -DLARGE_CONFIG"
|
||||
fi
|
||||
|
||||
AC_SUBST(LIBGC_CPPFLAGS)
|
||||
AC_SUBST(LIBGC_LIBS)
|
||||
AC_SUBST(LIBGC_STATIC_LIBS)
|
||||
AC_SUBST(libgc_dir)
|
||||
AC_SUBST(BOEHM_DEFINES)
|
||||
|
||||
AC_ARG_ENABLE(parallel-mark, [ --enable-parallel-mark Enables GC Parallel Marking], enable_parallel_mark=$enableval, enable_parallel_mark=$parallel_mark)
|
||||
if test x$enable_parallel_mark = xyes; then
|
||||
libgc_configure_args="$libgc_configure_args --enable-parallel-mark"
|
||||
fi
|
||||
|
||||
gc_msg=""
|
||||
LIBGC_CPPFLAGS=
|
||||
LIBGC_LIBS=
|
||||
LIBGC_STATIC_LIBS=
|
||||
libgc_dir=
|
||||
case "x$libgc" in
|
||||
xincluded)
|
||||
if test "x$support_boehm" = "xyes"; then
|
||||
libgc_dir=libgc
|
||||
fi
|
||||
|
||||
LIBGC_CPPFLAGS='-I$(top_srcdir)/libgc/include'
|
||||
LIBGC_LIBS='$(top_builddir)/libgc/libmonogc.la'
|
||||
LIBGC_STATIC_LIBS='$(top_builddir)/libgc/libmonogc-static.la'
|
||||
|
||||
BOEHM_DEFINES="-DHAVE_BOEHM_GC"
|
||||
|
||||
if test x$target_win32 = xyes; then
|
||||
BOEHM_DEFINES="$BOEHM_DEFINES -DGC_NOT_DLL"
|
||||
CFLAGS_FOR_LIBGC="$CFLAGS_FOR_LIBGC -DGC_BUILD -DGC_NOT_DLL"
|
||||
fi
|
||||
|
||||
gc_msg="Included Boehm GC with typed GC"
|
||||
if test x$enable_parallel_mark = xyes; then
|
||||
AC_DEFINE_UNQUOTED(DEFAULT_GC_NAME, "Included Boehm (with typed GC and Parallel Mark)", [GC description])
|
||||
gc_msg="$gc_msg and parallel mark"
|
||||
else
|
||||
AC_DEFINE_UNQUOTED(DEFAULT_GC_NAME, "Included Boehm (with typed GC)", [GC description])
|
||||
fi
|
||||
;;
|
||||
|
||||
xboehm|xbohem|xyes)
|
||||
AC_MSG_WARN("External Boehm is no longer supported")
|
||||
;;
|
||||
|
||||
xsgen)
|
||||
AC_MSG_WARN("Use --with-sgen instead, --with-gc= controls Boehm configuration")
|
||||
;;
|
||||
|
||||
xnone)
|
||||
AC_MSG_WARN("Compiling mono without GC.")
|
||||
AC_DEFINE_UNQUOTED(DEFAULT_GC_NAME, "none", [GC description])
|
||||
AC_DEFINE(HAVE_NULL_GC,1,[No GC support.])
|
||||
gc_msg="none"
|
||||
;;
|
||||
*)
|
||||
AC_MSG_ERROR([Invalid argument to --with-gc.])
|
||||
;;
|
||||
esac
|
||||
|
||||
AC_ARG_WITH(large-heap, [ --with-large-heap=yes,no Enable support for GC heaps larger than 3GB (defaults to no)], [large_heap=$withval], [large_heap=no])
|
||||
if test "x$large_heap" = "xyes"; then
|
||||
CPPFLAGS="$CPPFLAGS -DLARGE_CONFIG"
|
||||
fi
|
||||
|
||||
AC_SUBST(LIBGC_CPPFLAGS)
|
||||
AC_SUBST(LIBGC_LIBS)
|
||||
AC_SUBST(LIBGC_STATIC_LIBS)
|
||||
AC_SUBST(libgc_dir)
|
||||
AC_SUBST(BOEHM_DEFINES)
|
||||
|
||||
dnl
|
||||
dnl End of Boehm GC Configuration
|
||||
dnl
|
||||
@@ -1290,7 +1083,6 @@ if test x$host_win32 = xno; then
|
||||
|
||||
dnl hires monotonic clock support
|
||||
AC_SEARCH_LIBS(clock_gettime, rt)
|
||||
AC_CHECK_FUNCS(clock_nanosleep)
|
||||
|
||||
dnl dynamic loader support
|
||||
AC_CHECK_FUNC(dlopen, DL_LIB="",
|
||||
@@ -1364,7 +1156,6 @@ if test x$host_win32 = xno; then
|
||||
AC_CHECK_FUNCS(getrlimit)
|
||||
AC_CHECK_FUNCS(prctl)
|
||||
|
||||
AC_CHECK_FUNCS(sched_getaffinity)
|
||||
AC_CHECK_FUNCS(sched_setaffinity)
|
||||
AC_CHECK_FUNCS(sched_getcpu)
|
||||
|
||||
@@ -2287,7 +2078,6 @@ if test x$host_win32 = xno; then
|
||||
AC_CHECK_FUNCS(setpgid)
|
||||
AC_CHECK_FUNCS(system)
|
||||
AC_CHECK_FUNCS(fork execv execve)
|
||||
AC_CHECK_FUNCS(accept4)
|
||||
AC_CHECK_SIZEOF(size_t)
|
||||
AC_CHECK_TYPES([blksize_t], [AC_DEFINE(HAVE_BLKSIZE_T)], ,
|
||||
[#include <sys/types.h>
|
||||
@@ -2299,8 +2089,6 @@ if test x$host_win32 = xno; then
|
||||
#include <unistd.h>])
|
||||
AC_CHECK_TYPES([suseconds_t], [AC_DEFINE(HAVE_SUSECONDS_T)], ,
|
||||
[#include <sys/time.h>])
|
||||
AC_CHECK_TYPES([struct cmsghdr], [AC_DEFINE(HAVE_STRUCT_CMSGHDR)], ,
|
||||
[#include <sys/socket.h>])
|
||||
AC_CHECK_TYPES([struct flock], [AC_DEFINE(HAVE_STRUCT_FLOCK)], ,
|
||||
[#include <unistd.h>
|
||||
#include <fcntl.h>])
|
||||
@@ -2310,16 +2098,6 @@ if test x$host_win32 = xno; then
|
||||
[#include <sys/socket.h>])
|
||||
AC_CHECK_TYPES([struct pollfd], [AC_DEFINE(HAVE_STRUCT_POLLFD)], ,
|
||||
[#include <sys/poll.h>])
|
||||
AC_CHECK_TYPES([struct sockaddr], [AC_DEFINE(HAVE_STRUCT_SOCKADDR)], ,
|
||||
[#include <sys/socket.h>])
|
||||
AC_CHECK_TYPES([struct sockaddr_storage], [AC_DEFINE(HAVE_STRUCT_SOCKADDR_STORAGE)], ,
|
||||
[#include <sys/socket.h>])
|
||||
AC_CHECK_TYPES([struct sockaddr_in], [AC_DEFINE(HAVE_STRUCT_SOCKADDR_IN)], ,
|
||||
[#include <netinet/in.h>])
|
||||
AC_CHECK_TYPES([struct sockaddr_in6], [AC_DEFINE(HAVE_STRUCT_SOCKADDR_IN6)], ,
|
||||
[#include <netinet/in.h>])
|
||||
AC_CHECK_TYPES([struct sockaddr_un], [AC_DEFINE(HAVE_STRUCT_SOCKADDR_UN)], ,
|
||||
[#include <sys/un.h>])
|
||||
AC_CHECK_TYPES([struct stat], [AC_DEFINE(HAVE_STRUCT_STAT)], ,
|
||||
[#include <sys/types.h>
|
||||
#include <sys/stat.h>
|
||||
@@ -2532,9 +2310,6 @@ else
|
||||
#include <winsock2.h>
|
||||
#include <ws2tcpip.h>
|
||||
], [
|
||||
#ifndef inet_pton
|
||||
(void) inet_pton;
|
||||
#endif
|
||||
inet_pton (0, NULL, NULL);
|
||||
], [
|
||||
# Yes, we have it...
|
||||
@@ -2667,7 +2442,7 @@ fi
|
||||
AC_ARG_ENABLE(bcl-opt, [ --disable-bcl-opt BCL is compiled with no optimizations (allows accurate BCL debugging)], test_bcl_opt=$enableval, test_bcl_opt=yes)
|
||||
|
||||
AC_ARG_ENABLE(perf-events, [ --enable-perf-events Enable using `perf` for profiling on Linux], test_perf_events=$enableval, test_perf_events=no)
|
||||
if test "x$test_perf_events" = "xyes"; then
|
||||
if test "x$test_perf_events" == "xyes"; then
|
||||
AC_DEFINE(ENABLE_PERF_EVENTS, 1, [Enable using `perf` for profiling on Linux])
|
||||
AC_SUBST(ENABLE_PERF_EVENTS)
|
||||
fi
|
||||
@@ -2765,6 +2540,9 @@ if test "x$enable_nacl_codegen" = "xyes"; then
|
||||
MONO_NACL_ALIGN_MASK_OFF=1
|
||||
AC_DEFINE(TARGET_NACL, 1, [...])
|
||||
AC_DEFINE(__native_client_codegen__, 1, [...])
|
||||
else
|
||||
MONO_NACL_ALIGN_MASK_OFF=0
|
||||
AC_DEFINE(__default_codegen__, 1, [...])
|
||||
fi
|
||||
if test "x$enable_nacl_gc" = "xyes"; then
|
||||
if test "x$TARGET" = "xAMD64" -o "x$TARGET" = "xX86"; then
|
||||
@@ -2788,17 +2566,13 @@ dnl **************
|
||||
dnl *** LLVM ***
|
||||
dnl **************
|
||||
|
||||
AC_ARG_ENABLE(llvm,[ --enable-llvm Enable the LLVM back-end], enable_llvm=$enableval, enable_llvm=default)
|
||||
AC_ARG_ENABLE(llvm,[ --enable-llvm Enable the LLVM back-end], enable_llvm=$enableval, enable_llvm=no)
|
||||
AC_ARG_ENABLE(loadedllvm,[ --enable-loadedllvm Load the LLVM back-end dynamically], enable_llvm=$enableval && enable_loadedllvm=$enableval, enable_loadedllvm=no)
|
||||
AC_ARG_ENABLE(llvm-version-check,[ --enable-llvm-version-check Check that the LLVM matches the version expected by mono], enable_llvm_version_check=$enableval, enable_llvm_version_check=no)
|
||||
AC_ARG_ENABLE(llvm-runtime,[ --enable-llvm-runtime Enable runtime support for llvmonly code], enable_llvm_runtime=$enableval, enable_llvm_runtime=no)
|
||||
|
||||
AC_ARG_WITH(llvm, [ --with-llvm=<llvm prefix> Enable the LLVM back-end], enable_llvm=yes,)
|
||||
|
||||
if test "x$enable_llvm" = "xdefault"; then
|
||||
enable_llvm=$enable_llvm_default
|
||||
fi
|
||||
|
||||
if test "x$enable_llvm" = "xyes"; then
|
||||
if test "x$with_llvm" != "x"; then
|
||||
LLVM_CONFIG=$with_llvm/bin/llvm-config
|
||||
@@ -2824,50 +2598,20 @@ if test "x$enable_llvm" = "xyes"; then
|
||||
|
||||
if test "x$host_win32" = "xno"; then
|
||||
|
||||
# Should be something like '2.6' or '2.7svn'
|
||||
llvm_version=`$LLVM_CONFIG --version`
|
||||
llvm_api_version=`$LLVM_CONFIG --mono-api-version 2>/dev/null`
|
||||
AC_MSG_CHECKING(LLVM version)
|
||||
AC_MSG_RESULT($llvm_version $llvm_api_version)
|
||||
if echo $llvm_version | grep -q 'mono'; then
|
||||
if test "x$enable_llvm_version_check" = "xyes"; then
|
||||
if test "$llvm_version" != "$expected_llvm_version"; then
|
||||
AC_MSG_ERROR([Expected llvm version $expected_llvm_version, but llvm-config --version returned $llvm_version"])
|
||||
fi
|
||||
fi
|
||||
else
|
||||
AC_MSG_ERROR([Compiling with stock LLVM is not supported, please use the Mono LLVM repo at https://github.com/mono/llvm, with the GIT branch which matches this version of mono, i.e. 'mono-2-10' for Mono 2.10.])
|
||||
fi
|
||||
|
||||
# The output of --cflags seems to include optimizations flags too
|
||||
if test $llvm_api_version -gt 100; then
|
||||
# The --cflags argument includes all kinds of warnings -pendantic etc.
|
||||
LLVM_CFLAGS="-I$with_llvm/include -D__STDC_CONSTANT_MACROS -D__STDC_FORMAT_MACROS -D__STDC_LIMIT_MACROS"
|
||||
LLVM_CXXFLAGS="-I$with_llvm/include -std=c++11 -D__STDC_CONSTANT_MACROS -D__STDC_FORMAT_MACROS -D__STDC_LIMIT_MACROS"
|
||||
else
|
||||
LLVM_CFLAGS=`$LLVM_CONFIG --cflags | sed -e 's/-O2//g' | sed -e 's/-O0//g' | sed -e 's/-fomit-frame-pointer//g' | sed -e 's/-fPIC//g'`
|
||||
LLVM_CXXFLAGS=`$LLVM_CONFIG --cxxflags | sed -e 's/-O2//g' | sed -e 's/-O0//g' | sed -e 's/-fomit-frame-pointer//g' | sed -e 's/-fPIC//g'`
|
||||
fi
|
||||
LLVM_CFLAGS=`$LLVM_CONFIG --cflags | sed -e 's/-O2//g' | sed -e 's/-O0//g' | sed -e 's/-fomit-frame-pointer//g' | sed -e 's/-fPIC//g'`
|
||||
LLVM_CXXFLAGS=`$LLVM_CONFIG --cxxflags | sed -e 's/-O2//g' | sed -e 's/-O0//g' | sed -e 's/-fomit-frame-pointer//g' | sed -e 's/-fPIC//g'`
|
||||
# LLVM is compiled with -fno-rtti, so we need this too, since our classes inherit
|
||||
# from LLVM classes.
|
||||
LLVM_CXXFLAGS="$LLVM_CXXFLAGS -fno-rtti -fexceptions"
|
||||
LLVM_LDFLAGS=`$LLVM_CONFIG --ldflags`
|
||||
# This might include empty lines
|
||||
LLVM_SYSTEM_LIBS=`$LLVM_CONFIG --system-libs 2>/dev/null | grep -- -`
|
||||
llvm_jit_supported=yes
|
||||
llvm_jit_libs="jit mcjit $llvm_codegen"
|
||||
if test $llvm_api_version -gt 100; then
|
||||
# Based on llvm 3.9, only aot is currently supported
|
||||
llvm_jit_libs="orcjit $llvm_codegen"
|
||||
elif test "x$host" != "x$target"; then
|
||||
if test "x$host" != "x$target"; then
|
||||
# No need for jit libs
|
||||
llvm_jit_supported=no
|
||||
llvm_jit_libs=""
|
||||
fi
|
||||
LLVM_LIBS=`$LLVM_CONFIG --libs analysis core bitwriter $llvm_jit_libs`
|
||||
if test "x$LLVM_LIBS" = "x"; then
|
||||
echo "$LLVM_CONFIG --libs failed."
|
||||
exit 1
|
||||
LLVM_LIBS=`$LLVM_CONFIG --libs analysis core bitwriter`
|
||||
else
|
||||
LLVM_LIBS=`$LLVM_CONFIG --libs analysis core bitwriter jit mcjit $llvm_codegen`
|
||||
fi
|
||||
LLVM_LIBS="$LLVM_LIBS $LLVM_LDFLAGS $LLVM_SYSTEM_LIBS"
|
||||
# The c++ standard library used by llvm doesn't show up in $LLVM_SYSTEM_LIBS so add it manually
|
||||
@@ -2879,6 +2623,21 @@ if test "x$enable_llvm" = "xyes"; then
|
||||
|
||||
expected_llvm_version="3.4svn-mono-mono/e656cac"
|
||||
|
||||
# Should be something like '2.6' or '2.7svn'
|
||||
llvm_version=`$LLVM_CONFIG --version`
|
||||
llvm_api_version=`$LLVM_CONFIG --mono-api-version 2>/dev/null`
|
||||
AC_MSG_CHECKING(LLVM version)
|
||||
AC_MSG_RESULT($llvm_version)
|
||||
if echo $llvm_version | grep -q 'mono'; then
|
||||
if test "x$enable_llvm_version_check" == "xyes"; then
|
||||
if test "$llvm_version" != "$expected_llvm_version"; then
|
||||
AC_MSG_ERROR([Expected llvm version $expected_llvm_version, but llvm-config --version returned $llvm_version"])
|
||||
fi
|
||||
fi
|
||||
else
|
||||
AC_MSG_ERROR([Compiling with stock LLVM is not supported, please use the Mono LLVM repo at https://github.com/mono/llvm, with the GIT branch which matches this version of mono, i.e. 'mono-2-10' for Mono 2.10.])
|
||||
fi
|
||||
|
||||
else
|
||||
LLVM_CFLAGS="-I$with_llvm/include -DNDEBUG -D__NO_CTYPE_INLINE -D_GNU_SOURCE -D__STDC_CONSTANT_MACROS -D__STDC_FORMAT_MACROS -D__STDC_LIMIT_MACROS"
|
||||
LLVM_CXXFLAGS="$LLVM_CFLAGS -std=gnu++11 -fvisibility-inlines-hidden -fno-rtti -Woverloaded-virtual -Wcast-qual"
|
||||
@@ -3090,7 +2849,6 @@ case "$host" in
|
||||
TARGET=ARM;
|
||||
TARGET_SYS=WATCHOS
|
||||
arch_target=arm;
|
||||
arm_fpu=VFP_HARD
|
||||
ACCESS_UNALIGNED="no"
|
||||
CPPFLAGS="$CPPFLAGS -D__ARM_EABI__"
|
||||
;;
|
||||
@@ -3108,12 +2866,6 @@ case "$host" in
|
||||
AOT_SUPPORTED="yes"
|
||||
CPPFLAGS="$CPPFLAGS -D__ARM_EABI__"
|
||||
;;
|
||||
arm*-netbsd*-eabi*)
|
||||
TARGET=ARM;
|
||||
arch_target=arm;
|
||||
ACCESS_UNALIGNED="no"
|
||||
CPPFLAGS="$CPPFLAGS -D__ARM_EABI__"
|
||||
;;
|
||||
# TODO: make proper support for NaCl host.
|
||||
# arm*-*nacl)
|
||||
# TARGET=ARM;
|
||||
@@ -3126,7 +2878,6 @@ case "$host" in
|
||||
TARGET=ARM64
|
||||
arch_target=arm64
|
||||
boehm_supported=false
|
||||
AOT_SUPPORTED="yes"
|
||||
;;
|
||||
s390x-*-linux*)
|
||||
TARGET=S390X;
|
||||
@@ -3152,7 +2903,6 @@ if test "x$host" != "x$target"; then
|
||||
with_tls=pthread
|
||||
case "$target" in
|
||||
armv7k-*)
|
||||
arm_fpu=VFP_HARD
|
||||
AC_DEFINE(TARGET_WATCHOS, 1, [...])
|
||||
;;
|
||||
esac
|
||||
@@ -3230,17 +2980,6 @@ if test "x$host" != "x$target"; then
|
||||
;;
|
||||
esac
|
||||
;;
|
||||
arm*-netbsd*-eabi*)
|
||||
TARGET=ARM;
|
||||
arch_target=arm;
|
||||
AC_DEFINE(TARGET_ARM, 1, [...])
|
||||
ACCESS_UNALIGNED="no"
|
||||
CPPFLAGS="$CPPFLAGS -D__ARM_EABI__"
|
||||
# Can't use tls, since it depends on the runtime detection of tls offsets
|
||||
# in mono-compiler.h
|
||||
with_tls=pthread
|
||||
target_mach=no
|
||||
;;
|
||||
i686*-linux-*)
|
||||
TARGET=X86;
|
||||
arch_target=x86;
|
||||
@@ -3268,7 +3007,6 @@ if test "x$host" != "x$target"; then
|
||||
arch_target=amd64;
|
||||
AC_DEFINE(TARGET_AMD64, 1, [...])
|
||||
AC_DEFINE(TARGET_PS4, 1, [...])
|
||||
AC_DEFINE(DISABLE_HW_TRAPS, 1, [...])
|
||||
CPPFLAGS="$CPPFLAGS"
|
||||
# Can't use tls, since it depends on the runtime detection of tls offsets
|
||||
# in mono-compiler.h
|
||||
@@ -3332,45 +3070,6 @@ SPARC64)
|
||||
;;
|
||||
esac
|
||||
|
||||
case "$HOST" in
|
||||
X86)
|
||||
AC_DEFINE(HOST_X86, 1, [...])
|
||||
;;
|
||||
AMD64)
|
||||
AC_DEFINE(HOST_AMD64, 1, [...])
|
||||
;;
|
||||
ARM)
|
||||
AC_DEFINE(HOST_ARM, 1, [...])
|
||||
;;
|
||||
ARM64)
|
||||
AC_DEFINE(HOST_ARM64, 1, [...])
|
||||
;;
|
||||
POWERPC)
|
||||
AC_DEFINE(HOST_POWERPC, 1, [...])
|
||||
;;
|
||||
POWERPC64)
|
||||
AC_DEFINE(HOST_POWERPC, 1, [...])
|
||||
AC_DEFINE(HOST_POWERPC64, 1, [...])
|
||||
;;
|
||||
S390X)
|
||||
AC_DEFINE(HOST_S390X, 1, [...])
|
||||
;;
|
||||
MIPS)
|
||||
AC_DEFINE(HOST_MIPS, 1, [...])
|
||||
;;
|
||||
IA64)
|
||||
AC_DEFINE(HOST_IA64, 1, [...])
|
||||
;;
|
||||
SPARC)
|
||||
AC_DEFINE(HOST_SPARC, 1, [...])
|
||||
;;
|
||||
SPARC64)
|
||||
AC_DEFINE(HOST_SPARC64, 1, [...])
|
||||
;;
|
||||
esac
|
||||
|
||||
|
||||
|
||||
dnl *************
|
||||
dnl *** VTUNE ***
|
||||
dnl *************
|
||||
@@ -3477,23 +3176,11 @@ dnl
|
||||
dnl Simple Generational checks (sgen)
|
||||
dnl
|
||||
SGEN_DEFINES=
|
||||
AC_ARG_WITH(sgen, [ --with-sgen=yes,no Extra Generational GC, default=yes],[buildsgen=$with_sgen],[buildsgen=yes])
|
||||
AC_ARG_WITH(sgen-default-concurrent, [ --with-sgen-default-concurrent=yes,no Use Concurrent GC, default=no],[],[with_sgen_default_concurrent=no])
|
||||
AC_ARG_WITH(sgen, [ --with-sgen=yes,no Extra Generational GC, default=yes],[buildsgen=$with_sgen],[buildsgen=yes])
|
||||
if test x$buildsgen = xyes; then
|
||||
AC_DEFINE(HAVE_MOVING_COLLECTOR, 1, [Moving collector])
|
||||
SGEN_DEFINES="-DHAVE_SGEN_GC"
|
||||
|
||||
conc_gc_msg=""
|
||||
if test x$with_sgen_default_concurrent != xno; then
|
||||
AC_DEFINE(HAVE_CONC_GC_AS_DEFAULT, 1, [Defaults to concurrent GC])
|
||||
conc_gc_msg=" (concurrent by default)"
|
||||
fi
|
||||
|
||||
if test "x$gc_msg" = "x"; then
|
||||
gc_msg="sgen$conc_gc_msg"
|
||||
else
|
||||
gc_msg="sgen$conc_gc_msg and $gc_msg"
|
||||
fi
|
||||
gc_msg="sgen and $gc_msg"
|
||||
fi
|
||||
AC_SUBST(SGEN_DEFINES)
|
||||
AM_CONDITIONAL(SUPPORT_SGEN, test x$buildsgen = xyes)
|
||||
@@ -3514,10 +3201,8 @@ case "$host" in
|
||||
GTKX11="libgtk-x11-2.0.dylib"
|
||||
;;
|
||||
*-*-*netbsd*)
|
||||
LIBC="libc.so"
|
||||
INTL="libintl.so"
|
||||
SQLITE="libsqlite.so"
|
||||
SQLITE3="libsqlite3.so"
|
||||
LIBC="libc.so.12"
|
||||
INTL="libintl.so.0"
|
||||
;;
|
||||
*-*-kfreebsd*-gnu)
|
||||
LIBC="libc.so.0.1"
|
||||
@@ -3565,12 +3250,6 @@ AC_ARG_WITH([libgdiplus],
|
||||
|
||||
# default install location
|
||||
libgdiplus_install_loc=libgdiplus${libsuffix}
|
||||
case "$host" in
|
||||
*-*-*linux*)
|
||||
libgdiplus_install_loc=libgdiplus${libsuffix}.0
|
||||
;;
|
||||
esac
|
||||
|
||||
case $with_libgdiplus in
|
||||
no|installed)
|
||||
libgdiplus_loc=
|
||||
@@ -3679,10 +3358,6 @@ if test ${TARGET} = ARM; then
|
||||
])
|
||||
fi
|
||||
|
||||
if test x$arm_fpu != x; then
|
||||
fpu=$arm_fpu
|
||||
fi
|
||||
|
||||
AC_MSG_RESULT($fpu)
|
||||
CPPFLAGS="$CPPFLAGS -DARM_FPU_$fpu=1"
|
||||
unset fpu
|
||||
@@ -3746,6 +3421,12 @@ if test ${TARGET} = ARM; then
|
||||
fi
|
||||
fi
|
||||
|
||||
if test ${TARGET} = ARM; then
|
||||
if test "x${with_jumptables}" = "xyes"; then
|
||||
AC_DEFINE(USE_JUMP_TABLES, 1, Use jump tables in JIT)
|
||||
fi
|
||||
fi
|
||||
|
||||
if test ${TARGET} = unknown; then
|
||||
CPPFLAGS="$CPPFLAGS -DNO_PORT"
|
||||
AC_MSG_WARN("mono has not been ported to $host: some things may not work.")
|
||||
@@ -3779,6 +3460,28 @@ case "x$libgc" in
|
||||
;;
|
||||
esac
|
||||
|
||||
AC_ARG_WITH(profile4_x, [ --with-profile4=yes,no If you want to install the 4.6 FX (defaults to yes)], [], [with_profile4_x=yes])
|
||||
AC_ARG_WITH(monodroid, [ --with-monodroid=yes,no If you want to build the MonoDroid assemblies (defaults to no)], [], [with_monodroid=no])
|
||||
AC_ARG_WITH(monotouch, [ --with-monotouch=yes,no If you want to build the Xamarin.iOS assemblies (defaults to no)], [], [with_monotouch=no])
|
||||
AC_ARG_WITH(monotouch_watch, [ --with-monotouch_watch=yes,no If you want to build the Xamarin.WatchOS assemblies (defaults to no)],[], [with_monotouch_watch=no])
|
||||
AC_ARG_WITH(monotouch_tv, [ --with-monotouch_tv=yes,no If you want to build the Xamarin.TVOS assemblies (defaults to no)], [], [with_monotouch_tv=no])
|
||||
AC_ARG_WITH(bitcode, [ --with-bitcode=yes,no If bitcode is enabled (defaults to no)], [], [with_bitcode=no])
|
||||
AC_ARG_WITH(xammac, [ --with-xammac=yes,no If you want to build the Xamarin.Mac assemblies (defaults to no)], [], [with_xammac=no])
|
||||
|
||||
OPROFILE=no
|
||||
AC_ARG_WITH(oprofile,[ --with-oprofile=no,<oprofile install dir> Enable oprofile support (defaults to no)],[
|
||||
if test x$with_oprofile != xno; then
|
||||
oprofile_include=$with_oprofile/include
|
||||
if test ! -f $oprofile_include/opagent.h; then
|
||||
AC_MSG_ERROR([oprofile include file not found at $oprofile_include/opagent.h])
|
||||
fi
|
||||
OPROFILE=yes
|
||||
OPROFILE_CFLAGS="-I$oprofile_include"
|
||||
OPROFILE_LIBS="-L$with_oprofile/lib/oprofile -lopagent"
|
||||
AC_DEFINE(HAVE_OPROFILE,1,[Have oprofile support])
|
||||
fi
|
||||
])
|
||||
|
||||
MALLOC_MEMPOOLS=no
|
||||
AC_ARG_WITH(malloc_mempools,[ --with-malloc-mempools=yes,no Use malloc for each single mempool allocation (only for runtime debugging, defaults to no)],[
|
||||
if test x$with_malloc_mempools = xyes; then
|
||||
@@ -3788,18 +3491,15 @@ AC_ARG_WITH(malloc_mempools,[ --with-malloc-mempools=yes,no Use malloc for eac
|
||||
])
|
||||
|
||||
|
||||
DISABLE_MCS_DOCS=default
|
||||
DISABLE_MCS_DOCS=no
|
||||
AC_ARG_WITH(mcs_docs,[ --with-mcs-docs=yes,no If you want to build the documentation under mcs (defaults to yes)],[
|
||||
if test x$with_mcs_docs != xyes; then
|
||||
DISABLE_MCS_DOCS=yes
|
||||
fi
|
||||
])
|
||||
if test -n "$INSTALL_4_x_TRUE"; then :
|
||||
if test x$with_profile4_x != xyes; then
|
||||
DISABLE_MCS_DOCS=yes
|
||||
fi
|
||||
if test "x$DISABLE_MCS_DOCS" = "xdefault"; then
|
||||
DISABLE_MCS_DOCS=$DISABLE_MCS_DOCS_default
|
||||
fi
|
||||
|
||||
AC_ARG_WITH(lazy_gc_thread_creation, [ --with-lazy-gc-thread-creation=yes|no Enable lazy runtime thread creation, embedding host must do it explicitly (defaults to no)],[
|
||||
if test x$with_lazy_gc_thread_creation != xno ; then
|
||||
@@ -3807,46 +3507,18 @@ AC_ARG_WITH(lazy_gc_thread_creation, [ --with-lazy-gc-thread-creation=yes|no
|
||||
fi
|
||||
], [with_lazy_gc_thread_creation=no])
|
||||
|
||||
AC_ARG_WITH(cooperative_gc, [ --with-cooperative-gc=yes|no Enable cooperative stop-the-world garbage collection (sgen only) (defaults to no)], [], [with_cooperative_gc=default])
|
||||
|
||||
if test x$with_cooperative_gc = xdefault; then
|
||||
with_cooperative_gc=$with_cooperative_gc_default
|
||||
fi
|
||||
|
||||
if test x$with_cooperative_gc != xno; then
|
||||
AC_DEFINE(USE_COOP_GC,1,[Enable cooperative stop-the-world garbage collection.])
|
||||
fi
|
||||
|
||||
AM_CONDITIONAL([ENABLE_COOP], [test x$with_cooperative_gc != xno])
|
||||
|
||||
AC_ARG_ENABLE(checked_build, [ --enable-checked-build=LIST To enable checked build (expensive asserts), configure with a comma-separated LIST of checked build modules and then include that same list in the environment variable MONO_CHECK_MODE at runtime. Recognized checked build modules: all, gc, metadata, thread],[
|
||||
|
||||
if test x$enable_checked_build != x ; then
|
||||
AC_DEFINE(ENABLE_CHECKED_BUILD,1,[Enable checked build])
|
||||
AC_ARG_WITH(cooperative_gc, [ --with-cooperative-gc=yes|no Enable cooperative stop-the-world garbage collection (sgen only) (defaults to no)],[
|
||||
if test x$with_cooperative_gc != xno ; then
|
||||
AC_DEFINE(USE_COOP_GC,1,[Enable cooperative stop-the-world garbage collection.])
|
||||
fi
|
||||
for feature in `echo "$enable_checked_build" | sed -e "s/,/ /g"`; do
|
||||
eval "mono_checked_build_test_enable_$feature='yes'"
|
||||
done
|
||||
], [with_cooperative_gc=no])
|
||||
|
||||
if test "x$mono_checked_build_test_enable_all" = "xyes"; then
|
||||
eval "mono_checked_build_test_enable_gc='yes'"
|
||||
eval "mono_checked_build_test_enable_metadata='yes'"
|
||||
eval "mono_checked_build_test_enable_thread='yes'"
|
||||
AC_ARG_WITH(checked_build, [ --with-checked-build=yes|no Enable checked build (expensive asserts)) (defaults to no)],[
|
||||
if test x$with_checked_build != xno ; then
|
||||
AC_DEFINE(CHECKED_BUILD,1,[Enable checked build.])
|
||||
fi
|
||||
], [with_checked_build=no])
|
||||
|
||||
if test "x$mono_checked_build_test_enable_gc" = "xyes"; then
|
||||
AC_DEFINE(ENABLE_CHECKED_BUILD_GC, 1, [Enable GC checked build])
|
||||
fi
|
||||
|
||||
if test "x$mono_checked_build_test_enable_metadata" = "xyes"; then
|
||||
AC_DEFINE(ENABLE_CHECKED_BUILD_METADATA, 1, [Enable metadata checked build])
|
||||
fi
|
||||
|
||||
if test "x$mono_checked_build_test_enable_thread" = "xyes"; then
|
||||
AC_DEFINE(ENABLE_CHECKED_BUILD_THREAD, 1, [Enable thread checked build])
|
||||
fi
|
||||
|
||||
], [])
|
||||
|
||||
AC_CHECK_HEADER([malloc.h],
|
||||
[AC_DEFINE([HAVE_USR_INCLUDE_MALLOC_H], [1],
|
||||
@@ -3873,6 +3545,19 @@ else
|
||||
fi
|
||||
AC_SUBST(LIBMONO_LA)
|
||||
|
||||
dnl
|
||||
dnl Consistency settings
|
||||
dnl
|
||||
if test x$cross_compiling = xyes -o x$enable_mcs_build = xno; then
|
||||
DISABLE_MCS_DOCS=yes
|
||||
with_profile4_x=no
|
||||
with_monodroid=no
|
||||
with_monotouch=no
|
||||
with_monotouch_watch=no
|
||||
with_monotouch_tv=no
|
||||
with_xammac=no
|
||||
fi
|
||||
|
||||
if test x$DISABLE_MCS_DOCS = xyes; then
|
||||
docs_dir=""
|
||||
else
|
||||
@@ -3883,8 +3568,20 @@ AC_SUBST(docs_dir)
|
||||
## Maybe should also disable if mcsdir is invalid. Let's punt the issue for now.
|
||||
AM_CONDITIONAL(BUILD_MCS, [test x$cross_compiling = xno && test x$enable_mcs_build != xno])
|
||||
|
||||
AM_CONDITIONAL(HAVE_OPROFILE, test x$OPROFILE = xyes)
|
||||
AC_SUBST(OPROFILE_CFLAGS)
|
||||
AC_SUBST(OPROFILE_LIBS)
|
||||
|
||||
libmono_ldflags="$libmono_ldflags $LIBS"
|
||||
|
||||
AM_CONDITIONAL(INSTALL_4_x, [test "x$with_profile4_x" = xyes])
|
||||
AM_CONDITIONAL(INSTALL_MONODROID, [test "x$with_monodroid" != "xno"])
|
||||
AM_CONDITIONAL(INSTALL_MONOTOUCH, [test "x$with_monotouch" != "xno"])
|
||||
AM_CONDITIONAL(INSTALL_MONOTOUCH_WATCH, [test "x$with_monotouch_watch" != "xno"])
|
||||
AM_CONDITIONAL(INSTALL_MONOTOUCH_TV, [test "x$with_monotouch_tv" != "xno"])
|
||||
AM_CONDITIONAL(BITCODE, test "x$with_bitcode" = "xyes")
|
||||
AM_CONDITIONAL(INSTALL_XAMMAC, [test "x$with_xammac" != "xno"])
|
||||
|
||||
AM_CONDITIONAL(MIPS_GCC, test ${TARGET}${ac_cv_prog_gcc} = MIPSyes)
|
||||
AM_CONDITIONAL(MIPS_SGI, test ${TARGET}${ac_cv_prog_gcc} = MIPSno)
|
||||
AM_CONDITIONAL(SPARC, test x$TARGET = xSPARC)
|
||||
@@ -3918,9 +3615,6 @@ AC_SUBST(CFLAGS)
|
||||
AC_SUBST(CPPFLAGS)
|
||||
AC_SUBST(LDFLAGS)
|
||||
|
||||
#This must always be defined when building the runtime
|
||||
AC_DEFINE(MONO_INSIDE_RUNTIME,1, [Disable banned functions from being used by the runtime])
|
||||
|
||||
mono_build_root=`pwd`
|
||||
AC_SUBST(mono_build_root)
|
||||
|
||||
@@ -3939,6 +3633,22 @@ else
|
||||
fi
|
||||
AC_SUBST(mono_cfg_dir)
|
||||
|
||||
default_profile=net_4_x
|
||||
if test -z "$INSTALL_MONODROID_TRUE"; then :
|
||||
default_profile=monodroid
|
||||
fi
|
||||
if test -z "$INSTALL_MONOTOUCH_TRUE"; then :
|
||||
default_profile=monotouch
|
||||
fi
|
||||
if test -z "$INSTALL_XAMMAC_TRUE"; then :
|
||||
default_profile=xammac
|
||||
fi
|
||||
if test -z "$INSTALL_4_x_TRUE"; then :
|
||||
default_profile=net_4_x
|
||||
fi
|
||||
DEFAULT_PROFILE=$default_profile
|
||||
AC_SUBST(DEFAULT_PROFILE)
|
||||
|
||||
AC_CONFIG_FILES([po/mcs/Makefile.in])
|
||||
|
||||
AC_CONFIG_FILES([runtime/mono-wrapper],[chmod +x runtime/mono-wrapper])
|
||||
@@ -4105,7 +3815,6 @@ AC_OUTPUT([
|
||||
Makefile
|
||||
mono-uninstalled.pc
|
||||
acceptance-tests/Makefile
|
||||
llvm/Makefile
|
||||
scripts/mono-find-provides
|
||||
scripts/mono-find-requires
|
||||
mono/Makefile
|
||||
@@ -4172,7 +3881,6 @@ tools/Makefile
|
||||
tools/locale-builder/Makefile
|
||||
tools/sgen/Makefile
|
||||
tools/monograph/Makefile
|
||||
tools/pedump/Makefile
|
||||
runtime/Makefile
|
||||
msvc/Makefile
|
||||
po/Makefile
|
||||
@@ -4243,10 +3951,6 @@ fi
|
||||
echo "PLATFORM = darwin" >> $mcs_topdir/build/config.make
|
||||
fi
|
||||
|
||||
if test "x$PLATFORM_AOT_SUFFIX" != "x"; then
|
||||
echo "PLATFORM_AOT_SUFFIX = $PLATFORM_AOT_SUFFIX" >> $mcs_topdir/build/config.make
|
||||
fi
|
||||
|
||||
if test x$AOT_SUPPORTED = xyes -a x$enable_system_aot = xdefault; then
|
||||
enable_system_aot=yes
|
||||
fi
|
||||
@@ -4269,11 +3973,6 @@ fi
|
||||
echo "BCL_OPTIMIZE = 1" >> $srcdir/$mcsdir/build/config.make
|
||||
fi
|
||||
|
||||
if test "x$AOT_BUILD_FLAGS" != "x" ; then
|
||||
echo "AOT_RUN_FLAGS=$AOT_RUN_FLAGS" >> $srcdir/$mcsdir/build/config.make
|
||||
echo "AOT_BUILD_FLAGS=$AOT_BUILD_FLAGS" >> $srcdir/$mcsdir/build/config.make
|
||||
fi
|
||||
|
||||
fi
|
||||
|
||||
)
|
||||
@@ -4290,18 +3989,18 @@ echo "
|
||||
TLS: $with_tls
|
||||
SIGALTSTACK: $with_sigaltstack
|
||||
Engine: $jit_status
|
||||
oprofile: $OPROFILE
|
||||
BigArrays: $enable_big_arrays
|
||||
DTrace: $enable_dtrace
|
||||
LLVM Back End: $enable_llvm (dynamically loaded: $enable_loadedllvm)
|
||||
|
||||
Libraries:
|
||||
.NET 4.x: $with_profile4_x
|
||||
.NET 4.6: $with_profile4_x
|
||||
Xamarin.Android: $with_monodroid
|
||||
Xamarin.iOS: $with_monotouch
|
||||
Xamarin.WatchOS: $with_monotouch_watch
|
||||
Xamarin.TVOS: $with_monotouch_tv
|
||||
Xamarin.Mac: $with_xammac
|
||||
mobile_static: $with_mobile_static
|
||||
JNI support: $jdk_headers_found
|
||||
libgdiplus: $libgdiplus_msg
|
||||
zlib: $zlib_msg
|
||||
|
||||
@@ -0,0 +1,6 @@
|
||||
2008-03-23 Dean Brettle <[email protected]>
|
||||
|
||||
* Compat.browser: added. Provides browser definitions with
|
||||
compatible IDs.
|
||||
|
||||
|
||||
@@ -0,0 +1,15 @@
|
||||
2010-05-17 Zoltan Varga <[email protected]>
|
||||
|
||||
* mono-2.pc.in (Libs): Remove glib dependencies.
|
||||
|
||||
2010-05-07 Zoltan Varga <[email protected]>
|
||||
|
||||
* mono-2.pc (Requires): Remove glib dependencies.
|
||||
|
||||
2010-04-02 Jb Evain <[email protected]>
|
||||
|
||||
* dotnet35.pc.in: add System.Data.Services.dll.
|
||||
|
||||
2010-03-08 Rodrigo Kumpera <[email protected]>
|
||||
|
||||
* mono.supp: Add hazard pointers supressions.
|
||||
+1
-1
@@ -5,7 +5,7 @@ monolldbdir = $(libdir)/mono/lldb
|
||||
|
||||
EXTRA_DIST = \
|
||||
config.in \
|
||||
browscap.ini mono.supp mono.d README \
|
||||
browscap.ini mono.supp mono.d README ChangeLog \
|
||||
mono.pc.in mono-2.pc.in monosgen-2.pc.in mint.pc.in dotnet.pc.in dotnet35.pc.in wcf.pc.in monodoc.pc.in \
|
||||
mono-nunit.pc.in mono-cairo.pc.in mono-options.pc.in cecil.pc.in \
|
||||
mono-lineeditor.pc.in system.web.extensions_1.0.pc.in system.web.extensions.design_1.0.pc.in\
|
||||
|
||||
@@ -0,0 +1,66 @@
|
||||
2009-10-09 Zoltan Varga <[email protected]>
|
||||
|
||||
* mono-gdb.py (MonoSupport.run_hook): Set MONO_XDEBUG to 'gdb' to activate
|
||||
the GDB support mode in the runtime.
|
||||
|
||||
2009-04-14 Zoltan Varga <[email protected]>
|
||||
|
||||
* mono-gdb.py (MonoClassPrinter.to_string): Add a MonoClass* pretty
|
||||
printer.
|
||||
|
||||
2009-04-12 Zoltan Varga <[email protected]>
|
||||
|
||||
* mono-gdb.py (MonoMethodPrinter.to_string): Add a MonoMethod* pretty
|
||||
printer.
|
||||
|
||||
2009-04-10 Zoltan Varga <[email protected]>
|
||||
|
||||
* mono-gdb.py: Update to the latest archer api.
|
||||
|
||||
2009-04-07 Zoltan Varga <[email protected]>
|
||||
|
||||
* mono-gdb.py (ObjectPrinter.__init__): Update to latest archer api.
|
||||
|
||||
2009-04-06 Zoltan Varga <[email protected]>
|
||||
|
||||
* test-xdb.py: New file, tester script for xdb.
|
||||
|
||||
* mono-gdb.py (stringify_class_name): Handle classes without a namespace
|
||||
correctly.
|
||||
|
||||
* mono-gdb.py: Update after the changes to dwarfwriter.c.
|
||||
|
||||
2009-04-05 Zoltan Varga <[email protected]>
|
||||
|
||||
* mono-gdb.py: Handle superclasses in the pretty printer.
|
||||
|
||||
2009-03-27 Zoltan Varga <[email protected]>
|
||||
|
||||
* mono-gdb.py (StringPrinter.to_string): Fix support for non-ascii characters.
|
||||
|
||||
2009-03-20 Zoltan Varga <[email protected]>
|
||||
|
||||
* mono-gdb.py: Update for the latest python API on the archer branch.
|
||||
|
||||
2009-02-03 Zoltan Varga <[email protected]>
|
||||
|
||||
* mono-gdb.py: Remove the --64 argument to as, it is not needed.
|
||||
|
||||
* mono-gdb.py (stringify_class_name): Helper function to print base types
|
||||
using their short name. Also add a prototype implementation of registering
|
||||
the hooks from python code instead of needing the mono-gdbinit file.
|
||||
|
||||
* gdb-python.diff: Changes against the gdb archer branch at
|
||||
http://sourceware.org/gdb/wiki/PythonGdb to fix some problems/add functionality.
|
||||
|
||||
2009-02-03 Geoff Norton <[email protected]>
|
||||
|
||||
* mono-gdbinit: Hook into backtrace as hook-stop seems to crash gdb
|
||||
* mono-gdb.py: Find the gdbinit name from the executable name instead of
|
||||
hardcoding mono
|
||||
|
||||
2009-01-29 Zoltan Varga <[email protected]>
|
||||
|
||||
* mono-gdb.py mono-gdbinit: Support files to help debugging mono/mono apps
|
||||
using a python enabled gdb.
|
||||
|
||||
@@ -0,0 +1,80 @@
|
||||
2010-06-28 Zoltan Varga <[email protected]>
|
||||
|
||||
* mono-gdb.py: Add pretty printers for more runtime data structures.
|
||||
|
||||
2009-10-13 Zoltan Varga <[email protected]>
|
||||
|
||||
* mono-gdb.py: Add an 'xdb' command to flush the debugging info.
|
||||
|
||||
2009-10-12 Zoltan Varga <[email protected]>
|
||||
|
||||
* mono-gdb.py: Update this to gdb 7.0.
|
||||
|
||||
* mono-gdbinit: Removed, no longer needed.
|
||||
|
||||
2009-10-09 Zoltan Varga <[email protected]>
|
||||
|
||||
* mono-gdb.py (MonoSupport.run_hook): Set MONO_XDEBUG to 'gdb' to activate
|
||||
the GDB support mode in the runtime.
|
||||
|
||||
2009-04-14 Zoltan Varga <[email protected]>
|
||||
|
||||
* mono-gdb.py (MonoClassPrinter.to_string): Add a MonoClass* pretty
|
||||
printer.
|
||||
|
||||
2009-04-12 Zoltan Varga <[email protected]>
|
||||
|
||||
* mono-gdb.py (MonoMethodPrinter.to_string): Add a MonoMethod* pretty
|
||||
printer.
|
||||
|
||||
2009-04-10 Zoltan Varga <[email protected]>
|
||||
|
||||
* mono-gdb.py: Update to the latest archer api.
|
||||
|
||||
2009-04-07 Zoltan Varga <[email protected]>
|
||||
|
||||
* mono-gdb.py (ObjectPrinter.__init__): Update to latest archer api.
|
||||
|
||||
2009-04-06 Zoltan Varga <[email protected]>
|
||||
|
||||
* test-xdb.py: New file, tester script for xdb.
|
||||
|
||||
* mono-gdb.py (stringify_class_name): Handle classes without a namespace
|
||||
correctly.
|
||||
|
||||
* mono-gdb.py: Update after the changes to dwarfwriter.c.
|
||||
|
||||
2009-04-05 Zoltan Varga <[email protected]>
|
||||
|
||||
* mono-gdb.py: Handle superclasses in the pretty printer.
|
||||
|
||||
2009-03-27 Zoltan Varga <[email protected]>
|
||||
|
||||
* mono-gdb.py (StringPrinter.to_string): Fix support for non-ascii characters.
|
||||
|
||||
2009-03-20 Zoltan Varga <[email protected]>
|
||||
|
||||
* mono-gdb.py: Update for the latest python API on the archer branch.
|
||||
|
||||
2009-02-03 Zoltan Varga <[email protected]>
|
||||
|
||||
* mono-gdb.py: Remove the --64 argument to as, it is not needed.
|
||||
|
||||
* mono-gdb.py (stringify_class_name): Helper function to print base types
|
||||
using their short name. Also add a prototype implementation of registering
|
||||
the hooks from python code instead of needing the mono-gdbinit file.
|
||||
|
||||
* gdb-python.diff: Changes against the gdb archer branch at
|
||||
http://sourceware.org/gdb/wiki/PythonGdb to fix some problems/add functionality.
|
||||
|
||||
2009-02-03 Geoff Norton <[email protected]>
|
||||
|
||||
* mono-gdbinit: Hook into backtrace as hook-stop seems to crash gdb
|
||||
* mono-gdb.py: Find the gdbinit name from the executable name instead of
|
||||
hardcoding mono
|
||||
|
||||
2009-01-29 Zoltan Varga <[email protected]>
|
||||
|
||||
* mono-gdb.py mono-gdbinit: Support files to help debugging mono/mono apps
|
||||
using a python enabled gdb.
|
||||
|
||||
@@ -0,0 +1,6 @@
|
||||
2009-02-19 Rodrigo Kumpera <[email protected]>
|
||||
|
||||
* LockTracerDecoder.cs: Initial version of the lock tracers decoder.
|
||||
|
||||
|
||||
|
||||
@@ -0,0 +1,147 @@
|
||||
2009-08-11 Gonzalo Paniagua Javier <[email protected]>
|
||||
|
||||
* DefaultWsdlHelpGenerator.aspx: the 'Message Layout' can now handle
|
||||
self-referencing types. Fixes bug #529353.
|
||||
|
||||
2009-08-05 Atsushi Enomoto <[email protected]>
|
||||
|
||||
* web.config: add WCF assemblies as references at compilation.
|
||||
* machine.config: add some missing WCF sections (new in 3.5).
|
||||
|
||||
2009-05-28 Atsushi Enomoto <[email protected]>
|
||||
|
||||
* machine.config: fix WCF diagnostics section name.
|
||||
|
||||
2009-03-31 Marek Habersack <[email protected]>
|
||||
|
||||
* DefaultWsdlHelpGenerator.aspx: the link element in <head> must
|
||||
be created using Response.Write, as the code expression in the
|
||||
href attribute is otherwise treated verbatim. This is the same as
|
||||
with .NET. Fixes bug #490497
|
||||
|
||||
2009-03-27 Gonzalo Paniagua Javier <[email protected]>
|
||||
|
||||
* DefaultWsdlHelpGenerator.aspx: disable the test form
|
||||
when only Soap is supported.
|
||||
Bug #342073 fixed.
|
||||
|
||||
2009-01-23 Atsushi Enomoto <[email protected]>
|
||||
|
||||
* web.config : added .svc handler.
|
||||
|
||||
2009-01-07 Kornél Pál <[email protected]>
|
||||
|
||||
* DefaultWsdlHelpGenerator.aspx: Move <script> at the end of <head> that
|
||||
will make Visual Studio recognize the web service disco reference.
|
||||
|
||||
Contributed under MIT/X11 license.
|
||||
|
||||
2008-12-03 Marek Habersack <[email protected]>
|
||||
|
||||
* machine.config: rename serviceModelHostingEnvironment to
|
||||
serviceHostingEnvironment.
|
||||
|
||||
2008-11-20 Gonzalo Paniagua Javier <[email protected]>
|
||||
|
||||
* machine.config: in 2.0, there's no <connectionManagement> section
|
||||
here. Bug #445991 fixed.
|
||||
|
||||
2008-11-14 Gonzalo Paniagua Javier <[email protected]>
|
||||
|
||||
* DefaultWsdlHelpGenerator.aspx: use javascript instead of
|
||||
HttpWebRequest to avoid a deadlock if the web service uses Session.
|
||||
Bug #444343 fixed.
|
||||
|
||||
2008-10-09 Gonzalo Paniagua Javier <[email protected]>
|
||||
|
||||
* web.config: default values for httpRuntime are different in 2.0
|
||||
|
||||
2008-10-09 Marek Habersack <[email protected]>
|
||||
|
||||
* web.config: added the default monoSettings section which works around
|
||||
an incompatibility between mcs and csc, mentioned in bug #433806
|
||||
|
||||
* machine.config: added definition of the monoSettings section to
|
||||
the system.web group
|
||||
|
||||
2008-10-06 Marek Habersack <[email protected]>
|
||||
|
||||
* machine.config: added entries to ignore the mobileControls and
|
||||
deviceFilters sections.
|
||||
|
||||
2008-09-02 Marek Habersack <[email protected]>
|
||||
|
||||
* web.config: removed System.Web.Extensions.dll from the assemblies
|
||||
(reverting r112073) - it would break all the ASP.NET applications
|
||||
which use System.Web.Extensions other than 3.5.0.0
|
||||
|
||||
2008-09-06 Daniel Morgan <[email protected]>
|
||||
|
||||
* machine.config: added Mono.Data.SybaseClient
|
||||
to DbProviderFactories section.
|
||||
|
||||
2008-09-02 Atsushi Enomoto <[email protected]>
|
||||
|
||||
* web.config: added System.Web.Extensions.dll to assemblies.
|
||||
|
||||
2008-08-28 Zoltan Varga <[email protected]>
|
||||
|
||||
* machine.config: Fix syntax error.
|
||||
|
||||
2008-03-23 Dean Brettle <[email protected]>
|
||||
|
||||
* Makefile.am: added Browsers/Compat.browser
|
||||
|
||||
2008-02-29 Marek Habersack <[email protected]>
|
||||
|
||||
* machine.config: added an entry to ignore the browserCaps section.
|
||||
|
||||
2007-12-15 Marek Habersack <[email protected]>
|
||||
|
||||
* web.config: compilation/compilers are no longer necessary.
|
||||
|
||||
2007-12-08 Marek Habersack <[email protected]>
|
||||
|
||||
* machine.config: updated the LocalSqlServer connection string to
|
||||
match MS.NET and added a new connection string, LocalSqliteServer,
|
||||
to be used by default on Unix.
|
||||
Updated the AspNetSqlMembershipProvider definition to match
|
||||
MS.NET.
|
||||
|
||||
* settings.map: added
|
||||
|
||||
* Makefile.am: added settings.map
|
||||
|
||||
2007-10-17 Atsushi Enomoto <[email protected]>
|
||||
|
||||
* web.config, machine.config: moved webSerices section from former
|
||||
to latter.
|
||||
|
||||
2007-09-05 Atsushi Enomoto <[email protected]>
|
||||
|
||||
* machine.config : added WCF sectionGroups.
|
||||
|
||||
2007-09-04 Marek Habersack <[email protected]>
|
||||
|
||||
* machine.config: added an entry to ignore the <system.webServer>
|
||||
section. Fixes bug #82535
|
||||
|
||||
2007-07-03 Marek Habersack <[email protected]>
|
||||
|
||||
* DefaultWsdlHelpGenerator.aspx: make head server-side, for the
|
||||
service generator to run on sites which use stylesheet themes
|
||||
configured in web.config. Fixes bug #81994
|
||||
|
||||
2007-05-01 Marek Habersack <[email protected]>
|
||||
|
||||
* machine.config: added standard data provider factories, or
|
||||
otherwise the SqlDataSource tests will fail.
|
||||
|
||||
2007-04-27 Atsushi Enomoto <[email protected]>
|
||||
|
||||
* DefaultWsdlHelpGenerator.aspx :
|
||||
ProfileViolations could be null, when there is no Binding. So,
|
||||
don't omit null check.
|
||||
|
||||
Stop your bad habit of missing ChangeLog. Former changes (as long
|
||||
as logged) can be seen in ../../ChangeLog.
|
||||
@@ -0,0 +1,9 @@
|
||||
2009-08-06 Atsushi Enomoto <[email protected]>
|
||||
|
||||
* web.config: add WCF assemblies as references at compilation.
|
||||
* machine.config: add some missing WCF sections (new in 3.5).
|
||||
|
||||
2009-07-24 Jb Evain <[email protected]>
|
||||
|
||||
* Initial import of the net_4_0 specific files.
|
||||
|
||||
+133
@@ -0,0 +1,133 @@
|
||||
2010-04-06 Andreia Gaita <[email protected]>
|
||||
|
||||
* Makefile.am: fix distcheck - several targets get built on the
|
||||
srcdir, which has no write permissions on make distcheck, so make
|
||||
sure permissions are set
|
||||
|
||||
2009-12-22 Jo Shields <[email protected]>
|
||||
* HtmlAgilityPack/LICENSE: Include upstream license (Ms-PL) since the
|
||||
file headers don't specify it
|
||||
|
||||
2009-12-22 Jo Shields <[email protected]>
|
||||
|
||||
* HtmlAgilityPack/*: Bundle HtmlAgilityPack 1.4~beta2 from
|
||||
http://www.codeplex.com/htmlagilitypack in source form.
|
||||
|
||||
* AgilityPack.dll: Remove binary assembly, use source instead.
|
||||
|
||||
* docs.make Makefile.am README: Reflect above changes
|
||||
|
||||
2009-02-12 Zoltan Varga <[email protected]>
|
||||
|
||||
* Makefile.am (EXTRA_DIST): Remove removed files.
|
||||
|
||||
* README: Point to the documentation on the wiki.
|
||||
|
||||
* call-sites.txt: Remove this, its contents is in jit-trampolines.
|
||||
|
||||
* memory-management.txt thread-safety.txt aot-compiler.txt jit-regalloc
|
||||
exception-handling.txt: Remove documents which are now on the wiki.
|
||||
|
||||
2009-02-11 Rodrigo Kumpera <[email protected]>
|
||||
|
||||
* thread-safety.txt: Improve the docs about image lock.
|
||||
|
||||
2009-02-11 Rodrigo Kumpera <[email protected]>
|
||||
|
||||
* thread-safety.txt: Document the new image lock.
|
||||
|
||||
2008-12-12 Mark Probst <[email protected]>
|
||||
|
||||
* mini-porting.txt: Added some details about function descriptors
|
||||
and emulated opcodes.
|
||||
|
||||
2008-12-08 Jonathan Pryor <[email protected]>
|
||||
|
||||
* mono-file-formats.source, mono-tools.source: Place these under the
|
||||
new "Commands and Files" node, and remove nay intermediate nodes.
|
||||
|
||||
2008-11-20 Jonathan Pryor <[email protected]>
|
||||
|
||||
* Makefile.am (sources_DATA): Add mono-file-formats.source,
|
||||
mono-tools.source.
|
||||
|
||||
2008-11-20 Raja R Harinath <[email protected]>
|
||||
|
||||
Remove unnecessary rebuilds of the html directory
|
||||
* docs.make (monoapi.zip): Make slightly more unforgiving, by
|
||||
using '&&' instead of ';' to sequence commands.
|
||||
(mono-tools.zip, mono-file-formats.zip): Likewise.
|
||||
* Makefile.am (monoapi.zip, mono-tools.zip, mono-fileformats.zip):
|
||||
Likewise.
|
||||
(convert.exe): Don't depend on Makefile.am or docs.make.
|
||||
|
||||
2008-11-19 Raja R Harinath <[email protected]>
|
||||
|
||||
Fix srcdir != builddir, and add idiom for multi-output commands
|
||||
* docs.make (monoapi.zip): Handle the case where 'monoapi.tree'
|
||||
exists but 'monoapi.zip' doesn't. IOW, we should rebuild
|
||||
monoapi.zip with 'rm monoapi.zip; make'.
|
||||
(mono-tools.zip, mono-file-formats.zip): Likewise.
|
||||
* Makefile.am (monoapi.zip, mono-tools.zip, mono-fileformats.zip):
|
||||
Likewise.
|
||||
(monoapi.tree): Don't use $< in an explicit rule.
|
||||
(mono-tools.tree, mono-file-formats.tree): Likewise.
|
||||
|
||||
2008-11-18 Jonathan Pryor <[email protected]>
|
||||
|
||||
* Makefile.am (EXTRA_DIST): Add mono-file-formats{.config,.source} and
|
||||
mono-tools{.config,.source} (fixes the build).
|
||||
|
||||
2008-11-18 Jonathan Pryor <[email protected]>
|
||||
|
||||
* docs.make, Makefile.am: Build mono-file-formats{.tree,.zip},
|
||||
mono-tool{.tree,.zip} files.
|
||||
* mono-file-formats.config, mono-tools.config: Alter paths to man
|
||||
pages so that they're valid for building from mono/docs.
|
||||
* monoapi.make: Rename to docs.make.
|
||||
|
||||
2008-11-01 Raja R Harinath <[email protected]>
|
||||
|
||||
* Makefile.am: Clean up for srcdir != builddir.
|
||||
(deploy/.stamp): Compute location of 'mono-wrapper' and pass to exdoc.
|
||||
* exdoc (mono-wrapper): Use $runtimedir to look for 'mono-wrapper'.
|
||||
|
||||
2008-10-31 Jonathan Pryor <[email protected]>
|
||||
|
||||
* check, Makefile.am (EXTRA_DIST): Rename to check-exports. This was
|
||||
needed to fix `make distdir...`, because (1) with a file named
|
||||
`check` which (2) was listed in $(EXTRA_DIST), while (3) `check` is
|
||||
ALSO a .PHONY target, this caused make to look for the `check` file,
|
||||
not find it due to (3), and then proceed to try to build convert.exe
|
||||
from convert.cs...for reasons I don't care about. This obviously
|
||||
can't work during `make distdir`, as mcs hasn't been built yet, thus
|
||||
leading to pain, suffering, and a broken build.
|
||||
|
||||
2008-10-30 Jonathan Pryor <[email protected]>
|
||||
|
||||
* . (svn:ignore), deploy (svn:ignore): Ignore generated files.
|
||||
* AgilityPack.dll, api-style.css, ChangeLog, check, check-coverage,
|
||||
convert.cs, current-api, deploy, documented, exdoc, ignore,
|
||||
mono-api-metadata.html, monoapi.source, produce-lists, public,
|
||||
public-api, README, sources, toc.xml, TODO, wapi: Copy from
|
||||
../mono/docscripts.
|
||||
* exdoc: Use the in-tree mono program to run convert.exe.
|
||||
* Makefile.am: Mention files to clean/distribute; extract
|
||||
documentation (with exdoc) and then assemble documentation (with
|
||||
monoapi.make's assemble target) for use by monodoc.
|
||||
* monoapi.make: Added; Makefile to use mcs' buid/rules.make to compile
|
||||
convert.cs and assemble documentation. (This is a separate file so
|
||||
that we can include mcs' build/rules.make, which needs topdir set to
|
||||
behave properly BUT must be $(mcs_topdir) from Makefile.am's
|
||||
perspective.)
|
||||
* monoapi.source: Add a /monodoc/node element for use with monodoc 2.2.
|
||||
|
||||
2006-11-19 Miguel de Icaza <[email protected]>
|
||||
|
||||
* exdoc: Move to use CSS instead of tables, this will break
|
||||
GtkHTML rendering.
|
||||
|
||||
* ignore: Updated with more hidden APIs.
|
||||
|
||||
* Bunch of documentation work.
|
||||
|
||||
@@ -17,8 +17,10 @@ EXTRA_DIST = \
|
||||
check-exports \
|
||||
check-coverage \
|
||||
convert.cs \
|
||||
current-api \
|
||||
deploy \
|
||||
docs.make \
|
||||
documented \
|
||||
embedded-api \
|
||||
exdoc \
|
||||
file-share-modes \
|
||||
@@ -41,6 +43,8 @@ EXTRA_DIST = \
|
||||
object-layout \
|
||||
precise-gc \
|
||||
produce-lists \
|
||||
public \
|
||||
public-api \
|
||||
README \
|
||||
remoting \
|
||||
ssapre.txt \
|
||||
|
||||
+36
-176
@@ -1,180 +1,40 @@
|
||||
.mapi-docs {
|
||||
line-height: 1.5;
|
||||
padding-left: 2em;
|
||||
padding-right: 2em;
|
||||
}
|
||||
.mapi-docs p {
|
||||
max-width: 60em;
|
||||
}
|
||||
.mapi-docs .mapi-body {
|
||||
max-width: 60em;
|
||||
}
|
||||
.mapi-docs code {
|
||||
border: 1px solid rgba(214,214,214,1);
|
||||
background-color: rgba(249,249,249,1);
|
||||
padding: 0.1em 0.5em;
|
||||
}
|
||||
.mapi-description code {
|
||||
font-family: "Consolas", "Courier", monospace;
|
||||
border: 1px solid rgba(214,214,214,1);
|
||||
background-color: rgba(249,249,249,1);
|
||||
padding: 0.1em 0.2em;
|
||||
}
|
||||
h3 {
|
||||
font-size: 18px;
|
||||
padding-bottom: 4pt;
|
||||
border-bottom: 2px solid #dddddd;
|
||||
}
|
||||
|
||||
.api {
|
||||
border: 1px solid;
|
||||
padding: 10pt;
|
||||
margin: 10pt;
|
||||
}
|
||||
|
||||
.mapi-header {
|
||||
padding: 0 0 5pt 5pt;
|
||||
margin: 10pt;
|
||||
white-space: pre;
|
||||
font-family: monospace;
|
||||
border: 1px solid rgba(233,233,233,1);
|
||||
background-color: rgba(249,249,249,1);
|
||||
}
|
||||
.api-entry {
|
||||
border-bottom: none;
|
||||
font-size: 18px;
|
||||
}
|
||||
|
||||
.mapi-code {
|
||||
padding: 5pt 5pt;
|
||||
margin: 10pt;
|
||||
white-space: pre;
|
||||
font-family: monospace;
|
||||
border: 1px solid rgba(233,233,233,1);
|
||||
background-color: rgba(249,249,249,1);
|
||||
}
|
||||
.prototype {
|
||||
border: 1px solid;
|
||||
background-color: #f2f2f2;
|
||||
padding: 5pt;
|
||||
margin-top: 5pt;
|
||||
margin-bottom: 5pt;
|
||||
}
|
||||
|
||||
.mapi-code:first-line {
|
||||
line-height: 0px;
|
||||
}
|
||||
|
||||
.mapi-entry code {
|
||||
border: none;
|
||||
background-color: transparent;
|
||||
}
|
||||
.header {
|
||||
border: 1px solid;
|
||||
padding: 0 0 5pt 5pt;
|
||||
margin: 10pt;
|
||||
white-space: pre;
|
||||
font-family: monospace;
|
||||
}
|
||||
|
||||
.mapi-parameters {
|
||||
border-collapse: collapse;
|
||||
border-spacing: 0;
|
||||
empty-cells: hide;
|
||||
border: 0;
|
||||
margin: 5px 0 26px;
|
||||
}
|
||||
|
||||
.mapi-parameters td {
|
||||
border: 1px solid rgba(214,214,214,1);
|
||||
border-left-style: none;
|
||||
padding: 5px 25px 5px 10px;
|
||||
}
|
||||
|
||||
.mapi-parameters tr>td:last-child {
|
||||
border-right: 0;
|
||||
}
|
||||
|
||||
.mapi-parameters td:first-of-type {
|
||||
text-align: right;
|
||||
padding: 7px;
|
||||
vertical-align: top;
|
||||
word-break: normal;
|
||||
width: 40px;
|
||||
}
|
||||
|
||||
.mapi-parameters tr:last-child>td {
|
||||
border-bottom: 0;
|
||||
}
|
||||
|
||||
.mapi-parameters tr:first-child>td {
|
||||
border-top: 0;
|
||||
}
|
||||
|
||||
.mapi-parameters tr td:first-of-type {
|
||||
text-align: right;
|
||||
padding: 7px;
|
||||
vertical-align: top;
|
||||
word-break: normal;
|
||||
width: 40px;
|
||||
}
|
||||
|
||||
.mapi {
|
||||
left: -25px;
|
||||
margin: 0;
|
||||
padding: 13px 25px 0;
|
||||
position: relative;
|
||||
width: 100%;
|
||||
}
|
||||
|
||||
.mapi-description {
|
||||
background: rgba(249,249,249,1);
|
||||
border-bottom: 1px solid rgba(233,233,233,1);
|
||||
left: -25px;
|
||||
margin: 0;
|
||||
padding: 13px 25px 0;
|
||||
position: relative;
|
||||
width: 100%;
|
||||
}
|
||||
|
||||
.mapi-entry {
|
||||
background: transparent;
|
||||
}
|
||||
|
||||
.mapi-docs {
|
||||
}
|
||||
|
||||
.mapi-prototype {
|
||||
border-left: 5px solid rgba(205,233,244,1);
|
||||
padding: .5em;
|
||||
margin-top: 5pt;
|
||||
margin-bottom: 5pt;
|
||||
font-family: "Consolas", "Courier", monospace;
|
||||
display: block;
|
||||
overflow: auto;
|
||||
background-color: #f9f9f9;
|
||||
}
|
||||
|
||||
.mapi-declaration {
|
||||
margin-top: 21px;
|
||||
}
|
||||
|
||||
.mapi-section {
|
||||
font-size: smaller;
|
||||
font-weight: bold;
|
||||
margin-top: 21px;
|
||||
line-height: 1.5;
|
||||
}
|
||||
|
||||
.mapi-strike {
|
||||
text-decoration: line-through;
|
||||
}
|
||||
|
||||
.mapi-deprecated {
|
||||
color: red;
|
||||
}
|
||||
|
||||
.mapi-ptr-container {
|
||||
background: white;
|
||||
border-bottom: 1px solid rgba(233,233,233,1);
|
||||
left: -25px;
|
||||
padding-left: 25px;
|
||||
padding-right: 25px;
|
||||
padding-bottom: 13px;
|
||||
position: relative;
|
||||
width: 100%;
|
||||
}
|
||||
|
||||
.mapi-ptr {
|
||||
background: rgba(249,249,249,1);
|
||||
border-left: 1px solid rgba(233,233,233,1);
|
||||
border-top: 1px solid rgba(233,233,233,1);
|
||||
height: 12px;
|
||||
left: 37px;
|
||||
top: -7px;
|
||||
-webkit-transform: rotate(45deg);
|
||||
-moz-transform: rotate(45deg);
|
||||
-o-transform: rotate(45deg);
|
||||
transform: rotate(45deg);
|
||||
position: absolute;
|
||||
width: 12px;
|
||||
}
|
||||
|
||||
.mapi-height-container {
|
||||
left: -25px;
|
||||
padding: 0 25px;
|
||||
position: relative;
|
||||
width: 100%;
|
||||
}
|
||||
|
||||
.code {
|
||||
border: 1px solid;
|
||||
padding: 0 0 5pt 5pt;
|
||||
margin: 10pt;
|
||||
white-space: pre;
|
||||
font-family: monospace;
|
||||
}
|
||||
@@ -0,0 +1,949 @@
|
||||
dlfree
|
||||
dlmalloc
|
||||
dlmemalign
|
||||
free_list_index_of
|
||||
g_printerr
|
||||
g_ptr_array_remove_fast
|
||||
invoke_protected_memory_method
|
||||
mini_debugger_init
|
||||
mini_debugger_main
|
||||
mini_debugger_set_attach_ok
|
||||
mini_debug_running_inside_mdb
|
||||
mini_emit_initobj
|
||||
mini_emit_stobj
|
||||
mono_add_internal_call
|
||||
mono_aot_register_globals
|
||||
mono_aot_register_module
|
||||
mono_array_addr_with_size
|
||||
mono_array_class_get
|
||||
mono_array_clone
|
||||
mono_array_element_size
|
||||
mono_array_length
|
||||
mono_array_new
|
||||
mono_array_new_full
|
||||
mono_array_new_specific
|
||||
mono_assemblies_cleanup
|
||||
mono_assembly_close
|
||||
mono_assembly_get_image
|
||||
mono_assembly_get_main
|
||||
mono_assembly_get_object
|
||||
mono_assembly_getrootdir
|
||||
mono_assembly_load
|
||||
mono_assembly_loaded
|
||||
mono_assembly_loaded_full
|
||||
mono_assembly_load_full
|
||||
mono_assembly_name_free
|
||||
mono_assembly_name_get_culture
|
||||
mono_assembly_name_get_name
|
||||
mono_assembly_name_get_pubkeytoken
|
||||
mono_assembly_name_get_version
|
||||
mono_assembly_name_new
|
||||
mono_assembly_names_equal
|
||||
mono_assembly_open
|
||||
mono_bitset_alloc_size
|
||||
mono_bitset_clear
|
||||
mono_bitset_clear_all
|
||||
mono_bitset_clone
|
||||
mono_bitset_copyto
|
||||
mono_bitset_count
|
||||
mono_bitset_equal
|
||||
mono_bitset_find_first
|
||||
mono_bitset_find_first_unset
|
||||
mono_bitset_find_last
|
||||
mono_bitset_find_start
|
||||
mono_bitset_foreach
|
||||
mono_bitset_free
|
||||
mono_bitset_intersection
|
||||
mono_bitset_intersection_2
|
||||
mono_bitset_invert
|
||||
mono_bitset_mem_new
|
||||
mono_bitset_new
|
||||
mono_bitset_set
|
||||
mono_bitset_set_all
|
||||
mono_bitset_size
|
||||
mono_bitset_sub
|
||||
mono_bitset_test
|
||||
mono_bitset_test_bulk
|
||||
mono_bitset_union
|
||||
mono_bounded_array_class_get
|
||||
mono_breakpoint_clean_code
|
||||
mono_check_corlib_version
|
||||
mono_class_array_element_size
|
||||
mono_class_data_size
|
||||
mono_class_describe_statics
|
||||
mono_class_enum_basetype
|
||||
mono_class_from_generic_parameter
|
||||
mono_class_from_mono_type
|
||||
mono_class_from_name
|
||||
mono_class_from_name_case
|
||||
mono_class_from_typeref
|
||||
mono_class_get
|
||||
mono_class_get_byref_type
|
||||
mono_class_get_element_class
|
||||
mono_class_get_events
|
||||
mono_class_get_event_token
|
||||
mono_class_get_field
|
||||
mono_class_get_field_from_name
|
||||
mono_class_get_fields
|
||||
mono_class_get_field_token
|
||||
mono_class_get_flags
|
||||
mono_class_get_full
|
||||
mono_class_get_image
|
||||
mono_class_get_interfaces
|
||||
mono_class_get_method_from_name
|
||||
mono_class_get_method_from_name_flags
|
||||
mono_class_get_methods
|
||||
mono_class_get_name
|
||||
mono_class_get_namespace
|
||||
mono_class_get_nested_types
|
||||
mono_class_get_nesting_type
|
||||
mono_class_get_parent
|
||||
mono_class_get_properties
|
||||
mono_class_get_property_from_name
|
||||
mono_class_get_property_token
|
||||
mono_class_get_rank
|
||||
mono_class_get_type
|
||||
mono_class_get_type_token
|
||||
mono_class_inflate_generic_method
|
||||
mono_class_inflate_generic_type
|
||||
mono_class_init
|
||||
mono_class_instance_size
|
||||
mono_class_interface_offset
|
||||
mono_class_is_assignable_from
|
||||
mono_class_is_enum
|
||||
mono_class_is_subclass_of
|
||||
mono_class_is_valid_enum
|
||||
mono_class_is_valuetype
|
||||
mono_class_min_align
|
||||
mono_class_name_from_token
|
||||
mono_class_num_events
|
||||
mono_class_num_fields
|
||||
mono_class_num_methods
|
||||
mono_class_num_properties
|
||||
mono_class_value_size
|
||||
mono_class_vtable
|
||||
mono_cli_rva_image_map
|
||||
mono_code_manager_commit
|
||||
mono_code_manager_destroy
|
||||
mono_code_manager_foreach
|
||||
mono_code_manager_invalidate
|
||||
mono_code_manager_new
|
||||
mono_code_manager_new_dynamic
|
||||
mono_code_manager_reserve
|
||||
mono_code_manager_reserve_align
|
||||
mono_code_manager_set_read_only
|
||||
mono_code_manager_size
|
||||
mono_compile_method
|
||||
mono_config_for_assembly
|
||||
mono_config_parse
|
||||
mono_config_parse_memory
|
||||
mono_config_string_for_assembly_file
|
||||
mono_context_get
|
||||
mono_context_get_desc
|
||||
mono_context_set
|
||||
mono_counters_cleanup
|
||||
mono_counters_dump
|
||||
mono_counters_enable
|
||||
mono_counters_register
|
||||
mono_custom_attrs_construct
|
||||
mono_custom_attrs_free
|
||||
mono_custom_attrs_from_assembly
|
||||
mono_custom_attrs_from_class
|
||||
mono_custom_attrs_from_event
|
||||
mono_custom_attrs_from_field
|
||||
mono_custom_attrs_from_index
|
||||
mono_custom_attrs_from_method
|
||||
mono_custom_attrs_from_param
|
||||
mono_custom_attrs_from_property
|
||||
mono_custom_attrs_get_attr
|
||||
mono_custom_attrs_has_attr
|
||||
mono_debug_add_method
|
||||
_mono_debug_address_from_il_offset
|
||||
mono_debug_close_image
|
||||
mono_debug_close_mono_symbol_file
|
||||
mono_debug_domain_create
|
||||
mono_debug_domain_unload
|
||||
mono_debug_find_method
|
||||
mono_debug_free_source_location
|
||||
mono_debugger_abort_runtime_invoke
|
||||
mono_debugger_breakpoint_callback
|
||||
mono_debugger_call_exception_handler
|
||||
mono_debugger_check_breakpoints
|
||||
mono_debugger_check_interruption
|
||||
mono_debugger_check_runtime_version
|
||||
mono_debugger_class_initialized
|
||||
mono_debugger_event
|
||||
mono_debugger_event_create_appdomain
|
||||
mono_debugger_event_unload_appdomain
|
||||
mono_debugger_extended_notification
|
||||
mono_debugger_handle_exception
|
||||
mono_debugger_insert_breakpoint
|
||||
mono_debugger_insert_breakpoint_full
|
||||
mono_debugger_insert_method_breakpoint
|
||||
mono_debugger_lock
|
||||
mono_debugger_method_has_breakpoint
|
||||
MONO_DEBUGGER__notification_function
|
||||
mono_debugger_register_class_init_callback
|
||||
mono_debugger_remove_breakpoint
|
||||
mono_debugger_remove_class_init_callback
|
||||
mono_debugger_remove_method_breakpoint
|
||||
mono_debugger_run_finally
|
||||
mono_debugger_runtime_invoke
|
||||
mono_debugger_thread_cleanup
|
||||
mono_debugger_thread_created
|
||||
_mono_debugger_throw_exception
|
||||
mono_debugger_trampoline_compiled
|
||||
_mono_debugger_unhandled_exception
|
||||
mono_debugger_unlock
|
||||
mono_debug_il_offset_from_address
|
||||
mono_debug_list_add
|
||||
mono_debug_list_remove
|
||||
mono_debug_lookup_locals
|
||||
mono_debug_lookup_method
|
||||
mono_debug_lookup_method_addresses
|
||||
mono_debug_lookup_source_location
|
||||
mono_debug_open_image_from_memory
|
||||
mono_debug_open_mono_symbols
|
||||
mono_debug_print_stack_frame
|
||||
mono_debug_print_vars
|
||||
mono_debug_symfile_get_line_numbers
|
||||
mono_debug_symfile_lookup_locals
|
||||
mono_debug_symfile_lookup_location
|
||||
mono_debug_symfile_lookup_method
|
||||
mono_debug_using_mono_debugger
|
||||
mono_declsec_flags_from_assembly
|
||||
mono_declsec_flags_from_class
|
||||
mono_declsec_flags_from_method
|
||||
mono_declsec_get_assembly_action
|
||||
mono_declsec_get_class_action
|
||||
mono_declsec_get_demands
|
||||
mono_declsec_get_inheritdemands_class
|
||||
mono_declsec_get_inheritdemands_method
|
||||
mono_declsec_get_linkdemands
|
||||
mono_declsec_get_method_action
|
||||
mono_digest_get_public_token
|
||||
mono_disasm_code
|
||||
mono_disasm_code_one
|
||||
mono_dllmap_insert
|
||||
mono_domain_assembly_open
|
||||
mono_domain_create
|
||||
mono_domain_create_appdomain
|
||||
mono_domain_finalize
|
||||
mono_domain_foreach
|
||||
mono_domain_free
|
||||
mono_domain_from_appdomain
|
||||
mono_domain_get
|
||||
mono_domain_get_by_id
|
||||
mono_domain_get_id
|
||||
mono_domain_has_type_resolve
|
||||
mono_domain_is_unloading
|
||||
mono_domain_owns_vtable_slot
|
||||
mono_domain_set
|
||||
mono_domain_set_internal
|
||||
mono_domain_try_type_resolve
|
||||
mono_domain_try_unload
|
||||
mono_domain_unload
|
||||
mono_emit_native_call
|
||||
mono_environment_exitcode_get
|
||||
mono_environment_exitcode_set
|
||||
mono_error_cleanup
|
||||
mono_error_get_error_code
|
||||
mono_error_get_message
|
||||
mono_error_init
|
||||
mono_error_init_flags
|
||||
mono_error_ok
|
||||
mono_escape_uri_string
|
||||
mono_event_get_add_method
|
||||
mono_event_get_flags
|
||||
mono_event_get_name
|
||||
mono_event_get_object
|
||||
mono_event_get_parent
|
||||
mono_event_get_raise_method
|
||||
mono_event_get_remove_method
|
||||
mono_exception_from_name
|
||||
mono_exception_from_name_domain
|
||||
mono_exception_from_name_msg
|
||||
mono_exception_from_name_two_strings
|
||||
mono_exception_from_token
|
||||
mono_exception_from_token_two_strings
|
||||
mono_field_from_token
|
||||
mono_field_full_name
|
||||
mono_field_get_data
|
||||
mono_field_get_flags
|
||||
mono_field_get_name
|
||||
mono_field_get_object
|
||||
mono_field_get_offset
|
||||
mono_field_get_parent
|
||||
mono_field_get_type
|
||||
mono_field_get_value
|
||||
mono_field_get_value_object
|
||||
mono_field_set_value
|
||||
mono_field_static_get_value
|
||||
mono_field_static_set_value
|
||||
mono_file_map
|
||||
mono_file_map_close
|
||||
mono_file_map_fd
|
||||
mono_file_map_open
|
||||
mono_file_map_size
|
||||
mono_file_unmap
|
||||
mono_free
|
||||
mono_free_bstr
|
||||
mono_free_method
|
||||
mono_free_verify_list
|
||||
mono_gc_collect
|
||||
mono_gc_collection_count
|
||||
mono_gc_get_generation
|
||||
mono_gc_get_heap_size
|
||||
mono_gc_get_used_size
|
||||
mono_gchandle_free
|
||||
mono_gchandle_get_target
|
||||
mono_gchandle_new
|
||||
mono_gchandle_new_weakref
|
||||
mono_gc_invoke_finalizers
|
||||
mono_gc_max_generation
|
||||
mono_gc_wbarrier_arrayref_copy
|
||||
mono_gc_wbarrier_generic_nostore
|
||||
mono_gc_wbarrier_generic_store
|
||||
mono_gc_wbarrier_generic_store_atomic
|
||||
mono_gc_wbarrier_object_copy
|
||||
mono_gc_wbarrier_set_arrayref
|
||||
mono_gc_wbarrier_set_field
|
||||
mono_gc_wbarrier_value_copy
|
||||
mono_get_array_class
|
||||
mono_get_boolean_class
|
||||
mono_get_byte_class
|
||||
mono_get_char_class
|
||||
mono_get_config_dir
|
||||
mono_get_corlib
|
||||
mono_get_dbnull_object
|
||||
mono_get_delegate_invoke
|
||||
mono_get_double_class
|
||||
mono_get_enum_class
|
||||
mono_get_exception_appdomain_unloaded
|
||||
mono_get_exception_argument
|
||||
mono_get_exception_argument_null
|
||||
mono_get_exception_argument_out_of_range
|
||||
mono_get_exception_arithmetic
|
||||
mono_get_exception_array_type_mismatch
|
||||
mono_get_exception_bad_image_format
|
||||
mono_get_exception_bad_image_format2
|
||||
mono_get_exception_cannot_unload_appdomain
|
||||
mono_get_exception_class
|
||||
mono_get_exception_divide_by_zero
|
||||
mono_get_exception_execution_engine
|
||||
mono_get_exception_field_access
|
||||
mono_get_exception_file_not_found
|
||||
mono_get_exception_file_not_found2
|
||||
mono_get_exception_index_out_of_range
|
||||
mono_get_exception_invalid_cast
|
||||
mono_get_exception_invalid_operation
|
||||
mono_get_exception_io
|
||||
mono_get_exception_method_access
|
||||
mono_get_exception_missing_field
|
||||
mono_get_exception_missing_method
|
||||
mono_get_exception_not_implemented
|
||||
mono_get_exception_not_supported
|
||||
mono_get_exception_null_reference
|
||||
mono_get_exception_out_of_memory
|
||||
mono_get_exception_overflow
|
||||
mono_get_exception_reflection_type_load
|
||||
mono_get_exception_security
|
||||
mono_get_exception_serialization
|
||||
mono_get_exception_stack_overflow
|
||||
mono_get_exception_synchronization_lock
|
||||
mono_get_exception_thread_abort
|
||||
mono_get_exception_thread_interrupted
|
||||
mono_get_exception_thread_state
|
||||
mono_get_exception_type_initialization
|
||||
mono_get_exception_type_load
|
||||
mono_get_int16_class
|
||||
mono_get_int32_class
|
||||
mono_get_int64_class
|
||||
mono_get_intptr_class
|
||||
mono_get_machine_config
|
||||
mono_get_method
|
||||
mono_get_method_full
|
||||
mono_get_object_class
|
||||
mono_get_root_domain
|
||||
mono_get_sbyte_class
|
||||
mono_get_single_class
|
||||
mono_get_string_class
|
||||
mono_get_thread_class
|
||||
mono_get_trampoline_func
|
||||
mono_get_uint16_class
|
||||
mono_get_uint32_class
|
||||
mono_get_uint64_class
|
||||
mono_get_uintptr_class
|
||||
mono_get_void_class
|
||||
mono_g_hash_table_destroy
|
||||
mono_g_hash_table_find
|
||||
mono_g_hash_table_foreach
|
||||
mono_g_hash_table_foreach_remove
|
||||
mono_g_hash_table_insert
|
||||
mono_g_hash_table_lookup
|
||||
mono_g_hash_table_lookup_extended
|
||||
mono_g_hash_table_new
|
||||
mono_g_hash_table_new_full
|
||||
mono_g_hash_table_new_type
|
||||
mono_g_hash_table_remove
|
||||
mono_g_hash_table_replace
|
||||
mono_g_hash_table_size
|
||||
mono_guid_to_string
|
||||
mono_hazard_pointer_get
|
||||
mono_image_addref
|
||||
mono_image_close
|
||||
mono_image_ensure_section
|
||||
mono_image_ensure_section_idx
|
||||
mono_image_fixup_vtable
|
||||
mono_image_get_assembly
|
||||
mono_image_get_entry_point
|
||||
mono_image_get_filename
|
||||
mono_image_get_guid
|
||||
mono_image_get_name
|
||||
mono_image_get_public_key
|
||||
mono_image_get_resource
|
||||
mono_image_get_strong_name
|
||||
mono_image_get_table_info
|
||||
mono_image_get_table_rows
|
||||
mono_image_has_authenticode_entry
|
||||
mono_image_is_dynamic
|
||||
mono_image_loaded
|
||||
mono_image_loaded_by_guid
|
||||
mono_image_loaded_by_guid_full
|
||||
mono_image_loaded_full
|
||||
mono_image_load_file_for_image
|
||||
mono_image_lookup_resource
|
||||
mono_image_open
|
||||
mono_image_open_from_data
|
||||
mono_image_open_from_data_full
|
||||
mono_image_open_from_data_with_name
|
||||
mono_image_open_full
|
||||
mono_image_rva_map
|
||||
mono_images_cleanup
|
||||
mono_image_strerror
|
||||
mono_image_strong_name_position
|
||||
mono_init
|
||||
mono_init_from_assembly
|
||||
mono_init_version
|
||||
mono_install_assembly_load_hook
|
||||
mono_install_assembly_postload_refonly_search_hook
|
||||
mono_install_assembly_postload_search_hook
|
||||
mono_install_assembly_preload_hook
|
||||
mono_install_assembly_refonly_preload_hook
|
||||
mono_install_assembly_refonly_search_hook
|
||||
mono_install_assembly_search_hook
|
||||
mono_install_runtime_cleanup
|
||||
mono_install_threadpool_item_hooks
|
||||
mono_install_threadpool_thread_hooks
|
||||
mono_inst_name
|
||||
mono_is_debugger_attached
|
||||
mono_jit_cleanup
|
||||
mono_jit_exec
|
||||
mono_jit_info_get_code_size
|
||||
mono_jit_info_get_code_start
|
||||
mono_jit_info_get_method
|
||||
mono_jit_info_table_find
|
||||
mono_jit_init
|
||||
mono_jit_init_version
|
||||
mono_jit_parse_options
|
||||
mono_jit_set_aot_only
|
||||
mono_jit_set_trace_options
|
||||
mono_ldstr
|
||||
mono_ldtoken
|
||||
mono_llvm_build_aligned_load
|
||||
mono_llvm_build_alloca
|
||||
mono_llvm_build_load
|
||||
mono_llvm_create_ee
|
||||
mono_llvm_dispose_ee
|
||||
mono_llvm_dump_value
|
||||
mono_llvm_optimize_method
|
||||
mono_llvm_replace_uses_of
|
||||
mono_load_remote_field
|
||||
mono_load_remote_field_new
|
||||
mono_local_deadce
|
||||
mono_locks_dump
|
||||
mono_lookup_internal_call
|
||||
mono_lookup_pinvoke_call
|
||||
mono_main
|
||||
mono_marshal_string_to_utf16
|
||||
mono_md5_final
|
||||
mono_md5_get_digest
|
||||
mono_md5_get_digest_from_file
|
||||
mono_md5_init
|
||||
mono_md5_update
|
||||
mono_mempool_alloc
|
||||
mono_mempool_alloc0
|
||||
mono_mempool_contains_addr
|
||||
mono_mempool_destroy
|
||||
mono_mempool_empty
|
||||
mono_mempool_get_allocated
|
||||
mono_mempool_invalidate
|
||||
mono_mempool_new
|
||||
mono_mempool_new_size
|
||||
mono_mempool_stats
|
||||
mono_mempool_strdup
|
||||
mono_metadata_blob_heap
|
||||
mono_metadata_cleanup
|
||||
mono_metadata_compute_size
|
||||
mono_metadata_custom_attrs_from_index
|
||||
mono_metadata_declsec_from_index
|
||||
mono_metadata_decode_blob_size
|
||||
mono_metadata_decode_row
|
||||
mono_metadata_decode_row_col
|
||||
mono_metadata_decode_signed_value
|
||||
mono_metadata_decode_table_row
|
||||
mono_metadata_decode_table_row_col
|
||||
mono_metadata_decode_value
|
||||
mono_metadata_encode_value
|
||||
mono_metadata_events_from_typedef
|
||||
mono_metadata_field_info
|
||||
mono_metadata_field_info_with_mempool
|
||||
mono_metadata_free_array
|
||||
mono_metadata_free_inflated_signature
|
||||
mono_metadata_free_marshal_spec
|
||||
mono_metadata_free_method_signature
|
||||
mono_metadata_free_mh
|
||||
mono_metadata_free_type
|
||||
mono_metadata_generic_class_is_valuetype
|
||||
mono_metadata_get_constant_index
|
||||
mono_metadata_get_inflated_signature
|
||||
mono_metadata_get_marshal_info
|
||||
mono_metadata_guid_heap
|
||||
mono_metadata_implmap_from_method
|
||||
mono_metadata_interfaces_from_typedef
|
||||
mono_metadata_load_generic_params
|
||||
mono_metadata_locate
|
||||
mono_metadata_locate_token
|
||||
mono_metadata_methods_from_event
|
||||
mono_metadata_methods_from_property
|
||||
mono_metadata_nested_in_typedef
|
||||
mono_metadata_nesting_typedef
|
||||
mono_metadata_packing_from_typedef
|
||||
mono_metadata_parse_array
|
||||
mono_metadata_parse_custom_mod
|
||||
mono_metadata_parse_field_type
|
||||
mono_metadata_parse_marshal_spec
|
||||
mono_metadata_parse_method_signature
|
||||
mono_metadata_parse_method_signature_full
|
||||
mono_metadata_parse_mh
|
||||
mono_metadata_parse_mh_full
|
||||
mono_metadata_parse_param
|
||||
mono_metadata_parse_signature
|
||||
mono_metadata_parse_type
|
||||
mono_metadata_parse_typedef_or_ref
|
||||
mono_metadata_parse_type_full
|
||||
mono_metadata_properties_from_typedef
|
||||
mono_metadata_signature_alloc
|
||||
mono_metadata_signature_dup
|
||||
mono_metadata_signature_equal
|
||||
mono_metadata_string_heap
|
||||
mono_metadata_token_from_dor
|
||||
mono_metadata_translate_token_index
|
||||
mono_metadata_typedef_from_field
|
||||
mono_metadata_typedef_from_method
|
||||
mono_metadata_type_equal
|
||||
mono_metadata_type_hash
|
||||
mono_metadata_user_string
|
||||
mono_method_body_get_object
|
||||
mono_method_can_access_field
|
||||
mono_method_can_access_method
|
||||
mono_method_desc_free
|
||||
mono_method_desc_from_method
|
||||
mono_method_desc_full_match
|
||||
mono_method_desc_match
|
||||
mono_method_desc_new
|
||||
mono_method_desc_search_in_class
|
||||
mono_method_desc_search_in_image
|
||||
mono_method_full_name
|
||||
mono_method_get_class
|
||||
mono_method_get_flags
|
||||
mono_method_get_generic_container
|
||||
mono_method_get_header
|
||||
mono_method_get_index
|
||||
mono_method_get_last_managed
|
||||
mono_method_get_marshal_info
|
||||
mono_method_get_name
|
||||
mono_method_get_object
|
||||
mono_method_get_param_names
|
||||
mono_method_get_param_token
|
||||
mono_method_get_signature
|
||||
mono_method_get_signature_full
|
||||
mono_method_get_token
|
||||
mono_method_get_unmanaged_thunk
|
||||
mono_method_has_marshal_info
|
||||
mono_method_header_get_clauses
|
||||
mono_method_header_get_code
|
||||
mono_method_header_get_locals
|
||||
mono_method_header_get_num_clauses
|
||||
mono_method_signature
|
||||
mono_method_verify
|
||||
mono_mlist_alloc
|
||||
mono_mlist_append
|
||||
mono_mlist_get_data
|
||||
mono_mlist_last
|
||||
mono_mlist_length
|
||||
mono_mlist_next
|
||||
mono_mlist_prepend
|
||||
mono_mlist_remove_item
|
||||
mono_mlist_set_data
|
||||
mono_mlist_set_next
|
||||
mono_module_file_get_object
|
||||
mono_module_get_object
|
||||
mono_monitor_enter
|
||||
mono_monitor_exit
|
||||
mono_monitor_try_enter
|
||||
mono_mprotect
|
||||
mono_object_castclass_mbyref
|
||||
mono_object_clone
|
||||
mono_object_describe
|
||||
mono_object_describe_fields
|
||||
mono_object_get_class
|
||||
mono_object_get_domain
|
||||
mono_object_get_size
|
||||
mono_object_get_virtual_method
|
||||
mono_object_isinst
|
||||
mono_object_isinst_mbyref
|
||||
mono_object_new
|
||||
mono_object_new_alloc_specific
|
||||
mono_object_new_fast
|
||||
mono_object_new_from_token
|
||||
mono_object_new_specific
|
||||
mono_object_unbox
|
||||
mono_opcode_name
|
||||
mono_opcode_value
|
||||
mono_op_to_op_imm_noemul
|
||||
mono_pagesize
|
||||
mono_param_get_objects
|
||||
mono_parse_default_optimizations
|
||||
mono_path_canonicalize
|
||||
mono_path_resolve_symlinks
|
||||
mono_pe_file_open
|
||||
mono_perfcounters_init
|
||||
mono_personality
|
||||
mono_pmip
|
||||
mono_print_method_from_ip
|
||||
mono_print_thread_dump
|
||||
mono_print_thread_dump_from_ctx
|
||||
mono_print_unhandled_exception
|
||||
mono_profiler_coverage_get
|
||||
mono_profiler_get_events
|
||||
mono_profiler_install
|
||||
mono_profiler_install_allocation
|
||||
mono_profiler_install_appdomain
|
||||
mono_profiler_install_assembly
|
||||
mono_profiler_install_class
|
||||
mono_profiler_install_code_buffer_new
|
||||
mono_profiler_install_code_chunk_destroy
|
||||
mono_profiler_install_code_chunk_new
|
||||
mono_profiler_install_coverage_filter
|
||||
mono_profiler_install_enter_leave
|
||||
mono_profiler_install_exception
|
||||
mono_profiler_install_gc
|
||||
mono_profiler_install_gc_moves
|
||||
mono_profiler_install_iomap
|
||||
mono_profiler_install_jit_compile
|
||||
mono_profiler_install_jit_end
|
||||
mono_profiler_install_method_free
|
||||
mono_profiler_install_method_invoke
|
||||
mono_profiler_install_module
|
||||
mono_profiler_install_monitor
|
||||
mono_profiler_install_runtime_initialized
|
||||
mono_profiler_install_statistical
|
||||
mono_profiler_install_statistical_call_chain
|
||||
mono_profiler_install_thread
|
||||
mono_profiler_install_transition
|
||||
mono_profiler_load
|
||||
mono_profiler_set_events
|
||||
mono_property_get_flags
|
||||
mono_property_get_get_method
|
||||
mono_property_get_name
|
||||
mono_property_get_object
|
||||
mono_property_get_parent
|
||||
mono_property_get_set_method
|
||||
mono_property_get_value
|
||||
mono_property_hash_destroy
|
||||
mono_property_hash_insert
|
||||
mono_property_hash_lookup
|
||||
mono_property_hash_new
|
||||
mono_property_hash_remove_object
|
||||
mono_property_set_value
|
||||
mono_ptr_class_get
|
||||
mono_raise_exception
|
||||
mono_reflection_free_type_info
|
||||
mono_reflection_get_custom_attrs
|
||||
mono_reflection_get_custom_attrs_blob
|
||||
mono_reflection_get_custom_attrs_by_type
|
||||
mono_reflection_get_custom_attrs_data
|
||||
mono_reflection_get_custom_attrs_info
|
||||
mono_reflection_get_token
|
||||
mono_reflection_get_type
|
||||
mono_reflection_parse_type
|
||||
mono_reflection_type_from_name
|
||||
mono_register_bundled_assemblies
|
||||
mono_register_machine_config
|
||||
mono_replace_ins
|
||||
mono_runtime_class_init
|
||||
mono_runtime_cleanup
|
||||
mono_runtime_delegate_invoke
|
||||
mono_runtime_exec_main
|
||||
mono_runtime_exec_managed_code
|
||||
mono_runtime_get_main_args
|
||||
mono_runtime_init
|
||||
mono_runtime_invoke
|
||||
mono_runtime_invoke_array
|
||||
mono_runtime_is_shutting_down
|
||||
mono_runtime_object_init
|
||||
mono_runtime_quit
|
||||
mono_runtime_run_main
|
||||
mono_security_core_clr_require_elevated_permissions
|
||||
mono_security_enable_core_clr
|
||||
mono_security_set_core_clr_platform_callback
|
||||
mono_sem_post
|
||||
mono_sem_timedwait
|
||||
mono_sem_wait
|
||||
mono_set_break_policy
|
||||
mono_set_defaults
|
||||
mono_set_dirs
|
||||
mono_set_is_debugger_attached
|
||||
mono_set_signal_chaining
|
||||
mono_sha1_final
|
||||
mono_sha1_get_digest
|
||||
mono_sha1_get_digest_from_file
|
||||
mono_sha1_init
|
||||
mono_sha1_update
|
||||
mono_signature_explicit_this
|
||||
mono_signature_get_call_conv
|
||||
mono_signature_get_desc
|
||||
mono_signature_get_param_count
|
||||
mono_signature_get_params
|
||||
mono_signature_get_return_type
|
||||
mono_signature_hash
|
||||
mono_signature_is_instance
|
||||
mono_signature_vararg_start
|
||||
mono_signbit_double
|
||||
mono_signbit_float
|
||||
mono_stack_walk
|
||||
mono_stack_walk_no_il
|
||||
mono_store_remote_field
|
||||
mono_store_remote_field_new
|
||||
mono_string_chars
|
||||
mono_string_equal
|
||||
mono_string_from_bstr
|
||||
mono_string_from_utf16
|
||||
mono_string_hash
|
||||
mono_stringify_assembly_name
|
||||
mono_string_intern
|
||||
mono_string_is_interned
|
||||
mono_string_length
|
||||
mono_string_new
|
||||
mono_string_new_len
|
||||
mono_string_new_size
|
||||
mono_string_new_utf16
|
||||
mono_string_new_wrapper
|
||||
mono_string_to_utf16
|
||||
mono_string_to_utf8
|
||||
mono_table_info_get_rows
|
||||
mono_thread_attach
|
||||
mono_thread_cleanup
|
||||
mono_thread_create
|
||||
mono_thread_current
|
||||
mono_thread_detach
|
||||
mono_thread_exit
|
||||
mono_thread_get_main
|
||||
mono_thread_get_undeniable_exception
|
||||
mono_thread_hazardous_free_or_queue
|
||||
mono_thread_hazardous_try_free_all
|
||||
mono_thread_manage
|
||||
mono_thread_new_init
|
||||
mono_thread_set_main
|
||||
mono_thread_set_manage_callback
|
||||
mono_threads_get_default_stacksize
|
||||
mono_threads_install_cleanup
|
||||
mono_threads_request_thread_dump
|
||||
mono_threads_set_default_stacksize
|
||||
mono_thread_stop
|
||||
mono_trace_set_level_string
|
||||
mono_trace_set_mask_string
|
||||
mono_type_create_from_typespec
|
||||
mono_type_full_name
|
||||
mono_type_generic_inst_is_valuetype
|
||||
mono_type_get_array_type
|
||||
mono_type_get_class
|
||||
mono_type_get_desc
|
||||
mono_type_get_modifiers
|
||||
mono_type_get_name
|
||||
mono_type_get_object
|
||||
mono_type_get_ptr_type
|
||||
mono_type_get_signature
|
||||
mono_type_get_type
|
||||
mono_type_get_underlying_type
|
||||
mono_type_is_byref
|
||||
mono_type_is_pointer
|
||||
mono_type_is_reference
|
||||
mono_type_is_struct
|
||||
mono_type_is_valid_enum_basetype
|
||||
mono_type_is_void
|
||||
mono_type_size
|
||||
mono_type_stack_size
|
||||
mono_type_to_unmanaged
|
||||
mono_unhandled_exception
|
||||
mono_unicode_from_external
|
||||
mono_unicode_to_external
|
||||
mono_upgrade_remote_class_wrapper
|
||||
mono_utf8_from_external
|
||||
mono_utf8_validate_and_len
|
||||
mono_utf8_validate_and_len_with_bounds
|
||||
mono_valloc
|
||||
mono_value_box
|
||||
mono_value_copy
|
||||
mono_value_copy_array
|
||||
mono_value_describe_fields
|
||||
mono_verify_corlib
|
||||
mono_vfree
|
||||
mono_vtable_get_static_field_data
|
||||
mono_walk_stack
|
||||
mono_win32_compat_CopyMemory
|
||||
mono_win32_compat_FillMemory
|
||||
mono_win32_compat_MoveMemory
|
||||
mono_win32_compat_ZeroMemory
|
||||
_ZN20MonoJITMemoryManager11AllocateGOTEv
|
||||
_ZN20MonoJITMemoryManager12allocateStubEPKN4llvm11GlobalValueEjj
|
||||
_ZN20MonoJITMemoryManager13allocateSpaceEij
|
||||
_ZN20MonoJITMemoryManager13SetDlsymTableEPv
|
||||
_ZN20MonoJITMemoryManager14allocateGlobalEjj
|
||||
_ZN20MonoJITMemoryManager15endFunctionBodyEPKN4llvm8FunctionEPhS4_
|
||||
_ZN20MonoJITMemoryManager17endExceptionTableEPKN4llvm8FunctionEPhS4_S4_
|
||||
_ZN20MonoJITMemoryManager17setMemoryWritableEv
|
||||
_ZN20MonoJITMemoryManager17startFunctionBodyEPKN4llvm8FunctionERj
|
||||
_ZN20MonoJITMemoryManager19setMemoryExecutableEv
|
||||
_ZN20MonoJITMemoryManager19startExceptionTableEPKN4llvm8FunctionERj
|
||||
_ZN20MonoJITMemoryManager24deallocateMemForFunctionEPKN4llvm8FunctionE
|
||||
_ZN20MonoJITMemoryManagerC1Ev
|
||||
_ZN20MonoJITMemoryManagerC2Ev
|
||||
_ZN20MonoJITMemoryManagerD0Ev
|
||||
_ZN20MonoJITMemoryManagerD1Ev
|
||||
_ZN20MonoJITMemoryManagerD2Ev
|
||||
CloseHandle
|
||||
closesocket
|
||||
CopyFile
|
||||
CreateDirectory
|
||||
CreateEvent
|
||||
CreateFile
|
||||
CreateMutex
|
||||
CreatePipe
|
||||
CreateProcess
|
||||
CreateProcessWithLogonW
|
||||
CreateSemaphore
|
||||
CreateThread
|
||||
DeleteCriticalSection
|
||||
DeleteFile
|
||||
DuplicateHandle
|
||||
EnumProcesses
|
||||
EnumProcessModules
|
||||
errno_to_WSA
|
||||
ExitThread
|
||||
FileTimeToSystemTime
|
||||
FindClose
|
||||
FindFirstFile
|
||||
FindNextFile
|
||||
FlushFileBuffers
|
||||
FormatMessage
|
||||
GetCurrentDirectory
|
||||
GetCurrentProcess
|
||||
GetCurrentProcessId
|
||||
GetCurrentThread
|
||||
GetCurrentThreadId
|
||||
GetDiskFreeSpaceEx
|
||||
GetDriveType
|
||||
GetExitCodeProcess
|
||||
GetExitCodeThread
|
||||
GetFileAttributes
|
||||
GetFileAttributesEx
|
||||
GetFileSize
|
||||
GetFileTime
|
||||
GetFileType
|
||||
GetFileVersionInfo
|
||||
GetFileVersionInfoSize
|
||||
GetLastError
|
||||
GetLogicalDriveStrings
|
||||
GetModuleBaseName
|
||||
GetModuleFileNameEx
|
||||
GetModuleInformation
|
||||
GetPriorityClass
|
||||
GetProcessId
|
||||
GetProcessTimes
|
||||
GetProcessWorkingSetSize
|
||||
GetStdHandle
|
||||
GetSystemInfo
|
||||
GetTempPath
|
||||
GetThreadContext
|
||||
GetTickCount
|
||||
ImpersonateLoggedOnUser
|
||||
InitializeCriticalSection
|
||||
InitializeCriticalSectionAndSpinCount
|
||||
ioctlsocket
|
||||
LockFile
|
||||
mono_once
|
||||
mono_pthread_key_for_tls
|
||||
MoveFile
|
||||
OpenEvent
|
||||
OpenMutex
|
||||
OpenProcess
|
||||
OpenSemaphore
|
||||
OpenThread
|
||||
PulseEvent
|
||||
QueryPerformanceCounter
|
||||
QueryPerformanceFrequency
|
||||
QueueUserAPC
|
||||
ReadFile
|
||||
ReleaseMutex
|
||||
ReleaseSemaphore
|
||||
RemoveDirectory
|
||||
ReplaceFile
|
||||
ResetEvent
|
||||
ResumeThread
|
||||
RevertToSelf
|
||||
SetCriticalSectionSpinCount
|
||||
SetCurrentDirectory
|
||||
SetEndOfFile
|
||||
SetEvent
|
||||
SetFileAttributes
|
||||
SetFilePointer
|
||||
SetFileTime
|
||||
SetLastError
|
||||
SetPriorityClass
|
||||
SetProcessWorkingSetSize
|
||||
ShellExecuteEx
|
||||
SignalObjectAndWait
|
||||
Sleep
|
||||
SleepEx
|
||||
SuspendThread
|
||||
TerminateProcess
|
||||
TlsAlloc
|
||||
TlsFree
|
||||
TlsGetValue
|
||||
TlsSetValue
|
||||
TransmitFile
|
||||
TryEnterCriticalSection
|
||||
UnlockFile
|
||||
VerLanguageName
|
||||
VerQueryValue
|
||||
WaitForInputIdle
|
||||
WaitForMultipleObjects
|
||||
WaitForMultipleObjectsEx
|
||||
WaitForSingleObject
|
||||
WaitForSingleObjectEx
|
||||
wapi_clear_interruption
|
||||
wapi_current_thread_desc
|
||||
wapi_interrupt_thread
|
||||
wapi_self_interrupt
|
||||
wapi_thread_clear_wait_handle
|
||||
wapi_thread_set_wait_handle
|
||||
WriteFile
|
||||
WSACleanup
|
||||
WSAGetLastError
|
||||
WSAIoctl
|
||||
WSARecv
|
||||
WSASend
|
||||
WSASetLastError
|
||||
WSAStartup
|
||||
+2
-2
@@ -13,10 +13,10 @@ ASSEMBLED_DOCS = \
|
||||
monoapi.tree monoapi.zip
|
||||
|
||||
convert.exe: $(srcdir)/convert.cs AgilityPack.dll
|
||||
$(CSCOMPILE) -r:$(topdir)/class/lib/$(PROFILE)/System.Xml.dll -out:$@ $< -r:AgilityPack.dll
|
||||
$(CSCOMPILE) -out:$@ $< -r:AgilityPack.dll
|
||||
|
||||
AgilityPack.dll:
|
||||
$(CSCOMPILE) -r:$(topdir)/class/lib/$(PROFILE)/System.dll -r:$(topdir)/class/lib/$(PROFILE)/System.Xml.dll -target:library -out:$@ $(srcdir)/HtmlAgilityPack/*.cs
|
||||
$(CSCOMPILE) -target:library -out:$@ $(srcdir)/HtmlAgilityPack/*.cs
|
||||
|
||||
monoapi.zip: monoapi.tree
|
||||
@test -f $@ || { rm -f $< && $(MAKE) $<; }
|
||||
|
||||
+1019
File diff suppressed because it is too large.
Load diff
+72
-98
@@ -7,10 +7,6 @@ if ($ARGV[0] eq "-h"){
|
||||
shift @ARGV;
|
||||
shift @ARGV;
|
||||
}
|
||||
open (FILE, "$dir/api-style.css" || die "Did not find $dir/api-style.css");
|
||||
while (<FILE>){
|
||||
$css = $css . $_;
|
||||
}
|
||||
|
||||
if ($ARGV[0] eq "-t"){
|
||||
$dir = $ARGV[1];
|
||||
@@ -53,114 +49,109 @@ if ($html){
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<html xmlns="http://www.w3.org/1999/xhtml">
|
||||
<head>
|
||||
<title>$name</title>
|
||||
<style type="text/css">
|
||||
$css
|
||||
<title>$name</title>
|
||||
<style type="text/css">
|
||||
h3 {
|
||||
font-size: 18px;
|
||||
padding-bottom: 4pt;
|
||||
border-bottom: 2px solid #dddddd;
|
||||
}
|
||||
|
||||
.api {
|
||||
border: 1px solid;
|
||||
padding: 10pt;
|
||||
margin: 10pt;
|
||||
}
|
||||
|
||||
.api-entry {
|
||||
border-bottom: none;
|
||||
font-size: 18px;
|
||||
}
|
||||
|
||||
.prototype {
|
||||
border: 1px solid;
|
||||
background-color: #f2f2f2;
|
||||
padding: 5pt;
|
||||
margin-top: 5pt;
|
||||
margin-bottom: 5pt;
|
||||
}
|
||||
|
||||
.header {
|
||||
border: 1px solid;
|
||||
padding: 0 0 5pt 5pt;
|
||||
margin: 10pt;
|
||||
white-space: pre;
|
||||
font-family: monospace;
|
||||
}
|
||||
|
||||
.code {
|
||||
border: 1px solid;
|
||||
padding: 0 0 5pt 5pt;
|
||||
margin: 10pt;
|
||||
white-space: pre;
|
||||
font-family: monospace;
|
||||
}
|
||||
</style>
|
||||
</head>
|
||||
<body>
|
||||
<div class="mapi-docs">
|
||||
EOF
|
||||
@a = split (/\n/, $files_content[$f]);
|
||||
$strikeextra = "";
|
||||
$api_shown = 0;
|
||||
|
||||
for ($ai = 0; $ai < $#a; $ai++){
|
||||
$line = $a[$ai];
|
||||
|
||||
($api,$caption) = $line =~ /<h4><a name=\"api:(\w+)\">(\w+)<\/a><\/h4>/;
|
||||
if ($api ne ""){
|
||||
if ($api_shown == 1){
|
||||
print OUT "</div> <!-- class=mapi -->\n\n";
|
||||
if ($deprecated{$api}){
|
||||
$strike = "mapi-strike";
|
||||
$strikeextra = "</div><br><div class='mapi-deprecated'><b>Deprecated:</b> " . $deprecated{$api};
|
||||
} else {
|
||||
$strike = "";
|
||||
$strikeextra = "";
|
||||
}
|
||||
print OUT "</div>";
|
||||
}
|
||||
$api_shown = 1;
|
||||
$proto = $prototype{$api};
|
||||
if ($proto eq ""){
|
||||
$proto = "$api";
|
||||
$proto = "Prototype: $api";
|
||||
}
|
||||
|
||||
print OUT<<EOF;
|
||||
<a name="api:$api"></a>
|
||||
<div class="mapi">
|
||||
<div class="mapi-entry $strike"><code>$api$strikeextra</code></div>
|
||||
<div class="mapi-height-container">
|
||||
<div class="mapi-ptr-container"></div>
|
||||
<div class="mapi-description">
|
||||
<div class="mapi-ptr"></div>
|
||||
print OUT<<EOF;
|
||||
<a name="api:$api"></a>
|
||||
<div class="api">
|
||||
<div class="api-entry">$api</div>
|
||||
|
||||
<div class="mapi-declaration mapi-section">Syntax</div>
|
||||
<div class="mapi-prototype">$proto</div>
|
||||
<p>
|
||||
<div class="prototype">$proto</div>
|
||||
<p>
|
||||
EOF
|
||||
$ppars = $arguments{$api};
|
||||
if ($ppars ne "" && (!($ppars =~ /^[ \t]+$/))){
|
||||
print OUT " <div class=\"mapi-section\">Parameters</div>\n";
|
||||
print OUT " <table class=\"mapi-parameters\"><tbody>".${arguments{$api}}."</tbody></table>";
|
||||
}
|
||||
|
||||
&opt_print ("Return value", $returns{$api}, 0);
|
||||
&opt_print ("Description", $bodies{$api}, 0);
|
||||
print OUT " </div><!--mapi-description-->\n </div><!--height container-->\n";
|
||||
&opt_print ("Parameters", $arguments{$api}, 1);
|
||||
&opt_print ("Returns", $returns{$api}, 1);
|
||||
&opt_print ("Remarks", $bodies{$api}, 0);
|
||||
print OUT "\n";
|
||||
} else {
|
||||
if ($line =~ /@API_IDX@/){
|
||||
$apis_toc = &create_toc ($apis[$f]);
|
||||
$line =~ s/\@API_IDX\@/$apis_toc/;
|
||||
}
|
||||
if ($line =~ /^<h4/){
|
||||
print OUT "</div>\n";
|
||||
if ($line =~ /^<h/){
|
||||
print OUT "</div>";
|
||||
$api_shown = 0;
|
||||
}
|
||||
if ($line =~ /`/){
|
||||
}
|
||||
|
||||
print OUT "$line\n";
|
||||
}
|
||||
}
|
||||
print OUT<<EOF;
|
||||
</div>
|
||||
</body>
|
||||
</html>
|
||||
EOF
|
||||
close OUT;
|
||||
system ("$ENV{runtimedir}/mono-wrapper convert.exe $dir/html/$name $dir/html/x-$name");
|
||||
|
||||
|
||||
# clean up the mess that AgilityPack does, it CDATAs our CSS
|
||||
open HACK, "$dir/html/x-$name" || die "Could not open $dir/html/x-$name";
|
||||
open HACKOUT, ">$dir/deploy/$name" || die "Could not open output";
|
||||
|
||||
$line = 0;
|
||||
$doprint = 0;
|
||||
while (<HACK>){
|
||||
print HACKOUT $last if ($doprint);
|
||||
$line++;
|
||||
s/^\/\/<!\[CDATA\[//;
|
||||
s/^\/\/\]\]>\/\///;
|
||||
|
||||
# Remove the junk <span> wrapper generated by AgilityPack
|
||||
if ($line==1){
|
||||
s/<span>//;
|
||||
}
|
||||
if (/<style type/){
|
||||
# Replace the CSS in the XHTML output with the original CSS
|
||||
print HACKOUT $_;
|
||||
print HACKOUT $css;
|
||||
while (<HACK>){
|
||||
last if (/<\/style>/);
|
||||
}
|
||||
}
|
||||
$last = $_;
|
||||
$doprint = 1;
|
||||
print HACKOUT $_;
|
||||
}
|
||||
if (!($last =~ /span/)){
|
||||
print HACKOUT $last;
|
||||
}
|
||||
|
||||
#system ("cp.exe $dir/html/$name $dir/deploy/$name");
|
||||
}
|
||||
}
|
||||
@@ -177,29 +168,17 @@ sub process_doc {
|
||||
$returns = "";
|
||||
$body = "";
|
||||
$functions[$fn++] = $func;
|
||||
$deprecated = 0;
|
||||
|
||||
# Process arguments
|
||||
while (<>){
|
||||
s/NULL/<code>NULL<\/code>/g;
|
||||
s/TRUE/<code>TRUE<\/code>/g;
|
||||
s/FALSE/<code>FALSE<\/code>/g;
|
||||
if (/^ \*\*?\//){
|
||||
$body =~ s/@(\w+)/<i>\1<\/i>/g;
|
||||
$returns =~ s/@(\w+)/<i>\1<\/i>/g;
|
||||
if (/^ \*\*?\//){
|
||||
$body =~ s/[@#](\w+)/<i>\1<\/i>/g;
|
||||
$returns =~ s/[@#](\w+)/<i>\1<\/i>/g;
|
||||
|
||||
$args =~ s/@(\w+)/<i>\1<\/i>/g;
|
||||
|
||||
$body =~ s/#(\w+)/<code>\1<\/code>/g;
|
||||
$returns =~ s/#(\w+)/<code>\1<\/code>/g;
|
||||
$args =~ s/#(\w+)/<code>\1<\/code>/g;
|
||||
|
||||
$returns =~ s/\`([:.\w\*]+)\`/<code>\1<\/code>/g;
|
||||
$args =~ s/\`([:.\w\*]+)\`/<code>\1<\/code>/g;
|
||||
$body =~ s/\`([:.\w\*]+)\`/<code>\1<\/code>/g;
|
||||
|
||||
$body =~ s/\n/ /;
|
||||
$bodies{$func} = $body;
|
||||
$arguments{$func} = $args;
|
||||
$deprecated{$func} = $deprecated;
|
||||
$returns{$func} = $returns;
|
||||
$proto = "";
|
||||
while (<>){
|
||||
@@ -216,20 +195,14 @@ sub process_doc {
|
||||
}
|
||||
chop;
|
||||
s/^\ \*//;
|
||||
$_ = "<p>" if (/^\s*$/);
|
||||
$_ = "\n<p>" if (/^\s+$/);
|
||||
|
||||
if ($inbody == 0){
|
||||
if (/\s*(\w+):(.*)/){
|
||||
if ($1 eq "deprecated"){
|
||||
$deprecated = $2;
|
||||
} else {
|
||||
#$args .= "<dt><i>$1:</i></dt><dd>$2</dd>";
|
||||
$args .= "<tr><td><i>$1</i><td>$2</td></td></tr>";
|
||||
}
|
||||
$args .= "<dt><i>$1:</i></dt><dd>$2</dd>";
|
||||
} else {
|
||||
|
||||
$body = "\t$_\n";
|
||||
|
||||
$inbody = 1;
|
||||
}
|
||||
} elsif ($inbody == 1) {
|
||||
@@ -273,9 +246,6 @@ sub create_toc {
|
||||
chop;
|
||||
$p = $prototype{$line};
|
||||
($ret, $xname, $args) = $p =~ /(.*)\n(\w+)[ \t](.*)/;
|
||||
if ($xname eq ""){
|
||||
$xname = $line;
|
||||
}
|
||||
|
||||
$rspace = " " x ($type_size - length ($ret));
|
||||
$nspace = " " x ($name_size - length ($xname));
|
||||
@@ -319,7 +289,11 @@ sub opt_print {
|
||||
my ($caption, $opttext, $quote) = @_;
|
||||
|
||||
if ($opttext ne "" && (!($opttext =~ /^[ \t]+$/))){
|
||||
print OUT " <div class=\"mapi-section\">$caption</div>\n";
|
||||
print OUT " <div>$opttext</div>\n";
|
||||
print OUT "<b>$caption</b>\n";
|
||||
if ($quote == 1){
|
||||
print OUT "<blockquote>$opttext</blockquote>\n";
|
||||
} else {
|
||||
print OUT "<p>$opttext\n";
|
||||
}
|
||||
}
|
||||
}
|
||||
+79
@@ -0,0 +1,79 @@
|
||||
mono_array_clone
|
||||
mono_array_clone_in_domain
|
||||
mono_array_full_copy
|
||||
mono_array_new
|
||||
mono_array_new_full
|
||||
mono_array_new_specific
|
||||
mono_async_result_new
|
||||
mono_class_get_allocation_ftn
|
||||
mono_class_vtable
|
||||
mono_compile_method
|
||||
mono_delegate_ctor
|
||||
mono_field_get_value
|
||||
mono_field_get_value_object
|
||||
mono_field_set_value
|
||||
mono_field_static_get_value
|
||||
mono_field_static_set_value
|
||||
mono_get_constant_value_from_blob
|
||||
mono_get_delegate_invoke
|
||||
mono_install_compile_method
|
||||
mono_install_free_method
|
||||
mono_install_handler
|
||||
mono_install_remoting_trampoline
|
||||
mono_install_runtime_invoke
|
||||
mono_install_trampoline
|
||||
mono_ldstr
|
||||
mono_load_remote_field
|
||||
mono_load_remote_field_new
|
||||
mono_message_init
|
||||
mono_message_invoke
|
||||
mono_method_call_message_new
|
||||
mono_method_return_message_restore
|
||||
mono_object_castclass_mbyref
|
||||
mono_object_clone
|
||||
mono_object_get_class
|
||||
mono_object_get_domain
|
||||
mono_object_get_virtual_method
|
||||
mono_object_isinst
|
||||
mono_object_isinst_mbyref
|
||||
mono_object_new
|
||||
mono_object_new_alloc_specific
|
||||
mono_object_new_fast
|
||||
mono_object_new_from_token
|
||||
mono_object_new_specific
|
||||
mono_object_unbox
|
||||
mono_print_unhandled_exception
|
||||
mono_property_get_value
|
||||
mono_property_set_value
|
||||
mono_raise_exception
|
||||
mono_release_type_locks
|
||||
mono_remote_class
|
||||
mono_remote_class_vtable
|
||||
mono_remoting_invoke
|
||||
mono_runtime_class_init
|
||||
mono_runtime_delegate_invoke
|
||||
mono_runtime_exec_main
|
||||
mono_runtime_exec_managed_code
|
||||
mono_runtime_free_method
|
||||
mono_runtime_get_main_args
|
||||
mono_runtime_invoke
|
||||
mono_runtime_invoke_array
|
||||
mono_runtime_object_init
|
||||
mono_runtime_run_main
|
||||
mono_store_remote_field
|
||||
mono_store_remote_field_new
|
||||
mono_string_from_utf16
|
||||
mono_string_intern
|
||||
mono_string_is_interned
|
||||
mono_string_new
|
||||
mono_string_new_len
|
||||
mono_string_new_size
|
||||
mono_string_new_utf16
|
||||
mono_string_new_wrapper
|
||||
mono_string_to_utf16
|
||||
mono_string_to_utf8
|
||||
mono_type_initialization_init
|
||||
mono_unhandled_exception
|
||||
mono_upgrade_remote_class
|
||||
mono_value_box
|
||||
mono_wait_handle_new
|
||||
+827
@@ -0,0 +1,827 @@
|
||||
dlfree
|
||||
dlmalloc
|
||||
dlmemalign
|
||||
free_list_index_of
|
||||
g_printerr
|
||||
g_ptr_array_remove_fast
|
||||
invoke_protected_memory_method
|
||||
mini_debugger_init
|
||||
mini_debugger_main
|
||||
mini_debugger_set_attach_ok
|
||||
mini_debug_running_inside_mdb
|
||||
mini_emit_initobj
|
||||
mini_emit_stobj
|
||||
mono_add_internal_call
|
||||
mono_aot_register_globals
|
||||
mono_aot_register_module
|
||||
mono_array_addr_with_size
|
||||
mono_array_class_get
|
||||
mono_array_clone
|
||||
mono_array_element_size
|
||||
mono_array_length
|
||||
mono_array_new
|
||||
mono_array_new_full
|
||||
mono_array_new_specific
|
||||
mono_assemblies_cleanup
|
||||
mono_assembly_close
|
||||
mono_assembly_get_image
|
||||
mono_assembly_get_main
|
||||
mono_assembly_get_object
|
||||
mono_assembly_getrootdir
|
||||
mono_assembly_load
|
||||
mono_assembly_loaded
|
||||
mono_assembly_loaded_full
|
||||
mono_assembly_load_full
|
||||
mono_assembly_name_free
|
||||
mono_assembly_name_get_culture
|
||||
mono_assembly_name_get_name
|
||||
mono_assembly_name_get_pubkeytoken
|
||||
mono_assembly_name_get_version
|
||||
mono_assembly_name_new
|
||||
mono_assembly_names_equal
|
||||
mono_assembly_open
|
||||
mono_bitset_alloc_size
|
||||
mono_bitset_clear
|
||||
mono_bitset_clear_all
|
||||
mono_bitset_clone
|
||||
mono_bitset_copyto
|
||||
mono_bitset_count
|
||||
mono_bitset_equal
|
||||
mono_bitset_find_first
|
||||
mono_bitset_find_first_unset
|
||||
mono_bitset_find_last
|
||||
mono_bitset_find_start
|
||||
mono_bitset_foreach
|
||||
mono_bitset_free
|
||||
mono_bitset_intersection
|
||||
mono_bitset_intersection_2
|
||||
mono_bitset_invert
|
||||
mono_bitset_mem_new
|
||||
mono_bitset_new
|
||||
mono_bitset_set
|
||||
mono_bitset_set_all
|
||||
mono_bitset_size
|
||||
mono_bitset_sub
|
||||
mono_bitset_test
|
||||
mono_bitset_test_bulk
|
||||
mono_bitset_union
|
||||
mono_bounded_array_class_get
|
||||
mono_breakpoint_clean_code
|
||||
mono_check_corlib_version
|
||||
mono_class_array_element_size
|
||||
mono_class_data_size
|
||||
mono_class_describe_statics
|
||||
mono_class_enum_basetype
|
||||
mono_class_from_generic_parameter
|
||||
mono_class_from_mono_type
|
||||
mono_class_from_name
|
||||
mono_class_from_name_case
|
||||
mono_class_from_typeref
|
||||
mono_class_get
|
||||
mono_class_get_byref_type
|
||||
mono_class_get_element_class
|
||||
mono_class_get_events
|
||||
mono_class_get_event_token
|
||||
mono_class_get_field
|
||||
mono_class_get_field_from_name
|
||||
mono_class_get_fields
|
||||
mono_class_get_field_token
|
||||
mono_class_get_flags
|
||||
mono_class_get_full
|
||||
mono_class_get_image
|
||||
mono_class_get_interfaces
|
||||
mono_class_get_method_from_name
|
||||
mono_class_get_method_from_name_flags
|
||||
mono_class_get_methods
|
||||
mono_class_get_name
|
||||
mono_class_get_namespace
|
||||
mono_class_get_nested_types
|
||||
mono_class_get_nesting_type
|
||||
mono_class_get_parent
|
||||
mono_class_get_properties
|
||||
mono_class_get_property_from_name
|
||||
mono_class_get_property_token
|
||||
mono_class_get_rank
|
||||
mono_class_get_type
|
||||
mono_class_get_type_token
|
||||
mono_class_inflate_generic_method
|
||||
mono_class_inflate_generic_type
|
||||
mono_class_init
|
||||
mono_class_instance_size
|
||||
mono_class_interface_offset
|
||||
mono_class_is_assignable_from
|
||||
mono_class_is_enum
|
||||
mono_class_is_subclass_of
|
||||
mono_class_is_valid_enum
|
||||
mono_class_is_valuetype
|
||||
mono_class_min_align
|
||||
mono_class_name_from_token
|
||||
mono_class_num_events
|
||||
mono_class_num_fields
|
||||
mono_class_num_methods
|
||||
mono_class_num_properties
|
||||
mono_class_value_size
|
||||
mono_class_vtable
|
||||
mono_cli_rva_image_map
|
||||
mono_code_manager_commit
|
||||
mono_code_manager_destroy
|
||||
mono_code_manager_foreach
|
||||
mono_code_manager_invalidate
|
||||
mono_code_manager_new
|
||||
mono_code_manager_new_dynamic
|
||||
mono_code_manager_reserve
|
||||
mono_code_manager_reserve_align
|
||||
mono_code_manager_set_read_only
|
||||
mono_code_manager_size
|
||||
mono_compile_method
|
||||
mono_config_for_assembly
|
||||
mono_config_parse
|
||||
mono_config_parse_memory
|
||||
mono_config_string_for_assembly_file
|
||||
mono_context_get
|
||||
mono_context_get_desc
|
||||
mono_context_set
|
||||
mono_counters_cleanup
|
||||
mono_counters_dump
|
||||
mono_counters_enable
|
||||
mono_counters_register
|
||||
mono_custom_attrs_construct
|
||||
mono_custom_attrs_free
|
||||
mono_custom_attrs_from_assembly
|
||||
mono_custom_attrs_from_class
|
||||
mono_custom_attrs_from_event
|
||||
mono_custom_attrs_from_field
|
||||
mono_custom_attrs_from_index
|
||||
mono_custom_attrs_from_method
|
||||
mono_custom_attrs_from_param
|
||||
mono_custom_attrs_from_property
|
||||
mono_custom_attrs_get_attr
|
||||
mono_custom_attrs_has_attr
|
||||
mono_debug_add_method
|
||||
_mono_debug_address_from_il_offset
|
||||
mono_debug_close_image
|
||||
mono_debug_close_mono_symbol_file
|
||||
mono_debug_domain_create
|
||||
mono_debug_domain_unload
|
||||
mono_debug_find_method
|
||||
mono_debug_free_source_location
|
||||
mono_debugger_abort_runtime_invoke
|
||||
mono_debugger_breakpoint_callback
|
||||
mono_debugger_call_exception_handler
|
||||
mono_debugger_check_breakpoints
|
||||
mono_debugger_check_interruption
|
||||
mono_debugger_check_runtime_version
|
||||
mono_debugger_class_initialized
|
||||
mono_debugger_event
|
||||
mono_debugger_event_create_appdomain
|
||||
mono_debugger_event_unload_appdomain
|
||||
mono_debugger_extended_notification
|
||||
mono_debugger_handle_exception
|
||||
mono_debugger_insert_breakpoint
|
||||
mono_debugger_insert_breakpoint_full
|
||||
mono_debugger_insert_method_breakpoint
|
||||
mono_debugger_lock
|
||||
mono_debugger_method_has_breakpoint
|
||||
MONO_DEBUGGER__notification_function
|
||||
mono_debugger_register_class_init_callback
|
||||
mono_debugger_remove_breakpoint
|
||||
mono_debugger_remove_class_init_callback
|
||||
mono_debugger_remove_method_breakpoint
|
||||
mono_debugger_run_finally
|
||||
mono_debugger_runtime_invoke
|
||||
mono_debugger_thread_cleanup
|
||||
mono_debugger_thread_created
|
||||
_mono_debugger_throw_exception
|
||||
mono_debugger_trampoline_compiled
|
||||
_mono_debugger_unhandled_exception
|
||||
mono_debugger_unlock
|
||||
mono_debug_il_offset_from_address
|
||||
mono_debug_list_add
|
||||
mono_debug_list_remove
|
||||
mono_debug_lookup_locals
|
||||
mono_debug_lookup_method
|
||||
mono_debug_lookup_method_addresses
|
||||
mono_debug_lookup_source_location
|
||||
mono_debug_open_image_from_memory
|
||||
mono_debug_open_mono_symbols
|
||||
mono_debug_print_stack_frame
|
||||
mono_debug_print_vars
|
||||
mono_debug_symfile_get_line_numbers
|
||||
mono_debug_symfile_lookup_locals
|
||||
mono_debug_symfile_lookup_location
|
||||
mono_debug_symfile_lookup_method
|
||||
mono_debug_using_mono_debugger
|
||||
mono_declsec_flags_from_assembly
|
||||
mono_declsec_flags_from_class
|
||||
mono_declsec_flags_from_method
|
||||
mono_declsec_get_assembly_action
|
||||
mono_declsec_get_class_action
|
||||
mono_declsec_get_demands
|
||||
mono_declsec_get_inheritdemands_class
|
||||
mono_declsec_get_inheritdemands_method
|
||||
mono_declsec_get_linkdemands
|
||||
mono_declsec_get_method_action
|
||||
mono_digest_get_public_token
|
||||
mono_disasm_code
|
||||
mono_disasm_code_one
|
||||
mono_dllmap_insert
|
||||
mono_domain_assembly_open
|
||||
mono_domain_create
|
||||
mono_domain_create_appdomain
|
||||
mono_domain_finalize
|
||||
mono_domain_foreach
|
||||
mono_domain_free
|
||||
mono_domain_from_appdomain
|
||||
mono_domain_get
|
||||
mono_domain_get_by_id
|
||||
mono_domain_get_id
|
||||
mono_domain_has_type_resolve
|
||||
mono_domain_is_unloading
|
||||
mono_domain_owns_vtable_slot
|
||||
mono_domain_set
|
||||
mono_domain_set_internal
|
||||
mono_domain_try_type_resolve
|
||||
mono_domain_try_unload
|
||||
mono_domain_unload
|
||||
mono_emit_native_call
|
||||
mono_environment_exitcode_get
|
||||
mono_environment_exitcode_set
|
||||
mono_error_cleanup
|
||||
mono_error_get_error_code
|
||||
mono_error_get_message
|
||||
mono_error_init
|
||||
mono_error_init_flags
|
||||
mono_error_ok
|
||||
mono_escape_uri_string
|
||||
mono_event_get_add_method
|
||||
mono_event_get_flags
|
||||
mono_event_get_name
|
||||
mono_event_get_object
|
||||
mono_event_get_parent
|
||||
mono_event_get_raise_method
|
||||
mono_event_get_remove_method
|
||||
mono_exception_from_name
|
||||
mono_exception_from_name_domain
|
||||
mono_exception_from_name_msg
|
||||
mono_exception_from_name_two_strings
|
||||
mono_exception_from_token
|
||||
mono_exception_from_token_two_strings
|
||||
mono_field_from_token
|
||||
mono_field_full_name
|
||||
mono_field_get_data
|
||||
mono_field_get_flags
|
||||
mono_field_get_name
|
||||
mono_field_get_object
|
||||
mono_field_get_offset
|
||||
mono_field_get_parent
|
||||
mono_field_get_type
|
||||
mono_field_get_value
|
||||
mono_field_get_value_object
|
||||
mono_field_set_value
|
||||
mono_field_static_get_value
|
||||
mono_field_static_set_value
|
||||
mono_file_map
|
||||
mono_file_map_close
|
||||
mono_file_map_fd
|
||||
mono_file_map_open
|
||||
mono_file_map_size
|
||||
mono_file_unmap
|
||||
mono_free
|
||||
mono_free_bstr
|
||||
mono_free_method
|
||||
mono_free_verify_list
|
||||
mono_gc_collect
|
||||
mono_gc_collection_count
|
||||
mono_gc_get_generation
|
||||
mono_gc_get_heap_size
|
||||
mono_gc_get_used_size
|
||||
mono_gchandle_free
|
||||
mono_gchandle_get_target
|
||||
mono_gchandle_new
|
||||
mono_gchandle_new_weakref
|
||||
mono_gc_invoke_finalizers
|
||||
mono_gc_max_generation
|
||||
mono_gc_wbarrier_arrayref_copy
|
||||
mono_gc_wbarrier_generic_nostore
|
||||
mono_gc_wbarrier_generic_store
|
||||
mono_gc_wbarrier_generic_store_atomic
|
||||
mono_gc_wbarrier_object_copy
|
||||
mono_gc_wbarrier_set_arrayref
|
||||
mono_gc_wbarrier_set_field
|
||||
mono_gc_wbarrier_value_copy
|
||||
mono_get_array_class
|
||||
mono_get_boolean_class
|
||||
mono_get_byte_class
|
||||
mono_get_char_class
|
||||
mono_get_config_dir
|
||||
mono_get_corlib
|
||||
mono_get_dbnull_object
|
||||
mono_get_delegate_invoke
|
||||
mono_get_double_class
|
||||
mono_get_enum_class
|
||||
mono_get_exception_appdomain_unloaded
|
||||
mono_get_exception_argument
|
||||
mono_get_exception_argument_null
|
||||
mono_get_exception_argument_out_of_range
|
||||
mono_get_exception_arithmetic
|
||||
mono_get_exception_array_type_mismatch
|
||||
mono_get_exception_bad_image_format
|
||||
mono_get_exception_bad_image_format2
|
||||
mono_get_exception_cannot_unload_appdomain
|
||||
mono_get_exception_class
|
||||
mono_get_exception_divide_by_zero
|
||||
mono_get_exception_execution_engine
|
||||
mono_get_exception_field_access
|
||||
mono_get_exception_file_not_found
|
||||
mono_get_exception_file_not_found2
|
||||
mono_get_exception_index_out_of_range
|
||||
mono_get_exception_invalid_cast
|
||||
mono_get_exception_invalid_operation
|
||||
mono_get_exception_io
|
||||
mono_get_exception_method_access
|
||||
mono_get_exception_missing_field
|
||||
mono_get_exception_missing_method
|
||||
mono_get_exception_not_implemented
|
||||
mono_get_exception_not_supported
|
||||
mono_get_exception_null_reference
|
||||
mono_get_exception_out_of_memory
|
||||
mono_get_exception_overflow
|
||||
mono_get_exception_reflection_type_load
|
||||
mono_get_exception_security
|
||||
mono_get_exception_serialization
|
||||
mono_get_exception_stack_overflow
|
||||
mono_get_exception_synchronization_lock
|
||||
mono_get_exception_thread_abort
|
||||
mono_get_exception_thread_interrupted
|
||||
mono_get_exception_thread_state
|
||||
mono_get_exception_type_initialization
|
||||
mono_get_exception_type_load
|
||||
mono_get_int16_class
|
||||
mono_get_int32_class
|
||||
mono_get_int64_class
|
||||
mono_get_intptr_class
|
||||
mono_get_machine_config
|
||||
mono_get_method
|
||||
mono_get_method_full
|
||||
mono_get_object_class
|
||||
mono_get_root_domain
|
||||
mono_get_sbyte_class
|
||||
mono_get_single_class
|
||||
mono_get_string_class
|
||||
mono_get_thread_class
|
||||
mono_get_trampoline_func
|
||||
mono_get_uint16_class
|
||||
mono_get_uint32_class
|
||||
mono_get_uint64_class
|
||||
mono_get_uintptr_class
|
||||
mono_get_void_class
|
||||
mono_g_hash_table_destroy
|
||||
mono_g_hash_table_find
|
||||
mono_g_hash_table_foreach
|
||||
mono_g_hash_table_foreach_remove
|
||||
mono_g_hash_table_insert
|
||||
mono_g_hash_table_lookup
|
||||
mono_g_hash_table_lookup_extended
|
||||
mono_g_hash_table_new
|
||||
mono_g_hash_table_new_full
|
||||
mono_g_hash_table_new_type
|
||||
mono_g_hash_table_remove
|
||||
mono_g_hash_table_replace
|
||||
mono_g_hash_table_size
|
||||
mono_guid_to_string
|
||||
mono_hazard_pointer_get
|
||||
mono_image_addref
|
||||
mono_image_close
|
||||
mono_image_ensure_section
|
||||
mono_image_ensure_section_idx
|
||||
mono_image_fixup_vtable
|
||||
mono_image_get_assembly
|
||||
mono_image_get_entry_point
|
||||
mono_image_get_filename
|
||||
mono_image_get_guid
|
||||
mono_image_get_name
|
||||
mono_image_get_public_key
|
||||
mono_image_get_resource
|
||||
mono_image_get_strong_name
|
||||
mono_image_get_table_info
|
||||
mono_image_get_table_rows
|
||||
mono_image_has_authenticode_entry
|
||||
mono_image_is_dynamic
|
||||
mono_image_loaded
|
||||
mono_image_loaded_by_guid
|
||||
mono_image_loaded_by_guid_full
|
||||
mono_image_loaded_full
|
||||
mono_image_load_file_for_image
|
||||
mono_image_lookup_resource
|
||||
mono_image_open
|
||||
mono_image_open_from_data
|
||||
mono_image_open_from_data_full
|
||||
mono_image_open_from_data_with_name
|
||||
mono_image_open_full
|
||||
mono_image_rva_map
|
||||
mono_images_cleanup
|
||||
mono_image_strerror
|
||||
mono_image_strong_name_position
|
||||
mono_init
|
||||
mono_init_from_assembly
|
||||
mono_init_version
|
||||
mono_install_assembly_load_hook
|
||||
mono_install_assembly_postload_refonly_search_hook
|
||||
mono_install_assembly_postload_search_hook
|
||||
mono_install_assembly_preload_hook
|
||||
mono_install_assembly_refonly_preload_hook
|
||||
mono_install_assembly_refonly_search_hook
|
||||
mono_install_assembly_search_hook
|
||||
mono_install_runtime_cleanup
|
||||
mono_install_threadpool_item_hooks
|
||||
mono_install_threadpool_thread_hooks
|
||||
mono_inst_name
|
||||
mono_is_debugger_attached
|
||||
mono_jit_cleanup
|
||||
mono_jit_exec
|
||||
mono_jit_info_get_code_size
|
||||
mono_jit_info_get_code_start
|
||||
mono_jit_info_get_method
|
||||
mono_jit_info_table_find
|
||||
mono_jit_init
|
||||
mono_jit_init_version
|
||||
mono_jit_parse_options
|
||||
mono_jit_set_aot_only
|
||||
mono_jit_set_trace_options
|
||||
mono_ldstr
|
||||
mono_ldtoken
|
||||
mono_llvm_build_aligned_load
|
||||
mono_llvm_build_alloca
|
||||
mono_llvm_build_load
|
||||
mono_llvm_create_ee
|
||||
mono_llvm_dispose_ee
|
||||
mono_llvm_dump_value
|
||||
mono_llvm_optimize_method
|
||||
mono_llvm_replace_uses_of
|
||||
mono_load_remote_field
|
||||
mono_load_remote_field_new
|
||||
mono_local_deadce
|
||||
mono_locks_dump
|
||||
mono_lookup_internal_call
|
||||
mono_lookup_pinvoke_call
|
||||
mono_main
|
||||
mono_marshal_string_to_utf16
|
||||
mono_md5_final
|
||||
mono_md5_get_digest
|
||||
mono_md5_get_digest_from_file
|
||||
mono_md5_init
|
||||
mono_md5_update
|
||||
mono_mempool_alloc
|
||||
mono_mempool_alloc0
|
||||
mono_mempool_contains_addr
|
||||
mono_mempool_destroy
|
||||
mono_mempool_empty
|
||||
mono_mempool_get_allocated
|
||||
mono_mempool_invalidate
|
||||
mono_mempool_new
|
||||
mono_mempool_new_size
|
||||
mono_mempool_stats
|
||||
mono_mempool_strdup
|
||||
mono_metadata_blob_heap
|
||||
mono_metadata_cleanup
|
||||
mono_metadata_compute_size
|
||||
mono_metadata_custom_attrs_from_index
|
||||
mono_metadata_declsec_from_index
|
||||
mono_metadata_decode_blob_size
|
||||
mono_metadata_decode_row
|
||||
mono_metadata_decode_row_col
|
||||
mono_metadata_decode_signed_value
|
||||
mono_metadata_decode_table_row
|
||||
mono_metadata_decode_table_row_col
|
||||
mono_metadata_decode_value
|
||||
mono_metadata_encode_value
|
||||
mono_metadata_events_from_typedef
|
||||
mono_metadata_field_info
|
||||
mono_metadata_field_info_with_mempool
|
||||
mono_metadata_free_array
|
||||
mono_metadata_free_inflated_signature
|
||||
mono_metadata_free_marshal_spec
|
||||
mono_metadata_free_method_signature
|
||||
mono_metadata_free_mh
|
||||
mono_metadata_free_type
|
||||
mono_metadata_generic_class_is_valuetype
|
||||
mono_metadata_get_constant_index
|
||||
mono_metadata_get_inflated_signature
|
||||
mono_metadata_get_marshal_info
|
||||
mono_metadata_guid_heap
|
||||
mono_metadata_implmap_from_method
|
||||
mono_metadata_interfaces_from_typedef
|
||||
mono_metadata_load_generic_params
|
||||
mono_metadata_locate
|
||||
mono_metadata_locate_token
|
||||
mono_metadata_methods_from_event
|
||||
mono_metadata_methods_from_property
|
||||
mono_metadata_nested_in_typedef
|
||||
mono_metadata_nesting_typedef
|
||||
mono_metadata_packing_from_typedef
|
||||
mono_metadata_parse_array
|
||||
mono_metadata_parse_custom_mod
|
||||
mono_metadata_parse_field_type
|
||||
mono_metadata_parse_marshal_spec
|
||||
mono_metadata_parse_method_signature
|
||||
mono_metadata_parse_method_signature_full
|
||||
mono_metadata_parse_mh
|
||||
mono_metadata_parse_mh_full
|
||||
mono_metadata_parse_param
|
||||
mono_metadata_parse_signature
|
||||
mono_metadata_parse_type
|
||||
mono_metadata_parse_typedef_or_ref
|
||||
mono_metadata_parse_type_full
|
||||
mono_metadata_properties_from_typedef
|
||||
mono_metadata_signature_alloc
|
||||
mono_metadata_signature_dup
|
||||
mono_metadata_signature_equal
|
||||
mono_metadata_string_heap
|
||||
mono_metadata_token_from_dor
|
||||
mono_metadata_translate_token_index
|
||||
mono_metadata_typedef_from_field
|
||||
mono_metadata_typedef_from_method
|
||||
mono_metadata_type_equal
|
||||
mono_metadata_type_hash
|
||||
mono_metadata_user_string
|
||||
mono_method_body_get_object
|
||||
mono_method_can_access_field
|
||||
mono_method_can_access_method
|
||||
mono_method_desc_free
|
||||
mono_method_desc_from_method
|
||||
mono_method_desc_full_match
|
||||
mono_method_desc_match
|
||||
mono_method_desc_new
|
||||
mono_method_desc_search_in_class
|
||||
mono_method_desc_search_in_image
|
||||
mono_method_full_name
|
||||
mono_method_get_class
|
||||
mono_method_get_flags
|
||||
mono_method_get_generic_container
|
||||
mono_method_get_header
|
||||
mono_method_get_index
|
||||
mono_method_get_last_managed
|
||||
mono_method_get_marshal_info
|
||||
mono_method_get_name
|
||||
mono_method_get_object
|
||||
mono_method_get_param_names
|
||||
mono_method_get_param_token
|
||||
mono_method_get_signature
|
||||
mono_method_get_signature_full
|
||||
mono_method_get_token
|
||||
mono_method_get_unmanaged_thunk
|
||||
mono_method_has_marshal_info
|
||||
mono_method_header_get_clauses
|
||||
mono_method_header_get_code
|
||||
mono_method_header_get_locals
|
||||
mono_method_header_get_num_clauses
|
||||
mono_method_signature
|
||||
mono_method_verify
|
||||
mono_mlist_alloc
|
||||
mono_mlist_append
|
||||
mono_mlist_get_data
|
||||
mono_mlist_last
|
||||
mono_mlist_length
|
||||
mono_mlist_next
|
||||
mono_mlist_prepend
|
||||
mono_mlist_remove_item
|
||||
mono_mlist_set_data
|
||||
mono_mlist_set_next
|
||||
mono_module_file_get_object
|
||||
mono_module_get_object
|
||||
mono_monitor_enter
|
||||
mono_monitor_exit
|
||||
mono_monitor_try_enter
|
||||
mono_mprotect
|
||||
mono_object_castclass_mbyref
|
||||
mono_object_clone
|
||||
mono_object_describe
|
||||
mono_object_describe_fields
|
||||
mono_object_get_class
|
||||
mono_object_get_domain
|
||||
mono_object_get_size
|
||||
mono_object_get_virtual_method
|
||||
mono_object_isinst
|
||||
mono_object_isinst_mbyref
|
||||
mono_object_new
|
||||
mono_object_new_alloc_specific
|
||||
mono_object_new_fast
|
||||
mono_object_new_from_token
|
||||
mono_object_new_specific
|
||||
mono_object_unbox
|
||||
mono_opcode_name
|
||||
mono_opcode_value
|
||||
mono_op_to_op_imm_noemul
|
||||
mono_pagesize
|
||||
mono_param_get_objects
|
||||
mono_parse_default_optimizations
|
||||
mono_path_canonicalize
|
||||
mono_path_resolve_symlinks
|
||||
mono_pe_file_open
|
||||
mono_perfcounters_init
|
||||
mono_personality
|
||||
mono_pmip
|
||||
mono_print_method_from_ip
|
||||
mono_print_thread_dump
|
||||
mono_print_thread_dump_from_ctx
|
||||
mono_print_unhandled_exception
|
||||
mono_profiler_coverage_get
|
||||
mono_profiler_get_events
|
||||
mono_profiler_install
|
||||
mono_profiler_install_allocation
|
||||
mono_profiler_install_appdomain
|
||||
mono_profiler_install_assembly
|
||||
mono_profiler_install_class
|
||||
mono_profiler_install_code_buffer_new
|
||||
mono_profiler_install_code_chunk_destroy
|
||||
mono_profiler_install_code_chunk_new
|
||||
mono_profiler_install_coverage_filter
|
||||
mono_profiler_install_enter_leave
|
||||
mono_profiler_install_exception
|
||||
mono_profiler_install_gc
|
||||
mono_profiler_install_gc_moves
|
||||
mono_profiler_install_iomap
|
||||
mono_profiler_install_jit_compile
|
||||
mono_profiler_install_jit_end
|
||||
mono_profiler_install_method_free
|
||||
mono_profiler_install_method_invoke
|
||||
mono_profiler_install_module
|
||||
mono_profiler_install_monitor
|
||||
mono_profiler_install_runtime_initialized
|
||||
mono_profiler_install_statistical
|
||||
mono_profiler_install_statistical_call_chain
|
||||
mono_profiler_install_thread
|
||||
mono_profiler_install_transition
|
||||
mono_profiler_load
|
||||
mono_profiler_set_events
|
||||
mono_property_get_flags
|
||||
mono_property_get_get_method
|
||||
mono_property_get_name
|
||||
mono_property_get_object
|
||||
mono_property_get_parent
|
||||
mono_property_get_set_method
|
||||
mono_property_get_value
|
||||
mono_property_hash_destroy
|
||||
mono_property_hash_insert
|
||||
mono_property_hash_lookup
|
||||
mono_property_hash_new
|
||||
mono_property_hash_remove_object
|
||||
mono_property_set_value
|
||||
mono_ptr_class_get
|
||||
mono_raise_exception
|
||||
mono_reflection_free_type_info
|
||||
mono_reflection_get_custom_attrs
|
||||
mono_reflection_get_custom_attrs_blob
|
||||
mono_reflection_get_custom_attrs_by_type
|
||||
mono_reflection_get_custom_attrs_data
|
||||
mono_reflection_get_custom_attrs_info
|
||||
mono_reflection_get_token
|
||||
mono_reflection_get_type
|
||||
mono_reflection_parse_type
|
||||
mono_reflection_type_from_name
|
||||
mono_register_bundled_assemblies
|
||||
mono_register_machine_config
|
||||
mono_replace_ins
|
||||
mono_runtime_class_init
|
||||
mono_runtime_cleanup
|
||||
mono_runtime_delegate_invoke
|
||||
mono_runtime_exec_main
|
||||
mono_runtime_exec_managed_code
|
||||
mono_runtime_get_main_args
|
||||
mono_runtime_init
|
||||
mono_runtime_invoke
|
||||
mono_runtime_invoke_array
|
||||
mono_runtime_is_shutting_down
|
||||
mono_runtime_object_init
|
||||
mono_runtime_quit
|
||||
mono_runtime_run_main
|
||||
mono_security_core_clr_require_elevated_permissions
|
||||
mono_security_enable_core_clr
|
||||
mono_security_set_core_clr_platform_callback
|
||||
mono_sem_post
|
||||
mono_sem_timedwait
|
||||
mono_sem_wait
|
||||
mono_set_break_policy
|
||||
mono_set_defaults
|
||||
mono_set_dirs
|
||||
mono_set_is_debugger_attached
|
||||
mono_set_signal_chaining
|
||||
mono_sha1_final
|
||||
mono_sha1_get_digest
|
||||
mono_sha1_get_digest_from_file
|
||||
mono_sha1_init
|
||||
mono_sha1_update
|
||||
mono_signature_explicit_this
|
||||
mono_signature_get_call_conv
|
||||
mono_signature_get_desc
|
||||
mono_signature_get_param_count
|
||||
mono_signature_get_params
|
||||
mono_signature_get_return_type
|
||||
mono_signature_hash
|
||||
mono_signature_is_instance
|
||||
mono_signature_vararg_start
|
||||
mono_signbit_double
|
||||
mono_signbit_float
|
||||
mono_stack_walk
|
||||
mono_stack_walk_no_il
|
||||
mono_store_remote_field
|
||||
mono_store_remote_field_new
|
||||
mono_string_chars
|
||||
mono_string_equal
|
||||
mono_string_from_bstr
|
||||
mono_string_from_utf16
|
||||
mono_string_hash
|
||||
mono_stringify_assembly_name
|
||||
mono_string_intern
|
||||
mono_string_is_interned
|
||||
mono_string_length
|
||||
mono_string_new
|
||||
mono_string_new_len
|
||||
mono_string_new_size
|
||||
mono_string_new_utf16
|
||||
mono_string_new_wrapper
|
||||
mono_string_to_utf16
|
||||
mono_string_to_utf8
|
||||
mono_table_info_get_rows
|
||||
mono_thread_attach
|
||||
mono_thread_cleanup
|
||||
mono_thread_create
|
||||
mono_thread_current
|
||||
mono_thread_detach
|
||||
mono_thread_exit
|
||||
mono_thread_get_main
|
||||
mono_thread_get_managed_id
|
||||
mono_thread_get_name_utf8
|
||||
mono_thread_get_undeniable_exception
|
||||
mono_thread_hazardous_free_or_queue
|
||||
mono_thread_hazardous_try_free_all
|
||||
mono_thread_manage
|
||||
mono_thread_new_init
|
||||
mono_thread_set_main
|
||||
mono_thread_set_manage_callback
|
||||
mono_threads_get_default_stacksize
|
||||
mono_threads_install_cleanup
|
||||
mono_threads_request_thread_dump
|
||||
mono_threads_set_default_stacksize
|
||||
mono_thread_stop
|
||||
mono_trace_set_level_string
|
||||
mono_trace_set_mask_string
|
||||
mono_type_create_from_typespec
|
||||
mono_type_full_name
|
||||
mono_type_generic_inst_is_valuetype
|
||||
mono_type_get_array_type
|
||||
mono_type_get_class
|
||||
mono_type_get_desc
|
||||
mono_type_get_modifiers
|
||||
mono_type_get_name
|
||||
mono_type_get_object
|
||||
mono_type_get_ptr_type
|
||||
mono_type_get_signature
|
||||
mono_type_get_type
|
||||
mono_type_get_underlying_type
|
||||
mono_type_is_byref
|
||||
mono_type_is_pointer
|
||||
mono_type_is_reference
|
||||
mono_type_is_struct
|
||||
mono_type_is_valid_enum_basetype
|
||||
mono_type_is_void
|
||||
mono_type_size
|
||||
mono_type_stack_size
|
||||
mono_type_to_unmanaged
|
||||
mono_unhandled_exception
|
||||
mono_unicode_from_external
|
||||
mono_unicode_to_external
|
||||
mono_upgrade_remote_class_wrapper
|
||||
mono_utf8_from_external
|
||||
mono_utf8_validate_and_len
|
||||
mono_utf8_validate_and_len_with_bounds
|
||||
mono_valloc
|
||||
mono_value_box
|
||||
mono_value_copy
|
||||
mono_value_copy_array
|
||||
mono_value_describe_fields
|
||||
mono_verify_corlib
|
||||
mono_vfree
|
||||
mono_vtable_get_static_field_data
|
||||
mono_walk_stack
|
||||
mono_win32_compat_CopyMemory
|
||||
mono_win32_compat_FillMemory
|
||||
mono_win32_compat_MoveMemory
|
||||
mono_win32_compat_ZeroMemory
|
||||
_ZN20MonoJITMemoryManager11AllocateGOTEv
|
||||
_ZN20MonoJITMemoryManager12allocateStubEPKN4llvm11GlobalValueEjj
|
||||
_ZN20MonoJITMemoryManager13allocateSpaceEij
|
||||
_ZN20MonoJITMemoryManager13SetDlsymTableEPv
|
||||
_ZN20MonoJITMemoryManager14allocateGlobalEjj
|
||||
_ZN20MonoJITMemoryManager15endFunctionBodyEPKN4llvm8FunctionEPhS4_
|
||||
_ZN20MonoJITMemoryManager17endExceptionTableEPKN4llvm8FunctionEPhS4_S4_
|
||||
_ZN20MonoJITMemoryManager17setMemoryWritableEv
|
||||
_ZN20MonoJITMemoryManager17startFunctionBodyEPKN4llvm8FunctionERj
|
||||
_ZN20MonoJITMemoryManager19setMemoryExecutableEv
|
||||
_ZN20MonoJITMemoryManager19startExceptionTableEPKN4llvm8FunctionERj
|
||||
_ZN20MonoJITMemoryManager24deallocateMemForFunctionEPKN4llvm8FunctionE
|
||||
_ZN20MonoJITMemoryManagerC1Ev
|
||||
_ZN20MonoJITMemoryManagerC2Ev
|
||||
_ZN20MonoJITMemoryManagerD0Ev
|
||||
_ZN20MonoJITMemoryManagerD1Ev
|
||||
_ZN20MonoJITMemoryManagerD2Ev
|
||||
@@ -1,75 +1,33 @@
|
||||
<h2>Assemblies</h2>
|
||||
|
||||
<p>Code in .NET and Mono is distributed in assemblies, there
|
||||
are shipped typically in files with the extension .exe or
|
||||
.dll, and they are files that extend
|
||||
the <a href="https://en.wikipedia.org/wiki/Portable_Executable">Portable
|
||||
Executable</a> file format to include the Common Intermediate
|
||||
Language metadata and portable code.
|
||||
|
||||
<p>Assemblies are typically loaded either from a given file
|
||||
path, or using an <a href="#assembly-name">Assembly Name</a>
|
||||
to load them from the Global Assembly Cache.
|
||||
|
||||
<p>The Mono Assembly API contains method for dealing with
|
||||
<a href="#assembly-name">assembly
|
||||
names</a>, <a href="cil_assembly_load">loading assemblies</a>,
|
||||
<a href="#working">accessing assembly
|
||||
components</a>, <a href="#modules">modules</a> and
|
||||
some <a href="#advanced">advanced</a> features.
|
||||
|
||||
<p>Assemblies contain one or
|
||||
more images, the actual vessels for your code.
|
||||
The <a href="mono-api-image.html">Image API</a> documents the
|
||||
functions that operate on <code>MonoImage *</code>.
|
||||
|
||||
<h3>Synopsis</h3>
|
||||
|
||||
<div class="mapi-header">
|
||||
<div class="header">
|
||||
#include <metadata/assembly.h>
|
||||
|
||||
typedef struct _MonoImage MonoImage;
|
||||
typedef struct _MonoAssembly MonoAssembly;
|
||||
|
||||
@API_IDX@
|
||||
|
||||
</div>
|
||||
|
||||
<a name="cil_assembly_load"/></a>
|
||||
<a name="cil_assembly_load"/>
|
||||
<h3>Assembly Loading</h3>
|
||||
|
||||
<h4><a name="api:mono_assembly_open">mono_assembly_open</a></h4>
|
||||
<h4><a name="api:mono_assembly_close">mono_assembly_close</a></h4>
|
||||
<h4><a name="api:mono_assembly_get_object">mono_assembly_get_object</a></h4>
|
||||
<h4><a name="api:mono_assembly_load">mono_assembly_load</a></h4>
|
||||
<h4><a name="api:mono_assembly_load_full">mono_assembly_load_full</a></h4>
|
||||
<h4><a name="api:mono_assembly_loaded">mono_assembly_loaded</a></h4>
|
||||
<h4><a name="api:mono_assembly_load_from">mono_assembly_load_from</a></h4>
|
||||
<h4><a name="api:mono_assembly_load_from_full">mono_assembly_load_from_full</a></h4>
|
||||
<h4><a name="api:mono_assembly_load_with_partial_name">mono_assembly_load_with_partial_name</a></h4>
|
||||
<h4><a name="api:mono_assembly_open">mono_assembly_open</a></h4>
|
||||
<h4><a name="api:mono_assembly_open_full">mono_assembly_open_full</a></h4>
|
||||
<h4><a name="api:mono_set_assemblies_path">mono_set_assemblies_path</a></h4>
|
||||
<h4><a name="api:mono_set_rootdir">mono_set_rootdir</a></h4>
|
||||
<h4><a name="api:mono_assembly_get_object">mono_assembly_get_object</a></h4>
|
||||
|
||||
<a name="working"/>
|
||||
<h3>Working with Assemblies</h3>
|
||||
|
||||
<h4><a name="api:mono_assembly_fill_assembly_name">mono_assembly_fill_assembly_name</a></h4>
|
||||
<h4><a name="api:mono_assembly_foreach">mono_assembly_foreach</a></h4>
|
||||
<h4><a name="api:mono_assembly_get_image">mono_assembly_get_image</a></h4>
|
||||
<h4><a name="api:mono_assembly_get_main">mono_assembly_get_main</a></h4>
|
||||
<h4><a name="api:mono_assembly_get_name">mono_assembly_get_name</a></h4>
|
||||
<h4><a name="api:mono_assembly_getrootdir">mono_assembly_getrootdir</a></h4>
|
||||
<h4><a name="api:mono_assembly_get_assemblyref">mono_assembly_get_assemblyref</a></h4>
|
||||
<h4><a name="api:mono_assembly_loaded_full">mono_assembly_loaded_full</a></h4>
|
||||
<h4><a name="api:mono_assembly_load_reference">mono_assembly_load_reference</a></h4>
|
||||
<h4><a name="api:mono_assembly_load_references">mono_assembly_load_references</a></h4>
|
||||
<h4><a name="api:mono_assembly_load_module">mono_assembly_load_module</a></h4>
|
||||
<h4><a name="api:mono_assembly_invoke_load_hook">mono_assembly_invoke_load_hook</a></h4>
|
||||
<h4><a name="api:mono_assembly_invoke_search_hook">mono_assembly_invoke_search_hook</a></h4>
|
||||
<h4><a name="api:mono_assembly_set_main">mono_assembly_set_main</a></h4>
|
||||
<h4><a name="api:mono_assembly_setrootdir">mono_assembly_setrootdir</a></h4>
|
||||
<h4><a name="api:mono_register_config_for_assembly">mono_register_config_for_assembly</a></h4>
|
||||
<h4><a name="api:mono_register_symfile_for_assembly">mono_register_symfile_for_assembly</a></h4>
|
||||
|
||||
<a name="assembly-name"></a>
|
||||
<h3>Assembly Names</h3>
|
||||
|
||||
<p>The MonoAssemblyName contains the full identity of an
|
||||
@@ -80,16 +38,10 @@ typedef struct _MonoAssembly MonoAssembly;
|
||||
href="http://www.mono-project.com/monodoc/T:System.Reflection.AssemblyName">System.Reflection.AssemblyName</a>
|
||||
managed type.
|
||||
|
||||
<h4><a name="api:mono_assembly_name_new">mono_assembly_name_new</a></h4>
|
||||
<h4><a name="api:mono_assembly_name_get_name">mono_assembly_name_get_name</a></h4>
|
||||
<h4><a name="api:mono_assembly_name_get_culture">mono_assembly_name_get_culture</a></h4>
|
||||
<h4><a name="api:mono_assembly_name_get_version">mono_assembly_name_get_version</a></h4>
|
||||
<h4><a name="api:mono_assembly_name_get_pubkeytoken">mono_assembly_name_get_pubkeytoken</a></h4>
|
||||
<h4><a name="api:mono_assembly_name_free">mono_assembly_name_free</a></h4>
|
||||
<h4><a name="api:mono_stringify_assembly_name">mono_stringify_assembly_name</a></h4>
|
||||
<h4><a name="api:mono_assembly_names_equal">mono_assembly_names_equal</a></h4>
|
||||
|
||||
<a href="modules"/>
|
||||
<h3>Modules</h3>
|
||||
|
||||
<p>An assembly is made up of one or more modules.
|
||||
@@ -97,14 +49,3 @@ typedef struct _MonoAssembly MonoAssembly;
|
||||
<h4><a name="api:mono_module_file_get_object">mono_module_file_get_object</a></h4>
|
||||
<h4><a name="api:mono_module_get_object">mono_module_get_object</a></h4>
|
||||
|
||||
|
||||
<a href="advanced"/>
|
||||
<h3>Advanced</h3>
|
||||
|
||||
<h4><a name="api:mono_install_assembly_load_hook">mono_install_assembly_load_hook</a></h4>
|
||||
<h4><a name="api:mono_install_assembly_search_hook">mono_install_assembly_search_hook</a></h4>
|
||||
<h4><a name="api:mono_install_assembly_refonly_search_hook">mono_install_assembly_refonly_search_hook</a></h4>
|
||||
<h4><a name="api:mono_install_assembly_preload_hook">mono_install_assembly_preload_hook</a></h4>
|
||||
<h4><a name="api:mono_install_assembly_refonly_preload_hook">mono_install_assembly_refonly_preload_hook</a></h4>
|
||||
<h4><a name="api:mono_install_assembly_postload_search_hook">mono_install_assembly_postload_search_hook</a></h4>
|
||||
<h4><a name="api:mono_install_assembly_postload_refonly_search_hook">mono_install_assembly_postload_refonly_search_hook</a></h4>
|
||||
@@ -1,108 +1,52 @@
|
||||
<h2>Class Operations</h2>
|
||||
|
||||
<p>The operations on <code>MonoClass*</code> allow you to
|
||||
query a number of properties of a .NET class from the C API.
|
||||
|
||||
<p>This page contains information
|
||||
for <a href="#class-getting">how to obtain a MonoClass*</a>,
|
||||
how to <a href="#class-work">probe for different
|
||||
features of a MonoClass*</a> and APIs
|
||||
to <a href="#class-members">access class members</a> and
|
||||
<a href="#class-fields">access fields</a>. To access
|
||||
methods, see the <a href="mono-api-methods.html">method
|
||||
documentation API</a>.
|
||||
|
||||
<a name="class-getting"></a>
|
||||
<h3>Getting a MonoClass</h3>
|
||||
|
||||
<p>You typically would obtain a <code>MonoClass*</code>
|
||||
pointer by using a combination of the <code>MonoImage*</code>
|
||||
where the type is located, the namespace and name using the
|
||||
<code><a href="api:mono_class_from_name">mono_class_from_name</a></code>
|
||||
or
|
||||
the <code><a href="api:mono_class_from_name_case">mono_class_from_name_case</a></code>
|
||||
APIs or by using
|
||||
the <code><a href="api:mono_class_from_typeref">mono_class_from_typeref</a></code>
|
||||
or <code><a href="api:mono_class_from_typeref">mono_class_from_typeref_checked</a></code>
|
||||
methods.
|
||||
|
||||
<p>For low-level access, you can get the <code>MonoClass
|
||||
*</code> from an image and an ECMA type token relative to
|
||||
the <code>MonoImage*</code> by using <a href="api:mono_class_get">mono_class_get</a>.
|
||||
|
||||
|
||||
<h4><a name="api:mono_class_get">mono_class_get</a></h4>
|
||||
<h4><a name="api:mono_class_from_mono_type">mono_class_from_mono_type</a></h4>
|
||||
<h4><a name="api:mono_class_from_name">mono_class_from_name</a></h4>
|
||||
<h4><a name="api:mono_class_from_name_case">mono_class_from_name_case</a></h4>
|
||||
<h4><a name="api:mono_class_from_typeref">mono_class_from_typeref</a></h4>
|
||||
<h4><a name="api:mono_class_from_typeref_checked">mono_class_from_typeref_checked</a></h4>
|
||||
<h4><a name="api:mono_class_from_generic_parameter">mono_class_from_generic_parameter</a></h4>
|
||||
|
||||
<h3>Working with a MonoClass</h3>
|
||||
|
||||
<h4><a name="api:mono_class_array_element_size">mono_class_array_element_size</a></h4>
|
||||
<h4><a name="api:mono_class_data_size">mono_class_data_size</a></h4>
|
||||
<h4><a name="api:mono_class_enum_basetype">mono_class_enum_basetype</a></h4>
|
||||
<h4><a name="api:mono_class_from_generic_parameter">mono_class_from_generic_parameter</a></h4>
|
||||
<h4><a name="api:mono_class_from_mono_type">mono_class_from_mono_type</a></h4>
|
||||
<h4><a name="api:mono_class_from_name_case">mono_class_from_name_case</a></h4>
|
||||
<h4><a name="api:mono_class_from_name">mono_class_from_name</a></h4>
|
||||
<h4><a name="api:mono_class_from_typeref">mono_class_from_typeref</a></h4>
|
||||
<h4><a name="api:mono_class_get_byref_type">mono_class_get_byref_type</a></h4>
|
||||
<h4><a name="api:mono_class_get_element_class">mono_class_get_element_class</a></h4>
|
||||
<h4><a name="api:mono_class_get_events">mono_class_get_events</a></h4>
|
||||
<h4><a name="api:mono_class_get_event_token">mono_class_get_event_token</a></h4>
|
||||
<h4><a name="api:mono_class_get_field_from_name">mono_class_get_field_from_name</a></h4>
|
||||
<h4><a name="api:mono_class_get_field">mono_class_get_field</a></h4>
|
||||
<h4><a name="api:mono_class_get_fields">mono_class_get_fields</a></h4>
|
||||
<h4><a name="api:mono_class_get_field_token">mono_class_get_field_token</a></h4>
|
||||
<h4><a name="api:mono_class_get_flags">mono_class_get_flags</a></h4>
|
||||
<h4><a name="api:mono_class_get_full">mono_class_get_full</a></h4>
|
||||
<h4><a name="api:mono_class_get_image">mono_class_get_image</a></h4>
|
||||
<h4><a name="api:mono_class_get_interfaces">mono_class_get_interfaces</a></h4>
|
||||
<h4><a name="api:mono_class_get_method_from_name">mono_class_get_method_from_name</a></h4>
|
||||
<h4><a name="api:mono_class_get_methods">mono_class_get_methods</a></h4>
|
||||
<h4><a name="api:mono_class_get">mono_class_get</a></h4>
|
||||
<h4><a name="api:mono_class_get_name">mono_class_get_name</a></h4>
|
||||
<h4><a name="api:mono_class_get_namespace">mono_class_get_namespace</a></h4>
|
||||
<h4><a name="api:mono_class_get_nested_types">mono_class_get_nested_types</a></h4>
|
||||
<h4><a name="api:mono_class_get_nesting_type">mono_class_get_nesting_type</a></h4>
|
||||
<h4><a name="api:mono_class_get_parent">mono_class_get_parent</a></h4>
|
||||
<h4><a name="api:mono_class_get_properties">mono_class_get_properties</a></h4>
|
||||
<h4><a name="api:mono_class_get_property_from_name">mono_class_get_property_from_name</a></h4>
|
||||
<h4><a name="api:mono_class_get_property_token">mono_class_get_property_token</a></h4>
|
||||
<h4><a name="api:mono_class_get_rank">mono_class_get_rank</a></h4>
|
||||
<h4><a name="api:mono_class_get_type">mono_class_get_type</a></h4>
|
||||
<h4><a name="api:mono_class_get_type_token">mono_class_get_type_token</a></h4>
|
||||
<h4><a name="api:mono_class_implements_interface">mono_class_implements_interface</a></h4>
|
||||
<h4><a name="api:mono_class_inflate_generic_method">mono_class_inflate_generic_method</a></h4>
|
||||
<h4><a name="api:mono_class_inflate_generic_type">mono_class_inflate_generic_type</a></h4>
|
||||
<h4><a name="api:mono_class_init">mono_class_init</a></h4>
|
||||
<h4><a name="api:mono_class_instance_size">mono_class_instance_size</a></h4>
|
||||
<h4><a name="api:mono_class_is_assignable_from">mono_class_is_assignable_from</a></h4>
|
||||
<h4><a name="api:mono_class_is_delegate">mono_class_is_delegate</a></h4>
|
||||
<h4><a name="api:mono_class_is_enum">mono_class_is_enum</a></h4>
|
||||
<h4><a name="api:mono_class_is_subclass_of">mono_class_is_subclass_of</a></h4>
|
||||
<h4><a name="api:mono_class_is_valuetype">mono_class_is_valuetype</a></h4>
|
||||
<h4><a name="api:mono_class_min_align">mono_class_min_align</a></h4>
|
||||
<h4><a name="api:mono_class_name_from_token">mono_class_name_from_token</a></h4>
|
||||
<h4><a name="api:mono_class_num_events">mono_class_num_events</a></h4>
|
||||
<h4><a name="api:mono_class_num_fields">mono_class_num_fields</a></h4>
|
||||
<h4><a name="api:mono_class_num_methods">mono_class_num_methods</a></h4>
|
||||
<h4><a name="api:mono_class_num_properties">mono_class_num_properties</a></h4>
|
||||
<h4><a name="api:mono_class_value_size">mono_class_value_size</a></h4>
|
||||
<h4><a name="api:mono_class_vtable">mono_class_vtable</a></h4>
|
||||
|
||||
<a name="class-members"></a>
|
||||
<h3>Getting Class Members</h3>
|
||||
|
||||
<h4><a name="api:mono_class_get_fields">mono_class_get_fields</a></h4>
|
||||
<h4><a name="api:mono_class_get_field_from_name">mono_class_get_field_from_name</a></h4>
|
||||
<h4><a name="api:mono_class_get_methods">mono_class_get_methods</a></h4>
|
||||
<h4><a name="api:mono_class_get_method_from_name">mono_class_get_method_from_name</a></h4>
|
||||
<h4><a name="api:mono_class_get_method_from_name_flags">mono_class_get_method_from_name_flags</a></h4>
|
||||
<h4><a name="api:mono_class_get_nested_types">mono_class_get_nested_types</a></h4>
|
||||
<h4><a name="api:mono_class_get_properties">mono_class_get_properties</a></h4>
|
||||
<h4><a name="api:mono_class_get_property_from_name">mono_class_get_property_from_name</a></h4>
|
||||
<h4><a name="api:mono_class_get_events">mono_class_get_events</a></h4>
|
||||
|
||||
<a name="class-fields"></a>
|
||||
<h3>Fields</h3>
|
||||
|
||||
<h4><a name="api:mono_field_get_data">mono_field_get_data</a></h4>
|
||||
<h4><a name="api:mono_field_get_offset">mono_field_get_offset</a></h4>
|
||||
<h4><a name="api:mono_field_full_name">mono_field_full_name</a></h4>
|
||||
|
||||
<h3>Method Accessibility</h3>
|
||||
|
||||
<h4><a name="api:mono_method_can_access_field">mono_method_can_access_field</a></h4>
|
||||
<h4><a name="api:mono_method_can_access_method">mono_method_can_access_method</a></h4>
|
||||
|
||||
<p>
|
||||
<h4><a name="api:mono_class_name_from_token">mono_class_name_from_token</a></h4>
|
||||
@@ -0,0 +1,10 @@
|
||||
<h3>Code manager</h3>
|
||||
|
||||
<h4><a name="api:mono_code_manager_commit">mono_code_manager_commit</a></h4>
|
||||
<h4><a name="api:mono_code_manager_destroy">mono_code_manager_destroy</a></h4>
|
||||
<h4><a name="api:mono_code_manager_foreach">mono_code_manager_foreach</a></h4>
|
||||
<h4><a name="api:mono_code_manager_invalidate">mono_code_manager_invalidate</a></h4>
|
||||
<h4><a name="api:mono_code_manager_new_dynamic">mono_code_manager_new_dynamic</a></h4>
|
||||
<h4><a name="api:mono_code_manager_new">mono_code_manager_new</a></h4>
|
||||
<h4><a name="api:mono_code_manager_reserve">mono_code_manager_reserve</a></h4>
|
||||
|
||||
@@ -1,38 +1,23 @@
|
||||
<h4><a name="api:mono_debug_il_offset_from_address">mono_debug_il_offset_from_address</a></h4>
|
||||
<h4><a name="api:mono_debug_add_method">mono_debug_add_method</a></h4>
|
||||
<h4><a name="api:mono_debug_close_mono_symbol_file">mono_debug_close_mono_symbol_file</a></h4>
|
||||
<h4><a name="api:mono_debug_find_method">mono_debug_find_method</a></h4>
|
||||
<h4><a name="api:mono_debug_using_mono_debugger">mono_debug_using_mono_debugger</a></h4>
|
||||
|
||||
<h3>Mono Debugger Interface</h3>
|
||||
|
||||
<p>These are methods that are invoked by the debugger at
|
||||
runtime.
|
||||
|
||||
<h4><a name="api:mono_debugger_breakpoint_callback">mono_debugger_breakpoint_callback</a></h4>
|
||||
<h4><a name="api:mono_debugger_check_runtime_version">mono_debugger_check_runtime_version</a></h4>
|
||||
<h4><a name="api:mono_debugger_event">mono_debugger_event</a></h4>
|
||||
<h4><a name="api:mono_debugger_handle_exception">mono_debugger_handle_exception</a></h4>
|
||||
<h4><a name="api:mono_debugger_insert_breakpoint_full">mono_debugger_insert_breakpoint_full</a></h4>
|
||||
<h4><a name="api:mono_debugger_insert_breakpoint">mono_debugger_insert_breakpoint</a></h4>
|
||||
<h4><a name="api:mono_debugger_lock">mono_debugger_lock</a></h4>
|
||||
<h4><a name="api:mono_debugger_method_has_breakpoint">mono_debugger_method_has_breakpoint</a></h4>
|
||||
|
||||
<h3>Debugging Symbols</h3>
|
||||
<h4><a name="api:mono_debug_open_mono_symbols">mono_debug_open_mono_symbols</a></h4>
|
||||
<h4><a name="api:mono_debug_symfile_free_location">mono_debug_symfile_free_location</a></h4>
|
||||
<h4><a name="api:mono_debug_symfile_is_loaded">mono_debug_symfile_is_loaded</a></h4>
|
||||
<h4><a name="api:mono_debug_symfile_lookup_locals">mono_debug_symfile_lookup_locals</a></h4>
|
||||
<h4><a name="api:mono_debug_symfile_lookup_location">mono_debug_symfile_lookup_location</a></h4>
|
||||
<h4><a name="api:mono_debug_symfile_lookup_method">mono_debug_symfile_lookup_method</a></h4>
|
||||
|
||||
<h3>Internal Debugging </h3>
|
||||
|
||||
<h4><a name="api:mono_debug_add_delegate_trampoline">mono_debug_add_delegate_trampoline</a></h4>
|
||||
<h4><a name="api:mono_debug_close_image">mono_debug_close_image</a></h4>
|
||||
<h4><a name="api:mono_debug_domain_create">mono_debug_domain_create</a></h4>
|
||||
<h4><a name="api:mono_debug_domain_unload">mono_debug_domain_unload</a></h4>
|
||||
<h4><a name="api:mono_debug_enabled">mono_debug_enabled</a></h4>
|
||||
<h4><a name="api:mono_debug_free_method_jit_info">mono_debug_free_method_jit_info</a></h4>
|
||||
<h4><a name="api:mono_debug_free_source_location">mono_debug_free_source_location</a></h4>
|
||||
<h4><a name="api:mono_debug_lookup_locals">mono_debug_lookup_locals</a></h4>
|
||||
<h4><a name="api:mono_debug_lookup_method">mono_debug_lookup_method</a></h4>
|
||||
<h4><a name="api:mono_debug_lookup_method_addresses">mono_debug_lookup_method_addresses</a></h4>
|
||||
<h4><a name="api:mono_debug_lookup_source_location">mono_debug_lookup_source_location</a></h4>
|
||||
<h4><a name="api:mono_debug_open_image_from_memory">mono_debug_open_image_from_memory</a></h4>
|
||||
<h4><a name="api:mono_debug_print_stack_frame">mono_debug_print_stack_frame</a></h4>
|
||||
<h4><a name="api:mono_debug_remove_method">mono_debug_remove_method</a></h4>
|
||||
<h4><a name="api:mono_debug_il_offset_from_address">mono_debug_il_offset_from_address</a></h4>
|
||||
<h4><a name="api:mono_debug_add_method">mono_debug_add_method</a></h4>
|
||||
<h4><a name="api:mono_debug_close_mono_symbol_file">mono_debug_close_mono_symbol_file</a></h4>
|
||||
<h4><a name="api:mono_debug_find_method">mono_debug_find_method</a></h4>
|
||||
|
||||
<h4><a name="api:mono_debugger_remove_breakpoint">mono_debugger_remove_breakpoint</a></h4>
|
||||
<h4><a name="api:mono_debugger_runtime_invoke">mono_debugger_runtime_invoke</a></h4>
|
||||
<h4><a name="api:mono_debugger_unlock">mono_debugger_unlock</a></h4>
|
||||
<h4><a name="api:mono_debugger_run_finally">mono_debugger_run_finally</a></h4>
|
||||
@@ -0,0 +1,19 @@
|
||||
<h1>Decimal Support</h1>
|
||||
|
||||
<p>You can use the mono_decimal functions to access and
|
||||
manipulate <tt>System.Decimal</tt> types from C.
|
||||
|
||||
<h4><a name="api:mono_decimal2double">mono_decimal2double</a></h4>
|
||||
<h4><a name="api:mono_decimal2Int64">mono_decimal2Int64</a></h4>
|
||||
<h4><a name="api:mono_decimal2string">mono_decimal2string</a></h4>
|
||||
<h4><a name="api:mono_decimal2UInt64">mono_decimal2UInt64</a></h4>
|
||||
<h4><a name="api:mono_decimalCompare">mono_decimalCompare</a></h4>
|
||||
<h4><a name="api:mono_decimalDiv">mono_decimalDiv</a></h4>
|
||||
<h4><a name="api:mono_decimalFloorAndTrunc">mono_decimalFloorAndTrunc</a></h4>
|
||||
<h4><a name="api:mono_decimalIncr">mono_decimalIncr</a></h4>
|
||||
<h4><a name="api:mono_decimalIntDiv">mono_decimalIntDiv</a></h4>
|
||||
<h4><a name="api:mono_decimalMult">mono_decimalMult</a></h4>
|
||||
<h4><a name="api:mono_decimalRound">mono_decimalRound</a></h4>
|
||||
<h4><a name="api:mono_decimalSetExponent">mono_decimalSetExponent</a></h4>
|
||||
<h4><a name="api:mono_double2decimal">mono_double2decimal</a></h4>
|
||||
<h4><a name="api:mono_string2decimal">mono_string2decimal</a></h4>
|
||||
@@ -2,7 +2,7 @@
|
||||
|
||||
<h3>Synopsis</h3>
|
||||
|
||||
<div class="mapi-header">
|
||||
<div class="header">
|
||||
#include <metadata/appdomain.h>
|
||||
|
||||
/* Managed AppDomain */
|
||||
@@ -34,30 +34,21 @@ typedef struct _MonoAppContext MonoAppContext
|
||||
|
||||
<h4><a name="api:mono_domain_assembly_open">mono_domain_assembly_open</a></h4>
|
||||
<h4><a name="api:mono_domain_create">mono_domain_create</a></h4>
|
||||
<h4><a name="api:mono_domain_create_appdomain">mono_domain_create_appdomain</a></h4>
|
||||
<h4><a name="api:mono_domain_finalize">mono_domain_finalize</a></h4>
|
||||
<h4><a name="api:mono_domain_foreach">mono_domain_foreach</a></h4>
|
||||
<h4><a name="api:mono_domain_free">mono_domain_free</a></h4>
|
||||
<h4><a name="api:mono_domain_from_appdomain">mono_domain_from_appdomain</a></h4>
|
||||
<h4><a name="api:mono_domain_get_by_id">mono_domain_get_by_id</a></h4>
|
||||
<h4><a name="api:mono_domain_get_friendly_name">mono_domain_get_friendly_name</a></h4>
|
||||
<h4><a name="api:mono_domain_get_id">mono_domain_get_id</a></h4>
|
||||
<h4><a name="api:mono_domain_get">mono_domain_get</a></h4>
|
||||
<h4><a name="api:mono_domain_has_type_resolve">mono_domain_has_type_resolve</a></h4>
|
||||
<h4><a name="api:mono_domain_is_unloading">mono_domain_is_unloading</a></h4>
|
||||
<h4><a name="api:mono_domain_owns_vtable_slot">mono_domain_owns_vtable_slot</a></h4>
|
||||
<h4><a name="api:mono_domain_set_config">mono_domain_set_config</a></h4>
|
||||
<h4><a name="api:mono_domain_set_internal">mono_domain_set_internal</a></h4>
|
||||
<h4><a name="api:mono_domain_set">mono_domain_set</a></h4>
|
||||
<h4><a name="api:mono_domain_try_type_resolve">mono_domain_try_type_resolve</a></h4>
|
||||
<h4><a name="api:mono_domain_try_unload">mono_domain_try_unload</a></h4>
|
||||
<h4><a name="api:mono_domain_unload">mono_domain_unload</a></h4>
|
||||
<h4><a name="api:mono_domain_owns_vtable_slot">mono_domain_owns_vtable_slot</a></h4>
|
||||
|
||||
<h3>Contexts</h3>
|
||||
|
||||
<h4><a name="api:mono_context_init">mono_context_init</a></h4>
|
||||
<h4><a name="api:mono_context_get">mono_context_get</a></h4>
|
||||
<h4><a name="api:mono_context_get_domain_id">mono_context_get_domain_id</a></h4>
|
||||
<h4><a name="api:mono_context_get_id">mono_context_get_id</a></h4>
|
||||
<h4><a name="api:mono_context_set">mono_context_set</a></h4>
|
||||
<h4><a name="api:mono_context_get_desc">mono_context_get_desc</a></h4>
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
<h2>Internal: Dynamic Code Generation</h2>
|
||||
<h2>Dynamic Code Generation</h2>
|
||||
|
||||
<p>The dynamic code generation interface inside the Mono
|
||||
runtime is similar to the API exposed by
|
||||
|
||||
@@ -1,18 +1,5 @@
|
||||
<h2>Embedding Mono</h2>
|
||||
|
||||
<p>The Mono runtime can be embedded into C and C++
|
||||
applications. Your C/C++ code can invoke managed code
|
||||
running in the Mono/.NET world and you can also surface your
|
||||
internal application APIs to Mono and .NET.
|
||||
|
||||
<p>For an overview of how to embed Mono into your application
|
||||
and the strategies that you can use to embed Mono, check the
|
||||
Mono
|
||||
website's <a href="http://www.mono-project.com/docs/advanced/embedding/">Embedding
|
||||
Mono</a> page.
|
||||
|
||||
<p>This page is the companion API reference for the above guide.
|
||||
|
||||
<p>The simplest way of embedding Mono is illustrated here:
|
||||
<pre>
|
||||
int main (int argc, char *argv)
|
||||
@@ -61,14 +48,13 @@ getMessage ()
|
||||
</pre>
|
||||
|
||||
<h4><a name="api:mono_jit_init">mono_jit_init</a></h4>
|
||||
<h4><a name="api:mono_jit_parse_options">mono_jit_parse_options</a></h4>
|
||||
<h4><a name="api:mono_jit_exec">mono_jit_exec</a></h4>
|
||||
<h4><a name="api:mono_set_dirs">mono_set_dirs</a></h4>
|
||||
<h4><a name="api:mono_main">mono_main</a></h4>
|
||||
<h4><a name="api:mono_parse_default_optimizations">mono_parse_default_optimizations</a></h4>
|
||||
<h4><a name="api:mono_runtime_set_main_args">mono_runtime_set_main_args</a></h4>
|
||||
<h4><a name="api:mono_jit_cleanup">mono_jit_cleanup</a></h4>
|
||||
<h4><a name="api:mono_jit_set_trace_options">mono_jit_set_trace_options</a></h4>
|
||||
|
||||
<h4><a name="api:mono_jit_cleanup">mono_jit_cleanup</a></h4>
|
||||
<h4><a name="api:mono_set_defaults">mono_set_defaults</a></h4>
|
||||
|
||||
<h3>Internal Calls</h3>
|
||||
|
||||
@@ -155,16 +141,19 @@ getMessage ()
|
||||
|
||||
<p>The following APIs expose this functionality:
|
||||
|
||||
<h4><a name="api:mono_config_cleanup">mono_config_cleanup</a></h4>
|
||||
<h4><a name="api:mono_config_is_server_mode">mono_config_is_server_mode</a></h4>
|
||||
<h4><a name="api:mono_config_parse">mono_config_parse</a></h4>
|
||||
<h4><a name="api:mono_config_parse_memory">mono_config_parse_memory</a></h4>
|
||||
<h4><a name="api:mono_config_set_server_mode">mono_config_set_server_mode</a></h4>
|
||||
<h4><a name="api:mono_config_string_for_assembly_file">mono_config_string_for_assembly_file</a></h4>
|
||||
<h4><a name="api:mono_get_config_dir">mono_get_config_dir</a></h4>
|
||||
<h4><a name="api:mono_get_machine_config">mono_get_machine_config</a></h4>
|
||||
<h4><a name="api:mono_register_machine_config">mono_register_machine_config</a></h4>
|
||||
<h4><a name="api:mono_set_config_dir">mono_set_config_dir</a></h4>
|
||||
|
||||
<h3>Function Pointers</h3>
|
||||
|
||||
<p>To wrap a function pointer into something that the Mono
|
||||
runtime can consume, you should use the mono_create_ftnptr.
|
||||
This is only important if you plan on running on the IA64
|
||||
architecture. Otherwise you can just use the function
|
||||
pointer address.
|
||||
|
||||
<h4><a name="api:mono_create_ftnptr">mono_create_ftnptr</a></h4>
|
||||
|
||||
<h3>Advanced Execution Setups</h3>
|
||||
|
||||
@@ -174,15 +163,6 @@ getMessage ()
|
||||
|
||||
<h4><a name="api:mono_runtime_exec_managed_code">mono_runtime_exec_managed_code</a></h4>
|
||||
<h4><a name="api:mono_runtime_exec_main">mono_runtime_exec_main</a></h4>
|
||||
<h4><a name="api:mono_init">mono_init</a></h4>
|
||||
<h4><a name="api:mono_init_from_assembly">mono_init_from_assembly</a></h4>
|
||||
<h4><a name="api:mono_init">mono_init</a></h4>
|
||||
<h4><a name="api:mono_init_version">mono_init_version</a></h4>
|
||||
<h4><a name="api:mono_jit_exec">mono_jit_exec</a></h4>
|
||||
<h4><a name="api:mono_jit_set_aot_mode">mono_jit_set_aot_mode</a></h4>
|
||||
<h4><a name="api:mono_set_break_policy">mono_set_break_policy</a></h4>
|
||||
<h4><a name="api:mono_get_runtime_build_info">mono_get_runtime_build_info</a></h4>
|
||||
|
||||
<h3>Signal Chaining</h3>
|
||||
|
||||
<h4><a name="api:mono_set_signal_chaining">mono_set_signal_chaining</a></h4>
|
||||
<h4><a name="api:mono_set_crash_chaining">mono_set_crash_chaining</a></h4>
|
||||
@@ -1,32 +1,16 @@
|
||||
<h2>Exception Handling</h2>
|
||||
|
||||
<p>Mono's exception handling contains methods
|
||||
to <a href="#creating">create `MonoException*` objects</a>
|
||||
that can be <a href="api:mono_raise_exception">raised</a>.
|
||||
<div class="header">
|
||||
@API_IDX@
|
||||
</div>
|
||||
|
||||
<p>Alternatively, you can obtain an exception that you can
|
||||
raise from some of the most <a href="#common">common</a>
|
||||
exceptions in the .NET Runtime.
|
||||
|
||||
<h3>Raising and Catching exceptions</h3>
|
||||
|
||||
<p>If you plan on running your code in Mono's Cooperative mode
|
||||
for the Garbage Collector (for example, if you are using pure
|
||||
Bitcode code generation), it you should avoid raising an
|
||||
exception from any method that is not the entry point to the
|
||||
internal call.
|
||||
|
||||
<p>It is recommended that if you need to raise an error
|
||||
condition from nested parts of your code, surface this error
|
||||
to the topmost method that is surfaced as an internal call and
|
||||
raise the exception there.
|
||||
|
||||
|
||||
<h4><a name="api:mono_raise_exception">mono_raise_exception</a></h4>
|
||||
<h4><a name="api:mono_unhandled_exception">mono_unhandled_exception</a></h4>
|
||||
<h4><a name="api:mono_print_unhandled_exception">mono_print_unhandled_exception</a></h4>
|
||||
|
||||
<a name="creating"/>
|
||||
|
||||
<h3>Exception Types: General API</h3>
|
||||
|
||||
<h4><a name="api:mono_exception_from_name_domain">mono_exception_from_name_domain</a></h4>
|
||||
@@ -34,7 +18,6 @@
|
||||
<h4><a name="api:mono_exception_from_name_msg">mono_exception_from_name_msg</a></h4>
|
||||
<h4><a name="api:mono_exception_from_name_two_strings">mono_exception_from_name_two_strings</a></h4>
|
||||
|
||||
<a name="common"/>
|
||||
<h3>Obtaining Common Exceptions</h3>
|
||||
|
||||
<p>There are a number of common exceptions that are used by
|
||||
@@ -73,10 +56,3 @@
|
||||
<h4><a name="api:mono_get_exception_missing_field">mono_get_exception_missing_field</a></h4>
|
||||
<h4><a name="api:mono_get_exception_not_supported">mono_get_exception_not_supported</a></h4>
|
||||
<h4><a name="api:mono_get_exception_reflection_type_load">mono_get_exception_reflection_type_load</a></h4>
|
||||
<h4><a name="api:mono_exception_from_token_two_strings">mono_exception_from_token_two_strings</a></h4>
|
||||
<h4><a name="api:mono_get_exception_bad_image_format2">mono_get_exception_bad_image_format2</a></h4>
|
||||
<h4><a name="api:mono_get_exception_field_access">mono_get_exception_field_access</a></h4>
|
||||
<h4><a name="api:mono_get_exception_method_access">mono_get_exception_method_access</a></h4>
|
||||
<h4><a name="api:mono_get_exception_out_of_memory">mono_get_exception_out_of_memory</a></h4>
|
||||
<h4><a name="api:mono_get_exception_runtime_wrapped">mono_get_exception_runtime_wrapped</a></h4>
|
||||
<h4><a name="api:mono_get_exception_thread_interrupted">mono_get_exception_thread_interrupted</a></h4>
|
||||
@@ -4,118 +4,9 @@
|
||||
|
||||
<p>The public interface of the Mono GC is fairly limited, and
|
||||
its the only one that embedders should be using:
|
||||
|
||||
<h3>Garbage Collector</h3>
|
||||
|
||||
|
||||
<h4><a name="api:mono_gc_collect">mono_gc_collect</a></h4>
|
||||
<h4><a name="api:mono_gc_collection_count">mono_gc_collection_count</a></h4>
|
||||
<h4><a name="api:mono_gc_max_generation">mono_gc_max_generation</a></h4>
|
||||
<h4><a name="api:mono_gc_get_generation">mono_gc_get_generation</a></h4>
|
||||
<h4><a name="api:mono_gc_get_heap_size">mono_gc_get_heap_size</a></h4>
|
||||
<h4><a name="api:mono_gc_get_used_size">mono_gc_get_used_size</a></h4>
|
||||
<h4><a name="api:mono_gc_walk_heap">mono_gc_walk_heap</a></h4>
|
||||
|
||||
<h3>Reference Queues</h3>
|
||||
|
||||
<h4><a name="api:mono_gc_reference_queue_add">mono_gc_reference_queue_add</a></h4>
|
||||
<h4><a name="api:mono_gc_reference_queue_free">mono_gc_reference_queue_free</a></h4>
|
||||
<h4><a name="api:mono_gc_reference_queue_new">mono_gc_reference_queue_new</a></h4>
|
||||
|
||||
<h3>SGen Bridge</h3>
|
||||
|
||||
<p>The bridge is a mechanism for SGen to let clients override
|
||||
the death of some unreachable objects. We use it in monodroid
|
||||
to do garbage collection across the Mono and Java heaps.
|
||||
|
||||
<p>The client can designate some objects as "bridged", which
|
||||
means that they participate in the bridge processing step once
|
||||
SGen considers them unreachable, i.e., dead. Bridged objects
|
||||
must be registered for finalization.
|
||||
|
||||
<p>When SGen is done marking, it puts together a list of all
|
||||
dead bridged objects and then does a strongly connected
|
||||
component analysis over their object graph. That graph will
|
||||
usually contain non-bridged objects, too.
|
||||
|
||||
<p>The output of the SCC analysis is passed to the
|
||||
`cross_references()` callback. It is expected to set the
|
||||
`is_alive` flag on those strongly connected components that it
|
||||
wishes to be kept alive. Only bridged objects will be
|
||||
reported to the callback, i.e., non-bridged objects are
|
||||
removed from the callback graph.
|
||||
|
||||
<p>In monodroid each bridged object has a corresponding Java
|
||||
mirror object. In the bridge callback it reifies the Mono
|
||||
object graph in the Java heap so that the full, combined
|
||||
object graph is now instantiated on the Java side. Then it
|
||||
triggers a Java GC, waits for it to finish, and checks which
|
||||
of the Java mirror objects are still alive. For those it sets
|
||||
the `is_alive` flag and returns from the callback.
|
||||
|
||||
<p>The SCC analysis is done while the world is stopped, but
|
||||
the callback is made with the world running again. Weak links
|
||||
to bridged objects and other objects reachable from them are
|
||||
kept until the callback returns, at which point all links to
|
||||
bridged objects that don't have `is_alive` set are nulled.
|
||||
Note that weak links to non-bridged objects reachable from
|
||||
bridged objects are not nulled. This might be considered a
|
||||
bug.
|
||||
|
||||
<div class="mapi-header">
|
||||
enum {
|
||||
SGEN_BRIDGE_VERSION = 4
|
||||
};
|
||||
|
||||
typedef enum {
|
||||
/* Instances of this class should be scanned when computing the transitive dependency among bridges. E.g. List of object*/
|
||||
GC_BRIDGE_TRANSPARENT_CLASS,
|
||||
/* Instances of this class should not be scanned when computing the transitive dependency among bridges. E.g. String*/
|
||||
GC_BRIDGE_OPAQUE_CLASS,
|
||||
/* Instances of this class should be bridged and have their dependency computed. */
|
||||
GC_BRIDGE_TRANSPARENT_BRIDGE_CLASS,
|
||||
/* Instances of this class should be bridged but no dependencies should not be calculated. */
|
||||
GC_BRIDGE_OPAQUE_BRIDGE_CLASS,
|
||||
} MonoGCBridgeObjectKind;
|
||||
|
||||
typedef struct {
|
||||
mono_bool is_alive; /* to be set by the cross reference callback */
|
||||
int num_objs;
|
||||
MonoObject *objs [MONO_ZERO_LEN_ARRAY];
|
||||
} MonoGCBridgeSCC;
|
||||
|
||||
typedef struct {
|
||||
int src_scc_index;
|
||||
int dst_scc_index;
|
||||
} MonoGCBridgeXRef;
|
||||
|
||||
typedef struct {
|
||||
int bridge_version;
|
||||
/*
|
||||
* Tells the runtime which classes to even consider when looking for
|
||||
* bridged objects. If subclasses are to be considered as well, the
|
||||
* subclass check must be done in the callback.
|
||||
*/
|
||||
MonoGCBridgeObjectKind (*bridge_class_kind) (MonoClass *klass);
|
||||
/*
|
||||
* This is only called on objects for whose classes
|
||||
* `bridge_class_kind()` returned `XXX_BRIDGE_CLASS`.
|
||||
*/
|
||||
mono_bool (*is_bridge_object) (MonoObject *object);
|
||||
void (*cross_references) (int num_sccs, MonoGCBridgeSCC **sccs, int num_xrefs, MonoGCBridgeXRef *xrefs);
|
||||
} MonoGCBridgeCallbacks;
|
||||
</div>
|
||||
|
||||
<h4><a name="api:mono_gc_register_bridge_callbacks">mono_gc_register_bridge_callbacks</a></h4>
|
||||
<h4><a name="api:mono_gc_wait_for_bridge_processing">mono_gc_wait_for_bridge_processing</a></h4>
|
||||
|
||||
<h3>Write Barriers</h3>
|
||||
|
||||
<h4><a name="api:mono_gc_wbarrier_arrayref_copy">mono_gc_wbarrier_arrayref_copy</a></h4>
|
||||
<h4><a name="api:mono_gc_wbarrier_generic_nostore">mono_gc_wbarrier_generic_nostore</a></h4>
|
||||
<h4><a name="api:mono_gc_wbarrier_generic_store">mono_gc_wbarrier_generic_store</a></h4>
|
||||
<h4><a name="api:mono_gc_wbarrier_generic_store_atomic">mono_gc_wbarrier_generic_store_atomic</a></h4>
|
||||
<h4><a name="api:mono_gc_wbarrier_object_copy">mono_gc_wbarrier_object_copy</a></h4>
|
||||
<h4><a name="api:mono_gc_wbarrier_set_arrayref">mono_gc_wbarrier_set_arrayref</a></h4>
|
||||
<h4><a name="api:mono_gc_wbarrier_set_field">mono_gc_wbarrier_set_field</a></h4>
|
||||
<h4><a name="api:mono_gc_wbarrier_value_copy">mono_gc_wbarrier_value_copy</a></h4>
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
|
||||
<h3>Synopsys</h3>
|
||||
|
||||
<div class="mapi-header">
|
||||
<div class="header">
|
||||
@API_IDX@
|
||||
</div>
|
||||
|
||||
@@ -31,8 +31,7 @@
|
||||
<tt>mono_gchandle_get_target</tt>.
|
||||
|
||||
<p>For example, consider the following C code:
|
||||
|
||||
<div class="mapi-code">
|
||||
<div class="code">
|
||||
static MonoObject* o = NULL;
|
||||
</div>
|
||||
|
||||
@@ -42,22 +41,22 @@ static MonoObject* o = NULL;
|
||||
it from being collected, you need to acquire a GC handle for
|
||||
it.
|
||||
|
||||
<div class="mapi-code">
|
||||
guint32 handle = mono_gchandle_new (my_object, TRUE);
|
||||
<div class="code">
|
||||
guint32 handle = mono_gchandle_new (my_object, TRUE);
|
||||
</div>
|
||||
|
||||
<p>TRUE means the object will be pinned, so it won't move in
|
||||
memory when we'll use a moving GC. You can access the
|
||||
MonoObject* referenced by a handle with:
|
||||
|
||||
<div class="mapi-code">
|
||||
MonoObject* obj = mono_gchandle_get_target (handle);
|
||||
<div class="code">
|
||||
MonoObject* obj = mono_gchandle_get_target (handle);
|
||||
</div>
|
||||
|
||||
<p>When you don't need the handle anymore you need to call:
|
||||
|
||||
<div class="mapi-code">
|
||||
mono_gchandle_free (handle);
|
||||
<div class="code">
|
||||
mono_gchandle_free (handle);
|
||||
</div>
|
||||
|
||||
<p>Note that if you assign a new object to the C var, you need
|
||||
@@ -66,27 +65,27 @@ mono_gchandle_free (handle);
|
||||
|
||||
<p>So code that looked like this:
|
||||
|
||||
<div class="mapi-code">
|
||||
static MonoObject* obj = NULL;
|
||||
...
|
||||
obj = mono_object_new (...);
|
||||
// use obj
|
||||
...
|
||||
// when done to allow the GC to collect obj
|
||||
obj = NULL;
|
||||
<div class="code">
|
||||
static MonoObject* o = NULL;
|
||||
...
|
||||
o = mono_object_new (...);
|
||||
/* use o */
|
||||
...
|
||||
/* when done to allow the GC to collect o */
|
||||
o = NULL;
|
||||
</div>
|
||||
|
||||
<p>should now be changed to:
|
||||
|
||||
<div class="mapi-code">
|
||||
static guint32 o_handle;
|
||||
...
|
||||
MonoObject *obj = mono_object_new (...);
|
||||
o_handle = mono_gchandle_new (obj, TRUE);
|
||||
// use o or mono_gchandle_get_target (o_handle)
|
||||
...
|
||||
// when done to allow the GC to collect obj
|
||||
mono_gchandle_free (o_handle);
|
||||
<div class="code">
|
||||
static guint32 o_handle;
|
||||
...
|
||||
MonoObject *o = mono_object_new (...);
|
||||
o_handle = mono_gchandle_new (o, TRUE);
|
||||
/* use o or mono_gchandle_get_target (o_handle) */
|
||||
...
|
||||
/* when done to allow the GC to collect o */
|
||||
mono_gchandle_free (o_handle);
|
||||
</div>
|
||||
|
||||
<h4><a name="api:mono_gchandle_new">mono_gchandle_new</a></h4>
|
||||
|
||||
@@ -6,7 +6,7 @@
|
||||
|
||||
<h3>Synopsis</h3>
|
||||
|
||||
<div class="mapi-header">
|
||||
<div class="header">
|
||||
#include <metadata/image.h>
|
||||
|
||||
typedef struct _MonoImage MonoImage;
|
||||
@@ -25,9 +25,9 @@ typedef enum {
|
||||
<p>Images are the actual elements in the runtime that contain
|
||||
the actual code being executed.
|
||||
|
||||
<a name="cil_image_open"/>
|
||||
<h3>Opening and closing MonoImages</h3>
|
||||
|
||||
<h4><a name="api:mono_load_image">mono_load_image</a></h4>
|
||||
<h4><a name="api:mono_image_open">mono_image_open</a></h4>
|
||||
<h4><a name="api:mono_image_open_full">mono_image_open_full</a></h4>
|
||||
<h4><a name="api:mono_image_open_from_data">mono_image_open_from_data</a></h4>
|
||||
@@ -35,8 +35,6 @@ typedef enum {
|
||||
<h4><a name="api:mono_image_close">mono_image_close</a></h4>
|
||||
<h4><a name="api:mono_image_addref">mono_image_addref</a></h4>
|
||||
<h4><a name="api:mono_image_load_file_for_image">mono_image_load_file_for_image</a></h4>
|
||||
<h4><a name="api:mono_image_open_from_data_with_name">mono_image_open_from_data_with_name</a></h4>
|
||||
<h4><a name="api:mono_image_load_module">mono_image_load_module</a></h4>
|
||||
|
||||
<h3>Image Information</h3>
|
||||
|
||||
@@ -53,7 +51,6 @@ typedef enum {
|
||||
<h4><a name="api:mono_image_loaded">mono_image_loaded</a></h4>
|
||||
<h4><a name="api:mono_image_lookup_resource">mono_image_lookup_resource</a></h4>
|
||||
<h4><a name="api:mono_image_strerror">mono_image_strerror</a></h4>
|
||||
<h4><a name="api:mono_get_method_constrained">mono_get_method_constrained</a></h4>
|
||||
|
||||
<h3>Public Keys, Strong Names and Certificates</h3>
|
||||
|
||||
@@ -67,11 +64,3 @@ typedef enum {
|
||||
<h4><a name="api:mono_image_rva_map">mono_image_rva_map</a></h4>
|
||||
<h4><a name="api:mono_image_ensure_section_idx">mono_image_ensure_section_idx</a></h4>
|
||||
<h4><a name="api:mono_image_ensure_section">mono_image_ensure_section</a></h4>
|
||||
<h4><a name="api:mono_image_init">mono_image_init</a></h4>
|
||||
<h4><a name="api:mono_images_init">mono_images_init</a></h4>
|
||||
<h4><a name="api:mono_images_cleanup">mono_images_cleanup</a></h4>
|
||||
<h4><a name="api:mono_image_add_to_name_cache">mono_image_add_to_name_cache</a></h4>
|
||||
<h4><a name="api:mono_image_fixup_vtable">mono_image_fixup_vtable</a></h4>
|
||||
<h4><a name="api:mono_image_loaded_by_guid_full">mono_image_loaded_by_guid_full</a></h4>
|
||||
<h4><a name="api:mono_image_loaded_full">mono_image_loaded_full</a></h4>
|
||||
<h4><a name="api:mono_lookup_icall_symbol">mono_lookup_icall_symbol</a></h4>
|
||||
@@ -4,29 +4,6 @@
|
||||
inside Mono that developers extending or altering Mono might
|
||||
want to use.
|
||||
|
||||
<h2>Strings</h2>
|
||||
|
||||
<h3>Other Encodings</h3>
|
||||
|
||||
<p>These routines are used when coping with strings that come
|
||||
from Mono's environment, and might be encoded in one or more
|
||||
of the external encodings.
|
||||
|
||||
<p>For example, some file systems might historically contain a
|
||||
mix of file names with both old and new encodings, typically
|
||||
UTF8 for new files, and the old files would be encoded in an 8
|
||||
bit character set (ISO-8859-1 for example).
|
||||
|
||||
<p>These routines try a number of encodings, those specified
|
||||
in the <tt>MONO_ENCODINGS</tt> environment variable and return
|
||||
unicode strings that can be used internally.
|
||||
|
||||
<p>See the mono(1) man page for more details.
|
||||
|
||||
<h4><a name="api:mono_unicode_from_external">mono_unicode_from_external</a></h4>
|
||||
<h4><a name="api:mono_unicode_to_external">mono_unicode_to_external</a></h4>
|
||||
<h4><a name="api:mono_utf8_from_external">mono_utf8_from_external</a></h4>
|
||||
|
||||
<h2>Marshalling functions</h2>
|
||||
|
||||
<h4><a name="api:mono_marshal_alloc">mono_marshal_alloc</a></h4>
|
||||
|
||||
@@ -1,26 +1,9 @@
|
||||
<h2>Synopsis</h2>
|
||||
|
||||
<p>These functions are used to get some runtime information
|
||||
from the Just in Time compiler and also to control some
|
||||
aspects of the initialization and shutdown of the runtime.
|
||||
|
||||
<div class="mapi-header">
|
||||
typedef struct _MonoJitInfo MonoJitInfo;
|
||||
|
||||
<div class="header">
|
||||
@API_IDX@
|
||||
</div>
|
||||
|
||||
<h3>Just-in-Time Compiled Method Information</h3>
|
||||
|
||||
<p>Use the `MonoJitInfo` API to get data about a JITed
|
||||
method. These APIs are typically used by profiler modules
|
||||
added to Mono.
|
||||
|
||||
<h4><a name="api:mono_jit_info_table_find">mono_jit_info_table_find</a></h4>
|
||||
<h4><a name="api:mono_jit_info_get_code_size">mono_jit_info_get_code_size</a></h4>
|
||||
<h4><a name="api:mono_jit_info_get_code_start">mono_jit_info_get_code_start</a></h4>
|
||||
<h4><a name="api:mono_jit_info_get_method">mono_jit_info_get_method</a></h4>
|
||||
|
||||
<h3>Useful Debugging Functions</h3>
|
||||
|
||||
<p>These functions are useful when running the Mono VM inside
|
||||
@@ -31,12 +14,7 @@ typedef struct _MonoJitInfo MonoJitInfo;
|
||||
<h4><a name="api:mono_print_thread_dump">mono_print_thread_dump</a></h4>
|
||||
<h4><a name="api:mono_threads_request_thread_dump">mono_threads_request_thread_dump</a></h4>
|
||||
|
||||
<h3>Advanced</h3></h4>
|
||||
<h3>Helper Tools For Native Ports</h3>
|
||||
|
||||
<h4><a name="api:mono_inst_name">mono_inst_name</a></h4>
|
||||
|
||||
<h4><a name="api:mono_assemblies_init">mono_assemblies_init</a></h4>
|
||||
<h4><a name="api:mono_assemblies_cleanup">mono_assemblies_cleanup</a></h4>
|
||||
<h4><a name="api:mono_environment_exitcode_get">mono_environment_exitcode_get</a></h4>
|
||||
<h4><a name="api:mono_environment_exitcode_set">mono_environment_exitcode_set</a></h4>
|
||||
<h4><a name="api:mono_install_runtime_cleanup">mono_install_runtime_cleanup</a></h4>
|
||||
<h4><a name="api:mono_runtime_set_shutting_down">mono_runtime_set_shutting_down</a></h4>
|
||||
<h4><a name="api:mono_security_set_core_clr_platform_callback">mono_security_set_core_clr_platform_callback</a></h4>
|
||||
@@ -1,125 +1,4 @@
|
||||
<h2>Internal Runtime Utility Functions</h2>
|
||||
|
||||
<h3>SHA1 Signatures</h3>
|
||||
|
||||
<h4><a name="api:mono_sha1_init">mono_sha1_init</a></h4>
|
||||
<h4><a name="api:mono_sha1_update">mono_sha1_update</a></h4>
|
||||
<h4><a name="api:mono_sha1_get_digest_from_file">mono_sha1_get_digest_from_file</a></h4>
|
||||
<h4><a name="api:mono_sha1_get_digest">mono_sha1_get_digest</a></h4>
|
||||
<h4><a name="api:mono_sha1_final">mono_sha1_final</a></h4>
|
||||
|
||||
<h3>MD5 Signatures</h3>
|
||||
|
||||
<h4><a name="api:mono_md5_init">mono_md5_init</a></h4>
|
||||
<h4><a name="api:mono_md5_update">mono_md5_update</a></h4>
|
||||
<h4><a name="api:mono_md5_get_digest_from_file">mono_md5_get_digest_from_file</a></h4>
|
||||
<h4><a name="api:mono_md5_get_digest">mono_md5_get_digest</a></h4>
|
||||
<h4><a name="api:mono_md5_final">mono_md5_final</a></h4>
|
||||
|
||||
<h4><a name="api:mono_digest_get_public_token">mono_digest_get_public_token</a></h4>
|
||||
|
||||
<h3>Hashtables</h3>
|
||||
|
||||
<p><tt>GHashTable</tt> is used when you need to store object
|
||||
references into a hashtable, objects stored in a
|
||||
<tt>MonoGHashTable</tt> are properly tracked by the garbage
|
||||
collector.
|
||||
|
||||
<p>The <tt>MonoGHashTable</tt> data type has the same API as
|
||||
the GLIB.
|
||||
|
||||
<h4><a name="api:mono_g_hash_table_destroy">mono_g_hash_table_destroy</a></h4>
|
||||
<h4><a name="api:mono_g_hash_table_foreach">mono_g_hash_table_foreach</a></h4>
|
||||
<h4><a name="api:mono_g_hash_table_foreach_remove">mono_g_hash_table_foreach_remove</a></h4>
|
||||
<h4><a name="api:mono_g_hash_table_foreach_steal">mono_g_hash_table_foreach_steal</a></h4>
|
||||
<h4><a name="api:mono_g_hash_table_insert">mono_g_hash_table_insert</a></h4>
|
||||
<h4><a name="api:mono_g_hash_table_lookup">mono_g_hash_table_lookup</a></h4>
|
||||
<h4><a name="api:mono_g_hash_table_lookup_extended">mono_g_hash_table_lookup_extended</a></h4>
|
||||
<h4><a name="api:mono_g_hash_table_new">mono_g_hash_table_new</a></h4>
|
||||
<h4><a name="api:mono_g_hash_table_new_full">mono_g_hash_table_new_full</a></h4>
|
||||
<h4><a name="api:mono_g_hash_table_remap">mono_g_hash_table_remap</a></h4>
|
||||
<h4><a name="api:mono_g_hash_table_remove">mono_g_hash_table_remove</a></h4>
|
||||
<h4><a name="api:mono_g_hash_table_replace">mono_g_hash_table_replace</a></h4>
|
||||
<h4><a name="api:mono_g_hash_table_size">mono_g_hash_table_size</a></h4>
|
||||
<h4><a name="api:mono_g_hash_table_steal">mono_g_hash_table_steal</a></h4>
|
||||
|
||||
|
||||
<h3>Memory Pools</h3>
|
||||
|
||||
<p>Memory pools are a convenient way of tracking memory
|
||||
allocations that are used for one specific task, they are also
|
||||
faster than using the standard memory allocation procedures,
|
||||
as they are designed to be used only by a single thread at a
|
||||
time.
|
||||
|
||||
<p><tt>MonoMemPool</tt> objects are not thread safe, which
|
||||
means that you should not share the objects across multiple
|
||||
threads without providing proper locking around it (unlike
|
||||
<tt>malloc</tt> and <tt>free</tt> which are thread safe).
|
||||
|
||||
<p>When a <tt>MonoMemPool</tt> is released with
|
||||
<tt>mono_mempool_destroy</tt> all of the of the memory
|
||||
allocated from that memory pool with
|
||||
<tt>mono_mempool_alloc</tt> and <tt>mono_mempool_alloc0</tt>
|
||||
is released.
|
||||
|
||||
<h4><a name="api:mono_mempool_new">mono_mempool_new</a></h4>
|
||||
<h4><a name="api:mono_mempool_destroy">mono_mempool_destroy</a></h4>
|
||||
<h4><a name="api:mono_mempool_alloc">mono_mempool_alloc</a></h4>
|
||||
<h4><a name="api:mono_mempool_alloc0">mono_mempool_alloc0</a></h4>
|
||||
<h4><a name="api:mono_mempool_empty">mono_mempool_empty</a></h4>
|
||||
<h4><a name="api:mono_mempool_invalidate">mono_mempool_invalidate</a></h4>
|
||||
<h4><a name="api:mono_mempool_stats">mono_mempool_stats</a></h4>
|
||||
<h4><a name="api:mono_mempool_contains_addr">mono_mempool_contains_addr</a></h4>
|
||||
|
||||
<h3>Bitsets</h3>
|
||||
|
||||
<p>MonoBitsets are a set of routines used to manipulate sets
|
||||
of bits.
|
||||
|
||||
<h4><a name="api:mono_bitset_alloc_size">mono_bitset_alloc_size</a></h4>
|
||||
<h4><a name="api:mono_bitset_clear">mono_bitset_clear</a></h4>
|
||||
<h4><a name="api:mono_bitset_clear_all">mono_bitset_clear_all</a></h4>
|
||||
<h4><a name="api:mono_bitset_clone">mono_bitset_clone</a></h4>
|
||||
<h4><a name="api:mono_bitset_copyto">mono_bitset_copyto</a></h4>
|
||||
<h4><a name="api:mono_bitset_count">mono_bitset_count</a></h4>
|
||||
<h4><a name="api:mono_bitset_equal">mono_bitset_equal</a></h4>
|
||||
<h4><a name="api:mono_bitset_find_first">mono_bitset_find_first</a></h4>
|
||||
<h4><a name="api:mono_bitset_find_last">mono_bitset_find_last</a></h4>
|
||||
<h4><a name="api:mono_bitset_find_start">mono_bitset_find_start</a></h4>
|
||||
<h4><a name="api:mono_bitset_foreach">mono_bitset_foreach</a></h4>
|
||||
<h4><a name="api:mono_bitset_free">mono_bitset_free</a></h4>
|
||||
<h4><a name="api:mono_bitset_intersection">mono_bitset_intersection</a></h4>
|
||||
<h4><a name="api:mono_bitset_invert">mono_bitset_invert</a></h4>
|
||||
<h4><a name="api:mono_bitset_mem_new">mono_bitset_mem_new</a></h4>
|
||||
<h4><a name="api:mono_bitset_new">mono_bitset_new</a></h4>
|
||||
<h4><a name="api:mono_bitset_set">mono_bitset_set</a></h4>
|
||||
<h4><a name="api:mono_bitset_set_all">mono_bitset_set_all</a></h4>
|
||||
<h4><a name="api:mono_bitset_size">mono_bitset_size</a></h4>
|
||||
<h4><a name="api:mono_bitset_sub">mono_bitset_sub</a></h4>
|
||||
<h4><a name="api:mono_bitset_test">mono_bitset_test</a></h4>
|
||||
<h4><a name="api:mono_bitset_test_bulk">mono_bitset_test_bulk</a></h4>
|
||||
<h4><a name="api:mono_bitset_union">mono_bitset_union</a></h4>
|
||||
<h4><a name="api:mono_bitset_find_first_unset">mono_bitset_find_first_unset</a></h4>
|
||||
<h4><a name="api:mono_bitset_intersection_2">mono_bitset_intersection_2</a></h4>
|
||||
|
||||
<h3>JIT utilities</h3>
|
||||
|
||||
<h4><a name="api:mono_signbit_double">mono_signbit_double</a></h4>
|
||||
<h4><a name="api:mono_signbit_float">mono_signbit_float</a></h4>
|
||||
|
||||
<h3>Function Pointers</h3>
|
||||
|
||||
<p>To wrap a function pointer into something that the Mono
|
||||
runtime can consume, you should use the mono_create_ftnptr.
|
||||
This is only important if you plan on running on the IA64
|
||||
architecture. Otherwise you can just use the function
|
||||
pointer address.
|
||||
|
||||
<h4><a name="api:mono_create_ftnptr">mono_create_ftnptr</a></h4>
|
||||
|
||||
|
||||
<h2>Notification Interface</h2>
|
||||
<h1>Notification Interface</h1>
|
||||
|
||||
<p>This is an internal profiler interface. In general, users
|
||||
would not be using this interface, but would be using the
|
||||
|
||||
@@ -0,0 +1,6 @@
|
||||
|
||||
|
||||
<h4><a name="api:mono_delegate_free_ftnptr">mono_delegate_free_ftnptr</a></h4>
|
||||
<h4><a name="api:mono_delegate_to_ftnptr">mono_delegate_to_ftnptr</a></h4>
|
||||
<h4><a name="api:mono_ftnptr_to_delegate">mono_ftnptr_to_delegate</a></h4>
|
||||
<h4><a name="api:mono_marshal_string_to_utf16">mono_marshal_string_to_utf16</a></h4>
|
||||
@@ -617,6 +617,7 @@ MONO_TYPESPEC_SIZE
|
||||
|
||||
<h4><a name="api:mono_image_get_table_info">mono_image_get_table_info</a></h4>
|
||||
<h4><a name="api:mono_image_get_table_rows">mono_image_get_table_rows</a></h4>
|
||||
<h4><a name="api:mono_metadata_get_table">mono_metadata_get_table</a></h4>
|
||||
<h4><a name="api:mono_metadata_decode_row_col">mono_metadata_decode_row_col</a></h4>
|
||||
<h4><a name="api:mono_metadata_decode_row">mono_metadata_decode_row</a></h4>
|
||||
<h4><a name="api:mono_metadata_compute_size">mono_metadata_compute_size</a></h4>
|
||||
@@ -630,10 +631,9 @@ MONO_TYPESPEC_SIZE
|
||||
<p>This is the low-level API for accessing the metadata
|
||||
images.
|
||||
|
||||
<h4><a name="api:mono_cli_rva_image_map">mono_cli_rva_image_map</a></h4>
|
||||
<h4><a name="api:mono_pe_file_open">mono_pe_file_open</a></h4>
|
||||
<h4><a name="api:mono_metadata_events_from_typedef">mono_metadata_events_from_typedef</a></h4>
|
||||
<h4><a name="api:mono_metadata_decode_table_row">mono_metadata_decode_table_row</a></h4>
|
||||
<h4><a name="api:mono_metadata_decode_table_row_col">mono_metadata_decode_table_row_col</a></h4>
|
||||
<h4><a name="api:mono_metadata_field_info">mono_metadata_field_info</a></h4>
|
||||
<h4><a name="api:mono_metadata_free_array">mono_metadata_free_array</a></h4>
|
||||
<h4><a name="api:mono_metadata_free_marshal_spec">mono_metadata_free_marshal_spec</a></h4>
|
||||
@@ -652,7 +652,6 @@ MONO_TYPESPEC_SIZE
|
||||
<h4><a name="api:mono_metadata_packing_from_typedef">mono_metadata_packing_from_typedef</a></h4>
|
||||
<h4><a name="api:mono_metadata_properties_from_typedef">mono_metadata_properties_from_typedef</a></h4>
|
||||
<h4><a name="api:mono_metadata_token_from_dor">mono_metadata_token_from_dor</a></h4>
|
||||
<h4><a name="api:mono_metadata_translate_token_index">mono_metadata_translate_token_index</a></h4>
|
||||
<h4><a name="api:mono_metadata_typedef_from_field">mono_metadata_typedef_from_field</a></h4>
|
||||
<h4><a name="api:mono_metadata_typedef_from_method">mono_metadata_typedef_from_method</a></h4>
|
||||
<h4><a name="api:mono_metadata_type_equal">mono_metadata_type_equal</a></h4>
|
||||
@@ -662,23 +661,24 @@ MONO_TYPESPEC_SIZE
|
||||
|
||||
<h3>Retrieving Objects from Tokens</h3>
|
||||
|
||||
<h4><a name="api:mono_metadata_parse_array">mono_metadata_parse_array</a></h4>
|
||||
<h4><a name="api:mono_metadata_parse_custom_mod">mono_metadata_parse_custom_mod</a></h4>
|
||||
<h4><a name="api:mono_metadata_parse_field_type">mono_metadata_parse_field_type</a></h4>
|
||||
<h4><a name="api:mono_metadata_parse_marshal_spec">mono_metadata_parse_marshal_spec</a></h4>
|
||||
<h4><a name="api:mono_metadata_parse_method_signature_full">mono_metadata_parse_method_signature_full</a></h4>
|
||||
<h4><a name="api:mono_metadata_parse_method_signature">mono_metadata_parse_method_signature</a></h4>
|
||||
<h4><a name="api:mono_metadata_parse_mh_full">mono_metadata_parse_mh_full</a></h4>
|
||||
<h4><a name="api:mono_metadata_parse_mh">mono_metadata_parse_mh</a></h4>
|
||||
<h4><a name="api:mono_metadata_parse_param">mono_metadata_parse_param</a></h4>
|
||||
<h4><a name="api:mono_metadata_parse_ret_type">mono_metadata_parse_ret_type</a></h4>
|
||||
<h4><a name="api:mono_metadata_parse_signature">mono_metadata_parse_signature</a></h4>
|
||||
<h4><a name="api:mono_metadata_parse_typedef_or_ref">mono_metadata_parse_typedef_or_ref</a></h4>
|
||||
<h4><a name="api:mono_metadata_parse_type_full">mono_metadata_parse_type_full</a></h4>
|
||||
<h4><a name="api:mono_metadata_parse_type">mono_metadata_parse_type</a></h4>
|
||||
|
||||
<h2>Generics Support</h2>
|
||||
|
||||
<h4><a name="api:mono_metadata_generic_class_equal">mono_metadata_generic_class_equal</a></h4>
|
||||
<h4><a name="api:mono_metadata_generic_class_hash">mono_metadata_generic_class_hash</a></h4>
|
||||
<h4><a name="api:mono_metadata_generic_class_is_valuetype">mono_metadata_generic_class_is_valuetype</a></h4>
|
||||
<h4><a name="api:mono_metadata_inflate_generic_inst">mono_metadata_inflate_generic_inst</a></h4>
|
||||
<h4><a name="api:mono_metadata_load_generic_params">mono_metadata_load_generic_params</a></h4>
|
||||
|
||||
<h2>Tokens</h2>
|
||||
|
||||
|
||||
@@ -1,159 +1,5 @@
|
||||
<h2>Methods</h2>
|
||||
<h3>Methods</h3>
|
||||
|
||||
<p>Methods are represented by the <code>MonoMethod*</code>
|
||||
instances. Various APIs surface these instances, but usually
|
||||
you will use the <a href="#method-desc">method description</a>
|
||||
API to get a handle to a Mono Method. You can <a href="method-invoking">invoke</a> those methods from C,
|
||||
or you can probe <a href="method-working">probe various properties</a> of a method, and in particular
|
||||
its <a href="method-signature">method signature</a> or get
|
||||
some <a href="method-header">low-level information</a> about them.
|
||||
|
||||
<p>The following code snippet from the Mono runtime shows you
|
||||
how to create a managed <code>System.Version</code> instance
|
||||
with four integers by looking up the constructor in the
|
||||
managed implementation of System.Version, creating an instance
|
||||
of the object, and then invoking the constructor on it.
|
||||
|
||||
<div class="mapi-header">
|
||||
MonoObject*
|
||||
create_version (MonoDomain *domain, guint32 major, guint32 minor, guint32 build, guint32 revision)
|
||||
{
|
||||
MonoClass *System_Version;
|
||||
MonoMethod *create_version;
|
||||
MonoError error;
|
||||
MonoObject *result;
|
||||
gpointer args [4];
|
||||
|
||||
System_Version = mono_class_from_name (mono_defaults.corlib, "System", "Version");
|
||||
|
||||
// Create a method description that we use to search for the
|
||||
// constructor method
|
||||
MonoMethodDesc *desc = mono_method_desc_new (":.ctor(int,int,int,int)", FALSE);
|
||||
create_version = mono_method_desc_search_in_class (desc, System_Version);
|
||||
mono_method_desc_free (desc);
|
||||
|
||||
// Setup the parameters to pass.
|
||||
args [0] = &major;
|
||||
args [1] = &minor;
|
||||
args [2] = &build;
|
||||
args [3] = &revision;
|
||||
|
||||
// Create the object instance
|
||||
result = mono_object_new_checked (domain, System_Version, &error);
|
||||
|
||||
// Raise an exception in case of an error
|
||||
mono_error_raise_exception (&error);
|
||||
|
||||
// Otherwise, invoke the constructor
|
||||
mono_runtime_invoke (create_version, result, args, NULL);
|
||||
|
||||
// Return ther esult
|
||||
return result;
|
||||
}
|
||||
|
||||
</div>
|
||||
|
||||
<a name="method-desc"></a>
|
||||
<h3>Method Descriptions</h3>
|
||||
|
||||
<p>Methods are represented by the <code>MonoMethod*</code>
|
||||
instances. To simplify the process of getting
|
||||
a <code>MonoMethod*</code>, you use Method Descriptors, which
|
||||
are C-strings that describe the method that you are looking
|
||||
for, and then you perform a search in either
|
||||
a <a href="mono-api-type.html">type</a>, or a
|
||||
loaded <a href="mono-api-image.html">image</a>.
|
||||
|
||||
|
||||
<p>To describe a method, you use the Method Description API.
|
||||
Method descriptions are used to locate a method in the
|
||||
executing program. They can either be fully specified, that
|
||||
is, they would include the namespace, class, method name and
|
||||
all of its arguments or they omit the namespace and arguments
|
||||
and even use wildcard matches for the class name and method names.
|
||||
|
||||
<p>You use the fully specified version to identify a
|
||||
particular method, or you can use the partial version to find
|
||||
a method or a family of methods in the code.
|
||||
|
||||
<p>Method descriptions are typically created from a C string
|
||||
representation, and take the following form:
|
||||
|
||||
<p><code>[namespace.]classname:methodname[(args...)]</code>
|
||||
|
||||
<p>Both classname and methodname can contain the '*' character
|
||||
which can be used to match anything. Arguments are separated
|
||||
by commas.
|
||||
|
||||
<p>You can use the type shortcuts to match the fully qualified
|
||||
parameter types. The supported type shortcuts are:
|
||||
<code>char</code>,
|
||||
<code>bool</code>,
|
||||
<code>byte</code>,
|
||||
<code>sbyte</code>,
|
||||
<code>uint16</code>,
|
||||
<code>int16</code>,
|
||||
<code>uint</code>,
|
||||
<code>int</code>,
|
||||
<code>ulong</code>,
|
||||
<code>long</code>,
|
||||
<code>uintptr</code>,
|
||||
<code>intptr</code>,
|
||||
<code>single</code>,
|
||||
<code>double</code>,
|
||||
<code>string</code> and
|
||||
<code>object</code>.
|
||||
|
||||
<p>The type parameters can use the "&" and "*" type modifiers.
|
||||
|
||||
<p>Examples of method descriptions:
|
||||
<ul>
|
||||
<li>"Monitor:Exit": matches classes and methods called "Monitor.Exit"
|
||||
<li>"Monitor:enter_with_atomic_var(object,bool&)":
|
||||
matches a method in the class Monitor with two
|
||||
specific type parameters.
|
||||
<li>":.ctor(int,int,int,int)": matches constructors
|
||||
that take four integers.
|
||||
<li>"System.Globalization.CultureInfo:CreateCulture(string,bool)":
|
||||
matches the CreateCultureMethod that takes a string
|
||||
and a boolean on the System.Globalization.CultureInfo class.
|
||||
</ul>
|
||||
|
||||
<p>You can
|
||||
then <a href="api:mono_method_desc_search_in_image">search for
|
||||
methods in MonoImages</a>
|
||||
or <a href="api:mono_method_desc_search_in_class">search for
|
||||
methods in classes</a>.
|
||||
|
||||
<h4><a name="api:mono_method_desc_new">mono_method_desc_new</a></h4>
|
||||
<h4><a name="api:mono_method_desc_free">mono_method_desc_free</a></h4>
|
||||
<h4><a name="api:mono_method_desc_from_method">mono_method_desc_from_method</a></h4>
|
||||
<h4><a name="api:mono_method_desc_full_match">mono_method_desc_full_match</a></h4>
|
||||
<h4><a name="api:mono_method_desc_match">mono_method_desc_match</a></h4>
|
||||
<h4><a name="api:mono_method_desc_search_in_class">mono_method_desc_search_in_class</a></h4>
|
||||
<h4><a name="api:mono_method_desc_search_in_image">mono_method_desc_search_in_image</a></h4>
|
||||
|
||||
<a name="method-working"></a>
|
||||
<h3>Working with Methods</h3>
|
||||
|
||||
<h4><a name="api:mono_method_full_name">mono_method_full_name</a></h4>
|
||||
<h4><a name="api:mono_method_get_class">mono_method_get_class</a></h4>
|
||||
<h4><a name="api:mono_method_get_flags">mono_method_get_flags</a></h4>
|
||||
<h4><a name="api:mono_method_get_last_managed">mono_method_get_last_managed</a></h4>
|
||||
<h4><a name="api:mono_method_get_marshal_info">mono_method_get_marshal_info</a></h4>
|
||||
<h4><a name="api:mono_method_get_name">mono_method_get_name</a></h4>
|
||||
<h4><a name="api:mono_method_get_object">mono_method_get_object</a></h4>
|
||||
<h4><a name="api:mono_method_get_param_names">mono_method_get_param_names</a></h4>
|
||||
<h4><a name="api:mono_method_get_param_token">mono_method_get_param_token</a></h4>
|
||||
<h4><a name="api:mono_method_get_signature">mono_method_get_signature</a></h4>
|
||||
<h4><a name="api:mono_method_get_index">mono_method_get_index</a></h4>
|
||||
<h4><a name="api:mono_method_get_signature_full">mono_method_get_signature_full</a></h4>
|
||||
<h4><a name="api:mono_method_get_token">mono_method_get_token</a></h4>
|
||||
<h4><a name="api:mono_method_get_unmanaged_thunk">mono_method_get_unmanaged_thunk</a></h4>
|
||||
<h4><a name="api:mono_method_has_marshal_info">mono_method_has_marshal_info</a></h4>
|
||||
<h4><a name="api:mono_method_verify">mono_method_verify</a></h4>
|
||||
|
||||
<a name="method-invoking"></a>
|
||||
<h3>Invoking Methods</h3>
|
||||
|
||||
<h4><a name="api:mono_runtime_invoke">mono_runtime_invoke</a></h4>
|
||||
@@ -162,7 +8,7 @@ If you want to invoke generic methods, you must call the method on the
|
||||
"inflated" class, which you can obtain from the
|
||||
<tt>mono_object_get_class()</tt>
|
||||
|
||||
<div class="mapi-code">
|
||||
<div class="code">
|
||||
MonoClass *clazz;
|
||||
MonoMethod *method;
|
||||
|
||||
@@ -183,8 +29,29 @@ mono_runtime_invoke (method, obj, args, &exception);
|
||||
<h4><a name="api:mono_runtime_delegate_invoke">mono_runtime_delegate_invoke</a></h4>
|
||||
|
||||
<h4><a name="api:mono_method_body_get_object">mono_method_body_get_object</a></h4>
|
||||
<h4><a name="api:mono_method_desc_free">mono_method_desc_free</a></h4>
|
||||
<h4><a name="api:mono_method_desc_from_method">mono_method_desc_from_method</a></h4>
|
||||
<h4><a name="api:mono_method_desc_full_match">mono_method_desc_full_match</a></h4>
|
||||
<h4><a name="api:mono_method_desc_match">mono_method_desc_match</a></h4>
|
||||
<h4><a name="api:mono_method_desc_new">mono_method_desc_new</a></h4>
|
||||
<h4><a name="api:mono_method_desc_search_in_class">mono_method_desc_search_in_class</a></h4>
|
||||
<h4><a name="api:mono_method_desc_search_in_image">mono_method_desc_search_in_image</a></h4>
|
||||
<h4><a name="api:mono_method_full_name">mono_method_full_name</a></h4>
|
||||
<h4><a name="api:mono_method_get_class">mono_method_get_class</a></h4>
|
||||
<h4><a name="api:mono_method_get_flags">mono_method_get_flags</a></h4>
|
||||
<h4><a name="api:mono_method_get_last_managed">mono_method_get_last_managed</a></h4>
|
||||
<h4><a name="api:mono_method_get_marshal_info">mono_method_get_marshal_info</a></h4>
|
||||
<h4><a name="api:mono_method_get_name">mono_method_get_name</a></h4>
|
||||
<h4><a name="api:mono_method_get_object">mono_method_get_object</a></h4>
|
||||
<h4><a name="api:mono_method_get_param_names">mono_method_get_param_names</a></h4>
|
||||
<h4><a name="api:mono_method_get_param_token">mono_method_get_param_token</a></h4>
|
||||
<h4><a name="api:mono_method_get_signature">mono_method_get_signature</a></h4>
|
||||
<h4><a name="api:mono_method_get_index">mono_method_get_index</a></h4>
|
||||
<h4><a name="api:mono_method_get_signature_full">mono_method_get_signature_full</a></h4>
|
||||
<h4><a name="api:mono_method_get_token">mono_method_get_token</a></h4>
|
||||
<h4><a name="api:mono_method_has_marshal_info">mono_method_has_marshal_info</a></h4>
|
||||
<h4><a name="api:mono_method_verify">mono_method_verify</a></h4>
|
||||
|
||||
<a name="method-signature"></a>
|
||||
<h3>Method Signatures</h3>
|
||||
|
||||
<h4><a name="api:mono_method_signature">mono_method_signature</a></h4>
|
||||
@@ -196,13 +63,11 @@ mono_runtime_invoke (method, obj, args, &exception);
|
||||
<h4><a name="api:mono_signature_get_return_type">mono_signature_get_return_type</a></h4>
|
||||
<h4><a name="api:mono_signature_hash">mono_signature_hash</a></h4>
|
||||
<h4><a name="api:mono_signature_is_instance">mono_signature_is_instance</a></h4>
|
||||
<h4><a name="api:mono_signature_param_is_out">mono_signature_param_is_out</a></h4>
|
||||
<h4><a name="api:mono_signature_vararg_start">mono_signature_vararg_start</a></h4>
|
||||
<h4><a name="api:mono_param_get_objects">mono_param_get_objects</a></h4>
|
||||
<h4><a name="api:mono_get_method_full">mono_get_method_full</a></h4>
|
||||
<h4><a name="api:mono_get_method">mono_get_method</a></h4>
|
||||
|
||||
<a name="method-header"></a>
|
||||
<h3>Methods Header Operations</h3>
|
||||
|
||||
<h4><a name="api:mono_method_get_header">mono_method_get_header</a></h4>
|
||||
|
||||
@@ -6,17 +6,15 @@
|
||||
|
||||
<p>The object API has methods for accessing <a
|
||||
href="#fields">fields</a>, <a
|
||||
href="#properties">properties</a>, <a href="mono-api-methods.html">methods</a>, <a
|
||||
href="#properties">properties</a>, <a
|
||||
href="#events">events</a>, <a href="#delegates">delegates</a>.
|
||||
|
||||
|
||||
|
||||
<p>There are some advanced uses that are useful to document
|
||||
here dealing with <a href="#remote">remote fields</a>.
|
||||
|
||||
<h2>Synopsis</h2>
|
||||
|
||||
<div class="mapi-header">
|
||||
<div class="header">
|
||||
#include <metadata/object.h>
|
||||
|
||||
typedef struct MonoVTable MonoVTable;
|
||||
@@ -45,7 +43,7 @@ typedef struct {
|
||||
@API_IDX@
|
||||
</div>
|
||||
|
||||
<p>`MonoObject` is the base definition for all managed objects
|
||||
<p>MonoObject is the base definition for all managed objects
|
||||
in the Mono runtime, it represents the <a
|
||||
href="http://www.mono-project.com/monodoc/T:System.Object">System.Object</a>
|
||||
managed type.
|
||||
@@ -56,11 +54,12 @@ typedef struct {
|
||||
following the pattern where the parent class is the first
|
||||
field of a structure definition, for example:
|
||||
|
||||
<div class="mapi-code">
|
||||
typedef struct {
|
||||
MonoObject parent;
|
||||
int my_new_field;
|
||||
} MyNewObject</div>
|
||||
<div class="code">
|
||||
typedef struct {
|
||||
MonoObject parent;
|
||||
int my_new_field;
|
||||
} MyNewObject
|
||||
</div>
|
||||
|
||||
<a name="objects"></a>
|
||||
<h2>Core Object Methods</h2>
|
||||
@@ -70,7 +69,7 @@ typedef struct {
|
||||
<p>For example, if you wanted to create an object of type
|
||||
System.Version, you would use a piece of code like this:
|
||||
|
||||
<div class="mapi-code">
|
||||
<div class="code">
|
||||
MonoClass *version_class;
|
||||
MonoObject *result;
|
||||
|
||||
@@ -80,7 +79,7 @@ version_class = mono_class_from_name (mono_get_corlib (),
|
||||
|
||||
/* Create an object of that class */
|
||||
result = mono_object_new (mono_domain_get (), version_class);
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<h4><a name="api:mono_object_new_alloc_specific">mono_object_new_alloc_specific</a></h4>
|
||||
<h4><a name="api:mono_object_new_fast">mono_object_new_fast</a></h4>
|
||||
@@ -95,8 +94,6 @@ result = mono_object_new (mono_domain_get (), version_class);
|
||||
<h4><a name="api:mono_object_unbox">mono_object_unbox</a></h4>
|
||||
<h4><a name="api:mono_object_castclass_mbyref">mono_object_castclass_mbyref</a></h4>
|
||||
<h4><a name="api:mono_object_get_size">mono_object_get_size</a></h4>
|
||||
<h4><a name="api:mono_object_hash">mono_object_hash</a></h4>
|
||||
<h4><a name="api:mono_object_to_string">mono_object_to_string</a></h4>
|
||||
|
||||
<a name="valuetypes"></a>
|
||||
<h2>Value Types</h2>
|
||||
@@ -115,17 +112,19 @@ result = mono_object_new (mono_domain_get (), version_class);
|
||||
elements of type <tt>System.Byte</tt>, and sets the values
|
||||
0xca and 0xfe on it:
|
||||
|
||||
<pre class="mapi-code">
|
||||
MonoArray *CreateByteArray (MonoDomain *domain)
|
||||
{
|
||||
MonoArray *data;
|
||||
<pre class="code">
|
||||
|
||||
data = mono_array_new (domain, mono_get_byte_class (), 2);
|
||||
mono_array_set (data, guint8, 0, 0xca);
|
||||
mono_array_set (data, guint8, 0, 0xfe);
|
||||
MonoArray *CreateByteArray (MonoDomain *domain)
|
||||
{
|
||||
MonoArray *data;
|
||||
|
||||
data = mono_array_new (domain, mono_get_byte_class (), 2);
|
||||
mono_array_set (data, guint8, 0, 0xca);
|
||||
mono_array_set (data, guint8, 0, 0xfe);
|
||||
|
||||
return data;
|
||||
}
|
||||
|
||||
return data;
|
||||
}
|
||||
</pre>
|
||||
|
||||
<h3>Creating Arrays</h3>
|
||||
@@ -138,31 +137,12 @@ MonoArray *CreateByteArray (MonoDomain *domain)
|
||||
|
||||
<h3>Using Arrays</h3>
|
||||
|
||||
<p>Arrays are represented by the `MonoArray` data type and are
|
||||
instances of `MonoObject`. While you can use the `bounds`
|
||||
and `max_length` fields of the type, the actual storage
|
||||
(represented by `vector`) is not very useful. Instead you
|
||||
should use one of the accesor methods described below to
|
||||
fetch or set the values in the array.
|
||||
|
||||
<p>When setting values in an array, you should
|
||||
use <a href="api:mono_array_set">mono_array_set</a> for
|
||||
setting elements in an array that contains value types, and
|
||||
<a
|
||||
href="api:mono_array_setref">mono_array_setref</a> for arrays
|
||||
that contain reference types.
|
||||
|
||||
<p>The <a href="api:mono_array_get">mono_array_get</a>,
|
||||
<a href="api:mono_array_set">mono_array_set</a> and <a
|
||||
href="api:mono_array_setref">mono_array_setref</a> are C
|
||||
macros that wrap the underlying array access.
|
||||
|
||||
<h4><a name="api:mono_array_get">mono_array_get</a></h4>
|
||||
<h4><a name="api:mono_array_length">mono_array_length</a></h4>
|
||||
<h4><a name="api:mono_array_set">mono_array_set</a></h4>
|
||||
<h4><a name="api:mono_array_setref">mono_array_setref</a></h4>
|
||||
<h4><a name="api:mono_array_length">mono_array_length</a></h4>
|
||||
<h4><a name="api:mono_array_addr">mono_array_addr</a></h4>
|
||||
<h4><a name="api:mono_array_addr_with_size">mono_array_addr_with_size</a></h4>
|
||||
<h4><a name="api:mono_array_get">mono_array_get</a></h4>
|
||||
<h4><a name="api:mono_array_element_size">mono_array_element_size</a></h4>
|
||||
|
||||
<a name="fields"></a>
|
||||
@@ -210,7 +190,3 @@ MonoArray *CreateByteArray (MonoDomain *domain)
|
||||
<h4><a name="api:mono_store_remote_field">mono_store_remote_field</a></h4>
|
||||
<h4><a name="api:mono_store_remote_field_new">mono_store_remote_field_new</a></h4>
|
||||
|
||||
<a name="delegates"></a>
|
||||
<h2>Delegates</h2>
|
||||
<h4><a name="api:mono_get_delegate_begin_invoke">mono_get_delegate_begin_invoke</a></h4>
|
||||
<h4><a name="api:mono_get_delegate_end_invoke">mono_get_delegate_end_invoke</a></h4>
|
||||
@@ -1,16 +1,11 @@
|
||||
<h2>Fetching Types, and Basic Reflection</h2>
|
||||
|
||||
<h4><a name="api:mono_custom_attrs_get_attr">mono_custom_attrs_get_attr</a></h4>
|
||||
<h4><a name="api:mono_reflection_assembly_get_assembly">mono_reflection_assembly_get_assembly</a></h4>
|
||||
<h4><a name="api:mono_reflection_free_type_info">mono_reflection_free_type_info</a></h4>
|
||||
<h4><a name="api:mono_reflection_get_custom_attrs_blob">mono_reflection_get_custom_attrs_blob</a></h4>
|
||||
<h4><a name="api:mono_reflection_get_custom_attrs_by_type">mono_reflection_get_custom_attrs_by_type</a></h4>
|
||||
<h4><a name="api:mono_reflection_get_custom_attrs_data">mono_reflection_get_custom_attrs_data</a></h4>
|
||||
<h4><a name="api:mono_reflection_get_custom_attrs">mono_reflection_get_custom_attrs</a></h4>
|
||||
<h4><a name="api:mono_custom_attrs_get_attr">mono_custom_attrs_get_attr</a></h4>
|
||||
<h4><a name="api:mono_reflection_get_token">mono_reflection_get_token</a></h4>
|
||||
<h4><a name="api:mono_reflection_get_type">mono_reflection_get_type</a></h4>
|
||||
<h4><a name="api:mono_reflection_parse_type">mono_reflection_parse_type</a></h4>
|
||||
<h4><a name="api:mono_reflection_type_get_type">mono_reflection_type_get_type</a></h4>
|
||||
<h4><a name="api:mono_reflection_type_from_name">mono_reflection_type_from_name</a></h4>
|
||||
<h4><a name="api:mono_reflection_get_custom_attrs_info">mono_reflection_get_custom_attrs_info</a></h4>
|
||||
|
||||
|
||||
@@ -1,5 +1,7 @@
|
||||
<h3>Security Manager</h3>
|
||||
|
||||
<h4><a name="api:mono_get_context_capture_method">mono_get_context_capture_method</a></h4>
|
||||
|
||||
<h3>Declarative Security</h3>
|
||||
|
||||
<h4><a name="api:mono_declsec_flags_from_assembly">mono_declsec_flags_from_assembly</a></h4>
|
||||
|
||||
@@ -4,7 +4,7 @@
|
||||
|
||||
<h3>Synopsis</h3>
|
||||
|
||||
<div class="mapi-header">
|
||||
<div class="header">
|
||||
#include <metadata/object.h>
|
||||
|
||||
typedef struct {
|
||||
@@ -17,10 +17,10 @@ typedef struct {
|
||||
</div>
|
||||
|
||||
<p>All of the operations on strings are done on pointers to
|
||||
`MonoString` objects, like this:
|
||||
MonoString objects, like this:
|
||||
|
||||
<div class="mapi-code">
|
||||
MonoString *hello = mono_string_new (mono_domain_get (), "hello, world");
|
||||
<div class="code">
|
||||
MonoString *hello = mono_string_new (mono_domain_get (), "hello, world");
|
||||
</div>
|
||||
|
||||
<p>Strings are bound to a particular application domain, which
|
||||
@@ -37,16 +37,12 @@ MonoString *hello = mono_string_new (mono_domain_get (), "hello, world");
|
||||
<h4><a name="api:mono_string_new_len">mono_string_new_len</a></h4>
|
||||
<h4><a name="api:mono_string_new_size">mono_string_new_size</a></h4>
|
||||
<h4><a name="api:mono_string_new_utf16">mono_string_new_utf16</a></h4>
|
||||
<h4><a name="api:mono_string_new_utf32">mono_string_new_utf32</a></h4>
|
||||
<h4><a name="api:mono_string_from_utf16">mono_string_from_utf16</a></h4>
|
||||
<h4><a name="api:mono_string_from_utf32">mono_string_from_utf32</a></h4>
|
||||
|
||||
<h3>Conversions</h3>
|
||||
|
||||
<h4><a name="api:mono_string_to_utf16">mono_string_to_utf16</a></h4>
|
||||
<h4><a name="api:mono_string_to_utf8">mono_string_to_utf8</a></h4>
|
||||
<h4><a name="api:mono_string_to_utf8_checked">mono_string_to_utf8_checked</a></h4>
|
||||
<h4><a name="api:mono_string_to_utf32">mono_string_to_utf32</a></h4>
|
||||
|
||||
<h3>Methods</h3>
|
||||
|
||||
@@ -59,3 +55,23 @@ MonoString *hello = mono_string_new (mono_domain_get (), "hello, world");
|
||||
<h4><a name="api:mono_string_length">mono_string_length</a></h4>
|
||||
|
||||
|
||||
<h3>Other Encodings</h3>
|
||||
|
||||
<p>These routines are used when coping with strings that come
|
||||
from Mono's environment, and might be encoded in one or more
|
||||
of the external encodings.
|
||||
|
||||
<p>For example, some file systems might historically contain a
|
||||
mix of file names with both old and new encodings, typically
|
||||
UTF8 for new files, and the old files would be encoded in an 8
|
||||
bit character set (ISO-8859-1 for example).
|
||||
|
||||
<p>These routines try a number of encodings, those specified
|
||||
in the <tt>MONO_ENCODINGS</tt> environment variable and return
|
||||
unicode strings that can be used internally.
|
||||
|
||||
<p>See the mono(1) man page for more details.
|
||||
|
||||
<h4><a name="api:mono_unicode_from_external">mono_unicode_from_external</a></h4>
|
||||
<h4><a name="api:mono_unicode_to_external">mono_unicode_to_external</a></h4>
|
||||
<h4><a name="api:mono_utf8_from_external">mono_utf8_from_external</a></h4>
|
||||
@@ -6,28 +6,19 @@
|
||||
<h4><a name="api:mono_thread_current">mono_thread_current</a></h4>
|
||||
<h4><a name="api:mono_thread_detach">mono_thread_detach</a></h4>
|
||||
<h4><a name="api:mono_thread_exit">mono_thread_exit</a></h4>
|
||||
<h4><a name="api:mono_thread_get_managed_id">mono_thread_get_managed_id</a></h4>
|
||||
<h4><a name="api:mono_thread_get_name_utf8">mono_thread_get_name_utf8</a></h4>
|
||||
<h4><a name="api:mono_thread_is_foreign">mono_thread_is_foreign</a></h4>
|
||||
<h4><a name="api:mono_thread_manage">mono_thread_manage</a></h4>
|
||||
<h4><a name="api:mono_thread_new_init">mono_thread_new_init</a></h4>
|
||||
<h4><a name="api:mono_threads_get_default_stacksize">mono_threads_get_default_stacksize</a></h4>
|
||||
<h4><a name="api:mono_threads_install_cleanup">mono_threads_install_cleanup</a></h4>
|
||||
<h4><a name="api:mono_threads_set_default_stacksize">mono_threads_set_default_stacksize</a></h4>
|
||||
<h4><a name="api:mono_thread_set_manage_callback">mono_thread_set_manage_callback</a></h4>
|
||||
<h4><a name="api:mono_thread_stop">mono_thread_stop</a></h4>
|
||||
|
||||
<h4><a name="api:mono_thread_get_main">mono_thread_get_main</a></h4>
|
||||
<h4><a name="api:mono_thread_set_main">mono_thread_set_main</a></h4>
|
||||
<h4><a name="api:mono_pthread_key_for_tls">mono_pthread_key_for_tls</a></h4>
|
||||
|
||||
<h3>Monitors</h3>
|
||||
|
||||
<h4><a name="api:mono_monitor_enter">mono_monitor_enter</a></h4>
|
||||
<h4><a name="api:mono_monitor_enter_v4">mono_monitor_enter_v4</a></h4>
|
||||
<h4><a name="api:mono_monitor_exit">mono_monitor_exit</a></h4>
|
||||
<h4><a name="api:mono_monitor_try_enter">mono_monitor_try_enter</a></h4>
|
||||
|
||||
<h3>Initialization and Shutdown</h3>
|
||||
|
||||
<h4><a name="api:mono_thread_cleanup">mono_thread_cleanup</a></h4>
|
||||
<h4><a name="api:mono_thread_detach_if_exiting">mono_thread_detach_if_exiting</a></h4>
|
||||
<h4><a name="api:mono_thread_init">mono_thread_init</a></h4>
|
||||
@@ -2,7 +2,7 @@
|
||||
|
||||
<h3>Synopsis</h3>
|
||||
|
||||
<div class="mapi-header">
|
||||
<div class="header">
|
||||
#include <metadata/metadata.h>
|
||||
#include <metadata/class.h>
|
||||
|
||||
@@ -19,17 +19,13 @@ typedef struct _MonoType MonoType;
|
||||
<h4><a name="api:mono_type_full_name">mono_type_full_name</a></h4>
|
||||
<h4><a name="api:mono_type_get_array_type">mono_type_get_array_type</a></h4>
|
||||
<h4><a name="api:mono_type_get_class">mono_type_get_class</a></h4>
|
||||
<h4><a name="api:mono_type_get_desc">mono_type_get_desc</a></h4>
|
||||
<h4><a name="api:mono_type_get_modifiers">mono_type_get_modifiers</a></h4>
|
||||
<h4><a name="api:mono_type_get_name">mono_type_get_name</a></h4>
|
||||
<h4><a name="api:mono_type_get_ptr_type">mono_type_get_ptr_type</a></h4>
|
||||
<h4><a name="api:mono_type_get_signature">mono_type_get_signature</a></h4>
|
||||
<h4><a name="api:mono_type_get_type">mono_type_get_type</a></h4>
|
||||
<h4><a name="api:mono_type_get_underlying_type">mono_type_get_underlying_type</a></h4>
|
||||
<h4><a name="api:mono_type_is_byref">mono_type_is_byref</a></h4>
|
||||
<h4><a name="api:mono_type_is_pointer">mono_type_is_pointer</a></h4>
|
||||
<h4><a name="api:mono_type_is_reference">mono_type_is_reference</a></h4>
|
||||
<h4><a name="api:mono_type_is_struct">mono_type_is_struct</a></h4>
|
||||
<h4><a name="api:mono_type_is_void">mono_type_is_void</a></h4>
|
||||
<h4><a name="api:mono_type_size">mono_type_size</a></h4>
|
||||
<h4><a name="api:mono_type_stack_size">mono_type_stack_size</a></h4>
|
||||
<h4><a name="api:mono_type_to_unmanaged">mono_type_to_unmanaged</a></h4>
|
||||
|
||||
@@ -5,6 +5,8 @@
|
||||
<h4><a name="api:mono_compile_method">mono_compile_method</a></h4>
|
||||
<h4><a name="api:mono_config_for_assembly">mono_config_for_assembly</a></h4>
|
||||
<h4><a name="api:mono_dllmap_insert">mono_dllmap_insert</a></h4>
|
||||
<h4><a name="api:mono_environment_exitcode_get">mono_environment_exitcode_get</a></h4>
|
||||
<h4><a name="api:mono_environment_exitcode_set">mono_environment_exitcode_set</a></h4>
|
||||
<h4><a name="api:mono_free_method">mono_free_method</a></h4>
|
||||
<h4><a name="api:mono_free_verify_list">mono_free_verify_list</a></h4>
|
||||
<h4><a name="api:mono_get_config_dir">mono_get_config_dir</a></h4>
|
||||
@@ -13,8 +15,13 @@
|
||||
<h4><a name="api:mono_get_method_full">mono_get_method_full</a></h4>
|
||||
<h4><a name="api:mono_get_method">mono_get_method</a></h4>
|
||||
<h4><a name="api:mono_get_root_domain">mono_get_root_domain</a></h4>
|
||||
<h4><a name="api:mono_init_from_assembly">mono_init_from_assembly</a></h4>
|
||||
<h4><a name="api:mono_init">mono_init</a></h4>
|
||||
<h4><a name="api:mono_init_version">mono_init_version</a></h4>
|
||||
<h4><a name="api:mono_jit_exec">mono_jit_exec</a></h4>
|
||||
<h4><a name="api:mono_lookup_internal_call">mono_lookup_internal_call</a></h4>
|
||||
<h4><a name="api:mono_lookup_pinvoke_call">mono_lookup_pinvoke_call</a></h4>
|
||||
<h4><a name="api:mono_main">mono_main</a></h4>
|
||||
<h4><a name="api:mono_parse_default_optimizations">mono_parse_default_optimizations</a></h4>
|
||||
<h4><a name="api:mono_ptr_class_get">mono_ptr_class_get</a></h4>
|
||||
<h4><a name="api:mono_register_bundled_assemblies">mono_register_bundled_assemblies</a></h4>
|
||||
@@ -27,4 +34,6 @@
|
||||
<h4><a name="api:mono_runtime_quit">mono_runtime_quit</a></h4>
|
||||
<h4><a name="api:mono_runtime_run_main">mono_runtime_run_main</a></h4>
|
||||
<h4><a name="api:mono_table_info_get_rows">mono_table_info_get_rows</a></h4>
|
||||
<h4><a name="api:mono_upgrade_remote_class_wrapper">mono_upgrade_remote_class_wrapper</a></h4>
|
||||
<h4><a name="api:mono_verify_corlib">mono_verify_corlib</a></h4>
|
||||
<h4><a name="api:mono_vtable_get_static_field_data">mono_vtable_get_static_field_data</a></h4>
|
||||
@@ -1,5 +1,111 @@
|
||||
<h2>Utility Methods</h2>
|
||||
|
||||
<h3>Bitsets</h3>
|
||||
|
||||
<p>MonoBitsets are a set of routines used to manipulate sets
|
||||
of bits.
|
||||
|
||||
<h4><a name="api:mono_bitset_alloc_size">mono_bitset_alloc_size</a></h4>
|
||||
<h4><a name="api:mono_bitset_clear">mono_bitset_clear</a></h4>
|
||||
<h4><a name="api:mono_bitset_clear_all">mono_bitset_clear_all</a></h4>
|
||||
<h4><a name="api:mono_bitset_clone">mono_bitset_clone</a></h4>
|
||||
<h4><a name="api:mono_bitset_copyto">mono_bitset_copyto</a></h4>
|
||||
<h4><a name="api:mono_bitset_count">mono_bitset_count</a></h4>
|
||||
<h4><a name="api:mono_bitset_equal">mono_bitset_equal</a></h4>
|
||||
<h4><a name="api:mono_bitset_find_first">mono_bitset_find_first</a></h4>
|
||||
<h4><a name="api:mono_bitset_find_last">mono_bitset_find_last</a></h4>
|
||||
<h4><a name="api:mono_bitset_find_start">mono_bitset_find_start</a></h4>
|
||||
<h4><a name="api:mono_bitset_foreach">mono_bitset_foreach</a></h4>
|
||||
<h4><a name="api:mono_bitset_free">mono_bitset_free</a></h4>
|
||||
<h4><a name="api:mono_bitset_intersection">mono_bitset_intersection</a></h4>
|
||||
<h4><a name="api:mono_bitset_invert">mono_bitset_invert</a></h4>
|
||||
<h4><a name="api:mono_bitset_mem_new">mono_bitset_mem_new</a></h4>
|
||||
<h4><a name="api:mono_bitset_new">mono_bitset_new</a></h4>
|
||||
<h4><a name="api:mono_bitset_set">mono_bitset_set</a></h4>
|
||||
<h4><a name="api:mono_bitset_set_all">mono_bitset_set_all</a></h4>
|
||||
<h4><a name="api:mono_bitset_size">mono_bitset_size</a></h4>
|
||||
<h4><a name="api:mono_bitset_sub">mono_bitset_sub</a></h4>
|
||||
<h4><a name="api:mono_bitset_test">mono_bitset_test</a></h4>
|
||||
<h4><a name="api:mono_bitset_test_bulk">mono_bitset_test_bulk</a></h4>
|
||||
<h4><a name="api:mono_bitset_union">mono_bitset_union</a></h4>
|
||||
<h4><a name="api:mono_bitset_find_first_unset">mono_bitset_find_first_unset</a></h4>
|
||||
<h4><a name="api:mono_bitset_intersection_2">mono_bitset_intersection_2</a></h4>
|
||||
|
||||
<h3>Hashtables</h3>
|
||||
|
||||
<p><tt>GHashTable</tt> is used when you need to store object
|
||||
references into a hashtable, objects stored in a
|
||||
<tt>MonoGHashTable</tt> are properly tracked by the garbage
|
||||
collector.
|
||||
|
||||
<p>The <tt>MonoGHashTable</tt> data type has the same API as
|
||||
the GLIB.
|
||||
|
||||
<h4><a name="api:mono_g_hash_table_destroy">mono_g_hash_table_destroy</a></h4>
|
||||
<h4><a name="api:mono_g_hash_table_foreach">mono_g_hash_table_foreach</a></h4>
|
||||
<h4><a name="api:mono_g_hash_table_foreach_remove">mono_g_hash_table_foreach_remove</a></h4>
|
||||
<h4><a name="api:mono_g_hash_table_foreach_steal">mono_g_hash_table_foreach_steal</a></h4>
|
||||
<h4><a name="api:mono_g_hash_table_insert">mono_g_hash_table_insert</a></h4>
|
||||
<h4><a name="api:mono_g_hash_table_lookup">mono_g_hash_table_lookup</a></h4>
|
||||
<h4><a name="api:mono_g_hash_table_lookup_extended">mono_g_hash_table_lookup_extended</a></h4>
|
||||
<h4><a name="api:mono_g_hash_table_new">mono_g_hash_table_new</a></h4>
|
||||
<h4><a name="api:mono_g_hash_table_new_full">mono_g_hash_table_new_full</a></h4>
|
||||
<h4><a name="api:mono_g_hash_table_remap">mono_g_hash_table_remap</a></h4>
|
||||
<h4><a name="api:mono_g_hash_table_remove">mono_g_hash_table_remove</a></h4>
|
||||
<h4><a name="api:mono_g_hash_table_replace">mono_g_hash_table_replace</a></h4>
|
||||
<h4><a name="api:mono_g_hash_table_size">mono_g_hash_table_size</a></h4>
|
||||
<h4><a name="api:mono_g_hash_table_steal">mono_g_hash_table_steal</a></h4>
|
||||
|
||||
<h3>SHA1 Signatures</h3>
|
||||
|
||||
<h4><a name="api:mono_sha1_init">mono_sha1_init</a></h4>
|
||||
<h4><a name="api:mono_sha1_update">mono_sha1_update</a></h4>
|
||||
<h4><a name="api:mono_sha1_get_digest_from_file">mono_sha1_get_digest_from_file</a></h4>
|
||||
<h4><a name="api:mono_sha1_get_digest">mono_sha1_get_digest</a></h4>
|
||||
<h4><a name="api:mono_sha1_final">mono_sha1_final</a></h4>
|
||||
|
||||
<h3>MD5 Signatures</h3>
|
||||
|
||||
<h4><a name="api:mono_md5_init">mono_md5_init</a></h4>
|
||||
<h4><a name="api:mono_md5_update">mono_md5_update</a></h4>
|
||||
<h4><a name="api:mono_md5_get_digest_from_file">mono_md5_get_digest_from_file</a></h4>
|
||||
<h4><a name="api:mono_md5_get_digest">mono_md5_get_digest</a></h4>
|
||||
<h4><a name="api:mono_md5_final">mono_md5_final</a></h4>
|
||||
|
||||
<h4><a name="api:mono_digest_get_public_token">mono_digest_get_public_token</a></h4>
|
||||
|
||||
<h3>Memory Pools</h3>
|
||||
|
||||
<p>Memory pools are a convenient way of tracking memory
|
||||
allocations that are used for one specific task, they are also
|
||||
faster than using the standard memory allocation procedures,
|
||||
as they are designed to be used only by a single thread at a
|
||||
time.
|
||||
|
||||
<p><tt>MonoMemPool</tt> objects are not thread safe, which
|
||||
means that you should not share the objects across multiple
|
||||
threads without providing proper locking around it (unlike
|
||||
<tt>malloc</tt> and <tt>free</tt> which are thread safe).
|
||||
|
||||
<p>When a <tt>MonoMemPool</tt> is released with
|
||||
<tt>mono_mempool_destroy</tt> all of the of the memory
|
||||
allocated from that memory pool with
|
||||
<tt>mono_mempool_alloc</tt> and <tt>mono_mempool_alloc0</tt>
|
||||
is released.
|
||||
|
||||
<h4><a name="api:mono_mempool_new">mono_mempool_new</a></h4>
|
||||
<h4><a name="api:mono_mempool_destroy">mono_mempool_destroy</a></h4>
|
||||
<h4><a name="api:mono_mempool_alloc">mono_mempool_alloc</a></h4>
|
||||
<h4><a name="api:mono_mempool_alloc0">mono_mempool_alloc0</a></h4>
|
||||
<h4><a name="api:mono_mempool_empty">mono_mempool_empty</a></h4>
|
||||
<h4><a name="api:mono_mempool_invalidate">mono_mempool_invalidate</a></h4>
|
||||
<h4><a name="api:mono_mempool_stats">mono_mempool_stats</a></h4>
|
||||
<h4><a name="api:mono_mempool_contains_addr">mono_mempool_contains_addr</a></h4>
|
||||
|
||||
<h3>JIT utilities</h3>
|
||||
|
||||
<h4><a name="api:mono_signbit_double">mono_signbit_double</a></h4>
|
||||
<h4><a name="api:mono_signbit_float">mono_signbit_float</a></h4>
|
||||
|
||||
<h3>Disassembling Generated Code</h3>
|
||||
|
||||
@@ -10,10 +116,11 @@
|
||||
|
||||
<h3>Walking the Stack</h3>
|
||||
|
||||
<h4><a name="api:mono_walk_stack">mono_walk_stack</a></h4>
|
||||
<h4><a name="api:mono_stack_walk_no_il">mono_stack_walk_no_il</a></h4>
|
||||
<h4><a name="api:mono_stack_walk_async_safe">mono_stack_walk_async_safe</a></h4>
|
||||
|
||||
<h3>Others</h3>
|
||||
|
||||
<h4><a name="api:mono_escape_uri_string">mono_escape_uri_string</a></h4>
|
||||
<h4><a name="api:mono_guid_to_string">mono_guid_to_string</a></h4>
|
||||
|
||||
+36
-18
@@ -12,12 +12,6 @@
|
||||
<param name="Local" value="DoesNotExist"/>
|
||||
</object>
|
||||
</li>
|
||||
<li>
|
||||
<object type="text/sitemap">
|
||||
<param name="Name" value="Embedding Mono"/>
|
||||
<param name="Local" value="deploy/mono-api-embedding.html"/>
|
||||
</object>
|
||||
</li>
|
||||
<li>
|
||||
<object type="text/sitemap">
|
||||
<param name="Name" value="Assemblies"/>
|
||||
@@ -54,12 +48,30 @@
|
||||
<param name="Local" value="deploy/mono-api-class.html"/>
|
||||
</object>
|
||||
</li>
|
||||
<li>
|
||||
<object type="text/sitemap">
|
||||
<param name="Name" value="Code Generation"/>
|
||||
<param name="Local" value="deploy/mono-api-codegen.html"/>
|
||||
</object>
|
||||
</li>
|
||||
<li>
|
||||
<object type="text/sitemap">
|
||||
<param name="Name" value="Decimal Representation"/>
|
||||
<param name="Local" value="deploy/mono-api-decimal.html"/>
|
||||
</object>
|
||||
</li>
|
||||
<li>
|
||||
<object type="text/sitemap">
|
||||
<param name="Name" value="Application Domains"/>
|
||||
<param name="Local" value="deploy/mono-api-domains.html"/>
|
||||
</object>
|
||||
</li>
|
||||
<li>
|
||||
<object type="text/sitemap">
|
||||
<param name="Name" value="Dynamic Code Generation"/>
|
||||
<param name="Local" value="deploy/mono-api-dynamic-codegen.html"/>
|
||||
</object>
|
||||
</li>
|
||||
<li>
|
||||
<object type="text/sitemap">
|
||||
<param name="Name" value="Exceptions"/>
|
||||
@@ -78,12 +90,24 @@
|
||||
<param name="Local" value="deploy/mono-api-gc.html"/>
|
||||
</object>
|
||||
</li>
|
||||
<li>
|
||||
<object type="text/sitemap">
|
||||
<param name="Name" value="Embedding Mono"/>
|
||||
<param name="Local" value="deploy/mono-api-embedding.html"/>
|
||||
</object>
|
||||
</li>
|
||||
<li>
|
||||
<object type="text/sitemap">
|
||||
<param name="Name" value="Just in Time Compiler"/>
|
||||
<param name="Local" value="deploy/mono-api-jit.html"/>
|
||||
</object>
|
||||
</li>
|
||||
<li>
|
||||
<object type="text/sitemap">
|
||||
<param name="Name" value="Marshalling"/>
|
||||
<param name="Local" value="deploy/mono-api-marshal.html"/>
|
||||
</object>
|
||||
</li>
|
||||
<li>
|
||||
<object type="text/sitemap">
|
||||
<param name="Name" value="Metadata access"/>
|
||||
@@ -116,6 +140,12 @@
|
||||
</object>
|
||||
</li>
|
||||
-->
|
||||
<li>
|
||||
<object type="text/sitemap">
|
||||
<param name="Name" value="JIT Counters"/>
|
||||
<param name="Local" value="deploy/mono-api-counters.html"/>
|
||||
</object>
|
||||
</li>
|
||||
<li>
|
||||
<object type="text/sitemap">
|
||||
<param name="Name" value="Types"/>
|
||||
@@ -152,24 +182,12 @@
|
||||
<param name="Local" value="deploy/mono-api-utils.html"/>
|
||||
</object>
|
||||
</li>
|
||||
<li>
|
||||
<object type="text/sitemap">
|
||||
<param name="Name" value="JIT Counters"/>
|
||||
<param name="Local" value="deploy/mono-api-counters.html"/>
|
||||
</object>
|
||||
</li>
|
||||
<li>
|
||||
<object type="text/sitemap">
|
||||
<param name="Name" value="Unsorted"/>
|
||||
<param name="Local" value="deploy/mono-api-unsorted.html"/>
|
||||
</object>
|
||||
</li>
|
||||
<li>
|
||||
<object type="text/sitemap">
|
||||
<param name="Name" value="Internal: Dynamic Code Generation"/>
|
||||
<param name="Local" value="deploy/mono-api-dynamic-codegen.html"/>
|
||||
</object>
|
||||
</li>
|
||||
</ul>
|
||||
</body>
|
||||
</html>
|
||||
+1564
File diff suppressed because it is too large.
Load diff
+1
-1
@@ -16,4 +16,4 @@ endif
|
||||
endif
|
||||
endif
|
||||
|
||||
EXTRA_DIST = autogen.sh README NEWS AUTHORS winconfig.h
|
||||
EXTRA_DIST = autogen.sh README NEWS AUTHORS ChangeLog winconfig.h
|
||||
+8
-8
@@ -30,18 +30,18 @@ fi
|
||||
DIE=1
|
||||
}
|
||||
|
||||
if [ -z "$LIBTOOLIZE" ]; then
|
||||
LIBTOOLIZE=`which glibtoolize 2>/dev/null`
|
||||
if [ ! -x "$LIBTOOLIZE" ]; then
|
||||
LIBTOOLIZE=`which libtoolize`
|
||||
if [ -z "$LIBTOOL" ]; then
|
||||
LIBTOOL=`which glibtool 2>/dev/null`
|
||||
if [ ! -x "$LIBTOOL" ]; then
|
||||
LIBTOOL=`which libtool`
|
||||
fi
|
||||
fi
|
||||
|
||||
(grep "^AM_PROG_LIBTOOL" $srcdir/configure.ac >/dev/null) && {
|
||||
($LIBTOOLIZE --version) < /dev/null > /dev/null 2>&1 || {
|
||||
($LIBTOOL --version) < /dev/null > /dev/null 2>&1 || {
|
||||
echo
|
||||
echo "**Error**: You must have \`libtoolize' installed to compile Mono."
|
||||
echo "Get ftp://ftp.gnu.org/gnu/libtool/libtool-1.2.tar.gz"
|
||||
echo "**Error**: You must have \`libtool' installed to compile Mono."
|
||||
echo "Get ftp://ftp.gnu.org/pub/gnu/libtool-1.2d.tar.gz"
|
||||
echo "(or a newer version if it is available)"
|
||||
DIE=1
|
||||
}
|
||||
@@ -98,7 +98,7 @@ esac
|
||||
if grep "^AM_PROG_LIBTOOL" configure.ac >/dev/null; then
|
||||
if test -z "$NO_LIBTOOLIZE" ; then
|
||||
echo "Running libtoolize..."
|
||||
$LIBTOOLIZE --force --copy
|
||||
${LIBTOOL}ize --force --copy
|
||||
fi
|
||||
fi
|
||||
|
||||
|
||||
+14
-11
@@ -138,15 +138,6 @@ AC_CHECK_FUNCS(strlcpy stpcpy strtok_r rewinddir vasprintf)
|
||||
AC_CHECK_FUNCS(getrlimit)
|
||||
AC_CHECK_FUNCS(fork execv execve)
|
||||
|
||||
AC_ARG_WITH([overridable-allocators], [ --with-overridable-allocators allow g_*alloc/g_free to call custom allocators set via g_mem_set_vtable])
|
||||
|
||||
if test x$with_overridable_allocators == xyes; then
|
||||
AC_DEFINE(ENABLE_OVERRIDABLE_ALLOCATORS,1,[Overridable allocator support enabled])
|
||||
AC_MSG_NOTICE([Overridable allocator support enabled])
|
||||
else
|
||||
AC_MSG_NOTICE([Overridable allocator support disabled])
|
||||
fi
|
||||
|
||||
#
|
||||
# Mono currently supports 10.6, but strndup is not available prior to 10.7; avoiding
|
||||
# the detection of strndup on OS X so Mono built on 10.7+ still runs on 10.6. This can be
|
||||
@@ -160,7 +151,7 @@ elif test x$target_ios = xno; then
|
||||
AC_CHECK_FUNCS(strndup getpwuid_r)
|
||||
fi
|
||||
|
||||
AM_CONDITIONAL(NEED_VASPRINTF, test x$ac_cv_func_vasprintf = xno || test x$with_overridable_allocators == xyes)
|
||||
AM_CONDITIONAL(NEED_VASPRINTF, test x$ac_cv_func_vasprintf = xno )
|
||||
AM_ICONV()
|
||||
AC_SEARCH_LIBS(sqrtf, m)
|
||||
|
||||
@@ -190,7 +181,7 @@ if test "x$have_iso_varargs" = "xyes"; then
|
||||
fi
|
||||
AC_SUBST(G_HAVE_ISO_VARARGS)
|
||||
|
||||
AC_CHECK_HEADERS(getopt.h sys/select.h sys/time.h sys/wait.h pwd.h iconv.h localcharset.h sys/types.h sys/resource.h)
|
||||
AC_CHECK_HEADERS(getopt.h sys/select.h sys/time.h sys/wait.h pwd.h langinfo.h iconv.h localcharset.h sys/types.h sys/resource.h)
|
||||
AC_CHECK_LIB([iconv], [locale_charset],[],[AC_CHECK_LIB([charset], [locale_charset],[LIBS+="-liconv -lcharset"])])
|
||||
AC_CHECK_HEADER(alloca.h, [HAVE_ALLOCA_H=1], [HAVE_ALLOCA_H=0])
|
||||
AC_SUBST(HAVE_ALLOCA_H)
|
||||
@@ -202,6 +193,10 @@ if test $ac_cv_sizeof_void_p = $ac_cv_sizeof_int; then
|
||||
GUINT_TO_POINTER="((gpointer) (v))"
|
||||
GSIZE="int"
|
||||
GSIZE_FORMAT='"u"'
|
||||
G_GUINT64_FORMAT='"llu"'
|
||||
G_GINT64_FORMAT='"lld"'
|
||||
G_GUINT32_FORMAT='"lu"'
|
||||
G_GINT32_FORMAT='"ld"'
|
||||
elif test $ac_cv_sizeof_void_p = $ac_cv_sizeof_long; then
|
||||
GPOINTER_TO_INT="((gint)(long) (ptr))"
|
||||
GPOINTER_TO_UINT="((guint)(long) (ptr))"
|
||||
@@ -209,6 +204,10 @@ elif test $ac_cv_sizeof_void_p = $ac_cv_sizeof_long; then
|
||||
GUINT_TO_POINTER="((gpointer)(gulong) (v))"
|
||||
GSIZE="long"
|
||||
GSIZE_FORMAT='"lu"'
|
||||
G_GUINT64_FORMAT='"lu"'
|
||||
G_GINT64_FORMAT='"ld"'
|
||||
G_GUINT32_FORMAT='"u"'
|
||||
G_GINT32_FORMAT='"d"'
|
||||
elif test $ac_cv_sizeof_void_p = $ac_cv_sizeof_long_long; then
|
||||
GPOINTER_TO_INT="((gint)(long long) (ptr))"
|
||||
GPOINTER_TO_UINT="((guint)(unsigned long long) (ptr))"
|
||||
@@ -216,6 +215,10 @@ elif test $ac_cv_sizeof_void_p = $ac_cv_sizeof_long_long; then
|
||||
GUINT_TO_POINTER="((gpointer)(unsigned long long) (v))"
|
||||
GSIZE="long long"
|
||||
GSIZE_FORMAT='"I64u"'
|
||||
G_GUINT64_FORMAT='"I64u"'
|
||||
G_GINT64_FORMAT='"I64i"'
|
||||
G_GUINT32_FORMAT='"I32u"'
|
||||
G_GINT32_FORMAT='"I32i"'
|
||||
else
|
||||
AC_MSG_ERROR([unsupported pointer size])
|
||||
fi
|
||||
|
||||
+11
-1
@@ -11,6 +11,14 @@ unix_files = \
|
||||
gdate-unix.c gdir-unix.c gfile-unix.c gmisc-unix.c \
|
||||
gmodule-unix.c gtimer-unix.c
|
||||
|
||||
# some unices and windows do not have an implementation of vasprintf
|
||||
# used by eglib, use provided implementation instead
|
||||
if NEED_VASPRINTF
|
||||
vasprintf_files = vasprintf.c
|
||||
else
|
||||
vaprinttf_files = foo.c
|
||||
endif
|
||||
|
||||
if HOST_WIN32
|
||||
os_files = $(win_files)
|
||||
else
|
||||
@@ -24,6 +32,7 @@ libeglib_la_SOURCES = \
|
||||
garray.c \
|
||||
gbytearray.c \
|
||||
gerror.c \
|
||||
vasprintf.h \
|
||||
ghashtable.c \
|
||||
giconv.c \
|
||||
gmem.c \
|
||||
@@ -46,7 +55,8 @@ libeglib_la_SOURCES = \
|
||||
gutf8.c \
|
||||
gunicode.c \
|
||||
unicode-data.h \
|
||||
$(os_files)
|
||||
$(os_files) \
|
||||
$(vasprintf_files)
|
||||
|
||||
libeglib_la_CFLAGS = -g -Wall -D_FORTIFY_SOURCE=2
|
||||
|
||||
|
||||
@@ -27,6 +27,10 @@ typedef unsigned @GSIZE@ gsize;
|
||||
typedef signed @GSIZE@ gssize;
|
||||
|
||||
#define G_GSIZE_FORMAT @GSIZE_FORMAT@
|
||||
#define G_GUINT64_FORMAT @G_GUINT64_FORMAT@
|
||||
#define G_GINT64_FORMAT @G_GINT64_FORMAT@
|
||||
#define G_GUINT32_FORMAT @G_GUINT32_FORMAT@
|
||||
#define G_GINT32_FORMAT @G_GINT32_FORMAT@
|
||||
|
||||
#if @G_HAVE_ISO_VARARGS@ == 1
|
||||
#define G_HAVE_ISO_VARARGS
|
||||
|
||||
@@ -26,14 +26,27 @@ typedef int pid_t;
|
||||
#define G_SEARCHPATH_SEPARATOR_S ";"
|
||||
#define G_SEARCHPATH_SEPARATOR ';'
|
||||
#define G_GSIZE_FORMAT "d"
|
||||
#define G_GUINT64_FORMAT "d"
|
||||
#define G_GINT64_FORMAT "d"
|
||||
#define GPOINTER_TO_INT(ptr) ((gint)(intptr_t) (ptr))
|
||||
#define GPOINTER_TO_UINT(ptr) ((guint)(intptr_t) (ptr))
|
||||
#define GINT_TO_POINTER(v) ((gpointer)(intptr_t) (v))
|
||||
#define GUINT_TO_POINTER(v) ((gpointer)(intptr_t) (v))
|
||||
|
||||
/* VS 2010 and later have stdint.h */
|
||||
#if defined(_MSC_VER) && _MSC_VER < 1600
|
||||
#define INT32_MAX 2147483647
|
||||
#define INT32_MIN (~ INT32_MAX)
|
||||
#define INT64_MAX 9223372036854775807i64
|
||||
#define INT64_MIN (~INT64_MAX)
|
||||
#define UINT32_MAX 0xffffffffU
|
||||
#define UINT64_MAX 0xffffffffffffffffULL
|
||||
#endif
|
||||
|
||||
#define STDOUT_FILENO (int)(intptr_t)stdout
|
||||
#define STDERR_FILENO (int)(intptr_t)stderr
|
||||
|
||||
|
||||
/* FIXME: what should this be ?*/
|
||||
#define X_OK 4 /* This is really read */
|
||||
#define WNOHANG 1
|
||||
|
||||
+6
-4
@@ -28,8 +28,10 @@
|
||||
#include <stdio.h>
|
||||
#include <stdarg.h>
|
||||
#include <string.h>
|
||||
#include <config.h>
|
||||
#include <glib.h>
|
||||
|
||||
#include "vasprintf.h"
|
||||
|
||||
GError *
|
||||
g_error_new (gpointer domain, gint code, const char *format, ...)
|
||||
{
|
||||
@@ -40,7 +42,7 @@ g_error_new (gpointer domain, gint code, const char *format, ...)
|
||||
err->code = code;
|
||||
|
||||
va_start (args, format);
|
||||
if (g_vasprintf (&err->message, format, args) == -1)
|
||||
if (vasprintf (&err->message, format, args) == -1)
|
||||
err->message = g_strdup_printf ("internal: invalid format string %s", format);
|
||||
va_end (args);
|
||||
|
||||
@@ -55,7 +57,7 @@ g_error_vnew (gpointer domain, gint code, const char *format, va_list ap)
|
||||
err->domain = domain;
|
||||
err->code = code;
|
||||
|
||||
if (g_vasprintf (&err->message, format, ap) == -1)
|
||||
if (vasprintf (&err->message, format, ap) == -1)
|
||||
err->message = g_strdup_printf ("internal: invalid format string %s", format);
|
||||
|
||||
return err;
|
||||
@@ -75,7 +77,7 @@ g_error_free (GError *error)
|
||||
{
|
||||
g_return_if_fail (error != NULL);
|
||||
|
||||
g_free (error->message);
|
||||
free (error->message);
|
||||
g_free (error);
|
||||
}
|
||||
|
||||
|
||||
+35
-2
@@ -777,9 +777,42 @@ g_convert (const gchar *str, gssize len, const gchar *to_charset, const gchar *f
|
||||
*/
|
||||
|
||||
/**
|
||||
* An explanation of the conversion can be found at:
|
||||
* http://home.tiscali.nl/t876506/utf8tbl.html
|
||||
* from http://home.tiscali.nl/t876506/utf8tbl.html
|
||||
*
|
||||
* From Unicode UCS-4 to UTF-8:
|
||||
* Start with the Unicode number expressed as a decimal number and call this ud.
|
||||
*
|
||||
* If ud <128 (7F hex) then UTF-8 is 1 byte long, the value of ud.
|
||||
*
|
||||
* If ud >=128 and <=2047 (7FF hex) then UTF-8 is 2 bytes long.
|
||||
* byte 1 = 192 + (ud div 64)
|
||||
* byte 2 = 128 + (ud mod 64)
|
||||
*
|
||||
* If ud >=2048 and <=65535 (FFFF hex) then UTF-8 is 3 bytes long.
|
||||
* byte 1 = 224 + (ud div 4096)
|
||||
* byte 2 = 128 + ((ud div 64) mod 64)
|
||||
* byte 3 = 128 + (ud mod 64)
|
||||
*
|
||||
* If ud >=65536 and <=2097151 (1FFFFF hex) then UTF-8 is 4 bytes long.
|
||||
* byte 1 = 240 + (ud div 262144)
|
||||
* byte 2 = 128 + ((ud div 4096) mod 64)
|
||||
* byte 3 = 128 + ((ud div 64) mod 64)
|
||||
* byte 4 = 128 + (ud mod 64)
|
||||
*
|
||||
* If ud >=2097152 and <=67108863 (3FFFFFF hex) then UTF-8 is 5 bytes long.
|
||||
* byte 1 = 248 + (ud div 16777216)
|
||||
* byte 2 = 128 + ((ud div 262144) mod 64)
|
||||
* byte 3 = 128 + ((ud div 4096) mod 64)
|
||||
* byte 4 = 128 + ((ud div 64) mod 64)
|
||||
* byte 5 = 128 + (ud mod 64)
|
||||
*
|
||||
* If ud >=67108864 and <=2147483647 (7FFFFFFF hex) then UTF-8 is 6 bytes long.
|
||||
* byte 1 = 252 + (ud div 1073741824)
|
||||
* byte 2 = 128 + ((ud div 16777216) mod 64)
|
||||
* byte 3 = 128 + ((ud div 262144) mod 64)
|
||||
* byte 4 = 128 + ((ud div 4096) mod 64)
|
||||
* byte 5 = 128 + ((ud div 64) mod 64)
|
||||
* byte 6 = 128 + (ud mod 64)
|
||||
**/
|
||||
gint
|
||||
g_unichar_to_utf8 (gunichar c, gchar *outbuf)
|
||||
|
||||
+27
-12
@@ -1,5 +1,6 @@
|
||||
#ifndef __GLIB_H
|
||||
#define __GLIB_H
|
||||
|
||||
#include <stdarg.h>
|
||||
#include <stdlib.h>
|
||||
#include <string.h>
|
||||
@@ -8,12 +9,15 @@
|
||||
#include <ctype.h>
|
||||
#include <limits.h>
|
||||
|
||||
|
||||
#ifdef _MSC_VER
|
||||
#pragma include_alias(<eglib-config.h>, <eglib-config.hw>)
|
||||
#endif
|
||||
|
||||
/* VS 2010 and later have stdint.h */
|
||||
#if defined(_MSC_VER) && _MSC_VER < 1600
|
||||
#else
|
||||
#include <stdint.h>
|
||||
#endif
|
||||
|
||||
#include <eglib-config.h>
|
||||
#ifndef EGLIB_NO_REMAP
|
||||
@@ -59,6 +63,21 @@ typedef const void * gconstpointer;
|
||||
typedef char gchar;
|
||||
typedef unsigned char guchar;
|
||||
|
||||
#if !G_TYPES_DEFINED
|
||||
/* VS 2010 and later have stdint.h */
|
||||
#if defined(_MSC_VER) && _MSC_VER < 1600
|
||||
typedef __int8 gint8;
|
||||
typedef unsigned __int8 guint8;
|
||||
typedef __int16 gint16;
|
||||
typedef unsigned __int16 guint16;
|
||||
typedef __int32 gint32;
|
||||
typedef unsigned __int32 guint32;
|
||||
typedef __int64 gint64;
|
||||
typedef unsigned __int64 guint64;
|
||||
typedef float gfloat;
|
||||
typedef double gdouble;
|
||||
typedef int gboolean;
|
||||
#else
|
||||
/* Types defined in terms of the stdint.h */
|
||||
typedef int8_t gint8;
|
||||
typedef uint8_t guint8;
|
||||
@@ -71,6 +90,8 @@ typedef uint64_t guint64;
|
||||
typedef float gfloat;
|
||||
typedef double gdouble;
|
||||
typedef int32_t gboolean;
|
||||
#endif
|
||||
#endif
|
||||
|
||||
typedef guint16 gunichar2;
|
||||
typedef guint32 gunichar;
|
||||
@@ -114,11 +135,6 @@ typedef guint32 gunichar;
|
||||
|
||||
#define G_CONST_RETURN const
|
||||
|
||||
#define G_GUINT64_FORMAT PRIu64
|
||||
#define G_GINT64_FORMAT PRIi64
|
||||
#define G_GUINT32_FORMAT PRIu32
|
||||
#define G_GINT32_FORMAT PRIi32
|
||||
|
||||
/*
|
||||
* Allocation
|
||||
*/
|
||||
@@ -126,7 +142,6 @@ void g_free (void *ptr);
|
||||
gpointer g_realloc (gpointer obj, gsize size);
|
||||
gpointer g_malloc (gsize x);
|
||||
gpointer g_malloc0 (gsize x);
|
||||
gpointer g_calloc (gsize n, gsize x);
|
||||
gpointer g_try_malloc (gsize x);
|
||||
gpointer g_try_realloc (gpointer obj, gsize size);
|
||||
|
||||
@@ -139,7 +154,7 @@ gpointer g_try_realloc (gpointer obj, gsize size);
|
||||
#define g_alloca(size) alloca (size)
|
||||
|
||||
gpointer g_memdup (gconstpointer mem, guint byte_size);
|
||||
static inline gchar *g_strdup (const gchar *str) { if (str) { return (gchar*) g_memdup (str, (guint)strlen (str) + 1); } return NULL; }
|
||||
static inline gchar *g_strdup (const gchar *str) { if (str) {return strdup (str);} return NULL; }
|
||||
gchar **g_strdupv (gchar **str_array);
|
||||
|
||||
typedef struct {
|
||||
@@ -147,9 +162,11 @@ typedef struct {
|
||||
gpointer (*realloc) (gpointer mem, gsize n_bytes);
|
||||
void (*free) (gpointer mem);
|
||||
gpointer (*calloc) (gsize n_blocks, gsize n_block_bytes);
|
||||
gpointer (*try_malloc) (gsize n_bytes);
|
||||
gpointer (*try_realloc) (gpointer mem, gsize n_bytes);
|
||||
} GMemVTable;
|
||||
|
||||
void g_mem_set_vtable (GMemVTable* vtable);
|
||||
#define g_mem_set_vtable(x)
|
||||
|
||||
struct _GMemChunk {
|
||||
guint alloc_size;
|
||||
@@ -222,11 +239,11 @@ gint g_printf (gchar const *format, ...);
|
||||
gint g_fprintf (FILE *file, gchar const *format, ...);
|
||||
gint g_sprintf (gchar *string, gchar const *format, ...);
|
||||
gint g_snprintf (gchar *string, gulong n, gchar const *format, ...);
|
||||
gint g_vasprintf (gchar **ret, const gchar *fmt, va_list ap);
|
||||
#define g_vprintf vprintf
|
||||
#define g_vfprintf vfprintf
|
||||
#define g_vsprintf vsprintf
|
||||
#define g_vsnprintf vsnprintf
|
||||
#define g_vasprintf vasprintf
|
||||
|
||||
gsize g_strlcpy (gchar *dest, const gchar *src, gsize dest_size);
|
||||
gchar *g_stpcpy (gchar *dest, const char *src);
|
||||
@@ -771,8 +788,6 @@ const gchar *g_get_user_name (void);
|
||||
gchar *g_get_prgname (void);
|
||||
void g_set_prgname (const gchar *prgname);
|
||||
|
||||
gboolean g_ensure_directory_exists (const gchar *filename);
|
||||
|
||||
/*
|
||||
* Shell
|
||||
*/
|
||||
|
||||
+1
-1
@@ -367,7 +367,7 @@ g_markup_parse_context_parse (GMarkupParseContext *context,
|
||||
if (context->parser.end_element != NULL && context->state == START_ELEMENT){
|
||||
context->parser.end_element (context, ename, context->user_data, error);
|
||||
if (error != NULL && *error != NULL){
|
||||
g_free (ename);
|
||||
free (ename);
|
||||
goto fail;
|
||||
}
|
||||
}
|
||||
|
||||
+13
-47
@@ -25,45 +25,15 @@
|
||||
* OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
|
||||
* WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
||||
*/
|
||||
#include <config.h>
|
||||
#include <stdio.h>
|
||||
#include <string.h>
|
||||
#include <glib.h>
|
||||
|
||||
#if defined (ENABLE_OVERRIDABLE_ALLOCATORS)
|
||||
|
||||
static GMemVTable sGMemVTable = { malloc, realloc, free, calloc };
|
||||
|
||||
void
|
||||
g_mem_set_vtable (GMemVTable* vtable)
|
||||
{
|
||||
sGMemVTable.calloc = vtable->calloc ? vtable->calloc : calloc;
|
||||
sGMemVTable.realloc = vtable->realloc ? vtable->realloc : realloc;
|
||||
sGMemVTable.malloc = vtable->malloc ? vtable->malloc : malloc;
|
||||
sGMemVTable.free = vtable->free ? vtable->free : free;
|
||||
}
|
||||
|
||||
#define G_FREE_INTERNAL sGMemVTable.free
|
||||
#define G_REALLOC_INTERNAL sGMemVTable.realloc
|
||||
#define G_CALLOC_INTERNAL sGMemVTable.calloc
|
||||
#define G_MALLOC_INTERNAL sGMemVTable.malloc
|
||||
#else
|
||||
|
||||
void
|
||||
g_mem_set_vtable (GMemVTable* vtable)
|
||||
{
|
||||
}
|
||||
|
||||
#define G_FREE_INTERNAL free
|
||||
#define G_REALLOC_INTERNAL realloc
|
||||
#define G_CALLOC_INTERNAL calloc
|
||||
#define G_MALLOC_INTERNAL malloc
|
||||
#endif
|
||||
void
|
||||
g_free (void *ptr)
|
||||
{
|
||||
if (ptr != NULL)
|
||||
G_FREE_INTERNAL (ptr);
|
||||
free (ptr);
|
||||
}
|
||||
|
||||
gpointer
|
||||
@@ -88,7 +58,7 @@ gpointer g_realloc (gpointer obj, gsize size)
|
||||
g_free (obj);
|
||||
return 0;
|
||||
}
|
||||
ptr = G_REALLOC_INTERNAL (obj, size);
|
||||
ptr = realloc (obj, size);
|
||||
if (ptr)
|
||||
return ptr;
|
||||
g_error ("Could not allocate %i bytes", size);
|
||||
@@ -100,31 +70,27 @@ g_malloc (gsize x)
|
||||
gpointer ptr;
|
||||
if (!x)
|
||||
return 0;
|
||||
ptr = G_MALLOC_INTERNAL (x);
|
||||
ptr = malloc (x);
|
||||
if (ptr)
|
||||
return ptr;
|
||||
g_error ("Could not allocate %i bytes", x);
|
||||
}
|
||||
|
||||
gpointer g_calloc (gsize n, gsize x)
|
||||
{
|
||||
gpointer ptr;
|
||||
if (!x || !n)
|
||||
return 0;
|
||||
ptr = G_CALLOC_INTERNAL (n, x);
|
||||
if (ptr)
|
||||
return ptr;
|
||||
g_error ("Could not allocate %i (%i * %i) bytes", x*n, n, x);
|
||||
}
|
||||
gpointer g_malloc0 (gsize x)
|
||||
{
|
||||
return g_calloc (1,x);
|
||||
gpointer ptr;
|
||||
if (!x)
|
||||
return 0;
|
||||
ptr = calloc(1,x);
|
||||
if (ptr)
|
||||
return ptr;
|
||||
g_error ("Could not allocate %i bytes", x);
|
||||
}
|
||||
|
||||
gpointer g_try_malloc (gsize x)
|
||||
{
|
||||
if (x)
|
||||
return G_MALLOC_INTERNAL (x);
|
||||
return malloc (x);
|
||||
return 0;
|
||||
}
|
||||
|
||||
@@ -132,8 +98,8 @@ gpointer g_try_malloc (gsize x)
|
||||
gpointer g_try_realloc (gpointer obj, gsize size)
|
||||
{
|
||||
if (!size) {
|
||||
G_FREE_INTERNAL (obj);
|
||||
g_free (obj);
|
||||
return 0;
|
||||
}
|
||||
return G_REALLOC_INTERNAL (obj, size);
|
||||
return realloc (obj, size);
|
||||
}
|
||||
@@ -92,7 +92,7 @@ g_win32_getlocale(void)
|
||||
gint ccBuf = GetLocaleInfo(lcid, LOCALE_SISO639LANGNAME, buf, 9);
|
||||
buf[ccBuf - 1] = '-';
|
||||
ccBuf += GetLocaleInfo(lcid, LOCALE_SISO3166CTRYNAME, buf + ccBuf, 9);
|
||||
return g_strdup (buf);
|
||||
return strdup(buf);
|
||||
}
|
||||
|
||||
gboolean
|
||||
@@ -128,9 +128,6 @@ g_get_home_dir (void)
|
||||
}
|
||||
}
|
||||
|
||||
g_free (drive);
|
||||
g_free (path);
|
||||
|
||||
return home_dir;
|
||||
}
|
||||
|
||||
|
||||
+8
-6
@@ -31,6 +31,8 @@
|
||||
#include <stdlib.h>
|
||||
#include <glib.h>
|
||||
|
||||
#include "vasprintf.h"
|
||||
|
||||
/* The current fatal levels, error is always fatal */
|
||||
static GLogLevelFlags fatal = G_LOG_LEVEL_ERROR;
|
||||
static GLogFunc default_log_func;
|
||||
@@ -47,7 +49,7 @@ g_print (const gchar *format, ...)
|
||||
va_list args;
|
||||
|
||||
va_start (args, format);
|
||||
if (g_vasprintf (&msg, format, args) < 0)
|
||||
if (vasprintf (&msg, format, args) < 0)
|
||||
return;
|
||||
va_end (args);
|
||||
|
||||
@@ -55,7 +57,7 @@ g_print (const gchar *format, ...)
|
||||
stdout_handler = default_stdout_handler;
|
||||
|
||||
stdout_handler (msg);
|
||||
g_free (msg);
|
||||
free (msg);
|
||||
}
|
||||
|
||||
void
|
||||
@@ -65,7 +67,7 @@ g_printerr (const gchar *format, ...)
|
||||
va_list args;
|
||||
|
||||
va_start (args, format);
|
||||
if (g_vasprintf (&msg, format, args) < 0)
|
||||
if (vasprintf (&msg, format, args) < 0)
|
||||
return;
|
||||
va_end (args);
|
||||
|
||||
@@ -73,7 +75,7 @@ g_printerr (const gchar *format, ...)
|
||||
stderr_handler = default_stderr_handler;
|
||||
|
||||
stderr_handler (msg);
|
||||
g_free (msg);
|
||||
free (msg);
|
||||
}
|
||||
|
||||
GLogLevelFlags
|
||||
@@ -105,11 +107,11 @@ g_logv (const gchar *log_domain, GLogLevelFlags log_level, const gchar *format,
|
||||
if (!default_log_func)
|
||||
default_log_func = g_log_default_handler;
|
||||
|
||||
if (g_vasprintf (&msg, format, args) < 0)
|
||||
if (vasprintf (&msg, format, args) < 0)
|
||||
return;
|
||||
|
||||
default_log_func (log_domain, log_level, msg, default_log_func_user_data);
|
||||
g_free (msg);
|
||||
free (msg);
|
||||
}
|
||||
|
||||
void
|
||||
|
||||
@@ -29,7 +29,6 @@
|
||||
#include <stdio.h>
|
||||
#include <glib.h>
|
||||
#include <errno.h>
|
||||
#include <sys/stat.h>
|
||||
|
||||
#ifdef G_OS_WIN32
|
||||
#include <direct.h>
|
||||
@@ -295,95 +294,3 @@ g_get_prgname (void)
|
||||
{
|
||||
return name;
|
||||
}
|
||||
|
||||
gboolean
|
||||
g_ensure_directory_exists (const gchar *filename)
|
||||
{
|
||||
#ifdef G_OS_WIN32
|
||||
gchar *dir_utf8 = g_path_get_dirname (filename);
|
||||
gunichar2 *p;
|
||||
gunichar2 *dir_utf16 = NULL;
|
||||
int retval;
|
||||
|
||||
if (!dir_utf8 || !dir_utf8 [0])
|
||||
return FALSE;
|
||||
|
||||
dir_utf16 = g_utf8_to_utf16 (dir_utf8, strlen (dir_utf8), NULL, NULL, NULL);
|
||||
g_free (dir_utf8);
|
||||
|
||||
if (!dir_utf16)
|
||||
return FALSE;
|
||||
|
||||
p = dir_utf16;
|
||||
|
||||
/* make life easy and only use one directory seperator */
|
||||
while (*p != '\0')
|
||||
{
|
||||
if (*p == '/')
|
||||
*p = '\\';
|
||||
p++;
|
||||
}
|
||||
|
||||
p = dir_utf16;
|
||||
|
||||
/* get past C:\ )*/
|
||||
while (*p++ != '\\')
|
||||
{
|
||||
}
|
||||
|
||||
while (1) {
|
||||
gboolean bRet = FALSE;
|
||||
p = wcschr (p, '\\');
|
||||
if (p)
|
||||
*p = '\0';
|
||||
retval = _wmkdir (dir_utf16);
|
||||
if (retval != 0 && errno != EEXIST) {
|
||||
g_free (dir_utf16);
|
||||
return FALSE;
|
||||
}
|
||||
if (!p)
|
||||
break;
|
||||
*p++ = '\\';
|
||||
}
|
||||
|
||||
g_free (dir_utf16);
|
||||
return TRUE;
|
||||
#else
|
||||
char *p;
|
||||
gchar *dir = g_path_get_dirname (filename);
|
||||
int retval;
|
||||
struct stat sbuf;
|
||||
|
||||
if (!dir || !dir [0]) {
|
||||
g_free (dir);
|
||||
return FALSE;
|
||||
}
|
||||
|
||||
if (stat (dir, &sbuf) == 0 && S_ISDIR (sbuf.st_mode)) {
|
||||
g_free (dir);
|
||||
return TRUE;
|
||||
}
|
||||
|
||||
p = dir;
|
||||
while (*p == '/')
|
||||
p++;
|
||||
|
||||
while (1) {
|
||||
p = strchr (p, '/');
|
||||
if (p)
|
||||
*p = '\0';
|
||||
retval = mkdir (dir, 0777);
|
||||
if (retval != 0 && errno != EEXIST) {
|
||||
g_free (dir);
|
||||
return FALSE;
|
||||
}
|
||||
if (!p)
|
||||
break;
|
||||
*p++ = '/';
|
||||
}
|
||||
|
||||
g_free (dir);
|
||||
return TRUE;
|
||||
#endif
|
||||
}
|
||||
|
||||
+4
-39
@@ -32,17 +32,13 @@
|
||||
#include <ctype.h>
|
||||
#include <glib.h>
|
||||
|
||||
/*
|
||||
* g_strndup and g_vasprintf need to allocate memory with g_malloc if
|
||||
* ENABLE_OVERRIDABLE_ALLOCATORS is defined so that it can be safely freed with g_free
|
||||
* rather than free.
|
||||
*/
|
||||
#include "vasprintf.h"
|
||||
|
||||
/* This is not a macro, because I dont want to put _GNU_SOURCE in the glib.h header */
|
||||
gchar *
|
||||
g_strndup (const gchar *str, gsize n)
|
||||
{
|
||||
#if defined (HAVE_STRNDUP) && !defined (ENABLE_OVERRIDABLE_ALLOCATORS)
|
||||
#ifdef HAVE_STRNDUP
|
||||
return strndup (str, n);
|
||||
#else
|
||||
if (str) {
|
||||
@@ -56,37 +52,6 @@ g_strndup (const gchar *str, gsize n)
|
||||
#endif
|
||||
}
|
||||
|
||||
gint g_vasprintf (gchar **ret, const gchar *fmt, va_list ap)
|
||||
{
|
||||
#if defined (HAVE_VASPRINTF) && !defined (ENABLE_OVERRIDABLE_ALLOCATORS)
|
||||
return vasprintf (ret, fmt, ap);
|
||||
#else
|
||||
char *buf;
|
||||
int len;
|
||||
size_t buflen;
|
||||
va_list ap2;
|
||||
|
||||
#if defined(_MSC_VER) || defined(__MINGW64_VERSION_MAJOR)
|
||||
ap2 = ap;
|
||||
len = _vscprintf(fmt, ap2); // NOTE MS specific extension ( :-( )
|
||||
#else
|
||||
va_copy(ap2, ap);
|
||||
len = vsnprintf(NULL, 0, fmt, ap2);
|
||||
#endif
|
||||
|
||||
if (len >= 0 && (buf = g_malloc ((buflen = (size_t) (len + 1)))) != NULL) {
|
||||
len = vsnprintf(buf, buflen, fmt, ap);
|
||||
*ret = buf;
|
||||
} else {
|
||||
*ret = NULL;
|
||||
len = -1;
|
||||
}
|
||||
|
||||
va_end(ap2);
|
||||
return len;
|
||||
#endif
|
||||
}
|
||||
|
||||
void
|
||||
g_strfreev (gchar **str_array)
|
||||
{
|
||||
@@ -168,7 +133,7 @@ g_strdup_vprintf (const gchar *format, va_list args)
|
||||
int n;
|
||||
char *ret;
|
||||
|
||||
n = g_vasprintf (&ret, format, args);
|
||||
n = vasprintf (&ret, format, args);
|
||||
if (n == -1)
|
||||
return NULL;
|
||||
|
||||
@@ -183,7 +148,7 @@ g_strdup_printf (const gchar *format, ...)
|
||||
int n;
|
||||
|
||||
va_start (args, format);
|
||||
n = g_vasprintf (&ret, format, args);
|
||||
n = vasprintf (&ret, format, args);
|
||||
va_end (args);
|
||||
if (n == -1)
|
||||
return NULL;
|
||||
|
||||
@@ -44,6 +44,9 @@
|
||||
# define CODESET 1
|
||||
# include <windows.h>
|
||||
#else
|
||||
# ifdef HAVE_LANGINFO_H
|
||||
# include <langinfo.h>
|
||||
# endif
|
||||
# ifdef HAVE_LOCALCHARSET_H
|
||||
# include <localcharset.h>
|
||||
# endif
|
||||
@@ -216,7 +219,9 @@ g_get_charset (G_CONST_RETURN char **charset)
|
||||
is_utf8 = FALSE;
|
||||
#else
|
||||
/* These shouldn't be heap allocated */
|
||||
#if defined(HAVE_LOCALCHARSET_H)
|
||||
#if defined(HAVE_LANGINFO_H)
|
||||
my_charset = nl_langinfo (CODESET);
|
||||
#elif defined(HAVE_LOCALCHARSET_H)
|
||||
my_charset = locale_charset ();
|
||||
#else
|
||||
my_charset = "UTF-8";
|
||||
|
||||
@@ -0,0 +1,31 @@
|
||||
#include <stdarg.h>
|
||||
#include <stdio.h>
|
||||
#include <stdlib.h>
|
||||
|
||||
int vasprintf(char **ret, const char *fmt, va_list ap)
|
||||
{
|
||||
char *buf;
|
||||
int len;
|
||||
size_t buflen;
|
||||
va_list ap2;
|
||||
|
||||
#if defined(_MSC_VER) || defined(__MINGW64_VERSION_MAJOR)
|
||||
ap2 = ap;
|
||||
len = _vscprintf(fmt, ap2); // NOTE MS specific extension ( :-( )
|
||||
#else
|
||||
va_copy(ap2, ap);
|
||||
len = vsnprintf(NULL, 0, fmt, ap2);
|
||||
#endif
|
||||
|
||||
if (len >= 0 && (buf = malloc ((buflen = (size_t) (len + 1)))) != NULL) {
|
||||
len = vsnprintf(buf, buflen, fmt, ap);
|
||||
*ret = buf;
|
||||
} else {
|
||||
*ret = NULL;
|
||||
len = -1;
|
||||
}
|
||||
|
||||
va_end(ap2);
|
||||
return len;
|
||||
}
|
||||
|
||||
@@ -0,0 +1,11 @@
|
||||
#ifndef __VASPRINTF_H
|
||||
#define __VASPRINTF_H
|
||||
|
||||
#include <stdarg.h>
|
||||
#include <config.h>
|
||||
|
||||
#ifndef HAVE_VASPRINTF
|
||||
int vasprintf(char **ret, const char *fmt, va_list ap);
|
||||
#endif
|
||||
|
||||
#endif /* __VASPRINTF_H */
|
||||
+8
-1
@@ -46,6 +46,13 @@
|
||||
#include "test.h"
|
||||
|
||||
extern gint global_passed, global_tests;
|
||||
|
||||
#ifndef HAVE_VASPRINTF
|
||||
/* systen does not provide a vasprintf function, use the one
|
||||
provided within eglib itself */
|
||||
extern int vasprintf(char **ret, const char *format, va_list ap);
|
||||
#endif
|
||||
|
||||
static gchar *last_result = NULL;
|
||||
|
||||
gboolean
|
||||
@@ -176,7 +183,7 @@ FAILED(const gchar *format, ...)
|
||||
return NULL;
|
||||
#else
|
||||
va_start(args, format);
|
||||
n = g_vasprintf(&ret, format, args);
|
||||
n = vasprintf(&ret, format, args);
|
||||
va_end(args);
|
||||
|
||||
if(n == -1) {
|
||||
|
||||
Vendored
-9
@@ -1,9 +0,0 @@
|
||||
This is a copy of a few libunwind headers from https://android.googlesource.com/platform/external/libunwind
|
||||
|
||||
We can't make the repo a git submodule because it contains a folder called 'aux' which
|
||||
is reserved on Windows and would break on checkout there.
|
||||
|
||||
These files are unmodified from the originals and should preferably stay that
|
||||
way to avoid merge hell.
|
||||
|
||||
Commit: 338c9755cfe3d009c3dfff7d108e2c3ddaa6f3bb (android-6.0.1_r24)
|
||||
@@ -1,219 +0,0 @@
|
||||
/* libunwind - a platform-independent unwind library
|
||||
Copyright (C) 2001-2004 Hewlett-Packard Co
|
||||
Contributed by David Mosberger-Tang <[email protected]>
|
||||
Copyright (C) 2013 Linaro Limited
|
||||
|
||||
This file is part of libunwind.
|
||||
|
||||
Permission is hereby granted, free of charge, to any person obtaining
|
||||
a copy of this software and associated documentation files (the
|
||||
"Software"), to deal in the Software without restriction, including
|
||||
without limitation the rights to use, copy, modify, merge, publish,
|
||||
distribute, sublicense, and/or sell copies of the Software, and to
|
||||
permit persons to whom the Software is furnished to do so, subject to
|
||||
the following conditions:
|
||||
|
||||
The above copyright notice and this permission notice shall be
|
||||
included in all copies or substantial portions of the Software.
|
||||
|
||||
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
|
||||
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
|
||||
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
|
||||
NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
|
||||
LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
|
||||
OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
|
||||
WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. */
|
||||
|
||||
#ifndef LIBUNWIND_H
|
||||
#define LIBUNWIND_H
|
||||
|
||||
#if defined(__cplusplus) || defined(c_plusplus)
|
||||
extern "C" {
|
||||
#endif
|
||||
|
||||
#include <inttypes.h>
|
||||
#include <stddef.h>
|
||||
#include <ucontext.h>
|
||||
|
||||
#define UNW_TARGET aarch64
|
||||
#define UNW_TARGET_AARCH64 1
|
||||
|
||||
#define _U_TDEP_QP_TRUE 0 /* see libunwind-dynamic.h */
|
||||
|
||||
/* This needs to be big enough to accommodate "struct cursor", while
|
||||
leaving some slack for future expansion. Changing this value will
|
||||
require recompiling all users of this library. Stack allocation is
|
||||
relatively cheap and unwind-state copying is relatively rare, so we
|
||||
want to err on making it rather too big than too small. */
|
||||
|
||||
#define UNW_TDEP_CURSOR_LEN 4096
|
||||
|
||||
typedef uint64_t unw_word_t;
|
||||
typedef int64_t unw_sword_t;
|
||||
|
||||
typedef long double unw_tdep_fpreg_t;
|
||||
|
||||
typedef struct
|
||||
{
|
||||
/* no aarch64-specific auxiliary proc-info */
|
||||
/* ANDROID support update. */
|
||||
char __reserved;
|
||||
/* End of ANDROID update. */
|
||||
}
|
||||
unw_tdep_proc_info_t;
|
||||
|
||||
typedef enum
|
||||
{
|
||||
/* 64-bit general registers. */
|
||||
UNW_AARCH64_X0,
|
||||
UNW_AARCH64_X1,
|
||||
UNW_AARCH64_X2,
|
||||
UNW_AARCH64_X3,
|
||||
UNW_AARCH64_X4,
|
||||
UNW_AARCH64_X5,
|
||||
UNW_AARCH64_X6,
|
||||
UNW_AARCH64_X7,
|
||||
UNW_AARCH64_X8,
|
||||
|
||||
/* Temporary registers. */
|
||||
UNW_AARCH64_X9,
|
||||
UNW_AARCH64_X10,
|
||||
UNW_AARCH64_X11,
|
||||
UNW_AARCH64_X12,
|
||||
UNW_AARCH64_X13,
|
||||
UNW_AARCH64_X14,
|
||||
UNW_AARCH64_X15,
|
||||
|
||||
/* Intra-procedure-call temporary registers. */
|
||||
UNW_AARCH64_X16,
|
||||
UNW_AARCH64_X17,
|
||||
|
||||
/* Callee-saved registers. */
|
||||
UNW_AARCH64_X18,
|
||||
UNW_AARCH64_X19,
|
||||
UNW_AARCH64_X20,
|
||||
UNW_AARCH64_X21,
|
||||
UNW_AARCH64_X22,
|
||||
UNW_AARCH64_X23,
|
||||
UNW_AARCH64_X24,
|
||||
UNW_AARCH64_X25,
|
||||
UNW_AARCH64_X26,
|
||||
UNW_AARCH64_X27,
|
||||
UNW_AARCH64_X28,
|
||||
|
||||
/* 64-bit frame pointer. */
|
||||
UNW_AARCH64_X29,
|
||||
|
||||
/* 64-bit link register. */
|
||||
UNW_AARCH64_X30,
|
||||
|
||||
/* 64-bit stack pointer. */
|
||||
UNW_AARCH64_SP = 31,
|
||||
UNW_AARCH64_PC,
|
||||
UNW_AARCH64_PSTATE,
|
||||
|
||||
/* 128-bit FP/Advanced SIMD registers. */
|
||||
UNW_AARCH64_V0 = 64,
|
||||
UNW_AARCH64_V1,
|
||||
UNW_AARCH64_V2,
|
||||
UNW_AARCH64_V3,
|
||||
UNW_AARCH64_V4,
|
||||
UNW_AARCH64_V5,
|
||||
UNW_AARCH64_V6,
|
||||
UNW_AARCH64_V7,
|
||||
UNW_AARCH64_V8,
|
||||
UNW_AARCH64_V9,
|
||||
UNW_AARCH64_V10,
|
||||
UNW_AARCH64_V11,
|
||||
UNW_AARCH64_V12,
|
||||
UNW_AARCH64_V13,
|
||||
UNW_AARCH64_V14,
|
||||
UNW_AARCH64_V15,
|
||||
UNW_AARCH64_V16,
|
||||
UNW_AARCH64_V17,
|
||||
UNW_AARCH64_V18,
|
||||
UNW_AARCH64_V19,
|
||||
UNW_AARCH64_V20,
|
||||
UNW_AARCH64_V21,
|
||||
UNW_AARCH64_V22,
|
||||
UNW_AARCH64_V23,
|
||||
UNW_AARCH64_V24,
|
||||
UNW_AARCH64_V25,
|
||||
UNW_AARCH64_V26,
|
||||
UNW_AARCH64_V27,
|
||||
UNW_AARCH64_V28,
|
||||
UNW_AARCH64_V29,
|
||||
UNW_AARCH64_V30,
|
||||
UNW_AARCH64_V31,
|
||||
|
||||
UNW_AARCH64_FPSR,
|
||||
UNW_AARCH64_FPCR,
|
||||
|
||||
/* For AArch64, the CFA is the value of SP (x31) at the call site of the
|
||||
previous frame. */
|
||||
UNW_AARCH64_CFA = UNW_AARCH64_SP,
|
||||
|
||||
UNW_TDEP_LAST_REG = UNW_AARCH64_FPCR,
|
||||
|
||||
UNW_TDEP_IP = UNW_AARCH64_X30,
|
||||
UNW_TDEP_SP = UNW_AARCH64_SP,
|
||||
UNW_TDEP_EH = UNW_AARCH64_X0,
|
||||
|
||||
}
|
||||
aarch64_regnum_t;
|
||||
|
||||
/* Use R0 through R3 to pass exception handling information. */
|
||||
#define UNW_TDEP_NUM_EH_REGS 4
|
||||
|
||||
typedef struct unw_tdep_save_loc
|
||||
{
|
||||
/* Additional target-dependent info on a save location. */
|
||||
/* ANDROID support update. */
|
||||
char __reserved;
|
||||
/* End of ANDROID update. */
|
||||
}
|
||||
unw_tdep_save_loc_t;
|
||||
|
||||
|
||||
/* On AArch64, we can directly use ucontext_t as the unwind context. */
|
||||
typedef ucontext_t unw_tdep_context_t;
|
||||
|
||||
#include "libunwind-common.h"
|
||||
#include "libunwind-dynamic.h"
|
||||
|
||||
/* ANDROID support update. */
|
||||
/* There is no getcontext in Android. */
|
||||
#define unw_tdep_getcontext(uc) (({ \
|
||||
unw_tdep_context_t *unw_ctx = (uc); \
|
||||
register uint64_t *unw_base asm ("x0") = (uint64_t*) unw_ctx->uc_mcontext.regs; \
|
||||
__asm__ __volatile__ ( \
|
||||
"stp x0, x1, [%[base], #0]\n" \
|
||||
"stp x2, x3, [%[base], #16]\n" \
|
||||
"stp x4, x5, [%[base], #32]\n" \
|
||||
"stp x6, x7, [%[base], #48]\n" \
|
||||
"stp x8, x9, [%[base], #64]\n" \
|
||||
"stp x10, x11, [%[base], #80]\n" \
|
||||
"stp x12, x13, [%[base], #96]\n" \
|
||||
"stp x14, x13, [%[base], #112]\n" \
|
||||
"stp x16, x17, [%[base], #128]\n" \
|
||||
"stp x18, x19, [%[base], #144]\n" \
|
||||
"stp x20, x21, [%[base], #160]\n" \
|
||||
"stp x22, x23, [%[base], #176]\n" \
|
||||
"stp x24, x25, [%[base], #192]\n" \
|
||||
"stp x26, x27, [%[base], #208]\n" \
|
||||
"stp x28, x29, [%[base], #224]\n" \
|
||||
"str x30, [%[base], #240]\n" \
|
||||
"mov x1, sp\n" \
|
||||
"stp x1, x30, [%[base], #248]\n" \
|
||||
: [base] "+r" (unw_base) : : "x1", "memory"); \
|
||||
}), 0)
|
||||
/* End of ANDROID update. */
|
||||
#define unw_tdep_is_fpreg UNW_ARCH_OBJ(is_fpreg)
|
||||
|
||||
extern int unw_tdep_is_fpreg (int);
|
||||
|
||||
#if defined(__cplusplus) || defined(c_plusplus)
|
||||
}
|
||||
#endif
|
||||
|
||||
#endif /* LIBUNWIND_H */
|
||||
-308
@@ -1,308 +0,0 @@
|
||||
/* libunwind - a platform-independent unwind library
|
||||
Copyright (C) 2008 CodeSourcery
|
||||
|
||||
This file is part of libunwind.
|
||||
|
||||
Permission is hereby granted, free of charge, to any person obtaining
|
||||
a copy of this software and associated documentation files (the
|
||||
"Software"), to deal in the Software without restriction, including
|
||||
without limitation the rights to use, copy, modify, merge, publish,
|
||||
distribute, sublicense, and/or sell copies of the Software, and to
|
||||
permit persons to whom the Software is furnished to do so, subject to
|
||||
the following conditions:
|
||||
|
||||
The above copyright notice and this permission notice shall be
|
||||
included in all copies or substantial portions of the Software.
|
||||
|
||||
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
|
||||
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
|
||||
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
|
||||
NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
|
||||
LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
|
||||
OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
|
||||
WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. */
|
||||
|
||||
#ifndef LIBUNWIND_H
|
||||
#define LIBUNWIND_H
|
||||
|
||||
#if defined(__cplusplus) || defined(c_plusplus)
|
||||
extern "C" {
|
||||
#endif
|
||||
|
||||
#include <inttypes.h>
|
||||
#include <stddef.h>
|
||||
|
||||
#define UNW_TARGET arm
|
||||
#define UNW_TARGET_ARM 1
|
||||
|
||||
#define _U_TDEP_QP_TRUE 0 /* see libunwind-dynamic.h */
|
||||
|
||||
/* This needs to be big enough to accommodate "struct cursor", while
|
||||
leaving some slack for future expansion. Changing this value will
|
||||
require recompiling all users of this library. Stack allocation is
|
||||
relatively cheap and unwind-state copying is relatively rare, so we
|
||||
want to err on making it rather too big than too small. */
|
||||
|
||||
/* FIXME for ARM. Too big? What do other things use for similar tasks? */
|
||||
#define UNW_TDEP_CURSOR_LEN 4096
|
||||
|
||||
typedef uint32_t unw_word_t;
|
||||
typedef int32_t unw_sword_t;
|
||||
|
||||
typedef long double unw_tdep_fpreg_t;
|
||||
|
||||
typedef enum
|
||||
{
|
||||
UNW_ARM_R0,
|
||||
UNW_ARM_R1,
|
||||
UNW_ARM_R2,
|
||||
UNW_ARM_R3,
|
||||
UNW_ARM_R4,
|
||||
UNW_ARM_R5,
|
||||
UNW_ARM_R6,
|
||||
UNW_ARM_R7,
|
||||
UNW_ARM_R8,
|
||||
UNW_ARM_R9,
|
||||
UNW_ARM_R10,
|
||||
UNW_ARM_R11,
|
||||
UNW_ARM_R12,
|
||||
UNW_ARM_R13,
|
||||
UNW_ARM_R14,
|
||||
UNW_ARM_R15,
|
||||
|
||||
/* VFPv2 s0-s31 (obsolescent numberings). */
|
||||
UNW_ARM_S0 = 64,
|
||||
UNW_ARM_S1,
|
||||
UNW_ARM_S2,
|
||||
UNW_ARM_S3,
|
||||
UNW_ARM_S4,
|
||||
UNW_ARM_S5,
|
||||
UNW_ARM_S6,
|
||||
UNW_ARM_S7,
|
||||
UNW_ARM_S8,
|
||||
UNW_ARM_S9,
|
||||
UNW_ARM_S10,
|
||||
UNW_ARM_S11,
|
||||
UNW_ARM_S12,
|
||||
UNW_ARM_S13,
|
||||
UNW_ARM_S14,
|
||||
UNW_ARM_S15,
|
||||
UNW_ARM_S16,
|
||||
UNW_ARM_S17,
|
||||
UNW_ARM_S18,
|
||||
UNW_ARM_S19,
|
||||
UNW_ARM_S20,
|
||||
UNW_ARM_S21,
|
||||
UNW_ARM_S22,
|
||||
UNW_ARM_S23,
|
||||
UNW_ARM_S24,
|
||||
UNW_ARM_S25,
|
||||
UNW_ARM_S26,
|
||||
UNW_ARM_S27,
|
||||
UNW_ARM_S28,
|
||||
UNW_ARM_S29,
|
||||
UNW_ARM_S30,
|
||||
UNW_ARM_S31,
|
||||
|
||||
/* FPA register numberings. */
|
||||
UNW_ARM_F0 = 96,
|
||||
UNW_ARM_F1,
|
||||
UNW_ARM_F2,
|
||||
UNW_ARM_F3,
|
||||
UNW_ARM_F4,
|
||||
UNW_ARM_F5,
|
||||
UNW_ARM_F6,
|
||||
UNW_ARM_F7,
|
||||
|
||||
/* iWMMXt GR register numberings. */
|
||||
UNW_ARM_wCGR0 = 104,
|
||||
UNW_ARM_wCGR1,
|
||||
UNW_ARM_wCGR2,
|
||||
UNW_ARM_wCGR3,
|
||||
UNW_ARM_wCGR4,
|
||||
UNW_ARM_wCGR5,
|
||||
UNW_ARM_wCGR6,
|
||||
UNW_ARM_wCGR7,
|
||||
|
||||
/* iWMMXt register numberings. */
|
||||
UNW_ARM_wR0 = 112,
|
||||
UNW_ARM_wR1,
|
||||
UNW_ARM_wR2,
|
||||
UNW_ARM_wR3,
|
||||
UNW_ARM_wR4,
|
||||
UNW_ARM_wR5,
|
||||
UNW_ARM_wR6,
|
||||
UNW_ARM_wR7,
|
||||
UNW_ARM_wR8,
|
||||
UNW_ARM_wR9,
|
||||
UNW_ARM_wR10,
|
||||
UNW_ARM_wR11,
|
||||
UNW_ARM_wR12,
|
||||
UNW_ARM_wR13,
|
||||
UNW_ARM_wR14,
|
||||
UNW_ARM_wR15,
|
||||
|
||||
/* Two-byte encodings from here on. */
|
||||
|
||||
/* SPSR. */
|
||||
UNW_ARM_SPSR = 128,
|
||||
UNW_ARM_SPSR_FIQ,
|
||||
UNW_ARM_SPSR_IRQ,
|
||||
UNW_ARM_SPSR_ABT,
|
||||
UNW_ARM_SPSR_UND,
|
||||
UNW_ARM_SPSR_SVC,
|
||||
|
||||
/* User mode registers. */
|
||||
UNW_ARM_R8_USR = 144,
|
||||
UNW_ARM_R9_USR,
|
||||
UNW_ARM_R10_USR,
|
||||
UNW_ARM_R11_USR,
|
||||
UNW_ARM_R12_USR,
|
||||
UNW_ARM_R13_USR,
|
||||
UNW_ARM_R14_USR,
|
||||
|
||||
/* FIQ registers. */
|
||||
UNW_ARM_R8_FIQ = 151,
|
||||
UNW_ARM_R9_FIQ,
|
||||
UNW_ARM_R10_FIQ,
|
||||
UNW_ARM_R11_FIQ,
|
||||
UNW_ARM_R12_FIQ,
|
||||
UNW_ARM_R13_FIQ,
|
||||
UNW_ARM_R14_FIQ,
|
||||
|
||||
/* IRQ registers. */
|
||||
UNW_ARM_R13_IRQ = 158,
|
||||
UNW_ARM_R14_IRQ,
|
||||
|
||||
/* ABT registers. */
|
||||
UNW_ARM_R13_ABT = 160,
|
||||
UNW_ARM_R14_ABT,
|
||||
|
||||
/* UND registers. */
|
||||
UNW_ARM_R13_UND = 162,
|
||||
UNW_ARM_R14_UND,
|
||||
|
||||
/* SVC registers. */
|
||||
UNW_ARM_R13_SVC = 164,
|
||||
UNW_ARM_R14_SVC,
|
||||
|
||||
/* iWMMXt control registers. */
|
||||
UNW_ARM_wC0 = 192,
|
||||
UNW_ARM_wC1,
|
||||
UNW_ARM_wC2,
|
||||
UNW_ARM_wC3,
|
||||
UNW_ARM_wC4,
|
||||
UNW_ARM_wC5,
|
||||
UNW_ARM_wC6,
|
||||
UNW_ARM_wC7,
|
||||
|
||||
/* VFPv3/Neon 64-bit registers. */
|
||||
UNW_ARM_D0 = 256,
|
||||
UNW_ARM_D1,
|
||||
UNW_ARM_D2,
|
||||
UNW_ARM_D3,
|
||||
UNW_ARM_D4,
|
||||
UNW_ARM_D5,
|
||||
UNW_ARM_D6,
|
||||
UNW_ARM_D7,
|
||||
UNW_ARM_D8,
|
||||
UNW_ARM_D9,
|
||||
UNW_ARM_D10,
|
||||
UNW_ARM_D11,
|
||||
UNW_ARM_D12,
|
||||
UNW_ARM_D13,
|
||||
UNW_ARM_D14,
|
||||
UNW_ARM_D15,
|
||||
UNW_ARM_D16,
|
||||
UNW_ARM_D17,
|
||||
UNW_ARM_D18,
|
||||
UNW_ARM_D19,
|
||||
UNW_ARM_D20,
|
||||
UNW_ARM_D21,
|
||||
UNW_ARM_D22,
|
||||
UNW_ARM_D23,
|
||||
UNW_ARM_D24,
|
||||
UNW_ARM_D25,
|
||||
UNW_ARM_D26,
|
||||
UNW_ARM_D27,
|
||||
UNW_ARM_D28,
|
||||
UNW_ARM_D29,
|
||||
UNW_ARM_D30,
|
||||
UNW_ARM_D31,
|
||||
|
||||
/* For ARM, the CFA is the value of SP (r13) at the call site in the
|
||||
previous frame. */
|
||||
UNW_ARM_CFA,
|
||||
|
||||
UNW_TDEP_LAST_REG = UNW_ARM_D31,
|
||||
|
||||
UNW_TDEP_IP = UNW_ARM_R14, /* A little white lie. */
|
||||
UNW_TDEP_SP = UNW_ARM_R13,
|
||||
UNW_TDEP_EH = UNW_ARM_R0 /* FIXME. */
|
||||
}
|
||||
arm_regnum_t;
|
||||
|
||||
#define UNW_TDEP_NUM_EH_REGS 2 /* FIXME for ARM. */
|
||||
|
||||
typedef struct unw_tdep_save_loc
|
||||
{
|
||||
/* Additional target-dependent info on a save location. */
|
||||
/* ANDROID support update. */
|
||||
char __reserved;
|
||||
/* End of ANDROID update. */
|
||||
}
|
||||
unw_tdep_save_loc_t;
|
||||
|
||||
/* On ARM, we define our own unw_tdep_context instead of using ucontext_t.
|
||||
This allows us to support systems that don't support getcontext and
|
||||
therefore do not define ucontext_t. */
|
||||
typedef struct unw_tdep_context
|
||||
{
|
||||
unsigned long regs[16];
|
||||
}
|
||||
unw_tdep_context_t;
|
||||
|
||||
/* There is no getcontext() on ARM. Use a stub version which only saves GP
|
||||
registers. FIXME: Not ideal, may not be sufficient for all libunwind
|
||||
use cases. Stores pc+8, which is only approximately correct, really. */
|
||||
#ifndef __thumb__
|
||||
#define unw_tdep_getcontext(uc) (({ \
|
||||
unw_tdep_context_t *unw_ctx = (uc); \
|
||||
register unsigned long *unw_base asm ("r0") = unw_ctx->regs; \
|
||||
__asm__ __volatile__ ( \
|
||||
"stmia %[base], {r0-r15}" \
|
||||
: : [base] "r" (unw_base) : "memory"); \
|
||||
}), 0)
|
||||
#else /* __thumb__ */
|
||||
#define unw_tdep_getcontext(uc) (({ \
|
||||
unw_tdep_context_t *unw_ctx = (uc); \
|
||||
register unsigned long *unw_base asm ("r0") = unw_ctx->regs; \
|
||||
__asm__ __volatile__ ( \
|
||||
".align 2\nbx pc\nnop\n.code 32\n" \
|
||||
"stmia %[base], {r0-r15}\n" \
|
||||
"orr %[base], pc, #1\nbx %[base]" \
|
||||
: [base] "+r" (unw_base) : : "memory", "cc"); \
|
||||
}), 0)
|
||||
#endif
|
||||
|
||||
#include "libunwind-dynamic.h"
|
||||
|
||||
typedef struct
|
||||
{
|
||||
/* no arm-specific auxiliary proc-info */
|
||||
/* ANDROID support update. */
|
||||
char __reserved;
|
||||
/* End of ANDROID update. */
|
||||
}
|
||||
unw_tdep_proc_info_t;
|
||||
|
||||
#include "libunwind-common.h"
|
||||
|
||||
#define unw_tdep_is_fpreg UNW_ARCH_OBJ(is_fpreg)
|
||||
extern int unw_tdep_is_fpreg (int);
|
||||
|
||||
#if defined(__cplusplus) || defined(c_plusplus)
|
||||
}
|
||||
#endif
|
||||
|
||||
#endif /* LIBUNWIND_H */
|
||||
@@ -1,308 +0,0 @@
|
||||
/* libunwind - a platform-independent unwind library
|
||||
Copyright (C) 2001-2004 Hewlett-Packard Co
|
||||
Contributed by David Mosberger-Tang <[email protected]>
|
||||
|
||||
This file is part of libunwind.
|
||||
|
||||
Permission is hereby granted, free of charge, to any person obtaining
|
||||
a copy of this software and associated documentation files (the
|
||||
"Software"), to deal in the Software without restriction, including
|
||||
without limitation the rights to use, copy, modify, merge, publish,
|
||||
distribute, sublicense, and/or sell copies of the Software, and to
|
||||
permit persons to whom the Software is furnished to do so, subject to
|
||||
the following conditions:
|
||||
|
||||
The above copyright notice and this permission notice shall be
|
||||
included in all copies or substantial portions of the Software.
|
||||
|
||||
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
|
||||
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
|
||||
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
|
||||
NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
|
||||
LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
|
||||
OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
|
||||
WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. */
|
||||
|
||||
/* ANDROID support update. */
|
||||
#include <sys/types.h>
|
||||
/* End of ANDROID update. */
|
||||
|
||||
#define UNW_VERSION_MAJOR 1
|
||||
#define UNW_VERSION_MINOR 1
|
||||
#define UNW_VERSION_EXTRA
|
||||
|
||||
#define UNW_VERSION_CODE(maj,min) (((maj) << 16) | (min))
|
||||
#define UNW_VERSION UNW_VERSION_CODE(UNW_VERSION_MAJOR, UNW_VERSION_MINOR)
|
||||
|
||||
#define UNW_PASTE2(x,y) x##y
|
||||
#define UNW_PASTE(x,y) UNW_PASTE2(x,y)
|
||||
#define UNW_OBJ(fn) UNW_PASTE(UNW_PREFIX, fn)
|
||||
#define UNW_ARCH_OBJ(fn) UNW_PASTE(UNW_PASTE(UNW_PASTE(_U,UNW_TARGET),_), fn)
|
||||
|
||||
#ifdef UNW_LOCAL_ONLY
|
||||
# ifdef UNW_ADDITIONAL_PREFIX
|
||||
# define UNW_PREFIX UNW_PASTE(UNW_PASTE(_UUL,UNW_TARGET),_)
|
||||
# else
|
||||
# define UNW_PREFIX UNW_PASTE(UNW_PASTE(_UL,UNW_TARGET),_)
|
||||
# endif
|
||||
#else /* !UNW_LOCAL_ONLY */
|
||||
# ifdef UNW_ADDITIONAL_PREFIX
|
||||
# define UNW_PREFIX UNW_PASTE(UNW_PASTE(_UU,UNW_TARGET),_)
|
||||
# else
|
||||
# define UNW_PREFIX UNW_PASTE(UNW_PASTE(_U,UNW_TARGET),_)
|
||||
# endif
|
||||
#endif /* !UNW_LOCAL_ONLY */
|
||||
|
||||
/* Error codes. The unwind routines return the *negated* values of
|
||||
these error codes on error and a non-negative value on success. */
|
||||
typedef enum
|
||||
{
|
||||
UNW_ESUCCESS = 0, /* no error */
|
||||
UNW_EUNSPEC, /* unspecified (general) error */
|
||||
UNW_ENOMEM, /* out of memory */
|
||||
UNW_EBADREG, /* bad register number */
|
||||
UNW_EREADONLYREG, /* attempt to write read-only register */
|
||||
UNW_ESTOPUNWIND, /* stop unwinding */
|
||||
UNW_EINVALIDIP, /* invalid IP */
|
||||
UNW_EBADFRAME, /* bad frame */
|
||||
UNW_EINVAL, /* unsupported operation or bad value */
|
||||
UNW_EBADVERSION, /* unwind info has unsupported version */
|
||||
UNW_ENOINFO /* no unwind info found */
|
||||
}
|
||||
unw_error_t;
|
||||
|
||||
/* The following enum defines the indices for a couple of
|
||||
(pseudo-)registers which have the same meaning across all
|
||||
platforms. (RO) means read-only. (RW) means read-write. General
|
||||
registers (aka "integer registers") are expected to start with
|
||||
index 0. The number of such registers is architecture-dependent.
|
||||
The remaining indices can be used as an architecture sees fit. The
|
||||
last valid register index is given by UNW_REG_LAST. */
|
||||
typedef enum
|
||||
{
|
||||
UNW_REG_IP = UNW_TDEP_IP, /* (rw) instruction pointer (pc) */
|
||||
UNW_REG_SP = UNW_TDEP_SP, /* (ro) stack pointer */
|
||||
UNW_REG_EH = UNW_TDEP_EH, /* (rw) exception-handling reg base */
|
||||
UNW_REG_LAST = UNW_TDEP_LAST_REG
|
||||
}
|
||||
unw_frame_regnum_t;
|
||||
|
||||
/* Number of exception-handler argument registers: */
|
||||
#define UNW_NUM_EH_REGS UNW_TDEP_NUM_EH_REGS
|
||||
|
||||
typedef enum
|
||||
{
|
||||
UNW_CACHE_NONE, /* no caching */
|
||||
UNW_CACHE_GLOBAL, /* shared global cache */
|
||||
UNW_CACHE_PER_THREAD /* per-thread caching */
|
||||
}
|
||||
unw_caching_policy_t;
|
||||
|
||||
typedef int unw_regnum_t;
|
||||
|
||||
/* The unwind cursor starts at the youngest (most deeply nested) frame
|
||||
and is used to track the frame state as the unwinder steps from
|
||||
frame to frame. It is safe to make (shallow) copies of variables
|
||||
of this type. */
|
||||
typedef struct unw_cursor
|
||||
{
|
||||
unw_word_t opaque[UNW_TDEP_CURSOR_LEN];
|
||||
}
|
||||
unw_cursor_t;
|
||||
|
||||
/* This type encapsulates the entire (preserved) machine-state. */
|
||||
typedef unw_tdep_context_t unw_context_t;
|
||||
|
||||
/* unw_getcontext() fills the unw_context_t pointed to by UC with the
|
||||
machine state as it exists at the call-site. For implementation
|
||||
reasons, this needs to be a target-dependent macro. It's easiest
|
||||
to think of unw_getcontext() as being identical to getcontext(). */
|
||||
#define unw_getcontext(uc) unw_tdep_getcontext(uc)
|
||||
|
||||
/* Return 1 if register number R is a floating-point register, zero
|
||||
otherwise.
|
||||
This routine is signal-safe. */
|
||||
#define unw_is_fpreg(r) unw_tdep_is_fpreg(r)
|
||||
|
||||
typedef unw_tdep_fpreg_t unw_fpreg_t;
|
||||
|
||||
typedef struct unw_addr_space *unw_addr_space_t;
|
||||
|
||||
/* Each target may define it's own set of flags, but bits 0-15 are
|
||||
reserved for general libunwind-use. */
|
||||
#define UNW_PI_FLAG_FIRST_TDEP_BIT 16
|
||||
/* The information comes from a .debug_frame section. */
|
||||
#define UNW_PI_FLAG_DEBUG_FRAME 32
|
||||
|
||||
typedef struct unw_proc_info
|
||||
{
|
||||
unw_word_t start_ip; /* first IP covered by this procedure */
|
||||
unw_word_t end_ip; /* first IP NOT covered by this procedure */
|
||||
unw_word_t lsda; /* address of lang.-spec. data area (if any) */
|
||||
unw_word_t handler; /* optional personality routine */
|
||||
unw_word_t gp; /* global-pointer value for this procedure */
|
||||
unw_word_t flags; /* misc. flags */
|
||||
|
||||
int format; /* unwind-info format (arch-specific) */
|
||||
int unwind_info_size; /* size of the information (if applicable) */
|
||||
void *unwind_info; /* unwind-info (arch-specific) */
|
||||
unw_tdep_proc_info_t extra; /* target-dependent auxiliary proc-info */
|
||||
}
|
||||
unw_proc_info_t;
|
||||
|
||||
/* These are backend callback routines that provide access to the
|
||||
state of a "remote" process. This can be used, for example, to
|
||||
unwind another process through the ptrace() interface. */
|
||||
typedef struct unw_accessors
|
||||
{
|
||||
/* Look up the unwind info associated with instruction-pointer IP.
|
||||
On success, the routine fills in the PROC_INFO structure. */
|
||||
int (*find_proc_info) (unw_addr_space_t, unw_word_t, unw_proc_info_t *,
|
||||
int, void *);
|
||||
|
||||
/* Release any resources (e.g., memory) that were allocated for
|
||||
the unwind info returned in by a previous call to
|
||||
find_proc_info() with NEED_UNWIND_INFO set to 1. */
|
||||
void (*put_unwind_info) (unw_addr_space_t, unw_proc_info_t *, void *);
|
||||
|
||||
/* Return the list-head of the dynamically registered unwind
|
||||
info. */
|
||||
int (*get_dyn_info_list_addr) (unw_addr_space_t, unw_word_t *, void *);
|
||||
|
||||
/* Access aligned word at address ADDR. The value is returned
|
||||
according to the endianness of the host (e.g., if the host is
|
||||
little-endian and the target is big-endian, access_mem() needs
|
||||
to byte-swap the value before returning it). */
|
||||
int (*access_mem) (unw_addr_space_t, unw_word_t, unw_word_t *, int,
|
||||
void *);
|
||||
|
||||
/* Access register number REG at address ADDR. */
|
||||
int (*access_reg) (unw_addr_space_t, unw_regnum_t, unw_word_t *, int,
|
||||
void *);
|
||||
|
||||
/* Access register number REG at address ADDR. */
|
||||
int (*access_fpreg) (unw_addr_space_t, unw_regnum_t,
|
||||
unw_fpreg_t *, int, void *);
|
||||
|
||||
int (*resume) (unw_addr_space_t, unw_cursor_t *, void *);
|
||||
|
||||
/* Optional call back to obtain the name of a (static) procedure.
|
||||
Dynamically generated procedures are handled automatically by
|
||||
libunwind. This callback is optional and may be set to
|
||||
NULL. */
|
||||
int (*get_proc_name) (unw_addr_space_t, unw_word_t, char *, size_t,
|
||||
unw_word_t *, void *);
|
||||
}
|
||||
unw_accessors_t;
|
||||
|
||||
typedef enum unw_save_loc_type
|
||||
{
|
||||
UNW_SLT_NONE, /* register is not saved ("not an l-value") */
|
||||
UNW_SLT_MEMORY, /* register has been saved in memory */
|
||||
UNW_SLT_REG /* register has been saved in (another) register */
|
||||
}
|
||||
unw_save_loc_type_t;
|
||||
|
||||
typedef struct unw_save_loc
|
||||
{
|
||||
unw_save_loc_type_t type;
|
||||
union
|
||||
{
|
||||
unw_word_t addr; /* valid if type==UNW_SLT_MEMORY */
|
||||
unw_regnum_t regnum; /* valid if type==UNW_SLT_REG */
|
||||
}
|
||||
u;
|
||||
unw_tdep_save_loc_t extra; /* target-dependent additional information */
|
||||
}
|
||||
unw_save_loc_t;
|
||||
|
||||
/* ANDROID support update. */
|
||||
typedef struct unw_map_cursor
|
||||
{
|
||||
void *map_list;
|
||||
void *cur_map;
|
||||
}
|
||||
unw_map_cursor_t;
|
||||
|
||||
typedef struct unw_map
|
||||
{
|
||||
unw_word_t start;
|
||||
unw_word_t end;
|
||||
unw_word_t offset;
|
||||
unw_word_t load_base;
|
||||
char *path;
|
||||
int flags;
|
||||
}
|
||||
unw_map_t;
|
||||
/* End of ANDROID update. */
|
||||
|
||||
/* These routines work both for local and remote unwinding. */
|
||||
|
||||
#define unw_local_access_addr_space_init UNW_OBJ(local_access_addr_space_init)
|
||||
#define unw_local_addr_space UNW_OBJ(local_addr_space)
|
||||
#define unw_create_addr_space UNW_OBJ(create_addr_space)
|
||||
#define unw_destroy_addr_space UNW_OBJ(destroy_addr_space)
|
||||
#define unw_get_accessors UNW_ARCH_OBJ(get_accessors)
|
||||
#define unw_init_local UNW_OBJ(init_local)
|
||||
#define unw_init_remote UNW_OBJ(init_remote)
|
||||
#define unw_step UNW_OBJ(step)
|
||||
#define unw_resume UNW_OBJ(resume)
|
||||
#define unw_get_proc_info UNW_OBJ(get_proc_info)
|
||||
#define unw_get_proc_info_by_ip UNW_OBJ(get_proc_info_by_ip)
|
||||
#define unw_get_reg UNW_OBJ(get_reg)
|
||||
#define unw_set_reg UNW_OBJ(set_reg)
|
||||
#define unw_get_fpreg UNW_OBJ(get_fpreg)
|
||||
#define unw_set_fpreg UNW_OBJ(set_fpreg)
|
||||
#define unw_get_save_loc UNW_OBJ(get_save_loc)
|
||||
#define unw_is_signal_frame UNW_OBJ(is_signal_frame)
|
||||
#define unw_handle_signal_frame UNW_OBJ(handle_signal_frame)
|
||||
#define unw_get_proc_name UNW_OBJ(get_proc_name)
|
||||
#define unw_get_proc_name_by_ip UNW_OBJ(get_proc_name_by_ip)
|
||||
#define unw_set_caching_policy UNW_OBJ(set_caching_policy)
|
||||
#define unw_regname UNW_ARCH_OBJ(regname)
|
||||
#define unw_flush_cache UNW_ARCH_OBJ(flush_cache)
|
||||
#define unw_strerror UNW_ARCH_OBJ(strerror)
|
||||
|
||||
extern void unw_local_access_addr_space_init (unw_addr_space_t);
|
||||
extern unw_addr_space_t unw_create_addr_space (unw_accessors_t *, int);
|
||||
extern void unw_destroy_addr_space (unw_addr_space_t);
|
||||
extern unw_accessors_t *unw_get_accessors (unw_addr_space_t);
|
||||
extern void unw_flush_cache (unw_addr_space_t, unw_word_t, unw_word_t);
|
||||
extern int unw_set_caching_policy (unw_addr_space_t, unw_caching_policy_t);
|
||||
extern const char *unw_regname (unw_regnum_t);
|
||||
|
||||
extern int unw_init_local (unw_cursor_t *, unw_context_t *);
|
||||
extern int unw_init_remote (unw_cursor_t *, unw_addr_space_t, void *);
|
||||
extern int unw_step (unw_cursor_t *);
|
||||
extern int unw_resume (unw_cursor_t *);
|
||||
extern int unw_get_proc_info (unw_cursor_t *, unw_proc_info_t *);
|
||||
extern int unw_get_proc_info_by_ip (unw_addr_space_t, unw_word_t,
|
||||
unw_proc_info_t *, void *);
|
||||
extern int unw_get_reg (unw_cursor_t *, int, unw_word_t *);
|
||||
extern int unw_set_reg (unw_cursor_t *, int, unw_word_t);
|
||||
extern int unw_get_fpreg (unw_cursor_t *, int, unw_fpreg_t *);
|
||||
extern int unw_set_fpreg (unw_cursor_t *, int, unw_fpreg_t);
|
||||
extern int unw_get_save_loc (unw_cursor_t *, int, unw_save_loc_t *);
|
||||
extern int unw_is_signal_frame (unw_cursor_t *);
|
||||
extern int unw_handle_signal_frame (unw_cursor_t *);
|
||||
extern int unw_get_proc_name (unw_cursor_t *, char *, size_t, unw_word_t *);
|
||||
extern int unw_get_proc_name_by_ip (unw_addr_space_t, unw_word_t, char *,
|
||||
size_t, unw_word_t *, void *);
|
||||
extern const char *unw_strerror (int);
|
||||
extern int unw_backtrace (void **, int);
|
||||
|
||||
/* ANDROID support update. */
|
||||
extern int unw_map_local_cursor_valid (unw_map_cursor_t *);
|
||||
extern void unw_map_local_cursor_get (unw_map_cursor_t *);
|
||||
extern int unw_map_local_cursor_get_next (unw_map_cursor_t *, unw_map_t *);
|
||||
extern int unw_map_local_create (void);
|
||||
extern void unw_map_local_destroy (void);
|
||||
extern void unw_map_set (unw_addr_space_t, unw_map_cursor_t *);
|
||||
extern void unw_map_cursor_reset (unw_map_cursor_t *);
|
||||
extern void unw_map_cursor_clear (unw_map_cursor_t *);
|
||||
extern int unw_map_cursor_create (unw_map_cursor_t *, pid_t);
|
||||
extern void unw_map_cursor_destroy (unw_map_cursor_t *);
|
||||
extern int unw_map_cursor_get_next (unw_map_cursor_t *, unw_map_t *);
|
||||
/* End of ANDROID update. */
|
||||
|
||||
extern unw_addr_space_t unw_local_addr_space;
|
||||
@@ -1,73 +0,0 @@
|
||||
/* libunwind - a platform-independent unwind library
|
||||
|
||||
This file is part of libunwind.
|
||||
|
||||
Permission is hereby granted, free of charge, to any person obtaining
|
||||
a copy of this software and associated documentation files (the
|
||||
"Software"), to deal in the Software without restriction, including
|
||||
without limitation the rights to use, copy, modify, merge, publish,
|
||||
distribute, sublicense, and/or sell copies of the Software, and to
|
||||
permit persons to whom the Software is furnished to do so, subject to
|
||||
the following conditions:
|
||||
|
||||
The above copyright notice and this permission notice shall be
|
||||
included in all copies or substantial portions of the Software.
|
||||
|
||||
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
|
||||
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
|
||||
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
|
||||
NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
|
||||
LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
|
||||
OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
|
||||
WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. */
|
||||
|
||||
#ifndef libunwind_coredump_h
|
||||
#define libunwind_coredump_h
|
||||
|
||||
#include <libunwind.h>
|
||||
|
||||
#if defined(__cplusplus) || defined(c_plusplus)
|
||||
extern "C" {
|
||||
#endif
|
||||
|
||||
/* Helper routines which make it easy to use libunwind on a coredump.
|
||||
They're available only if UNW_REMOTE_ONLY is _not_ defined and they
|
||||
aren't really part of the libunwind API. They are implemented in a
|
||||
archive library called libunwind-coredump.a. */
|
||||
|
||||
struct UCD_info;
|
||||
|
||||
extern struct UCD_info *_UCD_create(const char *filename);
|
||||
extern void _UCD_destroy(struct UCD_info *);
|
||||
|
||||
extern int _UCD_get_num_threads(struct UCD_info *);
|
||||
extern void _UCD_select_thread(struct UCD_info *, int);
|
||||
extern pid_t _UCD_get_pid(struct UCD_info *);
|
||||
extern int _UCD_get_cursig(struct UCD_info *);
|
||||
extern int _UCD_add_backing_file_at_segment(struct UCD_info *, int phdr_no, const char *filename);
|
||||
extern int _UCD_add_backing_file_at_vaddr(struct UCD_info *,
|
||||
unsigned long vaddr,
|
||||
const char *filename);
|
||||
|
||||
extern int _UCD_find_proc_info (unw_addr_space_t, unw_word_t,
|
||||
unw_proc_info_t *, int, void *);
|
||||
extern void _UCD_put_unwind_info (unw_addr_space_t, unw_proc_info_t *, void *);
|
||||
extern int _UCD_get_dyn_info_list_addr (unw_addr_space_t, unw_word_t *,
|
||||
void *);
|
||||
extern int _UCD_access_mem (unw_addr_space_t, unw_word_t, unw_word_t *, int,
|
||||
void *);
|
||||
extern int _UCD_access_reg (unw_addr_space_t, unw_regnum_t, unw_word_t *,
|
||||
int, void *);
|
||||
extern int _UCD_access_fpreg (unw_addr_space_t, unw_regnum_t, unw_fpreg_t *,
|
||||
int, void *);
|
||||
extern int _UCD_get_proc_name (unw_addr_space_t, unw_word_t, char *, size_t,
|
||||
unw_word_t *, void *);
|
||||
extern int _UCD_resume (unw_addr_space_t, unw_cursor_t *, void *);
|
||||
extern unw_accessors_t _UCD_accessors;
|
||||
|
||||
|
||||
#if defined(__cplusplus) || defined(c_plusplus)
|
||||
}
|
||||
#endif
|
||||
|
||||
#endif /* libunwind_coredump_h */
|
||||
@@ -1,210 +0,0 @@
|
||||
/* libunwind - a platform-independent unwind library
|
||||
Copyright (C) 2002-2004 Hewlett-Packard Co
|
||||
Contributed by David Mosberger-Tang <[email protected]>
|
||||
|
||||
This file is part of libunwind.
|
||||
|
||||
Permission is hereby granted, free of charge, to any person obtaining
|
||||
a copy of this software and associated documentation files (the
|
||||
"Software"), to deal in the Software without restriction, including
|
||||
without limitation the rights to use, copy, modify, merge, publish,
|
||||
distribute, sublicense, and/or sell copies of the Software, and to
|
||||
permit persons to whom the Software is furnished to do so, subject to
|
||||
the following conditions:
|
||||
|
||||
The above copyright notice and this permission notice shall be
|
||||
included in all copies or substantial portions of the Software.
|
||||
|
||||
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
|
||||
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
|
||||
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
|
||||
NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
|
||||
LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
|
||||
OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
|
||||
WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. */
|
||||
|
||||
/* This file defines the runtime-support routines for dynamically
|
||||
generated code. Even though it is implemented as part of libunwind,
|
||||
it is logically separate from the interface to perform the actual
|
||||
unwinding. In particular, this interface is always used in the
|
||||
context of the unwind target, whereas the rest of the unwind API is
|
||||
used in context of the process that is doing the unwind (which may be
|
||||
a debugger running on another machine, for example).
|
||||
|
||||
Note that the data-structures declared here server a dual purpose:
|
||||
when a program registers a dynamically generated procedure, it uses
|
||||
these structures directly. On the other hand, with remote-unwinding,
|
||||
the data-structures are read from the remote process's memory and
|
||||
translated into internalized versions. To facilitate remote-access,
|
||||
the following rules should be followed in declaring these structures:
|
||||
|
||||
(1) Declare a member as a pointer only if the the information the
|
||||
member points to needs to be internalized as well (e.g., a
|
||||
string representing a procedure name should be declared as
|
||||
"const char *", but the instruction pointer should be declared
|
||||
as unw_word_t).
|
||||
|
||||
(2) Provide sufficient padding to ensure that no implicit padding
|
||||
will be needed on any of the supported target architectures. For
|
||||
the time being, padding data structures with the assumption that
|
||||
sizeof (unw_word_t) == 8 should be sufficient. (Note: it's not
|
||||
impossible to internalize structures with internal padding, but
|
||||
it does make the process a bit harder).
|
||||
|
||||
(3) Don't declare members that contain bitfields or floating-point
|
||||
values.
|
||||
|
||||
(4) Don't declare members with enumeration types. Declare them as
|
||||
int32_t instead. */
|
||||
|
||||
typedef enum
|
||||
{
|
||||
UNW_DYN_STOP = 0, /* end-of-unwind-info marker */
|
||||
UNW_DYN_SAVE_REG, /* save register to another register */
|
||||
UNW_DYN_SPILL_FP_REL, /* frame-pointer-relative register spill */
|
||||
UNW_DYN_SPILL_SP_REL, /* stack-pointer-relative register spill */
|
||||
UNW_DYN_ADD, /* add constant value to a register */
|
||||
UNW_DYN_POP_FRAMES, /* drop one or more stack frames */
|
||||
UNW_DYN_LABEL_STATE, /* name the current state */
|
||||
UNW_DYN_COPY_STATE, /* set the region's entry-state */
|
||||
UNW_DYN_ALIAS /* get unwind info from an alias */
|
||||
}
|
||||
unw_dyn_operation_t;
|
||||
|
||||
typedef enum
|
||||
{
|
||||
UNW_INFO_FORMAT_DYNAMIC, /* unw_dyn_proc_info_t */
|
||||
UNW_INFO_FORMAT_TABLE, /* unw_dyn_table_t */
|
||||
UNW_INFO_FORMAT_REMOTE_TABLE, /* unw_dyn_remote_table_t */
|
||||
UNW_INFO_FORMAT_ARM_EXIDX /* ARM specific unwind info */
|
||||
}
|
||||
unw_dyn_info_format_t;
|
||||
|
||||
typedef struct unw_dyn_op
|
||||
{
|
||||
int8_t tag; /* what operation? */
|
||||
int8_t qp; /* qualifying predicate register */
|
||||
int16_t reg; /* what register */
|
||||
int32_t when; /* when does it take effect? */
|
||||
unw_word_t val; /* auxiliary value */
|
||||
}
|
||||
unw_dyn_op_t;
|
||||
|
||||
typedef struct unw_dyn_region_info
|
||||
{
|
||||
struct unw_dyn_region_info *next; /* linked list of regions */
|
||||
int32_t insn_count; /* region length (# of instructions) */
|
||||
uint32_t op_count; /* length of op-array */
|
||||
unw_dyn_op_t op[1]; /* variable-length op-array */
|
||||
}
|
||||
unw_dyn_region_info_t;
|
||||
|
||||
typedef struct unw_dyn_proc_info
|
||||
{
|
||||
unw_word_t name_ptr; /* address of human-readable procedure name */
|
||||
unw_word_t handler; /* address of personality routine */
|
||||
uint32_t flags;
|
||||
int32_t pad0;
|
||||
unw_dyn_region_info_t *regions;
|
||||
}
|
||||
unw_dyn_proc_info_t;
|
||||
|
||||
typedef struct unw_dyn_table_info
|
||||
{
|
||||
unw_word_t name_ptr; /* addr. of table name (e.g., library name) */
|
||||
unw_word_t segbase; /* segment base */
|
||||
unw_word_t table_len; /* must be a multiple of sizeof(unw_word_t)! */
|
||||
unw_word_t *table_data;
|
||||
}
|
||||
unw_dyn_table_info_t;
|
||||
|
||||
typedef struct unw_dyn_remote_table_info
|
||||
{
|
||||
unw_word_t name_ptr; /* addr. of table name (e.g., library name) */
|
||||
unw_word_t segbase; /* segment base */
|
||||
unw_word_t table_len; /* must be a multiple of sizeof(unw_word_t)! */
|
||||
unw_word_t table_data;
|
||||
}
|
||||
unw_dyn_remote_table_info_t;
|
||||
|
||||
typedef struct unw_dyn_info
|
||||
{
|
||||
/* doubly-linked list of dyn-info structures: */
|
||||
struct unw_dyn_info *next;
|
||||
struct unw_dyn_info *prev;
|
||||
unw_word_t start_ip; /* first IP covered by this entry */
|
||||
unw_word_t end_ip; /* first IP NOT covered by this entry */
|
||||
unw_word_t gp; /* global-pointer in effect for this entry */
|
||||
int32_t format; /* real type: unw_dyn_info_format_t */
|
||||
int32_t pad;
|
||||
union
|
||||
{
|
||||
unw_dyn_proc_info_t pi;
|
||||
unw_dyn_table_info_t ti;
|
||||
unw_dyn_remote_table_info_t rti;
|
||||
}
|
||||
u;
|
||||
}
|
||||
unw_dyn_info_t;
|
||||
|
||||
typedef struct unw_dyn_info_list
|
||||
{
|
||||
uint32_t version;
|
||||
uint32_t generation;
|
||||
unw_dyn_info_t *first;
|
||||
}
|
||||
unw_dyn_info_list_t;
|
||||
|
||||
/* Return the size (in bytes) of an unw_dyn_region_info_t structure that can
|
||||
hold OP_COUNT ops. */
|
||||
#define _U_dyn_region_info_size(op_count) \
|
||||
((char *) (((unw_dyn_region_info_t *) NULL)->op + (op_count)) \
|
||||
- (char *) NULL)
|
||||
|
||||
/* Register the unwind info for a single procedure.
|
||||
This routine is NOT signal-safe. */
|
||||
extern void _U_dyn_register (unw_dyn_info_t *);
|
||||
|
||||
/* Cancel the unwind info for a single procedure.
|
||||
This routine is NOT signal-safe. */
|
||||
extern void _U_dyn_cancel (unw_dyn_info_t *);
|
||||
|
||||
|
||||
/* Convenience routines. */
|
||||
|
||||
#define _U_dyn_op(_tag, _qp, _when, _reg, _val) \
|
||||
((unw_dyn_op_t) { (_tag), (_qp), (_reg), (_when), (_val) })
|
||||
|
||||
#define _U_dyn_op_save_reg(op, qp, when, reg, dst) \
|
||||
(*(op) = _U_dyn_op (UNW_DYN_SAVE_REG, (qp), (when), (reg), (dst)))
|
||||
|
||||
#define _U_dyn_op_spill_fp_rel(op, qp, when, reg, offset) \
|
||||
(*(op) = _U_dyn_op (UNW_DYN_SPILL_FP_REL, (qp), (when), (reg), \
|
||||
(offset)))
|
||||
|
||||
#define _U_dyn_op_spill_sp_rel(op, qp, when, reg, offset) \
|
||||
(*(op) = _U_dyn_op (UNW_DYN_SPILL_SP_REL, (qp), (when), (reg), \
|
||||
(offset)))
|
||||
|
||||
#define _U_dyn_op_add(op, qp, when, reg, value) \
|
||||
(*(op) = _U_dyn_op (UNW_DYN_ADD, (qp), (when), (reg), (value)))
|
||||
|
||||
#define _U_dyn_op_pop_frames(op, qp, when, num_frames) \
|
||||
(*(op) = _U_dyn_op (UNW_DYN_POP_FRAMES, (qp), (when), 0, (num_frames)))
|
||||
|
||||
#define _U_dyn_op_label_state(op, label) \
|
||||
(*(op) = _U_dyn_op (UNW_DYN_LABEL_STATE, _U_QP_TRUE, -1, 0, (label)))
|
||||
|
||||
#define _U_dyn_op_copy_state(op, label) \
|
||||
(*(op) = _U_dyn_op (UNW_DYN_COPY_STATE, _U_QP_TRUE, -1, 0, (label)))
|
||||
|
||||
#define _U_dyn_op_alias(op, qp, when, addr) \
|
||||
(*(op) = _U_dyn_op (UNW_DYN_ALIAS, (qp), (when), 0, (addr)))
|
||||
|
||||
#define _U_dyn_op_stop(op) \
|
||||
(*(op) = _U_dyn_op (UNW_DYN_STOP, _U_QP_TRUE, -1, 0, 0))
|
||||
|
||||
/* The target-dependent qualifying predicate which is always TRUE. On
|
||||
IA-64, that's p0 (0), on non-predicated architectures, the value is
|
||||
ignored. */
|
||||
#define _U_QP_TRUE _U_TDEP_QP_TRUE
|
||||
-131
@@ -1,131 +0,0 @@
|
||||
/* libunwind - a platform-independent unwind library
|
||||
Copyright (C) 2003-2004 Hewlett-Packard Co
|
||||
|
||||
This file is part of libunwind.
|
||||
|
||||
Permission is hereby granted, free of charge, to any person obtaining
|
||||
a copy of this software and associated documentation files (the
|
||||
"Software"), to deal in the Software without restriction, including
|
||||
without limitation the rights to use, copy, modify, merge, publish,
|
||||
distribute, sublicense, and/or sell copies of the Software, and to
|
||||
permit persons to whom the Software is furnished to do so, subject to
|
||||
the following conditions:
|
||||
|
||||
The above copyright notice and this permission notice shall be
|
||||
included in all copies or substantial portions of the Software.
|
||||
|
||||
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
|
||||
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
|
||||
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
|
||||
NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
|
||||
LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
|
||||
OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
|
||||
WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. */
|
||||
|
||||
#ifndef LIBUNWIND_H
|
||||
#define LIBUNWIND_H
|
||||
|
||||
#if defined(__cplusplus) || defined(c_plusplus)
|
||||
extern "C" {
|
||||
#endif
|
||||
|
||||
#include <inttypes.h>
|
||||
#include <ucontext.h>
|
||||
|
||||
#define UNW_TARGET hppa
|
||||
#define UNW_TARGET_HPPA 1
|
||||
|
||||
#define _U_TDEP_QP_TRUE 0 /* see libunwind-dynamic.h */
|
||||
|
||||
/* This needs to be big enough to accommodate "struct cursor", while
|
||||
leaving some slack for future expansion. Changing this value will
|
||||
require recompiling all users of this library. Stack allocation is
|
||||
relatively cheap and unwind-state copying is relatively rare, so we
|
||||
want to err on making it rather too big than too small. */
|
||||
#define UNW_TDEP_CURSOR_LEN 511
|
||||
|
||||
typedef uint32_t unw_word_t;
|
||||
typedef int32_t unw_sword_t;
|
||||
|
||||
typedef union
|
||||
{
|
||||
struct { unw_word_t bits[2]; } raw;
|
||||
double val;
|
||||
}
|
||||
unw_tdep_fpreg_t;
|
||||
|
||||
typedef enum
|
||||
{
|
||||
/* Note: general registers are expected to start with index 0.
|
||||
This convention facilitates architecture-independent
|
||||
implementation of the C++ exception handling ABI. See
|
||||
_Unwind_SetGR() and _Unwind_GetGR() for details. */
|
||||
UNW_HPPA_GR = 0,
|
||||
UNW_HPPA_RP = 2, /* return pointer */
|
||||
UNW_HPPA_FP = 3, /* frame pointer */
|
||||
UNW_HPPA_SP = UNW_HPPA_GR + 30,
|
||||
|
||||
UNW_HPPA_FR = UNW_HPPA_GR + 32,
|
||||
|
||||
UNW_HPPA_IP = UNW_HPPA_FR + 32, /* instruction pointer */
|
||||
|
||||
/* other "preserved" registers (fpsr etc.)... */
|
||||
|
||||
/* PA-RISC has 4 exception-argument registers but they're not
|
||||
contiguous. To deal with this, we define 4 pseudo
|
||||
exception-handling registers which we then alias to the actual
|
||||
physical register. */
|
||||
|
||||
UNW_HPPA_EH0 = UNW_HPPA_IP + 1, /* alias for UNW_HPPA_GR + 20 */
|
||||
UNW_HPPA_EH1 = UNW_HPPA_EH0 + 1, /* alias for UNW_HPPA_GR + 21 */
|
||||
UNW_HPPA_EH2 = UNW_HPPA_EH1 + 1, /* alias for UNW_HPPA_GR + 22 */
|
||||
UNW_HPPA_EH3 = UNW_HPPA_EH2 + 1, /* alias for UNW_HPPA_GR + 31 */
|
||||
|
||||
/* frame info (read-only) */
|
||||
UNW_HPPA_CFA,
|
||||
|
||||
UNW_TDEP_LAST_REG = UNW_HPPA_IP,
|
||||
|
||||
UNW_TDEP_IP = UNW_HPPA_IP,
|
||||
UNW_TDEP_SP = UNW_HPPA_SP,
|
||||
UNW_TDEP_EH = UNW_HPPA_EH0
|
||||
}
|
||||
hppa_regnum_t;
|
||||
|
||||
#define UNW_TDEP_NUM_EH_REGS 4
|
||||
|
||||
typedef struct unw_tdep_save_loc
|
||||
{
|
||||
/* Additional target-dependent info on a save location. */
|
||||
/* ANDROID support update. */
|
||||
char __reserved;
|
||||
/* End of ANDROID update. */
|
||||
}
|
||||
unw_tdep_save_loc_t;
|
||||
|
||||
/* On PA-RISC, we can directly use ucontext_t as the unwind context. */
|
||||
typedef ucontext_t unw_tdep_context_t;
|
||||
|
||||
#define unw_tdep_is_fpreg(r) ((unsigned) ((r) - UNW_HPPA_FR) < 32)
|
||||
|
||||
#include "libunwind-dynamic.h"
|
||||
|
||||
typedef struct
|
||||
{
|
||||
/* no PA-RISC-specific auxiliary proc-info */
|
||||
/* ANDROID support update. */
|
||||
char __reserved;
|
||||
/* End of ANDROID update. */
|
||||
}
|
||||
unw_tdep_proc_info_t;
|
||||
|
||||
#include "libunwind-common.h"
|
||||
|
||||
#define unw_tdep_getcontext UNW_ARCH_OBJ (getcontext)
|
||||
extern int unw_tdep_getcontext (unw_tdep_context_t *);
|
||||
|
||||
#if defined(__cplusplus) || defined(c_plusplus)
|
||||
}
|
||||
#endif
|
||||
|
||||
#endif /* LIBUNWIND_H */
|
||||
-197
@@ -1,197 +0,0 @@
|
||||
/* libunwind - a platform-independent unwind library
|
||||
Copyright (C) 2001-2004 Hewlett-Packard Co
|
||||
Contributed by David Mosberger-Tang <[email protected]>
|
||||
|
||||
This file is part of libunwind.
|
||||
|
||||
Permission is hereby granted, free of charge, to any person obtaining
|
||||
a copy of this software and associated documentation files (the
|
||||
"Software"), to deal in the Software without restriction, including
|
||||
without limitation the rights to use, copy, modify, merge, publish,
|
||||
distribute, sublicense, and/or sell copies of the Software, and to
|
||||
permit persons to whom the Software is furnished to do so, subject to
|
||||
the following conditions:
|
||||
|
||||
The above copyright notice and this permission notice shall be
|
||||
included in all copies or substantial portions of the Software.
|
||||
|
||||
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
|
||||
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
|
||||
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
|
||||
NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
|
||||
LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
|
||||
OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
|
||||
WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. */
|
||||
|
||||
#ifndef LIBUNWIND_H
|
||||
#define LIBUNWIND_H
|
||||
|
||||
#include <inttypes.h>
|
||||
#include <ucontext.h>
|
||||
|
||||
#if defined(__cplusplus) || defined(c_plusplus)
|
||||
extern "C" {
|
||||
#endif
|
||||
|
||||
#ifdef ia64
|
||||
/* This works around a bug in Intel's ECC v7.0 which defines "ia64"
|
||||
as "1". */
|
||||
# undef ia64
|
||||
#endif
|
||||
|
||||
#ifdef __hpux
|
||||
/* On HP-UX, there is no hope of supporting UNW_LOCAL_ONLY, because
|
||||
it's impossible to obtain the address of the members in the
|
||||
sigcontext structure. */
|
||||
# undef UNW_LOCAL_ONLY
|
||||
# define UNW_GENERIC_ONLY
|
||||
#endif
|
||||
|
||||
#define UNW_TARGET ia64
|
||||
#define UNW_TARGET_IA64 1
|
||||
|
||||
#define _U_TDEP_QP_TRUE 0 /* see libunwind-dynamic.h */
|
||||
|
||||
/* This needs to be big enough to accommodate "struct cursor", while
|
||||
leaving some slack for future expansion. Changing this value will
|
||||
require recompiling all users of this library. Stack allocation is
|
||||
relatively cheap and unwind-state copying is relatively rare, so we
|
||||
want to err on making it rather too big than too small. */
|
||||
#define UNW_TDEP_CURSOR_LEN 511
|
||||
|
||||
/* If this bit is it indicates that the procedure saved all of ar.bsp,
|
||||
ar.bspstore, and ar.rnat. If, additionally, ar.bsp != saved ar.bsp,
|
||||
then this procedure has performed a register-backing-store switch. */
|
||||
#define UNW_PI_FLAG_IA64_RBS_SWITCH_BIT (UNW_PI_FLAG_FIRST_TDEP_BIT + 0)
|
||||
|
||||
#define UNW_PI_FLAG_IA64_RBS_SWITCH (1 << UNW_PI_FLAG_IA64_RBS_SWITCH_BIT)
|
||||
|
||||
typedef uint64_t unw_word_t;
|
||||
typedef int64_t unw_sword_t;
|
||||
|
||||
/* On IA-64, we want to access the contents of floating-point
|
||||
registers as a pair of "words", but to ensure 16-byte alignment, we
|
||||
make it a union that contains a "long double". This will do the
|
||||
Right Thing on all known IA-64 platforms, including HP-UX. */
|
||||
typedef union
|
||||
{
|
||||
struct { unw_word_t bits[2]; } raw;
|
||||
long double dummy; /* dummy to force 16-byte alignment */
|
||||
}
|
||||
unw_tdep_fpreg_t;
|
||||
|
||||
typedef struct
|
||||
{
|
||||
/* no ia64-specific auxiliary proc-info */
|
||||
/* ANDROID support update. */
|
||||
char __reserved;
|
||||
/* End of ANDROID update. */
|
||||
}
|
||||
unw_tdep_proc_info_t;
|
||||
|
||||
typedef enum
|
||||
{
|
||||
/* Note: general registers are excepted to start with index 0.
|
||||
This convention facilitates architecture-independent
|
||||
implementation of the C++ exception handling ABI. See
|
||||
_Unwind_SetGR() and _Unwind_GetGR() for details. */
|
||||
UNW_IA64_GR = 0, /* general registers (r0..r127) */
|
||||
UNW_IA64_GP = UNW_IA64_GR + 1,
|
||||
UNW_IA64_TP = UNW_IA64_GR + 13,
|
||||
|
||||
UNW_IA64_NAT = UNW_IA64_GR + 128, /* NaT registers (nat0..nat127) */
|
||||
|
||||
UNW_IA64_FR = UNW_IA64_NAT + 128, /* fp registers (f0..f127) */
|
||||
|
||||
UNW_IA64_AR = UNW_IA64_FR + 128, /* application registers (ar0..r127) */
|
||||
UNW_IA64_AR_RSC = UNW_IA64_AR + 16,
|
||||
UNW_IA64_AR_BSP = UNW_IA64_AR + 17,
|
||||
UNW_IA64_AR_BSPSTORE = UNW_IA64_AR + 18,
|
||||
UNW_IA64_AR_RNAT = UNW_IA64_AR + 19,
|
||||
UNW_IA64_AR_CSD = UNW_IA64_AR + 25,
|
||||
UNW_IA64_AR_26 = UNW_IA64_AR + 26,
|
||||
UNW_IA64_AR_SSD = UNW_IA64_AR_26,
|
||||
UNW_IA64_AR_CCV = UNW_IA64_AR + 32,
|
||||
UNW_IA64_AR_UNAT = UNW_IA64_AR + 36,
|
||||
UNW_IA64_AR_FPSR = UNW_IA64_AR + 40,
|
||||
UNW_IA64_AR_PFS = UNW_IA64_AR + 64,
|
||||
UNW_IA64_AR_LC = UNW_IA64_AR + 65,
|
||||
UNW_IA64_AR_EC = UNW_IA64_AR + 66,
|
||||
|
||||
UNW_IA64_BR = UNW_IA64_AR + 128, /* branch registers (b0..p7) */
|
||||
UNW_IA64_RP = UNW_IA64_BR + 0, /* return pointer (rp) */
|
||||
UNW_IA64_PR = UNW_IA64_BR + 8, /* predicate registers (p0..p63) */
|
||||
UNW_IA64_CFM,
|
||||
|
||||
/* frame info: */
|
||||
UNW_IA64_BSP,
|
||||
UNW_IA64_IP,
|
||||
UNW_IA64_SP,
|
||||
|
||||
UNW_TDEP_LAST_REG = UNW_IA64_SP,
|
||||
|
||||
UNW_TDEP_IP = UNW_IA64_IP,
|
||||
UNW_TDEP_SP = UNW_IA64_SP,
|
||||
UNW_TDEP_EH = UNW_IA64_GR + 15
|
||||
}
|
||||
ia64_regnum_t;
|
||||
|
||||
#define UNW_TDEP_NUM_EH_REGS 4 /* r15-r18 are exception args */
|
||||
|
||||
typedef struct unw_tdep_save_loc
|
||||
{
|
||||
/* Additional target-dependent info on a save location. On IA-64,
|
||||
we use this to provide the bit number in which a NaT bit gets
|
||||
saved. */
|
||||
uint8_t nat_bitnr;
|
||||
|
||||
/* Padding reserved for future use. */
|
||||
uint8_t reserved[7];
|
||||
}
|
||||
unw_tdep_save_loc_t;
|
||||
|
||||
/* On IA-64, we can directly use ucontext_t as the unwind context. */
|
||||
typedef ucontext_t unw_tdep_context_t;
|
||||
|
||||
#define unw_tdep_is_fpreg(r) ((unsigned) ((r) - UNW_IA64_FR) < 128)
|
||||
|
||||
#include "libunwind-dynamic.h"
|
||||
#include "libunwind-common.h"
|
||||
|
||||
#ifdef __hpux
|
||||
/* In theory, we could use _Uia64_getcontext() on HP-UX as well, but
|
||||
the benefit of doing so would be marginal given that it can't
|
||||
support UNW_LOCAL_ONLY. */
|
||||
# define unw_tdep_getcontext getcontext
|
||||
#else
|
||||
# define unw_tdep_getcontext UNW_ARCH_OBJ (getcontext)
|
||||
extern int unw_tdep_getcontext (unw_tdep_context_t *);
|
||||
#endif
|
||||
|
||||
/* This is a helper routine to search an ia64 unwind table. If the
|
||||
address-space argument AS points to something other than the local
|
||||
address-space, the memory for the unwind-info will be allocated
|
||||
with malloc(), and should be free()d during the put_unwind_info()
|
||||
callback. This routine is signal-safe for the local-address-space
|
||||
case ONLY. */
|
||||
#define unw_search_ia64_unwind_table UNW_OBJ(search_unwind_table)
|
||||
extern int unw_search_ia64_unwind_table (unw_addr_space_t, unw_word_t,
|
||||
unw_dyn_info_t *, unw_proc_info_t *,
|
||||
int, void *);
|
||||
|
||||
/* This is a helper routine which the get_dyn_info_list_addr()
|
||||
callback can use to locate the special dynamic-info list entry in
|
||||
an IA-64 unwind table. If the entry exists in the table, the
|
||||
list-address is returned. In all other cases, 0 is returned. */
|
||||
extern unw_word_t _Uia64_find_dyn_list (unw_addr_space_t, unw_dyn_info_t *,
|
||||
void *);
|
||||
|
||||
/* This is a helper routine to obtain the kernel-unwind info. It is
|
||||
signal-safe. */
|
||||
extern int _Uia64_get_kernel_table (unw_dyn_info_t *);
|
||||
|
||||
#if defined(__cplusplus) || defined(c_plusplus)
|
||||
}
|
||||
#endif
|
||||
|
||||
#endif /* LIBUNWIND_H */
|
||||
-163
@@ -1,163 +0,0 @@
|
||||
/* libunwind - a platform-independent unwind library
|
||||
Copyright (C) 2008 CodeSourcery
|
||||
|
||||
This file is part of libunwind.
|
||||
|
||||
Permission is hereby granted, free of charge, to any person obtaining
|
||||
a copy of this software and associated documentation files (the
|
||||
"Software"), to deal in the Software without restriction, including
|
||||
without limitation the rights to use, copy, modify, merge, publish,
|
||||
distribute, sublicense, and/or sell copies of the Software, and to
|
||||
permit persons to whom the Software is furnished to do so, subject to
|
||||
the following conditions:
|
||||
|
||||
The above copyright notice and this permission notice shall be
|
||||
included in all copies or substantial portions of the Software.
|
||||
|
||||
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
|
||||
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
|
||||
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
|
||||
NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
|
||||
LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
|
||||
OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
|
||||
WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. */
|
||||
|
||||
#ifndef LIBUNWIND_H
|
||||
#define LIBUNWIND_H
|
||||
|
||||
#if defined(__cplusplus) || defined(c_plusplus)
|
||||
extern "C" {
|
||||
#endif
|
||||
|
||||
#include <inttypes.h>
|
||||
#include <ucontext.h>
|
||||
|
||||
#ifdef mips
|
||||
# undef mips
|
||||
#endif
|
||||
|
||||
#define UNW_TARGET mips
|
||||
#define UNW_TARGET_MIPS 1
|
||||
|
||||
#define _U_TDEP_QP_TRUE 0 /* see libunwind-dynamic.h */
|
||||
|
||||
/* This needs to be big enough to accommodate "struct cursor", while
|
||||
leaving some slack for future expansion. Changing this value will
|
||||
require recompiling all users of this library. Stack allocation is
|
||||
relatively cheap and unwind-state copying is relatively rare, so we
|
||||
want to err on making it rather too big than too small. */
|
||||
|
||||
/* FIXME for MIPS. Too big? What do other things use for similar tasks? */
|
||||
#define UNW_TDEP_CURSOR_LEN 4096
|
||||
|
||||
/* The size of a "word" varies on MIPS. This type is used for memory
|
||||
addresses and register values. To allow a single library to support
|
||||
multiple ABIs, and to support N32 at all, we must use a 64-bit type
|
||||
even when addresses are only 32 bits. */
|
||||
typedef uint64_t unw_word_t;
|
||||
typedef int32_t unw_sword_t;
|
||||
|
||||
/* FIXME: MIPS ABIs. */
|
||||
typedef long double unw_tdep_fpreg_t;
|
||||
|
||||
typedef enum
|
||||
{
|
||||
UNW_MIPS_R0,
|
||||
UNW_MIPS_R1,
|
||||
UNW_MIPS_R2,
|
||||
UNW_MIPS_R3,
|
||||
UNW_MIPS_R4,
|
||||
UNW_MIPS_R5,
|
||||
UNW_MIPS_R6,
|
||||
UNW_MIPS_R7,
|
||||
UNW_MIPS_R8,
|
||||
UNW_MIPS_R9,
|
||||
UNW_MIPS_R10,
|
||||
UNW_MIPS_R11,
|
||||
UNW_MIPS_R12,
|
||||
UNW_MIPS_R13,
|
||||
UNW_MIPS_R14,
|
||||
UNW_MIPS_R15,
|
||||
UNW_MIPS_R16,
|
||||
UNW_MIPS_R17,
|
||||
UNW_MIPS_R18,
|
||||
UNW_MIPS_R19,
|
||||
UNW_MIPS_R20,
|
||||
UNW_MIPS_R21,
|
||||
UNW_MIPS_R22,
|
||||
UNW_MIPS_R23,
|
||||
UNW_MIPS_R24,
|
||||
UNW_MIPS_R25,
|
||||
UNW_MIPS_R26,
|
||||
UNW_MIPS_R27,
|
||||
UNW_MIPS_R28,
|
||||
UNW_MIPS_R29,
|
||||
UNW_MIPS_R30,
|
||||
UNW_MIPS_R31,
|
||||
|
||||
UNW_MIPS_PC = 34,
|
||||
|
||||
/* FIXME: Other registers! */
|
||||
|
||||
/* For MIPS, the CFA is the value of SP (r29) at the call site in the
|
||||
previous frame. */
|
||||
UNW_MIPS_CFA,
|
||||
|
||||
UNW_TDEP_LAST_REG = UNW_MIPS_R31,
|
||||
|
||||
UNW_TDEP_IP = UNW_MIPS_R31,
|
||||
UNW_TDEP_SP = UNW_MIPS_R29,
|
||||
UNW_TDEP_EH = UNW_MIPS_R0 /* FIXME. */
|
||||
}
|
||||
mips_regnum_t;
|
||||
|
||||
typedef enum
|
||||
{
|
||||
UNW_MIPS_ABI_O32,
|
||||
UNW_MIPS_ABI_N32,
|
||||
UNW_MIPS_ABI_N64
|
||||
}
|
||||
mips_abi_t;
|
||||
|
||||
#define UNW_TDEP_NUM_EH_REGS 2 /* FIXME for MIPS. */
|
||||
|
||||
typedef struct unw_tdep_save_loc
|
||||
{
|
||||
/* Additional target-dependent info on a save location. */
|
||||
/* ANDROID support update. */
|
||||
char __reserved;
|
||||
/* End of ANDROID update. */
|
||||
}
|
||||
unw_tdep_save_loc_t;
|
||||
|
||||
/* On x86, we can directly use ucontext_t as the unwind context. FIXME for
|
||||
MIPS. */
|
||||
typedef ucontext_t unw_tdep_context_t;
|
||||
|
||||
#include "libunwind-dynamic.h"
|
||||
|
||||
typedef struct
|
||||
{
|
||||
/* no mips-specific auxiliary proc-info */
|
||||
/* ANDROID support update. */
|
||||
char __reserved;
|
||||
/* End of ANDROID update. */
|
||||
}
|
||||
unw_tdep_proc_info_t;
|
||||
|
||||
#include "libunwind-common.h"
|
||||
|
||||
/* There is no getcontext() on MIPS. Use a stub version which only saves GP
|
||||
registers. FIXME: Not ideal, may not be sufficient for all libunwind
|
||||
use cases. */
|
||||
#define unw_tdep_getcontext UNW_ARCH_OBJ(getcontext)
|
||||
extern int unw_tdep_getcontext (ucontext_t *uc);
|
||||
|
||||
#define unw_tdep_is_fpreg UNW_ARCH_OBJ(is_fpreg)
|
||||
extern int unw_tdep_is_fpreg (int);
|
||||
|
||||
#if defined(__cplusplus) || defined(c_plusplus)
|
||||
}
|
||||
#endif
|
||||
|
||||
#endif /* LIBUNWIND_H */
|
||||
@@ -1,213 +0,0 @@
|
||||
/* libunwind - a platform-independent unwind library
|
||||
Copyright (C) 2006-2007 IBM
|
||||
Contributed by
|
||||
Corey Ashford <[email protected]>
|
||||
Jose Flavio Aguilar Paulino <[email protected]> <[email protected]>
|
||||
|
||||
Copied from libunwind-x86_64.h, modified slightly for building
|
||||
frysk successfully on ppc64, by Wu Zhou <[email protected]>
|
||||
Will be replaced when libunwind is ready on ppc64 platform.
|
||||
|
||||
This file is part of libunwind.
|
||||
|
||||
Permission is hereby granted, free of charge, to any person obtaining
|
||||
a copy of this software and associated documentation files (the
|
||||
"Software"), to deal in the Software without restriction, including
|
||||
without limitation the rights to use, copy, modify, merge, publish,
|
||||
distribute, sublicense, and/or sell copies of the Software, and to
|
||||
permit persons to whom the Software is furnished to do so, subject to
|
||||
the following conditions:
|
||||
|
||||
The above copyright notice and this permission notice shall be
|
||||
included in all copies or substantial portions of the Software.
|
||||
|
||||
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
|
||||
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
|
||||
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
|
||||
NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
|
||||
LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
|
||||
OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
|
||||
WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. */
|
||||
|
||||
#ifndef LIBUNWIND_H
|
||||
#define LIBUNWIND_H
|
||||
|
||||
#if defined(__cplusplus) || defined(c_plusplus)
|
||||
extern "C" {
|
||||
#endif
|
||||
|
||||
#include <inttypes.h>
|
||||
#include <ucontext.h>
|
||||
|
||||
#define UNW_TARGET ppc32
|
||||
#define UNW_TARGET_PPC32 1
|
||||
|
||||
#define _U_TDEP_QP_TRUE 0 /* see libunwind-dynamic.h */
|
||||
|
||||
/*
|
||||
* This needs to be big enough to accommodate "struct cursor", while
|
||||
* leaving some slack for future expansion. Changing this value will
|
||||
* require recompiling all users of this library. Stack allocation is
|
||||
* relatively cheap and unwind-state copying is relatively rare, so we want
|
||||
* to err on making it rather too big than too small.
|
||||
*
|
||||
* To simplify this whole process, we are at least initially taking the
|
||||
* tack that UNW_PPC32_* map straight across to the .eh_frame column register
|
||||
* numbers. These register numbers come from gcc's source in
|
||||
* gcc/config/rs6000/rs6000.h
|
||||
*
|
||||
* UNW_TDEP_CURSOR_LEN is in terms of unw_word_t size. Since we have 115
|
||||
* elements in the loc array, each sized 2 * unw_word_t, plus the rest of
|
||||
* the cursor struct, this puts us at about 2 * 115 + 40 = 270. Let's
|
||||
* round that up to 280.
|
||||
*/
|
||||
|
||||
#define UNW_TDEP_CURSOR_LEN 280
|
||||
|
||||
#if __WORDSIZE==32
|
||||
typedef uint32_t unw_word_t;
|
||||
typedef int32_t unw_sword_t;
|
||||
#else
|
||||
typedef uint64_t unw_word_t;
|
||||
typedef int64_t unw_sword_t;
|
||||
#endif
|
||||
|
||||
typedef long double unw_tdep_fpreg_t;
|
||||
|
||||
typedef enum
|
||||
{
|
||||
UNW_PPC32_R0,
|
||||
UNW_PPC32_R1, /* called STACK_POINTER in gcc */
|
||||
UNW_PPC32_R2,
|
||||
UNW_PPC32_R3,
|
||||
UNW_PPC32_R4,
|
||||
UNW_PPC32_R5,
|
||||
UNW_PPC32_R6,
|
||||
UNW_PPC32_R7,
|
||||
UNW_PPC32_R8,
|
||||
UNW_PPC32_R9,
|
||||
UNW_PPC32_R10,
|
||||
UNW_PPC32_R11, /* called STATIC_CHAIN in gcc */
|
||||
UNW_PPC32_R12,
|
||||
UNW_PPC32_R13,
|
||||
UNW_PPC32_R14,
|
||||
UNW_PPC32_R15,
|
||||
UNW_PPC32_R16,
|
||||
UNW_PPC32_R17,
|
||||
UNW_PPC32_R18,
|
||||
UNW_PPC32_R19,
|
||||
UNW_PPC32_R20,
|
||||
UNW_PPC32_R21,
|
||||
UNW_PPC32_R22,
|
||||
UNW_PPC32_R23,
|
||||
UNW_PPC32_R24,
|
||||
UNW_PPC32_R25,
|
||||
UNW_PPC32_R26,
|
||||
UNW_PPC32_R27,
|
||||
UNW_PPC32_R28,
|
||||
UNW_PPC32_R29,
|
||||
UNW_PPC32_R30,
|
||||
UNW_PPC32_R31, /* called HARD_FRAME_POINTER in gcc */
|
||||
|
||||
/* Count Register */
|
||||
UNW_PPC32_CTR = 32,
|
||||
/* Fixed-Point Status and Control Register */
|
||||
UNW_PPC32_XER = 33,
|
||||
/* Condition Register */
|
||||
UNW_PPC32_CCR = 34,
|
||||
/* Machine State Register */
|
||||
//UNW_PPC32_MSR = 35,
|
||||
/* MQ or SPR0, not part of generic Power, part of MPC601 */
|
||||
//UNW_PPC32_MQ = 36,
|
||||
/* Link Register */
|
||||
UNW_PPC32_LR = 36,
|
||||
/* Floating Pointer Status and Control Register */
|
||||
UNW_PPC32_FPSCR = 37,
|
||||
|
||||
UNW_PPC32_F0 = 48,
|
||||
UNW_PPC32_F1,
|
||||
UNW_PPC32_F2,
|
||||
UNW_PPC32_F3,
|
||||
UNW_PPC32_F4,
|
||||
UNW_PPC32_F5,
|
||||
UNW_PPC32_F6,
|
||||
UNW_PPC32_F7,
|
||||
UNW_PPC32_F8,
|
||||
UNW_PPC32_F9,
|
||||
UNW_PPC32_F10,
|
||||
UNW_PPC32_F11,
|
||||
UNW_PPC32_F12,
|
||||
UNW_PPC32_F13,
|
||||
UNW_PPC32_F14,
|
||||
UNW_PPC32_F15,
|
||||
UNW_PPC32_F16,
|
||||
UNW_PPC32_F17,
|
||||
UNW_PPC32_F18,
|
||||
UNW_PPC32_F19,
|
||||
UNW_PPC32_F20,
|
||||
UNW_PPC32_F21,
|
||||
UNW_PPC32_F22,
|
||||
UNW_PPC32_F23,
|
||||
UNW_PPC32_F24,
|
||||
UNW_PPC32_F25,
|
||||
UNW_PPC32_F26,
|
||||
UNW_PPC32_F27,
|
||||
UNW_PPC32_F28,
|
||||
UNW_PPC32_F29,
|
||||
UNW_PPC32_F30,
|
||||
UNW_PPC32_F31,
|
||||
|
||||
UNW_TDEP_LAST_REG = UNW_PPC32_F31,
|
||||
|
||||
UNW_TDEP_IP = UNW_PPC32_LR,
|
||||
UNW_TDEP_SP = UNW_PPC32_R1,
|
||||
UNW_TDEP_EH = UNW_PPC32_R12
|
||||
}
|
||||
ppc32_regnum_t;
|
||||
|
||||
/*
|
||||
* According to David Edelsohn, GNU gcc uses R3, R4, R5, and maybe R6 for
|
||||
* passing parameters to exception handlers.
|
||||
*/
|
||||
|
||||
#define UNW_TDEP_NUM_EH_REGS 4
|
||||
|
||||
typedef struct unw_tdep_save_loc
|
||||
{
|
||||
/* Additional target-dependent info on a save location. */
|
||||
/* ANDROID support update. */
|
||||
char __reserved;
|
||||
/* End of ANDROID update. */
|
||||
}
|
||||
unw_tdep_save_loc_t;
|
||||
|
||||
/* On ppc, we can directly use ucontext_t as the unwind context. */
|
||||
typedef ucontext_t unw_tdep_context_t;
|
||||
|
||||
/* XXX this is not ideal: an application should not be prevented from
|
||||
using the "getcontext" name just because it's using libunwind. We
|
||||
can't just use __getcontext() either, because that isn't exported
|
||||
by glibc... */
|
||||
#define unw_tdep_getcontext(uc) (getcontext (uc), 0)
|
||||
|
||||
#include "libunwind-dynamic.h"
|
||||
|
||||
typedef struct
|
||||
{
|
||||
/* no ppc32-specific auxiliary proc-info */
|
||||
/* ANDROID support update. */
|
||||
char __reserved;
|
||||
/* End of ANDROID update. */
|
||||
}
|
||||
unw_tdep_proc_info_t;
|
||||
|
||||
#include "libunwind-common.h"
|
||||
|
||||
#define unw_tdep_is_fpreg UNW_ARCH_OBJ(is_fpreg)
|
||||
extern int unw_tdep_is_fpreg (int);
|
||||
|
||||
#if defined(__cplusplus) || defined(c_plusplus)
|
||||
}
|
||||
#endif
|
||||
|
||||
#endif /* LIBUNWIND_H */
|
||||
@@ -1,270 +0,0 @@
|
||||
/* libunwind - a platform-independent unwind library
|
||||
Copyright (C) 2006-2007 IBM
|
||||
Contributed by
|
||||
Corey Ashford <[email protected]>
|
||||
Jose Flavio Aguilar Paulino <[email protected]> <[email protected]>
|
||||
|
||||
Copied from libunwind-x86_64.h, modified slightly for building
|
||||
frysk successfully on ppc64, by Wu Zhou <[email protected]>
|
||||
Will be replaced when libunwind is ready on ppc64 platform.
|
||||
|
||||
This file is part of libunwind.
|
||||
|
||||
Permission is hereby granted, free of charge, to any person obtaining
|
||||
a copy of this software and associated documentation files (the
|
||||
"Software"), to deal in the Software without restriction, including
|
||||
without limitation the rights to use, copy, modify, merge, publish,
|
||||
distribute, sublicense, and/or sell copies of the Software, and to
|
||||
permit persons to whom the Software is furnished to do so, subject to
|
||||
the following conditions:
|
||||
|
||||
The above copyright notice and this permission notice shall be
|
||||
included in all copies or substantial portions of the Software.
|
||||
|
||||
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
|
||||
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
|
||||
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
|
||||
NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
|
||||
LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
|
||||
OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
|
||||
WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. */
|
||||
|
||||
#ifndef LIBUNWIND_H
|
||||
#define LIBUNWIND_H
|
||||
|
||||
#if defined(__cplusplus) || defined(c_plusplus)
|
||||
extern "C" {
|
||||
#endif
|
||||
|
||||
#include <inttypes.h>
|
||||
#include <ucontext.h>
|
||||
|
||||
#define UNW_TARGET ppc64
|
||||
#define UNW_TARGET_PPC64 1
|
||||
|
||||
#define _U_TDEP_QP_TRUE 0 /* see libunwind-dynamic.h */
|
||||
|
||||
/*
|
||||
* This needs to be big enough to accommodate "struct cursor", while
|
||||
* leaving some slack for future expansion. Changing this value will
|
||||
* require recompiling all users of this library. Stack allocation is
|
||||
* relatively cheap and unwind-state copying is relatively rare, so we want
|
||||
* to err on making it rather too big than too small.
|
||||
*
|
||||
* To simplify this whole process, we are at least initially taking the
|
||||
* tack that UNW_PPC64_* map straight across to the .eh_frame column register
|
||||
* numbers. These register numbers come from gcc's source in
|
||||
* gcc/config/rs6000/rs6000.h
|
||||
*
|
||||
* UNW_TDEP_CURSOR_LEN is in terms of unw_word_t size. Since we have 115
|
||||
* elements in the loc array, each sized 2 * unw_word_t, plus the rest of
|
||||
* the cursor struct, this puts us at about 2 * 115 + 40 = 270. Let's
|
||||
* round that up to 280.
|
||||
*/
|
||||
|
||||
#define UNW_TDEP_CURSOR_LEN 280
|
||||
|
||||
#if __WORDSIZE==32
|
||||
typedef uint32_t unw_word_t;
|
||||
typedef int32_t unw_sword_t;
|
||||
#else
|
||||
typedef uint64_t unw_word_t;
|
||||
typedef int64_t unw_sword_t;
|
||||
#endif
|
||||
|
||||
typedef long double unw_tdep_fpreg_t;
|
||||
|
||||
/*
|
||||
* Vector register (in PowerPC64 used for AltiVec registers)
|
||||
*/
|
||||
typedef struct {
|
||||
uint64_t halves[2];
|
||||
} unw_tdep_vreg_t;
|
||||
|
||||
typedef enum
|
||||
{
|
||||
UNW_PPC64_R0,
|
||||
UNW_PPC64_R1, /* called STACK_POINTER in gcc */
|
||||
UNW_PPC64_R2,
|
||||
UNW_PPC64_R3,
|
||||
UNW_PPC64_R4,
|
||||
UNW_PPC64_R5,
|
||||
UNW_PPC64_R6,
|
||||
UNW_PPC64_R7,
|
||||
UNW_PPC64_R8,
|
||||
UNW_PPC64_R9,
|
||||
UNW_PPC64_R10,
|
||||
UNW_PPC64_R11, /* called STATIC_CHAIN in gcc */
|
||||
UNW_PPC64_R12,
|
||||
UNW_PPC64_R13,
|
||||
UNW_PPC64_R14,
|
||||
UNW_PPC64_R15,
|
||||
UNW_PPC64_R16,
|
||||
UNW_PPC64_R17,
|
||||
UNW_PPC64_R18,
|
||||
UNW_PPC64_R19,
|
||||
UNW_PPC64_R20,
|
||||
UNW_PPC64_R21,
|
||||
UNW_PPC64_R22,
|
||||
UNW_PPC64_R23,
|
||||
UNW_PPC64_R24,
|
||||
UNW_PPC64_R25,
|
||||
UNW_PPC64_R26,
|
||||
UNW_PPC64_R27,
|
||||
UNW_PPC64_R28,
|
||||
UNW_PPC64_R29,
|
||||
UNW_PPC64_R30,
|
||||
UNW_PPC64_R31, /* called HARD_FRAME_POINTER in gcc */
|
||||
|
||||
UNW_PPC64_F0 = 32,
|
||||
UNW_PPC64_F1,
|
||||
UNW_PPC64_F2,
|
||||
UNW_PPC64_F3,
|
||||
UNW_PPC64_F4,
|
||||
UNW_PPC64_F5,
|
||||
UNW_PPC64_F6,
|
||||
UNW_PPC64_F7,
|
||||
UNW_PPC64_F8,
|
||||
UNW_PPC64_F9,
|
||||
UNW_PPC64_F10,
|
||||
UNW_PPC64_F11,
|
||||
UNW_PPC64_F12,
|
||||
UNW_PPC64_F13,
|
||||
UNW_PPC64_F14,
|
||||
UNW_PPC64_F15,
|
||||
UNW_PPC64_F16,
|
||||
UNW_PPC64_F17,
|
||||
UNW_PPC64_F18,
|
||||
UNW_PPC64_F19,
|
||||
UNW_PPC64_F20,
|
||||
UNW_PPC64_F21,
|
||||
UNW_PPC64_F22,
|
||||
UNW_PPC64_F23,
|
||||
UNW_PPC64_F24,
|
||||
UNW_PPC64_F25,
|
||||
UNW_PPC64_F26,
|
||||
UNW_PPC64_F27,
|
||||
UNW_PPC64_F28,
|
||||
UNW_PPC64_F29,
|
||||
UNW_PPC64_F30,
|
||||
UNW_PPC64_F31,
|
||||
/* Note that there doesn't appear to be an .eh_frame register column
|
||||
for the FPSCR register. I don't know why this is. Since .eh_frame
|
||||
info is what this implementation uses for unwinding, we have no way
|
||||
to unwind this register, and so we will not expose an FPSCR register
|
||||
number in the libunwind API.
|
||||
*/
|
||||
|
||||
UNW_PPC64_LR = 65,
|
||||
UNW_PPC64_CTR = 66,
|
||||
UNW_PPC64_ARG_POINTER = 67,
|
||||
|
||||
UNW_PPC64_CR0 = 68,
|
||||
UNW_PPC64_CR1,
|
||||
UNW_PPC64_CR2,
|
||||
UNW_PPC64_CR3,
|
||||
UNW_PPC64_CR4,
|
||||
/* CR5 .. CR7 are currently unused */
|
||||
UNW_PPC64_CR5,
|
||||
UNW_PPC64_CR6,
|
||||
UNW_PPC64_CR7,
|
||||
|
||||
UNW_PPC64_XER = 76,
|
||||
|
||||
UNW_PPC64_V0 = 77,
|
||||
UNW_PPC64_V1,
|
||||
UNW_PPC64_V2,
|
||||
UNW_PPC64_V3,
|
||||
UNW_PPC64_V4,
|
||||
UNW_PPC64_V5,
|
||||
UNW_PPC64_V6,
|
||||
UNW_PPC64_V7,
|
||||
UNW_PPC64_V8,
|
||||
UNW_PPC64_V9,
|
||||
UNW_PPC64_V10,
|
||||
UNW_PPC64_V11,
|
||||
UNW_PPC64_V12,
|
||||
UNW_PPC64_V13,
|
||||
UNW_PPC64_V14,
|
||||
UNW_PPC64_V15,
|
||||
UNW_PPC64_V16,
|
||||
UNW_PPC64_V17,
|
||||
UNW_PPC64_V18,
|
||||
UNW_PPC64_V19,
|
||||
UNW_PPC64_V20,
|
||||
UNW_PPC64_V21,
|
||||
UNW_PPC64_V22,
|
||||
UNW_PPC64_V23,
|
||||
UNW_PPC64_V24,
|
||||
UNW_PPC64_V25,
|
||||
UNW_PPC64_V26,
|
||||
UNW_PPC64_V27,
|
||||
UNW_PPC64_V28,
|
||||
UNW_PPC64_V29,
|
||||
UNW_PPC64_V30,
|
||||
UNW_PPC64_V31,
|
||||
|
||||
UNW_PPC64_VRSAVE = 109,
|
||||
UNW_PPC64_VSCR = 110,
|
||||
UNW_PPC64_SPE_ACC = 111,
|
||||
UNW_PPC64_SPEFSCR = 112,
|
||||
|
||||
/* frame info (read-only) */
|
||||
UNW_PPC64_FRAME_POINTER,
|
||||
UNW_PPC64_NIP,
|
||||
|
||||
|
||||
UNW_TDEP_LAST_REG = UNW_PPC64_NIP,
|
||||
|
||||
UNW_TDEP_IP = UNW_PPC64_NIP,
|
||||
UNW_TDEP_SP = UNW_PPC64_R1,
|
||||
UNW_TDEP_EH = UNW_PPC64_R12
|
||||
}
|
||||
ppc64_regnum_t;
|
||||
|
||||
/*
|
||||
* According to David Edelsohn, GNU gcc uses R3, R4, R5, and maybe R6 for
|
||||
* passing parameters to exception handlers.
|
||||
*/
|
||||
|
||||
#define UNW_TDEP_NUM_EH_REGS 4
|
||||
|
||||
typedef struct unw_tdep_save_loc
|
||||
{
|
||||
/* Additional target-dependent info on a save location. */
|
||||
/* ANDROID support update. */
|
||||
char __reserved;
|
||||
/* End of ANDROID update. */
|
||||
}
|
||||
unw_tdep_save_loc_t;
|
||||
|
||||
/* On ppc64, we can directly use ucontext_t as the unwind context. */
|
||||
typedef ucontext_t unw_tdep_context_t;
|
||||
|
||||
/* XXX this is not ideal: an application should not be prevented from
|
||||
using the "getcontext" name just because it's using libunwind. We
|
||||
can't just use __getcontext() either, because that isn't exported
|
||||
by glibc... */
|
||||
#define unw_tdep_getcontext(uc) (getcontext (uc), 0)
|
||||
|
||||
#include "libunwind-dynamic.h"
|
||||
|
||||
typedef struct
|
||||
{
|
||||
/* no ppc64-specific auxiliary proc-info */
|
||||
/* ANDROID support update. */
|
||||
char __reserved;
|
||||
/* End of ANDROID update. */
|
||||
}
|
||||
unw_tdep_proc_info_t;
|
||||
|
||||
#include "libunwind-common.h"
|
||||
|
||||
#define unw_tdep_is_fpreg UNW_ARCH_OBJ(is_fpreg)
|
||||
extern int unw_tdep_is_fpreg (int);
|
||||
|
||||
#if defined(__cplusplus) || defined(c_plusplus)
|
||||
}
|
||||
#endif
|
||||
|
||||
#endif /* LIBUNWIND_H */
|
||||
@@ -1,63 +0,0 @@
|
||||
/* libunwind - a platform-independent unwind library
|
||||
Copyright (C) 2004 Hewlett-Packard Co
|
||||
Contributed by David Mosberger-Tang <[email protected]>
|
||||
|
||||
This file is part of libunwind.
|
||||
|
||||
Permission is hereby granted, free of charge, to any person obtaining
|
||||
a copy of this software and associated documentation files (the
|
||||
"Software"), to deal in the Software without restriction, including
|
||||
without limitation the rights to use, copy, modify, merge, publish,
|
||||
distribute, sublicense, and/or sell copies of the Software, and to
|
||||
permit persons to whom the Software is furnished to do so, subject to
|
||||
the following conditions:
|
||||
|
||||
The above copyright notice and this permission notice shall be
|
||||
included in all copies or substantial portions of the Software.
|
||||
|
||||
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
|
||||
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
|
||||
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
|
||||
NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
|
||||
LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
|
||||
OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
|
||||
WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. */
|
||||
|
||||
#ifndef libunwind_ptrace_h
|
||||
#define libunwind_ptrace_h
|
||||
|
||||
#include <libunwind.h>
|
||||
|
||||
#if defined(__cplusplus) || defined(c_plusplus)
|
||||
extern "C" {
|
||||
#endif
|
||||
|
||||
/* Helper routines which make it easy to use libunwind via ptrace().
|
||||
They're available only if UNW_REMOTE_ONLY is _not_ defined and they
|
||||
aren't really part of the libunwind API. They are implemented in a
|
||||
archive library called libunwind-ptrace.a. */
|
||||
|
||||
extern void *_UPT_create (pid_t);
|
||||
extern void _UPT_destroy (void *);
|
||||
extern int _UPT_find_proc_info (unw_addr_space_t, unw_word_t,
|
||||
unw_proc_info_t *, int, void *);
|
||||
extern void _UPT_put_unwind_info (unw_addr_space_t, unw_proc_info_t *, void *);
|
||||
extern int _UPT_get_dyn_info_list_addr (unw_addr_space_t, unw_word_t *,
|
||||
void *);
|
||||
extern int _UPT_access_mem (unw_addr_space_t, unw_word_t, unw_word_t *, int,
|
||||
void *);
|
||||
extern int _UPT_access_reg (unw_addr_space_t, unw_regnum_t, unw_word_t *,
|
||||
int, void *);
|
||||
extern int _UPT_access_fpreg (unw_addr_space_t, unw_regnum_t, unw_fpreg_t *,
|
||||
int, void *);
|
||||
extern int _UPT_get_proc_name (unw_addr_space_t, unw_word_t, char *, size_t,
|
||||
unw_word_t *, void *);
|
||||
extern int _UPT_resume (unw_addr_space_t, unw_cursor_t *, void *);
|
||||
extern unw_accessors_t _UPT_accessors;
|
||||
|
||||
|
||||
#if defined(__cplusplus) || defined(c_plusplus)
|
||||
}
|
||||
#endif
|
||||
|
||||
#endif /* libunwind_ptrace_h */
|
||||
-120
@@ -1,120 +0,0 @@
|
||||
/* libunwind - a platform-independent unwind library
|
||||
Copyright (C) 2008 CodeSourcery
|
||||
Copyright (C) 2012 Tommi Rantala <[email protected]>
|
||||
|
||||
This file is part of libunwind.
|
||||
|
||||
Permission is hereby granted, free of charge, to any person obtaining
|
||||
a copy of this software and associated documentation files (the
|
||||
"Software"), to deal in the Software without restriction, including
|
||||
without limitation the rights to use, copy, modify, merge, publish,
|
||||
distribute, sublicense, and/or sell copies of the Software, and to
|
||||
permit persons to whom the Software is furnished to do so, subject to
|
||||
the following conditions:
|
||||
|
||||
The above copyright notice and this permission notice shall be
|
||||
included in all copies or substantial portions of the Software.
|
||||
|
||||
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
|
||||
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
|
||||
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
|
||||
NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
|
||||
LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
|
||||
OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
|
||||
WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. */
|
||||
|
||||
#ifndef LIBUNWIND_H
|
||||
#define LIBUNWIND_H
|
||||
|
||||
#if defined(__cplusplus) || defined(c_plusplus)
|
||||
extern "C" {
|
||||
#endif
|
||||
|
||||
#include <inttypes.h>
|
||||
#include <stddef.h>
|
||||
#include <ucontext.h>
|
||||
|
||||
#define UNW_TARGET sh
|
||||
#define UNW_TARGET_SH 1
|
||||
|
||||
#define _U_TDEP_QP_TRUE 0 /* see libunwind-dynamic.h */
|
||||
|
||||
/* This needs to be big enough to accommodate "struct cursor", while
|
||||
leaving some slack for future expansion. Changing this value will
|
||||
require recompiling all users of this library. Stack allocation is
|
||||
relatively cheap and unwind-state copying is relatively rare, so we
|
||||
want to err on making it rather too big than too small. */
|
||||
|
||||
#define UNW_TDEP_CURSOR_LEN 4096
|
||||
|
||||
typedef uint32_t unw_word_t;
|
||||
typedef int32_t unw_sword_t;
|
||||
|
||||
typedef long double unw_tdep_fpreg_t;
|
||||
|
||||
typedef enum
|
||||
{
|
||||
UNW_SH_R0,
|
||||
UNW_SH_R1,
|
||||
UNW_SH_R2,
|
||||
UNW_SH_R3,
|
||||
UNW_SH_R4,
|
||||
UNW_SH_R5,
|
||||
UNW_SH_R6,
|
||||
UNW_SH_R7,
|
||||
UNW_SH_R8,
|
||||
UNW_SH_R9,
|
||||
UNW_SH_R10,
|
||||
UNW_SH_R11,
|
||||
UNW_SH_R12,
|
||||
UNW_SH_R13,
|
||||
UNW_SH_R14,
|
||||
UNW_SH_R15,
|
||||
|
||||
UNW_SH_PC,
|
||||
UNW_SH_PR,
|
||||
|
||||
UNW_TDEP_LAST_REG = UNW_SH_PR,
|
||||
|
||||
UNW_TDEP_IP = UNW_SH_PR,
|
||||
UNW_TDEP_SP = UNW_SH_R15,
|
||||
UNW_TDEP_EH = UNW_SH_R0
|
||||
}
|
||||
sh_regnum_t;
|
||||
|
||||
#define UNW_TDEP_NUM_EH_REGS 2
|
||||
|
||||
typedef ucontext_t unw_tdep_context_t;
|
||||
|
||||
#define unw_tdep_getcontext(uc) (getcontext (uc), 0)
|
||||
|
||||
typedef struct unw_tdep_save_loc
|
||||
{
|
||||
/* Additional target-dependent info on a save location. */
|
||||
/* ANDROID support update. */
|
||||
char __reserved;
|
||||
/* End of ANDROID update. */
|
||||
}
|
||||
unw_tdep_save_loc_t;
|
||||
|
||||
#include "libunwind-dynamic.h"
|
||||
|
||||
typedef struct
|
||||
{
|
||||
/* no sh-specific auxiliary proc-info */
|
||||
/* ANDROID support update. */
|
||||
char __reserved;
|
||||
/* End of ANDROID update. */
|
||||
}
|
||||
unw_tdep_proc_info_t;
|
||||
|
||||
#include "libunwind-common.h"
|
||||
|
||||
#define unw_tdep_is_fpreg UNW_ARCH_OBJ(is_fpreg)
|
||||
extern int unw_tdep_is_fpreg (int);
|
||||
|
||||
#if defined(__cplusplus) || defined(c_plusplus)
|
||||
}
|
||||
#endif
|
||||
|
||||
#endif /* LIBUNWIND_H */
|
||||
Loaded 100 of 16753 files, more files were not shown because too many files have changed in this diff.
Show more
Reference in new issue
Block a user