Mirror of the gdb mailing list
 help / color / mirror / Atom feed
From: Daniel Jacobowitz <drow@mvista.com>
To: "H . J . Lu" <hjl@lucon.org>
Cc: Andrew Cagney <ac131313@cygnus.com>,
	"Maciej W. Rozycki" <macro@ds2.pg.gda.pl>,
	Richard Henderson <rth@redhat.com>,
	David B Anderson <davea@quasar.engr.sgi.com>,
	gdb@sourceware.cygnus.com, binutils@sourceware.cygnus.com
Subject: Re: Why does mips define elf_backend_sign_extend_vma to true?
Date: Wed, 08 Aug 2001 09:48:00 -0000	[thread overview]
Message-ID: <20010808094808.A23955@nevyn.them.org> (raw)
In-Reply-To: <20010808080306.C26983@lucon.org>

On Wed, Aug 08, 2001 at 08:03:06AM -0700, H . J . Lu wrote:
> On Wed, Aug 08, 2001 at 10:50:41AM -0400, Andrew Cagney wrote:
> > 
> > There is an old saying K.I.S.S.
> > 
> > GDB was, not so recently changed to apply the rule that the MIPS target, 
> > always, no matter what, sign extens 32 bit addresses.
> > 
> > It had the pleasant side effect of fixing numerous bugs and flushing out 
> > too much bogus code.  What your proposing is a step back into the dark 
> > ages of MIPS programming.
> 
> 
> Please try
> 
> 1. Find a decent compiler for Linux/mips.
> 2. Check out the Linux mips kernel from oss.sgi.com.
> 3. Compile the kernel with -g.
> 4. Compile Linux/mips gdb with 64bit BFD.
> 5. Do

drow@nevyn:~% /opt/src/gdb/obj-cross/gdb/gdb
/opt/mvista/mips/linux13/vmlinux
GNU gdb 2001-07-26-cvs (MI_OUT)
Copyright 2001 Free Software Foundation, Inc.
GDB is free software, covered by the GNU General Public License, and you are
welcome to change it and/or distribute copies of it under certain conditions.
Type "show copying" to see the conditions.
There is absolutely no warranty for GDB.  Type "show warranty" for details.
This GDB was configured as "--host=i686-pc-linux-gnu
--target=mipsel-hardhat-linux"...
(gdb) list printk
247     asmlinkage long sys_syslog(int type, char * buf, int len)
248     {
249             if ((type != 3) && !capable(CAP_SYS_ADMIN))
250                     return -EPERM;
251             return do_syslog(type, buf, len);
252     }
253
254     asmlinkage int printk(const char *fmt, ...)
255     {
256             va_list args;

I've already asked you in this thread, what version of tools and what
debug format are you using?  Is it gcc3.0 with all your patches and
your Linux binutils?

Using more mainstream tools, the problem does not seem to exist.

-- 
Daniel Jacobowitz                           Carnegie Mellon University
MontaVista Software                         Debian GNU/Linux Developer


  parent reply	other threads:[~2001-08-08  9:48 UTC|newest]

Thread overview: 21+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2001-08-07 20:27 David B Anderson
2001-08-07 22:04 ` H . J . Lu
2001-08-07 22:46   ` Richard Henderson
2001-08-07 23:21     ` H . J . Lu
2001-08-08  0:50       ` Richard Henderson
2001-08-08  1:09       ` Maciej W. Rozycki
2001-08-08  7:29         ` H . J . Lu
2001-08-08  7:50           ` Andrew Cagney
2001-08-08  8:03             ` H . J . Lu
2001-08-08  8:18               ` Andrew Cagney
2001-08-08  9:02                 ` H . J . Lu
2001-08-08  9:53                   ` Daniel Jacobowitz
2001-08-08 10:02                     ` H . J . Lu
2001-08-08 11:02                       ` Daniel Jacobowitz
2001-08-08 11:08                         ` H . J . Lu
2001-08-09 12:23                   ` Andrew Cagney
2001-08-08  9:48               ` Daniel Jacobowitz [this message]
2001-08-08  9:52                 ` H . J . Lu
2001-08-10  0:47               ` Maciej W. Rozycki
     [not found] <20010807182459.A15252@lucon.org>
     [not found] ` <20010807183933.A15425@lucon.org>
     [not found]   ` <3B709900.3000502@cygnus.com>
     [not found]     ` <20010807184504.A15571@lucon.org>
2001-08-07 18:52       ` H . J . Lu
2001-08-07 18:58         ` Daniel Jacobowitz

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=20010808094808.A23955@nevyn.them.org \
    --to=drow@mvista.com \
    --cc=ac131313@cygnus.com \
    --cc=binutils@sourceware.cygnus.com \
    --cc=davea@quasar.engr.sgi.com \
    --cc=gdb@sourceware.cygnus.com \
    --cc=hjl@lucon.org \
    --cc=macro@ds2.pg.gda.pl \
    --cc=rth@redhat.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