change <sys/unistd.h> to <unistd.h> and conditionalize its inclusion.
[deliverable/binutils-gdb.git] / gdb / ChangeLog
CommitLineData
3e1d3d67
DT
1Mon Jan 4 15:05:29 1999 David Taylor <taylor@texas.cygnus.com>
2
3 * inftarg.c: change <sys/unistd.h> to <unistd.h> and
4 conditionalize its inclusion.
5 * infttrace.c: ditto.
6
4c49748e
SS
7Thu Dec 31 15:26:13 1998 Stan Shebs <shebs@andros.cygnus.com>
8
9 * corelow.c (core_ops): Don't initialize statically.
10 (init_core_ops): New function, fills in core_ops.
11 (_initialize_corelow): Use it.
12
65b07ddc
DT
13Thu Dec 31 16:54:30 1998 David Taylor <taylor@texas.cygnus.com>
14
15 The following changes were made by
16 Elena Zannoni <ezannoni@kwikemart.cygnus.com>
17 Edith Epstein <eepstein@sophia.cygnus.com>
18 David Taylor <taylor@texas.cygnus.com>
19
b5c7e122 20 * config/pa/tm-hppa.h (INSTRUCTION_NULLIFIED): Change to read
65b07ddc
DT
21 nullify instruction bit from IPSW only when we are not in a system
22 call.
b5c7e122 23 (STRCAT_REGISTER, pa_do_strcat_registers_info): Additional
65b07ddc
DT
24 parameter -- precision.
25
b5c7e122 26 * Makefile.in (BUILD_TUI): To build the tui, only when configured
65b07ddc 27 with --enable-tui.
b5c7e122
SS
28 (YLWRAP): Use ylwrap to avoid problems on systems w/o bison.
29 (gdb$(EXEEXT)): Make it dependent on BUILD_TUI.
30 (all-tui): Remove dependency from phony target.
31 (c-exp.tab.c): Use ylwrap instead of bison.
32 (jv-exp.tab.c): Ditto.
33 (f-exp.tab.c): Ditto.
34 (m2-exp.tab.c): Ditto.
35
36 * configure.in (ENABLE_CFLAGS): Define and export BUILD_TUI.
65b07ddc 37
b5c7e122 38 * configure: Regenerated.
65b07ddc 39
b5c7e122 40 * c-typeprint.c (c_type_print_base): Get to the method name by
65b07ddc
DT
41 skipping over all the namespaces, classes and '::'.
42
b5c7e122 43 * infcmd.c (run_command): Only call SOLIB_RESTART if it's
65b07ddc 44 defined.
b5c7e122 45 (detach_command): Ditto.
65b07ddc 46
b5c7e122 47 * infptrace.c (call_ptrace): Add some debugging code.
65b07ddc 48
b5c7e122
SS
49 * infrun.c (follow_inferior_fork): Only define on HP.
50 (wait_for_inferior): Only call SOLIB_IN_DYNAMIC_LINKER if we have
65b07ddc
DT
51 shared libraries; restore test of IN_SOLIB_DYNSYM_RESOLVE_CODE
52 removed by HP.
53
b5c7e122 54 * Makefile.in (ALLDEPFILES): Add somread.c, hp-psymtab-read.c,
65b07ddc 55 hp-symtab-read.c.
b5c7e122
SS
56 (SFILES): Remove the above files
57 (COMMON_OBS): Remove somread.o
58 (SFILES): Add the tui files to this, so they get
65b07ddc 59 included in etags tables.
b5c7e122 60 (all-tui): New rule, which does a recursive make in the tui
65b07ddc 61 subdir.
b5c7e122
SS
62 (gdb$(EXEEXT)): Add tui-all to the list of
63 dependencies, and add tui/libtui.a to the link list.
64 (tui/libtui.a): When recursing, pass down
65b07ddc
DT
65 ${FLAGS_TO_PASS}. And don't echo the make command. This is
66 closer to what the other recursions do.
b5c7e122
SS
67 (HFILES_NO_SRCDIR) add hpread.h.
68 (COMMON_OBS): Add hp-psymtab-read.o, hp-symtab-read.o
69 Allow the TUI code to be conditionally enabled.
65b07ddc
DT
70 (TUI_TARGET, TUI_LIBRARY): New variables, whose values are set by
71 the configuration script. They're set to the empty string when
72 the TUI isn't enabled.
73 (gdb$(GDBEXT)): Use those, instead of referring to tui-all and
74 tui/libtui.a directly.
75
76 * Makefile.in: Avoid spurious relinking.
77 (gdb$(EXEEXT)): Depend on the actual tui library, not on a
78 fictitious target. Since the fictitious target never existed, make
79 would always relink.
80 (tui/libtui.a): Renamed from all-tui. Always recurse to make sure
81 the library is up to date.
82 (TUI_TARGET): Variable removed; there's no need for it any more.
83
b5c7e122 84 * Makefile.in: Look for tui include files in the tui source dir.
65b07ddc
DT
85
86 * Use automake's `aclocal' program to generate aclocal.m4, to allow
87 us to use automake macros in configure.in with impunity.
88
89 * acconfig.h: Add an entry for the `TUI' symbol.
90
91 * acinclude.m4: New file, containing the code from the old
92 aclocal.m4. Incorporate (by reference) ../bfd/acinclude.m4, not
93 ../bfd/aclocal.m4, since we only want bfd's local macros.
94
95 * aclocal.m4: Now automagically generated. Just run aclocal!
96
b5c7e122 97 * annotate.c (annotate_catchpoint): New function.
65b07ddc 98
b5c7e122 99 * annotate.h: Taking the new includes (symtab.h and gdbtypes.h).
65b07ddc 100 not taking the ansic C build fix.
b5c7e122 101 (annotate_catchpoint): Declare.
65b07ddc 102
b5c7e122 103 * blockframe.c (blockvector_for_pc_sect): Check that the end of
65b07ddc 104 the block is >= to the pc, not just >.
65b07ddc 105
b5c7e122 106 * breakpoint.c (create_temp_exception_breakpoint): #If it out --
65b07ddc 107 nothing calls it.
b5c7e122 108 (bpstat_stop_status): Don't call SOLIB_HAVE_LOAD_EVENT if it's not
65b07ddc 109 defined; don't call SOLIB_HAVE_UNLOAD_EVENT if it's not defined.
b5c7e122 110 (bpstat_get_triggered_catchpoints): If we don't have shared
65b07ddc
DT
111 library support, then don't call SOLIB_LOADED_LIBRARY_PATHNAME nor
112 SOLIB_UNLOADED_LIBRARY_PATHNAME.
b5c7e122 113 (watch_command_1): Don't require a run before a watch command
65b07ddc 114 unless we're on HP [it's an HP OS bug, not a generic limitation]
b5c7e122
SS
115 (catch_load_command_1): Don't define if no shared libraries.
116 (catch_command_1): Don't claim to support fork catchpoints unless
65b07ddc
DT
117 CHILD_INSERT_FORK_CATCHPOINT is defined, don't claim to support
118 vfork catchpoints unless CHILD_INSERT_VFORK_CATCHPOINT is defined,
119 don't clain to support shared library load catchpoints if shared
120 libraries aren't supported, and don't claim to support exec
121 catchpoints unless CHILD_INSERT_EXEC_CATCHPOINT is defined
b5c7e122
SS
122
123 (bpstat_do_actions): If we just set cmd to NULL, don't then try to
124 set it to cmd->next as we'll SEGV.
125 (bpstat_do_actions): Simplify significantly. It's
65b07ddc
DT
126 now almost as simple as before the merge and it no longer has the
127 HP bug that breakpoint commands are executed repeatedly.
128
b5c7e122 129 (break_at_finish_command_1): Rewrite and make sure
65b07ddc
DT
130 selected_frame points to a frame before using it. Fix string
131 termination error.
b5c7e122 132 (break_at_finish_at_depth_command_1): Ditto.
65b07ddc 133
b5c7e122
SS
134 (can_use_hw_watchpoints): New static variable.
135 (read_memory_nobpt): Test for breakpoint type bp_none.
136 (insert_breakpoints): Test for breakpoint type bp_catch_exec;
65b07ddc 137 insure have a current frame before getting the frame address.
b5c7e122 138 (remove_breakpoints): Check for breakpoints of types bp_none,
65b07ddc 139 bp_catch_fork, bp_catch_vfork, and bp_catch_exec.
b5c7e122
SS
140 (bpstat_stop_status): Fix updates of b->hit_count.
141 (bpstat_have_active_hw_watchpoints): New function.
142 (create_exec_event_watchpoint): New function.
143 (watch_command_1): Use can_use_hw_watchpoints.
144 (catch_fork_command_1): Change name of function to call from
65b07ddc 145 target_create_catch_(v)fork_hook to create_(v)fork_even_catchpoint.
b5c7e122 146 (delete_breakpoint): Test for already deleted breakpoints; add
65b07ddc
DT
147 support for bp_catch_fork, bp_catch_vfork, and bp_catch_exec
148 breakpoints.
b5c7e122 149 (_initialize_breakpoint): Add can-use-hw-watchpoints to list of
65b07ddc
DT
150 user settable debugger variables.
151
152 (clear_command): When there is no argument
153 to the clear command, delete all breakpoints that are hit at
154 default line. This will include a breakpoint whose line number
155 does not correspond to the default line, but has been set at
156 the default address.
157
b5c7e122 158 (delete_breakpoint): Don't call bpstat_clear_actions, instead
65b07ddc
DT
159 clear things explicitly; if clearing breakpoint_at, then also
160 clear any associated actions so that bpstat_do_actions won't try
161 to execute them.
b5c7e122 162 (_initialize_breakpoint): Fix function name for bx command.
65b07ddc 163
b5c7e122
SS
164 (tbreak_command): Remove static from declaration.
165 (maintenance_info_breakpoints): Ditto.
65b07ddc 166
b5c7e122 167 (reattach_breakpoints): New funct definition, used with with
65b07ddc 168 hardware watchpoints
b5c7e122
SS
169 (breakpoint_1): Change format and add entries to bptypes[]
170 (maintenance_info_breakpoints): Function is no longer static
65b07ddc 171
b5c7e122 172 (_initialize_breakpoint): Removed a comment.
65b07ddc 173 (exception_catchpoints_are_fragile,
b5c7e122
SS
174 exception_support_initialized): Define.
175 (breakpoint_here_p): Fixed syntax error in conditional
176 (disable_watchpoints_before_interactive_call_start): Fixed call to
65b07ddc 177 check_duplicates. Need a section parameter.
b5c7e122 178 (enable_watchpoints_after_interactive_call_stop): Fixed call to
65b07ddc 179 check_duplicates. Need a section parameter.
b5c7e122 180 (breakpoint_re_set_one): Fixed call to check_duplicates. Need a
65b07ddc 181 section parameter.
b5c7e122
SS
182 (delete_command): Fixed syntax error in conditional
183 (breakpoint_re_set): Fixed some typos.
65b07ddc
DT
184
185 (args_for_catchpoint_enable): New type for handling exceptions.
186 (current_exception_event): New variable for handling exceptions.
b5c7e122 187 (insert_breakpoints): Check for additional breakpoint types --
65b07ddc
DT
188 bp_catch_throw, bp_catch_catch, call_disabled. Also, do some
189 additional work to handle an exception catchpoint.
b5c7e122
SS
190 (remove_breakpoint): There are additional breakpoint types to
191 check for: Bp_catch_throw, bp_catch_catch, call_disabled. Also do
65b07ddc 192 some additional work to remove the exception catchpoints
b5c7e122 193 (breakpoint_init_inferior): New input parameter. If there are
65b07ddc 194 exception catchpoints delete them.
b5c7e122
SS
195 (breakpoint_here_p): There are additional breakpoint enable
196 settings to check for: Shlib_disabled, call_disabled
197 (breakpoint_thread_match): There are additional breakpoint enable
198 settings to check for: Call_disabled
199 (ep_is_catchpoint): There are additional breakpoint types to check
200 for: Bp_catch_throw, bp_catch_catch
201 (ep_is_exception_catchpoint): New function
202 (bpstat_find_step_resume_breakpoint): New function
203 (bpstat_do_actions): Introduce a local copy of the bpstat
65b07ddc 204 structure.
b5c7e122
SS
205 (print_it_normal): There are additional breakpoint types to check
206 for: Bp_catch_throw, bp_catch_catch Changeing the control
65b07ddc
DT
207 structure a bit (adding else ifs) Add code to print out info about
208 exceptions.
b5c7e122
SS
209 (bpstat_stop_status): There are additional breakpoint enable
210 settings to check for: Call_disabled. there are additional
211 breakpoint types to chack for: Bp_catch_catch and bp_catch_throw.
65b07ddc
DT
212 Check to see if stopped due to an exception. Minor fixes to the
213 catch_errors calls. Make sure to count all encountered
214 breakpoints. There was something funky going on previously with
215 the counting.
b5c7e122 216 (bpstat_what): Add cases for new breakpoint types:
65b07ddc
DT
217 bp_catch_catch, bp_catch_throw.
218 (bpstat_get_triggered_catchpoints): Check for new breakpoint types
b5c7e122
SS
219 : Bp_catch_catch, bp _catch_throw.
220 (breakpoint_1): Account for new breakpoint types.
221 (describe_other_breakpoints): Account for new breakpoint enable
65b07ddc 222 setting (call_disabled)
b5c7e122 223 (check_duplicates): Account for new breakpoint enable setting
65b07ddc 224 (call_disabled)
b5c7e122
SS
225 (disable_breakpoints_in_shlibs): New function
226 (disable_watchpoints_before_interactive_call_start): New function
227 (mention): Account for new breakpoint types.
228 (break_command_1): Some additional checking for a valid PC.
229 (watch_command_1): Some dditional checking to prevent a watch
65b07ddc 230 before a run command.
b5c7e122
SS
231 (ep_parse_optional_filename): Simplified for loop.
232 (create_exception_catchpoint): New function
233 (cover_target_enable_exception_callback): New function
234 (handle_gnu_4_16_catch_command): This used to be thcatch_command_1
65b07ddc 235 function.e
b5c7e122
SS
236 (create_temp_exception_breakpoint): New function
237 (catch_command_1): Differs from gdb 4.16 and gdb 4.17. Is now
65b07ddc
DT
238 calling catch_exception_command_1 using the EX_EVENT_CATCH and
239 EX_EVENT_THROW values as parameters.
b5c7e122
SS
240 (clear_command): Additional comments
241 (delete_breakpoint): Handle exceptions. Check for additional
242 breakpoint enable settings: Shlib_disabled, call_disabled.
243 (delete_command): Hp folks are claiming that we should not delete
65b07ddc 244 shlib_event breakpoints
b5c7e122 245 (breakpoint_re_set_one): Moved call to check_duplicates. Add new
65b07ddc 246 breakpoint types to switch statement.
b5c7e122
SS
247 (breakpoint_re_set_thread): New function
248 (enable_command): Account for new breakpoint types.
249
250 (insertion_state_t): New enumerated type.
251 (remove_breakpoint): New param in funct prototype.
252 (insert_breakpoints): Check for bp_catch_fork and bp_catch_vfork.
253 (remove_breakpoints): Changed call to remove_breakpoint.
254 (detach_breakpoints): New function.
65b07ddc
DT
255 (remove_breakpoint): New parameter, is. Also changed the
256 way b->inserted is set.
257 (ep_is_catchpoint): New function.
258 (ep_is_shlib_catchpoint): New function.
b5c7e122 259 (print_it_normal): Check for bp_catch_load, bp_catch_unload,
65b07ddc
DT
260 bp_catch_fork, bp_catch_vfork, bp_catch_exec. Also new code
261 to print out catchpoints properly.
b5c7e122 262 (bpstat_stop_status): Check for bp_catch_fork, bp_catch_vfork,
65b07ddc
DT
263 and bp_catch_exec. Also, some code to check for catching a
264 shared library load/unload.
265 (bpstat_what): Added catch_shlib_event to class enumeration.
266 Defined new macro, shlr. Expanded the bpstat_what_main_action
267 table. Add cases for bp_catch_load, bp_catch_unload,
268 bp_catch_fork, bp_catch_vfork, and bp_catch_exec.
269 (bpstat_get_triggered_catchpoints): New function.
b5c7e122 270 (breakpoint_1): Changes to bptypes definition. Also check for
65b07ddc
DT
271 bp_catch_load, bp_catch_unload, bp_catch_fork, bp_catch_vfork,
272 bp_catch_exec. Similar changes to the switch statement.
b5c7e122 273 (set_raw_breakpoint): Initialize new breakpoint structure fields.
65b07ddc
DT
274 dll_pathname, triggered_dll_pathname, forked_inferior_pid,
275 exec_pathname.
276 (create_solib_load_unload_event_breakpoint): New function.
277 (create_solib_load_event_breakpoint): New function.
278 (create_solib_unload_event_breakpoint): New function.
279 (create_fork_vfork_event_catchpoint): New function.
280 (create_fork_event_catchpoint): New function.
281 (create_vfork_event_catchpoint): New function.
b5c7e122 282 (mention): New cases for bp_catch_load, bp_catch_unload,
65b07ddc
DT
283 bp_catch_fork, bp_catch_vfork, bp_catch_exec.
284 (ep_skip_leading_whitespace): New function.
285 (ep_find_event_name_end): New function.
286 (ep_parse_optional_if_clause): New function.
287 (ep_parse_optional_filename): New function.
288 (catch_fork_kind): New enumerated type.
289 (catch_fork_command_1): New function.
b5c7e122
SS
290 (catch_exec_command_1): New function.
291 (catch_load_command_1): New function.
292 (catch_unload_command_1): New function.
293 (catch_throw_command_1): New function.
294 (catch_command_1): Now calls catch_throw_command_1.
295 (tcatch_command): New function.
296 (delete_breakpoint): Changed call to remove_breakpoint.
65b07ddc 297 Also free the new fields in the breakpoint structure.
b5c7e122 298 (breakpoint_re_set_one): Handle bp_catch_load, bp_catch_unload,
65b07ddc 299 bp_catch_fork, bp_catch_vfork, bp_catch_exec.
b5c7e122 300 (disable_command): Handle bp_catch_load, bp_catch_unload,
65b07ddc 301 bp_catch_fork, bp_catch_vfork, bp_catch_exec.
b5c7e122 302 (enable_command): Handle bp_catch_load, bp_catch_unload,
65b07ddc
DT
303 bp_catch_fork, bp_catch_vfork, bp_catch_exec.
304 (_initialize_breakpoint): Alter add_com call for catchpoints,
305 add add_com call for watchpoints.
306
b5c7e122 307 * breakpoint.h (enum bptype): New entries bp_catch_catch,
65b07ddc
DT
308 bp_catch_throw, and bp_none, bp_catch_load, bp_catch_unload,
309 bp_catch_fork, bp_catch_vfork,bp_catch_exec. Add declarations for
310 new functions bpstat_have_active_hw_watchpoints and
311 create_exec_event_catchpoint.
b5c7e122
SS
312 (tbreak_command): Add prototype.
313 (update_breakpoints_after_exec): Add prototype; update comments.
314 (reattach_breakpoints): New funct prototype declaration.
315 (enable): New enumerated value call_disabled.
316 (bpstat_find_step_resume_breakpoint): New funct decl.
317 (inf_context): New enumerated type.
318 (breakpoint_re_set_thread): New funct decl.
319 (breakpoint_init_inferior): New parameter.
320 (disable_watchpoints_before_interactive_call_start): New funct decl.
321 (enable_watchpoints_after_interactive_call_stop): New funct decl.
322 (disable_breakpoints_in_shlibs): New funct decl.
323 (struct breakpoint): New fields, dll_pathname,triggered_dll_pathname,
65b07ddc
DT
324 forked_inferior_pid,exec_pathname BPSTAT_WHAT_CHECK_SHLIBS_RESUME_FROM_HOOK.
325 (bpstat_get_triggered_catchpoints): New function.
326 (detach_breakpoints): New function.
327 (create_solib_load_event_breakpoint): New function.
328 (create_solib_unload_event_breakpoint) New function.
329 (create_fork_event_catchpoint): New function.
330 (create_vfork_event_catchpoint): New function.
331 (ep_is_catchpoint): New function.
332 (ep_is_shlib_catchpoint) New function.
b5c7e122 333 (enum bpstat_what_main_action): New entry.
65b07ddc 334
b5c7e122 335 * buildsym.c (finish_block): Get rid of processing_hp_compilation;
65b07ddc
DT
336 handle LOC_INDIRECT case. Set the BLOCK_GCC_COMPILED to the right
337 compiler.
b5c7e122
SS
338 (push_context): Add symbols for parameters to the context_stack.
339 (merge_symbol_lists): New function. Merges two symbol lists.
340 (struct context_stack): Add new field param.
65b07ddc 341
b5c7e122 342 (processing_hp_compilation): New external var.
65b07ddc 343
b5c7e122 344 * c-exp.y: Use external flag hp_som_som_object_present to decide
65b07ddc
DT
345 whether code was compiled by HP's compilers. Add two new C++
346 tokens for true and false.
b5c7e122 347 (yylex): Check for template name is done differently for the
65b07ddc
DT
348 HP/aCC compiler case; change some of the template processing code
349 for handling HP aCC templates.
350
b5c7e122 351 * c-lang.c (c_create_fundamental_type): Added case to handle
65b07ddc
DT
352 template args. Handle FT_BOOLEAN type. Set no sign flag for
353 FT_CHAR.
b5c7e122
SS
354 (cplus_builtin_types): New structure for c++ builtin types.
355 (cplus_language_defn): Use cplus_builtin_types instead of
65b07ddc
DT
356 c_builtin_types.
357
b5c7e122 358 * c-typeprint.c (c_type_print_base): Don't print 'privete' label
65b07ddc
DT
359 for a class if all members are private, similarly don't print
360 'public' for a struct. Add support for sized enums (HP/aCC). get
361 rid of the 'static' keyword printed by the demangler for member
362 function, when printing the type of a class. 'static' will be
363 added by this function. If the demangled name is null, and the
364 method is not stubbed, get the signature by looking at the
365 information stored in the symbol structure. Remove printing of
366 'const' and 'volatile' keywords for methods. This is now taken
367 care as part of the demangled member names.
b5c7e122 368 (cp_type_print_method_args): New function. To print a C++ method
65b07ddc
DT
369 arguments and name to the output stream.
370
b5c7e122 371 (c_type_print_cv_qualifier): New function. Print out "const" and
65b07ddc 372 "volatile" attributes.
b5c7e122
SS
373 (c_type_print_varspec_prefix): Print const or volatile qualifiers.
374 (c_type_print_args): Print 'void' for c++.
375 (c_type_print_varspec_suffix): Print 'void' for a no argument
65b07ddc 376 function.
b5c7e122 377 (c_type_print_base): Print const or volatile qualifiers. Do not
65b07ddc
DT
378 print 'unnamed union' if HP aCC compiler used. Distinguish
379 between struct and class based on the DECLARED_TYPE. Handle
380 HP/aCC compiler case for not printing vtable. Add Template
381 support.
382
b5c7e122 383 (cp_type_print_derivation_info): Print out 'protected' when
65b07ddc
DT
384 appropriate. This applies only to HP's compilers, not gcc.
385
b5c7e122 386 (c_val_print): Added parameter embedded_offset. Add
65b07ddc
DT
387 embedded_offset to valaddr in function calls; fix calls to
388 val_print and cp_print_value_fields. process TYPE_CODE_METHOD as
389 well. moved call to check_typedef out of conditional. added
390 embedded offset param to val_print call.
391
b5c7e122 392 (c_value_print): Add new parameter to call to val_print.
65b07ddc
DT
393 handle pointer to class case. Attempt to
394 determine the real type of the object to be printed.
395 ensure that const char *, const unsigned char *
b5c7e122
SS
396 come out without the type but the volatile variants
397 and the signed variants don't.
65b07ddc 398
b5c7e122
SS
399 * coff-solib.c (coff_solib_add): Add parameters to call
400 to symbol_file_add.
65b07ddc 401
b5c7e122
SS
402 * coff-solib.h: (Solib_REMOVE_INFERIOR_HOOK): New macro. defined
403 to 0. functionality not implemented for coff.
404 (SOLIB_CREATE_CATCH_LOAD_HOOK): New macro, generate error message
65b07ddc 405 for coff.
b5c7e122
SS
406 (SOLIB_CREATE_CATCH_UNLOAD_HOOK): Ditto.
407 (SOLIB_HAVE_LOAD_EVENT): Ditto.
408 (SOLIB_LOADED_LIBRARY_PATHNAME): Ditto.
409 (SOLIB_HAVE_UNLOAD_EVENT): Ditto.
410 (SOLIB_UNLOADED_LIBRARY_PATHNAME): Ditto.
411 (SOLIB_IN_DYNAMIC_LINKER): Ditto.
412 (SOLIB_RESTART): Ditto.
413
414 * command.c (find_cmd): New function. (lookup_cmd_1): Call it,
65b07ddc 415 change parsing if tui_version or xdb_commands is set.
b5c7e122 416 (_initialize_command): Install new alias if xdb_commands is set.
65b07ddc 417
b5c7e122 418 * complaints.h: Add ifdef...endif pair at beginning and end of file.
65b07ddc
DT
419
420 * config.in, configure: Regenerated.
421
b5c7e122 422 * config/pa/hppabsd.mh (NATDEPFILES): Added new files
65b07ddc 423 hp-psymtab-read.o and hp-symtab-read.o.
b5c7e122 424 * config/pa/hppahpux.mh (NATDEPFILES): Ditto.
65b07ddc 425
b5c7e122
SS
426 * config/pa/hppahpux.mh (TERMCAP): Use -lHcurses.
427 * config/pa/hppaosf.mh (NATDEPFILES): Ditto.
65b07ddc 428
b5c7e122
SS
429 * config/pa/hpux1020.mh (TERMCAP): Use -lHcurses.
430 (MH_CFLAGS): New flag, -D__HP_CURSES, this define
431 is used by HP's linker to find the correct curses library.
65b07ddc 432
b5c7e122 433 * config/pa/hpux1020.mh: New file.
65b07ddc 434
b5c7e122 435 * config/pa/hpux1020.mt: New file.
65b07ddc
DT
436
437 * config/pa/hpux1100.mh (TERMCAP): Link against -lcurses, not
438 -lHcurses. The latter does not contain mvwaddstr, wscrl, or
439 wstbwlmkfzz.
440
b5c7e122
SS
441 * config/pa/hpux1100.mh (TERMCAP): Use -lHcurses.
442 (MH_CFLAGS): New flag, -D__HP_CURSES, this define
443 is used by HP's linker to find the correct curses library.
65b07ddc 444
b5c7e122 445 * config/pa/hpux1100.mh (TERMCAP): When hosting on hpux 11.00, use
65b07ddc
DT
446 -lHcurses rather than -lcurses.
447
b5c7e122 448 * config/pa/hpux1100.mh: New file.
65b07ddc 449
b5c7e122 450 * config/pa/hpux1100.mt: New file.
65b07ddc 451
b5c7e122
SS
452 * config/pa/nm-hppah.h (CHILD_HAS_SYSCALL_EVENT): New macro
453 (CHILD_THREAD_ALIVE): New macro
454 (STOPPED_BY_WATCHPOINT): Add a condition to the macro,
65b07ddc 455 ! stepped_after_stopped_by_watchpoint
b5c7e122
SS
456 (TARGET_ENABLE_HW_WATCHPOINTS): New macro
457 (hppa_enable_hw_watchpoints): New funct decl
458 (TARGET_DISABLE_HW_WATCHPOINTS): New macro
459 ( hppa_disable_hw_watchpoints): New funct decl
65b07ddc
DT
460 these are for HP's implementation of fast
461 watchpoints (via page protection).
b5c7e122
SS
462 (target_pid_to_str): New macro, calls hppa_pid_to_str
463 (target_tid_to_str): New macro, calls hppa_tid_to_str
65b07ddc 464
b5c7e122
SS
465 * config/pa/nm-hppah.h (CHILD_POST_WAIT): Delete;
466 (CHILD_CREATE_CATCH_FORK_HOOK): Replace with
65b07ddc 467 CHILD_INSERT_FORK_CATCHPOINT and CHILD_REMOVE_FORK_CATCHPOINT.
b5c7e122 468 (CHILD_CREATE_CATCH_VFORK_HOOK): Replace with
65b07ddc
DT
469 CHILD_INSERT_VFORK_CATCHPOINT and CHILD_REMOVE_VFORK_CATCHPOINT.
470 (CHILD_CAN_FOLLOW_VFORK_PRIOR_TO_EXEC,
471 CHILD_INSERT_EXEC_CATCHPOINT, CHILD_REMOVE_EXEC_CATCHPOINT,
472 CHILD_HAS_EXECD, CHILD_REPORTED_EXEC_EVENTS_PER_EXEC_CALL,
473 CHILD_POST_ATTACH, TARGET_HAS_HARDWARE_WATCHPOINTS,
474 TARGET_CAN_USE_HARDWARE_WATCHPOINT,
475 TARGET_REGION_SIZE_OK_FOR_HW_WATCHPOINT,
476 TARGET_RANGE_PROFITABLE_FOR_HW_WATCHPOINT, STOPPED_BY_WATCHPOINT,
477 HAVE_NONSTEPPABLE_WATCHPOINT, target_insert_watchpoint,
b5c7e122 478 target_remote_watchpoint): New macros.
65b07ddc 479
b5c7e122 480 * config/pa/nm-hppah.h (CHILD_XFER_MEMORY): Reinsert accidentally
65b07ddc
DT
481 deleted define.
482
483 * config/pa/nm-hppah.h:
b5c7e122
SS
484 (PREPARE_TO_PROCEED): Defined macro to use
485 hppa_prepare_to_proceed.
486 (hppa_pid_to_str): Extern decl.
487 (hppa_tid_to_str): Extern decl.
488 (target_pid_or_tid_to_str): New macro definition.
489 (hppa_pid_or_tid_to_str): Extern decl.
490 (ENSURE_VFORKING_PARENT_REMAINS_STOPPED): New macro - for
65b07ddc 491 handling events caused by a call to vfork.
b5c7e122
SS
492 (hppa_ensure_vforking_parent_remains_stopped): Extern decl.
493 (RESUME_EXECD_VFORKING_CHILD_TO_GET_PARENT_VFORK): New macro -
65b07ddc 494 for handling events caused by a call to vfork.
b5c7e122 495 (hppa_resume_execd_vforking_child_to_get_parent_vfork): Extern decl.
65b07ddc 496
b5c7e122 497 * config/pa/nm-hppah.h: Fix PREPARE_TO_PROCEED macro.
65b07ddc 498
b5c7e122
SS
499 * config/pa/nm-hppah.h: Fix for gcc compile on HPUX, change
500 PT_RDUAREA to PT_RUAREA.
65b07ddc 501
b5c7e122
SS
502 * config/pa/nm-hppah.h: Introduced an HPUXHPPA define.
503 A bit of a hack so that I can ifdef some code that
504 only works for the HP wildebeest debugger.
65b07ddc 505
b5c7e122 506 * config/pa/nm-hppah.h: Lots of new CHILD_ defines;
65b07ddc
DT
507 process_event_kind enum.
508
b5c7e122
SS
509 * config/pa/tm-hppa.h (BREAKPOINT32): New define.
510 (CALL_DUMMY_HAS_COMPLETED): New define.
65b07ddc 511
b5c7e122
SS
512 * config/pa/tm-hppa.h (STACK_ALIGN): New macro.
513 (NO_EXTRA_ALIGNMENT_NEEDED): New macro.
514 (PC_REQUIRES_RUN_BEFORE_USE): New macro.
515 (REGISTER_NAMES): Formatting in file changed.
516 (CR27_REGNUM): Base register for thread local storage.
517 (USE_STRUCT_CONVENTION): New macro used to decide whether
65b07ddc
DT
518 a function returning a value of type type will
519 put it on the stack or into registers (based on the
520 PA risc calling conventions).
b5c7e122
SS
521 (EXTRACT_RETURN_VALUE): Fixed calculation for extracting return value.
522 (VALUE_RETURNED_FROM_STACK): New macro.
523 (TARGET_READ_PC): Declared the function used in the definition.
524 (SKIP_TRAMPOLINE_CODE): Declared the function used in the definition.
525 (TARGET_WRITE_PC): Declared the function used in the definition.
526 (TARGET_READ_FP): Declared the function used in the definition.
527
528 * config/pa/tm-hppa.h (STRCAT_REGISTER): Define macro for
65b07ddc 529 future use.
b5c7e122 530 (pa_do_strcat_registers_info): Moved function decl from
65b07ddc
DT
531 defs.h to this HPUX specific .h file.
532
b5c7e122 533 * config/pa/tm-hppa.h (USE_STRUCT_CONVENTION): Type_LENGTH returns
65b07ddc
DT
534 bytes, not bits; fix off by 8 error.
535
536 * config/pa/tm-hppa.h:
b5c7e122 537 New comment for obj_unwind_info definition
65b07ddc
DT
538 New typedef, obj_private_struct
539
b5c7e122 540 * config/pa/tm-hppa.h: Delete most target_ macros -- use default
65b07ddc
DT
541 versions instead; remove extraneous comma from proc_wait macro.
542
b5c7e122 543 * config/pa/tm-hppa.h: Get rid of macro HP_COMPILED_TARGET.
65b07ddc 544
b5c7e122 545 * config/pa/tm-hppa.h: Removed redefinitions of
65b07ddc
DT
546 USE_STRUCT_CONVENTION and STACK_ALIGN macros.
547
b5c7e122
SS
548 * config/pa/tm-hppa.h: Some new definitions
549 New macros: Arg0_REGNUM, ARG1_REGNUM, ARG2_REGNUM, ARG3_REGNUM.
65b07ddc
DT
550 target_pid_to_exec_file, target_acknowledge_forked_child,
551 target_create_catch_fork_hook, target_create_catch_vfork_hook,
552 target_has_forked, target_has_vforked, require_attach,
b5c7e122
SS
553 require_detach, proc_wait
554 New funct decls: Hppa_pid_to_exec_file,
65b07ddc
DT
555 hppa_acknowledge_forked_child, hppa_create_catch_fork_hook,
556 hppa_create_catch_vfork_hook, hppa_target_has_forked,
557 hppa_target_has_vforked, hppa_require_attach,
558 hppa_require_detach, process_wait
b5c7e122 559 (unwind_table_entry): Added comments to describe struct fields.
65b07ddc 560
b5c7e122 561 * config/pa/tm-hppah.h (somsolib.h): Include it.
65b07ddc
DT
562
563 * config/pa/tm-hppah.h:
b5c7e122
SS
564 (CHILD_ENABLE_EXCEPTION_CALLBACK): New define
565 (CHILD_GET_CURRENT_EXCEPTION_EVENT): New define
65b07ddc
DT
566
567 * configure.host (hppa-*-hpux10.20, hppa-*-hpux11.0*): New configs.
568
569 * configure.in (AC_CHECK_HEADERS): Add check for term.h.
570
571 * configure.in: Add an --enable-tui argument.
572
573 * configure.in: Construct tui/Makefile from tui/Makefile.in.
574
575 * configure.in: Use AM_PROG_CC_STDC. If we have the GUI, then we
576 need this to process libgui.h.
577
b5c7e122 578 * convex-tdep.c (decout): Change FILE to GDB_FILE.
65b07ddc 579
b5c7e122
SS
580 * corefile.c: Include objfiles.h, symfile.h.
581 (core_file_command): Attempt to determine the name of the symbol
582 file from the core file.
583 (read_memory_string): New function.
65b07ddc 584
b5c7e122
SS
585 * corefile.c (core_file_command): Temporary hack to make non-hpux
586 work. For, non-hpux, t->to_core_file_to_sym_file does not have a
587 reasonable value. No target_ops vector on the stack gives it a
588 non-zero value. fix later.
589
590 * corelow.c (core_file_to_sym_file): Added new local variable,
591 failing command, and do some explicit type castings.
592 (core_ops): Add three new fields: to_has_syscall_event,
65b07ddc
DT
593 to_enable_exception_callback, to_get_current_exception_event.
594 Necessary since we still have oldstyle initialization in
595 this file
596
b5c7e122
SS
597 * corelow.c: Include unistd.h
598 (core_file_to_sym_file): New function
599 (core_file_thread_alive): New function
600 (core_ops): Added new target ops vector fields. see below. And
65b07ddc
DT
601 yes we definitiely need to initialize them here, as long as
602 we're using static initialization.
603
b5c7e122
SS
604 * cxux-nat.c (add_shared_symbol_files): Additonal params for calls
605 to symbol_file_add.
65b07ddc 606
b5c7e122 607 * defs.h (gdb_file_isatty): New function decl.
65b07ddc 608
b5c7e122 609 * defs.h (GDB_FILE): If TUI is defined, define a structure rather
65b07ddc 610 than making this an alias for FILE.
b5c7e122 611 (gdb_stdout, gdb_stderr): If TUI is defined, then define these
65b07ddc
DT
612 as pointers to variables of type GDB_FILE rather than making them
613 be aliases for stdout and stderr.
614
b5c7e122 615 * defs.h (TUIDO): Add definition conditionalized on definition
65b07ddc
DT
616 (or lack thereof) of TUI.
617
b5c7e122
SS
618 * defs.h (command_class): Add two additional values.
619 (precision_type): New enum.
65b07ddc 620
b5c7e122 621 * defs.h (gdb_fclose): Add declaration.
65b07ddc 622
b5c7e122 623 * defs.h (store_address): Change prototype to match function.
65b07ddc 624
b5c7e122 625 * defs.h (tui_version, xdb_commands, dbx_commands): Add decl's.
65b07ddc 626
b5c7e122 627 * defs.h (gdb_file_deallocate): New function declaration
65b07ddc
DT
628
629 * defs.h:
b5c7e122 630 (streamtype): New enumerated type to distinguish between
65b07ddc 631 output to a FILE and output to a buffer.
b5c7e122
SS
632 (tui_stream): New struct type, named GDB_FILE. Contains,
633 streamtype, FILE, buffer, and bufferlength fields.
634 (gdb_stdout): Of type GDB_FILE, will pass this around gdb
65b07ddc 635 rather than stdout.
b5c7e122 636 (gdb_stderr): Of type GDB_FILE, will pass this around gdb
65b07ddc 637 rather than stderr.
b5c7e122 638 (fputs_unfiltered_hook): Change stream parameter from FILE to
65b07ddc 639 GDB_FILE
b5c7e122
SS
640 (flush_hook): Change stream parameter from FILE to GDB_FILE
641 (gdb_fclose): Fix declaration for gdb_fclose; parameter is now of
65b07ddc 642 type GDB_FILE **
b5c7e122 643 (gdb_file_adjust_strbuf): New function declaration. function lives in
65b07ddc 644 utils.c.
b5c7e122 645 (gdb_file_init_astring): New function declaration. function lives
65b07ddc 646 in utils.c
b5c7e122 647 (gdb_file_get_strbuf): New function declaration. function lives
65b07ddc 648 in utils.c
b5c7e122
SS
649
650 * defs.h: Additional include files included when TUI is defined.
65b07ddc 651
b5c7e122 652 * defs.h: Funct decl source_full_path_of.
65b07ddc 653
b5c7e122 654 * demangle.c: Add HP_DEMANGLING_STYLE_STRING.
65b07ddc 655
b5c7e122
SS
656 * demangle.c: Added new demangling style, EDG_DEMANGLING_STYLE_STRING,
657 to the demanglers structure. This is for support of
65b07ddc
DT
658 Kuck & Assoc.'s changes for demangling.
659
660 * eval.c (evaluate_subexp_standard): C++ member function changes.
661
b5c7e122 662 * eval.c (evaluate_subexp_standard): Verify TYPE_TARGET_TYPE is
65b07ddc
DT
663 non NULL before dereferencing it.
664
b5c7e122 665 * eval.c (evaluate_subexp_standard): With HP/aCC compiler it is not possible
65b07ddc
DT
666 to perform inferior calls via function pointers.
667 Resolve calls to overloaded functions using find_overload_match.
668 We cannot handle HP/aCC pointers to member functions.
669 Deal with HP/aCC pointers to members in various kind of expressions.
670
b5c7e122
SS
671 * f-lang.c (f_printchar): Change FILE to GDB_FILE.
672 (f_printstr): Ditto.
673 (emit_char): Ditto.
65b07ddc 674
b5c7e122 675 * f-lang.c (f_printstr): Change stdout to gdb_stdout.
65b07ddc 676
b5c7e122
SS
677 * f-typeprint.c (f_print_type): Change FILE to GDB_FILE.
678 (f_type_print_varspec_prefix): Ditto.
679 (f_type_print_args): Ditto.
680 (f_type_print_varspec_suffix): Ditto.
681 (print_equivalent_f77_float_type): Ditto.
682 (f_type_print_base): Ditto.
683
684 * findvar.c (): Hp snapshot 3 changes. (extract_address): Coerce
65b07ddc 685 return value from extract_unsigned_integer to CORE_ADDR.
b5c7e122 686 (store_address): Change val from CORE_ADDR to LONGEST; changes to
65b07ddc 687 support machines where CORE_ADDR and LONGEST are different sizes.
b5c7e122
SS
688 (get_saved_register): Coerce arg to store_address to LONGEST.
689 (read_relative_register_raw_bytes): Cast last arg to
690 store_address to LONGEST. (read_register): Cast return from
691 extract_address to a CORE_ADDR. (write_register_pid): Change val
692 from LONGEST to CORE_ADDR. (read_pc_pid): Save and restore
693 inferior_pid if necessary. (write_pc_pid): Ditto.
694 (read_var_value): Cast arg to store_address.
695
696 * findvar.c (read_relative_register_raw_bytes_for_frame): New
65b07ddc 697 function.
b5c7e122 698 (read_relative_register_raw_bytes): Call it.
65b07ddc 699
b5c7e122 700 * findvar.c (symbol_read_needs_frame): Handle LOC_THREAD_LOCAL_STATIC and
65b07ddc
DT
701 LOC_INDIRECT.
702
b5c7e122 703 * fork-child.c (fork_inferior): Chenge fifth parameter to be a
65b07ddc
DT
704 function returning void.
705
b5c7e122 706 * fork-child.c (fork_inferior): Delete unused variable f.
65b07ddc
DT
707
708 * fork-child.c:
b5c7e122
SS
709 (Startup_WITH_SHELL): New macro -- interim fix for a bug
710 (breakup_args): New function -- breaks up an argument string into
65b07ddc 711 an argument suitable for passing into execvp().
b5c7e122 712 (fork_inferior): Handling problems with starting up gdb with a shell.
65b07ddc
DT
713 -- again, this appears to be an interim fix.
714
715 * fork-child.c:
716 (fork_inferior): Added a comment
b5c7e122
SS
717 (clone_and_follow_inferior): New function.
718 (startup_inferior): Minor formatting changes.
65b07ddc
DT
719
720 * fork-child.c:
b5c7e122 721 (fork_inferior): Hp change is problematic. The -f option has
65b07ddc
DT
722 different meanings for different shells. It is particularly
723 inappropriate for bourne shells.
724
725 * fork-child.c:
b5c7e122 726 (fork_inferior): Added new parameter, pre_trace_fun.
65b07ddc
DT
727 pre_trace_fun is a function pointer. For some targets,
728 like HPUX, this function gets called to prepare for forking
729 a child.
730
731 * fork-child.c:
b5c7e122 732 (fork_inferior): Fixed call to init_trace_fun
65b07ddc
DT
733
734 * fork-child.c:
b5c7e122 735 Moved definition of STARTUP_WITH_SHELL to inferior.h
65b07ddc
DT
736 Added a DEBUGGING macro. Currently set to 0. May remove
737 later.
b5c7e122 738 breakup_args: Add DEBUGGING ifdefs. more sophisticated
65b07ddc 739 parsing to break up args.
b5c7e122 740 (fork_inferior): Rename kshell variable to shell. new local
65b07ddc
DT
741 variable, tryname. Make use of STARTUP_WITH_SHELL macro.
742 More error processing if starting up with a shell.
b5c7e122 743 (startup_inferior): Distinguish between starting up with a shell
65b07ddc
DT
744 and not doing so.
745
746 * gdbthread.h:
747 Declarations for load_infrun_state and save_infrun_state take
748 an additional parameter.
749
750 * gdbthread.h: Note that sometime between gdb 4.16 and 4.17,
751 thread.h was renamed gdbthread.h
b5c7e122
SS
752 (load_infrun_state): Additional parameters
753 (store_infrun_state): Additional parameters
65b07ddc 754
b5c7e122 755 * gdbthread.h: Include breakpoint.h
65b07ddc 756
b5c7e122
SS
757 * hp-psymtab-read.c (QUICK_LOOK_UP): Redefine to be 0.
758 (hpread_build_psymtabs): Deal with enums.
759 (hpread_start_psymtab): Include section offset.
760 (hpread_end_psymtab): Take care of offset.
65b07ddc 761
b5c7e122
SS
762 * hp-psymtab-read.c (TRUE): Define.
763 (FALSE): Define.
764 (file_exists): New function. Checks for existance of file.
765 (hpread_pxdb_needed): Rewrite.
766 (hpread_quick_traverse): Use correct demangling style.
65b07ddc 767 Handle F77 case.
b5c7e122
SS
768 (hpread_get_header): Rewrite.
769 (hpread_get_textlow): Add support for DOC_FUNCTION.
770 (hpread_build_psymtabs): Make sure we do the right thing
65b07ddc
DT
771 for pxdb and F77.
772
b5c7e122 773 * hp-psymtab-read.c (hpread_pxdb_check): Change parenthesis positions.
65b07ddc 774
b5c7e122 775 * hp-psymtab-read.c (hpread_quick_traverse): Compare CORE_ADDR
65b07ddc
DT
776 variable end_addr to 0 instaed of NULL to get rif of gcc warning.
777
778 * hp-psymtab-read.c:
b5c7e122 779 (Hpread_get_textlow): Added param to function
65b07ddc
DT
780 Defined convennience macros and some datatypes and variables for
781 processing the quick lookup-tables. Looks like the code existed
782 before, but has been munged.
783 (hpread_pxdb_needed): Major rearrangements of code. Additional local
b5c7e122 784 variables. Also, more extensive checking for various scenarios:
65b07ddc
DT
785 debug info for optimized code vs. unoptimized code, pxdb has been
786 run vs. pxdb has not been run.
b5c7e122
SS
787 (VALID_FILE): New macro
788 (VALID_MODULE): New macro
789 (VALID_PROC): New macro
790 (VALID_CLASS): New macro
791 (FILE_START): New macro
792 (MODULE_START): New macro
793 (PROC_START): New macro
794 (FILE_END): New macro
795 (MODULE_END): New macro
796 (PROC_END): New macro
797 (FILE_ISYM): New macro
798 (MODULE_ISYM): New macro
799 (PROC_ISYM): New macro
800 (VALID_CURR_FILE): New macro
801 (VALID_CURR_MODULE): New macro
802 (VALID_CURR_PROC): New macro
803 (VALID_CURR_CLASS): New macro
804 (CURR_FILE_START): New macro
805 (CURR_MODULE_START): New macro
806 (CURR_PROC_END): New macro
807 (CURR_FILE_ISYM): New macro
808 (CURR_MODULE_ISYM): New macro
809 (CURR_PROC_ISYM): New macro
810 (TELL_OBJFILE): New macro
811 (pst_syms_struct): New typedef to keep track of the start/end symbol
65b07ddc 812 table (LNTT) indices of psymtabs created so far.
b5c7e122
SS
813 (pst_syms_count): New variable
814 (pst_syms_size): New variable
815 (told_objfile): New variable
816 (init_pst_syms): New function. sets up psymtab symbol index stuff.
817 (clear_pst_syms): New function. clean up psymtab symbol index stuff.
818 (record_pst_syms): New function. add info about newest psymtab to symbol
65b07ddc 819 index table.
b5c7e122
SS
820 (find_next_pst_start): New function. Find a suitable symbol table index.
821 (find_next_file_isym): New function
822 (find_next_proc_isym): New function
823 (find_next_module_isym): New function
824 (scan_procs): New function. Scan and record partial symbols for all
65b07ddc 825 functions starting from specified index and in a specified code range.
b5c7e122 826 (hpread_quick_traverse: Major rearrangement of code. The function
65b07ddc
DT
827 now uses all the nifty macros. There are some new local variables.
828 Check for EDG_DEMANGLING style. ifdef out some code for handling F77.
829 Previously, the function looped over all the modules in the table.
830 Now, the function loops over all the files, modules, and procedures.
831 With HP aCC and CTTI, it is possible for a compiled object to have a
832 file and no module.
833 (hpread_build_psymtabs): Added a section of code ifdefed by
834 QUICK_LOOK_UP. It check to see whether or not there are any globals
835 in the executable. Fix number of params to hpread_start_psymtab call.
836 Some changes to the way DNTT_TYPE_MODULE is handled.
b5c7e122 837 (hpread_get_textlow): Change in signature, minor code changes. The
65b07ddc
DT
838 function finds the low address associated with a specified symbol.
839 In looking for the address for the symbol avoid going of the end of
840 the LNTT file.
841
b5c7e122 842 * hp-psymtab-read.c: Change TRUE to 1 and FALSE to 0. Do some
65b07ddc
DT
843 reformatting.
844
b5c7e122
SS
845 * hp-psymtab-read.c: Include demangle.h
846 (trans_lang): New function to let gdb know the correct language.
65b07ddc
DT
847 (hpread_quick_traverse): Use ARM style demangling.
848 Demangle procedures names.
849 Use gdb language names instead of hp language names.
850 Add symbol to list using its demangled name.
851
b5c7e122
SS
852 * hp-psymtab-read.c: New file.
853 (hpread_call_pxdb): New function. Call PXDB to process our file.
854 (hpread_pxdb_check): New function. Return TRUE if the file needs
65b07ddc
DT
855 pre-processing by PXDB and we have thus called PXDB to do this
856 processing and the file needs to be re-loaded.
b5c7e122 857 (hpread_quick_traverse): New function. Traverse the quick look-up
65b07ddc 858 tables, building a set of psymtabs.
b5c7e122 859 (hpread_get_header): New function. Get appropriate header from obj
65b07ddc 860 file, based on pxdb type
b5c7e122
SS
861 (hpread_symfile_init): No change from hpread.c
862 (hpread_build_psymtabs): If there are quick lookup tables, read those,
65b07ddc 863 then scan the global section LNTT. Otherwise, just scan the whole LNTT.
b5c7e122
SS
864 Changed: Add a global function entry to the global partial symbol list.
865 Handle end of symbols, for QLT case.
65b07ddc
DT
866 In case of TAGDEF, if it is a class or a template, add the name to the
867 var_namespace, so that it is known as a type by gdb.
868 In case of CONSTANT, and it is global, add it to the globals.
b5c7e122
SS
869 (hpread_symfile_finish): No change from hpread.c
870 (hpread_get_lntt): Make it not static
871 (hpread_get_gntt): No change from hpread.c
872 (hpread_get_slt): Make it not static
873 (hpread_get_textlow): No change from hpread.c
874 (hpread_start_psymtab): No change from hpread.c
875 (hpread_end_psymtab): No change from hpread.c
876
877 * hp-symtab-read.c (hpread_get_scope_start): Renamed. It was
65b07ddc 878 hpread_get_depth.
b5c7e122 879 (hpread_type_translate): Distinguish between signed and unsigned char
65b07ddc 880 types.
b5c7e122
SS
881 (hpread_psymtab_to_symtab): Set flag for hp compilation.
882 (hpread_read_function_type): Append symbols for parameters to local
65b07ddc
DT
883 list as well as to the global list. Get the parameters types from the
884 local list instead of the global list.
b5c7e122 885 (hpread_read_struct_type): Add new field num_fn_fields to next_fn_field
65b07ddc 886 structure. Rewrite handling of templates
b5c7e122
SS
887 (hpread_type_lookup): Change handling of dntt_type_modifier.
888 (hpread_process_one_debug_symbol): Call hpread_get_scope_start instea
65b07ddc 889 of hpread_get_depth. Handle enum as well.
b5c7e122 890 (hpread_get_scope_depth): New function. Get nesting depth for a
65b07ddc
DT
891 DNTT entry.
892
b5c7e122 893 * hp-symtab-read.c (hpread_psymtab_to_symtab): Set
65b07ddc
DT
894 processing_gcc_compilation to 0.
895
b5c7e122 896 * hp-symtab-read.c (hpread_psymtab_to_symtab_1): Change stdout to
65b07ddc 897 gdb_stdout; change fflush to gdb_flush.
b5c7e122 898 (hpread_psymtab_to_symtab): Change fflush to gdb_flush.
65b07ddc 899
b5c7e122
SS
900 * hp-symtab-read.c (hpread_read_enum_type): Declare variable.
901 (hpread_read_struct_type): Eliminate references
65b07ddc
DT
902 to 'args' member of fn_field.
903
b5c7e122 904 * hp-symtab-read.c (hpread_read_struct_type): A static member
65b07ddc
DT
905 is now indicated by the bitsize field, not the bitpos.
906 Initialize physname to empty.
b5c7e122 907 (fix_static_member_physnames): Use new macros to deal with
65b07ddc
DT
908 physnames.
909
b5c7e122 910 * hp-symtab-read.c (hpread_read_struct_type): Change references
65b07ddc
DT
911 to bitpos member of struct field to use the FIELD_BITPOS macro.
912
b5c7e122 913 * hp-symtab-read.c (hpread_read_struct_type): Comment out reference to
65b07ddc
DT
914 obsolete field fn_field.args.
915 Add struct complaint definitions for complaints.
b5c7e122
SS
916 (hpread_read_struct_type): Change call to complain.
917 (hpread_read_array_type): Change call to complain.
918 (hpread_type_lookup): Change call to complain.
919 (hpread_process_one_debug_symbol): Change calls to complain.
920 (hpread_type_translate): Change calls to complain.
65b07ddc 921
b5c7e122 922 * hp-symtab-read.c (hpread_read_struct_type): Make sure bitvector
65b07ddc
DT
923 has been allocated before calling has_vtable.
924
b5c7e122 925 * hp-symtab-read.c (hpread_read_struct_type): Revert change,
65b07ddc
DT
926 just check for vtable without checking for bitvectors too.
927
928 * hp-symtab-read.c:
b5c7e122 929 (Hpread_expand_symtab): Change name of local variable from
65b07ddc
DT
930 at_end_of_module to at_module_boundary.
931 Also, if demangling style is already EDG, do not reset it
932 to the HP demangling style.
933 Change at_end_of_module param to hpread_process_one_debug_symbol
934 call to at_module_boundary.
935 No longer break out of loop when reach end of module. With CTTI,
936 the compiler can generate function symbols which are not in
937 any module. Typically they show up after the end of one
938 module and before the start of the next module.
b5c7e122 939 (hpread_read_struct_type): Check that the debug info for
65b07ddc 940 a TEMPLATE_ARG is correct.
b5c7e122 941 (hpread_process_one_debug_symbol): Change name of at_end_of_module_p
65b07ddc
DT
942 param to at_module_boundary_p.
943 Also set *at_module_boundary_p = -1 if missing a module end and set
944 it to 1 when finished expanding the debug info.
945 Handle TLS variable.
946
b5c7e122
SS
947 * hp-symtab-read.c: Include defs.h, symtab.h, gdbtypes.h, complaints.h.
948 (fixup_class): New static variable.
949 (fixup_method): New static variable.
950 (hpread_get_location): Rewrite.
951 (hpread_has_name): Add cases for DNTT_TYPE_DOC_FUNCTION and
65b07ddc 952 DNTT_TYPE_DOC_MEMFUNC
b5c7e122 953 (hpread_expand_symtab): Use HP demangling style.
65b07ddc 954 Set hp_som_som_object_present to 1.
b5c7e122 955 (hpread_type_translate): Error out if not immediate. Issue warning
65b07ddc 956 if there is an unhandled type code.
b5c7e122
SS
957 (error_in_hpread_type_translate_complaint): Remove this structure.
958 (hpread_read_enum_type): Don't assume size of enum is always 4 bytes.
959 (hpread_read_function_type): Add new parameter to indicate a new block.
65b07ddc
DT
960 Do not add the parameters to the symbol list.
961 If the type was read in earlier, do not modify the type structure.
962 If we are creating a new block, set the local symbol list to be the
963 param list.
964 Need to mark this type as preprocessed.
b5c7e122 965 (hpread_read_doc_function_type): New function. Read and internalize
65b07ddc 966 a native DOC function debug symbol.
b5c7e122 967 (hpread_read_struct_type): A method can be of type doc_function and
65b07ddc
DT
968 doc_memfunc too.
969 Handle case in which a method is read before its class. Deal with
970 incomplete method types.
971 Handle cases in which HP/aCC compiler creates operator names w/o
972 the 'operator' keyword. Rewrite the loop over the fileds.
b5c7e122 973 (fix_static_member_physnames): New function. Adjust the physnames for
65b07ddc 974 each static member.
b5c7e122 975 (fixup_class_method_type): New function. Fix-up the type structure for a
65b07ddc 976 class.
b5c7e122
SS
977 (hpread_read_array_type): Cahnge complaint to warning.
978 (hpread_type_lookup): Add case for DNTT_TYPE_DOC_FUNCTION.
65b07ddc
DT
979 For structures/classes set static member to point to strings with full
980 names.
981 Change calls to hpread_read_function_type to pass extra parameter.
b5c7e122
SS
982 (hpread_record_lines): Handle case for SLT_NORMAL_OFFSET.
983 (class_of): New function. Given a function "f" which is a member of a class,
65b07ddc 984 find the classname that it is a member of.
b5c7e122 985 (hpread_process_one_debug_symbol): Deal with possible alias field from the
65b07ddc
DT
986 som record for the Function or Entry type.
987 Do the demangling ourselves if the gdb demangler failed.
988 Add support for DOC functions.
989 For function types, add parameters to local list.
b5c7e122
SS
990 (hpread_get_scope_depth): Make this function a no-op.
991 (hpread_adjust_bitoffsets): New function. Adjust the bitoffsets for all
65b07ddc 992 fields of an anonymous union.
b5c7e122 993 (hpread_get_next_skip_over_anon_unions): New function. Skip over anonymous
65b07ddc
DT
994 unions.
995
b5c7e122 996 * hp-symtab-read.c: Include demangle.h
65b07ddc
DT
997 (hpread_expand_symtab): Ensure we are using ARM-style demangling.
998 (hpread_process_one_debug_symbol): Set the mangled and demangled
999 names for functions.
1000 Record the class name to generate the demangled names of member
1001 functions.
1002
b5c7e122
SS
1003 * hp-symtab-read.c: New file.
1004 (hpread_get_depth): No change from hpread.c
1005 (hpread_get_line): No change from hpread.c
1006 (hpread_get_location): No change from hpread.c
1007 (hpread_has_name): Make it not static. Return 1 for DNTT_TYPE_BLOCKDATA
65b07ddc
DT
1008 and DNTT_TYPE_MEMFUNC. Return 0 for CLASS_SCOPE, REFERENCE,PTRMEM,
1009 PTRMEMFUNC, CLASS, GENFIELD, VFUNC, MEMACCESS, INHERITANCE,
1010 FRIEND_CLASS, FRIEND_FUNC, MODIFIER, OBJECT_ID, TEMPLATE, TEMPLATE_ARG,
1011 FUNC_TEMPLATE, LINK.
b5c7e122
SS
1012 (hpread_psymtab_to_symtab_1): No changes from hpread.c
1013 (hpread_psymtab_to_symtab): Make it a static function
1014 (hpread_expand_symtab): Modified
1015 (hpread_type_translate): If not typep.dntti.immediate do not abort,
65b07ddc 1016 but complain and return. Same for default action. Handle more HP_TYPEs.
b5c7e122
SS
1017 (hpread_lookup_type): Initially allocate a correct-size type-vector.
1018 (hpread_alloc_type): Reset type_addr only if a type was allocated.
1019 (hpread_read_enum_type): If this has already a type associated, return.
1020 (hpread_read_function_type): Do different things depending on whether
65b07ddc
DT
1021 function is a MEMFUNC, a TEMPLATE, a FUNCTION som record.
1022 Do not use the LOC_REGPARM_ADDR symbol class.
b5c7e122 1023 (hpread_read_struct_type): Handle classes and templates too. Major
65b07ddc 1024 rewrite.
b5c7e122
SS
1025 (hpread_get_nth_template_arg): New function.
1026 (hpread_read_templ_arg_type): New function.
1027 (hpread_read_set_type): No change from hpread.c
1028 (hpread_read_array_type): Modified
1029 (hpread_read_subrange_type): Add handling of more DNTT entries.
65b07ddc 1030 added support for templates, classes, references, virtual functions.
b5c7e122
SS
1031 (hpread_type_lookup): Handle DNNT_TYPE_MODULE.
1032 (hpread_record_lines): No changes from hpread.c
65b07ddc
DT
1033 (hpread_process_one_debug_symbol): Handle WITH, COMMON,
1034 CLASS_SCOPE. Expand TAGDEF case to handle classes and templates.
1035
b5c7e122
SS
1036 * hppa-tdep.c (pa_do_strcat_registers_info): Has a new parameter,
1037 precision, which is passed into the call to pa_strcat_fp_reg to
1038 indicate whether to display the floating point registers using
1039 single or double preceision.
65b07ddc
DT
1040 (pa_strcat_registers): Introduce local variable, precision, and
1041 pass it into call to pa_strcat_fp_reg.
1042 (pa_strcat_fp_reg): Modified function. New parameter, precision,
1043 used by function to decide whether to use single or double
1044 precision. Also added the code to put a double precision value
1045 into a buffer.
1046
b5c7e122 1047 * hppa-tdep.c: Add'l includes <machine/save_state.h>,
65b07ddc 1048 <unistd.h>, declare pa_register_look_aside, define is_pa_2.
b5c7e122
SS
1049 (rp_saved): Check for where to read the return pointer from.
1050 (pa_do_registers_info): Handle is_pa_2. (pa_register_look_aside):
1051 new function. (pa_print_registers): Handle is_pa_2.
1052 (in_solib_call_trampoline): Handle a compiler/linker error.
1053 (skip_trampoline_code): Changes to some masks used in examining
1054 instructions. (inst_saves_fr): Test for FSTWS instruction.
1055 (skip_prologue): Renamed to skip_prologue_hard_way.
1056 (after_prologue): New function. (skip_prologue): New function.
1057
1058 * hppa-tdep.c (after_prologue): If f is NULL, don't dereference
65b07ddc
DT
1059 it.
1060
b5c7e122 1061 * hppa-tdep.c (after_prologue): If no debug info, return zero
65b07ddc
DT
1062 telling caller that we need to find the end of the prologue via
1063 the hard way (instruction examination).
1064
b5c7e122 1065 * hppa-tdep.c (find_unwind_entry): Avoid dereferencing a null
65b07ddc
DT
1066 pointer.
1067
b5c7e122
SS
1068 * hppa-tdep.c (hppa_pid_to_exec_file): Deleted -- no longer used.
1069
1070 * hppa-tdep.c (hppa_prepare_to_proceeed): Add prototype.
1071 (read_unwind_info): Purecov comments, bug fixes.
1072 (find_unwind_entry): Purecov comments, bug fixes.
1073 (find_stub_with_shl_get): Purecov comments.
1074 (frame_chain): Additional parens.
1075 (hppa_push_arguments): Changes to commented out version of routine.
1076 (hppa_fix_call_dummy): Purecov comments, fix location of end.o.
1077 (in_solib_call_trampoline): Purecov comments.
1078 (in_solib_return_trampoline): Purecov comments.
1079 (setup_d_pid_in_inferior): Fix location of end.o.
1080 (initialize_hp_cxx_exception_support): Fix location of end.o.
1081 (child_enable_exception_callback): Purecov comments.
65b07ddc
DT
1082
1083 * hppa-tdep.c:
b5c7e122 1084 (Pa_do_strcat_registers_info): New routine. called by
65b07ddc
DT
1085 tui/tuiRegs.c:_tuiRegisterFormat to place a register name
1086 and value into a string buffer. Interface may change in
1087 future. Checking this in so that we have something
1088 functional for HP.
b5c7e122 1089 (pa_strcat_registers): New routine, called by
65b07ddc
DT
1090 pa_do_strcat_registers_info. Does same thing as
1091 pa_print_registers except it takes a stream parameter.
1092 This routine should disappear in future. Checking in
1093 so that we have something functional to give HP
b5c7e122 1094 (pa_strcat_fp_reg): New routine, called by
65b07ddc
DT
1095 pa_do_strcat_registers_info and pa_strvat_registers
1096 to place a floating point register name and value into
1097 a buffer. This interface may change in future.
1098 Checking in so that we have something functional to give HP.
1099
b5c7e122
SS
1100 * hppa-tdep.c: (Pa_print_fp_reg): Change prototype to match def'n.
1101 (pa_register_look_aside): Fix comment immediately before function.
65b07ddc 1102
b5c7e122 1103 * hppa-tdep.c: Changes to better support stack unwinding,
65b07ddc
DT
1104 reading and writing registers for HPUX. The HP folks had
1105 an advantage ... access to a runtime architecture spec ;-}.
b5c7e122
SS
1106 New includes: Ptrace.h
1107 (internalize_unwinds): Initialize new fields in table.
1108 (read_unwind_info): Entries in the table are now more complex
65b07ddc
DT
1109 structures. References of the form ...->table[index].stub_type
1110 are now ...->table[index].stub_unwind.stub_type.
b5c7e122
SS
1111 (find_proc_framesize): Added a check for pc == 0.
1112 (rp_saved): Entries in the table are now more complex
65b07ddc
DT
1113 structures. References of the form ...->table[index].stub_type
1114 are now ...->table[index].stub_unwind.stub_type.
b5c7e122 1115 (frameless_function_invocation): Stub_type becomes
65b07ddc 1116 stub_unwind.stub_type
b5c7e122
SS
1117 (saved_pc_after_call): Stub_type becomes stub_unwind.stub_type
1118 (hppa_frame_saved_pc): Stub_type becomes stub_unwind.stub_type
1119 (frame_chain_valid): Stub_type becomes stub_unwind.stub_type
1120 (hppa_call_dummy): Stub_type becomes stub_unwind.stub_type
1121 (pa_print_fp_reg): Additional params to call val_print
1122 (in_solib_call_trampoline): Stub_type becomes stub_unwind.stub_type
1123 (in_solib_return_trampoline): Stub_type becomes stub_unwind.stub_typ
1124 (skip_trampoline_code): Additional code to handle external
65b07ddc 1125 dyncalls. Also stub_type becomes stub_unwind.stub_type
b5c7e122 1126 (hppa_pid_to_exec_file): New funct. FOr HPUX 10.0 and beyond there
65b07ddc
DT
1127 is an explicit ptrace request for getting the pathname associated
1128 with a process id (pid).
1129
b5c7e122
SS
1130 * hppa-tdep.c: Fix for gcc compile on HPUX
1131 (hppa_pid_to_exec_file): Remove unwanted param from
65b07ddc
DT
1132 call to call_ptrace. Note, hppa_pid_to_exec_file goes
1133 away in subsequent hp snapshots.
1134
b5c7e122 1135 * hppa-tdep.c: Include bfd.h.
65b07ddc 1136 include dl.h
b5c7e122
SS
1137 (args_for_find_stub): New structure.
1138 (find_unwind_entry): Deal with null input pc value.
1139 (rp_saved): Ditto.
65b07ddc 1140 For the import stub, return -24 always.
b5c7e122
SS
1141 (hppa_frame_saved_pc): Save old pc value, to detect we are in a loop.
1142 (init_extra_frame_info): Use TARGET_READ_FP.
1143 (frame_chain): Include thread support.
65b07ddc
DT
1144 If the caller's pc is zero, we loose and return, just like stack bottom.
1145 Disable warning about being unable to find unwind info.
b5c7e122
SS
1146 (hppa_push_arguments): Rewrite.
1147 (hppa_value_returned_from_stack): New function. Handles returning a value
65b07ddc 1148 larger that 64 bits, stored on the stack.
b5c7e122
SS
1149 (find_stub_with_shl_get): New function. To look up symbols in shlibs.
1150 (cover_find_stub_with_shl_get): New function. Cover routine for
65b07ddc 1151 find_stub_with_shl_get to pass to catch_errors.
b5c7e122
SS
1152 (hppa_fix_call_dummy): Comment out old stub mechanism. Rewrite using dyncall.
1153 (target_read_fp): New function.
1154 (pa_do_registers_info): Floating point registers start at FP4.
1155 (pa_print_registers): Use FP4_REGNUM instead of 72.
1156 (skip_trampoline_code): Do machine instruction matching for PA2.0.
1157 (setup_d_pid_in_inferior): New function. Exception handling support.
1158 (initialize_hp_cxx_exception_support): Ditto.
1159 (child_enable_exception_callback): Ditto.
1160 (child_get_current_exception_event): Ditto.
65b07ddc
DT
1161
1162 * hppah-nat.c (child_post_wait, child_post_follow_vfork,
b5c7e122 1163 child_post_follow_inferior_by_clone): New functions.
65b07ddc 1164
b5c7e122 1165 * hppah-nat.c (child_xfer_memory): Make sure the call to ptrace really
65b07ddc 1166 fails before we give up.
b5c7e122
SS
1167 (hppa_pid_to_str): New function. Format a process id.
1168 (hppa_tid_to_str): New function. Format a thread id.
65b07ddc 1169
b5c7e122
SS
1170 * hppah-nat.c (child_xfer_memory): Use xmalloc, not alloca.
1171 (child_post_wait): Delete.
1172 (child_post_follow_vfork): Delete decl of child_ops; delete
65b07ddc
DT
1173 large chunks of function -- let it be handled by the normal
1174 mechanism that notices and handles exec events, in resume().
1175
b5c7e122 1176 * hppah-nat.c (require_notification_of_exec_events): New function;
65b07ddc
DT
1177 just notify of exec events, not all events, and just the specified
1178 pid, don't include it's children (10.20 version).
b5c7e122 1179 (child_acknowledge_created_inferior): Call new function
65b07ddc
DT
1180 require_notification_of_exec_events instead of
1181 require_notification_of_events.
1182
1183 * hppah-nat.c [!GDB_NATIVE_HPUX_11]: Move HPUX 10.x-specific
1184 support code here from infptrace.c.
1185
b5c7e122 1186 * hppah-nat.c: Removed #define ptrace call_ptrace
65b07ddc 1187 replaced all calls to ptrace with calls to call_ptrace
b5c7e122 1188 (parent_attach_all): Removed call to ptrace
65b07ddc 1189
b5c7e122 1190 * hpread.c (hpread_psymtab_to_symtab_1): Change fflush to
65b07ddc 1191 gdb_flush; change stdout to gdb_stdout.
b5c7e122 1192 (hpread_psymtab_to_symtab): Change fflush to gdb_flush.
65b07ddc 1193
b5c7e122 1194 * hpread.h: New file. Includes all includes, struct defs, defines
65b07ddc
DT
1195 from hpread.c.
1196
1197 * infcmd.c
b5c7e122 1198 (attach_command): New local variable, exec_file, added code to
65b07ddc
DT
1199 determine exec_file from pid if exec_file is not already known,
1200 call new target operation, target_post_attach -- a no-op unless
1201 on HPUXHPPA
b5c7e122 1202 (detach_command): After detaching, do a SOLIB_RESTART
65b07ddc 1203
b5c7e122 1204 * infcmd.c (objfiles.h): Fix typo on include line.
65b07ddc 1205
b5c7e122 1206 * infcmd.c (run_command): Only call SOLIB_RESTART if it's
65b07ddc 1207 defined.
b5c7e122 1208 (detach_command): Ditto.
65b07ddc
DT
1209
1210 * infcmd.c:
b5c7e122 1211 (run_stack_dummy): Add calls to
65b07ddc
DT
1212 disable_watchpoints_before_interactive_call_start and
1213 enable_watchpoints_after_interactive_call_stops
b5c7e122 1214 (finish_command): Alter code handling the evaluation and printing
65b07ddc 1215 of the target function's return value.
b5c7e122 1216 (attach_command): When given a pid, but no exec file, try to determine
65b07ddc
DT
1217 the exec file from the process. If the process does not record a
1218 full path name, try to qualify the filename against the source path.
b5c7e122 1219 (_initialize_infcmd): Add some verbiage about how to use the attach command
65b07ddc
DT
1220
1221 * infcmd.c:
1222 Include objfiles.h
1223 (run_command): If program has already been started, and decide
1224 to restart it, the kill the target, fluch the caches,
1225 call init_wait_for_inferior. Also purge old solib objfiles.
1226
b5c7e122 1227 * infcmd.c: Cahnged calls to val_print, using a new macro,
65b07ddc 1228 SOLIB_RESTART
b5c7e122
SS
1229 (run_command): Calls SOLIB_RESTART
1230 (do_registers_info): Changed calls to val_print
65b07ddc 1231
b5c7e122 1232 * infcmd.c: Made the symfile.h include preceed the
65b07ddc
DT
1233 objfiles.h include. The other ordering caused a
1234 compile problem (incompletely defined types).
1235
1236 * inferior.h (REQUIRE_DETACH): Fix default definition.
1237 * inftarg.c (child_post_attach): Fix declaration, make static.
1238 (proc_wait): Make globally visible.
1239 (child_insert_fork_catchpoint, etc): Fix return type.
1240
b5c7e122
SS
1241 * inferior.h (STARTUP_WITH_SHELL): New define.
1242 (START_INFERIOR_TRAPS_EXPECTED): New define
65b07ddc 1243
b5c7e122 1244 * inferior.h (fork_inferior): Change fifth parameter to be a function
65b07ddc
DT
1245 returning void.
1246
1247 * inferior.h (proc_wait): Declare.
1248
1249 * inferior.h:
b5c7e122
SS
1250 (Require_ATTACH): New macro
1251 (REQUIRE_DETACH): New macro
1252 (detach): Definition is now an extern
1253 (clone_and_follow_inferior): New definition, it's also an extern
65b07ddc
DT
1254
1255 * inferior.h:
b5c7e122
SS
1256 (Require_attach): Default definition for require_attach funct
1257 (require_detach): Default definition for require_detach funct
1258 (pre_fork_inferior): New funct decl for function defined in
65b07ddc 1259 infptrace.c
b5c7e122 1260 (fork_inferior): New parameter in funct decl.
65b07ddc
DT
1261
1262 * inferior.h:
b5c7e122 1263 New variable decls: Inferior_ignoring_startup_exec_events,
65b07ddc
DT
1264 inferior_ignoring_leading_exec_events -- these variables
1265 are used when processing an exec call.
b5c7e122 1266 (CALL_DUMMY_HAS_COMPLETED): New default macro -- for targets
65b07ddc
DT
1267 where PC in call dummy implies that call dummy has
1268 completed. Note, that on HPUX this inference does not hold.
1269
1270 * infptrace.c
b5c7e122
SS
1271 (require_notification_of_events): New function
1272 (child_acknowledge_created_inferior): Previously named
65b07ddc
DT
1273 hppa_acknowledge_forked_child. Also calling
1274 require_notification_of_events and clearing some semaphore
1275 variables
b5c7e122
SS
1276 (child_post_startup_inferior): New function
1277 (child_create_catch_fork_hook): Previously named
65b07ddc 1278 hppa_create_catch_fork_hook
b5c7e122 1279 (child_create_catch_vfork_hook): Previously named
65b07ddc 1280 hppa_create_catch_vfork_hook
b5c7e122
SS
1281 (child_has_forked): Previously named hppa_target_has_forked
1282 (child_has_vforked): Previously named hppa_target_has_vforked
1283 (process_wait): Changed to call target_post_wait
1284 (attach): Add call to require_notification_of_events
1285 (child_pid_to_exec_file): New function
1286 (hppa_require_attach): New local variable, pt_status
1287 (hppa_get_process_events): New function
65b07ddc
DT
1288
1289 * infptrace.c (call_ptrace): Simplify control flow.
1290 (proc_wait): Move here from inftarg.c, add target_post_wait call.
1291
b5c7e122 1292 * infptrace.c (call_ptrace): Add some debugging code.
65b07ddc 1293
b5c7e122 1294 * infptrace.c (child_pid_to_exec_file): Declare variable.
65b07ddc 1295
b5c7e122 1296 * infptrace.c (kill_inferior): Clean up call to proc_wait.
65b07ddc
DT
1297
1298 * infptrace.c:
b5c7e122 1299 (Call_ptrace): When the ptrace request is PT_SETTRC,
65b07ddc
DT
1300 call ptrace and then call parent_attach_all.
1301
1302 * infptrace.c:
b5c7e122 1303 (Child_has_syscall_event): New function. only applicable
65b07ddc
DT
1304 (for now) on HPUX 10.30 and beyond via the ttrace call.
1305 In infptrace.c there is a default operation.
1306 With ttrace, it is possible to tell the kernel to
1307 notify the debugger that the target program is about to make
1308 or return from a syscall.
b5c7e122 1309 (child_thread_alive): New function. a default function.
65b07ddc 1310 ptrace doesn't support kernel threads.
b5c7e122
SS
1311 (hppa_enable_page_protection_events): Defualt function
1312 (hppa_disable_page_protection_events): Default function
65b07ddc 1313
b5c7e122
SS
1314 * infptrace.c (child_pid_to_exec_file): Fix number of params to
1315 cal_ptrace call.
65b07ddc 1316
b5c7e122
SS
1317 * infptrace.c (hppa_pid_or_tid_to_str): New function.
1318 (hppa_switched_threads): New function.
1319 (hppa_ensure_vforking_parent_remains_stopped): New function.
1320 (hppa_resume_execd_vforking_child_to_get_parent_vfork): New function.
65b07ddc
DT
1321
1322 * infptrace.c: Most of the changes found in infptrace.c should
1323 be moved to hppah-nat.c
b5c7e122
SS
1324 (PT_VERSION): A new define
1325 (startup_semaphore_t): A new struct type. it is used to
65b07ddc
DT
1326 coordinate the parent and child processes after a fork and
1327 before an exec on HPUX.
b5c7e122 1328 (call_ptrace): Changes to determine whether the ptrace
65b07ddc 1329 request is for starting the tracing of the target process.
b5c7e122 1330 (parent_attach_all): New funct. used on HPUX for coordinating
65b07ddc 1331 the parent and child processes after a fork and before and exec.
b5c7e122 1332 (hppa_acknowledge_forked_child): New funct. prabably belongs
65b07ddc 1333 in hppah-nat.c
b5c7e122 1334 (hppa_enable_catch_fork): New funct. probably belongs in
65b07ddc 1335 hppah-nat.c
b5c7e122 1336 (hppa_disable_catch_fork): New funct. probably belongs in
65b07ddc 1337 hppah-nat.c
b5c7e122 1338 (hppa_create_catch_fork_hook): New funct. probably belongs in
65b07ddc 1339 hppah-nat.c
b5c7e122 1340 (hppa_enable_catch_vfork): New funct. probably belongs in
65b07ddc 1341 hppah-nat.c
b5c7e122 1342 (hppa_disable_catch_vfork): New funct. probably belongs in
65b07ddc 1343 hppah-nat.c
b5c7e122 1344 (hppa_create_catch_vfork_hook): New funct. probably belongs to
65b07ddc 1345 hppah-nat.c
b5c7e122 1346 (hppa_target_has_forked): New funct. probably belongs in
65b07ddc 1347 hppah-nat.c
b5c7e122 1348 (hppa_target_has_vforked): New funct. probably belongs in
65b07ddc 1349 hppah-nat.c
b5c7e122
SS
1350 (process_wait): New funct. also ifdefed for proc_wait.
1351 (kill_inferior): Call proc_wait rather than wait. this is
65b07ddc 1352 pretty hacky.
b5c7e122 1353 (pre_fork_inferior): New function. used only by HPUX.
65b07ddc
DT
1354 probably should be defined elsewhere.
1355
b5c7e122
SS
1356 * infrun.c (follow_inferior_fork): Only define on HP.
1357 (wait_for_inferior): Only call SOLIB_IN_DYNAMIC_LINKER if we have
65b07ddc
DT
1358 shared libraries; restore test of IN_SOLIB_DYNSYM_RESOLVE_CODE
1359 removed by HP.
1360
1361 * infrun.c (normal_stop): Add a call to the TUIDO
1362 macro just before the annotate_stopped label. This
1363 updates the windows after each program stop.
1364
b5c7e122 1365 * infrun.c (normal_stop): Verify stop_command is non-zero before
65b07ddc
DT
1366 dereferencing it (it won't be set if dbx_commands is set).
1367
1368 * infrun.c (resume): Add #ifdef HPPAHPUX around HPUX-specific
1369 code.
1370
b5c7e122 1371 * infrun.c (resume): Add missing semicolon.
65b07ddc 1372
b5c7e122 1373 * infrun.c (wait_for_inferior): Fix syntax error.
65b07ddc 1374
b5c7e122
SS
1375 * infrun.c (follow_fork_mode_kind_names): Removed "both" option.
1376 (follow_fork): Added parameters. additional code for handling
1377 following of parent, following of child
1378 (resume): Added code for deciding how to resume in presence of
1379 fork. Additional params to follow_fork call.
65b07ddc 1380
b5c7e122
SS
1381 * infrun.c (follow_exec): Ifdef for HPUXHPPA for the moment, the
1382 code in here assumes the existance of the child_ops target
1383 vector. This is incorrect for Solaris.
65b07ddc 1384
b5c7e122 1385 * infrun.c (resume): Fixed ifdefs, HPPAHPUX -> HPUXHPPA.
65b07ddc 1386
b5c7e122
SS
1387 * infrun.c (wait_for_inferior): Fixed a matching parens problem --
1388 matching curly brace inside ifdefed code which is not being
1389 compiled. Change local validFlag to be an 'int' rather than a
1390 'bool' and fixed the corresponding assignment statements.
65b07ddc
DT
1391
1392 * infrun.c:
b5c7e122 1393 Two new global variables: Inferior_ignoring_startup_exec_events and
65b07ddc 1394 inferior_ignoring_leading_exec_events.
b5c7e122 1395 New static variables: Parent_of_vfork_trap_expected_and_ignorable,
65b07ddc
DT
1396 step_resume_breakpoint, through_sigtramp_breakpoint, pending_follow,
1397 follow_vfork_when_exec
b5c7e122
SS
1398 (follow_inferior_fork): Does what follow_fork did!
1399 (follow_fork): Is now a wrapper function for follow_inferior_fork
1400 (follow_vfork): Is now a wrapper function for follow_inferior_fork
1401 (follow_exec): New function, handles an exec event.
1402 (resume): Remove 3 local variables: Child_pid, has_forked, has_vforked.
65b07ddc
DT
1403 move and expand code that tries to follow a fork (i.e. also check
1404 for vfork and exec
b5c7e122
SS
1405 (init_wait_for_inferior): Initialize the new structure, pending_follow
1406 (delete_breakpoint_current_contents): When deleting all the breakpoints also
65b07ddc 1407 set the breakpoint struct pointer to NULL.
b5c7e122 1408 (wait_for_inferior): A number of changes.
65b07ddc
DT
1409 The step_resume_breakpoint and through_sigtramp_breakpoint local
1410 variables are now visible in entire module.
1411 Changed name of variable from child_inferior_pid to saved_inferior_pid.
1412 Added several cases to the event processing switch statement:
b5c7e122 1413 Target_WAITKIND_FORKED, TARGET_WAITKIND_VFORKED, TARGET_WAITKIND_EXECD.
65b07ddc
DT
1414 Also, for TARGET_WAITKIND_STOPPED, check to see if expecting a trap
1415 from the parent of a vfork (ignorable) otherwise break as usual.
1416 When determining the value of 'random_signal' (0 or 1), no longer check for
1417 catchpoints.
1418 When determining how to handle unexpected signals, must now take into
1419 account fork, vfork, and exec.
1420 Change call to PC_IN_CALL_DUMMY to a call to CALL_DUMMY_HAS_COMPLETED
1421 At stop_stepping label, check to see if stopped for fork or
1422 vfork event.
1423
1424 * infrun.c: New code is related to threads and fork/vfork/exec.
b5c7e122
SS
1425 New static variable: Thread_step_needed
1426 Deleted static variable: Parent_of_vfork_trap_expected_and_ignorable
65b07ddc
DT
1427 Altered the pending_follow and fork_event structs
1428 (follow_inferior_fork): Before detaching from child and removing
1429 all breakpoints form it -- but only if forking or following
1430 vforks as soon as they happen. Also reset the solib inferior hook.
1431 The same kind of logic applies to hitting step_resume_breakpoints
1432 (calling breakpoint_re_set_thread) and to resetting and inserting
1433 breakpoints.
b5c7e122
SS
1434 (follow_exec): Forward decl
1435 (follow_vfork): Check to see if gdb followed the child. If
65b07ddc
DT
1436 the child exec'd before gdb saw the parent's vfork event
1437 then call follow_exec.
b5c7e122 1438 (follow_exec): If the exec occured after a vfork, then follow
65b07ddc
DT
1439 the vfork as well. Do it before following the exec.
1440 Make sure to update breakpoints after and exec
b5c7e122 1441 (resume): New local variable, should_resume.
65b07ddc
DT
1442 Change parameters in calls to follow_fork, follow_vfork, and
1443 follow_exec. Some changes to the way various pending_follow.kind
1444 situations are handled (there's TARGET_WAITKIND_FORKED,
1445 TARGET_WAITKIND_VFORKED, ARGET_WAITKIND_EXECD. Some additional
1446 conditions to check before deciding to resume the target (i.e.
1447 should_resume=1, stepping?, thread_step_needed?i, regular
1448 resume?)
1449 (proceed): When proceeded at location that does not have a breakpoint
1450 set thread_step_needed=0 to indicate that it is not necessary to
1451 single step thread over breakpoint. SOme additional checks to see
1452 if it is necessary to step thread over breakpoint.
b5c7e122
SS
1453 (start_remote): Remove call to clear_proceed_status.
1454 (init_wait_for_inferior): Initialize new fields in fork_event
65b07ddc 1455 structure and add a call to clear_proceed_status.
b5c7e122 1456 (wait_for_inferior): New local variable: New_thread_event.
65b07ddc
DT
1457 Initialize thread_step_needed = 0.
1458 Minor massaging of conditions for adding a new thread to the thread list.
1459 No longer resuming execution after adding a new thread. Let user play with thread first.
1460 Some changes in the way TARGET_WAITKIND_FORKED, ARGET_WAITKIND_VFORKED,
1461 TARGET_WAITKIND_EXECD are handled -- this is all HPUX related.
1462 Simplified TARGET_WAITKIND_STOPPED -- HP previously had some
1463 more complicated code in here.
1464 Moved the code to resume threads to after the large case statement that processes the events.
1465 Additional processing for stop_signal=TARGET_SIGNAL_TRAP.
1466 Cleanup code at process_event_stop_test label.
1467 Set thread_step_needed when processing a BPSTAT_WHAT_SINGLE.
1468 Minor massaging of fork/vfork/exec part of stop_stepping code.
b5c7e122
SS
1469 (normal_stop): Minor changes. calling show_and_print_stack_frame.
1470 (xdb_handle_command): New function
1471 (_initialize_infrun): Handle xdb_commands. also handle dbx commands
65b07ddc 1472
b5c7e122 1473 * infrun.c: Changes to support following forks, and handling
65b07ddc 1474 catchpoints.
b5c7e122
SS
1475 (follow_fork_mode_kind_names): New array
1476 (follow_fork): New function. implements the follow parent,
65b07ddc 1477 or child functionality.
b5c7e122 1478 (resume): Additions to check whether the target process
65b07ddc 1479 just forked and decide which process to follow.
b5c7e122 1480 (wait_for_inferior): Additional variables (child_inferior_pid,
65b07ddc
DT
1481 stepping_through_solib_after_catch,
1482 - stepping_through_solib_catchpoints.
1483 - Altered CURRENTLY_STEPPING macro to check for stepping through
1484 a shared library after hitting a catchpoint.
1485 - Add parameters to save_infrun_state call
1486 - Check for fork and vfork when deciding if event is a random
1487 signal
1488 - When considering stops due to breakpoints, check for
1489 BPSTAT_WHAT_CHECK_SHLIBS_RESUME_FROM_HOOK
1490 - Check for stop due to an explicit catchpoint
1491 - When checking for single stepping event, also check for
1492 stepping to get out of dynamic linker's hook after catching
1493 a shlib event
b5c7e122 1494 (is_internal_shlib_eventpoint): New funct. check to see if
65b07ddc 1495 event type is bp_shlib_event.
b5c7e122 1496 (stopped_for_internal_shlib_event): New funct. check for shlib
65b07ddc 1497 events
b5c7e122
SS
1498 (stopped_for_shlib_catchpoint): New funct. check for catchpoints.
1499 (normal_stop): Additions to check for shlib event
1500 (set_follow_fork_mode_command): New funct. handles the new follow
65b07ddc 1501 fork command.
b5c7e122 1502 (_initialize_infrun): Additions for follow-fork-mode command.
65b07ddc 1503
b5c7e122 1504 * infrun.c: Ifdefing references to
65b07ddc
DT
1505 switched_from_inferior_pid for HPUXHPPA. They don't seem
1506 useful for Solaris (i.e. non-HPUX)
1507
b5c7e122
SS
1508 * infrun.c: Included tuiData.h and tuiDataWin.h, ifdefed for TUI.
1509 Included top.h. New static variables: Switched_from_inferior_pid,
65b07ddc
DT
1510 number_of_threads_in_syscalls.
1511 (follow_inferior_fork): If there is a step_resume breakpoint
1512 explicitly reset the thread number.
1513 (resume): For TARGET_WAITKIND_VFORKED, removed a check for getting
1514 the vfork event to soon.
b5c7e122 1515 (init_wait_for_inferior): Added parameter to call to
65b07ddc 1516 breakpoint_init_inferior. Initialize number_of_threads_in_syscalls.
b5c7e122 1517 (wait_for_inferior): New local variables: Prev_sal,
65b07ddc
DT
1518 enable_hw_watchpoints_after_wait, stepping_through_sigtramp,
1519 stepped_after_stopped_by_watchpoint. Enable watchpoints after a wait.
1520 Added cases for TARGET_WAITKIND_SYSCALL_ENTRY and
1521 TARGET_WAITKIND_SYSCALL_RETURN.
1522 Do additional processing if stop due to breakpoint, but breakpoint is
1523 only valid for a thread other than the one currently running. Additional
1524 parameters to save_infrun_state and load_infrun_state. Some additional
1525 processing for BPSTAT_WHAT_STEP_RESUME. Some additional processing to
1526 handle stepping over a function.
b5c7e122 1527 (normal_stop): Added notification of switching threads. ifdefing some
65b07ddc 1528 TUI changes and leaving out non-essential TUI changes.
b5c7e122
SS
1529 (restore_selected_frame): Ifdefing some TUI changes
1530 (restore_inferior_status): Ifdefing some TUI changes
65b07ddc 1531
b5c7e122 1532 * infrun.c: Removed the TUI ifdefs and TUI code. Also removed
65b07ddc
DT
1533 include for top.h. HP introduced this. I'm taking it out.
1534
b5c7e122
SS
1535 * inftarg.c (child_detach_from_process): Declare.
1536 (child_attach_to_process): Declare.
1537 (child_stop): Make static to match declaration.
65b07ddc 1538
b5c7e122 1539 * inftarg.c (ptrace_him): Change prototype back to return int.
65b07ddc
DT
1540
1541 * inftarg.c (ptrace_me): Remove debug output, pass NULL to
1542 fork_inferior if not HPUX.
1543
1544 * inftarg.c:
b5c7e122
SS
1545 (child_require_attach): New funct prototype and definition
1546 (child_require_detach): New funct prototype and definition
1547 (proc_wait): Funct prototype and definition are enclosed by
65b07ddc 1548 proc_wait ifndef
b5c7e122 1549 (child_attach_to_process): New function, does most of the
65b07ddc
DT
1550 work that child_attach used to do and some additional
1551 work to determine whether gdb is already attached to the
1552 target how to react.
b5c7e122 1553 (child_attach): Altered. It's now a wrapper for
65b07ddc 1554 child_attach_to_process.
b5c7e122 1555 (child_require_attach): New function, called if should attach
65b07ddc 1556 even when gdb is already attached to target.
b5c7e122 1557 (child_detach_from_process): New function, does most of the
65b07ddc
DT
1558 work that child_detach used to do and some additional work
1559 to determine whether gdb is currently attached to the target.
b5c7e122 1560 (child_detach): Altered. It's now a wrapper for
65b07ddc 1561 child_detach_from_process.
b5c7e122 1562 (child_require_detach): New function, called if should try to
65b07ddc 1563 detach even when gdb is not attached to target.
b5c7e122 1564 (ptrace_him): Calls a new function, target_acknowledge_forked_child.
65b07ddc
DT
1565 Currently, target_acknowledge_forked_child, is only defined to
1566 do something for HPUX.
b5c7e122
SS
1567 (child_create_inferior): Changed call to fork_inferior.
1568 (child_ops): Added to_require_attach and to_require_detach fields
65b07ddc
DT
1569 to the child_ops target ops vector.
1570
1571 * inftarg.c:
1572 Some hacks for ttrace work
1573 (child_wait): Additional local variables, additional code in
b5c7e122 1574 while loop to check for: Process exited, process forked,
65b07ddc
DT
1575 process vforked, process execd
1576 (child_thread_alive): John B. seems to think that the kill
1577 call is inapproapriate for HPUX.
b5c7e122 1578 (child_attach_to_process): Using strtol rather than atoi.
65b07ddc 1579 no longer check for case where there is no known exec file.
b5c7e122
SS
1580 (child_post_attach): New function, a default, a no-op
1581 (child_insert_fork_catchpoint): New function, a default, a no-op
1582 (child_remove_fork_catchpoint): New function, a default, a no-op
1583 (child_create_catch_fork_hook): Deleted
1584 (child_create_catch_vfork_hook): Deleted
1585 (child_insert_vfork_catchpoint): New function, a default, a no-op
1586 (child_remove_vfork_catchpoint): New function, a default, a no-op
65b07ddc
DT
1587 (child_can_follow_vfork_prior_to_exec ):new function, a default,
1588 a no-op
b5c7e122
SS
1589 (child_insert_exec_catchpoint): New function, a default, a no-op
1590 (child_remove_exec_catchpoint): New function, a default, a no-op
1591 (child_has_execd): New function, a default, returns 0
1592 (child_reported_exec_events_per_exec_call): New function, a
65b07ddc 1593 default, returns 1
b5c7e122
SS
1594 (child_has_exited): New function, a default.
1595 (child_core_file_to_sym_file): New function, a default, returns NULL.
1596 (child_ops): Initialize new target_ops vector fields to the
65b07ddc
DT
1597 child* functions.
1598 * infptrace.c:
b5c7e122 1599 (Call_ptrace): For HPUX, handle additional requests: Pt_CONTIN1,
65b07ddc 1600 PT_STEP1.
b5c7e122
SS
1601 (require_notification_of_events): Add several signals to the
1602 set of events requiring notification: Ptrace_SIGNAL,
65b07ddc
DT
1603 PTRACE_EXEC, PTRACE_FORK, PTRACE_VFORK
1604 (child_acknowledge_created_inferior): This function is only
1605 defined if CHILD_ACKNOWLEDGE_CREATED_INFERIOR is defined.
b5c7e122 1606 (child_post_startup_inferior): Function is only defined if
65b07ddc
DT
1607 CHILD_POST_STARTUP_INFERIOR is defiend. Also, now call
1608 require_notification_of_events.
b5c7e122
SS
1609 (child_create_catch_fork_hook): Deleted
1610 (child_create_catch_vfork_hook): Deleted
1611 (child_insert_fork_catchpoint): New function
1612 (child_remove_fork_catchpoint): New function
1613 (child_insert_vfork_catchpoint): New function
1614 (child_remove_vfork_catchpoint): New function
1615 (child_has_forked): Now enclosed by a CHILD_HAS_FORKED ifdef
1616 (child_has_vforked): Now enclosed by CHILD_HAS_VFORKED ifdef
1617 (child_can_follow_vfork_prior_to_exec): New function
1618 (child_insert_exec_catchpoint): New function
1619 (attach): Removed call to require_notification_of_events
1620 (child_post_attach): New function, call to
65b07ddc 1621 require_notification_of_events moved here.
b5c7e122 1622 (child_pid_to_exec_file): New enclosed by CHILD_PID_TO_EXEC_FILE ifdef
65b07ddc
DT
1623 introduced the concept of a saved_inferior_pid
1624 (hppa_require_attach): Add some code to decide if gdb is already
1625 attached to process. Can not figure this out via a ptrace call.
b5c7e122
SS
1626 (hppa_insert_hw_watchpoint): New function
1627 (hppa_remove_hw_watchpoint): New function
65b07ddc
DT
1628
1629 * inftarg.c:
b5c7e122
SS
1630 (child_attach_to_process): Change position in file
1631 (child_detach_from_process): Change position in file
65b07ddc
DT
1632
1633 * inftarg.c:
b5c7e122 1634 (child_attach_to_process): Changed parameter to child_wait call
65b07ddc
DT
1635
1636 * inftarg.c:
b5c7e122 1637 (child_post_wait): New function declaration and definition
65b07ddc
DT
1638 (ptrace_him):
1639 - change return value to a void.
1640 - change target_acknowledge_forked_child call to
1641 target_acknowledge_created_inferior
1642 - call target_post_startup_inferior rather than returning pid.
b5c7e122 1643 (child_attach_to_process): Change param name, fail_if_already_attached
65b07ddc
DT
1644 -> after_fork.
1645 Invert a couple of if-then-else statments.
1646 Use REQUIRE_ATTACH macro
b5c7e122
SS
1647 (child_attach): Change params in child_attach_to_process call
1648 (child_require_attach): Change params in child_attach_to_process call
1649 (child_detach_to_process): Change param name,
65b07ddc
DT
1650 fail_if_already_attached -> after_fork.
1651 Invert a couple of if-then-else statments.
1652 Use REQUIRE_DETACH macro
b5c7e122
SS
1653 (child_detach): Change params in child_detach_from_process call
1654 (child_require_detach): Change params in child_detach_from_process
65b07ddc 1655 call
b5c7e122
SS
1656 (child_post_startup_inferior): New function
1657 (child_acknowledge_created_inferior): New function
1658 (child_clone_and_follow_inferior): New function
1659 (child_post_follow_inferior_by_clone): New function
1660 (child_create_catch_fork_hook): New function
1661 (child_create_catch_vfork_hook): New function
1662 (child_has_forked): New function
1663 (child_has_vforked): New function
1664 (child_post_follow_vfork): New function
1665 (child_stop): No longer a static function
1666 (child_pid_to_exec_file): New function
65b07ddc
DT
1667
1668 * inftarg.c:
b5c7e122 1669 (child_wait): Child_pid becomes related pid. return pid
65b07ddc
DT
1670 rather than inferior_pid. Changes are in code handling fork
1671 and vfork
1672
1673 * inftarg.c:
1674 Include gdb_stat.h and sys/unistd.h
b5c7e122 1675 (child_wait): New local variables. Check for live threads.
65b07ddc 1676 Check for syscall events
b5c7e122
SS
1677 (child_thread_alive): No longer a static funct.
1678 (ptrace_him): Remove some code inserted in snap3
1679 (child_create_inferior): Added a bunch of code to handle a
65b07ddc
DT
1680 bad interaction between start-up-with-shell and the HP
1681 catch-fork/catch-exec logic. I am ifdefing this for
1682 HPUXHPPA for now.
b5c7e122
SS
1683 (child_has_syscall_event): New default target_ops function
1684 (child_enable_exception_callback): New default target_ops function
1685 (child_get_current_exception_event): New default target_ops function
1686 (child_ops): 3 new fields
65b07ddc 1687
b5c7e122 1688 * inftarg.c: Remove HPUX_SNAP1 and HPUX_SNAP2 ifdefs
65b07ddc 1689
b5c7e122 1690 * inftarg.c: Reverted previous change.
65b07ddc 1691
b5c7e122 1692 * infttrace.c (hppa_remove_hw_watchpoint): Fix check for write
65b07ddc
DT
1693 access hardware watchpoint.
1694
1695 * infttrace.c (proc_wait): Rename from proc_wait.
1696
b5c7e122 1697 * infttrace.c (require_notification_of_exec_events): New function;
65b07ddc
DT
1698 just notify of exec events, not all events, and just the specified
1699 pid, don't include it's children.
b5c7e122 1700 (child_acknowledge_created_inferior): Call new function
65b07ddc
DT
1701 require_notification_of_exec_events instead of
1702 require_notification_of_events.
b5c7e122 1703 (child_post_startup_inferior): Call require_notification_of_events
65b07ddc 1704
b5c7e122 1705 * infttrace.c: Changed all references to boolean to int.
65b07ddc
DT
1706 Changed all references to TRUE and FALSE to 1 and 0.
1707
b5c7e122
SS
1708 * irix5-nat.c (symbol_add_stub): Add params to call to
1709 symbol_file_add.
65b07ddc 1710
b5c7e122
SS
1711 * jv-lang.c (get_dynamics_objfile): Add 2 more parameters to call
1712 to allocate_objfile.
65b07ddc 1713
b5c7e122
SS
1714 * main.c (fputs_unfiltered): Changes to prevent cursor form
1715 jumping around in the TUI. Altered where tuiTermUnsetup and
1716 tuiTermSetup are called
65b07ddc
DT
1717
1718 * main.c (fputs_unfiltered): Changed function so that it
1719 checks to see if output is to a string buffer or to a
1720 FILE stream and does the correct action (i.e. strcat or
1721 fputs). Fixed params for fputs call.
1722
1723 * main.c (fputs_unfiltered): Don't try to call the TUI's
1724 CommandCharCount functions when the TUI isn't enabled.
1725
b5c7e122 1726 * main.c (fputs_unfiltered): Change FILE to GDB_FILE.
65b07ddc
DT
1727
1728 * main.c (main): If the user gives the --version or --help flags,
1729 disable the TUI.
1730
b5c7e122
SS
1731 * main.c (tui_version, xdb_commands, dbx_commands): New variables.
1732 (main): New command line arguments --tui, --xdb, --dbx; add call
65b07ddc 1733 to tyiCleanUp via tuiDo to main loop.
b5c7e122 1734 (fputs_unfiltered): Tui related changes.
65b07ddc 1735
b5c7e122
SS
1736 * main.c: Define 2 new global variables, gdb_stdout and gdb_stderr
1737 of type GDB_FILE.
65b07ddc
DT
1738 (main): Allocate space for and initialize gdb_stdout and gdb_stdin.
1739
b5c7e122 1740 * objfiles.c (find_pc_sect_section): Make end condition be less
65b07ddc
DT
1741 than s->endaddr, not less than or equal to s->endaddr.
1742
1743 * objfiles.c:
b5c7e122 1744 (allocate_objfile): 2 new parameters: User_loaded and is_solib.
65b07ddc
DT
1745 When appropriate, record in the object file that it is user loaded.
1746 The run command can use this information to purge object file
1747 entries associated with the old inferior and keep user loaded
1748 object files loaded via the add-symbol-file command.
b5c7e122 1749 (objfile_purge_solibs): New function. deletes all objectfile entries
65b07ddc
DT
1750 that are not explicitly loaded by the user.
1751
1752 * objfiles.c:
b5c7e122
SS
1753 (objfile_relocate): Check for LOC_INDIRECT
1754 (find_pc_sect_section): Change condition from
65b07ddc
DT
1755 pc < s->endaddr to pc <= s->endaddr
1756
1757 * objfiles.h:
b5c7e122
SS
1758 New variables: User_loaded and is_solib
1759 (OBJF_SHARED): New macro. used to distinguish objfile for
65b07ddc 1760 shared library from "vanilla" objfile.
b5c7e122
SS
1761 (allocate_objfile): Add new parameters to function decl.
1762 (objfile_purge_solibs): New function decl.
65b07ddc 1763
b5c7e122
SS
1764 * objfiles.h: Add some typedefs: Importentry, ExportEntry.
1765 Add some new variables: Import_list, import_list_size,
65b07ddc
DT
1766 export_list, export_list_size
1767
1768 * osfsolib.c:
b5c7e122 1769 (symbol_add_stub): Added params to call to symbol_file_add
65b07ddc
DT
1770
1771 * pa/hpux1020.mh (NATDEPFILES): Add corelow.o, symbol table and
1772 solib files.
1773
1774 * pa/hpux1100.mh (NAT_FILE): Use nm-hppah11.h.
1775 (NATDEPFILES): Add symbol table and solib files.
1776
1777 * pa/nm-hppah11.h: New file, HPUX11-only definitions.
1778
1779 * pa/tm-hppa.h (proc_wait): Remove decl and macro.
1780
b5c7e122 1781 * parse.c (write_dollar_variable): Handle cases in which variables
65b07ddc 1782 besides the debugger ones start with $ and $$.
b5c7e122 1783 (parse_nested_classes_for_hpacc): New function. Parse a string that
65b07ddc 1784 is possibly a namespace / nested class specification.
b5c7e122 1785 (find_template_name_end): New function.
65b07ddc
DT
1786
1787 * procfs.c:
b5c7e122 1788 (procfs_init_inferior): Return value is now a void.
65b07ddc 1789
b5c7e122 1790 * procfs.c (procfs_ops): Initializing new target ops vector fields. see list below.
65b07ddc
DT
1791
1792 * procfs.c:
b5c7e122 1793 (procfs_ops): Adding new target_ops vector fields and
65b07ddc
DT
1794 removing a few. see list below
1795
b5c7e122
SS
1796 * procfs.c: Added new fields to procfs_ops.
1797 Necessary since we still have oldstyle initialization in
65b07ddc
DT
1798 this file
1799
b5c7e122
SS
1800 * pyr-tdep.c (pyr_do_registers_info): Change stdout to gdb_stdout.
1801 (frame_locals_address): Change stderr to gdb_stderr.
1802 (frame_args_addr): Ditto.
65b07ddc 1803
b5c7e122 1804 * pyr-xdep.c (fetch_inferior_registers): Change stderr to
65b07ddc
DT
1805 gdb_stderr.
1806
b5c7e122 1807 * serial.c (serial_close): Call gdb_fclose, not fclose on a
65b07ddc
DT
1808 GDB_FILE.
1809
b5c7e122 1810 * serial.c (serial_logchar): Change chtype to ch_type. sigh.
65b07ddc 1811
b5c7e122 1812 * solib.c (look_for_base): The parameter to file must be
65b07ddc
DT
1813 of type FILE *. So cast exec_bfd -> iostream in the call
1814 to fileno as a FILE *, not a GDB_FILE *. This will work because
1815 exec_bfd -> iostream is declared and given a value in bdf and
1816 bfd will continue to use FILE rather than GDB_FILE.
1817
1818 * solib.c:
b5c7e122 1819 (solib_add): Remove references to exec_ops.
65b07ddc
DT
1820
1821 * solib.c:
b5c7e122 1822 (solib_add): Update exec_ops.to_sections
65b07ddc
DT
1823
1824 * solib.c:
b5c7e122 1825 (symbol_add_stub): Added params to call to symbol_file_add
65b07ddc
DT
1826
1827 * solib.h:
b5c7e122 1828 (SOLIB_REMOVE_INFERIOR_HOOK): New macro. defined to 0.
65b07ddc
DT
1829 functionality not implemented for this target.
1830
1831 * solib.h: Added macro definitions. These macros generate
1832 error messages for solaris??
1833 (SOLIB_CREATE_CATCH_LOAD_HOOK)
1834 (SOLIB_CREATE_CATCH_UNLOAD_HOOK)
1835 (SOLIB_HAVE_LOAD_EVENT)
1836 (SOLIB_LOADED_LIBRARY_PATHNAME)
1837 (SOLIB_HAVE_UNLOAD_EVENT)
1838 (SOLIB_UNLOADED_LIBRARY_PATHNAME)
1839 (SOLIB_IN_DYNAMIC_LINKER)
1840 (SOLIB_RESTART)
1841
b5c7e122 1842 * somread.c (is_in_import_list): Ditto.
65b07ddc 1843
b5c7e122 1844 * somread.c (som_symfile_read): Added some comments
65b07ddc 1845
b5c7e122
SS
1846 * somread.c (som_symfile_read): Read in import and export lists.
1847 (som_symtab_read): Change test for dynamic executable.
1848 (is_in_import_list): New function. Check if a given symbol name
65b07ddc 1849 is in the import list.
b5c7e122 1850 (init_import_symbols): New function. Read in and initialize the
65b07ddc 1851 som import list.
b5c7e122 1852 (init_export_symbols): New function. Read in and initialize the
65b07ddc
DT
1853 som export list.
1854
1855 * somread.c:
b5c7e122 1856 (som_symfile_read): Fix missing comment delimiters
65b07ddc 1857
b5c7e122 1858 * somsolib.c (DLD_FLAGS_MAPPRIVATE): New macro.
65b07ddc 1859 Define bit of __dld_flags in HP-UX a.out files.
b5c7e122
SS
1860 (DLD_FLAGS_HOOKVALID): Ditto.
1861 (DLD_FLAGS_LISTVALID): Ditto.
1862 (DLD_FLAGS_BOR_ENABLE): Ditto.
1863 (som_solib_total_st_size): Cumulative size in bytes of the
65b07ddc 1864 symbol tables of all shared objects on the so_list_head list.
b5c7e122 1865 (som_solib_st_size_threshhold_exceeded): Threshold for adding symbols
65b07ddc 1866 for shlibs.
b5c7e122 1867 (som_solib_sizeof_symbol_table): New function. Computes size of
65b07ddc 1868 symbol table for a shlib.
b5c7e122
SS
1869 (som_solib_load_symbols): New function. Load symbols from shlib.
1870 (som_solib_add): Detect if __dld_list is not valid.
65b07ddc
DT
1871 Record main program's symbol table size.
1872 Load symbols if called from command line.
1873 Keep threshold into account when loading shlib symbols.
b5c7e122
SS
1874 (som_solib_create_inferior_hook): Use dld_flags macros.
1875 (som_sharedlibrary_info_command): Let user know if symbols were
65b07ddc 1876 not loaded.
b5c7e122
SS
1877 (som_solib_restart): Discard all the shlibs descriptors.
1878 (_initialize_som_solib): Chenge help message for auto-solib-add
65b07ddc
DT
1879 command.
1880 Set threshold for symbol table to 50 megabytes.
1881
b5c7e122
SS
1882 * somsolib.c (_initialize_som_solib): Added call to som_solib_restart.
1883 (som_solib_restart): New function
1884 (som_solib_in_dynamic_linker): New function
1885 (som_solib_desire_dynamic_linker_symbols): New function
1886 (som_solib_unloaded_library_pathname): New function
1887 (som_solib_loaded_library_pathname): New function
1888 (som_solib_library_pathname): New function
1889 (som_solib_have_unload_event): New function
1890 (som_solib_have_load_event): New function
1891 (som_solib_create_catch_unload_hook): New function
1892 (som_solib_create_catch_load_hook): New function
1893 (som_solib_create_inferior_hook): Rewritten
1894 dld_cache: New struct
1895 addr_and_unwind_t: New struct
65b07ddc
DT
1896 (find_unwind_entry) added prototype
1897
b5c7e122 1898 * somsolib.c (som_solib_create_inferior_hook): Introduce new local
65b07ddc
DT
1899 msymbol2 and change some msymbol's to msymbol2's -- was clobbering
1900 msymbol, passing a NULL to lookup_minimal_symbol_solib_trampoline,
1901 and ultimately core dumping with a SEGV.
1902
1903 * somsolib.c:
1904 Include assert.h
b5c7e122 1905 (som_solib_mapped_entry): Additional comments for text_addr,
65b07ddc
DT
1906 text_link_addr, text_end, and tsd_start_addr fields. Commenting
1907 out 2 tsd fields, __data_start and __data_end.
b5c7e122 1908 (som_solib_add_solib_objfile): Add params to calls to symbol_file_add.
65b07ddc
DT
1909 Add some code for distinguishing between a shared library and other
1910 objfiles. This appears to be a prelude to thread local storage.
b5c7e122 1911 (som_solib_load_symbols): Changes to printf statement
65b07ddc 1912 enclosed by SOLIB_DEBUG ifdef.
b5c7e122 1913 (som_solib_add): Change comment to correctly specify path
65b07ddc
DT
1914 to end.o -- /opt/langtools/lib/end.o. changes to printf statement
1915 enclosed by SOLIB_DEBUG ifdef.
1916 Removed several SOLIB_DEBUG ifdefs and the associated printfs.
1917 Add code to find the start address for the object file's thread
1918 local storage
1919 (som_solib_create_inferior_hook): Fix warning messages use correct
1920 path to end.o -- /opt/langtools/lib/end.o. Change control flow.
1921 No longer user early returns from function is cases of error.
b5c7e122
SS
1922 (reset_inferior_pid): New function
1923 (som_solib_remove_inferior_hook): New function
1924 (so_lib_thread_start_addr): New function. used for tsd.
65b07ddc
DT
1925
1926 * somsolib.c: Removed references to ASSERT macro.
1927
b5c7e122
SS
1928 * somsolib.c: Add debugging macro.
1929 (struct som_solib_mapped_entry): Add new field tsd_start_addr.
1930 (struct so_list): Added new field solib_addr.
1931 (som_solib_add_solib_objfile): New function.
1932 (som_solib_load_symbols): Rewritten.
1933 (som_solib_add): Make sure we don't load the symbols in if the
65b07ddc 1934 threshold was exceeded.
b5c7e122 1935 (som_solib_get_solib_by_pc): New function. Return the address of
65b07ddc 1936 handle of the shared library.
b5c7e122
SS
1937 (som_solib_restart): Disable breakpoints at restart.
1938 (_initialize_som_solib): Set threshold to 100 megabytes.
65b07ddc 1939
b5c7e122 1940 * somsolib.c: Add include of fcntl.h so that O_RDONLY is defined.
65b07ddc 1941
b5c7e122
SS
1942 * somsolib.h (DISABLE_UNSETTABLE_BREAK): New macro.
1943 (PC_SOLIB): New macro.
65b07ddc
DT
1944
1945 * somsolib.h:
b5c7e122
SS
1946 (SOLIB_CREATE_CATCH_LOAD_HOOK): Define
1947 (SOLIB_CREATE_CATCH_UNLOAD_HOOK): Define
1948 (SOLIB_HAVE_LOAD_EVENT): Define
1949 (SOLIB_LOADED_LIBRARY_PATHNAME): Define
1950 (SOLIB_HAVE_UNLOAD_EVENT): Define
1951 (SOLIB_UNLOADED_LIBRARY_PATHNAME): Define
1952 (SOLIB_IN_DYNAMIC_LINKER): Define
1953 (SOLIB_RESTART): Define
65b07ddc
DT
1954
1955 * somsolib.h:
b5c7e122 1956 (SOLIB_REMOVE_INFERIOR_HOOK): New macro. defined to use
65b07ddc
DT
1957 som_solib_remove_inferior_hook.
1958
1959 * somsolib.h:
1960 (som_solib_create_catch_load_hook)
1961 (som_solib_create_catch_unload_hook)
1962 (som_solib_have_load_event)
1963 (som_solib_loaded_library_pathname)
1964 (som_solib_have_unload_event)
1965 (som_solib_unloaded_library_pathname)
1966 (som_solib_in_dynamic_linker)
1967 Fix prototypes to use type names, not parameter names.
1968
b5c7e122
SS
1969 * source.c (find_source_lines): Make non static.
1970 (open_source_file): Ditto.
1971 (source_full_path_of): New function.
1972 (print_source_lines): Rename to print_source_lines_base and make
65b07ddc 1973 static; formatting.
b5c7e122
SS
1974 (print_source_lines): New function.
1975 (forward_search_command): Tui changes.
1976 (reverse_search_command): Tui changes.
1977 (_initialize_source): Add xdb and dbx compatibility commands.
65b07ddc 1978
b5c7e122 1979 * source.c (list_command): Handle case of odd number of source
65b07ddc
DT
1980 lines to display.
1981
1982 * source.c:
b5c7e122 1983 (source_full_path_of): New function. file was overlooked
65b07ddc
DT
1984 in merge ;-/.
1985
b5c7e122 1986 * stack.c (func_command): Make high bound be <, not <=.
65b07ddc 1987
b5c7e122 1988 * stack.c (_initialize_stack): For the backtrace command, delete
65b07ddc
DT
1989 the help line about usage, since this has to be a valid help
1990 message for the 'where' command too.
1991
b5c7e122 1992 * stack.c (current_frame_command): Add a check for the
65b07ddc
DT
1993 existance of a stack. If there is no stack produce an
1994 error message and exit.
1995
1996 * stack.c (down_silently_base, up_silently_base,
1997 args_plus_locals_info, print_frame_info_base,
b5c7e122
SS
1998 print_stack_frame_base, print_stack_frame_base_stub): Declare.
1999 (print_frame_local_vars): Add'l parameter.
2000 (print_stack_frame_stub): New version created, old version renamed
65b07ddc
DT
2001 to show_and_print_stack_frame_base_stub.
2002 (print_stack_frame_base_stub, print_only_stack_frame_stub,
2003 show_and_print_stack_frame, print_only_stack_frame,
2004 stack_publish_stopped_with_no_frame, print_frame_info,
2005 show_stack_frame, backtrace_full_command, args_plus_locals_info,
2006 select_and_print_frame, select_and_maybe_print_frame,
b5c7e122
SS
2007 current_frame_command, func_command): New functions.
2008 (backtrace_command): New function, old renamed to
65b07ddc 2009 backtrace_command_1.
b5c7e122 2010 (print_block_frame_locals, print_frame_local_vars): Additional
65b07ddc 2011 parameter, number of tabs.
b5c7e122 2012 (up_silently_command): New function, old renamed to
65b07ddc 2013 up_silently_command_base.
b5c7e122 2014 (down_silently_command): New function, old renamed to
65b07ddc 2015 down_silently_base.
b5c7e122 2016 (_initialize_stack): Register new commands based on values of
65b07ddc
DT
2017 xdb_commands and dbx_commands variables.
2018
b5c7e122 2019 * stack.c (func_command): Make high bound be <, not <=.
65b07ddc 2020
b5c7e122 2021 * stack.c (parse_frame_specification): Fix prototype to match
65b07ddc 2022 function definition.
b5c7e122
SS
2023 (show_and_print_stack_frame_stub): Fix name.
2024 (select_and_print_frame): Change uncaught tuiDO call.
65b07ddc 2025
b5c7e122 2026 * stack.c (up_silent_base): Rename from up_silently_command_base.
65b07ddc 2027
b5c7e122 2028 * symfile.c (symbol_file_command): Only call SOLIB_RESTART if it's
65b07ddc
DT
2029 defined.
2030
b5c7e122 2031 * symfile.c (add_psymbol_with_dem_name_to_list): New function.
65b07ddc
DT
2032 Adds a symbol with a long value to a psymtab. Differs from
2033 add_psymbol_to_list in taking both a mangled and a demangled name.
2034
b5c7e122 2035 * symfile.c (compare_psymbols): Call strcmp directly, instead of
65b07ddc
DT
2036 using macro.
2037
b5c7e122
SS
2038 * symfile.c (symbol_file_add): Reindent portions.
2039 (symbol_file_command): Add call to tuiDo.
65b07ddc 2040
b5c7e122 2041 * symfile.c (symbol_file_command): Only call SOLIB_RESTART if it's
65b07ddc
DT
2042 defined.
2043
b5c7e122 2044 * symfile.c (symfile_bfd_open): Add code to call PXDB on hpux, if
65b07ddc
DT
2045 the file has not already been processed by pxdb.
2046 Added define USE_PXDB.
2047
b5c7e122 2048 * symfile.c (symfile_bfd_open): Change parenthesis positioning
65b07ddc
DT
2049 around call to hpread_pxdb_check.
2050
b5c7e122
SS
2051 * symfile.c (symfile_bfd_open): Make not static.
2052 (RESET_HP_UX_GLOBALS): New macro. Resets globals when new symbol
65b07ddc 2053 file loaded.
b5c7e122
SS
2054 (USE_PXDB): Not needed. Removed.
2055 (symbol_file_add): Add HP specific code to deal with pxdb.
2056 (symbol_file_command): Reset HP specific globals if new symbol file
65b07ddc 2057 loaded.
b5c7e122
SS
2058 (symfile_bfd_open): Comment out checking for pxdb.
2059 (reread_symbols): Reset HP specific globals.
65b07ddc 2060
b5c7e122 2061 * symfile.c (symfile_bfd_open): Uncomment hpus specific code.
65b07ddc
DT
2062
2063 * symfile.c:
b5c7e122 2064 (symbol_file_add): Add user_loaded and is_solib parameters.
65b07ddc 2065 fixed number of parameters in call to allocate_objfile
b5c7e122 2066 (symbol_file_command): Added call to SOLIB_RESTART macro.
65b07ddc 2067 fixed number of parameters in calls to symbol_file_add.
b5c7e122 2068 (add_symbol_file_command): Fixed number of parameters in calls to
65b07ddc
DT
2069 symbol_file_add.
2070
b5c7e122 2071 * symfile.c: Added prototype for hpread_pxdb_check.
65b07ddc 2072
b5c7e122 2073 * symfile.c: Changed HPUX_SNAP1 ifdef to HPUXHPPA. enclosed calls to
65b07ddc
DT
2074 RESET_HP_UX_GLOBALS with an HPUXHPPA ifdef
2075
b5c7e122 2076 * symfile.h (symfile_bfd_open): Add protptype.
65b07ddc 2077
b5c7e122 2078 * symfile.h: Add prototype for add_psymbol_with_dem_name_to_list.
65b07ddc 2079
b5c7e122 2080 * symfile.h: Clarify purpose of auto_solib_add.
65b07ddc 2081
b5c7e122 2082 * symmisc.c (maintenance_print_symbols): Call gdb_fclose, not
65b07ddc 2083 fclose on a GDB_FILE* during cleanup.
b5c7e122 2084 (maintenance_print_psymbols): Call gdb_fclose, not fclose on a
65b07ddc 2085 GDB_FILE* during cleanup.
b5c7e122 2086 (maintenance_print_msymbols): Call gdb_fclose, not fclose on a
65b07ddc
DT
2087 GDB_FILE* during cleanup.
2088
b5c7e122 2089 * symmisc.c (maintenance_print_symbols): Gdb_fclose now takes a
65b07ddc
DT
2090 GDB_FILE ** parameter. Fix the local GDB_FILE variables and the
2091 call to make_cleanup.
b5c7e122
SS
2092 (maintenance_print_psymbols): Ditto
2093 (maintenance_print_msymbols): Ditto
65b07ddc 2094
b5c7e122 2095 * symmisc.c (print_objfile_statistics): Close quotes in
65b07ddc
DT
2096 output strings.
2097
2098 * symmisc.c:
b5c7e122 2099 (Print_symbol): Add LOC_INDIRECT to switch statement
65b07ddc
DT
2100 (print_partial_symbols): Add LOC_INDIRECT to switch statement
2101
b5c7e122
SS
2102 * symtab.c (find_pc_sect_psymtab): High bounds should be <, not <=.
2103 (find_pc_sect_symtab): Ditto.
65b07ddc 2104
b5c7e122 2105 * symtab.c (hp_som_som_object_present): New flag to indicate HP
65b07ddc 2106 compiled code.
b5c7e122 2107 (find_pc_sect_psymtab): Change tests to make sure we are checking
65b07ddc 2108 the texthigh adress as well.
b5c7e122 2109 (lookup_transparent_type): New function. Look up a type name
65b07ddc 2110 in the struct_namespace. The type returned must not be opaque.
b5c7e122 2111 (find_pc_sect_symtab): Make sure we check the address 'pc' itself,
65b07ddc 2112 too.
b5c7e122 2113 (find_addr_symbol): Prepare to handle LOC_INDIRECT address class, but
65b07ddc 2114 leave it commented out.
b5c7e122 2115 (find_pc_sect_line): Return correct information if pc is in import
65b07ddc 2116 or export stub (trampoline).
b5c7e122 2117 (decode_line_1): Skip two chars, if they are '$$'. Like for HP's
65b07ddc
DT
2118 $$dyncall. Handle cases in which varaible and function names can start
2119 with $.
b5c7e122 2120 (overload_list_add_symbol): If cannot demangle name, use it as is.
65b07ddc 2121 Free string after use.
b5c7e122 2122 (make_symbol_overload_list): Initialize oload_name to NULL and
65b07ddc
DT
2123 oload_name_len to 0. If demangle not successful, use name as it is.
2124 Free string after use.
2125
2126 * symtab.c (lookup_symbol): Changed call to find_pc_sect_symtab,
2127 to the original find_pc_symtab, in HP added fragment.
2128
b5c7e122 2129 * symtab.c (lookup_symbol): Change HPUX_SNAP1 ifdef to a HPUXHPPA ifdef
65b07ddc 2130
b5c7e122 2131 * symtab.c (lookup_symbol): Ifdef the searching of symbol in the
65b07ddc
DT
2132 minimal symbol tables, for hpux we move this check at the end
2133 of the function.
b5c7e122 2134 Before we error out if symbol is not found in the symtab, look
65b07ddc
DT
2135 in the statics.
2136 Before erroring out if static symbol not found look in the globals.
2137
b5c7e122
SS
2138 * symtab.c (lookup_symbol): Return symbol as soon as found.
2139 (decode_line_1): Check whether we have a conditional break. Temporarily
65b07ddc
DT
2140 remove it from the line, to not confure perenthesis checking.
2141 Handle namespaces.
b5c7e122 2142 (overload_list_add_symbol): New function. Overload
65b07ddc 2143 resolution support.
b5c7e122 2144 (make_symbol_overload_list): Ditto.
65b07ddc
DT
2145
2146 * symtab.c:
b5c7e122
SS
2147 (find_template_name_end): New prototype decl.
2148 (lookup_symbol): When a global or static symbol shows up in the
65b07ddc 2149 psymtab table, but not the symtab table, tell the user that
b5c7e122 2150 the symbol may be an inlined function or a template function and
65b07ddc
DT
2151 provide some guidance to the user about how to more fully
2152 specify the symbol.
b5c7e122 2153 (lookup_transparent_type): When a global or static symbol shows up
65b07ddc 2154 in the psymtab table, but not the symtab table, tell the user that
b5c7e122 2155 the symbol may be an inlined function or a template function and
65b07ddc
DT
2156 provide some guidance to the user about how to more fully
2157 specify the symbol.
b5c7e122 2158 (decode_line_1): Handle template function specification when decoding a
65b07ddc 2159 line. May need to be ifdefed for HP's aCC?
b5c7e122 2160 (_initialize_symtab): Handle dbx commands.
65b07ddc 2161
b5c7e122 2162 * symtab.h (address_class): Add new address calss for
65b07ddc 2163 LOC_THREAD_LOCAL_STATIC and LOC_INDIRECT.
b5c7e122
SS
2164 (lookup_transparent_type): Add prototype.
2165 (exception_event_kind): New enum for exception catchpoints.
2166 (exception_event_record): New structure for exception catchpoints.
2167 (CURRENT_EXCEPTION_KIND): New macro.
2168 (CURRENT_EXCEPTION_CATCH_SAL): New macro.
2169 (CURRENT_EXCEPTION_CATCH_LINE): New macro.
2170 (CURRENT_EXCEPTION_CATCH_FILE): New macro.
2171 (CURRENT_EXCEPTION_CATCH_PC): New macro.
2172 (CURRENT_EXCEPTION_THROW_SAL): New macro.
2173 (CURRENT_EXCEPTION_THROW_LINE): New macro.
65b07ddc 2174 (CURRENT_EXCEPTION_THROW_FILE) new macro.:
b5c7e122 2175 (Current_EXCEPTION_THROW_PC): New macro.
65b07ddc 2176
b5c7e122 2177 * symtab.h(make_symbol_overload_list): Add prototype.
65b07ddc
DT
2178
2179 * symtab.h:
b5c7e122 2180 (symbol_file_add): Add new params to function decl.
65b07ddc 2181
b5c7e122 2182 * target.c (cleanup_target): Changed casting of default functions for
65b07ddc
DT
2183 to_has_forked, to_has_vforked, to_pid_to_exec_file to get rid of
2184 warnings.
2185
b5c7e122 2186 * target.c (cleanup_target): Changed the default functions for
65b07ddc
DT
2187 to_pid_to_exec_file and to_core_file_to_sym_file
2188
b5c7e122
SS
2189 * target.c (cleanup_target): Fixed PARAMS for to_has_syscall_event
2190
2191 * target.c (cleanup_target): Syntax error, mismatched paranthesis.
65b07ddc
DT
2192
2193 * target.c:
b5c7e122 2194 (Default_clone_and_follow_inferior): New funct prototype declaration
65b07ddc 2195 and function definition
b5c7e122 2196 (dummy_target): More target_ops vector changes for HPUX
65b07ddc
DT
2197 new fields. ifdefed for HPUX_SNAP2. New fields are
2198 to_post_wait, to_post_startup_inferior
2199 to_acknowledge_created_inferior, to_clone_and_follow_inferior,
2200 to_post_follow_inferior_by_clone, to_create_catch_fork_hook,
2201 to_create_catch_vfork_hook, to_has_forked, to_has_vforked,
2202 to_post_follow_vfork, to_pid_to_exec_file
b5c7e122 2203 (de_fault): Add new HPUX specific target_ops operations to
65b07ddc 2204 the de_fault macro
b5c7e122 2205 (INHERIT): Add new HPUX specific target_ops operations to the
65b07ddc 2206 INHERIT macro
b5c7e122
SS
2207 (find_default_clone_and_follow_inferior): New funct definition
2208 (debug_to_post_wait): New funct
2209 (debug_to_post_startup_inferior): New funct
2210 (debug_to_acknowledge_created_inferior): New funct
2211 (debug_to_clone_and_follow_inferior): New funct
2212 (debug_to_post_follow_inferior_by_clone): New funct
2213 (debug_to_create_catch_fork_hook): New funct
2214 (debug_to_create_catch_vfork_hook): New funct
2215 (debug_to_has_forked): New funct
2216 (debug_to_has_vforked): New funct
2217 (debug_to_post_follow_vfork): New funct
2218 (setup_target_debug): Initialize new target_ops vector fields.
65b07ddc
DT
2219
2220 * target.c:
b5c7e122 2221 (Cleanup_target): Fixed the return type on a few of the
65b07ddc
DT
2222 default function values.
2223
2224 * target.c:
b5c7e122
SS
2225 (Dummy_target): Add 3 new fields
2226 (nosupport_runtime): New function, used in cleanup_target
2227 (cleanup_target): Changes in the de_fault macro, both to
65b07ddc
DT
2228 accomodate the new target_ops vector fields and to use
2229 more accurate default functions.
2230 (update_current_target): Add new target_ops vector fields to the
2231 INHERIT macro
b5c7e122 2232 (generic_mourn_inferior): The call to breakpoint_init_inferior now takes a
65b07ddc
DT
2233 parameter
2234 (normal_pid_to_str): Adding a \0 to the end of buf.
b5c7e122
SS
2235 (debug_to_has_syscall_event): New func
2236 (debug_to_enable_exception_callback): New func
2237 (debug_to_get_current_exception_event): New func
2238 (setup_target_debug): Initialize the 3 new target_ops vector fields
65b07ddc
DT
2239
2240 * target.c:
b5c7e122 2241 (Struct signals): Fix message associated with SIGRETRACT.
65b07ddc
DT
2242
2243 * target.c:
b5c7e122
SS
2244 (Dummy_target): Fix syntax error
2245 (cleanup_target): Changed the default values for the new
65b07ddc
DT
2246 target_ops vector fields. HP folks inappropriately set
2247 most of them to noprocess(). They should be a mixture
2248 of ignore() and return_zero().
2249
2250 * target.c:
b5c7e122 2251 (Dummy_target): Add new target_ops vector fields and their initializations
65b07ddc
DT
2252 (cleanup_target): Added new new target_ops vector fields to the de_fault
2253 macro definition.
2254 (update_current_target): Added new new target_ops vector fields to the INHERIT
2255 macro definition
b5c7e122
SS
2256 (return_one): New function, used by the de_fault macro
2257 (debug_to_post_attach): New function
2258 (debug_to_wait): Added new cases: Target_WAITKIND_FORKED, TARGET_WAITKIND_VFORKED,
65b07ddc 2259 TARGET_WAITKIND_EXECD
b5c7e122
SS
2260 (debug_to_insert_fork_catchpoint): New function
2261 (debug_to_remove_fork_catchpoint): New function
2262 (debug_to_insert_vfork_catchpoint): New function
2263 (debug_to_remove_vfork_catchpoint): New function
2264 (debug_to_can_follow_vfork_prior_to_exec): New function
2265 (debug_to_insert_exec_catchpoint): New function
2266 (debug_to_remove_exec_catchpoint): New function
2267 (debug_to_core_file_to_sym_file): New function
2268 (setup_target_debug): Give new fields in current_target target_ops vector values.
2269
2270 * target.c: Hp merge, 4/15/98 snapshot
65b07ddc
DT
2271 There are new target_ops fields that pertain only
2272 to HPUX. All the changes relate to this. Fist,
2273 new fields are added to the dummy_target target_ops
b5c7e122 2274 vector: To_require_attach, to_require_detach.
65b07ddc 2275
b5c7e122 2276 * target.c: Remove HPUX_SNAP1 and HPUX_SNAP2 ifdefs
65b07ddc 2277
b5c7e122 2278 * thread.c (info_threads_command): Call print_only_stack_frame
65b07ddc 2279 instead of print_stack_frame.
b5c7e122 2280 (_initialize_thread): Make t an alias for thread only if
65b07ddc
DT
2281 xdb_commands is not set.
2282
b5c7e122 2283 * thread.c (thread_command): If no arguments, don't generate an
65b07ddc 2284 error, instead tell the user which thread is current.
b5c7e122 2285 (info_threads_commands): Don't lose the users position within the
65b07ddc
DT
2286 current thread -- remember it and then restore it.
2287
2288 * thread.c:
b5c7e122
SS
2289 (struct thread_info): Add stepping_through_sigtramp field
2290 (add_thread): Initialize stepping_through_sigtramp field
2291 (load_infrun_state): Add stepping_through_sigtramp param and
65b07ddc 2292 make sure it gets assigned a value.
b5c7e122 2293 (save_infrun_state): Add stepping_through_sigtramp param and
65b07ddc 2294 make sure that the value gets saved.
b5c7e122 2295 (info_threads_command): Ifdefing some local variables and
65b07ddc
DT
2296 code for HPUXHPPA. HP folks want print the tid rather than pid?
2297 Also, looks like the HP folks solved the same thread switching
2298 problem that 4.17 solves. Taking 4.17.
b5c7e122 2299 (restore_current_thread): Print out the current frame after
65b07ddc 2300 switching threads.
b5c7e122 2301 (thread_apply_all_command): Ifdefing a print statement for
65b07ddc 2302 HPUXHPPA. The HP folks want to print out a tid rather than pid?
b5c7e122 2303 (thread_apply_command): Ifdefing a print statement for
65b07ddc 2304 HPUXHPPA. The HP folks want to print out a tid rather than pid?
b5c7e122 2305 (thread_command): Decided not to take HP change.
65b07ddc
DT
2306
2307 * thread.c: Fixing gdb core dump problem causing many testsuite
2308 failures.
b5c7e122 2309 (add_thread): Remove call to bpstat_clear, initialize
65b07ddc
DT
2310 tp->stepping_through_solib_catchpoints = NULL;
2311
b5c7e122
SS
2312 * thread.c: Changes for catchpoints, shared libaries,
2313 (thread_info): Additional fields in the thread_info struct
65b07ddc
DT
2314 for stepping_through_solib_after_catch and
2315 stepping_through_solib_catchpoints.
b5c7e122
SS
2316 (add_thread): Initialize the new thread_info fields.
2317 (load_infrun_state): Additional parameters for handling
65b07ddc 2318 catchpoints and shared libraries.
b5c7e122 2319 (save_infrun_state): Additional parameters for handling
65b07ddc
DT
2320 catchpoints and shared libraries.
2321
b5c7e122
SS
2322 * top.c (command_loop): Initialize space_at_cmd_start to 0.
2323 (set_prompt): New function.
2324 (togglelist, stoplist): New command lists.
2325 (command_loop): Tui changes -- paranoia to make sure
65b07ddc 2326 insert mode is off when not editing.
b5c7e122
SS
2327 (quit_force): Clean up tui on exit.
2328 (init_main): Make definition of info status command dependent upon
65b07ddc 2329 dbx mode not being set.
b5c7e122 2330 (fputs_unfiltered_hook): Changed stream parameter from FILE
65b07ddc 2331 to GDB_FILE
b5c7e122 2332 (flush_hook): Changed stream parameter from FILE to GDB_FILE
65b07ddc 2333
b5c7e122 2334 * top.h (set_prompt): Declare.
65b07ddc 2335
b5c7e122 2336 * typeprint.c (whatis_exp): Decide real runtime type. For the vtable
65b07ddc
DT
2337 case.
2338
b5c7e122 2339 * utils.c (query): Changes to prevent cursor from jumping around in the
65b07ddc
DT
2340 TUI. Call tuiBufferGetc explicitly, rather than passing it
2341 into tuiDo. The tuiDo function does some additional work
2342 that is inappropriate when handling queries.
b5c7e122 2343 (GDB_FILE_ISATTY): New macro that takes a GDB_FILE param and
65b07ddc
DT
2344 determines whether or not it's using a tty.
2345 (gdb_file_isatty); called by the GDB_FILE_ISATTY macro. Does
2346 the actual work
2347 (init_page_info): Call GDB_FILE_ISATTY rather than ISATTY
b5c7e122 2348 (print_spaces): Fix parameter to fputc. fix call to
65b07ddc 2349 gdb_file_adjust_strbuf.
b5c7e122
SS
2350 (gdb_file_init_astring): Fix parameter to xmalloc
2351 (gdb_file_deallocate): New function to deallocate
65b07ddc 2352 a GDB_FILE object and possibly a string buffer
b5c7e122
SS
2353 (gdb_file_init_astring): Initialize buffer as the empty
2354 string. Indent GNU style.
2355 (gdb_fopen): Gdb_fopen is called if the GDB_FILE object is
65b07ddc
DT
2356 actually afile rather than astring. The routine now allocates space
2357 for a GDB_FILE object and initializes its fields in addition to
b5c7e122
SS
2358 performing an fopen.
2359 (gdb_flush): Fix the parameter passed into fflush. It's now
2360 stream->ts_filestream.
2361 (gdb_fclose): Pass in an object of type GDB_FILE **. Fix parameter
2362 to fclose. It's now tmpstream->ts_filestream. Make sure to free
2363 the GDB_FILE object and set the GDB_FILE * object to NULL.
2364 (gdb_adjust_strbuf): New function. Determine if the current
2365 ts_strbuf field contains sufficient space to concatenate a string
2366 of length n on the end. If not, then reallocate the ts_strbuf.
2367 (print_spaces): Check to see if the GDB_FILE is afile or
2368 astring. If it is astring, then adjust the size of the ts_strbuf
2369 field and concatenate the correct number of spaces onto the end of
2370 the buffer. Otherwise continue to use fputc.
2371 (gdb_file_get_strbuf): New function. return a ptr to the ts_strbuf
2372 field in a GDB_FILE object.
2373 (gdb_file_init_astring): New function to allocate space for and
2374 initialize a GDB_FILE object when it is an astring.
2375 (set_width): Declare it.
2376 (pagination_enabled): Define it.
2377 (query): Tui changes.
2378 (init_page_info, set_width): New functions.
2379 (set_width_command): Call set_width.
2380 (_initialize_utils): Replace termcap stuff with call to
65b07ddc
DT
2381 init_page_info; if xdb_commands set, define am and sm commands;
2382 define pagination as a set/show command.
b5c7e122
SS
2383 (vfprintf_maybe_filtered): Change FILE to GDB_FILE.
2384 (fputs_maybe_filtered): Ditto.
2385 (print_spaces): Ditto.
2386 (gdb_printchar): Ditto.
2387 (gdb_flush): Ditto.
2388 (fputs_filtered): Ditto.
2389 (vfprintf_filtered): Ditto.
2390 (vfprintf_unfiltered): Ditto.
2391 (fprintf_filtered): Ditto.
2392 (fprintf_unfiltered): Ditto.
2393 (fprintfi_filtered): Ditto.
2394 (print_spaces_filtered): Ditto.
2395 (fprintf_symbol_filtered): Ditto.
2396 (gdb_fclose): New function.
2397
2398 * valops.c (call_function_by_hand): Assign to param_type only
65b07ddc
DT
2399 if function has parameters.
2400
b5c7e122 2401 * valops.c (call_function_by_hand): Ifdef the
65b07ddc 2402 HP_COMPILED_TARGET stuff.
b5c7e122 2403 (value_arg_coerce): Ditto.
65b07ddc 2404
b5c7e122 2405 * valops.c (call_function_by_hand): Make sure param_type is
65b07ddc
DT
2406 initialized to NULL.
2407
b5c7e122
SS
2408 * valops.c (find_rt_vbase_offset): Add parameter to value_at.
2409 (value_rtti_type): Ditto.
2410 (value_full_object): Ditto.
65b07ddc 2411
b5c7e122 2412 * valops.c (search_struct_field_aux): Fixed mismatching parenths
65b07ddc 2413
b5c7e122 2414 * valops.c (search_struct_field_aux): Make sure TYPE_TAG_NAME
65b07ddc
DT
2415 is not null before copying it.
2416
2417
b5c7e122 2418 * valops.c (search_struct_field_aux): Set found_class_name to null
65b07ddc
DT
2419 if class has no name (anon unions case). Adjust base_addr
2420 computation.
2421
b5c7e122 2422 * valops.c (value_arg_coerce): Change final arg to int.
65b07ddc 2423
b5c7e122 2424 * valops.c (value_arg_coerce): Remove the conditional on HP
65b07ddc
DT
2425 compiled target, for doing coercion of float to double. Removed
2426 third parameter, using_gcc.
b5c7e122 2427 (call_function_by_hand): Do not use HP_COMPILED_TARGET, just
65b07ddc
DT
2428 use the gcc_compiled variable.
2429
b5c7e122 2430 * valops.c (value_cast): Take case of the enclosing_type and
65b07ddc 2431 pointer_to_offset fields.
b5c7e122
SS
2432 (value_at): Use VALUE_CONTENTS_ALL_RAW
2433 (value_fetch_lazy): Ditto
2434 (value_assign): Handle enclosing_type, embedded_offset and
65b07ddc 2435 pointed_to_offset fields.
b5c7e122
SS
2436 (value_repeat): Use VALUE_CONTENTS_ALL_RAW and VALUE_ENCLOSING_TYPE.
2437 (value_ind): Set enclosing_type and embedded_offset correctly,
65b07ddc
DT
2438 for a pointer value being dereferenced. Target memory bytes
2439 corresponding to the size of the enclosing type are retreived.
b5c7e122
SS
2440 (value_addr): Handle enclosing_type and pointed_to_offset.
2441 (value_push): Use VALUE_CONTENTS_ALL and VALUE_ENCLOSING_TYPE.
2442 (value_arg_coerce): Coerce floats to doubles only if gcc was not
65b07ddc 2443 used to compile the target.
b5c7e122
SS
2444 (call_function_by_hand): Handle pointers to functions as paramters.
2445 (value_array): Use VALUE_CONTENTS_ALL and VALUE_ENCLOSING_TYPE.
2446 (search_struct_method): Produce more informative error message.
2447 (find_rt_vbase_offset): Deal with negative offsets.
2448 (value_find_oload_method_list): New function. Return the list of
65b07ddc 2449 overloaded methods of a specified name.
b5c7e122 2450 (find_method_list): New function. Search through the methods of an
65b07ddc 2451 object (and its bases) to find a specified method.
b5c7e122 2452 (value_full_object): New function. Given a value, check its real
65b07ddc 2453 run-time type.
b5c7e122 2454 (value_rtti_target_type): New function. Given a pointer value V, find
65b07ddc 2455 the real (RTTI) type of the object it points to.
b5c7e122 2456 (value_rtti_type): New function. Find the real run-time type of a
65b07ddc
DT
2457 value using RTTI.
2458
b5c7e122 2459 * valops.c: Include gdbcmd.h
65b07ddc 2460 Set global overload_resolution to 0.
b5c7e122
SS
2461 (find_function_in_inferior): Modify error message.
2462 (value_allocate_space_in_inferior): Modify error message.
2463 (value_cast): Deal with HP/aCC peculiarities.
2464 (value_of_variable): Use SYMBOL_SOURCE_NAME instead of SYMBOL_NAME.
2465 (value_addr): Modify address value by adding the embedded offset.
2466 (value_ind): Modify the address of the object by the pointed_to_offset.
2467 (call_function_by_hand): Do not do any extra alignment if not needed.
65b07ddc
DT
2468 Fetch the return value from the stack rather then from the register,
2469 for the hppa architecture.
b5c7e122 2470 (search_struct_field): Rewritten. Now this function uses
65b07ddc 2471 search_struct_field_aux to do all the work.
b5c7e122 2472 (search_struct_field_aux): New function. This is the old
65b07ddc 2473 search_struct_field rewritten.
b5c7e122
SS
2474 (find_rt_vbase_offset): Give error if virtual table pointer is not good.
2475 (find_overload_match): New function. Find the best function that
65b07ddc
DT
2476 matches on the argument types according to the overload resolution
2477 rules.
b5c7e122 2478 (_initialize_valops): Add new set/show command for overload-resolution.
65b07ddc 2479
b5c7e122 2480 * value.h (VALUE_POINTED_TO_OFFSET): New macro.
65b07ddc
DT
2481 Add field pointed_to_offset to value structure.
2482 Add prototypes for new functions in valops.c.
2483
b5c7e122 2484 * value.h (write_register_pid): Change prototype to match
65b07ddc
DT
2485 function.
2486
b5c7e122 2487 * value.h: Hp merge, 4/15/98 snapshot
65b07ddc
DT
2488 Added parameter to val_print func decl.
2489 Added new macro, VALUE_EMBEDDED_OFFSET, and
2490 new func decl, find_rt_vbase_offset, for C++
2491 support.
2492
b5c7e122 2493 * values.c (allocate_value): Allocate also for value_embedded_offset
65b07ddc 2494 and value_enclosing_type.
b5c7e122 2495 (value_copy): Copy value_embedded_offset and value_enclosing_type too.
65b07ddc 2496 Use all_raw in copying the value itself.
b5c7e122 2497 (value_primitive_field): Add handling of base subobjects.
65b07ddc 2498
b5c7e122
SS
2499 * values.c (value_copy): Copy the pointed_to_offset as well.
2500 (allocate_value): Allocate the pointed_to_offset as well.
2501 (value_virtual_fn_field): Rewrite.
65b07ddc 2502
b5c7e122 2503 * values.c (value_primitive_field): Adjust embedded offset and
65b07ddc
DT
2504 offset calculation.
2505
b5c7e122 2506 * values.c (value_static_field): Take into consideration that static
65b07ddc
DT
2507 data members can be minimal symbols too.
2508
b5c7e122 2509 * values.c (value_virtual_fn_field): Fix call to value_at.
65b07ddc 2510
b5c7e122 2511 * win32-nat.c (handle_load_dll): Added params to call to symbol_file_add.
65b07ddc
DT
2512
2513 Other changes have to do with XDB compatability. Leave oout
2514 for now.
2515
b5c7e122
SS
2516 defs.h (vfprintf_filtered): Change FILE to GDB_FILE in decl.
2517 (fprintf_filtered): Ditto.
2518 (fprintfi_filtered): Ditto.
2519 (vfprintf_unfiltered): Ditto.
2520 (fprintf_unfiltered): Ditto.
65b07ddc 2521
b5c7e122 2522 infcmd.c (_initialize_infcmd): If xdb_commands is set, make S an
65b07ddc
DT
2523 alias for next and define R, lr, g. Define go.
2524
b5c7e122 2525 pyr-tdep.c (pyr_print_insn): Change FILE to GDB_FILE.
65b07ddc
DT
2526
2527
b5c7e122 2528 * breakpoint.c (create_temp_exception_breakpoint): #If it out --
65b07ddc 2529 nothing calls it.
b5c7e122 2530 (bpstat_stop_status): Don't call SOLIB_HAVE_LOAD_EVENT if it's not
65b07ddc 2531 defined; don't call SOLIB_HAVE_UNLOAD_EVENT if it's not defined.
b5c7e122 2532 (bpstat_get_triggered_catchpoints): If we don't have shared
65b07ddc
DT
2533 library support, then don't call SOLIB_LOADED_LIBRARY_PATHNAME nor
2534 SOLIB_UNLOADED_LIBRARY_PATHNAME.
b5c7e122 2535 (watch_command_1): Don't require a run before a watch command
65b07ddc 2536 unless we're on HP [it's an HP OS bug, not a generic limitation]
b5c7e122
SS
2537 (catch_load_command_1): Don't define if no shared libraries.
2538 (catch_command_1): Don't claim to support fork catchpoints unless
65b07ddc
DT
2539 CHILD_INSERT_FORK_CATCHPOINT is defined, don't claim to support
2540 vfork catchpoints unless CHILD_INSERT_VFORK_CATCHPOINT is defined,
2541 don't clain to support shared library load catchpoints if shared
2542 libraries aren't supported, and don't claim to support exec
2543 catchpoints unless CHILD_INSERT_EXEC_CATCHPOINT is defined
2544
b5c7e122 2545 There are new target_ops vector fields that pertain
65b07ddc
DT
2546 only to HPUX. Added the to_require_attach and
2547 to_require_detach fields to exec_ops. These new
2548 fields are ifdef'ed for HPUX_SNAP1.
2549
b5c7e122
SS
2550 * breakpoint.h:
2551 Fix compile error in enum bptype.
2552
2553 * coff-solib.h:
2554 Fixed a number of macro definitions. SOLIB_LOADED_LIBRARY_PATHNAME,
2555 SOLIB_HAVE_LOAD_EVENT, SOLIB_HAVE_UNLOAD_EVENT,
2556 SOLIB_UNLOADED_LIBRARY_PATHNAME, SOLIB_IN_DYNAMIC_LINKER. These
2557 macros are only meaningful (for now) for SOM. So, all
2558 the macros were defined as error(...), but were used in
2559 conditions. This caused the compile to crap out. I redefined
2560 these (for now) to be 0.
2561
2562 * procfs.c:
2563 (procfs_create_inferior): Fix call to fork_inferior -- need another
2564 parameter.
65b07ddc 2565
b5c7e122
SS
2566 * solib.h:
2567 Fixed a number of macro definitions. SOLIB_LOADED_LIBRARY_PATHNAME,
2568 SOLIB_HAVE_LOAD_EVENT, SOLIB_HAVE_UNLOAD_EVENT,
2569 SOLIB_UNLOADED_LIBRARY_PATHNAME, SOLIB_IN_DYNAMIC_LINKER. These
2570 macros are only meaningful (for now) for SOM. So, all
2571 the macros were defined as error(...), but were used in
2572 conditions. This caused the compile to crap out. I redefined
2573 these (for now) to be 0.
2574
2575 * valops.c:
2576 (search_struct_field): Undeclared local variable, "assigned".
2577 (find_rt_vbase_offset): Fixed call to value_at
2578
2579 * value.h: Fix signature for find_rt_vbase_offset funct decl
2580 (missing a param)
65b07ddc 2581
c4b23100
SS
2582Wed Dec 30 17:48:12 1998 Stan Shebs <shebs@andros.cygnus.com>
2583
2584 From J.T. Conklin <jtc@redbacknetworks.com>:
2585 * i386-stub.c: Fix error string in last change.
2586
adcb1e06
JM
25871998-12-30 Jason Molenda (jsm@bugshack.cygnus.com)
2588
b5c7e122 2589 * utils.c: <Readline/readline.h> instead of "readline/readline.h".
adcb1e06
JM
2590
2591 * configure.in (TERM_LIB): Search for the appropriate term library
2592 on the host system.
2593 * configure: Regenerated.
2594 * Makefile.in (TERMCAP): Set based on autoconf check.
2595 * config/*/*.mh: Don't override TERMCAP setting.
2596
1b0df0ad
MA
2597Wed Dec 30 17:23:14 1998 Mark Alexander <marka@cygnus.com>
2598
2599 * value.c (value_virtual_fn_field): Handle the situation where
2600 vtbl is a pointer to a structure instead of a pointer to an array.
2601
4ef1f467
DT
2602Mon Dec 28 17:43:36 1998 David Taylor <taylor@texas.cygnus.com>
2603
2604 The following changes were made by Jim Blandy <jimb@cygnus.com>,
2605 Edith Epstein <eepstein@cygnus.com>, Elena Zannoni
2606 <ezannoni@cygnus.com> Stan Shebs <shebs@cygnus.com>, and David
2607 Taylor <taylor@cygnus.com>, as part of the project to merge in
2608 changes originally made by HP; HP did not create ChangeLog
2609 entries.
2610
b5c7e122
SS
2611 * c-lang.h (cp_print_value_fields): Update prototype; fixed
2612 prototype decl for c_val_print function -- it needed an
4ef1f467 2613 embedded_offset param; fixed prototype of cp_print_value_fields.
b5c7e122
SS
2614 Include value.h.
2615 (C_LANG_H): Define.
4ef1f467 2616
b5c7e122 2617 * c-valprint.c (c_val_print): Add new parameter embedded_offset.
4ef1f467
DT
2618 Add embedded_offset to valaddr in function calls. fix calls to
2619 val_print, and cp_print_value_fields. Attempt to determine the
2620 real type of the object to be printed. fixed call to
2621 cp_print_value_fields. process TYPE_CODE_METHOD as well. moved
b5c7e122
SS
2622 call to check_typedef out of conditional. add embedded offset
2623 param to val_print call.
4ef1f467 2624
b5c7e122
SS
2625 (c_value_print): Add new parameter to call to val_print. Handle
2626 pointer to class case. Ensure that const char *, const unsigned
4ef1f467
DT
2627 char * come out without the type but the volatile variants and the
2628 signed variants don't.
2629
b5c7e122
SS
2630 * ch-lang.h (chill_val_print): Add parameter to decl.
2631
2632 * ch-valprint.c: The various print routines have an additional
2633 parameter. Currently, the new parameter is only used when printing
2634 C++ expressions. So, in ch-valprint.c, the new parameter is always
2635 0. Changes in calls to val_print, chill_val_print, c_val_print
2636 Affected functions are chill_val_print_array_elements,
2637 chill_val_print, chill_print_value_fields, chill_value_print.
2638
2639 * cp-valprint.c add vtable pointers names for aCC (HP) compiler.
2640 (cp_print_class_method): Print message for HP/aCC case.
2641 (cp_print_class_member): Add comments.
2642 (cp_print_value): Adjust address computations for virtual base
2643 classes. add new parameter 'offset'. Find correct offset for
4ef1f467
DT
2644 base class in HP/aCC case. Change call to cp_print_value_fields
2645 to have extra par.
b5c7e122 2646 (cp_print_value_fields): Do not print also if the only field is
4ef1f467
DT
2647 the vtable pointer. Print out vtable ptr, for HP/aCC compiled
2648 case. do not print leading '=' in case of anonymous union, or
b5c7e122 2649 struct. add new parameter 'offset'. Do not print the vtable
4ef1f467
DT
2650 pointer as a member, in the HP aCC case. Changed calls to
2651 val_print to have extra parameter.
b5c7e122 2652 (cp_print_hpacc_virtual_table_entries): New function. Print vtable
4ef1f467 2653 entries, in HP/aCC compiled case.
b5c7e122 2654 (cp_print_static_field): Change call to cp_print_value_fields, and
4ef1f467
DT
2655 val_print.
2656
b5c7e122
SS
2657 * d30v-tdep.c (d30v_print_register): Add embedded_offset param
2658 to val_print call.
4ef1f467 2659
b5c7e122
SS
2660 * defs.h: Additional include files included when TUI is defined.
2661 (gdb_file_isatty): New function decl.
2662 (GDB_FILE): If TUI is defined, define a structure rather
4ef1f467 2663 than making this an alias for FILE.
b5c7e122 2664 (gdb_stdout, gdb_stderr): If TUI is defined, then define these
4ef1f467
DT
2665 as pointers to variables of type GDB_FILE rather than making them
2666 be aliases for stdout and stderr.
b5c7e122 2667 (TUIDO): Add definition conditionalized on definition
4ef1f467 2668 (or lack thereof) of TUI.
b5c7e122
SS
2669 (command_class): Add two additional values.
2670 (precision_type): New enum.
2671 (gdb_fclose): Add decl.
2672 (store_address): Change prototype to match function.
2673 (tui_version, xdb_commands, dbx_commands): Add decls.
2674 (gdb_file_deallocate): New function decl
2675 (pa_do_strcat_registers_info): New function decl.
2676 (streamtype): New enumerated type to distinguish between output to
4ef1f467 2677 a FILE and output to a buffer.
b5c7e122
SS
2678 (tui_stream): New struct type, named GDB_FILE.
2679 (gdb_stdout): Of type GDB_FILE, will pass this around gdb rather
4ef1f467 2680 than stdout.
b5c7e122 2681 (gdb_stderr): Of type GDB_FILE, will pass this around gdb rather
4ef1f467 2682 than stderr.
b5c7e122
SS
2683 (fputs_unfiltered_hook): Change stream parameter from FILE to
2684 GDB_FILE.
2685 (flush_hook): Change stream parameter from FILE to GDB_FILE.
2686 (gdb_fclose): Fix decl for gdb_fclose; parameter is now of
2687 type GDB_FILE **.
2688 (gdb_file_adjust_strbuf): New function decl. function lives
2689 in utils.c.
2690 (gdb_file_init_astring): New function decl. function lives
4ef1f467 2691 in utils.c.
b5c7e122
SS
2692 (gdb_file_get_strbuf): New function decl. function lives in
2693 utils.c.
2694 (source_full_path_of): Declare.
4ef1f467 2695
b5c7e122 2696 * exec.c (_initialize_exec): Make definition of file command be
4ef1f467 2697 dependent upon dbx_commands not being set.
b5c7e122
SS
2698 (exec_file_attach): New function.
2699 (exec_file_command): Call it.
2700 (exec_ops): Add new target vector fields.
4ef1f467 2701
b5c7e122
SS
2702 * f-lang.h (f_print_type): Change FILE to GDB_FILE in decl.
2703 (f_val_print): Ditto.
2704 (f_val_print): Add parameter to the function decl.
4ef1f467 2705
b5c7e122 2706 * f-valprint.c (_initialize_f_valprint): If xdb_commands is set,
4ef1f467 2707 define lc command.
b5c7e122
SS
2708 (f77_create_arrayprint_offset_tbl): Change FILE to GDB_FILE.
2709 (f77_print_array): Ditto.
2710 (f77_print_array_1): Ditto.
2711 (f_val_print): Ditto.
2712 (f_val_print): Add a parameter; this new parameter is currently
4ef1f467
DT
2713 only non-zero when handling C++ expressions. In this file its
2714 value is always 0. changed fflush to gdb_flush.
2715
b5c7e122
SS
2716 * gnu-nat.c: (init_gnu_ops): Add new target vector fields.
2717 (gnu_create_inferior): Add param to fork_inferior call.
4ef1f467 2718
b5c7e122 2719 * hppa-tdep.c (after_prologue): If f is NULL, don't dereference
4ef1f467
DT
2720 it. if no debug info, return zero telling caller that we need to
2721 find the end of the prologue via the hard way (instruction
2722 examination).
b5c7e122 2723 (find_unwind_entry): Avoid dereferencing a null
4ef1f467 2724 pointer.
b5c7e122
SS
2725 (hppa_pid_to_exec_file): Deleted -- no longer used.
2726 (hppa_prepare_to_proceeed): Add prototype.
2727 (read_unwind_info): Purecov comments, bug fixes.
2728 (find_unwind_entry): Purecov comments, bug fixes.
2729 (find_stub_with_shl_get): Purecov comments.
2730 (frame_chain): Additional parens.
2731 (hppa_push_arguments): Changes to commented out version of routine.
2732 (hppa_fix_call_dummy): Purecov comments, fix location of end.o.
2733 (in_solib_call_trampoline): Purecov comments.
2734 (in_solib_return_trampoline): Purecov comments.
2735 (setup_d_pid_in_inferior): Fix location of end.o.
2736 (initialize_hp_cxx_exception_support): Fix location of end.o.
2737 (child_enable_exception_callback): Purecov comments.
4ef1f467
DT
2738 (pa_do_strcat_registers_info): Has a new parameter, precision,
2739 which is passed into the call to pa_strcat_fp_reg to indicate
2740 whether to display the floating point registers using
2741 single or double preceision.
2742 (pa_strcat_registers): Introduce local variable, precision, and
2743 pass it into call to pa_strcat_fp_reg.
2744 (pa_strcat_fp_reg): Modified function. New parameter, precision,
2745 used by function to decide whether to use single or double
b5c7e122 2746 precision. Also add the code to put a double precision value
4ef1f467 2747 into a buffer.
b5c7e122 2748 (pa_do_strcat_registers_info): New routine. called by
4ef1f467
DT
2749 tui/tuiRegs.c:_tuiRegisterFormat to place a register name
2750 and value into a string buffer. Interface may change in
2751 future. Checking this in so that we have something
2752 functional for HP.
b5c7e122 2753 (pa_strcat_registers): New routine, called by
4ef1f467
DT
2754 pa_do_strcat_registers_info. Does same thing as
2755 pa_print_registers except it takes a stream parameter.
2756 This routine should disappear in future. Checking in
2757 so that we have something functional to give HP
b5c7e122 2758 (pa_strcat_fp_reg): New routine, called by
4ef1f467
DT
2759 pa_do_strcat_registers_info and pa_strvat_registers
2760 to place a floating point register name and value into
2761 a buffer. This interface may change in future.
2762 Checking in so that we have something functional to give HP.
b5c7e122
SS
2763 (pa_print_fp_reg): Change prototype to match def'n.
2764 (pa_register_look_aside): Fix comment immediately before function.
2765 Changes to better support stack unwinding, reading and writing
2766 registers for HPUX. New includes ptrace.h, bfd.h, dl.h.
2767 (internalize_unwinds): Initialize new fields in table.
2768 (read_unwind_info): Entries in the table are now more complex
4ef1f467
DT
2769 structures. References of the form ...->table[index].stub_type are
2770 now ...->table[index].stub_unwind.stub_type.
b5c7e122
SS
2771 (find_proc_framesize): Add a check for pc == 0.
2772 (rp_saved): Entries in the table are now more complex
4ef1f467
DT
2773 structures. References of the form ...->table[index].stub_type are
2774 now ...->table[index].stub_unwind.stub_type.
b5c7e122 2775 (frameless_function_invocation): Stub_type becomes
4ef1f467 2776 stub_unwind.stub_type
b5c7e122
SS
2777 (saved_pc_after_call): Stub_type becomes stub_unwind.stub_type
2778 (hppa_frame_saved_pc): Stub_type becomes stub_unwind.stub_type
2779 (frame_chain_valid): Stub_type becomes stub_unwind.stub_type
2780 (hppa_call_dummy): Stub_type becomes stub_unwind.stub_type
2781 (pa_print_fp_reg): Additional params to call val_print
2782 (in_solib_call_trampoline): Stub_type becomes
4ef1f467 2783 stub_unwind.stub_type
b5c7e122 2784 (in_solib_return_trampoline): Stub_type becomes
4ef1f467 2785 stub_unwind.stub_typ
b5c7e122 2786 (skip_trampoline_code): Additional code to handle external
4ef1f467 2787 dyncalls. Also stub_type becomes stub_unwind.stub_type
b5c7e122 2788 (hppa_pid_to_exec_file): New funct. FOr HPUX 10.0 and beyond there
4ef1f467
DT
2789 is an explicit ptrace request for getting the pathname associated
2790 with a process id (pid).
b5c7e122 2791 (hppa_pid_to_exec_file): Remove unwanted param from call to
4ef1f467 2792 call_ptrace.
b5c7e122
SS
2793 (args_for_find_stub): New structure.
2794 (find_unwind_entry): Deal with null input pc value.
2795 (rp_saved): Ditto.
4ef1f467 2796 For the import stub, return -24 always.
b5c7e122
SS
2797 (hppa_frame_saved_pc): Save old pc value, to detect we are in a loop.
2798 (init_extra_frame_info): Use TARGET_READ_FP.
2799 (frame_chain): Include thread support.
2800 If the caller's pc is zero, we lose and return, just like stack
2801 bottom.
4ef1f467 2802 Disable warning about being unable to find unwind info.
b5c7e122
SS
2803 (hppa_push_arguments): Rewrite.
2804 (hppa_value_returned_from_stack): New function. Handles returning
2805 a value larger than 64 bits, stored on the stack.
2806 (find_stub_with_shl_get): New function. To look up symbols in shlibs.
2807 (cover_find_stub_with_shl_get): New function. Cover routine for
4ef1f467 2808 find_stub_with_shl_get to pass to catch_errors.
b5c7e122
SS
2809 (hppa_fix_call_dummy): Comment out old stub mechanism.
2810 Rewrite using dyncall.
2811 (target_read_fp): New function.
2812 (pa_do_registers_info): Floating point registers start at FP4.
2813 (pa_print_registers): Use FP4_REGNUM instead of 72.
2814 (skip_trampoline_code): Do machine instruction matching for PA2.0.
2815 (setup_d_pid_in_inferior): New function. Exception handling support.
2816 (initialize_hp_cxx_exception_support): Ditto.
2817 (child_enable_exception_callback): Ditto.
2818 (child_get_current_exception_event): Ditto.
2819
2820 * hpux-thread.c (hpux_thread_ops): Add new target vector fields.
2821
2822 * infcmd.c: Include objfiles.h.
2823 (attach_command): New local variable, exec_file, add code to
4ef1f467
DT
2824 determine exec_file from pid if exec_file is not already known,
2825 call new target operation, target_post_attach -- a no-op unless
b5c7e122
SS
2826 on HPUXHPPA.
2827 (detach_command): After detaching, do a SOLIB_RESTART.
2828 (objfiles.h): Fix typo on include line.
2829 (run_command): Only call SOLIB_RESTART if it's defined.
2830 (detach_command): Ditto.
4ef1f467
DT
2831 (run_command): If program has already been started, and decide
2832 to restart it, the kill the target, fluch the caches,
2833 call init_wait_for_inferior. Also purge old solib objfiles.
b5c7e122 2834 (run_stack_dummy): Add calls to
4ef1f467 2835 disable_watchpoints_before_interactive_call_start and
b5c7e122
SS
2836 enable_watchpoints_after_interactive_call_stops.
2837 (finish_command): Alter code handling the evaluation and printing
4ef1f467 2838 of the target function's return value.
b5c7e122 2839 (attach_command): When given a pid, but no exec file, try to
4ef1f467
DT
2840 determine the exec file from the process. If the process does not
2841 record a full path name, try to qualify the filename against the
2842 source path.
b5c7e122
SS
2843 (_initialize_infcmd): Add some verbiage about how to use the
2844 attach command.
2845 (do_registers_info): Changed calls to val_print
4ef1f467
DT
2846 made the symfile.h include preceed the
2847 objfiles.h include. The other ordering caused a
2848 compile problem (incompletely defined types).
2849
b5c7e122 2850 * inftarg.c (child_post_attach): Fix decl, make static.
4ef1f467
DT
2851 (proc_wait): Make globally visible.
2852 (child_insert_fork_catchpoint, etc): Fix return type.
b5c7e122
SS
2853 (child_detach_from_process): Declare.
2854 (child_attach_to_process): Declare.
2855 (child_stop): Make static to match decl.
2856 (ptrace_him): Change prototype back to return int.
4ef1f467
DT
2857 (ptrace_me): Remove debug output, pass NULL to fork_inferior if
2858 not HPUX.
b5c7e122 2859 (proc_wait): function prototype and definition are enclosed by
4ef1f467 2860 proc_wait ifndef
b5c7e122 2861 (child_attach_to_process): New function, does most of the work
4ef1f467
DT
2862 that child_attach used to do and some additional work to determine
2863 whether gdb is already attached to the target how to react.
b5c7e122 2864 (child_attach): Altered. It's now a wrapper for
4ef1f467 2865 child_attach_to_process.
b5c7e122 2866 (child_require_attach): New function, called if should attach even
4ef1f467 2867 when gdb is already attached to target.
b5c7e122 2868 (child_detach_from_process): New function, does most of the work
4ef1f467
DT
2869 that child_detach used to do and some additional work to determine
2870 whether gdb is currently attached to the target.
b5c7e122 2871 (child_detach): Altered. It's now a wrapper for
4ef1f467 2872 child_detach_from_process.
b5c7e122 2873 (child_require_detach): New function, called if should try to
4ef1f467 2874 detach even when gdb is not attached to target.
b5c7e122 2875 (ptrace_him): Calls a new function,
4ef1f467
DT
2876 target_acknowledge_forked_child. Currently,
2877 target_acknowledge_forked_child, is only defined to do something
2878 for HPUX.
b5c7e122
SS
2879 (child_create_inferior): Changed call to fork_inferior.
2880 (child_ops): Add to_require_attach and to_require_detach fields
4ef1f467 2881 to the child_ops target ops vector.
b5c7e122 2882 Some hacks for ttrace work:
4ef1f467 2883 (child_wait): Additional local variables, additional code in
b5c7e122
SS
2884 while loop to check for process exited, process forked,
2885 process vforked, process execd.
4ef1f467
DT
2886 (child_thread_alive): John B. seems to think that the kill
2887 call is inapproapriate for HPUX.
b5c7e122 2888 (child_attach_to_process): Using strtol rather than atoi.
4ef1f467 2889 no longer check for case where there is no known exec file.
b5c7e122
SS
2890 (child_post_attach): New function, a default, a no-op.
2891 (child_insert_fork_catchpoint): New function, a default, a no-op.
2892 (child_remove_fork_catchpoint): New function, a default, a no-op.
2893 (child_insert_vfork_catchpoint): New function, a default, a no-op.
2894 (child_remove_vfork_catchpoint): New function, a default, a no-op.
4ef1f467 2895 (child_can_follow_vfork_prior_to_exec ):new function, a default,
b5c7e122
SS
2896 a no-op.
2897 (child_insert_exec_catchpoint): New function, a default, a no-op.
2898 (child_remove_exec_catchpoint): New function, a default, a no-op.
2899 (child_has_execd): New function, a default, returns 0.
2900 (child_reported_exec_events_per_exec_call): New function, a
2901 default, returns 1.
2902 (child_has_exited): New function, a default.
2903 (child_core_file_to_sym_file): New function, a default, returns NULL.
2904 (child_ops): Initialize new target vector fields.
2905
2906 * jv-lang.h: (Java_val_print): Add embedded_offset param to func
2907 decl.
2908
2909 * jv-valprint.c: Changing calls to val_print to accomodate new param.
2910 (java_value_print): Add embedded_offset param to val_print call
2911 (java_print_value_fields): Add embedded_offset param to val_print
2912 call.
2913 (java_val_print): Add embedded_offset param. alter call to
4ef1f467
DT
2914 c_val_print to accomodate embedded_offset param.
2915
b5c7e122 2916 * language.c (lang_bool_type): Return builtin_type_bool in c++
4ef1f467 2917 case.
b5c7e122
SS
2918 (unk_lang_val_print): Add embedded_offset param to
2919 prototype decl and definition.
4ef1f467 2920
b5c7e122
SS
2921 * language.h (LA_VAL_PRINT macro, la_val_print function decl):
2922 altered to accomodate the new parameter to the various print
2923 functions.
4ef1f467 2924
b5c7e122
SS
2925 * m2-lang.h (m2_val_print): Add a parameter to the function decl.
2926
2927 * m2-valprint.c (m2_val_print): Add a parameter.
2928 This parameter is currently only used when evaluating C++
2929 expressions. So, it is always 0 in this file.
2930
2931 * m3-nat.c (m3_create_inferior): Add param to fork_inferior call
2932 (m3_pid_to_exec_file): New function
2933 (m3_ops): Add new target vector fields.
2934
2935 * mac-nat.c (init_child_ops): Add new target vector fields.
4ef1f467 2936
b5c7e122 2937 * mips-tdep.c: Chnages to accomodate additional parameter
4ef1f467 2938 to val_print.
b5c7e122 2939 (mips_print_register): Alter calls to val_print
4ef1f467 2940
b5c7e122
SS
2941 * monitor.c (monitor_write): Change stderr to gdb_stderr.
2942 (monitor_remove_breakpoint): Ditto.
2943 (init_base_monitor_ops): Add new target vector fields.
4ef1f467 2944
b5c7e122 2945 * ppc-bdm.c (init_bdm_ppc_ops): Add new target vector fields.
4ef1f467 2946
b5c7e122
SS
2947 * printcmd.c (do_examine): When saving a value_ptr, remove it from
2948 the list of value_ptr's to be freed automatically; when discarding
2949 a previously saved value_ptr, free it.
2950 (print_formatted): Update comments; add new comments.
2951 (printf_command, print_insn): Purecov comments.
2952 (_initialize_printcmd): Add assign as a command if dbx_commands is
4ef1f467 2953 set; create va as an alias for disassemble if xdb_commands is set.
b5c7e122 2954 (address_info): New cases LOC_INDIRECT and
4ef1f467 2955 LOC_THREAD_LOCAL_STATIC.
b5c7e122 2956 (display_command): If tui_version and exp starts with a '$', then
4ef1f467 2957 don't display it unless tui_vSetLayoutTo fails.
b5c7e122
SS
2958 (disassemble_command): Add tuiDo calls.
2959 (print_scalar_formatted): For integers that are long long, check
4ef1f467
DT
2960 the print format and print out in binary octal, decimal, or
2961 hex. Call the new print_*_chars functions in valprint.c
4ef1f467
DT
2962 (print_frame_args): Altered calls to val_print, to reflect
2963 additional parameter to val_print (case LOC_BASEREG_ARG).
2964
b5c7e122
SS
2965 * procfs.c: (Procfs_init_inferior): Return value is now a void.
2966 (procfs_ops): Add new target vector fields.
2967 (procfs_create_inferior): Fix call to fork_inferior -- need another
4ef1f467
DT
2968 parameter.
2969
b5c7e122
SS
2970 * remote-adapt.c (adapt_open): Change stderr to gdb_stderr.
2971 (adpat_insert_breakpoint): Ditto.
2972 (init_adapt_ops): Add new target vector fields.
4ef1f467 2973
b5c7e122
SS
2974 * remote-array.c (array_wait): Change fflush to gdb_flush and
2975 stdout to gdb_stdout.
2976 (init_array_ops): Add new target vector fields.
4ef1f467 2977
b5c7e122
SS
2978 * remote-bug.c (bug_load): Change fflush to gdb_flush; stdout to
2979 gdb_stdout.
2980 (bug_wait): Change stderr to gdb_stderr.
2981 (bug_insert_breakpoint): Ditto.
2982 (init_bug_ops): Add new target vector fields.
4ef1f467
DT
2983
2984 * remote-e7000.c
b5c7e122
SS
2985 (init_e7000_ops): Add new target vector fields.
2986 * remote-eb.c (init_eb_ops): Ditto.
2987 * remote-es.c (init_es1800_ops): Ditto.
2988 (init_es1800_child_ops): Ditto.
2989 * remote-es.c (init_es1800_ops): Ditto.
2990 (init_es1800_child_ops): Ditto.
2991 * remote-hms.c (init_hms_ops): Ditto.
2992 * remote-hms.c (init_hms_ops): Ditto.
2993 * remote-nindy.c (init_nindy_ops): Ditto.
2994 * remote-nrom.c (init_nrom_ops): Ditto.
2995 * remote-os9k.c (init_rombug_ops): Ditto.
2996 * remote-rdp.c (init_remote_rdp_ops): Ditto.
2997 * remote-sds.c (init_sds_ops): Ditto.
2998 * remote-sim.c (init_gdbsim_ops): Ditto.
2999 * remote-st.c (init_st2000_ops): Ditto.
3000 * remote-udi.c (init_udi_ops): Ditto.
3001 * remote-vx.c (init_vx_ops): Ditto.
3002 (init_vx_run_ops): Ditto.
3003 * remote-vx.c: (Init_vx_ops): Ditto.
3004 (init_vx_run_ops): Ditto.
4ef1f467 3005
b5c7e122
SS
3006 * remote-mips.c (mips_getstring): Change stderr to gdb_stderr.
3007 (pmon_insert_breakpoint): Ditto.
3008 (pmon_remove_breakpoint): Ditto.
3009 (check_lsi_error): Ditto.
3010 (common_breakpoint): Ditto.
3011 (pmon_makeb64): Ditto.
4ef1f467 3012
b5c7e122
SS
3013 * remote-mips.c (mips_xfer_memory): Change fflush to gdb_flush;
3014 change stdout to gdb_stdout.
4ef1f467 3015
b5c7e122
SS
3016 * remote-mm.c (mm_open): Change stderr to gdb_stderr.
3017 (init_mm_ops): Add new target vector fields.
3018 (mm_load): Fixed params in commented out call to symbol_file_add.
4ef1f467 3019
b5c7e122 3020 * remote-nindy.c (instream): Change decl to FILE.
4ef1f467 3021
b5c7e122 3022 * remote-udi.c (udi_load): Fixed params in call to symbol_file_add.
4ef1f467 3023
b5c7e122
SS
3024 * remote-vx.c (vx_add_symbols): Fixed params in call to
3025 symbol_file_add.
4ef1f467 3026
b5c7e122 3027 * remote.c (init_remote_ops): Cosmetic change to match expected
4ef1f467
DT
3028 test output.
3029
b5c7e122 3030 * rs6000-nat.c (add_vmap): Add params to call to allocate_objfile.
4ef1f467 3031
b5c7e122 3032 * scm-lang.h: Add parameter to scm_val_print function decl.
4ef1f467 3033
b5c7e122 3034 * scm-valprint.c (scm_scmval_print): Cast svalue to (int); new
4ef1f467
DT
3035 parameter. This parameter is currently only used when evaluating
3036 C++ expressions. So, it is always 0 in this file.
b5c7e122 3037 (c_val_print): Fixed prototype decl; it needed an embedded_offset
4ef1f467
DT
3038 param.
3039
b5c7e122
SS
3040 * sol-thread.c (sol_core_ops): Add new target vector fields.
3041 (sol_thread_ops): Ditto.
4ef1f467 3042
b5c7e122 3043 * somsolib.c (DLD_FLAGS_MAPPRIVATE): New macro.
4ef1f467 3044 Define bit of __dld_flags in HP-UX a.out files.
b5c7e122
SS
3045 (DLD_FLAGS_HOOKVALID): Ditto.
3046 (DLD_FLAGS_LISTVALID): Ditto.
3047 (DLD_FLAGS_BOR_ENABLE): Ditto.
3048 (som_solib_total_st_size): Cumulative size in bytes of the
4ef1f467 3049 symbol tables of all shared objects on the so_list_head list.
b5c7e122 3050 (som_solib_st_size_threshhold_exceeded): Threshold for adding symbols
4ef1f467 3051 for shlibs.
b5c7e122 3052 (som_solib_sizeof_symbol_table): New function. Computes size of
4ef1f467 3053 symbol table for a shlib.
b5c7e122
SS
3054 (som_solib_load_symbols): New function. Load symbols from shlib.
3055 (som_solib_add): Detect if __dld_list is not valid.
4ef1f467
DT
3056 Record main program's symbol table size.
3057 Load symbols if called from command line.
3058 Keep threshold into account when loading shlib symbols.
b5c7e122
SS
3059 (som_solib_create_inferior_hook): Use dld_flags macros.
3060 (som_sharedlibrary_info_command): Let user know if symbols were
4ef1f467 3061 not loaded.
b5c7e122
SS
3062 (som_solib_restart): Discard all the shlibs descriptors.
3063 (_initialize_som_solib): Chenge help message for auto-solib-add
4ef1f467
DT
3064 command.
3065 Set threshold for symbol table to 50 megabytes.
b5c7e122
SS
3066 (_initialize_som_solib): Add call to som_solib_restart.
3067 (som_solib_restart): New function
3068 (som_solib_in_dynamic_linker): New function
3069 (som_solib_desire_dynamic_linker_symbols): New function
3070 (som_solib_unloaded_library_pathname): New function
3071 (som_solib_loaded_library_pathname): New function
3072 (som_solib_library_pathname): New function
3073 (som_solib_have_unload_event): New function
3074 (som_solib_have_load_event): New function
3075 (som_solib_create_catch_unload_hook): New function
3076 (som_solib_create_catch_load_hook): New function
3077 (som_solib_create_inferior_hook): Rewritten
3078 dld_cache: New struct
3079 addr_and_unwind_t: New struct
3080 (find_unwind_entry) add prototype
3081 Include assert.h, remove references to ASSERT macro,
3082 add include of fcntl.h so that O_RDONLY is defined.
3083 (som_solib_create_inferior_hook): Introduce new local
4ef1f467
DT
3084 msymbol2 and change some msymbol's to msymbol2's -- was clobbering
3085 msymbol, passing a NULL to lookup_minimal_symbol_solib_trampoline,
3086 and ultimately core dumping with a SEGV.
b5c7e122 3087 (som_solib_mapped_entry): Additional comments for text_addr,
4ef1f467
DT
3088 text_link_addr, text_end, and tsd_start_addr fields. Commenting
3089 out 2 tsd fields, __data_start and __data_end.
b5c7e122 3090 (som_solib_add_solib_objfile): Add params to calls to symbol_file_add.
4ef1f467
DT
3091 Add some code for distinguishing between a shared library and other
3092 objfiles. This appears to be a prelude to thread local storage.
b5c7e122 3093 (som_solib_load_symbols): Changes to printf statement
4ef1f467 3094 enclosed by SOLIB_DEBUG ifdef.
b5c7e122 3095 (som_solib_add): Change comment to correctly specify path
4ef1f467
DT
3096 to end.o -- /opt/langtools/lib/end.o. changes to printf statement
3097 enclosed by SOLIB_DEBUG ifdef.
3098 Removed several SOLIB_DEBUG ifdefs and the associated printfs.
3099 Add code to find the start address for the object file's thread
3100 local storage
3101 (som_solib_create_inferior_hook): Fix warning messages use correct
3102 path to end.o -- /opt/langtools/lib/end.o. Change control flow.
3103 No longer user early returns from function is cases of error.
b5c7e122
SS
3104 (reset_inferior_pid): New function
3105 (som_solib_remove_inferior_hook): New function
3106 (so_lib_thread_start_addr): New function. used for tsd.
3107 (struct som_solib_mapped_entry): Add new field tsd_start_addr.
3108 (struct so_list): Add new field solib_addr.
3109 (som_solib_add_solib_objfile): New function.
3110 (som_solib_load_symbols): Rewritten.
3111 (som_solib_add): Make sure we don't load the symbols in if the
4ef1f467 3112 threshold was exceeded.
b5c7e122 3113 (som_solib_get_solib_by_pc): New function. Return the address of
4ef1f467 3114 handle of the shared library.
b5c7e122 3115 (som_solib_restart): Disable breakpoints at restart.
4ef1f467 3116
b5c7e122 3117 * sparcl-tdep.c (init_sparclite_ops): Add new target vector fields.
4ef1f467
DT
3118
3119 * target.c (cleanup_target): Changed casting of default functions
3120 for to_has_forked, to_has_vforked, to_pid_to_exec_file to get rid
3121 of warnings. Fixed PARAMS for to_has_syscall_event. Fixed the
3122 return type on a few of the default function values.
b5c7e122 3123 (cleanup_target): Changes in the de_fault macro, both to
4ef1f467
DT
3124 accomodate the new target_ops vector fields and to use
3125 more accurate default functions.
b5c7e122
SS
3126 (debug_to_open): Change stderr to gdb_stderr.
3127 (debug_to_close): Ditto.
3128 (debug_to_attach): Ditto.
3129 (debug_to_post_attach): Ditto.
3130 (debug_to_require_attach): Ditto.
3131 (debug_to_detach): Ditto.
3132 (debug_to_require_detach): Ditto.
3133 (debug_to_resume): Ditto.
3134 (debug_to_wait): Ditto.
3135 (debug_to_post_wait): Ditto.
3136 (debug_to_fetch_registers): Ditto.
3137 (debug_to_store_registers): Ditto.
3138 (debug_to_prepare_to_store): Ditto.
3139 (debug_to_xfer_memory): Ditto.
3140 (debug_to_files_info): Ditto.
3141 (debug_to_insert_breakpoint): Ditto.
3142 (debug_to_remove_breakpoint): Ditto.
3143 (debug_to_terminal_init): Ditto.
3144 (debug_to_terminal_inferior): Ditto.
3145 (debug_to_terminal_ours_for_output): Ditto.
3146 (debug_to_terminal_ours): Ditto.
3147 (debug_to_terminal_info): Ditto.
3148 (debug_to_kill): Ditto.
3149 (debug_to_load): Ditto.
3150 (debug_to_lookup_symbol): Ditto.
3151 (debug_to_create_inferior): Ditto.
3152 (debug_to_post_startup_inferior): Ditto.
3153 (debug_to_acknowledge_created_inferior): Ditto.
3154 (debug_to_clone_and_follow_inferior): Ditto.
3155 (debug_to_post_follow_inferior_by_clone): Ditto.
3156 (debug_to_insert_fork_catchpoint): Ditto.
3157 (debug_to_remove_fork_catchpoint): Ditto.
3158 (debug_to_insert_vfork_catchpoint): Ditto.
3159 (debug_to_remove_vfork_catchpoint): Ditto.
3160 (debug_to_has_forked): Ditto.
3161 (debug_to_has_vforked): Ditto.
3162 (debug_to_can_follow_vfork_prior_to_exec): Ditto.
3163 (debug_to_post_follow_vfork): Ditto.
3164 (debug_to_insert_exec_catchpoint): Ditto.
3165 (debug_to_remove_exec_catchpoint): Ditto.
3166 (debug_to_has_execd): Ditto.
3167 (debug_to_reported_exec_events_per_exec_call): Ditto.
3168 (debug_to_has_syscall_event): Ditto.
3169 (debug_to_has_exited): Ditto.
3170 (debug_to_mourn_inferior): Ditto.
3171 (debug_to_can_run): Ditto.
3172 (debug_to_notice_signals): Ditto.
3173 (debug_to_thread_alive): Ditto.
3174 (debug_to_stop): Ditto.
3175 (debug_to_enable_exception_callback): Ditto.
3176 (debug_to_get_current_exception_event): Ditto.
3177 (debug_to_pid_to_exec_file): Ditto.
3178 (debug_to_core_file_to_sym_file): Ditto.
3179 (default_clone_and_follow_inferior): New function prototype
3180 decl and function definition.
3181 (dummy_target): Add new target_ops vector fields and their
4ef1f467 3182 initializations. More target_ops vector changes for HPUX new
b5c7e122
SS
3183 fields.
3184 (de_fault): Add new HPUX specific target_ops operations to the
4ef1f467 3185 de_fault macro
b5c7e122
SS
3186 (INHERIT): Add new HPUX specific target_ops operations.
3187 (debug_to_post_wait): New function.
3188 (debug_to_post_startup_inferior): Ditto.
3189 (debug_to_acknowledge_created_inferior): Ditto.
3190 (debug_to_clone_and_follow_inferior): Ditto.
3191 (debug_to_post_follow_inferior_by_clone): Ditto.
3192 (debug_to_create_catch_fork_hook): Ditto.
3193 (debug_to_create_catch_vfork_hook): Ditto.
3194 (debug_to_has_forked): Ditto.
3195 (debug_to_has_vforked): Ditto.
3196 (debug_to_post_follow_vfork): Ditto.
3197 (setup_target_debug): Initialize new target_ops vector fields.
3198 (nosupport_runtime): New function, used in cleanup_target
3199 (update_current_target): Add new new target_ops vector fields to
4ef1f467 3200 the INHERIT macro definition.
b5c7e122
SS
3201 (generic_mourn_inferior): The call to breakpoint_init_inferior now
3202 takes a parameter.
3203 (normal_pid_to_str): Add a \0 to the end of buf.
3204 (debug_to_has_syscall_event): New function.
3205 (debug_to_enable_exception_callback): New function.
3206 (debug_to_get_current_exception_event): New function.
3207 (setup_target_debug): Initialize the 3 new target_ops vector fields
3208 (struct signals): Fix message associated with SIGRETRACT.
3209 (return_one): New function, used by the de_fault macro
3210 (debug_to_post_attach): New function.
3211 (debug_to_wait): Add new cases TARGET_WAITKIND_FORKED,
4ef1f467 3212 TARGET_WAITKIND_VFORKED, TARGET_WAITKIND_EXECD.
b5c7e122
SS
3213 (debug_to_insert_fork_catchpoint): New function.
3214 (debug_to_remove_fork_catchpoint): Ditto.
3215 (debug_to_insert_vfork_catchpoint): Ditto.
3216 (debug_to_remove_vfork_catchpoint): Ditto.
3217 (debug_to_can_follow_vfork_prior_to_exec): Ditto.
3218 (debug_to_insert_exec_catchpoint): Ditto.
3219 (debug_to_remove_exec_catchpoint): Ditto.
3220 (debug_to_core_file_to_sym_file): Ditto.
3221 (setup_target_debug): Give new fields in current_target target_ops
4ef1f467
DT
3222 vector values.
3223
b5c7e122
SS
3224 * target.h: Include symtab.h.
3225 (target_waitkind): New enumerated values
3226 TARGET_WAITKIND_SYSCALL_ENTRY, TARGET_WAITKIND_SYSCALL_RETURN,
4ef1f467 3227 TARGET_WAITKIND_FORKED, TARGET_WAITKIND_VFORKED,
b5c7e122
SS
3228 TARGET_WAITKIND_EXECD.
3229 (target_waitstatus): Add a syscall_id field to structure.
3230 (child_has_syscall_event): New decl.
3231 (child_thread_alive): New decl.
3232 (target_ops): Add 3 new fields: To_has_syscall_event,
3233 to_enable_exception_callback, to_get_current_exception_event
3234 (target_enable_exception_callback): New macro.
3235 (target_has_syscall_event): New macro.
3236 (target_get_current_exception_event): New macro.
3237 (TARGET_DISABLE_HW_WATCHPOINTS): New macro.
3238 (TARGET_ENABLE_HW_WATCHPOINTS): New macro.
3239 (PC_REQUIRES_RUN_BEFORE_USE): New macro.
3240 (target_tid_to_str): New macro.
3241 (target_waitstatus): Additional fields in struct to keep track
3242 of child pid and pathname to execd file.
3243 (target_ops): Add in the new target_ops function pointer fields.
4ef1f467 3244 New macros to go along with new target_ops fields.
b5c7e122 3245 In target_waitstatus.value, change name of child_pid field to
4ef1f467 3246 related_pid.
b5c7e122
SS
3247 (target_pid_or_tid_to_str): Define default macro.
3248 Add missing #endif after PC_REQUIRES_RUN_BEFORE_USE definition
3249 (ENSURE_VFORKING_PARENT_REMAINS_STOPPED): Define default macro.
3250 (RESUME_EXECD_VFORKING_CHILD_TO_GET_PARENT_VFORK): Define default
3251 macro.
3252 There are new function decls for to_require_attach
3253 and to_require_detach. There are also new macros,
3254 target_require_attach and target_require_detach. There are
3255 also new function decls for find_default_require_detach
3256 and find_default_require_attach.
3257 (target_ops): New fields to_post_wait, to_post_startup_inferior
3258 to_acknowledge_created_inferior, to_clone_and_follow_inferior,
3259 to_post_follow_inferior_by_clone, to_create_catch_fork_hook,
3260 to_create_catch_vfork_hook, to_has_forked, to_has_vforked,
3261 to_post_follow_vfork, to_pid_to_exec_file.
3262 New function definitions child_pid_to_exec_file, child_post_wait,
3263 child_post_startup_inferior, child_acknowledge_created_inferior,
3264 child_clone_and_follow_inferior,
3265 child_post_follow_inferior_by_clone, child_create_catch_fork_hook,
3266 child_create_catch_vfork_hook, child_has_forked,
3267 child_has_vforked, child_acknowledge_created_inferior,
3268 child_post_follow_vfork.
3269 New macros target_post_startup_inferior,
3270 target_acknowledge_created_inferior,
3271 target_clone_and_follow_inferior,
3272 target_post_follow_inferior_by_clone,
3273 target_create_catch_fork_hook, target_create_catch_vfork_hook,
3274 target_pid_to_exec_file.
3275 (find_default_clone_and_follow_inferior): New function prototype.
3276
3277start-sanitize-sky
3278 * txvu-tdep.c (txvu_print_register): Add embedded_offset param
3279 to val_print call.
3280end-sanitize-sky
3281
3282 * v850ice.c (init_850ice_ops): Init new target vector fields.
3283
3284 * valprint.c (print_binary_chars): Print out long long as
3285 a binary number.
3286 (print_octal_chars): Print out long long as an octal number
3287 (print_decimal_chars): Print out long long as a decimal number
3288 (strcat_longest): Define it.
3289 * valprint.c: Hp merge, 4/15/98 snapshot
3290 Add parameter to val_print. This is used for
4ef1f467
DT
3291 evaluating C++ expressions.
3292
b5c7e122 3293 * value.h (VALUE_POINTED_TO_OFFSET): New macro.
4ef1f467
DT
3294 Add field pointed_to_offset to value structure.
3295 Add prototypes for new functions in valops.c.
b5c7e122 3296 (write_register_pid): Change prototype to match
4ef1f467 3297 function.
b5c7e122 3298 (val_print function decl): Additional parameter.
4ef1f467 3299 (VALUE_EMBEDDED_OFFSET): New macro.
b5c7e122 3300 (find_rt_vbase_offset): New function decl -- for C++ support.
4ef1f467 3301
0bf2ba41
PB
3302Wed Dec 23 15:03:42 1998 Per Bothner <bothner@cygnus.com>
3303
3304 * Makefile.in (READLINE_CFLAGS): Search $(READLINE_SRC)/.. rather
3305 than $(READLINE_SRC) so #include <readline/readline.h> will work.
3306 * top.c: #include <readline/history.h> instead of "history.h".
3307 * tracepoint.c: Likewise.
3308 * mac-xdep.c: Likewise.
3309
30ce5223
AC
3310Wed Dec 23 12:32:00 1998 Andrew Cagney <cagney@chook.cygnus.com>
3311
3312 * defs.h (TARGET_FLOAT_FORMAT, TARGET_DOUBLE_FORMAT): Define using
3313 TARGET_BYTE_ORDER and not target_byte_order.
3314
57ac5cff
EZ
3315Tue Dec 22 10:51:33 1998 Elena Zannoni <ezannoni@kwikemart.cygnus.com>
3316
83e2dcc0
EZ
3317 * config/i386/cygwin.mh (TERMCAP): define.
3318 (from Chris Faylor, cgf@cygnus.com)
3319
57ac5cff
EZ
3320 * top.c: specify directory name for including readline.h
3321
3322 * tracepoint.c: ditto.
3323
3324 * utils.c: ditto.
3325
4a1b8bb2
MA
3326Mon Dec 21 13:30:34 1998 Mark Alexander <marka@cygnus.com>
3327
3328 * value.c (value_virtual_fn_field): Handle the situation where
3329 vtbl is a pointer to a structure instead of a pointer to an array.
3330
3331Mon Dec 21 10:38:11 1998 Andrew Cagney <cagney@chook>
3332
3333 * mips-tdep.c: (MIPS_DEFAULT_FPU_TYPE): Default to
3334 MIPS_FPU_DOUBLE.
3335
6535b1df
AC
33361998-12-17 J.T. Conklin <jtc@redbacknetworks.com>
3337
3338 * blockframe.c (get_frame_saved_regs): If the saved_regs_addr ptr
3339 is null, ensure that saved registers are copied from the local
3340 variable that was used to obtain them.
3341
0e52a532
SG
3342Sat Dec 19 09:55:09 1998 Stu Grossman <grossman@babylon-5.cygnus.com>
3343
3344 * mips-tdep.c (mips32_heuristic_proc_desc): Clear temp_saved_regs
3345 on restart. Fixes problem with backtracing through functions that
3346 use virtual frame pointers.
3347
1fe2e66a
AC
3348Fri Dec 18 14:23:34 1998 Andrew Cagney <cagney@chook>
3349
0e52a532
SG
3350 * mips-tdep.c (mips_push_arguments): Don't left-shift small
3351 structs being passed in a register when an O64 target.
3352
1fe2e66a
AC
3353 * config/mips/tm-mips.h (enum mips_fpu_type, mips_fpu): Move to
3354 mips-tdep.c.
3355
3356 * mips-tdep.c (mips_fpu_string): Delete variable.
3357 (mips_fpu_type_auto): New variable.
3358 (mips_fpu_type): Rename mips_fpu.
3359 (_initialize_mips_tdep): Delete initialization of mips_fpu et.al.
3360 Rewrite ``set mipsfpu'' command set.
3361 (set_mipsfpu_command, show_mipsfpu_command,
3362 set_mipsfpu_single_command, set_mipsfpu_double_command,
3363 set_mipsfpu_none_command, set_mipsfpu_auto_command): New
3364 functions, handle commands.
3365 (mips_push_arguments, mips_push_dummy_frame, mips_pop_frame,
3366 mips_extract_return_value): Update.
3367 (start-sanitize-carp start-sanitize-vr4xxx);
3368 (_initialize_mips_tdep): Set mips_fpu_type according to current
3369 processor.
3370 (_initialize_mips_tdep): Only define ``set processor'' command
3371 when not multi-sim.
3372 (end-sanitize-carp end-sanitize-vr4xxx)
3373
2e64ee9a
AC
3374start-sanitize-carp start-sanitize-vr4xxx
3375Fri Dec 18 12:56:56 1998 Andrew Cagney <cagney@chook>
3376
3377 * gdbarch.h (gdbarch_init_ftype): Pass struct gdbarch_info
3378 by-value.
3379 (struct gdbarch_info): Add struct gdbarch_tdep_info *tdep_info.
3380 * gdbarch.c (gdbarch_update): Update.
3381 * mips-tdep.c: (mips_gdbarch_init): Update
3382
3383 * gdbarch.c (gdbarch_update): Add more tracing.
3384
3385end-sanitize-carp end-sanitize-vr4xxx
3386Thu Dec 17 02:15:40 1998 Andrew Cagney <cagney@chook.cygnus.com>
3387
3388 * configure.tgt (gdb_target): Identify mips64*vr4100*-*-elf* as
3389 vr4100.
3390 * config/mips/vr4100.mt, config/mips/tm-vr4100.h: Replace
3391 vr4xxx.mt and tm-vr4xxx.h.
3392start-sanitize-vr4xxx
3393
3394 * configure.tgt (gdb_target): Identify mips64*vr4xxx*-*-elf* as
3395 vr4xxx.
3396 * config/mips/vr4xxx.mt, config/mips/tm-vr4xxx.h: New files.
3397 Define GDB_MULTI_ARCH and MIPS_DEFAULT_FPU_TYPE.
3398end-sanitize-vr4xxx
3399
dcf46491 3400start-sanitize-carp start-sanitize-vr4xxx
ff6f2f57
AC
3401Thu Dec 17 02:06:17 1998 Andrew Cagney <cagney@chook.cygnus.com>
3402
3403 * mips-tdep.c (mips_gdbarch_init): New function. Initialize a MIPS
3404 architecture vector.
3405 (_initialize_mips_tdep): Register MIPS with GDBARCH.
3406 (struct gdbarch_tdep): Define.
3407 (MIPS_EABI, MIPS_LAST_FP_ARG_REGNUM, MIPS_LAST_ARG_REGNUM): When
3408 multi-arch, get value from gdbarch->tdep.
3409
115c338d
AC
3410Thu Dec 17 02:01:58 1998 Andrew Cagney <cagney@chook>
3411
3412 * gdbtypes.c (_initialize_gdbtypes): Register all builtin types
3413 with gdbarch so that they are updated whenever the architecture is
3414 changed.
3415
dcf46491
AC
3416Thu Dec 17 01:58:16 1998 Andrew Cagney <cagney@chook>
3417
3418 * gdbarch.h (GDB_MULTI_ARCH): New macro, default to zero.
3419 (current_gdbarch): Current architecture pointer.
3420 * gdbarch.c (struct gdbarch): Define.
3421
3422 * gdbarch.h (TARGET_ARCHITECTURE, TARGET_BYTE_ORDER,
3423 TARGET_LONG_BIT, TARGET_LONG_LONG_BIT, TARGET_PTR_BIT): When
3424 multi-arch force definition.
3425 * gdbarch.h, gdbarch.c (gdbarch_tdep, gdbarch_bfd_arch_info,
3426 gdbarch_byte_order, {set,}gdbarch_long_bit,
3427 {set,}gdbarch_long_long_bit, {set,}gdbarch_ptr_bit): Corresponding
3428 functions.
3429
3430 * gdbarch.h (struct gdbarch_list, struct gdbarch_info,
3431 gdbarch_init_ftype), gdbarch.c (register_gdbarch_init): Mechanism
3432 for registering an architecture with GDB.
3433 (gdbarch_list_lookup_by_info, gdbarch_alloc, gdbarch_update,
3434 verify_gdbarch): Support functions.
3435
3436 * gdbarch.h (gdbarch_data_ftype), gdbarch.c
3437 (register_gdbarch_data, gdbarch_data): Mechanism for maintaining
3438 per-architecture pointers.
3439 (init_gdbarch_data): Support functions.
3440
3441 * gdbarch.h (gdbarch_swap_ftype), gdbarch.c
3442 (register_gdbarch_swap): Ditto for swapped memory regions.
3443 (init_gdbarch_swap, swapout_gdbarch_swap, swapin_gdbarch_swap):
3444 Support functions.
3445
3446 * gdbarch.c (set_endian_big, set_endian_little, set_architecture,
3447 info_architecture, set_gdbarch_from_file): Hook in multi-arch
3448 code by calling gdbarch_update.
3449 (default_gdbarch): Default multi-arch vector. Use host's type
3450 system for values.
3451
3452end-sanitize-carp end-sanitize-vr4xxx
e81bad50
AC
3453Thu Dec 17 01:34:36 1998 Andrew Cagney <cagney@chook>
3454
3455 * gdbtypes.c (build_gdbtypes): New function.
3456 (_initialize_gdbtypes): Call.
3457
5036d102
AC
3458Wed Dec 16 11:47:00 1998 Andrew Cagney <cagney@chook>
3459
3460 * gdbarch.c (show_architecture): Use TARGET_ARCHITECTURE.
3461 * gdbarch.h, gdbarch.c: Fix typo's. Use struct's in preference to
3462 types.
3463 * gdbarch.h, gdbarch.c (gdbarch_debug): Add ``set archdebug'' to
3464 command set.
3465
759181e3
AC
3466Tue Dec 15 23:46:40 1998 Andrew Cagney <cagney@chook>
3467
3468 * config/mips/tm-*.h: (TARGET_BYTE_ORDER_DEFAULT,
3469 TARGET_BYTE_ORDER_SELECTABLE_P): Replace TARGET_BYTE_ORDER and
3470 TARGET_BYTE_ORDER_SELECTABLE.
3471
fc5b254a
JM
34721998-12-14 Anthony Thompson (athompso@cambridge.arm.com)
3473
3474 * remote-rdp.c (rdp_init): Don't discard first character on reset.
3475 (translate_open_mode): Define table.
3476 (exec_swi): Handle SWI_Clock. SWI_Open now handles stdin/stdout.
3477 SWI_Write returns number of bytes not written. SWI_Read does the
3478 same. SWI_Seek should return success/failure flag. Fix SWI_Flen.
3479
6d2743e5
SS
34801998-12-14 J.T. Conklin <jtc@redbacknetworks.com>
3481
3482 * config/i386/nbsd.mh, config/m68k/nbsd.mh, config/ns32k/nbsd.mh
3483 (XDEPFILES): Add ser-tcp.o.
3484
14a15da3
AC
3485Mon Dec 14 14:46:13 1998 Andrew Cagney <cagney@b1.cygnus.com>
3486
456c9134
AC
3487 * monitor.c (monitor_expect, monitor_printf_noecho,
3488 monitor_printf): Always compile EXTRA_RDEBUG code.
3489 (RDEBUG): Ditto.
3490
14a15da3
AC
3491 From Michael Meissner <meissner@cygnus.com>:
3492 * ppcbug-rom.c (init_ppc_cmds): Cleanup formatting.
3493
20dd6c3b
AC
34941998-12-08 Michael Meissner <meissner@cygnus.com>
3495
3496 * monitor.c (monitor_printable_string): New function to convert a
3497 string into a printable representation.
3498 (monitor_error): Call error after converting string into printable
3499 format.
3500 (monitor_printf{,_noecho}): If EXTRA_RDEBUG is defined, convert
3501 string into printable form before printing.
3502 (monitor_expect): Ditto.
3503 (monitor_read_memory{,_single}): Call monitor_error, not error.
3504 (monitor_read_memory): Return immediately if length is 0.
3505
3506 * ppcbug-rom.c (init_ppc_cmds): Fill in dump_registers field,
3507 which is now required.
3508
f7e85b1b
AC
3509Mon Dec 14 11:01:39 1998 Andrew Cagney <cagney@b1.cygnus.com>
3510
3511 * gdbarch.h, gdbarch.c: Consolidate the semi-dynamic target system
3512 dependant GDB parameters.
3513 (set_gdbarch_from_file): Combine set_architecture_from_file and
3514 set_byte_order_from_file.
3515 * top.c, defs.h, printcmd.c: Delete them from here.
3516 * Makefile.in: Add gdbarch.[ch].
3517 * exec.c (exec_file_command): Call set_gdbarch_from_file.
3518
aaa3c096
AC
3519Sun Dec 13 09:52:51 1998 Andrew Cagney <cagney@b1.cygnus.com>
3520
3521 * defs.h (TARGET_PRINT_INSN_INFO, TARGET_PRINT_INSN): Define.
3522 (TARGET_ARCHITECTURE, TARGET_ARCHITECTURE_AUTO): Define.
3523 (TARGET_BYTE_ORDER_AUTO): Define.
3524 (TARGET_BYTE_ORDER_SELECTABLE_P): Provide default. Replaces
3525 TARGET_BYTE_ORDER_SELECTABLE. Handle compat issues.
3526 (BITS_BIG_ENDIAN): Simplify.
3527 (TARGET_FLOAT_FORMAT): Ditto.
3528 (TARGET_DOUBLE_FORMAT):
3529
f0b51514
AC
3530 * remote-e7000.c, sh-tdep.c, printcmd.c, remote-sim.c,
3531 remote-rdi.c, sparc-tdep.c: Update.
aaa3c096
AC
3532
3533 * config/powerpc/tm-ppcle-eabi.h, config/rs6000/tm-rs6000.h,
3534 config/powerpc/tm-ppc-eabi.h, config/mn10300/tm-mn10300.h:
3535 Convert.
3536
86a51f41
AC
3537Sat Dec 12 09:28:13 1998 Andrew Cagney <cagney@b1.cygnus.com>
3538
3539 * frame.h (struct frame_info): Add CORE_ADDR *saved_regs and
3540 struct frame_extra_info *extra_info.
3541 (frame_obstack_alloc, frame_saved_regs_zalloc): Prototype.
3542 (SIZEOF_FRAME_SAVED_REGS): Provide default.
3543 (FRAME_INIT_SAVED_REGS): Provide default.
3544 (struct frame_saved_regs): Deprecate.
3545 (EXTRA_FRAME_INFO): Deprecate.
3546
3547 * blockframe.c (frame_obstack_alloc, frame_saved_regs_zalloc): New
3548 function.
3549 (generic_get_saved_register): Use FRAME_INIT_SAVED_REGS and
3550 frame->saved_regs.
3551 (frame_cache_obstack): Make static.
3552 (get_frame_saved_regs): Deprecate. Copy the saved regs into the
3553 frame buffer.
3554
3555 * stack.c (frame_info): Rewrite using frame->saved_regs and
3556 FRAME_INIT_SAVED_REGS.
3557 * findvar.c (find_saved_register): Ditto.
3558
3559 * config/mn10300/tm-mn10300.h (EXTRA_FRAME_INFO): Delete.
3560 (FRAME_FIND_SAVED_REGS): Replace with FRAME_INIT_SAVED_REGS. No-op.
3561 * mn10300-tdep.c: Update.
3562 (analyze_dummy_frame): New function.
3563 (struct frame_extra_info): Define.
3564 (mn10300_init_extra_frame_info): Update.
3565
3566 * config/rs6000/tm-rs6000.h: (EXTRA_FRAME_INFO): Delete.
3567 (FRAME_FIND_SAVED_REGS): Replace with FRAME_INIT_SAVED_REGS.
3568 (FRAME_ARGS_ADDRESS): Replace with function.
3569
3570 * rs6000-tdep.c (frame_get_saved_regs): Rename from
3571 frame_get_cache_fsr.
3572 (rs6000_init_extra_frame_info): New function.
3573 (rs6000_frame_init_saved_regs): Call frame_get_saved_regs.
3574 (FUNCTION_START_OFFSET): Delete references, was ZERO.
3575 (rs6000_frame_args_address): New function.
3576 (frame_initial_stack_address): Update
3577
3578 * config/mips/tm-mips.h (EXTRA_FRAME_INFO): Remove saved_regs.
3579 (FRAME_INIT_SAVED_REGS): Rename FRAME_FIND_SAVED_REGS, update.
3580 * mips-tdep.c (mips_find_saved_regs, read_next_frame_reg,
3581 init_extra_frame_info, mips_pop_frame): Update.
3582 * config/alpha/tm-alpha.h (FRAME_INIT_SAVED_REGS,
3583 EXTRA_FRAME_INFO), alpha-tdep.c (alpha_find_saved_regs,
3584 alpha_pop_frame, init_extra_frame_info): Ditto.
3585
3586 * i960-tdep.c, m88k-tdep.c, h8300-tdep.c: Update.
3587 * config/sparc/tm-sparc.h, config/a29k/tm-a29k.h: Define
3588 FRAME_INIT_SAVED_REGS as no-op.
3589
3590 * z8k-tdep.c (z8k_init_frame_saved_regs): Rename
3591 get_frame_saved_regs.
3592 (examine_frame, z8k_skip_prologue): Update.
3593 * config/z8k/tm-z8k.h (FRAME_INIT_SAVED_REGS): Define.
3594
a4c7e965
FN
35951998-12-11 Fernando Nasser <fnasser@totem.to.cygnus.com>
3596
3597 From J.T. Conklin <jtc@redbacknetworks.com>:
3598 * i386-stub.c (handle_exception): Add support for 'P' command.
3599 (NUMREGS): New macro.
3600
852b7d11
JM
3601start-sanitize-sky
36021998-12-11 Jeff Law (law@cygnus.com)
3603
b5c7e122 3604 * txvu-tdep.c (set_vxtu_prompt): Rename set_prompt.
0b174df8 3605
b5c7e122
SS
3606 * configure.in (with-sim-gpu2): Do not emit a -L argument without
3607 an associated pathname. Link in the math library after the gpu2
3608 library.
852b7d11
JM
3609
3610end-sanitize-sky
8b1773ee
AC
3611Fri Dec 11 09:07:05 1998 Andrew Cagney <cagney@b1.cygnus.com>
3612
3613 * i386b-nat.c: Include "expression.h".
3614
3615 * symtab.h: Don't include "gnu-regex.h".
3616
3617 * solib.c (solib_add_common_symbols): Cast parameters passed to
3618 make_cleanup to use the new make_cleanup_func typedef.
3619
3620 * inftarg.c: Include "wait.h" after, rather than before, <wait.h>.
3621 "wait.h" was defining all WIF* macro's instead of filling in those
3622 that <wait.h> missed.
3623
d70a61e7
AC
3624Fri Dec 11 09:52:04 1998 Andrew Cagney <cagney@chook>
3625
f0b51514
AC
3626 * mipsm3-nat.c, hppah-nat.c, infptrace.c, i386gnu-nat.c,
3627 hppab-nat.c, core-aout.c, arm-xdep.c, alpha-nat.c, altos-xdep.c,
3628 pyr-xdep.c, remote-st.c, remote-os9k.c, tahoe-tdep.c, pyr-tdep.c,
3629 vax-tdep.c: Replace reg_name with REGISTER_NAME.
d70a61e7 3630
4770ff08
DT
3631Thu Dec 10 15:19:40 1998 David Taylor <taylor@texas.cygnus.com>
3632
3633 The following changes were made by Jim Blandy <jimb@cygnus.com>,
3634 Edith Epstein <eepstein@cygnus.com>, Elena Zannoni
3635 <ezannoni@cygnus.com> Stan Shebs <shebs@cygnus.com>, and David
3636 Taylor <taylor@cygnus.com>, as part of the project to merge in
3637 changes originally made by HP; HP did not create ChangeLog
3638 entries.
3639
b5c7e122 3640 * annotate.c (annotate_catchpoint): New function.
4770ff08 3641
b5c7e122 3642 * annotate.h (annotate_catchpoint): declare it; add new includes
4770ff08
DT
3643 (symtab.h and gdbtypes.h).
3644
b5c7e122 3645 * buildsym.h: add external var processing_hp_compilation.
4770ff08
DT
3646
3647 * coff-solib.h:
3648 (SOLIB_REMOVE_INFERIOR_HOOK): new macro. defined to 0.
3649 functionality not implemented for coff.
3650 (SOLIB_CREATE_CATCH_LOAD_HOOK): New macro; generate error msg for coff.
3651 (SOLIB_CREATE_CATCH_UNLOAD_HOOK): ditto.
3652 (SOLIB_HAVE_LOAD_EVENT): ditto.
3653 (SOLIB_LOADED_LIBRARY_PATHNAME): ditto.
3654 (SOLIB_HAVE_UNLOAD_EVENT): ditto.
3655 (SOLIB_UNLOADED_LIBRARY_PATHNAME): ditto.
3656 (SOLIB_IN_DYNAMIC_LINKER): ditto.
3657 (SOLIB_RESTART): ditto.
3658
3659 * complaints.h: add ifdef...endif pair at beginning and end of file.
3660
3661 * dstread.c (dst_symfile_read): the parameter to fileno
3662 must be of type FILE *. So cast abfd->iostream in the
3663 call to fileno must be cast as a FILE *, not a GDB_FILE *.
3664 This will work because abfd->iostream is declared and
3665 given a value in bdf and bfd will continue to use FILE
3666 rather than GDB_FILE.
3667
3668 * dwarf2read.c (dwarf_bool_name): change parameter from bool
3669 to mybool. sigh.
3670
3671 * expression.h: include symtab.h
3672
3673 * frame.h (print_only_stack_frame, show_stack_frame,
3674 show_frame_info): add prototypes.
3675
3676 * gdbcmd.h (togglelist, stoplist): declare.
3677
3678 * gdbcore.h (read_memory_string): declare it.
3679 (exec_file_attach): add prototype.
3680
3681 * inflow.c (terminal_is_ours): make non static.
3682
3683 * minsyms.c: minor spacing change.
3684
3685 * parser-defs.h (parse_nested_classes_for_hpacc): add prototype.
3686 (find_template_name_end): add prototype.
3687
3688 * scm-lang.c (scm_unpack): cast svalue to (int).
3689
3690 * top.h: declare it.
3691
b5c7e122 3692 * valprint.h (print_binary_chars): new prototype definition.
4770ff08
DT
3693 (print_octal_chars): new prototype definition.
3694 (print_decimal_chars): new prototype definition.
3695
9ddf9aa9
AC
3696Thu Dec 10 07:14:56 1998 Andrew Cagney <cagney@chook>
3697
3698 * config/arm/tm-arm.h, arm-tdep.c: Replace REGISTER_NAMES with
3699 REGISTER_NAME.
3700 * mn10300-tdep.c, config/mn10300/tm-mn10300.h: Ditto.
3701 * sh-tdep.c, config/sh/tm-sh.h: Ditto.
3702
3703 * defs.h (REGISTER_NAME): Provide default for old targets.
3704 * defs.h, infcmd.c: Rename reg_names to gdb_register_names.
3705
3706 * tracepoint.c, target.c, parse.c, infcmd.c, remote-udi.c,
3707 expprint.c, infcmd.c, printcmd.c, eval.c, stack.c, findvar.c,
3708 remote-udi.c, config/alpha/tm-alpha.h, remote-sim.c, d30v-tdep.c,
91e14aa9
SS
3709 config/mips/tm-mips.h, hppa-tdep.c: Use REGISTER_NAME.
3710start-sanitize-sky
3711 * config/mips/tm-txvu.h, txvu-tdep.c: Ditto.
3712end-sanitize-sky
9ddf9aa9 3713
e351e0fc
JW
37141998-12-08 James E Wilson <wilson@wilson-pc.cygnus.com>
3715
3716 * config/i960/mon960.mt (SIM_OBJS, SIM): Define.
3717
ab796a3d
SS
3718Tue Dec 8 16:49:24 1998 Stan Shebs <shebs@andros.cygnus.com>
3719
3720 * NEWS: Add mentions of newly-added configurations.
3721
ac95dc5e
JM
37221998-12-08 Philippe De Muyter <phdm@macqel.be>
3723
3724 * config/xm-aix4.h (SIGWINCH_HANDLER): Function `aix_resize_window'
3725 must accept a signal number as parameter.
3726 * config/rs6000/xm-rs6000.h (SIGWINCH_HANDLER): Ditto.
3727 * utils.c (initialize_utils): Give a parameter to `SIGWINCH_HANDLER'.
3728
3729 * inferior.h (register_valid): Variable's type is `SIGNED char', not
3730 `char'.
3731 * findvar.c (register_valid): Ditto.
3732
3733 * defs.h (make_cleanup_func): Protect parameter list by `PARAMS'.
3734 * gdbthread.h (unbind_target_thread_vector): Likewise.
3735
1994dc7c
EE
3736Tue Dec 8 15:09:44 1998 Edith Epstein <eepstein@sophia.cygnus.com>
3737
09faf0c2
EE
3738 Merged in m68k-linux patch from Andreas Schwab
3739
3740 1998-12-01 Andreas Schwab <schwab@issan.cs.uni-dortmund.de>
3741
3742 * Makefile.in, configure.host, configure.tgt: Add support for
3743 m68k-linux.
3744 * config/m68k/linux.mh: New file.
3745 * config/m68k/linux.mt: New file.
3746 * config/m68k/nm-linux.h: New file.
3747 * config/m68k/tm-linux.h: New file.
3748 * config/m68k/xm-linux.h: New file.
3749 * gdb/m68klinux-nat.c: New file.
3750 * gdbserver/low-linux.c: Add support for m68k-linux.
3751 * gdb/config/m68k/tm-m68k.h (NUM_FREGS): New macro.
1994dc7c 3752
223a3588
JM
37531998-12-07 Jason Molenda (jsm@bugshack.cygnus.com)
3754
3755 * config/i386/xm-cygwin.h: Remove REQUEST_QUIT definition.
3756 * config/powerpc/xm-cygwin.h: Ditto.
3757
0bd416fe
JB
37581998-12-07 Jim Blandy <jimb@zwingli.cygnus.com>
3759
3760 * rs6000-tdep.c (pop_frame): Correctly find the registers saved in
3761 the stack frame. Their offset from the previous stack frame is in
3762 fdata.gpr_offset and fdata.fpr_offset, not fdata.offset.
3763 (gdb.base/return.exp)
3764 * config/rs6000/tm-rs6000.h: Doc fixes.
3765
edc452d0
JM
37661998-12-03 Jason Molenda (jsm@bugshack.cygnus.com)
3767
3768 * monitor.c (monitor_read_memory): Zero out pattern buffers
3769 before calling re_search.
3770 (parse_register_dump): Ditto.
254ba536
ZR
3771
3772Thu Dec 3 10:37:22 EST 1998 Zdenek Radouch (radouch@cygnus.com)
3773
3774 FR30 updates - still very preliminary.
3775 * configure.tgt
3776 * fr30-tdep.c
3777 * config/fr30/tm-fr30.h
254ba536 3778
1c3cd1b0
AC
3779Thu Dec 3 16:30:35 1998 Andrew Cagney <cagney@b1.cygnus.com>
3780
3781 * ax-gdb.c: Include target.h.
3782
3783Tue Dec 3 10:59:00 1998 Andrew Cagney <cagney@b1.cygnus.com>
3784
3785 * ax-gdb.c (_initialize_ax_gdb), i960-tdep.c (pop_frame),
3786 monitor.c (flush_monitor_dcache, longlongendswap), remote-array.c
3787 (hexword2ascii), w89k-rom.c (init_w89k_cmds), z8k-tdep.c
3788 (init_frame_pc, extract_return_value): Make return type void.
3789 * monitor.c (monitor_write_even_block): Make return type explicit.
3790 (monotor_read_memory_block): Delete function.
3791 * monitor.h: Update.
3792 * remote.c (remote_get_threadlist, remote_update_threads),
3793 remote-array.c (array_get_packet), remote-rdi.c (Fail): Always
3794 return a value.
3795 * m32r-tdep.c (m32r_fix_call_dummy): From Michael Snyder, void
3796 function.
3797 * jv-valprint.c (java_val_print): From Stu Grossman. Return 0 by
3798 default.
3799
55be5ef5
MS
3800Wed Dec 2 15:11:38 1998 Michael Snyder <msnyder@cleaver.cygnus.com>
3801
3802 * tracepoint.c: Move default definition of
3803 TARGET_VIRTUAL_FRAME_POINTER from here to target.h.
3804 * target.h: Add default definition of TARGET_VIRTUAL_FRAME_POINTER.
3805 * ax-gdb.c (gen_frame_args_address, gen_frame_locals_address):
3806 use TARGET_VIRTUAL_FRAME_POINTER to determine frame pointer.
3807 (gen_trace_for_expr): new argument, address of tracepoint,
3808 gets passed to new_agent_expr and added to struct agent_expr.
3809 (is_nontrivial_conversion): call to new_agent_expr now requires
3810 a dummy argument. (agent_command): use get_current_frame() to
3811 get current PC scope; pass it to gen_trace_for_expr.
3812 * ax-general.c (new_agent_expr): new argument, address of
3813 tracepoint; store it in new field of struct agent_expr.
3814 * ax.h (struct agent_expr): add new field for tracepoint address.
3815 * ax-gdb.h: change prototypes to match above changes.
3816
a9d0b923
MS
3817 * m32r-tdep.c (decode_prologue): If no branch or push fp is found,
3818 but there's a stack adjust, then use that as the end of prologue.
3819 (m32r_skip_prologue): don't skip past the first line if there is
3820 line info. (m32r_virtual_frame_pointer): new function.
3821 (m32r_fix_call_dummy): no return value needed.
3822
55be5ef5
MS
3823Tue Dec 1 10:59:00 1998 Andrew Cagney <cagney@b1.cygnus.com>
3824
3825 * ocd.c (remote_timeout), (BDM_BREAKPOINT), monitor.c (readchar),
3826 remote.c: Cleanup closing of open comments.
3827
3f235519
DE
3828Mon Nov 30 16:04:03 1998 Doug Evans <devans@canuck.cygnus.com>
3829
3830 * config/fr30/tm-fr30.h (INNER_THAN): Add parameters.
3831
b6960094
AC
3832Mon Nov 30 11:18:48 1998 Andrew Cagney <cagney@chook>
3833
3834 * frame.h (FRAME_CHAIN_VALID): Default to
3835 default_frame_chain_valid.
3836 * blockframe.c (default_frame_chain_valid): New function.
3837
3838 * frame.h (FRAME_CHAIN_VALID_ALTERNATIVE): Delete references
3839 * blockframe.c (alternate_frame_chain_valid): New function.
3840 * config/mips/tm-mipsv4.h, config/m88k/tm-delta88v4.h,
3841 config/m68k/tm-monitor.h, config/m68k/tm-m68kv4.h,
3842 config/i386/tm-i386v4.h, config/i386/tm-i386nw.h,
3843 config/h8300/tm-h8300.h: Update.
3844
3845 * blockframe.c (nonnull_frame_chain_valid): New function.
3846 * config/m68k/tm-os68k.h, config/m68k/tm-vx68.h,
3847 config/m68k/tm-apollo68b.h, config/i960/tm-vx960.h,
3848 config/arc/tm-arc.h: Update FRAME_CHAIN_VALID.
3849
3850 * hppa-tdep.c (frame_chain_valid, hppa_frame_chain_valid),
3851 remote-vx29k.c (get_fp_contents, vx29k_frame_chain_valid),
3852 arm-tdep.c (frame_chain_valid, arm_frame_chain_valid): Rename
3853 functions so that they are name space clean.
3854 * config/pa/tm-hppa.h, config/a29k/tm-vx29k.h,
3855 config/arm/tm-arm.h: Update FRAME_CHAIN_VALID.
3856
3857 * gould-tdep.c (gould_frame_chain_valid), d30v-tdep.c
3858 (d30v_frame_chain_valid), d10v-tdep.c (d10v_frame_chain_valid):
3859 New functions.
3860 * config/gould/tm-np1.h, config/gould/tm-pn.h,
3861 config/d30v/tm-d30v.h, config/d10v/tm-d10v.h: Update
3862 FRAME_CHAIN_VALID.
3863
8743fc88
AC
3864Sun Nov 29 11:18:37 1998 Andrew Cagney <cagney@b1.cygnus.com>
3865
3866 * z8k-tdep.c (z8k_addr_bits_remove), w65-tdep.c
3867 (w65_addr_bits_remove), h8500-tdep.c (h8500_addr_bits_remove),
3868 m88k-tdep.c (m88k_addr_bits_remove): Function to clean up an
3869 address.
3870 * config/z8k/tm-z8k.h, config/w65/tm-w65.h, config/m88k/tm-m88k.h,
3871 config/h8500/tm-h8500.h: Define ADDR_BITS_REMOVE to call targets
3872 corresponding function.
3873 * z8k-tdep.c (saved_pc_after_call): Update.
3874
3a0c96a9
AC
3875Sat Nov 28 12:24:31 1998 Andrew Cagney <cagney@b1.cygnus.com>
3876
3877 * config/z8k/tm-z8k.h, config/w65/tm-w65.h, config/vax/tm-vax.h,
3878 config/v850/tm-v850.h, config/tahoe/tm-tahoe.h,
3879 config/sparc/tm-sparc.h, config/sh/tm-sh.h,
3880 config/rs6000/tm-rs6000.h, config/pyr/tm-pyr.h,
3881 config/pa/tm-hppa.h, config/ns32k/tm-umax.h,
3882 config/ns32k/tm-merlin.h, config/none/tm-none.h,
3883 config/mn10300/tm-mn10300.h, config/mn10200/tm-mn10200.h,
3884 config/mips/tm-mips.h, config/m88k/tm-m88k.h,
3885 config/m68k/tm-m68k.h, config/m32r/tm-m32r.h,
3886 config/i960/tm-i960.h, config/i386/tm-i386.h,
3887 config/h8500/tm-h8500.h, config/h8300/tm-h8300.h,
3888 config/gould/tm-pn.h, config/gould/tm-np1.h, config/arm/tm-arm.h,
3889 config/convex/tm-convex.h, config/d10v/tm-d10v.h,
3890 config/alpha/tm-alpha.h, config/a29k/tm-a29k.h: Add parameters to
3891 macro INNER_THAN.
3892
3893 * valops.c (push_word, value_push, call_function_by_hand),
3894 breakpoint.c (bpstat_stop_status), blockframe.c
3895 (generic_push_dummy_frame, generic_frame_chain_valid), inferior.h
3896 (PC_IN_CALL_DUMMY), infrun.c (wait_for_inferior): Update use of
3897 INNER_THAN.
3898
02331869
AC
3899Fri Nov 27 11:00:25 1998 Andrew Cagney <cagney@chook>
3900
3901 * target.h (one_stepped): Move global from here.
3902 * infrun.c (singlestep_breakpoints_inserted_p): To here. Rename.
3903 Make static.
3904 (wait_for_inferior): Update.
3905 (resume): Update. Set variable after call to SOFTWARE_SINGLE_STEP.
3906
3907 * target.h (NO_SINGLE_STEP): Replace with SOFTWARE_SINGLE_STEP_P
3908 and SOFTWARE_SINGLE_STEP.
3909 * config/sparc/tm-sparc.h, config/rs6000/tm-rs6000.h,
3910 config/arc/tm-arc.h: Update.
3911 * rs6000-tdep.c (rs6000_software_single_step), sparc-tdep.c
3912 (sparc_software_single_step), arc-tdep.c (arc_single_step): New
3913 functions. Replace function single_step.
3914
3915 * config/mips/tm-mips.h (STEP_SKIPS_DELAY_P): Define.
3916 * infrun.c (proceed): Cleanup.
3917start-sanitize-sky
3918 * config/mips/tm-txvu.h (STEP_SKIPS_DELAY), txvu-tdep.c
3919 (txvu_step_skips_delay): Change macro to function.
86a51f41 3920end-sanitize-sky
91e14aa9 3921
679ce731
AC
3922Thu Nov 26 11:19:15 1998 Andrew Cagney <cagney@amy.cygnus.com>
3923
3924 * config/alpha/tm-alpha.h (ABOUT_TO_RETURN): Replace macro.
3925 * alpha-tdep.c (alpha_about_to_return): With new function.
3926 (heuristic_proc_start): Update.
3927 * config/mips/tm-mips.h (ABOUT_TO_RETURN), mips-tdep.c
3928 (heuristic_proc_start, mips_about_to_return): Ditto.
3929 * config/ns32k/tm-merlin.h (ABOUT_TO_RETURN),
3930 config/ns32k/tm-umax.h (ABOUT_TO_RETURN), ns32k-tdep.c
3931 (ns32k_about_to_return, ns32k_get_enter_addr): Ditto.
3932
3933 * config/z8k/tm-z8k.h, config/w65/tm-w65.h, config/vax/tm-vax.h,
3934 config/tahoe/tm-tahoe.h, config/sparc/tm-sparc.h,
3935 config/sh/tm-sh.h, config/rs6000/tm-rs6000.h, config/pyr/tm-pyr.h,
3936 config/pa/tm-hppa.h, config/m88k/tm-m88k.h, config/m68k/tm-m68k.h,
3937 config/i960/tm-i960.h, config/i386/tm-i386.h,
3938 config/h8500/tm-h8500.h, config/h8300/tm-h8300.h,
3939 config/gould/tm-pn.h, config/gould/tm-np1.h,
3940 config/convex/tm-convex.h, config/arm/tm-arm.h,
3941 config/arc/tm-arc.h, config/a29k/tm-a29k.h: Delete macro
3942 ABOUT_TO_RETURN.
3943 * config/w65/tm-w65.h (RTL, RTS): Delete macros.
3944 * h8500-tdep.c (about_to_return): Delete function.
3945
07137a11
AC
3946Thu Nov 26 11:19:15 1998 Andrew Cagney <cagney@chook.cygnus.com>
3947
3948 * rs6000-tdep.c (rs6000_breakpoint_from_pc): Change big_breakpoint
3949 and little_breakpoint to char[] from char*.
3950 * remote-array.c (array_insert_breakpoint): Change bp_addr to
3951 CORE_ADDR type.
3952
c8623080
AC
3953Wed Nov 25 00:13:06 1998 Andrew Cagney <cagney@b1.cygnus.com>
3954
3955 * vx-share/xdr_ld.c (xdr_ldtabl): Cast second arg to char**
3956 instead of char*.
3957
3958 * configure.tgt (v850): Only build v850ice when cygwin and gui.
3959 * configure.in: Add parameter to --enable-build-warnings.
3960 * configure: Re-build.
3961
3962 * c-exp.y (parse_number): Rewrite shift to pacify GCC.
3963
3964 * config/i960/tm-i960.h (BREAKPOINT): Delete definition - simply
3965 wrong.
3966
3967 * monitor.c (compile_pattern): Make val const char*.
3968 (monitor_wait_cleanup): Make old_timeout void*, pointing at
3969 old_timeout.
3970 (monitor_wait): Update.
3971
3972 * remote-udi.c, remote-sim.c, remote-e7000.c, hppa-tdep.c,
3973 remote-mips.c, sparcl-tdep.c, xcoffread.c: Cast parameters passed
3974 to make_cleanup to use the new make_cleanup_func typedef.
3975
3976 * alpha-tdep.c (MASK): Use LONGEST to avoid arithmetic overflow.
3977
3978 * config/a29k/tm-a29k.h (TRANSPARENT): Rename macro to
3979 TRANSPARENT_FRAME. Avoid name-space clash.
3980 * a29k-tdep.c (init_frame_info): Update.
3981
9ff152f7
AC
3982Wed Nov 25 20:37:00 1998 Andrew Cagney <cagney@b1.cygnus.com>
3983
679ce731
AC
3984 * rs6000-tdep.c (rs6000_breakpoint_from_pc): Change big_breakpoint
3985 and little_breakpoint to char[] from char*.
9ff152f7
AC
3986 * mem-break.c (memory_insert_breakpoint,
3987 memory_remove_breakpoint): Pass address of bplen.
679ce731
AC
3988 * remote-array.c (array_insert_breakpoint): Change bp_addr to
3989 CORE_ADDR type.
9ff152f7 3990
f8c41900
GRK
3991start-sanitize-vr4xxx
39921998-11-24 Gavin Romig-Koch <gavin@cygnus.com>
3993
3994 * configure.tgt: Handle mips64*vr4xxx.
3995
3996end-sanitize-vr4xxx
3997Tue Nov 24 15:46:33 1998 Michael Snyder <msnyder@cleaver.cygnus.com>
3998
3999 * config/mn10300/tm-mn10300.h (TARGET_VIRTUAL_FRAME_POINTER):
4000 new target macro.
4001 * mn10300-tdep.c (mn10300_virtual_frame_pointer): new function.
4002 * tracepoint.c (encode_actions): Use the new target macro to
4003 determine the virtual frame pointer, for collecting locals/args.
4004 (add_local_symbols, collect_symbol): add a register/offset pair of
4005 arguments so that the virtual frame pointer can be passed in.
4006
15af627c
FL
40071998-11-24 Felix Lee <flee@cygnus.com>
4008
4009 * procfs.c (procfs_wait): handle syscall events first.
4010
4011 * procfs.c (GDB_GREGSET_TYPE, GDB_FPREGSET_TYPE): new macros.
4012 * config/sparc/xm-sun4sol2.h: use them.
4013 * core-sol2.c: don't #undef gregset_t and fpregset_t.
4014 * sol-thread.c: ditto.
4015 * sparc-tdep.c: ditto.
4016
afcad54a
AC
4017Tue Nov 24 14:13:10 1998 Andrew Cagney <cagney@chook>
4018
4019 * breakpoint.c (memory_breakpoint_size): Delete global.
4020 (read_memory_nobpt): Determine real breakpoint address and size
4021 using BREAKPOINT_FROM_PC.
4022
4023 * defs.h (breakpoint_from_pc_fn): BREAKPOINT_FROM_PC function
4024 template.
4025 * target.h, mem-break.c (memory_breakpoint_from_pc):
4026 Rewrite. Always define. Return NULL when memory breakpoints are
4027 not supported.
4028 (memory_insert_breakpoint, memory_remove_breakpoint): Call
4029 BREAKPOINT_FROM_PC.
4030 * target.h (BREAKPOINT_FROM_PC): Provide default.
4031 * gdbint.texinfo (BREAKPOINT_FROM_PC): Document.
4032
4033 * config/rs6000/tm-rs6000.h (BREAKPOINT): Delete macro.
4034 (BREAKPOINT_FROM_PC): Define.
4035 ({BIG,LITTLE}_BREAKPOINT): Move macros from here.
4036 * rs6000-tdep.c: To here.
4037 (rs6000_breakpoint_from_pc): New function.
4038
4039 * config/mn10300/tm-mn10300.h (BREAKPOINT): Delete macro.
4040 (BREAKPOINT_FROM_PC): Define, call.
4041 * mn10300-tdep.c (mn10300_breakpoint_from_pc): New function.
4042
4043 * config/mips/tm-mips.h ({BIG,LITTLE}_BREAKPOINT,
4044 IDT_{BIG,LITTLE}_BREAKPOINT, PMON_{BIG,LITTLE}_BREAKPOINT,
4045 MIPS16_{BIG,LITTLE}_BREAKPOINT): Move macros from here.
4046 * mips-tdep.c: To here.
4047start-sanitize-sky
4048 * txvu-tdep.c (core_break_insn): Delete variable.
4049 (txvu_insert_breakpoint): Update, use BREAKPOINT_FROM_PC.
4050end-sanitize-sky
4051
4052 * config/arm/tm-arm.h ({BIG,LITTLE}_BREAKPOINT): Delete macros.
4053 ({ARM,THUMB}_{BE,LE}_BREAKPOINT): Move macros from here.
4054 * arm-tdep.c: To here.
4055
4056 * remote-array.c (memory_breakpoint_size): Delete variable.
4057 (array_insert_breakpoint): Obtain breakpoint size using
4058 BREAKPOINT_FROM_PC.
4059 * remote-st.c (memory_breakpoint_size, st2000_insert_breakpoint):
4060 Ditto.
4061 * remote-os9k.c (memory_breakpoint_size,
4062 rombug_insert_breakpoint): Ditto.
4063 * remote-e7000.c (memory_breakpoint_size): Ditto.
4064
e1dba9c4
MS
4065Mon Nov 23 11:38:40 1998 Michael Snyder <msnyder@cleaver.cygnus.com>
4066
4067 * symfile.c (deduce_language_from_filename): rewrite so as to
4068 work from a table of filename extensions, modifiable by the user.
4069 (filename_language_table): new data structure.
4070 (set_ext_lang_command): new function for new command, "set
4071 extension-language". (info_extension_language_command): new
4072 function for new command "info extension-languages".
4073 (add_filename_language, init_filename_language_table): new
4074 support functions for the above.
4075 * language.c (language_enum): new function. Support for above.
4076
98760eab
AC
4077Mon Nov 23 10:47:54 1998 Andrew Cagney <cagney@chook.cygnus.com>
4078
4079 * config/sh/tm-sh.h, config/mn10200/tm-mn10200.h,
4080 config/m32r/tm-m32r.h, config/arm/tm-arm.h, config/i960/tm-i960.h,
4081 config/gould/tm-np1.h, config/d10v/tm-d10v.h,
4082 config/v850/tm-v850.h, config/pa/tm-hppa.h, config/a29k/tm-a29k.h,
4083 config/mn10300/tm-mn10300.h, config/mips/tm-mips.h
4084 (USE_STRUCT_CONVENTION): Cleanup, define macro as function.
4085
4086 * sh-tdep.c (sh_use_struct_convention), mn10200-tdep.c
4087 (mn10200_use_struct_convention), i960-tdep.c
4088 (i960_use_struct_convention), gould-tdep.c
4089 (gould_use_struct_convention), d10v-tdep.c
4090 (d10v_use_struct_convention), v850-tdep.c
4091 (v850_use_struct_convention), hppa-tdep.c
4092 (hpha_use_struct_convention), m32r-tdep.c
4093 (m32r_use_struct_convention), arm-tdep.c
4094 (arm_use_struct_convention), mn10300-tdep.c
4095 (mn10300_use_struct_convention), a29k-tdep.c
4096 (a29k_use_struct_convention), mips-tdep.c
4097 (mips_use_struct_convention): New functions
4098
4099 * value.h, values.c (generic_use_struct_convention): New function,
4100 replace macro.
4101 * values.c (USE_STRUCT_CONVENTION): Macro defaults to function
4102 generic_use_struct_convention.
4103
6b29a8b1
SS
4104Sat Nov 21 17:15:40 1998 Philippe De Muyter <phdm@macqel.be>
4105
92fb1f2e
SS
4106 * breakpoint.c (bpstat_stop_status): Do not increment hit_count
4107 of breakpoint if condition is not true.
4108
aa8938d5
SS
4109 * coffread.c (coff_symtab_read): Discard C_LABEL's that are not
4110 function entry points, to avoid getting them in the stack dump
4111 instead of the actual function.
4112
6b29a8b1
SS
4113 * config/m68k/delta68.mh (NAT_FILE): Undo 1998-08-18 change;
4114 without NAT_FILE definition, configure will assume that GDB cannot
4115 run native.
4116 * config/m68k/nm-delta68.h (KERNEL_U_SIZE): New macro.
4117 * delta68-nat.c (kernel_u_size): New function.
4118
60a98b30
AC
4119Fri Nov 20 10:13:03 1998 Andrew Cagney <cagney@b1.cygnus.com>
4120
4121 * buildsym.c (end_symtab): Cleanup PROCESS_LINENUMBER_HOOK.
4122
2196638d
GN
4123Thu Nov 19 15:21:04 1998 Geoffrey Noer <noer@cygnus.com>
4124
4125 * rdi-share/host.h: if compiling under Cygwin, make sure new
4126 preprocessor define is defined. Define it if not.
6bd87f42 4127 * rdi-share/hostchan.h: ditto
2196638d
GN
4128 * rdi-share/aclocal.m4: regenerate
4129 * rdi-share/configure: regenerate
4130
94a91918
GN
4131Thu Nov 19 14:43:44 1998 Geoffrey Noer <noer@cygnus.com>
4132
4133 * configure.in: switch back to checking __CYGWIN32__
4134 * configure: regenerate
4135
a6a070be
AC
4136Thu Nov 19 09:53:00 1998 Andrew Cagney <cagney@b1.cygnus.com>
4137
4138 * exec.c (exec_file_command): Cleanup. Replace #if
4139 NEED_TEXT_START_END with if().
4140 * config/pa/nm-hppah.h (NEED_TEXT_START_END): Redefine to be 1.
4141 * config/convex/tm-convex.h (NEED_TEXT_START_END): Ditto.
4142 * config/gould/tm-np1.h (NEED_TEXT_START_END): Ditto.
4143 * config/a29k/tm-a29k.h (NEED_TEXT_START_END): Ditto.
4144
1a443730
GN
4145Thu Nov 19 13:06:22 1998 Geoffrey Noer <noer@cygnus.com>
4146
4147 * main.c: Wait until more time has passed before calling
4148 new cygwin_ funcs, revert back to the cygwin32_ ones for now.
4149 * win32-nat.c: Ditto.
4150
206e3a8a
AC
4151Wed Nov 18 15:03:17 1998 Andrew Cagney <cagney@chook.cygnus.com>
4152
4153 * 29k-share/udi/udip2soc.c (UDIConnect): Replace sys_errlist with
4154 strerror.
4155
8adbc73e
GN
4156Mon Nov 16 14:17:05 1998 Geoffrey Noer <noer@cygnus.com>
4157
4158 * defs.h: if compiling under Cygwin, define __CYGWIN__ if
4159 __CYGWIN32__ is defined and __CYGWIN__ isn't for backwards
4160 compatibility.
4161
d836385e
GN
4162Fri Nov 13 00:15:08 1998 Geoffrey Noer <noer@cygnus.com>
4163
4164 Changes to account for name change from cygwin32 to cygwin and
4165 clean up Win32-related ifdefs.
4166
4167 * configure.tgt: check for cygwin* instead of cygwin32.
4168 New cygwin gdb_target variable loses the "32".
4169 * configure.host: check for cygwin* instead of cygwin32.
4170 New cygwin gdb_host variable loses the "32".
4171 * configure.in: test __CYGWIN__ instead of __CYGWIN32__,
4172 rename gdb_cv_os_cygwin32 variable to drop the "32". Call
4173 AM_EXEEXT instead of AC_EXEEXT since that isn't in a released
4174 autoconf yet.
4175 * configure: regenerate.
4176
4177 * main.c: drop "32" from cygwin_ funcs, include sys/cygwin.h where
4178 cygwin path conv protos live, instead of adding a proto here for
4179 them here.
4180 * {main.c, ser-tcp.c, ser-unix.c, top.c}: check __CYGWIN__
4181 instead of __CYGWIN32__.
4182 * source.c: thoughout, check _WIN32 instead of WIN32.
4183
4184 * config/i386/cygwin32.mh: delete.
4185 * config/i386/cygwin.mh: new file, was cygwin32.mh.
4186 * config/i386/cygwin32.mt: delete.
4187 * config/i386/cygwin.mt: new file, was cygwin32.mt.
4188 * config/i386/tm-cygwin32.h: delete.
4189 * config/i386/tm-cygwin.h: new file, was tm-cygwin32.h.
4190 * config/i386/xm-cygwin32.h: delete.
4191 * config/i386/xm-cygwin.h: new file, was xm-cygwin32.h.
4192 * config/i386/xm-windows.h: #include xm-cygwin.h now.
4193 * config/powerpc/cygwin32.mh: delete.
4194 * config/powerpc/cygwin.mh: new file, was cygwin32.mh.
4195 * config/powerpc/cygwin32.mt: delete.
4196 * config/powerpc/cygwin.mt: new file, was cygwin32.mt.
4197 * config/powerpc/tm-cygwin32.h: delete.
4198 * config/powerpc/tm-cygwin.h: new file, was tm-cygwin32.h.
4199 * config/powerpc/xm-cygwin32.h: delete.
4200 * config/powerpc/xm-cygwin.h: new file, was xm-cygwin32.h.
4201
4202 * rdi-share/aclocal.m4: regenerate with aclocal.
4203 * rdi-share/configure: regenerate with autoconf.
4204 * rdi-share/{host.h, hostchan.c, hostchan.h, serdrv.c, serpardr.c,
4205 unixcomm.c}: check __CYGWIN__ instead of __CYGWIN32__.
4206
9ee59844
JM
4207Thu Nov 12 17:19:43 1998 John Metzler <jmetzler@cygnus.com>
4208
b5c7e122 4209 * remote.c (remote_get_threadinfo): Support for remote
9ee59844 4210 multithread debugging.
b5c7e122
SS
4211 (remote_get_threadlist): get a partial list of threads
4212 (remote_threadlist_iterator): Step through all the threads
4213 (init_remote_threadtests): Optional builtin unit test commands.
9ee59844 4214
b5c7e122 4215 * thread.c (bind_target_thread_vector): Implementa a more dynamic
9ee59844
JM
4216 way of accessing target specific thread info functions than
4217 FIND_NEW_THREADS.
b5c7e122 4218 (target_thread_info): Function to get extended thread information.
9ee59844 4219
b5c7e122 4220 * gdbthread.h: Export internal data structures corresponding to
9ee59844
JM
4221 external detailed thread info response. This is more like a 'ps'
4222 command than what might be expected of host based threads. This
4223 is for embedded systems.
4224
1ba38e79
MS
4225Wed Nov 11 15:47:00 1998 Michael Snyder <msnyder@cleaver.cygnus.com>
4226
4227 * procfs.c (proc_set_exec_trap): don't set PR_ASYNC or PR_FORK
4228 in the child process for UnixWare (causes processes forked by
4229 the debuggee to hang).
4230
83da2634
DB
4231Mon Nov 9 12:00:36 1998 Dave Brolley <brolley@cygnus.com>
4232
4233 * config/fr30/fr30.mt: New file.
4234 * config/fr30/tm-fr30.h: New file.
4235
e5fddd37
JW
42361998-11-05 Jim Wilson <wilson@cygnus.com>
4237
1ba38e79
MS
4238 * remote-vx.c (net_read_registers, net_write_registers,
4239 vx_xver_memory, vx_resume, vx_attach, vx_detach, vx_kill):
4240 Change errno to errno_num.
e5fddd37
JW
4241 * vx-share/xdr_ptrace.c (xdr_ptrace_return): Likewise.
4242 * vx-share/xdr_ptrace.h (struct ptrace_return): Likewise.
4243
3cee93ac
CF
4244Thu Nov 5 08:41:33 1998 Christopher Faylor <cgf@cygnus.com>
4245
4246 * top.c (gdb_readline): Allow CRLF line termination on systems
4247 which define CRLF_SOURCE_FILES.
4248 * win32-nat.c: 1) Add thread support, 2) fix ability to attach to
4249 a running process, and 3) implement limited support for cygwin
4250 signals.
4251 (thread_rec): New function.
4252 (child_add_thread): Ditto.
4253 (child_init_thread_list): Ditto.
4254 (child_delete_thread): Ditto.
4255 (do_child_fetch_inferior_registers): Ditto.
4256 (do_child_store_inferior_registers): Ditto.
4257 (handle_output_debug_string): Ditto.
4258 (child_fetch_inferior_registers): Use do_* function to perform
4259 operation.
4260 (child_store_inferior_registers): Ditto.
4261 (child_continue): Ditto.
4262 (child_thread_alive): Ditto.
4263 (cygwin_pid_to_str): Ditto.
4264 (handle_load_dll): Reorganize, add first attempt at reading
4265 dll names from attached processes. Change info messages to provide
4266 more information when dll is already loaded.
4267 (handle_exception): Changes mandated by new thread-aware structures.
4268 (child_wait): Track thread creation/destruction. Handle cygwin
4269 signals.
4270 (child_create_inferior): Ditto.
4271 (child_resume): Ditto.
4272 (child_kill_inferior): Ditto. Close child process handle to avoid a
4273 handle leak.
4274 (child_ops): Fill out child_ops fields that deal with threads.
4275 * config/i386/tm-cygwin32.h: Declare function and macro needed
4276 for converting a cygwin "pid" to a string.
4277 * config/i386/xm-cygwin32.h: define HAVE_SIGSETMASK as 0 since
4278 sigsetmask is not defined in cygwin.
4279
8015bd27
CF
4280Thu Nov 5 08:38:18 1998 Christopher Faylor <cgf@cygnus.com>
4281
4282 * win32-nat.c: Remove obsolete PPC conditionals.
4283
7e6c86c2
DB
4284Wed Nov 4 18:44:31 1998 Dave Brolley <brolley@cygnus.com>
4285
4286 * configure.tgt: Add fr30-*-elf*.
4287
66393f0e
JW
42881998-11-03 Jim Wilson <wilson@cygnus.com>
4289
4290 * c-exp.y (parse_number): Check TARGET_LONG_LONG_BIT when setting
4291 high_bit to avoid undefined negative shift.
4292
b93f016b
GN
4293Mon Nov 2 15:26:33 1998 Geoffrey Noer <noer@cygnus.com>
4294
4295 * configure.in: Check cygwin* instead of cygwin32*.
4296 * configure: regenerate
4297
2e7eeba9
MS
4298Thu Oct 29 10:04:20 1998 Michael Snyder <msnyder@cleaver.cygnus.com>
4299
4300 [Support for trace debugging: registers that were not collected.]
4301 * remote.c (remote_fetch_registers): accept 'xxxx' in the register
4302 packet, with the meaning "register value is not available".
4303 Set register_valid to -1, which will connote "no value available".
4304 * findvar.c (read_relative_register_raw_bytes): return failure if
4305 register_valid == -1. (value_of_register): return failure if
4306 register_valid == -1. (read_var_value): return error if
4307 value_of_register fails for a register variable.
4308 (value_from_register): return failure if register_valid == -1.
4309 * eval.c (evaluate_subexp_standard): return error if
4310 value_of_register fails for a register used in an expression.
4311 * infcmd.c (do_registers_info): display "value not available"
4312 for registers for which register_valid == -1.
4313
4314 * tracepoint.c (set_raw_tracepoint): just save the filename as is
4315 from the symbol table, rather than trying to prepend the dir name.
4316 Also save the bfd section. (tracepoints_info): use the section
4317 when looking up the function name.
4318 * tracepoint.h: add section field to tracepoint struct.
4319
af3711e6
FCE
4320start-sanitize-sky
4321Wed Oct 28 12:33:52 EST 1998 Frank Ch. Eigler <fche@cygnus.com>
4322
4323 * configure.in: Accept both -skyb- and -sky- for
4324 --with-sim-funit/gpu2 options.
4325 * configure: Rebuilt.
4326
4327end-sanitize-sky
c0351c0f
MA
4328Wed Oct 28 08:01:38 1998 Mark Alexander <marka@cygnus.com>
4329
4330 * sparcl-tdep.c (send_resp, sparclite_serial_start,
4331 sparclite_serial_write): Use remote_timeout instead of hardcoded
4332 two second timeout.
4333 (download): Fix adjustment of a.out load addresses.
4334
b9a9cde4
AC
4335Wed Oct 28 12:32:58 1998 Andrew Cagney <cagney@b1.cygnus.com>
4336
4337 * configure.in (--enable-build-warnings): Finish rename from
4338 --enable-warnings.
4339 (enable-build-warnings): Add -Wpointer-arth, allow =* for
4340 sim/common compatibility.
4341 * configure: Re-generate.
4342
63a0e6b5
AC
4343Wed Oct 21 08:44:30 1998 Andrew Cagney <cagney@b1.cygnus.com>
4344
4345 * 29k-share/udi/udip2soc.c: Replace sys_errlist with strerror().
4346
cf9d0fd9
AC
4347Thu Oct 22 09:56:55 1998 Andrew Cagney <cagney@b1.cygnus.com>
4348
4349 * config/rs6000/aix4.mh (NATDEPFILES): Move xcoffread.o from here.
4350 * config/rs6000/aix4.mt (TDEPFILES): To here.
4351
4352Wed Oct 21 10:02:31 1998 Andrew Cagney <cagney@b1.cygnus.com>
4353
4354 * rdi-share/unixcomm.c: Provide definitions of SERPORT and PARPORT
4355 on BSD hosts.
4356
43571998-10-19 Jason Molenda (jsm@bugshack.cygnus.com)
4358
4359 * configure.in (AM_EXEEXT): Use AC_EXEEXT instead.
4360 * configure: Regenerated.
4361
61e6bcc8
FL
4362Sat Oct 17 17:39:23 1998 Felix Lee <flee@cygnus.com>
4363
4364 * core-sol2.c: #include <sys/types.h>, for sol2.7 weirdness.
4365
a93213bc
MS
4366Fri Oct 16 15:31:38 1998 Michael Snyder <msnyder@cleaver.cygnus.com>
4367
4368 * m32r-tdep.c (decode_prologue): Return failure if we reach
4369 the end of the function without finding the end of the prologue.
4370
24418cfb
JM
43711998-10-16 Jason Molenda (jsm@bugshack.cygnus.com)
4372
4373 * command.c copying.c copying.awk core-aout.c core-regset.c
4374 corelow.c dcache.c i386-tdep.c i386v4-nat.c i387-tdep.c
4375 infcmd.c infptrace.c infrun.c remote.c solib.c symfile.c
4376 symmisc.c valarith.c: Add prototypes.
4377
4378 * defs.h: Add prototype for utils.c::do_run_cleanups.
4379
4380 * gdbtypes.c: Add prototypes.
4381 (make_pointer_type): Add braces to remove nested if-else ambiguity.
4382 (make_reference_type): Ditto.
4383
4384 * printcmd.c (printf_command): Initialize 'f' and 'string' at
4385 function startup to suppress possibly-used-before-initialized warning.
4386
4387 * remote-utils.c: Add prototypes.
4388 (sr_pollchar): Add braces to remove nested if-else ambiguity.
4389
4390 * ser-tcp.c: Add prototypes.
4391 (wait_for): Add braces to remove nested if-else ambiguity.
4392 (tcp_readchar): Ditto.
4393
4394 * ser-unix.c: Add prototypes.
4395 (get_tty_state): Don't define errno here.
4396 (hardwire_readchar): Only define 't' if we are compiling in a Cygwin
4397 environment.
4398
4399 * symtab.c: Add prototypes.
4400 (find_methods): Add braces to remove nested if-else ambiguity.
4401 (search_symbols): Set 'i' to an initial value to suppress a
4402 possibly-used-before-initialized warning.
4403
4404 * valops.c: Add prototypes.
4405 (value_cast): Set 'eltype2' to an initial value to suppress a
4406 possibly-used-before-initialized warning.
4407 (value_of_variable): Add braces to remove nested if-else ambiguity.
4408 (value_of_this): Ditto.
4409
4410 * valprint.c: Add prototypes.
4411 (print_floating): Add braces to remove nested if-else ambiguity.
4412
7bfe11e2
SS
4413Thu Oct 15 19:50:48 1998 Stan Shebs <shebs@andros.cygnus.com>
4414
6b29a8b1 4415 * tm-sp64.h (SETUP_ARBITRARY_FRAME, FRAME_SPECIFICATION_DYADIC):
7bfe11e2
SS
4416 Remove, nevermore used.
4417
dd877625
AC
4418Thu Oct 15 16:55:00 1998 Andrew Cagney <cagney@b1.cygnus.com>
4419
4420 * command.c: Include "wait.h" after, rather than before, <wait.h>.
4421 "wait.h" was defining all WIF* macro's instead of filling in those
4422 that <wait.h> missed.
4423
44241998-10-14 Jason Molenda (jsm@bugshack.cygnus.com)
4425
7bfe11e2
SS
4426 * defs.h: Move _initialize_printcmd, _initialize_stack,
4427 _initialize_blockframe out of here and in to their respective .c
4428 files.
dd877625
AC
4429 * blockframe.c: Move _initialize_blockframe prototype to here.
4430 * printcmd.c: Move _initialize_printcmd prototype to here.
4431 * stack.c: Move _initialize_stack prototype to here.
4432
7bfe11e2
SS
4433 * source.c, symtab.h: Move _initialize_source prototype to the .c
4434 file.
dd877625
AC
4435 * values.c, value.h: Move _initialize_values prototype to the .c file.
4436 * gdbthread.h, thread.c: Move _initialize_thread prototype to the .c
4437 file.
4438 * breakpoint.c, breakpoint.h: Move _initialize_breakpoint prototype
4439 to the .c file.
4440
4441 * abug-rom.c alpha-nat.c alpha-tdep.c annotate.c ax-gdb.c bcache.c:
4442 Standardize comments for the prototype section of these files.
4443
4444 * configure.in: Look in libc for wctype before looking for it in libc.
4445
37f58dce
FL
4446Tue Oct 13 18:56:51 1998 Felix Lee <flee@cygnus.com>
4447
4448 * sol-thread.c (ps_pstop, etc): simple test for proc_service.h
4449 version didn't work for sol2.6; pushed it to autoconf.
4450 * configure.in (gdb_cv_proc_service_is_old): new test.
4451 * acconfig.h (PROC_SERVICE_IS_OLD): new define.
4452 * configure, config.in: regenerate.
2e7eeba9 4453
ad3b8c4a
JM
44541998-10-13 Jason Molenda (jsm@bugshack.cygnus.com)
4455
4456 * blockframe.c (find_pc_sect_partial_function): Add braces to avoid
4457 possible nested-if confusion.
4458 * breakpoint.c (breakpoint_here_p): Ditto.
4459 (breakpoint_inserted_here_p): Ditto.
4460 (breakpoint_thread_match): Ditto.
4461
4462 * gnu-regex.c: Define _REGEX_RE_COMP only if it isn't already defined.
4463 * gnu-regex.h: Define _REGEX_RE_COMP to pick up old compatability
4464 prototypes.
2e7eeba9 4465
ad3b8c4a
JM
4466 * symtab.h: Add prototype for _initialize_source.
4467 * value.h: Add prototype for _initialize_value.
4468
4469 * defs.h: Include sys/types.h or stddef.h to get size_t.
4470 (make_cleanup): Add make_cleanup_func typedef and switch to using
4471 a prototype for this function.
4472 (mfree): Add prototypes for mmalloc, mrealloc, mfree if we aren't
4473 using mmalloc.
2e7eeba9 4474
91e14aa9
SS
4475 * ax-gdb.c breakpoint.c coffread.c corelow.c dbxread.c
4476 dwarf2read.c dwarfread.c elfread.c eval.c exec.c infcmd.c infrun.c
4477 mipsread.c nlmread.c os9kread.c parse.c printcmd.c symfile.c
4478 symmisc.c symtab.c thread.c top.c tracepoint.c typeprint.c
4479 valops.c: Cast parameters passed to make_cleanup to use the new
4480 make_cleanup_func typedef.
ad3b8c4a 4481
bbee94c7
FL
4482Tue Oct 13 00:51:48 1998 Felix Lee <flee@cygnus.com>
4483
4484 * sol-thread.c (ps_pstop, etc): different solaris versions have
4485 slightly different prototypes in proc_service.h; compensate.
4486
6e47b251
JM
44871998-10-12 Jason Molenda (jsm@bugshack.cygnus.com)
4488
4489 * Makefile.in (AWK): Unused; remove.
4490 * configure.in: Remove unused autoconf checks for MINIX, memcpy,
4491 poll, select, strings.h.
4492 * config.in: Regenerated.
4493 * configure: Regenerated.
4494
1dee2761
JM
44951998-10-12 Jason Molenda (jsm@bugshack.cygnus.com)
4496
4497 * configure.in: Check for sys/debugreg.h, asm/debugreg.h.
4498 * i386v-nat.c: Include asm/debugreg.h, sys/debugreg.h if it is not
4499 present.
4500
b0a5badb
PS
4501Sun Oct 11 12:08:07 1998 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
4502
4503 * dwarf2read.c (dwarf2_build_psymtabs_hard): Do not adjust the
4504 address range of a compilation unit without children.
4505
4506 * mdebugread.c (parse_partial_symbols): Fix handling of stabs
4507 continuations, use xmalloc and xrealloc.
4508
c6d28b22
MA
4509Fri Oct 9 18:14:43 1998 Mark Alexander <marka@cygnus.com>
4510
4511 * rs6000-tdep.c: Don't include tm.h twice.
4512
d367c7b4
KS
45131998-10-08 Keith Seitz <keiths@cygnus.com>
4514
4515 * main.c (main): Remove calls to {pre,post}_add_symbol_hooks.
4516 There should be sufficient information/hooks now to eliminate
4517 this hack.
4518
4519 * exec.c (file_command): Add a new hook here to inform ui's
4520 when the exec file has changed. Adding it here allows the
4521 ui to be informed after symbol reading.
4522
4523 * gdbcore.h: Add declaration of file_changed_hook.
4524
70423641
MA
4525Thu Oct 8 08:40:42 1998 Mark Alexander <marka@cygnus.com>
4526
4527 * rs6000-tdep.c (get_saved_register): Define only if
4528 USE_GENERIC_DUMMY_FRAMES is defined.
4529
4530start-sanitize-carp
4531Tue Oct 6 21:35:10 1998 Andrew Cagney <cagney@b1.cygnus.com>
4532
4533 * configure.in (--enable-targets): New config option. Code taken
4534 from ../opcode/configure.in.
4535start-sanitize-cygnus
4536 (--enable-carp): New config option. Overrides configure.tgt and
4537 sets gdb_target + gdb_target_cpu to carp. XXX - this is tempoary.
4538end-sanitize-cygnus
4539 * configure: Re-generate.
2e7eeba9 4540
70423641
MA
4541 * Makefile.in (DEPFILES): Add TARGET_OBS.
4542 (TARGET_OBS): Defined by configure.
2e7eeba9 4543
70423641
MA
4544start-sanitize-cygnus
4545 * config/carp/carp.mt, config/carp/tm-carp.h: Pseudo configuration
4546 for carp target. XXX - this is tempoary.
4547end-sanitize-cygnus
4548
4549end-sanitize-carp
87feff9d
JM
45501998-10-06 Jason Molenda (jsm@bugshack.cygnus.com)
4551
4552 Eliminate a few warnings from the compiler.
4553 * breakpoint.h: Add prototype.
4554 * breakpoint.c (do_enable_breakpoint): cast mem_cnt, i to (void).
4555 * configure.in: Check if strdup declaration is necessary.
4556 * configure: Regenerated.
4557 * defs.h: Add prototypes.
4558 * gdb_string.h: Only define strdup if necessary.
4559 * gdbthread.h: Add prototypes.
4560 * printcmd.c: Add prototyptes.
4561 (disassemble_command): Remove unused variable 'section'.
4562 * symtab.c: Add prototypes.
4563 * symtab.h: Include gnu-regex.h, add prototype.
4564 * thread.c: Add prototype.
4565
ee31ae22
SS
4566Mon Oct 5 19:44:39 1998 Stan Shebs <shebs@andros.cygnus.com>
4567
4568 From David Purves <purves@apogee.com>:
4569 * stabsread.c (rs6000_builtin_type): Create a complex float instead
4570 of an error.
4571 (read_sun_floating_type): Similarly.
4572 (read_range_type): Create a complex float if self_subrange is
4573 true.
4574
242c0d81
SG
4575Fri Oct 2 19:42:31 1998 Stu Grossman <grossman@babylon-5.cygnus.com>
4576
4577 * c-lang.c (emit_char c_printchar c_printstr), c-lang.h (c_printstr)
4578 ch-lang.c (chill_printstr chill_printchar) c-valprint.c (c_val_print)
4579 ch-valprint.c (chill_val_print) expprint.c (print_subexp) f-lang.c
1ba38e79
MS
4580 (f_printstr f_printchar emit_char) f-valprint.c (f_val_print)
4581 jv-lang.c (java_printchar java_emit_char) jv-valprint.c
4582 (java_value_print java_val_print) language.c (unk_lang_printchar
4583 unk_lang_printstr unk_lang_emit_char) language.h (struct
4584 language_defn LA_PRINT_STRING LA_EMIT_CHAR) m2-lang.c (m2_printstr
4585 m2_printchar emit_char) printcmd.c (print_formatted) scm-lang.c
4586 (scm_printstr) valprint.c (val_print_string) value.h
4587 (val_print_string): Add emit_char routines to language_desc struct
4588 to allow finer control over language specific character output issues.
4589 Add character width arg to printstr routines to allow handling of
4590 wchar_t/Unicode strings. Fix c_printstr to handle wide characters.
4591 Supply width argument to LA_PRINT_STRING and val_print_string.
2e7eeba9 4592
242c0d81
SG
4593 * jv-lang.c (java_object_type dynamics_objfile java_link_class_type
4594 get_dynamics_objfile get_java_object_type) jv-lang.h
4595 (get_java_object_type): Make lots of things static.
2e7eeba9 4596
242c0d81
SG
4597 * expprint.c (dump_prefix_expression dump_subexp): Move opcode name
4598 printing to common routine (op_name).
4599 * (dump_subexp): Add support for OP_SCOPE.
2e7eeba9 4600
bb9e5368
SS
4601Fri Oct 2 16:25:54 1998 Stan Shebs <shebs@andros.cygnus.com>
4602
4603 * configure.host (i[3456]86-*-windows): Remove, no longer used.
4604 * mswin: Remove directory, no longer used.
4605
2d24a021
FN
4606Fri Oct 2 18:52:20 1998 Fernando Nasser <fnasser@cygnus.com>
4607
4608 * sol-thread.c: Fixed prototypes and calls to supply_fpregset and
4609 fill_fpregset
4610
80baea8a
KS
46111998-10-02 Keith Seitz <keiths@cygnus.com>
4612
4613 * remote.c (remote_interrupt): Rewrite to use remote_stop.
4614 (remote_interrupt_twice): Remove. remote_stop now handles it.
4615 (remote_stop): New function which handles interrupting the
4616 remote target so that CLUI and GUI use the same core functions
4617 to achieve the same goal.
4618 (remote_wait): Change to handle remote_stop properly.
4619 [interrupted_already]: New static global to help remote_stop.
4620 [remote_ops, extended_remote_ops]: Add remote_stop for to_stop member.
4621
4622 * target.c: Rename static function "ignore" to "target_ignore" and
4623 export it so that gdb can determin if some target vector member is
4624 actually not defined. Replace all occurances of ignore.
4625
4626 * target.h: Export target_ignore.
4627
47b8a5ce
PS
4628Fri Oct 2 03:51:48 1998 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
4629
4630 * target.c (target_xfer_memory): Handle requests with zero
4631 transfer length right away.
4632
4633 * values.c (unpack_double): Set up code, length and signedness of
4634 type _after_ checking for typedef.
4635
6ee2da94
FCE
4636Thu Oct 1 15:39:27 EDT 1998 Frank Ch. Eigler <fche@cygnus.com>
4637
4638 * breakpoint.c (bpstat_stop_status): Do not consider an
4639 untripped watchpoint as a "hit".
4640
b8464c15
AC
4641Thu Oct 1 20:52:39 1998 Andrew Cagney <cagney@b1.cygnus.com>
4642
c85a8f00
AC
4643 * exec.c (exec_file_command), convex-tdep.c (exec_file_command),
4644 arm-xdep.c (exec_file_command), remote-rdp.c
4645 (remote_rdp_create_inferior), remote-os9k.c
b8464c15
AC
4646 (rombug_create_inferior), remote-mm.c (mm_create_inferior),
4647 remote-eb.c (eb_create_inferior), remote-es.c
4648 (es1800_create_inferior), remote-rdi.c (arm_rdi_create_inferior),
4649 remote-sim.c (gdbsim_create_inferior), remote-utils.c
4650 (gr_create_inferior), remote-st.c (st2000_create_inferior),
4651 remote-nindy.c (nindy_create_inferior), remote-hms.c
4652 (hms_create_inferior), remote-e7000.c (e7000_create_inferior),
4653 remote-array.c (array_create_inferior), remote-adapt.c
4654 (adapt_create_inferior): Replace "exec" with "executable" in
4655 messages.
4656
46571998-09-25 Keith Seitz <keiths@cygnus.com>
4658
4659 * rdi-share/unixcomm.c: If using cygwin32, also use the SERPORT and
4660 PARPORT defines for win32.
4661 (Unix_MatchValidSerialDevice): For cygwin32, valid serial port names
4662 start with "com", not "/dev/tty".
4663 (Unix_OpenSerial): Do not use O_NONBLOCK on cygwin32.
4664
2e7eeba9
MS
4665 * rdi-share/devsw.c (DevSW_Close): Free the device's state
4666 (SwitcherState) so that the device may be reopened.
b8464c15
AC
4667
4668 * remote-rdi.c (mywritec): Send all output through gdb's *_unfiltered
4669 functions, ignoring non-ASCII chars, so that non-tty UI's can snarf
4670 the output from fputs_hook.
4671 (mywrite): Ditto.
4672 (arm_rdi_open): Set inferior_pid.
4673 (arm_rdi_detach): Pop the target off the target stack so that
4674 users can attach and detach multiple times.
4675 (arm_rdi_close): Close the opened device and reset inferior_pid, too.
4676
4817b408
JM
46771998-09-24 Jason Molenda (jsm@bugshack.cygnus.com)
4678
4679 * configure.in: Change --enable-warnings to --enable-build-warnings.
4680 * configure: Updated.
4681
e3009a74
JM
46821998-09-24 Jason Molenda (jsm@bugshack.cygnus.com)
4683
4684 * configure.in (WARN_CFLAGS): Add -Wmissing-prototypes.
4685 * configure: Regenerated.
4686
ba68ad57
JM
46871998-09-24 Jason Molenda (jsm@bugshack.cygnus.com)
4688
4689 * configure.in: Add --enable-warnings.
4690 Adjust whitespace of other --with and --enable options so that
4691 configure --help lines up correctly.
4692 * aclocal.m4: Ditto.
4693 * Makefile.in (WARN_CFLAGS): Add. Set by configure.
4694 * configure: Regenerated.
4695
f1f8c637
SS
4696Thu Sep 24 15:44:34 1998 Stan Shebs <shebs@andros.cygnus.com>
4697
4698 * remote-rdi.c: Fix formatting, remove some commented-out code.
4699 (init_rdi_ops): Omit needless initializations.
4700
8456141b
AC
4701Wed Sep 23 18:21:03 1998 Andrew Cagney <cagney@b1.cygnus.com>
4702
4703 * remote.c (remote_address_masked): New function - mask address
4704 according to REMOTE_ADDRESS_SIZE.
4705 (remote_address_size): New global.
4706 (hexnumstr): New function - convert arbitrary unsigned to hex.
4707 (remote_write_bytes, remote_read_bytes): Use hexnumstr to
4708 construct packet address. Mask address when necessary.
4709 (_initialize_remote): Add "set remoteaddresssize" command, set
4710 REMOTE_ADDRESS_SIZE variable.
4711
4712 * NEWS: Update.
2e7eeba9 4713
f8059b97
AC
4714Wed Sep 23 18:08:52 1998 Andrew Cagney <cagney@b1.cygnus.com>
4715
4716 * remote.c (_initialize_remote, packet_command, print_packet):
4717 Pretty print code.
4718
abf80d3b
AC
4719Wed Sep 23 12:32:54 1998 <cagney@amy.cygnus.com>
4720
4721 * remote.c (packet_command): Test REMOTE_DESC to determine if
4722 remote connection is open.
2e7eeba9 4723
0ec1e44d
MA
4724Tue Sep 22 22:27:24 1998 Mark Alexander <marka@cygnus.com>
4725
4726 Patch from Dawn Perchik <dawn@cygnus.com>:
4727 * rs6000-tdep.c (pop_frame): Handle generic dummy frames.
4728 (push_arguments): Likewise.
4729 (frame_saved_pc): Likewise.
4730 (rs6000_frame_chain): Likewise.
4731 (ppc_push_return_address): New function.
4732 (get_saved_register): New function.
4733 * config/powerpc/tm-ppc-eabi.h: Add generic dummy frame macros.
4734
7b46dd00
SG
4735Mon Sep 21 19:29:32 1998 Stu Grossman <grossman@babylon-5.cygnus.com>
4736
4737 * defs.h utils.c (fputc_filtered): New function. Does the obvious...
4738 * jv-lang.c (java_printchar): Fix output of chars > 0xff. Fold
4739 java_emit_char into java_printchar.
4740 * language.h (PRINT_LITERAL_FORM): Reformat for readability.
2e7eeba9 4741
a63e3725
NC
4742Mon Sep 21 14:38:03 1998 Catherine Moore <clm@cygnus.com>
4743
4744 * config/arm/tm-arm.h (*_BREAKPOINT): Define both little endian
4745 and big endian breakpoint patterns.
4746
4747 * arm-tdep.c (arm_break_point_from_pc): Insert either big endian
4748 or little endian breakpoints depending upon target byte order.
4749
3dc96daa
RU
4750start-sanitize-sky
4751Sun Sep 20 23:11:41 1998 Ron Unrau <runrau@cygnus.com>
4752
4753 * incorporate SKY-B changes (makes dual maintenance easier).
4754 * txvu-tdep.c (check_overlap): new function to guarantee that
4755 overlays are either mapped or unmapped in their entirety.
4756 * txvu-tdep.c (compress_blockvector): compress blockvectors correctly
4757
4758end-sanitize-sky
d2fce7f7
PS
4759Fri Sep 18 07:53:08 1998 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
4760
4761 * sol-thread.c (sol_thread_notice_signals): Use PIDGET when
4762 passing pid down to procfs_notice_signals.
4763
082a0803
SG
4764Wed Sep 16 14:57:14 1998 Stu Grossman <grossman@babylon-5.cygnus.com>
4765
4766 * stabsread.c (resolve_symbol_reference): Return 1 on success, 0 on
4767 failure.
4768 * (define_symbol): Check return value from resolve_symbol_reference,
4769 and drop symbol if it fails.
4770
4771Tue Sep 15 15:24:16 1998 Stu Grossman <grossman@fencer.cygnus.com>
4772
4773 * stabsread.c: Make all complaints static.
4774 * Fix formatting of live range splitting code.
4775 * (resolve_symbol_reference define_symbol resolve_live_range): Change
4776 errors to complaints so that bad live range symbols won't abort the
4777 entire symbol table. Handle errors by aborting just the current
4778 symbol.
4779 * (ref_init): Goes away. Folded into ref_add().
4780 * (REF_MAP_SIZE): Put parens around parameter so that args like
4781 `1 + 2' get handled correctly (yes, this was a real bug).
4782 * (ref_add): Remove check for allocation failures. Not necessary
4783 when using xrealloc(). Fix pointer arithmetic problem when clearing
4784 memory. This and the previous patch prevent random SEGV's when there
4785 are lots of live range symbols.
2e7eeba9 4786
9d561e1e
NC
4787Tue Sep 15 14:02:01 1998 Nick Clifton <nickc@cygnus.com>
4788
4789 * remote-rdi.c: Prevent multiple attempts to close the remote
4790 connection.
4791
b2d55813
AC
4792Tue Sep 15 10:24:17 1998 Andrew Cagney <cagney@b1.cygnus.com>
4793
4794 * printcmd.c (examine_i_type): New static - type for instructions.
4795 (do_examine): For "i" format, specify examine_i_type.
4796 (do_examine): Call value_at_lazy instead of value_at so that
4797 examine data is only fetched if it is used.
4798 (x_command): If examine data was not fetched, set convenience
4799 variable "__" to void.
4800 (_initialize_printcmd): Initialize examine_i_type.
4801
4a8051a8
MS
4802Sun Sep 13 01:34:59 1998 Michael Snyder <msnyder@cleaver.cygnus.com>
4803
4804 * blockframe.c (find_pc_sect_partial_function): use bfd section
4805 of msymbol for end of section comparison.
4806
74c1b0ba
MS
4807Fri Sep 11 14:02:49 1998 Michael Snyder <msnyder@cleaver.cygnus.com>
4808
4809 * tracepoint.c: clean up several unused variables and such.
05f1989d
ZR
4810
4811Fri Sep 11 12:38:34 EDT 1998 Zdenek Radouch (radouch@cygnus.com)
4812
4813 * arm-tdep.c (arm_push_arguments): fixed frame construction
4814
6a5c7685
MS
4815Thu Sep 10 20:51:23 1998 Michael Snyder <msnyder@cleaver.cygnus.com>
4816
4817 * mn10300-tdep.c (mn10300_analyze_prologue): guard against NULL.
2e7eeba9 4818
d7d7dd1b
SS
4819Wed Sep 9 19:37:36 1998 Stan Shebs <shebs@andros.cygnus.com>
4820
4821 * dbxread.c (IGNORE_SYMBOL): Remove definition, is never used.
4822 * os9kread.c: Remove comment mentioning IGNORE_SYMBOL.
4823
253ceee6
RU
4824Wed Sep 9 11:39:05 1998 Ron Unrau <runrau@cygnus.com>
4825
4826 * blockframe.c(find_pc_sect_partial_function): look for min syms in
4827 the same section when trying to guess the end of a function.
4828 * symfile.c(list_overlays_command): use print_address_numeric
4829 * remote-sim.c: export simulator_command
4830start-sanitize-r5900
4831 * tm-r5900.h: add COP0 registers
4832end-sanitize-r5900
4833start-sanitize-sky
4834 * txvu-tdep.c: printvector and printvector-order commands
4835 * tm-txvu.h: add COP0 registers
4836 * mips-tdep.c: use NUM_CORE_REGS
4837end-sanitize-sky
2e7eeba9 4838
fc410908
JM
48391998-09-08 Jason Molenda (jsm@bugshack.cygnus.com)
4840
4841 * breakpoint.c (bpstat_stop_status): Declare a bp match if the
4842 current fp matches the bp->fp OR if the current fp is less than
4843 the bp->fp if we're looking at a bp_step_resume breakpoint.
4844
1f926de1
SS
4845Tue Sep 8 19:42:58 1998 Stan Shebs <shebs@andros.cygnus.com>
4846
4847 * symtab.h (struct symtab): Remove EXTRA_SYMTAB_INFO hook,
4848 not currently used.
4849 * symfile.c (allocate_symtab): Deprecate use of
4850 INIT_EXTRA_SYMTAB_INFO here.
4851
da5328ae
SS
4852Fri Sep 4 15:33:25 1998 Stan Shebs <shebs@andros.cygnus.com>
4853
4854 * README: Update remote debugging and testsuite info.
4855
11ac7952
MA
4856Thu Sep 3 13:50:20 1998 Mark Alexander <marka@cygnus.com>
4857
4858 * config/mn10300/tm-mn10300.h (FP_REGNUM): Redefine to be a
4859 pseudo-register, not the same as a3.
4860 (D2_REGNUM, D3_REGNUM, A2_REGNUM, A3_REGNUM): Define.
4861 * mn10300-tdep.c (fix_frame_pointer): New function.
4862 (set_movm_offsets): Use register number macros instead of
4863 hard-coded constants.
4864 (mn10300_analyze_prologue): Fix to handle redefinition of FP_REGNUM.
4865 (mn10300_frame_chain): Fix to handle redefinition of FP_REGNUM;
4866 use register number macros instead of hard-coded constants;
4867 add missing parameter to call of mn10300_analyze_prologue.
4868 (mn10300_frame_saved_pc): Use register number macros instead of
4869 hard-coded constants.
4870
e01b4200
ZR
4871Tue Sep 1 12:04:57 EDT 1998 Zdenek Radouch (radouch@cygnus.com)
4872
4873 Changes to support/fix ARM/ELF port. Use MAKE_MSYMBOL_SPECIAL for
4874 both ELF and COFF;
4875 * elfread.c (elf_symtab_read): use ELF specific macro
4876 * coffread.c (coff_symtab_read): use COFF_MAKE_MSYMBOL_SPECIAL()
4877 * arm-tdep.c: separate COFF and ELF thumb processing
4878 disable --mapcs-float processing
4879 * dwarf2read.c: Disabled building of minimal symbols
4880 * config/arm/tm-arm.h: new macros for distinguishing arm/thumb
4881 * config/mips/tm-mips.h: use ELF specific macro
4882
d5adad6a
TT
4883Mon Aug 31 15:42:10 1998 Tom Tromey <tromey@cygnus.com>
4884
4885 * top.c (context_hook): Define.
4886
290bc185
MS
4887Tue Aug 25 13:21:58 1998 Michael Snyder <msnyder@cleaver.cygnus.com>
4888
4889 * ax-gdb.c (gen_var_ref): Allow for typedef types.
d5adad6a 4890 (gen_cast, gen_bitfield_ref, gen_expr, gen_deref): ditto.
290bc185 4891
98760699
MS
4892Mon Aug 24 18:29:03 1998 Michael Snyder <msnyder@cleaver.cygnus.com>
4893
4894 * tracepoint.c (collect_symbol): Handle register doubles that
4895 are stored in two registers.
4896
ce8f5b49
MA
4897Mon Aug 24 14:39:08 1998 Mark Alexander <marka@cygnus.com>
4898
4899 * sh-stub.c (undoSStep): Improve comment.
4900 * sparc-tdep.c (sparc_extract_struct_value_address): Simplify to use
4901 same method on both 32-bit and 64-bit machines.
4902 * sparcl-tdep.c (sparclite_check_watch_resources): Simulator doesn't
4903 support hardware breakpoints.
4904 * config/sparc/tm-sparc.h (CALL_DUMMY): Improve comments.
4905
ae69b4c4
JM
49061998-08-20 Jason Molenda (jsm@bugshack.cygnus.com)
4907
4908 * rdi-share/Makefile.am (INCLUDES): Fix typeo.
4909 * rdi-share/Makefile.in: Regenerated.
4910
c0ca074b
JM
49111998-08-19 Jason Molenda (jsm@bugshack.cygnus.com)
4912
4913 * rdi-share/Makefile.am: Use just `INCLUDES' not `libname_INCLUDES'.
4914 * rdi-share/Makefile.in: Regenerated.
4915
67205639
KS
49161998-08-19 Keith Seitz <keiths@cygnus.com>
4917
4918 * v850ice.c (v850ice_stop): New function to stop the ICE.
4919 (v850ice_load) Pass filename to ICE DLL.
4920 (ice_stepi, ice_nexti, ice_cont): Do not directly call the gdb
4921 commands -- let the GUI do it so that it can retain control
4922 of the display.
4923
9ca743cf
AG
4924Wed Aug 19 15:53:52 1998 Anthony Green <green@hoser.cygnus.com>
4925
4926 * i386v4-nat.c: Include sys/reg.h if present.
4927
54f750d1
RH
4928Wed Aug 19 03:07:53 1998 Richard Henderson <rth@cygnus.com>
4929
4930 * config/alpha/alpha-linux (XDEPFILES): Build ser-tcp.
4931
6cf219ac
FN
49321998-08-18 Fernando Nasser <fnasser@totem.to.cygnus.com>
4933
4934 * symtab.c (decode_line_1): For minimal symbol, SKIP_PROLOG to
4935 make sure we stop after the frame pointer is locaded and backtrace
4936 prints an accurate stack. Complements changes made on Mon Jul 27
4937 10:45:56 1998
4938 (decode_line_2): Replaced the whitespace after ">" in a prompt
4939 which has been taken away by changes made on Sun Jul 19 02:11:45
4940 1998
4941
a3603553
KS
49421998-08-18 Keith Seitz <keiths@cygnus.com>
4943
4944 * stack.c: Define new hook, selected_frame_level_changed_hook, which
4945 will be called whenever the selected stack level changes.
4946 (select_frame): Call the selected_frame_level_changed_hook.
2e7eeba9 4947
d9c02b1e
SS
4948Tue Aug 18 18:03:42 1998 Stan Shebs <shebs@andros.cygnus.com>
4949
4950 * remote-rdi.c (arm_rdi_open): Pass serial device name to
4951 Adp_OpenDevice, and include it in error reports.
4952
4ff3dfab
JM
49531998-08-18 Jason Molenda (jsm@bugshack.cygnus.com)
4954
4955 * configure.in: Add more header files to AC_CHECK_HEADERS.
4956 * configure: Regenerated.
4957
4958 * command.c: Include wait.h or sys/wait.h if present.
4959 * inftarg.c: Ditto.
4960 * core-aout.c: Include ptrace.h or sys/ptrace.h if present, based
4961 on autoconf test.
4962 * infptrace.c: Ditto.
4963
4964 * expprint.c: Include ctype.h for isprint prototype.
4965 * i386aix-nat.c: Include sys/reg.h if autoconf says it is present.
4966 * i386v-nat.c: Include ptrace.h, sys/ptrace.h, and sys/reg.h if
4967 present, based on autoconf test.
4968
4969 * utils.c: Include curses.h and term.h if present.
4970 (puts_debug): Change 'carriage_return' local variable to return_p
4971 to avoid name clash.
4972
4973 * config/m68k/nm-apollo68b.h: Don't define PTRACE_IN_WRONG_PLACE,
4974 determine it with autoconf.
4975 * config/i386/nm-linux.h: Don't define NO_SYS_REG_H, determine it
4976 with autoconf.
4977 * config/i386/nm-i386sco.h: Don't define NO_PTRACE_H, determine it
4978 with autoconf.
4979 * config/i386/nm-i386v.h: Ditto.
4980 * config/i386/nm-symmetry.h: Ditto.
4981 * config/m88k/xm-cxux.h: Ditto.
4982 * config/m88k/xm-dgux.h: Ditto.
4983
4984 * config/m68k/delta68.mh (NAT_FILE): nm-delta68.h no longer necessary.
4985 * config/m68k/nm-delta68.h: Removed.
4986
854b0c14
JL
4987Fri Aug 14 11:14:03 1998 Jeffrey A Law (law@cygnus.com)
4988
4989 * mn10300-tdep.c (set_movm_offsets): Change second argument to
4990 be the actual args to movm itself. All callers changed. Only set
4991 fi->fsr.regs[x] if reg X is saved by the movm instruction.
4992
cfd7cb29
PS
4993Fri Aug 14 04:18:23 1998 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
4994
4995 * sol-thread.c (lwp_to_thread): Fix error message for failing
4996 td_ta_map_lwp2thr call.
4997 (ps_lgetLDT): Mask off upper bits in GS register when comparing
4998 with selector.
4999
5000Wed Aug 12 16:30:01 1998 Frank Ch. Eigler <fche@cygnus.com>
5001
5002 * remote-sim.c (simulator_command): Reset register cache after
5003 simulator command.
5004
d826d368
SG
5005Wed Aug 12 09:00:26 1998 Stu Grossman <grossman@babylon-5.cygnus.com>
5006
2e7eeba9
MS
5007 * expprint.c (dump_prefix/postfix_expression): Don't try to print
5008 type expressions.
d826d368 5009
433732f2
SG
5010Tue Aug 11 11:33:25 1998 Stu Grossman <grossman@babylon-5.cygnus.com>
5011
5012 * c-typeprint.c (c_print_type): Don't crash if varstring is null.
5013 * expprint.c expression.h (dump_expression): Rename to
5014 dump_prefix_expression.
5015 * Print out the expression in normal form. Call print_longest
5016 instead of trying to do it ourselves.
5017 * (dump_postfix_expression): New function, prints out the expression
5018 with indentation and better formatting and interpretation.
5019 * parse.c (parse_exp_1): Put calls to dump expressions under ifdef
5020 MAINTENANCE_CMDS and expressiondebug variable.
2e7eeba9 5021
433732f2
SG
5022Thu Aug 6 13:20:02 1998 Ron Unrau <runrau@cygnus.com>
5023
5024 * infrun.c (wait_for_inferior): use stop_func_name instead of
5025 stop_func_start to decide that no debug info exists.
5026
e417b893 5027start-sanitize-sky
b620406a
RU
5028Thu Aug 6 13:15:05 1998 Ron Unrau <runrau@cygnus.com>
5029
5030 * txvu-tdep.c: add VU0/1 control registers
5031 * config/mips/tm-txvu.h: ditto
2e7eeba9 5032
05ee9089
RU
5033Tue Aug 4 11:02:50 1998 Ron Unrau <runrau@cygnus.com>
5034
5035 * txvu-tdep.c (txvu_insert_breakpoint): make sure CPU context is
5036 set to correct VU memory space.
5037 (txvu_remove_breakpoint): use this instead of txvu_breakpoint_from_pc
5038 * config/tm-txvu.h: use new track-table address
5039 Do note define BREAKPOINT_FROM_PC anymore
5040
e417b893
RU
5041Fri Jul 31 16:06:05 1998 Ron Unrau <runrau@cygnus.com>
5042
5043 * config/tm-txvu.h: use NUM_CORE_REGS instead of NUM_R5900_REGS
5044 * mips-tdep.c: use NUM_CORE_REGS
5045 * txvu-tdep.c: use NUM_CORE_REGS, add function prototypes
5046 (txvu_insert_breakpoints): use VIF interrupt bit
5047
5048end-sanitize-sky
5049Thu Jul 30 13:53:50 1998 Mark Alexander <marka@cygnus.com>
5050
5051 * mips-tdep.c (mask_address_p): New variable.
5052 (mips_addr_bits_remove): Test mask_address_p to decide whether
5053 to mask off the upper 32 bits of addresses.
5054 (_initialize_mips_tdep): Add command to set mask_address_p.
5055 (mips_call_dummy_address): New function.
5056 * config/mips/tm-mips.h (CALL_DUMMY_ADDRESS): Redefine to
5057 call mips_call_dummy_address.
5058
4ef0351d
FN
50591998-07-29 Fernando Nasser <fnasser@totem.to.cygnus.com>
5060
5061 * symfile.c (add_symbol_file_command): Test for the from_tty
5062 parameter and avoid query when not interactive.
5063
6185f899
JL
5064start-sanitize-am33
5065Wed Jul 29 10:39:29 1998 Jeffrey A Law (law@cygnus.com)
5066
5067 * mn10300-tdep.c (set_movm_offsets): Do nothing for the am33
5068 registers if we are not in am33 mode.
5069 (mn10300_frame_chain, mn10300_frame_saved_pc): Similarly.
5070 (set_machine_hook): Keep track of whether or not we're in am33 mode.
5071
5072end-sanitize-am33
0745a748
MS
5073Mon Jul 27 16:11:42 1998 Michael Snyder <msnyder@cleaver.cygnus.com>
5074
5075 * tracepoint.c (remote_set_transparent_ranges): new function.
5076 Send the start and end addresses of all loadable read-only
5077 sections down to the trace target, so that it can treat them
5078 as "transparent" (ie. don't care if they were collected or not).
5079
5ef103c0
MA
5080Mon Jul 27 15:38:07 1998 Mark Alexander <marka@cygnus.com>
5081
5082 * mn10300-tdep.c (mn10300_analyze_prologue): Undo previous fix
5083 for setting frame address in optimized code; made unnecessary
5084 by compiler fixes.
5085
55d3002f
MH
5086Mon Jul 27 10:45:56 1998 Martin M. Hunt <hunt@cygnus.com>
5087
5088 * symtab.c (decode_line_1): For minimal symbol, call
5089 find_pc_sect_line() to make sure the line number gets set
5090 properly.
5091 (print_symbol_info): Redeclare function void.
5092
2926766b
JM
50931998-07-27 Jason Molenda (jsm@bugshack.cygnus.com)
5094
5095 * config/d10v/tm-d10v.h (REGISTER_NAMES): sp -> r15. The
5096 stack pointer et al are synthesized from the SP_REGNUM (etc)
5097 defines and should not be mentioned in REGISTER_NAMES.
5098
b5b59a3c
JL
5099start-sanitize-am33
5100Mon Jul 27 08:54:41 1998 Jeffrey A Law (law@cygnus.com)
5101
5102 * mn10300-tdep.c (mn10300_frame_chain): Account for space saved
5103 by am33 register saves.
5104 (mn10300_frame_saved_pc): Similarly.
5105
5106end-sanitize-am33
8d6476c7
MS
5107Fri Jul 24 14:41:19 1998 Michael Snyder <msnyder@cleaver.cygnus.com>
5108
5109 * tracepoint.c (encode_actions): Treat register names and simple
5110 variable names as special cases and don't convert them to byte-
5111 codes: these things can be collected far more efficiently
5112 without invoking the bytecode interpreter.
5113
bd06c4e4
MA
5114Fri Jul 24 13:32:46 1998 Mark Alexander <marka@cygnus.com>
5115
5116 * config/i386/tm-i386.h (STORE_STRUCT_RETURN): Make it
5117 work on hosts of any endianness.
4448ace2 5118 * config/i386/tm-i386v.h: Ditto.
bd06c4e4 5119
52e4073c
MA
5120Fri Jul 24 07:41:12 1998 Mark Alexander <marka@cygnus.com>
5121
5122 * mn10300-tdep.c (set_movm_offsets): New helper function
5123 for mn10300_analyze_prologue.
5124 (mn10300_analyze_prologue): Simplify by factoring out common code.
5125 Fix bugs in setting frame address for optimized code.
5126 Use read_memory_nobpt instead of target_read_memory.
5127
f32fa053
MS
5128Thu Jul 23 17:01:17 1998 Michael Snyder <msnyder@cleaver.cygnus.com>
5129
5130 * tracepoint.c (collect_symbol): handle LOC_ARG case.
5131
79dc9305
DP
5132Thu Jul 23 15:07:40 1998 Dawn Perchik <dawn@cygnus.com>
5133
5134 * sparc-tdep.c (sparc_init_extra_frame_info): Recognize when we're
5135 in a function prologue before the SAVE instruction.
5136 (sparc_frame_saved_pc): Ditto.
5137 * config/sparc/tm-sparc.h (EXTRA_FRAME_INFO): Add in_prologue flag.
5138
dd473edc
DP
5139Thu Jul 23 14:58:09 1998 Dawn Perchik <dawn@cygnus.com>
5140
5141 * i386-tdep.c (i386_get_frame_setup): Recognize function
5142 prologues in code compiled with -fcheck-stack.
5143
2474bfd7
DP
5144Thu Jul 23 14:49:27 1998 Dawn Perchik <dawn@cygnus.com>
5145
5146 * remote-mips.c (remote_mips_insert_hw_breakpoint,
5147 remote_mips_remove_hw_breakpoint): New functions for hardware
5148 breakpoints on LSI targets.
5149 * config/mips/tm-embed.h (target_remove_hw_breakpoint,
5150 target_insert_hw_breakpoint): Define to call
5151 remote_mips_insert_hw_breakpoint and remote_mips_remove_hw_breakpoint,
5152 respectively.
5153
f07122bc
IC
5154start-sanitize-sky
5155Thu Jul 23 13:00:28 1998 Ian Carmichael <iancarm@cygnus.com>
5156
b5c7e122 5157 * txvu-tdep.c (VU0_MEM0_WINDOW_START, VU1_MEM0_WINDOW_START)
f07122bc
IC
5158 Changed to use addresses in kseg1 range.
5159
5160end-sanitize-sky
51611998-07-21 Fernando Nasser <fnasser@totem.to.cygnus.com>
5162
5163 * source.c (print_source_lines): Print "No such file or directory"
5164 just once.
5165 (directory_command): same as above; resets if user issues dir.
2e7eeba9 5166
4d14b252
MH
5167Sun Jul 19 02:11:45 1998 Martin M. Hunt <hunt@cygnus.com>
5168
5169 * symtab.c (decode_line_2): Instead of printing a prompt
5170 and calling command_line_input() without a prompt, just
5171 call it with the proper args. This makes the GUI work too.
5172
36297ff3
RU
5173Fri Jul 17 9:26:50 1998 Ron Unrau <runrau@cygnus.com>
5174
5175 * blockframe.c (find_pc_sect_partial_function): allow for the possi-
5176 bility of multiple symbols at the same address when finding high.
5177 * breakpoint.c (resolve_sal_pc): if the function based section lookup
5178 fails, try getting the section from the minimal symbol table.
5179 * parse.c (write_exp_msymbol): use symbol_overlayed_address to get
5180 the LMA of a minimal symbol if unmapped.
5181 * symtab.c (find_line_symtab): change interface to return symtab
5182 containing the best linetable found.
5183 (decode_line_1): use find_line_symtab to set val.symtab. This should
5184 improve support for source files with multiple symtabs.
5185start-sanitize-sky
5186 * tm-txvu.h: include tm-mips64.h instead of starting from scratch.
5187end-sanitize-sky
5188
895cc8ab
KS
5189Wed Jul 15 11:51:33 1998 Keith Seitz <keiths@cygnus.com>
5190
5191 * main.c (main): Fix violations of GNU coding standard.
5192
5193 * breakpoint.c: Export delete_command.
5194
5195 * infcmd.c: Export continue_command, stepi_command, and nexti_command.
5196
5197 * Makefile.in: Add target for v850ice.o.
5198
5199 * configure.tgt: Add cygwin32 dependencies for v850 ice.
2e7eeba9 5200
e1f1ed1a
NC
5201Wed Jul 15 10:58:29 1998 Nick Clifton <nickc@cygnus.com>
5202
5203 * tracepoint.c (set_raw_tracepoint): Cope with symbols that do not
5204 have an associated directory.
5205
5206Mon Jul 13 15:21:04 1998 Mark Alexander <marka@cygnus.com>
5207
5208 * utils.c (puts_debug): Display non-printable characters in hex
5209 instead of octal.
5210
f05bd277
JL
5211Thu Jul 9 16:16:47 1998 Jeffrey A Law (law@cygnus.com)
5212
5213 * mn10300-tdep.c (mn10300_generic_register_names): New variable.
5214 (set_machine_hook): New function. Copy the appropriate register
5215 names into reg_names.
5216 (_initialize_mn10300_tdep): Set up to call set_machine_hook.
5217 * tm-mn10300 (NUM_REGS): Bump to 32.
5218 (REGISTER_NAMES): Updated accordingly.
5219
5220start-sanitize-am33
5221 * mn10300-tdep.c (am33_register_names): New variable.
5222 (mn10300_analyze_prologue): Handle regs saved by am33 prologues.
5223 * tm-mn10300.h (E0_REGNUM): Define.
5224end-sanitize-am33
5225
89f015d7
RU
5226Tue Jul 7 7:40:13 1998 Ron Unrau <runrau@cygnus.com>
5227
5228 * symtab.c (find_pc_sect_psymbol): allow case where textlow is 0
5229
8d3c21b3
FCE
5230Thu Jul 2 15:57:58 1998 Frank Ch. Eigler <fche@cygnus.com>
5231
5232 * breakpoint.c (resolve_sal_pc): Accept absence of innermost
5233 Lexical block for breakpoint resolution.
5234
3acd0db5
DP
5235Thu Jul 2 10:22:00 1998 Dawn Perchik <dawn@cygnus.com>
5236
5237 * mdebugread.c (parse_partial_symbols): Go ahead and read the .mdebug
5238 section, but just don't add a 2nd minimal symbol if this is an .mdebug
5239 section in an ELF file.
5240
40d8aa2c
JB
52411998-07-01 Jim Blandy <jimb@zwingli.cygnus.com>
5242
5243 * Makefile.in (ax-general.o): Depend on $(defs_h) too.
5244 (ax_h): Bother to define this.
5245
d40d5880
JM
5246Mon Jun 29 19:01:18 1998 Jim Wilson <wilson@cygnus.com>
5247
5248 * gnu-regex.c (re_comp): Add cast to char * before gettext calls.
5249
655a27b0
PS
5250Sun Jun 28 11:35:48 1998 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
5251
5252 Improve support for SunPro F77.
5253 * dbxread.c (end_psymtab, process_one_symbol): Handle minimal
5254 symbols with trailing underscore names.
5255 * minsyms.c (find_stab_function_addr): Ditto.
5256 * dbxread.c (process_one_symbol): Ignore N_ALIAS for now.
5257 * partial-stab.h (case N_ALIAS): Ditto.
5258 * stabsread.c (read_sun_builtin_type): Handle boolean types.
5259
7f6cb62e
KS
5260Fri Jun 26 14:03:01 1998 Keith Seitz <keiths@cygnus.com>
5261
5262 * symtab.h (enum namespace): Add new namespaces FUNCTIONS_NAMESPACE,
5263 TYPES_NAMESPACE, METHODS_NAMESPACE, and VARIABLES_NAMESPACE used by
5264 new search_symbols.
5265 Add prototype for search_symbols and free_search_symbols.
5266
5267 * symtab.c (list_symbols): Rewrite to use new search_symbols.
5268 (file_matches): New helper function for search_symbols.
5269 (free_search_symbols): New function which frees data returned from
5270 search_symbols.
5271 (print_symbol_info): New helper function which prints info about a
5272 matched symbol to stdout. Extracted from old list_symbols.
5273 (print_msymbol_info): New helper function which prints info about
5274 a matched msymbol to stdout. Extracted from old list_symbols.
5275 (symtab_symbol_info): Extracted from old list_symbols.
5276 (variables_info): Use symtab_symbol_info.
5277 (functions_info): Use symtab_symbol_info.
5278 (types_info): Use symtab_symbol_info.
5279 (rbreak_command): Rewrite to use new search_symbols.
5280
d3f153ad
FCE
5281Thu Jun 25 22:38:32 1998 Frank Ch. Eigler <fche@cygnus.com>
5282
5283 * mips-tdep.c (mips_push_arguments): Use 128-bit stack frame
5284 alignment for inferior calls.
5285
9d4cd1e8
MA
5286Wed Jun 24 23:17:12 1998 Mark Alexander <marka@cygnus.com>
5287
5288 * mn10200-tdep.c (mn10200_analyze_prologue): Fix calculation
5289 of jsr target address.
5290
2f75adc0
MA
5291Tue Jun 23 19:37:46 1998 Mark Alexander <marka@cygnus.com>
5292
5293 * config/mn10200/tm-mn10200.h (SAVED_PC_AFTER_CALL): Don't
5294 zero upper byte of address.
5295
75621b2b
MS
5296Tue Jun 23 17:32:26 1998 Michael Snyder <msnyder@cleaver.cygnus.com>
5297
5298 * rs6000-tdep.c (pop_dummy_frame): use memcpy.
5299 (push_arguments): use memset.
5300 (various other places): fix up indentation and long lines.
5301
59bbabf5
JM
5302Tue Jun 23 11:58:35 1998 Jason Molenda (crash@bugshack.cygnus.com)
5303
5304 * configure.in: s/lXext/-lXext/ for Jillian's change.
5305
a00dfa36
MS
5306Tue Jun 23 11:14:04 1998 Michael Snyder <msnyder@cleaver.cygnus.com>
5307
d32d4319
MS
5308 * source.c (find_source_lines): fix indentation.
5309
a00dfa36
MS
5310 * config/mips/tm-irix5.h: Modify to work better on irix 6, by
5311 making FP registers 8 bytes instead of 4.
5312 REGISTER_BYTES: redefine. REGISTER_BYTE(): redefine.
5313 REGISTER_VIRTUAL_TYPE: redefine. MIPS_LAST_ARG_REGNUM: redefine.
5314 * irix5-nat.c (fetch_core_registers): read 8 bytes per FP register.
5315 * mips-tdep.c (FP_REGISTER_DOUBLE): new macro to distinguish
5316 targets with 8-byte FP registers (don't use TARGET_MIPS64).
5317 (STACK_ARGSIZE): new macro, how much space is taken up on the
5318 stack for each function argument (don't use TARGET_MIPS64).
5319 (mips_push_arguments): modify logic to work better on Irix 6
5320 (n32 ABI).
5321
f915cc91
JY
5322Tue Jun 23 12:29:53 1998 Jillian Ye <jillian@cygnus.com>
5323
5324 * configure.in: Add -lXext to mips_extra_libs
59bbabf5 5325 * configure: Regenerated.
f915cc91
JY
5326
5327Sun Jun 21 09:31:12 1998 Ron Unrau (runrau@cygnus.com)
5328
5329 * symtab.c (find_line_pc): assumed that a PC of 0 is illegal.
91e14aa9
SS
5330 Changed to pass PC as arg and return 1 if valid (0 otherwise).
5331 * symtab.h: Change prototype to match.
5332 * symtab.c (find_line_pc_range): Use new interface.
5333 * breakpoint.c (resolve_sal_pc): Ditto.
f915cc91
JY
5334
5335Wed Jun 17 15:50:00 1998 Ron Unrau (runrau@cygnus.com)
5336
5337 * parse.c (target_map_name_to_register): Check target specific
5338 aliases *first* so that it can over-ride architectural names
2e7eeba9 5339
959941e7
SZ
5340Wed Jun 17 17:13:38 1998 Said Ziouani (saidz@park-street.cygnus.com)
5341
5342 * remote-sds.c (sds_start_remote): Fix printf call.
5343
40fad493
MA
5344Tue Jun 16 16:32:08 1998 Mark Alexander <marka@cygnus.com>
5345
5346 * mn10200-tdep.c (mn10200_analyze_prologue): Fix null pointer
5347 crash when in "start".
5348
ec076280
RU
5349Tue Jun 16 14:38:40 1998 Ron Unrau (runrau@cygnus.com)
5350
5351 * dbxread.c: reset function_start_offset after a finishing N_FUN
5352 is seen.
5353 * remote-sim.c: allow TARGET_REDEFINE_DEFAULT_OPS to override
5354 target vectors as needed.
5355
c4faac32
RU
5356Sun Jun 14 08:46:25 1998 Ron Unrau (runrau@cygnus.com)
5357
5358 * partial-stab.h: 'F' and 'f' type N_FUN psymbols should pass
5359 CUR_SYMBOL_VALUE as CORE_ADDR instead of long
5360 * buildsym.[ch]: export pending_blocks list
5361
47963370
DP
5362Sat Jun 13 13:02:32 1998 Dawn Perchik (dawn@cygnus.com)
5363
2e7eeba9 5364 * remote.c: Fix remote help string to match that of help.exp.
47963370 5365
15125484
JM
5366Fri Jun 12 14:22:55 1998 Jason Molenda (crash@bugshack.cygnus.com)
5367
5368 * configure.in (LIBS): Add -lw to the list of libraries if needed.
5369
5370Thu Jun 11 15:05:10 1998 Jason Molenda (crash@bugshack.cygnus.com)
5371
5372 * btowc.c: Removed.
5373 * configure.in: Don't see if we need to replace btowc().
5374 * Makefile.in: Don't include LIBOBJS.
5375 * configure: Regenerated.
5376 * gnu-regex.c (regex_compile): Only support i18n [:foo:] if
5377 we have btowc().
5378
f6d23b6f
SG
5379Wed Jun 10 15:39:14 1998 Stu Grossman <grossman@babylon-5.cygnus.com>
5380
2e7eeba9
MS
5381 * c-exp.y: Fix problems with parsing "'foo.bar'::func".
5382 Some languages allow symbols with dots.
f6d23b6f
SG
5383
5384 * gdbtypes.c (check_stub_method): Cosmetic. Use more descriptive
5385 names for parameters.
5386
5387start-sanitize-java
5388 * jv-exp.y: Parser now accepts primitive types.
5389 * (parse_number): Use correct ifdef for scanf long double support.
5390 * jv-lang.c (java_array_type): Initial cut at array support.
5391
5392end-sanitize-java
5393 * language.c language.h (set_language): Now returns previous language.
5394
5395 * symtab.c (find_methods): Make static. Cosmetic changes, including
2e7eeba9
MS
5396 indentation, and adding descriptive comments. Move local variable
5397 defs into the block they are used in.
f6d23b6f
SG
5398 * Don't call check_stub_method any more. Use gdb_mangle_name to
5399 generate the full method name. find_method doesn't need all the other
5400 goobldegook that check_stub_method does.
5401 * (gdb_mangle_name): Use more descriptive names for parameters. Fix
5402 comment.
5403start-sanitize-java
5404 * (lookup_partial_symbol lookup_block_symbol): Check for java to
5405 ensure we can find mangled names.
5406end-sanitize-java
5407 * (decode_line_1): Move local variable defs into the block they are
5408 used in. (Improves code readability.)
2e7eeba9 5409
7924771e
FCE
5410Wed Jun 10 18:04:35 1998 Frank Ch. Eigler <fche@cygnus.com>
5411
5412 * gdbtypes.c (get_discrete_bounds): Assign unsigned type flag for
5413 all-positive enum.
5414 (create_set_type): Ditto for all-positive set values.
5415 * values.c (unpack_field_as_long): Check for typedef in struct
5416 field unpacking.
5417
9ed669cf
JM
5418Wed Jun 10 14:06:05 1998 Jason Molenda (crash@bugshack.cygnus.com)
5419
5420 * configure.in: Add some tests for gnu-regex.c's benefit.
5421 See if btowc() function is provided in C library.
5422 * configure, config.in: Regenerated.
5423 * Makefile.in (CLIBS, CDEPS): Add @LIBOBJS@ to build btowc.c
5424 if necessary.
5425 * btowc.c: New file.
5426
5427 * gnu-regex.c: Reorder wchar.h and wctype.h includes for Solaris'
5428 benefit.
5429 Drop namespace preserving defines for now.
5430
a4122443
JM
5431Wed Jun 10 11:53:42 1998 Jason Molenda (crash@bugshack.cygnus.com)
5432
5433 * gnu-regex.c: Include "gnu-regex.h", not "regex.h".
5434
9408296b
JM
5435Wed Jun 10 11:34:07 1998 Jason Molenda (crash@bugshack.cygnus.com)
5436
5437 * gnu-regex.c, gnu-regex.h: Change LGPL license to GPL license
5438 to stay consistent with the rest of GDB.
5439
9f85ab1a
JM
5440Wed Jun 10 11:27:39 1998 Jason Molenda (crash@bugshack.cygnus.com)
5441
5442 * gnu-regex.c, gnu-regex.h: Update to current FSF (glibc) versions.
5443
f7065e88
MS
5444Wed Jun 10 10:58:18 1998 Michael Snyder <msnyder@cleaver.cygnus.com>
5445
9f85ab1a 5446 * printcmd.c (disassemble_command): move overlay mapping code
f7065e88
MS
5447 "up" into find_pc_partial_function.
5448 * blockframe.c (find_pc_partial_function): adjust start address
5449 and end address for overlays (mapped vs. unmapped addresses),
5450 so that all callers of this function may benefit.
5451 * m32r-tdep.c (m32r_skip_prologue): adjust indentation.
5452
a2266bed
RU
5453Mon Jun 8 16:08:10 1998 Ron Unrau <runrau@cygnus.com>
5454
5455 * objfiles.c (add_to_objfile_sections): All targets to define
5456 TARGET_KEEP_SECTION to permit them to retain bfd sections that
5457 GDB would otherwise have discarded.
5458
705b12df
DE
5459Fri Jun 5 13:56:19 1998 Doug Evans <devans@canuck.cygnus.com>
5460
5461 * dbxread.c (read_dbx_symtab): Don't lower texthigh for last psymtab.
5462
0e05ecee
SS
5463Thu Jun 4 18:35:04 1998 Stan Shebs <shebs@andros.cygnus.com>
5464
5465 * remote.c (init_extended_remote_ops): Make extended_remote_ops
5466 by copying from remote_ops, move it and init_remote_ops to
5467 usual place at end of file, remove "void" from arg lists.
5468
ce56660d
MA
5469Thu Jun 4 17:51:06 1998 Mark Alexander <marka@cygnus.com>
5470
5471 * sparc-tdep.c (sparc_fix_call_dummy): Byte-swap the call dummy
5472 on bi-endian machines.
5473 (sparc_extract_return_value): Handle values smaller than int on
5474 machines with little-endian data.
5475 (sparc_target_architecture_hook): Set bi_endian flag.
5476
d6b6757b
MS
5477Thu Jun 4 12:14:48 1998 Michael Snyder <msnyder@cleaver.cygnus.com>
5478
5479 * printcmd.c (disassemble_command): Fix off-by-one error for
5480 disassembling functions in unmapped overlay sections.
5481
ecc6e842
EZ
5482Thu Jun 4 10:15:03 1998 Elena Zannoni <ezannoni@kwikemart.cygnus.com>
5483
5484 * remote.c: merged.
5485
5486 - Jim Blandy <jimb@zwingli.cygnus.com>
5487 (print_packet, remote_packet_command): New functions.
5488 (_initialize_remote): Register the remote-packet command.
5489 - David Taylor <taylor@texas.cygnus.com>
5490 (_initialize_remote): remote-compare is now
5491 compare-sections.
5492 - Elena Zannoni <ezannoni@kwikemart.cygnus.com>
5493 (remote_compare_command): added warning, issued in case
5494 of mismatch only.
5495
b85cf6ae
MS
5496Thu Jun 4 08:25:38 1998 Michael Snyder <msnyder@cleaver.cygnus.com>
5497
5498 * remote.c (remote_compare_command): New function, new command.
5499 Compare object file binary image with corresponding memory on
5500 remote target. Report differences.
5501
cda8a2bb
MA
5502Tue Jun 2 19:05:04 1998 Mark Alexander <marka@cygnus.com>
5503
5504 * sparc-tdep.c (sparc_target_architecture_hook): Set target
5505 byte order only when it's selectable.
5506
33c65ba3
MA
5507Tue Jun 2 02:01:56 1998 Mark Alexander <marka@cygnus.com>
5508
5509 * sparc-tdep.c (sparc_target_architecture_hook): New function to
5510 set endianness based on machine type.
5511 (_initialize_sparc_tdep): Initialize target_architecture_hook.
5512 (sparc_print_register_hook): Print PSR and FPSR in fancy format
5513 on 32-bit machines.
5514 * config/sparc/tm-sparc.h (PRINT_REGISTER_HOOK): Redefine to
5515 call sparc_print_register_hook instead of using inline code.
5516 * config/sparc/tm-sp64.h (PRINT_REGISTER_HOOK): Remove.
5517
47792960
KS
5518Thu May 28 17:19:14 1998 Keith Seitz <keiths@cygnus.com>
5519
5520 * main.c (main): Check for NULL from getenv on CYGWIN32.
5521
5522Thu May 28 09:41:44 1998 Nick Clifton <nickc@cygnus.com>
5523
5524 * monitor.c (monitor_vsprintf): Handle %%. Patch courtesy of
5525 Felix Lee (flee@cygnus.com)
5526
f893ebe3
PS
5527Thu May 28 00:27:35 1998 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
5528
5529 * mips-tdep.c (mips_push_dummy_frame): Fix calculation of
5530 PROC_REG_OFFSET and PROC_FREG_OFFSET.
5531
ea45efcf
AC
5532Mon Apr 27 14:37:49 1998 Andrew Cagney <cagney@b1.cygnus.com>
5533
5534 * config/v850/tm-v850.h (REGISTER_BYTE): FP_REGNUM and
5535 FP_RAW_REGNUM use the same register location.
5536
5537 * v850-tdep.c (v850_scan_prologue): Use FP_RAW_REGNUM instead of
5538 FP_REGNUM.
5539 (v850_frame_chain): Ditto.
5540
5541 * config/v850/tm-v850.h (REGISTER_NAMES): Add "fp".
5542 (NUM_REGS): Update.
5543 (FP_REGNUM): Update.
5544 (FP_RAW_REGNUM): Define.
5545
f893ebe3
PS
5546Wed May 27 14:22:31 1998 Keith Seitz <keiths@cygnus.com>
5547
5548 * main.c (main): Convert the path returned from getenv to a posix
5549 path on cygwin32 hosts.
5550
6ac0c55d
KS
5551Mon May 25 13:31:27 1998 Keith Seitz <keiths@cygnus.com>
5552
822730df
JM
5553 * remote.c (remote_open_1): If an error occurs starting the remote,
5554 pop the target AND return.
6ac0c55d 5555
be5f18e1
PS
5556Sat May 23 02:23:09 1998 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
5557
5558 * dwarf2read.c (read_subroutine_type): Set TYPE_FLAG_PROTOTYPED
5559 on C++ functions.
5560 * valops.c (value_arg_coerce): Add new argument to indicate whether
5561 the function has a prototype, handle integer and float promotions
5562 accordingly.
5563 (call_function_by_hand): Always call value_arg_coerce, pass down
5564 prototype information.
5565
3ff4b4c6
JM
5566Fri May 22 10:56:36 1998 John Metzler <jmetzler@cygnus.com>
5567
5568 * remote.c (_initialize_remote): Typo extended__remote
5569
c719b714 5570Thu May 21 13:14:25 1998 John Metzler <jmetzler@cygnus.com>
b0cf9ee2 5571
c719b714 5572 * gnu-nat.c (init_gnu_ops): Initialization of target ops by assignment.
b0cf9ee2
JM
5573 (_initialize_gnu_nat): Call new init
5574 * mac-nat.c (init_child_ops): Ditto.
5575 (_initialize_mac_nat): Ditto.
5576 * monitor.c (init_base_monitor_ops): Ditto.
5577 (_initialize_remote_monitors): Ditto.
5578 * ppc-bdm.c (init_bdm_ppc_ops): Ditto.
5579 (_initialize_bdm_ppc): Ditto.
5580 * remote-adapt.c (init_adapt_ops): Ditto.
5581 (_initialize_remote_adapt): Ditto.
5582 * remote-array.c (init_array_ops): Ditto.
5583 (_initialize_array): Ditto.
5584 * remote-bug (init_bug_ops): Ditto.
5585 (_initialize_remote_bug): Ditto.
5586 * remote-e7000.c (init_e7000_ops): Ditto.
5587 (_initialize_remote_e7000): Ditto.
5588 * remote-eb.c (init_eb_ops): Ditto.
5589 (_initialize_remote_eb): Ditto.
5590 * remote-es.c (init_es1800_ops): Ditto.
5591 (init_es1800_child_ops): Ditto.
5592 (_initialize_es1800): Ditto.
5593 * remote-hms.c (init_hms_ops): Ditto.
5594 (_initialize_remote_hms): Ditto.
5595 * remote-mm.c (init_mm_ops): Ditto.
5596 (_initialize_remote_mm): Ditto.
5597 * remote-nindy.c (init_nindy_ops): Ditto.
5598 (_initialize_nindy): Ditto.
5599 * remote_nrom.c (init_nrom_ops): Ditto.
5600 (_initialize_remote_nrom): Ditto.
5601 * remote-os9k (init_rombug_ops): Ditto.
5602 (_initialize_remote_os9k): Ditto.
5603 * remote-rdi.c (init_rdi_ops): Ditto.
5604 (_initialize_remote_rdi): Ditto.
5605 * remote-rdp.c (init_remote_rdp_ops): Ditto.
5606 (_initialize_remote_rdp): Ditto.
5607 * remote-sds.c (init_sds_ops): Ditto.
5608 (_initialize_remote_sds): Ditto.
5609 * remote-sim.c (init_gdbsim_ops): Ditto.
5610 (_initialize_remote_sim): Ditto.
5611 * remote-st.c (init_st2000_ops): Ditto.
5612 (_initialize_remote_st2000): Ditto.
5613 * remote-udi.c (init_udi_ops): Ditto.
5614 (_initialize_remote_udi): Ditto.
5615 * remote-vx.c (init_vx_ops): Ditto.
5616 (init_vx_run_ops): Ditto.
5617 (_initialize_vx): Ditto.
5618 * remote.c (init_remote_ops): Ditto.
5619 (init_extended_remote_ops): Ditto.
5620 (_initialize_remote): Ditto.
5621 * sparcl-tdep.c (init_sparclite_ops): Ditto.
5622 (_initialize_sparcl_tdep): Ditto.
5623 * v850ice.c (init_850ice_ops): Ditto.
5624 (_initialize_v850ice): Ditto.
b5c7e122 5625 * win32-nat.c (init_child_ops): Ditto.
b0cf9ee2 5626 (_initialize_inftarg): Ditto.
c719b714 5627
b0d7af2a
MS
56281998-05-21 Jim Blandy <jimb@zwingli.cygnus.com>
5629
5630 * ax-gdb.c (const_var_ref): Don't handle function names. I don't
5631 want to implement all the "usual unary conversion" rules for
5632 constants.
5633 (gen_usual_unary): Turn "function" values into "pointer to
5634 function" values, in accordance with ANSI.
5635 (gen_deref): Don't do the usual unary conversions here. Let the
5636 caller do it. Note that dereferencing a function pointer yields
5637 a function designator, which we call an rvalue, not an lvalue.
5638 (gen_address_of): Handle functions specially.
5639 (gen_struct_ref): Perform the usual unary conversions before
5640 calling gen_deref.
5641 (gen_expr): In case for the prefix '*' operator, call
5642 gen_usual_unary manually.
5643
116b98b8
GRK
5644Wed May 20 15:29:41 1998 Gavin Koch <gavin@cygnus.com>
5645
78af0a00
JM
5646 * mips/tm-tx39.h (MIPS_DEFAULT_FPU_TYPE): Defined as MIPS_FPU_NONE.
5647 * mips/tm-tx39l.h: Same.
116b98b8 5648
40fd928f
JM
5649Wed May 20 10:12:11 1998 John Metzler <jmetzler@cygnus.com>
5650
b5c7e122 5651 * m32r-tdep.c (decode_prologue): Handle frames compiled with -Os.
40fd928f
JM
5652 Split out as separate function called by skip prologue and scan
5653 prologue. new formula handles optimization in which the prologue
5654 is interleaved with the body of the function. Also recognizes new
5655 variations of prologue encoding. Use of frame pointer is
5656 essential to debugging, -fno-omit-frame-pointer
5657 (m32r_skip_prologue): Call decode prologue, ignore line info
5658 (m32r_scan_prologue): Call decode prologue, ignore line info.
5659
5d460ad9
JM
5660Tue May 19 17:23:54 1998 John Metzler <jmetzler@cygnus.com>
5661
78af0a00
JM
5662 * w89k-rom.c (_initialize_w89k): Call new init function
5663 (init_w89k_cmds): Convert to dynamic initialization of monitor_ops
5664 data structure for forward compatability with additions to the
5665 data structure.
5d460ad9 5666 * dbug-rom.c (_initialize_dbug_rom): ditto
78af0a00
JM
5667 (init_dbug_cmds): ditto
5668 * m32r-rom.c (_initialize_m32r_rom): ditto
5669 (init_m32r_cmds): ditto
5d460ad9 5670
b0d7af2a
MS
5671Tue May 19 14:54:11 1998 Michael Snyder <msnyder@cleaver.cygnus.com>
5672
5673 * tracepoint.c (memrange_cmp): use const void * args to avoid
5674 ANSI compiler warnings.
5675
56761998-05-19 Jim Blandy <jimb@zwingli.cygnus.com>
5677
5678 * ax-gdb.c (gen_fetch, gen_var_ref, gen_deref, find_field,
5679 gen_bitfield_ref, gen_expr): Call error, not abort.
5680 * ax-general.c (read_const, generic_ext, ax_trace_quick,
5681 ax_label, ax_const_d, ax_reg, ax_print): Same.
5682
5683 * tracepoint.c: Remove the $(...) syntax for memranges.
5684 (validate_actionline, encode_actions, trace_dump_command): Remove
5685 clauses for the $(...) syntax.
5686 (parse_and_eval_memrange): Function deleted.
5687 (_initialize_tracepoint): Update function description.
5688
b0d7af2a
MS
5689 * ax-gdb.c (_initialize_ax_gdb): Make the "agent" command a
5690 subcommand of "maintenance", as it should have been from the
5691 beginning. #include "gdbcmd.h", to get the declaration for
5692 maintenancelist.
5693 * Makefile.in: Document that dependency.
5694
5695Tue May 19 12:00:58 1998 Elena Zannoni <ezannoni@kwikemart.cygnus.com>
5696
5697 * tracepoint.c (get_tracepoint_by_number): new function, to access
5698 traceframe_number for use of the GUI.
5699
5700 * tracepoint.h: added prototype for get_traceframe_number.
5701
d4d1c7b5
KS
5702Mon May 18 13:34:27 1998 Keith Seitz <keiths@cygnus.com>
5703
5704 * dbxread.c (process_one_symbol): If block addresses are relative to
5705 function start addresses, reset function_start_address whenever a new
5706 source file is seen.
5707
b0d7af2a
MS
5708Mon May 18 13:04:27 1998 Michael Snyder <msnyder@cleaver.cygnus.com>
5709
5710 * tracepoint.c (get_tracepoint_by_number): make sure to advance
5711 arg pointer even if we fail to parse a useful number. Otherwise,
5712 since this function is called in a loop, it may loop forever!
5713 Also change strtol call to allow arbitrary radix.
5714 (map_args_over_tracepoints (and other places)): add QUIT; call
5715 to loop, to allow breakout using control-C. Not all loops were
5716 analyzed to make sure they could terminate cleanly, but even
5717 terminating with a messed-up tracepoint list would be better
5718 than not terminating at all!
5719 (tdump_command): check to see if we're connected to a trace-
5720 capable target (currently only "remote") before doing anything
5721 else.
2e7eeba9 5722
c19916b7
FCE
5723Sat May 16 22:21:48 1998 Frank Ch. Eigler <fche@cygnus.com>
5724
5725 * config/d30v/tm-d30v.h (INIT_FRAME_PC_FIRST): Fill in PC into
5726 frame struct before extracting saved register offsets.
2e7eeba9 5727
b0d7af2a
MS
5728Fri May 15 22:47:45 1998 Michael Snyder <msnyder@cleaver.cygnus.com>
5729
5730 * tracepoint.c (encode_actions): fix typo in printf format string.
5731
57321998-05-15 Jim Blandy <jimb@zwingli.cygnus.com>
5733
5734 Implement a few more tracing operators: ^ | & ~ !
5735 * ax-gdb.c (gen_integral_promotions, gen_logical_not,
5736 gen_complement): New functions.
5737 (gen_binop): New argument MAY_CARRY, indicating whether we need to
5738 correct the upper bits of the value after performing the
5739 operation. Callers changed.
5740 (gen_expr): Handle BINOP_BITWISE_AND, BINOP_BITWISE_IOR, and
5741 BINOP_BITWISE_XOR here as well, by calling gen_binop. Handle
5742 UNOP_LOGICAL_NOT, UNOP_COMPLEMENT.
5743
5744 * ax-gdb.c (gen_conversion): Reworked to avoid some unnecessary
5745 sign extension.
2e7eeba9 5746
b0d7af2a
MS
5747 * ax-gdb.c (gen_usual_arithmetic): Renamed from gen_usual_binary,
5748 to match the ANSI C standard better. Callers changed.
2e7eeba9 5749
b0d7af2a
MS
5750 * ax-gdb.c (gen_traced_pop): Add prototyped declaration.
5751
5752Fri May 15 18:18:38 1998 David Taylor <taylor@texas.cygnus.com>
5753
5754 * tracepoint.c (stringify_collections_list): return a collection
5755 of strings rather than a single string.
5756 (free_actions_list): new function.
5757 (encode_actions): process collection of strings returned by
5758 stringify_collections_list.
5759
57601998-05-15 Jim Blandy <jimb@zwingli.cygnus.com>
5761
5762 * ax-gdb.c (gen_traced_pop): New function.
5763 (gen_expr): Call it for comma operator.
5764 (gen_trace_for_expr): Call it, instead of writing it out.
5765
5766 Add facilities for sending arbitrary packets to the remote agent.
5767 There are a bunch of improvements to make (make it generic; handle
5768 'O' replies properly), but I just want to get this onto the branch.
5769 * remote.c (print_packet, remote_packet_command): New functions.
5770 (_initialize_remote): Register the remote-packet command.
5771
5772Thu May 14 17:52:31 1998 Elena Zannoni <ezannoni@kwikemart.cygnus.com>
5773
5774 * tracepoint.c: move actionline_type definition to tracepoint.h.
5775 (validate_actionline): make non static.
5776
5777 * tracepoint.h: move actioline_type definition from tracepoint.c.
5778 (validate_actionline) moved prototype from tracepoint.c.
5779
5780Thu May 14 11:49:18 1998 David Taylor <taylor@texas.cygnus.com>
5781
5782 * tracepoint.c (validate_actionline): add additional error
5783 checking, remove some dead code.
5784 (encode_actions): additional cleanups.
5785 (trace_find_command): remove some dead code.
5786 (trace_find_pc_command): ditto.
5787 (trace_find_tracepoint_command): ditto.
5788 (trace_find_line_command): ditto.
5789 (trace_find_range_command): ditto.
5790 (trace_find_outside_command): ditto.
5791
6e8bee16
SG
5792Thu May 14 5:51:00 1998 Ron Unrau <runrau@cygnus.com>
5793
5794 * symtab.c (decode_line_1): set section for "break *<addr>"
5795
091d7302
MA
5796Wed May 13 20:58:02 1998 Mark Alexander <marka@cygnus.com>
5797
5798 * corefile.c (reopen_exec_file): Reopen the exec file if
5799 it has changed.
5800
f151b17f
MA
5801Wed May 13 15:22:02 1998 Mark Alexander <marka@cygnus.com>
5802
5803 * sparc-tdep.c (fetch_instruction): New function.
5804 (single_step, sparc_init_extra_frame_info, examine_prologue):
5805 Use fetch_instruction instead of read_memory_integer
5806 to ensure that instructions are always read as big-endian.
5807
0aa3233e
ILT
5808Wed May 13 14:42:21 1998 Ian Lance Taylor <ian@cygnus.com>
5809
5810 * configure.in: Add AC_FUNC_ALLOCA.
5811 * defs.h: Check HAVE_ALLOCA_H rather than sparc. Add _AIX pragma
5812 alloca.
5813 * configure: Rebuild.
6e8bee16 5814start-sanitize-java
0aa3233e
ILT
5815 * Makefile.in (jv-lang.o, jv-typeprint.o, jv-valprint.o): New
5816 targets.
6e8bee16 5817end-sanitize-java
0aa3233e 5818
b0d7af2a
MS
5819Wed May 13 11:19:08 1998 Michael Snyder <msnyder@cleaver.cygnus.com>
5820
5821 * tracepoint.c (trace_command): Remove old diagnostic code that was
5822 preventing tracepoints from being defined with a full-path filename.
5823
c19916b7
FCE
5824Tue May 12 13:17:35 1998 Frank Ch. Eigler <fche@cygnus.com>
5825
5826 * stabsread.c (read_one_struct_field): Check for typedef in type
5827 tree before clearing bitfield information.
5828
b0d7af2a
MS
58291998-05-11 Jim Blandy <jimb@zwingli.cygnus.com>
5830
5831 * ax-gdb.c (gen_binop): New function, based on gen_mul, to replace
5832 gen_mul and gen_div, and handle `%' op as well. Correctly tests
5833 type of arguments.
5834 (gen_expr): Factor out common code in binary arithmetic operators.
5835 Add support for `%'.
5836 (gen_mul, gen_div): Removed.
2e7eeba9 5837
ff62d310
JI
5838Thu May 7 14:49:38 1998 Bob Manson <manson@charmed.cygnus.com>
5839
5840 * config/sparc/tm-sp64.h (CALL_DUMMY): Store and retrieve
5841 %o0-%o5 as 64-bit values; compensate for stack bias.
5842 (USE_STRUCT_CONVENTION): We only pass pointers to structs
5843 if they're larger than 32 bytes.
5844 (REG_STRUCT_HAS_ADDR): Ditto.
5845
5846 * sparc-tdep.c (sparc_init_extra_frame_info): Use read_sp()
5847 instead of read_register. If the target is a sparc64 and the frame
5848 pointer is odd, compensate for the stack bias.
5849 (get_saved_register): Use read_sp().
5850 (DUMMY_STACK_REG_BUF_SIZE): Use FP_REGISTER_BYTES.
5851 (sparc_push_dummy_frame): Use read_sp()/write_sp(). On sparc64,
5852 save the PC, NPC, CCR, FSR, FPRS, Y and ASI registers.
5853 (sparc_frame_find_saved_regs): Use read_sp(). Read the PC, NPC,
5854 CCR, FSR, FPRS, Y and ASI registers from the frame, if it's a
5855 dummy frame.
5856 (sparc_pop_frame): Use write_sp(). If the target is a sparc64 and
5857 the FP is odd, compensate for stack bias.
5858 (sparc_store_return_value): Right-justify the return value before
5859 writing it to %o0.
5860 (sparc_fix_call_dummy): Don't NOP out part of the call dummy on
5861 sparc64.
5862 (sparc64_read_sp, sparc64_read_fp, sparc64_write_sp,
5863 sparc64_write_fp, sp64_push_arguments,
5864 sparc64_extract_return_value): New functions to support the
5865 sparc64 ABI.
5866
5867 * dwarfread.c (handle_producer): Set processing_gcc_compilation to
5868 the right version number.
5869
5870 * dwarf2read.c (read_file_scope): Assume we're processing
5871 GCC2 output.
5872
7252da95
JL
5873Wed May 6 16:34:03 1998 Jeffrey A Law (law@cygnus.com)
5874
5875 * somsolib.c: Include gdb_stat.h.
5876
b0d7af2a
MS
5877Mon May 4 18:34:01 1998 David Taylor <taylor@texas.cygnus.com>
5878
5879 * ax-gdb.c (gen_mul): new function; (gen_div): new function;
5880 (gen_expr): add support for * and / operators, call gen_mul and
5881 gen_div as appropriate.
5882
7252da95
JL
5883Mon May 4 16:24:22 1998 Mark Alexander <marka@cygnus.com>
5884
5885 * defs.h (make_run_cleanup): Declare.
5886 * solib.c (find_solib): Pass correct number of arguments to
5887 make_run_cleanup.
5888
b0d7af2a
MS
5889Mon May 4 07:08:25 1998 Michael Snyder <msnyder@cleaver.cygnus.com>
5890
5891 * tracepoint.c (trace_actions_command): actions command must set
5892 step_count to zero (in case previous actions have set it but the
5893 new set does not).
5894
e5a940e2
SG
5895Sat May 2 09:35:07 1998 Stu Grossman <grossman@babylon-5.cygnus.com>
5896
2e7eeba9
MS
5897 * ocd.h: Add new flags, function codes, and processor types to
5898 support new Wiggler capabilities.
a41292ba
SG
5899 * (ocd_write_bytes_size): New function to allow atomic writes of
5900 memory in sizes larger than a byte.
5901
e5a940e2
SG
5902 * ser-unix.c (baudtab): Add 57600, 115200, 230400, and 460800 baud.
5903
ce225290
FCE
5904Fri May 1 19:51:32 1998 Frank Ch. Eigler <fche@cygnus.com>
5905
5906 * stabsread.c (read_one_struct_field): Do not override supplied
5907 bitfield size for a range type value.
5908
5909 * gdbtypes.c (create_range_type): For a range with positive
5910 lower limit, declare range type as unsigned.
5911
fcc1ac97
JM
5912Fri May 1 10:58:34 1998 John Metzler <jmetzler@cygnus.com>
5913
5914 * monitor.c: Turn off debug
5915
a871ab92
PS
5916Fri May 1 09:29:56 1998 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
5917
5918 * breakpoint.c (delete_command): Skip internal breakpoints when
5919 all breakpoints are requested.
5920
5921 * stabsread.c (define_symbol): Record parameter types from Sunpro
5922 function stabs in the TYPE_FIELDS of the function type.
5923
921d949d
JM
5924Thu Apr 30 15:59:54 1998 Jason Molenda (crash@bugshack.cygnus.com)
5925
5926 * Makefile.in (config-check-targets, config-check-hosts): Removed.
5927
59281998-04-30 Paul Eggert <eggert@twinsun.com>
5929
5930 * Makefile.in (maintainer-clean):
5931 Don't get ahead of yourself and delete Makefile
5932 before running `make'.
5933 (local-maintainer-clean, do-maintainer-clean): New rules.
5934
b0d7af2a
MS
5935Wed Apr 29 14:02:59 1998 David Taylor <taylor@texas.cygnus.com>
5936
5937 * ax-gdb.c (gen_add): when adding a pointer and an int, use
5938 the size of the pointer, not the int (typo) to decide how
5939 to extend the result.
5940
2a8b1fab 5941Wed Apr 29 10:20:40 1998 John Metzler <jmetzler@cygnus.com>
17a56e13 5942start-sanitize-vr4111
2a8b1fab 5943
921d949d
JM
5944 * nec4102rom.c: New file implements ROM monitor adapter for
5945 nec-vr4102 board. This board hosts the vr4111 chip. This file
900dc14b 5946 required extensions to the monitor_ops structure, hooks for wait
2a8b1fab
JM
5947 filter, new flags. This version does not support more than one
5948 breakpoint and resuming after a breakpoint in 16 bit mode is
921d949d 5949 completely disfunctional.
17a56e13 5950end-sanitize-vr4111
921d949d
JM
5951
5952 * monitor.h: Defined additional hooks for dmpregs, configure_hooks
5953 and wait_filter. These additions require that all ROM monitor
5954 interfaces be recoded to initialize monitor ops using assignments
5955 rather than static structure initialization. Added new bits to
5956 flags MO_EXACT_DUMPADDR, MO_HAS_BLOCKWRITES.
5957
2a8b1fab
JM
5958 * monitor.c (RDEBUG): Conditional tracing throughout the file.
5959 (fromhex): Now recognized upper cse hex digits
5960 (monitor_printf_noecho):
5961 (monitor_readchar): Tracing interferes with input timing.
5962 (monitor_open): Register different memory write functions with
5963 dcache_init if MO_HAS_BLOCKWRITES.
5964 (flush_monior_dcache): Added as an additional utilty.
5965 (monitor-resume): Call continue hook if one has been supplied.
5966 (monitor_wait_filter): New function Factored out of monitor wait
5967 and used if alternate wait-filter has not been provided.
5968 (monitor_wait): call alternate wait filter if provided. Call
5969 monitor_dump_regs, a new function factored out from inline code.
5970 (monitor_dump_block): A new function used as a utility when
5971 monitors must dump several blocks of registers using different
5972 commands.
5973 (monitor_dump_regs): Call alternate function if provided. Uses new
5974 hook in monitor.h.
5975 (monitor_write_memory): Engage previouly added hook
5976 MO_FILL_USES_ADDR.
5977 (monitor_write_even_block): new function supports writing long
5978 blocks of 4byte words.
5979 (longlongendswap): new internal function
5980 (monitor_write_memory_longlongs): new function writes large blocks
5981 using command to enter a long long.
5982 (monitor_write-memory_block): new Function figures out which block
5983 mod to use.
5984 (monitor_read_memory): Can now handle dump formats in which the bytes
5985 preceeding the requested data is not printed.
2a8b1fab 5986
94415c7e
TT
5987Tue Apr 28 19:41:33 1998 Tom Tromey <tromey@cygnus.com>
5988
4a3456fc
TT
5989 * tracepoint.c (memrange_cmp): Another typo fix; `memrbnge' ->
5990 `memrange'.
5991
94415c7e
TT
5992 * tracepoint.c (memrange_cmp): Fixed typo in function intro.
5993
59813131
JM
5994Tue Apr 28 17:41:20 1998 Philippe De Muyter <phdm@macqel.be>
5995
7bfe11e2
SS
5996 * symfile.c (overlay_auto_command): Add forgotten parameter
5997 definitions.
59813131
JM
5998 (overlay_manual_command, overlay_off_command): Likewise.
5999 (overlay_load_command): Likewise.
6000 * tracepoint.c (memrange_cmp): Parameters have type void *, not
6001 struct memrange *.
6002
82973f18
JM
6003Tue Apr 28 11:08:25 1998 John Metzler <jmetzler@cygnus.com>
6004
59813131 6005 * rom68k-rom.c (_initialize_rom68k): Fix unresolved init_rom_68kcmds.
2e7eeba9 6006
07f45587
MA
6007Mon Apr 27 14:32:21 1998 Mark Alexander <marka@cygnus.com>
6008
6009 * config/sparc/tm-sparc.h (CALL_DUMMY): Shorten it drastically,
6010 make it work on the simulator.
6011 (FIX_CALL_DUMMY): Convert to function call instead of inline code.
6012 (sparc_fix_call_dummy): Declare.
6013 * sparc-tdep.c (sparc_fix_call_dummy): New function, taken from
6014 old FIX_CALL_DUMMY macro, with additional fixes for simulator.
6015 (sparc_push_dummy_frame): Set registers differently on simulator
6016 to prevent corrupted register window save areas.
6017
adc176bb
JM
6018Mon Apr 27 13:46:40 1998 John Metzler <jmetzler@cygnus.com>
6019
59813131
JM
6020 * rom68k-rom.c (_initialize_rom68k, init_rom68k_cmds):
6021 Convert all static initializations of monitor ops structures to
6022 executable initializations in order that additions to the data
6023 structure definition can me made without repeating this editing
6024 exercise.
6025 * abug-rom.c (_initialize_abug_rom, init_abug-cmds): Ditto.
6026 * cpu32bug-rom.c (_initialize_cpu32bug_rom, init_cpu32bug_cmds): Ditto.
6027 * mon960-rom.c (initialize_mon960, init_mon960_cmds): Ditto.
6028 * op50-rom.c (initialize_op50n, init_op50n_cmds): Ditto.
6029 * ppcbug-rom.c (_initialize_ppcbug_rom, init_ppc_cmds): Ditto.
6030 * sh3-rom.c (_initialize_sh3_rom, init_sh3_cmds): Ditto.
6031 * sparclet-rom.c (_initialize_sparclet, init_sparclet_cmds): Ditto.
6032 * remote-est.c (_initialize_est, init_est_cmds): Ditto.
6033 * remote-hms.c ( _initialize_remote_hms, init_hms_cmds): Ditto.
adc176bb 6034
a9eeaad7
JM
6035Mon Apr 27 10:43:04 1998 Jason Molenda (crash@bugshack.cygnus.com)
6036
6037 * gdb_string.h (strdup): Don't specify arguments in prototype.
6038
8b150a6b
PS
6039Sun Apr 26 07:57:21 1998 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
6040
6041 * rs6000-nat.c (vmap_ldinfo): Issue warning instead of error if
6042 fstat on ldinfo_fd fails. Use objfile->obfd instead of vp->bfd
6043 to check for reference to the same file.
6044
6045 * target.c (target_read_string): Handle string transfers at the
6046 end of a memory section gracefully.
6047
6ef37205
GN
6048Fri Apr 24 17:18:56 1998 Geoffrey Noer <noer@cygnus.com>
6049
6050 * Makefile.in: enable EXEEXT setting
6051
b0d7af2a
MS
6052Fri Apr 24 11:53:49 1998 David Taylor <taylor@texas.cygnus.com>
6053
6054 * tracepoint.c (add_local_symbols): change type of type from
6055 char to int so that type shows up as 'A' or 'L' not 0.
6056
66a9a263
JL
6057start-sanitize-r5900
6058Fri Apr 24 11:25:07 1998 Jeffrey A Law (law@cygnus.com)
6059
6060 * mips-tdep.c (mips32_decode_reg_save): Handle 128bit wide
6061 GPR loads/stores generated on the r5900.
6062 (mips_find_saved_regs, mips32_skip_prologue): Likewise.
6063 * mips/tm-r5900.h (R5900_128BIT_GPR_HACK): Define.
6064 * mips/tm-txvu.h (R5900_128BIT_GPR_HACK): Likewise.
6065
6066end-sanitize-r5900
29f35f37
JM
6067Thu Apr 23 16:37:20 1998 Jason Molenda (crash@bugshack.cygnus.com)
6068
6069 * README: Minor changes for 4.17 release.
6070
6e8bee16 6071start-sanitize-java
ffa157d8
PB
6072Thu Apr 23 15:44:39 1998 Per Bothner <bothner@cygnus.com>
6073
6074 * symfile.c (deduce_language_from_filename): .class implies java.
6075
6e8bee16 6076end-sanitize-java
21cbc60c
JM
6077Thu Apr 23 12:52:21 1998 Philippe De Muyter <phdm@macqel.be>
6078
6079 * configure.in (strerror): Check if function must be declared.
6080 * acconfig.h (NEED_DECLARATION_STRERROR): New define slot.
6081 * gdb_string.h (strerror): Function declaration issued if
6082 NEED_DECLARATION_STRERROR.
2e7eeba9 6083 * configure, config.in: Files regenerated.
21cbc60c 6084
74d6ac44
JM
6085Thu Apr 23 12:27:43 1998 Philippe De Muyter <phdm@macqel.be>
6086
6087 * symfile.c (simple_overlay_update_1): Do not prefix array address
6088 by `&'.
6089 * bcache.h (BCACHE_DATA_ALIGNMENT): Ditto.
6090 * tracepoint.c (encode_actions): Ditto.
6091 * language.c, complaints.c, utils.c (varargs.h): Do not include that
6092 file here, it is already included indirectly by defs.h.
6093 * dbxread.c (dbx_symfile_init, process_one_symbol): Cast xmalloc return
6094 value to the appropriate pointer type.
6095 * utils.c (floatformat_from_doublest): Ditto.
6096 * tracepoint.c (read_actions, _initialize_tracepoint): Ditto.
6097 (add_memrange): Likewise with xrealloc return value.
6098 * stabsread.c (ref_add): Ditto.
6099 * coffread.c (coff_symfile_init): Likewise for xmmalloc return value.
6100 * elfread.c (elf_symfile_read): Ditto.
6101 * os9kread.c (os9k_symfile_init): Ditto.
6102
52dd717d
TT
6103Thu Apr 23 00:32:08 1998 Tom Tromey <tromey@cygnus.com>
6104
6105 * config.in: Rebuilt.
6106 * acconfig.h (ENABLE_NLS, HAVE_CATGETS, HAVE_STPCPY, HAVE_GETTEXT,
6107 HAVE_LC_MESSAGES): Define.
6108
fcfc3c0c
TT
6109Wed Apr 22 15:38:56 1998 Tom Tromey <tromey@cygnus.com>
6110
6111 * configure: Rebuilt.
6112 * configure.in: Call CY_GNU_GETTEXT.
6113 * Makefile.in (top_builddir): New macro.
6114 (INTL): Define to @INTLLIBS@.
6115 (INTL_DEPS): New macro.
6116 (CDEPS): Reference INTL_DEPS, not INTL.
6117
71f08cfc
DE
6118start-sanitize-sky
6119Wed Apr 22 13:40:16 1998 Doug Evans <devans@canuck.cygnus.com>
6120
6121 * txvu-tdep.c (txvu_print_insn): Fix thinko.
6122
6123end-sanitize-sky
b420cea7
PS
6124Wed Apr 22 12:58:23 1998 Peter Schauer (pes@regent.e-technik.tu-muenchen.de)
6125
6126 Handle missing shared libraries during the examination of a core
6127 dump gracefully.
6128 * solib.c (find_solib): Use catch_errors around call to
6129 solib_map_sections. Use warning instead of error if reading of
6130 the shared library name fails.
6131 (solib_map_sections): Change return and argument types to make
6132 it callable from catch_errors.
6133 (symbol_add_stub): Avoid GDB core dump if solib->abfd is NULL.
6134 * irix5-nat.c, osfsolib.c (xfer_link_map_member, solib_map_sections,
6135 symbol_add_stub): Ditto.
6136
f2a0822c
MM
6137Wed Apr 22 14:34:49 1998 Michael Meissner <meissner@cygnus.com>
6138
6139 * Makefile.in (INTL*): Add support to link in the intl library,
6140 and to add -I options to its source and object directories.
6141 (INTERNAL_CFLAGS): Ditto.
6142 (C{LIBS,DEPS}): Ditto.
6143
3e5fbf91
JL
6144start-sanitize-sky
6145Wed Tue 21 17:29:48 1998 Jim Lemke <jlemke@cygnus.com>
6146 * configure.in: Add configure option --with-sim-funit.
6147
6148end-sanitize-sky
88ff9e06
FCE
6149Tue Apr 21 11:20:54 1998 Frank Ch. Eigler <fche@cygnus.com>
6150
6151 * mips-tdep.c (gdb_print_insn_mips): Disassemble MIPS instructions
6152 with subtarget-specific `mach', rather than fixed default.
6153 * config/mips/tm-mips.h (TM_PRINT_INSN_MACH): New macro, default
6154 disassembly `mach'.
6155start-sanitize-r5900
6156 * config/mips/tm-r5900.h (TM_PRINT_INSN_MACH): Override.
6157end-sanitize-r5900
6158start-sanitize-sky
6159 * config/mips/tm-txvu.h (TM_PRINT_INSN_MACH): Override.
6160end-sanitize-sky
6161
6162Mon Apr 20 15:35:03 1998 Philippe De Muyter <phdm@macqel.be>
6163
6164 * coffread.c (decode_base_type): Treat a long field with size greater
6165 than TARGET_LONG_BIT as long long.
6166 * values.c (value_from_longest): Print code value in error message.
6167
a38cd80a
JM
6168Mon Apr 20 15:32:21 1998 Mark Kettenis <kettenis@phys.uva.nl>
6169
6170 * gdb/gdb_string.h (strdup): Declare only if not defined as a
6171 macro.
6172
1e50f1b4
JM
6173Mon Apr 20 14:18:45 1998 J. Kean Johnston <jkj@sco.com>
6174
6175 * procfs.c: Added replacement macros for LWP stuff. Fixed support
6176 for UnixWare / SVR4.2MP targets and any targets which use
6177 multi-file /proc entries. Fixed support for hardware watchpoints.
6178 * solib.c: SCO needs some of the same code as SunOS. Change
6179 preprocessor conditionals.
6180
6181 * config/i386/i386sco5.mt: New file.
6182 * config/i386/tm-i386sco5.h: New file.
6183 * config/i386/i386sco5.mh (NATDEPFILES): add i386v-nat.o.
6184 * config/i386/nm-i386v42mp.h
6185 (TARGET_HAS_HARDWARE_WATCHPOINTS): define.
6186 Add other macros for hardware assisted watchpoints.
6187 * config/i386/nm-i386sco5.h: Correct attributions.
6188 (TARGET_HAS_HARDWARE_WATCHPOINTS): define.
6189 * config/i386/nm-linux.h (target_remote_watchpoint): Pass
6190 'type' through to i386_insert_watchpoint.
6191
6192Mon Apr 20 14:12:30 1998 Peter Schauer (pes@regent.e-technik.tu-muenchen.de)
6193
6194 * infrun.c (wait_for_inferior): Don't add signalled processes
6195 as new threads.
6196 * procfs.c (wait_fd): Note if LWP has exited.
6197 (procfs_wait): use GETPID to get process ID.
6198
7c0892b3
SC
6199Sat Apr 18 15:21:04 1998 Stan Cox <scox@cygnus.com>
6200
6201 * configure.tgt: Added sparc86x support.
2e7eeba9 6202
a17aca47
JM
6203Thu Apr 16 13:13:24 1998 Jason Molenda (crash@bugshack.cygnus.com)
6204
6205 * rdi-share/etherdrv.c (EthernetWrite): Use strerror to get
6206 error string if in an ANSI C-ish environment.
6207
4a3f4c4c
MA
6208Wed Apr 15 18:59:48 1998 Mark Alexander <marka@cygnus.com>
6209
6210 * sparc-tdep.c (SPARC_HAS_FPU): Define.
6211 (sparc_extract_return_value): New function, required to handle
6212 machines without floating point.
6213 (sparc_store_return_value): Ditto.
6214 * config/sparc/tm-sparc.h (EXTRACT_RETURN_VALUE): Call
6215 sparc_extract_return_value instead of using inline code.
6216 (sparc_extract_return_value): Declare.
6217 (STORE_RETURN_VALUE): Call sparc_store_return_value instead
6218 of using inline code.
6219 (sparc_store_return_value): Declare.
6220
65c0c978
MH
6221Wed Apr 15 12:19:42 1998 Martin M. Hunt <hunt@cygnus.com>
6222
6223 * solib.c (enable_break): Only call warning once
6224 instead of three times.
6225
e50f526e
MA
6226Tue Apr 14 16:52:59 1998 Mark Alexander <marka@cygnus.com>
6227
6228 * sparc-tdep.c (sparc_extract_struct_value_address): Make it
6229 work correctly on little-endian hosts.
6230 (sparc_push_arguments): New function.
6231 (gdb_print_insn_sparc): New function.
6232 (_initialize_sparc_tdep): Make gdb_print_insn_sparc the default
6233 disassembler, so that SPARClite-specific instructions will
6234 be recognized.
6235 * sparcl-tdep.c (readchar): Print debugging information.
6236 (debug_serial_write): New function, a replacement for SERIAL_WRITE
6237 that prints debugging information.
6238 * config/sparc/tm-sparc.h (PUSH_ARGUMENTS): Define.
6239 (sparc_push_arguments): Declare.
6240
a47fe057
JM
6241Tue Apr 14 15:43:49 1998 John Metzler <jmetzler@cygnus.com>
6242
74317310 6243 * gdbcfgxref (xref_menu): Call new regex and wild card searches
822730df 6244 Now you can type in a specific triple like mips64-vr4300-elf or
74317310 6245 somthing like mips*.h
b5c7e122 6246 (triple_search, wildcardsearch): The new functions
74317310 6247
822730df 6248start-sanitize-vr4320
a47fe057
JM
6249 * configure.tgt: Switch over to use tm-4320.h. Since I switched to
6250 MIPS EABI the fixes are no longer backward compatible with 4300.
6251 * tm-vr4320.h: Added
6252 * vr4320.mt: Added
6253
822730df 6254end-sanitize-vr4320
e6e9507d
EZ
6255Mon Apr 13 16:28:07 1998 Elena Zannoni <ezannoni@kwikemart.cygnus.com>
6256
b5c7e122 6257 * utils.c (warning): added call to warning_hook
e6e9507d 6258
b5c7e122 6259 * source.c (find_source_lines): modified to call warning in case
e6e9507d
EZ
6260 of source vs. executable time stamp mismatch. Simplified object
6261 file check. Initialized mtime to 0.
6262
6263 * defs.h: added warning_hook prototype
6264
6265 * top.c: added warning_hook prototype.
6266
29d867f8
KS
6267Mon Apr 13 09:54:08 1998 Keith Seitz <keiths@andros.cygnus.com>
6268
6269 * config/sparc/tm-sun4os4.h (IS_STATIC_TRANSFORM_NAME): Add missing
6270 definition.
6271
f0fce3b8
JM
6272Fri Apr 10 22:36:28 1998 Peter Schauer (pes@regent.e-technik.tu-muenchen.de)
6273
6274 Update support for x86 Solaris 2.
6275 * config/i386/tm-i386sol2.h, nm-i386sol2.h: New configuration
6276 files for x86 Solaris 2.
6277 * config/i386/i386sol2.mt, i386sol2.mh: Use them.
6278 * config/sparc/tm-sun4sol2.h (PROCFS_GET_CARRY): New macro, extract
6279 carry flag from a given regset.
6280 (IS_STATIC_TRANSFORM_NAME): New macro, check if a symbol name
6281 is a SunPro transformed name.
6282 * i386-tdep.c (sunpro_static_transform_name): New function to
6283 extract the source name from a SunPro transformed name.
6284 * inferior.h (procfs_first_available, procfs_get_pid_fd):
6285 Add prototypes.
6286 * infrun.c (wait_for_inferior): Handle breakpoint hit in
6287 signal handler without intervening stop in sigtramp.
6288 * procfs.c (procfs_lwp_creation_handler): Use PROCFS_GET_CARRY
6289 instead of direct access to the status register.
6290 (procfs_get_pid_fd): New function, returns procfs fd for a given pid.
6291 * sol-thread.c (ps_lgetLDT): New function, returns LDT for a given
6292 lwpid.
6293 (sol_find_new_threads): Handle failed libthread_db initialization
6294 gracefully.
6295 * stabsread.c (define_symbol): Use IS_STATIC_TRANSFORM_NAME
6296 to check for a SunPro transformed symbol name.
6297
6aeec893
JM
6298Fri Apr 10 10:35:35 1998 John Metzler <jmetzler@cygnus.com>
6299
c66e3d64
JM
6300 * utils.c (fmthex): A formatting function for hexdumps
6301
2e7eeba9 6302 * mips-tdep.c (unpack_mips16): Fixed instruction decoding, lots of
6aeec893
JM
6303 bit pattern interpretations. mips_fetch_instruction does not work
6304 for 16 bit instructions. Some confusion remains about sign
6305 extension in backward branches.
6306 (mips32_relative_offset): Sign extension
6307 (mips32_next_pc): Major debugging, bit pattern interpretation
6308 (print_unpack): debugging printf
6309 (fetch_mips_16): new funtion, key on PC low bit, not symbol table
6310 (mips16_next_16): Initial major debugging of this function. Lots
6311 of bit pattern mistakes.
6312 (mips_next_pc): key on low bit of PC, not symbol table.
2e7eeba9
MS
6313 * symfile.c (generic_load): Added a download verification which
6314 reads back the loaded code. Download chunk size is now a defined
6aeec893
JM
6315 macro. Fixed a bug in which downloading slips into loading one
6316 byte at a time. Lower level functions in monitor.c can load long
6317 sequences of bytes and make use of these fixups. Referencing
6318 bfd-start_address directly was incorrectly getting zero for start.
6319
cf93a3aa
ILT
6320Thu Apr 9 19:20:32 1998 Ian Lance Taylor <ian@cygnus.com>
6321
6322 * mips-tdep.c (do_fp_register_row): Use alloca rather than arrays
6323 with dynamic size.
6324
bf9084c0
JM
6325Wed Apr 8 19:21:42 1998 Jason Molenda (crash@bugshack.cygnus.com)
6326
6327 * top.c (print_gdb_version): Print 1998 now.
6328
6760a872
JM
6329Wed Apr 8 16:57:22 1998 Philippe De Muyter <phdm@macqel.be>
6330
6331 * source.c: Remove obsolete decl of strstr().
6332
5b944218
JM
6333Wed Apr 8 16:47:33 1998 Jason Molenda (crash@bugshack.cygnus.com)
6334
6335 * solib.c (solib_create_inferior_hook): Remove Ulrich Drepper's
6336 patch of March 23 1998.
6337 * breakpoint.c (breakpoint_re_set_one): Remove Ulrich Drepper's
6338 patch of March 23 1998.
6339
af473842 6340Sat Apr 4 10:05:00 1998 Dawn Perchik <dawn@cygnus.com>
5b944218 6341
af473842
DP
6342 * mdebugread.c (parse_partial_symbols): If this is an .mdebug
6343 section in an ELF file, override a symbol's ECOFF section with its
6344 ELF section. Also, fix stabs continuation where a stabs string
6345 continues for more than one continuation.
6346
912e805f
AC
6347Mon Apr 6 09:17:48 1998 Andrew Cagney <cagney@b1.cygnus.com>
6348
6349 * mips-tdep.c (mips_push_arguments): Specify dimention of valbuf
6350 using MAX_REGISTER_RAW_SIZE.
6351
24a38525 6352Sat Apr 4 10:05:00 1998 Dawn Perchik <dawn@cygnus.com>
f0fce3b8 6353
24a38525
DP
6354 * infrun.c: Fix prototype of signals_info to match static funtion.
6355
6356Thu Apr 2 12:47:41 1998 Frank Ch. Eigler <fche@cygnus.com>
f0fce3b8 6357
24a38525
DP
6358 * sol-thread.c (sol_thread_store_registers): Save & restore new
6359 value of single updated register to prevent accidental clobbering.
6360
c8b77887
MA
6361Wed Apr 1 22:01:09 1998 Mark Alexander <marka@cygnus.com>
6362
6363 * config/sparc/tm-sparclite.h (TARGET_BYTE_ORDER_SELECTABLE): Define.
6364 * config/sparc/sparclite.mt: Link in the erc32 simulator.
6365
3dcac15f
JM
6366Wed Apr 1 16:30:49 1998 Ian Dall <Ian.Dall@dsto.defence.gov.au>
6367
6368 * ns32k-tdep.c (flip_bytes, ns32k_localcount,
6369 ns32k_get_enter_addr, sign_extend): Restore functions mysteriously
6370 deleted.
6371
6372 * ns32knbsd-nat.c: New (?) file to support fetching and storing
6373 registers on NetBSD hosts.
6374
6375 * nbsd.mh (NATDEPFILES): put ns32knbsd-nat.o instead of
6376 ns32k-nat.o
6377
6378 * ns32km3-nat.c (reg_offset): Get order of floating point
6379 registers correct. Add extra 32382 register offsets.
6380 (REG_ADDRESS): define to point at correct part of thread
6381 state. Use calls to "warning" instead of "message".
6382
6383 * tm-nbsd.h, tm-ns32km3.h (REGISTER_NAMES, NUM_REGS,
6384 REGISTER_BYTES, REGISTER_BYTE): redefine allowing for 32382
6385 fpu registers.
6386
32e3c8b8
JM
6387Wed Apr 1 13:43:07 1998 Philippe De Muyter <phdm@macqel.be>
6388
6389 * NEWS: m68k-motorola-sysv host support added.
6390 * coffread.c (coff_start_symtab): Accept the filename as an argument,
6391 set it here. Callers updated.
6392
d0136bf3
AC
6393Wed Apr 1 23:13:23 1998 Andrew Cagney <cagney@b1.cygnus.com>
6394
6395 * config/mips/tm-mips.h (REGISTER_VIRTUAL_TYPE): Handle 32 bit SR,
6396 FSR and FIR registers.
6397 (REGISTER_VIRTUAL_SIZE): Compute using REGISTER_VIRTUAL_TYPE.
6398 (REGISTER_RAW_SIZE): Define using REGISTER_VIRTUAL_SIZE.
6399
6400 * config/mips/tm-mips64.h: Ditto.
6401
4269399c
NC
6402Tue Mar 31 21:30:39 1998 Nick Clifton <nickc@cygnus.com>
6403
6404 * arm-tdep.c (gdb_print_insn_arm): Attach a fake Thumb symbol
6405 vector to the info structure when disassembling thumb
6406 instructions.
6407
6408 * coffread.c (coff_symtab_read, read_one_sym,
6409 process_coff_symbol): Support Thumb symbol types.
6410
6411 * dbxread.c (process_one_symbol): Call SMASH_TEXT_ADDRESS (if it
6412 is defined) for function symbols.
6413
b0d7af2a
MS
6414Tue Mar 31 16:39:28 1998 Michael Snyder <msnyder@cleaver.cygnus.com>
6415
6416 * tracepoint.c (get_tracepoint_by_number): change warning to note.
6417 (delete_trace_command): suppress y/n query if no tracepoints, or
6418 if not from_tty. (trace_pass_command): reject junk at end of args.
6419 (read_actions): an action list consisting only of "end" is discarded.
6420 (validate_actionline (for collect command)): an argument beginning
6421 with a dollar_sign but not recognized as a special argument is
6422 parsed like any other expression -- if it isn't a register name,
6423 it's rejected. Also reject an empty argument to while-stepping.
6424 (trace_find_command): reject a negative frame number argument.
6425 (_initialize_tracepoint): set $traceframe initially to -1.
6426
f45d8080
JM
6427Mon Mar 30 16:42:12 1998 Jason Molenda (crash@bugshack.cygnus.com)
6428
6429 * rdi-share/Makefile.am, rdi-share/aclocal.m4,
6430 rdi-share/configure: New files.
6431 * rdi-share/configure.in: Rewritten to be an autoconf input file.
6432 * rdi-share/Makefile.in, rdi-share/configure: Generated by
6433 automake/autoconf.
6434 * rdi-share/dbg_hif.h, etherdrv.c, hostchan.c: Use autoconf tests
6435 to check environment.
6436
57a39824
KS
6437Sun Mar 29 15:17:16 1998 Keith Seitz <keiths@onions.cygnus.com>
6438
6439 * tracepoint.c (trace_start_command): Set trace_running_p.
6440 (trace_stop_command): Clear trace_running_p.
6441
dfbb701a
SS
6442Sat Mar 28 15:19:48 1998 Stan Shebs <shebs@andros.cygnus.com>
6443
6444 * NEWS: Update for 4.17 release.
6445
b0d7af2a
MS
6446Fri Mar 27 10:15:50 1998 David Taylor <taylor@tito.cygnus.com>
6447
6448 * tracepoint.c (parse_and_eval_memrange): Fix memory leaks.
6449 (encode_actions): Use the new gen_trace_for_expr function
6450 instead of expr_to_address_and_size; collect registers when
6451 using expressions. (clear_collection_list): Fix memory leak.
6452
64531998-03-26 Jim Blandy <jimb@zwingli.cygnus.com>
6454
6455 * ax-gdb.h (gen_trace_for_expr): Add prototype.
6456
6457Thu Mar 26 17:24:23 1998 David Taylor <taylor@texas.cygnus.com>
6458
6459 * tracepoint.c (validate_actionline): Fix memory leak.
6460 (encode_actions): Fix memory leak.
6461
6462Thu Mar 26 16:16:55 1998 David Taylor <taylor@tito.cygnus.com>
6463
6464 * tracepoint.c (trace_mention): New function.
6465 (trace_command): Call it.
6466
64671998-03-26 Jim Blandy <jimb@zwingli.cygnus.com>
6468
6469 * ax-general.c (ax_reqs): New function.
6470 * ax.h (enum agent_flaws, struct agent_reqs): New types.
6471 (agent_reqs): New extern prototype. Well, actually, this was
6472 there before, due to a premature checkin.
6473 (struct aop_map): Add new `data_size' member.
6474 * ax-general.c (aop_map): Supply its value.
6475 * ax-gdb.c (agent_command): Call ax_reqs, for testing.
6476
6477 * ax-general.c (ax_print): If we encounter an invalid or
6478 incomplete opcode, don't abort; just print an error message.
6479
6480 * ax-gdb.c: Generate trace bytecodes, as appropriate.
6481 (trace_kludge): New variable.
6482 (gen_fetch, gen_bitfield_ref): Emit trace bytecodes, if asked
6483 nicely.
6484 (expr_to_agent): Ask for no trace bytecodes.
6485 (gen_trace_for_expr): New function.
6486 (agent_command): Call it, and display the result appropriately ---
6487 no struct axs_value, so no type or kind information.
6488
6489 * ax-gdb.c: Use TARGET_CHAR_BIT throughout, not HOST_CHAR_BIT.
6490
41158958
EZ
6491Thu Mar 26 22:29:28 1998 Elena Zannoni <ezannoni@kwikemart.cygnus.com>
6492
6493 * tracepoint.c (trace_status_command): Recognize a boolean return
6494 value from the stub to indicate whether trace experiment is
900dc14b 6495 running. Export this value as a global state variable.
41158958
EZ
6496 (trace_running_p) for use by the GUI. (from Michael Snyder)
6497 (trace_pass_command) added call to modify_tracepoint_hook.
6498
900dc14b 6499 * tracepoint.h export trace_running_p.
41158958 6500
b0d7af2a
MS
6501Thu Mar 26 13:08:01 1998 David Taylor <taylor@texas.cygnus.com>
6502
6503 * tracepoint.c (validate_actionline): do not error out if
6504 exp->elts[0].opcode is not on short line -- let
6505 expr_to_address_and_size handle it.
6506
65071998-03-26 Jim Blandy <jimb@zwingli.cygnus.com>
6508
6509 * tracepoint.c: Include "ax.h", not "agentexpr.h".
6510
6511 * tracepoint.c (encode_actions): Call expr_to_address_and_size,
6512 not simply expr_to_agent.
6513
6514 * ax-general.c: Comment out code in progress, so everyone else can
6515 at least compile.
6516
6517 * gdbtypes.c: Doc fix.
6518
6519 * ax.h, ax-gdb.h, ax-general.c, ax-gdb.c: New files.
6520 * Makefile.in (REMOTE_OBJS): Add ax-general.o and ax-gdb.o.
6521 (SFILES): Add ax-general.c, ax-gdb.c.
6522 (ax_h): New variable.
6523 (ax-general.o, ax-gdb.o): New rules.
6524
41158958
EZ
6525start-sanitize-sky
6526Wed Mar 25 11:45:19 1998 Frank Ch. Eigler <fche@cygnus.com>
6527
6528 * configure.in (sim-gpu2): Added target type checking to make
6529 --with-sim-gpu2 option only valid for sky target.
6530 * configure: Regenerated.
6531end-sanitize-sky
6532
6533Tue Mar 24 16:22:40 1998 Stu Grossman <grossman@bhuna.cygnus.co.uk>
6534
6535 * Makefile.in: Derive SHELL from configure.
c19916b7 6536 * config/d10v/d10v.mt config/m32r/m32r.mt
2c9fd4b1 6537 config/mn10200/mn10200.mt config/mn10300/mn10300.mt
2e7eeba9 6538 config/d30v/d30v.mt: Remove -lm from SIM. This prevents
2c9fd4b1
ILT
6539 dependency checking of -lm (under NT native builds). (It is
6540 automatically added by configure if it exists.)
41158958
EZ
6541 * doc/configure mswin/configure nlm/configure
6542 testsuite/gdb.base/configure testsuite/gdb.c++/configure
6543 testsuite/gdb.chill/configure testsuite/gdb.disasm/configure
6544 testsuite/gdb.stabs/configure testsuite/gdb.threads/configure:
6545 Regenerate with autoconf 2.12.1 to fix shell issues for NT native
6546 builds.
6547
fecf06cf
JM
6548Mon Mar 23 18:10:57 1998 Ulrich Drepper (drepper@cygnus.com)
6549
6550 * solib.c (solib_create_inferior_hook): Rewrite previous
6551 change to check the type of file via BFD.
6552
124e64bb
JM
6553Mon Mar 23 13:52:28 1998 Ulrich Drepper (drepper@cygnus.com)
6554
6555 * breakpoint.c (breakpoint_re_set_one): Treat bp_shlib_events
6556 like bp_breakpoints.
6557 * solib.c (solib_create_inferior_hook): Relocate section addresses
6558 if the alleged start address doesn't agree with the PC.
6559
b236defa
FCE
6560start-sanitize-sky
6561Mon Mar 23 13:07:22 1998 Frank Ch. Eigler <fche@cygnus.com>
6562
6563 * configure.in (sim-gpu2): Added --with-sim-gpu2 as configure
6564 option, to allow gdb+sim linking with sky GPU2 library.
83c7ab51 6565 * configure: Regenerated.
124e64bb 6566
b236defa 6567end-sanitize-sky
b236defa
FCE
6568Sat Mar 21 19:34:49 1998 Elena Zannoni <ezannoni@kwikemart.cygnus.com>
6569
6570 merged changes from Foundry (list follows by file/author):
2e7eeba9 6571
b236defa
FCE
6572 - Tom Tromey <tromey@cygnus.com>
6573 * Makefile.in (gdbres.o): New target.
6574 (WINDRES): New define.
6575 * configure: Rebuilt.
6576 * configure.in (WINDRES): Define.
6577 (CONFIG_OBS): Include gdbres.o on Windows.
6578 * gdbtool.ico: New file.
6579 * gdb.rc: New file.
6580
6581 * ser-unix.c
6582 - Keith Seitz <keiths@onions.cygnus.com>
6583 (wait_for): Don't reset the timeout_remaining for CYGWIN32,
6584 since we now effectively poll the serial port.
6585 Don't reset the current_timeout, either, since this member is used
6586 by hardwire_readchar to track the timeout and call the ui_loop_hook.
900dc14b
SS
6587 (hardwire_readchar): Poll the serial port for Cygwin32. We timeout
6588 every second, update the UI, and loop around doing this until we
6589 have hit the real timeout or we get data or an error. This will
6590 allow the UI to stay active while gdb is "blocked" talking to the
6591 target.
6592 - Martin M. Hunt <hunt@cygnus.com>
6593 (wait_for): Do reset current_timeout because it is only used to
6594 keep track of what the current timeout for the scb is.
b236defa
FCE
6595
6596 * top.c
6597 - Martin M. Hunt <hunt@cygnus.com>
6598 (quit_confirm): Change exit message again
6599 for GUI.
6600 (pc_changed_hook): Add prototype.
6601 - Tom Tromey <tromey@cygnus.com>
6602 (quit_confirm): Added missing `else'.
6603 (quit_confirm): Special-case message if init_ui_hook is
6604 set.
6605
6606 * symtab.c
6607 - Martin M. Hunt <hunt@cygnus.com>
6608 (find_pc_sect_line): If no symbol information
6609 is found, return correct pc anyway.
6610 (find_methods): Comment out an apparently
6611 bogus error message because it messes up Foundry.
6612
6613 * serial.c
6614 - Martin M. Hunt <hunt@cygnus.com>
6615 (_initialize_serial): Add a description of
6616 "set remotelogbase".
6617
6618 * findvar.c
6619 - Martin M. Hunt <hunt@cygnus.com>
6620 (write_register_gen): Add call to
6621 pc_changed_hook if the PC is being changed.
6622
6623 * defs.h
6624 - Martin M. Hunt <hunt@cygnus.com>
6625 (pc_changed_hook): Define.
6626
6627 * command.c
6628 - Martin M. Hunt <hunt@cygnus.com>
6629 (do_setshow_command): If no arguments are supplied,
6630 don't dump core, instead print out an error message.
6631
6632 * breakpoint.c
6633 - Martin M. Hunt <hunt@cygnus.com>
6634 Make set_raw_breakpoint, set_breakpoint_count,
6635 and breakpoint_count non-static so they are accessible from
91e14aa9 6636 elsewhere.
b236defa
FCE
6637 (enable_breakpoint): Enable breakpoint
6638 with same disposition instead of changing all breakpoints
6639 to donttouch.
6640
6641 * annotate.h
6642 - Keith Seitz <keiths@onions.cygnus.com>
6643 Add declarations for annotation hooks.
6644
6645 * annotate.c
6646 - Keith Seitz <keiths@onions.cygnus.com>
6647 Add hooks: annotate_starting_hook, annotate_stopped_hook,
6648 annotate_signalled_hook, annotate_exited_hook.
6649 (annotate_starting): If hook exists, call it instead.
6650 (annotate_stopped): If hook exists, call it instead.
6651 (annotate_exited): If hook exists, call it instead.
6652 (annotate_signalled): If hook exists, call it instead.
6653
d1732185
MS
6654Fri Mar 20 14:45:36 1998 Michael Snyder <msnyder@cleaver.cygnus.com>
6655
6656 * gdbserver/Makefile.in: add dependency on XM_CLIBS.
6657 * gdbserver/low-sim.c (registers) force into alignment.
6658 (create_inferior): Fix typo on new_argv; add abfd arg to
6659 sim_open, sim_create_inferior. Add reg_size arg to
6660 sim_fetch_register, sim_store_register. Make simulator
6661 take a single-step to get into a known running state.
6662 * gdbserver/gdbreplay.c: include fcntl.h for def'n of F_SETFL.
6663 * gdbserver/server.c: Add remote_debug variable to control
6664 debug output.
6665 * gdbserver/server.h: Add prototypes for enable/disable_async_io.
6666 * gdbserver/remote-utils.c: add verbose debugging output controlled
6667 by "remote_debug" variable. Add call to "disable_async_io()"
6668 to avoid being killed by async SIGIO signals.
6669 * config/m32r/m32r.mt: define GDBSERVER_(LIBS and DEPFILES),
6670 so that gdbserver can be built with the m32r simulator.
2e7eeba9 6671
980714f9
AC
6672Fri Mar 20 09:04:06 1998 Andrew Cagney <cagney@b1.cygnus.com>
6673
6674start-sanitize-r5900
6675 * config/mips/tm-r5900.h (REGISTER_VIRTUAL_SIZE): Redefine as
6676 expression from REGISTER_VIRTUAL_TYPE.
6677 (REGISTER_RAW_SIZE): Ditto.
6678 (REGISTER_VIRTUAL_TYPE): Redefine, use explicit size for 32 bit
6679 registers.
6680
6681end-sanitize-r5900
6682 * gdbtypes.h (builtin_type_{,u}int{8,16,32,64}): New gdb builtin
6683 types.
6684start-sanitize-r5900
6685 (builtin_type_{,u}int128): Ditto.
6686end-sanitize-r5900
2e7eeba9 6687
980714f9
AC
6688 * gdbtypes.c (_initialize_gdbtypes): Initialize new types.
6689
6690 * mips-tdep.c (do_gp_register_row): Pad register value when GP
6691 register is smaller than MIPS_REGSIZE.
6692
6693 * findvar.c (value_of_register): When raw and virtual register
6694 values identical, check that sizes are consistent.
6695
f4f7d594
MS
6696Thu Mar 19 11:32:15 1998 Michael Snyder (msnyder@cleaver.cygnus.com)
6697
6698 * minsyms.c (compare_minimal_symbols): If addresses are identical,
6699 then compare on names. Sorted list should have symbols with
6700 identical addresses AND names adjacent, so dups can be discarded.
6701
c298bd54
JL
6702Wed Mar 18 12:50:17 1998 Jeff Law (law@cygnus.com)
6703
6704 * stabsread.c (define_symbol): Don't look for ',' as a LRS
6705 indicator.
6706
3f7e239d
NC
6707Wed Mar 18 10:34:51 1998 Nick Clifton <nickc@cygnus.com>
6708
6709 * rdi-share/etherdrv.c: Set sys_errlist[] as char * not const char *.
6710
c7ab546c
JM
6711Fri Mar 13 15:43:53 1998 Peter Schauer (pes@regent.e-technik.tu-muenchen.de)
6712
6713 * config/mips/xm-mips.h (CC_HAS_LONG_LONG): Undefine for Ultrix
6714 when compiling with native cc, the compiler has broken long long
6715 support.
6716
60c7c376
JM
6717Fri Mar 13 15:37:02 1998 Peter Schauer (pes@regent.e-technik.tu-muenchen.de)
6718
6719 * config/m68k/xm-sun3os4.h: Remove malloc declarations, they
6720 are handled via autoconf now.
6721 * remote.c (remote_ops, extended_remote_ops): Replace static
6722 forward declaration by moving the static definition to the top of
6723 the file, for old K&R compilers.
6724 * tracepoint.c (collect_symbol, trace_start_command):
6725 Replace ANSI string concatenation with K&R compatible simple string.
6726
67271998-03-11 Fred Fish <fnf@ninemoons.com>
6728
6729 * source.c (select_source_symtab): Don't reach error if we have
6730 a current_source_symtab from reading in partial symbol table.
6731
e0848028
GRK
6732start-sanitize-vr4320
6733Tue Mar 10 16:15:13 1998 Gavin Koch <gavin@cygnus.com>
6734
2e7eeba9 6735 * configure.tgt (mips64*vr4320*el-*-elf*): Removed spurious case.
e0848028
GRK
6736
6737end-sanitize-vr4320
3ffbdf15
FF
6738Fri Mar 6 13:10:27 1998 Fred Fish <fnf@cygnus.com>
6739
6740 * utils.c (quit): Call SERIAL_DRAIN_OUTPUT rather than
6741 SERIAL_FLUSH_OUTPUT.
6742 * serial.h (struct serial_ops): Add drain_output, pointer to
6743 function that waits for output to drain.
6744 (SERIAL_DRAIN_OUTPUT): Macro to wait for output to drain.
6745 * ser-unix.c (hardwire_drain_output): New function and prototype.
6746
6747 * ser-unix.c (hardwire_ops): Add entry for drain_output function.
6748 * ser-tcp.c (tcp_ops): Ditto.
6749 * ser-ocd.c (ocd_ops): Ditto.
6750 * ser-mac.c (mac_ops): Ditto.
6751 * ser-go32.c (dos_ops): Ditto.
6752 * ser-e7kpc.c (e7000pc_ops): Ditto.
6753
d6acae68
MS
6754Thu Mar 5 16:07:41 1998 Michael Snyder (msnyder@cleaver.cygnus.com)
6755
6756 * sparcl-tdep.c: fix #endif comments
6757
56deac4b
JM
6758Thu Mar 5 15:10:35 1998 Jason Molenda (crash@bugshack.cygnus.com)
6759
6760 * Makefile.in (BISON): Configure substitutes in @YACC@, not @BISON@.
6761
17772016
KS
6762Thu Mar 5 14:42:41 1998 Keith Seitz <keiths@onions.cygnus.com>
6763
6764 * ocd.c (ocd_open): If we fail ocd_start_remote, make sure we
6765 error () so that we abort out of bdm_ppc_open.
6766
1d7a3fd7
MH
6767Wed Mar 4 16:53:52 1998 Martin M. Hunt <hunt@cygnus.com>
6768
6769 * serial.c (_initialize_serial): Add a description of
6770 "set remotelogbase".
6771
6772 * command.c (do_setshow_command): If no arguments are supplied,
6773 don't dump core, instead print out an error message.
6774
4f0f84e7
RU
6775Wed Mar 4 01:39:08 1998 Ron Unrau <runrau@cygnus.com>
6776
6777 * elfread.c (elf_symtab_read): merge SYMBOL_IS_SPECIAL into
6778 MAKE_MSYMBOL_SPECIAL
6779 * config/mips/tm-mips.h: ditto
6780
3a012857
JM
6781Tue Mar 3 17:19:08 1998 John Metzler <jmetzler@cygnus.com>
6782
f893ebe3 6783start-sanitize-vr4111
900dc14b 6784 * config/mips/tm-vr4xxx.h: implements vr4111 as separate from 4300
d7363521 6785 * config/mips/vr4xxx.tm: implements vr4111 as separate from 4300
3a012857 6786 * configure.tgt: Recognise mips64vr4111-*-elf as vr4xxx
f893ebe3 6787end-sanitize-vr4111
d7363521 6788 * dwarfread.c (read_tag_pointer_type): Pointer sizes now come from
3a012857 6789 TARGET_PTR_BIT rather from sizeof(char *) on host.
2e7eeba9 6790
716e3a4f
JM
6791Tue Mar 3 14:37:02 1998 Peter Schauer (pes@regent.e-technik.tu-muenchen.de)
6792
6793 * alpha-nat.c (fetch_osf_core_registers): Renamed from
6794 fetch_aout_core_registers.
6795 (alpha_osf_core_fns): Renamed from alpha_aout_core_fns, change
6796 flavour to bfd_target_unknown_flavour for OSF core files.
6797
e4e30cdc
GRK
6798start-sanitize-vr4320
6799Tue Mar 3 11:12:39 1998 Gavin Koch <gavin@cygnus.com>
6800
2e7eeba9 6801 * configure.tgt (mips64*vr4320*el-*-elf*,mips64*vr4320*-*-elf*):
e4e30cdc
GRK
6802 Added.
6803
6804end-sanitize-vr4320
58299977
MS
6805Mon Mar 2 17:44:13 1998 Michael Snyder (msnyder@cleaver.cygnus.com)
6806
6807 * breakpoint.c (_initialize_breakpoint): Make "en" an alias
6808 for "enable" (so that it doesn't conflict with "end").
6809
d0b6f2ad
JM
6810Mon Mar 2 17:04:25 1998 Jason Molenda (crash@bugshack.cygnus.com)
6811
6812 * Makefile (VERSION): Bump to 4.17.1.
6813
290d79e0
JM
6814Mon Mar 2 16:59:15 1998 Jason Molenda (crash@bugshack.cygnus.com)
6815
6816 * rdi-share/etherdrv.c (sys_errlist): Add correct decl for Linux.
6817
37ac9ecc
JM
6818Mon Mar 2 16:51:44 1998 Jason Molenda (crash@bugshack.cygnus.com)
6819
6820 * Makefile.in (YYFILES): Remove in maintainer-clean, not distclean.
6821
c87c674a
JM
6822Mon Mar 2 16:47:11 1998 Philippe De Muyter <phdm@macqel.be>
6823
6824 * Makefile.in (distclean): Add `rm $(YYFILES)'.
6825
79f0b613
JM
6826Mon Mar 2 16:45:48 1998 Philippe De Muyter <phdm@macqel.be>
6827
6828 * coffread.c (coff_read_enum_type): Set TYPE_FLAG_UNSIGNED if enum
6829 is unsigned.
6830
6cc922a9
JM
6831Sun Mar 2 15:16:13 1998 Richard Henderson <rth@cygnus.com>
6832
6833 * configure.host, configure.tgt: Add sparc-linux.
6834 * sparc-nat.c: Include <asm/reg.h> not <machine/reg.h> for Linux.
6835 * config/sparc/*linux*: New files.
6836
4321ed53
JM
6837Mon Mar 2 12:12:41 1998 Anthony Thompson (athompso@cambridge.arm.com)
6838
6839 * arm-tdep.c (gdb_print_insn_arm): Call print_insn_big_arm
6840 if we're big endian; else call print_insn_little_arm.
6841
9a760d24
JM
6842Mon Feb 24 11:24:57 1998 Richard Henderson <rth@cygnus.com>
6843
6844 * Makefile.in (BISON): Don't even pretend to use yacc.
6845 (c-exp.tab.o): Use bison -o to use a unique intermediate file.
6e8bee16
SG
6846 (f-exp.tab.o, m2-exp.tab.o): Likewise.
6847start-sanitize-java
6848 (jv-exp.tab.o): Likewise.
6849end-sanitize-java
9a760d24 6850
5af9fc5f
AC
6851Tue Feb 24 03:32:59 1998 Andrew Cagney <cagney@b1.cygnus.com>
6852
6853 * remote-sim.c (gdbsim_fetch_register): Don't abort when the
6854 register size is wrong.
6855
6856start-sanitize-r5900
24d084d9 6857Tue Feb 24 02:53:41 1998 And<rew Cagney <cagney@b1.cygnus.com>
5af9fc5f
AC
6858
6859 * config/mips/tm-r5900.h (REGISTER_VIRTUAL_SIZE,
6860 REGISTE_RAW_SIZE): Re-define.
6861
6862end-sanitize-r5900
c3cf44c4
JM
6863Thu Feb 19 16:49:48 1998 John Metzler <jmetzler@cygnus.com>
6864
24d084d9 6865 * target.c (debug_to_fetch_registers,debug_to_store_registers,
863b20a3
JM
6866 debug-to_insert_breakpoint,debug_to_remove_breakpoint): tracing
6867 64 bit targets crashed long long printfs.
c3cf44c4
JM
6868
6869Tue Feb 17 16:36:22 1998 Michael Snyder (msnyder@cleaver.cygnus.com)
6870
6871 * symfile.c (read_target_int_array): rename read_target_long_array
6872 and force the sizeof an ovly_table element to sizeof(long),
6873 instead of sizeof(int).
6874
f8611801
FCE
6875Tue Feb 17 18:05:05 1998 Frank Ch. Eigler <fche@cygnus.com>
6876
6877 * remote-mips.c (mips_request): Use unsigned long during parsing
6878 returned value from monitor, to prevent accidental sign extension.
6879
dd600735
JM
6880Tue Feb 17 14:28:33 1998 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
6881
6882 * acconfig.h: FORCE_MMCHECK changed to MMCHECK_FORCE.
6883 * configure.in: Ditto.
6884 * configure: Regenerated.
6885
6886Tue Feb 17 14:07:34 1998 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
6887
6888 * gdbtypes.c (check_typedef): Do not try to resolve the length of
2e7eeba9 6889 a type which has TYPE_FLAG_TARGET_STUB set, if the target type has
dd600735
JM
6890 set TYPE_FLAG_TARGET_STUB as well.
6891
bccb2e7f
AC
6892Tue Feb 17 14:32:18 1998 Andrew Cagney <cagney@b1.cygnus.com>
6893
6894 * remote-sim.c (gdbsim_fetch_register, gdbsim_store_register):
6895 Pass register size to sim_{fetch,store}_register. Check nr of
6896 register bytes transfered is correct.
6897
6c3beaaf
AC
6898Mon Feb 16 14:05:54 1998 Andrew Cagney <cagney@b1.cygnus.com>
6899
6900 * remote-d10v.c (remote_d10v_open): Call push_remote_target
6901 instead of open_remote_target.
6902
6903 * remote.c (remote_xfer_memory): Use REMOTE_TRANSLATE_XFER_ADDRESS
6904 to translate addr/size when defined.
6905 (open_remote_target): Delete.
2e7eeba9 6906
6c3beaaf 6907 * target.h (open_remote_target): Delete.
2e7eeba9 6908
6c3beaaf 6909 * config/d10v/tm-d10v.h (REMOTE_TRANSLATE_XFER_ADDRESS): Define.
2e7eeba9 6910
6c3beaaf
AC
6911Mon Feb 16 14:05:54 1998 Andrew Cagney <cagney@b1.cygnus.com>
6912
2e7eeba9
MS
6913 * d10v-tdep.c (d10v_extract_return_value): Wierd. GCC wants to
6914 return odd sized register quantities with only half of the first
6915 register used!
6916
6917 * config/d10v/tm-d10v.h (USE_STRUCT_CONVENTION): Use stack when
6918 size > 8.
6c3beaaf
AC
6919
6920Mon Feb 16 14:05:54 1998 Andrew Cagney <cagney@b1.cygnus.com>
6921
6922 * config/d10v/tm-d10v.h (USE_STRUCT_CONVENTION): Define. True when
6923 sizeof type > 1.
6924
678fa7ff
RU
6925Sun Feb 15 16:10:50 1998 Ron Unrau <runrau@cygnus.com>
6926
6927 * parse.c (write_dollar_variable): call new function
6928 target_map_name_to_register to allow targets to define their own
6929 register name aliases.
6930 * infcmd.c (registers_info): use target_map_name_to_register so that
6931 "print $reg" and "info reg $reg" use the same register name aliases.
6932
8970f2fd
SS
6933Fri Feb 13 16:40:30 1998 Stan Shebs <shebs@andros.cygnus.com>
6934
6935 * config/i386/i386mk.mt (OBJFORMATS): Delete, no longer used.
6936 * config/i386/xm-i386mk.h: Fix an include.
6937 * config/pyr/tm-pyr.h (PC_INNER_THAN): Remove, never used.
6938
a469b84c
FCE
6939Thu Feb 12 16:12:07 1998 Frank Ch. Eigler <fche@cygnus.com>
6940
6941 * remote-mips.c (mips_enter_debug): Sleep before sending CR to
6942 monitor.
6943 (mips_exit_debug): Accept any whitespace / verbiage before monitor
6944 prompt reappears.
6945
9df3ba70
AC
6946Thu Feb 12 18:25:42 1998 Andrew Cagney <cagney@b1.cygnus.com>
6947
6948 * d10v-tdep.c (show_regs): Avoid use of %llx when printing 8 byte
6949 accumulators.
6950
93087920
AC
6951Thu Feb 12 17:10:22 1998 Andrew Cagney <cagney@b1.cygnus.com>
6952
6953 * valops.c (value_at): For d10v, make read pointers with
6954 read_target_unsigned_integer, keep addresses unsigned.
6955 (value_fetch_lazy): Ditto.
6956
dd0ce8f6
AC
6957Thu Feb 12 12:14:02 1998 Andrew Cagney <cagney@b1.cygnus.com>
6958
6959 * remote-d10v.c: New file. Layer the d10v GDB->remote memory map
6960 on top of the remote serial memory transfer functions.
6961
6962 * config/d10v/d10v.mt (TDEPFILES): Add remote-d10v.o
6963
6964 * Makefile.in (remote-d10v.o): Add dependencies.
6965
6966 * remote.c (remote_open_1): Add arg extended_p, engage extended
6967 protocol when extended_p.
6968 (remote_open, extended_remote_open): Pass !extended_p /
6969 extended_p to remote_open_1.
6970
6971 * remote.c (open_remote_target), target.h: New function.
6972
6bcc5ba3
AC
6973Wed Feb 11 08:41:15 1998 Andrew Cagney <cagney@b1.cygnus.com>
6974
6975 * config/i386/fbsd.mh (XDEPFILES): Add ser-tcp.o.
6976
a5f4fbff
KS
6977Tue Feb 10 17:50:37 1998 Keith Seitz <keiths@onions.cygnus.com>
6978
6979 * tracepoint.c (tracepoint_operation): Call the modify_tracepoint_hook
6980 if it exists.
6981 Remove static declaration of free_actions.
6982
6983 * tracepoint.h: Add declaration of free_actions.
6984
6985Tue Feb 10 12:17:13 1998 Fred Fish <fnf@cygnus.com>
6986
6987 * symtab.c (decode_line_1): Revert change that mistakenly
6988 removed assignment of sals[0].pc field.
6989
75a1d67a
JM
6990Mon Feb 10 12:37:47 1998 Philippe De Muyter <phdm@macqel.be>
6991
6992 * m68k/tm-delta68.h (EXTRACT_RETURN_VALUE): Type argument for
6993 `REGISTER_CONVERT_TO_VIRTUAL is `TYPE', not
6994 `REGISTER_VIRTUAL_TYPE (FP0_REGNUM)';
6995 (STORE_RETURN_VALUE): Ditto, and offset for `write_register_bytes'
6996 is `REGISTER_BYTE (FP0_REGNUM)', not `FP0_REGNUM'.
6997 (FRAME_NUM_ARGS): New macro.
6998 * m68k/tm-news.h (EXTRACT_RETURN_VALUE, STORE_RETURN_VALUE): Ditto.
6999 * delta68-nat.c (clear_insn_cache): New function, forgotten in previous
7000 patch.
7001
f6826586
AC
7002Mon Feb 9 11:10:06 1998 Andrew Cagney <cagney@b1.cygnus.com>
7003
7004 * d10v-tdep.c: Replace references to IMEM_ADDR and DMEM_ADDR with
7005 D10V_MAKE_[DI]ADDR and D10V_CONVERT_[ID]ADDR_TO_RAW macros.
7006
7007 * config/d10v/tm-d10v.h (IMEM_START): Move to 0x01......
7008 (DMEM_START): Move to 0x00......
7009 (STACK_START): Move to 0x00..7ffe.
7010 (D10V_MAKE_IADDR, D10V_MAKE_DADDR): Translate unconditionally.
7011
7012 * d10v-tdep.c (d10v_xlate_addr): Delete function.
7013
9c01dbfb
DE
7014Mon Feb 9 15:10:21 1998 Fred Fish <fnf@cygnus.com>
7015
7016 * symtab.c (fixup_psymbol_section): Move forward declaration to
7017 top of file with other such decls. Make it a static function.
7018 * symtab.h: Minor formatting tweaks.
7019
cb5cd5b4
SS
7020Mon Feb 9 13:14:12 1998 Stan Shebs <shebs@andros.cygnus.com>
7021
7022 * config/a29k-udi.mt, config/i960/vxworks960.mt (REMOTE_OBS):
7023 Remove redefinition.
7024 * config/i960/tm-i960.h (BREAKPOINT): Define.
7025
89f2ecdb
ILT
7026Mon Feb 9 15:35:38 1998 Ian Lance Taylor <ian@cygnus.com>
7027
7028 * Makefile.in (init.c): Ignore errors when making init.c. Seems
7029 necessary to work around bug in Solaris make.
7030
75a1d67a 7031Sun Feb 6 02:44:28 1997 Philippe De Muyter <phdm@macqel.be>
4434e2dc
JM
7032
7033 * m68k/tm-delta68.h (CPLUS_MARKER): Macro deleted.
7034 (EXTRACT_STRUCT_VALUE_ADDRESS): Macro defined.
7035 (EXTRACT_RETURN_VALUE, STORE_RETURN_VALUE): Macros modified
7036 because floating-point values return via %fp0.
7037 (CLEAR_INSN_CACHE): New macro.
7038 * m68k/tm-m68k.h (REGISTER_CONVERT_TO_VIRTUAL): Macro fixed
7039 to use DOUBLEST.
7040 (REGISTER_CONVERT_TO_RAW): Ditto.
7041 * infptrace.c (child_xfer_memory): If CLEAR_INSN_CACHE is defined,
7042 call it after having written in child process's memory.
7043 * inflow.c (PROCESS_GROUP_TYPE): Macro defined if HAVE_TERMIO.
7044 (gdb_has_a_terminal, terminal_ours_1): Functions fixed for HAVE_TERMIO.
7045
4cb36674
JL
7046Fri Feb 6 16:17:30 1998 Jeffrey A Law (law@cygnus.com)
7047
7048 * config/mips/tm-mips64.h (TARGET_LONG_BIT): Allow final target to
7049 override.
7050 (TARGET_LONG_LONG_BIT): Likewise.
7051 (TARGET_PTR_BIT): Likewise.
7052start-sanitize-r5900
7053 * config/mips/tm-r5900.h (TARGET_PTR_BIT): Define to 32 bits.
7054end-sanitize-r5900
7055
5f3ba16b
DE
7056start-sanitize-sky
7057Fri Feb 6 14:33:34 1998 Doug Evans <devans@canuck.cygnus.com>
7058
7059 * configure.tgt (mips64r5900*-sky-elf*): Replaces txvu-elf.
7060 * config/mips/txvu.mt (SIM): txvu -> mips.
7061
7062end-sanitize-sky
608addd4
AC
7063Fri Feb 6 17:42:22 1998 Andrew Cagney <cagney@b1.cygnus.com>
7064
7065 * config/d10v/tm-d10v.h (D10V_CONVERT_IADDR_TO_RAW,
7066 D10V_CONVERT_DADDR_TO_RAW): Define.
7067
7068 * d10v-tdep.c (d10v_push_arguments): Re-write. Pass arguments in
7069 registers, regardless of their size, when they fit.
7070
9961ca7a
AC
7071Thu Feb 5 13:16:36 1998 Andrew Cagney <cagney@b1.cygnus.com>
7072
7073 * d10v-tdep.c (d10v_extract_return_value): For function pointers
7074 translate address to IMAP area.
7075
7076 * config/d10v/tm-d10v.h (EXTRA_FRAME_INFO): Delete dummy from
7077 struct.
7078 (POP_FRAME): Point at generic_pop_current_frame.
2e7eeba9 7079
9961ca7a
AC
7080 * d10v-tdep.c (d10v_pop_frame): Delete code handling dummy frames,
7081 handled earlier.
7082 (d10v_push_return_address): New function.
7083 (d10v_pop_dummy_frame): Delete.
7084 (d10v_fix_call_dummy): Delete.
7085 (d10v_call_dummy_address): Delete.
7086
7087 * d10v-tdep.c (d10v_init_extra_frame_info): Clear dummy and
7088 frameless.
7089
7090 * d10v-tdep.c (d10v_push_arguments): Keep stack word aligned.
7091
7092 * config/d10v/tm-d10v.h (EXTRACT_STRUCT_VALUE_ADDRESS): Extract
7093 address of structure from first ARG1_REGNUM.
7094
7095 * d10v-tdep.c (d10v_push_arguments): Force 4 byte args into
7096 even-odd register pair. Store 1 and 2 byte args in registers.
7097
7098 * valops.c (value_fetch_lazy): Ensure that a D10V function pointer
7099 is fetched in the correct byte order.
7100 (value_at): Ditto. Also ensure data pointers are mapped to data
7101 segment.
7102
7103 * config/d10v/tm-d10v.h (D10V_DADDR_P, D10V_IADDR_P):
7104
7105 * d10v-tdep.c: Replace 2 with REGISTER_RAW_SIZE.
7106 (d10v_pop_frame): Replace R13 with LR_REGNUM.
7107 (d10v_push_arguments): Replace R2 with ARG1_REGNUM.
7108 (d10v_push_arguments): Replace 6 with ARGN_REGNUM.
7109 (d10v_extract_return_value): Access return value with RET1_REGNUM.
7110
7111 * config/d10v/tm-d10v.h (ARG1_REGNUM, ARGN_REGNUM, RET1_REGNUM):
7112 Define.
7113 (STORE_RETURN_VALUE): Specify return register using RET1_REGNUM.
7114 (STORE_STRUCT_RETURN): Specify ARG1_REGNUM as the struct ptr
7115 location.
2e7eeba9 7116
44d33d55
AC
7117Thu Feb 5 13:16:36 1998 Andrew Cagney <cagney@b1.cygnus.com>
7118
7119 * blockframe.c (generic_pop_dummy_frame): Flush the frame, no
7120 longer valid.
7121
7122 * blockframe.c (generic_pop_current_frame), frames.h: New
7123 function.
7124
1931ea8d
AC
7125Thu Feb 5 17:18:16 1998 Andrew Cagney <cagney@b1.cygnus.com>
7126
7127 * remote-sim.c (gdbsim_create_inferior): clear_proceed_status
7128 before /re/starting the simulator.
7129
df419eec
JM
7130Thu Feb 5 15:55:31 1998 C. M. Heard (heard@vvnet.com)
7131
7132 * top.c (do_nothing): Remove signal handler after signal is caught.
7133
d9ba1c3f
MS
7134Thu Feb 5 11:57:06 1998 Michael Snyder (msnyder@cleaver.cygnus.com)
7135
7136 * tracepoint.c (tracepoint_operation): call free_actions instead
7137 of free. (free_actions): eliminate some memory leaks for actions.
7138 (validate_actionline): pass string arg by reference, so we can
7139 change the pointer. Change all memrange collection arguments to
7140 canonical form (literal address and size), to enforce early
7141 evaluation. Accept UNOP_MEMVAL (assembly variables) for
7142 trace collection. (parse_and_eval_memrange): accept expressions
7143 for the address and size fields of a memrange (and evaluate
7144 them immediately). (several places): use -1 instead of zero
7145 to distinguish an absolute memrange from a register-relative one.
7146 (encode_actions): add handling for UNOP_MEMVAL (assembly variable).
7147
c7bb1531
JM
7148Wed Feb 4 17:40:21 1998 Jason Molenda (crash@bugshack.cygnus.com)
7149
7150 * Makefile.in (SFILES): add tracepoint.c.
7151 (LINTFILES): add @CONFIG_SRCS@.
7152 (SOURCES): Ditto.
7153 * configure.in (CONFIG_SRCS): Mirror use of CONFIG_OBS.
7154 * configure: Regenerated.
7155
70b3329c
JM
7156Tue Feb 3 16:12:32 1998 Gordon W. Ross (gwr@mc.com)
7157
7158 * infptrace.c (child_resume): Don't try to step if
7159 NO_SINGLE_STEP is defined.
7160
c09eab00
JM
7161Mon Feb 2 19:06:13 1998 Jason Molenda (crash@bugshack.cygnus.com)
7162
7163 * Makefile.in (VERSION): Bump to 4.16.2.
7164
7165Mon Feb 2 17:18:25 1998 Richard Henderson <rth@cygnus.com>
7166
7167 * alpha-nat.c (fetch_aout_core_registers): Rename from
7168 fetch_core_registers.
7169 (fetch_elf_core_registers): New function.
7170 (supply_gregset): Use ALPHA_REGSET_BASE.
7171 (supply_fpregset): Likewise.
7172 (fill_fpregset): Likewise.
7173 (alpha_aout_core_fns): Rename from alpha_core_fns.
7174 (alpha_elf_core_fns): New.
7175 * config/alpha/alpha-linux.mh (NATDEPFILES): solib.o not osfsolib.o.
7176 Disable MMALLOC.
7177 * config/alpha/nm-linux.h (SVR4_SHARED_LIBS): Define if ELF.
7178 (TARGET_ELF64): Likewise.
7179 (ALPHA_REGSET_BASE): New.
7180 * config/alpha/nm-osf.h (ALPHA_REGSET_BASE): New.
7181 * config/alpha/tm-alphalinux.h: Include tm-sysv4.h.
7182
7183 * solib.c (elf_locate_base): Add TARGET_ELF64 support.
7184 (info_sharedlibary_command): Likewise.
7185
7186 * configure.host: Match alpha*.
7187 * configure.tgt: Likewise.
7188
6981a588
DT
7189Fri Jan 30 15:11:38 1998 David Taylor <taylor@texas.cygnus.com>
7190
7191 Changes by <Peter.Schauer@Regent.E-Technik.TU-Muenchen.DE>
7192 * infrun.c (IN_SOLIB_DYNSYM_RESOLVE_CODE): new macro for detecting
7193 whether we are in the dynamic symbol resolution code
7194 (wait_for_inferior): invoke it.
7195 * solib.c (in_svr4_dynsym_resolve_code): new function
7196 (enable_break): record start and end of the dynamic linker
7197 text and plt sections for use in in_svr4_dynsym_resolve_code.
7198 * solib.h (IN_SOLIB_DYNSYM_RESOLVE_CODE): add svr4 definition;
7199 (in_svr4_dynsym_resolve_code): declare it.
7200 * config/nm-gnu.h (solib.h): move inclusion to after definition
7201 of SVR4_SHARED_LIBS.
7202 * config/nm-sysv4.h (solib.h): ditto.
7203 * config/i386/nm-i386sco5.h (solib.h): ditto.
7204 * config/i386/nm-linux.h (solib.h): ditto.
7205 * config/mips/nm-irix5.h (IN_SOLIB_DYNSYM_RESOLVE_CODE): undefine.
7206
3e269acb
SS
7207Thu Jan 29 19:39:31 1998 Stan Shebs <shebs@andros.cygnus.com>
7208
7209 * coffread.c (coff_symtab_read) [SEM]: Remove code, macro can
7210 never be defined.
7211 * dbxread.c (process_one_symbol) [BLOCK_ADDRESS_ABSOLUTE]:
7212 Remove, no longer needed.
7213 * hppa-tdep.c (N_SET_MAGIC): Remove, no longer used.
7214 * config/pa/xm-hppab.h (SEEK_SET, SEEK_CUR, SEEK_END): Ditto.
7215 * config/mips/tm-mipsm3.h (NUMERIC_REG_NAMES): Ditto.
7216 * config/mips/mipsm3.mt (TDEPFILES): Remove mipsread.o.
7217
7074cd4e
SS
7218Wed Jan 28 14:46:52 1998 Stan Shebs <shebs@andros.cygnus.com>
7219
7220 Suggested by Chris Walter <walter@budoe.bu.edu>:
7221 * dwarfread.c (set_cu_language): Recognize Fortran.
7222 * dwarf2read.c (set_cu_language): Ditto.
7223 (read_array_type): Fix language test.
7224
2a913d71
MS
7225Wed Jan 28 12:51:08 1998 Michael Snyder (msnyder@cleaver.cygnus.com)
7226
7227 * blockframe.c (generic_frame_chain_valid): A frame pointer may
7228 be valid if it is equal to the frame pointer of its caller (ie.
7229 not necessarily strictly INNER_THAN). Allows frameless functions.
7230
29df6f4b
MA
7231Wed Jan 28 11:23:25 1998 Mark Alexander <marka@cygnus.com>
7232
7233 * monitor.c (monitor_vsprintf): New function to handle
7234 printing of large addresses using %A format specifier.
7235 (monitor_printf_noecho, monitor_printf): Use monitor_vsprintf
7236 instead of vsprintf.
7237 * dve3900-rom.c (_initialize_r3900_rom): Use %A instead of %Lx
7238 to print addresses.
7239
4b95e9a1
JM
7240Tue Jan 27 16:14:23 1998 Jason Molenda (crash@bugshack.cygnus.com)
7241
7242 * configure.in (CONFIG_LDFLAGS): Only add -export-dynamic
7243 when using GNU ld.
7244
bf1fb2e0
JM
7245Mon Jan 26 19:07:46 1998 Jason Molenda (crash@bugshack.cygnus.com)
7246
7247 * config/alpha/tm-alphalinux.h (alpha_linux_sigtramp_offset):
7248 Add closing parenthesis. From HJ Lu.
7249
d8365eee
MA
7250Mon Jan 26 17:54:45 1998 Mark Alexander <marka@cygnus.com>
7251
7252 * dve3900-rom.c: Improve performance by using memory commands
7253 that print less fluff. Minor cosmetic changes.
7254 Eliminate compiler warnings.
7255
f03cdc5e
MH
7256Sat Jan 24 23:44:43 1998 Martin M. Hunt <hunt@cygnus.com>
7257
7258 * breakpoint.c (enable_breakpoint): Preserve breakpoint
7259 disposition when enabling a breakpoint.
7260
7261 * symtab.c (find_pc_sect_line): If no symbol information
7262 is found, return correct pc anyway.
7263
9a2e2aba
SS
7264Fri Jan 23 17:26:22 1998 Stan Shebs <shebs@andros.cygnus.com>
7265
7266 * configure.host (i[3456]86-*-osf1mk*, mips-*-mach3*,
7267 ns32k-*-mach3*): Fix file names.
7268 (i[3456]86-*-os9k, m88*-*-mach3*, w65-*-*): Remove config
7269 recognition, no source files for these.
7270 * configure.tgt (powerpc-*-aix4*): Remove config, now identical
7271 to powerpc-*-aix*.
7272 * config/powerpc/{aix4.mh,aix4.mt,tm-ppc-aix4.h}: Remove files,
7273 no longer needed.
7274
1a31a33a
MA
7275Fri Jan 23 16:49:41 1998 Mark Alexander <marka@cygnus.com>
7276
7277 * monitor.c (monitor_write, monitor_readchar): New functions.
7278 * monitor.h (monitor_write, monitor_readchar): Declare.
7279 * dve3900-rom.c: Add support for fast loading on ethernet connections.
7280
77636dea
FF
7281Fri Jan 23 07:47:06 1998 Fred Fish <fnf@cygnus.com>
7282
7283 * config/d10v/tm-d10v.h (CALL_DUMMY): Define as "{ 0 }".
7284 (TARGET_READ_FP): Define to d10v_read_fp rather than d10v_read_sp.
7285 (TARGET_WRITE_FP): Define to d10v_write_fp rather than d10v_write_sp.
7286 (d10v_write_fp, d10v_read_fp): Add prototypes.
7287 * symtab.c (decode_line_1): Remove assignment of sals[0].pc field.
7288 * symfile.c (simple_overlay_update, simple_overlay_update_1):
7289 Ignore the size of overlay sections. This check is redundant anyway.
7290 * printcmd.c (print_frame_args): Ditto.
7291 * valops.c (value_fetch_lazy): Ditto.
7292 * values.c (unpack_long): Ditto.
7293 * d10v-tdep.c (d10v_frame_chain, d10v_frame_find_saved_regs,
7294 d10v_init_extra_frame_info): Fix some minor bugs so the finish command
7295 works properly.
7296 (show_regs): Change num1 and num2 types from "long long" to "LONGEST".
7297 (d10v_read_fp, d10v_write_fp): New functions.
7298 (d10v_push_arguments): Remove unneeded assigns to "val" and "contents".
7299 (d10v_push_arguments): Fix for pointers and structs.
7300 (d10v_extract_return_value): Fix for pointers and chars.
7301
4133151f
SS
7302Tue Jan 20 18:53:18 1998 Stan Shebs <shebs@andros.cygnus.com>
7303
7304 * configure.tgt (i386-*-mach*, m88*-*-mach3*): Remove config
7305 recognition, no source files for these (note that the i386 Mach
9a2e2aba 7306 config is for pre-Mach 3).
4133151f
SS
7307 (mips*-*-mach3*, ns32k-*-mach3*): Fix file names.
7308 * config/mips/mipsel64.mt: Remove, never referenced.
7309
59ae1b0f
SS
7310Mon Jan 19 14:01:28 1998 Stan Shebs <shebs@andros.cygnus.com>
7311
7312 * top.c (print_gdb_version): Restore to original message.
7313
76bf9192
ILT
7314Mon Jan 19 13:34:40 1998 Ian Lance Taylor <ian@cygnus.com>
7315
b5edcb45
ILT
7316 From cgf@bbc.com (Chris Faylor):
7317 * win32-nat.c (child_mourn_inferior): Call ContinueDebugEvent to
7318 let the child exit.
7319 (child_kill_inferior): Respond to all debug events as the child is
7320 terminating.
7321
76bf9192
ILT
7322 * Makefile.in (all): Change gdb dependency to gdb$(EXEEXT).
7323 (uninstall): Add $(EXEEXT) to file name to remove.
7324 (gdb$(EXEEXT)): Rename target from plain gdb.
7325 (gdb1$(EXEEXT)): Rename target from plain gdb1.
7326 (clean, mostlyclean): Add $(EXEEXT) to binary names to remove.
7327
23f38c9e
FL
73281998-01-16 Felix Lee <flee@cygnus.com>
7329
7330 * top.c (print_gdb_version): delete stutter.
7331
ed3e2cfe
NC
7332Thu Jan 15 12:29:13 1998 Nick Clifton <nickc@cygnus.com>
7333
7334 * remote-rdi.c (arm_rdi_open): Patch from Tony.Thompson@arm.com
7335 to prevent spurous error messages on non-ICE targets.
7336
8d9371a5
SS
7337Wed Jan 14 19:27:02 1998 Stan Shebs <shebs@andros.cygnus.com>
7338
7339 * config/mips/{r3900.mt,r3900l.mt,tm-r3900.h,tm-r3900l.h}:
7340 Remove, no longer used.
7341
f27bb101
MM
7342Wed Jan 14 18:11:26 1998 Michael Meissner <meissner@cygnus.com>
7343
7344 Patch from Jim Wilson.
7345 * d30v-tdep.c (d30v_frame_find_saved_regs_offsets): Properly
7346 declare void function before use.
7347
7348 * config/d30v/tm-d30v.h (CALL_DUMMY): Initialize as { 0 }, not {}.
7349
0728afad
FF
7350Tue Jan 13 16:38:48 1998 Fred Fish <fnf@cygnus.com>
7351
7352 * configure.in (--with-mmalloc): Add new configure arg to use the
7353 mmalloc package. Default is to not use it.
7354 (START_INFERIOR_TRAPS_EXPECTED): Define to the integer 2, not
7355 the string "2".
7356 * acconfig.h (USE_MMALLOC, FORCE_MMCHECK): Add #undef.
7357 * configure: Regenerated.
7358 * config.in: Regenerated.
7359 * Makefile.in (MMALLOC_DIR, MMALLOC_SRC): Remove.
7360 (MMALLOC): Set using configure.
7361 (MMALLOC_CFLAGS): Set using configure.
7362
7363 * config/i386/tm-linux.h (sys_quotactl): Define to 1 rather
7364 than just defining it.
7365 * mpw-make.sed: Undefine USE_MMALLOC rather than defining NO_MMALLOC.
7366 * utils.c (NO_MMALLOC): Use USE_MMALLOC instead.
7367 * objfiles.c: ditto.
7368 * defs.h: ditto.
7369
7370 * config/sparc/sun4os4.mh (MMALLOC_CFLAGS): Remove.
7371 * config/m68k/sun3os4.mh (MMALLOC_CFLAGS): Remove.
7372 * config/i386/cygwin32.mh (MMALLOC_CFLAGS): Remove.
7373 * config/alpha/alpha-osf3.mh (MMALLOC_CFLAGS): Remove.
7374 * config/alpha/alpha-osf2.mh (MMALLOC_CFLAGS): Remove.
7375 * gdbserver/Makefile.in (MMALLOC_*): Remove.
7376 * config/rs6000/rs6000.mh (MMALLOC, MMALLOC_CFLAGS): Remove.
7377 * config/rs6000/aix4.mh (MMALLOC, MMALLOC_CFLAGS): Remove.
7378 * config/powerpc/aix4.mh (MMALLOC, MMALLOC_CFLAGS): Remove.
7379 * config/powerpc/aix.mh (MMALLOC, MMALLOC_CFLAGS): Remove.
7380 * config/ns32k/ns32km3.mh (MMALLOC, MMALLOC_CFLAGS): Remove.
7381 * config/mips/mipsm3.mh (MMALLOC, MMALLOC_CFLAGS): Remove.
7382 * config/mips/decstation.mh (MMALLOC, MMALLOC_CFLAGS): Remove.
7383 * config/m88k/cxux.mh (MMALLOC, MMALLOC_CFLAGS): Remove.
7384 * config/i386/xm-windows.h (NO_MMALLOC, NO_MMCHECK): Remove.
7385 * config/i386/i386mk.mh (MMALLOC, MMALLOC_CFLAGS): Remove.
7386 * config/i386/i386m3.mh (MMALLOC, MMALLOC_CFLAGS): Remove.
7387 * config/i386/i386gnu.mh (MMALLOC, MMALLOC_CFLAGS): Remove.
7388 * config/alpha/alpha-osf1.mh (MMALLOC, MMALLOC_CFLAGS): Remove.
7389 * config/alpha/alpha-linux.mh (MMALLOC, MMALLOC_CFLAGS): Remove.
7390
e21fb2ae
MS
7391Mon Jan 12 11:46:51 1998 Michael Snyder (msnyder@cleaver.cygnus.com)
7392
8f05bc95
MS
7393 * config/m68k/tm-m68k.h (REGISTER_VIRTUAL_TYPE): make A0 thru A7
7394 default to void pointer type (so that their default radix is hex).
7395
e21fb2ae 7396 * symtab.c: move rbreak_command from no_class to class_breakpoint
8f05bc95 7397 so it will be listed under "help breakpoints".
e21fb2ae 7398
0a51a5af
SS
7399Sat Jan 10 14:58:04 1998 Stan Shebs <shebs@andros.cygnus.com>
7400
7401 * rdi-share/hostchan.c: Remove gettimeofday declaration.
7402
3a9c3d12
NC
7403Thu Jan 8 11:03:59 1998 Nick Clifton <nickc@cygnus.com>
7404
7405 * remote-rdp.c: Applied patches submitted by Tony.Thompson@arm.com
0a51a5af 7406 to implement the Angel remote debugging interface.
3a9c3d12
NC
7407
7408 * Makefile.in: Add build rules for remote-rdi.c and
0a51a5af 7409 rdi-share/libangsd.a.
2e7eeba9 7410
3a9c3d12
NC
7411 * configure.tgt: Updated from source on branch.
7412 * config/arm/tm-arm.h: Updated from source on branch.
7413 * arm-tdep.c: Updated from source on branch.
7414
0a51a5af
SS
7415 * rdi-share: New directory, RDI library contributed by ARM.
7416
352f9e9d
MA
7417Mon Jan 5 20:21:59 1998 Mark Alexander <marka@cygnus.com>
7418
7419 * monitor.h (MO_PRINT_PROGRAM_OUTPUT): Define.
7420 * monitor.c (monitor_wait): Echo program output.
7421 * dve3900-rom.c (_initialize_r3900_rom): Remove MO_HANDLE_NL flag,
7422 add MO_PRINT_PROGRAM_OUTPUT flag.
7423
4d132e40
DT
7424Mon Jan 5 18:21:11 1998 David Taylor <taylor@texas.cygnus.com>
7425
7426 * top.h (HAVE_SIGSETJMP): define SIGJMP_BUF, SIGSETJMP, and
7427 SIGLONGJMP appropriately based on whether HAVE_SIGSETJMP is
7428 defined.
7429 * top.c (return_to_top_level, catch_errors): use the new macros
7430 * main.c (SET_TOP_LEVEL): ditto.
7431 * config/xm-sysv4.h (HAVE_SIGSETJMP): Define.
7432
3435297a
MA
7433Fri Jan 2 18:48:58 1998 Mark Alexander <marka@cygnus.com>
7434
7435 * configure.in: Double up brackets in shell case pattern.
7436
99fa2de0
MS
7437Fri Jan 2 17:06:05 1998 Michael Snyder (msnyder@cleaver.cygnus.com)
7438
7439 * tracepoint.c (finish_tfind_command): improved algorithm for
7440 deciding when we've "stepped" into a new stack frame.
7441 (map_args_over_tracepoints): loop over tracepoint list "safely",
7442 since list elements may be deleted during loop.
7443 (read_actions): add actions to history list.
7444
6d0b229c 7445For older changes see ChangeLog-97
bd5635a1
RP
7446\f
7447Local Variables:
55d3002f 7448mode: change-log
bd5635a1
RP
7449left-margin: 8
7450fill-column: 74
7451version-control: never
7452End:
This page took 0.774774 seconds and 4 git commands to generate.