aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNick Clifton <nickc@redhat.com>2000-04-06 23:21:50 +0000
committerNick Clifton <nickc@redhat.com>2000-04-06 23:21:50 +0000
commit5f8a9d91e7ce5943228b4ec77443369962235108 (patch)
treea6d40de2a7214284c4954e889f6d3339eb32c0a9
parentf3485b74bb07e89c727a105df066b699cbdfc44c (diff)
downloadgdb-5f8a9d91e7ce5943228b4ec77443369962235108.zip
gdb-5f8a9d91e7ce5943228b4ec77443369962235108.tar.gz
gdb-5f8a9d91e7ce5943228b4ec77443369962235108.tar.bz2
Detect EM_AVR machine number
-rw-r--r--binutils/ChangeLog2
-rw-r--r--binutils/readelf.c1
2 files changed, 3 insertions, 0 deletions
diff --git a/binutils/ChangeLog b/binutils/ChangeLog
index 073a320..1008871 100644
--- a/binutils/ChangeLog
+++ b/binutils/ChangeLog
@@ -3,6 +3,8 @@
* readelf.c (decode_ARM_machine_flags): New function.
(get_machine_flags): Call decode_ARM_machine_flags for ARM
targets.
+
+ (get_machine_name): Catch EM_AVR
2000-04-05 Alan Modra <alan@linuxcare.com.au>
diff --git a/binutils/readelf.c b/binutils/readelf.c
index 0c48c42..b6e42bc 100644
--- a/binutils/readelf.c
+++ b/binutils/readelf.c
@@ -1241,6 +1241,7 @@ get_machine_name (e_machine)
case EM_SVX: return "Silicon Graphics SVx";
case EM_ST19: return "STMicroelectronics ST19 8-bit microcontroller";
case EM_VAX: return "Digital VAX";
+ case EM_AVR: return "AVR";
default:
sprintf (buff, _("<unknown>: %x"), e_machine);
return buff;