From: Tom Tromey <tromey@redhat.com>
To: Joel Brobecker <brobecker@adacore.com>
Cc: gdb-patches@sourceware.org
Subject: Re: RFC: printing pointers to global (data) variable on Windows...
Date: Mon, 10 Sep 2012 19:08:00 -0000 [thread overview]
Message-ID: <87fw6pd7c4.fsf@fleche.redhat.com> (raw)
In-Reply-To: <20120905144406.GC2853@adacore.com> (Joel Brobecker's message of "Wed, 5 Sep 2012 07:44:06 -0700")
>>>>> "Joel" == Joel Brobecker <brobecker@adacore.com> writes:
Joel> * symtab.h (struct minimal_symbol) [has_size]: New field.
Joel> (MSYMBOL_SIZE): Adjust to forbid macro from being used as lvalue.
Joel> (SET_MSYMBOL_SIZE, MSYMBOL_HAS_SIZE): New macros.
Joel> * printcmd.c (build_address_symbolic): Only filter out zero-sized
Joel> minimal symbols if the symbol's size is actually known.
Joel> * minsyms.c (prim_record_minimal_symbol_full): Adjust setting
Joel> of msymbol's size field. Add comment.
Joel> (install_minimal_symbols): Use SET_MSYMBOL_SIZE to set the
Joel> minimal symbol size.
Joel> * elfread.c (elf_symtab_read, elf_rel_plt_read): Use
Joel> SET_MSYMBOL_SIZE to set the minimal symbol size.
Joel> OK to commit?
Joel> @@ -1233,7 +1235,7 @@ install_minimal_symbols (struct objfile *objfile)
Joel> SYMBOL_VALUE_ADDRESS (&msymbols[mcount]) = 0;
Joel> MSYMBOL_TARGET_FLAG_1 (&msymbols[mcount]) = 0;
Joel> MSYMBOL_TARGET_FLAG_2 (&msymbols[mcount]) = 0;
Joel> - MSYMBOL_SIZE (&msymbols[mcount]) = 0;
Joel> + SET_MSYMBOL_SIZE (&msymbols[mcount], 0);
I tend to think this hunk should not use SET_MSYMBOL_SIZE.
Maybe it even ought to use memset instead of what it currently does.
Or, if SET_MSYMBOL_SIZE is correct here, a comment would be helpful.
The rest looked good to me.
Tom
next prev parent reply other threads:[~2012-09-10 19:08 UTC|newest]
Thread overview: 18+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-08-16 15:23 Joel Brobecker
2012-08-16 20:07 ` Tom Tromey
2012-08-16 22:45 ` Joel Brobecker
2012-08-17 14:23 ` Tom Tromey
2012-08-17 23:16 ` Joel Brobecker
2012-08-20 15:09 ` Joel Brobecker
2012-08-20 17:50 ` Tom Tromey
2012-08-21 15:28 ` Joel Brobecker
2012-08-20 17:48 ` Tom Tromey
2012-08-21 15:36 ` Joel Brobecker
2012-09-05 14:44 ` Joel Brobecker
2012-09-06 1:28 ` asmwarrior
2012-09-06 1:44 ` Joel Brobecker
2012-09-06 2:03 ` asmwarrior
2012-09-10 19:08 ` Tom Tromey [this message]
2012-09-10 22:13 ` Joel Brobecker
2012-09-11 13:49 ` Tom Tromey
2012-09-11 21:27 ` Joel Brobecker
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=87fw6pd7c4.fsf@fleche.redhat.com \
--to=tromey@redhat.com \
--cc=brobecker@adacore.com \
--cc=gdb-patches@sourceware.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox