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