mirror of
https://github.com/darlinghq/darling-gdb.git
synced 2025-01-22 09:04:58 +00:00
From Craig Silverstein: Minimal --script implementation.
This commit is contained in:
parent
e016ec1f8c
commit
5d57def3b3
@ -377,6 +377,9 @@ options::Command_line_options::options[] =
|
||||
NULL, TWO_DASHES, &General_options::set_stats),
|
||||
GENERAL_ARG('\0', "sysroot", N_("Set target system root directory"),
|
||||
N_("--sysroot DIR"), TWO_DASHES, &General_options::set_sysroot),
|
||||
GENERAL_ARG('T', "script", N_("Read linker script"),
|
||||
N_("-T FILE, --script FILE"), TWO_DASHES,
|
||||
&General_options::set_script),
|
||||
GENERAL_ARG('\0', "Ttext", N_("Set the address of the .text section"),
|
||||
N_("-Ttext ADDRESS"), ONE_DASH,
|
||||
&General_options::set_text_segment_address),
|
||||
|
@ -316,6 +316,14 @@ class General_options
|
||||
set_static()
|
||||
{ this->is_static_ = true; }
|
||||
|
||||
void
|
||||
set_script(const char* arg)
|
||||
{
|
||||
fprintf(stderr, _("%s: cannot parse %s: -T/--script not yet supported\n"),
|
||||
program_name, arg);
|
||||
::exit(1);
|
||||
}
|
||||
|
||||
void
|
||||
set_stats()
|
||||
{ this->print_stats_ = true; }
|
||||
|
Loading…
x
Reference in New Issue
Block a user