* tm-29k.h: Set DECR_PC_AFTER_BREAK to 0, as 29ks have nice
[deliverable/binutils-gdb.git] / gdb / ChangeLog
CommitLineData
c8094777
FF
1Thu Apr 23 18:43:17 1992 Fred Fish (fnf@cygnus.com)
2
66a8a9b4
SG
3 * tm-29k.h: Set DECR_PC_AFTER_BREAK to 0, as 29ks have nice
4 breakpoint instructions that leave PC pointing at the right place.
5
c8094777
FF
6 * core.c (core_open): Call warning() to print warnings.
7
35a25840
SG
8Wed Apr 22 09:55:42 1992 Stu Grossman (grossman at cygnus.com)
9
10 * symtab.c (lookup_symbol): Need to check if msymbol->name is
11 NULL, as ALL_MSYMBOLS will never return a NULL msymbol pointer.
12 This prevents a crash when trying to lookup the value of a
13 non-existent symbol.
14
4ace50a5
FF
15Wed Apr 22 09:42:15 1992 Fred Fish (fnf@cygnus.com)
16
17 * signame.c, signame.h: Remove, replaced by strsignal.c in
18 libiberty.
19 * i960-tdep.c, infrun.c, mach386-xdep.c, procfs.c, sparc-tdep.c,
20 sun386-xdep.c: Remove include of signame.h
21 * Makefile.in (SFILES_MAINDIR): Remove signame.c
22 * Makefile.in (HFILES): Remove signame.h
23 * Makefile.in (OBS): Remove signame.o
24 * defs.h (safe_strerror, safe_strsignal, strerrno, strsigno,
25 errno_max, signo_max, strtoerrno, strtosigno, strsignal,
26 psignal, perror): Add prototypes.
27 * defs.h, xm-apollo68v.h, xm-ultra3.h (SYS_SIGLIST_MISSING):
28 Remove define.
29 * depend: Manually remove signame.[cho] references.
30 * convex-tdep.c (subsig_name): Replace use of sys_siglist with
31 strsignal.
32 * convex-xdep.c (core_file_command): Replace use of sys_siglist
33 with safe_strsignal.
34 * core.c (core_open): Replace use of sys_siglist with
35 safe_strsignal.
36 * core.c (memory_error): Replace use of sys_errlist with
37 safe_strerror.
38 * i960-tdep.c (print_fault): Replace use of sys_siglist with
39 safe_strsignal.
40 * infcmd.c (program_info): Replace use of sys_siglist with
41 safe_strsignal.
42 * infrun.c (signal_stop, signal_print, signal_program):
43 Allocate dynamically based on dynamic determination of number
44 of signals to support.
45 * infrun.c (child_create_inferior): Replace use of sys_errlist
46 with safe_strerror.
47 * infrun.c (wait_for_inferior): Replace use of sys_siglist with
48 safe_strsignal.
49 * infrun.c (sig_print_info): Replace use of sig_abbrev with
50 strsigno and sys_siglist with safe_strsignal.
51 * infrun.c (handle_command): Call signo_max to find number of
52 signals. Replace sig_number with strtosigno and sig_abbrev with
53 strsigno.
54 * infrun.c (signals_info): Replace sig_number with strtosigno.
55 * infrun.c (_initialize_infrun): Call signo_max to find number of
56 signals. Dynamically allocate signal_{stop,print,program}.
57 * procfs.c (errno_table): Remove, now in libiberty/strerror.c.
58 * procfs.c (errnoname): Add function and prototype.
59 * procfs.c (info_proc_siginfo): Call errnoname, replace use
60 of sys_siglist with safe_strsignal.
61 * procfs.c (info_proc_stop, info_proc_signals): Replace use of
62 sys_siglist with safe_strsignal.
63 * procfs.c (info_proc_stop): Call errnoname.
64 * procfs.c (signalname): Replace sig_abbrev with strsigno.
65 * stuff.c (main, get_offset): Replace use of sys_errlist with
66 strerror.
67 * sun386-xdep.c (core_file_command): Replace use of sys_siglist
68 with safe_strsignal.
69 * umax-xdep.c (core_file_command): Replace use of sys_siglist
70 with safe_strsignal.
71 * utils.c (safe_strerror, safe_strsignal): Add functions that
72 call strerror and strsignal respectively, and deal with NULL
73 returns.
74 * utils.c (perror_with_name, print_sys_errmsg): Replace use of
75 sys_errlist with safe_strerror.
76 * valprint.c (val_print): Replace use of sys_errlist with
77 safe_strerror.
78
6e6bf7f2
RP
79Tue Apr 21 12:00:47 1992 K. Richard Pixley (rich@cygnus.com)
80
81 * Makefile.in: rework CFLAGS so that they can be set from the
82 command line to make. CFLAGS -> INTERNAL_CFLAGS.
83 USER_CFLAGS -> CFLAGS. Remove MINUS_G. Default CFLAGS to -g.
84 Pass CFLAGS on recusions.
85
86Fri Apr 17 19:25:57 1992 Fred Fish (fnf@cygnus.com)
87
88 * gdbtypes.h, c-exp.y, m2-exp.y, mipsread.c, gdbtypes.c: Back
89 out of change on 4/14/92 and remove TYPE_FLAG_FUND_TYPE. It was
90 overkill for the problem it solved.
91 * valprint.c (type_print_base): Remove TYPE_FLAG_FUND_TYPE test
92 and default to simply printing type names as appropriate.
93 * main.c (main): Remove one of the leading newlines from
94 warning_pre_print initialization.
95 * objfiles.c (open_existing_mapped_file): Add function and
96 prototype.
97 * objfiles.c (open_mapped_file): Rewrite to use new function
98 open_existing_mapped_file.
99
b0c8c726
JG
100Thu Apr 16 23:50:12 1992 John Gilmore (gnu at cygnus.com)
101
102 * sun3-xdep.c (fetch_core_registers): Lint.
103 * tm-sun3.h: Prototype lint.
104 * value.h: Typo.
105
2d6d969c
FF
106Thu Apr 16 19:56:50 1992 Fred Fish (fnf@cygnus.com)
107
108 * dwarfread.c (TARGET_FT_POINTER_SIZE, TARGET_FT_LONG_SIZE):
109 Define using TARGET_PTR_BIT and TARGET_LONG_BIT for now.
110 * objfiles.c: Cast calls to close() with unused returns to void.
111 * objfiles.c (allocate_objfile): Initialize objfile's mmfd, free
112 old objfile's name before updating it.
113 * objfiles.c (free_objfile): Major rewrite for mapped objfiles.
114 * objfiles.h (objfile struct): Add mmfd member.
115 * symfile.c (syms_from_objfile): Move some code to
116 new_symfile_objfile.
117 * symfile.c (new_symfile_objfile): Add new function, common code
118 from syms_from_objfile.
119 * symfile.c (symbol_file_add): Call new_symfile_objfile for both
120 mapped and unmapped symbol files.
121 * symfile.c (symbol_file_command): Print "No symbol file now"
122 message, ala exec_file_command for the exec file.
123 * symfile.h (new_symfile_objfile): Add prototype.
124 * xcoffexec.c (map_vmap): Add call to new_symfile_objfile.
125 * xcoffsolib.c (solib_add): Add call to new_symfile_objfile.
126
d453b386
PB
127Thu Apr 16 18:26:34 1992 Per Bothner (bothner@cygnus.com)
128
129 * rs6000-pinsn.c: New version from IBM (Metin).
130 * m2-exp.y: Re-write string initializers ("<>" => {'<', '>'})
131 to avoid warnings from some compilers.
132
4a11eef2
FF
133Tue Apr 14 22:33:55 1992 Fred Fish (fnf@cygnus.com)
134
135 * gdbtypes.h (FT_FIXED_DECIMAL, FT_FLOAT_DECIMAL): Add defines.
136 * gdbtypes.h (TYPE_FLAG_FUND_TYPE): Add define for bit in a
137 type's flag word that marks it as a fundamental type.
138 * c-exp.y (_initialize_c_exp): Add TYPE_FLAG_FUND_TYPE bit to
139 flags argument for all calls to init_type().
140 * m2-exp.y (_initialize_m2_exp): Add TYPE_FLAG_FUND_TYPE bit to
141 flags argument for all calls to init_type(). Also remove
142 dependency on host sizes for ints, floats, etc.
143 * mipsread.c (_initialize_mipsread): Add TYPE_FLAG_FUND_TYPE bit to
144 flags argument for all calls to init_type(). Also remove
145 dependency on host sizes for ints, floats, etc.
146 * gdbtypes.c (lookup_fundamental_type): Add TYPE_FLAG_FUND_TYPE
147 bit to flags argument for all calls to init_type(). Add types
148 FT_FIXED_DECIMAL and FT_FLOAT_DECIMAL.
149 * valprint.c (unsigned_type_table, signed_type_table,
150 float_type_table): Remove.
151 * valprint.c (type_print_base): Test new TYPE_FLAG_FUND_TYPE
152 bit when printing fundamental types, and print the actual name
153 for such types, rather than inventing one. Remove code that
154 invented fundamental type names.
155 * valprint.c (_initialize_valprint): Remove initializations
156 for now removed unsigned_type_table, signed_type_table, and
157 float_type_table.
158
35a25840
SG
159Tue Apr 14 14:30:46 1992 Stu Grossman (grossman at cygnus.com)
160
161 * remote-vx.c, vx-share/xdr_ptrace.c, vx-share/xdr_ptrace.h,
162 vx-share/xdr_rdb.h: Update for new remote protocol under VxWorks
163 5.0.2.
164
13b5a7ff
FF
165Mon Apr 13 20:59:21 1992 Fred Fish (fnf@cygnus.com)
166
167 * dwarfread.c (target_to_host): New function similar to previous
168 swapin function.
169 * dwarfread.c (SWAPIN, swapin): Remove macro and support function.
170 Extensive changes to convert all previous usages to use new
171 target_to_host() function.
172 * dwarfread.c (struct dieinfo): Change types of most integral
173 members to be unsigned.
174
3bc82410
JG
175Mon Apr 13 15:59:10 1992 John Gilmore (gnu at cygnus.com)
176
177 * WHATS.NEW: Revise -mapped doc.
178
817bc7b8
JG
179Sat Apr 11 23:14:36 1992 John Gilmore (gnu at cygnus.com)
180
181 * mipsread.c (parse_partial_symbols): Complain when sh->index is
182 too high or when skipping `forwards' moves us backwards.
183 (parse_type): Print mis-guessed tag name in complaint.
184 (parse_external): Eliminate cur_stab and obscure top_stack clobbers.
185 (parse_procedure): Do not attempt to create symbols; just fill in
186 the SYMBOL_VALUE field of a .gdbinfo. symbol if we can find one.
187 (psymtab_to_symtab_1): Split up `stabs' from `native ecoff' code
188 for clarity. Set top_stack before calling parse_external. In
189 stabs, sort symbols before calling parse_procedure.
190 * mipsread.c: Lint.
191 * symmisc.c (std_in, std_out, std_err): Add vars to access std
192 FILE *'s when debugging GDB (e.g. as args to dump_symtab).
193 * Makefile.in: Remove stage* targets. Avoid echo on recursive
194 makes. Eliminate doc/Makefile from tar.Z file if doc/Makefile.in
195 exists.
196
554d1be4
JG
197Fri Apr 10 23:47:37 1992 John Gilmore (gnu at cygnus.com)
198
44d835be 199 * Makefile.in (VERSION): Set to 4.5.1.
554d1be4
JG
200 * xcoffread.c (NO_TYPEDEFS): Fix typo in commented-out #define.
201 * sparc-tdep.c (supply_gregset, fill_gregset, supply_fpregset,
202 fill_gregset): New functions for SVR4 /proc support.
44d835be
JG
203 * mipsread.c: Cleanup. Add more complaints for unhandled cases.
204 Remove new symbol types and such to ../include/coff/symconst.h.
205 (parse_symbol): Simplify code for parsing struct/enum/unions.
206 (parse_type): Handle `long long' types.
207 (upgrade_type): Handle `const' qualifier.
208 (parse_partial_symbols): fix indentation, clean a bit.
554d1be4 209
6e706950
FF
210Fri Apr 10 22:41:03 1992 Fred Fish (fnf@cygnus.com)
211
95967e73
FF
212 * dwarfread.c (SWAPIN,swapin): New macro and function to call to
213 copy in data from raw read buffers, calling bfd byteswapping
214 routines as appropriate. Use to replace most existing memcpy
215 calls.
216 * dwarfread.c (basicdieinfo, completedieinfo): Add objfile arg.
6e706950
FF
217 * configure.in: Recognize new ncr3000 config.
218 * config/ncr3000.mh: New config file.
219
601836ef
SG
220Fri Apr 10 08:30:58 1992 Stu Grossman (grossman at cygnus.com)
221
6e706950
FF
222 GDB-4.5 release!
223
224 * README: Update for release.
b69ce5ab
SG
225 * Makefile.in: Update version to 4.5.
226 * WHATS.NEW: The obvious.
227
ece32565
SG
228 * depend: Generate new depend file for this release.
229
601836ef
SG
230 * Makefile.in (depend): Fix dependancy generation so that it does
231 not include gcc 'fixincluded' files, which are usually in a system
232 specific location.
233
9b6f92db
PB
234Thu Apr 9 13:35:00 1992 Per Bothner (bothner@rtl.cygnus.com)
235
236 Changes from metin@ibmpa.awdpa.ibm.com (Metin G. Ozisik).
237 * buildsym.c (#ifdef RS6000_TARGET): Don't create unnecessary
238 symbols for nameless types. And, handle `R' (register parameter
239 type) for AIX. (an extension to existing stabstring grammar).
240 * rs6000-xdep.c: Fix typo (= should have been ==).
241
7fe388ad
SG
242Thu Apr 9 12:10:06 1992 Stu Grossman (grossman at cygnus.com)
243
244 * Makefile.in: version=4.4.88, add xm-vax.h to HFILES.
245
9e53d9dc
JG
246Thu Apr 9 02:29:03 1992 John Gilmore (gnu at cygnus.com)
247
248 * xm-sun4os5.h (DO_DEFERRED_STORES, CLEAR_DEFERRED_STORES): Zap.
249 * signame.c (SIGWAITING, SIGLWP): Add.
250
6fba3d7c
PB
251Tue Apr 7 16:34:07 1992 Per Bothner (bothner@cygnus.com)
252
56619803 253 * xm-i386mach.h: add decls for errno and strdup().
ff1e35cb 254
6fba3d7c
PB
255 * breakpoint.c (breakpoint_1): Add (int) casts for enums
256 used in array index context (otherwise, some compilers barf).
257
628c6d3b
SG
258Tue Apr 7 08:45:46 1992 Stu Grossman (grossman at cygnus.com)
259
e05ba37d
SG
260 * m68k-tdep.c, tm-sun3.h: #ifdef around get_longjmp_target().
261 Change def of SAVED_PC_AFTER_CALL to call routine to see if we are
262 in a system call, and provide better backtrace if so.
263
1f415ae7 264 * Makefile.in (HFILES): Add xcoffsolib.h.
c994feb6 265 * rs6k-opcode.h: Move to ../include/opcode/rs6k.h.
2741887b 266 * rs6000-pinsn.c: #include "opcode/rs6k.h"
c994feb6 267
96c19d0f
SG
268 * mipsread.c (read_mips_symtab, read_the_mips_symtab,
269 mipscoff_symfile_read): Convert to BFD to do file I/O.
270
c1bde665
SG
271 * symfile.c: #include <ctype.h> to get proper def if isspace().
272
628c6d3b
SG
273 * i386-tdep.c (get_longjmp_target): #ifdef GET_LONGJMP_TARGET.
274
ad142b8e
PB
275Mon Apr 6 17:25:45 1992 Per Bothner (bothner@cygnus.com)
276
277 * mipsread.c: Create a .gdbinfo pseudo-symbol for each
278 function also when parsing embedded stabs.
279
ce9260ae
SG
280Mon Apr 6 15:25:03 1992 Stu Grossman (grossman at cygnus.com)
281
391ca579
SG
282 * mipsread.c: Fix more declarations.
283
e5578a31
SG
284 * mipsread.c: Fix many invocations of complain. Use enum
285 type_code where appropriate.
41bd448e 286
995e7f86
SG
287 * xm-vaxult.h: Add decl for strdup().
288
ce9260ae
SG
289 * Makefile.in: Add dependancies for xm-vaxbsd.h and xm-vaxult.h
290 for xm-vax.h.
291
b2de19e3
SG
292Fri Apr 3 17:41:29 1992 Stu Grossman (grossman at cygnus.com)
293
294 * buildsym.h, dbxread.c, mipsread.c: Add objfile arg to
295 process_one_symbol.
296
556f3d90
PB
297Fri Apr 3 12:17:14 1992 Per Bothner (bothner@cygnus.com)
298
299 * munch: Must pre-pend "_" to "initialize" for SYSV style nm.
300 * tm-rs6000.h, xcoffexec.c, xcoffread.c, xm-rs6000.h:
301 Merge in more patches for rs6000 from Metin Ozisik.
302 * utils.c: Fix typo in comment.
303
d65eee73
FF
304Fri Apr 3 11:23:03 1992 Fred Fish (fnf@cygnus.com)
305
306 * procfs.c (procinfo struct): Add nopass_next_sigstop member.
307 * procfs.c (attach): Set nopass_next_sigstop if attached
308 process is forcibly stopped.
309 * procfs.c (child_resume): Use nopass_next_sigstop to suppress
310 resending SIGSTOP to attached process on first resume.
311
239e7ee9
SG
312Fri Apr 3 01:37:26 1992 Stu Grossman (grossman at cygnus.com)
313
314 * Makefile.in (SFILES_MAINDIR): add mipsread.c
315
e10a3052
JG
316Thu Apr 2 20:20:54 1992 John Gilmore (gnu at cygnus.com)
317
318 * Makefile.in (OBS): Compile mipsread.c for all targets now.
319 (VERSION): Bump to 4.4.85.
320 * mipsread.c: Update for new include files. Lint.
321 * tm-irix3.h, tm-mips.h: Use new include files for ECOFF symtab.
322 * config/{bigmips.mt, littlemips.mt, irix3.mt, decstation.mt}:
323 Don't need to bring in mipsread.o specially any more.
324
4ad1963e
SG
325Thu Apr 2 19:38:31 1992 Stu Grossman (grossman at cygnus.com)
326
327 * mipsread.c (fixup_sigtramp): Also look for _sigtramp as a real
328 routine (for Irix-4.x). Make many funcs static and void.
329 * mips-tdep.c (mips-frame-chain): Clean up, simplify.
330 * (init_extra_frame_info): Don't trash cached value of frame
331 pointer register. This fixes backtracing through routines that use
332 alloca(). Generally clean up declarations of functions, and use
333 typedefs and macros to reference data structures as appropriate.
334 * tm-irix3.h, tm-mips.h (EXTRA_FRAME_INFO): use proper type for
335 proc_desc element.
336
5c1c5e67
FF
337Thu Apr 2 09:47:11 1992 Fred Fish (fnf@cygnus.com)
338
339 * values.c (unpack_long): Fix unpacking error for signed chars
340 on hosts where the default character type is unsigned.
341 * procfs.c (pr_flag_table, pr_why_table): Add some entries
342 for newer SVR4 variants.
343 * procfs.c (proc_set_exec_trap): Reorder tests for ioctl's that
344 turn off trace inherit-on-fork flag to favor latest SVR4 method.
345 * procfs.c (mappingflags): Add support for MA_PHYS
346
ac88ca20
JG
347Thu Apr 2 00:55:56 1992 John Gilmore (gnu at cygnus.com)
348
03c93c66
JG
349 * buildsym.c (read_struct_type): Avoid coredump when C++
350 abbreviated type name is messed up. Reported by Joe Buck.
351 FIXME, we need to determine whether GDB or GCC needs to be
352 smarter to correctly locate this type name.
353
ac88ca20
JG
354 * c-exp.y, coffread.c, command.c, command.h, copying.awk,
355 dbxread.c, gdbtypes.c, infcmd.c, inferior.h, infrun.c,
356 m2-exp.y, printcmd.c, remote.c, solib.c, source.c, stack.c,
357 symtab.c, tm-sun4os4.h, tm-sun4os5.h, values.c: Lint.
358 * symfile.c (add_symbol_file_command): Initialize mapped/readnow.
359
cc221e76
FF
360Wed Apr 1 11:39:52 1992 Fred Fish (fnf@cygnus.com)
361
362 * breakpoint.h (bpdisp, bptype): Remove trailing comma.
363 * symtab.h (current_source_symtab): Make extern
364 * symtab.h (current_source_line): Make extern
365 * inferior.h: Move all procfs.c prototypes to one place, add
366 prototype for proc_signal_handling_change. Add prototypes for
367 signal_stop_state, signal_print_state, and signal_pass_state.
368 * inferior.h (stop_soon_quietly): Make extern
369 * inferior.h (attach_flag): Make extern
370 * infrun.c (NOTICE_SIGNAL_HANDLING_CHANGE): Default is null.
371 * infrun.c (signal_stop_state, signal_print_state,
372 signal_pass_state): New functions to query specific signal
373 handling flags.
374 * infrun.c (handle_command): Minor error message change, add
375 NOTICE_SIGNAL_HANDLING_CHANGE.
376 * procfs.c (open_proc_file): Remove iris specific reset of
377 inherit-on-fork flag, moved to proc_set_exec_trap().
378 * procfs.c (proc_set_exec_trap): Add SVR4 and iris code
379 to reset inherit-on-fork flag, bash comment to GNU form.
380 * procfs.c (proc_base_address, set_proc_siginfo,
381 fetch_core_registers): Conform to code style.
382 * procfs.c (signame.h): Include.
383 * procfs.c (MAX_SYSCALLS, syscall_table[], init_syscalltable(),
384 syscallname(), info_proc_syscalls()): New macros, tables, and
385 functions to organize and report system call information.
386 * procfs.c (saved_fltset, saved_trace, saved_sighold,
387 saved_exitset, saved_entryset): Add to procinfo struct.
388 * procfs.c (struct trans): Add.
389 * procfs.c (pr_flag_table, pr_why_table, faults_table,
390 siginfo_table, errno_table): Tables to translate numeric values
391 to symbolic names and short descriptions.
392 * procfs.c (signalname, info_proc_signals): Add function and
393 prototype.
394 * procfs.c (proc_info): Now info_proc.
395 * procfs.c (proc_info_address_map): Now info_proc_mappings.
396 * procfs.c (info_proc_flags, info_proc_stop, info_proc_siginfo,
397 info_proc_faults, lookupname, lookupdesc, sigcodename,
398 sigcodedesc): New functions.
399 * procfs.c (proc_signal_handling_change): New function to set
400 the trace flags based on the state of gdb's signal handling flags.
401 * procfs.c (inferior_proc_init): Call proc_signal_handling_change
402 and remove code to do PIOCSTRACE ioctl.
403 * procfs.c (attach, detach): Preserve and restore process flags
404 using saved_* fields in procinfo struct.
405 * procfs.c (attach): Call proc_signal_handling_change.
406 * procfs.c (info_proc): Major rework to expand "info proc" cmd.
407 * procfs.c (proc_desc): Update for latest changes.
408 * xm-irix4.h (CREATE_INFERIOR_HOOK): Protect by USE_PROC_FS.
409 * xm-irix4.h (NOTICE_SIGNAL_HANDLING_CHANGE): Add definition.
410 * xm-sysv4.h (NOTICE_SIGNAL_HANDLING_CHANGE): Add definition.
411
412Tue Mar 31 18:38:28 1992 Fred Fish (fnf@cygnus.com)
413
414 * procfs.c (set_proc_siginfo): Add prototype and new function.
415 * procfs.c (detach, child_resume): Call set_proc_siginfo to set
416 up inferior siginfo struct.
417 * elfread.c (elf_symfile_read): Compute the relocation amount
418 by subtracting off the address of the ".text" section.
419 * solib.c: Add pointer to ".text" section to so_list struct.
420 * solib.c (solib_map_sections): Initialize pointer to ".text"
421 section in so_list struct.
422 * solib.c (symbol_add_stub): Pass base address of ".text"
423 section to symbol_file_add, rather than the load address of
424 the shared library. On SunOS they are the same. On SVR4 they
425 are not.
426
3bec9cdd
SG
427Tue Mar 31 17:48:15 1992 Stu Grossman (grossman at cygnus.com)
428
429 * mipsread.c (parse_procedure): PDR.isym should get pointer to
430 function name, not .gdbinfo. symbol.
431
e360572c
JG
432Tue Mar 31 17:05:04 1992 John Gilmore (gnu at cygnus.com)
433
434 * breakpoint.c (breakpoint_1): Fix prototype, this time for sure!
435
fad3fc94
SG
436Tue Mar 31 11:01:06 1992 Stu Grossman (grossman at cygnus.com)
437
e360572c 438 * Makefile.in (VERSION): 4.4.8
5e8fdb82 439
fad3fc94
SG
440 * procfs.c (open_proc_file): Disable inherit-on-fork flag so that
441 commands in .cshrc/.profile won't get traced.
442
3b0b9220
JG
443Tue Mar 31 08:11:58 1992 John Gilmore (gnu at cygnus.com)
444
445 * elfread.c (elf_symtab_read): Use xmalloc, not bfd_xmalloc.
446 * exec.c (build_section_table): Don't abort if no sections.
447 * sparc-tdep.c (single_step): Lint.
448 * utils.c (mrealloc): Handle realloc (0, size) case here.
449
d1bb1d41
SG
450Mon Mar 30 16:50:43 1992 Stu Grossman (grossman at cygnus.com)
451
f8b4aa8e
SG
452 * Makefile.in (alldeps.mak): Config files are now *.m[ht] as
453 opposed to m[ht]-*!
454
9d4c62df
SG
455 * config/irix4.mh: Don't use coredep.o. It doesn't work with procfs.
456
d1bb1d41
SG
457 * mipsread.c (parse_symbol, parse_procedure): Re-do the way that
458 .gdbinfo. symbols are created. Move creation from parse_procedure
459 to parse_symbol, where it is fairly easy to grow the symtab. This
460 also fixes a symtab trashing bug on all mips-based systems.
461 * (got_numargs, lookup_numargs, free_numargs): Delete. Not
462 needed anymore.
463 * tm-mips.h, tm-iris3.h, mips-tdep.c, mipsread.c: Re-do struct
464 mips_extra_func_info, and all the PROC_xxx macros that look at it.
465
d26b50b7
PB
466Mon Mar 30 14:17:53 1992 Per Bothner (bothner@cygnus.com)
467
468 * c-exp.y: Add missing return type to yyparse() prototype.
469
be772100
JG
470Sat Mar 28 22:22:06 1992 John Gilmore (gnu at cygnus.com)
471
472 Create and use macros for iterating on symtabs, psymtabs, msymbols.
473
474 * minsyms.c (iterate_over_msymbols): Remove; clunky and slow.
475 * symfile.h, symtab.h (iterate_over_msymbols): Remove prototype
476 * coffread.c (coff_symfile_read): iterate_over_symtabs => ALL_SYMTABS.
477 (patch_opaque_types): Avoid dummy args and result.
478 * objfiles.c (have_partial_symbols, have_full_symbols,
479 have_minimal_symbols): explicit iteration => ALL_OBJFILES; simplify.
480 (iterate_over_objfiles, iterate_over_symtabs,
481 iterate_over_psymtabs): Remove, clunky and slow.
482 * objfiles.h: Replace iterate_over_* prototypes with ALL_SYMTABS,
483 ALL_PSYMTABS, and ALL_MSYMBOLS macros.
484 * symmisc.c (dump_symtab, dump_psymtab, dump_msymbols,
485 dump_objfile): Remove dummy args and results. Move filename
486 comparisons to callers.
487 (printsyms_command, printpsyms_command, printmsyms_command,
488 printobjfiles_command): iterate_over_* => ALL_*. Compare filenames.
489 * symtab.c (lookup_symtab_1, lookup_symtab, lookup_partial_symtab,
490 lookup_symbol, find_main_psymtab, find_pc_symtab, sources_info,
491 list_symbols, make_symbol_completion_list): Replace explicit
492 iteration with ALL_SYMTABS, ALL_PSYMTABS, or ALL_MSYMBOLS.
493 Eliminate Dijkstra flag crap, break out of loops with gotos.
494 (lookup_symtab_1): Protect '/' tests from short filenames.
495 (cplus_mangled_symbol): Move inline into lookup_symbol.
496 * xcoffexec.c (relocate_objfile_msymbols): Remove poor hack.
497 (relocate_minimal_symbol): Move inline to vmap_symtab.
498 (vmap_symtab): Replace iteration with ALL_OBJFILES,
499 iterate_over_msymbols with ALL_MSYMBOLS.
500
501 Misc cleanup prior to release.
502
503 * Makefile.in (VERSION): Roll to 4.4.7.
504 (HFILES): Add call-cmds.h.
505 * call-cmds.h: New header for command fns called by other files.
506 * breakpoint.c (watchpoints_info): Remove, same as breakpoints_info.
507 (breakpoint_1): Remove unused type arg. Change callers.
508
509 * dwarfread.c (dwarf_build_psymtabs): Remove mainline test.
510 * mipsread.c (compare_symtabs, compare_psymtabs): Remove, unused.
511 * mipsread.c: Add prototypes for all static functions.
512
513 * symmisc.c (dump_symtab_lines, dump_symtabs, dump_last_symtab,
514 dump_blockvector, dump_block, dump_addrchass, dump_namespace,
515 dump_symbol, dump_type, dump_linetable, dump_strtbl): Remove, unused.
516 * xcoffread.c (dump_symtab_lines, dump_symtabs, dump_last_symtab,
517 dump_blockvector, dump_block, dump_addrchass, dump_namespace,
518 dump_symbol, dump_type, dump_linetable, dump_strtbl): Remove 2nd
519 unused copy!
520
521 * buildsym.c (define_symbol): Handle global register variables
522 (from Pierre Willard). Complain if register numbers are too large.
523 * target.c (nomemory): Now that higher levels examine errno, give EIO.
524 * tm-sparc.h: Don't #include <sun4/reg.h>.
525 * sparc-tdep.c (sparc_frame_chain, frame_saved_pc): Remove
526 dependency on <sun4/reg.h>. Start to handle cross-byte-order.
527
528 * language.h: Avoid forward enum declaration.
529 * configure.in, tm-sun4os5.h, xm-sun4os5.h, config/sun4os5.mh,
530 config/sun4os5.mt: New host and target.
531 * defs.h (errno): #include <errno.h> rather than assuming int.
532 From Pierre Willard.
533
534 * breakpoint.c, breakpoint.h, buildsym.c, coffread.c, cplus-dem.c,
535 dbxread.c, dwarfread.c, elfread.c, infcmd.c, infrun.c, inftarg.c,
536 language.c, main.c, mem-break.c, mips-tdep.c, mipsread.c,
537 partial-stab.h, remote.c, saber.suppress, symfile.c, symtab.c,
538 valops.c, valprint.c, xcoffread.c, c-exp.y, m2-exp.y, blockframe.c,
539 command.c, core.c, exec.c, gdbtypes.h, parse.c, printcmd.c, solib.c,
540 sparc-xdep.c, utils.c, value.h, values.c: Lint.
541
542Sat Mar 28 02:43:26 1992 John Gilmore (gnu at cygnus.com)
543
544 * buildsym.c (read_range_type): Avoid int overflow by using unsigned.
545 * dbxread.c (dbx_symfile_init): Remove bogus `lvalue cast'.
546 * language.h (enum exp_opcode): Avoid forward enum def.
547 * main.c (define_command, user_defined_command): Lint.
548 * mem-break.c, xcoffread.c: Lint.
549 * solib.c: Only #include <a.out.h> on SunOS, not SVR4.
550
1eeba686
PB
551Sun Mar 29 14:16:22 1992 Per Bothner (bothner@cygnus.com)
552
553 * Merged in latest RS6000 diffs from Metin G. Ozisik.
554 * xcoffsolib.c, xcoffsolib.h: New files, from Metin.
555 * Various files: Changed #ifdef IBM6000 to IBM6000_HOST
556 or IBM6000_TARGET as (approximately) appropriate.
557
bf349b77
FF
558Sat Mar 28 13:00:10 1992 Fred Fish (fnf@cygnus.com)
559
560 * objfiles.h (OBJF_SYMS): Define flag bit for objfile flags.
561 * symfile.c (symbol_file_add): Use OBJF_SYMS to decide whether
562 or not to try reading symbols from a mapped objfile. Plugs memory
563 leak due to shared libraries generating no psymtabs or symtabs.
564
c2e4669f
JG
565Fri Mar 27 15:44:55 1992 John Gilmore (gnu at cygnus.com)
566
567 * buildsym.c (MAX_OF_C_TYPE, MIN_OF_C_TYPE): Unused, remove.
568 * copying.awk: Lint. Make stronger warning at top of copying.c.
569 * elfread.c (elf_symtab_read): Eliminate check of mainline.
570 * gdbtypes.c (smash_to_*): Remove FIXME comments.
571 (lookup_pointer_type): Add FIXME comment.
572 * main.c (set_history_size_command): Disallow negative size.
573 * partial-stab.h: Update copyright.
574 * rs6000-tdep.c (skip_trampoline_code): Better comments.
575
576Wed Mar 25 10:45:38 1992 John Gilmore (gnu at cygnus.com)
577
578 * main.c (set_history_size_command): Negative size is error.
579 (Reported by Peggy Fieland.)
580
3624c875
FF
581Thu Mar 26 17:01:18 1992 Fred Fish (fnf@cygnus.com)
582
583 * coffread.c (coff_symfile_init): Update comment.
584 * dbxread.c (DBX_SYMFILE_INFO, DBX_TEXT_SECT, DBX_SYMCOUNT,
585 DBX_STRINGTAB, DBX_STRINGTAB_SIZE, DBX_SYMTAB_OFFSET): Define
586 macros to access the dbx specific objfile information.
587 * dbxread.c (symfile_string_table, symfile_string_table_size):
588 Remove these local variables.
589 * dbxread.c (read_ofile_symtab, psymtab_to_symtab_1,
590 read_dbx_symtab): Remove the stringtab and stringtab_size params
591 from the function prototypes, the function definition, and the
592 function calls. These are now available via DBX_STRINGTAB and
593 DBX_STRINGTAB_SIZE using the objfile pointer.
594 * dbxread.c (dbx_symfile_read): Relocate addr before using as
595 an arg to read_dbx_symtab.
596 * dbxread.c (dbx_symfile_read): Remove code that free'd the
597 stringtab and the dbx specific per-objfile private info.
598 * dbxread.c (init_psymbol_list): Remove symbol count from passed
599 args in prototype, function definition, and function calls. It is
600 now available via the DBX_SYMCOUNT macro using the objfile
601 pointer.
602 * dbxread.c (dbx_symfile_read, dbx_symfile_init): Remove the
603 local instance of struct dbx_symfile_info and replace with DBX_*
604 macros.
605 * dbxread.c (dbx_symfile_read): Remove init's of now deleted
606 symfile_string_table and symfile_string_table_size.
607 * dbxread.c (dbx_symfile_finish): Remove now obsolete free of
608 symfile_string_table.
609 * dbxread.c (init_psymbol_list): Use DBX_SYMCOUNT.
610 * dbxread.c (dbx_psymtab_to_symtab): Remove local stringtab and
611 stringtab size variables. Remove all code that used to reread
612 the stringtab.
613 * objfiles.c (allocate_objfile): Move calls to init_malloc()
614 to prior to any calls to mmalloc for the objfile specific heap.
615 * utils.c (init_malloc): Document the requirement that for each
616 heap for which corruption checking is desired, that init_mmalloc
617 must be called prior to any mmalloc calls on the heap.
618
619Thu Mar 26 13:20:06 1992 Per Bothner (bothner@cygnus.com)
620
621 * rs6000-pinsn.c: Make dis-assembly output more like
622 other targets: Don't print instruction in hex before
623 the assembly; use print_address to print out jump
624 destinations.
625
04f27ddc
PB
626Wed Mar 25 16:52:35 1992 Per Bothner (bothner@cygnus.com)
627
628 * c-exp.y, gdbtypes.h: Add builtin_type_signed_char.
629 * cplus-dem.c: Support "Sc" meaning "signed char".
630
88f36033
SG
631Wed Mar 25 15:21:44 1992 Stu Grossman (grossman at cygnus.com)
632
633 * configure.in: fix iris/iris3.
634
5c71cf23
PB
635Wed Mar 25 14:55:48 1992 Per Bothner (bothner@cygnus.com)
636
637 * command.c, main.c (various places): Use ctype.h macros
638 (such as isupper(x)), instead of hard-wiring in ASCII-isms
639 (such as (x >= 'A' && x <= 'Z')).
640 (There are still more of these in other files.)
641 * main.c (defined_command): Lower-case the user's
642 new command before entering it. Needed because
643 command lookup is case-insensitive (and also lower-cases).
644 (Based on Metin's earlier patch.)
645
fd2329d7
RP
646Tue Mar 24 23:27:01 1992 K. Richard Pixley (rich@cygnus.com)
647
648 * config/irix4.mh: new file.
649
4f301966
SG
650Tue Mar 24 14:17:48 1992 Stu Grossman (grossman@cygnus.com)
651
0a22f63e
SG
652 * infcmd.c (step_1): Call disable_longjmp_breakpoint at the right
653 time.
654
655 * xm-mips.h: Declare strdup for ultrix.
9d53db1a 656
4f301966
SG
657 * mipsread.c (fixup_sigtramp): Make sure that current_objfile is setup
658 when calling new_symbol.
659 * mips-tdep.c (mips_frame_chain): Use symfile_objfile instead of
660 current_objfile.
661
5c8d3927
PB
662Tue Mar 24 13:26:25 1992 Per Bothner (bothner@rtl.cygnus.com)
663
664 * config/rs6000.mh: Update (for Fred's new mmalloc)
665 flags to disable use of GNU malloc/mmalloc.
666 * munch: Change SYSV rule to allow .text before the label,
667 as well as after, to work for AIX.
668 * gdbtypes.h: Minor clarifiction.
669
be1384b0
MT
670Tue Mar 24 07:26:19 1992 Michael Tiemann (tiemann@cygnus.com)
671
672 * buildsym.c (read_struct_type): Handle cretinous dbx symbol name
673 continuation in yet another place (between method declarations).
674
62a469e1
SG
675Mon Mar 23 23:01:41 1992 Stu Grossman (grossman at cygnus.com)
676
677 * mips-tdep.c: include symfile.h and objfiles.h to fix
678 compilation errors.
679
b3024b21
PB
680Mon Mar 23 15:49:14 1992 Per Bothner (bothner@cygnus.com)
681
682 * valops.c (value_struct_elt_for_reference): Added 'offset'
683 parameter to handle multiple inheritance.
684 * eval.c, value.h: Update accordingly.
685
5e2e79f8
FF
686Fri Mar 20 17:43:27 1992 Fred Fish (fnf@cygnus.com)
687
688 * objfiles.h: New file
689 * Makefile.in (HFILES): Add objfiles.h
690 * blockframe.c: Remove entry_scope_lowpc, entry_scope_highpc,
691 main_scope_lowpc, main_scope_highpc.
692 * blockframe.c, buildsym.c, coffread.c, dbxread.c, dwarfread.c,
693 elfread.c, gdbtypes.h, minsyms.c, mipsread.c, objfiles.c, solib.c,
694 source.c, symfile.c, symmisc.c, symtab.c, target.c, xcoffexec.c,
695 xcoffread.c, : Include objfiles.h.
696 * tm-29k.h, tm-i386v.h, tm-merlin.h, tm-rs6000.h, tm-sun386.h,
697 tm-symmetry.h, tm-tahoe.h, tm-umax.h, tm-vax.h, m88k-tdep.c,
698 mips-tdep.c (FRAME_CHAIN): Renamed outside_startup_file to
699 inside_entry_file() and logic changed appropriately.
700 * blockframe.c (outside_startup_file): Renamed to
701 inside_entry_file() and logic changed appropriately.
702 * blockframe.c (inside_main_scope): Renamed to inside_main_func()
703 and logic changed to use per-objfile specific fields.
704 * blockframe.c (inside_entry_scope): Renamed to
705 inside_entry_func() and logic changed to use per-objfile specific
706 fields.
707 * blockframe.c, buildsym.h, coffread.c, dwarfread.c, mipsread.c,
708 symfile.c, mips-tdep.c (startup_file_start, startup_file_end):
709 Remove extern decls.
710 * symfile.c, symfile.h (entry_point): Remove extern decl.
711 * coffread.c (coff_symfile_init): Common entry point init code
712 moved to symfiles.c, call init_entry_point_info().
713 * coffread.c (complete_symtab): Use new per-objfile entry info.
714 * mip-tdep.c (mips_frame_chain): Use new per-objfile entry info.
715 * mipsread.c (parse_partial_symbols): Use new per-objfile entry
716 info.
717 * dbxread.c (read_dbx_symtab): Use new per-objfile entry info.
718 * defs.h (inside_entry_scope, outside_startup_file,
719 inside_main_scope): Prototypes changed for renames to
720 inside_entry_func, inside_entry_file, inside_main_func,
721 respectively.
722 * symfile.c (syms_from_objfile): Common entry point init code
723 moved to init_entry_point_info() and call init_entry_point_info().
724 * symfile.h (init_entry_point_info): Include prototype.
725 * xcoffread.c (aixcoff_symfile_init): Common entry point init code
726 moved to symfiles.c and call init_entry_point_info().
727 * dwarfread.c (entry_scope_lowpc, entry_scope_highpc,
728 main_scope_lowpc, main_scope_highpc): Remove extern decls.
729 * dwarfread.c (read_func_scope, read_file_scope): Use new per-
730 objfile entry info.
731 * frame.h (FRAME_CHAIN_VALID): Provide default definition that
732 works for the majority of targets.
733 * tm-68k.h, tm-convex.h, tm-h8300.h, tm-i386v.h, tm-irix3.h,
734 tm-merlin.h, tm-mips.h, tm-pyr.h, tm-rs6000.h, tm-sparc.h,
735 tm-sun386.h, tm-tahoe.h, tm-umax.h, tm-vax.h (FRAME_CHAIN_VALID):
736 Use default definition in frame.h.
737 * frame.h (selected_frame_level): Make decl extern.
738 * objfiles.c, symfile.c (current_objfile): Moved to objfiles.c
739 * objfiles.c, symfile.c (symfile_objfile): Moved to objfiles.c
740 * partial-stab.h: Use new per-objfile entry info.
741 * symfile.h (struct objfile): Removed, moved to objfiles.h.
742 * symfile.h, objfiles.h (allocate_objfile, free_objfile,
743 free_all_objfiles, iterate_over_objfiles, iterate_over_symtabs,
744 iterate_over_psymtabs, have_partial_symbols, have_full_symbols,
745 have_minimal_symbols): Prototypes moved to objfiles.h.
746 * symfile.h, objfiles.h (ALL_OBJFILES, ALL_OBJFILES_SAFE):
747 Macros moved to objfiles.h.
748 * tm-h8300.h, tm-i386v4.h (FRAME_CHAIN_VALID_ALTERNATE): Define.
749
01be6913
PB
750Thu Mar 19 18:49:45 1992 Per Bothner (bothner@cygnus.com)
751
752 More C++ improvements (pointers to members, qualified names).
753 * c-exp.y: Support exp.type::name and exp->type::name
754 syntaxes. (Unfortunately, doesn't work for static members.)
755 * c-exp.y, eval.c: Make type::~type work better.
756 * eval.c (evaluate_subexp: OP_SCOPE): Replace use of
757 value_static_field by value_struct_elt_for_reference.
758 * eval.c (evaluate_subexp): Merge code for STRUCTOP_MEMBER
759 and STRUCTOP_MPTR; cast arg1 to domain-type of arg2.
760 * eval.c (evaluate_subexp): Remove special case for UNOP_ADDR
761 for OP_SCOPE operand; no point in it now that we use lazy
762 reading of values, and use "reference to member" objects.
763 * gdbtypes.h: Clarify comment.
764 * valops.c: Change value_struct_elt_for_address to return
765 a reference (or variable), rather than a pointer. Change
766 the name to value_struct_elt_for_reference to reflect this.
767 Returning a reference instead of a address provides a
768 generalization, since we can use the routine for both
769 class::name as well as &class::name.
770 Also, recurse to handle multiple inheritance properly.
771 * valprint.c: Moved code to print pointer-to-members
772 to new function point_class_member. This allows a
773 "reference-to-member" to be printed using the same code.
774 * valprint.c (type_print_varspec_prefix): Avoid printing
775 "struct " for domains of class-member types.
776 * valops.c (search_struct_field): Inline code for simplified
777 version of value_static_field (which can then be deleted).
778 * value.h: Rename value_struct_elt_for_address to
779 value_struct_elt_for_reference. Delete value_static_field.
780 * values.c: Remove no longer used function value_static_field.
781
80d68b1d
FF
782Thu Mar 19 13:54:11 1992 Fred Fish (fnf@cygnus.com)
783
784 * coffread.c, mipsread.c, xcoffread.c, coffread.c, dbxread.c,
785 elfread.c (coff_symfile_finish): Add function, prototype, and
786 add to the xxxx_sym_fns struct for each file type. Also reformat
787 the xxxx_sym_fns vector to a standard format and add comments.
788 * coffread.c, mipsread.c, xcoffread.c, coffread.c, dbxread.c,
789 elfread.c (xxx_symfile_new_init, xxx_symfile_init, xxx_symfile_read):
790 Pass pointer to struct objfile rather than pointer to sym_fns.
791 Change references inside each function accordingly. Allocate any
792 symbol file specific info in the per-objfile memory region.
793 * dbxread.c (free_and_init_header_files): Break function into
794 free_header_files(), called from dbx_symfile_finish(), and
795 init_header_files(), called from dbx_new_init().
796 * dbxread.c (dbx_new_init): Move deallocation things to new
797 dbx_symfile_finish function.
798 * elfread.c (elf_new_init): Call buildsym_new_init().
799 * objfiles.c (free_objfile): Call the appropriate symfile_finish()
800 routine for the objfile before deallocating other stuff.
801 * sparc-tdep.c (get_longjmp_target): Cast target_read_memory arg.
802 * symfile.h: Move struct sym_fns to before struct objfile def.
803 Add sym_finish function pointer and change prototypes of other
804 function pointers to reflect passing struct objfile pointer rather
805 than struct sym_fns pointer.
806 * symfile.c: Remove now obsolete symtab_fns pointer.
807 * symfile.c (symfile_init): Renamed to find_sym_fns, and now only
808 locates the correct sym_fns struct for the given objfile.
809 * symfile.c (syms_from_objfile, symbol_file_add): Restructured
810 for better support of mapped symbol tables.
811 * symfile.c (symbol_file_command): Remove obsolete code using
812 symfile_fns.
813 * symfile.h: Remove duplicate declarations for symfile_objfile,
814 entry_point, and object_files.
815 * target.c (target_info): Compare symfile_objfile to NULL.
816 * xcoffread.c (aixcoff_new_init): Move deallocation stuff to
817 aixcoff_symfile_finish().
818
dc52fc71
FF
819Wed Mar 18 18:22:46 1992 Fred Fish (fnf@cygnus.com)
820
821 * infrun.c (IN_SOLIB_TRAMPOLINE): Add default definition.
822 * infrun.c (wait_for_inferior): Use IN_SOLIB_TRAMPOLINE.
823 * tm-sysv4.h (IN_SOLIB_TRAMPOLINE): Add SVR4 definition.
824
2cd99985
PB
825Wed Mar 18 15:51:15 1992 Per Bothner (bothner@cygnus.com)
826
827 Some improvements to g++ debugging.
828 * symtab.c (list_symbols): demangle before pattern matching.
829 * symtab.c: Other fixes to improve handing of operators.
830 * valprint.c (type_print_base): Fix test for constructor.
831 * values.c (value_static_field): Allow evaluation of
832 CLASS::METHOD, returning a function pointer.
833
b0246b3b
FF
834Wed Mar 18 08:39:52 1992 Fred Fish (fnf@cygnus.com)
835
836 * Makefile.in (VERSION): Roll 4.4.6.
837 * exec.c (exec_file_command): Add code to ignore optional args
838 passed in by file_command() for use in symbol_file_command().
839 * main.c (main): Document -mapped and -readnow in help summary.
840 * objfiles.c (open_mapped_file): Cosmetic change, arg renamed.
841 * objfiles.c (allocate_objfile): Filename arg removed. Changes
842 to get filename from bfd with bfd_get_filename(). Test mapto
843 against 0, not NULL. Use mstrsave() to make copy of filename.
844 * remote-mm.c (mm_load): Symbol_file_add() takes an additional
845 arg.
846 * remote-vx.c (vx_load_command, add_symbol_stub):
847 Symbol_file_add() takes an additional arg.
848 * solib.c (symbol_add_stub): Symbol_file_add() takes an
849 additional arg.
850 * symfile.c (symfile_open): Renamed to symfile_bfd_open and
851 changed to return a bfd not an objfile pointer.
852 * symfile.c (syms_from_objfile): Eliminate local copy of bfd.
853 * symfile.c (symbol_file_add): Takes an additional arg (readnow).
854 Change to eliminate local bfd and use symfile_bfd_open() plus
855 allocate_objfile(). Add code to implement readnow option.
856 * symfile.c (symbol_file_command): Changes to option handling,
857 readnow functionality moved to symbol_file_add().
858 * symfile.c (symfile_init): Eliminate local copy of bfd.
859 * symfile.c (add_symbol_file_command): Changes to parse mapped
860 and readnow options.
861 * symfile.h (allocate_objfile): Arg removed from prototype.
862 * symtab.h (symbol_file_add): Arg added to prototype.
863 * xcoffexec.c (map_vmap): Allocate_objfile() takes an additional
864 arg.
865
318bf84f
FF
866Sat Mar 14 16:38:47 1992 Fred Fish (fnf@cygnus.com)
867
868 * gmalloc.c, gmalloc.h mcheck.c mmap-alloc.c mmap-sbrk.c mtrace.c,
5a4470de 869 mtrace.awk, state.c, state.h: Removed.
318bf84f
FF
870 * .gdbinit: Add ../malloc, ../libiberty, and ../bfd to list of
871 directories searched for source files.
872 * Makefile.in (GNU_MALLOC, MALLOC_CFLAGS, MALLOCSRC): Removed
873 * Makefile.in (MMALLOC_DIR, MMALLOC_DEP, MMALLOC_LIB,
874 MMALLOC_DISABLE, MMALLOC_CHECK, MMALLOC_CFLAGS): Add
875 * Makefile.in (CFLAGS): Replace MALLOC_CFLAGS with MMALLOC_CFLAGS.
876 * Makefile.in (CLIBS, CDEPS): Add MMALLOC_LIB
877 * Makefile.in (ADD_FILES, ADD_DEPS): Remove GNU_MALLOC.
878 * Makefile.in (SFILES_MAINDIR): Remove stat.c mmap-alloc.c, mmap-
879 sbrk.c
880 * Makefile.in (HFILES): Remove state.h
881 * Makefile.in (POSSLIBS_MAINDIR): Remove MALLOCSRC.
882 * Makefile.in (OBS): Remove state.o mmap-alloc.o mmap-sbrk.o
883 * Makefile.in (saber_gdb): Remove mcheck, mtrace. Add MMALLOC_DIR.
884 * Makefile.in (clean): Remove all object files.
885 * c-exp.y: Define malloc to xmalloc and realloc to xrealloc.
886 * cplus-dem.c: Remove prototypes definitions that are now done in
887 def.h.
888 * dbxread.c (throughout): Change from using per-objfile
889 xmalloc/xrealloc/free functions to xmmalloc/xmrealloc/mfree.
890 * defs.h: Remove prototypes for mmap_* functions. Add prototypes
891 for xmmalloc, xmrealloc, mfree, mmcheck, mmtrace, mmalloc_attach,
892 mmalloc_detach, mmalloc_setkey, msavestring, and mstrsave, nomem.
893 * depend: Remove dependencies for state.o, state.h.
894 * dwarfread.c: Add declaration for warning_pre_print.
895 * dwarfread.c (dwarfwarn): Use warning_pre_print.
896 * dwarfread.c (throughout): Change from using per-objfile
897 xmalloc/xrealloc/free functions to xmmalloc/xmrealloc/mfree.
898 * gdbtypes.c (lookup_fundamental_type): Fix init_type calls to
899 use supplied objfile.
900 * i386-xdep.c (print_387_status): Change to use warning() rather
901 than printfs.
902 * i387-tdep.c (print_387_control_word): Change to use warning()
903 rather than printfs.
904 * infrun.c (wait_for_inferior): Remove unreachable abort() call
905 that some compilers grumble about.
906 * language.c (throughout): Add declaration for warning_pre_print
907 and using warning() instead of printfs.
908 * m2-exp.y: Define malloc to xmalloc and realloc to xrealloc.
909 * main.c (main): Add declaration for warning_pre_print and set it
910 similarly to error_pre_print. Add declarations for
911 mapped_symbol_files and readnow_symbol_files. Add appropriate
912 definitions to long_options[].
913 * minsyms.c: Trivial fix to comment.
914 * objfiles.c (allocate_objfile): Substantially rewritten for
915 using mapped symbol files.
916 * objfiles.c (throughout): Change from using per-objfile
917 xmalloc/xrealloc/free functions to xmmalloc/xmrealloc/mfree.
918 * objfiles.c (open_mapped_file, mapped_to_address): Add functions.
919 * source.c (throughout): Change from using per-objfile
920 xmalloc/xrealloc/free functions to xmmalloc/xmrealloc/mfree.
921 * source.c (open_source_file): Use mstrsave to save file name in
922 mapped symbol region for objfile.
923 * symfile.c: Remove include for state.h.
924 include to local form.
925 * symfile.c (symbol_file_add_digested): Remove.
926 * symfile.c (symbol_file_add): Substantially rewritten for mapped
927 symbol files.
928 * symfile.h: Remove malloc/xrealloc/xmalloc/xrealloc/free members
929 from objfile structure. Add malloc descriptor pointer (md).
930 * symfile.h (OBJF_DUMPABLE): Changed name to OBJF_MAPPED.
931 * symm-xdep.c (print_fpu_status): Use warning() rather than
932 printfs.
933 * symmisc.c (free_symtab_block): Now takes and uses current
934 objfile pointer.
935 * symmisc.c (throughout): Change from using per-objfile
936 xmalloc/xrealloc/free functions to xmmalloc/xmrealloc/mfree.
937 * symtab.c (cplus_mangled_symbol): Cast return value to avoid
938 Sun compiler grumblings when PTR is char *.
939 * symtab.c (lookup_symbol): Cast return value of iterate_over_
940 msymbols() to correct pointer type.
941 * utils.c (warning_pre_print): Initialize to "\nwarning: ".
942 * utils.c (fatal, fatal_dump_core): Ensure that the fatal
943 error always starts on a line of it's own.
944 * utils.c (init_malloc, malloc_botch, xmalloc, xrealloc):
945 Rewrite for new mapped malloc package use.
946 * utils.c (mmalloc, mrealloc, mfree): Stubs for configurations
947 that don't want to use the mapped malloc package; pass arguments
948 on to traditional malloc package functions.
949 * utils.c (nomem): Add for fatal virtual memory exhausted aborts.
950 * utils.c (xmmalloc, xmrealloc, xmalloc, xrealloc): Like mmalloc,
951 mrealloc, malloc, and realloc but get fatal error if runs out
952 of memory.
953 * utils.c (msavestring, mstrsave): Save a string in a specific
954 mapped malloc region.
955 * utils.c (print_spaces): Use xmalloc to get the buffer.
956 * xm-amix.h, xm-i386v4.h, xm-sun3os4.h, xm-sun4os4.h: Add defines
957 for MMAP_BASE_ADDRESS and MMAP_INCREMENT.
958 * config/i386v4.mh: Insignificant reorganization.
959
0750528a
FF
960Sat Mar 14 11:44:47 1992 Fred Fish (fnf@cygnus.com)
961
962 * xcoffread.c: Only enable compilation of debugging functions
963 if IBM6000 is defined. Fails to compile otherwise.
964
4db3902a
RP
965Fri Mar 13 15:51:11 1992 K. Richard Pixley (rich@cygnus.com)
966
967 * Makefile.in: pass MAKEINFO down on info.
968
bec9fad9
JG
969Fri Mar 13 12:56:36 1992 John Gilmore (gnu at cygnus.com)
970
971 * mipsread.c (mipscoff_symfile_read): Eliminate a lot of
972 useless code, including an lseek to an uninitialized variable.
973 Reported by Jim Williams <jimbo@wrs.com>.
974
6730b139
PB
975Thu Mar 12 11:56:46 1992 Per Bothner (bothner@cygnus.com)
976
4db3902a
RP
977 Merged in patches from metin@ibmpa.awdpa.ibm.com (Metin G.
978 Ozisik) (dated Fri, 6 Mar 92 17:51) for the rs6000.
979 * minsyms.c, symfile.c: Changes that may be generally
980 applicable, but are #ifdef IBM6000 for now.
981 * rs6000-xdep.c: Fixed typo in comment.
982 * rs6000-tdep.c: Non-substatial changes.
983 * xoffread.c: The main change here is addition of some
984 debugging functions.
985 * xoffexec.c: More changes.
986
987 * xcoffread.c: Fixed two too-few-parameters bugs.
988
6730b139
PB
989 * solib.h, infrun.c, tm-rs6000.h: Add a PID parameter
990 to SOLIB_CREATE_INFERIOR_HOOK macro.
991
a846ac55
FF
992Sun Mar 8 21:17:48 1992 Fred Fish (fnf@cygnus.com)
993
994 * symfile.h: Add prototype for iterate_over_msymbols().
995 * symtab.c (cplus_mangled_symbol): Add function.
996 * symtab.c (lookup_symbol): Call cplus_mangled_symbol via
997 iterate_over_msymbols to find demangled C++ symbol.
998 * xcoffexec.c (relocate_minimal_symbol): Return meaningful
999 value to iterate_over_msymbols().
1000 * xcoffexec.c (vmap_symtab): Ignore return from iterate_over_
1001 msymbols().
1002
1003Fri Mar 6 21:59:34 1992 K. Richard Pixley (rich@cygnus.com)
1004
1005 * Makefile.in: added check target.
1006
a1106a1e
JG
1007Thu Mar 5 23:56:01 1992 John Gilmore (gnu at cygnus.com)
1008
1009 * ecoff.c: Move to ../bfd/coff-msym.c.
1010 * config/mt-*mips: Remove ecoff.o from the configuration.
53ccaf5f
JG
1011 * remote.c (): Add newline to initial +.
1012 (remote_resume): Mention how to cope with signals.
1013 (remote_interrupt): Add debug msg.
1014 (remote-wait): Implement new 'T' reply, which includes
1015 status, PC, and FP all in a single short message.
1016 (putpkt): Add further debugging of packet acks.
1017 * mipsread.c (fixup_symtab): Also swap RFD's.
1018 (parse_partial_symbols): Avoid bug on unknown symbol types.
b67cb9d5 1019 * Makefile.in (VERSION): Roll to 4.4.5.
a846ac55
FF
1020 * mips-tdep.c (heuristic_proc_start): Avoid long delays
1021 for remote MIPS by limiting heuristic to 200 byte search.
1022 (heuristic_proc_desc): Byte-swapping.
1023 (mips_print_register): Cope with failure of
1024 read_relative_register_raw_bytes. Byte-swap integers for
1025 printing.
1026 * mips-pinsn.c (print_insn): Byte-swap instruction.
a1106a1e 1027
1170a046
SG
1028Thu Mar 5 12:32:09 1992 Stu Grossman (grossman at cygnus.com)
1029
1030 * config.sub configure.in config/.Sanitize config/mh-irix4
1031 gdb/.Sanitize gdb/configure.in gdb/mips-tdep.c gdb/mipsread.c
1032 gdb/procfs.c gdb/signame.h gdb/tm-irix3.h gdb/tm-mips.h
1033 gdb/xm-irix4.h gdb/config/.Sanitize gdb/config/mt-irix3
1034 gdb/config/mh-irix4 texinfo/configure.in: Port to SGI Irix-4.x.
1035
d7eddc51
FF
1036Wed Mar 4 11:56:42 1992 Fred Fish (fnf@cygnus.com)
1037
1038 * defs.h, utils.c: xrealloc takes PTR as first arg.
1039 * defs.h: Reword confusing comment about ANSI prototypes.
1040 * defs.h: Some minor whitespace changes.
1041 * infrun.c (wait_for_inferior): Compare int tmp to int 0,
1042 not NULL, which can be (void *).
1043 * tm-amix.h, tm-i386v4.h: Add defines for setjmp/longjmp handling.
1044 * tm-i386v.h (SP_ARG0): Define
1045 * xm-sysv4.h: Back out of change for missing prototypes.
1046 * i386-tdep.c (get_longjmp_target): Add function.
1047
a846ac55
FF
1048Wed Mar 4 05:46:11 1992 K. Richard Pixley (rich@rtl.cygnus.com)
1049
1050 * Makefile.in: install man page too.
1051
d747e0af
MT
1052Tue Mar 3 15:11:52 1992 Michael Tiemann (tiemann@cygnus.com)
1053
1054 * All GDB files that #include defs.h: Removed stdio.h.
1055 (defs.h): #include stdio.h.
1056
96743d3c
SC
1057Mon Mar 2 23:00:12 1992 Steve Chamberlain (sac@thepub.cygnus.com)
1058
1059 * gdbtypes.c (lookup_pointer_type): initialize the TYPE_LENGTH of
1060 a ptype to reflect the setting of TARGET_PTR_BIT. Set the
1061 TYPE_FLAGS of a ptype to TYPE_FLAG_UNSIGNED.
1062 * tm-h8300.h, h8300-tdep.c, remote-hms.c: personal checkpoint
1063 * printcmd.c (print_address): if ADDR_BITS_REMOVE is defined, use
1064 it before printing out the hex shape of an address.
1065
6c6afbb9
PB
1066Sun Mar 1 17:41:09 1992 Per Bothner (bothner@cygnus.com)
1067
bff1c97a
FF
1068 * rs6000-xdep.c (frame_initial_stack_address): Move
1069 code to set frame->cache_fsr into new separate function
1070 frame_get_cacahe_fsr. This allows fixing a fatal error.
1071 * xcoffexec.c: Turn previously suppressed error
1072 message back on, after cleaning up BFD.
1073
6c6afbb9
PB
1074 * breakpoint.c (breakpoint_re_set): Removed (at least for now)
1075 printing of blank line, since it cases printing of an
1076 extra blank line. Is this intended? It does mess up
1077 gdb test suite.
1078 * defs.h: Put back declarations of malloc and realloc,
1079 but protected by #ifndef MALLOC_INCOMPATIBLE.
1080 * objfiles.c: Undo previous change: Use malloc/realloc
1081 for objfile malloc/realloc fields (but add a cast).
1082 * xcoffexec.c: Suppress an error message (for now).
1083
1084Sat Feb 29 14:43:02 1992 Per Bothner (bothner@cygnus.com)
1085
1086 Changes from metin@ibmpa.awdpa.ibm.com (Metin G. Ozisik)
1087 [Mail dated Fri, 21 Feb 92 13:14:54 -0800]
1088 * buildsym.c: Use smash_to_pointer_type() to handle forward type
1089 references.
1090 * xcoffread.c: Modifications to C_DECL storage class handling, and
1091 introduction of an old smash_to_pointer_type() routine.
1092
1093 Changes from metin@ibmpa.awdpa.ibm.com (Metin G. Ozisik)
1094 [Mail dated Thu, 20 Feb 92 13:57:16 -0800]
1095 * rs6000-xdep.c, rs6000-tdep.c, tm-rs6000.h: function_frame_info()
1096 parameters have been modified.
1097
1098 Changes from metin@ibmpa.awdpa.ibm.com (Metin G. Ozisik)
1099 [Mail dated Thu, 20 Feb 92 10:10:05 -0800]
1100 * rs6000-tdep.c: Before Feb 5 92, register_valid[] array was not used,
1101 and fetch_inferior_registers() always fetched all the registers
1102 resulting valid register values at hand all the time. Pushing a dummy
1103 frame did not require validating all register values first. After
1104 putting the above mechanism into action, we didn't have valid registers
1105 values always ready. Thus, all registers need to be fetched before
1106 pushing a dummy frame now.
1107
1108 Changes from metin@ibmpa.awdpa.ibm.com (Metin G. Ozisik)
1109 [Mail dated Thu, 13 Feb 92 16:22:44 -0800]
1110 * rs6000-xdep.c: frame_initial_stack_address() function to calculate
1111 the starting address (actual frame address) of a frame.
1112 * rs6000-tdep.c: modifications to function_frame_info() to see if
1113 function reserves a frame pointer register (alloca register)
1114 * tm-rs6000.h: EXTRA_FRAME_INFO, FRAME_ARGS_ADDRESS and
1115 FRAME_LOCALS_ADDRESS has been updated to support debugging of
1116 functions with alloca() calls.
1117
4b8333de
FF
1118Sun Mar 1 13:13:39 1992 Fred Fish (fnf@cygnus.com)
1119
1120 * xm-sysv4.h: Provide definitions/prototypes for host environment
1121 functions for which no definitions or prototypes are provided in
1122 any currently included gdb or host environment header files.
1123 For SVR4, this currently includes malloc and realloc, which cannot
1124 be portably prototyped in any gdb include file.
1125
1126Sat Feb 29 14:43:02 1992 Per Bothner (bothner@cygnus.com)
1127
1128 * buildsym.h: Remove obsolete variable file_stabs.
1129
1130 * Makefile.in: Move place where configure merges in host-
1131 and target-dependent fragments later, so the latter
1132 can override (say) GNU_MALLOC.
1133 * config/mh-rs6000: Use system malloc. Otherwise, I
1134 ended up with *two* incompatible versions of malloc
1135 (functions in libc would call the malloc in libc).
1136 I assume this is a shared library problem.
1137
1138 * remote.c: Fix (presumed) typo.
1139 * objfiles.c: Use xmalloc/xrealloc instead of
1140 malloc/realloc (since the latter are no longer declared).
1141
1142 Changes from metin@ibmpa.awdpa.ibm.com (Metin G. Ozisik)
1143 [Mail dated Thu, 6 Feb 1992 10:22:02 -0800]
1144 * rs6000-xdep.c: Improvements to fetch_inferior_registers() to
1145 handle individual registers.
1146 * tm-rs6000.h: Fix SAVED_PC_AFTER_CALL macro to handle pc value
1147 correctly in case it wasn't cached yet. (A problem showed up
1148 after fetching individual registers.)
1149 * buildsym.c: Disable type_synonym_name's type name overwriting
1150 in cases it is unnecesary. rs6000 portation doesn't use
1151 type_synonym_name, and it used to nullify type names
1152 * xcoffread.c: to handle g++'s typename abbreviation, fill in a
1153 type's name as soon as space for that type is allocated.
1154 * xcoffread.c: ignore a section's lineno information if it is
1155 not `.text'. (In rs6000 bfd portation integration, skipping over
1156 `.pad' sections are ignored since it was in machine independent
1157 part of the code. Thus, a problem of fake sections with invalid
1158 lineno information arised.)
1159
1160 Changes from metin@ibmpa.awdpa.ibm.com (Metin G. Ozisik)
1161 [Mail dated Thu, 6 Feb 1992 13:26:22 -0800]
1162 * rs6000-tdep.c: make function_frame_info() work whether or not
1163 reading from a core file.
1164 * tm-rs6000.h: Implementation of FRAME_FIND_SAVED_REGS macro.
1165
1166 * infrun.c. main.c, printcmd.c. symtab.c:
1167 More changes from IBM for rs6000.
1168
1169
818de002
PB
1170Thu Feb 27 22:57:19 1992 Per Bothner (bothner@cygnus.com)
1171
1172 * rs6k-opcode.h, tm-rs6000.h, xm-rs6000.h, rs6000-tdep.c,
1173 rs6000-xdep.c, xcoffexec.c, xcoffread.c:
1174 Merge in changes (mostly from IBM) for RS6000.
1175 * breakpoint.c, buildsym.c, infptrace.c, stack.c, symtab.c:
1176 More changes from IBM for RS6000. These are in machine-
1177 independent code, and probably could do with some cleaning
1178 up. The most questionable of these are #ifdef IBM6000.
1179 * infrun.c, sparc-tdep.c: Pass a parameter (signal number)
1180 to single_step() (for consistency with rs6000 and i860).
1181 * utils.c: Allow the 1st arg to xrealloc to be NULL
1182 (in which case do malloc). This removes the need for
1183 some tests in xcoff code (and perhaps other places?).
1184 * coffread.c: Removed variables last_source_file,
1185 type_vector, and type_vector_length as these are now
1186 defined by buildsym.[ch].
1187 * defs.h: Remove prototypes for malloc and realloc, since
1188 these should only be used to implement xmalloc and xrealloc,
1189 and they conflict with <stdlib.h> in AIX - where they
1190 return void* even when __STDC__ isn't defined. Sigh.
1191 * munch: Recognize *initialize* in data as well as text
1192 (AIX uses data). Also, incorporate a patch from Garrett
1193 Wollman <wollman@uvm-gen.uvm.edu> to make the sed script
1194 much more sensible, by only trying to match the name of
1195 the initialize_foo function, and not the junk before it.
1196
8537ba60
SG
1197Thu Feb 27 20:07:43 1992 Stu Grossman (grossman at cygnus.com)
1198
1199 * breakpoint.c (breakpoint_re_set_one): Don't reset breakpoint
1200 unless symbol table indicates that something has changed.
1201
069bc454
JG
1202Thu Feb 27 11:48:47 1992 John Gilmore (gnu at cygnus.com)
1203
b543979c
JG
1204 * remote.c: Make it work for embedded MIPS. Increase buffer
1205 size, and use throughout. Round buffer size up if too many regs.
1206 Support baud rate setting and try for an 8-bit path. If
1207 interrupted while waiting for target, send a ^C down the wire.
1208 Avoid single-byte reads.
1209 * tm-mips.h: Add more embedded-system registers to REGISTER_NAMES
1210 and NUM_REGS.
1211 * mips-xdep.h: Avoid the embedded regs when on Unix.
1212
d141f3e3
JG
1213 * mipsread.c: Byte-swap the symbol table structures, using
1214 routines from ecoff.c, to read a symbol table written in any
1215 of the four possible byte orders.
069bc454
JG
1216 * configure.in (mips-big-* target): Same as Sony News.
1217 * config/mt-bigmips, config/mt-littlemips: Add ecoff.o.
1218 * ecoff.c: New file for symbol swapping routines.
1219
80ba48f5
SG
1220Thu Feb 27 09:26:38 1992 Stu Grossman (grossman at cygnus.com)
1221
1222 * breakpoint.c (all_breakpoints_info, breakpoint_1): Add 'info
1223 all-breakpoints' command.
1224 * (get_number): Allow users to enter negative breakpoint numbers.
1225 * (breakpoint_1): Reformat display of 'info break' to show new
1226 fields.
1227 * (create_longjmp_breakpoint, breakpoint_re_set,
1228 breakpoint_re_set_one, enable/disable_longjmp_breakpoint),
1229 symfile.c (syms_from_objfile): Re-do
1230 insertion of longjmp breakpoints. Move all code into
1231 breakpoint_re_set, and call that instead of
1232 create_longjmp_breakpoint in symfile.c.
1233
cba0d141
JG
1234Thu Feb 27 06:11:05 1992 John Gilmore (gnu at cygnus.com)
1235
1236 * breakpoint.h (ALL_BREAKPOINTS_SAFE): Add.
1237 * breakpoint.c (breakpoint_re_set): Use ALL_BREAKPOINTS_SAFE.
1238 * symtab.c (find_pc_symtab): Handle having no objfiles.
1239 * infcmd.c: Fix comment.
1240 * objfiles.c (free_all_objfiles): Add.
1241 * symfile.h (ALL_OBJFILES, ALL_OBJFILES_SAFE): Add.
1242 * symfile.c (symbol_file_command): free all objfiles when
1243 specifying a new symbol file.
1244 (reread_symbols): Stat the file name, don't fstat the descriptor.
1245
a846ac55
FF
1246Wed Feb 26 18:04:40 1992 K. Richard Pixley (rich@cygnus.com)
1247
1248 * Makefile.in, configure.in: removed traces of namesubdir,
1249 -subdirs, $(subdir), $(unsubdir), some rcs triggers. Forced
1250 copyrights to '92, changed some from Cygnus to FSF.
1251
cba0d141
JG
1252Tue Feb 25 19:31:19 1992 Stu Grossman (grossman at cygnus.com)
1253
1254 * dbxread.c (end_psymtab): Delete empty psymtabs.
1255 * symfile.c (allocate_psymtab): Recycle empty psymtabs.
1256 * symfile.h (struct objfile): Add free_psymtabs.
1257
35318110
JG
1258Sat Feb 22 02:00:32 1992 John Gilmore (gnu at cygnus.com)
1259
47890ed7
JG
1260 * Makefile.in (VERSION): Roll to gdb-4.4.4.
1261
35318110
JG
1262 * symfile.c (symbol_file_command): strcmp => !strcmp.
1263 * breakpoint.h: Move prototypes to follow enum definition they need.
1264 * breakpoint.c, infrun.c: Lint.
1265 * printcmd.c: Use `enum enable' rather than `enum
1266 display_status'.
1267 * mipsread.c: First pass at making it compile with the new
1268 objfile changes. Probably seriously broken still, but it
1269 compiles. FIXME.
1270
30875e1c
SG
1271Sat Feb 22 00:56:39 1992 Stu Grossman (grossman at cygnus.com)
1272
1273 * infrun.c, infcmd.c, breakpoint.c, main.c, symfile.c,
1274 breakpoint.h, tm-sun4os4.h, tm-sparc.h, sparc-tdep.c, tm-mips.h,
1275 mips-tdep.h, tm-sun3.h, tm-68k.h, m68k-tdep.h: Add support for
1276 stepping (and nexting) through longjmp(). Also, cleanup
1277 breakpoint handling quite a bit by creating explicit breakpoint
1278 types instead of using magic breakpoint numbers.
1279 Makefile.in: Update version to 4.4.3
1280
021959e2
JG
1281Sat Feb 22 00:08:50 1992 John Gilmore (gnu at cygnus.com)
1282
93fe4e33
JG
1283 * buildsym.c, dwarfread.c, gdbtypes.c, inflow.c, main.c,
1284 minsyms.c, printcmd.c, remote.c, saber.suppress: Saberlint.
1285 * symmisc.c, xcoffread.c: Move debug functions to symmisc.c.
1286
021959e2
JG
1287 * xm-sun3os4.h, xm-sun4os4.h: Enable HAVE_MMAP.
1288
1289 * minsyms.c (install_minimal_symbols): Add bunches to any
1290 existing minsyms in the objfile. Avoid extra mallocation
1291 by working directly in the obstack. Remove ignored `mainline' parm.
1292 * coffread.c, dbxread.c, elfread.c, mipsread.c, solib.c, symtab.h,
1293 xcoffread.c: Change all callers.
1294 * FIXME: We should be able to eliminate MAINLINE from all the
1295 symbol readers now, with a small bit of work.
1296
1297 * valops.c, value.h: Lint.
1298 * remote-vx.c: Add missing break; statement. Bugfix by
1299 Michael Sclafani, <sclafani@src.dec.com>.
1300
bff1c97a
FF
1301Fri Feb 21 17:29:54 1992 Fred Fish (fnf at cygnus.com)
1302
1303 * Makefile.in (VERSION): Update version to 4.4.2
1304 * Makefile.in (SFILES_MAINDIR): Add gdbtypes.c, state.c, objfiles.c,
1305 minsyms.c, mmap-alloc.c, mmap-sbrk.c
1306 * Makefile.in (HFILES): Add gdbtypes.h, state.h, solib.h
1307 * Makefile.in (OBS): Add gdbtypes.o, state.o, objfiles.o, minsyms.o,
1308 mmap-alloc.o, mmap-sbrk.o
1309
1310 * altos-xdep.c: Minor whitespace change.
1311 * am29k-tdep.c (examine_prologue): Convert from misc function vector
1312 use to new minimal symbol table use.
1313 * arm-xdep.c (fetch_inferior_registers): Document unused argument.
1314 * arm-xdep.c (store_inferior_registers): Returns void.
1315 * blockframe.c (get_pc_function_start, find_pc_partial_function):
1316 Convert from misc function vector use to new minimal symbol table use.
1317 Remove find_pc_misc_function(). Ifdef out block_innermost_frame().
1318 * breakpoint.c: Add prototypes for local functions.
1319 * breakpoint.c (catch_command_1): Change to static and remove unused
1320 local "pc".
1321 * breakpoint.c (map_breakpoint_numbers): Prototype arg "function".
1322 * breakpoint.h: Change function decls to prototype form.
1323 * buildsym.c: Add prototypes for local functions.
1324 * buildsym.c: Moved hashname() function here from dbxread.c.
1325 * buildsym.c (dbx_lookup_type): Cast args to xrealloc().
1326 * buildsym.c: Remove dbx_create_type(), uses changed to alloc_type().
1327 * buildsym.c (dbx_alloc_type): Change to static.
1328 * buildsym.c (finish_block): Add objfile parameter.
1329 * buildsym.c (misc): Change symbol_obstack to objfile version.
1330 * buildsym.c (make_blockvector): Change to static.
1331 * buildsym.c (start_subfile): Use strdup instead of obsavestring.
1332 * buildsym.c (compare_line_numbers): Change to static, args are const,
1333 cast args when used.
1334 * buildsym.c (start_symtab): Inline new_object_header_files() call.
1335 * buildsym.c (patch_block_stabs): Moved to this file from xcoffread
1336 and made static. Add objfile parameter.
1337 * buildsym.c (end_symtab): Simplify code using line table size.
1338 Realloc the linetable on the objfile symbol_obstack and copy there.
1339 * buildsym.c (scan_file_globals): Convert from misc function vector
1340 use to new minimal symbol use.
1341 * buildsym.c (define_symbol): Add objfile parameter. Make sure
1342 strings get allocated in objfile's symbol_obstack. Convert references
1343 to builtin types to lookup_fundamental_type().
1344 * buildsym.c (read_type): Make static, add objfile parameter, convert
1345 references to buildin types to lookup_fundamental_type().
1346 * buildsym.c (read_struct_type): Add objfile parameter.
1347 * buildsym.c (read_array_type): Make static, add objfile parameter.
1348 * buildsym.c (read_enum_type): Make static, add objfile parameter.
1349 * buildsym.c (read_huge_number): Make static.
1350 * buildsym.c (read_range_type): Make static, add objfile parameter,
1351 convert references to buildin types to lookup_fundamental_type ().
1352 * buildsym.c (read_args): Make static, add objfile parameter.
1353 * buildsym.h: Convert function decl's to prototype form.
1354 * c-exp.y: Add prototypes for local functions, convert uses of misc
1355 function vector to minimal symbol table. Reformat all builtin type
1356 initializations and pass a NULL objfile to init_type() for them.
1357 * coffread.c: Change context_stack ref's to coff_context_stack,
1358 add local function prototypes. Cast uses of xrealloc arg 1.
1359 * coffread.c (coff_alloc_type): Call alloc_type instead of hand-
1360 crafting a new type.
1361 * coffread.c (add_symbol_to_list): Change to coff_add_symbol_to_list.
1362 * coffread.c (finish_block): Change name to coff_finish_block.
1363 * coffread.c (make_blockvector): Add and use objfile parameter.
1364 * coffread.c (record_line): Change name to coff_record_line.
1365 * coffread.c (start_symtab): Change name to coff_start_symtab.
1366 * coffread.c (end_symtab): Change name to coff_end_symtab.
1367 * coffread.c (record_misc_function): Change name to record_minimal_
1368 symbol and change to minimal symbol table use from misc func tbl.
1369 * coffread.c (coff_symfile_read): Convert from misc function vector
1370 use to minimal symbol table use.
1371 * coffread.c (hashname): Remove; use common version in buildsym.c.
1372 * coffread.c (decode_base_type): Change references to builtin types
1373 to calls to lookup_fundamental_type().
1374 * coffread.c (read_struct_type): Change name to coff_read_struct_type.
1375 * coffread.c (read_enum_type): Change name to coff_read_enum_type.
1376 * command.c: Add prototypes for local functions.
1377 * command.c (add_cmd): Prototype the 'fun' parameter and use the
1378 appropriate member of the function union for that type.
1379 * command.c (add_abbrev_cmd): Prototype the 'fun' parameter and
1380 ifdef out the function since it isn't currently used.
1381 * command.c (add_alias_cmd): Pass correct function type to add_cmd.
1382 * command.c (add_prefix_cmd): Prototype the 'fun' parameter.
1383 * command.c (add_abbrev_prefix_cmd): Prototype the 'fun' parameter.
1384 * command.c (help_cmd): Compare function pointer to NULL.
1385 * command.c (help_cmd_list): Compare function pointer to NULL.
1386 * command.c (lookup_cmd_1): Use correct member of function union.
1387 * command.c (undef_cmd_error): Make static.
1388 * command.c (complete_on_cmdlist): Use correct member of func union.
1389 * command.c (do_setshow_command): Use correct member of func union.
1390 * command.c (shell_escape): Convert rindex use to strrchr.
1391 * command.h (COMMAND_H): Define if already included.
1392 * command.h (cmd_list_element struct): Change 'function' to a union
1393 and prototype args. Prototype completer function.
1394 * command.h: Convert decl's to prototype form.
1395 * convex-xdep.c (store_inferior_registers): Returns void.
1396 * copying.c: Prototype local functions.
1397 * coredep.c: Minor whitespace change.
1398 * cplus-dem.c: Remove hack to use BSD equivalents of mem* and str*.
1399 * cplus-dem.c: Prototype local functions.
1400 * dbxread.c (hashname): Remove; moved to buildsym.c.
1401 * dbxread.c (free_and_init_header_files): Make static.
1402 * dbxread.c: Add prototypes for local functions.
1403 * dbxread.c (new_object_header_files): Remove; inlined usages.
1404 * dbxread.c (xrealloc usages): Cast args.
1405 * dbxread.c (record_misc_function): Change to record_minimal_symbol
1406 and change usages accordingly.
1407 * dbxread.c (static_psymbols usages): Change to use per-objfile copy.
1408 * dbxread.c (xmalloc usages): Use per-objfile copy when appropriate.
1409 * dbxread.c (dbx_next_symbol_text): Make static.
1410 * dbxread.c (init_psymbol_list): Convert to use per-objfile data.
1411 * dbxread.c (init_bincl_list): Add and use objfile parameter.
1412 * dbxread.c (free_bincl_list): Add and use objfile parameter.
1413 * dbxread.c (compare_psymbols): Remove; use common symfile.c version.
1414 * dbxread.c (end_psymtab): Convert to use per-objfile data.
1415 * dwarfread.c (DEFUN/EXFUN): Remove all usages. Use PARAMS for
1416 prototypes.
1417 * dwarfread.c (record_misc_function): Change name to record_minimal_
1418 symbol and use minimal symbol table throughout.
1419 * dwarfread.c (compare_psymbols): Remove; use common symtab.c version.
1420 * dwarfread.c: Convert all references to builtin types to use the new
1421 lookup_fundamental_type function.
1422 * dwarfread.c (read_enumeration): Add and use objfile parameter.
1423 * elfread.c (DEFUN/EXFUN): Remove all usages. Use PARAMS for proto-
1424 types.
1425 * elfread.c (record_misc_function): Convert to use record_minimal_
1426 symbol.
1427 * elfread.c (elf_symtab_read): Add objfile parameter.
1428 * eval.c: Add prototypes for local functions and move some decls
1429 around to accomodate prototypes.
1430 * expprint.c: Add prototypes for local functions. Change references
1431 to misc function vector to minimal symbol table.
1432 * findvar.c (read_memory usages): Cast args.
1433 * gdbtypes.h: New file, type info from symfile.h and symtab.h.
1434 * gmalloc.c: Use NOARGS where prototypes used hardwired void.
1435 * gmalloc.c (BLOCKSIZE): Constant to be shifted is unsigned.
1436 * gmalloc.h: Use NOARGS where prototypes used hardwired void.
1437 * gould-xdep.c: Minor whitespace change.
1438 * hp300ux-xdep.c (fetch_inferior_registers): Remove unused regno var.
1439 * hp300ux-xdep.c (store_inferior_registers): Returns void.
1440 * hp300ux-xdep.c (fetch_core_registers): Takes unused arg reg_addr.
1441 * i386-stub.c: Add prototypes, change "volatile" to NORETURN.
1442 * i386-tdep.c: Add prototypes for local functions.
1443 * i386-tdep.c (codestream_fill, codestream_seek, codestream_read,
1444 i386_get_frame_setup, i386_skip_prologue): Explicitly declare params
1445 that defaulted to int.
1446 * i386-tdep.c (i386_follow_jump, i386_frame_find_saved_regs,
1447 i386_push_dummy_frame): Returns void.
1448 * i386-xdep.c (i386_register_u_addr): Declare params that default to
1449 int and explicitly declare return type as int.
1450 * i387-tdep.c: Minor formatting changes.
1451 * i960-tdep.c (leafproc_return): Convert from misc function vector
1452 use to minimal symbol table use.
1453 * infcmd.c: Add prototypes for local functions.
1454 * infcmd.c (continue_command, until_next_command, until_command,
1455 path_info, path_command): Make static.
1456 * infcmd.c (step_1, until_next_command): Convert from misc func
1457 vector to minimal symbol table use.
1458 * inflow.c: Add prototypes for local functions.
1459 * infptrace.c (store_inferior_registers): Returns void, not int.
1460 * language.c (_initialize_language): Use proper member of function
1461 union.
1462 * m2-exp.y: Add prototypes for local functions, convert misc function
1463 vector uses to minimal symbol table uses.
1464 * m2-exp.y (make_qualname, yyerror): Make static.
1465 * m2-exp.y (_initialize_m2_exp): Call init_types with NULL objfile.
1466 * m68k-pinsn.c: Add prototypes for local functions.
1467 * m68k-pinsn.c (print_insn): Cast args to read_memory.
1468 * m68k-pinsn.c (fetch_arg): Make parameter 'code' and int.
1469 * m68k-stub.c: Add prototypes.
1470 * m88k-pinsn.c (sprint_address): Convert from misc function vector
1471 use to minimal symbol table use.
1472 * m88k-xdep.c (fetch_inferior_registers): Takes an unused parameter.
1473 * m88k-xdep.c (store_inferior_registers): Returns void.
1474 * mach386-xdep.c (fetch_inferior_registers): Takes an unused param.
1475 * mach386-xdep.c (store_inferior_registers): Returns void.
1476 * mach386-xdep.c (fetch_core_registers): Takes an unused parameter.
1477 * main.c: Add prototypes for local functions.
1478 * main.c (return_to_top_level): Is type NORETURN (volatile). Cast
1479 longjmp() result to (NORETURN void).
1480 * main.c (catch_errors): Prototype the 'func' parameter.
1481 * main.c (disconnect, stop_sig, do_nothin, float_handler):
1482 Takes an unused arg.
1483 * main.c (execute_command): Call the right member of the func union.
1484 * main.c (command_loop_marker, symbol_completion_function,
1485 command_loop): Make static.
1486 * main.c (command_line_input): Make linelength unsigned, cast arg
1487 to command_line_input().
1488 * main.c (add_info, add_com): Prototype the 'fun' parameter.
1489 * main.c (initialize_main): Call right member of function union.
1490 * mcheck.c (NOARGS): Change hardwired void in prototypes to NOARGS.
1491 * mem-break.c: Include symtab.h
1492 * mips-xdep.c (fetch_inferior_registers): Takes unused param.
1493 * mips-xdep.c (store_inferior_registers): Returns void.
1494 * mipsread.c (mipscoff_symfile_read): Change from misc function vector
1495 use to minimal symbol table use.
1496 * mipsread.c (symbol_obstack usages): Convert all to use per-objfile
1497 version.
1498 * mipsread.c (make_type): Remove, convert usages to init_type.
1499 * mipsread.c (_initialize_mipsread): Call init_type with NULL objfile.
1500 * nindy-tdep.c (nindy_frame_chain_valid): Convert from misc function
1501 vector use to minimal symbol table use.
1502 * parse.c: Add prototypes for local functions.
1503 * parse.c (xrealloc usages): Cast args.
1504 * parse.c (prefixify_expression, length_of_subexp): Make static.
1505 * parser-defs.h (PARSER_DEFS_H): Define when first included.
1506 * parser-defs.h: Convert function decls to prototype form.
1507 * partial-stab.h: Convert from misc function vector use to new minimal
1508 symbol table use.
1509 * partial-stab.h (global_psymbols, static_psymbols usages): Reference
1510 the per-objfile copies.
1511 * printcmd.c: Add prototypes for local functions. Move some struct
1512 definitions around to accomodate prototypes.
1513 * printcmd.c (decode_format): Make static, change args oformat and
1514 osize to int from char.
1515 * printcmd.c (print_formatted): Change 'format' and 'size' to int.
1516 * printcmd.c (print_scalar_formatted): Change arg 'format' to int.
1517 * printcmd.c (print_address_symbolic): Convert from misc function
1518 vector use to minimal symbol table use.
1519 * printcmd.c (address_info): Convert from misc function vector use
1520 to minimal symbol table use.
1521 * printcmd.c (delete_display, enable_display, disable_display_command):
1522 Make static.
1523 * procfs.c (EXFUN/DEFUN): Remove all usages, convert to PARAM.
1524 * procfs.c (fetch_core_registers): Add unused param reg_addr.
1525 * pyr-xdep.c (fetch_inferior_registers): Add unused param regno.
1526 * pyr-xdep.c (store_inferior_registers): Returns void.
1527 * remote-mm.c (mm_load): symbol_file_add return value unused.
1528 * remote-nindy.c: Minor format change.
1529 * remote-vx.c (vx_load_command): symbol_file_add result unused.
1530 * rs6000-xdep.c (fetch_inferior_registers): Add unused param regno.
1531 * rs6000-xdep.c (store_inferior_registers): Returns void.
1532 * rs6000-xdep.c (fetch_core_registers): add unused param reg_addr
1533 * rs6000-xdep.c (aixcoff_relocate_symtab): Convert from misc function
1534 vector use to minimal symbol table use.
1535 * solib.c: Add prototypes for local functions.
1536 * solib.c (solib_add_common_symbols, locate_base): Convert from misc
1537 function vector use to minimal symbol table use.
1538 * solib.c (EXFUN/DEFUN): Remove all usages, convert to PARAM.
1539 * solib.c (find_solib, shared_library_command): Make static
1540 * solib.c (read_memory, write_memory usages): Cast args.
1541 * solib.c (special_symbol_handling): Add function
1542 * source.c: Add prototypes for local functions.
1543 * source.c (select_source_symtab): Convert to scan objfiles.
1544 * source.c (open_source_file): Make static.
1545 * source.c (xrealloc usages): Cast args.
1546 * source.c (source_line_charpos): ifdef out, unused.
1547 * source.c (get_filename_and_charpos): Make static.
1548 * stack.c: Add prototypes for local functions.
1549 * stack.c (print_frame_info, frame_info): Convert from misc function
1550 vector use to minimal symbol table use.
1551 * symfile.c: Add prototypes for local functions.
1552 * symfile.c (compare_symbols): Make args const PTR's.
1553 * symfile.c (compare_psymbols, sort_pst_symbols) add.
1554 * symfile.c (sort_all_symtab_syms): Scan objfile list.
1555 * symfile.c (obsavestring): Add objfile parameter.
1556 * symfile.c (init_misc_bunches, prim_record_misc_function,
1557 compare_misc_functions, discard_misc_bunches, condense_misc_bunches,
1558 sort_misc_function_vector, compact_misc_function_vector): Remove
1559 * symfile.c (symbol_file_add_digested): Add function.
1560 * symfile.c (symbol_file_add): Returns struct objfile *.
1561 * symfile.c (symbol_file_command): Modify for state file use.
1562 * symfile.c (symfile_open): Add parameter "dumpable".
1563 * symfile.c (allocate_objfile, free_objfile): Moved to objfiles.c
1564 * symfile.c (load_command, add_symbol_file_command): Make static.
1565 * symfile.c (fill_in_vptr_fieldno): Moved to gdbtypes.c
1566 * symfile.c (rindex usages): Converted to strrchr.
1567 * symfile.c (allocate_psymtab): New
1568 * symfile.c (free_named_symtabs): Ifdef out code that needs to be
1569 converted to minimal symbol table usage, but no obvious conversion.
1570 * symfile.c (free_all_symtabs): Remove.
1571 * symfile.c (_initialize_symfile): Use per-objfile info.
1572 * symfile.h: Rework the objfile structure to add per-objfile data
1573 objects (psymbol_obstack, symbol_obstack, type_obstack,
1574 global_psymbols, static_psymbols, msymbols, minimal_symbol_count,
1575 fundamental_types, malloc, realloc, free, xmalloc, xrealloc, etc).
1576 Add prototypes to function declarations.
1577 * symm-tdep.c (symmetry_extract_return_value): Convert from misc
1578 function vector usage to minimal symbol table usage.
1579 * symmisc.c (DEV_TTY): Define if not defined.
1580 * symmisc.c: Add local function prototypes.
1581 * symmisc.c (dump_objfile, dump_msymbols, dump-symtab, print_syms,
1582 printpsyms_command, print_objfiles, print_objfiles_command):
1583 Rework to use iterate_over_*
1584 * symtab.c: Add prototypes for local functions.
1585 * symtab.c (lookup_symtab_1): Convert to look through objfiles.
1586 * symtab.c (lookup_partial_symtab): Scan through objfiles.
1587 * symtab.c (lookup_primitive_typename, lookup_typename, lookup_
1588 unsigned_typename, lookup_struct, lookup_union, lookup_enum,
1589 lookup_template_type, lookup_struct_elt_type, lookup_pointer_type,
1590 lookup_reference_type, lookup_member_type, allocate_stub_method,
1591 check_stub_method, create_array_type, smash_to_member_type,):
1592 Moved to gdbtypes.c
1593 * symtab.c (lookup_symbol): Some args are const.
1594 * symtab.h: All type related defs and structs moved to gdbtypes.h
1595 * symtab.h: Convert decls to prototypes.
1596 * target.c (noprocess): Make static.
1597 * target.h: Change decl's to prototypes.
1598 * tm-sunos.h: (CLEAR_SOLIB, SOLIB_ADD, SOLIB_CREATE_INFERIOR_HOOK,
1599 DISABLE_UNSETTABLE_BREAK) Moved to solib.h.
1600 * utils.c (_initialize_utils): Use correct member of function union.
1601 * valarith.c: include gdbtypes.h
1602 * valops.c: include gdbtypes.h, add prototypes for local functions.
1603 * valops.c (value_push, value_arg_push, find_function_addr):
1604 Make static.
1605 * valops.c (value_string): Convert from misc function vector use
1606 to minimal symbol table use.
1607 * valops.c (check_field_in): Make arg const.
1608 * valprint.c: Add prototypes for local functions.
1609 * valprint.c (print_string): Make static
1610 * valprint.c (value_print, val_print_fields, val_print): Make arg int.
1611 * values.c: Add prototypes for local functions.
1612 * values.c (value_headof): Convert from misc function vector to
1613 minimal symbol table.
1614 * xcoffexec.c: Add prototypes for local functions.
1615 * xcoffexec.c (exec_close, file_command, add_to_section_table):
1616 Make static.
1617 * xcoffexec.c (relocate_minimal_symbol): Add.
1618 * xcoffread.c (patch_block_stabs): Moved to buildsyms.c.
1619 * xcoffread.c: Add prototypes for local functions.
1620 * xcoffread.c (sort_syms): Convert to scan objfiles.
1621 * xcoffread.c (read_xcoff_symtab): Make static.
1622 * xcoffread.c (various): Replace references to builtin types with
1623 calls to lookup_fundamental_type. Replace references to symbol_obstack
1624 and psymbol_obstack with pointers to the per-objfile copies.
1625 * xcoffread.c (dump_linetable, dump_type, dump_symbol, dump_namespace,
1626 dump_block, dump_blockvector, dump_last_symtab, dump_symtabs):
1627 Make static.
1628 * xcoffread.c (init_stringtab): Add objfile parameter.
1629 * gdbtypes.c: New file
1630 * minsyms.c: New file
1631 * mmap-alloc.c: New file
1632 * mmap-sbrk.c: New file
1633 * objfiles.c: New file
1634 * state.c: New file
1635 * state.h: New file
1636
021959e2
JG
1637Fri Feb 21 17:29:54 1992 John Gilmore (gnu at cygnus.com)
1638
1639 * Check in Fred Fish's changes in these modules. Fred
93fe4e33
JG
1640 will make ChangeLog entries for all of them. Update VERSION
1641 to 4.4.2.
021959e2 1642
7919c3ed
JG
1643Thu Feb 20 18:10:17 1992 Fred Fish (fnf at cygnus.com)
1644
1645 * tm-sparc.h, tm-sysv4.h, solib.h: Move shared lib definitions
1646 into solib.h.
1647 * sparc-pinsn.c, sparc-tdep.c, standalonec, sun3-xdep.c,
1648 sun386-xdep.c, symm-xdep.c, target.c, ultra3-xdep.c, utils.c,
1649 value.h: Prototypes for static functions; lint.
1650 * gdbtypes.h: Empty file to ease transition.
1651
75af490b
JG
1652Thu Feb 20 16:43:13 1992 Fred Fish (fnf at cygnus.com)
1653
1654 * environ.h, expression.h, frame.h, gdbcmd.h, gdbcore.h,
1655 inferior.h, language.h, signame.h, target.h, terminal.h,
1656 tm-68k.h, tm-i386v.h, tm-sparc.h, tm-sun386.h, tm-symmetry.h,
1657 xm-i386v.h, xm-sparc.h: Prototypes for all external functions.
1658 Lint.
1659 * core.c, exec.c, infrun.c, inftarg.c, language.c, remote.c,
1660 signame.c, sparc-xdep.c: Prototypes for all static functions.
1661 Lint.
1662 * core.c, eval.c, exec.c, inftarg.c, remote-adapt.c, remote-eb.c,
1663 remote-hms.c, remote-mm.c, remote-nindy.c, remote-vx.c, remote.c,
1664 target.c, target.h, valarith.c, valops.c, value.h, xcoffexec.c:
1665 Remove to_call_function and target_call_function, since it
1666 always calls the same thing (call_function_by_hand).
1667 * core.c, exec.c, solib.c: Rename target_ops sections =>
1668 to_sections, etc.
1669 * infcmd.c, inflow.c, infptrace.c, infrun.c, main.c, target.c,
1670 target.h: target_kill takes no args.
1671 * language.c (language_info): Scaffolding to allow briefer
1672 messages when the current language changes. FIXME.
1673 * xm-amix.h, xm-i386v4.h, xm-stratus.h: Define NORETURN to avoid
1674 complaints about volatile functions.
1675 * xm-sysv4.h (HAVE_MMAP): Define.
1676
1677Thu Feb 20 09:04:18 1992 Fred Fish (fnf at cygnus.com)
088c3a0b
JG
1678
1679 * defs.h: Include ansidecl.h and PARAMS macro. Use PARAMS
1680 to make prototypes for all functions declared here.
1681 * cplus-dem.c: Avoid declaring xmalloc and xrealloc.
1682 * c-exp.y: Rename SIGNED, OR, and AND to avoid conflict.
1683 * environ.c: Include <stdio.h> before defs.h. Minor cleanup.
1684 * ieee-float.h: Use PARAMS for prototypes; make some params const.
1685 * ieee-float.c, valarith.c: Include <stdio.h>. Lint. b*=>mem*.
1686 * m2-exp.y: Remove unused CONST; Rename OR and AND.
1687 * utils.c: Avoid declaring malloc and realloc. Lint.
1688 (request_quit): Accept signal-number parameter.
1689
af213624
FF
1690Mon Feb 17 07:13:27 1992 Fred Fish (fnf at cygnus.com)
1691
9e4c1921
FF
1692 * dwarfread.c (process_dies): Add case to handle TAG_pointer_type
1693 DIE's. Add new function read_tag_pointer_type() to read them.
1694
af213624
FF
1695 * dwarfread.c (dwarf_read_array_type, read_subroutine_type):
1696 When creating a new user defined type, check to see if a partial
1697 type already exists, and if so, bash it to fit.
1698
be8303da
JG
1699Fri Feb 14 19:00:17 1992 John Gilmore (gnu at cygnus.com)
1700
1701 * coffread.c (decode_base_type): Pass long, not union.
1702 Fix by Eric Valette, ev@chorus.fr.
1703
d35bf52d
FF
1704Thu Feb 13 17:14:28 1992 Fred Fish (fnf at cygnus.com)
1705
1706 * elfread.c (elf_symtab_read): Fix code to correctly track
1707 changes in bfd for absolute symbols.
1708
5b620e75
SG
1709Thu Feb 13 12:43:29 1992 Stu Grossman (grossman at cygnus.com)
1710
1711 * xm-vaxbsd.h: Close off comment.
1712
0a663e9e
FF
1713Thu Feb 13 07:45:19 1992 Fred Fish (fnf at cygnus.com)
1714
1715 * xm-sysv4.h: Define NEED_POSIX_SETPGID.
1716
1717Fri Feb 7 11:51:12 1992 Per Bothner (bothner at cygnus.com)
1718
1719 * mips-tdep.c (mips_print_registers): Print correct register
1720 number for double pseudo-registers.
1721
ef9b1bc9
JG
1722Fri Feb 7 07:56:05 1992 John Gilmore (gnu at cygnus.com)
1723
256269fc
JG
1724 * buildsym.c (read_struct_type): Avoid double-bump of parse ptr
1725 in the op$::OPERATOR. case. From Steven McCanne,
1726 <mccanne@horse.ee.lbl.gov>.
1727
ef9b1bc9
JG
1728 * exec.c (set_section_name): Pass arg to exec_files_info;
1729 only call it if interactive. From Francis Kauth <fk@tv.tv.tek.com>.
1730
195853fc
JG
1731Thu Feb 6 17:41:32 1992 John Gilmore (gnu at cygnus.com)
1732
1733 * main.c (print_gdb_version): Copyright msg: only this year.
1734 (cd_command): Avoid changing current_directory on error.
1735
ee17fd34
PB
1736Thu Feb 6 15:14:01 1992 Per Bothner (bothner at cygnus.com)
1737
1738 * mipsread.c (parse_partial_symbols): Handle dependencies
1739 between partial symbol tables (when not doing stabs-in-ecoff).
1740 (This used to be handled by parse_fdr, but parse_fdr was
1741 incompatible with handling stabs-in-ecoff, so the code
1742 was re-written to not use parse_fdr. Unfortunately,
1743 the logic to handle dependencies was overlooked.)
1744
1f46923f
SC
1745Thu Feb 6 11:51:39 1992 Steve Chamberlain (sac at rtl.cygnus.com)
1746
1747 * coffread.c (read_enum_type): Use the size of a target int when
1748 describing enum.
1749 * defs.h: added new #define for TARGET_PTR_BIT, defaults to size
1750 of target int.
1751 * h8300-tdep.c, remote-hms.c, tm-h8300.h: too many changes to count
1752 * symtab.c (lookup_reference_type, lookup_ptr_type): use
1753 TARGET_PTR_BIT to determine size of a pointer
1754 * values.c (unpack_long): when unpacking a REF or a PTR don't
1755 assume the size of the type.
1756
778c358d
JG
1757Wed Feb 5 22:29:59 1992 John Gilmore (gnu at cygnus.com)
1758
1759 * mipsread.c (parse_symbol): Avoid clobbering enum pointer when
1760 looking at its members. Improve guess between struct and union,
1761 only assuming union if multiple members have offsets of zero.
1762
bd49ef36
PB
1763Tue Feb 4 18:05:44 1992 Per Bothner (bothner at cygnus.com)
1764
1765 * mipsread.c: Use (FP0_REGNUM-32) instead of magic number 6.
1766 (This is just for clarity - and one day permitting us to
1767 change FP0_REGNUM from 38 to 32, which would make more sense.)
1768 * tm-mips.h: Added STAB_REG_TO_REGNUM macro, so that
1769 register numbers in stabs-in-ecoff get handled correctly.
1770
1771Sat Feb 1 04:45:10 1992 Stu Grossman (grossman at cygnus.com)
1772
1773 * xm-vax.h, xm-vaxult.h, xm-vaxbsd.h, config/mh-vaxult,
1774 config/mh-vaxbsd, configure.in: Split up config stuff for Vaxen
1775 into BSD and Ultrix.
1776
96499e96
JG
1777Sat Feb 1 04:39:41 1992 John Gilmore (gnu at cygnus.com)
1778
1779 * dbxread.c (dbx_symfile_init): Call malloc, not xmalloc.
1780
98f03b91
SG
1781Sat Feb 1 04:15:41 1992 Stu Grossman (grossman at cygnus.com)
1782
dafe57bc 1783 * Makefile.in: Increment version to 4.4.1.
98f03b91
SG
1784 * main.c (print_gdb_version): Update copyright notice.
1785
1786Sat Feb 1 01:43:11 1992 Per Bothner (bothner at cygnus.com)
1787
1788 * mipsread.c: Prepend "struct " to the names of structure
1789 types, and similarly for enums and unions. (This used
1790 to be done, but got lost in the re-write to "guess" the
1791 difference between enum/struct/union.)
1792 Also, guess that a tag is an enum if the first member
1793 has type btNil.
1794
3671f1fd
SG
1795Fri Jan 31 21:45:51 1992 Stu Grossman (grossman at cygnus.com)
1796
1797 * xm-vax.h: #ifndef ultrix around #include of endian.h and
1798 limits.h (sigh).
1799
0c6efbcc
JG
1800Fri Jan 31 00:05:01 1992 John Gilmore (gnu at cygnus.com)
1801
ee7270cd
JG
1802 * Projects: Patching executables is done.
1803 * Makefile.in (VERSION): Roll to gdb-4.4.
75c86b57 1804 * README, WHATS.NEW: Update for gdb-4.4.
ee7270cd 1805
4a1dcb7f
JG
1806 * symfile.c (reread_symbols): Whenever we reread one object
1807 file's symbols, we must restart the scan, because the object_files
1808 chain has been permuted.
1809
0c6efbcc
JG
1810 * exec.c (exec_files_info): Split out into print_section_info.
1811 Print BFD filename of each section if it's not the default one.
1812 * core.c (core_files_info): Call print_section_info.
1813
1814 * xm-vax.h: Include a few system header files whose definitions
1815 must precede defs.h.
1816 * language.c, language.h: Make some things const.
1817 * expression.h, main.c: const spreads like ooze.
1818
1819 * mem-break.c (break_insn, break_insn_size): Use unsigned chars,
1820 since BREAKPOINT values can be >0x80.
1821
d58ea996
SG
1822Thu Jan 30 17:21:14 1992 Stu Grossman (grossman at cygnus.com)
1823
1824 * infrun.c, xm-i386sco.h: SCO needs to use setpgid().
1825
0c6efbcc
JG
1826Thu Jan 30 01:04:23 1992 John Gilmore (gnu at cygnus.com)
1827
1828 * sparc-pinsn.c: Remove kludge for preferring architectures.
1829 Remove #ifdef's for SORT_NEEDED. We need to sort the table, now
1830 and forever. Add `add' instruction to the set that get checked
1831 for a preceding `sethi' in order to print an absolute address.
1832 Corresponding changes in ../include/opcode/sparc.h needed
1833 to eliminate garbage instructions.
1834
d4ea2aba
PB
1835Wed Jan 29 19:24:34 1992 Per Bothner (bothner at cygnus.com)
1836
1837 * mipsread.c (parse_partial_symbols): Make sure partial
1838 symbols are created for external symbols (as used to be
1839 the case). This is a bit of a pain with the mips-coff.
1840 It uses a table which points to all of the external
1841 symbols belonging to a particular FDR or psymtab.
1842 Once we've generated this table, we might as well save
1843 it, and then use it in psymtab_to_symtab_1 to find
1844 the symbols to pass to parse_external().
1845 * symfile.c, symfile.c: New function start_psymtab_common
1846 to share the common parts of allocating a new psymtab
1847 for dbxread, mipsread (and later dwarfread). Its code
1848 was pulled out from start_psymtab in dbxread.c.
1849 * dbxread.c (start_psymtab): Use start_psymtab_common().
1850
1851 * valprint.c (val_print): If there is an error when trying
1852 to print a string, check to see if there really is a problem
1853 by reading just one character. If that works, assume
1854 things are ok.
1855
05151637
SG
1856Wed Jan 29 18:58:43 1992 Stu Grossman (grossman at cygnus.com)
1857
1858 * sparc-pinsn.c (compare_opcodes): Make it prefer v6, v7,
1859 cypress, v8 mnemonics in that order.
1860
4a074bea
PB
1861Tue Jan 28 17:32:13 1992 Per Bothner (bothner at cygnus.com)
1862
1863 * sparc-pinsn.c: Put the qsort() back in.
1864
c55e6167 1865Mon Jan 27 18:51:03 1992 John Gilmore (gnu at cygnus.com)
1aa560b2 1866
eae1a261
JG
1867 * findvar.c (read_register, write_register): Handle machines
1868 where REGISTER_TYPE is not the same size as "int".
1869
c55e6167 1870 Handle debug symbols in dynamically loaded (relocated) code:
3c03b5de 1871
c55e6167
JG
1872 * dbxread.c (read_ofile_symtab): Fix up N_CATCH better. Pass
1873 offset to process_one_symbol.
1874 (process_one_symbol): Take new offset parameter. Add it into
1875 appropriate symbol types to relocate symbols to loaded addresses.
1876 Handle all possible symbol types, and complain() about types that
1877 we don't expect to see.
1878 * mipsread.c (psymtab_to_symtab_1): Pass offset of zero to
1879 process_one_symbol (FIXME, should pass real offset).
1aa560b2 1880
c55e6167
JG
1881 Misc bugfixes:
1882
1883 * breakpoint.c (resolve_sal_pc): Split out code to resolve a
1884 sal's PC value.
1885 (set_breakpoint, break_command_1, until_break_command,
1886 catch_command_1, breakpoint_re_set_one): Use it.
c55e6167
JG
1887 * symtab.h (resolve_sal_pc): Declare.
1888 * infcmd.c (jump_command): Use resolve_sal_pc.
1889
4cc9f7e2 1890 * source.c (list_command): Shorten "FILE, line N" to "FILE:N".
c55e6167
JG
1891
1892 * putenv.c (putenv): Avoid unportably casting pointers to unsigneds.
3818ed33 1893
5a4e7215
JG
1894 * c-exp.y (yylex): `this' and `template' are only tokens in C++.
1895
3818ed33
JG
1896 * xm-convex.h, xm-hp300bsd.h, xm-isi.h, xm-merlin.h, xm-news.h,
1897 xm-np1.h, xm-pn.h, xm-pyr.h, xm-rtbsd.h, xm-symmetry.h, xm-umax.h:
1898 Remove MISSING_VPRINTF declaration, and superfluous "kgdb" defines.
1899
c55e6167
JG
1900Mon Jan 27 15:46:21 1992 Stu Grossman (grossman at cygnus.com)
1901
1902 * dbxread.c (process_one_symbol): Make a first cut at handling
1903 symbol tables generated by Sun's acc. (#ifdef'd out, FIXME.)
1904
1905 * symtab.c (find_pc_line): Fix stepping into and out of #included
1906 files.
1907
71f49876
SG
1908Mon Jan 27 13:00:55 1992 Stu Grossman (grossman at cygnus.com)
1909
1910 * Makefile.in (OPCODES): Remove OPCODES defs and refs. There is
1911 no longer any need to copy ../include/opcode/* into gdb.
1912
fd8db897
JG
1913Mon Jan 27 12:30:38 1992 John Gilmore (gnu at cygnus.com)
1914
1915 * ChangeLog, ChangeLog-9091: Split ChangeLog at 1992.
1916
24b2fbdc
PB
1917Sun Jan 26 19:05:40 1992 Per Bothner (bothner at cygnus.com)
1918
1919 * valprint.c (type_print_base, type_print_method_args):
1920 Print C++ constructor methods without bogus "return type."
1921
cdb90e99
FF
1922Sat Jan 25 15:57:59 1992 Fred Fish (fnf at cygnus.com)
1923
1924 * infptrace.c (child_xfer_memory): Parameter "target" should
1925 be a pointer to a structure, not the entire structure.
1926
1b07e406
FF
1927Fri Jan 24 01:30:27 1992 Fred Fish (fnf at cygnus.com)
1928
1929 * depend: Convert the couple of references to ansidecl.h that
1930 used the local gdb version to use the ../include version.
1931
9a1ae235
FF
1932Thu Jan 23 22:24:43 1992 Fred Fish (fnf at cygnus.com)
1933
f66f459f
FF
1934 * procfs.c
1935 (child_xfer_memory): Takes pointer to a struct, not entire struct.
1936 (inferior_proc_init): Fix non-ANSI version of args.
1937 (attach): Call print_sys_errmsg with correct number of args.
1938 (mappingflags): Make static, does not need to be global.
1939
fc1f8646
FF
1940 * i386-tdep.c (i386_frame_num_args): Takes a pointer to a struct
1941 not the entire struct itself.
1942
1b7a420e
FF
1943 * valops.c (value_assign): Cast some args to modify_field() and
1944 {read,write}_register_bytes() correctly.
1945
9a1ae235
FF
1946 * ansidecl.h: Removed, is duplicate of ../include/ansidecl.h
1947
99140c31
FF
1948 * Makefile.in (MALLOCSRC): Removed reference to removed local
1949 copy of ansidecl.h.
1950
1951 * dwarfread.c (list_in_scope): Needs an initial value, use file
1952 scope.
1953
9a1ae235
FF
1954Mon Jan 20 19:06:28 1992 Stu Grossman (grossman at cygnus.com)
1955
1956 * main.c (main): Make option_index local to keep new getopt happy.
1957 main.c, solib.c, Makefile.in: Update copyright notices.
1958
0eb0a820
MT
1959Mon Jan 20 08:54:00 1992 Michael Tiemann (tiemann at cygnus.com)
1960
1961 * cplus-dem.c (cplus_demangle): Correctly demangle destructors.
1962
313085cb
SG
1963Sat Jan 18 17:17:45 1992 Stu Grossman (grossman at cygnus.com)
1964
1965 * Makefile.in (HFILES): Add partial-stab.h.
1966
be9a2362
FF
1967Sat Jan 18 16:45:01 1992 Fred Fish (fnf at cygnus.com)
1968
24e7d5ba
JG
1969 * config/mh-stratus, config/mt-stratus, tm-stratus.h, xm-stratus.h:
1970 New files for stratus. Not complete enough to actually build
1971 on the Stratus machine; that awaits copyright assignment for
1972 i860 changes.
be9a2362
FF
1973
1974 * Makefile.in (USER_CFLAGS): Add macro specifically reserved
1975 for getting custom flags into CFLAGS when doing makes.
1976
1977 * configure.in: Add config information for stratus.
1978
cdce29ee
FF
1979Thu Jan 16 00:51:46 1992 Fred Fish (fnf at cygnus.com)
1980
1981 * dbxread.c (process_one_symbol): Pass address of structure
1982 to complain(), rather than the whole structure.
1983
7f435241
FF
1984Wed Jan 15 09:56:16 1992 Fred Fish (fnf at cygnus.com)
1985
1986 * solib.c (solib_add_common_symbols): Only compile in when not
1987 using SVR4 style shared libraries.
1988
a5bd5ba6
FF
1989Tue Jan 14 22:34:00 1992 Fred Fish (fnf at cygnus.com)
1990
1991 * dwarfread.c (locval): Add offreg flag to indicate location
1992 values that are computed off a base register.
1993
1994 * dwarfread.c (new_symbol): Rework TAG_global_variable and
1995 TAG_local_variable cases to account for static variables
1996 within function scopes.
1997
7e97eb28
SG
1998Tue Jan 14 12:28:52 1992 Stu Grossman (grossman at cygnus.com)
1999
8c3d2a53
SG
2000 * inflow.c: remove #include <sys/dir.h>. Not necessary, and
2001 doesn't exist on some systems.
2002
5e746644
SG
2003 * infrun.c (wait_for_inferior!!!!): Prevent gdb from hanging when
2004 nexting over recursive function calls.
2005
d261ece7
SG
2006 * target.c (target_read_string): Create this routine to read null
2007 terminated strings from the target. It deals with running off the
2008 end of memory elegantly as well. solib.c (find_solib): Use
2009 target_read_string() to avoid problems with running off the end of
2010 memory.
2011
7e97eb28
SG
2012 * inflow.c (child_terminal_info): #ifdef TIOCPGRP around lines
2013 that reference pgrp_inferior.
2014
0cf9329b
PB
2015Mon Jan 13 14:57:11 1992 Per Bothner (bothner at cygnus.com)
2016
2017 * tm-mips.h: Removed BLOCK_ADDRESS_ABSOLUTE, now that
2018 mips-tfile has been hacked to act more "traditionally."
2019 * dbxread.c: Fixed typo in comment.
2020
488d2691
PB
2021Sun Jan 12 13:08:36 1992 Per Bothner (bothner at cygnus.com)
2022
2023 * mips-tdep.c (mips_skip_prologue): Add some number of
2024 'sw' instructions before 'addiu' adjusts the stack.
2025
4d315a07
FF
2026Fri Jan 10 13:47:06 1992 Fred Fish (fnf at cygnus.com)
2027
2028 * dwarfread.c (start_symtab, end_symtab, scopecount, openscope,
2029 freescope, buildblock closescope, record_line, add_symbol_to_list,
2030 gatherblocks, make_blockvector): Extensive changes to switch
2031 to generic symbol table building code in buildsym.c. Remove
2032 scope tree structures and functions, symbol table building
2033 functions, and lots of other small changes.
2034
2035 * dwarfread.c: Add new macros GCC_PRODUCER and STREQN. Remove
2036 GCC_COMPILED_FLAG_SYMBOL and GCC2_COMPILED_FLAG_SYMBOL.
2037
2038Tue Jan 7 13:09:57 1992 Stu Grossman (grossman at cygnus.com)
2039
2040 * buildsym.c (cleanup_undefined_types): Add support for enums.
2041 This fixes the 'GDB internal error. cleanup_undefined_types with
2042 bad type' problem.
2043
2044Sun Jan 5 09:47:50 1992 Stu Grossman (grossman at cygnus.com)
2045
2046 * dbxread.c: detect gcc2 compilations.
2047
1a4d253c
JG
2048Thu Jan 2 15:07:41 1992 John Gilmore (gnu at cygnus.com)
2049
2050 * sparc-pinsn.c: Rename bitfields that overlap with macro names
2051 in ../include/opcode/sparc.h.
2052
1d4c28c5
FF
2053Wed Jan 1 04:29:00 1992 Fred Fish (fnf at cygnus.com)
2054
2055 * Makefile.in: Change tm-svr4.h to tm-sysv4.h. Change xm-svr4.h
2056 to xm-sysv4.h. Split OPCODE_DIR into OPCODE_DIR1 and OPCODE_DIR2
2057 to reflect actual locations of opcode files, so TAGS target will
2058 be buildable.
2059
2060 * i386-tdep.c: Change an erroneous 'm68k' reference to 'i386'.
2061
2062 * i386-tdep.c (supply_fpregset, fill_fpregset): Remove m68k
2063 code.
2064
2065 * m68k-tdep.c (supply_fpregset, fill_fpregset): Fix array
2066 dereferencing to access the correct elements.
2067
2068 * valops.c (value_addr): Declare return type of external func
2069 value_copy().
2070
2071 * xcoffread.c: Undefine next_symbol_text before redefining it.
2072
fd8db897 2073For older changes see ChangeLog-9091
bd5635a1
RP
2074\f
2075Local Variables:
2076mode: indented-text
2077left-margin: 8
2078fill-column: 74
2079version-control: never
2080End:
This page took 0.165759 seconds and 4 git commands to generate.