On Wed, Apr 10, 2013 at 02:20:39PM +0200, Roland Mainz wrote:
> On Wed, Apr 10, 2013 at 2:11 PM, Dr. Werner Fink <[email protected]> wrote:
> > On Wed, Apr 10, 2013 at 01:32:26PM +0200, Roland Mainz wrote:
> >> [CC:'ing Werner since this is i18n related and was only observed on
> >> SuSE 12.3 Linux for now...]
> >
> > IMHO you may use the --args option of the gdb. Be sure that all
> > debugging symbols are installed (libc e.g.)
>
> How do I do that on SuSE 12.3 Linux ? I tried it with the "zypper"
> command but it results in a no-op:
> -- snip --
> $ zypper install -C
> "debuginfo(build-id)=a9fe4fffa800ff91f2850b678d56619e0701323c"
> Loading repository data...
> Reading installed packages...
> No provider of 'debuginfo(build-id) =
> a9fe4fffa800ff91f2850b678d56619e0701323c' found.
> Resolving package dependencies...
>
> Nothing to do.
> -- snip --
>
> Uhm... ?!
Make sure that the debug repositories are enabled ... ?
zypper se -s glibc-debuginfo
zypper repos
zypper mr --enable repo-debug
zypper mr --enable repo-debug-update
> > and ksh is not stripped.
> > Then start your ksh with
> >
> > gdb --args ksh
> >
> > ... set a break point as usual
> >
> > break iconv
> > run
> >
> > ... wait on ksh
> >
> > builtin iconv
> > iconv -t UTF-8 astksh20130409_suse123_32bit_builtin_iconv_hang1.txt
> >
> > now this should trigger the breka and with the help of `bt' the place where
> > iconv is used the first time should be visible.
> [snip]
>
> Thanks... I already did that... but the gdb issue with "previous frame
> inner to this frame" issue remains.
> Note: I'm coming from Solaris/SPARC/dbx+UNICOS/SV1+SuperUX/SX-8 and
> I'm not very familiar with x86/AMD64 debugging... ;-( )
Set the break point on iconv_open(3) as this is the function which is
used before iconv(3) .. hopefully
Werner
--
"Having a smoking section in a restaurant is like having
a peeing section in a swimming pool." -- Edward Burr
_______________________________________________
ast-developers mailing list
[email protected]
http://lists.research.att.com/mailman/listinfo/ast-developers