@@ -111,12 +111,11 @@ def _section_arguments(self, module, module_addr):
111
111
return "{textaddr} {sections}" .format (
112
112
textaddr = textaddr , sections = "" .join (args ))
113
113
114
- def load_module_symbols (self , module , module_file = None ):
114
+ def load_module_symbols (self , module ):
115
115
module_name = module ['name' ].string ()
116
116
module_addr = str (module ['mem' ][constants .LX_MOD_TEXT ]['base' ]).split ()[0 ]
117
117
118
- if not module_file :
119
- module_file = self ._get_module_file (module_name )
118
+ module_file = self ._get_module_file (module_name )
120
119
if not module_file and not self .module_files_updated :
121
120
self ._update_module_files ()
122
121
module_file = self ._get_module_file (module_name )
@@ -139,19 +138,6 @@ def load_module_symbols(self, module, module_file=None):
139
138
else :
140
139
gdb .write ("no module object found for '{0}'\n " .format (module_name ))
141
140
142
- def load_ko_symbols (self , mod_path ):
143
- self .loaded_modules = []
144
- module_list = modules .module_list ()
145
-
146
- for module in module_list :
147
- module_name = module ['name' ].string ()
148
- module_pattern = ".*/{0}\.ko(?:.debug)?$" .format (
149
- module_name .replace ("_" , r"[_\-]" ))
150
- if re .match (module_pattern , mod_path ) and os .path .exists (mod_path ):
151
- self .load_module_symbols (module , mod_path )
152
- return
153
- raise gdb .GdbError ("%s is not a valid .ko\n " % mod_path )
154
-
155
141
def load_all_symbols (self ):
156
142
gdb .write ("loading vmlinux\n " )
157
143
@@ -190,11 +176,6 @@ def invoke(self, arg, from_tty):
190
176
self .module_files = []
191
177
self .module_files_updated = False
192
178
193
- argv = gdb .string_to_argv (arg )
194
- if len (argv ) == 1 :
195
- self .load_ko_symbols (argv [0 ])
196
- return
197
-
198
179
self .load_all_symbols ()
199
180
200
181
if hasattr (gdb , 'Breakpoint' ):
0 commit comments