Add comments to gdbarch_address_class_name_to_type_flags.
authorSimon Marchi <simon.marchi@ericsson.com>
Fri, 17 Jan 2014 09:54:56 +0000 (09:54 +0000)
committerPedro Alves <palves@redhat.com>
Fri, 17 Jan 2014 09:54:56 +0000 (09:54 +0000)
gdb/ChangeLog
2014-01-17  Simon Marchi  <simon.marchi@ericsson.com>

* gdbarch.sh (gdbarch_address_class_name_to_type_flags): Add
comments.
* gdbarch.h: Regenerate.

gdb/ChangeLog
gdb/gdbarch.h
gdb/gdbarch.sh

index 6899c340ad203c2c2bd0b730b3c5cc1683c52ca4..a2ebabf8a14e3cece0790023687c2793ea28a252 100644 (file)
@@ -1,3 +1,9 @@
+2014-01-17  Simon Marchi  <simon.marchi@ericsson.com>
+
+       * gdbarch.sh (gdbarch_address_class_name_to_type_flags): Add
+       comments.
+       * gdbarch.h: Regenerate.
+
 2014-01-16  Tom Tromey  <tromey@redhat.com>
 
        * value.c (struct value) <regnum>: Move earlier.
index 6b5937172874a3aec89db4f537e264b27279c4df..b28a80e75bb6bbfe2df2dafbc2f29c731b0ab17c 100644 (file)
@@ -694,6 +694,10 @@ typedef const char * (gdbarch_address_class_type_flags_to_name_ftype) (struct gd
 extern const char * gdbarch_address_class_type_flags_to_name (struct gdbarch *gdbarch, int type_flags);
 extern void set_gdbarch_address_class_type_flags_to_name (struct gdbarch *gdbarch, gdbarch_address_class_type_flags_to_name_ftype *address_class_type_flags_to_name);
 
+/* Return the appropriate type_flags for the supplied address class.
+   This function should return 1 if the address class was recognized and
+   type_flags was set, zero otherwise. */
+
 extern int gdbarch_address_class_name_to_type_flags_p (struct gdbarch *gdbarch);
 
 typedef int (gdbarch_address_class_name_to_type_flags_ftype) (struct gdbarch *gdbarch, const char *name, int *type_flags_ptr);
index 9c1229e485fda0b2ea154ae42098775672889c4f..36dff570c631fb537516cc630b9d2899ebc53f06 100755 (executable)
@@ -628,6 +628,10 @@ v:int:cannot_step_breakpoint:::0:0::0
 v:int:have_nonsteppable_watchpoint:::0:0::0
 F:int:address_class_type_flags:int byte_size, int dwarf2_addr_class:byte_size, dwarf2_addr_class
 M:const char *:address_class_type_flags_to_name:int type_flags:type_flags
+
+# Return the appropriate type_flags for the supplied address class.
+# This function should return 1 if the address class was recognized and
+# type_flags was set, zero otherwise.
 M:int:address_class_name_to_type_flags:const char *name, int *type_flags_ptr:name, type_flags_ptr
 # Is a register in a group
 m:int:register_reggroup_p:int regnum, struct reggroup *reggroup:regnum, reggroup::default_register_reggroup_p::0