aboutsummaryrefslogtreecommitdiff
path: root/libjava/addr2name.awk
diff options
context:
space:
mode:
authorMark Mitchell <mark@codesourcery.com>2009-02-09 22:52:08 +0000
committerMark Mitchell <mmitchel@gcc.gnu.org>2009-02-09 22:52:08 +0000
commit48965b7c6d095bd06be35733d84dba0e016e206d (patch)
treeec1c19d82568c9bac01072efe4d3acb8c95220e6 /libjava/addr2name.awk
parent71c8958e6748de19ef2f674cc576e4a873c03236 (diff)
downloadgcc-48965b7c6d095bd06be35733d84dba0e016e206d.zip
gcc-48965b7c6d095bd06be35733d84dba0e016e206d.tar.gz
gcc-48965b7c6d095bd06be35733d84dba0e016e206d.tar.bz2
addr2name.awk: Remove.
* addr2name.awk: Remove. * Makefile.am (bin_SCRIPTS): Remove addr2name.awk. * Makefile.in: Regenerated. * configure.ac: Define enable_sjlj_exceptions appropriately under the ARM EH ABI. * configure: Regenerated. * Makefile.am (LTLDFLAGS): Define. (GCJLINK): Use it. (LIBLINK): Likewise. * Makefile.in: Regenerated. From-SVN: r144046
Diffstat (limited to 'libjava/addr2name.awk')
-rwxr-xr-xlibjava/addr2name.awk46
1 files changed, 0 insertions, 46 deletions
diff --git a/libjava/addr2name.awk b/libjava/addr2name.awk
deleted file mode 100755
index f31befd..0000000
--- a/libjava/addr2name.awk
+++ /dev/null
@@ -1,46 +0,0 @@
-#!/bin/awk -f
-
-# Copyright (C) 2000 Free Software Foundation
-
-# This file is part of libgcj.
-
-# This software is copyrighted work licensed under the terms of the
-# Libgcj License. Please consult the file "LIBGCJ_LICENSE" for
-# details.
-
-# This script emulates a little of the functionality of addr2line for
-# those systems that don't have it. The only command line argument is
-# an executable name. The script reads hexadecimal addresses from
-# stdin and prints the corresponding symbol names to stdout. The
-# addresses must begin with "0x" and be fully zero filled or this
-# won't work.
-
-BEGIN {
- object = ARGV[1];
- ARGV[1] = "";
-
- while ("nm " object "| sort" | getline) {
- if ($2 == "t" || $2 == "T") {
- address[i] = "0x" $1; name[i] = $3;
- i++;
- }
- }
- syms = i;
-}
-
-{
- lo = 0;
- hi = syms - 1;
-
- while ((hi-1) > lo)
- {
- try = int ((hi + lo) / 2);
- if ($0 < address[try])
- hi = try;
- else if ($0 >= address[try])
- lo = try;
- }
- print name[lo] "\n"; fflush();
-}
-
-