aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKarthik Bhat <kvbhat@sourceware.org>2012-09-26 12:14:30 +0000
committerKarthik Bhat <kvbhat@sourceware.org>2012-09-26 12:14:30 +0000
commit9ead7ae4a2c752d1b069a20beb2a09678dba02d5 (patch)
treef01fc1417b71f6df21fcae97d65fa0bf3b8ccc73
parent8f8a23a2c397294ab562c6cf7020679f85b921ec (diff)
downloadgdb-9ead7ae4a2c752d1b069a20beb2a09678dba02d5.zip
gdb-9ead7ae4a2c752d1b069a20beb2a09678dba02d5.tar.gz
gdb-9ead7ae4a2c752d1b069a20beb2a09678dba02d5.tar.bz2
* arm-tdep.c (arm_skip_prologue): Extending producer check to support LLVM compiler.
-rw-r--r--gdb/ChangeLog4
-rw-r--r--gdb/arm-tdep.c3
2 files changed, 6 insertions, 1 deletions
diff --git a/gdb/ChangeLog b/gdb/ChangeLog
index 33127a9..78ddfe5 100644
--- a/gdb/ChangeLog
+++ b/gdb/ChangeLog
@@ -1,3 +1,7 @@
+2012-09-26 Karthik Bhat <kv.bhat@samsung.com>
+
+ * arm-tdep.c (arm_skip_prologue): Extending producer check to support LLVM compiler.
+
2012-09-26 Siddhesh Poyarekar <siddhesh@redhat.com>
* amd64-tdep.c (amd64_return_value): Use TYPE_LENGTH directly.
diff --git a/gdb/arm-tdep.c b/gdb/arm-tdep.c
index cddb88c..05a030a 100644
--- a/gdb/arm-tdep.c
+++ b/gdb/arm-tdep.c
@@ -1400,7 +1400,8 @@ arm_skip_prologue (struct gdbarch *gdbarch, CORE_ADDR pc)
if (post_prologue_pc
&& (s == NULL
|| s->producer == NULL
- || strncmp (s->producer, "GNU ", sizeof ("GNU ") - 1) == 0))
+ || strncmp (s->producer, "GNU ", sizeof ("GNU ") - 1) == 0
+ || strncmp (s->producer, "clang ", sizeof ("clang ") - 1) == 0))
return post_prologue_pc;
if (post_prologue_pc != 0)