3 * configure.in: Add nlm subdir to configdirs for alpha-*-netware
5 * defs.h (enum language): Add language_asm.
6 * findvar.c (read_register_bytes read_register_gen
7 write_register_bytes read_register read_register_pid
8 write_register write_register_pid supply_register): Move multi-
9 thread handling down into these routines. Create XXX_pid routines
10 that allow register references to specify the pid.
11 * findvar.c infcmd.c (read_pc read_pc_pid write_pc write_pc_pid
12 read_sp write_sp read_fp write_fp): Move these routines from
13 infcmd to findvar to centralize the whole mess.
14 * i386-nlmstub.c: Portability fixes.
15 * infptrace.c (child_resume): Conditionalize to allow other natives
16 to override it. Remove PIDGET gubbish, it's no longer necessary.
17 * infrun.c (wait_for_inferior): Put registers_changed() before
18 target_wait() to speed up remote debugging.
19 * Replace code that reads registers from other threads with much
20 nicer looking new function calls (see changes to findvar.c).
21 * Don't skip prologues if debugging assembly source.
22 * lynx-nat.c (child_resume): Lynx now needs it's own version of
23 child_resume to handle multi-thread debugging properly.
24 * remote.c: Add O response to get console output from target.
25 * (readchar): Add timeout parameter. Handle SERIAL_EOF and
26 SERIAL_ERROR here to simplify callers.
27 * Change static var timeout to remote_timeout.
28 * (fromhex): Remove unnecessary return -1 at end of routine.
29 * (remote_wait): Turn this into a big switch statement. Add
30 support for O response.
31 * (putpkt): Remove unnecessary handling of SERIAL_EOF/ERROR.
32 * (getpkt): Split getpkt into two parts. read_frame deals with
33 all formatting issues, run-length encoding, and framing. getpkt
34 now handles error recovery, and frame detection.
35 * ser-tcp.c (tcp_readchar): Handle EINTR from read().
36 * ser-unix.c (hardwire_raw): Set CLOCAL so that we ignore modem
37 control. (hardwire_readchar): Handle EINTR from read().
38 * symfile.c (deduce_language_from_filename): Add support for .s
40 * config/nm-lynx.h: Define CHILD_WAIT so that lynx-nat.c can
41 override infptrace's child_wait.
42 * config/rs6000/rs6000lynx.mh: Use xm-rs6000ly.h & nm-rs6000ly.h
44 * config/rs6000/rs6000lynx.mt: Use tm-rs6000ly.h instead of
46 * nlm/gdbserve.c: Portability fixes.
50 * inftarg.c (child_wait): Call proc_wait, not wait.
51 (child_mourn_inferior): Call proc_remove_foreign.
52 * main.c (gdb_init): Call init_proc.
53 * main.c: Provide dummy versions of init_proc, proc_wait, and
54 proc_remove_foreign for the gdb case (the libgdb case provides its
55 own versions of these functions).
56 * Makefile.in (libgdb-files): Add libproc.a.
60 Hardware watchpoints for Linux, from Rick Sladkey
62 * infrun.c (wait_for_inferior) [HAVE_CONTINUABLE_WATCHPOINT]: Add
63 new hardware breakpoint recovery method.
64 * i386v-nat.c (i386_insert_watchpoint,
65 i386_insert_nonaligned_watchpoint, i386_remove_watchpoint,
66 i386_stopped_by_watchpoint) [TARGET_CAN_USE_HARWARE_WATCHPOINT]:
67 New functions to support the 386 hardware debugging registers.
68 * config/i386/nm-linux.h (TARGET_CAN_USE_HARDWARE_WATCHPOINT,
69 HAVE_CONTINUABLE_WATCHPOINT, STOPPED_BY_WATCHPOINT,
70 target_insert_watchpoint, target_remove_watchpoint): Define these
71 macros to use the hardware debugging functions in i386v-nat.c.
75 * Makefile.in: Replace libgdb.a with libgdb-files. Make "all"
80 * target.c, target.h: New variables target_activity_function and
82 * inflow.c, inferior.h: New functions set_sigio_trap and
84 * inftarg.c (child_wait), procfs.c (wait_fd): Call them.
88 * remote-sim.h (sim_verbose): Delete.
89 Document callbacks needed.
90 (sim_*): Change result to void where there isn't one.
91 (sim_open): Clarify argument and error response.
93 (sim_load): Change bfd_handle argument to file name. Clarify result.
94 (sim_create_inferior): Renamed from sim_set_args.
96 (sim_info): Delete printf_fn argument.
97 * remote-sim.c (gdbsim_kill): Add comment describing purpose.
98 (gdbsim_load): Try sim_load first.
99 (gdbsim_create_inferior): Call sim_create_inferior.
100 (gdbsim_open): Handle args == NULL. Update call to sim_open.
101 (gdbsim_close): Call sim_close.
102 (gdbsim_files_info): Update call to sim_info.
103 (gdbsim_ops): Realign comments.
105 * printcmd.c (decode_format): Allow TARGET_PTR_BIT to be non-constant.
109 * xcoffread.c (read_xcoff_symtab): For C_FILE symbols, only use
110 the auxent if the symbol's name is ".file". From David Edelsohn
115 * breakpoint.c (breakpoint_1): Fix typo.
117 * annotate.c (annotate_field_end): Fix typo.
119 * Makefile.in: Move annotate.o from COMMON_OBS to OBS.
121 * Makefile.in (TSSTART): Remove; no longer used.
123 * utils.c (vfprintf_maybe_filtered, vfprintf_unfiltered): Call
124 fputs_unfiltered and exit directly, rather than fatal. The latter
125 calls vfprintf_unfiltered!
127 * gdbtypes.h, gdbtypes.c (can_dereference): New function.
128 * value.h, printcmd.c (print_value_flags): Move from here...
129 * annotate.c: ...to here, and make it use can_dereference.
133 * inflow.c (job_control, attach_flag, generic_mourn_inferior):
134 Remove, needed for both native and cross.
135 * target.c (attach_flag, generic_mourn_inferior): Put here.
136 * utils.c (job_control): Put here.
137 (terminal.h): Don't include anymore.
141 * source.c (find_source_lines): Always use code that was #ifdef
142 BROKEN_LARGE_ALLOCA. Do the cleanup before returning, rather than
143 leaving it on the chain. Reindent much of this function.
144 * config/sparc/{xm-sun4sol2.h,xm-sun4os4.h},
145 config/i386/{xm-sun386.h,xm-i386m3.h,xm-i386mach.h},
146 config/m68k/{sun3os4.h,xm-news.h,xm-hp300hpux.h},
147 config/ns32k/xm-ns32km3.h: Remove all references to
148 BROKEN_LARGE_ALLOCA; with the above change it is no longer needed.
149 * main.c, fork-child.c, many config files: Remove all
150 SET_STACK_LIMIT_HUGE code; with the above changes it should no
153 * symtab.c (lookup_partial_symbol): Use if and abort, not assert.
154 This avoids __eprintf troubles.
158 * main.c (main): Surround in #ifndef MAIN_OVERRIDE. Move
159 initialization code which needs to be called even if we bypass the
160 command line stuff into gdb_init.
161 * utils.c (fputs_unfiltered): Surround in #ifndef
162 FPUTS_UNFILTERED_OVERRIDE.
163 * Makefile.in (libgdb.a): New target.
165 * utils.c: Rearrange I/O stuff a bit so that all output goes
166 through fputs_unfiltered. Use vasprintf; removes arbitrary limit
167 which made %s not work with arbitrarily large strings.
168 * printcmd.c (printf_command): Use printf_filtered, not
169 printf_unfiltered and printf, now that arbitrary limit is gone.
172 * breakpoint.c (watchpoint_check): Remove unused variable b.
173 * stack.c (print_frame_info): Move sp and buf inside #if.
174 * eval.c (evaluate_subexp): Remove unused variables pp,
175 mangle_ptr, ptr, and mangle_tstr.
176 * valarith.c (value_x_binop): Remove unused variables mangle_tstr
178 * symtab.c (lookup_symtab): Put variable copy inside #if.
179 (decode_line_1): Put variable q1 inside #if 0.
180 * target.h: Declare target_link.
181 * infrun.c (wait_for_inferior): Remove unused variables signame.
182 * remote.c (remote_resume): Remove unused variable name.
183 * c-exp.y (parse_number): Parenthesize operand of shift.
184 * dbxread.c (record_minimal_symbol): Parenthesize operand of &&
185 (this is a semantic change, the warning seems to have detected a bug).
186 * dbxread.c (end_psymtab): Move variable p1 inside #if.
187 * coffread.c: Move variable temptype inside #if.
188 * ch-typeprint.c (chill_type_print_base): Remove unused variable
190 * ch-valprint.c: #include typeprint.h and ch-lang.h.
191 (chill_val_print): Remove unused variable in_range.
192 (chill_val_print): Remove statement "length > TYPE_LENGTH (type);".
193 (chill_val_print): Add default case for switch.
194 * stabsread.h: Declare stabsect_build_psymtabs.
195 * os9kread.c (read_minimal_symbols): Make this return void.
196 (os9k_symfile_read): Remove unused variables stb_exist and val.
197 (os9k_symfile_init): Remove unused variable val.
198 (fill_sym): Remove unused variable id.
199 (read_os9k_psymtab): Put variable back_to inside #if 0. Remove
201 Remove unused variable symfile_bfd.
202 #if 0 unused variables lbrac_unmatched_complaint and
203 lbrac_mismatch_complaint.
204 Remove declaration for non-existent function os9k_next_symbol_text.
206 * annotate.c, annotate.h: New files, containing a function for
207 each annotation which outputs it.
208 * Move breakpoints_changed from breakpoint.c to annotate.c.
209 * breakpoint.c, blockframe.c, infrun.c, cp-valprint.c, main.c,
210 printcmd.c, source.c, stack.c, utils.c, valprint.c:
211 Use annotate.c functions to output annotations.
212 * Makefile.in (OBS): Add annotate.o.
216 * hppa-tdep.c (read_unwind_info): Make sure elf_unwind_size and
217 elf_unwind_entries are always initialized.
219 * hppa-tdep.c (skip_trampoline_code): Handle argument relocation
220 stubs which return directly to the caller rather than to the stub
225 * c-exp.y (yyerror): Display a more informative error message.
226 * ch-exp.y (yyerror): Ditto, don't use global yychar.
227 * m2-exp.y (yyerror): Ditto.
231 * inflow.c (job_control): Move definition to front of file.
235 * maint.c (print_section_table): Rename SEC_SHARED_LIBRARY to
236 SEC_COFF_SHARED_LIBRARY to match corresponding change in bfd.
240 * Makefile.in (kdb): Remove old init.c creation commands.
241 * configure.in (sparclite): Match on sparclite*.
242 * sparclite/aload.c (main): Only change section addresses for
243 a.out format object files.
247 * config/i386/go32.mh: Define CC.
251 * gdbserver/Makefile.in: Remove irrelevant definitions and
252 comments inherited from the gdb Makefile.
253 (BFD_DIR, BFD, BFD_SRC, BFD_CFLAGS): Add from gdb Makefile.
254 (VERSION): Update to 4.12.3.
255 (gdbserver): Remove any existing executable first.
256 (distclean, realclean): Remove nm.h.
257 * gdbserver/low-lynx.c: Add Sparc Lynx support.
258 * gdbserver/low-sparc.c, gdbserver/low-sun3.c (sys/wait.h):
259 Don't use absolute pathname.
263 * rs6000-nat.c (vmap_ldinfo): Don't fail if fstat returns an
268 * infrun.c (proceed, normal_stop, wait_for_inferior), breakpoint.c
269 (print_it_normal): Add annotations for the inferior starting and
270 stopping, and for all the various messages related to how it
273 * printcmd.c (do_one_display): Annotate.
274 * stack.c (print_frame_info): Annotate printing of stack frames.
278 * remote.c (get_offsets): Handle case where stub doesn't support
283 Add partial support for g++ code compiled with -fvtable-thunks.
284 * c-valprint.c (c_val_print): Add vtblprint support
286 * cp-valprint.c (cp_is_vtbl_member): A vtable can be an array of
287 pointers (if using thunks) as well as array of structs (otherwise).
288 * cp-valprint.c (vtbl_ptr_name_old, vtbl_ptr_name): Move to global
289 level, and make the latter non-static (so define_symbol can use it).
290 * stabsread.c (define_symbol): If the type being defined is a
291 pointer type named "__vtbl_ptr_type", set the TYPE_NAME to that name.
292 * symtab.h (VTBL_PREFIX_P): Allow "_VT" as well as "_vt".
293 * values.c (value_virtual_fn_field): Handle thunks.
294 * values.c (value_headof): Minor efficiency hack.
295 * values.c (value_headof): Incomplete thunk support. FIXME.
299 * valprint.c (print_longest): Clarify comment about use_local.
300 * printcmd.c, defs.h (print_address_numeric), callers in
301 symmisc.c, symfile.c, stack.c, source.c, remote.c, infcmd.c,
302 cp-valprint.c, core.c, ch-valprint.c, c-valprint.c, breakpoint.c,
303 exec.c: New argument use_local.
304 * source.c (identify_source_line): Use filtered output. Use
305 print_address_numeric.
307 * core.c (memory_error), symtab.c (cplusplus_hint, decode_line_1),
308 language.c (type_error, range_error): Use filtered output.
309 * utils.c (error_begin): Update comment to tell people to use
312 * Makefile.in (HFILES_WITH_SRCDIR): List bfd.h.
313 (HFILES_NO_SRCDIR): List gdbcore.h not gdbcore_h, so as not to get
318 * procfs.c (procfs_wait): Reinstate code which deduces the signal
319 from the fault, #ifndef FAULTED_USE_SIGINFO.
320 * config/sparc/tm-sun4sol2.h: Define FAULTED_USE_SIGINFO.
324 * breakpoint.c (breakpoint_1): Annotate each field of the headers.
325 Explicitly annotate each record.
329 * xcoffexec.c: Reformat to standards and lint.
330 (language.h): Include.
331 (exec_close): Declare arg "quitting".
332 (file_command): Declare arg "from_tty".
333 (map_vmap): Cast xmalloc result to PTR.
334 * rs6000-nat.c: Reformat to standards and lint.
335 (exec_one_dummy_insn): Use char array for saved instruction.
336 (fixup_breakpoints): Declare.
337 (vmap_ldinfo): Be more informative in fatal error messages.
338 (xcoff_relocate_symtab): Define to return void.
339 * xcoffsolib.h: Reformat to standards, improve comments.
340 * config/rs6000/nm-rs6000.h (xcoff_relocate_symtab): Declare.
344 * utils.c, defs.h (error_begin): New function.
345 (quit): Print annotation before printing the error message.
346 * main.c (return_to_top_level): Print annotation before doing the
348 * symtab.c (decode_line_1): Call error not warning and then
349 return_to_top_level. Call error_begin and printf_unfiltered
350 rather calling warning (before calls to return_to_top_level).
351 * core.c (memory_error): Use error_begin, printf_unfiltered,
352 print_address_numeric and return_to_top_level instead of error.
353 Cleans up a FIXME-32x64.
354 * language.c (type_error, range_error): Call error_begin
355 not just target_terminal_ours.
357 * dbxread.c (stabsect_build_psymtabs): Assign to sym_stab_info
358 directly, rather than via DBX_SYMFILE_INFO. A cast on the left
359 side of an assignment is non-portable.
361 * utils.c (query): Change syntax of query annotations to be
362 consistent with other input annotations.
363 (prompt_for_continue): Likewise for prompt-for-continue annotation.
367 * mdebugread.c (psymtab_to_symtab_1): Do not call sort_blocks
369 * mips-tdep.c (mips_skip_prologue): Handle prologues for functions
370 that have a stack frame size of 32k or larger (from Paul Flinders).
375 * lynx-nat.c (CANNOT_STORE_REGISTER): Add a fallback definition
376 for Lynx platforms that need it.
377 * config/nm-lynx.h (__LYNXOS): Define if not already defined.
381 * procfs.c (procfs_wait): Use the signal from the pr_info rather
382 than trying to deduce it from the fault.
386 * printcmd.c (print_address_symbolic): Initialize name to empty
387 string to avoid core dump if lookup fails.
388 * remote-e7000.c (printf_e7000debug): Error if target not open.
390 Tue Apr 26 22:45:24 1994 Stu Grossman (grossman at cygnus.com)
392 * i386-nlmstub.c: Update to be more in line with PIN stub.
393 * nlm/gdbserve.c (putDebugChar): Install bug fix from i386-nlmstub.
394 * (hex2mem): Init ptr.
395 * General cleanups to use ConsolePrintf, standard prologues, etc...
397 Tue Apr 26 10:23:04 1994 Stu Grossman (grossman at cygnus.com)
399 * i386-nlmstub.c: More changes to be compatible with remote.c.
401 * dbxread.c: Move a bunch of strncmps out of process_one_symbol
402 into (the far less frequently called) dbx_symfile_read.
404 * i386-nlmstub.c: An interim version till we get PIN for the x86.
406 Tue Apr 26 09:50:45 1994 Stu Grossman (grossman at cygnus.com)
408 * dbxread.c (record_minimal_symbol): Record the section
409 associated with the symbol to make dynmaic relocation work.
410 * (dbx_symfile_read, process_one_symbol): Fixes to work around
411 Solaris brain-damage which don't apply to relocatable object
413 * (stabsect_build_psymtabs): New routine to read stabs out of an
414 arbitrarily named section.
415 * nlmread.c (nlm_symtab_read): Read ALL syms from the NLM, not just
417 * (nlm_symfile_read): Call stabsect_build_psymtabs to read the
418 stabs out of the nlm.
419 * partial-stabs.h (cases 'f' & 'F'): Fixes to work around Solaris
420 brain-damage which don't apply to relocatable object files.
421 * remote.c (putpkt): Improve error reporting and error handling.
422 * (get_offsets): Temporary kludge to force data & bss sections to
423 have the same relocation.
424 * stabsread.c (define_symbol, scan_file_globals): Record section
429 * breakpoint.c (breakpoint_1): Annotate each field of output. Add
434 * infrun.c (wait_for_inferior): Move call to flush_cached_frames
435 to after call to target_wait. This means that flush_cached_frames
436 can call target_terminal_ours if it wants to.
437 * infrun.c (wait_for_inferior) [HAVE_NONSTEPPABLE_WATCHPOINT]: Add
438 comment about why the code is dubious.
440 * stabsread.c (read_type): Call read_type, not nonexistent
445 * remote-os9k.c (rombug_fetch_registers): set trace mode
447 * remote-os9k.c (rombug_read_inferior_memory): cache data in
449 * os9kread,c (read_os9k_psymtab): process file symbol to truncate
451 * os9kread.c (os9k_read_ofile_symtab): proper casting of args
452 passed to process_one_symbol.
453 * stabsread.c (read_type): process os9k functio prototype.
457 * solib.c (symbol_add_stub): If so->textsection is NULL, don't
462 * utils.c (prompt_for_continue): Annotate prompt.
463 (query): Annotate query.
464 * printcmd.c (print_frame_args): Change syntax of argument
465 annotation to make name and value part of a single group of
466 annotations, not two separate groups.
467 * cp-valprint.c (cp_print_value_fields): Likewise for fields.
468 * valprint.c (val_print_array_elements): Change syntax of
469 annotation to be more concise.
470 * main.c, defs.h (command_line_input): New argument tells what
471 string to include in the annotations.
472 * symtab.c (decode_line_2), main.c (read_command_lines,
473 command_loop): Change callers.
475 * breakpoint.c (watch_command): Use (CORE_ADDR)0, not NULL, for
477 * blockframe.c (find_frame_addr_in_frame_chain): Likewise.
479 * printcmd.c (output_command): Annotate things we print here too.
480 * printcmd.c (print_command_1): Add "value-history-value" annotation.
481 * Move declaration of print_value_flags from defs.h to value.h.
482 * main.c (command_line_input): Call wrap_here as well as gdb_flush.
486 * dbxread.c (read_dbx_dynamic_symtab): Reinstall support for sun3,
487 BFD handles sun3 dynamic relocations now.
488 * elfread.c (elf_symtab_read, elf_symfile_read): Handle dynamic
493 * printcmd.c (print_command_1): Annotate the top-level expressions
495 (print_frame_args): Annotate each argument.
496 * printcmd.c, defs.h (print_value_flags): New function.
497 * cp-valprint.c (cp_print_value_fields): Annotate each field.
498 * valprint.c (val_print_array_elements): Annotate each array element.
502 * findvar.c (read_var_value): Handle LOC_REPARM_ADDR case correctly,
503 the register contains a pointer to the type, not the type itself.
507 * main.c (main): Accept --annotate=N option and make --fullname
508 the same as --annotate=1.
509 (command_line_input): Print annotatation before and after prompt.
510 * blockframe.c (flush_cached_frames): Print annotation.
511 * Rename frame_file_full_name to annotation_level and move it from
513 * source.c (identify_source_line): If annotation_level > 1,
514 change output format.
515 * breakpoint.c: Print annotation whenever a breakpoint changes.
516 * main.c: New variable server_command.
517 (command_line_input): Parse "server " and set server_command.
518 (dont_repeat): Check server_command.
522 * xcoffread.c (xcoff_next_symbol_text): Don't return before
523 updating raw_symbol and symnum. Return a value in the case where
526 * dstread.c, coffread.c: Don't define pending_blocks; buildsym.c
528 * parse.c: Don't define block_found; it is defined in symtab.c.
529 * parser-defs.h: Add comment regarding block_found.
533 * hppa-tdep.c (internalize_unwind_info): Delete unused indexp
538 * dbxread.c (read_dbx_dynamic_symtab): Relocate BFD symbols by
539 section vma. Do not read dynamic relocs for sun3 executables to
540 avoid BFD assertion message.
544 * nm-hppab.h (KERNEL_U_ADDR): Define.
545 (FIVE_ARG_PTRACE): Likewise.
546 (CANNOT_STORE_REGISTER): Likewise.
547 * nm-hppah.h (KERNEL_U_ADDR): Define.
548 (FIVE_ARG_PTRACE): Likewise.
549 (CANNOT_STORE_REGISTER): Likewise.
550 (NEED_TEXT_START_END): Likewise.
552 * tm-hppah.h (NEED_TEXT_START_END): Delete definition.
553 * xm-hppah.h (KERNEL_U_ADDR): Delete definition.
554 (FIVE_ARG_PTRACE): Likewise.
555 * xm-hppab.h (KERNEL_U_ADDR): Delete definition.
556 (FIVE_ARG_PTRACE): Likewise.
558 * hppa-tdep.c (read_unwind_info): Make static.
559 (restore_pc_queue): Indirect through the target vector to
560 reload the register state.
564 * paread.c (compare_unwind_entries): Delete function. It's been
565 moved into hppa-tdep.c.
566 (read_unwind_info): Likewise.
567 (pa_symfile_read): No longer call read_unwind_info. The unwind
568 tables will be read in as they are needed.
570 * hppa-tdep.c (compare_unwind_entries): New function.
571 (read_unwind_info, internalize_unwinds): Likewise.
572 (find_unwind_entry): Read in unwind information on demand.
576 * source.c (DIRNAME_SEPARATOR): New macro, replaces all references
577 to : in search path processing.
578 * defs.h (qsort): Rename argument in prototype.
579 * symtab.h (SAYMBOL_VALUE): Rename value field, avoids bugs in
581 * breakpoint.c, exec.c, mdebugread.c, mipsread.c, xcoffexec.c
582 (false): Eliminate usages.
586 * h8500-tdep.c (initialize_h8500_tdep, large_command):
587 All references to value changed to value_ptrlage_command is now
589 All references to value changed to value_ptr.
590 * remote-e7000.c (e7000_wait): Use target_waitstatus and SETSTOP
591 * remote-hms.c (hms_wait): Timeout after five seconds.
592 * ser-go32.c (dosasync_read): Poll if timeout < 0.
593 * config/tm/tm-h8500.h (BEFORE_MAIN_LOOP_HOOK): Deleted.
594 * config/sh/tm-sh.h (BREAKPOINT): Is now sleep opcode.
598 * procfs.c (procfs_wait): Protect watchpoint code with appropriate
600 (procfs_set_watchpoint, procfs_stopped_by_watchpoint): Likewise.
604 * breakpoint.h (enum bptype): Add bp_hardware_watchpoint and
605 bp_watchpoint_scope breakpoints.
606 (struct breakpoint): Add val_chain and related_breakpoint fields
607 for use by watchpoints.
609 * breakpoint.c (within_scope): Delete. No longer used.
610 (TARGET_CAN_USE_HARDWARE_WATCHPOINT): Provide default definition.
611 (target_{remove,insert}_watchpoint): Likewise.
612 (can_use_hardware_watchpoint): New function.
613 (remove_breakpoint): New function to remove a single breakpoint
614 or hardware watchpoint.
615 (insert_breakpoints): Handle insertion of hardware watchpoints.
616 Store a copy of the value chain derived from the watchpoint
618 (remove_breakpoints): Simplify by using remove_breakpoint.
619 (delete_breakpoint): Likewise.
620 (watchpoint_check): Delete the watchpoint and watchpoint scope
621 breakpoints when the watchpoint goes out of scope. Save & restore
622 the current frame after checking watchpoints.
623 (breakpoint_init_inferior): Likewise (restarting the program
624 makes all local watchpoints go out of scope).
625 (bpstat_stop_status): Handle hardware watchpoints much like normal
626 watchpoints. Delete the watchpoint and watchpoint scope breakpoint
627 when the watchpoint goes out of scope. Remove and reinsert all
628 breakpoints before returning if we stopped when a hardware watchpoint
630 (watch_command): Use a hardware watchpoint when possible. If
631 watching a local expression, build a scope breakpoint too.
632 (map_breakpoint_numbers): Also call given function for any
634 (disable_breakpoint): Never disable a scope breakpoint.
635 (enable_breakpoint): Handle hardware breakpoints much like normal
636 breakpoints, but recompute the watchpoint_scope breakpoint's
637 frame and address (if we have an associated scope breakpoint).
638 (read_memory_nobpt): Handle hardware watchpoints like normal
639 watchpoints. When necessary handle watchpoint_scope breakpoints.
640 (print_it_normal, bpstat_what, breakpoint_1, mention): Likewise.
641 (clear_command, breakpoint_re_set_one, enable_command): Likewise.
642 (disable_command): Likewise.
644 * blockframe.c (find_frame_addr_in_frame_chain): New function.
645 Extern prototype added to frame.h
647 * infrun.c (wait_for_inferior): Set current_frame and select
648 a frame before checking if we stopped due to a hardare watchpoint
649 firing. Handle stepping over hardware watchpoints.
650 (normal_stop): Remove unnecessary call to select_frame.
652 * value.h (value_release_to_mark): Declare.
653 * values.c (value_release_to_mark): New function.
655 * procfs.c (procfs_wait): Add cases for hardware watchpoints.
656 (procfs_set_watchpoint, procfs_stopped_by_watchpoint): New functions.
658 * hppab-nat.c (hppa_set_watchpoint): New function.
660 * config/pa/nm-hppab.h (STOPPED_BY_WATCHPOINT): Define.
661 (HAVE_STEPPABLE_WATCHPOINT): Define.
662 (TARGET_CAN_USE_HARDWARE_WATCHPOINT): Define.
663 (target_{insert,delete}_watchpoint): Define.
665 * config/mips/nm-irix4.h (TARGET_CAN_USE_HARDWARE_WATCHPOINT): Define.
666 (STOPPED_BY_WATCHPOINT, HAVE_NONSTEPPABLE_WATCHPOINT): Likewise.
667 (target_{insert,remove}_watchpoint): Likewise.
669 Mon Apr 11 19:21:27 1994 Stu Grossman (grossman at cygnus.com)
671 * xcoffread.c (read_xcoff_symtab): Ignore symbols of class C_EXT,
672 smtyp XTY_LD, sclass XMC_DS (external data segment label). They
673 often have the same names as debug symbols for functions, and
674 confuse lookup_symbol().
678 * remote.c: Around redefinition of PBUFSIZE, adjust whitespace.
679 * config/pa/tm-hppa.h (REGISTER_BYTES): Use 4 rather than
680 REGISTER_RAW_SIZE (1).
681 Together these changes work around a bug in HP's compiler. Both
682 seem to be necessary.
686 * paread.c (pa_symtab_read): Handle ST_STUB symbols and symbols
687 with scope SS_EXTERNAL. ST_ENTRY symbols in dynamic executables
688 are type mst_solib_trampoline.
692 * config/m68k/es1800.mt: Change comments.
696 * config/m68k/monitor.mt (TDEPFILES): Don't include remote-es.o.
698 Fri Apr 8 15:35:30 1994 Stu Grossman (grossman at cygnus.com)
700 * lynx-nat.c: Restore regmap structure for SPARC. It's needed
705 * values.c (unpack_long): Remove obsolete comment about using a
708 * symfile.c (symbol_file_command): Add comments about command syntax.
713 * infrun.c (IN_SOLIB_TRAMPOLINE): Correct comment, trampolines
714 are in the .plt section.
715 * minsyms.c (lookup_solib_trampoline_symbol_by_pc,
716 find_solib_trampoline_target): New functions for handling
717 stepping into -g compiled shared libraries.
718 * symtab.h (lookup_solib_trampoline_symbol_by_pc,
719 find_solib_trampoline_target): Add prototypes.
720 * config/tm-sunos.h (IN_SOLIB_TRAMPOLINE, SKIP_TRAMPOLINE_CODE):
721 Define to handle stepping into -g compiled shared libraries.
722 * config/tm-sysv4.h (SKIP_TRAMPOLINE_CODE): Define to handle
723 stepping into -g compiled shared libraries.
727 * configure.in: Add mips-*-sysv4* support.
728 * config/mips/mipsv4.mh, config/mips/mipsv4.mt,
729 config/mips/tm-mipsv4.h, config/mips/xm-mipsv4.h, mipsv4-nat.c:
730 New files for MIPS SVR4 support.
731 * Makefile.in: Update for new mipsv4 files.
732 * alpha-tdep.c (heuristic_proc_desc, find_proc_desc): Use
733 read_next_frame_reg to obtain the frame relative stack pointer.
734 * mips-tdep.c (heuristic_proc_desc): Use read_next_frame_reg to
735 obtain the frame relative stack pointer.
736 * mdebugread.c (parse_partial_symbols, psymtab_to_symtab1):
737 Handle stStatic and stStaticProc symbols in stabs-in-ecoff output
738 by entering them into the minimal symbol table.
739 * printcmd.c (print_scalar_formatted): Do not try to unpack to
740 a long for float formats.
741 * solib.c: Include "elf/mips.h" only if DT_MIPS_RLD_MAP does not
742 get defined in <link.h>.
743 * solib.c (solib_add): Add shared library sections to the section
744 table of the target before adding the symbols.
745 * partial-stab.h: Relocate static and global functions.
746 * dbxread.c (read_dbx_symtab): Remove unused variable
747 end_of_text_address. Relocate text_addr when passing it
750 For Alpha OSF/1 targets, enable gdb to set breakpoints in shared
751 library functions before the executable is run. Retrieve dynamic
752 symbols from stripped executables.
753 * mipsread.c (read_alphacoff_dynamic_symtab): New function.
754 * mipsread.c (mipscoff_symfile_read): Use it. Issue warning message
755 if no debugging symbols were found.
756 * alpha-tdep.c (alpha_skip_prologue): Silently return the unaltered
757 pc if memory at the pc is not accessible and GDB_TARGET_HAS_SHARED_LIBS
759 * config/alpha/nm-alpha.h (GDB_TARGET_HAS_SHARED_LIBS): Define,
760 OSF/1 has shared libraries.
764 * dbxread.c (read_dbx_dynamic_symtab): Adjust for recent changes
765 to BFD handling of dynamic symbols.
769 * hppa-tdep.c (hppa_fix_call_dummy): If FUN is a procedure label,
770 then gets its real address into FUN and its GOT/DP value into %r19.
772 * tm-hppa.h (CALL_DUMMY): Use %r20, not %r19 as a temporary.
774 * hppa-tdep.c (frameless_function_invocation): If no unwind
775 descriptor was found, then assume this was not a frameless
777 (frame_saved_pc): If the saved PC is in a linker stub, then
778 return the return address which the linker stub will return to.
780 * xm-hppab.h: Never define USG.
781 * xm-hppah.h: Always define USG.
785 * values.c (unpack_long, value_from_longest),
786 valarith.c (value_binop): Allow TYPE_CODE_RANGE.
790 * symfile.c (deduce_language_from_filename): .cpp is a C++ extension.
794 For SVR4 targets, enable gdb to set breakpoints in shared
795 library functions before the executable is run.
796 * elfread.c (elf_symtab_read): Handle symbols for shared library
798 * sparc-tdep.c (in_solib_trampoline): Renamed to in_plt_section
799 and moved to objfiles.c.
800 * objfiles.c (in_plt_section): Moved to here from sparc-tdep.
801 * config/tm-sysv4.h (IN_SOLIB_TRAMPOLINE): Use new in_plt_section.
802 * config/sparc/tm-sun4sol2.h (IN_SOLIB_TRAMPOLINE): Removed,
803 the new generic definition from tm-sysv4.h works for Solaris.
807 * elfread.c (elf_symtab_read): Change storage_needed,
808 number_of_symbols and i to long. Rename get_symtab_upper_bound to
809 bfd_get_symtab_upper_bound. Check for errors from
810 bfd_get_symtab_upper_bound and bfd_canonicalize_symtab.
811 * nlmread.c (nlm_symtab_read): Same changes.
815 * xcoffread.c (xcoff_next_symbol_text): New function.
816 (read_xcoff_symtab): Set next_symbol_text_func to it.
817 Move raw_symbol outside of read_xcoff_symtab.
819 * remote.c (getpkt): Remove unused "out" label.
823 * breakpoint.c (print_it_normal): Allow GDB to notify the user
824 about more than one watchpoint being triggered.
828 * config/m68k/tm-dpx2.h: Include tm-m68k.h not nonexistent tm-68k.h.
832 * blockframe.c (find_pc_partial_function): mst_file_text
833 symbols do not live in the shared library transfer table.
834 * ch-exp.y (decode_integer_value, match_character_literal,
835 match_bitstring_literal): Guard tolower calls with isupper,
836 tolower on old BSD systems blindly subtracts a constant.
837 * dbxread.c (read_ofile_symtab): Check for __gnu_compiled_* as
838 well when determining the producer of the object file.
839 * mdebugread.c (has_opaque_xref): New function to check for
840 cross reference to an opaque aggregate.
841 * mdebugread.c (parse_symbol, parse_partial_symbols): Do not
842 enter typedefs to opaque aggregates into the symbol tables.
843 * mdebugread.c (parse_external): Remove skip_procedures argument,
844 it has always been 1. Remove code that handled stProc symbols,
845 it was never executed and was wrong, as the index of a
846 stProc symbol points to the local symbol table and not to the
847 auxiliary symbol info. Update caller.
848 * mdebugread.c (parse_partial_symbols): Do not enter external
849 stProc symbols into the partial symbol table, they are already
850 entered into the minimal symbol table.
851 * config/i386/tm-symmetry.h: Clean up, it is now only used for Dynix.
852 Remove all conditionals and definitions for ptx.
853 I386_REGNO_TO_SYMMETRY moved to here from symm-tdep.c.
854 Fix addresses of floating point registers in REGISTER_U_ADDR.
855 STORE_STRUCT_RETURN now handles cc and gcc conventions.
856 FRAME_CHAIN, FRAMELESS_FUNCTION_INVOCATION, FRAME_SAVED_PC,
857 IN_SIGTRAMP, SIGCONTEXT_PC_OFFSET defined to make backtracing through
858 signal trampoline code work.
859 * config/i386/xm-symmetry.h: Clean up, it is now only used for Dynix.
860 Remove all conditionals and definitions for ptx.
861 Remove KDB definitions.
862 * symm-nat.c (store_inferior_registers): Fetch registers before
863 storing them to obtain valid floating point control registers.
865 * symm-nat.c (print_1167_control_word): Dynix 3.1.1 defines
866 FPA_PCR_CC_C0 and FPA_PCR_CC_C1, avoid duplicate case value.
867 * symm-nat.c (fetch_inferior_registers, child_xfer_memory):
869 * symm-nat.c (child_resume): Update type of `signal' parameter.
870 * symm-tdep.c (I386_REGNO_TO_SYMMETRY): Moved to tm-symmetry.h.
874 * hppa-tdep.c (hppa_fix_call_dummy): Use an alternate method for
875 calling import stubs for functions in shared libraries.
879 * ch-exp.y: Implement SIZE(mode_name) and SIZE(expression).
881 * ch-lang.c (chill_is_varying_struct): Magic string is
882 was "<var_length>" is now "__var_length" (more portable).
886 * remote.c (getpkt): If we get a timeout, actually retry rather
887 than just giving up the first time it happens.
888 * remote.c: Document sequence numbers.
889 (remote_store_registers): Change syntax of 'P' request so that it
890 never looks like a sequence number.
894 * os9kread.c (record_minimal_symbol): add section_offset to
895 relocate minimal symbol table.
896 * os9kread.c (read_minimal_symbols): ditto.
897 * os9kread.c (os9k_symfile_init): increase size of dbg and stb
899 * os9kread.c (read_os9k_psymtab): if there's no dbg file, just
900 return. Also if file addr is 0 leave it 0, not to relocate.
901 * remote-os9k.c (_initialize_remote_os9k): add 'set remotexon',
902 'set remotexoff' and 'set remotelog' commands.
906 * remote.c (remote_store_registers): Add 'P' request to set an
908 (remote_write_bytes, remote_read_bytes): Use %lx, not %x, to print
913 * config/sparc/tm-sparc.h: Define USE_REGISTER_NOT_ARG.
914 * stabsread (define_symbol): If USE_REGISTER_NOT_ARG, go back to
915 combining all 'p' and 'r' pairs into a LOC_REGPARM.
917 * command.c (do_setshow_command, case var_string): Never add a
918 space to the end of the string.
919 * NEWS: Document this change.
920 * .gdbinit: Add a space to the "set prompt" command.
924 * m3-nat.c, i386m3-nat.c, config/i386/i386m3.mh: Many minor
925 changes to make it compile (it doesn't link yet).
927 * buildsym.c (start_subfile, patch_subfile_names), demangle.c
928 (set_demangling_style, set_demangling_command): Use savestring not
929 strdup. We were not dealing properly with a NULL return from
930 strdup, and were not declaring strdup (the system header may or
933 * valprint.c (val_print): Remove inaccurate comment about what
934 types can be stub types.
936 * config/i386/ptx.mh (XDEPFILES): Add coredep.o. Delete infptrace.o.
937 * symm-nat.c (child_wait, _initialize_symm_nat, kill_inferior):
938 Supply alternate version if ATTACH_DETACH is not defined.
939 * ptx4-nat.c, config/i386/{nm-ptx4.h, ptx4.mh, ptx.mt, ptx4.mt,
940 tm-ptx.h, tm-ptx4.h, xm-ptx.h, xm-ptx4.h}: New files.
941 * configure.in: Recognize i[34]86-sequent-sysv4* host.
945 * hppa-tdep.c (skip_prologue): Do nothing if not at the beginning
947 (skip_trampoline_code): Rewrite and add support for argument
948 relocation stubs stubs, import/export stubs, calls through
949 "_sr4export" and cascaded trampolines.
951 * hppa-tdep.c (skip_prologue): Return "pc" not zero
952 if no unwind descriptor is found.
954 * tm-hppa.h (NUM_REGS): Bump to 128 registers.
955 (REGISTER_NAMES): Add entries for "right-half" of FP registers.
956 (REGISTER_RAW_SIZE, MAX_REGISTER_RAW_SIZE): Do not treat FP regs
957 differently. All registers are four bytes.
958 (REGISTER_BYTES, REGISTER_BYTE): Simplify now that all registers are
960 (REGISTER_VIRTUAL_TYPE): Use builtin_type_float for all FP regs.
962 * hppa-tdep.c (pa_print_fp_reg): Update to print even numbered FP
963 registers as both single and double values (fetching 2nd 32bit half
964 as necessary). Annotate each register printed with its precision.
966 * paread.c (read_unwind_info): Fix off-by-one error.
970 * main.c (complete_command): Deal with it if arg is NULL.
974 * config/mips/tm-mips.h (SETUP_ARBITRARY_FRAME): Revise comment
975 regarding using the PC--using the PC is necessary and all the
976 FIXME comments in the world won't make it go away.
978 * valops.c (value_at, value_at_lazy): Give error if we dereference
980 * gdbtypes.h: Fix comments regarding TYPE_CODE_VOID.
981 * stabsread.c: Use 1, not 0, for TYPE_LENGTH of void types.
983 * stabsread.c (patch_block_stabs): Add comment about what happens
984 if the definition is in another compilation unit from the stab.
986 * dbxread.c (end_psymtab): Add comment about empty psymtabs.
990 * main.c (complete_command): New command, from Rick Sladkey
992 (symbol_completion_function): Don't declare rl_point and
993 rl_line_buffer; they are now declared in readline.h.
994 (show_commands): Don't declare history_base; it is declared in
996 * command.c (lookup_cmd): Don't delete trailing whitespace.
997 Reverts change of 14 May 1989.
999 Wed Mar 23 16:14:52 1994 Stu Grossman (grossman at cygnus.com)
1001 * minsyms.c (prim_record_minimal_symbol): Move section deduction
1002 code from prim_record_minimal_symbol_and_info() to here. Callers
1003 of the latter can legitimately supply a section number of -1.
1007 * gdbtypes.h, gdbtypes.c: Add comments regarding whether static
1008 member functions have an element in args for a (nonexistent) this
1013 * config/pa/tm-hppao.h (NO_PC_SPACE_QUEUE_RESTORE): Define.
1015 * hppa-tdep.c (hppa_pop_frame): Do not restore the PC space
1016 queue if NO_PC_SPACE_QUEUE_RESTORE is defined.
1018 * stabsread.c (REG_STRUCT_HAS_ADDR): Accept additional argument
1019 for the structure's type. All callers changed.
1021 * valops.c (call_function_by_hand): Check REG_STRUCT_HAS_ADDR
1022 for each structure argument rather than assuming it's either
1023 true or false for all structure arguments.
1025 * config/pa/tm-hppa.h (REG_STRUCT_HAS_ADDR): Depend only
1026 on the length structure passed, not the compiler used.
1028 * config/sparc/tm-sparc.h (REG_STRUCT_HAS_ADDR): Accept additional
1029 argument for the structure's type.
1033 * values.c (set_internalvar): Don't set var->value until we are
1034 sure there won't be an error().
1036 * remote.c (get_offsets): Reinstate comment which was in
1037 remote_wait about use of SECT_OFF_TEXT and so on.
1041 * symmisc.c (maintenance_check_symtabs): New function to check
1042 consistency of psymtabs and symtabs.
1043 * symtab.h (maintenance_check_symtabs): Add prototype.
1044 * maint.c: Add new `maint check-symtabs' command.
1045 * config/i386/tm-i386aix.h, config/i386/tm-sun386.h,
1046 config/i386/tm-symmetry.h (REGISTER_CONVERT_TO_RAW): Fix typo.
1047 * config/i386/tm-symmetry.h: Make comment inside #if 0 a real
1049 * config/i386/tm-symmetry.h (STORE_STRUCT_RETURN): Cast argument
1050 to write_memory to avoid warnings from gcc.
1051 * config/i386/xm-symmetry.h: Add missing #endif.
1052 * config/i386/nm-symmetry.h (NO_PTRACE_H): Add for Dynix.
1053 * config/i386/symmetry.mt (TDEPFILES): Add i386-tdep.o.
1054 * config/i386/symmetry.mh (NAT_FILE, NATDEPFILES): Add.
1058 * hppa-tdep.c (hppa_fix_call_dummy): Use value_ptr.
1059 (hppa_push_arguments): Likewise.
1061 Mon Mar 21 11:02:51 1994 Stu Grossman (grossman at cygnus.com)
1063 * alpha-tdep.c: Gobs of changes (many imported from mips-tdep) to
1064 improve remote debugging efficiency. Also fixed problems with
1065 doing function calls for programs with no entry points.
1066 * infcmd.c (run_stack_dummy): Use CALL_DUMMY_ADDRESS instead of
1067 entry_point_address.
1068 * inferior.h (PC_IN_CALL_DUMMY): ditto.
1069 * mdebugread.c (parse_symbol, parse_procedure, parse_external,
1070 parse_lines): Pass section_offsets info to these routines so that
1071 we can relocate symbol table entries upon readin.
1072 * (psymtab_to_symtab_1): Set symtab->primary to tell
1073 objfile_relocate to do relocations for our symbols.
1074 * (ecoff_relocate_efi): New routine to relocate adr field of PDRs
1075 (which hang off of the symbol table).
1076 * Use prim_record_minimal_symbols_and_info instead of
1077 prim_record_minimal_symbols to supply section info to make minimal
1078 symbol relocations work.
1079 * minsyms.c (prim_record_minimal_symbols_and_info): If section is
1080 -1, try to deduce it from ms_type.
1081 * objfiles.c (objfile_relocate): Use ALL_OBJFILE_SYMTABS where
1082 appropriate. Handle relocation of MIPS_EFI symbols special. Also,
1083 add code to relocate objfile->sections data structure.
1084 * remote.c (get_offsets): Use new protocol message to acquire
1085 section offsets from the target.
1086 * (remote_wait): Get rid of relocation stuff. That's all handled
1087 by objfile_relocate now.
1088 * config/alpha/alpha-nw.mt (TM_FILE): Use tm-alphanw.h.
1089 * config/alpha/tm-alpha.h: Define CALL_DUMMY_ADDRESS, and
1091 * config/alpha/tm-alphanw.h: DECR_PC_AFTER_BREAK=0, VM_MIN_ADDRESS=0.
1095 * sparc-tdep.c (sparc_frame_find_save_regs): Use REGISTER_RAW_SIZE
1099 * sp64-tdep.c (target_ptr_bit, set_target_ptr_bit): Deleted,
1100 can no longer set this at run time.
1101 * config/sparc/sp64.mt (SIMFILES): Use remote-sim.o now.
1102 (TM_CLIBS): Define to -lm, the simulator uses the sqrt() function.
1103 * config/sparc/tm-sp64.h (FPS_REGNUM, CPS_REGNUM): Define (so
1104 sparc-tdep.c compiles).
1105 (TARGET_PTR_BIT): Must be a constant now, fix at 64.
1110 * config/m68k/{cisco.mt,tm-cisco.h}: New files.
1111 * Makefile.in (ALLPARAM, ALLCONFIG): Add them.
1112 * configure.in: Recognize m68*-cisco*-*.
1114 * Makefile.in (TAGS): Use variables directly, rather than using
1115 find, to locate TM_FILE, XM_FILE, and NAT_FILE. This is faster
1116 and means that these filenames no longer need be unique across all
1117 the config/* directories.
1118 * configure.in: Put the config/*/ into TM_FILE, etc.
1120 * m68k-stub.c (computeSignal): Return SIGFPE, not SIGURG, for chk
1121 and trapv exceptions.
1123 * target.h (struct section_table), objfiles.h (struct obj_section):
1124 Change name of field sec_ptr to the_bfd_section. More mnemonic
1125 and avoids the (sort of, for the ptx compiler) name clash with
1126 the name of the typedef.
1127 * exec.c, xcoffexec.c, sparc-tdep.c, rs6000-nat.c, osfsolib.c,
1128 solib.c, irix5-nat.c, objfiles.c, remote.c: Change users.
1130 * utils.c: Include readline.h.
1131 * Makefile.in (utils.o): Add dependency.
1133 * remote.c (getpkt): Add support for run-length encoding.
1137 * utils.c (prompt_for_continue): Call readline, not gdb_readline.
1141 * dstread.c (record_minimal_symbol): New arg objfile. Pass it to
1142 prim_record_minimal_symbol.
1145 * regex.c (EXTEND_BUFFER): Adjust pointers within buffer by
1146 computing their offset from the start of the old buffer and adding
1147 to the new buffer, rather than by assuming we can add the
1148 difference between the old buffer and the new buffer (it might not
1149 fit in an int). Merge in cosmetic differences from emacs regex.c
1150 version of this macro.
1154 * Makefile.in (install-only): Fix use of program_transform_name.
1158 * printcmd.c: Remove "set print fast-symbolic-addr off" command.
1159 The bug which it worked around was fixed on 25 Feb 94 in coffread.c,
1160 so I'm nuking the command.
1161 * symtab.c (find_addr_symbol): Comment out, no longer used.
1163 * main.c (main): Don't init_source_path for the -cd argument. Now
1164 that source_path doesn't contain the current_directory from when
1165 GDB started up, init_source_path is no longer useful (and is
1166 harmful because it clobbers a source_path set in $HOME/.gdbinit).
1168 * TODO: Remove item about line numbers being off. It is useless
1169 and confusing without a reproducible test case (it mentions
1170 proceed(), but I was able to step through proceed without trouble).
1174 For Sunos 4.x targets, enable gdb to set breakpoints in shared
1175 library functions before the executable is run. Retrieve dynamic
1176 symbols from stripped executables.
1177 * symtab.h (minimal_symbol_type): Add mst_solib_trampoline type.
1178 * parse.c (write_exp_msymbol), symmisc.c (dump_msymbols),
1179 symtab.c (list_symbols): Handle mst_solib_trampoline.
1180 * minsyms.c (lookup_minimal_symbol): Handle mst_solib_trampoline
1181 for all targets, remove IBM6000_TARGET dependencies.
1182 * dbxread.c (read_dbx_dynamic_symtab): New function.
1183 * dbxread.c (dbx_symfile_read): Use it.
1184 * dbxread.c (SET_NAMESTRING): Set namestring to
1185 "<bad string table index>" instead of "foo" if the string index is
1187 * xcoffread.c (read_xcoff_symtab): Use mst_solib_trampoline instead
1189 * symtab.c (list_symbols): Take from_tty as parameter and pass it
1190 to break_command. Handle mst_file_* minimal symbol types.
1191 * config/i386/tm-i386bsd.h: Give just macro name, not args, to #undef.
1195 * c-exp.y(yylex): fix potential memory overflow.
1199 * environ.c (set_in_environ): Eliminate special handling of PATH and
1201 * putenv.c: Removed, conflicts with system declaration of
1202 putenv on RS/6000 running AIX 3.2.5, and above change makes it
1204 * Makefile.in: Change accordingly.
1205 * procfs.c (procfs_create_inferior): Change comment accordingly.
1209 * rs6000-tdep.c: Change value to value_ptr.
1213 * i386m3-nat.c: Include floatformat.h.
1214 (get_i387_state): Use memset not bzero.
1218 * Makefile.in: Enable commented out getopt_h, bfd_h, etc. Change
1219 ieee-float.h to floatformat.h.
1221 * valprint.c (val_print_string): Ignore error if the error
1222 happened after a terminating '\0'.
1224 * c-valprint.c (c_val_print): Never add 1 to return value from
1225 val_print_string; just return what it returns.
1227 * target.h (enum target_signal): Add TARGET_SIGNAL_FIRST, for
1228 looping through all of the enums.
1229 * infrun.c (signals_info): Use it.
1233 * main.c (main): When printing warning about bad baud rate, don't
1234 use warning(); it relies on current_target which isn't set up yet.
1236 * breakpoint.c (_initialize_breakpoint): Update docstring for
1237 tbreak to match what the code actually does. Don't mention tbreak
1238 in docstrings for "enable once" or "enable breakpoints once".
1242 * symfile.h (ADD_PSYMBOL_VT_TO_LIST): Don't put a semicolon after
1243 while (0). That defeats the whole purpose of using do . . . while (0).
1244 * mdebugread.c (parse_partial_symbols): Don't use ?: expression as
1245 list for ADD_PSYMBOL_TO_LIST; the macro takes its address and
1246 using a ?: expression as an lvalue is not portable.
1248 * stabsread.c (define_symbol): If REG_STRUCT_HAS_ADDR, also
1249 convert a LOC_ARG to a LOC_REF_ARG. Update code which combines
1250 'p' and 'r' symbol descriptors into a single symbol to look for a
1252 * README, config/sparc/tm-sparc.h: Update comments.
1256 * mdebugread.c (parse_type): Do not complain for types with
1257 an `indexNil' aux index, these are simply undefined types.
1258 Remove indexNil check from caller of parse_type.
1259 * mdebugread.c (parse_partial_symbols): Do not enter
1260 stGlobal, scCommon symbols into the minimal symbol table, their
1261 value is the size of the common, not its address.
1262 Handle scInit, scFini, scPData and scXData sections.
1263 Use minimal symbol type mst_file_* for stLabel symbols, instead of
1265 Enter stProc symbols into the global_psymbols list once, not into
1266 the static_psymbols_list.
1267 Get rid of dummy psymtab if it is empty, to allow proper detection
1268 of stripped executables.
1269 * mdebugread.c (cross_ref): Allow cross references to Fortran
1274 * stabsread.c (common_block_end, fix_common_block): Stash the
1275 struct pending * in the SYMBOL_TYPE, not the SYMBOL_NAMESPACE, so
1276 as to not assume that a pointer fits in an enum.
1280 * os9kread.c (fill_sym): check compiler verion number for pre-
1282 * os9kread.c (os9k_process_one_symbol): address of symbol is
1283 relative to section not module.
1284 * stabsread.c (define_symbol): add symbol type 's' as local
1286 * remote-os9k.c: add command 'set monitor_log' to turn on or off
1288 * remote-os9k.c: fix bug in delete breakpoint, single step trace.
1289 * remote-os9k.c: fix bug in 'set remotebaud' function.
1290 * remote-os9k.c (rombug_link): minimize checking so to improve
1292 * symfile.c (symbol_file_command): check if failed to link, also make
1293 the command be able to accept more than one filenames.
1294 * target.c (target_link): check if failed to link with rombug.
1295 * config/i386/tm-i386os9k.h : add #define DECR_PC_AFTER_BREAK 0.
1299 * remote-es.c (es1800_child_ops): Don't declare it static.
1303 * config/i386/tm-i386v4.h: Give just macro name, not args, to #undef.
1307 * dbxread.c: New variable lowest_text_address.
1308 (record_minimal_symbol, read_dbx_symtab): Set it.
1309 (read_dbx_symtab): Use lowest_text_address + text_size instead of
1310 end_of_text_address.
1311 * config/gould/tm-pn.h: Add comment regarding END_OF_TEXT_DEFAULT.
1313 * dbxread.c (end_psymtab): Remove old and commented out
1314 capping_global and capping_static. Fix comments regarding
1315 N_SO_ADDRESS_MAYBE_MISSING to match the real name of the macro.
1317 * parser-defs.h: Add "extern" to start of variable declarations so
1318 we don't end up with commons.
1319 * parse.c: Define these variables.
1321 * irix5-nat.c (find_solib): Cast o_path to CORE_ADDR when using it
1326 * alpha-tdep.c: Change value to value_ptr.
1330 * solib.c (elf_locate_base): New function to locate the address
1331 of the dynamic linker's runtime structure in the dynamic info section.
1332 * solib.c (locate_base): Use it instead of iterating over the list
1333 of mapped address segments.
1334 * solib.c (look_for_base, bfd_lookup_symbol): Removed, no longer
1339 * hppa-tdep.c (pc_in_linker_stub): Move decl to beginning of file.
1340 (pc_in_interrupt_handler): New function. Also add PARAM decl.
1341 (find_proc_framesize): Deal with HPUX setting SAVE_SP bit for
1342 signal trampoline and interrupt routines.
1343 (frame_saved_pc): Handle signal trampolines and interrupt routines.
1344 (frame_chain, frame_chain_valid): Likewise.
1345 (hppa_frame_find_saved_regs): Likewise. Also deal with special
1346 saved regs convention for SP.
1348 * tm-hppa[bho].h: FRAME_FIND_SAVED_PC_IN_SIGTRAMP): Define.
1349 (FRAME_BASE_BEFORE_SIGTRAMP): Define.
1350 (FRAME_FIND_SAVED_REGS_IN_SIGTRAMP): Define.
1352 * tm-hppah.h (IN_SIGTRAMP): Define.
1356 * ch-exp.y (match_simple_name_string): Accept '_' as well as an
1357 alphabetic character as the start of a name.
1359 * sparclite/Makefile.in (all install): Build and install aload.
1361 * configure.in: Accept i[34]86-*-*sysv32 because that is what
1362 config.guess and config.sub produce.
1364 * mips-tdep.c: Change value to value_ptr.
1368 * breakpoint.c, breakpoint.h, c-valprint.c, ch-valprint.c,
1369 cp-valprint.c, eval.c, expprint.c, findvar.c, language.c,
1370 objfiles.h, infcmd.c, printcmd.c, stack.c, typeprint.c,
1371 valarith.c, valops.c, valprint.c, value.h, values.c: Replace
1372 value with value_ptr. This is for the ptx compiler.
1373 * objfiles.h, target.h: Don't declare a "sec_ptr" field using a
1375 * symm-nat.c: Add a bunch of stuff for symmetry's ptrace stuff.
1376 #if 0 i386_float_info.
1377 * symm-tdep.c (round): Remove. Also remove sgttyb.
1378 * symm-tdep.c: Remove lots of stuff which duplicates stuff from
1379 i386-tdep.c. Remove register_addr and ptx_coff_regno_to_gdb.
1380 * i386-tdep.c (i386_frame_find_saved_regs): Put in
1381 I386_REGNO_TO_SYMMETRY check in case it is needed for Dynix
1383 * config/i386/nm-symmetry.h: Change KERNEL_U_ADDR. Move
1384 stuff from PTRACE_READ_REGS, PTRACE_WRITE_REGS macros to
1385 symm-nat.c. Define CHILD_WAIT and declare child_wait().
1386 * config/i386/tm-symmetry.h: Remove call function stuff; stuff in
1387 tm-i386v.h is apparently OK.
1388 * config/i386/xm-symmetry.h [_SEQUENT_]: Define HAVE_TERMIOS not
1389 HAVE_TERMIO. Define MEM_FNS_DECLARED, NEED_POSIX_SETPGID, and
1394 * osfsolib.c (xfer_link_map_member): Update to use new
1395 target_read_string interface.
1399 * infrun.c (wait_for_inferior): In checking
1400 remove_breakpoints_on_following_step, check
1401 through_sigtramp_breakpoint as well as step_resume_breakpoint.
1405 * os9kread.c (os9k_process_one_symbol): Rename
1406 VARIABLES_INSIDE_BLOCK to OS9K_VARIABLES_INSIDE_BLOCK.
1407 * symfile.c (symbol_file_command): Check for (CORE_ADDR)-1, not
1408 (CORE_ADDR)0, from target_link, since that is what it uses.
1409 Process name at end, not during parsing (like we did before Kung's
1410 change), so that -readnow and -mapped can appear anywhere.
1411 Make text_relocation a local variable.
1412 * config/i386/i386os9k.mt: Fix comment.
1413 * Makefile.in (ALLDEPFILES): Add remote-os9k.c.
1414 * os9kread.c: Put "comments" after #endif inside /* */.
1415 * stabsread.h: Add os9k_stabs variable.
1416 * stabsread.c (start_stabs), os9kread.c (os9k_process_one_symbol):
1418 * stabsread.c (define_symbol): If os9k_stabs, put a 'V' symbol
1419 descriptor in global_symbols not local_symbols.
1420 (read_type): If os9k_stabs, accept 'c', 'i', and 'b' type
1422 (read_type): If os9k_stabs, accept function parameters after 'f'
1424 (read_array_type): If os9k_stabs, don't expect index type and
1425 expect lower and upper to be separated by ',' not ';'.
1426 (read_enum_type): If os9k_stabs, read a number before the first
1427 enumeration constant.
1428 (os9k_init_type_vector): New function.
1429 (dbx_lookup_type): Call it when starting new type vector.
1430 * config/i386/tm-i386os9k.h: Define BELIEVE_PCC_PROMOTION.
1431 * (os9k_process_one_symbol): Call define_symbol not os9k_define_symbol.
1432 * os9kstab.c: Removed.
1433 * Makefile.in: Update accordingly.
1434 * objfiles.c (objfile_relocate_data): Removed.
1435 * remote-os9k.c (rombug_wait): Call objfile_relocate
1436 not objfile_relocate_data.
1437 * objfiles.h, objfiles.c: Remove find_pc_objfile.
1438 * remote-os9k.c (rombug_wait): Call find_pc_section not
1440 * main.c (quit_command): Check inferior_pid; revert Kung change.
1441 * remote-os9k.c (rombug_create_inferior): Set inferior_pid.
1445 * os9kread.c: New file to read os9000 style symbo table.
1446 * os9kstab.c: new file to read os9000 style stabs.
1447 * remote-os9k.c: remote protocol talking to os9000 rombug monitor.
1448 * objfiles.c (find_pc_objfile): new function to search objfile
1450 * objfiles.c (objfile_relocate_data): new function to relocate
1451 data symbols in symbol table.
1452 * objfiles.h: Add two aux fields in struct objfile to handle
1453 multiple symbol table files situation like in os9000.
1454 * symfile.c: Change so 'symbol-file' command can handle multiple
1455 files. Also call target_link() to get relocation infos.
1456 * target.c (target_link): new function to get relocation info when
1457 a symbol file is requested to load.
1458 * main.c (quit_command): take out 'inferior_pid != 0' condition,
1459 because in cross mode there's no inferior pid, bit they need to
1461 Makefile.in: add os9kread.c os9kstab.c and .o's.
1462 configure.in: add i386os9k target.
1463 config/i386/i386os9k.mt: new add.
1464 config/i386/tm-i386os9k.h: new add.
1468 * config/sparc/tm-sun4sol2.h (IN_SIGTRAMP): Handle ucbsigvechandler.
1469 * sparc-tdep.c (sparc_frame_saved_pc): Handle ucbsigvechandler.
1473 * target.c, target.h (target_read_string): Provide error detection to
1474 caller. Put string in malloc'd space, so caller need not impose
1476 * solib.c (find_solib): Update to use new interface.
1477 * irix5-nat.c (find_solib): Read o_path from inferior
1478 (clear_solib): Free storage for o_path.
1479 * valprint.c (val_print_string): Add comments.
1483 * symtab.c (decode_line_1): Handle the case when skip_quoted does not
1488 * value.h (struct value): Add modifiable field.
1489 * values.c (allocate_value, record_latest_value, value_copy): Set it.
1490 (record_latest_value): Don't mess with VALUE_LVAL of value.
1491 * valops.c (value_assign): Check it. Reword existing error
1492 message on not_lval.
1494 * mips-tdep.c (mips_step_skips_delay), config/mips/tm-mips.h
1495 (STEP_SKIPS_DELAY): Added.
1496 * infrun.c (proceed) [STEP_SKIPS_DELAY]: Check for a breakpoint in
1499 * valprint.c (val_print_string): If errcode is set, always print
1500 an error, regardless of force_ellipsis. In the non-EIO case,
1501 just print the error message rather than calling error(). Don't
1502 access *(bufptr-1) if bufptr points to the start of the buffer.
1503 When looking for '\0', don't increment bufptr and addr if bufptr
1504 started out already at limit. If an error happens on fetching the
1505 first character, don't print the string.
1509 * config/m68k/tm-apollo68b.h: Remove HAVE_68881 define; it is
1512 * i387-tdep.c, i386-tdep.c i386v-nat.c, i386aix-nat.c,
1513 i386m3-nat.c, config/m68k/tm-m68k.h, i960-tdep.c
1514 config/i960/tm-i960.h, remote-nindy.c, config/m88k/tm-m88k.h,
1515 m88k-tdep.c: Use floatformat.h instead of ieee-float.h.
1516 * sparc-tdep.c: Remove now-obsolete ieee-float.h stuff
1517 * findvar.c: Update comment regarding ieee-float.h.
1521 * config/i386/tm-i386v4.h (I386V4_SIGTRAMP_SAVED_PC, IN_SIGTRAMP,
1522 FRAME_CHAIN, FRAMELESS_FUNCTION_INVOCATION, FRAME_SAVED_PC):
1523 Define to make backtracing through the various sigtramp handlers
1525 * i386-tdep.c (i386v4_sigtramp_saved_pc): New routine to fetch
1526 the saved pc from ucontext on the stack for SVR4 signal handling.
1530 * remote.c, remote-mon.c, remote-utils.c, remote-utils.h,
1531 target.h, remote-es.c, remote-nindy.c: Don't set baud rate if
1532 baud_rate is -1. Remove sr_get_baud_rate and sr_set_baud_rate;
1533 just use the global variable itself. When printing baud rate,
1534 don't print a baud rate if baud_rate is -1.
1536 * coffread.c (read_coff_symtab): Pass mst_file_* to
1537 record_minimal_symbol for C_STAT symbols. Put C_EXT and C_STAT
1538 symbols in the minimal symbols regardless of SDB_TYPE.
1542 * breakpoint.h (enum bptype): New type bp_through_sigtramp.
1543 (bpstat_what_main_action): New code BPSTAT_WHAT_THROUGH_SIGTRAMP.
1544 * breakpoint.c (bpstat_what): Return BPSTAT_WHAT_THROUGH_SIGTRAMP
1545 if we hit a bp_through_sigtramp breakpoint. Remove kludge which
1546 ignored bs->stop for a bp_step_resume breakpoint.
1547 * infrun.c (wait_for_inferior): Make a through_sigtramp_breakpoint
1548 which performs one (the check_sigtramp2 one) of the functions
1549 which had been handled by the step_resume_breakpoint. For each
1550 use of the step_resume_breakpoint, make it still use the
1551 step_resume_breakpoint, use the through_sigtramp_breakpoint, or
1553 Deal with BPSTAT_WHAT_THROUGH_SIGTRAMP return from bpstat_what.
1554 When setting the frame address of the step resume breakpoint, set
1555 it to the address for frame *before* the call instruction is
1556 executed, not after.
1558 * mips-tdep.c (mips_print_register): Print integers using
1559 print_scalar_formatted rather than duplicating all the
1560 CC_HAS_LONG_LONG and so on.
1561 (mips_push_dummy_frame): Use read_register_gen rather than using
1562 read_register and then putting it back in target format with
1563 store_unsigned_integer. If registers are more than 4 bytes, give
1564 an error rather than have some registers overwrite other
1566 #if 0 unused include of opcode/mips.h.
1568 * symfile.h: Don't declare arguments for coff_getfilename.
1570 * defs.h: Revert Kung change regarding FORCE_LONG_LONG.
1574 * configure.in (hppa*-*-osf*): New configuration.
1575 * config/pa/hppaosf.mt: New target makefile fragment.
1576 * config/pa/tm-hppao.h: New target include file.
1580 * exec.c (print_section_info): Print entry point for exec_bfd only.
1581 * ser-unix.c (wait_for): Fix typo in HAVE_TERMIO case.
1582 * dwarfread.c: Remove second inclusion of <sys/types.h>, which
1583 causes problems if <sys/types.h> has no multiple inclusion protection.
1587 * tm-hppa.h (CALL_DUMMY): Add two NOP instructions to the end of
1588 the call dummy to avoid kernel bugs in HPUX, BSD, and OSF1.
1589 (CALL_DUMMY_LENGTH): Changed accordingly.
1591 Wed Feb 23 16:21:25 1994 Stu Grossman (grossman at cygnus.com)
1593 * sparc-stub.c (trap_low): Make trap handler work for arbitrary
1594 numbers of register windows.
1596 * sparclite/hello.c: Add factorial function for testing.
1597 * salib.c: Use macros instead of constants for I/O addresses to
1598 make 931 support easier.
1599 * sparclite.h: Change constraint for LOC to "rJ" to force use of
1600 register in sta/lda instructions.
1604 * dbxread.c (process_one_symbol): Set
1605 block_address_function_relative for COFF like we do for ELF and SOM.
1609 * mdebugread.c (new_psymtab): Pass in section_offsets and set
1611 * mdebugread.c (handle_psymbol_enumerators): New function to enter
1612 the enumerators of an ecoff enum into the partial symbol table.
1613 * mdebugread.c (parse_partial_symbols): Call it.
1614 * symfile.c (reread_symbols): Initialize objfile->*_psymbols.next.
1615 * symmisc.c (dump_psymtab): Fix typo, clean up output of section
1616 offsets. Cast psymtab->read_symtab to PTR before passing it to
1618 * i386-tdep.c (i386_skip_prologue): Skip over instructions that
1619 set up the global offset table pointer in pic compiled code.
1620 * config/mips/tm-mips.h (FIX_CALL_DUMMY): For big endian targets,
1621 error() on TYPE_CODE_FLT arguments whose size is greater than 8,
1622 swap all other TYPE_CODE_FLT arguments as mips_push_arguments
1623 ensures that floats are promoted to doubles before they are pushed
1626 Fri Feb 18 23:12:59 1994 Stu Grossman (grossman at cygnus.com)
1628 * sparclite/Makefile.in, sparclite/salib.c, sparclite/sparclite.h:
1629 Fixup cache_on and flush_i_cache so that they work for both the
1630 930 and 932 processors. Rewrite most low level funcs (uart
1631 access & cache stuff) to use new ASI access macros in sparclite.h.
1632 Also make it easy to access second serial port.
1636 * hp300ux-nat.c: Don't incloude <sys/dir.h>, <sys/ioctl.h>, or
1637 <sys/stat.h>; not needed.
1641 * stack.c (print_frame_info): In "pathological" case, don't
1642 distrust the line number information.
1646 * mips-tdep.c (mips_print_register): handle 64 bits register.
1647 * valprint.c (print_longest): fix a bug in printing 64 bits value.
1653 * Makefile.in (install): Do the sed for program_transform_name
1654 ourselves instead of worrying about INSTALL_XFORM. This enables
1655 users to override INSTALL_PROGRAM in the standard way.
1657 * Makefile.in (c-exp.tab.o, ch-exp.tab.o, m2-exp.tab.o): Don't
1658 depend on Makefile.in.
1660 * defs.h, valprint.c: Make longest_to_int a function not a macro.
1661 Only test against INT_MIN if a LONGEST is bigger than an int.
1663 * README: Change GhostScript to Ghostscript.
1667 * config/rs6000/{tm-rs6000lynx.h,nm-rs6000lynx.h,xm-rs6000lynx.h}:
1668 Rename to tm-rs6000ly.h, nm-rs6000ly.h, xm-rs6000ly.h for 14
1669 character file names.
1670 * Makefile.in (ALLPARAM): Add these files.
1672 * config/mips/littlemips64.mt: Rename to mipsel64.mt for 14
1673 character file names.
1674 * Makefile.in: Add Kung's new mips64 files.
1678 * configure.in: add mips64-*-elf, mips64-*-ecoff, mips64el-*-elf,
1679 mips64el-*-ecoff and mips64-big-*.
1680 * defs.h: get rid of FORCE_LONG_LONG.
1681 * mips-tdep.c (mips_find_saved_regs): add sd and sdc1 instruction
1682 parsing. Change register size to be MIPS_REGSIZE.
1686 * corelow.c, exec.c, irix5-nat.c, mipsread.c, objfiles.c,
1687 osfsolib.c, rs6000-nat.c, solib.c, symfile.c, utils.c,
1688 xcoffexec.c: Use bfd_get_error and bfd_set_error and new error names.
1692 * remote-hms.c (readchar, hms_open, hms_fetch_register): Made more robust.
1693 (remove_commands, add_commands): Add/remove hms-drain when target
1696 Fri Feb 11 16:11:38 1994 Stu Grossman (grossman at cygnus.com)
1698 * configure.in: Add Lynx/rs6000 support.
1699 * lynx-nat.c: Clean up some Sparc stuff. Clean up ptrace error
1700 messages. Add rs6000 support. Don't try to modify unwritable
1702 * rs6000-nat.c: Move lots of native dependent stuff (like core
1703 file support) from rs6000-tdep.c & xcoffexec.c to here.
1704 * rs6000-tdep.c: Move native dependent stuff to nat.c.
1705 * xcoffexec.c: Move native dependent stuff to nat.c.
1706 * config/rs6000/nm-rs6000.h: Move defs of SOLIB_* macros to here
1708 * config/rs6000/tm-rs6000.h: Remove defs of SOLIB_* funcs, cuz they're
1710 * config/rs6000/tm-rs6000lynx.h, config/rs6000/xm-rs6000lynx.h:
1711 New files to support Lynx/rs6000.
1715 * README: Remove note about gcc warnings on alpha, these should be
1717 * c-exp.y, ch-exp.y, core.c, corelow.c, eval.c, fork-child.c,
1718 m2-exp.y, minsyms.c, nlmread.c, parse.c, putenv.c, regex.c
1719 remote-utils.c, stabsread.c: Include <string.h>.
1720 * regex.c: Include "defs.h", change re_comp argument to const char *.
1721 * infptrace.c (fetch_register, store_inferior_registers): Change
1722 regaddr to type CORE_ADDR.
1723 * config/alpha/alpha-nw.mt, config/alpha/alpha-osf1.mt (MT_CFLAGS):
1724 Remove, no longer necessary now that we use bfd_vma for a CORE_ADDR.
1728 * symtab.h: Always define BYTE_BITFIELD to nothing.
1732 * config/m68k/{m68k-em.mt,tm-m68k-em.h}: Remove; no longer used.
1733 * configure.in: Remove comment about m68k-em.mt.
1734 * Makefile.in: Remove references.
1738 * defs.h [BFD64]: Use BFD_HOST_64_BIT, not nonexistent
1743 * target.c (target_preopen): If target_kill doesn't remove the
1744 target from the stack, use pop_target to do it.
1746 * coffread.c (process_coff_symbol, case C_TPDEF): Don't set name
1747 of TYPE_CODE_PTR or TYPE_CODE_FUNC types. This parallels similar
1748 changes to stabsread.c from summer 1993.
1750 * remote-udi.c (udi_files_info): If prog_name is NULL, just skip
1751 printing the program, rather than passing NULL to printf.
1752 (udi_detach): Set udi_session_id to -1 so that udi_close doesn't
1753 try to call UDIDisconnect again. Print better message.
1754 (udi_kill): Just call UDIDisconnect ourselves, rather than doing
1756 (udi_create_inferior): If udi_session_id is negative, open a new
1757 TIP rather than giving an error.
1759 * config/mips/mipsm3.mh, config/i386/i386m3.mh,
1760 config/ns32k/ns32km3.mh: Define NAT_FILE.
1761 * config/nm-m3.h: Change guard from _OS_MACH3_H_ and _OS_MACH3_H
1762 (it was inconsistent and namespace-wrong) to NM_M3_H.
1763 * m3-nat.c (mach_really_wait): Change parameter name to ourstatus.
1764 (m3_open): New function.
1766 * TODO: Update Mach section.
1768 * Makefile.in: Remove "rapp" stuff; it is superseded by gdbserver.
1772 * printcmd.c (printf_command): Add missing single-letter
1773 backslash-escape sequences, and improve error message.
1777 * corelow.c (solib_add_stub, core_open): Pass address of from_tty
1778 rather than trying to shove an int into a pointer and back out
1779 again. This avoids compiler warnings.
1781 * defs.h (alloca): Declare as void *, not char *, on hpux.
1782 Don't prototype it, just declare the return type.
1786 * config/i386/tm-sun386.h, config/i386/tm-symmetry.h
1787 (REGISTER_CONVERT_TO_RAW): Add missing backslash.
1791 * remote-mips.c (mips_fetch_registers): If regno is FP_REGNUM or
1792 ZERO_REGNUM, just read it as zero without talking to the board.
1794 * config/i386/tm-i386aix.h (REGISTER_CONVERT_TO_RAW): Add missing
1796 * i386-tdep.c (i386_extract_return_value): Pass TYPE_LENGTH (type)
1797 to store_floating, not nonexistent variable len.
1799 * remote-mips.c (mips_insert_breakpoint, mips_remove_breakpoint):
1801 (mips_store_word): Change calling convention to return errors, and
1802 to provide old contents if the caller wants it.
1803 (mips_xfer_memory): Deal with errors from mips_store_word.
1804 * config/mips/tm-idt.h, config/mips/tm-idtl.h: Remove BREAKPOINT
1805 define now that remote-mips.c doesn't use BREAKPOINT.
1807 * remote-mips.c (mips_create_inferior): Call warning if arguments
1808 specified, and then execute "set args" command. Call error, not
1809 mips_error, if executable file not specified.
1811 * remote-e7000.c: Replace "snoop" command (e7000_noecho) with
1814 * config/rs6000/tm-rs6000.h (STORE_STRUCT_RETURN): Don't cast
1819 * value.h (print_longest): Rename "value" to "val" in prototype
1820 declaration because some compilers don't like arguments whose
1821 names are the same as types.
1822 * remote.c (remote_xfer_memory): Cast "myaddr" to unsigned char *
1823 before passing it to remote_*_bytes.
1827 * h8500-tdep.c (saved_pc_after_call): The size of the
1828 pc is memory model dependent. (segmented_command,
1829 unsegmented_command, _initialize_h8500_tdep): New commands to
1830 change memory model.
1831 * remote-e7000.c (_initialize_remote_e7000): Change name of snoop
1833 * remote-hms.c (hms_load): Remove breakpoints when loaded.
1834 (hms_wait): Use new status structure
1835 (hms_open): Push the target here. (hms_before_main_loop): Not
1836 here. (supply_val, hms_fetch_register, hms_store_register): Cope
1837 with H8/500 names too. (hms_fetch_register): Take out REGISTER_TYPE.
1838 * sh-tdep.c (show_regs, initialize_sh_tdep): New command to print
1839 all registers in a compact way.
1843 * config/rs6000/tm-rs6000.h: Declare rs6000_struct_return_address
1844 as CORE_ADDR to match definition in rs6000-tdep.c.
1848 * dwarfread.c (process_dies): Skip nested TAG_compile_unit DIEs.
1849 * dwarfread.c (add_partial_symbol): Do not enter opaque aggregate
1850 definitions into the psymtab.
1854 * m68k-stub.c: Treat mc68332 like mc68020 most places. Provide
1855 a special exceptionSize for the 68332.
1857 * remote-udi.c (udi_attach): If no arguments, print error.
1861 * Makefile.in (VERSION): Bump to 4.12.1
1862 * NEWS, README: Update to match 4.12 release.
1866 * command.c (empty_sfunc): New function.
1867 (add_set_cmd): Use it instead of not_just_help_class_command.
1868 (not_just_help_class_command): Change calling convention back to
1869 what it was before yesterday's change.
1871 * stabsread.c (read_sun_builtin_type): Skip the semicolon at the end
1872 of the type if present.
1876 * printcmd.c (decode_format): Don't blithely set the size for
1877 an address to 'w'. Make it 'g' or 'h', depending on TARGET_PTR_BIT.
1879 * defs.h: Just typedef CORE_ADDR to bfd_vma. Include bfd.h.
1880 If BFD64, make a LONGEST a BFD_HOST_64_BIT.
1881 * defs.h (longest_to_int): Don't depend on CC_HAS_LONG_LONG; instead
1882 always just check against INT_MIN and INT_MAX (this also fixes things
1883 if sizeof (long) > sizeof (int), e.g. Alpha).
1884 * config/pa/tm-hppa.h, config/i386/sun386.h, config/rs6000/tm-rs6000.h:
1885 Don't define LONGEST or BUILTIN_TYPE_LONGEST.
1886 * gdbtypes.h: Remove BUILTIN_TYPE_LONGEST and
1887 BUILTIN_TYPE_UNSIGNED_LONGEST.
1888 * language.h, c-lang.c, ch-lang.c, m2-lang.c, language.c: Remove
1889 longest_int and longest_unsigned_int.
1890 * value.h (struct value): Just align to LONGEST, rather than worrying
1891 about CC_HAS_LONG_LONG.
1892 * valarith.c (value_binop): Figure out type ourself based on
1893 sizeof (LONGEST) rather than relying on BUILTIN_TYPE_LONGEST. The
1894 point is that we don't depend on CC_HAS_LONG_LONG anymore.
1895 * valprint.c (val_print_type_code_int): Just call
1896 extract_unsigned_integer directly, rather than going through
1898 * printcmd.c (decode_format): Remove code which would sometimes
1899 change 'g' size to 'w' for integers. print_scalar_formatted handles
1900 printing huge integers well enough, thank you.
1902 * command.c (add_set_cmd, not_just_help_class_command): Change
1903 to make this the sfunc, not cfunc, since that is how we call it.
1904 * command.h: Comment difference between sfunc and cfunc.
1905 * demangle.c (set_demangling_command): Add third arg since that
1906 is how it is called.
1907 (_initialize_demangler): Use sfunc, not cfunc, for
1908 set_demangling_command, since that is how it is called.
1909 Remove show_demangling_command; it has no effect.
1911 * command.c (shell_escape): Report errors correctly (with error
1912 message from strerror).
1916 * xcoffread.c (read_xcoff_symtab): Change CSECT_LEN to use
1917 x_scnlen.l rather than x_scnlen to match corresponding change in
1922 * gdbtypes.h, ch-typeprint.c, ch-valprint.c:
1923 Change comments regarding TYPE_CODE_BOOL.
1924 * language.c (boolean_type): Always return 1 for TYPE_CODE_BOOL,
1925 regardless of the language.
1926 (value_true): Just call value_logical_not regardless of language.
1927 * coffread.c (coff_read_enum_type), stabsread.c (read_enum_type):
1928 Remove #if 0'd code which makes some enums TYPE_CODE_BOOL.
1929 * language.h: Improve comment for la_builtin_type_vector.
1930 * m2-lang.c (_initialize_m2_language): Don't add any fields to
1931 builtin_type_m2_bool.
1935 * config/m88k/{tm-delta88.h,tm-delta88v4.h}, m88k-tdep.c:
1936 Define IN_SIGTRAMP and backtrace correctly through signal handlers.
1940 * procfs.c (wait_fd): Handle EINTR error return from PIOCWSTOP ioctl
1941 by restarting the ioctl.
1945 * target.h (target_wait): Add comment about calling
1946 return_to_top_level.
1950 * coffread.c (read_one_sym): bfd_coff_swap_aux_in now takes
1951 additional arguments.
1952 * xcoffread.c (read_xcoff_symtab, read_symbol_lineno): Likewise.
1954 Mon Jan 31 16:10:41 1994 Stu Grossman (grossman at cygnus.com)
1956 * sparc-stub.c: Remove unnecessary #include of memory.h.
1960 * mips-tdep.c: Remove code which sets saved_regs from
1961 init_extra_frame_info and put it in new function mips_find_saved_regs.
1962 (READ_FRAME_REG): Remove macro and replace uses with the expansion.
1963 * mips-tdep.c, config/mips/tm-mips.h: When examining ->saved_regs,
1964 check if it is NULL and call mips_find_saved_regs if so.
1966 * remote-mips.c: Use unfiltered, not filtered, output most places.
1968 * blockframe.c (get_prev_frame_info): Detect and stop an infinite
1969 backtrace. Revise comments.
1973 * mdebugread.c (parse_procedure): Remove _sigtramp kludges for
1974 alpha and irix. The _sigtramp case has to be handled properly
1975 in the tdep files if we have no ecoff debugging info.
1976 * alpha-tdep.c (alpha_frame_saved_pc, alpha_frame_chain),
1977 mips-tdep.c (mips_frame_saved_pc): Handle signal handler frames
1978 without PC_REGNUM kludge.
1979 * mdebugread.c (fixup_sigtramp), mips-tdep.c (read_next_frame_reg):
1980 Clean up handling of mips sigtramp frames, improve comments.
1984 * paread.c (read_unwind_info): Fix typo.
1986 * paread.c (pa_symtab_read): Update the "check_strange_names"
1987 filter to match GCC's current output. Filter out section symbols
1988 (which the HP linker sometimes puts in the wrong place).
1992 * serial.h (SERIAL_SET_TTY_STATE): Comment return value.
1994 * Makefile.in (TAGS): Just echo one line, rather than the whole thing.
1996 * Makefile.in: Remove all references to sparcly-nat.c.
1998 * Makefile.in (HFILES_NO_SRCDIR): Include dcache.h remote-utils.h
1999 remote-sim.h directly, rather than via $(remote_utils_h). This avoids
2000 duplicating serial.h and target.h.
2002 * Makefile.in: Don't set M_INSTALL and M_UNINSTALL. These variables
2003 are not used anywhere (a 5 Oct 1993 change removed the uses).
2005 * config/m68k/monitor.mt (TDEPFILE): Add remote-es.o.
2006 * config/m68k/es1800.mt: Add comment.
2007 * remote-es.c: Extensive changes to update to current conventions.
2009 * ser-unix.c (wait_for, hardwire_readchar) [HAVE_TERMIO, HAVE_TERMIOS]:
2010 If the timeout is too big to fit in c_cc[VTIME], then do multiple reads
2011 to achieve the desired timeout.
2012 * serial.h (serial_t): Add field timeout_remaining.
2016 * c-exp.y (yylex): Reenable nested type code.
2020 * a29k-tdep.c (examine_tag): Add comment regarding argcount.
2022 * remote-mips.c (mips_ops): Fix docstring.
2024 * remote-bug.c (bug_ops): Remove spurious newline from docstring.
2026 * config/m68k/tm-monitor.h: Changes to bring this into accordance
2027 with the old tm-m68k-em.h:
2028 (GDBINIT_FILENAME, DEFAULT_PROMPT): Remove.
2029 (HAVE_68881): Don't undefine; HAVE_68881 is obsolete.
2030 (REGISTER_NAMES): Don't muck with it; what tm-m68k.h has is fine.
2031 Add FIXME regarding GET_LONGJMP_TARGET.
2033 * remote-udi.c (udi_close, udi_detach, udi_kill): Add comments.
2034 * infptrace.c (kill_inferior): Add comments.
2035 * main.c (quit_command): Call target_close after we kill or
2037 * remote-udi.c (udi_close): Don't error() if QUITTING.
2041 * configure.in: Make m68k-coff and aout add monitor support in
2042 addition to the standard serial support.
2046 * mdebugread.c (psymtab_to_symtab_1): Don't complain on stLabel with
2051 * config/pa/tm-hppa.h: Define macro SMASH_TEXT_ADDRESS.
2052 * elfread.c (record_minimal_symbol_and_info),
2053 dwarfread.c (process_dies), paread.c (pa_symtab_read): Use it.
2057 * i386-stub.c: Add ".text" right before "mem_fault:".
2059 * main.c (baud_rate): Add FIXME comment about printing -1 value.
2061 * remote-utils.c (usage): Fix message to be accurate and conform
2062 more closely to normal conventions.
2064 * remote-utils.c (gr_files_info): Have the exec_bfd test control
2065 whether to show information about exec_bfd, and not control whether
2066 to show information about device and speed.
2068 * remote-utils.c (gr_open): If sr_get_device returns NULL, give
2069 usage message, don't dump core.
2071 * remote-bug.c (bug_write_memory): Use alloca, not GCC extension
2072 for variable size array.
2073 (bug_fetch_register, bug_store_register): Rename "value" to
2074 "fpreg_buf" because some compilers don't like variables whose
2075 names are the same as types.
2076 (bug_store_register): Use a cast when converting char * to
2079 * symmisc.c (maintenance_print_symbols): Don't refer to the name
2080 of the command in error message (the text was referring to the old
2081 name of the command).
2083 * symmisc.c (dump_symtab): Fix args to fprintf_filtered.
2085 * c-typeprint.c (c_type_print_base): Have SHOW == 0 mean to print
2086 full details on structure elements without names. This partially
2087 reverts the changes of 1 Jul 1993 and 31 Aug 1993; I think this aspect
2088 of those changes was accidental.
2090 * stack.c (parse_frame_specification): If SETUP_ARBITRARY_FRAME is
2091 defined, make it an error to specify a single argument which is not
2094 * Makefile.in (version.c), main.c (print_gdb_version): Use
2095 host_alias and target_alias, not host_canonical and
2096 target_canonical, to print configuration.
2100 * parse.c (write_exp_msymbol): Use new type msymbol_addr_type instead
2101 of builtin_type_long. It is necessary to get a type which is
2102 TARGET_PTR_BIT bits in size; builtin_type_long might not be big enough.
2104 Fix many sins which will come up in 32 bit x 64 bit GDB, and
2105 various miscellaneous things discovered in the process:
2106 * printcmd.c, defs.h (print_address_numeric): New function.
2107 * c-valprint.c (c_val_print), ch-valprint.c (chill_val_print)
2108 breakpoint.c (describe_other_breakpoints, breakpoint_1, mention),
2109 cp-valprint.c (cplus_print_value), infcmd.c (jump_command),
2110 printcmd.c, stack.c, symfile.c, symmisc.c, valprint.c:
2112 * utils.c, defs.h (gdb_print_address): New function.
2113 * expprint (dump_expression), gdbtypes.h: Use it.
2114 * breakpoint.c (describe_other_breakpoints),
2115 symmisc.c (dump_symtab, print_symbol):
2116 Use filtered not unfiltered I/O.
2117 (remove_breakpoints): Remove BREAKPOINT_DEBUG code. Might as well
2118 just run gdb under a debugger for this (and it had problems with
2119 printing addresses, how to print b->shadow, etc.).
2120 * buildsym.c (make_blockvector), core.c (memory_error),
2121 exec.c (print_section_info), maint.c (print_section_table),
2122 mdebugread.c (parse_procedure), solib.c, source.c, symfile.c,
2123 symmisc.c, symtab.c, valops.c, valprint.c, xcoffexec.c:
2124 Add comments saying code is broken. Marked with "FIXME-32x64".
2125 * dbxread.c (process_one_symbol), partial-stab.h (default),
2126 remote-vx.c (vx_run_files_info):
2127 Don't cast int being passed to local_hex_string.
2128 * symmisc.c (print_symbol): Don't cast long being passed to %lx.
2129 * symtab.h (general_symbol_info): Add comment about SYMBOL_VALUE
2131 * symmisc.c (print_symbol): Print "offset" in message for LOC_ARG
2133 * printcmd.c (print_address): Remove #if 0 code with ADDR_BITS_REMOVE.
2134 * source.c: Include <sys/types.h> regardless of USG.
2138 * valops.c (value_assign): Set `type' after coercing toval.
2139 * c-valprint.c (c_val_print), ch-valprint.c (chill_val_print):
2140 Use extract_unsigned_integer to get the address of a reference.
2144 * stabsread.c (STABS_CONTINUE, error_type), partial-stab.h:
2145 AIX can use ? instead of \ for continuation. Deal with it.
2147 * paread.c (read_unwind_info): Just assign to objfile->obj_private,
2148 not OBJ_UNWIND_INFO. Assigning to a cast is a GCC-ism which
2149 the HP compiler in ANSI mode doesn't like.
2151 * main.c: When defaulting HAVE_SIGSETMASK based on USG, just do it
2152 based on USG, rather than defining HAVE_SIGSETMASK to an
2153 expression containing defined. Having a macro used in #if expand
2154 to an expression containing "defined" is undefined according to
2155 ANSI, and the HP compiler in ANSI mode doesn't do what we wanted
2160 * sparc-nat.c (fetch_inferior_registers, store_inferior_registers):
2161 Clean up the changes of 11 Jan, as recommended by Peter Schauer.
2165 * ch-exp.y (match_string_literal): Allow a zero-length string.
2166 * ch-lang.c (chill_printstr): Don't print zero-length string funny.
2170 * i386aix-nat.c (i386_float_info): Reverse order of registers before
2171 passing them to print_387_status.
2172 (print_387_status): Don't subtract top from 7 before using it.
2173 * i387-tdep.c: Remove comment about AIX wanting "top" subtracted
2174 from 7; the above explains it.
2178 * mips-tdep.c (init_extra_frame_info): Use frame relative stack
2179 pointer value when fixing up the frame at the start of a function.
2181 Sat Jan 22 12:29:13 1994 Stu Grossman (grossman at cygnus.com)
2183 * lynx-nat.c (fetch_core_registers): Load the I & L regs for the
2184 Sparc from the stack.
2188 * remote-mips.c (mips_initialize): Clear mips_initializing via
2189 cleanup chain, not directly.
2191 * ser-unix.c (wait_for) [HAVE_TERMIO, HAVE_TERMIOS]: Make a timeout
2192 of -1 mean forever, like in the HAVE_SGTTY case. Warn if we are
2193 munging the timeout due to the limited range of c_cc[VTIME].
2195 * fork-child.c, inferior.h (fork_inferior): New argument shell_file.
2196 * procfs.c (procfs_create_inferior), inftarg.c (child_create_inferior),
2197 m3-nat.c (m3_create_inferior): Pass it.
2198 * procfs.c: Remove ptrace function. It was declared in a way which
2199 conflicted with the prototype in unistd.h on Solaris.
2203 * sparc-tdep.c (frame_saved_pc): Get the pc from the saved pc
2204 in the sigcontext if it is a signal trampoline frame.
2205 * config/sparc/tm-sun4sol2.h (IN_SIGTRAMP, SIGCONTEXT_PC_OFFSET):
2206 Define for Solaris2.
2208 Sat Jan 22 00:34:47 1994 Stu Grossman (grossman at cygnus.com)
2210 * sparc-tdep.c, lynx-nat.c, config/sparc/tm-sparc.h,
2211 config/sparc/tm-sparclynx.h: Move defs of FRAME_SAVED_I0/L0 to
2212 tm-sparc.h so they can be overridden if necessary.
2214 Fri Jan 21 17:49:28 1994 Stu Grossman (grossman at cygnus.com)
2216 * lynx-nat.c: Add Sparc support.
2217 * sparcly-nat.c: Remove. It's useless.
2218 * config/sparc/nm-sparclynx.h: Rewrite.
2219 * config/sparc/sparclynx.mh (NATDEPFILES): Replace sparcly-nat.o
2221 * config/sparc/tm-sparclynx.h: Rewrite.
2225 * rs6000-pinsn.c: Use the new disassembler in the opcodes
2226 directory. Old code was discarded, since the new opcode table has
2231 * Makefile.in (realclean): Remove info files per make-stds.texi.
2235 * dbxread.c (end_psymtab): Only patch psymtab textlow and texthigh
2236 if N_SO_ADDRESS_MAYBE_MISSING is defined.
2237 * config/sparc/tm-sun4sol2.h: Define it.
2241 * printcmd.c (print_address_symbolic): Unconditionally use msymbol
2242 if we did not find a symbol.
2246 * infptrace.c (child_xfer_memory): Only use if CHILD_XFER_MEMORY
2249 * hppab-nat.c (call_ptrace): Delete redundant function.
2250 (kill_inferior, attach, detach, child_resume): Likewise.
2251 (child_xfer_memory): Likewise.
2253 * hppah-nat.c (call_ptrace): Delete redundant function.
2254 (kill_inferior, attach, detach, child_resume): Likewise.
2256 * config/pa/hppabsd.mh (NATDEPFILES): Add infptrace.o.
2258 * config/pa/hppahpux.mh (NATDEPFILES): Add infptrace.o.
2260 * config/pa/nm-hppab.h (FETCH_INFERIOR_REGISTERS): Define.
2262 * config/pa/nm-hppah.h (FETCH_INFERIOR_REGISTERS): define.
2263 (CHILD_XFER_MEMORY): Define.
2264 (PT_*): Define so that generic infptrace.c code can be used.
2268 * xcoffread.c (xcoff_symfile_read): Make second parameter a
2269 struct section_offsets *, not a (nonexistent) struct section_offset *.
2271 * xcoffread.c (read_xcoff_symtab): Make main_aux just a union
2272 internal_xcoff_symtab, not an array of one of them. Change lots of
2273 "main_aux" to "&main_aux" and so on.
2275 * coffread.c, xcoffread.c: Include <coff/internal.h>
2280 * coffread.c (coff_getfilename): Make it not static.
2282 * xcoffread.c (read_xcoff_symtab): complain() not abort().
2284 * xcoffread.c (struct coff_symbol): Rename c_nsyms to c_naux (removes
2285 a completely gratuitous difference between xcoffread.c and coffread.c).
2289 * infrun.c (wait_for_inferior): Don't set frame for
2290 step_resume_breakpoint for IN_SIGTRAMP cases.
2292 * infrun.c (wait_for_inferior), breakpoint.h (struct bpstat_what),
2293 breakpoint.c (bpstat_what): Move step_resume from its own field of
2294 the struct bpstat_what into the main_action. Make it override
2295 other breakpoints. This is a conservative change in the sense
2296 that before the step resume breakpoint was a breakpoint.c
2297 breakpoint, hitting the step resume breakpoint overrode even
2298 calling bpstat_stop_status.
2302 * infrun.c (normal_stop): Set stop_pc after popping the dummy frame
2303 in case execution was stopped in the called function.
2304 * stack.c (print_frame_info, frame_info): If backtracing through
2305 a call dummy, handle the starting source line number on a line
2306 boundary like backtracing through sigtramp.
2307 * sparc-tdep.c (sparc_frame_find_saved_regs): Get frame address
2308 for call dummy frame right. Remove old test for dummy frame,
2309 it has been unused at least since gdb-3.5.
2310 * sparc-tdep.c (sparc_push_dummy_frame): Set return address register
2315 * infcmd.c (signal_command): Accept 0 as legitimate signal number.
2319 * infrun.c (signals_info), target.c (target_signal_from_name):
2320 Use ugly casts to avoid enumvar < enumvar or enumvar++.
2324 * ser-unix.c (hardwire_noflush_set_tty_state): Don't muck with ICANON.
2325 * inflow.c (terminal_ours_1): When discussing how to deal with the
2326 tty state, make note of query() as well as readline.
2328 * infrun.c (_initialize_infrun): Add TARGET_SIGNAL_POLL to list of
2329 signals for which stop and print are cleared by default.
2333 * config/pa/tm-hppa.h (unwind_table_entry): Use one of the
2334 reserved fields to hold a stub unwind entry type. Fix typo.
2335 (stub_unwind_entry): New structure for raw stub unwind entries.
2336 (stub_unwind_types): The types of stubs we may encounter.
2337 (UNWIND_ENTRY_SIZE, STUB_UNWIND_ENTRY_SIZE): New defines.
2338 * hppa-tdep.c (rp_saved): Use additional information provided
2339 by linker stub unwind descriptors.
2340 (frameless_function_invocation): Likewise.
2341 (frame_chain_valid): Likewise.
2342 * paread.c (compare_unwind_entries): New function for sorting
2343 unwind table entries.
2344 (read_unwind_info): Rewrite to remove dependency on host endianness.
2345 Read in data from the $UNWIND_END$ subspace which contains linker
2346 stub unwind descriptors. Merge that data into the basic unwind
2349 * hppab-nat.c (_initialize_kernel_u_addr): Delete unwanted functions.
2353 * xcoffread.c (read_xcoff_symtab, case C_FILE): Accept the name
2354 from either the symbol name or the auxent.
2355 * coffread.c, symfile.h (coff_getfilename): Renamed from getfilename,
2360 * Makefile.in (ALLPARAM): Change irix5.h to nm-irix5.h.
2364 * README: Update notes for alpha port.
2368 * i960-tdep.c (i960_fault_to_signal): Return TARGET_SIGNAL_ILL
2369 for operation fault, constraint fault, and type fault.
2373 * Makefile.in (init.c): Add comment explaining formatting conventions.
2375 * c-exp.y (parse_number): Assign to temporary between the right
2376 shifts, to work around a bug in the SCO compiler.
2378 * Makefile.in (ALLCONFIG, ALLPARAM, ALLDEPFILES, HFILES_NO_SRCDIR):
2379 Add various files which were added to GDB recently.
2381 * xcoffread.c (process_xcoff_symbol): Only change 'V' to 'S' if not
2384 * Makefile.in: Add mostlyclean target.
2392 * main.c (show_commands): Make return type of extern
2393 history_get be HIST_ENTRY, rather than struct _hist_entry.
2394 (The latter loses with the upcoming merged readline.)
2398 * minsyms.c (prim_record_minimal_symbol_and_info): Make tempstring
2399 const char *, not char *.
2401 * symtab.h (struct symbol): Make section short, not unsigned short.
2403 * symtab.c (lookup_symbol): Add comment about QUIT here.
2405 * utils.c (fputs_unfiltered): Call fputs, not fputs_maybe_filtered.
2407 * c-exp.y (parse_number): Check for overflow regardless of range
2408 checking. Fix overflow check to use unsigned LONGEST, not
2411 * c-exp.y (parse_number): Make it so that integer constants are
2412 builtin_type_long_long if builtin_type_long isn't big enough or if
2413 an "LL" suffix is used. Properly handle "UL" or "LU" suffixes.
2415 * c-typeprint.c (c_type_print_varspec_suffix, case TYPE_CODE_FUNC):
2416 Print our "()" first, then recurse for the target type.
2420 * remote-udi.c (udi_create_inferior): Quote empty execfile argument.
2422 * gdbserver/low-lynx.c: Include <sys/wait.h> not "/usr/include/wait.h".
2426 * utils.c (request_quit): Re-establish signal handler regardless
2429 * config/mips/xm-irix4.h: Define HAVE_TERMIOS.
2433 * i960-tdep.c: Include target.h.
2437 * lynx-nat.c (sys/wait.h): Don't use absolute pathname.
2441 * lynx-nat.c (child_wait): Fix thinkos in struct target_waitstatus
2442 changes (status -> ourstatus; declare status, etc.).
2443 * config/nm-lynx.h: Fix child_wait prototype and include target.h.
2447 * Makefile.in (ALLPARAM): Add config/nm-lynx.h.
2451 * remote-mips.c (mips_request, mips_wait): Correct prototypes.
2455 * config/i386/xm-linux.h: Define HAVE_TERMIOS.
2459 * config/alpha/tm-alpha.h (CALL_DUMMY): Improve comment.
2463 * remote-vx.c (vx_wait): Only call i960_fault_to_signal if I80960
2464 is defined. Otherwise just report TARGET_SIGNAL_UNKNOWN.
2466 * mips-tdep.c (mips_push_arguments): Byteswap struct_addr before
2469 Add search to target vector (#if 0'd until after 4.12):
2470 * target.h (to_search, target_search): Add.
2471 * gdbcore.h, core.c (generic_search): Add.
2472 * remote.c (remote_search): Add.
2473 * a29k-tdep.c (init_frame_info): Use target_search to find traceback
2476 * printcmd.c (print_address_symbolic): If set print fast-symbolic-addr
2477 is on, call find_pc_function rather than relying just on the minimal
2478 symbols (probably only matters for symbol readers which don't put
2479 statics in the minimal symbols, but changing this strikes me as
2480 not conservative enough).
2481 Initialize name_location in all cases.
2482 If no symbol and no msymbol, don't print anything symbolic.
2484 * a29k-tdep.c (push_dummy_frame): Add comment about saving lr0.
2488 * printcmd.c (print_address_symbolic): Make it search the
2489 symtabs for variables as well as functions. Add `set print
2490 fast-symbolic-addr' and default it to fast (the old way).
2491 Print line numbers for data items as well as functions.
2493 * symtab.c (find_addr_symbol): Return the symtab and the symbol
2494 address, if a symbol is found (take two more args pointing to
2495 where to store these results).
2497 * symtab.h (find_addr_symbol): Add prototype.
2501 * objfiles.h: Fix comments to reflect the fact that the phrase
2502 "top of stack" always refers to where the pushing and popping takes
2503 place, regardless of whether it is at the highest or lowest address.
2507 * mdebugread.c (parse_symbol): Do not set TYPE_TAG_NAME for
2508 compiler generated tag names.
2509 * mdebugread.c (parse_type): Handle cross references to qualified
2511 * valops.c (value_struct_elt): Improve error message if the
2512 address of a method is requested from an object instance.
2513 * valops.c (search_struct_method): Make name_matched non-static
2514 to get it initialized correctly.
2515 * config/i386/nm-i386sco.h (CANNOT_STORE_REGISTER): Define to
2516 exclude segment register which are not writable on newer SCO versions.
2520 * go32-xdep.c: Remove unused function uerror.
2521 (sigsetmask): Declare return type. Declare argument (to match the
2522 way it is called). Explicitly return 0.
2526 * symtab.h (struct symbol, general_symbol_info, minimal_symbol,
2527 partial_symbol): Shrink the storage sizes of symbols, by making
2528 enums into 1-byte bitfields when compiled __GNUC__, moving all the
2529 enums and small ints to the end of each struct to improve
2530 alignment, and switching the section number from int to unsigned
2535 * symtab.c (find_addr_symbol): New routine that will find the nearest
2536 symbol associated with an address. It does so by exhaustive
2537 search of the symtabs, so it's slow but complete.
2541 * coffread.c (read_coff_symtab): Set PC bounds of _globals_ symtab
2542 to [0,0] rather than [0, end of first source file]. This avoids
2543 problems with other parts of GDB looking for linetables in the
2544 _globals_ symtab. Eliminate variables num_object_files and
2545 first_object_file_end.
2549 * a29k-tdep.c (init_frame_info): Cast null arg to examine_tag.
2550 (pop_frame): Restore PC2 and LR0 from dummy frames.
2551 (push_dummy_frame): Save PC2 and LR0 into dummy frames.
2552 (setup_arbitrary_frame): Handle 3 args and set up real frames.
2553 * config/a29k/tm-a29k.h (FRAME_NUM_ARGS): Update comments.
2554 (DUMMY_FRAME_RSIZE): Add 2 longwords for PC2 and LR0.
2555 (SETUP_ARBITRARY_FRAME): Define.
2559 * infrun.c, config/mips/tm-irix5.h: Remove #if 0'd AT_FUNCTION_START.
2563 * remote-udi.c (udi_resume): Correct prototype.
2567 * config/pa/tm-hppa.h (FRAME_FIND_SAVED_REGS): Call
2568 hppa_frame_find_saved_regs.
2569 * hppa-tdep.c (dig_fp_from_stack): Delete function.
2570 (prologue_inst_adjust_sp): New function.
2571 (is_branch, inst_saves_gr, inst_saves_fr): New functions.
2572 (skip_prologue): Completely rewrite to use unwind information.
2573 (hppa_frame_find_saved_regs): Likewise.
2577 * remote-mips.c (mips_wait): Use new function mips_signal_from_protocol
2578 to convert a signal number with appropriate bounds checking.
2580 * remote-mips.c (mips_wait): Fix typos (0x177 -> 0177, 0x377 -> 0377).
2584 * stack.c (frame_info): If FRAME_FIND_SAVED_REGS isn't defined,
2585 print a newline to end the display anyway.
2587 * sparc-tdep.c (sparc_pop_frame): Pop the fsr and csr (float and
2588 coprocessor status regs) when popping a frame. This fixes
2589 float exceptions that occur after calling inferior functions.
2591 * sparc-nat.c (fetch_inferior_registers, store_inferior_registers):
2592 Read and write the fsr (float status register) to/from the child
2593 process along with the float regs. Remove Peter Schauer's change
2594 of May 24 '93, which has higher overhead and doesn't solve the
2595 real problem (which was that FSR wasn't being set).
2599 * a29k-tdep.c (examine_prologue): Don't worry if the ASGEQ
2600 stack overflow check isn't right after the register stack
2601 adjustment instruction. Metaware R2.3u compiler moves other
2602 things in front of it. This fix isn't perfect but is what's
2607 * c-valprint.c (c_val_print): Treat TYPE_CODE_RANGE like TYPE_CODE_INT.
2609 * config/alpha/alpha-netware.mt: Rename to alpha-nw.mt for 14
2610 character filenames.
2611 * configure.in: Change accordingly.
2615 * m68k-stub.c, sparc-stub.c: removed spurious introduction of
2616 _filtered io routines from these two files.
2620 * config/i386/tm-i386v.h, config/m68k/tm-m68k.h, config/mips/tm-mips.h,
2621 config/vax/tm-vax.h (CALL_DUMMY_BREAKPOINT_OFFSET): Define.
2622 * mdebugread.c (parse_symbol): Handle enum sh.type produced by
2624 * mdebugread.c (add_line): Handle zero linenos produced by DEC c89.
2628 * utils.c (print_sys_errmsg): Call gdb_flush (gdb_stdout) before
2629 printing to gdb_stderr.
2631 * remote-udi.c (udi_kill): Don't close the connection, just set
2632 inferior_pid to zero.
2633 (udi_mourn): Call remove_breakpoints.
2635 * remote-udi.c: Remove obsolete need_artificial_traps comment.
2637 * i386b-nat.c (sregmap): If sEAX, etc., not defined, use tEAX, etc.
2641 * symtab.c (lookup_symbol): Don't try adding .c to the name.
2643 * remote-bug.c: At the start of each section, reset srec_frame
2646 * target.h: Add TARGET_WAITKIND_LOADED and TARGET_WAITKIND_SPURIOUS.
2647 * target.c (store_waitstatus): Add CHILD_SPECIAL_WAITSTATUS hook.
2648 * infrun.c (wait_for_inferior): Replace SIGTRAP_STOP_AFTER_LOAD with
2649 code which looks for those two waitkinds. Use switch statement.
2650 * config/rs6000/tm-rs6000.h: Replace SIGTRAP_STOP_AFTER_LOAD with
2651 CHILD_SPECIAL_WAITSTATUS.
2653 * procfs.c (procfs_wait): Fix argument name to match 4 Jan changes.
2654 * Move target_signal_from_host, target_signal_to_host, and
2655 store_waitstatus from inftarg.c to target.c. procfs needs them.
2656 * target.c: Include "wait.h" and <signal.h>.
2657 * target.h, infrun.c (proceed), proceed callers: Pass new code
2658 TARGET_SIGNAL_DEFAULT instead of -1. This avoids problems with
2659 enums being treated as unsigned and is cleaner.
2660 * infrun.c (signals_info): Don't print TARGET_SIGNAL_DEFAULT or
2662 * infcmd.c (signal_command), infrun.c (signals_info):
2663 Don't allow user to specify numeric equivalent of
2664 TARGET_SIGNAL_DEFAULT.
2668 * config/alpha/alpha-netware.mt: New target support for Alpha
2670 * configure.in: Add alpha-*-netware* target.
2674 * remote-mips.c (mips_wait): Fix ref to TARGET_WAITKIND_STOPPED.
2678 * target.h: Add enum target_waitkind, enum target_signal, and
2679 struct target_waitstatus. Change status argument to target_wait to
2680 be struct target_waitstatus * instead of int *.
2681 * target.h, infrun.c, all targets: Change type of signal arguments
2682 to resume(), proceed(), and target_resume() from int to enum
2684 * All targets (*_wait, *_resume): Change accordingly.
2685 * infcmd.c (program_info, signal_command), throughout infrun.c,
2686 * fork-child.c, solib.c, hppa-tdep.c, osfsolib.c: Use this stuff.
2687 * convex-xdep.c, convex-tdep.c: Add FIXME's (getting the Convex
2688 signal code stuff right with the new signals would be non-trivial).
2689 * inferior.h (stop_signal): Make it enum target_signal not int.
2690 * target.c, target.h (target_signal_to_string, target_signal_to_name,
2691 target_signal_from_name): New functions.
2692 * inftarg.c, target.h (target_signal_to_host, target_signal_from_host,
2693 store_waitstatus): New functions.
2694 * procfs.c (procfs_notice_signals): Use them.
2695 * i960-tdep.c (i960_fault_to_signal): New function, to replace
2697 * config/i960/tm-i960.h: Don't define PRINT_RANDOM_SIGNAL.
2699 * objfiles.c (build_objfile_section_table): Don't abort() if
2700 objfile->sections is already set.
2702 * objfiles.c (add_to_objfile_sections): Check SEC_ALLOC not SEC_LOAD
2703 to match recent change to exec.c.
2707 * main.c (print_gdb_version): Change year to 1994.
2709 * ChangeLog, ChangeLog-93: Split ChangeLog at 1994.
2710 * Makefile.in (NONSRC): Add ChangeLog-93.
2714 * stabsread.c (read_type): Allow defining several type numbers
2715 at once (e.g. "(1,2)=(3,4)="...).
2717 * stabsread.c (read_enum_type): Use TARGET_INT_BIT not sizeof (int).
2719 * breakpoint.c (frame_in_dummy): Check PC as well as frame.
2723 * mdebugread.c (psymtab_to_symtab_1): Only pass N_STAB symbols
2724 to process_one_symbol.
2725 * symtab.c (find_pc_psymbol): Search global_psymbols as well to
2726 avoid caching a bad endaddr in find_pc_partial_function.
2730 * config/m68k/tm-sun3.h: Don't define BELIEVE_PCC_PROMOTION.
2734 * infrun.c (wait_for_inferior): Do not step or step resume past
2735 the end of a one-line function we just stepped into.
2737 For older changes see ChangeLog-93
2743 version-control: never