Mirror of the gdb mailing list
 help / color / mirror / Atom feed
From: Frank Meerkoetter <frank@betaversion.net>
To: Daniel Jacobowitz <drow@false.org>
Cc: gdb@sourceware.org
Subject: Re: multithreaded programs on arm-linux
Date: Fri, 04 Nov 2005 09:23:00 -0000	[thread overview]
Message-ID: <20051104102321.ob6kfhtmx1mscoc4@admin.betaversion.net> (raw)
In-Reply-To: <20051103211329.GB11262@nevyn.them.org>

Quoting Daniel Jacobowitz <drow@false.org>:

> On Thu, Nov 03, 2005 at 06:50:47PM +0100, Frank Meerkoetter wrote:
>> objfile is NULL, why i couldn't figure out.
>
> That should be true the first time but not the second, if you've used
> "file".

Ok. The first time objfile is null. The second time target_has_execution
is false.

# ./gdb ./gdb
GNU gdb 6.3
This GDB was configured as "arm-linux"...Using host libthread_db library
"/lib/libthread_db.so.1".

(gdb) l ../../gdb-6.3/gdb/thread-db.c:679
warning: Source file is more recent than executable.

674           }
675       }
676
677       /* Don't attempt to use thread_db on targets which can not run
678          (core files).  */
679       if (objfile == NULL || !target_has_execution)
680         {
681           /* All symbols have been discarded.  If the thread_db target is
682              active, deactivate it now.  */
683           if (using_thread_db)
(gdb)
684             {
685               gdb_assert (proc_handle.pid == 0);
686               unpush_target (&thread_db_ops);
687               using_thread_db = 0;
688             }
689
690           goto quit;
691         }
692
693       if (using_thread_db)
(gdb) b ../../gdb-6.3/gdb/thread-db.c:679
Breakpoint 1 at 0x5c62c: file ../../gdb-6.3/gdb/thread-db.c, line 679.
(gdb) r
Starting program: /progfs/opt/Qtopia/bin/gdb

GNU gdb 6.3
This GDB was configured as "arm-linux".
(gdb) file apdf
Reading symbols from /progfs/opt/Qtopia/bin/apdf...done.
Using host libthread_db library "/lib/libthread_db.so.1".

// first round

Breakpoint 1, thread_db_new_objfile (objfile=0x0) at
../../gdb-6.3/gdb/thread-db.c:679
679       if (objfile == NULL || !target_has_execution)
(gdb) p objfile
$1 = (struct objfile *) 0x0
(gdb) n
683           if (using_thread_db)
(gdb) p using_thread_db
$2 = 0
(gdb) n
729       if (target_new_objfile_chain)
(gdb) p target_new_objfile_chain
$3 = (void (*)()) 0
(gdb) n
731     }
(gdb) c
Continuing.

// second round

Breakpoint 1, thread_db_new_objfile (objfile=0x2ceb08) at
../../gdb-6.3/gdb/thread-db.c:679
679       if (objfile == NULL || !target_has_execution)
(gdb) p objfile
$4 = (struct objfile *) 0x2ceb08
// current_target.to_has_execution = 0
(gdb) n
683           if (using_thread_db)
(gdb) n
729       if (target_new_objfile_chain)
(gdb) n
731     }

Regards,
   Frank



  reply	other threads:[~2005-11-04  9:23 UTC|newest]

Thread overview: 31+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2005-11-01 18:11 frank
2005-11-01 18:22 ` Daniel Jacobowitz
2005-11-02  8:00   ` frank
2005-11-02 12:36     ` Andreas Schwab
2005-11-02 12:46       ` frank
2005-11-02 13:28         ` Andreas Schwab
2005-11-02 13:43           ` Daniel Jacobowitz
2005-11-02 14:33             ` Andreas Schwab
2005-11-02 14:39               ` Daniel Jacobowitz
2005-11-02 15:56                 ` Frank Meerkoetter
2005-11-02 16:49                   ` Daniel Jacobowitz
2005-11-03  8:33                     ` Frank Meerkoetter
2005-11-03 13:56                       ` Daniel Jacobowitz
2005-11-03 15:00                         ` Frank Meerkoetter
2005-11-03 15:07                           ` Daniel Jacobowitz
2005-11-03 15:51                             ` Frank Meerkoetter
2005-11-03 15:59                               ` Daniel Jacobowitz
2005-11-03 16:28                                 ` Frank Meerkoetter
2005-11-03 16:42                                   ` Daniel Jacobowitz
2005-11-03 17:51                                     ` Frank Meerkoetter
2005-11-03 21:13                                       ` Daniel Jacobowitz
2005-11-04  9:23                                         ` Frank Meerkoetter [this message]
2005-11-04 14:25                                           ` Daniel Jacobowitz
2005-11-04 15:39                                             ` Frank Meerkoetter
2005-11-04 15:40                                               ` Daniel Jacobowitz
2005-11-04 15:51                                                 ` Frank Meerkoetter
2005-11-04 16:06                                                 ` Frank Meerkoetter
2005-11-04 16:14                                                   ` Daniel Jacobowitz
2005-11-04 15:41                                               ` Daniel Jacobowitz
2005-11-07  9:26                                                 ` Frank Meerkoetter
2005-11-02 16:52                   ` Andreas Schwab

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20051104102321.ob6kfhtmx1mscoc4@admin.betaversion.net \
    --to=frank@betaversion.net \
    --cc=drow@false.org \
    --cc=gdb@sourceware.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox