Don't grep directories, since that breaks on NFS-mounted file systems.
[deliverable/binutils-gdb.git] / gdb / ChangeLog
CommitLineData
a7446af6
FF
1Thu Nov 14 19:27:30 1991 Fred Fish (fnf at cygnus.com)
2
5a5a3b0f
FF
3 * symfile.c: Add function compact_misc_function_vector() to
4 remove duplicate misc function vector entries. See comments
5 in source for why this is necessary/desirable.
6
a7446af6
FF
7 * dwarfread.c: Add misc function type parameter to internal
8 record_misc_function(). Remove calls to init_misc_bunches()
9 and condense_misc_bunches(), these are now done in elfread.c.
10
11 * elfread.c: Add support for reading bfd canonical symbol tables
12 and generating misc function vector entries for global and
13 absolute symbols. Do calls to init_misc_bunches() and
14 condense_misc_bunches() where they will enclose all calls to
15 record_misc_function(), including those in dwarfread.c.
16
17Thu Nov 14 17:02:11 1991 Roland H. Pesch (pesch at cygnus.com)
18
19 * doc/Makefile.in: new targets gdb.me, gdb.ms, gdb.mm
20 (roffable documentation).
21 * doc/gdb.texinfo: embedded hints (as comments) for better
22 texi2roff conversion.
23
430923f3
JG
24Thu Nov 14 13:18:25 1991 John Gilmore (gnu at cygnus.com)
25
26 * m88k-tdep.c (examine_prologue): Deal with OR instructions
27 that shuffle parameters into other regs.
28 * symtab.c (decode_line_1): Fix bug introduced in Per's change
29 of Nov 12th.
30
a219b090
SC
31Wed Nov 13 19:51:11 1991 Steve Chamberlain (sac at cygnus.com)
32
33 * Makefile.in, xconfig/delta88 made it install a sysV manual page;
34 gdb.z into the right place.
35
ea3c0839
JG
36Wed Nov 13 16:45:13 1991 John Gilmore (gnu at cygnus.com)
37
38 Motorola 88000 port without tears, I mean without tdescs.
39
40 * m88k-tdep.c: Blow away all tdesc stuff.
41 Provide functions for all the frame-related macros in
42 tm-delta88.h. Adopt i960-style EXTRA_FRAME_INFO.
43 (examine_prologue, frame_find_saved_regs, skip_prologue): borrow
44 from i960-tdep.c and adapt to the function prologues on the 88k.
45 (read_next_frame_reg): Borrow from mips-tdep.c.
46 FIXME: frame_locals_address should go away.
47
48 * tm-delta88.h: Dump all the tdesc stuff.
49 Macros for all frame-related stuff call fns of same name.
50 Remove duplicated definitions. FP_REGNUM becomes same as
51 SP_REGNUM.
52
53 * xm-88k.h: Eliminate lots of library dependencies, now handled
54 in libiberty. Eliminate KDB nonsupport.
55
56 * doc/gdbint.texinfo: Add rudiments on frames. FIXME, add more.
57
58
59 * stack.c (frame_info): Mark frameless functions.
60 Print locals address (FIXME, remove if same).
61 * blockframe.c: Comment changes, FIXME after.
62 * coffread.c: Even without TDESC, need to zap "@" symbols.
63 Don't register for wierd format names; change the names in BFD.
64
65 * alloca.c, language.c, tdesc.c: Lint.
66 * tdesc.c, tdesc-lib: FIXME: remove these.
67
19230be6
JG
68Tue Nov 12 19:30:22 1991 John Gilmore (gnu at cygnus.com)
69
70 * Makefile.in: Add tdesc library support. Fixups to lint,
71 copying.c rules.
72
0e2a896c
PB
73Tue Nov 12 13:43:26 1991 Per Bothner (bothner at cygnus.com)
74
75 * symtab.c (decode_line_1): Remove spurious call to operator_chars.
76
77 Allow setting breakpoints on C++ destructors.
78 * valops.c (destructor_name_p): Don't check TYPE_HAS_DESTRUCTOR,
79 since it lies. Rely on callers to catch missing destructors.
80 * symtab.c (decode_line_1): For example (see above), here.
81 * buildsym.c, symtab.h: Remove TYPE_FLAGS_HAS{CON,DE}STRUCTOR
82 flags since they are no longer used.
83
84 Fixes to support C++ methods with functional parameters.
85 * c-exp.y (func_mod rule): Allow (and ignore) list of parameter
86 types in a function type.
87 * eval.c (parse_and_eval_type), value.h: New function,
88 parse_and_eval_type, is based on old code from check_stub_method.
89 But don't actually evaluate the cast, since that calls
90 value_cast(), whcih may fail. Just extract the type
91 from the parsed expression.
92 * values.c (check_stub_method): While looping through the
93 arguments, adjust depth *after* parameter has been handled.
94 Replace call and setup of parse_and_eval with new function
95 parse_and_eval_type.
96
58ae87f6
FF
97Tue Nov 12 09:40:07 1991 Fred Fish (fnf at cygnus.com)
98
99 * utils.c, rem-multi.shar: Remove fixed arg count version of
100 concat().
101
102 * altos-xdep.c, arm-xdep.c, coffread.c, command.c, convex-xdep.c,
103 core.c, dwarfread.c, gould-xdep.c, infcmd.c, language.c,
104 m88k-xdep.c, main.c, printcmd.c, pyr-xdep.c, source.c,
105 sun386-xdep.c, symm-xdep.c, umax-xdep.c, values.c, xcoffread.c:
106 Change all instances of use of fixed args concat() to variable
107 args concat() now located in libiberty.
108
74f6fb08
JG
109Tue Nov 12 07:23:46 1991 John Gilmore (gnu at cygnus.com)
110
111 * Makefile.in: Add xcoffread.c, xcoffexec.c.
112 * xcoffread.c: New file for handling AIX mangled-coff files.
113 * xconfig/rs6000, tconfig/rs6000: New files.
114 * buildsym.c: Add hooks for xcoffread.c.
115 * rs6000-pinsn.c, rs6000-tdep.c, rs6000-xdep.c, tm-rs6000.h,
cd56d314 116 xm-rs6000.h, rs6k-opcode.def, rs6k-opcode.h: New files.
74f6fb08
JG
117 * xcoffexec.c: New file for handling AIX shared libraries.
118
fb182850
FF
119Mon Nov 11 19:14:31 1991 Fred Fish (fnf at cygnus.com)
120
121 * core.c: Minor rewording of message to user containing name of
122 (and possibly arguments to) the program that generated a core
123 file.
124
125 * elfread.c: Remove the register_addr() stub now that it is no
126 longer needed.
127
128 * procfs.c: Move misplaced #endif for ATTACH_DETACH. Add new
129 fetch_core_registers() function for core file support.
130
8aca810c
FF
131Sat Nov 9 13:37:57 1991 Fred Fish (fnf at cygnus.com)
132
b662efed
FF
133 * dwarfread.c (dwarf_psymtab_to_symtab): Remove leftover call
134 to do_cleanups() which resulted from a previous change.
135
8aca810c
FF
136 * elfread.c: Re-enable compilation of register_addr() stub
137 whenever it is not supplied by coredep.c
138
a048c8f5
JG
139Sat Nov 9 00:40:32 1991 John Gilmore (gnu at cygnus.com)
140
141 Add tracking of object files (that contain symbols) to gdb.
142 This includes a "struct objfile" that owns symtabs and psymtabs
143 that were read in from that binary file.
144
145 * symfile.h: Add struct objfile. Add pointer to the objfile
146 into the struct sym_fns.
147 Replace global `symfile' and `symfile_mtime' with
148 `symfile_objfile'. Add global object_files chain.
149
150 * symfile.c: Move param.h above symtab.h.
151 (sort_misc_function_vector): Add.
152 (syms_from_objfile): Was syms_from_bfd.
153 (symfile_open): Now returns objfile.
154 (allocate_objfile): New.
155 (free_objfile): New, replacing free_all_.*symtabs.
156 (symfile_init): Takes objfile arg, puts it in sym_fns result.
157 (reread_symbols): Searches whole chain of objfiles.
158 (allocate_symtab): Takes objfile as new parameter, chains them.
159 Handle INIT_EXTRA_SYMTAB_INFO.
160 (free_all_psymtabs, free_all_symtabs): Move here from symmisc.c.
161
162 * dbxread.c: Make more errors into complaints.
163 (push_subfile, pop_subfile): Move to buildsym.c.
164 (dbx_symfile_read, dbx_symfile_init, fill_symbuf, read_dbx_symtab,
165 start_psymtab, psymtab_to_symtab_1, read_ofile_symtab,
166 dbx_psymtab_to_symtab, ): Use bfd ops, don't use file descriptor.
167 Pass objfile. Change callers.
168 (fill_symbuf, SWAP_SYMBOL): Take bfd as arg.
169 (read_dbx_symtab): Just wipe out new symbols, not all, on error.
170 (end_psymtab): Blow away psymtab if empty.
171 (process_symbol_pair): Swallow into read_ofile_symtab.
172 (process_one_symbol): Use push_context and pop_context.
173 (virtual_context): Delete #if 0'd obsolete stuff.
174
175 * buildsym.c (end_symtab): Pass objfile.
176 (dbx_lookup_type): Handle null typevector.
177 (dbx_alloc_type): Check file number, not sym number, for -1.
178 (find_symbol_in_list): Add for xcoffread.
179 (start_symtab): Default typevector is empty. Keep reusing same
180 context_stack.
181 (end_symtab): Take objfile argument and pass it to
182 allocate_symtab. Don't make a symtab if no blocks or symbols.
183 Handle empty typevector.
184 (push_context): New function for context stack nesting.
185 (read_type): Mark FIXME where we need to reintroduce type smashing.
186
187 * buildsym.h (pop_context): Macro, paired with push_context.
188 (subfile_stack): Move here from dbxread.c.
189
190 * coffread.c (end_symtab, read_coff_symtab): Take and use objfile arg.
191 (read_coff_symtab): Cleanup by freeing objfile, not all symtabs.
192
193 * mipsread.c (read_mips_symtab, parse_partial_symbols, parse_fdr,
194 new_psymtab, new_symtab): Take and use objfile arg.
195
196 * dwarfread.c (scan_compilation_units, start_psymtab,
197 process_dies, end_symtab, dwarf_build_psymtabs,
198 read_lexical_block_scope, read_func_scope, read_file_scope): Take
199 and use objfile argument.
200 (psymtab_to_symtab_1, read_ofile_symtab): Don't take or use file
201 descriptor. Use BFD internal functions instead.
202 (end_symtab): Call global allocate_symtab.
203
1d82d3dc 204 * elfread.c, target.c: Minor changes to accommodate objfiles.
a048c8f5
JG
205 * symtab.h: partial_symbol_table has no symfile_name member now.
206 (fn_fieldlists voffset): avoid non-int bitfield.
207 (struct symtab): Add objfile * and objfile_chain * of symtabs.
208 (struct partial_symtab): Add objfile * and objfile_chain * of
209 psymtabs. Remove symfile_name.
210
1d82d3dc
JG
211 * symmisc.c: Lose free_all_symtabs, free_all_psymtabs.
212 (printsyms_command): Rename from print_symtabs. Add selective
213 listing if 2nd argument given. Print objfile info.
214 (printpsyms_command): Rename from print_partial_symtabs. Ditto all.
215 (printobjfiles_command): New; prints objfiles lists, and checks
216 for consistency of symtab, psymtab, and objfile lists.
217
a048c8f5
JG
218 * symfile.h, symfile.c, symtab.h: Lint
219
c4668207
JG
220Fri Nov 8 23:38:48 1991 John Gilmore (gnu at cygnus.com)
221
222 * command.c: Include param.h.
223 * defs.h (warning_setup, warning): Declare.
224 * expprint.c (print_subexp, UNOP_MEMVAL case): Lint.
225 * inflow.c (new_tty): Use USE_O_NOCTTY #define.
226 * language.c, printcmd.c (print_scalar_formatted), signame.c,
227 stack.c: lint.
228
b92c774e
SC
229Thu Nov 7 18:26:15 1991 Steve Chamberlain (sac at rtl.cygnus.com)
230
b715d5b4
SC
231 * Makefile.in: link with libiberty after libreadline, since
232 readline might want something in libiberty.
b92c774e
SC
233 * m88k-xdep.c: Fixed the register offsets in the ptrace_user
234 struct for BCS 88k machines.
235 * xm-m88k.h: don't define USIZE if already defined.
236 * configure.in: Added delta88 target.
237
fbcb5095
JG
238Thu Nov 7 04:51:19 1991 John Gilmore (gnu at cygnus.com)
239
1bf068b8
JG
240 * am29k-pinsn.c, am29k-opcode.h: Fix decoding of mtacc, dmac, fmac.
241
fbcb5095
JG
242 * tm-*.h: Remove READ_DBX_FORMAT, COFF_FORMAT, and
243 READ_MIPS_FORMAT, which have been unused since BFD. Still
244 remaining is COFF_NO_LONG_FILE_NAMES.
245 * tm-sun3.h, tm-altos.h: Remove detritus accidentally left from
246 function calling code moved to m68k-tdep.c.
247
e64fbb3a
JG
248Wed Nov 6 17:21:59 1991 John Gilmore (gnu at cygnus.com)
249
250 * coffread.c: Eliminate c_nsyms in favor of c_naux.
251 Complain if no auxents on .bf and .ef FCN symbols, and assume
252 lots of line numbers.
253 (init_linenos, enter_linenos): Use a sentinel at the end of the
254 read-in linenos, to make for a fast, safe loop-end test.
255
256Wed Nov 6 02:54:08 1991 Steve Chamberlain (sac at cygnus.com)
257
258 * coffread.c (read_coff_symtab): coffread used to rely on the
259 x_sym.x_misc.x_lnsz.x_lnno field giving the # of linnos in a
260 function. Two of the formats I'm using (29k and 88k) don't seem to
261 set it. Ths patch to fcn_last_line and (enter_linenos) is an
262 attempt to use the actual size of the linno table in the file to set
263 the number of linenos to process.
264
0aaa124f
SC
265Tue Nov 5 22:47:46 1991 Steve Chamberlain (sac at cygnus.com)
266
267 * Makefile.in: put a - infront of the mv y.tab.c c-exp.tab.c and
268 mv y.tab.c m2-exp.tab.c, so that if bison is used, and the files
269 are created in place, so the mv fails, then the make continues.
270
545af6ce
PB
271Tue Nov 5 16:47:47 1991 Per Bothner (bothner at cygnus.com)
272
273 Add C++ as a separate language.
274 * defs.h (enum language): Add language_cplus.
275 * dwarfread.c (end_symtab): Support language_cplus.
276 * c-exp.y: Add new struct language_defn cplus_language_defn.
277 Don't set c to be the default language (see main.c).
278 * c-exp.y (yylex): Only look for field of this if
279 language is C++. (First difference from C!)
280 * language.c: Add case branches for C++ (currently, all
281 the same as C). Also, add c++ to "usage" note for "set lang".
282 * valprint.c (typedef_print). Add case branches for C++.
283 * main.c (main): New way to set initial language: Look at
284 file extension of psymtab containing main(). (Same as we
285 do for symtabs, but avoid loading the symtab yet.)
286 * symtab.c: New routine find_main_psymtab(), used by main()
287 to set initial language.
288 * symfile.c (allocate_symtab): Move code for mapping file
289 extensions-> languages to new deduce_language_from_filename().
290
291 Fix a C++ problem when looking for methods in super-classes.
292 There was confusion between base and derived types.
293 * valops.c (value_fn_field): Change function interface.
294 * values.c: Use new value_fn_field interface.
295
abefb1f1
PB
296Mon Nov 4 10:49:33 1991 Per Bothner (bothner at cygnus.com)
297
298 * infrun.c: Fixed typo in comment.
299 * utils.c: All the v*fprintf emulation is now in libiberty,
300 so we can get rid of some junk.
301 * xm-sun3os4.h, xm-sun4os4.h, xconfig/decstation, xconfig/i386sco,
302 xconfig/sun3os4, xconfig/sun4os4: Don`t need HAVE_STRSTR any more.
303 * m68k-pinsn.c (print_insn_arg): Support BB/BW/BL
304 type operands, as used by branch instructions.
305 * gmalloc.c: Fix prototype of memcpy.
306 * elfread.c: Comment out register_addr, since it conflicts
307 with the one in coredep.c.
308 * buildsym.h: Remove extern declarations of two functions
309 that are really static in buildsym.c.
310 * tm-mips.h: Add symbolic names for more registers.
311 * mips-xdep.c (store_inferior_registers): Use new register names.
312 * xm-mips.h: Simplify REGISTER_U_ADDR, since it is now
313 only used for core files, not ptrace. Therefore,
314 the KERNEL_U_ADDR hack is no longer needed.
315 The mapping to ptrace number is now in in mips-xdep.c.
316 * mips-xdep.c: Define REGISTER_PTRACE_ADDR (using the
317 mapping from the old REGISTER_U_ADDR), and use it
318 in {fetch,store}_inferior_registers.
319 * mipsread.c: Rename #include ecoff.h to new name coff-mips.h.
320 * mips-tdep.c (mips_push_dummy_frame, mips_pop_frame):
321 Save/restore FP regs correctly (?).
322 * dbxread.c: Remove duplicate define_symbol and type_synonym_name
323 (these had been previously moved to buildsym.c).
324 Hence, define_symbol becomes extern instead of static.
325 * buildsym.c (read_struct_type): Comment out bogus handling
326 of C++ operator methods. Minor hacking of reading of class
327 contexts. Make define_symbol non-static, so dbxread.c can call it.
328
c9bd6710
JG
329Fri Nov 1 11:05:47 1991 John Gilmore (gnu at cygnus.com)
330
331 * mipsread.c (read_mips_symtab, read_the_mips_symtab): Use real
332 filename with error messages.
333 * stack.c (frame_select_command): Rename to select_frame_command
334 to avoid "fr" and "fra" having nonunique completions.
335 * symfile.c (sort_symtab_syms): Ignore sort of zero symtab *.
336 (symfile_init): Print file format name when unable to handle it.
337 (free_named_symtabs): Use BLOCKVECTOR rather than obsolete BLOCKLIST.
338 * symmisc.c (free_symtab): Only free linetable if nonzero.
339 * symtab.h: Remove obsolete BLOCKLIST macros.
340
d7d1098d
SG
341Thu Oct 31 18:12:43 1991 Stu Grossman (grossman at cygnus.com)
342
343 * infrun.c (wait_for_inferior): another stepi/nexti fix. Ensure
344 that stop_step is 1 at bottom of main loop. I don't know why this
345 needs to be done, but it helps me sleep better at night.
346
8b3c897a
SG
347Sun Oct 27 18:18:39 1991 Stu Grossman (grossman at cygnus.com)
348
349 * main.c (initialize_history): Read history after reading all
350 init files.
351
4137c5fc
JG
352Sun Oct 27 14:09:25 1991 John Gilmore (gnu at cygnus.com)
353
354 * buildsym.c: Break out initial malloc sizes.
355 (record_line): Record directly in a subfile. Alloc on demand.
356 (compare_line_numbers): Add from xcoffread.c.
357 (end_symtab): New params say whether to sort pendings and
358 linetable. Patch block stabs if defined. Shrink linetable before
359 allocating the symtab.
360 * buildsym.h: Delete line_vector* and prev_line_number. Add
361 global_stabs and file_stabs for xcoffread.
362 * dbxread.c (start_subfile): Move to buildsym. Change above calls.
363 * symtab.h: LINETABLE(symtab) can now be null. Zap LINELIST.
364 * symmisc.c, symtab.c: Cope with null LINETABLEs.
365
366 * blockframe.c: Pass fromleaf to INIT_EXTRA_FRAME_INFO.
367 * tm-29k.h, tm-88k.h, tm-i960.h, tm-irix3.h, tm-mips.h, tm-pyr.h,
368 tm-sparc.h: Accept fromleaf parameter.
369 * c-exp.y (yyerror): Pass error message if given.
370 * configure.in: Add rs6000 host and target.
371 * inflow.c (new_tty): O_NOCTTY kludge for RS/6000.
372 * symfile.h (entry_point): Add.
373
c0302457
JG
374Sat Oct 26 00:16:32 1991 John Gilmore (gnu at cygus.com)
375
376 * buildsym.c: New file. Breaks out symbol-table-building routines
377 from dbxread.c, so they can be shared with xcoffread.c.
378 * buildsym.h: New file. Declarations for buildsym.c users.
379 * dbxread.c: Remove large chunks into buildsym.c.
d47d5315
JG
380 * Makefile.in: Add buildsym.c and buildsym.h.
381
382 * symfile.c (syms_from_bfd): New routine.
383 (add_symbol_file): Call it to do the real work.
384 (syms_from_bfd): Initialize entry_point before calling symfile_init.
385 * symtab.h, symfile.c, coffread.c, mipsread.c, dwarfread.c:
386 Avoid declaring or setting entry_point (symfile.h & symfile.c cope).
c0302457 387
bcccec8c
PB
388Fri Oct 25 18:59:32 1991 Per Bothner (bothner at cygnus.com)
389
390 Various fixes to improve g++ debugging.
391 * symtab.h: Add is_const and is_volatile flags for each method.
392 These are bit fields - take their space from voffset,
393 which shrinks to 30 bits. Since voffset is now a bitfield,
394 make it unsigned for portability. This changes its interpretation
395 slightly: Static methods now have voffset 1 instead of -1,
396 and virtual offsets start at 2, not 1.
397 * symtab.c: Renamed gdb_mangle_typename to gdb_mangle_name,
398 since it now returns an entire magled method name, not just
399 the type part. This avoids some duplication.
400 It also allows us to correctly mangle const and volatile
401 methods (using the new is_const and is_volatile bit fields
402 mentioned above).
403 * valprint.c (type_print_base), values.c (check_stub_method):
404 Simplify by using new gdb_mangle_name.
405 * values.c (value_headof): Fix to correctly handle single
406 inheritance (actually two fixes, either of which suffices).
407 * dbxread.c (read_struct_type): Handle const and volatile
408 method specifiers.
409 * dbxread.c (read_struct_type): Yet one more place where
410 we must handle '\\' continuations.
411 * valprint.c (vtbl_ptr_name): Add final '\0'.
412
eb3f3e5c
SG
413Fri Oct 25 16:06:38 1991 Stu Grossman (grossman at cygnus.com)
414
5ab580cc
SG
415 * tm-sparc.h, tm-68k.h (EXTRACT_RETURN_VALUE): fix output of
416 short return values for sparc and 68k. Patch from Paul Eggert.
417
eb3f3e5c
SG
418 * coffread.c, coredep.c, i386-xdep.c: install patches for
419 SysV/386 3.2 from Mauro DePalma.
420
9cb602e1
JG
421Fri Oct 25 02:02:13 1991 John Gilmore (gnu at cygnus.com)
422
c58215f2
JG
423 * core.c (core_file_info), exec.c (exec_file_info): Print file
424 type. Use printf_filtered.
425
9cb602e1
JG
426 * valops.c (value_fetch_lazy): Avoid 0-length fetches.
427
b662acae
FF
428Thu Oct 24 23:06:40 1991 Fred Fish (fnf at cygnus.com)
429
c8c0a2bd
FF
430 * dwarfread.c: Add casts to remove compiler warnings.
431
84d82b1c
FF
432 * tm-3b1.h, tm-68k.h, tm-altos.h, tm-amix.h, tm-hp300bsd.h,
433 tm-hp300hpux.h, tm-isi.h, tm-news.h, tm-pn.h, tm-sun2.h,
434 tm-sun3.h: Remove locally duplicated code for calling functions
435 in the inferior. The only differences were in the specific trap
436 vectors used and whether or not an fpu was present. These are
437 now handled by appropriate definitions of BPT_VECTOR and
438 HAVE_68881 respectively. Other minor obvious cleanups.
439
440 * valops.c: Correct a minor misspelling.
441
ed317bb3
FF
442 * utils.c: Remove local BSD/USG hacks that are now in libiberty.
443
b662acae
FF
444 * dwarfread.c: Remove prototype for dwarfwarn. Does not work
445 with <varargs.h>.
446
313fdead
JG
447Thu Oct 24 09:33:44 1991 John Gilmore (gnu at cygnus.com)
448
b0077123
JG
449 * stack.c (frame_command): Always print. Use new
450 frame_select_command to select a frame without printing.
451
313fdead
JG
452 * dwarfread.c: Use <varargs.h>, since <stdarg.h> is not portable.
453
4a35d6e9
FF
454Thu Oct 24 01:32:51 1991 Fred Fish (fnf at cygnus.com)
455
35f5886e
FF
456 * dwarfread.c: New file for DWARF debugging format support.
457
458 * elfread.c: New file for ELF object file format support.
459
460 * procfs.c: New file for SVR4 /proc (process file system) support.
461
462 * tm-amix.h, xm-amix.h, tconfig/amix, xconfig/amix: New files for
463 Amiga UNIX support.
464
465 * xm-svr4.h, tm-svr4.h: New files for SVR4 support.
466
467 * xm-m68k.h: New file for host machines with m68k cpu.
468
bb4ff694
FF
469 * Makefile.in: Add elfread.c and dwarfread.c to SFILES_MAINDIR.
470 Add elfread.o and dwarfread.o to OBS.
471
472 * symfile.h: Add "elf" to list of supported formats in comment.
473
e2aab031
FF
474 * c-exp.y, defs.h, symtab.h, valprint.c: Add three new builtin
475 types to gdb, builtin_type_long_double, builtin_type_complex, and
476 builtin_type_double_complex. Add and use new TARGET_SHORT_BIT,
477 TARGET_INT_BIT, TARGET_LONG_BIT, TARGET_FLOAT_BIT,
478 TARGET_DOUBLE_BIT, TARGET_LONG_DOUBLE_BIT, TARGET_COMPLEX_BIT, and
479 TARGET_DOUBLE_COMPLEX_BIT, as the sizes in bits of the indicated
480 types on the target machine (ala the existing TARGET_LONG_LONG_BIT).
481
02070680
FF
482 * infrun.c: When using SVR4 /proc interface instead of ptrace(),
483 call proc_set_exec_trap() to setup child to stop at first instruction.
484
485 * inftarg.c: When using SVR4 /proc interface, call proc_wait()
486 rather than wait().
487
488 * m68k-tdep.c: Add new routines supply_gregset(), fill_gregset(),
489 supply_fpregset(), and fill_fpregset(), which are machine
490 dependent support routines for SVR4 /proc interface.
491
2bc2e684
FF
492 * utils.c: Add warning_setup() and warning(). Warning() behaves
493 the same as error() except that it returns normally rather than
494 jumping back to command level. Modules that don't want to call
495 warning() for some reason, but want to produce their own warnings,
496 can call warning_setup() to ensure compatibility with the way
497 warning() and error() deal with the terminal.
498
eaa1ef1d
FF
499 * symtab.c: Make internal errors produce more useful messages.
500
dcd15e5e
FF
501 * tm-68k.h: Move code that is duplicated in almost every single
502 m68k based machine's configuration files to this common file.
503 Duplications in the configuration files still need to be removed
504 (FIXME).
505
150f5436
FF
506 * infrun.c (child_create_inferior): System V versions must call
507 setpgrp() with no arguments, to comply with prototyping typically
508 in <unistd.h>.
509
cb17dfb1
FF
510 * munch: Add support for SVR4 style nm output.
511
4a35d6e9
FF
512 * dbxread.c, mipsread.c symmisc.c, symtab.c: Remove the object
513 file specific fields from the partial symbol table structure and
514 replace them with a pointer to private data for each different
515 flavor of object file reader to initialize appropriately.
516
b0077123
JG
517Wed Oct 23 09:38:20 1991 John Gilmore (gnu at cygnus.com)
518
519 * xconfig/sun[34]os4: Add note about strstr botch on sunos4.0.3c
520 and previous.
521
522 * mipsread.c (fixup_undef_type): New function. If a struct /
523 union / enum is defined in a header file but nowhere else used,
524 (by typedefing, pointer referencing or declaration) the mipsread code
525 builds the complete tree for the structure but leaves its code as
526 TYPE_CODE_UNDEF as it doesn't know what kind of aggregate it is.
527 Guess its type based on the details of the members.
528
0d3e7f60
SG
529Tue Oct 22 18:04:32 1991 Stu Grossman (grossman at cygnus.com)
530
531 * infrun.c (wait_for_inferior): Check return value from
532 find_pc_line.
533
bc6c937d
SG
534Mon Oct 21 17:47:03 1991 Stu Grossman (grossman at cygnus.com)
535
536 * infrun.c (wait_for_inferior): fix stepi/nexti that was broken
537 by my last edit to this routine.
538
b0077123
JG
539Mon Oct 21 14:27:43 1991 John Gilmore (gnu at cygnus.com)
540
541 * tm-sun3.h (FIX_CALL_DUMMY): problem with cross debugging.
542 FIX_CALL_DUMMY does unaligned accesses and/or forgets to byte swap
543 the values before putting them into the dummy code. (From Peter
544 Schauer)
545
44e4e473
SC
546Mon Oct 21 10:04:39 1991 Steve Chamberlain (steve at rtl.cygnus.com)
547
548 * configure.in: added ebmon target.
549
785ce19c 550Wed Oct 16 22:49:58 1991 John Gilmore (gnu at cygnus.com)
a1b8c5d6
JG
551
552 GDB-4.2 release!
553
554 * Makefile.in: Roll VERSION to 4.2.
44e4e473 555 * README, TODO, WHATS.NEW: Update.
a1b8c5d6
JG
556
557 * core.c (core_open): Improve error message for bad file.
558 Pass .reg virtual memory address to fetch_core_registers to help
559 it find the registers in the core-file header.
560 * coredep.c (fetch_core_registers): Take new argument, use it,
561 and pass it to register_addr to locate the block of registers.
785ce19c 562 * xm-mips.h: Update KERNEL_U_ADDR for new scheme. Cleanup a bit.
a1b8c5d6
JG
563
564 * dbxread.c (read_dbx_symtab, process_one_symbol): Handle
565 Sequent N_FN_SEQ like everybody else's N_FN.
566
567 * main.c: Circumvent SCO cc bug with #if !!defined(USG).
568 * tm-i386v.h: #endif guck.
569 * xconfig/i386*: Remove -Dgetpagesize()=4096 kludge.
785ce19c
JG
570 * xconfig/i386sco: Add HAVE_STRSTR to avoid ANSI bdeath.
571 * xconfig/tahoe: Add REGEX, which seems to be missing.
572
573 * coredep.c: Add <sys/types.h> for SCOnix.
574 * dbxread.c (read_dbx_symntab): Avoid coredump on malformed file.
575 * printcmd.c (print_formatted): Flush output before disassembly.
a1b8c5d6 576
93ae2e88
RP
577Tue Oct 15 20:12:32 1991 Roland H. Pesch (pesch at fowanton.cygnus.com)
578
9e0906a6
RP
579 * doc/refcard.tex (sec "Working Files"): consistent metavars and