public inbox for gdb-prs@sourceware.org
help / color / mirror / Atom feed
* [Bug remote/12648] New: Incorrect check of exec before offering symbol lookup to remote
@ 2011-04-07  7:23 erhunter at hotmail dot com
  2013-03-13  5:56 ` [Bug remote/12648] " ehunter at broadcom dot com
  0 siblings, 1 reply; 2+ messages in thread
From: erhunter at hotmail dot com @ 2011-04-07  7:23 UTC (permalink / raw)
  To: gdb-prs

http://sourceware.org/bugzilla/show_bug.cgi?id=12648

           Summary: Incorrect check of exec before offering symbol lookup
                    to remote
           Product: gdb
           Version: HEAD
            Status: NEW
          Severity: normal
          Priority: P2
         Component: remote
        AssignedTo: unassigned@sourceware.org
        ReportedBy: erhunter@hotmail.com


Remote targets do not require an exec file, since they can be already
executing.
They can however have a symbol file loaded, and if symbols are loaded, then
they should be offered to the remote target at the time of connection.

Currently there is a check against "exec_bfd" on gdb/remote.c:3353 :

    if (exec_bfd)    /* No use without an exec file.  */
        remote_check_symbols (symfile_objfile);


This causes remote targets with no exec file but with a symbol file to never be
offered symbol lookups.

To reproduce the lack of symbol offer, I can perform the following steps:

Start OpenOCD.
arm-none-eabi-gdb
>symbol-file <symbols.elf>
>target remote localhost:3333

I have commented out the line with if statement, leaving the
remote_check_symbols call to always happen, and symbols are offered correctly,
but am not sure if there are circumstances where this is incorrect.

The reason this bug is important, is that Eclipse CDT uses this method for
connecting to a remote target, and if symbols are not offered, then the RTOS
cannot be detected.

Regards,

Evan Hunter

-- 
Configure bugmail: http://sourceware.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.


^ permalink raw reply	[flat|nested] 2+ messages in thread

* [Bug remote/12648] Incorrect check of exec before offering symbol lookup to remote
  2011-04-07  7:23 [Bug remote/12648] New: Incorrect check of exec before offering symbol lookup to remote erhunter at hotmail dot com
@ 2013-03-13  5:56 ` ehunter at broadcom dot com
  0 siblings, 0 replies; 2+ messages in thread
From: ehunter at broadcom dot com @ 2013-03-13  5:56 UTC (permalink / raw)
  To: gdb-prs

http://sourceware.org/bugzilla/show_bug.cgi?id=12648

Evan Hunter <ehunter at broadcom dot com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |ehunter at broadcom dot com

-- 
Configure bugmail: http://sourceware.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.


^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2013-03-13  5:56 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2011-04-07  7:23 [Bug remote/12648] New: Incorrect check of exec before offering symbol lookup to remote erhunter at hotmail dot com
2013-03-13  5:56 ` [Bug remote/12648] " ehunter at broadcom dot com

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).