This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
Re: [PATCH v2 1/2] Optzd-out ptr: New test for error handling
- From: Yao Qi <qiyaoltc at gmail dot com>
- To: Don Breazeal <donb at codesourcery dot com>
- Cc: <gdb-patches at sourceware dot org>, <palves at redhat dot com>, <lgustavo at codesourcery dot com>
- Date: Tue, 29 Mar 2016 12:57:58 +0100
- Subject: Re: [PATCH v2 1/2] Optzd-out ptr: New test for error handling
- Authentication-results: sourceware.org; auth=none
- References: <56CEF1F5 dot 7060307 at redhat dot com> <1459200820-24735-1-git-send-email-donb at codesourcery dot com> <1459200820-24735-2-git-send-email-donb at codesourcery dot com>
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 (éå)