aboutsummaryrefslogtreecommitdiff
path: root/gold/script.h
diff options
context:
space:
mode:
authorIan Lance Taylor <iant@google.com>2007-10-27 00:29:34 +0000
committerIan Lance Taylor <iant@google.com>2007-10-27 00:29:34 +0000
commit3c2fafa5311f159f222047699968e091a8f260d6 (patch)
tree48a53667ae73288fab5264e1decc5ab27160d445 /gold/script.h
parent4af13c269b9cd216b8593a2afbcabde5746c720f (diff)
downloadgdb-3c2fafa5311f159f222047699968e091a8f260d6.zip
gdb-3c2fafa5311f159f222047699968e091a8f260d6.tar.gz
gdb-3c2fafa5311f159f222047699968e091a8f260d6.tar.bz2
From Craig Silverstein and Ian Lance Taylor: Process --script option.
Diffstat (limited to 'gold/script.h')
-rw-r--r--gold/script.h9
1 files changed, 9 insertions, 0 deletions
diff --git a/gold/script.h b/gold/script.h
index 8198c97..16483a0 100644
--- a/gold/script.h
+++ b/gold/script.h
@@ -34,12 +34,15 @@ namespace gold
{
class General_options;
+class Command_line;
class Symbol_table;
class Layout;
+class Input_argument;
class Input_objects;
class Input_group;
class Input_file;
class Task_token;
+class Workqueue;
// FILE was found as an argument on the command line, but was not
// recognized as an ELF file. Try to read it as a script. We've
@@ -54,6 +57,12 @@ read_input_script(Workqueue*, const General_options&, Symbol_table*, Layout*,
off_t bytes, Task_token* this_blocker,
Task_token* next_blocker);
+// FILE was found as an argument to --script (-T).
+// Read it as a script, and execute its contents immediately.
+
+bool
+read_commandline_script(const char* filename, Command_line*);
+
} // End namespace gold.
#endif // !defined(GOLD_SCRIPT_H)