public inbox for src-cvs@sourceware.org
help / color / mirror / Atom feed
* gdb and binutils branch master updated. 58d065288c2f5910fdf09afa3d2a86825964c8d0
@ 2013-11-12  2:53 brobecke
  0 siblings, 0 replies; only message in thread
From: brobecke @ 2013-11-12  2:53 UTC (permalink / raw)
  To: src-cvs

This is an automated email from the git hooks/post-receive script. It was
generated because a ref change was pushed to the repository containing
the project "gdb and binutils".

The branch, master has been updated
       via  58d065288c2f5910fdf09afa3d2a86825964c8d0 (commit)
       via  a7e332c24b77168bc61d4ee776bf29c831fbbc88 (commit)
       via  778865d3e288f4fcf3b293e78d52cd5dacb4b999 (commit)
      from  304a8ac17c606a83a60a371267daa71ab0bcbc12 (commit)

Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.

- Log -----------------------------------------------------------------
https://sourceware.org/git/gitweb.cgi?p=binutils-gdb.git;h=58d065288c2f5910fdf09afa3d2a86825964c8d0

commit 58d065288c2f5910fdf09afa3d2a86825964c8d0
Author: Joel Brobecker <brobecker@adacore.com>
Date:   Fri Nov 8 14:21:14 2013 +0400

    Document "info exceptions" and "-info-ada-exception" new commands.
    
    gdb/doc/ChangeLog:
    
            * gdb.texinfo (Ada): Add entry in menu for new "Ada Exceptions" node.
            (Ada Exceptions): New node.
            (GDB/MI): Add entry in menu for new "GDB/MI Ada Exceptions
            Commands" node.
            (GDB/MI Ada Exceptions Commands): New node.
            (GDB/MI Miscellaneous Commands): Document new "info-ada-exceptions"
            field in the output of the "-list-features" command.
            * NEWS: Add entry for the new "info exceptions" CLI command,
            and for the new "-info-ada-exceptions" GDB/MI command.

https://sourceware.org/git/gitweb.cgi?p=binutils-gdb.git;h=a7e332c24b77168bc61d4ee776bf29c831fbbc88

commit a7e332c24b77168bc61d4ee776bf29c831fbbc88
Author: Joel Brobecker <brobecker@adacore.com>
Date:   Thu Nov 7 17:15:46 2013 +0400

    Implement GDB/MI equivalent of "info exceptions" CLI command.
    
    This patch implements a new GDB/MI command implementing the equivalent
    of the "info exceptions" CLI command.  The command syntax is:
    
        -info-ada-exceptions [REGEXP]
    
    Here is an example of usage (slightly formatted by hand to make it
    easier to read):
    
        -info-ada-exceptions ions\.a_
        ^done,ada-exceptions=
          {nr_rows="2",nr_cols="2",
           hdr=[{width="1",alignment="-1",col_name="name",colhdr="Name"},
                {width="1",alignment="-1",col_name="address",colhdr="Address"}],
           body=[{name="global_exceptions.a_global_exception",
                  address="0x0000000000613a80"},
                 {name="global_exceptions.a_private_exception",
                  address="0x0000000000613ac0"}]}
    
    Also, in order to allow graphical frontends to easily determine
    whether this command is available or not, the output of the
    "-list-features" command has been augmented to contain
    "info-ada-exceptions".
    
    gdb/Changelog:
    
            * mi/mi-cmds.h (mi_cmd_info_ada_exceptions): Add declaration.
            * mi/mi-cmds.c (mi_cmds): Add entry for -info-ada-exceptions
            command.
            * mi/mi-cmd-info.c: #include "ada-lang.c" and "arch-utils.c".
            (mi_cmd_info_ada_exceptions): New function.
            * mi/mi-main.c (mi_cmd_list_features): Add "info-ada-exceptions".
    
    gdb/testsuite/ChangeLog:
    
            * gdb.ada/mi_exc_info: New testcase.

https://sourceware.org/git/gitweb.cgi?p=binutils-gdb.git;h=778865d3e288f4fcf3b293e78d52cd5dacb4b999

