Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
R
riscv-gcc-1
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
lvzhengyang
riscv-gcc-1
Commits
c9ec8f32
Commit
c9ec8f32
authored
May 12, 2001
by
Richard Henderson
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add per-function commentary.
From-SVN: r42003
parent
a3eaca15
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
22 additions
and
0 deletions
+22
-0
gcc/unwind-pe.h
+22
-0
No files found.
gcc/unwind-pe.h
View file @
c9ec8f32
...
...
@@ -42,6 +42,11 @@
#define DW_EH_PE_funcrel 0x40
#define DW_EH_PE_indirect 0x80
/* Given an encoding, return the number of bytes the format occupies.
This is only defined for fixed-size encodings, and so does not
include leb128. */
static
unsigned
int
size_of_encoded_value
(
unsigned
char
encoding
)
...
...
@@ -63,6 +68,11 @@ size_of_encoded_value (unsigned char encoding)
abort
();
}
/* Given an encoding and an _Unwind_Context, return the base to which
the encoding is relative. This base may then be passed to
read_encoded_value_with_base for use when the _Unwind_Context is
not available. */
static
_Unwind_Ptr
base_of_encoded_value
(
unsigned
char
encoding
,
_Unwind_Context
*
context
)
{
...
...
@@ -85,6 +95,10 @@ base_of_encoded_value (unsigned char encoding, _Unwind_Context *context)
abort
();
}
/* Load an encoded value from memory at P. The value is returned in VAL;
The function returns P incremented past the value. BASE is as given
by base_of_encoded_value for this encoding in the appropriate context. */
static
const
unsigned
char
*
read_encoded_value_with_base
(
unsigned
char
encoding
,
_Unwind_Ptr
base
,
const
unsigned
char
*
p
,
_Unwind_Ptr
*
val
)
...
...
@@ -186,6 +200,9 @@ read_encoded_value_with_base (unsigned char encoding, _Unwind_Ptr base,
return
p
;
}
/* Like read_encoded_value_with_base, but get the base from the context
rather than providing it directly. */
static
inline
const
unsigned
char
*
read_encoded_value
(
_Unwind_Context
*
context
,
unsigned
char
encoding
,
const
unsigned
char
*
p
,
_Unwind_Ptr
*
val
)
...
...
@@ -195,12 +212,17 @@ read_encoded_value (_Unwind_Context *context, unsigned char encoding,
p
,
val
);
}
/* Read an unsigned leb128 value from P, store the value in VAL, return
P incremented past the value. */
static
inline
const
unsigned
char
*
read_uleb128
(
const
unsigned
char
*
p
,
_Unwind_Ptr
*
val
)
{
return
read_encoded_value_with_base
(
DW_EH_PE_uleb128
,
0
,
p
,
val
);
}
/* Similar, but read a signed leb128 value. */
static
inline
const
unsigned
char
*
read_sleb128
(
const
unsigned
char
*
p
,
_Unwind_Ptr
*
val
)
{
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment