This is the mail archive of the
gdb-patches@sources.redhat.com
mailing list for the GDB project.
Re: [RFA] gcore: ignore no protection segments
- From: Andrew Cagney <cagney at gnu dot org>
- To: Elena Zannoni <ezannoni at redhat dot com>
- Cc: gdb-patches at sources dot redhat dot com
- Date: Tue, 13 Jan 2004 13:46:03 -0500
- Subject: Re: [RFA] gcore: ignore no protection segments
- References: <16388.9214.960234.384619@localhost.redhat.com>
+
+ if (read == 0 && write == 0 && exec == 0)
+ {
+ if (info_verbose)
+ {
+ fprintf_filtered (gdb_stdout, "Ignore segment, %lld bytes at
0x%s\n",+ (long long) size, paddr_nz (vaddr));
+ }
+
+ return 0;
+ }
Makes sense. Suggest adding a few details in a comment, and
paddr_d(size) for the length.
Andrew