Mirror of the gdb-patches mailing list
 help / color / mirror / Atom feed
* [commit] Print MALLOC_NAME as a string
@ 2002-12-09 14:47 Andrew Cagney
  2002-12-09 15:39 ` Andrew Cagney
  0 siblings, 1 reply; 2+ messages in thread
From: Andrew Cagney @ 2002-12-09 14:47 UTC (permalink / raw)
  To: gdb-patches

[-- Attachment #1: Type: text/plain, Size: 66 bytes --]

Another cleanup for `maint print architecture'

Committed,
Andrew

[-- Attachment #2: diffs --]
[-- Type: text/plain, Size: 1934 bytes --]

2002-12-09  Andrew Cagney  <cagney@redhat.com>

	* gdbarch.sh (gdbarch_dump): Print NAME_OF_MALLOC using %s.
	* gdbarch.c: Re-generate.

Index: gdbarch.c
===================================================================
RCS file: /cvs/src/src/gdb/gdbarch.c,v
retrieving revision 1.169
diff -u -r1.169 gdbarch.c
--- gdbarch.c	9 Dec 2002 02:04:16 -0000	1.169
+++ gdbarch.c	9 Dec 2002 22:20:21 -0000
@@ -1684,8 +1684,8 @@
                       "gdbarch_dump: NAME_OF_MALLOC # %s\n",
                       XSTRING (NAME_OF_MALLOC));
   fprintf_unfiltered (file,
-                      "gdbarch_dump: NAME_OF_MALLOC = %ld\n",
-                      (long) NAME_OF_MALLOC);
+                      "gdbarch_dump: NAME_OF_MALLOC = %s\n",
+                      NAME_OF_MALLOC);
 #endif
 #ifdef NPC_REGNUM
   fprintf_unfiltered (file,
Index: gdbarch.sh
===================================================================
RCS file: /cvs/src/src/gdb/gdbarch.sh,v
retrieving revision 1.181
diff -u -r1.181 gdbarch.sh
--- gdbarch.sh	9 Dec 2002 02:04:16 -0000	1.181
+++ gdbarch.sh	9 Dec 2002 22:20:22 -0000
@@ -672,7 +672,7 @@
 F:2:DWARF2_BUILD_FRAME_INFO:void:dwarf2_build_frame_info:struct objfile *objfile:objfile:::0
 f:2:ELF_MAKE_MSYMBOL_SPECIAL:void:elf_make_msymbol_special:asymbol *sym, struct minimal_symbol *msym:sym, msym:::default_elf_make_msymbol_special::0
 f:2:COFF_MAKE_MSYMBOL_SPECIAL:void:coff_make_msymbol_special:int val, struct minimal_symbol *msym:val, msym:::default_coff_make_msymbol_special::0
-v::NAME_OF_MALLOC:const char *:name_of_malloc::::"malloc":"malloc"::0
+v::NAME_OF_MALLOC:const char *:name_of_malloc::::"malloc":"malloc"::0:%s:NAME_OF_MALLOC
 v::CANNOT_STEP_BREAKPOINT:int:cannot_step_breakpoint::::0:0::0
 v::HAVE_NONSTEPPABLE_WATCHPOINT:int:have_nonsteppable_watchpoint::::0:0::0
 F:2:ADDRESS_CLASS_TYPE_FLAGS:int:address_class_type_flags:int byte_size, int dwarf2_addr_class:byte_size, dwarf2_addr_class

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: [commit] Print MALLOC_NAME as a string
  2002-12-09 14:47 [commit] Print MALLOC_NAME as a string Andrew Cagney
@ 2002-12-09 15:39 ` Andrew Cagney
  0 siblings, 0 replies; 2+ messages in thread
From: Andrew Cagney @ 2002-12-09 15:39 UTC (permalink / raw)
  To: Andrew Cagney; +Cc: gdb-patches

[-- Attachment #1: Type: text/plain, Size: 87 bytes --]

Closely followed by this.  Wraps any function addresses in `<...>'.

committed,
Andrew

[-- Attachment #2: diffs --]
[-- Type: text/plain, Size: 819 bytes --]

2002-12-09  Andrew Cagney  <cagney@redhat.com>
 
	* gdbarch.sh (gdbarch_dump): Wrap function addresses in <>.
 	* gdbarch.c: Re-generate.
 
Index: gdbarch.sh
===================================================================
RCS file: /cvs/src/src/gdb/gdbarch.sh,v
retrieving revision 1.182
diff -u -r1.182 gdbarch.sh
--- gdbarch.sh	9 Dec 2002 22:22:40 -0000	1.182
+++ gdbarch.sh	9 Dec 2002 22:44:09 -0000
@@ -1641,7 +1641,7 @@
     then
 	printf "  if (GDB_MULTI_ARCH)\n"
 	printf "    fprintf_unfiltered (file,\n"
-	printf "                        \"gdbarch_dump: ${macro} = 0x%%08lx\\\\n\",\n"
+	printf "                        \"gdbarch_dump: ${macro} = <0x%%08lx>\\\\n\",\n"
 	printf "                        (long) current_gdbarch->${function}\n"
 	printf "                        /*${macro} ()*/);\n"
     else

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2002-12-09 22:47 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2002-12-09 14:47 [commit] Print MALLOC_NAME as a string Andrew Cagney
2002-12-09 15:39 ` Andrew Cagney

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox