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]

[commit/Ada] Allow "{TYPE} ADDR" expression on left hand side of assignment


Hello,

This patch allows the Ada-specific "{TYPE_NAME} ADDR" syntax to
be on the left hand side of an assignement. Before the patch,
the parser would error out saying:

    (gdb) set {Integer} $addr := 19
    Error in expression, near ` 19'.

2008-01-04  Paul N. Hilfinger  <hilfinger@adacore.com>

        * ada-exp.y: Allow '{type} ADDRESS' notation on left of assignment.

With a new testcase:

2008-01-04  Joel Brobecker  <brobecker@adacore.com>

        * gdb.ada/type_coercion/ident.adb, gdb.ada/type_coercion/assign.adb:
        New files.
        * gdb.ada/type_coercion.exp: New testcase.

Tested on x86-linux, no regression. Checked in.

-- 
Joel

Attachment: type_coercion.diff
Description: Text document

Attachment: type_coercion-tc.diff
Description: Text document


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