Mirror of the gdb mailing list
 help / color / mirror / Atom feed
From: Jim Blandy <jimb@codesourcery.com>
To: "Turny Dávid" <Turny.David@stud.u-szeged.hu>
Cc: gdb@sourceware.org
Subject: Re: internal error: pc 0x0 in read in psymtab, but not in symtab
Date: Fri, 10 Nov 2006 01:18:00 -0000	[thread overview]
Message-ID: <m3hcx8qet6.fsf@codesourcery.com> (raw)
In-Reply-To: <20061110012728.inknmmc2888kkkgg@www.stud.u-szeged.hu> (Turny  =?utf-8?Q?D=C3=A1vid's?= message of "Fri, 10 Nov 2006 01:27:28 +0100")


Turny Dávid <Turny.David@stud.u-szeged.hu> writes:
> I try to debug a program on a remote ARM target. I use the openOCD and the
> arm-elf-gdb (GNUARM) or the arm-none-eabi-gdb (SOURCERY). I have got
> an error message:
>
> internal error: pc 0x0 in read in psymtab, but not in symtab
>
> I have got is a lot of times... If I can reach somehow the main then
> it is working, but if I like to use the arm-elf-insight then these
> messages come in windows and I have to click on the ok button and I
> cant reach the main.
> How can I avoid this?
> Thank you!
>
> Oh, and I think there is something wrong with the .data
> section...please check the corresponding part of the main.dmp file.
> /the size of that is not ok I think.../
> Thank You very much!!!

I think this problem is related to GDB's handling of sections that
are loaded at address zero; see this thread:

http://sourceware.org/ml/gdb/2006-06/msg00051.html

Your problem may have been addressed by the following change:

2006-07-24  Frederic Riss  <frederic.riss@st.com>

	* dwarf2read.c (struct dwarf2_per_objfile): Add has_section_at_zero 
	field.
	(dwarf2_locate_sections): Initialize 
	dwarf2_per_objfile->has_section_at_zero.
	(dwarf2_get_pc_bounds): Use dwarf2_per_objfile->has_section_at_zero 
	instead of HAS_RELOC test.
	(read_partial_die): Ditto.

Could you try a GDB built from the current CVS sources, and see if
this problem is still there?


      reply	other threads:[~2006-11-10  1:18 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2006-11-10  0:27 Turny Dávid
2006-11-10  1:18 ` Jim Blandy [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=m3hcx8qet6.fsf@codesourcery.com \
    --to=jimb@codesourcery.com \
    --cc=Turny.David@stud.u-szeged.hu \
    --cc=gdb@sourceware.org \
    /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