From mboxrd@z Thu Jan 1 00:00:00 1970 From: "H . J . Lu" To: gdb@sources.redhat.com, gdb-patches@sources.redhat.com Subject: Re: [rfa] Re: The problem with stabs and sign extension Date: Wed, 08 Aug 2001 21:06:00 -0000 Message-id: <20010808210605.A7549@lucon.org> References: <20010808141207.A31287@nevyn.them.org> <20010808161421.A3360@lucon.org> <20010808165359.A3964@lucon.org> <20010808170326.A4132@lucon.org> <20010808171616.A7610@nevyn.them.org> X-SW-Source: 2001-08/msg00084.html On Wed, Aug 08, 2001 at 05:16:16PM -0700, Daniel Jacobowitz wrote: > > necessary. > > are not. The psymtab has the wrong offsets in it if you do this. > > There's actually a clear bug here, once you know where to look. A > CORE_ADDR is assigned to a long int in partial-stab.h. There's a > warning flag in GCC for this, isn't there? > > Please try the patch attached. (gdb) list printk 250 printk.c: No such file or directory. in printk.c works. But (gdb) print printk During symbol reading, inner block (0x802ac9d4-0xffffffff) not inside outer block (0x802aca18-0xffffffff). $1 = {int (char *)} 0x8011c5b0 Something is still wrong. H.J.