Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F161904114
D22767.id65504.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
787 B
Referenced Files
None
Subscribers
None
D22767.id65504.diff
View Options
Index: sys/gdb/gdb_main.c
===================================================================
--- sys/gdb/gdb_main.c
+++ sys/gdb/gdb_main.c
@@ -131,6 +131,20 @@
gdb_tx_err(EIO);
}
+#ifdef __powerpc__
+extern vm_offset_t __startkernel;
+
+static void
+gdb_do_offsets(void)
+{
+ gdb_tx_begin(0);
+ gdb_tx_str("TextSeg=");
+ /* subtract .kboot section size to get segment address */
+ gdb_tx_varhex(__startkernel - 0x100);
+ gdb_tx_end();
+}
+#endif
+
static void
gdb_do_threadinfo(struct thread **thr_iter)
{
@@ -769,6 +783,10 @@
do_qXfer();
} else if (gdb_rx_equal("Search:memory:")) {
gdb_do_mem_search();
+#ifdef __powerpc__
+ } else if (gdb_rx_equal("Offsets")) {
+ gdb_do_offsets();
+#endif
} else if (!gdb_cpu_query())
gdb_tx_empty();
break;
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Wed, Jul 8, 9:34 PM (10 h, 10 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
34829716
Default Alt Text
D22767.id65504.diff (787 B)
Attached To
Mode
D22767: [PPC] Handle qOffsets packet
Attached
Detach File
Event Timeline
Log In to Comment