harmony-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Zhou.Xun <prob...@gmail.com>
Subject [general][thread] The thread before main()
Date Fri, 26 Oct 2007 02:20:41 GMT
I was debugging the jre/bin/java of Harmony using gdb,
I made a break point at main();
But when I run this program, gdb told me a new thread was created, then it
swith to this thread and stopped at the first line of main();
I was wondering what does this thread came from? and what does it do before
The console is like this

(gdb) file java
Reading symbols from /home/zhouxun/hdk/jdk/jre/bin/java...done.
Using host libthread_db library "/lib/tls/i686/cmov/libthread_db.so.1".
(gdb) b main
Breakpoint 1 at 0x804b62e: file ../shared/cmain.c, line 102.
(gdb) r Hello
Starting program: /home/zhouxun/hdk/jdk/jre/bin/java Hello
[Thread debugging using libthread_db enabled]
[New Thread -1213589808 (LWP 7100)]
[Switching to Thread -1213589808 (LWP 7100)]

Breakpoint 1, main (argc=2, argv=0xbfc88004, envp=0xbfc88010) at
102       int rc = 257;

From: ZhouXun, Software School of Fudan University

  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message