[RFA] choose symbol from given block's objfile first.

Joel Brobecker brobecker@adacore.com
Wed May 9 21:49:00 GMT 2012


[grumble grumble]

And here is a second testcase that gets fixed by this patch as well.
I suspect the reason why my patch fixes it is because the variables
in the shared libraries must be LOC_UNRESOLVED, and thus resolved
through default_read_var_value/lookup_minimal_symbol.

gdb/testsuite/ChangeLog:

    * gdb.base/print-file-var-lib1.c, gdb.base/print-file-var-lib2.c,
    gdb.base/print-file-var-main.c, gdb.base/print-file-var.exp:
    New files.

gdb/ChangeLog:

        * config/djgpp/fnchange.lst: Add entries for print-file-var-lib1.c,
        print-file-var-lib2.c, print-file-var-main.c and
        print-file-var.exp (located in gdb/testsuite/gdb.base).

Tested on x86_64-linux.

-- 
Joel
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0003-Add-print-file-var-testcase-with-two-libs-defining-t.patch
Type: text/x-diff
Size: 7741 bytes
Desc: not available
URL: <http://sourceware.org/pipermail/gdb-patches/attachments/20120509/8076b774/attachment.bin>


More information about the Gdb-patches mailing list