3 * Makefile.in (LD_FOR_TARGET): Look for ld in ../ld/ld.new.
5 * i386-nlmstub.c: Add support for NODE, PORT and BAUD command
10 * symfile.c (deduce_language_from_filename): Recognize .S as asm,
11 .cp as C++, alphabetize better.
13 * breakpoint.c (ignore, condition): Move usage note into body of
14 help text, so first line can be one-line summary.
18 * target.c (unpush_target): Fix handling of removal of top target.
22 * Makefile.in: Add stuff to build nlmstub.
23 * Add rule for annotate.o to keep Sun make happy.
24 * configure.in: Add config for powerpc/Netware.
26 * partial-stab.h (near N_SO): Don't call START_PSYMTAB with null
27 filename. This speeds up handling of trailing N_SO stabs (they
28 mark the end of a .o file).
30 * target.c, target.h: Change the way pushing and popping of
31 targets work to support target overlays and inheritance.
32 * corelow.c, hppa-tdep.c, inflow.c, remote-nindy.c, utils.c:
33 Fixup references to current_target, due to previous changes.
35 * config/i386/tm-i386nw.h: Enable longjmp support. More work is
36 needed to get the address of longjmp out of the target.
40 * main.c: Include <ctype.h>.
44 * remote-mips.c (mips_readchar): Fix a bug in checking <IDT>
49 * solib.c (look_for_base): Don't deref exec_bfd if NULL.
53 * Makefile.in (VERSION): Bump to 4.12.4.
58 * configure.in (m88*-harris-cxux*): New configuration.
59 * cxux-nat.c, config/m88k/cxux.mh, config/m88k/cxux.mt,
60 config/m88k/xm-cxux.h, config/m88k/tm-cxux.h, config/m88k/nm-cxux.h:
62 * config/m88k/tm-m88k.h: Add comment about Harris OS.
63 (TARGET_WRITE_PC): Pass pid through to register writers.
65 * configure.in (m68*): Put vendor-only-specified host configs
66 after vendor-and-os-specified configs.
67 (m68*-atari-sysv4*, m68*-cbm-sysv4*): Replace with m68*-*-sysv4.
69 * config/m88k/delta88.mh (MUNCH_DEFINE): Remove.
70 * config/m88k/delta88.mt, config/m88k/delta88v4.mh: Format
75 * elfread.c (elf_symtab_read): Handle error return from
76 bfd_get_dynamic_symtab_upper_bound gracefully.
80 * inferior.h (ARCH_NUM_REGS): New macro, actual number of
81 registers in use by the inferior.
82 * coredep.c (fetch_core_registers, register_addr): Use it.
83 * findvar.c (registers_changed, registers_fetched,
84 read_register_bytes): Ditto.
85 * infcmd.c (do_registers_info, registers_info): Ditto.
86 * infptrace.c (fetch_inferior_registers,
87 store_inferior_registers): Ditto.
88 * stack.c (frame_info): Ditto.
90 * coredep.c (CORE_REGISTER_ADDR): New macro.
91 (fetch_core_registers): Use it.
93 * breakpoint.c (ignore, condition): Add usage notes to help strings.
94 * symfile.c (add-symbol-file): Add usage note to help string.
95 (add_shared_symbol_files_command): New command.
98 * inferior.h (read_pc_pid): Declare.
99 * breakpoint.c (watchpoint_check): Cache breakpoint in local
100 variable b, remove unused variable other_type_used.
101 * main.c (inferior.h, call-cmds.h): Include.
103 * remote.c (remote_wait): Return 0 by default.
107 Stop printing at null char option, from Oliver Meyer
109 * valprint.h, valprint.c (stop_print_at_null): New global.
110 * valprint.c (_initialize_valprint): New print set subcommand
112 * c-valprint.c (c_val_print): If stop_print_at_null is on, and
113 printing a char array, adjust the number of chars to print.
118 * m88k-tdep.c (examine_prologue): Modified to handle prologues for
119 pic code in addition to prologues where an instruction from the
120 prologue gets moved into the delay slot of a branch instruction
121 immediately following the prologue. A table of potential prologue
122 instructions (prologue_insn_tbl) is now used for picking apart a
124 (frame_find_saved_regs): Changed the way in which limit gets set
125 so that the delay slot of branch instructions immediately
126 following the prologue gets examined.
127 (pushed_size, store_parm_word, store_parm, push_parameters,
128 collect_returned_value): Deleted.
132 * infrun.c (wait_for_inferior): Handle stepping into leaf
133 functions whose prologue consists of gp loading code only.
137 * dbxread.c: Don't include libbfd.h.
138 * dwarfread.c, elfread.c somread.c: Don't include libbfd.h,
139 <time.h>, or <sys/types.h>.
140 * elfread.c (elf_symfile_read): Use only standard BFD functions to
141 collect information about the stab and stab string sections.
145 * stabsread.c (read_huge_number): handle large unsigned number
146 for stabs generated by os9k C compiler.
151 * breakpoint.h (hit_count): New breakpoint field.
152 * breakpoint.c (show_breakpoint_hit_counts): New variable.
153 (clear_breakpoint_hit_counts): New function.
154 (bpstat_stop_status): Increment the hit count.
155 (breakpoint_1): Display the hit count.
156 * infcmd.c (run_command): Reset breakpoint hit counts.
157 * target.c (generic_mourn_inferior): Don't clear ignore counts if
158 displaying hit counts.
162 * elfread.c (elf_symfile_read): Unconditionally add dynamic
163 symbols for all symbol files. Makes skipping over the
164 trampoline code work when stepping from a function in a shared
165 library into a function in a different shared library for Irix 5.
166 Other ELF targets do not have enough information in their
167 dynamic symbol tables to make this work.
168 (elf_symtab_read): Relocate mst_solib_trampoline address.
173 * configure.in (m68*-atari-sysv4*): New configuration.
174 (m68*-cbm-sysv4*): Use m68kv4 instead of amix.
175 * m68k-tdep.c (R_PS): Define as R_SR if necessary.
176 * config/m68k/m68kv4.mh, config/m68k/m68kv4.mt,
177 config/m68k/tm-m68kv4.h, config/m68k/xm-m68kv4.h: New files.
178 * config/m68k/amix.mh, config/m68k/amix.mt,
179 config/m68k/tm-amix.h, config/m68k/xm-amix.h: Removed, superseded
184 * symtab.c (find_function_start_sal): New function to find
185 the start of a function from a function symbol.
186 (decode_line_1, decode_line_2): Use it instead of open coded
187 partial copies of the code.
188 (list_symbols): Quote symbol name before passing it to
189 break_command to enable proper handling of mangled symbols.
193 * ch-exp.y (match_simple_name_string): Don't lower-case here.
194 * ch-exp.y (yylex): First try name lookup using exact name
195 typed by user; if that fails, try lower-cased name.
199 * dbxread.c, elfread.c, mipsread.c, nlmread.c, os9kread.c:
200 Move "no debugging symbols found" test to symfile.c.
201 * symfile.c (syms_from_objfile, reread_symbols): Add
202 "no debugging symbols found" test.
203 * coffread.c (init_stringtab): Handle stripped files with a
204 stringtab offset of zero gracefully.
205 * osfsolib.c (solib_create_inferior_hook): Use DYNAMIC flag from
206 BFD instead of stop_pc heuristic to determine if it is a dynamically
208 * procfs.c (wait_fd): Handle ENOENT error return from PIOCWSTOP
209 ioctl, it indicates that the process has exited.
213 * hppa-tdep.c (read_unwind_info): ELF unwind information is in the
214 .PARISC.unwind section now.
218 * breakpoint.c (mention): Always show breakpoint address if no
223 * solib.c (bfd_lookup_symbol, look_for_base): Reinstate to reenable
224 handling of shared libraries for non-ELF executables, but only if
225 HANDLE_SVR4_EXEC_EMULATORS is defined.
226 (locate_base): Try to find debug_base in the dynamic linker
227 for non-ELF executables if HANDLE_SVR4_EXEC_EMULATORS is defined.
228 * config/sparc/tm-sun4sol2.h (HANDLE_SVR4_EXEC_EMULATORS):
229 Define to enable handling of shared libraries for a.out executables,
230 run under Solaris BCP.
234 * infrun.c (wait_for_inferior): Print "Program exited normally"
235 regardless of batch_mode.
236 * defs.h, top.c (batch_mode): Removed.
240 * Makefile.in (dcache_h): Remove redundant definition.
241 (init.c): Add a comment.
242 (top.c): Remove explicit compile action.
243 * breakpoint.c (mention): Share code indicating location of
244 break/watchpoints, don't print address if addressprint is off.
245 * breakpoint.c, c-typeprint.c, c-valprint.c, energize.c, symtab.h
246 (demangle): Remove redundant declarations.
247 * eval.c: Remove redundant function declarations.
248 * objfiles.h: Cosmetic and grammatical improvements.
249 * TODO: Various updates.
251 * remote-mips.c: Replace all \r chars with \015.
252 (mips_receive_header): Display control characters readably.
253 (mips_xfer_memory): Add a simple progress display.
257 * remote-e7000.c (e7000_open): Don't try a tcp open if we're
259 * remote-hms.c (flush): New function.
260 (expect): Get edge case right.
261 (hms_read_inferior_memory): Be more tolerant of line noise.
265 * configure.in: Use i386m3.mh and i386m3.mt as names of host and
266 target files, not non-existent mach3.mh and mach3.mt.
270 * dbxread.c (dbx_symfile_read): Unconditionally add dynamic
271 symbols for all symbol files. Makes skipping over the
272 trampoline code work when stepping from a function in a shared
273 library into a function in a different shared library.
274 (read_dbx_dynamic_symtab): Relocate mst_solib_trampoline address.
278 * dbxread.c, partial-stab.h (near N_SO): SO stabs with blank
279 names mean end of .o file.
280 * infrun.c (wait_for_inferior): Clean up multi-thread logic near
281 top of routine. Handle new thread notification cleanly.
282 * lynx-nat.c (child_wait): General cleanups, handle new LynxOS
283 thread notification scheme.
284 * (child_resume): General cleanups, handle resumption of all
289 * ser-go32.c: Rewrite to run under windows.
290 * ser-e7kpc.c: New file to support the E7000 with the PC ISA
292 * serial.c (serial_open): Notice device "pc".
293 * remote-e7000.c: Fix copyright date.
294 (expect): Compare \n and \r the same.
295 (e7000_open): Allow pc as a serial port
296 * sh/sh.mt: Add ser-e7kpc.
297 * h8300/h8300hms.mt: Add ser-e7kpc.
298 * main.c (proc_wait): Don't wait if using go32.
302 * somread.c: Simplify by using stabsect_build_psymtabs.
303 * dbxread.c (stabsect_build_psymtabs): New argument "text_name"
304 corresponding to the name of the text section. All references
306 (somstab_build_psymtabs): Delete function, no longer needed.
310 * somread.c: Renamed from paread.c. Changed function names and
311 comments to reflect that this file deals with SOM (an object file
312 format), rather than the PA (a cpu).
313 (Makefile.in): Chaned appropriately.
314 (config/pa/hppabsd.mh, config/pa/hppahpux.mh): Likewise.
315 * dbxread.c (somstab_build_psymtabs): Renamed from
316 pastab_build_psymtabs.
320 * core-sol2.c: New file to handle ELF and BCP core file flavours.
321 * config/sparc/sun4sol2.mh (NATDEPFILES): Use it instead of
323 * Makefile.in: Updated for core-sol2.c.
324 * README: Add notes about SPARCworks cc under Solaris 2.x,
326 * config/mips/xm-makeva.h: Removed, no longer necessary.
327 * Makefile.in, config/mips/xm-irix3.h, config/mips/xm-irix5.h,
328 config/mips/xm-mips.h, config/mips/xm-news-mips.h,
329 config/mips/xm-riscos.h: Remove references to xm-makeva.h
333 * gdba.el: Put program input and output in a separate buffer.
337 * energize-patches, main.c (main), top.c (gdb_init, pwd_command),
338 top.h: Change all occurances of dirbuf to gdb_dirbuf. Collides
339 with global variable of same name in libnsl.so on UnixWare.
343 * symtab.c (decode_line_1): fix a bug in dealing with '<>'
344 embedded in template name.
348 * config/i386/nm-linux.h: change calling convention of
349 TARGET_CAN_USE_HARDWARE_WATCHPOINT() and
350 target_insert_watchpoint() and
351 target_remove_watchpoint().
353 * config/mips/tm-mips64.h: define FORCE_LONG_LONG to force LONGEST
354 to be long long in gdb.
355 * config/mips/tm-bigmips.h: ditto.
359 * c-lang.c (asm_language_defn): New definitions for language_asm,
360 mostly copied from c_language_defn, to avoid warnings when
361 switching between c and asm stack frames.
365 * mdebugread.c (parse_symbol): Don't call ecoff_swap_tir_in or
366 ecoff_swap_rndx_in directly; use the debug_swap pointer instead.
367 (upgrade_type, handle_psymbol_enumerators): Likewise.
368 (has_opaque_xref, cross_ref): Likewise.
369 (elfmdebug_build_psymtabs): Call swap->read_debug_info to read
370 debugging information, rather than doing it here.
371 * mipsread.c (mipscoff_symfile_read): Call read_debug_info entry
372 point in ecoff_debug_swap backend structure, rather than calling
373 ecoff_slurp_symbolic_info directly.
377 * breakpoint.c: Include annotate.h. Call annotate_field rather
378 than printing annotation directly.
380 * main.c: Include string.h.
384 * fork-child.c (startup_inferior) [STARTUP_INFERIOR]: If defined,
385 call it instead of doing normal loop.
386 * infcmd.c (attach_command): Don't call wait_for_inferior if
388 * infrun.c (proceed) [PREPARE_TO_PROCEED]: If defined, call
389 hook that can decide whether to step over the next breakpoint.
390 * utils.c (wrap_here): Abort if wrap_buffer not allocated.
391 (request_quit) [REQUEST_QUIT]: If defined, call it instead of
394 * configure.in: Improve sorting/formatting of hosts and targets.
395 (i[34]86-*-mach3*, i[34]86-*-osf1mk*, mips-*-mach3*,
396 m88*-*-mach3*, ns32k-*-mach3*): Recognize.
397 * Makefile.in (stop-gdb): New target.
398 * stop-gdb.c: New file, utility to get attention of waiting GDBs
403 * top.c (gdb_init): Init current_directory in gdb_init. Probably
404 the identical initialization can be deleted from main.c, but i
405 haven't done so just in case.
409 * gdba.el: Added menu windows and slightly improved window
410 handling to gdba.el. Fixed numerous minor bugs that were causing
411 emacs and gdb to fall out of sync.
415 * breakpoint.c: annotate changes lost at merge, put back in.
419 * config/i386/i386sco.mh, i386sco4.mh (XDEPFILES): Remove
424 * config/m68k/dpx2.mh (NATDEPFILES): Remove duplicate inclusion
426 * config/m68k/tm-dpx2.h (CANNOT_STORE_REGISTER): Define to inhibit
427 writing of floating registers, the dpx2 kernel disallows it.
428 * irix5-nat.c (LM_ADDR): The loaded address of the shared library
429 is contained in o_praw.
430 * irix5-nat.c (solib_map_sections): Adjust sections by the
431 difference between the loaded address and the prelinked address.
432 * irix5-nat.c (solib_address): Use LM_ADDR for the loaded start
434 * mdebugread.c (parse_symbol): Do not relocate stEnd/scText
435 symbols, their value is absolute.
436 * mdebugread.c (parse_partial_symbols): Handle Irix 5.2 shared
437 libraries fh->adr fields of zero. Relocate minimal symbol values
438 upon readin. Relocate non-stabs symbols upon readin.
439 * mdebugread.c (psymtab_to_symtab_1): Use pst->textlow for the
440 start address of the outermost block.
441 * mdebugread.c (parse_lines, parse_procedure): Pass in pst
442 instead of section_offsets and use relocated pst->textlow for
443 line number and procedure address relocations.
446 * mdebugread.c (parse_symbol, parse_partial_symbols, cross_ref):
447 Handle SGI Irix5 stIndirect symbol type.
451 * breakpoint.c: fix a syntax error native cc does not like.
453 * Makefile.in: change sparclite-tdep.c to sparcl-tdep.c.
454 * sparclite/Makefile.in: ditto.
455 * sparcl-tdpe.c: change file name because first 8 chars has to be
457 * sparcl-stub.c: ditto.
459 * .Sanitize: add sparclite-stub.c sparclite-tdep.c to keep.
461 * sparclite/Makefile.in: fix INCLUDE_CFLAGS to have {srcdir}/../config.
465 * hppa-tdep.c (target_read_pc, target_write_pc): Accept (and
466 ignore) a PID argument.
467 (hppa_pop_frame): Pass a PID to target_write_pc.
468 * config/pa/tm-hppa.h (TARGET_READ_PC, TARGET_WRITE_PC): Accept
469 and pass through a PID argument.
470 (target_read_pc, target_write_pc): Update prototypes.
474 * Makefile.in: add new file sparclite-tdep.c.
475 * sparclite/Makefile.in: add new file sparclite-stub.c.
476 * sparclite/hw_breakpoint.note: note for SPARClite hardware breapoint
478 * config/sparc/sparclite.mt: add sparclite-tdep.o.
479 * config/sparc/tm-sparclite.h: add hardware breakpoints support
481 * sparclite-tdep.c: new file, contains hardware breakpoint support
483 * sparclite-stub.c: new file, stub code that add support hardware
485 * breakpoint.c: add hardware breakpoint support.
486 * breakpoint.h: add new breakpoint type to support hardware
488 * config/mips/nm-irix4.h: change interface for target dependent
489 code supporting watch point.
490 * config/pa/nm-hppab.h: change interface for target dependent
491 code supporting watch point.
495 * remote-os9k.c (rombuf_command): fix a bug accepting rombug
497 * stabsread.c (read_struct_fields): os9k nested structure does not
498 have terminating ';', instead it just get to ',' and bit position
503 * nlmread.c (nlm_symtab_read): Clean up a bit.
504 * (nlm_symfile_read): Record bounds of main() so that backtrace
505 command will know where to stop.
506 * objfiles.c (objfile_relocate): Relocate entry point/func info
507 for backtrace as well.
508 * objfiles.h: Define values for invalid PCs for entry point info.
509 * symfile.c (init_entry_point_info): Initialize invalid values
510 with aforementioned macros.
511 * config/alpha/tm-alphanw.h: Turn on FRAME_CHAIN_VALID_ALTERNATE
512 to cause backtrace to stop when it gets back to main().
513 * config/i386/tm-i386nw.h: Ditto.
517 Fix value_print, which used to be ostensibly language-independent,
518 but would print pointers and arrays in C syntax. Instead, call
519 a language-specific function.
520 * language.h (struct language_defn): New functional field
522 (LA_VALUE_PRINT): New macro.
523 * language.c (unk_lang_value_print): New stub/dummy function.
524 (unknown_language_defn, auto_language_defn, local_language_defn):
526 * c-valprint.c (c_value_print): New function, with code moved from:
527 * valprint.c (value_print): ... here. Now just invoke
528 LA_VALUE_PRINT to do language-specific stuff.
529 * valprint.c (value_print_array_elements): Make non-static.
530 * c-lang.c (c_language_defn, cplus_language_defn): Add
531 c_value_print in the la_value_print field.
532 * m2-lang.c (m2_language_defn): Likewise.
533 * ch-lang.c (chill_language_defn): But here use chill_value_print.
534 * ch-valprint.c (chill_val_print): Print null pointer as NULL.
535 * ch-valprint.c (chill_value_print): New function, based on
536 c_value_print, but use Chill "look and feel."
537 * c-lang.h (c_value_print): New prototype.
538 * ch-lang.h (chill_value_print): New prototype.
539 * value.h (value_print_array_elements): New prototype.
541 * ch-valprint.c (chill_val_print, case TYPE_CODE_BITSTRING
542 and case TYPE_CODE_SET): Check that the element type isn't a stub.
546 * main.c: Move entire file except for #ifndef MAIN_OVERRIDE code
547 to new file top.c. Make things extern instead of static and
548 similar rearrangements to deal with this.
550 * utils.c: Move fputs_unfiltered to main.c. Remove
551 FPUTS_UNFILTERED_OVERRIDE ifndef.
552 * Makefile.in: Change so that gdb uses main.c, utils.c, and top.c,
553 and libgdb uses utils.c and top.c.
557 * hppa-tdep.c (skip_trampoline_code): Fix typo.
561 * ch-valprint.c (chill_val_print_array_elements): New function.
562 A Chill version of val_print_array_elements, it prints the
563 array index labels, in additions ot the array element values.
564 (chill_val_print): Use the new function.
568 * configure.in: Add nlm subdir to configdirs for alpha-*-netware
570 * defs.h (enum language): Add language_asm.
571 * findvar.c (read_register_bytes read_register_gen
572 write_register_bytes read_register read_register_pid
573 write_register write_register_pid supply_register): Move multi-
574 thread handling down into these routines. Create XXX_pid routines
575 that allow register references to specify the pid.
576 * findvar.c infcmd.c (read_pc read_pc_pid write_pc write_pc_pid
577 read_sp write_sp read_fp write_fp): Move these routines from
578 infcmd to findvar to centralize the whole mess.
579 * i386-nlmstub.c: Portability fixes.
580 * infptrace.c (child_resume): Conditionalize to allow other natives
581 to override it. Remove PIDGET gubbish, it's no longer necessary.
582 * infrun.c (wait_for_inferior): Put registers_changed() before
583 target_wait() to speed up remote debugging.
584 * Replace code that reads registers from other threads with much
585 nicer looking new function calls (see changes to findvar.c).
586 * Don't skip prologues if debugging assembly source.
587 * lynx-nat.c (child_resume): Lynx now needs it's own version of
588 child_resume to handle multi-thread debugging properly.
589 * remote.c: Add O response to get console output from target.
590 * (readchar): Add timeout parameter. Handle SERIAL_EOF and
591 SERIAL_ERROR here to simplify callers.
592 * Change static var timeout to remote_timeout.
593 * (fromhex): Remove unnecessary return -1 at end of routine.
594 * (remote_wait): Turn this into a big switch statement. Add
595 support for O response.
596 * (putpkt): Remove unnecessary handling of SERIAL_EOF/ERROR.
597 * (getpkt): Split getpkt into two parts. read_frame deals with
598 all formatting issues, run-length encoding, and framing. getpkt
599 now handles error recovery, and frame detection.
600 * ser-tcp.c (tcp_readchar): Handle EINTR from read().
601 * ser-unix.c (hardwire_raw): Set CLOCAL so that we ignore modem
602 control. (hardwire_readchar): Handle EINTR from read().
603 * symfile.c (deduce_language_from_filename): Add support for .s
605 * config/nm-lynx.h: Define CHILD_WAIT so that lynx-nat.c can
606 override infptrace's child_wait.
607 * config/rs6000/rs6000lynx.mh: Use xm-rs6000ly.h & nm-rs6000ly.h
608 instead of XXXlynx.h.
609 * config/rs6000/rs6000lynx.mt: Use tm-rs6000ly.h instead of
611 * nlm/gdbserve.c: Portability fixes.
615 * inftarg.c (child_wait): Call proc_wait, not wait.
616 (child_mourn_inferior): Call proc_remove_foreign.
617 * main.c (gdb_init): Call init_proc.
618 * main.c: Provide dummy versions of init_proc, proc_wait, and
619 proc_remove_foreign for the gdb case (the libgdb case provides its
620 own versions of these functions).
621 * Makefile.in (libgdb-files): Add libproc.a.
625 Hardware watchpoints for Linux, from Rick Sladkey
627 * infrun.c (wait_for_inferior) [HAVE_CONTINUABLE_WATCHPOINT]: Add
628 new hardware breakpoint recovery method.
629 * i386v-nat.c (i386_insert_watchpoint,
630 i386_insert_nonaligned_watchpoint, i386_remove_watchpoint,
631 i386_stopped_by_watchpoint) [TARGET_CAN_USE_HARWARE_WATCHPOINT]:
632 New functions to support the 386 hardware debugging registers.
633 * config/i386/nm-linux.h (TARGET_CAN_USE_HARDWARE_WATCHPOINT,
634 HAVE_CONTINUABLE_WATCHPOINT, STOPPED_BY_WATCHPOINT,
635 target_insert_watchpoint, target_remove_watchpoint): Define these
636 macros to use the hardware debugging functions in i386v-nat.c.
640 * Makefile.in: Replace libgdb.a with libgdb-files. Make "all"
645 * target.c, target.h: New variables target_activity_function and
647 * inflow.c, inferior.h: New functions set_sigio_trap and
649 * inftarg.c (child_wait), procfs.c (wait_fd): Call them.
653 * remote-sim.h (sim_verbose): Delete.
654 Document callbacks needed.
655 (sim_*): Change result to void where there isn't one.
656 (sim_open): Clarify argument and error response.
657 (sim_close): Declare.
658 (sim_load): Change bfd_handle argument to file name. Clarify result.
659 (sim_create_inferior): Renamed from sim_set_args.
660 (sim_set_pc): Delete.
661 (sim_info): Delete printf_fn argument.
662 * remote-sim.c (gdbsim_kill): Add comment describing purpose.
663 (gdbsim_load): Try sim_load first.
664 (gdbsim_create_inferior): Call sim_create_inferior.
665 (gdbsim_open): Handle args == NULL. Update call to sim_open.
666 (gdbsim_close): Call sim_close.
667 (gdbsim_files_info): Update call to sim_info.
668 (gdbsim_ops): Realign comments.
670 * printcmd.c (decode_format): Allow TARGET_PTR_BIT to be non-constant.
674 * xcoffread.c (read_xcoff_symtab): For C_FILE symbols, only use
675 the auxent if the symbol's name is ".file". From David Edelsohn
680 * breakpoint.c (breakpoint_1): Fix typo.
682 * annotate.c (annotate_field_end): Fix typo.
684 * Makefile.in: Move annotate.o from COMMON_OBS to OBS.
686 * Makefile.in (TSSTART): Remove; no longer used.
688 * utils.c (vfprintf_maybe_filtered, vfprintf_unfiltered): Call
689 fputs_unfiltered and exit directly, rather than fatal. The latter
690 calls vfprintf_unfiltered!
692 * gdbtypes.h, gdbtypes.c (can_dereference): New function.
693 * value.h, printcmd.c (print_value_flags): Move from here...
694 * annotate.c: ...to here, and make it use can_dereference.
698 * inflow.c (job_control, attach_flag, generic_mourn_inferior):
699 Remove, needed for both native and cross.
700 * target.c (attach_flag, generic_mourn_inferior): Put here.
701 * utils.c (job_control): Put here.
702 (terminal.h): Don't include anymore.
706 * source.c (find_source_lines): Always use code that was #ifdef
707 BROKEN_LARGE_ALLOCA. Do the cleanup before returning, rather than
708 leaving it on the chain. Reindent much of this function.
709 * config/sparc/{xm-sun4sol2.h,xm-sun4os4.h},
710 config/i386/{xm-sun386.h,xm-i386m3.h,xm-i386mach.h},
711 config/m68k/{sun3os4.h,xm-news.h,xm-hp300hpux.h},
712 config/ns32k/xm-ns32km3.h: Remove all references to
713 BROKEN_LARGE_ALLOCA; with the above change it is no longer needed.
714 * main.c, fork-child.c, many config files: Remove all
715 SET_STACK_LIMIT_HUGE code; with the above changes it should no
718 * symtab.c (lookup_partial_symbol): Use if and abort, not assert.
719 This avoids __eprintf troubles.
723 * main.c (main): Surround in #ifndef MAIN_OVERRIDE. Move
724 initialization code which needs to be called even if we bypass the
725 command line stuff into gdb_init.
726 * utils.c (fputs_unfiltered): Surround in #ifndef
727 FPUTS_UNFILTERED_OVERRIDE.
728 * Makefile.in (libgdb.a): New target.
730 * utils.c: Rearrange I/O stuff a bit so that all output goes
731 through fputs_unfiltered. Use vasprintf; removes arbitrary limit
732 which made %s not work with arbitrarily large strings.
733 * printcmd.c (printf_command): Use printf_filtered, not
734 printf_unfiltered and printf, now that arbitrary limit is gone.
737 * breakpoint.c (watchpoint_check): Remove unused variable b.
738 * stack.c (print_frame_info): Move sp and buf inside #if.
739 * eval.c (evaluate_subexp): Remove unused variables pp,
740 mangle_ptr, ptr, and mangle_tstr.
741 * valarith.c (value_x_binop): Remove unused variables mangle_tstr
743 * symtab.c (lookup_symtab): Put variable copy inside #if.
744 (decode_line_1): Put variable q1 inside #if 0.
745 * target.h: Declare target_link.
746 * infrun.c (wait_for_inferior): Remove unused variables signame.
747 * remote.c (remote_resume): Remove unused variable name.
748 * c-exp.y (parse_number): Parenthesize operand of shift.
749 * dbxread.c (record_minimal_symbol): Parenthesize operand of &&
750 (this is a semantic change, the warning seems to have detected a bug).
751 * dbxread.c (end_psymtab): Move variable p1 inside #if.
752 * coffread.c: Move variable temptype inside #if.
753 * ch-typeprint.c (chill_type_print_base): Remove unused variable
755 * ch-valprint.c: #include typeprint.h and ch-lang.h.
756 (chill_val_print): Remove unused variable in_range.
757 (chill_val_print): Remove statement "length > TYPE_LENGTH (type);".
758 (chill_val_print): Add default case for switch.
759 * stabsread.h: Declare stabsect_build_psymtabs.
760 * os9kread.c (read_minimal_symbols): Make this return void.
761 (os9k_symfile_read): Remove unused variables stb_exist and val.
762 (os9k_symfile_init): Remove unused variable val.
763 (fill_sym): Remove unused variable id.
764 (read_os9k_psymtab): Put variable back_to inside #if 0. Remove
766 Remove unused variable symfile_bfd.
767 #if 0 unused variables lbrac_unmatched_complaint and
768 lbrac_mismatch_complaint.
769 Remove declaration for non-existent function os9k_next_symbol_text.
771 * annotate.c, annotate.h: New files, containing a function for
772 each annotation which outputs it.
773 * Move breakpoints_changed from breakpoint.c to annotate.c.
774 * breakpoint.c, blockframe.c, infrun.c, cp-valprint.c, main.c,
775 printcmd.c, source.c, stack.c, utils.c, valprint.c:
776 Use annotate.c functions to output annotations.
777 * Makefile.in (OBS): Add annotate.o.
781 * hppa-tdep.c (read_unwind_info): Make sure elf_unwind_size and
782 elf_unwind_entries are always initialized.
784 * hppa-tdep.c (skip_trampoline_code): Handle argument relocation
785 stubs which return directly to the caller rather than to the stub
790 * c-exp.y (yyerror): Display a more informative error message.
791 * ch-exp.y (yyerror): Ditto, don't use global yychar.
792 * m2-exp.y (yyerror): Ditto.
796 * inflow.c (job_control): Move definition to front of file.
800 * maint.c (print_section_table): Rename SEC_SHARED_LIBRARY to
801 SEC_COFF_SHARED_LIBRARY to match corresponding change in bfd.
805 * Makefile.in (kdb): Remove old init.c creation commands.
806 * configure.in (sparclite): Match on sparclite*.
807 * sparclite/aload.c (main): Only change section addresses for
808 a.out format object files.
812 * config/i386/go32.mh: Define CC.
816 * gdbserver/Makefile.in: Remove irrelevant definitions and
817 comments inherited from the gdb Makefile.
818 (BFD_DIR, BFD, BFD_SRC, BFD_CFLAGS): Add from gdb Makefile.
819 (VERSION): Update to 4.12.3.
820 (gdbserver): Remove any existing executable first.
821 (distclean, realclean): Remove nm.h.
822 * gdbserver/low-lynx.c: Add Sparc Lynx support.
823 * gdbserver/low-sparc.c, gdbserver/low-sun3.c (sys/wait.h):
824 Don't use absolute pathname.
828 * rs6000-nat.c (vmap_ldinfo): Don't fail if fstat returns an
833 * infrun.c (proceed, normal_stop, wait_for_inferior), breakpoint.c
834 (print_it_normal): Add annotations for the inferior starting and
835 stopping, and for all the various messages related to how it
838 * printcmd.c (do_one_display): Annotate.
839 * stack.c (print_frame_info): Annotate printing of stack frames.
843 * remote.c (get_offsets): Handle case where stub doesn't support
848 Add partial support for g++ code compiled with -fvtable-thunks.
849 * c-valprint.c (c_val_print): Add vtblprint support
851 * cp-valprint.c (cp_is_vtbl_member): A vtable can be an array of
852 pointers (if using thunks) as well as array of structs (otherwise).
853 * cp-valprint.c (vtbl_ptr_name_old, vtbl_ptr_name): Move to global
854 level, and make the latter non-static (so define_symbol can use it).
855 * stabsread.c (define_symbol): If the type being defined is a
856 pointer type named "__vtbl_ptr_type", set the TYPE_NAME to that name.
857 * symtab.h (VTBL_PREFIX_P): Allow "_VT" as well as "_vt".
858 * values.c (value_virtual_fn_field): Handle thunks.
859 * values.c (value_headof): Minor efficiency hack.
860 * values.c (value_headof): Incomplete thunk support. FIXME.
864 * valprint.c (print_longest): Clarify comment about use_local.
865 * printcmd.c, defs.h (print_address_numeric), callers in
866 symmisc.c, symfile.c, stack.c, source.c, remote.c, infcmd.c,
867 cp-valprint.c, core.c, ch-valprint.c, c-valprint.c, breakpoint.c,
868 exec.c: New argument use_local.
869 * source.c (identify_source_line): Use filtered output. Use
870 print_address_numeric.
872 * core.c (memory_error), symtab.c (cplusplus_hint, decode_line_1),
873 language.c (type_error, range_error): Use filtered output.
874 * utils.c (error_begin): Update comment to tell people to use
877 * Makefile.in (HFILES_WITH_SRCDIR): List bfd.h.
878 (HFILES_NO_SRCDIR): List gdbcore.h not gdbcore_h, so as not to get
883 * procfs.c (procfs_wait): Reinstate code which deduces the signal
884 from the fault, #ifndef FAULTED_USE_SIGINFO.
885 * config/sparc/tm-sun4sol2.h: Define FAULTED_USE_SIGINFO.
889 * breakpoint.c (breakpoint_1): Annotate each field of the headers.
890 Explicitly annotate each record.
894 * xcoffexec.c: Reformat to standards and lint.
895 (language.h): Include.
896 (exec_close): Declare arg "quitting".
897 (file_command): Declare arg "from_tty".
898 (map_vmap): Cast xmalloc result to PTR.
899 * rs6000-nat.c: Reformat to standards and lint.
900 (exec_one_dummy_insn): Use char array for saved instruction.
901 (fixup_breakpoints): Declare.
902 (vmap_ldinfo): Be more informative in fatal error messages.
903 (xcoff_relocate_symtab): Define to return void.
904 * xcoffsolib.h: Reformat to standards, improve comments.
905 * config/rs6000/nm-rs6000.h (xcoff_relocate_symtab): Declare.
909 * utils.c, defs.h (error_begin): New function.
910 (quit): Print annotation before printing the error message.
911 * main.c (return_to_top_level): Print annotation before doing the
913 * symtab.c (decode_line_1): Call error not warning and then
914 return_to_top_level. Call error_begin and printf_unfiltered
915 rather calling warning (before calls to return_to_top_level).
916 * core.c (memory_error): Use error_begin, printf_unfiltered,
917 print_address_numeric and return_to_top_level instead of error.
918 Cleans up a FIXME-32x64.
919 * language.c (type_error, range_error): Call error_begin
920 not just target_terminal_ours.
922 * dbxread.c (stabsect_build_psymtabs): Assign to sym_stab_info
923 directly, rather than via DBX_SYMFILE_INFO. A cast on the left
924 side of an assignment is non-portable.
926 * utils.c (query): Change syntax of query annotations to be
927 consistent with other input annotations.
928 (prompt_for_continue): Likewise for prompt-for-continue annotation.
932 * mdebugread.c (psymtab_to_symtab_1): Do not call sort_blocks
934 * mips-tdep.c (mips_skip_prologue): Handle prologues for functions
935 that have a stack frame size of 32k or larger (from Paul Flinders).
940 * lynx-nat.c (CANNOT_STORE_REGISTER): Add a fallback definition
941 for Lynx platforms that need it.
942 * config/nm-lynx.h (__LYNXOS): Define if not already defined.
946 * procfs.c (procfs_wait): Use the signal from the pr_info rather
947 than trying to deduce it from the fault.
951 * printcmd.c (print_address_symbolic): Initialize name to empty
952 string to avoid core dump if lookup fails.
953 * remote-e7000.c (printf_e7000debug): Error if target not open.
955 Tue Apr 26 22:45:24 1994 Stu Grossman (grossman at cygnus.com)
957 * i386-nlmstub.c: Update to be more in line with PIN stub.
958 * nlm/gdbserve.c (putDebugChar): Install bug fix from i386-nlmstub.
959 * (hex2mem): Init ptr.
960 * General cleanups to use ConsolePrintf, standard prologues, etc...
962 Tue Apr 26 10:23:04 1994 Stu Grossman (grossman at cygnus.com)
964 * i386-nlmstub.c: More changes to be compatible with remote.c.
966 * dbxread.c: Move a bunch of strncmps out of process_one_symbol
967 into (the far less frequently called) dbx_symfile_read.
969 * i386-nlmstub.c: An interim version till we get PIN for the x86.
971 Tue Apr 26 09:50:45 1994 Stu Grossman (grossman at cygnus.com)
973 * dbxread.c (record_minimal_symbol): Record the section
974 associated with the symbol to make dynmaic relocation work.
975 * (dbx_symfile_read, process_one_symbol): Fixes to work around
976 Solaris brain-damage which don't apply to relocatable object
978 * (stabsect_build_psymtabs): New routine to read stabs out of an
979 arbitrarily named section.
980 * nlmread.c (nlm_symtab_read): Read ALL syms from the NLM, not just
982 * (nlm_symfile_read): Call stabsect_build_psymtabs to read the
983 stabs out of the nlm.
984 * partial-stabs.h (cases 'f' & 'F'): Fixes to work around Solaris
985 brain-damage which don't apply to relocatable object files.
986 * remote.c (putpkt): Improve error reporting and error handling.
987 * (get_offsets): Temporary kludge to force data & bss sections to
988 have the same relocation.
989 * stabsread.c (define_symbol, scan_file_globals): Record section
994 * breakpoint.c (breakpoint_1): Annotate each field of output. Add
999 * infrun.c (wait_for_inferior): Move call to flush_cached_frames
1000 to after call to target_wait. This means that flush_cached_frames
1001 can call target_terminal_ours if it wants to.
1002 * infrun.c (wait_for_inferior) [HAVE_NONSTEPPABLE_WATCHPOINT]: Add
1003 comment about why the code is dubious.
1005 * stabsread.c (read_type): Call read_type, not nonexistent
1010 * remote-os9k.c (rombug_fetch_registers): set trace mode
1012 * remote-os9k.c (rombug_read_inferior_memory): cache data in
1014 * os9kread,c (read_os9k_psymtab): process file symbol to truncate
1016 * os9kread.c (os9k_read_ofile_symtab): proper casting of args
1017 passed to process_one_symbol.
1018 * stabsread.c (read_type): process os9k functio prototype.
1022 * solib.c (symbol_add_stub): If so->textsection is NULL, don't
1027 * utils.c (prompt_for_continue): Annotate prompt.
1028 (query): Annotate query.
1029 * printcmd.c (print_frame_args): Change syntax of argument
1030 annotation to make name and value part of a single group of
1031 annotations, not two separate groups.
1032 * cp-valprint.c (cp_print_value_fields): Likewise for fields.
1033 * valprint.c (val_print_array_elements): Change syntax of
1034 annotation to be more concise.
1035 * main.c, defs.h (command_line_input): New argument tells what
1036 string to include in the annotations.
1037 * symtab.c (decode_line_2), main.c (read_command_lines,
1038 command_loop): Change callers.
1040 * breakpoint.c (watch_command): Use (CORE_ADDR)0, not NULL, for
1041 target null pointer.
1042 * blockframe.c (find_frame_addr_in_frame_chain): Likewise.
1044 * printcmd.c (output_command): Annotate things we print here too.
1045 * printcmd.c (print_command_1): Add "value-history-value" annotation.
1046 * Move declaration of print_value_flags from defs.h to value.h.
1047 * main.c (command_line_input): Call wrap_here as well as gdb_flush.
1051 * dbxread.c (read_dbx_dynamic_symtab): Reinstall support for sun3,
1052 BFD handles sun3 dynamic relocations now.
1053 * elfread.c (elf_symtab_read, elf_symfile_read): Handle dynamic
1058 * printcmd.c (print_command_1): Annotate the top-level expressions
1060 (print_frame_args): Annotate each argument.
1061 * printcmd.c, defs.h (print_value_flags): New function.
1062 * cp-valprint.c (cp_print_value_fields): Annotate each field.
1063 * valprint.c (val_print_array_elements): Annotate each array element.
1067 * findvar.c (read_var_value): Handle LOC_REPARM_ADDR case correctly,
1068 the register contains a pointer to the type, not the type itself.
1072 * main.c (main): Accept --annotate=N option and make --fullname
1073 the same as --annotate=1.
1074 (command_line_input): Print annotatation before and after prompt.
1075 * blockframe.c (flush_cached_frames): Print annotation.
1076 * Rename frame_file_full_name to annotation_level and move it from
1078 * source.c (identify_source_line): If annotation_level > 1,
1079 change output format.
1080 * breakpoint.c: Print annotation whenever a breakpoint changes.
1081 * main.c: New variable server_command.
1082 (command_line_input): Parse "server " and set server_command.
1083 (dont_repeat): Check server_command.
1087 * xcoffread.c (xcoff_next_symbol_text): Don't return before
1088 updating raw_symbol and symnum. Return a value in the case where
1091 * dstread.c, coffread.c: Don't define pending_blocks; buildsym.c
1093 * parse.c: Don't define block_found; it is defined in symtab.c.
1094 * parser-defs.h: Add comment regarding block_found.
1098 * hppa-tdep.c (internalize_unwind_info): Delete unused indexp
1103 * dbxread.c (read_dbx_dynamic_symtab): Relocate BFD symbols by
1104 section vma. Do not read dynamic relocs for sun3 executables to
1105 avoid BFD assertion message.
1109 * nm-hppab.h (KERNEL_U_ADDR): Define.
1110 (FIVE_ARG_PTRACE): Likewise.
1111 (CANNOT_STORE_REGISTER): Likewise.
1112 * nm-hppah.h (KERNEL_U_ADDR): Define.
1113 (FIVE_ARG_PTRACE): Likewise.
1114 (CANNOT_STORE_REGISTER): Likewise.
1115 (NEED_TEXT_START_END): Likewise.
1117 * tm-hppah.h (NEED_TEXT_START_END): Delete definition.
1118 * xm-hppah.h (KERNEL_U_ADDR): Delete definition.
1119 (FIVE_ARG_PTRACE): Likewise.
1120 * xm-hppab.h (KERNEL_U_ADDR): Delete definition.
1121 (FIVE_ARG_PTRACE): Likewise.
1123 * hppa-tdep.c (read_unwind_info): Make static.
1124 (restore_pc_queue): Indirect through the target vector to
1125 reload the register state.
1129 * paread.c (compare_unwind_entries): Delete function. It's been
1130 moved into hppa-tdep.c.
1131 (read_unwind_info): Likewise.
1132 (pa_symfile_read): No longer call read_unwind_info. The unwind
1133 tables will be read in as they are needed.
1135 * hppa-tdep.c (compare_unwind_entries): New function.
1136 (read_unwind_info, internalize_unwinds): Likewise.
1137 (find_unwind_entry): Read in unwind information on demand.
1141 * source.c (DIRNAME_SEPARATOR): New macro, replaces all references
1142 to : in search path processing.
1143 * defs.h (qsort): Rename argument in prototype.
1144 * symtab.h (SAYMBOL_VALUE): Rename value field, avoids bugs in
1146 * breakpoint.c, exec.c, mdebugread.c, mipsread.c, xcoffexec.c
1147 (false): Eliminate usages.
1151 * h8500-tdep.c (initialize_h8500_tdep, large_command):
1152 All references to value changed to value_ptrlage_command is now
1154 All references to value changed to value_ptr.
1155 * remote-e7000.c (e7000_wait): Use target_waitstatus and SETSTOP
1156 * remote-hms.c (hms_wait): Timeout after five seconds.
1157 * ser-go32.c (dosasync_read): Poll if timeout < 0.
1158 * config/tm/tm-h8500.h (BEFORE_MAIN_LOOP_HOOK): Deleted.
1159 * config/sh/tm-sh.h (BREAKPOINT): Is now sleep opcode.
1163 * procfs.c (procfs_wait): Protect watchpoint code with appropriate
1165 (procfs_set_watchpoint, procfs_stopped_by_watchpoint): Likewise.
1169 * breakpoint.h (enum bptype): Add bp_hardware_watchpoint and
1170 bp_watchpoint_scope breakpoints.
1171 (struct breakpoint): Add val_chain and related_breakpoint fields
1172 for use by watchpoints.
1174 * breakpoint.c (within_scope): Delete. No longer used.
1175 (TARGET_CAN_USE_HARDWARE_WATCHPOINT): Provide default definition.
1176 (target_{remove,insert}_watchpoint): Likewise.
1177 (can_use_hardware_watchpoint): New function.
1178 (remove_breakpoint): New function to remove a single breakpoint
1179 or hardware watchpoint.
1180 (insert_breakpoints): Handle insertion of hardware watchpoints.
1181 Store a copy of the value chain derived from the watchpoint
1183 (remove_breakpoints): Simplify by using remove_breakpoint.
1184 (delete_breakpoint): Likewise.
1185 (watchpoint_check): Delete the watchpoint and watchpoint scope
1186 breakpoints when the watchpoint goes out of scope. Save & restore
1187 the current frame after checking watchpoints.
1188 (breakpoint_init_inferior): Likewise (restarting the program
1189 makes all local watchpoints go out of scope).
1190 (bpstat_stop_status): Handle hardware watchpoints much like normal
1191 watchpoints. Delete the watchpoint and watchpoint scope breakpoint
1192 when the watchpoint goes out of scope. Remove and reinsert all
1193 breakpoints before returning if we stopped when a hardware watchpoint
1195 (watch_command): Use a hardware watchpoint when possible. If
1196 watching a local expression, build a scope breakpoint too.
1197 (map_breakpoint_numbers): Also call given function for any
1198 related breakpoints.
1199 (disable_breakpoint): Never disable a scope breakpoint.
1200 (enable_breakpoint): Handle hardware breakpoints much like normal
1201 breakpoints, but recompute the watchpoint_scope breakpoint's
1202 frame and address (if we have an associated scope breakpoint).
1203 (read_memory_nobpt): Handle hardware watchpoints like normal
1204 watchpoints. When necessary handle watchpoint_scope breakpoints.
1205 (print_it_normal, bpstat_what, breakpoint_1, mention): Likewise.
1206 (clear_command, breakpoint_re_set_one, enable_command): Likewise.
1207 (disable_command): Likewise.
1209 * blockframe.c (find_frame_addr_in_frame_chain): New function.
1210 Extern prototype added to frame.h
1212 * infrun.c (wait_for_inferior): Set current_frame and select
1213 a frame before checking if we stopped due to a hardare watchpoint
1214 firing. Handle stepping over hardware watchpoints.
1215 (normal_stop): Remove unnecessary call to select_frame.
1217 * value.h (value_release_to_mark): Declare.
1218 * values.c (value_release_to_mark): New function.
1220 * procfs.c (procfs_wait): Add cases for hardware watchpoints.
1221 (procfs_set_watchpoint, procfs_stopped_by_watchpoint): New functions.
1223 * hppab-nat.c (hppa_set_watchpoint): New function.
1225 * config/pa/nm-hppab.h (STOPPED_BY_WATCHPOINT): Define.
1226 (HAVE_STEPPABLE_WATCHPOINT): Define.
1227 (TARGET_CAN_USE_HARDWARE_WATCHPOINT): Define.
1228 (target_{insert,delete}_watchpoint): Define.
1230 * config/mips/nm-irix4.h (TARGET_CAN_USE_HARDWARE_WATCHPOINT): Define.
1231 (STOPPED_BY_WATCHPOINT, HAVE_NONSTEPPABLE_WATCHPOINT): Likewise.
1232 (target_{insert,remove}_watchpoint): Likewise.
1234 Mon Apr 11 19:21:27 1994 Stu Grossman (grossman at cygnus.com)
1236 * xcoffread.c (read_xcoff_symtab): Ignore symbols of class C_EXT,
1237 smtyp XTY_LD, sclass XMC_DS (external data segment label). They
1238 often have the same names as debug symbols for functions, and
1239 confuse lookup_symbol().
1243 * remote.c: Around redefinition of PBUFSIZE, adjust whitespace.
1244 * config/pa/tm-hppa.h (REGISTER_BYTES): Use 4 rather than
1245 REGISTER_RAW_SIZE (1).
1246 Together these changes work around a bug in HP's compiler. Both
1247 seem to be necessary.
1251 * paread.c (pa_symtab_read): Handle ST_STUB symbols and symbols
1252 with scope SS_EXTERNAL. ST_ENTRY symbols in dynamic executables
1253 are type mst_solib_trampoline.
1257 * config/m68k/es1800.mt: Change comments.
1261 * config/m68k/monitor.mt (TDEPFILES): Don't include remote-es.o.
1263 Fri Apr 8 15:35:30 1994 Stu Grossman (grossman at cygnus.com)
1265 * lynx-nat.c: Restore regmap structure for SPARC. It's needed
1270 * values.c (unpack_long): Remove obsolete comment about using a
1273 * symfile.c (symbol_file_command): Add comments about command syntax.
1278 * infrun.c (IN_SOLIB_TRAMPOLINE): Correct comment, trampolines
1279 are in the .plt section.
1280 * minsyms.c (lookup_solib_trampoline_symbol_by_pc,
1281 find_solib_trampoline_target): New functions for handling
1282 stepping into -g compiled shared libraries.
1283 * symtab.h (lookup_solib_trampoline_symbol_by_pc,
1284 find_solib_trampoline_target): Add prototypes.
1285 * config/tm-sunos.h (IN_SOLIB_TRAMPOLINE, SKIP_TRAMPOLINE_CODE):
1286 Define to handle stepping into -g compiled shared libraries.
1287 * config/tm-sysv4.h (SKIP_TRAMPOLINE_CODE): Define to handle
1288 stepping into -g compiled shared libraries.
1292 * configure.in: Add mips-*-sysv4* support.
1293 * config/mips/mipsv4.mh, config/mips/mipsv4.mt,
1294 config/mips/tm-mipsv4.h, config/mips/xm-mipsv4.h, mipsv4-nat.c:
1295 New files for MIPS SVR4 support.
1296 * Makefile.in: Update for new mipsv4 files.
1297 * alpha-tdep.c (heuristic_proc_desc, find_proc_desc): Use
1298 read_next_frame_reg to obtain the frame relative stack pointer.
1299 * mips-tdep.c (heuristic_proc_desc): Use read_next_frame_reg to
1300 obtain the frame relative stack pointer.
1301 * mdebugread.c (parse_partial_symbols, psymtab_to_symtab1):
1302 Handle stStatic and stStaticProc symbols in stabs-in-ecoff output
1303 by entering them into the minimal symbol table.
1304 * printcmd.c (print_scalar_formatted): Do not try to unpack to
1305 a long for float formats.
1306 * solib.c: Include "elf/mips.h" only if DT_MIPS_RLD_MAP does not
1307 get defined in <link.h>.
1308 * solib.c (solib_add): Add shared library sections to the section
1309 table of the target before adding the symbols.
1310 * partial-stab.h: Relocate static and global functions.
1311 * dbxread.c (read_dbx_symtab): Remove unused variable
1312 end_of_text_address. Relocate text_addr when passing it
1315 For Alpha OSF/1 targets, enable gdb to set breakpoints in shared
1316 library functions before the executable is run. Retrieve dynamic
1317 symbols from stripped executables.
1318 * mipsread.c (read_alphacoff_dynamic_symtab): New function.
1319 * mipsread.c (mipscoff_symfile_read): Use it. Issue warning message
1320 if no debugging symbols were found.
1321 * alpha-tdep.c (alpha_skip_prologue): Silently return the unaltered
1322 pc if memory at the pc is not accessible and GDB_TARGET_HAS_SHARED_LIBS
1324 * config/alpha/nm-alpha.h (GDB_TARGET_HAS_SHARED_LIBS): Define,
1325 OSF/1 has shared libraries.
1329 * dbxread.c (read_dbx_dynamic_symtab): Adjust for recent changes
1330 to BFD handling of dynamic symbols.
1334 * hppa-tdep.c (hppa_fix_call_dummy): If FUN is a procedure label,
1335 then gets its real address into FUN and its GOT/DP value into %r19.
1337 * tm-hppa.h (CALL_DUMMY): Use %r20, not %r19 as a temporary.
1339 * hppa-tdep.c (frameless_function_invocation): If no unwind
1340 descriptor was found, then assume this was not a frameless
1341 function invocation.
1342 (frame_saved_pc): If the saved PC is in a linker stub, then
1343 return the return address which the linker stub will return to.
1345 * xm-hppab.h: Never define USG.
1346 * xm-hppah.h: Always define USG.
1350 * values.c (unpack_long, value_from_longest),
1351 valarith.c (value_binop): Allow TYPE_CODE_RANGE.
1355 * symfile.c (deduce_language_from_filename): .cpp is a C++ extension.
1359 For SVR4 targets, enable gdb to set breakpoints in shared
1360 library functions before the executable is run.
1361 * elfread.c (elf_symtab_read): Handle symbols for shared library
1363 * sparc-tdep.c (in_solib_trampoline): Renamed to in_plt_section
1364 and moved to objfiles.c.
1365 * objfiles.c (in_plt_section): Moved to here from sparc-tdep.
1366 * config/tm-sysv4.h (IN_SOLIB_TRAMPOLINE): Use new in_plt_section.
1367 * config/sparc/tm-sun4sol2.h (IN_SOLIB_TRAMPOLINE): Removed,
1368 the new generic definition from tm-sysv4.h works for Solaris.
1372 * elfread.c (elf_symtab_read): Change storage_needed,
1373 number_of_symbols and i to long. Rename get_symtab_upper_bound to
1374 bfd_get_symtab_upper_bound. Check for errors from
1375 bfd_get_symtab_upper_bound and bfd_canonicalize_symtab.
1376 * nlmread.c (nlm_symtab_read): Same changes.
1380 * xcoffread.c (xcoff_next_symbol_text): New function.
1381 (read_xcoff_symtab): Set next_symbol_text_func to it.
1382 Move raw_symbol outside of read_xcoff_symtab.
1384 * remote.c (getpkt): Remove unused "out" label.
1388 * breakpoint.c (print_it_normal): Allow GDB to notify the user
1389 about more than one watchpoint being triggered.
1393 * config/m68k/tm-dpx2.h: Include tm-m68k.h not nonexistent tm-68k.h.
1397 * blockframe.c (find_pc_partial_function): mst_file_text
1398 symbols do not live in the shared library transfer table.
1399 * ch-exp.y (decode_integer_value, match_character_literal,
1400 match_bitstring_literal): Guard tolower calls with isupper,
1401 tolower on old BSD systems blindly subtracts a constant.
1402 * dbxread.c (read_ofile_symtab): Check for __gnu_compiled_* as
1403 well when determining the producer of the object file.
1404 * mdebugread.c (has_opaque_xref): New function to check for
1405 cross reference to an opaque aggregate.
1406 * mdebugread.c (parse_symbol, parse_partial_symbols): Do not
1407 enter typedefs to opaque aggregates into the symbol tables.
1408 * mdebugread.c (parse_external): Remove skip_procedures argument,
1409 it has always been 1. Remove code that handled stProc symbols,
1410 it was never executed and was wrong, as the index of a
1411 stProc symbol points to the local symbol table and not to the
1412 auxiliary symbol info. Update caller.
1413 * mdebugread.c (parse_partial_symbols): Do not enter external
1414 stProc symbols into the partial symbol table, they are already
1415 entered into the minimal symbol table.
1416 * config/i386/tm-symmetry.h: Clean up, it is now only used for Dynix.
1417 Remove all conditionals and definitions for ptx.
1418 I386_REGNO_TO_SYMMETRY moved to here from symm-tdep.c.
1419 Fix addresses of floating point registers in REGISTER_U_ADDR.
1420 STORE_STRUCT_RETURN now handles cc and gcc conventions.
1421 FRAME_CHAIN, FRAMELESS_FUNCTION_INVOCATION, FRAME_SAVED_PC,
1422 IN_SIGTRAMP, SIGCONTEXT_PC_OFFSET defined to make backtracing through
1423 signal trampoline code work.
1424 * config/i386/xm-symmetry.h: Clean up, it is now only used for Dynix.
1425 Remove all conditionals and definitions for ptx.
1426 Remove KDB definitions.
1427 * symm-nat.c (store_inferior_registers): Fetch registers before
1428 storing them to obtain valid floating point control registers.
1429 Store fpu registers.
1430 * symm-nat.c (print_1167_control_word): Dynix 3.1.1 defines
1431 FPA_PCR_CC_C0 and FPA_PCR_CC_C1, avoid duplicate case value.
1432 * symm-nat.c (fetch_inferior_registers, child_xfer_memory):
1434 * symm-nat.c (child_resume): Update type of `signal' parameter.
1435 * symm-tdep.c (I386_REGNO_TO_SYMMETRY): Moved to tm-symmetry.h.
1439 * hppa-tdep.c (hppa_fix_call_dummy): Use an alternate method for
1440 calling import stubs for functions in shared libraries.
1444 * ch-exp.y: Implement SIZE(mode_name) and SIZE(expression).
1446 * ch-lang.c (chill_is_varying_struct): Magic string is
1447 was "<var_length>" is now "__var_length" (more portable).
1451 * remote.c (getpkt): If we get a timeout, actually retry rather
1452 than just giving up the first time it happens.
1453 * remote.c: Document sequence numbers.
1454 (remote_store_registers): Change syntax of 'P' request so that it
1455 never looks like a sequence number.
1459 * os9kread.c (record_minimal_symbol): add section_offset to
1460 relocate minimal symbol table.
1461 * os9kread.c (read_minimal_symbols): ditto.
1462 * os9kread.c (os9k_symfile_init): increase size of dbg and stb
1464 * os9kread.c (read_os9k_psymtab): if there's no dbg file, just
1465 return. Also if file addr is 0 leave it 0, not to relocate.
1466 * remote-os9k.c (_initialize_remote_os9k): add 'set remotexon',
1467 'set remotexoff' and 'set remotelog' commands.
1471 * remote.c (remote_store_registers): Add 'P' request to set an
1472 individual register.
1473 (remote_write_bytes, remote_read_bytes): Use %lx, not %x, to print
1478 * config/sparc/tm-sparc.h: Define USE_REGISTER_NOT_ARG.
1479 * stabsread (define_symbol): If USE_REGISTER_NOT_ARG, go back to
1480 combining all 'p' and 'r' pairs into a LOC_REGPARM.
1482 * command.c (do_setshow_command, case var_string): Never add a
1483 space to the end of the string.
1484 * NEWS: Document this change.
1485 * .gdbinit: Add a space to the "set prompt" command.
1489 * m3-nat.c, i386m3-nat.c, config/i386/i386m3.mh: Many minor
1490 changes to make it compile (it doesn't link yet).
1492 * buildsym.c (start_subfile, patch_subfile_names), demangle.c
1493 (set_demangling_style, set_demangling_command): Use savestring not
1494 strdup. We were not dealing properly with a NULL return from
1495 strdup, and were not declaring strdup (the system header may or
1498 * valprint.c (val_print): Remove inaccurate comment about what
1499 types can be stub types.
1501 * config/i386/ptx.mh (XDEPFILES): Add coredep.o. Delete infptrace.o.
1502 * symm-nat.c (child_wait, _initialize_symm_nat, kill_inferior):
1503 Supply alternate version if ATTACH_DETACH is not defined.
1504 * ptx4-nat.c, config/i386/{nm-ptx4.h, ptx4.mh, ptx.mt, ptx4.mt,
1505 tm-ptx.h, tm-ptx4.h, xm-ptx.h, xm-ptx4.h}: New files.
1506 * configure.in: Recognize i[34]86-sequent-sysv4* host.
1510 * hppa-tdep.c (skip_prologue): Do nothing if not at the beginning
1512 (skip_trampoline_code): Rewrite and add support for argument
1513 relocation stubs stubs, import/export stubs, calls through
1514 "_sr4export" and cascaded trampolines.
1516 * hppa-tdep.c (skip_prologue): Return "pc" not zero
1517 if no unwind descriptor is found.
1519 * tm-hppa.h (NUM_REGS): Bump to 128 registers.
1520 (REGISTER_NAMES): Add entries for "right-half" of FP registers.
1521 (REGISTER_RAW_SIZE, MAX_REGISTER_RAW_SIZE): Do not treat FP regs
1522 differently. All registers are four bytes.
1523 (REGISTER_BYTES, REGISTER_BYTE): Simplify now that all registers are
1525 (REGISTER_VIRTUAL_TYPE): Use builtin_type_float for all FP regs.
1527 * hppa-tdep.c (pa_print_fp_reg): Update to print even numbered FP
1528 registers as both single and double values (fetching 2nd 32bit half
1529 as necessary). Annotate each register printed with its precision.
1531 * paread.c (read_unwind_info): Fix off-by-one error.
1535 * main.c (complete_command): Deal with it if arg is NULL.
1539 * config/mips/tm-mips.h (SETUP_ARBITRARY_FRAME): Revise comment
1540 regarding using the PC--using the PC is necessary and all the
1541 FIXME comments in the world won't make it go away.
1543 * valops.c (value_at, value_at_lazy): Give error if we dereference
1545 * gdbtypes.h: Fix comments regarding TYPE_CODE_VOID.
1546 * stabsread.c: Use 1, not 0, for TYPE_LENGTH of void types.
1548 * stabsread.c (patch_block_stabs): Add comment about what happens
1549 if the definition is in another compilation unit from the stab.
1551 * dbxread.c (end_psymtab): Add comment about empty psymtabs.
1555 * main.c (complete_command): New command, from Rick Sladkey
1557 (symbol_completion_function): Don't declare rl_point and
1558 rl_line_buffer; they are now declared in readline.h.
1559 (show_commands): Don't declare history_base; it is declared in
1561 * command.c (lookup_cmd): Don't delete trailing whitespace.
1562 Reverts change of 14 May 1989.
1564 Wed Mar 23 16:14:52 1994 Stu Grossman (grossman at cygnus.com)
1566 * minsyms.c (prim_record_minimal_symbol): Move section deduction
1567 code from prim_record_minimal_symbol_and_info() to here. Callers
1568 of the latter can legitimately supply a section number of -1.
1572 * gdbtypes.h, gdbtypes.c: Add comments regarding whether static
1573 member functions have an element in args for a (nonexistent) this
1578 * config/pa/tm-hppao.h (NO_PC_SPACE_QUEUE_RESTORE): Define.
1580 * hppa-tdep.c (hppa_pop_frame): Do not restore the PC space
1581 queue if NO_PC_SPACE_QUEUE_RESTORE is defined.
1583 * stabsread.c (REG_STRUCT_HAS_ADDR): Accept additional argument
1584 for the structure's type. All callers changed.
1586 * valops.c (call_function_by_hand): Check REG_STRUCT_HAS_ADDR
1587 for each structure argument rather than assuming it's either
1588 true or false for all structure arguments.
1590 * config/pa/tm-hppa.h (REG_STRUCT_HAS_ADDR): Depend only
1591 on the length structure passed, not the compiler used.
1593 * config/sparc/tm-sparc.h (REG_STRUCT_HAS_ADDR): Accept additional
1594 argument for the structure's type.
1598 * values.c (set_internalvar): Don't set var->value until we are
1599 sure there won't be an error().
1601 * remote.c (get_offsets): Reinstate comment which was in
1602 remote_wait about use of SECT_OFF_TEXT and so on.
1606 * symmisc.c (maintenance_check_symtabs): New function to check
1607 consistency of psymtabs and symtabs.
1608 * symtab.h (maintenance_check_symtabs): Add prototype.
1609 * maint.c: Add new `maint check-symtabs' command.
1610 * config/i386/tm-i386aix.h, config/i386/tm-sun386.h,
1611 config/i386/tm-symmetry.h (REGISTER_CONVERT_TO_RAW): Fix typo.
1612 * config/i386/tm-symmetry.h: Make comment inside #if 0 a real
1614 * config/i386/tm-symmetry.h (STORE_STRUCT_RETURN): Cast argument
1615 to write_memory to avoid warnings from gcc.
1616 * config/i386/xm-symmetry.h: Add missing #endif.
1617 * config/i386/nm-symmetry.h (NO_PTRACE_H): Add for Dynix.
1618 * config/i386/symmetry.mt (TDEPFILES): Add i386-tdep.o.
1619 * config/i386/symmetry.mh (NAT_FILE, NATDEPFILES): Add.
1623 * hppa-tdep.c (hppa_fix_call_dummy): Use value_ptr.
1624 (hppa_push_arguments): Likewise.
1626 Mon Mar 21 11:02:51 1994 Stu Grossman (grossman at cygnus.com)
1628 * alpha-tdep.c: Gobs of changes (many imported from mips-tdep) to
1629 improve remote debugging efficiency. Also fixed problems with
1630 doing function calls for programs with no entry points.
1631 * infcmd.c (run_stack_dummy): Use CALL_DUMMY_ADDRESS instead of
1632 entry_point_address.
1633 * inferior.h (PC_IN_CALL_DUMMY): ditto.
1634 * mdebugread.c (parse_symbol, parse_procedure, parse_external,
1635 parse_lines): Pass section_offsets info to these routines so that
1636 we can relocate symbol table entries upon readin.
1637 * (psymtab_to_symtab_1): Set symtab->primary to tell
1638 objfile_relocate to do relocations for our symbols.
1639 * (ecoff_relocate_efi): New routine to relocate adr field of PDRs
1640 (which hang off of the symbol table).
1641 * Use prim_record_minimal_symbols_and_info instead of
1642 prim_record_minimal_symbols to supply section info to make minimal
1643 symbol relocations work.
1644 * minsyms.c (prim_record_minimal_symbols_and_info): If section is
1645 -1, try to deduce it from ms_type.
1646 * objfiles.c (objfile_relocate): Use ALL_OBJFILE_SYMTABS where
1647 appropriate. Handle relocation of MIPS_EFI symbols special. Also,
1648 add code to relocate objfile->sections data structure.
1649 * remote.c (get_offsets): Use new protocol message to acquire
1650 section offsets from the target.
1651 * (remote_wait): Get rid of relocation stuff. That's all handled
1652 by objfile_relocate now.
1653 * config/alpha/alpha-nw.mt (TM_FILE): Use tm-alphanw.h.
1654 * config/alpha/tm-alpha.h: Define CALL_DUMMY_ADDRESS, and
1656 * config/alpha/tm-alphanw.h: DECR_PC_AFTER_BREAK=0, VM_MIN_ADDRESS=0.
1660 * sparc-tdep.c (sparc_frame_find_save_regs): Use REGISTER_RAW_SIZE
1662 * sp64-tdep.c (target_ptr_bit, set_target_ptr_bit): Deleted,
1663 can no longer set this at run time.
1664 * config/sparc/sp64.mt (SIMFILES): Use remote-sim.o now.
1665 (TM_CLIBS): Define to -lm, the simulator uses the sqrt() function.
1666 * config/sparc/tm-sp64.h (FPS_REGNUM, CPS_REGNUM): Define (so
1667 sparc-tdep.c compiles).
1668 (TARGET_PTR_BIT): Must be a constant now, fix at 64.
1672 * config/m68k/{cisco.mt,tm-cisco.h}: New files.
1673 * Makefile.in (ALLPARAM, ALLCONFIG): Add them.
1674 * configure.in: Recognize m68*-cisco*-*.
1676 * Makefile.in (TAGS): Use variables directly, rather than using
1677 find, to locate TM_FILE, XM_FILE, and NAT_FILE. This is faster
1678 and means that these filenames no longer need be unique across all
1679 the config/* directories.
1680 * configure.in: Put the config/*/ into TM_FILE, etc.
1682 * m68k-stub.c (computeSignal): Return SIGFPE, not SIGURG, for chk
1683 and trapv exceptions.
1685 * target.h (struct section_table), objfiles.h (struct obj_section):
1686 Change name of field sec_ptr to the_bfd_section. More mnemonic
1687 and avoids the (sort of, for the ptx compiler) name clash with
1688 the name of the typedef.
1689 * exec.c, xcoffexec.c, sparc-tdep.c, rs6000-nat.c, osfsolib.c,
1690 solib.c, irix5-nat.c, objfiles.c, remote.c: Change users.
1692 * utils.c: Include readline.h.
1693 * Makefile.in (utils.o): Add dependency.
1695 * remote.c (getpkt): Add support for run-length encoding.
1699 * utils.c (prompt_for_continue): Call readline, not gdb_readline.
1703 * dstread.c (record_minimal_symbol): New arg objfile. Pass it to
1704 prim_record_minimal_symbol.
1707 * regex.c (EXTEND_BUFFER): Adjust pointers within buffer by
1708 computing their offset from the start of the old buffer and adding
1709 to the new buffer, rather than by assuming we can add the
1710 difference between the old buffer and the new buffer (it might not
1711 fit in an int). Merge in cosmetic differences from emacs regex.c
1712 version of this macro.
1716 * Makefile.in (install-only): Fix use of program_transform_name.
1720 * printcmd.c: Remove "set print fast-symbolic-addr off" command.
1721 The bug which it worked around was fixed on 25 Feb 94 in coffread.c,
1722 so I'm nuking the command.
1723 * symtab.c (find_addr_symbol): Comment out, no longer used.
1725 * main.c (main): Don't init_source_path for the -cd argument. Now
1726 that source_path doesn't contain the current_directory from when
1727 GDB started up, init_source_path is no longer useful (and is
1728 harmful because it clobbers a source_path set in $HOME/.gdbinit).
1730 * TODO: Remove item about line numbers being off. It is useless
1731 and confusing without a reproducible test case (it mentions
1732 proceed(), but I was able to step through proceed without trouble).
1736 For Sunos 4.x targets, enable gdb to set breakpoints in shared
1737 library functions before the executable is run. Retrieve dynamic
1738 symbols from stripped executables.
1739 * symtab.h (minimal_symbol_type): Add mst_solib_trampoline type.
1740 * parse.c (write_exp_msymbol), symmisc.c (dump_msymbols),
1741 symtab.c (list_symbols): Handle mst_solib_trampoline.
1742 * minsyms.c (lookup_minimal_symbol): Handle mst_solib_trampoline
1743 for all targets, remove IBM6000_TARGET dependencies.
1744 * dbxread.c (read_dbx_dynamic_symtab): New function.
1745 * dbxread.c (dbx_symfile_read): Use it.
1746 * dbxread.c (SET_NAMESTRING): Set namestring to
1747 "<bad string table index>" instead of "foo" if the string index is
1749 * xcoffread.c (read_xcoff_symtab): Use mst_solib_trampoline instead
1751 * symtab.c (list_symbols): Take from_tty as parameter and pass it
1752 to break_command. Handle mst_file_* minimal symbol types.
1753 * config/i386/tm-i386bsd.h: Give just macro name, not args, to #undef.
1757 * c-exp.y(yylex): fix potential memory overflow.
1761 * environ.c (set_in_environ): Eliminate special handling of PATH and
1763 * putenv.c: Removed, conflicts with system declaration of
1764 putenv on RS/6000 running AIX 3.2.5, and above change makes it
1766 * Makefile.in: Change accordingly.
1767 * procfs.c (procfs_create_inferior): Change comment accordingly.
1771 * rs6000-tdep.c: Change value to value_ptr.
1775 * i386m3-nat.c: Include floatformat.h.
1776 (get_i387_state): Use memset not bzero.
1780 * Makefile.in: Enable commented out getopt_h, bfd_h, etc. Change
1781 ieee-float.h to floatformat.h.
1783 * valprint.c (val_print_string): Ignore error if the error
1784 happened after a terminating '\0'.
1786 * c-valprint.c (c_val_print): Never add 1 to return value from
1787 val_print_string; just return what it returns.
1789 * target.h (enum target_signal): Add TARGET_SIGNAL_FIRST, for
1790 looping through all of the enums.
1791 * infrun.c (signals_info): Use it.
1795 * main.c (main): When printing warning about bad baud rate, don't
1796 use warning(); it relies on current_target which isn't set up yet.
1798 * breakpoint.c (_initialize_breakpoint): Update docstring for
1799 tbreak to match what the code actually does. Don't mention tbreak
1800 in docstrings for "enable once" or "enable breakpoints once".
1804 * symfile.h (ADD_PSYMBOL_VT_TO_LIST): Don't put a semicolon after
1805 while (0). That defeats the whole purpose of using do . . . while (0).
1806 * mdebugread.c (parse_partial_symbols): Don't use ?: expression as
1807 list for ADD_PSYMBOL_TO_LIST; the macro takes its address and
1808 using a ?: expression as an lvalue is not portable.
1810 * stabsread.c (define_symbol): If REG_STRUCT_HAS_ADDR, also
1811 convert a LOC_ARG to a LOC_REF_ARG. Update code which combines
1812 'p' and 'r' symbol descriptors into a single symbol to look for a
1814 * README, config/sparc/tm-sparc.h: Update comments.
1818 * mdebugread.c (parse_type): Do not complain for types with
1819 an `indexNil' aux index, these are simply undefined types.
1820 Remove indexNil check from caller of parse_type.
1821 * mdebugread.c (parse_partial_symbols): Do not enter
1822 stGlobal, scCommon symbols into the minimal symbol table, their
1823 value is the size of the common, not its address.
1824 Handle scInit, scFini, scPData and scXData sections.
1825 Use minimal symbol type mst_file_* for stLabel symbols, instead of
1827 Enter stProc symbols into the global_psymbols list once, not into
1828 the static_psymbols_list.
1829 Get rid of dummy psymtab if it is empty, to allow proper detection
1830 of stripped executables.
1831 * mdebugread.c (cross_ref): Allow cross references to Fortran
1836 * stabsread.c (common_block_end, fix_common_block): Stash the
1837 struct pending * in the SYMBOL_TYPE, not the SYMBOL_NAMESPACE, so
1838 as to not assume that a pointer fits in an enum.
1842 * os9kread.c (fill_sym): check compiler verion number for pre-
1844 * os9kread.c (os9k_process_one_symbol): address of symbol is
1845 relative to section not module.
1846 * stabsread.c (define_symbol): add symbol type 's' as local
1848 * remote-os9k.c: add command 'set monitor_log' to turn on or off
1850 * remote-os9k.c: fix bug in delete breakpoint, single step trace.
1851 * remote-os9k.c: fix bug in 'set remotebaud' function.
1852 * remote-os9k.c (rombug_link): minimize checking so to improve
1854 * symfile.c (symbol_file_command): check if failed to link, also make
1855 the command be able to accept more than one filenames.
1856 * target.c (target_link): check if failed to link with rombug.
1857 * config/i386/tm-i386os9k.h : add #define DECR_PC_AFTER_BREAK 0.
1861 * remote-es.c (es1800_child_ops): Don't declare it static.
1865 * config/i386/tm-i386v4.h: Give just macro name, not args, to #undef.
1869 * dbxread.c: New variable lowest_text_address.
1870 (record_minimal_symbol, read_dbx_symtab): Set it.
1871 (read_dbx_symtab): Use lowest_text_address + text_size instead of
1872 end_of_text_address.
1873 * config/gould/tm-pn.h: Add comment regarding END_OF_TEXT_DEFAULT.
1875 * dbxread.c (end_psymtab): Remove old and commented out
1876 capping_global and capping_static. Fix comments regarding
1877 N_SO_ADDRESS_MAYBE_MISSING to match the real name of the macro.
1879 * parser-defs.h: Add "extern" to start of variable declarations so
1880 we don't end up with commons.
1881 * parse.c: Define these variables.
1883 * irix5-nat.c (find_solib): Cast o_path to CORE_ADDR when using it
1888 * alpha-tdep.c: Change value to value_ptr.
1892 * solib.c (elf_locate_base): New function to locate the address
1893 of the dynamic linker's runtime structure in the dynamic info section.
1894 * solib.c (locate_base): Use it instead of iterating over the list
1895 of mapped address segments.
1896 * solib.c (look_for_base, bfd_lookup_symbol): Removed, no longer
1901 * hppa-tdep.c (pc_in_linker_stub): Move decl to beginning of file.
1902 (pc_in_interrupt_handler): New function. Also add PARAM decl.
1903 (find_proc_framesize): Deal with HPUX setting SAVE_SP bit for
1904 signal trampoline and interrupt routines.
1905 (frame_saved_pc): Handle signal trampolines and interrupt routines.
1906 (frame_chain, frame_chain_valid): Likewise.
1907 (hppa_frame_find_saved_regs): Likewise. Also deal with special
1908 saved regs convention for SP.
1910 * tm-hppa[bho].h: FRAME_FIND_SAVED_PC_IN_SIGTRAMP): Define.
1911 (FRAME_BASE_BEFORE_SIGTRAMP): Define.
1912 (FRAME_FIND_SAVED_REGS_IN_SIGTRAMP): Define.
1914 * tm-hppah.h (IN_SIGTRAMP): Define.
1918 * ch-exp.y (match_simple_name_string): Accept '_' as well as an
1919 alphabetic character as the start of a name.
1921 * sparclite/Makefile.in (all install): Build and install aload.
1923 * configure.in: Accept i[34]86-*-*sysv32 because that is what
1924 config.guess and config.sub produce.
1926 * mips-tdep.c: Change value to value_ptr.
1930 * breakpoint.c, breakpoint.h, c-valprint.c, ch-valprint.c,
1931 cp-valprint.c, eval.c, expprint.c, findvar.c, language.c,
1932 objfiles.h, infcmd.c, printcmd.c, stack.c, typeprint.c,
1933 valarith.c, valops.c, valprint.c, value.h, values.c: Replace
1934 value with value_ptr. This is for the ptx compiler.
1935 * objfiles.h, target.h: Don't declare a "sec_ptr" field using a
1937 * symm-nat.c: Add a bunch of stuff for symmetry's ptrace stuff.
1938 #if 0 i386_float_info.
1939 * symm-tdep.c (round): Remove. Also remove sgttyb.
1940 * symm-tdep.c: Remove lots of stuff which duplicates stuff from
1941 i386-tdep.c. Remove register_addr and ptx_coff_regno_to_gdb.
1942 * i386-tdep.c (i386_frame_find_saved_regs): Put in
1943 I386_REGNO_TO_SYMMETRY check in case it is needed for Dynix
1945 * config/i386/nm-symmetry.h: Change KERNEL_U_ADDR. Move
1946 stuff from PTRACE_READ_REGS, PTRACE_WRITE_REGS macros to
1947 symm-nat.c. Define CHILD_WAIT and declare child_wait().
1948 * config/i386/tm-symmetry.h: Remove call function stuff; stuff in
1949 tm-i386v.h is apparently OK.
1950 * config/i386/xm-symmetry.h [_SEQUENT_]: Define HAVE_TERMIOS not
1951 HAVE_TERMIO. Define MEM_FNS_DECLARED, NEED_POSIX_SETPGID, and
1956 * osfsolib.c (xfer_link_map_member): Update to use new
1957 target_read_string interface.
1961 * infrun.c (wait_for_inferior): In checking
1962 remove_breakpoints_on_following_step, check
1963 through_sigtramp_breakpoint as well as step_resume_breakpoint.
1967 * os9kread.c (os9k_process_one_symbol): Rename
1968 VARIABLES_INSIDE_BLOCK to OS9K_VARIABLES_INSIDE_BLOCK.
1969 * symfile.c (symbol_file_command): Check for (CORE_ADDR)-1, not
1970 (CORE_ADDR)0, from target_link, since that is what it uses.
1971 Process name at end, not during parsing (like we did before Kung's
1972 change), so that -readnow and -mapped can appear anywhere.
1973 Make text_relocation a local variable.
1974 * config/i386/i386os9k.mt: Fix comment.
1975 * Makefile.in (ALLDEPFILES): Add remote-os9k.c.
1976 * os9kread.c: Put "comments" after #endif inside /* */.
1977 * stabsread.h: Add os9k_stabs variable.
1978 * stabsread.c (start_stabs), os9kread.c (os9k_process_one_symbol):
1980 * stabsread.c (define_symbol): If os9k_stabs, put a 'V' symbol
1981 descriptor in global_symbols not local_symbols.
1982 (read_type): If os9k_stabs, accept 'c', 'i', and 'b' type
1984 (read_type): If os9k_stabs, accept function parameters after 'f'
1986 (read_array_type): If os9k_stabs, don't expect index type and
1987 expect lower and upper to be separated by ',' not ';'.
1988 (read_enum_type): If os9k_stabs, read a number before the first
1989 enumeration constant.
1990 (os9k_init_type_vector): New function.
1991 (dbx_lookup_type): Call it when starting new type vector.
1992 * config/i386/tm-i386os9k.h: Define BELIEVE_PCC_PROMOTION.
1993 * (os9k_process_one_symbol): Call define_symbol not os9k_define_symbol.
1994 * os9kstab.c: Removed.
1995 * Makefile.in: Update accordingly.
1996 * objfiles.c (objfile_relocate_data): Removed.
1997 * remote-os9k.c (rombug_wait): Call objfile_relocate
1998 not objfile_relocate_data.
1999 * objfiles.h, objfiles.c: Remove find_pc_objfile.
2000 * remote-os9k.c (rombug_wait): Call find_pc_section not
2002 * main.c (quit_command): Check inferior_pid; revert Kung change.
2003 * remote-os9k.c (rombug_create_inferior): Set inferior_pid.
2007 * os9kread.c: New file to read os9000 style symbo table.
2008 * os9kstab.c: new file to read os9000 style stabs.
2009 * remote-os9k.c: remote protocol talking to os9000 rombug monitor.
2010 * objfiles.c (find_pc_objfile): new function to search objfile
2012 * objfiles.c (objfile_relocate_data): new function to relocate
2013 data symbols in symbol table.
2014 * objfiles.h: Add two aux fields in struct objfile to handle
2015 multiple symbol table files situation like in os9000.
2016 * symfile.c: Change so 'symbol-file' command can handle multiple
2017 files. Also call target_link() to get relocation infos.
2018 * target.c (target_link): new function to get relocation info when
2019 a symbol file is requested to load.
2020 * main.c (quit_command): take out 'inferior_pid != 0' condition,
2021 because in cross mode there's no inferior pid, bit they need to
2023 Makefile.in: add os9kread.c os9kstab.c and .o's.
2024 configure.in: add i386os9k target.
2025 config/i386/i386os9k.mt: new add.
2026 config/i386/tm-i386os9k.h: new add.
2030 * config/sparc/tm-sun4sol2.h (IN_SIGTRAMP): Handle ucbsigvechandler.
2031 * sparc-tdep.c (sparc_frame_saved_pc): Handle ucbsigvechandler.
2035 * target.c, target.h (target_read_string): Provide error detection to
2036 caller. Put string in malloc'd space, so caller need not impose
2038 * solib.c (find_solib): Update to use new interface.
2039 * irix5-nat.c (find_solib): Read o_path from inferior
2040 (clear_solib): Free storage for o_path.
2041 * valprint.c (val_print_string): Add comments.
2045 * symtab.c (decode_line_1): Handle the case when skip_quoted does not
2050 * value.h (struct value): Add modifiable field.
2051 * values.c (allocate_value, record_latest_value, value_copy): Set it.
2052 (record_latest_value): Don't mess with VALUE_LVAL of value.
2053 * valops.c (value_assign): Check it. Reword existing error
2054 message on not_lval.
2056 * mips-tdep.c (mips_step_skips_delay), config/mips/tm-mips.h
2057 (STEP_SKIPS_DELAY): Added.
2058 * infrun.c (proceed) [STEP_SKIPS_DELAY]: Check for a breakpoint in
2061 * valprint.c (val_print_string): If errcode is set, always print
2062 an error, regardless of force_ellipsis. In the non-EIO case,
2063 just print the error message rather than calling error(). Don't
2064 access *(bufptr-1) if bufptr points to the start of the buffer.
2065 When looking for '\0', don't increment bufptr and addr if bufptr
2066 started out already at limit. If an error happens on fetching the
2067 first character, don't print the string.
2071 * config/m68k/tm-apollo68b.h: Remove HAVE_68881 define; it is
2074 * i387-tdep.c, i386-tdep.c i386v-nat.c, i386aix-nat.c,
2075 i386m3-nat.c, config/m68k/tm-m68k.h, i960-tdep.c
2076 config/i960/tm-i960.h, remote-nindy.c, config/m88k/tm-m88k.h,
2077 m88k-tdep.c: Use floatformat.h instead of ieee-float.h.
2078 * sparc-tdep.c: Remove now-obsolete ieee-float.h stuff
2079 * findvar.c: Update comment regarding ieee-float.h.
2083 * config/i386/tm-i386v4.h (I386V4_SIGTRAMP_SAVED_PC, IN_SIGTRAMP,
2084 FRAME_CHAIN, FRAMELESS_FUNCTION_INVOCATION, FRAME_SAVED_PC):
2085 Define to make backtracing through the various sigtramp handlers
2087 * i386-tdep.c (i386v4_sigtramp_saved_pc): New routine to fetch
2088 the saved pc from ucontext on the stack for SVR4 signal handling.
2092 * remote.c, remote-mon.c, remote-utils.c, remote-utils.h,
2093 target.h, remote-es.c, remote-nindy.c: Don't set baud rate if
2094 baud_rate is -1. Remove sr_get_baud_rate and sr_set_baud_rate;
2095 just use the global variable itself. When printing baud rate,
2096 don't print a baud rate if baud_rate is -1.
2098 * coffread.c (read_coff_symtab): Pass mst_file_* to
2099 record_minimal_symbol for C_STAT symbols. Put C_EXT and C_STAT
2100 symbols in the minimal symbols regardless of SDB_TYPE.
2104 * breakpoint.h (enum bptype): New type bp_through_sigtramp.
2105 (bpstat_what_main_action): New code BPSTAT_WHAT_THROUGH_SIGTRAMP.
2106 * breakpoint.c (bpstat_what): Return BPSTAT_WHAT_THROUGH_SIGTRAMP
2107 if we hit a bp_through_sigtramp breakpoint. Remove kludge which
2108 ignored bs->stop for a bp_step_resume breakpoint.
2109 * infrun.c (wait_for_inferior): Make a through_sigtramp_breakpoint
2110 which performs one (the check_sigtramp2 one) of the functions
2111 which had been handled by the step_resume_breakpoint. For each
2112 use of the step_resume_breakpoint, make it still use the
2113 step_resume_breakpoint, use the through_sigtramp_breakpoint, or
2115 Deal with BPSTAT_WHAT_THROUGH_SIGTRAMP return from bpstat_what.
2116 When setting the frame address of the step resume breakpoint, set
2117 it to the address for frame *before* the call instruction is
2118 executed, not after.
2120 * mips-tdep.c (mips_print_register): Print integers using
2121 print_scalar_formatted rather than duplicating all the
2122 CC_HAS_LONG_LONG and so on.
2123 (mips_push_dummy_frame): Use read_register_gen rather than using
2124 read_register and then putting it back in target format with
2125 store_unsigned_integer. If registers are more than 4 bytes, give
2126 an error rather than have some registers overwrite other
2128 #if 0 unused include of opcode/mips.h.
2130 * symfile.h: Don't declare arguments for coff_getfilename.
2132 * defs.h: Revert Kung change regarding FORCE_LONG_LONG.
2136 * configure.in (hppa*-*-osf*): New configuration.
2137 * config/pa/hppaosf.mt: New target makefile fragment.
2138 * config/pa/tm-hppao.h: New target include file.
2142 * exec.c (print_section_info): Print entry point for exec_bfd only.
2143 * ser-unix.c (wait_for): Fix typo in HAVE_TERMIO case.
2144 * dwarfread.c: Remove second inclusion of <sys/types.h>, which
2145 causes problems if <sys/types.h> has no multiple inclusion protection.
2149 * tm-hppa.h (CALL_DUMMY): Add two NOP instructions to the end of
2150 the call dummy to avoid kernel bugs in HPUX, BSD, and OSF1.
2151 (CALL_DUMMY_LENGTH): Changed accordingly.
2153 Wed Feb 23 16:21:25 1994 Stu Grossman (grossman at cygnus.com)
2155 * sparc-stub.c (trap_low): Make trap handler work for arbitrary
2156 numbers of register windows.
2158 * sparclite/hello.c: Add factorial function for testing.
2159 * salib.c: Use macros instead of constants for I/O addresses to
2160 make 931 support easier.
2161 * sparclite.h: Change constraint for LOC to "rJ" to force use of
2162 register in sta/lda instructions.
2166 * dbxread.c (process_one_symbol): Set
2167 block_address_function_relative for COFF like we do for ELF and SOM.
2171 * mdebugread.c (new_psymtab): Pass in section_offsets and set
2173 * mdebugread.c (handle_psymbol_enumerators): New function to enter
2174 the enumerators of an ecoff enum into the partial symbol table.
2175 * mdebugread.c (parse_partial_symbols): Call it.
2176 * symfile.c (reread_symbols): Initialize objfile->*_psymbols.next.
2177 * symmisc.c (dump_psymtab): Fix typo, clean up output of section
2178 offsets. Cast psymtab->read_symtab to PTR before passing it to
2180 * i386-tdep.c (i386_skip_prologue): Skip over instructions that
2181 set up the global offset table pointer in pic compiled code.
2182 * config/mips/tm-mips.h (FIX_CALL_DUMMY): For big endian targets,
2183 error() on TYPE_CODE_FLT arguments whose size is greater than 8,
2184 swap all other TYPE_CODE_FLT arguments as mips_push_arguments
2185 ensures that floats are promoted to doubles before they are pushed
2188 Fri Feb 18 23:12:59 1994 Stu Grossman (grossman at cygnus.com)
2190 * sparclite/Makefile.in, sparclite/salib.c, sparclite/sparclite.h:
2191 Fixup cache_on and flush_i_cache so that they work for both the
2192 930 and 932 processors. Rewrite most low level funcs (uart
2193 access & cache stuff) to use new ASI access macros in sparclite.h.
2194 Also make it easy to access second serial port.
2198 * hp300ux-nat.c: Don't incloude <sys/dir.h>, <sys/ioctl.h>, or
2199 <sys/stat.h>; not needed.
2203 * stack.c (print_frame_info): In "pathological" case, don't
2204 distrust the line number information.
2208 * mips-tdep.c (mips_print_register): handle 64 bits register.
2209 * valprint.c (print_longest): fix a bug in printing 64 bits value.
2215 * Makefile.in (install): Do the sed for program_transform_name
2216 ourselves instead of worrying about INSTALL_XFORM. This enables
2217 users to override INSTALL_PROGRAM in the standard way.
2219 * Makefile.in (c-exp.tab.o, ch-exp.tab.o, m2-exp.tab.o): Don't
2220 depend on Makefile.in.
2222 * defs.h, valprint.c: Make longest_to_int a function not a macro.
2223 Only test against INT_MIN if a LONGEST is bigger than an int.
2225 * README: Change GhostScript to Ghostscript.
2229 * config/rs6000/{tm-rs6000lynx.h,nm-rs6000lynx.h,xm-rs6000lynx.h}:
2230 Rename to tm-rs6000ly.h, nm-rs6000ly.h, xm-rs6000ly.h for 14
2231 character file names.
2232 * Makefile.in (ALLPARAM): Add these files.
2234 * config/mips/littlemips64.mt: Rename to mipsel64.mt for 14
2235 character file names.
2236 * Makefile.in: Add Kung's new mips64 files.
2240 * configure.in: add mips64-*-elf, mips64-*-ecoff, mips64el-*-elf,
2241 mips64el-*-ecoff and mips64-big-*.
2242 * defs.h: get rid of FORCE_LONG_LONG.
2243 * mips-tdep.c (mips_find_saved_regs): add sd and sdc1 instruction
2244 parsing. Change register size to be MIPS_REGSIZE.
2248 * corelow.c, exec.c, irix5-nat.c, mipsread.c, objfiles.c,
2249 osfsolib.c, rs6000-nat.c, solib.c, symfile.c, utils.c,
2250 xcoffexec.c: Use bfd_get_error and bfd_set_error and new error names.
2254 * remote-hms.c (readchar, hms_open, hms_fetch_register): Made more robust.
2255 (remove_commands, add_commands): Add/remove hms-drain when target
2258 Fri Feb 11 16:11:38 1994 Stu Grossman (grossman at cygnus.com)
2260 * configure.in: Add Lynx/rs6000 support.
2261 * lynx-nat.c: Clean up some Sparc stuff. Clean up ptrace error
2262 messages. Add rs6000 support. Don't try to modify unwritable
2264 * rs6000-nat.c: Move lots of native dependent stuff (like core
2265 file support) from rs6000-tdep.c & xcoffexec.c to here.
2266 * rs6000-tdep.c: Move native dependent stuff to nat.c.
2267 * xcoffexec.c: Move native dependent stuff to nat.c.
2268 * config/rs6000/nm-rs6000.h: Move defs of SOLIB_* macros to here
2270 * config/rs6000/tm-rs6000.h: Remove defs of SOLIB_* funcs, cuz they're
2272 * config/rs6000/tm-rs6000lynx.h, config/rs6000/xm-rs6000lynx.h:
2273 New files to support Lynx/rs6000.
2277 * README: Remove note about gcc warnings on alpha, these should be
2279 * c-exp.y, ch-exp.y, core.c, corelow.c, eval.c, fork-child.c,
2280 m2-exp.y, minsyms.c, nlmread.c, parse.c, putenv.c, regex.c
2281 remote-utils.c, stabsread.c: Include <string.h>.
2282 * regex.c: Include "defs.h", change re_comp argument to const char *.
2283 * infptrace.c (fetch_register, store_inferior_registers): Change
2284 regaddr to type CORE_ADDR.
2285 * config/alpha/alpha-nw.mt, config/alpha/alpha-osf1.mt (MT_CFLAGS):
2286 Remove, no longer necessary now that we use bfd_vma for a CORE_ADDR.
2290 * symtab.h: Always define BYTE_BITFIELD to nothing.
2294 * config/m68k/{m68k-em.mt,tm-m68k-em.h}: Remove; no longer used.
2295 * configure.in: Remove comment about m68k-em.mt.
2296 * Makefile.in: Remove references.
2300 * defs.h [BFD64]: Use BFD_HOST_64_BIT, not nonexistent
2305 * target.c (target_preopen): If target_kill doesn't remove the
2306 target from the stack, use pop_target to do it.
2308 * coffread.c (process_coff_symbol, case C_TPDEF): Don't set name
2309 of TYPE_CODE_PTR or TYPE_CODE_FUNC types. This parallels similar
2310 changes to stabsread.c from summer 1993.
2312 * remote-udi.c (udi_files_info): If prog_name is NULL, just skip
2313 printing the program, rather than passing NULL to printf.
2314 (udi_detach): Set udi_session_id to -1 so that udi_close doesn't
2315 try to call UDIDisconnect again. Print better message.
2316 (udi_kill): Just call UDIDisconnect ourselves, rather than doing
2318 (udi_create_inferior): If udi_session_id is negative, open a new
2319 TIP rather than giving an error.
2321 * config/mips/mipsm3.mh, config/i386/i386m3.mh,
2322 config/ns32k/ns32km3.mh: Define NAT_FILE.
2323 * config/nm-m3.h: Change guard from _OS_MACH3_H_ and _OS_MACH3_H
2324 (it was inconsistent and namespace-wrong) to NM_M3_H.
2325 * m3-nat.c (mach_really_wait): Change parameter name to ourstatus.
2326 (m3_open): New function.
2328 * TODO: Update Mach section.
2330 * Makefile.in: Remove "rapp" stuff; it is superseded by gdbserver.
2334 * printcmd.c (printf_command): Add missing single-letter
2335 backslash-escape sequences, and improve error message.
2339 * corelow.c (solib_add_stub, core_open): Pass address of from_tty
2340 rather than trying to shove an int into a pointer and back out
2341 again. This avoids compiler warnings.
2343 * defs.h (alloca): Declare as void *, not char *, on hpux.
2344 Don't prototype it, just declare the return type.
2348 * config/i386/tm-sun386.h, config/i386/tm-symmetry.h
2349 (REGISTER_CONVERT_TO_RAW): Add missing backslash.
2353 * remote-mips.c (mips_fetch_registers): If regno is FP_REGNUM or
2354 ZERO_REGNUM, just read it as zero without talking to the board.
2356 * config/i386/tm-i386aix.h (REGISTER_CONVERT_TO_RAW): Add missing
2358 * i386-tdep.c (i386_extract_return_value): Pass TYPE_LENGTH (type)
2359 to store_floating, not nonexistent variable len.
2361 * remote-mips.c (mips_insert_breakpoint, mips_remove_breakpoint):
2363 (mips_store_word): Change calling convention to return errors, and
2364 to provide old contents if the caller wants it.
2365 (mips_xfer_memory): Deal with errors from mips_store_word.
2366 * config/mips/tm-idt.h, config/mips/tm-idtl.h: Remove BREAKPOINT
2367 define now that remote-mips.c doesn't use BREAKPOINT.
2369 * remote-mips.c (mips_create_inferior): Call warning if arguments
2370 specified, and then execute "set args" command. Call error, not
2371 mips_error, if executable file not specified.
2373 * remote-e7000.c: Replace "snoop" command (e7000_noecho) with
2376 * config/rs6000/tm-rs6000.h (STORE_STRUCT_RETURN): Don't cast
2381 * value.h (print_longest): Rename "value" to "val" in prototype
2382 declaration because some compilers don't like arguments whose
2383 names are the same as types.
2384 * remote.c (remote_xfer_memory): Cast "myaddr" to unsigned char *
2385 before passing it to remote_*_bytes.
2389 * h8500-tdep.c (saved_pc_after_call): The size of the
2390 pc is memory model dependent. (segmented_command,
2391 unsegmented_command, _initialize_h8500_tdep): New commands to
2392 change memory model.
2393 * remote-e7000.c (_initialize_remote_e7000): Change name of snoop
2395 * remote-hms.c (hms_load): Remove breakpoints when loaded.
2396 (hms_wait): Use new status structure
2397 (hms_open): Push the target here. (hms_before_main_loop): Not
2398 here. (supply_val, hms_fetch_register, hms_store_register): Cope
2399 with H8/500 names too. (hms_fetch_register): Take out REGISTER_TYPE.
2400 * sh-tdep.c (show_regs, initialize_sh_tdep): New command to print
2401 all registers in a compact way.
2405 * config/rs6000/tm-rs6000.h: Declare rs6000_struct_return_address
2406 as CORE_ADDR to match definition in rs6000-tdep.c.
2410 * dwarfread.c (process_dies): Skip nested TAG_compile_unit DIEs.
2411 * dwarfread.c (add_partial_symbol): Do not enter opaque aggregate
2412 definitions into the psymtab.
2416 * m68k-stub.c: Treat mc68332 like mc68020 most places. Provide
2417 a special exceptionSize for the 68332.
2419 * remote-udi.c (udi_attach): If no arguments, print error.
2423 * Makefile.in (VERSION): Bump to 4.12.1
2424 * NEWS, README: Update to match 4.12 release.
2428 * command.c (empty_sfunc): New function.
2429 (add_set_cmd): Use it instead of not_just_help_class_command.
2430 (not_just_help_class_command): Change calling convention back to
2431 what it was before yesterday's change.
2433 * stabsread.c (read_sun_builtin_type): Skip the semicolon at the end
2434 of the type if present.
2438 * printcmd.c (decode_format): Don't blithely set the size for
2439 an address to 'w'. Make it 'g' or 'h', depending on TARGET_PTR_BIT.
2441 * defs.h: Just typedef CORE_ADDR to bfd_vma. Include bfd.h.
2442 If BFD64, make a LONGEST a BFD_HOST_64_BIT.
2443 * defs.h (longest_to_int): Don't depend on CC_HAS_LONG_LONG; instead
2444 always just check against INT_MIN and INT_MAX (this also fixes things
2445 if sizeof (long) > sizeof (int), e.g. Alpha).
2446 * config/pa/tm-hppa.h, config/i386/sun386.h, config/rs6000/tm-rs6000.h:
2447 Don't define LONGEST or BUILTIN_TYPE_LONGEST.
2448 * gdbtypes.h: Remove BUILTIN_TYPE_LONGEST and
2449 BUILTIN_TYPE_UNSIGNED_LONGEST.
2450 * language.h, c-lang.c, ch-lang.c, m2-lang.c, language.c: Remove
2451 longest_int and longest_unsigned_int.
2452 * value.h (struct value): Just align to LONGEST, rather than worrying
2453 about CC_HAS_LONG_LONG.
2454 * valarith.c (value_binop): Figure out type ourself based on
2455 sizeof (LONGEST) rather than relying on BUILTIN_TYPE_LONGEST. The
2456 point is that we don't depend on CC_HAS_LONG_LONG anymore.
2457 * valprint.c (val_print_type_code_int): Just call
2458 extract_unsigned_integer directly, rather than going through
2460 * printcmd.c (decode_format): Remove code which would sometimes
2461 change 'g' size to 'w' for integers. print_scalar_formatted handles
2462 printing huge integers well enough, thank you.
2464 * command.c (add_set_cmd, not_just_help_class_command): Change
2465 to make this the sfunc, not cfunc, since that is how we call it.
2466 * command.h: Comment difference between sfunc and cfunc.
2467 * demangle.c (set_demangling_command): Add third arg since that
2468 is how it is called.
2469 (_initialize_demangler): Use sfunc, not cfunc, for
2470 set_demangling_command, since that is how it is called.
2471 Remove show_demangling_command; it has no effect.
2473 * command.c (shell_escape): Report errors correctly (with error
2474 message from strerror).
2478 * xcoffread.c (read_xcoff_symtab): Change CSECT_LEN to use
2479 x_scnlen.l rather than x_scnlen to match corresponding change in
2484 * gdbtypes.h, ch-typeprint.c, ch-valprint.c:
2485 Change comments regarding TYPE_CODE_BOOL.
2486 * language.c (boolean_type): Always return 1 for TYPE_CODE_BOOL,
2487 regardless of the language.
2488 (value_true): Just call value_logical_not regardless of language.
2489 * coffread.c (coff_read_enum_type), stabsread.c (read_enum_type):
2490 Remove #if 0'd code which makes some enums TYPE_CODE_BOOL.
2491 * language.h: Improve comment for la_builtin_type_vector.
2492 * m2-lang.c (_initialize_m2_language): Don't add any fields to
2493 builtin_type_m2_bool.
2497 * config/m88k/{tm-delta88.h,tm-delta88v4.h}, m88k-tdep.c:
2498 Define IN_SIGTRAMP and backtrace correctly through signal handlers.
2502 * procfs.c (wait_fd): Handle EINTR error return from PIOCWSTOP ioctl
2503 by restarting the ioctl.
2507 * target.h (target_wait): Add comment about calling
2508 return_to_top_level.
2512 * coffread.c (read_one_sym): bfd_coff_swap_aux_in now takes
2513 additional arguments.
2514 * xcoffread.c (read_xcoff_symtab, read_symbol_lineno): Likewise.
2516 Mon Jan 31 16:10:41 1994 Stu Grossman (grossman at cygnus.com)
2518 * sparc-stub.c: Remove unnecessary #include of memory.h.
2522 * mips-tdep.c: Remove code which sets saved_regs from
2523 init_extra_frame_info and put it in new function mips_find_saved_regs.
2524 (READ_FRAME_REG): Remove macro and replace uses with the expansion.
2525 * mips-tdep.c, config/mips/tm-mips.h: When examining ->saved_regs,
2526 check if it is NULL and call mips_find_saved_regs if so.
2528 * remote-mips.c: Use unfiltered, not filtered, output most places.
2530 * blockframe.c (get_prev_frame_info): Detect and stop an infinite
2531 backtrace. Revise comments.
2535 * mdebugread.c (parse_procedure): Remove _sigtramp kludges for
2536 alpha and irix. The _sigtramp case has to be handled properly
2537 in the tdep files if we have no ecoff debugging info.
2538 * alpha-tdep.c (alpha_frame_saved_pc, alpha_frame_chain),
2539 mips-tdep.c (mips_frame_saved_pc): Handle signal handler frames
2540 without PC_REGNUM kludge.
2541 * mdebugread.c (fixup_sigtramp), mips-tdep.c (read_next_frame_reg):
2542 Clean up handling of mips sigtramp frames, improve comments.
2546 * paread.c (read_unwind_info): Fix typo.
2548 * paread.c (pa_symtab_read): Update the "check_strange_names"
2549 filter to match GCC's current output. Filter out section symbols
2550 (which the HP linker sometimes puts in the wrong place).
2554 * serial.h (SERIAL_SET_TTY_STATE): Comment return value.
2556 * Makefile.in (TAGS): Just echo one line, rather than the whole thing.
2558 * Makefile.in: Remove all references to sparcly-nat.c.
2560 * Makefile.in (HFILES_NO_SRCDIR): Include dcache.h remote-utils.h
2561 remote-sim.h directly, rather than via $(remote_utils_h). This avoids
2562 duplicating serial.h and target.h.
2564 * Makefile.in: Don't set M_INSTALL and M_UNINSTALL. These variables
2565 are not used anywhere (a 5 Oct 1993 change removed the uses).
2567 * config/m68k/monitor.mt (TDEPFILE): Add remote-es.o.
2568 * config/m68k/es1800.mt: Add comment.
2569 * remote-es.c: Extensive changes to update to current conventions.
2571 * ser-unix.c (wait_for, hardwire_readchar) [HAVE_TERMIO, HAVE_TERMIOS]:
2572 If the timeout is too big to fit in c_cc[VTIME], then do multiple reads
2573 to achieve the desired timeout.
2574 * serial.h (serial_t): Add field timeout_remaining.
2578 * c-exp.y (yylex): Reenable nested type code.
2582 * a29k-tdep.c (examine_tag): Add comment regarding argcount.
2584 * remote-mips.c (mips_ops): Fix docstring.
2586 * remote-bug.c (bug_ops): Remove spurious newline from docstring.
2588 * config/m68k/tm-monitor.h: Changes to bring this into accordance
2589 with the old tm-m68k-em.h:
2590 (GDBINIT_FILENAME, DEFAULT_PROMPT): Remove.
2591 (HAVE_68881): Don't undefine; HAVE_68881 is obsolete.
2592 (REGISTER_NAMES): Don't muck with it; what tm-m68k.h has is fine.
2593 Add FIXME regarding GET_LONGJMP_TARGET.
2595 * remote-udi.c (udi_close, udi_detach, udi_kill): Add comments.
2596 * infptrace.c (kill_inferior): Add comments.
2597 * main.c (quit_command): Call target_close after we kill or
2599 * remote-udi.c (udi_close): Don't error() if QUITTING.
2603 * configure.in: Make m68k-coff and aout add monitor support in
2604 addition to the standard serial support.
2608 * mdebugread.c (psymtab_to_symtab_1): Don't complain on stLabel with
2613 * config/pa/tm-hppa.h: Define macro SMASH_TEXT_ADDRESS.
2614 * elfread.c (record_minimal_symbol_and_info),
2615 dwarfread.c (process_dies), paread.c (pa_symtab_read): Use it.
2619 * i386-stub.c: Add ".text" right before "mem_fault:".
2621 * main.c (baud_rate): Add FIXME comment about printing -1 value.
2623 * remote-utils.c (usage): Fix message to be accurate and conform
2624 more closely to normal conventions.
2626 * remote-utils.c (gr_files_info): Have the exec_bfd test control
2627 whether to show information about exec_bfd, and not control whether
2628 to show information about device and speed.
2630 * remote-utils.c (gr_open): If sr_get_device returns NULL, give
2631 usage message, don't dump core.
2633 * remote-bug.c (bug_write_memory): Use alloca, not GCC extension
2634 for variable size array.
2635 (bug_fetch_register, bug_store_register): Rename "value" to
2636 "fpreg_buf" because some compilers don't like variables whose
2637 names are the same as types.
2638 (bug_store_register): Use a cast when converting char * to
2641 * symmisc.c (maintenance_print_symbols): Don't refer to the name
2642 of the command in error message (the text was referring to the old
2643 name of the command).
2645 * symmisc.c (dump_symtab): Fix args to fprintf_filtered.
2647 * c-typeprint.c (c_type_print_base): Have SHOW == 0 mean to print
2648 full details on structure elements without names. This partially
2649 reverts the changes of 1 Jul 1993 and 31 Aug 1993; I think this aspect
2650 of those changes was accidental.
2652 * stack.c (parse_frame_specification): If SETUP_ARBITRARY_FRAME is
2653 defined, make it an error to specify a single argument which is not
2656 * Makefile.in (version.c), main.c (print_gdb_version): Use
2657 host_alias and target_alias, not host_canonical and
2658 target_canonical, to print configuration.
2662 * parse.c (write_exp_msymbol): Use new type msymbol_addr_type instead
2663 of builtin_type_long. It is necessary to get a type which is
2664 TARGET_PTR_BIT bits in size; builtin_type_long might not be big enough.
2666 Fix many sins which will come up in 32 bit x 64 bit GDB, and
2667 various miscellaneous things discovered in the process:
2668 * printcmd.c, defs.h (print_address_numeric): New function.
2669 * c-valprint.c (c_val_print), ch-valprint.c (chill_val_print)
2670 breakpoint.c (describe_other_breakpoints, breakpoint_1, mention),
2671 cp-valprint.c (cplus_print_value), infcmd.c (jump_command),
2672 printcmd.c, stack.c, symfile.c, symmisc.c, valprint.c:
2674 * utils.c, defs.h (gdb_print_address): New function.
2675 * expprint (dump_expression), gdbtypes.h: Use it.
2676 * breakpoint.c (describe_other_breakpoints),
2677 symmisc.c (dump_symtab, print_symbol):
2678 Use filtered not unfiltered I/O.
2679 (remove_breakpoints): Remove BREAKPOINT_DEBUG code. Might as well
2680 just run gdb under a debugger for this (and it had problems with
2681 printing addresses, how to print b->shadow, etc.).
2682 * buildsym.c (make_blockvector), core.c (memory_error),
2683 exec.c (print_section_info), maint.c (print_section_table),
2684 mdebugread.c (parse_procedure), solib.c, source.c, symfile.c,
2685 symmisc.c, symtab.c, valops.c, valprint.c, xcoffexec.c:
2686 Add comments saying code is broken. Marked with "FIXME-32x64".
2687 * dbxread.c (process_one_symbol), partial-stab.h (default),
2688 remote-vx.c (vx_run_files_info):
2689 Don't cast int being passed to local_hex_string.
2690 * symmisc.c (print_symbol): Don't cast long being passed to %lx.
2691 * symtab.h (general_symbol_info): Add comment about SYMBOL_VALUE
2693 * symmisc.c (print_symbol): Print "offset" in message for LOC_ARG
2695 * printcmd.c (print_address): Remove #if 0 code with ADDR_BITS_REMOVE.
2696 * source.c: Include <sys/types.h> regardless of USG.
2700 * valops.c (value_assign): Set `type' after coercing toval.
2701 * c-valprint.c (c_val_print), ch-valprint.c (chill_val_print):
2702 Use extract_unsigned_integer to get the address of a reference.
2706 * stabsread.c (STABS_CONTINUE, error_type), partial-stab.h:
2707 AIX can use ? instead of \ for continuation. Deal with it.
2709 * paread.c (read_unwind_info): Just assign to objfile->obj_private,
2710 not OBJ_UNWIND_INFO. Assigning to a cast is a GCC-ism which
2711 the HP compiler in ANSI mode doesn't like.
2713 * main.c: When defaulting HAVE_SIGSETMASK based on USG, just do it
2714 based on USG, rather than defining HAVE_SIGSETMASK to an
2715 expression containing defined. Having a macro used in #if expand
2716 to an expression containing "defined" is undefined according to
2717 ANSI, and the HP compiler in ANSI mode doesn't do what we wanted
2722 * sparc-nat.c (fetch_inferior_registers, store_inferior_registers):
2723 Clean up the changes of 11 Jan, as recommended by Peter Schauer.
2727 * ch-exp.y (match_string_literal): Allow a zero-length string.
2728 * ch-lang.c (chill_printstr): Don't print zero-length string funny.
2732 * i386aix-nat.c (i386_float_info): Reverse order of registers before
2733 passing them to print_387_status.
2734 (print_387_status): Don't subtract top from 7 before using it.
2735 * i387-tdep.c: Remove comment about AIX wanting "top" subtracted
2736 from 7; the above explains it.
2740 * mips-tdep.c (init_extra_frame_info): Use frame relative stack
2741 pointer value when fixing up the frame at the start of a function.
2743 Sat Jan 22 12:29:13 1994 Stu Grossman (grossman at cygnus.com)
2745 * lynx-nat.c (fetch_core_registers): Load the I & L regs for the
2746 Sparc from the stack.
2750 * remote-mips.c (mips_initialize): Clear mips_initializing via
2751 cleanup chain, not directly.
2753 * ser-unix.c (wait_for) [HAVE_TERMIO, HAVE_TERMIOS]: Make a timeout
2754 of -1 mean forever, like in the HAVE_SGTTY case. Warn if we are
2755 munging the timeout due to the limited range of c_cc[VTIME].
2757 * fork-child.c, inferior.h (fork_inferior): New argument shell_file.
2758 * procfs.c (procfs_create_inferior), inftarg.c (child_create_inferior),
2759 m3-nat.c (m3_create_inferior): Pass it.
2760 * procfs.c: Remove ptrace function. It was declared in a way which
2761 conflicted with the prototype in unistd.h on Solaris.
2765 * sparc-tdep.c (frame_saved_pc): Get the pc from the saved pc
2766 in the sigcontext if it is a signal trampoline frame.
2767 * config/sparc/tm-sun4sol2.h (IN_SIGTRAMP, SIGCONTEXT_PC_OFFSET):
2768 Define for Solaris2.
2770 Sat Jan 22 00:34:47 1994 Stu Grossman (grossman at cygnus.com)
2772 * sparc-tdep.c, lynx-nat.c, config/sparc/tm-sparc.h,
2773 config/sparc/tm-sparclynx.h: Move defs of FRAME_SAVED_I0/L0 to
2774 tm-sparc.h so they can be overridden if necessary.
2776 Fri Jan 21 17:49:28 1994 Stu Grossman (grossman at cygnus.com)
2778 * lynx-nat.c: Add Sparc support.
2779 * sparcly-nat.c: Remove. It's useless.
2780 * config/sparc/nm-sparclynx.h: Rewrite.
2781 * config/sparc/sparclynx.mh (NATDEPFILES): Replace sparcly-nat.o
2783 * config/sparc/tm-sparclynx.h: Rewrite.
2787 * rs6000-pinsn.c: Use the new disassembler in the opcodes
2788 directory. Old code was discarded, since the new opcode table has
2793 * Makefile.in (realclean): Remove info files per make-stds.texi.
2797 * dbxread.c (end_psymtab): Only patch psymtab textlow and texthigh
2798 if N_SO_ADDRESS_MAYBE_MISSING is defined.
2799 * config/sparc/tm-sun4sol2.h: Define it.
2803 * printcmd.c (print_address_symbolic): Unconditionally use msymbol
2804 if we did not find a symbol.
2808 * infptrace.c (child_xfer_memory): Only use if CHILD_XFER_MEMORY
2811 * hppab-nat.c (call_ptrace): Delete redundant function.
2812 (kill_inferior, attach, detach, child_resume): Likewise.
2813 (child_xfer_memory): Likewise.
2815 * hppah-nat.c (call_ptrace): Delete redundant function.
2816 (kill_inferior, attach, detach, child_resume): Likewise.
2818 * config/pa/hppabsd.mh (NATDEPFILES): Add infptrace.o.
2820 * config/pa/hppahpux.mh (NATDEPFILES): Add infptrace.o.
2822 * config/pa/nm-hppab.h (FETCH_INFERIOR_REGISTERS): Define.
2824 * config/pa/nm-hppah.h (FETCH_INFERIOR_REGISTERS): define.
2825 (CHILD_XFER_MEMORY): Define.
2826 (PT_*): Define so that generic infptrace.c code can be used.
2830 * xcoffread.c (xcoff_symfile_read): Make second parameter a
2831 struct section_offsets *, not a (nonexistent) struct section_offset *.
2833 * xcoffread.c (read_xcoff_symtab): Make main_aux just a union
2834 internal_xcoff_symtab, not an array of one of them. Change lots of
2835 "main_aux" to "&main_aux" and so on.
2837 * coffread.c, xcoffread.c: Include <coff/internal.h>
2842 * coffread.c (coff_getfilename): Make it not static.
2844 * xcoffread.c (read_xcoff_symtab): complain() not abort().
2846 * xcoffread.c (struct coff_symbol): Rename c_nsyms to c_naux (removes
2847 a completely gratuitous difference between xcoffread.c and coffread.c).
2851 * infrun.c (wait_for_inferior): Don't set frame for
2852 step_resume_breakpoint for IN_SIGTRAMP cases.
2854 * infrun.c (wait_for_inferior), breakpoint.h (struct bpstat_what),
2855 breakpoint.c (bpstat_what): Move step_resume from its own field of
2856 the struct bpstat_what into the main_action. Make it override
2857 other breakpoints. This is a conservative change in the sense
2858 that before the step resume breakpoint was a breakpoint.c
2859 breakpoint, hitting the step resume breakpoint overrode even
2860 calling bpstat_stop_status.
2864 * infrun.c (normal_stop): Set stop_pc after popping the dummy frame
2865 in case execution was stopped in the called function.
2866 * stack.c (print_frame_info, frame_info): If backtracing through
2867 a call dummy, handle the starting source line number on a line
2868 boundary like backtracing through sigtramp.
2869 * sparc-tdep.c (sparc_frame_find_saved_regs): Get frame address
2870 for call dummy frame right. Remove old test for dummy frame,
2871 it has been unused at least since gdb-3.5.
2872 * sparc-tdep.c (sparc_push_dummy_frame): Set return address register
2877 * infcmd.c (signal_command): Accept 0 as legitimate signal number.
2881 * infrun.c (signals_info), target.c (target_signal_from_name):
2882 Use ugly casts to avoid enumvar < enumvar or enumvar++.
2886 * ser-unix.c (hardwire_noflush_set_tty_state): Don't muck with ICANON.
2887 * inflow.c (terminal_ours_1): When discussing how to deal with the
2888 tty state, make note of query() as well as readline.
2890 * infrun.c (_initialize_infrun): Add TARGET_SIGNAL_POLL to list of
2891 signals for which stop and print are cleared by default.
2895 * config/pa/tm-hppa.h (unwind_table_entry): Use one of the
2896 reserved fields to hold a stub unwind entry type. Fix typo.
2897 (stub_unwind_entry): New structure for raw stub unwind entries.
2898 (stub_unwind_types): The types of stubs we may encounter.
2899 (UNWIND_ENTRY_SIZE, STUB_UNWIND_ENTRY_SIZE): New defines.
2900 * hppa-tdep.c (rp_saved): Use additional information provided
2901 by linker stub unwind descriptors.
2902 (frameless_function_invocation): Likewise.
2903 (frame_chain_valid): Likewise.
2904 * paread.c (compare_unwind_entries): New function for sorting
2905 unwind table entries.
2906 (read_unwind_info): Rewrite to remove dependency on host endianness.
2907 Read in data from the $UNWIND_END$ subspace which contains linker
2908 stub unwind descriptors. Merge that data into the basic unwind
2911 * hppab-nat.c (_initialize_kernel_u_addr): Delete unwanted functions.
2915 * xcoffread.c (read_xcoff_symtab, case C_FILE): Accept the name
2916 from either the symbol name or the auxent.
2917 * coffread.c, symfile.h (coff_getfilename): Renamed from getfilename,
2922 * Makefile.in (ALLPARAM): Change irix5.h to nm-irix5.h.
2926 * README: Update notes for alpha port.
2930 * i960-tdep.c (i960_fault_to_signal): Return TARGET_SIGNAL_ILL
2931 for operation fault, constraint fault, and type fault.
2935 * Makefile.in (init.c): Add comment explaining formatting conventions.
2937 * c-exp.y (parse_number): Assign to temporary between the right
2938 shifts, to work around a bug in the SCO compiler.
2940 * Makefile.in (ALLCONFIG, ALLPARAM, ALLDEPFILES, HFILES_NO_SRCDIR):
2941 Add various files which were added to GDB recently.
2943 * xcoffread.c (process_xcoff_symbol): Only change 'V' to 'S' if not
2946 * Makefile.in: Add mostlyclean target.
2954 * main.c (show_commands): Make return type of extern
2955 history_get be HIST_ENTRY, rather than struct _hist_entry.
2956 (The latter loses with the upcoming merged readline.)
2960 * minsyms.c (prim_record_minimal_symbol_and_info): Make tempstring
2961 const char *, not char *.
2963 * symtab.h (struct symbol): Make section short, not unsigned short.
2965 * symtab.c (lookup_symbol): Add comment about QUIT here.
2967 * utils.c (fputs_unfiltered): Call fputs, not fputs_maybe_filtered.
2969 * c-exp.y (parse_number): Check for overflow regardless of range
2970 checking. Fix overflow check to use unsigned LONGEST, not
2973 * c-exp.y (parse_number): Make it so that integer constants are
2974 builtin_type_long_long if builtin_type_long isn't big enough or if
2975 an "LL" suffix is used. Properly handle "UL" or "LU" suffixes.
2977 * c-typeprint.c (c_type_print_varspec_suffix, case TYPE_CODE_FUNC):
2978 Print our "()" first, then recurse for the target type.
2982 * remote-udi.c (udi_create_inferior): Quote empty execfile argument.
2984 * gdbserver/low-lynx.c: Include <sys/wait.h> not "/usr/include/wait.h".
2988 * utils.c (request_quit): Re-establish signal handler regardless
2991 * config/mips/xm-irix4.h: Define HAVE_TERMIOS.
2995 * i960-tdep.c: Include target.h.
2999 * lynx-nat.c (sys/wait.h): Don't use absolute pathname.
3003 * lynx-nat.c (child_wait): Fix thinkos in struct target_waitstatus
3004 changes (status -> ourstatus; declare status, etc.).
3005 * config/nm-lynx.h: Fix child_wait prototype and include target.h.
3009 * Makefile.in (ALLPARAM): Add config/nm-lynx.h.
3013 * remote-mips.c (mips_request, mips_wait): Correct prototypes.
3017 * config/i386/xm-linux.h: Define HAVE_TERMIOS.
3021 * config/alpha/tm-alpha.h (CALL_DUMMY): Improve comment.
3025 * remote-vx.c (vx_wait): Only call i960_fault_to_signal if I80960
3026 is defined. Otherwise just report TARGET_SIGNAL_UNKNOWN.
3028 * mips-tdep.c (mips_push_arguments): Byteswap struct_addr before
3031 Add search to target vector (#if 0'd until after 4.12):
3032 * target.h (to_search, target_search): Add.
3033 * gdbcore.h, core.c (generic_search): Add.
3034 * remote.c (remote_search): Add.
3035 * a29k-tdep.c (init_frame_info): Use target_search to find traceback
3038 * printcmd.c (print_address_symbolic): If set print fast-symbolic-addr
3039 is on, call find_pc_function rather than relying just on the minimal
3040 symbols (probably only matters for symbol readers which don't put
3041 statics in the minimal symbols, but changing this strikes me as
3042 not conservative enough).
3043 Initialize name_location in all cases.
3044 If no symbol and no msymbol, don't print anything symbolic.
3046 * a29k-tdep.c (push_dummy_frame): Add comment about saving lr0.
3050 * printcmd.c (print_address_symbolic): Make it search the
3051 symtabs for variables as well as functions. Add `set print
3052 fast-symbolic-addr' and default it to fast (the old way).
3053 Print line numbers for data items as well as functions.
3055 * symtab.c (find_addr_symbol): Return the symtab and the symbol
3056 address, if a symbol is found (take two more args pointing to
3057 where to store these results).
3059 * symtab.h (find_addr_symbol): Add prototype.
3063 * objfiles.h: Fix comments to reflect the fact that the phrase
3064 "top of stack" always refers to where the pushing and popping takes
3065 place, regardless of whether it is at the highest or lowest address.
3069 * mdebugread.c (parse_symbol): Do not set TYPE_TAG_NAME for
3070 compiler generated tag names.
3071 * mdebugread.c (parse_type): Handle cross references to qualified
3073 * valops.c (value_struct_elt): Improve error message if the
3074 address of a method is requested from an object instance.
3075 * valops.c (search_struct_method): Make name_matched non-static
3076 to get it initialized correctly.
3077 * config/i386/nm-i386sco.h (CANNOT_STORE_REGISTER): Define to
3078 exclude segment register which are not writable on newer SCO versions.
3082 * go32-xdep.c: Remove unused function uerror.
3083 (sigsetmask): Declare return type. Declare argument (to match the
3084 way it is called). Explicitly return 0.
3088 * symtab.h (struct symbol, general_symbol_info, minimal_symbol,
3089 partial_symbol): Shrink the storage sizes of symbols, by making
3090 enums into 1-byte bitfields when compiled __GNUC__, moving all the
3091 enums and small ints to the end of each struct to improve
3092 alignment, and switching the section number from int to unsigned
3097 * symtab.c (find_addr_symbol): New routine that will find the nearest
3098 symbol associated with an address. It does so by exhaustive
3099 search of the symtabs, so it's slow but complete.
3103 * coffread.c (read_coff_symtab): Set PC bounds of _globals_ symtab
3104 to [0,0] rather than [0, end of first source file]. This avoids
3105 problems with other parts of GDB looking for linetables in the
3106 _globals_ symtab. Eliminate variables num_object_files and
3107 first_object_file_end.
3111 * a29k-tdep.c (init_frame_info): Cast null arg to examine_tag.
3112 (pop_frame): Restore PC2 and LR0 from dummy frames.
3113 (push_dummy_frame): Save PC2 and LR0 into dummy frames.
3114 (setup_arbitrary_frame): Handle 3 args and set up real frames.
3115 * config/a29k/tm-a29k.h (FRAME_NUM_ARGS): Update comments.
3116 (DUMMY_FRAME_RSIZE): Add 2 longwords for PC2 and LR0.
3117 (SETUP_ARBITRARY_FRAME): Define.
3121 * infrun.c, config/mips/tm-irix5.h: Remove #if 0'd AT_FUNCTION_START.
3125 * remote-udi.c (udi_resume): Correct prototype.
3129 * config/pa/tm-hppa.h (FRAME_FIND_SAVED_REGS): Call
3130 hppa_frame_find_saved_regs.
3131 * hppa-tdep.c (dig_fp_from_stack): Delete function.
3132 (prologue_inst_adjust_sp): New function.
3133 (is_branch, inst_saves_gr, inst_saves_fr): New functions.
3134 (skip_prologue): Completely rewrite to use unwind information.
3135 (hppa_frame_find_saved_regs): Likewise.
3139 * remote-mips.c (mips_wait): Use new function mips_signal_from_protocol
3140 to convert a signal number with appropriate bounds checking.
3142 * remote-mips.c (mips_wait): Fix typos (0x177 -> 0177, 0x377 -> 0377).
3146 * stack.c (frame_info): If FRAME_FIND_SAVED_REGS isn't defined,
3147 print a newline to end the display anyway.
3149 * sparc-tdep.c (sparc_pop_frame): Pop the fsr and csr (float and
3150 coprocessor status regs) when popping a frame. This fixes
3151 float exceptions that occur after calling inferior functions.
3153 * sparc-nat.c (fetch_inferior_registers, store_inferior_registers):
3154 Read and write the fsr (float status register) to/from the child
3155 process along with the float regs. Remove Peter Schauer's change
3156 of May 24 '93, which has higher overhead and doesn't solve the
3157 real problem (which was that FSR wasn't being set).
3161 * a29k-tdep.c (examine_prologue): Don't worry if the ASGEQ
3162 stack overflow check isn't right after the register stack
3163 adjustment instruction. Metaware R2.3u compiler moves other
3164 things in front of it. This fix isn't perfect but is what's
3169 * c-valprint.c (c_val_print): Treat TYPE_CODE_RANGE like TYPE_CODE_INT.
3171 * config/alpha/alpha-netware.mt: Rename to alpha-nw.mt for 14
3172 character filenames.
3173 * configure.in: Change accordingly.
3177 * m68k-stub.c, sparc-stub.c: removed spurious introduction of
3178 _filtered io routines from these two files.
3182 * config/i386/tm-i386v.h, config/m68k/tm-m68k.h, config/mips/tm-mips.h,
3183 config/vax/tm-vax.h (CALL_DUMMY_BREAKPOINT_OFFSET): Define.
3184 * mdebugread.c (parse_symbol): Handle enum sh.type produced by
3186 * mdebugread.c (add_line): Handle zero linenos produced by DEC c89.
3190 * utils.c (print_sys_errmsg): Call gdb_flush (gdb_stdout) before
3191 printing to gdb_stderr.
3193 * remote-udi.c (udi_kill): Don't close the connection, just set
3194 inferior_pid to zero.
3195 (udi_mourn): Call remove_breakpoints.
3197 * remote-udi.c: Remove obsolete need_artificial_traps comment.
3199 * i386b-nat.c (sregmap): If sEAX, etc., not defined, use tEAX, etc.
3203 * symtab.c (lookup_symbol): Don't try adding .c to the name.
3205 * remote-bug.c: At the start of each section, reset srec_frame
3208 * target.h: Add TARGET_WAITKIND_LOADED and TARGET_WAITKIND_SPURIOUS.
3209 * target.c (store_waitstatus): Add CHILD_SPECIAL_WAITSTATUS hook.
3210 * infrun.c (wait_for_inferior): Replace SIGTRAP_STOP_AFTER_LOAD with
3211 code which looks for those two waitkinds. Use switch statement.
3212 * config/rs6000/tm-rs6000.h: Replace SIGTRAP_STOP_AFTER_LOAD with
3213 CHILD_SPECIAL_WAITSTATUS.
3215 * procfs.c (procfs_wait): Fix argument name to match 4 Jan changes.
3216 * Move target_signal_from_host, target_signal_to_host, and
3217 store_waitstatus from inftarg.c to target.c. procfs needs them.
3218 * target.c: Include "wait.h" and <signal.h>.
3219 * target.h, infrun.c (proceed), proceed callers: Pass new code
3220 TARGET_SIGNAL_DEFAULT instead of -1. This avoids problems with
3221 enums being treated as unsigned and is cleaner.
3222 * infrun.c (signals_info): Don't print TARGET_SIGNAL_DEFAULT or
3224 * infcmd.c (signal_command), infrun.c (signals_info):
3225 Don't allow user to specify numeric equivalent of
3226 TARGET_SIGNAL_DEFAULT.
3230 * config/alpha/alpha-netware.mt: New target support for Alpha
3232 * configure.in: Add alpha-*-netware* target.
3236 * remote-mips.c (mips_wait): Fix ref to TARGET_WAITKIND_STOPPED.
3240 * target.h: Add enum target_waitkind, enum target_signal, and
3241 struct target_waitstatus. Change status argument to target_wait to
3242 be struct target_waitstatus * instead of int *.
3243 * target.h, infrun.c, all targets: Change type of signal arguments
3244 to resume(), proceed(), and target_resume() from int to enum
3246 * All targets (*_wait, *_resume): Change accordingly.
3247 * infcmd.c (program_info, signal_command), throughout infrun.c,
3248 * fork-child.c, solib.c, hppa-tdep.c, osfsolib.c: Use this stuff.
3249 * convex-xdep.c, convex-tdep.c: Add FIXME's (getting the Convex
3250 signal code stuff right with the new signals would be non-trivial).
3251 * inferior.h (stop_signal): Make it enum target_signal not int.
3252 * target.c, target.h (target_signal_to_string, target_signal_to_name,
3253 target_signal_from_name): New functions.
3254 * inftarg.c, target.h (target_signal_to_host, target_signal_from_host,
3255 store_waitstatus): New functions.
3256 * procfs.c (procfs_notice_signals): Use them.
3257 * i960-tdep.c (i960_fault_to_signal): New function, to replace
3259 * config/i960/tm-i960.h: Don't define PRINT_RANDOM_SIGNAL.
3261 * objfiles.c (build_objfile_section_table): Don't abort() if
3262 objfile->sections is already set.
3264 * objfiles.c (add_to_objfile_sections): Check SEC_ALLOC not SEC_LOAD
3265 to match recent change to exec.c.
3269 * main.c (print_gdb_version): Change year to 1994.
3271 * ChangeLog, ChangeLog-93: Split ChangeLog at 1994.
3272 * Makefile.in (NONSRC): Add ChangeLog-93.
3276 * stabsread.c (read_type): Allow defining several type numbers
3277 at once (e.g. "(1,2)=(3,4)="...).
3279 * stabsread.c (read_enum_type): Use TARGET_INT_BIT not sizeof (int).
3281 * breakpoint.c (frame_in_dummy): Check PC as well as frame.
3285 * mdebugread.c (psymtab_to_symtab_1): Only pass N_STAB symbols
3286 to process_one_symbol.
3287 * symtab.c (find_pc_psymbol): Search global_psymbols as well to
3288 avoid caching a bad endaddr in find_pc_partial_function.
3292 * config/m68k/tm-sun3.h: Don't define BELIEVE_PCC_PROMOTION.
3296 * infrun.c (wait_for_inferior): Do not step or step resume past
3297 the end of a one-line function we just stepped into.
3299 For older changes see ChangeLog-93
3305 version-control: never