[PATCH v3 5/5] objdump: Add test on option --map-global-vars display global variable information

Jan Beulich jbeulich@suse.com
Wed Sep 3 13:05:48 GMT 2025


On 01.09.2025 19:50, Guillaume VACHERIAS wrote:
> --- a/binutils/testsuite/binutils-all/objdump.exp
> +++ b/binutils/testsuite/binutils-all/objdump.exp
> @@ -959,6 +959,45 @@ proc test_objdump_S { } {
>  
>  test_objdump_S
>  
> +# Test objdump --map-global-vars on file containing dwarf-2 encoding information.
> +
> +proc test_objdump_map_global_vars { } {
> +    global srcdir
> +    global subdir
> +    global OBJDUMP
> +    global OBJDUMPFLAGS
> +    global exe
> +
> +    set test "objdump --map-global-vars"
> +
> +    if { [target_compile $srcdir/$subdir/objdump-map-global-vars.c tmpdir/objdump-map-global-vars${exe} executable debug] != "" } {

Oh, and - what guarantees that it's going to be Dwarf2 debug info that is going to
be generated?

Jan


More information about the Binutils mailing list