This is the mail archive of the gdb-prs@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]

[Bug gdb/11750] New: "define" does not properly recognize a nested define


Inside a `define' command, `define' cannot be nested, but this
would be useful for example to add/change hooks.

The message:

  This command cannot be used at the top level

can appear (when reaching the outer `end' in a `source'd file).

(gdb) define z
Type commands for definition of "z".
End with a line saying just "end".
>define hook-stop
>echo hi
>end
(gdb)

`define' does not properly recognize a nested define.

Affected versions are at least 6.8 and 7.1.

-- 
           Summary: "define" does not properly recognize a nested define
           Product: gdb
           Version: 7.1
            Status: UNCONFIRMED
          Severity: normal
          Priority: P2
         Component: gdb
        AssignedTo: unassigned at sourceware dot org
        ReportedBy: steffen dot dettmer at gmail dot com
                CC: Steffen dot DETTMER at ingenico dot com,gdb-prs at
                    sourceware dot org
  GCC host triplet: i686-pc-linux-gnu
GCC target triplet: arm-elf


http://sourceware.org/bugzilla/show_bug.cgi?id=11750

------- You are receiving this mail because: -------
You are on the CC list for the bug, or are watching someone who is.


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