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