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 cc71db5..55cc92c 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 173451f..abd9c48 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 db97fed..9bc6507 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 24f0e5b..aff8d20 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 11580cc..157d7fb 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)
        {