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 v2 1/2] Optzd-out ptr: New test for error handling


Don Breazeal <donb@codesourcery.com> writes:

> +		DW_TAG_subprogram {
> +		    {DW_AT_name func01}
> +		    {DW_AT_type :$int_label}
> +		    {external   1 flag}
> +		    {low_pc     func01_start addr}
> +		    {high_pc    func01_end addr}

Please use MACRO_AT_func so that the low_pc and high_pc can be got correctly.

> +		} {
> +		    DW_TAG_variable {
> +			{DW_AT_name ptr}
> +			{DW_AT_type :$pointer_label}
> +			{DW_AT_location {} DW_FORM_block1}
> +		    }
> +		}
> +    
> +		DW_TAG_subprogram {
> +		    {DW_AT_name main}
> +		    {DW_AT_type :$int_label}
> +		    {external   1 flag}
> +		    {low_pc     main_start addr}
> +		    {high_pc    main_end addr}

Likewise.

> +		} {
> +		}

-- 
Yao (éå)


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