Mirror of the gdb-patches mailing list
 help / color / mirror / Atom feed
* ptid from core section
@ 2009-06-01 15:56 Aleksandar Ristovski
  2009-06-03 14:41 ` Pedro Alves
  0 siblings, 1 reply; 13+ messages in thread
From: Aleksandar Ristovski @ 2009-06-01 15:56 UTC (permalink / raw)
  To: gdb-patches; +Cc: Pedro Alves

Hello,

In corelow.c we have several architecture specific lines for 
determining ptid from core section. The same for getting 
section name given inferior_ptid.

This patch moves architecture specific parts into two new 
functions: gdbarch_ptid_from_core_section and 
gdbarch_core_section_name_from_ptid.

They replace Pedro's gdbarch_core_reg_section_encodes_pid 
since predicate is now redundant.

I haven't added diffs for generated gdbarch.h/c, I would 
like to get your thoughts about this first.

Thanks,

Aleksandar Ristovski
QNX Software Systems

Change log:

* corelow.c (add_to_thread_list): Use new 
gdbarch_ptid_from_core_section.
(get_core_register_section): Use new 
gdbarch_core_section_name_from_ptid.
* gdbarch.sh (core_reg_section_encodes_pid): Deleted.
(ptid_from_core_section, core_section_name_from_ptid): New 
functions.
(default_ptid_from_core_section, 
default_core_section_name_from_ptid): New functions.
* sol2-tdep.h (sol2_ptid_from_core_section,
sol2_core_section_name_from_ptid): New declarations.
* sol2-tdep.c (sol2_ptid_from_core_section,
sol2_core_section_name_from_ptid): New functions.
* amd64-sol2-tdep.c (amd64_sol2_init_abi): Register the two 
functions.
* sparc-sol2-tdep.c (sparc32_sol2_init_abi): Likewise.
* sparc64-sol2-tdep.c (sparc64_sol2_init_abi): Likewise.
* i386-sol2-tdep.c (i386_sol2_init_abi): Likewise.


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

end of thread, other threads:[~2009-06-05 19:03 UTC | newest]

Thread overview: 13+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2009-06-01 15:56 ptid from core section Aleksandar Ristovski
2009-06-03 14:41 ` Pedro Alves
2009-06-03 16:59   ` Aleksandar Ristovski
2009-06-03 18:41     ` Pedro Alves
2009-06-04 18:32       ` Aleksandar Ristovski
2009-06-05 13:43         ` Pedro Alves
2009-06-05 14:04           ` Aleksandar Ristovski
2009-06-05 14:39             ` Pedro Alves
2009-06-05 14:53               ` Aleksandar Ristovski
2009-06-05 16:26                 ` Pedro Alves
2009-06-05 17:54                   ` Aleksandar Ristovski
2009-06-05 19:00                     ` Pedro Alves
2009-06-05 19:03                       ` Aleksandar Ristovski

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