Minor bug fixes from last big checkin.
[deliverable/binutils-gdb.git] / gdb / ChangeLog
CommitLineData
d6776adb
JG
1Fri Aug 28 13:13:33 1992 John Gilmore (gnu@cygnus.com)
2
9b280a7f
JG
3 RS/6000 portability changes (for hosting cross-debuggers).
4
5 * breakpoint.c (fixup_breakpoints): Re-kludge to IBM6000_TARGET.
6 * buildsym.c, rs6000-xdep.c, rs6000-tdep.c, tm-rs6000.h,
7 xcoffexec.c, xcoffread.c: Rename aixcoff to xcoff everywhere.
8 * printcmd.c (print_frame_args): Remove an RS/6000 dependency.
9 * stabsread.c (define_symbol): Remove RS/6000 dependencies.
10 * tm-rs6000.h (ATTACH_DETACH): Remove: host-dependent.
11 (PTRACE_ATTACH, PTRACE_DETACH): Remove: host-dep.
12 (NO_SINGLE_STEP): Add, target-dependent.
13 (loadinfotextindex): Lowercase, remove "aix_".
14 * xm-rs6000.h: Add <sys/ptrace.h> for infptrace.c.
15 (NO_SINGLE_STEP): Remove, target-dependent.
16 * xcoffexec.c (vmap_symtab): Cleanup #if 0'd code.
17 * xcoffread.c: Only build file if RS/6000 native GDB.
18 (build_function_symbol): Remove #if 0'd code.
19 * rs6000-tdep.c: Cleanup. Add static fn protos.
20 Use CORE_ADDR for addresses throughout. Make void fns void.
21 (pop_dummy_frame): Add FIXME about bogosity of design here.
22 (rs6000_struct_return_address): Ditto.
23 (frameless_function_invocation, frame_get_cache_fsr,
24 frame_initial_stack_address, xcoff_relocate_symtab,
25 xcoff_init_loadinfo, free_loadinfo, xcoff_add_toc_to_loadinfo,
26 add_text_to_loadinfo, find_toc_address): Move from xdep file.
27 Use CORE_ADDRs. Change identifiers to lowercase.
28
29 * rs6000-xdep.c: Make whole file conditional on native RS/6000,
30 supplying dummy routines if non-native. Add prototype for
31 static exec_one_dummy_insn. Move a mess of functions to
32 rs6000-tdep.c (as above). Remove #if 0'd code.
33
34 * config/rs6000.mh (XDEPFILES): Move xcoffexec.o to target side.
35 (XM_CLIBS): Add -lm to circumvent AIX 3.2 libc ldexp bug.
36 * config/rs6000.mt (TDEPFILES): Adopt xcoffexec.o.
37
38 * gdbtypes.h (TYPE_ALLOC): Parenthesize result to avoid problems
39 for callers.
40
d6776adb
JG
41 * vx-share/README, nindy-share/README: New files describing
42 how these directories' code is shared, and with whom.
43
ef131e13
JG
44Thu Aug 27 20:04:56 1992 John Gilmore (gnu@cygnus.com)
45
46 * configure.in (target configurations): Reformat into table.
47 Remove unsupp. Amigados host and target. Ditto Mach 386 target.
48
49 * tm-altosgas.h, tm-i386v-g.h: Remove ancient coff encap configs.
50 * config/{altosgas.mt, i386v-g.mt, i386v32-g.mt}: Ditto.
51 * config/{i386sco.mt,i386v32.mt}: Remove; identical to i386v.mt.
52 * config/{go32.mt,i960.mt}: Remove; they only printed error msgs.
53 * config/nindy960.mt: Remove useless MT_CFLAGS setting.
54 * config/i386aout.mt: Use tm-i386v.h, not tm-i386v-g.h.
55
56 * Makefile.in (config-check): Add command to check whether
57 configure.in is consistent with config/*.
58
19758e9e
JG
59Wed Aug 26 21:10:52 1992 John Gilmore (gnu@cygnus.com)
60
61 * configure.in (host configurations): Reformat nested cases into
62 easy-to-maintain table.
b1aa08e2
JG
63 (m68k-altos-*, i386v*): We don't care whether coff encap is used.
64 config/{altosgas.mh, i386v-g.mh, i386v32-g.mh}: Remove.
19758e9e 65
38e9ed49
FF
66Wed Aug 26 16:02:01 1992 Fred Fish (fnf@cygnus.com)
67
68 * cplus-dem.c: Reorder args to most local functions to make them
69 follow the consistent pattern of struct work_stuff pointer first,
70 followed by pointer into string being demangled, followed by
71 pointer to the string where the result is being stored, followed
72 by other args. Also generally replace most variables of name
73 "type" with "mangled" for consistency. They all pointed to the
74 same string but half were one name and half the other.
75 * cplus-dem.c (LONGERNAMES): Remove #ifndef's.
76 * cplus-dem.c (demangle_qualified): Rewrite to clean up and allow
77 use whenever a qualified name is being demangled.
78 * cplus-dem.c (do_type): Qualified names are treated similarly
79 to fundamental types, not as modifiers of fundamental types.
80
ee97d673
SG
81Mon Aug 24 20:44:38 1992 Stu Grossman (grossman at cygnus.com)
82
38e9ed49
FF
83 * configure.in: Add sparclite as a target.
84
ee97d673
SG
85 * sparc-stub.c (handle_exception): Flush instruction cache just
86 before returning to the user. (hexToInt): Fix overzealous cleanup.
87
93220abe
FF
88Mon Aug 24 11:57:13 1992 Fred Fish (fnf@cygnus.com)
89
90 * infrun.c (handle_command): Rewrite to allow multiple signal
91 numbers, signal number ranges, and to recognize "all" to mean all
92 signals except those used by the debugger.
93 * infrun.c (SET_SIGS, UNSET_SIGS): Macros used in handle_command
94 to set or reset actions for specific signals.
95
dac9734e
FF
96Sun Aug 23 17:10:07 1992 Fred Fish (fnf@cygnus.com)
97
98 * coffread.c (decode_type): Call alloc_type to alloc new
99 types.
100 * stabsread.c (read_array_type, read_range_type, define_symbol):
101 Call alloc_type to alloc new types.
102 * stabsread.c (define_symbol): Move dbl_valu symbol field data
103 from type_obstack to symbol_obstack.
104 * stabsread.c (define_symbol): Move typedef_sym from type_obstack
105 to symbol_obstack.
106 * gdbtypes.h (TYPE_ALLOC): New macro to allocate space for data
107 associated with a type, using the same mechanism as was used to
108 allocate space for the type structure itself.
109 * coffread.c (patch_type, coff_read_struct_type,
110 coff_read_enum_type): Use TYPE_ALLOC.
111 * dwarfread.c (struct_type): Use TYPE_ALLOC.
112 * gdbtypes.c (create_array_type, check_stub_method,
113 allocate_cplus_struct_type): Use TYPE_ALLOC.
114 * mipsread.c (parse_symbol, parse_type): Use TYPE_ALLOC.
115 * stabsread.c (read_struct_type, read_array_type, read_enum_type,
116 read_range_type): Use TYPE_ALLOC.
117
ca8820f9
FF
118Sun Aug 23 11:04:08 1992 Fred Fish (fnf@cygnus.com)
119
120 * breakpoint.c (breakpoint_re_set): Select a default source
121 symtab if one is not currently selected.
122 * utils.c (query): Call wrap_here before building the output
123 query string, to turn off wrapping and flush any buffered output.
124 Otherwise our query may end up in the wrap buffer and never be
125 seen by the user.
126 * eval.c (evaluate_subexp): Report error when attempting to
127 evaluate subscript for types without a target type, rather
128 than dumping core by using the NULL pointer.
129 * symfile.c (symbol_file_command): Forget current_source_symtab
130 and current_source_line when discarding symbol table.
131
42e8b658
JG
132Sat Aug 22 22:33:20 1992 John Gilmore (gnu@cygnus.com)
133
134 Bug fixes from Andrew Heybey <ath@lcs.mit.edu>.
135
136 * tm-mips.h (REGISTER_VIRTUAL_TYPE): Float regs are float type.
137 * mips-tdep.c (mips_print_register): Alloc enough space for two regs.
138
39a13178
SG
139Fri Aug 21 15:17:03 1992 Stu Grossman (grossman at cygnus.com)
140
141 * remote.c (remote_open): Fix baud rate setting to make -b flag
142 work. (remote_wait): Change 'T' message parser to deal with new
143 improved format which allows stub to send an arbitrary bunch of
144 registers.
145 * sparc-stub.c: General cleanups. (trap_low, handle_exception):
146 make all this re-entrant by storing all state on the stack. Clean
147 up memory error trapping. (computeSignal, set_debug_traps):
148 make it all table driven. Make a start at a baud rate setting command.
149
0d6d92c7
ILT
150Wed Aug 19 10:23:27 1992 Ian Lance Taylor (ian@cygnus.com)
151
664cf438
ILT
152 * m68k-pinsn.c: handle new operand type 'r', introduced for cas2.
153
0d6d92c7
ILT
154 * remote-vx.c: redefine malloc to avoid buggy declaration on
155 RS/6000 <rpc/types.h>.
156 xm-rs6000.h: include <sys/select.h> to define fd_set for
157 <rpc/svc.h> on RS/6000.
158
4bbefa86
ILT
159Tue Aug 18 14:48:24 1992 Ian Lance Taylor (ian@cygnus.com)
160
161 * Makefile.in: added FLAGS_TO_PASS variable, and passed it to
162 recursive invocations of make. Always create installation
163 directories.
164
d6b38bfb
PB
165Mon Aug 17 18:29:58 1992 Per Bothner (bothner@rtl.cygnus.com)
166
167 * m68k-pinsn.c: Minor fix in style of output (don't use
168 range to indicate floating point control registers).
169
e893a126
JG
170Sat Aug 15 02:58:03 1992 John Gilmore (gnu@cygnus.com)
171
67c9f54c
JG
172 * m68k-pinsn.c: Surround extended support with #ifdef HAVE_68881.
173
e893a126
JG
174 * infcmd.c (registers_info): Handle multiple register names.
175 Changes inspired by Roland McGrath.
176
4ecee2f9
SG
177Sat Aug 15 02:28:52 1992 Stu Grossman (grossman at cygnus.com)
178
179 * sparc-stub.c: New file. Mix it with your SPARClite
180 application, and it will speak GDB remote protocol!
181 * remote.c (remote_wait): Change 'T' (expedited reply) message to
e893a126 182 deal with arbitrary registers. Needed for sparc-stub.
4ecee2f9 183
3dc755fb
FF
184Fri Aug 14 12:11:25 1992 Fred Fish (fnf@cygnus.com)
185
186 * cplus-dem.c (cplus_markers): Add table for gnu style and
187 use throughout, in place of compile time constant CPLUS_MARKER.
188 * cplus-dem.c (ARM_VTABLE_STRING, ARM_VTABLE_STRLEN): Add.
189 * cplus-dem.c (cfront_special): New function, as suggested
190 by pfieland@stratus.com.
191 * cplus-dem.c (forget_types): New function.
192 * cplus-dem.c (cplus_demangle): Call gnu_special, moved from
193 demangle_prefix().
194 * cplus-dem.c (mop_up): Call forget_types().
195 * cplus-dem.c (AUTO_DEMANGLING, GNU_DEMANGLING, LUCID_DEMANGLING):
196 Use throughout, instead of checking current_demangling_style.
197 * cplus-dem.c (demangle_signature): When finding an explicit
198 start of function args, forget all remembered types for
199 lucid/cfront style demangling.
200 * cplus-dem.c (demangle_prefix): In a sequence of two or more
201 underbar characters, use last pair as the delimiter. Hoist
202 gnu_special() call up to cplus_demangle(). Call cfront_special()
203 when appropriate.
204 * cplus-dem.c (cplus_special): Fix virtual table name demangling
205 for inherited classes.
206 * cplus-dem.c (demangle_args): Document quirks of numbered
207 references to previously seen types.
208 * dbxread.c (read_ofile_symtab, process_one_symbol):
209 Use AUTO_DEMANGLING rather than explicitly checking
210 current_demangling_style.
211 * demangle.h: Add some comments.
212 * demangle.h (AUTO_DEMANGLING, GNU_DEMANGLING, LUCID_DEMANGLING,
213 CFRONT_DEMANGLING): New macros.
214 * dwarfread.c (LCC_PRODUCER): Remove trailing space, which is
215 not found in the actual producer string produced by lcc.
216 * dwarfread.c (handle_producer): Use AUTO_DEMANGLING rather
217 than explicitly checking current_demangling_style.
218
4e8ea7a6
JG
219Thu Aug 13 11:54:46 1992 John Gilmore (gnu at cygnus.com)
220
221 * breakpoint.c (enable_longjmp_breakpoint,
222 disable_longjmp_breakpoint, set_longjmp_resume_breakpoint):
223 Check for duplicate breakpoints at the same address. Bug report
224 and preliminary fix from Dave Morrison, <drmorris@us.oracle.com>.
225
7b5d9650
FF
226Wed Aug 12 11:14:58 1992 Fred Fish (fnf@cygnus.com)
227
228 * buildsym.c (end_symtab): Document that end_symtab can return
229 NULL under non-error conditions.
230 * dwarfread.c (read_file_scope): Guard against dereferencing NULL
231 returned from end_symtab for empty compilation units.
232
6872cfda
JG
233Tue Aug 11 02:49:39 1992 John Gilmore (gnu at cygnus.com)
234
235 * am29k-tdep.c: Lint from DECstation compiler.
236 * mem-break.c: Restore test of BREAKPOINT size that Fred removed.
237 As the man page says, "Sometimes you just can't get lint to shut
238 up". That doesn't mean you should blow away the code it won't
239 shut up about.
240 * mips-xdep.c: Revise stubbing-out of code until Rich cleans
241 it up over the next few weeks. Make mips x 29k build.
242 * tm-29k.h (CALL_DUMMY): Make it work on cross-endian hosts.
243 (FIX_CALL_DUMMY): Comment in the patching of the breakpoint,
244 but leave it as a comment because the breakpoint instruction
245 is not easily accessible at this moment (it's static, and if
246 we define one here, it goes into every file compiled).
247
a679650f
FF
248Mon Aug 10 22:27:19 1992 Fred Fish (fnf@cygnus.com)
249
250 * Makefile.in (VERSION): Bump to 4.6.3.
251 * dwarfread.c (scan_partial_symbols): Skip over DIE's within
252 function scopes when building partial symbol tables.
253 * objfiles.c (open_existing_mapped_file): Make it clear in
254 warning message that out of date mapped files are ignored.
255 * symtab.c (lookup_symtab_1, lookup_symbol): Print compilation
256 unit source file name in error message.
257
50055e94
FF
258Sat Aug 8 23:12:22 1992 Fred Fish (fnf@cygnus.com)
259
260 * dwarfread.c (struct dieinfo): Add has_at_byte_size.
261 * dwarfread.c (struct_type): In absence of AT_byte_size for
262 bitfield, use size of object of member's type for the size of
263 the anonymous object containing the bit field.
264 * dwarfread.c (completedieinfo): Set has_at_byte_size when
265 an AT_byte_size attribute is seen.
266 * mipsread.c (psymtab_to_symtab_1): Fix misspelled cast to
267 union aux_ext (was aux_ent).
268 * i386-pinsn.c (print_insn): Cast 2'nd arg to read_memory from
269 unsigned char* to char*, for Lucid compiler.
270 * i386-tdep.c (codestream_fill): Fix cast of 2'nd arg to read_memory
271 to be correct type (from unsigned char* to char*).
272 * valprint.c (type_print_derivation_info): Minor tweak to placement
273 of commas in derived class printing.
274 * xcoffread.c (builtin_type): Fix misspelling in fatal message.
275
f6492282
SC
276Fri Aug 7 11:18:23 1992 Steve Chamberlain (sac@thepub.cygnus.com)
277
278 * xm-go32.h: Define LSEEK_NOT_LINEAR
279 * serial.c (find_source_lines): if LSEEK_NOT_LINEAR is defined
280 then work out the lseek positions of newlines by running through
281 the file and `tell'ing. This makes source file listing work on
282 OS's where the relationship between physical position in file and
283 canonical position is indeterminate, eg VMS and DOS.
284
8275e802
FF
285Thu Aug 6 10:56:01 1992 Fred Fish (fnf@cygnus.com)
286
c02a37ea
FF
287 * stabsread.c: Ensure that all members of all allocated structures
288 are initialized to known state to avoid hard to find bugs with gdb
289 using fields containing random data.
3416d90b
FF
290 * buildsym.c (start_subfile): Compact dirname initialization.
291 * buildsym.c (patch_subfile_names): New function.
8275e802 292 * buildsym.c (end_symtab): Make copy of dirname on symbol obstack.
3416d90b
FF
293 * buildsym.c (end_symtab): Free all malloc'd subfile fields.
294 * buildsym.h (patch_subfile_names): Add prototype.
295 * dbxread.c (process_one_symbol): Call patch_subfile_names.
8275e802 296
38094c60
JG
297Wed Aug 5 01:42:40 1992 John Gilmore (gnu at cygnus.com)
298
15ee4caa
JG
299 * remote-udi.c: Update comments.
300
38094c60
JG
301 * remote.c (getpkt): Only force retransmission ten times;
302 after that, assume bug in target code, and handle pkt anyway.
303
d0d0f75e
SG
304Mon Aug 3 17:06:20 1992 Stu Grossman (grossman at cygnus.com)
305
306 * configure.in: Add support for apollo 68k under BSD environment.
307 * xm-apollo68b.h: New file to support above.
308
9e4667f6
FF
309Mon Aug 3 00:25:56 1992 Fred Fish (fnf@cygnus.com)
310
311 * configure.in: Recognize i486 host cpu.
312 * valprint.c (type_print_derivation_info): Print derivation info
313 in same form as class declarations in source.
314 * valprint.c (type_print_varspec_suffix): Split arg printing
315 code out to type_print_args function.
316
cd46ffad 317Sat Aug 1 13:32:58 1992 Fred Fish (fnf@cygnus.com)
ddce75e0 318
cd46ffad
FF
319 * dwarfread.c (struct dieinfo): Remove obsolete at_visibility,
320 at_import, at_frame_base.
321 * dwarfread.c (completedieinfo): Remove cases for obsolete
322 AT_visibility, AT_import, and AT_frame_base attributes.
323 * breakpoint.h (BREAKPOINT_MAX): Increase from 10 to 16 for
324 i860, which can keep up to 4 shadow breakpoints.
325 * tm-stratus.h (USG): Define.
326 * tm-stratus.h (TARGET_BYTE_ORDER): Define to BIG_ENDIAN.
327 * xm-stratus.h (HOST_BYTE_ORDER): Define to BIG_ENDIAN.
328 * xm-stratus.h (xm-sysv4.h): Include, name changed from xm-svr4.h.
329 * xm-stratus.h (NO_JOB_CONTROL): Remove define.
330 * config/stratus.mt (TDEPFILES): Include files available from
331 stratus that are not yet in release pending receipt of paperwork
332 at FSF.
333 * buildsym.c (finish_block): Minor code format change.
334 * gdbtypes.h (struct field): Add to comments.
335 * gdbtypes.h (virtual_field_bits): Add to comments.
336 * objfiles.c (allocate_objfile): Change obstack interface to
337 match FSF merging efforts.
ddce75e0 338
cd46ffad 339Mon Jul 27 21:14:44 1992 Fred Fish (fnf@cygnus.com)
ddce75e0 340
cd46ffad
FF
341 * Makefile.in (VERSION): Bump to 4.6.2.
342 * Makefile.in (SFILES_MAINDIR): Add stabsread.c
343 * Makefile.in (OBS): Add stabsread.o
344 * Makefile.in (stabsread.o): Add build rule.
345 * stabsread.c, stabsread.h: New files.
346 * buildsym.c: Split out stabs specific support to stabsread.c.
347 * buildsym.h: Split out stabs specific support to stabsread.h.
348 * dbxread.c (stabsread.h): Include
349 * dbxread.c (dbx_new_init): Call stabsread_new_init.
350 * dbxread.c (dbx_psymtab_to_symtab_1): Call stabsread_init.
351 * dbxread.c (read_ofile_symtab): Call end_stabs.
352 * dbxread.c (process_one_symbol): Call end_stabs and start_stabs.
353 * dbxread.c (elfstab_build_psymtabs): Call stabsread_new_init.
354 * dwarfread.c (psymtab_to_symtab_1): Call buildsym_init, add
355 really_free_pendings to cleanups.
356 * elfread.c (elf_new_init): Call stabsread_new_init.
357 * gdbtypes.c: Small changes to maintenance commands.
358 * mipsread.c (stabsread.h): Include.
359 * mipsread.c (psymtab_to_symtab_1): Call end_stabs.
360 * xcoffread.c (stabsread.h): Include.
361 * xcoffread.c (global_stabs): Remove redundant def.
362 * xcoffread.c (read_xcoff_symtab): Call start_stabs and end_stabs.
ddce75e0 363
d7808603
FF
364Wed Jul 22 21:39:33 1992 Fred Fish (fnf@cygnus.com)
365
366 * lmode_inferior_valid, lmode_ours_valid: New static vars.
367 * inflow.c (terminal_init_inferior, terminal_inferior,
368 terminal_ours_1, initialize_inflow): Record and use state
369 of lmode_inferior_valid and lmode_ours_valid.
370
cd46ffad
FF
371Wed Jul 22 04:23:03 1992 D. V. Henkel-Wallace (gumby@cygnus.com)
372
373 * es1800.c: use FREAD|FWRITE rather than _FREAD|_FWRITE.
374 include <sgtty.h> on USG. (from sef).
375
376 * depend: es1800 dependency needed here.
377
c0f1085b
FF
378Mon Jul 20 21:09:53 1992 Fred Fish (fnf@cygnus.com)
379
380 * buildsym.c (read_struct_type): Initialize structs allocated
381 with alloca, to avoid using random values from stack later on.
382 * defs.h (fprintf_filtered): Add prototype.
383 * gdbtypes.c (check_stub_method): Fix misleading comments.
384 * gdbtypes.c (print_arg_types, dump_fn_fieldlists): New maint
385 support functions.
386 * gdbtypes.c (print_cplus_stuff, recursive_dump_type): Many
387 small changes to maint support functions.
388 * gdbtypes.h (cplus_struct_type): Reorganize member ordering
389 for some fields and expand comments.
390 * objfiles.c (allocate_objfile): Use new obstack_alloc_arg
391 macro and track change to obstack_full_begin macro.
392 * utils.c (fprintfi_filtered): New function.
393 * valprint.c (type_print_base): Fixup field printing to not
394 print extraneous lines and not print bogus "no data fields"
395 messages for C++ classes with no data members. Also use new
396 fprintfi_filtered function.
397
cd46ffad
FF
398Mon Jul 20 11:25:18 1992 D. V. Henkel-Wallace (gumby@cygnus.com)
399
400 * configure.in: es1800 ok for 68000 too.
401
c0f1085b
FF
402Sat Jul 18 15:48:58 1992 david d `zoo' zuhn (zoo at cirdan.cygnus.com)
403
404 * configure.in: echo error messages to stderr, not stdout
405
406Fri Jul 17 17:07:24 1992 david d `zoo' zuhn (zoo at cirdan.cygnus.com)
407
408 * configure.in: recognize hppa* instead of hppa
409
f8e32b6e
SG
410Fri Jul 17 16:52:04 1992 Stu Grossman (grossman at cygnus.com)
411
b5fee91e
SG
412 * energize.c: Second cut at DynamicLoad message handling.
413
509c1804
SG
414 * energize.c: Relativize pathnames in #include statements.
415 * (kernel_dispatch): Better error messages for unknown protocol
416 messages.
417 * (kernel_dispatch): First cut at DynamicLoad message handling.
418
f8e32b6e
SG
419 * Makefile.in: Remove -I../readline from all compilations,
420 include a special case for main.o instead.
421
d4902ab0
FF
422Fri Jul 17 10:14:56 1992 Fred Fish (fnf@cygnus.com)
423
51a9d78c
FF
424 * eval.c (evaluate_subexp): Ask lookup_struct_elt_type to call
425 error if it fails to find a member type, rather than return NULL
426 and trigger a coredump.
427 * symtab.c (lookup_symbol, lookup_demangled_block_symbol,
428 lookup_demangled_partial_symbol,): Ask demangle_and_match to
429 match on complete demanglings, including argument lists for member
430 functions, rather than just accepting the first demangling that
431 matches the class and function name.
d4902ab0
FF
432 * dwarfread.c (read_file_scope): Pass contents of AT_comp_dir
433 to start_symtab as the directory name.
434 * dwarfread.c (completedieinfo): Strip off any leading hostname
435 portion of the AT_comp_dir attribute string. Gdb doesn't know
436 what to do with them (FIXME).
437
cdaa27e9
SG
438Thu Jul 16 13:37:09 1992 Stu Grossman (grossman at cygnus.com)
439
cb48d806
SG
440 * breakpoint.c (commands_command): Simplify code a bit, remove
441 unnecessary fflush().
442
cdaa27e9
SG
443 * Makefile.in (OTHERS): Add gcc.patch.
444 * partial-stab.h (N_SO): Fix handling of redundant SOs (again...)
445
345e9ab8
FF
446Thu Jul 16 12:07:40 1992 Fred Fish (fnf@cygnus.com)
447
448 * dwarfread.c (LCC_PRODUCER): Change to match current NCR
449 lcc producer string.
450
3ddcdc59
SG
451Thu Jul 16 11:40:55 1992 Stu Grossman (grossman at cygnus.com)
452
453 * WHATS.NEW renamed to NEWS.
454
d23639b2
FF
455Wed Jul 15 11:37:31 1992 Fred Fish (fnf@cygnus.com)
456
457 * dbxread.c, dwarfread.c: Re-enable experimental code to
458 automatically select demangling style.
459 * demangle.c (DEFAULT_DEMANGLING_STYLE): Rename from simply
460 DEMANGLING_STYLE, to make more descriptive. Revert back to
461 "auto" as default. Comment use.
462 * Makefile.in (DEMANGLING_STYLE, DEMANGLE_OPTS): Remove.
463 * Makefile.in (${DEMANGLER}.o) Remove target and special
464 compilation rule.
465
5e85287e
FF
466Tue Jul 14 23:05:14 1992 Fred Fish (fnf@cygnus.com)
467
468 * Makefile.in (VERSION): Bump to 4.6.1 (post-release versions).
469
d1fbc20d
SG
470Tue Jul 14 19:26:54 1992 Stu Grossman (grossman at cygnus.com)
471
472 * Makefile.in, demangle.c: Change default demangling style to
473 gnu.
474 * Makefile.in: Update version to 4.6 !!!
475 * README, WHATS.NEW: Update for 4.6.
476
7e94a17b
KR
477Tue Jul 14 16:59:46 1992 Ken Raeburn (raeburn@cygnus.com)
478
7b8ca0a0
KR
479 * i960-tdep.c (frame_args_address): If arg pointer can't be found,
480 use frame address.
481
7e94a17b
KR
482 * buildsym.c (read_struct_type): Don't die on TYPE_CODE_UNDEF
483 nodes as base classes.
484
efcc6e06
SG
485Tue Jul 14 00:12:30 1992 Stu Grossman (grossman at cygnus.com)
486
d1fbc20d
SG
487 * alldeps.mak, depend: Update.
488
930acbe5
SG
489 * xcoffread.c: Add decl for section_offset to keep prototype happy.
490
67ba524f
SG
491 * Makefile.in (VERSION): 4.5.9.
492
efcc6e06
SG
493 * xm-hp300bsd.h: Add decl for strdup().
494 * mips-tdep.c (heuristic_proc_desc): Fill in proc start addr in
495 PDR. Cleanup a few things, fix compilation warnings.
496
2dbde378
FF
497Mon Jul 13 19:06:54 1992 Fred Fish (fnf@cygnus.com)
498
499 * Makefile.in (DEMANGLING_STYLE): New define to set default
500 demangling style for C++. Defaults to "auto".
501 * Makefile.in (DEMANGLE_OPTS): Use DEMANGLING_STYLE.
502 * Makefile.in (SFILES_MAINDIR): Add demangle.c
503 * Makefile.in (OBS): Add demangle.o
504 * cplus-dem.c (GNU_DEMANGLING, ARM_DEMANGLING, LUCID_DEMANGLING):
505 Remove compile time decisions about demangling style and replace
506 with runtime decisions using current_demangling_style.
507 * cplus-dem.c (main): Expand code included during building of
508 standalone demangler to recognize demangling style options.
509 * dbxread.c (demangle.h): Include.
510 * dbxread.c (read_ofile_symtab, process_one_symbol): Set GNU C++
511 demangling style if processing g++ code and current demangling style
512 is auto (Note: this feature currently disabled.)
513 * demangle.c: New file, generic demangling control.
514 * demangle.h (demangling_styles): New enumeration to select one
515 of several demangling styles. Also define string names for each
516 style.
517 * demangle.h (set_demangling_style): Add prototype.
518 * dwarfread.c (demangle.h): Include.
519 * dwarfread.c (GPLUS_PRODUCER, LCC_PRODUCER, CFRONT_PRODUCER):
520 New producer string prefixes to recognize.
521 * dwarfread.c (handle_producer): Consolidate actions for specific
522 producers. Set demangling style based on producer string if
523 current style is auto. (Note: this feature currently disabled.)
524 * config/ncr3000.mt (DEMANGLE_OPTS): Remove.
525
49f3be18
JG
526Sat Jul 11 18:23:58 1992 John Gilmore (gnu at cygnus.com)
527
528 * config/sun4sol2.mh: Remove -xs flag, default INSTALL to cp.
529
a252e715
PB
530Fri Jul 10 13:58:34 1992 Per Bothner (bothner@rtl.cygnus.com)
531
532 * gdbtypes.c, gdbtypes.h: New function lookup_signed_typename.
533 * c-exp.y: Call lookup_signed_typename() after seeing
534 "signed". This handles "signed char" correctly.
535 * c-exp.y: Recognize (but ignore) 'const' and 'volatile'
536 keywords before a type specifier.
537
311592ff
FF
538Fri Jul 10 10:19:52 1992 Fred Fish (fnf@cygnus.com)
539
540 * command.c (lookup_cmd_1): Clarify descriptive comments.
541 * gdbcmd.h (maintenanceprintlist): Add declaration.
542 * main.c (maintenanceprintlist): Add definition.
543 * main.c (gdb_completer_command_word_break_characters): Add.
544 * main.c (symbol_completion_function): Switch completer word
545 break character sets dynamically, based on whether completion is
546 being done on commands or on something else.
547 * main.c (initialize_cmd_lists): Init maintenanceprintlist.
548 * maint.c: Include demangle.h.
549 * maint.c (maintenance_demangle): New function.
550 * maint.c (maintenance_print_command): New function.
551 * maint.c (_initialize_maint_cmds): Reorganize some commands
552 under new maintenance print subcommand.
553
5c5b5d4b
PB
554Thu Jul 9 19:05:27 1992 Per Bothner (bothner@rtl.cygnus.com)
555
556 * gdbtypes.c (lookup_struct_elt_type): If the input type is
557 TYPE_CODE_PTR or TYPE_CODE_REF, dereference it to get the
558 target type. Otherwise, 'whatis this.field' wouldn't work,
559 which would be inconsistent, since 'print this.field' works.
560 * buildsym.c (read_struct_type, read_enum_type): Clear
561 TYPE_FLAG_STUB flag.
562 * buildsym.c (cleanup_undefined_types): Don't rely on a
563 flawed "Reasonable test to see if" a type has been defined
564 since it was referred to; now we can just see if the
565 TYPE_FLAG_STUB flag has been cleared.
566 * valprint.c (print_type_base): Emit public/protected/private
567 labels for methods as well as fields. Also, indent these labels
568 2 spaces instead of 4, for a more conventional "look".
569 * symtab.c (gdb_mangle_name): Undo Fred's change, unless
570 GCC_MANGLE_BUG is defined. Also, handle destructors specially.
571 * gcc.patch: New file. Contains patch for gcc (so people
572 with gdb-2.2.x won't have to wait for a new gcc release).
573
c5f5b482
KR
574Thu Jul 9 18:44:26 1992 Ken Raeburn (raeburn@cygnus.com)
575
7eec00ed
KR
576 * i960-pinsn.c (mem): Variables reg[123] should point to CONST.
577 (print_addr): Call print_address to show symbolic version as well.
578
c5f5b482
KR
579 * remote-vx.c (vx_kill): Don't look for arguments; they aren't
580 being passed.
581 (vx_read_register): Declare inferior_fp_regs. Delete code for
582 copying "inferior_registers" around; the values are already in var
583 "registers". Use correct size for register set.
584
585 * remote-vx.c (vx_write_register): Don't try writing FP regs; the
586 target doesn't support it.
587 (vx_read_register): Don't try reading them either.
588
589 * tm-i960.h (IP_REGNUM): Move to end of non-FP list, since the
590 VxWorks back end reads them in one contiguous set except for this
591 one.
592 (register_names): Change "pc" to "pcw" to avoid confusion printing
593 "$pc".
594 * tm-vx960.h (PC_REGNUM): Use RIP_REGNUM, since that's where we
595 find the PC under VxWorks.
596
8050a57b
FF
597Wed Jul 8 21:34:30 1992 Fred Fish (fnf@cygnus.com)
598
599 * dwarfread.c (alloc_utype, decode_subscr_data): Call alloc_type
600 to create new blank types, instead of handcrafting them.
601 * defs.h (printfi_filtered): Add prototype.
602 * utils.c (printfi_filtered): New function.
603 * gdbtypes.c (recursive_dump_type): Use printfi_filtered to
604 to simplify the code. Other cleanups.
605 * gdbtypes.c (check_stub_method): Demangle using DMGL_ANSI.
606 * gdbtypes.h (struct cplus_struct_type): Add comments describing
607 use of various fields.
608 * gdbtypes.c (print_bit_vector, print_cplus_stuff): New functions.
609 * c-exp.y (%token): Add CLASS as a token for C++, add grammar
610 production that currently treats it exactly the same as STRUCT.
611 * c-exp.y (yylex): Recognize "class" as token CLASS.
612 * symtab.c (gdb_mangle_name): Rewrite to match current g++ stabs.
613 * symtab.c (decode_line_1): Fix to pass quoted args on down to
614 general symbol handling code. Call cplus_mangle_opname with
615 DMGL_ANSI.
616 * symtab.c (decode_line_2): Print demangled function names in
617 breakpoint menus, instead of just file and line number.
618 * symtab.c (name_match): Call cplus_demangle with DMGL_ANSI.
619 * valprint.c (type_print_base): Print "class" for C++ classes,
620 rather than "struct". Print section labels for public, protected
621 and private members of C++ classes.
622 * values.c: Include demangle.h.
623 * values.c (value_headof): Call cplus_demangle with DMGL_ANSI.
624
e17e8e0e
SG
625Wed Jul 8 17:23:07 1992 Stu Grossman (grossman at cygnus.com)
626
627 * Makefile.in (VERSION): Update to 4.5.8.
628
629 Wed Jul 8 00:11:02 1992 Stu Grossman (grossman at cygnus.com)
784fd92b
SG
630
631 * dbxread.c (dbx_symfile_init): Init stab_section_info to NULL to
632 prevent crashes when examining cross-targets.
633 * dbxread.c (process_one_symbol): Include directory name when
634 calling start_subfile for SOL & BINCL symbols. This allows gdb to
635 find include files, and yacc/lex sources when the cwd doesn't match
636 that in which the object was compiled.
637 * objfiles.h (ALL_MSYMBOLS): Don't seg fault when there are no
638 msymbols.
639 * symtab.c (lookup_symtab_1): Rewrite. It now handles include
640 files.
641
2e9309df
FF
642Tue Jul 7 09:00:42 1992 Fred Fish (fnf@cygnus.com)
643
644 * maint.c (maintenance_command, maintenance_info_command):
645 Install with allow_unknown as 0 and call help_list to show
646 list of possibilities when no subcommand is specified.
647
498f1df0
FF
648Tue Jul 7 00:20:29 1992 Fred Fish (fnf@cygnus.com)
649
650 * configure.in: Add m68k-ericsson-*.
651 * remote-es1800.c, tm-es1800.h, config/es1800.mt: New files.
652
0239d9b3
FF
653Sun Jul 5 17:17:16 1992 Fred Fish (fnf@cygnus.com)
654
655 * maint.c: New file.
656 * Makefile.in (SFILES_MAINDIR): Add new file maint.c.
657 * Makefile.in (OBS): Add new file maint.o.
658 * defs.h (command_class): Add class_maintenance.
659 * defs.h (MAINTENANCE_CMDS): Default to including maintenance
660 commands. Allow for them (and other nonessential parts of gdb)
661 to be selectively left out under special circumstances.
662 * gdbtypes.c (recursive_dump_type): New function; supports
663 maintenance print-type command.
664 * gdbtypes.h (recursive_dump_type, maintenance_print_type):
665 Add prototypes.
666 * main.c (maintenancelist, maintenanceinfolist): Add maintenance
667 command lists.
668 * main.c (initialize_cmd_lists): Eliminate unnecessary casts on
669 initializers. Add initializations for setprintlist, showprintlist,
670 setchecklist, showchecklist, maintenancelist, and maintenanceinfolist.
671 * printcmd.c (maintenance_print_type): New maintenance cmd.
672 * valprint.c (setprintlist, showprintlist): Move to main.c, as
673 implied by comment that all cmd lists are owned by main.c.
674 * infcmd.c (unsetlist): Move to main.c, as implied by comment
675 that all cmd lists are owned by main.c.
676 * language.c (setchecklist, showchecklist): Move to main.c, as
677 implied by comment that all cmd lists are owned by main.c
678 * breakpoint.c (enablelist, enablebreaklist, disablelist, cmdlist,
679 deletelist): Remove redundant declarations (also in gdbcmd.h).
680 * symmisc.c (printsyms_command): Now maintenance_print_symbols.
681 * symmisc.c (printmsyms_command): Now maintenance_print_msymbols.
682 * symmisc.c (printpsyms_command): Now maintenance_print_psymbols.
683 * symmisc.c (printobjfiles_command): Now maintenance_print_objfiles.
684 * symtab.h (maintenance_print_symbols, maintenance_print_psymbols,
685 maintenance_print_msymbols, maintenance_print_objfiles):
686 Add prototypes.
687 * symmisc.c (printsyms_command, printpsyms_command,
688 printmsyms_command, printobjfiles_command): Removed from
689 _initialize_symmisc.
690 * main.c (dump_me_command): Moved to maint.c and renamed to
691 maintenance_dump_me.
692 * breakpoint.c (all_breakpoints_info): Rename to
693 maintenance_info_breakpoints.
694 * breakpoint.c (_initialize_breakpoint): Convert add_info of
695 all_breakpoints_info to add maintenance_info_breakpoints to the
696 maintenanceinfolist instead.
697 main.c (initialize_main): Set up maintenance class commands.
698
2bfe2c53
SG
699Sun Jul 5 11:03:53 1992 Stu Grossman (grossman at cygnus.com)
700
6a701ae2
SG
701 * energize-patches: Fix minor problems with building energize lib.
702
2bfe2c53
SG
703 * energize-patches: Change names of all cadillac procedure calls
704 to be energize procedure calls. Simplify many hooks by moving
705 tests energize.c. Configure energize, and build it automatically now.
706
91fef76b
FF
707Sun Jul 5 09:43:28 1992 Fred Fish (fnf@cygnus.com)
708
709 * Makefile.in (VERSION): Bump to 4.5.7.
710 * cplus-dem.c (demangle_args): Validate index for previously
711 seen type to guard against bogus values from malformed manglings.
712 * valops.c (value_struct_elt_for_reference): Guard against
713 blindly using NULL return value from lookup_symbol.
714
264ad072
SG
715Sun Jul 5 09:46:43 1992 Stu Grossman (grossman at cygnus.com)
716
717 * cadillac.c, cadillac-patches: Rename to energize.c and
718 energize-patches. Change all routines and variables named
719 'cadillac*' to 'energize*'. Create new file called energize.h to
720 hold all interface declarations.
721
722 * deblib/connection/*: Move all of this stuff into energize/, but
723 delete unneeded files.
724
ec8ceca3
JG
725Sun Jul 5 03:06:39 1992 John Gilmore (gnu at cygnus.com)
726
23053b80
JG
727 * tm-sysv4.h (NAMES_HAVE_UNDERSCORE): SVR4 systems don't.
728
ec8ceca3
JG
729 * buildsym.c (finish_block): Fix thinko `inner block' complaints.
730 * dbxread.c (process_one_symbol): Parse N_OPT "gcc2_compiled.".
731 * procfs.c (proc_set_exec_trap): Set run-on-last-close flag on
732 child processes, to avoid dead ones "hanging around" after GDB exits.
733 (attach): Always stop the process if it needs it. Set RLC flag
734 when attaching running processes, so it will continue if we detach
735 it, quit, or are killed.
736 (detach): Clear faults and set RLC flag to make process run
737 when we close it.
738 (open_proc_file): New `mode' argument for O_RDONLY or O_RDWR.
739 Callers changed.
740 (info_proc): Open process O_RDONLY, so we can see any process,
741 even those controlled by debuggers.
742 * tm-sun4sol2.h (SUN_FIXED_LBRAC_BUG): They did (in Sol 2).
743
2670f34d
JG
744Sat Jul 4 03:43:38 1992 John Gilmore (gnu at cygnus.com)
745
746 Relocate symbols using an array of section_offsets, rather than a
747 single `addr' or `offset'. This makes Solaris-2 support work, and
748 permits better VxWorks (and maybe xcoff) support later.
749
750 * symtab.h (struct section_offsets): New structure for keeping
751 a set of offsets, rather than a single one.
752 (struct objfile): Replace addr with section_offsets member.
753 * symfile.h: Add sym_offsets to struct sym_fns. Conforming changes.
754 * gdb-stabs.h: New include file with `symbol type specific'
755 parameters for psymtabs and objfiles.
756 * Makefile.in (HFILES): Add gdb-stabs.h.
757 * buildsym.h (start_psymtab, process_one_symbol): Fix prototypes.
758 * coffread.c: Conforming changes. Fake offset array always 0.
759 * dbxread.c: Conforming changes.
760 (struct dbx_symfile_info): Move to gdb-stabs.h.
761 (start_psymtab): Call elfstab_offset_sections to calculate good
762 offsets for this source file, based on the ELF symbol table info.
763 (read_ofile_symtab): Yank N_CATCH, which is dead.
764 (process_one_symbol, N_CATCH): Yank.
765 (", N_FUN, N_FNAME, N_FN, N_FN_SEQ, N_SO, N_SOL, N_ENTRY):
766 Relocate with SECT_OFF_TEXT.
767 (", N_STSYM, N_LCSYM, N_ROSYM): Grope around in the stab string
768 to distinguish relocatable from absolute symbols. Then, if not
769 absolute, do:
770 (", N_STSYM, N_DSLINE): SECT_OFF_DATA.
771 (", N_LCSYM, N_BSLINE): SECT_OFF_BSS.
772 (", N_ROSYM): SECT_OFF_RODATA.
773 (elfstab_build_psymtabs): Caller has allocated dbx_symfile_info.
774 (dbx_symfile_offsets): Add to translate addr to offset.
775 * dwarfread.c: Conforming changes. Single offset currently used.
776 * elfread.c: Add various complaints about elf/stab stuff.
777 #include gdb-stabs.h. Conforming changes, using a single offset.
778 (elf_symtab_read): Record info from BSF_FILE symbols, and local
779 variables called "Bbss.bss", "Ddata.data", and "Drodata.rodata",
780 for later use in building psymtabs.
781 (elf_symfile_read): Allocate dbx_symfile_info here, to keep
782 the info collected in elf_symtab_read. Cleanup calls free_elfinfo.
783 (free_elfinfo): New fn, frees all chained stab_section_infos
784 in an objfile, and zaps the start-of-chain pointer.
785 (elfstab_offset_sections): New fn, looks in stab_section_info
786 chain to determine section bases to relocate a psymtab's worth
787 of symbols, as they are being read.
788 * mipsread.c: Conforming changes. Stabs-reading will relocate
789 using one offset. MIPS-reading will not relocate at all.
790 * partial-stab.h: Relocate different symbol types using different
791 offsets from section_offsets.
792 * symfile.c: Conforming changes.
793 (find_lowest_section): Unused function to use later
794 to free us from the Tyranny of the Text Section.
795 (syms_from_objfile): Translate absolute arg ADDR to offsets used
796 in all lower layers of symbol reading. Call format-specific
797 sym_offsets function to initialize offsets for high speed symbol
798 reading.
799 (symbol_file_add): Call reinit_frame_cache so callers don't have to.
800 (symbol_file_command, add_symbol_file_command): Callers changed.
801 * symmisc.c (dump_psymtab): Print new relocation parameters.
802 * xcoffread.c: Corresponding changes.
803
804 * buildsym.c: Tidy innerblock_complaint and blockvector_complaint.
805 * main.c (main): Read the $HOME/.gdbinit file before processing
806 the argv arguments (e.g. reading symbol files or core
807 files). This allows global parameters to be set, which will apply
808 during the symbol reading. The ./.gdbinit is still read after
809 argv processing.
810 * symtab.c (list_symbols): `i variables' shouldn't show enum values.
811 * xcoffexec.c: Clean up quote inside comment.
812
4ed3a9ea
FF
813Fri Jul 3 20:18:26 1992 Fred Fish (fnf@cygnus.com)
814
815 * breakpoint.c, buildsym.c, c-exp.y, coffread.c, command.c,
816 core.c, cplus-dem.c, dbxread.c, dwarfread.c, elfread.c, environ.c,
817 eval.c, findvar.c, gdbtypes.c, hppabsd-tdep.c, hppahpux-tdep.c,
818 i386-tdep.c, ieee-float.c, infcmd.c, inflow.c, infptrace.c,
819 infrun.c, m2-exp.y, mipsread.c, objfiles.c, parse.c, procfs.c,
820 putenv.c, remote-mm.c, remote-vx.c, solib.c, sparc-tdep.c,
821 sparc-xdep.c, stack.c, symfile.c, symtab.c, symtab.h, target.c,
822 tm-i386v.h, tm-sparc.h, utils.c, valarith.c, valops.c, valprint.c,
823 values.c, xcoffread.c:
824 Remove "(void)" casts from function calls where the return value
825 is ignored, in accordance with GNU coding standards.
826
4c7c6bab
JG
827Fri Jul 3 00:00:49 1992 John Gilmore (gnu at cygnus.com)
828
829 * dbxread.c (process_one_symbol): Ignore N_MAIN, N_ENDM for Solaris.
830 * partial-stab.h: Ignore N_ENDM.
831 * elfread.c (elf_symtab_read): Ignore symbols that don't have a
832 CODE or DATA section attachment. This eliminates a lot of random
833 values from shared libraries, which screw up the ordinary symbols
834 in the address ranges they happen to overlap.
835 * buildsym.c (define_symbol): Eliminate special tests
836 for function types; move into "function" cases in switch statement.
837 (define_symbol: 'f', 'F', 'P'): Process all parameter types
838 in case they define new type numbers. But ignore them (FIXME).
839 ('k', 'B'): Ignore const and volatile if we see them (FIXME).
840 (read_sun_builtin_type): Add commentary.
841
37e2f5cb
DZ
842Wed Jul 1 00:47:02 1992 david d `zoo' zuhn (zoo at cirdan.cygnus.com)
843
844 * xm-rs6000.h: define MEM_FNS_DECLARED
845
43a16f26
JG
846Tue Jun 30 02:25:10 1992 John Gilmore (gnu at cygnus.com)
847
848 * tm-mips.h (GDB_TARGET_IS_MIPS): Define for mips-xdep.c.
849 (READ_MIPS_FORMAT, COFF_FORMAT): Remove, unused now.
850 * mips-xdep.c: Remove most include files (unused, caused errs).
851 (fetch_core_registers): Use right parameters in dummy fn.
852
c47793da
JG
853Mon Jun 29 18:30:57 1992 John Gilmore (gnu at cygnus.com)
854
0f552c5f
JG
855 * buildsym.c (scan_file_globals): Beware the null file.
856 Fix from Jim Williams.
857
858 * stack.c (return_command): Evaluate expression *before* popping
859 off the stack frames! Fix inspired by Jim Williams.
860 (up_silently_command, down_silently_command): No sel frame is error.
861
862 * defs.h (memcpy, memset): Conditionalize decls on
863 #ifndef MEM_FNS_DECLARED, since DECstation differs.
864 (alloca): Break out the STDC and non-STDC alloca cases, to make
865 it work on old preprocessors as well as "picky ANSI" ones.
866 * xm-mips.h (memcpy, memset): Declare, and set MEM_FNS_DECLARED.
867
868 * mips-tdep.c (heuristic_proc_start): Zero arg produces zero.
869 * utils.c (fputs_demangled): Rename SLOP since DECstation system
870 header files define it!
871
c47793da
JG
872 * tm-29k.h (BREAKPOINT): Allow it to be overridden with -D.
873
51b57ded
FF
874Mon Jun 29 16:30:25 1992 Fred Fish (fnf@cygnus.com)
875
876 * dbxread.c, i386-pinsn.c, i386-tdep.c, regex.c, solib.c, symmisc.c,
877 symtab.h, tm-i386v4.h, valprint.c, values.c: Lint.
878 * breakpoint.c, c-exp.y, coffread.c, command.c, environ.c, eval.c,
879 findvar.c, infcmd.c, infptrace.c, infrun.c, m2-exp.y, parse.c,
880 putenv.c, solib.c, sparc-xdep.c, symtab.c, tm-i386v.h, tm-sparc.h,
881 utils.c, valarith.c, valops.c, valprint.c, values.c:
882 Replace bcopy() use with memcpy(), which is more standard and can
883 take advantage of gcc's builtin functions for increased performance.
884 * breakpoint.c, buildsym.c, coffread.c, dbxread.c, i386-tdep.c,
885 ieee-float.c, infcmd.c, sparc-tdep.c, stack.c, symtab.c, symtab.h,
886 target.c, values.c:
887 Replace bzero() use with memset(), which is more standard and can
888 take advantage of gcc's builtin functions for increased performance.
889 * i386-tdep.c, main.c, valprint.c:
890 Replace bcmp() use with memcmp(), which is more standard and can
891 take advantage of gcc's builtin functions for increased performance.
892
22fd4704
FF
893Sun Jun 28 13:30:22 1992 Fred Fish (fnf@cygnus.com)
894
895 * remote.c (remote_wait): Fix cast on signal() call.
896 * defs.h (alloca): More diddling with alloca. Have to ensure
897 that it has a prototype, so that if alloca is defined as a macro
898 that takes an arg, the definition is seen as a use of a macro
899 that takes an arg, to satisfy picky ANSI preprocessors.
900
74fb91be
FF
901Sat Jun 27 12:12:20 1992 Fred Fish (fnf@cygnus.com)
902
903 * sparc-pinsn.c: Use <string.h> rather than "string.h", for
904 consistency with all other gdb files.
905 * cadillac.c: Use <string.h> rather than <strings.h>.
906 * cadillac.c (kernel_dispatch): Convert rindex usage to strrchr.
907 * Makefile.in (MAKE): Remove definition for consistency with
908 other Makefile.in files and to fix problem with recursive makes.
909
3a1e7a62
JG
910Fri Jun 26 19:03:23 1992 John Gilmore (gnu at cygnus.com)
911
912 * hppahpux-xdep.c (child_xfer_memory): Avoid PT_WDUSER because it
913 crashes H-PUX.
914
b951b38d
SC
915Fri Jun 26 11:09:10 1992 Steve Chamberlain (sac@thepub.cygnus.com)
916
917 * source.c (print_source_lines): for DOS interoperability; don't
918 print CR (013) as ^M.
919
99fd9e3e
SG
920Thu Jun 25 15:18:42 1992 Stu Grossman (grossman at cygnus.com)
921
bf18ac80
SG
922 * dbxread.c (dbx_symfile_init): Move more code under hp9000s800
923 conditional.
924 * hppabsd-core.c: Don't include "param.h", include <sys/param.h>
925 instead.
926 * remote.c (remote_wait): Cast signal to void * to avoid warning
927 from busted HP compiler.
928
cf79373a
SG
929 * partial-stab.h (N_SO): Rearrange code a little so that all SO
930 stabs cause end_psymtab to be called.
931
50a11e49
SG
932 * buildsym.c (read_sun_builtin_type): Handle new FCS Sun CC
933 compiler feature of putting 'c' into basic type descriptors for
934 all forms of char.
935
99fd9e3e
SG
936 * procfs.c (child_resume): Work around Solaris (on Sparc) lossage
937 where there is no place for nPC in prrun struct.
938
50e0dc41
FF
939Thu Jun 25 12:06:00 1992 Fred Fish (fnf@cygnus.com)
940
941 * mipsread.c: Pass NULL name pointer to init_type, not 0.
942 * gdbtypes.c (init_type): Use copy of typename on type_obstack.
943 * dwarfread.c (enum_type): Save enum names on type_obstack.
944 * dwarfread.c (struct_type): Save member name on type_obstack.
945 * symtab.c (_initialize_symtab): Fix misspelling.
946 * regex.c (store_jump, insert_jump): Return void.
947
5140562f
JG
948Thu Jun 25 04:00:10 1992 John Gilmore (gnu at cygnus.com)
949
debd3443
JG
950 * defs.h (PARAMS): Move to ../include/ansidecl.h.
951 (alloca): Declare return type on SPARC, since Sun doesn't.
952 (*_BYTE_ORDER): Improve comment: *must* be defined.
953
5140562f
JG
954 * tm-hppa.h: New file, architectural definition of HP PA.
955 * tm-hppabsd.h, tm-hppahpux.h: Shrink to deltas from tm-hppa.h.
956
957 * am29k-pinsn.c, am29k-tdep.c, copying.awk, copying.c,
958 hppa-coredep.c, hppa-pinsn.c, hppabsd-core.c, hppabsd-tdep.c,
959 hppabsd-xdep.c, hppahpux-tdep.c, hppahpux-xdep.c, remote-udi.c,
960 ser-go32.c, xcoffsolib.c: Remove <stdio.h> which is already in
961 "defs.h".
962
963 * hppa-coredep.c, hppa-pinsn.c, hppabsd-core.c, hppabsd-tdep.c,
964 hppabsd-xdep.c, hppahpux-tdep.c, hppahpux-xdep.c, xcoffsolib.c,
965 xcoffsolib.h, xm-go32.h, xm-hppabsd.h, xm-hppahpux.h: Copyrights.
966
fef9f55c
JG
967Wed Jun 24 12:53:20 1992 John Gilmore (gnu at cygnus.com)
968
4d38b5a8
JG
969 * printcmd.c (output_command): Thinko.
970 (x_command): Only set remembered size/format if cmd succeeds.
971
fef9f55c
JG
972 * dbxread.c (read_ofile_symtab): Remove N_CATCH special case,
973 since it is no longer used and burns time for every symbol read.
974 (process_one_symbol): Treat N_CATCH like default (complain).
975
369172bb
SG
976Wed Jun 24 00:26:56 1992 Stu Grossman (grossman at cygnus.com)
977
978 * partial-stab.h (case N_TEXT): Fix fencepost error when
979 detecting start of new symbol info after reading symtab for a
980 module with a zero length TEXT segment.
981
e676a15f
FF
982Tue Jun 23 21:46:26 1992 Fred Fish (fnf@cygnus.com)
983
984 * Makefile.in (VERSION): Bump to 4.5.6.
985 * coffread.c (coff_end_symtab): Cast 2nd arg of complain() to
986 correct type.
987 * defs.h (NORETURN): Define away for Lucid compiler.
988 * remote.c (remote_timer, remote_interrupt): Signal handlers
989 take one int arg.
990 * ser-termios.c (serial_write, serial_close): Return whatever
991 value the write/close call returns, rather than falling off end.
992 * inferior.h (PTRACE_ARG3_TYPE): Third arg to ptrace is int on
993 more systems than it is "char *". Define PTRACE_ARG3_TYPE to
994 default to int.
995 * infptrace.c, hppabsd-xdep.c, hppahpux-xdep.c, i386-xdep.c,
996 inferior.h (call_ptrace): Use PTRACE_ARG3_TYPE to declare type
997 of third arg.
998 * a68v-xdep.c, arm-xdep.c, convex-xdep.c, hp300ux-xdep.c, infrun.c,
999 m88k-xdep.c, mach386-xdep.c, mips-xdep.c, os68k-xdep.c, pyr-tdep.c,
1000 pyr-xdep.c, rs6000-xdep.c, sparc-xdep.c, sun3-xdep.c, sun386-xdep.c,
1001 symm-xdep.c, ultra3-xdep.c: Use PTRACE_ARG3_TYPE to cast ptrace
1002 argument 3.
1003 * sparc-xdep.c, a68v-xdep.c (fetch_inferior_registers,
1004 store_inferior_registers): Supply missing fourth argument to
1005 ptrace().
f54e9fd8
FF
1006 * cadillac.c (kernel_dispatch): Make return type void.
1007 * cadillac.c (iosig): Signal handlers take one int arg.
b4cc55b5
FF
1008 * valprint.c (val_print_fields): Call fprint_symbol to get
1009 automatic C++ demangling for mangled field names.
e676a15f 1010
0efe20a6
FF
1011Mon Jun 22 20:18:06 1992 Fred Fish (fnf@cygnus.com)
1012
1013 * command.c (add_abbrev_prefix_cmd): Fix misspelling in comment.
1014 * dwarfread.c (enum_type): Fix misspelling in comment.
1015 * valprint.c (val_print_fields, cplus_val_print): Minor
1016 adjustment to printing of C++ class structures to more closely
1017 match format for printing C structures, with and without setting
1018 pretty print.
1019
e37a6e9c
PB
1020Mon Jun 22 17:19:02 1992 Per Bothner (bothner@cygnus.com)
1021
1022 * infrun.c (wait_for_inferior): Don't test for SIGEMT
1023 (which is not a Posix signal) if it isn't defined.
1024 * tm-linux.h, xm-linux.h, config/linux.m[ht], configure.in:
1025 New port to Linux (a free Unix clone for 386 machines).
1026
f70be3e4
JG
1027Sat Jun 20 19:19:52 1992 John Gilmore (gnu at cygnus.com)
1028
1029 COFF changes for dealing better with EPI 29K C compiler output.
1030
1031 * coffread.c (record_minimal_symbol): Pass the minsym type to it.
1032 Callers changed.
1033 (coff_end_symtab): Sort blocks if needed. Complain if misordered.
1034 (read_coff_symtab): Move patch_opaque_types call from
1035 coff_symfile_read. Restrict it to symtabs from this objfile.
1036 (process_coff_symbol: C_TPDEF): Don't put ordinary foward
1037 references on opaque type chain; just let coff_lookup_type handle 'em.
1038 (decode_type): Complain about tagndx values on
1039 non-struct/union/enum types, which the EPI compiler tends to produce.
1040
1041 * symtab.c (list_symbols): Make minimal symbol variable-finding work.
1042
1043 * tm-68k.h (FIX_CALL_DUMMY): Avoid alignment and byte order
1044 dependency.
1045
1046 * elfread.c (elf_symfile_read): Update bfd_elf_find_section
1047 usage to match new prototype. Include libbfd.h to get prototype.
1048
28df0c3e
JG
1049 * source.c (find_source_lines): Handle large st_size fields.
1050
b4fde6fa
FF
1051Sat Jun 20 16:28:39 1992 Fred Fish (fnf@cygnus.com)
1052
1053 * infcmd.c (jump_command): Use cleanups to avoid memory leaks.
1054 * stack.c (return_command): Use cleanups to avoid memory leaks.
1055
e95bfbf1
JG
1056Fri Jun 19 19:06:41 1992 John Gilmore (gnu at cygnus.com)
1057
1058 * remote-adapt.c, remote-eb.c, remote-mm.c: Lint. Fix
1059 INT_REGNUM to INTE_REGNUM.
1060
1061 * tm-29k.h (SDB_REG_TO_REGNUM): Add for EPI 29K C compiler.
1062
9aa44833
SG
1063Fri Jun 19 15:30:15 1992 Stu Grossman (grossman at cygnus.com)
1064
7da1e27d
SG
1065 * configure.in, dbxread.c, hppa-coredep.c, hppa-pinsn.c,
1066 hppabsd-core.c, hppabsd-tdep.c, hppabsd-xdep.c, hppahpux-tdep.c,
1067 hppahpux-xdep.c, munch, partial-stab.h, tm-hppabsd.h,
1068 tm-hppahpux.h, xm-hppabsd.h, xm-hppahpux.h: HPPA merge.
1069
9aa44833
SG
1070 * Makefile.in (c-exp.tab.c, m2-exp.tab.c): Filter out bogus extern
1071 declarations of malloc/realloc/free that are inserted by some
1072 versions of yacc.
1073 * m2-exp.y: Prevent conflicts with TRUE and FALSE tokens by
1074 #undeffing them.
1075 * xm-rs6000.h: Declare malloc/realloc/free appropriately. Yet
1076 another decl of strdup (this really ought to come from libiberty.h!).
1077
8f86a4e4
JG
1078Fri Jun 19 10:28:05 1992 John Gilmore (gnu at cygnus.com)
1079
1080 * remote.c (getpkt): Error if input exceeds buffer size.
1081 (_initialize_remote): `set remotedebug' enables packet trace.
1082
1083 * dbxread.c (process_one_symbol:N_FUN): GCC now produces relative
1084 N_SLINE's, etc, just like Sun cc on Solaris2.
1085
1086 * am29k-tdep.c (read_register_stack, write_register_stack):
1087 Change RSTACK_HIGH_ADDR to rstack_high_address, a user-settable
1088 variable. Add `set' and `show' commands for it.
1089 * doc/gdb.texinfo: Document it.
1090
4341615d
FF
1091Thu Jun 18 19:35:22 1992 Fred Fish (fnf@cygnus.com)
1092
1093 * valprint.c (type_print_1): Plug memory leak. Print all
1094 C++ syms as demangled, not just functions.
1095 * buildsym.c (read_range_type): When we find a signed char
1096 type, do a lookup of signed char, not plain char. Plain char's
1097 still get looked up as plain char's elsewhere.
1098
8f86a4e4
JG
1099Thu Jun 18 18:59:04 1992 John Gilmore (gnu at cygnus.com)
1100
1101 * eval.c: Avoid residue-by-zero when evaluating without side effects.
1102 (Bug and fix found by Pierre Willard.)
1103
427d778c
SG
1104Wed Jun 17 13:08:33 1992 Stu Grossman (grossman at cygnus.com)
1105
7634ebc8
SG
1106 * xm-rs6000.h: Fix decls for malloc, realloc, and free.
1107
826f73d0
SG
1108 * xm-rs6000.h: Add decl for strdup().
1109
1110 * tm-rs6000.h: Remove #include of inferior.h. Fixes many
65c36045
SG
1111 compilation errors.
1112
423e9664
SG
1113 * breakpoint.c (enable_command, disable_command): Without args,
1114 should only affect normal breakpoints and watchpoints.
427d778c 1115
423e9664
SG
1116 * m68k-pinsn.c (print_insn_arg): Make register be const.
1117 * xcoffexec.c: Remove ' from comment.
427d778c
SG
1118 * xm-sun3os4.h: Define MALLOC_INCOMPATIBLE to avoid conflicts
1119 with decls of malloc in c-exp.tab.c (as produced by yacc).
1120 There's got to be a better way to do this...
1121
323227fe
FF
1122Wed Jun 17 11:10:40 1992 Fred Fish (fnf@cygnus.com)
1123
1124 * partial-stab.h: Convert single rindex use to strrchr.
1125 * mipsread.c, dbxread.c: Remove troublesome inclusion of non-
1126 standard <strings.h> file, now that the only single use of
1127 rindex in the gdb source files is gone.
1128
fa0bcaa3
FF
1129Tue Jun 16 22:17:49 1992 Fred Fish (fnf@cygnus.com)
1130
1131 * mipsread.c: Undo ill effects from including <strings.h>,
1132 which #defines index to be strchr. Unfortunately, index is
1133 a member of a symbol table structure that can't be changed.
1134 * mipsread.c: tm-mips.h includes coff/symconst.h and coff/sym.h,
1135 remove redundant #include's.
1136
b303297a
SG
1137Tue Jun 16 14:15:51 1992 Stu Grossman (grossman at cygnus.com)
1138
1139 * mipsread.c: #include <strings.h> for rindex().
1140
d1140eb5
FF
1141Tue Jun 16 09:01:49 1992 Fred Fish (fnf@cygnus.com)
1142
1143 * xcoffexec.c (map_vmap): Turn comment into a real C comment.
1144
c72af089
SG
1145Mon Jun 15 18:41:23 1992 Stu Grossman (grossman at cygnus.com)
1146
1147 * dbxread.c (process_one_symbol), partial-stab.h: Ignore
1148 extraneous SO stabs from busted C++ compilers.
1149
4c07f28d
FF
1150Mon Jun 15 12:21:45 1992 Fred Fish (fnf@cygnus.com)
1151
1152 * Makefile.in (VERSION): Bump to 4.5.5.
1153 * symtab.c (decode_line_1): Until C++ support stabilizes, when
1154 C++ lookups fail, print possibly helpful hint about completion.
1155 * cplus-dem.c (demangle_signature): Fix ARM style demangling
1156 for static data members.
1157 * dbxread.c (dbx_psymtab_to_symtab_1): Fix prototype.
1158 * config/ncr3000.mh (INSTALL): Don't use /usr/ucb/install,
1159 it's broken on ncr3000's.
1160
1c92ca6f
FF
1161Mon Jun 15 07:21:00 1992 Fred Fish (fnf@cygnus.com)
1162
1163 * dwarfread.c (decode_modified_type): Change type of first arg.
1164 Change 'modifier' to char from unsigned char. Cast single use
1165 that needs to be unsigned char.
1166 * symtab.h (SYMBOL_BASEREG_VALID): Explain disabling.
1167 * utils.c (strdup_demangled): Add function.
1168 * defs.h (strdup_demangled): Add prototype.
1169 * stack.c (return_command): Demangle C++ function names for query.
1170 * infcmd.c (jump_command): Demangle C++ function names for query.
1171 * cplus-dem.c (consume_count): New function and prototype.
1172 * cplus-dem.c (demangle_class, gnu_special, demangle_func_type,
1173 do_type): Replace conversion code with consume_count().
1174 * cplus-dem.c (gnu_special): Fix demangled of static members.
1175 * source.c (list_command): Print demangled function names
1176 when appropriate. Fix supplied by Peter Schauer.
1177
1178Mon Jun 15 01:45:48 1992 John Gilmore (gnu at cygnus.com)
1179
8f86a4e4
JG
1180 * sparc-tdep.c: Clean up slightly for Solaris2.
1181
1c92ca6f
FF
1182 * buildsym.c (define_symbol): Nameless types are now on several
1183 platforms; generalize them and un-ifdef them to make Solaris 2
1184 work.
1185
bcbf9559
JG
1186Sun Jun 14 10:55:51 1992 John Gilmore (gnu at cygnus.com)
1187
d69bba12
JG
1188 * infcmd.c: Fix typo (reported by Rob Savoye).
1189 * xm-sun4sol2.h (gregset_t): Thinko in register set definition.
1190 * symtab.h: Disable SYMBOL_BASEREG_VALID until it works.
1191 * dbxread.c (dbx_psymtab_to_symtab_1): Renamed from
1192 psymtab_to_symtab_1. Use current psymtab's sym_offset and symbol_size,
1193 rather than the one for the first file in the dependency chain.
1194
bcbf9559
JG
1195 * dbxread.c (end_psymtab): Only reset texthigh if it's not already
1196 set. Don't reset our own texthigh, or dependency-only pst's, in
1197 scanning all the rest of the psymtabs.
1198 (process_one_symbol): Fix comments around N_OBJ, N_OPT, N_UNDF.
1199
1200 * buildsym.h (N_UNDF): Improve comments.
1201 (N_LSYM, etc): Skip types without names (":T(0,3)=sfoob...").
1202
252f6c65
FF
1203Sat Jun 13 11:16:45 1992 Fred Fish (fnf at cygnus.com)
1204
1205 * symtab.h (struct symbol): Add aux_value union for preserving
1206 an additional per-symbol value.
1207 * symtab.h (SYMBOL_BASEREG, SYMBOL_BASEREG_VALID): Add defines.
1208 * frame.h (FRAME_GET_BASEREG_VALUE): Provide default definition.
1209 * findvar.c (read_var_value): Use SYMBOL_BASEREG if valid.
1210 * printcmd.c (address_info): Use SYMBOL_BASEREG if valid.
1211 * symmisc.c (print_symbol): Use SYMBOL_BASEREG if valid.
1212
a6b46ad4
MT
1213Sat Jun 13 09:18:46 1992 Michael Tiemann (tiemann@rtl.cygnus.com)
1214
1215 * symfile.c (clear_symtab_users_once): Now non-static (for
1216 objfiles.c).
1217
bf2e5f6b
JG
1218Fri Jun 12 18:54:40 1992 John Gilmore (gnu at cygnus.com)
1219
346168a2
JG
1220 * arm-pinsn.c, i960-pinsn.c, m68k-pinsn.c, mips-pinsn.c,
1221 ns32k-pinsn.c, pyr-pinsn.c, sparc-pinsn.c, tahoe-pinsn.c,
1222 vax-pinsn.c: Remove reg_names decl (now in defs.h).
1223
1224 Solaris-2 support on SPARC:
1225
1226 * dbxread.c: Add symbol_size to struct dbx_symfile_info.
1227 Add symbol_size and file offsets to struct symloc.
1228 Add static symbol_table_offset, string_table_offset,
1229 file_string_table_offset, next_file_string_table_offset,
1230 last_function_name.
1231 (add_old_header_file): Convert error() to complain()t.
1232 (dbx_symfile_read): Get symbol size via the objfile.
1233 Also get symbol_table_offset.
1234 (dbx_symfile_init): Record symbol size and count via the objfile.
1235 (dbx_next_symbol_text): Always add file_string_table_offset when
1236 accessing string table.
1237 (read_dbx_symtab): Initialize file_string_table_offset to 0.
1238 (SET_NAMESTRING): Use the offset.
1239 (end_psymtab): Large kludge to determine addresses where source
1240 files start and end (for the psymtab header).
1241 (psymtab_to_symtab_1): Set file_string_table_offset before reading.
1242 Get this, symbol size, and symbol offset, from psymtab.
1243 (read_ofile_symtab): Don't back up one symbol for Solaris2.
1244 Patch up last_source_start_addr if zero in N_SO.
1245 (process_one_symbol): Add variable function_start_offset.
1246 ( "", N_FUN, N_LBRAC, N_RBRAC, N_SLINE): Add ifdef for
1247 BLOCK_ADDRESS_FUNCTION_RELATIVE.
1248 ( "", N_OBJ, N_OPT): Ignore.
1249 (elfstab_build_psymtabs): New function to read stabs out of
1250 an ELF file.
1251
1252 * Makefile.in: Accept $(BISON) even though we really want $(YACC).
1253 (gdb): use GLOBAL_CFLAGS when linking, too.
1254 * partial-stab.h (N_UNDF): Deal with Sol2 relative stringtab offsets.
1255 (N_OBJ, N_OPT): Ignore.
1256 ('f', 'F'): Save last function name.
1257
1258 * elfread.c (record_minimal_symbol_and_info): Kludged to put
1259 extra info in the minimal symbol.
1260 (elf_symtab_read): The extra info is the size of an ELF object,
1261 which was kludged to us in the `udata' field of the BFD symbol.
1262 Gag me with a crowbar...
1263 (elf_symfile_read): Keep track of both the absolute load address,
1264 and the offset between load addr and symbols. Handle STABS as
1265 well as DWARF sections, passing the absolute load address to
1266 elfstab_build_psymtabs.
1267
1268 * symfile.h: Prototype elfstab_build_psymtabs.
1269 * symfile.c: Add almost-OK debug versions of add_psymbol_*to_list.
1270
1271 * xm-sysv4.h: Add <limits.h> to avoid conflicting defns in defs.h.
1272
93297ea0
JG
1273 * buildsym.h: Add processing_acc_compilation flag.
1274 * buildsym.c (read_sun_builtin_type, read_sun_floating_type): New.
1275 (define_symbol): Skip arg types in function entries. Resolve
1276 overloaded 'P' which acc uses for prototypes of functions called
1277 by this file.
1278 (read_type: 'b', 'r'): Handle Solaris2 builtin types.
1279
1280 * minsyms.c (prim_record_minimal_symbol_and_info): Hack to
1281 save size of ELF symbols. FIXME.
1282 * tm-sun4os5.h: Rename to tm-sun4sol2.h. Update defines for Sol2.
1283 * xm-sun4os5.h: Rename to xm-sun4sol2.h. Hack more defines.
1284
bf2e5f6b 1285 * configure.in: Solaris config is sparc-sun-solaris2.
93297ea0 1286 * config/sun4os5.m[ht]: Rename to config/sun4sol2.m[ht]; new xm, tm.
bf2e5f6b 1287
346168a2
JG
1288 * objfiles.c (free_objfile): Eliminate storage leaks. Contributed
1289 by <Peter.Schauer@regent.e-technik.tu-muenchen.dbp.de>.
1290 * symfile.c (symfile_bfd_open): Comment where name is freed.
1291 * symmisc.c (extend_psymbol_list): Comment where list is freed.
1292
252f6c65 1293Fri Jun 12 08:24:36 1992 Fred Fish (fnf at cygnus.com)
6b53bf34
FF
1294
1295 * expprint.c (print_subexp): Add missing ']'.
1296 * defs.h (reg_names): Fix declaration to match that in infcmd.c
1297 * stack.c (reg_names): Delete redundant (and inconsistent) decl.
1298 * WHATS.NEW: Point out improved C++ function name handling.
1299 * gdbtypes.c (lookup_fundamental_type): For now, use the same
1300 type names for both implicitly and explicitly signed integral
1301 types. See comment in the source code.
1302
28de880c
JG
1303Thu Jun 11 12:31:50 1992 John Gilmore (gnu at cygnus.com)
1304
1305 Two `long long' fixes from Robert R. Henry (rrh@dino.tera.com):
1306 * defs.h (longest_to_int): Avoid void arm of ?: in error case.
1307 * expprint.c (print_subexp): Fix printing of register names.
1308
1304f099
JG
1309Thu Jun 11 01:33:40 1992 John Gilmore (gnu at cygnus.com)
1310
1311 * inferior.h (register_valid): Declare.
1312 * remote-udi.c, rs6000-xdep.c, sparc-xdep.c, tm-rs6000.h: Remove decl.
1313 * objfiles.h (ALL_OBJFILE_{SYMTABS,PSYMTABS,MSYMBOLS}): Add
1314 macros for traversing the data structures in a single objfile.
1315 * tm-m88k.h, tm-sparc.h (REGISTER_NAMES): Remove extra semicolon.
1316 * tm-i960.h (REGISTER_NAMES): Cosmetic change.
1317 * infcmd.c: Lint.
1318
252f6c65 1319Tue Jun 9 17:19:45 1992 Fred Fish (fnf at cygnus.com)
36ce1b64
FF
1320
1321 * c-exp.y, m2-exp.y: Move remapping defines for malloc and
1322 realloc. Add remapping defines for {yyss, yyssp, yyvs, yyvsp}.
1323 * config/{amix.mh, i386v4.mh, ncr3000.mh, stratus.mh,
1324 sun4os5.mh}: Add definition for INSTALL using /usr/ucb/install.
1325
55488e9e
SG
1326Tue Jun 9 16:29:19 1992 Stu Grossman (grossman at cygnus.com)
1327
1328 * depend: rebuild to account for remote-st2000.c.
1329 * remote-st2000.c: Almost works now.
1330 * tm-st2000.h: Need to turn on HAVE_68881, else things won't compile.
1331
d630b615
FF
1332Mon Jun 8 23:05:51 1992 Fred Fish (fnf@cygnus.com)
1333
1334 * c-exp.y (yylex): Recognize single-quoted strings that specify
1335 tokens with embedded whitespace, such as C++ demangled names.
1336 * defs.h (demangle_and_match, strcmp_iw, skip_quoted): Prototypes.
1337 * main.c (gdb_completer_quote_characters): Add global variable.
1338 * main.c (symbol_completion_function): Total rewrite for C++
1339 demangled name handling.
1340 * main.c (skip_quoted): New function.
1341 * main.c (main): Set rl_completer_quote_characters.
1342 * symmisc.c (dump_symtab): Print source language for symtab.
1343 * symtab.c (expensive_mangler): Add prototype and function.
1344 * symtab.c (completion_list_add_symbol): Total rewrite for new
1345 C++ demangled name handling.
1346 * symtab.c (lookup_symbol): Check for demangled C++ symbol first,
1347 other changes for demangled C++ symbol handling.
1348 * symtab.c (lookup_demangled_block_symbol): Use demangle_and_match.
1349 * symtab.c (lookup_demangled_partial_symbol): Use demangle_and_match.
1350 * symtab.c (decode_line_1): Recognize C++ demangled names on input.
1351 * symtab.c (completion_list_add_symbol): Total rewrite for new
1352 C++ demangled name handling.
1353 * symtab.c (expensive_mangler): New function.
1354 * utils.c (strcmp_iw, demangle_and_match): New functions.
1355 * xcoffread.c (aixcoff_symfile_read): Fix prototype.
1356
d9915ebc
JG
1357Mon Jun 8 21:59:08 1992 John Gilmore (gnu at cygnus.com)
1358
1359 * Makefile.in: Roll VERSION to 4.5.4.
1360 * Makefile.in, config/*.mh, config/*.mt: Rename TM_CFLAGS
1361 to MT_CFLAGS, XM_CFLAGS to MH_CFLAGS to match file names.
1362 * config/sun4os5.mh: Add MH_CFLAGS=-xs to save debug info.
1363
88cc9a36
SG
1364Mon Jun 8 14:17:42 1992 Stu Grossman (grossman at cygnus.com)
1365
55488e9e
SG
1366 * alldeps.mak: Rebuild to account for new files.
1367 * config/st2000.mt: Use tm-st2000.h, not tm-68k.h.
1368 * tm-st2000.h: New file.
88cc9a36
SG
1369 * configure.in: Tandem debug monitor (st2000) support.
1370 * remote-st2000.c, config/st2000.mt: ditto.
1371
6f8db23a
JG
1372Fri Jun 5 11:51:01 1992 John Gilmore (gnu at cygnus.com)
1373
1374 * blockframe.c (inside_entry_file, inside_main_func,
1375 inside_entry_func): Return 0 if no symbols; avoid crashing.
1376
1377Wed Jun 3 17:48:04 1992 John Gilmore (gnu@cygnus.com)
2795260c
JG
1378
1379 * xcoffread.c (read_xcoff_symtab): Set c_sclass from n_sclass
1380 without masking, since it is signed and will later be compared
1381 against signed quantities. The right fix is probably to make
1382 it all unsigned, but this is a small, safe fix for this release.
1383 FIXME -- make the real change sometime soon.
1384
a748555b
MT
1385Mon Jun 1 16:16:12 1992 Michael Tiemann (tiemann@cygnus.com)
1386
fb44a8f5
MT
1387 * remote-vx.c (vx_load_command,add_symbol_stub): Default READNOW
1388 parameter in call to `symbol_file_add' to 0.
1389
a748555b
MT
1390 * xm-sun4os4.h (MALLOC_INCOMPATIBLE): Define it.
1391
1392Sun May 31 06:38:27 1992 Michael Tiemann (tiemann@cygnus.com)
1393
1394 * configure.in: Handle -m680[01234]0-wrs.
1395
48079d66
MT
1396Fri May 29 22:16:02 1992 Michael Tiemann (tiemann@rtl.cygnus.com)
1397
1398 * m68k-pinsn.c (print_insn_arg): Pass &EXT_FORMAT_68881 to
1399 `ieee_extended_to_double'.
1400
cb614788
JG
1401Wed May 27 09:27:57 1992 John Gilmore (gnu at cygnus.com)
1402
1403 * valops.c (value_assign): Lint, by Pierre Willard.
1404
6ad6ef42
JG
1405Tue May 19 19:38:10 1992 John Gilmore (gnu at cygnus.com)
1406
cb614788
JG
1407 * coredep.c (fetch_core_registers): Remove premature warning,
1408 which triggers on DECstation even though all regs are accessible.
1409
1410 * m68k-pinsn.c (print_insn_arg): Use new macros to get
1411 sign-extension of instruction fields even on unsigned-char hosts.
1412 Bug found by Fred J Roeber, fjr@sgfb.ssd.ray.com.
6ad6ef42 1413
cb614788 1414 88K changes inspired by Ted Lemon (uunet!lupine!mellon):
6ad6ef42
JG
1415 * tm-m88k.h, tm-umax.h: Avoid sizeof() in REGISTER_xxx macros,
1416 since they define the target, not the host.
1417 * m88k-pinsn.c: Fix typo.
1418
1419Thu May 14 01:16:48 1992 John Gilmore (gnu at cygnus.com)
1420
1421 * valarith.c (value_zerop): -0.0 is still zero.
1422 * eval.c (evaluate_subexp): Avoid NaN anomalies in float compares.
1423 Patches by Paul Eggert <eggert@twinsun.com>.
1424
1425Mon May 18 13:53:51 1992 Stu Grossman (grossman at cygnus.com)
1426
1427 * alldeps.mak, depend: re-make to account for ser-*.c.
1428
6c316cfd
FF
1429Sun May 17 16:51:20 1992 Fred Fish (fnf@cygnus.com)
1430
1431 * inflow.c (new_tty): Temporarily ignore SIGTTOU when
1432 disconnecting from controlling terminal, to avoid gdb hanging
1433 on SVR4. Fixes bug reported by Oliver Okrongli.
1434 * procfs.c (PROC_NAME_FMT): Change format to match default used
1435 by system, as suggested by Oliver Okrongli.
1436 * tm-68k.h (FRAME_FIND_SAVED_REGS): Apply missing parentheses
1437 bug fix from Brent Townshend (bst%tt@cam.ORG).
1438 * c-exp.y (nonempty_typelist): Fix memory overrun bug reported
1439 by turlais@rechser.total.fr.
1440 * dwarfread.c (decode_subscr_data): Fix bug in calculation of
1441 length of non-zero lowerbound arrays. Bug fix from Peggy Fieland.
1442 * objfiles.h (unlink_objfile): Add prototype.
1443 * objfiles.c (unlink_objfile): Add function.
1444 * objfiles.c (free_objfile): Call unlink_objfile.
1445 * objfiles.c (allocate_objfile): Call unlink_objfile on newly
1446 remapped objfiles. Bug reported by hahn@sunshine.labs.tek.com.
1447 Also, discard old possibly bogus sf struct.
1448 * symfile.c (symbol_file_add): Call init_entry_point_info() and
1449 find_sym_fns() for remapped symbol files, in case of any changes
1450 since the last mapping.
1451
1452Wed May 13 18:28:20 1992 Steve Chamberlain (sac@thepub.cygnus.com)
1453
1454 * findvar.c (read_relative_register_raw_bytes): use the raw size
1455 of a register to bcopy, rather than the host's sizeof(CORE_ADDR).
1456
ae0ea72e 1457Tue May 12 17:44:39 1992 Steve Chamberlain (sac@thepub.cygnus.com)
6ad6ef42 1458
ae0ea72e
SC
1459 Changes to support GDB running on DOS using GO32 and H8 support
1460
1461 * defs.h: if xm.h doesn't define FOPEN_RB, include "fopen-same.h",
1462 allowing hosts with different text and binary file formats to
1463 work.
1464 * coffread.c (read_coff_symtab): changed calling convention and
1465 operation - now it opens its own file with FOPEN_RB rather than
1466 duping and fdopening the provided handle.
1467 * dbxread.c, cplus-dem.c: #include mangling.
1468 * exec.c: If O_BINARY isn't defined, set it to 0, call openp for
1469 binary files oring in the right bit.
1470 * utils.c, terminal.h, inflow.c: hackery because dos doesn't have terminals.
1471 * remote-hms.c: cleanup to use the new remote serial stuff
1472 * serial.h, ser-termios.c, ser-go32.c: newfiles to provide host
1473 independent remote terminal I/O.
1474 * remote.c: if DONT_USE_REMOTE not defined, then don't use it.
1475 * source.c (openp): fix off by one problem removing / - can now
1476 open a source file in the root directory with DOS.
1477 * values.c (value_as_pointer): remove bogus address bits from
1478 long. (unpack_long): unpack into unsigned long/short if pointer.
1479
0defac02
SG
1480Tue May 12 14:15:48 1992 Stu Grossman (grossman at cygnus.com)
1481
84c8f62d
SG
1482 * infrun.c (child_attach): Don't allow gdb to attach to itself.
1483 It gets permanently stuck in many OSes.
bcf2e6ab
SG
1484 * breakpoint.c, infcmd.c, infrun.c, utils.c: Change many printfs
1485 to printf_filtered.
70d47e66 1486 * breakpoint.c: Improve help text for info breakpoints.
0defac02
SG
1487
1488Mon May 11 14:17:18 1992 John Gilmore (gnu at cygnus.com)
1489
1490 * README: Add pointer to internals doc, and describe reading
1491 info files.
1492 * utils.c (print_sys_errmsg): Use stderr. Reported by Pierre Willard.
1493 * symtab.c (output_source_filename): Remove old glop for wrapping
1494 lines, use wrap_here. Reported by Pierre Willard (pierre@la.tce.com).
1495
1496Thu May 7 11:45:03 1992 John Gilmore (gnu at cygnus.com)
1497
1498 * Makefile.in: version.c should depend on Makefile, not Makefile.in.
1499 * munch: Add sort -u to avoid duplications.
1500 * symtab.c (lookup_symbol): Improve Stu's fix of 22 April.
1501 Improved fix by hahn@sunshine.labs.tek.com (Doug Hahn).
1502
7fd31a84
FF
1503Mon May 11 13:27:46 1992 Fred Fish (fnf@cygnus.com)
1504
1505 * cplus-dem.c (demangle_signature): Recognize misplaced '_' to
1506 avoid infinite loops while demangling bogus mangled names.
1507 * valprint.c (type_print_base): Minor fix for GNU style guide
1508 conformance.
1509
f9b5584c
FF
1510Sat May 9 18:02:17 1992 Fred Fish (fnf at fishpond)
1511
1512 * Makefile.in (VERSION): Bump to 4.5.3
1513 * Makefile.in (DEMANGLE_OPTS): Remove obsolete -Dnounderscore
1514 * Makefile.in (demangle): New target to create standalone
1515 demangler with same code and options as internal demangler.
1516 * cplus-dem.c: Massive restructuring, rewriting, cleanups, etc
1517 to support ARM style and Lucid style demangling, improve
1518 maintainability, fix several demangling bugs. More changes
1519 to follow.
1520 * defs.h (strstr): Add ANSI compatible prototype.
1521 * valprint.c (type_print_1): Demangle using ansi option.
1522 * config/ncr3000.mt (DEMANGLE_OPTS): Remove -Dnounderscore.
1523
1e939db1
SG
1524Sat May 9 14:47:28 1992 Stu Grossman (grossman at cygnus.com)
1525
1526 * xcoffexec.c (vmap_exec): Don't assume .text and .data are the
1527 first two sections.
1528
d5e88583
PB
1529Fri May 8 11:42:15 1992 Per Bothner (bothner@rtl.cygnus.com)
1530
1531 * mipsread.c (parse_procedure): Return rather than using
1532 uninitialized variable 'b'.
1533
0defac02 1534Fri May 8 07:48:27 1992 Stu Grossman (grossman at cygnus.com)
9b98dea2 1535
aa942355
SG
1536 * Makefile.in, remote-udi.c, remote-vx.c, 29k-share/dfe/mini2udi.c,
1537 29k-share/dfe/yank.c, vx-share/xdr_ptrace.c, vx-share/xdr_regs.c:
1538 Remove -I29k-share, -Ivx-share from Makefile.in. Make #includes
1539 relative to each source file.
1540
0defac02
SG
1541Fri May 8 07:48:27 1992 K. Richard Pixley (rich@cygnus.com)
1542
9b98dea2 1543 * Makefile.in: propogate INSTALL, INSTALL_DATA, INSTALL_PROGRAM on
0defac02 1544 recursions.
9b98dea2
RP
1545
1546Thu May 7 10:00:52 1992 Stu Grossman (grossman at cygnus.com)
1547
1548 * am29k-pinsn.c: Use new opcode table in "opcode/a29k.h".
1549 * am29k-tdep.c: Update to latest code from AMD.
1550 (get_saved_register) don't crap out if no frame.
1551 * remote-udi.c: Set/clear inferior_pid as appropriate.
1552 (udi_open) call target_preopen, don't close fd 0!!!, clean up
1553 error handling. Fixup end-of-debugging messages.
1554 (udi_fetch_registers) clean up big time, mainly don't multiply
1555 register_valid indices by 4, and use proper Offset when reading
1556 gr96-gr127. (udi_store_registers) general cleanup.
1557 (fetch_register) cleanup, simplify. (regnum_to_srnum)
1558 INT_REGNUM->INTE_REGNUM.
1559 * tm-29k.h: Upgrade to latest code from AMD.
1560 * 29k-share/udi/udip2soc.c: Get rid of useless errmsg_m macro.
1561 (UDIConnect) Clean up error processing (like, don't do exit() if
1562 execlp fails), make code restartable, make more attractive.
1563 (UDIStop) Use SIGINT instead of SIGUSR1, as isstip won't stop
1564 otherwise.
1565
ba2c9027
PB
1566Wed May 6 14:34:18 1992 Per Bothner (bothner@rtl.cygnus.com)
1567
1568 * tm-irix3.h: Re-define CPLUS_MARKER to '.'.
1569 * xm-rs6000.h, tm-rs6000.h: Move re-definition of CPLUS_MARKER
1570 from former to latter.
1571
55b3ef9a
FF
1572Wed May 6 14:12:35 1992 Fred Fish (fnf@cygnus.com)
1573
1574 * cplus-dem.c (do_args): Handle void args the same as others.
1575 * objfiles.c (free_objfile): Only try to unmap files when
1576 reusable objfiles are supported.
1577 * valprint.c (type_print_varspec_suffix): Add parameter that
1578 specifies if C++ demangling included function arguments. Use
1579 it to suppress printing extra pair of ()'s.
1580 * valprint.c (type_print_1): Fix problem with printing demangled
1581 C++ function types where demangled type includes the function
1582 args.
1583
8f793aa5
FF
1584Tue May 5 11:10:27 1992 Fred Fish (fnf@cygnus.com)
1585
1586 * Makefile.in (DEMANGLER): Define and default to cplus-dem.
1587 Allows selection of C++ demangler to be a configuration option
1588 until multiple demanglers are supported.
1589 * demangle.h: New include file for extended demangler support.
1590 * breakpoint.c, gdbtypes.c, printcmd.c, stack.c, symtab.c,
1591 utils.c, valprint.c: Include "demangle.h" and change all calls
1592 to cplus_demangle() or fputs_demangled() to use individual
1593 demangling options.
1594 * valprint.c (type_print_1): Change options to cplus_demangle
1595 to print demangled function args. Still broken, but now less so.
1596 * cplus-dem.c: Include demangle.h, reorganize and update some
1597 comments to reflect reality.
1598 * cplus-dem.c (cplus_demangle, cplus_mangle_opname): Change
1599 second arg from fixed integer to bit based multiple options.
1600 * cplus-dem.c (optable): Reformat and replace ansi members with
1601 bit based options.
1602 * cplus-dem.c (do_type): Fix bug with parsing missing return type.
1603
6fab5bef
JG
1604Mon May 4 22:26:59 1992 John Gilmore (gnu at cygnus.com)
1605
1606 * values.c (set_internalvar): Force evaluation of lazy values.
1607 Bug reported by RMS.
1608
4db8e515
FF
1609Sun May 3 15:47:45 1992 Fred Fish (fnf@cygnus.com)
1610
1611 * Makefile.in (VERSION): Bump to 4.5.2.
1612 * Makefile.in (DEMANGLE_OPTS): Add, default to -Dnounderscore.
1613 * configure.in: Simplify ncr3000 gdb_host logic, add gdb_target.
1614 * dwarfread.c (struct_type): Apply fix from Peggy Fieland for
1615 proper handling of bit fields.
1616 * gdbtypes.h (struct type): Clarify use of field.bitpos.
1617 * symtab.h: Fix couple of misspellings in comments.
1618 * value.h (struct value): Clarify use of bitpos.
1619 * value.h (unpack_field_as_long): Change prototype, returns
1620 LONGEST.
1621 * values.c (unpack_field_as_long): Change return type to LONGEST,
1622 sign extend unpacked fields that are signed, other rewriting.
1623 * config/ncr3000.mt: New target config file.
1624
ea1549b3
JG
1625Fri May 1 01:53:26 1992 John Gilmore (gnu at cygnus.com)
1626
fcdb113e
JG
1627 * utils.c (printchar): Print 0x7F and 0x80-0x9F in \nnn notation
1628 even when printing 8-bit characters.
1629
ea1549b3
JG
1630 * gdbtypes.c (make_{reference,pointer,function}_type): New
1631 functions which handle overwriting of forward-referenced types
1632 for stabs file reading.
1633 (lookup_{reference,pointer,function}_type): These just call
1634 the make_*_type functions with a null storage alloc parameter.
1635 * gdbtypes.h (make_{reference,pointer,function}_type): Declare.
1636 * xcoffread.c (smash_to_pointer_type): Remove, no longer used.
1637
1638 * buildsym.c (dbx_lookup_type): Zero result for (-1,-1) arg.
1639 (dbx_alloc_type): Make it easier to understand. No funct change.
1640 (define_symbol: 't'): Don't put the typedef name into the name of
1641 the struct, union, or enum. Bugfix.
1642 (read_type: '*', '&', 'f'): Add comments. Use make_XXX_type
1643 routines to properly handle overwriting preallocated types so that
1644 forward references will work.
1645 (read_enum_type): Force enum values to file scope, due to bug in
1646 Sun compiler output. FIXME, fix later.
1647
1648 Remove unused header_file_prev_index mechanism. It was already
1649 obsolete in gdb-3.5. These comments appeared in 3.5:
1650 /* This code was used before I knew about the instance codes.
1651 My first hypothesis is that it is not necessary now
1652 that instance codes are handled. */
1653 * dbxread.c (add_new_header_file): Remove header_file_prev_index.
1654 * buildsym.h: Remove it and prev_index that saves it.
1655 * buildsym.c (push_subfile, pop_subfile, start_symtab): Remove it.
1656
1657 * solib.c (special_symbol_handling): When called from core files,
1658 must set up debug_addr. Don't print error messages, just return.
1659 * symmisc.c (print_symbol): Less ascii diarrhea for enums, please.
1660
f536aa39
PB
1661Wed Apr 29 15:26:51 1992 Per Bothner (bothner@rtl.cygnus.com)
1662
1663 * cplus-dem.c: Allow nested class names (as in
1664 Foo::Bar::method()).
1665 Allow the cleaner cfront style of nested class names
1666 (Q2_3Foo3Bar as well as Q23Foo3Bar).
1667 Make cplus_demangle re-entrant by removing use of global
1668 variables. Instead, place all shared variables in a
1669 stack-allocated structure, and pass around its address.
1670
72b1aa30
SG
1671Fri Apr 24 07:41:19 1992 Stu Grossman (grossman at cygnus.com)
1672
9e91f617
SG
1673 * Makefile.in (make-proto-gdb-1): 1st cut at packaging
1674 29k-share/* subdirs...
1675
54847287
SG
1676 * remote-udi.c (udi_insert/remove_breakpoint): Completely
1677 rewrite, only leave out the bugs.
1678
0857b46a
SG
1679 * Makefile.in: Add 29k/UDI support. Improve depend.
1680 * .Sanitize, alldeps.mak, configure.in, depend: Add 29k/UDI support.
1681
07df4831
SG
1682 * am29k-tdep.c: Update to use new calling conventions, and misc
1683 symbol elements.
1684
72b1aa30
SG
1685 * m68k-pinsn.c (print_insn_arg): Make branch offsets be signed.
1686
c8094777
FF
1687Thu Apr 23 18:43:17 1992 Fred Fish (fnf@cygnus.com)
1688
66a8a9b4
SG
1689 * tm-29k.h: Set DECR_PC_AFTER_BREAK to 0, as 29ks have nice
1690 breakpoint instructions that leave PC pointing at the right place.
1691
c8094777
FF
1692 * core.c (core_open): Call warning() to print warnings.
1693
35a25840
SG
1694Wed Apr 22 09:55:42 1992 Stu Grossman (grossman at cygnus.com)
1695
1696 * symtab.c (lookup_symbol): Need to check if msymbol->name is
1697 NULL, as ALL_MSYMBOLS will never return a NULL msymbol pointer.
1698 This prevents a crash when trying to lookup the value of a
1699 non-existent symbol.
1700
4ace50a5
FF
1701Wed Apr 22 09:42:15 1992 Fred Fish (fnf@cygnus.com)
1702
1703 * signame.c, signame.h: Remove, replaced by strsignal.c in
1704 libiberty.
1705 * i960-tdep.c, infrun.c, mach386-xdep.c, procfs.c, sparc-tdep.c,
1706 sun386-xdep.c: Remove include of signame.h
1707 * Makefile.in (SFILES_MAINDIR): Remove signame.c
1708 * Makefile.in (HFILES): Remove signame.h
1709 * Makefile.in (OBS): Remove signame.o
1710 * defs.h (safe_strerror, safe_strsignal, strerrno, strsigno,
1711 errno_max, signo_max, strtoerrno, strtosigno, strsignal,
1712 psignal, perror): Add prototypes.
1713 * defs.h, xm-apollo68v.h, xm-ultra3.h (SYS_SIGLIST_MISSING):
1714 Remove define.
1715 * depend: Manually remove signame.[cho] references.
1716 * convex-tdep.c (subsig_name): Replace use of sys_siglist with
1717 strsignal.
1718 * convex-xdep.c (core_file_command): Replace use of sys_siglist
1719 with safe_strsignal.
1720 * core.c (core_open): Replace use of sys_siglist with
1721 safe_strsignal.
1722 * core.c (memory_error): Replace use of sys_errlist with
1723 safe_strerror.
1724 * i960-tdep.c (print_fault): Replace use of sys_siglist with
1725 safe_strsignal.
1726 * infcmd.c (program_info): Replace use of sys_siglist with
1727 safe_strsignal.
1728 * infrun.c (signal_stop, signal_print, signal_program):
1729 Allocate dynamically based on dynamic determination of number
1730 of signals to support.
1731 * infrun.c (child_create_inferior): Replace use of sys_errlist
1732 with safe_strerror.
1733 * infrun.c (wait_for_inferior): Replace use of sys_siglist with
1734 safe_strsignal.
1735 * infrun.c (sig_print_info): Replace use of sig_abbrev with
1736 strsigno and sys_siglist with safe_strsignal.
1737 * infrun.c (handle_command): Call signo_max to find number of
1738 signals. Replace sig_number with strtosigno and sig_abbrev with
1739 strsigno.
1740 * infrun.c (signals_info): Replace sig_number with strtosigno.
1741 * infrun.c (_initialize_infrun): Call signo_max to find number of
1742 signals. Dynamically allocate signal_{stop,print,program}.
1743 * procfs.c (errno_table): Remove, now in libiberty/strerror.c.
1744 * procfs.c (errnoname): Add function and prototype.
1745 * procfs.c (info_proc_siginfo): Call errnoname, replace use
1746 of sys_siglist with safe_strsignal.
1747 * procfs.c (info_proc_stop, info_proc_signals): Replace use of
1748 sys_siglist with safe_strsignal.
1749 * procfs.c (info_proc_stop): Call errnoname.
1750 * procfs.c (signalname): Replace sig_abbrev with strsigno.
1751 * stuff.c (main, get_offset): Replace use of sys_errlist with
1752 strerror.
1753 * sun386-xdep.c (core_file_command): Replace use of sys_siglist
1754 with safe_strsignal.
1755 * umax-xdep.c (core_file_command): Replace use of sys_siglist
1756 with safe_strsignal.
1757 * utils.c (safe_strerror, safe_strsignal): Add functions that
1758 call strerror and strsignal respectively, and deal with NULL
1759 returns.
1760 * utils.c (perror_with_name, print_sys_errmsg): Replace use of
1761 sys_errlist with safe_strerror.
1762 * valprint.c (val_print): Replace use of sys_errlist with
1763 safe_strerror.
1764
6e6bf7f2
RP
1765Tue Apr 21 12:00:47 1992 K. Richard Pixley (rich@cygnus.com)
1766
1767 * Makefile.in: rework CFLAGS so that they can be set from the
1768 command line to make. CFLAGS -> INTERNAL_CFLAGS.
1769 USER_CFLAGS -> CFLAGS. Remove MINUS_G. Default CFLAGS to -g.
1770 Pass CFLAGS on recusions.
1771
1772Fri Apr 17 19:25:57 1992 Fred Fish (fnf@cygnus.com)
1773
1774 * gdbtypes.h, c-exp.y, m2-exp.y, mipsread.c, gdbtypes.c: Back
1775 out of change on 4/14/92 and remove TYPE_FLAG_FUND_TYPE. It was
1776 overkill for the problem it solved.
1777 * valprint.c (type_print_base): Remove TYPE_FLAG_FUND_TYPE test
1778 and default to simply printing type names as appropriate.
1779 * main.c (main): Remove one of the leading newlines from
1780 warning_pre_print initialization.
1781 * objfiles.c (open_existing_mapped_file): Add function and
1782 prototype.
1783 * objfiles.c (open_mapped_file): Rewrite to use new function
1784 open_existing_mapped_file.
1785
b0c8c726
JG
1786Thu Apr 16 23:50:12 1992 John Gilmore (gnu at cygnus.com)
1787
1788 * sun3-xdep.c (fetch_core_registers): Lint.
1789 * tm-sun3.h: Prototype lint.
1790 * value.h: Typo.
1791
2d6d969c
FF
1792Thu Apr 16 19:56:50 1992 Fred Fish (fnf@cygnus.com)
1793
1794 * dwarfread.c (TARGET_FT_POINTER_SIZE, TARGET_FT_LONG_SIZE):
1795 Define using TARGET_PTR_BIT and TARGET_LONG_BIT for now.
1796 * objfiles.c: Cast calls to close() with unused returns to void.
1797 * objfiles.c (allocate_objfile): Initialize objfile's mmfd, free
1798 old objfile's name before updating it.
1799 * objfiles.c (free_objfile): Major rewrite for mapped objfiles.
1800 * objfiles.h (objfile struct): Add mmfd member.
1801 * symfile.c (syms_from_objfile): Move some code to
1802 new_symfile_objfile.
1803 * symfile.c (new_symfile_objfile): Add new function, common code
1804 from syms_from_objfile.
1805 * symfile.c (symbol_file_add): Call new_symfile_objfile for both
1806 mapped and unmapped symbol files.
1807 * symfile.c (symbol_file_command): Print "No symbol file now"
1808 message, ala exec_file_command for the exec file.
1809 * symfile.h (new_symfile_objfile): Add prototype.
1810 * xcoffexec.c (map_vmap): Add call to new_symfile_objfile.
1811 * xcoffsolib.c (solib_add): Add call to new_symfile_objfile.
1812
d453b386
PB
1813Thu Apr 16 18:26:34 1992 Per Bothner (bothner@cygnus.com)
1814
1815 * rs6000-pinsn.c: New version from IBM (Metin).
1816 * m2-exp.y: Re-write string initializers ("<>" => {'<', '>'})
1817 to avoid warnings from some compilers.
1818
4a11eef2
FF
1819Tue Apr 14 22:33:55 1992 Fred Fish (fnf@cygnus.com)
1820
1821 * gdbtypes.h (FT_FIXED_DECIMAL, FT_FLOAT_DECIMAL): Add defines.
1822 * gdbtypes.h (TYPE_FLAG_FUND_TYPE): Add define for bit in a
1823 type's flag word that marks it as a fundamental type.
1824 * c-exp.y (_initialize_c_exp): Add TYPE_FLAG_FUND_TYPE bit to
1825 flags argument for all calls to init_type().
1826 * m2-exp.y (_initialize_m2_exp): Add TYPE_FLAG_FUND_TYPE bit to
1827 flags argument for all calls to init_type(). Also remove
1828 dependency on host sizes for ints, floats, etc.
1829 * mipsread.c (_initialize_mipsread): Add TYPE_FLAG_FUND_TYPE bit to
1830 flags argument for all calls to init_type(). Also remove
1831 dependency on host sizes for ints, floats, etc.
1832 * gdbtypes.c (lookup_fundamental_type): Add TYPE_FLAG_FUND_TYPE
1833 bit to flags argument for all calls to init_type(). Add types
1834 FT_FIXED_DECIMAL and FT_FLOAT_DECIMAL.
1835 * valprint.c (unsigned_type_table, signed_type_table,
1836 float_type_table): Remove.
1837 * valprint.c (type_print_base): Test new TYPE_FLAG_FUND_TYPE
1838 bit when printing fundamental types, and print the actual name
1839 for such types, rather than inventing one. Remove code that
1840 invented fundamental type names.
1841 * valprint.c (_initialize_valprint): Remove initializations
1842 for now removed unsigned_type_table, signed_type_table, and
1843 float_type_table.
1844
35a25840
SG
1845Tue Apr 14 14:30:46 1992 Stu Grossman (grossman at cygnus.com)
1846
1847 * remote-vx.c, vx-share/xdr_ptrace.c, vx-share/xdr_ptrace.h,
1848 vx-share/xdr_rdb.h: Update for new remote protocol under VxWorks
1849 5.0.2.
1850
13b5a7ff
FF
1851Mon Apr 13 20:59:21 1992 Fred Fish (fnf@cygnus.com)
1852
1853 * dwarfread.c (target_to_host): New function similar to previous
1854 swapin function.
1855 * dwarfread.c (SWAPIN, swapin): Remove macro and support function.
1856 Extensive changes to convert all previous usages to use new
1857 target_to_host() function.
1858 * dwarfread.c (struct dieinfo): Change types of most integral
1859 members to be unsigned.
1860
3bc82410
JG
1861Mon Apr 13 15:59:10 1992 John Gilmore (gnu at cygnus.com)
1862
1863 * WHATS.NEW: Revise -mapped doc.
1864
817bc7b8
JG
1865Sat Apr 11 23:14:36 1992 John Gilmore (gnu at cygnus.com)
1866
1867 * mipsread.c (parse_partial_symbols): Complain when sh->index is
1868 too high or when skipping `forwards' moves us backwards.
1869 (parse_type): Print mis-guessed tag name in complaint.
1870 (parse_external): Eliminate cur_stab and obscure top_stack clobbers.
1871 (parse_procedure): Do not attempt to create symbols; just fill in
1872 the SYMBOL_VALUE field of a .gdbinfo. symbol if we can find one.
1873 (psymtab_to_symtab_1): Split up `stabs' from `native ecoff' code
1874 for clarity. Set top_stack before calling parse_external. In
1875 stabs, sort symbols before calling parse_procedure.
1876 * mipsread.c: Lint.
1877 * symmisc.c (std_in, std_out, std_err): Add vars to access std
1878 FILE *'s when debugging GDB (e.g. as args to dump_symtab).
1879 * Makefile.in: Remove stage* targets. Avoid echo on recursive
1880 makes. Eliminate doc/Makefile from tar.Z file if doc/Makefile.in
1881 exists.
1882
554d1be4
JG
1883Fri Apr 10 23:47:37 1992 John Gilmore (gnu at cygnus.com)
1884
44d835be 1885 * Makefile.in (VERSION): Set to 4.5.1.
554d1be4
JG
1886 * xcoffread.c (NO_TYPEDEFS): Fix typo in commented-out #define.
1887 * sparc-tdep.c (supply_gregset, fill_gregset, supply_fpregset,
1888 fill_gregset): New functions for SVR4 /proc support.
44d835be
JG
1889 * mipsread.c: Cleanup. Add more complaints for unhandled cases.
1890 Remove new symbol types and such to ../include/coff/symconst.h.
1891 (parse_symbol): Simplify code for parsing struct/enum/unions.
1892 (parse_type): Handle `long long' types.
1893 (upgrade_type): Handle `const' qualifier.
1894 (parse_partial_symbols): fix indentation, clean a bit.
554d1be4 1895
6e706950
FF
1896Fri Apr 10 22:41:03 1992 Fred Fish (fnf@cygnus.com)
1897
95967e73
FF
1898 * dwarfread.c (SWAPIN,swapin): New macro and function to call to
1899 copy in data from raw read buffers, calling bfd byteswapping
1900 routines as appropriate. Use to replace most existing memcpy
1901 calls.
1902 * dwarfread.c (basicdieinfo, completedieinfo): Add objfile arg.
6e706950
FF
1903 * configure.in: Recognize new ncr3000 config.
1904 * config/ncr3000.mh: New config file.
1905
601836ef
SG
1906Fri Apr 10 08:30:58 1992 Stu Grossman (grossman at cygnus.com)
1907
6e706950
FF
1908 GDB-4.5 release!
1909
1910 * README: Update for release.
b69ce5ab
SG
1911 * Makefile.in: Update version to 4.5.
1912 * WHATS.NEW: The obvious.
1913
ece32565
SG
1914 * depend: Generate new depend file for this release.
1915
601836ef
SG
1916 * Makefile.in (depend): Fix dependancy generation so that it does
1917 not include gcc 'fixincluded' files, which are usually in a system
1918 specific location.
1919
9b6f92db
PB
1920Thu Apr 9 13:35:00 1992 Per Bothner (bothner@rtl.cygnus.com)
1921
1922 Changes from metin@ibmpa.awdpa.ibm.com (Metin G. Ozisik).
1923 * buildsym.c (#ifdef RS6000_TARGET): Don't create unnecessary
1924 symbols for nameless types. And, handle `R' (register parameter
1925 type) for AIX. (an extension to existing stabstring grammar).
1926 * rs6000-xdep.c: Fix typo (= should have been ==).
1927
7fe388ad
SG
1928Thu Apr 9 12:10:06 1992 Stu Grossman (grossman at cygnus.com)
1929
1930 * Makefile.in: version=4.4.88, add xm-vax.h to HFILES.
1931
9e53d9dc
JG
1932Thu Apr 9 02:29:03 1992 John Gilmore (gnu at cygnus.com)
1933
1934 * xm-sun4os5.h (DO_DEFERRED_STORES, CLEAR_DEFERRED_STORES): Zap.
1935 * signame.c (SIGWAITING, SIGLWP): Add.
1936
6fba3d7c
PB
1937Tue Apr 7 16:34:07 1992 Per Bothner (bothner@cygnus.com)
1938
56619803 1939 * xm-i386mach.h: add decls for errno and strdup().
ff1e35cb 1940
6fba3d7c
PB
1941 * breakpoint.c (breakpoint_1): Add (int) casts for enums
1942 used in array index context (otherwise, some compilers barf).
1943
628c6d3b
SG
1944Tue Apr 7 08:45:46 1992 Stu Grossman (grossman at cygnus.com)
1945
e05ba37d
SG
1946 * m68k-tdep.c, tm-sun3.h: #ifdef around get_longjmp_target().
1947 Change def of SAVED_PC_AFTER_CALL to call routine to see if we are
1948 in a system call, and provide better backtrace if so.
1949
1f415ae7 1950 * Makefile.in (HFILES): Add xcoffsolib.h.
c994feb6 1951 * rs6k-opcode.h: Move to ../include/opcode/rs6k.h.
2741887b 1952 * rs6000-pinsn.c: #include "opcode/rs6k.h"
c994feb6 1953
96c19d0f
SG
1954 * mipsread.c (read_mips_symtab, read_the_mips_symtab,
1955 mipscoff_symfile_read): Convert to BFD to do file I/O.
1956
c1bde665
SG
1957 * symfile.c: #include <ctype.h> to get proper def if isspace().
1958
628c6d3b
SG
1959 * i386-tdep.c (get_longjmp_target): #ifdef GET_LONGJMP_TARGET.
1960
ad142b8e
PB
1961Mon Apr 6 17:25:45 1992 Per Bothner (bothner@cygnus.com)
1962
1963 * mipsread.c: Create a .gdbinfo pseudo-symbol for each
1964 function also when parsing embedded stabs.
1965
ce9260ae
SG
1966Mon Apr 6 15:25:03 1992 Stu Grossman (grossman at cygnus.com)
1967
391ca579
SG
1968 * mipsread.c: Fix more declarations.
1969
e5578a31
SG
1970 * mipsread.c: Fix many invocations of complain. Use enum
1971 type_code where appropriate.
41bd448e 1972
995e7f86
SG
1973 * xm-vaxult.h: Add decl for strdup().
1974
ce9260ae
SG
1975 * Makefile.in: Add dependancies for xm-vaxbsd.h and xm-vaxult.h
1976 for xm-vax.h.
1977
b2de19e3
SG
1978Fri Apr 3 17:41:29 1992 Stu Grossman (grossman at cygnus.com)
1979
1980 * buildsym.h, dbxread.c, mipsread.c: Add objfile arg to
1981 process_one_symbol.
1982
556f3d90
PB
1983Fri Apr 3 12:17:14 1992 Per Bothner (bothner@cygnus.com)
1984
1985 * munch: Must pre-pend "_" to "initialize" for SYSV style nm.
1986 * tm-rs6000.h, xcoffexec.c, xcoffread.c, xm-rs6000.h:
1987 Merge in more patches for rs6000 from Metin Ozisik.
1988 * utils.c: Fix typo in comment.
1989
d65eee73
FF
1990Fri Apr 3 11:23:03 1992 Fred Fish (fnf@cygnus.com)
1991
1992 * procfs.c (procinfo struct): Add nopass_next_sigstop member.
1993 * procfs.c (attach): Set nopass_next_sigstop if attached
1994 process is forcibly stopped.
1995 * procfs.c (child_resume): Use nopass_next_sigstop to suppress
1996 resending SIGSTOP to attached process on first resume.
1997
239e7ee9
SG
1998Fri Apr 3 01:37:26 1992 Stu Grossman (grossman at cygnus.com)
1999
2000 * Makefile.in (SFILES_MAINDIR): add mipsread.c
2001
e10a3052
JG
2002Thu Apr 2 20:20:54 1992 John Gilmore (gnu at cygnus.com)
2003
2004 * Makefile.in (OBS): Compile mipsread.c for all targets now.
2005 (VERSION): Bump to 4.4.85.
2006 * mipsread.c: Update for new include files. Lint.
2007 * tm-irix3.h, tm-mips.h: Use new include files for ECOFF symtab.
2008 * config/{bigmips.mt, littlemips.mt, irix3.mt, decstation.mt}:
2009 Don't need to bring in mipsread.o specially any more.
2010
4ad1963e
SG
2011Thu Apr 2 19:38:31 1992 Stu Grossman (grossman at cygnus.com)
2012
2013 * mipsread.c (fixup_sigtramp): Also look for _sigtramp as a real
2014 routine (for Irix-4.x). Make many funcs static and void.
2015 * mips-tdep.c (mips-frame-chain): Clean up, simplify.
2016 * (init_extra_frame_info): Don't trash cached value of frame
2017 pointer register. This fixes backtracing through routines that use
2018 alloca(). Generally clean up declarations of functions, and use
2019 typedefs and macros to reference data structures as appropriate.
2020 * tm-irix3.h, tm-mips.h (EXTRA_FRAME_INFO): use proper type for
2021 proc_desc element.
2022
5c1c5e67
FF
2023Thu Apr 2 09:47:11 1992 Fred Fish (fnf@cygnus.com)
2024
2025 * values.c (unpack_long): Fix unpacking error for signed chars
2026 on hosts where the default character type is unsigned.
2027 * procfs.c (pr_flag_table, pr_why_table): Add some entries
2028 for newer SVR4 variants.
2029 * procfs.c (proc_set_exec_trap): Reorder tests for ioctl's that
2030 turn off trace inherit-on-fork flag to favor latest SVR4 method.
2031 * procfs.c (mappingflags): Add support for MA_PHYS
2032
ac88ca20
JG
2033Thu Apr 2 00:55:56 1992 John Gilmore (gnu at cygnus.com)
2034
03c93c66
JG
2035 * buildsym.c (read_struct_type): Avoid coredump when C++
2036 abbreviated type name is messed up. Reported by Joe Buck.
2037 FIXME, we need to determine whether GDB or GCC needs to be
2038 smarter to correctly locate this type name.
2039
ac88ca20
JG
2040 * c-exp.y, coffread.c, command.c, command.h, copying.awk,
2041 dbxread.c, gdbtypes.c, infcmd.c, inferior.h, infrun.c,
2042 m2-exp.y, printcmd.c, remote.c, solib.c, source.c, stack.c,
2043 symtab.c, tm-sun4os4.h, tm-sun4os5.h, values.c: Lint.
2044 * symfile.c (add_symbol_file_command): Initialize mapped/readnow.
2045
cc221e76
FF
2046Wed Apr 1 11:39:52 1992 Fred Fish (fnf@cygnus.com)
2047
2048 * breakpoint.h (bpdisp, bptype): Remove trailing comma.
2049 * symtab.h (current_source_symtab): Make extern
2050 * symtab.h (current_source_line): Make extern
2051 * inferior.h: Move all procfs.c prototypes to one place, add
2052 prototype for proc_signal_handling_change. Add prototypes for
2053 signal_stop_state, signal_print_state, and signal_pass_state.
2054 * inferior.h (stop_soon_quietly): Make extern
2055 * inferior.h (attach_flag): Make extern
2056 * infrun.c (NOTICE_SIGNAL_HANDLING_CHANGE): Default is null.
2057 * infrun.c (signal_stop_state, signal_print_state,
2058 signal_pass_state): New functions to query specific signal
2059 handling flags.
2060 * infrun.c (handle_command): Minor error message change, add
2061 NOTICE_SIGNAL_HANDLING_CHANGE.
2062 * procfs.c (open_proc_file): Remove iris specific reset of
2063 inherit-on-fork flag, moved to proc_set_exec_trap().
2064 * procfs.c (proc_set_exec_trap): Add SVR4 and iris code
2065 to reset inherit-on-fork flag, bash comment to GNU form.
2066 * procfs.c (proc_base_address, set_proc_siginfo,
2067 fetch_core_registers): Conform to code style.
2068 * procfs.c (signame.h): Include.
2069 * procfs.c (MAX_SYSCALLS, syscall_table[], init_syscalltable(),
2070 syscallname(), info_proc_syscalls()): New macros, tables, and
2071 functions to organize and report system call information.
2072 * procfs.c (saved_fltset, saved_trace, saved_sighold,
2073 saved_exitset, saved_entryset): Add to procinfo struct.
2074 * procfs.c (struct trans): Add.
2075 * procfs.c (pr_flag_table, pr_why_table, faults_table,
2076 siginfo_table, errno_table): Tables to translate numeric values
2077 to symbolic names and short descriptions.
2078 * procfs.c (signalname, info_proc_signals): Add function and
2079 prototype.
2080 * procfs.c (proc_info): Now info_proc.
2081 * procfs.c (proc_info_address_map): Now info_proc_mappings.
2082 * procfs.c (info_proc_flags, info_proc_stop, info_proc_siginfo,
2083 info_proc_faults, lookupname, lookupdesc, sigcodename,
2084 sigcodedesc): New functions.
2085 * procfs.c (proc_signal_handling_change): New function to set
2086 the trace flags based on the state of gdb's signal handling flags.
2087 * procfs.c (inferior_proc_init): Call proc_signal_handling_change
2088 and remove code to do PIOCSTRACE ioctl.
2089 * procfs.c (attach, detach): Preserve and restore process flags
2090 using saved_* fields in procinfo struct.
2091 * procfs.c (attach): Call proc_signal_handling_change.
2092 * procfs.c (info_proc): Major rework to expand "info proc" cmd.
2093 * procfs.c (proc_desc): Update for latest changes.
2094 * xm-irix4.h (CREATE_INFERIOR_HOOK): Protect by USE_PROC_FS.
2095 * xm-irix4.h (NOTICE_SIGNAL_HANDLING_CHANGE): Add definition.
2096 * xm-sysv4.h (NOTICE_SIGNAL_HANDLING_CHANGE): Add definition.
2097
2098Tue Mar 31 18:38:28 1992 Fred Fish (fnf@cygnus.com)
2099
2100 * procfs.c (set_proc_siginfo): Add prototype and new function.
2101 * procfs.c (detach, child_resume): Call set_proc_siginfo to set
2102 up inferior siginfo struct.
2103 * elfread.c (elf_symfile_read): Compute the relocation amount
2104 by subtracting off the address of the ".text" section.
2105 * solib.c: Add pointer to ".text" section to so_list struct.
2106 * solib.c (solib_map_sections): Initialize pointer to ".text"
2107 section in so_list struct.
2108 * solib.c (symbol_add_stub): Pass base address of ".text"
2109 section to symbol_file_add, rather than the load address of
2110 the shared library. On SunOS they are the same. On SVR4 they
2111 are not.
2112
3bec9cdd
SG
2113Tue Mar 31 17:48:15 1992 Stu Grossman (grossman at cygnus.com)
2114
2115 * mipsread.c (parse_procedure): PDR.isym should get pointer to
2116 function name, not .gdbinfo. symbol.
2117
e360572c
JG
2118Tue Mar 31 17:05:04 1992 John Gilmore (gnu at cygnus.com)
2119
2120 * breakpoint.c (breakpoint_1): Fix prototype, this time for sure!
2121
fad3fc94
SG
2122Tue Mar 31 11:01:06 1992 Stu Grossman (grossman at cygnus.com)
2123
e360572c 2124 * Makefile.in (VERSION): 4.4.8
5e8fdb82 2125
fad3fc94
SG
2126 * procfs.c (open_proc_file): Disable inherit-on-fork flag so that
2127 commands in .cshrc/.profile won't get traced.
2128
3b0b9220
JG
2129Tue Mar 31 08:11:58 1992 John Gilmore (gnu at cygnus.com)
2130
2131 * elfread.c (elf_symtab_read): Use xmalloc, not bfd_xmalloc.
2132 * exec.c (build_section_table): Don't abort if no sections.
2133 * sparc-tdep.c (single_step): Lint.
2134 * utils.c (mrealloc): Handle realloc (0, size) case here.
2135
d1bb1d41
SG
2136Mon Mar 30 16:50:43 1992 Stu Grossman (grossman at cygnus.com)
2137
f8b4aa8e
SG
2138 * Makefile.in (alldeps.mak): Config files are now *.m[ht] as
2139 opposed to m[ht]-*!
2140
9d4c62df
SG
2141 * config/irix4.mh: Don't use coredep.o. It doesn't work with procfs.
2142
d1bb1d41
SG
2143 * mipsread.c (parse_symbol, parse_procedure): Re-do the way that
2144 .gdbinfo. symbols are created. Move creation from parse_procedure
2145 to parse_symbol, where it is fairly easy to grow the symtab. This
2146 also fixes a symtab trashing bug on all mips-based systems.
2147 * (got_numargs, lookup_numargs, free_numargs): Delete. Not
2148 needed anymore.
2149 * tm-mips.h, tm-iris3.h, mips-tdep.c, mipsread.c: Re-do struct
2150 mips_extra_func_info, and all the PROC_xxx macros that look at it.
2151
d26b50b7
PB
2152Mon Mar 30 14:17:53 1992 Per Bothner (bothner@cygnus.com)
2153
2154 * c-exp.y: Add missing return type to yyparse() prototype.
2155
be772100
JG
2156Sat Mar 28 22:22:06 1992 John Gilmore (gnu at cygnus.com)
2157
2158 Create and use macros for iterating on symtabs, psymtabs, msymbols.
2159
2160 * minsyms.c (iterate_over_msymbols): Remove; clunky and slow.
2161 * symfile.h, symtab.h (iterate_over_msymbols): Remove prototype
2162 * coffread.c (coff_symfile_read): iterate_over_symtabs => ALL_SYMTABS.
2163 (patch_opaque_types): Avoid dummy args and result.
2164 * objfiles.c (have_partial_symbols, have_full_symbols,
2165 have_minimal_symbols): explicit iteration => ALL_OBJFILES; simplify.
2166 (iterate_over_objfiles, iterate_over_symtabs,
2167 iterate_over_psymtabs): Remove, clunky and slow.
2168 * objfiles.h: Replace iterate_over_* prototypes with ALL_SYMTABS,
2169 ALL_PSYMTABS, and ALL_MSYMBOLS macros.
2170 * symmisc.c (dump_symtab, dump_psymtab, dump_msymbols,
2171 dump_objfile): Remove dummy args and results. Move filename
2172 comparisons to callers.
2173 (printsyms_command, printpsyms_command, printmsyms_command,
2174 printobjfiles_command): iterate_over_* => ALL_*. Compare filenames.
2175 * symtab.c (lookup_symtab_1, lookup_symtab, lookup_partial_symtab,
2176 lookup_symbol, find_main_psymtab, find_pc_symtab, sources_info,
2177 list_symbols, make_symbol_completion_list): Replace explicit
2178 iteration with ALL_SYMTABS, ALL_PSYMTABS, or ALL_MSYMBOLS.
2179 Eliminate Dijkstra flag crap, break out of loops with gotos.
2180 (lookup_symtab_1): Protect '/' tests from short filenames.
2181 (cplus_mangled_symbol): Move inline into lookup_symbol.
2182 * xcoffexec.c (relocate_objfile_msymbols): Remove poor hack.
2183 (relocate_minimal_symbol): Move inline to vmap_symtab.
2184 (vmap_symtab): Replace iteration with ALL_OBJFILES,
2185 iterate_over_msymbols with ALL_MSYMBOLS.
2186
2187 Misc cleanup prior to release.
2188
2189 * Makefile.in (VERSION): Roll to 4.4.7.
2190 (HFILES): Add call-cmds.h.
2191 * call-cmds.h: New header for command fns called by other files.
2192 * breakpoint.c (watchpoints_info): Remove, same as breakpoints_info.
2193 (breakpoint_1): Remove unused type arg. Change callers.
2194
2195 * dwarfread.c (dwarf_build_psymtabs): Remove mainline test.
2196 * mipsread.c (compare_symtabs, compare_psymtabs): Remove, unused.
2197 * mipsread.c: Add prototypes for all static functions.
2198
2199 * symmisc.c (dump_symtab_lines, dump_symtabs, dump_last_symtab,
2200 dump_blockvector, dump_block, dump_addrchass, dump_namespace,
2201 dump_symbol, dump_type, dump_linetable, dump_strtbl): Remove, unused.
2202 * xcoffread.c (dump_symtab_lines, dump_symtabs, dump_last_symtab,
2203 dump_blockvector, dump_block, dump_addrchass, dump_namespace,
2204 dump_symbol, dump_type, dump_linetable, dump_strtbl): Remove 2nd
2205 unused copy!
2206
2207 * buildsym.c (define_symbol): Handle global register variables
2208 (from Pierre Willard). Complain if register numbers are too large.
2209 * target.c (nomemory): Now that higher levels examine errno, give EIO.
2210 * tm-sparc.h: Don't #include <sun4/reg.h>.
2211 * sparc-tdep.c (sparc_frame_chain, frame_saved_pc): Remove
2212 dependency on <sun4/reg.h>. Start to handle cross-byte-order.
2213
2214 * language.h: Avoid forward enum declaration.
2215 * configure.in, tm-sun4os5.h, xm-sun4os5.h, config/sun4os5.mh,
2216 config/sun4os5.mt: New host and target.
2217 * defs.h (errno): #include <errno.h> rather than assuming int.
2218 From Pierre Willard.
2219
2220 * breakpoint.c, breakpoint.h, buildsym.c, coffread.c, cplus-dem.c,
2221 dbxread.c, dwarfread.c, elfread.c, infcmd.c, infrun.c, inftarg.c,
2222 language.c, main.c, mem-break.c, mips-tdep.c, mipsread.c,
2223 partial-stab.h, remote.c, saber.suppress, symfile.c, symtab.c,
2224 valops.c, valprint.c, xcoffread.c, c-exp.y, m2-exp.y, blockframe.c,
2225 command.c, core.c, exec.c, gdbtypes.h, parse.c, printcmd.c, solib.c,
2226 sparc-xdep.c, utils.c, value.h, values.c: Lint.
2227
2228Sat Mar 28 02:43:26 1992 John Gilmore (gnu at cygnus.com)
2229
2230 * buildsym.c (read_range_type): Avoid int overflow by using unsigned.
2231 * dbxread.c (dbx_symfile_init): Remove bogus `lvalue cast'.
2232 * language.h (enum exp_opcode): Avoid forward enum def.
2233 * main.c (define_command, user_defined_command): Lint.
2234 * mem-break.c, xcoffread.c: Lint.
2235 * solib.c: Only #include <a.out.h> on SunOS, not SVR4.
2236
1eeba686
PB
2237Sun Mar 29 14:16:22 1992 Per Bothner (bothner@cygnus.com)
2238
2239 * Merged in latest RS6000 diffs from Metin G. Ozisik.
2240 * xcoffsolib.c, xcoffsolib.h: New files, from Metin.
2241 * Various files: Changed #ifdef IBM6000 to IBM6000_HOST
2242 or IBM6000_TARGET as (approximately) appropriate.
2243
bf349b77
FF
2244Sat Mar 28 13:00:10 1992 Fred Fish (fnf@cygnus.com)
2245
2246 * objfiles.h (OBJF_SYMS): Define flag bit for objfile flags.
2247 * symfile.c (symbol_file_add): Use OBJF_SYMS to decide whether
2248 or not to try reading symbols from a mapped objfile. Plugs memory
2249 leak due to shared libraries generating no psymtabs or symtabs.
2250
c2e4669f
JG
2251Fri Mar 27 15:44:55 1992 John Gilmore (gnu at cygnus.com)
2252
2253 * buildsym.c (MAX_OF_C_TYPE, MIN_OF_C_TYPE): Unused, remove.
2254 * copying.awk: Lint. Make stronger warning at top of copying.c.
2255 * elfread.c (elf_symtab_read): Eliminate check of mainline.
2256 * gdbtypes.c (smash_to_*): Remove FIXME comments.
2257 (lookup_pointer_type): Add FIXME comment.
2258 * main.c (set_history_size_command): Disallow negative size.
2259 * partial-stab.h: Update copyright.
2260 * rs6000-tdep.c (skip_trampoline_code): Better comments.
2261
2262Wed Mar 25 10:45:38 1992 John Gilmore (gnu at cygnus.com)
2263
2264 * main.c (set_history_size_command): Negative size is error.
2265 (Reported by Peggy Fieland.)
2266
3624c875
FF
2267Thu Mar 26 17:01:18 1992 Fred Fish (fnf@cygnus.com)
2268
2269 * coffread.c (coff_symfile_init): Update comment.
2270 * dbxread.c (DBX_SYMFILE_INFO, DBX_TEXT_SECT, DBX_SYMCOUNT,
2271 DBX_STRINGTAB, DBX_STRINGTAB_SIZE, DBX_SYMTAB_OFFSET): Define
2272 macros to access the dbx specific objfile information.
2273 * dbxread.c (symfile_string_table, symfile_string_table_size):
2274 Remove these local variables.
2275 * dbxread.c (read_ofile_symtab, psymtab_to_symtab_1,
2276 read_dbx_symtab): Remove the stringtab and stringtab_size params
2277 from the function prototypes, the function definition, and the
2278 function calls. These are now available via DBX_STRINGTAB and
2279 DBX_STRINGTAB_SIZE using the objfile pointer.
2280 * dbxread.c (dbx_symfile_read): Relocate addr before using as
2281 an arg to read_dbx_symtab.
2282 * dbxread.c (dbx_symfile_read): Remove code that free'd the
2283 stringtab and the dbx specific per-objfile private info.
2284 * dbxread.c (init_psymbol_list): Remove symbol count from passed
2285 args in prototype, function definition, and function calls. It is
2286 now available via the DBX_SYMCOUNT macro using the objfile
2287 pointer.
2288 * dbxread.c (dbx_symfile_read, dbx_symfile_init): Remove the
2289 local instance of struct dbx_symfile_info and replace with DBX_*
2290 macros.
2291 * dbxread.c (dbx_symfile_read): Remove init's of now deleted
2292 symfile_string_table and symfile_string_table_size.
2293 * dbxread.c (dbx_symfile_finish): Remove now obsolete free of
2294 symfile_string_table.
2295 * dbxread.c (init_psymbol_list): Use DBX_SYMCOUNT.
2296 * dbxread.c (dbx_psymtab_to_symtab): Remove local stringtab and
2297 stringtab size variables. Remove all code that used to reread
2298 the stringtab.
2299 * objfiles.c (allocate_objfile): Move calls to init_malloc()
2300 to prior to any calls to mmalloc for the objfile specific heap.
2301 * utils.c (init_malloc): Document the requirement that for each
2302 heap for which corruption checking is desired, that init_mmalloc
2303 must be called prior to any mmalloc calls on the heap.
2304
2305Thu Mar 26 13:20:06 1992 Per Bothner (bothner@cygnus.com)
2306
2307 * rs6000-pinsn.c: Make dis-assembly output more like
2308 other targets: Don't print instruction in hex before
2309 the assembly; use print_address to print out jump
2310 destinations.
2311
04f27ddc
PB
2312Wed Mar 25 16:52:35 1992 Per Bothner (bothner@cygnus.com)
2313
2314 * c-exp.y, gdbtypes.h: Add builtin_type_signed_char.
2315 * cplus-dem.c: Support "Sc" meaning "signed char".
2316
88f36033
SG
2317Wed Mar 25 15:21:44 1992 Stu Grossman (grossman at cygnus.com)
2318
2319 * configure.in: fix iris/iris3.
2320
5c71cf23
PB
2321Wed Mar 25 14:55:48 1992 Per Bothner (bothner@cygnus.com)
2322
2323 * command.c, main.c (various places): Use ctype.h macros
2324 (such as isupper(x)), instead of hard-wiring in ASCII-isms
2325 (such as (x >= 'A' && x <= 'Z')).
2326 (There are still more of these in other files.)
2327 * main.c (defined_command): Lower-case the user's
2328 new command before entering it. Needed because
2329 command lookup is case-insensitive (and also lower-cases).
2330 (Based on Metin's earlier patch.)
2331
fd2329d7
RP
2332Tue Mar 24 23:27:01 1992 K. Richard Pixley (rich@cygnus.com)
2333
2334 * config/irix4.mh: new file.
2335
4f301966
SG
2336Tue Mar 24 14:17:48 1992 Stu Grossman (grossman@cygnus.com)
2337
0a22f63e
SG
2338 * infcmd.c (step_1): Call disable_longjmp_breakpoint at the right
2339 time.
2340
2341 * xm-mips.h: Declare strdup for ultrix.
9d53db1a 2342
4f301966
SG
2343 * mipsread.c (fixup_sigtramp): Make sure that current_objfile is setup
2344 when calling new_symbol.
2345 * mips-tdep.c (mips_frame_chain): Use symfile_objfile instead of
2346 current_objfile.
2347
5c8d3927
PB
2348Tue Mar 24 13:26:25 1992 Per Bothner (bothner@rtl.cygnus.com)
2349
2350 * config/rs6000.mh: Update (for Fred's new mmalloc)
2351 flags to disable use of GNU malloc/mmalloc.
2352 * munch: Change SYSV rule to allow .text before the label,
2353 as well as after, to work for AIX.
2354 * gdbtypes.h: Minor clarifiction.
2355
be1384b0
MT
2356Tue Mar 24 07:26:19 1992 Michael Tiemann (tiemann@cygnus.com)
2357
2358 * buildsym.c (read_struct_type): Handle cretinous dbx symbol name
2359 continuation in yet another place (between method declarations).
2360
62a469e1
SG
2361Mon Mar 23 23:01:41 1992 Stu Grossman (grossman at cygnus.com)
2362
2363 * mips-tdep.c: include symfile.h and objfiles.h to fix
2364 compilation errors.
2365
b3024b21
PB
2366Mon Mar 23 15:49:14 1992 Per Bothner (bothner@cygnus.com)
2367
2368 * valops.c (value_struct_elt_for_reference): Added 'offset'
2369 parameter to handle multiple inheritance.
2370 * eval.c, value.h: Update accordingly.
2371
5e2e79f8
FF
2372Fri Mar 20 17:43:27 1992 Fred Fish (fnf@cygnus.com)
2373
2374 * objfiles.h: New file
2375 * Makefile.in (HFILES): Add objfiles.h
2376 * blockframe.c: Remove entry_scope_lowpc, entry_scope_highpc,
2377 main_scope_lowpc, main_scope_highpc.
2378 * blockframe.c, buildsym.c, coffread.c, dbxread.c, dwarfread.c,
2379 elfread.c, gdbtypes.h, minsyms.c, mipsread.c, objfiles.c, solib.c,
2380 source.c, symfile.c, symmisc.c, symtab.c, target.c, xcoffexec.c,
2381 xcoffread.c, : Include objfiles.h.
2382 * tm-29k.h, tm-i386v.h, tm-merlin.h, tm-rs6000.h, tm-sun386.h,
2383 tm-symmetry.h, tm-tahoe.h, tm-umax.h, tm-vax.h, m88k-tdep.c,
2384 mips-tdep.c (FRAME_CHAIN): Renamed outside_startup_file to
2385 inside_entry_file() and logic changed appropriately.
2386 * blockframe.c (outside_startup_file): Renamed to
2387 inside_entry_file() and logic changed appropriately.
2388 * blockframe.c (inside_main_scope): Renamed to inside_main_func()
2389 and logic changed to use per-objfile specific fields.
2390 * blockframe.c (inside_entry_scope): Renamed to
2391 inside_entry_func() and logic changed to use per-objfile specific
2392 fields.
2393 * blockframe.c, buildsym.h, coffread.c, dwarfread.c, mipsread.c,
2394 symfile.c, mips-tdep.c (startup_file_start, startup_file_end):
2395 Remove extern decls.
2396 * symfile.c, symfile.h (entry_point): Remove extern decl.
2397 * coffread.c (coff_symfile_init): Common entry point init code
2398 moved to symfiles.c, call init_entry_point_info().
2399 * coffread.c (complete_symtab): Use new per-objfile entry info.
2400 * mip-tdep.c (mips_frame_chain): Use new per-objfile entry info.
2401 * mipsread.c (parse_partial_symbols): Use new per-objfile entry
2402 info.
2403 * dbxread.c (read_dbx_symtab): Use new per-objfile entry info.
2404 * defs.h (inside_entry_scope, outside_startup_file,
2405 inside_main_scope): Prototypes changed for renames to
2406 inside_entry_func, inside_entry_file, inside_main_func,
2407 respectively.
2408 * symfile.c (syms_from_objfile): Common entry point init code
2409 moved to init_entry_point_info() and call init_entry_point_info().
2410 * symfile.h (init_entry_point_info): Include prototype.
2411 * xcoffread.c (aixcoff_symfile_init): Common entry point init code
2412 moved to symfiles.c and call init_entry_point_info().
2413 * dwarfread.c (entry_scope_lowpc, entry_scope_highpc,
2414 main_scope_lowpc, main_scope_highpc): Remove extern decls.
2415 * dwarfread.c (read_func_scope, read_file_scope): Use new per-
2416 objfile entry info.
2417 * frame.h (FRAME_CHAIN_VALID): Provide default definition that
2418 works for the majority of targets.
2419 * tm-68k.h, tm-convex.h, tm-h8300.h, tm-i386v.h, tm-irix3.h,
2420 tm-merlin.h, tm-mips.h, tm-pyr.h, tm-rs6000.h, tm-sparc.h,
2421 tm-sun386.h, tm-tahoe.h, tm-umax.h, tm-vax.h (FRAME_CHAIN_VALID):
2422 Use default definition in frame.h.
2423 * frame.h (selected_frame_level): Make decl extern.
2424 * objfiles.c, symfile.c (current_objfile): Moved to objfiles.c
2425 * objfiles.c, symfile.c (symfile_objfile): Moved to objfiles.c
2426 * partial-stab.h: Use new per-objfile entry info.
2427 * symfile.h (struct objfile): Removed, moved to objfiles.h.
2428 * symfile.h, objfiles.h (allocate_objfile, free_objfile,
2429 free_all_objfiles, iterate_over_objfiles, iterate_over_symtabs,
2430 iterate_over_psymtabs, have_partial_symbols, have_full_symbols,
2431 have_minimal_symbols): Prototypes moved to objfiles.h.
2432 * symfile.h, objfiles.h (ALL_OBJFILES, ALL_OBJFILES_SAFE):
2433 Macros moved to objfiles.h.
2434 * tm-h8300.h, tm-i386v4.h (FRAME_CHAIN_VALID_ALTERNATE): Define.
2435
01be6913
PB
2436Thu Mar 19 18:49:45 1992 Per Bothner (bothner@cygnus.com)
2437
2438 More C++ improvements (pointers to members, qualified names).
2439 * c-exp.y: Support exp.type::name and exp->type::name
2440 syntaxes. (Unfortunately, doesn't work for static members.)
2441 * c-exp.y, eval.c: Make type::~type work better.
2442 * eval.c (evaluate_subexp: OP_SCOPE): Replace use of
2443 value_static_field by value_struct_elt_for_reference.
2444 * eval.c (evaluate_subexp): Merge code for STRUCTOP_MEMBER
2445 and STRUCTOP_MPTR; cast arg1 to domain-type of arg2.
2446 * eval.c (evaluate_subexp): Remove special case for UNOP_ADDR
2447 for OP_SCOPE operand; no point in it now that we use lazy
2448 reading of values, and use "reference to member" objects.
2449 * gdbtypes.h: Clarify comment.
2450 * valops.c: Change value_struct_elt_for_address to return
2451 a reference (or variable), rather than a pointer. Change
2452 the name to value_struct_elt_for_reference to reflect this.
2453 Returning a reference instead of a address provides a
2454 generalization, since we can use the routine for both
2455 class::name as well as &class::name.
2456 Also, recurse to handle multiple inheritance properly.
2457 * valprint.c: Moved code to print pointer-to-members
2458 to new function point_class_member. This allows a
2459 "reference-to-member" to be printed using the same code.
2460 * valprint.c (type_print_varspec_prefix): Avoid printing
2461 "struct " for domains of class-member types.
2462 * valops.c (search_struct_field): Inline code for simplified
2463 version of value_static_field (which can then be deleted).
2464 * value.h: Rename value_struct_elt_for_address to
2465 value_struct_elt_for_reference. Delete value_static_field.
2466 * values.c: Remove no longer used function value_static_field.
2467
80d68b1d
FF
2468Thu Mar 19 13:54:11 1992 Fred Fish (fnf@cygnus.com)
2469
2470 * coffread.c, mipsread.c, xcoffread.c, coffread.c, dbxread.c,
2471 elfread.c (coff_symfile_finish): Add function, prototype, and
2472 add to the xxxx_sym_fns struct for each file type. Also reformat
2473 the xxxx_sym_fns vector to a standard format and add comments.
2474 * coffread.c, mipsread.c, xcoffread.c, coffread.c, dbxread.c,
2475 elfread.c (xxx_symfile_new_init, xxx_symfile_init, xxx_symfile_read):
2476 Pass pointer to struct objfile rather than pointer to sym_fns.
2477 Change references inside each function accordingly. Allocate any
2478 symbol file specific info in the per-objfile memory region.
2479 * dbxread.c (free_and_init_header_files): Break function into
2480 free_header_files(), called from dbx_symfile_finish(), and
2481 init_header_files(), called from dbx_new_init().
2482 * dbxread.c (dbx_new_init): Move deallocation things to new
2483 dbx_symfile_finish function.
2484 * elfread.c (elf_new_init): Call buildsym_new_init().
2485 * objfiles.c (free_objfile): Call the appropriate symfile_finish()
2486 routine for the objfile before deallocating other stuff.
2487 * sparc-tdep.c (get_longjmp_target): Cast target_read_memory arg.
2488 * symfile.h: Move struct sym_fns to before struct objfile def.
2489 Add sym_finish function pointer and change prototypes of other
2490 function pointers to reflect passing struct objfile pointer rather
2491 than struct sym_fns pointer.
2492 * symfile.c: Remove now obsolete symtab_fns pointer.
2493 * symfile.c (symfile_init): Renamed to find_sym_fns, and now only
2494 locates the correct sym_fns struct for the given objfile.
2495 * symfile.c (syms_from_objfile, symbol_file_add): Restructured
2496 for better support of mapped symbol tables.
2497 * symfile.c (symbol_file_command): Remove obsolete code using
2498 symfile_fns.
2499 * symfile.h: Remove duplicate declarations for symfile_objfile,
2500 entry_point, and object_files.
2501 * target.c (target_info): Compare symfile_objfile to NULL.
2502 * xcoffread.c (aixcoff_new_init): Move deallocation stuff to
2503 aixcoff_symfile_finish().
2504
dc52fc71
FF
2505Wed Mar 18 18:22:46 1992 Fred Fish (fnf@cygnus.com)
2506
2507 * infrun.c (IN_SOLIB_TRAMPOLINE): Add default definition.
2508 * infrun.c (wait_for_inferior): Use IN_SOLIB_TRAMPOLINE.
2509 * tm-sysv4.h (IN_SOLIB_TRAMPOLINE): Add SVR4 definition.
2510
2cd99985
PB
2511Wed Mar 18 15:51:15 1992 Per Bothner (bothner@cygnus.com)
2512
2513 Some improvements to g++ debugging.
2514 * symtab.c (list_symbols): demangle before pattern matching.
2515 * symtab.c: Other fixes to improve handing of operators.
2516 * valprint.c (type_print_base): Fix test for constructor.
2517 * values.c (value_static_field): Allow evaluation of
2518 CLASS::METHOD, returning a function pointer.
2519
b0246b3b
FF
2520Wed Mar 18 08:39:52 1992 Fred Fish (fnf@cygnus.com)
2521
2522 * Makefile.in (VERSION): Roll 4.4.6.
2523 * exec.c (exec_file_command): Add code to ignore optional args
2524 passed in by file_command() for use in symbol_file_command().
2525 * main.c (main): Document -mapped and -readnow in help summary.
2526 * objfiles.c (open_mapped_file): Cosmetic change, arg renamed.
2527 * objfiles.c (allocate_objfile): Filename arg removed. Changes
2528 to get filename from bfd with bfd_get_filename(). Test mapto
2529 against 0, not NULL. Use mstrsave() to make copy of filename.
2530 * remote-mm.c (mm_load): Symbol_file_add() takes an additional
2531 arg.
2532 * remote-vx.c (vx_load_command, add_symbol_stub):
2533 Symbol_file_add() takes an additional arg.
2534 * solib.c (symbol_add_stub): Symbol_file_add() takes an
2535 additional arg.
2536 * symfile.c (symfile_open): Renamed to symfile_bfd_open and
2537 changed to return a bfd not an objfile pointer.
2538 * symfile.c (syms_from_objfile): Eliminate local copy of bfd.
2539 * symfile.c (symbol_file_add): Takes an additional arg (readnow).
2540 Change to eliminate local bfd and use symfile_bfd_open() plus
2541 allocate_objfile(). Add code to implement readnow option.
2542 * symfile.c (symbol_file_command): Changes to option handling,
2543 readnow functionality moved to symbol_file_add().
2544 * symfile.c (symfile_init): Eliminate local copy of bfd.
2545 * symfile.c (add_symbol_file_command): Changes to parse mapped
2546 and readnow options.
2547 * symfile.h (allocate_objfile): Arg removed from prototype.
2548 * symtab.h (symbol_file_add): Arg added to prototype.
2549 * xcoffexec.c (map_vmap): Allocate_objfile() takes an additional
2550 arg.
2551
318bf84f
FF
2552Sat Mar 14 16:38:47 1992 Fred Fish (fnf@cygnus.com)
2553
2554 * gmalloc.c, gmalloc.h mcheck.c mmap-alloc.c mmap-sbrk.c mtrace.c,
5a4470de 2555 mtrace.awk, state.c, state.h: Removed.
318bf84f
FF
2556 * .gdbinit: Add ../malloc, ../libiberty, and ../bfd to list of
2557 directories searched for source files.
2558 * Makefile.in (GNU_MALLOC, MALLOC_CFLAGS, MALLOCSRC): Removed
2559 * Makefile.in (MMALLOC_DIR, MMALLOC_DEP, MMALLOC_LIB,
2560 MMALLOC_DISABLE, MMALLOC_CHECK, MMALLOC_CFLAGS): Add
2561 * Makefile.in (CFLAGS): Replace MALLOC_CFLAGS with MMALLOC_CFLAGS.
2562 * Makefile.in (CLIBS, CDEPS): Add MMALLOC_LIB
2563 * Makefile.in (ADD_FILES, ADD_DEPS): Remove GNU_MALLOC.
2564 * Makefile.in (SFILES_MAINDIR): Remove stat.c mmap-alloc.c, mmap-
2565 sbrk.c
2566 * Makefile.in (HFILES): Remove state.h
2567 * Makefile.in (POSSLIBS_MAINDIR): Remove MALLOCSRC.
2568 * Makefile.in (OBS): Remove state.o mmap-alloc.o mmap-sbrk.o
2569 * Makefile.in (saber_gdb): Remove mcheck, mtrace. Add MMALLOC_DIR.
2570 * Makefile.in (clean): Remove all object files.
2571 * c-exp.y: Define malloc to xmalloc and realloc to xrealloc.
2572 * cplus-dem.c: Remove prototypes definitions that are now done in
2573 def.h.
2574 * dbxread.c (throughout): Change from using per-objfile
2575 xmalloc/xrealloc/free functions to xmmalloc/xmrealloc/mfree.
2576 * defs.h: Remove prototypes for mmap_* functions. Add prototypes
2577 for xmmalloc, xmrealloc, mfree, mmcheck, mmtrace, mmalloc_attach,
2578 mmalloc_detach, mmalloc_setkey, msavestring, and mstrsave, nomem.
2579 * depend: Remove dependencies for state.o, state.h.
2580 * dwarfread.c: Add declaration for warning_pre_print.
2581 * dwarfread.c (dwarfwarn): Use warning_pre_print.
2582 * dwarfread.c (throughout): Change from using per-objfile
2583 xmalloc/xrealloc/free functions to xmmalloc/xmrealloc/mfree.
2584 * gdbtypes.c (lookup_fundamental_type): Fix init_type calls to
2585 use supplied objfile.
2586 * i386-xdep.c (print_387_status): Change to use warning() rather
2587 than printfs.
2588 * i387-tdep.c (print_387_control_word): Change to use warning()
2589 rather than printfs.
2590 * infrun.c (wait_for_inferior): Remove unreachable abort() call
2591 that some compilers grumble about.
2592 * language.c (throughout): Add declaration for warning_pre_print
2593 and using warning() instead of printfs.
2594 * m2-exp.y: Define malloc to xmalloc and realloc to xrealloc.
2595 * main.c (main): Add declaration for warning_pre_print and set it
2596 similarly to error_pre_print. Add declarations for
2597 mapped_symbol_files and readnow_symbol_files. Add appropriate
2598 definitions to long_options[].
2599 * minsyms.c: Trivial fix to comment.
2600 * objfiles.c (allocate_objfile): Substantially rewritten for
2601 using mapped symbol files.
2602 * objfiles.c (throughout): Change from using per-objfile
2603 xmalloc/xrealloc/free functions to xmmalloc/xmrealloc/mfree.
2604 * objfiles.c (open_mapped_file, mapped_to_address): Add functions.
2605 * source.c (throughout): Change from using per-objfile
2606 xmalloc/xrealloc/free functions to xmmalloc/xmrealloc/mfree.
2607 * source.c (open_source_file): Use mstrsave to save file name in
2608 mapped symbol region for objfile.
2609 * symfile.c: Remove include for state.h.
2610 include to local form.
2611 * symfile.c (symbol_file_add_digested): Remove.
2612 * symfile.c (symbol_file_add): Substantially rewritten for mapped
2613 symbol files.
2614 * symfile.h: Remove malloc/xrealloc/xmalloc/xrealloc/free members
2615 from objfile structure. Add malloc descriptor pointer (md).
2616 * symfile.h (OBJF_DUMPABLE): Changed name to OBJF_MAPPED.
2617 * symm-xdep.c (print_fpu_status): Use warning() rather than
2618 printfs.
2619 * symmisc.c (free_symtab_block): Now takes and uses current
2620 objfile pointer.
2621 * symmisc.c (throughout): Change from using per-objfile
2622 xmalloc/xrealloc/free functions to xmmalloc/xmrealloc/mfree.
2623 * symtab.c (cplus_mangled_symbol): Cast return value to avoid
2624 Sun compiler grumblings when PTR is char *.
2625 * symtab.c (lookup_symbol): Cast return value of iterate_over_
2626 msymbols() to correct pointer type.
2627 * utils.c (warning_pre_print): Initialize to "\nwarning: ".
2628 * utils.c (fatal, fatal_dump_core): Ensure that the fatal
2629 error always starts on a line of it's own.
2630 * utils.c (init_malloc, malloc_botch, xmalloc, xrealloc):
2631 Rewrite for new mapped malloc package use.
2632 * utils.c (mmalloc, mrealloc, mfree): Stubs for configurations
2633 that don't want to use the mapped malloc package; pass arguments
2634 on to traditional malloc package functions.
2635 * utils.c (nomem): Add for fatal virtual memory exhausted aborts.
2636 * utils.c (xmmalloc, xmrealloc, xmalloc, xrealloc): Like mmalloc,
2637 mrealloc, malloc, and realloc but get fatal error if runs out
2638 of memory.
2639 * utils.c (msavestring, mstrsave): Save a string in a specific
2640 mapped malloc region.
2641 * utils.c (print_spaces): Use xmalloc to get the buffer.
2642 * xm-amix.h, xm-i386v4.h, xm-sun3os4.h, xm-sun4os4.h: Add defines
2643 for MMAP_BASE_ADDRESS and MMAP_INCREMENT.
2644 * config/i386v4.mh: Insignificant reorganization.
2645
0750528a
FF
2646Sat Mar 14 11:44:47 1992 Fred Fish (fnf@cygnus.com)
2647
2648 * xcoffread.c: Only enable compilation of debugging functions
2649 if IBM6000 is defined. Fails to compile otherwise.
2650
4db3902a
RP
2651Fri Mar 13 15:51:11 1992 K. Richard Pixley (rich@cygnus.com)
2652
2653 * Makefile.in: pass MAKEINFO down on info.
2654
bec9fad9
JG
2655Fri Mar 13 12:56:36 1992 John Gilmore (gnu at cygnus.com)
2656
2657 * mipsread.c (mipscoff_symfile_read): Eliminate a lot of
2658 useless code, including an lseek to an uninitialized variable.
2659 Reported by Jim Williams <jimbo@wrs.com>.
2660
6730b139
PB
2661Thu Mar 12 11:56:46 1992 Per Bothner (bothner@cygnus.com)
2662
4db3902a
RP
2663 Merged in patches from metin@ibmpa.awdpa.ibm.com (Metin G.
2664 Ozisik) (dated Fri, 6 Mar 92 17:51) for the rs6000.
2665 * minsyms.c, symfile.c: Changes that may be generally
2666 applicable, but are #ifdef IBM6000 for now.
2667 * rs6000-xdep.c: Fixed typo in comment.
2668 * rs6000-tdep.c: Non-substatial changes.
2669 * xoffread.c: The main change here is addition of some
2670 debugging functions.
2671 * xoffexec.c: More changes.
2672
2673 * xcoffread.c: Fixed two too-few-parameters bugs.
2674
6730b139
PB
2675 * solib.h, infrun.c, tm-rs6000.h: Add a PID parameter
2676 to SOLIB_CREATE_INFERIOR_HOOK macro.
2677
a846ac55
FF
2678Sun Mar 8 21:17:48 1992 Fred Fish (fnf@cygnus.com)
2679
2680 * symfile.h: Add prototype for iterate_over_msymbols().
2681 * symtab.c (cplus_mangled_symbol): Add function.
2682 * symtab.c (lookup_symbol): Call cplus_mangled_symbol via
2683 iterate_over_msymbols to find demangled C++ symbol.
2684 * xcoffexec.c (relocate_minimal_symbol): Return meaningful
2685 value to iterate_over_msymbols().
2686 * xcoffexec.c (vmap_symtab): Ignore return from iterate_over_
2687 msymbols().
2688
2689Fri Mar 6 21:59:34 1992 K. Richard Pixley (rich@cygnus.com)
2690
2691 * Makefile.in: added check target.
2692
a1106a1e
JG
2693Thu Mar 5 23:56:01 1992 John Gilmore (gnu at cygnus.com)
2694
2695 * ecoff.c: Move to ../bfd/coff-msym.c.
2696 * config/mt-*mips: Remove ecoff.o from the configuration.
53ccaf5f
JG
2697 * remote.c (): Add newline to initial +.
2698 (remote_resume): Mention how to cope with signals.
2699 (remote_interrupt): Add debug msg.
2700 (remote-wait): Implement new 'T' reply, which includes
2701 status, PC, and FP all in a single short message.
2702 (putpkt): Add further debugging of packet acks.
2703 * mipsread.c (fixup_symtab): Also swap RFD's.
2704 (parse_partial_symbols): Avoid bug on unknown symbol types.
b67cb9d5 2705 * Makefile.in (VERSION): Roll to 4.4.5.
a846ac55
FF
2706 * mips-tdep.c (heuristic_proc_start): Avoid long delays
2707 for remote MIPS by limiting heuristic to 200 byte search.
2708 (heuristic_proc_desc): Byte-swapping.
2709 (mips_print_register): Cope with failure of
2710 read_relative_register_raw_bytes. Byte-swap integers for
2711 printing.
2712 * mips-pinsn.c (print_insn): Byte-swap instruction.
a1106a1e 2713
1170a046
SG
2714Thu Mar 5 12:32:09 1992 Stu Grossman (grossman at cygnus.com)
2715
2716 * config.sub configure.in config/.Sanitize config/mh-irix4
2717 gdb/.Sanitize gdb/configure.in gdb/mips-tdep.c gdb/mipsread.c
2718 gdb/procfs.c gdb/signame.h gdb/tm-irix3.h gdb/tm-mips.h
2719 gdb/xm-irix4.h gdb/config/.Sanitize gdb/config/mt-irix3
2720 gdb/config/mh-irix4 texinfo/configure.in: Port to SGI Irix-4.x.
2721
d7eddc51
FF
2722Wed Mar 4 11:56:42 1992 Fred Fish (fnf@cygnus.com)
2723
2724 * defs.h, utils.c: xrealloc takes PTR as first arg.
2725 * defs.h: Reword confusing comment about ANSI prototypes.
2726 * defs.h: Some minor whitespace changes.
2727 * infrun.c (wait_for_inferior): Compare int tmp to int 0,
2728 not NULL, which can be (void *).
2729 * tm-amix.h, tm-i386v4.h: Add defines for setjmp/longjmp handling.
2730 * tm-i386v.h (SP_ARG0): Define
2731 * xm-sysv4.h: Back out of change for missing prototypes.
2732 * i386-tdep.c (get_longjmp_target): Add function.
2733
a846ac55
FF
2734Wed Mar 4 05:46:11 1992 K. Richard Pixley (rich@rtl.cygnus.com)
2735
2736 * Makefile.in: install man page too.
2737
d747e0af
MT
2738Tue Mar 3 15:11:52 1992 Michael Tiemann (tiemann@cygnus.com)
2739
2740 * All GDB files that #include defs.h: Removed stdio.h.
2741 (defs.h): #include stdio.h.
2742
96743d3c
SC
2743Mon Mar 2 23:00:12 1992 Steve Chamberlain (sac@thepub.cygnus.com)
2744
2745 * gdbtypes.c (lookup_pointer_type): initialize the TYPE_LENGTH of
2746 a ptype to reflect the setting of TARGET_PTR_BIT. Set the
2747 TYPE_FLAGS of a ptype to TYPE_FLAG_UNSIGNED.
2748 * tm-h8300.h, h8300-tdep.c, remote-hms.c: personal checkpoint
2749 * printcmd.c (print_address): if ADDR_BITS_REMOVE is defined, use
2750 it before printing out the hex shape of an address.
2751
6c6afbb9
PB
2752Sun Mar 1 17:41:09 1992 Per Bothner (bothner@cygnus.com)
2753
bff1c97a
FF
2754 * rs6000-xdep.c (frame_initial_stack_address): Move
2755 code to set frame->cache_fsr into new separate function
2756 frame_get_cacahe_fsr. This allows fixing a fatal error.
2757 * xcoffexec.c: Turn previously suppressed error
2758 message back on, after cleaning up BFD.
2759
6c6afbb9
PB
2760 * breakpoint.c (breakpoint_re_set): Removed (at least for now)
2761 printing of blank line, since it cases printing of an
2762 extra blank line. Is this intended? It does mess up
2763 gdb test suite.
2764 * defs.h: Put back declarations of malloc and realloc,
2765 but protected by #ifndef MALLOC_INCOMPATIBLE.
2766 * objfiles.c: Undo previous change: Use malloc/realloc
2767 for objfile malloc/realloc fields (but add a cast).
2768 * xcoffexec.c: Suppress an error message (for now).
2769
2770Sat Feb 29 14:43:02 1992 Per Bothner (bothner@cygnus.com)
2771
2772 Changes from metin@ibmpa.awdpa.ibm.com (Metin G. Ozisik)
2773 [Mail dated Fri, 21 Feb 92 13:14:54 -0800]
2774 * buildsym.c: Use smash_to_pointer_type() to handle forward type
2775 references.
2776 * xcoffread.c: Modifications to C_DECL storage class handling, and
2777 introduction of an old smash_to_pointer_type() routine.
2778
2779 Changes from metin@ibmpa.awdpa.ibm.com (Metin G. Ozisik)
2780 [Mail dated Thu, 20 Feb 92 13:57:16 -0800]
2781 * rs6000-xdep.c, rs6000-tdep.c, tm-rs6000.h: function_frame_info()
2782 parameters have been modified.
2783
2784 Changes from metin@ibmpa.awdpa.ibm.com (Metin G. Ozisik)
2785 [Mail dated Thu, 20 Feb 92 10:10:05 -0800]
2786 * rs6000-tdep.c: Before Feb 5 92, register_valid[] array was not used,
2787 and fetch_inferior_registers() always fetched all the registers
2788 resulting valid register values at hand all the time. Pushing a dummy
2789 frame did not require validating all register values first. After
2790 putting the above mechanism into action, we didn't have valid registers
2791 values always ready. Thus, all registers need to be fetched before
2792 pushing a dummy frame now.
2793
2794 Changes from metin@ibmpa.awdpa.ibm.com (Metin G. Ozisik)
2795 [Mail dated Thu, 13 Feb 92 16:22:44 -0800]
2796 * rs6000-xdep.c: frame_initial_stack_address() function to calculate
2797 the starting address (actual frame address) of a frame.
2798 * rs6000-tdep.c: modifications to function_frame_info() to see if
2799 function reserves a frame pointer register (alloca register)
2800 * tm-rs6000.h: EXTRA_FRAME_INFO, FRAME_ARGS_ADDRESS and
2801 FRAME_LOCALS_ADDRESS has been updated to support debugging of
2802 functions with alloca() calls.
2803
4b8333de
FF
2804Sun Mar 1 13:13:39 1992 Fred Fish (fnf@cygnus.com)
2805
2806 * xm-sysv4.h: Provide definitions/prototypes for host environment
2807 functions for which no definitions or prototypes are provided in
2808 any currently included gdb or host environment header files.
2809 For SVR4, this currently includes malloc and realloc, which cannot
2810 be portably prototyped in any gdb include file.
2811
2812Sat Feb 29 14:43:02 1992 Per Bothner (bothner@cygnus.com)
2813
2814 * buildsym.h: Remove obsolete variable file_stabs.
2815
2816 * Makefile.in: Move place where configure merges in host-
2817 and target-dependent fragments later, so the latter
2818 can override (say) GNU_MALLOC.
2819 * config/mh-rs6000: Use system malloc. Otherwise, I
2820 ended up with *two* incompatible versions of malloc
2821 (functions in libc would call the malloc in libc).
2822 I assume this is a shared library problem.
2823
2824 * remote.c: Fix (presumed) typo.
2825 * objfiles.c: Use xmalloc/xrealloc instead of
2826 malloc/realloc (since the latter are no longer declared).
2827
2828 Changes from metin@ibmpa.awdpa.ibm.com (Metin G. Ozisik)
2829 [Mail dated Thu, 6 Feb 1992 10:22:02 -0800]
2830 * rs6000-xdep.c: Improvements to fetch_inferior_registers() to
2831 handle individual registers.
2832 * tm-rs6000.h: Fix SAVED_PC_AFTER_CALL macro to handle pc value
2833 correctly in case it wasn't cached yet. (A problem showed up
2834 after fetching individual registers.)
2835 * buildsym.c: Disable type_synonym_name's type name overwriting
2836 in cases it is unnecesary. rs6000 portation doesn't use
2837 type_synonym_name, and it used to nullify type names
2838 * xcoffread.c: to handle g++'s typename abbreviation, fill in a
2839 type's name as soon as space for that type is allocated.
2840 * xcoffread.c: ignore a section's lineno information if it is
2841 not `.text'. (In rs6000 bfd portation integration, skipping over
2842 `.pad' sections are ignored since it was in machine independent
2843 part of the code. Thus, a problem of fake sections with invalid
2844 lineno information arised.)
2845
2846 Changes from metin@ibmpa.awdpa.ibm.com (Metin G. Ozisik)
2847 [Mail dated Thu, 6 Feb 1992 13:26:22 -0800]
2848 * rs6000-tdep.c: make function_frame_info() work whether or not
2849 reading from a core file.
2850 * tm-rs6000.h: Implementation of FRAME_FIND_SAVED_REGS macro.
2851
2852 * infrun.c. main.c, printcmd.c. symtab.c:
2853 More changes from IBM for rs6000.
2854
2855
818de002
PB
2856Thu Feb 27 22:57:19 1992 Per Bothner (bothner@cygnus.com)
2857
2858 * rs6k-opcode.h, tm-rs6000.h, xm-rs6000.h, rs6000-tdep.c,
2859 rs6000-xdep.c, xcoffexec.c, xcoffread.c:
2860 Merge in changes (mostly from IBM) for RS6000.
2861 * breakpoint.c, buildsym.c, infptrace.c, stack.c, symtab.c:
2862 More changes from IBM for RS6000. These are in machine-
2863 independent code, and probably could do with some cleaning
2864 up. The most questionable of these are #ifdef IBM6000.
2865 * infrun.c, sparc-tdep.c: Pass a parameter (signal number)
2866 to single_step() (for consistency with rs6000 and i860).
2867 * utils.c: Allow the 1st arg to xrealloc to be NULL
2868 (in which case do malloc). This removes the need for
2869 some tests in xcoff code (and perhaps other places?).
2870 * coffread.c: Removed variables last_source_file,
2871 type_vector, and type_vector_length as these are now
2872 defined by buildsym.[ch].
2873 * defs.h: Remove prototypes for malloc and realloc, since
2874 these should only be used to implement xmalloc and xrealloc,
2875 and they conflict with <stdlib.h> in AIX - where they
2876 return void* even when __STDC__ isn't defined. Sigh.
2877 * munch: Recognize *initialize* in data as well as text
2878 (AIX uses data). Also, incorporate a patch from Garrett
2879 Wollman <wollman@uvm-gen.uvm.edu> to make the sed script
2880 much more sensible, by only trying to match the name of
2881 the initialize_foo function, and not the junk before it.
2882
8537ba60
SG
2883Thu Feb 27 20:07:43 1992 Stu Grossman (grossman at cygnus.com)
2884
2885 * breakpoint.c (breakpoint_re_set_one): Don't reset breakpoint
2886 unless symbol table indicates that something has changed.
2887
069bc454
JG
2888Thu Feb 27 11:48:47 1992 John Gilmore (gnu at cygnus.com)
2889
b543979c
JG
2890 * remote.c: Make it work for embedded MIPS. Increase buffer
2891 size, and use throughout. Round buffer size up if too many regs.
2892 Support baud rate setting and try for an 8-bit path. If
2893 interrupted while waiting for target, send a ^C down the wire.
2894 Avoid single-byte reads.
2895 * tm-mips.h: Add more embedded-system registers to REGISTER_NAMES
2896 and NUM_REGS.
2897 * mips-xdep.h: Avoid the embedded regs when on Unix.
2898
d141f3e3
JG
2899 * mipsread.c: Byte-swap the symbol table structures, using
2900 routines from ecoff.c, to read a symbol table written in any
2901 of the four possible byte orders.
069bc454
JG
2902 * configure.in (mips-big-* target): Same as Sony News.
2903 * config/mt-bigmips, config/mt-littlemips: Add ecoff.o.
2904 * ecoff.c: New file for symbol swapping routines.
2905
80ba48f5
SG
2906Thu Feb 27 09:26:38 1992 Stu Grossman (grossman at cygnus.com)
2907
2908 * breakpoint.c (all_breakpoints_info, breakpoint_1): Add 'info
2909 all-breakpoints' command.
2910 * (get_number): Allow users to enter negative breakpoint numbers.
2911 * (breakpoint_1): Reformat display of 'info break' to show new
2912 fields.
2913 * (create_longjmp_breakpoint, breakpoint_re_set,
2914 breakpoint_re_set_one, enable/disable_longjmp_breakpoint),
2915 symfile.c (syms_from_objfile): Re-do
2916 insertion of longjmp breakpoints. Move all code into
2917 breakpoint_re_set, and call that instead of
2918 create_longjmp_breakpoint in symfile.c.
2919
cba0d141
JG
2920Thu Feb 27 06:11:05 1992 John Gilmore (gnu at cygnus.com)
2921
2922 * breakpoint.h (ALL_BREAKPOINTS_SAFE): Add.
2923 * breakpoint.c (breakpoint_re_set): Use ALL_BREAKPOINTS_SAFE.
2924 * symtab.c (find_pc_symtab): Handle having no objfiles.
2925 * infcmd.c: Fix comment.
2926 * objfiles.c (free_all_objfiles): Add.
2927 * symfile.h (ALL_OBJFILES, ALL_OBJFILES_SAFE): Add.
2928 * symfile.c (symbol_file_command): free all objfiles when
2929 specifying a new symbol file.
2930 (reread_symbols): Stat the file name, don't fstat the descriptor.
2931
a846ac55
FF
2932Wed Feb 26 18:04:40 1992 K. Richard Pixley (rich@cygnus.com)
2933
2934 * Makefile.in, configure.in: removed traces of namesubdir,
2935 -subdirs, $(subdir), $(unsubdir), some rcs triggers. Forced
2936 copyrights to '92, changed some from Cygnus to FSF.
2937
cba0d141
JG
2938Tue Feb 25 19:31:19 1992 Stu Grossman (grossman at cygnus.com)
2939
2940 * dbxread.c (end_psymtab): Delete empty psymtabs.
2941 * symfile.c (allocate_psymtab): Recycle empty psymtabs.
2942 * symfile.h (struct objfile): Add free_psymtabs.
2943
35318110
JG
2944Sat Feb 22 02:00:32 1992 John Gilmore (gnu at cygnus.com)
2945
47890ed7
JG
2946 * Makefile.in (VERSION): Roll to gdb-4.4.4.
2947
35318110
JG
2948 * symfile.c (symbol_file_command): strcmp => !strcmp.
2949 * breakpoint.h: Move prototypes to follow enum definition they need.
2950 * breakpoint.c, infrun.c: Lint.
2951 * printcmd.c: Use `enum enable' rather than `enum
2952 display_status'.
2953 * mipsread.c: First pass at making it compile with the new
2954 objfile changes. Probably seriously broken still, but it
2955 compiles. FIXME.
2956
30875e1c
SG
2957Sat Feb 22 00:56:39 1992 Stu Grossman (grossman at cygnus.com)
2958
2959 * infrun.c, infcmd.c, breakpoint.c, main.c, symfile.c,
2960 breakpoint.h, tm-sun4os4.h, tm-sparc.h, sparc-tdep.c, tm-mips.h,
2961 mips-tdep.h, tm-sun3.h, tm-68k.h, m68k-tdep.h: Add support for
2962 stepping (and nexting) through longjmp(). Also, cleanup
2963 breakpoint handling quite a bit by creating explicit breakpoint
2964 types instead of using magic breakpoint numbers.
2965 Makefile.in: Update version to 4.4.3
2966
021959e2
JG
2967Sat Feb 22 00:08:50 1992 John Gilmore (gnu at cygnus.com)
2968
93fe4e33
JG
2969 * buildsym.c, dwarfread.c, gdbtypes.c, inflow.c, main.c,
2970 minsyms.c, printcmd.c, remote.c, saber.suppress: Saberlint.
2971 * symmisc.c, xcoffread.c: Move debug functions to symmisc.c.
2972
021959e2
JG
2973 * xm-sun3os4.h, xm-sun4os4.h: Enable HAVE_MMAP.
2974
2975 * minsyms.c (install_minimal_symbols): Add bunches to any
2976 existing minsyms in the objfile. Avoid extra mallocation
2977 by working directly in the obstack. Remove ignored `mainline' parm.
2978 * coffread.c, dbxread.c, elfread.c, mipsread.c, solib.c, symtab.h,
2979 xcoffread.c: Change all callers.
2980 * FIXME: We should be able to eliminate MAINLINE from all the
2981 symbol readers now, with a small bit of work.
2982
2983 * valops.c, value.h: Lint.
2984 * remote-vx.c: Add missing break; statement. Bugfix by
2985 Michael Sclafani, <sclafani@src.dec.com>.
2986
bff1c97a
FF
2987Fri Feb 21 17:29:54 1992 Fred Fish (fnf at cygnus.com)
2988
2989 * Makefile.in (VERSION): Update version to 4.4.2
2990 * Makefile.in (SFILES_MAINDIR): Add gdbtypes.c, state.c, objfiles.c,
2991 minsyms.c, mmap-alloc.c, mmap-sbrk.c
2992 * Makefile.in (HFILES): Add gdbtypes.h, state.h, solib.h
2993 * Makefile.in (OBS): Add gdbtypes.o, state.o, objfiles.o, minsyms.o,
2994 mmap-alloc.o, mmap-sbrk.o
2995
2996 * altos-xdep.c: Minor whitespace change.
2997 * am29k-tdep.c (examine_prologue): Convert from misc function vector
2998 use to new minimal symbol table use.
2999 * arm-xdep.c (fetch_inferior_registers): Document unused argument.
3000 * arm-xdep.c (store_inferior_registers): Returns void.
3001 * blockframe.c (get_pc_function_start, find_pc_partial_function):
3002 Convert from misc function vector use to new minimal symbol table use.
3003 Remove find_pc_misc_function(). Ifdef out block_innermost_frame().
3004 * breakpoint.c: Add prototypes for local functions.
3005 * breakpoint.c (catch_command_1): Change to static and remove unused
3006 local "pc".
3007 * breakpoint.c (map_breakpoint_numbers): Prototype arg "function".
3008 * breakpoint.h: Change function decls to prototype form.
3009 * buildsym.c: Add prototypes for local functions.
3010 * buildsym.c: Moved hashname() function here from dbxread.c.
3011 * buildsym.c (dbx_lookup_type): Cast args to xrealloc().
3012 * buildsym.c: Remove dbx_create_type(), uses changed to alloc_type().
3013 * buildsym.c (dbx_alloc_type): Change to static.
3014 * buildsym.c (finish_block): Add objfile parameter.
3015 * buildsym.c (misc): Change symbol_obstack to objfile version.
3016 * buildsym.c (make_blockvector): Change to static.
3017 * buildsym.c (start_subfile): Use strdup instead of obsavestring.
3018 * buildsym.c (compare_line_numbers): Change to static, args are const,
3019 cast args when used.
3020 * buildsym.c (start_symtab): Inline new_object_header_files() call.
3021 * buildsym.c (patch_block_stabs): Moved to this file from xcoffread
3022 and made static. Add objfile parameter.
3023 * buildsym.c (end_symtab): Simplify code using line table size.
3024 Realloc the linetable on the objfile symbol_obstack and copy there.
3025 * buildsym.c (scan_file_globals): Convert from misc function vector
3026 use to new minimal symbol use.
3027 * buildsym.c (define_symbol): Add objfile parameter. Make sure
3028 strings get allocated in objfile's symbol_obstack. Convert references
3029 to builtin types to lookup_fundamental_type().
3030 * buildsym.c (read_type): Make static, add objfile parameter, convert
3031 references to buildin types to lookup_fundamental_type().
3032 * buildsym.c (read_struct_type): Add objfile parameter.
3033 * buildsym.c (read_array_type): Make static, add objfile parameter.
3034 * buildsym.c (read_enum_type): Make static, add objfile parameter.
3035 * buildsym.c (read_huge_number): Make static.
3036 * buildsym.c (read_range_type): Make static, add objfile parameter,
3037 convert references to buildin types to lookup_fundamental_type ().
3038 * buildsym.c (read_args): Make static, add objfile parameter.
3039 * buildsym.h: Convert function decl's to prototype form.
3040 * c-exp.y: Add prototypes for local functions, convert uses of misc
3041 function vector to minimal symbol table. Reformat all builtin type
3042 initializations and pass a NULL objfile to init_type() for them.
3043 * coffread.c: Change context_stack ref's to coff_context_stack,
3044 add local function prototypes. Cast uses of xrealloc arg 1.
3045 * coffread.c (coff_alloc_type): Call alloc_type instead of hand-
3046 crafting a new type.
3047 * coffread.c (add_symbol_to_list): Change to coff_add_symbol_to_list.
3048 * coffread.c (finish_block): Change name to coff_finish_block.
3049 * coffread.c (make_blockvector): Add and use objfile parameter.
3050 * coffread.c (record_line): Change name to coff_record_line.
3051 * coffread.c (start_symtab): Change name to coff_start_symtab.
3052 * coffread.c (end_symtab): Change name to coff_end_symtab.
3053 * coffread.c (record_misc_function): Change name to record_minimal_
3054 symbol and change to minimal symbol table use from misc func tbl.
3055 * coffread.c (coff_symfile_read): Convert from misc function vector
3056 use to minimal symbol table use.
3057 * coffread.c (hashname): Remove; use common version in buildsym.c.
3058 * coffread.c (decode_base_type): Change references to builtin types
3059 to calls to lookup_fundamental_type().
3060 * coffread.c (read_struct_type): Change name to coff_read_struct_type.
3061 * coffread.c (read_enum_type): Change name to coff_read_enum_type.
3062 * command.c: Add prototypes for local functions.
3063 * command.c (add_cmd): Prototype the 'fun' parameter and use the
3064 appropriate member of the function union for that type.
3065 * command.c (add_abbrev_cmd): Prototype the 'fun' parameter and
3066 ifdef out the function since it isn't currently used.
3067 * command.c (add_alias_cmd): Pass correct function type to add_cmd.
3068 * command.c (add_prefix_cmd): Prototype the 'fun' parameter.
3069 * command.c (add_abbrev_prefix_cmd): Prototype the 'fun' parameter.
3070 * command.c (help_cmd): Compare function pointer to NULL.
3071 * command.c (help_cmd_list): Compare function pointer to NULL.
3072 * command.c (lookup_cmd_1): Use correct member of function union.
3073 * command.c (undef_cmd_error): Make static.
3074 * command.c (complete_on_cmdlist): Use correct member of func union.
3075 * command.c (do_setshow_command): Use correct member of func union.
3076 * command.c (shell_escape): Convert rindex use to strrchr.
3077 * command.h (COMMAND_H): Define if already included.
3078 * command.h (cmd_list_element struct): Change 'function' to a union
3079 and prototype args. Prototype completer function.
3080 * command.h: Convert decl's to prototype form.
3081 * convex-xdep.c (store_inferior_registers): Returns void.
3082 * copying.c: Prototype local functions.
3083 * coredep.c: Minor whitespace change.
3084 * cplus-dem.c: Remove hack to use BSD equivalents of mem* and str*.
3085 * cplus-dem.c: Prototype local functions.
3086 * dbxread.c (hashname): Remove; moved to buildsym.c.
3087 * dbxread.c (free_and_init_header_files): Make static.
3088 * dbxread.c: Add prototypes for local functions.
3089 * dbxread.c (new_object_header_files): Remove; inlined usages.
3090 * dbxread.c (xrealloc usages): Cast args.
3091 * dbxread.c (record_misc_function): Change to record_minimal_symbol
3092 and change usages accordingly.
3093 * dbxread.c (static_psymbols usages): Change to use per-objfile copy.
3094 * dbxread.c (xmalloc usages): Use per-objfile copy when appropriate.
3095 * dbxread.c (dbx_next_symbol_text): Make static.
3096 * dbxread.c (init_psymbol_list): Convert to use per-objfile data.
3097 * dbxread.c (init_bincl_list): Add and use objfile parameter.
3098 * dbxread.c (free_bincl_list): Add and use objfile parameter.
3099 * dbxread.c (compare_psymbols): Remove; use common symfile.c version.
3100 * dbxread.c (end_psymtab): Convert to use per-objfile data.
3101 * dwarfread.c (DEFUN/EXFUN): Remove all usages. Use PARAMS for
3102 prototypes.
3103 * dwarfread.c (record_misc_function): Change name to record_minimal_
3104 symbol and use minimal symbol table throughout.
3105 * dwarfread.c (compare_psymbols): Remove; use common symtab.c version.
3106 * dwarfread.c: Convert all references to builtin types to use the new
3107 lookup_fundamental_type function.
3108 * dwarfread.c (read_enumeration): Add and use objfile parameter.
3109 * elfread.c (DEFUN/EXFUN): Remove all usages. Use PARAMS for proto-
3110 types.
3111 * elfread.c (record_misc_function): Convert to use record_minimal_
3112 symbol.
3113 * elfread.c (elf_symtab_read): Add objfile parameter.
3114 * eval.c: Add prototypes for local functions and move some decls
3115 around to accomodate prototypes.
3116 * expprint.c: Add prototypes for local functions. Change references
3117 to misc function vector to minimal symbol table.
3118 * findvar.c (read_memory usages): Cast args.
3119 * gdbtypes.h: New file, type info from symfile.h and symtab.h.
3120 * gmalloc.c: Use NOARGS where prototypes used hardwired void.
3121 * gmalloc.c (BLOCKSIZE): Constant to be shifted is unsigned.
3122 * gmalloc.h: Use NOARGS where prototypes used hardwired void.
3123 * gould-xdep.c: Minor whitespace change.
3124 * hp300ux-xdep.c (fetch_inferior_registers): Remove unused regno var.
3125 * hp300ux-xdep.c (store_inferior_registers): Returns void.
3126 * hp300ux-xdep.c (fetch_core_registers): Takes unused arg reg_addr.
3127 * i386-stub.c: Add prototypes, change "volatile" to NORETURN.
3128 * i386-tdep.c: Add prototypes for local functions.
3129 * i386-tdep.c (codestream_fill, codestream_seek, codestream_read,
3130 i386_get_frame_setup, i386_skip_prologue): Explicitly declare params
3131 that defaulted to int.
3132 * i386-tdep.c (i386_follow_jump, i386_frame_find_saved_regs,
3133 i386_push_dummy_frame): Returns void.
3134 * i386-xdep.c (i386_register_u_addr): Declare params that default to
3135 int and explicitly declare return type as int.
3136 * i387-tdep.c: Minor formatting changes.
3137 * i960-tdep.c (leafproc_return): Convert from misc function vector
3138 use to minimal symbol table use.
3139 * infcmd.c: Add prototypes for local functions.
3140 * infcmd.c (continue_command, until_next_command, until_command,
3141 path_info, path_command): Make static.
3142 * infcmd.c (step_1, until_next_command): Convert from misc func
3143 vector to minimal symbol table use.
3144 * inflow.c: Add prototypes for local functions.
3145 * infptrace.c (store_inferior_registers): Returns void, not int.
3146 * language.c (_initialize_language): Use proper member of function
3147 union.
3148 * m2-exp.y: Add prototypes for local functions, convert misc function
3149 vector uses to minimal symbol table uses.
3150 * m2-exp.y (make_qualname, yyerror): Make static.
3151 * m2-exp.y (_initialize_m2_exp): Call init_types with NULL objfile.
3152 * m68k-pinsn.c: Add prototypes for local functions.
3153 * m68k-pinsn.c (print_insn): Cast args to read_memory.
3154 * m68k-pinsn.c (fetch_arg): Make parameter 'code' and int.
3155 * m68k-stub.c: Add prototypes.
3156 * m88k-pinsn.c (sprint_address): Convert from misc function vector
3157 use to minimal symbol table use.
3158 * m88k-xdep.c (fetch_inferior_registers): Takes an unused parameter.
3159 * m88k-xdep.c (store_inferior_registers): Returns void.
3160 * mach386-xdep.c (fetch_inferior_registers): Takes an unused param.
3161 * mach386-xdep.c (store_inferior_registers): Returns void.
3162 * mach386-xdep.c (fetch_core_registers): Takes an unused parameter.
3163 * main.c: Add prototypes for local functions.
3164 * main.c (return_to_top_level): Is type NORETURN (volatile). Cast
3165 longjmp() result to (NORETURN void).
3166 * main.c (catch_errors): Prototype the 'func' parameter.
3167 * main.c (disconnect, stop_sig, do_nothin, float_handler):
3168 Takes an unused arg.
3169 * main.c (execute_command): Call the right member of the func union.
3170 * main.c (command_loop_marker, symbol_completion_function,
3171 command_loop): Make static.
3172 * main.c (command_line_input): Make linelength unsigned, cast arg
3173 to command_line_input().
3174 * main.c (add_info, add_com): Prototype the 'fun' parameter.
3175 * main.c (initialize_main): Call right member of function union.
3176 * mcheck.c (NOARGS): Change hardwired void in prototypes to NOARGS.
3177 * mem-break.c: Include symtab.h
3178 * mips-xdep.c (fetch_inferior_registers): Takes unused param.
3179 * mips-xdep.c (store_inferior_registers): Returns void.
3180 * mipsread.c (mipscoff_symfile_read): Change from misc function vector
3181 use to minimal symbol table use.
3182 * mipsread.c (symbol_obstack usages): Convert all to use per-objfile
3183 version.
3184 * mipsread.c (make_type): Remove, convert usages to init_type.
3185 * mipsread.c (_initialize_mipsread): Call init_type with NULL objfile.
3186 * nindy-tdep.c (nindy_frame_chain_valid): Convert from misc function
3187 vector use to minimal symbol table use.
3188 * parse.c: Add prototypes for local functions.
3189 * parse.c (xrealloc usages): Cast args.
3190 * parse.c (prefixify_expression, length_of_subexp): Make static.
3191 * parser-defs.h (PARSER_DEFS_H): Define when first included.
3192 * parser-defs.h: Convert function decls to prototype form.
3193 * partial-stab.h: Convert from misc function vector use to new minimal
3194 symbol table use.
3195 * partial-stab.h (global_psymbols, static_psymbols usages): Reference
3196 the per-objfile copies.
3197 * printcmd.c: Add prototypes for local functions. Move some struct
3198 definitions around to accomodate prototypes.
3199 * printcmd.c (decode_format): Make static, change args oformat and
3200 osize to int from char.
3201 * printcmd.c (print_formatted): Change 'format' and 'size' to int.
3202 * printcmd.c (print_scalar_formatted): Change arg 'format' to int.
3203 * printcmd.c (print_address_symbolic): Convert from misc function
3204 vector use to minimal symbol table use.
3205 * printcmd.c (address_info): Convert from misc function vector use
3206 to minimal symbol table use.
3207 * printcmd.c (delete_display, enable_display, disable_display_command):
3208 Make static.
3209 * procfs.c (EXFUN/DEFUN): Remove all usages, convert to PARAM.
3210 * procfs.c (fetch_core_registers): Add unused param reg_addr.
3211 * pyr-xdep.c (fetch_inferior_registers): Add unused param regno.
3212 * pyr-xdep.c (store_inferior_registers): Returns void.
3213 * remote-mm.c (mm_load): symbol_file_add return value unused.
3214 * remote-nindy.c: Minor format change.
3215 * remote-vx.c (vx_load_command): symbol_file_add result unused.
3216 * rs6000-xdep.c (fetch_inferior_registers): Add unused param regno.
3217 * rs6000-xdep.c (store_inferior_registers): Returns void.
3218 * rs6000-xdep.c (fetch_core_registers): add unused param reg_addr
3219 * rs6000-xdep.c (aixcoff_relocate_symtab): Convert from misc function
3220 vector use to minimal symbol table use.
3221 * solib.c: Add prototypes for local functions.
3222 * solib.c (solib_add_common_symbols, locate_base): Convert from misc
3223 function vector use to minimal symbol table use.
3224 * solib.c (EXFUN/DEFUN): Remove all usages, convert to PARAM.
3225 * solib.c (find_solib, shared_library_command): Make static
3226 * solib.c (read_memory, write_memory usages): Cast args.
3227 * solib.c (special_symbol_handling): Add function
3228 * source.c: Add prototypes for local functions.
3229 * source.c (select_source_symtab): Convert to scan objfiles.
3230 * source.c (open_source_file): Make static.
3231 * source.c (xrealloc usages): Cast args.
3232 * source.c (source_line_charpos): ifdef out, unused.
3233 * source.c (get_filename_and_charpos): Make static.
3234 * stack.c: Add prototypes for local functions.
3235 * stack.c (print_frame_info, frame_info): Convert from misc function
3236 vector use to minimal symbol table use.
3237 * symfile.c: Add prototypes for local functions.
3238 * symfile.c (compare_symbols): Make args const PTR's.
3239 * symfile.c (compare_psymbols, sort_pst_symbols) add.
3240 * symfile.c (sort_all_symtab_syms): Scan objfile list.
3241 * symfile.c (obsavestring): Add objfile parameter.
3242 * symfile.c (init_misc_bunches, prim_record_misc_function,
3243 compare_misc_functions, discard_misc_bunches, condense_misc_bunches,
3244 sort_misc_function_vector, compact_misc_function_vector): Remove
3245 * symfile.c (symbol_file_add_digested): Add function.
3246 * symfile.c (symbol_file_add): Returns struct objfile *.
3247 * symfile.c (symbol_file_command): Modify for state file use.
3248 * symfile.c (symfile_open): Add parameter "dumpable".
3249 * symfile.c (allocate_objfile, free_objfile): Moved to objfiles.c
3250 * symfile.c (load_command, add_symbol_file_command): Make static.
3251 * symfile.c (fill_in_vptr_fieldno): Moved to gdbtypes.c
3252 * symfile.c (rindex usages): Converted to strrchr.
3253 * symfile.c (allocate_psymtab): New
3254 * symfile.c (free_named_symtabs): Ifdef out code that needs to be
3255 converted to minimal symbol table usage, but no obvious conversion.
3256 * symfile.c (free_all_symtabs): Remove.
3257 * symfile.c (_initialize_symfile): Use per-objfile info.
3258 * symfile.h: Rework the objfile structure to add per-objfile data
3259 objects (psymbol_obstack, symbol_obstack, type_obstack,
3260 global_psymbols, static_psymbols, msymbols, minimal_symbol_count,
3261 fundamental_types, malloc, realloc, free, xmalloc, xrealloc, etc).
3262 Add prototypes to function declarations.
3263 * symm-tdep.c (symmetry_extract_return_value): Convert from misc
3264 function vector usage to minimal symbol table usage.
3265 * symmisc.c (DEV_TTY): Define if not defined.
3266 * symmisc.c: Add local function prototypes.
3267 * symmisc.c (dump_objfile, dump_msymbols, dump-symtab, print_syms,
3268 printpsyms_command, print_objfiles, print_objfiles_command):
3269 Rework to use iterate_over_*
3270 * symtab.c: Add prototypes for local functions.
3271 * symtab.c (lookup_symtab_1): Convert to look through objfiles.
3272 * symtab.c (lookup_partial_symtab): Scan through objfiles.
3273 * symtab.c (lookup_primitive_typename, lookup_typename, lookup_
3274 unsigned_typename, lookup_struct, lookup_union, lookup_enum,
3275 lookup_template_type, lookup_struct_elt_type, lookup_pointer_type,
3276 lookup_reference_type, lookup_member_type, allocate_stub_method,
3277 check_stub_method, create_array_type, smash_to_member_type,):
3278 Moved to gdbtypes.c
3279 * symtab.c (lookup_symbol): Some args are const.
3280 * symtab.h: All type related defs and structs moved to gdbtypes.h
3281 * symtab.h: Convert decls to prototypes.
3282 * target.c (noprocess): Make static.
3283 * target.h: Change decl's to prototypes.
3284 * tm-sunos.h: (CLEAR_SOLIB, SOLIB_ADD, SOLIB_CREATE_INFERIOR_HOOK,
3285 DISABLE_UNSETTABLE_BREAK) Moved to solib.h.
3286 * utils.c (_initialize_utils): Use correct member of function union.
3287 * valarith.c: include gdbtypes.h
3288 * valops.c: include gdbtypes.h, add prototypes for local functions.
3289 * valops.c (value_push, value_arg_push, find_function_addr):
3290 Make static.
3291 * valops.c (value_string): Convert from misc function vector use
3292 to minimal symbol table use.
3293 * valops.c (check_field_in): Make arg const.
3294 * valprint.c: Add prototypes for local functions.
3295 * valprint.c (print_string): Make static
3296 * valprint.c (value_print, val_print_fields, val_print): Make arg int.
3297 * values.c: Add prototypes for local functions.
3298 * values.c (value_headof): Convert from misc function vector to
3299 minimal symbol table.
3300 * xcoffexec.c: Add prototypes for local functions.
3301 * xcoffexec.c (exec_close, file_command, add_to_section_table):
3302 Make static.
3303 * xcoffexec.c (relocate_minimal_symbol): Add.
3304 * xcoffread.c (patch_block_stabs): Moved to buildsyms.c.
3305 * xcoffread.c: Add prototypes for local functions.
3306 * xcoffread.c (sort_syms): Convert to scan objfiles.
3307 * xcoffread.c (read_xcoff_symtab): Make static.
3308 * xcoffread.c (various): Replace references to builtin types with
3309 calls to lookup_fundamental_type. Replace references to symbol_obstack
3310 and psymbol_obstack with pointers to the per-objfile copies.
3311 * xcoffread.c (dump_linetable, dump_type, dump_symbol, dump_namespace,
3312 dump_block, dump_blockvector, dump_last_symtab, dump_symtabs):
3313 Make static.
3314 * xcoffread.c (init_stringtab): Add objfile parameter.
3315 * gdbtypes.c: New file
3316 * minsyms.c: New file
3317 * mmap-alloc.c: New file
3318 * mmap-sbrk.c: New file
3319 * objfiles.c: New file
3320 * state.c: New file
3321 * state.h: New file
3322
021959e2
JG
3323Fri Feb 21 17:29:54 1992 John Gilmore (gnu at cygnus.com)
3324
3325 * Check in Fred Fish's changes in these modules. Fred
93fe4e33
JG
3326 will make ChangeLog entries for all of them. Update VERSION
3327 to 4.4.2.
021959e2 3328
7919c3ed
JG
3329Thu Feb 20 18:10:17 1992 Fred Fish (fnf at cygnus.com)
3330
3331 * tm-sparc.h, tm-sysv4.h, solib.h: Move shared lib definitions
3332 into solib.h.
3333 * sparc-pinsn.c, sparc-tdep.c, standalonec, sun3-xdep.c,
3334 sun386-xdep.c, symm-xdep.c, target.c, ultra3-xdep.c, utils.c,
3335 value.h: Prototypes for static functions; lint.
3336 * gdbtypes.h: Empty file to ease transition.
3337
75af490b
JG
3338Thu Feb 20 16:43:13 1992 Fred Fish (fnf at cygnus.com)
3339
3340 * environ.h, expression.h, frame.h, gdbcmd.h, gdbcore.h,
3341 inferior.h, language.h, signame.h, target.h, terminal.h,
3342 tm-68k.h, tm-i386v.h, tm-sparc.h, tm-sun386.h, tm-symmetry.h,
3343 xm-i386v.h, xm-sparc.h: Prototypes for all external functions.
3344 Lint.
3345 * core.c, exec.c, infrun.c, inftarg.c, language.c, remote.c,
3346 signame.c, sparc-xdep.c: Prototypes for all static functions.
3347 Lint.
3348 * core.c, eval.c, exec.c, inftarg.c, remote-adapt.c, remote-eb.c,
3349 remote-hms.c, remote-mm.c, remote-nindy.c, remote-vx.c, remote.c,
3350 target.c, target.h, valarith.c, valops.c, value.h, xcoffexec.c:
3351 Remove to_call_function and target_call_function, since it
3352 always calls the same thing (call_function_by_hand).
3353 * core.c, exec.c, solib.c: Rename target_ops sections =>
3354 to_sections, etc.
3355 * infcmd.c, inflow.c, infptrace.c, infrun.c, main.c, target.c,
3356 target.h: target_kill takes no args.
3357 * language.c (language_info): Scaffolding to allow briefer
3358 messages when the current language changes. FIXME.
3359 * xm-amix.h, xm-i386v4.h, xm-stratus.h: Define NORETURN to avoid
3360 complaints about volatile functions.
3361 * xm-sysv4.h (HAVE_MMAP): Define.
3362
3363Thu Feb 20 09:04:18 1992 Fred Fish (fnf at cygnus.com)
088c3a0b
JG
3364
3365 * defs.h: Include ansidecl.h and PARAMS macro. Use PARAMS
3366 to make prototypes for all functions declared here.
3367 * cplus-dem.c: Avoid declaring xmalloc and xrealloc.
3368 * c-exp.y: Rename SIGNED, OR, and AND to avoid conflict.
3369 * environ.c: Include <stdio.h> before defs.h. Minor cleanup.
3370 * ieee-float.h: Use PARAMS for prototypes; make some params const.
3371 * ieee-float.c, valarith.c: Include <stdio.h>. Lint. b*=>mem*.
3372 * m2-exp.y: Remove unused CONST; Rename OR and AND.
3373 * utils.c: Avoid declaring malloc and realloc. Lint.
3374 (request_quit): Accept signal-number parameter.
3375
af213624
FF
3376Mon Feb 17 07:13:27 1992 Fred Fish (fnf at cygnus.com)
3377
9e4c1921
FF
3378 * dwarfread.c (process_dies): Add case to handle TAG_pointer_type
3379 DIE's. Add new function read_tag_pointer_type() to read them.
3380
af213624
FF
3381 * dwarfread.c (dwarf_read_array_type, read_subroutine_type):
3382 When creating a new user defined type, check to see if a partial
3383 type already exists, and if so, bash it to fit.
3384
be8303da
JG
3385Fri Feb 14 19:00:17 1992 John Gilmore (gnu at cygnus.com)
3386
3387 * coffread.c (decode_base_type): Pass long, not union.
3388 Fix by Eric Valette, ev@chorus.fr.
3389
d35bf52d
FF
3390Thu Feb 13 17:14:28 1992 Fred Fish (fnf at cygnus.com)
3391
3392 * elfread.c (elf_symtab_read): Fix code to correctly track
3393 changes in bfd for absolute symbols.
3394
5b620e75
SG
3395Thu Feb 13 12:43:29 1992 Stu Grossman (grossman at cygnus.com)
3396
3397 * xm-vaxbsd.h: Close off comment.
3398
0a663e9e
FF
3399Thu Feb 13 07:45:19 1992 Fred Fish (fnf at cygnus.com)
3400
3401 * xm-sysv4.h: Define NEED_POSIX_SETPGID.
3402
3403Fri Feb 7 11:51:12 1992 Per Bothner (bothner at cygnus.com)
3404
3405 * mips-tdep.c (mips_print_registers): Print correct register
3406 number for double pseudo-registers.
3407
ef9b1bc9
JG
3408Fri Feb 7 07:56:05 1992 John Gilmore (gnu at cygnus.com)
3409
256269fc
JG
3410 * buildsym.c (read_struct_type): Avoid double-bump of parse ptr
3411 in the op$::OPERATOR. case. From Steven McCanne,
3412 <mccanne@horse.ee.lbl.gov>.
3413
ef9b1bc9
JG
3414 * exec.c (set_section_name): Pass arg to exec_files_info;
3415 only call it if interactive. From Francis Kauth <fk@tv.tv.tek.com>.
3416
195853fc
JG
3417Thu Feb 6 17:41:32 1992 John Gilmore (gnu at cygnus.com)
3418
3419 * main.c (print_gdb_version): Copyright msg: only this year.
3420 (cd_command): Avoid changing current_directory on error.
3421
ee17fd34
PB
3422Thu Feb 6 15:14:01 1992 Per Bothner (bothner at cygnus.com)
3423
3424 * mipsread.c (parse_partial_symbols): Handle dependencies
3425 between partial symbol tables (when not doing stabs-in-ecoff).
3426 (This used to be handled by parse_fdr, but parse_fdr was
3427 incompatible with handling stabs-in-ecoff, so the code
3428 was re-written to not use parse_fdr. Unfortunately,
3429 the logic to handle dependencies was overlooked.)
3430
1f46923f
SC
3431Thu Feb 6 11:51:39 1992 Steve Chamberlain (sac at rtl.cygnus.com)
3432
3433 * coffread.c (read_enum_type): Use the size of a target int when
3434 describing enum.
3435 * defs.h: added new #define for TARGET_PTR_BIT, defaults to size
3436 of target int.
3437 * h8300-tdep.c, remote-hms.c, tm-h8300.h: too many changes to count
3438 * symtab.c (lookup_reference_type, lookup_ptr_type): use
3439 TARGET_PTR_BIT to determine size of a pointer
3440 * values.c (unpack_long): when unpacking a REF or a PTR don't
3441 assume the size of the type.
3442
778c358d
JG
3443Wed Feb 5 22:29:59 1992 John Gilmore (gnu at cygnus.com)
3444
3445 * mipsread.c (parse_symbol): Avoid clobbering enum pointer when
3446 looking at its members. Improve guess between struct and union,
3447 only assuming union if multiple members have offsets of zero.
3448
bd49ef36
PB
3449Tue Feb 4 18:05:44 1992 Per Bothner (bothner at cygnus.com)
3450
3451 * mipsread.c: Use (FP0_REGNUM-32) instead of magic number 6.
3452 (This is just for clarity - and one day permitting us to
3453 change FP0_REGNUM from 38 to 32, which would make more sense.)
3454 * tm-mips.h: Added STAB_REG_TO_REGNUM macro, so that
3455 register numbers in stabs-in-ecoff get handled correctly.
3456
3457Sat Feb 1 04:45:10 1992 Stu Grossman (grossman at cygnus.com)
3458
3459 * xm-vax.h, xm-vaxult.h, xm-vaxbsd.h, config/mh-vaxult,
3460 config/mh-vaxbsd, configure.in: Split up config stuff for Vaxen
3461 into BSD and Ultrix.
3462
96499e96
JG
3463Sat Feb 1 04:39:41 1992 John Gilmore (gnu at cygnus.com)
3464
3465 * dbxread.c (dbx_symfile_init): Call malloc, not xmalloc.
3466
98f03b91
SG
3467Sat Feb 1 04:15:41 1992 Stu Grossman (grossman at cygnus.com)
3468
dafe57bc 3469 * Makefile.in: Increment version to 4.4.1.
98f03b91
SG
3470 * main.c (print_gdb_version): Update copyright notice.
3471
3472Sat Feb 1 01:43:11 1992 Per Bothner (bothner at cygnus.com)
3473
3474 * mipsread.c: Prepend "struct " to the names of structure
3475 types, and similarly for enums and unions. (This used
3476 to be done, but got lost in the re-write to "guess" the
3477 difference between enum/struct/union.)
3478 Also, guess that a tag is an enum if the first member
3479 has type btNil.
3480
3671f1fd
SG
3481Fri Jan 31 21:45:51 1992 Stu Grossman (grossman at cygnus.com)
3482
3483 * xm-vax.h: #ifndef ultrix around #include of endian.h and
3484 limits.h (sigh).
3485
0c6efbcc
JG
3486Fri Jan 31 00:05:01 1992 John Gilmore (gnu at cygnus.com)
3487
ee7270cd
JG
3488 * Projects: Patching executables is done.
3489 * Makefile.in (VERSION): Roll to gdb-4.4.
75c86b57 3490 * README, WHATS.NEW: Update for gdb-4.4.
ee7270cd 3491
4a1dcb7f
JG
3492 * symfile.c (reread_symbols): Whenever we reread one object
3493 file's symbols, we must restart the scan, because the object_files
3494 chain has been permuted.
3495
0c6efbcc
JG
3496 * exec.c (exec_files_info): Split out into print_section_info.
3497 Print BFD filename of each section if it's not the default one.
3498 * core.c (core_files_info): Call print_section_info.
3499
3500 * xm-vax.h: Include a few system header files whose definitions
3501 must precede defs.h.
3502 * language.c, language.h: Make some things const.
3503 * expression.h, main.c: const spreads like ooze.
3504
3505 * mem-break.c (break_insn, break_insn_size): Use unsigned chars,
3506 since BREAKPOINT values can be >0x80.
3507
d58ea996
SG
3508Thu Jan 30 17:21:14 1992 Stu Grossman (grossman at cygnus.com)
3509
3510 * infrun.c, xm-i386sco.h: SCO needs to use setpgid().
3511
0c6efbcc
JG
3512Thu Jan 30 01:04:23 1992 John Gilmore (gnu at cygnus.com)
3513
3514 * sparc-pinsn.c: Remove kludge for preferring architectures.
3515 Remove #ifdef's for SORT_NEEDED. We need to sort the table, now
3516 and forever. Add `add' instruction to the set that get checked
3517 for a preceding `sethi' in order to print an absolute address.
3518 Corresponding changes in ../include/opcode/sparc.h needed
3519 to eliminate garbage instructions.
3520
d4ea2aba
PB
3521Wed Jan 29 19:24:34 1992 Per Bothner (bothner at cygnus.com)
3522
3523 * mipsread.c (parse_partial_symbols): Make sure partial
3524 symbols are created for external symbols (as used to be
3525 the case). This is a bit of a pain with the mips-coff.
3526 It uses a table which points to all of the external
3527 symbols belonging to a particular FDR or psymtab.
3528 Once we've generated this table, we might as well save
3529 it, and then use it in psymtab_to_symtab_1 to find
3530 the symbols to pass to parse_external().
3531 * symfile.c, symfile.c: New function start_psymtab_common
3532 to share the common parts of allocating a new psymtab
3533 for dbxread, mipsread (and later dwarfread). Its code
3534 was pulled out from start_psymtab in dbxread.c.
3535 * dbxread.c (start_psymtab): Use start_psymtab_common().
3536
3537 * valprint.c (val_print): If there is an error when trying
3538 to print a string, check to see if there really is a problem
3539 by reading just one character. If that works, assume
3540 things are ok.
3541
05151637
SG
3542Wed Jan 29 18:58:43 1992 Stu Grossman (grossman at cygnus.com)
3543
3544 * sparc-pinsn.c (compare_opcodes): Make it prefer v6, v7,
3545 cypress, v8 mnemonics in that order.
3546
4a074bea
PB
3547Tue Jan 28 17:32:13 1992 Per Bothner (bothner at cygnus.com)
3548
3549 * sparc-pinsn.c: Put the qsort() back in.
3550
c55e6167 3551Mon Jan 27 18:51:03 1992 John Gilmore (gnu at cygnus.com)
1aa560b2 3552
eae1a261
JG
3553 * findvar.c (read_register, write_register): Handle machines
3554 where REGISTER_TYPE is not the same size as "int".
3555
c55e6167 3556 Handle debug symbols in dynamically loaded (relocated) code:
3c03b5de 3557
c55e6167
JG
3558 * dbxread.c (read_ofile_symtab): Fix up N_CATCH better. Pass
3559 offset to process_one_symbol.
3560 (process_one_symbol): Take new offset parameter. Add it into
3561 appropriate symbol types to relocate symbols to loaded addresses.
3562 Handle all possible symbol types, and complain() about types that
3563 we don't expect to see.
3564 * mipsread.c (psymtab_to_symtab_1): Pass offset of zero to
3565 process_one_symbol (FIXME, should pass real offset).
1aa560b2 3566
c55e6167
JG
3567 Misc bugfixes:
3568
3569 * breakpoint.c (resolve_sal_pc): Split out code to resolve a
3570 sal's PC value.
3571 (set_breakpoint, break_command_1, until_break_command,
3572 catch_command_1, breakpoint_re_set_one): Use it.
c55e6167
JG
3573 * symtab.h (resolve_sal_pc): Declare.
3574 * infcmd.c (jump_command): Use resolve_sal_pc.
3575
4cc9f7e2 3576 * source.c (list_command): Shorten "FILE, line N" to "FILE:N".
c55e6167
JG
3577
3578 * putenv.c (putenv): Avoid unportably casting pointers to unsigneds.
3818ed33 3579
5a4e7215
JG
3580 * c-exp.y (yylex): `this' and `template' are only tokens in C++.
3581
3818ed33
JG
3582 * xm-convex.h, xm-hp300bsd.h, xm-isi.h, xm-merlin.h, xm-news.h,
3583 xm-np1.h, xm-pn.h, xm-pyr.h, xm-rtbsd.h, xm-symmetry.h, xm-umax.h:
3584 Remove MISSING_VPRINTF declaration, and superfluous "kgdb" defines.
3585
c55e6167
JG
3586Mon Jan 27 15:46:21 1992 Stu Grossman (grossman at cygnus.com)
3587
3588 * dbxread.c (process_one_symbol): Make a first cut at handling
3589 symbol tables generated by Sun's acc. (#ifdef'd out, FIXME.)
3590
3591 * symtab.c (find_pc_line): Fix stepping into and out of #included
3592 files.
3593
71f49876
SG
3594Mon Jan 27 13:00:55 1992 Stu Grossman (grossman at cygnus.com)
3595
3596 * Makefile.in (OPCODES): Remove OPCODES defs and refs. There is
3597 no longer any need to copy ../include/opcode/* into gdb.
3598
fd8db897
JG
3599Mon Jan 27 12:30:38 1992 John Gilmore (gnu at cygnus.com)
3600
3601 * ChangeLog, ChangeLog-9091: Split ChangeLog at 1992.
3602
24b2fbdc
PB
3603Sun Jan 26 19:05:40 1992 Per Bothner (bothner at cygnus.com)
3604
3605 * valprint.c (type_print_base, type_print_method_args):
3606 Print C++ constructor methods without bogus "return type."
3607
cdb90e99
FF
3608Sat Jan 25 15:57:59 1992 Fred Fish (fnf at cygnus.com)
3609
3610 * infptrace.c (child_xfer_memory): Parameter "target" should
3611 be a pointer to a structure, not the entire structure.
3612
1b07e406
FF
3613Fri Jan 24 01:30:27 1992 Fred Fish (fnf at cygnus.com)
3614
3615 * depend: Convert the couple of references to ansidecl.h that
3616 used the local gdb version to use the ../include version.
3617
9a1ae235
FF
3618Thu Jan 23 22:24:43 1992 Fred Fish (fnf at cygnus.com)
3619
f66f459f
FF
3620 * procfs.c
3621 (child_xfer_memory): Takes pointer to a struct, not entire struct.
3622 (inferior_proc_init): Fix non-ANSI version of args.
3623 (attach): Call print_sys_errmsg with correct number of args.
3624 (mappingflags): Make static, does not need to be global.
3625
fc1f8646
FF
3626 * i386-tdep.c (i386_frame_num_args): Takes a pointer to a struct
3627 not the entire struct itself.
3628
1b7a420e
FF
3629 * valops.c (value_assign): Cast some args to modify_field() and
3630 {read,write}_register_bytes() correctly.
3631
9a1ae235
FF
3632 * ansidecl.h: Removed, is duplicate of ../include/ansidecl.h
3633
99140c31
FF
3634 * Makefile.in (MALLOCSRC): Removed reference to removed local
3635 copy of ansidecl.h.
3636
3637 * dwarfread.c (list_in_scope): Needs an initial value, use file
3638 scope.
3639
9a1ae235
FF
3640Mon Jan 20 19:06:28 1992 Stu Grossman (grossman at cygnus.com)
3641
3642 * main.c (main): Make option_index local to keep new getopt happy.
3643 main.c, solib.c, Makefile.in: Update copyright notices.
3644
0eb0a820
MT
3645Mon Jan 20 08:54:00 1992 Michael Tiemann (tiemann at cygnus.com)
3646
3647 * cplus-dem.c (cplus_demangle): Correctly demangle destructors.
3648
313085cb
SG
3649Sat Jan 18 17:17:45 1992 Stu Grossman (grossman at cygnus.com)
3650
3651 * Makefile.in (HFILES): Add partial-stab.h.
3652
be9a2362
FF
3653Sat Jan 18 16:45:01 1992 Fred Fish (fnf at cygnus.com)
3654
24e7d5ba
JG
3655 * config/mh-stratus, config/mt-stratus, tm-stratus.h, xm-stratus.h:
3656 New files for stratus. Not complete enough to actually build
3657 on the Stratus machine; that awaits copyright assignment for
3658 i860 changes.
be9a2362
FF
3659
3660 * Makefile.in (USER_CFLAGS): Add macro specifically reserved
3661 for getting custom flags into CFLAGS when doing makes.
3662
3663 * configure.in: Add config information for stratus.
3664
cdce29ee
FF
3665Thu Jan 16 00:51:46 1992 Fred Fish (fnf at cygnus.com)
3666
3667 * dbxread.c (process_one_symbol): Pass address of structure
3668 to complain(), rather than the whole structure.
3669
7f435241
FF
3670Wed Jan 15 09:56:16 1992 Fred Fish (fnf at cygnus.com)
3671
3672 * solib.c (solib_add_common_symbols): Only compile in when not
3673 using SVR4 style shared libraries.
3674
a5bd5ba6
FF
3675Tue Jan 14 22:34:00 1992 Fred Fish (fnf at cygnus.com)
3676
3677 * dwarfread.c (locval): Add offreg flag to indicate location
3678 values that are computed off a base register.
3679
3680 * dwarfread.c (new_symbol): Rework TAG_global_variable and
3681 TAG_local_variable cases to account for static variables
3682 within function scopes.
3683
7e97eb28
SG
3684Tue Jan 14 12:28:52 1992 Stu Grossman (grossman at cygnus.com)
3685
8c3d2a53
SG
3686 * inflow.c: remove #include <sys/dir.h>. Not necessary, and
3687 doesn't exist on some systems.
3688
5e746644
SG
3689 * infrun.c (wait_for_inferior!!!!): Prevent gdb from hanging when
3690 nexting over recursive function calls.
3691
d261ece7
SG
3692 * target.c (target_read_string): Create this routine to read null
3693 terminated strings from the target. It deals with running off the
3694 end of memory elegantly as well. solib.c (find_solib): Use
3695 target_read_string() to avoid problems with running off the end of
3696 memory.
3697
7e97eb28
SG
3698 * inflow.c (child_terminal_info): #ifdef TIOCPGRP around lines
3699 that reference pgrp_inferior.
3700
0cf9329b
PB
3701Mon Jan 13 14:57:11 1992 Per Bothner (bothner at cygnus.com)
3702
3703 * tm-mips.h: Removed BLOCK_ADDRESS_ABSOLUTE, now that
3704 mips-tfile has been hacked to act more "traditionally."
3705 * dbxread.c: Fixed typo in comment.
3706
488d2691
PB
3707Sun Jan 12 13:08:36 1992 Per Bothner (bothner at cygnus.com)
3708
3709 * mips-tdep.c (mips_skip_prologue): Add some number of
3710 'sw' instructions before 'addiu' adjusts the stack.
3711
4d315a07
FF
3712Fri Jan 10 13:47:06 1992 Fred Fish (fnf at cygnus.com)
3713
3714 * dwarfread.c (start_symtab, end_symtab, scopecount, openscope,
3715 freescope, buildblock closescope, record_line, add_symbol_to_list,
3716 gatherblocks, make_blockvector): Extensive changes to switch
3717 to generic symbol table building code in buildsym.c. Remove
3718 scope tree structures and functions, symbol table building
3719 functions, and lots of other small changes.
3720
3721 * dwarfread.c: Add new macros GCC_PRODUCER and STREQN. Remove
3722 GCC_COMPILED_FLAG_SYMBOL and GCC2_COMPILED_FLAG_SYMBOL.
3723
3724Tue Jan 7 13:09:57 1992 Stu Grossman (grossman at cygnus.com)
3725
3726 * buildsym.c (cleanup_undefined_types): Add support for enums.
3727 This fixes the 'GDB internal error. cleanup_undefined_types with
3728 bad type' problem.
3729
3730Sun Jan 5 09:47:50 1992 Stu Grossman (grossman at cygnus.com)
3731
3732 * dbxread.c: detect gcc2 compilations.
3733
1a4d253c
JG
3734Thu Jan 2 15:07:41 1992 John Gilmore (gnu at cygnus.com)
3735
3736 * sparc-pinsn.c: Rename bitfields that overlap with macro names
3737 in ../include/opcode/sparc.h.
3738
1d4c28c5
FF
3739Wed Jan 1 04:29:00 1992 Fred Fish (fnf at cygnus.com)
3740
3741 * Makefile.in: Change tm-svr4.h to tm-sysv4.h. Change xm-svr4.h
3742 to xm-sysv4.h. Split OPCODE_DIR into OPCODE_DIR1 and OPCODE_DIR2
3743 to reflect actual locations of opcode files, so TAGS target will
3744 be buildable.
3745
3746 * i386-tdep.c: Change an erroneous 'm68k' reference to 'i386'.
3747
3748 * i386-tdep.c (supply_fpregset, fill_fpregset): Remove m68k
3749 code.
3750
3751 * m68k-tdep.c (supply_fpregset, fill_fpregset): Fix array
3752 dereferencing to access the correct elements.
3753
3754 * valops.c (value_addr): Declare return type of external func
3755 value_copy().
3756
3757 * xcoffread.c: Undefine next_symbol_text before redefining it.
3758
fd8db897 3759For older changes see ChangeLog-9091
bd5635a1
RP
3760\f
3761Local Variables:
3762mode: indented-text
3763left-margin: 8
3764fill-column: 74
3765version-control: never
3766End:
This page took 0.247075 seconds and 4 git commands to generate.