commit 778865d3e288f4fcf3b293e78d52cd5dacb4b999
Author: Joel Brobecker <brobecker@adacore.com>
Date:   Thu Nov 7 17:40:48 2013 +0400

    Add command to list Ada exceptions
    
    This patch adds a new command "info exceptions" whose purpose is to
    provide the list of exceptions currently defined in the inferior.
    The usage is:
    
        (gdb) info exceptions [REGEXP]
    
    Without argument, the command lists all exceptions.  Otherwise,
    only those whose name match REGEXP are listed.
    
    For instance:
    
        (gdb) info exceptions
        All defined Ada exceptions:
        constraint_error: 0x613dc0
        program_error: 0x613d40
        storage_error: 0x613d00
        tasking_error: 0x613cc0
        global_exceptions.a_global_exception: 0x613a80
        global_exceptions.a_private_exception: 0x613ac0
    
    The name of the command, as well as its output is part of a legacy
    I inherited long ago. It's output being parsed by frontends such as
    GPS, I cannot easily change it. Same for the command name.
    
    The implementation is mostly self-contained, and is written in a way
    that should make it easy to implement the GDB/MI equivalent. The
    careful reviewer will notice that the code added in ada-lang.h could
    normally be made private inside ada-lang.c.  But these will be used
    by the GDB/MI implementation.  Rather than making those private now,
    only to move them later, I've made them public right away.
    
    gdb/ChangeLog:
    
            * ada-lang.h: #include "vec.h".
            (struct ada_exc_info): New.
            (ada_exc_info): New typedef.
            (DEF_VEC_O(ada_exc_info)): New vector.
            (ada_exceptions_list): Add declaration.
            * ada-lang.c (ada_is_exception_sym)
            (ada_is_non_standard_exception_sym, compare_ada_exception_info)
            (sort_remove_dups_ada_exceptions_list)
            (ada_exc_search_name_matches, ada_add_standard_exceptions)
            (ada_add_exceptions_from_frame, ada_add_global_exceptions)
            (ada_exceptions_list_1, ada_exceptions_list)
            (info_exceptions_command): New function.
            (_initialize_ada_language): Add "info exception" command.
    
    gdb/testsuite/ChangeLog:
    
            * gdb.ada/info_exc: New testcase.

-----------------------------------------------------------------------

Summary of changes:
 gdb/ChangeLog                               |   16 ++
 gdb/NEWS                                    |    9 +
 gdb/ada-lang.c                              |  357 +++++++++++++++++++++++++++
 gdb/ada-lang.h                              |   16 ++
 gdb/doc/ChangeLog                           |   12 +
 gdb/doc/gdb.texinfo                         |   95 +++++++-
 gdb/mi/mi-cmd-info.c                        |   51 ++++
 gdb/mi/mi-cmds.c                            |    1 +
 gdb/mi/mi-cmds.h                            |    1 +
 gdb/mi/mi-main.c                            |    1 +
 gdb/testsuite/ChangeLog                     |    8 +
 gdb/testsuite/gdb.ada/info_exc.exp          |   57 +++++
 gdb/testsuite/gdb.ada/info_exc/const.ads    |   18 ++
 gdb/testsuite/gdb.ada/info_exc/foo.adb      |   20 ++
 gdb/testsuite/gdb.ada/mi_exc_info.exp       |   51 ++++
 gdb/testsuite/gdb.ada/mi_exc_info/const.ads |   18 ++
 gdb/testsuite/gdb.ada/mi_exc_info/foo.adb   |   20 ++
 17 files changed, 750 insertions(+), 1 deletions(-)
 create mode 100644 gdb/testsuite/gdb.ada/info_exc.exp
 create mode 100644 gdb/testsuite/gdb.ada/info_exc/const.ads
 create mode 100644 gdb/testsuite/gdb.ada/info_exc/foo.adb
 create mode 100644 gdb/testsuite/gdb.ada/mi_exc_info.exp
 create mode 100644 gdb/testsuite/gdb.ada/mi_exc_info/const.ads
 create mode 100644 gdb/testsuite/gdb.ada/mi_exc_info/foo.adb


hooks/post-receive
-- 
gdb and binutils


^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2013-11-12  2:53 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2013-11-12  2:53 gdb and binutils branch master updated. 58d065288c2f5910fdf09afa3d2a86825964c8d0 brobecke

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).