* solib.c (clear_solib): Don't close bfd if it is NULL.
[deliverable/binutils-gdb.git] / gdb / ChangeLog
CommitLineData
7a758f71
JK
1Thu May 6 21:08:55 1993 Jim Kingdon (kingdon@cygnus.com)
2
3 * solib.c (clear_solib): Don't close bfd if it is NULL.
4
34b70237
FF
5Thu May 6 20:55:35 1993 Fred Fish (fnf@cygnus.com)
6
7 * core.c (dis_asm_read_memory): Cast second arg of
8 target_read_memory to "char *".
9 * breakpoint.c (watchpoint_check): Change arg type from PTR to
10 "char *", to match other functions called by catch_errors().
11
2c298c09
SG
12Thu May 6 15:47:45 1993 Stu Grossman (grossman@cygnus.com)
13
14 * More patches from Jeffrey Law (law@cs.utah.edu).
15 * gdb/config/pa/tm-hppah.h (millicode_start, millicode_end):
16 Delete unnecessary declarations.
17
9e15da4a
SG
18Thu May 6 15:15:46 1993 Stu Grossman (grossman@cygnus.com)
19
20 * ser-unix.c (wait_for): Use VTIME to do timeouts instead of
21 poll() for termio{s}.
22
dfa592fb
JK
23Thu May 6 10:03:41 1993 Jim Kingdon (kingdon@cygnus.com)
24
25 * i386-tdep.c (i386_frame_num_args): Always return -1.
26
d83a6710
SG
27Wed May 5 15:16:33 1993 Stu Grossman (grossman@cygnus.com)
28
a34d4bc1 29 * Patches from Jeffrey Law <law@cs.utah.edu>.
8fa74880
SG
30 * gdb/hppa-tdep.c: Declare frame_saved_pc.
31 (frameless_function_invocation): New function.
32 (frame_saved_pc, init_extra_frame_info): Use
33 frameless_function_invocation.
f45e781f 34 * gdb/config/pa/tm-hppa.h (SAVED_PC_AFTER_CALL): Use saved_pc_after
8fa74880
SG
35 call instead of just grabbing the value currently in %r2.
36 (FRAMELESS_FUNCTION_INVOCATION): Use frameless_function_invocation.
f45e781f 37 * gdb/config/pa/tm-hppah.h (SAVED_PC_AFTER_CALL): Delete private
8fa74880 38 definition and use the common one in tm-hppa.h.
4b01383b
SG
39 * gdb/hppa-tdep.c (frame_chain_valid): If "use_unwind" is true, then
40 use unwind descriptors to determine if the frame chain is valid.
b227992a
SG
41 * gdb/hppa-tdep.c (find_dummy_frame_regs): Rework so that
42 it does not assume %r4 is the frame pointer.
68c8d698
SG
43 * gdb/hppa-pinsn.c (print_insn): Handle 'r' and 'R' for break, rsm,
44 and ssm instructions.
45 * gdb/hppa-tdep.c (extract_5r_store, extract_5R_store): New
46 helper functions for print_insn.
a34d4bc1 47 * gdb/hppa-tdep.c (gcc_p, hpux_cc_p): Delete unused functions.
d83a6710 48 * gdb/config/pa/tm-hppa.h (ABOUT_TO_RETURN): Handle a return
a34d4bc1 49 which nullifies the following instruction.
d83a6710 50
a7edcb25
JK
51Tue May 4 12:11:38 1993 Jim Kingdon (kingdon@cygnus.com)
52
d83a6710
SG
53 * infptrace.c [FIVE_ARG_PTRACE]: Define ptrace to call_ptrace and
54 pass the 5th arg there, rather than using an ANSI C-specific macro.
55
a7edcb25
JK
56 * Makefile.in (depend): Don't include ${CC} command for *.tab.c.
57
d39fbfe3
FF
58Tue May 4 19:33:12 1993 Fred Fish (fnf@cygnus.com)
59
60 * Makefile.in (VERSION): Bump to 4.8.5
61 * Makefile.in (INCLUDE_CFLAGS): Add BFD_DIR and READLINE_DIR
62 directories to include search path.
63 * Makefile.in (CLIBS, CDEPS, ADD_FILES, ADD_DEPS): Clean up
64 whitespace.
65 * Makefile.in (depend): For gcc -MM line, use INTERNAL_CFLAGS
66 * Makefile.in (main.o, dbxread.o, coffread.o, mipsread.o,
67 elfread.o, dwarfread.o, stabsread.o, xcoffread.o, xcoffexec.o,
68 xdr_ld.o, xdr_rdb.o, nindy.o, Onindy.o, ttybreak.o, ttyflush.o,
69 udr.o, udip2soc.o): Remove explicit rules, use the ones that
70 are automatically generated in "depend".
71 * Makefile.in (paread.o): Document why a dependency doesn't get
72 automatically generated in "depend" and leave this explicit rule
73 in for now (FIXME).
74 * depend: Update to latest automatically generated version.
75
5b8462fa
JK
76Tue May 4 12:11:38 1993 Jim Kingdon (kingdon@cygnus.com)
77
67240bb8
JK
78 * xcoffread.c: Doc fix.
79
5b8462fa
JK
80 * Makefile.in (depend): Include $(CC) command in generated output.
81
3ed81011
RP
82Mon May 3 23:34:09 1993 K. Richard Pixley (rich@rtl.cygnus.com)
83
84 * nindy-share/Onindy.c, nindy-share/nindy.c: convert malloc calls
85 to xmalloc. Include defs.h. Rename local macro from
86 REGISTER_BYTES to NINDY_REGISTER_BYTES to avoid conflict with
87 defs.h.
88
5287eacd
FF
89Mon May 3 22:51:05 1993 Fred Fish (fnf@cygnus.com)
90
91 * Makefile.in (NONSRC): Remove ${srcdir}/putenv.c.
92 * Makefile.in (SFILES): Add ${srcdir}/putenv.c.
93 * depend: Update to latest automatically built version.
94
9775789d
SG
95Mon May 3 19:20:20 1993 Stu Grossman (grossman@cygnus.com)
96
f202f778
SG
97 * sparclite/Makefile.in: Create default target that does nothing
98 in order to force user to build by hand.
99
1e8005d0
SG
100 * sparclite/Makefile: Remove. It's not necessary anymore.
101
9775789d
SG
102 * ser-unix.c (wait_for): New routine to handle read timeouts,
103 etc. Uses poll() if HAVE_TERMIO[S] is defined, select() otherwise.
104
588cca90
ILT
105Mon May 3 13:52:08 1993 Ian Lance Taylor (ian@cygnus.com)
106
107 * mips-pinsn.c (print_insn): Return value.
108
ebd99d54
FF
109Sun May 2 11:43:57 1993 Fred Fish (fnf@cygnus.com)
110
588cca90
ILT
111 * Makefile.in (SFILES): Remove ser-hardwire.c; it is a link made
112 at configuration time and doesn't belong in the distribution archive.
113
d8aaff82
FF
114 * Makefile.in (NONSRC): Add 29k-share/README.
115 * Makefile.in (HFILES): Add 29k-share/udi/udiids.h.
116
ebd99d54
FF
117 * defs.h (UINT_MAX, LONG_MAX, INT_MAX, INT_MIN): Replace hex
118 constants with slightly more portable definitions (still depends
119 on 2's complement arithmetic though).
120 * config/i386/nm-linux.h: Define NO_SYS_REG_H for no <sys/reg.h>.
121 * i386v-nat.c (sys/reg.h): Conditionalize include on
122 NO_SYS_REG_H. Linux doesn't have <sys/reg.h>.
123 * ser-unix.c (termio.h): Include <termio.h> like other files that
124 include termio.h, not <sys/termio.h> which may not exist (on
125 linux for example).
126
9b25bb09
FF
127Sat May 1 16:05:24 1993 Fred Fish (fnf@cygnus.com)
128
129 * valprint.c (print_longest): Change format parameter from a
130 'char' to an 'int'. We can't have 'char' parameters with the
131 current coding style, where we mix prototypes with pre-ANSI
132 style declarations.
133 * value.h (print_longest): Change format parameter in prototype
134 from a 'char' to an 'int'.
135
dea149ce
PS
136Sat May 1 02:47:20 1993 Peter Schauer (pes@regent.e-technik.tu-muenchen.de)
137
23654371 138 * config/mips/tm-mips.h (STAB_REG_TO_REGNUM): Match it with the gcc
dea149ce 139 definition.
23654371 140 * config/mips/tm-irix3.h (STAB_REG_TO_REGNUM): Add.
dea149ce
PS
141 * irix4-nat.c (fill_fpregset): Fix bug with indexing into fpregsetp.
142
2f1c04d1
SG
143Fri Apr 30 17:45:32 1993 Stu Grossman (grossman@cygnus.com)
144
145 * The following patches are from Jeffrey Law <law@cs.utah.edu>.
146 * config/pa/hppabsd.mh: Add more files to NATDEPFILES.
147 * config/pa/xm-hppa[bh].h: Define FIVE_ARG_PTRACE.
148 * hppab-nat.c: Delete WANT_NATIVE_TARGET ifdefs.
149 ptrace needs 5 arguments, #define ptrace to always
150 pass zero as the 5th argument.
151
c7cb9064
SC
152Fri Apr 30 15:54:13 1993 Steve Chamberlain (sac@thepub.cygnus.com)
153
154 * configure.in: Match z8k-*-sim for z8000.
155 * config/h8500/tm-h8500.h, h8500-tdep.c: Lint.
156 * remote-hms.c: Update to use new serial protocol.
157
5385e525
RP
158Fri Apr 30 16:50:38 1993 K. Richard Pixley (rich@rtl.cygnus.com)
159
5084717f
RP
160 * mips-tdep.c: remove include of sys/dir.h. Doesn't seem
161 necessary and Solaris doesn't have it.
162
0139c441
RP
163 * Makefile.in (clean-info, install, install-info, info, dvi,
164 check, all): do not echo recursion lines.
165
5084717f 166 * 29k-share/udip2soc.c (UDIConnect): replace union wait with int.
8317b39f 167
13b464b2
RP
168 * config/sparc/sun4sol2.mh (XM_CLIBS): add -lsocket which is
169 required target ports which use sockets (like a29k-udi).
170
2f1c04d1 171 * remote-udi.c (udi_wait): Use SIGURG, as Solaris doesn't have SIGLOST.
5385e525 172
8d57a263
JK
173Fri Apr 30 11:05:42 1993 Jim Kingdon (kingdon@cygnus.com)
174
eca29634
JK
175 * ser-unix.c [USE_{TERMIO,ALARM}_TIMEOUT]: New code to deal with
176 systems lacking select().
177
db7c818b 178 * Makefile.in (TAGS): Doc fix. Deal with empty DEPFILES.
8d57a263 179
496ca67c
FF
180Fri Apr 30 10:06:46 1993 Fred Fish (fnf@cygnus.com)
181
182 * alldeps.mak, depend: Update with latest automatically built
183 versions.
184
3717e95b
FF
185Thu Apr 29 12:03:23 1993 Fred Fish (fnf@cygnus.com)
186
d5f608a4
FF
187 * Makefile.in (SFILES): Add ser-unix.c and ser-go32.c.
188
97e72c06
FF
189 * Makefile.in (make-proto-testsuite.dir): New target to make
190 prototype testsuite tree.
97e72c06 191
3717e95b
FF
192 * Makefile.in (VERSION): Bump to 4.8.4.
193
ff580c7b
JK
194Thu Apr 29 08:46:22 1993 Jim Kingdon (kingdon@cygnus.com)
195
196 * stabsread.c (define_symbol): If unrecognized constant type,
197 complain() not error().
198
7efb57c3
FF
199Thu Apr 29 00:03:59 1993 Fred Fish (fnf@cygnus.com)
200
f43aec2e
FF
201 * infptrace.c: Add missing close paren to test for
202 FIVE_ARG_PTRACE defined.
203
7efb57c3
FF
204 * defs.h (CC_HAS_LONG_LONG): Set up to define CC_HAS_LONG_LONG
205 when compiling with gcc, but disable it for now. See comment.
206 * defs.h (LONGEST): Define as either "long" or "long long"
207 based on CC_HAS_LONG_LONG.
208 * defs.h (longest_to_int): Use CC_HAS_LONG_LONG to control
209 how longest_to_int is defined.
210 * c-valprint.c (c_val_print): Call print_longest.
211 * expprint.c (dump_expression): Use PRINTF_HAS_LONG_LONG
212 instead of LONG_LONG.
213 * {printcmd.c, gdbtypes.h} (LONG_LONG): Replace usages with
214 CC_HAS_LONG_LONG.
215 * printcmd.c (print_scalar_formatted): Call print_longest
216 and let it figure out what to do for PRINTF_HAS_LONG_LONG.
217 * typeprint.c (print_type_scalar): Call print_longest and let
218 it figure out what to do for PRINTF_HAS_LONG_LONG.
219 * valprint.c (val_print_type_code_int): Call print_longest
220 and let it figure out what to do for PRINTF_HAS_LONG_LONG.
221 * stabsread.c (LONG_LONG): Replace usages with CC_HAS_LONG_LONG.
222 * value.h (struct value): Replace usage of LONG_LONG with
223 CC_HAS_LONG_LONG.
224 * value.h (print_longest): Add prototype.
225 * values.c (LONG_LONG): Replace usages with CC_HAS_LONG_LONG.
226 * values.c (unpack_double): Collapse code that was unnecessarily
227 dependent on CC_HAS_LONG_LONG. Use LONGEST instead of direct types.
228 * values.c (value_from_longest): Remove dependency on
229 CC_HAS_LONG_LONG and just use LONGEST.
230 * solib.c (solib_map_sections): Use bfd_get_filename
231 to access filename field.
232 * solib.c (clear_solib): Save filename and free it later, after
233 bfd_close, since bfd_close may reference it. Use bfd_get_filename
234 to access the field.
235 * config/convex/xm-convex.h (LONG_LONG): Replace with
236 CC_HAS_LONG_LONG. Add define for PRINTF_HAS_LONG_LONG.
237 * doc/gdbint.texinfo (LONG_LONG): Replace with CC_HAS_LONG_LONG.
238 Add PRINTF_HAS_LONG_LONG references.
239
0626f40d
JK
240Wed Apr 28 06:11:38 1993 Jim Kingdon (kingdon@cygnus.com)
241
31b56726
JK
242 * inflow.c (kill_command), infcmd.c (attach_command),
243 remote.c (remote_interrupt_twice): In messages for the user, call it
244 "the program" or "the program being debugged" not "the inferior".
245
0626f40d
JK
246 * hp300ux-nat.c: Cast second arg to supply_register calls.
247 (_initialize_kernel_u_addr, getpagesize): New functions.
248 (store_inferior_register_1): Change arg name from value to val.
249 (fetch_core_registers): Make arg core_reg_size unsigned.
250 Pass 5 args to ptrace.
251 * config/m68k/xm-hp300hpux.h: Define FIVE_ARG_PTRACE.
252 Remove KERNEL_U_ADDR stuff.
253 * infptrace.c [FIVE_ARG_PTRACE]: Pass 5th arg to ptrace.
254 * config/m68k/hp300hpux.m{t,h}:
255 Move exec.o from NATDEPFILES to TDEPFILES
256 * config/m68k/hp300hpux.mt: Mention GAS requirement. Remove
257 hp-include stuff. Add m68k-tdep.o to TDEPFILES.
258
d8f23320
PS
259Wed Apr 28 13:27:54 1993 Peter Schauer (pes@regent.e-technik.tu-muenchen.de)
260
261 * ch-exp.y (yylex): Don't STREQ with simplename if it is NULL.
262
08bb2617
JK
263Wed Apr 28 06:11:38 1993 Jim Kingdon (kingdon@cygnus.com)
264
265 * config/sparc/xm-sun4os4.h [__STDC__]: Don't use MALLOC_INCOMPATIBLE.
266
caa53d6d
RP
267Wed Apr 28 11:39:18 1993 Roland H. Pesch (pesch@fowanton.cygnus.com)
268
269 * doc/gdb.texinfo: make node "Shell Commands" unconditional;
270 describe `set demangle-style arm' (not cfront);
271 mention can type `q' to discard output, when gdb pages
272
212e10cf
PS
273Wed Apr 28 11:32:39 1993 Peter Schauer (pes@regent.e-technik.tu-muenchen.de)
274
275 * valops.c (search_struct_field): Fix gdb core dump with incomplete
276 stabs info.
277
ebdb9ade
JK
278Wed Apr 28 06:11:38 1993 Jim Kingdon (kingdon@cygnus.com)
279
280 * remote.c: Change timeout to 2.
281 (remote_open): Use unpush_target not remote_close.
282 (remote_resume): If siggnal != 0, give warning not error().
283 (remote_wait, remote_interrupt, remote_interrupt_twice):
284 If we get two interrupts, let the user get out if they want.
285 (remote_{kill,mourn}): New functions.
286 i386-stub.c (handle_exception, case 'k'): Don't BREAKPOINT.
287
c0f2f39c
ILT
288Wed Apr 28 09:20:55 1993 Ian Lance Taylor (ian@rtl.cygnus.com)
289
290 * config/sparc/sun4sol2.mh (XM_CLIBS): Define to be -lnsl.
291
609e1c57
JK
292Wed Apr 28 06:11:38 1993 Jim Kingdon (kingdon@cygnus.com)
293
71607f9d
JK
294 * Remote targets (mourn): Call unpush_target.
295
e82980e4
JK
296 * config/sparc/xm-sun4os4.h: Declare free() to return int.
297 Remove twisted use of PARAMS.
298
609e1c57
JK
299 * config/rs6000/xm-rs6000.h: Don't define MALLOC_INCOMPATIBLE now
300 that ansidecl.h assumes ANSI on AIX.
301
ab425a9b
JK
302Tue Apr 27 10:01:33 1993 Jim Kingdon (kingdon@cygnus.com)
303
304 * README: Move most stuff about hacking GDB to doc/gdbint.texinfo.
305 (Known bugs): Remove AIX bugs, revise SPARC struct bug description.
306
f661c4ca
PS
307Tue Apr 27 13:44:19 1993 Peter Schauer (pes@regent.e-technik.tu-muenchen.de)
308
309 * expprint.c (print_subexp): Fix bug with OP_SCOPE operator output.
310
ebe8362f
JK
311Tue Apr 27 10:01:33 1993 Jim Kingdon (kingdon@cygnus.com)
312
313 * remote-vx.c (net_connect): Allow numeric IP address for host.
314
9faacb92
SC
315Mon Apr 26 17:59:38 1993 Steve Chamberlain (sac@thepub.cygnus.com)
316
317 * config/sh/sh.mt, config/sh/tm-sh.h, sh-tdep.c: New files.
318
9aa31e91
JK
319Mon Apr 26 07:13:32 1993 Jim Kingdon (kingdon@cygnus.com)
320
321 * rs6000-tdep.c (branch_dest): Deal with stepping through system call.
322
323 * symtab.h, xcoffread.c: Revise linetable sorting comments.
324
24d45a63
PS
325Sun Apr 25 02:32:16 1993 Peter Schauer (pes@regent.e-technik.tu-muenchen.de)
326
327 * valops.c (value_cast): A cast might also change the object
328 representation in C++.
329 * dbxread.c (end_psymtab): Copy subpst read_symtab function from pst
330 to get the proper read_symtab function when called from mipsread.c.
331 * mipsread.c (mipscoff_psymtab_to_symtab, psymtab_to_symtab_1):
332 Set cur_bfd in psymtab_to_symtab_1 as CURBFD(pst) is invalid
333 for dummy psymtabs, inhibit processing of dummy psymtabs.
334
8cba9703
JK
335Sat Apr 24 19:59:54 1993 Jim Kingdon (kingdon@cygnus.com)
336
87237c52
JK
337 * Changes from (or inspired by) AMD:
338 * remote-udi.c (udi_attach): Assignments to Space and Offset were
339 switched, fix it.
340 (udi_wait): Make error message (UDIGetStdout) match error.
341 (udi_wait): Handle UDIStdinNeeded.
342 * command.c [CANT_FORK]: Use system().
343 * utils.c (prompt_for_continue): Allow quit with 'q'.
344
8cba9703
JK
345 * solib.c (solib_add): Don't call special_symbol_handling if there
346 were errors in symbol_add_stub. Also set so->from_tty before
347 calling symbol_add_stub.
348
66a1aa07
SG
349Fri Apr 23 16:17:00 1993 Stu Grossman (grossman@cygnus.com)
350
351 * Merge in HPPA/BSD patches from Utah:
352 * defs.h: Add const to 2nd arg of psignal prototype.
353 * hppah-tdep.c: Renamed to hppa-tdep.c 'cuz it's common code with
354 BSD now.
355 * hppab-core.c: Deleted. No longer useful.
356 * hppab-nat.c: #include more files. Use PT_WUREGS, not
357 PT_WRITE_U.
358 * hppab-tdep.c: Deleted. Supplanted by hppa-tdep.c.
359 * config/pa/hppabsd.mh (NATDEPFILES): Remove hppab-core.o.
360 * config/pa/hppabsd.mt (TDEPFILES): hppab-tdep.o => hppa-tdep.o
361 * config/pa/hppahpux.mt (TDEPFILES): hppab-tdep.o => hppa-tdep.o
362 * config/pa/xm-hppab.h: #define SET_STACK_LIMIT_HUGE.
363
b5728692
SG
364Fri Apr 23 10:34:02 1993 Stu Grossman (grossman@cygnus.com)
365
366 * Fix two bugs found by deja-gnu. One is the incorrect reporting
367 of the PC being in a stack dummy when looking at a core file
368 without symbols. The other is the incorrect passing of char
369 arguments during expression evaluation (ie: p foo('a','b') would
370 mess up the passing of it's args because it wasn't coercing the
371 char's to ints).
372 * hppah-tdep.c: Rename global functions to have consistent hppa_
373 prefix. Make more functions static. Drop hp_ prefix from static
374 functions. (hppa_push_arguments): Call value_arg_coerce to cast
375 char to int args if necessary. (hppa_fix_call_dummy): Create
376 this routine from FIX_CALL_DUMMY macro in tm-hppa.h.
377 * inferior.h (PC_IN_CALL_DUMMY): Check for frame_address being
378 valid (ie: != 0) before doing comparison against PC.
379 * valops.c (call_function_by_hand): Adjust call to FIX_CALL_DUMMY
380 to reflect new arguments.
381 * config/pa/tm-hppa.h (POP_FRAME, PUSH_ARGUMENTS): Use new hppa_
382 prefix for func name. (FIX_CALL_DUMMY): Move code into
383 hppah-tdep.c.
384
385 * testsuite/gdb.t16/gdbme.c, testsuite/gdb.t17/gdbme.c: Add calls
386 to malloc() so that we can test GDB eval of dynamically created
387 arrays (like char strings in `print "foo"').
388
7586127f
PS
389Fri Apr 23 01:28:14 1993 Peter Schauer (pes@regent.e-technik.tu-muenchen.de)
390
391 * printcmd.c (print_address_symbolic): Search symtabs as well as the
392 minimal symbols for a nearby symbol.
393
158a0711
JG
394Thu Apr 22 19:44:21 1993 John Gilmore (gnu@cacophony.cygnus.com)
395
396 * coffread.c: Comment changes around minimal symbol recording.
397
3127785a
RP
398Thu Apr 22 16:24:36 1993 K. Richard Pixley (rich@rtl.cygnus.com)
399
158a0711 400 * command.c: comment changes only.
f936e20d 401
3127785a
RP
402 * mips-tdep.c (heuristic_fence_post): new static variable.
403 (heuristic_proc_start): use heuristic_fence_post, print better
404 warnings, but only if not stop_soon_quietly.
405 (_initialize_mips_tdep): add_set_cmd for heuristic-fence-post.
406
5afa2040
JK
407Thu Apr 22 14:50:05 1993 Jim Kingdon (kingdon@cygnus.com)
408
409 * symtab.h: Fix LOC_REF_ARG comment.
410
411Wed Apr 22 20:21:30 1993 Peter Schauer (pes@regent.e-technik.tu-muenchen.de)
412 and Jim Kingdon (kingdon@cygnus.com)
413
414 * stabsread.c (define_symbol): Combine a 'p', 'r' arg pair to a
415 LOC_REGPARM symbol.
416 * config/sparc/tm-sparc.h (REG_STRUCT_HAS_ADDR): Revise comments.
417 symfile.c (compare_symbols): Don't check first character; STRCMP
418 does that.
419
420 * stabsread.c (define_symbol): Generate a LOC_REGPARM_ADDR for
421 structures that are passed by address in a register.
422 * symtab.h (enum address_class): Add LOC_REGPARM_ADDR.
423 * findvar.c (read_var_value),
424 printcmd.c (address_info, print_frame_args),
425 stack.c (print_frame_arg_vars), symmisc.c (print_{,partial_}symbol),
426 * symtab.c (lookup_block_symbol): Deal with it.
427
fce30fa1
JK
428Thu Apr 22 09:07:24 1993 Jim Kingdon (kingdon@cygnus.com)
429
4365c36c
JK
430 * objfiles.h (obj_section), objfiles.c (build_objfile_section_table):
431 Add objfile field.
432 * objfiles.c (find_pc_section): Return a struct obj_section *.
433 * sparc-tdep.c (in_solib_trampoline): Deal with find_pc_section return.
434 * symfile.c (syms_from_objfile) [IBM6000_TARGET]:
435 Don't use obj_section hack.
436 * xcoffexec (vmap_symtab): Relocate obj_sections.
437 * printcmd.c (containing_function_bounds): Use find_pc_section.
438
fce30fa1
JK
439 * symtab.h: Clean up SYMBOL_VALUE comments.
440
f2c365f5
JK
441Wed Apr 21 14:29:57 1993 Jim Kingdon (kingdon@cygnus.com)
442
31258e4f
JK
443 * stack.c (print_frame_arg_vars), printcmd.c (print_frame_args):
444 Expand comments about LOC_ARG/LOC_LOCAL pairs.
445
f2c365f5
JK
446 * coffread.c (read_coff_symtab): Use rewind before fseek.
447
32d8a6d3
PB
448Wed Apr 21 14:24:19 1993 Per Bothner (bothner@cygnus.com)
449
450 * ch-exp.y: Removed unused structure_primitive_value and FIXME_23.
451 * Makefile.in: Add $(YFLAGS) when using $(YACC).
452 * Makefile.in: Remove message to expect conflicts and unused
453 rules in ch-exp.y, since there no longer are any such.
454
1b5c6c05
DZ
455Wed Apr 21 13:27:50 1993 david d `zoo' zuhn (zoo at cirdan.cygnus.com)
456
457 * stabs.texinfo: fixed bad xrefs (un-initialized statics)
458
cee86be3
JK
459Tue Apr 20 08:55:11 1993 Jim Kingdon (kingdon@cygnus.com)
460
4cdcf3b9
JK
461 * xcoffexec.c (xcoff_relocate_core): If no exec file, error()
462 rather than dumping core.
463
24c2857c 464 * Makefile.in: Add ${srcdir}/ to all source files.
4cdcf3b9 465 (alldeps.mak): Add "${srcdir}/" to files when generating alldeps.mak.
24c2857c
JK
466 (TAGS): Deal with srcdir and new config directory scheme.
467 createtags: Remove.
468 Makefile.in (NONSRC): Remove createtags.
469 alldeps.mak: Updated.
470
cee86be3
JK
471 * rs6000-tdep.c: Delete unused function print_frame.
472
473 * frame.h (struct frame_info): Doc fix for next_frame.
474 New field signal_handler_caller.
475 blockframe.c (create_new_frame, get_prev_frame_info),
476 config/rs6000/tm-rs6000.h (INIT_EXTRA_FRAME_INFO): Set it (needs
477 INIT_FRAME_PC_FIRST).
478 stack.c (print_frame_info), rs6000-tdep.c (rs6000_frame_chain):
479 Check it.
480
9583b295
SG
481Mon Apr 19 22:52:33 1993 Stu Grossman (grossman@cygnus.com)
482
483 * irix4-nat.c (fetch_core_registers): Special version of this for
484 Irix 4.x, which stores regs a bit differently from other /proc
485 based systems.
486 * procfs.c, core-svr4.c: Move fetch_core_registers from procfs.c
487 to new file core-svr4.c.
488 * config/i386/i386sol2.mh, config/i386/i386v4.mh, config/m68k/amix.mh,
489 config/i386/ncr3000.mh, config/sparc/sun4sol2.mh: Add core-svr4.o
490 to NATDEPFILES.
491 * config/mips/irix4.mh: Add corelow.o to NATDEPFILES.
492
3f06498a
JK
493Mon Apr 19 11:13:34 1993 Jim Kingdon (kingdon@cygnus.com)
494
495 * i387-tdep.c: Remove unused #includes.
496
497 * configure.in: Match i[34]86-*-sysv3.2 not i[34]86-*-sysv32.
498
499 * config/i386/nm-i386v.h: Define NO_PTRACE_H.
500
058eb766
JK
501Sun Apr 18 10:39:35 1993 Jim Kingdon (kingdon@cygnus.com)
502
503 * xcoffread.c: Nuke NO_DEFINE_SYMBOL code. There is no going back.
504
505 * stabsread.c (define_symbol): 'R' is synonym for 'P', not 'r'.
506 xcoffread.c (process_xcoff_symbol, case C_RPSYM):
507 Don't muck with SYMBOL_CLASS.
508
04c6a64f
SG
509Fri Apr 16 17:38:33 1993 Stu Grossman (grossman@cygnus.com)
510
511 * munch: Don't use head command. It doesn't exist everywhere.
512
9c225659
FF
513Fri Apr 16 15:07:57 1993 Fred Fish (fnf@cygnus.com)
514
515 * inflow.c (new_tty): Remove spurious 'o' character at end
516 of #endif line.
517
e157305c
PS
518Fri Apr 16 12:27:11 1993 Peter Schauer (pes@regent.e-technik.tu-muenchen.de)
519
520 * mips-tdep.c (mips_skip_prologue): Always skip the typical prologue
521 instructions and nothing more.
522 * mipsread.c (add_line): Add comment why we have to combine line number
523 entries for the same line number.
524
0b28c260
JK
525Fri Apr 16 09:42:03 1993 Jim Kingdon (kingdon@cygnus.com)
526
527 * symtab.{c,h}: Doc fixes (remove symseg references, last relevant
528 in gdb 2.8!).
529
dd052d9a
FF
530Thu Apr 15 21:16:58 1993 Fred Fish (fnf@cygnus.com)
531
532 * depend, alldeps.mak: Update, now that gcc -MM bug is fixed.
533
9fa59efd
JK
534Thu Apr 15 12:38:39 1993 Jim Kingdon (kingdon@cygnus.com)
535
536 * source.c (select_source_symtab): Clean up comment. Also, if
537 we have a current_source_symtab, and s is NULL, return without
538 doing anything.
539 xcoffread.c (xcoff_symfile_read): Don't call select_source_symtab.
540 breakpoint.c (breakpoint_re_set): Don't call select_source_symtab.
541
65ce5df4
JG
542Thu Apr 15 02:37:48 1993 John Gilmore (gnu@cacophony.cygnus.com)
543
544 * dbxread.c (unknown_symchar_complaint): Add new complaint.
6f49b01e 545 * stabsread.h: Declare it.
65ce5df4
JG
546 * partial-stab.h: Use it.
547
548 * utils.c (malloc_botch): Don't forward-declare if NO_MMALLOC.
549
486b440e
JK
550Wed Apr 14 17:12:51 1993 Jim Kingdon (kingdon@cygnus.com)
551
df2a1bd7
JK
552 * stack.c (print_frame_info): Print specially if dummy frame.
553
fa99ebe1
JK
554 * breakpoint.c: Add comments regarding within_scope future direction.
555
ee7e82fe
JK
556 * Version 4.8.3.
557
486b440e
JK
558 * xcoffread.c (record_include_{begin,end}): Change fatal to complain.
559
560Wed Apr 14 14:03:18 1993 Per Bothner (bothner@cygnus.com)
561
562 * ch-exp.y: Fix thinko that broke parsing of FALSE.
563
39cb3d04
PS
564Wed Apr 14 12:49:29 1993 Peter Schauer (pes@regent.e-technik.tu-muenchen.de)
565
566 * stabsread.c (read_member_functions): Initialize domain for stubbed
567 member functions to avoid gdb core dumps when printing pointers
568 to member functions.
569 * cp-valprint.c (cp_print_class_method): Check for stubbed member
570 functions.
571
ccd87bf2
JK
572Tue Apr 13 08:28:26 1993 Jim Kingdon (kingdon@cygnus.com)
573
e2ff731b
JK
574 * expprint.c (print_subexp): If opcode not found in op_print_tab,
575 stop with an error().
576 eval.c (evaluate_subexp): Change error message.
577
ccd87bf2
JK
578 * objfiles.c (build_objfile_section_table): Cast return value
579 from obstack_finish.
580
0a62ff36
JK
581Mon Apr 12 10:53:50 1993 Jim Kingdon (kingdon@cygnus.com)
582
f3649227
JK
583 * config/rs6000/tm-rs6000.h, rs6000-tdep.c: Move FRAME_CHAIN
584 to rs6000_frame_chain and deal with it if we're in a signal handler.
585 (FRAME_SAVED_PC): Use rs6000_frame_chain.
586
0a819c04
JK
587 * breakpoint.c (within_scope): New function.
588 (enable_breakpoint, watchpoint_check): Use it.
589
affc9686
JK
590 * source.c (openp): Handle "exec-file ./ls" correctly.
591
0a62ff36
JK
592 * breakpoint.c (breakpoint_1): Use wrap_here before "at".
593
5a7c9cce
PB
594Sat Apr 10 01:32:43 1993 Per Bothner (bothner@rtl.cygnus.com)
595
596 * ch-exp.y: Clean up lexing of identifiers and
597 reserved words. (E.g. don't recognize FALSEXXX as the
598 keyword FALSE followed by the identifier XXX.)
599 Also, convert identifiers to lower case.
600
1724c671
SG
601Fri Apr 9 15:53:19 1993 Stu Grossman (grossman@cygnus.com)
602
603 * remote-mips.c, remote-monitor.c, remote-st2000.c: Convert to
604 new serial interface.
605
4febd102
SG
606Fri Apr 9 15:01:12 1993 Stu Grossman (grossman@cygnus.com)
607
608 * remote.c (remote_open): Use SERIAL_OPEN instead of serial_open.
609 (putpkt, getpkt): Use new return codes for SERIAL_READCHAR.
610 * ser-go32.c: Return -1 on most failures, 0 on most successes,
611 and use new return codes for go32_readchar().
612 * ser-unix.c: Ditto. Also, move error handling up to caller for
613 SERIAL_SETBAUDRATE().
614 * serial.c (serial_open): Internal call, not SERIAL_OPEN to get
615 to specific routine.
616 (serial_close): New routine to wrap around device close routine.
617 serial.h: Clean & document return values more clearly.
618
a80c7bf6
JK
619Fri Apr 9 10:20:55 1993 Jim Kingdon (kingdon@cygnus.com)
620
944c1c2f
JK
621 * rs6000-pinsn.c (print_operand): Deal with no operand instructions.
622
623 * rs6000-pinsn.c (print_operand, case LI): Print condition register
624 operand in decimal rather than wrong textual versions.
625
21486670
JK
626 * printcmd.c (_initialize_printcmd): Clean up docstring for "x"
627 (mention 't', remove false thing about 'g' only good with 'f').
628
ddc6e6f7
JK
629 * breakpoint.h: move "struct breakpoint" and friends to top of
630 file so that bpstat_find_breakpoint prototype works.
631
a80c7bf6
JK
632 * solib.c (struct so_list): Add bfd field.
633 (solib_map_sections): Leave bfd open and scratch_pathname allocated.
634 Put the bfd in bfd field of the so_list.
635 (clear_solib): Free bfd name and close_bfd on the bfd.
636
47f366bc
PB
637Fri Apr 9 00:45:41 1993 Per Bothner (bothner@rtl.cygnus.com)
638
639 * valarith.c (value_subscript): Add COERCE_REF.
640 * ch-exp.y (operand_5): We can generalize the 2nd operand
641 of a string repetition ot 'literal' without ambiguity.
642
cabd4da6
JK
643Thu Apr 8 10:15:10 1993 Jim Kingdon (kingdon@lioth.cygnus.com)
644
645 * breakpoint.h (struct bpstat): Remove momentary field.
646 Remove bpstat_momentary_breakpoint. This was always kludgy
647 and is no longer used.
648
649 * breakpoint.h: Add enum bpstat_what.
650 breakpoint.h (struct bpstat), breakpoint.c (bpstat_stop_status):
651 stop and print fields of bpstat now per-breakpoint, not just
652 one for the whole chain.
653 breakpoint.{c,h} (bpstat_what): New function.
654 breakpoint.h: Remove bpstat_stop and bpstat_should_print.
655 infrun.c: Replace switch (stop_bpstat->breakpoint_at->type)
656 with call to bpstat_what.
657 README: Remove watchpoint/breakpoint bug from known bugs.
658
659 * breakpoint.h: Prototype bpstat_find_breakpoint.
660
dfbfbd96
FF
661Thu Apr 8 16:01:21 1993 Fred Fish (fnf@cygnus.com)
662
663 * symtab.c (find_methods, gdb_mangle_name): Note that functions
664 are g++ specific.
665 * symtab.h (VTBL_FNADDR_OFFSET, OPNAME_PREFIX_P, VTBL_PREFIX_P,
666 DESTRUCTOR_PREFIX_P): Note that macros are g++ specific.
667
668Thu Apr 8 12:45:32 1993 Ian Lance Taylor (ian@cygnus.com)
669
670 * i960-pinsn.c (tabent): Copied struct definition from
671 opcodes/i960-dis.c.
672
ca6a826d
PS
673Thu Apr 8 10:34:37 1993 Peter Schauer (pes@regent.e-technik.tu-muenchen.de)
674
675 * symtab.h (DESTRUCTOR_PREFIX_P): New macro to check if physname
676 is a C++ destructor.
677 * symtab.c (gdb_mangle_name): Use it.
678 * symtab.c (find_methods): Do not add destructors to choice list
679 for constructors.
680 * symtab.c (decode_line_1): Make breakpoints on destructors work
681 for gcc-2.x again.
682
40b56283
SG
683Wed Apr 7 18:43:09 1993 Stu Grossman (grossman@cygnus.com)
684
b83bf6b3
SG
685 * ser-go32.c: Make it use serial port name.
686 * go32-xdep.c: Put in def for strlwr, needed by dir.o in go32 libc.
687
40b56283
SG
688 * infcmd.c (read_pc): Make sure that we read PC_REGNUM when not
689 in a system call!
690
41faa775
SG
691Wed Apr 7 15:52:11 1993 Stu Grossman (grossman@cygnus.com)
692
693 * configure.in: Only configure sparclite subdir when target_cpu
694 is sparclite.
695
f635bd47
JK
696Wed Apr 7 10:11:22 1993 Jim Kingdon (kingdon@cygnus.com)
697
ef5b809c
JK
698 * xcoffread.c (struct coff_symbol): Change c_sclass to unsigned char.
699 Remove FIXME comment regarding this.
700
47045b36
JK
701 * symfile.h: Change NULL->'\0' in comment (that wasn't a typo).
702
f635bd47
JK
703 * xcoffread.c (read_xcoff_symtab): Use E_SYMNMLEN.
704
73d0fc78
RP
705Tue Apr 6 22:30:58 1993 K. Richard Pixley (rich@cygnus.com)
706
707 Add section table to objfile struct. Use it for find_pc_section.
708 * objfiles.c (add_to_objfile_sections,
709 build_objfile_section_table, find_pc_section): new functions.
710 (allocate_objfile): build section table.
711 * objfiles.h (struct obj_section): new structure.
712 (struct objfile): add section table.
713 (find_pc_section): new prototype.
714 * solib.[ch] (find_pc_section_from_so_list): removed.
715 * sparc-tdep.c: include objfiles.h for find_pc_section. include
716 symfile.h for objfiles.h.
717 (in_solib_trampoline): adjusted for new find_pc_section
718 prototype. Removed BAD_RICH_HACK ifdefs.
719 * symfile.c (syms_from_objfile): offset objfile sections.
720 (find_pc_section): removed. Also removed BAD_RICH_HACK ifdefs.
721 * symfile.h (find_pc_section): prototype removed. Also fixed
722 comment typo NUL -> NULL.
723 * target.[ch] (find_pc_section_from_targets): removed.
724 * config/sparc/tm-sun4sol2.h (BAD_RICHH_HACK): removed.
725
07861607
SG
726Tue Apr 6 21:41:13 1993 Stu Grossman (grossman@cygnus.com)
727
728 * ser-go32.c: Format. (go32_open): Use proper return value.
729
730 * configure.in: Undo conditional configdirs hack for sparclite.
731
118ec55a
JW
732Tue Apr 6 17:07:37 1993 Jim Wilson (wilson@sphagnum.cygnus.com)
733
734 * symtab.c (list_symbols): When call break_command, pass both
735 filename and function name not just function name.
736
737Tue Apr 6 15:00:09 1993 Fred Fish (fnf@cygnus.com)
738
739 (Changes and new files to make "none" a full fledged configuration)
740 * config/none/{nm-none.h, tm-none.h, xm-none.h}: New files.
741 Currently only tm-none.h has any meaningful contents.
742 * config/none/none.mh (NAT_FILE): Use nm-none.h
743 * config/none/none.mh (XM_FILE): Use xm-none.h
744 * config/none/none.mt (TM_FILE): Use tm-none.h
745 * Makefile.in (depend): Remove comment about parse errors in
746 valops.c, it now parses correctly and generates a correct depend
747 line. Remove line that touches xm.h, tm.h, and nm.h; they are
748 now linked to config/none/{xm-none.h, tm-none.h, nm-none.h}.
749
786757a9
JK
750Tue Apr 6 09:54:29 1993 Jim Kingdon (kingdon@cygnus.com)
751
9925b928
JK
752 * values.c (USE_STRUCT_RETURN): Only use gcc wierdness for gcc1.
753
786757a9
JK
754 * xcoffread.c (read_xcoff_symtab): Deal correctly with symbols of
755 exactly 8 characters.
756
0c101d49
SG
757Tue Apr 6 10:31:26 1993 Stu Grossman (grossman@cygnus.com)
758
759 * configure.in: Sparclite uses sparc config dir. Also has it's
760 own tm- & .mt files now. Also add sparclite to configdirs.
761 * go32-xdep.c: Dummy routines for sigsetmask & strlwr.
762 * config/i386/go32.mh: Nullify def of TERMCAP.
763 * config/i386/xm-go32.h: Get rid of redef of EIO.
764 * config/sparc/{sparclite.mh tm-sparclite.h}: New sparclite
765 specific configs. Very similar to sun4os4, but without solib.
766 * sparclite/{Makefile.in configure.in}: First cut at making this
767 dir configgable.
768
5d2b030a
SG
769Tue Apr 6 03:10:44 1993 Stu Grossman (grossman@cygnus.com)
770
771 * ser-go32.c: First cut at adapting to new serial interface.
772
4e772f44
SG
773Mon Apr 5 22:29:43 1993 Stu Grossman (grossman@cygnus.com)
774
775 * Makefile.in (SFILES OBS): Add serial.[co] & ser-hardwire.[co].
776 These implement a new serial line interface for talking to remote
777 targets.
778 * configure.in: Link ser-hardwire.c to ser-unix.c for all hosts,
779 EXCEPT go32, which gets ser-go32.c.
780 * remote.c: Use new serial interface. More remote-xxx's to be
781 converted later.
782 * ser-bsd.c, ser-termios.c: Removed.
783 * serial.c: New. Implements common operations for all serial
784 types.
785 * ser-unix.c: New. Unix specific serial operations for various
786 flavors of Unix (Posix, SysV, BSD).
787 * serial.h: Generic serial interface defs.
788 * config/i386/go32.mh, config/i386/i386bsd.h,
789 config/m68k/apollo68b.mh, config/sparc/sun4os4.mh: Remove
790 ser-bsd.o from XDEPFILES. All the magic is now handled in
791 configure.in.
792
9acdb2dc
SG
793Mon Apr 5 20:48:54 1993 Stu Grossman (grossman@cygnus.com)
794
795 * config/h8500/tm-h8500.h: Clean up brain damage found by GCC.
796
0848ad1c
JK
797Fri Apr 2 08:23:14 1993 Jim Kingdon (kingdon@cygnus.com)
798
1d7e34e1
JK
799 * xcoffread.c (xcoff_symfile_offsets): Use 0 not addr for offsets.
800
b0e932ad 801 * rs6000-tdep.c (frameless_function_invocation): Don't even think
1d7e34e1 802 about framelessness except on the innermost frame.
b0e932ad 803
0848ad1c
JK
804 * xcoffexec.c: Call fatal() not abort().
805
806 * stabsread.c (patch_block_stabs): If stab & no symbol, make
807 a LOC_OPTIMIZED_OUT symbol.
808 symtab.h (enum address_class): Add LOC_OPTIMIZED_OUT.
809 findvar.c (read_var_value), printcmd.c (address_info),
810 symmisc.c (print_{,partial_}symbol), c-exp.y (variable),
811 m2-exp.y (yylex): Deal with it.
0848ad1c 812 ch-exp.y (yylex): Deal with it.
0848ad1c
JK
813
814Thu Apr 1 18:43:02 1993 Stu Grossman (grossman@cygnus.com)
815
816 * findvar.c (value_from_register): H8500 specific, check to see
817 if we are looking at short pointer. If so, skip crock.
818 * h8500-tdep.c (h8500_frame_chain): Mask down value from
819 read_memory_integer() to avoid getting messed up by sign extension.
820
0e184833
RP
821Thu Apr 1 16:44:41 1993 K. Richard Pixley (rich@rtl.cygnus.com)
822
823 * sparc-tdep.c (in_solib_trampoline), symfile.c (find_pc_section):
824 ifdef protect using BAD_RICH_HACK. This should be removed soon.
825 * config/sparc/tm-sun4sol2.h (BAD_RICH_HACK): define.
826
a6cead71
JK
827Thu Apr 1 09:01:38 1993 Jim Kingdon (kingdon@cygnus.com)
828
720b3aed
JK
829 * i960-pinsn.c, a29k-pinsn.c: Much abridged, just use libopcodes.a.
830
831 * core.c (dis_asm_print_address): New function.
832
a6cead71
JK
833 * core.c (dis_asm_read_memory): Reinstate 4th arg. The prototype
834 has been fixed.
835
494503c7
PS
836Thu Apr 1 09:34:43 1993 Peter Schauer (pes@regent.e-technik.tu-muenchen.de)
837
838 * breakpoint.c (bpstat_print, bpstat_stop_status): Change to walk the
839 entire breakpoint chain and print only the first entry that needs to
840 be printed and needs to be stopped for. Fixes problems with printing
841 of multiple breakpoints with different conditions.
842 * breakpoint.c (print_it_done): Renamed from print_it_noop as it
843 effectively stops printing of the breakpoint chain.
844 * breakpoint.c (print_it_noop): New routine to print nothing
845 for this breakpoint entry and dont stop printing.
846 * breakpoint.c (breakpoint_re_set_one): mention the reevaluated
847 watchpoint only if it is enabled.
848 * mipsread.c (parse_procedure): Correct incorrect setjmp procedure
849 descriptor from the library to make backtraces through setjmp work.
850 * mipsread.c (fixup_sigtramp): Correct pcreg and fregoffset for
851 sigtramp.
852 * mips-tdep.c (read_next_frame_reg): Provide correct values for
853 all registers saved within sigtramp, cleanup.
854
f7ed13c7
JK
855Wed Mar 31 12:52:12 1993 Jim Kingdon (kingdon@lioth.cygnus.com)
856
857 * sparc-pinsn.c: Much abridged, just calls version in libopcodes.a.
858
bf097a0b
RP
859Wed Mar 31 21:23:41 1993 K. Richard Pixley (rich@rtl.cygnus.com)
860
861 * core.c (dis_asm_read_memory): drop fourth arg which conflicts
862 with prototype in ../include/dis-asm.h.
863
5d0734a7
JK
864Wed Mar 31 12:52:12 1993 Jim Kingdon (kingdon@lioth.cygnus.com)
865
866 * core.c (dis_asm_{read_memory,memory_error}): New functions.
867 m68k-pinsn.c, h8500-tdep.c, i386-pinsn.c, mips-pinsn.c, z8k-tdep.c:
868 Use read_memory_func interface to disassembler.
869
2093fe68
RP
870Tue Mar 30 15:46:14 1993 K. Richard Pixley (rich@rtl.cygnus.com)
871
872 Teach sparc solaris to next over shared library functions.
873 * solib.[hc] (find_pc_section_from_so_list): new function and
874 prototype.
875 * sparc-tdep.c (in_solib_trampoline): new function.
876 * symfile.[hc] (find_pc_section): new function and prototypes.
877 * target.[hc] (find_pc_section_from_targets): new function and
878 prototypes.
879 * config/sparc/tm-sun4sol2.h (IN_SOLIB_TRAMPOLINE): redefine to
880 in_solib_trampoline.
881
b27be792
JK
882Tue Mar 30 08:06:24 1993 Jim Kingdon (kingdon@cygnus.com)
883
deae7611
JK
884 * infrun.c (wait_for_inferior): Revise comment.
885
359a097f
JK
886 * command.c (do_setshow_command): Use %u with var_{u,z}integer.
887
888 * command.{c,h}: New var_type var_integer.
889 main.c: Use it for history_size.
890
891 * rs6000-tdep.c, xcoffexec.c, config/rs6000/xm-rs6000.h, breakpoint.c:
892 Lint and byte-order fixups.
893
3f031adf
JK
894 * breakpoint.c (print_it_normal): Return 0 after hitting watchpoint.
895
8af68e4e
JK
896 * breakpoint.h (bpstat): New field print_it.
897 breakpoint.c (bpstat_print): Use it.
898 (print_it_normal): New function (from old bpstat_print code).
899 (bpstat_{alloc,stop_status}): Set print_it field.
900
901 * breakpoint.c (bpstat_stop_status): Use catch_errors when
902 evaluating watchpoint condition, via new function watchpoint_check.
903 Also stop if watchpoint disabled due to leaving its block.
904
b27be792
JK
905 * findvar.c [REG_STRUCT_HAS_ADDR]: Add comment.
906
aa66fddd
PS
907Tue Mar 30 00:14:38 1993 Peter Schauer (pes@regent.e-technik.tu-muenchen.de)
908
909 * mips-pinsn.c: Add missing include of dis-asm.h.
910
d7d35f00
FF
911Mon Mar 29 15:03:25 1993 Fred Fish (fnf@cygnus.com)
912
239121e2
FF
913 * Makefile.in (clean, distclean, realclean): Recursively apply
914 to subdirs first, rather than last. This avoids, for example,
915 Makefile being removed in a parent directory before the recursive
916 make is run.
917
141ccc03
FF
918 * alldeps.mak, depend: Update for below changes.
919
2225eb85
FF
920 * config/m68k/tm-m68k.h: Renamed from config/m68k/tm-68k.h.
921 * m68k/{tm-3b1.h, tm-altos.h, tm-amix.h, tm-es1800.h,
922 tm-hp300bsd.h, tm-hp300hpux.h, tm-isi.h, tm-news.h, tm-os68k.h,
923 tm-st2000.h, tm-sun2.h, tm-sun3.h, tm-vx68.h}: Include tm-m68k.h
924 instead of tm-68k.h.
925 * Makefile.in (HFILES): tm-68k.h renamed to tm-m68k.h.
926 * README, a29k-pinsn.c, m68k-pinsn.c, m68k-stub.c, remote-vx.c,
927 m68k/{altos.mh, altos.mt, apollo68b.mh, nm-apollo68b.h,
928 nm-hp300bsd.h, config/m68k/xm-apollo68b.h}: Map '68k' to 'm68k'.
929 * a29k/tm-a29k.h, doc/gdbint.texinfo: Account for renaming of
930 tm-68k.h to tm-m68k.h.
931 * m68k/m68k-fp.mt (TM_FILE): tm-68k-fp.h renamed to tm-m68k-fp.h.
932 * m68k/m68k-nofp.mt (TM_FILE): tm-68k-nofp.h renamed to
933 tm-m68k-nofp.h.
934
d7d35f00
FF
935 * config/a29k/tm-a29k.h: Renamed from config/a29k/tm-29k.h.
936 * a29k-pinsn.c: Renamed from am29k-pinsn.c.
937 * a29k-tdep.c: Renamed from am29k-tdep.c.
938 * remote-eb.c, config/a29k/tm-ultra3.h: Include renamed tm-a29k.h.
939 * remote-monitor.c, remote-st2000.c, config/a29k/{nm-ultra3.h,
940 tm-a29k.h, xm-ultra3.h}, config/romp/rtbsd.mh, doc/gdbinv-s.texi,
941 testsuite/gdb.t15/funcargs.exp, testsuite/gdb.t17/callfuncs.exp:
942 Map '29k' to 'a29k'.
943 * config/a29k/{a29k-kern.mt, a29k-udi.mt, a29k.mt, ultra3.mt}
944 (TDEPFILES): Use renamed a29k-pinsn.o and a29k-tdep.o.
945 * config/a29k/{a29k-udi.mt, a29k.mt} (TM_FILE): Use renamed
946 tm-a29k.h.
947 * config/a29k/a29k-udi.mt (MT_CFLAGS): Remove TARGET_AM29K
948 define that does not appear anywhere else in the gdb source tree.
949 * doc/gdbinit.texinfo: Document renaming of tm-29k.h to tm-a29k.h.
950
ad376893
JK
951Mon Mar 29 13:55:29 1993 Jim Kingdon (kingdon@cygnus.com)
952
2225eb85
FF
953 * breakpoint.c: Add comments regarding breakpoint_re_set.
954
e5c00760
JK
955 * xcoffread.c (sort_syms, compare_symbols): Remove.
956 (xcoff_symfile_read): Use sort_all_symtab_syms from symfile.c
957 not our own sort_syms (it is identical).
958
ad376893
JK
959 * xcoffread.c: Nuke NAMES_HAVE_DOT define (not used).
960
0b0d6c3f
PS
961Sun Mar 28 11:24:37 1993 Peter Schauer (pes@regent.e-technik.tu-muenchen.de)
962
963 * breakpoint.c (breakpoint_re_set_one): Fix storage leak.
964 * breakpoint.c (enable_breakpoint): Don't enable watchpoint if it
965 went out of scope.
966 * exec.c (exec_close): Fix storage leak.
967 * exec.c (exec_file_command): Make sure that bfd doesn't realign the
968 output sections when patching an executable.
969 * mips-nat.c (store_inferior_registers): Use REGISTER_PTRACE_ADDR
970 when writing all registers.
971 * mips-tdep.c (mips_push_dummy_frame): Save floating point registers
972 at the right offset in the dummy frame.
973 * mipsread.c (psymtab_to_symtab_1): Do not complain for stProc,
974 stStaticProc and stEnd symbols as they are generated by gcc-2.x.
975 * mipsread.c (mipscoff_new_init): Initialize stabsread and buildsym.
976
0f0834c5
JG
977Fri Mar 26 15:25:05 1993 John Gilmore (gnu@cygnus.com)
978
979 * Makefile.in (TARFILES): Avoid trailing backslash.
980
2d313932
JK
981Fri Mar 26 11:29:30 1993 Jim Kingdon (kingdon@cygnus.com)
982
d7d35f00
FF
983 * breakpoint.{c,h}: Add exp_string to struct breakpoint and use
984 it in breakpoint_re_set.
2d313932
JK
985 * breakpoint.c (watch_command, enable_breakpoint): Fetch lazy values.
986
987 * rs6000-tdep.c (single_step): Misc cleanups (CORE_ADDR not int,
988 don't use sizeof(int) for target stuff, etc).
989
53f6119f 990Thu Mar 25 15:03:53 1993 Fred Fish (fnf@cygnus.com)
3c02636b 991
53f6119f
FF
992 * alldeps.mak, configure.in, i860-break.h, i860-opcode.h,
993 i860-pinsn.c, i860-tdep.c, config/i860/*: Remove incomplete i860
994 support that can't be integrated anyway due to lack of clear
995 authorship.
3c02636b 996
ccf1e898
SG
997Thu Mar 25 12:26:50 1993 Stu Grossman (grossman@cygnus.com)
998
999 * findvar.c (read_register, write_register): Make these capable
1000 of reading/writing registers that are shorter than REGISTER_TYPE.
1001 * (value_from_register): Install H8500 specific code to return
1002 proper value when register is being used as a pointer.
1003 * h8500-tdep.c: Remove extra defines of NUM_REGS.
1004 (h8500_skip_prologue): Use correct lengths for LINK instructions.
1005 (FRAME_CHAIN): Change name to h8500_frame_chain. Rewrite code to
1006 chain frames properly by combining frame pointer with T reg.
1007 (init_extra_frame_info): Delete. It's now a macro.
1008 (frame_args_address): Don't add PTR_SIZE. Stack args are already
1009 offset by the correct amount off of the frame pointer.
1010 (register_byte): Delete. It's now a macro.
1011 (register_raw_size, register_virtual_size): Delete. Replaced by
1012 common routine h8500_register_size, cuz there's no difference
1013 between the raw & virtual sizes on this machine.
1014 (register_convert_to_raw, register_convert_to_virtual): Delete,
1015 cuz there's no difference between the raw & virtual forms.
1016 Replaced by memcpy in tm file.
1017 (register_virtual_type): Rename to h8500_register_virtual_type.
1018 Get rid of pointer pseudo-regs, use _REGNUM with all reg names.
1019 (_initialize_h8500_tdep): Get rid of crock to ensure that GDB &
1020 emulator have same reg offsets. This is all handled in the
1021 simulator code now.
1022 (h8500_trapped_internalvar): New routine to detect references to
1023 convenience vars acting as pointer pseudo-regs.
1024 (h8500_value_trapped_internalvar): Conjure up value of pointer
1025 pseudo-regs.
1026 (h8500_set_trapped_internalvar): Convert set value in real
1027 register references.
1028 infcmd.c (read_pc, write_pc): Add h8500 specific code to handle
1029 code segment register.
1030 infrun.c (proceed): Simplify. Call write_pc instead of doing it
1031 by hand.
1032 (wait_for_inferior): Add h8500 specific code to add stack segment
1033 when reading SP register.
1034 remote-sim.c (fetch_register): Spacing.
1035 tm-h8500.h: #define GDB_TARGET_IS_H8500 to make it easier to
1036 detect cruft. Redo all register manipulation stuff. Get rid of
1037 pointer pseudo-regs. (INIT_EXTRA_FRAME_INFO): Adds stack segment
1038 to frame pointer. (IS_TRAPPED_INTERNALVAL,
1039 VALUE_OF_TRAPPED_INTERNALVAR, SET_TRAPPED_INTERNALVAR): Use these
1040 to create internal vars for pointer pseudo-regs.
1041
2531303c
FF
1042Thu Mar 25 10:10:28 1993 Fred Fish (fnf@cygnus.com)
1043
1044 * Makefile.in: Numerous small changes to macro definitions
1045 and rules for building gdb distribution tree. Many macros
1046 eliminated or merged, and rules simplified.
1047 * alldeps.mak: Update.
1048 * depend: Update.
1049
b396a969
DZ
1050Wed Mar 24 13:52:29 1993 david d `zoo' zuhn (zoo at poseidon.cygnus.com)
1051
1052 * Makefile.in: recurse through SUBDIRS for dvi target too
1053
53f6119f
FF
1054Wed Mar 24 08:48:30 1993 Jim Kingdon (kingdon@cygnus.com)
1055
1056 * Clean up xcoff relocation.
1057 objfiles.h (struct objfiles): Add section_offsets, num_sections.
1058 symfile.c (syms_from_objfile), xcoffread.c (xcoff_symfile_offsets):
1059 Set them.
1060 symtab.h (struct general_symbol_info): Add section field.
1061 minsyms.c (prim_record_minimal_symbol{,_and_info}): Set it.
1062 xcoffread.c: Set section for symbols and msymbols.
1063 (struct symtab): Add block_line_section field.
1064 buildsym.c (end_symtab): Set it.
1065 (end_symtab and callers): Add section parameter.
1066 objfiles.c (objfile_relocate): New funciton.
1067 xcoffexec.c (vmap_symtab): Use it.
1068 xcoffsolib.h (struct vmap): Remove unused fields.
1069 config/rs6000/tm-rs6000.h, stack.c, xcoffexec.c: Remove
1070 CORE_NEEDS_RELOCATION, symtab_relocated.
1071 config/rs6000/tm-rs6000.h: Remove use of loadinfotext.
1072 rs6000-tdep.c: Make loadinfotext static.
1073 breakpoint.c (fixup_breakpoints): Doc fix.
1074 symtab.h (struct symtab), config/rs6000/tm-rs6000.h, buildsym.c
1075 (end_symtab): primary field replaces nonreloc.
1076
ece2e98a
JG
1077Tue Mar 23 00:10:53 1993 John Gilmore (gnu@cygnus.com)
1078
1079 * symtab.h (struct linetable_entry): Remove confusing comment.
1080
80c8fd72
DZ
1081Tue Mar 23 00:01:23 1993 david d `zoo' zuhn (zoo at cirdan.cygnus.com)
1082
1083 * Makefile.in: add installcheck target
1084
1a0edbc7
FF
1085Mon Mar 22 16:17:58 1993 Fred Fish (fnf@cygnus.com)
1086
1087 * config/{a29k, arm, convex, gould, h8300, i386, i860, i960, m68k,
1088 m88k, mips, none, ns32k, pa, pyr, romp, rs6000, sparc, tahoe, vax,
1089 z8k}: New directories to hold cpu specific configuration files.
1090 Naming follows gcc convention.
1091 * config/{*.mt, *.mh}: All target and host makefile fragment
1092 config files moved to an appropriate config/<cpu> subdirectory.
1093 * nm-*, xm-*, tm-*: All native, host, and target files, which
1094 get linked to nm.h, xm.h, and tm.h respectively by configure,
1095 moved to appropriate config/<cpu> subdirectory.
1096 * nm-sysv4.h, xm-sysv4.h, tm-sysv4.h, tm-sunos.h, nm-trash.h:
1097 Native, host, and target files that are common across more than
1098 one cpu architecture and included by one of the configured
1099 native, host, or target files, get moved to config directory.
1100 * Makefile.in (INCLUDE_CFLAGS): Add -I${srcdir}/config to
1101 pick up native, host, or target include files moved to one of
1102 the config subdirectories, and that are included by other files.
1103 * Makefile.in (alldeps.mak): Modify to account for new config
1104 directory structure.
1105 * alldeps.mak, depend: Update for new config directory structure.
1106 * config/*/[ntx]m-*.h: Modify all files that include other
1107 [ntx]m-*.h files to use path relative to gdb/config. I.E.
1108 "a29k/tm-ultra3.h" includes "a29k/tm-29k.h" rather than just
1109 "tm-29k.h".
1110 * remote-eb.c (tm-29k.h): Include a29k/tm-29k.h.
1111 * mipsread.c (tm-mips.h): Include mips/tm-mips.h.
1112 * i860-pinsn.c (tm-i860.h): Include i860/tm-i860.h.
1113 * configure.in: Default gdb_host_cpu to host_cpu, and remap
1114 the ones where the default is not unique or different than the
1115 config subdirectory name. Similarly, handle gdb_target_cpu.
1116 Modify configure.in as appropriate to make use of gdb_host_cpu
1117 and gdb_target_cpu to find makefile fragments and make links.
1118
5f5341a7
ILT
1119Mon Mar 22 12:36:24 1993 Ian Lance Taylor (ian@cygnus.com)
1120
1121 * mipsread.c (compare_blocks): Sort blocks with the same start
1122 address by decreasing ending address.
1123
1a3579df
PS
1124Mon Mar 22 20:36:04 1993 Peter Schauer (pes@regent.e-technik.tu-muenchen.de)
1125
1126 * mipsread.c (parse_procedure): Save cur_fdr accross call to
1127 lookup_symbol as it might get clobbered by the call.
1128
1129 * mipsread.c (parse_partial_symbols): Use ADD_PSYMBOL_ADDR_TO_LIST.
1130 The previous code did not initialize the language field for the psymtab
1131 entry.
1132
f24c159f
JG
1133Sat Mar 20 00:33:39 1993 John Gilmore (gnu@cygnus.com)
1134
1135 * c-exp.y (parse_number): Avoid shift warning.
1136 * serial.h (struct ttystate): Declare empty one on DOS.
1137
bc0d4cb9
SG
1138Fri Mar 19 12:59:50 1993 Stu Grossman (grossman@cygnus.com)
1139
733a9015
SG
1140 * xm-sun4os4.h: Return type of free() should be void, not int.
1141
bc0d4cb9
SG
1142 * vx-share/vxWorks.h: Remove #def of NULL.
1143
deb3f296
JK
1144Fri Mar 19 11:28:18 1993 Jim Kingdon (kingdon@cygnus.com)
1145
1146 * tm-rs6000.h: Nuke no-op STAB_REG_TO_REGNUM.
1147
52f8e6a0
SC
1148Fri Mar 19 07:40:09 1993 Steve Chamberlain (sac@cygnus.com)
1149
1150 * z8k-tdep.c (print_insn): Include the new dis-asm header file.
1151
00cea52f
PB
1152Thu Mar 18 14:26:57 1993 Per Bothner (bothner@rtl.cygnus.com)
1153
1154 * ieee-float.c: Moved to ../libiberty.
1155 * ieee-float.h: Moved to ../include.
1156 * Makefile.in: Update accordingly.
1157 * i386-pinsn.c (print_insn), m68k-pinsn.c (print_insn):
1158 Convert to stubs that call disassemblers in ../opcodes/*-dis.c.
1159 * m68k-tdep.c: Removed definition of ext_format ext_format_68881;
1160 it is now in ../opcodes/m68881-ext.c.
1161 * mips-tdep.c (mips_skip_prologue): Try to skip more of the
1162 prologue (some callers _do_ care).
1163 * mips-pinsn.c (print_insn), z8k-tdep.c (print_insn): Convert to
1164 new interface of ../opcodes/*-dis.c.
1165 * ch-exp.y: Add #include <ctype.h>.
1166
b60b2e3e
JK
1167Thu Mar 18 11:57:49 1993 Jim Kingdon (kingdon@cygnus.com)
1168
c161de74
JK
1169 * xcoffexec.c (exec_close): Don't close exec_bfd twice.
1170
b60b2e3e
JK
1171 * xcoffread.c (enter_line_range): endaddr is exclusive, not inclusive.
1172
ecfd2b60
JK
1173Wed Mar 17 09:46:31 1993 Jim Kingdon (kingdon@cygnus.com)
1174
1175 * xcoffread.c (arrange_linetable): Use x{m,re}alloc not {m,re}alloc.
1176
2d8d693a
SC
1177Wed Mar 17 11:28:11 1993 Steve Chamberlain (sac@thepub.cygnus.com)
1178
1179 * z8k-tdep.c (extract_return_value, write_return_value,
1180 store_struct_return): New functions from macros in tm-z8k.h.
1181
898e13c8
FF
1182Wed Mar 17 11:23:06 1993 Fred Fish (fnf@cygnus.com)
1183
1184 * valops.c (value_arg_coerce): Apply temporary patch to
1185 fix problem with coercion of array and function types when
1186 passed as arguments to C functions, pending a more complete
1187 review of when and how coercion should be done, depending
1188 upon context and language.
1189
9d61147e
JK
1190Wed Mar 17 09:46:31 1993 Jim Kingdon (kingdon@cygnus.com)
1191
3e57da38
JK
1192 * xcoffread.c (MIN_TBTABSIZ): Change to 12.
1193
9d61147e
JK
1194 * xcoffread.c (xcoff_symfile_read): Only read stringtab and
1195 debugsec if there are a non-zero number of symbols.
1196
3021c40d
JG
1197Tue Mar 16 18:08:45 1993 John Gilmore (gnu@cygnus.com)
1198
1199 * command.c (show_user): Avoid fprintf_filtered botch (AGAIN!).
1200
8112a711
JK
1201Tue Mar 16 15:18:17 1993 Jim Kingdon (kingdon@cygnus.com)
1202
1203 * xcoffexec.c (add_vmap): Wrap symbol read in catch_errors.
1204
1205 * xcoffread.c (read_symbol_lineno): Look to end of symbols for .bf,
1206 not just 50 symbols.
1207 (symtbl_num_syms): New variable.
1208 (read_xcoff_symtab): Set it.
1209 (read_symbol_nvalue): Check for bad symno.
1210 (read_symbol_{lineno,nvalue}, callers): Don't pass symtable; it's
1211 always symtbl.
1212
e829d983
SG
1213Tue Mar 16 10:09:05 1993 Stu Grossman (grossman@cygnus.com)
1214
1215 * config/rs6000.mh: Get rid of -Dfd_set=int crock.
1216 This is defined in defs.h if necessary.
1217 * vx-share/vxWorks.h: Remove #defs of min and max.
1218 * vx-share/xdr_ld.c, vx-share/xdr_ptrace.c,
1219 vx-share/xdr_rdb.c: include defs.h.
1220
c8ade719
JK
1221Fri Mar 12 09:33:23 1993 Jim Kingdon (kingdon@cygnus.com)
1222
1223 * xcoffread.c (retrieve_tracebackinfo): Move assignment out
1224 of while condition.
1225
1226 * xcoffread.c (enter_line_range): complain() on bad endoffset.
1227 xcoffread.c: Doc fixes.
1228
1229Tue Mar 9 09:56:12 1993 Jim Kingdon (kingdon@cygnus.com)
1230
1231 * tm-rs6000.h (CORE_NEEDS_RELOCATION): Just call xcoff_relocate_core.
1232 xcoffexec.c (xcoff_relocate_core): New function.
1233 (text_adjustment): Removed.
1234 (add_vmap): Return the vmap.
1235 rs6000-tdep.c (add_text_to_loadinfo): No longer static.
1236
1237Fri Mar 5 05:22:46 1993 Jim Kingdon (kingdon@cygnus.com)
1238
1239 * xcoffsolib.h: Add objfile member to struct vmap.
1240 xcoff{exec,solib}.c: Use it, not lookup_objfile_bfd.
1241 xcoffexec.c (add_vmap): Allocate objfiles here.
1242
48a522d9
JG
1243Sun Mar 14 02:54:15 1993 John Gilmore (gnu@cygnus.com)
1244
01deac12
JG
1245 Support 68000 series without floating point.
1246
1247 * configure.in (m68000-*-{aout,elf,coff}): New configs.
48a522d9
JG
1248 * tm-68k-nofp.h: New file, lacks 68881 support.
1249 * config/m68k-nofp.mt: New file.
1250
84a05e52
JG
1251Sun Mar 14 02:30:08 1993 John Gilmore (gnu@cygnus.com)
1252
1253 Remove a few remaining underscore/no-underscore remnants from
1254 config files.
1255
1256 * config/{m68k-un.mt, sparc-un.mt}: Remove.
1257 * config/m68k-noun.mt: Rename to m68k-fp.mt.
1258 * config/sparc-noun.mt: Rename to sparc-em.mt.
1259 * tm-68k-noun.h, tm-spc-noun.h: Remove.
1260 * tm-68k-un.h: Rename to tm-68k-fp.h.
1261 * tm-spc-un.h: Rename to tm-spc-em.h.
1262 * tm-sun4sol2.h: Cleanup.
1263 * configure.in (m68k-*, sparc-* targets): Corresponding changes.
1264
961ee88e
JG
1265Sat Mar 13 14:58:22 1993 John Gilmore (gnu@cygnus.com)
1266
1267 * symmisc.c (std_in, std_out, std_err): Move initializations
1268 to runtime code, in case they aren't constant.
1269
a8172eea
RP
1270Fri Mar 12 16:23:54 1993 K. Richard Pixley (rich@cygnus.com)
1271
aa8f3210
RP
1272 * symtab.c (find_pc_symtab): some object file formats, notably
1273 mips, have holes in the address ranges of symtabs. Change
1274 this algorythm from first hit to tightest fit.
1275
a8172eea
RP
1276 * mips-tdep.c (heuristic_proc_start): if we walk the pc into the
1277 fence post without finding the enclosing function, then print a
1278 warning.
1279
bd5d07d9
FF
1280Thu Mar 11 09:33:01 1993 Fred Fish (fnf@cygnus.com)
1281
5e81259d
FF
1282 * utils.c (fputs_demangled, fprint_symbol): Remove.
1283 * utils.c (fprintf_symbol_filtered): New function which combines
1284 the functionality of fputs_demangled and fprint_symbol. Uses a
1285 caller provided language parameter to select the appropriate
1286 demangler, and caller provided args to pass to the demangler.
bd5d07d9
FF
1287 * defs.h (enum language): Move further up in file so enum can
1288 be used in prototypes.
5e81259d
FF
1289 * defs.h (fputs_demangled, fprint_symbol): Remove prototypes.
1290 * defs.h (fprintf_symbol_filtered): Add prototype.
1291 * c-typeprint.c (cp_type_print_method_args): Replace calls to
1292 fputs_demangled with call to fprintf_symbol_filtered.
1293 * cp-valprint.c (demangle.h): Include
1294 * cp-valprint.c (cp_print_value_fields): Replace calls to
1295 fprint_symbol with calls to fprintf_symbol_filtered.
1296 * printcmd.c (print_frame_args): Replace call to fprint_symbol
1297 with call to fprintf_symbol_filtered.
bd5d07d9
FF
1298 * stack.c (print_frame_info): Remove obsolete code so we don't
1299 have to update fputs_demangled usage in it.
1300 * stack.c (print_frame_info, frame_info): Add language variable
5e81259d
FF
1301 to pass to fprintf_symbol_demangled and initialize it from the
1302 symbol's language. Replace calls to fputs_demangled with calls
1303 to fprintf_symbol_filtered.
1304 * symtab.c (find_methods): Replace call to fputs_demangled with
1305 call to fprintf_symbol_filtered.
5e81259d
FF
1306 * ch-valprint.c (demangle.h): Include.
1307 * ch-valprint.c (chill_print_value_fields): Replace call to
1308 fprint_symbol with call to new fprintf_symbol_filtered.
bd5d07d9 1309
f77ad505
FF
1310Wed Mar 10 17:37:11 1993 Fred Fish (fnf@cygnus.com)
1311
0b96ed06
FF
1312 * Makefile.in (VERSION): Bump version to 4.8.2.
1313
f77ad505
FF
1314 * main.c (source_command): Require an explicit pathname of file
1315 to source, since previous behavior of defaulting to gdb init file
1316 was troublesome and undocumented.
1317 * printcmd.c (disassemble_command): Add missing '{}' pair to
1318 else with two statements. Bug reported by Stephane Tsacas
1319 <slt@isoft.fr>.
1320 * symtab.c (find_pc_line): Don't complain about zero length or
1321 negative length line numbers for the moment, since we may not own
1322 the terminal when called, such as when single stepping. (FIXME)
1323 * language.h (CAST_IS_CONVERSION): True if current language is
1324 C++ as well as C. Fix from Peter Schauer.
1325 * environ.c (get_in_environ, set_in_environ, unset_in_environ):
1326 Use STREQN macro rather than bare '!strncmp()'.
1327 * environ.c (unset_in_environ): Avoid use of memcpy on
1328 overlapping memory regions, as suggested by Paul Eggert
1329 <eggert@twinsun.com>.
1330 * c-exp.y (%union struct): Remove unused ulval as suggested
1331 by Paul Eggert <eggert@twinsun.com>.
1332
1333Mon Mar 8 19:03:06 1993 Fred Fish (fnf@cygnus.com)
1334
1335 * main.c (gdbinit): Make static.
1336 * main.c (inhibit_gdbinit): Move to file scope.
1337 * main.c (main): Remove local inhibit_gdbinit.
1338 * main.c (source_command): Don't source '.gdbinit' file by
1339 default if gdb has been told to ignore it.
1340
aecc5459
ILT
1341Sun Mar 7 21:58:53 1993 Ian Lance Taylor (ian@cygnus.com)
1342
1343 * Makefile.in (MAKEOVERRIDES): Define to be empty for GNU Make
1344 3.63.
1345
19327ea5
JG
1346Fri Mar 5 17:39:45 1993 John Gilmore (gnu@cacophony.cygnus.com)
1347
aecc5459
ILT
1348 * printcmd.c (print_address_symbolic): Only print if offset
1349 is shorter than max_symbolic_offset.
1350 (initialize_printcmd): `set print max-symbolic-offset'.
1351
946f014b
JG
1352 * am29k-tdep.c (TAGWORD_ZERO_MASK): New #define.
1353 (examine_tag): Use it.
1354 (read_register_stack): Only look in the local registers for a
1355 memory address if it's between rfb and rsp; go to memory otherwise.
1356 (initialize_29k): Fix call_scratch_address doc. Remove reginv_com.
19327ea5
JG
1357 (reginv_com): Remove ancient kludge command.
1358
81029114
RP
1359Fri Mar 5 17:16:26 1993 K. Richard Pixley (rich@rtl.cygnus.com)
1360
24365af9
RP
1361 * tm-irix3.h (ZERO_REGNUM): copy this macro from tm-mips.h so that
1362 irix4 will again compile.
1363
5870d848
RP
1364 * tm-mips.h (GDB_TARGET_IS_MIPS): no longer used, now removed.
1365
81029114
RP
1366 * configure.in: accept mips-sgi-irix4* for irix4.
1367
1368Fri Mar 5 07:49:48 1993 Steve Chamberlain (sac@lisa.cygnus.com)
1369
1370 * z8k-tdep.c (print_register_hook): Lint.
1371
4966c17c
JG
1372Thu Mar 4 17:42:03 1993 John Gilmore (gnu@cygnus.com)
1373
1374 Lint fixes from Paul Eggert (eggert@twinsun.com):
1375
1376 * command.c (do_setshow_command): var_uintegers are unsigned.
1377 * sparc-tdep.c (save_insn_opcodes, restore_insn_opcodes):
1378 unsigned, since they use hex values with the high bit set.
1379
83386662
FF
1380Thu Mar 4 08:22:55 1993 Fred Fish (fnf@cygnus.com)
1381
2456bacb
FF
1382 Fixes submitted by Karl Berry (karl@nermal.hq.ileaf.com):
1383 * m88k-pinsn.c (sprint_address): Use SYMBOL_NAME macro to
1384 access symbol name.
e5bb7e61 1385 * m88k-nat-c (SXIP_OFFSET, SNIP_OFFSET, SFIP_OFFSET): Enclose
2456bacb 1386 macro definitions in parenthesis.
e5bb7e61 1387
83386662
FF
1388 * dbxread.c (dbx_symfile_init): Catch the case where there is
1389 no string table, but the only way we find out is by reading zero
1390 bytes from EOF.
1391
69a272c4
FF
1392Wed Mar 3 15:51:28 1993 Fred Fish (fnf@cygnus.com)
1393
1394 * dbxread.c (dbx_symfile_init): Make size of the string table
1395 size field a define (DBX_STRINGTAB_SIZE_SIZE). Ensure that the
1396 offset to the string table is nonzero and handle the nonexistant
1397 string table case, should it occur. Ensure that the string table
1398 size read from the file is reasonable, with a minimum lower bound
1399 of DBX_STRINGTAB_SIZE_SIZE instead of zero.
1400
b010e283
ILT
1401Wed Mar 3 07:23:03 1993 Ian Lance Taylor (ian@cygnus.com)
1402
1403 * Makefile.in: Changes to build testsuite correctly.
1404 (FLAGS_TO_PASS): Added CXX and CXXFLAGS.
1405 (CC_FOR_TARGET, CXX, CXX_FOR_TARGET): New variables.
1406 (TARGET_FLAGS_TO_PASS): New variable.
1407 (SUBDIRS): Added testsuite.
1408 (all): Build testsuite using TARGET_FLAGS_TO_PASS, so that
1409 testsuite is compiled with CC_FOR_TARGET rather than CC.
1410
45364c8a
FF
1411Tue Mar 2 17:57:56 1993 Fred Fish (fnf@cygnus.com)
1412
6985bc54
FF
1413 * dbxread.c (dbx_symfile_init): Fix for nonexistant string table,
1414 reported by mycroft@gnu.ai.mit.edu.
1415
1416 (Ultrix 2.2 support from Michael Rendell <michael@mercury.cs.mun.ca>)
1417 * configure.in (vax-*-ultrix2*): New triplet.
1418 * config/vaxult2.mh: New file.
1419 * xm-vaxult2.h: New file.
1420
45364c8a
FF
1421 * c-exp.y (parse_number): Change high_bit to unsigned.
1422 * demangle.c: Change all references to cfront to ARM, since the
1423 actual algorithm is the one specified in the Annotated Reference
1424 Manual. This was confusing users into thinking that full cfront
1425 support was implemented.
1426 * dwarfread.c (CFRONT_PRODUCER): Remove, was never really used.
1427 * eval.c (evaluate_subexp): For STRUCTOP_PTR pass the arg type
1428 directly to lookup_struct_elt_type, which will do the
1429 dereferencing itself.
1430 * gdbtypes.c (lookup_struct_elt_type): Expand comments. Fix
1431 NULL dereferencing bug for unnamed structs, comment out
1432 questionable code.
1433
fefe2ed9
JG
1434Mon Mar 1 17:54:41 1993 John Gilmore (gnu@cygnus.com)
1435
1d9449ab
JG
1436 * coffread.c (process_coff_symbol): Change PCC argument correction
1437 so that it only happens on big-endian targets; so that it only
1438 happens if the short or char argument is aligned on an int
1439 boundary; and so that it changes the location, rather than the
1440 type, of the argument. These changes tend to parallel similar
1441 (old) changes in stabsread.c.
1442
1443 * coffread.c (coff_read_enum_type): Use the specified size for
1444 enums, don't assume that they are int-sized.
1445
1446 * c-valprint.c (c_val_print): Don't assume enums are the same as
1447 ints.
1448
fefe2ed9
JG
1449 * coredep.c: Handle NO_PTRACE_H in coredep.c. Fix by Michael
1450 Rendell, <michael@mercury.cs.mun.ca>.
1451
58a66e24
FF
1452Mon Mar 1 09:25:57 1993 Fred Fish (fnf@cygnus.com)
1453
1454 * language.h (local_decimal_format_custom): Add prototype.
1455 * language.c (local_decimal_format_custom): Add function, bug
1456 reported by Robert R. Henry (rrh@tera.com).
1457
9116f7c7
JG
1458Fri Feb 26 18:33:18 1993 John Gilmore (gnu@cacophony.cygnus.com)
1459
1460 * xcoffexec.c (vmap_ldinfo): Fix "/" for '/' typo, reported
1461 by Josef Leherbauer, joe@takeFive.co.at.
1462
1463Wed Feb 24 19:17:11 1993 John Gilmore (gnu@cacophony.cygnus.com)
1464
1465 * symfile.c (syms_from_objfile), tm-29k.h, tm-3b1.h, tm-68k-un.h,
1466 tm-altos.h, tm-arm.h, tm-convex.h, tm-es1800.h, tm-h8300.h,
1467 tm-hp300bsd.h, tm-hp300hpux.h, tm-hppa.h, tm-i386bsd.h,
1468 tm-i386v.h, tm-i960.h, tm-irix3.h, tm-isi.h, tm-linux.h,
1469 tm-m88k.h, tm-merlin.h, tm-mips.h, tm-news.h, tm-np1.h, tm-pn.h,
1470 tm-pyr.h, tm-rs6000.h, tm-spc-un.h, tm-sun386.h, tm-sunos.h,
1471 tm-symmetry.h, tm-sysv4.h, tm-tahoe.h, tm-umax.h, tm-vax.h,
1472 tm-vx68.h, tm-z8k.h: Remove remnants of NAMES_HAVE_UNDERSCORE.
1473
8fbdca53
FF
1474Wed Feb 24 07:41:15 1993 Fred Fish (fnf@cygnus.com)
1475
f31e2e7a
FF
1476 * symtab.h (SYMBOL_INIT_DEMANGLED_NAME): Initialize contents
1477 of demangled name fields to NULL if no demangling exists for
1478 a symbol. SYMBOL_INIT_LANGUAGE_SPECIFIC does this for new
1479 symbols if their language is known at the time they are created,
1480 but sometimes the language is not known until later.
1481
8fbdca53
FF
1482 * ch-typeprint.c (chill_print_type_base): Name changed to
1483 chill_type_print_base to match pattern for C and C++ names.
1484 * ch-typeprint.c (chill_print_type): Change "char" to "CHAR"
1485 to be consistent with other usages.
1486 * ch-typeprint.c (chill_type_print_base): Add support for
1487 printing Chill STRUCT types.
1488 * ch-valprint.c: Include values.h.
1489 * ch-valprint.c (chill_print_value_fields): New function and
1490 prototype for printing Chill STRUCT values.
1491 * ch-valprint.c (chill_val_print): Fix call to val_print_string
1492 that was being called with two args instead of three.
1493 * ch-valprint.c (chill_val_print): Call chill_print_value_fields
1494 to print Chill STRUCT values.
8fbdca53 1495
b12529c1
MW
1496Tue Feb 23 18:58:11 1993 Mike Werner (mtw@poseidon.cygnus.com)
1497
1498 * configure.in: added testsuite to configdirs.
1499
c2dc518b
MS
1500Tue Feb 23 11:46:11 1993 Mike Stump (mrs@cygnus.com)
1501
1502 * doc/stabs.texi: The `this' pointer is now known by the name
1503 `this' instead of `$t'.
1504
b6236d6e
FF
1505Tue Feb 23 11:21:33 1993 Fred Fish (fnf@cygnus.com)
1506
bb6e8fe6
FF
1507 * dwarfread.c (read_tag_string_type): Rewrite to allow forward
1508 references of TAG_string_type DIEs in user defined types.
b6236d6e
FF
1509 * ch-lang.c (chill_create_fundamental_type): Track compiler
1510 change that now emits debugging info with the type long for Chill
1511 longs.
b6236d6e 1512
c2a0f1cb
ILT
1513Mon Feb 22 15:21:54 1993 Ian Lance Taylor (ian@cygnus.com)
1514
1515 * remote-mips.c: New file; implements MIPS remote debugging
1516 protocol.
1517 * config/idt.mt: New file; uses remote-mips.c
1518 * configure.in (mips-idt-ecoff): New target; uses idt.mt.
1519
1520 * mips-tdep.c (mips_fpu): New variable; controls use of MIPS
1521 floating point coprocessor.
1522 (mips_push_dummy_frame): If not mips_fpu, don't save floating
1523 point registers.
1524 (mips_pop_frame): If not mips_fpu, don't restore floating point
1525 registers.
1526 (_initialize_mips_tdep): New function; let the user reset mips_fpu
1527 variable.
1528 * tm-mips.h (EXTRACT_RETURN_VALUE, STORE_RETURN_VALUE): If not
1529 mips_fpu, don't use fp0 as floating point return register.
1530 (FIX_CALL_DUMMY): If not mips_fpu, don't save floating point
1531 registers.
1532
bf3d2b75
MW
1533Mon Feb 22 07:54:03 1993 Mike Werner (mtw@poseidon.cygnus.com)
1534
1535 * gdb/testsuite: made modifications to testcases, etc., to allow
1536 them to work properly given the reorganization of deja-gnu and the
1537 relocation of the testcases from deja-gnu to a "tool" subdirectory.
1538
19fa4a0a
MW
1539Sun Feb 21 10:55:55 1993 Mike Werner (mtw@poseidon.cygnus.com)
1540
1541 * gdb/testsuite: Initial creation of gdb/testsuite.
1542 Migrated dejagnu testcases and support files for testing nm to
1543 gdb/testsuite from deja-gnu. These files were moved "as is"
1544 with no modifications. This migration is part of a major overhaul
1545 of dejagnu. The modifications to these testcases, etc., which
1546 will allow them to work with the new version of dejagnu will be
1547 made in a future update.
1548
cb46c402
JG
1549Fri Feb 19 18:36:55 1993 John Gilmore (gnu@cygnus.com)
1550
1551 * NEWS: Add reminders for next release.
1552
254dec35
ILT
1553Fri Feb 19 10:01:39 1993 Ian Lance Taylor (ian@cygnus.com)
1554
1555 * mipsread.c (parse_lines): Correct check for files compiled with
1556 -g1.
1557
dba02c60
JG
1558Fri Feb 19 05:56:15 1993 John Gilmore (gnu@cygnus.com)
1559
1560 * Makefile.in (VERSION): 4.8.1 to distinguish local versions.
1561
c7cb1025 1562Fri Feb 19 01:32:58 1993 John Gilmore (gnu@cygnus.com)
ead97959
JG
1563
1564 * Makefile.in (VERSION): GDB-4.8 release!
dba02c60 1565 * README, NEWS: Update for release.
ead97959 1566
b9163d1a
SG
1567Thu Feb 18 22:44:40 1993 Stu Grossman (grossman@cygnus.com)
1568
1569 * am29k-pinsn.c (print_insn): Minor nits with const.
1570 * am29k-tdep.c: More minor nits with arg types for
1571 supply_register, NULL vs. 0, read_register_gen, & reginv_com.
1572
5e3d0ab0
JG
1573Thu Feb 18 22:38:03 1993 John Gilmore (gnu@cygnus.com)
1574
1575 * gcc.patch: Update for a different GCC (G++) bug.
1576 * main.c (print_gdb_version): Update copyright year to 1993.
1577 * nm-hp300bsd.h: Decide whether this is BSD 4.3 or 4.4,
1578 conditionalize this file on it. FIXME, right way is to split
1579 these into two config files.
1580 (ATTACH_DETACH): Define for BSD 4.4
1581 (PTRACE_ARG_TYPE): caddr_t for BSD 4.4, unset for 4.3.
1582 (U_REGS_OFFSET): Revise for 4.4.
1583 (REGISTER_U_ADDR): Separate for 4.4, but it doesn't work yet.
1584 * xm-hp300bsd.h: Move definitions of UINT_MAX, INT_MAX, INT_MIN,
1585 LONG_MAX into this file to avoid cpp "redefinition" warnings.
1586
add04f8b
RP
1587Thu Feb 18 16:13:28 1993 K. Richard Pixley (rich@rtl.cygnus.com)
1588
1589 * nm-hp300bsd.h (PTRACE_ARG3_TYPE): FSF's hp300's have int* not
1590 caddr_t.
1591
c5c00171
JG
1592Thu Feb 18 04:10:06 1993 John Gilmore (gnu@cygnus.com)
1593
961ccde6
JG
1594 * c-lang.c (c_printstr): Bugfix for length==0 case.
1595
c5c00171
JG
1596 * c-lang.c (c_printstr): If a C string ends in a null, don't
1597 print the null.
1598
eece984d
SG
1599Thu Feb 18 02:39:21 1993 Stu Grossman (grossman at cygnus.com)
1600
1601 * defs.h (STRCMP): Make it work for unsigned chars.
1602
ec4bf6a0
JG
1603Thu Feb 18 01:56:06 1993 John Gilmore (gnu@cygnus.com)
1604
1605 * nm-hp300bsd.h (ATTACH_DETACH, PTRACE_ATTACH, PTRACE_DETACH): define.
1606 * config/hp300bsd.mh (REGEX, REGEX1): Define.
1607 * m68k-pinsn.c (BREAK_UP_BIG_DECL, AND_OTHER_PART): #if __GNUC__,
1608 define to kludge the large opcode table into two smaller tables,
1609 since GCC take exponential space to build the table. Lint.
1610 (NOPCODES): Remove, use "numopcodes" from opcode/m68k.h instead.
1611
0ae975ea
JG
1612Wed Feb 17 19:24:40 1993 John Gilmore (gnu@cygnus.com)
1613
be220da1
JG
1614 * Makefile.in (VERSION): Roll to 4.7.9.
1615 * xm-hp300bsd.h: Define PSIGNAL_IN_SIGNAL_H and put a compatible
1616 definition here, to handle both BSD 4.3 and 4.4 systems.
5824e607
JG
1617 * mipsread.c (ZMAGIC): #undef to avoid duplicate define.
1618 * remote.c (alarm): Move declaration to global level, before
1619 first reference to it.
1620 * tm-i386bsd.h (NUM_REGS): There are only eleven, not twelve.
0ae975ea
JG
1621 * dbxread.c (process_one_symbol): Cast to unsigned char, not int.
1622
8631194d
RP
1623Wed Feb 17 13:40:29 1993 K. Richard Pixley (rich@cygnus.com)
1624
fce7f2d9
RP
1625 * remote.c (readchar): forward declare alarm which otherwise looks
1626 like an undeclared variable to gcc.
1627
040b9597
RP
1628 * dbxread.c (process_one_symbol): cast enum value N_SO into int
1629 when comparing against an int. Avoids superfluous warning from
1630 vax ultrix 4.2 cc.
1631
9549404e
RP
1632 * inflow.c (set_sigint_trap): add cast to assignment from signal.
1633 Avoids superfluous warnings from some systems and/or compilers
1634 (like vax ultrix 4.2.)
1635
8631194d
RP
1636 * language.c (struct op_print unk_op_print_tab): use the enum
1637 values rather naked zeros as initializers. Avoids warnings from
1638 ultrix type compilers.
1639
f4ed8840
JG
1640Tue Feb 16 00:53:20 1993 John Gilmore (gnu@cygnus.com)
1641
1642 * Makefile.in (VERSION): Roll to 4.7.6.
1643 (SFILES_SUBDIR): Add 29k-share/udi_soc.
1644 (SFILES_SUBSUBDIR): Move 29k-share/udi files to this macro.
62e859f0
JG
1645 (alldeps.mak): Make ALLDEPFILES_SUBSUBDIR for files in sub sub dirs.
1646 (ALLDEPFILES_SUBSUBDIR): Depend on this for deeper dep files.
f4ed8840
JG
1647 (HFILES): Remove all nm-* except nm-trash.h. Add ns32k-opcode.h.
1648 (depend): Fix bug where nm-files in config files weren't noticed.
1649 (make-proto-gdb-1): Avoid changing directories while building new
1650 prototype. Build SFILES_SUBSUBDIR with longer symlinks.
1651
7c622b41
JG
1652Mon Feb 15 20:48:09 1993 John Gilmore (gnu@cygnus.com)
1653
1654 * remote.c: Improve error recovery. Allow user to break out
1655 of initial connection attempt with INTERRUPT. Treat a timeout
1656 while waiting for remote packet like a retry, unless the remote
1657 side is actively running user code. Fix a few long printf_filtered's.
1658
1659 * xcoffread.c (read_xcoff_symtab): Don't use null symbol name for
1660 trampoline symbols.
1661
1662 * buildsym.c (start_subfile): Allow null file name.
1663
e9916390
RP
1664Fri Feb 12 15:46:49 1993 K. Richard Pixley (rich@cygnus.com)
1665
1666 * xcoffread.c (process_xcoff_symbol, read_symbol_lineno): complain
1667 expects a pointer to complaint rather than a complaint
1668 structure.
6d4ea3a5
RP
1669 (process_linenos): free the previously allocated subfile name,
1670 then allocate the new one from the heap.
e9916390 1671
256b4f37
SC
1672Fri Feb 12 08:06:05 1993 Steve Chamberlain (sac@thepub.cygnus.com)
1673
1674 * h8300-tdep.c, tm-h8300.h: turn off some experimental features
1675
e5eeaaf8
JG
1676Thu Feb 11 00:59:07 1993 John Gilmore (gnu@cygnus.com)
1677
256b4f37
SC
1678 * stabsread.c (dbx_lookup_type): Handle negative type numbers.
1679 Previously, would bogusly index off the bottom of type_vector.
1680 (rs6000_builtin_type): Accept type number as argument.
1681 (read_type, case '-'): Handle negatives like any other type number.
1682
1683 * symfile.c (deduce_language_from_filename): Handle null name.
1684
015605c5
JG
1685 * mips-tdep.c (isa_NAN): Fix byte order dependency.
1686 Reported by Nobuyuki Hikichi <hikichi@sra.co.jp>,
1687 fixed by sato@sm.sony.co.jp.
1688
e5eeaaf8
JG
1689 * xcoffread.c (parmsym): Don't use an initializer to set up
1690 this struct symbol. Set it up in initialize_xcoffread.
1691 (read_xcoff_symtab, xcoff_symfile_read): Surround code that only
1692 works on real rs/6000 target with #ifndef FAKING_RS6000.
1693
dd469789
JG
1694Wed Feb 10 23:42:37 1993 John Gilmore (gnu@cygnus.com)
1695
1696 * stabsread.c (rs6000_builtin_type): Move function from
1697 xcoffread.c:builtin_type.
1698 * xcoffread.c (builtin_type): Move to stabsread. Remove
1699 IBM6000_HOST dependency. Move misplaced comments.
1700 (various): Change printf's to complaints.
1701 (patch_block_stabs, process_xcoff_symbol case C_DECL): Add
1702 objfile argument to read_type calls under #if 0.
1703 (process_xcoff_symbol case C_RSYM): Fix typo in #ifdef.
1704 * xcoffexec.c (map_vmap): Don't allocate an objfile for the exec_file.
1705 * Makefile.in: xcoffread.o is not built by default.
364c1151 1706 * xm-rs6000.h (IBM6000_HOST): Remove.
dd469789
JG
1707 * config/rs6000.mh (NATDEPFILES): xcoffread.o is native only.
1708 * doc/gdbint.texinfo: Eliminate IBM6000_HOST, document
1709 IBM6000_TARGET.
1710
733a94e8
SG
1711Wed Feb 10 18:31:20 1993 Stu Grossman (grossman at cygnus.com)
1712
1713 * findvar.c (read_var_value): If REG_STRUCT_HAS_ADDR, then set
1714 VALUE_LVAL to be lval_memory so that we don't try to modify wild
1715 register numbers when user tries to modify elements in structs
1716 passed as arguments.
1717 * inflow.c (child_terminal_info): Move banner outside of system
1718 specific #ifdefs.
1719 * tm-hppa.h (REG_STRUCT_HAS_ADDR): Define this for HPPA, which
1720 passes struct/union arguments by address.
1721
1722Wed Feb 10 15:34:46 1993 Ian Lance Taylor (ian@cygnus.com)
1723
14b1f0d9 1724 * Based on patch from Kean Johnston <maw@netcom.com>:
733a94e8
SG
1725 * nm-i386sco4.h: New file. Like nm-i386sco.h, but define
1726 ATTACH_DETACH, PTRACE_ATTACH and PTRACE_DETACH.
1727 * config/i386sco4.mh (NAT_FILE): Use nm-i386sco4.h.
1728
79533adf
JG
1729Tue Feb 9 20:07:18 1993 John Gilmore (gnu@cygnus.com)
1730
1731 * remote-udi.c (FREEZE_MODE): Fix && for & typo. Found and
1732 fixed by Lynn D. Shumaker, shumaker@saifr00.cfsat.honeywell.com.
1733
2368ffb6
ILT
1734Tue Feb 9 08:18:07 1993 Ian Lance Taylor (ian@cygnus.com)
1735
1736 * config/i386sco4.mh (MUNCH_DEFINE): Pass -p to nm to avoid bug in
1737 cc debugging output.
1738
2a021f21
JG
1739Tue Feb 9 00:19:28 1993 John Gilmore (gnu@cygnus.com)
1740
1741 * stabsread.c (define_symbol): Complain about unrecognized names
1742 that begin with CPLUS_MARKER (often '$'), but don't die. Fix
1743 suggested by gb@cs.purdue.edu (Gerald Baumgartner).
1744 (read_cpp_abbrev): Don't use the class name as part of the
1745 vtable pointer member name (_vptr$) in $vf abbrevs or unrecognized
1746 abbrevs. Inspired by Mike Tiemann.
1747 (read_tilde_fields): Comment. Remove ancient dead code.
1748 Remove erroneous but non-dead code. Simplify. Add complaints.
1749 (in general): Remove extraneous (parentheses) in return
1750 statements.
1751
c653bc6d
JG
1752Fri Feb 5 14:01:22 1993 John Gilmore (gnu@cygnus.com)
1753
931bf12a
JG
1754 * coffread.c (coff_lookup_type): Fix fencepost error reported
1755 by Art Berggreen, <arg@opal.acc.com>.
1756
c653bc6d 1757 Fix long file name bug reported on SCO Open Desktop 2.0 by Ulf Lunde
931bf12a 1758 <Ulf.Lunde@kvatro.no> and Dag H. Wanvik <Dag.H.Wanvik@kvatro.no>:
c653bc6d
JG
1759
1760 * coffread.c (getfilename): Eliminate COFF_NO_LONG_FILE_NAMES
1761 test, which is apparently left over from when we used native
1762 include files and couldn't depend on the member names being there.
1763 * tm-3b1.h, tm-altos.h, tm-i386v.h: Don't set it.
1764
1765Thu Feb 4 12:23:15 1993 Ian Lance Taylor (ian@cygnus.com)
1766
1767 * mipsread.c: Major overhaul to use new BFD symbol table reading
1768 routines. Now swaps information as it is needed, rather than
1769 swapping everything when the file is read.
1770
b076f024
JG
1771Thu Feb 4 01:52:36 1993 John Gilmore (gnu@cygnus.com)
1772
1773 * Makefile.in (TARDIRS): Add sparclite demo dir.
1774 (*.tab.c): Change dependency on Makefile to depend on
1775 Makefile.in, otherwise it always rebuilds after configuring.
1776 Force output *.tab.c file into current directory even in "make"
1777 versions that rewrite dependent file names used in command lines.
1778
1779 * TODO: Remove some things we did.
1780 * am29k-opcode.h, convx-opcode: Remove; now in ../include/opcode.
1781 * os68k-xdep.c: Remove; useless file (os68k is a target only).
1782 * convex-pinsn.c: Use ../include/opcode/convex.h. Add CONST.
1783 * symtab.h: Eliminate unnamed unions and structs.
1784
ad89bdfd
JG
1785Wed Feb 3 14:48:08 1993 John Gilmore (gnu@cygnus.com)
1786
1787 * Makefile.in (VERSION): Roll to 4.7.5.
ad89bdfd 1788
ca5a72cd
JG
1789Tue Feb 2 20:47:42 1993 John Gilmore (gnu@cygnus.com)
1790
1791 * breakpoint.c (breakpoint_re_set_one): Handle watchpoints when
1792 re-evaluating symbol pointers.
1793
9da75ad3
FF
1794Tue Feb 2 16:10:31 1993 Fred Fish (fnf@cygnus.com)
1795
1796 * c-exp.y (lcurly, rcurly): New nonterminals.
1797 * c-exp.y (exp): Use lcurly and rcurly for arrays and UNOP_MEMVAL
1798 constructs.
1799 * parse.c (free_funcalls): Moved prototype from parser-defs.h,
1800 made function static.
1801 * parse.c (struct funcall): Moved struct def from parser-defs.h.
1802 * parse.c (funcall_chain): Moved from parser-defs.h, made static.
1803 * parse.c (start_arglist):
1804 * parser-defs.h (free_funcalls): Moved prototype to parse.c.
1805 * parser-defs.h (struct funcall): Moved struct def to parse.c.
1806 * parser-defs.h (funcall_chain): Moved to parse.c.
1807 * printcmd.c (print_frame_nameless_args): Fix prototype.
1808 * tm-mips.h (setup_arbitrary_frame): Fix prototype.
1809 * tm-sparc.h (setup_arbitrary_frame): Fix prototype.
1810 * valops.c (typecmp): Moved prototype from values.h.
1811 * value.h (typecmp): Moved prototype to valops.c, made static.
9da75ad3 1812 * ch-exp.y (yylex): Change way control sequences are disabled.
9da75ad3 1813
58bcc08c
JG
1814Tue Feb 2 16:11:43 1993 John Gilmore (gnu@cygnus.com)
1815
1816 * tm-mips.h, tm-sparc.h: Fix thinko in SETUP_ARBITRARY_FRAME.
1817
fee754c9
ILT
1818Tue Feb 2 15:30:33 1993 Ian Lance Taylor (ian@cygnus.com)
1819
1820 * mipsread.c (upgrade_type): Build array types correctly, using
1821 create_range_type and create_array_type.
1822
7dc15bb7
JG
1823Tue Feb 2 00:19:08 1993 John Gilmore (gnu@cygnus.com)
1824
58bcc08c
JG
1825 * remote-nindy.c: Cleanup.
1826
1b6a2087
JG
1827 * infrun.c (wait_for_inferior): When rolling back the PC after
1828 a breakpoint, call write_pc so that NPC gets rolled back as well
1829 (for the 29K).
1830
d122f257
JG
1831 * blockframe.c (inside_entry_file, inside_main_func,
1832 inside_entry_func): PC of zero is always "bottom of stack".
1833
7dc15bb7
JG
1834 * printcmd.c (print_frame_args, print_frame_nameless_args):
1835 Let print_frame_nameless_args decide whether there are any,
1836 laying groundwork for possibly later printing 29K args for
1837 functions where we have tag words but no symbols.
1838
2b21d8aa
RP
1839Mon Feb 1 18:09:58 1993 Roland H. Pesch (pesch@fowanton.cygnus.com)
1840
1841 * Makefile.in: fix GDB doc targets for new doc subdir structure
1842
07c2fa3e
JG
1843Mon Feb 1 17:56:47 1993 John Gilmore (gnu@cygnus.com)
1844
1845 * stack.c (parse_frame_specification): Parse as many arguments
1846 as there are (up to MAXARGS). Pass all of them in argc, argv
1847 format to SETUP_ARBITRARY_FRAME. Put the burden of checking how
1848 many there were, onto SETUP_ARBITRARY_FRAME.
1849 * tm-mips.h, tm-sparc.h: Corresponding changes.
1850 * mips-tdep.c, sparc-tdep.c: Ditto.
1851
6edd74ae
JG
1852Mon Feb 1 17:19:37 1993 John Gilmore (gnu@cygnus.com)
1853
1854 * hp300ux-nat.c: Update copyrights.
1855 * mipsread.c (parse_partial_symbols): Complain about block
1856 indexes that go backwards. Fix from Peter Schauer.
1857 * symfile.c (syms_from_objfile, symbol_file_add): Allow a
1858 symbol-file that has no linkage symbols to be read.
1859 * tm-rs6000.h, xm-rs6000.h: (SIGWINCH_HANDLER and friends): Move
1860 from tm- file to xm-file, since they're host dependent.
1861 * valarith.c (value_binop): Typo.
797bc12b 1862
6edd74ae 1863Mon Feb 1 16:16:59 1993 Stu Grossman (grossman at cygnus.com)
797bc12b
SG
1864
1865 * sparclite/aload.c: Add copyleft.
1866 * sparclite/crt0.s: Add comment at beginning.
1867
2431d063
SC
1868Mon Feb 1 14:36:11 1993 Steve Chamberlain (sac@thepub.cygnus.com)
1869
1870 * remote-z8k.c, z8k-tdep.c: support for the Z8001 and Z8002.
1871 * parse.c (std_regs): Only declare if NO_STD_REGS is defined.
1872
d112a0c6
MT
1873Sun Jan 31 04:32:48 1993 Michael Tiemann (tiemann@rtl.cygnus.com)
1874
7cb0f870
MT
1875 * values.c (value_headof): Fix typo in which VTBL and ARG were
1876 being confused for one another.
1877
a163ddec
MT
1878 * valops.c (typecmp): Now static.
1879
edf67bd1
MT
1880 * gdbtypes.c (fill_in_vptr_fieldno): Don't ignore the first
1881 baseclass--we don't always inherit its virtual function table
1882 pointer.
1883
271e5030
MT
1884 * eval.c (evaluate_subexp): In OP_FUNCALL case, adjust `this'
1885 pointer correctly in case value_struct_elt moves it around.
1886
1887 * valops.c (typecmp): Now static. Also, now groks references
1888 better.
1889
d112a0c6 1890 * gdbtypes.c (lookup_struct_elt_type): Pass NOERR instead of
271e5030 1891 zero on recursive call. If NAME is the name of TYPE, return TYPE.
d112a0c6 1892
3d9b9577
JG
1893Sat Jan 30 19:55:52 1993 John Gilmore (gnu@cygnus.com)
1894
ec68a93f
JG
1895 * hppah-nat.c: Eliminate <sys/user.h> and other unnecessary stuff,
1896 to avoid "too much defining" error from native C compiler (!).
1897
3d9b9577
JG
1898 * Makefile.in (HFILES): Add typeprint.h.
1899 * typeprint.[ch]: Update copyrights.
1900
926d7800
JG
1901Thu Jan 28 19:09:02 1993 John Gilmore (gnu@cygnus.com)
1902
bdec39b3
JG
1903 * Makefile.in: Update to match doc/ subdir changes.
1904
92063c3e 1905 * config/hp300hpux.mh: No cross-host file needed, just native.
71e60679
JG
1906 * config/go32.mh: Remove nonexistent "native" support.
1907
2a770cac
JG
1908 M88K fixes reported by Carl Greco, <cgreco@Creighton.Edu>:
1909 * tm-m88k.h (REGISTER_CONVERT_TO_RAW): Fix typo.
1910 * m88k-tdep.c (next_insn): Lint, cleanup.
1911 (store_parm_word): Lint.
1912
926d7800
JG
1913 * README: Fix typo (reported by karl@hq.ileaf.com).
1914
2fcc38b8
FF
1915Wed Jan 27 21:34:21 1993 Fred Fish (fnf@cygnus.com)
1916
1917 * expression.h (BINOP_CONCAT): Document use for self concatenation
1918 an integral number of times.
1919 * language.c (binop_type_check): Extend BINOP_CONCAT for self
1920 concatenation case.
1921 * valarith.c (value_concat): Rewrite to support self
1922 concatenation an integral number of times.
2fcc38b8
FF
1923 * Makefile.in (ch-exp.tab.c): Change "expect" message.
1924 * ch-exp.y (FIXME's): Make all FIXME tokens distinct, to
1925 eliminate hundreds of spurious shift/reduce and reduce/reduce
1926 conflicts that mask the 5 real ones.
1927 * ch-exp.y (STRING, CONSTANT, SC): Remove unused tokens.
1928 * ch-exp.y (integer_literal_expression): Remove production,
1929 no longer used.
2fcc38b8
FF
1930
1931Thu Jan 21 09:58:36 1993 Fred Fish (fnf@cygnus.com)
1932
1933 * eval.c (evaluate_subexp): Fix OP_ARRAY, remove code that
1934 implied that "no side effects" was nonfunctional.
1935 * eval.c (evaluate_subexp): Add BINOP_CONCAT case to deal with
1936 character string and bitstring concatenation.
1937 * expprint.c (dump_expression): Add case for BINOP_CONCAT.
1938 * expression.h (exp_opcode): Add BINOP_CONCAT.
1939 * gdbtypes.h (type_code): Add TYPE_CODE_BITSTRING.
1940 * language.c (string_type): Add function to determine if a type
1941 is a string type.
1942 * language.c (binop_type_check): Add case for BINOP_CONCAT.
1943 * valarith.c (value_concat): New function to concatenate two
1944 values, such as character strings or bitstrings.
1945 * valops.c (value_string): Remove error stub and implement
1946 function body.
1947 * value.h (value_concat): Add prototype.
2fcc38b8
FF
1948 * ch-exp.y (operand_3): Add actions for SLASH_SLASH (//).
1949 * ch-exp.y (yylex): Recognize SLASH_SLASH.
1950 * ch-lang.c (chill_op_print_tab): Add SLASH_SLASH (//) as
1951 BINOP_CONCAT.
2fcc38b8
FF
1952
1953Tue Jan 19 14:26:15 1993 Fred Fish (fnf@cygnus.com)
1954
1955 * c-exp.y (exp): Add production to support direct creation
1956 of array constants using the obvious syntax.
1957 * c-valprint.c (c_val_print): Set printed string length.
1958 * dwarfread.c (read_tag_string_type): New prototype and
1959 function that handles TAG_string_type DIEs.
1960 * dwarfread.c (process_dies): Add case for TAG_string_type
1961 that calls new read_tag_string_type function.
1962 * expprint.c (print_subexp): Add support for OP_ARRAY.
1963 * gdbtypes.c (create_range_type, create_array_type): Inherit
1964 objfile from the index type.
2fcc38b8
FF
1965 * ch-typeprint.c (chill_print_type): Add case for
1966 TYPE_CODE_STRING.
1967 * ch-valprint.c (chill_val_print): Fix case for
1968 TYPE_CODE_STRING.
2fcc38b8 1969
201c1243
ILT
1970Mon Jan 18 11:58:45 1993 Ian Lance Taylor (ian@cygnus.com)
1971
1972 * mipsread.c (CODE_MASK, MIPS_IS_STAB, MIPS_MARK_STAB,
1973 MIPS_UNMARK_STAB, STABS_SYMBOLS): Removed; now in
1974 include/coff/mips.h.
1975
c4413e2c
FF
1976Fri Jan 15 20:26:50 1993 Fred Fish (fnf@cygnus.com)
1977
1978 * c-exp.y (exp:STRING): Convert C strings into array-of-char
1979 constants with an explicit null byte terminator. OP_STRING is
1980 now used for real string types.
1981 * c-lang.c (builtin_type_*): Move declarations to lang.c since
1982 they are used by all languages.
1983 * c-lang.c (_initialize_c_language): Move initializations of
1984 builtin_type_* to lang.c.
1985 * c-typeprint.c (c_type_print_varspec_prefix,
1986 c_type_print_varspec_suffix): TYPE_CODE_PASCAL_ARRAY renamed
1987 to TYPE_CODE_STRING.
1988 * c-valprint.c (c_val_print): Change the way character arrays
1989 are printed as strings to be consistent with the way strings
1990 are printed when pointer-to-char types are dereferenced.
1991 Remove test of print_max before calling val_print_string, which
1992 now does it's own test.
1993 * eval.c (evaluate_subexp): Add case for OP_ARRAY.
1994 * expprint.c (print_subexp, dump_expression): Add case for OP_ARRAY.
1995 * expression.h (enum exp_opcode): Add OP_ARRAY and document.
1996 * gdbtypes.c (builtin_type_*): Add declarations moved from
1997 c-lang.c.
1998 * gdbtypes.c (create_string_type): New function to create real
1999 string types.
2000 * gdbtypes.c (recursive_dump_type): TYPE_CODE_PASCAL_ARRAY
2001 renamed to TYPE_CODE_STRING.
2002 * gdbtypes.c (_initialize_gdbtypes): Add initializations of
2003 builtin_type_* types moved from c-lang.c.
2004 * gdbtypes.h (enum type_code): TYPE_CODE_PASCAL_ARRAY renamed
2005 to TYPE_CODE_STRING.
2006 * gdbtypes.h (builtin_type_string): Add extern declaration.
2007 * gdbtypes.h (create_string_type): Add prototype.
2008 * m2-lang.c (m2_create_fundamental_type): TYPE_CODE_PASCAL_ARRAY
2009 renamed to TYPE_CODE_STRING.
2010 * m88k-tdep.c (pushed_size): TYPE_CODE_PASCAL_ARRAY renamed to
2011 TYPE_CODE_STRING.
2012 * mipsread.c (_initialize_mipsread): TYPE_CODE_PASCAL_ARRAY
2013 renamed to TYPE_CODE_STRING.
2014 * parse.c (length_of_subexp, prefixify_subexp): Add case for
2015 OP_ARRAY.
2016 * printcmd.c (print_formatted): Recognize TYPE_CODE_STRING.
2017 * typeprint.c (print_type_scalar): TYPE_CODE_PASCAL_ARRAY renamed
2018 to TYPE_CODE_STRING.
2019 * valops.c (allocate_space_in_inferior): New function and
2020 prototype, using code ripped out of value_string.
2021 * valops.c (value_string): Rewritten to use new function
2022 allocate_space_in_inferior, but temporarily disabled until some
2023 other support is in place.
2024 * valops.c (value_array): New function to create array constants.
2025 * valprint.c (val_print_string): Add comment to document use,
2026 complete rewrite to fix several small buglets.
2027 * value.h (value_array): Add prototype.
2028 * value.h (val_print_string): Change prototype to match rewrite.
c4413e2c
FF
2029 * ch-valprint.c (chill_val_print): Add case for TYPE_CODE_STRING.
2030 * ch-exp.y (match_character_literal): Disable recognition of
2031 control sequence form of character literals and document why.
c4413e2c 2032
6d1e8f54
SG
2033Thu Jan 14 15:48:12 1993 Stu Grossman (grossman at cygnus.com)
2034
2035 * nindy-share/nindy.c: Add comments to #endif's to clarify
2036 grouping.
2037
2038 * hppa-pinsn.c (print_insn): Use read_memory_integer, instead of
2039 read_memory to get byte order right.
2040 * hppah-tdep.c (find_unwind_info): Don't read in unwind info
2041 anymore. This is done in paread.c now. We expect unwind info
2042 to hang off of objfiles, and search all of the objfiles when until
2043 we find a match.
2044 * (skip_trampoline_code): Cast arg to target_read_memory.
2045 * objfiles.h (struct objfile): Add new field obj_private to hold
2046 per object file private data (unwind info in this case).
2047 * paread.c (read_unwind_info): New routine to read unwind info
2048 for the objfile. This data is hung off of obj_private.
2049 * tm-hppa.h: Define struct obj_unwind_info, to hold pointers to
2050 the unwind info for this objfile. Also define OBJ_UNWIND_INFO to
2051 make this easier to access.
2052
c7da3ed3
FF
2053Wed Jan 13 20:49:59 1993 Fred Fish (fnf@cygnus.com)
2054
2055 * c-valprint.c (cp_print_class_member): Add extern decl.
2056 * c-valprint.c (c_val_print): Extract code for printing methods
2057 and move it to cp_print_class_method in cp-valprint.c.
2058 * c-valprint.c (c_val_print): Extract code to print strings and
2059 move it to val_print_string in valprint.c.
2060 * cp-valprint.c (cp_print_class_method): New function using
2061 code extracted from c_val_print.
2062 * valprint.c (val_print_string): New function using code
2063 extracted from c_val_print.
2064 * value.h (val_print_string): Add prototype.
c7da3ed3
FF
2065 * ch-exp.y (CHARACTER_STRING_LITERAL): Set correct token type.
2066 * ch-exp.y (literal): Add action for CHARACTER_STRING_LITERAL.
2067 * ch-exp.y (tempbuf, tempbufsize, tempbufindex, GROWBY_MIN_SIZE,
2068 CHECKBUF, growbuf_by_size): New variables, macros, and support
2069 functions for implementing a dynamically expandable temp buffer.
2070 * ch-exp.y (match_string_literal): New lexer function.
2071 * ch-exp.y (match_bitstring_literal): Dynamic buffer code
2072 removed and replaced with new CHECKBUF macro.
2073 * ch-exp.y (yylex): Call match_string_literal when appropriate.
2074 * ch-valprint.c (ch_val_print): Add code for TYPE_CODE_PTR.
c7da3ed3 2075
0213d96f
SG
2076Sat Jan 9 19:59:33 1993 Stu Grossman (grossman at cygnus.com)
2077
78205fb6
SG
2078 * Makefile.in: Add info for paread.o.
2079 * config/hppahpux.mh: Add paread.o to NATDEPFILES.
2080
0213d96f
SG
2081 * blockframe.c (frameless_look_for_prologue): Correct the
2082 comment.
2083 * gdbtypes.h, gdbtypes.c: Use const in decl of
2084 cplus_struct_default, now that pa-gas assembler has been fixed.
2085 * hppah-nat.c: Formatting.
2086 * hppah-tdep.c: Remove lots of useless externs for variables we
2087 don't use.
2088 * (find_unwind_entry): Speed up by using binary search, and a one
2089 entry cache.
2090 * (rp_saved): New routine to see what unwind info says about RP
2091 being saved on the stack frame.
2092 * (frame_saved_pc): Look for prologue to see if we need to
2093 examine the stack for the saved RP or not.
2094 * (init_extra_frame_info): Check for prologue, instead of
2095 framesize to determine if we are frameless or not.
2096 * (frame_chain_valid): Stop backtraces when we run into _start.
2097 * (push_dummy_frame): Reformat to make more readable.
2098 * (find_dummy_frame_regs): ditto.
2099 * (hp_pop_frame): ditto.
2100 * (hp_restore_pc_queue): small cleanup.
2101 * (hp_push_arguments): ditto.
2102 * (pa_do_registers_info): ditto.
2103 * (skip_prologue): New routine created from SKIP_PROLOGUE macro.
2104 * tm-hppa.h: Move contents of SKIP_PROLOGUE into hppah-tdep.c.
2105 * Define FRAME_CHAIN_VALID.
2106 * Turn on BELIEVE_PCC_PROMOTION so that we can access char args
2107 passed to functions.
2108
2109 * paread.c (pa_symtab_read): Use new bfd conventions for
2110 accessing linker symbol table.
2111 * (pa_symfile_init): Access embedded STAB info via BFD section
2112 mechanism and related macros.
2113
2114
bfc55a5d
SG
2115Sat Jan 9 19:31:43 1993 Stu Grossman (grossman at cygnus.com)
2116
2117 * sparc-stub.c: Use a seperate stack for our traps.
2118 * Handle recursive traps.
2119 * Remove all trap init code. This needs to be done by the
2120 environment.
2121 * (set_mem_fault_trap): Call exceptionHandler() to setup this
2122 trap.
2123 * (handle_exception): See if we are at breakinst, if so, then
2124 advance PC sp that users can just step out of breakpoint().
2125 * (case 'G'): Don't let GDB hack CWP. Also, copy saved regs to
2126 new place if SP has changed.
2127 * (case 's'): Get rid of this, we can't do it yet.
2128 * (case 't'): New command to test any old random feature.
2129 * (case 'r'): New command to reset the system.
2130 * (breakpoint): Add label to breakpoint trap instruction so that
2131 handle_exception() can detect where we are and get past the
2132 breakpoint trivially.
2133
f92743ae
ILT
2134Thu Jan 7 13:33:06 1993 Ian Lance Taylor (ian@cygnus.com)
2135
2136 * mips-pinsn.c: Actual work now done by opcodes/mips-dis.c.
2137
bfc55a5d
SG
2138Thu Jan 7 09:21:51 1993 david d `zoo' zuhn (zoo at cirdan.cygnus.com)
2139
2140 * configure.in: recognise all sparclite variants
2141
f92743ae
ILT
2142Wed Jan 6 10:14:51 1993 Steve Chamberlain (sac@thepub.cygnus.com)
2143
2144 * symfile.c: If O_BINARY isn't defined, set it to 0, call openp for
2145 binary files oring in the right bit.
2146
2147 * main.c, source.c, state.c, symmisc.c: use macros defined in
2148 fopen-{bin|both} when fopening files.
2149
81028ab0
FF
2150Wed Jan 6 08:19:11 1993 Fred Fish (fnf@cygnus.com)
2151
2152 * defs.h (HOST_CHAR_BIT): New macro, defaults to either CHAR_BIT
2153 from a configuration file (typically including <limits.h>), or to
2154 TARGET_CHAR_BIT if CHAR_BIT is not defined.
2155 * eval.c (evaluate_subexp): Use new BYTES_TO_EXP_ELEM macro.
2156 * eval.c (evaluate_subexp): Add case for OP_BITSTRING.
2157 * expprint.c (print_subexp): Use new BYTES_TO_EXP_ELEM macro.
2158 * exppritn.c (print_subexp, dump_expression): Add case for
2159 OP_BITSTRING.
2160 * expression.h (OP_BITSTRING): New expression element type for
2161 packed bitstrings.
2162 * expression.h (EXP_ELEM_TO_BYTES, BYTES_TO_EXP_ELEM): New
2163 macros to convert between number of expression elements and bytes
2164 to store that many elements.
2165 * i960-tdep.c (leafproc_return): Use new macros to access
2166 minimal symbol name and address fields.
2167 * m88k-pinsn.c (sprint_address): Use new macros to access
2168 minimal symbol name and address fields.
2169 * nindy-tdep.c (nindy_frame_chain_valid): Use new macro to access
2170 minimal symbol address field.
2171 * parse.c (write_exp_elt, write_exp_string, prefixify_expression,
2172 parse_exp_1): Use new EXP_ELEM_TO_BYTES macro.
2173 * parse.c (write_exp_string, length_of_subexp, prefixify_expression):
2174 Use new BYTES_TO_EXP_ELEM macro.
2175 * parse.c (write_exp_bitstring): New function to write packed
2176 bitstrings into the expression element vector.
2177 * parse.c (length_of_subexp, prefixify_subexp): Add case for
2178 OP_BITSTRING.
2179 * parser-defs.h (struct stoken): Document that it is used for
2180 OP_BITSTRING as well as OP_STRING.
2181 * parser-defs.h (write_exp_bitstring): Add prototype.
81028ab0
FF
2182 * ch-exp.y (BIT_STRING_LITERAL): Change token type to sval.
2183 * ch-exp.y (NUM, PRED, SUCC, ABS, CARD, MAX, MIN, SIZE, UPPER,
2184 LOWER, LENGTH): New tokens for keywords.
2185 * ch-exp.y (chill_value_built_in_routine_call, mode_argument,
2186 upper_lower_argument, length_argument, array_mode_name,
2187 string_mode_name, variant_structure_mode_name): New non-terminals
2188 and productions.
2189 * ch-exp.y (literal): Useful production for BIT_STRING_LITERAL.
2190 * ch-exp.y (match_bitstring_literal): New lexer support function
2191 to recognize bitstring literals.
2192 * ch-exp.y (tokentab6): New token table for 6 character keywords.
2193 * ch-exp.y (tokentab5): Add LOWER, UPPER.
2194 * ch-exp.y (tokentab4): Add PRED, SUCC, CARD, SIZE.
2195 * ch-exp.y (tokentab3): Add NUM, ABS, MIN, MAX.
2196 * ch-exp.y (yylex): Check tokentab6.
2197 * ch-exp.y (yylex): Call match_bitstring_literal.
81028ab0 2198
76a0ffb4
FF
2199Mon Jan 4 16:54:18 1993 Fred Fish (fnf@cygnus.com)
2200
2eda1cdf
FF
2201 * xcoffexec.c (vmap_symtab): Use new macros to access minimal
2202 symbol name and value fields.
2203
533d1dc7
FF
2204 * c-exp.y (yylex): Make static, to match prototype and other
2205 <lang>-exp.y files.
2206
76a0ffb4
FF
2207 * expression.h (exp_opcode): Add BINOP_MOD.
2208 * eval.c (evaluate_subexp): Handle new BINOP_MOD.
2209 * expprint.c (dump_expression): Handle new BINOP_MOD.
2210 * language.c (binop_type_check): Handle new BINOP_MOD.
2211 * main.c (float_handler): Re-enable float handler when hit.
2212 * valarith.c (language.h): Include, need current_language.
2213 * valarith.c (TRUNCATION_TOWARDS_ZERO): Define default macro
2214 for integer divide truncates towards zero for negative results.
2215 * valarith.c (value_x_binop): Handle BINOP_MOD if seen.
2216 * valarith.c (value_binop): Allow arithmetic operations on
2217 TYPE_CODE_CHAR variables. Add case to handle new BINOP_MOD.
76a0ffb4
FF
2218 * ch-exp.y (operand_4): Add useful actions for MOD and REM.
2219 * ch-exp.y (tokentab3): Add MOD and REM.
2220 * ch-exp.y (yylex): Set innermost_block for symbols found
2221 in local scopes. Return LOCATION_NAME for local symbols.
2222 * ch-lang.c (chill_op_print_tab): Fix MOD entry to use
2223 BINOP_MOD instead of BINOP_REM. Add REM entry, using BINOP_REM.
76a0ffb4 2224
f92743ae
ILT
2225Mon Jan 4 07:35:31 1993 Steve Chamberlain (sac@wahini.cygnus.com)
2226
2227 * command.c (shell_escape, make_command, _initialize_command):
2228 don't create or use fork if CANT_FORK is defined.
2229 * serial.h, ser-go32.c: now compiles, but "the obvious problems of
2230 code written for the IBM PC" remain.
2231 * xm-go32.h: define CANT_FORK
2232
ec25d19b
SC
2233Sun Jan 3 14:24:56 1993 Steve Chamberlain (sac@thepub.cygnus.com)
2234
2235 * remote-sim.c: first attempt at general simulator interface
2236 * remote-hms.c: whitespace
2237 * h8300-tdep.c: (h8300_skip_prologue, examine_prologue):
2238 understand new stack layout. (print_register_hook): print ccr
2239 register in a fancy way.
2240
fb6e675f
FF
2241Sun Jan 3 14:16:10 1993 Fred Fish (fnf@cygnus.com)
2242
2243 * eval.c (language.h): Include.
2244 * eval.c (evaluate_subexp_with_coercion): Only coerce arrays
2245 to pointer types when the current language is C. It loses for
2246 other languages when the lower index bound is nonzero.
2247 * valarith.c (value_subscript): Take array lower bounds into
2248 account when performing subscripting operations.
2249 * valops.c (value_coerce_array): Add comment describing why
2250 arrays with nonzero lower bounds are dealt with in value_subscript,
2251 rather than in value_coerce_array.
2252
54bbbfb4
FF
2253Sat Jan 2 12:16:41 1993 Fred Fish (fnf@cygnus.com)
2254
1188fbbf
FF
2255 * ch-exp.y (FLOAT_LITERAL): Add token.
2256 * ch-exp.y (literal): Add FLOAT_LITERAL.
2257 * ch-exp.y (match_float_literal): New lexer routine.
2258 * ch-exp.y (convert_float): Remove.
2259 * ch-exp.y (yylex): Call match_float_literal.
2260 * ch-exp.y (yylex): Match single '.' after trying
2261 to match floating point literals.
1188fbbf 2262
54bbbfb4
FF
2263 * eval.c (evaluate_subexp): Add case MULTI_SUBSCRIPT.
2264 * expprint.c (print_subexp): Rename BINOP_MULTI_SUBSCRIPT to
2265 MULTI_SUBSCRIPT.
2266 * expprint.c (dump_expression): New function for dumping
2267 expression vectors during gdb debugging.
2268 * expression.h (BINOP_MULTI_SUBSCRIPT): Name changed to
2269 MULTI_SUBSCRIPT and moved out of BINOP range.
2270 * expression.h (DUMP_EXPRESSION): New macro that calls
2271 dump_expression if DEBUG_EXPRESSIONS is defined.
2272 * m2-exp.y (BINOP_MULTI_SUBSCRIPT): Changed to MULTI_SUBSCRIPT.
2273 * parse.c (length_of_subexp, prefixify_subexp): Change
2274 BINOP_MULTI_SUBSCRIPT to MULTI_SUBSCRIPT.
2275 * parse.c (parse_exp_1): Call DUMP_EXPRESSION before and after
2276 prefixify'ing the expression.
2277 * printcmd.c (print_command_1): Add comment.
54bbbfb4
FF
2278 * ch-exp.y (expression_list): Add useful actions.
2279 * ch-exp.y (value_array_element): Add useful actions.
2280 * ch-exp.y (array_primitive_value): Add production.
2281 * ch-exp.y (yylex): Recognize ',' as a token.
54bbbfb4 2282
ea81b10d
DZ
2283Fri Jan 1 18:22:02 1993 david d `zoo' zuhn (zoo at cirdan.cygnus.com)
2284
2285 * Makefile.in: pass prefix and exec_prefix via FLAGS_TO_PASS,
2286 POSIXize the recursive makes (make [variable assignments] target{s})
2287
7532cf10
FF
2288Fri Jan 1 11:56:23 1993 Fred Fish (fnf@cygnus.com)
2289
2290 * tm-sun4sol2.h (CPLUS_MARKER): Remove, now set in tm-sysv4.h.
2291 * tm-sysv4.h (CPLUS_MARKER): By default, g++ uses '.' as the
2292 CPLUS_MARKER for all SVR4 systems, so follow suit.
2293 * defs.h (strdup_demangled): Remove prototype.
2294 * dwarfread.c (enum_type, synthesize_typedef): Use new macro
2295 SYMBOL_INIT_LANGUAGE_SPECIFIC.
2296 * dwarfread.c (new_symbol): Use SYMBOL_INIT_DEMANGLED_NAME.
2297 * minsyms.c (install_minimal_symbols, prim_record_minimal_symbol,
2298 prim_record_minimal_symbol_and_info): Use new macro
2299 SYMBOL_INIT_LANGUAGE_SPECIFIC.
2300 * minsyms.c (install_minimal_symbols): Use new macro
2301 SYMBOL_INIT_DEMANGLED_NAME.
2302 * stabsread.c (define_symbol): Use new macro
2303 SYMBOL_INIT_DEMANGLED_NAME.
2304 * symfile.c (add_psymbol_to_list, add_psymbol_addr_to_list):
2305 Use new macro SYMBOL_INIT_DEMANGLED_NAME.
2306 * symfile.h (ADD_PSYMBOL_VT_TO_LIST): Use new macro
2307 SYMBOL_INIT_DEMANGLED_NAME.
2308 * symmisc.c (dump_msymbols, dump_symtab, print_partial_symbol):
2309 SYMBOL_DEMANGLED_NAME now tests language itself.
2310 * symtab.c (COMPLETION_LIST_ADD_SYMBOL): SYMBOL_DEMANGLED_NAME
2311 now tests language itself.
2312 * symtab.h (SYMBOL_CPLUS_DEMANGLED_NAME): New macro that does
2313 what SYMBOL_DEMANGLED_NAME used to do, directly access the C++
2314 mangled name member in the language dependent portion of a symbol.
2315 * symtab.h (SYMBOL_DEMANGLED_NAME): New macro that returns the
2316 mangled name member appropriate for a symbol's language.
2317 * symtab.h (SYMBOL_SOURCE_NAME, SYMBOL_LINKAGE_NAME,
2318 SYMBOL_MATCHES_NAME, SYMBOL_MATCHES_REGEXP):
2319 SYMBOL_DEMANGLED_NAME now tests language itself.
2320 * symtab.h (SYMBOL_INIT_LANGUAGE_SPECIFIC): New macro that
2321 initializes language dependent portion of symbol.
2322 * symtab.h (SYMBOL_INIT_DEMANGLED_NAME): New macro that
2323 demangles and caches the demangled form of symbol names.
2324 * utils.c (fputs_demangled, fprint_symbol): Use current language
2325 to select an appropriate demangling algorithm.
2326 * utils.c (strdup_demangled): Remove, no longer used.
7532cf10
FF
2327 * symtab.h (SYMBOL_CHILL_DEMANGLED_NAME): New macro that directly
2328 access the Chill mangled name member in the language dependent
2329 portion of a symbol.
2330 * ch-lang.c (chill_demangle): New function, simple demangler.
2331 * defs.h (chill_demangle): Add prototype.
2332 * symtab.h (language_dependent_info): Add struct for Chill.
7532cf10 2333
19d0f3f4
FF
2334Thu Dec 31 11:06:38 1992 Fred Fish (fnf@cygnus.com)
2335
2336 * Makefile.in (BISON): Add comment that when bison is used, it
2337 must include the "-y" option.
2338 * c-exp.y, m2-exp.y (yyrule, yyname, yyss, yyssp, yyvs, yyvsp):
2339 Remove defines to remap non-yacc symbols, thus backing out of
2340 previous recent changes. Standard policy is that non-yacc parser
2341 generators get fixed, rather than adding bug workarounds in gdb
2342 for each new one that pops up. Expand comment to note this.
2343 * c-exp.y, m2-exp.y (YYDEBUG): Revert back to disabled by default.
2344
684a832f
SG
2345Thu Dec 31 09:03:02 1992 Stu Grossman (grossman at cygnus.com)
2346
8a1c3e99
SG
2347 * partial-stab.h (near N_BINCL): Remove redundant code in N_BINCL
2348 case. Use code in N_SOL.
2349
684a832f
SG
2350 * paread.c: New file that contains all HPPA/HPUX symbol reading
2351 code.
2352 * dbxread.c: Remove almost all HPPA/HPUX symbol reading code.
2353 * (dbx_symfile_init): Use sizeof(long) instead of 4.
2354 * (dbx_symfile_offsets): Make static.
2355 * (pastab_build_psymtabs): New interface routine for paread to
2356 send stabs into dbxread.
2357 * gdb-stabs.h: Remove gobs of HPPA cruft.
2358
45fe3db4
FF
2359Wed Dec 30 19:47:13 1992 Fred Fish (fnf@cygnus.com)
2360
cbf5231b
FF
2361 * c-exp.y, m2-exp.y (yyrule, yyname): Remap like other yy* names
2362 for byacc.
cbf5231b 2363 * ch-exp.y (yyrule, yyname): Remap like other yy* names for byacc.
cbf5231b 2364
45fe3db4
FF
2365 * c-exp.y, m2-exp.y (yyreds, yytoks): Remap like other yy* names.
2366 * c-exp.y, m2-exp.y (YYDEBUG): Define if MAINTENANCE_CMDS is defined
2367 and YYDEBUG is not already defined.
2368 * c-exp.y (strncmp): Replace throughout with STREQN, missed
2369 them during the previous replacements.
2370 * printcmd.c (_initialize_printcmd): Update internal documentation
2371 for "set" command to note that the assignment syntax is language
2372 dependent.
45fe3db4
FF
2373 * ch-exp.y (yyreds, yytoks): Remap like other yy* names.
2374 * ch-exp.y (YYDEBUG): Define if MAINTENANCE_CMDS is defined
2375 and YYDEBUG is not already defined.
2376 * ch-exp.y (GDB_REGNAME, GDB_LAST, GDB_VARIABLE, GDB_ASSIGNMENT,
2377 single_assignment_action): New terminals and nonterminal for gdb
2378 extensions to chill expression grammer.
2379 * ch-exp.y (match_dollar_tokens): Lexer routine to match all
2380 tokens that start with '$' (register names, convenience vars, etc).
2381 * ch-exp.y (tokentab2): Add GDB_ASSIGNMENT.
2382 * ch-exp.y (yylex): Call match_dollar_tokens.
45fe3db4 2383
b5c10493
SG
2384Mon Dec 28 15:00:01 1992 Stu Grossman (grossman at cygnus.com)
2385
b8ef8163
SG
2386 * hppah-tdep.c (skip_trampoline_code): Use new macros for
2387 accessing minimal symbol data.
2388 * infcmd.c (read_pc): Use #ifdef, not #if.
2389 * symfile.c (syms_from_objfile): Add CONST to decl for targets.
2390 * tm-hppa.h (FIX_CALL_DUMMY): Use new macros for accessing
2391 minimal symbol data.
2392
b5c10493
SG
2393 * hppah-tdep.c (frame_saved_pc): Use better test for outermost
2394 frame. Use find_return_regnum to find the caller.
2395 * (find_unwind_entry): New routine to locate stack frame info
2396 associated with a procedure. This looks in the $UNWIND_START$
2397 section in the SOM file.
2398 * (find_return_regnum): New routine. Uses find_unwind_entry() to
2399 figure out where the caller's return address is stored.
2400 * (find_proc_framesize): New routine. Uses find_unwind_entry()
2401 to figure out the frame size for a procedure.
2402 * (saved_pc_after_call): New routine, moved from tm-hppa.h.
2403 * (init_extra_frame_info): New routine. Corrects PC and FP for
2404 outermost frame if necessary.
2405 * (frame_chain): New routine, moved from tm-hppa.h.
2406 * (skip_trampoline_code): Handle computed function calls (ie:
2407 calls from $$dyncall).
2408 * (unwind_command): Temporary support function to allow user
2409 to control/observe aspects of the unwind (stack frame) info.
2410 * infcmd.c (read_pc): (Temporary), put a hack in to see if the PC
2411 was in a system call, if so, then read the PC from r31.
2412 * tm-hppah.h (SKIP_TRAMPOLINE_CODE, IN_SOLIB_TRAMPOLINE): Deal
2413 with extra arg for skip_trampoline_code().
2414 * (INIT_EXTRA_FRAME_INFO): Define to point at subr (see above).
2415 * (FRAME_CHAIN, FRAME_CHAIN_VALID): Turn into real subroutines.
2416 * tm-hppa.h (SAVED_PC_AFTER_CALL): Turn into real subroutine.
2417
51db2323
FF
2418Sun Dec 27 17:34:15 1992 Fred Fish (fnf@cygnus.com)
2419
2420 * dbxread.c (dbx_symfile_init, elfstab_build_psymtabs):
2421 Call new bfd_get_size() and verify that string table is no larger
2422 than the file that is supposed to contain it.
2423 * symfile.c (syms_from_objfile): Only complain about configured
2424 NAMES_HAVE_UNDERSCORE differences between gdb and bfd if the
2425 current target is the default BFD target.
2426
1169c958
FF
2427Sat Dec 26 20:51:41 1992 Fred Fish (fnf@cygnus.com)
2428
2429 * solib.c (BKPT_AT_MAIN): Change to BKPT_AT_SYMBOL.
2430 * solib.c (bkpt_names): New array of symbol names to try to
2431 use for the "mapping complete" breakpoint. Configurable
2432 define SOLIB_BKPT_NAME is first one to try.
2433 * solib.c (find_solib): Test debug_base for nonzero rather
2434 than just greater than zero.
2435 * solib.c (enable_break): Use bkpt_names to look up address
2436 at which to set "mapping complete" breakpoint.
2437
2e4964ad
FF
2438Tue Dec 22 20:33:38 1992 Fred Fish (fnf@cygnus.com)
2439
2440 * defs.h (STRCMP, STREQ, STREQN): New macros.
2441 * defs.h (demangle_and_match): Remove prototype.
2442 * dwarfread.c (STREQ, STREQN): Remove macros, replaced with STREQ
2443 and STREQN defined in defs.h.
2444 * dwarfread.c (set_cu_language): For completely unknown languages,
2445 try to deduce the language from the filename. Retain behavior
2446 that for known languages we don't know how to handle, we use
2447 language_unknown.
2448 * dwarfread.c (enum_type, symthesize_typedef): Initialize language
2449 and demangled name fields in symbol.
2450 * dwarfread.c, mipsread.c, partial-stab.h: For all usages of
2451 ADD_PSYMBOL_TO_LIST, add language and objfile parameters.
2452 * dwarfread.c (new_symbol): Attempt to demangle C++ symbol names
2453 and cache the results in SYMBOL_DEMANGLED_NAME for the symbol.
2454 * elfread.c (STREQ): Remove macro, use STREQ defined in defs.h.
2455 Replace usages throughout.
2456 * elfread.c (demangle.h): Include.
2457 * elfread.c (record_minimal_symbol): Remove prototype and function.
2458 * gdbtypes.h, symtab.h (B_SET, B_CLR, B_TST, B_TYPE, B_BYTES,
2459 B_CLRALL): Moved from symtab.h to gdbtypes.h.
2460 * infcmd.c (jump_command): Remove code to demangle name and add
2461 it to a cleanup list. Now just use SYMBOL_DEMANGLED_NAME.
2462 * minsyms.c (demangle.h): Include.
2463 * minsyms.c (lookup_minimal_symbol): Indent comment to match code.
2464 * minsyms.c (install_minimal_symbols): Attempt to demangle symbol
2465 names as C++ names, and cache them in SYMBOL_DEMANGLED_NAME.
2466 * mipsread.c (psymtab_language): Add static variable.
2467 * stabsread.c (demangle.h): Include.
2468 * stabsread.c (define_symbol): Attempt to demangle C++ symbol
2469 names and cache them in the SYMBOL_DEMANGLED_NAME field.
2470 * stack.c (return_command): Remove explicit demangling of name
2471 and use of cleanups. Just use SYMBOL_DEMANGLED_NAME.
2472 * symfile.c (demangle.h): Include.
2473 * symfile.c (add_psymbol_to_list, add_psymbol_addr_to_list): Fix
2474 to match macros in symfile.h and allow them to be compiled
2475 if INLINE_ADD_PSYMBOL is not true.
2476 * symfile.h (INLINE_ADD_PSYMBOL): Default to true if not set.
2477 * symfile.h (ADD_PSYMBOL_*): Add language and objfile parameters.
2478 Add code to demangle and cache C++ symbol names. Use macro form
2479 if INLINE_ADD_PSYMBOL is true, otherwise use C function form.
2480 * symmisc.c (add_psymbol_to_list, add_psymbol_addr_to_list):
2481 Remove, also defined in symfile.c, which we already fixed.
2482 * symtab.c (expensive_mangler): Remove prototype and function.
2483 * symtab.c (find_methods): Remove physnames parameter and fix
2484 prototype to match.
2485 * symtab.c (completion_list_add_symbol): Name changed to
2486 completion_list_add_name.
2487 * symtab.c (COMPLETION_LIST_ADD_SYMBOL): New macro, adds both
2488 the normal symbol name and the cached C++ demangled name.
2489 * symtab.c (lookup_demangled_partial_symbol,
2490 lookup_demangled_block_symbol): Remove prototypes and functions.
2491 * symtab.c (lookup_symbol): Remove use of expensive_mangler,
2492 use lookup_block_symbol instead of lookup_demangled_block_symbol.
2493 Remove code to try demangling names and matching them.
2494 * symtab.c (lookup_partial_symbol, lookup_block_symbol):
2495 Fix to try matching the cached demangled name if no match is
2496 found using the regular symbol name.
2497 * symtab.c (find_methods): Remove unused physnames array.
2498 * symtab.c (name_match, NAME_MATCH): Remove function and macro,
2499 replaced with SYMBOL_MATCHES_REGEXP from symtab.h.
2500 * symtab.c (completion_list_add_symbol): Rewrite to use cached
2501 C++ demangled symbol names.
2502 * symtab.h: Much reformatting of structures and such to add
2503 whitespace to make them more readable, and make them more
2504 consistent with other gdb structure definitions.
2505 * symtab.h (general_symbol_info): New struct containing fields
2506 common to all symbols.
2507 * symtab.h (SYMBOL_LANGUAGE, SYMBOL_DEMANGLED_NAME,
2508 SYMBOL_SOURCE_NAME, SYMBOL_LINKAGE_NAME, SYMBOL_MATCHES_NAME,
2509 SYMBOL_MATCHES_REGEXP, MSYMBOL_INFO, MSYMBOL_TYPE): New macros.
2510 * symtab. (struct minimal_symbol, struct partial_symbol, struct
2511 symbol): Use general_symbol_info struct.
2512 * utils.c (demangle_and_match): Remove, no longer used.
2513 * valops.c (demangle.h): Include.
2514 * xcoffexec.c (eq): Remove macro, replace usages with STREQ.
2515 * blockframe.c, breakpoint.c, c-exp.y, c-valprint.c, dbxread.c,
2516 infcmd.c, m2-exp.y, minsyms.c, objfiles.h, solib.c, stack.c,
2517 symmisc.c, symtab.c, valops.c: Replace references to minimal
2518 symbol fields with appropriate macros.
2519 * breakpoint.c, buildsym.c, c-exp.y, c-typeprint.c, c-valprint.c,
2520 coffread.c, command.c, convex-tdep.c, cp-valprint.c, dbxread.c,
2521 demangle.c, elfread.c, energize.c, environ.c, exec.c,
2522 gdbtypes.c, i960-tdep.c, infrun.c, infrun-hacked.c, language.c,
2523 main.c, minsyms.c, mipsread.c, partial-stab.h, remote-es1800.c,
2524 remote-nindy.c, remote-udi.c, rs6000-tdep.c, solib.c, source.c,
2525 sparc-pinsn.c, stabsread.c, standalone.c, state.c, stuff.c,
2526 symfile.c, symmisc.c, symtab.c, symtab.h, tm-sysv4.h,
2527 tm-ultra3.h, values.c, xcoffexec.c, xcoffread.c: Replace strcmp
2528 and strncmp usages with STREQ, STREQN, or STRCMP as appropriate.
2529 * breakpoint.c, buildsym.c, c-typeprint.c, expprint.c, findvar.c,
2530 mipsread.c, printcmd.c, source.c, stabsread.c, stack.c,
2531 symmisc.c, tm-29k.h, valops.c, values.c: Replace SYMBOL_NAME
2532 references with SYMBOL_SOURCE_NAME or SYMBOL_LINKAGE_NAME as
2533 appropriate.
2534 * buildsym.c (start_subfile, patch_subfile_names): Default the
2535 source language to what can be deduced from the filename.
2536 * buildsym.c (end_symtab): Update the source language in the
2537 allocated symtab to match what we have been using.
2538 * buildsym.h (struct subfile): Add a language field.
2539 * c-typeprint.c (c_print_type): Remove code to do explicit
2540 demangling.
2541 * dbxread.c (psymtab_language): Add static variable.
2542 * dbxread.c (start_psymtab): Initialize psymtab_language using
2543 deduce_language_from_filename.
2544
a9b37611
FF
2545Mon Dec 21 22:24:33 1992 Fred Fish (fnf@cygnus.com)
2546
2547 * valprint.c (val_print): Reorganize comment and add note
2548 about dependency on target byte ordering.
a9b37611
FF
2549 * ch-exp.y (value_array_slice): Fix typo.
2550 * ch-valprint.c (chill_val_print): Remove C'ism that arrays of
2551 byte sized ints are assumed to be char strings and printed with
2552 string syntax. In chill, arrays of chars and arrays of
2553 bytes/ubytes are distinquishable, and printed appropriately.
a9b37611 2554
9f739abd
SG
2555Mon Dec 21 18:02:35 1992 Stu Grossman (grossman at cygnus.com)
2556
e5e6b6b1
SG
2557 * tm-hppah.h: #define NEED_TEXT_START_END for target memory
2558 read/write routines for HPUX.
2559
9f739abd
SG
2560 * hppa-pinsn.c (print_insn): Improve handling of be and ble
2561 branch targets to compute target address using const from previous
2562 instruction if necessary.
2563 * Add `Q' operator to print out bit position field various
2564 instructions.
2565 * hppah-nat.c: #include sys/param.h, and sys/user.h. General
2566 cleanups, use new code from Utah.
2567 * (store_inferior_registers): Update to new code from Utah.
2568 * (initialize_kernel_u_addr): Re-enable decl of struct user u.
2569 * (fetch_register): Clear out priv level when reading PCs.
2570 * hppah-tdep.c: Get rid of gobs of KERNELDEBUG stuff.
2571 * Remove decl of errno, #include wait.h and target.h.
2572 * (frame_saved_pc): Check `flags' pseudo-register to see if we
2573 were inside of a kernel call. If so, then PC is in a different
2574 register. Also, mask out bottom two bits of all PCs so as not to
2575 confuse higher level code.
2576 * (push_dummy_frame): Create from #define in tm-hppa.h.
2577 * (find_dummy_frame_regs): Update from Utah.
2578 * (hp_pop_frame): Create from #define in tm-hppa.h.
2579 * (hp_restore_pc_queue): New, from Utah.
2580 * (hp_push_arguments): Big fixes from Utah.
2581 * (pa_do_registers_info, pa_print_registers): Only print out fp
2582 regs upon request.
2583 * (skip_trampoline_code): New routine to deal with stubs that
2584 live in nowhereland between callers and callees.
2585 * i860-tdep.c: Remove decl of attach_flag.
2586 * infrun.c (wait_for_inferior): Add new macro
2587 INSTRUCTION_NULLIFIED, which can tell if the instruction pointed
2588 at by PC will be nullified. If so, then step the target once more
2589 so as to avoid confusing the user.
2590 * (just before step_over_function:): Use stop_func_start, not
2591 stop_pc when checking for the existance of line number info.
2592 stop_func_start will reflect the proper address of the target
2593 routine, not of the stub that we may be traversing to get there.
2594 * tm-hppa.h: define SKIP_TRAMPOLINE_CODE and IN_SOLIB_TRAMPOLINE
2595 to deal with the stubs that PA compilers sometimes stick between
2596 callers and callees. Also, define FLAGS_REGNUM for access to the
2597 `flags' pseudo-reg.
2598 * (REGISTER_CONVERT_TO_VIRTUAL, REGISTER_CONVERT_TO_RAW): Use
2599 memcpy, not bcopy.
2600 * (CANNOT_STORE_REGISTER): New from Utah. Says that we can't
2601 write gr0, PC regs, and PSW!
2602 * (FRAME_FIND_SAVED_REGS): Bug fixes from Utah.
2603 * (PUSH_DUMMY_FRAME, POP_FRAME): Make into real routines in
2604 hppah-nat.c.
2605 * (CALL_DUMMY, FIX_CALL_DUMMY): Fixes from Utah.
2606 * Define struct unwind_table_entry.
2607 * valops.c (call_function_by_hand): Add another arg to
2608 FIX_CALL_DUMMY (under #ifdef GDB_TARGET_IS_HPPA). Why is this
2609 necessary?
2610
5998e362
DZ
2611Mon Dec 21 02:17:57 1992 david d `zoo' zuhn (zoo at cirdan.cygnus.com)
2612
2613 * remote-vx.c: remove include of "symfile.h", replace it with "complaints.h"
2614
a8a69e63
FF
2615Fri Dec 18 10:32:25 1992 Fred Fish (fnf@cygnus.com)
2616
2617 * Makefile.in (VERSION): Bump to 4.7.4.
2618 * Makefile.in (SFILES_MAINDIR): Add typeprint.c, c-typeprint.c,
2619 m2-typeprint.c, c-valprint.c cp-valprint.c m2-valprint.c.
2620 * Makefile.in (HFILES): Add valprint.h.
2621 * Makefile.in (OBS): Add typeprint.o, c-typeprint.o,
2622 m2-typeprint.o, c-valprint.o, cp-valprint.o m2-valprint.o.
2623 * typeprint.c, typeprint.h: New files for language independent
2624 type printing functions.
2625 * c-typeprint.c, m2-typeprint.c: New files for language dependent
2626 type printing functions and definitions.
2627 * valprint.h: New include file for language independent value
2628 printing definitions.
2629 * c-valprint.c, cp-valprint.c, m2-valprint.c: New files for language
2630 dependent value printing functions.
2631 * c-exp.y (production ptype): Add range_type variable and use new
2632 create_range_type function.
2633 * c-exp.y (tokentab2, tokentab3), c-lang.c (c_op_print_tab),
2634 infcmd.c (path_var_name), language.c (unk_op_print_tab),
2635 m2-lang.c (m2_op_print_tab): Change from ANSI-obsolescent
2636 "const static" to ANSI-conformant "static const".
2637 * c-exp.y (c_create_fundamental_type): Remove unused nbytes.
2638 * c-exp.y (c_language_defn, cplus_language_defn): Add c_print_type,
2639 and c_val_print.
2640 * c-lang.h (c_print_type, c_val_print): Add prototypes.
2641 * coffread.c (decode_type): Add range_type variable and call to
2642 new create_range_type function.
2643 * complaints.c (complain): Remove unused val variable.
2644 * complaints.c (_initialize_complaints): Make it void.
2645 * convex-tdep.c (value_of_trapped_internalvar): Add range_type
2646 variable and call new create_range_type function.
2647 * defs.h (enum val_prettyprint): Move enum from value.h to here
2648 so we can avoid having to include value.h just for prototypes that
2649 need the enum (thanks ANSI).
2650 * dwarfread.c (struct_type): Local anonymous_size variable is
2651 only used if !BITS_BIG_ENDIAN.
2652 * dwarfread.c (decode_subscript_data_item): Add rangetype
2653 variable and call new create_range_type function.
2654 * elfread.c (elf_symfile_read): Remove unused dbx and text_sect
2655 variables.
2656 * eval.c (evaluate_subexp): Remove unused local variable name
2657 and the statement with no side effects that initializes it.
2658 * expprint.c (print_subexp): Change local_printstr to
2659 LA_PRINT_STRING.
2660 * gdbtypes.c (create_range_type): New function that creates
2661 a range type using code fragments from object file readers as
2662 an example of what has to be initialized.
2663 * gdbtypes.c (create_array_type): Removed index_type, low_bound,
2664 and high_bound parameters, replaced with a single range_type
2665 parameter. Change function body to use passed in range_type
2666 rather than handcrafting one.
2667 * gdbtypes.h (create_range_type): Add prototype.
2668 * gdbtypes.h (create_array_type): Change prototype parameters.
2669 * infrun.c (normal_stop): Remove unused local variables tem and c.
2670 * infrun.c (hook_stop_stub): Return 0 rather than random value.
2671 * language.c (unk_lang_print_type, unk_lang_val_print): Add
2672 stub functions that call error if called.
2673 * language.c (unknown_language_defn, auto_language_defn,
2674 local_language_defn): Add initializers unk_lang_print_type and
2675 unk_lang_val_print.
2676 * language.h (struct language_defn): Reformat for larger
2677 comments, add la_print_type and la_val_print members. Add
2678 LA_PRINT_TYPE and LA_VAL_PRINT macros. Change local_printchar
2679 to LA_PRINT_CHAR and local_printstr to LA_PRINT_STRING.
2680 * m2-lang.c (m2_create_fundamental_type): Remove unused local
2681 variable nbytes.
2682 * m2-lang.c (m2_language_defn): Add initializers m2_print_type
2683 and m2_val_print.
2684 * m2-lang.h (m2_print_type, m2_val_print): Add prototypes.
2685 * main.c (execute_command): Remove unused local variable cmdlines.
2686 * main.c (echo_command), stabsread.c (read_type), printcmd.c
2687 (clear_displays), symmisc.c (block_depth), values.c
2688 (clear_value_history):
2689 Make testing of truth value of assignment result explicit.
2690 * mipsread.c (upgrade_type): Update FIXME to include future use
2691 of create_range_type.
2692 * printcmd.c (ptype_command, ptype_eval, whatis_command,
2693 whatis_exp, maintenance_print_type): Move prototypes and functions
2694 to new typeprint.c.
2695 * printcmd.c (_initialize_printcmd): Move add_com calls for
2696 ptype_command and whatis_command to new typeprint.c.
2697 * ser-bsd.c (serial_open): Remove unused variable sgttyb.
2698 * source.c (find_source_lines): Local variable c only used
2699 when LSEEK_NOT_LINEAR is defined.
2700 * stabsread.c (read_array_type): Use new create_range_type
2701 function.
2702 * stabsread.c (read_range_type): Add new index_type variable and
2703 call new create_range_type function rather than handcrafting
2704 range types.
2705 * symmisc.c (type_print_1): Change usages to LA_PRINT_TYPE.
2706 * symtab.c (typedef_print usages): Use c_typedef_print, renamed.
2707 * symtab.c (type_print_base usages): Use c_type_print_base.
2708 * symtab.c (type_print_varspec_prefix usages): Use
2709 c_type_print_varspec_prefix.
2710 * symtab.c (type_print_method_args usages): Use
2711 cp_type_print_method_args.
2712 * valprint.c: Completely ripped apart and the fragments used
2713 to create c-valprint.c, cp-valprint.c, m2-valprint.c, and
2714 valprint.h. Remaining stuff is language independent.
2715 * value.h (struct fn_field): Forward declare for prototypes.
2716 * value.h (type_print_1): Remove prototype.
2717 * value.h (enum val_prettyprint): Moved to defs.h.
2718 * value.h (typedef_print): Prototype renamed to c_typedef_print.
2719 * value.h (baseclass_offset): Add prototype.
a8a69e63
FF
2720 * Makefile.in (SFILES_MAINDIR): Add ch-typeprint.c, ch-valprint.c.
2721 * Makefile.in (OBS): Add ch-typeprint.o, ch-valprint.o.
2722 * ch-typeprint.c: New file for language dependent type printing.
2723 * ch-valprint.c: New file for language dependent value printing.
2724 * ch-exp.y (parse_number): Remove prototype and stub function.
2725 * ch-exp.y (decode_integer_literal): Removed unused digits and
2726 temp variables.
2727 * ch-exp.y (convert_float): Completely ifdef out for now.
2728 * ch-exp.y (tokentab2, tokentab3, tokentab4, tokentab5),
2729 ch-lang.c (chill_op_print_tab):
2730 Change from ANSI-obsolescent "const static" to ANSI-conformant
2731 "static const".
2732 * ch-exp.y (yylex): Add unhandled storage class enumeration
2733 literals to switch statement for completeness.
2734 * ch-lang.c (chill_create_fundamental_types): Remove unused
2735 nbytes variable. Change dummy type to 2 bytes to match int.
2736 Handle FT_VOID types gratuituously added to chill DWARF by
2737 compiler. Change FT_CHAR case to generate an TYPE_CODE_CHAR
2738 type rather than a one byte TYPE_CODE_INT type.
2739 * ch-lang.c (chill_language_defn): Add chill_print_type and
2740 chill_val_print.
2741 * ch-lang.h (chill_print_type, chill_val_print): Add prototypes.
a8a69e63 2742
de9bef49
JG
2743Thu Dec 17 00:44:57 1992 John Gilmore (gnu@cygnus.com)
2744
2745 Eliminate uses of NAMES_HAVE_UNDERSCORE, using
2746 bfd_get_symbol_leading_char instead.
2747
2748 * coffread.c (EXTERNAL_NAME): New macro for removing possible
2749 leading character from names.
2750 (read_coff_symtab): Use BFD's FILE *, don't open a second one.
de9bef49
JG
2751 (process_coff_symbol, coff_read_struct_type, coff_read_enum_type):
2752 Replace NAMES_HAVE_UNDERSCORE with EXTERNAL_NAME.
2753
2754 * kdb-start.c (main): Remove NAMES_HAVE_UNDERSCORE.
2755 * minsyms.c (install_minimal_symbols): Replace NAMES_HAVE_UNDERSCORE.
2756 Remove SOME_NAMES_HAVE_DOT support (apparently unused).
2757 * partial-stab.h: Replace NAMES_HAVE_UNDERSCORE.
2758 * solib.c: Replace NAMES_HAVE_UNDERSCORE.
2759 * stabsread.h: Remove NAMES_HAVE_UNDERSCORE and HASH_OFFSET.
2760 * symfile.c (syms_from_objfile): Insert debugging check to test
84a05e52 2761 NAMES_HAVE_UNDERSCORE setting against the BFD support.
de9bef49
JG
2762
2763 * doc/gdbint.texinfo (Host Conditionals): Remove
2764 NAMES_HAVE_UNDERSCORE, SOME_NAMES_HAVE_DOT, document
2765 MEM_FNS_DECLARED.
2766 (Target Conditionals): Remove all of the above.
2767
926d7800
JG
2768 * xm-rs6000.h (MEM_FNS_DECLARED): Update comments.
2769
ca5a72cd
JG
2770 * coffread.c (read_coff_symtab, C_BLOCK): Use complain() rather
2771 than error() for .bb/.eb. Bug found by Eddie Fung, <efung@cs.uq.oz.au>.
2772
117f631e
ILT
2773Tue Dec 15 10:05:56 1992 Ian Lance Taylor (ian@cygnus.com)
2774
2775 * coffread.c (decode_type): catch negative tagndx fields generated
2776 by SCO 3.2v4 cc.
2777 * exec.c: comment out string following #endif.
2778 * configure.in (i[34]86-*-sco3.2v4*): use host i386sco4.
2779 * xm-i386sco.h: include <sys/types.h> and <sys/dir.h>, required by
2780 <sys/user.h>.
2781 * config/i386sco4.mh: new file; like i386sco.mh, but don't require
2782 gcc, and define const to empty to avoid SCO 3.2v4 cc bug.
2783
51b80b00
FF
2784Tue Dec 15 04:14:24 1992 Fred Fish (fnf@cygnus.com)
2785
2786 * complaints.c: New file, code moved from utils.c.
2787 * complaints.c (complain): Made into a varargs function.
2788 * complaints.h: New file, code moved from symfile.h.
2789 * Makefile.in (SFILES_MAINDIR): Add complaints.c.
2790 * Makefile.in (HFILES): Add complaints.h.
2791 * Makefile.in (OBS): Add complaints.o.
2792 * symfile.c (complaint_root, stop_whining, complaint_series,
2793 complain, clear_complaints, add_show_from_set for stop_whining):
2794 Moved to complaints.c.
2795 * symfile.h (struct complaint, complaint_root decl, complain
2796 prototype, clear_complaints prototype): Moved to complaints.h.
2797 * buildsym.c, coffread.c, dbxread.c, dwarfread.c, elfread.c,
2798 gdbtypes.c, mipsread.c, stbsread.c, symfile.c: Include
2799 complaints.h. Remove casts from arguments to complain(),
2800 which is now a varargs function, and remove unnecessary
2801 placeholder zero args.
2802 * defs.h (begin_line): Add prototype.
2803 * defs.h (vprintf_filtered): Add prototype.
2804 * dwarfread.c (varargs.h): Remove, no longer needed.
2805 * dwarfread.c (dwarfwarn): Remove prototype and function.
2806 * dwarfread.c (complaints): Define a bunch of complaints.
2807 * dwarfread.c (SQUAWK): Remove macro defs, convert all
2808 usages to standard complain() calls.
2809 * utils.c (begin_line): New function that ensures that
2810 whatever gets filter-printed next starts on its own line.
2811 * utils.c (vprintf_filtered): New func, like vfprintf_filtered,
2812 but to stdout (calls vfprintf_filtered internally).
2813
031dd1a9
JG
2814Tue Dec 15 02:01:00 1992 John Gilmore (gnu@cygnus.com)
2815
fb29d681
JG
2816 * remote.c: Avoid printf_filtered line limit. Suggested by
2817 Robert R. Henry, <rrh@tera.com>.
ca5a72cd 2818 * infcmd.c (environment_info): Ditto, for Don Allen <allen@think.com>.
fb29d681
JG
2819
2820 * main.c (main): Accept --silent as well as --quiet. Change +help
2821 to --help. Suggested by Karl Berry, <karl@cs.umb.edu>.
2822
031dd1a9
JG
2823 * doc/gdbint.texinfo: SWAP_HOST_AND_TARGET => SWAP_TARGET_AND_HOST.
2824 Noticed by Andy Jackson, <arj@cam-orl.co.uk>.
2825
df86eb44
JG
2826Mon Dec 14 23:28:15 1992 John Gilmore (gnu@cygnus.com)
2827
2828 * tm-nindy960.h, remote-nindy.c: Lint.
2829
85f0a848
FF
2830Mon Dec 14 18:48:52 1992 Fred Fish (fnf@cygnus.com)
2831
2832 * gdbtypes.c (create_array_type): Complete rewrite. Now requires
2833 a optional type to decorate as an array type, the type of the
2834 index, and the bounds of the array. Records this additional info
2835 in the array type for use with languages with nonzero array
2836 bounds.
2837 * gdbtypes.h (enum type_code): Update comment for TYPE_CODE_ARRAY
2838 to note that arrays may have bounds.
2839 * gdbtypes.h (create_array_type): Update prototype.
2840 * c-exp.y (ptype production): Adjust for new create_array_type
2841 calling conventions.
2842 * coffread.c (decode_type): Call create_array_type rather than
2843 handcrafting array types.
2844 * convex-tdep.c (value_type): Remove, now use create_array_type.
2845 * convex-tdep.c (value_of_trapped_internalvar): Convert calls to
2846 vector_type into calls to create_array_type.
2847 * dwarfread.c (decode_subscr_data): Name changed to
2848 decode_subscript_data_item throughout.
2849 * dwarfread.c (decode_subscript_data_item): Rewrite to use
2850 create_array_type. Now records index type and range as well.
2851 * dwarfread.c (dwarf_read_array_type): Rewrite as part of
2852 change to use create_array_type.
2853 * dwarfread.c (read_subroutine_type): Test existing user defined
2854 types before decorating them, to ensure they are blank, and
2855 complain about it if they are not.
2856 * dwarfread.c (decode_fund_type): For unrecognized types, always
2857 return some valid type (type integer). If the unrecognized type
2858 cannot be an implementation defined type, complain as well.
2859 * m88k-tdep.c (pushed_size): Update comment for TYPE_CODE_ARRAY.
2860 * m88k-tdep.c (store_param): Update comment for TYPE_CODE_ARRAY.
2861 * mipsread.c (upgrade_type): Add FIXME comment that code to
2862 handcraft arrays should be replaced with call to create_array_type.
2863 * stabsread.c (read_array_type): Replace code to handcraft
2864 array types with call to create_array_type.
2865 * valprint.c (type_print_varspec_prefix): Minor formatting
2866 change, join lines that don't need to be split.
2867
01d1590b
SG
2868Mon Dec 14 17:18:42 1992 Stu Grossman (grossman at cygnus.com)
2869
fb29d681 2870 * convex-xdep.c, hppab-nat.c, infptrace.c: Remove
01d1590b
SG
2871 decl for attach_flag, it now lives in inferior.h.
2872 * hppa-pinsn.c: Reformat opcode tables. Add function prototypes.
2873 Make most functions static.
2874 * hppah-nat.c: General cleanups, remove BSD specific code (since
2875 that all lives in hppab-nat.c).
2876 * hppah-tdep.c (frame_chain_valid), tm-hppa.h (FRAME_CHAIN):
2877 Change sense of test against inside_entry_file(). This fix is
2878 from U. of Utah.
2879 * tm-hppa.h (PUSH_DUMMY_FRAME, POP_FRAME): Use char * for 2nd arg
2880 to read/write_register_bytes().
7f70a275
SG
2881 * gdbtypes.h: Remove const from decl for cplus_struct_default to
2882 work around PA-GAS assembler bug. Also, add trailing */ to some
2883 comments.
2884 * gdbtypes.c: Remove const from decl for cplus_struct_default.
2885 Same reason as above.
01d1590b 2886
b69d8432
JG
2887Wed Dec 9 19:53:25 1992 John Gilmore (gnu@cygnus.com)
2888
c8aac932
JG
2889 * mipsread.c (parse_symbol): When checking whether a structured
2890 type is an enum, check qualifiers of its first member, as well as
2891 the base type of the member. Bug found and fixed by John M.
01d1590b 2892 Farrell, <farrell@fjord.reo.dec.com>.
c8aac932 2893
b69d8432
JG
2894 * vx-share/{reg.h,xdr_regs.h,xdr_regs.c}: Remove, unused.
2895 * remote-vx.c: Don't include vx-share/reg.h.
2896 * vx-share/ptrace.h: Reproduce from scratch.
c8aac932 2897 * config/{vxworks68,vxworks960}: Don't include xdr_regs.o.
01d1590b
SG
2898 * Makefile.in: Remove references to removed files, and to removed
2899 29k-share directories.
b69d8432 2900
160be0de
FF
2901Tue Dec 8 13:30:58 1992 Fred Fish (fnf@cygnus.com)
2902
d62e7a20
FF
2903 * c-lang.c (_initialize_c_language): Name changed from
2904 _initialize_c_exp.
2905 * m2-lang.c (_initialize_m2_language): Name changed from
2906 _initialize_m2_exp.
2907 * m2-lang.c (_initialize_m2_language): Change malloc to xmalloc since
2908 it is no longer inside m2-exp.y, where it was remapped by Makefile.
22e39759
FF
2909 * c-exp.y, m2-exp.y: Migrate code that has nothing to do with
2910 expression parsing into c-lang.c and m2-lang.c respectively.
2911 * c-lang.c, m2-lang.c: New files, code migrated from c-exp.y and
2912 m2-exp.y respectively.
2913 * c-lang.h, m2-lang.h: New files, internal interfaces between c-*
2914 and m2-* files respectively.
2915 * Makefile.in (SFILES_MAINDIR): Add c-lang.c, m2-lang.c.
2916 * Makefile.in (HFILES): Add c-lang.h, m2-lang.h.
2917 * Makefile.in (OBS): Add c-lang.o, m2-lang.o.
2918 * expression.h (struct block): Forward declaration for prototypes.
2919 * language.h (struct objfile): Forward declaration for prototypes.
22e39759
FF
2920 * Makefile.in (SFILES_MAINDIR): Add ch-lang.c.
2921 * Makefile.in (HFILES): Add ch-lang.h.
2922 * Makefile.in (OBS): Add ch-lang.o.
2923 * ch-exp.y: Migrate code that has nothing to do with expression
2924 parsing into ch-lang.c.
2925 * ch-lang.c: New file, code migrated from c-exp.y.
2926 * ch-lang.h: New file, internal interface between ch-* files.
d62e7a20
FF
2927 * ch-lang.c (_initialize_chill_language): Name changed from
2928 _initialize_chill_exp.
22e39759 2929
160be0de
FF
2930 Changes for Amiga Unix from rhealey@ub.d.umn.edu.
2931 * config/amix.mh (NAT_FILE): Add, set to nm-sysv4.h.
2932 * config/amix.mh (NATDEPFILES): Add.
2933 * config/amix.mh (XDEPFILES): Move procfs.o and fork-child.o
2934 to NATDEPFILES.
2935
2936 * dwarfread.c (decode_subscr_data): Remove spurious test that
2937 accepted only integer subscript types. We don't do anything
2938 with the type at the moment anyway.
2939
aed656ba
FF
2940Fri Dec 4 06:56:56 1992 Fred Fish (fnf@cygnus.com)
2941
2942 * ch-exp.y (match_character_literal): Fix case where no
2943 match at all is found.
64e738a3
FF
2944 * ch-exp.y (chill_create_fundamental_type): Chill uses fixed
2945 width types. For example, "INT" is always 2 bytes regardless
2946 of the values of any TARGET_*_BIT macros. So use explicit
2947 numeric sizes for the types.
aed656ba 2948
bf229b4e
FF
2949Thu Dec 3 12:00:06 1992 Fred Fish (fnf@cygnus.com)
2950
2951 * c-exp.y (c_create_fundamental_type): New function to create
2952 language specific fundamental types for C.
2953 * m2-exp.y (m2_create_fundamental_type): New function to create
2954 language specific fundamental types for Modula 2.
2955 * c-exp.y (c_language_defn, cplus_language_defn): Add
2956 c_create_fundamental_type to language struct initializers.
2957 * m2-exp.y (m2_language_defn): Add m2_create_fundamental_type
2958 to language struct initializers.
2959 * dwarfread.c (expression.h, language.h): Include.
2960 * dwarfread.c (ftypes): New array to hold fundamental types
2961 for current compilation unit.
2962 * dwarfread.c (cu_language_defn): New pointer to language
2963 struct for language of current compilation unit.
2964 * dwarfread.c (dwarf_fundamental_type): New function to
2965 create/lookup fundamental types.
2966 * dwarfread.c (set_cu_language): Initialize cu_language_defn.
2967 * dwarfread.c (throughout): Replace lookup_fundamental_type
2968 with dwarf_fundamental_type.
2969 * dwarfread.c (read_file_scope): Zero out ftypes for each new
2970 compilation unit (may be different language or different objfile).
2971 * gdbtypes.c (lookup_fundamental_type): Move actual type
2972 creations into language specific fundamental type creation
2973 functions and call via create_fundamental_type. Add comment
2974 about this function being obsolescent.
2975 * gdbtypes.h (FT_BYTE, FT_UNSIGNED_BYTE): New types, true byte
2976 sized signed and unsigned integers.
2977 * gdbtypes.h (FT_NUM_MEMBERS): Increment, new types added.
2978 * language.c (language_def): New function to lookup a language
2979 struct given it's enumeration.
2980 * language.h (struct language_defn): Add la_fund_type, a pointer
2981 to a function that creates fundamental types for this language.
2982 * language.h (create_fundamental_type): New macro to create
2983 fundamental types based on the current language.
2984 * language.h (language_def): Add prototype.
2985 * language.c (unk_lang_create_fundamental_type): New function
2986 for initializing language structs, calls error if called.
2987 * language.c (unk_language_defn, auto_language_defn,
2988 local_language_defn): Use unk_lang_create_fundamental_type.
bf229b4e
FF
2989 ch-exp.y (chill_create_fundamental_type): New function.
2990 ch-exp.y (chill_language_defn): Add chill_create_fundamental_type.
2991 ch-exp.y (_initialize_chill_exp): BOOL types are only one byte.
bf229b4e 2992
93bb6e65
FF
2993Tue Dec 1 17:07:31 1992 Fred Fish (fnf@cygnus.com)
2994
2995 * dwarfread.c (CHILL_PRODUCER): Add producer string for
2996 GNU chill.
2997 * dwarfread.c (handle_producer): Test CHILL_PRODUCER as well
2998 as GCC_PRODUCER and GPLUS_PRODUCER.
93bb6e65 2999
7c86126f
SG
3000Mon Nov 30 18:46:58 1992 Stu Grossman (grossman at cygnus.com)
3001
3002 * remote-udi.c (udi_wait): Don't stop if TIP says that remote is
3003 still running.
3004
394171ac
FF
3005Mon Nov 30 12:00:25 1992 Fred Fish (fnf@cygnus.com)
3006
3007 * tm-sun4sol2.h: Add CPLUS_MARKER. Solaris 2.0 requires '.'
3008 rather than '$'. This particular piece of braindamage is
3009 spreading like ooze. It's now infected libiberty, deja-gnu,
3010 gdb, and gcc.
3011 * values.c (baseclass_addr): Use CPLUS_MARKER rather than
3012 hardwired '$' character.
3013
e7177cc2 3014Sun Nov 29 15:22:42 1992 Fred Fish (fnf@cygnus.com)
cbd1bdc3 3015
e7177cc2
FF
3016 (Changes to break incredibly ugly, unmaintainable 750 line
3017 read_struct_type function up into managable pieces.)
b076b3f8 3018 * Makefile.in (VERSION): Bump to 4.7.3.
e7177cc2
FF
3019 * stabsread.c (struct field_info): Local struct definition.
3020 * stabsread.c (read_member_functions, read_struct_fields,
3021 read_baseclasses, read_tilde_fields, attach_fn_fields_to_type,
3022 attach_fields_to_type, read_cpp_abbrev): Prototypes and new
3023 functions from fragmented read_struct_type.
3024 * stabsread.c (stabs_general_complaint): Catchall complaint.
3025 * stabsread.c (STABS_CONTINUE): Macro'ize cretinous stabs
3026 symbol name continuation code. Use macro throughout.
3027 * stabsread.c (various places): Replace add-one-to-pointer
3028 with pointer increment.
3029 * stabsread.c (read_type): Retain function local copy of type
3030 descriptor. Rearrange code calling read_struct_type() to match
3031 new conventions.
94daba7f
FF
3032 * stabsread.c (define_symbol): For the sake of dbx, gcc emits
3033 a single blank as the name of nameless enumerations. Recognize
3034 this special case and set nameless flag.
cbd1bdc3
FF
3035 * ch-exp.y (GENERAL_PROCEDURE_NAME, LOCATION_NAME): New
3036 terminal tokens.
3037 * ch-exp.y (access_name): New non-terminal token and
3038 production.
3039 * ch-exp.y (general_procedure_name): Now a terminal token.
3040 * ch-exp.y (location): Expand production.
3041 * ch-exp.y (match_simple_name_string): New function.
3042 * ch-exp.y (yylex): Call match_simple_name_string and return
3043 GENERAL_PROCEDURE_NAME or LOCATION_NAME as appropriate.
cbd1bdc3 3044
d1065385
FF
3045Wed Nov 25 07:17:13 1992 Fred Fish (fnf@cygnus.com)
3046
b9b6dbc2
FF
3047 * munch: Backslash escape vertical bar characters inside
3048 grep patterns since they have special meaning for some greps.
d1065385
FF
3049 * parse.c (write_exp_string): Complete rewrite to store string
3050 contants as a leading explicit length, followed by the string data,
3051 followed by a trailing explicit length.
3052 * eval.c (evaluate_subexp), expprint.c (print_subexp),
3053 parse.c (length_of_subexp), parse.c (prefixify_subexp):
3054 Use recorded explicit length of strings in expression elements,
3055 rather than strlen. Adjust code to skip over strings stored in
3056 expression elements, and code to access strings, to account for
3057 new leading explicit size expression element.
3058 * parse.c (length_of_subexp): Test for minimum endpos of 1, not
3059 0, to avoid negative expression element indices.
3060 * valops.c (search_struct_method): Minor whitespace change.
3061
5707ea9f
FF
3062Mon Nov 23 11:14:15 1992 Fred Fish (fnf@cygnus.com)
3063
bac89d6c
FF
3064 * c-exp.y (yylex): Add tempbuf, tempbufindex, and tempbufsize,
3065 which together maintain a dynamically expandable static buffer
3066 for the lexer to use when translating C strings to their internal
3067 form (other future uses possible). Fix parsing of C style strings
3068 to do the normal C style input conversions of escaped character
3069 sequences.
3070 * valops.c (value_string): Remove translation of escaped
3071 character sequences, now done in C expression parser.
5707ea9f
FF
3072 * language.h (PRINT_LITERAL_FORM): New macro that takes character
3073 and decides if it should be printed in literal form or some other
3074 form, based on it's ASCII value and setting of sevenbit_strings.
3075 * {c-exp.y, m2-exp.y} (emit_char): Use new PRINT_LITERAL_FORM
3076 macro, change indentation style.
5707ea9f
FF
3077 * ch-exp.y (chill_printchar): Use new PRINT_LITERAL_FORM macro.
3078 * ch-exp.y (chill_printstr): First cut at real function instead
3079 of error stub.
5707ea9f 3080
36e0df23
DZ
3081Sun Nov 22 16:21:41 1992 david d `zoo' zuhn (zoo at cirdan.cygnus.com)
3082
3083 * nindy-share/stop.h: fixed bogus comment-end in copyright message
3084
3085 * i960-pinsn.c: fixed two calls of fputs_filtered that had 3 arguments
3086
5d074aa9
FF
3087Fri Nov 20 21:35:57 1992 Fred Fish (fnf@cygnus.com)
3088
3089 * defs.h (sevenbit_strings): Add declaration.
3090 * defs.h (printchar): Replace with gdb_printchar.
3091 * language.h (language_defn): Add new function pointers
3092 la_printchar and la_printstr, to do language dependent
3093 printing of characters and strings.
3094 * language.h (local_printchar, local_printstr): New macros
3095 to call language dependent functions pointed to by la_printchar
3096 and la_printstr respectively.
3097 * c-exp.y (emit_char, c_printchar, c_printstr): New language
3098 dependent functions for printing characters and strings.
3099 * c-exp.y (c_language_defn, cplus_language_defn): Add
3100 c_printchar and c_printstr.
3101 * command.c (do_setshow_command): Rename printchar use to
3102 gdb_printchar.
3103 * expprint.c (print_subexp): Replace C style string output
3104 with call to local_printstr.
3105 * language.c (unk_lang_printchar, unk_lang_printstr):
3106 New stubs, currently errors.
3107 * language.c (unknown_language_defn, auto_language_defn,
3108 local_language_defn): Add unk_lang_printchar and
3109 unk_lang_printstr.
3110 * m2-exp.y (emit_char, m2_printchar, m2_printstr): New
3111 language dependent functions to print characters and strings.
3112 * m2-exp.y (m2_language_defn): Add m2_printchar and m2_printstr.
3113 * utils.c (printchar): Renamed to gdb_printchar.
3114 * valprint.c (print_string): Remove prototype, function moved
3115 to c-exp.y, where it becomes c_printstr.
3116 * valprint.c (print_max): Made global for reference from the
3117 language dependent printing routines in *-exp.y.
3118 * valprint.c (repeat_count_threshold): New variable with function
3119 of old REPEAT_COUNT_THREHOLD define, but now settable by user.
3120 Change all references to old macro to references to new variable.
3121 * valprint.c (value_print, val_print): Replace calls to
3122 print_string with calls to local_printstr.
3123 * valprint.c (val_print): Replace C style character printing
3124 with call to local_printchar.
3125 * valprint.c (val_print): Add case for TYPE_CODE_CHAR.
3126 * valprint.c (_initialize_valprint): Add add_show_from_set
3127 call for setting up repeat_count_threshold as print variable.
5d074aa9
FF
3128 * ch-exp.y (decode_integer_value): New function.
3129 * ch-exp.y (decode_integer_literal): Use decode_integer_value.
3130 * ch-exp.y (chill_printchar, chill_printstr): New language
3131 dependent functions for printing characters and strings.
3132 * ch-exp.y (chill_language_defn): Add chill_printchar and
3133 chill_printstr.
5d074aa9 3134
b0944a33
JG
3135Thu Nov 19 21:22:21 1992 John Gilmore (gnu@cygnus.com)
3136
3137 * main.c (main): Print GDB version number in gdb -help; doc pid arg.
3138 Suggested by Marty Leisner, <leisner@eso.mc.xerox.com>.
3139 (print_gdb_version): New arg is stdout or stderr. Callers changed.
3140
195b44d9
ILT
3141Wed Nov 18 15:05:45 1992 Ian Lance Taylor (ian@cygnus.com)
3142
3143 * remote-vx.c (vx_kill): just warn if we can't contact the board,
3144 and assume the process has been killed.
3145
2104007f
SG
3146Wed Nov 18 14:39:57 1992 Stu Grossman (grossman at cygnus.com)
3147
2104007f
SG
3148 * remote-udi.c (udi_open): Reset vars so that user can re-run
3149 programs without leaving GDB.
3150 * (many routines): Slightly improve error handling.
3151 * (download): Zero out BSS by longs instead of bytes to avoid
3152 timeouts in real hardware.
3153 * 29k-share/udi/udip2soc.c (UDIDisconnect, UDIKill): Indicate
3154 that connection is no longer in use after shutdown() of socket.
3155 This keeps GDB from dying of a SIGPIPE when you issue multiple
3156 `target udi' commands.
3157
2e66cf7d
FF
3158Wed Nov 18 14:27:47 1992 Fred Fish (fnf@cygnus.com)
3159
3160 * language.h (language_format_info): New structure to bundle
3161 local formatting information.
3162 * language.h (language_defn): Replace individual format info
3163 with language_format_info structs.
3164 * language.h (local_*_format, local_*_format_prefix,
3165 local_*_format_specifier, local_*_format_suffix): New macros
3166 for binary/octal/decimal/hex formats to access info elements.
3167 * c-exp.y (c_language_defn): Update for new format handling.
3168 * m2-exp.y (m2_language_defn): Update for new format handling.
3169 * dbxread.c (language.h): Include for partial-stab.h use.
5d074aa9
FF
3170 * mipsread.c (expression.h, language.h): Include for
3171 partial-stab.h use.
2e66cf7d
FF
3172 * defs.h (local_hex_format, local_hex_format_custom,
3173 local_hex_string, local_hex_string_custom): Move to language.h.
3174 * language.c (local_hex_format_custom, local_hex_string,
3175 local_hex_string_custom, local_octal_format_custom): Use new
3176 format handling.
3177 * language.c (unknown_language_defn, auto_language_defn,
3178 local_language_defn): Update for new format handling.
3179 * printcmd.c (print_scalar_formatted): Use new macros
3180 to access decimal and binary format info for printing.
2e66cf7d
FF
3181 * c-exp.y (chill_language_defn): Update for new format handling.
3182 * ch-exp.y (CHARACTER_LITERAL): Add support to yylex.
5d074aa9
FF
3183 * ch-exp.y (decode_integer_literal): Add function
3184 * ch-exp.y (match_integer_literal): Use decode_integer_literal.
2e66cf7d
FF
3185 * ch-exp.y (builtin_type_chill_char): Add definition.
3186 * gdbtypes.h (builtin_type_chill_char): Add declaration.
2e66cf7d 3187
cdb1cc92
ILT
3188Tue Nov 17 11:17:06 1992 Ian Lance Taylor (ian@cygnus.com)
3189
3190 * tm-rs6000.h (BELIEVE_PCC_PROMOTION): Define, since AIX cc gets
3191 it right.
3192 (aix_framedata): added nosavedpc field.
3193 (SAVED_PC_AFTER_CALL): Don't try to optimize; just call
3194 read_register.
3195 (FRAMELESS_FUNCTION_INVOCATION): Pass second argument of 0.
3196 (FRAME_SAVED_PC): If PC not saved, use SAVED_PC_AFTER_CALL.
3197 * rs6000-tdep.c (skip_prologue): Handle gcc generated stfd
3198 instructions as function_frame_info does. Expand special case of
3199 st r31,-4(r1) to be st r31,NUM(r1), since gcc can generate offsets
3200 other than -4.
3201 (pop_frame): Add 4 rather than sizeof (int) to avoid host
3202 dependence.
3203 (function_frame_info): Set frameless if the function has no frame,
3204 and set nosavedpc if the PC was not saved. Handle gcc generated
3205 stfd 31,-4(31); st 31, -12(31) correctly.
3206 (frameless_function_invocation): New second argument pcsaved; if 0
3207 return whether the function has a frame, if 1 return whether the
3208 function saved PC.
3209 (frame_initial_stack_address): Correct typo: cache registers for
3210 callee_fi, not for fi, (avoids reading garbage memory locations).
3211
b638ca91
SG
3212Mon Nov 16 15:58:07 1992 Stu Grossman (grossman at cygnus.com)
3213
cdb1cc92
ILT
3214 * infrun.c (wait_for_inferior (just before step_over_function
3215 label)): Change test for stepping into subroutine to check for the
3216 presence of line number info. This makes stuff compiled with -g1
3217 cause GDB to not lose control when stepping.
3218
b638ca91
SG
3219 * symtab.c (find_pc_line): Improve code per gnu's suggestions.
3220 Improve comments as well.
3221
e58de8a2
FF
3222Sun Nov 15 09:22:09 1992 Fred Fish (fnf@cygnus.com)
3223
45a655b0
FF
3224 * Makefile.in (VERSION): Bump to 4.7.2
3225 * symtab.c (find_pc_symtab): Fix return of random value
3226 to caller.
e58de8a2
FF
3227 * Makefile.in (c-exp.tab.c, m2-exp.tab.c): Add dependency on
3228 Makefile since it contains sed patterns used in generation.
3229 Add sed pattern to also delete #include of any malloc.h.
e58de8a2
FF
3230 * c-exp.y, expr.c, expression.h, language.c, m2-exp.y,
3231 parser-defs.h, valarith.c, valops.c, value.h: Remap macros and
3232 function names to conform to K&R terminology with respect to
3233 logical and bitwise operators:
3234 UNOP_ZEROP => UNOP_LOGICAL_NOT
3235 UNOP_LOGNOT => UNOP_COMPLEMENT
3236 BINOP_LOGAND => BINOP_BITWISE_AND
3237 BINOP_LOGXOR => BINOP_BITWISE_XOR
3238 BINOP_LOGIOR => BINOP_BITWISE_IOR
3239 BINOP_AND => BINOP_LOGICAL_AND
3240 BINOP_OR => BINOP_LOGICAL_OR
3241 PREC_OR => PREC_LOGICAL_OR
3242 PREC_AND => PREC_LOGICAL_AND
3243 PREC_LOGIOR => PREC_BITWISE_IOR
3244 PREC_LOGXOR => PREC_BITWISE_XOR
3245 PREC_LOGAND => PREC_BITWISE_AND
3246 value_zerop() => value_logical_not()
3247 value_lognot() => value_complement()
3248 * c-exp.y (c_op_print_tab): Add explicit empty terminator.
3249 * m2-exp.y (m2_op_print_tab): Add explicit empty terminator.
19cfe25d
FF
3250 * i387-tdep.c (sys/dir.h): Remove, appears to be unnecessary
3251 and is nonexistant in some SVR4 based systems.
3252 * language.c (DEFAULT_ALLOCSIZE): Change from 3 => 4.
3253 * m2-exp.y (number_sign, modblock): Make static, #ifdef out
3254 unused modblock.
3255 * m2-exp.y (ANDAND): Rename to LOGICAL_AND.
3256 * source.c (source_info): Fix minor nits, print "1 line" rather
3257 than "1 lines", and "language is <lang>".
3258 * valarith.c (value_binop): Handle TYPE_CODE_BOOL as well
3259 as TYPE_CODE_INT and TYPE_CODE_FLOAT.
3260 * valprint.c (val_print): Print TYPE_CODE_BOOL type values as
3261 "TRUE" or "FALSE".
3262 * values.c (value_from_longest): Handle TYPE_CODE_BOOL.
19cfe25d 3263 * ch-exp.y: New expression parser, for GNU-Chill.
e58de8a2
FF
3264 * defs.h (enum language): Add language_chill.
3265 * dwarfread.c (set_cu_language): Add LANG_CHILL case and make
3266 LANG_MODULA2 a recognized language.
e58de8a2
FF
3267 * gdbtypes.h (enum_typecode): Note TYPE_CODE_BOOL used for
3268 Chill as well as Modula-2.
3269 * gdbtypes.y (builtin_type_chill_bool, builtin_type_chill_long,
3270 builtin_type_chill_ulong, builtin_type_chill_real): Add.
e58de8a2
FF
3271 * language.c (set_language_command): Add chill.
3272 * language.c (binop_result_type, integral_type, character_type,
3273 boolean_type, structured_type, value_true, binop_type_check):
3274 Add language_chill cases.
3275 * language.h (_LANG_chill): Define.
e58de8a2
FF
3276 * symfile.c (deduce_language_from_filename): Recognize the
3277 filename extensions ".chill", ".c186", and ".c286" for Chill.
e58de8a2 3278 * valprint.c (typedef_print): Add case for language_chill.
19cfe25d
FF
3279 * Makefile.in (SFILES_MAINDIR): Add ch-exp.y.
3280 * Makefile.in (YYFILES): Add ch-exp.tab.c.
3281 * Makefile.in (YYOBJ): Add ch-exp.tab.o.
3282 * Makefile.in (saber_gdb): Add unload of ch-exp.y and load
3283 of ch-exp.tab.c.
3284 * Makefile.in (distclean): Add target ch-exp.tab.c.
3285 * Makefile.in (realclean): Add rm of ch-exp.tab.c.
3286 * Makefile.in (ch-exp.tab.o, ch-exp.tab.c): New targets.
3287 * eval.c (evaluate_subexp): Add OP_BOOL case.
3288 * expprint.c (print_subexp): Add OP_BOOL case.
e58de8a2 3289
cbf15d9a
JG
3290Fri Nov 13 20:36:28 1992 John Gilmore (gnu@cygnus.com)
3291
3292 * infcmd.c (set_environment_command): Avoid skipping first
3293 char of env value if an '=' appears in it. Bug report and fix
3294 by Mark Jungerman, <maj@lucid.com>.
3295
c1878f87
SG
3296Fri Nov 13 20:24:10 1992 Stu Grossman (grossman at cygnus.com)
3297
3298 * infcmd.c (step_over_calls): Improve comments.
3299 * symtab.c (find_pc_psymtab): Clean up a bit.
3300 * (find_pc_symtab): Fix comments, clean up code.
3301 * (find_pc_line): General cleanups, efficiency improvements.
3302 Also, don't return garbage when some line info exists, but there
3303 was no good match.
3304
cbf15d9a
JG
3305Thu Nov 5 23:04:38 1992 Rob Ryan (rr2b@andrew.cmu.edu)
3306
3307 * xcoffexec.c (vmap_symtab): fixed a bug where if a object has no
3308 member, and the stat pointer passed to vmap_symtab was NULL, the
3309 wrong vmap entries would be modified. Fixes behavior where
3310 attempting to load symbols for a module with no member would mess
3311 up already read in symbols.
3312
b6113cc4
SG
3313Wed Nov 11 17:09:17 1992 Stu Grossman (grossman at cygnus.com)
3314
3315 * Makefile.in: Remove dependancies for 29k-share/dfe/yank.o and
3316 29k-share/dfe/mini2udi.o.
3317 * config/a29k-udi.mt: Remove yank.o and mini2udi.o.
3318 * alldeps.mak, depend: Update to deal with removal of
3319 aforementioned files.
3320 * remote-udi.c: Major cleanups. Clean up udi_open and drop
3321 requirement for useless 'program' argument. Clean up
3322 udi_create_inferior, and udi_load to call common download()
3323 routine. Create download routine to load remote hosts directly
3324 (with the help of BFD) so that we don't need yank.c and
3325 mini2udi.c.
3326 Fix udi_detach to call UDIDisconnect with
3327 the right arguments. Clean up udi_resume, don't assign tip_error
3328 twice. Clean up udi_wait, straighten out status codes. Make
3329 udi_kill really work.
3330
3331Fri Nov 6 10:26:01 1992 Steve Chamberlain (sac@thepub.cygnus.com)
3332
3333 * c-exp.y: separated host/target idea of integer type size,
3334 removed redundant parse rules. (YYSTYPE): added typed_val, removed
3335 UINT and CHAR rules. (parse_number): work out the targetwise type
3336 of a number based upon it's size and qualifiers. (yylex): chars
3337 are now treated the same way as ints.
3338
3339 * source.c (indentify_source_line): don't core dump if wanted
3340 line is larger than number of lines in source. (can happen when
3341 coff gets confused about #included source).
3342
59c84bd8
JG
3343Fri Nov 6 03:00:39 1992 John Gilmore (gnu@cygnus.com)
3344
3345 Fix problems noticed by Allan Steel, <allan@maths.su.oz.au>,
3346 when debugging a program with 100 shared libraries.
3347
3348 * solib.c (solib_map_sections): Always close the BFD we open.
3349 Free all malloc'd storage we allocate, too, including error cases.
3350 (struct so_list): Remove unused so_bfd member.
3351 (clear_solib): Don't bother closing so_bfd.
3352
3353 * symfile.c (symfile_bfd_open): Mark newly opened BFD as
3354 cacheable. `So many symbol files, so little file descriptors.'
3355
8a96d79b
JG
3356Fri Nov 6 00:14:38 1992 John Gilmore (gnu@cygnus.com)
3357
3358 * m68k-stub.c: Remove ansidecl.h and the few uses of it.
3359 Stubs should stand alone as much as possible.
3360
3361 * source.c (show_directories): Avoid printf_filtered length prob
3362 pointed out by Jonathan Stone.
3363
3364 * i960-pinsn.c (MEM_MAX, MEM_SIZ): Set upper limit properly to
3365 avoid accesses beyond end of table. Fix by Lee W. Cooprider,
3366 <Lee_Cooprider@vos.stratus.com>.
3367
402dca80
FF
3368Thu Nov 5 17:33:08 1992 Fred Fish (fnf@cygnus.com)
3369
3370 * {ser-bsd.c, ser-termios.c} (serial_close): Pass address of
3371 struct, not struct itself.
3372 * serial.h (serial_restore): Fix prototype, takes pointer not
3373 struct.
3374
2352d20b
SG
3375Thu Nov 5 17:12:42 1992 Stu Grossman (grossman at cygnus.com)
3376
3377 * Makefile.in (depend): Add nm.h to the list of things to fixup.
3378 * depend: Redo, to fixup nm.h problems with *-tab.c files.
3379
61f55ca3
JG
3380Thu Nov 5 00:19:51 1992 John Gilmore (gnu@cygnus.com)
3381
042bf84c
JG
3382 * i386-stub.c: Remove ansidecl.h and the few uses of it.
3383 Stubs should stand alone as much as possible.
3384
61f55ca3
JG
3385 * README: Add remote-es1800.c and remote-st2000.c to table.
3386 * go32-nat.c: Remove, there is no native go32 support.
3387 * go32-xdep.c: Remove unused fork, fvork, wait, execlp, kill_inferior.
3388
740b7efa
SG
3389Wed Nov 4 15:27:31 1992 Stu Grossman (grossman at cygnus.com)
3390
1549918a
SG
3391 * inflow.c (pass_signal, set_sigint_trap, clear_sigint_trap): Add
3392 new routines to deal with sending SIGINTs to attached processes
3393 when the user interrupts the controlling GDB.
3394 * inftarg.c (child_wait), procfs.c (procfs_wait): Add calls to
3395 the aforementioned routines when waiting for the attached process.
3396
740b7efa
SG
3397 * elfread.c, mipsread.c: Include <string.h>.
3398 * i386-stub.c: Include "ansidecl.h" to deal with prototypes.
3399 * serial.h: Add prototype for serial_restore().
3400
a521e93a
ILT
3401Wed Nov 4 11:13:25 1992 Ian Lance Taylor (ian@cygnus.com)
3402
3403 * minsyms.c (lookup_minimal_symbol_by_pc): subtract 1, not 2, from
3404 minimal_symbol_count, because the NULL symbol is not included in
3405 the count. This prevented this function from finding the last
3406 symbol in the table.
3407
b1fbbed4
ILT
3408Tue Nov 3 11:29:17 1992 Ian Lance Taylor (ian@cygnus.com)
3409
3410 * dbxread.c (process_one_symbol): if not defined
3411 (BLOCK_ADDRESS_FUNCTION_RELATIVE), set function_start_offset at
3412 the start of the function, not just after N_FUN.
3413
3414Fri Oct 30 16:33:02 1992 Fred Fish (fnf@cygnus.com)
e35843d4
FF
3415
3416 * Makefile.in (c-exp.tab.c, m2-exp.tab.c): Add sed patterns to
3417 remap all malloc's to xmalloc's and all realloc's to xrealloc's.
3418 * c-exp.y, m2-exp.y: Add comment about how malloc/realloc are
3419 remapped to xmalloc/xrealloc, use only malloc/realloc in grammer
3420 file. Remove preprocessor defines that previously did remapping.
3421
61f55ca3
JG
3422Fri Oct 30 00:58:18 1992 John Gilmore (gnu@cygnus.com)
3423
3424 * infcmd.c (run_command): Avoid long calls to printf_filtered.
3425 Bug fix courtesy of Alexander Klaiber.
3426
851fffcf
RP
3427Tue Oct 27 17:08:45 1992 K. Richard Pixley (rich@cygnus.com)
3428
b1de302a
RP
3429 hp300 native support (hp300hpux untested).
3430
3431 * hp300ux-xdep.c: removed.
3432 * xm-hp300bsd.h (REGISTER_U_ADDR): removed.
3433 * xm-hp300hpux.h: updated copyright.
3434 (ATTACH_DETACH, FETCH_INFERIOR_REGISTERS): removed.
3435 * nm-hp300bsd.h, nm-hp300hpux.h, hp300ux-nat.c: new files.
3436 * Makefile.in (HFILES): added nm-hp300bsd.h and nm-hp300hpux.h.
3437 * config/hp300bsd.mh (XDEPFILES): removed infptrace.o inftarg.o
3438 fork-child.o coredep.o corelow.o.
3439 (NAT_FILE, NATDEPFILES): new macros.
3440 * config/hp300bsd.mt (TDEPFILES): removed exec.o.
3441 * config/hp300hpux.mh (XDEPFILES): removed infptrace.o inftarg.o
3442 fork-child.o.
3443 (NAT_FILE, NATDEPFILES): new macros.
3444 * config/hp300hpux.mt (TDEPFILES): removed exec.o.
3445
7aae0974
RP
3446 Vax ultrix native support.
3447
3448 * nm-vax.h: new file.
3449 * Makefile.in (HFILES): added nm-vax.h.
3450 * config/vaxult.mh (XDEPFILES): infptrace.o inftarg.o fork-child.o
3451 coredep.o corelow.o removed.
3452 (NAT_FILE, NATDEPFILES): new macros.
3453 * xm-vax.h: updated copyright.
3454 (REGISTER_U_ADDR): removed.
3455
5c9bbfe6
RP
3456 Apollo native support (untested).
3457
124a6fc0 3458 * Makefile.in (HFILES): added nm-apollo68[bv].h.
5c9bbfe6
RP
3459 * a68v-nat.c, nm-apollo68[bv].h: new files.
3460 * xm-apollo68[bv].h (FETCH_INFERIOR_REGISTERS): removed.
3461 * xm-apollo68b.h (PTRACE_IN_WRONG_PLACE): removed.
3462 * a68v-xdep.c: removed.
3463 * config/apollo68[bv].mh (XDEPFILES): removed infptrace.o
3464 inftarg.o fork-child.o a68v-xdep.o.
3465 (NAT_FILE, NATDEPFILES): new macros.
3466
851fffcf
RP
3467 * defs.h: include nm.h.
3468 * coredep.c, infptrace.c, procfs.c, rs6000-nat.c, sparc-nat.c,
3469 sparc-tdep.c, : do not include nm.h.
3470 * doc/gdbint.texinfo: nm.h now included in defs.h.
3471
451df680
SG
3472Fri Oct 23 04:47:17 1992 Stu Grossman (grossman at cygnus.com)
3473
bccaecc6
SG
3474 * Makefile.in (VERSION): 4.7.1 post release!
3475
451df680
SG
3476 * config/hppahpux.mh (NATDEPFILES): Add hppah-nat.o.
3477
c50c5197
JG
3478Fri Oct 23 00:48:08 1992 John Gilmore (gnu@cygnus.com)
3479
3480 * Makefile.in (VERSION): gdb-4.7 release.
3481 * README: Update for gdb-4.7.
3482
db5b1f90
SG
3483Thu Oct 22 11:24:18 1992 Stu Grossman (grossman at cygnus.com)
3484
ee22c7f0
SG
3485 * sparc-tdep.c: include nm.h (for now) so that we get USE_PROC_FS
3486 when necessary.
3487
db5b1f90
SG
3488 * alldeps.mak, depend: Update.
3489
fef84cc4
JG
3490Thu Oct 22 03:14:36 1992 John Gilmore (gnu@cygnus.com)
3491
3492 * partial-stab.h ('f', 'F'): Don't reference pst->textlow if pst
3493 is null.
3494 * tm-sun4sol2.h (PROLOGUE_FIRSTLINE_OVERLAP): Remove -- it
3495 causes problems in setting breakpoint in the right place in
3496 functions with `float' args which are passed as doubles.
3497 * xm-vaxbsd.h (MEM_FNS_DECLARED): Avoid erroneous redecl's.
3498 * config/rs6000.mh (NATDEPFILES): Add corelow.o.
3499
603900c7
SG
3500Thu Oct 22 01:01:24 1992 Stu Grossman (grossman at cygnus.com)
3501
3502 * Makefile.in (HFILES): Add nm-i386sco.h.
3503 * dwarfread.c: include <sys/types.h> for SCO.
3504 * infptrace.c: Don't include ptrace.h under SCO.
3505 * config/i386sco.mh: Use -D_POSIX_SOURCE instead of -posix for
3506 gcc.
3507 * config/i386v.mt: Add exec.o to TDEPFILES.
3508
3496b745
SG
3509Wed Oct 21 19:08:20 1992 Stu Grossman (grossman at cygnus.com)
3510
3511 * i386v-nat.c: Remove space from front of #endif.
3512 * irix4-nat.c: Remove externs of registers[], include inferior.h
3513 instead.
3514 * mips-nat.c: Explicitly initialize zerobuf to 0!
3515 * mips-tdep.c (init_extra_frame_info): Undo John's last change.
3516 Always setup fci->frame, even if it's non-zero. Too many places
3517 depend upon this behavior (and I have to get a release out the
3518 door)!
3519 * mipsread.c (parse_partial_symbols, psymtab_to_symtab_1): Set
3520 processing_gcc_compilation if we find the embedded stabs marker.
3521 This fixes several bugs with finding the location of short or char
3522 function parameters passed on the stack.
3523
99ef5653
RP
3524Wed Oct 21 17:46:07 1992 K. Richard Pixley (rich@sendai.cygnus.com)
3525
3526 Native support for sun4sol2.
3527
3528 * xm-sysv4.h (USE_PROC_FS, ATTACH_DETACH): removed to nm-sysv4.h.
3529 * nm-sysv4.h: new file.
3530 * Makefile.in (HFILES): added nm-sysv4.h.
3531 * config/sun4sol2.mh (XDEPFILES): removed procfs.o fork-child.o.
3532 (NAT_FILE, NATDEPFILES): new macros.
3533 * config/sun4sol2.mt (TDEPFILES): removed exec.o and solib.o.
3534
e4db3f3e
JG
3535Wed Oct 21 03:51:01 1992 John Gilmore (gnu@cygnus.com)
3536
0a2a48a2
JG
3537 * coredep.c: Include "nm.h" to get REGISTER_U_ADDR.
3538 * doc/gdbint.texinfo: Improve REGISTER_U_ADDR and USE_PROC_FS doc.
3539
e4db3f3e
JG
3540 * Makefile.in (VERSION): Tick to 4.6.9.
3541
3542Tue Oct 20 23:27:56 1992 John Gilmore (gnu@cygnus.com)
3543
3544 * mipsread.c (UNSAFE_DATA_ADDR): Remove MIPS-host-specific
3545 definition, replace with portable one.
3546 * remote-nindy.c: Lint.
3547 (nindy_wait): Return type is int, result is inferior_pid.
3548 * symmisc.c (dump_psymtab): Only print section_offsets if set.
3549 (initialize_symmisc): Remove empty function.
3550 * tm-spc-noun.h, tm-sun4os4.h, tm-sun4sol2.h (STACK_END_ADDRESS):
3551 Remove obsolete, misspelled macro.
3552 * doc/gdbint.texinfo: Document obsolete STACK_END_ADDR.
3553 (all @node commands): Use new form to avoid nitpicking errors.
3554 * doc/gdbint.texinfo: Document host/native/target split.
3555
ce5489d2
SG
3556Wed Oct 21 00:14:34 1992 Stu Grossman (grossman at cygnus.com)
3557
e0e91077
SG
3558 * mips-nat.c (zerobuf): Get rid of const to avoid gcc warnings.
3559
ce5489d2
SG
3560 * xm-mips.h (offsetof): Don't define this if __STDC__.
3561
ca048722
RP
3562Tue Oct 20 21:32:18 1992 K. Richard Pixley (rich@sendai.cygnus.com)
3563
3fcb9021
RP
3564 umax native support (untested).
3565
3566 * config/umax.mh (XDEPFILES): removed infptrace.o inftarg.o
3567 fork-child.o.
3568 (NAT_FILE, NATDEPFILES): new macros.
3569 * config/umax.mt (TDEPFILES): removed exec.o.
3570 * xm-umax.h (U_REGS_OFFSET, ATTACH_DETACH, REGISTER_U_ADDR):
3571 removed to nm-umax.h.
3572 * nm-umax.h: new file.
3573 * Makefile.in (HFILES): added nm-umax.h.
3574
ca048722
RP
3575 hppa native support (untested).
3576
3577 * config/hppahpux.mh, config/hppabsd.mh (XDEPFILES): now empty.
3578 (NAT_FILE, NATDEPFILES): new macros.
3579 * config/hppabsd.mt (TDEPFILES): removed exec.o and hppab-core.o.
3580 * config/hppahpux.mt (TDEPFILES): removed exec.o.
3581 * xm-hppa[bh].h (REGISTER_U_ADDR, U_REGS_OFFSET): removed.
3582 * nm-hppa[bh].h, hppa[bh]-nat.c: new files.
3583 * hppa[bh]-xdep.c: removed.
3584 * hppa[bh]h-tdep.c: do not include ptrace.h.
3585 * Makefile.in (HFILES): added nm-hppa[bh].h.
3586
3587 * doc/gdbint.texinfo: add PUSH_DUMMY_FRAME, POP_FRAME.
3588
2675499b
SG
3589Tue Oct 20 00:01:46 1992 Stu Grossman (grossman at cygnus.com)
3590
3591 * mips-nat.c: Straighten out include files. Work around
3592 conflicting defs of JB_xxx syms in <setjmp.h> and <machine/pcb.h>
3593 for Ultrix-4.2.
3594
d95eb930
SG
3595Mon Oct 19 15:09:57 1992 Stu Grossman (grossman at cygnus.com)
3596
56fc16c7
SG
3597 * mips-nat.c (fetch_core_registers, register_addr): Copy from
3598 coredep.c, but zero out FP_REGNUM & ZERO_REGNUM so that stack
3599 backtraces from core files work.
3600 * config/decstation.mh, config/irix3.mh: Remove coredep.o.
3601 Functions are now defined in mips-nat.c.
3602
3603 * tm-irix3.h: Put MIPS_EFI_SYMBOL_NAME in here too.
3604
3ec5a74b
SG
3605 * remote-hms.c: Disable all uses of serial_nextbaudrate and
3606 serial_default_name().
3607
5a6242dd
SG
3608 * remote-hms.c, ser-go32.c, serial.h: Change from
3609 serial_timedreadchar() to new serial_readchar().
3610
d95eb930
SG
3611 * Makefile.in (HFILES): Fixup list of nm-*.h files. Add missing ones.
3612
10a297b7
PB
3613Mon Oct 19 12:45:23 1992 Per Bothner (bothner@cygnus.com)
3614
3615 * c-exp.y: Moved handling of 'const' and 'volatile' from
3616 <type> to <typebase>. This removes 2 conflicts.
3617
e6efef9f
FF
3618Sun Oct 18 00:36:30 1992 Fred Fish (fnf@cygnus.com)
3619
3620 * breakpoint.c (breakpoint_re_set_one): Don't delete watchpoints
3621 from breakpoint table when reseting breakpoints.
3622
4d0eabff
FF
3623Sat Oct 17 00:59:23 1992 Fred Fish (fnf@cygnus.com)
3624
3625 Native support cleanup and corefile fixes for i386 SVR4 systems.
3626
3627 * i386-tdep.c (supply_gregset, fill_gregset, supply_fpregset,
3628 fill_fpregset): Moved to i386v4-nat.c
3629 * i386v4-nat.c, nm-i386v4.h, : New files.
3630 * i386sol2.mh, i386v4.mh, ncr3000.mh (NAT_FILE): Use nm-i386v4.h.
3631 * i386sol2.mh, i386v4.mh, ncr3000.mh (NATDEPFILES): Add corelow.o,
3632 change i386v-nat.o to i386v4-nat.o.
3633
173a4f1b
RP
3634Fri Oct 16 13:06:08 1992 K. Richard Pixley (rich@sendai.cygnus.com)
3635
c36989aa
RP
3636 Miscellaneous 386 configs updated.
3637
3638 * config/i386aout.mt (TDEPFILES): removed exec.o.
3639 * config/i386sol2.mh, config/ncr3000.mh, config/i386v4.mh
3640 (XDEPFILES): removed procfs.o fork-child.o i386-xdep.o.
3641 (NAT_FILE, NATDEPFILES): new macros.
3642 * config/i386aout.mt, config/i386sol2.mt, config/ncr3000.mt,
3643 config/i386v4.mt (TDEPFILES): removed exec.o.
3644 * config/i386v32.mh (XDEPFILES): removed infptrace.o inftarg.o
3645 fork-child.o coredep.o corelow.o i386-xdep.o i387-tdep.o.
3646 (NAT_FILE, NATDEPFILES): new macros.
3647 * config/i386sco.mh (XDEPFILES): removed infptrace.o inftarg.o
3648 fork-child.o coredep.o corelow.o i386-xdep.o.
3649 (NAT_FILE, NATDEPFILES): new macros.
3650
f1a353db
RP
3651 Native support cleanup for i386bsd (untested).
3652
3653 * config/i386bsd.mt (NATDEPFILES): exec.o removed.
3654 * config/i386bsd.mh (NATDEPFILES): added exec.o
3655 * tm-i386bsd.h (FLOAT_INFO): removed.
3656 * nm-i386bsd.h (FLOAT_INFO): added.
3657
c7c94073
RP
3658 Native support for i386v (untested).
3659
3660 * config/i386v.mh (XDEPFILES): removed infptrace.o inftarg.o
3661 fork-child.o coredep.o corelow.o i386-xdep.o i387-tdep.o.
3662 (NAT_FILE, NATDEPFILES): new macros.
3663 * config/i386v.mt (TDEPFILES): removed exec.o, added i387-tdep.o.
3664 * i386-xdep.c: removed.
3665 * Makefile.in (HFILES): added nm-i386v.h
3666 * i386v-nat.c, nm-i386v.h: new file.
3667 * xm-i386v.h: (REGISTER_U_ADDR, i386_register_u_addr): removed to
3668 nm-i386v.h.
3669 * tm-i386v.h (FLOAT_INFO): removed.
3670
e24cb83d
RP
3671 Native support for linux (untested).
3672
3673 * config/linux.mh (XDEPFILES): removed infptrace.o inftarg.o
c7c94073 3674 fork-child.o coredep.o corelow.o i387-tdep.o i386-xdep.o.
e24cb83d
RP
3675 (NAT_FILE, NATDEPFILES): new macros.
3676 * config/linux.mt (TDEPFILES): removed exec.o, added i387-tdep.o.
3677 * Makefile.in (HFILES): added nm-linux.h.
3678 * nm-linux.h: new file.
3679 * xm-linux.h: updated copyright. cleaned up formatting.
3680 (ATTACH_DETACH, U_REGS_OFFSET): removed to nm-linux.h.
3681
61bbb1c2
RP
3682 Native support for sun386 (untested).
3683
3684 * config/sun386.mh (XDEPFILES): removed infptrace.o inftarg.o
3685 fork-child.o sun386-xdep.o.
3686 (NAT_FILE, NATDEPFILES): new macros.
3687 * config/sun386.mt (TDEPFILES): removed exec.o.
3688 * Makefile.in (HFILES): added nm-sun386.h.
3689 * sun386-nat.c, nm-sun386.h: new file.
3690 * sun386-xdep.c: removed.
3691 * xm-sun386.h: updated comment and copyright.
3692 (ATTACH_DETACH, FETCH_INFERIOR_REGISTERS): removed to
3693 nm-sun386.h.
3694
a113beac
RP
3695 Native support for i386mach (untested).
3696
3697 * config/i386mach.mh (XDEPFILES): removed infptrace.o inftarg.o
3698 fork-child.o mach386-xdep.o.
3699 (NAT_FILE, NATDEPFILES): new macros.
3700 * Makefile.in (HFILES): added nm-i386mach.h.
3701 * nm-i386mach.h, i386mach-nat.c: new files.
3702 * mach386-xdep.c: removed.
3703 * xm-i386mach.h: updated copyright.
3704 (ATTACH_DETACH, FETCH_INFERIOR_REGISTERS): removed to
3705 nm-i386mach.h.
3706
d9548d44
RP
3707 Native separation for go32 (untested).
3708
3709 * config/go32.mh (NAT_FILE, NATDEPFILES): new macros.
3710 * go32-nat.c: new file.
3711 * go32-xdep.c (call_ptrace, child_resume,
3712 fetch_inferior_registers, store_inferior_registers,
3713 child_xfer_memory, fetch_core_registers): removed to go32-nat.c.
3714
173a4f1b
RP
3715 Native support for m88k (untested).
3716
e367cb3b 3717 * Makefile.in (HFILES): added nm-m88k.h
173a4f1b
RP
3718 * xm-delta88.h, xm-m88k.h (REGISTER_U_ADDR,
3719 FETCH_INFERIOR_REGISTERS): removed.
3720 * config/m88k.mh, config/delta88.mh (XDEPFILES): infptrace.o
3721 inftarg.o fork-child.o m88k-xdep.o removed to NATDEPFILES.
3722 (NAT_FILE, NATDEPFILES): new macros.
3723 * config/m88k.mt, config/delta88.mt (TDEPFILES): removed exec.o.
3724 * m88k-nat.c, nm-m88k.h, nm-delta88.h: new files.o.
3725 * m88k-xdep.c: removed.
3726
f4cc0e9b
JG
3727Fri Oct 16 04:16:30 1992 John Gilmore (gnu@cygnus.com)
3728
3729 * i386b-nat.c: Comment changes.
3730 * nm-i386bsd.h, xm-i386bsd.h: Split native dependent pieces out
3731 into new nm-file.
3732 * config/i386bsd.mh (NAT_FILE): Point to new nm-file.
3733
2268d619
JG
3734Fri Oct 16 03:34:01 1992 John Gilmore (gnu@cygnus.com)
3735
3736 Avoid longjmp()-catching compilation errors in cross-ports.
3737
3738 * doc/gdbint.texinfo: Update GET_LONGJMP_TARGET, L_SET doc.
3739 * irix4-nat.c, mips-nat.c (JB_ELEMENT_SIZE, get_longjmp_target):
3740 Move from mips-tdep.c and tm-{irix3,mips}.h.
3741 * mips-nat.c: Remove a bunch of code that was ifdef'd out of
3742 native MIPS ports.
3743 * nm-irix3.h, nm-mips.h (GET_LONGJMP_TARGET): Move from tm-irix3.h
3744 and tm-mips.h.
3745
3746 * ultra3-nat.c (register_addr): Move from ultra3-xdep.c.
3747 (fetch_core_registers): Fix bfd_seek arguments.
3748
62aa17e3
JG
3749Fri Oct 16 03:02:28 1992 John Gilmore (gnu@cygnus.com)
3750
d5a66a8d
JG
3751 Make core files work again (add back the `core' target).
3752
3753 * config/decstation.mh, news.mh, sun2os3.mh, sun2os4.mh
3754 (NATDEPFILES): Add corelow.o.
62aa17e3
JG
3755 * config/delta88.mt, m88k.mt (TDEPFILES): Remove coredep.o, it's
3756 native dependent.
3757
d5a66a8d
JG
3758 * config/3b1.mh, bigmips.mh, hp300bsd.mh, hppabsd.mh, hppahpux.mh,
3759 i386sco.mh, i386v.mh, i386v32.mh, irix3.mh, isi.mh, linux.mh,
3760 littlemips.mh, merlin.mh, news1000.mh, pn.mh, rtbsd.mh, tahoe.mh,
3761 vaxbsd.mh, vaxult.mh (XDEPFILES): Add corelow.o whenever coredep.o
3762 appears. FIXME, these should be moved to NATDEPFILES for native
3763 use only.
3764
b396595a
RP
3765Thu Oct 15 21:53:53 1992 K. Richard Pixley (rich@sendai.cygnus.com)
3766
6bf98ac0
RP
3767 Ultra3 host/target/native split. (untested).
3768
3769 * ultra3-xdep.c: updated copyright. Do not include sys/ptrace.h.
3770 (fetch_register, fetch_inferior_registers,
3771 store_inferior_registers, fetch_core_registers): removed to
3772 ultra3-nat.c.
3773 * xm-ultra3.h (FETCH_INFERIOR_REGISTERS, U_REGS_OFFSET): removed
3774 to nm-ultra3.h.
3775 * Makefile.in (HFILES): added nm-ultra3.h.
3776 * nm-ultra3.h, ultra3-nat.c: new files for native support.
3777 * config/ultra3.mh (XDEPFILES): removed infptrace.o inftarg.o
3778 fork-child.o.
3779 (NAT_FILE, NATDEPFILES): new macros for native support.
3780 * config/ultra3.mt (TDEPFILES): exec.o removed.
3781
b396595a
RP
3782 * xm-vaxult.h: add MEM_FNS_DECLARED.
3783
d5931d79
JG
3784Thu Oct 15 02:59:30 1992 John Gilmore (gnu@cygnus.com)
3785
3786 * Makefile.in (VERSION): Roll to 4.6.8.
3787 (OBS): Put version.o first, so Makefile rebuild happens early.
3788
3789 * command.h: Publicize prototype for not_just_help_class_command.
3790 * command.c: Remove proto.
327f7197
JG
3791 * maint.c: Mark "mt" as an abbrev, to avoid duplicated help
3792 output. Move "maint info" from class info to class maintenance,
3793 and improve text.
3794 * infrun.c: Move "stop" to class_obscure, and give it a
d5931d79
JG
3795 function so it will not be seen as a global help topic. FIXME,
3796 it should be possible to set these attributes independently.
3797
3798 * core.c (core_command): Make nicer error message for no core support.
d5931d79
JG
3799
3800 Lint around file_ptr's (bfd's off_t's) and bfd_seek.
3801
3802 * dbxread.c (read_dbx_symtab): Use L_SET as bfd_seek arg.
3803 (elfstab_build_psymtabs): staboffset and stabstroffset args are
3804 file_ptr's.
3805 * dwarfread.c (struct dwfinfo): Convert dbfoff, lnfoff to file_ptr.
3806 (scan_compilation_units): Punt unused filename arg. dbfoff,
3807 lnoffset, and curlnoffset are file_ptr's now.
3808 (dwarf_build_psymtabs): Drop desc and filename args; use
3809 objfile. dbfoff and lnoffset are file_ptr's now.
3810 (read_ofile_symtab): foffset is now file_ptr. Use L_SET in bfd_seek.
3811 * elfread.c (struct elfinfo): dboffset and lnoffset are file_ptr's.
3812 (elf_symfile_read): Skip desc and filename args to
3813 dwarf_build_psymtabs. Pass file_ptr's to elfstab_build_psymtabs.
3814 * gdb-stabs.h: Use file_ptr rather than off_t.
3815 * mipsread.c (fixup_symtab): f_ptr is a file_ptr. Re-enable
3816 compile-time debug check that someone turned off as "unused".
3817 (read_the_mips_symtab): st_filptr is a file_ptr. Fix bfd_seek call.
3818 * symfile.h: Update dwarf_build_psymtabs and
3819 elfstab_build_psymtabs prototypes.
3820 * xcoffread.c (init_stringtab, init_lineno, xcoff_symfile_read):
3821 Use file_ptr offsets. bfd_seeks use L_SET.
3822
dac4929a
SG
3823Thu Oct 15 01:27:32 1992 Stu Grossman (grossman at cygnus.com)
3824
3825 * mips-tdep.c, mipsread.c, tm-mips.h: Get rid of ".gdbinfo."
3826 symbol. #define MIPS_EFI_SYMBOL_NAME instead. Use different
3827 value so that demangler won't be invoked. This greatly speeds up
3828 stepping.
3829 * mips-tdep.c (mips_pop_frame): Rewrite handling of
3830 linked_proc_info so that it properly deallocates the appropriate
3831 item after it is done with it instead of before.
3832 * Don't pass bogus frame pointer to create_new_frame(). Just
3833 leave it as zero so that lower level code will figure out the
3834 correct value.
3835
a6b98cb9
RP
3836Wed Oct 14 18:56:28 1992 K. Richard Pixley (rich@sendai.cygnus.com)
3837
75365589
RP
3838 Sony News native support.
3839
3840 * Makefile.in (HFILES): added nm-news.h.
3841 * nm-news.h: new file.
3842 * config/news.mh (XDEPFILES): removed infptrace.o inftarg.o
3843 fork-child.o coredep.o to NATDEPFILES.
3844 (NAT_FILE, NATDEPFILES): new macros for native support.
3845 * config/news.mt (TDEPFILES): removed exec.o.
3846
170d4f55
RP
3847 * remote-vx.c: remove redundant include of sys/time.h.
3848
a6b98cb9
RP
3849 * infrun.c: include ctype.h. Otherwise some machines result in
3850 undefined for isdigit.
3851
358ca35e
JG
3852Tue Oct 13 01:27:14 1992 John Gilmore (gnu@cygnus.com)
3853
3854 * configure.in: Convert m68k entries to m68* entries to handle
3855 all the various m68xxx hosts and targets.
849d81e5 3856 * config/news1000.mt: No longer needed, same as news.mt.
358ca35e 3857
601f1570
RP
3858Fri Oct 9 18:54:37 1992 K. Richard Pixley (rich@sendai.cygnus.com)
3859
3860 * config/sun3os[34].mh (NATDEPFILES): remove duplicate inftarg.o.
3861
89f1a7df
SG
3862Fri Oct 9 14:20:08 1992 Stu Grossman (grossman at cygnus.com)
3863
47b7176b
SG
3864 * Makefile.in (HFILES): Add all nm-irix3.h, nm-irix4.h,
3865 nm-sun2.h, nm-mips.h.
3866
30328636
SG
3867 * config/irix3.mh (NATDEPFILES): nat-mips.o => mips-nat.o.
3868
a1096574
SG
3869 * Makefile.in (alldeps.mak): Add = sign after NATDEPFILES.
3870
89f1a7df
SG
3871 * config/bigmips.mh config/littlemips.mh: Remove mips-xdep.o.
3872
b5ddc101
ILT
3873Fri Oct 9 08:41:11 1992 Ian Lance Taylor (ian@cygnus.com)
3874
3875 * xm-hppah.h: if __STDC__ is not defined, define
3876 HPPA_COMPILER_BUG.
3877 symtab.c (decode_line_1): avoid a bug in the HP9000/700 native
3878 compiler; see the comment in the file.
3879
0e35d2f3
JG
3880Fri Oct 9 04:43:43 1992 John Gilmore (gnu@cygnus.com)
3881
3882 First cut at support for all BSD variants on 386.
3883
3884 * tm-i386bsd.h, xm-i386bsd.h: New config files.
3885 * i386b-nat.c: New native support file.
3886 * configure.in: Add host and target for i[34]86-*-bsd*.
3887 * config/i386bsd.mh, config/i386bsd.mt: New config files.
3888
a70dc898
RP
3889Fri Oct 9 00:31:33 1992 K. Richard Pixley (rich@sendai.cygnus.com)
3890
56e89422
RP
3891 Sun2 native support (untested).
3892
3893 * xm-sun2.h (ATTACH_DETACH, FETCH_INFERIOR_REGISTERS,
3894 REGISTER_U_ADDR): removed to nm-sun2.h.
3895 * nm-sun2.h: new file.
3896 * config/sun2os[34].mh (XDEPFILES): infptrace.o inftarg.o
3897 fork-child.o sun3-xdep.o removed.
3898 (NAT_FILE, NATDEPFILES): new macros.
3899
a70dc898
RP
3900 Mips native support. Decstation and iris4 have been tested.
3901 Iris3 has not.
3902
3903 * mips-tdep.c (supply_gregset, fill_gregset, supply_fpregset,
3904 fill_fpregset): removed to irix4-nat.c
3905 * mips-xdep.c: removed.
3906 * irix4-nat.c, mips-nat.c, nm-irix3.h, nm-irix4.h, nm-mips.h: new
3907 files.
3908 * procfs.c: include nm.h.
3909 * xm-irix3.h (U_REGS_OFFSET, FETCH_INFERIOR_REGISTERS): removed.
3910 * xm-irix4.h: bump copyright.
3911 (U_REGS_OFFSET, FETCH_INFERIOR_REGISTERS, USE_PROC_FS,
3912 PROC_NAME_FMT): removed.
3913 * xm-mips.h (FETCH_INFERIOR_REGISTERS): removed.
3914 * config/irix4.mh (XDEPFILES): removed procfs.o fork-child.o.
3915 (NAT_FILE, NATDEPFILES): new macros for native support.
3916 (CC): supply default compiler switches.
d5931d79
JG
3917 * config/irix3.mh (XDEPFILES): removed infptrace.o inftarg.o
3918 fork-child.o coredep.o.
a70dc898
RP
3919 (NAT_FILE, NATDEPFILES): new macros for native support. Note that
3920 irix3 is untested.
3921 * config/decstation.mh (XDEPFILES): removed infptrace.o inftarg.o
3922 fork-child.o mips-xdep.o coredep.o.
3923 (NAT_FILE, NATDEPFILES): new macros for native support.
3924
55ec69fb
RP
3925Thu Oct 8 23:50:51 1992 K. Richard Pixley (rich@sendai.cygnus.com)
3926
3927 * config/rs6000.mh (XDEPFILES): removed fork-child.o.
3928 (NATDEPFILES): added fork-child.o
3929 * config/sun3os3.mh (XDEPFILES): removed fork-child.o.
3930 (NATDEPFILES): added fork-child.o
3931 * config/sun3os4.mh (XDEPFILES): removed fork-child.o.
3932 (NATDEPFILES): added fork-child.o
3933
01ae50eb
JG
3934Thu Oct 8 23:19:25 1992 John Gilmore (gnu@cygnus.com)
3935
3936 * infcmd.c (path_info): Avoid 250-char limit on printf_filtered,
3937 by using puts_filtered instead.
3938
0256270d
KR
3939Fri Oct 9 00:28:25 1992 Ken Raeburn (raeburn@cambridge.cygnus.com)
3940
3941 * remote-nindy.c (nindy_load): Replacement version from Steve
3942 Chamberlain, doesn't require forking to run "strip" or "sx".
3943
e6c61372
SG
3944Thu Oct 8 18:27:35 1992 Stu Grossman (grossman at cygnus.com)
3945
3946 * Makefile.in (HFILES): Add nm-*.h files.
3947
968720bf
RP
3948Thu Oct 8 16:27:45 1992 K. Richard Pixley (rich@sendai.cygnus.com)
3949
dd6f8695
RP
3950 * config/sun4os4.mh (XDEPFILES): fork-child.o removed.
3951 (NATDEPFILES): added fork-child.o.
3952
968720bf
RP
3953 * doc/gdbint.texinfo: document a few more macros, create new
3954 section for native macros.
3955
e7ae70e9
SG
3956Thu Oct 8 13:52:46 1992 Stu Grossman (grossman at cygnus.com)
3957
3958 * Makefile.in alldeps.mak depend: Rip out 29k/udi pending
3959 resolution of copyright issues.
3960
0da70124
SG
3961Wed Oct 7 20:08:53 1992 Stu Grossman (grossman at cygnus.com)
3962
3963 * Makefile.in (setup-to-dist): Remove -norecursion so that doc
3964 subdir gets configured.
3965
6a1f93f6
KR
3966Wed Oct 7 12:24:01 1992 Ken Raeburn (raeburn@cygnus.com)
3967
3968 * Makefile.in (nindy.o): Define "STRIP" as pathname of strip
3969 program.
3970 * nindy-share/nindy.c (coffstrip): Use that pathname, instead of
3971 searching for a "bfd_strip" program. Also, fixed up arguments
3972 passed to that program.
3973
3974 * tm-nindy960.h (ADDITIONAL_OPTIONS): Use "-ser" rather than "-r",
3975 which is now used for something else. Rewrite description of
3976 associated parameters to match how gdb does it now.
3977 (ADDITIONAL_OPTION_HELP): Fix message accordingly.
3978
3979 * m68k-pinsn.c (print_insn_arg): Handle new "`" operand type.
3980
3950a34e
RP
3981Tue Oct 6 14:47:11 1992 K. Richard Pixley (rich@sendai.cygnus.com)
3982
3983 NOTICE_SIGNAL_HANDLING_CHANGE macro added to the target vector as
3984 to_notice_signals.
3985
3986 * inferior.h (proc_signal_handling_change): prototype removed.
3987 * infrun.c (NOTICE_SIGNAL_HANDLING_CHANGE): default removed.
3988 (handle_command): now calls target_notice_signals.
3989 * procfs.c (proc_signal_handling_change): renamed to
3990 procfs_notice_signals. Now static. Add prototype. All callers
3991 changed.
3992 * target.h (struct target_ops): new field, to_notice_signals.
3993 (target_notice_signals): new macro to cover new field.
3994 * target.c (cleanup_target): default to_notice_signals to ignore.
3995 * corelow.c (core_ops),
3996 exec.c (exec_ops),
3997 inftarg.c (child_ops),
3998 procfs.c (procfs_ops),
3999 remote-adapt.c (adapt-ops),
4000 remote-eb.c (eb_ops),
4001 remote-es1800.c (es1800_ops, es1800_child_ops),
4002 remote-hms.c (hms_ops),
4003 remote-mm.c (mm_ops),
4004 remote-nindy.c (nindy_ops),
4005 remote-st2000.c (st2000_ops),
e7ae70e9 4006 remote-udi.c (udi_ops),
3950a34e
RP
4007 remote-vx.c (vx_ops, vx_run_ops),
4008 remote.c (remote_ops),
4009 target.c (dummy_target),
4010 xcoffexec.c (exec_ops): added static initializer for
4011 to_notice_signals.
4012 * xm-irix4.h, xm-sysv4.h (NOTICE_SIGNAL_HANDLING_CHANGE): removed.
4013
06e4d12d
JG
4014Tue Oct 6 12:13:08 1992 John Gilmore (gnu@cygnus.com)
4015
4016 * main.c (define_command): Add forgotten initializer.
4017
48ab6c0e
JG
4018Tue Oct 6 02:23:17 1992 John Gilmore (gnu@cygnus.com)
4019
b5af69c3
JG
4020 * language.c, language.h: Move saved_language out to global
4021 expected_language. Set expected_language when user expectation
4022 changes.
4023 * language.c (language_info): Don't print type/range checking gub.
4024 * main.c (main): Set expected language.
4025 (execute_command): Check against expected language.
4026 * symfile.c (set_initial_language): Set expected language.
4027
48ab6c0e
JG
4028 * configure.in, config/i386sol2.{mh,mt}: Preliminary Solaris-x86 conf.
4029
94603999
JG
4030Fri Sep 4 00:34:30 1992 Per Bothner (bothner@rtl.cygnus.com)
4031
4032 A bunch of changes mostly to improve debugging of C++ programs.
4033 Specifically, the calling of inferiors methods is improved.
4034
4035 * value.h: New macros METHOD_PTR_IS_VIRTUAL,
4036 METHOD_PTR_FROM_VOFFSET, METHOD_PTR_TO_VOFFSET to partially
4037 hide the implementation details of pointer-to-method objects.
4038 How to tell if the pointer points to a virtual method is
4039 still very dependent on the particular compiler, but this
4040 should make it easier to find the places to change.
4041 * eval.c (evaluate_subexp [case OP_FUNCALL]), valprint.c
4042 (val_print [case TYPE_CODE_PTR]): Use the new METHOD_PTR_*
4043 macros, instead of a hard-wired-in code that incorrectly
4044 assumed a no-longerused representation of pointer-to-method
4045 values. And otherwise fix the relevant bit-rotted code.
4046
4047 * valprint.c (type_print_base [case TYPE_CODE_STRUCT]):
4048 If there are both fields and methods, put a space between.
4049
4050 * stabsread.c (read_struct_type): Fix bug in handling of
4051 GNU C++ anonymous type (indicated by CPLUS_MARKER followed
4052 by '_'). (It used to prematurely exit the loop reading in
4053 the fields, so it would think it should start reading
4054 methods while still in the fields. This could crash gdb
4055 given a gcc that can emit nested type information.)
4056
4057 * valops.c (search_struct_method): Pass 'this' value by
4058 reference instead of by value. This provides a more
4059 consistent interface through a recursive search where the
4060 "bottom" functions may need to adjust offsets (due to multiple
4061 inheritance).
4062 * valops.c, value.h, values.c: Pass extra parameters to
4063 value_fn_field and value_virtual_fn_field so we can
4064 correctly adjust offset for multiple inheritance.
4065 * eval.c (evaluate_subexp [case OP_FUNCALL]): Simplify
4066 virtual function calls by using value_virtual_fn_field().
4067 * values.c: New function baseclass_offset, derived from
4068 baseclass_addr (which perhaps can be made obsolete?).
4069 It returns an offset rather than an address. This is a
4070 cleaner interface since it doesn't mess around allocating
4071 new values.
4072 * valops.c (search_struct_method): Use baseclass_offset
4073 rather than baseclass_addr.
4074
aa1dea48
SG
4075Mon Oct 5 16:02:04 1992 Stu Grossman (grossman at cygnus.com)
4076
e7ae70e9
SG
4077 * Makefile.in: Re-install 29K/UDI stuff.
4078 * remote-udi.c (udi_resume): Clean up.
4079 * (udi_wait): Rewrite, leave out bugs.
4080 * Add debugging code to print out all register fetches and stores.
4081 * Straighten out target_ops.
aa1dea48
SG
4082 * tm-29k.h (DUMMY_FRAME_RSIZE): Pad out to doubleword.
4083
e661aaae
ILT
4084Mon Oct 5 09:46:44 1992 Ian Lance Taylor (ian@cygnus.com)
4085
e7ae70e9
SG
4086 * remote-udi.c (udi_create_inferior): run with no arguments should
4087 not pass the program name as an argument, since the UDI code
4088 already handles that.
4089 (udi_load): get the symbols from prog_name, not arg_string (the
4090 load command should really use arg_string as the program name, not
4091 prog_name, but at least the run command works now).
4092
5d5a9c3c 4093 * munch: HP9000/300 nm puts an extra space between T and symbol
91912864
ILT
4094 name.
4095
e661aaae
ILT
4096 * config/irix4.mh: added -lsun to XM_CLIBS to get RPC functions
4097 needed for vxworks targets.
4098
34517ebc
JG
4099Fri Oct 2 22:04:42 1992 John Gilmore (gnu@cygnus.com)
4100
4101 * am29k-tdep.c (_initialize_29k): Make it possible for the
4102 user to set and query the address where function calls into the
4103 inferior write a small scratch routine. `set call_scratch_address'
4104 * inferior.h (PC_IN_CALL_DUMMY): Fix fencepost error.
4105 * remote.c (remote_prepare_to_store): Only fetch regs if they are
4106 not already cached validly.
4107
93282e61
RP
4108Thu Oct 1 14:36:42 1992 K. Richard Pixley (rich@sendai.cygnus.com)
4109
ef6f3a8b
RP
4110 Rs6000 native support.
4111
4112 * infptrace.c: remove #ifdef USG from around include ptrace.h.
4113 machines without this header should not be compiling this file.
4114 * nm-rs6000.h, rs6000-nat.c: new files for native support.
4115 * rs6000-tdep.c: do not include sys/ptrace.h or sys/reg.h.
4116 * rs6000-xdep.c: removed. all code now in rs6000-nat.c.
4117 * xm-rs6000.h: do not include ptrace.h.
4118 (ATTACH_DETACH, FETCH_INFERIOR_REGISTERS): moved to nm-rs6000.h.
4119 * config/rs6000.mh (XDEPFILES): removed rs6000-xdep.o.
4120 infptrace.o and inftarg.o move to NATDEPFIES.
4121 (NAT_FILE, NATDEPFILES): new macro for native support.
4122
93282e61
RP
4123 Sun3 native support.
4124
4125 * config/sun3os3.mh, config/sun3os4.mh (NAT_FILE, NATDEPFILES):
4126 new macros for native support.
4127 (XDEPFILES): moved infptrace.o and inftarg.o to NATDEPFILES,
4128 removed sun3-xdep.o.
4129 * xm-sun3.h (ATTACH_DETACH, FETCH_INFERIOR_REGISTERS): moved to
4130 nm-sun3.h.
4131 * sun3-xdep.c: removed. All code is now in sun3-nat.c.
4132 * sun3-nat.c, nm-sun3.h: new files for native support.
4133
4134Thu Oct 1 10:30:54 1992 Fred Fish (fnf@cygnus.com)
4135
4136 * dwarfread.c (dbsize): New variable to hold size of dwarf info.
4137 * dwarfread.c (dwarf_build_psymtabs): Rename dbsize parameter to
4138 dbfsize and use it to initialize new local file scope dbsize.
4139 * dwarfread.c (read_ofile_symtab): Initialize dbsize and use it.
4140 * dwarfread.c (basicdieinfo): Use dbsize to check for oversize
4141 DIEs as well as the current check for undersize DIEs. This helps
4142 to gracefully detect and reject corrupted DIE information.
4143
a65841d7
JG
4144Thu Oct 1 01:57:56 1992 John Gilmore (gnu@cygnus.com)
4145
4146 Add `command hooks' and a hook for inferior program stopping.
4147
4148 * command.h (struct cmd_list_element): Remove unused `aux'
4149 field. Add new `hook', `hookee', and `cmd_pointer' fields.
4150 * command.c (add_cmd): Initialize new fields, elim old.
4151 (add_alias_cmd): Clone new fields.
4152 (delete_cmd): Un-hook hookee if we're deleting hook.
4153 (help_cmd): Tell user the command is hooked, if it is.
4154 (lookup_cmd_1): Abbreviations return the original command
4155 instead of themselves, so that hooks on the original cmd will be
4156 run.
4157 * defs.h (enum command_class): Add class_pseudo and comments.
4158 * gdbcmd.h (execute_user_command): Add prototype.
4159 * infrun.c (normal_stop): If the stop command is hooked,
4160 run the hook whenever we stop.
4161 (hook_stop_stub): Stub for catch_errors.
4162 (_initialize_infrun): Set up pseudo "stop" command.
4163 * main.c (execute_user_command): Code extracted from execute_command.
4164 (execute_command): If hooked, run the hook before the command.
4165 (define_command): If defining a new hook, check the command it
4166 is hooking, and warn if none. Install the hook.
4167 * source.c (_initialize_source): "l" is an abbrev for "list".
4168 * doc/gdb.texinfo: Document command hooks.
4169
4170 * Makefile.in (VERSION): Roll to 4.6.7.
4171 * config/sun4os4.mh: Remove dup inftarg.o from NATDEPFILES.
4172 * infrun.c (breakpoints_inserted): Make it static again.
4173 * tm-symmetry.h (FLOAT_INFO): #if 0 it for cross-ptrace abuse.
4174
dfc82617
RP
4175Wed Sep 30 15:33:22 1992 K. Richard Pixley (rich@sendai.cygnus.com)
4176
4177 Native file renaming.
4178
4179 * nat-sparc.c -> sparc-nat.c
4180 * nat-sun4os4.h -> nm-sun4os4.h
4181 * nat-trash.h -> nm-trash.h
9c14e78d 4182 * config/sun4os4.mh: track file renaming.
dfc82617
RP
4183 * configure.in: link to nm.h rather than nat.h.
4184 * infptrace.c: include nm.h rather than nat.h.
4185
df9b3bfc
RP
4186Tue Sep 29 14:35:00 1992 K. Richard Pixley (rich@sendai.cygnus.com)
4187
c9c23412
RP
4188 Host/target/native split for sun4.
4189
4190 * Makefile.in (TSOBS): removed corelow.o.
4191 * infptrace.c: included nat.h.
4192 * nat-trash.h: temporary header file. This should be removed once
4193 all hosts have the native/host/target split.
4194 * configure.in: add a symlink from nat-trash.h to nat.h if no
4195 other nat file exists for this configuration.
4196 * sparc-tdep.c: no longer include sys/ptrace.h.
4197 * sparc-xdep.c: removed. contents have been moved to nat-sparc.c.
4198 * xm-sparc.h (ATTACH_DETACH, FETCH_INFERIOR_REGISTERS): moved to
4199 nat-sun4os4.h.
4200 * nat-sparc.c, nat-sun4os4.h: new files for sun4 native support.
4201 * config/sun4os4.mh (XDEPFILES): moved infptrace.o and inftarg.o
4202 to NATDEPFILES. removed sparc-xdep.o.
4203 (NATDEPFILES, NAT_FILE): new macros for native support.
4204
df9b3bfc
RP
4205 Break the direct connection from core_file_command to any
4206 particular type of core file support.
4207
4208 * target.h (find_core_target): new prototype.
4209 * target.c (find_core_target): new function. Walks the target
4210 list looking for the core target.
4211 * core.c (core_file_command): replace calls to core_detach and
4212 core_open with find_core_target and direct calls.
4213
be891e75
ILT
4214Tue Sep 29 10:19:00 1992 Ian Lance Taylor (ian@cygnus.com)
4215
4216 * xm-hp300hpux.h: define MEM_FNS_DECLARED; include <sys/ptrace.h>
4217 for infptrace.c.
4218 config/hp300hpux.mh: ALLOCA1 was not defined.
4219
597dc86b
SG
4220Mon Sep 28 22:03:41 1992 Stu Grossman (grossman at cygnus.com)
4221
4222 * breakpoint.c, exec.c, language.c, main.c, printcmd.c, symfile.c,
4223 target.c, valprint.c: Use unfiltered forms of f/printf, et. al.
4224 until we can figure out a better way to do paging.
4225
e0ba1d14
JG
4226Sat Sep 26 02:07:31 1992 John Gilmore (gnu@cygnus.com)
4227
4228 * findvar.c (supply_register): Add CLEAN_UP_REGISTER_VALUE hook.
4229 * tm-hppa.h (CLEAN_UP_REGISTER_VALUE): Use it.
4230 * hppa-coredep.c: Remove, now that we use the hook.
4231 * config/hppab.mh, config/hppah.mh: Use standard coredep.o.
4232 * hppab-xdep.c, hppah-xdep.c: Remove custom code, use hook.
4233
4234 * dbxread.c, partial-stab.h: Replace all #ifdef hp9000s800's with
4235 GDB_TARGET_IS_HPPA's. This is a SERIOUS KLUDGE. The code needs to all
4236 be ripped out and reimplemented right (see elfread.c).
4237 * tm-hppa.h (GDB_TARGET_IS_HPPA): Define.
4238
4239 Rename all HPPA files to fit into unique DOS filenames:
4240 * *hppabsd* => *hppab*
4241 * *hppahpux* => *hppah*
4242
b3d4dd73
JG
4243Sat Sep 26 00:25:15 1992 John Gilmore (gnu@cygnus.com)
4244
3fbdd536
JG
4245 Make the /proc support a target-struct in its own right.
4246
b3d4dd73
JG
4247 * Makefile.in: Remove inftarg.[co], since it is now included via
4248 config/*.mh files.
4249 * config/*.mh: Add inftarg.o and fork-child.o to all *.mh that
4250 reference infptrace.o. Add fork-child.o to all *.mh that
4251 reference procfs.o.
4252
3fbdd536
JG
4253 * inferior.h (proc_wait, inferior_proc_init, proc_set_exec_trap):
4254 No longer global functions.
4255 (fork_inferior): New global function from fork-child.c.
4256 * inftarg.c (child_wait): Remove USE_PROC_FS conditional.
4257 (ptrace_me, ptrace_him): New stub functions for fork_inferior().
4258 (child_create_inferior): Moved to fork-child.c as fork_inferior.
4259 (child_create_inferior): New tiny function that calls fork_inferior.
4260 * fork-child.c: New file, containing fork_inferior, which is
4261 built from slight mods to inftarg.c's child_create_inferior.
4262
4263 * procfs.c (procfs_ops): Add target vector.
4264 (attach): Rename as static do_attach.
4265 (procfs_create_inferior): New tiny function that calls fork_inferior.
4266 (child_xfer_memory): Rename to static procfs_xfer_memory.
4267 (store_inferior_registers): Rename to static procfs_store_registers.
4268 (inferior_proc_init): Rename to static procfs_init_inferior.
4269 (procfs_attach, procfs_detach, procfs_prepare_to_store,
4270 procfs_files_info, procfs_open, procfs_mourn_inferior,
4271 procfs_can_run): Slightly mangled copies of the corresponding
4272 child_XXX routines from inftarg.c.
4273 (proc_wait): Renamed to static procfs_wait.
4274 (child_resume): Rename to static procfs_resume.
4275 (fetch_inferior_registers): Rename to static procfs_fetch_registers.
4276 (initialize_proc_fs): Rename to initialize_procfs. Set up
4277 procfs_ops, too.
4278
4279 * putenv.c: index -> strchr.
4280 * regex.c: Always rename bcopy to memcpy, etc.
4281 FIXME: Eventually do the renames rather than use #define's.
4282 * sparc-tdep.c (deferred_stores): Moved from sparc-xdep.c.
4283 Fix bcopy->memcpy.
4284 * sparc-xdep.c: Move deferred_stores to target dependent.
4285 * xm-irix4.h, xm-sysv4.h (CREATE_INFERIOR_HOOK): No longer needed.
4286
836e343b
JG
4287Fri Sep 25 21:59:27 1992 John Gilmore (gnu@cygnus.com)
4288
4289 Split non-target-dependent code out of target_attach routines.
4290
4291 * target.h: Comments on target_attach args and results.
4292 * infcmd.c (attach_command): Check for existing execution, call
4293 target_attach, set up terminal status and wait_for_inferior, wait
4294 for the attach status, and do normal_stop.
4295 * inftarg.c (child_attach): Remove target independent stuff.
4296 * remote-adapt.c (adapt_attach): Ditto.
4297 * remote-mm.c (mm_attach): Ditto.
e7ae70e9 4298 * remote-udi.c (udi_attach): Ditto.
836e343b
JG
4299 * remote-vx.c (vx_attach): Ditto.
4300
4301 Cleanup.
4302
4303 * remote-hms.c (hms_attach): Remove completely, it was useless.
e7ae70e9 4304 * remote-mm.c, remote-hms.c, remote-udi.c, remote-adapt.c: Remove
836e343b 4305 commented-out start_remote calls.
e7ae70e9 4306 * remote-hms.c, remote-adapt.c, remote-mm.c, remote-udi.c: Remove
836e343b
JG
4307 DENTER and DEXIT macros and their calls. Use a real debugger --
4308 like gdb -- to see what functions are being called when.
a5a7c719 4309 * utils.c (strcmp_iw): Make nonstatic, for lint.
836e343b 4310
3aa6856a
JG
4311Fri Sep 25 18:48:20 1992 John Gilmore (gnu@cygnus.com)
4312
4313 * infrun.c, inftarg.c, inferior.h: Comment and lint cleanups.
4314
b869d3f4
SG
4315Fri Sep 25 15:13:44 1992 Stu Grossman (grossman at cygnus.com)
4316
1aed6766
SG
4317 * tm-sparc.h, dbxread.c (read_ofile_symtab): Install Jim Wilson's
4318 fix to differentiate between gcc1 & gcc2 compiled files so that we
4319 can debug calls that pass structs as args correctly.
4320 * symmisc.c (dump_symtab): If block was compiled with gcc, say
4321 so, and what version.
4322
b869d3f4
SG
4323 * remote.c (remote_wait): Make regs be char to avoid picayune
4324 ANSI compiler warnings.
4325
e7ae70e9
SG
4326 * energize.h: Move all external struct decls to inside of
4327 __STDC__, add prototype for energize_shell_wait().
4328 * energize.c (getpty): Clean up, make us really get a controlling
4329 terminal.
4330 * (energize_initialize): Disable SIGIO prior to setting up for
4331 I/O interrupts. Move setsid(), et. al. to getpty().
4332 * (energize_shell_wait): New routine to wait for things started
4333 via the shell command, uses wait() instead of /dev/proc.
4334 * Also, add prototype for execute_command_1().
4335
050d45c5
RP
4336Fri Sep 25 12:09:33 1992 K. Richard Pixley (rich@sendai.cygnus.com)
4337
310cc570
RP
4338 * inftarg.c (child_create_inferior, child_attach,
4339 child_mourn_inferior): collect unix child process stratum
4340 functions which live below the target vector into this file to
4341 facilitate host/target/native split. Also, make them static.
4342 * inflow.c (child_mourn_inferior): removed.
4343 * infrun.c (child_create_inferior, child_attach): removed.
4344 (resume): becomes global so that functions below the
4345 target vector can find it.
4346 * inferior.h (resume): add prototype.
4347 (child_mourn_inferior, child_create_inferior, child_attach):
4348 remove prototypes.
4349
050d45c5
RP
4350 * xcoffexec.c (exec_ops): child_attach and child_create_inferior
4351 replaced with find_default_attach and
4352 find_default_create_inferior.
4353
4354Fri Sep 25 10:21:04 1992 Ken Raeburn (raeburn@rtl.cygnus.com)
4355
4356 * i960-pinsn.c: Use _filtered routines for printing, so symbolic
4357 addresses don't get displayed in the wrong positions.
4358
8afd6ca5
RP
4359Fri Sep 25 09:52:47 1992 K. Richard Pixley (rich@sendai.cygnus.com)
4360
4361 Separate core functions along target vector in preparation for
4362 native support. Functions above vector now live in core.c. Those
4363 below in corelow.c.
4364
4365 * core.c (solib_add_stub, core_close, core_open, core_detach,
4366 get_core_registers, core_files_info, core_ops): moved to corelow.c
4367 (_initialize_core): removed addition of core_ops target.
4368 * corelow.c: new file.
4369 (solib_add_stub, core_close, core_open, core_detach,
4370 get_core_registers, core_files_info, core_ops): moved from core.c
4371 (_initialize_corelow): new function.
4372 * gdbcore.h (core_open, core_detach): added prototypes.
4373 (core_ops): add forward declaration.
4374 * Makefile.in (SFILES_MAINDIR): add core.c
4375 (OBS): add core.o
4376 (TSOBS): change core.o to corelow.o
4377
cdfab267
SG
4378Wed Sep 23 11:14:53 1992 Stu Grossman (grossman at cygnus.com)
4379
4380 * m68k-tdep.c (m68k_saved_pc_after_call): Use 'GDB_TARGET_IS_SUN3'
4381 instead of 'sun' predefined symbol so that trap analysis code is
4382 enabled only when the TARGET is a sun3.
4383
5e9a7f00
KR
4384Tue Sep 22 17:13:19 1992 Ken Raeburn (raeburn@cambridge.cygnus.com)
4385
4386 * tm-i960.h (ext_format_i960): Add top-level declaration.
4387 (REGISTER_CONVERT_TO_{VIRTUAL,RAW}): Don't declare it in nested
4388 blocks, else Sun4 compiler complains.
4389
ebeccdf0
JG
4390Tue Sep 22 00:43:51 1992 John Gilmore (gnu@cygnus.com)
4391
4392 * mips-pinsn.c (print_insn_arg, case 'B'): Disassemble `break'
4393 instruction's argument. Patch from jonathan@cs.stanford.edu
4394 (Jonathan Stone).
4395
5ee4e16c
JG
4396Mon Sep 21 18:16:30 1992 K. Richard Pixley (rich@sendai.cygnus.com)
4397
4398 Break the thread of control that implies that a unix child
4399 process will be the default target.
4400
4401 * target.c (find_default_run_target, find_default_attach,
4402 find_default_create_inferior, return_zero): new functions.
4403 (cleanup_target): Make return_zero the default for to_can_run.
4404
4405 * exec.c (exec_ops), core.c (core_ops): Replace child_attach and
4406 child_create_inferior references with find_default_XXX instead.
4407
4408 * target.h (struct target_ops): new field, to_can_run.
4409 (find_default_attach, find_default_create_inferior): new prototypes.
4410 (target_can_run): new macro.
4411
4412 * Also added a zero (default) to_can_run element to all static
4413 struct target_ops initializations throughout GDB, except:
4414 * inftarg.c (child_ops): Use new child_can_run() to enable child runs.
4415
4416 * infrun.c (child_create_inferior): Clean up error handling when
4417 no exec file is specified.
4418 (child_attach): Don't require exec file.
4419
b28d3617
JG
4420Mon Sep 21 19:43:13 1992 John Gilmore and K. Richard Pixley (gnu@cygnus.com)
4421
4422 Remove kill_inferior_fast, in favor of target_kill, which goes
4423 through the target vector.
4424
4425 * inferior.h (kill_inferior_fast): remove declaration.
4426
4427 * main.c (disconnect): call quit_cover using catch_errors rather
4428 than calling kill_inferior_fast directly. New way goes through
4429 the target vector, handles attached processes, and writes
4430 command history if appropriate.
4431 (quit_cover): new function, wrapper for quit_command.
4432
4433 * convex-xdep.c, go32-xdep.c, hppabsd-xdep.c, hppahpux-xdep.c,
4434 infptrace.c, procfs.c: Removed all instances of kill_inferior_fast,
4435 inlining them into the local kill_inferior when needed.
4436
6b50c5c2
JG
4437Mon Sep 21 19:23:05 1992 John Gilmore (gnu@cygnus.com)
4438
4439 * infrun.c (_initialize_infrun): Alias `i handle' == `i signals'.
4440 * stabsread.c (read_struct_type): Simplify complicated expression
4441 for dumb DECstation compiler.
4442
8f61b5e4
ILT
4443Mon Sep 21 14:54:35 1992 Ian Lance Taylor (ian@cygnus.com)
4444
4445 * m68k-pinsn (print_insn_arg, fetch_arg): added support for
4446 operands to memory management instructions, from WRS.
4447
538280d8
FF
4448Sep 20 08:42:12 1992 Fred Fish (fnf@cygnus.com)
4449
4450 * main.c (main): Back out previous language setting changes.
4451 Replace with simple default to C before processing any init
4452 files. There MUST be a language set, even in the absence of
4453 init files or executables, or expression parsing fails.
4454
d75710b0
FF
4455Sat Sep 19 09:52:26 1992 Fred Fish (fnf@cygnus.com)
4456
4457 * main.c (main): Move code that sets initial language to
4458 symfile.c. Fixup places where command files are processed to
4459 be consistent in setting a default language if none has been
4460 previously set.
4461 * symfile.c (set_initial_language): Add code moved from
4462 main() that sets an initial default language when a new
4463 symbol file is read.
4464 * symfile.c (symbol_file_command): Call set_initial_language.
4465 * symtab.c (find_main_psymtab): Add FIXME comment.
4466
45413b27
JG
4467Wed Sep 16 22:31:55 1992 K. Richard Pixley (rich@sendai.cygnus.com)
4468
4469 * breakpoint.c, sparc-tdep.c: comment changes.
f7fe7196
JG
4470 * configure.in: removed target_dependent line.
4471
4472 * remote-mm.c (mm_attach): change printf to error to prevent
4473 fallthrough bug.
e7ae70e9
SG
4474 * remote-udi.c (udi_attach): change printf to error to prevent
4475 fallthrough bug.
45413b27 4476
5f1c39ef
JG
4477 * rs6000-tdep.c (push_dummy_frame, pop_dummy_frame): replace
4478 calls to {fetch|store}_inferior_registers with calls to
4479 target_{fetch|store}_registers, for remote-target independence.
4480
dd9da95a
JG
4481Sat Sep 19 04:23:54 1992 John Gilmore (gnu@cygnus.com)
4482
4483 * Makefile.in: Fix bug I introduced in merging Rich's change.
4484 * infrun.c (child_create_inferior): Use proceed() rather than
4485 doing all the same stuff by hand.
4486
d40309c7
JG
4487Thu Sep 17 17:35:37 1992 K. Richard Pixley (rich@sendai.cygnus.com)
4488
4489 * Makefile.in, configure.in: add support for files used only when
4490 configured native, that is, when host = target.
4491
a4afec9a
JG
4492Wed Sep 16 23:03:23 1992 K. Richard Pixley (rich@sendai.cygnus.com)
4493
4494 * tm-sparc.h, xm-sparc.h: externs and macros relating to deferred
d40309c7 4495 stores are target dependent and were moved from xm to tm.
a4afec9a 4496
2e384b3b
JG
4497Sat Sep 19 03:14:37 1992 John Gilmore (gnu@cygnus.com)
4498
8c095066
JG
4499 * Makefile.in (gdb-all.texi): Build in objdir, not $srcdir.
4500
2e384b3b
JG
4501 * config/decstation.mh: Add MMALLOC_LIB and MMALLOC_DISABLE
4502 overrides, to avoid problem in xdr_bytes with malloc(0) => 0.
4503
dcc8abce
JG
4504Wed Sep 16 20:04:54 1992 K. Richard Pixley (rich@sendai.cygnus.com)
4505
4506 * target.h (struct target_ops): removed to_convert_to_virtual and
4507 to_convert_from_virtual elements. Initializations removed from
4508 all static initializations.
4509 (target_convert_to_virtual, target_convert_from_virtual):
4510 removed.
4511 (host_convert_to_virtual, host_convert_from_virtual): Removed
4512 forward declarations.
4513 * target.c (cleanup_target): removed default assignments for
4514 to_convert_to_virtual and to_convert_from_virtual.
4515 * inftarg.c (host_convert_to_virtual, host_convert_from_virtual):
4516 removed.
4517 * findvar.c (value_of_register, value_from_register):
4518 target_convert_to_virtual inlined.
4519 * infcmd.c (do_registers_info): target_convert_to_virtual inlined.
4520 * valops.c (value_assign): target_convert_from_virtual inlined.
4521
2886f8b2
JG
4522Fri Sep 18 02:07:39 1992 John Gilmore (gnu@cygnus.com)
4523
c35475f9
JG
4524 * main.c (gdb_readline): Avoid printf_filtered, which sets char
4525 position wrong if used for the prompt.
4526 * utils.c (puts_filtered): Comment: NOT a puts() replacement!
4527
2886f8b2
JG
4528 Support for accessing arbitrary MIPS stack frames in memory.
4529
4530 * blockframe.c (get_prev_frame_info): If INIT_FRAME_PC_FIRST is
4531 set, run it before INIT_EXTRA_FRAME_INFO.
4532 * stack.c (frame_info): If PRINT_EXTRA_FRAME_INFO defined, call it.
4533
4534 * mips-tdep.c (init_extra_frame_info): Only clobber the `frame'
4535 (FP) value in the frame_info struct if it is zero (as from top of
4536 execution stack).
4537 (setup_arbitrary_frame): Implement FRAME_SPECIFICATION_DYADIC.
4538
4539 * mips-xdep.c (fetch_inferior_registers): ZERO_REGNUM always
4540 comes back as zero. So does FP_REGNUM, as a trigger for
4541 init_extra_frame_info.
4542
4543 * tm-mips.h (INIT_FRAME_PC_FIRST): Kludge, FIXME, defined to get
4544 the program counter set before INIT_EXTRA_FRAME_INFO is run.
4545 (INIT_FRAME_PC): Defined to null.
4546 (PRINT_EXTRA_FRAME_INFO): print frame pointer location via symtab.
4547 (FRAME_SPECIFICATION_DYADIC): Ask for two args in frame command.
4548 Briefly explain MIPS stacks in GDB.
4549
d974236f
JG
4550Thu Sep 17 03:49:59 1992 John Gilmore (gnu@cygnus.com)
4551
cb1d36fc
JG
4552 * copying.awk, copying.c (show_copying_command,
4553 show_warranty_command): Rename from copying_info, warranty_info,
4554 to match command function conventions.
4555
d974236f
JG
4556 * utils.c (prompt_for_continue): Reinitialize more-counts
4557 before printing anything, and again afterward. Fix comments.
4558 (vfprintf_filtered): Eliminate static buffer; use auto buffer,
4559 or alloca() if needed.
4560
4561 * rs6000-xdep.c: Use correct conditional (IBM6000_TARGET) to
4562 detect native versus cross-host.
4563
f4992534
SG
4564Wed Sep 16 21:57:14 1992 Stu Grossman (grossman at cygnus.com)
4565
4566 * m68k-tdep.c (sun3_saved_pc_after_call): Only do trap check for
4567 Suns. Rename to m68k_saved_pc_after_call.
4568 * tm-68k-noun.h, tm-sun3.h (SAVED_PC_AFTER_CALL): Use
4569 m68k_saved... instead of sun3_saved...
4570
22473f72
JG
4571Wed Sep 16 17:00:07 1992 John Gilmore (gnu@cygnus.com)
4572
4573 * Makefile.in (update-depend, update-alldeps): Split out of
4574 setup-to-dist, for convenience in rebuilding the depend and
4575 alldeps.mak files.
4576 (assorted): Update to catch straggler files when building gdb.tar.Z.
4577
997cc2c0
JG
4578Tue Sep 15 01:18:50 1992 John Gilmore (gnu@cygnus.com)
4579
4580 Preliminary cleanup for splitting host/native/target.
4581
4582 * infptrace.c (child_resume): Don't deal with NO_SINGLE_STEP
4583 here; it is dealt with at a gdb-target-independent level.
4584 * rs6000-tdep.c (single_step): Don't call ptrace, we are a
4585 high toned routine. Fix return type to void.
6bb40269
JG
4586 * tm-rs6000.h (AIX_BUGGY_PTRACE_CALL): Zap, we think we fixed it.
4587 Rich and I believe the "real problem" was that both single_step
4588 and target_resume were issuing PT_CONTINUE calls. This would
4589 cause the second PT_CONTINUE to sometimes fail because the process
4590 was already running.
4591 * infptrace.c (child_resume): Remove AIX_BUGGY_PTRACE_CALL kludge.
997cc2c0 4592
5ca812d4
SG
4593Mon Sep 14 19:20:43 1992 Stu Grossman (grossman at cygnus.com)
4594
e7ae70e9
SG
4595 * energize.c (pty_to_kernel): Must check for EAGAIN as
4596 termination condition.
4597 (full_filename): Don't prepend dirname if filename begins with /.
4598 (breakpoint_notify, kernel_dispatch): Deal with DynamicLoad
4599 messages properly!!
4600 (getpty (NCR)): Lotsa bug fixes...
4601 (kernel_dispatch (case StopRType)): Use kill() instead of
4602 killpg() so we can deal with losing systems...
4603 (wait_for_events): Work around NCR select() lossage. It doesn't
4604 zero out readfds when select() returns zero.
4605 (energize_initialize): Use I_SETSIG to get SIGIO interrupts. Use
4606 getcwd() instead of getwd() (NCR getwd() seg faults).
4607 (energize_wait): Use sigaction() for NCR. Their version of signal()
4608 is unreliable by default.
4609
34da3608
SG
4610 * procfs.c (proc_wait): Call print_sys_errmsg() if we get an
4611 error from PIOCSWSTOP.
4612
a8e033f2
SG
4613 * breakpoint.c, core.c, exec.c, language.c, main.c, printcmd.c,
4614 symfile.c, target.c, valprint.c: Use _filtered form of *printf.
4615 defs.h, utils.c: Make vfprintf_filtered global.
4616
e7ae70e9
SG
4617 * energize.c (send_location): New routine to consolidate all
4618 places where we must notify kernel of where the given pc is.
4619 (cplus_demangle): Put single-quotes around demangled names.
4620 (energize_call_command): Call send_location() after doing up,
4621 down, and frame commands.
4622
549ff100
RP
4623Fri Sep 11 18:28:28 1992 Roland H. Pesch (pesch@fowanton.cygnus.com)
4624
d1d1ab12 4625 * doc/gdb.texinfo, doc/gdbinv-m.m4.in, doc/gdbinv-s.m4.in: first
e7ae70e9 4626 pass at doc for two new remote targets---29K using UDI, and Tandem
d1d1ab12
RP
4627 ST2000 using STDBUG.
4628
4629 * doc/all.m4, doc/none.m4: new m4 switch, _ST2000__
4630
4631 * doc/all.m4: turn on H8/300 stuff for generic manual
4632
549ff100
RP
4633 * doc/gdbinv-s.m4.in: remove text on special procedures to continue
4634 after explicit call to breakpoint() in serial stubs.
4635
3de61d8c
JG
4636Fri Sep 11 01:34:25 1992 John Gilmore (gnu@sphagnum.cygnus.com)
4637
57a9bb5f
JG
4638 * mipsread.c: Clean up some white space.
4639 (parse_symbol): Handle stEnd of stFile.
4640 (parse_partial_symbols): Remove old #if 0'd code. Handle stLocal.
4641
3de61d8c
JG
4642 * mips-xdep.c (REGISTER_PTRACE_ADDR, fetch_inferior_registers,
4643 store_inferior_registers): Replace unexplained numbers
4644 with manifest constants from a DECstation header file.
4645 * xm-mips.h (KERNEL_U_ADDR): Get from <machine/param.h>.
4646 (REGISTER_U_ADDR): Fix up for Ultrix 4.2.
4647
4648 * tm-tahoe.h, xm-tahoe.h (KERNEL_U_ADDR): Move macro to xm-tahoe.h.
4649
4650 * stack.c (_initialize_stack): "dow" should be a valid abbreviation
4651 for "down". Suggested by Richard Stallman.
4652
73386fff
KR
4653Thu Sep 10 15:26:07 1992 Ken Raeburn (raeburn@cambridge.cygnus.com)
4654
4655 * remote-vx.c: Rename realloc for inclusion of rpc/rpc.h, to avoid
4656 redeclaration bug on SunOS 4.
4657
4ddd278f
JG
4658Wed Sep 9 17:36:53 1992 John Gilmore (gnu@cygnus.com)
4659
4660 * i386-stub.c, sparc-stub.c (getpacket): Actually check checksums.
4661 * m68k-stub.c: Remove a few extraneous ANSI-isms.
4662 * remote-nindy.c (nindy_prepare_to_store): Only fetch regs if
4663 they aren't already there.
4664 * remote-vx.c (vx_prepare_to_store): Ditto.
4665 * xcoffread.c: Surround forward struct defns with #ifdef __STDC__.
4666
2640f7e1
JG
4667Wed Sep 9 16:50:22 1992 John Gilmore (gnu@cygnus.com)
4668
4669 Removed a large number of changes inserted by Per Bothner
4670 for C++ support. These will go back in when they've been
4671 examined.
4672
ed3f6049
SG
4673Tue Sep 8 21:05:18 1992 Stu Grossman (grossman at cygnus.com)
4674
4675 * serial.h: Fix prototye for serial_raw().
4676 * ser-bsd.c, ser-termios.c: Fix args for serial_open() &
4677 serial_write() to match prototypes.
4678 * remote-st2000.c (get_reg_name): Make *p be const.
4679
120f867e
KR
4680Tue Sep 8 17:24:52 1992 Ken Raeburn (raeburn@cambridge.cygnus.com)
4681
4682 * remote-nindy.c (nindy_fetch_registers): Make return type void,
4683 to agree with target structure field type.
4684 (nindy_store_registers): Ditto.
4685
4686 * Makefile (OPCODES): New var, pointing to opcodes library.
4687 (CLIBS, CDEPS): Include it.
4688 (saber_gdb): Load opcodes library.
4689
a090e706
SG
4690Tue Sep 8 15:22:06 1992 Stu Grossman (grossman at cygnus.com)
4691
4692 * a68v-xdep.c (store_inferior_registers): declare as void.
4693 * infptrace.c: HP/Apollos have ptrace.h in the wrong place.
4694 * remote-st2000.c: Massive changes to use new serial package.
4695 Also added 'connect' command to transparantly connect to serial
4696 port.
4697 * ser-termios.c: Big cleanup, use nicer coding conventions.
4698 * ser-bsd.c: New module, serial stuff for BSD systems.
4699 * serial.h: Define struct ttystate properly using HAVE_TERMIO.
4700 * xm-apollo68b.h: #define PTRACE_IN_WRONG_PLACE...
4701
4468ccfb
RP
4702Fri Sep 4 18:53:57 1992 Roland H. Pesch (pesch@fowanton.cygnus.com)
4703
4704 * doc/gdb.texinfo: fix shameful error of agreement reported by
4705 jimb@occs.cs.oberlin.edu (Jim Blandy)
4706 * doc/gdb.texinfo: remove old partial discussion of remote serial
4707 protocol (via serial debug stubs)
4708 * doc/gdbinv-m.m4.in, doc/gdbinv-s.m4.in: new section discussing
4709 use of serial debug stubs
4710
35fcebce
PB
4711Fri Sep 4 00:34:30 1992 Per Bothner (bothner@rtl.cygnus.com)
4712
35fcebce
PB
4713 * symfile.h: Declaration of set_demangling_style() moved
4714 here from demangle.h (which is now in ../include).
4715 * i386-xdep.c: Update comment.
35fcebce 4716
8005788c
RP
4717Thu Sep 3 13:44:46 1992 K. Richard Pixley (rich@sendai.cygnus.com)
4718
4719 * symtab.c (completion_list_add_symbol): restructured to optimize
2640f7e1
JG
4720 for time. First clip names that cannot match. Then clip any
4721 names we've already considered. Drop a redundant strncpy. Drop
4722 a redundant malloc and associated free for demangled names.
8005788c 4723
6c7e40b4
SG
4724Thu Sep 3 09:17:05 1992 Stu Grossman (grossman at cygnus.com)
4725
4726 * a68v-xdep.c (store_inferior_registers): Define as type void.
4727 * configure.in: Add host m68k-apollo*-bsd*.
4728 * demangle.c (struct demanglers): Use enum instead of constant
4729 value to keep braindamaged HP/Apollo compiler happy.
4730
546014f7
PB
4731Wed Sep 2 20:45:31 1992 Per Bothner (bothner@rtl.cygnus.com)
4732
4733 * utils.c (strcmp_iw): Add a hack to allow "FOO(ARGS)" to
4734 match "FOO". This allows 'break Foo' to work when Foo is
4735 a mangled C++ function. (See comment before function.)
4736
6131a42a
JG
4737Wed Sep 2 13:45:27 1992 John Gilmore (gnu@cygnus.com)
4738
82eabd43
JG
4739 * config/rs6000.mh (MH_CFLAGS): Circumvent IBM <rpc/rpc.h> bug,
4740 for files in vx-share/*.c.
4741 * xm-rs6000.h (fd_set): Circumvent the rs6000.mh circumvention,
4742 for normal GDB source files.
4743
6d7bfa9a
JG
4744 * Makefile.in (VERSION): Roll to 4.6.6.
4745
6131a42a
JG
4746 * tm-vx68.h, tm-es1800.h: Use tm-68k.h rather than tm-sun3.h.
4747 * tm-sun3.h: Remove STACK_END_ADDR, no longer used.
4748 * tm-sun3os4.h: Update comments.
4749 * xm-delta88.h: Remove STACK_END_ADDR.
4750
b52373a2
JG
4751Wed Sep 2 01:18:31 1992 John Gilmore (gnu@cygnus.com)
4752
6aef3bde
JG
4753 * Makefile.in (VERSION): Roll to 4.6.5.
4754
6131a42a
JG
4755 * infrun.c: Lint for recent `handle' changes.
4756
b52373a2
JG
4757 * ser-termios.c, ser-go32.c: Remove DEFUN crap, clean up.
4758 * serial.h (EXFUN): Remove all uses, convert to PARAMS.
4759 * config/sun4os4.mh: Include ser-termios.o. FIXME, all .mh files
4760 should include a ser-XXX.o module.
4761
4762 * dbxread.c (elfstab_build_psymtabs): Remove DEFUN crap.
4763 * defs.h, i960-pinsn.c, remote-hms.c: Replace CONST with simple const.
4764
4765 * configure.in: Map unrecognized sun 68k's, sun sparcs, into
4766 known suns in configure.in, rather than mapping them to unique
4767 config files that happen to duplicate other config files.
4768 * config/sun3.{mh,mt}: Remove (use identical sun3os4.*).
4769 * config/sun4.{mh,mt}: Remove (use identical sun4os4.*).
4770
ebb3a1e5
JG
4771Wed Sep 2 00:10:43 1992 John Gilmore (gnu@cygnus.com)
4772
4773 * configure.in (*-*-sunos*): Use trailing * to match all
4774 sub-variants of SunOS, e.g. sunos4* to match sunos4.1.1.
4775 (sparc-*-sunos3): Remove host & target. Sunos3 never shipped
4776 in production on Sun-4.
4777 ({a29k,i[34]86,i960}-*-elf): Add targets, equivalent to coff.
4778 (m68k-*-{aout,coff,elf}): Add targets, w/new config and tm files.
4779 (sparc-*-{aout,coff,elf}): Add targets, w/new config and tm files.
4780
4781 * config/m68k-un.mt, config/m68k-noun.mt, config/sparc-un.mt,
4782 config/sparc-noun.mt: New target configs for embedded.
4783 * config/sun4os3.{mh,mt}: Remove, never existed in production.
4784
4785 * tm-68k-un.h, tm-68k-noun.h, tm-spc-un.h, tm-spc-noun.h: New
4786 target definitions for embedded with and without underlines on
84a05e52 4787 identifiers.
ebb3a1e5
JG
4788
4789 * tm-sparc.h, tm-sun2.h, tm-sun3.h: Delete NAMES_HAVE_UNDERSCORE:
4790 not a parameter of the CPU, but of the development environment.
4791 * tm-es1800.h, tm-sunos.h, tm-vx68.h: Add NAMES_HAVE_UNDERSCORE.
4792
ea678717
JG
4793Tue Sep 1 17:31:45 1992 John Gilmore (gnu@cygnus.com)
4794
4795 * breakpoint.c (breakpoint_re_set): Avoid setting source symtab
4796 (which involves reading in main's symtab) if we have no breakpoints.
4797
95ff889e
FF
4798Mon Aug 31 13:47:45 1992 Fred Fish (fnf@cygnus.com)
4799
4800 * dwarfread.c (cu_language): New local variable to record
4801 language for current compilation unit being processed.
4802 * dwarfread.c (set_cu_language): New local function to decode
4803 and record language for current compilation unit being processed.
4804 * dwarfread.c (synthesize_typedef): Add local function to
4805 synthesize a typedef for C++ classes, structs, unions, and
4806 enumerations.
4807 * dwarfread.c (read_structure_scope): Synthesize typedefs
4808 for C++ classes, structs and unions.
4809 * dwarfread.c (read_enumeration): Synthesize typedefs for
4810 C++ enumerations.
4811 * dwarfread.c (read_file_scope): Call set_cu_language to
4812 record language for current compilation unit. After symtab
4813 is built, save this recorded language.
4814 * dwarfread.c (process_dies, add_partial_symbol, struct_type,
4815 scan_partial_symbols, new_symbol): Recognize TAG_class_type.
4816 * dwarfread.c (add_partial_symbol): Synthesize partial symbol
4817 typedefs for C++ classes, structs, unions, and enumerations.
4818 * dwarfread.c (scan_compilation_units): Call set_cu_language
4819 to record language for current compilation unit.
4820 * dwarfread.c (scan_partial_symbols): Call add_enum_psymbol here
4821 for TAG_enumeration_types, rather than in add_partial_symbol.
4822 * dwarfread.c (add_partial_symbol): Combine TAG_enumeration_type
4823 case with class, struct, and union type cases, now that they are
4824 the same. Remove tests for non-NULL name attributes, now done
4825 by callers.
4826 * gdbtypes.h (TYPE_CODE_CLASS): Add type for C++ classes, but
4827 treat as alias for TYPE_CODE_STRUCT for now.
4828
b68b44fa
ILT
4829Sun Aug 30 21:32:17 1992 Ian Lance Taylor (ian@cygnus.com)
4830
4831 * Makefile.in: map "gdb" through program_transform_name when
4832 installing.
4833
3877a219
FF
4834Sun Aug 30 21:18:51 1992 Fred Fish (fnf@cygnus.com)
4835
4836 * {i386-tdep.c, m68k-tdep.c, mips-tdep.c, sparc-tdep.c}
4837 (supply_gregset, fill_gregset, supply_fpregset, fill_fpregset):
4838 Use "regi" for local indexing through register numbers, reserving
4839 "regno" for the name of a specific register passed as an input
4840 parameter. Fix bug propagated through all versions that sometimes
4841 used regno as an index when it should have been regi, thus using
4842 -1 as an index in some cases.
4843
3402b1cf
PB
4844Sun Aug 30 18:15:17 1992 Per Bothner (bothner@rtl.cygnus.com)
4845
4846 * cplus-dem.c, demangle.h: Moved to ../libiberty and ../include,
4847 respectively, so same demangler can be used by other programs.
4848 * Makefile.in: Remove demangler stuff.
4849 * Makefile.in (depend): Pass -I../readline (needed for main.c).
4850 * demangle.c (_initialize_demangler): Tell demangler which
4851 CPLUS_MARKER to assume.
4852
d6776adb
JG
4853Fri Aug 28 13:13:33 1992 John Gilmore (gnu@cygnus.com)
4854
9b280a7f
JG
4855 RS/6000 portability changes (for hosting cross-debuggers).
4856
4857 * breakpoint.c (fixup_breakpoints): Re-kludge to IBM6000_TARGET.
4858 * buildsym.c, rs6000-xdep.c, rs6000-tdep.c, tm-rs6000.h,
4859 xcoffexec.c, xcoffread.c: Rename aixcoff to xcoff everywhere.
4860 * printcmd.c (print_frame_args): Remove an RS/6000 dependency.
4861 * stabsread.c (define_symbol): Remove RS/6000 dependencies.
4862 * tm-rs6000.h (ATTACH_DETACH): Remove: host-dependent.
4863 (PTRACE_ATTACH, PTRACE_DETACH): Remove: host-dep.
4864 (NO_SINGLE_STEP): Add, target-dependent.
4865 (loadinfotextindex): Lowercase, remove "aix_".
4866 * xm-rs6000.h: Add <sys/ptrace.h> for infptrace.c.
4867 (NO_SINGLE_STEP): Remove, target-dependent.
4868 * xcoffexec.c (vmap_symtab): Cleanup #if 0'd code.
4869 * xcoffread.c: Only build file if RS/6000 native GDB.
4870 (build_function_symbol): Remove #if 0'd code.
4871 * rs6000-tdep.c: Cleanup. Add static fn protos.
4872 Use CORE_ADDR for addresses throughout. Make void fns void.
4873 (pop_dummy_frame): Add FIXME about bogosity of design here.
4874 (rs6000_struct_return_address): Ditto.
4875 (frameless_function_invocation, frame_get_cache_fsr,
4876 frame_initial_stack_address, xcoff_relocate_symtab,
4877 xcoff_init_loadinfo, free_loadinfo, xcoff_add_toc_to_loadinfo,
4878 add_text_to_loadinfo, find_toc_address): Move from xdep file.
4879 Use CORE_ADDRs. Change identifiers to lowercase.
4880
4881 * rs6000-xdep.c: Make whole file conditional on native RS/6000,
4882 supplying dummy routines if non-native. Add prototype for
4883 static exec_one_dummy_insn. Move a mess of functions to
4884 rs6000-tdep.c (as above). Remove #if 0'd code.
4885
4886 * config/rs6000.mh (XDEPFILES): Move xcoffexec.o to target side.
4887 (XM_CLIBS): Add -lm to circumvent AIX 3.2 libc ldexp bug.
4888 * config/rs6000.mt (TDEPFILES): Adopt xcoffexec.o.
4889
4890 * gdbtypes.h (TYPE_ALLOC): Parenthesize result to avoid problems
4891 for callers.
4892
d6776adb
JG
4893 * vx-share/README, nindy-share/README: New files describing
4894 how these directories' code is shared, and with whom.
4895
ef131e13
JG
4896Thu Aug 27 20:04:56 1992 John Gilmore (gnu@cygnus.com)
4897
4898 * configure.in (target configurations): Reformat into table.
4899 Remove unsupp. Amigados host and target. Ditto Mach 386 target.
4900
4901 * tm-altosgas.h, tm-i386v-g.h: Remove ancient coff encap configs.
4902 * config/{altosgas.mt, i386v-g.mt, i386v32-g.mt}: Ditto.
4903 * config/{i386sco.mt,i386v32.mt}: Remove; identical to i386v.mt.
4904 * config/{go32.mt,i960.mt}: Remove; they only printed error msgs.
4905 * config/nindy960.mt: Remove useless MT_CFLAGS setting.
4906 * config/i386aout.mt: Use tm-i386v.h, not tm-i386v-g.h.
4907
4908 * Makefile.in (config-check): Add command to check whether
4909 configure.in is consistent with config/*.
4910
19758e9e
JG
4911Wed Aug 26 21:10:52 1992 John Gilmore (gnu@cygnus.com)
4912
4913 * configure.in (host configurations): Reformat nested cases into
4914 easy-to-maintain table.
b1aa08e2
JG
4915 (m68k-altos-*, i386v*): We don't care whether coff encap is used.
4916 config/{altosgas.mh, i386v-g.mh, i386v32-g.mh}: Remove.
19758e9e 4917
38e9ed49
FF
4918Wed Aug 26 16:02:01 1992 Fred Fish (fnf@cygnus.com)
4919
4920 * cplus-dem.c: Reorder args to most local functions to make them
4921 follow the consistent pattern of struct work_stuff pointer first,
4922 followed by pointer into string being demangled, followed by
4923 pointer to the string where the result is being stored, followed
4924 by other args. Also generally replace most variables of name
4925 "type" with "mangled" for consistency. They all pointed to the
4926 same string but half were one name and half the other.
4927 * cplus-dem.c (LONGERNAMES): Remove #ifndef's.
4928 * cplus-dem.c (demangle_qualified): Rewrite to clean up and allow
4929 use whenever a qualified name is being demangled.
4930 * cplus-dem.c (do_type): Qualified names are treated similarly
4931 to fundamental types, not as modifiers of fundamental types.
4932
ee97d673
SG
4933Mon Aug 24 20:44:38 1992 Stu Grossman (grossman at cygnus.com)
4934
38e9ed49
FF
4935 * configure.in: Add sparclite as a target.
4936
ee97d673
SG
4937 * sparc-stub.c (handle_exception): Flush instruction cache just
4938 before returning to the user. (hexToInt): Fix overzealous cleanup.
4939
93220abe
FF
4940Mon Aug 24 11:57:13 1992 Fred Fish (fnf@cygnus.com)
4941
4942 * infrun.c (handle_command): Rewrite to allow multiple signal
4943 numbers, signal number ranges, and to recognize "all" to mean all
4944 signals except those used by the debugger.
4945 * infrun.c (SET_SIGS, UNSET_SIGS): Macros used in handle_command
4946 to set or reset actions for specific signals.
4947
dac9734e
FF
4948Sun Aug 23 17:10:07 1992 Fred Fish (fnf@cygnus.com)
4949
4950 * coffread.c (decode_type): Call alloc_type to alloc new
4951 types.
4952 * stabsread.c (read_array_type, read_range_type, define_symbol):
4953 Call alloc_type to alloc new types.
4954 * stabsread.c (define_symbol): Move dbl_valu symbol field data
4955 from type_obstack to symbol_obstack.
4956 * stabsread.c (define_symbol): Move typedef_sym from type_obstack
4957 to symbol_obstack.
4958 * gdbtypes.h (TYPE_ALLOC): New macro to allocate space for data
4959 associated with a type, using the same mechanism as was used to
4960 allocate space for the type structure itself.
4961 * coffread.c (patch_type, coff_read_struct_type,
4962 coff_read_enum_type): Use TYPE_ALLOC.
4963 * dwarfread.c (struct_type): Use TYPE_ALLOC.
4964 * gdbtypes.c (create_array_type, check_stub_method,
4965 allocate_cplus_struct_type): Use TYPE_ALLOC.
4966 * mipsread.c (parse_symbol, parse_type): Use TYPE_ALLOC.
4967 * stabsread.c (read_struct_type, read_array_type, read_enum_type,
4968 read_range_type): Use TYPE_ALLOC.
4969
ca8820f9
FF
4970Sun Aug 23 11:04:08 1992 Fred Fish (fnf@cygnus.com)
4971
4972 * breakpoint.c (breakpoint_re_set): Select a default source
4973 symtab if one is not currently selected.
4974 * utils.c (query): Call wrap_here before building the output
4975 query string, to turn off wrapping and flush any buffered output.
4976 Otherwise our query may end up in the wrap buffer and never be
4977 seen by the user.
4978 * eval.c (evaluate_subexp): Report error when attempting to
4979 evaluate subscript for types without a target type, rather
4980 than dumping core by using the NULL pointer.
4981 * symfile.c (symbol_file_command): Forget current_source_symtab
4982 and current_source_line when discarding symbol table.
4983
42e8b658
JG
4984Sat Aug 22 22:33:20 1992 John Gilmore (gnu@cygnus.com)
4985
4986 Bug fixes from Andrew Heybey <ath@lcs.mit.edu>.
4987
4988 * tm-mips.h (REGISTER_VIRTUAL_TYPE): Float regs are float type.
4989 * mips-tdep.c (mips_print_register): Alloc enough space for two regs.
4990
39a13178
SG
4991Fri Aug 21 15:17:03 1992 Stu Grossman (grossman at cygnus.com)
4992
4993 * remote.c (remote_open): Fix baud rate setting to make -b flag
4994 work. (remote_wait): Change 'T' message parser to deal with new
4995 improved format which allows stub to send an arbitrary bunch of
4996 registers.
4997 * sparc-stub.c: General cleanups. (trap_low, handle_exception):
4998 make all this re-entrant by storing all state on the stack. Clean
4999 up memory error trapping. (computeSignal, set_debug_traps):
5000 make it all table driven. Make a start at a baud rate setting command.
5001
0d6d92c7
ILT
5002Wed Aug 19 10:23:27 1992 Ian Lance Taylor (ian@cygnus.com)
5003
664cf438
ILT
5004 * m68k-pinsn.c: handle new operand type 'r', introduced for cas2.
5005
0d6d92c7
ILT
5006 * remote-vx.c: redefine malloc to avoid buggy declaration on
5007 RS/6000 <rpc/types.h>.
5008 xm-rs6000.h: include <sys/select.h> to define fd_set for
5009 <rpc/svc.h> on RS/6000.
5010
4bbefa86
ILT
5011Tue Aug 18 14:48:24 1992 Ian Lance Taylor (ian@cygnus.com)
5012
5013 * Makefile.in: added FLAGS_TO_PASS variable, and passed it to
5014 recursive invocations of make. Always create installation
5015 directories.
5016
d6b38bfb
PB
5017Mon Aug 17 18:29:58 1992 Per Bothner (bothner@rtl.cygnus.com)
5018
5019 * m68k-pinsn.c: Minor fix in style of output (don't use
5020 range to indicate floating point control registers).
5021
e893a126
JG
5022Sat Aug 15 02:58:03 1992 John Gilmore (gnu@cygnus.com)
5023
67c9f54c
JG
5024 * m68k-pinsn.c: Surround extended support with #ifdef HAVE_68881.
5025
e893a126
JG
5026 * infcmd.c (registers_info): Handle multiple register names.
5027 Changes inspired by Roland McGrath.
5028
4ecee2f9
SG
5029Sat Aug 15 02:28:52 1992 Stu Grossman (grossman at cygnus.com)
5030
5031 * sparc-stub.c: New file. Mix it with your SPARClite
5032 application, and it will speak GDB remote protocol!
5033 * remote.c (remote_wait): Change 'T' (expedited reply) message to
e893a126 5034 deal with arbitrary registers. Needed for sparc-stub.
4ecee2f9 5035
3dc755fb
FF
5036Fri Aug 14 12:11:25 1992 Fred Fish (fnf@cygnus.com)
5037
5038 * cplus-dem.c (cplus_markers): Add table for gnu style and
5039 use throughout, in place of compile time constant CPLUS_MARKER.
5040 * cplus-dem.c (ARM_VTABLE_STRING, ARM_VTABLE_STRLEN): Add.
5041 * cplus-dem.c (cfront_special): New function, as suggested
5042 by pfieland@stratus.com.
5043 * cplus-dem.c (forget_types): New function.
5044 * cplus-dem.c (cplus_demangle): Call gnu_special, moved from
5045 demangle_prefix().
5046 * cplus-dem.c (mop_up): Call forget_types().
5047 * cplus-dem.c (AUTO_DEMANGLING, GNU_DEMANGLING, LUCID_DEMANGLING):
5048 Use throughout, instead of checking current_demangling_style.
5049 * cplus-dem.c (demangle_signature): When finding an explicit
5050 start of function args, forget all remembered types for
5051 lucid/cfront style demangling.
5052 * cplus-dem.c (demangle_prefix): In a sequence of two or more
5053 underbar characters, use last pair as the delimiter. Hoist
5054 gnu_special() call up to cplus_demangle(). Call cfront_special()
5055 when appropriate.
5056 * cplus-dem.c (cplus_special): Fix virtual table name demangling
5057 for inherited classes.
5058 * cplus-dem.c (demangle_args): Document quirks of numbered
5059 references to previously seen types.
5060 * dbxread.c (read_ofile_symtab, process_one_symbol):
5061 Use AUTO_DEMANGLING rather than explicitly checking
5062 current_demangling_style.
5063 * demangle.h: Add some comments.
5064 * demangle.h (AUTO_DEMANGLING, GNU_DEMANGLING, LUCID_DEMANGLING,
5065 CFRONT_DEMANGLING): New macros.
5066 * dwarfread.c (LCC_PRODUCER): Remove trailing space, which is
5067 not found in the actual producer string produced by lcc.
5068 * dwarfread.c (handle_producer): Use AUTO_DEMANGLING rather
5069 than explicitly checking current_demangling_style.
5070
4e8ea7a6
JG
5071Thu Aug 13 11:54:46 1992 John Gilmore (gnu at cygnus.com)
5072
5073 * breakpoint.c (enable_longjmp_breakpoint,
5074 disable_longjmp_breakpoint, set_longjmp_resume_breakpoint):
5075 Check for duplicate breakpoints at the same address. Bug report
5076 and preliminary fix from Dave Morrison, <drmorris@us.oracle.com>.
5077
7b5d9650
FF
5078Wed Aug 12 11:14:58 1992 Fred Fish (fnf@cygnus.com)
5079
5080 * buildsym.c (end_symtab): Document that end_symtab can return
5081 NULL under non-error conditions.
5082 * dwarfread.c (read_file_scope): Guard against dereferencing NULL
5083 returned from end_symtab for empty compilation units.
5084
6872cfda
JG
5085Tue Aug 11 02:49:39 1992 John Gilmore (gnu at cygnus.com)
5086
5087 * am29k-tdep.c: Lint from DECstation compiler.
5088 * mem-break.c: Restore test of BREAKPOINT size that Fred removed.
5089 As the man page says, "Sometimes you just can't get lint to shut
5090 up". That doesn't mean you should blow away the code it won't
5091 shut up about.
5092 * mips-xdep.c: Revise stubbing-out of code until Rich cleans
5093 it up over the next few weeks. Make mips x 29k build.
5094 * tm-29k.h (CALL_DUMMY): Make it work on cross-endian hosts.
5095 (FIX_CALL_DUMMY): Comment in the patching of the breakpoint,
5096 but leave it as a comment because the breakpoint instruction
5097 is not easily accessible at this moment (it's static, and if
5098 we define one here, it goes into every file compiled).
5099
a679650f
FF
5100Mon Aug 10 22:27:19 1992 Fred Fish (fnf@cygnus.com)
5101
5102 * Makefile.in (VERSION): Bump to 4.6.3.
5103 * dwarfread.c (scan_partial_symbols): Skip over DIE's within
5104 function scopes when building partial symbol tables.
5105 * objfiles.c (open_existing_mapped_file): Make it clear in
5106 warning message that out of date mapped files are ignored.
5107 * symtab.c (lookup_symtab_1, lookup_symbol): Print compilation
5108 unit source file name in error message.
5109
50055e94
FF
5110Sat Aug 8 23:12:22 1992 Fred Fish (fnf@cygnus.com)
5111
5112 * dwarfread.c (struct dieinfo): Add has_at_byte_size.
5113 * dwarfread.c (struct_type): In absence of AT_byte_size for
5114 bitfield, use size of object of member's type for the size of
5115 the anonymous object containing the bit field.
5116 * dwarfread.c (completedieinfo): Set has_at_byte_size when
5117 an AT_byte_size attribute is seen.
5118 * mipsread.c (psymtab_to_symtab_1): Fix misspelled cast to
5119 union aux_ext (was aux_ent).
5120 * i386-pinsn.c (print_insn): Cast 2'nd arg to read_memory from
5121 unsigned char* to char*, for Lucid compiler.
5122 * i386-tdep.c (codestream_fill): Fix cast of 2'nd arg to read_memory
5123 to be correct type (from unsigned char* to char*).
5124 * valprint.c (type_print_derivation_info): Minor tweak to placement
5125 of commas in derived class printing.
5126 * xcoffread.c (builtin_type): Fix misspelling in fatal message.
5127
f6492282
SC
5128Fri Aug 7 11:18:23 1992 Steve Chamberlain (sac@thepub.cygnus.com)
5129
5130 * xm-go32.h: Define LSEEK_NOT_LINEAR
a65841d7 5131 * source.c (find_source_lines): if LSEEK_NOT_LINEAR is defined
f6492282
SC
5132 then work out the lseek positions of newlines by running through
5133 the file and `tell'ing. This makes source file listing work on
5134 OS's where the relationship between physical position in file and
5135 canonical position is indeterminate, eg VMS and DOS.
5136
8275e802
FF
5137Thu Aug 6 10:56:01 1992 Fred Fish (fnf@cygnus.com)
5138
c02a37ea
FF
5139 * stabsread.c: Ensure that all members of all allocated structures
5140 are initialized to known state to avoid hard to find bugs with gdb
5141 using fields containing random data.
3416d90b
FF
5142 * buildsym.c (start_subfile): Compact dirname initialization.
5143 * buildsym.c (patch_subfile_names): New function.
8275e802 5144 * buildsym.c (end_symtab): Make copy of dirname on symbol obstack.
3416d90b
FF
5145 * buildsym.c (end_symtab): Free all malloc'd subfile fields.
5146 * buildsym.h (patch_subfile_names): Add prototype.
5147 * dbxread.c (process_one_symbol): Call patch_subfile_names.
8275e802 5148
38094c60
JG
5149Wed Aug 5 01:42:40 1992 John Gilmore (gnu at cygnus.com)
5150
e7ae70e9
SG
5151 * remote-udi.c: Update comments.
5152
38094c60
JG
5153 * remote.c (getpkt): Only force retransmission ten times;
5154 after that, assume bug in target code, and handle pkt anyway.
5155
d0d0f75e
SG
5156Mon Aug 3 17:06:20 1992 Stu Grossman (grossman at cygnus.com)
5157
5158 * configure.in: Add support for apollo 68k under BSD environment.
5159 * xm-apollo68b.h: New file to support above.
5160
9e4667f6
FF
5161Mon Aug 3 00:25:56 1992 Fred Fish (fnf@cygnus.com)
5162
5163 * configure.in: Recognize i486 host cpu.
5164 * valprint.c (type_print_derivation_info): Print derivation info
5165 in same form as class declarations in source.
5166 * valprint.c (type_print_varspec_suffix): Split arg printing
5167 code out to type_print_args function.
5168
cd46ffad 5169Sat Aug 1 13:32:58 1992 Fred Fish (fnf@cygnus.com)
ddce75e0 5170
cd46ffad
FF
5171 * dwarfread.c (struct dieinfo): Remove obsolete at_visibility,
5172 at_import, at_frame_base.
5173 * dwarfread.c (completedieinfo): Remove cases for obsolete
5174 AT_visibility, AT_import, and AT_frame_base attributes.
5175 * breakpoint.h (BREAKPOINT_MAX): Increase from 10 to 16 for
5176 i860, which can keep up to 4 shadow breakpoints.
5177 * tm-stratus.h (USG): Define.
5178 * tm-stratus.h (TARGET_BYTE_ORDER): Define to BIG_ENDIAN.
5179 * xm-stratus.h (HOST_BYTE_ORDER): Define to BIG_ENDIAN.
5180 * xm-stratus.h (xm-sysv4.h): Include, name changed from xm-svr4.h.
5181 * xm-stratus.h (NO_JOB_CONTROL): Remove define.
5182 * config/stratus.mt (TDEPFILES): Include files available from
5183 stratus that are not yet in release pending receipt of paperwork
5184 at FSF.
5185 * buildsym.c (finish_block): Minor code format change.
5186 * gdbtypes.h (struct field): Add to comments.
5187 * gdbtypes.h (virtual_field_bits): Add to comments.
5188 * objfiles.c (allocate_objfile): Change obstack interface to
5189 match FSF merging efforts.
ddce75e0 5190
cd46ffad 5191Mon Jul 27 21:14:44 1992 Fred Fish (fnf@cygnus.com)
ddce75e0 5192
cd46ffad
FF
5193 * Makefile.in (VERSION): Bump to 4.6.2.
5194 * Makefile.in (SFILES_MAINDIR): Add stabsread.c
5195 * Makefile.in (OBS): Add stabsread.o
5196 * Makefile.in (stabsread.o): Add build rule.
5197 * stabsread.c, stabsread.h: New files.
5198 * buildsym.c: Split out stabs specific support to stabsread.c.
5199 * buildsym.h: Split out stabs specific support to stabsread.h.
5200 * dbxread.c (stabsread.h): Include
5201 * dbxread.c (dbx_new_init): Call stabsread_new_init.
5202 * dbxread.c (dbx_psymtab_to_symtab_1): Call stabsread_init.
5203 * dbxread.c (read_ofile_symtab): Call end_stabs.
5204 * dbxread.c (process_one_symbol): Call end_stabs and start_stabs.
5205 * dbxread.c (elfstab_build_psymtabs): Call stabsread_new_init.
5206 * dwarfread.c (psymtab_to_symtab_1): Call buildsym_init, add
5207 really_free_pendings to cleanups.
5208 * elfread.c (elf_new_init): Call stabsread_new_init.
5209 * gdbtypes.c: Small changes to maintenance commands.
5210 * mipsread.c (stabsread.h): Include.
5211 * mipsread.c (psymtab_to_symtab_1): Call end_stabs.
5212 * xcoffread.c (stabsread.h): Include.
5213 * xcoffread.c (global_stabs): Remove redundant def.
5214 * xcoffread.c (read_xcoff_symtab): Call start_stabs and end_stabs.
ddce75e0 5215
d7808603
FF
5216Wed Jul 22 21:39:33 1992 Fred Fish (fnf@cygnus.com)
5217
5218 * lmode_inferior_valid, lmode_ours_valid: New static vars.
5219 * inflow.c (terminal_init_inferior, terminal_inferior,
5220 terminal_ours_1, initialize_inflow): Record and use state
5221 of lmode_inferior_valid and lmode_ours_valid.
5222
cd46ffad
FF
5223Wed Jul 22 04:23:03 1992 D. V. Henkel-Wallace (gumby@cygnus.com)
5224
5225 * es1800.c: use FREAD|FWRITE rather than _FREAD|_FWRITE.
5226 include <sgtty.h> on USG. (from sef).
5227
5228 * depend: es1800 dependency needed here.
5229
c0f1085b
FF
5230Mon Jul 20 21:09:53 1992 Fred Fish (fnf@cygnus.com)
5231
5232 * buildsym.c (read_struct_type): Initialize structs allocated
5233 with alloca, to avoid using random values from stack later on.
5234 * defs.h (fprintf_filtered): Add prototype.
5235 * gdbtypes.c (check_stub_method): Fix misleading comments.
5236 * gdbtypes.c (print_arg_types, dump_fn_fieldlists): New maint
5237 support functions.
5238 * gdbtypes.c (print_cplus_stuff, recursive_dump_type): Many
5239 small changes to maint support functions.
5240 * gdbtypes.h (cplus_struct_type): Reorganize member ordering
5241 for some fields and expand comments.
5242 * objfiles.c (allocate_objfile): Use new obstack_alloc_arg
5243 macro and track change to obstack_full_begin macro.
5244 * utils.c (fprintfi_filtered): New function.
5245 * valprint.c (type_print_base): Fixup field printing to not
5246 print extraneous lines and not print bogus "no data fields"
5247 messages for C++ classes with no data members. Also use new
5248 fprintfi_filtered function.
5249
cd46ffad
FF
5250Mon Jul 20 11:25:18 1992 D. V. Henkel-Wallace (gumby@cygnus.com)
5251
5252 * configure.in: es1800 ok for 68000 too.
5253
c0f1085b
FF
5254Sat Jul 18 15:48:58 1992 david d `zoo' zuhn (zoo at cirdan.cygnus.com)
5255
5256 * configure.in: echo error messages to stderr, not stdout
5257
5258Fri Jul 17 17:07:24 1992 david d `zoo' zuhn (zoo at cirdan.cygnus.com)
5259
5260 * configure.in: recognize hppa* instead of hppa
5261
f8e32b6e
SG
5262Fri Jul 17 16:52:04 1992 Stu Grossman (grossman at cygnus.com)
5263
e7ae70e9
SG
5264 * energize.c: Second cut at DynamicLoad message handling.
5265
5266 * energize.c: Relativize pathnames in #include statements.
5267 * (kernel_dispatch): Better error messages for unknown protocol
5268 messages.
5269 * (kernel_dispatch): First cut at DynamicLoad message handling.
5270
f8e32b6e
SG
5271 * Makefile.in: Remove -I../readline from all compilations,
5272 include a special case for main.o instead.
5273
d4902ab0
FF
5274Fri Jul 17 10:14:56 1992 Fred Fish (fnf@cygnus.com)
5275
51a9d78c
FF
5276 * eval.c (evaluate_subexp): Ask lookup_struct_elt_type to call
5277 error if it fails to find a member type, rather than return NULL
5278 and trigger a coredump.
5279 * symtab.c (lookup_symbol, lookup_demangled_block_symbol,
5280 lookup_demangled_partial_symbol,): Ask demangle_and_match to
5281 match on complete demanglings, including argument lists for member
5282 functions, rather than just accepting the first demangling that
5283 matches the class and function name.
d4902ab0
FF
5284 * dwarfread.c (read_file_scope): Pass contents of AT_comp_dir
5285 to start_symtab as the directory name.
5286 * dwarfread.c (completedieinfo): Strip off any leading hostname
5287 portion of the AT_comp_dir attribute string. Gdb doesn't know
5288 what to do with them (FIXME).
5289
cdaa27e9
SG
5290Thu Jul 16 13:37:09 1992 Stu Grossman (grossman at cygnus.com)
5291
cb48d806
SG
5292 * breakpoint.c (commands_command): Simplify code a bit, remove
5293 unnecessary fflush().
5294
cdaa27e9
SG
5295 * Makefile.in (OTHERS): Add gcc.patch.
5296 * partial-stab.h (N_SO): Fix handling of redundant SOs (again...)
5297
345e9ab8
FF
5298Thu Jul 16 12:07:40 1992 Fred Fish (fnf@cygnus.com)
5299
5300 * dwarfread.c (LCC_PRODUCER): Change to match current NCR
5301 lcc producer string.
5302
3ddcdc59
SG
5303Thu Jul 16 11:40:55 1992 Stu Grossman (grossman at cygnus.com)
5304
5305 * WHATS.NEW renamed to NEWS.
5306
d23639b2
FF
5307Wed Jul 15 11:37:31 1992 Fred Fish (fnf@cygnus.com)
5308
5309 * dbxread.c, dwarfread.c: Re-enable experimental code to
5310 automatically select demangling style.
5311 * demangle.c (DEFAULT_DEMANGLING_STYLE): Rename from simply
5312 DEMANGLING_STYLE, to make more descriptive. Revert back to
5313 "auto" as default. Comment use.
5314 * Makefile.in (DEMANGLING_STYLE, DEMANGLE_OPTS): Remove.
5315 * Makefile.in (${DEMANGLER}.o) Remove target and special
5316 compilation rule.
5317
5e85287e
FF
5318Tue Jul 14 23:05:14 1992 Fred Fish (fnf@cygnus.com)
5319
5320 * Makefile.in (VERSION): Bump to 4.6.1 (post-release versions).
5321
d1fbc20d
SG
5322Tue Jul 14 19:26:54 1992 Stu Grossman (grossman at cygnus.com)
5323
5324 * Makefile.in, demangle.c: Change default demangling style to
5325 gnu.
5326 * Makefile.in: Update version to 4.6 !!!
5327 * README, WHATS.NEW: Update for 4.6.
5328
7e94a17b
KR
5329Tue Jul 14 16:59:46 1992 Ken Raeburn (raeburn@cygnus.com)
5330
7b8ca0a0
KR
5331 * i960-tdep.c (frame_args_address): If arg pointer can't be found,
5332 use frame address.
5333
7e94a17b
KR
5334 * buildsym.c (read_struct_type): Don't die on TYPE_CODE_UNDEF
5335 nodes as base classes.
5336
efcc6e06
SG
5337Tue Jul 14 00:12:30 1992 Stu Grossman (grossman at cygnus.com)
5338
d1fbc20d
SG
5339 * alldeps.mak, depend: Update.
5340
930acbe5
SG
5341 * xcoffread.c: Add decl for section_offset to keep prototype happy.
5342
67ba524f
SG
5343 * Makefile.in (VERSION): 4.5.9.
5344
efcc6e06
SG
5345 * xm-hp300bsd.h: Add decl for strdup().
5346 * mips-tdep.c (heuristic_proc_desc): Fill in proc start addr in
5347 PDR. Cleanup a few things, fix compilation warnings.
5348
2dbde378
FF
5349Mon Jul 13 19:06:54 1992 Fred Fish (fnf@cygnus.com)
5350
5351 * Makefile.in (DEMANGLING_STYLE): New define to set default
5352 demangling style for C++. Defaults to "auto".
5353 * Makefile.in (DEMANGLE_OPTS): Use DEMANGLING_STYLE.
5354 * Makefile.in (SFILES_MAINDIR): Add demangle.c
5355 * Makefile.in (OBS): Add demangle.o
5356 * cplus-dem.c (GNU_DEMANGLING, ARM_DEMANGLING, LUCID_DEMANGLING):
5357 Remove compile time decisions about demangling style and replace
5358 with runtime decisions using current_demangling_style.
5359 * cplus-dem.c (main): Expand code included during building of
5360 standalone demangler to recognize demangling style options.
5361 * dbxread.c (demangle.h): Include.
5362 * dbxread.c (read_ofile_symtab, process_one_symbol): Set GNU C++
5363 demangling style if processing g++ code and current demangling style
5364 is auto (Note: this feature currently disabled.)
5365 * demangle.c: New file, generic demangling control.
5366 * demangle.h (demangling_styles): New enumeration to select one
5367 of several demangling styles. Also define string names for each
5368 style.
5369 * demangle.h (set_demangling_style): Add prototype.
5370 * dwarfread.c (demangle.h): Include.
5371 * dwarfread.c (GPLUS_PRODUCER, LCC_PRODUCER, CFRONT_PRODUCER):
5372 New producer string prefixes to recognize.
5373 * dwarfread.c (handle_producer): Consolidate actions for specific
5374 producers. Set demangling style based on producer string if
5375 current style is auto. (Note: this feature currently disabled.)
5376 * config/ncr3000.mt (DEMANGLE_OPTS): Remove.
5377
49f3be18
JG
5378Sat Jul 11 18:23:58 1992 John Gilmore (gnu at cygnus.com)
5379
5380 * config/sun4sol2.mh: Remove -xs flag, default INSTALL to cp.
5381
a252e715
PB
5382Fri Jul 10 13:58:34 1992 Per Bothner (bothner@rtl.cygnus.com)
5383
5384 * gdbtypes.c, gdbtypes.h: New function lookup_signed_typename.
5385 * c-exp.y: Call lookup_signed_typename() after seeing
5386 "signed". This handles "signed char" correctly.
5387 * c-exp.y: Recognize (but ignore) 'const' and 'volatile'
5388 keywords before a type specifier.
5389
311592ff
FF
5390Fri Jul 10 10:19:52 1992 Fred Fish (fnf@cygnus.com)
5391
5392 * command.c (lookup_cmd_1): Clarify descriptive comments.
5393 * gdbcmd.h (maintenanceprintlist): Add declaration.
5394 * main.c (maintenanceprintlist): Add definition.
5395 * main.c (gdb_completer_command_word_break_characters): Add.
5396 * main.c (symbol_completion_function): Switch completer word
5397 break character sets dynamically, based on whether completion is
5398 being done on commands or on something else.
5399 * main.c (initialize_cmd_lists): Init maintenanceprintlist.
5400 * maint.c: Include demangle.h.
5401 * maint.c (maintenance_demangle): New function.
5402 * maint.c (maintenance_print_command): New function.
5403 * maint.c (_initialize_maint_cmds): Reorganize some commands
5404 under new maintenance print subcommand.
5405
5c5b5d4b
PB
5406Thu Jul 9 19:05:27 1992 Per Bothner (bothner@rtl.cygnus.com)
5407
5408 * gdbtypes.c (lookup_struct_elt_type): If the input type is
5409 TYPE_CODE_PTR or TYPE_CODE_REF, dereference it to get the
5410 target type. Otherwise, 'whatis this.field' wouldn't work,
5411 which would be inconsistent, since 'print this.field' works.
5412 * buildsym.c (read_struct_type, read_enum_type): Clear
5413 TYPE_FLAG_STUB flag.
5414 * buildsym.c (cleanup_undefined_types): Don't rely on a
5415 flawed "Reasonable test to see if" a type has been defined
5416 since it was referred to; now we can just see if the
5417 TYPE_FLAG_STUB flag has been cleared.
5418 * valprint.c (print_type_base): Emit public/protected/private
5419 labels for methods as well as fields. Also, indent these labels
5420 2 spaces instead of 4, for a more conventional "look".
5421 * symtab.c (gdb_mangle_name): Undo Fred's change, unless
5422 GCC_MANGLE_BUG is defined. Also, handle destructors specially.
5423 * gcc.patch: New file. Contains patch for gcc (so people
5424 with gdb-2.2.x won't have to wait for a new gcc release).
5425
c5f5b482
KR
5426Thu Jul 9 18:44:26 1992 Ken Raeburn (raeburn@cygnus.com)
5427
7eec00ed
KR
5428 * i960-pinsn.c (mem): Variables reg[123] should point to CONST.
5429 (print_addr): Call print_address to show symbolic version as well.
5430
c5f5b482
KR
5431 * remote-vx.c (vx_kill): Don't look for arguments; they aren't
5432 being passed.
5433 (vx_read_register): Declare inferior_fp_regs. Delete code for
5434 copying "inferior_registers" around; the values are already in var
5435 "registers". Use correct size for register set.
5436
5437 * remote-vx.c (vx_write_register): Don't try writing FP regs; the
5438 target doesn't support it.
5439 (vx_read_register): Don't try reading them either.
5440
5441 * tm-i960.h (IP_REGNUM): Move to end of non-FP list, since the
5442 VxWorks back end reads them in one contiguous set except for this
5443 one.
5444 (register_names): Change "pc" to "pcw" to avoid confusion printing
5445 "$pc".
5446 * tm-vx960.h (PC_REGNUM): Use RIP_REGNUM, since that's where we
5447 find the PC under VxWorks.
5448
8050a57b
FF
5449Wed Jul 8 21:34:30 1992 Fred Fish (fnf@cygnus.com)
5450
5451 * dwarfread.c (alloc_utype, decode_subscr_data): Call alloc_type
5452 to create new blank types, instead of handcrafting them.
5453 * defs.h (printfi_filtered): Add prototype.
5454 * utils.c (printfi_filtered): New function.
5455 * gdbtypes.c (recursive_dump_type): Use printfi_filtered to
5456 to simplify the code. Other cleanups.
5457 * gdbtypes.c (check_stub_method): Demangle using DMGL_ANSI.
5458 * gdbtypes.h (struct cplus_struct_type): Add comments describing
5459 use of various fields.
5460 * gdbtypes.c (print_bit_vector, print_cplus_stuff): New functions.
5461 * c-exp.y (%token): Add CLASS as a token for C++, add grammar
5462 production that currently treats it exactly the same as STRUCT.
5463 * c-exp.y (yylex): Recognize "class" as token CLASS.
5464 * symtab.c (gdb_mangle_name): Rewrite to match current g++ stabs.
5465 * symtab.c (decode_line_1): Fix to pass quoted args on down to
5466 general symbol handling code. Call cplus_mangle_opname with
5467 DMGL_ANSI.
5468 * symtab.c (decode_line_2): Print demangled function names in
5469 breakpoint menus, instead of just file and line number.
5470 * symtab.c (name_match): Call cplus_demangle with DMGL_ANSI.
5471 * valprint.c (type_print_base): Print "class" for C++ classes,
5472 rather than "struct". Print section labels for public, protected
5473 and private members of C++ classes.
5474 * values.c: Include demangle.h.
5475 * values.c (value_headof): Call cplus_demangle with DMGL_ANSI.
5476
e17e8e0e
SG
5477Wed Jul 8 17:23:07 1992 Stu Grossman (grossman at cygnus.com)
5478
5479 * Makefile.in (VERSION): Update to 4.5.8.
5480
5481 Wed Jul 8 00:11:02 1992 Stu Grossman (grossman at cygnus.com)
784fd92b
SG
5482
5483 * dbxread.c (dbx_symfile_init): Init stab_section_info to NULL to
5484 prevent crashes when examining cross-targets.
5485 * dbxread.c (process_one_symbol): Include directory name when
5486 calling start_subfile for SOL & BINCL symbols. This allows gdb to
5487 find include files, and yacc/lex sources when the cwd doesn't match
5488 that in which the object was compiled.
5489 * objfiles.h (ALL_MSYMBOLS): Don't seg fault when there are no
5490 msymbols.
5491 * symtab.c (lookup_symtab_1): Rewrite. It now handles include
5492 files.
5493
2e9309df
FF
5494Tue Jul 7 09:00:42 1992 Fred Fish (fnf@cygnus.com)
5495
5496 * maint.c (maintenance_command, maintenance_info_command):
5497 Install with allow_unknown as 0 and call help_list to show
5498 list of possibilities when no subcommand is specified.
5499
498f1df0
FF
5500Tue Jul 7 00:20:29 1992 Fred Fish (fnf@cygnus.com)
5501
5502 * configure.in: Add m68k-ericsson-*.
5503 * remote-es1800.c, tm-es1800.h, config/es1800.mt: New files.
5504
0239d9b3
FF
5505Sun Jul 5 17:17:16 1992 Fred Fish (fnf@cygnus.com)
5506
5507 * maint.c: New file.
5508 * Makefile.in (SFILES_MAINDIR): Add new file maint.c.
5509 * Makefile.in (OBS): Add new file maint.o.
5510 * defs.h (command_class): Add class_maintenance.
5511 * defs.h (MAINTENANCE_CMDS): Default to including maintenance
5512 commands. Allow for them (and other nonessential parts of gdb)
5513 to be selectively left out under special circumstances.
5514 * gdbtypes.c (recursive_dump_type): New function; supports
5515 maintenance print-type command.
5516 * gdbtypes.h (recursive_dump_type, maintenance_print_type):
5517 Add prototypes.
5518 * main.c (maintenancelist, maintenanceinfolist): Add maintenance
5519 command lists.
5520 * main.c (initialize_cmd_lists): Eliminate unnecessary casts on
5521 initializers. Add initializations for setprintlist, showprintlist,
5522 setchecklist, showchecklist, maintenancelist, and maintenanceinfolist.
5523 * printcmd.c (maintenance_print_type): New maintenance cmd.
5524 * valprint.c (setprintlist, showprintlist): Move to main.c, as
5525 implied by comment that all cmd lists are owned by main.c.
5526 * infcmd.c (unsetlist): Move to main.c, as implied by comment
5527 that all cmd lists are owned by main.c.
5528 * language.c (setchecklist, showchecklist): Move to main.c, as
5529 implied by comment that all cmd lists are owned by main.c
5530 * breakpoint.c (enablelist, enablebreaklist, disablelist, cmdlist,
5531 deletelist): Remove redundant declarations (also in gdbcmd.h).
5532 * symmisc.c (printsyms_command): Now maintenance_print_symbols.
5533 * symmisc.c (printmsyms_command): Now maintenance_print_msymbols.
5534 * symmisc.c (printpsyms_command): Now maintenance_print_psymbols.
5535 * symmisc.c (printobjfiles_command): Now maintenance_print_objfiles.
5536 * symtab.h (maintenance_print_symbols, maintenance_print_psymbols,
5537 maintenance_print_msymbols, maintenance_print_objfiles):
5538 Add prototypes.
5539 * symmisc.c (printsyms_command, printpsyms_command,
5540 printmsyms_command, printobjfiles_command): Removed from
5541 _initialize_symmisc.
5542 * main.c (dump_me_command): Moved to maint.c and renamed to
5543 maintenance_dump_me.
5544 * breakpoint.c (all_breakpoints_info): Rename to
5545 maintenance_info_breakpoints.
5546 * breakpoint.c (_initialize_breakpoint): Convert add_info of
5547 all_breakpoints_info to add maintenance_info_breakpoints to the
5548 maintenanceinfolist instead.
5549 main.c (initialize_main): Set up maintenance class commands.
5550
e7ae70e9
SG
5551Sun Jul 5 11:03:53 1992 Stu Grossman (grossman at cygnus.com)
5552
5553 * energize-patches: Fix minor problems with building energize lib.
5554
5555 * energize-patches: Change names of all cadillac procedure calls
5556 to be energize procedure calls. Simplify many hooks by moving
5557 tests energize.c. Configure energize, and build it automatically now.
5558
91fef76b
FF
5559Sun Jul 5 09:43:28 1992 Fred Fish (fnf@cygnus.com)
5560
5561 * Makefile.in (VERSION): Bump to 4.5.7.
5562 * cplus-dem.c (demangle_args): Validate index for previously
5563 seen type to guard against bogus values from malformed manglings.
5564 * valops.c (value_struct_elt_for_reference): Guard against
5565 blindly using NULL return value from lookup_symbol.
5566
e7ae70e9
SG
5567Sun Jul 5 09:46:43 1992 Stu Grossman (grossman at cygnus.com)
5568
5569 * cadillac.c, cadillac-patches: Rename to energize.c and
5570 energize-patches. Change all routines and variables named
5571 'cadillac*' to 'energize*'. Create new file called energize.h to
5572 hold all interface declarations.
5573
5574 * deblib/connection/*: Move all of this stuff into energize/, but
5575 delete unneeded files.
5576
ec8ceca3
JG
5577Sun Jul 5 03:06:39 1992 John Gilmore (gnu at cygnus.com)
5578
23053b80
JG
5579 * tm-sysv4.h (NAMES_HAVE_UNDERSCORE): SVR4 systems don't.
5580
ec8ceca3
JG
5581 * buildsym.c (finish_block): Fix thinko `inner block' complaints.
5582 * dbxread.c (process_one_symbol): Parse N_OPT "gcc2_compiled.".
5583 * procfs.c (proc_set_exec_trap): Set run-on-last-close flag on
5584 child processes, to avoid dead ones "hanging around" after GDB exits.
5585 (attach): Always stop the process if it needs it. Set RLC flag
5586 when attaching running processes, so it will continue if we detach
5587 it, quit, or are killed.
5588 (detach): Clear faults and set RLC flag to make process run
5589 when we close it.
5590 (open_proc_file): New `mode' argument for O_RDONLY or O_RDWR.
5591 Callers changed.
5592 (info_proc): Open process O_RDONLY, so we can see any process,
5593 even those controlled by debuggers.
5594 * tm-sun4sol2.h (SUN_FIXED_LBRAC_BUG): They did (in Sol 2).
5595
2670f34d
JG
5596Sat Jul 4 03:43:38 1992 John Gilmore (gnu at cygnus.com)
5597
5598 Relocate symbols using an array of section_offsets, rather than a
5599 single `addr' or `offset'. This makes Solaris-2 support work, and
5600 permits better VxWorks (and maybe xcoff) support later.
5601
5602 * symtab.h (struct section_offsets): New structure for keeping
5603 a set of offsets, rather than a single one.
5604 (struct objfile): Replace addr with section_offsets member.
5605 * symfile.h: Add sym_offsets to struct sym_fns. Conforming changes.
5606 * gdb-stabs.h: New include file with `symbol type specific'
5607 parameters for psymtabs and objfiles.
5608 * Makefile.in (HFILES): Add gdb-stabs.h.
5609 * buildsym.h (start_psymtab, process_one_symbol): Fix prototypes.
5610 * coffread.c: Conforming changes. Fake offset array always 0.
5611 * dbxread.c: Conforming changes.
5612 (struct dbx_symfile_info): Move to gdb-stabs.h.
5613 (start_psymtab): Call elfstab_offset_sections to calculate good
5614 offsets for this source file, based on the ELF symbol table info.
5615 (read_ofile_symtab): Yank N_CATCH, which is dead.
5616 (process_one_symbol, N_CATCH): Yank.
5617 (", N_FUN, N_FNAME, N_FN, N_FN_SEQ, N_SO, N_SOL, N_ENTRY):
5618 Relocate with SECT_OFF_TEXT.
5619 (", N_STSYM, N_LCSYM, N_ROSYM): Grope around in the stab string
5620 to distinguish relocatable from absolute symbols. Then, if not
5621 absolute, do:
5622 (", N_STSYM, N_DSLINE): SECT_OFF_DATA.
5623 (", N_LCSYM, N_BSLINE): SECT_OFF_BSS.
5624 (", N_ROSYM): SECT_OFF_RODATA.
5625 (elfstab_build_psymtabs): Caller has allocated dbx_symfile_info.
5626 (dbx_symfile_offsets): Add to translate addr to offset.
5627 * dwarfread.c: Conforming changes. Single offset currently used.
5628 * elfread.c: Add various complaints about elf/stab stuff.
5629 #include gdb-stabs.h. Conforming changes, using a single offset.
5630 (elf_symtab_read): Record info from BSF_FILE symbols, and local
5631 variables called "Bbss.bss", "Ddata.data", and "Drodata.rodata",
5632 for later use in building psymtabs.
5633 (elf_symfile_read): Allocate dbx_symfile_info here, to keep
5634 the info collected in elf_symtab_read. Cleanup calls free_elfinfo.
5635 (free_elfinfo): New fn, frees all chained stab_section_infos
5636 in an objfile, and zaps the start-of-chain pointer.
5637 (elfstab_offset_sections): New fn, looks in stab_section_info
5638 chain to determine section bases to relocate a psymtab's worth
5639 of symbols, as they are being read.
5640 * mipsread.c: Conforming changes. Stabs-reading will relocate
5641 using one offset. MIPS-reading will not relocate at all.
5642 * partial-stab.h: Relocate different symbol types using different
5643 offsets from section_offsets.
5644 * symfile.c: Conforming changes.
5645 (find_lowest_section): Unused function to use later
5646 to free us from the Tyranny of the Text Section.
5647 (syms_from_objfile): Translate absolute arg ADDR to offsets used
5648 in all lower layers of symbol reading. Call format-specific
5649 sym_offsets function to initialize offsets for high speed symbol
5650 reading.
5651 (symbol_file_add): Call reinit_frame_cache so callers don't have to.
5652 (symbol_file_command, add_symbol_file_command): Callers changed.
5653 * symmisc.c (dump_psymtab): Print new relocation parameters.
5654 * xcoffread.c: Corresponding changes.
5655
5656 * buildsym.c: Tidy innerblock_complaint and blockvector_complaint.
5657 * main.c (main): Read the $HOME/.gdbinit file before processing
5658 the argv arguments (e.g. reading symbol files or core
5659 files). This allows global parameters to be set, which will apply
5660 during the symbol reading. The ./.gdbinit is still read after
5661 argv processing.
5662 * symtab.c (list_symbols): `i variables' shouldn't show enum values.
5663 * xcoffexec.c: Clean up quote inside comment.
5664
4ed3a9ea
FF
5665Fri Jul 3 20:18:26 1992 Fred Fish (fnf@cygnus.com)
5666
5667 * breakpoint.c, buildsym.c, c-exp.y, coffread.c, command.c,
5668 core.c, cplus-dem.c, dbxread.c, dwarfread.c, elfread.c, environ.c,
5669 eval.c, findvar.c, gdbtypes.c, hppabsd-tdep.c, hppahpux-tdep.c,
5670 i386-tdep.c, ieee-float.c, infcmd.c, inflow.c, infptrace.c,
5671 infrun.c, m2-exp.y, mipsread.c, objfiles.c, parse.c, procfs.c,
5672 putenv.c, remote-mm.c, remote-vx.c, solib.c, sparc-tdep.c,
5673 sparc-xdep.c, stack.c, symfile.c, symtab.c, symtab.h, target.c,
5674 tm-i386v.h, tm-sparc.h, utils.c, valarith.c, valops.c, valprint.c,
5675 values.c, xcoffread.c:
5676 Remove "(void)" casts from function calls where the return value
5677 is ignored, in accordance with GNU coding standards.
5678
4c7c6bab
JG
5679Fri Jul 3 00:00:49 1992 John Gilmore (gnu at cygnus.com)
5680
5681 * dbxread.c (process_one_symbol): Ignore N_MAIN, N_ENDM for Solaris.
5682 * partial-stab.h: Ignore N_ENDM.
5683 * elfread.c (elf_symtab_read): Ignore symbols that don't have a
5684 CODE or DATA section attachment. This eliminates a lot of random
5685 values from shared libraries, which screw up the ordinary symbols
5686 in the address ranges they happen to overlap.
5687 * buildsym.c (define_symbol): Eliminate special tests
5688 for function types; move into "function" cases in switch statement.
5689 (define_symbol: 'f', 'F', 'P'): Process all parameter types
5690 in case they define new type numbers. But ignore them (FIXME).
5691 ('k', 'B'): Ignore const and volatile if we see them (FIXME).
5692 (read_sun_builtin_type): Add commentary.
5693
37e2f5cb
DZ
5694Wed Jul 1 00:47:02 1992 david d `zoo' zuhn (zoo at cirdan.cygnus.com)
5695
5696 * xm-rs6000.h: define MEM_FNS_DECLARED
5697
43a16f26
JG
5698Tue Jun 30 02:25:10 1992 John Gilmore (gnu at cygnus.com)
5699
5700 * tm-mips.h (GDB_TARGET_IS_MIPS): Define for mips-xdep.c.
5701 (READ_MIPS_FORMAT, COFF_FORMAT): Remove, unused now.
5702 * mips-xdep.c: Remove most include files (unused, caused errs).
5703 (fetch_core_registers): Use right parameters in dummy fn.
5704
c47793da
JG
5705Mon Jun 29 18:30:57 1992 John Gilmore (gnu at cygnus.com)
5706
0f552c5f
JG
5707 * buildsym.c (scan_file_globals): Beware the null file.
5708 Fix from Jim Williams.
5709
5710 * stack.c (return_command): Evaluate expression *before* popping
5711 off the stack frames! Fix inspired by Jim Williams.
5712 (up_silently_command, down_silently_command): No sel frame is error.
5713
5714 * defs.h (memcpy, memset): Conditionalize decls on
5715 #ifndef MEM_FNS_DECLARED, since DECstation differs.
5716 (alloca): Break out the STDC and non-STDC alloca cases, to make
5717 it work on old preprocessors as well as "picky ANSI" ones.
5718 * xm-mips.h (memcpy, memset): Declare, and set MEM_FNS_DECLARED.
5719
5720 * mips-tdep.c (heuristic_proc_start): Zero arg produces zero.
5721 * utils.c (fputs_demangled): Rename SLOP since DECstation system
5722 header files define it!
5723
c47793da
JG
5724 * tm-29k.h (BREAKPOINT): Allow it to be overridden with -D.
5725
51b57ded
FF
5726Mon Jun 29 16:30:25 1992 Fred Fish (fnf@cygnus.com)
5727
5728 * dbxread.c, i386-pinsn.c, i386-tdep.c, regex.c, solib.c, symmisc.c,
5729 symtab.h, tm-i386v4.h, valprint.c, values.c: Lint.
5730 * breakpoint.c, c-exp.y, coffread.c, command.c, environ.c, eval.c,
5731 findvar.c, infcmd.c, infptrace.c, infrun.c, m2-exp.y, parse.c,
5732 putenv.c, solib.c, sparc-xdep.c, symtab.c, tm-i386v.h, tm-sparc.h,
5733 utils.c, valarith.c, valops.c, valprint.c, values.c:
5734 Replace bcopy() use with memcpy(), which is more standard and can
5735 take advantage of gcc's builtin functions for increased performance.
5736 * breakpoint.c, buildsym.c, coffread.c, dbxread.c, i386-tdep.c,
5737 ieee-float.c, infcmd.c, sparc-tdep.c, stack.c, symtab.c, symtab.h,
5738 target.c, values.c:
5739 Replace bzero() use with memset(), which is more standard and can
5740 take advantage of gcc's builtin functions for increased performance.
5741 * i386-tdep.c, main.c, valprint.c:
5742 Replace bcmp() use with memcmp(), which is more standard and can
5743 take advantage of gcc's builtin functions for increased performance.
5744
22fd4704
FF
5745Sun Jun 28 13:30:22 1992 Fred Fish (fnf@cygnus.com)
5746
5747 * remote.c (remote_wait): Fix cast on signal() call.
5748 * defs.h (alloca): More diddling with alloca. Have to ensure
5749 that it has a prototype, so that if alloca is defined as a macro
5750 that takes an arg, the definition is seen as a use of a macro
5751 that takes an arg, to satisfy picky ANSI preprocessors.
5752
74fb91be
FF
5753Sat Jun 27 12:12:20 1992 Fred Fish (fnf@cygnus.com)
5754
5755 * sparc-pinsn.c: Use <string.h> rather than "string.h", for
5756 consistency with all other gdb files.
e7ae70e9
SG
5757 * cadillac.c: Use <string.h> rather than <strings.h>.
5758 * cadillac.c (kernel_dispatch): Convert rindex usage to strrchr.
74fb91be
FF
5759 * Makefile.in (MAKE): Remove definition for consistency with
5760 other Makefile.in files and to fix problem with recursive makes.
5761
3a1e7a62
JG
5762Fri Jun 26 19:03:23 1992 John Gilmore (gnu at cygnus.com)
5763
5764 * hppahpux-xdep.c (child_xfer_memory): Avoid PT_WDUSER because it
5765 crashes H-PUX.
5766
b951b38d
SC
5767Fri Jun 26 11:09:10 1992 Steve Chamberlain (sac@thepub.cygnus.com)
5768
5769 * source.c (print_source_lines): for DOS interoperability; don't
5770 print CR (013) as ^M.
5771
99fd9e3e
SG
5772Thu Jun 25 15:18:42 1992 Stu Grossman (grossman at cygnus.com)
5773
bf18ac80
SG
5774 * dbxread.c (dbx_symfile_init): Move more code under hp9000s800
5775 conditional.
5776 * hppabsd-core.c: Don't include "param.h", include <sys/param.h>
5777 instead.
5778 * remote.c (remote_wait): Cast signal to void * to avoid warning
5779 from busted HP compiler.
5780
cf79373a
SG
5781 * partial-stab.h (N_SO): Rearrange code a little so that all SO
5782 stabs cause end_psymtab to be called.
5783
50a11e49
SG
5784 * buildsym.c (read_sun_builtin_type): Handle new FCS Sun CC
5785 compiler feature of putting 'c' into basic type descriptors for
5786 all forms of char.
5787
99fd9e3e
SG
5788 * procfs.c (child_resume): Work around Solaris (on Sparc) lossage
5789 where there is no place for nPC in prrun struct.
5790
50e0dc41
FF
5791Thu Jun 25 12:06:00 1992 Fred Fish (fnf@cygnus.com)
5792
5793 * mipsread.c: Pass NULL name pointer to init_type, not 0.
5794 * gdbtypes.c (init_type): Use copy of typename on type_obstack.
5795 * dwarfread.c (enum_type): Save enum names on type_obstack.
5796 * dwarfread.c (struct_type): Save member name on type_obstack.
5797 * symtab.c (_initialize_symtab): Fix misspelling.
5798 * regex.c (store_jump, insert_jump): Return void.
5799
5140562f
JG
5800Thu Jun 25 04:00:10 1992 John Gilmore (gnu at cygnus.com)
5801
debd3443
JG
5802 * defs.h (PARAMS): Move to ../include/ansidecl.h.
5803 (alloca): Declare return type on SPARC, since Sun doesn't.
5804 (*_BYTE_ORDER): Improve comment: *must* be defined.
5805
5140562f
JG
5806 * tm-hppa.h: New file, architectural definition of HP PA.
5807 * tm-hppabsd.h, tm-hppahpux.h: Shrink to deltas from tm-hppa.h.
5808
5809 * am29k-pinsn.c, am29k-tdep.c, copying.awk, copying.c,
5810 hppa-coredep.c, hppa-pinsn.c, hppabsd-core.c, hppabsd-tdep.c,
e7ae70e9 5811 hppabsd-xdep.c, hppahpux-tdep.c, hppahpux-xdep.c, remote-udi.c,
5140562f
JG
5812 ser-go32.c, xcoffsolib.c: Remove <stdio.h> which is already in
5813 "defs.h".
5814
5815 * hppa-coredep.c, hppa-pinsn.c, hppabsd-core.c, hppabsd-tdep.c,
5816 hppabsd-xdep.c, hppahpux-tdep.c, hppahpux-xdep.c, xcoffsolib.c,
5817 xcoffsolib.h, xm-go32.h, xm-hppabsd.h, xm-hppahpux.h: Copyrights.
5818
fef9f55c
JG
5819Wed Jun 24 12:53:20 1992 John Gilmore (gnu at cygnus.com)
5820
4d38b5a8
JG
5821 * printcmd.c (output_command): Thinko.
5822 (x_command): Only set remembered size/format if cmd succeeds.
5823
fef9f55c
JG
5824 * dbxread.c (read_ofile_symtab): Remove N_CATCH special case,
5825 since it is no longer used and burns time for every symbol read.
5826 (process_one_symbol): Treat N_CATCH like default (complain).
5827
369172bb
SG
5828Wed Jun 24 00:26:56 1992 Stu Grossman (grossman at cygnus.com)
5829
5830 * partial-stab.h (case N_TEXT): Fix fencepost error when
5831 detecting start of new symbol info after reading symtab for a
5832 module with a zero length TEXT segment.
5833
e676a15f
FF
5834Tue Jun 23 21:46:26 1992 Fred Fish (fnf@cygnus.com)
5835
5836 * Makefile.in (VERSION): Bump to 4.5.6.
5837 * coffread.c (coff_end_symtab): Cast 2nd arg of complain() to
5838 correct type.
5839 * defs.h (NORETURN): Define away for Lucid compiler.
5840 * remote.c (remote_timer, remote_interrupt): Signal handlers
5841 take one int arg.
5842 * ser-termios.c (serial_write, serial_close): Return whatever
5843 value the write/close call returns, rather than falling off end.
5844 * inferior.h (PTRACE_ARG3_TYPE): Third arg to ptrace is int on
5845 more systems than it is "char *". Define PTRACE_ARG3_TYPE to
5846 default to int.
5847 * infptrace.c, hppabsd-xdep.c, hppahpux-xdep.c, i386-xdep.c,
5848 inferior.h (call_ptrace): Use PTRACE_ARG3_TYPE to declare type
5849 of third arg.
5850 * a68v-xdep.c, arm-xdep.c, convex-xdep.c, hp300ux-xdep.c, infrun.c,
5851 m88k-xdep.c, mach386-xdep.c, mips-xdep.c, os68k-xdep.c, pyr-tdep.c,
5852 pyr-xdep.c, rs6000-xdep.c, sparc-xdep.c, sun3-xdep.c, sun386-xdep.c,
5853 symm-xdep.c, ultra3-xdep.c: Use PTRACE_ARG3_TYPE to cast ptrace
5854 argument 3.
5855 * sparc-xdep.c, a68v-xdep.c (fetch_inferior_registers,
5856 store_inferior_registers): Supply missing fourth argument to
5857 ptrace().
e7ae70e9
SG
5858 * cadillac.c (kernel_dispatch): Make return type void.
5859 * cadillac.c (iosig): Signal handlers take one int arg.
b4cc55b5
FF
5860 * valprint.c (val_print_fields): Call fprint_symbol to get
5861 automatic C++ demangling for mangled field names.
e676a15f 5862
0efe20a6
FF
5863Mon Jun 22 20:18:06 1992 Fred Fish (fnf@cygnus.com)
5864
5865 * command.c (add_abbrev_prefix_cmd): Fix misspelling in comment.
5866 * dwarfread.c (enum_type): Fix misspelling in comment.
5867 * valprint.c (val_print_fields, cplus_val_print): Minor
5868 adjustment to printing of C++ class structures to more closely
5869 match format for printing C structures, with and without setting
5870 pretty print.
5871
e37a6e9c
PB
5872Mon Jun 22 17:19:02 1992 Per Bothner (bothner@cygnus.com)
5873
5874 * infrun.c (wait_for_inferior): Don't test for SIGEMT
5875 (which is not a Posix signal) if it isn't defined.
5876 * tm-linux.h, xm-linux.h, config/linux.m[ht], configure.in:
5877 New port to Linux (a free Unix clone for 386 machines).
5878
f70be3e4
JG
5879Sat Jun 20 19:19:52 1992 John Gilmore (gnu at cygnus.com)
5880
5881 COFF changes for dealing better with EPI 29K C compiler output.
5882
5883 * coffread.c (record_minimal_symbol): Pass the minsym type to it.
5884 Callers changed.
5885 (coff_end_symtab): Sort blocks if needed. Complain if misordered.
5886 (read_coff_symtab): Move patch_opaque_types call from
5887 coff_symfile_read. Restrict it to symtabs from this objfile.
5888 (process_coff_symbol: C_TPDEF): Don't put ordinary foward
5889 references on opaque type chain; just let coff_lookup_type handle 'em.
5890 (decode_type): Complain about tagndx values on
5891 non-struct/union/enum types, which the EPI compiler tends to produce.
5892
5893 * symtab.c (list_symbols): Make minimal symbol variable-finding work.
5894
5895 * tm-68k.h (FIX_CALL_DUMMY): Avoid alignment and byte order
5896 dependency.
5897
5898 * elfread.c (elf_symfile_read): Update bfd_elf_find_section
5899 usage to match new prototype. Include libbfd.h to get prototype.
5900
28df0c3e
JG
5901 * source.c (find_source_lines): Handle large st_size fields.
5902
b4fde6fa
FF
5903Sat Jun 20 16:28:39 1992 Fred Fish (fnf@cygnus.com)
5904
5905 * infcmd.c (jump_command): Use cleanups to avoid memory leaks.
5906 * stack.c (return_command): Use cleanups to avoid memory leaks.
5907
e95bfbf1
JG
5908Fri Jun 19 19:06:41 1992 John Gilmore (gnu at cygnus.com)
5909
5910 * remote-adapt.c, remote-eb.c, remote-mm.c: Lint. Fix
5911 INT_REGNUM to INTE_REGNUM.
5912
5913 * tm-29k.h (SDB_REG_TO_REGNUM): Add for EPI 29K C compiler.
5914
9aa44833
SG
5915Fri Jun 19 15:30:15 1992 Stu Grossman (grossman at cygnus.com)
5916
7da1e27d
SG
5917 * configure.in, dbxread.c, hppa-coredep.c, hppa-pinsn.c,
5918 hppabsd-core.c, hppabsd-tdep.c, hppabsd-xdep.c, hppahpux-tdep.c,
5919 hppahpux-xdep.c, munch, partial-stab.h, tm-hppabsd.h,
5920 tm-hppahpux.h, xm-hppabsd.h, xm-hppahpux.h: HPPA merge.
5921
9aa44833
SG
5922 * Makefile.in (c-exp.tab.c, m2-exp.tab.c): Filter out bogus extern
5923 declarations of malloc/realloc/free that are inserted by some
5924 versions of yacc.
5925 * m2-exp.y: Prevent conflicts with TRUE and FALSE tokens by
5926 #undeffing them.
5927 * xm-rs6000.h: Declare malloc/realloc/free appropriately. Yet
5928 another decl of strdup (this really ought to come from libiberty.h!).
5929
8f86a4e4
JG
5930Fri Jun 19 10:28:05 1992 John Gilmore (gnu at cygnus.com)
5931
5932 * remote.c (getpkt): Error if input exceeds buffer size.
5933 (_initialize_remote): `set remotedebug' enables packet trace.
5934
5935 * dbxread.c (process_one_symbol:N_FUN): GCC now produces relative
5936 N_SLINE's, etc, just like Sun cc on Solaris2.
5937
5938 * am29k-tdep.c (read_register_stack, write_register_stack):
5939 Change RSTACK_HIGH_ADDR to rstack_high_address, a user-settable
5940 variable. Add `set' and `show' commands for it.
5941 * doc/gdb.texinfo: Document it.
5942
4341615d
FF
5943Thu Jun 18 19:35:22 1992 Fred Fish (fnf@cygnus.com)
5944
5945 * valprint.c (type_print_1): Plug memory leak. Print all
5946 C++ syms as demangled, not just functions.
5947 * buildsym.c (read_range_type): When we find a signed char
5948 type, do a lookup of signed char, not plain char. Plain char's
5949 still get looked up as plain char's elsewhere.
5950
8f86a4e4
JG
5951Thu Jun 18 18:59:04 1992 John Gilmore (gnu at cygnus.com)
5952
5953 * eval.c: Avoid residue-by-zero when evaluating without side effects.
5954 (Bug and fix found by Pierre Willard.)
5955
427d778c
SG
5956Wed Jun 17 13:08:33 1992 Stu Grossman (grossman at cygnus.com)
5957
7634ebc8
SG
5958 * xm-rs6000.h: Fix decls for malloc, realloc, and free.
5959
826f73d0
SG
5960 * xm-rs6000.h: Add decl for strdup().
5961
5962 * tm-rs6000.h: Remove #include of inferior.h. Fixes many
65c36045
SG
5963 compilation errors.
5964
423e9664
SG
5965 * breakpoint.c (enable_command, disable_command): Without args,
5966 should only affect normal breakpoints and watchpoints.
427d778c 5967
423e9664
SG
5968 * m68k-pinsn.c (print_insn_arg): Make register be const.
5969 * xcoffexec.c: Remove ' from comment.
427d778c
SG
5970 * xm-sun3os4.h: Define MALLOC_INCOMPATIBLE to avoid conflicts
5971 with decls of malloc in c-exp.tab.c (as produced by yacc).
5972 There's got to be a better way to do this...
5973
323227fe
FF
5974Wed Jun 17 11:10:40 1992 Fred Fish (fnf@cygnus.com)
5975
5976 * partial-stab.h: Convert single rindex use to strrchr.
5977 * mipsread.c, dbxread.c: Remove troublesome inclusion of non-
5978 standard <strings.h> file, now that the only single use of
5979 rindex in the gdb source files is gone.
5980
fa0bcaa3
FF
5981Tue Jun 16 22:17:49 1992 Fred Fish (fnf@cygnus.com)
5982
5983 * mipsread.c: Undo ill effects from including <strings.h>,
5984 which #defines index to be strchr. Unfortunately, index is
5985 a member of a symbol table structure that can't be changed.
5986 * mipsread.c: tm-mips.h includes coff/symconst.h and coff/sym.h,
5987 remove redundant #include's.
5988
b303297a
SG
5989Tue Jun 16 14:15:51 1992 Stu Grossman (grossman at cygnus.com)
5990
5991 * mipsread.c: #include <strings.h> for rindex().
5992
d1140eb5
FF
5993Tue Jun 16 09:01:49 1992 Fred Fish (fnf@cygnus.com)
5994
5995 * xcoffexec.c (map_vmap): Turn comment into a real C comment.
5996
c72af089
SG
5997Mon Jun 15 18:41:23 1992 Stu Grossman (grossman at cygnus.com)
5998
5999 * dbxread.c (process_one_symbol), partial-stab.h: Ignore
6000 extraneous SO stabs from busted C++ compilers.
6001
4c07f28d
FF
6002Mon Jun 15 12:21:45 1992 Fred Fish (fnf@cygnus.com)
6003
6004 * Makefile.in (VERSION): Bump to 4.5.5.
6005 * symtab.c (decode_line_1): Until C++ support stabilizes, when
6006 C++ lookups fail, print possibly helpful hint about completion.
6007 * cplus-dem.c (demangle_signature): Fix ARM style demangling
6008 for static data members.
6009 * dbxread.c (dbx_psymtab_to_symtab_1): Fix prototype.
6010 * config/ncr3000.mh (INSTALL): Don't use /usr/ucb/install,
6011 it's broken on ncr3000's.
6012
1c92ca6f
FF
6013Mon Jun 15 07:21:00 1992 Fred Fish (fnf@cygnus.com)
6014
6015 * dwarfread.c (decode_modified_type): Change type of first arg.
6016 Change 'modifier' to char from unsigned char. Cast single use
6017 that needs to be unsigned char.
6018 * symtab.h (SYMBOL_BASEREG_VALID): Explain disabling.
6019 * utils.c (strdup_demangled): Add function.
6020 * defs.h (strdup_demangled): Add prototype.
6021 * stack.c (return_command): Demangle C++ function names for query.
6022 * infcmd.c (jump_command): Demangle C++ function names for query.
6023 * cplus-dem.c (consume_count): New function and prototype.
6024 * cplus-dem.c (demangle_class, gnu_special, demangle_func_type,
6025 do_type): Replace conversion code with consume_count().
6026 * cplus-dem.c (gnu_special): Fix demangled of static members.
6027 * source.c (list_command): Print demangled function names
6028 when appropriate. Fix supplied by Peter Schauer.
6029
6030Mon Jun 15 01:45:48 1992 John Gilmore (gnu at cygnus.com)
6031
8f86a4e4
JG
6032 * sparc-tdep.c: Clean up slightly for Solaris2.
6033
1c92ca6f
FF
6034 * buildsym.c (define_symbol): Nameless types are now on several
6035 platforms; generalize them and un-ifdef them to make Solaris 2
6036 work.
6037
bcbf9559
JG
6038Sun Jun 14 10:55:51 1992 John Gilmore (gnu at cygnus.com)
6039
d69bba12
JG
6040 * infcmd.c: Fix typo (reported by Rob Savoye).
6041 * xm-sun4sol2.h (gregset_t): Thinko in register set definition.
6042 * symtab.h: Disable SYMBOL_BASEREG_VALID until it works.
6043 * dbxread.c (dbx_psymtab_to_symtab_1): Renamed from
6044 psymtab_to_symtab_1. Use current psymtab's sym_offset and symbol_size,
6045 rather than the one for the first file in the dependency chain.
6046
bcbf9559
JG
6047 * dbxread.c (end_psymtab): Only reset texthigh if it's not already
6048 set. Don't reset our own texthigh, or dependency-only pst's, in
6049 scanning all the rest of the psymtabs.
6050 (process_one_symbol): Fix comments around N_OBJ, N_OPT, N_UNDF.
6051
6052 * buildsym.h (N_UNDF): Improve comments.
6053 (N_LSYM, etc): Skip types without names (":T(0,3)=sfoob...").
6054
252f6c65
FF
6055Sat Jun 13 11:16:45 1992 Fred Fish (fnf at cygnus.com)
6056
6057 * symtab.h (struct symbol): Add aux_value union for preserving
6058 an additional per-symbol value.
6059 * symtab.h (SYMBOL_BASEREG, SYMBOL_BASEREG_VALID): Add defines.
6060 * frame.h (FRAME_GET_BASEREG_VALUE): Provide default definition.
6061 * findvar.c (read_var_value): Use SYMBOL_BASEREG if valid.
6062 * printcmd.c (address_info): Use SYMBOL_BASEREG if valid.
6063 * symmisc.c (print_symbol): Use SYMBOL_BASEREG if valid.
6064
a6b46ad4
MT
6065Sat Jun 13 09:18:46 1992 Michael Tiemann (tiemann@rtl.cygnus.com)
6066
6067 * symfile.c (clear_symtab_users_once): Now non-static (for
6068 objfiles.c).
6069
bf2e5f6b
JG
6070Fri Jun 12 18:54:40 1992 John Gilmore (gnu at cygnus.com)
6071
346168a2
JG
6072 * arm-pinsn.c, i960-pinsn.c, m68k-pinsn.c, mips-pinsn.c,
6073 ns32k-pinsn.c, pyr-pinsn.c, sparc-pinsn.c, tahoe-pinsn.c,
6074 vax-pinsn.c: Remove reg_names decl (now in defs.h).
6075
6076 Solaris-2 support on SPARC:
6077
6078 * dbxread.c: Add symbol_size to struct dbx_symfile_info.
6079 Add symbol_size and file offsets to struct symloc.
6080 Add static symbol_table_offset, string_table_offset,
6081 file_string_table_offset, next_file_string_table_offset,
6082 last_function_name.
6083 (add_old_header_file): Convert error() to complain()t.
6084 (dbx_symfile_read): Get symbol size via the objfile.
6085 Also get symbol_table_offset.
6086 (dbx_symfile_init): Record symbol size and count via the objfile.
6087 (dbx_next_symbol_text): Always add file_string_table_offset when
6088 accessing string table.
6089 (read_dbx_symtab): Initialize file_string_table_offset to 0.
6090 (SET_NAMESTRING): Use the offset.
6091 (end_psymtab): Large kludge to determine addresses where source
6092 files start and end (for the psymtab header).
6093 (psymtab_to_symtab_1): Set file_string_table_offset before reading.
6094 Get this, symbol size, and symbol offset, from psymtab.
6095 (read_ofile_symtab): Don't back up one symbol for Solaris2.
6096 Patch up last_source_start_addr if zero in N_SO.
6097 (process_one_symbol): Add variable function_start_offset.
6098 ( "", N_FUN, N_LBRAC, N_RBRAC, N_SLINE): Add ifdef for
6099 BLOCK_ADDRESS_FUNCTION_RELATIVE.
6100 ( "", N_OBJ, N_OPT): Ignore.
6101 (elfstab_build_psymtabs): New function to read stabs out of
6102 an ELF file.
6103
6104 * Makefile.in: Accept $(BISON) even though we really want $(YACC).
6105 (gdb): use GLOBAL_CFLAGS when linking, too.
6106 * partial-stab.h (N_UNDF): Deal with Sol2 relative stringtab offsets.
6107 (N_OBJ, N_OPT): Ignore.
6108 ('f', 'F'): Save last function name.
6109
6110 * elfread.c (record_minimal_symbol_and_info): Kludged to put
6111 extra info in the minimal symbol.
6112 (elf_symtab_read): The extra info is the size of an ELF object,
6113 which was kludged to us in the `udata' field of the BFD symbol.
6114 Gag me with a crowbar...
6115 (elf_symfile_read): Keep track of both the absolute load address,
6116 and the offset between load addr and symbols. Handle STABS as
6117 well as DWARF sections, passing the absolute load address to
6118 elfstab_build_psymtabs.
6119
6120 * symfile.h: Prototype elfstab_build_psymtabs.
6121 * symfile.c: Add almost-OK debug versions of add_psymbol_*to_list.
6122
6123 * xm-sysv4.h: Add <limits.h> to avoid conflicting defns in defs.h.
6124
93297ea0
JG
6125 * buildsym.h: Add processing_acc_compilation flag.
6126 * buildsym.c (read_sun_builtin_type, read_sun_floating_type): New.
6127 (define_symbol): Skip arg types in function entries. Resolve
6128 overloaded 'P' which acc uses for prototypes of functions called
6129 by this file.
6130 (read_type: 'b', 'r'): Handle Solaris2 builtin types.
6131
6132 * minsyms.c (prim_record_minimal_symbol_and_info): Hack to
6133 save size of ELF symbols. FIXME.
6134 * tm-sun4os5.h: Rename to tm-sun4sol2.h. Update defines for Sol2.
6135 * xm-sun4os5.h: Rename to xm-sun4sol2.h. Hack more defines.
6136
bf2e5f6b 6137 * configure.in: Solaris config is sparc-sun-solaris2.
93297ea0 6138 * config/sun4os5.m[ht]: Rename to config/sun4sol2.m[ht]; new xm, tm.
bf2e5f6b 6139
346168a2
JG
6140 * objfiles.c (free_objfile): Eliminate storage leaks. Contributed
6141 by <Peter.Schauer@regent.e-technik.tu-muenchen.dbp.de>.
6142 * symfile.c (symfile_bfd_open): Comment where name is freed.
6143 * symmisc.c (extend_psymbol_list): Comment where list is freed.
6144
252f6c65 6145Fri Jun 12 08:24:36 1992 Fred Fish (fnf at cygnus.com)
6b53bf34
FF
6146
6147 * expprint.c (print_subexp): Add missing ']'.
6148 * defs.h (reg_names): Fix declaration to match that in infcmd.c
6149 * stack.c (reg_names): Delete redundant (and inconsistent) decl.
6150 * WHATS.NEW: Point out improved C++ function name handling.
6151 * gdbtypes.c (lookup_fundamental_type): For now, use the same
6152 type names for both implicitly and explicitly signed integral
6153 types. See comment in the source code.
6154
28de880c
JG
6155Thu Jun 11 12:31:50 1992 John Gilmore (gnu at cygnus.com)
6156
6157 Two `long long' fixes from Robert R. Henry (rrh@dino.tera.com):
6158 * defs.h (longest_to_int): Avoid void arm of ?: in error case.
6159 * expprint.c (print_subexp): Fix printing of register names.
6160
1304f099
JG
6161Thu Jun 11 01:33:40 1992 John Gilmore (gnu at cygnus.com)
6162
6163 * inferior.h (register_valid): Declare.
e7ae70e9 6164 * remote-udi.c, rs6000-xdep.c, sparc-xdep.c, tm-rs6000.h: Remove decl.
1304f099
JG
6165 * objfiles.h (ALL_OBJFILE_{SYMTABS,PSYMTABS,MSYMBOLS}): Add
6166 macros for traversing the data structures in a single objfile.
6167 * tm-m88k.h, tm-sparc.h (REGISTER_NAMES): Remove extra semicolon.
6168 * tm-i960.h (REGISTER_NAMES): Cosmetic change.
6169 * infcmd.c: Lint.
6170
252f6c65 6171Tue Jun 9 17:19:45 1992 Fred Fish (fnf at cygnus.com)
36ce1b64
FF
6172
6173 * c-exp.y, m2-exp.y: Move remapping defines for malloc and
6174 realloc. Add remapping defines for {yyss, yyssp, yyvs, yyvsp}.
6175 * config/{amix.mh, i386v4.mh, ncr3000.mh, stratus.mh,
6176 sun4os5.mh}: Add definition for INSTALL using /usr/ucb/install.
6177
55488e9e
SG
6178Tue Jun 9 16:29:19 1992 Stu Grossman (grossman at cygnus.com)
6179
6180 * depend: rebuild to account for remote-st2000.c.
6181 * remote-st2000.c: Almost works now.
6182 * tm-st2000.h: Need to turn on HAVE_68881, else things won't compile.
6183
d630b615
FF
6184Mon Jun 8 23:05:51 1992 Fred Fish (fnf@cygnus.com)
6185
6186 * c-exp.y (yylex): Recognize single-quoted strings that specify
6187 tokens with embedded whitespace, such as C++ demangled names.
6188 * defs.h (demangle_and_match, strcmp_iw, skip_quoted): Prototypes.
6189 * main.c (gdb_completer_quote_characters): Add global variable.
6190 * main.c (symbol_completion_function): Total rewrite for C++
6191 demangled name handling.
6192 * main.c (skip_quoted): New function.
6193 * main.c (main): Set rl_completer_quote_characters.
6194 * symmisc.c (dump_symtab): Print source language for symtab.
6195 * symtab.c (expensive_mangler): Add prototype and function.
6196 * symtab.c (completion_list_add_symbol): Total rewrite for new
6197 C++ demangled name handling.
6198 * symtab.c (lookup_symbol): Check for demangled C++ symbol first,
6199 other changes for demangled C++ symbol handling.
6200 * symtab.c (lookup_demangled_block_symbol): Use demangle_and_match.
6201 * symtab.c (lookup_demangled_partial_symbol): Use demangle_and_match.
6202 * symtab.c (decode_line_1): Recognize C++ demangled names on input.
6203 * symtab.c (completion_list_add_symbol): Total rewrite for new
6204 C++ demangled name handling.
6205 * symtab.c (expensive_mangler): New function.
6206 * utils.c (strcmp_iw, demangle_and_match): New functions.
6207 * xcoffread.c (aixcoff_symfile_read): Fix prototype.
6208
d9915ebc
JG
6209Mon Jun 8 21:59:08 1992 John Gilmore (gnu at cygnus.com)
6210
6211 * Makefile.in: Roll VERSION to 4.5.4.
6212 * Makefile.in, config/*.mh, config/*.mt: Rename TM_CFLAGS
6213 to MT_CFLAGS, XM_CFLAGS to MH_CFLAGS to match file names.
6214 * config/sun4os5.mh: Add MH_CFLAGS=-xs to save debug info.
6215
88cc9a36
SG
6216Mon Jun 8 14:17:42 1992 Stu Grossman (grossman at cygnus.com)
6217
55488e9e
SG
6218 * alldeps.mak: Rebuild to account for new files.
6219 * config/st2000.mt: Use tm-st2000.h, not tm-68k.h.
6220 * tm-st2000.h: New file.
88cc9a36
SG
6221 * configure.in: Tandem debug monitor (st2000) support.
6222 * remote-st2000.c, config/st2000.mt: ditto.
6223
6f8db23a
JG
6224Fri Jun 5 11:51:01 1992 John Gilmore (gnu at cygnus.com)
6225
6226 * blockframe.c (inside_entry_file, inside_main_func,
6227 inside_entry_func): Return 0 if no symbols; avoid crashing.
6228
6229Wed Jun 3 17:48:04 1992 John Gilmore (gnu@cygnus.com)
2795260c
JG
6230
6231 * xcoffread.c (read_xcoff_symtab): Set c_sclass from n_sclass
6232 without masking, since it is signed and will later be compared
6233 against signed quantities. The right fix is probably to make
6234 it all unsigned, but this is a small, safe fix for this release.
6235 FIXME -- make the real change sometime soon.
6236
a748555b
MT
6237Mon Jun 1 16:16:12 1992 Michael Tiemann (tiemann@cygnus.com)
6238
fb44a8f5
MT
6239 * remote-vx.c (vx_load_command,add_symbol_stub): Default READNOW
6240 parameter in call to `symbol_file_add' to 0.
6241
a748555b
MT
6242 * xm-sun4os4.h (MALLOC_INCOMPATIBLE): Define it.
6243
6244Sun May 31 06:38:27 1992 Michael Tiemann (tiemann@cygnus.com)
6245
6246 * configure.in: Handle -m680[01234]0-wrs.
6247
48079d66
MT
6248Fri May 29 22:16:02 1992 Michael Tiemann (tiemann@rtl.cygnus.com)
6249
6250 * m68k-pinsn.c (print_insn_arg): Pass &EXT_FORMAT_68881 to
6251 `ieee_extended_to_double'.
6252
cb614788
JG
6253Wed May 27 09:27:57 1992 John Gilmore (gnu at cygnus.com)
6254
6255 * valops.c (value_assign): Lint, by Pierre Willard.
6256
6ad6ef42
JG
6257Tue May 19 19:38:10 1992 John Gilmore (gnu at cygnus.com)
6258
cb614788
JG
6259 * coredep.c (fetch_core_registers): Remove premature warning,
6260 which triggers on DECstation even though all regs are accessible.
6261
6262 * m68k-pinsn.c (print_insn_arg): Use new macros to get
6263 sign-extension of instruction fields even on unsigned-char hosts.
6264 Bug found by Fred J Roeber, fjr@sgfb.ssd.ray.com.
6ad6ef42 6265
cb614788 6266 88K changes inspired by Ted Lemon (uunet!lupine!mellon):
6ad6ef42
JG
6267 * tm-m88k.h, tm-umax.h: Avoid sizeof() in REGISTER_xxx macros,
6268 since they define the target, not the host.
6269 * m88k-pinsn.c: Fix typo.
6270
6271Thu May 14 01:16:48 1992 John Gilmore (gnu at cygnus.com)
6272
6273 * valarith.c (value_zerop): -0.0 is still zero.
6274 * eval.c (evaluate_subexp): Avoid NaN anomalies in float compares.
6275 Patches by Paul Eggert <eggert@twinsun.com>.
6276
6277Mon May 18 13:53:51 1992 Stu Grossman (grossman at cygnus.com)
6278
6279 * alldeps.mak, depend: re-make to account for ser-*.c.
6280
6c316cfd
FF
6281Sun May 17 16:51:20 1992 Fred Fish (fnf@cygnus.com)
6282
6283 * inflow.c (new_tty): Temporarily ignore SIGTTOU when
6284 disconnecting from controlling terminal, to avoid gdb hanging
6285 on SVR4. Fixes bug reported by Oliver Okrongli.
6286 * procfs.c (PROC_NAME_FMT): Change format to match default used
6287 by system, as suggested by Oliver Okrongli.
6288 * tm-68k.h (FRAME_FIND_SAVED_REGS): Apply missing parentheses
6289 bug fix from Brent Townshend (bst%tt@cam.ORG).
6290 * c-exp.y (nonempty_typelist): Fix memory overrun bug reported
6291 by turlais@rechser.total.fr.
6292 * dwarfread.c (decode_subscr_data): Fix bug in calculation of
6293 length of non-zero lowerbound arrays. Bug fix from Peggy Fieland.
6294 * objfiles.h (unlink_objfile): Add prototype.
6295 * objfiles.c (unlink_objfile): Add function.
6296 * objfiles.c (free_objfile): Call unlink_objfile.
6297 * objfiles.c (allocate_objfile): Call unlink_objfile on newly
6298 remapped objfiles. Bug reported by hahn@sunshine.labs.tek.com.
6299 Also, discard old possibly bogus sf struct.
6300 * symfile.c (symbol_file_add): Call init_entry_point_info() and
6301 find_sym_fns() for remapped symbol files, in case of any changes
6302 since the last mapping.
6303
6304Wed May 13 18:28:20 1992 Steve Chamberlain (sac@thepub.cygnus.com)
6305
6306 * findvar.c (read_relative_register_raw_bytes): use the raw size
6307 of a register to bcopy, rather than the host's sizeof(CORE_ADDR).
6308
ae0ea72e 6309Tue May 12 17:44:39 1992 Steve Chamberlain (sac@thepub.cygnus.com)
6ad6ef42 6310
ae0ea72e
SC
6311 Changes to support GDB running on DOS using GO32 and H8 support
6312
6313 * defs.h: if xm.h doesn't define FOPEN_RB, include "fopen-same.h",
6314 allowing hosts with different text and binary file formats to
6315 work.
6316 * coffread.c (read_coff_symtab): changed calling convention and
6317 operation - now it opens its own file with FOPEN_RB rather than
6318 duping and fdopening the provided handle.
6319 * dbxread.c, cplus-dem.c: #include mangling.
6320 * exec.c: If O_BINARY isn't defined, set it to 0, call openp for
6321 binary files oring in the right bit.
6322 * utils.c, terminal.h, inflow.c: hackery because dos doesn't have terminals.
6323 * remote-hms.c: cleanup to use the new remote serial stuff
6324 * serial.h, ser-termios.c, ser-go32.c: newfiles to provide host
6325 independent remote terminal I/O.
6326 * remote.c: if DONT_USE_REMOTE not defined, then don't use it.
6327 * source.c (openp): fix off by one problem removing / - can now
6328 open a source file in the root directory with DOS.
6329 * values.c (value_as_pointer): remove bogus address bits from
6330 long. (unpack_long): unpack into unsigned long/short if pointer.
6331
0defac02
SG
6332Tue May 12 14:15:48 1992 Stu Grossman (grossman at cygnus.com)
6333
84c8f62d
SG
6334 * infrun.c (child_attach): Don't allow gdb to attach to itself.
6335 It gets permanently stuck in many OSes.
bcf2e6ab
SG
6336 * breakpoint.c, infcmd.c, infrun.c, utils.c: Change many printfs
6337 to printf_filtered.
70d47e66 6338 * breakpoint.c: Improve help text for info breakpoints.
0defac02
SG
6339
6340Mon May 11 14:17:18 1992 John Gilmore (gnu at cygnus.com)
6341
6342 * README: Add pointer to internals doc, and describe reading
6343 info files.
6344 * utils.c (print_sys_errmsg): Use stderr. Reported by Pierre Willard.
6345 * symtab.c (output_source_filename): Remove old glop for wrapping
6346 lines, use wrap_here. Reported by Pierre Willard (pierre@la.tce.com).
6347
6348Thu May 7 11:45:03 1992 John Gilmore (gnu at cygnus.com)
6349
6350 * Makefile.in: version.c should depend on Makefile, not Makefile.in.
6351 * munch: Add sort -u to avoid duplications.
6352 * symtab.c (lookup_symbol): Improve Stu's fix of 22 April.
6353 Improved fix by hahn@sunshine.labs.tek.com (Doug Hahn).
6354
7fd31a84
FF
6355Mon May 11 13:27:46 1992 Fred Fish (fnf@cygnus.com)
6356
6357 * cplus-dem.c (demangle_signature): Recognize misplaced '_' to
6358 avoid infinite loops while demangling bogus mangled names.
6359 * valprint.c (type_print_base): Minor fix for GNU style guide
6360 conformance.
6361
f9b5584c
FF
6362Sat May 9 18:02:17 1992 Fred Fish (fnf at fishpond)
6363
6364 * Makefile.in (VERSION): Bump to 4.5.3
6365 * Makefile.in (DEMANGLE_OPTS): Remove obsolete -Dnounderscore
6366 * Makefile.in (demangle): New target to create standalone
6367 demangler with same code and options as internal demangler.
6368 * cplus-dem.c: Massive restructuring, rewriting, cleanups, etc
6369 to support ARM style and Lucid style demangling, improve
6370 maintainability, fix several demangling bugs. More changes
6371 to follow.
6372 * defs.h (strstr): Add ANSI compatible prototype.
6373 * valprint.c (type_print_1): Demangle using ansi option.
6374 * config/ncr3000.mt (DEMANGLE_OPTS): Remove -Dnounderscore.
6375
1e939db1
SG
6376Sat May 9 14:47:28 1992 Stu Grossman (grossman at cygnus.com)
6377
6378 * xcoffexec.c (vmap_exec): Don't assume .text and .data are the
6379 first two sections.
6380
d5e88583
PB
6381Fri May 8 11:42:15 1992 Per Bothner (bothner@rtl.cygnus.com)
6382
6383 * mipsread.c (parse_procedure): Return rather than using
6384 uninitialized variable 'b'.
6385
e7ae70e9
SG
6386Fri May 8 07:48:27 1992 Stu Grossman (grossman at cygnus.com)
6387
6388 * Makefile.in, remote-udi.c, remote-vx.c, 29k-share/dfe/mini2udi.c,
6389 29k-share/dfe/yank.c, vx-share/xdr_ptrace.c, vx-share/xdr_regs.c:
6390 Remove -I29k-share, -Ivx-share from Makefile.in. Make #includes
6391 relative to each source file.
6392
0defac02
SG
6393Fri May 8 07:48:27 1992 K. Richard Pixley (rich@cygnus.com)
6394
9b98dea2 6395 * Makefile.in: propogate INSTALL, INSTALL_DATA, INSTALL_PROGRAM on
0defac02 6396 recursions.
9b98dea2
RP
6397
6398Thu May 7 10:00:52 1992 Stu Grossman (grossman at cygnus.com)
6399
6400 * am29k-pinsn.c: Use new opcode table in "opcode/a29k.h".
6401 * am29k-tdep.c: Update to latest code from AMD.
6402 (get_saved_register) don't crap out if no frame.
e7ae70e9
SG
6403 * remote-udi.c: Set/clear inferior_pid as appropriate.
6404 (udi_open) call target_preopen, don't close fd 0!!!, clean up
6405 error handling. Fixup end-of-debugging messages.
6406 (udi_fetch_registers) clean up big time, mainly don't multiply
6407 register_valid indices by 4, and use proper Offset when reading
6408 gr96-gr127. (udi_store_registers) general cleanup.
6409 (fetch_register) cleanup, simplify. (regnum_to_srnum)
6410 INT_REGNUM->INTE_REGNUM.
9b98dea2 6411 * tm-29k.h: Upgrade to latest code from AMD.
e7ae70e9
SG
6412 * 29k-share/udi/udip2soc.c: Get rid of useless errmsg_m macro.
6413 (UDIConnect) Clean up error processing (like, don't do exit() if
6414 execlp fails), make code restartable, make more attractive.
6415 (UDIStop) Use SIGINT instead of SIGUSR1, as isstip won't stop
6416 otherwise.
9b98dea2 6417
ba2c9027
PB
6418Wed May 6 14:34:18 1992 Per Bothner (bothner@rtl.cygnus.com)
6419
6420 * tm-irix3.h: Re-define CPLUS_MARKER to '.'.
6421 * xm-rs6000.h, tm-rs6000.h: Move re-definition of CPLUS_MARKER
6422 from former to latter.
6423
55b3ef9a
FF
6424Wed May 6 14:12:35 1992 Fred Fish (fnf@cygnus.com)
6425
6426 * cplus-dem.c (do_args): Handle void args the same as others.
6427 * objfiles.c (free_objfile): Only try to unmap files when
6428 reusable objfiles are supported.
6429 * valprint.c (type_print_varspec_suffix): Add parameter that
6430 specifies if C++ demangling included function arguments. Use
6431 it to suppress printing extra pair of ()'s.
6432 * valprint.c (type_print_1): Fix problem with printing demangled
6433 C++ function types where demangled type includes the function
6434 args.
6435
8f793aa5
FF
6436Tue May 5 11:10:27 1992 Fred Fish (fnf@cygnus.com)
6437
6438 * Makefile.in (DEMANGLER): Define and default to cplus-dem.
6439 Allows selection of C++ demangler to be a configuration option
6440 until multiple demanglers are supported.
6441 * demangle.h: New include file for extended demangler support.
6442 * breakpoint.c, gdbtypes.c, printcmd.c, stack.c, symtab.c,
6443 utils.c, valprint.c: Include "demangle.h" and change all calls
6444 to cplus_demangle() or fputs_demangled() to use individual
6445 demangling options.
6446 * valprint.c (type_print_1): Change options to cplus_demangle
6447 to print demangled function args. Still broken, but now less so.
6448 * cplus-dem.c: Include demangle.h, reorganize and update some
6449 comments to reflect reality.
6450 * cplus-dem.c (cplus_demangle, cplus_mangle_opname): Change
6451 second arg from fixed integer to bit based multiple options.
6452 * cplus-dem.c (optable): Reformat and replace ansi members with
6453 bit based options.
6454 * cplus-dem.c (do_type): Fix bug with parsing missing return type.
6455
6fab5bef
JG
6456Mon May 4 22:26:59 1992 John Gilmore (gnu at cygnus.com)
6457
6458 * values.c (set_internalvar): Force evaluation of lazy values.
6459 Bug reported by RMS.
6460
4db8e515
FF
6461Sun May 3 15:47:45 1992 Fred Fish (fnf@cygnus.com)
6462
6463 * Makefile.in (VERSION): Bump to 4.5.2.
6464 * Makefile.in (DEMANGLE_OPTS): Add, default to -Dnounderscore.
6465 * configure.in: Simplify ncr3000 gdb_host logic, add gdb_target.
6466 * dwarfread.c (struct_type): Apply fix from Peggy Fieland for
6467 proper handling of bit fields.
6468 * gdbtypes.h (struct type): Clarify use of field.bitpos.
6469 * symtab.h: Fix couple of misspellings in comments.
6470 * value.h (struct value): Clarify use of bitpos.
6471 * value.h (unpack_field_as_long): Change prototype, returns
6472 LONGEST.
6473 * values.c (unpack_field_as_long): Change return type to LONGEST,
6474 sign extend unpacked fields that are signed, other rewriting.
6475 * config/ncr3000.mt: New target config file.
6476
ea1549b3
JG
6477Fri May 1 01:53:26 1992 John Gilmore (gnu at cygnus.com)
6478
fcdb113e
JG
6479 * utils.c (printchar): Print 0x7F and 0x80-0x9F in \nnn notation
6480 even when printing 8-bit characters.
6481
ea1549b3
JG
6482 * gdbtypes.c (make_{reference,pointer,function}_type): New
6483 functions which handle overwriting of forward-referenced types
6484 for stabs file reading.
6485 (lookup_{reference,pointer,function}_type): These just call
6486 the make_*_type functions with a null storage alloc parameter.
6487 * gdbtypes.h (make_{reference,pointer,function}_type): Declare.
6488 * xcoffread.c (smash_to_pointer_type): Remove, no longer used.
6489
6490 * buildsym.c (dbx_lookup_type): Zero result for (-1,-1) arg.
6491 (dbx_alloc_type): Make it easier to understand. No funct change.
6492 (define_symbol: 't'): Don't put the typedef name into the name of
6493 the struct, union, or enum. Bugfix.
6494 (read_type: '*', '&', 'f'): Add comments. Use make_XXX_type
6495 routines to properly handle overwriting preallocated types so that
6496 forward references will work.
6497 (read_enum_type): Force enum values to file scope, due to bug in
6498 Sun compiler output. FIXME, fix later.
6499
6500 Remove unused header_file_prev_index mechanism. It was already
6501 obsolete in gdb-3.5. These comments appeared in 3.5:
6502 /* This code was used before I knew about the instance codes.
6503 My first hypothesis is that it is not necessary now
6504 that instance codes are handled. */
6505 * dbxread.c (add_new_header_file): Remove header_file_prev_index.
6506 * buildsym.h: Remove it and prev_index that saves it.
6507 * buildsym.c (push_subfile, pop_subfile, start_symtab): Remove it.
6508
6509 * solib.c (special_symbol_handling): When called from core files,
6510 must set up debug_addr. Don't print error messages, just return.
6511 * symmisc.c (print_symbol): Less ascii diarrhea for enums, please.
6512
f536aa39
PB
6513Wed Apr 29 15:26:51 1992 Per Bothner (bothner@rtl.cygnus.com)
6514
6515 * cplus-dem.c: Allow nested class names (as in
6516 Foo::Bar::method()).
6517 Allow the cleaner cfront style of nested class names
6518 (Q2_3Foo3Bar as well as Q23Foo3Bar).
6519 Make cplus_demangle re-entrant by removing use of global
6520 variables. Instead, place all shared variables in a
6521 stack-allocated structure, and pass around its address.
6522
72b1aa30
SG
6523Fri Apr 24 07:41:19 1992 Stu Grossman (grossman at cygnus.com)
6524
9e91f617
SG
6525 * Makefile.in (make-proto-gdb-1): 1st cut at packaging
6526 29k-share/* subdirs...
6527
e7ae70e9
SG
6528 * remote-udi.c (udi_insert/remove_breakpoint): Completely
6529 rewrite, only leave out the bugs.
6530
6531 * Makefile.in: Add 29k/UDI support. Improve depend.
6532 * alldeps.mak, configure.in, depend: Add 29k/UDI support.
6533
07df4831
SG
6534 * am29k-tdep.c: Update to use new calling conventions, and misc
6535 symbol elements.
6536
72b1aa30
SG
6537 * m68k-pinsn.c (print_insn_arg): Make branch offsets be signed.
6538
c8094777
FF
6539Thu Apr 23 18:43:17 1992 Fred Fish (fnf@cygnus.com)
6540
66a8a9b4
SG
6541 * tm-29k.h: Set DECR_PC_AFTER_BREAK to 0, as 29ks have nice
6542 breakpoint instructions that leave PC pointing at the right place.
6543
c8094777
FF
6544 * core.c (core_open): Call warning() to print warnings.
6545
35a25840
SG
6546Wed Apr 22 09:55:42 1992 Stu Grossman (grossman at cygnus.com)
6547
6548 * symtab.c (lookup_symbol): Need to check if msymbol->name is
6549 NULL, as ALL_MSYMBOLS will never return a NULL msymbol pointer.
6550 This prevents a crash when trying to lookup the value of a
6551 non-existent symbol.
6552
4ace50a5
FF
6553Wed Apr 22 09:42:15 1992 Fred Fish (fnf@cygnus.com)
6554
6555 * signame.c, signame.h: Remove, replaced by strsignal.c in
6556 libiberty.
6557 * i960-tdep.c, infrun.c, mach386-xdep.c, procfs.c, sparc-tdep.c,
6558 sun386-xdep.c: Remove include of signame.h
6559 * Makefile.in (SFILES_MAINDIR): Remove signame.c
6560 * Makefile.in (HFILES): Remove signame.h
6561 * Makefile.in (OBS): Remove signame.o
6562 * defs.h (safe_strerror, safe_strsignal, strerrno, strsigno,
6563 errno_max, signo_max, strtoerrno, strtosigno, strsignal,
6564 psignal, perror): Add prototypes.
6565 * defs.h, xm-apollo68v.h, xm-ultra3.h (SYS_SIGLIST_MISSING):
6566 Remove define.
6567 * depend: Manually remove signame.[cho] references.
6568 * convex-tdep.c (subsig_name): Replace use of sys_siglist with
6569 strsignal.
6570 * convex-xdep.c (core_file_command): Replace use of sys_siglist
6571 with safe_strsignal.
6572 * core.c (core_open): Replace use of sys_siglist with
6573 safe_strsignal.
6574 * core.c (memory_error): Replace use of sys_errlist with
6575 safe_strerror.
6576 * i960-tdep.c (print_fault): Replace use of sys_siglist with
6577 safe_strsignal.
6578 * infcmd.c (program_info): Replace use of sys_siglist with
6579 safe_strsignal.
6580 * infrun.c (signal_stop, signal_print, signal_program):
6581 Allocate dynamically based on dynamic determination of number
6582 of signals to support.
6583 * infrun.c (child_create_inferior): Replace use of sys_errlist
6584 with safe_strerror.
6585 * infrun.c (wait_for_inferior): Replace use of sys_siglist with
6586 safe_strsignal.
6587 * infrun.c (sig_print_info): Replace use of sig_abbrev with
6588 strsigno and sys_siglist with safe_strsignal.
6589 * infrun.c (handle_command): Call signo_max to find number of
6590 signals. Replace sig_number with strtosigno and sig_abbrev with
6591 strsigno.
6592 * infrun.c (signals_info): Replace sig_number with strtosigno.
6593 * infrun.c (_initialize_infrun): Call signo_max to find number of
6594 signals. Dynamically allocate signal_{stop,print,program}.
6595 * procfs.c (errno_table): Remove, now in libiberty/strerror.c.
6596 * procfs.c (errnoname): Add function and prototype.
6597 * procfs.c (info_proc_siginfo): Call errnoname, replace use
6598 of sys_siglist with safe_strsignal.
6599 * procfs.c (info_proc_stop, info_proc_signals): Replace use of
6600 sys_siglist with safe_strsignal.
6601 * procfs.c (info_proc_stop): Call errnoname.
6602 * procfs.c (signalname): Replace sig_abbrev with strsigno.
6603 * stuff.c (main, get_offset): Replace use of sys_errlist with
6604 strerror.
6605 * sun386-xdep.c (core_file_command): Replace use of sys_siglist
6606 with safe_strsignal.
6607 * umax-xdep.c (core_file_command): Replace use of sys_siglist
6608 with safe_strsignal.
6609 * utils.c (safe_strerror, safe_strsignal): Add functions that
6610 call strerror and strsignal respectively, and deal with NULL
6611 returns.
6612 * utils.c (perror_with_name, print_sys_errmsg): Replace use of
6613 sys_errlist with safe_strerror.
6614 * valprint.c (val_print): Replace use of sys_errlist with
6615 safe_strerror.
6616
6e6bf7f2
RP
6617Tue Apr 21 12:00:47 1992 K. Richard Pixley (rich@cygnus.com)
6618
6619 * Makefile.in: rework CFLAGS so that they can be set from the
6620 command line to make. CFLAGS -> INTERNAL_CFLAGS.
6621 USER_CFLAGS -> CFLAGS. Remove MINUS_G. Default CFLAGS to -g.
6622 Pass CFLAGS on recusions.
6623
6624Fri Apr 17 19:25:57 1992 Fred Fish (fnf@cygnus.com)
6625
6626 * gdbtypes.h, c-exp.y, m2-exp.y, mipsread.c, gdbtypes.c: Back
6627 out of change on 4/14/92 and remove TYPE_FLAG_FUND_TYPE. It was
6628 overkill for the problem it solved.
6629 * valprint.c (type_print_base): Remove TYPE_FLAG_FUND_TYPE test
6630 and default to simply printing type names as appropriate.
6631 * main.c (main): Remove one of the leading newlines from
6632 warning_pre_print initialization.
6633 * objfiles.c (open_existing_mapped_file): Add function and
6634 prototype.
6635 * objfiles.c (open_mapped_file): Rewrite to use new function
6636 open_existing_mapped_file.
6637
b0c8c726
JG
6638Thu Apr 16 23:50:12 1992 John Gilmore (gnu at cygnus.com)
6639
6640 * sun3-xdep.c (fetch_core_registers): Lint.
6641 * tm-sun3.h: Prototype lint.
6642 * value.h: Typo.
6643
2d6d969c
FF
6644Thu Apr 16 19:56:50 1992 Fred Fish (fnf@cygnus.com)
6645
6646 * dwarfread.c (TARGET_FT_POINTER_SIZE, TARGET_FT_LONG_SIZE):
6647 Define using TARGET_PTR_BIT and TARGET_LONG_BIT for now.
6648 * objfiles.c: Cast calls to close() with unused returns to void.
6649 * objfiles.c (allocate_objfile): Initialize objfile's mmfd, free
6650 old objfile's name before updating it.
6651 * objfiles.c (free_objfile): Major rewrite for mapped objfiles.
6652 * objfiles.h (objfile struct): Add mmfd member.
6653 * symfile.c (syms_from_objfile): Move some code to
6654 new_symfile_objfile.
6655 * symfile.c (new_symfile_objfile): Add new function, common code
6656 from syms_from_objfile.
6657 * symfile.c (symbol_file_add): Call new_symfile_objfile for both
6658 mapped and unmapped symbol files.
6659 * symfile.c (symbol_file_command): Print "No symbol file now"
6660 message, ala exec_file_command for the exec file.
6661 * symfile.h (new_symfile_objfile): Add prototype.
6662 * xcoffexec.c (map_vmap): Add call to new_symfile_objfile.
6663 * xcoffsolib.c (solib_add): Add call to new_symfile_objfile.
6664
d453b386
PB
6665Thu Apr 16 18:26:34 1992 Per Bothner (bothner@cygnus.com)
6666
6667 * rs6000-pinsn.c: New version from IBM (Metin).
6668 * m2-exp.y: Re-write string initializers ("<>" => {'<', '>'})
6669 to avoid warnings from some compilers.
6670
4a11eef2
FF
6671Tue Apr 14 22:33:55 1992 Fred Fish (fnf@cygnus.com)
6672
6673 * gdbtypes.h (FT_FIXED_DECIMAL, FT_FLOAT_DECIMAL): Add defines.
6674 * gdbtypes.h (TYPE_FLAG_FUND_TYPE): Add define for bit in a
6675 type's flag word that marks it as a fundamental type.
6676 * c-exp.y (_initialize_c_exp): Add TYPE_FLAG_FUND_TYPE bit to
6677 flags argument for all calls to init_type().
6678 * m2-exp.y (_initialize_m2_exp): Add TYPE_FLAG_FUND_TYPE bit to
6679 flags argument for all calls to init_type(). Also remove
6680 dependency on host sizes for ints, floats, etc.
6681 * mipsread.c (_initialize_mipsread): Add TYPE_FLAG_FUND_TYPE bit to
6682 flags argument for all calls to init_type(). Also remove
6683 dependency on host sizes for ints, floats, etc.
6684 * gdbtypes.c (lookup_fundamental_type): Add TYPE_FLAG_FUND_TYPE
6685 bit to flags argument for all calls to init_type(). Add types
6686 FT_FIXED_DECIMAL and FT_FLOAT_DECIMAL.
6687 * valprint.c (unsigned_type_table, signed_type_table,
6688 float_type_table): Remove.
6689 * valprint.c (type_print_base): Test new TYPE_FLAG_FUND_TYPE
6690 bit when printing fundamental types, and print the actual name
6691 for such types, rather than inventing one. Remove code that
6692 invented fundamental type names.
6693 * valprint.c (_initialize_valprint): Remove initializations
6694 for now removed unsigned_type_table, signed_type_table, and
6695 float_type_table.
6696
35a25840
SG
6697Tue Apr 14 14:30:46 1992 Stu Grossman (grossman at cygnus.com)
6698
6699 * remote-vx.c, vx-share/xdr_ptrace.c, vx-share/xdr_ptrace.h,
6700 vx-share/xdr_rdb.h: Update for new remote protocol under VxWorks
6701 5.0.2.
6702
13b5a7ff
FF
6703Mon Apr 13 20:59:21 1992 Fred Fish (fnf@cygnus.com)
6704
6705 * dwarfread.c (target_to_host): New function similar to previous
6706 swapin function.
6707 * dwarfread.c (SWAPIN, swapin): Remove macro and support function.
6708 Extensive changes to convert all previous usages to use new
6709 target_to_host() function.
6710 * dwarfread.c (struct dieinfo): Change types of most integral
6711 members to be unsigned.
6712
3bc82410
JG
6713Mon Apr 13 15:59:10 1992 John Gilmore (gnu at cygnus.com)
6714
6715 * WHATS.NEW: Revise -mapped doc.
6716
817bc7b8
JG
6717Sat Apr 11 23:14:36 1992 John Gilmore (gnu at cygnus.com)
6718
6719 * mipsread.c (parse_partial_symbols): Complain when sh->index is
6720 too high or when skipping `forwards' moves us backwards.
6721 (parse_type): Print mis-guessed tag name in complaint.
6722 (parse_external): Eliminate cur_stab and obscure top_stack clobbers.
6723 (parse_procedure): Do not attempt to create symbols; just fill in
6724 the SYMBOL_VALUE field of a .gdbinfo. symbol if we can find one.
6725 (psymtab_to_symtab_1): Split up `stabs' from `native ecoff' code
6726 for clarity. Set top_stack before calling parse_external. In
6727 stabs, sort symbols before calling parse_procedure.
6728 * mipsread.c: Lint.
6729 * symmisc.c (std_in, std_out, std_err): Add vars to access std
6730 FILE *'s when debugging GDB (e.g. as args to dump_symtab).
6731 * Makefile.in: Remove stage* targets. Avoid echo on recursive
6732 makes. Eliminate doc/Makefile from tar.Z file if doc/Makefile.in
6733 exists.
6734
554d1be4
JG
6735Fri Apr 10 23:47:37 1992 John Gilmore (gnu at cygnus.com)
6736
44d835be 6737 * Makefile.in (VERSION): Set to 4.5.1.
554d1be4
JG
6738 * xcoffread.c (NO_TYPEDEFS): Fix typo in commented-out #define.
6739 * sparc-tdep.c (supply_gregset, fill_gregset, supply_fpregset,
6740 fill_gregset): New functions for SVR4 /proc support.
44d835be
JG
6741 * mipsread.c: Cleanup. Add more complaints for unhandled cases.
6742 Remove new symbol types and such to ../include/coff/symconst.h.
6743 (parse_symbol): Simplify code for parsing struct/enum/unions.
6744 (parse_type): Handle `long long' types.
6745 (upgrade_type): Handle `const' qualifier.
6746 (parse_partial_symbols): fix indentation, clean a bit.
554d1be4 6747
6e706950
FF
6748Fri Apr 10 22:41:03 1992 Fred Fish (fnf@cygnus.com)
6749
95967e73
FF
6750 * dwarfread.c (SWAPIN,swapin): New macro and function to call to
6751 copy in data from raw read buffers, calling bfd byteswapping
6752 routines as appropriate. Use to replace most existing memcpy
6753 calls.
6754 * dwarfread.c (basicdieinfo, completedieinfo): Add objfile arg.
6e706950
FF
6755 * configure.in: Recognize new ncr3000 config.
6756 * config/ncr3000.mh: New config file.
6757
601836ef
SG
6758Fri Apr 10 08:30:58 1992 Stu Grossman (grossman at cygnus.com)
6759
6e706950
FF
6760 GDB-4.5 release!
6761
6762 * README: Update for release.
b69ce5ab
SG
6763 * Makefile.in: Update version to 4.5.
6764 * WHATS.NEW: The obvious.
6765
ece32565
SG
6766 * depend: Generate new depend file for this release.
6767
601836ef
SG
6768 * Makefile.in (depend): Fix dependancy generation so that it does
6769 not include gcc 'fixincluded' files, which are usually in a system
6770 specific location.
6771
9b6f92db
PB
6772Thu Apr 9 13:35:00 1992 Per Bothner (bothner@rtl.cygnus.com)
6773
6774 Changes from metin@ibmpa.awdpa.ibm.com (Metin G. Ozisik).
6775 * buildsym.c (#ifdef RS6000_TARGET): Don't create unnecessary
6776 symbols for nameless types. And, handle `R' (register parameter
6777 type) for AIX. (an extension to existing stabstring grammar).
6778 * rs6000-xdep.c: Fix typo (= should have been ==).
6779
7fe388ad
SG
6780Thu Apr 9 12:10:06 1992 Stu Grossman (grossman at cygnus.com)
6781
6782 * Makefile.in: version=4.4.88, add xm-vax.h to HFILES.
6783
9e53d9dc
JG
6784Thu Apr 9 02:29:03 1992 John Gilmore (gnu at cygnus.com)
6785
6786 * xm-sun4os5.h (DO_DEFERRED_STORES, CLEAR_DEFERRED_STORES): Zap.
6787 * signame.c (SIGWAITING, SIGLWP): Add.
6788
6fba3d7c
PB
6789Tue Apr 7 16:34:07 1992 Per Bothner (bothner@cygnus.com)
6790
56619803 6791 * xm-i386mach.h: add decls for errno and strdup().
ff1e35cb 6792
6fba3d7c
PB
6793 * breakpoint.c (breakpoint_1): Add (int) casts for enums
6794 used in array index context (otherwise, some compilers barf).
6795
628c6d3b
SG
6796Tue Apr 7 08:45:46 1992 Stu Grossman (grossman at cygnus.com)
6797
e05ba37d
SG
6798 * m68k-tdep.c, tm-sun3.h: #ifdef around get_longjmp_target().
6799 Change def of SAVED_PC_AFTER_CALL to call routine to see if we are
6800 in a system call, and provide better backtrace if so.
6801
1f415ae7 6802 * Makefile.in (HFILES): Add xcoffsolib.h.
c994feb6 6803 * rs6k-opcode.h: Move to ../include/opcode/rs6k.h.
2741887b 6804 * rs6000-pinsn.c: #include "opcode/rs6k.h"
c994feb6 6805
96c19d0f
SG
6806 * mipsread.c (read_mips_symtab, read_the_mips_symtab,
6807 mipscoff_symfile_read): Convert to BFD to do file I/O.
6808
c1bde665
SG
6809 * symfile.c: #include <ctype.h> to get proper def if isspace().
6810
628c6d3b
SG
6811 * i386-tdep.c (get_longjmp_target): #ifdef GET_LONGJMP_TARGET.
6812
ad142b8e
PB
6813Mon Apr 6 17:25:45 1992 Per Bothner (bothner@cygnus.com)
6814
6815 * mipsread.c: Create a .gdbinfo pseudo-symbol for each
6816 function also when parsing embedded stabs.
6817
ce9260ae
SG
6818Mon Apr 6 15:25:03 1992 Stu Grossman (grossman at cygnus.com)
6819
391ca579
SG
6820 * mipsread.c: Fix more declarations.
6821
e5578a31
SG
6822 * mipsread.c: Fix many invocations of complain. Use enum
6823 type_code where appropriate.
41bd448e 6824
995e7f86
SG
6825 * xm-vaxult.h: Add decl for strdup().
6826
ce9260ae
SG
6827 * Makefile.in: Add dependancies for xm-vaxbsd.h and xm-vaxult.h
6828 for xm-vax.h.
6829
b2de19e3
SG
6830Fri Apr 3 17:41:29 1992 Stu Grossman (grossman at cygnus.com)
6831
6832 * buildsym.h, dbxread.c, mipsread.c: Add objfile arg to
6833 process_one_symbol.
6834
556f3d90
PB
6835Fri Apr 3 12:17:14 1992 Per Bothner (bothner@cygnus.com)
6836
6837 * munch: Must pre-pend "_" to "initialize" for SYSV style nm.
6838 * tm-rs6000.h, xcoffexec.c, xcoffread.c, xm-rs6000.h:
6839 Merge in more patches for rs6000 from Metin Ozisik.
6840 * utils.c: Fix typo in comment.
6841
d65eee73
FF
6842Fri Apr 3 11:23:03 1992 Fred Fish (fnf@cygnus.com)
6843
6844 * procfs.c (procinfo struct): Add nopass_next_sigstop member.
6845 * procfs.c (attach): Set nopass_next_sigstop if attached
6846 process is forcibly stopped.
6847 * procfs.c (child_resume): Use nopass_next_sigstop to suppress
6848 resending SIGSTOP to attached process on first resume.
6849
239e7ee9
SG
6850Fri Apr 3 01:37:26 1992 Stu Grossman (grossman at cygnus.com)
6851
6852 * Makefile.in (SFILES_MAINDIR): add mipsread.c
6853
e10a3052
JG
6854Thu Apr 2 20:20:54 1992 John Gilmore (gnu at cygnus.com)
6855
6856 * Makefile.in (OBS): Compile mipsread.c for all targets now.
6857 (VERSION): Bump to 4.4.85.
6858 * mipsread.c: Update for new include files. Lint.
6859 * tm-irix3.h, tm-mips.h: Use new include files for ECOFF symtab.
6860 * config/{bigmips.mt, littlemips.mt, irix3.mt, decstation.mt}:
6861 Don't need to bring in mipsread.o specially any more.
6862
4ad1963e
SG
6863Thu Apr 2 19:38:31 1992 Stu Grossman (grossman at cygnus.com)
6864
6865 * mipsread.c (fixup_sigtramp): Also look for _sigtramp as a real
6866 routine (for Irix-4.x). Make many funcs static and void.
6867 * mips-tdep.c (mips-frame-chain): Clean up, simplify.
6868 * (init_extra_frame_info): Don't trash cached value of frame
6869 pointer register. This fixes backtracing through routines that use
6870 alloca(). Generally clean up declarations of functions, and use
6871 typedefs and macros to reference data structures as appropriate.
6872 * tm-irix3.h, tm-mips.h (EXTRA_FRAME_INFO): use proper type for
6873 proc_desc element.
6874
5c1c5e67
FF
6875Thu Apr 2 09:47:11 1992 Fred Fish (fnf@cygnus.com)
6876
6877 * values.c (unpack_long): Fix unpacking error for signed chars
6878 on hosts where the default character type is unsigned.
6879 * procfs.c (pr_flag_table, pr_why_table): Add some entries
6880 for newer SVR4 variants.
6881 * procfs.c (proc_set_exec_trap): Reorder tests for ioctl's that
6882 turn off trace inherit-on-fork flag to favor latest SVR4 method.
6883 * procfs.c (mappingflags): Add support for MA_PHYS
6884
ac88ca20
JG
6885Thu Apr 2 00:55:56 1992 John Gilmore (gnu at cygnus.com)
6886
03c93c66
JG
6887 * buildsym.c (read_struct_type): Avoid coredump when C++
6888 abbreviated type name is messed up. Reported by Joe Buck.
6889 FIXME, we need to determine whether GDB or GCC needs to be
6890 smarter to correctly locate this type name.
6891
ac88ca20
JG
6892 * c-exp.y, coffread.c, command.c, command.h, copying.awk,
6893 dbxread.c, gdbtypes.c, infcmd.c, inferior.h, infrun.c,
6894 m2-exp.y, printcmd.c, remote.c, solib.c, source.c, stack.c,
6895 symtab.c, tm-sun4os4.h, tm-sun4os5.h, values.c: Lint.
6896 * symfile.c (add_symbol_file_command): Initialize mapped/readnow.
6897
cc221e76
FF
6898Wed Apr 1 11:39:52 1992 Fred Fish (fnf@cygnus.com)
6899
6900 * breakpoint.h (bpdisp, bptype): Remove trailing comma.
6901 * symtab.h (current_source_symtab): Make extern
6902 * symtab.h (current_source_line): Make extern
6903 * inferior.h: Move all procfs.c prototypes to one place, add
6904 prototype for proc_signal_handling_change. Add prototypes for
6905 signal_stop_state, signal_print_state, and signal_pass_state.
6906 * inferior.h (stop_soon_quietly): Make extern
6907 * inferior.h (attach_flag): Make extern
6908 * infrun.c (NOTICE_SIGNAL_HANDLING_CHANGE): Default is null.
6909 * infrun.c (signal_stop_state, signal_print_state,
6910 signal_pass_state): New functions to query specific signal
6911 handling flags.
6912 * infrun.c (handle_command): Minor error message change, add
6913 NOTICE_SIGNAL_HANDLING_CHANGE.
6914 * procfs.c (open_proc_file): Remove iris specific reset of
6915 inherit-on-fork flag, moved to proc_set_exec_trap().
6916 * procfs.c (proc_set_exec_trap): Add SVR4 and iris code
6917 to reset inherit-on-fork flag, bash comment to GNU form.
6918 * procfs.c (proc_base_address, set_proc_siginfo,
6919 fetch_core_registers): Conform to code style.
6920 * procfs.c (signame.h): Include.
6921 * procfs.c (MAX_SYSCALLS, syscall_table[], init_syscalltable(),
6922 syscallname(), info_proc_syscalls()): New macros, tables, and
6923 functions to organize and report system call information.
6924 * procfs.c (saved_fltset, saved_trace, saved_sighold,
6925 saved_exitset, saved_entryset): Add to procinfo struct.
6926 * procfs.c (struct trans): Add.
6927 * procfs.c (pr_flag_table, pr_why_table, faults_table,
6928 siginfo_table, errno_table): Tables to translate numeric values
6929 to symbolic names and short descriptions.
6930 * procfs.c (signalname, info_proc_signals): Add function and
6931 prototype.
6932 * procfs.c (proc_info): Now info_proc.
6933 * procfs.c (proc_info_address_map): Now info_proc_mappings.
6934 * procfs.c (info_proc_flags, info_proc_stop, info_proc_siginfo,
6935 info_proc_faults, lookupname, lookupdesc, sigcodename,
6936 sigcodedesc): New functions.
6937 * procfs.c (proc_signal_handling_change): New function to set
6938 the trace flags based on the state of gdb's signal handling flags.
6939 * procfs.c (inferior_proc_init): Call proc_signal_handling_change
6940 and remove code to do PIOCSTRACE ioctl.
6941 * procfs.c (attach, detach): Preserve and restore process flags
6942 using saved_* fields in procinfo struct.
6943 * procfs.c (attach): Call proc_signal_handling_change.
6944 * procfs.c (info_proc): Major rework to expand "info proc" cmd.
6945 * procfs.c (proc_desc): Update for latest changes.
6946 * xm-irix4.h (CREATE_INFERIOR_HOOK): Protect by USE_PROC_FS.
6947 * xm-irix4.h (NOTICE_SIGNAL_HANDLING_CHANGE): Add definition.
6948 * xm-sysv4.h (NOTICE_SIGNAL_HANDLING_CHANGE): Add definition.
6949
6950Tue Mar 31 18:38:28 1992 Fred Fish (fnf@cygnus.com)
6951
6952 * procfs.c (set_proc_siginfo): Add prototype and new function.
6953 * procfs.c (detach, child_resume): Call set_proc_siginfo to set
6954 up inferior siginfo struct.
6955 * elfread.c (elf_symfile_read): Compute the relocation amount
6956 by subtracting off the address of the ".text" section.
6957 * solib.c: Add pointer to ".text" section to so_list struct.
6958 * solib.c (solib_map_sections): Initialize pointer to ".text"
6959 section in so_list struct.
6960 * solib.c (symbol_add_stub): Pass base address of ".text"
6961 section to symbol_file_add, rather than the load address of
6962 the shared library. On SunOS they are the same. On SVR4 they
6963 are not.
6964
3bec9cdd
SG
6965Tue Mar 31 17:48:15 1992 Stu Grossman (grossman at cygnus.com)
6966
6967 * mipsread.c (parse_procedure): PDR.isym should get pointer to
6968 function name, not .gdbinfo. symbol.
6969
e360572c
JG
6970Tue Mar 31 17:05:04 1992 John Gilmore (gnu at cygnus.com)
6971
6972 * breakpoint.c (breakpoint_1): Fix prototype, this time for sure!
6973
fad3fc94
SG
6974Tue Mar 31 11:01:06 1992 Stu Grossman (grossman at cygnus.com)
6975
e360572c 6976 * Makefile.in (VERSION): 4.4.8
5e8fdb82 6977
fad3fc94
SG
6978 * procfs.c (open_proc_file): Disable inherit-on-fork flag so that
6979 commands in .cshrc/.profile won't get traced.
6980
3b0b9220
JG
6981Tue Mar 31 08:11:58 1992 John Gilmore (gnu at cygnus.com)
6982
6983 * elfread.c (elf_symtab_read): Use xmalloc, not bfd_xmalloc.
6984 * exec.c (build_section_table): Don't abort if no sections.
6985 * sparc-tdep.c (single_step): Lint.
6986 * utils.c (mrealloc): Handle realloc (0, size) case here.
6987
d1bb1d41
SG
6988Mon Mar 30 16:50:43 1992 Stu Grossman (grossman at cygnus.com)
6989
f8b4aa8e
SG
6990 * Makefile.in (alldeps.mak): Config files are now *.m[ht] as
6991 opposed to m[ht]-*!
6992
9d4c62df
SG
6993 * config/irix4.mh: Don't use coredep.o. It doesn't work with procfs.
6994
d1bb1d41
SG
6995 * mipsread.c (parse_symbol, parse_procedure): Re-do the way that
6996 .gdbinfo. symbols are created. Move creation from parse_procedure
6997 to parse_symbol, where it is fairly easy to grow the symtab. This
6998 also fixes a symtab trashing bug on all mips-based systems.
6999 * (got_numargs, lookup_numargs, free_numargs): Delete. Not
7000 needed anymore.
7001 * tm-mips.h, tm-iris3.h, mips-tdep.c, mipsread.c: Re-do struct
7002 mips_extra_func_info, and all the PROC_xxx macros that look at it.
7003
d26b50b7
PB
7004Mon Mar 30 14:17:53 1992 Per Bothner (bothner@cygnus.com)
7005
7006 * c-exp.y: Add missing return type to yyparse() prototype.
7007
be772100
JG
7008Sat Mar 28 22:22:06 1992 John Gilmore (gnu at cygnus.com)
7009
7010 Create and use macros for iterating on symtabs, psymtabs, msymbols.
7011
7012 * minsyms.c (iterate_over_msymbols): Remove; clunky and slow.
7013 * symfile.h, symtab.h (iterate_over_msymbols): Remove prototype
7014 * coffread.c (coff_symfile_read): iterate_over_symtabs => ALL_SYMTABS.
7015 (patch_opaque_types): Avoid dummy args and result.
7016 * objfiles.c (have_partial_symbols, have_full_symbols,
7017 have_minimal_symbols): explicit iteration => ALL_OBJFILES; simplify.
7018 (iterate_over_objfiles, iterate_over_symtabs,
7019 iterate_over_psymtabs): Remove, clunky and slow.
7020 * objfiles.h: Replace iterate_over_* prototypes with ALL_SYMTABS,
7021 ALL_PSYMTABS, and ALL_MSYMBOLS macros.
7022 * symmisc.c (dump_symtab, dump_psymtab, dump_msymbols,
7023 dump_objfile): Remove dummy args and results. Move filename
7024 comparisons to callers.
7025 (printsyms_command, printpsyms_command, printmsyms_command,
7026 printobjfiles_command): iterate_over_* => ALL_*. Compare filenames.
7027 * symtab.c (lookup_symtab_1, lookup_symtab, lookup_partial_symtab,
7028 lookup_symbol, find_main_psymtab, find_pc_symtab, sources_info,
7029 list_symbols, make_symbol_completion_list): Replace explicit
7030 iteration with ALL_SYMTABS, ALL_PSYMTABS, or ALL_MSYMBOLS.
7031 Eliminate Dijkstra flag crap, break out of loops with gotos.
7032 (lookup_symtab_1): Protect '/' tests from short filenames.
7033 (cplus_mangled_symbol): Move inline into lookup_symbol.
7034 * xcoffexec.c (relocate_objfile_msymbols): Remove poor hack.
7035 (relocate_minimal_symbol): Move inline to vmap_symtab.
7036 (vmap_symtab): Replace iteration with ALL_OBJFILES,
7037 iterate_over_msymbols with ALL_MSYMBOLS.
7038
7039 Misc cleanup prior to release.
7040
7041 * Makefile.in (VERSION): Roll to 4.4.7.
7042 (HFILES): Add call-cmds.h.
7043 * call-cmds.h: New header for command fns called by other files.
7044 * breakpoint.c (watchpoints_info): Remove, same as breakpoints_info.
7045 (breakpoint_1): Remove unused type arg. Change callers.
7046
7047 * dwarfread.c (dwarf_build_psymtabs): Remove mainline test.
7048 * mipsread.c (compare_symtabs, compare_psymtabs): Remove, unused.
7049 * mipsread.c: Add prototypes for all static functions.
7050
7051 * symmisc.c (dump_symtab_lines, dump_symtabs, dump_last_symtab,
7052 dump_blockvector, dump_block, dump_addrchass, dump_namespace,
7053 dump_symbol, dump_type, dump_linetable, dump_strtbl): Remove, unused.
7054 * xcoffread.c (dump_symtab_lines, dump_symtabs, dump_last_symtab,
7055 dump_blockvector, dump_block, dump_addrchass, dump_namespace,
7056 dump_symbol, dump_type, dump_linetable, dump_strtbl): Remove 2nd
7057 unused copy!
7058
7059 * buildsym.c (define_symbol): Handle global register variables
7060 (from Pierre Willard). Complain if register numbers are too large.
7061 * target.c (nomemory): Now that higher levels examine errno, give EIO.
7062 * tm-sparc.h: Don't #include <sun4/reg.h>.
7063 * sparc-tdep.c (sparc_frame_chain, frame_saved_pc): Remove
7064 dependency on <sun4/reg.h>. Start to handle cross-byte-order.
7065
7066 * language.h: Avoid forward enum declaration.
7067 * configure.in, tm-sun4os5.h, xm-sun4os5.h, config/sun4os5.mh,
7068 config/sun4os5.mt: New host and target.
7069 * defs.h (errno): #include <errno.h> rather than assuming int.
7070 From Pierre Willard.
7071
7072 * breakpoint.c, breakpoint.h, buildsym.c, coffread.c, cplus-dem.c,
7073 dbxread.c, dwarfread.c, elfread.c, infcmd.c, infrun.c, inftarg.c,
7074 language.c, main.c, mem-break.c, mips-tdep.c, mipsread.c,
7075 partial-stab.h, remote.c, saber.suppress, symfile.c, symtab.c,
7076 valops.c, valprint.c, xcoffread.c, c-exp.y, m2-exp.y, blockframe.c,
7077 command.c, core.c, exec.c, gdbtypes.h, parse.c, printcmd.c, solib.c,
7078 sparc-xdep.c, utils.c, value.h, values.c: Lint.
7079
7080Sat Mar 28 02:43:26 1992 John Gilmore (gnu at cygnus.com)
7081
7082 * buildsym.c (read_range_type): Avoid int overflow by using unsigned.
7083 * dbxread.c (dbx_symfile_init): Remove bogus `lvalue cast'.
7084 * language.h (enum exp_opcode): Avoid forward enum def.
7085 * main.c (define_command, user_defined_command): Lint.
7086 * mem-break.c, xcoffread.c: Lint.
7087 * solib.c: Only #include <a.out.h> on SunOS, not SVR4.
7088
1eeba686
PB
7089Sun Mar 29 14:16:22 1992 Per Bothner (bothner@cygnus.com)
7090
7091 * Merged in latest RS6000 diffs from Metin G. Ozisik.
7092 * xcoffsolib.c, xcoffsolib.h: New files, from Metin.
7093 * Various files: Changed #ifdef IBM6000 to IBM6000_HOST
7094 or IBM6000_TARGET as (approximately) appropriate.
7095
bf349b77
FF
7096Sat Mar 28 13:00:10 1992 Fred Fish (fnf@cygnus.com)
7097
7098 * objfiles.h (OBJF_SYMS): Define flag bit for objfile flags.
7099 * symfile.c (symbol_file_add): Use OBJF_SYMS to decide whether
7100 or not to try reading symbols from a mapped objfile. Plugs memory
7101 leak due to shared libraries generating no psymtabs or symtabs.
7102
c2e4669f
JG
7103Fri Mar 27 15:44:55 1992 John Gilmore (gnu at cygnus.com)
7104
7105 * buildsym.c (MAX_OF_C_TYPE, MIN_OF_C_TYPE): Unused, remove.
7106 * copying.awk: Lint. Make stronger warning at top of copying.c.
7107 * elfread.c (elf_symtab_read): Eliminate check of mainline.
7108 * gdbtypes.c (smash_to_*): Remove FIXME comments.
7109 (lookup_pointer_type): Add FIXME comment.
7110 * main.c (set_history_size_command): Disallow negative size.
7111 * partial-stab.h: Update copyright.
7112 * rs6000-tdep.c (skip_trampoline_code): Better comments.
7113
7114Wed Mar 25 10:45:38 1992 John Gilmore (gnu at cygnus.com)
7115
7116 * main.c (set_history_size_command): Negative size is error.
7117 (Reported by Peggy Fieland.)
7118
3624c875
FF
7119Thu Mar 26 17:01:18 1992 Fred Fish (fnf@cygnus.com)
7120
7121 * coffread.c (coff_symfile_init): Update comment.
7122 * dbxread.c (DBX_SYMFILE_INFO, DBX_TEXT_SECT, DBX_SYMCOUNT,
7123 DBX_STRINGTAB, DBX_STRINGTAB_SIZE, DBX_SYMTAB_OFFSET): Define
7124 macros to access the dbx specific objfile information.
7125 * dbxread.c (symfile_string_table, symfile_string_table_size):
7126 Remove these local variables.
7127 * dbxread.c (read_ofile_symtab, psymtab_to_symtab_1,
7128 read_dbx_symtab): Remove the stringtab and stringtab_size params
7129 from the function prototypes, the function definition, and the
7130 function calls. These are now available via DBX_STRINGTAB and
7131 DBX_STRINGTAB_SIZE using the objfile pointer.
7132 * dbxread.c (dbx_symfile_read): Relocate addr before using as
7133 an arg to read_dbx_symtab.
7134 * dbxread.c (dbx_symfile_read): Remove code that free'd the
7135 stringtab and the dbx specific per-objfile private info.
7136 * dbxread.c (init_psymbol_list): Remove symbol count from passed
7137 args in prototype, function definition, and function calls. It is
7138 now available via the DBX_SYMCOUNT macro using the objfile
7139 pointer.
7140 * dbxread.c (dbx_symfile_read, dbx_symfile_init): Remove the
7141 local instance of struct dbx_symfile_info and replace with DBX_*
7142 macros.
7143 * dbxread.c (dbx_symfile_read): Remove init's of now deleted
7144 symfile_string_table and symfile_string_table_size.
7145 * dbxread.c (dbx_symfile_finish): Remove now obsolete free of
7146 symfile_string_table.
7147 * dbxread.c (init_psymbol_list): Use DBX_SYMCOUNT.
7148 * dbxread.c (dbx_psymtab_to_symtab): Remove local stringtab and
7149 stringtab size variables. Remove all code that used to reread
7150 the stringtab.
7151 * objfiles.c (allocate_objfile): Move calls to init_malloc()
7152 to prior to any calls to mmalloc for the objfile specific heap.
7153 * utils.c (init_malloc): Document the requirement that for each
7154 heap for which corruption checking is desired, that init_mmalloc
7155 must be called prior to any mmalloc calls on the heap.
7156
7157Thu Mar 26 13:20:06 1992 Per Bothner (bothner@cygnus.com)
7158
7159 * rs6000-pinsn.c: Make dis-assembly output more like
7160 other targets: Don't print instruction in hex before
7161 the assembly; use print_address to print out jump
7162 destinations.
7163
04f27ddc
PB
7164Wed Mar 25 16:52:35 1992 Per Bothner (bothner@cygnus.com)
7165
7166 * c-exp.y, gdbtypes.h: Add builtin_type_signed_char.
7167 * cplus-dem.c: Support "Sc" meaning "signed char".
7168
88f36033
SG
7169Wed Mar 25 15:21:44 1992 Stu Grossman (grossman at cygnus.com)
7170
7171 * configure.in: fix iris/iris3.
7172
5c71cf23
PB
7173Wed Mar 25 14:55:48 1992 Per Bothner (bothner@cygnus.com)
7174
7175 * command.c, main.c (various places): Use ctype.h macros
7176 (such as isupper(x)), instead of hard-wiring in ASCII-isms
7177 (such as (x >= 'A' && x <= 'Z')).
7178 (There are still more of these in other files.)
7179 * main.c (defined_command): Lower-case the user's
7180 new command before entering it. Needed because
7181 command lookup is case-insensitive (and also lower-cases).
7182 (Based on Metin's earlier patch.)
7183
fd2329d7
RP
7184Tue Mar 24 23:27:01 1992 K. Richard Pixley (rich@cygnus.com)
7185
7186 * config/irix4.mh: new file.
7187
4f301966
SG
7188Tue Mar 24 14:17:48 1992 Stu Grossman (grossman@cygnus.com)
7189
0a22f63e
SG
7190 * infcmd.c (step_1): Call disable_longjmp_breakpoint at the right
7191 time.
7192
7193 * xm-mips.h: Declare strdup for ultrix.
9d53db1a 7194
4f301966
SG
7195 * mipsread.c (fixup_sigtramp): Make sure that current_objfile is setup
7196 when calling new_symbol.
7197 * mips-tdep.c (mips_frame_chain): Use symfile_objfile instead of
7198 current_objfile.
7199
5c8d3927
PB
7200Tue Mar 24 13:26:25 1992 Per Bothner (bothner@rtl.cygnus.com)
7201
7202 * config/rs6000.mh: Update (for Fred's new mmalloc)
7203 flags to disable use of GNU malloc/mmalloc.
7204 * munch: Change SYSV rule to allow .text before the label,
7205 as well as after, to work for AIX.
7206 * gdbtypes.h: Minor clarifiction.
7207
be1384b0
MT
7208Tue Mar 24 07:26:19 1992 Michael Tiemann (tiemann@cygnus.com)
7209
7210 * buildsym.c (read_struct_type): Handle cretinous dbx symbol name
7211 continuation in yet another place (between method declarations).
7212
62a469e1
SG
7213Mon Mar 23 23:01:41 1992 Stu Grossman (grossman at cygnus.com)
7214
7215 * mips-tdep.c: include symfile.h and objfiles.h to fix
7216 compilation errors.
7217
b3024b21
PB
7218Mon Mar 23 15:49:14 1992 Per Bothner (bothner@cygnus.com)
7219
7220 * valops.c (value_struct_elt_for_reference): Added 'offset'
7221 parameter to handle multiple inheritance.
7222 * eval.c, value.h: Update accordingly.
7223
5e2e79f8
FF
7224Fri Mar 20 17:43:27 1992 Fred Fish (fnf@cygnus.com)
7225
7226 * objfiles.h: New file
7227 * Makefile.in (HFILES): Add objfiles.h
7228 * blockframe.c: Remove entry_scope_lowpc, entry_scope_highpc,
7229 main_scope_lowpc, main_scope_highpc.
7230 * blockframe.c, buildsym.c, coffread.c, dbxread.c, dwarfread.c,
7231 elfread.c, gdbtypes.h, minsyms.c, mipsread.c, objfiles.c, solib.c,
7232 source.c, symfile.c, symmisc.c, symtab.c, target.c, xcoffexec.c,
7233 xcoffread.c, : Include objfiles.h.
7234 * tm-29k.h, tm-i386v.h, tm-merlin.h, tm-rs6000.h, tm-sun386.h,
7235 tm-symmetry.h, tm-tahoe.h, tm-umax.h, tm-vax.h, m88k-tdep.c,
7236 mips-tdep.c (FRAME_CHAIN): Renamed outside_startup_file to
7237 inside_entry_file() and logic changed appropriately.
7238 * blockframe.c (outside_startup_file): Renamed to
7239 inside_entry_file() and logic changed appropriately.
7240 * blockframe.c (inside_main_scope): Renamed to inside_main_func()
7241 and logic changed to use per-objfile specific fields.
7242 * blockframe.c (inside_entry_scope): Renamed to
7243 inside_entry_func() and logic changed to use per-objfile specific
7244 fields.
7245 * blockframe.c, buildsym.h, coffread.c, dwarfread.c, mipsread.c,
7246 symfile.c, mips-tdep.c (startup_file_start, startup_file_end):
7247 Remove extern decls.
7248 * symfile.c, symfile.h (entry_point): Remove extern decl.
7249 * coffread.c (coff_symfile_init): Common entry point init code
7250 moved to symfiles.c, call init_entry_point_info().
7251 * coffread.c (complete_symtab): Use new per-objfile entry info.
7252 * mip-tdep.c (mips_frame_chain): Use new per-objfile entry info.
7253 * mipsread.c (parse_partial_symbols): Use new per-objfile entry
7254 info.
7255 * dbxread.c (read_dbx_symtab): Use new per-objfile entry info.
7256 * defs.h (inside_entry_scope, outside_startup_file,
7257 inside_main_scope): Prototypes changed for renames to
7258 inside_entry_func, inside_entry_file, inside_main_func,
7259 respectively.
7260 * symfile.c (syms_from_objfile): Common entry point init code
7261 moved to init_entry_point_info() and call init_entry_point_info().
7262 * symfile.h (init_entry_point_info): Include prototype.
7263 * xcoffread.c (aixcoff_symfile_init): Common entry point init code
7264 moved to symfiles.c and call init_entry_point_info().
7265 * dwarfread.c (entry_scope_lowpc, entry_scope_highpc,
7266 main_scope_lowpc, main_scope_highpc): Remove extern decls.
7267 * dwarfread.c (read_func_scope, read_file_scope): Use new per-
7268 objfile entry info.
7269 * frame.h (FRAME_CHAIN_VALID): Provide default definition that
7270 works for the majority of targets.
7271 * tm-68k.h, tm-convex.h, tm-h8300.h, tm-i386v.h, tm-irix3.h,
7272 tm-merlin.h, tm-mips.h, tm-pyr.h, tm-rs6000.h, tm-sparc.h,
7273 tm-sun386.h, tm-tahoe.h, tm-umax.h, tm-vax.h (FRAME_CHAIN_VALID):
7274 Use default definition in frame.h.
7275 * frame.h (selected_frame_level): Make decl extern.
7276 * objfiles.c, symfile.c (current_objfile): Moved to objfiles.c
7277 * objfiles.c, symfile.c (symfile_objfile): Moved to objfiles.c
7278 * partial-stab.h: Use new per-objfile entry info.
7279 * symfile.h (struct objfile): Removed, moved to objfiles.h.
7280 * symfile.h, objfiles.h (allocate_objfile, free_objfile,
7281 free_all_objfiles, iterate_over_objfiles, iterate_over_symtabs,
7282 iterate_over_psymtabs, have_partial_symbols, have_full_symbols,
7283 have_minimal_symbols): Prototypes moved to objfiles.h.
7284 * symfile.h, objfiles.h (ALL_OBJFILES, ALL_OBJFILES_SAFE):
7285 Macros moved to objfiles.h.
7286 * tm-h8300.h, tm-i386v4.h (FRAME_CHAIN_VALID_ALTERNATE): Define.
7287
01be6913
PB
7288Thu Mar 19 18:49:45 1992 Per Bothner (bothner@cygnus.com)
7289
7290 More C++ improvements (pointers to members, qualified names).
7291 * c-exp.y: Support exp.type::name and exp->type::name
7292 syntaxes. (Unfortunately, doesn't work for static members.)
7293 * c-exp.y, eval.c: Make type::~type work better.
7294 * eval.c (evaluate_subexp: OP_SCOPE): Replace use of
7295 value_static_field by value_struct_elt_for_reference.
7296 * eval.c (evaluate_subexp): Merge code for STRUCTOP_MEMBER
7297 and STRUCTOP_MPTR; cast arg1 to domain-type of arg2.
7298 * eval.c (evaluate_subexp): Remove special case for UNOP_ADDR
7299 for OP_SCOPE operand; no point in it now that we use lazy
7300 reading of values, and use "reference to member" objects.
7301 * gdbtypes.h: Clarify comment.
7302 * valops.c: Change value_struct_elt_for_address to return
7303 a reference (or variable), rather than a pointer. Change
7304 the name to value_struct_elt_for_reference to reflect this.
7305 Returning a reference instead of a address provides a
7306 generalization, since we can use the routine for both
7307 class::name as well as &class::name.
7308 Also, recurse to handle multiple inheritance properly.
7309 * valprint.c: Moved code to print pointer-to-members
7310 to new function point_class_member. This allows a
7311 "reference-to-member" to be printed using the same code.
7312 * valprint.c (type_print_varspec_prefix): Avoid printing
7313 "struct " for domains of class-member types.
7314 * valops.c (search_struct_field): Inline code for simplified
7315 version of value_static_field (which can then be deleted).
7316 * value.h: Rename value_struct_elt_for_address to
7317 value_struct_elt_for_reference. Delete value_static_field.
7318 * values.c: Remove no longer used function value_static_field.
7319
80d68b1d
FF
7320Thu Mar 19 13:54:11 1992 Fred Fish (fnf@cygnus.com)
7321
7322 * coffread.c, mipsread.c, xcoffread.c, coffread.c, dbxread.c,
7323 elfread.c (coff_symfile_finish): Add function, prototype, and
7324 add to the xxxx_sym_fns struct for each file type. Also reformat
7325 the xxxx_sym_fns vector to a standard format and add comments.
7326 * coffread.c, mipsread.c, xcoffread.c, coffread.c, dbxread.c,
7327 elfread.c (xxx_symfile_new_init, xxx_symfile_init, xxx_symfile_read):
7328 Pass pointer to struct objfile rather than pointer to sym_fns.
7329 Change references inside each function accordingly. Allocate any
7330 symbol file specific info in the per-objfile memory region.
7331 * dbxread.c (free_and_init_header_files): Break function into
7332 free_header_files(), called from dbx_symfile_finish(), and
7333 init_header_files(), called from dbx_new_init().
7334 * dbxread.c (dbx_new_init): Move deallocation things to new
7335 dbx_symfile_finish function.
7336 * elfread.c (elf_new_init): Call buildsym_new_init().
7337 * objfiles.c (free_objfile): Call the appropriate symfile_finish()
7338 routine for the objfile before deallocating other stuff.
7339 * sparc-tdep.c (get_longjmp_target): Cast target_read_memory arg.
7340 * symfile.h: Move struct sym_fns to before struct objfile def.
7341 Add sym_finish function pointer and change prototypes of other
7342 function pointers to reflect passing struct objfile pointer rather
7343 than struct sym_fns pointer.
7344 * symfile.c: Remove now obsolete symtab_fns pointer.
7345 * symfile.c (symfile_init): Renamed to find_sym_fns, and now only
7346 locates the correct sym_fns struct for the given objfile.
7347 * symfile.c (syms_from_objfile, symbol_file_add): Restructured
7348 for better support of mapped symbol tables.
7349 * symfile.c (symbol_file_command): Remove obsolete code using
7350 symfile_fns.
7351 * symfile.h: Remove duplicate declarations for symfile_objfile,
7352 entry_point, and object_files.
7353 * target.c (target_info): Compare symfile_objfile to NULL.
7354 * xcoffread.c (aixcoff_new_init): Move deallocation stuff to
7355 aixcoff_symfile_finish().
7356
dc52fc71
FF
7357Wed Mar 18 18:22:46 1992 Fred Fish (fnf@cygnus.com)
7358
7359 * infrun.c (IN_SOLIB_TRAMPOLINE): Add default definition.
7360 * infrun.c (wait_for_inferior): Use IN_SOLIB_TRAMPOLINE.
7361 * tm-sysv4.h (IN_SOLIB_TRAMPOLINE): Add SVR4 definition.
7362
2cd99985
PB
7363Wed Mar 18 15:51:15 1992 Per Bothner (bothner@cygnus.com)
7364
7365 Some improvements to g++ debugging.
7366 * symtab.c (list_symbols): demangle before pattern matching.
7367 * symtab.c: Other fixes to improve handing of operators.
7368 * valprint.c (type_print_base): Fix test for constructor.
7369 * values.c (value_static_field): Allow evaluation of
7370 CLASS::METHOD, returning a function pointer.
7371
b0246b3b
FF
7372Wed Mar 18 08:39:52 1992 Fred Fish (fnf@cygnus.com)
7373
7374 * Makefile.in (VERSION): Roll 4.4.6.
7375 * exec.c (exec_file_command): Add code to ignore optional args
7376 passed in by file_command() for use in symbol_file_command().
7377 * main.c (main): Document -mapped and -readnow in help summary.
7378 * objfiles.c (open_mapped_file): Cosmetic change, arg renamed.
7379 * objfiles.c (allocate_objfile): Filename arg removed. Changes
7380 to get filename from bfd with bfd_get_filename(). Test mapto
7381 against 0, not NULL. Use mstrsave() to make copy of filename.
7382 * remote-mm.c (mm_load): Symbol_file_add() takes an additional
7383 arg.
7384 * remote-vx.c (vx_load_command, add_symbol_stub):
7385 Symbol_file_add() takes an additional arg.
7386 * solib.c (symbol_add_stub): Symbol_file_add() takes an
7387 additional arg.
7388 * symfile.c (symfile_open): Renamed to symfile_bfd_open and
7389 changed to return a bfd not an objfile pointer.
7390 * symfile.c (syms_from_objfile): Eliminate local copy of bfd.
7391 * symfile.c (symbol_file_add): Takes an additional arg (readnow).
7392 Change to eliminate local bfd and use symfile_bfd_open() plus
7393 allocate_objfile(). Add code to implement readnow option.
7394 * symfile.c (symbol_file_command): Changes to option handling,
7395 readnow functionality moved to symbol_file_add().
7396 * symfile.c (symfile_init): Eliminate local copy of bfd.
7397 * symfile.c (add_symbol_file_command): Changes to parse mapped
7398 and readnow options.
7399 * symfile.h (allocate_objfile): Arg removed from prototype.
7400 * symtab.h (symbol_file_add): Arg added to prototype.
7401 * xcoffexec.c (map_vmap): Allocate_objfile() takes an additional
7402 arg.
7403
318bf84f
FF
7404Sat Mar 14 16:38:47 1992 Fred Fish (fnf@cygnus.com)
7405
7406 * gmalloc.c, gmalloc.h mcheck.c mmap-alloc.c mmap-sbrk.c mtrace.c,
5a4470de 7407 mtrace.awk, state.c, state.h: Removed.
318bf84f
FF
7408 * .gdbinit: Add ../malloc, ../libiberty, and ../bfd to list of
7409 directories searched for source files.
7410 * Makefile.in (GNU_MALLOC, MALLOC_CFLAGS, MALLOCSRC): Removed
7411 * Makefile.in (MMALLOC_DIR, MMALLOC_DEP, MMALLOC_LIB,
7412 MMALLOC_DISABLE, MMALLOC_CHECK, MMALLOC_CFLAGS): Add
7413 * Makefile.in (CFLAGS): Replace MALLOC_CFLAGS with MMALLOC_CFLAGS.
7414 * Makefile.in (CLIBS, CDEPS): Add MMALLOC_LIB
7415 * Makefile.in (ADD_FILES, ADD_DEPS): Remove GNU_MALLOC.
7416 * Makefile.in (SFILES_MAINDIR): Remove stat.c mmap-alloc.c, mmap-
7417 sbrk.c
7418 * Makefile.in (HFILES): Remove state.h
7419 * Makefile.in (POSSLIBS_MAINDIR): Remove MALLOCSRC.
7420 * Makefile.in (OBS): Remove state.o mmap-alloc.o mmap-sbrk.o
7421 * Makefile.in (saber_gdb): Remove mcheck, mtrace. Add MMALLOC_DIR.
7422 * Makefile.in (clean): Remove all object files.
7423 * c-exp.y: Define malloc to xmalloc and realloc to xrealloc.
7424 * cplus-dem.c: Remove prototypes definitions that are now done in
7425 def.h.
7426 * dbxread.c (throughout): Change from using per-objfile
7427 xmalloc/xrealloc/free functions to xmmalloc/xmrealloc/mfree.
7428 * defs.h: Remove prototypes for mmap_* functions. Add prototypes
7429 for xmmalloc, xmrealloc, mfree, mmcheck, mmtrace, mmalloc_attach,
7430 mmalloc_detach, mmalloc_setkey, msavestring, and mstrsave, nomem.
7431 * depend: Remove dependencies for state.o, state.h.
7432 * dwarfread.c: Add declaration for warning_pre_print.
7433 * dwarfread.c (dwarfwarn): Use warning_pre_print.
7434 * dwarfread.c (throughout): Change from using per-objfile
7435 xmalloc/xrealloc/free functions to xmmalloc/xmrealloc/mfree.
7436 * gdbtypes.c (lookup_fundamental_type): Fix init_type calls to
7437 use supplied objfile.
7438 * i386-xdep.c (print_387_status): Change to use warning() rather
7439 than printfs.
7440 * i387-tdep.c (print_387_control_word): Change to use warning()
7441 rather than printfs.
7442 * infrun.c (wait_for_inferior): Remove unreachable abort() call
7443 that some compilers grumble about.
7444 * language.c (throughout): Add declaration for warning_pre_print
7445 and using warning() instead of printfs.
7446 * m2-exp.y: Define malloc to xmalloc and realloc to xrealloc.
7447 * main.c (main): Add declaration for warning_pre_print and set it
7448 similarly to error_pre_print. Add declarations for
7449 mapped_symbol_files and readnow_symbol_files. Add appropriate
7450 definitions to long_options[].
7451 * minsyms.c: Trivial fix to comment.
7452 * objfiles.c (allocate_objfile): Substantially rewritten for
7453 using mapped symbol files.
7454 * objfiles.c (throughout): Change from using per-objfile
7455 xmalloc/xrealloc/free functions to xmmalloc/xmrealloc/mfree.
7456 * objfiles.c (open_mapped_file, mapped_to_address): Add functions.
7457 * source.c (throughout): Change from using per-objfile
7458 xmalloc/xrealloc/free functions to xmmalloc/xmrealloc/mfree.
7459 * source.c (open_source_file): Use mstrsave to save file name in
7460 mapped symbol region for objfile.
7461 * symfile.c: Remove include for state.h.
7462 include to local form.
7463 * symfile.c (symbol_file_add_digested): Remove.
7464 * symfile.c (symbol_file_add): Substantially rewritten for mapped
7465 symbol files.
7466 * symfile.h: Remove malloc/xrealloc/xmalloc/xrealloc/free members
7467 from objfile structure. Add malloc descriptor pointer (md).
7468 * symfile.h (OBJF_DUMPABLE): Changed name to OBJF_MAPPED.
7469 * symm-xdep.c (print_fpu_status): Use warning() rather than
7470 printfs.
7471 * symmisc.c (free_symtab_block): Now takes and uses current
7472 objfile pointer.
7473 * symmisc.c (throughout): Change from using per-objfile
7474 xmalloc/xrealloc/free functions to xmmalloc/xmrealloc/mfree.
7475 * symtab.c (cplus_mangled_symbol): Cast return value to avoid
7476 Sun compiler grumblings when PTR is char *.
7477 * symtab.c (lookup_symbol): Cast return value of iterate_over_
7478 msymbols() to correct pointer type.
7479 * utils.c (warning_pre_print): Initialize to "\nwarning: ".
7480 * utils.c (fatal, fatal_dump_core): Ensure that the fatal
7481 error always starts on a line of it's own.
7482 * utils.c (init_malloc, malloc_botch, xmalloc, xrealloc):
7483 Rewrite for new mapped malloc package use.
7484 * utils.c (mmalloc, mrealloc, mfree): Stubs for configurations
7485 that don't want to use the mapped malloc package; pass arguments
7486 on to traditional malloc package functions.
7487 * utils.c (nomem): Add for fatal virtual memory exhausted aborts.
7488 * utils.c (xmmalloc, xmrealloc, xmalloc, xrealloc): Like mmalloc,
7489 mrealloc, malloc, and realloc but get fatal error if runs out
7490 of memory.
7491 * utils.c (msavestring, mstrsave): Save a string in a specific
7492 mapped malloc region.
7493 * utils.c (print_spaces): Use xmalloc to get the buffer.
7494 * xm-amix.h, xm-i386v4.h, xm-sun3os4.h, xm-sun4os4.h: Add defines
7495 for MMAP_BASE_ADDRESS and MMAP_INCREMENT.
7496 * config/i386v4.mh: Insignificant reorganization.
7497
0750528a
FF
7498Sat Mar 14 11:44:47 1992 Fred Fish (fnf@cygnus.com)
7499
7500 * xcoffread.c: Only enable compilation of debugging functions
7501 if IBM6000 is defined. Fails to compile otherwise.
7502
4db3902a
RP
7503Fri Mar 13 15:51:11 1992 K. Richard Pixley (rich@cygnus.com)
7504
7505 * Makefile.in: pass MAKEINFO down on info.
7506
bec9fad9
JG
7507Fri Mar 13 12:56:36 1992 John Gilmore (gnu at cygnus.com)
7508
7509 * mipsread.c (mipscoff_symfile_read): Eliminate a lot of
7510 useless code, including an lseek to an uninitialized variable.
7511 Reported by Jim Williams <jimbo@wrs.com>.
7512
6730b139
PB
7513Thu Mar 12 11:56:46 1992 Per Bothner (bothner@cygnus.com)
7514
4db3902a
RP
7515 Merged in patches from metin@ibmpa.awdpa.ibm.com (Metin G.
7516 Ozisik) (dated Fri, 6 Mar 92 17:51) for the rs6000.
7517 * minsyms.c, symfile.c: Changes that may be generally
7518 applicable, but are #ifdef IBM6000 for now.
7519 * rs6000-xdep.c: Fixed typo in comment.
7520 * rs6000-tdep.c: Non-substatial changes.
7521 * xoffread.c: The main change here is addition of some
7522 debugging functions.
7523 * xoffexec.c: More changes.
7524
7525 * xcoffread.c: Fixed two too-few-parameters bugs.
7526
6730b139
PB
7527 * solib.h, infrun.c, tm-rs6000.h: Add a PID parameter
7528 to SOLIB_CREATE_INFERIOR_HOOK macro.
7529
a846ac55
FF
7530Sun Mar 8 21:17:48 1992 Fred Fish (fnf@cygnus.com)
7531
7532 * symfile.h: Add prototype for iterate_over_msymbols().
7533 * symtab.c (cplus_mangled_symbol): Add function.
7534 * symtab.c (lookup_symbol): Call cplus_mangled_symbol via
7535 iterate_over_msymbols to find demangled C++ symbol.
7536 * xcoffexec.c (relocate_minimal_symbol): Return meaningful
7537 value to iterate_over_msymbols().
7538 * xcoffexec.c (vmap_symtab): Ignore return from iterate_over_
7539 msymbols().
7540
7541Fri Mar 6 21:59:34 1992 K. Richard Pixley (rich@cygnus.com)
7542
7543 * Makefile.in: added check target.
7544
a1106a1e
JG
7545Thu Mar 5 23:56:01 1992 John Gilmore (gnu at cygnus.com)
7546
7547 * ecoff.c: Move to ../bfd/coff-msym.c.
7548 * config/mt-*mips: Remove ecoff.o from the configuration.
53ccaf5f
JG
7549 * remote.c (): Add newline to initial +.
7550 (remote_resume): Mention how to cope with signals.
7551 (remote_interrupt): Add debug msg.
7552 (remote-wait): Implement new 'T' reply, which includes
7553 status, PC, and FP all in a single short message.
7554 (putpkt): Add further debugging of packet acks.
7555 * mipsread.c (fixup_symtab): Also swap RFD's.
7556 (parse_partial_symbols): Avoid bug on unknown symbol types.
b67cb9d5 7557 * Makefile.in (VERSION): Roll to 4.4.5.
a846ac55
FF
7558 * mips-tdep.c (heuristic_proc_start): Avoid long delays
7559 for remote MIPS by limiting heuristic to 200 byte search.
7560 (heuristic_proc_desc): Byte-swapping.
7561 (mips_print_register): Cope with failure of
7562 read_relative_register_raw_bytes. Byte-swap integers for
7563 printing.
7564 * mips-pinsn.c (print_insn): Byte-swap instruction.
a1106a1e 7565
1170a046
SG
7566Thu Mar 5 12:32:09 1992 Stu Grossman (grossman at cygnus.com)
7567
89f1a7df
SG
7568 * config.sub configure.in config/mh-irix4
7569 gdb/configure.in gdb/mips-tdep.c gdb/mipsread.c
1170a046 7570 gdb/procfs.c gdb/signame.h gdb/tm-irix3.h gdb/tm-mips.h
89f1a7df 7571 gdb/xm-irix4.h gdb/config/mt-irix3
1170a046
SG
7572 gdb/config/mh-irix4 texinfo/configure.in: Port to SGI Irix-4.x.
7573
d7eddc51
FF
7574Wed Mar 4 11:56:42 1992 Fred Fish (fnf@cygnus.com)
7575
7576 * defs.h, utils.c: xrealloc takes PTR as first arg.
7577 * defs.h: Reword confusing comment about ANSI prototypes.
7578 * defs.h: Some minor whitespace changes.
7579 * infrun.c (wait_for_inferior): Compare int tmp to int 0,
7580 not NULL, which can be (void *).
7581 * tm-amix.h, tm-i386v4.h: Add defines for setjmp/longjmp handling.
7582 * tm-i386v.h (SP_ARG0): Define
7583 * xm-sysv4.h: Back out of change for missing prototypes.
7584 * i386-tdep.c (get_longjmp_target): Add function.
7585
a846ac55
FF
7586Wed Mar 4 05:46:11 1992 K. Richard Pixley (rich@rtl.cygnus.com)
7587
7588 * Makefile.in: install man page too.
7589
d747e0af
MT
7590Tue Mar 3 15:11:52 1992 Michael Tiemann (tiemann@cygnus.com)
7591
7592 * All GDB files that #include defs.h: Removed stdio.h.
7593 (defs.h): #include stdio.h.
7594
96743d3c
SC
7595Mon Mar 2 23:00:12 1992 Steve Chamberlain (sac@thepub.cygnus.com)
7596
7597 * gdbtypes.c (lookup_pointer_type): initialize the TYPE_LENGTH of
7598 a ptype to reflect the setting of TARGET_PTR_BIT. Set the
7599 TYPE_FLAGS of a ptype to TYPE_FLAG_UNSIGNED.
7600 * tm-h8300.h, h8300-tdep.c, remote-hms.c: personal checkpoint
7601 * printcmd.c (print_address): if ADDR_BITS_REMOVE is defined, use
7602 it before printing out the hex shape of an address.
7603
6c6afbb9
PB
7604Sun Mar 1 17:41:09 1992 Per Bothner (bothner@cygnus.com)
7605
bff1c97a
FF
7606 * rs6000-xdep.c (frame_initial_stack_address): Move
7607 code to set frame->cache_fsr into new separate function
7608 frame_get_cacahe_fsr. This allows fixing a fatal error.
7609 * xcoffexec.c: Turn previously suppressed error
7610 message back on, after cleaning up BFD.
7611
6c6afbb9
PB
7612 * breakpoint.c (breakpoint_re_set): Removed (at least for now)
7613 printing of blank line, since it cases printing of an
7614 extra blank line. Is this intended? It does mess up
7615 gdb test suite.
7616 * defs.h: Put back declarations of malloc and realloc,
7617 but protected by #ifndef MALLOC_INCOMPATIBLE.
7618 * objfiles.c: Undo previous change: Use malloc/realloc
7619 for objfile malloc/realloc fields (but add a cast).
7620 * xcoffexec.c: Suppress an error message (for now).
7621
7622Sat Feb 29 14:43:02 1992 Per Bothner (bothner@cygnus.com)
7623
7624 Changes from metin@ibmpa.awdpa.ibm.com (Metin G. Ozisik)
7625 [Mail dated Fri, 21 Feb 92 13:14:54 -0800]
7626 * buildsym.c: Use smash_to_pointer_type() to handle forward type
7627 references.
7628 * xcoffread.c: Modifications to C_DECL storage class handling, and
7629 introduction of an old smash_to_pointer_type() routine.
7630
7631 Changes from metin@ibmpa.awdpa.ibm.com (Metin G. Ozisik)
7632 [Mail dated Thu, 20 Feb 92 13:57:16 -0800]
7633 * rs6000-xdep.c, rs6000-tdep.c, tm-rs6000.h: function_frame_info()
7634 parameters have been modified.
7635
7636 Changes from metin@ibmpa.awdpa.ibm.com (Metin G. Ozisik)
7637 [Mail dated Thu, 20 Feb 92 10:10:05 -0800]
7638 * rs6000-tdep.c: Before Feb 5 92, register_valid[] array was not used,
7639 and fetch_inferior_registers() always fetched all the registers
7640 resulting valid register values at hand all the time. Pushing a dummy
7641 frame did not require validating all register values first. After
7642 putting the above mechanism into action, we didn't have valid registers
7643 values always ready. Thus, all registers need to be fetched before
7644 pushing a dummy frame now.
7645
7646 Changes from metin@ibmpa.awdpa.ibm.com (Metin G. Ozisik)
7647 [Mail dated Thu, 13 Feb 92 16:22:44 -0800]
7648 * rs6000-xdep.c: frame_initial_stack_address() function to calculate
7649 the starting address (actual frame address) of a frame.
7650 * rs6000-tdep.c: modifications to function_frame_info() to see if
7651 function reserves a frame pointer register (alloca register)
7652 * tm-rs6000.h: EXTRA_FRAME_INFO, FRAME_ARGS_ADDRESS and
7653 FRAME_LOCALS_ADDRESS has been updated to support debugging of
7654 functions with alloca() calls.
7655
4b8333de
FF
7656Sun Mar 1 13:13:39 1992 Fred Fish (fnf@cygnus.com)
7657
7658 * xm-sysv4.h: Provide definitions/prototypes for host environment
7659 functions for which no definitions or prototypes are provided in
7660 any currently included gdb or host environment header files.
7661 For SVR4, this currently includes malloc and realloc, which cannot
7662 be portably prototyped in any gdb include file.
7663
7664Sat Feb 29 14:43:02 1992 Per Bothner (bothner@cygnus.com)
7665
7666 * buildsym.h: Remove obsolete variable file_stabs.
7667
7668 * Makefile.in: Move place where configure merges in host-
7669 and target-dependent fragments later, so the latter
7670 can override (say) GNU_MALLOC.
7671 * config/mh-rs6000: Use system malloc. Otherwise, I
7672 ended up with *two* incompatible versions of malloc
7673 (functions in libc would call the malloc in libc).
7674 I assume this is a shared library problem.
7675
7676 * remote.c: Fix (presumed) typo.
7677 * objfiles.c: Use xmalloc/xrealloc instead of
7678 malloc/realloc (since the latter are no longer declared).
7679
7680 Changes from metin@ibmpa.awdpa.ibm.com (Metin G. Ozisik)
7681 [Mail dated Thu, 6 Feb 1992 10:22:02 -0800]
7682 * rs6000-xdep.c: Improvements to fetch_inferior_registers() to
7683 handle individual registers.
7684 * tm-rs6000.h: Fix SAVED_PC_AFTER_CALL macro to handle pc value
7685 correctly in case it wasn't cached yet. (A problem showed up
7686 after fetching individual registers.)
7687 * buildsym.c: Disable type_synonym_name's type name overwriting
7688 in cases it is unnecesary. rs6000 portation doesn't use
7689 type_synonym_name, and it used to nullify type names
7690 * xcoffread.c: to handle g++'s typename abbreviation, fill in a
7691 type's name as soon as space for that type is allocated.
7692 * xcoffread.c: ignore a section's lineno information if it is
7693 not `.text'. (In rs6000 bfd portation integration, skipping over
7694 `.pad' sections are ignored since it was in machine independent
7695 part of the code. Thus, a problem of fake sections with invalid
7696 lineno information arised.)
7697
7698 Changes from metin@ibmpa.awdpa.ibm.com (Metin G. Ozisik)
7699 [Mail dated Thu, 6 Feb 1992 13:26:22 -0800]
7700 * rs6000-tdep.c: make function_frame_info() work whether or not
7701 reading from a core file.
7702 * tm-rs6000.h: Implementation of FRAME_FIND_SAVED_REGS macro.
7703
7704 * infrun.c. main.c, printcmd.c. symtab.c:
7705 More changes from IBM for rs6000.
7706
7707
818de002
PB
7708Thu Feb 27 22:57:19 1992 Per Bothner (bothner@cygnus.com)
7709
7710 * rs6k-opcode.h, tm-rs6000.h, xm-rs6000.h, rs6000-tdep.c,
7711 rs6000-xdep.c, xcoffexec.c, xcoffread.c:
7712 Merge in changes (mostly from IBM) for RS6000.
7713 * breakpoint.c, buildsym.c, infptrace.c, stack.c, symtab.c:
7714 More changes from IBM for RS6000. These are in machine-
7715 independent code, and probably could do with some cleaning
7716 up. The most questionable of these are #ifdef IBM6000.
7717 * infrun.c, sparc-tdep.c: Pass a parameter (signal number)
7718 to single_step() (for consistency with rs6000 and i860).
7719 * utils.c: Allow the 1st arg to xrealloc to be NULL
7720 (in which case do malloc). This removes the need for
7721 some tests in xcoff code (and perhaps other places?).
7722 * coffread.c: Removed variables last_source_file,
7723 type_vector, and type_vector_length as these are now
7724 defined by buildsym.[ch].
7725 * defs.h: Remove prototypes for malloc and realloc, since
7726 these should only be used to implement xmalloc and xrealloc,
7727 and they conflict with <stdlib.h> in AIX - where they
7728 return void* even when __STDC__ isn't defined. Sigh.
7729 * munch: Recognize *initialize* in data as well as text
7730 (AIX uses data). Also, incorporate a patch from Garrett
7731 Wollman <wollman@uvm-gen.uvm.edu> to make the sed script
7732 much more sensible, by only trying to match the name of
7733 the initialize_foo function, and not the junk before it.
7734
8537ba60
SG
7735Thu Feb 27 20:07:43 1992 Stu Grossman (grossman at cygnus.com)
7736
7737 * breakpoint.c (breakpoint_re_set_one): Don't reset breakpoint
7738 unless symbol table indicates that something has changed.
7739
069bc454
JG
7740Thu Feb 27 11:48:47 1992 John Gilmore (gnu at cygnus.com)
7741
b543979c
JG
7742 * remote.c: Make it work for embedded MIPS. Increase buffer
7743 size, and use throughout. Round buffer size up if too many regs.
7744 Support baud rate setting and try for an 8-bit path. If
7745 interrupted while waiting for target, send a ^C down the wire.
7746 Avoid single-byte reads.
7747 * tm-mips.h: Add more embedded-system registers to REGISTER_NAMES
7748 and NUM_REGS.
7749 * mips-xdep.h: Avoid the embedded regs when on Unix.
7750
d141f3e3
JG
7751 * mipsread.c: Byte-swap the symbol table structures, using
7752 routines from ecoff.c, to read a symbol table written in any
7753 of the four possible byte orders.
069bc454
JG
7754 * configure.in (mips-big-* target): Same as Sony News.
7755 * config/mt-bigmips, config/mt-littlemips: Add ecoff.o.
7756 * ecoff.c: New file for symbol swapping routines.
7757
80ba48f5
SG
7758Thu Feb 27 09:26:38 1992 Stu Grossman (grossman at cygnus.com)
7759
7760 * breakpoint.c (all_breakpoints_info, breakpoint_1): Add 'info
7761 all-breakpoints' command.
7762 * (get_number): Allow users to enter negative breakpoint numbers.
7763 * (breakpoint_1): Reformat display of 'info break' to show new
7764 fields.
7765 * (create_longjmp_breakpoint, breakpoint_re_set,
7766 breakpoint_re_set_one, enable/disable_longjmp_breakpoint),
7767 symfile.c (syms_from_objfile): Re-do
7768 insertion of longjmp breakpoints. Move all code into
7769 breakpoint_re_set, and call that instead of
7770 create_longjmp_breakpoint in symfile.c.
7771
cba0d141
JG
7772Thu Feb 27 06:11:05 1992 John Gilmore (gnu at cygnus.com)
7773
7774 * breakpoint.h (ALL_BREAKPOINTS_SAFE): Add.
7775 * breakpoint.c (breakpoint_re_set): Use ALL_BREAKPOINTS_SAFE.
7776 * symtab.c (find_pc_symtab): Handle having no objfiles.
7777 * infcmd.c: Fix comment.
7778 * objfiles.c (free_all_objfiles): Add.
7779 * symfile.h (ALL_OBJFILES, ALL_OBJFILES_SAFE): Add.
7780 * symfile.c (symbol_file_command): free all objfiles when
7781 specifying a new symbol file.
7782 (reread_symbols): Stat the file name, don't fstat the descriptor.
7783
a846ac55
FF
7784Wed Feb 26 18:04:40 1992 K. Richard Pixley (rich@cygnus.com)
7785
7786 * Makefile.in, configure.in: removed traces of namesubdir,
7787 -subdirs, $(subdir), $(unsubdir), some rcs triggers. Forced
7788 copyrights to '92, changed some from Cygnus to FSF.
7789
cba0d141
JG
7790Tue Feb 25 19:31:19 1992 Stu Grossman (grossman at cygnus.com)
7791
7792 * dbxread.c (end_psymtab): Delete empty psymtabs.
7793 * symfile.c (allocate_psymtab): Recycle empty psymtabs.
7794 * symfile.h (struct objfile): Add free_psymtabs.
7795
35318110
JG
7796Sat Feb 22 02:00:32 1992 John Gilmore (gnu at cygnus.com)
7797
47890ed7
JG
7798 * Makefile.in (VERSION): Roll to gdb-4.4.4.
7799
35318110
JG
7800 * symfile.c (symbol_file_command): strcmp => !strcmp.
7801 * breakpoint.h: Move prototypes to follow enum definition they need.
7802 * breakpoint.c, infrun.c: Lint.
7803 * printcmd.c: Use `enum enable' rather than `enum
7804 display_status'.
7805 * mipsread.c: First pass at making it compile with the new
7806 objfile changes. Probably seriously broken still, but it
7807 compiles. FIXME.
7808
30875e1c
SG
7809Sat Feb 22 00:56:39 1992 Stu Grossman (grossman at cygnus.com)
7810
7811 * infrun.c, infcmd.c, breakpoint.c, main.c, symfile.c,
7812 breakpoint.h, tm-sun4os4.h, tm-sparc.h, sparc-tdep.c, tm-mips.h,
7813 mips-tdep.h, tm-sun3.h, tm-68k.h, m68k-tdep.h: Add support for
7814 stepping (and nexting) through longjmp(). Also, cleanup
7815 breakpoint handling quite a bit by creating explicit breakpoint
7816 types instead of using magic breakpoint numbers.
7817 Makefile.in: Update version to 4.4.3
7818
021959e2
JG
7819Sat Feb 22 00:08:50 1992 John Gilmore (gnu at cygnus.com)
7820
93fe4e33
JG
7821 * buildsym.c, dwarfread.c, gdbtypes.c, inflow.c, main.c,
7822 minsyms.c, printcmd.c, remote.c, saber.suppress: Saberlint.
7823 * symmisc.c, xcoffread.c: Move debug functions to symmisc.c.
7824
021959e2
JG
7825 * xm-sun3os4.h, xm-sun4os4.h: Enable HAVE_MMAP.
7826
7827 * minsyms.c (install_minimal_symbols): Add bunches to any
7828 existing minsyms in the objfile. Avoid extra mallocation
7829 by working directly in the obstack. Remove ignored `mainline' parm.
7830 * coffread.c, dbxread.c, elfread.c, mipsread.c, solib.c, symtab.h,
7831 xcoffread.c: Change all callers.
7832 * FIXME: We should be able to eliminate MAINLINE from all the
7833 symbol readers now, with a small bit of work.
7834
7835 * valops.c, value.h: Lint.
7836 * remote-vx.c: Add missing break; statement. Bugfix by
7837 Michael Sclafani, <sclafani@src.dec.com>.
7838
bff1c97a
FF
7839Fri Feb 21 17:29:54 1992 Fred Fish (fnf at cygnus.com)
7840
7841 * Makefile.in (VERSION): Update version to 4.4.2
7842 * Makefile.in (SFILES_MAINDIR): Add gdbtypes.c, state.c, objfiles.c,
7843 minsyms.c, mmap-alloc.c, mmap-sbrk.c
7844 * Makefile.in (HFILES): Add gdbtypes.h, state.h, solib.h
7845 * Makefile.in (OBS): Add gdbtypes.o, state.o, objfiles.o, minsyms.o,
7846 mmap-alloc.o, mmap-sbrk.o
7847
7848 * altos-xdep.c: Minor whitespace change.
7849 * am29k-tdep.c (examine_prologue): Convert from misc function vector
7850 use to new minimal symbol table use.
7851 * arm-xdep.c (fetch_inferior_registers): Document unused argument.
7852 * arm-xdep.c (store_inferior_registers): Returns void.
7853 * blockframe.c (get_pc_function_start, find_pc_partial_function):
7854 Convert from misc function vector use to new minimal symbol table use.
7855 Remove find_pc_misc_function(). Ifdef out block_innermost_frame().
7856 * breakpoint.c: Add prototypes for local functions.
7857 * breakpoint.c (catch_command_1): Change to static and remove unused
7858 local "pc".
7859 * breakpoint.c (map_breakpoint_numbers): Prototype arg "function".
7860 * breakpoint.h: Change function decls to prototype form.
7861 * buildsym.c: Add prototypes for local functions.
7862 * buildsym.c: Moved hashname() function here from dbxread.c.
7863 * buildsym.c (dbx_lookup_type): Cast args to xrealloc().
7864 * buildsym.c: Remove dbx_create_type(), uses changed to alloc_type().
7865 * buildsym.c (dbx_alloc_type): Change to static.
7866 * buildsym.c (finish_block): Add objfile parameter.
7867 * buildsym.c (misc): Change symbol_obstack to objfile version.
7868 * buildsym.c (make_blockvector): Change to static.
7869 * buildsym.c (start_subfile): Use strdup instead of obsavestring.
7870 * buildsym.c (compare_line_numbers): Change to static, args are const,
7871 cast args when used.
7872 * buildsym.c (start_symtab): Inline new_object_header_files() call.
7873 * buildsym.c (patch_block_stabs): Moved to this file from xcoffread
7874 and made static. Add objfile parameter.
7875 * buildsym.c (end_symtab): Simplify code using line table size.
7876 Realloc the linetable on the objfile symbol_obstack and copy there.
7877 * buildsym.c (scan_file_globals): Convert from misc function vector
7878 use to new minimal symbol use.
7879 * buildsym.c (define_symbol): Add objfile parameter. Make sure
7880 strings get allocated in objfile's symbol_obstack. Convert references
7881 to builtin types to lookup_fundamental_type().
7882 * buildsym.c (read_type): Make static, add objfile parameter, convert
7883 references to buildin types to lookup_fundamental_type().
7884 * buildsym.c (read_struct_type): Add objfile parameter.
7885 * buildsym.c (read_array_type): Make static, add objfile parameter.
7886 * buildsym.c (read_enum_type): Make static, add objfile parameter.
7887 * buildsym.c (read_huge_number): Make static.
7888 * buildsym.c (read_range_type): Make static, add objfile parameter,
7889 convert references to buildin types to lookup_fundamental_type ().
7890 * buildsym.c (read_args): Make static, add objfile parameter.
7891 * buildsym.h: Convert function decl's to prototype form.
7892 * c-exp.y: Add prototypes for local functions, convert uses of misc
7893 function vector to minimal symbol table. Reformat all builtin type
7894 initializations and pass a NULL objfile to init_type() for them.
7895 * coffread.c: Change context_stack ref's to coff_context_stack,
7896 add local function prototypes. Cast uses of xrealloc arg 1.
7897 * coffread.c (coff_alloc_type): Call alloc_type instead of hand-
7898 crafting a new type.
7899 * coffread.c (add_symbol_to_list): Change to coff_add_symbol_to_list.
7900 * coffread.c (finish_block): Change name to coff_finish_block.
7901 * coffread.c (make_blockvector): Add and use objfile parameter.
7902 * coffread.c (record_line): Change name to coff_record_line.
7903 * coffread.c (start_symtab): Change name to coff_start_symtab.
7904 * coffread.c (end_symtab): Change name to coff_end_symtab.
7905 * coffread.c (record_misc_function): Change name to record_minimal_
7906 symbol and change to minimal symbol table use from misc func tbl.
7907 * coffread.c (coff_symfile_read): Convert from misc function vector
7908 use to minimal symbol table use.
7909 * coffread.c (hashname): Remove; use common version in buildsym.c.
7910 * coffread.c (decode_base_type): Change references to builtin types
7911 to calls to lookup_fundamental_type().
7912 * coffread.c (read_struct_type): Change name to coff_read_struct_type.
7913 * coffread.c (read_enum_type): Change name to coff_read_enum_type.
7914 * command.c: Add prototypes for local functions.
7915 * command.c (add_cmd): Prototype the 'fun' parameter and use the
7916 appropriate member of the function union for that type.
7917 * command.c (add_abbrev_cmd): Prototype the 'fun' parameter and
7918 ifdef out the function since it isn't currently used.
7919 * command.c (add_alias_cmd): Pass correct function type to add_cmd.
7920 * command.c (add_prefix_cmd): Prototype the 'fun' parameter.
7921 * command.c (add_abbrev_prefix_cmd): Prototype the 'fun' parameter.
7922 * command.c (help_cmd): Compare function pointer to NULL.
7923 * command.c (help_cmd_list): Compare function pointer to NULL.
7924 * command.c (lookup_cmd_1): Use correct member of function union.
7925 * command.c (undef_cmd_error): Make static.
7926 * command.c (complete_on_cmdlist): Use correct member of func union.
7927 * command.c (do_setshow_command): Use correct member of func union.
7928 * command.c (shell_escape): Convert rindex use to strrchr.
7929 * command.h (COMMAND_H): Define if already included.
7930 * command.h (cmd_list_element struct): Change 'function' to a union
7931 and prototype args. Prototype completer function.
7932 * command.h: Convert decl's to prototype form.
7933 * convex-xdep.c (store_inferior_registers): Returns void.
7934 * copying.c: Prototype local functions.
7935 * coredep.c: Minor whitespace change.
7936 * cplus-dem.c: Remove hack to use BSD equivalents of mem* and str*.
7937 * cplus-dem.c: Prototype local functions.
7938 * dbxread.c (hashname): Remove; moved to buildsym.c.
7939 * dbxread.c (free_and_init_header_files): Make static.
7940 * dbxread.c: Add prototypes for local functions.
7941 * dbxread.c (new_object_header_files): Remove; inlined usages.
7942 * dbxread.c (xrealloc usages): Cast args.
7943 * dbxread.c (record_misc_function): Change to record_minimal_symbol
7944 and change usages accordingly.
7945 * dbxread.c (static_psymbols usages): Change to use per-objfile copy.
7946 * dbxread.c (xmalloc usages): Use per-objfile copy when appropriate.
7947 * dbxread.c (dbx_next_symbol_text): Make static.
7948 * dbxread.c (init_psymbol_list): Convert to use per-objfile data.
7949 * dbxread.c (init_bincl_list): Add and use objfile parameter.
7950 * dbxread.c (free_bincl_list): Add and use objfile parameter.
7951 * dbxread.c (compare_psymbols): Remove; use common symfile.c version.
7952 * dbxread.c (end_psymtab): Convert to use per-objfile data.
7953 * dwarfread.c (DEFUN/EXFUN): Remove all usages. Use PARAMS for
7954 prototypes.
7955 * dwarfread.c (record_misc_function): Change name to record_minimal_
7956 symbol and use minimal symbol table throughout.
7957 * dwarfread.c (compare_psymbols): Remove; use common symtab.c version.
7958 * dwarfread.c: Convert all references to builtin types to use the new
7959 lookup_fundamental_type function.
7960 * dwarfread.c (read_enumeration): Add and use objfile parameter.
7961 * elfread.c (DEFUN/EXFUN): Remove all usages. Use PARAMS for proto-
7962 types.
7963 * elfread.c (record_misc_function): Convert to use record_minimal_
7964 symbol.
7965 * elfread.c (elf_symtab_read): Add objfile parameter.
7966 * eval.c: Add prototypes for local functions and move some decls
7967 around to accomodate prototypes.
7968 * expprint.c: Add prototypes for local functions. Change references
7969 to misc function vector to minimal symbol table.
7970 * findvar.c (read_memory usages): Cast args.
7971 * gdbtypes.h: New file, type info from symfile.h and symtab.h.
7972 * gmalloc.c: Use NOARGS where prototypes used hardwired void.
7973 * gmalloc.c (BLOCKSIZE): Constant to be shifted is unsigned.
7974 * gmalloc.h: Use NOARGS where prototypes used hardwired void.
7975 * gould-xdep.c: Minor whitespace change.
7976 * hp300ux-xdep.c (fetch_inferior_registers): Remove unused regno var.
7977 * hp300ux-xdep.c (store_inferior_registers): Returns void.
7978 * hp300ux-xdep.c (fetch_core_registers): Takes unused arg reg_addr.
7979 * i386-stub.c: Add prototypes, change "volatile" to NORETURN.
7980 * i386-tdep.c: Add prototypes for local functions.
7981 * i386-tdep.c (codestream_fill, codestream_seek, codestream_read,
7982 i386_get_frame_setup, i386_skip_prologue): Explicitly declare params
7983 that defaulted to int.
7984 * i386-tdep.c (i386_follow_jump, i386_frame_find_saved_regs,
7985 i386_push_dummy_frame): Returns void.
7986 * i386-xdep.c (i386_register_u_addr): Declare params that default to
7987 int and explicitly declare return type as int.
7988 * i387-tdep.c: Minor formatting changes.
7989 * i960-tdep.c (leafproc_return): Convert from misc function vector
7990 use to minimal symbol table use.
7991 * infcmd.c: Add prototypes for local functions.
7992 * infcmd.c (continue_command, until_next_command, until_command,
7993 path_info, path_command): Make static.
7994 * infcmd.c (step_1, until_next_command): Convert from misc func
7995 vector to minimal symbol table use.
7996 * inflow.c: Add prototypes for local functions.
7997 * infptrace.c (store_inferior_registers): Returns void, not int.
7998 * language.c (_initialize_language): Use proper member of function
7999 union.
8000 * m2-exp.y: Add prototypes for local functions, convert misc function
8001 vector uses to minimal symbol table uses.
8002 * m2-exp.y (make_qualname, yyerror): Make static.
8003 * m2-exp.y (_initialize_m2_exp): Call init_types with NULL objfile.
8004 * m68k-pinsn.c: Add prototypes for local functions.
8005 * m68k-pinsn.c (print_insn): Cast args to read_memory.
8006 * m68k-pinsn.c (fetch_arg): Make parameter 'code' and int.
8007 * m68k-stub.c: Add prototypes.
8008 * m88k-pinsn.c (sprint_address): Convert from misc function vector
8009 use to minimal symbol table use.
8010 * m88k-xdep.c (fetch_inferior_registers): Takes an unused parameter.
8011 * m88k-xdep.c (store_inferior_registers): Returns void.
8012 * mach386-xdep.c (fetch_inferior_registers): Takes an unused param.
8013 * mach386-xdep.c (store_inferior_registers): Returns void.
8014 * mach386-xdep.c (fetch_core_registers): Takes an unused parameter.
8015 * main.c: Add prototypes for local functions.
8016 * main.c (return_to_top_level): Is type NORETURN (volatile). Cast
8017 longjmp() result to (NORETURN void).
8018 * main.c (catch_errors): Prototype the 'func' parameter.
8019 * main.c (disconnect, stop_sig, do_nothin, float_handler):
8020 Takes an unused arg.
8021 * main.c (execute_command): Call the right member of the func union.
8022 * main.c (command_loop_marker, symbol_completion_function,
8023 command_loop): Make static.
8024 * main.c (command_line_input): Make linelength unsigned, cast arg
8025 to command_line_input().
8026 * main.c (add_info, add_com): Prototype the 'fun' parameter.
8027 * main.c (initialize_main): Call right member of function union.
8028 * mcheck.c (NOARGS): Change hardwired void in prototypes to NOARGS.
8029 * mem-break.c: Include symtab.h
8030 * mips-xdep.c (fetch_inferior_registers): Takes unused param.
8031 * mips-xdep.c (store_inferior_registers): Returns void.
8032 * mipsread.c (mipscoff_symfile_read): Change from misc function vector
8033 use to minimal symbol table use.
8034 * mipsread.c (symbol_obstack usages): Convert all to use per-objfile
8035 version.
8036 * mipsread.c (make_type): Remove, convert usages to init_type.
8037 * mipsread.c (_initialize_mipsread): Call init_type with NULL objfile.
8038 * nindy-tdep.c (nindy_frame_chain_valid): Convert from misc function
8039 vector use to minimal symbol table use.
8040 * parse.c: Add prototypes for local functions.
8041 * parse.c (xrealloc usages): Cast args.
8042 * parse.c (prefixify_expression, length_of_subexp): Make static.
8043 * parser-defs.h (PARSER_DEFS_H): Define when first included.
8044 * parser-defs.h: Convert function decls to prototype form.
8045 * partial-stab.h: Convert from misc function vector use to new minimal
8046 symbol table use.
8047 * partial-stab.h (global_psymbols, static_psymbols usages): Reference
8048 the per-objfile copies.
8049 * printcmd.c: Add prototypes for local functions. Move some struct
8050 definitions around to accomodate prototypes.
8051 * printcmd.c (decode_format): Make static, change args oformat and
8052 osize to int from char.
8053 * printcmd.c (print_formatted): Change 'format' and 'size' to int.
8054 * printcmd.c (print_scalar_formatted): Change arg 'format' to int.
8055 * printcmd.c (print_address_symbolic): Convert from misc function
8056 vector use to minimal symbol table use.
8057 * printcmd.c (address_info): Convert from misc function vector use
8058 to minimal symbol table use.
8059 * printcmd.c (delete_display, enable_display, disable_display_command):
8060 Make static.
b52373a2 8061 * procfs.c (EXFUN/DEFUN): Remove all usages, convert to PARAMS.
bff1c97a
FF
8062 * procfs.c (fetch_core_registers): Add unused param reg_addr.
8063 * pyr-xdep.c (fetch_inferior_registers): Add unused param regno.
8064 * pyr-xdep.c (store_inferior_registers): Returns void.
8065 * remote-mm.c (mm_load): symbol_file_add return value unused.
8066 * remote-nindy.c: Minor format change.
8067 * remote-vx.c (vx_load_command): symbol_file_add result unused.
8068 * rs6000-xdep.c (fetch_inferior_registers): Add unused param regno.
8069 * rs6000-xdep.c (store_inferior_registers): Returns void.
8070 * rs6000-xdep.c (fetch_core_registers): add unused param reg_addr
8071 * rs6000-xdep.c (aixcoff_relocate_symtab): Convert from misc function
8072 vector use to minimal symbol table use.
8073 * solib.c: Add prototypes for local functions.
8074 * solib.c (solib_add_common_symbols, locate_base): Convert from misc
8075 function vector use to minimal symbol table use.
b52373a2 8076 * solib.c (EXFUN/DEFUN): Remove all usages, convert to PARAMS.
bff1c97a
FF
8077 * solib.c (find_solib, shared_library_command): Make static
8078 * solib.c (read_memory, write_memory usages): Cast args.
8079 * solib.c (special_symbol_handling): Add function
8080 * source.c: Add prototypes for local functions.
8081 * source.c (select_source_symtab): Convert to scan objfiles.
8082 * source.c (open_source_file): Make static.
8083 * source.c (xrealloc usages): Cast args.
8084 * source.c (source_line_charpos): ifdef out, unused.
8085 * source.c (get_filename_and_charpos): Make static.
8086 * stack.c: Add prototypes for local functions.
8087 * stack.c (print_frame_info, frame_info): Convert from misc function
8088 vector use to minimal symbol table use.
8089 * symfile.c: Add prototypes for local functions.
8090 * symfile.c (compare_symbols): Make args const PTR's.
8091 * symfile.c (compare_psymbols, sort_pst_symbols) add.
8092 * symfile.c (sort_all_symtab_syms): Scan objfile list.
8093 * symfile.c (obsavestring): Add objfile parameter.
8094 * symfile.c (init_misc_bunches, prim_record_misc_function,
8095 compare_misc_functions, discard_misc_bunches, condense_misc_bunches,
8096 sort_misc_function_vector, compact_misc_function_vector): Remove
8097 * symfile.c (symbol_file_add_digested): Add function.
8098 * symfile.c (symbol_file_add): Returns struct objfile *.
8099 * symfile.c (symbol_file_command): Modify for state file use.
8100 * symfile.c (symfile_open): Add parameter "dumpable".
8101 * symfile.c (allocate_objfile, free_objfile): Moved to objfiles.c
8102 * symfile.c (load_command, add_symbol_file_command): Make static.
8103 * symfile.c (fill_in_vptr_fieldno): Moved to gdbtypes.c
8104 * symfile.c (rindex usages): Converted to strrchr.
8105 * symfile.c (allocate_psymtab): New
8106 * symfile.c (free_named_symtabs): Ifdef out code that needs to be
8107 converted to minimal symbol table usage, but no obvious conversion.
8108 * symfile.c (free_all_symtabs): Remove.
8109 * symfile.c (_initialize_symfile): Use per-objfile info.
8110 * symfile.h: Rework the objfile structure to add per-objfile data
8111 objects (psymbol_obstack, symbol_obstack, type_obstack,
8112 global_psymbols, static_psymbols, msymbols, minimal_symbol_count,
8113 fundamental_types, malloc, realloc, free, xmalloc, xrealloc, etc).
8114 Add prototypes to function declarations.
8115 * symm-tdep.c (symmetry_extract_return_value): Convert from misc
8116 function vector usage to minimal symbol table usage.
8117 * symmisc.c (DEV_TTY): Define if not defined.
8118 * symmisc.c: Add local function prototypes.
8119 * symmisc.c (dump_objfile, dump_msymbols, dump-symtab, print_syms,
8120 printpsyms_command, print_objfiles, print_objfiles_command):
8121 Rework to use iterate_over_*
8122 * symtab.c: Add prototypes for local functions.
8123 * symtab.c (lookup_symtab_1): Convert to look through objfiles.
8124 * symtab.c (lookup_partial_symtab): Scan through objfiles.
8125 * symtab.c (lookup_primitive_typename, lookup_typename, lookup_
8126 unsigned_typename, lookup_struct, lookup_union, lookup_enum,
8127 lookup_template_type, lookup_struct_elt_type, lookup_pointer_type,
8128 lookup_reference_type, lookup_member_type, allocate_stub_method,
8129 check_stub_method, create_array_type, smash_to_member_type,):
8130 Moved to gdbtypes.c
8131 * symtab.c (lookup_symbol): Some args are const.
8132 * symtab.h: All type related defs and structs moved to gdbtypes.h
8133 * symtab.h: Convert decls to prototypes.
8134 * target.c (noprocess): Make static.
8135 * target.h: Change decl's to prototypes.
8136 * tm-sunos.h: (CLEAR_SOLIB, SOLIB_ADD, SOLIB_CREATE_INFERIOR_HOOK,
8137 DISABLE_UNSETTABLE_BREAK) Moved to solib.h.
8138 * utils.c (_initialize_utils): Use correct member of function union.
8139 * valarith.c: include gdbtypes.h
8140 * valops.c: include gdbtypes.h, add prototypes for local functions.
8141 * valops.c (value_push, value_arg_push, find_function_addr):
8142 Make static.
8143 * valops.c (value_string): Convert from misc function vector use
8144 to minimal symbol table use.
8145 * valops.c (check_field_in): Make arg const.
8146 * valprint.c: Add prototypes for local functions.
8147 * valprint.c (print_string): Make static
8148 * valprint.c (value_print, val_print_fields, val_print): Make arg int.
8149 * values.c: Add prototypes for local functions.
8150 * values.c (value_headof): Convert from misc function vector to
8151 minimal symbol table.
8152 * xcoffexec.c: Add prototypes for local functions.
8153 * xcoffexec.c (exec_close, file_command, add_to_section_table):
8154 Make static.
8155 * xcoffexec.c (relocate_minimal_symbol): Add.
8156 * xcoffread.c (patch_block_stabs): Moved to buildsyms.c.
8157 * xcoffread.c: Add prototypes for local functions.
8158 * xcoffread.c (sort_syms): Convert to scan objfiles.
8159 * xcoffread.c (read_xcoff_symtab): Make static.
8160 * xcoffread.c (various): Replace references to builtin types with
8161 calls to lookup_fundamental_type. Replace references to symbol_obstack
8162 and psymbol_obstack with pointers to the per-objfile copies.
8163 * xcoffread.c (dump_linetable, dump_type, dump_symbol, dump_namespace,
8164 dump_block, dump_blockvector, dump_last_symtab, dump_symtabs):
8165 Make static.
8166 * xcoffread.c (init_stringtab): Add objfile parameter.
8167 * gdbtypes.c: New file
8168 * minsyms.c: New file
8169 * mmap-alloc.c: New file
8170 * mmap-sbrk.c: New file
8171 * objfiles.c: New file
8172 * state.c: New file
8173 * state.h: New file
8174
021959e2
JG
8175Fri Feb 21 17:29:54 1992 John Gilmore (gnu at cygnus.com)
8176
8177 * Check in Fred Fish's changes in these modules. Fred
93fe4e33
JG
8178 will make ChangeLog entries for all of them. Update VERSION
8179 to 4.4.2.
021959e2 8180
7919c3ed
JG
8181Thu Feb 20 18:10:17 1992 Fred Fish (fnf at cygnus.com)
8182
8183 * tm-sparc.h, tm-sysv4.h, solib.h: Move shared lib definitions
8184 into solib.h.
8185 * sparc-pinsn.c, sparc-tdep.c, standalonec, sun3-xdep.c,
8186 sun386-xdep.c, symm-xdep.c, target.c, ultra3-xdep.c, utils.c,
8187 value.h: Prototypes for static functions; lint.
8188 * gdbtypes.h: Empty file to ease transition.
8189
75af490b
JG
8190Thu Feb 20 16:43:13 1992 Fred Fish (fnf at cygnus.com)
8191
8192 * environ.h, expression.h, frame.h, gdbcmd.h, gdbcore.h,
8193 inferior.h, language.h, signame.h, target.h, terminal.h,
8194 tm-68k.h, tm-i386v.h, tm-sparc.h, tm-sun386.h, tm-symmetry.h,
8195 xm-i386v.h, xm-sparc.h: Prototypes for all external functions.
8196 Lint.
8197 * core.c, exec.c, infrun.c, inftarg.c, language.c, remote.c,
8198 signame.c, sparc-xdep.c: Prototypes for all static functions.
8199 Lint.
8200 * core.c, eval.c, exec.c, inftarg.c, remote-adapt.c, remote-eb.c,
8201 remote-hms.c, remote-mm.c, remote-nindy.c, remote-vx.c, remote.c,
8202 target.c, target.h, valarith.c, valops.c, value.h, xcoffexec.c:
8203 Remove to_call_function and target_call_function, since it
8204 always calls the same thing (call_function_by_hand).
8205 * core.c, exec.c, solib.c: Rename target_ops sections =>
8206 to_sections, etc.
8207 * infcmd.c, inflow.c, infptrace.c, infrun.c, main.c, target.c,
8208 target.h: target_kill takes no args.
8209 * language.c (language_info): Scaffolding to allow briefer
8210 messages when the current language changes. FIXME.
8211 * xm-amix.h, xm-i386v4.h, xm-stratus.h: Define NORETURN to avoid
8212 complaints about volatile functions.
8213 * xm-sysv4.h (HAVE_MMAP): Define.
8214
8215Thu Feb 20 09:04:18 1992 Fred Fish (fnf at cygnus.com)
088c3a0b
JG
8216
8217 * defs.h: Include ansidecl.h and PARAMS macro. Use PARAMS
8218 to make prototypes for all functions declared here.
8219 * cplus-dem.c: Avoid declaring xmalloc and xrealloc.
8220 * c-exp.y: Rename SIGNED, OR, and AND to avoid conflict.
8221 * environ.c: Include <stdio.h> before defs.h. Minor cleanup.
8222 * ieee-float.h: Use PARAMS for prototypes; make some params const.
8223 * ieee-float.c, valarith.c: Include <stdio.h>. Lint. b*=>mem*.
8224 * m2-exp.y: Remove unused CONST; Rename OR and AND.
8225 * utils.c: Avoid declaring malloc and realloc. Lint.
8226 (request_quit): Accept signal-number parameter.
8227
af213624
FF
8228Mon Feb 17 07:13:27 1992 Fred Fish (fnf at cygnus.com)
8229
9e4c1921
FF
8230 * dwarfread.c (process_dies): Add case to handle TAG_pointer_type
8231 DIE's. Add new function read_tag_pointer_type() to read them.
8232
af213624
FF
8233 * dwarfread.c (dwarf_read_array_type, read_subroutine_type):
8234 When creating a new user defined type, check to see if a partial
8235 type already exists, and if so, bash it to fit.
8236
be8303da
JG
8237Fri Feb 14 19:00:17 1992 John Gilmore (gnu at cygnus.com)
8238
8239 * coffread.c (decode_base_type): Pass long, not union.
8240 Fix by Eric Valette, ev@chorus.fr.
8241
d35bf52d
FF
8242Thu Feb 13 17:14:28 1992 Fred Fish (fnf at cygnus.com)
8243
8244 * elfread.c (elf_symtab_read): Fix code to correctly track
8245 changes in bfd for absolute symbols.
8246
5b620e75
SG
8247Thu Feb 13 12:43:29 1992 Stu Grossman (grossman at cygnus.com)
8248
8249 * xm-vaxbsd.h: Close off comment.
8250
0a663e9e
FF
8251Thu Feb 13 07:45:19 1992 Fred Fish (fnf at cygnus.com)
8252
8253 * xm-sysv4.h: Define NEED_POSIX_SETPGID.
8254
8255Fri Feb 7 11:51:12 1992 Per Bothner (bothner at cygnus.com)
8256
8257 * mips-tdep.c (mips_print_registers): Print correct register
8258 number for double pseudo-registers.
8259
ef9b1bc9
JG
8260Fri Feb 7 07:56:05 1992 John Gilmore (gnu at cygnus.com)
8261
256269fc
JG
8262 * buildsym.c (read_struct_type): Avoid double-bump of parse ptr
8263 in the op$::OPERATOR. case. From Steven McCanne,
8264 <mccanne@horse.ee.lbl.gov>.
8265
ef9b1bc9
JG
8266 * exec.c (set_section_name): Pass arg to exec_files_info;
8267 only call it if interactive. From Francis Kauth <fk@tv.tv.tek.com>.
8268
195853fc
JG
8269Thu Feb 6 17:41:32 1992 John Gilmore (gnu at cygnus.com)
8270
8271 * main.c (print_gdb_version): Copyright msg: only this year.
8272 (cd_command): Avoid changing current_directory on error.
8273
ee17fd34
PB
8274Thu Feb 6 15:14:01 1992 Per Bothner (bothner at cygnus.com)
8275
8276 * mipsread.c (parse_partial_symbols): Handle dependencies
8277 between partial symbol tables (when not doing stabs-in-ecoff).
8278 (This used to be handled by parse_fdr, but parse_fdr was
8279 incompatible with handling stabs-in-ecoff, so the code
8280 was re-written to not use parse_fdr. Unfortunately,
8281 the logic to handle dependencies was overlooked.)
8282
1f46923f
SC
8283Thu Feb 6 11:51:39 1992 Steve Chamberlain (sac at rtl.cygnus.com)
8284
8285 * coffread.c (read_enum_type): Use the size of a target int when
8286 describing enum.
8287 * defs.h: added new #define for TARGET_PTR_BIT, defaults to size
8288 of target int.
8289 * h8300-tdep.c, remote-hms.c, tm-h8300.h: too many changes to count
8290 * symtab.c (lookup_reference_type, lookup_ptr_type): use
8291 TARGET_PTR_BIT to determine size of a pointer
8292 * values.c (unpack_long): when unpacking a REF or a PTR don't
8293 assume the size of the type.
8294
778c358d
JG
8295Wed Feb 5 22:29:59 1992 John Gilmore (gnu at cygnus.com)
8296
8297 * mipsread.c (parse_symbol): Avoid clobbering enum pointer when
8298 looking at its members. Improve guess between struct and union,
8299 only assuming union if multiple members have offsets of zero.
8300
bd49ef36
PB
8301Tue Feb 4 18:05:44 1992 Per Bothner (bothner at cygnus.com)
8302
8303 * mipsread.c: Use (FP0_REGNUM-32) instead of magic number 6.
8304 (This is just for clarity - and one day permitting us to
8305 change FP0_REGNUM from 38 to 32, which would make more sense.)
8306 * tm-mips.h: Added STAB_REG_TO_REGNUM macro, so that
8307 register numbers in stabs-in-ecoff get handled correctly.
8308
8309Sat Feb 1 04:45:10 1992 Stu Grossman (grossman at cygnus.com)
8310
8311 * xm-vax.h, xm-vaxult.h, xm-vaxbsd.h, config/mh-vaxult,
8312 config/mh-vaxbsd, configure.in: Split up config stuff for Vaxen
8313 into BSD and Ultrix.
8314
96499e96
JG
8315Sat Feb 1 04:39:41 1992 John Gilmore (gnu at cygnus.com)
8316
8317 * dbxread.c (dbx_symfile_init): Call malloc, not xmalloc.
8318
98f03b91
SG
8319Sat Feb 1 04:15:41 1992 Stu Grossman (grossman at cygnus.com)
8320
dafe57bc 8321 * Makefile.in: Increment version to 4.4.1.
98f03b91
SG
8322 * main.c (print_gdb_version): Update copyright notice.
8323
8324Sat Feb 1 01:43:11 1992 Per Bothner (bothner at cygnus.com)
8325
8326 * mipsread.c: Prepend "struct " to the names of structure
8327 types, and similarly for enums and unions. (This used
8328 to be done, but got lost in the re-write to "guess" the
8329 difference between enum/struct/union.)
8330 Also, guess that a tag is an enum if the first member
8331 has type btNil.
8332
3671f1fd
SG
8333Fri Jan 31 21:45:51 1992 Stu Grossman (grossman at cygnus.com)
8334
8335 * xm-vax.h: #ifndef ultrix around #include of endian.h and
8336 limits.h (sigh).
8337
0c6efbcc
JG
8338Fri Jan 31 00:05:01 1992 John Gilmore (gnu at cygnus.com)
8339
ee7270cd
JG
8340 * Projects: Patching executables is done.
8341 * Makefile.in (VERSION): Roll to gdb-4.4.
75c86b57 8342 * README, WHATS.NEW: Update for gdb-4.4.
ee7270cd 8343
4a1dcb7f
JG
8344 * symfile.c (reread_symbols): Whenever we reread one object
8345 file's symbols, we must restart the scan, because the object_files
8346 chain has been permuted.
8347
0c6efbcc
JG
8348 * exec.c (exec_files_info): Split out into print_section_info.
8349 Print BFD filename of each section if it's not the default one.
8350 * core.c (core_files_info): Call print_section_info.
8351
8352 * xm-vax.h: Include a few system header files whose definitions
8353 must precede defs.h.
8354 * language.c, language.h: Make some things const.
8355 * expression.h, main.c: const spreads like ooze.
8356
8357 * mem-break.c (break_insn, break_insn_size): Use unsigned chars,
8358 since BREAKPOINT values can be >0x80.
8359
d58ea996
SG
8360Thu Jan 30 17:21:14 1992 Stu Grossman (grossman at cygnus.com)
8361
8362 * infrun.c, xm-i386sco.h: SCO needs to use setpgid().
8363
0c6efbcc
JG
8364Thu Jan 30 01:04:23 1992 John Gilmore (gnu at cygnus.com)
8365
8366 * sparc-pinsn.c: Remove kludge for preferring architectures.
8367 Remove #ifdef's for SORT_NEEDED. We need to sort the table, now
8368 and forever. Add `add' instruction to the set that get checked
8369 for a preceding `sethi' in order to print an absolute address.
8370 Corresponding changes in ../include/opcode/sparc.h needed
8371 to eliminate garbage instructions.
8372
d4ea2aba
PB
8373Wed Jan 29 19:24:34 1992 Per Bothner (bothner at cygnus.com)
8374
8375 * mipsread.c (parse_partial_symbols): Make sure partial
8376 symbols are created for external symbols (as used to be
8377 the case). This is a bit of a pain with the mips-coff.
8378 It uses a table which points to all of the external
8379 symbols belonging to a particular FDR or psymtab.
8380 Once we've generated this table, we might as well save
8381 it, and then use it in psymtab_to_symtab_1 to find
8382 the symbols to pass to parse_external().
8383 * symfile.c, symfile.c: New function start_psymtab_common
8384 to share the common parts of allocating a new psymtab
8385 for dbxread, mipsread (and later dwarfread). Its code
8386 was pulled out from start_psymtab in dbxread.c.
8387 * dbxread.c (start_psymtab): Use start_psymtab_common().
8388
8389 * valprint.c (val_print): If there is an error when trying
8390 to print a string, check to see if there really is a problem
8391 by reading just one character. If that works, assume
8392 things are ok.
8393
05151637
SG
8394Wed Jan 29 18:58:43 1992 Stu Grossman (grossman at cygnus.com)
8395
8396 * sparc-pinsn.c (compare_opcodes): Make it prefer v6, v7,
8397 cypress, v8 mnemonics in that order.
8398
4a074bea
PB
8399Tue Jan 28 17:32:13 1992 Per Bothner (bothner at cygnus.com)
8400
8401 * sparc-pinsn.c: Put the qsort() back in.
8402
c55e6167 8403Mon Jan 27 18:51:03 1992 John Gilmore (gnu at cygnus.com)
1aa560b2 8404
eae1a261
JG
8405 * findvar.c (read_register, write_register): Handle machines
8406 where REGISTER_TYPE is not the same size as "int".
8407
c55e6167 8408 Handle debug symbols in dynamically loaded (relocated) code:
3c03b5de 8409
c55e6167
JG
8410 * dbxread.c (read_ofile_symtab): Fix up N_CATCH better. Pass
8411 offset to process_one_symbol.
8412 (process_one_symbol): Take new offset parameter. Add it into
8413 appropriate symbol types to relocate symbols to loaded addresses.
8414 Handle all possible symbol types, and complain() about types that
8415 we don't expect to see.
8416 * mipsread.c (psymtab_to_symtab_1): Pass offset of zero to
8417 process_one_symbol (FIXME, should pass real offset).
1aa560b2 8418
c55e6167
JG
8419 Misc bugfixes:
8420
8421 * breakpoint.c (resolve_sal_pc): Split out code to resolve a
8422 sal's PC value.
8423 (set_breakpoint, break_command_1, until_break_command,
8424 catch_command_1, breakpoint_re_set_one): Use it.
c55e6167
JG
8425 * symtab.h (resolve_sal_pc): Declare.
8426 * infcmd.c (jump_command): Use resolve_sal_pc.
8427
4cc9f7e2 8428 * source.c (list_command): Shorten "FILE, line N" to "FILE:N".
c55e6167
JG
8429
8430 * putenv.c (putenv): Avoid unportably casting pointers to unsigneds.
3818ed33 8431
5a4e7215
JG
8432 * c-exp.y (yylex): `this' and `template' are only tokens in C++.
8433
3818ed33
JG
8434 * xm-convex.h, xm-hp300bsd.h, xm-isi.h, xm-merlin.h, xm-news.h,
8435 xm-np1.h, xm-pn.h, xm-pyr.h, xm-rtbsd.h, xm-symmetry.h, xm-umax.h:
8436 Remove MISSING_VPRINTF declaration, and superfluous "kgdb" defines.
8437
c55e6167
JG
8438Mon Jan 27 15:46:21 1992 Stu Grossman (grossman at cygnus.com)
8439
8440 * dbxread.c (process_one_symbol): Make a first cut at handling
8441 symbol tables generated by Sun's acc. (#ifdef'd out, FIXME.)
8442
8443 * symtab.c (find_pc_line): Fix stepping into and out of #included
8444 files.
8445
71f49876
SG
8446Mon Jan 27 13:00:55 1992 Stu Grossman (grossman at cygnus.com)
8447
8448 * Makefile.in (OPCODES): Remove OPCODES defs and refs. There is
8449 no longer any need to copy ../include/opcode/* into gdb.
8450
fd8db897
JG
8451Mon Jan 27 12:30:38 1992 John Gilmore (gnu at cygnus.com)
8452
8453 * ChangeLog, ChangeLog-9091: Split ChangeLog at 1992.
8454
24b2fbdc
PB
8455Sun Jan 26 19:05:40 1992 Per Bothner (bothner at cygnus.com)
8456
8457 * valprint.c (type_print_base, type_print_method_args):
8458 Print C++ constructor methods without bogus "return type."
8459
cdb90e99
FF
8460Sat Jan 25 15:57:59 1992 Fred Fish (fnf at cygnus.com)
8461
8462 * infptrace.c (child_xfer_memory): Parameter "target" should
8463 be a pointer to a structure, not the entire structure.
8464
1b07e406
FF
8465Fri Jan 24 01:30:27 1992 Fred Fish (fnf at cygnus.com)
8466
8467 * depend: Convert the couple of references to ansidecl.h that
8468 used the local gdb version to use the ../include version.
8469
9a1ae235
FF
8470Thu Jan 23 22:24:43 1992 Fred Fish (fnf at cygnus.com)
8471
f66f459f
FF
8472 * procfs.c
8473 (child_xfer_memory): Takes pointer to a struct, not entire struct.
8474 (inferior_proc_init): Fix non-ANSI version of args.
8475 (attach): Call print_sys_errmsg with correct number of args.
8476 (mappingflags): Make static, does not need to be global.
8477
fc1f8646
FF
8478 * i386-tdep.c (i386_frame_num_args): Takes a pointer to a struct
8479 not the entire struct itself.
8480
1b7a420e
FF
8481 * valops.c (value_assign): Cast some args to modify_field() and
8482 {read,write}_register_bytes() correctly.
8483
9a1ae235
FF
8484 * ansidecl.h: Removed, is duplicate of ../include/ansidecl.h
8485
99140c31
FF
8486 * Makefile.in (MALLOCSRC): Removed reference to removed local
8487 copy of ansidecl.h.
8488
8489 * dwarfread.c (list_in_scope): Needs an initial value, use file
8490 scope.
8491
9a1ae235
FF
8492Mon Jan 20 19:06:28 1992 Stu Grossman (grossman at cygnus.com)
8493
8494 * main.c (main): Make option_index local to keep new getopt happy.
8495 main.c, solib.c, Makefile.in: Update copyright notices.
8496
0eb0a820
MT
8497Mon Jan 20 08:54:00 1992 Michael Tiemann (tiemann at cygnus.com)
8498
8499 * cplus-dem.c (cplus_demangle): Correctly demangle destructors.
8500
313085cb
SG
8501Sat Jan 18 17:17:45 1992 Stu Grossman (grossman at cygnus.com)
8502
8503 * Makefile.in (HFILES): Add partial-stab.h.
8504
be9a2362
FF
8505Sat Jan 18 16:45:01 1992 Fred Fish (fnf at cygnus.com)
8506
24e7d5ba
JG
8507 * config/mh-stratus, config/mt-stratus, tm-stratus.h, xm-stratus.h:
8508 New files for stratus. Not complete enough to actually build
8509 on the Stratus machine; that awaits copyright assignment for
8510 i860 changes.
be9a2362
FF
8511
8512 * Makefile.in (USER_CFLAGS): Add macro specifically reserved
8513 for getting custom flags into CFLAGS when doing makes.
8514
8515 * configure.in: Add config information for stratus.
8516
cdce29ee
FF
8517Thu Jan 16 00:51:46 1992 Fred Fish (fnf at cygnus.com)
8518
8519 * dbxread.c (process_one_symbol): Pass address of structure
8520 to complain(), rather than the whole structure.
8521
7f435241
FF
8522Wed Jan 15 09:56:16 1992 Fred Fish (fnf at cygnus.com)
8523
8524 * solib.c (solib_add_common_symbols): Only compile in when not
8525 using SVR4 style shared libraries.
8526
a5bd5ba6
FF
8527Tue Jan 14 22:34:00 1992 Fred Fish (fnf at cygnus.com)
8528
8529 * dwarfread.c (locval): Add offreg flag to indicate location
8530 values that are computed off a base register.
8531
8532 * dwarfread.c (new_symbol): Rework TAG_global_variable and
8533 TAG_local_variable cases to account for static variables
8534 within function scopes.
8535
7e97eb28
SG
8536Tue Jan 14 12:28:52 1992 Stu Grossman (grossman at cygnus.com)
8537
8c3d2a53
SG
8538 * inflow.c: remove #include <sys/dir.h>. Not necessary, and
8539 doesn't exist on some systems.
8540
5e746644
SG
8541 * infrun.c (wait_for_inferior!!!!): Prevent gdb from hanging when
8542 nexting over recursive function calls.
8543
d261ece7
SG
8544 * target.c (target_read_string): Create this routine to read null
8545 terminated strings from the target. It deals with running off the
8546 end of memory elegantly as well. solib.c (find_solib): Use
8547 target_read_string() to avoid problems with running off the end of
8548 memory.
8549
7e97eb28
SG
8550 * inflow.c (child_terminal_info): #ifdef TIOCPGRP around lines
8551 that reference pgrp_inferior.
8552
0cf9329b
PB
8553Mon Jan 13 14:57:11 1992 Per Bothner (bothner at cygnus.com)
8554
8555 * tm-mips.h: Removed BLOCK_ADDRESS_ABSOLUTE, now that
8556 mips-tfile has been hacked to act more "traditionally."
8557 * dbxread.c: Fixed typo in comment.
8558
488d2691
PB
8559Sun Jan 12 13:08:36 1992 Per Bothner (bothner at cygnus.com)
8560
8561 * mips-tdep.c (mips_skip_prologue): Add some number of
8562 'sw' instructions before 'addiu' adjusts the stack.
8563
4d315a07
FF
8564Fri Jan 10 13:47:06 1992 Fred Fish (fnf at cygnus.com)
8565
8566 * dwarfread.c (start_symtab, end_symtab, scopecount, openscope,
8567 freescope, buildblock closescope, record_line, add_symbol_to_list,
8568 gatherblocks, make_blockvector): Extensive changes to switch
8569 to generic symbol table building code in buildsym.c. Remove
8570 scope tree structures and functions, symbol table building
8571 functions, and lots of other small changes.
8572
8573 * dwarfread.c: Add new macros GCC_PRODUCER and STREQN. Remove
8574 GCC_COMPILED_FLAG_SYMBOL and GCC2_COMPILED_FLAG_SYMBOL.
8575
8576Tue Jan 7 13:09:57 1992 Stu Grossman (grossman at cygnus.com)
8577
8578 * buildsym.c (cleanup_undefined_types): Add support for enums.
8579 This fixes the 'GDB internal error. cleanup_undefined_types with
8580 bad type' problem.
8581
8582Sun Jan 5 09:47:50 1992 Stu Grossman (grossman at cygnus.com)
8583
8584 * dbxread.c: detect gcc2 compilations.
8585
1a4d253c
JG
8586Thu Jan 2 15:07:41 1992 John Gilmore (gnu at cygnus.com)
8587
8588 * sparc-pinsn.c: Rename bitfields that overlap with macro names
8589 in ../include/opcode/sparc.h.
8590
1d4c28c5
FF
8591Wed Jan 1 04:29:00 1992 Fred Fish (fnf at cygnus.com)
8592
8593 * Makefile.in: Change tm-svr4.h to tm-sysv4.h. Change xm-svr4.h
8594 to xm-sysv4.h. Split OPCODE_DIR into OPCODE_DIR1 and OPCODE_DIR2
8595 to reflect actual locations of opcode files, so TAGS target will
8596 be buildable.
8597
8598 * i386-tdep.c: Change an erroneous 'm68k' reference to 'i386'.
8599
8600 * i386-tdep.c (supply_fpregset, fill_fpregset): Remove m68k
8601 code.
8602
8603 * m68k-tdep.c (supply_fpregset, fill_fpregset): Fix array
8604 dereferencing to access the correct elements.
8605
8606 * valops.c (value_addr): Declare return type of external func
8607 value_copy().
8608
8609 * xcoffread.c: Undefine next_symbol_text before redefining it.
8610
fd8db897 8611For older changes see ChangeLog-9091
bd5635a1
RP
8612\f
8613Local Variables:
8614mode: indented-text
8615left-margin: 8
8616fill-column: 74
8617version-control: never
8618End:
This page took 0.530614 seconds and 4 git commands to generate.