* ser-go32.c: Lint. (strncasecmp): Removed, now in libiberty.
[deliverable/binutils-gdb.git] / gdb / ChangeLog
1 Tue Nov 23 17:29:28 1993 Steve Chamberlain (sac@jonny.cygnus.com)
2
3 * ser-go32.c: Lint. (strncasecmp): Removed, now in libiberty.
4 (go32_readchar): Special handling for faster polling. (async
5 structure): Volatile.
6 * h8300-tdep.c (print_register_hook): Allocate and use the right
7 number bytes for the raw register.
8 * h8500-tdep.c (regoff, frame_find_saved_reg, examine_prologue):
9 deleted. (h8500_register_size, h8500_register_virtual_type, ):
10 Use new way of counting registers.
11 * remote-e7000.c (echo_index): deleted. (expect): Better handling
12 of user interrupts. (expect_prompt): Remove never used log file
13 support. (want, want_nopc): Add support for H8/300H.
14 (fetch_regs_from_dump): Treat \r and \n as whitespace.
15 (e7000_drain): Send an "end" command before waiting for output to
16 stop. (e7000_wait): Cope with H8/300H, better handling of user
17 interrupts. (why_stop, expect_n, sub2_from_pc): New function.
18 * remote-utils.c (gr_load_image): call fflush and QUIT more regularly.
19 * utils.c (notice_quit): New function for polling for user interrupts.
20
21 Fri Dec 10 15:53:56 1993 Per Bothner (bothner@kalessin.cygnus.com)
22
23 * stabsread.c (read_array_type): Allow negative array bounds,
24 without interpreting that to mean "adjustable."
25 * ch-valprint.c (chill_val_print): Handle RANGE types.
26 * ch-typeprint.c (chill_type_print_base): Handle BOOL.
27 Handle variant records. Handle RANGE types.
28
29 Tue Dec 7 15:41:32 1993 Ian Lance Taylor (ian@cygnus.com)
30
31 * config/mips/idt.mt: Use tm-idt.h instead of tm-bigmips.h.
32 * config/mips/idtl.mt: Use tm-idtl.h instead of tm-mips.h.
33 * config/mips/tm-idt.h, config/mips/tm-idtl.h: New files; use
34 different BREAKPOINT value for IDT.
35
36 * mipsread.c: Include bfd.h and coff/sym.h.
37
38 Mon Dec 6 16:34:10 1993 K. Richard Pixley (rich@cygnus.com)
39
40 * ser-unix.c (set_tty_state): set the rest of the terminal state
41 pieces.
42
43 Mon Dec 6 12:01:37 1993 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
44
45 * configure.in: Recognize mips* for all mips targets.
46 (mips*el-*-elf*, mips*-*-elf*): New targets; use idt and idtl.
47
48 Added Irix 5 support.
49 * configure.in (mips-sgi-irix5*): New host and target. Use irix5
50 for both.
51 * config/mips/irix5.mh, config/mips/irix5.mt,
52 config/mips/xm-irix5.h, config/mips/nm-irix5.h,
53 config/mips/tm-irix5.h, irix5-nat.c: New files for Irix 5 support.
54 * mdebugread.c: New file, split out of mipsread.c. Added
55 elfmdebug_build_psymtabs routine. Added some checks on external
56 symbols. Changed code to keep ecoff_debug_info and
57 ecoff_debug_swap structs in the psymtab and in global pointers
58 rather than retrieving them from the bfd. Also changed to keep
59 the pending list with the psymtab rather than the objfile (each
60 psymtab for a single objfile points to the same pending list).
61 * mipsread.c: Bulk of file moved into mdebugread.c, leaving just
62 the sym_fns.
63 * Makefile.in (SFILES): Added mdebugread.c.
64 (OBS): Added mdebugread.o.
65 (mdebugread.o): New target.
66 * symfile.h: Declare mdebug_build_psymtabs and
67 elfmdebug_build_psymtabs.
68 * elfread.c (struct elfinfo): Added mdebugsect field.
69 (elf_locate_sections): Remember location of .mdebug section.
70 (elf_symfile_read): Call elfmdebug_build_psymtabs on .mdebug
71 section.
72 * infrun.c (AT_FUNCTION_START): Set to 0 if not already defined.
73 (wait_for_inferior): Use AT_FUNCTION_START if it is defined to see
74 if PC is at the start of a function.
75 * mips-tdep.c (read_next_frame_reg): Use SIGFRAME_REG_SIZE, and
76 give it a default definition.
77 (mips_skip_prologue): Skip instructions which initialize $gp
78 register.
79 (in_sigtramp): New procedure, moved in from mipsread.c.
80 * config/mips/tm-mips.h: Declare in_sigtramp.
81
82 * serial.h (serial_fdopen): Make parameter const to match
83 function definition.
84
85 Fri Dec 3 14:20:43 1993 Stu Grossman (grossman at cygnus.com)
86
87 * config/mips/irix4.mh: Enable ser-tcp.o.
88
89 Tue Nov 30 15:24:24 1993 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
90
91 * Makefile.in (check): Do not use subdir_do, so that
92 TARGET_FLAGS_TO_PASS is used correctly.
93
94 Mon Nov 29 16:10:38 1993 Stu Grossman (grossman at cygnus.com)
95
96 * i386-nlmstub.c: Undo I/O redirection changes by Tom Lord.
97 These definitely won't work under Netware.
98
99 Mon Nov 29 15:34:58 1993 Kung Hsu (kung@cirdan.cygnus.com)
100
101 * stabsread.c(read_struct_field): Fix the check when getting to
102 member functions.
103
104 Mon Nov 29 16:48:16 1993 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
105
106 gcc -Wall -O lint:
107 * mips-tdep.c (heuristic_proc_desc): Initialize reg30 to avoid
108 warning. Unnest comment.
109 (init_extra_frame_info): Remove unused variable mask.
110 (MASK): Fully parenthesize.
111 (mips_push_dummy_frame): Remove unused variable val.
112 (mips_skip_prologue): Remove unused variables f and b.
113
114 Mon Nov 29 12:23:25 1993 Peter Schauer (pes@regent.e-technik.tu-muenchen.de)
115
116 * mipsread.c (parse_symbol, parse_partial_symbols): Do not create
117 (partial) symbols for opaque struct definitions.
118
119 Mon Nov 29 11:36:57 1993 Stu Grossman (grossman at cygnus.com)
120
121 * i386ly-tdep.c (i386lynx_saved_pc_after_call): Change call_inst
122 to unsigned char to avoid domain warning for some values.
123
124 >>>>>>> 1.2024
125 Mon Nov 22 23:42:59 1993 Steve Chamberlain (sac@jonny.cygnus.com)
126
127 * remote-e7000.c (e7000_wait): Cope with H8/300 register dump.
128 * config/h8300/h8300hms.mt: Add remote-e7000.
129
130 Mon Nov 22 11:03:45 1993 Fred Fish (fnf@cygnus.com)
131
132 Merged changes from kev@spuds.geg.mot.com (Kevin A. Buettner):
133 * gdb/config/m88k/delta88.mh (NATDEPFILES): Added corelow.o and
134 coredep.o to this list.
135 * gdb/m88k-nat.c (m88k_register_u_addr): Avoid error when passed
136 the number for an M88110 extended register by just returning the
137 address of r0.
138
139 Sat Nov 20 09:20:51 1993 Fred Fish (fnf@rtl.cygnus.com)
140
141 * go32-xdep.c (re_comp, re_exec): Remove stubs now that gdb
142 always uses it's own version of regex.
143
144 Fri Nov 19 18:23:19 1993 Kung Hsu (kung@cirdan.cygnus.com)
145
146 * valops.c(value_struct_elt_for_reference): enhance search operator in
147 c++.
148 * symtab.c(decode_line_1): same as above.
149
150 Fri Nov 19 15:08:47 1993 Jim Kingdon (kingdon@lioth.cygnus.com)
151
152 * symtab.c (decode_line_1): Add comment about use of
153 return_to_top_level directly instead of error. Add comment saying
154 that the '' should not be needed--that the completer should be fixed.
155
156 Fri Nov 19 11:00:33 1993 Kung Hsu (kung@cirdan.cygnus.com)
157
158 * symtab.c(decode_line_1): fix the inconsistency of setting
159 breakpoint with '' or without them. The '' is needed when you
160 want name completion.
161
162 Thu Nov 18 08:25:50 1993 Fred Fish (fnf@cygnus.com)
163
164 * valprint.c (val_print_string): When looking for a null
165 terminator compare current bufsize to fetchlimit to determine
166 when to stop, instead of computing buffer+fetchlimit which
167 may overflow for very large limits (like "unlimited").
168
169 Wed Nov 17 18:23:09 1993 Kung Hsu (kung@cirdan.cygnus.com)
170
171 * eval.c(evaluate_subexp): to use unified search so type conversion
172 operator works in calling method.
173 * valarith.c(value_x_binop, value_x_unop): same as above.
174 * valops.c(search_struct_method): same as above.
175
176 Wed Nov 17 18:47:34 1993 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
177
178 * mipsread.c: Change use of ECOFF information to correspond to
179 changes in bfd/libecoff.h.
180 (mipscoff_symfile_offsets): Made static.
181
182 Wed Nov 17 09:43:31 1993 Kung Hsu (kung@cirdan.cygnus.com)
183
184 * valops.c (typecmp): improve prototype matching when calling
185 a method. Make 'p (*(ostream *) &cout) << "lll" ' to work.
186 * eval.c(evalute_subexp): fix operator search problem when call
187 like p x.'operator+'(i).
188
189 Tue Nov 16 17:15:03 1993 Stu Grossman (grossman at cygnus.com)
190
191 * i386ly-nat.c, i386lynx-nat.c, m68kly-nat.c: Remove. Move
192 common code into lynx-nat.c.
193 * lynx-nat.c: New module. Contains portable code for Lynx native
194 stuff (mostly ptrace related).
195 * config/i386/i386lynx.mh (NATDEPFILES): i386ly-nat.o -> lynx-nat.o
196 * config/m68k/m68klynx.mh (NATDEPFILES): i386ly-nat.o -> lynx-nat.o
197
198 * config/nm-lynx.h, config/tm-lynx.h: New files to contain
199 non-architecture specific native and target defs.
200 * config/i386/nm-i386lynx.h, config/i386/tm-i386lynx.h,
201 config/m68k/nm-m68klynx.h, config/m68k/tm-m68klynx.h: Move all
202 (arch) portable stuff into ../{tm nm}-lynx.h.
203
204 Tue Nov 16 13:33:47 1993 Jim Kingdon (kingdon@lioth.cygnus.com)
205
206 * symtab.c (gdb_mangle_name): Only assume that the physname is
207 the entire mangled name if it looks like the mangled name of a
208 constructor. Needed for testsuite to work with GCC 2.4.5.
209
210 * a68v-nat.c: Replace with new version from Troy Rollo. The
211 version I am replacing appears to be an old copy of sun3-nat.c.
212 * dstread.c (dst_symfile_read): Replace sort_all_symtab_syms call
213 with loop.
214
215 * Makefile.in (TAGS): Depend on TAGFILES_{NO,WITH}_SRCDIR.
216
217 * Makefile.in: (HFILES,TAGFILES): Split into _WITH_SRCDIR and
218 _NO_SRCDIR versions.
219 (TAGS): Only add srcdir to TAGFILES_NO_SRCDIR.
220 (This is part of a long saga involving me putting srcdir on
221 everything (perhaps for now-obsolete reasons, I forget), Rich
222 removing the srcdir from everything, Stu putting it back some
223 places for Sun make, and me just now getting around to fixing
224 `make TAGS' again).
225
226 Mon Nov 15 12:29:10 1993 Kung Hsu (kung@cirdan.cygnus.com)
227
228 * stack.c(print_frame_info): print demangled function name
229 ansi style.
230
231 Mon Nov 15 14:32:29 1993 Steve Chamberlain (sac@jonny.cygnus.com)
232
233 * remote-e7000.c: New file to cope with the Hitachi E7000 ICE.
234 * remote-utils.c, remote-utils.h (gr_load_image): New function to
235 download to target.
236 * h8300-tdep.c, h8500-tdep.c, remote-z8k.c, sh-tdep.c z8k-tdep.c
237 (sim_load): delete.
238 * remote-sim.c (gdbsim_load): Use gr_load_image, rather than
239 sim_load.
240 * config/sh/sh.mt: Add remote-e7000
241
242 Mon Nov 15 11:38:25 1993 Jim Kingdon (kingdon@lioth.cygnus.com)
243
244 * config/i386/linux.mh: Remove XM_CLIBS, TERMLIB, SYSV_DEFINE, and
245 REGEX.
246 * config/i386/xm-linux.h: Don't include xm-i386v.h. Define
247 HOST_BYTE_ORDER ourselves. Define HAVE_TERMIOS not HAVE_TERMIO.
248 Define NEED_POSIX_SETPGID. Include unistd.h.
249
250 Mon Nov 15 12:29:10 1993 Kung Hsu (kung@cirdan.cygnus.com)
251
252 * symtab.c(gdb_mangle_name): fix the problem with constructor
253 name mangling.
254
255 Mon Nov 15 11:38:25 1993 Jim Kingdon (kingdon@lioth.cygnus.com)
256
257 * gdbtypes.h: Add TYPE_FLAG_TARGET_STUB.
258 * gdbtypes.c (check_stub_type): On TYPE_FLAG_TARGET_STUB, do
259 what cleanup_undefined_types does for arrays, except we clear
260 TYPE_FLAG_TARGET_STUB if we fix up the type.
261 * stabsread.c (cleanup_undefined_types): Add comments about how
262 doing arrays here is no longer the clean way to do it.
263 (read_array_type): Set TYPE_FLAG_TARGET_STUB as well as calling
264 add_undefined_type.
265 * c-typeprint.c, ch-typeprint.c: Move call to check_stub_type
266 outside switch so it happens for all type codes.
267 * cp-valprint.c (cp_print_value_fields): Recurse to val_print,
268 instead of c_val_print, so that check_stub_type gets called.
269
270 * gdbtypes.h, gdbtypes.c, m2-lang.c, ch-lang.c, c-lang.c: Remove
271 TYPE_FLAG_SIGNED. It was inconsistently set, never checked
272 (except in recursive_dump_type), and is pointless.
273
274 Mon Nov 15 00:40:38 1993 Jeffrey A. Law (law@snake.cs.utah.edu)
275
276 * paread.c (pa_symfile_init): Look for the $TEXT$ section rather
277 than the .text section.
278
279 Sun Nov 14 00:28:13 1993 Jim Kingdon (kingdon@lioth.cygnus.com)
280
281 * stabsread.c: Remove #if 0'd dbx_class_complaint. We now handle
282 this (more or less) gracefully, and complain() was never a good
283 way of dealing with this.
284
285 * stabsread.c (read_type): Skip the colon when reading a
286 cross-reference. Only complain, not error_type, on unrecognized
287 cross-reference types. error_type, not dump core, if the colon is
288 missing.
289
290 Fri Nov 12 16:23:08 1993 Stu Grossman (grossman at cygnus.com)
291
292 * config/m68k/tm-sun3.h: Disable use of alternate breakpoint insn
293 when doing remote stuff.
294
295 Fri Nov 12 16:22:39 1993 Jim Kingdon (kingdon@lioth.cygnus.com)
296
297 * c-exp.y (yylex): Call lookup_symtab not lookup_partial_symtab.
298
299 * partial-stab.h: Ignore ':' symbol descriptors. Same case as
300 Kung's stabsread.c change.
301
302 Fri Nov 12 11:18:02 1993 Kung Hsu (kung@cirdan.cygnus.com)
303
304 * stabsread.c (patch_block_stabs, define_symbol, read_type): in
305 g++ template instantiation, nested class can be part of the
306 params, and '::' can gets into symbol or type names. This is
307 to fix the problem.
308
309 * gdbtypes.c (lookup_struct_elt_type): Handle type ref or pointer
310 to struct/union case.
311
312 Fri Nov 12 10:39:31 1993 Stu Grossman (grossman at cygnus.com)
313
314 * coff-solib.c (coff_solib_add): Cast result of alloca().
315 * m68k-tdep.c (m68k_saved_pc_after_call): Get rid of
316 GDB_TARGET_IS_SUN3. Use more general SYSCALL_TRAP macro.
317 * config/m68k/m68klynx.mh (NATDEPFILES): Remove exec.o (it's
318 already in TDEPFILES).
319 * config/m68k/tm-m68k.h (SAVED_PC_AFTER_CALL): Use
320 m68k_saved_pc_after_call.
321 * Remove all Sun3 specific stuff.
322 * (FIX_CALL_DUMMY): Cast arg to bfd_putb32 to unsigned char *.
323 * config/m68k/tm-m68klynx.h: Define SYSCALL_TRAP as trap #10.
324 Disable REMOTE_BREAKPOINT mechanism.
325 * config/m68k/tm-sun3.h: Get rid of GDB_TARGET_IS_SUN3.
326 * Protect from multiple includion.
327 * Move Sun3 specific stuff from tm-m68k.h to here.
328 * Define SYSCALL_TRAP as trap #0.
329 * Remove def of SAVED_PC_AFTER_CALL (now in tm-m68k.h).
330 * gdbserver/low-lynx.c: Redo all register store/fetch stuff to
331 make it portable for 386 and 68k.
332
333 Fri Nov 12 09:53:26 1993 Jim Kingdon (kingdon@lioth.cygnus.com)
334
335 * mips-tdep.c (init_extra_frame_info): Check to see whether the
336 registers mentioned in the proc_desc have been saved. This
337 generalizes mips_in_lenient_prologue in the sense that we keep
338 searching until we've found saves for all the registers, not just
339 look for a "lenient prologue" pattern.
340 * mips-tdep.c: #if 0 lenient prologue code.
341
342 * mips-tdep.c (heuristic_proc_desc): Don't assume a host short
343 is 16 bits.
344
345 Thu Nov 11 19:58:05 1993 Jim Kingdon (kingdon@lioth.cygnus.com)
346
347 * config/i386/i386sol2.mh: Comment out corelow.o.
348
349 * printcmd.c (address_info): Use filtered, not unfiltered functions.
350 We should be able to deal with a QUIT here.
351
352 Thu Nov 11 15:22:20 1993 Jeffrey A. Law (law@snake.cs.utah.edu)
353
354 * printcmd.c (address_info): Use fprintf_symbol_filtered
355 to print the symbol name.
356
357 * stabsread.c (define_symbol): Handle cfront lossage for
358 struct/union/enums and typedefs.
359
360 * partial-stab.h (case N_BINCL): Update psymtab_language
361 as appropriate when changing subfiles.
362 (case N_SOL): Update psymtab_language as appropriate when
363 changing subfiles. Add typedef for structs, unions, and enums
364 when processing C++ files.
365
366 Thu Nov 11 13:18:47 1993 Jim Kingdon (kingdon@lioth.cygnus.com)
367
368 * README: Remove information on languages and just cite the (newly
369 updated) information in doc/gdb.texinfo instead.
370
371 * delta68-nat.c: Fix typos (add missing ");" and stuct -> struct).
372
373 Wed Nov 10 09:31:10 1993 Jim Kingdon (kingdon@lioth.cygnus.com)
374
375 * dbxread.c (process_one_symbol, N_RBRAC): Don't clear
376 within_function just because local_symbols is NULL. It appears
377 that this bug has existed since the 10 Apr 89 change which started
378 clearing within_function here.
379
380 * config/m68k/tm-m68k.h: Clean up CALL_DUMMY comment.
381 * config/m68k/{tm-hp300bsd.h,tm-hp300hpux.h,tm-m68k-em.h,
382 tm-monitor.h,tm-sun3.h,tm-vx68.h}, config/sparc/tm-sparc.h:
383 Define BELIEVE_PCC_PROMOTION.
384 * dbxread.c: Remove BELIEVE_PCC_PROMOTION define. The code which
385 used this was moved to stabsread.c a long time ago.
386
387 * dstread.c (dst_sym_fns): Update for flavours.
388 * symfile.c (find_sym_fns): Add kludge for apollo like for rs/6000.
389 * dstread.c (dst_symfile_offsets): Set objfile->num_sections.
390
391 gcc -Wall lint:
392 * thread.c: Include "gdbcmd.h" and <ctype.h>.
393 * Makefile.in: Update dependency.
394 * thread.c (thread_command): Remove unused variable p.
395 * values.c (unpack_double): Use len instead of TYPE_LENGTH (type).
396 * valprint.c (print_floating): Correctly check sign bit now that
397 we are using unsigned arithmetic.
398 * symtab.c (find_pc_line_range): Remove unused variables exact_match,
399 ind, and l.
400
401 Tue Nov 9 17:42:25 1993 Kung Hsu (kung@cirdan.cygnus.com)
402
403 * valarith.c (value_x_binop): fix search operator in class bug
404 * valarith.c (value_x_unop): fix search operator in class bug
405
406 Tue Nov 9 19:20:17 1993 Jim Kingdon (kingdon@lioth.cygnus.com)
407
408 * Makefile.in (init.c): Add udi2go32.o to list of files that we
409 should not try to search for _initialize_* functions.
410
411 * remote-udi.c (udi_wait): Change UDIGdb_StdoutReady back to
412 UDIStdoutReady. It accidentally got changed on 24 Oct 93 when
413 stdout was changed to gdb_stdout. Likewise for UDIGetStdout,
414 UDIStderrReady, and UDIGetStderr.
415
416 Tue Nov 9 12:48:06 1993 Tom Lord (lord@cygnus.com)
417
418 * remote-hms.c (hms_wait): fixed too many arguments to putc_unfiltered.
419
420 Tue Nov 9 12:20:46 1993 Jim Kingdon (kingdon@lioth.cygnus.com)
421
422 * utils.c (quit): Also call gdb_flush on standard output and error.
423
424 * .gdbinit: Remove "source /.gdbinit". It causes a spurious error
425 if /.gdbinit doesn't exist (and I know of no convention of putting
426 something in /.gdbinit).
427
428 Mon Nov 8 18:17:11 1993 Kung Hsu (kung@cirdan.cygnus.com)
429
430 * cp-valprint.c (cp_print_value_fields): change output from <no
431 value> to <optimized out or zero length>
432
433 Mon Nov 08 17:05:30 1993 Jeffrey Wheat (cassidy@cygnus.com)
434
435 * Makefile.in: Change RUNTEST_FLAGS back to RUNTESTFLAGS
436 Change RUNTEST = runtest to test for existance of
437 a runtest in the source tree first.
438
439 Mon Nov 8 10:42:03 1993 Jim Kingdon (kingdon@lioth.cygnus.com)
440
441 * Makefile.in: Remove unused variable GCC. Remove "#CC=cc" line
442 which doesn't really relate to anything.
443
444 * Makefile.in (CC_FOR_TARGET): Test for existence of gcc/xgcc, not
445 for existence of gcc/Makefile.
446
447 * inflow.c (terminal_init_inferior), infptrace.c (child_resume):
448 Add comments about use of Lynx PIDGET and how we will want to
449 clean it up.
450
451 * stabsread.c: Remove long_kludge_name code (it was already #if 0).
452 * stabsread.c (read_one_struct_field): Clean up comments to reflect
453 Kung's change of 5 Nov 93.
454 * stabsread.c (read_one_struct_field): Don't give up on unknown
455 visibility character, just shove it in fip->list->visibility.
456 (read_baseclasses): Don't give up on unknown virtual or visibility
457 characters, just assume a reasonable default, complain, and keep
458 going.
459 (attach_fields_to_type): Complain on unrecognized visibility.
460 One result of all this is that '9' (VISIBILITY_IGNORE) can be used
461 in a stab as well as being something which GDB uses internally.
462
463 Mon Nov 8 07:57:30 1993 Doug Evans (dje@canuck.cygnus.com)
464
465 * configure.in: Remove h8300h, we have multilib now.
466
467 Mon Nov 8 06:11:24 1993 D. V. Henkel-Wallace (gumby@cirdan.cygnus.com)
468
469 * configure.in: Add unixware as a configuration alias for x86
470 sysv4
471
472 * config/i386/i386nw.mt: add i387-tdep.o, exec.o to TDEPFILES
473
474 Sun Nov 7 23:49:21 1993 Peter Schauer (pes@regent.e-technik.tu-muenchen.de)
475
476 * symtab.c (decode_line_1, decode_line_2): Do not adjust pc by
477 FUNCTION_START_OFFSET if funfirstline is not set.
478
479 Fri Nov 5 17:19:30 1993 Kung Hsu (kung@cirdan.cygnus.com)
480
481 * gdbtypes.h : add a field 'ignore_field_bits in cplus_specific,
482 and macros to handle the bits.
483 * stabsread.c (read_one_struct_field): add VISIBILITY_IGNORE, and
484 for field of length 0, set this bit on.
485 * cp-valprint.c (cp_print_value_fields): for VISIBILITY_IGNORE
486 field, print <no value>.
487
488 Fri Nov 5 14:43:46 1993 Jim Kingdon (kingdon@lioth.cygnus.com)
489
490 * Version 4.11.2.
491
492 Fri Nov 5 09:49:22 1993 Stu Grossman (grossman at cygnus.com)
493
494 * inflow.c (terminal_init_inferior): Temporarily use Lynx PIDGET
495 macro to set process groups.
496 * infptrace.c (child_resume): Temporarily use Lynx PIDGET to
497 specify resumption of all threads.
498 * infrun.c (wait_for_inferior): Fix handling of thread-specific
499 breakpoints for systems where DECR_PC_AFTER_BREAK > 0 (ie: backup
500 PC by the right amount when continuing the thread).
501 * thread.c (thread_apply_command): Add the `thread apply'
502 command to apply a given GDB command to a list of threads.
503
504 Fri Nov 5 05:58:03 1993 Jim Kingdon (kingdon@cygnus.com)
505
506 * Makefile.in (init.c): Don't call sed if filename is empty.
507
508 Thu Nov 4 08:27:24 1993 Jim Kingdon (kingdon@lioth.cygnus.com)
509
510 * dbxread.c (unknown_symchar_complaint): Make message refer to
511 "symbol descriptor" not "symbol type character" for consistency
512 with stabs.texinfo terminology.
513
514 * stabsread.c (read_struct_fields): Accept either '$' or '.' as
515 the character which introduces a cpp_abbrev or anonymous type.
516
517 * c-lang.c (c_printstr): Print "" to stream (like all the other
518 output from this function), not gdb_stdout.
519
520 * dbxread.c (process_one_symbol): Do relocate 'S' symbols by
521 the text offset (revert 12 Oct 93 change).
522
523 * configure.in: Make hppa*-*-hiux* use hppahpux,
524 not non-existent hppahiux.
525
526 Wed Nov 3 16:24:09 1993 Kung Hsu (kung@cirdan.cygnus.com)
527
528 * values.c (value_fn_field): when physical name not found, do not
529 error, but return null.
530 * valops.c (value_struct_elt): when name and args match does not
531 mean it is the one, some times a typedef class can have the same
532 member method and args. This probably will not happen with new
533 version of g++, but it does happen in old g++ and cause gdb error.
534
535 Wed Nov 3 09:20:18 1993 Jim Kingdon (kingdon@lioth.cygnus.com)
536
537 Merge changes for dos x udi:
538 * Makefile.in (udi2go32.o): add rule to build this file
539 * 29k-share/udi/udi2go32.c: new file
540 * config/a29k/a29k-udi.mt: add udi2go32.o
541 * 29k-share/udi/{udr.c, udip2soc.c}: #ifdef out the entire file
542 if __GO32__ is defined. What a hack.
543
544 Wed Nov 3 09:20:18 1993 Jim Kingdon (kingdon@lioth.cygnus.com)
545
546 * remote.c (putpkt, getpkt): Don't call interrupt_query.
547
548 * findvar.c (value_of_register): Rename val to reg_val to avoid
549 name conflict with some (e.g. tm-m68k.h) REGISTER_CONVERT_TO_VIRTUAL.
550
551 * main.c: Add variables source_line_number, source_file_name,
552 source_error, source_error_allocated, and source_pre_error.
553 (command_line_input): If source_file_name set, increment
554 source_line_number and set error_pre_print with them.
555 (source_command): Set source_* and make a cleanup so they get
556 set back.
557
558 Tue Nov 2 16:28:34 1993 Jim Kingdon (kingdon@lioth.cygnus.com)
559
560 * stack.c (down_silently_command): Add comment about PR 1913.
561
562 * breakpoint.c (insert_breakpoints, delete_breakpoint): Call
563 target_terminal_ours_for_output before attempting output.
564
565 * fork-child.c (fork_inferior): Fix comment so that it suggests
566 "set shell" rather than having "set env SHELL" affect GDB's
567 operation.
568
569 Tue Nov 2 15:03:08 1993 Tom Lord (lord@rtl.cygnus.com)
570
571 * utils.c (vfprintf_unfiltered): don't use maybe_filtered
572 since it involves a fixed size buffer.
573
574 Tue Nov 2 13:42:30 1993 Peter Schauer (pes@regent.e-technik.tu-muenchen.de)
575
576 * findvar.c (value_of_register, value_from_register),
577 hppa-tdep.c (pa_print_fp_reg), infcmd.c (do_registers_info),
578 valops.c (value_assign): Use REGISTER_CONVERT_TO_* only if
579 REGISTER_CONVERTIBLE is defined, otherwise just copy the content.
580 Pass desired type to REGISTER_CONVERT_TO_*.
581
582 * config/m68k/tm-m68k.h, config/i960/tm-i960.h (REGISTER_CONVERT_*):
583 Pass length of desired type to store/extract_floating.
584 * config/i386/tm-arm.h, config/i386/tm-i386aix.h,
585 config/i386/tm-sun386.h, config/i386/tm-symmetry.h,
586 config/m88k/tm-m88k.h config/rs6000/tm-rs6000.h (REGISTER_CONVERT_*):
587 Use extract_floating and store_floating with length of desired type.
588 * config/m68k/tm-news.h (STORE,EXTRACT_RETURN_VALUE): Add type
589 parameter to REGISTER_CONVERT_*.
590
591 * config/a29k/tm-a29k.h, config/convex/tm-convex.h,
592 config/gould/tm-np1.h, config/gould/tm-pn.h, config/h8300/tm-h8300.h,
593 config/h8500/tm-h8500.h, config/i386/tm-i386v.h,
594 config/mips/tm-mips.h, config/ns32k/tm-merlin.h,
595 config/ns32k/tm-umax.h, config/pa/tm-hppa.h, config/pyr/tm-pyr.h,
596 config/sh/tm-sh.h, config/sparc/tm-sparc.h, config/tahoe/tm-tahoe.h,
597 config/vax/tm-vax.h, config/z8k/tm-z8k.h (REGISTER_CONVERTIBLE,
598 REGISTER_CONVERT_TO_RAW, REGISTER_CONVERT_TO_VIRTUAL): Remove
599 versions for which REGISTER_CONVERTIBLE is always false.
600 * z8k-tdep.c (register_convert_to_virtual, register_convert_to_raw):
601 Remove, no longer used.
602
603 * alpha-tdep.c (alpha_register_convert_to_raw,
604 alpha_register_convert_to_virtual): New routines to handle
605 the different raw formats in alpha floating point registers.
606 * config/alpha/tm-alpha.h (REGISTER_CONVERTIBLE,
607 REGISTER_CONVERT_TO_VIRTUAL, REGISTER_CONVERT_TO_RAW): Use them.
608
609 Tue Nov 2 12:45:23 1993 Stan Shebs (shebs@rtl.cygnus.com)
610
611 * gdbserver/configure.in: Recognize *-*-lynxos* instead of
612 *-*-lynx*, recognize sparc-*-lynxos*.
613 * gdbserver/Makefile.in (install, install_only): Add.
614 * gdbserver/gdbserver.1: New file, man page for gdbserver.
615
616 Mon Nov 1 09:40:21 1993 Jim Kingdon (kingdon@lioth.cygnus.com)
617
618 * symtab.c, symtab.h, source.c: Change find_line_pc_range to take
619 a struct symtab_and_line argument, rather than a symtab and a line.
620 Re-write it to be based on the address rather than bogusly adding
621 one to the line number and hoping that has something to do with the
622 end of the line.
623
624 * config/m88k/m88k.mh (NATDEPFILES): Remove exec.o.
625
626 * paread.c (pa_symtab_read): Change comments to say ignoring
627 labels really should be handled by the assembler/compiler.
628
629 * Makefile.in: Add -O to CXXFLAGS.
630
631 * TODO: Expand comments on fast watchpoints.
632
633 Sun Oct 31 19:45:06 1993 Jeffrey A. Law (law@snake.cs.utah.edu)
634
635 * paread.c (pa_symtab_read): Also filter out local symbols
636 starting with "L$".
637
638 Sun Oct 31 09:28:46 1993 Jim Kingdon (kingdon@lioth.cygnus.com)
639
640 * symfile.h (sym_fns), symfile.c (find_sym_fns), xcoffread.c,
641 coffread.c, dbxread.c, elfread.c, mipsread.c, nlmread.c, paread.c:
642 Change from using bfd target name to using the flavour.
643
644 * objfiles.h, infcmd.c, symfile.c: Add comments about how various
645 objfiles get created and when we should blow them away.
646
647 Sat Oct 30 08:32:53 1993 Jim Kingdon (kingdon@lioth.cygnus.com)
648
649 * symfile.c (reread_symbols): When re-reading symbols, do all the
650 right operations ourself, rather than calling symbol_file_command.
651 If we re-read something, call clear_symtab_users not just
652 breakpoint_re_set.
653 * objfiles.h, objfiles.c (build_objfile_section_table): No longer
654 static.
655 * symfile.c (clear_symtab_users): Call clear_pc_function_cache.
656 * coffread.c, dbxread.c, elfread.c, mipsread.c, nlmread.c, paread.c
657 (*_symfile_offsets): Set objfile->num_sections.
658 * remote.c (remote_wait), symfile.c (syms_from_objfile):
659 Don't muck with objfile->num_sections now that all the symbol
660 readers set it.
661 * elfread.c: Clean up obsolete comment about handling only DWARF.
662 * paread.c: Remove comment about how we should use an "ordinary"
663 file format with an hppa suffix. There is nothing ordinary about SOM.
664
665 * config/i386/{i386m3.mh,i386mk.mh}, config/mips/mipsm3.mh,
666 config/ns32k/ns32km3.mh: Change MMALLOC_LIB to MMALLOC.
667 * TODO: Update Mach stuff.
668
669 Fri Oct 29 16:30:36 1993 Stan Shebs (shebs@rtl.cygnus.com)
670
671 LynxOS support:
672 * configure.in: Change *-*-lynx* to *-*-lynxos*, add
673 sparc-*-lynxos*.
674 * Makefile.in (ALLDEPFILES): Add m68kly-nat.c, sparcly-nat.c.
675 Rename i386lynx-nat.[co] to i386ly-nat.[co].
676 (ALLCONFIG): Add config/{m68k,sparc}/{m68k,sparc}lynx.m[ht].
677 (m68kly-nat.o, sparcly-nat.o): Add rules.
678 * i386ly-tdep.c: Cosmetics.
679 * i386lynx-nat.c: Removed.
680 * i386ly-nat.c: New file, was i386lynx-nat.c.
681 * m68kly-nat.c: New file.
682 * sparcly-nat.c: New file.
683 * config/xm-lynx.h: New file, cpu-independent host info.
684 * config/i386/i386lynx.mh: Changes for consistency.
685 * config/i386/i386lynx.mt: Ditto.
686 * config/i386/tm-i386lynx.h: Ditto.
687 * config/i386/nm-i386lynx.h: Ditto.
688 * config/i386/xm-i386lynx.h: Include config/xm-lynx.h.
689 * config/m68k/m68klynx.mh, config/m68k/m68klynx.mt,
690 config/m68k/tm-m68klynx.h, config/m68k/nm-m68klynx.h,
691 config/m68k/xm-m68klynx.h: New files, M68K LynxOS support.
692 * config/sparc/sparclynx.mh, config/sparc/sparclynx.mt,
693 config/sparc/tm-sparclynx.h, config/sparc/nm-sparclynx.h,
694 config/sparc/xm-sparclynx.h: New files, Sparc LynxOS support.
695
696 Fri Oct 29 08:11:29 1993 Jim Kingdon (kingdon@lioth.cygnus.com)
697
698 * defs.h, findvar.c (extract_floating, store_floating): New functions.
699 * Move SWAP_TARGET_AND_HOST from defs.h to findvar.c because it is
700 now used only by extract_floating and store_floating.
701 * valprint.c (print_floating): Use unsigned arithmetic. Use
702 extract_unsigned_integer instead of SWAP_TARGET_AND_HOST.
703 Change sizeof (float) to 4 and sizeof (double) to 8 (those are always
704 the relevant sizes for this code, which is in #ifdef IEEE_FLOAT).
705 * values.c (unpack_long, unpack_double, value_from_double),
706 valarith.c (value_binop), stabsread.c (define_symbol):
707 Use extract_floating and store_floating instead of
708 SWAP_TARGET_AND_HOST.
709 * config/m68k/tm-m68k.h, config/i960/tm-i960.h (REGISTER_CONVERT_*):
710 Use extract_floating and store_floating.
711 * config/m88k/tm-m88k.h: Add comments (it should be doing the same).
712 * i386-tdep.c (i386_extract_return_value),
713 * remote-nindy.c (nindy_store_registers): Use store_floating.
714
715 Fri Oct 29 09:31:38 1993 Steve Chamberlain (sac@rtl.cygnus.com)
716
717 * remote-sim.c (gdbsim_store_register): Change var name so
718 it compiles with non-ANSI compilers.
719
720 Fri Oct 29 08:11:29 1993 Jim Kingdon (kingdon@lioth.cygnus.com)
721
722 * TODO: Add idea for "disassemble" with source.
723
724 Fri Oct 29 00:41:01 1993 Fred Fish (fnf@cygnus.com)
725
726 * Makefile.in (VERSION): Bump to 4.11.1 after release and cvs
727 tagging.
728
729 Thu Oct 28 09:14:42 1993 Jim Kingdon (kingdon@lioth.cygnus.com)
730
731 * TODO: Add section on Mach. Stop calling it a "bug list".
732 Remove John's name and email address. Remove item on "always"
733 ("hook-stop" takes care of this). Remove item on executables with
734 no symbols (this works on some machines, at least). Remove item
735 about calling error() during symbol reading (I think all the important
736 ones have been cleaned up). Revise items about signals and remote
737 systems. Remove section on ^Z requiring several continues to make
738 it go (this now works. Perhaps the item is based on confusion over
739 programs (like GDB itself) which catch SIGTSTP and then re-send
740 themselves the signal. PR 2575 might contain relevant info).
741
742 Thu Oct 28 16:55:34 1993 Fred Fish (fnf@cygnus.com)
743
744 * NEWS: Note improvements in C++ support, preliminary thread
745 implementation, and LynxOS native and target support for 386.
746
747 Thu Oct 28 16:55:34 1993 Fred Fish (fnf@cygnus.com)
748
749 * README: Add note from Peter Schauer about OSF/1 shared
750 libraries. Add note from Pace Willisson about configuring on BSDI
751 BSD/386 release 1.0. Update gdb references to gdb 4.11.
752
753 Thu Oct 28 09:14:42 1993 Jim Kingdon (kingdon@lioth.cygnus.com)
754
755 * NEWS: Add notes about Alpha and "set remotedebug" for UDI.
756
757 * valops.c (value_assign): Change bitfield code to use a buffer of
758 the correct size, rather than an int.
759
760 Wed Oct 27 13:43:07 1993 Jim Kingdon (kingdon@lioth.cygnus.com)
761
762 * config/i386/{i386m3.mt,i386m3.mh},
763 config/mips/{mipsm3.mt,mipsm3.mh},
764 config/ns32k/{ns32km3.mt,ns32km3.mh}: Use correct names for TM_FILE
765 and XM_FILE. Replace host files *mach3-xdep.o with native
766 files *m3-nat.o. Replace host file os-mach3.o with native
767 file m3-nat.o.
768
769 * remote-udi.c: Remove LOG_FILE stuff; superceded by "set remotedebug".
770 * remote-mon.c: Remove commented out "set remotedebug" command.
771 * remote-nindy.c: Clean up comment about wanting alternative to
772 options specified on the GDB command line.
773
774 * fork-child.c (fork_inferior): Set inferior_pid before calling
775 init_trace_fun. Move the code which gets us through the shell
776 to new function startup_inferior.
777 * inferior.h: Declare startup_inferior.
778 * procfs.c (procfs_init_inferior), inftarg.c (ptrace_him):
779 Call startup_inferior.
780 * m3-nat.c (m3_trace_him): Call intercept_exec_calls.
781 * config/nm-m3.h: Don't define STARTUP_INFERIOR.
782 * config/i386/tm-i386m3.h, config/ns32k/tm-ns32k.h,
783 config/mips/tm-mipsm3.h: Don't define START_INFERIOR_TRAPS_EXPECTED.
784
785 * m68k-stub.c: Change vector 13 from SIGFPE to SIGBUS.
786
787 Tue Oct 26 22:05:03 1993 Jim Kingdon (kingdon@deneb.cygnus.com)
788
789 * mips-tdep.c (mips_pop_frame): If proc_desc is NULL, don't dump core.
790
791 Tue Oct 26 15:07:29 1993 Jim Kingdon (kingdon@lioth.cygnus.com)
792
793 gcc -Wall lint:
794 * nlmread.c: Include stabsread.h.
795 * Makefile.in: Update dependencies.
796
797 * remote.c: Change PBUFSIZ back to 400. John's 28 Feb 1992 change
798 to increase it broke the ability to write large chunks of memory
799 with m68k-stub and i386-stub. Now we only use more than 400 on
800 machines where we need that much to write the registers.
801 * remote.c (remote_write_bytes): Eliminate possible abort(). The
802 check for when to abort was off by a few bytes and besides which,
803 it is handled by MAXBUFBYTES, which the caller uses.
804 * m68k-stub.c: Add comments about trap #1 and trap #8 instructions.
805
806 Tue Oct 26 08:36:07 1993 Doug Evans (dje@canuck.cygnus.com)
807
808 * remote-sim.h (SIM_ADDR): New type (same as CORE_ADDR).
809 (sim_set_pc): Update prototype.
810 (sim_read, sim_write): Ditto, and use unsigned char *buf.
811 (sim_fetch_register, sim_store_register): Use unsigned char *buf.
812 (sim_info): Pass printf function as argument, add verbose argument.
813 (sim_stop_reason): Renamed from sim_stop_signal, fix prototype.
814 * remote-sim.c (gdbsim_wait): Update call to sim_stop_reason.
815 (gdbsim_files_info): Update call to sim_info.
816
817 Tue Oct 26 10:41:29 1993 Jim Kingdon (kingdon@lioth.cygnus.com)
818
819 * valops.c (value_assign): Call reinit_frame_cache when assigning
820 to a register.
821
822 Mon Oct 25 11:08:59 1993 Stu Grossman (grossman at cygnus.com)
823
824 * infrun.c (wait_for_inferior): Fix PC out of objfile bounds
825 check to just use stop_func_name == 0.
826 * remote-udi.c (store_register): Invalidate NPC/PC_REGNUM after
827 changing PC.
828
829 Mon Oct 25 14:57:45 1993 Jim Kingdon (kingdon@lioth.cygnus.com)
830
831 * gdbserver/{low-lynx.c,low-sparc.c,low-sun3.c}, standalone.c,
832 m3-nat.c, i386m3-nat.c, mipsm3-nat.c, ns32km3-nat.c: bcopy -> memcpy.
833
834 gcc -Wall lint:
835 * breakpoint.c: Include thread.h.
836 * coffread.c: Include stabsread.h.
837 * Makefile.in: Update dependencies.
838 * breakpoint.c (mention): Add bp_call_dummy to switch.
839 * symmisc.c (dump_symtab): Use %d not %ld for line number.
840
841 Sun Oct 24 18:29:32 1993 Tom Lord (lord@rtl.cygnus.com)
842
843 * every non-obsolete file except utils.c:
844 Change the stream argument to _filtered to GDB_FILE *.
845 Change all references to stdout/stderr to gdb_stdout/gdb_stderr.
846 Replace all calls to stdio output functions with
847 calls to corresponding _unfiltered functions.
848 Replaced calls to fopen for output to gdb_fopen.
849 Added sufficient goo to utils.c and defs.h to make the above
850 work.
851
852 The net effect is that stdio output functions are only directly
853 used in utils.c. Elsewhere, the _unfiltered and _filtered
854 functions and GDB_FILE type are used.
855
856 In the near future, GDB_FILE will stop being equivalant to
857 FILE.
858
859 The semantics of some commands has changed in a very subtle way:
860 called in the right context, they may cause new occurences of
861 prompt_for_continue() behavior.
862
863 Please respect this change by not reintroducing stdio output
864 dependencies in the main body of gdb code. All output from
865 commands should go to a GDB_FILE.
866
867 Sun Oct 24 20:16:38 1993 Peter Schauer (pes@regent.e-technik.tu-muenchen.de)
868
869 * parse.c, parser-defs.h (write_exp_msymbol): New function to write
870 the appropriate expression for a minimal symbol. Taken from c-exp.y
871 and m2-exp.y but handles mst_file_*.
872 * c-exp.y, m2-exp.y: Use it.
873
874 Sun Oct 24 09:31:05 1993 Fred Fish (fnf@lisa.cygnus.com)
875
876 * elfread.c (elf_symtab_read): Use bfd convention that both
877 initialized and uninitialized data sections have the SEC_ALLOC
878 flag bit set, but only initialized sections have SEC_LOAD set.
879 SEC_DATA is ignored since it only gets set for initialized
880 data.
881
882 Sat Oct 23 14:48:18 1993 Doug Evans (dje@canuck.cygnus.com)
883
884 * remote-sim.h (sim_stop): New enum.
885 (sim_stop_signal): Change prototype, result is enum sim_stop.
886 * remote-sim.c (gdbsim_wait): Update call to sim_stop_signal.
887
888 Fri Oct 22 07:49:54 1993 Jim Kingdon (kingdon@lioth.cygnus.com)
889
890 * stabsread.c (define_symbol): Skip the whole thing about "pcc
891 promotion" on little-endian machines.
892
893 * remote-vx.c (vx_wait): Rename pid parameter to pid_to_wait_for.
894 Some compilers (legitimately) don't like variables in the
895 function's outermost block whose name is the the same as the name of
896 a parameter.
897
898 Merge Apollo patches from Troy Rollo (troy@cbme.unsw.edu.au):
899 * dst.h, dstread.c, config/m68k/{apollo68b.mt,tm-apollo68b.h}:
900 New files.
901 * config/m68k/nm-apollo68b.h: Add more defines.
902 * configure.in: Recognize apollo target, not just host.
903
904 * configure.in: Add * to end of all OS names.
905
906 Fri Oct 22 06:14:01 1993 Fred Fish (fnf@cygnus.com)
907
908 * Makefile.in (ALLPARAM): Add config/m88k/xm-delta88v4.h
909
910 Thu Oct 21 12:23:12 1993 Jim Kingdon (kingdon@lioth.cygnus.com)
911
912 * Makefile.in (init.c): Generate using the source, not munch. This
913 cleans up all kinds of hassles (which nm to use in munch, etc). The
914 new formatting conventions (mostly already followed) are that
915 the name of the _initialize_* routines must start in column zero,
916 and must not be inside #if.
917 * munch: Removed.
918 * Makefile.in: Remove references to munch.
919 * serial.c, remote.c, infptrace.c, maint.c, convex-tdep.c,
920 alpha-tdep.c, hp300ux-nat.c, hppab-nat.c, osfsolib.c, remote-es.c,
921 procfs.c, remote-udi.c, ser-go32.c, ultra3-xdep.c, sh-tdep.c,
922 i960-tdep.c, hppa-tdep.c, h8500-tdep.c, dpx2-nat.c, delta68-nat.c,
923 z8k-tdep.c: Make sure the above conventions are followed. Make
924 sure they are all declared as returning void. Clean up
925 miscellaneous comments and such.
926
927 * sh-tdep.c (sim_load): Add function.
928
929 Thu Oct 21 15:58:48 1993 david d `zoo' zuhn (zoo@rtl.cygnus.com)
930
931 * remote-mips.c (mips_wait): add pid argument.
932
933 Thu Oct 21 12:23:12 1993 Jim Kingdon (kingdon@lioth.cygnus.com)
934
935 * Makefile.in (c-exp.tab.o): Remove notice about shift/reduce conflicts
936 which no longer occur.
937
938 gcc -Wall lint:
939 * findvar.c (symbol_read_needs_frame), corelow.c (ignore),
940 inflow.c (gdb_has_a_terminal): Make sure to return a value.
941 * regex.h: Declare re_set_syntax.
942 * printcmd.c: Include valprint.h.
943 * infcmd.c, exec.c, maint.c, core.c: Include language.h.
944 * maint.c: Include expression.h.
945 * infrun.c, fork-child.c, corelow.c, inflow.c: Include thread.h.
946 * inftarg.c: Include command.h.
947 * coredep.c: Include value.h.
948 * c-exp.y, m2-exp.y, ch-exp.y: Include bfd.h, symfile.h and objfiles.h.
949 * ch-typeprint.c: Include typeprint.h.
950 * ch-valprint.c: Include c-lang.h.
951 * nlmread.c: Include buildsym.h.
952 * environ.c: Include gdbcore.h. Only include defs.h once.
953 (set_in_environ): Cast const char * to char * when passing to
954 set_gnutarget.
955 * Makefile.in: Update dependencies to reflect all these new includes.
956 Remove unused variables:
957 * printcmd.c (printf_command): args_to_vprintf.
958 * coffread.c (coff_symfile_init): strsection.
959 Move variables to within the #ifdefs where they are used:
960 * symtab.c (gdb_mangle_name): opname.
961 * inftarg.c (child_attach): pid and exec_file.
962 * inftarg.c (child_detach): siggnal.
963 * objfiles.c (allocate_objfile): mapto, md, and fd.
964 * objfiles.c (free_objfile): mmfd.
965 * infrun.c (wait_for_inferior): Include BPSTAT_WHAT_LAST in switch.
966 * infrun.c (wait_for_inferior): Remove unused same_pid label.
967 * inferior.h: Declare set_sigint_trap and clear_sigint_trap.
968 * parser-defs.h: Declare write_exp_elt_block.
969 * stabsread.h: Declare elfstab_offset_sections and
970 coffstab_build_psymtabs.
971
972 Thu Oct 21 12:05:08 1993 Ken Raeburn (raeburn@cygnus.com)
973
974 Patch from Jeff Law:
975 * paread.c: Fix references to "hppa" that should now be "som".
976
977 Thu Oct 21 12:23:12 1993 Jim Kingdon (kingdon@lioth.cygnus.com)
978
979 * symtab.c (decode_line_1): Don't use SYMBOL_LINE for functions.
980
981 Thu Oct 21 02:59:07 1993 Stu Grossman (grossman at cygnus.com)
982
983 * remote-udi.c (udi_store_registers, store_register): Use
984 UDI29KPC address space when modifying PC. It seems that you can't
985 modify the PC directly (at least in the isstip simulator).
986
987 Wed Oct 20 11:35:43 1993 Jim Kingdon (kingdon@lioth.cygnus.com)
988
989 * target.h: Put remote_debug declaration back here. Add baud_rate.
990 * remote.c, remote-udi.c, remote-utils.h: Let target.h take care of
991 declaring these. Those random externs all over are error prone.
992 * Move "set remotebaud" from remote-utils.c to main.c to it applies
993 to remote.c as well.
994
995 * xcoffread.c (xcoff_symfile_read), coffread.c (coff_symfile_read):
996 Sort symtabs for this objfile only, not for all objfiles.
997 * symfile.c, symfile.h (sort_all_symtab_syms): Remove; no longer used.
998
999 * mipsread.c (parse_symbol): In third-eye, a function has a block
1000 within it which represents the whole function. Create only one
1001 GDB block for both.
1002
1003 Wed Oct 20 17:47:42 1993 Stu Grossman (grossman at cygnus.com)
1004
1005 * main.c: Make baud_rate and remote_debug be global variables,
1006 remove #include "remote-utils.h". This makes it possible to build
1007 GDB without remote-utils.c. Also, move setting of remote_debug
1008 into main, so that all remote*.c files can use it (not just the
1009 serial line ones). And, make baud_rate be an int.
1010 * remote-udi.c: Change kiodebug to remote_debug.
1011 * remote-utils.c: Move setting of baud rate and debug into main.c.
1012 * remote-utils.h: Redefine sr_{get set}_debug and sr_{get set}_baud
1013 to use baud_rate and remote_debug globals for compatibility.
1014 * remote.c: Use remote_debug and baud_rate globals directly,
1015 instead of sr_ functions, so that we don't need to load
1016 remote-utils.c.
1017 * config/a29k/a29k-udi.mt: Define REMOTE_O as null so that we don't
1018 get the default remote* modules.
1019
1020 Wed Oct 20 11:35:43 1993 Jim Kingdon (kingdon@lioth.cygnus.com)
1021
1022 * stabsread.c (define_symbol): When combining a LOC_ARG and a
1023 LOC_REGISTER, use the type from the LOC_REGISTER, not from the
1024 LOC_ARG.
1025
1026 Wed Oct 20 14:34:38 1993 K. Richard Pixley (rich@sendai.cygnus.com)
1027
1028 * config/i386/xm-go32.h: define some signals if they aren't
1029 already defined.
1030
1031 Wed Oct 20 11:35:43 1993 Jim Kingdon (kingdon@lioth.cygnus.com)
1032
1033 * Makefile.in (INTERNAL_LDFLAGS): New macro. The new part is
1034 that we use CFLAGS and PROFILE_CFLAGS to link.
1035 (gdb, rapp, kdb): Use INTERNAL_LDFLAGS instead of
1036 LDFLAGS and/or GLOBAL_CFLAGS.
1037
1038 Wed Oct 20 09:29:55 1993 Stu Grossman (grossman at cygnus.com)
1039
1040 * Makefile.in: Add $(srcdir) to all refs to 29k-share
1041 directories.
1042
1043 Tue Oct 19 17:23:34 1993 Fred Fish (fnf@deneb.cygnus.com)
1044
1045 * Makefile.in (ALLCONFIG): Add config/i386/{i386m3.mh, i386m3.mt,
1046 i386/i386mk.mh i386/i386mk.mt}, config/mips/{mipsm3.mh,
1047 mipsm3.mt}, config/ns32k/{ns32km3.mh, ns32m3.mt}
1048 * Makefile.in (remote_utils_h): Add remote-sim.h
1049 * Makefile.in (NONSRC): Add i386-nlmstub.c
1050 * Makefile.in (HFILES): Add coff-solib.h
1051
1052 Tue Oct 19 14:15:40 1993 Kung Hsu (kung@cirdan.cygnus.com)
1053
1054 * values.c (value_virtual_fn_field): Fix the offset calculation
1055 when calling virtual functions. (gdb.t22/virtfunc.exp).
1056 * eval.c (evaluate_subexp): same as above.
1057
1058 Tue Oct 19 10:43:16 1993 Jim Kingdon (kingdon@lioth.cygnus.com)
1059
1060 * config/rs6000/rs6000.mh (TERMCAP): Define to -lcurses.
1061
1062 * Makefile.in: Define CXXFLAGS.
1063
1064 Tue Oct 19 09:28:52 1993 Stu Grossman (grossman@cygnus.com)
1065
1066 * sparclite/Makefile.in: Fixup so that this works with Sun make
1067 and VPATH.
1068
1069 Tue Oct 19 10:43:16 1993 Jim Kingdon (kingdon@lioth.cygnus.com)
1070
1071 * breakpoint.h (struct bpstat_what): Don't use bitfields.
1072
1073 * typeprint.c: Add "class CLASS-NAME" to docstring for ptype.
1074
1075 Tue Oct 19 06:17:10 1993 Fred Fish (fnf@cirdan.cygnus.com)
1076
1077 * Makefile.in (ALLPARAM): Add config/m88k/{nm-delta88v4.h,
1078 tm-delta88v4.h, xm-dgux.h}.
1079 * Makefile.in (ALLCONFIG): Add config/m88k/{delta88v4.mh,
1080 delta88v4.mt}.
1081
1082 * README: Remove comment about SunOS 5.x programs leaving
1083 coredumps. Info from Sun is that this was not in customer
1084 releases.
1085
1086 Mon Oct 18 10:28:08 1993 Jim Kingdon (kingdon@lioth.cygnus.com)
1087
1088 * hppa-tdep.c (restore_pc_queue): Call target_terminal_ours after
1089 done stepping the inferior.
1090
1091 * c-exp.y: Remove never-used (because of shift/reduce conflicts)
1092 rules for pointers to members.
1093 * Makefile.in: Remove notice about expected shift/reduce conflicts.
1094
1095 * buildsym.c (finish_block): If we pop the context stack and it is
1096 not empty, complain () instead of abort ().
1097
1098 Sun Oct 17 19:42:31 1993 Jim Kingdon (kingdon@lioth.cygnus.com)
1099
1100 * parse.c, parser-defs.h (follow_types): New function.
1101 * c-exp.y (ptype : typebase abs_decl): Use it.
1102 * c-exp.y (ptype): Add support for type qualifiers after the
1103 typebase. The typebase rule already has support for them before
1104 the typebase.
1105 * Makefile.in: Change the expected number of shift/reduce
1106 conflicts to 6. This is OK--the 2 new conflicts are basically the
1107 same as one of the old ones.
1108
1109 Sun Oct 17 13:04:49 1993 Fred Fish (fnf@cygnus.com)
1110
1111 * Makefile.in (VERSION): Bump to 4.10.3.
1112
1113 Sun Oct 17 09:18:57 1993 Jim Kingdon (kingdon@lioth.cygnus.com)
1114
1115 * infrun.c (wait_for_inferior): Clean up comments which were at
1116 the top of the file, making them more concise and moving them with
1117 the code (Sorry, Randy, but these stream-of-consciousness comments
1118 really have to go). Switch the order of the "&&", which makes
1119 things clearer and turns out to be an improvement with respect to
1120 side effects and speed.
1121
1122 Sun Oct 17 02:06:01 1993 Stu Grossman (grossman at cygnus.com)
1123
1124 * procfs.c: Handle process exits more elegantly by trapping on
1125 entry to _exit. Also, cleanup procinfo list when process dies of
1126 it's own accord (as opposed to being killed).
1127
1128 Sat Oct 16 20:47:30 1993 Jim Kingdon (kingdon@lioth.cygnus.com)
1129
1130 * config/m88k/xm-dgux.h: Define NO_PTRACE_H.
1131
1132 * corelow.c (add_to_thread_list): Need a cast to go from PTR to
1133 asection *.
1134
1135 * infrun.c: Add comment about signals.
1136
1137 * fork-child.c (fork_inferior): Remove CREATE_INFERIOR_HOOK again.
1138 Stu reinstated it (accidently I assume).
1139
1140 Sat Oct 16 15:27:10 1993 Stu Grossman (grossman at cygnus.com)
1141
1142 * procfs.c (procfs_wait): Losing Unixware can't do poll on /proc
1143 files. Use PIOCWSTOP instead.
1144 * corelow.c (add_to_thread_list): Fix arg to match prototype.
1145
1146 * procfs.c (procfs_set_sproc_trap): Don't use this if sproc
1147 isn't available.
1148 * (procfs_notice_signals): Fix prototype.
1149
1150 Fri Oct 15 22:46:07 1993 Stu Grossman (grossman at cygnus.com)
1151
1152 * breakpoint.c (breakpoint_thread_match break_command_1):
1153 Thread-specific breakpoint support.
1154 * breakpoint.h (struct breakpoint): Add thread id field.
1155 * fork-child.c (fork_inferior): Move call to init_thread_list()
1156 back a bit so that init_trace_fun can do thread functions.
1157 * hppa-tdep.c (restore_pc_queue): Add pid to call to target_wait.
1158 * hppab-nat.c (child_resume): Handle default pid.
1159 * hppah-nat.c (child_resume): Handle default pid.
1160 * i386lynx-nat.c (child_wait): New arg pid.
1161 * inflow.c (kill_command): Reset thread list.
1162 * infptrace.c (child_resume): Handle default pid.
1163 * infrun.c: Thread-specific breakpoint support.
1164 * inftarg.c (child_wait): Add pid arg.
1165 * osfsolib.c (solib_create_inferior_hook): Add pid to call to
1166 target_resume.
1167 * procfs.c: Multi-thread support.
1168 * remote-bug.c (bug_wait): Add pid arg.
1169 * remote-hms.c (hms_wait): Add pid arg.
1170 * remote-mips.c (mips_wait): Add pid arg.
1171 * remote-mon.c (monitor_wait): Add pid arg.
1172 * remote-nindy.c (nindy_wait): Add pid arg.
1173 * remote-sim.c (gdbsim_wait): Add pid arg.
1174 * remote-udi.c (udi_wait): Add pid arg.
1175 * remote-vx.c (vx_wait): Add pid arg.
1176 * remote-z8k.c (sim_wait): Add pid arg.
1177 * remote.c (remote_wait): Add pid arg.
1178 * solib.c (solib_create_inferior_hook): Add pid to call to
1179 target_resume.
1180 * target.h (struct target_ops): Add pid arg to to_wait and
1181 to_notice_signals.
1182 * thread.c (valid_thread_id): New func to validate thread #s.
1183 * (pid_to_thread_id): New func to do the obvious.
1184 * thread.h: Prototypes for above.
1185
1186 * coff-solib.c (coff_solib_add): Use nameoffset field to locate
1187 filename.
1188
1189 Fri Oct 15 21:29:40 1993 Jim Kingdon (kingdon@lioth.cygnus.com)
1190
1191 * h8300-tdep.c, h8500-tdep.c: Define sim_load only, but not
1192 sim_kill, sim_open, or sim_set_args.
1193
1194 * stack.c (print_stack_frame): Put catch_errors around
1195 print_frame_info so (for example) error printing source doesn't
1196 cause auto-displays to get skipped in normal_stop.
1197
1198 * findvar.c (value_from_register): When preparing to cast a value
1199 from REGISTER_VIRTUAL_TYPE to type, copy the REGISTER_VIRTUAL_SIZE;
1200 the old code didn't copy the whole thing.
1201 * valops.c (value_assign): Add comment.
1202
1203 Fri Oct 15 12:57:30 1993 Peter Schauer (pes@regent.e-technik.tu-muenchen.de)
1204
1205 * mipsread.c (upgrade_type): Replace bitsize sanity checks and
1206 complaint by a comment explaining why they were useless.
1207
1208 Fri Oct 15 14:30:30 1993 Jim Kingdon (kingdon@lioth.cygnus.com)
1209
1210 * Move comments on bypassing call dummy breakpoint from stack.c
1211 to breakpoint.h.
1212
1213 Fri Oct 15 11:52:56 1993 Peter Schauer (pes@regent.e-technik.tu-muenchen.de)
1214
1215 * symtab.c (lookup_partial_symtab): If filename is not found and
1216 contains no slashes, try again and compare without leading path
1217 components.
1218 * symtab.c (lookup_symtab_1): Replace open coded version of
1219 lookup_partial_symtab with a function call.
1220
1221 Thu Oct 14 20:34:15 1993 Jim Kingdon (kingdon@lioth.cygnus.com)
1222
1223 * fork-child.c (fork_inferior), remote-eb.c (eb_create_inferior),
1224 remote-mon.c (monitor_create_inferior), remote-nindy.c
1225 (nindy_create_inferior), remote-st.c (st2000_create_inferior),
1226 remote-vx.c (vx_create_inferior): Remove CREATE_INFERIOR_HOOK; it
1227 is replaced by init_trace_fun.
1228 * config/convex/xm-convex.h, convex-xdep.c: Add comments explaining
1229 how to do without CREATE_INFERIOR_HOOK for whoever fixes the Convex
1230 port.
1231
1232 * Makefile.in: Add Mach files to ALLDEPFILES, etc.
1233 * m3-nat.c: Clean up more hair--message(), cprocs.
1234 * configure.in: Recognize Mach targets and hosts.
1235 * config/ns32k/tm-umax.h: Add some #ifndef's so tm-ns32km3.h can
1236 include this file.
1237 * Mach headers in config/*/tm-*.h: Fix includes to match correct
1238 locations of files.
1239
1240 Thu Oct 14 21:35:55 1993 Rob Savoye (rob@darkstar.cygnus.com)
1241
1242 * remote-mon.c (general_open): Set dev_name. Minor tweaking to get
1243 it working again.
1244 * config/m68k/tm-monitor.h: Remove floating point register names
1245 as there aren't any on any of the monitors that use this code.
1246
1247 Wed Oct 13 11:47:23 1993 Jim Kingdon (kingdon@lioth.cygnus.com)
1248
1249 * inflow.c: Pass pointer to process group, not process group itself,
1250 to TIOCSPGRP ioctl.
1251
1252 * inflow.c (terminal_ours_1): Don't print warning on failure to
1253 set process group.
1254
1255 * printcmd.c (printf_command): Instead of using makeva* and
1256 calling vprintf, just make the appropriate calls to printf.
1257 * printcmd.c, config/pa/xm-pa.h, config/mips/xm-makeva.h,
1258 config/alpha/xm-alpha.h, config/m88k/xm-m88k.h: Remove all
1259 traces of makeva*. My apologies to everyone (including me!)
1260 who spent so much time getting it to work on various machines,
1261 but look at the bright side, at least you won't have to do it
1262 again in the future.
1263
1264 * printcmd.c (printf_command): Make a cleanup for val_args (fixes
1265 a memory leak).
1266
1267 Tue Oct 12 22:54:41 1993 Jim Kingdon (kingdon@lioth.cygnus.com)
1268
1269 * config/mips/xm-mips.h: Remove comment about HAVE_SGTTY vs. usleep.
1270
1271 Tue Oct 12 12:01:29 1993 david d `zoo' zuhn (zoo@rtl.cygnus.com)
1272
1273 * configure.in: only configure gdbserver for native environments
1274
1275 Tue Oct 12 08:59:15 1993 Jim Kingdon (kingdon@lioth.cygnus.com)
1276
1277 * stabsread.c (read_type): Treat a negative type number at the start
1278 of a type as a type reference, not as a definition of a type with
1279 "50=" omitted. This makes things work on the RS/6000 again (the
1280 14 Sep 1993 change broke it).
1281
1282 * inflow.c: Use 0 (standard input) not scb->fd.
1283 (terminal_ours_1): If printing warning, don't claim it happened in
1284 terminal_inferior.
1285
1286 * blockframe.c (get_prev_frame_info): Don't error() if there are no
1287 frames; just return NULL.
1288
1289 * xcoffsolib.h, xcoffexec.c: Undo the part of Fred's bfd->abfd
1290 change which involved structure elements. It was unnecessary and
1291 was not consistently done.
1292
1293 * stabsread.h, stabsread.c, dbxread.c (common_block*, copy_pending):
1294 Move common block handling from dbxread.c to stabsread.c.
1295 Use the name from the BCOMM instead of the ECOMM.
1296 Allocate things on the symbol_obstack.
1297 * xcoffread.c (process_xcoff_symbol): Process C_BCOMM, C_ECOMM,
1298 and C_ECOML. On unrecognized storage classes, go ahead and call
1299 define_symbol (after the complaint).
1300
1301 * dbxread.c (process_one_symbol): Don't relocate 'S' symbols by
1302 the text offset.
1303
1304 Tue Oct 12 12:33:09 1993 Peter Schauer (pes@regent.e-technik.tu-muenchen.de)
1305
1306 * osfsolib.c (solib_create_inferior_hook): Reset stop_soon_quietly
1307 after shared library symbol reading to get rid of warning from
1308 heuristic_proc_start.
1309
1310 Tue Oct 12 12:01:29 1993 david d `zoo' zuhn (zoo@rtl.cygnus.com)
1311
1312 * remote-sim.c: fix unterminated character string
1313
1314 Tue Oct 12 08:59:15 1993 Jim Kingdon (kingdon@lioth.cygnus.com)
1315
1316 * stabsread.c: Fix comment about gcc 2.3.3 stab for long long int.
1317
1318 Mon Oct 11 14:27:25 1993 Jim Kingdon (kingdon@lioth.cygnus.com)
1319
1320 * m3-nat.c, config/nm-m3.h: Add a target_ops struct and other
1321 various things to try to get this to work.
1322
1323 * symtab.h: Fix comments re headers, sharing blockvectors, etc.
1324
1325 Mon Oct 11 11:46:06 1993 david d `zoo' zuhn (zoo@rtl.cygnus.com)
1326
1327 * config/i960/vxworks960.mt (REMOTE_O): add dcache.o and remote-utils.o
1328
1329 Mon Oct 11 02:48:57 1993 Peter Schauer (pes@regent.e-technik.tu-muenchen.de)
1330
1331 * mipsread.c (parse_partial_symbols): Do not add undefined
1332 symbols to the partial symbol table.
1333 * alpha-tdep.c (init_extra_frame_info): Remove kludge for gcc,
1334 gcc has to be compatible with the native tools.
1335 * alpha-tdep.c (alpha_push_arguments): Rename NUM_ARG_REGS to
1336 ALPHA_NUM_ARG_REGS and move its definition to tm-alpha.h.
1337 * config/alpha/tm-alpha.h (FRAME_ARGS_ADDRESS): Change it to the
1338 way the native tools define it, update comment.
1339
1340 Fri Oct 8 15:54:06 1993 Fred Fish (fnf@deneb.cygnus.com)
1341
1342 * osfsolib.c, remote-sim.c, remote.c, solib.c, xcoffexec.c,
1343 xcoffsolib.h: Use 'abfd' for bfd variables instead of 'bfd'.
1344 Sun cc doesn't like variable names that match their typedef'd type.
1345
1346 Fri Oct 8 14:56:21 1993 Jim Kingdon (kingdon@lioth.cygnus.com)
1347
1348 * inflow.c: Remove unused includes of sys/param.h and sys/types.h.
1349
1350 * inflow.c, ser-unix.c, ser-go32.c, ser-tcp.c, serial.h,
1351 terminal.h, fork-child.c, main.c, utils.c: Move all the process
1352 group stuff back to inflow.c and terminal.h; that's a better place
1353 for it and fixes problems with trying to get/set the process group
1354 of a tty we're doing remote debugging on.
1355 * terminal.h: Skip the redefines and includes if HAVE_TERMIOS.
1356
1357 * findvar.c, value.h (symbol_read_needs_frame): New function.
1358 * c-exp.y, m2-exp.y: Call it instead of having our own switch on
1359 the symbol's class.
1360 * valops.c (value_of_variable): Use symbol_read_needs_frame to
1361 decide whether we care about finding a frame.
1362
1363 Fri Oct 8 02:34:21 1993 Peter Schauer (pes@regent.e-technik.tu-muenchen.de)
1364
1365 * blockframe.c (get_frame_block): Do not adjust pc if the frame
1366 function was interrupted by a signal.
1367
1368 Thu Oct 7 19:20:11 1993 Jim Kingdon (kingdon@lioth.cygnus.com)
1369
1370 * config/h8300/tm-h8300.h: Don't define sr_get_debug.
1371 * remote-sim.c: Include remote-utils.h.
1372 * target.h: Add comment about target_has_execution.
1373
1374 Thu Oct 7 16:14:19 1993 Steve Chamberlain (sac@phydeaux.cygnus.com)
1375
1376 * h8300-tdep.c (sim_load, sim_kill, sim_open, sim_set_args):
1377 New functions.
1378 * infrun.c (normal_stop): Don't try and set the pc in the current
1379 frame coredump if there isn't one.
1380 * remote-sim.c (gdbsim_store_register): Don't
1381 SWAP_TARGET_AND_HOST, sim_store_register takes bytes in raw order.
1382 (gdbsim_wait): Set status with WSETSTOP.
1383 * config/h8300/tm-h8300.h (sr_get_debug): Define
1384
1385 Thu Oct 7 12:56:57 1993 Jim Kingdon (kingdon@lioth.cygnus.com)
1386
1387 New Mach stuff:
1388 * config/i386/i386mach.c: Explain this is for the old (probably
1389 non-functional and/or obsolete) Mach stuff.
1390 * m3-nat.c, config/nm-m3.h,
1391 i386m3-nat.c, mipsm3-nat.c, ns32km3-nat.c,
1392 config/i386/{i386m3.mh,i386m3.mt,tm-i386m3.h,xm-i386m3.h},
1393 config/i386/{i386mk.mh,i386mk.mt,tm-i386mk.h,xm-i386mk.h},
1394 config/mips/{mipsm3.mh,mipsm3.mt,tm-mipsm3.h,xm-mipsm3.h},
1395 config/ns32k/{ns32km3.mh,ns32km3.mt,tm-ns32km3.h,xm-ns32km3.h}:
1396 New files.
1397
1398 * blockframe.c (find_pc_partial_function): If we call
1399 PSYMTAB_TO_SYMTAB, call target_terminal_ours_for_output first.
1400 This is needed now that wait_for_inferior passes in endaddr.
1401 * infrun.c: Move call to target_terminal_inferior from proceed
1402 to resume.
1403
1404 Thu Oct 7 09:22:04 1993 Stu Grossman (grossman at cygnus.com)
1405
1406 * blockframe.c (find_pc_partial_function): Fix handling for PCs
1407 beyond the end of the last function in an objfile.
1408 * coff-solib.c (coff_solib_add): Use BFD to get fields from .lib
1409 section.
1410 * infrun.c (wait_for_inferior): Modify test for subroutine entry
1411 to include pc out of bounds of the previous function.
1412 * remote.c (remote_wait): Use strtoul for parsing 'N' message.
1413 Add code to relocate symfile_objfile->sections.
1414
1415 Thu Oct 7 06:22:43 1993 Jim Kingdon (kingdon@lioth.cygnus.com)
1416
1417 * config/sparc/sun4os4.mh: Add comment saying why we don't use
1418 -lresolv.
1419
1420 Thu Oct 7 09:29:11 1993 Peter Schauer (pes@regent.e-technik.tu-muenchen.de)
1421
1422 * breakpoint.c, breakpoint.h (breakpoint_init_inferior): New function
1423 that clears the `inserted' flag for all breakpoints and deletes
1424 any breakpoints which should go away between runs of programs.
1425 * inflow.c (generic_mourn_inferior), infrun.c (init_wait_for_inferior),
1426 remote-es.c (es1800_load), comments in exec.c and corelow.c:
1427 Use it instead of mark_breakpoints_out.
1428 * breakpoint.c (mark_breakpoints_out): Update comment, tm-rs6000.h
1429 uses it in a completely different context.
1430 * breakpoint.c (breakpoint_re_set_one): Add bp_call_dummy case.
1431
1432 Thu Oct 7 09:29:11 1993 Peter Schauer (pes@regent.e-technik.tu-muenchen.de)
1433
1434 * Makefile.in (REGEX, REGEX1): Always use our own version of
1435 regex.c to be consistent across hosts.
1436 * source.c (_initialize_source): Initialize regex to use grep
1437 style syntax as an approximation to POSIX basic regex syntax.
1438
1439 Wed Oct 6 12:43:47 1993 Jeffrey A Law (law@snake.cs.utah.edu)
1440 Jim Kingdon (kingdon@lioth.cygnus.com)
1441
1442 * hppa-tdep.c (frame_chain): Rework so that it correctly
1443 handles boundaries where code with a frame pointer calls code
1444 without a frame pointer.
1445 (dig_fp_from_stack): New function.
1446
1447 Wed Oct 6 12:43:47 1993 Jim Kingdon (kingdon@lioth.cygnus.com)
1448
1449 * breakpoint.c (delete_breakpoint): Don't insert a disabled breakpoint.
1450
1451 * README: Add Alpha notes from Schauer.
1452
1453 Tue Oct 5 15:26:04 1993 Jim Kingdon (kingdon@lioth.cygnus.com)
1454
1455 * Makefile.in (install, uninstall): Remove $$n.1 stuff; I don't
1456 understand what it is trying to do, but I suspect it's not doing
1457 it.
1458
1459 * config/ns32k/merlin.mh: Add comment about M_INSTALL.
1460 * config/m88k/{delta88.mh,delta88v4.mh}: Remove M_INSTALL and
1461 M_UNINSTALL; it tries to install a non-existent file gdb.z.
1462 * Makefile.in: Remove M_INSTALL stuff; the above were the only uses.
1463
1464 * stabsread.c (read_range_type): Remove comment which recommends
1465 distinguishing float from complex by the name.
1466
1467 Tue Oct 5 12:17:40 1993 Peter Schauer (pes@regent.e-technik.tu-muenchen.de)
1468 Jim Kingdon (kingdon@cygnus.com)
1469 Stu Grossman (grossman@cygnus.com)
1470
1471 Changes to support alpha OSF/1 in native mode.
1472 * alpha-nat.c, alpha-tdep.c, config/alpha/alpha-osf1.mt,
1473 config/alpha/nm-alpha.h, config/alpha/tm-alpha.h, osfsolib.c:
1474 New files.
1475 * Makefile.in: Add new files and dependencies.
1476 * configure.in: Add alpha target.
1477 * config/alpha/alpha-osf1.mh (NATDEPFILES): Add osfsolib.o
1478 * config/alpha/alpha-osf1.mh (MH_CFLAGS): Remove, we can handle
1479 shared libraries now.
1480 * config/alpha/xm-alpha.h: Cleanup, get MAKEVA_* defines right.
1481
1482 * defs.h (CORE_ADDR): Make its type overridable via CORE_ADDR_TYPE,
1483 provide `unsigned int' default.
1484 * breakpoint.c (breakpoint_auto_delete): Delete only if we really
1485 stopped for the breakpoint.
1486 * stabsread.c, stabsread.h (define_symbol): Change valu parameter
1487 to a CORE_ADDR.
1488 * stabsread.c (read_range_type): Handle the case where the lower
1489 bound overflows and the upper doesn't and the range is legal.
1490 * infrun.c (resume): Do not step a breakpoint instruction if
1491 CANNOT_STEP_BREAKPOINT is defined.
1492
1493 * inferior.h (CALL_DUMMY_LOCATION): New variant AT_ENTRY_POINT.
1494 Now that we have the bp_call_dummy breakpoint the call dummy code
1495 is no longer needed. PUSH_DUMMY_FRAME, PUSH_ARGUMENTS and
1496 FIX_CALL_DUMMY can be used to set up everything for the dummy.
1497 The breakpoint for the dummy is set at the entry point and thats it.
1498 * blockframe.c (inside_entry_file, inside_entry_func): Do not stop
1499 backtraces if pc is in the call dummy at the entry point.
1500 * infcmd.c (run_stack_dummy): Handle AT_ENTRY_POINT case. Use
1501 the expected breakpoint pc when setting up the frame for
1502 set_momentary_breakpoint.
1503 * symfile.c (entry_point_address): New function for AT_ENTRY_POINT
1504 support.
1505 * valops.c (call_function_by_hand): Handle AT_ENTRY_POINT case.
1506
1507 Tue Oct 5 11:37:02 1993 Jim Kingdon (kingdon@lioth.cygnus.com)
1508
1509 * configure.in: Recognize hppa*-*-hiux* (currently synonym for hpux).
1510 Change other hppa host entries to use -*- not -hp-.
1511
1512 Mon Oct 4 19:16:14 1993 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
1513
1514 * i386-nlmstub.c: New file; debugging stub for i386 NetWare. Must
1515 be compiled with NetWare header files and turned into an NLM with
1516 nlmconv.
1517
1518 Mon Oct 4 11:02:11 1993 Jim Kingdon (kingdon@lioth.cygnus.com)
1519
1520 * minsyms.c (lookup_minimal_symbol_by_pc): Don't use mst_abs symbols.
1521
1522 * dbxread.c (process_one_symbol): Make n_opt_found static.
1523
1524 * Rename i386lynx-tdep.c to i386ly-tdep.c for 14 character file names.
1525 * Makefile.in, config/i386/i386lynx.mt: Change accordingly.
1526
1527 * values.c (record_latest_value): Fetch lazy values and set VALUE_LVAL
1528 to not_lval.
1529
1530 Sun Oct 3 15:54:51 1993 Stan Shebs (shebs@rtl.cygnus.com)
1531
1532 * objfiles.h (objfile): New slot sym_stab_info, use by most
1533 stab-reading formats.
1534 * gdb-stabs.h (DBX_SYMFILE_INFO): Access sym_stab_info instead of
1535 sym_private.
1536 * coffread.c (coff_symfile_init): Alloc struct for sym_stab_info.
1537 * dbxread.c, elfread.c, paread.c: Change sym_private references to
1538 sym_stab_info references.
1539
1540 Sat Oct 2 19:28:35 1993 Jim Kingdon (kingdon@lioth.cygnus.com)
1541
1542 * mipsread.c, objfiles.c, utils.c: Use PTR not void *. RISC/OS
1543 4.02 lacks void *.
1544 * elfread.c: Use void * not PTR inside PARAMS.
1545
1546 * config/mips/news-mips.mh: Remove coredep.o; mips-nat.o does it.
1547 * config/mips/news-mips.mh: Define NAT_FILE not NM_FILE.
1548 * config/mips/nm-news-mips.h: Include mips/nm-mips.h not nm-mips.h.
1549
1550 Sat Oct 2 16:05:22 1993 Stu Grossman (grossman at cygnus.com)
1551
1552 * Makefile.in, coff-solib.c, coff-solib.h, i386lynx.mt,
1553 tm-i386lynx.h: Add support for SVR3 COFF shared libraries.
1554
1555 Sat Oct 2 15:50:41 1993 Jim Kingdon (kingdon@lioth.cygnus.com)
1556
1557 * m88k-nat.c (store_inferior_registers): When writing all registers,
1558 don't try to write EXIP_REGNUM or ENIP_REGNUM (not needed for this
1559 case, and they cause trouble).
1560
1561 * TODO: Don't suggest doing fast watchpoints by stepping a line
1562 at a time. That would be really hairy and still not fast enough.
1563 Do suggest debug registers and page table diddling.
1564
1565 Fri Oct 1 14:54:46 1993 Jim Kingdon (kingdon@lioth.cygnus.com)
1566
1567 * printcmd.c (do_examine): Make meaning of 'h', 'w', and 'g' not
1568 depend on builtin_type_*. Instead, it is always 2, 4, and 8 bytes
1569 like the documentation says.
1570 * printcmd.c (decode_format) [CC_HAS_LONG_LONG]: Remove 'l' as
1571 synonym for 'g'. This was never documented, it shouldn't depend on
1572 CC_HAS_LONG_LONG, and I don't see what's wrong with 'g'.
1573
1574 Fri Oct 1 10:06:35 1993 Kung Hsu (kung@cirdan.cygnus.com)
1575
1576 * symtab.c: fix a bug in testsuite (virtfunc.exp)
1577
1578 Thu Sep 30 11:30:56 1993 Jim Kingdon (kingdon@lioth.cygnus.com)
1579
1580 * m88k-nat.c (fill_gregset): Fix typo (R_SFIP -> R_FIP).
1581
1582 * c-typeprint.c (c_type_print_base, TYPE_FN_FIELD_STUB code):
1583 If demangled name lacks a colon, don't dump core.
1584
1585 * blockframe.c (find_pc_partial_function): If pst->readin is
1586 set, don't try to get symbols from pst.
1587
1588 * inflow.c (generic_mourn_inferior): Call reinit_frame_cache
1589 instead of doing it ourself.
1590 * blockframe.c (reinit_frame_cache): Use code which was in
1591 generic_mourn_inferior so we can use this function even when
1592 we have switched targets.
1593 * corelow.c (core_detach): Call reinit_frame_cache.
1594 * target.c (target_detach): Don't call generic_mourn_inferior
1595 (revert yesterday's change, now handled by core_detach).
1596 * objfiles.c (free_objfile): Detach any core file if we call
1597 SOLIB_CLEAR. #include target.h.
1598
1599 * fork-child.c (fork_inferior): Don't call target_terminal_init
1600 and target_terminal_inferior until we are sure that the inferior
1601 has called gdb_setpgid. This fixes PR 2900 (Schauer tracked it
1602 down and was able to reliably reproduce it by putting a sleep()
1603 before the gdb_setpgid()).
1604
1605 Thu Sep 30 12:00:49 1993 Peter Schauer (pes@regent.e-technik.tu-muenchen.de)
1606
1607 * c-exp.y, m2-exp.y: Change type of address for msymbol to
1608 builtin_type_long.
1609 * infptrace.c (fetch_register, store_inferior_register,
1610 child_xfer_memory): Use PTRACE_XFER_TYPE for the type of ptrace
1611 transfers. Provide an `int' default for PTRACE_XFER_TYPE.
1612
1613 Thu Sep 30 11:30:56 1993 Jim Kingdon (kingdon@lioth.cygnus.com)
1614
1615 * defs.h (TARGET_*_BIT): Don't use host information (sizeof) in
1616 picking defaults.
1617
1618 * cp-valprint.c (cp_is_vtbl_ptr_type): Continue to accept old form.
1619
1620 Thu Sep 30 11:25:55 1993 Kung Hsu (kung@cygnus.com)
1621
1622 * cp-valprint.c (cp_is_vtbl_ptr_type):
1623 change vtable field name to __vtbl (pr2695).
1624
1625 * symtab.c (gdb_mangle_name): fix a bug, to get mangled name right.
1626
1627 Wed Sep 29 18:34:22 1993 Stu Grossman (grossman at cygnus.com)
1628
1629 * Makefile.in: Add deps for i386lynx-nat.o and i386lynx-tdep.o to
1630 keep non-gnu makes happy.
1631
1632 Wed Sep 29 10:52:19 1993 Kung Hsu (kung@cygnus.com)
1633
1634 * c-valprint.c: to fix virtual table print bug (pr2695).
1635
1636 Wed Sep 29 10:52:19 1993 Jim Kingdon (kingdon@lioth.cygnus.com)
1637
1638 * target.c (target_detach): Call generic_mourn_inferior.
1639 * inflow.c (generic_mourn_inferior): Call flush_cached_frames.
1640
1641 Tue Sep 28 23:08:59 1993 Jim Kingdon (kingdon@lioth.cygnus.com)
1642
1643 * dbxread.c, coffread.c, elfread.c: A few changes to comments.
1644
1645 Tue Sep 28 18:39:37 1993 Stan Shebs (shebs@rtl.cygnus.com)
1646
1647 * configure.in: Rename ...-lynx* to ...-lynxos*.
1648 Add m68*-*-lynxos* configuration.
1649 * dbxread.c (coffstab_build_psymtabs): New function,
1650 interfaces coffread.c to dbxread functions.
1651 * coffread.c (coff_symfile_info): Expand to include
1652 dbx_symfile_info slots.
1653 (coff_symfile_init): Init coff_symfile_info struct.
1654 (coff_locate_sections): New functions, finds the stab and stabstr
1655 sections.
1656 (coff_symfile_read): Call coffstab_build_psymtabs if a stab
1657 section is present.
1658 (coff_section_offsets): Replace fake version with real offsets.
1659
1660 Tue Sep 28 18:00:50 1993 Jim Kingdon (kingdon@lioth.cygnus.com)
1661
1662 * infcmd.c (run_stack_dummy): Set the frame in the bp_call_dummy
1663 breakpoint.
1664
1665 Tue Sep 28 17:53:26 1993 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
1666
1667 * config/nm-sysv4.h: Include solib.h. Define SVR4_SHARED_LIBS.
1668 * config/tm-sysv4.h: Don't include solib.h.
1669 * config/xm-sysv4.h: Don't define SVR4_SHARED_LIBS.
1670 * config/i386/i386v4.mt (TDEPFILES): Move solib.o from here...
1671 * config/i386/i386v4.mh (NATDEPFILES): ...to here.
1672 * config/i386/nm-i386v4.h: Include nm-sysv4.h.
1673 * config/m68k/amix.mt (TDEPFILES): Move solib.o from here...
1674 * config/m68k/amix.mh (NATDEPFILES): ...to here.
1675
1676 Tue Sep 28 09:45:38 1993 Peter Schauer (pes@regent.e-technik.tu-muenchen.de)
1677
1678 * symmisc.c (print_symbol): Use %02x not %2x for LOC_CONST_BYTES.
1679
1680 Clean up problems with targets and hosts that have 64 bit longs
1681 and pointers and 32 bit ints.
1682 * breakpoint.c, buildsym.c, c-lang.c, c-valprint.c, ch-lang.c,
1683 ch-valprint.c, core.c, cp-valprint.c, dbxread.c, exec.c,
1684 expprint.c, gdbtypes.c, infcmd.c, language.c, language.h,
1685 m2-lang.c, maint.c, mips-tdep.c, mipsread.c, partial-stab.h,
1686 printcmd.c, remote-vx.c, solib.c, source.c, stack.c, symfile.c,
1687 symmisc.c, symtab.c, valops.c, valprint.c, xcoffexec.c:
1688 Change all printf formats from %x to %lx if outputting an address.
1689 Change la_*_format to use long format.
1690 local_hex_string, local_hex_string_custom now take an unsigned long
1691 argument, change all callers.
1692 * coffread.c (read_coff_symtab): Remove superfluous cast for
1693 complaint output.
1694 * dbxread.c (end_psymtab): Cast MSYMBOL_INFO to long, not int.
1695 * findvar.c, value.h (write_register): Change val to LONGEST.
1696 * gdbtypes.h (struct type): Change `bitsize' to long as
1697 TYPE_FIELD_STATIC_PHYSNAME uses this field as a pointer.
1698 * inferior.h (struct inferior_status): Change type of stop_pc to
1699 CORE_ADDR.
1700 * language.h (local_octal_string, local_octal_string_custom):
1701 Remove prototype, the functions are neither defined nor used.
1702 * mipsread.c (parse_symbol): Use temporary variable for bitsize as
1703 f->bitsize is a long now.
1704 * objfiles.c (add_to_objfile_sections, build_objfile_section_table):
1705 Use unsigned long casts instead of int for abusing sections_end
1706 pointer as integer.
1707 * stack.c (parse_frame_specification): Change type of `args' to
1708 CORE_ADDR for SETUP_ARBITRARY_FRAME.
1709
1710 * printcmd.c (make_vasize): Allow redefinition via MAKEVA_SIZE.
1711 * mipsread.c (parse_type): Alpha cc now supports the t->continued
1712 bit, update algorithm to match the way the compiler uses it.
1713
1714 Tue Sep 28 12:05:11 1993 Jim Kingdon (kingdon@lioth.cygnus.com)
1715
1716 * utils.c (fprintfi_filtered): Fix comments.
1717
1718 Mon Sep 27 18:10:08 1993 Stu Grossman (grossman at cygnus.com)
1719
1720 * coffread.c (read_coff_symtab): Don't call getfilename if there
1721 are no auxents.
1722
1723 Mon Sep 27 10:22:37 1993 Jim Kingdon (kingdon@lioth.cygnus.com)
1724
1725 * symtab.c (find_pc_line): Fix comments.
1726
1727 * remote-udi.c (udi_mourn): Don't pop target.
1728
1729 Fri Sep 24 17:25:41 1993 Stu Grossman (grossman at cygnus.com)
1730
1731 * corelow.c: Add multi thread/process support for core files with
1732 .reg/XXX pseudo-sections.
1733 * i386lynx-nat.c thread.h thread.c: Remove unnecessary core file
1734 support.
1735
1736 Thu Sep 23 10:49:37 1993 Jim Kingdon (kingdon@lioth.cygnus.com)
1737
1738 * remote-udi.c (download): Skip zero length sections.
1739
1740 * valops.c (search_struct_method, value_struct_elt):
1741 Use (value)-1, not -1, for error.
1742
1743 * infcmd.c (step_1), infrun.c (wait_for_inferior): Add comments
1744 about SHIFT_INST_REGS.
1745
1746 * exec.c (exec_file_command): Set text_end based on all code readonly
1747 sections, not just ".text".
1748
1749 * defs.h, infcmd.c, config/z8k/tm-z8k.h, config/m88k/tm-m88k.h,
1750 config/sh/tm-sh.h, config/h8300/tm-h8300.h, config/h8500/tm-h8500.h,
1751 z8k-tdep.c: Remove all references to ADDR_BITS_SET.
1752 * config/m88k/tm-m88k.h: Define TARGET_WRITE_PC.
1753
1754 * config/m88k/tm-m88k.h, m88k-tdep.c: Add call function stuff.
1755
1756 Thu Sep 23 00:13:06 1993 Peter Schauer (pes@regent.e-technik.tu-muenchen.de)
1757
1758 * config/mips/tm-mips.h (STORE_STRUCT_RETURN): Define as noop as
1759 the pushing of the struct return address is already handled in
1760 mips_push_arguments.
1761 * mips-tdep.c (reinit_frame_cache_sfunc): Fix typo in prototype
1762 declaration.
1763 * mipsread.c (parse_symbol, parse_type, upgrade_type): Add more
1764 sanity checks for corrupt symbol entries to avoid core dumps
1765 reported by benson@odi.com. Obviously Ultrix 4.3A cc now has
1766 the same problems as the OSF/1 alpha cc.
1767 * mipsread.c (parse_lines): Iterate over the range of the compressed
1768 line number entries, the old iteration sometimes failed to stop
1769 and wrote past the end of the LINETABLE. Add sanity check to avoid
1770 the same problem in case the line number info is corrupt.
1771 * mipsread.c (parse_procedure): Adjust pdr for alpha __sigtramp.
1772 * mipsread.c (parse_external, parse_partial_symbols): Ignore stNil
1773 symbols that are produced for statics in .o files and stLocal symbols
1774 that are produced for every section in OSF/1 dynamically linked
1775 executables.
1776 * mipsread.c (psymtab_to_symtab_1): Put out `undefined symbols'
1777 warning only under `verbose on' as there are many undefined symbols
1778 in a dynamically linked executable.
1779
1780 Wed Sep 22 10:28:06 1993 Jim Kingdon (kingdon@lioth.cygnus.com)
1781
1782 * config/i960/nindy960.mt: Don't define REMOTE_O; REMOTE_O was
1783 intended only for VxWorks. Remove dcache.o from TDEPFILES now
1784 that we pick it up from the default REMOTE_O.
1785
1786 * breakpoint.c (bpstat_what): Initialize retval.call_dummy and
1787 retval.step_resume.
1788
1789 * mips-tdep.c (mips_frame_chain): If frame size zero, return zero.
1790 * rs6000-tdep.c: Add comment about framelessness.
1791
1792 * remote-nindy.c: Declare ninMemGet and ninMemPut.
1793
1794 Wed Sep 22 08:02:57 1993 Stu Grossman (grossman at cygnus.com)
1795
1796 * Makefile.in: Add i386lynx-tdep to the right places.
1797 (TARDIRS): Add gdbserver.
1798
1799 * exec.c (print_section_info): Print entry point.
1800 * i386lynx-nat.c (i386lynx_saved_pc_after_call): Move into
1801 i386lynx-tdep.c. Add core file support.
1802 * i386lynx-tdep.c: New module for Lynx/386 target dependant code.
1803 * maint.c: Add `maint info sections' command to print info about all
1804 sections that BFD knows about for exec and core files.
1805 * sparc-tdep.c (sparc_push_dummy_frame): Update stack pointer
1806 before putting frame on the stack. Consolidate writes to reduce
1807 traffic for remote debugging.
1808 * config/i386/i386lynx.mh (NATDEPFILES): Remove exec.o.
1809 * config/i386/i386lynx.mt (TDEPFILES): Add exec.o, i386lynx-tdep.o.
1810 * config/i386/nm-i386lynx.h: Add target_pid_to_str().
1811 * config/i386/tm-i386lynx.h: Remove target_pid_to_str().
1812 * sparclite/Makefile.in: Add deps to keep Sun make happy.
1813
1814 Tue Sep 21 17:48:14 1993 Jim Kingdon (kingdon@lioth.cygnus.com)
1815
1816 * breakpoint.h, breakpoint.c (bpstat_stop_status): Add new argument
1817 not_a_breakpoint.
1818 * infrun.c (wait_for_inferior): Pass it. Also consolidate the
1819 test of whether we are stepping into a CURRENTLY_STEPPING macro.
1820
1821 Tue Sep 21 17:22:34 1993 K. Richard Pixley (rich@sendai.cygnus.com)
1822
1823 * breakpoint.c (bpstat_stop_status),
1824 infcmd.c (step_1),
1825 infrun.c (wait_for_inferior): collapse SHIFT_INST_REGS ifdef
1826 and insert macro.
1827
1828 * m88k-tdep.c: include ieee-float.h. new global target_is_m88110.
1829 new const struct ext_format_m88110 for float format.
1830 (pic_prologue_code): add braces.
1831 (next_insn): remove unused variable buf.
1832 (frame_find_saved_regs): remove unused variables next_addr,
1833 saved_regs, regnum.
1834 (frame_locals_address): remove unused variables frame, ap.
1835 (frame_args_address): remove unused variables frame, ap.
1836 (push_parameters): add some breaks and a default case.
1837
1838 * remote-bug.c: remove redundant includes of value.h, target.h,
1839 serial.h.
1840 (bug_open): corrected typo, sr_multi_scan -> gr_multi_scan.
1841 (bug_fetch_register): special case sfip register for m88110.
1842 remove flag bit masking of pc registers. This should be handled
1843 by the ADDR_BITS_* macros.
1844 (bug_store_register): special case sfip register for m88110.
1845 Corrected sprint format for extended registers.
1846
1847 * config/m88k/tm-m88k.h: white space and comment changes. include
1848 ieee-float.h. expanded to cope with m88110 extended registers.
1849 (R0_REGNUM, XFP_REGNUM, X0_REGNUM): new macros.
1850 (SHIFT_INST_REGS): becomes a real macro.
1851
1852 Tue Sep 21 17:48:14 1993 Jim Kingdon (kingdon@lioth.cygnus.com)
1853
1854 * breakpoint.c (breakpoint_1): Support bp_call_dummy.
1855
1856 Tue Sep 21 17:06:19 1993 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
1857
1858 * elfread.c (record_minimal_symbol_and_info): Guess the section to
1859 use from the type.
1860 * objfiles.c: Include gdb-stabs.h for SECT_* macros.
1861 (objfile_relocate): Relocate textlow and texthigh in psymtabs.
1862 Relocate partial symbols. Check that minimal SYMBOL_SECTION is
1863 nonnegative before using it.
1864 * symtab.h: Adjust section field comment.
1865
1866 * remote.c (interrupt_query): New function.
1867 (remote_interrupt_twice): Call interrupt_query.
1868 (putpkt, getpkt): If quit_flag is set, call interrupt_query.
1869 (remote_wait): Don't bother with objfile_relocate if the addresses
1870 haven't changed.
1871 (remote_fetch_registers): If we see a packet that doesn't start
1872 with a hex character, fetch a new one.
1873
1874 Tue Sep 21 11:44:00 1993 Jim Kingdon (kingdon@lioth.cygnus.com)
1875
1876 * remote.c, remote-utils.c: Use SERIAL_FLUSH_INPUT after opening it.
1877
1878 * printcmd.c (print_scalar_formatted): When truncating value we are
1879 going to print as unsigned, handle it generally for any length
1880 less than sizeof (LONGEST), rather than special-casing sizeof (char),
1881 sizeof (short), and sizeof (long). Clarify comment on what this
1882 is for.
1883
1884 * symfile.c (deduce_language_from_filename): Accept .cxx for C++.
1885 * buildsym.c (start_subfile): Use deduce_language_from_filename
1886 rather than checking for .C or .cc ourself.
1887
1888 Mon Sep 20 14:53:11 1993 Jim Kingdon (kingdon@lioth.cygnus.com)
1889
1890 * defs.h: Declare argument of re_comp as const char *.
1891
1892 * remote.c, remote-mips.c: Use sr_get_debug not remote_debug.
1893
1894 * README: Say using bfd from another release doesn't generally work.
1895
1896 Sat Sep 18 10:13:18 1993 Jim Kingdon (kingdon@poseidon.cygnus.com)
1897
1898 * mipsread.c (parse_type): Don't complain() if we guessed struct
1899 and it was a union, or vice versa.
1900
1901 * defs.h (make_cleanup): Change PTR to void * when inside PARAMS.
1902
1903 Some of the following is in #ifdef CALL_DUMMY_BREAKPOINT_OFFSET.
1904 * breakpoint.h (enum bptype): Add bp_call_dummy.
1905 (struct bpstat_what): Add call_dummy field.
1906 * infrun.c (wait_for_inferior): Deal with it.
1907 * breakpoint.c (bpstat_what): Deal with call dummy breakpoint.
1908 * infcmd.c (run_stack_dummy): Set the call dummy breakpoint.
1909 * config/sparc/tm-sparc.h: Define CALL_DUMMY_BREAKPOINT_OFFSET.
1910
1911 * remote-sim.h: New file.
1912 * remote-sim.c: Add remote debug feature. Rename stuff to distinguish
1913 interface to simulator from gdb-specific stuff. Other changes.
1914 start-sanitize-v9
1915 * remote-sp64sim.c: Renamed to remote-sim.c.
1916 Use sr_get_debug instead of our own sim_verbose/simif_snoop.
1917 Use gnutarget in call to bfd_openr.
1918 Rename simif_* to gdbsim_*.
1919 * config/sparc/sp64sim.mt: Change remote-sp64sim.c to remote-sim.c.
1920 end-sanitize-v9
1921
1922 Fri Sep 17 04:41:17 1993 Peter Schauer (pes@regent.e-technik.tu-muenchen.de)
1923
1924 * findvar.c (extract_signed_integer): Cast *p to LONGEST before doing
1925 the xor and subtract. Otherwise it will not sign extend if the type
1926 of LONGEST is larger than int.
1927 * cp-valprint.c (cp_print_class_method): Inhibit core dump if
1928 domain is an undefined cross reference.
1929 * valops.c (call_function_by_hand): Set real_pc to correct
1930 value if CALL_DUMMY_LOCATION != ON_STACK.
1931
1932 Thu Sep 16 20:37:06 1993 Jim Kingdon (kingdon@cirdan.cygnus.com)
1933
1934 * config/a29k/tm-a29k.h (FRAME_CHAIN): If rsize is zero, return zero.
1935
1936 Thu Sep 16 13:16:22 1993 Stu Grossman (grossman at cygnus.com)
1937
1938 * infrun.c (wait_for_inferior): Allow user to single step within
1939 a stack dummy.
1940
1941 Thu Sep 16 12:34:01 1993 Jim Kingdon (kingdon@cirdan.cygnus.com)
1942
1943 * dbxread.c (copy_pending): Deal with END NULL.
1944 (process_one_symbol): Add comments about what common_block NULL means.
1945
1946 Wed Sep 15 14:50:26 1993 Jim Kingdon (kingdon@cirdan.cygnus.com)
1947
1948 * remote-udi.c, remote-adapt.c, remote-mm.c: Move processor_type
1949 to tm-a29k.h and a29k-tdep.c and make it an enum.
1950 * a29k-tdep.c (a29k_get_processor_type): New function. Fix many
1951 aspects of how we detected the processor type.
1952 * remote-udi.c, remote-adapt.c, remote-mm.c (*_open): Call it
1953 rather than figuring out the type ourselves.
1954
1955 Thu Sep 16 12:12:59 1993 Stu Grossman (grossman at cygnus.com)
1956
1957 * sparc-stub.c (_trap_low): Do restore/save sequence after
1958 setting sp to ensure that we load the previous window from the
1959 right place on the stack.
1960
1961 Thu Sep 16 00:36:32 1993 Peter Schauer (pes@regent.e-technik.tu-muenchen.de)
1962
1963 * mipsread.c: Many changes for alpha ecoff format:
1964 Correct sizeof(int) == sizeof(long) assumptions.
1965 Replace stParsed hack by putting the parsed types on the pending chain.
1966 Replace mips specific ecoff mapping by ECOFF_REG_TO_REGNUM macro,
1967 provide default for cross debugging.
1968 Swapping the symbol back is no longer needed as the symbol is not
1969 modified anymore.
1970 Add new alpha basic types, handle btTypedef, handle stStaticProc
1971 external symbols .
1972 Update and clean up cross_ref for alpha cc cross ref variations.
1973 Allocate types on the type_obstack to inhibit storage leaks.
1974 * config/mips/tm-mips.h (ECOFF_REG_TO_REGNUM): Define.
1975 * gdbtypes.c (recursive_dump_type): Dump TYPE_TAG_NAME if it is set.
1976
1977 Tue Sep 14 09:12:17 1993 Jim Kingdon (kingdon@cirdan.cygnus.com)
1978
1979 * stabsread.c (read_type): Process "s" (size) type attribute.
1980 If type is defined to another type, copy the type.
1981
1982 Tue Sep 14 18:37:17 1993 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
1983
1984 * config/i386/i386v4.mh (NATDEPFILES): Move exec.o from here...
1985 * config/i386/i386v4.mt (TDEPFILES): ...to here.
1986
1987 Tue Sep 14 12:21:49 1993 K. Richard Pixley (rich@sendai.cygnus.com)
1988
1989 * Makefile.in (remote_utils_h): add serial.h and target.h.
1990 (main.o, remote-es.o, remote-nindy.o, remote.o): remove target.h
1991 (already in remote_utils_h).
1992 (remote-utils.o): new rule.
1993
1994 * remote-utils.h: include serial.h.
1995
1996 * serial.h: ifdef protect from multiple inclusion.
1997
1998 * remote.c, remote-nindy.c, remote-mon.c, remote-es.c: include
1999 remote-utils.h.
2000
2001 * remote.c (remote_open), remote-nindy.c (nindy_open,
2002 nindy_files_info), remote-mon.c (general_open), remote-es.c
2003 (es1800_open): use remote-utils facilities for baud rate.
2004
2005 Tue Sep 14 09:12:17 1993 Jim Kingdon (kingdon@cirdan.cygnus.com)
2006
2007 * paread.c, coffread.c, elfread.c, dwarfread.c:
2008 Include <time.h> and <sys/types.h> before libbfd.h.
2009
2010 * paread.c: Define BYTES_IN_WORD before including aout/aout64.h.
2011
2012 * Makefile.in (a29k-tdep.o): Depend on $(defs_h).
2013 * config/a29k/tm-a29k.h (SAVED_PC_AFTER_CALL): Use gr122 not lr0
2014 if this is a transparent procedure.
2015
2016 Mon Sep 13 16:06:43 1993 Jim Kingdon (kingdon@cirdan.cygnus.com)
2017
2018 * remote.c: Define remote_debug to 0 and #if 0 baud_rate. Temporary
2019 hack so this file compiles again.
2020
2021 * remote-utils.c (gr_multi_scan): Cast return value from alloca.
2022 (gr_multi_scan): #if 0 never-reached return(-1).
2023
2024 * remote-udi.c (udi_wait): Return inferior_pid not 0.
2025
2026 Mon Sep 13 14:14:35 1993 K. Richard Pixley (rich@sendai.cygnus.com)
2027
2028 Collect some remote things into remote-utils.
2029 * remote-utils.[ch]: new files of functions collected from several
2030 different remote targets.
2031 * Makefile.in (REMOTE_O): add remote-utils.o.
2032 (dcache_h, remote_utils_h): new macros.
2033 (HFILES): add $(remote_utils_h).
2034 (ALLDEPFILES): add $(remote_utils_h).
2035 (dcache.o): new rule.
2036 (main.o, remote-bug.o): also depend on $(remote_utils_h).
2037 * target.h (remote_debug): extern moved to remote-utils.h.
2038 * target.c (find_default_run_target, find_core_target): initialize
2039 runable.
2040 (remote_debug): moved to remote-utils.c.
2041 (_initialize_targets): move declaration of user variable
2042 remotedebug to remote-utils.c.
2043 * remote-bug.c: include remote-utils.h rather than dcache.h.
2044 (bug_close, bug_write, bug_write_cr, desc, bug_dcache, timeout,
2045 dev_name, check_open, is_open, readchar, readchar_nofail,
2046 pollchar, expect, expect_prompt, get_hex_digit, get_hex_byte,
2047 get_hex_word, bug_kill, bug_detach, bug_create_inferior,
2048 multi-scan, bug_prepare_to_store, bug_fetch_word,
2049 bug_store_word, bug_files_info, bug_mourn, bug_com, bug_device,
2050 bug_speed): removed and replaced with facilities from
2051 remote-utils.[ch].
2052 (bug_read_inferior_memory): renamed to bug_read_memory.
2053 (bug_write_inferior_memory): renamed to bug_write_memory.
2054 (bug_xfer_inferior_memory): renamed to bug_xfer_memory.
2055 (get_word): comment out this unused function for now.
2056 (bug_settings, cpu_check_strings): new statics.
2057 (bug_open): rewritten to use gr_open.
2058 (_initialize_remote_bug): remove declarations of commands bug,
2059 device, speed.
2060 * main.c: include remote-utils.h.
2061 (baud_rate): removed to remote-utils.c.
2062 (main): handle baud rate settings using new facilities from
2063 remote-utils.
2064 * defs.h (baud_rate): removed extern.
2065
2066 m88110 support via bug-197 monitor.
2067 * remote-bug.c (get_reg_name, bug_fetch_register,
2068 bug_store_register): added m88110 extended register support.
2069 (wait_strings): added bug-197 prompt.
2070 (bug_wait): cope with bug-197 prompt.
2071 (start_load): cope with either bug-197 or bug-187 prompt.
2072
2073 Mon Sep 13 12:53:09 1993 Jim Kingdon (kingdon@cirdan.cygnus.com)
2074
2075 * inferior.h, infrun.c, thread.c, infcmd.c: Remove all uses of
2076 pc_changed. If it was ever set to a non-zero value, it was before
2077 GDB 2.8. It doesn't seem to have any useful function.
2078
2079 * defs.h: Don't define NORETURN (see comment).
2080
2081 Sat Sep 11 10:46:09 1993 Jim Kingdon (kingdon@poseidon.cygnus.com)
2082
2083 * m88k-nat.c (fill_gregset): Set r31 and sfip.
2084
2085 Thu Sep 9 10:18:29 1993 Jim Kingdon (kingdon@lioth.cygnus.com)
2086
2087 * remote-udi.c (udi_wait, case UDIStdinNeeded): Use a loop calling
2088 getchar() (terminated only on '\n') instead of scanf. Send the
2089 '\n' which terminates it to the remote system.
2090
2091 More gcc lint:
2092 * exec.c (ignore): Return 0.
2093 * stack.c (return_command): Fetch lazy value directly, not via
2094 VALUE_CONTENTS, to avoid "value computed is not used".
2095 * inflow.c (new_tty): Move osigttou inside #if.
2096
2097 * remote.c (remote_fetch_registers): If remote reply is short, just
2098 note that fact and keep going (reading extra registers as all bits 0).
2099 (remote_store_registers): Send number of registers that were found
2100 by remote_fetch_registers.
2101 * m68k-tdep.c, config/m68k/tm-m68k.h, config/m68k/tm-*.h: Remove
2102 HAVE_68881. Define CANNOT_STORE_REGISTER if ptrace() can't write
2103 floating registers.
2104 * config/m68k/{tm-m68k-nofp.h,m68k-nofp.mt,tm-m68k-fp.h,m68k-fp.mt}:
2105 Remove, replaced by {tm-m68k-em.h,m68k-em.mt}.
2106 * Makefile.in, configure.in: Change accordingly.
2107
2108 Thu Sep 9 04:59:03 1993 Peter Schauer (pes@regent.e-technik.tu-muenchen.de)
2109
2110 * mipsread.c (cross_ref): Allow SGI extended symbol types as cross
2111 reference targets.
2112 * symmisc.c (print_symbol): Use TYPE_TAG_NAME not TYPE_NAME to avoid
2113 printing of identities.
2114
2115 Wed Sep 8 19:18:27 1993 Jim Kingdon (kingdon@lioth.cygnus.com)
2116
2117 * breakpoint.c (breakpoint_1): Deal with step resume breakpoint.
2118
2119 Wed Sep 8 13:01:10 1993 K. Richard Pixley (rich@cygnus.com)
2120
2121 Gcc lint.
2122 * config/m88k/tm-m88k.h (frame_find_saved_regs): prototype.
2123 * config/h8300/tm-h8300.h (NUM_REGS): rewrite to avoid nested comment.
2124 * blockframe.c (get_prev_frame_info): initialize address.
2125 * breakpoint.c (bpstat_copy): initialize retval.
2126 (bpstat_stop_status): initialize value_is_zero.
2127 (bpstat_what): initialize bs_class.
2128 (breakpoint_1, mention): add do-nothing case for bp_step_resume.
2129 (break_command_1): initialize cond_end, addr_end, &
2130 canonical_strings_chain.
2131 (enable_breakpoint): initialize save_selected_frame.
2132 * buildsym.c (end_symtab): initialize symtab & linetablesize.
2133 * c-exp.y (parse_number): initialize i.
2134 * c-typeprint.c (c_type_print_varspec_prefix): include
2135 TYPE_CODE_BITSTRING in switch statements and do nothing.
2136 * c-valprint.c (c_val_print): removed unused variable c.
2137 * ch-valprint.c (chill_val_print): removed unused variable eltlen.
2138 * cp-valprint.c (cp_print_class_method): initialize f & j.
2139 * eval.c (evaluate_subexp): initialize pc2, arg1, arg2.
2140 * expprint.c (print_subexp): initialize myprec, assoc, & tempstr.
2141 * findvar.c (value_from_register): initialize first_addr.
2142 * gdbtypes.c (lookup_struct_elt_type): localize use of temporary
2143 variable typename.
2144 * infcmd.c (run_stack_dummy): return zero rather than simple
2145 return.
2146 * infrun.c (wait_for_inferior): initialize stop_sp, prologue_pc.
2147 remove symtab, appears unused.
2148 (restore_selected_frame): return 1.
2149 * mipsread.c (psymtab_to_symtab_1): initialize first_off.
2150 (fixup_sigtramp): initialize b0.
2151 * printcmd.c (do_examine): initialize val_type.
2152 (print_frame_args): initialize b.
2153 * ser-tcp.c (tcp_restore): comment out declaration. Appears
2154 unused.
2155 * ser-unix.c (hardwire_restore): comment out declaration. Appears
2156 unused.
2157 (hardwire_send_break): moved variable status into ifdef
2158 HAVE_SGTTY.
2159 (wait_for): moved variable numfds into ifdef HAVE_SGTTY.
2160 * serial.h: comment change only.
2161 * stabsread.c (rs6000_builtin_type): initialize rettype.
2162 (read_range_type): initialize nbits.
2163 * stack.c (print_frame_info): remove unused variable numargs.
2164 (parse_frame_specification): remove unused variables arg1, arg2,
2165 arg3.
2166 (return_command): initialize return_value.
2167 * symfile.c (cashier_psymtab): initialize pprev.
2168 * symtab.c (find_pc_psymbol): initialize best.
2169 (lookup_symbol): initialize s.
2170 (make_symbol_completion_list): initialize quote_pos.
2171 * thread.c: include command.h.
2172 (thread_info): static declaration removed; unused.
2173 (info_threads_command): fix == vs = typo.
2174 * typeprint.c (whatis_exp): initialize old_chain.
2175 * valprint.c (val_print_string): remove unused variable
2176 first_addr_err. Initialize old_chain.
2177 (_initialize_valprint): white space comment change.
2178 * values.c (show_values): rewrite if statement to avoid empty
2179 body.
2180 (vb_match): remove unused variable fieldtype_target_type.
2181
2182 Wed Sep 8 10:21:33 1993 Jim Kingdon (kingdon@lioth.cygnus.com)
2183
2184 * Makefile.in (mipsread.o): Depend on $(bfd_h).
2185
2186 Tue Sep 7 13:06:44 1993 Jim Kingdon (kingdon@lioth.cygnus.com)
2187
2188 * gdbserver/Makefile.in (TAGS): config files are in
2189 $(srcdir)/../config, not $(srcdir)/config.
2190
2191 * config/pa/tm-hppa.h: Declare target_read_pc and target_write_pc.
2192 (STORE_RETURN_VALUE): Pass the correct offset of the return
2193 register to write_register_bytes.
2194 * hppa-tdep.c: Use target_write_pc if PCOQ_TAIL_REGNUM was not saved.
2195
2196 Tue Sep 7 14:30:34 1993 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
2197
2198 * remote.c (remote_wait): Don't call error. Instead, call warning
2199 inside a loop. User can ^C to get out.
2200
2201 * config/m68k/tm-m68k.h (FIX_CALL_DUMMY): Changed name of swapping
2202 routine to match BFD name change.
2203 * config/z8k/tm-z8k.h (FIX_CALL_DUMMY): Likewise.
2204
2205 Mon Sep 6 15:01:57 1993 Jeffrey Wheat (cassidy@cygnus.com)
2206
2207 * elfread.c: change elf32_symbol_type to elf_symbol_type
2208
2209 Mon Sep 6 15:43:25 1993 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
2210
2211 * remote.c (remote_wait): Added 'W' and 'N' responses.
2212
2213 Fri Sep 3 08:57:10 1993 Jim Kingdon (kingdon@lioth.cygnus.com)
2214
2215 * main.c, utils.c: Add comments about immediate_quit.
2216
2217 * elfread.c (elf_symtab_read): Don't add symbols starting with ".L"
2218 to minimal symbols.
2219
2220 * target.c (pop_target): Don't try to deal with the stack becoming
2221 empty. Shouldn't happen and the code that tried was broken.
2222
2223 * dcache.c: Cast return value from xmalloc.
2224
2225 * remote.c: Move setting of immediate_quit from remote_open to
2226 remote_start_dummy and set it back to zero when done.
2227
2228 Thu Sep 2 00:07:36 1993 Jim Kingdon (kingdon@lioth.cygnus.com)
2229
2230 * m88k-tdep.c: Remove a bunch of unused #includes.
2231
2232 * language.h: Add comment about current_language.
2233
2234 * mips-tdep.c (_initialize_mips_tdep): Change heuristic-fence-post
2235 from var_uinteger to var_zinteger.
2236
2237 * configure.in: Fix typo (delta88r4 -> delta88v4).
2238
2239 * config/m88k/xm-delta88.h: Don't include sys/siginfo.h. It was
2240 to make this work on SVR4 before SVR4 had its own configuration,
2241 and it breaks SVR3.
2242
2243 * config/m88k/tm-delta88v4.h: Define FRAME_CHAIN_VALID_ALTERNATE.
2244
2245 * config/m88k/delta88v4.h (NATDEPFILES): Remove infptrace.o inftarg.o.
2246
2247 * config/m88k/xm-dgux.h: Renamed from config/m88k/xm-m88k.h.
2248 * config/m88k/m88k.mh: Use xm-dgux.h.
2249 * config/m88k/xm-m88k.h: New file, with HOST_BYTE_ORDER,
2250 MAKEVA_END and MAKEVA_ARG.
2251 * config/m88k/xm-*.h: Include m88k/xm-m88k.h.
2252 * printcmd.c: Remove __INT_VARARGS_H code; now in xm-m88k.h.
2253
2254 Wed Sep 1 19:31:28 1993 Jim Kingdon (kingdon@lioth.cygnus.com)
2255
2256 * remote-udi.c (udi_wait): Call `warning' not `error'.
2257
2258 * symtab.c (COMPLETION_LIST_ADD_SYMBOL): If the symbol has a
2259 demangling, don't put the mangled form in the completion list.
2260
2261 * symtab.c, symfile.c, c-exp.y, ch-exp.y, m2-exp.y, buildsym.c,
2262 symfile.h, stabsread.c, minsyms.c, solib.c, nlmread.c, dwarfread.c
2263 partial-stab.h, symmisc.c, gdbtypes.c: Lint. Remove (or put
2264 inside #if) unused variables and labels. Fix unclosed comment.
2265 Deal with enumeration values unhandled in switch statements. Make
2266 sure non-void functions return values. Include appropriate
2267 headers.
2268 * dbxread.c (elfstab_build_psymtabs): Don't check for unsigned
2269 value < 0.
2270
2271 Wed Sep 1 14:36:00 1993 K. Richard Pixley (rich@sendai.cygnus.com)
2272
2273 * i960-tdep.c, ns32k-pinsn.c, remote-adapt.c, xcoffread.c:
2274 index -> strchr.
2275
2276 Wed Sep 1 11:35:49 1993 Jim Kingdon (kingdon@lioth.cygnus.com)
2277
2278 * remote.c: Add comment explaining why dcache is disabled.
2279 (remote_fetch_word, remote_store_word): Make static and #if 0.
2280 They are not called from anywhere.
2281
2282 Wed Sep 1 14:41:28 1993 K. Richard Pixley (rich@sendai.cygnus.com)
2283
2284 * arm-tdep.c, convex-tdep.c, convex-xdep.c, dbxread.c,
2285 h8300-tdep.c, h8500-tdep.c, i960-pinsn.c, i960-tdep.c,
2286 infptrace.c, m88k-tdep.c, mips-tdep.c, regex.c, remote-vx.c,
2287 rs6000-tdep.c, xcoffexec.c, xcoffread.c, z8k-tdep.c,
2288 config/arm/tm-arm.h, config/convex/tm-convex.h,
2289 config/gould/tm-np1.h, config/gould/tm-pn.h,
2290 config/m68k/tm-isi.h, config/ns32k/tm-umax.h,
2291 config/pa/tm-hppa.h, config/pyr/tm-pyr.h,
2292 config/rs6000/tm-rs6000.h, config/tahoe/tm-tahoe.h,
2293 config/vax/tm-vax.h: bzero -> memset.
2294
2295 * regex.c: bcmp -> memcmp.
2296
2297 Wed Sep 1 11:35:49 1993 Jim Kingdon (kingdon@lioth.cygnus.com)
2298
2299 * symtab.c (find_pc_line, find_line_common),
2300 symtab.h (struct linetable), xcoffread.c (arrange_linetable):
2301 Revise comments re linetable sorting.
2302 * buildsym.c (compare_line_numbers): Sort by pc, not by line.
2303 * coffread.c: Tell end_symtab to sort the line table.
2304
2305 * coffread.c: Re-work a lot of the coff-specific stuff to use stuff
2306 in buildsym.c. This includes coff_finish_block, coff_context_stack,
2307 coff_local_symbols, coff_file_symbols, coff_global_symbols,
2308 coff_end_symtab and coff_add_symbol_to_list.
2309 (read_enum_type): Deal with it now that we have a "struct pending"
2310 not a "struct coff_pending".
2311
2312 * buildsym.c (end_symtab): Don't realloc subfile->linetable.
2313
2314 Wed Sep 1 13:12:43 1993 K. Richard Pixley (rich@sendai.cygnus.com)
2315
2316 * a68v-nat.c, altos-xdep.c, convex-tdep.c, convex-xdep.c,
2317 findvar.c, hppab-nat.c, hppah-nat.c, i386mach-nat.c,
2318 irix4-nat.c, m68k-tdep.c, m88k-tdep.c, mipsread.c, regex.c,
2319 remote-bug.c, remote-hms.c, rs6000-nat.c, rs6000-tdep.c,
2320 sparc-nat.c, stabsread.c, sun3-nat.c, sun386-nat.c, symfile.c,
2321 umax-xdep.c, xcoffread.c, 29k-share/udi/udip2soc.c,
2322 29k-share/udi/udr.c, config/a29k/tm-a29k.h, config/arm/tm-arm.h,
2323 config/convex/tm-convex.h, config/gould/tm-np1.h,
2324 config/gould/tm-pn.h, config/h8300/tm-h8300.h,
2325 config/h8500/tm-h8500.h, config/i386/tm-i386aix.h,
2326 config/i386/tm-sun386.h, config/i386/tm-symmetry.h,
2327 config/i960/tm-i960.h, config/m68k/tm-news.h,
2328 config/m88k/tm-m88k.h, config/mips/tm-mips.h,
2329 config/ns32k/tm-merlin.h, config/ns32k/tm-umax.h,
2330 config/pa/tm-hppa.h, config/pyr/tm-pyr.h,
2331 config/rs6000/tm-rs6000.h, config/sh/tm-sh.h,
2332 config/tahoe/tm-tahoe.h, config/vax/tm-vax.h,
2333 config/z8k/tm-z8k.h, nindy-share/nindy.c: bcopy -> memcpy.
2334
2335 Wed Sep 1 05:05:53 1993 Peter Schauer (pes@regent.e-technik.tu-muenchen.de)
2336
2337 * mipsread.c (parse_partial_symbols): Use language from FDR if it
2338 is unambigous. Patch from ptf@delcam.co.uk (Paul Flinders).
2339 * mipsread.c (ecoff_symfile_info): New struct to hold the global
2340 pending_list.
2341 * mipsread.c (mipscoff_symfile_init, parse_partial_symbols):
2342 Allocate the global pending list and link it to the objfile.
2343 * mipsread.c (is_pending_symbol, add_pending): Use global pending
2344 list from objfile. Allocate pending list entries from the
2345 psymbol_obstack.
2346 * mipsread.c (free_pending): Remove. The pending list is now
2347 freed when the psymbol_obstack is freed.
2348 * mipsread.c (psymtab_to_symtab1): Remove pending list allocation,
2349 the global pending list is used now.
2350 * mipsread.c (parse_partial_symbols): Skip only the first
2351 file indirect entry when building the dependency list.
2352
2353 Tue Aug 31 15:01:27 1993 K. Richard Pixley (rich@sendai.cygnus.com)
2354
2355 Break dcache code out of remote.c.
2356 * dcache.h: white space changes only.
2357 * dcache.c: add user settable variable to set whether data caching
2358 is in use.
2359 * remote.c: include dcache.h. removed data caching code which is
2360 now in dcache.c. Compile in data caching again. (data caching
2361 is currently off by default.)
2362 (remote_read_bytes, remote_write_bytes): change second arg to
2363 unsigned char.
2364 (remote_dcache): new static variable.
2365 * Makefile.in (REMOTE_O): add dcache.o.
2366 * config/m88k/m88k.mt (TDEPFILES): removed dcache.o.
2367
2368 Break dcache code out of remote-nindy.c.
2369 * remote-nindy.c: removed dcache code. Changed callers to use new
2370 conventions. include dcache.h.
2371 (nindy_dcache): new static variable.
2372 * config/i960/nindy960.mt (TDEPFILES): added dcache.o.
2373
2374 Break dcache code out of remote-bug.c into dcache.[hc].
2375 * Makefile.in (dcache_h): new macro.
2376 (HFILES): added $(dcache_h).
2377 (ALLDEPFILES): added dcache.c.
2378 (dcache.o): new rule.
2379 (remote-bug.o): now depends on $(dcache_h).
2380 * remote-bug.c: include dcache.h. remove externs for insque and
2381 remque, add extern for bcopy. Prototype bug_close,
2382 bug_clear_breakpoints, bug_write_cr. dcache code moved to
2383 dcache.[hc]. Changed dcache calling convention to include an
2384 initial DCACHE argument.
2385 (bug_dcache): new static variable.
2386 (bug_read_inferior_memory): change second arg to
2387 unsigned char.
2388 * dcache.[ch]: new files.
2389 * config/m88k/m88k.mt (TDEPFILES): add dcache.o.
2390
2391 Tue Aug 31 10:33:13 1993 Jim Kingdon (kingdon@lioth.cygnus.com)
2392
2393 * c-typeprint.c (c_print_type_base): Treat show = 0 just like
2394 show < 0. The only case where we had been distinguishing is that
2395 show = 0 used to print "struct " or "enum " instead of
2396 "struct {...}" or "enum {...}" which seems clearly wrong.
2397
2398 Mon Aug 30 17:51:32 1993 K. Richard Pixley (rich@sendai.cygnus.com)
2399
2400 * configure.in: recognize m88110 as an m88k.
2401
2402 Mon Aug 30 16:07:59 1993 Jim Kingdon (kingdon@lioth.cygnus.com)
2403
2404 * valops.c (call_function_by_hand): If we discard cleanups, call
2405 bpstat_clear (&inf_status.stop_bpstat).
2406
2407 Mon Aug 30 12:47:46 1993 Peter Schauer (pes@regent.e-technik.tu-muenchen.de)
2408
2409 * stabsread.h, dbxread.c (end_psymtab): Return NULL if the psymtab
2410 was empty and thrown away.
2411 * mipsread.c (parse_partial_symbols): Do not add empty psymtabs to
2412 dependency list, skip self dependencies.
2413 * mipsread.c (parse_fdr): Removed, obsolete.
2414 * mipsread.c (parse_lines): Check for cbLine being zero, not
2415 cbLineOffset.
2416 * mipsread.c (struct symloc): Add pst_language.
2417 * mipsread.c (parse_partial_symbols): Set up proper language for
2418 header files, save it in pst_language for psymtab_to_symtab_1.
2419 * mipsread.c (psymtab_to_symtab_1): Use pst_language.
2420
2421 Mon Aug 30 10:48:06 1993 Jim Kingdon (kingdon@lioth.cygnus.com)
2422
2423 * configure.in: Fix typo m88*-motorola-svr4* -> sysv4*.
2424
2425 Fri Aug 27 17:09:19 1993 Ken Raeburn (raeburn@cambridge.cygnus.com)
2426
2427 * paread.c: Include som.h instead of libhppa.h. (From Utah.)
2428
2429 Fri Aug 27 09:30:40 1993 Jim Kingdon (kingdon@deneb.cygnus.com)
2430
2431 * symmisc.c (dump_symtab): Use catch_errors around print_symbol.
2432 Change calling sequence of print_symbol to fit catch_errors.
2433
2434 * mips-tdep.c: Call reinit_frame_cache every time the user does
2435 "set heuristic-fence-post".
2436
2437 * gdbserver/low-sun3.c: New file.
2438 * gdbserver/Makefile.in, config/m68k/sun3.mh: Change accordingly.
2439
2440 * Rename files for 14-character limits:
2441 gdbserver/remote-gutils.c -> gdbserver/utils.c
2442 gdbserver/remote-inflow.c -> gdbserver/low-lynx.c
2443 gdbserver/remote-inflow-sparc.c -> gdbserver/low-sparc.c
2444 gdbserver/remote-server.c -> gdbserver/server.c
2445 remote-monitor.c -> remote-mon.c
2446 * Makefile.in, gdbserver/Makefile.in, gdbserver/configure.in,
2447 config/m68k/monitor.mt, config/i386/i386lynx.mh,
2448 config/sparc/sun4os4.mh: Change accordingly.
2449 * gdbserver/Makefile.in: Remove more junk inherited from gdb Makefile.
2450
2451 Thu Aug 26 14:32:51 1993 Jim Kingdon (kingdon@lioth.cygnus.com)
2452
2453 * infcmd.c, inferior.h (run_stack_dummy): If we stop somewhere
2454 besides the dummy, return 1 rather than calling error().
2455 Let caller print the error message. Remove name argument.
2456 * valops.c (call_function_by_hand): Deal with changes to calling
2457 sequence of run_stack_dummy. Discard restore_inferior_status cleanup
2458 if run_stack_dummy returns 1.
2459
2460 * Version 4.10.2.
2461
2462 * config/mips/tm-mips.h (EXTRACT_STRUCT_VALUE_ADDRESS):
2463 Get struct return address from v0, not a0.
2464
2465 * infrun.c (restore_inferior_status): Use catch_errors when
2466 restoring selected frame.
2467
2468 Wed Aug 25 21:52:25 1993 Jim Kingdon (kingdon@lioth.cygnus.com)
2469
2470 * infrun.c (save_inferior_status, restore_inferior_status):
2471 Save and restore the registers too.
2472 * inferior.h (struct inferior_status): Add "registers".
2473
2474 Tue Aug 24 00:36:17 1993 Jim Kingdon (kingdon@lioth.cygnus.com)
2475
2476 * dbxread.c (end_psymtab): Clean up comment.
2477
2478 * frame.h, symtab.h, findvar.c (read_var_value): Change basereg
2479 support to use LOC_BASEREG rather than SYMBOL_BASEREG_VALID.
2480 * dwarfread.c: Use LOC_BASEREG where appropriate.
2481 * Various: Support LOC_BASEREG and LOC_BASEREG_ARG.
2482
2483 * coffread.c (init_lineno, init_stringtab): Don't check whether
2484 xmalloc returned NULL.
2485
2486 * config/vax/xm-vaxult.h: Define NO_PTRACE_H.
2487
2488 * target.c, target.h: Add "set remotedebug" command.
2489 * remote-bug.c, remote.c, remote-mips.c: Remove "set remotedebug" and
2490 "set m88ksnoop" options and use generic "set remotedebug" instead.
2491 * NEWS: Describe this change.
2492
2493 Mon Aug 23 20:26:22 1993 Jim Kingdon (kingdon@lioth.cygnus.com)
2494
2495 * buildsym.h: Remove declaration of dbxread.c functions.
2496 * stabsread.h: Group together dbxread.c functions.
2497 Move elfstab_build_psymtabs here from symfile.h.
2498 Declare pastab_build_psymtabs.
2499 * elfread.c, paread.c: Include stabsread.h (for stabsread_new_init
2500 declaration, etc).
2501
2502 Mon Aug 23 17:16:23 1993 K. Richard Pixley (rich@sendai.cygnus.com)
2503
2504 * remote-bug.c: rename quiet to bug88k_snoop.
2505 (double_scan, multi_scan): generalize double_scan into a scan
2506 for multiple patterns. Rename to multi_scan.
2507 (bug_wait, bug_write_inferior_memory): adapt to use the new
2508 multi_scan in order to catch and represent target bus errors.
2509 (bug_scan): currently unused, so comment out.
2510 (bug_quiet): removed. Replaced with a standard user settable boolean.
2511
2512 * m88k-tdep.c: remove include of sys/dir.h. Appears unnecessary
2513 and isn't available on solaris.
2514
2515 Mon Aug 23 14:56:42 1993 Jim Kingdon (kingdon@lioth.cygnus.com)
2516
2517 * config/m88k/{delta88v4.mt,delta88v4.mh}: New files
2518 * config/m88k/delta88.mh: Fix comment.
2519 * config/m88k/tm-delta88.h: Remove unused BCS define.
2520 * config/m88k/{tm-delta88v4.h,xm-delta88v4.h,nm-delta88v4.h}:
2521 New files.
2522 * configure.in: Recognize m88*-motorola-sysv4*.
2523 * m88k-nat.c: Always include sys/types.h; don't depend on USG.
2524
2525 Mon Aug 23 12:57:42 1993 Peter Schauer (pes@regent.e-technik.tu-muenchen.de)
2526
2527 * mipsread.c (parse_symbol, parse_type, cross_ref): Pass name of
2528 symbol as an argument and use it in complaints.
2529 * symmisc.c (dump_psymtab): Dump filenames of dependencies.
2530
2531 Mon Aug 23 1993 Sean Fagan (sef@cygnus.com)
2532 and Jim Kingdon (kingdon@cygnus.com)
2533
2534 Add NetBSD support:
2535 * configure.in: Recognize netbsd.
2536
2537 Fri Aug 20 14:01:39 1993 Jim Kingdon (kingdon@lioth.cygnus.com)
2538
2539 * remote-nindy.c: Remove unused include of sys/ioctl.h.
2540
2541 * frame.h, symtab.h: Revise comments regarding baseregs.
2542
2543 Fri Aug 20 15:07:05 1993 Peter Schauer (pes@regent.e-technik.tu-muenchen.de)
2544
2545 * mipsread.c (parse_partial_symbols, psymtab_to_symtab_1):
2546 Set language for psymtab and symtab.
2547 * mipsread.c (new_symbol): Set language and initialize demangled
2548 name for symbol.
2549 * symmisc.c (print_symbol): Use SYMBOL_SOURCE_NAME when printing
2550 the symbol type.
2551 * symtab.c (decode_line_1): Inhibit coredumps with cfront executables.
2552
2553 Fri Aug 20 14:01:39 1993 Jim Kingdon (kingdon@lioth.cygnus.com)
2554
2555 * Move KERNEL_U_ADDR from xm-hp300bsd.h to nm-hp300bsd.h and make
2556 it conditionalized on 4.3 vs. 4.4.
2557 * config/m68k/nm-hp300bsd.h: Move REGISTER_U_ADDR out of 4.3 and
2558 4.4 sections; it was identical and now works for 4.4.
2559
2560 * mips-tdep.c (is_delayed): Use INSN*BRANCH* not ANY_DELAY.
2561
2562 * printcmd.c (MAKEVA_END): Update this version to use "aligner".
2563
2564 Thu Aug 19 22:08:09 1993 Peter Schauer (pes@regent.e-technik.tu-muenchen.de)
2565
2566 * config/vax/tm-vax.h (BELIEVE_PCC_PROMOTION): Define.
2567 * mipsread.c (parse_symbol, parse_type, cross_ref): Handle corrupt
2568 file indirect entries with complaints instead of core dumps. Remove
2569 complaint for stTypedef within aggregates.
2570
2571 Thu Aug 19 17:58:39 1993 Jim Kingdon (kingdon@lioth.cygnus.com)
2572
2573 * coffread.c (process_coff_symbol): Ignore tagnames like .0fake.
2574
2575 * coffread.c (coff_read_enum_type): #if 0 out code which changes
2576 enum {FALSE, TRUE} into boolean.
2577
2578 * config/m68k/delta68.m{t,h}: Use nm-delta68.h, etc. not
2579 non-existent files nm-delta.h, etc.
2580 * config/m68k/tm-delta68.h: Define CANNOT_STORE_REGISTER.
2581 * delta68-nat.c: Add "[0]" in offsetof argument.
2582 * delta68-nat.c (_initialize_kernel_u_addr): Don't try to set up
2583 nl with initializer, just assign to it. Check n_scnum field on
2584 return.
2585
2586 Wed Aug 18 12:03:00 1993 Jim Kingdon (kingdon@lioth.cygnus.com)
2587
2588 * printcmd.c (print_address), values.c (value_as_pointer): Don't
2589 use ADDR_BITS_REMOVE.
2590 * defs.h: Try to clarify comment about ADDR_BITS_REMOVE.
2591
2592 * blockframe.c (block_innermost_frame): Uncomment.
2593 Return NULL if passed NULL.
2594 * frame.h: Declare it.
2595 * expression.h (union exp_element): Add field block.
2596 * parse.c (write_exp_elt_block): New function.
2597 * expression.h (OP_VAR_VALUE): Now takes additional struct block *.
2598 * *-exp.y: Write block for OP_VAR_VALUE.
2599 * eval.c, expprint.c, parse.c: Deal with block for OP_VAR_VALUE.
2600 * valops.c, value.h (value_of_variable), callers:
2601 Add second argument, for block.
2602
2603 * main.c (gdb_readline): If we read some characters followed by EOF,
2604 return them rather than returning NULL.
2605
2606 Tue Aug 17 11:14:25 1993 Jim Kingdon (kingdon@lioth.cygnus.com)
2607
2608 * mips-tdep.c: Remove unused #ifndef NUMERIC_REG_NAMES and add comment.
2609
2610 Tue Aug 17 15:10:04 1993 K. Richard Pixley (rich@sendai.cygnus.com)
2611
2612 * config/m88k/tm-m88k.h: Fix typo in comment.
2613 (FP_REGNUM): define in terms of SP_REGNUM
2614 rather than by absolute number. Also clearly comment that this
2615 is a convenient lie in order to decrease future confusion.
2616 (ACTUAL_FP_REGNUM): new macro for FP.
2617 (FRAME_CHAIN_VALID): removed. Standard default works fine.
2618 * m88k-tdep.c (frame_chain_valid): redundant, so removed.
2619 (NEXT_PROLOGUE_INSN): removed unused fourth arg, fixed all
2620 callers.
2621 (read_next_frame_reg): declare static.
2622 (examine_prologue): removed unused variabel insn2, rename insn1
2623 to insn, rewrote comment about finding fp, sp, etc. set frame_fp
2624 based on ACTUAL_FP_REGNUM rather than FP_REGNUM which is
2625 actually a scammed alias for SP_REGNUM on m88k.
2626
2627 * frame.h: fixed typo in comment.
2628
2629 Tue Aug 17 11:14:25 1993 Jim Kingdon (kingdon@lioth.cygnus.com)
2630
2631 * 29k-share/udi/udiphcfg.h: Always include udiphunix.h not udiphdos.h.
2632
2633 * complaints.c (complain): fflush (stdout) after output.
2634
2635 Tue Aug 17 01:43:55 1993 Peter Schauer (pes@regent.e-technik.tu-muenchen.de)
2636
2637 * blockframe.c, frame.h (sigtramp_saved_pc): New routine to fetch
2638 the saved pc from sigcontext on the stack for BSD signal handling.
2639 * config/i386/tm-i386bsd.h (SIGTRAMP_START, SIGTRAMP_END, FRAME_CHAIN,
2640 FRAMELESS_FUNCTION_INVOCATION, FRAME_SAVED_PC, SIGCONTEXT_PC_OFFSET):
2641 Define to make backtracing through sigtramp work.
2642 * config/vax/tm-vax.h (SIGTRAMP_START, SIGTRAMP_END, TARGET_UPAGES,
2643 FRAME_SAVED_PC, SIGCONTEXT_PC_OFFSET): Ditto.
2644
2645 Mon Aug 16 13:52:14 1993 Jim Kingdon (kingdon@lioth.cygnus.com)
2646
2647 * main.c (cd_command): If current_directory on entry is "/", then
2648 don't append an extra slash.
2649 Don't assume that /../.. means /.
2650
2651 * target.c (target_xfer_memory): Clear errno before calling
2652 to_xfer_memory.
2653
2654 * stack.c (frame_info, print_frame_info): Add comment about using
2655 the starting source line number on a line boundary if backtracing
2656 through sigtramp.
2657
2658 Mon Aug 16 02:56:01 1993 Peter Schauer (pes@regent.e-technik.tu-muenchen.de)
2659
2660 * blockframe.c (create_new_frame, get_prev_frame_info):
2661 Use the function name when calling IN_SIGTRAMP.
2662 * config/m68k/tm-m68k.h (SIG_PC_FP_OFFSET, SIG_SP_FP_OFFSET):
2663 Define for correct handling of bachtraces through _sigtramp.
2664 * m68k-tdep.c (m68k_find_saved_regs): Adjust saved sp for fake
2665 sigtramp frames.
2666 * mipsread.c (parse_type): Handle corrupt TIR info with complaint
2667 instead of core dump.
2668 * mipsread.c (parse_partial_symbols): Put static symbols into the
2669 mimimal symbol table, use proper mst_types for all minimal symbols.
2670 * stack.c (frame_info, print_frame_info): Use the starting source
2671 line number on a line boundary if backtracing through sigtramp.
2672
2673 Fri Aug 13 14:37:05 1993 K. Richard Pixley (rich@sendai.cygnus.com)
2674
2675 * remote-bug.c: include gdbcmd.h.
2676 (sleep, remque, insque): forward decls added.
2677 (bug_fetch_registers, bug_store_registers): forward decls
2678 removed.
2679 (bug_read_inferior_memory, bug_write_inferior_memory): forward
2680 decls added.
2681 (srec_frame, srec_max_retries, srec_bytes, srec_echo_pace,
2682 srec_sleep, srec_noise): new static variables for user settable
2683 options. Mostly these are for debugging and tuning. I don't
2684 expect them to stay user settable options for long.
2685 (timeout): change default to 4 seconds.
2686 (check_open): declare funtion static, force return value.
2687 (readchar_nofail): if timeout, then say so if not being quiet.
2688 (pollchar, double_scan, bug_scan, bug_srec_write_cr,
2689 start_load): new functions.
2690 (bug_wait): rewritten to use double scan.
2691 (expect): while (1) -> for (;;)
2692 (get_hex_digit): rewrite if condition to avoid gcc complaints.
2693 (bug_load, bug_create_inferior, bug_open, bug_store_register):
2694 removed unused variables.
2695 (bug_load): replaced DELTA macro with user settable srec_frame
2696 variable. Other minor lint.
2697 (find_end_of_word, is_baudrate_right, set_rate, not_bug_wait,
2698 gethex, timed_read, translate_addr, bug_before_main_loop):
2699 unsused and removed.
2700 (bug_resume): add missing first arg, pid.
2701 (get_reg_name): use ip rather than cr04.
2702 (bug_write, bug_write_cr, but_clear_breakpoints, bug_quiet):
2703 declare type, args, and explicitly return.
2704 (bug_store_register): straighten out the ip vs cr04 confusion.
2705 (bug_write_inferior_memory): rewrite to cope with errors while
2706 downloading s-records.
2707 (bug_read_inferior_memory): declare static.
2708 (bug_clear_breakpoints): expect nobr before prompt.
2709 (_initialize_remote_bug): add initializations for srec-bytes,
2710 srec-max-retries, srec-frame, srec-noise, srec-sleep,
2711 srec-echo-pace.
2712
2713 * Makefile.in (remote-bug.o): new rule.
2714 (ALLDEPFILES): added remote-bug.c
2715
2716 * remote-hms.c (hms_wait): use -1 for timeout's which means block
2717 forever rather than 99999.
2718
2719 * ser-unix.c (get_tty_state): if a descriptor is not a tty, then
2720 simply save encode this fact as the process group and return
2721 success rather than an error.
2722 (set_tty_state): if process group is -1, do not reset the
2723 process group.
2724 (hardwire_reachar): comment change.
2725
2726 * serial.h: comment change.
2727
2728 * config/m88k/tm-m88k.h: comment change to remove embedded
2729 comment.
2730 (SKIP_PROLOGUE): skip_prologue returns a value which is expected
2731 to reset the pc argument. So reset it.
2732
2733 Fri Aug 13 10:15:24 1993 Fred Fish (fnf@deneb.cygnus.com)
2734
2735 * Makefile.in (VERSION): Bump to 4.10.1 after release and cvs
2736 tagging.
2737
2738 Thu Aug 12 20:40:14 1993 Jim Kingdon (kingdon@lioth.cygnus.com)
2739
2740 * gdbserver/Makefile.in: Use GDBSERVER_LIBS and
2741 GDBSERVER_DEPFILES. Also remove much (but not all that could be
2742 removed) crud inherited from gdb Makefile.in.
2743 * config/i386/i386lynx.mh, config/sparc/sun4os4.mh: Define GDBSERVER_*.
2744 * gdbserver/README: Say it works on Sun and change configuration
2745 instructions slightly.
2746
2747 Wed Aug 11 18:56:59 1993 david d `zoo' zuhn (zoo@rtl.cygnus.com)
2748
2749 * config/i386/i386v4.mh: use -lsocket and -lnsl, for remote
2750 targets that use BSD style network connections
2751
2752 Wed Aug 11 17:54:24 1993 Jim Kingdon (kingdon@lioth.cygnus.com)
2753
2754 * remote-{monitor,bug}.c: Make bug_ops not static (forward declaration
2755 of statics doesn't work with SunOS4 /bin/cc).
2756 Rename the occurrence in remote-monitor.c to monitor_bug_ops.
2757
2758 Tue Aug 10 13:07:14 1993 Jim Kingdon (kingdon@deneb.cygnus.com)
2759
2760 * blockframe.c (find_pc_partial_function),
2761 mips-tdep.c (find_proc_desc): Deal with "pathological" case.
2762
2763 Tue Aug 10 14:50:30 1993 Jim Kingdon (kingdon@lioth.cygnus.com)
2764
2765 * utils.c (wrap_here): Allow indent to be NULL.
2766 (fputs_filtered): Don't check for null wrap_indent (wrap_here now
2767 guarantees that it isn't, and anyway we were only checking one out
2768 of the two places we dereferenced it).
2769
2770 * objfiles.h (struct objfile): Clean up comments for
2771 {obj,sym}_private to clarify what they are private to.
2772
2773 Mon Aug 9 16:45:00 1993 Stan Shebs (shebs@rtl.cygnus.com)
2774
2775 * stabsread.c, buildsym.c (hashname): Moved function to
2776 buildsym.c, as suggested in the sources.
2777
2778 Mon Aug 9 09:53:45 1993 Jim Kingdon (kingdon@lioth.cygnus.com)
2779
2780 * remote-udi.c: Make udi_ops extern rather than trying forward
2781 declaration of a static variable.
2782
2783 * hppab-nat.c: Define ptrace to call_ptrace and pass the 5th arg
2784 there, rather than using an ANSI C specific macro.
2785
2786 * 29k-share/udi/udr.c: Include fcntl.h not sys/fcntl.h. Also put
2787 sys/types.h near the top (just on general principles).
2788
2789 * environ.c (set_in_environ): Remove G960BASE and G960BIN; they are
2790 no longer used.
2791
2792 * gdbcore.h: New variable gnutarget.
2793 * core.c: Add commands to set and show it.
2794 * Callers to bfd_*open*: Pass gnutarget instead of NULL as target.
2795 * environ.c (set_in_environ): For GNUTARGET, use set_gnutarget not
2796 putenv.
2797
2798 * symtab.c (decode_line_1): Give error on unmatched single quote.
2799
2800 Sun Aug 8 13:59:49 1993 Jim Kingdon (kingdon@lioth.cygnus.com)
2801
2802 * ser-unix.c (hardwire_send_break) [HAVE_SGTTY]: Use select not usleep.
2803
2804 * remote.c: Add comments about 'd', 'r', and unrecognized requests.
2805
2806 * inflow.c (terminal_init_inferior): Don't muck with tty state if
2807 gdb_has_a_terminal() is false.
2808
2809 Sun Aug 8 10:07:47 1993 Fred Fish (fnf@cygnus.com)
2810
2811 * dwarfread.c (record_minimal_symbol): Remove prototype and
2812 function.
2813 * dwarfread.c (add_partial_symbol): Remove code to add minimal
2814 symbols and remove comment about limitations. Experiments show
2815 that now that gdb handles the ELF symtab better for creating
2816 minimal symbols, that no additional information is added by
2817 examining the DWARF information, and in fact, given the
2818 limitations, the DWARF code was actually making things worse.
2819
2820 Sat Aug 7 10:59:03 1993 Fred Fish (fnf@deneb.cygnus.com)
2821
2822 * elfread.c (elf_symtab_read): Properly sort out the bss symbols
2823 from the data symbols and give them the correct minimal_symbol_type.
2824 Add file static symbols to the minimal symbol table, not just
2825 global symbols. Add absolute symbols as well (like _edata, _end).
2826 Redo stabs-in-elf special symbol handling now that file static
2827 symbols are entered into the into the minimal symbol table.
2828 * dwarfread.c (add_partial_symbol): Add comment about limitations
2829 of DWARF symbols for distinquishing data from bss when adding
2830 minimal symbols. Add file local symbols to minimal symbols.
2831
2832 Thu Aug 5 08:58:58 1993 Jim Kingdon (kingdon@lioth.cygnus.com)
2833
2834 * ser-go32.c: Define job_control variable.
2835
2836 Thu Aug 5 15:56:13 1993 david d `zoo' zuhn (zoo@rtl.cygnus.com)
2837
2838 * configure.in: z8k-coff is the same as z8k-sim
2839
2840 Thu Aug 5 08:58:58 1993 Jim Kingdon (kingdon@lioth.cygnus.com)
2841
2842 * 29k-share/udi/udip2soc.c: Include sys/types.h before sys/file.h.
2843
2844 * config/i386/tm-i386bsd.h (NUM_REGS): There are only 10, not 11.
2845
2846 * inflow.c: Put all uses of F_GETFL and F_SETFL in #ifdef F_GETFL.
2847
2848 * 29k-share/udi/udip2soc.c: Include fcntl.h not sys/fcntl.h.
2849
2850 Wed Aug 4 18:32:12 1993 Fred Fish (fnf@cygnus.com)
2851
2852 * inflow.c (pass_signal): Signal handlers take one int arg;
2853 supply an unused one to make it type compatible as an arg to
2854 signal().
2855
2856 Tue Aug 3 18:34:14 1993 Ian Lance Taylor (ian@cygnus.com)
2857
2858 * config/mips/tm-mips.h: Include bfd.h before coff/sym.h.
2859
2860 Tue Aug 3 15:34:57 1993 Fred Fish (fnf@cygnus.com)
2861
2862 * Makefile.in (ALLCONFIG): Add config/i386/i386nw.mt,
2863 config/m68k/delta68.mh, config/m68k/delta68.mt,
2864 config/m68k/dpx2.mh, config/m68k/dpx2.mt, config/mips/riscos.mh,
2865 config/mips/news-mips.mh.
2866 * Makefile.in (ALLPARAM): Add config/i386/nm-symmetry.h,
2867 config/i386/tm-i386nw.h, config/m68k/nm-delta68.h,
2868 config/m68k/tm-delta68.h, config/m68k/xm-delta68.h,
2869 config/m68k/nm-dpx2.h, config/m68k/tm-dpx2.h,
2870 config/m68k/xm-dpx2.h, config/mips/xm-makeva.h.
2871 * Makefile.in (ALLDEPFILES): Add dpx2-nat.c.
2872
2873 Tue Aug 3 12:02:09 1993 Ian Lance Taylor (ian@cygnus.com)
2874
2875 * mipsread.c: Updated for BFD ECOFF changes. Now gets the
2876 swapping routines and external structure sizes via the
2877 ecoff_backend information. No longer includes coff/mips.h.
2878
2879 Tue Aug 3 10:58:04 1993 Fred Fish (fnf@cygnus.com)
2880
2881 * Makefile.in (SFILES): Add thread.c
2882
2883 start-sanitize-v9
2884 Tue Aug 3 10:21:58 1993 Doug Evans (dje@canuck.cygnus.com)
2885
2886 * remote-sp64sim.c (simif_create_inferior): Add FIXME regarding
2887 sim_set_args return code.
2888 end-sanitize-v9
2889
2890 Mon Aug 2 16:35:31 1993 K. Richard Pixley (rich@sendai.cygnus.com)
2891
2892 * Makefile.in (VERSION): bumped to 4.9.4.
2893
2894 * remote-monitor.c: updated copyright.
2895 (bug_ops, monitor_desc): now static.
2896 (monitor_desc): in several places, check and/or set to NULL.
2897
2898 * remote-hms.c (hms_files_info): Add the appropriate items where
2899 missing in the printf call.
2900
2901 * remote-bug.c: new file for m88k bug support.
2902
2903 * config/m88k/m88k.mt (TDEPFILES): added remote-bug.o.
2904
2905 Mon Aug 2 14:22:09 1993 Steve Chamberlain (sac@phydeaux.cygnus.com)
2906
2907 * h8300-tdep.c: Use new variable h8300hmode.
2908
2909 Mon Aug 2 12:06:00 1993 Jim Kingdon (kingdon@lioth.cygnus.com)
2910
2911 * valops.c (typecmp): If we are passing a non-reference to a function
2912 which takes a reference, pass the address.
2913 (value_arg_coerce): Don't use COERCE_ENUM; we don't want to dereference
2914 references here.
2915
2916 * thread.c (thread_switch): Define as static.
2917 (add_thread): Cast return value from xmalloc.
2918
2919 * gdbtypes.c (fill_in_vptr_fieldno): Call check_stub_type.
2920 * gdbtypes.{c,h}: Improve comments on vptr_fieldno.
2921
2922 Mon Aug 2 11:58:52 1993 Fred Fish (fnf@deneb.cygnus.com)
2923
2924 * README: Elaborate on gdb C++ support and cfront support.
2925
2926 Mon Aug 2 11:30:57 1993 Stu Grossman (grossman at cygnus.com)
2927
2928 * i386lynx-nat.c, thread.c, thread.h: Update copyrights.
2929
2930 Mon Aug 2 12:06:00 1993 Jim Kingdon (kingdon@lioth.cygnus.com)
2931
2932 * Makefile.in (ALLDEPFILES): Add i386lynx-nat.c.
2933
2934 Mon Aug 2 08:42:50 1993 Stu Grossman (grossman at cygnus.com)
2935
2936 * gdbserver/remote-inflow.c (create_inferior): Fix comments, and
2937 error msg. Setup seperate process group for child.
2938 * (write_inferior_memory): Sleep for 1 second and retry on ptrace
2939 failure.
2940
2941 Sun Aug 1 22:58:18 1993 Stu Grossman (grossman at cygnus.com)
2942
2943 * config/i386/i386lynx.mh (NATDEPFILES): Drop coredep (for now).
2944 * config/i386/nm-i386bsd.h: Protect from multiple inclusion.
2945 * config/i386/nm-i386lynx.h: Lotsa new host porting stuff.
2946 * config/i386/tm-i386lynx.h: Define SAVED_PC_AFTER_CALL and
2947 target_pid_to_str.
2948
2949 * Makefile.in (CLIBS): Reorder to make Lynx ld happy.
2950 * (HFILES): New file thread.h.
2951 * (OBS): New file thread.c.
2952 * configure.in: Host config for Lynx/386.
2953 * fork-child.c (fork_inferior): Call init_thread_list().
2954 * infrun.c (resume): Add pid to invocation of target_resume().
2955 * (wait_for_inferior): Pay attention to pid from target_wait().
2956 Multi-threading code now uses this to determine what to do.
2957 * inftarg.c (child_wait): Conditionalize based on CHILD_WAIT macro.
2958 Use target_pid_to_str() macro throughout when printing pid.
2959 * inferior.h (child_resume): Add pid to prototype.
2960 * hppab-nat.c hppah-nat.c infptrace.c (child_resume): Pass in pid as
2961 argument, instead of using inferior_pid.
2962 * procfs.c (procfs_resume): Pass in pid as argument. Ignored for
2963 now. Use target_pid_to_str() macro throughout for printing process id.
2964 * remote-adapt.c (adapt_resume): Pass in pid as argument.
2965 * remote-eb.c (eb_resume): Pass in pid as argument.
2966 * remote-es.c (es1800_resume): Pass in pid as argument.
2967 * remote-hms.c (hms_resume): Pass in pid as argument.
2968 * remote-mips.c (mips_resume): Pass in pid as argument.
2969 * remote-mm.c (mm_resume): Pass in pid as argument.
2970 * remote-monitor.c (monitor_resume): Pass in pid as argument.
2971 * remote-nindy.c (nindy_resume): Pass in pid as argument.
2972 * remote-sa.sparc.c (remote_resume): Pass in pid as argument.
2973 * remote-sim.c (rem_resume): Pass in pid as argument.
2974 start-sanitize-v9
2975 * remote-sp64sim.c (simif_resume): Pass in pid as argument.
2976 end-sanitize-v9
2977 * remote-st.c (st2000_resume): Pass in pid as argument.
2978 * remote-udi.c (udi_resume): Pass in pid as argument.
2979 * remote-vx.c (vx_resume): Pass in pid as argument.
2980 * remote-z8k.c (rem_resume): Pass in pid as argument.
2981 * remote.c (remote_resume): Pass in pid as argument.
2982 * solib.c (solid_create_inferior_hook): Pass inferior_pid to
2983 target_resume().
2984 * target.c (normal_pid_to_str): New routine to print out process
2985 ID normally.
2986 * target.h (struct target_ops): Add pid to prototype at
2987 to_resume(). (target_resume): Add pid argument.
2988 * (target_pid_to_str): Default definition for normal type pids.
2989 * thread.h, thread.c: New modules for multi thread/process control.
2990
2991 Sun Aug 1 13:02:42 1993 John Gilmore (gnu@cygnus.com)
2992
2993 * README: Say that bug-gdb is also the place to send requests
2994 for help with GDB.
2995
2996 Sun Aug 1 09:42:13 1993 Fred Fish (fnf@cygnus.com)
2997
2998 * Makefile.in (make-proto-gdb-1): Use -f opt on rm of Makefile.
2999 * h8500-tdep.c: Add parens around a few macro args.
3000
3001 Fri Jul 30 15:43:49 1993 Jim Kingdon (kingdon@lioth.cygnus.com)
3002
3003 * TODO: Remove items about unix-to-unix/rapp debugging (now we
3004 have gdbserver), moving xm files to subdirectory, ptype yylval,
3005 and file-local symbols.
3006
3007 * gdbtypes.h: Improve comments about C++ methods.
3008
3009 Fri Jul 30 14:16:32 1993 Fred Fish (fnf@deneb.cygnus.com)
3010
3011 * c-exp.y: Add missing 5th arg for one call to lookup_symbol, cast
3012 NULL in all other calls to correct pointer types.
3013
3014 Fri Jul 30 15:43:49 1993 Jim Kingdon (kingdon@lioth.cygnus.com)
3015
3016 From Jeffrey Law:
3017 * tm-hppa.h (TARGET_WRITE_PC): Define.
3018 * hppa-tdep.c (hppa_fix_call_dummy): If in a syscall,
3019 then return the address of the dummy itself rather than
3020 the address of $$dyncall.
3021 (target_write_pc): New function to store a new PC.
3022
3023 Fri Jul 30 12:51:27 1993 Peter Schauer (pes@regent.e-technik.tu-muenchen.de)
3024 and Jim Kingdon (kingdon@cygnus.com)
3025
3026 * breakpoint.c (breakpoint_re_set_one): Always reparse breakpoint
3027 conditions, they might contain symbol table references.
3028
3029 Fri Jul 30 12:51:27 1993 Peter Schauer (pes@regent.e-technik.tu-muenchen.de)
3030
3031 * mipsread.c (parse_symbol): Handle opaque struct definitions and
3032 type naming for stTypedef symbols.
3033
3034 Fri Jul 30 14:44:21 1993 Jim Kingdon (kingdon@lioth.cygnus.com)
3035
3036 * c-exp.y (yylex): Detect C++ nested types.
3037
3038 start-sanitize-v9
3039 Fri Jul 30 11:07:37 1993 Doug Evans (dje@canuck.cygnus.com)
3040
3041 * sp64-tdep.c (sparc64_frame_chain, sparc64_frame_saved_pc): Deleted.
3042 (dump_ccreg, sparc_print_register_hook): New fns.
3043 * remote-sim.h: New file.
3044 * remote-sp64sim.h (sim_*): External fns. (simif_*): Internal fns.
3045
3046 * config/sparc/sp64.mt: New file.
3047 * config/sparc/tm-sp64.h (FRAME_CHAIN, FRAME_SAVED_PC): Deleted.
3048 (PRINT_REGISTER_HOOK): Call new fn sparc_print_register_hook.
3049 end-sanitize-v9
3050
3051 Fri Jul 30 10:15:01 1993 Fred Fish (fnf@deneb.cygnus.com)
3052
3053 * Makefile.in (ALLCONFIG): Add config/i386/ptx.mh
3054
3055 Fri Jul 30 08:58:01 1993 Jim Kingdon (kingdon@lioth.cygnus.com)
3056
3057 From J. Law:
3058 * infcmd.c (read_pc): Remove PA specific code.
3059 * tm-hppa.h (TARGET_READ_PC): Define.
3060 * hppa-tdep.c (target_read_pc): New function.
3061
3062 * symtab.c (gdb_mangle_name): Deal with it if type lacks a name.
3063
3064 Fri Jul 30 07:36:53 1993 Fred Fish (fnf@deneb.cygnus.com)
3065
3066 * NEWS: Add note that DEC alpha support is host only, not native.
3067 * README: Emphasize that C++ support works best with GNU C++ and
3068 stabs debugging format.
3069 * delta68-nat.c: Add missing FSF copyright.
3070
3071 Fri Jul 30 08:58:01 1993 Jim Kingdon (kingdon@lioth.cygnus.com)
3072
3073 * paread.c (pa_symtab_read): Put file-local symbols in minimal symbols.
3074 * hppa-tdep.c (frame_chain_valid): Check that our function has the
3075 same address as _start, not that it must be the same symbol.
3076
3077 Fri Jul 30 00:18:40 1993 Fred Fish (fnf@deneb.cygnus.com)
3078
3079 * Makefile.in (ALLDEPFILES): Add delta68-nat.c
3080 * Makefile.in (delta68-nat.o): Add dependency.
3081
3082 Thu Jul 29 12:09:46 1993 Jim Kingdon (kingdon@lioth.cygnus.com)
3083
3084 * value.h (COERCE_ENUM): Use COERCE_REF to coerce refs; value_ind
3085 was adequate in gdb 3.5 but not now.
3086
3087 * valops.c (typecmp): An array in t2 matches a pointer in t1.
3088
3089 * valops.c (typecmp): When comparing type1& to type2, compare
3090 type1 and type2 as leniently as if we were comparing type1 to
3091 type2.
3092
3093 * cp-valprint.c (cplus_print_value): Don't dump core if the
3094 baseclass doesn't have a name.
3095 * values.c (vb_match): New function, which finds the virtual
3096 base class pointer even if the types are nameless.
3097 (baseclass_{addr,offset}): Use it.
3098
3099 * hppa-tdep.c: Make "maintenance print unwind" command from old
3100 "unwind" command.
3101
3102 * remote-udi.c: Remove udi_timer, call to siginterrupt, and associated
3103 obsolete junk which apparently had been copied from the
3104 pre-serial.h remote.c, but which is no longer used.
3105
3106 Thu Jul 29 12:36:20 1993 Fred Fish (fnf@deneb.cygnus.com)
3107
3108 * Makefile.in (NONSRC): Need 29k-share/README, not
3109 29k-share/udi/README.
3110
3111 Thu Jul 29 12:09:46 1993 Jim Kingdon (kingdon@lioth.cygnus.com)
3112
3113 * paread.c (pa_symfile_init): If error reading string table, don't
3114 use errno in cases where it hasn't been set.
3115
3116 * ser-unix.c (gdb_setpgid): Pass our pid, not 0, to setpgid.
3117
3118 * remote-monitor.c (_initialize_monitor): Comment out use of
3119 connect_command, since connect_command itself is commented out.
3120
3121 * remote-monitor.c (generic_open): Parse arguments the same way
3122 as remote.c.
3123
3124 * hppa-tdep.c (pc_in_linker_stub): Fix unclosed comments.
3125
3126 Wed Jul 28 13:19:34 1993 Jim Kingdon (kingdon@lioth.cygnus.com)
3127
3128 * config/mips/xm-mips.h: Define HAVE_TERMIOS.
3129
3130 * dbxread.c (record_minimal_symbol): Don't put gcc_compiled or
3131 __gnu_compiled* symbols into the minimal symbols.
3132
3133 Wed Jul 28 08:26:58 1993 Ian Lance Taylor (ian@cygnus.com)
3134
3135 * remote-mips.c (_initialize_remote_mips): Added "timeout" and
3136 "retransmit-timeout" variables to set mips_receive_wait and
3137 mips_retransmit_wait, respectively.
3138
3139 Wed Jul 28 03:58:58 1993 (pes@regent.e-technik.tu-muenchen.de)
3140
3141 * symmisc.c (dump_msymbols): Handle new mst_file_* types.
3142
3143 Tue Jul 27 12:07:38 1993 Jim Kingdon (kingdon@lioth.cygnus.com)
3144
3145 * remote-udi.c: Remove old comment about download not implemented.
3146
3147 * serial.h, ser-{unix,go32,tcp}.c: Add flush_input and send_break.
3148 * nindy-share/*, remote-nindy.c: Extensive hacking to make it
3149 conform to GDB conventions like using memcpy not bcopy, serial.h,
3150 etc. This is to make it host on Solaris, AIX, etc.
3151 * Makefile.in: Reflect removed nindy-share files.
3152 * config/i960/nindy960.mt (TDEPFILES): Remove ttybreak.o.
3153
3154 * stack.c (print_frame_info): Revise comment about `pathological'
3155 case (there was a wrong FIXME about text labels; also asm() can
3156 trigger this as well as versions of ar which truncate .o names).
3157
3158 * buildsym.c (start_subfile): If a .c file includes a .C file, set
3159 the language of both of them to C++.
3160
3161 * config/sparc/xm-sun4os4.h: Define MEM_FNS_DECLARED and include
3162 <memory.h>.
3163 Include <malloc.h> rather than declaring malloc functions ourself.
3164
3165 * ser-unix.c (set_tty_state): Don't ignore errors setting process
3166 group.
3167 * inflow.c (terminal_inferior): If attach_flag set, ignore errors
3168 from set_tty_state.
3169
3170 * fork-child.c (fork_inferior): Only quote exec file if needed.
3171
3172 * mipsread.c (parse_symbol): Remove 21 Jul 93 change with
3173 stTypedef inside an stBlock.
3174
3175 Tue Jul 27 12:36:49 1993 Peter Schauer (pes@regent.e-technik.tu-muenchen.de)
3176
3177 * breakpoint.c (breakpoint_1): Walk the breakpoint chain to decide if
3178 we have breakpoints or watchpoints as we might have to ignore internal
3179 breakpoints.
3180
3181 Fix gdb core dumps after `file newfile' commands.
3182 * symtab.h, symfile.c (clear_symtab_users): New routine which
3183 unconditionally clears symtab users. clear_symtab_users_once
3184 commented out as it was a noop anyway.
3185 * objfiles.c (free_objfile): Don't call clear_symtab_users_once.
3186 * objfiles.c (free_all_objfiles), symfile.c (new_symfile_objfile),
3187 xcoffexec.c (exec_close): Call clear_symtab_users if necessary.
3188 * symfile.c (syms_from_objfile): Install cleanups for errors during
3189 symbol reading.
3190 * coffread.c, dbxread.c, mipsread.c, xcoffread.c (*_symfile_read):
3191 Lint cleanup code, call do_cleanups explicitly.
3192 * symfile.c (symbol_file_add): Call new_symfile_objfile and
3193 reinit_frame_cache _after_ the new symbols are read in.
3194
3195 Tue Jul 27 01:57:01 1993 Peter Schauer (pes@regent.e-technik.tu-muenchen.de)
3196
3197 * mipsread.c (parse_type): Do not set tag name for compiler
3198 generated fake tag names.
3199
3200 Mon Jul 26 17:31:49 1993 K. Richard Pixley (rich@rtl.cygnus.com)
3201
3202 * config/m88k/m88k.mt (TDEPFILES): add exec.o.
3203
3204 Mon Jul 26 13:17:36 1993 Jim Kingdon (kingdon@lioth.cygnus.com)
3205
3206 * hppa-tdep.c: Remove all uses of use_unwind and `set use_unwind'
3207 command. Now we use unwind info by default if we can find it.
3208
3209 * config/sparc: Move VARIABLES_INSIDE_BLOCK and SUN_FIXED_LBRAC_BUG
3210 to tm-sparc.h so they are shared between Solaris and SunOS4.
3211 * dbxread.c (process_one_symbol): Deal with SunOS4 acc N_STSYM and
3212 N_GSYM functions.
3213
3214 * config/pa/tm-hppa.h (REGISTER_NAMES): Use "fr" rather than "fp"
3215 for floating point registers.
3216
3217 * mipsread.c (parse_symbol): Put stStaticProc symbols in minimal
3218 symbols as mst_file_text.
3219
3220 * hppa-tdep.c (pc_in_linker_stub): Return 0 if can't read memory.
3221
3222 * stabsread.c (rs6000_builtin_type): Make logical types be
3223 TYPE_CODE_BOOL.
3224
3225 Sun Jul 25 23:41:48 1993 Jim Kingdon (kingdon@lioth.cygnus.com)
3226
3227 * breakpoint.{c,h} (struct breakpoint): Replace symtab field with
3228 source_file field.
3229
3230 Fri Jul 23 09:57:25 1993 Jim Kingdon (kingdon@deneb.cygnus.com)
3231
3232 * remote.c: Don't error() on errors xferring memory.
3233 * target.h: Clean up comments about *xfer_memory.
3234
3235 * exec.c, corelow.c (target_ops struct): Don't allow
3236 {insert,remove}_breakpoints to be defaulted to
3237 memory_{insert_remove}_breakpoint.
3238
3239 * demangle.c: Make it so `help set dem' tells you how to get the
3240 list of demangling styles.
3241
3242 Thu Jul 22 15:41:09 1993 Jim Kingdon (kingdon@deneb.cygnus.com)
3243
3244 * Makefile.in: Use REMOTE_O macro not remote.o.
3245 * config/i960/{nindy960,vxworks960}: Don't use remote.o.
3246
3247 Thu Jul 22 12:43:25 1993 Ian Lance Taylor (ian@cygnus.com)
3248
3249 * coredep.c: If NEED_SYS_CORE_H defined, include <sys/core.h>
3250 (can't include it in nm-*.h file because it causes conflicts with
3251 a.out symbol definitions).
3252 * hp300ux-nat.c (fetch_core_registers): Commented out; obsolete.
3253 * config/m68k/hp300hpux.mh (NATDEPFILES): Added coredep.o and
3254 corelow.o.
3255 * config/m68k/nm-hp300hpux.h (NEED_SYS_CORE_H): Defined.
3256 (REGISTER_U_ADDR): Defined.
3257 * config/m68k/xm-hp300hpux.h (HAVE_TERMIOS): Define instead of
3258 HAVE_TERMIO.
3259 * config/pa/xm-hppah.h: Likewise.
3260
3261 Wed Jul 21 11:37:30 1993 Jim Kingdon (kingdon@deneb.cygnus.com)
3262
3263 * mipsread.c (parse_symbol): when stTypedef and friends occur within
3264 an stBlock, skip over the fields of the inner one.
3265
3266 * mips-tdep.c (init_extra_frame_info): If in lenient prologue, call
3267 heuristic_proc_desc rather than just assuming registers not saved.
3268
3269 * Makefile.in (regex.o): Add dependency.
3270
3271 * hppa{b,h}-nat.c: Warning, not error, if can't access registers.
3272
3273 * config/pa/hppa{b,h}.h: Define ATTACH_DETACH.
3274
3275 Wed Jul 21 03:07:30 1993 Peter Schauer (pes@regent.e-technik.tu-muenchen.de)
3276
3277 * config/mips/xm-makeva.h: New file implements va_list alignment
3278 restrictions for mips hosts.
3279 * config/mips/{xm-irix3.h, xm-mips.h, xm-news-mips.h, xm-riscos.h}:
3280 Use it.
3281
3282 Wed Jul 21 00:11:05 1993 Peter Schauer (pes@regent.e-technik.tu-muenchen.de)
3283
3284 * mips-tdep.c (init_extra_frame_info): Do not check for
3285 mips_in_lenient_prologue if it is a dummy frame.
3286 * mipsread.c (fixup_sigtramp): Initialize pdr.adr, it is used by
3287 mips_in_lenient_prologue.
3288
3289 Tue Jul 20 12:53:47 1993 Jim Kingdon (kingdon@deneb.cygnus.com)
3290
3291 * mips-tdep.c (heuristic_proc_start): First time we print the
3292 warning, elaborate.
3293 (_initialize_mips_tdep): Improve docstring for `set heur'.
3294
3295 * config/rs6000/tm-rs6000.h: Remove call to insert_step_breakpoint.
3296
3297 * symtab.c (find_line_symtab): New function, to deal with multiple
3298 symtabs with the same name.
3299 (find_line_pc{,_range}): Use it.
3300 (find_pc_symtab): Add comment about overlapping symtabs.
3301
3302 Mon Jul 19 21:29:14 1993 Fred Fish (fnf@deneb.cygnus.com)
3303
3304 * Makefile.in (SFILES): Add nlmread.c.
3305 * Makefile.in (OBS): Add nlmread.o.
3306 * Makefile.in (nlmread.o): Add new target.
3307 * configure.in (i[34]86-*-netware): New configuration.
3308 * nlmread.c, config/i386/{i386nw.mt, tm-i386nw.h}: New files
3309 for NLM/NetWare support.
3310
3311 Mon Jul 19 11:48:57 1993 Jim Kingdon (kingdon@deneb.cygnus.com)
3312
3313 * symtab.h (enum minimal_symbol_type): Add mst_file_*.
3314 * partial-stab.h [DBXREAD_ONLY]: Record statics in miminal symbols.
3315 * dbxread.c (record_minimal_symbol): Deal with statics.
3316 * minsyms.c (lookup_minimal_symbol): Prefer externals to statics.
3317
3318 * config/i386/xm-i386sco.h: Define HAVE_TERMIOS.
3319
3320 * printcmd.c, config/pa/xm-pa.h, config/alpha/xm-alpha.h: Make it so
3321 arg_bytes field of makeva_list is always aligned.
3322 * config/pa/xm-pa.h: Make arglist_address a char *.
3323
3324 * ser-unix.c: Don't try to use job control with termio.
3325
3326 Sun Jul 18 23:11:28 1993 Peter Schauer (pes@regent.e-technik.tu-muenchen.de)
3327 and Jim Kingdon (kingdon@cygnus.com)
3328
3329 Make breakpoint_re_set_one work with overloaded member functions,
3330 `b 123' and `b foo' if foo is a static function.
3331 * symtab.c (decode_line_1, decode_line_2): New argument `canonical'
3332 to return canonical line specs if requested by the caller.
3333 * breakpoint.c, source.c, symtab.c, symtab.h: Change prototypes and
3334 callers accordingly.
3335 * symtab.c (build_canonical_line_spec): New helper function which
3336 constructs the canonical line spec.
3337 * breakpoint.c (break_command_1): Use canonical line spec instead
3338 of command string as addr_string if necessary.
3339 * source.c (line_info): Fix storage leak.
3340
3341 Sun Jul 18 15:22:45 1993 Jim Kingdon (kingdon@rtl.cygnus.com)
3342
3343 * infptrace.c: Split out define of PT_KILL; Sequent defines PT_KILL
3344 but not the others.
3345 * symm-tdep.c: Remove exec_file_command.
3346 [_SEQUENT_] (ptx_coff_regno_to_gdb, register_addr): New functions.
3347 A few miscellaneous cleanups.
3348 * symm-nat.c: Renamed from symm-xdep.c.
3349 * All symmetry dependent files: Many changes.
3350
3351 * mips-tdep.c (mips_skip_prologue): New argument lenient.
3352 Use read_memory_nobpt.
3353 (is_delayed, mips_in_lenient_prologue): New functions.
3354 (init_extra_frame_info): If in the prologue, don't use saved registers.
3355 * config/mips/tm-mips.h: Declare mips_skip_prologue.
3356
3357 * partial-stab.h (N_SO): Add the text offset to valu before, not after,
3358 passing it to END_PSYMTAB.
3359
3360 Fri Jul 16 18:48:52 1993 Jim Kingdon (kingdon@rtl.cygnus.com)
3361
3362 * symtab.c (find_pc_symtab): Call warning, not printf directly.
3363
3364 * solib.c (solib_add): Use x{re,m}alloc, not {re,m}alloc.
3365
3366 Fri Jul 16 09:56:42 1993 Ian Lance Taylor (ian@cygnus.com)
3367
3368 * mipsread.c: No longer need to undefine ZMAGIC.
3369
3370 Thu Jul 15 18:03:37 1993 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
3371
3372 * m88k-pinsn.c: Moved code into opcodes/m88k-dis.c.
3373 (print_insn): Now just calls print_insn_m88k.
3374
3375 Thu Jul 15 14:54:05 1993 Doug Evans (dje@canuck.cygnus.com)
3376
3377 * h8300-tdep.c (examine_prologue): Make prototype match definition.
3378
3379 Thu Jul 15 08:34:49 1993 Jim Kingdon (kingdon@lioth.cygnus.com)
3380
3381 * NEWS: Mention that remote.c now has a `load' operation.
3382
3383 * hppa-tdep.c (pc_in_linker_stub): New function.
3384 (find_proc_framesize): Return 0 for linker stubs.
3385 (rp_saved): Tell the caller where rp is saved.
3386 (frame_chain_valid): Return 1 for linker stubs.
3387 (frame_saved_pc): Use return value from rp_saved.
3388
3389 * stack.c (print_frame_info): When checking PC_IN_CALL_DUMMY,
3390 pass the sp relative to the frame in question, not the sp in the
3391 innermost frame.
3392
3393 Wed Jul 14 17:37:03 1993 Jim Kingdon (kingdon@lioth.cygnus.com)
3394
3395 * mipsread.c (parse_procedure): Take as argument the symtab to look
3396 the name up in. Look it up with mylookup_symbol, not lookup_symbol.
3397 (psymtab_to_symtab_1): For stabs, pass the symtab to parse_procedure.
3398
3399 * mipsread.c (mylookup_symbol): Use strcmp, not STREQ, as we have
3400 already checked the first characters.
3401
3402 Changes from Jeffrey Law:
3403 * printcmd.c (makeva_list): Use MAKEVA_EXTRA_INFO to define
3404 machine dependent fields in the makeva_list structure.
3405 (makeva_size): Allocate extra space to handle gaps made by
3406 alignment restrictions.
3407 * config/pa/xm-pa.h (MAKEVA_EXTRA_INFO): Define.
3408 (MAKEVA_START): Initialize arglist_address field.
3409 (MAKEVA_ARG): Always store arguments on natural alignment
3410 boundaries. Set arglist_address to the address right after
3411 the args.
3412 (MAKEVA_END): Simply return the value stored in arglist_address.
3413
3414 Wed Jul 14 13:51:54 1993 Jim Kingdon (kingdon@lioth.cygnus.com)
3415
3416 * ch-valprint.c (chill_val_print, case TYPE_CODE_STRING): Print
3417 address, not addr.
3418
3419 * hppah-nat.c (store_inferior_registers): Don't print i in cases
3420 where we aren't using it.
3421
3422 * a29k-tdep.c (get_saved_register): Fix typo.
3423
3424 Wed Jul 14 09:45:52 1993 Doug Evans (dje@canuck.cygnus.com)
3425
3426 * configure.in: Recognize h8300h (variant of h8300).
3427
3428 start-sanitize-v9
3429 Wed Jul 14 09:45:52 1993 Doug Evans (dje@canuck.cygnus.com)
3430
3431 * configure.in: Recognize sparc64-*-*.
3432 end-sanitize-v9
3433
3434 Tue Jul 13 14:03:48 1993 Jim Kingdon (kingdon@lioth.cygnus.com)
3435
3436 * stabsread.c (define_symbol): Make the caddr_t hack apply to `function
3437 returning foo' as well as `pointer to foo'.
3438
3439 * remote.c [REMOTE_BREAKPOINT]: Use for breakpoint insn if defined.
3440 * config/m68k/tm-m68k.h: Define it.
3441 * mem-break.c, breakpoint.c: Improve comments.
3442
3443 Tue Jul 13 13:35:31 1993 Frederic Pierresteguy (F.Pierresteguy@frcl.bull.fr)
3444
3445 * config/m68k/tm-dpx2.h: Replace "tm-68k.h" with "m68k/tm-m68k.h".
3446 * config/m68k/xm-dpx2.h: Define HAVE_TERMIOS not HAVE_TERMIO.
3447
3448 Tue Jul 13 11:50:38 1993 Doug Evans (dje@canuck.cygnus.com)
3449
3450 * gdbcore.h (read_memory_integer, read_memory_unsigned_integer):
3451 Make prototype match definition.
3452
3453 Tue Jul 13 11:15:15 1993 Fred Fish (fnf@cygnus.com)
3454
3455 * elfread.c: Remove notice about file still being under
3456 construction.
3457 * Makefile.in (ultra3-xdep.o, umax-xdep.o): Add missing ')'.
3458
3459 Mon Jul 12 17:46:35 1993 Jim Kingdon (kingdon@lioth.cygnus.com)
3460
3461 * a29k-tdep.c (read_register_stack): Make val static.
3462
3463 Mon Jul 12 14:10:48 1993 Doug Evans (dje@canuck.cygnus.com)
3464
3465 * config/h8300/tm-h8300.h (REGISTER_CONVERTIBLE): Change value to 0.
3466 (REGISTER_CONVERT_TO_VIRTUAL, REGISTER_CONVERT_TO_RAW): Move def'n to
3467 usual spot.
3468
3469 Mon Jul 12 11:29:44 1993 Jim Kingdon (kingdon@lioth.cygnus.com)
3470
3471 * c-valprint.c (c_val_print): Fix thinko with unspecified length
3472 arrays.
3473
3474 * hppa-tdep.c (find_proc_framesize): If there is a frame pointer,
3475 use it.
3476
3477 Sun Jul 11 19:35:05 1993 Jim Kingdon (kingdon@lioth.cygnus.com)
3478
3479 * symtab.c (decode_line_1): Use end of block to figure out whether
3480 val.end is in the same function, not minimal symbols.
3481
3482 * source.c (line_info): Add a few more wrap_here's.
3483
3484 * i386-tdep.c (i386_follow_jump): Do byteswapping where needed and
3485 don't make assumptions about sizes of host data types.
3486
3487 * blockframe.c, symtab.h (find_pc_partial_function): New arg endaddr.
3488 * infrun.c, breakpoint.c, printcmd.c: Change callers.
3489 * printcmd.c (containing_function_bounds): Remove.
3490 * printcmd.c (disassemble_command): Use find_pc_partial_function,
3491 not containing_function_bounds.
3492 * infcmd.c (step_1): Use find_pc_partial_function rather than
3493 trying to roll our own. Move check for a pc between SIGTRAMP_START and
3494 SIGTRAMP_END in find_pc_partial_function, not step_1.
3495
3496 * sparc-tdep.c (sparc_frame_chain, frame_saved_pc):
3497 Keep unswapped value in array of char, not REGISTER_TYPE.
3498 Use REGISTER_RAW_SIZE not sizeof (REGISTER_TYPE).
3499 (sparc_extract_struct_value_address): Use TARGET_PTR_BIT not
3500 sizeof (CORE_ADDR).
3501
3502 Thu Jul 1 15:50:05 1993 Frederic Pierresteguy (F.Pierresteguy@frcl.bull.fr)
3503
3504 * configure.in (m68*-bull-sysv*): added support for Bull dpx2.
3505 * config/m68k/{t,x,n}m-dpx2.h, dpx2-nat.c: New files.
3506 * config/m68k/dpx2.m{h,t}: New files.
3507
3508 Sun Jul 11 12:32:08 1993 Doug Evans (dje@canuck.cygnus.com)
3509
3510 * config/sparc/tm-sparc.h (PRINT_REGISTER_HOOK): Fix typo, add
3511 more parens around macro arg.
3512
3513 Sat Jul 10 09:54:17 1993 Jim Kingdon (kingdon@lioth.cygnus.com)
3514
3515 * infrun.c: Remove step_resume_{duplicate,shadow}. Replace
3516 step_resume_break_address with step_resume_breakpoint (now local
3517 to wait_for_inferior).
3518 ({insert,remove}_step_breakpoint): Remove.
3519 (wait_for_inferior): Set step resume break with
3520 set_momentary_breakpoint. Test hitting it with bpstat_stop_status
3521 and bpstat_what (stop_step_resume_break removed).
3522 * breakpoint.{h,c}, infrun.c: Return value from bpstat_what now struct
3523 which includes previous return value as main_action, and a step_resume
3524 bit.
3525 * breakpoint.c (delete_breakpoint): If breakpoint was inserted, and
3526 there is another breakpoint there, insert it.
3527 * infrun.c (wait_for_inferior): Rearrange the spaghetti a bit. Use
3528 a few more gotos.
3529 Various: Clean up and add comments.
3530
3531 * infrun.c [TDESC]: Remove remaining tdesc code (see ChangeLog
3532 for Wed Nov 13 16:45:13 1991).
3533
3534 Fri Jul 9 12:36:46 1993 Jim Kingdon (kingdon@lioth.cygnus.com)
3535
3536 * values.c, value.h (modify_field), callers: Make fieldval a LONGEST.
3537
3538 * h8300-tdep.c (NEXT_PROLOGUE_INSN): Make pword1 an INSN_WORD *
3539 not short *.
3540
3541 * findvar.c, defs.h
3542 ({extract,store}_{signed_integer,unsigned_integer,address}):
3543 New routines to replace SWAP_TARGET_AND_HOST.
3544 All over: All uses of SWAP_TARGET_AND_HOST on integers replaced.
3545
3546 * config/sparc/tm-sparc.h: Add comment suggesting that removing
3547 ins and locals from the registers array might clean things up.
3548
3549 * utils.c: Clean up comments about wrap buffer and wrap_here.
3550 * printcmd.c (printf_command): Call wrap_here before vprintf.
3551
3552 * mipsread.c (cross_ref): Set the name to unknown for "struct *" case.
3553 Patch from ptf@delcam.co.uk (Paul Flinders).
3554
3555 * a29k-tdep.c, findvar.c (get_saved_register): Fix byteswapping sins.
3556
3557 Fri Jul 9 09:47:02 1993 Peter Schauer (pes@regent.e-technik.tu-muenchen.de)
3558
3559 * defs.h, remote-eb.c (TM_FILE_OVERRIDE): Remove it.
3560 * mips-tdep.c (init_extra_frame_info): Set proper fci->frame if pc
3561 is at the start of the dummy code.
3562
3563 Thu Jul 8 14:48:54 1993 Jim Kingdon (kingdon@lioth.cygnus.com)
3564
3565 * sparc-tdep.c (sparc_push_dummy_frame): Skip all the do_save_insn
3566 stuff, just write the sp and fp.
3567 (sparc_pop_frame): Skip the do_restore_insn; we already restore
3568 the sp with the other out registers.
3569
3570 * hppa-tdep.c (hppa_push_arguments): Allocate enough space for
3571 arguments.
3572
3573 * hppa-tdep.c: Change _initialize_hppab_tdep to _initialize_hppa_tdep.
3574
3575 start-sanitize-v9
3576 Thu Jul 8 14:47:00 1993 Doug Evans (dje@canuck.cygnus.com)
3577
3578 * sparc-tdep.c (sparc_frame_chain): Handle sizeof (CORE_ADDR)
3579 != sizeof (REGISTER_TYPE).
3580 (frame_saved_pc): Ditto.
3581 end-sanitize-v9
3582
3583 Thu Jul 8 08:22:05 1993 Doug Evans (dje@canuck.cygnus.com)
3584
3585 * config/h8300/tm-h8300.h: (REGISTER_TYPES): Adjust for h8/300h.
3586 (REGISTER_RAW_SIZE): Ditto.
3587 (REGISTER_VIRTUAL_TYPE): Use builtin_type_unsigned_long for regs
3588 on the h8/300h (ints may still be 16 bits).
3589 (EXTRACT_RETURN_VALUE, STORE_RETURN_VALUE,
3590 EXTRACT_STRUCT_VALUE_ADDRESS): Add FIXME's for h8/300h. Some
3591 thought needed here.
3592
3593 * h8300-tdep.c (print_insn): Call print_insn_h8300h if h8/300h.
3594 (examine_prologue): reg_save_depth is 4 if h8/300h.
3595
3596 * findvar.c (read_register): Provide some support for 64 bit regs.
3597 (write_register): Ditto.
3598
3599 Wed Jul 7 14:30:00 1993 Jim Kingdon (kingdon@lioth.cygnus.com)
3600
3601 * config/mips/nm-riscos.h: machine/machparam.h is always the right
3602 place to look for BSD43_NBPG, not machine/vmparam.h
3603
3604 * infcmd.c (run_stack_dummy): New argument name.
3605 Change error message in (another) attempt to make it comprehensible.
3606 * valops.c (call_function_by_hand): Pass name to run_stack_dummy.
3607 * symtab.h: Declare demangle and asm_demangle since macros use them.
3608
3609 * eval.c (evaluate_subexp): Add comment about calling a member
3610 function of a variable in a register.
3611
3612 * expression.h: Clean up comment about string in STRUCT_STRUCT etc.
3613
3614 * config/{rs6000/tm-rs6000.h,sparc/tm-sparc.h,pyr/tm-pyr.h},
3615 inferior.h (PC_IN_CALL_DUMMY) [ON_STACK]: Add comments about stack
3616 frame tops and bottoms.
3617
3618 * frame.h, blockframe.c, stack.c, a29k-tdep.c,
3619 config/gould/tmp-{pn,np1}.h,
3620 config/{sparc/tm-sparc.h,pyr/tm-pyr.h,vax/tm-vax.h}: Remove field
3621 next_frame from struct frame_info. It has no purpose beyond
3622 ->next->frame and is an artifact from GDB 2.8.
3623
3624 Tue Jul 6 11:51:18 1993 Jim Kingdon (kingdon@lioth.cygnus.com)
3625
3626 * Makefile.in: Remove gdb before creating a new one.
3627 Update init.c atomically.
3628
3629 * Makefile.in (ALLPARAM): Add config/{alpha/xm-alpha.h,pa/xm-pa.h}.
3630 (ALLCONFIG): Add config/alpha/alpha-osf1.mh.
3631
3632 * infcmd.c (_initialize_infcmd): In docstring for "continue",
3633 describe argument as setting ignore count.
3634
3635 Sun Jul 4 15:04:47 1993 Doug Evans (dje@cygnus.com)
3636
3637 * h8300-tdep.c (examine_prologue): Fix call to
3638 read_memory_unsigned_integer.
3639
3640 Fri Jul 2 18:22:54 1993 Jim Kingdon (kingdon@lioth.cygnus.com)
3641
3642 * config/mips/{x,n}m-irix{3,4}.h: Make some definitions here
3643 rather than including xm-bigmips.h.
3644
3645 * eval.c (evaluate_subexp): Improve error messages for OP_TYPE and
3646 default cases.
3647
3648 * Makefile.in (distclean): Remove y.tab.h.
3649
3650 Fri Jul 2 14:55:48 1993 Peter Schauer (pes@regent.e-technik.tu-muenchen.de)
3651
3652 * exec.c (exec_file_command): Remove Mar 28 hack as BFD handles
3653 file updates properly now.
3654 * mipsread.c (mips_coff_new_init): Force reevaluation of sigtramp
3655 addresses if switching to a new symbol file.
3656 * dbxread.c (process_one_symbol): Avoid dereferencing NULL
3657 symbols that might be returned from define_symbol.
3658
3659 Fri Jul 2 13:33:12 1993 Steve Chamberlain (sac@phydeaux.cygnus.com)
3660
3661 New target macros for getting at the pc, sp and fp.
3662 * infcmd.c (read_pc, write_pc): Modify to use new macros.
3663 (read_sp, write_sp, read_fp, write_fp): New functions.
3664 * blockframe.c (reinit_frame_cache, get_prev_frame_info):
3665 Use new functions.
3666 * breakpoint.c (bpstat_alloc): ditto.
3667 * infrun.c (wait_for_inferior): ditto.
3668 * stack.c (print_frame_info): ditto.
3669 * valops (call_function_by_hand): ditto.
3670 * corelow.c (core_open): ditto.
3671 * h8500-tdep.c: (target_read_sp, target_write_sp, target_read_pc,
3672 target_write_pc, target_read_fp, target_write_fp): New functions.
3673 * inferior.h (read_sp, write_sp, read_fp, write_fp): Prototypes.
3674
3675 * config/alpha/xm-alpha.h: Add MAKEVA_END.
3676 * config/h8500/tm-h8500.h: Define new macros.
3677
3678 Fri Jul 2 13:51:04 1993 Ian Lance Taylor (ian@cygnus.com)
3679
3680 * configure.in (mipos-*-riscos*): New host and target; use riscos.
3681 * config/mips/nm-riscos.h: If BSD43_NBPG is not defined by
3682 vmparam.h, include machparam.h.
3683 (KERNEL_U_ADDR): Define to be BSD43_UADDR.
3684
3685 Fri Jul 2 13:39:48 1993 Jim Kingdon (kingdon@lioth.cygnus.com)
3686
3687 * c-exp.y (yylex): Give error if unmatched single quote.
3688
3689 * configure.in, config/m68k/*delta68*, delta68-nat.c: New port.
3690
3691 * Remove unused STACK_END_ADDR in the following files (in other
3692 files it is used for something): tm-mips.h, tm-sun2.h, tm-news.h,
3693 tm-a29k, tm-i386v.h, tm-hppa.h, tm-nindy960.h, tm-amix.h,
3694 tm-hp300hpux.h, tm-isi.h.
3695
3696 Thu Jul 1 09:51:27 1993 Jim Kingdon (kingdon@cygnus.com)
3697
3698 * config/mips/nm-riscos.h: Define NBPG and UPAGES.
3699 config/mips/xm-riscos.h: Include <sys/types.h>.
3700
3701 * ser-unix.c (hardwire_noflush_set_tty_state): Use an assignment,
3702 not an initializer, to copy the structure.
3703
3704 * gdbtypes.h (struct type): Add field tag_name.
3705 * gdbtypes.c (type_name_no_tag), c-typeprint.c (c_type_print_base):
3706 Use it.
3707 * {coff,dwarf,mips,stabs}read.c: Set it.
3708
3709 * xm-sysv4.h: Undefine HAVE_TERMIO.
3710
3711 * config/mips/nm-riscos.h: Remove unmatched #endif.
3712 Define FETCH_INFERIOR_REGISTERS.
3713 * config/mips/riscos.mh: Don't include coredep.o; mips-nat.o is enough.
3714 Fix misspelling of NAT_FILE.
3715 * mips-nat.c (fetch_core_registers): If KERNEL_U_ADDR is not defined,
3716 we can still process "modern" core files.
3717
3718 * ser-unix.c (hardwire_print_tty_state) [HAVE_TERMIOS]: Don't
3719 print c_line.
3720 (_initialize_ser_hardwire): Just check whether _POSIX_JOB_CONTROL
3721 is defined; don't care what it is defined to.
3722
3723 Wed Jun 30 20:06:46 1993 Jim Kingdon (kingdon@lioth.cygnus.com)
3724
3725 * config/vax/xm-vaxult2.h: Define FD_SET and FD_ZERO.
3726
3727 Tue Jun 29 11:02:58 1993 Jim Kingdon (kingdon@lioth.cygnus.com)
3728
3729 * inftarg.c: Remove unused include of terminal.h.
3730 * signals.h: Don't undefine signals anymore.
3731 * main.c: Use job_control from serial.h.
3732 * fork-child.c (fork_inferior): Use gdb_setpgid.
3733 * serial.h, ser-unix.c, ser-go32.c: Provide gdb_setpgid.
3734 * utils.c (quit): Use current_target->to_terminal_ours to figure
3735 out whether we care about lack of job control, rather than __GO32__.
3736 * utils.c: Include serial.h not terminal.h
3737 (quit): Use job_control not TIOCGPGRP.
3738 * terminal.h: Don't undefine TIOCGPGRP.
3739 * serial.h, ser-unix.c, ser-go32.c, ser-tcp.c: Add SERIAL_FLUSH_OUTPUT.
3740 * utils.c (quit): Use it.
3741 * serial.h: Add SERIAL_UN_FDOPEN.
3742 * utils.c (quit): Use it.
3743 * ser-unix.c: Add process group to ttystate.
3744 [HAVE_SGTTY]: Add tchars, ltchars, and lmode to ttystate.
3745 * inflow.c: Include serial.h not terminal.h.
3746 Use serial.h stuff to replace most of the maze of #ifdef's.
3747 * inflow.c, main.c, inferior.h: make gdb_has_a_terminal a function.
3748 * serial.h: Document SERIAL_SET_TTY_STATE as being immediate.
3749 * ser-unix.c: Use TIOCSETN not TIOCSETP so it is true.
3750 * serial.h, ser-unix.c, ser-go32.c, ser-tcp.c:
3751 Add SERIAL_PRINT_TTY_STATE, SERIAL_NOFLUSH_SET_TTY_STATE, and
3752 SERIAL_SET_PROCESS_GROUP.
3753 * inflow.c: Use them.
3754 * config/xm-svr4.h, config/rs6000/xm-rs6000.h, config/sparc/sun4os4.h:
3755 Define HAVE_TERMIOS.
3756 * Various: Remove all use of TIOC*_BROKEN.
3757
3758 Wed Jun 30 12:20:51 1993 Peter Schauer (pes@regent.e-technik.tu-muenchen.de)
3759
3760 * config/m68k/tm-sun3.h (BELIEVE_PCC_PROMOTION_TYPE): Define.
3761
3762 Tue Jun 29 13:44:41 1993 Peter Schauer (pes@regent.e-technik.tu-muenchen.de)
3763
3764 * target.h (target_detach): Turn macro into function.
3765 * target.c (target_detach): Define it, do deferred register stores
3766 before calling the real target function.
3767
3768 Tue Jun 29 13:15:42 1993 Peter Schauer (pes@regent.e-technik.tu-muenchen.de)
3769 and Jim Kingdon (kingdon@cygnus.com)
3770
3771 * symtab.h (BLOCK_SHOULD_SORT): Do not sort blocks corresponding to
3772 a function to avoid printing of function arguments in wrong order
3773 due to sorting.
3774 * symfile.c (compare_symbols): Remove code for sorting arguments
3775 as blocks containing arguments are no longer sorted.
3776 * symtab.c (lookup_block_symbol): Update comment accordingly.
3777
3778 Tue Jun 29 11:02:58 1993 Jim Kingdon (kingdon@lioth.cygnus.com)
3779
3780 * config/pa/tm-hppa.h: Remove unused ARGS_GROW_DOC.
3781 (REG_STRUCT_HAS_ADDR): Add comment.
3782
3783 * infrun.c (wait_for_inferior): Use find_pc_line not find_pc_symtab
3784 to check whether there is line number information.
3785
3786 Tue Jun 29 08:29:17 1993 david d `zoo' zuhn (zoo at cirdan.cygnus.com)
3787
3788 * remote-udi.c: Fix docstring so that it compiles.
3789
3790 * remote-mips.c, remote-nindy.c: move bfd.h before symfile.h
3791 (for file_ptr).
3792
3793 Tue Jun 29 09:11:27 1993 Jim Kingdon (kingdon@lioth.cygnus.com)
3794
3795 * dbxread.c (process_one_symbol): If we find a LOC_BLOCK where we
3796 don't expect it, change it to LOC_STATIC so at least we don't coredump.
3797
3798 * c-typeprint.c (c_type_print_base): Don't error() on invalid type.
3799
3800 * symtab.h: Add comments about line numbers.
3801 * source.c (identify_source_line): Fix off by one bug with line.
3802
3803 Mon Jun 28 10:09:08 1993 Jim Kingdon (kingdon@lioth.cygnus.com)
3804
3805 * printcmd.c (makeva*): New interface, for making a va_list.
3806 (printf_command): Use it.
3807 * config/m88k/xm-delta88.h: Remove VPRINTF define, not needed.
3808 * config/pa/xm-pa.h: New file.
3809 * config/pa/xm-hppa{b,h}.h: Include it.
3810
3811 * xcoffread.c: Remove obsolete NO_TYPEDEFS comment.
3812
3813 Sun Jun 27 08:54:55 1993 Peter Schauer (pes@regent.e-technik.tu-muenchen.de)
3814
3815 * valprint.c (val_print_type_code_int): Fix off by one error with
3816 eliminating leading zeroes for large little endian integers.
3817
3818 Sun Jun 27 08:58:56 1993 Jim Kingdon (kingdon@lioth.cygnus.com)
3819
3820 * config/mips/riscos.mh (CC): Use -systype sysv.
3821
3822 * ser-unix.c: Move #include of <sys/time.h> to HAVE_SGTTY section.
3823
3824 * Makefile.in (ALLPARAM): Add config/mips/{x,n}-{news-mips,riscos}.h.
3825
3826 Fri Jun 25 11:22:28 1993 Jim Kingdon (kingdon@lioth.cygnus.com)
3827
3828 * config/m68k/tm-m68k.h: Remove obsolete comment about duplicating
3829 CALL_DUMMY between different 68k machines.
3830
3831 Fri Jun 25 17:02:45 1993 Stu Grossman (grossman at cygnus.com)
3832
3833 * gdbserver/Makefile.in: Add dependancies on server.h.
3834 * gdbserver/remote-gutils.c: Remove lots of unused functions and
3835 variables.
3836 * gdbserver/remote-inflow.c: Remove lots of unused variables and
3837 #includes. Also, use PTRACE_* symbols instead of constants.
3838 (mywait): Surround calls to wait() with enable/disable_async_io()
3839 so that we can be interrupted from GDB while waiting for the
3840 child. Also, handle child exit more gracefully.
3841 * gdbserver/remote-server.c: Remove lots of unused variables.
3842 Move all extern defs into server.h. Redo main loop so that
3843 failure from getpkt() causes communications to be re-established.
3844 Fix 'k' command so that it restarts the child.
3845 * gdbserver/remote-utils.c: Remove lots of unloved vars and
3846 subrs. Move many extern decls into server.h. (remote_open): For
3847 tcp, seperate usage of proto fd from connected fd. Close proto
3848 fd after getting connection. (putpkt/getpkt): Pay attention to
3849 errors when reading/writing. Report these to the caller. New
3850 routines input_interrupt/enable_async_io/disable_async_io to make
3851 it possible to get an I/O interrupt when data arrives from the
3852 comm link.
3853 * serial.h: New file to contain common defs for all remote files.
3854
3855 Fri Jun 25 17:02:45 1993 Stu Grossman (grossman at cygnus.com)
3856
3857 * remote.c: Add arg names to prototypes, in a modest effort at
3858 clarification. Also add prototypes for some new functions.
3859 * (remote_wait): Better error reporting for 'T' responses.
3860 * ser-go32.c (strncasecmp): Make str1 & str2 be const.
3861 * (dos_async_init): Make usage message reflect requested port #.
3862 * ser-tcp.c (tcp_open): Terminate hostname properly to prevent
3863 random hostname lookup failures. Add nicer message for unknown
3864 host error. (wait_for): Wake up in case of exceptions. Also,
3865 restart select() if we got EINTR.
3866 * ser-unix.c (wait_for): Restart select() if we got EINTR.
3867 * serial.c: (serial_close): Clean up code.
3868
3869 Fri Jun 25 11:22:28 1993 Jim Kingdon (kingdon@lioth.cygnus.com)
3870
3871 * config/m68k/tm-m68k.h: Remove obsolete comment about duplicating
3872 CALL_DUMMY between different 68k machines.
3873
3874 Fri Jun 25 11:22:28 1993 Jim Kingdon (kingdon@lioth.cygnus.com)
3875
3876 * Makefile.in (*.tab.c): Use ./c-exp.tab.c not just c-exp.tab.c.
3877 Make comment explaining this comprehensible.
3878 (TAGFILES): Include ALLDEPFILES.
3879 (ALLDEPFILES): udi2soc.c and udr.c are in 29k-share/udi, not
3880 29k-share/udi/udi.
3881 (update-alldeps): Remove; obsolete.
3882
3883 * remote.c: Move comments regarding packets to top of file with the
3884 rest of the protocol comments.
3885 Fix incorrect description of 'T' response.
3886
3887 * README (Reporting Bugs): Refer people to the GDB manual.
3888
3889 * c-valprint.c (c_val_print): Handle TYPE_CODE_BOOLEAN.
3890 * stabsread.c: Type -16 is 4 bytes.
3891
3892 * remote-udi.c: Improve docstring.
3893
3894 Fri Jun 25 11:16:31 1993 Fred Fish (fnf@cygnus.com)
3895
3896 * elfread.c (elf_symfile_read): Call bfd_elf_find_section, not
3897 bfd_elf32_find_section, to track bfd changes.
3898
3899 Fri Jun 25 11:22:28 1993 Jim Kingdon (kingdon@lioth.cygnus.com)
3900
3901 * config/mips/riscos.mh (REGEX{,1}, MUNCH_DEFINE, MH_CFLAGS): Define.
3902 * config/mips/xm-riscos.h: Define USG.
3903
3904 Thu Jun 24 14:52:45 1993 Jim Kingdon (kingdon@lioth.cygnus.com)
3905
3906 * main.c (filename_completer): Don't complete to files ending in ~.
3907
3908 * NEWS: Mention filename completion and "info line" enhancements.
3909
3910 * main.c (symbol_completion_function): On "info t foo", return NULL,
3911 don't error().
3912
3913 * main.c (symbol_completion_function): Don't use readline word
3914 breaking. Use new calling convention for c->completer and
3915 complete_on_cmdlist.
3916 * command.h (struct command): Change arguments; now the text passed
3917 to completer does not have any word breaking done. New arg word.
3918 * symtab.{c,h} (make_symbol_completion_list): Do word breaking. Take
3919 word argument.
3920 * {main.c,gdbcmd.h} ({filename,noop}_completer): Take word argument.
3921 * command.{c,h} (complete_on_cmdlist): Take word argument.
3922
3923 * command.c (lookup_cmd_1): Doc fix.
3924
3925 Thu Jun 24 13:26:04 1993 K. Richard Pixley (rich@sendai.cygnus.com)
3926
3927 * Makefile.in (OP_INCLUDE): define.
3928 (OPCODE_CFLAGS): use OP_INCLUDE.
3929
3930 * config/i386/ncr3000.mh, config/i386/i386v4.mh,
3931 config/i386/i386sol2.mh, config/m68k/hp300hpux.mh,
3932 config/m68k/amix.mh, config/mips/irix[34].mh,
3933 config/m88k/delta88.mh, config/sparc/sun4sol2.mh (ALLOCA,
3934 ALLOCA1): macros removed.
3935
3936 * config/mips/decstation.mh, config/rs6000/rs6000.mh
3937 (MMALLOC_LIB): renamed to MMALLOC.
3938
3939 Wed Jun 23 00:25:58 1993 Jim Kingdon (kingdon@lioth.cygnus.com)
3940
3941 * partial-stab.h: Consolidate case statements for N_LSYM and N_FUN.
3942 * dbxread.c: Change comment regarding acc.
3943
3944 Wed Jun 23 15:04:54 1993 K. Richard Pixley (rich@sendai.cygnus.com)
3945
3946 Makefile overhaul dropping autodepend features.
3947 * Makefile.in: many comment changes. forced consistent use of $()
3948 for makefile variables references. dropped leading ./ in file
3949 references. Drop $(srcdir)/ prefix on all dependencies.
3950 Inserted contents of alldeps.mak and depend.
3951 (INCLUDE_CFLAGS): defined as new macro for getting libiberty's
3952 include directory into the compilation line.
3953 (GDB_CFLAGS): new macro to take up the semantic previously held
3954 by INCLUDE_CFLAGS.
3955 (LIBIBERTY): dropped ancient subdir macro. I last removed this
3956 macro in feb of '92. How does it keep coming back?
3957 (MMALLOC_LIB): renamed to MMALLOC.
3958 (BFD_SRC_DIR): renamed to BFD_SRC.
3959 (BFD_OBJ_DIR): renamed to BFD_DIR.
3960 (BFD_LIB): renamed to BFD.
3961 (BFD_INCLUDES): renamed to BFD_CFLAGS.
3962 (READLINE_DIR): now represents object directory.
3963 (RL_LIB): renamed to READLINE.
3964 (READLINE_SRC, READLINE_CFLAGS, OPCODES, OPCODES_CFLAGS): new
3965 macros.
3966 (INTERNAL_CFLAGS): added GDB_CFLAGS, OPCODES_CFLAGS,
3967 READLINE_CFLAGS, BFD_CFLAGS. Dropped USER_CFLAGS.
3968 (LDFLAGS): removed default assignment.
3969 (TEXIDIR, INCLUDE_DEP, MMALLOC_DIR, MMALLOC_DEP, BFD_DEP,
3970 READLINE_DEP, LIBIBERTY_DIR, TESTS, depend, STAGESTUFF): unused, so removed.
3971 (ALLOCA1, ALLOCA): removed all references. alloca is now in
3972 libiberty.
3973 (VERSION): unilaterally and arbitrarily bumped to 4.9.3.
3974 (SFILES, NONSRC, HFILES, ALLDEPFILES, ALLPARAM, ALLCONFIG):
3975 removed all $(srcdir) prefixes.
3976 (getopt_h, ieee-float_h, bfd_h, wait_h, dis-asm_h): new macros
3977 for potential dependencies. commented out by default.
3978 (readline_headers, udiheaders): convenient abbreviations.
3979 (gdbcore_h, frame_h, symtab_h, gdbtypes_h, expression_h,
3980 value_h, breakpoint_h, command_h, gdbcmd_h, defs_h, inferior_h):
3981 new macros used for header file dependencies.
3982 (install-info, clean-info): collapse into the info rule.
3983 (install): now depends on all.
3984 (install-only): new target for installing without depending on
3985 all.
3986 (uninstall): new target.
3987 (config-check, config-check-hosts, config-check-targets): added
3988 fixme comments.
3989 (ch-exp.tab.c, m2-exp.tab.c): added artificial dependencies in
3990 order to force parallel makes into keeping these rules separate.
3991 * configure.in: omit cat'ing depend file onto generated Makefile.
3992 * alldeps.mak, depend: removed.
3993
3994 * inferior.h: remove redundant include of symtab.h which is
3995 included in value.h via breakpoint.h.
3996
3997 * alloca.c: removed. alloca is now in libiberty.
3998
3999 * config/m88k/delta88.mh, config/ns32k/merlin.mh (M_UNINSTALL):
4000 new macro to undo what M_INSTALL does.
4001
4002 Wed Jun 23 00:25:58 1993 Jim Kingdon (kingdon@lioth.cygnus.com)
4003
4004 * config/ns32k/{merlin.mh,xm-merlin.h}: Be consistent about name
4005 of gdb-sh.
4006
4007 * dbxread.c (copy_pending): Change name and function of begi argument
4008 to endi, since that is what the caller needs.
4009
4010 * Makefile.in (TAGFILES): Don't include YYFILES.
4011
4012 * Makefile.in (HFILES): Include monitor.h.
4013
4014 * Makefile.in: Include text that used to be in alldeps.mak.
4015 Remove config/mips/{bigmips.mh,xm-bigmips} from it.
4016 * Makefile.in, configure.in: Remove all traces of alldeps.mak.
4017
4018 * main.c (main): Print help message on stdout not stderr
4019 per standards.texi.
4020 New option --version per standards.texi.
4021 In help message, show long options with "--" not "-".
4022 Don't try to print help message or version until after we have
4023 called initialize_all_files.
4024
4025 Tue Jun 22 03:15:38 1993 Jim Kingdon (kingdon@lioth.cygnus.com)
4026
4027 * solib.c (solib_add_common_symbols): Don't call lookup_minimal_symbol.
4028 (solib_add): Call special_symbol_handling once, not once per library.
4029
4030 * procfs.c (procfs_resume): Don't pass a SIGTSTP whose action
4031 is SIG_DFL.
4032
4033 * procfs.c (procfs_resume): Skip the unnecessary PRSVADDR on all
4034 systems, not just Solaris.
4035
4036 * stabsread.c: Include <ctype.h>.
4037
4038 Mon Jun 21 16:09:46 1993 Jim Kingdon (kingdon@cygnus.com)
4039
4040 * fork-child.c (fork_inferior): Quote exec_file so it can contain
4041 funky characters.
4042
4043 Mon Jun 21 16:56:47 1993 Fred Fish (fnf@cygnus.com)
4044
4045 * Makefile.in (INCLUDE_CFLAGS): Add BFD_INCLUDES for now, since
4046 bfd.h is included by target.h, which most of gdb includes.
4047 * depend: Hand remove BFD_INCLUDES from ${CC} lines, now that
4048 it's in INCLUDE_CFLAGS.
4049
4050 Mon Jun 21 16:09:46 1993 Jim Kingdon (kingdon@cygnus.com)
4051
4052 * config/i386/*aix*, i386aix-nat.c: New files.
4053 * configure.in: Use them.
4054 * alldeps.mak: List them.
4055 * coffread.c (decode_base_type): Deal with anonymous enum type.
4056 * i387-tdep.c (print_387_status_word): Add comment re "top".
4057 * i386-tdep.c [I386_AIX_TARGET] (i386_extract_return_value): New func.
4058 * dbxread.c: Use SEEK_SET and SEEK_CUR, not L_*. Define them if and
4059 only if not defined by a header file.
4060 * mipsread.c: Don't define L_SET or L_INCR.
4061
4062 Mon Jun 21 15:10:07 1993 Fred Fish (fnf@cygnus.com)
4063
4064 * Makefile.in (BFD_INCLUDES): Bfd.h is now back in bfd build dir.
4065 * depend: Hand updated to match.
4066
4067 Sun Jun 20 13:11:11 1993 Jim Kingdon (kingdon@cygnus.com)
4068
4069 * stabsread.c (read_struct_fields): Don't call read_cpp_abbrev on $_.
4070 (read_cpp_abbrev): Don't complain specially for $_. Also return 0 if
4071 we don't recognize the abbrev.
4072
4073 Sun Jun 20 00:24:41 1993 Jim Kingdon (kingdon@lioth.cygnus.com)
4074
4075 * solib.c (solib_add_common_symbols): Add comment about performance.
4076
4077 Fri Jun 18 12:37:36 1993 Jim Kingdon (kingdon@lioth.cygnus.com)
4078
4079 * config/mips/{{x,n}m-riscos.h,riscos.mh}: New files.
4080 * configure.in (mips-*-sysv*): Use riscos for host, bigmips for target.
4081
4082 * config/mips/{{x,n}m-news-mips.h,news-mips.mh}: New files.
4083 * config/mips/{bigmips.mh,xm-bigmips.h}: Remove.
4084 * configure.in (mips-sony-*): Use news-mips for host.
4085
4086 * buildsym.h: Doc fix for processing_acc_compilation.
4087
4088 Thu Jun 17 19:57:08 1993 Jim Kingdon (kingdon@lioth.cygnus.com)
4089
4090 * printcmd.c (print_formatted): Don't use tab in wrap_here arg.
4091
4092 Thu Jun 17 17:29:30 1993 Jim Kingdon (kingdon@lisa.cygnus.com)
4093
4094 * Makefile.in (INTERNAL_CFLAGS): Include ../include as well as
4095 ${srcdir}/../include.
4096
4097 * config/m88k/xm-delta88.h: Comment out unused defines which conflict
4098 with system headers.
4099 * printcmd.c (printf_command): Cast second arg to vprintf to PTR.
4100 Use VPRINTF macro if defined.
4101 * config/m88k/xm-delta88.h: Define VPRINTF. Include <sys/siginfo.h>.
4102 Define TIOC{GETC,GLTC}_BROKEN.
4103 * m88k-nat.c: Uncomment include of <sys/ptrace.h>.
4104 * main.c: Rename initialize_{main,cmd_lists,history} to init_* to
4105 make things easier on munch (apparently this matters on
4106 the delta88 with svr3).
4107
4108 Thu Jun 17 16:53:56 1993 david d `zoo' zuhn (zoo@cygnus.com)
4109
4110 * Makefile.in: canonicalize install.sh; for use within
4111 this directory (and subdirs)
4112
4113 Tue Jun 15 17:01:23 1993 david d `zoo' zuhn (zoo at cirdan.cygnus.com)
4114
4115 * Makefile.in: remove parentdir support; use INSTALL_XFORM
4116
4117 Thu Jun 17 15:08:35 1993 Steve Chamberlain (sac@phydeaux.cygnus.com)
4118
4119 * configure.in (alpha-*-osf*), config/alpha/alpha-osf.mh: New
4120 host.
4121 * sh-tdep.c (frame_find_saved_regs): Use NUM_REGS rather than hard
4122 wired (and wrong) constant.
4123 * values.c (unpack_long): Add case to unpack when target object is
4124 sizeof(int).
4125 * config/sh/tm-sh.h (REGISTER_NAMES): Know about the news ones the
4126 simulator defines.
4127
4128 Wed Jun 16 16:08:18 1993 K. Richard Pixley (rich@sendai.cygnus.com)
4129
4130 * NEWS: tracking user visible changes starting with
4131 vxworks-timeout.
4132
4133 * remote-vx.c (_initialize_vx): rename user settable option from
4134 rpcTimeout to vxworks-timeout.
4135
4136 Wed Jun 16 12:21:49 1993 Fred Fish (fnf@cygnus.com)
4137
4138 * Makefile.in (depend): More makefile diddling.
4139 * alldeps.mak, depend: Update to latest automatically built
4140 versions.
4141
4142 * Makefile.in (depend): Bfd.h keeps moving, keep up with it.
4143 * alldeps.mak, depend: Update to latest automatically built
4144 versions.
4145
4146 Tue Jun 15 12:26:05 1993 K. Richard Pixley (rich@sendai.cygnus.com)
4147
4148 * remote-vx.c: include gdbcmd.h for setlist.
4149 (_initialize_vx): make rpcTimeout user settable.
4150
4151 Mon Jun 14 09:23:51 1993 Jim Kingdon (kingdon@cygnus.com)
4152
4153 * main.c, gdbcmd.h: Add function filename_completer.
4154 * main.c, symfile.c, source.c, exec.c, core.c: Use it for
4155 "directory", "source", "cd", "symbol-file" "add-symbol-file",
4156 "load", "file", "exec-file", "core-file" commands.
4157 (But '/' is a word break, limiting usefulness; see comments).
4158
4159 * source.c (mod_path): Warning not error if can't find directory.
4160
4161 * isi-xdep.c: New file.
4162 * config/m68k/isi.mh (XDEPFILES): Add isi-xdep.o
4163
4164 Sun Jun 13 09:17:48 1993 Jim Kingdon (kingdon@cygnus.com)
4165
4166 * config/m68k/xm-news.h: Include <sys/param.h>.
4167
4168 * m88k-tdep.c (IEEE_isNAN): Remove.
4169 config/m88k/tm-m88k.h (INVALID_FLOAT): Return 0. This was the same
4170 broken isNAN as on the mips.
4171
4172 * valprint.c (_initialize_valprint): Use c->function.sfunc not just
4173 c->function.
4174
4175 * dbxread.c (process_one_symbol): If SUN_FIXED_LBRAC_BUG is not
4176 defined, don't worry about Sun's silly LBRAC bug.
4177 * config/m68k/tm-sun3.h: Define SUN_FIXED_LBRAC_BUG to 0.
4178
4179 * dbxread.c (process_one_symbol): If there's a symbol before an
4180 N_SO, don't error().
4181 (case N_BCOMM): complain () not error ().
4182
4183 * defs.h, main.c (catch_errors): Add return_mask arg.
4184 stack.c (print_frame_info): Pass RETURN_MASK_ERROR.
4185 other callers: Pass RETURN_MASK_ALL.
4186 (return_to_top_level), callers: Add return_reason arg.
4187 * utils.c (quit):
4188 Use return_to_top_level (RETURN_QUIT) instead of error ().
4189 * main.c (main), tm-nindy960.h (ADDITIONAL_OPTION_HANDLER):
4190 Use SET_TOP_LEVEL not setjmp (to_top_level).
4191 * remote-nindy.c: Use catch_errors not setjmp (to_top_level).
4192
4193 Sat Jun 12 14:40:54 1993 Jim Kingdon (kingdon@cygnus.com)
4194
4195 * solib.c (solib_create_inferior_hook) [SVR4_SHARED_LIBS]:
4196 Don't try to get the debug base yet.
4197
4198 * dbxread.c (process_one_symbol): Set n_opt_found based on whether
4199 a non-gcc N_OPT symbol is found. Make SUN_FIXED_LBRAC_BUG a macro
4200 which returns 0 or 1 to say whether to do it.
4201 * config/sparc/sun4{sol2,os4}.h
4202 (SUN_FIXED_LBRAC_BUG,VARIABLES_INSIDE_BLOCK): Use n_opt_found so
4203 the right thing happens for both acc and SunOS4 /bin/cc.
4204
4205 * valprint.c (print_hex_chars): Use local_hex_format_{pre,suf}fix.
4206 * printcmd.c (print_scalar_formatted): Use val_print_type_code_int.
4207
4208 * mips-tdep.c: Remove isa_NAN; it assumed sizeof(host int) == 4 and
4209 probably contained byte-order sins too.
4210 config/mips/tm-mips.h (INVALID_FLOAT): Define to 0 like most machines.
4211 The IEEE_FLOAT code in print_floating takes care of it.
4212
4213 Sat Jun 12 14:47:04 1993 Fred Fish (fnf@cygnus.com)
4214
4215 * Makefile.in (VERSION): Bump to 4.9.2.
4216 * c-valprint.c (c_val_print): For array of chars printed with
4217 string syntax, don't print the address of the array. From
4218 bothner@cygnus.com.
4219 * c-exp.y (yylex): Recognize '.' as indicating a floating point
4220 number regardless of the radix. From wilson@cygnus.com.
4221 * valprint.c (set_input_radix_1, set_output_radix_1): New
4222 prototypes and functions that do the actual radix setting work.
4223 * valprint.c (set_radix, set_output_radix, set_input_radix):
4224 Rewrite to use set_input_radix_1 and set_output_radix_1.
4225 * valprint.c (initialize_valprint): Enable commands to
4226 independently set and show input and output radices.
4227 * valprint.c (show_radix): New prototype and function that
4228 handles separate input and output radices.
4229
4230 Fri Jun 11 18:39:38 1993 Ken Raeburn (raeburn@cygnus.com)
4231
4232 Patches from Jeff Law, law@cs.utah.edu:
4233 * hppa-pinsn.c: Now uses disassembler from opcode library,
4234 this contains only the stub function print_insn.
4235
4236 Fri Jun 11 15:19:59 1993 K. Richard Pixley (rich@cygnus.com)
4237
4238 * main.c (main): back to two periods for elipse.
4239 (print_gdb_version): revised format for configuration info.
4240
4241 Fri Jun 11 10:24:35 1993 Fred Fish (fnf@cygnus.com)
4242
4243 * defs.h (INT_MAX): Cast unsigned shift result to int.
4244
4245 Fri Jun 11 10:17:41 1993 Jim Kingdon (kingdon@cygnus.com)
4246
4247 * dbxread.c (process_one_symbol): Rather than having
4248 BLOCK_ADDRESS_FUNCTION_RELATIVE a macro, make it a variable which
4249 is true if we are doing stabs-in-elf, false otherwise.
4250 config/sparc/tm-sun4sol2.h: Don't define it.
4251
4252 Fri Jun 11 13:33:40 1993 Ian Lance Taylor (ian@cygnus.com)
4253
4254 * remote-mips.c (mips_send_packet): Don't print garbage character
4255 in debugging info.
4256 (mips_request): Don't check that remote pid is 0, because
4257 sometimes it isn't.
4258 (mips_fetch_registers): Pass a pointer to SWAP_TARGET_AND_HOST,
4259 not an integer.
4260
4261 Fri Jun 11 10:17:41 1993 Jim Kingdon (kingdon@cygnus.com)
4262
4263 * stack.c (print_frame_info): Use catch_errors around print_frame_args.
4264
4265 * Makefile.in (install): Don't depend on gdb.
4266
4267 * Rename remote-es1800.c to remote-es.c
4268 and remote-st2000.c to remote-st.c for 14-char filenames.
4269 config/m68k/{es1800,st2000}: Use the new names.
4270
4271 * mips-tdep.c (isa_NAN): Don't return true on -0.
4272
4273 Fri Jun 11 10:24:35 1993 Fred Fish (fnf@cygnus.com)
4274
4275 * defs.h (INT_MAX): Cast unsigned shift result to int.
4276
4277 Thu Jun 10 13:26:41 1993 Fred Fish (fnf@cygnus.com)
4278
4279 * elfread.c (elf_symtab_read): Add bfd section address to bfd
4280 symbols, now that they are section relative.
4281 * solib.c (bfd_lookup_symbol): Ditto.
4282
4283 Thu Jun 10 10:56:56 1993 Jim Kingdon (kingdon@cygnus.com)
4284
4285 * Makefile.in (depend): Add bfd -I's for paread.c and xcoffexec.c
4286 depend: Updated accordingly.
4287
4288 Wed Jun 9 16:08:44 1993 Jim Kingdon (kingdon@cygnus.com)
4289
4290 * Makefile.in (*.tab.c): Use mv for atomic update.
4291
4292 * Makefile.in ({dist,real}clean): Also remove nm.h.
4293 (realclean): Also remove ${TESTS}, y.output, yacc.{acts,tmp}.
4294 (distclean): Don't rebuild *.tab.c or TAGS.
4295
4296 Wed Jun 9 12:56:58 1993 K. Richard Pixley (rich@cygnus.com)
4297
4298 * Makefile.in (version.c): add host and target names to version.c.
4299 * main.c (main): print three periods for the elipse.
4300 (print_gdb_version): also print configuration.
4301
4302 * udi/udiids.h, udi/udip2soc.c, udi/udiphcfg.h, udi/udiphunix.h,
4303 udi/udiproc.h, udi/udipt29k.h, udi/udiptcfg.h, udi/udisoc.h,
4304 udi/udr.c: Change AMD copyrights to FSF copyleft '93.
4305
4306 * remote-eb.c (get_hex_regs, eb_fetch_registers), remote-adapt.c
4307 (get_hex_regs, adapt_fetch_registers): cast args to
4308 supply_register to avoid gcc warning.
4309
4310 * config/a29k/a29k.mt (TDEPFILES): drop minimon support. It
4311 doesn't compile on solaris and is now obsolete.
4312
4313 * config/sparc/sun4os4.mh (XM_CLIBS): remove -lresolv. This
4314 breaks stock sunos installations.
4315
4316 Wed Jun 9 06:14:33 1993 Jim Kingdon (kingdon@cygnus.com)
4317
4318 * m68k-stub.c: Add comment about frame cache.
4319
4320 * target.h (target_store_registers): Doc fix re error handling.
4321
4322 * findvar.c (write_register): Call SWAP_TARGET_AND_HOST regardless
4323 of register_valid[regno].
4324
4325 Tue Jun 8 14:42:10 1993 Jim Kingdon (kingdon@rtl.cygnus.com)
4326
4327 * symtab.h, dwarfread.c: Doc fix re dependencies.
4328
4329 Tue Jun 8 17:54:09 1993 Rob Savoye (rob@rtl.cygnus.com)
4330
4331 * serial.c (serial_close): If scb is NULL, don't try to close
4332 it.
4333 * configure.in: Add support for rom68k and bug boot monitors.
4334
4335 Tue Jun 8 17:39:12 1993 Steve Chamberlain (sac@phydeaux.cygnus.com)
4336
4337 * coffread.c (init_stringtab): Fix bug where sizeof(long) != 4.
4338 * gdbcore.h, core.c (read_memory_unsigned_integer): New function.
4339 * findvar.c (read_register, write_register): Fix thinko where
4340 sizeof(host long) != sizeof(target int).
4341 * h8300-tdep.c: Use new read_memory_unsigned_integer call.
4342 * sh-tdep.c (_initialize_sh_tdep): Add memory_size command.
4343
4344 Tue Jun 8 14:42:10 1993 Jim Kingdon (kingdon@rtl.cygnus.com)
4345
4346 * Move config/m68k/tm-m68k.h (FRAME_FIND_SAVED_REGS) to
4347 m68k-tdep.c (m68k_find_saved_regs). Don't duplicate code between
4348 68881 and non-68881 cases. Check for a pair of movel instructions.
4349
4350 Tue Jun 8 14:52:55 1993 K. Richard Pixley (rich@sendai.cygnus.com)
4351
4352 First cut at sparc-vxworks targetting.
4353 * config/sparc/tm-vxsparc.h, config/sparc/vxsparc.mt: new files.
4354 * configure.in: sparc-vxworks gdb_target now vxsparc.
4355
4356 * remote-eb.c, remote.c: symfile.h requires bfd.h so include it.
4357
4358 Tue Jun 8 14:42:10 1993 Jim Kingdon (kingdon@rtl.cygnus.com)
4359
4360 * config/m68k/xm-news.h: add "extern int errno".
4361
4362 Tue Jun 8 13:45:07 1993 K. Richard Pixley (rich@sendai.cygnus.com)
4363
4364 * remove-vx.c (vx_read_register, vx_write_register): collapse
4365 ifdef I80960 else (assumes) m68k into parameterizable macros
4366 VX_NUM_REGS and VX_SIZE_FPREGS.
4367 * config/m68k/tm-vx68.h, config/i960/tm-vx960.h (VX_NUM_REGS,
4368 VX_SIZE_FPREGS): new definitions.
4369
4370 Tue Jun 8 11:08:29 1993 Jim Kingdon (kingdon@cygnus.com)
4371
4372 * symfile.{c,h} (generic_load): New function.
4373 remote{,-nindy,-eb,-mips}.c: Use it.
4374
4375 Mon Jun 7 20:07:30 1993 Stu Grossman (grossman@cygnus.com)
4376
4377 * Makefile.in (depend): More sed gubbish to deal with
4378 ../bfd/bfd.h being generated during the build.
4379 * depend: Re-done with corrected makefile.
4380
4381 Mon Jun 7 16:32:05 1993 Fred Fish (fnf@cygnus.com)
4382
4383 * Makefile.in (BFD_SRC_DIR): Renamed def and usages from BFD_DIR.
4384 * Makefile.in (BFD_OBJ_DIR): New definition for the bfd build
4385 directory to find automatically generated header files and library.
4386 * Makefile.in (BFD_LIB): Use BFD_OBJ_DIR.
4387 * Makefile.in (LINTFLAGS): Include BFD_OBJ_DIR.
4388 * Makefile.in (saber_gdb): Include BFD_OBJ_DIR.
4389 * Makefile.in (depend): Include BFD_OBJ_DIR in gcc args.
4390 * Makefile.in (paread.o, xcoffexec.o): Remove, now in depend.
4391 * depend, alldeps.mak: Rebuild after Makefile.in changes.
4392
4393 Fri Jun 4 10:18:51 1993 david d `zoo' zuhn (zoo at cirdan.cygnus.com)
4394
4395 * configure.in: change lynx support to CPU-*-lynxos*
4396
4397 * Makefile.in (subdir_do): change test from existence of directory
4398 to existence of Makefile (the directory may exist but not be configured)
4399
4400 Thu Jun 3 01:18:51 1993 david d `zoo' zuhn (zoo at cirdan.cygnus.com)
4401
4402 * config/sparc/xm-sun4sol2.h: define MEM_FNS_DECLARED
4403
4404 Fri Jun 4 10:43:33 1993 Ian Lance Taylor (ian@cygnus.com)
4405
4406 * configure.in (mips-idt-ecoffl*): New target; use idtl.
4407 (mips-idt-ecoff*): Added trailing '*'.
4408 * config/mips/idtl.mt: New file; like idt.mt, but little endian.
4409
4410 Thu Jun 3 17:36:56 1993 Stu Grossman (grossman@cygnus.com)
4411
4412 * ser-go32.c: Clean up lots of compilation nits.
4413
4414 Thu Jun 3 14:44:57 1993 Stu Grossman (grossman@cygnus.com)
4415
4416 * Patches from Jeffrey Law <law@cs.utah.edu>.
4417 * hppab-nat.c: Eliminate unnecessary ifdefs for
4418 FETCH_INFERIOR_REGISTERS, CANNOT_FETCH_REGISTER, and
4419 CANNOT_STORE_REGISTER.
4420 (fetch_register): Delete code to handle CANNOT_FETCH_REGISTER.
4421 * hppa-pinsn.c: Support 'I', 'J', and 'K' in output
4422 templates for 1.1 FP computational instructions.
4423
4424 Thu Jun 3 03:34:49 1993 Stu Grossman (grossman@cygnus.com)
4425
4426 * Makefile.in: Remove ser-tcp.[co]. (Use XDEPFILES instead.)
4427 * alldeps.mak, depend: Rebuild to account for ser-tcp.
4428 * config/sparc/sun4os4.mh: Add ser-tcp to XDEPFILES.
4429 * gdbserver/Makefile.in (gdbserver): Use -lbsd.
4430 * gdbserver/remote-inflow{-sparc}.c (create_inferior): Don't use a
4431 shell when running the child, as args have been expanded by the
4432 time we get here. Simplify calling convention.
4433 * gdbserver/remote-server.c (main): Use new calling convention
4434 for create_inferior, remove defunct code for coalescing argv.
4435 Remove extra calls to mywait(), as we no longer have to wade
4436 through a shell.
4437
4438 * target.c (target_read_memory_partial): Don't deref errnoptr
4439 when checking for null pointer.
4440
4441 Wed Jun 2 19:58:46 1993 John Gilmore (gnu@cygnus.com)
4442
4443 * remote-es1800.c: Fix typo.
4444
4445 Tue Jun 1 21:22:39 1993 Fred Fish (fnf@cygnus.com)
4446
4447 * target.c (target_read_memory_partial): Like target_read_memory,
4448 but does partial reads, such as reads that bump into the end of
4449 the address space.
4450 * target.h (target_read_memory_partial): Add prototype.
4451 * valprint.c (PRINT_MAX_DEFAULT): New define, initial value 200.
4452 * valprint.c (val_print_string): Complete rewrite to fix bug with
4453 bumping into end of memory, avoiding unnecessarily long reads, and
4454 fixing bug when print_max is set to 0 (unlimited print length).
4455 * valprint.c (_initialize_valprint): Use PRINT_MAX_DEFAULT to
4456 initialize print_max.
4457
4458 Tue Jun 1 18:11:35 1993 Rob Savoye (rob at darkstar.cygnus.com)
4459
4460 * configure.in: Add support for rom68k and bug boot monitors.
4461
4462 Mon May 31 10:37:04 1993 Jim Kingdon (kingdon@cygnus.com)
4463
4464 * printcmd.c (print_scalar_formatted): Print integers bigger than
4465 LONGEST in hex no matter how big, and no matter what the format
4466 and size.
4467
4468 * stabsread.c (read_type): Skip type attributes if present.
4469
4470 * stabsread.c (read_huge_number): Don't accept '0' + radix as part
4471 of number, just through '0' + radix - 1.
4472
4473 Sun May 30 15:35:21 1993 Fred Fish (fnf@cygnus.com)
4474
4475 * Makefile.in (SER_HARDWIRE): Temporarily comment out ser-tcp.o.
4476
4477 * {dbxread.c, dwarfread.c} (read_ofile_symtab): Rewrite to take
4478 single parameter, the pointer to the partial symtab, rather than
4479 a bunch of args that are derived from the partial symtab. Change
4480 prototypes and callers to match.
4481
4482 * dbxread.c (read_ofile_symtab): Remove "#if 1" around code to
4483 set demangling style automatically.
4484 * defs.h (CPLUS_MARKER): Clarify comment that this is only for
4485 GNU C++, not C++ in general.
4486 * symtab.h (general_symbol_info): Simplify by eliminating one
4487 structure level for the language dependent info.
4488
4489 Sat May 29 15:59:29 1993 Fred Fish (fnf@cygnus.com)
4490
4491 * c-typeprint.c (c_type_print_base): Avoid dereferencing NULL
4492 names for TYPE_CODE_STRUCT and TYPE_CODE_UNION types.
4493 TYPE_CODE_ENUM was already testing for this.
4494
4495 Fri May 28 17:18:05 1993 Stu Grossman (grossman@cygnus.com)
4496
4497 * Makefile.in: Add new file ser-tcp.c.
4498 * defs.h (memcmp): Add decl for memcmp to #ifndef MEM_FNS_DECLARED.
4499 * findvar.c (write_register): See if we are writing back the same
4500 value that's already in the register. If so, don't bother.
4501 * remote.c (putpkt, getpkt): Improve handling of communication
4502 problems.
4503 * ser-go32.c: Prototype it to death. Update serial_ops and add
4504 dummy routines where appropriate.
4505 * ser-tcp.c: New module to implement serial I/O via TCP
4506 connections.
4507 * ser-unix.c: Clean up getting/setting of tty state. Get rid of
4508 SERIAL_RESTORE, add SERIAL_{GET|SET}_TTY_STATE interfaces.
4509 * serial.c: Add start of support for connect command.
4510 (serial_open): Distinguish between tcp and local devices.
4511 * serial.h (struct serial_ops): Get rid of restore, add
4512 get_tty_state and set_tty_state. Define protoypes and macros for
4513 this mess.
4514 * gdbserver/remote-utils.c: Add tcp support. (readchar): Do
4515 some real buffering. Handle error conditions gracefully.
4516 * gdbserver/remote-inflow-sparc.c: Update to remote-inflow.c
4517 (Lynx), remove lots of cruft.
4518
4519 Fri May 28 17:24:51 1993 david d `zoo' zuhn (zoo at cirdan.cygnus.com)
4520
4521 * printcmd.c (print_address_symbolic): turn this into an assigment
4522 instead of an initialization (many compilers don't accept
4523 structure initialization).
4524
4525 Thu May 27 16:56:25 1993 Jim Kingdon (kingdon@lioth.cygnus.com)
4526
4527 * xcoffread.c (read_xcoff_symtab): If several program csects in one
4528 source file, give them all the name of the source file, rather than
4529 the 2nd and subsequent ones having NULL names.
4530
4531 Thu May 27 06:16:56 1993 Peter Schauer (pes@regent.e-technik.tu-muenchen.de)
4532
4533 * printcmd.c (print_address_symbolic): Append source filename and
4534 linenumber of the symbol if print symbol-filename is on.
4535 (initialize_printcmd): `set print symbol-filename'.
4536
4537 Wed May 26 13:46:16 1993 Stu Grossman (grossman@cygnus.com)
4538
4539 * configure.in: Add config for Lynx target. Configure gdbserver
4540 only for Lynx. Re-do selective configuration of sparclite.
4541
4542 * gdbserver/{remote-gutils.c remote-server.c Makefile.in
4543 configure.in remote-inflow.c remote-utils.c}: New files to
4544 support GDB remote server. Currently only works for Lynx.
4545
4546 Wed May 26 10:28:14 1993 Jim Kingdon (kingdon@lioth.cygnus.com)
4547
4548 * stabsread.c (define_symbol, case 't'): Only set the name if it
4549 is not a pointer type.
4550
4551 * stabsread.c (define_symbol): Clean up logic; move the read_type
4552 calls to inside the switch statement (this improves the error
4553 handling).
4554
4555 * mipsread.c (parse_symbol, parse_partial_symbols): Deal with Fortran
4556 common blocks.
4557
4558 Tue May 25 20:44:24 1993 Jim Kingdon (kingdon@lioth.cygnus.com)
4559
4560 * printcmd.c (print_formatted, case 'i'): Pass a tab to wrap_here.
4561
4562 * source.c (line_info): Change "pc" to "address" in messages and
4563 use print_address for addresses.
4564
4565 * source.c (line_info): If we don't find a symtab, print more useful
4566 output, including the symbolic address.
4567
4568 * source.c (line_info): If --fullname, display the source.
4569 (identify_source_line), callers: Take pc as argument, rather than
4570 assuming innermost frame (emacs doesn't use this, so no one ever
4571 noticed).
4572 * symtab.h: Declare frame_file_full_name.
4573 * main.c: Don't.
4574
4575 Tue May 25 15:30:43 1993 Brendan Kehoe (brendan@lisa.cygnus.com)
4576
4577 * breakpoint.c (catch_command_1): Fix typo in error msg.
4578
4579 Tue May 25 16:05:55 1993 Ken Raeburn (raeburn@cambridge.cygnus.com)
4580
4581 * elfread.c (elf_symfile_read): Update ELF structure and routine
4582 names to specify 32-bit versions.
4583 (elf_symtab_read): Retrieve size field directly from symbol,
4584 instead of using old kludge.
4585
4586 * mips-pinsn.c (print_insn): Cast address to bfd_vma before
4587 calling opcodes library.
4588 * z8k-tdep.c (print_insn): Likewise.
4589
4590 Tue May 25 13:06:28 1993 Jim Kingdon (kingdon@lioth.cygnus.com)
4591
4592 * stabsread.c: Remove all uses of error(). Make error_type and
4593 read_type_number static.
4594 (define_symbol): Don't try to deal with a missing symbol
4595 descriptor which isn't followed by digit, '(', or '-'.
4596 * stabsread.h: Don't declare read_type_number here.
4597 * gdbtypes.h: Don't declare error_type here.
4598 * xcoffread.c: Remove NO_TYPEDEFS code.
4599
4600 Tue May 25 09:33:16 1993 Ian Lance Taylor (ian@cygnus.com)
4601
4602 * mips-tdep.c: Removed #include of many header files, and #define
4603 of MIPSMAGIC; no longer used.
4604
4605 Tue May 25 09:36:13 1993 Jim Kingdon (kingdon@lioth.cygnus.com)
4606
4607 * Many places: replace "the inferior" in messages with "the program"
4608 or "the program being debugged".
4609 * inflow.c (try_writing_regs): Remove; it's been #if 0'd forever
4610 and I'm getting sick of maintaining it.
4611
4612 * config/i386/linux.mh: Don't use \ newline; the awk scripts don't
4613 support it.
4614
4615 * config/i386/go32.mh: Define SER_HARDWIRE.
4616 * Makefile.in: Define SER_HARDWIRE.
4617 (DEPFILES): Use it.
4618 (alldeps.mak): Add SER_HARDWIRE.
4619 Remove all references to ser-hardwire.{c,o}.
4620 * configure.in: Remove all ser_hardwire and gdb_serial_driver stuff.
4621
4622 Mon May 24 23:50:05 1993 Peter Schauer (pes@regent.e-technik.tu-muenchen.de)
4623
4624 * sparc-nat.c (store_inferior_registers): Fill in all members of
4625 inferior_fp_registers by reading them from the inferior before
4626 modifying and writing them back.
4627 Fixes unexplainable inferior FP exceptions after calls to the inferior
4628 or setting of floating point registers.
4629 * mips-tdep.c (mips_skip_prologue): Skip move of argument register
4630 to register which is generated by gcc-2.4.
4631
4632 Tue May 25 00:42:39 1993 Ken Raeburn (raeburn@cygnus.com)
4633
4634 * hppa-pinsn.c: Define OLD_TABLE before including opcode/hppa.h.
4635
4636 Mon May 24 13:55:14 1993 Stu Grossman (grossman@cygnus.com)
4637
4638 * config/i386/{i386lynx.mh i386lynx.mt nm-i386lynx.h tm-i386lynx.h
4639 xm-i386lynx.h}: New configuration for Lynx.
4640
4641 Mon May 24 10:01:10 1993 Jim Kingdon (kingdon@lioth.cygnus.com)
4642
4643 * mipsread.c (parse_symbol): Deal with scVar and scVarRegister.
4644 * symtab.h: Comment that LOC_REGPARM_ADDR can be call by reference.
4645
4646 * c-typeprint.c (c_type_print_base): Don't print typedef'd names
4647 as struct, union, or enum tags.
4648
4649 Mon May 24 01:10:01 1993 Peter Schauer (pes@regent.e-technik.tu-muenchen.de)
4650
4651 * symmisc.c (dump_msymbols): Avoid gdb coredump with stripped
4652 executable.
4653
4654 Sat May 22 10:03:09 1993 Jim Kingdon (kingdon@lioth.cygnus.com)
4655
4656 * infrun.c (wait_for_inferior),
4657 infcmd.c (program_info, signal_command): Use symbolic signal names.
4658
4659 * inftarg.c (child_wait): Deal with EINTR and include message from
4660 strerror if printing an error message.
4661
4662 * main.c (command_line_input): Use STOP_SIGNAL not SIGTSTP.
4663
4664 * stabsread.c: Remove most uses of lookup_fundamental_type.
4665 (define_symbol): Use read_type for type of enum constant,
4666 not just read_type_number. Also don't call error().
4667 (define_symbol): For unrecognized constant type, one complaint (the
4668 one from error_type) is enough. Don't make our own in addition.
4669 (define_symbol): Don't treat an N_FUN 'R' as a prototype.
4670 * gdbtypes.h: Doc fixes.
4671
4672 Sat May 22 03:33:07 1993 Peter Schauer (pes@regent.e-technik.tu-muenchen.de)
4673
4674 Fix stack unwinding through _sigtramp on Irix. These patches are from
4675 Paul Flinders <ptf@delcam.co.uk>.
4676 * mipsread.c (fixup_sigtramp): Find _sigtramp on Irix even when the
4677 executable uses sigvec.
4678 * mips-tdep.c (read_next_frame_reg): Allow tm-file to override
4679 sigcontext offsets.
4680 * config/mips/tm-irix3.h: Add sigcontext offsets for Irix.
4681
4682 Sat May 22 00:39:01 1993 Peter Schauer (pes@regent.e-technik.tu-muenchen.de)
4683
4684 * infrun.c (wait_for_inferior): Clear stop_signal if it should not
4685 be passed to the inferior to make "handle <signal> nopass nostop" work.
4686
4687 Sat May 22 00:21:41 1993 Peter Schauer (pes@regent.e-technik.tu-muenchen.de)
4688
4689 * config/mips/tm-irix3.h: Clean up, use tm-bigmips.h and redefine
4690 the necessary bits.
4691 * findvar.c (value_from_register): Fix uninitialized first_addr
4692 which caused problems with assignment of doubles to register variables
4693 on some targets.
4694 * mipsread.c: Remove TM_FILE_OVERRIDE, include tm.h and provide the
4695 missing mips definitions if necessary.
4696
4697 Fix handling of double register variables for mips targets and big
4698 endian hosts. These patches are from Paul Flinders <ptf@delcam.co.uk>.
4699 * config/mips/tm-mips.h: Increase MAX_REGISTER_{RAW,VIRTUAL}_SIZE to
4700 8 bytes for doubles.
4701 * config/mips/tm-mips.h (REGISTER_CONVERT_TO_TYPE): New macro for
4702 conversion of type held in multiple registers to host format.
4703 * config/mips/tm-mips.h (REGISTER_CONVERT_FROM_TYPE): New macro,
4704 companion to REGISTER_CONVERT_TO_TYPE.
4705 * config/mips/tm-mips.h (EXTRACT_RETURN_VALUE, STORE_RETURN_VALUE):
4706 Convert to function calls.
4707 * config/mips/tm-mips.h (FIX_CALL_DUMMY): New code for big endian
4708 mips targets.
4709 * mips-tdep.c (mips_print_register): Raw buffer now needs just
4710 MAX_REGISTER_RAW_SIZE bytes.
4711 * mips-tdep.c (mips_print_register): Use REGISTER_CONVERT_TO_TYPE
4712 (if defined) for doubles.
4713 * mips-tdep.c: (mips_extract_return_value, mips_store_return_value):
4714 New functions, take care of REGISTER_CONVERT_TO/FROM_TYPE.
4715 * valops.c (value_assign): Use REGISTER_CONVERT_TO_TYPE if
4716 defined.
4717 * findvar.c (value_from_register): Use REGISTER_CONVERT_TO_TYPE if
4718 defined.
4719
4720 Fri May 21 09:04:25 1993 Jim Kingdon (kingdon@lioth.cygnus.com)
4721
4722 * configure.in: Add i[34]86-*-isc*.
4723
4724 * stabsread.c: Make sure all complain() pass the address of the struct.
4725
4726 * xcoffread.c: Make sure all struct complaints are static not auto.
4727
4728 * Makefile.in: Add rule for xcoffexec.o like that for paread.o.
4729
4730 * xcoffread.c (process_xcoff_symbol, case C_LSYM): Use define_symbol.
4731
4732 Wed May 19 12:33:59 1993 Jim Kingdon (kingdon@lioth.cygnus.com)
4733
4734 * config/i386/linux.mh: Re-enable coredumps now that they should work.
4735
4736 Wed May 19 15:44:20 1993 K. Richard Pixley (rich@cygnus.com)
4737
4738 * config/m68k/tm-m68k.h (FRAME_CHAIN): add missing close paren.
4739
4740 Wed May 19 15:33:57 1993 Stu Grossman (grossman@cygnus.com)
4741
4742 * config/pa/nm-hppab.h: Comment PTRACE_ARG3_TYPE.
4743
4744 Wed May 19 12:33:59 1993 Jim Kingdon (kingdon@lioth.cygnus.com)
4745
4746 * Makefile.in (INSTALLED_LIBS): New variable.
4747
4748 Tue May 18 14:08:50 1993 Jim Kingdon (kingdon@lioth.cygnus.com)
4749
4750 * main.c (quit_command): In the "quit anyway?" message, tell the user
4751 whether we are planning to detach or kill the program.
4752
4753 * config/vax/vaxbsd.mh: Add "NAT_FILE= nm-vax.h".
4754 * config/vax/xm-vaxbsd.h: Use <sys/param.h> not <machine/limits.h>
4755
4756 * infcmd.c (read_pc): Doc fix.
4757
4758 * printcmd.c (print_address_symbolic): Use %u not %d for offset.
4759
4760 * blockframe.c (get_prev_frame_info): If pc in sigtramp, set
4761 signal_handler_caller.
4762 * tm-68k.h (FRAME_{CHAIN,SAVED_PC}): Deal with sigtramp.
4763 * tm-hp300bsd.h: Define SIGTRAMP_{START,END} not IN_SIGTRAMP.
4764 * inferior.h (IN_SIGTRAMP): Definition moved from infrun.c.
4765 Use SIGTRAMP_START if defined.
4766 * infcmd.c (step_1): Use SIGTRAMP_{START,END} if needed.
4767 * infrun.c (wait_for_inferior): Check IN_SIGTRAMP before SKIP_PROLOGUE.
4768
4769 * infptrace.c: Remove unused KERNEL_U_ADDR_HPUX code.
4770
4771 * infcmd.c (step_1): Fix poorly worded error message.
4772
4773 * config/{i386/linux.mh,m68k/isi.mh} (NATDEPFILES):
4774 Comment out corelow.c because core dumps are broken on these machines.
4775
4776 * Makefile.in (depend): Put "${srcdir}" in generated dependencies
4777 if srcdir is not ".".
4778 Also put in -I${BFD_DIR} or -I${READLINE_DIR} for files which need it.
4779 (INCLUDE_CFLAGS): Remove BFD_DIR and READLINE_DIR.
4780 * depend: Update to latest automatically built version.
4781
4782 Tue May 18 08:10:45 1993 Fred Fish (fnf@cygnus.com)
4783
4784 * ChangeLog, ChangeLog-92: Split ChangeLog at 1993.
4785 * Makefile.in (NONSRC): Add ChangeLog-92
4786
4787 Tue May 18 08:03:37 1993 Jim Kingdon (kingdon@lioth.cygnus.com)
4788
4789 * findvar.c ({read,write}_register): Use REGISTER_RAW_SIZE
4790 not typo RAW_REGISTER_SIZE.
4791
4792 * frame.h, inferior.h: Doc fixes.
4793
4794 Mon May 17 15:43:03 1993 Stu Grossman (grossman@cygnus.com)
4795
4796 * findvar.c (write_register): Add sanity check for register size.
4797 (read_register): Fixup sanity check for register size to be
4798 consistent with write_register().
4799
4800 Mon May 17 07:36:20 1993 Ian Lance Taylor (ian@cygnus.com)
4801
4802 * sparclite/Makefile.in: Add dummy info, install and install-info
4803 targets.
4804
4805 Thu May 13 07:30:22 1993 Ian Lance Taylor (ian@cygnus.com)
4806
4807 * remote-nindy.c: Removed declaration of coffstrip.
4808 * nindy-share/nindy.c: #if 0 coffstrip routine; no longer used.
4809
4810 Wed May 12 00:35:19 1993 Fred Fish (fnf@cygnus.com)
4811
4812 * Makefile.in (VERSION): Bump to 4.9.1 after release and cvs
4813 tagging.
4814
4815 * Makefile.in (VERSION): GDB 4.9 release.
4816
4817 Tue May 11 08:04:41 1993 Fred Fish (fnf@cygnus.com)
4818
4819 * README: Update known bugs to include the Solaris bug that
4820 leaves core dumps in the current directory when restarting the
4821 inferior with "run". Expand on the testsuite information.
4822
4823 * Makefile.in (VERSION): Bump to 4.8.96 for what should hopefully
4824 be the last 4.9 prerelease test archive.
4825
4826 Mon May 10 22:13:23 1993 Jim Kingdon (kingdon@cygnus.com)
4827
4828 * config/m68k/xm-hp300bsd.h: Include <sys/param.h> to avoid INT_MAX
4829 redefined warnings.
4830
4831 Mon May 10 20:00:43 1993 Fred Fish (fnf@cygnus.com)
4832
4833 * README, NEWS: Update for gdb 4.9 release.
4834
4835 Mon May 10 19:38:34 1993 John Gilmore (gnu@cygnus.com)
4836
4837 * ch-exp.y (MAX, MIN): Rename to MAX_TOKEN, MIN_TOKEN.
4838 * target.c (MIN): #undef before defining.
4839
4840 Mon May 10 16:03:03 1993 Jim Kingdon (kingdon@cygnus.com)
4841
4842 Patch from Jeffrey Law:
4843 * gdb/config/pa/nm-hppab.h (PTRACE_ARG3_TYPE): Define as caddr_t.
4844
4845 Mon May 10 15:28:27 1993 Ian Lance Taylor (ian@cygnus.com)
4846
4847 * hppa-tdep.c (hppa_push_arguments): Allocate correct amount of
4848 memory.
4849
4850 Mon May 10 13:14:46 1993 Fred Fish (fnf@cygnus.com)
4851
4852 * ch-exp.y (start): Apply work-around to avoid bison warning.
4853
4854 Sun May 9 07:25:02 1993 Fred Fish (fnf@cygnus.com)
4855
4856 * Makefile.in (BISON): Remove double quotes around BISON
4857 definition when bison is used.
4858
4859 * configure.in (hppa*-hp-bsd): Change to hppa*-hp-bsd*
4860 * configure.in (hppa*-hp-hpux): Change to hppa*-hp-hpux*
4861 * configure.in (m68*-hp-bsd): Change to m68*-hp-bsd*
4862 * configure.in (m68*-hp-hpux): Change to m68*-hp-hpux*
4863 * configure.in (hppa*-*-bsd): Change to hppa*-*-bsd*
4864 * configure.in (hppa*-*-hpux): Change to hppa*-*-hpux*
4865 * configure.in (m68*-hp-bsd): Change to m68*-hp-bsd*
4866 * configure.in (m68*-hp-hpux): Change to m68*-hp-hpux*
4867
4868 * Makefile.in (VERSION): Bump to 4.8.6.
4869
4870 Sat May 8 12:36:03 1993 Fred Fish (fnf@cygnus.com)
4871
4872 * config/pa/xm-hppah.h (MALLOC_INCOMPATIBLE): Define it, and
4873 include declarations for malloc/realloc/free. Both malloc and
4874 realloc return 'void *' for non-ANSI compilations.
4875
4876 Sat May 8 01:39:30 1993 (pes@regent.e-technik.tu-muenchen.de)
4877
4878 * coffread.c (read_coff_symtab): Don't fclose stream as it is no
4879 longer opened twice.
4880
4881 Thu May 6 21:08:55 1993 Jim Kingdon (kingdon@cygnus.com)
4882
4883 * solib.c (clear_solib): Don't close bfd if it is NULL.
4884
4885 Thu May 6 20:55:35 1993 Fred Fish (fnf@cygnus.com)
4886
4887 * core.c (dis_asm_read_memory): Cast second arg of
4888 target_read_memory to "char *".
4889 * breakpoint.c (watchpoint_check): Change arg type from PTR to
4890 "char *", to match other functions called by catch_errors().
4891
4892 Thu May 6 15:47:45 1993 Stu Grossman (grossman@cygnus.com)
4893
4894 * More patches from Jeffrey Law (law@cs.utah.edu).
4895 * gdb/config/nm-hppab.h (PTRACE_ARG3_TYPE): Define as caddr_t.
4896 * gdb/config/pa/tm-hppah.h (millicode_start, millicode_end):
4897 Delete unnecessary declarations.
4898
4899 Thu May 6 15:15:46 1993 Stu Grossman (grossman@cygnus.com)
4900
4901 * ser-unix.c (wait_for): Use VTIME to do timeouts instead of
4902 poll() for termio{s}.
4903
4904 Thu May 6 10:03:41 1993 Jim Kingdon (kingdon@cygnus.com)
4905
4906 * i386-tdep.c (i386_frame_num_args): Always return -1.
4907
4908 Wed May 5 15:16:33 1993 Stu Grossman (grossman@cygnus.com)
4909
4910 * Patches from Jeffrey Law <law@cs.utah.edu>.
4911 * gdb/hppa-tdep.c: Declare frame_saved_pc.
4912 (frameless_function_invocation): New function.
4913 (frame_saved_pc, init_extra_frame_info): Use
4914 frameless_function_invocation.
4915 * gdb/config/pa/tm-hppa.h (SAVED_PC_AFTER_CALL): Use saved_pc_after
4916 call instead of just grabbing the value currently in %r2.
4917 (FRAMELESS_FUNCTION_INVOCATION): Use frameless_function_invocation.
4918 * gdb/config/pa/tm-hppah.h (SAVED_PC_AFTER_CALL): Delete private
4919 definition and use the common one in tm-hppa.h.
4920 * gdb/hppa-tdep.c (frame_chain_valid): If "use_unwind" is true, then
4921 use unwind descriptors to determine if the frame chain is valid.
4922 * gdb/hppa-tdep.c (find_dummy_frame_regs): Rework so that
4923 it does not assume %r4 is the frame pointer.
4924 * gdb/hppa-pinsn.c (print_insn): Handle 'r' and 'R' for break, rsm,
4925 and ssm instructions.
4926 * gdb/hppa-tdep.c (extract_5r_store, extract_5R_store): New
4927 helper functions for print_insn.
4928 * gdb/hppa-tdep.c (gcc_p, hpux_cc_p): Delete unused functions.
4929 * gdb/config/pa/tm-hppa.h (ABOUT_TO_RETURN): Handle a return
4930 which nullifies the following instruction.
4931
4932 Tue May 4 12:11:38 1993 Jim Kingdon (kingdon@cygnus.com)
4933
4934 * infptrace.c [FIVE_ARG_PTRACE]: Define ptrace to call_ptrace and
4935 pass the 5th arg there, rather than using an ANSI C-specific macro.
4936
4937 * Makefile.in (depend): Don't include ${CC} command for *.tab.c.
4938
4939 Tue May 4 19:33:12 1993 Fred Fish (fnf@cygnus.com)
4940
4941 * Makefile.in (VERSION): Bump to 4.8.5
4942 * Makefile.in (INCLUDE_CFLAGS): Add BFD_DIR and READLINE_DIR
4943 directories to include search path.
4944 * Makefile.in (CLIBS, CDEPS, ADD_FILES, ADD_DEPS): Clean up
4945 whitespace.
4946 * Makefile.in (depend): For gcc -MM line, use INTERNAL_CFLAGS
4947 * Makefile.in (main.o, dbxread.o, coffread.o, mipsread.o,
4948 elfread.o, dwarfread.o, stabsread.o, xcoffread.o, xcoffexec.o,
4949 xdr_ld.o, xdr_rdb.o, nindy.o, Onindy.o, ttybreak.o, ttyflush.o,
4950 udr.o, udip2soc.o): Remove explicit rules, use the ones that
4951 are automatically generated in "depend".
4952 * Makefile.in (paread.o): Document why a dependency doesn't get
4953 automatically generated in "depend" and leave this explicit rule
4954 in for now (FIXME).
4955 * depend: Update to latest automatically generated version.
4956
4957 Tue May 4 12:11:38 1993 Jim Kingdon (kingdon@cygnus.com)
4958
4959 * xcoffread.c: Doc fix.
4960
4961 * Makefile.in (depend): Include $(CC) command in generated output.
4962
4963 Mon May 3 22:51:05 1993 Fred Fish (fnf@cygnus.com)
4964
4965 * Makefile.in (NONSRC): Remove ${srcdir}/putenv.c.
4966 * Makefile.in (SFILES): Add ${srcdir}/putenv.c.
4967 * depend: Update to latest automatically built version.
4968
4969 Mon May 3 19:20:20 1993 Stu Grossman (grossman@cygnus.com)
4970
4971 * sparclite/Makefile.in: Create default target that does nothing
4972 in order to force user to build by hand.
4973
4974 * sparclite/Makefile: Remove. It's not necessary anymore.
4975
4976 * ser-unix.c (wait_for): New routine to handle read timeouts,
4977 etc. Uses poll() if HAVE_TERMIO[S] is defined, select() otherwise.
4978
4979 Mon May 3 13:52:08 1993 Ian Lance Taylor (ian@cygnus.com)
4980
4981 * mips-pinsn.c (print_insn): Return value.
4982
4983 Sun May 2 11:43:57 1993 Fred Fish (fnf@cygnus.com)
4984
4985 * Makefile.in (SFILES): Remove ser-hardwire.c; it is a link made
4986 at configuration time and doesn't belong in the distribution archive.
4987
4988 * Makefile.in (NONSRC): Add 29k-share/README.
4989 * Makefile.in (HFILES): Add 29k-share/udi/udiids.h.
4990
4991 * defs.h (UINT_MAX, LONG_MAX, INT_MAX, INT_MIN): Replace hex
4992 constants with slightly more portable definitions (still depends
4993 on 2's complement arithmetic though).
4994 * config/i386/nm-linux.h: Define NO_SYS_REG_H for no <sys/reg.h>.
4995 * i386v-nat.c (sys/reg.h): Conditionalize include on
4996 NO_SYS_REG_H. Linux doesn't have <sys/reg.h>.
4997 * ser-unix.c (termio.h): Include <termio.h> like other files that
4998 include termio.h, not <sys/termio.h> which may not exist (on
4999 linux for example).
5000
5001 Sat May 1 16:05:24 1993 Fred Fish (fnf@cygnus.com)
5002
5003 * valprint.c (print_longest): Change format parameter from a
5004 'char' to an 'int'. We can't have 'char' parameters with the
5005 current coding style, where we mix prototypes with pre-ANSI
5006 style declarations.
5007 * value.h (print_longest): Change format parameter in prototype
5008 from a 'char' to an 'int'.
5009
5010 Sat May 1 02:47:20 1993 Peter Schauer (pes@regent.e-technik.tu-muenchen.de)
5011
5012 * config/mips/tm-mips.h (STAB_REG_TO_REGNUM): Match it with the gcc
5013 definition.
5014 * config/mips/tm-irix3.h (STAB_REG_TO_REGNUM): Add.
5015 * irix4-nat.c (fill_fpregset): Fix bug with indexing into fpregsetp.
5016
5017 Fri Apr 30 17:45:32 1993 Stu Grossman (grossman@cygnus.com)
5018
5019 * The following patches are from Jeffrey Law <law@cs.utah.edu>.
5020 * config/pa/hppabsd.mh: Add more files to NATDEPFILES.
5021 * config/pa/xm-hppa[bh].h: Define FIVE_ARG_PTRACE.
5022 * hppab-nat.c: Delete WANT_NATIVE_TARGET ifdefs.
5023 ptrace needs 5 arguments, #define ptrace to always
5024 pass zero as the 5th argument.
5025
5026 Fri Apr 30 15:54:13 1993 Steve Chamberlain (sac@thepub.cygnus.com)
5027
5028 * configure.in: Match z8k-*-sim for z8000.
5029 * config/h8500/tm-h8500.h, h8500-tdep.c: Lint.
5030 * remote-hms.c: Update to use new serial protocol.
5031
5032 Fri Apr 30 16:50:38 1993 K. Richard Pixley (rich@rtl.cygnus.com)
5033
5034 * mips-tdep.c: remove include of sys/dir.h. Doesn't seem
5035 necessary and Solaris doesn't have it.
5036
5037 * Makefile.in (clean-info, install, install-info, info, dvi,
5038 check, all): do not echo recursion lines.
5039
5040 * 29k-share/udip2soc.c (UDIConnect): replace union wait with int.
5041
5042 * config/sparc/sun4sol2.mh (XM_CLIBS): add -lsocket which is
5043 required target ports which use sockets (like a29k-udi).
5044
5045 * remote-udi.c (udi_wait): Use SIGURG, as Solaris doesn't have SIGLOST.
5046
5047 Fri Apr 30 11:05:42 1993 Jim Kingdon (kingdon@cygnus.com)
5048
5049 * ser-unix.c [USE_{TERMIO,ALARM}_TIMEOUT]: New code to deal with
5050 systems lacking select().
5051
5052 * Makefile.in (TAGS): Doc fix. Deal with empty DEPFILES.
5053
5054 Fri Apr 30 10:06:46 1993 Fred Fish (fnf@cygnus.com)
5055
5056 * alldeps.mak, depend: Update with latest automatically built
5057 versions.
5058
5059 Thu Apr 29 12:03:23 1993 Fred Fish (fnf@cygnus.com)
5060
5061 * Makefile.in (SFILES): Add ser-unix.c and ser-go32.c.
5062
5063 * Makefile.in (make-proto-testsuite.dir): New target to make
5064 prototype testsuite tree.
5065
5066 * Makefile.in (VERSION): Bump to 4.8.4.
5067
5068 Thu Apr 29 08:46:22 1993 Jim Kingdon (kingdon@cygnus.com)
5069
5070 * stabsread.c (define_symbol): If unrecognized constant type,
5071 complain() not error().
5072
5073 Thu Apr 29 00:03:59 1993 Fred Fish (fnf@cygnus.com)
5074
5075 * infptrace.c: Add missing close paren to test for
5076 FIVE_ARG_PTRACE defined.
5077
5078 * defs.h (CC_HAS_LONG_LONG): Set up to define CC_HAS_LONG_LONG
5079 when compiling with gcc, but disable it for now. See comment.
5080 * defs.h (LONGEST): Define as either "long" or "long long"
5081 based on CC_HAS_LONG_LONG.
5082 * defs.h (longest_to_int): Use CC_HAS_LONG_LONG to control
5083 how longest_to_int is defined.
5084 * c-valprint.c (c_val_print): Call print_longest.
5085 * expprint.c (dump_expression): Use PRINTF_HAS_LONG_LONG
5086 instead of LONG_LONG.
5087 * {printcmd.c, gdbtypes.h} (LONG_LONG): Replace usages with
5088 CC_HAS_LONG_LONG.
5089 * printcmd.c (print_scalar_formatted): Call print_longest
5090 and let it figure out what to do for PRINTF_HAS_LONG_LONG.
5091 * typeprint.c (print_type_scalar): Call print_longest and let
5092 it figure out what to do for PRINTF_HAS_LONG_LONG.
5093 * valprint.c (val_print_type_code_int): Call print_longest
5094 and let it figure out what to do for PRINTF_HAS_LONG_LONG.
5095 * stabsread.c (LONG_LONG): Replace usages with CC_HAS_LONG_LONG.
5096 * value.h (struct value): Replace usage of LONG_LONG with
5097 CC_HAS_LONG_LONG.
5098 * value.h (print_longest): Add prototype.
5099 * values.c (LONG_LONG): Replace usages with CC_HAS_LONG_LONG.
5100 * values.c (unpack_double): Collapse code that was unnecessarily
5101 dependent on CC_HAS_LONG_LONG. Use LONGEST instead of direct types.
5102 * values.c (value_from_longest): Remove dependency on
5103 CC_HAS_LONG_LONG and just use LONGEST.
5104 * solib.c (solib_map_sections): Use bfd_get_filename
5105 to access filename field.
5106 * solib.c (clear_solib): Save filename and free it later, after
5107 bfd_close, since bfd_close may reference it. Use bfd_get_filename
5108 to access the field.
5109 * config/convex/xm-convex.h (LONG_LONG): Replace with
5110 CC_HAS_LONG_LONG. Add define for PRINTF_HAS_LONG_LONG.
5111 * doc/gdbint.texinfo (LONG_LONG): Replace with CC_HAS_LONG_LONG.
5112 Add PRINTF_HAS_LONG_LONG references.
5113
5114 Wed Apr 28 06:11:38 1993 Jim Kingdon (kingdon@cygnus.com)
5115
5116 * inflow.c (kill_command), infcmd.c (attach_command),
5117 remote.c (remote_interrupt_twice): In messages for the user, call it
5118 "the program" or "the program being debugged" not "the inferior".
5119
5120 * hp300ux-nat.c: Cast second arg to supply_register calls.
5121 (_initialize_kernel_u_addr, getpagesize): New functions.
5122 (store_inferior_register_1): Change arg name from value to val.
5123 (fetch_core_registers): Make arg core_reg_size unsigned.
5124 Pass 5 args to ptrace.
5125 * config/m68k/xm-hp300hpux.h: Define FIVE_ARG_PTRACE.
5126 Remove KERNEL_U_ADDR stuff.
5127 * infptrace.c [FIVE_ARG_PTRACE]: Pass 5th arg to ptrace.
5128 * config/m68k/hp300hpux.m{t,h}:
5129 Move exec.o from NATDEPFILES to TDEPFILES
5130 * config/m68k/hp300hpux.mt: Mention GAS requirement. Remove
5131 hp-include stuff. Add m68k-tdep.o to TDEPFILES.
5132
5133 Wed Apr 28 13:27:54 1993 Peter Schauer (pes@regent.e-technik.tu-muenchen.de)
5134
5135 * ch-exp.y (yylex): Don't STREQ with simplename if it is NULL.
5136
5137 Wed Apr 28 06:11:38 1993 Jim Kingdon (kingdon@cygnus.com)
5138
5139 * config/sparc/xm-sun4os4.h [__STDC__]: Don't use MALLOC_INCOMPATIBLE.
5140
5141 Wed Apr 28 11:39:18 1993 Roland H. Pesch (pesch@fowanton.cygnus.com)
5142
5143 * doc/gdb.texinfo: make node "Shell Commands" unconditional;
5144 describe `set demangle-style arm' (not cfront);
5145 mention can type `q' to discard output, when gdb pages
5146
5147 Wed Apr 28 11:32:39 1993 Peter Schauer (pes@regent.e-technik.tu-muenchen.de)
5148
5149 * valops.c (search_struct_field): Fix gdb core dump with incomplete
5150 stabs info.
5151
5152 Wed Apr 28 06:11:38 1993 Jim Kingdon (kingdon@cygnus.com)
5153
5154 * remote.c: Change timeout to 2.
5155 (remote_open): Use unpush_target not remote_close.
5156 (remote_resume): If siggnal != 0, give warning not error().
5157 (remote_wait, remote_interrupt, remote_interrupt_twice):
5158 If we get two interrupts, let the user get out if they want.
5159 (remote_{kill,mourn}): New functions.
5160 i386-stub.c (handle_exception, case 'k'): Don't BREAKPOINT.
5161
5162 Wed Apr 28 09:20:55 1993 Ian Lance Taylor (ian@rtl.cygnus.com)
5163
5164 * config/sparc/sun4sol2.mh (XM_CLIBS): Define to be -lnsl.
5165
5166 Wed Apr 28 06:11:38 1993 Jim Kingdon (kingdon@cygnus.com)
5167
5168 * Remote targets (mourn): Call unpush_target.
5169
5170 * config/sparc/xm-sun4os4.h: Declare free() to return int.
5171 Remove twisted use of PARAMS.
5172
5173 * config/rs6000/xm-rs6000.h: Don't define MALLOC_INCOMPATIBLE now
5174 that ansidecl.h assumes ANSI on AIX.
5175
5176 Tue Apr 27 10:01:33 1993 Jim Kingdon (kingdon@cygnus.com)
5177
5178 * README: Move most stuff about hacking GDB to doc/gdbint.texinfo.
5179 (Known bugs): Remove AIX bugs, revise SPARC struct bug description.
5180
5181 Tue Apr 27 13:44:19 1993 Peter Schauer (pes@regent.e-technik.tu-muenchen.de)
5182
5183 * expprint.c (print_subexp): Fix bug with OP_SCOPE operator output.
5184
5185 Tue Apr 27 10:01:33 1993 Jim Kingdon (kingdon@cygnus.com)
5186
5187 * remote-vx.c (net_connect): Allow numeric IP address for host.
5188
5189 Mon Apr 26 17:59:38 1993 Steve Chamberlain (sac@thepub.cygnus.com)
5190
5191 * config/sh/sh.mt, config/sh/tm-sh.h, sh-tdep.c: New files.
5192
5193 Mon Apr 26 07:13:32 1993 Jim Kingdon (kingdon@cygnus.com)
5194
5195 * rs6000-tdep.c (branch_dest): Deal with stepping through system call.
5196
5197 * symtab.h, xcoffread.c: Revise linetable sorting comments.
5198
5199 Sun Apr 25 02:32:16 1993 Peter Schauer (pes@regent.e-technik.tu-muenchen.de)
5200
5201 * valops.c (value_cast): A cast might also change the object
5202 representation in C++.
5203 * dbxread.c (end_psymtab): Copy subpst read_symtab function from pst
5204 to get the proper read_symtab function when called from mipsread.c.
5205 * mipsread.c (mipscoff_psymtab_to_symtab, psymtab_to_symtab_1):
5206 Set cur_bfd in psymtab_to_symtab_1 as CURBFD(pst) is invalid
5207 for dummy psymtabs, inhibit processing of dummy psymtabs.
5208
5209 Sat Apr 24 19:59:54 1993 Jim Kingdon (kingdon@cygnus.com)
5210
5211 * Changes from (or inspired by) AMD:
5212 * remote-udi.c (udi_attach): Assignments to Space and Offset were
5213 switched, fix it.
5214 (udi_wait): Make error message (UDIGetStdout) match error.
5215 (udi_wait): Handle UDIStdinNeeded.
5216 * command.c [CANT_FORK]: Use system().
5217 * utils.c (prompt_for_continue): Allow quit with 'q'.
5218
5219 * solib.c (solib_add): Don't call special_symbol_handling if there
5220 were errors in symbol_add_stub. Also set so->from_tty before
5221 calling symbol_add_stub.
5222
5223 Fri Apr 23 16:17:00 1993 Stu Grossman (grossman@cygnus.com)
5224
5225 * Merge in HPPA/BSD patches from Utah:
5226 * defs.h: Add const to 2nd arg of psignal prototype.
5227 * hppah-tdep.c: Renamed to hppa-tdep.c 'cuz it's common code with
5228 BSD now.
5229 * hppab-core.c: Deleted. No longer useful.
5230 * hppab-nat.c: #include more files. Use PT_WUREGS, not
5231 PT_WRITE_U.
5232 * hppab-tdep.c: Deleted. Supplanted by hppa-tdep.c.
5233 * config/pa/hppabsd.mh (NATDEPFILES): Remove hppab-core.o.
5234 * config/pa/hppabsd.mt (TDEPFILES): hppab-tdep.o => hppa-tdep.o
5235 * config/pa/hppahpux.mt (TDEPFILES): hppab-tdep.o => hppa-tdep.o
5236 * config/pa/xm-hppab.h: #define SET_STACK_LIMIT_HUGE.
5237
5238 Fri Apr 23 10:34:02 1993 Stu Grossman (grossman@cygnus.com)
5239
5240 * Fix two bugs found by deja-gnu. One is the incorrect reporting
5241 of the PC being in a stack dummy when looking at a core file
5242 without symbols. The other is the incorrect passing of char
5243 arguments during expression evaluation (ie: p foo('a','b') would
5244 mess up the passing of it's args because it wasn't coercing the
5245 char's to ints).
5246 * hppah-tdep.c: Rename global functions to have consistent hppa_
5247 prefix. Make more functions static. Drop hp_ prefix from static
5248 functions. (hppa_push_arguments): Call value_arg_coerce to cast
5249 char to int args if necessary. (hppa_fix_call_dummy): Create
5250 this routine from FIX_CALL_DUMMY macro in tm-hppa.h.
5251 * inferior.h (PC_IN_CALL_DUMMY): Check for frame_address being
5252 valid (ie: != 0) before doing comparison against PC.
5253 * valops.c (call_function_by_hand): Adjust call to FIX_CALL_DUMMY
5254 to reflect new arguments.
5255 * config/pa/tm-hppa.h (POP_FRAME, PUSH_ARGUMENTS): Use new hppa_
5256 prefix for func name. (FIX_CALL_DUMMY): Move code into
5257 hppah-tdep.c.
5258
5259 * testsuite/gdb.t16/gdbme.c, testsuite/gdb.t17/gdbme.c: Add calls
5260 to malloc() so that we can test GDB eval of dynamically created
5261 arrays (like char strings in `print "foo"').
5262
5263 Fri Apr 23 01:28:14 1993 Peter Schauer (pes@regent.e-technik.tu-muenchen.de)
5264
5265 * printcmd.c (print_address_symbolic): Search symtabs as well as the
5266 minimal symbols for a nearby symbol.
5267
5268 Thu Apr 22 19:44:21 1993 John Gilmore (gnu@cacophony.cygnus.com)
5269
5270 * coffread.c: Comment changes around minimal symbol recording.
5271
5272 Thu Apr 22 16:24:36 1993 K. Richard Pixley (rich@rtl.cygnus.com)
5273
5274 * command.c: comment changes only.
5275
5276 * mips-tdep.c (heuristic_fence_post): new static variable.
5277 (heuristic_proc_start): use heuristic_fence_post, print better
5278 warnings, but only if not stop_soon_quietly.
5279 (_initialize_mips_tdep): add_set_cmd for heuristic-fence-post.
5280
5281 Thu Apr 22 14:50:05 1993 Jim Kingdon (kingdon@cygnus.com)
5282
5283 * symtab.h: Fix LOC_REF_ARG comment.
5284
5285 Wed Apr 22 20:21:30 1993 Peter Schauer (pes@regent.e-technik.tu-muenchen.de)
5286 and Jim Kingdon (kingdon@cygnus.com)
5287
5288 * stabsread.c (define_symbol): Combine a 'p', 'r' arg pair to a
5289 LOC_REGPARM symbol.
5290 * config/sparc/tm-sparc.h (REG_STRUCT_HAS_ADDR): Revise comments.
5291 symfile.c (compare_symbols): Don't check first character; STRCMP
5292 does that.
5293
5294 * stabsread.c (define_symbol): Generate a LOC_REGPARM_ADDR for
5295 structures that are passed by address in a register.
5296 * symtab.h (enum address_class): Add LOC_REGPARM_ADDR.
5297 * findvar.c (read_var_value),
5298 printcmd.c (address_info, print_frame_args),
5299 stack.c (print_frame_arg_vars), symmisc.c (print_{,partial_}symbol),
5300 * symtab.c (lookup_block_symbol): Deal with it.
5301
5302 Thu Apr 22 09:07:24 1993 Jim Kingdon (kingdon@cygnus.com)
5303
5304 * objfiles.h (obj_section), objfiles.c (build_objfile_section_table):
5305 Add objfile field.
5306 * objfiles.c (find_pc_section): Return a struct obj_section *.
5307 * sparc-tdep.c (in_solib_trampoline): Deal with find_pc_section return.
5308 * symfile.c (syms_from_objfile) [IBM6000_TARGET]:
5309 Don't use obj_section hack.
5310 * xcoffexec (vmap_symtab): Relocate obj_sections.
5311 * printcmd.c (containing_function_bounds): Use find_pc_section.
5312
5313 * symtab.h: Clean up SYMBOL_VALUE comments.
5314
5315 Wed Apr 21 14:29:57 1993 Jim Kingdon (kingdon@cygnus.com)
5316
5317 * stack.c (print_frame_arg_vars), printcmd.c (print_frame_args):
5318 Expand comments about LOC_ARG/LOC_LOCAL pairs.
5319
5320 * coffread.c (read_coff_symtab): Use rewind before fseek.
5321
5322 Wed Apr 21 14:24:19 1993 Per Bothner (bothner@cygnus.com)
5323
5324 * ch-exp.y: Removed unused structure_primitive_value and FIXME_23.
5325 * Makefile.in: Add $(YFLAGS) when using $(YACC).
5326 * Makefile.in: Remove message to expect conflicts and unused
5327 rules in ch-exp.y, since there no longer are any such.
5328
5329 Wed Apr 21 13:27:50 1993 david d `zoo' zuhn (zoo at cirdan.cygnus.com)
5330
5331 * stabs.texinfo: fixed bad xrefs (un-initialized statics)
5332
5333 Tue Apr 20 08:55:11 1993 Jim Kingdon (kingdon@cygnus.com)
5334
5335 * xcoffexec.c (xcoff_relocate_core): If no exec file, error()
5336 rather than dumping core.
5337
5338 * Makefile.in: Add ${srcdir}/ to all source files.
5339 (alldeps.mak): Add "${srcdir}/" to files when generating alldeps.mak.
5340 (TAGS): Deal with srcdir and new config directory scheme.
5341 createtags: Remove.
5342 Makefile.in (NONSRC): Remove createtags.
5343 alldeps.mak: Updated.
5344
5345 * rs6000-tdep.c: Delete unused function print_frame.
5346
5347 * frame.h (struct frame_info): Doc fix for next_frame.
5348 New field signal_handler_caller.
5349 blockframe.c (create_new_frame, get_prev_frame_info),
5350 config/rs6000/tm-rs6000.h (INIT_EXTRA_FRAME_INFO): Set it (needs
5351 INIT_FRAME_PC_FIRST).
5352 stack.c (print_frame_info), rs6000-tdep.c (rs6000_frame_chain):
5353 Check it.
5354
5355 Mon Apr 19 22:52:33 1993 Stu Grossman (grossman@cygnus.com)
5356
5357 * irix4-nat.c (fetch_core_registers): Special version of this for
5358 Irix 4.x, which stores regs a bit differently from other /proc
5359 based systems.
5360 * procfs.c, core-svr4.c: Move fetch_core_registers from procfs.c
5361 to new file core-svr4.c.
5362 * config/i386/i386sol2.mh, config/i386/i386v4.mh, config/m68k/amix.mh,
5363 config/i386/ncr3000.mh, config/sparc/sun4sol2.mh: Add core-svr4.o
5364 to NATDEPFILES.
5365 * config/mips/irix4.mh: Add corelow.o to NATDEPFILES.
5366
5367 Mon Apr 19 11:13:34 1993 Jim Kingdon (kingdon@cygnus.com)
5368
5369 * i387-tdep.c: Remove unused #includes.
5370
5371 * configure.in: Match i[34]86-*-sysv3.2 not i[34]86-*-sysv32.
5372
5373 * config/i386/nm-i386v.h: Define NO_PTRACE_H.
5374
5375 Sun Apr 18 10:39:35 1993 Jim Kingdon (kingdon@cygnus.com)
5376
5377 * xcoffread.c: Nuke NO_DEFINE_SYMBOL code. There is no going back.
5378
5379 * stabsread.c (define_symbol): 'R' is synonym for 'P', not 'r'.
5380 xcoffread.c (process_xcoff_symbol, case C_RPSYM):
5381 Don't muck with SYMBOL_CLASS.
5382
5383 Fri Apr 16 17:38:33 1993 Stu Grossman (grossman@cygnus.com)
5384
5385 * munch: Don't use head command. It doesn't exist everywhere.
5386
5387 Fri Apr 16 15:07:57 1993 Fred Fish (fnf@cygnus.com)
5388
5389 * inflow.c (new_tty): Remove spurious 'o' character at end
5390 of #endif line.
5391
5392 Fri Apr 16 12:27:11 1993 Peter Schauer (pes@regent.e-technik.tu-muenchen.de)
5393
5394 * mips-tdep.c (mips_skip_prologue): Always skip the typical prologue
5395 instructions and nothing more.
5396 * mipsread.c (add_line): Add comment why we have to combine line number
5397 entries for the same line number.
5398
5399 Fri Apr 16 09:42:03 1993 Jim Kingdon (kingdon@cygnus.com)
5400
5401 * symtab.{c,h}: Doc fixes (remove symseg references, last relevant
5402 in gdb 2.8!).
5403
5404 Thu Apr 15 21:16:58 1993 Fred Fish (fnf@cygnus.com)
5405
5406 * depend, alldeps.mak: Update, now that gcc -MM bug is fixed.
5407
5408 Thu Apr 15 12:38:39 1993 Jim Kingdon (kingdon@cygnus.com)
5409
5410 * source.c (select_source_symtab): Clean up comment. Also, if
5411 we have a current_source_symtab, and s is NULL, return without
5412 doing anything.
5413 xcoffread.c (xcoff_symfile_read): Don't call select_source_symtab.
5414 breakpoint.c (breakpoint_re_set): Don't call select_source_symtab.
5415
5416 Thu Apr 15 02:37:48 1993 John Gilmore (gnu@cacophony.cygnus.com)
5417
5418 * dbxread.c (unknown_symchar_complaint): Add new complaint.
5419 * stabsread.h: Declare it.
5420 * partial-stab.h: Use it.
5421
5422 * utils.c (malloc_botch): Don't forward-declare if NO_MMALLOC.
5423
5424 Wed Apr 14 17:12:51 1993 Jim Kingdon (kingdon@cygnus.com)
5425
5426 * stack.c (print_frame_info): Print specially if dummy frame.
5427
5428 * breakpoint.c: Add comments regarding within_scope future direction.
5429
5430 * Version 4.8.3.
5431
5432 * xcoffread.c (record_include_{begin,end}): Change fatal to complain.
5433
5434 Wed Apr 14 14:03:18 1993 Per Bothner (bothner@cygnus.com)
5435
5436 * ch-exp.y: Fix thinko that broke parsing of FALSE.
5437
5438 Wed Apr 14 12:49:29 1993 Peter Schauer (pes@regent.e-technik.tu-muenchen.de)
5439
5440 * stabsread.c (read_member_functions): Initialize domain for stubbed
5441 member functions to avoid gdb core dumps when printing pointers
5442 to member functions.
5443 * cp-valprint.c (cp_print_class_method): Check for stubbed member
5444 functions.
5445
5446 Tue Apr 13 08:28:26 1993 Jim Kingdon (kingdon@cygnus.com)
5447
5448 * expprint.c (print_subexp): If opcode not found in op_print_tab,
5449 stop with an error().
5450 eval.c (evaluate_subexp): Change error message.
5451
5452 * objfiles.c (build_objfile_section_table): Cast return value
5453 from obstack_finish.
5454
5455 Mon Apr 12 10:53:50 1993 Jim Kingdon (kingdon@cygnus.com)
5456
5457 * config/rs6000/tm-rs6000.h, rs6000-tdep.c: Move FRAME_CHAIN
5458 to rs6000_frame_chain and deal with it if we're in a signal handler.
5459 (FRAME_SAVED_PC): Use rs6000_frame_chain.
5460
5461 * breakpoint.c (within_scope): New function.
5462 (enable_breakpoint, watchpoint_check): Use it.
5463
5464 * source.c (openp): Handle "exec-file ./ls" correctly.
5465
5466 * breakpoint.c (breakpoint_1): Use wrap_here before "at".
5467
5468 Sat Apr 10 01:32:43 1993 Per Bothner (bothner@rtl.cygnus.com)
5469
5470 * ch-exp.y: Clean up lexing of identifiers and
5471 reserved words. (E.g. don't recognize FALSEXXX as the
5472 keyword FALSE followed by the identifier XXX.)
5473 Also, convert identifiers to lower case.
5474
5475 Fri Apr 9 15:53:19 1993 Stu Grossman (grossman@cygnus.com)
5476
5477 * remote-mips.c, remote-monitor.c, remote-st2000.c: Convert to
5478 new serial interface.
5479
5480 Fri Apr 9 15:01:12 1993 Stu Grossman (grossman@cygnus.com)
5481
5482 * remote.c (remote_open): Use SERIAL_OPEN instead of serial_open.
5483 (putpkt, getpkt): Use new return codes for SERIAL_READCHAR.
5484 * ser-go32.c: Return -1 on most failures, 0 on most successes,
5485 and use new return codes for go32_readchar().
5486 * ser-unix.c: Ditto. Also, move error handling up to caller for
5487 SERIAL_SETBAUDRATE().
5488 * serial.c (serial_open): Internal call, not SERIAL_OPEN to get
5489 to specific routine.
5490 (serial_close): New routine to wrap around device close routine.
5491 serial.h: Clean & document return values more clearly.
5492
5493 Fri Apr 9 10:20:55 1993 Jim Kingdon (kingdon@cygnus.com)
5494
5495 * rs6000-pinsn.c (print_operand): Deal with no operand instructions.
5496
5497 * rs6000-pinsn.c (print_operand, case LI): Print condition register
5498 operand in decimal rather than wrong textual versions.
5499
5500 * printcmd.c (_initialize_printcmd): Clean up docstring for "x"
5501 (mention 't', remove false thing about 'g' only good with 'f').
5502
5503 * breakpoint.h: move "struct breakpoint" and friends to top of
5504 file so that bpstat_find_breakpoint prototype works.
5505
5506 * solib.c (struct so_list): Add bfd field.
5507 (solib_map_sections): Leave bfd open and scratch_pathname allocated.
5508 Put the bfd in bfd field of the so_list.
5509 (clear_solib): Free bfd name and close_bfd on the bfd.
5510
5511 Fri Apr 9 00:45:41 1993 Per Bothner (bothner@rtl.cygnus.com)
5512
5513 * valarith.c (value_subscript): Add COERCE_REF.
5514 * ch-exp.y (operand_5): We can generalize the 2nd operand
5515 of a string repetition ot 'literal' without ambiguity.
5516
5517 Thu Apr 8 10:15:10 1993 Jim Kingdon (kingdon@lioth.cygnus.com)
5518
5519 * breakpoint.h (struct bpstat): Remove momentary field.
5520 Remove bpstat_momentary_breakpoint. This was always kludgy
5521 and is no longer used.
5522
5523 * breakpoint.h: Add enum bpstat_what.
5524 breakpoint.h (struct bpstat), breakpoint.c (bpstat_stop_status):
5525 stop and print fields of bpstat now per-breakpoint, not just
5526 one for the whole chain.
5527 breakpoint.{c,h} (bpstat_what): New function.
5528 breakpoint.h: Remove bpstat_stop and bpstat_should_print.
5529 infrun.c: Replace switch (stop_bpstat->breakpoint_at->type)
5530 with call to bpstat_what.
5531 README: Remove watchpoint/breakpoint bug from known bugs.
5532
5533 * breakpoint.h: Prototype bpstat_find_breakpoint.
5534
5535 Thu Apr 8 16:01:21 1993 Fred Fish (fnf@cygnus.com)
5536
5537 * symtab.c (find_methods, gdb_mangle_name): Note that functions
5538 are g++ specific.
5539 * symtab.h (VTBL_FNADDR_OFFSET, OPNAME_PREFIX_P, VTBL_PREFIX_P,
5540 DESTRUCTOR_PREFIX_P): Note that macros are g++ specific.
5541
5542 Thu Apr 8 12:45:32 1993 Ian Lance Taylor (ian@cygnus.com)
5543
5544 * i960-pinsn.c (tabent): Copied struct definition from
5545 opcodes/i960-dis.c.
5546
5547 Thu Apr 8 10:34:37 1993 Peter Schauer (pes@regent.e-technik.tu-muenchen.de)
5548
5549 * symtab.h (DESTRUCTOR_PREFIX_P): New macro to check if physname
5550 is a C++ destructor.
5551 * symtab.c (gdb_mangle_name): Use it.
5552 * symtab.c (find_methods): Do not add destructors to choice list
5553 for constructors.
5554 * symtab.c (decode_line_1): Make breakpoints on destructors work
5555 for gcc-2.x again.
5556
5557 Wed Apr 7 18:43:09 1993 Stu Grossman (grossman@cygnus.com)
5558
5559 * ser-go32.c: Make it use serial port name.
5560 * go32-xdep.c: Put in def for strlwr, needed by dir.o in go32 libc.
5561
5562 * infcmd.c (read_pc): Make sure that we read PC_REGNUM when not
5563 in a system call!
5564
5565 Wed Apr 7 15:52:11 1993 Stu Grossman (grossman@cygnus.com)
5566
5567 * configure.in: Only configure sparclite subdir when target_cpu
5568 is sparclite.
5569
5570 Wed Apr 7 10:11:22 1993 Jim Kingdon (kingdon@cygnus.com)
5571
5572 * xcoffread.c (struct coff_symbol): Change c_sclass to unsigned char.
5573 Remove FIXME comment regarding this.
5574
5575 * symfile.h: Change NULL->'\0' in comment (that wasn't a typo).
5576
5577 * xcoffread.c (read_xcoff_symtab): Use E_SYMNMLEN.
5578
5579 Tue Apr 6 22:30:58 1993 K. Richard Pixley (rich@cygnus.com)
5580
5581 Add section table to objfile struct. Use it for find_pc_section.
5582 * objfiles.c (add_to_objfile_sections,
5583 build_objfile_section_table, find_pc_section): new functions.
5584 (allocate_objfile): build section table.
5585 * objfiles.h (struct obj_section): new structure.
5586 (struct objfile): add section table.
5587 (find_pc_section): new prototype.
5588 * solib.[ch] (find_pc_section_from_so_list): removed.
5589 * sparc-tdep.c: include objfiles.h for find_pc_section. include
5590 symfile.h for objfiles.h.
5591 (in_solib_trampoline): adjusted for new find_pc_section
5592 prototype. Removed BAD_RICH_HACK ifdefs.
5593 * symfile.c (syms_from_objfile): offset objfile sections.
5594 (find_pc_section): removed. Also removed BAD_RICH_HACK ifdefs.
5595 * symfile.h (find_pc_section): prototype removed. Also fixed
5596 comment typo NUL -> NULL.
5597 * target.[ch] (find_pc_section_from_targets): removed.
5598 * config/sparc/tm-sun4sol2.h (BAD_RICHH_HACK): removed.
5599
5600 Tue Apr 6 21:41:13 1993 Stu Grossman (grossman@cygnus.com)
5601
5602 * ser-go32.c: Format. (go32_open): Use proper return value.
5603
5604 * configure.in: Undo conditional configdirs hack for sparclite.
5605
5606 Tue Apr 6 17:07:37 1993 Jim Wilson (wilson@sphagnum.cygnus.com)
5607
5608 * symtab.c (list_symbols): When call break_command, pass both
5609 filename and function name not just function name.
5610
5611 Tue Apr 6 15:00:09 1993 Fred Fish (fnf@cygnus.com)
5612
5613 (Changes and new files to make "none" a full fledged configuration)
5614 * config/none/{nm-none.h, tm-none.h, xm-none.h}: New files.
5615 Currently only tm-none.h has any meaningful contents.
5616 * config/none/none.mh (NAT_FILE): Use nm-none.h
5617 * config/none/none.mh (XM_FILE): Use xm-none.h
5618 * config/none/none.mt (TM_FILE): Use tm-none.h
5619 * Makefile.in (depend): Remove comment about parse errors in
5620 valops.c, it now parses correctly and generates a correct depend
5621 line. Remove line that touches xm.h, tm.h, and nm.h; they are
5622 now linked to config/none/{xm-none.h, tm-none.h, nm-none.h}.
5623
5624 Tue Apr 6 09:54:29 1993 Jim Kingdon (kingdon@cygnus.com)
5625
5626 * values.c (USE_STRUCT_RETURN): Only use gcc wierdness for gcc1.
5627
5628 * xcoffread.c (read_xcoff_symtab): Deal correctly with symbols of
5629 exactly 8 characters.
5630
5631 Tue Apr 6 10:31:26 1993 Stu Grossman (grossman@cygnus.com)
5632
5633 * configure.in: Sparclite uses sparc config dir. Also has it's
5634 own tm- & .mt files now. Also add sparclite to configdirs.
5635 * go32-xdep.c: Dummy routines for sigsetmask & strlwr.
5636 * config/i386/go32.mh: Nullify def of TERMCAP.
5637 * config/i386/xm-go32.h: Get rid of redef of EIO.
5638 * config/sparc/{sparclite.mh tm-sparclite.h}: New sparclite
5639 specific configs. Very similar to sun4os4, but without solib.
5640 * sparclite/{Makefile.in configure.in}: First cut at making this
5641 dir configgable.
5642
5643 Tue Apr 6 03:10:44 1993 Stu Grossman (grossman@cygnus.com)
5644
5645 * ser-go32.c: First cut at adapting to new serial interface.
5646
5647 Mon Apr 5 22:29:43 1993 Stu Grossman (grossman@cygnus.com)
5648
5649 * Makefile.in (SFILES OBS): Add serial.[co] & ser-hardwire.[co].
5650 These implement a new serial line interface for talking to remote
5651 targets.
5652 * configure.in: Link ser-hardwire.c to ser-unix.c for all hosts,
5653 EXCEPT go32, which gets ser-go32.c.
5654 * remote.c: Use new serial interface. More remote-xxx's to be
5655 converted later.
5656 * ser-bsd.c, ser-termios.c: Removed.
5657 * serial.c: New. Implements common operations for all serial
5658 types.
5659 * ser-unix.c: New. Unix specific serial operations for various
5660 flavors of Unix (Posix, SysV, BSD).
5661 * serial.h: Generic serial interface defs.
5662 * config/i386/go32.mh, config/i386/i386bsd.h,
5663 config/m68k/apollo68b.mh, config/sparc/sun4os4.mh: Remove
5664 ser-bsd.o from XDEPFILES. All the magic is now handled in
5665 configure.in.
5666
5667 Mon Apr 5 20:48:54 1993 Stu Grossman (grossman@cygnus.com)
5668
5669 * config/h8500/tm-h8500.h: Clean up brain damage found by GCC.
5670
5671 Fri Apr 2 08:23:14 1993 Jim Kingdon (kingdon@cygnus.com)
5672
5673 * xcoffread.c (xcoff_symfile_offsets): Use 0 not addr for offsets.
5674
5675 * rs6000-tdep.c (frameless_function_invocation): Don't even think
5676 about framelessness except on the innermost frame.
5677
5678 * xcoffexec.c: Call fatal() not abort().
5679
5680 * stabsread.c (patch_block_stabs): If stab & no symbol, make
5681 a LOC_OPTIMIZED_OUT symbol.
5682 symtab.h (enum address_class): Add LOC_OPTIMIZED_OUT.
5683 findvar.c (read_var_value), printcmd.c (address_info),
5684 symmisc.c (print_{,partial_}symbol), c-exp.y (variable),
5685 m2-exp.y (yylex): Deal with it.
5686 ch-exp.y (yylex): Deal with it.
5687
5688 Thu Apr 1 18:43:02 1993 Stu Grossman (grossman@cygnus.com)
5689
5690 * findvar.c (value_from_register): H8500 specific, check to see
5691 if we are looking at short pointer. If so, skip crock.
5692 * h8500-tdep.c (h8500_frame_chain): Mask down value from
5693 read_memory_integer() to avoid getting messed up by sign extension.
5694
5695 Thu Apr 1 16:44:41 1993 K. Richard Pixley (rich@rtl.cygnus.com)
5696
5697 * sparc-tdep.c (in_solib_trampoline), symfile.c (find_pc_section):
5698 ifdef protect using BAD_RICH_HACK. This should be removed soon.
5699 * config/sparc/tm-sun4sol2.h (BAD_RICH_HACK): define.
5700
5701 Thu Apr 1 09:01:38 1993 Jim Kingdon (kingdon@cygnus.com)
5702
5703 * i960-pinsn.c, a29k-pinsn.c: Much abridged, just use libopcodes.a.
5704
5705 * core.c (dis_asm_print_address): New function.
5706
5707 * core.c (dis_asm_read_memory): Reinstate 4th arg. The prototype
5708 has been fixed.
5709
5710 Thu Apr 1 09:34:43 1993 Peter Schauer (pes@regent.e-technik.tu-muenchen.de)
5711
5712 * breakpoint.c (bpstat_print, bpstat_stop_status): Change to walk the
5713 entire breakpoint chain and print only the first entry that needs to
5714 be printed and needs to be stopped for. Fixes problems with printing
5715 of multiple breakpoints with different conditions.
5716 * breakpoint.c (print_it_done): Renamed from print_it_noop as it
5717 effectively stops printing of the breakpoint chain.
5718 * breakpoint.c (print_it_noop): New routine to print nothing
5719 for this breakpoint entry and dont stop printing.
5720 * breakpoint.c (breakpoint_re_set_one): mention the reevaluated
5721 watchpoint only if it is enabled.
5722 * mipsread.c (parse_procedure): Correct incorrect setjmp procedure
5723 descriptor from the library to make backtraces through setjmp work.
5724 * mipsread.c (fixup_sigtramp): Correct pcreg and fregoffset for
5725 sigtramp.
5726 * mips-tdep.c (read_next_frame_reg): Provide correct values for
5727 all registers saved within sigtramp, cleanup.
5728
5729 Wed Mar 31 12:52:12 1993 Jim Kingdon (kingdon@lioth.cygnus.com)
5730
5731 * sparc-pinsn.c: Much abridged, just calls version in libopcodes.a.
5732
5733 Wed Mar 31 21:23:41 1993 K. Richard Pixley (rich@rtl.cygnus.com)
5734
5735 * core.c (dis_asm_read_memory): drop fourth arg which conflicts
5736 with prototype in ../include/dis-asm.h.
5737
5738 Wed Mar 31 12:52:12 1993 Jim Kingdon (kingdon@lioth.cygnus.com)
5739
5740 * core.c (dis_asm_{read_memory,memory_error}): New functions.
5741 m68k-pinsn.c, h8500-tdep.c, i386-pinsn.c, mips-pinsn.c, z8k-tdep.c:
5742 Use read_memory_func interface to disassembler.
5743
5744 Tue Mar 30 15:46:14 1993 K. Richard Pixley (rich@rtl.cygnus.com)
5745
5746 Teach sparc solaris to next over shared library functions.
5747 * solib.[hc] (find_pc_section_from_so_list): new function and
5748 prototype.
5749 * sparc-tdep.c (in_solib_trampoline): new function.
5750 * symfile.[hc] (find_pc_section): new function and prototypes.
5751 * target.[hc] (find_pc_section_from_targets): new function and
5752 prototypes.
5753 * config/sparc/tm-sun4sol2.h (IN_SOLIB_TRAMPOLINE): redefine to
5754 in_solib_trampoline.
5755
5756 Tue Mar 30 08:06:24 1993 Jim Kingdon (kingdon@cygnus.com)
5757
5758 * infrun.c (wait_for_inferior): Revise comment.
5759
5760 * command.c (do_setshow_command): Use %u with var_{u,z}integer.
5761
5762 * command.{c,h}: New var_type var_integer.
5763 main.c: Use it for history_size.
5764
5765 * rs6000-tdep.c, xcoffexec.c, config/rs6000/xm-rs6000.h, breakpoint.c:
5766 Lint and byte-order fixups.
5767
5768 * breakpoint.c (print_it_normal): Return 0 after hitting watchpoint.
5769
5770 * breakpoint.h (bpstat): New field print_it.
5771 breakpoint.c (bpstat_print): Use it.
5772 (print_it_normal): New function (from old bpstat_print code).
5773 (bpstat_{alloc,stop_status}): Set print_it field.
5774
5775 * breakpoint.c (bpstat_stop_status): Use catch_errors when
5776 evaluating watchpoint condition, via new function watchpoint_check.
5777 Also stop if watchpoint disabled due to leaving its block.
5778
5779 * findvar.c [REG_STRUCT_HAS_ADDR]: Add comment.
5780
5781 Tue Mar 30 00:14:38 1993 Peter Schauer (pes@regent.e-technik.tu-muenchen.de)
5782
5783 * mips-pinsn.c: Add missing include of dis-asm.h.
5784
5785 Mon Mar 29 15:03:25 1993 Fred Fish (fnf@cygnus.com)
5786
5787 * Makefile.in (clean, distclean, realclean): Recursively apply
5788 to subdirs first, rather than last. This avoids, for example,
5789 Makefile being removed in a parent directory before the recursive
5790 make is run.
5791
5792 * alldeps.mak, depend: Update for below changes.
5793
5794 * config/m68k/tm-m68k.h: Renamed from config/m68k/tm-68k.h.
5795 * m68k/{tm-3b1.h, tm-altos.h, tm-amix.h, tm-es1800.h,
5796 tm-hp300bsd.h, tm-hp300hpux.h, tm-isi.h, tm-news.h, tm-os68k.h,
5797 tm-st2000.h, tm-sun2.h, tm-sun3.h, tm-vx68.h}: Include tm-m68k.h
5798 instead of tm-68k.h.
5799 * Makefile.in (HFILES): tm-68k.h renamed to tm-m68k.h.
5800 * README, a29k-pinsn.c, m68k-pinsn.c, m68k-stub.c, remote-vx.c,
5801 m68k/{altos.mh, altos.mt, apollo68b.mh, nm-apollo68b.h,
5802 nm-hp300bsd.h, config/m68k/xm-apollo68b.h}: Map '68k' to 'm68k'.
5803 * a29k/tm-a29k.h, doc/gdbint.texinfo: Account for renaming of
5804 tm-68k.h to tm-m68k.h.
5805 * m68k/m68k-fp.mt (TM_FILE): tm-68k-fp.h renamed to tm-m68k-fp.h.
5806 * m68k/m68k-nofp.mt (TM_FILE): tm-68k-nofp.h renamed to
5807 tm-m68k-nofp.h.
5808
5809 * config/a29k/tm-a29k.h: Renamed from config/a29k/tm-29k.h.
5810 * a29k-pinsn.c: Renamed from am29k-pinsn.c.
5811 * a29k-tdep.c: Renamed from am29k-tdep.c.
5812 * remote-eb.c, config/a29k/tm-ultra3.h: Include renamed tm-a29k.h.
5813 * remote-monitor.c, remote-st2000.c, config/a29k/{nm-ultra3.h,
5814 tm-a29k.h, xm-ultra3.h}, config/romp/rtbsd.mh, doc/gdbinv-s.texi,
5815 testsuite/gdb.t15/funcargs.exp, testsuite/gdb.t17/callfuncs.exp:
5816 Map '29k' to 'a29k'.
5817 * config/a29k/{a29k-kern.mt, a29k-udi.mt, a29k.mt, ultra3.mt}
5818 (TDEPFILES): Use renamed a29k-pinsn.o and a29k-tdep.o.
5819 * config/a29k/{a29k-udi.mt, a29k.mt} (TM_FILE): Use renamed
5820 tm-a29k.h.
5821 * config/a29k/a29k-udi.mt (MT_CFLAGS): Remove TARGET_AM29K
5822 define that does not appear anywhere else in the gdb source tree.
5823 * doc/gdbinit.texinfo: Document renaming of tm-29k.h to tm-a29k.h.
5824
5825 Mon Mar 29 13:55:29 1993 Jim Kingdon (kingdon@cygnus.com)
5826
5827 * breakpoint.c: Add comments regarding breakpoint_re_set.
5828
5829 * xcoffread.c (sort_syms, compare_symbols): Remove.
5830 (xcoff_symfile_read): Use sort_all_symtab_syms from symfile.c
5831 not our own sort_syms (it is identical).
5832
5833 * xcoffread.c: Nuke NAMES_HAVE_DOT define (not used).
5834
5835 Sun Mar 28 11:24:37 1993 Peter Schauer (pes@regent.e-technik.tu-muenchen.de)
5836
5837 * breakpoint.c (breakpoint_re_set_one): Fix storage leak.
5838 * breakpoint.c (enable_breakpoint): Don't enable watchpoint if it
5839 went out of scope.
5840 * exec.c (exec_close): Fix storage leak.
5841 * exec.c (exec_file_command): Make sure that bfd doesn't realign the
5842 output sections when patching an executable.
5843 * mips-nat.c (store_inferior_registers): Use REGISTER_PTRACE_ADDR
5844 when writing all registers.
5845 * mips-tdep.c (mips_push_dummy_frame): Save floating point registers
5846 at the right offset in the dummy frame.
5847 * mipsread.c (psymtab_to_symtab_1): Do not complain for stProc,
5848 stStaticProc and stEnd symbols as they are generated by gcc-2.x.
5849 * mipsread.c (mipscoff_new_init): Initialize stabsread and buildsym.
5850
5851 Fri Mar 26 15:25:05 1993 John Gilmore (gnu@cygnus.com)
5852
5853 * Makefile.in (TARFILES): Avoid trailing backslash.
5854
5855 Fri Mar 26 11:29:30 1993 Jim Kingdon (kingdon@cygnus.com)
5856
5857 * breakpoint.{c,h}: Add exp_string to struct breakpoint and use
5858 it in breakpoint_re_set.
5859 * breakpoint.c (watch_command, enable_breakpoint): Fetch lazy values.
5860
5861 * rs6000-tdep.c (single_step): Misc cleanups (CORE_ADDR not int,
5862 don't use sizeof(int) for target stuff, etc).
5863
5864 Thu Mar 25 15:03:53 1993 Fred Fish (fnf@cygnus.com)
5865
5866 * alldeps.mak, configure.in, i860-break.h, i860-opcode.h,
5867 i860-pinsn.c, i860-tdep.c, config/i860/*: Remove incomplete i860
5868 support that can't be integrated anyway due to lack of clear
5869 authorship.
5870
5871 Thu Mar 25 12:26:50 1993 Stu Grossman (grossman@cygnus.com)
5872
5873 * findvar.c (read_register, write_register): Make these capable
5874 of reading/writing registers that are shorter than REGISTER_TYPE.
5875 * (value_from_register): Install H8500 specific code to return
5876 proper value when register is being used as a pointer.
5877 * h8500-tdep.c: Remove extra defines of NUM_REGS.
5878 (h8500_skip_prologue): Use correct lengths for LINK instructions.
5879 (FRAME_CHAIN): Change name to h8500_frame_chain. Rewrite code to
5880 chain frames properly by combining frame pointer with T reg.
5881 (init_extra_frame_info): Delete. It's now a macro.
5882 (frame_args_address): Don't add PTR_SIZE. Stack args are already
5883 offset by the correct amount off of the frame pointer.
5884 (register_byte): Delete. It's now a macro.
5885 (register_raw_size, register_virtual_size): Delete. Replaced by
5886 common routine h8500_register_size, cuz there's no difference
5887 between the raw & virtual sizes on this machine.
5888 (register_convert_to_raw, register_convert_to_virtual): Delete,
5889 cuz there's no difference between the raw & virtual forms.
5890 Replaced by memcpy in tm file.
5891 (register_virtual_type): Rename to h8500_register_virtual_type.
5892 Get rid of pointer pseudo-regs, use _REGNUM with all reg names.
5893 (_initialize_h8500_tdep): Get rid of crock to ensure that GDB &
5894 emulator have same reg offsets. This is all handled in the
5895 simulator code now.
5896 (h8500_trapped_internalvar): New routine to detect references to
5897 convenience vars acting as pointer pseudo-regs.
5898 (h8500_value_trapped_internalvar): Conjure up value of pointer
5899 pseudo-regs.
5900 (h8500_set_trapped_internalvar): Convert set value in real
5901 register references.
5902 infcmd.c (read_pc, write_pc): Add h8500 specific code to handle
5903 code segment register.
5904 infrun.c (proceed): Simplify. Call write_pc instead of doing it
5905 by hand.
5906 (wait_for_inferior): Add h8500 specific code to add stack segment
5907 when reading SP register.
5908 remote-sim.c (fetch_register): Spacing.
5909 tm-h8500.h: #define GDB_TARGET_IS_H8500 to make it easier to
5910 detect cruft. Redo all register manipulation stuff. Get rid of
5911 pointer pseudo-regs. (INIT_EXTRA_FRAME_INFO): Adds stack segment
5912 to frame pointer. (IS_TRAPPED_INTERNALVAL,
5913 VALUE_OF_TRAPPED_INTERNALVAR, SET_TRAPPED_INTERNALVAR): Use these
5914 to create internal vars for pointer pseudo-regs.
5915
5916 Thu Mar 25 10:10:28 1993 Fred Fish (fnf@cygnus.com)
5917
5918 * Makefile.in: Numerous small changes to macro definitions
5919 and rules for building gdb distribution tree. Many macros
5920 eliminated or merged, and rules simplified.
5921 * alldeps.mak: Update.
5922 * depend: Update.
5923
5924 Wed Mar 24 13:52:29 1993 david d `zoo' zuhn (zoo at poseidon.cygnus.com)
5925
5926 * Makefile.in: recurse through SUBDIRS for dvi target too
5927
5928 Wed Mar 24 08:48:30 1993 Jim Kingdon (kingdon@cygnus.com)
5929
5930 * Clean up xcoff relocation.
5931 objfiles.h (struct objfiles): Add section_offsets, num_sections.
5932 symfile.c (syms_from_objfile), xcoffread.c (xcoff_symfile_offsets):
5933 Set them.
5934 symtab.h (struct general_symbol_info): Add section field.
5935 minsyms.c (prim_record_minimal_symbol{,_and_info}): Set it.
5936 xcoffread.c: Set section for symbols and msymbols.
5937 (struct symtab): Add block_line_section field.
5938 buildsym.c (end_symtab): Set it.
5939 (end_symtab and callers): Add section parameter.
5940 objfiles.c (objfile_relocate): New funciton.
5941 xcoffexec.c (vmap_symtab): Use it.
5942 xcoffsolib.h (struct vmap): Remove unused fields.
5943 config/rs6000/tm-rs6000.h, stack.c, xcoffexec.c: Remove
5944 CORE_NEEDS_RELOCATION, symtab_relocated.
5945 config/rs6000/tm-rs6000.h: Remove use of loadinfotext.
5946 rs6000-tdep.c: Make loadinfotext static.
5947 breakpoint.c (fixup_breakpoints): Doc fix.
5948 symtab.h (struct symtab), config/rs6000/tm-rs6000.h, buildsym.c
5949 (end_symtab): primary field replaces nonreloc.
5950
5951 Tue Mar 23 00:10:53 1993 John Gilmore (gnu@cygnus.com)
5952
5953 * symtab.h (struct linetable_entry): Remove confusing comment.
5954
5955 Tue Mar 23 00:01:23 1993 david d `zoo' zuhn (zoo at cirdan.cygnus.com)
5956
5957 * Makefile.in: add installcheck target
5958
5959 Mon Mar 22 16:17:58 1993 Fred Fish (fnf@cygnus.com)
5960
5961 * config/{a29k, arm, convex, gould, h8300, i386, i860, i960, m68k,
5962 m88k, mips, none, ns32k, pa, pyr, romp, rs6000, sparc, tahoe, vax,
5963 z8k}: New directories to hold cpu specific configuration files.
5964 Naming follows gcc convention.
5965 * config/{*.mt, *.mh}: All target and host makefile fragment
5966 config files moved to an appropriate config/<cpu> subdirectory.
5967 * nm-*, xm-*, tm-*: All native, host, and target files, which
5968 get linked to nm.h, xm.h, and tm.h respectively by configure,
5969 moved to appropriate config/<cpu> subdirectory.
5970 * nm-sysv4.h, xm-sysv4.h, tm-sysv4.h, tm-sunos.h, nm-trash.h:
5971 Native, host, and target files that are common across more than
5972 one cpu architecture and included by one of the configured
5973 native, host, or target files, get moved to config directory.
5974 * Makefile.in (INCLUDE_CFLAGS): Add -I${srcdir}/config to
5975 pick up native, host, or target include files moved to one of
5976 the config subdirectories, and that are included by other files.
5977 * Makefile.in (alldeps.mak): Modify to account for new config
5978 directory structure.
5979 * alldeps.mak, depend: Update for new config directory structure.
5980 * config/*/[ntx]m-*.h: Modify all files that include other
5981 [ntx]m-*.h files to use path relative to gdb/config. I.E.
5982 "a29k/tm-ultra3.h" includes "a29k/tm-29k.h" rather than just
5983 "tm-29k.h".
5984 * remote-eb.c (tm-29k.h): Include a29k/tm-29k.h.
5985 * mipsread.c (tm-mips.h): Include mips/tm-mips.h.
5986 * i860-pinsn.c (tm-i860.h): Include i860/tm-i860.h.
5987 * configure.in: Default gdb_host_cpu to host_cpu, and remap
5988 the ones where the default is not unique or different than the
5989 config subdirectory name. Similarly, handle gdb_target_cpu.
5990 Modify configure.in as appropriate to make use of gdb_host_cpu
5991 and gdb_target_cpu to find makefile fragments and make links.
5992
5993 Mon Mar 22 12:36:24 1993 Ian Lance Taylor (ian@cygnus.com)
5994
5995 * mipsread.c (compare_blocks): Sort blocks with the same start
5996 address by decreasing ending address.
5997
5998 Mon Mar 22 20:36:04 1993 Peter Schauer (pes@regent.e-technik.tu-muenchen.de)
5999
6000 * mipsread.c (parse_procedure): Save cur_fdr accross call to
6001 lookup_symbol as it might get clobbered by the call.
6002
6003 * mipsread.c (parse_partial_symbols): Use ADD_PSYMBOL_ADDR_TO_LIST.
6004 The previous code did not initialize the language field for the psymtab
6005 entry.
6006
6007 Sat Mar 20 00:33:39 1993 John Gilmore (gnu@cygnus.com)
6008
6009 * c-exp.y (parse_number): Avoid shift warning.
6010 * serial.h (struct ttystate): Declare empty one on DOS.
6011
6012 Fri Mar 19 12:59:50 1993 Stu Grossman (grossman@cygnus.com)
6013
6014 * xm-sun4os4.h: Return type of free() should be void, not int.
6015
6016 * vx-share/vxWorks.h: Remove #def of NULL.
6017
6018 Fri Mar 19 11:28:18 1993 Jim Kingdon (kingdon@cygnus.com)
6019
6020 * tm-rs6000.h: Nuke no-op STAB_REG_TO_REGNUM.
6021
6022 Fri Mar 19 07:40:09 1993 Steve Chamberlain (sac@cygnus.com)
6023
6024 * z8k-tdep.c (print_insn): Include the new dis-asm header file.
6025
6026 Thu Mar 18 14:26:57 1993 Per Bothner (bothner@rtl.cygnus.com)
6027
6028 * ieee-float.c: Moved to ../libiberty.
6029 * ieee-float.h: Moved to ../include.
6030 * Makefile.in: Update accordingly.
6031 * i386-pinsn.c (print_insn), m68k-pinsn.c (print_insn):
6032 Convert to stubs that call disassemblers in ../opcodes/*-dis.c.
6033 * m68k-tdep.c: Removed definition of ext_format ext_format_68881;
6034 it is now in ../opcodes/m68881-ext.c.
6035 * mips-tdep.c (mips_skip_prologue): Try to skip more of the
6036 prologue (some callers _do_ care).
6037 * mips-pinsn.c (print_insn), z8k-tdep.c (print_insn): Convert to
6038 new interface of ../opcodes/*-dis.c.
6039 * ch-exp.y: Add #include <ctype.h>.
6040
6041 Thu Mar 18 11:57:49 1993 Jim Kingdon (kingdon@cygnus.com)
6042
6043 * xcoffexec.c (exec_close): Don't close exec_bfd twice.
6044
6045 * xcoffread.c (enter_line_range): endaddr is exclusive, not inclusive.
6046
6047 Wed Mar 17 09:46:31 1993 Jim Kingdon (kingdon@cygnus.com)
6048
6049 * xcoffread.c (arrange_linetable): Use x{m,re}alloc not {m,re}alloc.
6050
6051 Wed Mar 17 11:28:11 1993 Steve Chamberlain (sac@thepub.cygnus.com)
6052
6053 * z8k-tdep.c (extract_return_value, write_return_value,
6054 store_struct_return): New functions from macros in tm-z8k.h.
6055
6056 Wed Mar 17 11:23:06 1993 Fred Fish (fnf@cygnus.com)
6057
6058 * valops.c (value_arg_coerce): Apply temporary patch to
6059 fix problem with coercion of array and function types when
6060 passed as arguments to C functions, pending a more complete
6061 review of when and how coercion should be done, depending
6062 upon context and language.
6063
6064 Wed Mar 17 09:46:31 1993 Jim Kingdon (kingdon@cygnus.com)
6065
6066 * xcoffread.c (MIN_TBTABSIZ): Change to 12.
6067
6068 * xcoffread.c (xcoff_symfile_read): Only read stringtab and
6069 debugsec if there are a non-zero number of symbols.
6070
6071 Tue Mar 16 18:08:45 1993 John Gilmore (gnu@cygnus.com)
6072
6073 * command.c (show_user): Avoid fprintf_filtered botch (AGAIN!).
6074
6075 Tue Mar 16 15:18:17 1993 Jim Kingdon (kingdon@cygnus.com)
6076
6077 * xcoffexec.c (add_vmap): Wrap symbol read in catch_errors.
6078
6079 * xcoffread.c (read_symbol_lineno): Look to end of symbols for .bf,
6080 not just 50 symbols.
6081 (symtbl_num_syms): New variable.
6082 (read_xcoff_symtab): Set it.
6083 (read_symbol_nvalue): Check for bad symno.
6084 (read_symbol_{lineno,nvalue}, callers): Don't pass symtable; it's
6085 always symtbl.
6086
6087 Tue Mar 16 10:09:05 1993 Stu Grossman (grossman@cygnus.com)
6088
6089 * config/rs6000.mh: Get rid of -Dfd_set=int crock.
6090 This is defined in defs.h if necessary.
6091 * vx-share/vxWorks.h: Remove #defs of min and max.
6092 * vx-share/xdr_ld.c, vx-share/xdr_ptrace.c,
6093 vx-share/xdr_rdb.c: include defs.h.
6094
6095 Fri Mar 12 09:33:23 1993 Jim Kingdon (kingdon@cygnus.com)
6096
6097 * xcoffread.c (retrieve_tracebackinfo): Move assignment out
6098 of while condition.
6099
6100 * xcoffread.c (enter_line_range): complain() on bad endoffset.
6101 xcoffread.c: Doc fixes.
6102
6103 Tue Mar 9 09:56:12 1993 Jim Kingdon (kingdon@cygnus.com)
6104
6105 * tm-rs6000.h (CORE_NEEDS_RELOCATION): Just call xcoff_relocate_core.
6106 xcoffexec.c (xcoff_relocate_core): New function.
6107 (text_adjustment): Removed.
6108 (add_vmap): Return the vmap.
6109 rs6000-tdep.c (add_text_to_loadinfo): No longer static.
6110
6111 Fri Mar 5 05:22:46 1993 Jim Kingdon (kingdon@cygnus.com)
6112
6113 * xcoffsolib.h: Add objfile member to struct vmap.
6114 xcoff{exec,solib}.c: Use it, not lookup_objfile_bfd.
6115 xcoffexec.c (add_vmap): Allocate objfiles here.
6116
6117 Sun Mar 14 02:54:15 1993 John Gilmore (gnu@cygnus.com)
6118
6119 Support 68000 series without floating point.
6120
6121 * configure.in (m68000-*-{aout,elf,coff}): New configs.
6122 * tm-68k-nofp.h: New file, lacks 68881 support.
6123 * config/m68k-nofp.mt: New file.
6124
6125 Sun Mar 14 02:30:08 1993 John Gilmore (gnu@cygnus.com)
6126
6127 Remove a few remaining underscore/no-underscore remnants from
6128 config files.
6129
6130 * config/{m68k-un.mt, sparc-un.mt}: Remove.
6131 * config/m68k-noun.mt: Rename to m68k-fp.mt.
6132 * config/sparc-noun.mt: Rename to sparc-em.mt.
6133 * tm-68k-noun.h, tm-spc-noun.h: Remove.
6134 * tm-68k-un.h: Rename to tm-68k-fp.h.
6135 * tm-spc-un.h: Rename to tm-spc-em.h.
6136 * tm-sun4sol2.h: Cleanup.
6137 * configure.in (m68k-*, sparc-* targets): Corresponding changes.
6138
6139 Sat Mar 13 14:58:22 1993 John Gilmore (gnu@cygnus.com)
6140
6141 * symmisc.c (std_in, std_out, std_err): Move initializations
6142 to runtime code, in case they aren't constant.
6143
6144 Fri Mar 12 16:23:54 1993 K. Richard Pixley (rich@cygnus.com)
6145
6146 * symtab.c (find_pc_symtab): some object file formats, notably
6147 mips, have holes in the address ranges of symtabs. Change
6148 this algorithm from first hit to tightest fit.
6149
6150 * mips-tdep.c (heuristic_proc_start): if we walk the pc into the
6151 fence post without finding the enclosing function, then print a
6152 warning.
6153
6154 Thu Mar 11 09:33:01 1993 Fred Fish (fnf@cygnus.com)
6155
6156 * utils.c (fputs_demangled, fprint_symbol): Remove.
6157 * utils.c (fprintf_symbol_filtered): New function which combines
6158 the functionality of fputs_demangled and fprint_symbol. Uses a
6159 caller provided language parameter to select the appropriate
6160 demangler, and caller provided args to pass to the demangler.
6161 * defs.h (enum language): Move further up in file so enum can
6162 be used in prototypes.
6163 * defs.h (fputs_demangled, fprint_symbol): Remove prototypes.
6164 * defs.h (fprintf_symbol_filtered): Add prototype.
6165 * c-typeprint.c (cp_type_print_method_args): Replace calls to
6166 fputs_demangled with call to fprintf_symbol_filtered.
6167 * cp-valprint.c (demangle.h): Include
6168 * cp-valprint.c (cp_print_value_fields): Replace calls to
6169 fprint_symbol with calls to fprintf_symbol_filtered.
6170 * printcmd.c (print_frame_args): Replace call to fprint_symbol
6171 with call to fprintf_symbol_filtered.
6172 * stack.c (print_frame_info): Remove obsolete code so we don't
6173 have to update fputs_demangled usage in it.
6174 * stack.c (print_frame_info, frame_info): Add language variable
6175 to pass to fprintf_symbol_demangled and initialize it from the
6176 symbol's language. Replace calls to fputs_demangled with calls
6177 to fprintf_symbol_filtered.
6178 * symtab.c (find_methods): Replace call to fputs_demangled with
6179 call to fprintf_symbol_filtered.
6180 * ch-valprint.c (demangle.h): Include.
6181 * ch-valprint.c (chill_print_value_fields): Replace call to
6182 fprint_symbol with call to new fprintf_symbol_filtered.
6183
6184 Wed Mar 10 17:37:11 1993 Fred Fish (fnf@cygnus.com)
6185
6186 * Makefile.in (VERSION): Bump version to 4.8.2.
6187
6188 * main.c (source_command): Require an explicit pathname of file
6189 to source, since previous behavior of defaulting to gdb init file
6190 was troublesome and undocumented.
6191 * printcmd.c (disassemble_command): Add missing '{}' pair to
6192 else with two statements. Bug reported by Stephane Tsacas
6193 <slt@isoft.fr>.
6194 * symtab.c (find_pc_line): Don't complain about zero length or
6195 negative length line numbers for the moment, since we may not own
6196 the terminal when called, such as when single stepping. (FIXME)
6197 * language.h (CAST_IS_CONVERSION): True if current language is
6198 C++ as well as C. Fix from Peter Schauer.
6199 * environ.c (get_in_environ, set_in_environ, unset_in_environ):
6200 Use STREQN macro rather than bare '!strncmp()'.
6201 * environ.c (unset_in_environ): Avoid use of memcpy on
6202 overlapping memory regions, as suggested by Paul Eggert
6203 <eggert@twinsun.com>.
6204 * c-exp.y (%union struct): Remove unused ulval as suggested
6205 by Paul Eggert <eggert@twinsun.com>.
6206
6207 Mon Mar 8 19:03:06 1993 Fred Fish (fnf@cygnus.com)
6208
6209 * main.c (gdbinit): Make static.
6210 * main.c (inhibit_gdbinit): Move to file scope.
6211 * main.c (main): Remove local inhibit_gdbinit.
6212 * main.c (source_command): Don't source '.gdbinit' file by
6213 default if gdb has been told to ignore it.
6214
6215 Sun Mar 7 21:58:53 1993 Ian Lance Taylor (ian@cygnus.com)
6216
6217 * Makefile.in (MAKEOVERRIDES): Define to be empty for GNU Make
6218 3.63.
6219
6220 Fri Mar 5 17:39:45 1993 John Gilmore (gnu@cacophony.cygnus.com)
6221
6222 * printcmd.c (print_address_symbolic): Only print if offset
6223 is shorter than max_symbolic_offset.
6224 (initialize_printcmd): `set print max-symbolic-offset'.
6225
6226 * am29k-tdep.c (TAGWORD_ZERO_MASK): New #define.
6227 (examine_tag): Use it.
6228 (read_register_stack): Only look in the local registers for a
6229 memory address if it's between rfb and rsp; go to memory otherwise.
6230 (initialize_29k): Fix call_scratch_address doc. Remove reginv_com.
6231 (reginv_com): Remove ancient kludge command.
6232
6233 Fri Mar 5 17:16:26 1993 K. Richard Pixley (rich@rtl.cygnus.com)
6234
6235 * tm-irix3.h (ZERO_REGNUM): copy this macro from tm-mips.h so that
6236 irix4 will again compile.
6237
6238 * tm-mips.h (GDB_TARGET_IS_MIPS): no longer used, now removed.
6239
6240 * configure.in: accept mips-sgi-irix4* for irix4.
6241
6242 Fri Mar 5 07:49:48 1993 Steve Chamberlain (sac@lisa.cygnus.com)
6243
6244 * z8k-tdep.c (print_register_hook): Lint.
6245
6246 Thu Mar 4 17:42:03 1993 John Gilmore (gnu@cygnus.com)
6247
6248 Lint fixes from Paul Eggert (eggert@twinsun.com):
6249
6250 * command.c (do_setshow_command): var_uintegers are unsigned.
6251 * sparc-tdep.c (save_insn_opcodes, restore_insn_opcodes):
6252 unsigned, since they use hex values with the high bit set.
6253
6254 Thu Mar 4 08:22:55 1993 Fred Fish (fnf@cygnus.com)
6255
6256 Fixes submitted by Karl Berry (karl@nermal.hq.ileaf.com):
6257 * m88k-pinsn.c (sprint_address): Use SYMBOL_NAME macro to
6258 access symbol name.
6259 * m88k-nat-c (SXIP_OFFSET, SNIP_OFFSET, SFIP_OFFSET): Enclose
6260 macro definitions in parenthesis.
6261
6262 * dbxread.c (dbx_symfile_init): Catch the case where there is
6263 no string table, but the only way we find out is by reading zero
6264 bytes from EOF.
6265
6266 Wed Mar 3 15:51:28 1993 Fred Fish (fnf@cygnus.com)
6267
6268 * dbxread.c (dbx_symfile_init): Make size of the string table
6269 size field a define (DBX_STRINGTAB_SIZE_SIZE). Ensure that the
6270 offset to the string table is nonzero and handle the nonexistant
6271 string table case, should it occur. Ensure that the string table
6272 size read from the file is reasonable, with a minimum lower bound
6273 of DBX_STRINGTAB_SIZE_SIZE instead of zero.
6274
6275 Wed Mar 3 07:23:03 1993 Ian Lance Taylor (ian@cygnus.com)
6276
6277 * Makefile.in: Changes to build testsuite correctly.
6278 (FLAGS_TO_PASS): Added CXX and CXXFLAGS.
6279 (CC_FOR_TARGET, CXX, CXX_FOR_TARGET): New variables.
6280 (TARGET_FLAGS_TO_PASS): New variable.
6281 (SUBDIRS): Added testsuite.
6282 (all): Build testsuite using TARGET_FLAGS_TO_PASS, so that
6283 testsuite is compiled with CC_FOR_TARGET rather than CC.
6284
6285 Tue Mar 2 17:57:56 1993 Fred Fish (fnf@cygnus.com)
6286
6287 * dbxread.c (dbx_symfile_init): Fix for nonexistant string table,
6288 reported by mycroft@gnu.ai.mit.edu.
6289
6290 (Ultrix 2.2 support from Michael Rendell <michael@mercury.cs.mun.ca>)
6291 * configure.in (vax-*-ultrix2*): New triplet.
6292 * config/vaxult2.mh: New file.
6293 * xm-vaxult2.h: New file.
6294
6295 * c-exp.y (parse_number): Change high_bit to unsigned.
6296 * demangle.c: Change all references to cfront to ARM, since the
6297 actual algorithm is the one specified in the Annotated Reference
6298 Manual. This was confusing users into thinking that full cfront
6299 support was implemented.
6300 * dwarfread.c (CFRONT_PRODUCER): Remove, was never really used.
6301 * eval.c (evaluate_subexp): For STRUCTOP_PTR pass the arg type
6302 directly to lookup_struct_elt_type, which will do the
6303 dereferencing itself.
6304 * gdbtypes.c (lookup_struct_elt_type): Expand comments. Fix
6305 NULL dereferencing bug for unnamed structs, comment out
6306 questionable code.
6307
6308 Mon Mar 1 17:54:41 1993 John Gilmore (gnu@cygnus.com)
6309
6310 * coffread.c (process_coff_symbol): Change PCC argument correction
6311 so that it only happens on big-endian targets; so that it only
6312 happens if the short or char argument is aligned on an int
6313 boundary; and so that it changes the location, rather than the
6314 type, of the argument. These changes tend to parallel similar
6315 (old) changes in stabsread.c.
6316
6317 * coffread.c (coff_read_enum_type): Use the specified size for
6318 enums, don't assume that they are int-sized.
6319
6320 * c-valprint.c (c_val_print): Don't assume enums are the same as
6321 ints.
6322
6323 * coredep.c: Handle NO_PTRACE_H in coredep.c. Fix by Michael
6324 Rendell, <michael@mercury.cs.mun.ca>.
6325
6326 Mon Mar 1 09:25:57 1993 Fred Fish (fnf@cygnus.com)
6327
6328 * language.h (local_decimal_format_custom): Add prototype.
6329 * language.c (local_decimal_format_custom): Add function, bug
6330 reported by Robert R. Henry (rrh@tera.com).
6331
6332 Fri Feb 26 18:33:18 1993 John Gilmore (gnu@cacophony.cygnus.com)
6333
6334 * xcoffexec.c (vmap_ldinfo): Fix "/" for '/' typo, reported
6335 by Josef Leherbauer, joe@takeFive.co.at.
6336
6337 Wed Feb 24 19:17:11 1993 John Gilmore (gnu@cacophony.cygnus.com)
6338
6339 * symfile.c (syms_from_objfile), tm-29k.h, tm-3b1.h, tm-68k-un.h,
6340 tm-altos.h, tm-arm.h, tm-convex.h, tm-es1800.h, tm-h8300.h,
6341 tm-hp300bsd.h, tm-hp300hpux.h, tm-hppa.h, tm-i386bsd.h,
6342 tm-i386v.h, tm-i960.h, tm-irix3.h, tm-isi.h, tm-linux.h,
6343 tm-m88k.h, tm-merlin.h, tm-mips.h, tm-news.h, tm-np1.h, tm-pn.h,
6344 tm-pyr.h, tm-rs6000.h, tm-spc-un.h, tm-sun386.h, tm-sunos.h,
6345 tm-symmetry.h, tm-sysv4.h, tm-tahoe.h, tm-umax.h, tm-vax.h,
6346 tm-vx68.h, tm-z8k.h: Remove remnants of NAMES_HAVE_UNDERSCORE.
6347
6348 Wed Feb 24 07:41:15 1993 Fred Fish (fnf@cygnus.com)
6349
6350 * symtab.h (SYMBOL_INIT_DEMANGLED_NAME): Initialize contents
6351 of demangled name fields to NULL if no demangling exists for
6352 a symbol. SYMBOL_INIT_LANGUAGE_SPECIFIC does this for new
6353 symbols if their language is known at the time they are created,
6354 but sometimes the language is not known until later.
6355
6356 * ch-typeprint.c (chill_print_type_base): Name changed to
6357 chill_type_print_base to match pattern for C and C++ names.
6358 * ch-typeprint.c (chill_print_type): Change "char" to "CHAR"
6359 to be consistent with other usages.
6360 * ch-typeprint.c (chill_type_print_base): Add support for
6361 printing Chill STRUCT types.
6362 * ch-valprint.c: Include values.h.
6363 * ch-valprint.c (chill_print_value_fields): New function and
6364 prototype for printing Chill STRUCT values.
6365 * ch-valprint.c (chill_val_print): Fix call to val_print_string
6366 that was being called with two args instead of three.
6367 * ch-valprint.c (chill_val_print): Call chill_print_value_fields
6368 to print Chill STRUCT values.
6369
6370 Tue Feb 23 18:58:11 1993 Mike Werner (mtw@poseidon.cygnus.com)
6371
6372 * configure.in: added testsuite to configdirs.
6373
6374 Tue Feb 23 11:46:11 1993 Mike Stump (mrs@cygnus.com)
6375
6376 * doc/stabs.texi: The `this' pointer is now known by the name
6377 `this' instead of `$t'.
6378
6379 Tue Feb 23 11:21:33 1993 Fred Fish (fnf@cygnus.com)
6380
6381 * dwarfread.c (read_tag_string_type): Rewrite to allow forward
6382 references of TAG_string_type DIEs in user defined types.
6383 * ch-lang.c (chill_create_fundamental_type): Track compiler
6384 change that now emits debugging info with the type long for Chill
6385 longs.
6386
6387 Mon Feb 22 15:21:54 1993 Ian Lance Taylor (ian@cygnus.com)
6388
6389 * remote-mips.c: New file; implements MIPS remote debugging
6390 protocol.
6391 * config/idt.mt: New file; uses remote-mips.c
6392 * configure.in (mips-idt-ecoff): New target; uses idt.mt.
6393
6394 * mips-tdep.c (mips_fpu): New variable; controls use of MIPS
6395 floating point coprocessor.
6396 (mips_push_dummy_frame): If not mips_fpu, don't save floating
6397 point registers.
6398 (mips_pop_frame): If not mips_fpu, don't restore floating point
6399 registers.
6400 (_initialize_mips_tdep): New function; let the user reset mips_fpu
6401 variable.
6402 * tm-mips.h (EXTRACT_RETURN_VALUE, STORE_RETURN_VALUE): If not
6403 mips_fpu, don't use fp0 as floating point return register.
6404 (FIX_CALL_DUMMY): If not mips_fpu, don't save floating point
6405 registers.
6406
6407 Mon Feb 22 07:54:03 1993 Mike Werner (mtw@poseidon.cygnus.com)
6408
6409 * gdb/testsuite: made modifications to testcases, etc., to allow
6410 them to work properly given the reorganization of deja-gnu and the
6411 relocation of the testcases from deja-gnu to a "tool" subdirectory.
6412
6413 Sun Feb 21 10:55:55 1993 Mike Werner (mtw@poseidon.cygnus.com)
6414
6415 * gdb/testsuite: Initial creation of gdb/testsuite.
6416 Migrated dejagnu testcases and support files for testing nm to
6417 gdb/testsuite from deja-gnu. These files were moved "as is"
6418 with no modifications. This migration is part of a major overhaul
6419 of dejagnu. The modifications to these testcases, etc., which
6420 will allow them to work with the new version of dejagnu will be
6421 made in a future update.
6422
6423 Fri Feb 19 18:36:55 1993 John Gilmore (gnu@cygnus.com)
6424
6425 * NEWS: Add reminders for next release.
6426
6427 Fri Feb 19 10:01:39 1993 Ian Lance Taylor (ian@cygnus.com)
6428
6429 * mipsread.c (parse_lines): Correct check for files compiled with
6430 -g1.
6431
6432 Fri Feb 19 05:56:15 1993 John Gilmore (gnu@cygnus.com)
6433
6434 * Makefile.in (VERSION): 4.8.1 to distinguish local versions.
6435
6436 Fri Feb 19 01:32:58 1993 John Gilmore (gnu@cygnus.com)
6437
6438 * Makefile.in (VERSION): GDB-4.8 release!
6439 * README, NEWS: Update for release.
6440
6441 Thu Feb 18 22:44:40 1993 Stu Grossman (grossman@cygnus.com)
6442
6443 * am29k-pinsn.c (print_insn): Minor nits with const.
6444 * am29k-tdep.c: More minor nits with arg types for
6445 supply_register, NULL vs. 0, read_register_gen, & reginv_com.
6446
6447 Thu Feb 18 22:38:03 1993 John Gilmore (gnu@cygnus.com)
6448
6449 * gcc.patch: Update for a different GCC (G++) bug.
6450 * main.c (print_gdb_version): Update copyright year to 1993.
6451 * nm-hp300bsd.h: Decide whether this is BSD 4.3 or 4.4,
6452 conditionalize this file on it. FIXME, right way is to split
6453 these into two config files.
6454 (ATTACH_DETACH): Define for BSD 4.4
6455 (PTRACE_ARG_TYPE): caddr_t for BSD 4.4, unset for 4.3.
6456 (U_REGS_OFFSET): Revise for 4.4.
6457 (REGISTER_U_ADDR): Separate for 4.4, but it doesn't work yet.
6458 * xm-hp300bsd.h: Move definitions of UINT_MAX, INT_MAX, INT_MIN,
6459 LONG_MAX into this file to avoid cpp "redefinition" warnings.
6460
6461 Thu Feb 18 16:13:28 1993 K. Richard Pixley (rich@rtl.cygnus.com)
6462
6463 * nm-hp300bsd.h (PTRACE_ARG3_TYPE): FSF's hp300's have int* not
6464 caddr_t.
6465
6466 Thu Feb 18 04:10:06 1993 John Gilmore (gnu@cygnus.com)
6467
6468 * c-lang.c (c_printstr): Bugfix for length==0 case.
6469
6470 * c-lang.c (c_printstr): If a C string ends in a null, don't
6471 print the null.
6472
6473 Thu Feb 18 02:39:21 1993 Stu Grossman (grossman at cygnus.com)
6474
6475 * defs.h (STRCMP): Make it work for unsigned chars.
6476
6477 Thu Feb 18 01:56:06 1993 John Gilmore (gnu@cygnus.com)
6478
6479 * nm-hp300bsd.h (ATTACH_DETACH, PTRACE_ATTACH, PTRACE_DETACH): define.
6480 * config/hp300bsd.mh (REGEX, REGEX1): Define.
6481 * m68k-pinsn.c (BREAK_UP_BIG_DECL, AND_OTHER_PART): #if __GNUC__,
6482 define to kludge the large opcode table into two smaller tables,
6483 since GCC take exponential space to build the table. Lint.
6484 (NOPCODES): Remove, use "numopcodes" from opcode/m68k.h instead.
6485
6486 Wed Feb 17 19:24:40 1993 John Gilmore (gnu@cygnus.com)
6487
6488 * Makefile.in (VERSION): Roll to 4.7.9.
6489 * xm-hp300bsd.h: Define PSIGNAL_IN_SIGNAL_H and put a compatible
6490 definition here, to handle both BSD 4.3 and 4.4 systems.
6491 * mipsread.c (ZMAGIC): #undef to avoid duplicate define.
6492 * remote.c (alarm): Move declaration to global level, before
6493 first reference to it.
6494 * tm-i386bsd.h (NUM_REGS): There are only eleven, not twelve.
6495 * dbxread.c (process_one_symbol): Cast to unsigned char, not int.
6496
6497 Wed Feb 17 13:40:29 1993 K. Richard Pixley (rich@cygnus.com)
6498
6499 * remote.c (readchar): forward declare alarm which otherwise looks
6500 like an undeclared variable to gcc.
6501
6502 * dbxread.c (process_one_symbol): cast enum value N_SO into int
6503 when comparing against an int. Avoids superfluous warning from
6504 vax ultrix 4.2 cc.
6505
6506 * inflow.c (set_sigint_trap): add cast to assignment from signal.
6507 Avoids superfluous warnings from some systems and/or compilers
6508 (like vax ultrix 4.2.)
6509
6510 * language.c (struct op_print unk_op_print_tab): use the enum
6511 values rather naked zeros as initializers. Avoids warnings from
6512 ultrix type compilers.
6513
6514 Tue Feb 16 00:53:20 1993 John Gilmore (gnu@cygnus.com)
6515
6516 * Makefile.in (VERSION): Roll to 4.7.6.
6517 (SFILES_SUBDIR): Add 29k-share/udi_soc.
6518 (SFILES_SUBSUBDIR): Move 29k-share/udi files to this macro.
6519 (alldeps.mak): Make ALLDEPFILES_SUBSUBDIR for files in sub sub dirs.
6520 (ALLDEPFILES_SUBSUBDIR): Depend on this for deeper dep files.
6521 (HFILES): Remove all nm-* except nm-trash.h. Add ns32k-opcode.h.
6522 (depend): Fix bug where nm-files in config files weren't noticed.
6523 (make-proto-gdb-1): Avoid changing directories while building new
6524 prototype. Build SFILES_SUBSUBDIR with longer symlinks.
6525
6526 Mon Feb 15 20:48:09 1993 John Gilmore (gnu@cygnus.com)
6527
6528 * remote.c: Improve error recovery. Allow user to break out
6529 of initial connection attempt with INTERRUPT. Treat a timeout
6530 while waiting for remote packet like a retry, unless the remote
6531 side is actively running user code. Fix a few long printf_filtered's.
6532
6533 * xcoffread.c (read_xcoff_symtab): Don't use null symbol name for
6534 trampoline symbols.
6535
6536 * buildsym.c (start_subfile): Allow null file name.
6537
6538 Fri Feb 12 15:46:49 1993 K. Richard Pixley (rich@cygnus.com)
6539
6540 * xcoffread.c (process_xcoff_symbol, read_symbol_lineno): complain
6541 expects a pointer to complaint rather than a complaint
6542 structure.
6543 (process_linenos): free the previously allocated subfile name,
6544 then allocate the new one from the heap.
6545
6546 Fri Feb 12 08:06:05 1993 Steve Chamberlain (sac@thepub.cygnus.com)
6547
6548 * h8300-tdep.c, tm-h8300.h: turn off some experimental features
6549
6550 Thu Feb 11 00:59:07 1993 John Gilmore (gnu@cygnus.com)
6551
6552 * stabsread.c (dbx_lookup_type): Handle negative type numbers.
6553 Previously, would bogusly index off the bottom of type_vector.
6554 (rs6000_builtin_type): Accept type number as argument.
6555 (read_type, case '-'): Handle negatives like any other type number.
6556
6557 * symfile.c (deduce_language_from_filename): Handle null name.
6558
6559 * mips-tdep.c (isa_NAN): Fix byte order dependency.
6560 Reported by Nobuyuki Hikichi <hikichi@sra.co.jp>,
6561 fixed by sato@sm.sony.co.jp.
6562
6563 * xcoffread.c (parmsym): Don't use an initializer to set up
6564 this struct symbol. Set it up in initialize_xcoffread.
6565 (read_xcoff_symtab, xcoff_symfile_read): Surround code that only
6566 works on real rs/6000 target with #ifndef FAKING_RS6000.
6567
6568 Wed Feb 10 23:42:37 1993 John Gilmore (gnu@cygnus.com)
6569
6570 * stabsread.c (rs6000_builtin_type): Move function from
6571 xcoffread.c:builtin_type.
6572 * xcoffread.c (builtin_type): Move to stabsread. Remove
6573 IBM6000_HOST dependency. Move misplaced comments.
6574 (various): Change printf's to complaints.
6575 (patch_block_stabs, process_xcoff_symbol case C_DECL): Add
6576 objfile argument to read_type calls under #if 0.
6577 (process_xcoff_symbol case C_RSYM): Fix typo in #ifdef.
6578 * xcoffexec.c (map_vmap): Don't allocate an objfile for the exec_file.
6579 * Makefile.in: xcoffread.o is not built by default.
6580 * xm-rs6000.h (IBM6000_HOST): Remove.
6581 * config/rs6000.mh (NATDEPFILES): xcoffread.o is native only.
6582 * doc/gdbint.texinfo: Eliminate IBM6000_HOST, document
6583 IBM6000_TARGET.
6584
6585 Wed Feb 10 18:31:20 1993 Stu Grossman (grossman at cygnus.com)
6586
6587 * findvar.c (read_var_value): If REG_STRUCT_HAS_ADDR, then set
6588 VALUE_LVAL to be lval_memory so that we don't try to modify wild
6589 register numbers when user tries to modify elements in structs
6590 passed as arguments.
6591 * inflow.c (child_terminal_info): Move banner outside of system
6592 specific #ifdefs.
6593 * tm-hppa.h (REG_STRUCT_HAS_ADDR): Define this for HPPA, which
6594 passes struct/union arguments by address.
6595
6596 Wed Feb 10 15:34:46 1993 Ian Lance Taylor (ian@cygnus.com)
6597
6598 * Based on patch from Kean Johnston <maw@netcom.com>:
6599 * nm-i386sco4.h: New file. Like nm-i386sco.h, but define
6600 ATTACH_DETACH, PTRACE_ATTACH and PTRACE_DETACH.
6601 * config/i386sco4.mh (NAT_FILE): Use nm-i386sco4.h.
6602
6603 Tue Feb 9 20:07:18 1993 John Gilmore (gnu@cygnus.com)
6604
6605 * remote-udi.c (FREEZE_MODE): Fix && for & typo. Found and
6606 fixed by Lynn D. Shumaker, shumaker@saifr00.cfsat.honeywell.com.
6607
6608 Tue Feb 9 08:18:07 1993 Ian Lance Taylor (ian@cygnus.com)
6609
6610 * config/i386sco4.mh (MUNCH_DEFINE): Pass -p to nm to avoid bug in
6611 cc debugging output.
6612
6613 Tue Feb 9 00:19:28 1993 John Gilmore (gnu@cygnus.com)
6614
6615 * stabsread.c (define_symbol): Complain about unrecognized names
6616 that begin with CPLUS_MARKER (often '$'), but don't die. Fix
6617 suggested by gb@cs.purdue.edu (Gerald Baumgartner).
6618 (read_cpp_abbrev): Don't use the class name as part of the
6619 vtable pointer member name (_vptr$) in $vf abbrevs or unrecognized
6620 abbrevs. Inspired by Mike Tiemann.
6621 (read_tilde_fields): Comment. Remove ancient dead code.
6622 Remove erroneous but non-dead code. Simplify. Add complaints.
6623 (in general): Remove extraneous (parentheses) in return
6624 statements.
6625
6626 Fri Feb 5 14:01:22 1993 John Gilmore (gnu@cygnus.com)
6627
6628 * coffread.c (coff_lookup_type): Fix fencepost error reported
6629 by Art Berggreen, <arg@opal.acc.com>.
6630
6631 Fix long file name bug reported on SCO Open Desktop 2.0 by Ulf Lunde
6632 <Ulf.Lunde@kvatro.no> and Dag H. Wanvik <Dag.H.Wanvik@kvatro.no>:
6633
6634 * coffread.c (getfilename): Eliminate COFF_NO_LONG_FILE_NAMES
6635 test, which is apparently left over from when we used native
6636 include files and couldn't depend on the member names being there.
6637 * tm-3b1.h, tm-altos.h, tm-i386v.h: Don't set it.
6638
6639 Thu Feb 4 12:23:15 1993 Ian Lance Taylor (ian@cygnus.com)
6640
6641 * mipsread.c: Major overhaul to use new BFD symbol table reading
6642 routines. Now swaps information as it is needed, rather than
6643 swapping everything when the file is read.
6644
6645 Thu Feb 4 01:52:36 1993 John Gilmore (gnu@cygnus.com)
6646
6647 * Makefile.in (TARDIRS): Add sparclite demo dir.
6648 (*.tab.c): Change dependency on Makefile to depend on
6649 Makefile.in, otherwise it always rebuilds after configuring.
6650 Force output *.tab.c file into current directory even in "make"
6651 versions that rewrite dependent file names used in command lines.
6652
6653 * TODO: Remove some things we did.
6654 * am29k-opcode.h, convx-opcode: Remove; now in ../include/opcode.
6655 * os68k-xdep.c: Remove; useless file (os68k is a target only).
6656 * convex-pinsn.c: Use ../include/opcode/convex.h. Add CONST.
6657 * symtab.h: Eliminate unnamed unions and structs.
6658
6659 Wed Feb 3 14:48:08 1993 John Gilmore (gnu@cygnus.com)
6660
6661 * Makefile.in (VERSION): Roll to 4.7.5.
6662
6663 Tue Feb 2 20:47:42 1993 John Gilmore (gnu@cygnus.com)
6664
6665 * breakpoint.c (breakpoint_re_set_one): Handle watchpoints when
6666 re-evaluating symbol pointers.
6667
6668 Tue Feb 2 16:10:31 1993 Fred Fish (fnf@cygnus.com)
6669
6670 * c-exp.y (lcurly, rcurly): New nonterminals.
6671 * c-exp.y (exp): Use lcurly and rcurly for arrays and UNOP_MEMVAL
6672 constructs.
6673 * parse.c (free_funcalls): Moved prototype from parser-defs.h,
6674 made function static.
6675 * parse.c (struct funcall): Moved struct def from parser-defs.h.
6676 * parse.c (funcall_chain): Moved from parser-defs.h, made static.
6677 * parse.c (start_arglist):
6678 * parser-defs.h (free_funcalls): Moved prototype to parse.c.
6679 * parser-defs.h (struct funcall): Moved struct def to parse.c.
6680 * parser-defs.h (funcall_chain): Moved to parse.c.
6681 * printcmd.c (print_frame_nameless_args): Fix prototype.
6682 * tm-mips.h (setup_arbitrary_frame): Fix prototype.
6683 * tm-sparc.h (setup_arbitrary_frame): Fix prototype.
6684 * valops.c (typecmp): Moved prototype from values.h.
6685 * value.h (typecmp): Moved prototype to valops.c, made static.
6686 * ch-exp.y (yylex): Change way control sequences are disabled.
6687
6688 Tue Feb 2 16:11:43 1993 John Gilmore (gnu@cygnus.com)
6689
6690 * tm-mips.h, tm-sparc.h: Fix thinko in SETUP_ARBITRARY_FRAME.
6691
6692 Tue Feb 2 15:30:33 1993 Ian Lance Taylor (ian@cygnus.com)
6693
6694 * mipsread.c (upgrade_type): Build array types correctly, using
6695 create_range_type and create_array_type.
6696
6697 Tue Feb 2 00:19:08 1993 John Gilmore (gnu@cygnus.com)
6698
6699 * remote-nindy.c: Cleanup.
6700
6701 * infrun.c (wait_for_inferior): When rolling back the PC after
6702 a breakpoint, call write_pc so that NPC gets rolled back as well
6703 (for the 29K).
6704
6705 * blockframe.c (inside_entry_file, inside_main_func,
6706 inside_entry_func): PC of zero is always "bottom of stack".
6707
6708 * printcmd.c (print_frame_args, print_frame_nameless_args):
6709 Let print_frame_nameless_args decide whether there are any,
6710 laying groundwork for possibly later printing 29K args for
6711 functions where we have tag words but no symbols.
6712
6713 Mon Feb 1 18:09:58 1993 Roland H. Pesch (pesch@fowanton.cygnus.com)
6714
6715 * Makefile.in: fix GDB doc targets for new doc subdir structure
6716
6717 Mon Feb 1 17:56:47 1993 John Gilmore (gnu@cygnus.com)
6718
6719 * stack.c (parse_frame_specification): Parse as many arguments
6720 as there are (up to MAXARGS). Pass all of them in argc, argv
6721 format to SETUP_ARBITRARY_FRAME. Put the burden of checking how
6722 many there were, onto SETUP_ARBITRARY_FRAME.
6723 * tm-mips.h, tm-sparc.h: Corresponding changes.
6724 * mips-tdep.c, sparc-tdep.c: Ditto.
6725
6726 Mon Feb 1 17:19:37 1993 John Gilmore (gnu@cygnus.com)
6727
6728 * hp300ux-nat.c: Update copyrights.
6729 * mipsread.c (parse_partial_symbols): Complain about block
6730 indexes that go backwards. Fix from Peter Schauer.
6731 * symfile.c (syms_from_objfile, symbol_file_add): Allow a
6732 symbol-file that has no linkage symbols to be read.
6733 * tm-rs6000.h, xm-rs6000.h: (SIGWINCH_HANDLER and friends): Move
6734 from tm- file to xm-file, since they're host dependent.
6735 * valarith.c (value_binop): Typo.
6736
6737 Mon Feb 1 16:16:59 1993 Stu Grossman (grossman at cygnus.com)
6738
6739 * sparclite/aload.c: Add copyleft.
6740 * sparclite/crt0.s: Add comment at beginning.
6741
6742 Mon Feb 1 14:36:11 1993 Steve Chamberlain (sac@thepub.cygnus.com)
6743
6744 * remote-z8k.c, z8k-tdep.c: support for the Z8001 and Z8002.
6745 * parse.c (std_regs): Only declare if NO_STD_REGS is defined.
6746
6747 Sun Jan 31 04:32:48 1993 Michael Tiemann (tiemann@rtl.cygnus.com)
6748
6749 * values.c (value_headof): Fix typo in which VTBL and ARG were
6750 being confused for one another.
6751
6752 * valops.c (typecmp): Now static.
6753
6754 * gdbtypes.c (fill_in_vptr_fieldno): Don't ignore the first
6755 baseclass--we don't always inherit its virtual function table
6756 pointer.
6757
6758 * eval.c (evaluate_subexp): In OP_FUNCALL case, adjust `this'
6759 pointer correctly in case value_struct_elt moves it around.
6760
6761 * valops.c (typecmp): Now static. Also, now groks references
6762 better.
6763
6764 * gdbtypes.c (lookup_struct_elt_type): Pass NOERR instead of
6765 zero on recursive call. If NAME is the name of TYPE, return TYPE.
6766
6767 Sat Jan 30 19:55:52 1993 John Gilmore (gnu@cygnus.com)
6768
6769 * hppah-nat.c: Eliminate <sys/user.h> and other unnecessary stuff,
6770 to avoid "too much defining" error from native C compiler (!).
6771
6772 * Makefile.in (HFILES): Add typeprint.h.
6773 * typeprint.[ch]: Update copyrights.
6774
6775 Thu Jan 28 19:09:02 1993 John Gilmore (gnu@cygnus.com)
6776
6777 * Makefile.in: Update to match doc/ subdir changes.
6778
6779 * config/hp300hpux.mh: No cross-host file needed, just native.
6780 * config/go32.mh: Remove nonexistent "native" support.
6781
6782 M88K fixes reported by Carl Greco, <cgreco@Creighton.Edu>:
6783 * tm-m88k.h (REGISTER_CONVERT_TO_RAW): Fix typo.
6784 * m88k-tdep.c (next_insn): Lint, cleanup.
6785 (store_parm_word): Lint.
6786
6787 * README: Fix typo (reported by karl@hq.ileaf.com).
6788
6789 Wed Jan 27 21:34:21 1993 Fred Fish (fnf@cygnus.com)
6790
6791 * expression.h (BINOP_CONCAT): Document use for self concatenation
6792 an integral number of times.
6793 * language.c (binop_type_check): Extend BINOP_CONCAT for self
6794 concatenation case.
6795 * valarith.c (value_concat): Rewrite to support self
6796 concatenation an integral number of times.
6797 * Makefile.in (ch-exp.tab.c): Change "expect" message.
6798 * ch-exp.y (FIXME's): Make all FIXME tokens distinct, to
6799 eliminate hundreds of spurious shift/reduce and reduce/reduce
6800 conflicts that mask the 5 real ones.
6801 * ch-exp.y (STRING, CONSTANT, SC): Remove unused tokens.
6802 * ch-exp.y (integer_literal_expression): Remove production,
6803 no longer used.
6804
6805 Thu Jan 21 09:58:36 1993 Fred Fish (fnf@cygnus.com)
6806
6807 * eval.c (evaluate_subexp): Fix OP_ARRAY, remove code that
6808 implied that "no side effects" was nonfunctional.
6809 * eval.c (evaluate_subexp): Add BINOP_CONCAT case to deal with
6810 character string and bitstring concatenation.
6811 * expprint.c (dump_expression): Add case for BINOP_CONCAT.
6812 * expression.h (exp_opcode): Add BINOP_CONCAT.
6813 * gdbtypes.h (type_code): Add TYPE_CODE_BITSTRING.
6814 * language.c (string_type): Add function to determine if a type
6815 is a string type.
6816 * language.c (binop_type_check): Add case for BINOP_CONCAT.
6817 * valarith.c (value_concat): New function to concatenate two
6818 values, such as character strings or bitstrings.
6819 * valops.c (value_string): Remove error stub and implement
6820 function body.
6821 * value.h (value_concat): Add prototype.
6822 * ch-exp.y (operand_3): Add actions for SLASH_SLASH (//).
6823 * ch-exp.y (yylex): Recognize SLASH_SLASH.
6824 * ch-lang.c (chill_op_print_tab): Add SLASH_SLASH (//) as
6825 BINOP_CONCAT.
6826
6827 Tue Jan 19 14:26:15 1993 Fred Fish (fnf@cygnus.com)
6828
6829 * c-exp.y (exp): Add production to support direct creation
6830 of array constants using the obvious syntax.
6831 * c-valprint.c (c_val_print): Set printed string length.
6832 * dwarfread.c (read_tag_string_type): New prototype and
6833 function that handles TAG_string_type DIEs.
6834 * dwarfread.c (process_dies): Add case for TAG_string_type
6835 that calls new read_tag_string_type function.
6836 * expprint.c (print_subexp): Add support for OP_ARRAY.
6837 * gdbtypes.c (create_range_type, create_array_type): Inherit
6838 objfile from the index type.
6839 * ch-typeprint.c (chill_print_type): Add case for
6840 TYPE_CODE_STRING.
6841 * ch-valprint.c (chill_val_print): Fix case for
6842 TYPE_CODE_STRING.
6843
6844 Mon Jan 18 11:58:45 1993 Ian Lance Taylor (ian@cygnus.com)
6845
6846 * mipsread.c (CODE_MASK, MIPS_IS_STAB, MIPS_MARK_STAB,
6847 MIPS_UNMARK_STAB, STABS_SYMBOLS): Removed; now in
6848 include/coff/mips.h.
6849
6850 Fri Jan 15 20:26:50 1993 Fred Fish (fnf@cygnus.com)
6851
6852 * c-exp.y (exp:STRING): Convert C strings into array-of-char
6853 constants with an explicit null byte terminator. OP_STRING is
6854 now used for real string types.
6855 * c-lang.c (builtin_type_*): Move declarations to lang.c since
6856 they are used by all languages.
6857 * c-lang.c (_initialize_c_language): Move initializations of
6858 builtin_type_* to lang.c.
6859 * c-typeprint.c (c_type_print_varspec_prefix,
6860 c_type_print_varspec_suffix): TYPE_CODE_PASCAL_ARRAY renamed
6861 to TYPE_CODE_STRING.
6862 * c-valprint.c (c_val_print): Change the way character arrays
6863 are printed as strings to be consistent with the way strings
6864 are printed when pointer-to-char types are dereferenced.
6865 Remove test of print_max before calling val_print_string, which
6866 now does it's own test.
6867 * eval.c (evaluate_subexp): Add case for OP_ARRAY.
6868 * expprint.c (print_subexp, dump_expression): Add case for OP_ARRAY.
6869 * expression.h (enum exp_opcode): Add OP_ARRAY and document.
6870 * gdbtypes.c (builtin_type_*): Add declarations moved from
6871 c-lang.c.
6872 * gdbtypes.c (create_string_type): New function to create real
6873 string types.
6874 * gdbtypes.c (recursive_dump_type): TYPE_CODE_PASCAL_ARRAY
6875 renamed to TYPE_CODE_STRING.
6876 * gdbtypes.c (_initialize_gdbtypes): Add initializations of
6877 builtin_type_* types moved from c-lang.c.
6878 * gdbtypes.h (enum type_code): TYPE_CODE_PASCAL_ARRAY renamed
6879 to TYPE_CODE_STRING.
6880 * gdbtypes.h (builtin_type_string): Add extern declaration.
6881 * gdbtypes.h (create_string_type): Add prototype.
6882 * m2-lang.c (m2_create_fundamental_type): TYPE_CODE_PASCAL_ARRAY
6883 renamed to TYPE_CODE_STRING.
6884 * m88k-tdep.c (pushed_size): TYPE_CODE_PASCAL_ARRAY renamed to
6885 TYPE_CODE_STRING.
6886 * mipsread.c (_initialize_mipsread): TYPE_CODE_PASCAL_ARRAY
6887 renamed to TYPE_CODE_STRING.
6888 * parse.c (length_of_subexp, prefixify_subexp): Add case for
6889 OP_ARRAY.
6890 * printcmd.c (print_formatted): Recognize TYPE_CODE_STRING.
6891 * typeprint.c (print_type_scalar): TYPE_CODE_PASCAL_ARRAY renamed
6892 to TYPE_CODE_STRING.
6893 * valops.c (allocate_space_in_inferior): New function and
6894 prototype, using code ripped out of value_string.
6895 * valops.c (value_string): Rewritten to use new function
6896 allocate_space_in_inferior, but temporarily disabled until some
6897 other support is in place.
6898 * valops.c (value_array): New function to create array constants.
6899 * valprint.c (val_print_string): Add comment to document use,
6900 complete rewrite to fix several small buglets.
6901 * value.h (value_array): Add prototype.
6902 * value.h (val_print_string): Change prototype to match rewrite.
6903 * ch-valprint.c (chill_val_print): Add case for TYPE_CODE_STRING.
6904 * ch-exp.y (match_character_literal): Disable recognition of
6905 control sequence form of character literals and document why.
6906
6907 Thu Jan 14 15:48:12 1993 Stu Grossman (grossman at cygnus.com)
6908
6909 * nindy-share/nindy.c: Add comments to #endif's to clarify
6910 grouping.
6911
6912 * hppa-pinsn.c (print_insn): Use read_memory_integer, instead of
6913 read_memory to get byte order right.
6914 * hppah-tdep.c (find_unwind_info): Don't read in unwind info
6915 anymore. This is done in paread.c now. We expect unwind info
6916 to hang off of objfiles, and search all of the objfiles when until
6917 we find a match.
6918 * (skip_trampoline_code): Cast arg to target_read_memory.
6919 * objfiles.h (struct objfile): Add new field obj_private to hold
6920 per object file private data (unwind info in this case).
6921 * paread.c (read_unwind_info): New routine to read unwind info
6922 for the objfile. This data is hung off of obj_private.
6923 * tm-hppa.h: Define struct obj_unwind_info, to hold pointers to
6924 the unwind info for this objfile. Also define OBJ_UNWIND_INFO to
6925 make this easier to access.
6926
6927 Wed Jan 13 20:49:59 1993 Fred Fish (fnf@cygnus.com)
6928
6929 * c-valprint.c (cp_print_class_member): Add extern decl.
6930 * c-valprint.c (c_val_print): Extract code for printing methods
6931 and move it to cp_print_class_method in cp-valprint.c.
6932 * c-valprint.c (c_val_print): Extract code to print strings and
6933 move it to val_print_string in valprint.c.
6934 * cp-valprint.c (cp_print_class_method): New function using
6935 code extracted from c_val_print.
6936 * valprint.c (val_print_string): New function using code
6937 extracted from c_val_print.
6938 * value.h (val_print_string): Add prototype.
6939 * ch-exp.y (CHARACTER_STRING_LITERAL): Set correct token type.
6940 * ch-exp.y (literal): Add action for CHARACTER_STRING_LITERAL.
6941 * ch-exp.y (tempbuf, tempbufsize, tempbufindex, GROWBY_MIN_SIZE,
6942 CHECKBUF, growbuf_by_size): New variables, macros, and support
6943 functions for implementing a dynamically expandable temp buffer.
6944 * ch-exp.y (match_string_literal): New lexer function.
6945 * ch-exp.y (match_bitstring_literal): Dynamic buffer code
6946 removed and replaced with new CHECKBUF macro.
6947 * ch-exp.y (yylex): Call match_string_literal when appropriate.
6948 * ch-valprint.c (ch_val_print): Add code for TYPE_CODE_PTR.
6949
6950 Sat Jan 9 19:59:33 1993 Stu Grossman (grossman at cygnus.com)
6951
6952 * Makefile.in: Add info for paread.o.
6953 * config/hppahpux.mh: Add paread.o to NATDEPFILES.
6954
6955 * blockframe.c (frameless_look_for_prologue): Correct the
6956 comment.
6957 * gdbtypes.h, gdbtypes.c: Use const in decl of
6958 cplus_struct_default, now that pa-gas assembler has been fixed.
6959 * hppah-nat.c: Formatting.
6960 * hppah-tdep.c: Remove lots of useless externs for variables we
6961 don't use.
6962 * (find_unwind_entry): Speed up by using binary search, and a one
6963 entry cache.
6964 * (rp_saved): New routine to see what unwind info says about RP
6965 being saved on the stack frame.
6966 * (frame_saved_pc): Look for prologue to see if we need to
6967 examine the stack for the saved RP or not.
6968 * (init_extra_frame_info): Check for prologue, instead of
6969 framesize to determine if we are frameless or not.
6970 * (frame_chain_valid): Stop backtraces when we run into _start.
6971 * (push_dummy_frame): Reformat to make more readable.
6972 * (find_dummy_frame_regs): ditto.
6973 * (hp_pop_frame): ditto.
6974 * (hp_restore_pc_queue): small cleanup.
6975 * (hp_push_arguments): ditto.
6976 * (pa_do_registers_info): ditto.
6977 * (skip_prologue): New routine created from SKIP_PROLOGUE macro.
6978 * tm-hppa.h: Move contents of SKIP_PROLOGUE into hppah-tdep.c.
6979 * Define FRAME_CHAIN_VALID.
6980 * Turn on BELIEVE_PCC_PROMOTION so that we can access char args
6981 passed to functions.
6982
6983 * paread.c (pa_symtab_read): Use new bfd conventions for
6984 accessing linker symbol table.
6985 * (pa_symfile_init): Access embedded STAB info via BFD section
6986 mechanism and related macros.
6987
6988
6989 Sat Jan 9 19:31:43 1993 Stu Grossman (grossman at cygnus.com)
6990
6991 * sparc-stub.c: Use a seperate stack for our traps.
6992 * Handle recursive traps.
6993 * Remove all trap init code. This needs to be done by the
6994 environment.
6995 * (set_mem_fault_trap): Call exceptionHandler() to setup this
6996 trap.
6997 * (handle_exception): See if we are at breakinst, if so, then
6998 advance PC sp that users can just step out of breakpoint().
6999 * (case 'G'): Don't let GDB hack CWP. Also, copy saved regs to
7000 new place if SP has changed.
7001 * (case 's'): Get rid of this, we can't do it yet.
7002 * (case 't'): New command to test any old random feature.
7003 * (case 'r'): New command to reset the system.
7004 * (breakpoint): Add label to breakpoint trap instruction so that
7005 handle_exception() can detect where we are and get past the
7006 breakpoint trivially.
7007
7008 Thu Jan 7 13:33:06 1993 Ian Lance Taylor (ian@cygnus.com)
7009
7010 * mips-pinsn.c: Actual work now done by opcodes/mips-dis.c.
7011
7012 Thu Jan 7 09:21:51 1993 david d `zoo' zuhn (zoo at cirdan.cygnus.com)
7013
7014 * configure.in: recognise all sparclite variants
7015
7016 Wed Jan 6 10:14:51 1993 Steve Chamberlain (sac@thepub.cygnus.com)
7017
7018 * symfile.c: If O_BINARY isn't defined, set it to 0, call openp for
7019 binary files oring in the right bit.
7020
7021 * main.c, source.c, state.c, symmisc.c: use macros defined in
7022 fopen-{bin|both} when fopening files.
7023
7024 Wed Jan 6 08:19:11 1993 Fred Fish (fnf@cygnus.com)
7025
7026 * defs.h (HOST_CHAR_BIT): New macro, defaults to either CHAR_BIT
7027 from a configuration file (typically including <limits.h>), or to
7028 TARGET_CHAR_BIT if CHAR_BIT is not defined.
7029 * eval.c (evaluate_subexp): Use new BYTES_TO_EXP_ELEM macro.
7030 * eval.c (evaluate_subexp): Add case for OP_BITSTRING.
7031 * expprint.c (print_subexp): Use new BYTES_TO_EXP_ELEM macro.
7032 * exppritn.c (print_subexp, dump_expression): Add case for
7033 OP_BITSTRING.
7034 * expression.h (OP_BITSTRING): New expression element type for
7035 packed bitstrings.
7036 * expression.h (EXP_ELEM_TO_BYTES, BYTES_TO_EXP_ELEM): New
7037 macros to convert between number of expression elements and bytes
7038 to store that many elements.
7039 * i960-tdep.c (leafproc_return): Use new macros to access
7040 minimal symbol name and address fields.
7041 * m88k-pinsn.c (sprint_address): Use new macros to access
7042 minimal symbol name and address fields.
7043 * nindy-tdep.c (nindy_frame_chain_valid): Use new macro to access
7044 minimal symbol address field.
7045 * parse.c (write_exp_elt, write_exp_string, prefixify_expression,
7046 parse_exp_1): Use new EXP_ELEM_TO_BYTES macro.
7047 * parse.c (write_exp_string, length_of_subexp, prefixify_expression):
7048 Use new BYTES_TO_EXP_ELEM macro.
7049 * parse.c (write_exp_bitstring): New function to write packed
7050 bitstrings into the expression element vector.
7051 * parse.c (length_of_subexp, prefixify_subexp): Add case for
7052 OP_BITSTRING.
7053 * parser-defs.h (struct stoken): Document that it is used for
7054 OP_BITSTRING as well as OP_STRING.
7055 * parser-defs.h (write_exp_bitstring): Add prototype.
7056 * ch-exp.y (BIT_STRING_LITERAL): Change token type to sval.
7057 * ch-exp.y (NUM, PRED, SUCC, ABS, CARD, MAX, MIN, SIZE, UPPER,
7058 LOWER, LENGTH): New tokens for keywords.
7059 * ch-exp.y (chill_value_built_in_routine_call, mode_argument,
7060 upper_lower_argument, length_argument, array_mode_name,
7061 string_mode_name, variant_structure_mode_name): New non-terminals
7062 and productions.
7063 * ch-exp.y (literal): Useful production for BIT_STRING_LITERAL.
7064 * ch-exp.y (match_bitstring_literal): New lexer support function
7065 to recognize bitstring literals.
7066 * ch-exp.y (tokentab6): New token table for 6 character keywords.
7067 * ch-exp.y (tokentab5): Add LOWER, UPPER.
7068 * ch-exp.y (tokentab4): Add PRED, SUCC, CARD, SIZE.
7069 * ch-exp.y (tokentab3): Add NUM, ABS, MIN, MAX.
7070 * ch-exp.y (yylex): Check tokentab6.
7071 * ch-exp.y (yylex): Call match_bitstring_literal.
7072
7073 Mon Jan 4 16:54:18 1993 Fred Fish (fnf@cygnus.com)
7074
7075 * xcoffexec.c (vmap_symtab): Use new macros to access minimal
7076 symbol name and value fields.
7077
7078 * c-exp.y (yylex): Make static, to match prototype and other
7079 <lang>-exp.y files.
7080
7081 * expression.h (exp_opcode): Add BINOP_MOD.
7082 * eval.c (evaluate_subexp): Handle new BINOP_MOD.
7083 * expprint.c (dump_expression): Handle new BINOP_MOD.
7084 * language.c (binop_type_check): Handle new BINOP_MOD.
7085 * main.c (float_handler): Re-enable float handler when hit.
7086 * valarith.c (language.h): Include, need current_language.
7087 * valarith.c (TRUNCATION_TOWARDS_ZERO): Define default macro
7088 for integer divide truncates towards zero for negative results.
7089 * valarith.c (value_x_binop): Handle BINOP_MOD if seen.
7090 * valarith.c (value_binop): Allow arithmetic operations on
7091 TYPE_CODE_CHAR variables. Add case to handle new BINOP_MOD.
7092 * ch-exp.y (operand_4): Add useful actions for MOD and REM.
7093 * ch-exp.y (tokentab3): Add MOD and REM.
7094 * ch-exp.y (yylex): Set innermost_block for symbols found
7095 in local scopes. Return LOCATION_NAME for local symbols.
7096 * ch-lang.c (chill_op_print_tab): Fix MOD entry to use
7097 BINOP_MOD instead of BINOP_REM. Add REM entry, using BINOP_REM.
7098
7099 Mon Jan 4 07:35:31 1993 Steve Chamberlain (sac@wahini.cygnus.com)
7100
7101 * command.c (shell_escape, make_command, _initialize_command):
7102 don't create or use fork if CANT_FORK is defined.
7103 * serial.h, ser-go32.c: now compiles, but "the obvious problems of
7104 code written for the IBM PC" remain.
7105 * xm-go32.h: define CANT_FORK
7106
7107 Sun Jan 3 14:24:56 1993 Steve Chamberlain (sac@thepub.cygnus.com)
7108
7109 * remote-sim.c: first attempt at general simulator interface
7110 * remote-hms.c: whitespace
7111 * h8300-tdep.c: (h8300_skip_prologue, examine_prologue):
7112 understand new stack layout. (print_register_hook): print ccr
7113 register in a fancy way.
7114
7115 Sun Jan 3 14:16:10 1993 Fred Fish (fnf@cygnus.com)
7116
7117 * eval.c (language.h): Include.
7118 * eval.c (evaluate_subexp_with_coercion): Only coerce arrays
7119 to pointer types when the current language is C. It loses for
7120 other languages when the lower index bound is nonzero.
7121 * valarith.c (value_subscript): Take array lower bounds into
7122 account when performing subscripting operations.
7123 * valops.c (value_coerce_array): Add comment describing why
7124 arrays with nonzero lower bounds are dealt with in value_subscript,
7125 rather than in value_coerce_array.
7126
7127 Sat Jan 2 12:16:41 1993 Fred Fish (fnf@cygnus.com)
7128
7129 * ch-exp.y (FLOAT_LITERAL): Add token.
7130 * ch-exp.y (literal): Add FLOAT_LITERAL.
7131 * ch-exp.y (match_float_literal): New lexer routine.
7132 * ch-exp.y (convert_float): Remove.
7133 * ch-exp.y (yylex): Call match_float_literal.
7134 * ch-exp.y (yylex): Match single '.' after trying
7135 to match floating point literals.
7136
7137 * eval.c (evaluate_subexp): Add case MULTI_SUBSCRIPT.
7138 * expprint.c (print_subexp): Rename BINOP_MULTI_SUBSCRIPT to
7139 MULTI_SUBSCRIPT.
7140 * expprint.c (dump_expression): New function for dumping
7141 expression vectors during gdb debugging.
7142 * expression.h (BINOP_MULTI_SUBSCRIPT): Name changed to
7143 MULTI_SUBSCRIPT and moved out of BINOP range.
7144 * expression.h (DUMP_EXPRESSION): New macro that calls
7145 dump_expression if DEBUG_EXPRESSIONS is defined.
7146 * m2-exp.y (BINOP_MULTI_SUBSCRIPT): Changed to MULTI_SUBSCRIPT.
7147 * parse.c (length_of_subexp, prefixify_subexp): Change
7148 BINOP_MULTI_SUBSCRIPT to MULTI_SUBSCRIPT.
7149 * parse.c (parse_exp_1): Call DUMP_EXPRESSION before and after
7150 prefixify'ing the expression.
7151 * printcmd.c (print_command_1): Add comment.
7152 * ch-exp.y (expression_list): Add useful actions.
7153 * ch-exp.y (value_array_element): Add useful actions.
7154 * ch-exp.y (array_primitive_value): Add production.
7155 * ch-exp.y (yylex): Recognize ',' as a token.
7156
7157 Fri Jan 1 18:22:02 1993 david d `zoo' zuhn (zoo at cirdan.cygnus.com)
7158
7159 * Makefile.in: pass prefix and exec_prefix via FLAGS_TO_PASS,
7160 POSIXize the recursive makes (make [variable assignments] target{s})
7161
7162 Fri Jan 1 11:56:23 1993 Fred Fish (fnf@cygnus.com)
7163
7164 * tm-sun4sol2.h (CPLUS_MARKER): Remove, now set in tm-sysv4.h.
7165 * tm-sysv4.h (CPLUS_MARKER): By default, g++ uses '.' as the
7166 CPLUS_MARKER for all SVR4 systems, so follow suit.
7167 * defs.h (strdup_demangled): Remove prototype.
7168 * dwarfread.c (enum_type, synthesize_typedef): Use new macro
7169 SYMBOL_INIT_LANGUAGE_SPECIFIC.
7170 * dwarfread.c (new_symbol): Use SYMBOL_INIT_DEMANGLED_NAME.
7171 * minsyms.c (install_minimal_symbols, prim_record_minimal_symbol,
7172 prim_record_minimal_symbol_and_info): Use new macro
7173 SYMBOL_INIT_LANGUAGE_SPECIFIC.
7174 * minsyms.c (install_minimal_symbols): Use new macro
7175 SYMBOL_INIT_DEMANGLED_NAME.
7176 * stabsread.c (define_symbol): Use new macro
7177 SYMBOL_INIT_DEMANGLED_NAME.
7178 * symfile.c (add_psymbol_to_list, add_psymbol_addr_to_list):
7179 Use new macro SYMBOL_INIT_DEMANGLED_NAME.
7180 * symfile.h (ADD_PSYMBOL_VT_TO_LIST): Use new macro
7181 SYMBOL_INIT_DEMANGLED_NAME.
7182 * symmisc.c (dump_msymbols, dump_symtab, print_partial_symbol):
7183 SYMBOL_DEMANGLED_NAME now tests language itself.
7184 * symtab.c (COMPLETION_LIST_ADD_SYMBOL): SYMBOL_DEMANGLED_NAME
7185 now tests language itself.
7186 * symtab.h (SYMBOL_CPLUS_DEMANGLED_NAME): New macro that does
7187 what SYMBOL_DEMANGLED_NAME used to do, directly access the C++
7188 mangled name member in the language dependent portion of a symbol.
7189 * symtab.h (SYMBOL_DEMANGLED_NAME): New macro that returns the
7190 mangled name member appropriate for a symbol's language.
7191 * symtab.h (SYMBOL_SOURCE_NAME, SYMBOL_LINKAGE_NAME,
7192 SYMBOL_MATCHES_NAME, SYMBOL_MATCHES_REGEXP):
7193 SYMBOL_DEMANGLED_NAME now tests language itself.
7194 * symtab.h (SYMBOL_INIT_LANGUAGE_SPECIFIC): New macro that
7195 initializes language dependent portion of symbol.
7196 * symtab.h (SYMBOL_INIT_DEMANGLED_NAME): New macro that
7197 demangles and caches the demangled form of symbol names.
7198 * utils.c (fputs_demangled, fprint_symbol): Use current language
7199 to select an appropriate demangling algorithm.
7200 * utils.c (strdup_demangled): Remove, no longer used.
7201 * symtab.h (SYMBOL_CHILL_DEMANGLED_NAME): New macro that directly
7202 access the Chill mangled name member in the language dependent
7203 portion of a symbol.
7204 * ch-lang.c (chill_demangle): New function, simple demangler.
7205 * defs.h (chill_demangle): Add prototype.
7206 * symtab.h (language_dependent_info): Add struct for Chill.
7207
7208 For older changes see ChangeLog-92
7209 \f
7210 Local Variables:
7211 mode: indented-text
7212 left-margin: 8
7213 fill-column: 74
7214 version-control: never
7215 End:
This page took 0.284147 seconds and 4 git commands to generate.