From: Daniel Jacobowitz <drow@mvista.com>
To: "Thomas,Stephen" <stephen.thomas@superh.com>
Cc: gdb@sources.redhat.com, "McGoogan,Sean" <sean.mcgoogan@superh.com>
Subject: Re: Attaching to a running process
Date: Mon, 07 Apr 2003 16:08:00 -0000 [thread overview]
Message-ID: <20030407160812.GA11691@nevyn.them.org> (raw)
In-Reply-To: <9FF3133289A7A84E81E2ED8F5E56B379604385@sh-uk-ex01.uk.w2k.superh.com>
On Mon, Apr 07, 2003 at 05:02:14PM +0100, Thomas,Stephen wrote:
> Hi,
>
> I am currently working on a port of gdb to SuperH SH64 Linux, & I am having a problem with the gdb 'attach' command. According to the gdb info pages, gdb is supposed to work out what filename the attached process is running, & load its symbols. However, gdb doesn't seem to be doing this. I checked our x86 gdb, & that doesn't either (gdb version number reported as 'Red Hat Linux 7.x (5.0rh-15)').
>
> On x86 this doesn't seem to matter much. However it does on SH64, as the attach seems to get done using some default target info, which means it gets the wrong CPU type and the wrong endianess. If I tell gdb what filename to use (e.g. by specifying it on the command line), everything works fine.
>
> So should gdb try to find the filename & load it before attaching or not? If not (i.e. the info pages are wrong), then I guess I'm going to have to solve this somehow...
Sure it should. What version of GDB are you working with? See
child_pid_to_exec_file in linux-proc.c.
--
Daniel Jacobowitz
MontaVista Software Debian GNU/Linux Developer
prev parent reply other threads:[~2003-04-07 16:08 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2003-04-07 16:02 Thomas,Stephen
2003-04-07 16:08 ` Daniel Jacobowitz [this message]
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=20030407160812.GA11691@nevyn.them.org \
--to=drow@mvista.com \
--cc=gdb@sources.redhat.com \
--cc=sean.mcgoogan@superh.com \
--cc=stephen.thomas@superh.com \
/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