3 * breakpoint.c, target.h: Move defaults of watchpoint related
4 macros back to breakpoint.c. Required to get GDB compiling
9 * defs.h (ATTR_FORMAT): New macro, expands to gcc's format
10 attribute when compiled by gcc.
11 * defs.h, language.h, monitor.h: Changed many function
12 declarations to use ATTR_FORMAT.
14 * breakpoint.c (delete_command); source.c (directory_command);
15 top.c (define_command): Changed call to query() that had too
17 * printcmd.c (address_info): Changed call to printf_filtered()
18 that had too many arguments.
22 * infrun.c (wait_for_inferior): Move assignments to stop_signal
23 and stop_pc, and STOPPED_BY_WATCHPOINT code, back where they
24 were--after the switch statement on w.kind. You can't read the
25 registers of an inferior which has exited. Use a goto in the
26 STOPPED_BY_WATCHPOINT code.
27 * infrun.c (wait_for_inferior): Reinstate
28 HAVE_STEPPABLE_WATCHPOINT and HAVE_CONTINUABLE_WATCHPOINT code.
32 * utils.c, complaints.c, language.c, monitor.c, remote-array.c,
33 remote-mips.c, remote-os9k.c, remote-st.c: Conditionalize use of
34 stdarg rather than varargs on ANSI_PROTOTYPES not __STDC__; it
35 must match the definition of PARAMS.
42 * utils.c (fprintf_filtered, fprintf_unfiltered, fprintfi_filtered,
43 printf_filtered, printf_unfiltered, printfi_filtered, query, warning,
44 error, fatal, fatal_dump_core): Use stdarg.h macros when compiling
45 with an ANSI compiler.
46 * complaints.c (complain): Likewise.
47 * language.c (type_error, range_error): Likewise.
48 * monitor.c (monitor_printf, monitor_printf_noecho): Likewise.
49 * remote-array.c (printf_monitor, debuglogs): Likewise.
50 * remote-mips.c (mips_error): Likewise.
51 * remote-os9k.c (printf_monitor): Likewise.
52 * remote-st.c (printf_stdebug): Likewise.
54 * gdbtk.c (gdbtk_query): Likewise.
57 * defs.h, complaints.h, language.h, monitor.h: Add prototypes to
60 * printcmd.c: Remove uneeded #include <varargs.h>.
61 * remote-e7000.c: Likewise.
63 * f-typeprint.c (f_type_print_base): Fix typo found by above
68 * Makefile.in (xcoffread.o): Depend on partial-stab.h.
70 * xcoffsolib.c (sharedlibrary_command): New command.
71 * xcoffsolib.c (solib_info): Call xcoff_relocate_symtab.
72 * xcoffsolib.c: Miscellaneous cleanups.
74 * partial-stab.h: Ignore symbol descriptor '-' (for local
75 variables with negative type numbers) without complaint.
77 * rs6000-nat.c (vmap_ldinfo): Use bfd_stat rather than our own
78 local emulation thereof. Remove unused variable ostart.
82 * Makefile.in (config.status): changed target so that
83 config.status --recheck is executed if configure script changes.
85 * monitor.c (monitor_printf): Changed format specification in
86 error message to work with pre-ansi compilers.
87 (monitor_load_srec): reduced length of s-records from 128 to 32
88 bytes so download is more reliable with the rom68k monitor.
90 * rom68k-rom.c: Added trailing space to prompt string.
92 * config/i386/xm-i386sco.h (HAVE_STRSTR): Removed.
93 * config/i386/xm-go32.h, mswin/xm.h (SYS_SIGLIST_MISSING):
95 * defs.h, config/{xm-lynx.h, xm-nbsd.h},
96 config/i386/{xm-i386bsd.h, xm-linux.h},
97 config/m68k/xm-hp300bsd.h, config/mips/xm-irix4.h,
98 config/ns32k/xm-ns32km3.h, doc/gdbint.texinfo
99 (PSIGNAL_IN_SIGNAL_H): Removed.
103 * Makefile.in (Makefile): Added config.status to dependency list.
105 * configure.in: Added INIT-CMDS argument to AC_OUTPUT which sets
106 gdb_host_cpu, gdb_target_cpu and nativefile.
107 * configure: regenerated.
111 * mdebugread.c (parse_symbol): Do not relocate stBlock/scText
112 symbols, their value is the displacement from the procedure address.
113 * top.c (init_main): Add missing newlines to help strings for
114 `if' and `while' commands, fix help string for `show commands'.
118 * breakpoint.c: Move defaults of watchpoint related macros into
119 target.h. Use BP_TEMPFLAG and BP_HARDWAREFLAG instead of
121 * infrun.c (wait_for_inferior): Enhance comment near
122 STOPPED_BY_WATCHPOINT.
123 * target.h: Macros from breakpoint.c.
127 * config/i386/{i386sol2.mh, i386v4.mh, ncr3000.mh},
128 config/m68k/m68kv4.mh, config/mips/{irix4.mh, irix5.mh,
129 mipsv4.mh}, config/sparc/sun4so2.mh (INSTALL): Removed, figured
131 * config/apollo68v.mh (RANLIB): Removed, figured out by autoconf.
133 * Makefile.in, configure.in: Converted to use autoconf
134 * aclocal.m4: New file, local autoconf macro definitions.
135 * configure: New file, generated with autoconf 2.3.
139 * remote.c (remote_kill): Add prototype.
140 * cpu32bug-rom.c (cpu32bug_open): Properly define as static.
141 * config/h8300/h8300hms.mt (TDEPFILES): Add monitor.o.
145 * sparclite/salib.c (win_ovf win_unf): Make window size constant
146 into a variable (__WINSIZE) so that it can be controlled via the
148 * sparclite/sparclite.h: Add SL933 #ifdef to set __WINSIZE to 6
151 * infrun.c: Add #ifdef HP_OS_BUG to all references to
152 trap_expected_after_continue.
153 * (wait_for_inferior): Fix for remote watchpoints. Don't try to
154 insert breakpoints while target is running (this only works on
155 *some* native targets). This may also speed up native watchpoints
160 * dwarfread.c (struct dwfinfo), dbxread.c (struct symloc),
161 mdebugread.c (struct symloc), hpread.c (struct symloc),
162 xcoffread.c (struct symloc): Fix inaccurate comment introduced
167 * rs6000-tdep.c (find_toc_address): Revise comment.
168 * symfile.c, symfile.h (init_psymbol_list): New function;
169 consolidate duplicated copies from os9kread.c, dbxread.c
171 * defs.h: Declare info_verbose.
172 * xcoffread.c: Extensive changes to support psymtabs.
176 * cpu32bug-rom.c remote-est.c rom68k-rom.c: Update line_term element.
180 * partial-stab.h: Expand comments.
184 * Support debugging using native MACH primitives on hppa*-*-osf*.
185 * configure.in: hppa*-*-osf* != hppa*-*-bsd* anymore.
186 * config/pa/hppaosf.mh: New file.
187 * config/pa/nm-hppao.h: Likewise.
188 * hppam3-nat.c: Likewise.
189 * config/pa/tm-hppao.h (PSW_SS): Define for single-stepping.
190 (MACHINE_CPROC_*_OFFSET): Define.
192 (START_INFERIOR_TRAPS_EXPECTED): Delete definition.
196 * hppa-tdep.c (read_unwind_info): Cosmetic cleanup.
197 * (unwind_command): Clean it up and make it print things out
199 * monitor.c: Add ^C handling capability (mostly ripped off from
201 * (monitor_printf): Make it check the command echo.
202 * (monitor_printf_noecho): Similar to above, but doesn't check
204 * (monitor_stop): No longer waits for prompt. That is the job of
205 the caller. This makes things work much better for monitor_wait,
206 which waits for the prompt itself.
207 * (monitor_open): Deal with new monitor_stop semantics. Also,
208 flush input after sending init strings to get rid of junk that may
209 be output. Also, don't always send \r to remote. Use
210 monitor_ops->line_term cuz proper character isn't always \r.
211 * (monitor_fetch_register): Switch to completely different
212 algorithm to deal with lame-ass monitors which put spaces in the
213 middle of numbers, and prompt with a space!!!!!
214 * (monitor_read_memory_single): New routine to be used with
215 monitors that can only return one byte/short/long at a time. This
216 is selected via MO_GETMEM_READ_SINGLE.
217 * (monitor_load_srec): Use monitor_printf_noecho for sending S
218 records. Most targets don't echo them.
219 * (monitor.h): Get rid of cmd_delim. Add line_delim.
220 * op50n-rom.c (op50n_cmds): Fill it up. Make it work.
221 * w89k-rom.c: Change all eols from \r to \n. Change load_resp to
222 ^Q to prevent error message.
223 * config/pa/tm-hppa.h (CALL_DUMMY (for hppro)): Add special
224 instruction sequence at end to make restore_pc_queue happy.
228 * remote-est.c (est_open): Make static to match prototype.
232 * configure.in: Add little endian PowerPC support.
233 * config/powerpc/ppcle-eabi.mt: New file for little endian PowerPC
235 * config/powerpc/tm-ppcle-eabi.h: ditto.
239 * nlm/configure.in (gdb_host, gdb_host_cpu, gdb_target): Removed.
240 These variables not used.
242 * config/m68k/monitor.mt (TDEPFILES): Added cpu32bug-rom.o.
246 * monitor.c (monitor_command): Don't use PROMPT until monitor
247 target is known to be open.
248 (monitor_make_srec): Don't define size of hextab.
252 * configure.in (--enable-netrom): New configuration option.
253 * Makefile.in (REMOTE_OBS): Rename from REMOTE_O, append
255 (NETROM_OBS): New variable.
256 * remote-nrom.c: New file, NetROM target support.
257 * config/a29k/a29k-udi.mt, config/i960/vxworks960.mt: Use
258 REMOTE_OBS instead of REMOTE_O.
260 * config/arc/arc.mt: Ditto.
265 * array-rom.c (_initialize_array array_open): Move baud_rate
266 initialization from _initxxx to array_open to fix bug with
267 overriding -b command line option.
271 * Makefile.in (RUNTEST): Fix reference of `srcdir'.
275 * remote-hms.c: Rewrite to use new monitor conventions.
279 * dbxread.c: Add comment explaining lowest_text_address.
280 Add comment regarding stringtab_global and psymtabs.
284 * config/pa/tm-hppa.h (EXTRACT_STRUCT_VALUE_ADDRESS): Fix.
286 * config/pa/tm-hppa.h (EXTRACT_RETURN_VALUE): Rewrite to correctly
287 handle "short", "int" and small structures returned in registers.
291 * minsyms.c: add new function lookup_minimal_symbol_text, to look
292 for text symbol only.
293 * breakpoint.c (create_longjmp_breakpoint): call
294 lookup_minimal_symbol_text instead of lookup_minimal_symbol.
295 * symtab.h: add lookup_minimal_symbol_text prototype.
299 * sh-tdep.c (sh-opc.h): Don't include.
300 (gdbcore.h): Include.
301 (frame_find_saved_regs): Remove unused local.
305 * dwarfread.c (struct dwfinfo), dbxread.c (struct symloc),
306 mdebugread.c (struct symloc), hpread.c (struct symloc): Clean
311 * hppa-tdep.c (deposit_17): New routine to deposit 17 bit
312 constants into PA instructions.
313 * Put #ifdefs around all signal handling code. Not generally
314 needed for embedded boards.
315 * (hppa_fix_call_dummy): Parameterize offsets into call dummy to
316 allow different dummys to be used by this code. Use
317 INSTRUCTION_SIZE instead of REGISTER_SIZE for things.
318 Conditionalize setup of _sr4export fixup. Improve comments.
319 * config/pa/tm-hppa.h: Define INSTRUCTION_SIZE. Use a different
320 call dummy if PA_LEVEL_0 is defined. Better comments for call
321 dummys. Define offsets for LDIL/LDO instructions which load
323 * config/pa/tm-pro.h: Get rid of signal handling stuff. Define
324 PA_LEVEL_0 to disable mucking with space regs and such.
328 * cpu32bug-rom.c monitor.h op50-rom.c remote-est.c rom68k-rom.c
329 w89k-rom.c: Remove loadtypes, loadprotos and baudrates.
330 * op50-rom.c: Fix copyrights and add load routine to op50n_cmds.
331 * rom68k-rom.c (_initialize_rom68k): Don't set baud rate.
332 * w89k-rom.c: Fix copyrights.
336 * monitor.c: Move all xmodem stuff into xmodem.[ch]. Remove
337 unnecessary remoteloadprotocol and remoteloadtype support.
338 * (expect expect_prompt): Change names to monitor_expect and
339 monitor_expect_prompt. Make them global.
340 * (printf_monitor): Change name to monitor_printf. Make global.
341 * (monitor_read_memory): Flush command echo to avoid parsing
342 ambiguity with CPU32Bug monitor.
343 * (monitor_load): Remove remoteloadprotocol and remoteloadtype
344 support. Call target_ops->load_routine, default to
346 * (monitor_load_srec): Remove everything but S-record support.
347 * monitor.h (monitor_ops): Add load_routine to provide monitor
348 specific download capability.
349 * remote-est.c: Clean up copyrights and comments.
350 * w89k-rom.c: Use new xmodem support.
351 * xmodem.c xmodem.h: New files to support xmodem downloads.
352 * rom68k-rom.c remote-est.c: Fix copyrights, add load_routine
353 entry to monitor_ops.
354 * cpu32bug-rom.c: New file to support Moto BCC debuggers.
355 * config/m68k/est.mt (TDEPFILES): Add cpu32bug.o.
356 * config/pa/hppapro.mt (TDEPFILES): Add xmodem.o.
360 * rem-multi.shar: Removed; superceded by gdbserver.
364 * xcoffread.c (xcoff_sym_fns): Revise comment about merging this
367 * breakpoint.c (fixup_breakpoints): Removed.
368 * rs6000-nat.c (vmap_symtab): Don't call fixup_breakpoints.
369 (vmap_ldinfo, xcoff_relocate_core): Call breakpoint_re_set.
371 * coffread.c (coff_symfile_offsets): Allocate SECT_OFF_MAX
372 sections, not just SECT_OFF_MAX-1.
374 * rs6000-nat.c (vmap_symtab), xcoffread.c: Re-do section offsets
375 to be indexed by SECT_OFF_* instead of xcoff section numbers.
376 * objfiles.c, remote.c: Remove comments regarding SECT_OFF_*.
377 * symtab.h: Revise comment about block_line_section.
378 * rs6000-nat.c (vmap_symtab): Don't relocate objfile->sections.
382 * mpw-make.in (init.c): Don't try to do symbolic {o} in sed
383 command, not allowed by some version of MPW Make.
384 * ser-mac.c (mac-setbaudrate): Make it actually set baud rates.
388 * alpha-tdep.c (alpha_push_arguments): Fix typo (TYPE_VALUE ->
389 VALUE_TYPE). Do the cast for TYPE_CODE_BOOL, TYPE_CODE_CHAR,
390 TYPE_CODE_ENUM, and TYPE_CODE_RANGE as well as TYPE_CODE_INT.
394 * alpha-tdep.c (alpha_push_arguments): Only cast to long for
400 * gdbtk.c (gdb_disassemble): Read from inferior if connected
405 * README.GDBTK: New file. Contains the obvious.
410 * remote-array.c: New file for Array Tech LSI33k based controller
415 * a29k-tdep.c (get_longjmp_target): Replace SWAP_TARGET_AND_HOST with
417 * remote-vxsparc.c: New file, preliminary check in, this configuration
419 * remote-vxmips.c: ditto.
423 * rs6000-tdep.c (xcoff_add_toc_to_loadinfo): Don't use a prototype
424 to declare the function.
428 * monitor.h (init_monitor_ops): Declare.
429 * rom68k-rom.c: Clarify some comments.
430 (rom68k_open): Define as static, to match decl.
435 * .gdbinit: Move list-objfiles to gdb.gdb.
437 * values.c (set_internalvar): Set modifiable flag of newval.
441 * xcoffread.c: Call complain() rather than error() or printing a
447 * arc-tdep.c: #include "gdbcmd.h".
448 (codestream_seek): Pass CORE_ADDR.
449 (arc_cpu_type, tmp_arc_cpu_type, arc_cpu_type_table): New globals.
450 (debug_pipeline_p): Likewise.
451 (X_...): Instruction field access macros.
452 (BUILD_INSN): Define.
453 (codestream_tell): Allow for stream elements > 1 byte.
454 (codestream_fill): Likewise.
455 (setup_prologue_scan): New function.
456 (arc_get_frame_setup): Call it. Update to current spec
457 regarding prologues. Use BUILD_INSN.
458 (skip_prologue): New argument `frameless_p'. Use BUILD_INSN.
459 (arc_frame_saved_pc): New function.
460 (frame_find_saved_regs): Use BUILD_INSN.
461 (get_insn_type, single_step): New functions.
462 (one_stepped): New global.
463 (arc_set_cpu_type_command, arc_show_cpu_type_command): New functions.
464 (arc_set_cpu_type): New function.
465 (_initialize_arc_tdep): Define new `set' commands `cpu',
466 `displaypipeline', and `debugpipeline'.
467 * remote-arc.c (break_insn): Add bi-endian support.
468 (arc_insert_breakpoint): Likewise.
469 (arc_remove_breakpoint): Likewise.
470 (switch_command): Delete.
471 * arc/tm-arc.h (TARGET_BYTE_ORDER): Delete.
472 (TARGET_BYTE_ORDER_SELECTABLE): Define.
473 (DEFAULT_ARC_CPU_TYPE): Define.
474 (SKIP_PROLOGUE_FRAMELESS_P): Define.
475 (BREAKPOINT): Delete.
476 (BIG_BREAKPOINT, LITTLE_BREAKPOINT): Define.
477 (DECR_PC_AFTER_BREAK): Change to 8.
478 (NO_SINGLE_STEP): Define.
479 (ARC_PC_TO_REAL_ADDRESS): Define.
480 (SAVED_PC_AFTER_CALL): Use it.
481 (NUM_REGS, REGISTER_BYTES): Fix.
482 (FRAME_SAVED_PC): Call arc_frame_saved_pc.
483 (FRAME_LOCALS_ADDRESS): Fix.
488 * top.c, utils.c, defs.h: Remove error_hook. It is currently
489 unused and would need to hook into error_begin()/return_to_top_level(),
490 instead of error(), if it were to be used.
494 * utils.c, defs.h (warning_begin): Renamed from warning_setup, for
495 consistency with error_begin. Also print warning_pre_print.
497 * utils.c (warning): Use it.
498 * utils.c (error_begin): Doc fix.
499 * rs6000-nat.c (vmap_ldinfo): If we don't find ldinfo for the
500 symfile_objfile, nuke it.
504 * printcmd.c (print_address_numeric): Pass use_local to
505 print_longest, rather than always passing 1.
507 * nlm/Makefile.in: Remove comments discussing munch.
512 * gdbtk.c (gdbtk_init): If SIOCSPGRP is not available, but
513 F_SETOWN is, use that.
518 Merge in support for Mac MPW as a host.
519 (Old change descriptions retained for informational value.)
521 * mpw-config.in (i386-unknown-go32): Change from aout.
522 (sh-hitachi-hms): New target.
523 * mpw-make.in (BISON): Use byacc instead of bison.
524 (VERSION): Bump to 4.14.1.
525 (*-pinsn.*): Remove mentions everywhere.
526 (all): Don't build MacGDB.
527 (gdb, SiowGDB): Depend on Version.r.
528 (Version.r): Generate from version info.
529 * main.c (main): Pass program name to START_PROGRESS, END_PROGRESS.
530 (main) [MPW]: Remove debugging hook.
531 * mac-xdep.c (debug_openp): New flag.
532 (mac_init): Set flag if env variable defined.
533 * ser-mac.c (mac_open): Clarify error message.
534 (mac_readchar): Call PROGRESS while looping.
535 (mac_write): Call sleep instead of sec_sleep.
537 * source.c (openp) [MPW]: Only print debugging info if debugging.
538 * utils.c (query) [MPW]: Clarify that behavior is a bug.
540 * mpw-make.in (init.c): Use open-brace instead of mpw-open-brace.
542 * main.c, source.c: Remove hacks that replace long strings
543 with shorter ones, now solved portably.
545 * config/m68k/xm-mpw.h (spin.h): Include.
546 (ALMOST_STDC): Only define if MPW_C.
547 * config/m68k/tm-mac.h: New file, Mac target definitions.
549 * mpw-config.in (m68k-apple-macos, ppc-apple-macos,
550 i386-unknown-aout): New targets.
551 (mk.tmp): Add *DEPFILES definitions.
552 * mpw-make.in: Remove gC rules, clean up definitions for other
553 include files, bump version, fix bogus \ that should be \Option-d.
554 (init.c): Build correctly.
556 * mpw-make.in (HFILES_NO_SRCDIR): Add somsolib.h
557 (ALLDEPFILES): Add somsolib.c.
558 (somsolib.o): Add some dependencies.
560 * mpw-config.in: Use nm-empty.h if host is not target.
561 (xdepfiles): Add mac-xdep.c.o.
563 * mpw-make.in: Add Fortran files.
566 * mpw-config.in (MacSerial.h): Duplicate from standard Serial.h.
567 * ser-mac.c (MacSerial.h): Include instead of Serial.h.
569 * mpw-make.in: Use {s} instead of {srcdir} everywhere.
570 (bindir, libdir): Remove extra colon.
571 (source.c): Compile with C instead of gC.
572 (c-exp.tab.c, ch-exp.tab.c, m2-exp.tab.c): Add {o}.
573 (install-only): Don't install MacGDB.
574 * source.c (openp) [MPW]: Add a debugging display.
575 (open_source_file) [MPW]: Use MPW basename finders.
576 [MPW_C]: Briefer versions of help for line and list commands.
578 * mpw-make.in: Change references from paread.c to somread.c
580 * mpw-make.in (VERSION): Update to 4.12.3.
581 (SiowGDB): New target, GDB using SIOW library.
582 (init-new.c): New target, attempt to generate init.c from sources.
583 (main.c.o, top.c.o): Put each in its own segment.
584 * main.c (main) [MPW]: Always call mac_init.
585 * utils.c (query) [MPW]: Always return "yes" if in MacGDB, output
586 an extra newline otherwise.
587 * mac-xdep.c: More comments in various places, remove junk.
588 (mac_init): Add tests for MPW and SIOW.
589 (use_wne, has_color_qd): Renamed.
590 (use_color_qd): New variable.
591 (grow_window): Only do console resizing to console window,
592 call resize_console_window.
593 (zoom_window): Call resize_console_window.
594 (resize_console_window, scroll_text): New functions.
595 (adjust_console_sizes): Always align viewrect to even multiples of
597 (adjust_console_text): Always scroll by whole lines.
598 (hacked_vfprintf, hacked_puts, hacked_fputc, hacked_putc): Force a
599 recalculation of scroll positions if a newline was output.
600 (hacked_fflush): Similarly, for flushing.
601 (hacked_fgetc): New function, aborts if called in MacGDB.
602 * ser-mac.c (mac_readchar): Rename starttime to start_time,
603 remove debugging printf.
604 (mac_write): Sleep on first 4 writes.
605 (sec_sleep): New function, works like standard sleep.
606 * macgdb.r: Adjust positioning and contents of About box.
607 Set minimum size to 2000K, preferred size to 5000K.
608 * config/m68k/xm-mpw.h (fgetc): Define as a macro.
610 * mpw-make.in (.c.o, .gc.o): Prefix segment names with gdb_.
611 (top.c.o, annotate.c.o): Add build rules.
612 * macgdb.r (SysTypes.r): Include.
613 ('vers'): New resource, version info.
614 (mFile, mEdit, mDebug): Enable all menu items.
615 (mDebug): Add key equivalents for continue, step, next.
616 (wConsole): Add zoom and close boxes to window.
617 * mac-xdep.c (new_console_window): New function, code taken from
619 (mac_command_loop): Use GetCaretTime for wait interval, call
620 do_idle on null events.
621 (do_idle): New function.
622 (zoom_window): Implement zooming.
623 (v_scroll_proc): New function, handles vertical scrolling.
624 (activate_window): Do activation of console window.
625 (do_menu_command): Implement items of file, edit, and debug menus.
626 (do_keyboard_command): Fix command extraction.
627 (adjust_console_sizes, adjust_console_text): New functions.
628 (hacked_fprintf, hacked_vfprintf, hacked_fputs, hacked_fputc,
629 hacked_putc): Don't call draw_console.
630 * ser-mac.c (mac_open): Add an error message for invalid ports.
631 (first_mac_write): New global.
632 (mac_write): Use first_mac_write to sleep on first several writes.
634 * mpw-make.in (INCLUDE_CFLAGS): Add readline source dir.
635 (READLINE_CFLAGS, READLINE_SRC, READLINE_DIR): Uncomment.
636 (TSOBS): Don't compile inflow.c.
637 (all, install): Add MacGDB.
638 * main.c (main): Do Mac-specific init and command loop if a
639 standalone app, skip full option help message if compiling
641 (gdb_readline): If MPW, add a newline after the (gdb) prompt.
642 * utils.c (_initialize_utils): If MPW, don't try to use termcap to
643 compute the window size.
644 * config/m68k/xm-mpw.h (printf, fprintf, fputs, fputc, putc,
645 fflush): Define as macros that expand into hacked_... versions.
646 (StandAlone, mac_app): Declare.
647 * macgdb.r (SIZE): Set the default partition to 4000K.
648 * mac-xdep.c (readline.h, history.h): Include.
649 (terminal.h): Don't include.
651 (gdb_has_a_terminal): Define Mac-specific version.
652 (do_keyboard_command): Simplify search for command string.
653 (readline): Define as gdb_readline.
654 Add other history/readline stubs to make main gdb link.
655 (hacked_fprintf, hacked_printf, hacked_vfprintf, hacked_fputs,
656 hacked_fputc, hacked_fflush): New functions, intercept output to
657 stdout and stderr, send to console window.
659 * mpw-make.in (MacGDB): New target, standalone Mac-hosted gdb.
661 (main.c.o): Compile with gC instead of C.
662 * mac-defs.h: New file, menu etc definitions shared between
664 * macgdb.r: New file, Rez (resource compiler) resource
666 * mac-xdep.c: New file, Mac host interface code.
667 * config/m68k/xm-mpw.h (PATHNAME_SEPARATOR): Rename to
669 (PATHNAME_SEPARATOR_STRING): Remove.
670 (SIGQUIT, SIGHUP): Define.
671 (fileno, R_OK): Define.
673 * mpw-config.in: New file, MPW configuration fragment.
674 * mpw-make.in: New file, MPW makefile fragment.
675 * config/m68k/xm-mpw.h: New file, MPW host definitions.
676 * ser-mac.c: New file, Mac serial interface.
680 * valprint.c (print_longest): Fix a syntax error in #ifdef
681 PRINTF_HAS_LONG_LONG.
683 * config/mips/xm-irix5.h: turn on CC_HAS_LONG_LONG and
684 PRINTF_HAS_LONG_LONG.
685 * config/mips/tm-irix5.h: turn on FORCE_LONG_LONG.
689 * mdebugread.c (parse_symbol): Use new variable
690 nodebug_var_symbol_type as type of variables which don't have any
691 ecoff debug info associated with them.
692 (parse_symbol, parse_procedure): Use heuristics to determine if
693 functions were compiled without debugging info and change their
694 type to nodebug_function_symbol_type.
695 (_initialize_mdebugread): Initialize nodebug_*_symbol_type.
697 * source.c (line_info): Clear sal.pc for `info line' without
702 * monitor.c: make_xmodem_packet and print_xmodem_packet go away.
703 send_xmodem_packet shows up to do the obvious. Lots of fixes to
704 xmodem downloads including resetting of block number at start of
705 new transfers, fix for buffer overrun problem, addition of CRC
707 * (monitor_open): loadtype_str and loadproto_str now default to
708 first entry in monitor_ops->loadtypes.
709 * (monitor_wait): Lengthen register dump buf, because of verbose
711 * (monitor_fetch_register): Report unimplemented registers as 0.
712 * (monitor_read_memory): Only do 16 byte aligned transfers
713 because of formatting weirdness with the Winbond monitor. Also,
714 ignore non-hex, non-whitespace formatting between bytes (same
716 * (monitor_load): Clean up logic.
717 * (monitor_load_srec): Re-do xmodem support. Move lots of it
718 into send_xmodem_packet.
719 * (getacknak): Get rid of polls and timeouts. Handle CRC
720 requests from receiver.
721 * (monitor_make_srec): Efficiency improvements. Don't call
722 sprintf to output two digit hex numbers.
723 * (crcinit, docrc): New, CRC-16 support routines.
724 * (send_xmodem_packet): New routine to generate either CRC-16 or
725 checksummed xmodem packets.
727 * remote-est.c (est_loadtypes), rom68k-rom.c (rom68k_loadtypes):
728 Reduce tables down to only the load types supported by each
731 * w89k-rom.c (w89k_supply_register): Parses output of Winbond
733 * (w89k_loadtypes, w89k_loadprotos): Reduce to just srec/xmodem.
734 * (w89k_cmds): Add clear all breakpoints, memory fill, and dump
737 * config/pa/tm-hppa.h: Define lots register offsets needed by
743 * Makefile.in (X11_INCLUDES): Define as empty.
744 (X11_CFLAGS): Define as including $(X11_INCLUDES).
745 (X11_LIB_SWITCHES): Define as empty.
746 (X11_LIBS): Define as -lX11.
749 * configure.in (enable_gdbtk): If gdbtk, support the --x-includes
750 and --x-libraries switches, setting the X11_INCLUDES and
751 X11_LIB_SWITCHES respectively. Instead of using a hardcoded -lX11
752 in ENABLE_CLIBS, use the X11_LIB_SWITCHES and X11_LIBS variables.
754 * gdbtk.c (gdbtk_init): If SIOCSPGRP is not available, don't use
755 it. This means that the stop button doesn't work, but is better
761 * mips-tdep.c (mips_print_register): Remove unused variable
762 our_type and call to init_type. Fixes memory leak. Reindent function.
764 * mips-tdep.c (mips_print_register), findvar.c
765 (write_register_bytes): Make buffer char[] instead of unsigned
770 * top.c, utils.c, main.c, defs.h: Replace error_pre_print with two
771 variables: error_pre_print (for RETURN_ERROR) and quit_pre_print
772 (for RETURN_QUIT). Fixes a bug whereby typing ^C (e.g. in "maint
773 print sym") could output extraneous stuff.
774 * objfiles.c: Don't declare error_pre_print; defs.h does it.
778 * monitor.h: Add MO_GETMEM_NEEDS_RANGE flag.
779 * monitor.c (monitor_read_memory): Use previously mentioned flag
780 to send proper format memory examine commands to the w89k monitor.
781 Also, try to handle bizarre format of memory dump...
783 * op50-rom.c w89k-rom.c: Update to new monitor.[ch] conventions.
787 * dbxread.c (process_one_symbol) [SOFUN_ADDRESS_MAYBE_MISSING]:
788 Handle relocated symbol address.
789 * partial-stab.h, case N_SO, SOFUN_ADDRESS_MAYBE_MISSING:
790 Do not relocate a zero address.
794 * config/a29k/tm-a29k.h: Nuke obsolete define CONTROL_END_ADDR; it
797 * stabsread.c (read_range_type): Remove FIXME comment about
798 type-id (I presume this meant a number followed by = followed by a
799 type) versus type number; Per fixed it.
803 * configure.in: sparc-*-sunos5* is same as sparc-*-solaris2*.
807 * remote-e7000.c (why_stop): Add new kinds of strings to expect
809 (e7000_wait): Add interpretations for more stop reasons,
810 including warnings for write protect and cycle address errors.
815 * Makefile.in (gdbtk.o): Use X11_CFLAGS to provide alternate
816 locations (per-host) for X11 include files.
817 * config/pa/hppahpux.mh (XM_CLIBS): Add -L/usr/lib/X11R5 to force
818 the use of R5 libs. (X11_CFLAGS): Add this to indicate the locs
819 of the R5 include files.
821 * monitor.c monitor.h remote-est.c rom68k-rom.c: Add start of
822 support for interrupting target.
823 * monitor.c (monitor_open): Send stop command before doing
825 * (monitor_load_srec): Fix record size calculation to prevent end
826 of segment from getting trashed.
827 * rom68k-rom.c: Update to latest version of struct monitor_ops.
828 * config/sparc/tm-sparc.h (FIX_CALL_DUMMY): Fix byte-order
829 problems. Makes DOS hosted function calling work.
830 * sparclite/crt0.s: Define _start to make COFF happy.
834 * defs.h (atof): Don't provide an external declaration if atof is
839 * rs6000-tdep.c (skip_prologue): Skip saving of LR and CR in
840 the stack frame, fix typos in `st rx,NUM(r1)' and `stu r1,NUM(r1)'
845 * gdbtypes.c (create_range_type): If indextype has TYPE_FLAG_STUB
846 set, set TYPE_FLAG_TARGET_STUB.
847 (check_stub_type): Recalculate TYPE_LENGTH for range type.
848 * stabsread.c (read_range_type): If index type number is followed
849 by '=', back up, call read_type. and assume we have a true range.
850 * gdbtypes.h (TYPE_FLAG_TARGET_STUB): Update comment.
854 * alpha-nat.c, irix4-nat.c, irix5-nat.c, mipsv4-nat.c,
855 sparc-tdep.c (supply_gregset, supply_fpregset): Fill inaccessible
856 registers with zero to handle recent read_register_bytes change.
857 * irix4-nat.c, irix5-nat.c, mipsv4-nat.c (supply_gregset,
858 fill_gregset): Fix handling of CAUSE_REGNUM.
859 * mips-nat.c (store_inferior_registers): Handle unwritable
860 registers when storing a single register.
861 * config/mips/tm-irix3.h (CAUSE_REGNUM, BADVADDR_REGNUM):
864 * mdebugread.c (parse_symbol, psymtab_to_symtab_1): Clear
865 allocated mips_extra_func_info, if the debug info is corrupt,
866 the PDR to fill it in might be missing.
870 * vx-share/regPacket.h: a new file interfacing with vxworks.
874 * breakpoint.c (bpstat_do_actions): Once we've executed the
875 commands, set bs->commands to NULL.
879 * buildsym.c (patch_subfile_name): Update last_source_file
880 with the real source file name.
881 * dbxread.c (end_psymtab): Handle static functions in the
882 SOFUN_ADDRESS_MAYBE_MISSING case by passing pst->filename
883 to lookup_minimal_symbol.
884 (process_one_symbol): Ignore extra outermost context from
886 * stabsread.c (define_symbol): Do not complain for SunPRO
887 static variable encoding if STATIC_TRANSFORM_NAME is defined.
888 * sparc-tdep.c, config/sparc/tm-sun4sol2.h
889 (sunpro_static_transform_name): Renamed from
890 solaris_static_transform_name.
891 * config/sparc/tm-sun4os4.h (STATIC_TRANSFORM_NAME):
892 Define to sunpro_static_transform_name for acc 3.0 compiled
894 * procfs.c, config/alpha/nm-osf2.h (PROCFS_DONT_TRACE_FAULTS):
895 Renamed from PROCFS_DONT_TRACE_IFAULT, don't trace any faults
897 * procfs.c (info_proc_siginfo): Cast sip->si_addr to
898 `unsigned long' and use `lx' format for printing it.
902 * configure.in: Move test for m68*-est-* before m68*-*-coff*.
903 * findvar.c: Move default def of CANNOT_STORE_REGISTER closer to
904 the beginning of the code.
905 * (write_register_gen): New routine. Analogous to
907 * (write_register_bytes): Another rewrite! Make it smarter about
908 not updating regs with the same value.
909 * monitor.c (printf_monitor readchar): Use stderr instead of
910 stdout to output debug info. Also cleanup readchar a little.
911 * (expect): Make sure that excessive responses are null
913 * (monitor_open): Check for magic number in monitor_ops struct.
914 Allow multiple commands as init strings. Also, clear all
916 * (monitor_resume monitor_wait): Send a command to dump all the
917 regs for those targets which don't do so when waking up after a
919 * (monitor_wait): Handle excessive response output better.
920 * (monitor_write_memory): Use block fill, word, and long word
921 commands (if they exist) to write memory more efficiently.
922 * General cleanups to use flag bits instead of individual flag
923 words in monitor_ops struct.
924 * (monitor_command): Return output from command.
925 * (monitor_load_srec): Allocate buffer only once. Use alloca.
926 Wait for load response string instead of using a timeout to start
927 sending S-records. Fix bug where value of srec_frame shrinks. If
928 hashmark is set, print `-' for retransmissions. General cleanups.
929 * (monitor_make_srec): Get rid of S-record default type kludge.
930 * monitor.h: Use seperate struct for memory and register
931 read/write commands. Memory commands can come in byte, word,
932 long, and longlong forms.
933 * (monitor_ops): Change lots of fields. Generalize some stuff.
934 Put all flags into flags word. Allow init to be a list of commands.
935 Add command for clearing all breakpoints, block fill, dumping all
937 * remote-est.c: Rewrite to use new monitor conventions.
938 * config/m68k/est.mt (TDEPFILES): Add monitor.o.
939 * config/m68k/tm-est.h: Set NUM_REGS to 18.
940 * testsuite/gdb.base/break.exp: Lots of cleanups. Use gdb_test
945 * somsolib.c (som_solib_add): Handle case where a shared library
946 referenced by a core file has sections without the SEC_ALLOC bit
947 set (eg stabs sections).
951 * breakpoint.c (bpstat_do_actions): For each element in the bpstat
952 chain, do all the commands regardless of whether they run the
957 * mem-break.c (LITTLE_BREAKPOINT, BIG_BREAKPOINT): Define as
958 BREAKPOINT if mono-endian.
959 (break_insn): Deleted.
960 (big_break_insn, little_break_insn): Define.
961 (memory_insert_breakpoint): Handle bi-endian cpus.
962 (BREAKPOINT_LEN): Define.
963 (memory_remove_breakpoint): Use it.
964 (memory_breakpoint_size): Likewise.
968 * sparc-stub.c: add nop after 'bg good_wim'.
969 * sparcl-stub.c: ditto.
973 * infrun.c (handle_command): Don't print TARGET_SIGNAL_0,
974 TARGET_SIGNAL_UNKNOWN, or TARGET_SIGNAL_DEFAULT.
978 * hppab-nat.c (store_inferior_registers): Sync with HPUX version.
982 * hppah-nat.c (store_inferior_registers): Move check for
983 CANNOT_STORE_REGISTER to a better place. Fixes ptrace I/O errors
984 found by test suite during function calls, which attempts to write
985 unwritable registers.
989 * mdebugread.c (parse_symbol): If finishing a function without
990 known parameter type info, set that from parameter symbols.
991 Remove commented-out add_param_to_type support.
995 * xcoffread.c (process_linenos): Make sure filename we pass to
996 start_subfile will cause deduce_language_from_filename to return
997 the correct thing. Reindent function to GNU standards.
1001 * nlm/gdbserve.c (handle_exception): #if out call to StopBell,
1002 as it is not available on NetWare 3 or PIN.
1003 * nlm/ppc.c (StopBell): Removed.
1007 * xcoffread.c (read_xcoff_symtab): When creating a dummy parameter
1008 inferred from the traceback tags, give its type the name
1009 "<non-float parameter>".
1011 * stabsread.c (rs6000_builtin_type): Recognize types -31 to -34.
1015 * findvar.c (read_register_bytes write_register_bytes): Make
1016 these routines much smarter about updating registers from the
1017 target, only doing so when absolutely necessary. This really
1018 speeds up register modification on some remote targets.
1020 * monitor.c: More cleanups. Get rid of monitor_load_ascii_srec.
1021 BFD makes this unnecessary. Lots of debugging speedups.
1022 * (expect): NULL terminate return string.
1023 * (monitor_open monitor_supply_register parse_register_dump
1024 monitor_wait monitor_fetch_register): Switch to using GNU regexp
1025 library to parse multi-register displays.
1026 * (monitor_read_memory): Read multiple bytes (up to 16) at once.
1027 * (monitor_create_inferior): Call clear_proceed_status to make run
1028 command notice first breakpoint.
1029 * (monitor_load): Clean up. Reset inferior_pid, set pc to start
1030 address and reset symbol table stuff to make loads put things into
1032 * (monitor_load_srec): Lower sleep time to 1 second.
1034 * monitor.h (struct monitor_ops): Add register_pattern and
1035 supply_register to monitor_ops.
1037 * rom68k-rom.c: Add new support for handling register dumps.
1038 * config/m68k/tm-m68k.h: Define D0_REGNUM and A0_REGNUM for register
1043 * utils.c, defs.h (putchar_unfiltered, fputc_unfiltered): Make
1044 argument be an int, not a char. Using a prototype followed by an
1045 old-style function definition in a case where an argument is
1046 widened is a GCC-ism not supported by the native AIX compiler.
1050 * nlmstub.def: Removed, this was moved to nlm/gdbserve.def
1053 * configure.in (alpha-*-netware*): Removed configuration.
1054 * config/alpha/{alpha-nw.mt, gdbserve.mt, tm-alphanw.h}: Removed.
1055 * nlm/{README-ALPHA-NETWARE, aio.h, alpha-io.S, alpha-regdef.h,
1056 alpha.c, alpha.h, altdebug.h}: Removed.
1058 * nlm/gdbserve.c (main): Add support for processing BOARD=
1059 argument, deprecate NODE=.
1063 * c-exp.y (yylex): Make an empty character constant an error.
1067 * valops.c (value_arg_coerce): Do possible value_coerce_array
1068 before determining type argument to value_cast.
1072 * remote-es.c: Replace ignore with 0.
1076 * valops.c (value_repeat), eval.c (evaluate_subexp_standard):
1077 If VALUE_REPEATED is already set, just error out.
1079 * valops.c (value_cast, value_slice), parse.c (follow_types): Add
1080 FIXME-type-allocation comments.
1082 * gdbtypes.h (struct type): Fix comment about what units the
1087 * ch-valprint.c (annotate.h): Include.
1088 * eval.c (evaluate_subexp_standard): Remove unused variable.
1089 (calc_f77_array_dims): Add parens to expression.
1090 * f-exp.y (yylex): Add parens to expression, remove unused label.
1091 * f-lang.h (calc_f77_array_dims): Declare.
1092 * f-valprint.c (f_val_print): Remove unused variables.
1096 * alpha-tdep.c (find_proc_desc): If pdr.framereg field is -1, don't
1097 use the PDR, just examine prologues instead.
1102 * config/tm-arc.h: Change arc register names.
1107 Fix problems with infinite recursion when printing a class
1108 that contains a static instance of the class.
1109 * cp-valprint.c (dont_print_vb_obstack): Renamed from
1110 dont_print_obstack, made static.
1111 (dont_print_statmem_obstack): New obstack, controls printing
1112 of static member classes.
1113 (_initialize_cp_valprint): Initialize it.
1114 (cp_print_static_field): New function, handles printing of
1116 (cp_print_value_fields): New parameter dont_print_statmem to
1117 handle recursive printing of static member classes, use
1118 cp_print_static_field to handle printing of static members.
1119 * c-valprint.c (cp_print_value_fields): Update prototype and
1120 call to include additional dont_print_statmem parameter.
1121 * c-valprint.c, f-valprint.c (dont_print_obstack): Remove unused
1124 * alpha-tdep.c, findvar.c, infptrace.c: Include <string.h>.
1126 * config/alpha/tm-alpha.h (FRAME_FIND_SAVED_REGS): Call
1127 alpha_find_saved_regs if fi->saved_regs is still NULL.
1129 * elfread.c (elf_symtab_read): Ensure that the filename field
1130 of a minsym is nonempty. Ignore solib trampoline symbols from
1131 the main symbol table, they might have a bogus value.
1133 * procfs.c (set_proc_siginfo), config/alpha/alpha-osf2.mh:
1134 Fix typos in comments.
1138 * mdebugread.c (parse_symbol, psymtab_to_symtab_1): Initialize
1139 pdr.framereg field of MIPS_EFI_SYMBOL_NAME symbol to -1. That way
1140 we know whether the PDR ever got set.
1141 * mips-tdep.c (find_proc_desc): If pdr.framereg field is -1, don't
1142 use the PDR, just examine prologues instead.
1146 * somsolib.c (som_solib_section_offsets): Get offset of text
1151 start-sanitize-gdbtk
1152 * gdbtk.c (gdb_get_breakpoint_info): Return error if breakpoint
1153 type is not bp_breakpoint.
1156 * source.c (forward_search_command reverse_search_command): Set
1157 convenience variable $_ to be the line # of the match.
1158 * symtab.c (decode_line_1): Allow convenience variables to be
1159 used in line specs (for breakpoints and such).
1163 * Makefile.in (VERSION): Bump to 4.14.1.
1164 * NEWS, README: Update for 4.14.
1165 * i386v-nat.c (i386_insert_aligned_watchpoint): Fix declaration.
1166 (i386_insert_nonaligned_watchpoint): Call aligned instead of
1167 generic watchpoint insertion.
1171 * valops.c (value_slice): Do COERCE_VARYING_ARRAY.
1175 * monitor.c, array-rom.c, monitor.h, rom68k-rom.c: Move target_ops
1177 * monitor.c (monitor_create_inferior): Allow run command to start
1180 * monitor.c (monitor_load): Set PC to start address when done
1183 * array-rom.c, monitor.h, rom68k-rom.c: Clean up target_ops.
1184 Remove ref to monitor_create_inferior.
1186 * monitor.c: More general cleanups. Add prototypes, remove
1187 unused routines. Fix bug with wrong number of args to error().
1189 * main.c (main): Don't start up GUI when running under gdb mode
1192 * Makefile.in: Add rules for monitor.o and rom68k-rom.o to make
1193 Sun make (with VPATH) work...
1195 * monitor.c, monitor.h, rom68k-rom.c: Serious cleanup to make IDP
1196 (rom68k) target work right.
1197 * array-rom.c, op50-rom.c, w89k-rom.c: Partial updates to new
1198 monitor.c interface. More work needs to be done here.
1199 * config/m68k/tm-monitor.h: Change DECR_PC_AFTER_BREAK to 0 to
1200 match the IDP monitor. Also, set NUM_REGS to 18 cuz there's no
1201 floating-point for this card.
1203 * serial.h, ser-go32.c, ser-go32-para.c, ser-mac.c, ser-tcp.c,
1204 ser-unix.c: Add SERIAL_SETSTOPBITS to set the number of stopbits
1205 (needed for IDP board?!?!?).
1207 * defs.h, utils.c, remote-hms.c, remote-pa.c, remote.c: Fix defs
1208 and usage of fputc_unfiltered and putchar_unfiltered. Eliminate
1209 putc_unfiltered (it's superfluous).
1211 * command.h, command.c, top.c: Add var_enum command type. It's
1212 like var_string but allows only only one of the specified strings.
1216 * valops.c (value_cast): Don't use backslash newline--pre-ANSI
1217 compilers (such as SunOS4 /bin/cc) don't generally support it
1218 except in some contexts.
1222 * valops.c (value_cast): Check for cast to array type *before*
1223 we coerce array to pointer (in case arg2 is already array).
1225 * valops.c (call_function_by_hand): Set using_gcc to 2 if using
1226 gcc2. Needed for REG_STRUCT_HAS_ADDR to work on sparc.
1227 Also check REG_STRUCT_HAS_ADDR for union, array and string types.
1229 * valops.c (call_function_by_hand): Re-arrange code for pushing
1230 paramaters on the stack so we can do better STACK_ALIGN.
1232 * valops.c (call_function_by_hand): Call error if the number
1233 of arguments is fewer than parameter types in function type.
1237 * sparc-tdep.c (sparc_extract_struct_value_address): Move
1238 sparc64 support to here.
1239 (sparc64_extract_struct_value_address): Deleted.
1240 (dump_ccreg): Add a prototype so long long arg -> int.
1241 * sparc/tm-sp64.h (USE_STRUCT_CONVENTION): Define.
1242 (EXTRACT_STRUCT_VALUE_ADDRESS): Delete.
1246 * hpread.c (hpread_record_lines): New argument "offset". All
1247 callers changed. Use it to handle dynamic address relocation.
1248 (hpread_build_psymtabs): Adjust texthigh as we read each function
1249 debug symbol. Fix computation of texthigh.
1250 (hpread_read_subrange_type): Work around macro bugs in HP's
1252 (hpread_process_one_debug_symbol): Correctly map source lines.
1254 * somread.c (check_strange_names): Filter names emitted by the HP
1255 compiler when generating PIC code.
1257 * valops.c (value_struct_elt_for_reference): Work around macro
1258 bugs in HP's compilers.
1259 * c-exp.y (block): Likewise.
1263 * rs6000-tdep.c (push_dummy_frame): Fix order of arguments to
1266 * utils.c [_AIX]: Include stddef.h instead of #defining size_t.
1270 * rs6000-tdep.c (skip_prologue): Skip multiple stores of the saved
1271 registers that GCC emits on the PowerPC by default in addition to
1272 the store multiple instruction used on the Power series.
1276 * sparc-tdep.c (decode_asi): New function.
1277 (sparc_print_register_hook): Pretty print more v9 registers.
1278 * sparc/tm-sp64.h (REGISTER_NAMES): Fix some typos.
1282 * dwarfread.c (struct dieinfo): Use CORE_ADDR for at_{low,high}_pc.
1283 (target_to_host): Change result type to CORE_ADDR.
1287 * rs6000-tdep.c: Fix byte-swapping sins.
1291 * rs6000-tdep.c (branch_dest): Minor code cleanup, don't share
1292 code between branch unconditional and branch conditional cases.
1296 Various changes for sparc64.
1297 * sparc-tdep.c (NUM_SPARC_FPREGS): Define.
1298 (SPARC_INTREG_SIZE): Define.
1299 (*): Use SPARC_INTREG_SIZE instead of REGISTER_RAW_SIZE (intreg)
1301 (enum branch_type): New value `done_retry'.
1302 (isbranch): Renamed from isannulled. All callers changed.
1303 Support new sparc64 branch insns.
1304 (single_step): Handle done_retry.
1305 (sparc_extract_struct_value_address): Don't assume 4 byte regs.
1306 (get_saved_register): Likewise.
1307 (sparc_push_dummy_frame): Likewise.
1308 (sparc_frame_find_saved_regs): Likewise.
1309 (sparc_pop_frame): Likewise. Don't refer to FPS_REGNUM, CPS_REGNUM,
1310 or PS_REGNUM if not sparc64. sparc64 has 64 fp regs.
1311 (sparc64_extract_struct_value_address): New function.
1312 (dump_ccreg, sparc_print_register_hook): Likewise.
1313 * sp64-tdep.c: Deleted.
1314 * sparc/tm-sp64.h (GDB_TARGET_IS_SPARC64): Define.
1315 (NUM_REGS): Reduce by 2, cle/tle are in the pstate reg.
1316 (CC_HAS_LONG_LONG): Define.
1317 (REGISTER_NAMES): Delete cle/tle and reorganize.
1318 (PS_REGNUM, FPS_REGNUM, CPS_REGNUM): Delete, they're ifdef'd out of
1320 (REGISTER_BYTES): Update.
1321 (REGISTER_CONVERT_TO_VIRTUAL, REGISTER_CONVERT_TO_RAW): Delete.
1322 (EXTRACT_RETURN_VALUE): Delete. Use definition in tm-sparc.h.
1323 (NO_SINGLE_STEP): Likewise.
1324 * sparc/tm-sparc.h (EXTRACT_VALUE_RETURN): Don't assume 4 byte regs.
1325 * sparc/sp64.mt: Move simulator support ...
1326 * sparc/sp64sim.mt: ... to here.
1330 * remote-vx960.c: new file for target specific register packaging.
1331 * remote-vx68.c: ditto.
1332 * config/i960/vxworks960.mt: add remote-vx960.o.
1333 * config/m68k/vxworks68.mt: add remote-vx68.o.
1337 * remote.c (remote_wait): Make calls to strtol be type correct by
1338 passing the address of a char * pointer instead of an unsigned
1341 * rs6000-tdep.c (push_dummy_frame): Cast sp to char * when calling
1342 write_memory to make things type correct.
1346 * ch-exp.y, c-exp.y, f-exp.y, m2-exp.y (yy defines): Support the
1347 standard Linux yacc by adding more names to be redefined with a
1352 * hppa-tdep.c (pa_print_registers), monitor.c: Use
1353 extract_unsigned_integer and friends, not SWAP_TARGET_AND_HOST.
1354 * defs.h, findvar.c: Move SWAP_TARGET_AND_HOST back to findvar.c.
1355 Rename it to SWAP_FLOATING to make it clear it is no longer for
1360 * defs.h (SWAP_TARGET_AND_HOST): check endianess at runtime not
1364 * arc-tdep.c (_initialize_arc_tdep): set tm_print_insn according to
1366 * remote-arc.c (arc_wait): when a processor stops, stop other two
1368 * remote-arc.c (switch_command): switch tm_print_insn.
1371 * vx-share/ptrace.h: merge in WRS new ptrace requests.
1373 * defs.h: fix a syntax error.
1375 * a29k-tdep.c (get_longjmp_target): add this function, from WRS.
1376 * remote-vx.c: move read_register and write_register out to
1377 target specific files.
1378 * remote-vx29k.c (get_fp_contnets): add this function, from WRS.
1380 * defs.h: define SWAP_TARGET_AND_HOST macro.
1381 * findvar.c, monitor.c, hppa-tdep.c: remove definition of
1382 SWAP_TARGET_AND_HOST.
1386 * alpha-tdep.c (find_proc_desc): Only attempt to set
1387 PROC_LOCALOFF (found_heuristic) if found_heuristic is non-NULL.
1391 * monitor.c: General gcc -Wall lint cleanup and reformat.
1392 (monitor_command): If no args, send an empty command.
1396 * monitor.c (monitor_load_ascii_srec): Add a one second sleep
1397 after send LOAD_CMD to prevent loss of first S-record.
1401 * valops.c (call_function_by_hand): Set using_gcc to 2 if gcc-2.
1402 Call error if too few arguments.
1403 If REG_STRUCT_HAS_ADDR (structs passed by invisible reference),
1404 copy and convert to reference *before* we calculate alignment.
1405 Also, make sure structs allocated for return values and invisible
1406 reference don't violate STACK_ALIGN.
1410 * ch-exp.y (expression_conversion): Recognize 'ARRAY () TYPE (EXPR)'
1411 (same as C's '(TYPE[])EXPR')
1415 * top.c (print_gdb_version): Update the year.
1419 * Makefile.in (CC_FOR_TARGET, CXX_FOR_TARGET): Look for newlib in
1420 `..' not in `../..'.
1424 * procfs.c (unconditionally_kill_inferior): Don't issue a PIOCKILL
1425 in addition to a PIOCSSIG to kill the inferior.
1429 * parse.c (follow_types): Given (TYPE[]) (i.e. with no length),
1430 create a 0-length array type, and set BOUND_CANNOT_BE_DETERMINED.
1431 * valops.c (value_cast): If a cast like (TYPE[])VALUE (i.e. array
1432 of unknown length) use sizeof(VALUE)/sizeof(TYPE) as the length.
1433 * c-typeprint.c (c_type_print_varspec_suffix): If array length
1434 is 0, print it, but not if upper_bound is BOUND_CANNOT_BE_DETERMINED.
1438 * dcache.c (insque, remque): Rewrite Linux support.
1442 * config/powerpc/tm-ppc-eabi.h (TEXT_SEGMENT_BASE): Define as 1.
1444 * dcache.c (insque, remque): If compiling in standard C on Linux,
1445 protect insque and remque with macros to cast the pointer
1446 arguments to the proper type.
1450 * annotate.c, breakpoint.c, defs.h, top.c: Replace
1451 enable/disable_breakpoint_hook with modify_breakpoint_hook.
1452 start-sanitize-gdbtk
1454 * gdbtk.c: General cleanups, get rid of unused variables. Redo
1455 handling of stdout/stderr to just return output as the result of
1456 the tcl command that caused the output. Cleanup -Wall stuff.
1457 * (breakpoint_notify): Now returns just action and breakpoint
1459 * (gdb_get_breakpoint_list): New routine. Does the obvious.
1460 * (gdb_get_breakpoint_info): Mostly derived from the old
1461 breakpoint_notify, but returns lots more info.
1462 * (dsprintf_append_element): Helper routine, works like printf,
1463 but appends a tcl element onto the specified DString. Good for
1464 building up lists as return values.
1465 * (gdbtk_enable/disable_breakpoint): Go away. Replaced with
1466 gdbtk_modify_breakpoint.
1467 * (*many routines*): Use new result protocol.
1468 * (call_wrapper): Make sure that recursive calls don't trash results.
1469 * gdbtk.tcl: New windows, autocmd, and breakpoints.
1470 * (gdbtk_tcl_fputs): Don't use $current_output_win redirection
1471 anymore. It's not needed (in fact, this routine may not be needed
1473 * (gdbtk_tcl_breakpoint): Change to reflect new breakpoint
1474 notification protocol.
1475 * (gdbtk_tcl_busy gdbtk_tcl_idle): Straighten out buttons, remove
1477 * (interactive_cmd): Use this wrapper around button invocations
1478 of many commands. This will catch errors and put the results into
1479 the command window. It also updates all the other windows.
1480 * Also, change reliefs of most things to sunken. This actually
1482 * (create_file_win): Fix margin binding to allow breakpoints to
1484 * (create_asm_win): Use return value of gdb_disassemble instead
1485 of implicit I/O to the command window.
1486 * (create_command_window): Use new result protocol to get output
1492 * expression.h: Move declaration of evaluate_subexp_with_coercion
1494 * value.h: ...to here.
1495 * expression.h: Don't include value.h
1499 * expression.h: Move include of value.h until after declaration of
1504 * remote-e7000.c: Comprehensive cleanup; removal of dead code,
1505 simplify code, declare things, format to standards.
1506 (inferior.h, value.h, command.h, remote-utils.h): Include.
1507 (e7000_login): Rename to e7000_login_command.
1508 (e7000_ftp): Rename to e7000_ftp_command.
1509 (e7000_drain): Rename to e7000_drain_command.
1511 * irix5-nat.c (string.h): Include near beginning of file.
1515 * valops.c (value_arg_coerce): Use VALUE_TYPE not SYMBOL_TYPE on
1516 arg, it is a value not a symbol.
1519 * eval.c: Move declaration of evaluate_subexp_with_coercion from here..
1520 * expression.h: ..to here.
1521 * expression.h: Include value.h.
1522 * ch-lang.c (evaluate_subexp_chill): Add default case in switch.
1526 * language.h (struct language_defn): New field evaluate_exp.
1527 * c-lang.c (c_language_defn, cplus_language_defn, asm_langauge_defn),
1528 f-lang.c (f_language_defn), language.c (unknown_language_defn,
1529 auto_language_defn, local_language_defn), m2-lang.c (m2_language_defn):
1530 Set evaluate_exp to evaluate_subexp_standard.
1531 * ch-lang.c (evaluate_subexp_chill): New function. Chill-specific
1532 support for MULTI_SUBSCRIPT.
1533 (chill_language_defn): Set evaluate_exp to evaluate_subexp_chill.
1534 * eval.c (enum noside): Move from here ....
1535 * expression.h (enum noside): ... to here.
1536 (evaluate_subexp_standard): New prototype.
1537 * eval.c (evaluate_subexp): Renamed to evaluate_subexp_standard.
1538 Removed lo-longer-needed test for chill_varying_type.
1539 (evaluate_subexp): New. Calls exp->language_defn->evaluate_exp.
1541 * ch-exp.y (maybe_expression_list): New non-terminal.
1542 (primitive_value): Allow empty parameter list.
1546 * buildsym.c (finish_block): If finishing a function without known
1547 parameter type info, set that from parameter symbols.
1548 * c-typeprint.c (c_type_print_varspec_suffix): For TYPE_CODE_FUNC,
1549 print parameter types, if available.
1550 * ch-typeprint.c (chill_type_print_base): Likewise.
1552 * gdbtypes.h (struct type): Remove function type field.
1553 (TYPE_FUNCTION_TYPE): Remove macro. We can't as simply re-use
1554 function types now that we're also storing parameter types.
1555 And the payoff is much less.
1556 * gdbtypes.c (make_function_type): Don't use/set TYPE_FUNCTION_TYPE.
1557 (recursive_dump_type): Don't print TYPE_FUNCTION_TYPE.
1558 * dwarfread.c (read_subroutine_type): Don't set TYPE_FUNCTION_TYPE.
1560 * valops.c (value_arg_coerce): Now takes param_type argument.
1561 (call_function_by_hand): Convert arguments with value_arg_coerce
1562 early, and overwrite original args with converted args.
1563 No longer need multiple calls to value_arg_coerce.
1564 (value_arg_push): Removed.
1565 * hppa-tdep.c (hppa_push_arguments): No longer call value_arg_coerce.
1566 * mips-tdep.c (mips_push_arguments): Likewise.
1567 * alpha-tdep.c (alpha_push_arguments): Likewise.
1568 * rs6000-tdep.c (push_arguments, ran_out_of_registers_for_arguments):
1570 * value.h (value_arg_coerce): Remove declaration. (It's now static.)
1572 * valops.c (value_cast): Do COERCE_VARYING_ARRAY after COERCE_REF.
1574 * symtab.c (add_param_to_type): Remove (commented-out) function,
1575 since that functionality has been re-written.
1576 * coffread.c: Remove commented-out add_param_to_type support.
1577 * mdebugread.c (parse_symbol): Likewise.
1578 * stabsread.c (define_symbol): Likewise.
1582 * buildsym.c (start_subfile): Set language for f2c like for cfront.
1586 * op50n-rom.c: Add the control registers.
1590 * Makefile.in (CLIBS): Add $(LIBIBERTY) before, in addition to
1591 after, any host/target/native libraries.
1592 * dcache.c (insque, remque): Remove declarations.
1593 * gdbtypes.h (type_code): Remove trailing comma.
1596 * xcoffread.c (read_xcoff_symtab) [C_HIDEXT]: Move #ifdef
1597 STATIC_NODEBUG_VARS inside case.
1601 * config/sparc/tm-sun4sol2.h: Define STATIC_TRANSFORM_NAME.
1602 * partial-stab.h: Call it.
1603 * stabsread.c (define_symbol) [STATIC_TRANSFORM_NAME]: Call
1604 STATIC_TRANSFORM_NAME to get the name and use minimal symbols to
1606 * sparc-tdep.c (solaris_static_transform_name): New function.
1610 * somread.c (som_symtab_read): Handle dynamic relocation for both
1611 text and data symbols.
1612 (som_symfile_offsets): If objfile is a shared library, then get
1613 text and data offsets from the shared library structures.
1614 * somsolib.c (som_solib_add): Copy the bfd pointer from the
1615 objfile rather than reopening the file again.
1616 (som_solib_section_offsets): New function.
1617 * somsolib.h (som_solib_section_offsets): Declare.
1621 * config/sparc/tm-sun4sol2.h, dbxread.c: Rename
1622 N_SO_ADDRESS_MAYBE_MISSING to SOFUN_ADDRESS_MAYBE_MISSING.
1623 * symtab.h (minimal_symbol) [SOFUN_ADDRESS_MAYBE_MISSING]: Add
1625 * elfread.c (record_minimal_symbol_and_info),
1626 minsyms.c, symtab.h (prim_record_minimal_symbol_and_info): Return
1627 newly created symbol.
1628 * elfread.c (elf_symtab_read) [SOFUN_ADDRESS_MAYBE_MISSING]:
1629 Set filename field of minimal symbol.
1630 * symmisc.c (dump_msymbols) [SOFUN_ADDRESS_MAYBE_MISSING]:
1631 Print filename field.
1632 * minsyms.c, symtab.h (lookup_minimal_symbol): New arg sfile.
1633 * symm-tdep.c, somsolib.c, hppa-tdep.c, c-exp.y, f-exp.y,
1634 m2-exp.y, nindy-tdep.c, m3-nat.c, irix5-nat.c, hpread.c,
1635 os9kread.c, breakpoint.c, alpha-tdep.c, valops.c, symtab.c,
1636 printcmd.c, dbxread.c: Change callers to pass NULL for sfile.
1637 * dbxread.c (process_one_symbol) [SOFUN_ADDRESS_MAYBE_MISSING]:
1638 Find address of function from minimal symbols.
1639 * partial-stab.h, case 'f', 'F': Call find_stab_function_addr
1640 instead of getting pst->textlow from the stab.
1641 * minsyms.c (find_stab_function_addr): New function.
1645 * monitor.c: Fix so all the output shows up in the GUI command
1650 * i386-tdep.c (_initialize_i386_tdep): Put void decl on separate
1651 line, so init.c generation works correctly.
1653 * arc-tdep.c (_initialize_arc_tdep): Ditto.
1658 * config/mips/idt.mt: Add support for the lsi33k target.
1659 * config/sparc/sun4sol2.mh: Add support for ser-tcp.
1660 * array-rom.c: Finish the rest of the support commands needed by
1662 * mips-tdep.c: Add LSI33k register names and processor type.
1664 start-sanitize-gdbtk
1667 * gdbtk.c (gdb_disassemble): Deference pointer to function before
1668 calling it (pre-ANSI compilers generally require this).
1673 * config/m68k/est.mt (TDEPFILES): Remove m68k-pinsn.o.
1677 * ser-go32-para.c (dos_read): fix syntax errors.
1681 * core.c (dis_asm_read_memory), defs.h, top.c: Get rid of
1682 dis_asm_read_memory_hook. We can now call the disassemblers
1683 directly and have no need for this hook anymore.
1684 start-sanitize-gdbtk
1685 * gdbtk.c (gdb_disassemble): Ditto.
1687 * defs.h, printcmd.c: Make print_insn be static.
1689 * ser-go32.c (dos_comisr): Make this 8 bit clean.
1690 * (dos_open dos_close): Allow multiple opens to the same device.
1691 Use a ref count to prevent unwanted deallocations.
1692 * sparcl-tdep.c: Put #ifdefs around all socket stuff to make GO32
1694 * (sparclite_ops): Switch to download_stratum.
1695 * target.h (enum strata): Move download_stratum before
1696 process_stratum so that executable targets get pushed on top of
1701 * array-rom.c: Remove the non GDB remote protocol config stuff.
1703 * monitor.c: All reading/writing functions for memory and
1709 * config/arc/arc.mt: new target makefile for arc processor.
1710 * config/arc/tm-arc.h: new target header for arc processor.
1711 * config/arc/go32.mh: new go32 host makefile for arc processor.
1712 * config/arc/xm-go32.h: new go32 host header for arc processor.
1713 * arc-tdep.c: new target dependent codes for arc processor.
1714 * remote-arc.c: new file for arc-specific protocol through
1717 * ser-go32-para.c: new file for go32 parallel port communication.
1721 * Makefile.in (VERSION): Bump to 4.13.2.
1725 Fix compiler warnings:
1726 * remote-e7000.c (printf_e7000debug): Rename to puts_e7000debug
1727 and have the caller do the sprintf. Saves us from varargs hell.
1728 (normal): Define before use.
1729 * remote-e7000.c: Reindent a few things.
1733 * f-typeprint.c (f_type_print_varspec_suffix): Print array index
1734 ranges in reverse order.
1735 * f-valprint.c (f77_create_arrayprint_offset_tbl): Fix calculation.
1737 * eval.c (evaluate_subscript): Don't call value_subscript, since
1738 it adjusts for lower bound and enforces ranges.
1740 * expression.h (exp_code): Remove MULTI_F77_SUBSCRIPT, OP_F77_SUBSTR.
1741 * eval.c, parse.c: Removed uses of removed opcodes.
1742 * eval.c (evaluate_subexp): Clean up handling of
1743 OP_UNDETERMINED_ARGLIST (no backtracking, more general).
1745 * f-valprint.c (f_val_print): Print TYPE_CODE_STRING using
1746 LA_PRINT_STRING, and not val_print_string (which reads from inferior).
1748 * ch-lang.c (chill_is_varying_struct), ch-lang.h: Remve function
1749 duplicate function made redundant by chill_varying_type.
1751 Re-write of f77 string and complex number support:
1753 * language.h (struct language_defn): New fields string_lower_bound
1754 and string_char_type.
1755 * c-lang.c (c_language_defn, cplus_language_defn, asm_language_defn),
1756 language.c (unknown_language_defn, auto_language_defn,
1757 local_language_defn), m2-lang.c (m2_language_defn), f-lang.c
1758 (f_language_defn), ch-lang.c (chill_language_defn): Set new fields.
1759 * gdbtypes.c (create_string_type): Use new string_char_type field.
1760 * valops.c (value_string): Use new string_lower_bound field.
1762 * defs.h (TARGET_COMPLEX_BIT, TARGET_DOUBLE_COMPLEX_BIT): Removed.
1763 * f-lang.c (f_create_fundamental_type, _initialize_f_language),
1764 m2-lang.c (m2_create_fundamental_type),
1765 gdbtypes.c (_initialize_gdbtypes): Set TYPE_TARGET_TYPE of complex
1766 types. Set their TYPE_CODEs to TYPE_CODE_COMPLEX.
1767 * mdebugread.c (mdebug_type_complex, mdebug_type_double_complex):
1768 Removed. Use builtin_type_complex and builtin_type_double_complex.
1770 * gdbtypes.h (enum type_code): Removed TYPE_CODE_LITERAL_STRING
1771 and TYPE_CODE_LITERAL_COMPLEX.
1772 * c-typeprint.c, f-typeprint.c, f-valprint.c, eval.c: Removed uses of
1773 TYPE_CODE_LITERAL_STRING and TYPE_CODE_LITERAL_COMPLEX.
1774 * gdbtypes.c, gdbtypes.h (f77_create_literal_complex_type,
1775 f77_create_literal_string_type): Removed.
1776 * value.h (VALUE_LITERAL_DATA, VALUE_SUBSTRING_MEMADDR,
1777 VALUE_SUBSTRING_MYADDR): Removed.
1779 * expression.h (enum exp_opcode): Rename OP_F77_LITERAL_COMPLEX to
1781 * parse.c: Update accordingly.
1783 * f-valprint.c (f77_print_cmplx): Removed.
1784 (f_val_print case TYPE_CODE_COMPLEX): Re-write to use print_floating.
1786 * f-exp.y (STRING_LITERAL): Use OP_STRING instead of OP_ARRAY.
1787 * eval.c (evaluate_subexp): For case OP_ARRAY, don't call
1788 f77_value_literal_string.
1789 * valops.c, value.h (f77_value_literal_string, f77_value_substring,
1790 f77_assign_from_literal_string, f77_assign_from_literal_complex):
1792 (value_assign): No longer need to handle literal types.
1793 * valops.c (f77_value_literal_complex), value.h: Re-written and
1794 renamed to value_literal_complex. Last arg is now a (complex) type.
1795 * valops.c (f77_cast_into_complex): Re-written and renamed to
1797 * eval.c (evaluate_subexp): Update accordingly.
1799 * ch-valprint.c (chill_val_print): On TYPE_CODE_STRING, don't
1800 print address for non-'s'-formats.
1801 * ch-typeprint.c, ch-valprint.c: Use chill_varying_type instead
1802 of chill_is_varying_struct.
1807 * alpha-tdep.c (alpha_in_lenient_prologue): Comment out.
1808 (after_prologue): Remove unused local b.
1809 * procfs.c (thread.h): Include.
1810 (pr_flag_table, pr_why_table, faults_table, siginfo_table): Use
1811 nested braces in initializer.
1812 * top.c (initialize_targets, initialize_utils): Declare.
1813 (locate_arg, insert_args): Add parens around tested assignments.
1814 * remote-utils.c (sr_scan_args): Remove decl of strtol.
1815 * remote.c (thread.h): Include.
1816 (remote_wait): Remove unused local p2.
1817 * sparc-tdep.c (fill_gregset, fill_fpregset): Remove decls of
1820 defs.h (stdlib.h): Include.
1821 (exit, perror, atoi, qsort, memcpy, memcmp): Don't declare.
1822 (fclose, atof, malloc, realloc, free, strchr, strrchr, strstr,
1823 strtok, strerror): Don't specify parameter types in declaration.
1827 * ch-exp.y (value_string_element, string_primitive_value,
1828 start_element, left_element, right_element, slice_size,
1829 lower_element, upper_element, first_element): Removed.
1830 (value_string_slice, value_array_slice): Replaced by ...
1831 (slice): New non-terminal, with working slice support.
1832 (primitive_value_lparen, rparen): New non-terminals.
1833 (maybe_tuple_elements): New non-terminal, to allow empty tuples.
1834 (idtokentab): Added "up".
1836 * value.h (COERCE_VARYING_ARRAY): New macro.
1837 * valarith.c (value_subscript): Use it.
1838 * valops.c (value_cast): Likewise. Also, do nothing if already
1839 correct type, and allow converting from/to range to/from scalar.
1841 * valops.c, value.h (varying_to_slice, value_slice): New functions.
1842 * eval.c (OP_ARRAY): Add cast for array element.
1843 * expression.h (TERNOP_SLICE, TERNOP_SLICE_COUNT): New exp_opcodes.
1844 * valops.c (chill_varying_type): Moved function frp, here ...
1845 * gdbtypes.c (chill_varying_type), gdbtypes.h: ... to here.
1846 * parse.c (length_of_subexp, prefixify_subexp): Add support
1847 for TERNOP_SLICE, TERNOP_SLICE_COUNT.
1848 * expprint.c (print_subexp, dump_expression): Likewise.
1849 * eval.c (evaluate_subexp): Likewise.
1851 * eval.c (evaluate_subexp case MULTI_SUBSCRIPT): Don't call
1852 value_x_binop on a Chill varying string.
1856 * config/m68k/monitor.mt,
1857 config/pa/{hppabsd.mt,hppahpux.mt,hppaosf.mt,hppapro.mt}: Put
1858 depfiles in TDEPFILES not REMOTE_O.
1860 Tue Jan 31 11:14:44 1995 Steve Chamberlain <sac@splat>
1863 * ser-go32.c (dos_close): Don't crash if scb null.
1864 (dos_sendbreak): New function.
1865 (dos_ops): Point to dos_sendbreak.
1866 (dos_info): Calculate COM number correctly.
1870 * xcoffread.c (process_xcoff_symbol): Use new variables
1871 func_symbol_type and var_symbol_type as type of functions and
1872 variables which don't have any stabs associated with them.
1873 Reindent most of function.
1874 (_initialize_xcoffread): Initialize *_symbol_type.
1876 * xcoffread.c (read_xcoff_symtab): Reindent most of function.
1877 Put C_HIDEXT symbols in the minimal symbols, rather than ignoring
1878 them (this part commented out as I didn't quite get it to work).
1879 (cs_to_section, find_targ_sec): New functions, to support above code.
1880 * xcoffread.c (RECORD_MINIMAL_SYMBOL): Only skip '.' if it is
1884 start-sanitize-gdbtk
1885 * gdbtk.tcl (create_file_win): Disable old popup menu for source
1888 * sparcl-tdep.c: Add `sparclite' target for doing serial and udp
1889 downloads to SPARClite demo boards.
1893 * remote.c, remote-pa.c: Remove #if 0'd icache code. It has had
1894 no hope of working as is for a long time (in particular, shebs' 27
1895 Jan 95 change confuses the issue further--target_read_memory and
1896 xfer_core_file do *not* do the same thing in this context).
1901 * elfread.c (elf_symtab_read): Do not test BSF_GLOBAL for
1902 procedure linkage table symbols, it is no longer set due to the
1903 Jan 6 BFD change in bfd/elfcode.h.
1907 * top.c (use_windows): Clarify comments.
1909 * convex-tdep.c (xfer_core_file): Comment out.
1910 * config/convex/tm-convex.h (XFER_CORE_FILE): Remove.
1911 * remote.c, remote-pa.c (remote_fetch_word): Change xfer_core_file
1912 references to target_read_memory.
1913 * gdbcore.h (xfer_core_file, core_open, core_detach): Remove
1915 * corelow.c (core_open, core_detach): Make static.
1917 * arm-tdep.c: Make it compile.
1918 (exec_file_command, xfer_core_file): Comment out.
1919 (arm_print_insn): Remove, now in libopcodes.
1920 (skip_prologue): Comment out most of body.
1921 (arm_frame_find_saved_regs): Move here from tm-arm.h.
1922 (_initialize_arm_tdep): Set tm_print_insn.
1923 * config/arm/tm-arm.h: Remove old refs to first_object_file_end.
1924 (XFER_CORE_FILE): Remove.
1925 (FRAME_FIND_SAVED_REGS): Call arm_frame_find_saved_regs.
1929 * Makefile.in (CHILL_LIB): Define as in testsuite/Makefile.in.
1933 * symtab.c (find_pc_line): When subtracting one to get a line
1934 number, make sure not to end up with zero.
1936 * remote-vx.c: Revert all of Kung's changes of 16 Jan. The
1937 problems with those changes were (a) the file didn't compile, (b)
1938 they changed memset to bzero--memset is correct, (c) they took out
1939 code to deal with boards lacking floating point, (d) who knows
1940 what I didn't discover in a quick read.
1944 * sparcl-tdep.c: Clean up formatting and indentation.
1946 Thu Jan 26 10:49:59 1995 Steve Chamberlain <sac@splat>
1948 * remote-hms.c (hms_ops): Change ref of hr_load_image
1950 (dcache_flush, dcache_hit, dcache_value, dcache_fetch,
1951 dcache_poke, dcache_init): Deleted.
1952 (hms_open, hms_resume, hms_fetch_word, hms_store_word):
1953 Use dcache routines provided by remote-util.h
1957 * configure.in: Add support for powerpc-*-eabi.
1959 * powerpc/tm-ppc-eabi.h, powerpc/pcc-eabi.mt: New files for
1964 * language.h (struct language_defn): New field c_style_arrays.
1965 * language.c (unknown_language_defn, auto_language_defn,
1966 local_language_defn), c-lang.c (c_language_defn, cplus_language_defn,
1967 asm_language_defn): Set c_style_arrays to true.
1968 * m2-lang.c (m2_language_defn), ch-lang.c (chill_language_defn),
1969 f-lang.c (f_language_defn): Set c_style_arrays to false.
1970 * valops.c (value_string): If c_style_array is not set,
1971 allocate string in gdb (not inferior) using allocate_value.
1973 * value.h (COERCE_ARRAY), valops.c (value_addr, value_arg_coerce):
1974 Only call value_coerce_array if current_language->c_style_arrays.
1975 * values.c: Add #include "language.h". (Needed for COERCE_ARRAY.)
1977 * valops.c (chill_varying_type): New predicate.
1978 * valops.c (value_cast): Support assigning a fixed string or array
1979 to a variable string/array structure.
1981 * valarith.c (value_subscripted_rvalue): Extra parameter lowerbound.
1982 Check index>=lowerbound, and then add lowerbound to index here,
1983 instead of in caller. Generalize to arbitrary lval_types.
1984 (value_subscript): Use enhanced value_subscripted_rvalue if
1985 c_style_arrays is false (and index is in range).
1987 start-sanitize-gdbtk
1990 * gdbtk.c (gdbtk_init): Prevent segfault when gdbtk.tcl can't be
1992 * gdbtk.tcl: Initialize expr_update_list() to prevent errors when
1993 popping up expression window for the first time.
1998 * eval.c (evaluate_subexp case OP_ARRAY): Fix calls to memset:
1999 TYPE_LENGTH is length in bytes, not bits.
2003 * infrun.c (proceed): Flush stdout before resuming inferior.
2004 * infcmd.c (step_1), annotate.c (annotate_starting):
2005 Don't bother to flush here.
2009 * hpread.c (hpread_process_one_debug_symbol): Fix lines garbled
2010 by an ill-advised global search and replace.
2014 * gdbtk.tcl (create_registers_window): Work around a radiobutton
2015 widget bug to make Options|Natural button work.
2017 * gdbtk.c (gdb_disassemble): Fix problem with source+assembly and
2018 g++ caused by out-of-order pc's.
2019 * gdbtk.tcl (files_command): Remove duplicate file names. Also,
2024 * gdbtk.tcl: Take .gdbtkinit if it exists. Makes gdbtk match the
2029 Add support for Chill bitstring literals (e.h. H'FF00').
2030 * ch-exp.y (match_bitstring_literal): Fix for proper endianness.
2031 * expprint.c (print_subexp): Don't call error on OP_BITSTRING,
2032 just print B'<unimlemented>'.
2033 * gdbtypes.c (create_set_type): Fix bug in length calculation.
2034 * valops.c, value.h (value_bitstring): New function.
2035 * eval.c (evaluate_subexp): Implement support for OP_BITSTRING.
2037 * ch-typeprint.c (chill_type_print_base): For TYPE_CODE_FUNC,
2038 check that return type is non-void, and print in proper Chill syntax.
2042 * Makefile.in: Remove references to remote-mon.c.
2043 * remote-mon.c: remove. Replaced by rom68k-rom.c.
2044 * rom68k-rom.c: Support for Rom68k monitor.
2048 * Makefile.in (CHILL_FOR_TARGET): Update -L argument to point to
2049 gcc/ch/runtime not chillrt, since that is where the chill runtime
2052 Mon Jan 23 00:06:57 1995 Steve Chamberlain <sac@splat>
2054 * remote-hms.c (hms_load): Delete.
2055 (target_ops): Use hr_load_image.
2057 * remote-e7000.c, remote-z8k.c, remote-nindy.c (target_ops):
2058 Define memory_insert/remove_breakpoint.
2059 * xm-go32.h: Remove redundant SIGs.
2061 Thu Jan 19 20:26:58 1995 Steve Chamberlain <sac@splat>
2067 * expression.h (OP_LABELED): New operator, for Chill
2068 labeled structre tuples.
2069 * ch-exp.y (tuple_element, named_record_element, tuple_elements):
2070 New non-terminals, to handle labeled structure tuples.
2071 (tuple): Re-define using tuple_elements.
2072 * eval.c (evaluate_labeled_field_init): New function, to handle
2073 initialization of structure fields, possibly using OP_LABELED.
2074 (evaluate_subexp): Use it.
2075 * expprint.c (print_subexp case): For OP_ARRAY, use Chill syntax
2076 for Chill. Handled OP_LABELED.
2077 * parse.c (length_of_subexp, prefixify_subexp): Handle OP_LABELED.
2079 * eval.c (evaluate_subexp): Handle Chill Powerset tuples.
2080 * valarith.c (value_bit_index): Just treat bitstring as represented
2081 by an array of bytes. Alignment is handled by compiler.
2085 * h8300-tdep.c (gdb_print_insn_h8300): Fix typo (&info -> info).
2086 * sh-tdep.c (gdb_print_insn_sh): Ditto.
2090 * remote-os9k.c (rombug_open): Fix a bug in exception handling
2092 * remote-os9k.c (rombug_write_inferior_memory): reset buffer after
2097 * parse.c (_initialize_parse): Improve wording of names of
2102 * config/mips/tm-mips.h (enum mips_fpu_type): New enum.
2103 (mips_fpu): Change type to enum mips_fpu_type.
2104 (FIX_CALL_DUMMY): Handle mips_fpu == MIPS_FPU_SINGLE.
2105 * mips-tdep.c (mips_fpu): Change type to enum mips_fpu_type.
2107 (mips_fpu_string): New static variable.
2108 (mips_push_dummy_frame): Handle mips_fpu == MIPS_FPU_SINGLE.
2109 (mips_pop_frame): Likewise.
2110 (mips_extract_return_value): Likewise.
2111 (mips_store_return_value): Likewise.
2112 (mips_set_fpu_command): New static function.
2113 (mips_show_fpu_command): New static function.
2114 (_initialize_mips_tdep): Change handling of set/show mipsfpu.
2118 * a29k-tdep.c (gdb_print_insn_a29k): Fix typo (&info -> info).
2120 * parse.c (write_exp_msymbol): Use new variables
2121 msym_*_symbol_type as type of msymbol expression.
2122 (_initialize_parse): Initialize them.
2126 General cleanup and simplication of disassembler interface.
2127 * a29k-pinsn.c, arm-pinsn.c, convex-pinsn.c, gould-pinsn.c,
2128 hppa-pinsn.c, i386-pinsn.c, i960-pinsn.c, m68k-pinsn.c,
2129 m88k-pinsn.c, mips-pinsn.c, ns32k-pinsn.c, pyr-pinsn.c,
2130 rs6000-pinsn.c, sparc-pinsn.c, tahoe-pinsn.c, vax-pinsn.c: Remove.
2131 * gould-tdep.c, ns32k-tdep.c, tahoe-tdep.c, vax-tdep.c: New files,
2132 had been -pinsn.c files.
2133 * Makefile.in (ALLDEPFILES): Remove removed files.
2134 (a29k-pinsn.o, arm-pinsn.o, convex-pinsn.o, gould-pinsn.o,
2135 hppa-pinsn.o, i386-pinsn.o, i960-pinsn.o, m68k-pinsn.o,
2136 m88k-pinsn.o, mips-pinsn.o, ns32k-pinsn.o, pyr-pinsn.o,
2137 rs6000-pinsn.o, sparc-pinsn.o, tahoe-pinsn.o, vax-pinsn.o):
2138 Remove compile actions.
2139 * arm-tdep.o, gould-tdep.o, ns32k-tdep.o, tahoe-tdep.o,
2140 vax-tdep.o: Add compile actions.
2141 * defs.h (tm_print_insn): New global.
2142 * a29k-tdep.c (gdb_print_insn_a29k): New function.
2143 (_initialize_a29k_tdep): Rename from _initialize_29k,
2145 * alpha-tdep.c (print_insn): Remove.
2146 (_initialize_alpha_tdep): Set tm_print_insn.
2147 * arm-tdep.c (arm_print_insn): New function, was print_insn
2149 * convex-tdep.c (convex_print_insn): New function, was print_insn
2151 * h8300-tdep.c (print_insn): Remove.
2152 (gdb_print_insn_h8300): New function.
2153 (_initialize_h8300_tdep): New function.
2154 * h8500-tdep.c (print_insn): Remove.
2155 (_initialize_h8500_tdep): New function.
2156 * hppa-tdep.c (_initialize_hppa_tdep): Set tm_print_insn.
2157 * i386-tdep.c (_initialize_i386_tdep): New function.
2158 * i960-tdep.c (mem, next_insn): New functions, were in
2160 (_initialize_i960_tdep): Set tm_print_insn.
2161 * m68k-tdep.c (_initialize_m68k_tdep): New function.
2162 * m88k-tdep.c (_initialize_m88k_tdep): New function.
2163 * mips-tdep.c (gdb_print_insn_mips): New function.
2164 (_initialize_mips_tdep): Set tm_print_insn.
2165 * pyr-tdep.c (pyr_print_insn): New function, was print_insn
2167 * rs6000-tdep.c (_initialize_rs6000_tdep): New function.
2168 * sh-tdep.c (print_insn): Remove.
2169 (gdb_print_insn_sh): New function.
2170 (_initialize_sh_tdep): Set tm_print_insn.
2171 * sparc-tdep.c (_initialize_sparc_tdep): New function.
2172 * w65-tdep.c (print_insn): Remove.
2173 (_initialize_w65_tdep): New function.
2174 * z8k-tdep.c (print_insn): Remove.
2175 (gdb_print_insn_z8k): New function.
2176 (_initialize_z8k_tdep): Set tm_print_insn.
2177 * printcmd.c (print_insn): New function, generic disassembler.
2178 * config/*/*.mt (TDEPFILES): Remove refs to *-pinsn.o.
2182 * Makefile.in: add new files remote-vx29k.c, config/a29k/tm-vx29k.h,
2183 and config/a29k/vx29k.mt.
2184 * configure.in: add new configuration a29k-*-vxworks.
2185 * remote-vx29k.c: new file merged from WRS.
2186 * remote-vx.c: merge changes from WRS.
2187 * config/a29k/vx29k.mt: new file for new configuration.
2188 * config/a29k/tm-vx29k.h: new header file for newconfiguration.
2190 Sun Jan 15 14:36:19 1995 Steve Chamberlain <sac@splat>
2192 * breakpoint.h (disable_breakpoint, enable_breakpoint):
2194 (enum bpdisp): Change name of 'delete' member to 'del'.
2195 (struct bpstat): Changed name to 'bpstats'.
2196 * breakpoint.c (disable_breakpoint, enable_breakpoint,
2197 breakpoint_chain): Made globally visible.
2198 (bpstat_stop_status): Use new name for bpstat.
2199 (break_command_1, watch_command_1, catch_command_1,
2200 breakpoint_auto_delete, denable_delete_breakpoint): Use 'del'
2201 instead of 'delete'.
2202 (set_breakpoint_sal): New function.
2203 * defs.h (registers_changed_hook): New declaration.
2204 * infcmd.c (run_stack_dummy): 'delete' is now 'del'.
2205 * inflow.c (new_tty): Treat WIN32 in same way as __GO32__
2206 * main.c (main): Don't scan options when in WIN32 and exit
2207 without entering main loop.
2208 * m2-exp.y (m2_elx): Member 'class' is now 'aclass'.
2209 * symtab.h (struct symbol, struct partial_symbol): Changed name of
2210 member 'class' to 'aclass'.
2211 (SYMBOL_CLASS, PSYMBOL_CLASS): Reflect change.
2212 * top.c (registers_changed_hook): New definition.
2213 * utils.c (quit, notice_quit, initialize_utils): Treate WIN32
2214 in same way as __GO32__.
2215 * value.h (c_typedef_print): Rename 'new' argument.
2217 * w65-tdep.c, config/tm-w65.h, config/w65.mt: New files.
2218 * configure.in: Suppprt for w65,
2223 * infcmd.c (signal_command): For "signal 0", pass (CORE_ADDR)-1,
2224 not stop_pc, to proceed.
2226 * eval.c (evaluate_subexp): Clear expect_type except for C++ and CHILL.
2230 * infcmd.c (signal_command): Accept "signal 0"; the change to not
2231 accept it was accidental. "handle 0" and "info signal 0" remain
2236 * Makefile.in (all): Don't make libgdb-files.
2237 (libgdb): New action, makes libgdb-files.
2241 * stabsread.c (read_enum_type): When pending enum symbols are
2242 put into the enum type, they must be inserted in "backwards
2243 order, in case we've overflowed a struct pending buffer.
2245 start-sanitize-gdbtk
2248 * gdbtk.c, gdbtk.tcl: Update/add copyright.
2249 * gdbtk.tcl (build_framework): Several fixes for filespec widget,
2250 including dismiss button, and better error handling.
2251 * (create_command_win): Bind button 2 to retrieve selection.
2256 * README: Add note about SPARCworks cc release 3.0 and higher.
2258 Add procfs support for Alpha OSF/1-2.x.
2259 * config/alpha/nm-osf.h: Renamed from nm-alpha.h, generic
2260 OSF/1 native support.
2261 * config/alpha/alpha-osf1.mh (NAT_FILE): Changed accordingly.
2262 (MUNCH_DEFINE): Removed.
2263 * config/alpha/alpha-osf2.mh, config/alpha/nm-osf2.h: New files
2265 * configure.in (alpha-dec-osf*): Use alpha-osf2.mh for OSF/1
2266 release 2.x and higher, else alpha-osf1.mh, as the procfs support
2267 in release 1.x is incomplete.
2268 * Makefile.in (ALLCONFIG): Add config/alpha/alpha-osf2.mh.
2269 * alpha-nat.c (supply_gregset, fill_gregset, supply_fpgregset,
2270 fill_fpgregset): New routines for procfs support.
2271 * inftarg.c (_initialize_inftarg): Don't add ptrace support
2272 if we have an optional procfs and /proc is accessible.
2273 * procfs.c: Include sys/fault.h and sys/syscall.h before
2274 including sys/procfs.h.
2275 (unconditionally_kill_inferior): If PROCFS_NEED_PIOCSSIG_FOR_KILL
2276 is defined, additionally perform a PIOCSSIG to really terminate
2278 (create_procinfo): Always return a result.
2279 (create_procinfo, do_attach): Don't trace T_IFAULT faults if
2280 PROCFS_DONT_TRACE_IFAULT is defined.
2281 (procfs_init_inferior): Use START_INFERIOR_TRAPS_EXPECTED as
2282 argument to startup_inferior if it is defined.
2283 (proc_set_exec_trap): If PIOCSSPCACT is defined, use it instead
2284 of tracing exits from exec system calls. Needed for the user level
2285 loader under Alpha OSF/1.
2286 (do_detach): Clear any pending signal if we want to detach from
2287 a process without a signal.
2288 (set_proc_siginfo): If PROCFS_DONT_PIOCSSIG_CURSIG is defined,
2289 don't issue a PIOCSSIG if pr_cursig already contains the signal we
2291 (info_proc_signals): If PROCFS_SIGPEND_OFFSET is defined, the
2292 pending signals are numbered from 1 instead of 0.
2293 (info_proc_mappings): Increase size of output format for addresses
2294 if BFD_HOST_64_BIT is defined.
2295 (procfs_stop): Renamed from child_stop.
2296 (_initialize_procfs): Don't add procfs support if we have an
2297 optional procfs and /proc is not accessible.
2299 start-sanitize-gdbtk
2302 * gdbtk.tcl: Add button to control mixed source disassembly.
2303 Use text widgets in expr window. The give me more control over
2305 Add auto-updating of exprs in expression window.
2306 Handle expressions out of scope a bit better.
2307 Make selected window pop up to the top when invoked via the
2309 Make copyright message have raised relief.
2311 * gdbtk.c (gdbtk_init): Improve handling for errors in gdbtk.tcl
2317 * array-rom.c: Add support for most commands.
2319 * monitor.c: Add GDB remote protocol for the hybrid environment on
2324 * command.c (show_user_1): Use print_command_line to show a user
2325 defined command (including control structures).
2327 * top.c (init_main): Change documentation for user defined
2328 commands to indicate they may accept up to ten arguments.
2332 * mips-tdep.c (mips_skip_prologue): Accept or as well as addu for
2333 `move $s8, $sp' instruction.
2337 * target.c, target.h (target_signal_from_command): New function.
2338 * infrun.c (handle_command, signals_info), infcmd.c
2339 (signal_command): Use it.
2340 * infrun.c, infcmd.c: Update docstrings for these commands.
2342 * target.h (enum target_signal), target.c (signals), target.c
2343 (target_signal_from_host, target_signal_to_host): Add
2344 TARGET_SIGNAL_REALTIME_* and TARGET_SIGNAL_PRIO for lynx.
2345 * config/tm-lynx.h: Define signal numbers for realtime events.
2349 * dbxread.c (process_one_symbol): Handle N_FUN symbols
2350 for Sun acc 3.0 under SunOS4.
2352 Changes to improve handling of runtime common symbols
2354 * minsyms.c (get_symbol_leading_char): New routine to determine
2355 the leading symbol character for an objfile.
2356 (prim_record_minimal_symbol_and_info, install_minimal_symbols):
2358 * objfiles.h (rt_common_objfile): New global, points to objfile
2359 containing the runtime common minimal symbols.
2360 * objfiles.c (free_objfile): Mark rt_common_objfile as
2361 unallocated before freeing it.
2362 * solib.c (allocate_rt_common_objfile): New routine to allocate
2363 an objfile for the runtime common minimal symbols.
2364 (solib_add_common_symbols): Allocate an objfile for the runtime
2365 common symbols if necessary and put common symbols into it.
2366 Clean up code and comments.
2367 (solib_add, special_symbol_handling): Cleanup comments regarding
2368 runtime common symbols.
2369 * stabsread.c (scan_file_globals_1): New routine, contains
2370 old scan_file_globals code. Checks if there are any unresolved
2371 global symbols before starting the expensive minimal symbol table
2373 (scan_file_globals): Now calls scan_file_globals_1 for the passed
2374 objfile and eventually for the runtime common objfile. Complains
2375 about any unresolved global symbols and removes them from the
2376 global symbol chain to avoid dangling pointers into the symbol
2377 table if the symbol table is reread.
2381 * Makefile.in (install_only uninstall): Indent for clarity.
2383 * core.c (dis_asm_read_memory): Add call to
2384 dis_asm_read_memory_hook to provide alternate way for disassembler
2387 * defs.h: Protect from multiple inclusion. Add decl for
2388 dis_asm_read_memory_hook.
2390 * top.c: Make window startup be the default.
2391 * Add dis_asm_read_memory_hook.
2393 start-sanitize-gdbtk
2394 * gdbtk.c (finish_saving_output): Don't do anything if not saving
2396 * (breakpoint_notify): Don't send null filename to tcl.
2397 * (gdb_eval): New tcl command to eval an expression.
2398 * (gdb_disassemble): New tcl command to do disassembly. This
2399 allows tcl code to choose between exec file and target memeory,
2400 and can also do mixed source and assembly.
2401 * (gdbtk_init): Move reading of gdbtk.tcl to the end to make sure
2402 that more of the environment is set up. Also, create link between
2403 gdb and tcl vars disassemble{-_}from{-_}exec.
2405 * gdbtk.tcl: New expression window support.
2406 * Make assembly window be 80 columns wide.
2407 * Use new disassembly method. Add menu items to select
2408 disassembly from exec file or target.
2409 * Change View menubar item to Options.
2411 * Get rid of Stack, Breakpoints, Signals, and Variables Windows,
2412 since they don't exist yet.
2414 * Pop up a copyright window on startup.
2419 * stabsread.c (define_symbol): Handle `a' symbol type used for
2420 reference parameter passed in a register.
2422 start-sanitize-gdbtk
2425 * gdbtk.tcl (build_framework): Add standard commands menu, more
2426 windows to standard windows menu.
2427 (not_implemented_yet): Clarify message.
2432 * defs.h: move include tm.h up, so that the type LONGEST can
2433 also based on the target requirement to determine. In this case
2436 * remote-os9k.c (rombug_open): catch exception e in rombug.
2437 * remote-os9k.c (rombug_wait): print message before register display
2442 * top.c (locate_arg): Call strchr not index.
2446 * ch-exp.y (literal): Recognize NULL.
2447 (tuple): Parse simple unlabelled tuples.
2448 * eval.c (evaluate_subexp case OP_ARRAY): Use expect_type to
2449 evaluate brace-initializer-expressions depending on context.
2450 (evaluate_subexp case UNOP_CAST): Pass the target type as
2451 expected type when evaluating the expression.
2453 * ch-typeprint.c (chill_type_print_base): Get names of PTR and
2454 BOOL from TYPE_NAME.
2455 * ch-valprint.c (chill_print_type_scalar): New function, to handle
2456 TYPE_CODE_RANGE better than print_type_scalar does.
2457 (chill_val_print_array_elements): Use above new function.
2461 * remote-udi.c (udi_load): Tell symbol_file_add that the
2462 program being loaded is the main program.
2464 For older changes see ChangeLog-94
2470 version-control: never