3 * printcmd.c (print_address_numeric): Pass use_local to
4 print_longest, rather than always passing 1.
6 * nlm/Makefile.in: Remove comments discussing munch.
10 * gdbtk.c (gdbtk_init): If SIOCSPGRP is not available, but
11 F_SETOWN is, use that.
15 Merge in support for Mac MPW as a host.
16 (Old change descriptions retained for informational value.)
18 * mpw-config.in (i386-unknown-go32): Change from aout.
19 (sh-hitachi-hms): New target.
20 * mpw-make.in (BISON): Use byacc instead of bison.
21 (VERSION): Bump to 4.14.1.
22 (*-pinsn.*): Remove mentions everywhere.
23 (all): Don't build MacGDB.
24 (gdb, SiowGDB): Depend on Version.r.
25 (Version.r): Generate from version info.
26 * main.c (main): Pass program name to START_PROGRESS, END_PROGRESS.
27 (main) [MPW]: Remove debugging hook.
28 * mac-xdep.c (debug_openp): New flag.
29 (mac_init): Set flag if env variable defined.
30 * ser-mac.c (mac_open): Clarify error message.
31 (mac_readchar): Call PROGRESS while looping.
32 (mac_write): Call sleep instead of sec_sleep.
34 * source.c (openp) [MPW]: Only print debugging info if debugging.
35 * utils.c (query) [MPW]: Clarify that behavior is a bug.
37 * mpw-make.in (init.c): Use open-brace instead of mpw-open-brace.
39 * main.c, source.c: Remove hacks that replace long strings
40 with shorter ones, now solved portably.
42 * config/m68k/xm-mpw.h (spin.h): Include.
43 (ALMOST_STDC): Only define if MPW_C.
44 * config/m68k/tm-mac.h: New file, Mac target definitions.
46 * mpw-config.in (m68k-apple-macos, ppc-apple-macos,
47 i386-unknown-aout): New targets.
48 (mk.tmp): Add *DEPFILES definitions.
49 * mpw-make.in: Remove gC rules, clean up definitions for other
50 include files, bump version, fix bogus \ that should be \Option-d.
51 (init.c): Build correctly.
53 * mpw-make.in (HFILES_NO_SRCDIR): Add somsolib.h
54 (ALLDEPFILES): Add somsolib.c.
55 (somsolib.o): Add some dependencies.
57 * mpw-config.in: Use nm-empty.h if host is not target.
58 (xdepfiles): Add mac-xdep.c.o.
60 * mpw-make.in: Add Fortran files.
63 * mpw-config.in (MacSerial.h): Duplicate from standard Serial.h.
64 * ser-mac.c (MacSerial.h): Include instead of Serial.h.
66 * mpw-make.in: Use {s} instead of {srcdir} everywhere.
67 (bindir, libdir): Remove extra colon.
68 (source.c): Compile with C instead of gC.
69 (c-exp.tab.c, ch-exp.tab.c, m2-exp.tab.c): Add {o}.
70 (install-only): Don't install MacGDB.
71 * source.c (openp) [MPW]: Add a debugging display.
72 (open_source_file) [MPW]: Use MPW basename finders.
73 [MPW_C]: Briefer versions of help for line and list commands.
75 * mpw-make.in: Change references from paread.c to somread.c
77 * mpw-make.in (VERSION): Update to 4.12.3.
78 (SiowGDB): New target, GDB using SIOW library.
79 (init-new.c): New target, attempt to generate init.c from sources.
80 (main.c.o, top.c.o): Put each in its own segment.
81 * main.c (main) [MPW]: Always call mac_init.
82 * utils.c (query) [MPW]: Always return "yes" if in MacGDB, output
83 an extra newline otherwise.
84 * mac-xdep.c: More comments in various places, remove junk.
85 (mac_init): Add tests for MPW and SIOW.
86 (use_wne, has_color_qd): Renamed.
87 (use_color_qd): New variable.
88 (grow_window): Only do console resizing to console window,
89 call resize_console_window.
90 (zoom_window): Call resize_console_window.
91 (resize_console_window, scroll_text): New functions.
92 (adjust_console_sizes): Always align viewrect to even multiples of
94 (adjust_console_text): Always scroll by whole lines.
95 (hacked_vfprintf, hacked_puts, hacked_fputc, hacked_putc): Force a
96 recalculation of scroll positions if a newline was output.
97 (hacked_fflush): Similarly, for flushing.
98 (hacked_fgetc): New function, aborts if called in MacGDB.
99 * ser-mac.c (mac_readchar): Rename starttime to start_time,
100 remove debugging printf.
101 (mac_write): Sleep on first 4 writes.
102 (sec_sleep): New function, works like standard sleep.
103 * macgdb.r: Adjust positioning and contents of About box.
104 Set minimum size to 2000K, preferred size to 5000K.
105 * config/m68k/xm-mpw.h (fgetc): Define as a macro.
107 * mpw-make.in (.c.o, .gc.o): Prefix segment names with gdb_.
108 (top.c.o, annotate.c.o): Add build rules.
109 * macgdb.r (SysTypes.r): Include.
110 ('vers'): New resource, version info.
111 (mFile, mEdit, mDebug): Enable all menu items.
112 (mDebug): Add key equivalents for continue, step, next.
113 (wConsole): Add zoom and close boxes to window.
114 * mac-xdep.c (new_console_window): New function, code taken from
116 (mac_command_loop): Use GetCaretTime for wait interval, call
117 do_idle on null events.
118 (do_idle): New function.
119 (zoom_window): Implement zooming.
120 (v_scroll_proc): New function, handles vertical scrolling.
121 (activate_window): Do activation of console window.
122 (do_menu_command): Implement items of file, edit, and debug menus.
123 (do_keyboard_command): Fix command extraction.
124 (adjust_console_sizes, adjust_console_text): New functions.
125 (hacked_fprintf, hacked_vfprintf, hacked_fputs, hacked_fputc,
126 hacked_putc): Don't call draw_console.
127 * ser-mac.c (mac_open): Add an error message for invalid ports.
128 (first_mac_write): New global.
129 (mac_write): Use first_mac_write to sleep on first several writes.
131 * mpw-make.in (INCLUDE_CFLAGS): Add readline source dir.
132 (READLINE_CFLAGS, READLINE_SRC, READLINE_DIR): Uncomment.
133 (TSOBS): Don't compile inflow.c.
134 (all, install): Add MacGDB.
135 * main.c (main): Do Mac-specific init and command loop if a
136 standalone app, skip full option help message if compiling
138 (gdb_readline): If MPW, add a newline after the (gdb) prompt.
139 * utils.c (_initialize_utils): If MPW, don't try to use termcap to
140 compute the window size.
141 * config/m68k/xm-mpw.h (printf, fprintf, fputs, fputc, putc,
142 fflush): Define as macros that expand into hacked_... versions.
143 (StandAlone, mac_app): Declare.
144 * macgdb.r (SIZE): Set the default partition to 4000K.
145 * mac-xdep.c (readline.h, history.h): Include.
146 (terminal.h): Don't include.
148 (gdb_has_a_terminal): Define Mac-specific version.
149 (do_keyboard_command): Simplify search for command string.
150 (readline): Define as gdb_readline.
151 Add other history/readline stubs to make main gdb link.
152 (hacked_fprintf, hacked_printf, hacked_vfprintf, hacked_fputs,
153 hacked_fputc, hacked_fflush): New functions, intercept output to
154 stdout and stderr, send to console window.
156 * mpw-make.in (MacGDB): New target, standalone Mac-hosted gdb.
158 (main.c.o): Compile with gC instead of C.
159 * mac-defs.h: New file, menu etc definitions shared between
161 * macgdb.r: New file, Rez (resource compiler) resource
163 * mac-xdep.c: New file, Mac host interface code.
164 * config/m68k/xm-mpw.h (PATHNAME_SEPARATOR): Rename to
166 (PATHNAME_SEPARATOR_STRING): Remove.
167 (SIGQUIT, SIGHUP): Define.
168 (fileno, R_OK): Define.
170 * mpw-config.in: New file, MPW configuration fragment.
171 * mpw-make.in: New file, MPW makefile fragment.
172 * config/m68k/xm-mpw.h: New file, MPW host definitions.
173 * ser-mac.c: New file, Mac serial interface.
177 * valprint.c (print_longest): Fix a syntax error in #ifdef
178 PRINTF_HAS_LONG_LONG.
180 * config/mips/xm-irix5.h: turn on CC_HAS_LONG_LONG and
181 PRINTF_HAS_LONG_LONG.
182 * config/mips/tm-irix5.h: turn on FORCE_LONG_LONG.
186 * mdebugread.c (parse_symbol): Use new variable
187 nodebug_var_symbol_type as type of variables which don't have any
188 ecoff debug info associated with them.
189 (parse_symbol, parse_procedure): Use heuristics to determine if
190 functions were compiled without debugging info and change their
191 type to nodebug_function_symbol_type.
192 (_initialize_mdebugread): Initialize nodebug_*_symbol_type.
194 * source.c (line_info): Clear sal.pc for `info line' without
199 * monitor.c: make_xmodem_packet and print_xmodem_packet go away.
200 send_xmodem_packet shows up to do the obvious. Lots of fixes to
201 xmodem downloads including resetting of block number at start of
202 new transfers, fix for buffer overrun problem, addition of CRC
204 * (monitor_open): loadtype_str and loadproto_str now default to
205 first entry in monitor_ops->loadtypes.
206 * (monitor_wait): Lengthen register dump buf, because of verbose
208 * (monitor_fetch_register): Report unimplemented registers as 0.
209 * (monitor_read_memory): Only do 16 byte aligned transfers
210 because of formatting weirdness with the Winbond monitor. Also,
211 ignore non-hex, non-whitespace formatting between bytes (same
213 * (monitor_load): Clean up logic.
214 * (monitor_load_srec): Re-do xmodem support. Move lots of it
215 into send_xmodem_packet.
216 * (getacknak): Get rid of polls and timeouts. Handle CRC
217 requests from receiver.
218 * (monitor_make_srec): Efficiency improvements. Don't call
219 sprintf to output two digit hex numbers.
220 * (crcinit, docrc): New, CRC-16 support routines.
221 * (send_xmodem_packet): New routine to generate either CRC-16 or
222 checksummed xmodem packets.
224 * remote-est.c (est_loadtypes), rom68k-rom.c (rom68k_loadtypes):
225 Reduce tables down to only the load types supported by each
228 * w89k-rom.c (w89k_supply_register): Parses output of Winbond
230 * (w89k_loadtypes, w89k_loadprotos): Reduce to just srec/xmodem.
231 * (w89k_cmds): Add clear all breakpoints, memory fill, and dump
234 * config/pa/tm-hppa.h: Define lots register offsets needed by
239 * Makefile.in (X11_INCLUDES): Define as empty.
240 (X11_CFLAGS): Define as including $(X11_INCLUDES).
241 (X11_LIB_SWITCHES): Define as empty.
242 (X11_LIBS): Define as -lX11.
245 * configure.in (enable_gdbtk): If gdbtk, support the --x-includes
246 and --x-libraries switches, setting the X11_INCLUDES and
247 X11_LIB_SWITCHES respectively. Instead of using a hardcoded -lX11
248 in ENABLE_CLIBS, use the X11_LIB_SWITCHES and X11_LIBS variables.
250 * gdbtk.c (gdbtk_init): If SIOCSPGRP is not available, don't use
251 it. This means that the stop button doesn't work, but is better
257 * mips-tdep.c (mips_print_register): Remove unused variable
258 our_type and call to init_type. Fixes memory leak. Reindent function.
260 * mips-tdep.c (mips_print_register), findvar.c
261 (write_register_bytes): Make buffer char[] instead of unsigned
266 * top.c, utils.c, main.c, defs.h: Replace error_pre_print with two
267 variables: error_pre_print (for RETURN_ERROR) and quit_pre_print
268 (for RETURN_QUIT). Fixes a bug whereby typing ^C (e.g. in "maint
269 print sym") could output extraneous stuff.
270 * objfiles.c: Don't declare error_pre_print; defs.h does it.
274 * monitor.h: Add MO_GETMEM_NEEDS_RANGE flag.
275 * monitor.c (monitor_read_memory): Use previously mentioned flag
276 to send proper format memory examine commands to the w89k monitor.
277 Also, try to handle bizarre format of memory dump...
279 * op50-rom.c w89k-rom.c: Update to new monitor.[ch] conventions.
283 * dbxread.c (process_one_symbol) [SOFUN_ADDRESS_MAYBE_MISSING]:
284 Handle relocated symbol address.
285 * partial-stab.h, case N_SO, SOFUN_ADDRESS_MAYBE_MISSING:
286 Do not relocate a zero address.
290 * config/a29k/tm-a29k.h: Nuke obsolete define CONTROL_END_ADDR; it
293 * stabsread.c (read_range_type): Remove FIXME comment about
294 type-id (I presume this meant a number followed by = followed by a
295 type) versus type number; Per fixed it.
299 * configure.in: sparc-*-sunos5* is same as sparc-*-solaris2*.
303 * remote-e7000.c (why_stop): Add new kinds of strings to expect
305 (e7000_wait): Add interpretations for more stop reasons,
306 including warnings for write protect and cycle address errors.
311 * Makefile.in (gdbtk.o): Use X11_CFLAGS to provide alternate
312 locations (per-host) for X11 include files.
313 * config/pa/hppahpux.mh (XM_CLIBS): Add -L/usr/lib/X11R5 to force
314 the use of R5 libs. (X11_CFLAGS): Add this to indicate the locs
315 of the R5 include files.
317 * monitor.c monitor.h remote-est.c rom68k-rom.c: Add start of
318 support for interrupting target.
319 * monitor.c (monitor_open): Send stop command before doing
321 * (monitor_load_srec): Fix record size calculation to prevent end
322 of segment from getting trashed.
323 * rom68k-rom.c: Update to latest version of struct monitor_ops.
324 * config/sparc/tm-sparc.h (FIX_CALL_DUMMY): Fix byte-order
325 problems. Makes DOS hosted function calling work.
326 * sparclite/crt0.s: Define _start to make COFF happy.
330 * defs.h (atof): Don't provide an external declaration if atof is
335 * rs6000-tdep.c (skip_prologue): Skip saving of LR and CR in
336 the stack frame, fix typos in `st rx,NUM(r1)' and `stu r1,NUM(r1)'
341 * gdbtypes.c (create_range_type): If indextype has TYPE_FLAG_STUB
342 set, set TYPE_FLAG_TARGET_STUB.
343 (check_stub_type): Recalculate TYPE_LENGTH for range type.
344 * stabsread.c (read_range_type): If index type number is followed
345 by '=', back up, call read_type. and assume we have a true range.
346 * gdbtypes.h (TYPE_FLAG_TARGET_STUB): Update comment.
350 * alpha-nat.c, irix4-nat.c, irix5-nat.c, mipsv4-nat.c,
351 sparc-tdep.c (supply_gregset, supply_fpregset): Fill inaccessible
352 registers with zero to handle recent read_register_bytes change.
353 * irix4-nat.c, irix5-nat.c, mipsv4-nat.c (supply_gregset,
354 fill_gregset): Fix handling of CAUSE_REGNUM.
355 * mips-nat.c (store_inferior_registers): Handle unwritable
356 registers when storing a single register.
357 * config/mips/tm-irix3.h (CAUSE_REGNUM, BADVADDR_REGNUM):
360 * mdebugread.c (parse_symbol, psymtab_to_symtab_1): Clear
361 allocated mips_extra_func_info, if the debug info is corrupt,
362 the PDR to fill it in might be missing.
366 * vx-share/regPacket.h: a new file interfacing with vxworks.
370 * breakpoint.c (bpstat_do_actions): Once we've executed the
371 commands, set bs->commands to NULL.
375 * buildsym.c (patch_subfile_name): Update last_source_file
376 with the real source file name.
377 * dbxread.c (end_psymtab): Handle static functions in the
378 SOFUN_ADDRESS_MAYBE_MISSING case by passing pst->filename
379 to lookup_minimal_symbol.
380 (process_one_symbol): Ignore extra outermost context from
382 * stabsread.c (define_symbol): Do not complain for SunPRO
383 static variable encoding if STATIC_TRANSFORM_NAME is defined.
384 * sparc-tdep.c, config/sparc/tm-sun4sol2.h
385 (sunpro_static_transform_name): Renamed from
386 solaris_static_transform_name.
387 * config/sparc/tm-sun4os4.h (STATIC_TRANSFORM_NAME):
388 Define to sunpro_static_transform_name for acc 3.0 compiled
390 * procfs.c, config/alpha/nm-osf2.h (PROCFS_DONT_TRACE_FAULTS):
391 Renamed from PROCFS_DONT_TRACE_IFAULT, don't trace any faults
393 * procfs.c (info_proc_siginfo): Cast sip->si_addr to
394 `unsigned long' and use `lx' format for printing it.
398 * configure.in: Move test for m68*-est-* before m68*-*-coff*.
399 * findvar.c: Move default def of CANNOT_STORE_REGISTER closer to
400 the beginning of the code.
401 * (write_register_gen): New routine. Analogous to
403 * (write_register_bytes): Another rewrite! Make it smarter about
404 not updating regs with the same value.
405 * monitor.c (printf_monitor readchar): Use stderr instead of
406 stdout to output debug info. Also cleanup readchar a little.
407 * (expect): Make sure that excessive responses are null
409 * (monitor_open): Check for magic number in monitor_ops struct.
410 Allow multiple commands as init strings. Also, clear all
412 * (monitor_resume monitor_wait): Send a command to dump all the
413 regs for those targets which don't do so when waking up after a
415 * (monitor_wait): Handle excessive response output better.
416 * (monitor_write_memory): Use block fill, word, and long word
417 commands (if they exist) to write memory more efficiently.
418 * General cleanups to use flag bits instead of individual flag
419 words in monitor_ops struct.
420 * (monitor_command): Return output from command.
421 * (monitor_load_srec): Allocate buffer only once. Use alloca.
422 Wait for load response string instead of using a timeout to start
423 sending S-records. Fix bug where value of srec_frame shrinks. If
424 hashmark is set, print `-' for retransmissions. General cleanups.
425 * (monitor_make_srec): Get rid of S-record default type kludge.
426 * monitor.h: Use seperate struct for memory and register
427 read/write commands. Memory commands can come in byte, word,
428 long, and longlong forms.
429 * (monitor_ops): Change lots of fields. Generalize some stuff.
430 Put all flags into flags word. Allow init to be a list of commands.
431 Add command for clearing all breakpoints, block fill, dumping all
433 * remote-est.c: Rewrite to use new monitor conventions.
434 * config/m68k/est.mt (TDEPFILES): Add monitor.o.
435 * config/m68k/tm-est.h: Set NUM_REGS to 18.
436 * testsuite/gdb.base/break.exp: Lots of cleanups. Use gdb_test
441 * somsolib.c (som_solib_add): Handle case where a shared library
442 referenced by a core file has sections without the SEC_ALLOC bit
443 set (eg stabs sections).
447 * breakpoint.c (bpstat_do_actions): For each element in the bpstat
448 chain, do all the commands regardless of whether they run the
453 * mem-break.c (LITTLE_BREAKPOINT, BIG_BREAKPOINT): Define as
454 BREAKPOINT if mono-endian.
455 (break_insn): Deleted.
456 (big_break_insn, little_break_insn): Define.
457 (memory_insert_breakpoint): Handle bi-endian cpus.
458 (BREAKPOINT_LEN): Define.
459 (memory_remove_breakpoint): Use it.
460 (memory_breakpoint_size): Likewise.
464 * sparc-stub.c: add nop after 'bg good_wim'.
465 * sparcl-stub.c: ditto.
469 * infrun.c (handle_command): Don't print TARGET_SIGNAL_0,
470 TARGET_SIGNAL_UNKNOWN, or TARGET_SIGNAL_DEFAULT.
474 * hppab-nat.c (store_inferior_registers): Sync with HPUX version.
478 * hppah-nat.c (store_inferior_registers): Move check for
479 CANNOT_STORE_REGISTER to a better place. Fixes ptrace I/O errors
480 found by test suite during function calls, which attempts to write
481 unwritable registers.
485 * mdebugread.c (parse_symbol): If finishing a function without
486 known parameter type info, set that from parameter symbols.
487 Remove commented-out add_param_to_type support.
491 * xcoffread.c (process_linenos): Make sure filename we pass to
492 start_subfile will cause deduce_language_from_filename to return
493 the correct thing. Reindent function to GNU standards.
497 * nlm/gdbserve.c (handle_exception): #if out call to StopBell,
498 as it is not available on NetWare 3 or PIN.
499 * nlm/ppc.c (StopBell): Removed.
503 * xcoffread.c (read_xcoff_symtab): When creating a dummy parameter
504 inferred from the traceback tags, give its type the name
505 "<non-float parameter>".
507 * stabsread.c (rs6000_builtin_type): Recognize types -31 to -34.
511 * findvar.c (read_register_bytes write_register_bytes): Make
512 these routines much smarter about updating registers from the
513 target, only doing so when absolutely necessary. This really
514 speeds up register modification on some remote targets.
516 * monitor.c: More cleanups. Get rid of monitor_load_ascii_srec.
517 BFD makes this unnecessary. Lots of debugging speedups.
518 * (expect): NULL terminate return string.
519 * (monitor_open monitor_supply_register parse_register_dump
520 monitor_wait monitor_fetch_register): Switch to using GNU regexp
521 library to parse multi-register displays.
522 * (monitor_read_memory): Read multiple bytes (up to 16) at once.
523 * (monitor_create_inferior): Call clear_proceed_status to make run
524 command notice first breakpoint.
525 * (monitor_load): Clean up. Reset inferior_pid, set pc to start
526 address and reset symbol table stuff to make loads put things into
528 * (monitor_load_srec): Lower sleep time to 1 second.
530 * monitor.h (struct monitor_ops): Add register_pattern and
531 supply_register to monitor_ops.
533 * rom68k-rom.c: Add new support for handling register dumps.
534 * config/m68k/tm-m68k.h: Define D0_REGNUM and A0_REGNUM for register
539 * utils.c, defs.h (putchar_unfiltered, fputc_unfiltered): Make
540 argument be an int, not a char. Using a prototype followed by an
541 old-style function definition in a case where an argument is
542 widened is a GCC-ism not supported by the native AIX compiler.
546 * nlmstub.def: Removed, this was moved to nlm/gdbserve.def
549 * configure.in (alpha-*-netware*): Removed configuration.
550 * config/alpha/{alpha-nw.mt, gdbserve.mt, tm-alphanw.h}: Removed.
551 * nlm/{README-ALPHA-NETWARE, aio.h, alpha-io.S, alpha-regdef.h,
552 alpha.c, alpha.h, altdebug.h}: Removed.
554 * nlm/gdbserve.c (main): Add support for processing BOARD=
555 argument, deprecate NODE=.
559 * c-exp.y (yylex): Make an empty character constant an error.
563 * valops.c (value_arg_coerce): Do possible value_coerce_array
564 before determining type argument to value_cast.
568 * remote-es.c: Replace ignore with 0.
572 * valops.c (value_repeat), eval.c (evaluate_subexp_standard):
573 If VALUE_REPEATED is already set, just error out.
575 * valops.c (value_cast, value_slice), parse.c (follow_types): Add
576 FIXME-type-allocation comments.
578 * gdbtypes.h (struct type): Fix comment about what units the
583 * ch-valprint.c (annotate.h): Include.
584 * eval.c (evaluate_subexp_standard): Remove unused variable.
585 (calc_f77_array_dims): Add parens to expression.
586 * f-exp.y (yylex): Add parens to expression, remove unused label.
587 * f-lang.h (calc_f77_array_dims): Declare.
588 * f-valprint.c (f_val_print): Remove unused variables.
592 * alpha-tdep.c (find_proc_desc): If pdr.framereg field is -1, don't
593 use the PDR, just examine prologues instead.
598 * config/tm-arc.h: Change arc register names.
603 Fix problems with infinite recursion when printing a class
604 that contains a static instance of the class.
605 * cp-valprint.c (dont_print_vb_obstack): Renamed from
606 dont_print_obstack, made static.
607 (dont_print_statmem_obstack): New obstack, controls printing
608 of static member classes.
609 (_initialize_cp_valprint): Initialize it.
610 (cp_print_static_field): New function, handles printing of
612 (cp_print_value_fields): New parameter dont_print_statmem to
613 handle recursive printing of static member classes, use
614 cp_print_static_field to handle printing of static members.
615 * c-valprint.c (cp_print_value_fields): Update prototype and
616 call to include additional dont_print_statmem parameter.
617 * c-valprint.c, f-valprint.c (dont_print_obstack): Remove unused
620 * alpha-tdep.c, findvar.c, infptrace.c: Include <string.h>.
622 * config/alpha/tm-alpha.h (FRAME_FIND_SAVED_REGS): Call
623 alpha_find_saved_regs if fi->saved_regs is still NULL.
625 * elfread.c (elf_symtab_read): Ensure that the filename field
626 of a minsym is nonempty. Ignore solib trampoline symbols from
627 the main symbol table, they might have a bogus value.
629 * procfs.c (set_proc_siginfo), config/alpha/alpha-osf2.mh:
630 Fix typos in comments.
634 * mdebugread.c (parse_symbol, psymtab_to_symtab_1): Initialize
635 pdr.framereg field of MIPS_EFI_SYMBOL_NAME symbol to -1. That way
636 we know whether the PDR ever got set.
637 * mips-tdep.c (find_proc_desc): If pdr.framereg field is -1, don't
638 use the PDR, just examine prologues instead.
642 * somsolib.c (som_solib_section_offsets): Get offset of text
648 * gdbtk.c (gdb_get_breakpoint_info): Return error if breakpoint
649 type is not bp_breakpoint.
652 * source.c (forward_search_command reverse_search_command): Set
653 convenience variable $_ to be the line # of the match.
654 * symtab.c (decode_line_1): Allow convenience variables to be
655 used in line specs (for breakpoints and such).
659 * Makefile.in (VERSION): Bump to 4.14.1.
660 * NEWS, README: Update for 4.14.
661 * i386v-nat.c (i386_insert_aligned_watchpoint): Fix declaration.
662 (i386_insert_nonaligned_watchpoint): Call aligned instead of
663 generic watchpoint insertion.
667 * valops.c (value_slice): Do COERCE_VARYING_ARRAY.
671 * monitor.c, array-rom.c, monitor.h, rom68k-rom.c: Move target_ops
673 * monitor.c (monitor_create_inferior): Allow run command to start
676 * monitor.c (monitor_load): Set PC to start address when done
679 * array-rom.c, monitor.h, rom68k-rom.c: Clean up target_ops.
680 Remove ref to monitor_create_inferior.
682 * monitor.c: More general cleanups. Add prototypes, remove
683 unused routines. Fix bug with wrong number of args to error().
685 * main.c (main): Don't start up GUI when running under gdb mode
688 * Makefile.in: Add rules for monitor.o and rom68k-rom.o to make
689 Sun make (with VPATH) work...
691 * monitor.c, monitor.h, rom68k-rom.c: Serious cleanup to make IDP
692 (rom68k) target work right.
693 * array-rom.c, op50-rom.c, w89k-rom.c: Partial updates to new
694 monitor.c interface. More work needs to be done here.
695 * config/m68k/tm-monitor.h: Change DECR_PC_AFTER_BREAK to 0 to
696 match the IDP monitor. Also, set NUM_REGS to 18 cuz there's no
697 floating-point for this card.
699 * serial.h, ser-go32.c, ser-go32-para.c, ser-mac.c, ser-tcp.c,
700 ser-unix.c: Add SERIAL_SETSTOPBITS to set the number of stopbits
701 (needed for IDP board?!?!?).
703 * defs.h, utils.c, remote-hms.c, remote-pa.c, remote.c: Fix defs
704 and usage of fputc_unfiltered and putchar_unfiltered. Eliminate
705 putc_unfiltered (it's superfluous).
707 * command.h, command.c, top.c: Add var_enum command type. It's
708 like var_string but allows only only one of the specified strings.
712 * valops.c (value_cast): Don't use backslash newline--pre-ANSI
713 compilers (such as SunOS4 /bin/cc) don't generally support it
714 except in some contexts.
718 * valops.c (value_cast): Check for cast to array type *before*
719 we coerce array to pointer (in case arg2 is already array).
721 * valops.c (call_function_by_hand): Set using_gcc to 2 if using
722 gcc2. Needed for REG_STRUCT_HAS_ADDR to work on sparc.
723 Also check REG_STRUCT_HAS_ADDR for union, array and string types.
725 * valops.c (call_function_by_hand): Re-arrange code for pushing
726 paramaters on the stack so we can do better STACK_ALIGN.
728 * valops.c (call_function_by_hand): Call error if the number
729 of arguments is fewer than parameter types in function type.
733 * sparc-tdep.c (sparc_extract_struct_value_address): Move
734 sparc64 support to here.
735 (sparc64_extract_struct_value_address): Deleted.
736 (dump_ccreg): Add a prototype so long long arg -> int.
737 * sparc/tm-sp64.h (USE_STRUCT_CONVENTION): Define.
738 (EXTRACT_STRUCT_VALUE_ADDRESS): Delete.
742 * hpread.c (hpread_record_lines): New argument "offset". All
743 callers changed. Use it to handle dynamic address relocation.
744 (hpread_build_psymtabs): Adjust texthigh as we read each function
745 debug symbol. Fix computation of texthigh.
746 (hpread_read_subrange_type): Work around macro bugs in HP's
748 (hpread_process_one_debug_symbol): Correctly map source lines.
750 * somread.c (check_strange_names): Filter names emitted by the HP
751 compiler when generating PIC code.
753 * valops.c (value_struct_elt_for_reference): Work around macro
754 bugs in HP's compilers.
755 * c-exp.y (block): Likewise.
759 * rs6000-tdep.c (push_dummy_frame): Fix order of arguments to
762 * utils.c [_AIX]: Include stddef.h instead of #defining size_t.
766 * rs6000-tdep.c (skip_prologue): Skip multiple stores of the saved
767 registers that GCC emits on the PowerPC by default in addition to
768 the store multiple instruction used on the Power series.
772 * sparc-tdep.c (decode_asi): New function.
773 (sparc_print_register_hook): Pretty print more v9 registers.
774 * sparc/tm-sp64.h (REGISTER_NAMES): Fix some typos.
778 * dwarfread.c (struct dieinfo): Use CORE_ADDR for at_{low,high}_pc.
779 (target_to_host): Change result type to CORE_ADDR.
783 * rs6000-tdep.c: Fix byte-swapping sins.
787 * rs6000-tdep.c (branch_dest): Minor code cleanup, don't share
788 code between branch unconditional and branch conditional cases.
792 Various changes for sparc64.
793 * sparc-tdep.c (NUM_SPARC_FPREGS): Define.
794 (SPARC_INTREG_SIZE): Define.
795 (*): Use SPARC_INTREG_SIZE instead of REGISTER_RAW_SIZE (intreg)
797 (enum branch_type): New value `done_retry'.
798 (isbranch): Renamed from isannulled. All callers changed.
799 Support new sparc64 branch insns.
800 (single_step): Handle done_retry.
801 (sparc_extract_struct_value_address): Don't assume 4 byte regs.
802 (get_saved_register): Likewise.
803 (sparc_push_dummy_frame): Likewise.
804 (sparc_frame_find_saved_regs): Likewise.
805 (sparc_pop_frame): Likewise. Don't refer to FPS_REGNUM, CPS_REGNUM,
806 or PS_REGNUM if not sparc64. sparc64 has 64 fp regs.
807 (sparc64_extract_struct_value_address): New function.
808 (dump_ccreg, sparc_print_register_hook): Likewise.
809 * sp64-tdep.c: Deleted.
810 * sparc/tm-sp64.h (GDB_TARGET_IS_SPARC64): Define.
811 (NUM_REGS): Reduce by 2, cle/tle are in the pstate reg.
812 (CC_HAS_LONG_LONG): Define.
813 (REGISTER_NAMES): Delete cle/tle and reorganize.
814 (PS_REGNUM, FPS_REGNUM, CPS_REGNUM): Delete, they're ifdef'd out of
816 (REGISTER_BYTES): Update.
817 (REGISTER_CONVERT_TO_VIRTUAL, REGISTER_CONVERT_TO_RAW): Delete.
818 (EXTRACT_RETURN_VALUE): Delete. Use definition in tm-sparc.h.
819 (NO_SINGLE_STEP): Likewise.
820 * sparc/tm-sparc.h (EXTRACT_VALUE_RETURN): Don't assume 4 byte regs.
821 * sparc/sp64.mt: Move simulator support ...
822 * sparc/sp64sim.mt: ... to here.
826 * remote-vx960.c: new file for target specific register packaging.
827 * remote-vx68.c: ditto.
828 * config/i960/vxworks960.mt: add remote-vx960.o.
829 * config/m68k/vxworks68.mt: add remote-vx68.o.
833 * remote.c (remote_wait): Make calls to strtol be type correct by
834 passing the address of a char * pointer instead of an unsigned
837 * rs6000-tdep.c (push_dummy_frame): Cast sp to char * when calling
838 write_memory to make things type correct.
842 * ch-exp.y, c-exp.y, f-exp.y, m2-exp.y (yy defines): Support the
843 standard Linux yacc by adding more names to be redefined with a
848 * hppa-tdep.c (pa_print_registers), monitor.c: Use
849 extract_unsigned_integer and friends, not SWAP_TARGET_AND_HOST.
850 * defs.h, findvar.c: Move SWAP_TARGET_AND_HOST back to findvar.c.
851 Rename it to SWAP_FLOATING to make it clear it is no longer for
856 * defs.h (SWAP_TARGET_AND_HOST): check endianess at runtime not
860 * arc-tdep.c (_initialize_arc_tdep): set tm_print_insn according to
862 * remote-arc.c (arc_wait): when a processor stops, stop other two
864 * remote-arc.c (switch_command): switch tm_print_insn.
867 * vx-share/ptrace.h: merge in WRS new ptrace requests.
869 * defs.h: fix a syntax error.
871 * a29k-tdep.c (get_longjmp_target): add this function, from WRS.
872 * remote-vx.c: move read_register and write_register out to
873 target specific files.
874 * remote-vx29k.c (get_fp_contnets): add this function, from WRS.
876 * defs.h: define SWAP_TARGET_AND_HOST macro.
877 * findvar.c, monitor.c, hppa-tdep.c: remove definition of
878 SWAP_TARGET_AND_HOST.
882 * alpha-tdep.c (find_proc_desc): Only attempt to set
883 PROC_LOCALOFF (found_heuristic) if found_heuristic is non-NULL.
887 * monitor.c: General gcc -Wall lint cleanup and reformat.
888 (monitor_command): If no args, send an empty command.
892 * monitor.c (monitor_load_ascii_srec): Add a one second sleep
893 after send LOAD_CMD to prevent loss of first S-record.
897 * valops.c (call_function_by_hand): Set using_gcc to 2 if gcc-2.
898 Call error if too few arguments.
899 If REG_STRUCT_HAS_ADDR (structs passed by invisible reference),
900 copy and convert to reference *before* we calculate alignment.
901 Also, make sure structs allocated for return values and invisible
902 reference don't violate STACK_ALIGN.
906 * ch-exp.y (expression_conversion): Recognize 'ARRAY () TYPE (EXPR)'
907 (same as C's '(TYPE[])EXPR')
911 * top.c (print_gdb_version): Update the year.
915 * Makefile.in (CC_FOR_TARGET, CXX_FOR_TARGET): Look for newlib in
920 * procfs.c (unconditionally_kill_inferior): Don't issue a PIOCKILL
921 in addition to a PIOCSSIG to kill the inferior.
925 * parse.c (follow_types): Given (TYPE[]) (i.e. with no length),
926 create a 0-length array type, and set BOUND_CANNOT_BE_DETERMINED.
927 * valops.c (value_cast): If a cast like (TYPE[])VALUE (i.e. array
928 of unknown length) use sizeof(VALUE)/sizeof(TYPE) as the length.
929 * c-typeprint.c (c_type_print_varspec_suffix): If array length
930 is 0, print it, but not if upper_bound is BOUND_CANNOT_BE_DETERMINED.
934 * dcache.c (insque, remque): Rewrite Linux support.
938 * config/powerpc/tm-ppc-eabi.h (TEXT_SEGMENT_BASE): Define as 1.
940 * dcache.c (insque, remque): If compiling in standard C on Linux,
941 protect insque and remque with macros to cast the pointer
942 arguments to the proper type.
946 * annotate.c, breakpoint.c, defs.h, top.c: Replace
947 enable/disable_breakpoint_hook with modify_breakpoint_hook.
950 * gdbtk.c: General cleanups, get rid of unused variables. Redo
951 handling of stdout/stderr to just return output as the result of
952 the tcl command that caused the output. Cleanup -Wall stuff.
953 * (breakpoint_notify): Now returns just action and breakpoint
955 * (gdb_get_breakpoint_list): New routine. Does the obvious.
956 * (gdb_get_breakpoint_info): Mostly derived from the old
957 breakpoint_notify, but returns lots more info.
958 * (dsprintf_append_element): Helper routine, works like printf,
959 but appends a tcl element onto the specified DString. Good for
960 building up lists as return values.
961 * (gdbtk_enable/disable_breakpoint): Go away. Replaced with
962 gdbtk_modify_breakpoint.
963 * (*many routines*): Use new result protocol.
964 * (call_wrapper): Make sure that recursive calls don't trash results.
965 * gdbtk.tcl: New windows, autocmd, and breakpoints.
966 * (gdbtk_tcl_fputs): Don't use $current_output_win redirection
967 anymore. It's not needed (in fact, this routine may not be needed
969 * (gdbtk_tcl_breakpoint): Change to reflect new breakpoint
970 notification protocol.
971 * (gdbtk_tcl_busy gdbtk_tcl_idle): Straighten out buttons, remove
973 * (interactive_cmd): Use this wrapper around button invocations
974 of many commands. This will catch errors and put the results into
975 the command window. It also updates all the other windows.
976 * Also, change reliefs of most things to sunken. This actually
978 * (create_file_win): Fix margin binding to allow breakpoints to
980 * (create_asm_win): Use return value of gdb_disassemble instead
981 of implicit I/O to the command window.
982 * (create_command_window): Use new result protocol to get output
988 * expression.h: Move declaration of evaluate_subexp_with_coercion
990 * value.h: ...to here.
991 * expression.h: Don't include value.h
995 * expression.h: Move include of value.h until after declaration of
1000 * remote-e7000.c: Comprehensive cleanup; removal of dead code,
1001 simplify code, declare things, format to standards.
1002 (inferior.h, value.h, command.h, remote-utils.h): Include.
1003 (e7000_login): Rename to e7000_login_command.
1004 (e7000_ftp): Rename to e7000_ftp_command.
1005 (e7000_drain): Rename to e7000_drain_command.
1007 * irix5-nat.c (string.h): Include near beginning of file.
1011 * valops.c (value_arg_coerce): Use VALUE_TYPE not SYMBOL_TYPE on
1012 arg, it is a value not a symbol.
1015 * eval.c: Move declaration of evaluate_subexp_with_coercion from here..
1016 * expression.h: ..to here.
1017 * expression.h: Include value.h.
1018 * ch-lang.c (evaluate_subexp_chill): Add default case in switch.
1022 * language.h (struct language_defn): New field evaluate_exp.
1023 * c-lang.c (c_language_defn, cplus_language_defn, asm_langauge_defn),
1024 f-lang.c (f_language_defn), language.c (unknown_language_defn,
1025 auto_language_defn, local_language_defn), m2-lang.c (m2_language_defn):
1026 Set evaluate_exp to evaluate_subexp_standard.
1027 * ch-lang.c (evaluate_subexp_chill): New function. Chill-specific
1028 support for MULTI_SUBSCRIPT.
1029 (chill_language_defn): Set evaluate_exp to evaluate_subexp_chill.
1030 * eval.c (enum noside): Move from here ....
1031 * expression.h (enum noside): ... to here.
1032 (evaluate_subexp_standard): New prototype.
1033 * eval.c (evaluate_subexp): Renamed to evaluate_subexp_standard.
1034 Removed lo-longer-needed test for chill_varying_type.
1035 (evaluate_subexp): New. Calls exp->language_defn->evaluate_exp.
1037 * ch-exp.y (maybe_expression_list): New non-terminal.
1038 (primitive_value): Allow empty parameter list.
1042 * buildsym.c (finish_block): If finishing a function without known
1043 parameter type info, set that from parameter symbols.
1044 * c-typeprint.c (c_type_print_varspec_suffix): For TYPE_CODE_FUNC,
1045 print parameter types, if available.
1046 * ch-typeprint.c (chill_type_print_base): Likewise.
1048 * gdbtypes.h (struct type): Remove function type field.
1049 (TYPE_FUNCTION_TYPE): Remove macro. We can't as simply re-use
1050 function types now that we're also storing parameter types.
1051 And the payoff is much less.
1052 * gdbtypes.c (make_function_type): Don't use/set TYPE_FUNCTION_TYPE.
1053 (recursive_dump_type): Don't print TYPE_FUNCTION_TYPE.
1054 * dwarfread.c (read_subroutine_type): Don't set TYPE_FUNCTION_TYPE.
1056 * valops.c (value_arg_coerce): Now takes param_type argument.
1057 (call_function_by_hand): Convert arguments with value_arg_coerce
1058 early, and overwrite original args with converted args.
1059 No longer need multiple calls to value_arg_coerce.
1060 (value_arg_push): Removed.
1061 * hppa-tdep.c (hppa_push_arguments): No longer call value_arg_coerce.
1062 * mips-tdep.c (mips_push_arguments): Likewise.
1063 * alpha-tdep.c (alpha_push_arguments): Likewise.
1064 * rs6000-tdep.c (push_arguments, ran_out_of_registers_for_arguments):
1066 * value.h (value_arg_coerce): Remove declaration. (It's now static.)
1068 * valops.c (value_cast): Do COERCE_VARYING_ARRAY after COERCE_REF.
1070 * symtab.c (add_param_to_type): Remove (commented-out) function,
1071 since that functionality has been re-written.
1072 * coffread.c: Remove commented-out add_param_to_type support.
1073 * mdebugread.c (parse_symbol): Likewise.
1074 * stabsread.c (define_symbol): Likewise.
1078 * buildsym.c (start_subfile): Set language for f2c like for cfront.
1082 * op50n-rom.c: Add the control registers.
1086 * Makefile.in (CLIBS): Add $(LIBIBERTY) before, in addition to
1087 after, any host/target/native libraries.
1088 * dcache.c (insque, remque): Remove declarations.
1089 * gdbtypes.h (type_code): Remove trailing comma.
1092 * xcoffread.c (read_xcoff_symtab) [C_HIDEXT]: Move #ifdef
1093 STATIC_NODEBUG_VARS inside case.
1097 * config/sparc/tm-sun4sol2.h: Define STATIC_TRANSFORM_NAME.
1098 * partial-stab.h: Call it.
1099 * stabsread.c (define_symbol) [STATIC_TRANSFORM_NAME]: Call
1100 STATIC_TRANSFORM_NAME to get the name and use minimal symbols to
1102 * sparc-tdep.c (solaris_static_transform_name): New function.
1106 * somread.c (som_symtab_read): Handle dynamic relocation for both
1107 text and data symbols.
1108 (som_symfile_offsets): If objfile is a shared library, then get
1109 text and data offsets from the shared library structures.
1110 * somsolib.c (som_solib_add): Copy the bfd pointer from the
1111 objfile rather than reopening the file again.
1112 (som_solib_section_offsets): New function.
1113 * somsolib.h (som_solib_section_offsets): Declare.
1117 * config/sparc/tm-sun4sol2.h, dbxread.c: Rename
1118 N_SO_ADDRESS_MAYBE_MISSING to SOFUN_ADDRESS_MAYBE_MISSING.
1119 * symtab.h (minimal_symbol) [SOFUN_ADDRESS_MAYBE_MISSING]: Add
1121 * elfread.c (record_minimal_symbol_and_info),
1122 minsyms.c, symtab.h (prim_record_minimal_symbol_and_info): Return
1123 newly created symbol.
1124 * elfread.c (elf_symtab_read) [SOFUN_ADDRESS_MAYBE_MISSING]:
1125 Set filename field of minimal symbol.
1126 * symmisc.c (dump_msymbols) [SOFUN_ADDRESS_MAYBE_MISSING]:
1127 Print filename field.
1128 * minsyms.c, symtab.h (lookup_minimal_symbol): New arg sfile.
1129 * symm-tdep.c, somsolib.c, hppa-tdep.c, c-exp.y, f-exp.y,
1130 m2-exp.y, nindy-tdep.c, m3-nat.c, irix5-nat.c, hpread.c,
1131 os9kread.c, breakpoint.c, alpha-tdep.c, valops.c, symtab.c,
1132 printcmd.c, dbxread.c: Change callers to pass NULL for sfile.
1133 * dbxread.c (process_one_symbol) [SOFUN_ADDRESS_MAYBE_MISSING]:
1134 Find address of function from minimal symbols.
1135 * partial-stab.h, case 'f', 'F': Call find_stab_function_addr
1136 instead of getting pst->textlow from the stab.
1137 * minsyms.c (find_stab_function_addr): New function.
1141 * monitor.c: Fix so all the output shows up in the GUI command
1146 * i386-tdep.c (_initialize_i386_tdep): Put void decl on separate
1147 line, so init.c generation works correctly.
1149 * arc-tdep.c (_initialize_arc_tdep): Ditto.
1154 * config/mips/idt.mt: Add support for the lsi33k target.
1155 * config/sparc/sun4sol2.mh: Add support for ser-tcp.
1156 * array-rom.c: Finish the rest of the support commands needed by
1158 * mips-tdep.c: Add LSI33k register names and processor type.
1160 start-sanitize-gdbtk
1163 * gdbtk.c (gdb_disassemble): Deference pointer to function before
1164 calling it (pre-ANSI compilers generally require this).
1169 * config/m68k/est.mt (TDEPFILES): Remove m68k-pinsn.o.
1173 * ser-go32-para.c (dos_read): fix syntax errors.
1177 * core.c (dis_asm_read_memory), defs.h, top.c: Get rid of
1178 dis_asm_read_memory_hook. We can now call the disassemblers
1179 directly and have no need for this hook anymore.
1180 start-sanitize-gdbtk
1181 * gdbtk.c (gdb_disassemble): Ditto.
1183 * defs.h, printcmd.c: Make print_insn be static.
1185 * ser-go32.c (dos_comisr): Make this 8 bit clean.
1186 * (dos_open dos_close): Allow multiple opens to the same device.
1187 Use a ref count to prevent unwanted deallocations.
1188 * sparcl-tdep.c: Put #ifdefs around all socket stuff to make GO32
1190 * (sparclite_ops): Switch to download_stratum.
1191 * target.h (enum strata): Move download_stratum before
1192 process_stratum so that executable targets get pushed on top of
1197 * array-rom.c: Remove the non GDB remote protocol config stuff.
1199 * monitor.c: All reading/writing functions for memory and
1205 * config/arc/arc.mt: new target makefile for arc processor.
1206 * config/arc/tm-arc.h: new target header for arc processor.
1207 * config/arc/go32.mh: new go32 host makefile for arc processor.
1208 * config/arc/xm-go32.h: new go32 host header for arc processor.
1209 * arc-tdep.c: new target dependent codes for arc processor.
1210 * remote-arc.c: new file for arc-specific protocol through
1213 * ser-go32-para.c: new file for go32 parallel port communication.
1217 * Makefile.in (VERSION): Bump to 4.13.2.
1221 Fix compiler warnings:
1222 * remote-e7000.c (printf_e7000debug): Rename to puts_e7000debug
1223 and have the caller do the sprintf. Saves us from varargs hell.
1224 (normal): Define before use.
1225 * remote-e7000.c: Reindent a few things.
1229 * f-typeprint.c (f_type_print_varspec_suffix): Print array index
1230 ranges in reverse order.
1231 * f-valprint.c (f77_create_arrayprint_offset_tbl): Fix calculation.
1233 * eval.c (evaluate_subscript): Don't call value_subscript, since
1234 it adjusts for lower bound and enforces ranges.
1236 * expression.h (exp_code): Remove MULTI_F77_SUBSCRIPT, OP_F77_SUBSTR.
1237 * eval.c, parse.c: Removed uses of removed opcodes.
1238 * eval.c (evaluate_subexp): Clean up handling of
1239 OP_UNDETERMINED_ARGLIST (no backtracking, more general).
1241 * f-valprint.c (f_val_print): Print TYPE_CODE_STRING using
1242 LA_PRINT_STRING, and not val_print_string (which reads from inferior).
1244 * ch-lang.c (chill_is_varying_struct), ch-lang.h: Remve function
1245 duplicate function made redundant by chill_varying_type.
1247 Re-write of f77 string and complex number support:
1249 * language.h (struct language_defn): New fields string_lower_bound
1250 and string_char_type.
1251 * c-lang.c (c_language_defn, cplus_language_defn, asm_language_defn),
1252 language.c (unknown_language_defn, auto_language_defn,
1253 local_language_defn), m2-lang.c (m2_language_defn), f-lang.c
1254 (f_language_defn), ch-lang.c (chill_language_defn): Set new fields.
1255 * gdbtypes.c (create_string_type): Use new string_char_type field.
1256 * valops.c (value_string): Use new string_lower_bound field.
1258 * defs.h (TARGET_COMPLEX_BIT, TARGET_DOUBLE_COMPLEX_BIT): Removed.
1259 * f-lang.c (f_create_fundamental_type, _initialize_f_language),
1260 m2-lang.c (m2_create_fundamental_type),
1261 gdbtypes.c (_initialize_gdbtypes): Set TYPE_TARGET_TYPE of complex
1262 types. Set their TYPE_CODEs to TYPE_CODE_COMPLEX.
1263 * mdebugread.c (mdebug_type_complex, mdebug_type_double_complex):
1264 Removed. Use builtin_type_complex and builtin_type_double_complex.
1266 * gdbtypes.h (enum type_code): Removed TYPE_CODE_LITERAL_STRING
1267 and TYPE_CODE_LITERAL_COMPLEX.
1268 * c-typeprint.c, f-typeprint.c, f-valprint.c, eval.c: Removed uses of
1269 TYPE_CODE_LITERAL_STRING and TYPE_CODE_LITERAL_COMPLEX.
1270 * gdbtypes.c, gdbtypes.h (f77_create_literal_complex_type,
1271 f77_create_literal_string_type): Removed.
1272 * value.h (VALUE_LITERAL_DATA, VALUE_SUBSTRING_MEMADDR,
1273 VALUE_SUBSTRING_MYADDR): Removed.
1275 * expression.h (enum exp_opcode): Rename OP_F77_LITERAL_COMPLEX to
1277 * parse.c: Update accordingly.
1279 * f-valprint.c (f77_print_cmplx): Removed.
1280 (f_val_print case TYPE_CODE_COMPLEX): Re-write to use print_floating.
1282 * f-exp.y (STRING_LITERAL): Use OP_STRING instead of OP_ARRAY.
1283 * eval.c (evaluate_subexp): For case OP_ARRAY, don't call
1284 f77_value_literal_string.
1285 * valops.c, value.h (f77_value_literal_string, f77_value_substring,
1286 f77_assign_from_literal_string, f77_assign_from_literal_complex):
1288 (value_assign): No longer need to handle literal types.
1289 * valops.c (f77_value_literal_complex), value.h: Re-written and
1290 renamed to value_literal_complex. Last arg is now a (complex) type.
1291 * valops.c (f77_cast_into_complex): Re-written and renamed to
1293 * eval.c (evaluate_subexp): Update accordingly.
1295 * ch-valprint.c (chill_val_print): On TYPE_CODE_STRING, don't
1296 print address for non-'s'-formats.
1297 * ch-typeprint.c, ch-valprint.c: Use chill_varying_type instead
1298 of chill_is_varying_struct.
1303 * alpha-tdep.c (alpha_in_lenient_prologue): Comment out.
1304 (after_prologue): Remove unused local b.
1305 * procfs.c (thread.h): Include.
1306 (pr_flag_table, pr_why_table, faults_table, siginfo_table): Use
1307 nested braces in initializer.
1308 * top.c (initialize_targets, initialize_utils): Declare.
1309 (locate_arg, insert_args): Add parens around tested assignments.
1310 * remote-utils.c (sr_scan_args): Remove decl of strtol.
1311 * remote.c (thread.h): Include.
1312 (remote_wait): Remove unused local p2.
1313 * sparc-tdep.c (fill_gregset, fill_fpregset): Remove decls of
1316 defs.h (stdlib.h): Include.
1317 (exit, perror, atoi, qsort, memcpy, memcmp): Don't declare.
1318 (fclose, atof, malloc, realloc, free, strchr, strrchr, strstr,
1319 strtok, strerror): Don't specify parameter types in declaration.
1323 * ch-exp.y (value_string_element, string_primitive_value,
1324 start_element, left_element, right_element, slice_size,
1325 lower_element, upper_element, first_element): Removed.
1326 (value_string_slice, value_array_slice): Replaced by ...
1327 (slice): New non-terminal, with working slice support.
1328 (primitive_value_lparen, rparen): New non-terminals.
1329 (maybe_tuple_elements): New non-terminal, to allow empty tuples.
1330 (idtokentab): Added "up".
1332 * value.h (COERCE_VARYING_ARRAY): New macro.
1333 * valarith.c (value_subscript): Use it.
1334 * valops.c (value_cast): Likewise. Also, do nothing if already
1335 correct type, and allow converting from/to range to/from scalar.
1337 * valops.c, value.h (varying_to_slice, value_slice): New functions.
1338 * eval.c (OP_ARRAY): Add cast for array element.
1339 * expression.h (TERNOP_SLICE, TERNOP_SLICE_COUNT): New exp_opcodes.
1340 * valops.c (chill_varying_type): Moved function frp, here ...
1341 * gdbtypes.c (chill_varying_type), gdbtypes.h: ... to here.
1342 * parse.c (length_of_subexp, prefixify_subexp): Add support
1343 for TERNOP_SLICE, TERNOP_SLICE_COUNT.
1344 * expprint.c (print_subexp, dump_expression): Likewise.
1345 * eval.c (evaluate_subexp): Likewise.
1347 * eval.c (evaluate_subexp case MULTI_SUBSCRIPT): Don't call
1348 value_x_binop on a Chill varying string.
1352 * config/m68k/monitor.mt,
1353 config/pa/{hppabsd.mt,hppahpux.mt,hppaosf.mt,hppapro.mt}: Put
1354 depfiles in TDEPFILES not REMOTE_O.
1356 Tue Jan 31 11:14:44 1995 Steve Chamberlain <sac@splat>
1359 * ser-go32.c (dos_close): Don't crash if scb null.
1360 (dos_sendbreak): New function.
1361 (dos_ops): Point to dos_sendbreak.
1362 (dos_info): Calculate COM number correctly.
1366 * xcoffread.c (process_xcoff_symbol): Use new variables
1367 func_symbol_type and var_symbol_type as type of functions and
1368 variables which don't have any stabs associated with them.
1369 Reindent most of function.
1370 (_initialize_xcoffread): Initialize *_symbol_type.
1372 * xcoffread.c (read_xcoff_symtab): Reindent most of function.
1373 Put C_HIDEXT symbols in the minimal symbols, rather than ignoring
1374 them (this part commented out as I didn't quite get it to work).
1375 (cs_to_section, find_targ_sec): New functions, to support above code.
1376 * xcoffread.c (RECORD_MINIMAL_SYMBOL): Only skip '.' if it is
1380 start-sanitize-gdbtk
1381 * gdbtk.tcl (create_file_win): Disable old popup menu for source
1384 * sparcl-tdep.c: Add `sparclite' target for doing serial and udp
1385 downloads to SPARClite demo boards.
1389 * remote.c, remote-pa.c: Remove #if 0'd icache code. It has had
1390 no hope of working as is for a long time (in particular, shebs' 27
1391 Jan 95 change confuses the issue further--target_read_memory and
1392 xfer_core_file do *not* do the same thing in this context).
1397 * elfread.c (elf_symtab_read): Do not test BSF_GLOBAL for
1398 procedure linkage table symbols, it is no longer set due to the
1399 Jan 6 BFD change in bfd/elfcode.h.
1403 * top.c (use_windows): Clarify comments.
1405 * convex-tdep.c (xfer_core_file): Comment out.
1406 * config/convex/tm-convex.h (XFER_CORE_FILE): Remove.
1407 * remote.c, remote-pa.c (remote_fetch_word): Change xfer_core_file
1408 references to target_read_memory.
1409 * gdbcore.h (xfer_core_file, core_open, core_detach): Remove
1411 * corelow.c (core_open, core_detach): Make static.
1413 * arm-tdep.c: Make it compile.
1414 (exec_file_command, xfer_core_file): Comment out.
1415 (arm_print_insn): Remove, now in libopcodes.
1416 (skip_prologue): Comment out most of body.
1417 (arm_frame_find_saved_regs): Move here from tm-arm.h.
1418 (_initialize_arm_tdep): Set tm_print_insn.
1419 * config/arm/tm-arm.h: Remove old refs to first_object_file_end.
1420 (XFER_CORE_FILE): Remove.
1421 (FRAME_FIND_SAVED_REGS): Call arm_frame_find_saved_regs.
1425 * Makefile.in (CHILL_LIB): Define as in testsuite/Makefile.in.
1429 * symtab.c (find_pc_line): When subtracting one to get a line
1430 number, make sure not to end up with zero.
1432 * remote-vx.c: Revert all of Kung's changes of 16 Jan. The
1433 problems with those changes were (a) the file didn't compile, (b)
1434 they changed memset to bzero--memset is correct, (c) they took out
1435 code to deal with boards lacking floating point, (d) who knows
1436 what I didn't discover in a quick read.
1440 * sparcl-tdep.c: Clean up formatting and indentation.
1442 Thu Jan 26 10:49:59 1995 Steve Chamberlain <sac@splat>
1444 * remote-hms.c (hms_ops): Change ref of hr_load_image
1446 (dcache_flush, dcache_hit, dcache_value, dcache_fetch,
1447 dcache_poke, dcache_init): Deleted.
1448 (hms_open, hms_resume, hms_fetch_word, hms_store_word):
1449 Use dcache routines provided by remote-util.h
1453 * configure.in: Add support for powerpc-*-eabi.
1455 * powerpc/tm-ppc-eabi.h, powerpc/pcc-eabi.mt: New files for
1460 * language.h (struct language_defn): New field c_style_arrays.
1461 * language.c (unknown_language_defn, auto_language_defn,
1462 local_language_defn), c-lang.c (c_language_defn, cplus_language_defn,
1463 asm_language_defn): Set c_style_arrays to true.
1464 * m2-lang.c (m2_language_defn), ch-lang.c (chill_language_defn),
1465 f-lang.c (f_language_defn): Set c_style_arrays to false.
1466 * valops.c (value_string): If c_style_array is not set,
1467 allocate string in gdb (not inferior) using allocate_value.
1469 * value.h (COERCE_ARRAY), valops.c (value_addr, value_arg_coerce):
1470 Only call value_coerce_array if current_language->c_style_arrays.
1471 * values.c: Add #include "language.h". (Needed for COERCE_ARRAY.)
1473 * valops.c (chill_varying_type): New predicate.
1474 * valops.c (value_cast): Support assigning a fixed string or array
1475 to a variable string/array structure.
1477 * valarith.c (value_subscripted_rvalue): Extra parameter lowerbound.
1478 Check index>=lowerbound, and then add lowerbound to index here,
1479 instead of in caller. Generalize to arbitrary lval_types.
1480 (value_subscript): Use enhanced value_subscripted_rvalue if
1481 c_style_arrays is false (and index is in range).
1483 start-sanitize-gdbtk
1486 * gdbtk.c (gdbtk_init): Prevent segfault when gdbtk.tcl can't be
1488 * gdbtk.tcl: Initialize expr_update_list() to prevent errors when
1489 popping up expression window for the first time.
1494 * eval.c (evaluate_subexp case OP_ARRAY): Fix calls to memset:
1495 TYPE_LENGTH is length in bytes, not bits.
1499 * infrun.c (proceed): Flush stdout before resuming inferior.
1500 * infcmd.c (step_1), annotate.c (annotate_starting):
1501 Don't bother to flush here.
1505 * hpread.c (hpread_process_one_debug_symbol): Fix lines garbled
1506 by an ill-advised global search and replace.
1510 * gdbtk.tcl (create_registers_window): Work around a radiobutton
1511 widget bug to make Options|Natural button work.
1513 * gdbtk.c (gdb_disassemble): Fix problem with source+assembly and
1514 g++ caused by out-of-order pc's.
1515 * gdbtk.tcl (files_command): Remove duplicate file names. Also,
1520 * gdbtk.tcl: Take .gdbtkinit if it exists. Makes gdbtk match the
1525 Add support for Chill bitstring literals (e.h. H'FF00').
1526 * ch-exp.y (match_bitstring_literal): Fix for proper endianness.
1527 * expprint.c (print_subexp): Don't call error on OP_BITSTRING,
1528 just print B'<unimlemented>'.
1529 * gdbtypes.c (create_set_type): Fix bug in length calculation.
1530 * valops.c, value.h (value_bitstring): New function.
1531 * eval.c (evaluate_subexp): Implement support for OP_BITSTRING.
1533 * ch-typeprint.c (chill_type_print_base): For TYPE_CODE_FUNC,
1534 check that return type is non-void, and print in proper Chill syntax.
1538 * Makefile.in: Remove references to remote-mon.c.
1539 * remote-mon.c: remove. Replaced by rom68k-rom.c.
1540 * rom68k-rom.c: Support for Rom68k monitor.
1544 * Makefile.in (CHILL_FOR_TARGET): Update -L argument to point to
1545 gcc/ch/runtime not chillrt, since that is where the chill runtime
1548 Mon Jan 23 00:06:57 1995 Steve Chamberlain <sac@splat>
1550 * remote-hms.c (hms_load): Delete.
1551 (target_ops): Use hr_load_image.
1553 * remote-e7000.c, remote-z8k.c, remote-nindy.c (target_ops):
1554 Define memory_insert/remove_breakpoint.
1555 * xm-go32.h: Remove redundant SIGs.
1557 Thu Jan 19 20:26:58 1995 Steve Chamberlain <sac@splat>
1563 * expression.h (OP_LABELED): New operator, for Chill
1564 labeled structre tuples.
1565 * ch-exp.y (tuple_element, named_record_element, tuple_elements):
1566 New non-terminals, to handle labeled structure tuples.
1567 (tuple): Re-define using tuple_elements.
1568 * eval.c (evaluate_labeled_field_init): New function, to handle
1569 initialization of structure fields, possibly using OP_LABELED.
1570 (evaluate_subexp): Use it.
1571 * expprint.c (print_subexp case): For OP_ARRAY, use Chill syntax
1572 for Chill. Handled OP_LABELED.
1573 * parse.c (length_of_subexp, prefixify_subexp): Handle OP_LABELED.
1575 * eval.c (evaluate_subexp): Handle Chill Powerset tuples.
1576 * valarith.c (value_bit_index): Just treat bitstring as represented
1577 by an array of bytes. Alignment is handled by compiler.
1581 * h8300-tdep.c (gdb_print_insn_h8300): Fix typo (&info -> info).
1582 * sh-tdep.c (gdb_print_insn_sh): Ditto.
1586 * remote-os9k.c (rombug_open): Fix a bug in exception handling
1588 * remote-os9k.c (rombug_write_inferior_memory): reset buffer after
1593 * parse.c (_initialize_parse): Improve wording of names of
1598 * config/mips/tm-mips.h (enum mips_fpu_type): New enum.
1599 (mips_fpu): Change type to enum mips_fpu_type.
1600 (FIX_CALL_DUMMY): Handle mips_fpu == MIPS_FPU_SINGLE.
1601 * mips-tdep.c (mips_fpu): Change type to enum mips_fpu_type.
1603 (mips_fpu_string): New static variable.
1604 (mips_push_dummy_frame): Handle mips_fpu == MIPS_FPU_SINGLE.
1605 (mips_pop_frame): Likewise.
1606 (mips_extract_return_value): Likewise.
1607 (mips_store_return_value): Likewise.
1608 (mips_set_fpu_command): New static function.
1609 (mips_show_fpu_command): New static function.
1610 (_initialize_mips_tdep): Change handling of set/show mipsfpu.
1614 * a29k-tdep.c (gdb_print_insn_a29k): Fix typo (&info -> info).
1616 * parse.c (write_exp_msymbol): Use new variables
1617 msym_*_symbol_type as type of msymbol expression.
1618 (_initialize_parse): Initialize them.
1622 General cleanup and simplication of disassembler interface.
1623 * a29k-pinsn.c, arm-pinsn.c, convex-pinsn.c, gould-pinsn.c,
1624 hppa-pinsn.c, i386-pinsn.c, i960-pinsn.c, m68k-pinsn.c,
1625 m88k-pinsn.c, mips-pinsn.c, ns32k-pinsn.c, pyr-pinsn.c,
1626 rs6000-pinsn.c, sparc-pinsn.c, tahoe-pinsn.c, vax-pinsn.c: Remove.
1627 * gould-tdep.c, ns32k-tdep.c, tahoe-tdep.c, vax-tdep.c: New files,
1628 had been -pinsn.c files.
1629 * Makefile.in (ALLDEPFILES): Remove removed files.
1630 (a29k-pinsn.o, arm-pinsn.o, convex-pinsn.o, gould-pinsn.o,
1631 hppa-pinsn.o, i386-pinsn.o, i960-pinsn.o, m68k-pinsn.o,
1632 m88k-pinsn.o, mips-pinsn.o, ns32k-pinsn.o, pyr-pinsn.o,
1633 rs6000-pinsn.o, sparc-pinsn.o, tahoe-pinsn.o, vax-pinsn.o):
1634 Remove compile actions.
1635 * arm-tdep.o, gould-tdep.o, ns32k-tdep.o, tahoe-tdep.o,
1636 vax-tdep.o: Add compile actions.
1637 * defs.h (tm_print_insn): New global.
1638 * a29k-tdep.c (gdb_print_insn_a29k): New function.
1639 (_initialize_a29k_tdep): Rename from _initialize_29k,
1641 * alpha-tdep.c (print_insn): Remove.
1642 (_initialize_alpha_tdep): Set tm_print_insn.
1643 * arm-tdep.c (arm_print_insn): New function, was print_insn
1645 * convex-tdep.c (convex_print_insn): New function, was print_insn
1647 * h8300-tdep.c (print_insn): Remove.
1648 (gdb_print_insn_h8300): New function.
1649 (_initialize_h8300_tdep): New function.
1650 * h8500-tdep.c (print_insn): Remove.
1651 (_initialize_h8500_tdep): New function.
1652 * hppa-tdep.c (_initialize_hppa_tdep): Set tm_print_insn.
1653 * i386-tdep.c (_initialize_i386_tdep): New function.
1654 * i960-tdep.c (mem, next_insn): New functions, were in
1656 (_initialize_i960_tdep): Set tm_print_insn.
1657 * m68k-tdep.c (_initialize_m68k_tdep): New function.
1658 * m88k-tdep.c (_initialize_m88k_tdep): New function.
1659 * mips-tdep.c (gdb_print_insn_mips): New function.
1660 (_initialize_mips_tdep): Set tm_print_insn.
1661 * pyr-tdep.c (pyr_print_insn): New function, was print_insn
1663 * rs6000-tdep.c (_initialize_rs6000_tdep): New function.
1664 * sh-tdep.c (print_insn): Remove.
1665 (gdb_print_insn_sh): New function.
1666 (_initialize_sh_tdep): Set tm_print_insn.
1667 * sparc-tdep.c (_initialize_sparc_tdep): New function.
1668 * w65-tdep.c (print_insn): Remove.
1669 (_initialize_w65_tdep): New function.
1670 * z8k-tdep.c (print_insn): Remove.
1671 (gdb_print_insn_z8k): New function.
1672 (_initialize_z8k_tdep): Set tm_print_insn.
1673 * printcmd.c (print_insn): New function, generic disassembler.
1674 * config/*/*.mt (TDEPFILES): Remove refs to *-pinsn.o.
1678 * Makefile.in: add new files remote-vx29k.c, config/a29k/tm-vx29k.h,
1679 and config/a29k/vx29k.mt.
1680 * configure.in: add new configuration a29k-*-vxworks.
1681 * remote-vx29k.c: new file merged from WRS.
1682 * remote-vx.c: merge changes from WRS.
1683 * config/a29k/vx29k.mt: new file for new configuration.
1684 * config/a29k/tm-vx29k.h: new header file for newconfiguration.
1686 Sun Jan 15 14:36:19 1995 Steve Chamberlain <sac@splat>
1688 * breakpoint.h (disable_breakpoint, enable_breakpoint):
1690 (enum bpdisp): Change name of 'delete' member to 'del'.
1691 (struct bpstat): Changed name to 'bpstats'.
1692 * breakpoint.c (disable_breakpoint, enable_breakpoint,
1693 breakpoint_chain): Made globally visible.
1694 (bpstat_stop_status): Use new name for bpstat.
1695 (break_command_1, watch_command_1, catch_command_1,
1696 breakpoint_auto_delete, denable_delete_breakpoint): Use 'del'
1697 instead of 'delete'.
1698 (set_breakpoint_sal): New function.
1699 * defs.h (registers_changed_hook): New declaration.
1700 * infcmd.c (run_stack_dummy): 'delete' is now 'del'.
1701 * inflow.c (new_tty): Treat WIN32 in same way as __GO32__
1702 * main.c (main): Don't scan options when in WIN32 and exit
1703 without entering main loop.
1704 * m2-exp.y (m2_elx): Member 'class' is now 'aclass'.
1705 * symtab.h (struct symbol, struct partial_symbol): Changed name of
1706 member 'class' to 'aclass'.
1707 (SYMBOL_CLASS, PSYMBOL_CLASS): Reflect change.
1708 * top.c (registers_changed_hook): New definition.
1709 * utils.c (quit, notice_quit, initialize_utils): Treate WIN32
1710 in same way as __GO32__.
1711 * value.h (c_typedef_print): Rename 'new' argument.
1713 * w65-tdep.c, config/tm-w65.h, config/w65.mt: New files.
1714 * configure.in: Suppprt for w65,
1719 * infcmd.c (signal_command): For "signal 0", pass (CORE_ADDR)-1,
1720 not stop_pc, to proceed.
1722 * eval.c (evaluate_subexp): Clear expect_type except for C++ and CHILL.
1726 * infcmd.c (signal_command): Accept "signal 0"; the change to not
1727 accept it was accidental. "handle 0" and "info signal 0" remain
1732 * Makefile.in (all): Don't make libgdb-files.
1733 (libgdb): New action, makes libgdb-files.
1737 * stabsread.c (read_enum_type): When pending enum symbols are
1738 put into the enum type, they must be inserted in "backwards
1739 order, in case we've overflowed a struct pending buffer.
1741 start-sanitize-gdbtk
1744 * gdbtk.c, gdbtk.tcl: Update/add copyright.
1745 * gdbtk.tcl (build_framework): Several fixes for filespec widget,
1746 including dismiss button, and better error handling.
1747 * (create_command_win): Bind button 2 to retrieve selection.
1752 * README: Add note about SPARCworks cc release 3.0 and higher.
1754 Add procfs support for Alpha OSF/1-2.x.
1755 * config/alpha/nm-osf.h: Renamed from nm-alpha.h, generic
1756 OSF/1 native support.
1757 * config/alpha/alpha-osf1.mh (NAT_FILE): Changed accordingly.
1758 (MUNCH_DEFINE): Removed.
1759 * config/alpha/alpha-osf2.mh, config/alpha/nm-osf2.h: New files
1761 * configure.in (alpha-dec-osf*): Use alpha-osf2.mh for OSF/1
1762 release 2.x and higher, else alpha-osf1.mh, as the procfs support
1763 in release 1.x is incomplete.
1764 * Makefile.in (ALLCONFIG): Add config/alpha/alpha-osf2.mh.
1765 * alpha-nat.c (supply_gregset, fill_gregset, supply_fpgregset,
1766 fill_fpgregset): New routines for procfs support.
1767 * inftarg.c (_initialize_inftarg): Don't add ptrace support
1768 if we have an optional procfs and /proc is accessible.
1769 * procfs.c: Include sys/fault.h and sys/syscall.h before
1770 including sys/procfs.h.
1771 (unconditionally_kill_inferior): If PROCFS_NEED_PIOCSSIG_FOR_KILL
1772 is defined, additionally perform a PIOCSSIG to really terminate
1774 (create_procinfo): Always return a result.
1775 (create_procinfo, do_attach): Don't trace T_IFAULT faults if
1776 PROCFS_DONT_TRACE_IFAULT is defined.
1777 (procfs_init_inferior): Use START_INFERIOR_TRAPS_EXPECTED as
1778 argument to startup_inferior if it is defined.
1779 (proc_set_exec_trap): If PIOCSSPCACT is defined, use it instead
1780 of tracing exits from exec system calls. Needed for the user level
1781 loader under Alpha OSF/1.
1782 (do_detach): Clear any pending signal if we want to detach from
1783 a process without a signal.
1784 (set_proc_siginfo): If PROCFS_DONT_PIOCSSIG_CURSIG is defined,
1785 don't issue a PIOCSSIG if pr_cursig already contains the signal we
1787 (info_proc_signals): If PROCFS_SIGPEND_OFFSET is defined, the
1788 pending signals are numbered from 1 instead of 0.
1789 (info_proc_mappings): Increase size of output format for addresses
1790 if BFD_HOST_64_BIT is defined.
1791 (procfs_stop): Renamed from child_stop.
1792 (_initialize_procfs): Don't add procfs support if we have an
1793 optional procfs and /proc is not accessible.
1795 start-sanitize-gdbtk
1798 * gdbtk.tcl: Add button to control mixed source disassembly.
1799 Use text widgets in expr window. The give me more control over
1801 Add auto-updating of exprs in expression window.
1802 Handle expressions out of scope a bit better.
1803 Make selected window pop up to the top when invoked via the
1805 Make copyright message have raised relief.
1807 * gdbtk.c (gdbtk_init): Improve handling for errors in gdbtk.tcl
1813 * array-rom.c: Add support for most commands.
1815 * monitor.c: Add GDB remote protocol for the hybrid environment on
1820 * command.c (show_user_1): Use print_command_line to show a user
1821 defined command (including control structures).
1823 * top.c (init_main): Change documentation for user defined
1824 commands to indicate they may accept up to ten arguments.
1828 * mips-tdep.c (mips_skip_prologue): Accept or as well as addu for
1829 `move $s8, $sp' instruction.
1833 * target.c, target.h (target_signal_from_command): New function.
1834 * infrun.c (handle_command, signals_info), infcmd.c
1835 (signal_command): Use it.
1836 * infrun.c, infcmd.c: Update docstrings for these commands.
1838 * target.h (enum target_signal), target.c (signals), target.c
1839 (target_signal_from_host, target_signal_to_host): Add
1840 TARGET_SIGNAL_REALTIME_* and TARGET_SIGNAL_PRIO for lynx.
1841 * config/tm-lynx.h: Define signal numbers for realtime events.
1845 * dbxread.c (process_one_symbol): Handle N_FUN symbols
1846 for Sun acc 3.0 under SunOS4.
1848 Changes to improve handling of runtime common symbols
1850 * minsyms.c (get_symbol_leading_char): New routine to determine
1851 the leading symbol character for an objfile.
1852 (prim_record_minimal_symbol_and_info, install_minimal_symbols):
1854 * objfiles.h (rt_common_objfile): New global, points to objfile
1855 containing the runtime common minimal symbols.
1856 * objfiles.c (free_objfile): Mark rt_common_objfile as
1857 unallocated before freeing it.
1858 * solib.c (allocate_rt_common_objfile): New routine to allocate
1859 an objfile for the runtime common minimal symbols.
1860 (solib_add_common_symbols): Allocate an objfile for the runtime
1861 common symbols if necessary and put common symbols into it.
1862 Clean up code and comments.
1863 (solib_add, special_symbol_handling): Cleanup comments regarding
1864 runtime common symbols.
1865 * stabsread.c (scan_file_globals_1): New routine, contains
1866 old scan_file_globals code. Checks if there are any unresolved
1867 global symbols before starting the expensive minimal symbol table
1869 (scan_file_globals): Now calls scan_file_globals_1 for the passed
1870 objfile and eventually for the runtime common objfile. Complains
1871 about any unresolved global symbols and removes them from the
1872 global symbol chain to avoid dangling pointers into the symbol
1873 table if the symbol table is reread.
1877 * Makefile.in (install_only uninstall): Indent for clarity.
1879 * core.c (dis_asm_read_memory): Add call to
1880 dis_asm_read_memory_hook to provide alternate way for disassembler
1883 * defs.h: Protect from multiple inclusion. Add decl for
1884 dis_asm_read_memory_hook.
1886 * top.c: Make window startup be the default.
1887 * Add dis_asm_read_memory_hook.
1889 start-sanitize-gdbtk
1890 * gdbtk.c (finish_saving_output): Don't do anything if not saving
1892 * (breakpoint_notify): Don't send null filename to tcl.
1893 * (gdb_eval): New tcl command to eval an expression.
1894 * (gdb_disassemble): New tcl command to do disassembly. This
1895 allows tcl code to choose between exec file and target memeory,
1896 and can also do mixed source and assembly.
1897 * (gdbtk_init): Move reading of gdbtk.tcl to the end to make sure
1898 that more of the environment is set up. Also, create link between
1899 gdb and tcl vars disassemble{-_}from{-_}exec.
1901 * gdbtk.tcl: New expression window support.
1902 * Make assembly window be 80 columns wide.
1903 * Use new disassembly method. Add menu items to select
1904 disassembly from exec file or target.
1905 * Change View menubar item to Options.
1907 * Get rid of Stack, Breakpoints, Signals, and Variables Windows,
1908 since they don't exist yet.
1910 * Pop up a copyright window on startup.
1915 * stabsread.c (define_symbol): Handle `a' symbol type used for
1916 reference parameter passed in a register.
1918 start-sanitize-gdbtk
1921 * gdbtk.tcl (build_framework): Add standard commands menu, more
1922 windows to standard windows menu.
1923 (not_implemented_yet): Clarify message.
1928 * defs.h: move include tm.h up, so that the type LONGEST can
1929 also based on the target requirement to determine. In this case
1932 * remote-os9k.c (rombug_open): catch exception e in rombug.
1933 * remote-os9k.c (rombug_wait): print message before register display
1938 * top.c (locate_arg): Call strchr not index.
1942 * ch-exp.y (literal): Recognize NULL.
1943 (tuple): Parse simple unlabelled tuples.
1944 * eval.c (evaluate_subexp case OP_ARRAY): Use expect_type to
1945 evaluate brace-initializer-expressions depending on context.
1946 (evaluate_subexp case UNOP_CAST): Pass the target type as
1947 expected type when evaluating the expression.
1949 * ch-typeprint.c (chill_type_print_base): Get names of PTR and
1950 BOOL from TYPE_NAME.
1951 * ch-valprint.c (chill_print_type_scalar): New function, to handle
1952 TYPE_CODE_RANGE better than print_type_scalar does.
1953 (chill_val_print_array_elements): Use above new function.
1957 * remote-udi.c (udi_load): Tell symbol_file_add that the
1958 program being loaded is the main program.
1960 For older changes see ChangeLog-94
1966 version-control: never