Adjust comments with example in it
authorYao Qi <yao@codesourcery.com>
Wed, 20 Aug 2014 03:36:42 +0000 (11:36 +0800)
committerYao Qi <yao@codesourcery.com>
Wed, 20 Aug 2014 09:40:37 +0000 (17:40 +0800)
We would like to wrap examples, output or code snippet in comments with
blank lines, and move */ to a new line if the comment is ended with the
example.

gdb:

2014-08-20  Yao Qi  <yao@codesourcery.com>

* amd64-tdep.c (amd64_classify): Add a blank line after the
example.  Move "*/" to a new line.
* arm-tdep.c (arm_vfp_cprc_sub_candidate): Likewise.
* arm-wince-tdep.c (arm_pe_skip_trampoline_code): Likewise.
* dwarf2read.c (psymtab_include_file_name): Likewise.

gdb/ChangeLog
gdb/amd64-tdep.c
gdb/arm-tdep.c
gdb/arm-wince-tdep.c
gdb/dwarf2read.c

index cc71db560c2ad11aa213092ec2c2bb36b64ac4c1..55cc92c8ed98fd3146cc52cadf96dc390722115d 100644 (file)
@@ -1,3 +1,11 @@
+2014-08-20  Yao Qi  <yao@codesourcery.com>
+
+       * amd64-tdep.c (amd64_classify): Add a blank line after the
+       example.  Move "*/" to a new line.
+       * arm-tdep.c (arm_vfp_cprc_sub_candidate): Likewise.
+       * arm-wince-tdep.c (arm_pe_skip_trampoline_code): Likewise.
+       * dwarf2read.c (psymtab_include_file_name): Likewise.
+
 2014-08-19  Andrew Burgess  <aburgess@broadcom.com>
            Pedro Alves  <palves@redhat.com>
 
index 173451f8e4e2a8002aad810caee154736e3b856a..abd9c48f096e97fa3462756432339071b9d5f5d0 100644 (file)
@@ -670,7 +670,9 @@ amd64_classify (struct type *type, enum amd64_reg_class class[2])
      struct complexT {
        T real;
        T imag;
-     };  */
+     };
+
+  */
   else if (code == TYPE_CODE_COMPLEX && len == 8)
     class[0] = AMD64_SSE;
   else if (code == TYPE_CODE_COMPLEX && len == 16)
index db97fed1a95780482d8bd5d55982e1716f52e9e8..9bc65079c5794f0ba1e732e30be920a824f378b0 100644 (file)
@@ -3602,7 +3602,9 @@ arm_vfp_cprc_sub_candidate (struct type *t,
         {
           T real;
           T imag;
-        };  */
+        };
+
+      */
       switch (TYPE_LENGTH (t))
        {
        case 8:
index 24f0e5b8935f0dc00a0ce47d6a5cd6052cd59591..aff8d20e030ab9d94445ee021b12b7f93a99602f 100644 (file)
@@ -45,9 +45,12 @@ arm_pe_skip_trampoline_code (struct frame_info *frame, CORE_ADDR pc)
   CORE_ADDR next_pc;
 
   /* The format of an ARM DLL trampoline is:
+
        ldr  ip, [pc]
        ldr  pc, [ip]
-       .dw __imp_<func>  */
+       .dw __imp_<func>
+
+  */
 
   if (pc == 0
       || read_memory_unsigned_integer (pc + 0, 4, byte_order) != 0xe59fc000
index 11580cc632317deae92538f0db3279ca83cd5655..157d7fb32344ee2c5c2a35d3681018f51ff3f251 100644 (file)
@@ -17125,7 +17125,9 @@ psymtab_include_file_name (const struct line_header *lh, int file_index,
         include_name = "hello.c"
         dir_name = "."
         DW_AT_comp_dir = comp_dir = "/tmp"
-        DW_AT_name = "./hello.c"  */
+        DW_AT_name = "./hello.c"
+
+      */
 
       if (dir_name != NULL)
        {