Lint and some rs/6000 port.
[deliverable/binutils-gdb.git] / gdb / ChangeLog
CommitLineData
c4668207
JG
1Fri Nov 8 23:38:48 1991 John Gilmore (gnu at cygnus.com)
2
3 * command.c: Include param.h.
4 * defs.h (warning_setup, warning): Declare.
5 * expprint.c (print_subexp, UNOP_MEMVAL case): Lint.
6 * inflow.c (new_tty): Use USE_O_NOCTTY #define.
7 * language.c, printcmd.c (print_scalar_formatted), signame.c,
8 stack.c: lint.
9
b92c774e
SC
10Thu Nov 7 18:26:15 1991 Steve Chamberlain (sac at rtl.cygnus.com)
11
b715d5b4
SC
12 * Makefile.in: link with libiberty after libreadline, since
13 readline might want something in libiberty.
b92c774e
SC
14 * m88k-xdep.c: Fixed the register offsets in the ptrace_user
15 struct for BCS 88k machines.
16 * xm-m88k.h: don't define USIZE if already defined.
17 * configure.in: Added delta88 target.
18
fbcb5095
JG
19Thu Nov 7 04:51:19 1991 John Gilmore (gnu at cygnus.com)
20
1bf068b8
JG
21 * am29k-pinsn.c, am29k-opcode.h: Fix decoding of mtacc, dmac, fmac.
22
fbcb5095
JG
23 * tm-*.h: Remove READ_DBX_FORMAT, COFF_FORMAT, and
24 READ_MIPS_FORMAT, which have been unused since BFD. Still
25 remaining is COFF_NO_LONG_FILE_NAMES.
26 * tm-sun3.h, tm-altos.h: Remove detritus accidentally left from
27 function calling code moved to m68k-tdep.c.
28
e64fbb3a
JG
29Wed Nov 6 17:21:59 1991 John Gilmore (gnu at cygnus.com)
30
31 * coffread.c: Eliminate c_nsyms in favor of c_naux.
32 Complain if no auxents on .bf and .ef FCN symbols, and assume
33 lots of line numbers.
34 (init_linenos, enter_linenos): Use a sentinel at the end of the
35 read-in linenos, to make for a fast, safe loop-end test.
36
37Wed Nov 6 02:54:08 1991 Steve Chamberlain (sac at cygnus.com)
38
39 * coffread.c (read_coff_symtab): coffread used to rely on the
40 x_sym.x_misc.x_lnsz.x_lnno field giving the # of linnos in a
41 function. Two of the formats I'm using (29k and 88k) don't seem to
42 set it. Ths patch to fcn_last_line and (enter_linenos) is an
43 attempt to use the actual size of the linno table in the file to set
44 the number of linenos to process.
45
0aaa124f
SC
46Tue Nov 5 22:47:46 1991 Steve Chamberlain (sac at cygnus.com)
47
48 * Makefile.in: put a - infront of the mv y.tab.c c-exp.tab.c and
49 mv y.tab.c m2-exp.tab.c, so that if bison is used, and the files
50 are created in place, so the mv fails, then the make continues.
51
545af6ce
PB
52Tue Nov 5 16:47:47 1991 Per Bothner (bothner at cygnus.com)
53
54 Add C++ as a separate language.
55 * defs.h (enum language): Add language_cplus.
56 * dwarfread.c (end_symtab): Support language_cplus.
57 * c-exp.y: Add new struct language_defn cplus_language_defn.
58 Don't set c to be the default language (see main.c).
59 * c-exp.y (yylex): Only look for field of this if
60 language is C++. (First difference from C!)
61 * language.c: Add case branches for C++ (currently, all
62 the same as C). Also, add c++ to "usage" note for "set lang".
63 * valprint.c (typedef_print). Add case branches for C++.
64 * main.c (main): New way to set initial language: Look at
65 file extension of psymtab containing main(). (Same as we
66 do for symtabs, but avoid loading the symtab yet.)
67 * symtab.c: New routine find_main_psymtab(), used by main()
68 to set initial language.
69 * symfile.c (allocate_symtab): Move code for mapping file
70 extensions-> languages to new deduce_language_from_filename().
71
72 Fix a C++ problem when looking for methods in super-classes.
73 There was confusion between base and derived types.
74 * valops.c (value_fn_field): Change function interface.
75 * values.c: Use new value_fn_field interface.
76
abefb1f1
PB
77Mon Nov 4 10:49:33 1991 Per Bothner (bothner at cygnus.com)
78
79 * infrun.c: Fixed typo in comment.
80 * utils.c: All the v*fprintf emulation is now in libiberty,
81 so we can get rid of some junk.
82 * xm-sun3os4.h, xm-sun4os4.h, xconfig/decstation, xconfig/i386sco,
83 xconfig/sun3os4, xconfig/sun4os4: Don`t need HAVE_STRSTR any more.
84 * m68k-pinsn.c (print_insn_arg): Support BB/BW/BL
85 type operands, as used by branch instructions.
86 * gmalloc.c: Fix prototype of memcpy.
87 * elfread.c: Comment out register_addr, since it conflicts
88 with the one in coredep.c.
89 * buildsym.h: Remove extern declarations of two functions
90 that are really static in buildsym.c.
91 * tm-mips.h: Add symbolic names for more registers.
92 * mips-xdep.c (store_inferior_registers): Use new register names.
93 * xm-mips.h: Simplify REGISTER_U_ADDR, since it is now
94 only used for core files, not ptrace. Therefore,
95 the KERNEL_U_ADDR hack is no longer needed.
96 The mapping to ptrace number is now in in mips-xdep.c.
97 * mips-xdep.c: Define REGISTER_PTRACE_ADDR (using the
98 mapping from the old REGISTER_U_ADDR), and use it
99 in {fetch,store}_inferior_registers.
100 * mipsread.c: Rename #include ecoff.h to new name coff-mips.h.
101 * mips-tdep.c (mips_push_dummy_frame, mips_pop_frame):
102 Save/restore FP regs correctly (?).
103 * dbxread.c: Remove duplicate define_symbol and type_synonym_name
104 (these had been previously moved to buildsym.c).
105 Hence, define_symbol becomes extern instead of static.
106 * buildsym.c (read_struct_type): Comment out bogus handling
107 of C++ operator methods. Minor hacking of reading of class
108 contexts. Make define_symbol non-static, so dbxread.c can call it.
109
c9bd6710
JG
110Fri Nov 1 11:05:47 1991 John Gilmore (gnu at cygnus.com)
111
112 * mipsread.c (read_mips_symtab, read_the_mips_symtab): Use real
113 filename with error messages.
114 * stack.c (frame_select_command): Rename to select_frame_command
115 to avoid "fr" and "fra" having nonunique completions.
116 * symfile.c (sort_symtab_syms): Ignore sort of zero symtab *.
117 (symfile_init): Print file format name when unable to handle it.
118 (free_named_symtabs): Use BLOCKVECTOR rather than obsolete BLOCKLIST.
119 * symmisc.c (free_symtab): Only free linetable if nonzero.
120 * symtab.h: Remove obsolete BLOCKLIST macros.
121
d7d1098d
SG
122Thu Oct 31 18:12:43 1991 Stu Grossman (grossman at cygnus.com)
123
124 * infrun.c (wait_for_inferior): another stepi/nexti fix. Ensure
125 that stop_step is 1 at bottom of main loop. I don't know why this
126 needs to be done, but it helps me sleep better at night.
127
8b3c897a
SG
128Sun Oct 27 18:18:39 1991 Stu Grossman (grossman at cygnus.com)
129
130 * main.c (initialize_history): Read history after reading all
131 init files.
132
4137c5fc
JG
133Sun Oct 27 14:09:25 1991 John Gilmore (gnu at cygnus.com)
134
135 * buildsym.c: Break out initial malloc sizes.
136 (record_line): Record directly in a subfile. Alloc on demand.
137 (compare_line_numbers): Add from xcoffread.c.
138 (end_symtab): New params say whether to sort pendings and
139 linetable. Patch block stabs if defined. Shrink linetable before
140 allocating the symtab.
141 * buildsym.h: Delete line_vector* and prev_line_number. Add
142 global_stabs and file_stabs for xcoffread.
143 * dbxread.c (start_subfile): Move to buildsym. Change above calls.
144 * symtab.h: LINETABLE(symtab) can now be null. Zap LINELIST.
145 * symmisc.c, symtab.c: Cope with null LINETABLEs.
146
147 * blockframe.c: Pass fromleaf to INIT_EXTRA_FRAME_INFO.
148 * tm-29k.h, tm-88k.h, tm-i960.h, tm-irix3.h, tm-mips.h, tm-pyr.h,
149 tm-sparc.h: Accept fromleaf parameter.
150 * c-exp.y (yyerror): Pass error message if given.
151 * configure.in: Add rs6000 host and target.
152 * inflow.c (new_tty): O_NOCTTY kludge for RS/6000.
153 * symfile.h (entry_point): Add.
154
c0302457
JG
155Sat Oct 26 00:16:32 1991 John Gilmore (gnu at cygus.com)
156
157 * buildsym.c: New file. Breaks out symbol-table-building routines
158 from dbxread.c, so they can be shared with xcoffread.c.
159 * buildsym.h: New file. Declarations for buildsym.c users.
160 * dbxread.c: Remove large chunks into buildsym.c.
d47d5315
JG
161 * Makefile.in: Add buildsym.c and buildsym.h.
162
163 * symfile.c (syms_from_bfd): New routine.
164 (add_symbol_file): Call it to do the real work.
165 (syms_from_bfd): Initialize entry_point before calling symfile_init.
166 * symtab.h, symfile.c, coffread.c, mipsread.c, dwarfread.c:
167 Avoid declaring or setting entry_point (symfile.h & symfile.c cope).
c0302457 168
bcccec8c
PB
169Fri Oct 25 18:59:32 1991 Per Bothner (bothner at cygnus.com)
170
171 Various fixes to improve g++ debugging.
172 * symtab.h: Add is_const and is_volatile flags for each method.
173 These are bit fields - take their space from voffset,
174 which shrinks to 30 bits. Since voffset is now a bitfield,
175 make it unsigned for portability. This changes its interpretation
176 slightly: Static methods now have voffset 1 instead of -1,
177 and virtual offsets start at 2, not 1.
178 * symtab.c: Renamed gdb_mangle_typename to gdb_mangle_name,
179 since it now returns an entire magled method name, not just
180 the type part. This avoids some duplication.
181 It also allows us to correctly mangle const and volatile
182 methods (using the new is_const and is_volatile bit fields
183 mentioned above).
184 * valprint.c (type_print_base), values.c (check_stub_method):
185 Simplify by using new gdb_mangle_name.
186 * values.c (value_headof): Fix to correctly handle single
187 inheritance (actually two fixes, either of which suffices).
188 * dbxread.c (read_struct_type): Handle const and volatile
189 method specifiers.
190 * dbxread.c (read_struct_type): Yet one more place where
191 we must handle '\\' continuations.
192 * valprint.c (vtbl_ptr_name): Add final '\0'.
193
eb3f3e5c
SG
194Fri Oct 25 16:06:38 1991 Stu Grossman (grossman at cygnus.com)
195
5ab580cc
SG
196 * tm-sparc.h, tm-68k.h (EXTRACT_RETURN_VALUE): fix output of
197 short return values for sparc and 68k. Patch from Paul Eggert.
198
eb3f3e5c
SG
199 * coffread.c, coredep.c, i386-xdep.c: install patches for
200 SysV/386 3.2 from Mauro DePalma.
201
9cb602e1
JG
202Fri Oct 25 02:02:13 1991 John Gilmore (gnu at cygnus.com)
203
c58215f2
JG
204 * core.c (core_file_info), exec.c (exec_file_info): Print file
205 type. Use printf_filtered.
206
9cb602e1
JG
207 * valops.c (value_fetch_lazy): Avoid 0-length fetches.
208
b662acae
FF
209Thu Oct 24 23:06:40 1991 Fred Fish (fnf at cygnus.com)
210
c8c0a2bd
FF
211 * dwarfread.c: Add casts to remove compiler warnings.
212
84d82b1c
FF
213 * tm-3b1.h, tm-68k.h, tm-altos.h, tm-amix.h, tm-hp300bsd.h,
214 tm-hp300hpux.h, tm-isi.h, tm-news.h, tm-pn.h, tm-sun2.h,
215 tm-sun3.h: Remove locally duplicated code for calling functions
216 in the inferior. The only differences were in the specific trap
217 vectors used and whether or not an fpu was present. These are
218 now handled by appropriate definitions of BPT_VECTOR and
219 HAVE_68881 respectively. Other minor obvious cleanups.
220
221 * valops.c: Correct a minor misspelling.
222
ed317bb3
FF
223 * utils.c: Remove local BSD/USG hacks that are now in libiberty.
224
b662acae
FF
225 * dwarfread.c: Remove prototype for dwarfwarn. Does not work
226 with <varargs.h>.
227
313fdead
JG
228Thu Oct 24 09:33:44 1991 John Gilmore (gnu at cygnus.com)
229
b0077123
JG
230 * stack.c (frame_command): Always print. Use new
231 frame_select_command to select a frame without printing.
232
313fdead
JG
233 * dwarfread.c: Use <varargs.h>, since <stdarg.h> is not portable.
234
4a35d6e9
FF
235Thu Oct 24 01:32:51 1991 Fred Fish (fnf at cygnus.com)
236
35f5886e
FF
237 * dwarfread.c: New file for DWARF debugging format support.
238
239 * elfread.c: New file for ELF object file format support.
240
241 * procfs.c: New file for SVR4 /proc (process file system) support.
242
243 * tm-amix.h, xm-amix.h, tconfig/amix, xconfig/amix: New files for
244 Amiga UNIX support.
245
246 * xm-svr4.h, tm-svr4.h: New files for SVR4 support.
247
248 * xm-m68k.h: New file for host machines with m68k cpu.
249
bb4ff694
FF
250 * Makefile.in: Add elfread.c and dwarfread.c to SFILES_MAINDIR.
251 Add elfread.o and dwarfread.o to OBS.
252
253 * symfile.h: Add "elf" to list of supported formats in comment.
254
e2aab031
FF
255 * c-exp.y, defs.h, symtab.h, valprint.c: Add three new builtin
256 types to gdb, builtin_type_long_double, builtin_type_complex, and
257 builtin_type_double_complex. Add and use new TARGET_SHORT_BIT,
258 TARGET_INT_BIT, TARGET_LONG_BIT, TARGET_FLOAT_BIT,
259 TARGET_DOUBLE_BIT, TARGET_LONG_DOUBLE_BIT, TARGET_COMPLEX_BIT, and
260 TARGET_DOUBLE_COMPLEX_BIT, as the sizes in bits of the indicated
261 types on the target machine (ala the existing TARGET_LONG_LONG_BIT).
262
02070680
FF
263 * infrun.c: When using SVR4 /proc interface instead of ptrace(),
264 call proc_set_exec_trap() to setup child to stop at first instruction.
265
266 * inftarg.c: When using SVR4 /proc interface, call proc_wait()
267 rather than wait().
268
269 * m68k-tdep.c: Add new routines supply_gregset(), fill_gregset(),
270 supply_fpregset(), and fill_fpregset(), which are machine
271 dependent support routines for SVR4 /proc interface.
272
2bc2e684
FF
273 * utils.c: Add warning_setup() and warning(). Warning() behaves
274 the same as error() except that it returns normally rather than
275 jumping back to command level. Modules that don't want to call
276 warning() for some reason, but want to produce their own warnings,
277 can call warning_setup() to ensure compatibility with the way
278 warning() and error() deal with the terminal.
279
eaa1ef1d
FF
280 * symtab.c: Make internal errors produce more useful messages.
281
dcd15e5e
FF
282 * tm-68k.h: Move code that is duplicated in almost every single
283 m68k based machine's configuration files to this common file.
284 Duplications in the configuration files still need to be removed
285 (FIXME).
286
150f5436
FF
287 * infrun.c (child_create_inferior): System V versions must call
288 setpgrp() with no arguments, to comply with prototyping typically
289 in <unistd.h>.
290
cb17dfb1
FF
291 * munch: Add support for SVR4 style nm output.
292
4a35d6e9
FF
293 * dbxread.c, mipsread.c symmisc.c, symtab.c: Remove the object
294 file specific fields from the partial symbol table structure and
295 replace them with a pointer to private data for each different
296 flavor of object file reader to initialize appropriately.
297
b0077123
JG
298Wed Oct 23 09:38:20 1991 John Gilmore (gnu at cygnus.com)
299
300 * xconfig/sun[34]os4: Add note about strstr botch on sunos4.0.3c
301 and previous.
302
303 * mipsread.c (fixup_undef_type): New function. If a struct /
304 union / enum is defined in a header file but nowhere else used,
305 (by typedefing, pointer referencing or declaration) the mipsread code
306 builds the complete tree for the structure but leaves its code as
307 TYPE_CODE_UNDEF as it doesn't know what kind of aggregate it is.
308 Guess its type based on the details of the members.
309
0d3e7f60
SG
310Tue Oct 22 18:04:32 1991 Stu Grossman (grossman at cygnus.com)
311
312 * infrun.c (wait_for_inferior): Check return value from
313 find_pc_line.
314
bc6c937d
SG
315Mon Oct 21 17:47:03 1991 Stu Grossman (grossman at cygnus.com)
316
317 * infrun.c (wait_for_inferior): fix stepi/nexti that was broken
318 by my last edit to this routine.
319
b0077123
JG
320Mon Oct 21 14:27:43 1991 John Gilmore (gnu at cygnus.com)
321
322 * tm-sun3.h (FIX_CALL_DUMMY): problem with cross debugging.
323 FIX_CALL_DUMMY does unaligned accesses and/or forgets to byte swap
324 the values before putting them into the dummy code. (From Peter
325 Schauer)
326
44e4e473
SC
327Mon Oct 21 10:04:39 1991 Steve Chamberlain (steve at rtl.cygnus.com)
328
329 * configure.in: added ebmon target.
330
785ce19c 331Wed Oct 16 22:49:58 1991 John Gilmore (gnu at cygnus.com)
a1b8c5d6
JG
332
333 GDB-4.2 release!
334
335 * Makefile.in: Roll VERSION to 4.2.
44e4e473 336 * README, TODO, WHATS.NEW: Update.
a1b8c5d6
JG
337
338 * core.c (core_open): Improve error message for bad file.
339 Pass .reg virtual memory address to fetch_core_registers to help
340 it find the registers in the core-file header.
341 * coredep.c (fetch_core_registers): Take new argument, use it,
342 and pass it to register_addr to locate the block of registers.
785ce19c 343 * xm-mips.h: Update KERNEL_U_ADDR for new scheme. Cleanup a bit.
a1b8c5d6
JG
344
345 * dbxread.c (read_dbx_symtab, process_one_symbol): Handle
346 Sequent N_FN_SEQ like everybody else's N_FN.
347
348 * main.c: Circumvent SCO cc bug with #if !!defined(USG).
349 * tm-i386v.h: #endif guck.
350 * xconfig/i386*: Remove -Dgetpagesize()=4096 kludge.
785ce19c
JG
351 * xconfig/i386sco: Add HAVE_STRSTR to avoid ANSI bdeath.
352 * xconfig/tahoe: Add REGEX, which seems to be missing.
353
354 * coredep.c: Add <sys/types.h> for SCOnix.
355 * dbxread.c (read_dbx_symntab): Avoid coredump on malformed file.
356 * printcmd.c (print_formatted): Flush output before disassembly.
a1b8c5d6 357
93ae2e88
RP
358Tue Oct 15 20:12:32 1991 Roland H. Pesch (pesch at fowanton.cygnus.com)
359
9e0906a6
RP
360 * doc/refcard.tex (sec "Working Files"): consistent metavars and