Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
P
Postgres FD Implementation
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Abuhujair Javed
Postgres FD Implementation
Commits
f371fda3
Commit
f371fda3
authored
Jun 10, 2009
by
Bruce Momjian
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix BSD find_typedef logic.
parent
6c4b3f5f
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
src/tools/find_typedef
src/tools/find_typedef
+2
-2
No files found.
src/tools/find_typedef
View file @
f371fda3
#!/bin/sh
#!/bin/sh
# $PostgreSQL: pgsql/src/tools/find_typedef,v 1.1
1 2008/03/18 23:23:08
momjian Exp $
# $PostgreSQL: pgsql/src/tools/find_typedef,v 1.1
2 2009/06/10 03:38:32
momjian Exp $
# This script attempts to find all typedef's in the postgres binaries
# This script attempts to find all typedef's in the postgres binaries
# by using 'nm' to report all typedef debugging symbols.
# by using 'nm' to report all typedef debugging symbols.
...
@@ -49,7 +49,7 @@ do # if objdump -W is recognized, only one line of error should appear
...
@@ -49,7 +49,7 @@ do # if objdump -W is recognized, only one line of error should appear
awk
' $2 == "DW_AT_name" {print $NF}'
awk
' $2 == "DW_AT_name" {print $NF}'
else
# BSD/OS
else
# BSD/OS
objdump
--stabs
"
$DIR
"
/
*
|
objdump
--stabs
"
$DIR
"
/
*
|
awk
' $2 == "LSYM" && $7 ~ /:
[tT]
/ {sub(":.*", "", $7); print $7}'
awk
' $2 == "LSYM" && $7 ~ /:
t
/ {sub(":.*", "", $7); print $7}'
fi
fi
done
|
done
|
grep
-v
' '
|
# some typedefs have spaces, remove them
grep
-v
' '
|
# some typedefs have spaces, remove them
...
...
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