3 * symfile.h (sym_fns), symfile.c (find_sym_fns), xcoffread.c,
4 coffread.c, dbxread.c, elfread.c, mipsread.c, nlmread.c, paread.c:
5 Change from using bfd target name to using the flavour.
7 * objfiles.h, infcmd.c, symfile.c: Add comments about how various
8 objfiles get created and when we should blow them away.
12 * symfile.c (reread_symbols): When re-reading symbols, do all the
13 right operations ourself, rather than calling symbol_file_command.
14 If we re-read something, call clear_symtab_users not just
16 * objfiles.h, objfiles.c (build_objfile_section_table): No longer
18 * symfile.c (clear_symtab_users): Call clear_pc_function_cache.
19 * coffread.c, dbxread.c, elfread.c, mipsread.c, nlmread.c, paread.c
20 (*_symfile_offsets): Set objfile->num_sections.
21 * remote.c (remote_wait), symfile.c (syms_from_objfile):
22 Don't muck with objfile->num_sections now that all the symbol
24 * elfread.c: Clean up obsolete comment about handling only DWARF.
25 * paread.c: Remove comment about how we should use an "ordinary"
26 file format with an hppa suffix. There is nothing ordinary about SOM.
28 * config/i386/{i386m3.mh,i386mk.mh}, config/mips/mipsm3.mh,
29 config/ns32k/ns32km3.mh: Change MMALLOC_LIB to MMALLOC.
30 * TODO: Update Mach stuff.
35 * configure.in: Change *-*-lynx* to *-*-lynxos*, add
37 * Makefile.in (ALLDEPFILES): Add m68kly-nat.c, sparcly-nat.c.
38 Rename i386lynx-nat.[co] to i386ly-nat.[co].
39 (ALLCONFIG): Add config/{m68k,sparc}/{m68k,sparc}lynx.m[ht].
40 (m68kly-nat.o, sparcly-nat.o): Add rules.
41 * i386ly-tdep.c: Cosmetics.
42 * i386lynx-nat.c: Removed.
43 * i386ly-nat.c: New file, was i386lynx-nat.c.
44 * m68kly-nat.c: New file.
45 * sparcly-nat.c: New file.
46 * config/xm-lynx.h: New file, cpu-independent host info.
47 * config/i386/i386lynx.mh: Changes for consistency.
48 * config/i386/i386lynx.mt: Ditto.
49 * config/i386/tm-i386lynx.h: Ditto.
50 * config/i386/nm-i386lynx.h: Ditto.
51 * config/i386/xm-i386lynx.h: Include config/xm-lynx.h.
52 * config/m68k/m68klynx.mh, config/m68k/m68klynx.mt,
53 config/m68k/tm-m68klynx.h, config/m68k/nm-m68klynx.h,
54 config/m68k/xm-m68klynx.h: New files, M68K LynxOS support.
55 * config/sparc/sparclynx.mh, config/sparc/sparclynx.mt,
56 config/sparc/tm-sparclynx.h, config/sparc/nm-sparclynx.h,
57 config/sparc/xm-sparclynx.h: New files, Sparc LynxOS support.
61 * defs.h, findvar.c (extract_floating, store_floating): New functions.
62 * Move SWAP_TARGET_AND_HOST from defs.h to findvar.c because it is
63 now used only by extract_floating and store_floating.
64 * valprint.c (print_floating): Use unsigned arithmetic. Use
65 extract_unsigned_integer instead of SWAP_TARGET_AND_HOST.
66 Change sizeof (float) to 4 and sizeof (double) to 8 (those are always
67 the relevant sizes for this code, which is in #ifdef IEEE_FLOAT).
68 * values.c (unpack_long, unpack_double, value_from_double),
69 valarith.c (value_binop), stabsread.c (define_symbol):
70 Use extract_floating and store_floating instead of
72 * config/m68k/tm-m68k.h, config/i960/tm-i960.h (REGISTER_CONVERT_*):
73 Use extract_floating and store_floating.
74 * config/m88k/tm-m88k.h: Add comments (it should be doing the same).
75 * i386-tdep.c (i386_extract_return_value),
76 * remote-nindy.c (nindy_store_registers): Use store_floating.
80 * remote-sim.c (gdbsim_store_register): Change var name so
81 it compiles with non-ANSI compilers.
85 * TODO: Add idea for "disassemble" with source.
89 * Makefile.in (VERSION): Bump to 4.11.1 after release and cvs
94 * TODO: Add section on Mach. Stop calling it a "bug list".
95 Remove John's name and email address. Remove item on "always"
96 ("hook-stop" takes care of this). Remove item on executables with
97 no symbols (this works on some machines, at least). Remove item
98 about calling error() during symbol reading (I think all the important
99 ones have been cleaned up). Revise items about signals and remote
100 systems. Remove section on ^Z requiring several continues to make
101 it go (this now works. Perhaps the item is based on confusion over
102 programs (like GDB itself) which catch SIGTSTP and then re-send
103 themselves the signal. PR 2575 might contain relevant info).
107 * NEWS: Note improvements in C++ support, preliminary thread
108 implementation, and LynxOS native and target support for 386.
112 * README: Add note from Peter Schauer about OSF/1 shared
113 libraries. Add note from Pace Willisson about configuring on BSDI
114 BSD/386 release 1.0. Update gdb references to gdb 4.11.
118 * NEWS: Add notes about Alpha and "set remotedebug" for UDI.
120 * valops.c (value_assign): Change bitfield code to use a buffer of
121 the correct size, rather than an int.
125 * config/i386/{i386m3.mt,i386m3.mh},
126 config/mips/{mipsm3.mt,mipsm3.mh},
127 config/ns32k/{ns32km3.mt,ns32km3.mh}: Use correct names for TM_FILE
128 and XM_FILE. Replace host files *mach3-xdep.o with native
129 files *m3-nat.o. Replace host file os-mach3.o with native
132 * remote-udi.c: Remove LOG_FILE stuff; superceded by "set remotedebug".
133 * remote-mon.c: Remove commented out "set remotedebug" command.
134 * remote-nindy.c: Clean up comment about wanting alternative to
135 options specified on the GDB command line.
137 * fork-child.c (fork_inferior): Set inferior_pid before calling
138 init_trace_fun. Move the code which gets us through the shell
139 to new function startup_inferior.
140 * inferior.h: Declare startup_inferior.
141 * procfs.c (procfs_init_inferior), inftarg.c (ptrace_him):
142 Call startup_inferior.
143 * m3-nat.c (m3_trace_him): Call intercept_exec_calls.
144 * config/nm-m3.h: Don't define STARTUP_INFERIOR.
145 * config/i386/tm-i386m3.h, config/ns32k/tm-ns32k.h,
146 config/mips/tm-mipsm3.h: Don't define START_INFERIOR_TRAPS_EXPECTED.
148 * m68k-stub.c: Change vector 13 from SIGFPE to SIGBUS.
152 * mips-tdep.c (mips_pop_frame): If proc_desc is NULL, don't dump core.
157 * nlmread.c: Include stabsread.h.
158 * Makefile.in: Update dependencies.
160 * remote.c: Change PBUFSIZ back to 400. John's 28 Feb 1992 change
161 to increase it broke the ability to write large chunks of memory
162 with m68k-stub and i386-stub. Now we only use more than 400 on
163 machines where we need that much to write the registers.
164 * remote.c (remote_write_bytes): Eliminate possible abort(). The
165 check for when to abort was off by a few bytes and besides which,
166 it is handled by MAXBUFBYTES, which the caller uses.
167 * m68k-stub.c: Add comments about trap #1 and trap #8 instructions.
171 * remote-sim.h (SIM_ADDR): New type (same as CORE_ADDR).
172 (sim_set_pc): Update prototype.
173 (sim_read, sim_write): Ditto, and use unsigned char *buf.
174 (sim_fetch_register, sim_store_register): Use unsigned char *buf.
175 (sim_info): Pass printf function as argument, add verbose argument.
176 (sim_stop_reason): Renamed from sim_stop_signal, fix prototype.
177 * remote-sim.c (gdbsim_wait): Update call to sim_stop_reason.
178 (gdbsim_files_info): Update call to sim_info.
182 * valops.c (value_assign): Call reinit_frame_cache when assigning
185 Mon Oct 25 11:08:59 1993 Stu Grossman (grossman at cygnus.com)
187 * infrun.c (wait_for_inferior): Fix PC out of objfile bounds
188 check to just use stop_func_name == 0.
189 * remote-udi.c (store_register): Invalidate NPC/PC_REGNUM after
194 * gdbserver/{low-lynx.c,low-sparc.c,low-sun3.c}, standalone.c,
195 m3-nat.c, i386m3-nat.c, mipsm3-nat.c, ns32km3-nat.c: bcopy -> memcpy.
198 * breakpoint.c: Include thread.h.
199 * coffread.c: Include stabsread.h.
200 * Makefile.in: Update dependencies.
201 * breakpoint.c (mention): Add bp_call_dummy to switch.
202 * symmisc.c (dump_symtab): Use %d not %ld for line number.
206 * parse.c, parser-defs.h (write_exp_msymbol): New function to write
207 the appropriate expression for a minimal symbol. Taken from c-exp.y
208 and m2-exp.y but handles mst_file_*.
209 * c-exp.y, m2-exp.y: Use it.
213 * elfread.c (elf_symtab_read): Use bfd convention that both
214 initialized and uninitialized data sections have the SEC_ALLOC
215 flag bit set, but only initialized sections have SEC_LOAD set.
216 SEC_DATA is ignored since it only gets set for initialized
221 * remote-sim.h (sim_stop): New enum.
222 (sim_stop_signal): Change prototype, result is enum sim_stop.
223 * remote-sim.c (gdbsim_wait): Update call to sim_stop_signal.
227 * stabsread.c (define_symbol): Skip the whole thing about "pcc
228 promotion" on little-endian machines.
230 * remote-vx.c (vx_wait): Rename pid parameter to pid_to_wait_for.
231 Some compilers (legitimately) don't like variables in the
232 function's outermost block whose name is the the same as the name of
236 * dst.h, dstread.c, config/m68k/{apollo68b.mt,tm-apollo68b.h}:
238 * config/m68k/nm-apollo68b.h: Add more defines.
239 * configure.in: Recognize apollo target, not just host.
241 * configure.in: Add * to end of all OS names.
245 * Makefile.in (ALLPARAM): Add config/m88k/xm-delta88v4.h
249 * Makefile.in (init.c): Generate using the source, not munch. This
250 cleans up all kinds of hassles (which nm to use in munch, etc). The
251 new formatting conventions (mostly already followed) are that
252 the name of the _initialize_* routines must start in column zero,
253 and must not be inside #if.
255 * Makefile.in: Remove references to munch.
256 * serial.c, remote.c, infptrace.c, maint.c, convex-tdep.c,
257 alpha-tdep.c, hp300ux-nat.c, hppab-nat.c, osfsolib.c, remote-es.c,
258 procfs.c, remote-udi.c, ser-go32.c, ultra3-xdep.c, sh-tdep.c,
259 i960-tdep.c, hppa-tdep.c, h8500-tdep.c, dpx2-nat.c, delta68-nat.c,
260 z8k-tdep.c: Make sure the above conventions are followed. Make
261 sure they are all declared as returning void. Clean up
262 miscellaneous comments and such.
264 * sh-tdep.c (sim_load): Add function.
268 * remote-mips.c (mips_wait): add pid argument.
272 * Makefile.in (c-exp.tab.o): Remove notice about shift/reduce conflicts
273 which no longer occur.
276 * findvar.c (symbol_read_needs_frame), corelow.c (ignore),
277 inflow.c (gdb_has_a_terminal): Make sure to return a value.
278 * regex.h: Declare re_set_syntax.
279 * printcmd.c: Include valprint.h.
280 * infcmd.c, exec.c, maint.c, core.c: Include language.h.
281 * maint.c: Include expression.h.
282 * infrun.c, fork-child.c, corelow.c, inflow.c: Include thread.h.
283 * inftarg.c: Include command.h.
284 * coredep.c: Include value.h.
285 * c-exp.y, m2-exp.y, ch-exp.y: Include bfd.h, symfile.h and objfiles.h.
286 * ch-typeprint.c: Include typeprint.h.
287 * ch-valprint.c: Include c-lang.h.
288 * nlmread.c: Include buildsym.h.
289 * environ.c: Include gdbcore.h. Only include defs.h once.
290 (set_in_environ): Cast const char * to char * when passing to
292 * Makefile.in: Update dependencies to reflect all these new includes.
293 Remove unused variables:
294 * printcmd.c (printf_command): args_to_vprintf.
295 * coffread.c (coff_symfile_init): strsection.
296 Move variables to within the #ifdefs where they are used:
297 * symtab.c (gdb_mangle_name): opname.
298 * inftarg.c (child_attach): pid and exec_file.
299 * inftarg.c (child_detach): siggnal.
300 * objfiles.c (allocate_objfile): mapto, md, and fd.
301 * objfiles.c (free_objfile): mmfd.
302 * infrun.c (wait_for_inferior): Include BPSTAT_WHAT_LAST in switch.
303 * infrun.c (wait_for_inferior): Remove unused same_pid label.
304 * inferior.h: Declare set_sigint_trap and clear_sigint_trap.
305 * parser-defs.h: Declare write_exp_elt_block.
306 * stabsread.h: Declare elfstab_offset_sections and
307 coffstab_build_psymtabs.
312 * paread.c: Fix references to "hppa" that should now be "som".
316 * symtab.c (decode_line_1): Don't use SYMBOL_LINE for functions.
318 Thu Oct 21 02:59:07 1993 Stu Grossman (grossman at cygnus.com)
320 * remote-udi.c (udi_store_registers, store_register): Use
321 UDI29KPC address space when modifying PC. It seems that you can't
322 modify the PC directly (at least in the isstip simulator).
326 * target.h: Put remote_debug declaration back here. Add baud_rate.
327 * remote.c, remote-udi.c, remote-utils.h: Let target.h take care of
328 declaring these. Those random externs all over are error prone.
329 * Move "set remotebaud" from remote-utils.c to main.c to it applies
332 * xcoffread.c (xcoff_symfile_read), coffread.c (coff_symfile_read):
333 Sort symtabs for this objfile only, not for all objfiles.
334 * symfile.c, symfile.h (sort_all_symtab_syms): Remove; no longer used.
336 * mipsread.c (parse_symbol): In third-eye, a function has a block
337 within it which represents the whole function. Create only one
340 Wed Oct 20 17:47:42 1993 Stu Grossman (grossman at cygnus.com)
342 * main.c: Make baud_rate and remote_debug be global variables,
343 remove #include "remote-utils.h". This makes it possible to build
344 GDB without remote-utils.c. Also, move setting of remote_debug
345 into main, so that all remote*.c files can use it (not just the
346 serial line ones). And, make baud_rate be an int.
347 * remote-udi.c: Change kiodebug to remote_debug.
348 * remote-utils.c: Move setting of baud rate and debug into main.c.
349 * remote-utils.h: Redefine sr_{get set}_debug and sr_{get set}_baud
350 to use baud_rate and remote_debug globals for compatibility.
351 * remote.c: Use remote_debug and baud_rate globals directly,
352 instead of sr_ functions, so that we don't need to load
354 * config/a29k/a29k-udi.mt: Define REMOTE_O as null so that we don't
355 get the default remote* modules.
359 * stabsread.c (define_symbol): When combining a LOC_ARG and a
360 LOC_REGISTER, use the type from the LOC_REGISTER, not from the
365 * config/i386/xm-go32.h: define some signals if they aren't
370 * Makefile.in (INTERNAL_LDFLAGS): New macro. The new part is
371 that we use CFLAGS and PROFILE_CFLAGS to link.
372 (gdb, rapp, kdb): Use INTERNAL_LDFLAGS instead of
373 LDFLAGS and/or GLOBAL_CFLAGS.
375 Wed Oct 20 09:29:55 1993 Stu Grossman (grossman at cygnus.com)
377 * Makefile.in: Add $(srcdir) to all refs to 29k-share
382 * Makefile.in (ALLCONFIG): Add config/i386/{i386m3.mh, i386m3.mt,
383 i386/i386mk.mh i386/i386mk.mt}, config/mips/{mipsm3.mh,
384 mipsm3.mt}, config/ns32k/{ns32km3.mh, ns32m3.mt}
385 * Makefile.in (remote_utils_h): Add remote-sim.h
386 * Makefile.in (NONSRC): Add i386-nlmstub.c
387 * Makefile.in (HFILES): Add coff-solib.h
391 * values.c (value_virtual_fn_field): Fix the offset calculation
392 when calling virtual functions. (gdb.t22/virtfunc.exp).
393 * eval.c (evaluate_subexp): same as above.
397 * config/rs6000/rs6000.mh (TERMCAP): Define to -lcurses.
399 * Makefile.in: Define CXXFLAGS.
403 * sparclite/Makefile.in: Fixup so that this works with Sun make
408 * breakpoint.h (struct bpstat_what): Don't use bitfields.
410 * typeprint.c: Add "class CLASS-NAME" to docstring for ptype.
414 * Makefile.in (ALLPARAM): Add config/m88k/{nm-delta88v4.h,
415 tm-delta88v4.h, xm-dgux.h}.
416 * Makefile.in (ALLCONFIG): Add config/m88k/{delta88v4.mh,
419 * README: Remove comment about SunOS 5.x programs leaving
420 coredumps. Info from Sun is that this was not in customer
425 * hppa-tdep.c (restore_pc_queue): Call target_terminal_ours after
426 done stepping the inferior.
428 * c-exp.y: Remove never-used (because of shift/reduce conflicts)
429 rules for pointers to members.
430 * Makefile.in: Remove notice about expected shift/reduce conflicts.
432 * buildsym.c (finish_block): If we pop the context stack and it is
433 not empty, complain () instead of abort ().
437 * parse.c, parser-defs.h (follow_types): New function.
438 * c-exp.y (ptype : typebase abs_decl): Use it.
439 * c-exp.y (ptype): Add support for type qualifiers after the
440 typebase. The typebase rule already has support for them before
442 * Makefile.in: Change the expected number of shift/reduce
443 conflicts to 6. This is OK--the 2 new conflicts are basically the
444 same as one of the old ones.
448 * Makefile.in (VERSION): Bump to 4.10.3.
452 * infrun.c (wait_for_inferior): Clean up comments which were at
453 the top of the file, making them more concise and moving them with
454 the code (Sorry, Randy, but these stream-of-consciousness comments
455 really have to go). Switch the order of the "&&", which makes
456 things clearer and turns out to be an improvement with respect to
457 side effects and speed.
459 Sun Oct 17 02:06:01 1993 Stu Grossman (grossman at cygnus.com)
461 * procfs.c: Handle process exits more elegantly by trapping on
462 entry to _exit. Also, cleanup procinfo list when process dies of
463 it's own accord (as opposed to being killed).
467 * config/m88k/xm-dgux.h: Define NO_PTRACE_H.
469 * corelow.c (add_to_thread_list): Need a cast to go from PTR to
472 * infrun.c: Add comment about signals.
474 * fork-child.c (fork_inferior): Remove CREATE_INFERIOR_HOOK again.
475 Stu reinstated it (accidently I assume).
477 Sat Oct 16 15:27:10 1993 Stu Grossman (grossman at cygnus.com)
479 * procfs.c (procfs_wait): Losing Unixware can't do poll on /proc
480 files. Use PIOCWSTOP instead.
481 * corelow.c (add_to_thread_list): Fix arg to match prototype.
483 * procfs.c (procfs_set_sproc_trap): Don't use this if sproc
485 * (procfs_notice_signals): Fix prototype.
487 Fri Oct 15 22:46:07 1993 Stu Grossman (grossman at cygnus.com)
489 * breakpoint.c (breakpoint_thread_match break_command_1):
490 Thread-specific breakpoint support.
491 * breakpoint.h (struct breakpoint): Add thread id field.
492 * fork-child.c (fork_inferior): Move call to init_thread_list()
493 back a bit so that init_trace_fun can do thread functions.
494 * hppa-tdep.c (restore_pc_queue): Add pid to call to target_wait.
495 * hppab-nat.c (child_resume): Handle default pid.
496 * hppah-nat.c (child_resume): Handle default pid.
497 * i386lynx-nat.c (child_wait): New arg pid.
498 * inflow.c (kill_command): Reset thread list.
499 * infptrace.c (child_resume): Handle default pid.
500 * infrun.c: Thread-specific breakpoint support.
501 * inftarg.c (child_wait): Add pid arg.
502 * osfsolib.c (solib_create_inferior_hook): Add pid to call to
504 * procfs.c: Multi-thread support.
505 * remote-bug.c (bug_wait): Add pid arg.
506 * remote-hms.c (hms_wait): Add pid arg.
507 * remote-mips.c (mips_wait): Add pid arg.
508 * remote-mon.c (monitor_wait): Add pid arg.
509 * remote-nindy.c (nindy_wait): Add pid arg.
510 * remote-sim.c (gdbsim_wait): Add pid arg.
511 * remote-udi.c (udi_wait): Add pid arg.
512 * remote-vx.c (vx_wait): Add pid arg.
513 * remote-z8k.c (sim_wait): Add pid arg.
514 * remote.c (remote_wait): Add pid arg.
515 * solib.c (solib_create_inferior_hook): Add pid to call to
517 * target.h (struct target_ops): Add pid arg to to_wait and
519 * thread.c (valid_thread_id): New func to validate thread #s.
520 * (pid_to_thread_id): New func to do the obvious.
521 * thread.h: Prototypes for above.
523 * coff-solib.c (coff_solib_add): Use nameoffset field to locate
528 * h8300-tdep.c, h8500-tdep.c: Define sim_load only, but not
529 sim_kill, sim_open, or sim_set_args.
531 * stack.c (print_stack_frame): Put catch_errors around
532 print_frame_info so (for example) error printing source doesn't
533 cause auto-displays to get skipped in normal_stop.
535 * findvar.c (value_from_register): When preparing to cast a value
536 from REGISTER_VIRTUAL_TYPE to type, copy the REGISTER_VIRTUAL_SIZE;
537 the old code didn't copy the whole thing.
538 * valops.c (value_assign): Add comment.
542 * mipsread.c (upgrade_type): Replace bitsize sanity checks and
543 complaint by a comment explaining why they were useless.
547 * Move comments on bypassing call dummy breakpoint from stack.c
552 * symtab.c (lookup_partial_symtab): If filename is not found and
553 contains no slashes, try again and compare without leading path
555 * symtab.c (lookup_symtab_1): Replace open coded version of
556 lookup_partial_symtab with a function call.
560 * fork-child.c (fork_inferior), remote-eb.c (eb_create_inferior),
561 remote-mon.c (monitor_create_inferior), remote-nindy.c
562 (nindy_create_inferior), remote-st.c (st2000_create_inferior),
563 remote-vx.c (vx_create_inferior): Remove CREATE_INFERIOR_HOOK; it
564 is replaced by init_trace_fun.
565 * config/convex/xm-convex.h, convex-xdep.c: Add comments explaining
566 how to do without CREATE_INFERIOR_HOOK for whoever fixes the Convex
569 * Makefile.in: Add Mach files to ALLDEPFILES, etc.
570 * m3-nat.c: Clean up more hair--message(), cprocs.
571 * configure.in: Recognize Mach targets and hosts.
572 * config/ns32k/tm-umax.h: Add some #ifndef's so tm-ns32km3.h can
574 * Mach headers in config/*/tm-*.h: Fix includes to match correct
579 * remote-mon.c (general_open): Set dev_name. Minor tweaking to get
581 * config/m68k/tm-monitor.h: Remove floating point register names
582 as there aren't any on any of the monitors that use this code.
586 * inflow.c: Pass pointer to process group, not process group itself,
589 * inflow.c (terminal_ours_1): Don't print warning on failure to
592 * printcmd.c (printf_command): Instead of using makeva* and
593 calling vprintf, just make the appropriate calls to printf.
594 * printcmd.c, config/pa/xm-pa.h, config/mips/xm-makeva.h,
595 config/alpha/xm-alpha.h, config/m88k/xm-m88k.h: Remove all
596 traces of makeva*. My apologies to everyone (including me!)
597 who spent so much time getting it to work on various machines,
598 but look at the bright side, at least you won't have to do it
601 * printcmd.c (printf_command): Make a cleanup for val_args (fixes
606 * config/mips/xm-mips.h: Remove comment about HAVE_SGTTY vs. usleep.
610 * configure.in: only configure gdbserver for native environments
614 * stabsread.c (read_type): Treat a negative type number at the start
615 of a type as a type reference, not as a definition of a type with
616 "50=" omitted. This makes things work on the RS/6000 again (the
617 14 Sep 1993 change broke it).
619 * inflow.c: Use 0 (standard input) not scb->fd.
620 (terminal_ours_1): If printing warning, don't claim it happened in
623 * blockframe.c (get_prev_frame_info): Don't error() if there are no
624 frames; just return NULL.
626 * xcoffsolib.h, xcoffexec.c: Undo the part of Fred's bfd->abfd
627 change which involved structure elements. It was unnecessary and
628 was not consistently done.
630 * stabsread.h, stabsread.c, dbxread.c (common_block*, copy_pending):
631 Move common block handling from dbxread.c to stabsread.c.
632 Use the name from the BCOMM instead of the ECOMM.
633 Allocate things on the symbol_obstack.
634 * xcoffread.c (process_xcoff_symbol): Process C_BCOMM, C_ECOMM,
635 and C_ECOML. On unrecognized storage classes, go ahead and call
636 define_symbol (after the complaint).
638 * dbxread.c (process_one_symbol): Don't relocate 'S' symbols by
643 * osfsolib.c (solib_create_inferior_hook): Reset stop_soon_quietly
644 after shared library symbol reading to get rid of warning from
645 heuristic_proc_start.
649 * remote-sim.c: fix unterminated character string
653 * stabsread.c: Fix comment about gcc 2.3.3 stab for long long int.
657 * m3-nat.c, config/nm-m3.h: Add a target_ops struct and other
658 various things to try to get this to work.
660 * symtab.h: Fix comments re headers, sharing blockvectors, etc.
664 * config/i960/vxworks960.mt (REMOTE_O): add dcache.o and remote-utils.o
668 * mipsread.c (parse_partial_symbols): Do not add undefined
669 symbols to the partial symbol table.
670 * alpha-tdep.c (init_extra_frame_info): Remove kludge for gcc,
671 gcc has to be compatible with the native tools.
672 * alpha-tdep.c (alpha_push_arguments): Rename NUM_ARG_REGS to
673 ALPHA_NUM_ARG_REGS and move its definition to tm-alpha.h.
674 * config/alpha/tm-alpha.h (FRAME_ARGS_ADDRESS): Change it to the
675 way the native tools define it, update comment.
679 * osfsolib.c, remote-sim.c, remote.c, solib.c, xcoffexec.c,
680 xcoffsolib.h: Use 'abfd' for bfd variables instead of 'bfd'.
681 Sun cc doesn't like variable names that match their typedef'd type.
685 * inflow.c: Remove unused includes of sys/param.h and sys/types.h.
687 * inflow.c, ser-unix.c, ser-go32.c, ser-tcp.c, serial.h,
688 terminal.h, fork-child.c, main.c, utils.c: Move all the process
689 group stuff back to inflow.c and terminal.h; that's a better place
690 for it and fixes problems with trying to get/set the process group
691 of a tty we're doing remote debugging on.
692 * terminal.h: Skip the redefines and includes if HAVE_TERMIOS.
694 * findvar.c, value.h (symbol_read_needs_frame): New function.
695 * c-exp.y, m2-exp.y: Call it instead of having our own switch on
697 * valops.c (value_of_variable): Use symbol_read_needs_frame to
698 decide whether we care about finding a frame.
702 * blockframe.c (get_frame_block): Do not adjust pc if the frame
703 function was interrupted by a signal.
707 * config/h8300/tm-h8300.h: Don't define sr_get_debug.
708 * remote-sim.c: Include remote-utils.h.
709 * target.h: Add comment about target_has_execution.
713 * h8300-tdep.c (sim_load, sim_kill, sim_open, sim_set_args):
715 * infrun.c (normal_stop): Don't try and set the pc in the current
716 frame coredump if there isn't one.
717 * remote-sim.c (gdbsim_store_register): Don't
718 SWAP_TARGET_AND_HOST, sim_store_register takes bytes in raw order.
719 (gdbsim_wait): Set status with WSETSTOP.
720 * config/h8300/tm-h8300.h (sr_get_debug): Define
725 * config/i386/i386mach.c: Explain this is for the old (probably
726 non-functional and/or obsolete) Mach stuff.
727 * m3-nat.c, config/nm-m3.h,
728 i386m3-nat.c, mipsm3-nat.c, ns32km3-nat.c,
729 config/i386/{i386m3.mh,i386m3.mt,tm-i386m3.h,xm-i386m3.h},
730 config/i386/{i386mk.mh,i386mk.mt,tm-i386mk.h,xm-i386mk.h},
731 config/mips/{mipsm3.mh,mipsm3.mt,tm-mipsm3.h,xm-mipsm3.h},
732 config/ns32k/{ns32km3.mh,ns32km3.mt,tm-ns32km3.h,xm-ns32km3.h}:
735 * blockframe.c (find_pc_partial_function): If we call
736 PSYMTAB_TO_SYMTAB, call target_terminal_ours_for_output first.
737 This is needed now that wait_for_inferior passes in endaddr.
738 * infrun.c: Move call to target_terminal_inferior from proceed
741 Thu Oct 7 09:22:04 1993 Stu Grossman (grossman at cygnus.com)
743 * blockframe.c (find_pc_partial_function): Fix handling for PCs
744 beyond the end of the last function in an objfile.
745 * coff-solib.c (coff_solib_add): Use BFD to get fields from .lib
747 * infrun.c (wait_for_inferior): Modify test for subroutine entry
748 to include pc out of bounds of the previous function.
749 * remote.c (remote_wait): Use strtoul for parsing 'N' message.
750 Add code to relocate symfile_objfile->sections.
754 * config/sparc/sun4os4.mh: Add comment saying why we don't use
759 * breakpoint.c, breakpoint.h (breakpoint_init_inferior): New function
760 that clears the `inserted' flag for all breakpoints and deletes
761 any breakpoints which should go away between runs of programs.
762 * inflow.c (generic_mourn_inferior), infrun.c (init_wait_for_inferior),
763 remote-es.c (es1800_load), comments in exec.c and corelow.c:
764 Use it instead of mark_breakpoints_out.
765 * breakpoint.c (mark_breakpoints_out): Update comment, tm-rs6000.h
766 uses it in a completely different context.
767 * breakpoint.c (breakpoint_re_set_one): Add bp_call_dummy case.
771 * Makefile.in (REGEX, REGEX1): Always use our own version of
772 regex.c to be consistent across hosts.
773 * source.c (_initialize_source): Initialize regex to use grep
774 style syntax as an approximation to POSIX basic regex syntax.
779 * hppa-tdep.c (frame_chain): Rework so that it correctly
780 handles boundaries where code with a frame pointer calls code
781 without a frame pointer.
782 (dig_fp_from_stack): New function.
786 * breakpoint.c (delete_breakpoint): Don't insert a disabled breakpoint.
788 * README: Add Alpha notes from Schauer.
792 * Makefile.in (install, uninstall): Remove $$n.1 stuff; I don't
793 understand what it is trying to do, but I suspect it's not doing
796 * config/ns32k/merlin.mh: Add comment about M_INSTALL.
797 * config/m88k/{delta88.mh,delta88v4.mh}: Remove M_INSTALL and
798 M_UNINSTALL; it tries to install a non-existent file gdb.z.
799 * Makefile.in: Remove M_INSTALL stuff; the above were the only uses.
801 * stabsread.c (read_range_type): Remove comment which recommends
802 distinguishing float from complex by the name.
808 Changes to support alpha OSF/1 in native mode.
809 * alpha-nat.c, alpha-tdep.c, config/alpha/alpha-osf1.mt,
810 config/alpha/nm-alpha.h, config/alpha/tm-alpha.h, osfsolib.c:
812 * Makefile.in: Add new files and dependencies.
813 * configure.in: Add alpha target.
814 * config/alpha/alpha-osf1.mh (NATDEPFILES): Add osfsolib.o
815 * config/alpha/alpha-osf1.mh (MH_CFLAGS): Remove, we can handle
816 shared libraries now.
817 * config/alpha/xm-alpha.h: Cleanup, get MAKEVA_* defines right.
819 * defs.h (CORE_ADDR): Make its type overridable via CORE_ADDR_TYPE,
820 provide `unsigned int' default.
821 * breakpoint.c (breakpoint_auto_delete): Delete only if we really
822 stopped for the breakpoint.
823 * stabsread.c, stabsread.h (define_symbol): Change valu parameter
825 * stabsread.c (read_range_type): Handle the case where the lower
826 bound overflows and the upper doesn't and the range is legal.
827 * infrun.c (resume): Do not step a breakpoint instruction if
828 CANNOT_STEP_BREAKPOINT is defined.
830 * inferior.h (CALL_DUMMY_LOCATION): New variant AT_ENTRY_POINT.
831 Now that we have the bp_call_dummy breakpoint the call dummy code
832 is no longer needed. PUSH_DUMMY_FRAME, PUSH_ARGUMENTS and
833 FIX_CALL_DUMMY can be used to set up everything for the dummy.
834 The breakpoint for the dummy is set at the entry point and thats it.
835 * blockframe.c (inside_entry_file, inside_entry_func): Do not stop
836 backtraces if pc is in the call dummy at the entry point.
837 * infcmd.c (run_stack_dummy): Handle AT_ENTRY_POINT case. Use
838 the expected breakpoint pc when setting up the frame for
839 set_momentary_breakpoint.
840 * symfile.c (entry_point_address): New function for AT_ENTRY_POINT
842 * valops.c (call_function_by_hand): Handle AT_ENTRY_POINT case.
846 * configure.in: Recognize hppa*-*-hiux* (currently synonym for hpux).
847 Change other hppa host entries to use -*- not -hp-.
851 * i386-nlmstub.c: New file; debugging stub for i386 NetWare. Must
852 be compiled with NetWare header files and turned into an NLM with
857 * minsyms.c (lookup_minimal_symbol_by_pc): Don't use mst_abs symbols.
859 * dbxread.c (process_one_symbol): Make n_opt_found static.
861 * Rename i386lynx-tdep.c to i386ly-tdep.c for 14 character file names.
862 * Makefile.in, config/i386/i386lynx.mt: Change accordingly.
864 * values.c (record_latest_value): Fetch lazy values and set VALUE_LVAL
869 * objfiles.h (objfile): New slot sym_stab_info, use by most
870 stab-reading formats.
871 * gdb-stabs.h (DBX_SYMFILE_INFO): Access sym_stab_info instead of
873 * coffread.c (coff_symfile_init): Alloc struct for sym_stab_info.
874 * dbxread.c, elfread.c, paread.c: Change sym_private references to
875 sym_stab_info references.
879 * mipsread.c, objfiles.c, utils.c: Use PTR not void *. RISC/OS
881 * elfread.c: Use void * not PTR inside PARAMS.
883 * config/mips/news-mips.mh: Remove coredep.o; mips-nat.o does it.
884 * config/mips/news-mips.mh: Define NAT_FILE not NM_FILE.
885 * config/mips/nm-news-mips.h: Include mips/nm-mips.h not nm-mips.h.
887 Sat Oct 2 16:05:22 1993 Stu Grossman (grossman at cygnus.com)
889 * Makefile.in, coff-solib.c, coff-solib.h, i386lynx.mt,
890 tm-i386lynx.h: Add support for SVR3 COFF shared libraries.
894 * m88k-nat.c (store_inferior_registers): When writing all registers,
895 don't try to write EXIP_REGNUM or ENIP_REGNUM (not needed for this
896 case, and they cause trouble).
898 * TODO: Don't suggest doing fast watchpoints by stepping a line
899 at a time. That would be really hairy and still not fast enough.
900 Do suggest debug registers and page table diddling.
904 * printcmd.c (do_examine): Make meaning of 'h', 'w', and 'g' not
905 depend on builtin_type_*. Instead, it is always 2, 4, and 8 bytes
906 like the documentation says.
907 * printcmd.c (decode_format) [CC_HAS_LONG_LONG]: Remove 'l' as
908 synonym for 'g'. This was never documented, it shouldn't depend on
909 CC_HAS_LONG_LONG, and I don't see what's wrong with 'g'.
913 * symtab.c: fix a bug in testsuite (virtfunc.exp)
917 * m88k-nat.c (fill_gregset): Fix typo (R_SFIP -> R_FIP).
919 * c-typeprint.c (c_type_print_base, TYPE_FN_FIELD_STUB code):
920 If demangled name lacks a colon, don't dump core.
922 * blockframe.c (find_pc_partial_function): If pst->readin is
923 set, don't try to get symbols from pst.
925 * inflow.c (generic_mourn_inferior): Call reinit_frame_cache
926 instead of doing it ourself.
927 * blockframe.c (reinit_frame_cache): Use code which was in
928 generic_mourn_inferior so we can use this function even when
929 we have switched targets.
930 * corelow.c (core_detach): Call reinit_frame_cache.
931 * target.c (target_detach): Don't call generic_mourn_inferior
932 (revert yesterday's change, now handled by core_detach).
933 * objfiles.c (free_objfile): Detach any core file if we call
934 SOLIB_CLEAR. #include target.h.
936 * fork-child.c (fork_inferior): Don't call target_terminal_init
937 and target_terminal_inferior until we are sure that the inferior
938 has called gdb_setpgid. This fixes PR 2900 (Schauer tracked it
939 down and was able to reliably reproduce it by putting a sleep()
940 before the gdb_setpgid()).
944 * c-exp.y, m2-exp.y: Change type of address for msymbol to
946 * infptrace.c (fetch_register, store_inferior_register,
947 child_xfer_memory): Use PTRACE_XFER_TYPE for the type of ptrace
948 transfers. Provide an `int' default for PTRACE_XFER_TYPE.
952 * defs.h (TARGET_*_BIT): Don't use host information (sizeof) in
955 * cp-valprint.c (cp_is_vtbl_ptr_type): Continue to accept old form.
959 * cp-valprint.c (cp_is_vtbl_ptr_type):
960 change vtable field name to __vtbl (pr2695).
962 * symtab.c (gdb_mangle_name): fix a bug, to get mangled name right.
964 Wed Sep 29 18:34:22 1993 Stu Grossman (grossman at cygnus.com)
966 * Makefile.in: Add deps for i386lynx-nat.o and i386lynx-tdep.o to
967 keep non-gnu makes happy.
971 * c-valprint.c: to fix virtual table print bug (pr2695).
975 * target.c (target_detach): Call generic_mourn_inferior.
976 * inflow.c (generic_mourn_inferior): Call flush_cached_frames.
980 * dbxread.c, coffread.c, elfread.c: A few changes to comments.
984 * configure.in: Rename ...-lynx* to ...-lynxos*.
985 Add m68*-*-lynxos* configuration.
986 * dbxread.c (coffstab_build_psymtabs): New function,
987 interfaces coffread.c to dbxread functions.
988 * coffread.c (coff_symfile_info): Expand to include
989 dbx_symfile_info slots.
990 (coff_symfile_init): Init coff_symfile_info struct.
991 (coff_locate_sections): New functions, finds the stab and stabstr
993 (coff_symfile_read): Call coffstab_build_psymtabs if a stab
995 (coff_section_offsets): Replace fake version with real offsets.
999 * infcmd.c (run_stack_dummy): Set the frame in the bp_call_dummy
1004 * config/nm-sysv4.h: Include solib.h. Define SVR4_SHARED_LIBS.
1005 * config/tm-sysv4.h: Don't include solib.h.
1006 * config/xm-sysv4.h: Don't define SVR4_SHARED_LIBS.
1007 * config/i386/i386v4.mt (TDEPFILES): Move solib.o from here...
1008 * config/i386/i386v4.mh (NATDEPFILES): ...to here.
1009 * config/i386/nm-i386v4.h: Include nm-sysv4.h.
1010 * config/m68k/amix.mt (TDEPFILES): Move solib.o from here...
1011 * config/m68k/amix.mh (NATDEPFILES): ...to here.
1015 * symmisc.c (print_symbol): Use %02x not %2x for LOC_CONST_BYTES.
1017 Clean up problems with targets and hosts that have 64 bit longs
1018 and pointers and 32 bit ints.
1019 * breakpoint.c, buildsym.c, c-lang.c, c-valprint.c, ch-lang.c,
1020 ch-valprint.c, core.c, cp-valprint.c, dbxread.c, exec.c,
1021 expprint.c, gdbtypes.c, infcmd.c, language.c, language.h,
1022 m2-lang.c, maint.c, mips-tdep.c, mipsread.c, partial-stab.h,
1023 printcmd.c, remote-vx.c, solib.c, source.c, stack.c, symfile.c,
1024 symmisc.c, symtab.c, valops.c, valprint.c, xcoffexec.c:
1025 Change all printf formats from %x to %lx if outputting an address.
1026 Change la_*_format to use long format.
1027 local_hex_string, local_hex_string_custom now take an unsigned long
1028 argument, change all callers.
1029 * coffread.c (read_coff_symtab): Remove superfluous cast for
1031 * dbxread.c (end_psymtab): Cast MSYMBOL_INFO to long, not int.
1032 * findvar.c, value.h (write_register): Change val to LONGEST.
1033 * gdbtypes.h (struct type): Change `bitsize' to long as
1034 TYPE_FIELD_STATIC_PHYSNAME uses this field as a pointer.
1035 * inferior.h (struct inferior_status): Change type of stop_pc to
1037 * language.h (local_octal_string, local_octal_string_custom):
1038 Remove prototype, the functions are neither defined nor used.
1039 * mipsread.c (parse_symbol): Use temporary variable for bitsize as
1040 f->bitsize is a long now.
1041 * objfiles.c (add_to_objfile_sections, build_objfile_section_table):
1042 Use unsigned long casts instead of int for abusing sections_end
1044 * stack.c (parse_frame_specification): Change type of `args' to
1045 CORE_ADDR for SETUP_ARBITRARY_FRAME.
1047 * printcmd.c (make_vasize): Allow redefinition via MAKEVA_SIZE.
1048 * mipsread.c (parse_type): Alpha cc now supports the t->continued
1049 bit, update algorithm to match the way the compiler uses it.
1053 * utils.c (fprintfi_filtered): Fix comments.
1055 Mon Sep 27 18:10:08 1993 Stu Grossman (grossman at cygnus.com)
1057 * coffread.c (read_coff_symtab): Don't call getfilename if there
1062 * symtab.c (find_pc_line): Fix comments.
1064 * remote-udi.c (udi_mourn): Don't pop target.
1066 Fri Sep 24 17:25:41 1993 Stu Grossman (grossman at cygnus.com)
1068 * corelow.c: Add multi thread/process support for core files with
1069 .reg/XXX pseudo-sections.
1070 * i386lynx-nat.c thread.h thread.c: Remove unnecessary core file
1075 * remote-udi.c (download): Skip zero length sections.
1077 * valops.c (search_struct_method, value_struct_elt):
1078 Use (value)-1, not -1, for error.
1080 * infcmd.c (step_1), infrun.c (wait_for_inferior): Add comments
1081 about SHIFT_INST_REGS.
1083 * exec.c (exec_file_command): Set text_end based on all code readonly
1084 sections, not just ".text".
1086 * defs.h, infcmd.c, config/z8k/tm-z8k.h, config/m88k/tm-m88k.h,
1087 config/sh/tm-sh.h, config/h8300/tm-h8300.h, config/h8500/tm-h8500.h,
1088 z8k-tdep.c: Remove all references to ADDR_BITS_SET.
1089 * config/m88k/tm-m88k.h: Define TARGET_WRITE_PC.
1091 * config/m88k/tm-m88k.h, m88k-tdep.c: Add call function stuff.
1095 * config/mips/tm-mips.h (STORE_STRUCT_RETURN): Define as noop as
1096 the pushing of the struct return address is already handled in
1097 mips_push_arguments.
1098 * mips-tdep.c (reinit_frame_cache_sfunc): Fix typo in prototype
1100 * mipsread.c (parse_symbol, parse_type, upgrade_type): Add more
1101 sanity checks for corrupt symbol entries to avoid core dumps
1103 the same problems as the OSF/1 alpha cc.
1104 * mipsread.c (parse_lines): Iterate over the range of the compressed
1105 line number entries, the old iteration sometimes failed to stop
1106 and wrote past the end of the LINETABLE. Add sanity check to avoid
1107 the same problem in case the line number info is corrupt.
1108 * mipsread.c (parse_procedure): Adjust pdr for alpha __sigtramp.
1109 * mipsread.c (parse_external, parse_partial_symbols): Ignore stNil
1110 symbols that are produced for statics in .o files and stLocal symbols
1111 that are produced for every section in OSF/1 dynamically linked
1113 * mipsread.c (psymtab_to_symtab_1): Put out `undefined symbols'
1114 warning only under `verbose on' as there are many undefined symbols
1115 in a dynamically linked executable.
1119 * config/i960/nindy960.mt: Don't define REMOTE_O; REMOTE_O was
1120 intended only for VxWorks. Remove dcache.o from TDEPFILES now
1121 that we pick it up from the default REMOTE_O.
1123 * breakpoint.c (bpstat_what): Initialize retval.call_dummy and
1126 * mips-tdep.c (mips_frame_chain): If frame size zero, return zero.
1127 * rs6000-tdep.c: Add comment about framelessness.
1129 * remote-nindy.c: Declare ninMemGet and ninMemPut.
1131 Wed Sep 22 08:02:57 1993 Stu Grossman (grossman at cygnus.com)
1133 * Makefile.in: Add i386lynx-tdep to the right places.
1134 (TARDIRS): Add gdbserver.
1136 * exec.c (print_section_info): Print entry point.
1137 * i386lynx-nat.c (i386lynx_saved_pc_after_call): Move into
1138 i386lynx-tdep.c. Add core file support.
1139 * i386lynx-tdep.c: New module for Lynx/386 target dependant code.
1140 * maint.c: Add `maint info sections' command to print info about all
1141 sections that BFD knows about for exec and core files.
1142 * sparc-tdep.c (sparc_push_dummy_frame): Update stack pointer
1143 before putting frame on the stack. Consolidate writes to reduce
1144 traffic for remote debugging.
1145 * config/i386/i386lynx.mh (NATDEPFILES): Remove exec.o.
1146 * config/i386/i386lynx.mt (TDEPFILES): Add exec.o, i386lynx-tdep.o.
1147 * config/i386/nm-i386lynx.h: Add target_pid_to_str().
1148 * config/i386/tm-i386lynx.h: Remove target_pid_to_str().
1149 * sparclite/Makefile.in: Add deps to keep Sun make happy.
1153 * breakpoint.h, breakpoint.c (bpstat_stop_status): Add new argument
1155 * infrun.c (wait_for_inferior): Pass it. Also consolidate the
1156 test of whether we are stepping into a CURRENTLY_STEPPING macro.
1160 * breakpoint.c (bpstat_stop_status),
1162 infrun.c (wait_for_inferior): collapse SHIFT_INST_REGS ifdef
1165 * m88k-tdep.c: include ieee-float.h. new global target_is_m88110.
1166 new const struct ext_format_m88110 for float format.
1167 (pic_prologue_code): add braces.
1168 (next_insn): remove unused variable buf.
1169 (frame_find_saved_regs): remove unused variables next_addr,
1171 (frame_locals_address): remove unused variables frame, ap.
1172 (frame_args_address): remove unused variables frame, ap.
1173 (push_parameters): add some breaks and a default case.
1175 * remote-bug.c: remove redundant includes of value.h, target.h,
1177 (bug_open): corrected typo, sr_multi_scan -> gr_multi_scan.
1178 (bug_fetch_register): special case sfip register for m88110.
1179 remove flag bit masking of pc registers. This should be handled
1180 by the ADDR_BITS_* macros.
1181 (bug_store_register): special case sfip register for m88110.
1182 Corrected sprint format for extended registers.
1184 * config/m88k/tm-m88k.h: white space and comment changes. include
1185 ieee-float.h. expanded to cope with m88110 extended registers.
1186 (R0_REGNUM, XFP_REGNUM, X0_REGNUM): new macros.
1187 (SHIFT_INST_REGS): becomes a real macro.
1191 * breakpoint.c (breakpoint_1): Support bp_call_dummy.
1195 * elfread.c (record_minimal_symbol_and_info): Guess the section to
1197 * objfiles.c: Include gdb-stabs.h for SECT_* macros.
1198 (objfile_relocate): Relocate textlow and texthigh in psymtabs.
1199 Relocate partial symbols. Check that minimal SYMBOL_SECTION is
1200 nonnegative before using it.
1201 * symtab.h: Adjust section field comment.
1203 * remote.c (interrupt_query): New function.
1204 (remote_interrupt_twice): Call interrupt_query.
1205 (putpkt, getpkt): If quit_flag is set, call interrupt_query.
1206 (remote_wait): Don't bother with objfile_relocate if the addresses
1208 (remote_fetch_registers): If we see a packet that doesn't start
1209 with a hex character, fetch a new one.
1213 * remote.c, remote-utils.c: Use SERIAL_FLUSH_INPUT after opening it.
1215 * printcmd.c (print_scalar_formatted): When truncating value we are
1216 going to print as unsigned, handle it generally for any length
1217 less than sizeof (LONGEST), rather than special-casing sizeof (char),
1218 sizeof (short), and sizeof (long). Clarify comment on what this
1221 * symfile.c (deduce_language_from_filename): Accept .cxx for C++.
1222 * buildsym.c (start_subfile): Use deduce_language_from_filename
1223 rather than checking for .C or .cc ourself.
1227 * defs.h: Declare argument of re_comp as const char *.
1229 * remote.c, remote-mips.c: Use sr_get_debug not remote_debug.
1231 * README: Say using bfd from another release doesn't generally work.
1235 * mipsread.c (parse_type): Don't complain() if we guessed struct
1236 and it was a union, or vice versa.
1238 * defs.h (make_cleanup): Change PTR to void * when inside PARAMS.
1240 Some of the following is in #ifdef CALL_DUMMY_BREAKPOINT_OFFSET.
1241 * breakpoint.h (enum bptype): Add bp_call_dummy.
1242 (struct bpstat_what): Add call_dummy field.
1243 * infrun.c (wait_for_inferior): Deal with it.
1244 * breakpoint.c (bpstat_what): Deal with call dummy breakpoint.
1245 * infcmd.c (run_stack_dummy): Set the call dummy breakpoint.
1246 * config/sparc/tm-sparc.h: Define CALL_DUMMY_BREAKPOINT_OFFSET.
1248 * remote-sim.h: New file.
1249 * remote-sim.c: Add remote debug feature. Rename stuff to distinguish
1250 interface to simulator from gdb-specific stuff. Other changes.
1252 * remote-sp64sim.c: Renamed to remote-sim.c.
1253 Use sr_get_debug instead of our own sim_verbose/simif_snoop.
1254 Use gnutarget in call to bfd_openr.
1255 Rename simif_* to gdbsim_*.
1256 * config/sparc/sp64sim.mt: Change remote-sp64sim.c to remote-sim.c.
1261 * findvar.c (extract_signed_integer): Cast *p to LONGEST before doing
1262 the xor and subtract. Otherwise it will not sign extend if the type
1263 of LONGEST is larger than int.
1264 * cp-valprint.c (cp_print_class_method): Inhibit core dump if
1265 domain is an undefined cross reference.
1266 * valops.c (call_function_by_hand): Set real_pc to correct
1267 value if CALL_DUMMY_LOCATION != ON_STACK.
1271 * config/a29k/tm-a29k.h (FRAME_CHAIN): If rsize is zero, return zero.
1273 Thu Sep 16 13:16:22 1993 Stu Grossman (grossman at cygnus.com)
1275 * infrun.c (wait_for_inferior): Allow user to single step within
1280 * dbxread.c (copy_pending): Deal with END NULL.
1281 (process_one_symbol): Add comments about what common_block NULL means.
1285 * remote-udi.c, remote-adapt.c, remote-mm.c: Move processor_type
1286 to tm-a29k.h and a29k-tdep.c and make it an enum.
1287 * a29k-tdep.c (a29k_get_processor_type): New function. Fix many
1288 aspects of how we detected the processor type.
1289 * remote-udi.c, remote-adapt.c, remote-mm.c (*_open): Call it
1290 rather than figuring out the type ourselves.
1292 Thu Sep 16 12:12:59 1993 Stu Grossman (grossman at cygnus.com)
1294 * sparc-stub.c (_trap_low): Do restore/save sequence after
1295 setting sp to ensure that we load the previous window from the
1296 right place on the stack.
1300 * mipsread.c: Many changes for alpha ecoff format:
1301 Correct sizeof(int) == sizeof(long) assumptions.
1302 Replace stParsed hack by putting the parsed types on the pending chain.
1303 Replace mips specific ecoff mapping by ECOFF_REG_TO_REGNUM macro,
1304 provide default for cross debugging.
1305 Swapping the symbol back is no longer needed as the symbol is not
1307 Add new alpha basic types, handle btTypedef, handle stStaticProc
1309 Update and clean up cross_ref for alpha cc cross ref variations.
1310 Allocate types on the type_obstack to inhibit storage leaks.
1311 * config/mips/tm-mips.h (ECOFF_REG_TO_REGNUM): Define.
1312 * gdbtypes.c (recursive_dump_type): Dump TYPE_TAG_NAME if it is set.
1316 * stabsread.c (read_type): Process "s" (size) type attribute.
1317 If type is defined to another type, copy the type.
1321 * config/i386/i386v4.mh (NATDEPFILES): Move exec.o from here...
1322 * config/i386/i386v4.mt (TDEPFILES): ...to here.
1326 * Makefile.in (remote_utils_h): add serial.h and target.h.
1327 (main.o, remote-es.o, remote-nindy.o, remote.o): remove target.h
1328 (already in remote_utils_h).
1329 (remote-utils.o): new rule.
1331 * remote-utils.h: include serial.h.
1333 * serial.h: ifdef protect from multiple inclusion.
1335 * remote.c, remote-nindy.c, remote-mon.c, remote-es.c: include
1338 * remote.c (remote_open), remote-nindy.c (nindy_open,
1339 nindy_files_info), remote-mon.c (general_open), remote-es.c
1340 (es1800_open): use remote-utils facilities for baud rate.
1344 * paread.c, coffread.c, elfread.c, dwarfread.c:
1345 Include <time.h> and <sys/types.h> before libbfd.h.
1347 * paread.c: Define BYTES_IN_WORD before including aout/aout64.h.
1349 * Makefile.in (a29k-tdep.o): Depend on $(defs_h).
1350 * config/a29k/tm-a29k.h (SAVED_PC_AFTER_CALL): Use gr122 not lr0
1351 if this is a transparent procedure.
1355 * remote.c: Define remote_debug to 0 and #if 0 baud_rate. Temporary
1356 hack so this file compiles again.
1358 * remote-utils.c (gr_multi_scan): Cast return value from alloca.
1359 (gr_multi_scan): #if 0 never-reached return(-1).
1361 * remote-udi.c (udi_wait): Return inferior_pid not 0.
1365 Collect some remote things into remote-utils.
1366 * remote-utils.[ch]: new files of functions collected from several
1367 different remote targets.
1368 * Makefile.in (REMOTE_O): add remote-utils.o.
1369 (dcache_h, remote_utils_h): new macros.
1370 (HFILES): add $(remote_utils_h).
1371 (ALLDEPFILES): add $(remote_utils_h).
1372 (dcache.o): new rule.
1373 (main.o, remote-bug.o): also depend on $(remote_utils_h).
1374 * target.h (remote_debug): extern moved to remote-utils.h.
1375 * target.c (find_default_run_target, find_core_target): initialize
1377 (remote_debug): moved to remote-utils.c.
1378 (_initialize_targets): move declaration of user variable
1379 remotedebug to remote-utils.c.
1380 * remote-bug.c: include remote-utils.h rather than dcache.h.
1381 (bug_close, bug_write, bug_write_cr, desc, bug_dcache, timeout,
1382 dev_name, check_open, is_open, readchar, readchar_nofail,
1383 pollchar, expect, expect_prompt, get_hex_digit, get_hex_byte,
1384 get_hex_word, bug_kill, bug_detach, bug_create_inferior,
1385 multi-scan, bug_prepare_to_store, bug_fetch_word,
1386 bug_store_word, bug_files_info, bug_mourn, bug_com, bug_device,
1387 bug_speed): removed and replaced with facilities from
1389 (bug_read_inferior_memory): renamed to bug_read_memory.
1390 (bug_write_inferior_memory): renamed to bug_write_memory.
1391 (bug_xfer_inferior_memory): renamed to bug_xfer_memory.
1392 (get_word): comment out this unused function for now.
1393 (bug_settings, cpu_check_strings): new statics.
1394 (bug_open): rewritten to use gr_open.
1395 (_initialize_remote_bug): remove declarations of commands bug,
1397 * main.c: include remote-utils.h.
1398 (baud_rate): removed to remote-utils.c.
1399 (main): handle baud rate settings using new facilities from
1401 * defs.h (baud_rate): removed extern.
1403 m88110 support via bug-197 monitor.
1404 * remote-bug.c (get_reg_name, bug_fetch_register,
1405 bug_store_register): added m88110 extended register support.
1406 (wait_strings): added bug-197 prompt.
1407 (bug_wait): cope with bug-197 prompt.
1408 (start_load): cope with either bug-197 or bug-187 prompt.
1412 * inferior.h, infrun.c, thread.c, infcmd.c: Remove all uses of
1413 pc_changed. If it was ever set to a non-zero value, it was before
1414 GDB 2.8. It doesn't seem to have any useful function.
1416 * defs.h: Don't define NORETURN (see comment).
1420 * m88k-nat.c (fill_gregset): Set r31 and sfip.
1424 * remote-udi.c (udi_wait, case UDIStdinNeeded): Use a loop calling
1425 getchar() (terminated only on '\n') instead of scanf. Send the
1426 '\n' which terminates it to the remote system.
1429 * exec.c (ignore): Return 0.
1430 * stack.c (return_command): Fetch lazy value directly, not via
1431 VALUE_CONTENTS, to avoid "value computed is not used".
1432 * inflow.c (new_tty): Move osigttou inside #if.
1434 * remote.c (remote_fetch_registers): If remote reply is short, just
1435 note that fact and keep going (reading extra registers as all bits 0).
1436 (remote_store_registers): Send number of registers that were found
1437 by remote_fetch_registers.
1438 * m68k-tdep.c, config/m68k/tm-m68k.h, config/m68k/tm-*.h: Remove
1439 HAVE_68881. Define CANNOT_STORE_REGISTER if ptrace() can't write
1441 * config/m68k/{tm-m68k-nofp.h,m68k-nofp.mt,tm-m68k-fp.h,m68k-fp.mt}:
1442 Remove, replaced by {tm-m68k-em.h,m68k-em.mt}.
1443 * Makefile.in, configure.in: Change accordingly.
1447 * mipsread.c (cross_ref): Allow SGI extended symbol types as cross
1449 * symmisc.c (print_symbol): Use TYPE_TAG_NAME not TYPE_NAME to avoid
1450 printing of identities.
1454 * breakpoint.c (breakpoint_1): Deal with step resume breakpoint.
1459 * config/m88k/tm-m88k.h (frame_find_saved_regs): prototype.
1460 * config/h8300/tm-h8300.h (NUM_REGS): rewrite to avoid nested comment.
1461 * blockframe.c (get_prev_frame_info): initialize address.
1462 * breakpoint.c (bpstat_copy): initialize retval.
1463 (bpstat_stop_status): initialize value_is_zero.
1464 (bpstat_what): initialize bs_class.
1465 (breakpoint_1, mention): add do-nothing case for bp_step_resume.
1466 (break_command_1): initialize cond_end, addr_end, &
1467 canonical_strings_chain.
1468 (enable_breakpoint): initialize save_selected_frame.
1469 * buildsym.c (end_symtab): initialize symtab & linetablesize.
1470 * c-exp.y (parse_number): initialize i.
1471 * c-typeprint.c (c_type_print_varspec_prefix): include
1472 TYPE_CODE_BITSTRING in switch statements and do nothing.
1473 * c-valprint.c (c_val_print): removed unused variable c.
1474 * ch-valprint.c (chill_val_print): removed unused variable eltlen.
1475 * cp-valprint.c (cp_print_class_method): initialize f & j.
1476 * eval.c (evaluate_subexp): initialize pc2, arg1, arg2.
1477 * expprint.c (print_subexp): initialize myprec, assoc, & tempstr.
1478 * findvar.c (value_from_register): initialize first_addr.
1479 * gdbtypes.c (lookup_struct_elt_type): localize use of temporary
1481 * infcmd.c (run_stack_dummy): return zero rather than simple
1483 * infrun.c (wait_for_inferior): initialize stop_sp, prologue_pc.
1484 remove symtab, appears unused.
1485 (restore_selected_frame): return 1.
1486 * mipsread.c (psymtab_to_symtab_1): initialize first_off.
1487 (fixup_sigtramp): initialize b0.
1488 * printcmd.c (do_examine): initialize val_type.
1489 (print_frame_args): initialize b.
1490 * ser-tcp.c (tcp_restore): comment out declaration. Appears
1492 * ser-unix.c (hardwire_restore): comment out declaration. Appears
1494 (hardwire_send_break): moved variable status into ifdef
1496 (wait_for): moved variable numfds into ifdef HAVE_SGTTY.
1497 * serial.h: comment change only.
1498 * stabsread.c (rs6000_builtin_type): initialize rettype.
1499 (read_range_type): initialize nbits.
1500 * stack.c (print_frame_info): remove unused variable numargs.
1501 (parse_frame_specification): remove unused variables arg1, arg2,
1503 (return_command): initialize return_value.
1504 * symfile.c (cashier_psymtab): initialize pprev.
1505 * symtab.c (find_pc_psymbol): initialize best.
1506 (lookup_symbol): initialize s.
1507 (make_symbol_completion_list): initialize quote_pos.
1508 * thread.c: include command.h.
1509 (thread_info): static declaration removed; unused.
1510 (info_threads_command): fix == vs = typo.
1511 * typeprint.c (whatis_exp): initialize old_chain.
1512 * valprint.c (val_print_string): remove unused variable
1513 first_addr_err. Initialize old_chain.
1514 (_initialize_valprint): white space comment change.
1515 * values.c (show_values): rewrite if statement to avoid empty
1517 (vb_match): remove unused variable fieldtype_target_type.
1521 * Makefile.in (mipsread.o): Depend on $(bfd_h).
1525 * gdbserver/Makefile.in (TAGS): config files are in
1526 $(srcdir)/../config, not $(srcdir)/config.
1528 * config/pa/tm-hppa.h: Declare target_read_pc and target_write_pc.
1529 (STORE_RETURN_VALUE): Pass the correct offset of the return
1530 register to write_register_bytes.
1531 * hppa-tdep.c: Use target_write_pc if PCOQ_TAIL_REGNUM was not saved.
1535 * remote.c (remote_wait): Don't call error. Instead, call warning
1536 inside a loop. User can ^C to get out.
1538 * config/m68k/tm-m68k.h (FIX_CALL_DUMMY): Changed name of swapping
1539 routine to match BFD name change.
1540 * config/z8k/tm-z8k.h (FIX_CALL_DUMMY): Likewise.
1544 * elfread.c: change elf32_symbol_type to elf_symbol_type
1548 * remote.c (remote_wait): Added 'W' and 'N' responses.
1552 * main.c, utils.c: Add comments about immediate_quit.
1554 * elfread.c (elf_symtab_read): Don't add symbols starting with ".L"
1557 * target.c (pop_target): Don't try to deal with the stack becoming
1558 empty. Shouldn't happen and the code that tried was broken.
1560 * dcache.c: Cast return value from xmalloc.
1562 * remote.c: Move setting of immediate_quit from remote_open to
1563 remote_start_dummy and set it back to zero when done.
1567 * m88k-tdep.c: Remove a bunch of unused #includes.
1569 * language.h: Add comment about current_language.
1571 * mips-tdep.c (_initialize_mips_tdep): Change heuristic-fence-post
1572 from var_uinteger to var_zinteger.
1574 * configure.in: Fix typo (delta88r4 -> delta88v4).
1576 * config/m88k/xm-delta88.h: Don't include sys/siginfo.h. It was
1577 to make this work on SVR4 before SVR4 had its own configuration,
1580 * config/m88k/tm-delta88v4.h: Define FRAME_CHAIN_VALID_ALTERNATE.
1582 * config/m88k/delta88v4.h (NATDEPFILES): Remove infptrace.o inftarg.o.
1584 * config/m88k/xm-dgux.h: Renamed from config/m88k/xm-m88k.h.
1585 * config/m88k/m88k.mh: Use xm-dgux.h.
1586 * config/m88k/xm-m88k.h: New file, with HOST_BYTE_ORDER,
1587 MAKEVA_END and MAKEVA_ARG.
1588 * config/m88k/xm-*.h: Include m88k/xm-m88k.h.
1589 * printcmd.c: Remove __INT_VARARGS_H code; now in xm-m88k.h.
1593 * remote-udi.c (udi_wait): Call `warning' not `error'.
1595 * symtab.c (COMPLETION_LIST_ADD_SYMBOL): If the symbol has a
1596 demangling, don't put the mangled form in the completion list.
1598 * symtab.c, symfile.c, c-exp.y, ch-exp.y, m2-exp.y, buildsym.c,
1599 symfile.h, stabsread.c, minsyms.c, solib.c, nlmread.c, dwarfread.c
1600 partial-stab.h, symmisc.c, gdbtypes.c: Lint. Remove (or put
1601 inside #if) unused variables and labels. Fix unclosed comment.
1602 Deal with enumeration values unhandled in switch statements. Make
1603 sure non-void functions return values. Include appropriate
1605 * dbxread.c (elfstab_build_psymtabs): Don't check for unsigned
1610 * i960-tdep.c, ns32k-pinsn.c, remote-adapt.c, xcoffread.c:
1615 * remote.c: Add comment explaining why dcache is disabled.
1616 (remote_fetch_word, remote_store_word): Make static and #if 0.
1617 They are not called from anywhere.
1621 * arm-tdep.c, convex-tdep.c, convex-xdep.c, dbxread.c,
1622 h8300-tdep.c, h8500-tdep.c, i960-pinsn.c, i960-tdep.c,
1623 infptrace.c, m88k-tdep.c, mips-tdep.c, regex.c, remote-vx.c,
1624 rs6000-tdep.c, xcoffexec.c, xcoffread.c, z8k-tdep.c,
1625 config/arm/tm-arm.h, config/convex/tm-convex.h,
1626 config/gould/tm-np1.h, config/gould/tm-pn.h,
1627 config/m68k/tm-isi.h, config/ns32k/tm-umax.h,
1628 config/pa/tm-hppa.h, config/pyr/tm-pyr.h,
1629 config/rs6000/tm-rs6000.h, config/tahoe/tm-tahoe.h,
1630 config/vax/tm-vax.h: bzero -> memset.
1632 * regex.c: bcmp -> memcmp.
1636 * symtab.c (find_pc_line, find_line_common),
1637 symtab.h (struct linetable), xcoffread.c (arrange_linetable):
1638 Revise comments re linetable sorting.
1639 * buildsym.c (compare_line_numbers): Sort by pc, not by line.
1640 * coffread.c: Tell end_symtab to sort the line table.
1642 * coffread.c: Re-work a lot of the coff-specific stuff to use stuff
1643 in buildsym.c. This includes coff_finish_block, coff_context_stack,
1644 coff_local_symbols, coff_file_symbols, coff_global_symbols,
1645 coff_end_symtab and coff_add_symbol_to_list.
1646 (read_enum_type): Deal with it now that we have a "struct pending"
1647 not a "struct coff_pending".
1649 * buildsym.c (end_symtab): Don't realloc subfile->linetable.
1653 * a68v-nat.c, altos-xdep.c, convex-tdep.c, convex-xdep.c,
1654 findvar.c, hppab-nat.c, hppah-nat.c, i386mach-nat.c,
1655 irix4-nat.c, m68k-tdep.c, m88k-tdep.c, mipsread.c, regex.c,
1656 remote-bug.c, remote-hms.c, rs6000-nat.c, rs6000-tdep.c,
1657 sparc-nat.c, stabsread.c, sun3-nat.c, sun386-nat.c, symfile.c,
1658 umax-xdep.c, xcoffread.c, 29k-share/udi/udip2soc.c,
1659 29k-share/udi/udr.c, config/a29k/tm-a29k.h, config/arm/tm-arm.h,
1660 config/convex/tm-convex.h, config/gould/tm-np1.h,
1661 config/gould/tm-pn.h, config/h8300/tm-h8300.h,
1662 config/h8500/tm-h8500.h, config/i386/tm-i386aix.h,
1663 config/i386/tm-sun386.h, config/i386/tm-symmetry.h,
1664 config/i960/tm-i960.h, config/m68k/tm-news.h,
1665 config/m88k/tm-m88k.h, config/mips/tm-mips.h,
1666 config/ns32k/tm-merlin.h, config/ns32k/tm-umax.h,
1667 config/pa/tm-hppa.h, config/pyr/tm-pyr.h,
1668 config/rs6000/tm-rs6000.h, config/sh/tm-sh.h,
1669 config/tahoe/tm-tahoe.h, config/vax/tm-vax.h,
1670 config/z8k/tm-z8k.h, nindy-share/nindy.c: bcopy -> memcpy.
1674 * mipsread.c (parse_partial_symbols): Use language from FDR if it
1676 * mipsread.c (ecoff_symfile_info): New struct to hold the global
1678 * mipsread.c (mipscoff_symfile_init, parse_partial_symbols):
1679 Allocate the global pending list and link it to the objfile.
1680 * mipsread.c (is_pending_symbol, add_pending): Use global pending
1681 list from objfile. Allocate pending list entries from the
1683 * mipsread.c (free_pending): Remove. The pending list is now
1684 freed when the psymbol_obstack is freed.
1685 * mipsread.c (psymtab_to_symtab1): Remove pending list allocation,
1686 the global pending list is used now.
1687 * mipsread.c (parse_partial_symbols): Skip only the first
1688 file indirect entry when building the dependency list.
1692 Break dcache code out of remote.c.
1693 * dcache.h: white space changes only.
1694 * dcache.c: add user settable variable to set whether data caching
1696 * remote.c: include dcache.h. removed data caching code which is
1697 now in dcache.c. Compile in data caching again. (data caching
1698 is currently off by default.)
1699 (remote_read_bytes, remote_write_bytes): change second arg to
1701 (remote_dcache): new static variable.
1702 * Makefile.in (REMOTE_O): add dcache.o.
1703 * config/m88k/m88k.mt (TDEPFILES): removed dcache.o.
1705 Break dcache code out of remote-nindy.c.
1706 * remote-nindy.c: removed dcache code. Changed callers to use new
1707 conventions. include dcache.h.
1708 (nindy_dcache): new static variable.
1709 * config/i960/nindy960.mt (TDEPFILES): added dcache.o.
1711 Break dcache code out of remote-bug.c into dcache.[hc].
1712 * Makefile.in (dcache_h): new macro.
1713 (HFILES): added $(dcache_h).
1714 (ALLDEPFILES): added dcache.c.
1715 (dcache.o): new rule.
1716 (remote-bug.o): now depends on $(dcache_h).
1717 * remote-bug.c: include dcache.h. remove externs for insque and
1718 remque, add extern for bcopy. Prototype bug_close,
1719 bug_clear_breakpoints, bug_write_cr. dcache code moved to
1720 dcache.[hc]. Changed dcache calling convention to include an
1721 initial DCACHE argument.
1722 (bug_dcache): new static variable.
1723 (bug_read_inferior_memory): change second arg to
1725 * dcache.[ch]: new files.
1726 * config/m88k/m88k.mt (TDEPFILES): add dcache.o.
1730 * c-typeprint.c (c_print_type_base): Treat show = 0 just like
1731 show < 0. The only case where we had been distinguishing is that
1732 show = 0 used to print "struct " or "enum " instead of
1733 "struct {...}" or "enum {...}" which seems clearly wrong.
1737 * configure.in: recognize m88110 as an m88k.
1741 * valops.c (call_function_by_hand): If we discard cleanups, call
1742 bpstat_clear (&inf_status.stop_bpstat).
1746 * stabsread.h, dbxread.c (end_psymtab): Return NULL if the psymtab
1747 was empty and thrown away.
1748 * mipsread.c (parse_partial_symbols): Do not add empty psymtabs to
1749 dependency list, skip self dependencies.
1750 * mipsread.c (parse_fdr): Removed, obsolete.
1751 * mipsread.c (parse_lines): Check for cbLine being zero, not
1753 * mipsread.c (struct symloc): Add pst_language.
1754 * mipsread.c (parse_partial_symbols): Set up proper language for
1755 header files, save it in pst_language for psymtab_to_symtab_1.
1756 * mipsread.c (psymtab_to_symtab_1): Use pst_language.
1760 * configure.in: Fix typo m88*-motorola-svr4* -> sysv4*.
1764 * paread.c: Include som.h instead of libhppa.h. (From Utah.)
1768 * symmisc.c (dump_symtab): Use catch_errors around print_symbol.
1769 Change calling sequence of print_symbol to fit catch_errors.
1771 * mips-tdep.c: Call reinit_frame_cache every time the user does
1772 "set heuristic-fence-post".
1774 * gdbserver/low-sun3.c: New file.
1775 * gdbserver/Makefile.in, config/m68k/sun3.mh: Change accordingly.
1777 * Rename files for 14-character limits:
1778 gdbserver/remote-gutils.c -> gdbserver/utils.c
1779 gdbserver/remote-inflow.c -> gdbserver/low-lynx.c
1780 gdbserver/remote-inflow-sparc.c -> gdbserver/low-sparc.c
1781 gdbserver/remote-server.c -> gdbserver/server.c
1782 remote-monitor.c -> remote-mon.c
1783 * Makefile.in, gdbserver/Makefile.in, gdbserver/configure.in,
1784 config/m68k/monitor.mt, config/i386/i386lynx.mh,
1785 config/sparc/sun4os4.mh: Change accordingly.
1786 * gdbserver/Makefile.in: Remove more junk inherited from gdb Makefile.
1790 * infcmd.c, inferior.h (run_stack_dummy): If we stop somewhere
1791 besides the dummy, return 1 rather than calling error().
1792 Let caller print the error message. Remove name argument.
1793 * valops.c (call_function_by_hand): Deal with changes to calling
1794 sequence of run_stack_dummy. Discard restore_inferior_status cleanup
1795 if run_stack_dummy returns 1.
1799 * config/mips/tm-mips.h (EXTRACT_STRUCT_VALUE_ADDRESS):
1800 Get struct return address from v0, not a0.
1802 * infrun.c (restore_inferior_status): Use catch_errors when
1803 restoring selected frame.
1807 * infrun.c (save_inferior_status, restore_inferior_status):
1808 Save and restore the registers too.
1809 * inferior.h (struct inferior_status): Add "registers".
1813 * dbxread.c (end_psymtab): Clean up comment.
1815 * frame.h, symtab.h, findvar.c (read_var_value): Change basereg
1816 support to use LOC_BASEREG rather than SYMBOL_BASEREG_VALID.
1817 * dwarfread.c: Use LOC_BASEREG where appropriate.
1818 * Various: Support LOC_BASEREG and LOC_BASEREG_ARG.
1820 * coffread.c (init_lineno, init_stringtab): Don't check whether
1821 xmalloc returned NULL.
1823 * config/vax/xm-vaxult.h: Define NO_PTRACE_H.
1825 * target.c, target.h: Add "set remotedebug" command.
1826 * remote-bug.c, remote.c, remote-mips.c: Remove "set remotedebug" and
1827 "set m88ksnoop" options and use generic "set remotedebug" instead.
1828 * NEWS: Describe this change.
1832 * buildsym.h: Remove declaration of dbxread.c functions.
1833 * stabsread.h: Group together dbxread.c functions.
1834 Move elfstab_build_psymtabs here from symfile.h.
1835 Declare pastab_build_psymtabs.
1836 * elfread.c, paread.c: Include stabsread.h (for stabsread_new_init
1841 * remote-bug.c: rename quiet to bug88k_snoop.
1842 (double_scan, multi_scan): generalize double_scan into a scan
1843 for multiple patterns. Rename to multi_scan.
1844 (bug_wait, bug_write_inferior_memory): adapt to use the new
1845 multi_scan in order to catch and represent target bus errors.
1846 (bug_scan): currently unused, so comment out.
1847 (bug_quiet): removed. Replaced with a standard user settable boolean.
1849 * m88k-tdep.c: remove include of sys/dir.h. Appears unnecessary
1850 and isn't available on solaris.
1854 * config/m88k/{delta88v4.mt,delta88v4.mh}: New files
1855 * config/m88k/delta88.mh: Fix comment.
1856 * config/m88k/tm-delta88.h: Remove unused BCS define.
1857 * config/m88k/{tm-delta88v4.h,xm-delta88v4.h,nm-delta88v4.h}:
1859 * configure.in: Recognize m88*-motorola-sysv4*.
1860 * m88k-nat.c: Always include sys/types.h; don't depend on USG.
1864 * mipsread.c (parse_symbol, parse_type, cross_ref): Pass name of
1865 symbol as an argument and use it in complaints.
1866 * symmisc.c (dump_psymtab): Dump filenames of dependencies.
1872 * configure.in: Recognize netbsd.
1876 * remote-nindy.c: Remove unused include of sys/ioctl.h.
1878 * frame.h, symtab.h: Revise comments regarding baseregs.
1882 * mipsread.c (parse_partial_symbols, psymtab_to_symtab_1):
1883 Set language for psymtab and symtab.
1884 * mipsread.c (new_symbol): Set language and initialize demangled
1886 * symmisc.c (print_symbol): Use SYMBOL_SOURCE_NAME when printing
1888 * symtab.c (decode_line_1): Inhibit coredumps with cfront executables.
1892 * Move KERNEL_U_ADDR from xm-hp300bsd.h to nm-hp300bsd.h and make
1893 it conditionalized on 4.3 vs. 4.4.
1894 * config/m68k/nm-hp300bsd.h: Move REGISTER_U_ADDR out of 4.3 and
1895 4.4 sections; it was identical and now works for 4.4.
1897 * mips-tdep.c (is_delayed): Use INSN*BRANCH* not ANY_DELAY.
1899 * printcmd.c (MAKEVA_END): Update this version to use "aligner".
1903 * config/vax/tm-vax.h (BELIEVE_PCC_PROMOTION): Define.
1904 * mipsread.c (parse_symbol, parse_type, cross_ref): Handle corrupt
1905 file indirect entries with complaints instead of core dumps. Remove
1906 complaint for stTypedef within aggregates.
1910 * coffread.c (process_coff_symbol): Ignore tagnames like .0fake.
1912 * coffread.c (coff_read_enum_type): #if 0 out code which changes
1913 enum {FALSE, TRUE} into boolean.
1915 * config/m68k/delta68.m{t,h}: Use nm-delta68.h, etc. not
1916 non-existent files nm-delta.h, etc.
1917 * config/m68k/tm-delta68.h: Define CANNOT_STORE_REGISTER.
1918 * delta68-nat.c: Add "[0]" in offsetof argument.
1919 * delta68-nat.c (_initialize_kernel_u_addr): Don't try to set up
1920 nl with initializer, just assign to it. Check n_scnum field on
1925 * printcmd.c (print_address), values.c (value_as_pointer): Don't
1926 use ADDR_BITS_REMOVE.
1927 * defs.h: Try to clarify comment about ADDR_BITS_REMOVE.
1929 * blockframe.c (block_innermost_frame): Uncomment.
1930 Return NULL if passed NULL.
1931 * frame.h: Declare it.
1932 * expression.h (union exp_element): Add field block.
1933 * parse.c (write_exp_elt_block): New function.
1934 * expression.h (OP_VAR_VALUE): Now takes additional struct block *.
1935 * *-exp.y: Write block for OP_VAR_VALUE.
1936 * eval.c, expprint.c, parse.c: Deal with block for OP_VAR_VALUE.
1937 * valops.c, value.h (value_of_variable), callers:
1938 Add second argument, for block.
1940 * main.c (gdb_readline): If we read some characters followed by EOF,
1941 return them rather than returning NULL.
1945 * mips-tdep.c: Remove unused #ifndef NUMERIC_REG_NAMES and add comment.
1949 * config/m88k/tm-m88k.h: Fix typo in comment.
1950 (FP_REGNUM): define in terms of SP_REGNUM
1951 rather than by absolute number. Also clearly comment that this
1952 is a convenient lie in order to decrease future confusion.
1953 (ACTUAL_FP_REGNUM): new macro for FP.
1954 (FRAME_CHAIN_VALID): removed. Standard default works fine.
1955 * m88k-tdep.c (frame_chain_valid): redundant, so removed.
1956 (NEXT_PROLOGUE_INSN): removed unused fourth arg, fixed all
1958 (read_next_frame_reg): declare static.
1959 (examine_prologue): removed unused variabel insn2, rename insn1
1960 to insn, rewrote comment about finding fp, sp, etc. set frame_fp
1961 based on ACTUAL_FP_REGNUM rather than FP_REGNUM which is
1962 actually a scammed alias for SP_REGNUM on m88k.
1964 * frame.h: fixed typo in comment.
1968 * 29k-share/udi/udiphcfg.h: Always include udiphunix.h not udiphdos.h.
1970 * complaints.c (complain): fflush (stdout) after output.
1974 * blockframe.c, frame.h (sigtramp_saved_pc): New routine to fetch
1975 the saved pc from sigcontext on the stack for BSD signal handling.
1976 * config/i386/tm-i386bsd.h (SIGTRAMP_START, SIGTRAMP_END, FRAME_CHAIN,
1977 FRAMELESS_FUNCTION_INVOCATION, FRAME_SAVED_PC, SIGCONTEXT_PC_OFFSET):
1978 Define to make backtracing through sigtramp work.
1979 * config/vax/tm-vax.h (SIGTRAMP_START, SIGTRAMP_END, TARGET_UPAGES,
1980 FRAME_SAVED_PC, SIGCONTEXT_PC_OFFSET): Ditto.
1984 * main.c (cd_command): If current_directory on entry is "/", then
1985 don't append an extra slash.
1986 Don't assume that /../.. means /.
1988 * target.c (target_xfer_memory): Clear errno before calling
1991 * stack.c (frame_info, print_frame_info): Add comment about using
1992 the starting source line number on a line boundary if backtracing
1997 * blockframe.c (create_new_frame, get_prev_frame_info):
1998 Use the function name when calling IN_SIGTRAMP.
1999 * config/m68k/tm-m68k.h (SIG_PC_FP_OFFSET, SIG_SP_FP_OFFSET):
2000 Define for correct handling of bachtraces through _sigtramp.
2001 * m68k-tdep.c (m68k_find_saved_regs): Adjust saved sp for fake
2003 * mipsread.c (parse_type): Handle corrupt TIR info with complaint
2004 instead of core dump.
2005 * mipsread.c (parse_partial_symbols): Put static symbols into the
2006 mimimal symbol table, use proper mst_types for all minimal symbols.
2007 * stack.c (frame_info, print_frame_info): Use the starting source
2008 line number on a line boundary if backtracing through sigtramp.
2012 * remote-bug.c: include gdbcmd.h.
2013 (sleep, remque, insque): forward decls added.
2014 (bug_fetch_registers, bug_store_registers): forward decls
2016 (bug_read_inferior_memory, bug_write_inferior_memory): forward
2018 (srec_frame, srec_max_retries, srec_bytes, srec_echo_pace,
2019 srec_sleep, srec_noise): new static variables for user settable
2020 options. Mostly these are for debugging and tuning. I don't
2021 expect them to stay user settable options for long.
2022 (timeout): change default to 4 seconds.
2023 (check_open): declare funtion static, force return value.
2024 (readchar_nofail): if timeout, then say so if not being quiet.
2025 (pollchar, double_scan, bug_scan, bug_srec_write_cr,
2026 start_load): new functions.
2027 (bug_wait): rewritten to use double scan.
2028 (expect): while (1) -> for (;;)
2029 (get_hex_digit): rewrite if condition to avoid gcc complaints.
2030 (bug_load, bug_create_inferior, bug_open, bug_store_register):
2031 removed unused variables.
2032 (bug_load): replaced DELTA macro with user settable srec_frame
2033 variable. Other minor lint.
2034 (find_end_of_word, is_baudrate_right, set_rate, not_bug_wait,
2035 gethex, timed_read, translate_addr, bug_before_main_loop):
2036 unsused and removed.
2037 (bug_resume): add missing first arg, pid.
2038 (get_reg_name): use ip rather than cr04.
2039 (bug_write, bug_write_cr, but_clear_breakpoints, bug_quiet):
2040 declare type, args, and explicitly return.
2041 (bug_store_register): straighten out the ip vs cr04 confusion.
2042 (bug_write_inferior_memory): rewrite to cope with errors while
2043 downloading s-records.
2044 (bug_read_inferior_memory): declare static.
2045 (bug_clear_breakpoints): expect nobr before prompt.
2046 (_initialize_remote_bug): add initializations for srec-bytes,
2047 srec-max-retries, srec-frame, srec-noise, srec-sleep,
2050 * Makefile.in (remote-bug.o): new rule.
2051 (ALLDEPFILES): added remote-bug.c
2053 * remote-hms.c (hms_wait): use -1 for timeout's which means block
2054 forever rather than 99999.
2056 * ser-unix.c (get_tty_state): if a descriptor is not a tty, then
2057 simply save encode this fact as the process group and return
2058 success rather than an error.
2059 (set_tty_state): if process group is -1, do not reset the
2061 (hardwire_reachar): comment change.
2063 * serial.h: comment change.
2065 * config/m88k/tm-m88k.h: comment change to remove embedded
2067 (SKIP_PROLOGUE): skip_prologue returns a value which is expected
2068 to reset the pc argument. So reset it.
2072 * Makefile.in (VERSION): Bump to 4.10.1 after release and cvs
2077 * gdbserver/Makefile.in: Use GDBSERVER_LIBS and
2078 GDBSERVER_DEPFILES. Also remove much (but not all that could be
2079 removed) crud inherited from gdb Makefile.in.
2080 * config/i386/i386lynx.mh, config/sparc/sun4os4.mh: Define GDBSERVER_*.
2081 * gdbserver/README: Say it works on Sun and change configuration
2082 instructions slightly.
2086 * config/i386/i386v4.mh: use -lsocket and -lnsl, for remote
2087 targets that use BSD style network connections
2091 * remote-{monitor,bug}.c: Make bug_ops not static (forward declaration
2092 of statics doesn't work with SunOS4 /bin/cc).
2093 Rename the occurrence in remote-monitor.c to monitor_bug_ops.
2097 * blockframe.c (find_pc_partial_function),
2098 mips-tdep.c (find_proc_desc): Deal with "pathological" case.
2102 * utils.c (wrap_here): Allow indent to be NULL.
2103 (fputs_filtered): Don't check for null wrap_indent (wrap_here now
2104 guarantees that it isn't, and anyway we were only checking one out
2105 of the two places we dereferenced it).
2107 * objfiles.h (struct objfile): Clean up comments for
2108 {obj,sym}_private to clarify what they are private to.
2112 * stabsread.c, buildsym.c (hashname): Moved function to
2113 buildsym.c, as suggested in the sources.
2117 * remote-udi.c: Make udi_ops extern rather than trying forward
2118 declaration of a static variable.
2120 * hppab-nat.c: Define ptrace to call_ptrace and pass the 5th arg
2121 there, rather than using an ANSI C specific macro.
2123 * 29k-share/udi/udr.c: Include fcntl.h not sys/fcntl.h. Also put
2124 sys/types.h near the top (just on general principles).
2126 * environ.c (set_in_environ): Remove G960BASE and G960BIN; they are
2129 * gdbcore.h: New variable gnutarget.
2130 * core.c: Add commands to set and show it.
2131 * Callers to bfd_*open*: Pass gnutarget instead of NULL as target.
2132 * environ.c (set_in_environ): For GNUTARGET, use set_gnutarget not
2135 * symtab.c (decode_line_1): Give error on unmatched single quote.
2139 * ser-unix.c (hardwire_send_break) [HAVE_SGTTY]: Use select not usleep.
2141 * remote.c: Add comments about 'd', 'r', and unrecognized requests.
2143 * inflow.c (terminal_init_inferior): Don't muck with tty state if
2144 gdb_has_a_terminal() is false.
2148 * dwarfread.c (record_minimal_symbol): Remove prototype and
2150 * dwarfread.c (add_partial_symbol): Remove code to add minimal
2151 symbols and remove comment about limitations. Experiments show
2152 that now that gdb handles the ELF symtab better for creating
2153 minimal symbols, that no additional information is added by
2154 examining the DWARF information, and in fact, given the
2155 limitations, the DWARF code was actually making things worse.
2159 * elfread.c (elf_symtab_read): Properly sort out the bss symbols
2160 from the data symbols and give them the correct minimal_symbol_type.
2161 Add file static symbols to the minimal symbol table, not just
2162 global symbols. Add absolute symbols as well (like _edata, _end).
2163 Redo stabs-in-elf special symbol handling now that file static
2164 symbols are entered into the into the minimal symbol table.
2165 * dwarfread.c (add_partial_symbol): Add comment about limitations
2166 of DWARF symbols for distinquishing data from bss when adding
2167 minimal symbols. Add file local symbols to minimal symbols.
2171 * ser-go32.c: Define job_control variable.
2175 * configure.in: z8k-coff is the same as z8k-sim
2179 * 29k-share/udi/udip2soc.c: Include sys/types.h before sys/file.h.
2181 * config/i386/tm-i386bsd.h (NUM_REGS): There are only 10, not 11.
2183 * inflow.c: Put all uses of F_GETFL and F_SETFL in #ifdef F_GETFL.
2185 * 29k-share/udi/udip2soc.c: Include fcntl.h not sys/fcntl.h.
2189 * inflow.c (pass_signal): Signal handlers take one int arg;
2190 supply an unused one to make it type compatible as an arg to
2195 * config/mips/tm-mips.h: Include bfd.h before coff/sym.h.
2199 * Makefile.in (ALLCONFIG): Add config/i386/i386nw.mt,
2200 config/m68k/delta68.mh, config/m68k/delta68.mt,
2201 config/m68k/dpx2.mh, config/m68k/dpx2.mt, config/mips/riscos.mh,
2202 config/mips/news-mips.mh.
2203 * Makefile.in (ALLPARAM): Add config/i386/nm-symmetry.h,
2204 config/i386/tm-i386nw.h, config/m68k/nm-delta68.h,
2205 config/m68k/tm-delta68.h, config/m68k/xm-delta68.h,
2206 config/m68k/nm-dpx2.h, config/m68k/tm-dpx2.h,
2207 config/m68k/xm-dpx2.h, config/mips/xm-makeva.h.
2208 * Makefile.in (ALLDEPFILES): Add dpx2-nat.c.
2212 * mipsread.c: Updated for BFD ECOFF changes. Now gets the
2213 swapping routines and external structure sizes via the
2214 ecoff_backend information. No longer includes coff/mips.h.
2218 * Makefile.in (SFILES): Add thread.c
2223 * remote-sp64sim.c (simif_create_inferior): Add FIXME regarding
2224 sim_set_args return code.
2229 * Makefile.in (VERSION): bumped to 4.9.4.
2231 * remote-monitor.c: updated copyright.
2232 (bug_ops, monitor_desc): now static.
2233 (monitor_desc): in several places, check and/or set to NULL.
2235 * remote-hms.c (hms_files_info): Add the appropriate items where
2236 missing in the printf call.
2238 * remote-bug.c: new file for m88k bug support.
2240 * config/m88k/m88k.mt (TDEPFILES): added remote-bug.o.
2244 * h8300-tdep.c: Use new variable h8300hmode.
2248 * valops.c (typecmp): If we are passing a non-reference to a function
2249 which takes a reference, pass the address.
2250 (value_arg_coerce): Don't use COERCE_ENUM; we don't want to dereference
2253 * thread.c (thread_switch): Define as static.
2254 (add_thread): Cast return value from xmalloc.
2256 * gdbtypes.c (fill_in_vptr_fieldno): Call check_stub_type.
2257 * gdbtypes.{c,h}: Improve comments on vptr_fieldno.
2261 * README: Elaborate on gdb C++ support and cfront support.
2263 Mon Aug 2 11:30:57 1993 Stu Grossman (grossman at cygnus.com)
2265 * i386lynx-nat.c, thread.c, thread.h: Update copyrights.
2269 * Makefile.in (ALLDEPFILES): Add i386lynx-nat.c.
2271 Mon Aug 2 08:42:50 1993 Stu Grossman (grossman at cygnus.com)
2273 * gdbserver/remote-inflow.c (create_inferior): Fix comments, and
2274 error msg. Setup seperate process group for child.
2275 * (write_inferior_memory): Sleep for 1 second and retry on ptrace
2278 Sun Aug 1 22:58:18 1993 Stu Grossman (grossman at cygnus.com)
2280 * config/i386/i386lynx.mh (NATDEPFILES): Drop coredep (for now).
2281 * config/i386/nm-i386bsd.h: Protect from multiple inclusion.
2282 * config/i386/nm-i386lynx.h: Lotsa new host porting stuff.
2283 * config/i386/tm-i386lynx.h: Define SAVED_PC_AFTER_CALL and
2286 * Makefile.in (CLIBS): Reorder to make Lynx ld happy.
2287 * (HFILES): New file thread.h.
2288 * (OBS): New file thread.c.
2289 * configure.in: Host config for Lynx/386.
2290 * fork-child.c (fork_inferior): Call init_thread_list().
2291 * infrun.c (resume): Add pid to invocation of target_resume().
2292 * (wait_for_inferior): Pay attention to pid from target_wait().
2293 Multi-threading code now uses this to determine what to do.
2294 * inftarg.c (child_wait): Conditionalize based on CHILD_WAIT macro.
2295 Use target_pid_to_str() macro throughout when printing pid.
2296 * inferior.h (child_resume): Add pid to prototype.
2297 * hppab-nat.c hppah-nat.c infptrace.c (child_resume): Pass in pid as
2298 argument, instead of using inferior_pid.
2299 * procfs.c (procfs_resume): Pass in pid as argument. Ignored for
2300 now. Use target_pid_to_str() macro throughout for printing process id.
2301 * remote-adapt.c (adapt_resume): Pass in pid as argument.
2302 * remote-eb.c (eb_resume): Pass in pid as argument.
2303 * remote-es.c (es1800_resume): Pass in pid as argument.
2304 * remote-hms.c (hms_resume): Pass in pid as argument.
2305 * remote-mips.c (mips_resume): Pass in pid as argument.
2306 * remote-mm.c (mm_resume): Pass in pid as argument.
2307 * remote-monitor.c (monitor_resume): Pass in pid as argument.
2308 * remote-nindy.c (nindy_resume): Pass in pid as argument.
2309 * remote-sa.sparc.c (remote_resume): Pass in pid as argument.
2310 * remote-sim.c (rem_resume): Pass in pid as argument.
2312 * remote-sp64sim.c (simif_resume): Pass in pid as argument.
2314 * remote-st.c (st2000_resume): Pass in pid as argument.
2315 * remote-udi.c (udi_resume): Pass in pid as argument.
2316 * remote-vx.c (vx_resume): Pass in pid as argument.
2317 * remote-z8k.c (rem_resume): Pass in pid as argument.
2318 * remote.c (remote_resume): Pass in pid as argument.
2319 * solib.c (solid_create_inferior_hook): Pass inferior_pid to
2321 * target.c (normal_pid_to_str): New routine to print out process
2323 * target.h (struct target_ops): Add pid to prototype at
2324 to_resume(). (target_resume): Add pid argument.
2325 * (target_pid_to_str): Default definition for normal type pids.
2326 * thread.h, thread.c: New modules for multi thread/process control.
2330 * README: Say that bug-gdb is also the place to send requests
2335 * Makefile.in (make-proto-gdb-1): Use -f opt on rm of Makefile.
2336 * h8500-tdep.c: Add parens around a few macro args.
2340 * TODO: Remove items about unix-to-unix/rapp debugging (now we
2341 have gdbserver), moving xm files to subdirectory, ptype yylval,
2342 and file-local symbols.
2344 * gdbtypes.h: Improve comments about C++ methods.
2348 * c-exp.y: Add missing 5th arg for one call to lookup_symbol, cast
2349 NULL in all other calls to correct pointer types.
2354 * tm-hppa.h (TARGET_WRITE_PC): Define.
2355 * hppa-tdep.c (hppa_fix_call_dummy): If in a syscall,
2356 then return the address of the dummy itself rather than
2357 the address of $$dyncall.
2358 (target_write_pc): New function to store a new PC.
2363 * breakpoint.c (breakpoint_re_set_one): Always reparse breakpoint
2364 conditions, they might contain symbol table references.
2368 * mipsread.c (parse_symbol): Handle opaque struct definitions and
2369 type naming for stTypedef symbols.
2373 * c-exp.y (yylex): Detect C++ nested types.
2378 * sp64-tdep.c (sparc64_frame_chain, sparc64_frame_saved_pc): Deleted.
2379 (dump_ccreg, sparc_print_register_hook): New fns.
2380 * remote-sim.h: New file.
2381 * remote-sp64sim.h (sim_*): External fns. (simif_*): Internal fns.
2383 * config/sparc/sp64.mt: New file.
2384 * config/sparc/tm-sp64.h (FRAME_CHAIN, FRAME_SAVED_PC): Deleted.
2385 (PRINT_REGISTER_HOOK): Call new fn sparc_print_register_hook.
2390 * Makefile.in (ALLCONFIG): Add config/i386/ptx.mh
2395 * infcmd.c (read_pc): Remove PA specific code.
2396 * tm-hppa.h (TARGET_READ_PC): Define.
2397 * hppa-tdep.c (target_read_pc): New function.
2399 * symtab.c (gdb_mangle_name): Deal with it if type lacks a name.
2403 * NEWS: Add note that DEC alpha support is host only, not native.
2404 * README: Emphasize that C++ support works best with GNU C++ and
2405 stabs debugging format.
2406 * delta68-nat.c: Add missing FSF copyright.
2410 * paread.c (pa_symtab_read): Put file-local symbols in minimal symbols.
2411 * hppa-tdep.c (frame_chain_valid): Check that our function has the
2412 same address as _start, not that it must be the same symbol.
2416 * Makefile.in (ALLDEPFILES): Add delta68-nat.c
2417 * Makefile.in (delta68-nat.o): Add dependency.
2421 * value.h (COERCE_ENUM): Use COERCE_REF to coerce refs; value_ind
2422 was adequate in gdb 3.5 but not now.
2424 * valops.c (typecmp): An array in t2 matches a pointer in t1.
2426 * valops.c (typecmp): When comparing type1& to type2, compare
2427 type1 and type2 as leniently as if we were comparing type1 to
2430 * cp-valprint.c (cplus_print_value): Don't dump core if the
2431 baseclass doesn't have a name.
2432 * values.c (vb_match): New function, which finds the virtual
2433 base class pointer even if the types are nameless.
2434 (baseclass_{addr,offset}): Use it.
2436 * hppa-tdep.c: Make "maintenance print unwind" command from old
2439 * remote-udi.c: Remove udi_timer, call to siginterrupt, and associated
2440 obsolete junk which apparently had been copied from the
2441 pre-serial.h remote.c, but which is no longer used.
2445 * Makefile.in (NONSRC): Need 29k-share/README, not
2446 29k-share/udi/README.
2450 * paread.c (pa_symfile_init): If error reading string table, don't
2451 use errno in cases where it hasn't been set.
2453 * ser-unix.c (gdb_setpgid): Pass our pid, not 0, to setpgid.
2455 * remote-monitor.c (_initialize_monitor): Comment out use of
2456 connect_command, since connect_command itself is commented out.
2458 * remote-monitor.c (generic_open): Parse arguments the same way
2461 * hppa-tdep.c (pc_in_linker_stub): Fix unclosed comments.
2465 * config/mips/xm-mips.h: Define HAVE_TERMIOS.
2467 * dbxread.c (record_minimal_symbol): Don't put gcc_compiled or
2468 __gnu_compiled* symbols into the minimal symbols.
2472 * remote-mips.c (_initialize_remote_mips): Added "timeout" and
2473 "retransmit-timeout" variables to set mips_receive_wait and
2474 mips_retransmit_wait, respectively.
2478 * symmisc.c (dump_msymbols): Handle new mst_file_* types.
2482 * remote-udi.c: Remove old comment about download not implemented.
2484 * serial.h, ser-{unix,go32,tcp}.c: Add flush_input and send_break.
2485 * nindy-share/*, remote-nindy.c: Extensive hacking to make it
2486 conform to GDB conventions like using memcpy not bcopy, serial.h,
2487 etc. This is to make it host on Solaris, AIX, etc.
2488 * Makefile.in: Reflect removed nindy-share files.
2489 * config/i960/nindy960.mt (TDEPFILES): Remove ttybreak.o.
2491 * stack.c (print_frame_info): Revise comment about `pathological'
2492 case (there was a wrong FIXME about text labels; also asm() can
2493 trigger this as well as versions of ar which truncate .o names).
2495 * buildsym.c (start_subfile): If a .c file includes a .C file, set
2496 the language of both of them to C++.
2498 * config/sparc/xm-sun4os4.h: Define MEM_FNS_DECLARED and include
2500 Include <malloc.h> rather than declaring malloc functions ourself.
2502 * ser-unix.c (set_tty_state): Don't ignore errors setting process
2504 * inflow.c (terminal_inferior): If attach_flag set, ignore errors
2507 * fork-child.c (fork_inferior): Only quote exec file if needed.
2509 * mipsread.c (parse_symbol): Remove 21 Jul 93 change with
2510 stTypedef inside an stBlock.
2514 * breakpoint.c (breakpoint_1): Walk the breakpoint chain to decide if
2515 we have breakpoints or watchpoints as we might have to ignore internal
2518 Fix gdb core dumps after `file newfile' commands.
2519 * symtab.h, symfile.c (clear_symtab_users): New routine which
2520 unconditionally clears symtab users. clear_symtab_users_once
2521 commented out as it was a noop anyway.
2522 * objfiles.c (free_objfile): Don't call clear_symtab_users_once.
2523 * objfiles.c (free_all_objfiles), symfile.c (new_symfile_objfile),
2524 xcoffexec.c (exec_close): Call clear_symtab_users if necessary.
2525 * symfile.c (syms_from_objfile): Install cleanups for errors during
2527 * coffread.c, dbxread.c, mipsread.c, xcoffread.c (*_symfile_read):
2528 Lint cleanup code, call do_cleanups explicitly.
2529 * symfile.c (symbol_file_add): Call new_symfile_objfile and
2530 reinit_frame_cache _after_ the new symbols are read in.
2534 * mipsread.c (parse_type): Do not set tag name for compiler
2535 generated fake tag names.
2539 * config/m88k/m88k.mt (TDEPFILES): add exec.o.
2543 * hppa-tdep.c: Remove all uses of use_unwind and `set use_unwind'
2544 command. Now we use unwind info by default if we can find it.
2546 * config/sparc: Move VARIABLES_INSIDE_BLOCK and SUN_FIXED_LBRAC_BUG
2547 to tm-sparc.h so they are shared between Solaris and SunOS4.
2548 * dbxread.c (process_one_symbol): Deal with SunOS4 acc N_STSYM and
2551 * config/pa/tm-hppa.h (REGISTER_NAMES): Use "fr" rather than "fp"
2552 for floating point registers.
2554 * mipsread.c (parse_symbol): Put stStaticProc symbols in minimal
2555 symbols as mst_file_text.
2557 * hppa-tdep.c (pc_in_linker_stub): Return 0 if can't read memory.
2559 * stabsread.c (rs6000_builtin_type): Make logical types be
2564 * breakpoint.{c,h} (struct breakpoint): Replace symtab field with
2569 * remote.c: Don't error() on errors xferring memory.
2570 * target.h: Clean up comments about *xfer_memory.
2572 * exec.c, corelow.c (target_ops struct): Don't allow
2573 {insert,remove}_breakpoints to be defaulted to
2574 memory_{insert_remove}_breakpoint.
2576 * demangle.c: Make it so `help set dem' tells you how to get the
2577 list of demangling styles.
2581 * Makefile.in: Use REMOTE_O macro not remote.o.
2582 * config/i960/{nindy960,vxworks960}: Don't use remote.o.
2586 * coredep.c: If NEED_SYS_CORE_H defined, include <sys/core.h>
2587 (can't include it in nm-*.h file because it causes conflicts with
2588 a.out symbol definitions).
2589 * hp300ux-nat.c (fetch_core_registers): Commented out; obsolete.
2590 * config/m68k/hp300hpux.mh (NATDEPFILES): Added coredep.o and
2592 * config/m68k/nm-hp300hpux.h (NEED_SYS_CORE_H): Defined.
2593 (REGISTER_U_ADDR): Defined.
2594 * config/m68k/xm-hp300hpux.h (HAVE_TERMIOS): Define instead of
2596 * config/pa/xm-hppah.h: Likewise.
2600 * mipsread.c (parse_symbol): when stTypedef and friends occur within
2601 an stBlock, skip over the fields of the inner one.
2603 * mips-tdep.c (init_extra_frame_info): If in lenient prologue, call
2604 heuristic_proc_desc rather than just assuming registers not saved.
2606 * Makefile.in (regex.o): Add dependency.
2608 * hppa{b,h}-nat.c: Warning, not error, if can't access registers.
2610 * config/pa/hppa{b,h}.h: Define ATTACH_DETACH.
2614 * config/mips/xm-makeva.h: New file implements va_list alignment
2615 restrictions for mips hosts.
2616 * config/mips/{xm-irix3.h, xm-mips.h, xm-news-mips.h, xm-riscos.h}:
2621 * mips-tdep.c (init_extra_frame_info): Do not check for
2622 mips_in_lenient_prologue if it is a dummy frame.
2623 * mipsread.c (fixup_sigtramp): Initialize pdr.adr, it is used by
2624 mips_in_lenient_prologue.
2628 * mips-tdep.c (heuristic_proc_start): First time we print the
2630 (_initialize_mips_tdep): Improve docstring for `set heur'.
2632 * config/rs6000/tm-rs6000.h: Remove call to insert_step_breakpoint.
2634 * symtab.c (find_line_symtab): New function, to deal with multiple
2635 symtabs with the same name.
2636 (find_line_pc{,_range}): Use it.
2637 (find_pc_symtab): Add comment about overlapping symtabs.
2641 * Makefile.in (SFILES): Add nlmread.c.
2642 * Makefile.in (OBS): Add nlmread.o.
2643 * Makefile.in (nlmread.o): Add new target.
2644 * configure.in (i[34]86-*-netware): New configuration.
2645 * nlmread.c, config/i386/{i386nw.mt, tm-i386nw.h}: New files
2646 for NLM/NetWare support.
2650 * symtab.h (enum minimal_symbol_type): Add mst_file_*.
2651 * partial-stab.h [DBXREAD_ONLY]: Record statics in miminal symbols.
2652 * dbxread.c (record_minimal_symbol): Deal with statics.
2653 * minsyms.c (lookup_minimal_symbol): Prefer externals to statics.
2655 * config/i386/xm-i386sco.h: Define HAVE_TERMIOS.
2657 * printcmd.c, config/pa/xm-pa.h, config/alpha/xm-alpha.h: Make it so
2658 arg_bytes field of makeva_list is always aligned.
2659 * config/pa/xm-pa.h: Make arglist_address a char *.
2661 * ser-unix.c: Don't try to use job control with termio.
2666 Make breakpoint_re_set_one work with overloaded member functions,
2667 `b 123' and `b foo' if foo is a static function.
2668 * symtab.c (decode_line_1, decode_line_2): New argument `canonical'
2669 to return canonical line specs if requested by the caller.
2670 * breakpoint.c, source.c, symtab.c, symtab.h: Change prototypes and
2671 callers accordingly.
2672 * symtab.c (build_canonical_line_spec): New helper function which
2673 constructs the canonical line spec.
2674 * breakpoint.c (break_command_1): Use canonical line spec instead
2675 of command string as addr_string if necessary.
2676 * source.c (line_info): Fix storage leak.
2680 * infptrace.c: Split out define of PT_KILL; Sequent defines PT_KILL
2682 * symm-tdep.c: Remove exec_file_command.
2683 [_SEQUENT_] (ptx_coff_regno_to_gdb, register_addr): New functions.
2684 A few miscellaneous cleanups.
2685 * symm-nat.c: Renamed from symm-xdep.c.
2686 * All symmetry dependent files: Many changes.
2688 * mips-tdep.c (mips_skip_prologue): New argument lenient.
2689 Use read_memory_nobpt.
2690 (is_delayed, mips_in_lenient_prologue): New functions.
2691 (init_extra_frame_info): If in the prologue, don't use saved registers.
2692 * config/mips/tm-mips.h: Declare mips_skip_prologue.
2694 * partial-stab.h (N_SO): Add the text offset to valu before, not after,
2695 passing it to END_PSYMTAB.
2699 * symtab.c (find_pc_symtab): Call warning, not printf directly.
2701 * solib.c (solib_add): Use x{re,m}alloc, not {re,m}alloc.
2705 * mipsread.c: No longer need to undefine ZMAGIC.
2709 * m88k-pinsn.c: Moved code into opcodes/m88k-dis.c.
2710 (print_insn): Now just calls print_insn_m88k.
2714 * h8300-tdep.c (examine_prologue): Make prototype match definition.
2718 * NEWS: Mention that remote.c now has a `load' operation.
2720 * hppa-tdep.c (pc_in_linker_stub): New function.
2721 (find_proc_framesize): Return 0 for linker stubs.
2722 (rp_saved): Tell the caller where rp is saved.
2723 (frame_chain_valid): Return 1 for linker stubs.
2724 (frame_saved_pc): Use return value from rp_saved.
2726 * stack.c (print_frame_info): When checking PC_IN_CALL_DUMMY,
2727 pass the sp relative to the frame in question, not the sp in the
2732 * mipsread.c (parse_procedure): Take as argument the symtab to look
2733 the name up in. Look it up with mylookup_symbol, not lookup_symbol.
2734 (psymtab_to_symtab_1): For stabs, pass the symtab to parse_procedure.
2736 * mipsread.c (mylookup_symbol): Use strcmp, not STREQ, as we have
2737 already checked the first characters.
2739 Changes from Jeffrey Law:
2740 * printcmd.c (makeva_list): Use MAKEVA_EXTRA_INFO to define
2741 machine dependent fields in the makeva_list structure.
2742 (makeva_size): Allocate extra space to handle gaps made by
2743 alignment restrictions.
2744 * config/pa/xm-pa.h (MAKEVA_EXTRA_INFO): Define.
2745 (MAKEVA_START): Initialize arglist_address field.
2746 (MAKEVA_ARG): Always store arguments on natural alignment
2747 boundaries. Set arglist_address to the address right after
2749 (MAKEVA_END): Simply return the value stored in arglist_address.
2753 * ch-valprint.c (chill_val_print, case TYPE_CODE_STRING): Print
2756 * hppah-nat.c (store_inferior_registers): Don't print i in cases
2757 where we aren't using it.
2759 * a29k-tdep.c (get_saved_register): Fix typo.
2763 * configure.in: Recognize h8300h (variant of h8300).
2768 * configure.in: Recognize sparc64-*-*.
2773 * stabsread.c (define_symbol): Make the caddr_t hack apply to `function
2774 returning foo' as well as `pointer to foo'.
2776 * remote.c [REMOTE_BREAKPOINT]: Use for breakpoint insn if defined.
2777 * config/m68k/tm-m68k.h: Define it.
2778 * mem-break.c, breakpoint.c: Improve comments.
2782 * config/m68k/tm-dpx2.h: Replace "tm-68k.h" with "m68k/tm-m68k.h".
2783 * config/m68k/xm-dpx2.h: Define HAVE_TERMIOS not HAVE_TERMIO.
2787 * gdbcore.h (read_memory_integer, read_memory_unsigned_integer):
2788 Make prototype match definition.
2792 * elfread.c: Remove notice about file still being under
2794 * Makefile.in (ultra3-xdep.o, umax-xdep.o): Add missing ')'.
2798 * a29k-tdep.c (read_register_stack): Make val static.
2802 * config/h8300/tm-h8300.h (REGISTER_CONVERTIBLE): Change value to 0.
2803 (REGISTER_CONVERT_TO_VIRTUAL, REGISTER_CONVERT_TO_RAW): Move def'n to
2808 * c-valprint.c (c_val_print): Fix thinko with unspecified length
2811 * hppa-tdep.c (find_proc_framesize): If there is a frame pointer,
2816 * symtab.c (decode_line_1): Use end of block to figure out whether
2817 val.end is in the same function, not minimal symbols.
2819 * source.c (line_info): Add a few more wrap_here's.
2821 * i386-tdep.c (i386_follow_jump): Do byteswapping where needed and
2822 don't make assumptions about sizes of host data types.
2824 * blockframe.c, symtab.h (find_pc_partial_function): New arg endaddr.
2825 * infrun.c, breakpoint.c, printcmd.c: Change callers.
2826 * printcmd.c (containing_function_bounds): Remove.
2827 * printcmd.c (disassemble_command): Use find_pc_partial_function,
2828 not containing_function_bounds.
2829 * infcmd.c (step_1): Use find_pc_partial_function rather than
2830 trying to roll our own. Move check for a pc between SIGTRAMP_START and
2831 SIGTRAMP_END in find_pc_partial_function, not step_1.
2833 * sparc-tdep.c (sparc_frame_chain, frame_saved_pc):
2834 Keep unswapped value in array of char, not REGISTER_TYPE.
2835 Use REGISTER_RAW_SIZE not sizeof (REGISTER_TYPE).
2836 (sparc_extract_struct_value_address): Use TARGET_PTR_BIT not
2841 * configure.in (m68*-bull-sysv*): added support for Bull dpx2.
2842 * config/m68k/{t,x,n}m-dpx2.h, dpx2-nat.c: New files.
2843 * config/m68k/dpx2.m{h,t}: New files.
2847 * config/sparc/tm-sparc.h (PRINT_REGISTER_HOOK): Fix typo, add
2848 more parens around macro arg.
2852 * infrun.c: Remove step_resume_{duplicate,shadow}. Replace
2853 step_resume_break_address with step_resume_breakpoint (now local
2854 to wait_for_inferior).
2855 ({insert,remove}_step_breakpoint): Remove.
2856 (wait_for_inferior): Set step resume break with
2857 set_momentary_breakpoint. Test hitting it with bpstat_stop_status
2858 and bpstat_what (stop_step_resume_break removed).
2859 * breakpoint.{h,c}, infrun.c: Return value from bpstat_what now struct
2860 which includes previous return value as main_action, and a step_resume
2862 * breakpoint.c (delete_breakpoint): If breakpoint was inserted, and
2863 there is another breakpoint there, insert it.
2864 * infrun.c (wait_for_inferior): Rearrange the spaghetti a bit. Use
2866 Various: Clean up and add comments.
2868 * infrun.c [TDESC]: Remove remaining tdesc code (see ChangeLog
2869 for Wed Nov 13 16:45:13 1991).
2873 * values.c, value.h (modify_field), callers: Make fieldval a LONGEST.
2875 * h8300-tdep.c (NEXT_PROLOGUE_INSN): Make pword1 an INSN_WORD *
2879 ({extract,store}_{signed_integer,unsigned_integer,address}):
2880 New routines to replace SWAP_TARGET_AND_HOST.
2881 All over: All uses of SWAP_TARGET_AND_HOST on integers replaced.
2883 * config/sparc/tm-sparc.h: Add comment suggesting that removing
2884 ins and locals from the registers array might clean things up.
2886 * utils.c: Clean up comments about wrap buffer and wrap_here.
2887 * printcmd.c (printf_command): Call wrap_here before vprintf.
2889 * mipsread.c (cross_ref): Set the name to unknown for "struct *" case.
2892 * a29k-tdep.c, findvar.c (get_saved_register): Fix byteswapping sins.
2896 * defs.h, remote-eb.c (TM_FILE_OVERRIDE): Remove it.
2897 * mips-tdep.c (init_extra_frame_info): Set proper fci->frame if pc
2898 is at the start of the dummy code.
2902 * sparc-tdep.c (sparc_push_dummy_frame): Skip all the do_save_insn
2903 stuff, just write the sp and fp.
2904 (sparc_pop_frame): Skip the do_restore_insn; we already restore
2905 the sp with the other out registers.
2907 * hppa-tdep.c (hppa_push_arguments): Allocate enough space for
2910 * hppa-tdep.c: Change _initialize_hppab_tdep to _initialize_hppa_tdep.
2915 * sparc-tdep.c (sparc_frame_chain): Handle sizeof (CORE_ADDR)
2916 != sizeof (REGISTER_TYPE).
2917 (frame_saved_pc): Ditto.
2922 * config/h8300/tm-h8300.h: (REGISTER_TYPES): Adjust for h8/300h.
2923 (REGISTER_RAW_SIZE): Ditto.
2924 (REGISTER_VIRTUAL_TYPE): Use builtin_type_unsigned_long for regs
2925 on the h8/300h (ints may still be 16 bits).
2926 (EXTRACT_RETURN_VALUE, STORE_RETURN_VALUE,
2927 EXTRACT_STRUCT_VALUE_ADDRESS): Add FIXME's for h8/300h. Some
2928 thought needed here.
2930 * h8300-tdep.c (print_insn): Call print_insn_h8300h if h8/300h.
2931 (examine_prologue): reg_save_depth is 4 if h8/300h.
2933 * findvar.c (read_register): Provide some support for 64 bit regs.
2934 (write_register): Ditto.
2938 * config/mips/nm-riscos.h: machine/machparam.h is always the right
2939 place to look for BSD43_NBPG, not machine/vmparam.h
2941 * infcmd.c (run_stack_dummy): New argument name.
2942 Change error message in (another) attempt to make it comprehensible.
2943 * valops.c (call_function_by_hand): Pass name to run_stack_dummy.
2944 * symtab.h: Declare demangle and asm_demangle since macros use them.
2946 * eval.c (evaluate_subexp): Add comment about calling a member
2947 function of a variable in a register.
2949 * expression.h: Clean up comment about string in STRUCT_STRUCT etc.
2951 * config/{rs6000/tm-rs6000.h,sparc/tm-sparc.h,pyr/tm-pyr.h},
2952 inferior.h (PC_IN_CALL_DUMMY) [ON_STACK]: Add comments about stack
2953 frame tops and bottoms.
2955 * frame.h, blockframe.c, stack.c, a29k-tdep.c,
2956 config/gould/tmp-{pn,np1}.h,
2957 config/{sparc/tm-sparc.h,pyr/tm-pyr.h,vax/tm-vax.h}: Remove field
2958 next_frame from struct frame_info. It has no purpose beyond
2959 ->next->frame and is an artifact from GDB 2.8.
2963 * Makefile.in: Remove gdb before creating a new one.
2964 Update init.c atomically.
2966 * Makefile.in (ALLPARAM): Add config/{alpha/xm-alpha.h,pa/xm-pa.h}.
2967 (ALLCONFIG): Add config/alpha/alpha-osf1.mh.
2969 * infcmd.c (_initialize_infcmd): In docstring for "continue",
2970 describe argument as setting ignore count.
2974 * h8300-tdep.c (examine_prologue): Fix call to
2975 read_memory_unsigned_integer.
2979 * config/mips/{x,n}m-irix{3,4}.h: Make some definitions here
2980 rather than including xm-bigmips.h.
2982 * eval.c (evaluate_subexp): Improve error messages for OP_TYPE and
2985 * Makefile.in (distclean): Remove y.tab.h.
2989 * exec.c (exec_file_command): Remove Mar 28 hack as BFD handles
2990 file updates properly now.
2991 * mipsread.c (mips_coff_new_init): Force reevaluation of sigtramp
2992 addresses if switching to a new symbol file.
2993 * dbxread.c (process_one_symbol): Avoid dereferencing NULL
2994 symbols that might be returned from define_symbol.
2998 New target macros for getting at the pc, sp and fp.
2999 * infcmd.c (read_pc, write_pc): Modify to use new macros.
3000 (read_sp, write_sp, read_fp, write_fp): New functions.
3001 * blockframe.c (reinit_frame_cache, get_prev_frame_info):
3003 * breakpoint.c (bpstat_alloc): ditto.
3004 * infrun.c (wait_for_inferior): ditto.
3005 * stack.c (print_frame_info): ditto.
3006 * valops (call_function_by_hand): ditto.
3007 * corelow.c (core_open): ditto.
3008 * h8500-tdep.c: (target_read_sp, target_write_sp, target_read_pc,
3009 target_write_pc, target_read_fp, target_write_fp): New functions.
3010 * inferior.h (read_sp, write_sp, read_fp, write_fp): Prototypes.
3012 * config/alpha/xm-alpha.h: Add MAKEVA_END.
3013 * config/h8500/tm-h8500.h: Define new macros.
3017 * configure.in (mipos-*-riscos*): New host and target; use riscos.
3018 * config/mips/nm-riscos.h: If BSD43_NBPG is not defined by
3019 vmparam.h, include machparam.h.
3020 (KERNEL_U_ADDR): Define to be BSD43_UADDR.
3024 * c-exp.y (yylex): Give error if unmatched single quote.
3026 * configure.in, config/m68k/*delta68*, delta68-nat.c: New port.
3028 * Remove unused STACK_END_ADDR in the following files (in other
3029 files it is used for something): tm-mips.h, tm-sun2.h, tm-news.h,
3030 tm-a29k, tm-i386v.h, tm-hppa.h, tm-nindy960.h, tm-amix.h,
3031 tm-hp300hpux.h, tm-isi.h.
3035 * config/mips/nm-riscos.h: Define NBPG and UPAGES.
3036 config/mips/xm-riscos.h: Include <sys/types.h>.
3038 * ser-unix.c (hardwire_noflush_set_tty_state): Use an assignment,
3039 not an initializer, to copy the structure.
3041 * gdbtypes.h (struct type): Add field tag_name.
3042 * gdbtypes.c (type_name_no_tag), c-typeprint.c (c_type_print_base):
3044 * {coff,dwarf,mips,stabs}read.c: Set it.
3046 * xm-sysv4.h: Undefine HAVE_TERMIO.
3048 * config/mips/nm-riscos.h: Remove unmatched #endif.
3049 Define FETCH_INFERIOR_REGISTERS.
3050 * config/mips/riscos.mh: Don't include coredep.o; mips-nat.o is enough.
3051 Fix misspelling of NAT_FILE.
3052 * mips-nat.c (fetch_core_registers): If KERNEL_U_ADDR is not defined,
3053 we can still process "modern" core files.
3055 * ser-unix.c (hardwire_print_tty_state) [HAVE_TERMIOS]: Don't
3057 (_initialize_ser_hardwire): Just check whether _POSIX_JOB_CONTROL
3058 is defined; don't care what it is defined to.
3062 * config/vax/xm-vaxult2.h: Define FD_SET and FD_ZERO.
3066 * inftarg.c: Remove unused include of terminal.h.
3067 * signals.h: Don't undefine signals anymore.
3068 * main.c: Use job_control from serial.h.
3069 * fork-child.c (fork_inferior): Use gdb_setpgid.
3070 * serial.h, ser-unix.c, ser-go32.c: Provide gdb_setpgid.
3071 * utils.c (quit): Use current_target->to_terminal_ours to figure
3072 out whether we care about lack of job control, rather than __GO32__.
3073 * utils.c: Include serial.h not terminal.h
3074 (quit): Use job_control not TIOCGPGRP.
3075 * terminal.h: Don't undefine TIOCGPGRP.
3076 * serial.h, ser-unix.c, ser-go32.c, ser-tcp.c: Add SERIAL_FLUSH_OUTPUT.
3077 * utils.c (quit): Use it.
3078 * serial.h: Add SERIAL_UN_FDOPEN.
3079 * utils.c (quit): Use it.
3080 * ser-unix.c: Add process group to ttystate.
3081 [HAVE_SGTTY]: Add tchars, ltchars, and lmode to ttystate.
3082 * inflow.c: Include serial.h not terminal.h.
3083 Use serial.h stuff to replace most of the maze of #ifdef's.
3084 * inflow.c, main.c, inferior.h: make gdb_has_a_terminal a function.
3085 * serial.h: Document SERIAL_SET_TTY_STATE as being immediate.
3086 * ser-unix.c: Use TIOCSETN not TIOCSETP so it is true.
3087 * serial.h, ser-unix.c, ser-go32.c, ser-tcp.c:
3088 Add SERIAL_PRINT_TTY_STATE, SERIAL_NOFLUSH_SET_TTY_STATE, and
3089 SERIAL_SET_PROCESS_GROUP.
3090 * inflow.c: Use them.
3091 * config/xm-svr4.h, config/rs6000/xm-rs6000.h, config/sparc/sun4os4.h:
3092 Define HAVE_TERMIOS.
3093 * Various: Remove all use of TIOC*_BROKEN.
3097 * config/m68k/tm-sun3.h (BELIEVE_PCC_PROMOTION_TYPE): Define.
3101 * target.h (target_detach): Turn macro into function.
3102 * target.c (target_detach): Define it, do deferred register stores
3103 before calling the real target function.
3108 * symtab.h (BLOCK_SHOULD_SORT): Do not sort blocks corresponding to
3109 a function to avoid printing of function arguments in wrong order
3111 * symfile.c (compare_symbols): Remove code for sorting arguments
3112 as blocks containing arguments are no longer sorted.
3113 * symtab.c (lookup_block_symbol): Update comment accordingly.
3117 * config/pa/tm-hppa.h: Remove unused ARGS_GROW_DOC.
3118 (REG_STRUCT_HAS_ADDR): Add comment.
3120 * infrun.c (wait_for_inferior): Use find_pc_line not find_pc_symtab
3121 to check whether there is line number information.
3123 Tue Jun 29 08:29:17 1993 david d `zoo' zuhn (zoo at cirdan.cygnus.com)
3125 * remote-udi.c: Fix docstring so that it compiles.
3127 * remote-mips.c, remote-nindy.c: move bfd.h before symfile.h
3132 * dbxread.c (process_one_symbol): If we find a LOC_BLOCK where we
3133 don't expect it, change it to LOC_STATIC so at least we don't coredump.
3135 * c-typeprint.c (c_type_print_base): Don't error() on invalid type.
3137 * symtab.h: Add comments about line numbers.
3138 * source.c (identify_source_line): Fix off by one bug with line.
3142 * printcmd.c (makeva*): New interface, for making a va_list.
3143 (printf_command): Use it.
3144 * config/m88k/xm-delta88.h: Remove VPRINTF define, not needed.
3145 * config/pa/xm-pa.h: New file.
3146 * config/pa/xm-hppa{b,h}.h: Include it.
3148 * xcoffread.c: Remove obsolete NO_TYPEDEFS comment.
3152 * valprint.c (val_print_type_code_int): Fix off by one error with
3153 eliminating leading zeroes for large little endian integers.
3157 * config/mips/riscos.mh (CC): Use -systype sysv.
3159 * ser-unix.c: Move #include of <sys/time.h> to HAVE_SGTTY section.
3161 * Makefile.in (ALLPARAM): Add config/mips/{x,n}-{news-mips,riscos}.h.
3165 * config/m68k/tm-m68k.h: Remove obsolete comment about duplicating
3166 CALL_DUMMY between different 68k machines.
3168 Fri Jun 25 17:02:45 1993 Stu Grossman (grossman at cygnus.com)
3170 * gdbserver/Makefile.in: Add dependancies on server.h.
3171 * gdbserver/remote-gutils.c: Remove lots of unused functions and
3173 * gdbserver/remote-inflow.c: Remove lots of unused variables and
3174 #includes. Also, use PTRACE_* symbols instead of constants.
3175 (mywait): Surround calls to wait() with enable/disable_async_io()
3176 so that we can be interrupted from GDB while waiting for the
3177 child. Also, handle child exit more gracefully.
3178 * gdbserver/remote-server.c: Remove lots of unused variables.
3179 Move all extern defs into server.h. Redo main loop so that
3180 failure from getpkt() causes communications to be re-established.
3181 Fix 'k' command so that it restarts the child.
3182 * gdbserver/remote-utils.c: Remove lots of unloved vars and
3183 subrs. Move many extern decls into server.h. (remote_open): For
3184 tcp, seperate usage of proto fd from connected fd. Close proto
3185 fd after getting connection. (putpkt/getpkt): Pay attention to
3186 errors when reading/writing. Report these to the caller. New
3187 routines input_interrupt/enable_async_io/disable_async_io to make
3188 it possible to get an I/O interrupt when data arrives from the
3190 * serial.h: New file to contain common defs for all remote files.
3192 Fri Jun 25 17:02:45 1993 Stu Grossman (grossman at cygnus.com)
3194 * remote.c: Add arg names to prototypes, in a modest effort at
3195 clarification. Also add prototypes for some new functions.
3196 * (remote_wait): Better error reporting for 'T' responses.
3197 * ser-go32.c (strncasecmp): Make str1 & str2 be const.
3198 * (dos_async_init): Make usage message reflect requested port #.
3199 * ser-tcp.c (tcp_open): Terminate hostname properly to prevent
3200 random hostname lookup failures. Add nicer message for unknown
3201 host error. (wait_for): Wake up in case of exceptions. Also,
3202 restart select() if we got EINTR.
3203 * ser-unix.c (wait_for): Restart select() if we got EINTR.
3204 * serial.c: (serial_close): Clean up code.
3208 * config/m68k/tm-m68k.h: Remove obsolete comment about duplicating
3209 CALL_DUMMY between different 68k machines.
3213 * Makefile.in (*.tab.c): Use ./c-exp.tab.c not just c-exp.tab.c.
3214 Make comment explaining this comprehensible.
3215 (TAGFILES): Include ALLDEPFILES.
3216 (ALLDEPFILES): udi2soc.c and udr.c are in 29k-share/udi, not
3218 (update-alldeps): Remove; obsolete.
3220 * remote.c: Move comments regarding packets to top of file with the
3221 rest of the protocol comments.
3222 Fix incorrect description of 'T' response.
3224 * README (Reporting Bugs): Refer people to the GDB manual.
3226 * c-valprint.c (c_val_print): Handle TYPE_CODE_BOOLEAN.
3227 * stabsread.c: Type -16 is 4 bytes.
3229 * remote-udi.c: Improve docstring.
3233 * elfread.c (elf_symfile_read): Call bfd_elf_find_section, not
3234 bfd_elf32_find_section, to track bfd changes.
3238 * config/mips/riscos.mh (REGEX{,1}, MUNCH_DEFINE, MH_CFLAGS): Define.
3239 * config/mips/xm-riscos.h: Define USG.
3243 * main.c (filename_completer): Don't complete to files ending in ~.
3245 * NEWS: Mention filename completion and "info line" enhancements.
3247 * main.c (symbol_completion_function): On "info t foo", return NULL,
3250 * main.c (symbol_completion_function): Don't use readline word
3251 breaking. Use new calling convention for c->completer and
3252 complete_on_cmdlist.
3253 * command.h (struct command): Change arguments; now the text passed
3254 to completer does not have any word breaking done. New arg word.
3255 * symtab.{c,h} (make_symbol_completion_list): Do word breaking. Take
3257 * {main.c,gdbcmd.h} ({filename,noop}_completer): Take word argument.
3258 * command.{c,h} (complete_on_cmdlist): Take word argument.
3260 * command.c (lookup_cmd_1): Doc fix.
3264 * Makefile.in (OP_INCLUDE): define.
3265 (OPCODE_CFLAGS): use OP_INCLUDE.
3267 * config/i386/ncr3000.mh, config/i386/i386v4.mh,
3268 config/i386/i386sol2.mh, config/m68k/hp300hpux.mh,
3269 config/m68k/amix.mh, config/mips/irix[34].mh,
3270 config/m88k/delta88.mh, config/sparc/sun4sol2.mh (ALLOCA,
3271 ALLOCA1): macros removed.
3273 * config/mips/decstation.mh, config/rs6000/rs6000.mh
3274 (MMALLOC_LIB): renamed to MMALLOC.
3278 * partial-stab.h: Consolidate case statements for N_LSYM and N_FUN.
3279 * dbxread.c: Change comment regarding acc.
3283 Makefile overhaul dropping autodepend features.
3284 * Makefile.in: many comment changes. forced consistent use of $()
3285 for makefile variables references. dropped leading ./ in file
3286 references. Drop $(srcdir)/ prefix on all dependencies.
3287 Inserted contents of alldeps.mak and depend.
3288 (INCLUDE_CFLAGS): defined as new macro for getting libiberty's
3289 include directory into the compilation line.
3290 (GDB_CFLAGS): new macro to take up the semantic previously held
3292 (LIBIBERTY): dropped ancient subdir macro. I last removed this
3293 macro in feb of '92. How does it keep coming back?
3294 (MMALLOC_LIB): renamed to MMALLOC.
3295 (BFD_SRC_DIR): renamed to BFD_SRC.
3296 (BFD_OBJ_DIR): renamed to BFD_DIR.
3297 (BFD_LIB): renamed to BFD.
3298 (BFD_INCLUDES): renamed to BFD_CFLAGS.
3299 (READLINE_DIR): now represents object directory.
3300 (RL_LIB): renamed to READLINE.
3301 (READLINE_SRC, READLINE_CFLAGS, OPCODES, OPCODES_CFLAGS): new
3303 (INTERNAL_CFLAGS): added GDB_CFLAGS, OPCODES_CFLAGS,
3304 READLINE_CFLAGS, BFD_CFLAGS. Dropped USER_CFLAGS.
3305 (LDFLAGS): removed default assignment.
3306 (TEXIDIR, INCLUDE_DEP, MMALLOC_DIR, MMALLOC_DEP, BFD_DEP,
3307 READLINE_DEP, LIBIBERTY_DIR, TESTS, depend, STAGESTUFF): unused, so removed.
3308 (ALLOCA1, ALLOCA): removed all references. alloca is now in
3310 (VERSION): unilaterally and arbitrarily bumped to 4.9.3.
3311 (SFILES, NONSRC, HFILES, ALLDEPFILES, ALLPARAM, ALLCONFIG):
3312 removed all $(srcdir) prefixes.
3313 (getopt_h, ieee-float_h, bfd_h, wait_h, dis-asm_h): new macros
3314 for potential dependencies. commented out by default.
3315 (readline_headers, udiheaders): convenient abbreviations.
3316 (gdbcore_h, frame_h, symtab_h, gdbtypes_h, expression_h,
3317 value_h, breakpoint_h, command_h, gdbcmd_h, defs_h, inferior_h):
3318 new macros used for header file dependencies.
3319 (install-info, clean-info): collapse into the info rule.
3320 (install): now depends on all.
3321 (install-only): new target for installing without depending on
3323 (uninstall): new target.
3324 (config-check, config-check-hosts, config-check-targets): added
3326 (ch-exp.tab.c, m2-exp.tab.c): added artificial dependencies in
3327 order to force parallel makes into keeping these rules separate.
3328 * configure.in: omit cat'ing depend file onto generated Makefile.
3329 * alldeps.mak, depend: removed.
3331 * inferior.h: remove redundant include of symtab.h which is
3332 included in value.h via breakpoint.h.
3334 * alloca.c: removed. alloca is now in libiberty.
3336 * config/m88k/delta88.mh, config/ns32k/merlin.mh (M_UNINSTALL):
3337 new macro to undo what M_INSTALL does.
3341 * config/ns32k/{merlin.mh,xm-merlin.h}: Be consistent about name
3344 * dbxread.c (copy_pending): Change name and function of begi argument
3345 to endi, since that is what the caller needs.
3347 * Makefile.in (TAGFILES): Don't include YYFILES.
3349 * Makefile.in (HFILES): Include monitor.h.
3351 * Makefile.in: Include text that used to be in alldeps.mak.
3352 Remove config/mips/{bigmips.mh,xm-bigmips} from it.
3353 * Makefile.in, configure.in: Remove all traces of alldeps.mak.
3355 * main.c (main): Print help message on stdout not stderr
3357 New option --version per standards.texi.
3358 In help message, show long options with "--" not "-".
3359 Don't try to print help message or version until after we have
3360 called initialize_all_files.
3364 * solib.c (solib_add_common_symbols): Don't call lookup_minimal_symbol.
3365 (solib_add): Call special_symbol_handling once, not once per library.
3367 * procfs.c (procfs_resume): Don't pass a SIGTSTP whose action
3370 * procfs.c (procfs_resume): Skip the unnecessary PRSVADDR on all
3371 systems, not just Solaris.
3373 * stabsread.c: Include <ctype.h>.
3377 * fork-child.c (fork_inferior): Quote exec_file so it can contain
3382 * Makefile.in (INCLUDE_CFLAGS): Add BFD_INCLUDES for now, since
3383 bfd.h is included by target.h, which most of gdb includes.
3384 * depend: Hand remove BFD_INCLUDES from ${CC} lines, now that
3385 it's in INCLUDE_CFLAGS.
3389 * config/i386/*aix*, i386aix-nat.c: New files.
3390 * configure.in: Use them.
3391 * alldeps.mak: List them.
3392 * coffread.c (decode_base_type): Deal with anonymous enum type.
3393 * i387-tdep.c (print_387_status_word): Add comment re "top".
3394 * i386-tdep.c [I386_AIX_TARGET] (i386_extract_return_value): New func.
3395 * dbxread.c: Use SEEK_SET and SEEK_CUR, not L_*. Define them if and
3396 only if not defined by a header file.
3397 * mipsread.c: Don't define L_SET or L_INCR.
3401 * Makefile.in (BFD_INCLUDES): Bfd.h is now back in bfd build dir.
3402 * depend: Hand updated to match.
3406 * stabsread.c (read_struct_fields): Don't call read_cpp_abbrev on $_.
3407 (read_cpp_abbrev): Don't complain specially for $_. Also return 0 if
3408 we don't recognize the abbrev.
3412 * solib.c (solib_add_common_symbols): Add comment about performance.
3416 * config/mips/{{x,n}m-riscos.h,riscos.mh}: New files.
3417 * configure.in (mips-*-sysv*): Use riscos for host, bigmips for target.
3419 * config/mips/{{x,n}m-news-mips.h,news-mips.mh}: New files.
3420 * config/mips/{bigmips.mh,xm-bigmips.h}: Remove.
3421 * configure.in (mips-sony-*): Use news-mips for host.
3423 * buildsym.h: Doc fix for processing_acc_compilation.
3427 * printcmd.c (print_formatted): Don't use tab in wrap_here arg.
3431 * Makefile.in (INTERNAL_CFLAGS): Include ../include as well as
3432 ${srcdir}/../include.
3434 * config/m88k/xm-delta88.h: Comment out unused defines which conflict
3435 with system headers.
3436 * printcmd.c (printf_command): Cast second arg to vprintf to PTR.
3437 Use VPRINTF macro if defined.
3438 * config/m88k/xm-delta88.h: Define VPRINTF. Include <sys/siginfo.h>.
3439 Define TIOC{GETC,GLTC}_BROKEN.
3440 * m88k-nat.c: Uncomment include of <sys/ptrace.h>.
3441 * main.c: Rename initialize_{main,cmd_lists,history} to init_* to
3442 make things easier on munch (apparently this matters on
3443 the delta88 with svr3).
3447 * Makefile.in: canonicalize install.sh; for use within
3448 this directory (and subdirs)
3450 Tue Jun 15 17:01:23 1993 david d `zoo' zuhn (zoo at cirdan.cygnus.com)
3452 * Makefile.in: remove parentdir support; use INSTALL_XFORM
3456 * configure.in (alpha-*-osf*), config/alpha/alpha-osf.mh: New
3458 * sh-tdep.c (frame_find_saved_regs): Use NUM_REGS rather than hard
3459 wired (and wrong) constant.
3460 * values.c (unpack_long): Add case to unpack when target object is
3462 * config/sh/tm-sh.h (REGISTER_NAMES): Know about the news ones the
3467 * NEWS: tracking user visible changes starting with
3470 * remote-vx.c (_initialize_vx): rename user settable option from
3471 rpcTimeout to vxworks-timeout.
3475 * Makefile.in (depend): More makefile diddling.
3476 * alldeps.mak, depend: Update to latest automatically built
3479 * Makefile.in (depend): Bfd.h keeps moving, keep up with it.
3480 * alldeps.mak, depend: Update to latest automatically built
3485 * remote-vx.c: include gdbcmd.h for setlist.
3486 (_initialize_vx): make rpcTimeout user settable.
3490 * main.c, gdbcmd.h: Add function filename_completer.
3491 * main.c, symfile.c, source.c, exec.c, core.c: Use it for
3492 "directory", "source", "cd", "symbol-file" "add-symbol-file",
3493 "load", "file", "exec-file", "core-file" commands.
3494 (But '/' is a word break, limiting usefulness; see comments).
3496 * source.c (mod_path): Warning not error if can't find directory.
3498 * isi-xdep.c: New file.
3499 * config/m68k/isi.mh (XDEPFILES): Add isi-xdep.o
3503 * config/m68k/xm-news.h: Include <sys/param.h>.
3505 * m88k-tdep.c (IEEE_isNAN): Remove.
3506 config/m88k/tm-m88k.h (INVALID_FLOAT): Return 0. This was the same
3507 broken isNAN as on the mips.
3509 * valprint.c (_initialize_valprint): Use c->function.sfunc not just
3512 * dbxread.c (process_one_symbol): If SUN_FIXED_LBRAC_BUG is not
3513 defined, don't worry about Sun's silly LBRAC bug.
3514 * config/m68k/tm-sun3.h: Define SUN_FIXED_LBRAC_BUG to 0.
3516 * dbxread.c (process_one_symbol): If there's a symbol before an
3517 N_SO, don't error().
3518 (case N_BCOMM): complain () not error ().
3520 * defs.h, main.c (catch_errors): Add return_mask arg.
3521 stack.c (print_frame_info): Pass RETURN_MASK_ERROR.
3522 other callers: Pass RETURN_MASK_ALL.
3523 (return_to_top_level), callers: Add return_reason arg.
3525 Use return_to_top_level (RETURN_QUIT) instead of error ().
3526 * main.c (main), tm-nindy960.h (ADDITIONAL_OPTION_HANDLER):
3527 Use SET_TOP_LEVEL not setjmp (to_top_level).
3528 * remote-nindy.c: Use catch_errors not setjmp (to_top_level).
3532 * solib.c (solib_create_inferior_hook) [SVR4_SHARED_LIBS]:
3533 Don't try to get the debug base yet.
3535 * dbxread.c (process_one_symbol): Set n_opt_found based on whether
3536 a non-gcc N_OPT symbol is found. Make SUN_FIXED_LBRAC_BUG a macro
3537 which returns 0 or 1 to say whether to do it.
3538 * config/sparc/sun4{sol2,os4}.h
3539 (SUN_FIXED_LBRAC_BUG,VARIABLES_INSIDE_BLOCK): Use n_opt_found so
3540 the right thing happens for both acc and SunOS4 /bin/cc.
3542 * valprint.c (print_hex_chars): Use local_hex_format_{pre,suf}fix.
3543 * printcmd.c (print_scalar_formatted): Use val_print_type_code_int.
3545 * mips-tdep.c: Remove isa_NAN; it assumed sizeof(host int) == 4 and
3546 probably contained byte-order sins too.
3547 config/mips/tm-mips.h (INVALID_FLOAT): Define to 0 like most machines.
3548 The IEEE_FLOAT code in print_floating takes care of it.
3552 * Makefile.in (VERSION): Bump to 4.9.2.
3553 * c-valprint.c (c_val_print): For array of chars printed with
3554 string syntax, don't print the address of the array. From
3556 * c-exp.y (yylex): Recognize '.' as indicating a floating point
3558 * valprint.c (set_input_radix_1, set_output_radix_1): New
3559 prototypes and functions that do the actual radix setting work.
3560 * valprint.c (set_radix, set_output_radix, set_input_radix):
3561 Rewrite to use set_input_radix_1 and set_output_radix_1.
3562 * valprint.c (initialize_valprint): Enable commands to
3563 independently set and show input and output radices.
3564 * valprint.c (show_radix): New prototype and function that
3565 handles separate input and output radices.
3570 * hppa-pinsn.c: Now uses disassembler from opcode library,
3571 this contains only the stub function print_insn.
3575 * main.c (main): back to two periods for elipse.
3576 (print_gdb_version): revised format for configuration info.
3580 * defs.h (INT_MAX): Cast unsigned shift result to int.
3584 * dbxread.c (process_one_symbol): Rather than having
3585 BLOCK_ADDRESS_FUNCTION_RELATIVE a macro, make it a variable which
3586 is true if we are doing stabs-in-elf, false otherwise.
3587 config/sparc/tm-sun4sol2.h: Don't define it.
3591 * remote-mips.c (mips_send_packet): Don't print garbage character
3593 (mips_request): Don't check that remote pid is 0, because
3595 (mips_fetch_registers): Pass a pointer to SWAP_TARGET_AND_HOST,
3600 * stack.c (print_frame_info): Use catch_errors around print_frame_args.
3602 * Makefile.in (install): Don't depend on gdb.
3604 * Rename remote-es1800.c to remote-es.c
3605 and remote-st2000.c to remote-st.c for 14-char filenames.
3606 config/m68k/{es1800,st2000}: Use the new names.
3608 * mips-tdep.c (isa_NAN): Don't return true on -0.
3612 * defs.h (INT_MAX): Cast unsigned shift result to int.
3616 * elfread.c (elf_symtab_read): Add bfd section address to bfd
3617 symbols, now that they are section relative.
3618 * solib.c (bfd_lookup_symbol): Ditto.
3622 * Makefile.in (depend): Add bfd -I's for paread.c and xcoffexec.c
3623 depend: Updated accordingly.
3627 * Makefile.in (*.tab.c): Use mv for atomic update.
3629 * Makefile.in ({dist,real}clean): Also remove nm.h.
3630 (realclean): Also remove ${TESTS}, y.output, yacc.{acts,tmp}.
3631 (distclean): Don't rebuild *.tab.c or TAGS.
3635 * Makefile.in (version.c): add host and target names to version.c.
3636 * main.c (main): print three periods for the elipse.
3637 (print_gdb_version): also print configuration.
3639 * udi/udiids.h, udi/udip2soc.c, udi/udiphcfg.h, udi/udiphunix.h,
3640 udi/udiproc.h, udi/udipt29k.h, udi/udiptcfg.h, udi/udisoc.h,
3641 udi/udr.c: Change AMD copyrights to FSF copyleft '93.
3643 * remote-eb.c (get_hex_regs, eb_fetch_registers), remote-adapt.c
3644 (get_hex_regs, adapt_fetch_registers): cast args to
3645 supply_register to avoid gcc warning.
3647 * config/a29k/a29k.mt (TDEPFILES): drop minimon support. It
3648 doesn't compile on solaris and is now obsolete.
3650 * config/sparc/sun4os4.mh (XM_CLIBS): remove -lresolv. This
3651 breaks stock sunos installations.
3655 * m68k-stub.c: Add comment about frame cache.
3657 * target.h (target_store_registers): Doc fix re error handling.
3659 * findvar.c (write_register): Call SWAP_TARGET_AND_HOST regardless
3660 of register_valid[regno].
3664 * symtab.h, dwarfread.c: Doc fix re dependencies.
3668 * serial.c (serial_close): If scb is NULL, don't try to close
3670 * configure.in: Add support for rom68k and bug boot monitors.
3674 * coffread.c (init_stringtab): Fix bug where sizeof(long) != 4.
3675 * gdbcore.h, core.c (read_memory_unsigned_integer): New function.
3676 * findvar.c (read_register, write_register): Fix thinko where
3677 sizeof(host long) != sizeof(target int).
3678 * h8300-tdep.c: Use new read_memory_unsigned_integer call.
3679 * sh-tdep.c (_initialize_sh_tdep): Add memory_size command.
3683 * Move config/m68k/tm-m68k.h (FRAME_FIND_SAVED_REGS) to
3684 m68k-tdep.c (m68k_find_saved_regs). Don't duplicate code between
3685 68881 and non-68881 cases. Check for a pair of movel instructions.
3689 First cut at sparc-vxworks targetting.
3690 * config/sparc/tm-vxsparc.h, config/sparc/vxsparc.mt: new files.
3691 * configure.in: sparc-vxworks gdb_target now vxsparc.
3693 * remote-eb.c, remote.c: symfile.h requires bfd.h so include it.
3697 * config/m68k/xm-news.h: add "extern int errno".
3701 * remove-vx.c (vx_read_register, vx_write_register): collapse
3702 ifdef I80960 else (assumes) m68k into parameterizable macros
3703 VX_NUM_REGS and VX_SIZE_FPREGS.
3704 * config/m68k/tm-vx68.h, config/i960/tm-vx960.h (VX_NUM_REGS,
3705 VX_SIZE_FPREGS): new definitions.
3709 * symfile.{c,h} (generic_load): New function.
3710 remote{,-nindy,-eb,-mips}.c: Use it.
3714 * Makefile.in (depend): More sed gubbish to deal with
3715 ../bfd/bfd.h being generated during the build.
3716 * depend: Re-done with corrected makefile.
3720 * Makefile.in (BFD_SRC_DIR): Renamed def and usages from BFD_DIR.
3721 * Makefile.in (BFD_OBJ_DIR): New definition for the bfd build
3722 directory to find automatically generated header files and library.
3723 * Makefile.in (BFD_LIB): Use BFD_OBJ_DIR.
3724 * Makefile.in (LINTFLAGS): Include BFD_OBJ_DIR.
3725 * Makefile.in (saber_gdb): Include BFD_OBJ_DIR.
3726 * Makefile.in (depend): Include BFD_OBJ_DIR in gcc args.
3727 * Makefile.in (paread.o, xcoffexec.o): Remove, now in depend.
3728 * depend, alldeps.mak: Rebuild after Makefile.in changes.
3730 Fri Jun 4 10:18:51 1993 david d `zoo' zuhn (zoo at cirdan.cygnus.com)
3732 * configure.in: change lynx support to CPU-*-lynxos*
3734 * Makefile.in (subdir_do): change test from existence of directory
3735 to existence of Makefile (the directory may exist but not be configured)
3737 Thu Jun 3 01:18:51 1993 david d `zoo' zuhn (zoo at cirdan.cygnus.com)
3739 * config/sparc/xm-sun4sol2.h: define MEM_FNS_DECLARED
3743 * configure.in (mips-idt-ecoffl*): New target; use idtl.
3744 (mips-idt-ecoff*): Added trailing '*'.
3745 * config/mips/idtl.mt: New file; like idt.mt, but little endian.
3749 * ser-go32.c: Clean up lots of compilation nits.
3754 * hppab-nat.c: Eliminate unnecessary ifdefs for
3755 FETCH_INFERIOR_REGISTERS, CANNOT_FETCH_REGISTER, and
3756 CANNOT_STORE_REGISTER.
3757 (fetch_register): Delete code to handle CANNOT_FETCH_REGISTER.
3758 * hppa-pinsn.c: Support 'I', 'J', and 'K' in output
3759 templates for 1.1 FP computational instructions.
3763 * Makefile.in: Remove ser-tcp.[co]. (Use XDEPFILES instead.)
3764 * alldeps.mak, depend: Rebuild to account for ser-tcp.
3765 * config/sparc/sun4os4.mh: Add ser-tcp to XDEPFILES.
3766 * gdbserver/Makefile.in (gdbserver): Use -lbsd.
3767 * gdbserver/remote-inflow{-sparc}.c (create_inferior): Don't use a
3768 shell when running the child, as args have been expanded by the
3769 time we get here. Simplify calling convention.
3770 * gdbserver/remote-server.c (main): Use new calling convention
3771 for create_inferior, remove defunct code for coalescing argv.
3772 Remove extra calls to mywait(), as we no longer have to wade
3775 * target.c (target_read_memory_partial): Don't deref errnoptr
3776 when checking for null pointer.
3780 * remote-es1800.c: Fix typo.
3784 * target.c (target_read_memory_partial): Like target_read_memory,
3785 but does partial reads, such as reads that bump into the end of
3787 * target.h (target_read_memory_partial): Add prototype.
3788 * valprint.c (PRINT_MAX_DEFAULT): New define, initial value 200.
3789 * valprint.c (val_print_string): Complete rewrite to fix bug with
3790 bumping into end of memory, avoiding unnecessarily long reads, and
3791 fixing bug when print_max is set to 0 (unlimited print length).
3792 * valprint.c (_initialize_valprint): Use PRINT_MAX_DEFAULT to
3793 initialize print_max.
3795 Tue Jun 1 18:11:35 1993 Rob Savoye (rob at darkstar.cygnus.com)
3797 * configure.in: Add support for rom68k and bug boot monitors.
3801 * printcmd.c (print_scalar_formatted): Print integers bigger than
3802 LONGEST in hex no matter how big, and no matter what the format
3805 * stabsread.c (read_type): Skip type attributes if present.
3807 * stabsread.c (read_huge_number): Don't accept '0' + radix as part
3808 of number, just through '0' + radix - 1.
3812 * Makefile.in (SER_HARDWIRE): Temporarily comment out ser-tcp.o.
3814 * {dbxread.c, dwarfread.c} (read_ofile_symtab): Rewrite to take
3815 single parameter, the pointer to the partial symtab, rather than
3816 a bunch of args that are derived from the partial symtab. Change
3817 prototypes and callers to match.
3819 * dbxread.c (read_ofile_symtab): Remove "#if 1" around code to
3820 set demangling style automatically.
3821 * defs.h (CPLUS_MARKER): Clarify comment that this is only for
3822 GNU C++, not C++ in general.
3823 * symtab.h (general_symbol_info): Simplify by eliminating one
3824 structure level for the language dependent info.
3828 * c-typeprint.c (c_type_print_base): Avoid dereferencing NULL
3829 names for TYPE_CODE_STRUCT and TYPE_CODE_UNION types.
3830 TYPE_CODE_ENUM was already testing for this.
3834 * Makefile.in: Add new file ser-tcp.c.
3835 * defs.h (memcmp): Add decl for memcmp to #ifndef MEM_FNS_DECLARED.
3836 * findvar.c (write_register): See if we are writing back the same
3837 value that's already in the register. If so, don't bother.
3838 * remote.c (putpkt, getpkt): Improve handling of communication
3840 * ser-go32.c: Prototype it to death. Update serial_ops and add
3841 dummy routines where appropriate.
3842 * ser-tcp.c: New module to implement serial I/O via TCP
3844 * ser-unix.c: Clean up getting/setting of tty state. Get rid of
3845 SERIAL_RESTORE, add SERIAL_{GET|SET}_TTY_STATE interfaces.
3846 * serial.c: Add start of support for connect command.
3847 (serial_open): Distinguish between tcp and local devices.
3848 * serial.h (struct serial_ops): Get rid of restore, add
3849 get_tty_state and set_tty_state. Define protoypes and macros for
3851 * gdbserver/remote-utils.c: Add tcp support. (readchar): Do
3852 some real buffering. Handle error conditions gracefully.
3853 * gdbserver/remote-inflow-sparc.c: Update to remote-inflow.c
3854 (Lynx), remove lots of cruft.
3856 Fri May 28 17:24:51 1993 david d `zoo' zuhn (zoo at cirdan.cygnus.com)
3858 * printcmd.c (print_address_symbolic): turn this into an assigment
3859 instead of an initialization (many compilers don't accept
3860 structure initialization).
3864 * xcoffread.c (read_xcoff_symtab): If several program csects in one
3865 source file, give them all the name of the source file, rather than
3866 the 2nd and subsequent ones having NULL names.
3870 * printcmd.c (print_address_symbolic): Append source filename and
3871 linenumber of the symbol if print symbol-filename is on.
3872 (initialize_printcmd): `set print symbol-filename'.
3876 * configure.in: Add config for Lynx target. Configure gdbserver
3877 only for Lynx. Re-do selective configuration of sparclite.
3879 * gdbserver/{remote-gutils.c remote-server.c Makefile.in
3880 configure.in remote-inflow.c remote-utils.c}: New files to
3881 support GDB remote server. Currently only works for Lynx.
3885 * stabsread.c (define_symbol, case 't'): Only set the name if it
3886 is not a pointer type.
3888 * stabsread.c (define_symbol): Clean up logic; move the read_type
3889 calls to inside the switch statement (this improves the error
3892 * mipsread.c (parse_symbol, parse_partial_symbols): Deal with Fortran
3897 * printcmd.c (print_formatted, case 'i'): Pass a tab to wrap_here.
3899 * source.c (line_info): Change "pc" to "address" in messages and
3900 use print_address for addresses.
3902 * source.c (line_info): If we don't find a symtab, print more useful
3903 output, including the symbolic address.
3905 * source.c (line_info): If --fullname, display the source.
3906 (identify_source_line), callers: Take pc as argument, rather than
3907 assuming innermost frame (emacs doesn't use this, so no one ever
3909 * symtab.h: Declare frame_file_full_name.
3914 * breakpoint.c (catch_command_1): Fix typo in error msg.
3918 * elfread.c (elf_symfile_read): Update ELF structure and routine
3919 names to specify 32-bit versions.
3920 (elf_symtab_read): Retrieve size field directly from symbol,
3921 instead of using old kludge.
3923 * mips-pinsn.c (print_insn): Cast address to bfd_vma before
3924 calling opcodes library.
3925 * z8k-tdep.c (print_insn): Likewise.
3929 * stabsread.c: Remove all uses of error(). Make error_type and
3930 read_type_number static.
3931 (define_symbol): Don't try to deal with a missing symbol
3932 descriptor which isn't followed by digit, '(', or '-'.
3933 * stabsread.h: Don't declare read_type_number here.
3934 * gdbtypes.h: Don't declare error_type here.
3935 * xcoffread.c: Remove NO_TYPEDEFS code.
3939 * mips-tdep.c: Removed #include of many header files, and #define
3940 of MIPSMAGIC; no longer used.
3944 * Many places: replace "the inferior" in messages with "the program"
3945 or "the program being debugged".
3946 * inflow.c (try_writing_regs): Remove; it's been #if 0'd forever
3947 and I'm getting sick of maintaining it.
3949 * config/i386/linux.mh: Don't use \ newline; the awk scripts don't
3952 * config/i386/go32.mh: Define SER_HARDWIRE.
3953 * Makefile.in: Define SER_HARDWIRE.
3955 (alldeps.mak): Add SER_HARDWIRE.
3956 Remove all references to ser-hardwire.{c,o}.
3957 * configure.in: Remove all ser_hardwire and gdb_serial_driver stuff.
3961 * sparc-nat.c (store_inferior_registers): Fill in all members of
3962 inferior_fp_registers by reading them from the inferior before
3963 modifying and writing them back.
3964 Fixes unexplainable inferior FP exceptions after calls to the inferior
3965 or setting of floating point registers.
3966 * mips-tdep.c (mips_skip_prologue): Skip move of argument register
3967 to register which is generated by gcc-2.4.
3971 * hppa-pinsn.c: Define OLD_TABLE before including opcode/hppa.h.
3975 * config/i386/{i386lynx.mh i386lynx.mt nm-i386lynx.h tm-i386lynx.h
3976 xm-i386lynx.h}: New configuration for Lynx.
3980 * mipsread.c (parse_symbol): Deal with scVar and scVarRegister.
3981 * symtab.h: Comment that LOC_REGPARM_ADDR can be call by reference.
3983 * c-typeprint.c (c_type_print_base): Don't print typedef'd names
3984 as struct, union, or enum tags.
3988 * symmisc.c (dump_msymbols): Avoid gdb coredump with stripped
3993 * infrun.c (wait_for_inferior),
3994 infcmd.c (program_info, signal_command): Use symbolic signal names.
3996 * inftarg.c (child_wait): Deal with EINTR and include message from
3997 strerror if printing an error message.
3999 * main.c (command_line_input): Use STOP_SIGNAL not SIGTSTP.
4001 * stabsread.c: Remove most uses of lookup_fundamental_type.
4002 (define_symbol): Use read_type for type of enum constant,
4003 not just read_type_number. Also don't call error().
4004 (define_symbol): For unrecognized constant type, one complaint (the
4005 one from error_type) is enough. Don't make our own in addition.
4006 (define_symbol): Don't treat an N_FUN 'R' as a prototype.
4007 * gdbtypes.h: Doc fixes.
4011 Fix stack unwinding through _sigtramp on Irix. These patches are from
4013 * mipsread.c (fixup_sigtramp): Find _sigtramp on Irix even when the
4014 executable uses sigvec.
4015 * mips-tdep.c (read_next_frame_reg): Allow tm-file to override
4017 * config/mips/tm-irix3.h: Add sigcontext offsets for Irix.
4021 * infrun.c (wait_for_inferior): Clear stop_signal if it should not
4022 be passed to the inferior to make "handle <signal> nopass nostop" work.
4026 * config/mips/tm-irix3.h: Clean up, use tm-bigmips.h and redefine
4028 * findvar.c (value_from_register): Fix uninitialized first_addr
4029 which caused problems with assignment of doubles to register variables
4031 * mipsread.c: Remove TM_FILE_OVERRIDE, include tm.h and provide the
4032 missing mips definitions if necessary.
4034 Fix handling of double register variables for mips targets and big
4036 * config/mips/tm-mips.h: Increase MAX_REGISTER_{RAW,VIRTUAL}_SIZE to
4037 8 bytes for doubles.
4038 * config/mips/tm-mips.h (REGISTER_CONVERT_TO_TYPE): New macro for
4039 conversion of type held in multiple registers to host format.
4040 * config/mips/tm-mips.h (REGISTER_CONVERT_FROM_TYPE): New macro,
4041 companion to REGISTER_CONVERT_TO_TYPE.
4042 * config/mips/tm-mips.h (EXTRACT_RETURN_VALUE, STORE_RETURN_VALUE):
4043 Convert to function calls.
4044 * config/mips/tm-mips.h (FIX_CALL_DUMMY): New code for big endian
4046 * mips-tdep.c (mips_print_register): Raw buffer now needs just
4047 MAX_REGISTER_RAW_SIZE bytes.
4048 * mips-tdep.c (mips_print_register): Use REGISTER_CONVERT_TO_TYPE
4049 (if defined) for doubles.
4050 * mips-tdep.c: (mips_extract_return_value, mips_store_return_value):
4051 New functions, take care of REGISTER_CONVERT_TO/FROM_TYPE.
4052 * valops.c (value_assign): Use REGISTER_CONVERT_TO_TYPE if
4054 * findvar.c (value_from_register): Use REGISTER_CONVERT_TO_TYPE if
4059 * configure.in: Add i[34]86-*-isc*.
4061 * stabsread.c: Make sure all complain() pass the address of the struct.
4063 * xcoffread.c: Make sure all struct complaints are static not auto.
4065 * Makefile.in: Add rule for xcoffexec.o like that for paread.o.
4067 * xcoffread.c (process_xcoff_symbol, case C_LSYM): Use define_symbol.
4071 * config/i386/linux.mh: Re-enable coredumps now that they should work.
4075 * config/m68k/tm-m68k.h (FRAME_CHAIN): add missing close paren.
4079 * config/pa/nm-hppab.h: Comment PTRACE_ARG3_TYPE.
4083 * Makefile.in (INSTALLED_LIBS): New variable.
4087 * main.c (quit_command): In the "quit anyway?" message, tell the user
4088 whether we are planning to detach or kill the program.
4090 * config/vax/vaxbsd.mh: Add "NAT_FILE= nm-vax.h".
4091 * config/vax/xm-vaxbsd.h: Use <sys/param.h> not <machine/limits.h>
4093 * infcmd.c (read_pc): Doc fix.
4095 * printcmd.c (print_address_symbolic): Use %u not %d for offset.
4097 * blockframe.c (get_prev_frame_info): If pc in sigtramp, set
4098 signal_handler_caller.
4099 * tm-68k.h (FRAME_{CHAIN,SAVED_PC}): Deal with sigtramp.
4100 * tm-hp300bsd.h: Define SIGTRAMP_{START,END} not IN_SIGTRAMP.
4101 * inferior.h (IN_SIGTRAMP): Definition moved from infrun.c.
4102 Use SIGTRAMP_START if defined.
4103 * infcmd.c (step_1): Use SIGTRAMP_{START,END} if needed.
4104 * infrun.c (wait_for_inferior): Check IN_SIGTRAMP before SKIP_PROLOGUE.
4106 * infptrace.c: Remove unused KERNEL_U_ADDR_HPUX code.
4108 * infcmd.c (step_1): Fix poorly worded error message.
4110 * config/{i386/linux.mh,m68k/isi.mh} (NATDEPFILES):
4111 Comment out corelow.c because core dumps are broken on these machines.
4113 * Makefile.in (depend): Put "${srcdir}" in generated dependencies
4114 if srcdir is not ".".
4115 Also put in -I${BFD_DIR} or -I${READLINE_DIR} for files which need it.
4116 (INCLUDE_CFLAGS): Remove BFD_DIR and READLINE_DIR.
4117 * depend: Update to latest automatically built version.
4121 * ChangeLog, ChangeLog-92: Split ChangeLog at 1993.
4122 * Makefile.in (NONSRC): Add ChangeLog-92
4126 * findvar.c ({read,write}_register): Use REGISTER_RAW_SIZE
4127 not typo RAW_REGISTER_SIZE.
4129 * frame.h, inferior.h: Doc fixes.
4133 * findvar.c (write_register): Add sanity check for register size.
4134 (read_register): Fixup sanity check for register size to be
4135 consistent with write_register().
4139 * sparclite/Makefile.in: Add dummy info, install and install-info
4144 * remote-nindy.c: Removed declaration of coffstrip.
4145 * nindy-share/nindy.c: #if 0 coffstrip routine; no longer used.
4149 * Makefile.in (VERSION): Bump to 4.9.1 after release and cvs
4152 * Makefile.in (VERSION): GDB 4.9 release.
4156 * README: Update known bugs to include the Solaris bug that
4157 leaves core dumps in the current directory when restarting the
4158 inferior with "run". Expand on the testsuite information.
4160 * Makefile.in (VERSION): Bump to 4.8.96 for what should hopefully
4161 be the last 4.9 prerelease test archive.
4165 * config/m68k/xm-hp300bsd.h: Include <sys/param.h> to avoid INT_MAX
4170 * README, NEWS: Update for gdb 4.9 release.
4174 * ch-exp.y (MAX, MIN): Rename to MAX_TOKEN, MIN_TOKEN.
4175 * target.c (MIN): #undef before defining.
4179 Patch from Jeffrey Law:
4180 * gdb/config/pa/nm-hppab.h (PTRACE_ARG3_TYPE): Define as caddr_t.
4184 * hppa-tdep.c (hppa_push_arguments): Allocate correct amount of
4189 * ch-exp.y (start): Apply work-around to avoid bison warning.
4193 * Makefile.in (BISON): Remove double quotes around BISON
4194 definition when bison is used.
4196 * configure.in (hppa*-hp-bsd): Change to hppa*-hp-bsd*
4197 * configure.in (hppa*-hp-hpux): Change to hppa*-hp-hpux*
4198 * configure.in (m68*-hp-bsd): Change to m68*-hp-bsd*
4199 * configure.in (m68*-hp-hpux): Change to m68*-hp-hpux*
4200 * configure.in (hppa*-*-bsd): Change to hppa*-*-bsd*
4201 * configure.in (hppa*-*-hpux): Change to hppa*-*-hpux*
4202 * configure.in (m68*-hp-bsd): Change to m68*-hp-bsd*
4203 * configure.in (m68*-hp-hpux): Change to m68*-hp-hpux*
4205 * Makefile.in (VERSION): Bump to 4.8.6.
4209 * config/pa/xm-hppah.h (MALLOC_INCOMPATIBLE): Define it, and
4210 include declarations for malloc/realloc/free. Both malloc and
4211 realloc return 'void *' for non-ANSI compilations.
4215 * coffread.c (read_coff_symtab): Don't fclose stream as it is no
4216 longer opened twice.
4220 * solib.c (clear_solib): Don't close bfd if it is NULL.
4224 * core.c (dis_asm_read_memory): Cast second arg of
4225 target_read_memory to "char *".
4226 * breakpoint.c (watchpoint_check): Change arg type from PTR to
4227 "char *", to match other functions called by catch_errors().
4232 * gdb/config/nm-hppab.h (PTRACE_ARG3_TYPE): Define as caddr_t.
4233 * gdb/config/pa/tm-hppah.h (millicode_start, millicode_end):
4234 Delete unnecessary declarations.
4238 * ser-unix.c (wait_for): Use VTIME to do timeouts instead of
4239 poll() for termio{s}.
4243 * i386-tdep.c (i386_frame_num_args): Always return -1.
4248 * gdb/hppa-tdep.c: Declare frame_saved_pc.
4249 (frameless_function_invocation): New function.
4250 (frame_saved_pc, init_extra_frame_info): Use
4251 frameless_function_invocation.
4252 * gdb/config/pa/tm-hppa.h (SAVED_PC_AFTER_CALL): Use saved_pc_after
4253 call instead of just grabbing the value currently in %r2.
4254 (FRAMELESS_FUNCTION_INVOCATION): Use frameless_function_invocation.
4255 * gdb/config/pa/tm-hppah.h (SAVED_PC_AFTER_CALL): Delete private
4256 definition and use the common one in tm-hppa.h.
4257 * gdb/hppa-tdep.c (frame_chain_valid): If "use_unwind" is true, then
4258 use unwind descriptors to determine if the frame chain is valid.
4259 * gdb/hppa-tdep.c (find_dummy_frame_regs): Rework so that
4260 it does not assume %r4 is the frame pointer.
4261 * gdb/hppa-pinsn.c (print_insn): Handle 'r' and 'R' for break, rsm,
4262 and ssm instructions.
4263 * gdb/hppa-tdep.c (extract_5r_store, extract_5R_store): New
4264 helper functions for print_insn.
4265 * gdb/hppa-tdep.c (gcc_p, hpux_cc_p): Delete unused functions.
4266 * gdb/config/pa/tm-hppa.h (ABOUT_TO_RETURN): Handle a return
4267 which nullifies the following instruction.
4271 * infptrace.c [FIVE_ARG_PTRACE]: Define ptrace to call_ptrace and
4272 pass the 5th arg there, rather than using an ANSI C-specific macro.
4274 * Makefile.in (depend): Don't include ${CC} command for *.tab.c.
4278 * Makefile.in (VERSION): Bump to 4.8.5
4279 * Makefile.in (INCLUDE_CFLAGS): Add BFD_DIR and READLINE_DIR
4280 directories to include search path.
4281 * Makefile.in (CLIBS, CDEPS, ADD_FILES, ADD_DEPS): Clean up
4283 * Makefile.in (depend): For gcc -MM line, use INTERNAL_CFLAGS
4284 * Makefile.in (main.o, dbxread.o, coffread.o, mipsread.o,
4285 elfread.o, dwarfread.o, stabsread.o, xcoffread.o, xcoffexec.o,
4286 xdr_ld.o, xdr_rdb.o, nindy.o, Onindy.o, ttybreak.o, ttyflush.o,
4287 udr.o, udip2soc.o): Remove explicit rules, use the ones that
4288 are automatically generated in "depend".
4289 * Makefile.in (paread.o): Document why a dependency doesn't get
4290 automatically generated in "depend" and leave this explicit rule
4292 * depend: Update to latest automatically generated version.
4296 * xcoffread.c: Doc fix.
4298 * Makefile.in (depend): Include $(CC) command in generated output.
4302 * Makefile.in (NONSRC): Remove ${srcdir}/putenv.c.
4303 * Makefile.in (SFILES): Add ${srcdir}/putenv.c.
4304 * depend: Update to latest automatically built version.
4308 * sparclite/Makefile.in: Create default target that does nothing
4309 in order to force user to build by hand.
4311 * sparclite/Makefile: Remove. It's not necessary anymore.
4313 * ser-unix.c (wait_for): New routine to handle read timeouts,
4314 etc. Uses poll() if HAVE_TERMIO[S] is defined, select() otherwise.
4318 * mips-pinsn.c (print_insn): Return value.
4322 * Makefile.in (SFILES): Remove ser-hardwire.c; it is a link made
4323 at configuration time and doesn't belong in the distribution archive.
4325 * Makefile.in (NONSRC): Add 29k-share/README.
4326 * Makefile.in (HFILES): Add 29k-share/udi/udiids.h.
4328 * defs.h (UINT_MAX, LONG_MAX, INT_MAX, INT_MIN): Replace hex
4329 constants with slightly more portable definitions (still depends
4330 on 2's complement arithmetic though).
4331 * config/i386/nm-linux.h: Define NO_SYS_REG_H for no <sys/reg.h>.
4332 * i386v-nat.c (sys/reg.h): Conditionalize include on
4333 NO_SYS_REG_H. Linux doesn't have <sys/reg.h>.
4334 * ser-unix.c (termio.h): Include <termio.h> like other files that
4335 include termio.h, not <sys/termio.h> which may not exist (on
4340 * valprint.c (print_longest): Change format parameter from a
4341 'char' to an 'int'. We can't have 'char' parameters with the
4342 current coding style, where we mix prototypes with pre-ANSI
4344 * value.h (print_longest): Change format parameter in prototype
4345 from a 'char' to an 'int'.
4349 * config/mips/tm-mips.h (STAB_REG_TO_REGNUM): Match it with the gcc
4351 * config/mips/tm-irix3.h (STAB_REG_TO_REGNUM): Add.
4352 * irix4-nat.c (fill_fpregset): Fix bug with indexing into fpregsetp.
4357 * config/pa/hppabsd.mh: Add more files to NATDEPFILES.
4358 * config/pa/xm-hppa[bh].h: Define FIVE_ARG_PTRACE.
4359 * hppab-nat.c: Delete WANT_NATIVE_TARGET ifdefs.
4360 ptrace needs 5 arguments, #define ptrace to always
4361 pass zero as the 5th argument.
4365 * configure.in: Match z8k-*-sim for z8000.
4366 * config/h8500/tm-h8500.h, h8500-tdep.c: Lint.
4367 * remote-hms.c: Update to use new serial protocol.
4371 * mips-tdep.c: remove include of sys/dir.h. Doesn't seem
4372 necessary and Solaris doesn't have it.
4374 * Makefile.in (clean-info, install, install-info, info, dvi,
4375 check, all): do not echo recursion lines.
4377 * 29k-share/udip2soc.c (UDIConnect): replace union wait with int.
4379 * config/sparc/sun4sol2.mh (XM_CLIBS): add -lsocket which is
4380 required target ports which use sockets (like a29k-udi).
4382 * remote-udi.c (udi_wait): Use SIGURG, as Solaris doesn't have SIGLOST.
4386 * ser-unix.c [USE_{TERMIO,ALARM}_TIMEOUT]: New code to deal with
4387 systems lacking select().
4389 * Makefile.in (TAGS): Doc fix. Deal with empty DEPFILES.
4393 * alldeps.mak, depend: Update with latest automatically built
4398 * Makefile.in (SFILES): Add ser-unix.c and ser-go32.c.
4400 * Makefile.in (make-proto-testsuite.dir): New target to make
4401 prototype testsuite tree.
4403 * Makefile.in (VERSION): Bump to 4.8.4.
4407 * stabsread.c (define_symbol): If unrecognized constant type,
4408 complain() not error().
4412 * infptrace.c: Add missing close paren to test for
4413 FIVE_ARG_PTRACE defined.
4415 * defs.h (CC_HAS_LONG_LONG): Set up to define CC_HAS_LONG_LONG
4416 when compiling with gcc, but disable it for now. See comment.
4417 * defs.h (LONGEST): Define as either "long" or "long long"
4418 based on CC_HAS_LONG_LONG.
4419 * defs.h (longest_to_int): Use CC_HAS_LONG_LONG to control
4420 how longest_to_int is defined.
4421 * c-valprint.c (c_val_print): Call print_longest.
4422 * expprint.c (dump_expression): Use PRINTF_HAS_LONG_LONG
4423 instead of LONG_LONG.
4424 * {printcmd.c, gdbtypes.h} (LONG_LONG): Replace usages with
4426 * printcmd.c (print_scalar_formatted): Call print_longest
4427 and let it figure out what to do for PRINTF_HAS_LONG_LONG.
4428 * typeprint.c (print_type_scalar): Call print_longest and let
4429 it figure out what to do for PRINTF_HAS_LONG_LONG.
4430 * valprint.c (val_print_type_code_int): Call print_longest
4431 and let it figure out what to do for PRINTF_HAS_LONG_LONG.
4432 * stabsread.c (LONG_LONG): Replace usages with CC_HAS_LONG_LONG.
4433 * value.h (struct value): Replace usage of LONG_LONG with
4435 * value.h (print_longest): Add prototype.
4436 * values.c (LONG_LONG): Replace usages with CC_HAS_LONG_LONG.
4437 * values.c (unpack_double): Collapse code that was unnecessarily
4438 dependent on CC_HAS_LONG_LONG. Use LONGEST instead of direct types.
4439 * values.c (value_from_longest): Remove dependency on
4440 CC_HAS_LONG_LONG and just use LONGEST.
4441 * solib.c (solib_map_sections): Use bfd_get_filename
4442 to access filename field.
4443 * solib.c (clear_solib): Save filename and free it later, after
4444 bfd_close, since bfd_close may reference it. Use bfd_get_filename
4445 to access the field.
4446 * config/convex/xm-convex.h (LONG_LONG): Replace with
4447 CC_HAS_LONG_LONG. Add define for PRINTF_HAS_LONG_LONG.
4448 * doc/gdbint.texinfo (LONG_LONG): Replace with CC_HAS_LONG_LONG.
4449 Add PRINTF_HAS_LONG_LONG references.
4453 * inflow.c (kill_command), infcmd.c (attach_command),
4454 remote.c (remote_interrupt_twice): In messages for the user, call it
4455 "the program" or "the program being debugged" not "the inferior".
4457 * hp300ux-nat.c: Cast second arg to supply_register calls.
4458 (_initialize_kernel_u_addr, getpagesize): New functions.
4459 (store_inferior_register_1): Change arg name from value to val.
4460 (fetch_core_registers): Make arg core_reg_size unsigned.
4461 Pass 5 args to ptrace.
4462 * config/m68k/xm-hp300hpux.h: Define FIVE_ARG_PTRACE.
4463 Remove KERNEL_U_ADDR stuff.
4464 * infptrace.c [FIVE_ARG_PTRACE]: Pass 5th arg to ptrace.
4465 * config/m68k/hp300hpux.m{t,h}:
4466 Move exec.o from NATDEPFILES to TDEPFILES
4467 * config/m68k/hp300hpux.mt: Mention GAS requirement. Remove
4468 hp-include stuff. Add m68k-tdep.o to TDEPFILES.
4472 * ch-exp.y (yylex): Don't STREQ with simplename if it is NULL.
4476 * config/sparc/xm-sun4os4.h [__STDC__]: Don't use MALLOC_INCOMPATIBLE.
4480 * doc/gdb.texinfo: make node "Shell Commands" unconditional;
4481 describe `set demangle-style arm' (not cfront);
4482 mention can type `q' to discard output, when gdb pages
4486 * valops.c (search_struct_field): Fix gdb core dump with incomplete
4491 * remote.c: Change timeout to 2.
4492 (remote_open): Use unpush_target not remote_close.
4493 (remote_resume): If siggnal != 0, give warning not error().
4494 (remote_wait, remote_interrupt, remote_interrupt_twice):
4495 If we get two interrupts, let the user get out if they want.
4496 (remote_{kill,mourn}): New functions.
4497 i386-stub.c (handle_exception, case 'k'): Don't BREAKPOINT.
4501 * config/sparc/sun4sol2.mh (XM_CLIBS): Define to be -lnsl.
4505 * Remote targets (mourn): Call unpush_target.
4507 * config/sparc/xm-sun4os4.h: Declare free() to return int.
4508 Remove twisted use of PARAMS.
4510 * config/rs6000/xm-rs6000.h: Don't define MALLOC_INCOMPATIBLE now
4511 that ansidecl.h assumes ANSI on AIX.
4515 * README: Move most stuff about hacking GDB to doc/gdbint.texinfo.
4516 (Known bugs): Remove AIX bugs, revise SPARC struct bug description.
4520 * expprint.c (print_subexp): Fix bug with OP_SCOPE operator output.
4524 * remote-vx.c (net_connect): Allow numeric IP address for host.
4528 * config/sh/sh.mt, config/sh/tm-sh.h, sh-tdep.c: New files.
4532 * rs6000-tdep.c (branch_dest): Deal with stepping through system call.
4534 * symtab.h, xcoffread.c: Revise linetable sorting comments.
4538 * valops.c (value_cast): A cast might also change the object
4539 representation in C++.
4540 * dbxread.c (end_psymtab): Copy subpst read_symtab function from pst
4541 to get the proper read_symtab function when called from mipsread.c.
4542 * mipsread.c (mipscoff_psymtab_to_symtab, psymtab_to_symtab_1):
4543 Set cur_bfd in psymtab_to_symtab_1 as CURBFD(pst) is invalid
4544 for dummy psymtabs, inhibit processing of dummy psymtabs.
4548 * Changes from (or inspired by) AMD:
4549 * remote-udi.c (udi_attach): Assignments to Space and Offset were
4551 (udi_wait): Make error message (UDIGetStdout) match error.
4552 (udi_wait): Handle UDIStdinNeeded.
4553 * command.c [CANT_FORK]: Use system().
4554 * utils.c (prompt_for_continue): Allow quit with 'q'.
4556 * solib.c (solib_add): Don't call special_symbol_handling if there
4557 were errors in symbol_add_stub. Also set so->from_tty before
4558 calling symbol_add_stub.
4562 * Merge in HPPA/BSD patches from Utah:
4563 * defs.h: Add const to 2nd arg of psignal prototype.
4564 * hppah-tdep.c: Renamed to hppa-tdep.c 'cuz it's common code with
4566 * hppab-core.c: Deleted. No longer useful.
4567 * hppab-nat.c: #include more files. Use PT_WUREGS, not
4569 * hppab-tdep.c: Deleted. Supplanted by hppa-tdep.c.
4570 * config/pa/hppabsd.mh (NATDEPFILES): Remove hppab-core.o.
4571 * config/pa/hppabsd.mt (TDEPFILES): hppab-tdep.o => hppa-tdep.o
4572 * config/pa/hppahpux.mt (TDEPFILES): hppab-tdep.o => hppa-tdep.o
4573 * config/pa/xm-hppab.h: #define SET_STACK_LIMIT_HUGE.
4577 * Fix two bugs found by deja-gnu. One is the incorrect reporting
4578 of the PC being in a stack dummy when looking at a core file
4579 without symbols. The other is the incorrect passing of char
4580 arguments during expression evaluation (ie: p foo('a','b') would
4581 mess up the passing of it's args because it wasn't coercing the
4583 * hppah-tdep.c: Rename global functions to have consistent hppa_
4584 prefix. Make more functions static. Drop hp_ prefix from static
4585 functions. (hppa_push_arguments): Call value_arg_coerce to cast
4586 char to int args if necessary. (hppa_fix_call_dummy): Create
4587 this routine from FIX_CALL_DUMMY macro in tm-hppa.h.
4588 * inferior.h (PC_IN_CALL_DUMMY): Check for frame_address being
4589 valid (ie: != 0) before doing comparison against PC.
4590 * valops.c (call_function_by_hand): Adjust call to FIX_CALL_DUMMY
4591 to reflect new arguments.
4592 * config/pa/tm-hppa.h (POP_FRAME, PUSH_ARGUMENTS): Use new hppa_
4593 prefix for func name. (FIX_CALL_DUMMY): Move code into
4596 * testsuite/gdb.t16/gdbme.c, testsuite/gdb.t17/gdbme.c: Add calls
4597 to malloc() so that we can test GDB eval of dynamically created
4598 arrays (like char strings in `print "foo"').
4602 * printcmd.c (print_address_symbolic): Search symtabs as well as the
4603 minimal symbols for a nearby symbol.
4607 * coffread.c: Comment changes around minimal symbol recording.
4611 * command.c: comment changes only.
4613 * mips-tdep.c (heuristic_fence_post): new static variable.
4614 (heuristic_proc_start): use heuristic_fence_post, print better
4615 warnings, but only if not stop_soon_quietly.
4616 (_initialize_mips_tdep): add_set_cmd for heuristic-fence-post.
4620 * symtab.h: Fix LOC_REF_ARG comment.
4625 * stabsread.c (define_symbol): Combine a 'p', 'r' arg pair to a
4627 * config/sparc/tm-sparc.h (REG_STRUCT_HAS_ADDR): Revise comments.
4628 symfile.c (compare_symbols): Don't check first character; STRCMP
4631 * stabsread.c (define_symbol): Generate a LOC_REGPARM_ADDR for
4632 structures that are passed by address in a register.
4633 * symtab.h (enum address_class): Add LOC_REGPARM_ADDR.
4634 * findvar.c (read_var_value),
4635 printcmd.c (address_info, print_frame_args),
4636 stack.c (print_frame_arg_vars), symmisc.c (print_{,partial_}symbol),
4637 * symtab.c (lookup_block_symbol): Deal with it.
4641 * objfiles.h (obj_section), objfiles.c (build_objfile_section_table):
4643 * objfiles.c (find_pc_section): Return a struct obj_section *.
4644 * sparc-tdep.c (in_solib_trampoline): Deal with find_pc_section return.
4645 * symfile.c (syms_from_objfile) [IBM6000_TARGET]:
4646 Don't use obj_section hack.
4647 * xcoffexec (vmap_symtab): Relocate obj_sections.
4648 * printcmd.c (containing_function_bounds): Use find_pc_section.
4650 * symtab.h: Clean up SYMBOL_VALUE comments.
4654 * stack.c (print_frame_arg_vars), printcmd.c (print_frame_args):
4655 Expand comments about LOC_ARG/LOC_LOCAL pairs.
4657 * coffread.c (read_coff_symtab): Use rewind before fseek.
4661 * ch-exp.y: Removed unused structure_primitive_value and FIXME_23.
4662 * Makefile.in: Add $(YFLAGS) when using $(YACC).
4663 * Makefile.in: Remove message to expect conflicts and unused
4664 rules in ch-exp.y, since there no longer are any such.
4666 Wed Apr 21 13:27:50 1993 david d `zoo' zuhn (zoo at cirdan.cygnus.com)
4668 * stabs.texinfo: fixed bad xrefs (un-initialized statics)
4672 * xcoffexec.c (xcoff_relocate_core): If no exec file, error()
4673 rather than dumping core.
4675 * Makefile.in: Add ${srcdir}/ to all source files.
4676 (alldeps.mak): Add "${srcdir}/" to files when generating alldeps.mak.
4677 (TAGS): Deal with srcdir and new config directory scheme.
4679 Makefile.in (NONSRC): Remove createtags.
4680 alldeps.mak: Updated.
4682 * rs6000-tdep.c: Delete unused function print_frame.
4684 * frame.h (struct frame_info): Doc fix for next_frame.
4685 New field signal_handler_caller.
4686 blockframe.c (create_new_frame, get_prev_frame_info),
4687 config/rs6000/tm-rs6000.h (INIT_EXTRA_FRAME_INFO): Set it (needs
4688 INIT_FRAME_PC_FIRST).
4689 stack.c (print_frame_info), rs6000-tdep.c (rs6000_frame_chain):
4694 * irix4-nat.c (fetch_core_registers): Special version of this for
4695 Irix 4.x, which stores regs a bit differently from other /proc
4697 * procfs.c, core-svr4.c: Move fetch_core_registers from procfs.c
4698 to new file core-svr4.c.
4699 * config/i386/i386sol2.mh, config/i386/i386v4.mh, config/m68k/amix.mh,
4700 config/i386/ncr3000.mh, config/sparc/sun4sol2.mh: Add core-svr4.o
4702 * config/mips/irix4.mh: Add corelow.o to NATDEPFILES.
4706 * i387-tdep.c: Remove unused #includes.
4708 * configure.in: Match i[34]86-*-sysv3.2 not i[34]86-*-sysv32.
4710 * config/i386/nm-i386v.h: Define NO_PTRACE_H.
4714 * xcoffread.c: Nuke NO_DEFINE_SYMBOL code. There is no going back.
4716 * stabsread.c (define_symbol): 'R' is synonym for 'P', not 'r'.
4717 xcoffread.c (process_xcoff_symbol, case C_RPSYM):
4718 Don't muck with SYMBOL_CLASS.
4722 * munch: Don't use head command. It doesn't exist everywhere.
4726 * inflow.c (new_tty): Remove spurious 'o' character at end
4731 * mips-tdep.c (mips_skip_prologue): Always skip the typical prologue
4732 instructions and nothing more.
4733 * mipsread.c (add_line): Add comment why we have to combine line number
4734 entries for the same line number.
4738 * symtab.{c,h}: Doc fixes (remove symseg references, last relevant
4743 * depend, alldeps.mak: Update, now that gcc -MM bug is fixed.
4747 * source.c (select_source_symtab): Clean up comment. Also, if
4748 we have a current_source_symtab, and s is NULL, return without
4750 xcoffread.c (xcoff_symfile_read): Don't call select_source_symtab.
4751 breakpoint.c (breakpoint_re_set): Don't call select_source_symtab.
4755 * dbxread.c (unknown_symchar_complaint): Add new complaint.
4756 * stabsread.h: Declare it.
4757 * partial-stab.h: Use it.
4759 * utils.c (malloc_botch): Don't forward-declare if NO_MMALLOC.
4763 * stack.c (print_frame_info): Print specially if dummy frame.
4765 * breakpoint.c: Add comments regarding within_scope future direction.
4769 * xcoffread.c (record_include_{begin,end}): Change fatal to complain.
4773 * ch-exp.y: Fix thinko that broke parsing of FALSE.
4777 * stabsread.c (read_member_functions): Initialize domain for stubbed
4778 member functions to avoid gdb core dumps when printing pointers
4779 to member functions.
4780 * cp-valprint.c (cp_print_class_method): Check for stubbed member
4785 * expprint.c (print_subexp): If opcode not found in op_print_tab,
4786 stop with an error().
4787 eval.c (evaluate_subexp): Change error message.
4789 * objfiles.c (build_objfile_section_table): Cast return value
4790 from obstack_finish.
4794 * config/rs6000/tm-rs6000.h, rs6000-tdep.c: Move FRAME_CHAIN
4795 to rs6000_frame_chain and deal with it if we're in a signal handler.
4796 (FRAME_SAVED_PC): Use rs6000_frame_chain.
4798 * breakpoint.c (within_scope): New function.
4799 (enable_breakpoint, watchpoint_check): Use it.
4801 * source.c (openp): Handle "exec-file ./ls" correctly.
4803 * breakpoint.c (breakpoint_1): Use wrap_here before "at".
4807 * ch-exp.y: Clean up lexing of identifiers and
4808 reserved words. (E.g. don't recognize FALSEXXX as the
4809 keyword FALSE followed by the identifier XXX.)
4810 Also, convert identifiers to lower case.
4814 * remote-mips.c, remote-monitor.c, remote-st2000.c: Convert to
4815 new serial interface.
4819 * remote.c (remote_open): Use SERIAL_OPEN instead of serial_open.
4820 (putpkt, getpkt): Use new return codes for SERIAL_READCHAR.
4821 * ser-go32.c: Return -1 on most failures, 0 on most successes,
4822 and use new return codes for go32_readchar().
4823 * ser-unix.c: Ditto. Also, move error handling up to caller for
4824 SERIAL_SETBAUDRATE().
4825 * serial.c (serial_open): Internal call, not SERIAL_OPEN to get
4826 to specific routine.
4827 (serial_close): New routine to wrap around device close routine.
4828 serial.h: Clean & document return values more clearly.
4832 * rs6000-pinsn.c (print_operand): Deal with no operand instructions.
4834 * rs6000-pinsn.c (print_operand, case LI): Print condition register
4835 operand in decimal rather than wrong textual versions.
4837 * printcmd.c (_initialize_printcmd): Clean up docstring for "x"
4838 (mention 't', remove false thing about 'g' only good with 'f').
4840 * breakpoint.h: move "struct breakpoint" and friends to top of
4841 file so that bpstat_find_breakpoint prototype works.
4843 * solib.c (struct so_list): Add bfd field.
4844 (solib_map_sections): Leave bfd open and scratch_pathname allocated.
4845 Put the bfd in bfd field of the so_list.
4846 (clear_solib): Free bfd name and close_bfd on the bfd.
4850 * valarith.c (value_subscript): Add COERCE_REF.
4851 * ch-exp.y (operand_5): We can generalize the 2nd operand
4852 of a string repetition ot 'literal' without ambiguity.
4856 * breakpoint.h (struct bpstat): Remove momentary field.
4857 Remove bpstat_momentary_breakpoint. This was always kludgy
4858 and is no longer used.
4860 * breakpoint.h: Add enum bpstat_what.
4861 breakpoint.h (struct bpstat), breakpoint.c (bpstat_stop_status):
4862 stop and print fields of bpstat now per-breakpoint, not just
4863 one for the whole chain.
4864 breakpoint.{c,h} (bpstat_what): New function.
4865 breakpoint.h: Remove bpstat_stop and bpstat_should_print.
4866 infrun.c: Replace switch (stop_bpstat->breakpoint_at->type)
4867 with call to bpstat_what.
4868 README: Remove watchpoint/breakpoint bug from known bugs.
4870 * breakpoint.h: Prototype bpstat_find_breakpoint.
4874 * symtab.c (find_methods, gdb_mangle_name): Note that functions
4876 * symtab.h (VTBL_FNADDR_OFFSET, OPNAME_PREFIX_P, VTBL_PREFIX_P,
4877 DESTRUCTOR_PREFIX_P): Note that macros are g++ specific.
4881 * i960-pinsn.c (tabent): Copied struct definition from
4886 * symtab.h (DESTRUCTOR_PREFIX_P): New macro to check if physname
4887 is a C++ destructor.
4888 * symtab.c (gdb_mangle_name): Use it.
4889 * symtab.c (find_methods): Do not add destructors to choice list
4891 * symtab.c (decode_line_1): Make breakpoints on destructors work
4896 * ser-go32.c: Make it use serial port name.
4897 * go32-xdep.c: Put in def for strlwr, needed by dir.o in go32 libc.
4899 * infcmd.c (read_pc): Make sure that we read PC_REGNUM when not
4904 * configure.in: Only configure sparclite subdir when target_cpu
4909 * xcoffread.c (struct coff_symbol): Change c_sclass to unsigned char.
4910 Remove FIXME comment regarding this.
4912 * symfile.h: Change NULL->'\0' in comment (that wasn't a typo).
4914 * xcoffread.c (read_xcoff_symtab): Use E_SYMNMLEN.
4918 Add section table to objfile struct. Use it for find_pc_section.
4919 * objfiles.c (add_to_objfile_sections,
4920 build_objfile_section_table, find_pc_section): new functions.
4921 (allocate_objfile): build section table.
4922 * objfiles.h (struct obj_section): new structure.
4923 (struct objfile): add section table.
4924 (find_pc_section): new prototype.
4925 * solib.[ch] (find_pc_section_from_so_list): removed.
4926 * sparc-tdep.c: include objfiles.h for find_pc_section. include
4927 symfile.h for objfiles.h.
4928 (in_solib_trampoline): adjusted for new find_pc_section
4929 prototype. Removed BAD_RICH_HACK ifdefs.
4930 * symfile.c (syms_from_objfile): offset objfile sections.
4931 (find_pc_section): removed. Also removed BAD_RICH_HACK ifdefs.
4932 * symfile.h (find_pc_section): prototype removed. Also fixed
4933 comment typo NUL -> NULL.
4934 * target.[ch] (find_pc_section_from_targets): removed.
4935 * config/sparc/tm-sun4sol2.h (BAD_RICHH_HACK): removed.
4939 * ser-go32.c: Format. (go32_open): Use proper return value.
4941 * configure.in: Undo conditional configdirs hack for sparclite.
4945 * symtab.c (list_symbols): When call break_command, pass both
4946 filename and function name not just function name.
4950 (Changes and new files to make "none" a full fledged configuration)
4951 * config/none/{nm-none.h, tm-none.h, xm-none.h}: New files.
4952 Currently only tm-none.h has any meaningful contents.
4953 * config/none/none.mh (NAT_FILE): Use nm-none.h
4954 * config/none/none.mh (XM_FILE): Use xm-none.h
4955 * config/none/none.mt (TM_FILE): Use tm-none.h
4956 * Makefile.in (depend): Remove comment about parse errors in
4957 valops.c, it now parses correctly and generates a correct depend
4958 line. Remove line that touches xm.h, tm.h, and nm.h; they are
4959 now linked to config/none/{xm-none.h, tm-none.h, nm-none.h}.
4963 * values.c (USE_STRUCT_RETURN): Only use gcc wierdness for gcc1.
4965 * xcoffread.c (read_xcoff_symtab): Deal correctly with symbols of
4966 exactly 8 characters.
4970 * configure.in: Sparclite uses sparc config dir. Also has it's
4971 own tm- & .mt files now. Also add sparclite to configdirs.
4972 * go32-xdep.c: Dummy routines for sigsetmask & strlwr.
4973 * config/i386/go32.mh: Nullify def of TERMCAP.
4974 * config/i386/xm-go32.h: Get rid of redef of EIO.
4975 * config/sparc/{sparclite.mh tm-sparclite.h}: New sparclite
4976 specific configs. Very similar to sun4os4, but without solib.
4977 * sparclite/{Makefile.in configure.in}: First cut at making this
4982 * ser-go32.c: First cut at adapting to new serial interface.
4986 * Makefile.in (SFILES OBS): Add serial.[co] & ser-hardwire.[co].
4987 These implement a new serial line interface for talking to remote
4989 * configure.in: Link ser-hardwire.c to ser-unix.c for all hosts,
4990 EXCEPT go32, which gets ser-go32.c.
4991 * remote.c: Use new serial interface. More remote-xxx's to be
4993 * ser-bsd.c, ser-termios.c: Removed.
4994 * serial.c: New. Implements common operations for all serial
4996 * ser-unix.c: New. Unix specific serial operations for various
4997 flavors of Unix (Posix, SysV, BSD).
4998 * serial.h: Generic serial interface defs.
4999 * config/i386/go32.mh, config/i386/i386bsd.h,
5000 config/m68k/apollo68b.mh, config/sparc/sun4os4.mh: Remove
5001 ser-bsd.o from XDEPFILES. All the magic is now handled in
5006 * config/h8500/tm-h8500.h: Clean up brain damage found by GCC.
5010 * xcoffread.c (xcoff_symfile_offsets): Use 0 not addr for offsets.
5012 * rs6000-tdep.c (frameless_function_invocation): Don't even think
5013 about framelessness except on the innermost frame.
5015 * xcoffexec.c: Call fatal() not abort().
5017 * stabsread.c (patch_block_stabs): If stab & no symbol, make
5018 a LOC_OPTIMIZED_OUT symbol.
5019 symtab.h (enum address_class): Add LOC_OPTIMIZED_OUT.
5020 findvar.c (read_var_value), printcmd.c (address_info),
5021 symmisc.c (print_{,partial_}symbol), c-exp.y (variable),
5022 m2-exp.y (yylex): Deal with it.
5023 ch-exp.y (yylex): Deal with it.
5027 * findvar.c (value_from_register): H8500 specific, check to see
5028 if we are looking at short pointer. If so, skip crock.
5029 * h8500-tdep.c (h8500_frame_chain): Mask down value from
5030 read_memory_integer() to avoid getting messed up by sign extension.
5034 * sparc-tdep.c (in_solib_trampoline), symfile.c (find_pc_section):
5035 ifdef protect using BAD_RICH_HACK. This should be removed soon.
5036 * config/sparc/tm-sun4sol2.h (BAD_RICH_HACK): define.
5040 * i960-pinsn.c, a29k-pinsn.c: Much abridged, just use libopcodes.a.
5042 * core.c (dis_asm_print_address): New function.
5044 * core.c (dis_asm_read_memory): Reinstate 4th arg. The prototype
5049 * breakpoint.c (bpstat_print, bpstat_stop_status): Change to walk the
5050 entire breakpoint chain and print only the first entry that needs to
5051 be printed and needs to be stopped for. Fixes problems with printing
5052 of multiple breakpoints with different conditions.
5053 * breakpoint.c (print_it_done): Renamed from print_it_noop as it
5054 effectively stops printing of the breakpoint chain.
5055 * breakpoint.c (print_it_noop): New routine to print nothing
5056 for this breakpoint entry and dont stop printing.
5057 * breakpoint.c (breakpoint_re_set_one): mention the reevaluated
5058 watchpoint only if it is enabled.
5059 * mipsread.c (parse_procedure): Correct incorrect setjmp procedure
5060 descriptor from the library to make backtraces through setjmp work.
5061 * mipsread.c (fixup_sigtramp): Correct pcreg and fregoffset for
5063 * mips-tdep.c (read_next_frame_reg): Provide correct values for
5064 all registers saved within sigtramp, cleanup.
5068 * sparc-pinsn.c: Much abridged, just calls version in libopcodes.a.
5072 * core.c (dis_asm_read_memory): drop fourth arg which conflicts
5073 with prototype in ../include/dis-asm.h.
5077 * core.c (dis_asm_{read_memory,memory_error}): New functions.
5078 m68k-pinsn.c, h8500-tdep.c, i386-pinsn.c, mips-pinsn.c, z8k-tdep.c:
5079 Use read_memory_func interface to disassembler.
5083 Teach sparc solaris to next over shared library functions.
5084 * solib.[hc] (find_pc_section_from_so_list): new function and
5086 * sparc-tdep.c (in_solib_trampoline): new function.
5087 * symfile.[hc] (find_pc_section): new function and prototypes.
5088 * target.[hc] (find_pc_section_from_targets): new function and
5090 * config/sparc/tm-sun4sol2.h (IN_SOLIB_TRAMPOLINE): redefine to
5091 in_solib_trampoline.
5095 * infrun.c (wait_for_inferior): Revise comment.
5097 * command.c (do_setshow_command): Use %u with var_{u,z}integer.
5099 * command.{c,h}: New var_type var_integer.
5100 main.c: Use it for history_size.
5102 * rs6000-tdep.c, xcoffexec.c, config/rs6000/xm-rs6000.h, breakpoint.c:
5103 Lint and byte-order fixups.
5105 * breakpoint.c (print_it_normal): Return 0 after hitting watchpoint.
5107 * breakpoint.h (bpstat): New field print_it.
5108 breakpoint.c (bpstat_print): Use it.
5109 (print_it_normal): New function (from old bpstat_print code).
5110 (bpstat_{alloc,stop_status}): Set print_it field.
5112 * breakpoint.c (bpstat_stop_status): Use catch_errors when
5113 evaluating watchpoint condition, via new function watchpoint_check.
5114 Also stop if watchpoint disabled due to leaving its block.
5116 * findvar.c [REG_STRUCT_HAS_ADDR]: Add comment.
5120 * mips-pinsn.c: Add missing include of dis-asm.h.
5124 * Makefile.in (clean, distclean, realclean): Recursively apply
5125 to subdirs first, rather than last. This avoids, for example,
5126 Makefile being removed in a parent directory before the recursive
5129 * alldeps.mak, depend: Update for below changes.
5131 * config/m68k/tm-m68k.h: Renamed from config/m68k/tm-68k.h.
5132 * m68k/{tm-3b1.h, tm-altos.h, tm-amix.h, tm-es1800.h,
5133 tm-hp300bsd.h, tm-hp300hpux.h, tm-isi.h, tm-news.h, tm-os68k.h,
5134 tm-st2000.h, tm-sun2.h, tm-sun3.h, tm-vx68.h}: Include tm-m68k.h
5135 instead of tm-68k.h.
5136 * Makefile.in (HFILES): tm-68k.h renamed to tm-m68k.h.
5137 * README, a29k-pinsn.c, m68k-pinsn.c, m68k-stub.c, remote-vx.c,
5138 m68k/{altos.mh, altos.mt, apollo68b.mh, nm-apollo68b.h,
5139 nm-hp300bsd.h, config/m68k/xm-apollo68b.h}: Map '68k' to 'm68k'.
5140 * a29k/tm-a29k.h, doc/gdbint.texinfo: Account for renaming of
5141 tm-68k.h to tm-m68k.h.
5142 * m68k/m68k-fp.mt (TM_FILE): tm-68k-fp.h renamed to tm-m68k-fp.h.
5143 * m68k/m68k-nofp.mt (TM_FILE): tm-68k-nofp.h renamed to
5146 * config/a29k/tm-a29k.h: Renamed from config/a29k/tm-29k.h.
5147 * a29k-pinsn.c: Renamed from am29k-pinsn.c.
5148 * a29k-tdep.c: Renamed from am29k-tdep.c.
5149 * remote-eb.c, config/a29k/tm-ultra3.h: Include renamed tm-a29k.h.
5150 * remote-monitor.c, remote-st2000.c, config/a29k/{nm-ultra3.h,
5151 tm-a29k.h, xm-ultra3.h}, config/romp/rtbsd.mh, doc/gdbinv-s.texi,
5152 testsuite/gdb.t15/funcargs.exp, testsuite/gdb.t17/callfuncs.exp:
5153 Map '29k' to 'a29k'.
5154 * config/a29k/{a29k-kern.mt, a29k-udi.mt, a29k.mt, ultra3.mt}
5155 (TDEPFILES): Use renamed a29k-pinsn.o and a29k-tdep.o.
5156 * config/a29k/{a29k-udi.mt, a29k.mt} (TM_FILE): Use renamed
5158 * config/a29k/a29k-udi.mt (MT_CFLAGS): Remove TARGET_AM29K
5159 define that does not appear anywhere else in the gdb source tree.
5160 * doc/gdbinit.texinfo: Document renaming of tm-29k.h to tm-a29k.h.
5164 * breakpoint.c: Add comments regarding breakpoint_re_set.
5166 * xcoffread.c (sort_syms, compare_symbols): Remove.
5167 (xcoff_symfile_read): Use sort_all_symtab_syms from symfile.c
5168 not our own sort_syms (it is identical).
5170 * xcoffread.c: Nuke NAMES_HAVE_DOT define (not used).
5174 * breakpoint.c (breakpoint_re_set_one): Fix storage leak.
5175 * breakpoint.c (enable_breakpoint): Don't enable watchpoint if it
5177 * exec.c (exec_close): Fix storage leak.
5178 * exec.c (exec_file_command): Make sure that bfd doesn't realign the
5179 output sections when patching an executable.
5180 * mips-nat.c (store_inferior_registers): Use REGISTER_PTRACE_ADDR
5181 when writing all registers.
5182 * mips-tdep.c (mips_push_dummy_frame): Save floating point registers
5183 at the right offset in the dummy frame.
5184 * mipsread.c (psymtab_to_symtab_1): Do not complain for stProc,
5185 stStaticProc and stEnd symbols as they are generated by gcc-2.x.
5186 * mipsread.c (mipscoff_new_init): Initialize stabsread and buildsym.
5190 * Makefile.in (TARFILES): Avoid trailing backslash.
5194 * breakpoint.{c,h}: Add exp_string to struct breakpoint and use
5195 it in breakpoint_re_set.
5196 * breakpoint.c (watch_command, enable_breakpoint): Fetch lazy values.
5198 * rs6000-tdep.c (single_step): Misc cleanups (CORE_ADDR not int,
5199 don't use sizeof(int) for target stuff, etc).
5203 * alldeps.mak, configure.in, i860-break.h, i860-opcode.h,
5204 i860-pinsn.c, i860-tdep.c, config/i860/*: Remove incomplete i860
5205 support that can't be integrated anyway due to lack of clear
5210 * findvar.c (read_register, write_register): Make these capable
5211 of reading/writing registers that are shorter than REGISTER_TYPE.
5212 * (value_from_register): Install H8500 specific code to return
5213 proper value when register is being used as a pointer.
5214 * h8500-tdep.c: Remove extra defines of NUM_REGS.
5215 (h8500_skip_prologue): Use correct lengths for LINK instructions.
5216 (FRAME_CHAIN): Change name to h8500_frame_chain. Rewrite code to
5217 chain frames properly by combining frame pointer with T reg.
5218 (init_extra_frame_info): Delete. It's now a macro.
5219 (frame_args_address): Don't add PTR_SIZE. Stack args are already
5220 offset by the correct amount off of the frame pointer.
5221 (register_byte): Delete. It's now a macro.
5222 (register_raw_size, register_virtual_size): Delete. Replaced by
5223 common routine h8500_register_size, cuz there's no difference
5224 between the raw & virtual sizes on this machine.
5225 (register_convert_to_raw, register_convert_to_virtual): Delete,
5226 cuz there's no difference between the raw & virtual forms.
5227 Replaced by memcpy in tm file.
5228 (register_virtual_type): Rename to h8500_register_virtual_type.
5229 Get rid of pointer pseudo-regs, use _REGNUM with all reg names.
5230 (_initialize_h8500_tdep): Get rid of crock to ensure that GDB &
5231 emulator have same reg offsets. This is all handled in the
5233 (h8500_trapped_internalvar): New routine to detect references to
5234 convenience vars acting as pointer pseudo-regs.
5235 (h8500_value_trapped_internalvar): Conjure up value of pointer
5237 (h8500_set_trapped_internalvar): Convert set value in real
5238 register references.
5239 infcmd.c (read_pc, write_pc): Add h8500 specific code to handle
5240 code segment register.
5241 infrun.c (proceed): Simplify. Call write_pc instead of doing it
5243 (wait_for_inferior): Add h8500 specific code to add stack segment
5244 when reading SP register.
5245 remote-sim.c (fetch_register): Spacing.
5246 tm-h8500.h: #define GDB_TARGET_IS_H8500 to make it easier to
5247 detect cruft. Redo all register manipulation stuff. Get rid of
5248 pointer pseudo-regs. (INIT_EXTRA_FRAME_INFO): Adds stack segment
5249 to frame pointer. (IS_TRAPPED_INTERNALVAL,
5250 VALUE_OF_TRAPPED_INTERNALVAR, SET_TRAPPED_INTERNALVAR): Use these
5251 to create internal vars for pointer pseudo-regs.
5255 * Makefile.in: Numerous small changes to macro definitions
5256 and rules for building gdb distribution tree. Many macros
5257 eliminated or merged, and rules simplified.
5258 * alldeps.mak: Update.
5261 Wed Mar 24 13:52:29 1993 david d `zoo' zuhn (zoo at poseidon.cygnus.com)
5263 * Makefile.in: recurse through SUBDIRS for dvi target too
5267 * Clean up xcoff relocation.
5268 objfiles.h (struct objfiles): Add section_offsets, num_sections.
5269 symfile.c (syms_from_objfile), xcoffread.c (xcoff_symfile_offsets):
5271 symtab.h (struct general_symbol_info): Add section field.
5272 minsyms.c (prim_record_minimal_symbol{,_and_info}): Set it.
5273 xcoffread.c: Set section for symbols and msymbols.
5274 (struct symtab): Add block_line_section field.
5275 buildsym.c (end_symtab): Set it.
5276 (end_symtab and callers): Add section parameter.
5277 objfiles.c (objfile_relocate): New funciton.
5278 xcoffexec.c (vmap_symtab): Use it.
5279 xcoffsolib.h (struct vmap): Remove unused fields.
5280 config/rs6000/tm-rs6000.h, stack.c, xcoffexec.c: Remove
5281 CORE_NEEDS_RELOCATION, symtab_relocated.
5282 config/rs6000/tm-rs6000.h: Remove use of loadinfotext.
5283 rs6000-tdep.c: Make loadinfotext static.
5284 breakpoint.c (fixup_breakpoints): Doc fix.
5285 symtab.h (struct symtab), config/rs6000/tm-rs6000.h, buildsym.c
5286 (end_symtab): primary field replaces nonreloc.
5290 * symtab.h (struct linetable_entry): Remove confusing comment.
5292 Tue Mar 23 00:01:23 1993 david d `zoo' zuhn (zoo at cirdan.cygnus.com)
5294 * Makefile.in: add installcheck target
5298 * config/{a29k, arm, convex, gould, h8300, i386, i860, i960, m68k,
5299 m88k, mips, none, ns32k, pa, pyr, romp, rs6000, sparc, tahoe, vax,
5300 z8k}: New directories to hold cpu specific configuration files.
5301 Naming follows gcc convention.
5302 * config/{*.mt, *.mh}: All target and host makefile fragment
5303 config files moved to an appropriate config/<cpu> subdirectory.
5304 * nm-*, xm-*, tm-*: All native, host, and target files, which
5305 get linked to nm.h, xm.h, and tm.h respectively by configure,
5306 moved to appropriate config/<cpu> subdirectory.
5307 * nm-sysv4.h, xm-sysv4.h, tm-sysv4.h, tm-sunos.h, nm-trash.h:
5308 Native, host, and target files that are common across more than
5309 one cpu architecture and included by one of the configured
5310 native, host, or target files, get moved to config directory.
5311 * Makefile.in (INCLUDE_CFLAGS): Add -I${srcdir}/config to
5312 pick up native, host, or target include files moved to one of
5313 the config subdirectories, and that are included by other files.
5314 * Makefile.in (alldeps.mak): Modify to account for new config
5315 directory structure.
5316 * alldeps.mak, depend: Update for new config directory structure.
5317 * config/*/[ntx]m-*.h: Modify all files that include other
5318 [ntx]m-*.h files to use path relative to gdb/config. I.E.
5319 "a29k/tm-ultra3.h" includes "a29k/tm-29k.h" rather than just
5321 * remote-eb.c (tm-29k.h): Include a29k/tm-29k.h.
5322 * mipsread.c (tm-mips.h): Include mips/tm-mips.h.
5323 * i860-pinsn.c (tm-i860.h): Include i860/tm-i860.h.
5324 * configure.in: Default gdb_host_cpu to host_cpu, and remap
5325 the ones where the default is not unique or different than the
5326 config subdirectory name. Similarly, handle gdb_target_cpu.
5327 Modify configure.in as appropriate to make use of gdb_host_cpu
5328 and gdb_target_cpu to find makefile fragments and make links.
5332 * mipsread.c (compare_blocks): Sort blocks with the same start
5333 address by decreasing ending address.
5337 * mipsread.c (parse_procedure): Save cur_fdr accross call to
5338 lookup_symbol as it might get clobbered by the call.
5340 * mipsread.c (parse_partial_symbols): Use ADD_PSYMBOL_ADDR_TO_LIST.
5341 The previous code did not initialize the language field for the psymtab
5346 * c-exp.y (parse_number): Avoid shift warning.
5347 * serial.h (struct ttystate): Declare empty one on DOS.
5351 * xm-sun4os4.h: Return type of free() should be void, not int.
5353 * vx-share/vxWorks.h: Remove #def of NULL.
5357 * tm-rs6000.h: Nuke no-op STAB_REG_TO_REGNUM.
5361 * z8k-tdep.c (print_insn): Include the new dis-asm header file.
5365 * ieee-float.c: Moved to ../libiberty.
5366 * ieee-float.h: Moved to ../include.
5367 * Makefile.in: Update accordingly.
5368 * i386-pinsn.c (print_insn), m68k-pinsn.c (print_insn):
5369 Convert to stubs that call disassemblers in ../opcodes/*-dis.c.
5370 * m68k-tdep.c: Removed definition of ext_format ext_format_68881;
5371 it is now in ../opcodes/m68881-ext.c.
5372 * mips-tdep.c (mips_skip_prologue): Try to skip more of the
5373 prologue (some callers _do_ care).
5374 * mips-pinsn.c (print_insn), z8k-tdep.c (print_insn): Convert to
5375 new interface of ../opcodes/*-dis.c.
5376 * ch-exp.y: Add #include <ctype.h>.
5380 * xcoffexec.c (exec_close): Don't close exec_bfd twice.
5382 * xcoffread.c (enter_line_range): endaddr is exclusive, not inclusive.
5386 * xcoffread.c (arrange_linetable): Use x{m,re}alloc not {m,re}alloc.
5390 * z8k-tdep.c (extract_return_value, write_return_value,
5391 store_struct_return): New functions from macros in tm-z8k.h.
5395 * valops.c (value_arg_coerce): Apply temporary patch to
5396 fix problem with coercion of array and function types when
5397 passed as arguments to C functions, pending a more complete
5398 review of when and how coercion should be done, depending
5399 upon context and language.
5403 * xcoffread.c (MIN_TBTABSIZ): Change to 12.
5405 * xcoffread.c (xcoff_symfile_read): Only read stringtab and
5406 debugsec if there are a non-zero number of symbols.
5410 * command.c (show_user): Avoid fprintf_filtered botch (AGAIN!).
5414 * xcoffexec.c (add_vmap): Wrap symbol read in catch_errors.
5416 * xcoffread.c (read_symbol_lineno): Look to end of symbols for .bf,
5417 not just 50 symbols.
5418 (symtbl_num_syms): New variable.
5419 (read_xcoff_symtab): Set it.
5420 (read_symbol_nvalue): Check for bad symno.
5421 (read_symbol_{lineno,nvalue}, callers): Don't pass symtable; it's
5426 * config/rs6000.mh: Get rid of -Dfd_set=int crock.
5427 This is defined in defs.h if necessary.
5428 * vx-share/vxWorks.h: Remove #defs of min and max.
5429 * vx-share/xdr_ld.c, vx-share/xdr_ptrace.c,
5430 vx-share/xdr_rdb.c: include defs.h.
5434 * xcoffread.c (retrieve_tracebackinfo): Move assignment out
5437 * xcoffread.c (enter_line_range): complain() on bad endoffset.
5438 xcoffread.c: Doc fixes.
5442 * tm-rs6000.h (CORE_NEEDS_RELOCATION): Just call xcoff_relocate_core.
5443 xcoffexec.c (xcoff_relocate_core): New function.
5444 (text_adjustment): Removed.
5445 (add_vmap): Return the vmap.
5446 rs6000-tdep.c (add_text_to_loadinfo): No longer static.
5450 * xcoffsolib.h: Add objfile member to struct vmap.
5451 xcoff{exec,solib}.c: Use it, not lookup_objfile_bfd.
5452 xcoffexec.c (add_vmap): Allocate objfiles here.
5456 Support 68000 series without floating point.
5458 * configure.in (m68000-*-{aout,elf,coff}): New configs.
5459 * tm-68k-nofp.h: New file, lacks 68881 support.
5460 * config/m68k-nofp.mt: New file.
5464 Remove a few remaining underscore/no-underscore remnants from
5467 * config/{m68k-un.mt, sparc-un.mt}: Remove.
5468 * config/m68k-noun.mt: Rename to m68k-fp.mt.
5469 * config/sparc-noun.mt: Rename to sparc-em.mt.
5470 * tm-68k-noun.h, tm-spc-noun.h: Remove.
5471 * tm-68k-un.h: Rename to tm-68k-fp.h.
5472 * tm-spc-un.h: Rename to tm-spc-em.h.
5473 * tm-sun4sol2.h: Cleanup.
5474 * configure.in (m68k-*, sparc-* targets): Corresponding changes.
5478 * symmisc.c (std_in, std_out, std_err): Move initializations
5479 to runtime code, in case they aren't constant.
5483 * symtab.c (find_pc_symtab): some object file formats, notably
5484 mips, have holes in the address ranges of symtabs. Change
5485 this algorithm from first hit to tightest fit.
5487 * mips-tdep.c (heuristic_proc_start): if we walk the pc into the
5488 fence post without finding the enclosing function, then print a
5493 * utils.c (fputs_demangled, fprint_symbol): Remove.
5494 * utils.c (fprintf_symbol_filtered): New function which combines
5495 the functionality of fputs_demangled and fprint_symbol. Uses a
5496 caller provided language parameter to select the appropriate
5497 demangler, and caller provided args to pass to the demangler.
5498 * defs.h (enum language): Move further up in file so enum can
5499 be used in prototypes.
5500 * defs.h (fputs_demangled, fprint_symbol): Remove prototypes.
5501 * defs.h (fprintf_symbol_filtered): Add prototype.
5502 * c-typeprint.c (cp_type_print_method_args): Replace calls to
5503 fputs_demangled with call to fprintf_symbol_filtered.
5504 * cp-valprint.c (demangle.h): Include
5505 * cp-valprint.c (cp_print_value_fields): Replace calls to
5506 fprint_symbol with calls to fprintf_symbol_filtered.
5507 * printcmd.c (print_frame_args): Replace call to fprint_symbol
5508 with call to fprintf_symbol_filtered.
5509 * stack.c (print_frame_info): Remove obsolete code so we don't
5510 have to update fputs_demangled usage in it.
5511 * stack.c (print_frame_info, frame_info): Add language variable
5512 to pass to fprintf_symbol_demangled and initialize it from the
5513 symbol's language. Replace calls to fputs_demangled with calls
5514 to fprintf_symbol_filtered.
5515 * symtab.c (find_methods): Replace call to fputs_demangled with
5516 call to fprintf_symbol_filtered.
5517 * ch-valprint.c (demangle.h): Include.
5518 * ch-valprint.c (chill_print_value_fields): Replace call to
5519 fprint_symbol with call to new fprintf_symbol_filtered.
5523 * Makefile.in (VERSION): Bump version to 4.8.2.
5525 * main.c (source_command): Require an explicit pathname of file
5526 to source, since previous behavior of defaulting to gdb init file
5527 was troublesome and undocumented.
5528 * printcmd.c (disassemble_command): Add missing '{}' pair to
5529 else with two statements. Bug reported by Stephane Tsacas
5531 * symtab.c (find_pc_line): Don't complain about zero length or
5532 negative length line numbers for the moment, since we may not own
5533 the terminal when called, such as when single stepping. (FIXME)
5534 * language.h (CAST_IS_CONVERSION): True if current language is
5535 C++ as well as C. Fix from Peter Schauer.
5536 * environ.c (get_in_environ, set_in_environ, unset_in_environ):
5537 Use STREQN macro rather than bare '!strncmp()'.
5538 * environ.c (unset_in_environ): Avoid use of memcpy on
5539 overlapping memory regions, as suggested by Paul Eggert
5541 * c-exp.y (%union struct): Remove unused ulval as suggested
5546 * main.c (gdbinit): Make static.
5547 * main.c (inhibit_gdbinit): Move to file scope.
5548 * main.c (main): Remove local inhibit_gdbinit.
5549 * main.c (source_command): Don't source '.gdbinit' file by
5550 default if gdb has been told to ignore it.
5554 * Makefile.in (MAKEOVERRIDES): Define to be empty for GNU Make
5559 * printcmd.c (print_address_symbolic): Only print if offset
5560 is shorter than max_symbolic_offset.
5561 (initialize_printcmd): `set print max-symbolic-offset'.
5563 * am29k-tdep.c (TAGWORD_ZERO_MASK): New #define.
5564 (examine_tag): Use it.
5565 (read_register_stack): Only look in the local registers for a
5566 memory address if it's between rfb and rsp; go to memory otherwise.
5567 (initialize_29k): Fix call_scratch_address doc. Remove reginv_com.
5568 (reginv_com): Remove ancient kludge command.
5572 * tm-irix3.h (ZERO_REGNUM): copy this macro from tm-mips.h so that
5573 irix4 will again compile.
5575 * tm-mips.h (GDB_TARGET_IS_MIPS): no longer used, now removed.
5577 * configure.in: accept mips-sgi-irix4* for irix4.
5581 * z8k-tdep.c (print_register_hook): Lint.
5587 * command.c (do_setshow_command): var_uintegers are unsigned.
5588 * sparc-tdep.c (save_insn_opcodes, restore_insn_opcodes):
5589 unsigned, since they use hex values with the high bit set.
5594 * m88k-pinsn.c (sprint_address): Use SYMBOL_NAME macro to
5596 * m88k-nat-c (SXIP_OFFSET, SNIP_OFFSET, SFIP_OFFSET): Enclose
5597 macro definitions in parenthesis.
5599 * dbxread.c (dbx_symfile_init): Catch the case where there is
5600 no string table, but the only way we find out is by reading zero
5605 * dbxread.c (dbx_symfile_init): Make size of the string table
5606 size field a define (DBX_STRINGTAB_SIZE_SIZE). Ensure that the
5607 offset to the string table is nonzero and handle the nonexistant
5608 string table case, should it occur. Ensure that the string table
5609 size read from the file is reasonable, with a minimum lower bound
5610 of DBX_STRINGTAB_SIZE_SIZE instead of zero.
5614 * Makefile.in: Changes to build testsuite correctly.
5615 (FLAGS_TO_PASS): Added CXX and CXXFLAGS.
5616 (CC_FOR_TARGET, CXX, CXX_FOR_TARGET): New variables.
5617 (TARGET_FLAGS_TO_PASS): New variable.
5618 (SUBDIRS): Added testsuite.
5619 (all): Build testsuite using TARGET_FLAGS_TO_PASS, so that
5620 testsuite is compiled with CC_FOR_TARGET rather than CC.
5624 * dbxread.c (dbx_symfile_init): Fix for nonexistant string table,
5628 * configure.in (vax-*-ultrix2*): New triplet.
5629 * config/vaxult2.mh: New file.
5630 * xm-vaxult2.h: New file.
5632 * c-exp.y (parse_number): Change high_bit to unsigned.
5633 * demangle.c: Change all references to cfront to ARM, since the
5634 actual algorithm is the one specified in the Annotated Reference
5635 Manual. This was confusing users into thinking that full cfront
5636 support was implemented.
5637 * dwarfread.c (CFRONT_PRODUCER): Remove, was never really used.
5638 * eval.c (evaluate_subexp): For STRUCTOP_PTR pass the arg type
5639 directly to lookup_struct_elt_type, which will do the
5640 dereferencing itself.
5641 * gdbtypes.c (lookup_struct_elt_type): Expand comments. Fix
5642 NULL dereferencing bug for unnamed structs, comment out
5647 * coffread.c (process_coff_symbol): Change PCC argument correction
5648 so that it only happens on big-endian targets; so that it only
5649 happens if the short or char argument is aligned on an int
5650 boundary; and so that it changes the location, rather than the
5651 type, of the argument. These changes tend to parallel similar
5652 (old) changes in stabsread.c.
5654 * coffread.c (coff_read_enum_type): Use the specified size for
5655 enums, don't assume that they are int-sized.
5657 * c-valprint.c (c_val_print): Don't assume enums are the same as
5660 * coredep.c: Handle NO_PTRACE_H in coredep.c. Fix by Michael
5665 * language.h (local_decimal_format_custom): Add prototype.
5666 * language.c (local_decimal_format_custom): Add function, bug
5671 * xcoffexec.c (vmap_ldinfo): Fix "/" for '/' typo, reported
5676 * symfile.c (syms_from_objfile), tm-29k.h, tm-3b1.h, tm-68k-un.h,
5677 tm-altos.h, tm-arm.h, tm-convex.h, tm-es1800.h, tm-h8300.h,
5678 tm-hp300bsd.h, tm-hp300hpux.h, tm-hppa.h, tm-i386bsd.h,
5679 tm-i386v.h, tm-i960.h, tm-irix3.h, tm-isi.h, tm-linux.h,
5680 tm-m88k.h, tm-merlin.h, tm-mips.h, tm-news.h, tm-np1.h, tm-pn.h,
5681 tm-pyr.h, tm-rs6000.h, tm-spc-un.h, tm-sun386.h, tm-sunos.h,
5682 tm-symmetry.h, tm-sysv4.h, tm-tahoe.h, tm-umax.h, tm-vax.h,
5683 tm-vx68.h, tm-z8k.h: Remove remnants of NAMES_HAVE_UNDERSCORE.
5687 * symtab.h (SYMBOL_INIT_DEMANGLED_NAME): Initialize contents
5688 of demangled name fields to NULL if no demangling exists for
5689 a symbol. SYMBOL_INIT_LANGUAGE_SPECIFIC does this for new
5690 symbols if their language is known at the time they are created,
5691 but sometimes the language is not known until later.
5693 * ch-typeprint.c (chill_print_type_base): Name changed to
5694 chill_type_print_base to match pattern for C and C++ names.
5695 * ch-typeprint.c (chill_print_type): Change "char" to "CHAR"
5696 to be consistent with other usages.
5697 * ch-typeprint.c (chill_type_print_base): Add support for
5698 printing Chill STRUCT types.
5699 * ch-valprint.c: Include values.h.
5700 * ch-valprint.c (chill_print_value_fields): New function and
5701 prototype for printing Chill STRUCT values.
5702 * ch-valprint.c (chill_val_print): Fix call to val_print_string
5703 that was being called with two args instead of three.
5704 * ch-valprint.c (chill_val_print): Call chill_print_value_fields
5705 to print Chill STRUCT values.
5709 * configure.in: added testsuite to configdirs.
5713 * doc/stabs.texi: The `this' pointer is now known by the name
5714 `this' instead of `$t'.
5718 * dwarfread.c (read_tag_string_type): Rewrite to allow forward
5719 references of TAG_string_type DIEs in user defined types.
5720 * ch-lang.c (chill_create_fundamental_type): Track compiler
5721 change that now emits debugging info with the type long for Chill
5726 * remote-mips.c: New file; implements MIPS remote debugging
5728 * config/idt.mt: New file; uses remote-mips.c
5729 * configure.in (mips-idt-ecoff): New target; uses idt.mt.
5731 * mips-tdep.c (mips_fpu): New variable; controls use of MIPS
5732 floating point coprocessor.
5733 (mips_push_dummy_frame): If not mips_fpu, don't save floating
5735 (mips_pop_frame): If not mips_fpu, don't restore floating point
5737 (_initialize_mips_tdep): New function; let the user reset mips_fpu
5739 * tm-mips.h (EXTRACT_RETURN_VALUE, STORE_RETURN_VALUE): If not
5740 mips_fpu, don't use fp0 as floating point return register.
5741 (FIX_CALL_DUMMY): If not mips_fpu, don't save floating point
5746 * gdb/testsuite: made modifications to testcases, etc., to allow
5747 them to work properly given the reorganization of deja-gnu and the
5748 relocation of the testcases from deja-gnu to a "tool" subdirectory.
5752 * gdb/testsuite: Initial creation of gdb/testsuite.
5753 Migrated dejagnu testcases and support files for testing nm to
5754 gdb/testsuite from deja-gnu. These files were moved "as is"
5755 with no modifications. This migration is part of a major overhaul
5756 of dejagnu. The modifications to these testcases, etc., which
5757 will allow them to work with the new version of dejagnu will be
5758 made in a future update.
5762 * NEWS: Add reminders for next release.
5766 * mipsread.c (parse_lines): Correct check for files compiled with
5771 * Makefile.in (VERSION): 4.8.1 to distinguish local versions.
5775 * Makefile.in (VERSION): GDB-4.8 release!
5776 * README, NEWS: Update for release.
5780 * am29k-pinsn.c (print_insn): Minor nits with const.
5781 * am29k-tdep.c: More minor nits with arg types for
5782 supply_register, NULL vs. 0, read_register_gen, & reginv_com.
5786 * gcc.patch: Update for a different GCC (G++) bug.
5787 * main.c (print_gdb_version): Update copyright year to 1993.
5788 * nm-hp300bsd.h: Decide whether this is BSD 4.3 or 4.4,
5789 conditionalize this file on it. FIXME, right way is to split
5790 these into two config files.
5791 (ATTACH_DETACH): Define for BSD 4.4
5792 (PTRACE_ARG_TYPE): caddr_t for BSD 4.4, unset for 4.3.
5793 (U_REGS_OFFSET): Revise for 4.4.
5794 (REGISTER_U_ADDR): Separate for 4.4, but it doesn't work yet.
5795 * xm-hp300bsd.h: Move definitions of UINT_MAX, INT_MAX, INT_MIN,
5796 LONG_MAX into this file to avoid cpp "redefinition" warnings.
5800 * nm-hp300bsd.h (PTRACE_ARG3_TYPE): FSF's hp300's have int* not
5805 * c-lang.c (c_printstr): Bugfix for length==0 case.
5807 * c-lang.c (c_printstr): If a C string ends in a null, don't
5810 Thu Feb 18 02:39:21 1993 Stu Grossman (grossman at cygnus.com)
5812 * defs.h (STRCMP): Make it work for unsigned chars.
5816 * nm-hp300bsd.h (ATTACH_DETACH, PTRACE_ATTACH, PTRACE_DETACH): define.
5817 * config/hp300bsd.mh (REGEX, REGEX1): Define.
5818 * m68k-pinsn.c (BREAK_UP_BIG_DECL, AND_OTHER_PART): #if __GNUC__,
5819 define to kludge the large opcode table into two smaller tables,
5820 since GCC take exponential space to build the table. Lint.
5821 (NOPCODES): Remove, use "numopcodes" from opcode/m68k.h instead.
5825 * Makefile.in (VERSION): Roll to 4.7.9.
5826 * xm-hp300bsd.h: Define PSIGNAL_IN_SIGNAL_H and put a compatible
5827 definition here, to handle both BSD 4.3 and 4.4 systems.
5828 * mipsread.c (ZMAGIC): #undef to avoid duplicate define.
5829 * remote.c (alarm): Move declaration to global level, before
5830 first reference to it.
5831 * tm-i386bsd.h (NUM_REGS): There are only eleven, not twelve.
5832 * dbxread.c (process_one_symbol): Cast to unsigned char, not int.
5836 * remote.c (readchar): forward declare alarm which otherwise looks
5837 like an undeclared variable to gcc.
5839 * dbxread.c (process_one_symbol): cast enum value N_SO into int
5840 when comparing against an int. Avoids superfluous warning from
5843 * inflow.c (set_sigint_trap): add cast to assignment from signal.
5844 Avoids superfluous warnings from some systems and/or compilers
5845 (like vax ultrix 4.2.)
5847 * language.c (struct op_print unk_op_print_tab): use the enum
5848 values rather naked zeros as initializers. Avoids warnings from
5849 ultrix type compilers.
5853 * Makefile.in (VERSION): Roll to 4.7.6.
5854 (SFILES_SUBDIR): Add 29k-share/udi_soc.
5855 (SFILES_SUBSUBDIR): Move 29k-share/udi files to this macro.
5856 (alldeps.mak): Make ALLDEPFILES_SUBSUBDIR for files in sub sub dirs.
5857 (ALLDEPFILES_SUBSUBDIR): Depend on this for deeper dep files.
5858 (HFILES): Remove all nm-* except nm-trash.h. Add ns32k-opcode.h.
5859 (depend): Fix bug where nm-files in config files weren't noticed.
5860 (make-proto-gdb-1): Avoid changing directories while building new
5861 prototype. Build SFILES_SUBSUBDIR with longer symlinks.
5865 * remote.c: Improve error recovery. Allow user to break out
5866 of initial connection attempt with INTERRUPT. Treat a timeout
5867 while waiting for remote packet like a retry, unless the remote
5868 side is actively running user code. Fix a few long printf_filtered's.
5870 * xcoffread.c (read_xcoff_symtab): Don't use null symbol name for
5873 * buildsym.c (start_subfile): Allow null file name.
5877 * xcoffread.c (process_xcoff_symbol, read_symbol_lineno): complain
5878 expects a pointer to complaint rather than a complaint
5880 (process_linenos): free the previously allocated subfile name,
5881 then allocate the new one from the heap.
5885 * h8300-tdep.c, tm-h8300.h: turn off some experimental features
5889 * stabsread.c (dbx_lookup_type): Handle negative type numbers.
5890 Previously, would bogusly index off the bottom of type_vector.
5891 (rs6000_builtin_type): Accept type number as argument.
5892 (read_type, case '-'): Handle negatives like any other type number.
5894 * symfile.c (deduce_language_from_filename): Handle null name.
5896 * mips-tdep.c (isa_NAN): Fix byte order dependency.
5900 * xcoffread.c (parmsym): Don't use an initializer to set up
5901 this struct symbol. Set it up in initialize_xcoffread.
5902 (read_xcoff_symtab, xcoff_symfile_read): Surround code that only
5903 works on real rs/6000 target with #ifndef FAKING_RS6000.
5907 * stabsread.c (rs6000_builtin_type): Move function from
5908 xcoffread.c:builtin_type.
5909 * xcoffread.c (builtin_type): Move to stabsread. Remove
5910 IBM6000_HOST dependency. Move misplaced comments.
5911 (various): Change printf's to complaints.
5912 (patch_block_stabs, process_xcoff_symbol case C_DECL): Add
5913 objfile argument to read_type calls under #if 0.
5914 (process_xcoff_symbol case C_RSYM): Fix typo in #ifdef.
5915 * xcoffexec.c (map_vmap): Don't allocate an objfile for the exec_file.
5916 * Makefile.in: xcoffread.o is not built by default.
5917 * xm-rs6000.h (IBM6000_HOST): Remove.
5918 * config/rs6000.mh (NATDEPFILES): xcoffread.o is native only.
5919 * doc/gdbint.texinfo: Eliminate IBM6000_HOST, document
5922 Wed Feb 10 18:31:20 1993 Stu Grossman (grossman at cygnus.com)
5924 * findvar.c (read_var_value): If REG_STRUCT_HAS_ADDR, then set
5925 VALUE_LVAL to be lval_memory so that we don't try to modify wild
5926 register numbers when user tries to modify elements in structs
5927 passed as arguments.
5928 * inflow.c (child_terminal_info): Move banner outside of system
5930 * tm-hppa.h (REG_STRUCT_HAS_ADDR): Define this for HPPA, which
5931 passes struct/union arguments by address.
5936 * nm-i386sco4.h: New file. Like nm-i386sco.h, but define
5937 ATTACH_DETACH, PTRACE_ATTACH and PTRACE_DETACH.
5938 * config/i386sco4.mh (NAT_FILE): Use nm-i386sco4.h.
5942 * remote-udi.c (FREEZE_MODE): Fix && for & typo. Found and
5947 * config/i386sco4.mh (MUNCH_DEFINE): Pass -p to nm to avoid bug in
5948 cc debugging output.
5952 * stabsread.c (define_symbol): Complain about unrecognized names
5953 that begin with CPLUS_MARKER (often '$'), but don't die. Fix
5955 (read_cpp_abbrev): Don't use the class name as part of the
5956 vtable pointer member name (_vptr$) in $vf abbrevs or unrecognized
5957 abbrevs. Inspired by Mike Tiemann.
5958 (read_tilde_fields): Comment. Remove ancient dead code.
5959 Remove erroneous but non-dead code. Simplify. Add complaints.
5960 (in general): Remove extraneous (parentheses) in return
5965 * coffread.c (coff_lookup_type): Fix fencepost error reported
5968 Fix long file name bug reported on SCO Open Desktop 2.0 by Ulf Lunde
5971 * coffread.c (getfilename): Eliminate COFF_NO_LONG_FILE_NAMES
5972 test, which is apparently left over from when we used native
5973 include files and couldn't depend on the member names being there.
5974 * tm-3b1.h, tm-altos.h, tm-i386v.h: Don't set it.
5978 * mipsread.c: Major overhaul to use new BFD symbol table reading
5979 routines. Now swaps information as it is needed, rather than
5980 swapping everything when the file is read.
5984 * Makefile.in (TARDIRS): Add sparclite demo dir.
5985 (*.tab.c): Change dependency on Makefile to depend on
5986 Makefile.in, otherwise it always rebuilds after configuring.
5987 Force output *.tab.c file into current directory even in "make"
5988 versions that rewrite dependent file names used in command lines.
5990 * TODO: Remove some things we did.
5991 * am29k-opcode.h, convx-opcode: Remove; now in ../include/opcode.
5992 * os68k-xdep.c: Remove; useless file (os68k is a target only).
5993 * convex-pinsn.c: Use ../include/opcode/convex.h. Add CONST.
5994 * symtab.h: Eliminate unnamed unions and structs.
5998 * Makefile.in (VERSION): Roll to 4.7.5.
6002 * breakpoint.c (breakpoint_re_set_one): Handle watchpoints when
6003 re-evaluating symbol pointers.
6007 * c-exp.y (lcurly, rcurly): New nonterminals.
6008 * c-exp.y (exp): Use lcurly and rcurly for arrays and UNOP_MEMVAL
6010 * parse.c (free_funcalls): Moved prototype from parser-defs.h,
6011 made function static.
6012 * parse.c (struct funcall): Moved struct def from parser-defs.h.
6013 * parse.c (funcall_chain): Moved from parser-defs.h, made static.
6014 * parse.c (start_arglist):
6015 * parser-defs.h (free_funcalls): Moved prototype to parse.c.
6016 * parser-defs.h (struct funcall): Moved struct def to parse.c.
6017 * parser-defs.h (funcall_chain): Moved to parse.c.
6018 * printcmd.c (print_frame_nameless_args): Fix prototype.
6019 * tm-mips.h (setup_arbitrary_frame): Fix prototype.
6020 * tm-sparc.h (setup_arbitrary_frame): Fix prototype.
6021 * valops.c (typecmp): Moved prototype from values.h.
6022 * value.h (typecmp): Moved prototype to valops.c, made static.
6023 * ch-exp.y (yylex): Change way control sequences are disabled.
6027 * tm-mips.h, tm-sparc.h: Fix thinko in SETUP_ARBITRARY_FRAME.
6031 * mipsread.c (upgrade_type): Build array types correctly, using
6032 create_range_type and create_array_type.
6036 * remote-nindy.c: Cleanup.
6038 * infrun.c (wait_for_inferior): When rolling back the PC after
6039 a breakpoint, call write_pc so that NPC gets rolled back as well
6042 * blockframe.c (inside_entry_file, inside_main_func,
6043 inside_entry_func): PC of zero is always "bottom of stack".
6045 * printcmd.c (print_frame_args, print_frame_nameless_args):
6046 Let print_frame_nameless_args decide whether there are any,
6047 laying groundwork for possibly later printing 29K args for
6048 functions where we have tag words but no symbols.
6052 * Makefile.in: fix GDB doc targets for new doc subdir structure
6056 * stack.c (parse_frame_specification): Parse as many arguments
6057 as there are (up to MAXARGS). Pass all of them in argc, argv
6058 format to SETUP_ARBITRARY_FRAME. Put the burden of checking how
6059 many there were, onto SETUP_ARBITRARY_FRAME.
6060 * tm-mips.h, tm-sparc.h: Corresponding changes.
6061 * mips-tdep.c, sparc-tdep.c: Ditto.
6065 * hp300ux-nat.c: Update copyrights.
6066 * mipsread.c (parse_partial_symbols): Complain about block
6067 indexes that go backwards. Fix from Peter Schauer.
6068 * symfile.c (syms_from_objfile, symbol_file_add): Allow a
6069 symbol-file that has no linkage symbols to be read.
6070 * tm-rs6000.h, xm-rs6000.h: (SIGWINCH_HANDLER and friends): Move
6071 from tm- file to xm-file, since they're host dependent.
6072 * valarith.c (value_binop): Typo.
6074 Mon Feb 1 16:16:59 1993 Stu Grossman (grossman at cygnus.com)
6076 * sparclite/aload.c: Add copyleft.
6077 * sparclite/crt0.s: Add comment at beginning.
6081 * remote-z8k.c, z8k-tdep.c: support for the Z8001 and Z8002.
6082 * parse.c (std_regs): Only declare if NO_STD_REGS is defined.
6086 * values.c (value_headof): Fix typo in which VTBL and ARG were
6087 being confused for one another.
6089 * valops.c (typecmp): Now static.
6091 * gdbtypes.c (fill_in_vptr_fieldno): Don't ignore the first
6092 baseclass--we don't always inherit its virtual function table
6095 * eval.c (evaluate_subexp): In OP_FUNCALL case, adjust `this'
6096 pointer correctly in case value_struct_elt moves it around.
6098 * valops.c (typecmp): Now static. Also, now groks references
6101 * gdbtypes.c (lookup_struct_elt_type): Pass NOERR instead of
6102 zero on recursive call. If NAME is the name of TYPE, return TYPE.
6106 * hppah-nat.c: Eliminate <sys/user.h> and other unnecessary stuff,
6107 to avoid "too much defining" error from native C compiler (!).
6109 * Makefile.in (HFILES): Add typeprint.h.
6110 * typeprint.[ch]: Update copyrights.
6114 * Makefile.in: Update to match doc/ subdir changes.
6116 * config/hp300hpux.mh: No cross-host file needed, just native.
6117 * config/go32.mh: Remove nonexistent "native" support.
6120 * tm-m88k.h (REGISTER_CONVERT_TO_RAW): Fix typo.
6121 * m88k-tdep.c (next_insn): Lint, cleanup.
6122 (store_parm_word): Lint.
6128 * expression.h (BINOP_CONCAT): Document use for self concatenation
6129 an integral number of times.
6130 * language.c (binop_type_check): Extend BINOP_CONCAT for self
6132 * valarith.c (value_concat): Rewrite to support self
6133 concatenation an integral number of times.
6134 * Makefile.in (ch-exp.tab.c): Change "expect" message.
6135 * ch-exp.y (FIXME's): Make all FIXME tokens distinct, to
6136 eliminate hundreds of spurious shift/reduce and reduce/reduce
6137 conflicts that mask the 5 real ones.
6138 * ch-exp.y (STRING, CONSTANT, SC): Remove unused tokens.
6139 * ch-exp.y (integer_literal_expression): Remove production,
6144 * eval.c (evaluate_subexp): Fix OP_ARRAY, remove code that
6145 implied that "no side effects" was nonfunctional.
6146 * eval.c (evaluate_subexp): Add BINOP_CONCAT case to deal with
6147 character string and bitstring concatenation.
6148 * expprint.c (dump_expression): Add case for BINOP_CONCAT.
6149 * expression.h (exp_opcode): Add BINOP_CONCAT.
6150 * gdbtypes.h (type_code): Add TYPE_CODE_BITSTRING.
6151 * language.c (string_type): Add function to determine if a type
6153 * language.c (binop_type_check): Add case for BINOP_CONCAT.
6154 * valarith.c (value_concat): New function to concatenate two
6155 values, such as character strings or bitstrings.
6156 * valops.c (value_string): Remove error stub and implement
6158 * value.h (value_concat): Add prototype.
6159 * ch-exp.y (operand_3): Add actions for SLASH_SLASH (//).
6160 * ch-exp.y (yylex): Recognize SLASH_SLASH.
6161 * ch-lang.c (chill_op_print_tab): Add SLASH_SLASH (//) as
6166 * c-exp.y (exp): Add production to support direct creation
6167 of array constants using the obvious syntax.
6168 * c-valprint.c (c_val_print): Set printed string length.
6169 * dwarfread.c (read_tag_string_type): New prototype and
6170 function that handles TAG_string_type DIEs.
6171 * dwarfread.c (process_dies): Add case for TAG_string_type
6172 that calls new read_tag_string_type function.
6173 * expprint.c (print_subexp): Add support for OP_ARRAY.
6174 * gdbtypes.c (create_range_type, create_array_type): Inherit
6175 objfile from the index type.
6176 * ch-typeprint.c (chill_print_type): Add case for
6178 * ch-valprint.c (chill_val_print): Fix case for
6183 * mipsread.c (CODE_MASK, MIPS_IS_STAB, MIPS_MARK_STAB,
6184 MIPS_UNMARK_STAB, STABS_SYMBOLS): Removed; now in
6185 include/coff/mips.h.
6189 * c-exp.y (exp:STRING): Convert C strings into array-of-char
6190 constants with an explicit null byte terminator. OP_STRING is
6191 now used for real string types.
6192 * c-lang.c (builtin_type_*): Move declarations to lang.c since
6193 they are used by all languages.
6194 * c-lang.c (_initialize_c_language): Move initializations of
6195 builtin_type_* to lang.c.
6196 * c-typeprint.c (c_type_print_varspec_prefix,
6197 c_type_print_varspec_suffix): TYPE_CODE_PASCAL_ARRAY renamed
6198 to TYPE_CODE_STRING.
6199 * c-valprint.c (c_val_print): Change the way character arrays
6200 are printed as strings to be consistent with the way strings
6201 are printed when pointer-to-char types are dereferenced.
6202 Remove test of print_max before calling val_print_string, which
6203 now does it's own test.
6204 * eval.c (evaluate_subexp): Add case for OP_ARRAY.
6205 * expprint.c (print_subexp, dump_expression): Add case for OP_ARRAY.
6206 * expression.h (enum exp_opcode): Add OP_ARRAY and document.
6207 * gdbtypes.c (builtin_type_*): Add declarations moved from
6209 * gdbtypes.c (create_string_type): New function to create real
6211 * gdbtypes.c (recursive_dump_type): TYPE_CODE_PASCAL_ARRAY
6212 renamed to TYPE_CODE_STRING.
6213 * gdbtypes.c (_initialize_gdbtypes): Add initializations of
6214 builtin_type_* types moved from c-lang.c.
6215 * gdbtypes.h (enum type_code): TYPE_CODE_PASCAL_ARRAY renamed
6216 to TYPE_CODE_STRING.
6217 * gdbtypes.h (builtin_type_string): Add extern declaration.
6218 * gdbtypes.h (create_string_type): Add prototype.
6219 * m2-lang.c (m2_create_fundamental_type): TYPE_CODE_PASCAL_ARRAY
6220 renamed to TYPE_CODE_STRING.
6221 * m88k-tdep.c (pushed_size): TYPE_CODE_PASCAL_ARRAY renamed to
6223 * mipsread.c (_initialize_mipsread): TYPE_CODE_PASCAL_ARRAY
6224 renamed to TYPE_CODE_STRING.
6225 * parse.c (length_of_subexp, prefixify_subexp): Add case for
6227 * printcmd.c (print_formatted): Recognize TYPE_CODE_STRING.
6228 * typeprint.c (print_type_scalar): TYPE_CODE_PASCAL_ARRAY renamed
6229 to TYPE_CODE_STRING.
6230 * valops.c (allocate_space_in_inferior): New function and
6231 prototype, using code ripped out of value_string.
6232 * valops.c (value_string): Rewritten to use new function
6233 allocate_space_in_inferior, but temporarily disabled until some
6234 other support is in place.
6235 * valops.c (value_array): New function to create array constants.
6236 * valprint.c (val_print_string): Add comment to document use,
6237 complete rewrite to fix several small buglets.
6238 * value.h (value_array): Add prototype.
6239 * value.h (val_print_string): Change prototype to match rewrite.
6240 * ch-valprint.c (chill_val_print): Add case for TYPE_CODE_STRING.
6241 * ch-exp.y (match_character_literal): Disable recognition of
6242 control sequence form of character literals and document why.
6244 Thu Jan 14 15:48:12 1993 Stu Grossman (grossman at cygnus.com)
6246 * nindy-share/nindy.c: Add comments to #endif's to clarify
6249 * hppa-pinsn.c (print_insn): Use read_memory_integer, instead of
6250 read_memory to get byte order right.
6251 * hppah-tdep.c (find_unwind_info): Don't read in unwind info
6252 anymore. This is done in paread.c now. We expect unwind info
6253 to hang off of objfiles, and search all of the objfiles when until
6255 * (skip_trampoline_code): Cast arg to target_read_memory.
6256 * objfiles.h (struct objfile): Add new field obj_private to hold
6257 per object file private data (unwind info in this case).
6258 * paread.c (read_unwind_info): New routine to read unwind info
6259 for the objfile. This data is hung off of obj_private.
6260 * tm-hppa.h: Define struct obj_unwind_info, to hold pointers to
6261 the unwind info for this objfile. Also define OBJ_UNWIND_INFO to
6262 make this easier to access.
6266 * c-valprint.c (cp_print_class_member): Add extern decl.
6267 * c-valprint.c (c_val_print): Extract code for printing methods
6268 and move it to cp_print_class_method in cp-valprint.c.
6269 * c-valprint.c (c_val_print): Extract code to print strings and
6270 move it to val_print_string in valprint.c.
6271 * cp-valprint.c (cp_print_class_method): New function using
6272 code extracted from c_val_print.
6273 * valprint.c (val_print_string): New function using code
6274 extracted from c_val_print.
6275 * value.h (val_print_string): Add prototype.
6276 * ch-exp.y (CHARACTER_STRING_LITERAL): Set correct token type.
6277 * ch-exp.y (literal): Add action for CHARACTER_STRING_LITERAL.
6278 * ch-exp.y (tempbuf, tempbufsize, tempbufindex, GROWBY_MIN_SIZE,
6279 CHECKBUF, growbuf_by_size): New variables, macros, and support
6280 functions for implementing a dynamically expandable temp buffer.
6281 * ch-exp.y (match_string_literal): New lexer function.
6282 * ch-exp.y (match_bitstring_literal): Dynamic buffer code
6283 removed and replaced with new CHECKBUF macro.
6284 * ch-exp.y (yylex): Call match_string_literal when appropriate.
6285 * ch-valprint.c (ch_val_print): Add code for TYPE_CODE_PTR.
6287 Sat Jan 9 19:59:33 1993 Stu Grossman (grossman at cygnus.com)
6289 * Makefile.in: Add info for paread.o.
6290 * config/hppahpux.mh: Add paread.o to NATDEPFILES.
6292 * blockframe.c (frameless_look_for_prologue): Correct the
6294 * gdbtypes.h, gdbtypes.c: Use const in decl of
6295 cplus_struct_default, now that pa-gas assembler has been fixed.
6296 * hppah-nat.c: Formatting.
6297 * hppah-tdep.c: Remove lots of useless externs for variables we
6299 * (find_unwind_entry): Speed up by using binary search, and a one
6301 * (rp_saved): New routine to see what unwind info says about RP
6302 being saved on the stack frame.
6303 * (frame_saved_pc): Look for prologue to see if we need to
6304 examine the stack for the saved RP or not.
6305 * (init_extra_frame_info): Check for prologue, instead of
6306 framesize to determine if we are frameless or not.
6307 * (frame_chain_valid): Stop backtraces when we run into _start.
6308 * (push_dummy_frame): Reformat to make more readable.
6309 * (find_dummy_frame_regs): ditto.
6310 * (hp_pop_frame): ditto.
6311 * (hp_restore_pc_queue): small cleanup.
6312 * (hp_push_arguments): ditto.
6313 * (pa_do_registers_info): ditto.
6314 * (skip_prologue): New routine created from SKIP_PROLOGUE macro.
6315 * tm-hppa.h: Move contents of SKIP_PROLOGUE into hppah-tdep.c.
6316 * Define FRAME_CHAIN_VALID.
6317 * Turn on BELIEVE_PCC_PROMOTION so that we can access char args
6318 passed to functions.
6320 * paread.c (pa_symtab_read): Use new bfd conventions for
6321 accessing linker symbol table.
6322 * (pa_symfile_init): Access embedded STAB info via BFD section
6323 mechanism and related macros.
6326 Sat Jan 9 19:31:43 1993 Stu Grossman (grossman at cygnus.com)
6328 * sparc-stub.c: Use a seperate stack for our traps.
6329 * Handle recursive traps.
6330 * Remove all trap init code. This needs to be done by the
6332 * (set_mem_fault_trap): Call exceptionHandler() to setup this
6334 * (handle_exception): See if we are at breakinst, if so, then
6335 advance PC sp that users can just step out of breakpoint().
6336 * (case 'G'): Don't let GDB hack CWP. Also, copy saved regs to
6337 new place if SP has changed.
6338 * (case 's'): Get rid of this, we can't do it yet.
6339 * (case 't'): New command to test any old random feature.
6340 * (case 'r'): New command to reset the system.
6341 * (breakpoint): Add label to breakpoint trap instruction so that
6342 handle_exception() can detect where we are and get past the
6343 breakpoint trivially.
6347 * mips-pinsn.c: Actual work now done by opcodes/mips-dis.c.
6349 Thu Jan 7 09:21:51 1993 david d `zoo' zuhn (zoo at cirdan.cygnus.com)
6351 * configure.in: recognise all sparclite variants
6355 * symfile.c: If O_BINARY isn't defined, set it to 0, call openp for
6356 binary files oring in the right bit.
6358 * main.c, source.c, state.c, symmisc.c: use macros defined in
6359 fopen-{bin|both} when fopening files.
6363 * defs.h (HOST_CHAR_BIT): New macro, defaults to either CHAR_BIT
6364 from a configuration file (typically including <limits.h>), or to
6365 TARGET_CHAR_BIT if CHAR_BIT is not defined.
6366 * eval.c (evaluate_subexp): Use new BYTES_TO_EXP_ELEM macro.
6367 * eval.c (evaluate_subexp): Add case for OP_BITSTRING.
6368 * expprint.c (print_subexp): Use new BYTES_TO_EXP_ELEM macro.
6369 * exppritn.c (print_subexp, dump_expression): Add case for
6371 * expression.h (OP_BITSTRING): New expression element type for
6373 * expression.h (EXP_ELEM_TO_BYTES, BYTES_TO_EXP_ELEM): New
6374 macros to convert between number of expression elements and bytes
6375 to store that many elements.
6376 * i960-tdep.c (leafproc_return): Use new macros to access
6377 minimal symbol name and address fields.
6378 * m88k-pinsn.c (sprint_address): Use new macros to access
6379 minimal symbol name and address fields.
6380 * nindy-tdep.c (nindy_frame_chain_valid): Use new macro to access
6381 minimal symbol address field.
6382 * parse.c (write_exp_elt, write_exp_string, prefixify_expression,
6383 parse_exp_1): Use new EXP_ELEM_TO_BYTES macro.
6384 * parse.c (write_exp_string, length_of_subexp, prefixify_expression):
6385 Use new BYTES_TO_EXP_ELEM macro.
6386 * parse.c (write_exp_bitstring): New function to write packed
6387 bitstrings into the expression element vector.
6388 * parse.c (length_of_subexp, prefixify_subexp): Add case for
6390 * parser-defs.h (struct stoken): Document that it is used for
6391 OP_BITSTRING as well as OP_STRING.
6392 * parser-defs.h (write_exp_bitstring): Add prototype.
6393 * ch-exp.y (BIT_STRING_LITERAL): Change token type to sval.
6394 * ch-exp.y (NUM, PRED, SUCC, ABS, CARD, MAX, MIN, SIZE, UPPER,
6395 LOWER, LENGTH): New tokens for keywords.
6396 * ch-exp.y (chill_value_built_in_routine_call, mode_argument,
6397 upper_lower_argument, length_argument, array_mode_name,
6398 string_mode_name, variant_structure_mode_name): New non-terminals
6400 * ch-exp.y (literal): Useful production for BIT_STRING_LITERAL.
6401 * ch-exp.y (match_bitstring_literal): New lexer support function
6402 to recognize bitstring literals.
6403 * ch-exp.y (tokentab6): New token table for 6 character keywords.
6404 * ch-exp.y (tokentab5): Add LOWER, UPPER.
6405 * ch-exp.y (tokentab4): Add PRED, SUCC, CARD, SIZE.
6406 * ch-exp.y (tokentab3): Add NUM, ABS, MIN, MAX.
6407 * ch-exp.y (yylex): Check tokentab6.
6408 * ch-exp.y (yylex): Call match_bitstring_literal.
6412 * xcoffexec.c (vmap_symtab): Use new macros to access minimal
6413 symbol name and value fields.
6415 * c-exp.y (yylex): Make static, to match prototype and other
6418 * expression.h (exp_opcode): Add BINOP_MOD.
6419 * eval.c (evaluate_subexp): Handle new BINOP_MOD.
6420 * expprint.c (dump_expression): Handle new BINOP_MOD.
6421 * language.c (binop_type_check): Handle new BINOP_MOD.
6422 * main.c (float_handler): Re-enable float handler when hit.
6423 * valarith.c (language.h): Include, need current_language.
6424 * valarith.c (TRUNCATION_TOWARDS_ZERO): Define default macro
6425 for integer divide truncates towards zero for negative results.
6426 * valarith.c (value_x_binop): Handle BINOP_MOD if seen.
6427 * valarith.c (value_binop): Allow arithmetic operations on
6428 TYPE_CODE_CHAR variables. Add case to handle new BINOP_MOD.
6429 * ch-exp.y (operand_4): Add useful actions for MOD and REM.
6430 * ch-exp.y (tokentab3): Add MOD and REM.
6431 * ch-exp.y (yylex): Set innermost_block for symbols found
6432 in local scopes. Return LOCATION_NAME for local symbols.
6433 * ch-lang.c (chill_op_print_tab): Fix MOD entry to use
6434 BINOP_MOD instead of BINOP_REM. Add REM entry, using BINOP_REM.
6438 * command.c (shell_escape, make_command, _initialize_command):
6439 don't create or use fork if CANT_FORK is defined.
6440 * serial.h, ser-go32.c: now compiles, but "the obvious problems of
6441 code written for the IBM PC" remain.
6442 * xm-go32.h: define CANT_FORK
6446 * remote-sim.c: first attempt at general simulator interface
6447 * remote-hms.c: whitespace
6448 * h8300-tdep.c: (h8300_skip_prologue, examine_prologue):
6449 understand new stack layout. (print_register_hook): print ccr
6450 register in a fancy way.
6454 * eval.c (language.h): Include.
6455 * eval.c (evaluate_subexp_with_coercion): Only coerce arrays
6456 to pointer types when the current language is C. It loses for
6457 other languages when the lower index bound is nonzero.
6458 * valarith.c (value_subscript): Take array lower bounds into
6459 account when performing subscripting operations.
6460 * valops.c (value_coerce_array): Add comment describing why
6461 arrays with nonzero lower bounds are dealt with in value_subscript,
6462 rather than in value_coerce_array.
6466 * ch-exp.y (FLOAT_LITERAL): Add token.
6467 * ch-exp.y (literal): Add FLOAT_LITERAL.
6468 * ch-exp.y (match_float_literal): New lexer routine.
6469 * ch-exp.y (convert_float): Remove.
6470 * ch-exp.y (yylex): Call match_float_literal.
6471 * ch-exp.y (yylex): Match single '.' after trying
6472 to match floating point literals.
6474 * eval.c (evaluate_subexp): Add case MULTI_SUBSCRIPT.
6475 * expprint.c (print_subexp): Rename BINOP_MULTI_SUBSCRIPT to
6477 * expprint.c (dump_expression): New function for dumping
6478 expression vectors during gdb debugging.
6479 * expression.h (BINOP_MULTI_SUBSCRIPT): Name changed to
6480 MULTI_SUBSCRIPT and moved out of BINOP range.
6481 * expression.h (DUMP_EXPRESSION): New macro that calls
6482 dump_expression if DEBUG_EXPRESSIONS is defined.
6483 * m2-exp.y (BINOP_MULTI_SUBSCRIPT): Changed to MULTI_SUBSCRIPT.
6484 * parse.c (length_of_subexp, prefixify_subexp): Change
6485 BINOP_MULTI_SUBSCRIPT to MULTI_SUBSCRIPT.
6486 * parse.c (parse_exp_1): Call DUMP_EXPRESSION before and after
6487 prefixify'ing the expression.
6488 * printcmd.c (print_command_1): Add comment.
6489 * ch-exp.y (expression_list): Add useful actions.
6490 * ch-exp.y (value_array_element): Add useful actions.
6491 * ch-exp.y (array_primitive_value): Add production.
6492 * ch-exp.y (yylex): Recognize ',' as a token.
6494 Fri Jan 1 18:22:02 1993 david d `zoo' zuhn (zoo at cirdan.cygnus.com)
6496 * Makefile.in: pass prefix and exec_prefix via FLAGS_TO_PASS,
6497 POSIXize the recursive makes (make [variable assignments] target{s})
6501 * tm-sun4sol2.h (CPLUS_MARKER): Remove, now set in tm-sysv4.h.
6502 * tm-sysv4.h (CPLUS_MARKER): By default, g++ uses '.' as the
6503 CPLUS_MARKER for all SVR4 systems, so follow suit.
6504 * defs.h (strdup_demangled): Remove prototype.
6505 * dwarfread.c (enum_type, synthesize_typedef): Use new macro
6506 SYMBOL_INIT_LANGUAGE_SPECIFIC.
6507 * dwarfread.c (new_symbol): Use SYMBOL_INIT_DEMANGLED_NAME.
6508 * minsyms.c (install_minimal_symbols, prim_record_minimal_symbol,
6509 prim_record_minimal_symbol_and_info): Use new macro
6510 SYMBOL_INIT_LANGUAGE_SPECIFIC.
6511 * minsyms.c (install_minimal_symbols): Use new macro
6512 SYMBOL_INIT_DEMANGLED_NAME.
6513 * stabsread.c (define_symbol): Use new macro
6514 SYMBOL_INIT_DEMANGLED_NAME.
6515 * symfile.c (add_psymbol_to_list, add_psymbol_addr_to_list):
6516 Use new macro SYMBOL_INIT_DEMANGLED_NAME.
6517 * symfile.h (ADD_PSYMBOL_VT_TO_LIST): Use new macro
6518 SYMBOL_INIT_DEMANGLED_NAME.
6519 * symmisc.c (dump_msymbols, dump_symtab, print_partial_symbol):
6520 SYMBOL_DEMANGLED_NAME now tests language itself.
6521 * symtab.c (COMPLETION_LIST_ADD_SYMBOL): SYMBOL_DEMANGLED_NAME
6522 now tests language itself.
6523 * symtab.h (SYMBOL_CPLUS_DEMANGLED_NAME): New macro that does
6524 what SYMBOL_DEMANGLED_NAME used to do, directly access the C++
6525 mangled name member in the language dependent portion of a symbol.
6526 * symtab.h (SYMBOL_DEMANGLED_NAME): New macro that returns the
6527 mangled name member appropriate for a symbol's language.
6528 * symtab.h (SYMBOL_SOURCE_NAME, SYMBOL_LINKAGE_NAME,
6529 SYMBOL_MATCHES_NAME, SYMBOL_MATCHES_REGEXP):
6530 SYMBOL_DEMANGLED_NAME now tests language itself.
6531 * symtab.h (SYMBOL_INIT_LANGUAGE_SPECIFIC): New macro that
6532 initializes language dependent portion of symbol.
6533 * symtab.h (SYMBOL_INIT_DEMANGLED_NAME): New macro that
6534 demangles and caches the demangled form of symbol names.
6535 * utils.c (fputs_demangled, fprint_symbol): Use current language
6536 to select an appropriate demangling algorithm.
6537 * utils.c (strdup_demangled): Remove, no longer used.
6538 * symtab.h (SYMBOL_CHILL_DEMANGLED_NAME): New macro that directly
6539 access the Chill mangled name member in the language dependent
6540 portion of a symbol.
6541 * ch-lang.c (chill_demangle): New function, simple demangler.
6542 * defs.h (chill_demangle): Add prototype.
6543 * symtab.h (language_dependent_info): Add struct for Chill.
6545 For older changes see ChangeLog-92
6551 version-control: never