diff options
author | Sandra Loosemore <sandra@codesourcery.com> | 2018-09-18 20:57:07 -0700 |
---|---|---|
committer | Sandra Loosemore <sandra@codesourcery.com> | 2018-09-18 20:57:07 -0700 |
commit | 3d50f1706348142d0ad64cd9fad044e68951655e (patch) | |
tree | 6a08a1d4ab8334825c251549761bc43340e339df /gdb/nios2-tdep.c | |
parent | b567ca638c274e27969975403b885973af9ccae6 (diff) | |
download | gdb-3d50f1706348142d0ad64cd9fad044e68951655e.zip gdb-3d50f1706348142d0ad64cd9fad044e68951655e.tar.gz gdb-3d50f1706348142d0ad64cd9fad044e68951655e.tar.bz2 |
Add gcc_target_options hook for nios2.
2018-09-18 Sandra Loosemore <sandra@codesourcery.com>
gdb/
* nios2-tdep.c (nios2_gcc_target_options): New.
(nios2_gdb_arch_init): Install new hook.
Diffstat (limited to 'gdb/nios2-tdep.c')
-rw-r--r-- | gdb/nios2-tdep.c | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/gdb/nios2-tdep.c b/gdb/nios2-tdep.c index eb5285a..008b1d4 100644 --- a/gdb/nios2-tdep.c +++ b/gdb/nios2-tdep.c @@ -2239,6 +2239,14 @@ nios2_type_align (struct gdbarch *gdbarch, struct type *type) return std::min<ULONGEST> (4, TYPE_LENGTH (type)); } +/* Implement the gcc_target_options gdbarch method. */ +static char * +nios2_gcc_target_options (struct gdbarch *gdbarch) +{ + /* GCC doesn't know "-m32". */ + return NULL; +} + /* Initialize the Nios II gdbarch. */ static struct gdbarch * @@ -2344,6 +2352,9 @@ nios2_gdbarch_init (struct gdbarch_info info, struct gdbarch_list *arches) /* Single stepping. */ set_gdbarch_software_single_step (gdbarch, nios2_software_single_step); + /* Target options for compile. */ + set_gdbarch_gcc_target_options (gdbarch, nios2_gcc_target_options); + /* Hook in ABI-specific overrides, if they have been registered. */ gdbarch_init_osabi (info, gdbarch); |