Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/sys/gdbscripts make this work again



details:   https://anonhg.NetBSD.org/src/rev/6978fa3630c8
branches:  trunk
changeset: 971554:6978fa3630c8
user:      christos <christos%NetBSD.org@localhost>
date:      Mon Apr 27 20:31:11 2020 +0000

description:
make this work again

diffstat:

 sys/gdbscripts/module |  10 +++++++---
 1 files changed, 7 insertions(+), 3 deletions(-)

diffs (21 lines):

diff -r 6a31f5470238 -r 6978fa3630c8 sys/gdbscripts/module
--- a/sys/gdbscripts/module     Mon Apr 27 20:03:08 2020 +0000
+++ b/sys/gdbscripts/module     Mon Apr 27 20:31:11 2020 +0000
@@ -72,10 +72,14 @@
        set $e = $h.tqh_first
        while ($e != 0)
                if ($e->mod_kobj != 0)
-                       printf "module %s\t0x%016lx-0x%016lx\n", \
+                       printf "module %s\n\t  text=0x%016lx/%u\n\t  data=0x%016lx/%u\n\trodata=0x%016lx/%u\n", \
                            $e->mod_info.mi_name, \
-                           $e->mod_kobj->ko_address, \
-                           $e->mod_kobj->ko_address + $e->mod_kobj->ko_size
+                           $e->mod_kobj->ko_text_address, \
+                           $e->mod_kobj->ko_text_size, \
+                           $e->mod_kobj->ko_data_address, \
+                           $e->mod_kobj->ko_data_size, \
+                           $e->mod_kobj->ko_rodata_address, \
+                           $e->mod_kobj->ko_rodata_size
                else
                        printf "module %s\n", \
                            $e->mod_info.mi_name



Home | Main Index | Thread Index | Old Index