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