This is the mail archive of the gdb-patches@sourceware.org mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[obv] Recognize also DW_LANG_C99 [Re: [patch] Fix racy gdb.mi/mi-nonstop.exp: interrupted (timeout)]


On Thu, 21 May 2009 04:12:55 +0200, Pedro Alves wrote:
> On Wednesday 20 May 2009 21:38:37, Jan Kratochvil wrote:
> 
> > currently it could sometimes:
> > 
> > *stopped,reason="signal-received",signal-name="0",signal-meaning="Signal 0",frame={addr="0x0000003d69e07b0d",func="pthread_join",args=[{name="threadid",value="<value optimized out>"},{name="thread_return",value="<value optimized out>"}],file="pthread_join.c",fullname="/usr/src/debug/glibc-20090510T1842/nptl/pthread_join.c",line="89"},thread-id="1",stopped-threads=["1"]^M
> > ~"Current language:  auto; currently minimal\n"^M
> 
> Curious that this reported "minimal", while you seem to have some debug
> info.  Is that expected?

Good catch, therefore checked-in this [obv] fix instead.


Thanks,
Jan

http://sourceware.org/ml/gdb-cvs/2009-05/msg00135.html

2009-05-21  Jan Kratochvil  <jan.kratochvil@redhat.com>

	* dwarf2read.c (set_cu_language): Recognize also DW_LANG_C99.

--- src/gdb/dwarf2read.c	2009/05/21 07:15:46	1.303
+++ src/gdb/dwarf2read.c	2009/05/21 07:57:45	1.304
@@ -6876,6 +6876,7 @@
   switch (lang)
     {
     case DW_LANG_C89:
+    case DW_LANG_C99:
     case DW_LANG_C:
       cu->language = language_c;
       break;


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]