public inbox for gdb-patches@sourceware.org
 help / color / mirror / Atom feed
* [RFA 3/5] Prec: x86 segment register support: target
@ 2010-03-16 16:53 Hui Zhu
  2010-03-16 18:12 ` Michael Snyder
  0 siblings, 1 reply; 13+ messages in thread
From: Hui Zhu @ 2010-03-16 16:53 UTC (permalink / raw)
  To: gdb-patches ml; +Cc: Michael Snyder

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

This patch add a interface to let GDB get segment base message from inferior.

Thanks,
Hui

2010-03-16  Hui Zhu  <teawater@gmail.com>

	* target.c (update_current_target): Add to_get_segment_base.
	* target.h (target_ops): Ditto.

[-- Attachment #2: prec-segment-target.txt --]
[-- Type: text/plain, Size: 943 bytes --]

---
 target.c |    1 +
 target.h |    4 ++++
 2 files changed, 5 insertions(+)

--- a/target.c
+++ b/target.c
@@ -659,6 +659,7 @@ update_current_target (void)
       INHERIT (to_upload_trace_state_variables, t);
       INHERIT (to_get_raw_trace_data, t);
       INHERIT (to_set_disconnected_tracing, t);
+      INHERIT (to_get_segment_base, t);
       INHERIT (to_magic, t);
       /* Do not inherit to_memory_map.  */
       /* Do not inherit to_flash_erase.  */
--- a/target.h
+++ b/target.h
@@ -673,6 +673,10 @@ struct target_ops
        right now, or in this debug session, or for this target -- return -1.  */
     int (*to_core_of_thread) (struct target_ops *, ptid_t ptid);
 
+    /* Get the segment base of current inferior to BASE.
+       Return 0 if success.  */
+    int (*to_get_segment_base) (int idx, ULONGEST *base);
+
     int to_magic;
     /* Need sub-structure for target machine related rather than comm related?
      */

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

end of thread, other threads:[~2010-03-22 18:14 UTC | newest]

Thread overview: 13+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2010-03-16 16:53 [RFA 3/5] Prec: x86 segment register support: target Hui Zhu
2010-03-16 18:12 ` Michael Snyder
2010-03-16 20:04   ` Daniel Jacobowitz
2010-03-22 14:03     ` Hui Zhu
2010-03-22 14:35       ` Mark Kettenis
2010-03-22 14:45         ` Hui Zhu
2010-03-22 14:53         ` Daniel Jacobowitz
2010-03-22 18:04           ` Eli Zaretskii
2010-03-22 18:14             ` Doug Evans
2010-03-22 16:03         ` Doug Evans
2010-03-22 14:35       ` H.J. Lu
2010-03-22 14:44         ` Hui Zhu
2010-03-22 15:05         ` Mark Kettenis

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).