diff options
author | Peter Schauer <Peter.Schauer@mytum.de> | 1994-06-21 06:58:41 +0000 |
---|---|---|
committer | Peter Schauer <Peter.Schauer@mytum.de> | 1994-06-21 06:58:41 +0000 |
commit | 2c06801014ba0bd6705f062e660e4de45ac68987 (patch) | |
tree | 4ab12d178ca6ac2b709a501a93abf73181a31b3f /gdb | |
parent | 2f3508ad05b193386e250bee0cb8b30d23928af1 (diff) | |
download | gdb-2c06801014ba0bd6705f062e660e4de45ac68987.zip gdb-2c06801014ba0bd6705f062e660e4de45ac68987.tar.gz gdb-2c06801014ba0bd6705f062e660e4de45ac68987.tar.bz2 |
* c-lang.c (asm_language_defn): New definitions for language_asm,
mostly copied from c_language_defn, to avoid warnings when
switching between c and asm stack frames.
Diffstat (limited to 'gdb')
-rw-r--r-- | gdb/ChangeLog | 6 | ||||
-rw-r--r-- | gdb/c-lang.c | 24 |
2 files changed, 30 insertions, 0 deletions
diff --git a/gdb/ChangeLog b/gdb/ChangeLog index 8f0e4fe..dac412e 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,3 +1,9 @@ +Mon Jun 20 23:54:37 1994 Peter Schauer (pes@regent.e-technik.tu-muenchen.de) + + * c-lang.c (asm_language_defn): New definitions for language_asm, + mostly copied from c_language_defn, to avoid warnings when + switching between c and asm stack frames. + Mon Jun 20 13:51:55 1994 Ian Lance Taylor (ian@sanguine.cygnus.com) * mdebugread.c (parse_symbol): Don't call ecoff_swap_tir_in or diff --git a/gdb/c-lang.c b/gdb/c-lang.c index 3f694a4..8b193d3 100644 --- a/gdb/c-lang.c +++ b/gdb/c-lang.c @@ -437,9 +437,33 @@ const struct language_defn cplus_language_defn = { LANG_MAGIC }; +const struct language_defn asm_language_defn = { + "asm", /* Language name */ + language_asm, + c_builtin_types, + range_check_off, + type_check_off, + c_parse, + c_error, + c_printchar, /* Print a character constant */ + c_printstr, /* Function to print string constant */ + c_create_fundamental_type, /* Create fundamental type in this language */ + c_print_type, /* Print a type using appropriate syntax */ + c_val_print, /* Print a value using appropriate syntax */ + c_value_print, /* Print a top-level value */ + &builtin_type_double, /* longest floating point type */ /*FIXME*/ + {"", "", "", ""}, /* Binary format info */ + {"0%lo", "0", "o", ""}, /* Octal format info */ + {"%ld", "", "d", ""}, /* Decimal format info */ + {"0x%lx", "0x", "x", ""}, /* Hex format info */ + c_op_print_tab, /* expression operators for printing */ + LANG_MAGIC +}; + void _initialize_c_language () { add_language (&c_language_defn); add_language (&cplus_language_defn); + add_language (&asm_language_defn); } |