Mirror of the gdb mailing list
 help / color / mirror / Atom feed
* add-symbol-file and CORE_ADDR
@ 2002-09-25  8:34 Kip Walker
       [not found] ` <mailpost.1032968050.19721@news-sj1-1>
  2002-09-26 17:00 ` Andrew Cagney
  0 siblings, 2 replies; 3+ messages in thread
From: Kip Walker @ 2002-09-25  8:34 UTC (permalink / raw)
  To: gdb


It looks like there might be a problem with add-symbol-file's parsing
of section addresses when CORE_ADDR is a 64-bit type, since 'strtoul'
is used.  I haven't dug through the code to see if there are any
locations that already handle address parsing that works whether
CORE_ADDR is 32 or 64 bits.

Kip


^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: add-symbol-file and CORE_ADDR
       [not found] ` <mailpost.1032968050.19721@news-sj1-1>
@ 2002-09-25  8:37   ` Kip Walker
  0 siblings, 0 replies; 3+ messages in thread
From: Kip Walker @ 2002-09-25  8:37 UTC (permalink / raw)
  To: gdb


Sorry, should have stated:

version is GNU gdb 5.2.1
targetting a remote 64-bit MIPS CPU.

Kip

kwalker@broadcom.com ("Kip Walker") writes:

> It looks like there might be a problem with add-symbol-file's parsing
> of section addresses when CORE_ADDR is a 64-bit type, since 'strtoul'
> is used.  I haven't dug through the code to see if there are any
> locations that already handle address parsing that works whether
> CORE_ADDR is 32 or 64 bits.
> 
> Kip


^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: add-symbol-file and CORE_ADDR
  2002-09-25  8:34 add-symbol-file and CORE_ADDR Kip Walker
       [not found] ` <mailpost.1032968050.19721@news-sj1-1>
@ 2002-09-26 17:00 ` Andrew Cagney
  1 sibling, 0 replies; 3+ messages in thread
From: Andrew Cagney @ 2002-09-26 17:00 UTC (permalink / raw)
  To: Kip Walker; +Cc: gdb

> It looks like there might be a problem with add-symbol-file's parsing
> of section addresses when CORE_ADDR is a 64-bit type, since 'strtoul'
> is used.  I haven't dug through the code to see if there are any
> locations that already handle address parsing that works whether
> CORE_ADDR is 32 or 64 bits.

Have a look at cli/cli-dump.c where it calls 
scan_expression_with_cleanup() and parse_and_eval_address().

Andrew



^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2002-09-27  0:00 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2002-09-25  8:34 add-symbol-file and CORE_ADDR Kip Walker
     [not found] ` <mailpost.1032968050.19721@news-sj1-1>
2002-09-25  8:37   ` Kip Walker
2002-09-26 17:00 ` Andrew Cagney

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox