This is the mail archive of the gdb-patches@sourceware.org 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: [PATCH] Fix gdb.base/code_elim.exp failures for PowerPC 32-bit


On 07/08/2014 06:47 AM, Luis Machado wrote:
> On 07/08/2014 02:52 AM, Samuel Bronson wrote:
>> Luis Machado <lgustavo@codesourcery.com> writes:

>>> add-symbol-file gdb.base/code_elim2 0x200000 -s .data 0x210000 -s .bss 0x220000^M
                                                    ^^^^^^^^^^^^^^
[snip]

>>> Reading symbols from gdb.base/code_elim2...warning: section .data not
>>> found in gdb.base/code_elim2^M

[snip]

>> Is tweaking the testcase really the best approach here?  Shouldn't GDB
>> just be less picky?
>>
> 
> Either solution is fine with me, but the warning is actually somewhat 
> informative since the .data section is relatively common.

That doesn't make sense in this context.  GDB is not being picky -- the
warning is coming out because the user _explicitly_ specified an
address for the .data section, not because .data is special
in any way.

-- 
Pedro Alves


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