This is the mail archive of the gdb@sources.redhat.com mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: add-symbol-file and CORE_ADDR


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



Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]