public inbox for gdb-patches@sourceware.org
 help / color / mirror / Atom feed
* [PATCH 0/8] Remove object-like target macros
@ 2020-07-21  1:49 Tom Tromey
  2020-07-21  1:49 ` [PATCH 1/8] Remove target_has_all_memory Tom Tromey
                   ` (8 more replies)
  0 siblings, 9 replies; 18+ messages in thread
From: Tom Tromey @ 2020-07-21  1:49 UTC (permalink / raw)
  To: gdb-patches

target.h has a number of object-like macros that expand to function
calls, for example

    #define target_has_memory target_has_memory_1 ()

This has long seemed confusing to me.  This series replaces these
macros either with function-like macros, or with ordinary function
calls.

Other such macros exist in gdb (exec.h and progspace.h hold the ones
I'm aware of).  I have a separate series to remove these.

Let me know what you think.

Tom



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

end of thread, other threads:[~2020-09-29  1:38 UTC | newest]

Thread overview: 18+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-07-21  1:49 [PATCH 0/8] Remove object-like target macros Tom Tromey
2020-07-21  1:49 ` [PATCH 1/8] Remove target_has_all_memory Tom Tromey
2020-07-21  1:49 ` [PATCH 2/8] Remove target_has_memory macro Tom Tromey
2020-07-21  1:49 ` [PATCH 3/8] Remove target_has_stack macro Tom Tromey
2020-07-21 17:12   ` Christian Biesinger
2020-09-29  1:36     ` Tom Tromey
2020-07-21  1:49 ` [PATCH 4/8] Remove target_has_registers macro Tom Tromey
2020-07-21  1:49 ` [PATCH 5/8] Turn target_can_execute_reverse into function-like macro Tom Tromey
2020-07-21  2:30   ` Simon Marchi
2020-07-21 17:07   ` Christian Biesinger
2020-09-29  1:36     ` Tom Tromey
2020-07-21  1:49 ` [PATCH 6/8] Remove target_has_execution macro Tom Tromey
2020-07-21  1:49 ` [PATCH 7/8] Turn target_can_lock_scheduler into a function-like macro Tom Tromey
2020-07-21  2:32   ` Simon Marchi
2020-07-21 11:28     ` Tom Tromey
2020-09-29  1:37       ` Tom Tromey
2020-07-21  1:49 ` [PATCH 8/8] Turn target_have_steppable_watchpoint into " Tom Tromey
2020-09-29  1:38 ` [PATCH 0/8] Remove object-like target macros Tom Tromey

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).