* hppa-tdep.c (pc_in_linker_stub): Fix unclosed comments.
[deliverable/binutils-gdb.git] / gdb / ChangeLog
CommitLineData
6e35b037
JK
1Thu Jul 29 12:09:46 1993 Jim Kingdon (kingdon@lioth.cygnus.com)
2
3 * hppa-tdep.c (pc_in_linker_stub): Fix unclosed comments.
4
c4ed7353
JK
5Wed Jul 28 13:19:34 1993 Jim Kingdon (kingdon@lioth.cygnus.com)
6
6e35b037
JK
7 * config/mips/xm-mips.h: Define HAVE_TERMIOS.
8
c4ed7353
JK
9 * dbxread.c (record_minimal_symbol): Don't put gcc_compiled or
10 __gnu_compiled* symbols into the minimal symbols.
11
0907dc09
ILT
12Wed Jul 28 08:26:58 1993 Ian Lance Taylor (ian@cygnus.com)
13
14 * remote-mips.c (_initialize_remote_mips): Added "timeout" and
15 "retransmit-timeout" variables to set mips_receive_wait and
16 mips_retransmit_wait, respectively.
17
ffff16b3
PS
18Wed Jul 28 03:58:58 1993 (pes@regent.e-technik.tu-muenchen.de)
19
20 * symmisc.c (dump_msymbols): Handle new mst_file_* types.
21
7706616f
JK
22Tue Jul 27 12:07:38 1993 Jim Kingdon (kingdon@lioth.cygnus.com)
23
157ea89d
JK
24 * remote-udi.c: Remove old comment about download not implemented.
25
704deef2
JK
26 * serial.h, ser-{unix,go32,tcp}.c: Add flush_input and send_break.
27 * nindy-share/*, remote-nindy.c: Extensive hacking to make it
28 conform to GDB conventions like using memcpy not bcopy, serial.h,
29 etc. This is to make it host on Solaris, AIX, etc.
30 * Makefile.in: Reflect removed nindy-share files.
8805c1ee 31 * config/i960/nindy960.mt (TDEPFILES): Remove ttybreak.o.
157ea89d 32
efdd6b64
JK
33 * stack.c (print_frame_info): Revise comment about `pathological'
34 case (there was a wrong FIXME about text labels; also asm() can
35 trigger this as well as versions of ar which truncate .o names).
36
56ad756a
JK
37 * buildsym.c (start_subfile): If a .c file includes a .C file, set
38 the language of both of them to C++.
39
7706616f
JK
40 * config/sparc/xm-sun4os4.h: Define MEM_FNS_DECLARED and include
41 <memory.h>.
42 Include <malloc.h> rather than declaring malloc functions ourself.
43
44 * ser-unix.c (set_tty_state): Don't ignore errors setting process
45 group.
46 * inflow.c (terminal_inferior): If attach_flag set, ignore errors
47 from set_tty_state.
48
49 * fork-child.c (fork_inferior): Only quote exec file if needed.
50
51 * mipsread.c (parse_symbol): Remove 21 Jul 93 change with
52 stTypedef inside an stBlock.
53
0eb22669
PS
54Tue Jul 27 12:36:49 1993 Peter Schauer (pes@regent.e-technik.tu-muenchen.de)
55
56 * breakpoint.c (breakpoint_1): Walk the breakpoint chain to decide if
57 we have breakpoints or watchpoints as we might have to ignore internal
58 breakpoints.
59
60 Fix gdb core dumps after `file newfile' commands.
61 * symtab.h, symfile.c (clear_symtab_users): New routine which
62 unconditionally clears symtab users. clear_symtab_users_once
63 commented out as it was a noop anyway.
64 * objfiles.c (free_objfile): Don't call clear_symtab_users_once.
65 * objfiles.c (free_all_objfiles), symfile.c (new_symfile_objfile),
66 xcoffexec.c (exec_close): Call clear_symtab_users if necessary.
67 * symfile.c (syms_from_objfile): Install cleanups for errors during
68 symbol reading.
69 * coffread.c, dbxread.c, mipsread.c, xcoffread.c (*_symfile_read):
70 Lint cleanup code, call do_cleanups explicitly.
71 * symfile.c (symbol_file_add): Call new_symfile_objfile and
72 reinit_frame_cache _after_ the new symbols are read in.
73
b31ca3de
PS
74Tue Jul 27 01:57:01 1993 Peter Schauer (pes@regent.e-technik.tu-muenchen.de)
75
76 * mipsread.c (parse_type): Do not set tag name for compiler
77 generated fake tag names.
78
333355f3
RP
79Mon Jul 26 17:31:49 1993 K. Richard Pixley (rich@rtl.cygnus.com)
80
81 * config/m88k/m88k.mt (TDEPFILES): add exec.o.
82
91ab5674
JK
83Mon Jul 26 13:17:36 1993 Jim Kingdon (kingdon@lioth.cygnus.com)
84
b8ec9a79
JK
85 * hppa-tdep.c: Remove all uses of use_unwind and `set use_unwind'
86 command. Now we use unwind info by default if we can find it.
87
88 * config/sparc: Move VARIABLES_INSIDE_BLOCK and SUN_FIXED_LBRAC_BUG
89 to tm-sparc.h so they are shared between Solaris and SunOS4.
90 * dbxread.c (process_one_symbol): Deal with SunOS4 acc N_STSYM and
91 N_GSYM functions.
92
41c86b69
JK
93 * config/pa/tm-hppa.h (REGISTER_NAMES): Use "fr" rather than "fp"
94 for floating point registers.
95
1c8961dd
JK
96 * mipsread.c (parse_symbol): Put stStaticProc symbols in minimal
97 symbols as mst_file_text.
98
08ecd8f3
JK
99 * hppa-tdep.c (pc_in_linker_stub): Return 0 if can't read memory.
100
230a3ab0
JK
101 * stabsread.c (rs6000_builtin_type): Make logical types be
102 TYPE_CODE_BOOL.
91ab5674 103
d889f6b7
JK
104Sun Jul 25 23:41:48 1993 Jim Kingdon (kingdon@lioth.cygnus.com)
105
106 * breakpoint.{c,h} (struct breakpoint): Replace symtab field with
107 source_file field.
108
9aa3aa8c
JK
109Fri Jul 23 09:57:25 1993 Jim Kingdon (kingdon@deneb.cygnus.com)
110
d889f6b7
JK
111 * remote.c: Don't error() on errors xferring memory.
112 * target.h: Clean up comments about *xfer_memory.
113
f47e56c9
JK
114 * exec.c, corelow.c (target_ops struct): Don't allow
115 {insert,remove}_breakpoints to be defaulted to
116 memory_{insert_remove}_breakpoint.
117
9aa3aa8c
JK
118 * demangle.c: Make it so `help set dem' tells you how to get the
119 list of demangling styles.
120
f261333b
JK
121Thu Jul 22 15:41:09 1993 Jim Kingdon (kingdon@deneb.cygnus.com)
122
123 * Makefile.in: Use REMOTE_O macro not remote.o.
124 * config/i960/{nindy960,vxworks960}: Don't use remote.o.
125
073c6b2b
ILT
126Thu Jul 22 12:43:25 1993 Ian Lance Taylor (ian@cygnus.com)
127
128 * coredep.c: If NEED_SYS_CORE_H defined, include <sys/core.h>
129 (can't include it in nm-*.h file because it causes conflicts with
130 a.out symbol definitions).
131 * hp300ux-nat.c (fetch_core_registers): Commented out; obsolete.
132 * config/m68k/hp300hpux.mh (NATDEPFILES): Added coredep.o and
133 corelow.o.
134 * config/m68k/nm-hp300hpux.h (NEED_SYS_CORE_H): Defined.
135 (REGISTER_U_ADDR): Defined.
136 * config/m68k/xm-hp300hpux.h (HAVE_TERMIOS): Define instead of
137 HAVE_TERMIO.
138 * config/pa/xm-hppah.h: Likewise.
139
22b4b223
JK
140Wed Jul 21 11:37:30 1993 Jim Kingdon (kingdon@deneb.cygnus.com)
141
70c7ec2e
JK
142 * mipsread.c (parse_symbol): when stTypedef and friends occur within
143 an stBlock, skip over the fields of the inner one.
144
145 * mips-tdep.c (init_extra_frame_info): If in lenient prologue, call
146 heuristic_proc_desc rather than just assuming registers not saved.
147
51b4195f
JK
148 * Makefile.in (regex.o): Add dependency.
149
72943ad0
JK
150 * hppa{b,h}-nat.c: Warning, not error, if can't access registers.
151
22b4b223
JK
152 * config/pa/hppa{b,h}.h: Define ATTACH_DETACH.
153
66fe7416
PS
154Wed Jul 21 03:07:30 1993 Peter Schauer (pes@regent.e-technik.tu-muenchen.de)
155
156 * config/mips/xm-makeva.h: New file implements va_list alignment
157 restrictions for mips hosts.
158 * config/mips/{xm-irix3.h, xm-mips.h, xm-news-mips.h, xm-riscos.h}:
159 Use it.
160
579f0258
PS
161Wed Jul 21 00:11:05 1993 Peter Schauer (pes@regent.e-technik.tu-muenchen.de)
162
66fe7416
PS
163 * mips-tdep.c (init_extra_frame_info): Do not check for
164 mips_in_lenient_prologue if it is a dummy frame.
579f0258
PS
165 * mipsread.c (fixup_sigtramp): Initialize pdr.adr, it is used by
166 mips_in_lenient_prologue.
167
f29b5686
JK
168Tue Jul 20 12:53:47 1993 Jim Kingdon (kingdon@deneb.cygnus.com)
169
23d35572
JK
170 * mips-tdep.c (heuristic_proc_start): First time we print the
171 warning, elaborate.
172 (_initialize_mips_tdep): Improve docstring for `set heur'.
173
726d33a4
JK
174 * config/rs6000/tm-rs6000.h: Remove call to insert_step_breakpoint.
175
f29b5686
JK
176 * symtab.c (find_line_symtab): New function, to deal with multiple
177 symtabs with the same name.
178 (find_line_pc{,_range}): Use it.
179 (find_pc_symtab): Add comment about overlapping symtabs.
180
db85f523
FF
181Mon Jul 19 21:29:14 1993 Fred Fish (fnf@deneb.cygnus.com)
182
183 * Makefile.in (SFILES): Add nlmread.c.
184 * Makefile.in (OBS): Add nlmread.o.
185 * Makefile.in (nlmread.o): Add new target.
186 * configure.in (i[34]86-*-netware): New configuration.
187 * nlmread.c, config/i386/{i386nw.mt, tm-i386nw.h}: New files
188 for NLM/NetWare support.
189
dc34b11d
JK
190Mon Jul 19 11:48:57 1993 Jim Kingdon (kingdon@deneb.cygnus.com)
191
164207ca
JK
192 * symtab.h (enum minimal_symbol_type): Add mst_file_*.
193 * partial-stab.h [DBXREAD_ONLY]: Record statics in miminal symbols.
194 * dbxread.c (record_minimal_symbol): Deal with statics.
195 * minsyms.c (lookup_minimal_symbol): Prefer externals to statics.
196
3d7d2980
JK
197 * config/i386/xm-i386sco.h: Define HAVE_TERMIOS.
198
1cd080b5
JK
199 * printcmd.c, config/pa/xm-pa.h, config/alpha/xm-alpha.h: Make it so
200 arg_bytes field of makeva_list is always aligned.
201 * config/pa/xm-pa.h: Make arglist_address a char *.
202
dc34b11d
JK
203 * ser-unix.c: Don't try to use job control with termio.
204
6f87ec4a
PS
205Sun Jul 18 23:11:28 1993 Peter Schauer (pes@regent.e-technik.tu-muenchen.de)
206 and Jim Kingdon (kingdon@cygnus.com)
207
208 Make breakpoint_re_set_one work with overloaded member functions,
209 `b 123' and `b foo' if foo is a static function.
210 * symtab.c (decode_line_1, decode_line_2): New argument `canonical'
211 to return canonical line specs if requested by the caller.
212 * breakpoint.c, source.c, symtab.c, symtab.h: Change prototypes and
213 callers accordingly.
214 * symtab.c (build_canonical_line_spec): New helper function which
215 constructs the canonical line spec.
216 * breakpoint.c (break_command_1): Use canonical line spec instead
217 of command string as addr_string if necessary.
218 * source.c (line_info): Fix storage leak.
219
fc39be58
JK
220Sun Jul 18 15:22:45 1993 Jim Kingdon (kingdon@rtl.cygnus.com)
221
56eec3c7
JK
222 * infptrace.c: Split out define of PT_KILL; Sequent defines PT_KILL
223 but not the others.
224 * symm-tdep.c: Remove exec_file_command.
225 [_SEQUENT_] (ptx_coff_regno_to_gdb, register_addr): New functions.
226 A few miscellaneous cleanups.
227 * symm-nat.c: Renamed from symm-xdep.c.
29b8ed0a 228 * All symmetry dependent files: Many changes.
56eec3c7 229
ee5fb959
JK
230 * mips-tdep.c (mips_skip_prologue): New argument lenient.
231 Use read_memory_nobpt.
232 (is_delayed, mips_in_lenient_prologue): New functions.
233 (init_extra_frame_info): If in the prologue, don't use saved registers.
234 * config/mips/tm-mips.h: Declare mips_skip_prologue.
235
fc39be58
JK
236 * partial-stab.h (N_SO): Add the text offset to valu before, not after,
237 passing it to END_PSYMTAB.
238
ac82e9a5
JK
239Fri Jul 16 18:48:52 1993 Jim Kingdon (kingdon@rtl.cygnus.com)
240
241 * symtab.c (find_pc_symtab): Call warning, not printf directly.
242
243 * solib.c (solib_add): Use x{re,m}alloc, not {re,m}alloc.
244
2e9e6869
ILT
245Fri Jul 16 09:56:42 1993 Ian Lance Taylor (ian@cygnus.com)
246
247 * mipsread.c: No longer need to undefine ZMAGIC.
248
f75906eb
ILT
249Thu Jul 15 18:03:37 1993 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
250
251 * m88k-pinsn.c: Moved code into opcodes/m88k-dis.c.
252 (print_insn): Now just calls print_insn_m88k.
253
ccdc578f
DE
254Thu Jul 15 14:54:05 1993 Doug Evans (dje@canuck.cygnus.com)
255
256 * h8300-tdep.c (examine_prologue): Make prototype match definition.
257
f09aae84
JK
258Thu Jul 15 08:34:49 1993 Jim Kingdon (kingdon@lioth.cygnus.com)
259
5b336d29
JK
260 * NEWS: Mention that remote.c now has a `load' operation.
261
5ac7f56e
JK
262 * hppa-tdep.c (pc_in_linker_stub): New function.
263 (find_proc_framesize): Return 0 for linker stubs.
264 (rp_saved): Tell the caller where rp is saved.
265 (frame_chain_valid): Return 1 for linker stubs.
266 (frame_saved_pc): Use return value from rp_saved.
267
f09aae84
JK
268 * stack.c (print_frame_info): When checking PC_IN_CALL_DUMMY,
269 pass the sp relative to the frame in question, not the sp in the
270 innermost frame.
271
1ab786f4
JK
272Wed Jul 14 17:37:03 1993 Jim Kingdon (kingdon@lioth.cygnus.com)
273
b5d4d6d7
JK
274 * mipsread.c (parse_procedure): Take as argument the symtab to look
275 the name up in. Look it up with mylookup_symbol, not lookup_symbol.
276 (psymtab_to_symtab_1): For stabs, pass the symtab to parse_procedure.
9adb88b7
JK
277
278 * mipsread.c (mylookup_symbol): Use strcmp, not STREQ, as we have
279 already checked the first characters.
280
1ab786f4
JK
281 Changes from Jeffrey Law:
282 * printcmd.c (makeva_list): Use MAKEVA_EXTRA_INFO to define
283 machine dependent fields in the makeva_list structure.
284 (makeva_size): Allocate extra space to handle gaps made by
285 alignment restrictions.
19318471 286 * config/pa/xm-pa.h (MAKEVA_EXTRA_INFO): Define.
1ab786f4
JK
287 (MAKEVA_START): Initialize arglist_address field.
288 (MAKEVA_ARG): Always store arguments on natural alignment
289 boundaries. Set arglist_address to the address right after
290 the args.
291 (MAKEVA_END): Simply return the value stored in arglist_address.
292
968dca8d
JK
293Wed Jul 14 13:51:54 1993 Jim Kingdon (kingdon@lioth.cygnus.com)
294
bf5b632d
JK
295 * ch-valprint.c (chill_val_print, case TYPE_CODE_STRING): Print
296 address, not addr.
297
298 * hppah-nat.c (store_inferior_registers): Don't print i in cases
299 where we aren't using it.
300
968dca8d
JK
301 * a29k-tdep.c (get_saved_register): Fix typo.
302
bd96254f
DE
303Wed Jul 14 09:45:52 1993 Doug Evans (dje@canuck.cygnus.com)
304
305 * configure.in: Recognize h8300h (variant of h8300).
306
307start-sanitize-v9
308Wed Jul 14 09:45:52 1993 Doug Evans (dje@canuck.cygnus.com)
309
310 * configure.in: Recognize sparc64-*-*.
311end-sanitize-v9
312
5af4f5f6
JK
313Tue Jul 13 14:03:48 1993 Jim Kingdon (kingdon@lioth.cygnus.com)
314
315 * stabsread.c (define_symbol): Make the caddr_t hack apply to `function
316 returning foo' as well as `pointer to foo'.
317
318 * remote.c [REMOTE_BREAKPOINT]: Use for breakpoint insn if defined.
319 * config/m68k/tm-m68k.h: Define it.
320 * mem-break.c, breakpoint.c: Improve comments.
321
322Tue Jul 13 13:35:31 1993 Frederic Pierresteguy (F.Pierresteguy@frcl.bull.fr)
323
324 * config/m68k/tm-dpx2.h: Replace "tm-68k.h" with "m68k/tm-m68k.h".
325 * config/m68k/xm-dpx2.h: Define HAVE_TERMIOS not HAVE_TERMIO.
326
524895ab
DE
327Tue Jul 13 11:50:38 1993 Doug Evans (dje@canuck.cygnus.com)
328
329 * gdbcore.h (read_memory_integer, read_memory_unsigned_integer):
330 Make prototype match definition.
331
98d82489
FF
332Tue Jul 13 11:15:15 1993 Fred Fish (fnf@cygnus.com)
333
8bdc1fd0
FF
334 * elfread.c: Remove notice about file still being under
335 construction.
98d82489
FF
336 * Makefile.in (ultra3-xdep.o, umax-xdep.o): Add missing ')'.
337
85494909
JK
338Mon Jul 12 17:46:35 1993 Jim Kingdon (kingdon@lioth.cygnus.com)
339
340 * a29k-tdep.c (read_register_stack): Make val static.
341
e1f63216
DE
342Mon Jul 12 14:10:48 1993 Doug Evans (dje@canuck.cygnus.com)
343
344 * config/h8300/tm-h8300.h (REGISTER_CONVERTIBLE): Change value to 0.
345 (REGISTER_CONVERT_TO_VIRTUAL, REGISTER_CONVERT_TO_RAW): Move def'n to
346 usual spot.
347
eabbe766
JK
348Mon Jul 12 11:29:44 1993 Jim Kingdon (kingdon@lioth.cygnus.com)
349
1326dace
JK
350 * c-valprint.c (c_val_print): Fix thinko with unspecified length
351 arrays.
352
eabbe766
JK
353 * hppa-tdep.c (find_proc_framesize): If there is a frame pointer,
354 use it.
355
f6365bd6
JK
356Sun Jul 11 19:35:05 1993 Jim Kingdon (kingdon@lioth.cygnus.com)
357
f1ed4330
JK
358 * symtab.c (decode_line_1): Use end of block to figure out whether
359 val.end is in the same function, not minimal symbols.
360
361 * source.c (line_info): Add a few more wrap_here's.
362
363 * i386-tdep.c (i386_follow_jump): Do byteswapping where needed and
364 don't make assumptions about sizes of host data types.
365
366 * blockframe.c, symtab.h (find_pc_partial_function): New arg endaddr.
367 * infrun.c, breakpoint.c, printcmd.c: Change callers.
368 * printcmd.c (containing_function_bounds): Remove.
369 * printcmd.c (disassemble_command): Use find_pc_partial_function,
370 not containing_function_bounds.
371 * infcmd.c (step_1): Use find_pc_partial_function rather than
372 trying to roll our own. Move check for a pc between SIGTRAMP_START and
373 SIGTRAMP_END in find_pc_partial_function, not step_1.
374
f6365bd6
JK
375 * sparc-tdep.c (sparc_frame_chain, frame_saved_pc):
376 Keep unswapped value in array of char, not REGISTER_TYPE.
377 Use REGISTER_RAW_SIZE not sizeof (REGISTER_TYPE).
378 (sparc_extract_struct_value_address): Use TARGET_PTR_BIT not
379 sizeof (CORE_ADDR).
380
0a8f1742
JK
381Thu Jul 1 15:50:05 1993 Frederic Pierresteguy (F.Pierresteguy@frcl.bull.fr)
382
383 * configure.in (m68*-bull-sysv*): added support for Bull dpx2.
384 * config/m68k/{t,x,n}m-dpx2.h, dpx2-nat.c: New files.
385 * config/m68k/dpx2.m{h,t}: New files.
386
53adb297
DE
387Sun Jul 11 12:32:08 1993 Doug Evans (dje@canuck.cygnus.com)
388
389 * config/sparc/tm-sparc.h (PRINT_REGISTER_HOOK): Fix typo, add
390 more parens around macro arg.
391
fee44494
JK
392Sat Jul 10 09:54:17 1993 Jim Kingdon (kingdon@lioth.cygnus.com)
393
fe675038
JK
394 * infrun.c: Remove step_resume_{duplicate,shadow}. Replace
395 step_resume_break_address with step_resume_breakpoint (now local
396 to wait_for_inferior).
397 ({insert,remove}_step_breakpoint): Remove.
398 (wait_for_inferior): Set step resume break with
399 set_momentary_breakpoint. Test hitting it with bpstat_stop_status
400 and bpstat_what (stop_step_resume_break removed).
401 * breakpoint.{h,c}, infrun.c: Return value from bpstat_what now struct
402 which includes previous return value as main_action, and a step_resume
403 bit.
404 * breakpoint.c (delete_breakpoint): If breakpoint was inserted, and
405 there is another breakpoint there, insert it.
406 * infrun.c (wait_for_inferior): Rearrange the spaghetti a bit. Use
407 a few more gotos.
408 Various: Clean up and add comments.
409
fee44494
JK
410 * infrun.c [TDESC]: Remove remaining tdesc code (see ChangeLog
411 for Wed Nov 13 16:45:13 1991).
412
4d50f90a
JK
413Fri Jul 9 12:36:46 1993 Jim Kingdon (kingdon@lioth.cygnus.com)
414
58e49e21
JK
415 * values.c, value.h (modify_field), callers: Make fieldval a LONGEST.
416
417 * h8300-tdep.c (NEXT_PROLOGUE_INSN): Make pword1 an INSN_WORD *
418 not short *.
419
34df79fc
JK
420 * findvar.c, defs.h
421 ({extract,store}_{signed_integer,unsigned_integer,address}):
422 New routines to replace SWAP_TARGET_AND_HOST.
423 All over: All uses of SWAP_TARGET_AND_HOST on integers replaced.
424
271d7387
JK
425 * config/sparc/tm-sparc.h: Add comment suggesting that removing
426 ins and locals from the registers array might clean things up.
427
19bdd57f
JK
428 * utils.c: Clean up comments about wrap buffer and wrap_here.
429 * printcmd.c (printf_command): Call wrap_here before vprintf.
430
28d14fd8
JK
431 * mipsread.c (cross_ref): Set the name to unknown for "struct *" case.
432 Patch from ptf@delcam.co.uk (Paul Flinders).
433
4d50f90a
JK
434 * a29k-tdep.c, findvar.c (get_saved_register): Fix byteswapping sins.
435
2fcdae93
PS
436Fri Jul 9 09:47:02 1993 Peter Schauer (pes@regent.e-technik.tu-muenchen.de)
437
438 * defs.h, remote-eb.c (TM_FILE_OVERRIDE): Remove it.
439 * mips-tdep.c (init_extra_frame_info): Set proper fci->frame if pc
440 is at the start of the dummy code.
441
47976ba7
JK
442Thu Jul 8 14:48:54 1993 Jim Kingdon (kingdon@lioth.cygnus.com)
443
dd99f8e4
JK
444 * sparc-tdep.c (sparc_push_dummy_frame): Skip all the do_save_insn
445 stuff, just write the sp and fp.
446 (sparc_pop_frame): Skip the do_restore_insn; we already restore
447 the sp with the other out registers.
448
558f4183
JK
449 * hppa-tdep.c (hppa_push_arguments): Allocate enough space for
450 arguments.
451
47976ba7
JK
452 * hppa-tdep.c: Change _initialize_hppab_tdep to _initialize_hppa_tdep.
453
9fc8002c
DE
454start-sanitize-v9
455Thu Jul 8 14:47:00 1993 Doug Evans (dje@canuck.cygnus.com)
456
457 * sparc-tdep.c (sparc_frame_chain): Handle sizeof (CORE_ADDR)
458 != sizeof (REGISTER_TYPE).
459 (frame_saved_pc): Ditto.
460end-sanitize-v9
461
be474657
DE
462Thu Jul 8 08:22:05 1993 Doug Evans (dje@canuck.cygnus.com)
463
6de931d2 464 * config/h8300/tm-h8300.h: (REGISTER_TYPES): Adjust for h8/300h.
bc4937f3
DE
465 (REGISTER_RAW_SIZE): Ditto.
466 (REGISTER_VIRTUAL_TYPE): Use builtin_type_unsigned_long for regs
467 on the h8/300h (ints may still be 16 bits).
468 (EXTRACT_RETURN_VALUE, STORE_RETURN_VALUE,
469 EXTRACT_STRUCT_VALUE_ADDRESS): Add FIXME's for h8/300h. Some
470 thought needed here.
471
d0414a11
DE
472 * h8300-tdep.c (print_insn): Call print_insn_h8300h if h8/300h.
473 (examine_prologue): reg_save_depth is 4 if h8/300h.
474
be474657
DE
475 * findvar.c (read_register): Provide some support for 64 bit regs.
476 (write_register): Ditto.
477
23a8e291
JK
478Wed Jul 7 14:30:00 1993 Jim Kingdon (kingdon@lioth.cygnus.com)
479
3206db62
JK
480 * config/mips/nm-riscos.h: machine/machparam.h is always the right
481 place to look for BSD43_NBPG, not machine/vmparam.h
482
54023465
JK
483 * infcmd.c (run_stack_dummy): New argument name.
484 Change error message in (another) attempt to make it comprehensible.
485 * valops.c (call_function_by_hand): Pass name to run_stack_dummy.
486 * symtab.h: Declare demangle and asm_demangle since macros use them.
487
e860d210
JK
488 * eval.c (evaluate_subexp): Add comment about calling a member
489 function of a variable in a register.
490
d3dd6800
JK
491 * expression.h: Clean up comment about string in STRUCT_STRUCT etc.
492
23a8e291
JK
493 * config/{rs6000/tm-rs6000.h,sparc/tm-sparc.h,pyr/tm-pyr.h},
494 inferior.h (PC_IN_CALL_DUMMY) [ON_STACK]: Add comments about stack
495 frame tops and bottoms.
496
497 * frame.h, blockframe.c, stack.c, a29k-tdep.c,
498 config/gould/tmp-{pn,np1}.h,
499 config/{sparc/tm-sparc.h,pyr/tm-pyr.h,vax/tm-vax.h}: Remove field
500 next_frame from struct frame_info. It has no purpose beyond
501 ->next->frame and is an artifact from GDB 2.8.
502
de6a2704
JK
503Tue Jul 6 11:51:18 1993 Jim Kingdon (kingdon@lioth.cygnus.com)
504
c2153bf2
JK
505 * Makefile.in: Remove gdb before creating a new one.
506 Update init.c atomically.
507
de6a2704
JK
508 * Makefile.in (ALLPARAM): Add config/{alpha/xm-alpha.h,pa/xm-pa.h}.
509 (ALLCONFIG): Add config/alpha/alpha-osf1.mh.
510
511 * infcmd.c (_initialize_infcmd): In docstring for "continue",
512 describe argument as setting ignore count.
513
b1d0b161
DE
514Sun Jul 4 15:04:47 1993 Doug Evans (dje@cygnus.com)
515
516 * h8300-tdep.c (examine_prologue): Fix call to
517 read_memory_unsigned_integer.
518
fdf138bb
JK
519Fri Jul 2 18:22:54 1993 Jim Kingdon (kingdon@lioth.cygnus.com)
520
0c5af733
JK
521 * config/mips/{x,n}m-irix{3,4}.h: Make some definitions here
522 rather than including xm-bigmips.h.
523
1500864f
JK
524 * eval.c (evaluate_subexp): Improve error messages for OP_TYPE and
525 default cases.
526
fdf138bb
JK
527 * Makefile.in (distclean): Remove y.tab.h.
528
fdf138bb
JK
529Fri Jul 2 14:55:48 1993 Peter Schauer (pes@regent.e-technik.tu-muenchen.de)
530
531 * exec.c (exec_file_command): Remove Mar 28 hack as BFD handles
532 file updates properly now.
533 * mipsread.c (mips_coff_new_init): Force reevaluation of sigtramp
534 addresses if switching to a new symbol file.
535 * dbxread.c (process_one_symbol): Avoid dereferencing NULL
536 symbols that might be returned from define_symbol.
537
85e07872
SC
538Fri Jul 2 13:33:12 1993 Steve Chamberlain (sac@phydeaux.cygnus.com)
539
540 New target macros for getting at the pc, sp and fp.
541 * infcmd.c (read_pc, write_pc): Modify to use new macros.
542 (read_sp, write_sp, read_fp, write_fp): New functions.
1500864f
JK
543 * blockframe.c (reinit_frame_cache, get_prev_frame_info):
544 Use new functions.
85e07872
SC
545 * breakpoint.c (bpstat_alloc): ditto.
546 * infrun.c (wait_for_inferior): ditto.
547 * stack.c (print_frame_info): ditto.
548 * valops (call_function_by_hand): ditto.
549 * corelow.c (core_open): ditto.
550 * h8500-tdep.c: (target_read_sp, target_write_sp, target_read_pc,
551 target_write_pc, target_read_fp, target_write_fp): New functions.
552 * inferior.h (read_sp, write_sp, read_fp, write_fp): Prototypes.
553
554 * config/alpha/xm-alpha.h: Add MAKEVA_END.
555 * config/h8500/tm-h8500.h: Define new macros.
556
d8a80e6d
ILT
557Fri Jul 2 13:51:04 1993 Ian Lance Taylor (ian@cygnus.com)
558
559 * configure.in (mipos-*-riscos*): New host and target; use riscos.
560 * config/mips/nm-riscos.h: If BSD43_NBPG is not defined by
561 vmparam.h, include machparam.h.
562 (KERNEL_U_ADDR): Define to be BSD43_UADDR.
563
75fa3e0f
JK
564Fri Jul 2 13:39:48 1993 Jim Kingdon (kingdon@lioth.cygnus.com)
565
c0bca41c
JK
566 * c-exp.y (yylex): Give error if unmatched single quote.
567
568 * configure.in, config/m68k/*delta68*, delta68-nat.c: New port.
569
75fa3e0f
JK
570 * Remove unused STACK_END_ADDR in the following files (in other
571 files it is used for something): tm-mips.h, tm-sun2.h, tm-news.h,
572 tm-a29k, tm-i386v.h, tm-hppa.h, tm-nindy960.h, tm-amix.h,
573 tm-hp300hpux.h, tm-isi.h.
574
a77a5278
JK
575Thu Jul 1 09:51:27 1993 Jim Kingdon (kingdon@cygnus.com)
576
75fa3e0f
JK
577 * config/mips/nm-riscos.h: Define NBPG and UPAGES.
578 config/mips/xm-riscos.h: Include <sys/types.h>.
579
580 * ser-unix.c (hardwire_noflush_set_tty_state): Use an assignment,
581 not an initializer, to copy the structure.
582
583 * gdbtypes.h (struct type): Add field tag_name.
584 * gdbtypes.c (type_name_no_tag), c-typeprint.c (c_type_print_base):
585 Use it.
586 * {coff,dwarf,mips,stabs}read.c: Set it.
587
1f72a94a
JK
588 * xm-sysv4.h: Undefine HAVE_TERMIO.
589
0abbc771
JK
590 * config/mips/nm-riscos.h: Remove unmatched #endif.
591 Define FETCH_INFERIOR_REGISTERS.
592 * config/mips/riscos.mh: Don't include coredep.o; mips-nat.o is enough.
593 Fix misspelling of NAT_FILE.
3762d624
JK
594 * mips-nat.c (fetch_core_registers): If KERNEL_U_ADDR is not defined,
595 we can still process "modern" core files.
0abbc771 596
a77a5278
JK
597 * ser-unix.c (hardwire_print_tty_state) [HAVE_TERMIOS]: Don't
598 print c_line.
599 (_initialize_ser_hardwire): Just check whether _POSIX_JOB_CONTROL
600 is defined; don't care what it is defined to.
601
95f2d253
JK
602Wed Jun 30 20:06:46 1993 Jim Kingdon (kingdon@lioth.cygnus.com)
603
604 * config/vax/xm-vaxult2.h: Define FD_SET and FD_ZERO.
605
c2e247c4
JK
606Tue Jun 29 11:02:58 1993 Jim Kingdon (kingdon@lioth.cygnus.com)
607
608 * inftarg.c: Remove unused include of terminal.h.
609 * signals.h: Don't undefine signals anymore.
610 * main.c: Use job_control from serial.h.
611 * fork-child.c (fork_inferior): Use gdb_setpgid.
612 * serial.h, ser-unix.c, ser-go32.c: Provide gdb_setpgid.
613 * utils.c (quit): Use current_target->to_terminal_ours to figure
614 out whether we care about lack of job control, rather than __GO32__.
615 * utils.c: Include serial.h not terminal.h
616 (quit): Use job_control not TIOCGPGRP.
617 * terminal.h: Don't undefine TIOCGPGRP.
618 * serial.h, ser-unix.c, ser-go32.c, ser-tcp.c: Add SERIAL_FLUSH_OUTPUT.
619 * utils.c (quit): Use it.
620 * serial.h: Add SERIAL_UN_FDOPEN.
621 * utils.c (quit): Use it.
622 * ser-unix.c: Add process group to ttystate.
623 [HAVE_SGTTY]: Add tchars, ltchars, and lmode to ttystate.
624 * inflow.c: Include serial.h not terminal.h.
625 Use serial.h stuff to replace most of the maze of #ifdef's.
626 * inflow.c, main.c, inferior.h: make gdb_has_a_terminal a function.
627 * serial.h: Document SERIAL_SET_TTY_STATE as being immediate.
628 * ser-unix.c: Use TIOCSETN not TIOCSETP so it is true.
629 * serial.h, ser-unix.c, ser-go32.c, ser-tcp.c:
630 Add SERIAL_PRINT_TTY_STATE, SERIAL_NOFLUSH_SET_TTY_STATE, and
631 SERIAL_SET_PROCESS_GROUP.
632 * inflow.c: Use them.
633 * config/xm-svr4.h, config/rs6000/xm-rs6000.h, config/sparc/sun4os4.h:
634 Define HAVE_TERMIOS.
635 * Various: Remove all use of TIOC*_BROKEN.
636
eed6de01
PS
637Wed Jun 30 12:20:51 1993 Peter Schauer (pes@regent.e-technik.tu-muenchen.de)
638
639 * config/m68k/tm-sun3.h (BELIEVE_PCC_PROMOTION_TYPE): Define.
640
641Tue Jun 29 13:44:41 1993 Peter Schauer (pes@regent.e-technik.tu-muenchen.de)
642
643 * target.h (target_detach): Turn macro into function.
644 * target.c (target_detach): Define it, do deferred register stores
645 before calling the real target function.
646
76a1bd4c
PS
647Tue Jun 29 13:15:42 1993 Peter Schauer (pes@regent.e-technik.tu-muenchen.de)
648 and Jim Kingdon (kingdon@cygnus.com)
649
650 * symtab.h (BLOCK_SHOULD_SORT): Do not sort blocks corresponding to
651 a function to avoid printing of function arguments in wrong order
652 due to sorting.
653 * symfile.c (compare_symbols): Remove code for sorting arguments
654 as blocks containing arguments are no longer sorted.
655 * symtab.c (lookup_block_symbol): Update comment accordingly.
656
a8c25621
JK
657Tue Jun 29 11:02:58 1993 Jim Kingdon (kingdon@lioth.cygnus.com)
658
64b09778
JK
659 * config/pa/tm-hppa.h: Remove unused ARGS_GROW_DOC.
660 (REG_STRUCT_HAS_ADDR): Add comment.
661
a8c25621
JK
662 * infrun.c (wait_for_inferior): Use find_pc_line not find_pc_symtab
663 to check whether there is line number information.
664
77641260
DZ
665Tue Jun 29 08:29:17 1993 david d `zoo' zuhn (zoo at cirdan.cygnus.com)
666
fe76016a
DZ
667 * remote-udi.c: Fix docstring so that it compiles.
668
a8c25621
JK
669 * remote-mips.c, remote-nindy.c: move bfd.h before symfile.h
670 (for file_ptr).
77641260 671
d63aae7f
JK
672Tue Jun 29 09:11:27 1993 Jim Kingdon (kingdon@lioth.cygnus.com)
673
fd09c963
JK
674 * dbxread.c (process_one_symbol): If we find a LOC_BLOCK where we
675 don't expect it, change it to LOC_STATIC so at least we don't coredump.
676
677 * c-typeprint.c (c_type_print_base): Don't error() on invalid type.
678
a8c25621 679 * symtab.h: Add comments about line numbers.
d63aae7f
JK
680 * source.c (identify_source_line): Fix off by one bug with line.
681
6b9561a4
JK
682Mon Jun 28 10:09:08 1993 Jim Kingdon (kingdon@lioth.cygnus.com)
683
c702007b
JK
684 * printcmd.c (makeva*): New interface, for making a va_list.
685 (printf_command): Use it.
686 * config/m88k/xm-delta88.h: Remove VPRINTF define, not needed.
687 * config/pa/xm-pa.h: New file.
688 * config/pa/xm-hppa{b,h}.h: Include it.
689
6b9561a4
JK
690 * xcoffread.c: Remove obsolete NO_TYPEDEFS comment.
691
be2860fb
PS
692Sun Jun 27 08:54:55 1993 Peter Schauer (pes@regent.e-technik.tu-muenchen.de)
693
694 * valprint.c (val_print_type_code_int): Fix off by one error with
695 eliminating leading zeroes for large little endian integers.
696
ee0d1b65
JK
697Sun Jun 27 08:58:56 1993 Jim Kingdon (kingdon@lioth.cygnus.com)
698
42280556
JK
699 * config/mips/riscos.mh (CC): Use -systype sysv.
700
68d2db62
JK
701 * ser-unix.c: Move #include of <sys/time.h> to HAVE_SGTTY section.
702
ee0d1b65
JK
703 * Makefile.in (ALLPARAM): Add config/mips/{x,n}-{news-mips,riscos}.h.
704
751b4006
JK
705Fri Jun 25 11:22:28 1993 Jim Kingdon (kingdon@lioth.cygnus.com)
706
707 * config/m68k/tm-m68k.h: Remove obsolete comment about duplicating
708 CALL_DUMMY between different 68k machines.
709
ea7f0a9f
SG
710Fri Jun 25 17:02:45 1993 Stu Grossman (grossman at cygnus.com)
711
712 * gdbserver/Makefile.in: Add dependancies on server.h.
713 * gdbserver/remote-gutils.c: Remove lots of unused functions and
714 variables.
715 * gdbserver/remote-inflow.c: Remove lots of unused variables and
716 #includes. Also, use PTRACE_* symbols instead of constants.
717 (mywait): Surround calls to wait() with enable/disable_async_io()
718 so that we can be interrupted from GDB while waiting for the
719 child. Also, handle child exit more gracefully.
720 * gdbserver/remote-server.c: Remove lots of unused variables.
721 Move all extern defs into server.h. Redo main loop so that
722 failure from getpkt() causes communications to be re-established.
723 Fix 'k' command so that it restarts the child.
724 * gdbserver/remote-utils.c: Remove lots of unloved vars and
725 subrs. Move many extern decls into server.h. (remote_open): For
726 tcp, seperate usage of proto fd from connected fd. Close proto
727 fd after getting connection. (putpkt/getpkt): Pay attention to
728 errors when reading/writing. Report these to the caller. New
729 routines input_interrupt/enable_async_io/disable_async_io to make
730 it possible to get an I/O interrupt when data arrives from the
731 comm link.
732 * serial.h: New file to contain common defs for all remote files.
733
a037b21e
SG
734Fri Jun 25 17:02:45 1993 Stu Grossman (grossman at cygnus.com)
735
736 * remote.c: Add arg names to prototypes, in a modest effort at
737 clarification. Also add prototypes for some new functions.
738 * (remote_wait): Better error reporting for 'T' responses.
739 * ser-go32.c (strncasecmp): Make str1 & str2 be const.
740 * (dos_async_init): Make usage message reflect requested port #.
741 * ser-tcp.c (tcp_open): Terminate hostname properly to prevent
742 random hostname lookup failures. Add nicer message for unknown
743 host error. (wait_for): Wake up in case of exceptions. Also,
744 restart select() if we got EINTR.
745 * ser-unix.c (wait_for): Restart select() if we got EINTR.
746 * serial.c: (serial_close): Clean up code.
747
ea7f0a9f
SG
748Fri Jun 25 11:22:28 1993 Jim Kingdon (kingdon@lioth.cygnus.com)
749
750 * config/m68k/tm-m68k.h: Remove obsolete comment about duplicating
751 CALL_DUMMY between different 68k machines.
752
a38b1233
JK
753Fri Jun 25 11:22:28 1993 Jim Kingdon (kingdon@lioth.cygnus.com)
754
f3fe62b1
JK
755 * Makefile.in (*.tab.c): Use ./c-exp.tab.c not just c-exp.tab.c.
756 Make comment explaining this comprehensible.
757 (TAGFILES): Include ALLDEPFILES.
758 (ALLDEPFILES): udi2soc.c and udr.c are in 29k-share/udi, not
759 29k-share/udi/udi.
760 (update-alldeps): Remove; obsolete.
761
e50ebec8
JK
762 * remote.c: Move comments regarding packets to top of file with the
763 rest of the protocol comments.
764 Fix incorrect description of 'T' response.
765
3576a412
JK
766 * README (Reporting Bugs): Refer people to the GDB manual.
767
7e71985c
JK
768 * c-valprint.c (c_val_print): Handle TYPE_CODE_BOOLEAN.
769 * stabsread.c: Type -16 is 4 bytes.
770
a38b1233
JK
771 * remote-udi.c: Improve docstring.
772
872dd3fe
FF
773Fri Jun 25 11:16:31 1993 Fred Fish (fnf@cygnus.com)
774
a38b1233
JK
775 * elfread.c (elf_symfile_read): Call bfd_elf_find_section, not
776 bfd_elf32_find_section, to track bfd changes.
872dd3fe 777
f75ad5da
JK
778Fri Jun 25 11:22:28 1993 Jim Kingdon (kingdon@lioth.cygnus.com)
779
780 * config/mips/riscos.mh (REGEX{,1}, MUNCH_DEFINE, MH_CFLAGS): Define.
ef3986bb 781 * config/mips/xm-riscos.h: Define USG.
f75ad5da 782
a32ebcfd
JK
783Thu Jun 24 14:52:45 1993 Jim Kingdon (kingdon@lioth.cygnus.com)
784
785 * main.c (filename_completer): Don't complete to files ending in ~.
786
787 * NEWS: Mention filename completion and "info line" enhancements.
788
789 * main.c (symbol_completion_function): On "info t foo", return NULL,
790 don't error().
791
792 * main.c (symbol_completion_function): Don't use readline word
793 breaking. Use new calling convention for c->completer and
794 complete_on_cmdlist.
795 * command.h (struct command): Change arguments; now the text passed
796 to completer does not have any word breaking done. New arg word.
797 * symtab.{c,h} (make_symbol_completion_list): Do word breaking. Take
798 word argument.
799 * {main.c,gdbcmd.h} ({filename,noop}_completer): Take word argument.
800 * command.{c,h} (complete_on_cmdlist): Take word argument.
801
802 * command.c (lookup_cmd_1): Doc fix.
803
b8774958
RP
804Thu Jun 24 13:26:04 1993 K. Richard Pixley (rich@sendai.cygnus.com)
805
806 * Makefile.in (OP_INCLUDE): define.
807 (OPCODE_CFLAGS): use OP_INCLUDE.
808
809 * config/i386/ncr3000.mh, config/i386/i386v4.mh,
810 config/i386/i386sol2.mh, config/m68k/hp300hpux.mh,
811 config/m68k/amix.mh, config/mips/irix[34].mh,
812 config/m88k/delta88.mh, config/sparc/sun4sol2.mh (ALLOCA,
813 ALLOCA1): macros removed.
814
815 * config/mips/decstation.mh, config/rs6000/rs6000.mh
816 (MMALLOC_LIB): renamed to MMALLOC.
817
4ae030b9
JK
818Wed Jun 23 00:25:58 1993 Jim Kingdon (kingdon@lioth.cygnus.com)
819
820 * partial-stab.h: Consolidate case statements for N_LSYM and N_FUN.
821 * dbxread.c: Change comment regarding acc.
822
c2df19bd
RP
823Wed Jun 23 15:04:54 1993 K. Richard Pixley (rich@sendai.cygnus.com)
824
7ae7b919
RP
825 Makefile overhaul dropping autodepend features.
826 * Makefile.in: many comment changes. forced consistent use of $()
827 for makefile variables references. dropped leading ./ in file
828 references. Drop $(srcdir)/ prefix on all dependencies.
829 Inserted contents of alldeps.mak and depend.
b8774958 830 (INCLUDE_CFLAGS): defined as new macro for getting libiberty's
7ae7b919
RP
831 include directory into the compilation line.
832 (GDB_CFLAGS): new macro to take up the semantic previously held
833 by INCLUDE_CFLAGS.
834 (LIBIBERTY): dropped ancient subdir macro. I last removed this
835 macro in feb of '92. How does it keep coming back?
836 (MMALLOC_LIB): renamed to MMALLOC.
837 (BFD_SRC_DIR): renamed to BFD_SRC.
838 (BFD_OBJ_DIR): renamed to BFD_DIR.
839 (BFD_LIB): renamed to BFD.
840 (BFD_INCLUDES): renamed to BFD_CFLAGS.
841 (READLINE_DIR): now represents object directory.
842 (RL_LIB): renamed to READLINE.
843 (READLINE_SRC, READLINE_CFLAGS, OPCODES, OPCODES_CFLAGS): new
844 macros.
845 (INTERNAL_CFLAGS): added GDB_CFLAGS, OPCODES_CFLAGS,
846 READLINE_CFLAGS, BFD_CFLAGS. Dropped USER_CFLAGS.
847 (LDFLAGS): removed default assignment.
848 (TEXIDIR, INCLUDE_DEP, MMALLOC_DIR, MMALLOC_DEP, BFD_DEP,
849 READLINE_DEP, LIBIBERTY_DIR, TESTS, depend, STAGESTUFF): unused, so removed.
850 (ALLOCA1, ALLOCA): removed all references. alloca is now in
851 libiberty.
852 (VERSION): unilaterally and arbitrarily bumped to 4.9.3.
853 (SFILES, NONSRC, HFILES, ALLDEPFILES, ALLPARAM, ALLCONFIG):
854 removed all $(srcdir) prefixes.
855 (getopt_h, ieee-float_h, bfd_h, wait_h, dis-asm_h): new macros
856 for potential dependencies. commented out by default.
857 (readline_headers, udiheaders): convenient abbreviations.
858 (gdbcore_h, frame_h, symtab_h, gdbtypes_h, expression_h,
859 value_h, breakpoint_h, command_h, gdbcmd_h, defs_h, inferior_h):
860 new macros used for header file dependencies.
861 (install-info, clean-info): collapse into the info rule.
862 (install): now depends on all.
863 (install-only): new target for installing without depending on
864 all.
865 (uninstall): new target.
866 (config-check, config-check-hosts, config-check-targets): added
867 fixme comments.
868 (ch-exp.tab.c, m2-exp.tab.c): added artificial dependencies in
869 order to force parallel makes into keeping these rules separate.
870 * configure.in: omit cat'ing depend file onto generated Makefile.
871 * alldeps.mak, depend: removed.
872
baa38372
RP
873 * inferior.h: remove redundant include of symtab.h which is
874 included in value.h via breakpoint.h.
875
fbca7519
RP
876 * alloca.c: removed. alloca is now in libiberty.
877
88607839
RP
878 * config/m88k/delta88.mh, config/ns32k/merlin.mh (M_UNINSTALL):
879 new macro to undo what M_INSTALL does.
c2df19bd 880
29f3879c
JK
881Wed Jun 23 00:25:58 1993 Jim Kingdon (kingdon@lioth.cygnus.com)
882
4ae030b9
JK
883 * config/ns32k/{merlin.mh,xm-merlin.h}: Be consistent about name
884 of gdb-sh.
6ffbfcc2 885
ec06a3cb
JK
886 * dbxread.c (copy_pending): Change name and function of begi argument
887 to endi, since that is what the caller needs.
888
853a233b
JK
889 * Makefile.in (TAGFILES): Don't include YYFILES.
890
891 * Makefile.in (HFILES): Include monitor.h.
892
893 * Makefile.in: Include text that used to be in alldeps.mak.
894 Remove config/mips/{bigmips.mh,xm-bigmips} from it.
895 * Makefile.in, configure.in: Remove all traces of alldeps.mak.
896
29f3879c
JK
897 * main.c (main): Print help message on stdout not stderr
898 per standards.texi.
899 New option --version per standards.texi.
900 In help message, show long options with "--" not "-".
901 Don't try to print help message or version until after we have
902 called initialize_all_files.
903
9ddfb9eb
JK
904Tue Jun 22 03:15:38 1993 Jim Kingdon (kingdon@lioth.cygnus.com)
905
15d4eb21
JK
906 * solib.c (solib_add_common_symbols): Don't call lookup_minimal_symbol.
907 (solib_add): Call special_symbol_handling once, not once per library.
908
59ba57da
JK
909 * procfs.c (procfs_resume): Don't pass a SIGTSTP whose action
910 is SIG_DFL.
911
912 * procfs.c (procfs_resume): Skip the unnecessary PRSVADDR on all
913 systems, not just Solaris.
914
9ddfb9eb
JK
915 * stabsread.c: Include <ctype.h>.
916
3768398d
JK
917Mon Jun 21 16:09:46 1993 Jim Kingdon (kingdon@cygnus.com)
918
919 * fork-child.c (fork_inferior): Quote exec_file so it can contain
920 funky characters.
921
68eabdd3
FF
922Mon Jun 21 16:56:47 1993 Fred Fish (fnf@cygnus.com)
923
924 * Makefile.in (INCLUDE_CFLAGS): Add BFD_INCLUDES for now, since
925 bfd.h is included by target.h, which most of gdb includes.
926 * depend: Hand remove BFD_INCLUDES from ${CC} lines, now that
927 it's in INCLUDE_CFLAGS.
928
c96d68c2
JK
929Mon Jun 21 16:09:46 1993 Jim Kingdon (kingdon@cygnus.com)
930
2c7ab4ca
JK
931 * config/i386/*aix*, i386aix-nat.c: New files.
932 * configure.in: Use them.
c96d68c2 933 * alldeps.mak: List them.
2c7ab4ca
JK
934 * coffread.c (decode_base_type): Deal with anonymous enum type.
935 * i387-tdep.c (print_387_status_word): Add comment re "top".
936 * i386-tdep.c [I386_AIX_TARGET] (i386_extract_return_value): New func.
937 * dbxread.c: Use SEEK_SET and SEEK_CUR, not L_*. Define them if and
938 only if not defined by a header file.
939 * mipsread.c: Don't define L_SET or L_INCR.
c96d68c2 940
200a3470
FF
941Mon Jun 21 15:10:07 1993 Fred Fish (fnf@cygnus.com)
942
943 * Makefile.in (BFD_INCLUDES): Bfd.h is now back in bfd build dir.
944 * depend: Hand updated to match.
945
089dc220
JK
946Sun Jun 20 13:11:11 1993 Jim Kingdon (kingdon@cygnus.com)
947
948 * stabsread.c (read_struct_fields): Don't call read_cpp_abbrev on $_.
949 (read_cpp_abbrev): Don't complain specially for $_. Also return 0 if
950 we don't recognize the abbrev.
951
2a4e8cc3
JK
952Sun Jun 20 00:24:41 1993 Jim Kingdon (kingdon@lioth.cygnus.com)
953
954 * solib.c (solib_add_common_symbols): Add comment about performance.
955
e64ec645
JK
956Fri Jun 18 12:37:36 1993 Jim Kingdon (kingdon@lioth.cygnus.com)
957
ee06f230
JK
958 * config/mips/{{x,n}m-riscos.h,riscos.mh}: New files.
959 * configure.in (mips-*-sysv*): Use riscos for host, bigmips for target.
960
b487ba2e
JK
961 * config/mips/{{x,n}m-news-mips.h,news-mips.mh}: New files.
962 * config/mips/{bigmips.mh,xm-bigmips.h}: Remove.
963 * configure.in (mips-sony-*): Use news-mips for host.
964
e64ec645
JK
965 * buildsym.h: Doc fix for processing_acc_compilation.
966
8715a9f3
JK
967Thu Jun 17 19:57:08 1993 Jim Kingdon (kingdon@lioth.cygnus.com)
968
969 * printcmd.c (print_formatted): Don't use tab in wrap_here arg.
970
fc61e9ee
JK
971Thu Jun 17 17:29:30 1993 Jim Kingdon (kingdon@lisa.cygnus.com)
972
973 * Makefile.in (INTERNAL_CFLAGS): Include ../include as well as
974 ${srcdir}/../include.
975
976 * config/m88k/xm-delta88.h: Comment out unused defines which conflict
977 with system headers.
978 * printcmd.c (printf_command): Cast second arg to vprintf to PTR.
979 Use VPRINTF macro if defined.
980 * config/m88k/xm-delta88.h: Define VPRINTF. Include <sys/siginfo.h>.
981 Define TIOC{GETC,GLTC}_BROKEN.
982 * m88k-nat.c: Uncomment include of <sys/ptrace.h>.
983 * main.c: Rename initialize_{main,cmd_lists,history} to init_* to
984 make things easier on munch (apparently this matters on
985 the delta88 with svr3).
986
c8fee4a5
DZ
987Thu Jun 17 16:53:56 1993 david d `zoo' zuhn (zoo@cygnus.com)
988
989 * Makefile.in: canonicalize install.sh; for use within
990 this directory (and subdirs)
991
992Tue Jun 15 17:01:23 1993 david d `zoo' zuhn (zoo at cirdan.cygnus.com)
993
994 * Makefile.in: remove parentdir support; use INSTALL_XFORM
995
7ccb1e44
SC
996Thu Jun 17 15:08:35 1993 Steve Chamberlain (sac@phydeaux.cygnus.com)
997
998 * configure.in (alpha-*-osf*), config/alpha/alpha-osf.mh: New
999 host.
1000 * sh-tdep.c (frame_find_saved_regs): Use NUM_REGS rather than hard
1001 wired (and wrong) constant.
1002 * values.c (unpack_long): Add case to unpack when target object is
1003 sizeof(int).
1004 * config/sh/tm-sh.h (REGISTER_NAMES): Know about the news ones the
1005 simulator defines.
1006
1c5d6049
RP
1007Wed Jun 16 16:08:18 1993 K. Richard Pixley (rich@sendai.cygnus.com)
1008
21cc14d8
RP
1009 * NEWS: tracking user visible changes starting with
1010 vxworks-timeout.
1011
1c5d6049
RP
1012 * remote-vx.c (_initialize_vx): rename user settable option from
1013 rpcTimeout to vxworks-timeout.
1014
3ef6f604
FF
1015Wed Jun 16 12:21:49 1993 Fred Fish (fnf@cygnus.com)
1016
53f0969b
FF
1017 * Makefile.in (depend): More makefile diddling.
1018 * alldeps.mak, depend: Update to latest automatically built
1019 versions.
1020
3ef6f604
FF
1021 * Makefile.in (depend): Bfd.h keeps moving, keep up with it.
1022 * alldeps.mak, depend: Update to latest automatically built
1023 versions.
1024
56894788
RP
1025Tue Jun 15 12:26:05 1993 K. Richard Pixley (rich@sendai.cygnus.com)
1026
1027 * remote-vx.c: include gdbcmd.h for setlist.
1028 (_initialize_vx): make rpcTimeout user settable.
1029
3a6249b1
JK
1030Mon Jun 14 09:23:51 1993 Jim Kingdon (kingdon@cygnus.com)
1031
bd50d1b0 1032 * main.c, gdbcmd.h: Add function filename_completer.
df0f0dcc
JK
1033 * main.c, symfile.c, source.c, exec.c, core.c: Use it for
1034 "directory", "source", "cd", "symbol-file" "add-symbol-file",
1035 "load", "file", "exec-file", "core-file" commands.
1036 (But '/' is a word break, limiting usefulness; see comments).
bd50d1b0
JK
1037
1038 * source.c (mod_path): Warning not error if can't find directory.
1039
3a6249b1
JK
1040 * isi-xdep.c: New file.
1041 * config/m68k/isi.mh (XDEPFILES): Add isi-xdep.o
1042
9748446f
JK
1043Sun Jun 13 09:17:48 1993 Jim Kingdon (kingdon@cygnus.com)
1044
f92d5249
JK
1045 * config/m68k/xm-news.h: Include <sys/param.h>.
1046
dbbf9508
JK
1047 * m88k-tdep.c (IEEE_isNAN): Remove.
1048 config/m88k/tm-m88k.h (INVALID_FLOAT): Return 0. This was the same
1049 broken isNAN as on the mips.
1050
198133b9
JK
1051 * valprint.c (_initialize_valprint): Use c->function.sfunc not just
1052 c->function.
1053
a5e6391b
JK
1054 * dbxread.c (process_one_symbol): If SUN_FIXED_LBRAC_BUG is not
1055 defined, don't worry about Sun's silly LBRAC bug.
1056 * config/m68k/tm-sun3.h: Define SUN_FIXED_LBRAC_BUG to 0.
1057
1058 * dbxread.c (process_one_symbol): If there's a symbol before an
1059 N_SO, don't error().
1060 (case N_BCOMM): complain () not error ().
1061
9748446f
JK
1062 * defs.h, main.c (catch_errors): Add return_mask arg.
1063 stack.c (print_frame_info): Pass RETURN_MASK_ERROR.
1064 other callers: Pass RETURN_MASK_ALL.
1065 (return_to_top_level), callers: Add return_reason arg.
1066 * utils.c (quit):
1067 Use return_to_top_level (RETURN_QUIT) instead of error ().
1068 * main.c (main), tm-nindy960.h (ADDITIONAL_OPTION_HANDLER):
1069 Use SET_TOP_LEVEL not setjmp (to_top_level).
1070 * remote-nindy.c: Use catch_errors not setjmp (to_top_level).
1071
6e6656cc
JK
1072Sat Jun 12 14:40:54 1993 Jim Kingdon (kingdon@cygnus.com)
1073
ff56144e
JK
1074 * solib.c (solib_create_inferior_hook) [SVR4_SHARED_LIBS]:
1075 Don't try to get the debug base yet.
1076
8357834f
JK
1077 * dbxread.c (process_one_symbol): Set n_opt_found based on whether
1078 a non-gcc N_OPT symbol is found. Make SUN_FIXED_LBRAC_BUG a macro
1079 which returns 0 or 1 to say whether to do it.
1080 * config/sparc/sun4{sol2,os4}.h
1081 (SUN_FIXED_LBRAC_BUG,VARIABLES_INSIDE_BLOCK): Use n_opt_found so
1082 the right thing happens for both acc and SunOS4 /bin/cc.
1083
1084 * valprint.c (print_hex_chars): Use local_hex_format_{pre,suf}fix.
1085 * printcmd.c (print_scalar_formatted): Use val_print_type_code_int.
1086
6e6656cc
JK
1087 * mips-tdep.c: Remove isa_NAN; it assumed sizeof(host int) == 4 and
1088 probably contained byte-order sins too.
1089 config/mips/tm-mips.h (INVALID_FLOAT): Define to 0 like most machines.
1090 The IEEE_FLOAT code in print_floating takes care of it.
1091
ce13daa7
FF
1092Sat Jun 12 14:47:04 1993 Fred Fish (fnf@cygnus.com)
1093
1094 * Makefile.in (VERSION): Bump to 4.9.2.
1095 * c-valprint.c (c_val_print): For array of chars printed with
1096 string syntax, don't print the address of the array. From
1097 bothner@cygnus.com.
1098 * c-exp.y (yylex): Recognize '.' as indicating a floating point
1099 number regardless of the radix. From wilson@cygnus.com.
1100 * valprint.c (set_input_radix_1, set_output_radix_1): New
1101 prototypes and functions that do the actual radix setting work.
1102 * valprint.c (set_radix, set_output_radix, set_input_radix):
1103 Rewrite to use set_input_radix_1 and set_output_radix_1.
1104 * valprint.c (initialize_valprint): Enable commands to
1105 independently set and show input and output radices.
1106 * valprint.c (show_radix): New prototype and function that
1107 handles separate input and output radices.
1108
112087ed
KR
1109Fri Jun 11 18:39:38 1993 Ken Raeburn (raeburn@cygnus.com)
1110
1111 Patches from Jeff Law, law@cs.utah.edu:
1112 * hppa-pinsn.c: Now uses disassembler from opcode library,
1113 this contains only the stub function print_insn.
1114
57cb418a
RP
1115Fri Jun 11 15:19:59 1993 K. Richard Pixley (rich@cygnus.com)
1116
1117 * main.c (main): back to two periods for elipse.
1118 (print_gdb_version): revised format for configuration info.
1119
ce13daa7
FF
1120Fri Jun 11 10:24:35 1993 Fred Fish (fnf@cygnus.com)
1121
1122 * defs.h (INT_MAX): Cast unsigned shift result to int.
1123
574dac8e
JK
1124Fri Jun 11 10:17:41 1993 Jim Kingdon (kingdon@cygnus.com)
1125
1126 * dbxread.c (process_one_symbol): Rather than having
1127 BLOCK_ADDRESS_FUNCTION_RELATIVE a macro, make it a variable which
1128 is true if we are doing stabs-in-elf, false otherwise.
1129 config/sparc/tm-sun4sol2.h: Don't define it.
1130
f63f30e2
ILT
1131Fri Jun 11 13:33:40 1993 Ian Lance Taylor (ian@cygnus.com)
1132
1133 * remote-mips.c (mips_send_packet): Don't print garbage character
1134 in debugging info.
1135 (mips_request): Don't check that remote pid is 0, because
1136 sometimes it isn't.
83909c43
ILT
1137 (mips_fetch_registers): Pass a pointer to SWAP_TARGET_AND_HOST,
1138 not an integer.
f63f30e2 1139
91c87211
JK
1140Fri Jun 11 10:17:41 1993 Jim Kingdon (kingdon@cygnus.com)
1141
c94e7e75
JK
1142 * stack.c (print_frame_info): Use catch_errors around print_frame_args.
1143
702c0ff7
JK
1144 * Makefile.in (install): Don't depend on gdb.
1145
91c87211
JK
1146 * Rename remote-es1800.c to remote-es.c
1147 and remote-st2000.c to remote-st.c for 14-char filenames.
1148 config/m68k/{es1800,st2000}: Use the new names.
1149
1150 * mips-tdep.c (isa_NAN): Don't return true on -0.
1151
dd577ca5
FF
1152Fri Jun 11 10:24:35 1993 Fred Fish (fnf@cygnus.com)
1153
1154 * defs.h (INT_MAX): Cast unsigned shift result to int.
1155
a608f919
FF
1156Thu Jun 10 13:26:41 1993 Fred Fish (fnf@cygnus.com)
1157
1158 * elfread.c (elf_symtab_read): Add bfd section address to bfd
1159 symbols, now that they are section relative.
1160 * solib.c (bfd_lookup_symbol): Ditto.
1161
1162Thu Jun 10 10:56:56 1993 Jim Kingdon (kingdon@cygnus.com)
1163
1164 * Makefile.in (depend): Add bfd -I's for paread.c and xcoffexec.c
1165 depend: Updated accordingly.
1166
39d4639b
JK
1167Wed Jun 9 16:08:44 1993 Jim Kingdon (kingdon@cygnus.com)
1168
1169 * Makefile.in (*.tab.c): Use mv for atomic update.
1170
1171 * Makefile.in ({dist,real}clean): Also remove nm.h.
1172 (realclean): Also remove ${TESTS}, y.output, yacc.{acts,tmp}.
1173 (distclean): Don't rebuild *.tab.c or TAGS.
1174
fa48972a
RP
1175Wed Jun 9 12:56:58 1993 K. Richard Pixley (rich@cygnus.com)
1176
90494078
RP
1177 * Makefile.in (version.c): add host and target names to version.c.
1178 * main.c (main): print three periods for the elipse.
1179 (print_gdb_version): also print configuration.
1180
a29be236
RP
1181 * udi/udiids.h, udi/udip2soc.c, udi/udiphcfg.h, udi/udiphunix.h,
1182 udi/udiproc.h, udi/udipt29k.h, udi/udiptcfg.h, udi/udisoc.h,
1183 udi/udr.c: Change AMD copyrights to FSF copyleft '93.
1184
1185 * remote-eb.c (get_hex_regs, eb_fetch_registers), remote-adapt.c
1186 (get_hex_regs, adapt_fetch_registers): cast args to
1187 supply_register to avoid gcc warning.
1188
0b3556fe
RP
1189 * config/a29k/a29k.mt (TDEPFILES): drop minimon support. It
1190 doesn't compile on solaris and is now obsolete.
1191
fa48972a
RP
1192 * config/sparc/sun4os4.mh (XM_CLIBS): remove -lresolv. This
1193 breaks stock sunos installations.
1194
b01c21d0
JK
1195Wed Jun 9 06:14:33 1993 Jim Kingdon (kingdon@cygnus.com)
1196
4640902b
JK
1197 * m68k-stub.c: Add comment about frame cache.
1198
b01c21d0
JK
1199 * target.h (target_store_registers): Doc fix re error handling.
1200
1201 * findvar.c (write_register): Call SWAP_TARGET_AND_HOST regardless
1202 of register_valid[regno].
1203
9745ba07
JK
1204Tue Jun 8 14:42:10 1993 Jim Kingdon (kingdon@rtl.cygnus.com)
1205
1206 * symtab.h, dwarfread.c: Doc fix re dependencies.
1207
f7630ec9
RS
1208Tue Jun 8 17:54:09 1993 Rob Savoye (rob@rtl.cygnus.com)
1209
1210 * serial.c (serial_close): If scb is NULL, don't try to close
1211 it.
1f72a94a 1212 * configure.in: Add support for rom68k and bug boot monitors.
f7630ec9 1213
df14b38b
SC
1214Tue Jun 8 17:39:12 1993 Steve Chamberlain (sac@phydeaux.cygnus.com)
1215
1216 * coffread.c (init_stringtab): Fix bug where sizeof(long) != 4.
1217 * gdbcore.h, core.c (read_memory_unsigned_integer): New function.
1218 * findvar.c (read_register, write_register): Fix thinko where
1219 sizeof(host long) != sizeof(target int).
1220 * h8300-tdep.c: Use new read_memory_unsigned_integer call.
1221 * sh-tdep.c (_initialize_sh_tdep): Add memory_size command.
1222
e7ac0161
JK
1223Tue Jun 8 14:42:10 1993 Jim Kingdon (kingdon@rtl.cygnus.com)
1224
1225 * Move config/m68k/tm-m68k.h (FRAME_FIND_SAVED_REGS) to
1226 m68k-tdep.c (m68k_find_saved_regs). Don't duplicate code between
1227 68881 and non-68881 cases. Check for a pair of movel instructions.
d9e5694c 1228
75c319ff
RP
1229Tue Jun 8 14:52:55 1993 K. Richard Pixley (rich@sendai.cygnus.com)
1230
54d44c8c
RP
1231 First cut at sparc-vxworks targetting.
1232 * config/sparc/tm-vxsparc.h, config/sparc/vxsparc.mt: new files.
1233 * configure.in: sparc-vxworks gdb_target now vxsparc.
1234
45d8db87 1235 * remote-eb.c, remote.c: symfile.h requires bfd.h so include it.
75c319ff 1236
683bf9b5
JK
1237Tue Jun 8 14:42:10 1993 Jim Kingdon (kingdon@rtl.cygnus.com)
1238
1239 * config/m68k/xm-news.h: add "extern int errno".
1240
35799202
RP
1241Tue Jun 8 13:45:07 1993 K. Richard Pixley (rich@sendai.cygnus.com)
1242
1243 * remove-vx.c (vx_read_register, vx_write_register): collapse
1244 ifdef I80960 else (assumes) m68k into parameterizable macros
1245 VX_NUM_REGS and VX_SIZE_FPREGS.
1246 * config/m68k/tm-vx68.h, config/i960/tm-vx960.h (VX_NUM_REGS,
1247 VX_SIZE_FPREGS): new definitions.
1248
6b27ebe8
JK
1249Tue Jun 8 11:08:29 1993 Jim Kingdon (kingdon@cygnus.com)
1250
1251 * symfile.{c,h} (generic_load): New function.
1252 remote{,-nindy,-eb,-mips}.c: Use it.
1253
a5d61570
SG
1254Mon Jun 7 20:07:30 1993 Stu Grossman (grossman@cygnus.com)
1255
1256 * Makefile.in (depend): More sed gubbish to deal with
1257 ../bfd/bfd.h being generated during the build.
1258 * depend: Re-done with corrected makefile.
1259
6f4a4fbb
FF
1260Mon Jun 7 16:32:05 1993 Fred Fish (fnf@cygnus.com)
1261
1262 * Makefile.in (BFD_SRC_DIR): Renamed def and usages from BFD_DIR.
1263 * Makefile.in (BFD_OBJ_DIR): New definition for the bfd build
1264 directory to find automatically generated header files and library.
1265 * Makefile.in (BFD_LIB): Use BFD_OBJ_DIR.
1266 * Makefile.in (LINTFLAGS): Include BFD_OBJ_DIR.
1267 * Makefile.in (saber_gdb): Include BFD_OBJ_DIR.
1268 * Makefile.in (depend): Include BFD_OBJ_DIR in gcc args.
1269 * Makefile.in (paread.o, xcoffexec.o): Remove, now in depend.
1270 * depend, alldeps.mak: Rebuild after Makefile.in changes.
1271
1272Fri Jun 4 10:18:51 1993 david d `zoo' zuhn (zoo at cirdan.cygnus.com)
1273
1274 * configure.in: change lynx support to CPU-*-lynxos*
1275
1276 * Makefile.in (subdir_do): change test from existence of directory
1277 to existence of Makefile (the directory may exist but not be configured)
1278
1279Thu Jun 3 01:18:51 1993 david d `zoo' zuhn (zoo at cirdan.cygnus.com)
1280
1281 * config/sparc/xm-sun4sol2.h: define MEM_FNS_DECLARED
1282
761d5a4b
ILT
1283Fri Jun 4 10:43:33 1993 Ian Lance Taylor (ian@cygnus.com)
1284
1285 * configure.in (mips-idt-ecoffl*): New target; use idtl.
1286 (mips-idt-ecoff*): Added trailing '*'.
1287 * config/mips/idtl.mt: New file; like idt.mt, but little endian.
1288
452b4b00
SG
1289Thu Jun 3 17:36:56 1993 Stu Grossman (grossman@cygnus.com)
1290
1291 * ser-go32.c: Clean up lots of compilation nits.
1292
e835b5e7
SG
1293Thu Jun 3 14:44:57 1993 Stu Grossman (grossman@cygnus.com)
1294
1295 * Patches from Jeffrey Law <law@cs.utah.edu>.
1296 * hppab-nat.c: Eliminate unnecessary ifdefs for
1297 FETCH_INFERIOR_REGISTERS, CANNOT_FETCH_REGISTER, and
1298 CANNOT_STORE_REGISTER.
1299 (fetch_register): Delete code to handle CANNOT_FETCH_REGISTER.
1300 * hppa-pinsn.c: Support 'I', 'J', and 'K' in output
1301 templates for 1.1 FP computational instructions.
1302
3af7fb94
SG
1303Thu Jun 3 03:34:49 1993 Stu Grossman (grossman@cygnus.com)
1304
bd91ddd1
SG
1305 * Makefile.in: Remove ser-tcp.[co]. (Use XDEPFILES instead.)
1306 * alldeps.mak, depend: Rebuild to account for ser-tcp.
1307 * config/sparc/sun4os4.mh: Add ser-tcp to XDEPFILES.
1308 * gdbserver/Makefile.in (gdbserver): Use -lbsd.
1309 * gdbserver/remote-inflow{-sparc}.c (create_inferior): Don't use a
1310 shell when running the child, as args have been expanded by the
1311 time we get here. Simplify calling convention.
1312 * gdbserver/remote-server.c (main): Use new calling convention
1313 for create_inferior, remove defunct code for coalescing argv.
1314 Remove extra calls to mywait(), as we no longer have to wade
1315 through a shell.
1316
3af7fb94
SG
1317 * target.c (target_read_memory_partial): Don't deref errnoptr
1318 when checking for null pointer.
1319
2b577349
JG
1320Wed Jun 2 19:58:46 1993 John Gilmore (gnu@cygnus.com)
1321
1322 * remote-es1800.c: Fix typo.
1323
68feeeed
FF
1324Tue Jun 1 21:22:39 1993 Fred Fish (fnf@cygnus.com)
1325
1326 * target.c (target_read_memory_partial): Like target_read_memory,
1327 but does partial reads, such as reads that bump into the end of
1328 the address space.
1329 * target.h (target_read_memory_partial): Add prototype.
1330 * valprint.c (PRINT_MAX_DEFAULT): New define, initial value 200.
1331 * valprint.c (val_print_string): Complete rewrite to fix bug with
1332 bumping into end of memory, avoiding unnecessarily long reads, and
1333 fixing bug when print_max is set to 0 (unlimited print length).
1334 * valprint.c (_initialize_valprint): Use PRINT_MAX_DEFAULT to
1335 initialize print_max.
1336
c1128340
RS
1337Tue Jun 1 18:11:35 1993 Rob Savoye (rob at darkstar.cygnus.com)
1338
1339 * configure.in: Add support for rom68k and bug boot monitors.
1340
574a2a49
JK
1341Mon May 31 10:37:04 1993 Jim Kingdon (kingdon@cygnus.com)
1342
6119aeeb
JK
1343 * printcmd.c (print_scalar_formatted): Print integers bigger than
1344 LONGEST in hex no matter how big, and no matter what the format
1345 and size.
1346
1347 * stabsread.c (read_type): Skip type attributes if present.
36bcda79 1348
574a2a49
JK
1349 * stabsread.c (read_huge_number): Don't accept '0' + radix as part
1350 of number, just through '0' + radix - 1.
1351
2707b48a
FF
1352Sun May 30 15:35:21 1993 Fred Fish (fnf@cygnus.com)
1353
8f1cc6c6
FF
1354 * Makefile.in (SER_HARDWIRE): Temporarily comment out ser-tcp.o.
1355
c701c14c
FF
1356 * {dbxread.c, dwarfread.c} (read_ofile_symtab): Rewrite to take
1357 single parameter, the pointer to the partial symtab, rather than
1358 a bunch of args that are derived from the partial symtab. Change
1359 prototypes and callers to match.
1360
2707b48a
FF
1361 * dbxread.c (read_ofile_symtab): Remove "#if 1" around code to
1362 set demangling style automatically.
1363 * defs.h (CPLUS_MARKER): Clarify comment that this is only for
1364 GNU C++, not C++ in general.
1365 * symtab.h (general_symbol_info): Simplify by eliminating one
1366 structure level for the language dependent info.
1367
86e3a5e4
FF
1368Sat May 29 15:59:29 1993 Fred Fish (fnf@cygnus.com)
1369
1370 * c-typeprint.c (c_type_print_base): Avoid dereferencing NULL
1371 names for TYPE_CODE_STRUCT and TYPE_CODE_UNION types.
1372 TYPE_CODE_ENUM was already testing for this.
1373
38dc5e12
SG
1374Fri May 28 17:18:05 1993 Stu Grossman (grossman@cygnus.com)
1375
1376 * Makefile.in: Add new file ser-tcp.c.
1377 * defs.h (memcmp): Add decl for memcmp to #ifndef MEM_FNS_DECLARED.
1378 * findvar.c (write_register): See if we are writing back the same
1379 value that's already in the register. If so, don't bother.
1380 * remote.c (putpkt, getpkt): Improve handling of communication
1381 problems.
1382 * ser-go32.c: Prototype it to death. Update serial_ops and add
1383 dummy routines where appropriate.
1384 * ser-tcp.c: New module to implement serial I/O via TCP
1385 connections.
1386 * ser-unix.c: Clean up getting/setting of tty state. Get rid of
1387 SERIAL_RESTORE, add SERIAL_{GET|SET}_TTY_STATE interfaces.
1388 * serial.c: Add start of support for connect command.
1389 (serial_open): Distinguish between tcp and local devices.
1390 * serial.h (struct serial_ops): Get rid of restore, add
1391 get_tty_state and set_tty_state. Define protoypes and macros for
1392 this mess.
1393 * gdbserver/remote-utils.c: Add tcp support. (readchar): Do
1394 some real buffering. Handle error conditions gracefully.
1395 * gdbserver/remote-inflow-sparc.c: Update to remote-inflow.c
1396 (Lynx), remove lots of cruft.
1397
633c8b0a
DZ
1398Fri May 28 17:24:51 1993 david d `zoo' zuhn (zoo at cirdan.cygnus.com)
1399
1400 * printcmd.c (print_address_symbolic): turn this into an assigment
1401 instead of an initialization (many compilers don't accept
1402 structure initialization).
1403
860b4da3
JK
1404Thu May 27 16:56:25 1993 Jim Kingdon (kingdon@lioth.cygnus.com)
1405
1406 * xcoffread.c (read_xcoff_symtab): If several program csects in one
1407 source file, give them all the name of the source file, rather than
1408 the 2nd and subsequent ones having NULL names.
1409
b7ccd8e0
PS
1410Thu May 27 06:16:56 1993 Peter Schauer (pes@regent.e-technik.tu-muenchen.de)
1411
1412 * printcmd.c (print_address_symbolic): Append source filename and
1413 linenumber of the symbol if print symbol-filename is on.
1414 (initialize_printcmd): `set print symbol-filename'.
1415
185a1705
SG
1416Wed May 26 13:46:16 1993 Stu Grossman (grossman@cygnus.com)
1417
5fa46c42
SG
1418 * configure.in: Add config for Lynx target. Configure gdbserver
1419 only for Lynx. Re-do selective configuration of sparclite.
1420
185a1705
SG
1421 * gdbserver/{remote-gutils.c remote-server.c Makefile.in
1422 configure.in remote-inflow.c remote-utils.c}: New files to
1423 support GDB remote server. Currently only works for Lynx.
1424
3a594d72
JK
1425Wed May 26 10:28:14 1993 Jim Kingdon (kingdon@lioth.cygnus.com)
1426
59d69506
JK
1427 * stabsread.c (define_symbol, case 't'): Only set the name if it
1428 is not a pointer type.
1429
1430 * stabsread.c (define_symbol): Clean up logic; move the read_type
1431 calls to inside the switch statement (this improves the error
1432 handling).
1433
3a594d72
JK
1434 * mipsread.c (parse_symbol, parse_partial_symbols): Deal with Fortran
1435 common blocks.
1436
b9298844
JK
1437Tue May 25 20:44:24 1993 Jim Kingdon (kingdon@lioth.cygnus.com)
1438
43795ece
JK
1439 * printcmd.c (print_formatted, case 'i'): Pass a tab to wrap_here.
1440
1441 * source.c (line_info): Change "pc" to "address" in messages and
1442 use print_address for addresses.
1443
2f2a70e5
JK
1444 * source.c (line_info): If we don't find a symtab, print more useful
1445 output, including the symbolic address.
1446
b9298844
JK
1447 * source.c (line_info): If --fullname, display the source.
1448 (identify_source_line), callers: Take pc as argument, rather than
1449 assuming innermost frame (emacs doesn't use this, so no one ever
1450 noticed).
1451 * symtab.h: Declare frame_file_full_name.
1452 * main.c: Don't.
1453
aea2312b
BK
1454Tue May 25 15:30:43 1993 Brendan Kehoe (brendan@lisa.cygnus.com)
1455
1456 * breakpoint.c (catch_command_1): Fix typo in error msg.
1457
6b346f51
KR
1458Tue May 25 16:05:55 1993 Ken Raeburn (raeburn@cambridge.cygnus.com)
1459
1460 * elfread.c (elf_symfile_read): Update ELF structure and routine
1461 names to specify 32-bit versions.
1462 (elf_symtab_read): Retrieve size field directly from symbol,
1463 instead of using old kludge.
1464
1465 * mips-pinsn.c (print_insn): Cast address to bfd_vma before
1466 calling opcodes library.
1467 * z8k-tdep.c (print_insn): Likewise.
1468
ea753d03
JK
1469Tue May 25 13:06:28 1993 Jim Kingdon (kingdon@lioth.cygnus.com)
1470
1471 * stabsread.c: Remove all uses of error(). Make error_type and
1472 read_type_number static.
1473 (define_symbol): Don't try to deal with a missing symbol
1474 descriptor which isn't followed by digit, '(', or '-'.
1475 * stabsread.h: Don't declare read_type_number here.
1476 * gdbtypes.h: Don't declare error_type here.
1477 * xcoffread.c: Remove NO_TYPEDEFS code.
1478
619ccb24
ILT
1479Tue May 25 09:33:16 1993 Ian Lance Taylor (ian@cygnus.com)
1480
1481 * mips-tdep.c: Removed #include of many header files, and #define
1482 of MIPSMAGIC; no longer used.
1483
30ffb593
JK
1484Tue May 25 09:36:13 1993 Jim Kingdon (kingdon@lioth.cygnus.com)
1485
6fe90fc8
JK
1486 * Many places: replace "the inferior" in messages with "the program"
1487 or "the program being debugged".
ea753d03 1488 * inflow.c (try_writing_regs): Remove; it's been #if 0'd forever
6fe90fc8
JK
1489 and I'm getting sick of maintaining it.
1490
30ffb593
JK
1491 * config/i386/linux.mh: Don't use \ newline; the awk scripts don't
1492 support it.
1493
1494 * config/i386/go32.mh: Define SER_HARDWIRE.
1495 * Makefile.in: Define SER_HARDWIRE.
1496 (DEPFILES): Use it.
1497 (alldeps.mak): Add SER_HARDWIRE.
1498 Remove all references to ser-hardwire.{c,o}.
1499 * configure.in: Remove all ser_hardwire and gdb_serial_driver stuff.
1500
1b71de8e
PS
1501Mon May 24 23:50:05 1993 Peter Schauer (pes@regent.e-technik.tu-muenchen.de)
1502
1503 * sparc-nat.c (store_inferior_registers): Fill in all members of
1504 inferior_fp_registers by reading them from the inferior before
1505 modifying and writing them back.
1506 Fixes unexplainable inferior FP exceptions after calls to the inferior
1507 or setting of floating point registers.
1508 * mips-tdep.c (mips_skip_prologue): Skip move of argument register
1509 to register which is generated by gcc-2.4.
1510
3b17ee1b
KR
1511Tue May 25 00:42:39 1993 Ken Raeburn (raeburn@cygnus.com)
1512
1513 * hppa-pinsn.c: Define OLD_TABLE before including opcode/hppa.h.
1514
1515Mon May 24 13:55:14 1993 Stu Grossman (grossman@cygnus.com)
1516
1517 * config/i386/{i386lynx.mh i386lynx.mt nm-i386lynx.h tm-i386lynx.h
1518 xm-i386lynx.h}: New configuration for Lynx.
1519
8789d972
JK
1520Mon May 24 10:01:10 1993 Jim Kingdon (kingdon@lioth.cygnus.com)
1521
87c942a8
JK
1522 * mipsread.c (parse_symbol): Deal with scVar and scVarRegister.
1523 * symtab.h: Comment that LOC_REGPARM_ADDR can be call by reference.
1524
8789d972
JK
1525 * c-typeprint.c (c_type_print_base): Don't print typedef'd names
1526 as struct, union, or enum tags.
1527
8537c754
PS
1528Mon May 24 01:10:01 1993 Peter Schauer (pes@regent.e-technik.tu-muenchen.de)
1529
1530 * symmisc.c (dump_msymbols): Avoid gdb coredump with stripped
1531 executable.
1532
f52bde21
JK
1533Sat May 22 10:03:09 1993 Jim Kingdon (kingdon@lioth.cygnus.com)
1534
2632d6df
JK
1535 * infrun.c (wait_for_inferior),
1536 infcmd.c (program_info, signal_command): Use symbolic signal names.
1537
6b82a761
JK
1538 * inftarg.c (child_wait): Deal with EINTR and include message from
1539 strerror if printing an error message.
1540
1541 * main.c (command_line_input): Use STOP_SIGNAL not SIGTSTP.
1542
f52bde21
JK
1543 * stabsread.c: Remove most uses of lookup_fundamental_type.
1544 (define_symbol): Use read_type for type of enum constant,
1545 not just read_type_number. Also don't call error().
1546 (define_symbol): For unrecognized constant type, one complaint (the
1547 one from error_type) is enough. Don't make our own in addition.
1548 (define_symbol): Don't treat an N_FUN 'R' as a prototype.
1549 * gdbtypes.h: Doc fixes.
1550
7cf92dd2
PS
1551Sat May 22 03:33:07 1993 Peter Schauer (pes@regent.e-technik.tu-muenchen.de)
1552
1553 Fix stack unwinding through _sigtramp on Irix. These patches are from
1554 Paul Flinders <ptf@delcam.co.uk>.
1555 * mipsread.c (fixup_sigtramp): Find _sigtramp on Irix even when the
1556 executable uses sigvec.
1557 * mips-tdep.c (read_next_frame_reg): Allow tm-file to override
1558 sigcontext offsets.
1559 * config/mips/tm-irix3.h: Add sigcontext offsets for Irix.
1560
101b7f9c
PS
1561Sat May 22 00:39:01 1993 Peter Schauer (pes@regent.e-technik.tu-muenchen.de)
1562
1563 * infrun.c (wait_for_inferior): Clear stop_signal if it should not
1564 be passed to the inferior to make "handle <signal> nopass nostop" work.
1565
ac8cf67d
PS
1566Sat May 22 00:21:41 1993 Peter Schauer (pes@regent.e-technik.tu-muenchen.de)
1567
1568 * config/mips/tm-irix3.h: Clean up, use tm-bigmips.h and redefine
1569 the necessary bits.
1570 * findvar.c (value_from_register): Fix uninitialized first_addr
1571 which caused problems with assignment of doubles to register variables
1572 on some targets.
1573 * mipsread.c: Remove TM_FILE_OVERRIDE, include tm.h and provide the
1574 missing mips definitions if necessary.
1575
1576 Fix handling of double register variables for mips targets and big
1577 endian hosts. These patches are from Paul Flinders <ptf@delcam.co.uk>.
1578 * config/mips/tm-mips.h: Increase MAX_REGISTER_{RAW,VIRTUAL}_SIZE to
1579 8 bytes for doubles.
1580 * config/mips/tm-mips.h (REGISTER_CONVERT_TO_TYPE): New macro for
1581 conversion of type held in multiple registers to host format.
1582 * config/mips/tm-mips.h (REGISTER_CONVERT_FROM_TYPE): New macro,
1583 companion to REGISTER_CONVERT_TO_TYPE.
1584 * config/mips/tm-mips.h (EXTRACT_RETURN_VALUE, STORE_RETURN_VALUE):
1585 Convert to function calls.
1586 * config/mips/tm-mips.h (FIX_CALL_DUMMY): New code for big endian
1587 mips targets.
1588 * mips-tdep.c (mips_print_register): Raw buffer now needs just
1589 MAX_REGISTER_RAW_SIZE bytes.
1590 * mips-tdep.c (mips_print_register): Use REGISTER_CONVERT_TO_TYPE
1591 (if defined) for doubles.
1592 * mips-tdep.c: (mips_extract_return_value, mips_store_return_value):
1593 New functions, take care of REGISTER_CONVERT_TO/FROM_TYPE.
1594 * valops.c (value_assign): Use REGISTER_CONVERT_TO_TYPE if
1595 defined.
1596 * findvar.c (value_from_register): Use REGISTER_CONVERT_TO_TYPE if
1597 defined.
1598
73262420
JK
1599Fri May 21 09:04:25 1993 Jim Kingdon (kingdon@lioth.cygnus.com)
1600
e23a6896
JK
1601 * configure.in: Add i[34]86-*-isc*.
1602
5e27c054 1603 * stabsread.c: Make sure all complain() pass the address of the struct.
b646b438
JK
1604
1605 * xcoffread.c: Make sure all struct complaints are static not auto.
1606
1607 * Makefile.in: Add rule for xcoffexec.o like that for paread.o.
1608
73262420
JK
1609 * xcoffread.c (process_xcoff_symbol, case C_LSYM): Use define_symbol.
1610
2c6af8c0
JK
1611Wed May 19 12:33:59 1993 Jim Kingdon (kingdon@lioth.cygnus.com)
1612
1613 * config/i386/linux.mh: Re-enable coredumps now that they should work.
1614
ee3d350d
RP
1615Wed May 19 15:44:20 1993 K. Richard Pixley (rich@cygnus.com)
1616
1617 * config/m68k/tm-m68k.h (FRAME_CHAIN): add missing close paren.
1618
f3fe87c7
SG
1619Wed May 19 15:33:57 1993 Stu Grossman (grossman@cygnus.com)
1620
1621 * config/pa/nm-hppab.h: Comment PTRACE_ARG3_TYPE.
1622
5b40415c
JK
1623Wed May 19 12:33:59 1993 Jim Kingdon (kingdon@lioth.cygnus.com)
1624
1625 * Makefile.in (INSTALLED_LIBS): New variable.
1626
31d16514
JK
1627Tue May 18 14:08:50 1993 Jim Kingdon (kingdon@lioth.cygnus.com)
1628
94d50340
JK
1629 * main.c (quit_command): In the "quit anyway?" message, tell the user
1630 whether we are planning to detach or kill the program.
1631
cdaa7905
JK
1632 * config/vax/vaxbsd.mh: Add "NAT_FILE= nm-vax.h".
1633 * config/vax/xm-vaxbsd.h: Use <sys/param.h> not <machine/limits.h>
1634
15f78602
JK
1635 * infcmd.c (read_pc): Doc fix.
1636
511933e7
JK
1637 * printcmd.c (print_address_symbolic): Use %u not %d for offset.
1638
993583e5
JK
1639 * blockframe.c (get_prev_frame_info): If pc in sigtramp, set
1640 signal_handler_caller.
1641 * tm-68k.h (FRAME_{CHAIN,SAVED_PC}): Deal with sigtramp.
1642 * tm-hp300bsd.h: Define SIGTRAMP_{START,END} not IN_SIGTRAMP.
1643 * inferior.h (IN_SIGTRAMP): Definition moved from infrun.c.
1644 Use SIGTRAMP_START if defined.
1645 * infcmd.c (step_1): Use SIGTRAMP_{START,END} if needed.
1646 * infrun.c (wait_for_inferior): Check IN_SIGTRAMP before SKIP_PROLOGUE.
1647
7f8253c7
JK
1648 * infptrace.c: Remove unused KERNEL_U_ADDR_HPUX code.
1649
b1b4a89e
JK
1650 * infcmd.c (step_1): Fix poorly worded error message.
1651
865e574b
JK
1652 * config/{i386/linux.mh,m68k/isi.mh} (NATDEPFILES):
1653 Comment out corelow.c because core dumps are broken on these machines.
1654
31d16514
JK
1655 * Makefile.in (depend): Put "${srcdir}" in generated dependencies
1656 if srcdir is not ".".
1657 Also put in -I${BFD_DIR} or -I${READLINE_DIR} for files which need it.
1658 (INCLUDE_CFLAGS): Remove BFD_DIR and READLINE_DIR.
1659 * depend: Update to latest automatically built version.
1660
6e50aeb4
FF
1661Tue May 18 08:10:45 1993 Fred Fish (fnf@cygnus.com)
1662
1663 * ChangeLog, ChangeLog-92: Split ChangeLog at 1993.
1664 * Makefile.in (NONSRC): Add ChangeLog-92
1665
1666Tue May 18 08:03:37 1993 Jim Kingdon (kingdon@lioth.cygnus.com)
f49cf589
JK
1667
1668 * findvar.c ({read,write}_register): Use REGISTER_RAW_SIZE
1669 not typo RAW_REGISTER_SIZE.
1670
1671 * frame.h, inferior.h: Doc fixes.
1672
35247ccd
SG
1673Mon May 17 15:43:03 1993 Stu Grossman (grossman@cygnus.com)
1674
1675 * findvar.c (write_register): Add sanity check for register size.
1676 (read_register): Fixup sanity check for register size to be
1677 consistent with write_register().
1678
1679Mon May 17 07:36:20 1993 Ian Lance Taylor (ian@cygnus.com)
1680
1681 * sparclite/Makefile.in: Add dummy info, install and install-info
1682 targets.
1683
d968d5b4
RP
1684Thu May 13 07:30:22 1993 Ian Lance Taylor (ian@cygnus.com)
1685
1686 * remote-nindy.c: Removed declaration of coffstrip.
1687 * nindy-share/nindy.c: #if 0 coffstrip routine; no longer used.
1688
377f53d2
FF
1689Wed May 12 00:35:19 1993 Fred Fish (fnf@cygnus.com)
1690
1691 * Makefile.in (VERSION): Bump to 4.9.1 after release and cvs
1692 tagging.
1693
1694 * Makefile.in (VERSION): GDB 4.9 release.
1695
965a33af
FF
1696Tue May 11 08:04:41 1993 Fred Fish (fnf@cygnus.com)
1697
1698 * README: Update known bugs to include the Solaris bug that
1699 leaves core dumps in the current directory when restarting the
1700 inferior with "run". Expand on the testsuite information.
1701
1702 * Makefile.in (VERSION): Bump to 4.8.96 for what should hopefully
1703 be the last 4.9 prerelease test archive.
1704
d2712f02
JK
1705Mon May 10 22:13:23 1993 Jim Kingdon (kingdon@cygnus.com)
1706
1707 * config/m68k/xm-hp300bsd.h: Include <sys/param.h> to avoid INT_MAX
1708 redefined warnings.
1709
0a4a0f09
FF
1710Mon May 10 20:00:43 1993 Fred Fish (fnf@cygnus.com)
1711
1712 * README, NEWS: Update for gdb 4.9 release.
1713
57ffffe3
JG
1714Mon May 10 19:38:34 1993 John Gilmore (gnu@cygnus.com)
1715
1716 * ch-exp.y (MAX, MIN): Rename to MAX_TOKEN, MIN_TOKEN.
1717 * target.c (MIN): #undef before defining.
1718
4a2383c1
JK
1719Mon May 10 16:03:03 1993 Jim Kingdon (kingdon@cygnus.com)
1720
1721 Patch from Jeffrey Law:
1722 * gdb/config/pa/nm-hppab.h (PTRACE_ARG3_TYPE): Define as caddr_t.
1723
1edc5cd2
ILT
1724Mon May 10 15:28:27 1993 Ian Lance Taylor (ian@cygnus.com)
1725
1726 * hppa-tdep.c (hppa_push_arguments): Allocate correct amount of
1727 memory.
1728
f39a2631
FF
1729Mon May 10 13:14:46 1993 Fred Fish (fnf@cygnus.com)
1730
1731 * ch-exp.y (start): Apply work-around to avoid bison warning.
1732
67d2bd1a
FF
1733Sun May 9 07:25:02 1993 Fred Fish (fnf@cygnus.com)
1734
0b81fc43
FF
1735 * Makefile.in (BISON): Remove double quotes around BISON
1736 definition when bison is used.
1737
8f59e92b
FF
1738 * configure.in (hppa*-hp-bsd): Change to hppa*-hp-bsd*
1739 * configure.in (hppa*-hp-hpux): Change to hppa*-hp-hpux*
1740 * configure.in (m68*-hp-bsd): Change to m68*-hp-bsd*
1741 * configure.in (m68*-hp-hpux): Change to m68*-hp-hpux*
1742 * configure.in (hppa*-*-bsd): Change to hppa*-*-bsd*
1743 * configure.in (hppa*-*-hpux): Change to hppa*-*-hpux*
1744 * configure.in (m68*-hp-bsd): Change to m68*-hp-bsd*
1745 * configure.in (m68*-hp-hpux): Change to m68*-hp-hpux*
1746
67d2bd1a
FF
1747 * Makefile.in (VERSION): Bump to 4.8.6.
1748
64c5ac4f
FF
1749Sat May 8 12:36:03 1993 Fred Fish (fnf@cygnus.com)
1750
1751 * config/pa/xm-hppah.h (MALLOC_INCOMPATIBLE): Define it, and
1752 include declarations for malloc/realloc/free. Both malloc and
1753 realloc return 'void *' for non-ANSI compilations.
1754
1adf2ba9
PS
1755Sat May 8 01:39:30 1993 (pes@regent.e-technik.tu-muenchen.de)
1756
1757 * coffread.c (read_coff_symtab): Don't fclose stream as it is no
1758 longer opened twice.
1759
7a758f71
JK
1760Thu May 6 21:08:55 1993 Jim Kingdon (kingdon@cygnus.com)
1761
1762 * solib.c (clear_solib): Don't close bfd if it is NULL.
1763
34b70237
FF
1764Thu May 6 20:55:35 1993 Fred Fish (fnf@cygnus.com)
1765
1766 * core.c (dis_asm_read_memory): Cast second arg of
1767 target_read_memory to "char *".
1768 * breakpoint.c (watchpoint_check): Change arg type from PTR to
1769 "char *", to match other functions called by catch_errors().
1770
2c298c09
SG
1771Thu May 6 15:47:45 1993 Stu Grossman (grossman@cygnus.com)
1772
1773 * More patches from Jeffrey Law (law@cs.utah.edu).
35247ccd 1774 * gdb/config/nm-hppab.h (PTRACE_ARG3_TYPE): Define as caddr_t.
2c298c09
SG
1775 * gdb/config/pa/tm-hppah.h (millicode_start, millicode_end):
1776 Delete unnecessary declarations.
1777
9e15da4a
SG
1778Thu May 6 15:15:46 1993 Stu Grossman (grossman@cygnus.com)
1779
1780 * ser-unix.c (wait_for): Use VTIME to do timeouts instead of
1781 poll() for termio{s}.
1782
dfa592fb
JK
1783Thu May 6 10:03:41 1993 Jim Kingdon (kingdon@cygnus.com)
1784
1785 * i386-tdep.c (i386_frame_num_args): Always return -1.
1786
d83a6710
SG
1787Wed May 5 15:16:33 1993 Stu Grossman (grossman@cygnus.com)
1788
a34d4bc1 1789 * Patches from Jeffrey Law <law@cs.utah.edu>.
8fa74880
SG
1790 * gdb/hppa-tdep.c: Declare frame_saved_pc.
1791 (frameless_function_invocation): New function.
1792 (frame_saved_pc, init_extra_frame_info): Use
1793 frameless_function_invocation.
f45e781f 1794 * gdb/config/pa/tm-hppa.h (SAVED_PC_AFTER_CALL): Use saved_pc_after
8fa74880
SG
1795 call instead of just grabbing the value currently in %r2.
1796 (FRAMELESS_FUNCTION_INVOCATION): Use frameless_function_invocation.
f45e781f 1797 * gdb/config/pa/tm-hppah.h (SAVED_PC_AFTER_CALL): Delete private
8fa74880 1798 definition and use the common one in tm-hppa.h.
4b01383b
SG
1799 * gdb/hppa-tdep.c (frame_chain_valid): If "use_unwind" is true, then
1800 use unwind descriptors to determine if the frame chain is valid.
b227992a
SG
1801 * gdb/hppa-tdep.c (find_dummy_frame_regs): Rework so that
1802 it does not assume %r4 is the frame pointer.
68c8d698
SG
1803 * gdb/hppa-pinsn.c (print_insn): Handle 'r' and 'R' for break, rsm,
1804 and ssm instructions.
1805 * gdb/hppa-tdep.c (extract_5r_store, extract_5R_store): New
1806 helper functions for print_insn.
a34d4bc1 1807 * gdb/hppa-tdep.c (gcc_p, hpux_cc_p): Delete unused functions.
d83a6710 1808 * gdb/config/pa/tm-hppa.h (ABOUT_TO_RETURN): Handle a return
a34d4bc1 1809 which nullifies the following instruction.
d83a6710 1810
a7edcb25
JK
1811Tue May 4 12:11:38 1993 Jim Kingdon (kingdon@cygnus.com)
1812
d83a6710
SG
1813 * infptrace.c [FIVE_ARG_PTRACE]: Define ptrace to call_ptrace and
1814 pass the 5th arg there, rather than using an ANSI C-specific macro.
1815
a7edcb25
JK
1816 * Makefile.in (depend): Don't include ${CC} command for *.tab.c.
1817
d39fbfe3
FF
1818Tue May 4 19:33:12 1993 Fred Fish (fnf@cygnus.com)
1819
1820 * Makefile.in (VERSION): Bump to 4.8.5
1821 * Makefile.in (INCLUDE_CFLAGS): Add BFD_DIR and READLINE_DIR
1822 directories to include search path.
1823 * Makefile.in (CLIBS, CDEPS, ADD_FILES, ADD_DEPS): Clean up
1824 whitespace.
1825 * Makefile.in (depend): For gcc -MM line, use INTERNAL_CFLAGS
1826 * Makefile.in (main.o, dbxread.o, coffread.o, mipsread.o,
1827 elfread.o, dwarfread.o, stabsread.o, xcoffread.o, xcoffexec.o,
1828 xdr_ld.o, xdr_rdb.o, nindy.o, Onindy.o, ttybreak.o, ttyflush.o,
1829 udr.o, udip2soc.o): Remove explicit rules, use the ones that
1830 are automatically generated in "depend".
1831 * Makefile.in (paread.o): Document why a dependency doesn't get
1832 automatically generated in "depend" and leave this explicit rule
1833 in for now (FIXME).
1834 * depend: Update to latest automatically generated version.
1835
5b8462fa
JK
1836Tue May 4 12:11:38 1993 Jim Kingdon (kingdon@cygnus.com)
1837
67240bb8
JK
1838 * xcoffread.c: Doc fix.
1839
5b8462fa
JK
1840 * Makefile.in (depend): Include $(CC) command in generated output.
1841
5287eacd
FF
1842Mon May 3 22:51:05 1993 Fred Fish (fnf@cygnus.com)
1843
1844 * Makefile.in (NONSRC): Remove ${srcdir}/putenv.c.
1845 * Makefile.in (SFILES): Add ${srcdir}/putenv.c.
1846 * depend: Update to latest automatically built version.
1847
9775789d
SG
1848Mon May 3 19:20:20 1993 Stu Grossman (grossman@cygnus.com)
1849
f202f778
SG
1850 * sparclite/Makefile.in: Create default target that does nothing
1851 in order to force user to build by hand.
1852
1e8005d0
SG
1853 * sparclite/Makefile: Remove. It's not necessary anymore.
1854
9775789d
SG
1855 * ser-unix.c (wait_for): New routine to handle read timeouts,
1856 etc. Uses poll() if HAVE_TERMIO[S] is defined, select() otherwise.
1857
588cca90
ILT
1858Mon May 3 13:52:08 1993 Ian Lance Taylor (ian@cygnus.com)
1859
1860 * mips-pinsn.c (print_insn): Return value.
1861
ebd99d54
FF
1862Sun May 2 11:43:57 1993 Fred Fish (fnf@cygnus.com)
1863
588cca90
ILT
1864 * Makefile.in (SFILES): Remove ser-hardwire.c; it is a link made
1865 at configuration time and doesn't belong in the distribution archive.
1866
d8aaff82
FF
1867 * Makefile.in (NONSRC): Add 29k-share/README.
1868 * Makefile.in (HFILES): Add 29k-share/udi/udiids.h.
1869
ebd99d54
FF
1870 * defs.h (UINT_MAX, LONG_MAX, INT_MAX, INT_MIN): Replace hex
1871 constants with slightly more portable definitions (still depends
1872 on 2's complement arithmetic though).
1873 * config/i386/nm-linux.h: Define NO_SYS_REG_H for no <sys/reg.h>.
1874 * i386v-nat.c (sys/reg.h): Conditionalize include on
1875 NO_SYS_REG_H. Linux doesn't have <sys/reg.h>.
1876 * ser-unix.c (termio.h): Include <termio.h> like other files that
1877 include termio.h, not <sys/termio.h> which may not exist (on
1878 linux for example).
1879
9b25bb09
FF
1880Sat May 1 16:05:24 1993 Fred Fish (fnf@cygnus.com)
1881
1882 * valprint.c (print_longest): Change format parameter from a
1883 'char' to an 'int'. We can't have 'char' parameters with the
1884 current coding style, where we mix prototypes with pre-ANSI
1885 style declarations.
1886 * value.h (print_longest): Change format parameter in prototype
1887 from a 'char' to an 'int'.
1888
dea149ce
PS
1889Sat May 1 02:47:20 1993 Peter Schauer (pes@regent.e-technik.tu-muenchen.de)
1890
23654371 1891 * config/mips/tm-mips.h (STAB_REG_TO_REGNUM): Match it with the gcc
dea149ce 1892 definition.
23654371 1893 * config/mips/tm-irix3.h (STAB_REG_TO_REGNUM): Add.
dea149ce
PS
1894 * irix4-nat.c (fill_fpregset): Fix bug with indexing into fpregsetp.
1895
2f1c04d1
SG
1896Fri Apr 30 17:45:32 1993 Stu Grossman (grossman@cygnus.com)
1897
1898 * The following patches are from Jeffrey Law <law@cs.utah.edu>.
1899 * config/pa/hppabsd.mh: Add more files to NATDEPFILES.
1900 * config/pa/xm-hppa[bh].h: Define FIVE_ARG_PTRACE.
1901 * hppab-nat.c: Delete WANT_NATIVE_TARGET ifdefs.
1902 ptrace needs 5 arguments, #define ptrace to always
1903 pass zero as the 5th argument.
1904
c7cb9064
SC
1905Fri Apr 30 15:54:13 1993 Steve Chamberlain (sac@thepub.cygnus.com)
1906
1907 * configure.in: Match z8k-*-sim for z8000.
1908 * config/h8500/tm-h8500.h, h8500-tdep.c: Lint.
1909 * remote-hms.c: Update to use new serial protocol.
1910
5385e525
RP
1911Fri Apr 30 16:50:38 1993 K. Richard Pixley (rich@rtl.cygnus.com)
1912
5084717f
RP
1913 * mips-tdep.c: remove include of sys/dir.h. Doesn't seem
1914 necessary and Solaris doesn't have it.
1915
0139c441
RP
1916 * Makefile.in (clean-info, install, install-info, info, dvi,
1917 check, all): do not echo recursion lines.
1918
5084717f 1919 * 29k-share/udip2soc.c (UDIConnect): replace union wait with int.
8317b39f 1920
13b464b2
RP
1921 * config/sparc/sun4sol2.mh (XM_CLIBS): add -lsocket which is
1922 required target ports which use sockets (like a29k-udi).
1923
2f1c04d1 1924 * remote-udi.c (udi_wait): Use SIGURG, as Solaris doesn't have SIGLOST.
5385e525 1925
8d57a263
JK
1926Fri Apr 30 11:05:42 1993 Jim Kingdon (kingdon@cygnus.com)
1927
eca29634
JK
1928 * ser-unix.c [USE_{TERMIO,ALARM}_TIMEOUT]: New code to deal with
1929 systems lacking select().
1930
db7c818b 1931 * Makefile.in (TAGS): Doc fix. Deal with empty DEPFILES.
8d57a263 1932
496ca67c
FF
1933Fri Apr 30 10:06:46 1993 Fred Fish (fnf@cygnus.com)
1934
1935 * alldeps.mak, depend: Update with latest automatically built
1936 versions.
1937
3717e95b
FF
1938Thu Apr 29 12:03:23 1993 Fred Fish (fnf@cygnus.com)
1939
d5f608a4
FF
1940 * Makefile.in (SFILES): Add ser-unix.c and ser-go32.c.
1941
97e72c06
FF
1942 * Makefile.in (make-proto-testsuite.dir): New target to make
1943 prototype testsuite tree.
97e72c06 1944
3717e95b
FF
1945 * Makefile.in (VERSION): Bump to 4.8.4.
1946
ff580c7b
JK
1947Thu Apr 29 08:46:22 1993 Jim Kingdon (kingdon@cygnus.com)
1948
1949 * stabsread.c (define_symbol): If unrecognized constant type,
1950 complain() not error().
1951
7efb57c3
FF
1952Thu Apr 29 00:03:59 1993 Fred Fish (fnf@cygnus.com)
1953
f43aec2e
FF
1954 * infptrace.c: Add missing close paren to test for
1955 FIVE_ARG_PTRACE defined.
1956
7efb57c3
FF
1957 * defs.h (CC_HAS_LONG_LONG): Set up to define CC_HAS_LONG_LONG
1958 when compiling with gcc, but disable it for now. See comment.
1959 * defs.h (LONGEST): Define as either "long" or "long long"
1960 based on CC_HAS_LONG_LONG.
1961 * defs.h (longest_to_int): Use CC_HAS_LONG_LONG to control
1962 how longest_to_int is defined.
1963 * c-valprint.c (c_val_print): Call print_longest.
1964 * expprint.c (dump_expression): Use PRINTF_HAS_LONG_LONG
1965 instead of LONG_LONG.
1966 * {printcmd.c, gdbtypes.h} (LONG_LONG): Replace usages with
1967 CC_HAS_LONG_LONG.
1968 * printcmd.c (print_scalar_formatted): Call print_longest
1969 and let it figure out what to do for PRINTF_HAS_LONG_LONG.
1970 * typeprint.c (print_type_scalar): Call print_longest and let
1971 it figure out what to do for PRINTF_HAS_LONG_LONG.
1972 * valprint.c (val_print_type_code_int): Call print_longest
1973 and let it figure out what to do for PRINTF_HAS_LONG_LONG.
1974 * stabsread.c (LONG_LONG): Replace usages with CC_HAS_LONG_LONG.
1975 * value.h (struct value): Replace usage of LONG_LONG with
1976 CC_HAS_LONG_LONG.
1977 * value.h (print_longest): Add prototype.
1978 * values.c (LONG_LONG): Replace usages with CC_HAS_LONG_LONG.
1979 * values.c (unpack_double): Collapse code that was unnecessarily
1980 dependent on CC_HAS_LONG_LONG. Use LONGEST instead of direct types.
1981 * values.c (value_from_longest): Remove dependency on
1982 CC_HAS_LONG_LONG and just use LONGEST.
1983 * solib.c (solib_map_sections): Use bfd_get_filename
1984 to access filename field.
1985 * solib.c (clear_solib): Save filename and free it later, after
1986 bfd_close, since bfd_close may reference it. Use bfd_get_filename
1987 to access the field.
1988 * config/convex/xm-convex.h (LONG_LONG): Replace with
1989 CC_HAS_LONG_LONG. Add define for PRINTF_HAS_LONG_LONG.
1990 * doc/gdbint.texinfo (LONG_LONG): Replace with CC_HAS_LONG_LONG.
1991 Add PRINTF_HAS_LONG_LONG references.
1992
0626f40d
JK
1993Wed Apr 28 06:11:38 1993 Jim Kingdon (kingdon@cygnus.com)
1994
31b56726
JK
1995 * inflow.c (kill_command), infcmd.c (attach_command),
1996 remote.c (remote_interrupt_twice): In messages for the user, call it
1997 "the program" or "the program being debugged" not "the inferior".
1998
0626f40d
JK
1999 * hp300ux-nat.c: Cast second arg to supply_register calls.
2000 (_initialize_kernel_u_addr, getpagesize): New functions.
2001 (store_inferior_register_1): Change arg name from value to val.
2002 (fetch_core_registers): Make arg core_reg_size unsigned.
2003 Pass 5 args to ptrace.
2004 * config/m68k/xm-hp300hpux.h: Define FIVE_ARG_PTRACE.
2005 Remove KERNEL_U_ADDR stuff.
2006 * infptrace.c [FIVE_ARG_PTRACE]: Pass 5th arg to ptrace.
2007 * config/m68k/hp300hpux.m{t,h}:
2008 Move exec.o from NATDEPFILES to TDEPFILES
2009 * config/m68k/hp300hpux.mt: Mention GAS requirement. Remove
2010 hp-include stuff. Add m68k-tdep.o to TDEPFILES.
2011
d8f23320
PS
2012Wed Apr 28 13:27:54 1993 Peter Schauer (pes@regent.e-technik.tu-muenchen.de)
2013
2014 * ch-exp.y (yylex): Don't STREQ with simplename if it is NULL.
2015
08bb2617
JK
2016Wed Apr 28 06:11:38 1993 Jim Kingdon (kingdon@cygnus.com)
2017
2018 * config/sparc/xm-sun4os4.h [__STDC__]: Don't use MALLOC_INCOMPATIBLE.
2019
caa53d6d
RP
2020Wed Apr 28 11:39:18 1993 Roland H. Pesch (pesch@fowanton.cygnus.com)
2021
2022 * doc/gdb.texinfo: make node "Shell Commands" unconditional;
2023 describe `set demangle-style arm' (not cfront);
2024 mention can type `q' to discard output, when gdb pages
2025
212e10cf
PS
2026Wed Apr 28 11:32:39 1993 Peter Schauer (pes@regent.e-technik.tu-muenchen.de)
2027
2028 * valops.c (search_struct_field): Fix gdb core dump with incomplete
2029 stabs info.
2030
ebdb9ade
JK
2031Wed Apr 28 06:11:38 1993 Jim Kingdon (kingdon@cygnus.com)
2032
2033 * remote.c: Change timeout to 2.
2034 (remote_open): Use unpush_target not remote_close.
2035 (remote_resume): If siggnal != 0, give warning not error().
2036 (remote_wait, remote_interrupt, remote_interrupt_twice):
2037 If we get two interrupts, let the user get out if they want.
2038 (remote_{kill,mourn}): New functions.
2039 i386-stub.c (handle_exception, case 'k'): Don't BREAKPOINT.
2040
c0f2f39c
ILT
2041Wed Apr 28 09:20:55 1993 Ian Lance Taylor (ian@rtl.cygnus.com)
2042
2043 * config/sparc/sun4sol2.mh (XM_CLIBS): Define to be -lnsl.
2044
609e1c57
JK
2045Wed Apr 28 06:11:38 1993 Jim Kingdon (kingdon@cygnus.com)
2046
71607f9d
JK
2047 * Remote targets (mourn): Call unpush_target.
2048
e82980e4
JK
2049 * config/sparc/xm-sun4os4.h: Declare free() to return int.
2050 Remove twisted use of PARAMS.
2051
609e1c57
JK
2052 * config/rs6000/xm-rs6000.h: Don't define MALLOC_INCOMPATIBLE now
2053 that ansidecl.h assumes ANSI on AIX.
2054
ab425a9b
JK
2055Tue Apr 27 10:01:33 1993 Jim Kingdon (kingdon@cygnus.com)
2056
2057 * README: Move most stuff about hacking GDB to doc/gdbint.texinfo.
2058 (Known bugs): Remove AIX bugs, revise SPARC struct bug description.
2059
f661c4ca
PS
2060Tue Apr 27 13:44:19 1993 Peter Schauer (pes@regent.e-technik.tu-muenchen.de)
2061
2062 * expprint.c (print_subexp): Fix bug with OP_SCOPE operator output.
2063
ebe8362f
JK
2064Tue Apr 27 10:01:33 1993 Jim Kingdon (kingdon@cygnus.com)
2065
2066 * remote-vx.c (net_connect): Allow numeric IP address for host.
2067
9faacb92
SC
2068Mon Apr 26 17:59:38 1993 Steve Chamberlain (sac@thepub.cygnus.com)
2069
2070 * config/sh/sh.mt, config/sh/tm-sh.h, sh-tdep.c: New files.
2071
9aa31e91
JK
2072Mon Apr 26 07:13:32 1993 Jim Kingdon (kingdon@cygnus.com)
2073
2074 * rs6000-tdep.c (branch_dest): Deal with stepping through system call.
2075
2076 * symtab.h, xcoffread.c: Revise linetable sorting comments.
2077
24d45a63
PS
2078Sun Apr 25 02:32:16 1993 Peter Schauer (pes@regent.e-technik.tu-muenchen.de)
2079
2080 * valops.c (value_cast): A cast might also change the object
2081 representation in C++.
2082 * dbxread.c (end_psymtab): Copy subpst read_symtab function from pst
2083 to get the proper read_symtab function when called from mipsread.c.
2084 * mipsread.c (mipscoff_psymtab_to_symtab, psymtab_to_symtab_1):
2085 Set cur_bfd in psymtab_to_symtab_1 as CURBFD(pst) is invalid
2086 for dummy psymtabs, inhibit processing of dummy psymtabs.
2087
8cba9703
JK
2088Sat Apr 24 19:59:54 1993 Jim Kingdon (kingdon@cygnus.com)
2089
87237c52
JK
2090 * Changes from (or inspired by) AMD:
2091 * remote-udi.c (udi_attach): Assignments to Space and Offset were
2092 switched, fix it.
2093 (udi_wait): Make error message (UDIGetStdout) match error.
2094 (udi_wait): Handle UDIStdinNeeded.
2095 * command.c [CANT_FORK]: Use system().
2096 * utils.c (prompt_for_continue): Allow quit with 'q'.
2097
8cba9703
JK
2098 * solib.c (solib_add): Don't call special_symbol_handling if there
2099 were errors in symbol_add_stub. Also set so->from_tty before
2100 calling symbol_add_stub.
2101
66a1aa07
SG
2102Fri Apr 23 16:17:00 1993 Stu Grossman (grossman@cygnus.com)
2103
2104 * Merge in HPPA/BSD patches from Utah:
2105 * defs.h: Add const to 2nd arg of psignal prototype.
2106 * hppah-tdep.c: Renamed to hppa-tdep.c 'cuz it's common code with
2107 BSD now.
2108 * hppab-core.c: Deleted. No longer useful.
2109 * hppab-nat.c: #include more files. Use PT_WUREGS, not
2110 PT_WRITE_U.
2111 * hppab-tdep.c: Deleted. Supplanted by hppa-tdep.c.
2112 * config/pa/hppabsd.mh (NATDEPFILES): Remove hppab-core.o.
2113 * config/pa/hppabsd.mt (TDEPFILES): hppab-tdep.o => hppa-tdep.o
2114 * config/pa/hppahpux.mt (TDEPFILES): hppab-tdep.o => hppa-tdep.o
2115 * config/pa/xm-hppab.h: #define SET_STACK_LIMIT_HUGE.
2116
b5728692
SG
2117Fri Apr 23 10:34:02 1993 Stu Grossman (grossman@cygnus.com)
2118
2119 * Fix two bugs found by deja-gnu. One is the incorrect reporting
2120 of the PC being in a stack dummy when looking at a core file
2121 without symbols. The other is the incorrect passing of char
2122 arguments during expression evaluation (ie: p foo('a','b') would
2123 mess up the passing of it's args because it wasn't coercing the
2124 char's to ints).
2125 * hppah-tdep.c: Rename global functions to have consistent hppa_
2126 prefix. Make more functions static. Drop hp_ prefix from static
2127 functions. (hppa_push_arguments): Call value_arg_coerce to cast
2128 char to int args if necessary. (hppa_fix_call_dummy): Create
2129 this routine from FIX_CALL_DUMMY macro in tm-hppa.h.
2130 * inferior.h (PC_IN_CALL_DUMMY): Check for frame_address being
2131 valid (ie: != 0) before doing comparison against PC.
2132 * valops.c (call_function_by_hand): Adjust call to FIX_CALL_DUMMY
2133 to reflect new arguments.
2134 * config/pa/tm-hppa.h (POP_FRAME, PUSH_ARGUMENTS): Use new hppa_
2135 prefix for func name. (FIX_CALL_DUMMY): Move code into
2136 hppah-tdep.c.
2137
2138 * testsuite/gdb.t16/gdbme.c, testsuite/gdb.t17/gdbme.c: Add calls
2139 to malloc() so that we can test GDB eval of dynamically created
2140 arrays (like char strings in `print "foo"').
2141
7586127f
PS
2142Fri Apr 23 01:28:14 1993 Peter Schauer (pes@regent.e-technik.tu-muenchen.de)
2143
2144 * printcmd.c (print_address_symbolic): Search symtabs as well as the
2145 minimal symbols for a nearby symbol.
2146
158a0711
JG
2147Thu Apr 22 19:44:21 1993 John Gilmore (gnu@cacophony.cygnus.com)
2148
2149 * coffread.c: Comment changes around minimal symbol recording.
2150
3127785a
RP
2151Thu Apr 22 16:24:36 1993 K. Richard Pixley (rich@rtl.cygnus.com)
2152
158a0711 2153 * command.c: comment changes only.
f936e20d 2154
3127785a
RP
2155 * mips-tdep.c (heuristic_fence_post): new static variable.
2156 (heuristic_proc_start): use heuristic_fence_post, print better
2157 warnings, but only if not stop_soon_quietly.
2158 (_initialize_mips_tdep): add_set_cmd for heuristic-fence-post.
2159
5afa2040
JK
2160Thu Apr 22 14:50:05 1993 Jim Kingdon (kingdon@cygnus.com)
2161
2162 * symtab.h: Fix LOC_REF_ARG comment.
2163
2164Wed Apr 22 20:21:30 1993 Peter Schauer (pes@regent.e-technik.tu-muenchen.de)
2165 and Jim Kingdon (kingdon@cygnus.com)
2166
2167 * stabsread.c (define_symbol): Combine a 'p', 'r' arg pair to a
2168 LOC_REGPARM symbol.
2169 * config/sparc/tm-sparc.h (REG_STRUCT_HAS_ADDR): Revise comments.
2170 symfile.c (compare_symbols): Don't check first character; STRCMP
2171 does that.
2172
2173 * stabsread.c (define_symbol): Generate a LOC_REGPARM_ADDR for
2174 structures that are passed by address in a register.
2175 * symtab.h (enum address_class): Add LOC_REGPARM_ADDR.
2176 * findvar.c (read_var_value),
2177 printcmd.c (address_info, print_frame_args),
2178 stack.c (print_frame_arg_vars), symmisc.c (print_{,partial_}symbol),
2179 * symtab.c (lookup_block_symbol): Deal with it.
2180
fce30fa1
JK
2181Thu Apr 22 09:07:24 1993 Jim Kingdon (kingdon@cygnus.com)
2182
4365c36c
JK
2183 * objfiles.h (obj_section), objfiles.c (build_objfile_section_table):
2184 Add objfile field.
2185 * objfiles.c (find_pc_section): Return a struct obj_section *.
2186 * sparc-tdep.c (in_solib_trampoline): Deal with find_pc_section return.
2187 * symfile.c (syms_from_objfile) [IBM6000_TARGET]:
2188 Don't use obj_section hack.
2189 * xcoffexec (vmap_symtab): Relocate obj_sections.
2190 * printcmd.c (containing_function_bounds): Use find_pc_section.
2191
fce30fa1
JK
2192 * symtab.h: Clean up SYMBOL_VALUE comments.
2193
f2c365f5
JK
2194Wed Apr 21 14:29:57 1993 Jim Kingdon (kingdon@cygnus.com)
2195
31258e4f
JK
2196 * stack.c (print_frame_arg_vars), printcmd.c (print_frame_args):
2197 Expand comments about LOC_ARG/LOC_LOCAL pairs.
2198
f2c365f5
JK
2199 * coffread.c (read_coff_symtab): Use rewind before fseek.
2200
32d8a6d3
PB
2201Wed Apr 21 14:24:19 1993 Per Bothner (bothner@cygnus.com)
2202
2203 * ch-exp.y: Removed unused structure_primitive_value and FIXME_23.
2204 * Makefile.in: Add $(YFLAGS) when using $(YACC).
2205 * Makefile.in: Remove message to expect conflicts and unused
2206 rules in ch-exp.y, since there no longer are any such.
2207
1b5c6c05
DZ
2208Wed Apr 21 13:27:50 1993 david d `zoo' zuhn (zoo at cirdan.cygnus.com)
2209
2210 * stabs.texinfo: fixed bad xrefs (un-initialized statics)
2211
cee86be3
JK
2212Tue Apr 20 08:55:11 1993 Jim Kingdon (kingdon@cygnus.com)
2213
4cdcf3b9
JK
2214 * xcoffexec.c (xcoff_relocate_core): If no exec file, error()
2215 rather than dumping core.
2216
24c2857c 2217 * Makefile.in: Add ${srcdir}/ to all source files.
4cdcf3b9 2218 (alldeps.mak): Add "${srcdir}/" to files when generating alldeps.mak.
24c2857c
JK
2219 (TAGS): Deal with srcdir and new config directory scheme.
2220 createtags: Remove.
2221 Makefile.in (NONSRC): Remove createtags.
2222 alldeps.mak: Updated.
2223
cee86be3
JK
2224 * rs6000-tdep.c: Delete unused function print_frame.
2225
2226 * frame.h (struct frame_info): Doc fix for next_frame.
2227 New field signal_handler_caller.
2228 blockframe.c (create_new_frame, get_prev_frame_info),
2229 config/rs6000/tm-rs6000.h (INIT_EXTRA_FRAME_INFO): Set it (needs
2230 INIT_FRAME_PC_FIRST).
2231 stack.c (print_frame_info), rs6000-tdep.c (rs6000_frame_chain):
2232 Check it.
2233
9583b295
SG
2234Mon Apr 19 22:52:33 1993 Stu Grossman (grossman@cygnus.com)
2235
2236 * irix4-nat.c (fetch_core_registers): Special version of this for
2237 Irix 4.x, which stores regs a bit differently from other /proc
2238 based systems.
2239 * procfs.c, core-svr4.c: Move fetch_core_registers from procfs.c
2240 to new file core-svr4.c.
2241 * config/i386/i386sol2.mh, config/i386/i386v4.mh, config/m68k/amix.mh,
2242 config/i386/ncr3000.mh, config/sparc/sun4sol2.mh: Add core-svr4.o
2243 to NATDEPFILES.
2244 * config/mips/irix4.mh: Add corelow.o to NATDEPFILES.
2245
3f06498a
JK
2246Mon Apr 19 11:13:34 1993 Jim Kingdon (kingdon@cygnus.com)
2247
2248 * i387-tdep.c: Remove unused #includes.
2249
2250 * configure.in: Match i[34]86-*-sysv3.2 not i[34]86-*-sysv32.
2251
2252 * config/i386/nm-i386v.h: Define NO_PTRACE_H.
2253
058eb766
JK
2254Sun Apr 18 10:39:35 1993 Jim Kingdon (kingdon@cygnus.com)
2255
2256 * xcoffread.c: Nuke NO_DEFINE_SYMBOL code. There is no going back.
2257
2258 * stabsread.c (define_symbol): 'R' is synonym for 'P', not 'r'.
2259 xcoffread.c (process_xcoff_symbol, case C_RPSYM):
2260 Don't muck with SYMBOL_CLASS.
2261
04c6a64f
SG
2262Fri Apr 16 17:38:33 1993 Stu Grossman (grossman@cygnus.com)
2263
2264 * munch: Don't use head command. It doesn't exist everywhere.
2265
9c225659
FF
2266Fri Apr 16 15:07:57 1993 Fred Fish (fnf@cygnus.com)
2267
2268 * inflow.c (new_tty): Remove spurious 'o' character at end
2269 of #endif line.
2270
e157305c
PS
2271Fri Apr 16 12:27:11 1993 Peter Schauer (pes@regent.e-technik.tu-muenchen.de)
2272
2273 * mips-tdep.c (mips_skip_prologue): Always skip the typical prologue
2274 instructions and nothing more.
2275 * mipsread.c (add_line): Add comment why we have to combine line number
2276 entries for the same line number.
2277
0b28c260
JK
2278Fri Apr 16 09:42:03 1993 Jim Kingdon (kingdon@cygnus.com)
2279
2280 * symtab.{c,h}: Doc fixes (remove symseg references, last relevant
2281 in gdb 2.8!).
2282
dd052d9a
FF
2283Thu Apr 15 21:16:58 1993 Fred Fish (fnf@cygnus.com)
2284
2285 * depend, alldeps.mak: Update, now that gcc -MM bug is fixed.
2286
9fa59efd
JK
2287Thu Apr 15 12:38:39 1993 Jim Kingdon (kingdon@cygnus.com)
2288
2289 * source.c (select_source_symtab): Clean up comment. Also, if
2290 we have a current_source_symtab, and s is NULL, return without
2291 doing anything.
2292 xcoffread.c (xcoff_symfile_read): Don't call select_source_symtab.
2293 breakpoint.c (breakpoint_re_set): Don't call select_source_symtab.
2294
65ce5df4
JG
2295Thu Apr 15 02:37:48 1993 John Gilmore (gnu@cacophony.cygnus.com)
2296
2297 * dbxread.c (unknown_symchar_complaint): Add new complaint.
6f49b01e 2298 * stabsread.h: Declare it.
65ce5df4
JG
2299 * partial-stab.h: Use it.
2300
2301 * utils.c (malloc_botch): Don't forward-declare if NO_MMALLOC.
2302
486b440e
JK
2303Wed Apr 14 17:12:51 1993 Jim Kingdon (kingdon@cygnus.com)
2304
df2a1bd7
JK
2305 * stack.c (print_frame_info): Print specially if dummy frame.
2306
fa99ebe1
JK
2307 * breakpoint.c: Add comments regarding within_scope future direction.
2308
ee7e82fe
JK
2309 * Version 4.8.3.
2310
486b440e
JK
2311 * xcoffread.c (record_include_{begin,end}): Change fatal to complain.
2312
2313Wed Apr 14 14:03:18 1993 Per Bothner (bothner@cygnus.com)
2314
2315 * ch-exp.y: Fix thinko that broke parsing of FALSE.
2316
39cb3d04
PS
2317Wed Apr 14 12:49:29 1993 Peter Schauer (pes@regent.e-technik.tu-muenchen.de)
2318
2319 * stabsread.c (read_member_functions): Initialize domain for stubbed
2320 member functions to avoid gdb core dumps when printing pointers
2321 to member functions.
2322 * cp-valprint.c (cp_print_class_method): Check for stubbed member
2323 functions.
2324
ccd87bf2
JK
2325Tue Apr 13 08:28:26 1993 Jim Kingdon (kingdon@cygnus.com)
2326
e2ff731b
JK
2327 * expprint.c (print_subexp): If opcode not found in op_print_tab,
2328 stop with an error().
2329 eval.c (evaluate_subexp): Change error message.
2330
ccd87bf2
JK
2331 * objfiles.c (build_objfile_section_table): Cast return value
2332 from obstack_finish.
2333
0a62ff36
JK
2334Mon Apr 12 10:53:50 1993 Jim Kingdon (kingdon@cygnus.com)
2335
f3649227
JK
2336 * config/rs6000/tm-rs6000.h, rs6000-tdep.c: Move FRAME_CHAIN
2337 to rs6000_frame_chain and deal with it if we're in a signal handler.
2338 (FRAME_SAVED_PC): Use rs6000_frame_chain.
2339
0a819c04
JK
2340 * breakpoint.c (within_scope): New function.
2341 (enable_breakpoint, watchpoint_check): Use it.
2342
affc9686
JK
2343 * source.c (openp): Handle "exec-file ./ls" correctly.
2344
0a62ff36
JK
2345 * breakpoint.c (breakpoint_1): Use wrap_here before "at".
2346
5a7c9cce
PB
2347Sat Apr 10 01:32:43 1993 Per Bothner (bothner@rtl.cygnus.com)
2348
2349 * ch-exp.y: Clean up lexing of identifiers and
2350 reserved words. (E.g. don't recognize FALSEXXX as the
2351 keyword FALSE followed by the identifier XXX.)
2352 Also, convert identifiers to lower case.
2353
1724c671
SG
2354Fri Apr 9 15:53:19 1993 Stu Grossman (grossman@cygnus.com)
2355
2356 * remote-mips.c, remote-monitor.c, remote-st2000.c: Convert to
2357 new serial interface.
2358
4febd102
SG
2359Fri Apr 9 15:01:12 1993 Stu Grossman (grossman@cygnus.com)
2360
2361 * remote.c (remote_open): Use SERIAL_OPEN instead of serial_open.
2362 (putpkt, getpkt): Use new return codes for SERIAL_READCHAR.
2363 * ser-go32.c: Return -1 on most failures, 0 on most successes,
2364 and use new return codes for go32_readchar().
2365 * ser-unix.c: Ditto. Also, move error handling up to caller for
2366 SERIAL_SETBAUDRATE().
2367 * serial.c (serial_open): Internal call, not SERIAL_OPEN to get
2368 to specific routine.
2369 (serial_close): New routine to wrap around device close routine.
2370 serial.h: Clean & document return values more clearly.
2371
a80c7bf6
JK
2372Fri Apr 9 10:20:55 1993 Jim Kingdon (kingdon@cygnus.com)
2373
944c1c2f
JK
2374 * rs6000-pinsn.c (print_operand): Deal with no operand instructions.
2375
2376 * rs6000-pinsn.c (print_operand, case LI): Print condition register
2377 operand in decimal rather than wrong textual versions.
2378
21486670
JK
2379 * printcmd.c (_initialize_printcmd): Clean up docstring for "x"
2380 (mention 't', remove false thing about 'g' only good with 'f').
2381
ddc6e6f7
JK
2382 * breakpoint.h: move "struct breakpoint" and friends to top of
2383 file so that bpstat_find_breakpoint prototype works.
2384
a80c7bf6
JK
2385 * solib.c (struct so_list): Add bfd field.
2386 (solib_map_sections): Leave bfd open and scratch_pathname allocated.
2387 Put the bfd in bfd field of the so_list.
2388 (clear_solib): Free bfd name and close_bfd on the bfd.
2389
47f366bc
PB
2390Fri Apr 9 00:45:41 1993 Per Bothner (bothner@rtl.cygnus.com)
2391
2392 * valarith.c (value_subscript): Add COERCE_REF.
2393 * ch-exp.y (operand_5): We can generalize the 2nd operand
2394 of a string repetition ot 'literal' without ambiguity.
2395
cabd4da6
JK
2396Thu Apr 8 10:15:10 1993 Jim Kingdon (kingdon@lioth.cygnus.com)
2397
2398 * breakpoint.h (struct bpstat): Remove momentary field.
2399 Remove bpstat_momentary_breakpoint. This was always kludgy
2400 and is no longer used.
2401
2402 * breakpoint.h: Add enum bpstat_what.
2403 breakpoint.h (struct bpstat), breakpoint.c (bpstat_stop_status):
2404 stop and print fields of bpstat now per-breakpoint, not just
2405 one for the whole chain.
2406 breakpoint.{c,h} (bpstat_what): New function.
2407 breakpoint.h: Remove bpstat_stop and bpstat_should_print.
2408 infrun.c: Replace switch (stop_bpstat->breakpoint_at->type)
2409 with call to bpstat_what.
2410 README: Remove watchpoint/breakpoint bug from known bugs.
2411
2412 * breakpoint.h: Prototype bpstat_find_breakpoint.
2413
dfbfbd96
FF
2414Thu Apr 8 16:01:21 1993 Fred Fish (fnf@cygnus.com)
2415
2416 * symtab.c (find_methods, gdb_mangle_name): Note that functions
2417 are g++ specific.
2418 * symtab.h (VTBL_FNADDR_OFFSET, OPNAME_PREFIX_P, VTBL_PREFIX_P,
2419 DESTRUCTOR_PREFIX_P): Note that macros are g++ specific.
2420
2421Thu Apr 8 12:45:32 1993 Ian Lance Taylor (ian@cygnus.com)
2422
2423 * i960-pinsn.c (tabent): Copied struct definition from
2424 opcodes/i960-dis.c.
2425
ca6a826d
PS
2426Thu Apr 8 10:34:37 1993 Peter Schauer (pes@regent.e-technik.tu-muenchen.de)
2427
2428 * symtab.h (DESTRUCTOR_PREFIX_P): New macro to check if physname
2429 is a C++ destructor.
2430 * symtab.c (gdb_mangle_name): Use it.
2431 * symtab.c (find_methods): Do not add destructors to choice list
2432 for constructors.
2433 * symtab.c (decode_line_1): Make breakpoints on destructors work
2434 for gcc-2.x again.
2435
40b56283
SG
2436Wed Apr 7 18:43:09 1993 Stu Grossman (grossman@cygnus.com)
2437
b83bf6b3
SG
2438 * ser-go32.c: Make it use serial port name.
2439 * go32-xdep.c: Put in def for strlwr, needed by dir.o in go32 libc.
2440
40b56283
SG
2441 * infcmd.c (read_pc): Make sure that we read PC_REGNUM when not
2442 in a system call!
2443
41faa775
SG
2444Wed Apr 7 15:52:11 1993 Stu Grossman (grossman@cygnus.com)
2445
2446 * configure.in: Only configure sparclite subdir when target_cpu
2447 is sparclite.
2448
f635bd47
JK
2449Wed Apr 7 10:11:22 1993 Jim Kingdon (kingdon@cygnus.com)
2450
ef5b809c
JK
2451 * xcoffread.c (struct coff_symbol): Change c_sclass to unsigned char.
2452 Remove FIXME comment regarding this.
2453
47045b36
JK
2454 * symfile.h: Change NULL->'\0' in comment (that wasn't a typo).
2455
f635bd47
JK
2456 * xcoffread.c (read_xcoff_symtab): Use E_SYMNMLEN.
2457
73d0fc78
RP
2458Tue Apr 6 22:30:58 1993 K. Richard Pixley (rich@cygnus.com)
2459
2460 Add section table to objfile struct. Use it for find_pc_section.
2461 * objfiles.c (add_to_objfile_sections,
2462 build_objfile_section_table, find_pc_section): new functions.
2463 (allocate_objfile): build section table.
2464 * objfiles.h (struct obj_section): new structure.
2465 (struct objfile): add section table.
2466 (find_pc_section): new prototype.
2467 * solib.[ch] (find_pc_section_from_so_list): removed.
2468 * sparc-tdep.c: include objfiles.h for find_pc_section. include
2469 symfile.h for objfiles.h.
2470 (in_solib_trampoline): adjusted for new find_pc_section
2471 prototype. Removed BAD_RICH_HACK ifdefs.
2472 * symfile.c (syms_from_objfile): offset objfile sections.
2473 (find_pc_section): removed. Also removed BAD_RICH_HACK ifdefs.
2474 * symfile.h (find_pc_section): prototype removed. Also fixed
2475 comment typo NUL -> NULL.
2476 * target.[ch] (find_pc_section_from_targets): removed.
2477 * config/sparc/tm-sun4sol2.h (BAD_RICHH_HACK): removed.
2478
07861607
SG
2479Tue Apr 6 21:41:13 1993 Stu Grossman (grossman@cygnus.com)
2480
2481 * ser-go32.c: Format. (go32_open): Use proper return value.
2482
2483 * configure.in: Undo conditional configdirs hack for sparclite.
2484
118ec55a
JW
2485Tue Apr 6 17:07:37 1993 Jim Wilson (wilson@sphagnum.cygnus.com)
2486
2487 * symtab.c (list_symbols): When call break_command, pass both
2488 filename and function name not just function name.
2489
2490Tue Apr 6 15:00:09 1993 Fred Fish (fnf@cygnus.com)
2491
2492 (Changes and new files to make "none" a full fledged configuration)
2493 * config/none/{nm-none.h, tm-none.h, xm-none.h}: New files.
2494 Currently only tm-none.h has any meaningful contents.
2495 * config/none/none.mh (NAT_FILE): Use nm-none.h
2496 * config/none/none.mh (XM_FILE): Use xm-none.h
2497 * config/none/none.mt (TM_FILE): Use tm-none.h
2498 * Makefile.in (depend): Remove comment about parse errors in
2499 valops.c, it now parses correctly and generates a correct depend
2500 line. Remove line that touches xm.h, tm.h, and nm.h; they are
2501 now linked to config/none/{xm-none.h, tm-none.h, nm-none.h}.
2502
786757a9
JK
2503Tue Apr 6 09:54:29 1993 Jim Kingdon (kingdon@cygnus.com)
2504
9925b928
JK
2505 * values.c (USE_STRUCT_RETURN): Only use gcc wierdness for gcc1.
2506
786757a9
JK
2507 * xcoffread.c (read_xcoff_symtab): Deal correctly with symbols of
2508 exactly 8 characters.
2509
0c101d49
SG
2510Tue Apr 6 10:31:26 1993 Stu Grossman (grossman@cygnus.com)
2511
2512 * configure.in: Sparclite uses sparc config dir. Also has it's
2513 own tm- & .mt files now. Also add sparclite to configdirs.
2514 * go32-xdep.c: Dummy routines for sigsetmask & strlwr.
2515 * config/i386/go32.mh: Nullify def of TERMCAP.
2516 * config/i386/xm-go32.h: Get rid of redef of EIO.
2517 * config/sparc/{sparclite.mh tm-sparclite.h}: New sparclite
2518 specific configs. Very similar to sun4os4, but without solib.
2519 * sparclite/{Makefile.in configure.in}: First cut at making this
2520 dir configgable.
2521
5d2b030a
SG
2522Tue Apr 6 03:10:44 1993 Stu Grossman (grossman@cygnus.com)
2523
2524 * ser-go32.c: First cut at adapting to new serial interface.
2525
4e772f44
SG
2526Mon Apr 5 22:29:43 1993 Stu Grossman (grossman@cygnus.com)
2527
2528 * Makefile.in (SFILES OBS): Add serial.[co] & ser-hardwire.[co].
2529 These implement a new serial line interface for talking to remote
2530 targets.
2531 * configure.in: Link ser-hardwire.c to ser-unix.c for all hosts,
2532 EXCEPT go32, which gets ser-go32.c.
2533 * remote.c: Use new serial interface. More remote-xxx's to be
2534 converted later.
2535 * ser-bsd.c, ser-termios.c: Removed.
2536 * serial.c: New. Implements common operations for all serial
2537 types.
2538 * ser-unix.c: New. Unix specific serial operations for various
2539 flavors of Unix (Posix, SysV, BSD).
2540 * serial.h: Generic serial interface defs.
2541 * config/i386/go32.mh, config/i386/i386bsd.h,
2542 config/m68k/apollo68b.mh, config/sparc/sun4os4.mh: Remove
2543 ser-bsd.o from XDEPFILES. All the magic is now handled in
2544 configure.in.
2545
9acdb2dc
SG
2546Mon Apr 5 20:48:54 1993 Stu Grossman (grossman@cygnus.com)
2547
2548 * config/h8500/tm-h8500.h: Clean up brain damage found by GCC.
2549
0848ad1c
JK
2550Fri Apr 2 08:23:14 1993 Jim Kingdon (kingdon@cygnus.com)
2551
1d7e34e1
JK
2552 * xcoffread.c (xcoff_symfile_offsets): Use 0 not addr for offsets.
2553
b0e932ad 2554 * rs6000-tdep.c (frameless_function_invocation): Don't even think
1d7e34e1 2555 about framelessness except on the innermost frame.
b0e932ad 2556
0848ad1c
JK
2557 * xcoffexec.c: Call fatal() not abort().
2558
2559 * stabsread.c (patch_block_stabs): If stab & no symbol, make
2560 a LOC_OPTIMIZED_OUT symbol.
2561 symtab.h (enum address_class): Add LOC_OPTIMIZED_OUT.
2562 findvar.c (read_var_value), printcmd.c (address_info),
2563 symmisc.c (print_{,partial_}symbol), c-exp.y (variable),
2564 m2-exp.y (yylex): Deal with it.
0848ad1c 2565 ch-exp.y (yylex): Deal with it.
0848ad1c
JK
2566
2567Thu Apr 1 18:43:02 1993 Stu Grossman (grossman@cygnus.com)
2568
2569 * findvar.c (value_from_register): H8500 specific, check to see
2570 if we are looking at short pointer. If so, skip crock.
2571 * h8500-tdep.c (h8500_frame_chain): Mask down value from
2572 read_memory_integer() to avoid getting messed up by sign extension.
2573
0e184833
RP
2574Thu Apr 1 16:44:41 1993 K. Richard Pixley (rich@rtl.cygnus.com)
2575
2576 * sparc-tdep.c (in_solib_trampoline), symfile.c (find_pc_section):
2577 ifdef protect using BAD_RICH_HACK. This should be removed soon.
2578 * config/sparc/tm-sun4sol2.h (BAD_RICH_HACK): define.
2579
a6cead71
JK
2580Thu Apr 1 09:01:38 1993 Jim Kingdon (kingdon@cygnus.com)
2581
720b3aed
JK
2582 * i960-pinsn.c, a29k-pinsn.c: Much abridged, just use libopcodes.a.
2583
2584 * core.c (dis_asm_print_address): New function.
2585
a6cead71
JK
2586 * core.c (dis_asm_read_memory): Reinstate 4th arg. The prototype
2587 has been fixed.
2588
494503c7
PS
2589Thu Apr 1 09:34:43 1993 Peter Schauer (pes@regent.e-technik.tu-muenchen.de)
2590
2591 * breakpoint.c (bpstat_print, bpstat_stop_status): Change to walk the
2592 entire breakpoint chain and print only the first entry that needs to
2593 be printed and needs to be stopped for. Fixes problems with printing
2594 of multiple breakpoints with different conditions.
2595 * breakpoint.c (print_it_done): Renamed from print_it_noop as it
2596 effectively stops printing of the breakpoint chain.
2597 * breakpoint.c (print_it_noop): New routine to print nothing
2598 for this breakpoint entry and dont stop printing.
2599 * breakpoint.c (breakpoint_re_set_one): mention the reevaluated
2600 watchpoint only if it is enabled.
2601 * mipsread.c (parse_procedure): Correct incorrect setjmp procedure
2602 descriptor from the library to make backtraces through setjmp work.
2603 * mipsread.c (fixup_sigtramp): Correct pcreg and fregoffset for
2604 sigtramp.
2605 * mips-tdep.c (read_next_frame_reg): Provide correct values for
2606 all registers saved within sigtramp, cleanup.
2607
f7ed13c7
JK
2608Wed Mar 31 12:52:12 1993 Jim Kingdon (kingdon@lioth.cygnus.com)
2609
2610 * sparc-pinsn.c: Much abridged, just calls version in libopcodes.a.
2611
bf097a0b
RP
2612Wed Mar 31 21:23:41 1993 K. Richard Pixley (rich@rtl.cygnus.com)
2613
2614 * core.c (dis_asm_read_memory): drop fourth arg which conflicts
2615 with prototype in ../include/dis-asm.h.
2616
5d0734a7
JK
2617Wed Mar 31 12:52:12 1993 Jim Kingdon (kingdon@lioth.cygnus.com)
2618
2619 * core.c (dis_asm_{read_memory,memory_error}): New functions.
2620 m68k-pinsn.c, h8500-tdep.c, i386-pinsn.c, mips-pinsn.c, z8k-tdep.c:
2621 Use read_memory_func interface to disassembler.
2622
2093fe68
RP
2623Tue Mar 30 15:46:14 1993 K. Richard Pixley (rich@rtl.cygnus.com)
2624
2625 Teach sparc solaris to next over shared library functions.
2626 * solib.[hc] (find_pc_section_from_so_list): new function and
2627 prototype.
2628 * sparc-tdep.c (in_solib_trampoline): new function.
2629 * symfile.[hc] (find_pc_section): new function and prototypes.
2630 * target.[hc] (find_pc_section_from_targets): new function and
2631 prototypes.
2632 * config/sparc/tm-sun4sol2.h (IN_SOLIB_TRAMPOLINE): redefine to
2633 in_solib_trampoline.
2634
b27be792
JK
2635Tue Mar 30 08:06:24 1993 Jim Kingdon (kingdon@cygnus.com)
2636
deae7611
JK
2637 * infrun.c (wait_for_inferior): Revise comment.
2638
359a097f
JK
2639 * command.c (do_setshow_command): Use %u with var_{u,z}integer.
2640
2641 * command.{c,h}: New var_type var_integer.
2642 main.c: Use it for history_size.
2643
2644 * rs6000-tdep.c, xcoffexec.c, config/rs6000/xm-rs6000.h, breakpoint.c:
2645 Lint and byte-order fixups.
2646
3f031adf
JK
2647 * breakpoint.c (print_it_normal): Return 0 after hitting watchpoint.
2648
8af68e4e
JK
2649 * breakpoint.h (bpstat): New field print_it.
2650 breakpoint.c (bpstat_print): Use it.
2651 (print_it_normal): New function (from old bpstat_print code).
2652 (bpstat_{alloc,stop_status}): Set print_it field.
2653
2654 * breakpoint.c (bpstat_stop_status): Use catch_errors when
2655 evaluating watchpoint condition, via new function watchpoint_check.
2656 Also stop if watchpoint disabled due to leaving its block.
2657
b27be792
JK
2658 * findvar.c [REG_STRUCT_HAS_ADDR]: Add comment.
2659
aa66fddd
PS
2660Tue Mar 30 00:14:38 1993 Peter Schauer (pes@regent.e-technik.tu-muenchen.de)
2661
2662 * mips-pinsn.c: Add missing include of dis-asm.h.
2663
d7d35f00
FF
2664Mon Mar 29 15:03:25 1993 Fred Fish (fnf@cygnus.com)
2665
239121e2
FF
2666 * Makefile.in (clean, distclean, realclean): Recursively apply
2667 to subdirs first, rather than last. This avoids, for example,
2668 Makefile being removed in a parent directory before the recursive
2669 make is run.
2670
141ccc03
FF
2671 * alldeps.mak, depend: Update for below changes.
2672
2225eb85
FF
2673 * config/m68k/tm-m68k.h: Renamed from config/m68k/tm-68k.h.
2674 * m68k/{tm-3b1.h, tm-altos.h, tm-amix.h, tm-es1800.h,
2675 tm-hp300bsd.h, tm-hp300hpux.h, tm-isi.h, tm-news.h, tm-os68k.h,
2676 tm-st2000.h, tm-sun2.h, tm-sun3.h, tm-vx68.h}: Include tm-m68k.h
2677 instead of tm-68k.h.
2678 * Makefile.in (HFILES): tm-68k.h renamed to tm-m68k.h.
2679 * README, a29k-pinsn.c, m68k-pinsn.c, m68k-stub.c, remote-vx.c,
2680 m68k/{altos.mh, altos.mt, apollo68b.mh, nm-apollo68b.h,
2681 nm-hp300bsd.h, config/m68k/xm-apollo68b.h}: Map '68k' to 'm68k'.
2682 * a29k/tm-a29k.h, doc/gdbint.texinfo: Account for renaming of
2683 tm-68k.h to tm-m68k.h.
2684 * m68k/m68k-fp.mt (TM_FILE): tm-68k-fp.h renamed to tm-m68k-fp.h.
2685 * m68k/m68k-nofp.mt (TM_FILE): tm-68k-nofp.h renamed to
2686 tm-m68k-nofp.h.
2687
d7d35f00
FF
2688 * config/a29k/tm-a29k.h: Renamed from config/a29k/tm-29k.h.
2689 * a29k-pinsn.c: Renamed from am29k-pinsn.c.
2690 * a29k-tdep.c: Renamed from am29k-tdep.c.
2691 * remote-eb.c, config/a29k/tm-ultra3.h: Include renamed tm-a29k.h.
2692 * remote-monitor.c, remote-st2000.c, config/a29k/{nm-ultra3.h,
2693 tm-a29k.h, xm-ultra3.h}, config/romp/rtbsd.mh, doc/gdbinv-s.texi,
2694 testsuite/gdb.t15/funcargs.exp, testsuite/gdb.t17/callfuncs.exp:
2695 Map '29k' to 'a29k'.
2696 * config/a29k/{a29k-kern.mt, a29k-udi.mt, a29k.mt, ultra3.mt}
2697 (TDEPFILES): Use renamed a29k-pinsn.o and a29k-tdep.o.
2698 * config/a29k/{a29k-udi.mt, a29k.mt} (TM_FILE): Use renamed
2699 tm-a29k.h.
2700 * config/a29k/a29k-udi.mt (MT_CFLAGS): Remove TARGET_AM29K
2701 define that does not appear anywhere else in the gdb source tree.
2702 * doc/gdbinit.texinfo: Document renaming of tm-29k.h to tm-a29k.h.
2703
ad376893
JK
2704Mon Mar 29 13:55:29 1993 Jim Kingdon (kingdon@cygnus.com)
2705
2225eb85
FF
2706 * breakpoint.c: Add comments regarding breakpoint_re_set.
2707
e5c00760
JK
2708 * xcoffread.c (sort_syms, compare_symbols): Remove.
2709 (xcoff_symfile_read): Use sort_all_symtab_syms from symfile.c
2710 not our own sort_syms (it is identical).
2711
ad376893
JK
2712 * xcoffread.c: Nuke NAMES_HAVE_DOT define (not used).
2713
0b0d6c3f
PS
2714Sun Mar 28 11:24:37 1993 Peter Schauer (pes@regent.e-technik.tu-muenchen.de)
2715
2716 * breakpoint.c (breakpoint_re_set_one): Fix storage leak.
2717 * breakpoint.c (enable_breakpoint): Don't enable watchpoint if it
2718 went out of scope.
2719 * exec.c (exec_close): Fix storage leak.
2720 * exec.c (exec_file_command): Make sure that bfd doesn't realign the
2721 output sections when patching an executable.
2722 * mips-nat.c (store_inferior_registers): Use REGISTER_PTRACE_ADDR
2723 when writing all registers.
2724 * mips-tdep.c (mips_push_dummy_frame): Save floating point registers
2725 at the right offset in the dummy frame.
2726 * mipsread.c (psymtab_to_symtab_1): Do not complain for stProc,
2727 stStaticProc and stEnd symbols as they are generated by gcc-2.x.
2728 * mipsread.c (mipscoff_new_init): Initialize stabsread and buildsym.
2729
0f0834c5
JG
2730Fri Mar 26 15:25:05 1993 John Gilmore (gnu@cygnus.com)
2731
2732 * Makefile.in (TARFILES): Avoid trailing backslash.
2733
2d313932
JK
2734Fri Mar 26 11:29:30 1993 Jim Kingdon (kingdon@cygnus.com)
2735
d7d35f00
FF
2736 * breakpoint.{c,h}: Add exp_string to struct breakpoint and use
2737 it in breakpoint_re_set.
2d313932
JK
2738 * breakpoint.c (watch_command, enable_breakpoint): Fetch lazy values.
2739
2740 * rs6000-tdep.c (single_step): Misc cleanups (CORE_ADDR not int,
2741 don't use sizeof(int) for target stuff, etc).
2742
53f6119f 2743Thu Mar 25 15:03:53 1993 Fred Fish (fnf@cygnus.com)
3c02636b 2744
53f6119f
FF
2745 * alldeps.mak, configure.in, i860-break.h, i860-opcode.h,
2746 i860-pinsn.c, i860-tdep.c, config/i860/*: Remove incomplete i860
2747 support that can't be integrated anyway due to lack of clear
2748 authorship.
3c02636b 2749
ccf1e898
SG
2750Thu Mar 25 12:26:50 1993 Stu Grossman (grossman@cygnus.com)
2751
2752 * findvar.c (read_register, write_register): Make these capable
2753 of reading/writing registers that are shorter than REGISTER_TYPE.
2754 * (value_from_register): Install H8500 specific code to return
2755 proper value when register is being used as a pointer.
2756 * h8500-tdep.c: Remove extra defines of NUM_REGS.
2757 (h8500_skip_prologue): Use correct lengths for LINK instructions.
2758 (FRAME_CHAIN): Change name to h8500_frame_chain. Rewrite code to
2759 chain frames properly by combining frame pointer with T reg.
2760 (init_extra_frame_info): Delete. It's now a macro.
2761 (frame_args_address): Don't add PTR_SIZE. Stack args are already
2762 offset by the correct amount off of the frame pointer.
2763 (register_byte): Delete. It's now a macro.
2764 (register_raw_size, register_virtual_size): Delete. Replaced by
2765 common routine h8500_register_size, cuz there's no difference
2766 between the raw & virtual sizes on this machine.
2767 (register_convert_to_raw, register_convert_to_virtual): Delete,
2768 cuz there's no difference between the raw & virtual forms.
2769 Replaced by memcpy in tm file.
2770 (register_virtual_type): Rename to h8500_register_virtual_type.
2771 Get rid of pointer pseudo-regs, use _REGNUM with all reg names.
2772 (_initialize_h8500_tdep): Get rid of crock to ensure that GDB &
2773 emulator have same reg offsets. This is all handled in the
2774 simulator code now.
2775 (h8500_trapped_internalvar): New routine to detect references to
2776 convenience vars acting as pointer pseudo-regs.
2777 (h8500_value_trapped_internalvar): Conjure up value of pointer
2778 pseudo-regs.
2779 (h8500_set_trapped_internalvar): Convert set value in real
2780 register references.
2781 infcmd.c (read_pc, write_pc): Add h8500 specific code to handle
2782 code segment register.
2783 infrun.c (proceed): Simplify. Call write_pc instead of doing it
2784 by hand.
2785 (wait_for_inferior): Add h8500 specific code to add stack segment
2786 when reading SP register.
2787 remote-sim.c (fetch_register): Spacing.
2788 tm-h8500.h: #define GDB_TARGET_IS_H8500 to make it easier to
2789 detect cruft. Redo all register manipulation stuff. Get rid of
2790 pointer pseudo-regs. (INIT_EXTRA_FRAME_INFO): Adds stack segment
2791 to frame pointer. (IS_TRAPPED_INTERNALVAL,
2792 VALUE_OF_TRAPPED_INTERNALVAR, SET_TRAPPED_INTERNALVAR): Use these
2793 to create internal vars for pointer pseudo-regs.
2794
2531303c
FF
2795Thu Mar 25 10:10:28 1993 Fred Fish (fnf@cygnus.com)
2796
2797 * Makefile.in: Numerous small changes to macro definitions
2798 and rules for building gdb distribution tree. Many macros
2799 eliminated or merged, and rules simplified.
2800 * alldeps.mak: Update.
2801 * depend: Update.
2802
b396a969
DZ
2803Wed Mar 24 13:52:29 1993 david d `zoo' zuhn (zoo at poseidon.cygnus.com)
2804
2805 * Makefile.in: recurse through SUBDIRS for dvi target too
2806
53f6119f
FF
2807Wed Mar 24 08:48:30 1993 Jim Kingdon (kingdon@cygnus.com)
2808
2809 * Clean up xcoff relocation.
2810 objfiles.h (struct objfiles): Add section_offsets, num_sections.
2811 symfile.c (syms_from_objfile), xcoffread.c (xcoff_symfile_offsets):
2812 Set them.
2813 symtab.h (struct general_symbol_info): Add section field.
2814 minsyms.c (prim_record_minimal_symbol{,_and_info}): Set it.
2815 xcoffread.c: Set section for symbols and msymbols.
2816 (struct symtab): Add block_line_section field.
2817 buildsym.c (end_symtab): Set it.
2818 (end_symtab and callers): Add section parameter.
2819 objfiles.c (objfile_relocate): New funciton.
2820 xcoffexec.c (vmap_symtab): Use it.
2821 xcoffsolib.h (struct vmap): Remove unused fields.
2822 config/rs6000/tm-rs6000.h, stack.c, xcoffexec.c: Remove
2823 CORE_NEEDS_RELOCATION, symtab_relocated.
2824 config/rs6000/tm-rs6000.h: Remove use of loadinfotext.
2825 rs6000-tdep.c: Make loadinfotext static.
2826 breakpoint.c (fixup_breakpoints): Doc fix.
2827 symtab.h (struct symtab), config/rs6000/tm-rs6000.h, buildsym.c
2828 (end_symtab): primary field replaces nonreloc.
2829
ece2e98a
JG
2830Tue Mar 23 00:10:53 1993 John Gilmore (gnu@cygnus.com)
2831
2832 * symtab.h (struct linetable_entry): Remove confusing comment.
2833
80c8fd72
DZ
2834Tue Mar 23 00:01:23 1993 david d `zoo' zuhn (zoo at cirdan.cygnus.com)
2835
2836 * Makefile.in: add installcheck target
2837
1a0edbc7
FF
2838Mon Mar 22 16:17:58 1993 Fred Fish (fnf@cygnus.com)
2839
2840 * config/{a29k, arm, convex, gould, h8300, i386, i860, i960, m68k,
2841 m88k, mips, none, ns32k, pa, pyr, romp, rs6000, sparc, tahoe, vax,
2842 z8k}: New directories to hold cpu specific configuration files.
2843 Naming follows gcc convention.
2844 * config/{*.mt, *.mh}: All target and host makefile fragment
2845 config files moved to an appropriate config/<cpu> subdirectory.
2846 * nm-*, xm-*, tm-*: All native, host, and target files, which
2847 get linked to nm.h, xm.h, and tm.h respectively by configure,
2848 moved to appropriate config/<cpu> subdirectory.
2849 * nm-sysv4.h, xm-sysv4.h, tm-sysv4.h, tm-sunos.h, nm-trash.h:
2850 Native, host, and target files that are common across more than
2851 one cpu architecture and included by one of the configured
2852 native, host, or target files, get moved to config directory.
2853 * Makefile.in (INCLUDE_CFLAGS): Add -I${srcdir}/config to
2854 pick up native, host, or target include files moved to one of
2855 the config subdirectories, and that are included by other files.
2856 * Makefile.in (alldeps.mak): Modify to account for new config
2857 directory structure.
2858 * alldeps.mak, depend: Update for new config directory structure.
2859 * config/*/[ntx]m-*.h: Modify all files that include other
2860 [ntx]m-*.h files to use path relative to gdb/config. I.E.
2861 "a29k/tm-ultra3.h" includes "a29k/tm-29k.h" rather than just
2862 "tm-29k.h".
2863 * remote-eb.c (tm-29k.h): Include a29k/tm-29k.h.
2864 * mipsread.c (tm-mips.h): Include mips/tm-mips.h.
2865 * i860-pinsn.c (tm-i860.h): Include i860/tm-i860.h.
2866 * configure.in: Default gdb_host_cpu to host_cpu, and remap
2867 the ones where the default is not unique or different than the
2868 config subdirectory name. Similarly, handle gdb_target_cpu.
2869 Modify configure.in as appropriate to make use of gdb_host_cpu
2870 and gdb_target_cpu to find makefile fragments and make links.
2871
5f5341a7
ILT
2872Mon Mar 22 12:36:24 1993 Ian Lance Taylor (ian@cygnus.com)
2873
2874 * mipsread.c (compare_blocks): Sort blocks with the same start
2875 address by decreasing ending address.
2876
1a3579df
PS
2877Mon Mar 22 20:36:04 1993 Peter Schauer (pes@regent.e-technik.tu-muenchen.de)
2878
2879 * mipsread.c (parse_procedure): Save cur_fdr accross call to
2880 lookup_symbol as it might get clobbered by the call.
2881
2882 * mipsread.c (parse_partial_symbols): Use ADD_PSYMBOL_ADDR_TO_LIST.
2883 The previous code did not initialize the language field for the psymtab
2884 entry.
2885
f24c159f
JG
2886Sat Mar 20 00:33:39 1993 John Gilmore (gnu@cygnus.com)
2887
2888 * c-exp.y (parse_number): Avoid shift warning.
2889 * serial.h (struct ttystate): Declare empty one on DOS.
2890
bc0d4cb9
SG
2891Fri Mar 19 12:59:50 1993 Stu Grossman (grossman@cygnus.com)
2892
733a9015
SG
2893 * xm-sun4os4.h: Return type of free() should be void, not int.
2894
bc0d4cb9
SG
2895 * vx-share/vxWorks.h: Remove #def of NULL.
2896
deb3f296
JK
2897Fri Mar 19 11:28:18 1993 Jim Kingdon (kingdon@cygnus.com)
2898
2899 * tm-rs6000.h: Nuke no-op STAB_REG_TO_REGNUM.
2900
52f8e6a0
SC
2901Fri Mar 19 07:40:09 1993 Steve Chamberlain (sac@cygnus.com)
2902
2903 * z8k-tdep.c (print_insn): Include the new dis-asm header file.
2904
00cea52f
PB
2905Thu Mar 18 14:26:57 1993 Per Bothner (bothner@rtl.cygnus.com)
2906
2907 * ieee-float.c: Moved to ../libiberty.
2908 * ieee-float.h: Moved to ../include.
2909 * Makefile.in: Update accordingly.
2910 * i386-pinsn.c (print_insn), m68k-pinsn.c (print_insn):
2911 Convert to stubs that call disassemblers in ../opcodes/*-dis.c.
2912 * m68k-tdep.c: Removed definition of ext_format ext_format_68881;
2913 it is now in ../opcodes/m68881-ext.c.
2914 * mips-tdep.c (mips_skip_prologue): Try to skip more of the
2915 prologue (some callers _do_ care).
2916 * mips-pinsn.c (print_insn), z8k-tdep.c (print_insn): Convert to
2917 new interface of ../opcodes/*-dis.c.
2918 * ch-exp.y: Add #include <ctype.h>.
2919
b60b2e3e
JK
2920Thu Mar 18 11:57:49 1993 Jim Kingdon (kingdon@cygnus.com)
2921
c161de74
JK
2922 * xcoffexec.c (exec_close): Don't close exec_bfd twice.
2923
b60b2e3e
JK
2924 * xcoffread.c (enter_line_range): endaddr is exclusive, not inclusive.
2925
ecfd2b60
JK
2926Wed Mar 17 09:46:31 1993 Jim Kingdon (kingdon@cygnus.com)
2927
2928 * xcoffread.c (arrange_linetable): Use x{m,re}alloc not {m,re}alloc.
2929
2d8d693a
SC
2930Wed Mar 17 11:28:11 1993 Steve Chamberlain (sac@thepub.cygnus.com)
2931
2932 * z8k-tdep.c (extract_return_value, write_return_value,
2933 store_struct_return): New functions from macros in tm-z8k.h.
2934
898e13c8
FF
2935Wed Mar 17 11:23:06 1993 Fred Fish (fnf@cygnus.com)
2936
2937 * valops.c (value_arg_coerce): Apply temporary patch to
2938 fix problem with coercion of array and function types when
2939 passed as arguments to C functions, pending a more complete
2940 review of when and how coercion should be done, depending
2941 upon context and language.
2942
9d61147e
JK
2943Wed Mar 17 09:46:31 1993 Jim Kingdon (kingdon@cygnus.com)
2944
3e57da38
JK
2945 * xcoffread.c (MIN_TBTABSIZ): Change to 12.
2946
9d61147e
JK
2947 * xcoffread.c (xcoff_symfile_read): Only read stringtab and
2948 debugsec if there are a non-zero number of symbols.
2949
3021c40d
JG
2950Tue Mar 16 18:08:45 1993 John Gilmore (gnu@cygnus.com)
2951
2952 * command.c (show_user): Avoid fprintf_filtered botch (AGAIN!).
2953
8112a711
JK
2954Tue Mar 16 15:18:17 1993 Jim Kingdon (kingdon@cygnus.com)
2955
2956 * xcoffexec.c (add_vmap): Wrap symbol read in catch_errors.
2957
2958 * xcoffread.c (read_symbol_lineno): Look to end of symbols for .bf,
2959 not just 50 symbols.
2960 (symtbl_num_syms): New variable.
2961 (read_xcoff_symtab): Set it.
2962 (read_symbol_nvalue): Check for bad symno.
2963 (read_symbol_{lineno,nvalue}, callers): Don't pass symtable; it's
2964 always symtbl.
2965
e829d983
SG
2966Tue Mar 16 10:09:05 1993 Stu Grossman (grossman@cygnus.com)
2967
2968 * config/rs6000.mh: Get rid of -Dfd_set=int crock.
2969 This is defined in defs.h if necessary.
2970 * vx-share/vxWorks.h: Remove #defs of min and max.
2971 * vx-share/xdr_ld.c, vx-share/xdr_ptrace.c,
2972 vx-share/xdr_rdb.c: include defs.h.
2973
c8ade719
JK
2974Fri Mar 12 09:33:23 1993 Jim Kingdon (kingdon@cygnus.com)
2975
2976 * xcoffread.c (retrieve_tracebackinfo): Move assignment out
2977 of while condition.
2978
2979 * xcoffread.c (enter_line_range): complain() on bad endoffset.
2980 xcoffread.c: Doc fixes.
2981
2982Tue Mar 9 09:56:12 1993 Jim Kingdon (kingdon@cygnus.com)
2983
2984 * tm-rs6000.h (CORE_NEEDS_RELOCATION): Just call xcoff_relocate_core.
2985 xcoffexec.c (xcoff_relocate_core): New function.
2986 (text_adjustment): Removed.
2987 (add_vmap): Return the vmap.
2988 rs6000-tdep.c (add_text_to_loadinfo): No longer static.
2989
2990Fri Mar 5 05:22:46 1993 Jim Kingdon (kingdon@cygnus.com)
2991
2992 * xcoffsolib.h: Add objfile member to struct vmap.
2993 xcoff{exec,solib}.c: Use it, not lookup_objfile_bfd.
2994 xcoffexec.c (add_vmap): Allocate objfiles here.
2995
48a522d9
JG
2996Sun Mar 14 02:54:15 1993 John Gilmore (gnu@cygnus.com)
2997
01deac12
JG
2998 Support 68000 series without floating point.
2999
3000 * configure.in (m68000-*-{aout,elf,coff}): New configs.
48a522d9
JG
3001 * tm-68k-nofp.h: New file, lacks 68881 support.
3002 * config/m68k-nofp.mt: New file.
3003
84a05e52
JG
3004Sun Mar 14 02:30:08 1993 John Gilmore (gnu@cygnus.com)
3005
3006 Remove a few remaining underscore/no-underscore remnants from
3007 config files.
3008
3009 * config/{m68k-un.mt, sparc-un.mt}: Remove.
3010 * config/m68k-noun.mt: Rename to m68k-fp.mt.
3011 * config/sparc-noun.mt: Rename to sparc-em.mt.
3012 * tm-68k-noun.h, tm-spc-noun.h: Remove.
3013 * tm-68k-un.h: Rename to tm-68k-fp.h.
3014 * tm-spc-un.h: Rename to tm-spc-em.h.
3015 * tm-sun4sol2.h: Cleanup.
3016 * configure.in (m68k-*, sparc-* targets): Corresponding changes.
3017
961ee88e
JG
3018Sat Mar 13 14:58:22 1993 John Gilmore (gnu@cygnus.com)
3019
3020 * symmisc.c (std_in, std_out, std_err): Move initializations
3021 to runtime code, in case they aren't constant.
3022
a8172eea
RP
3023Fri Mar 12 16:23:54 1993 K. Richard Pixley (rich@cygnus.com)
3024
aa8f3210
RP
3025 * symtab.c (find_pc_symtab): some object file formats, notably
3026 mips, have holes in the address ranges of symtabs. Change
0a4a0f09 3027 this algorithm from first hit to tightest fit.
aa8f3210 3028
a8172eea
RP
3029 * mips-tdep.c (heuristic_proc_start): if we walk the pc into the
3030 fence post without finding the enclosing function, then print a
3031 warning.
3032
bd5d07d9
FF
3033Thu Mar 11 09:33:01 1993 Fred Fish (fnf@cygnus.com)
3034
5e81259d
FF
3035 * utils.c (fputs_demangled, fprint_symbol): Remove.
3036 * utils.c (fprintf_symbol_filtered): New function which combines
3037 the functionality of fputs_demangled and fprint_symbol. Uses a
3038 caller provided language parameter to select the appropriate
3039 demangler, and caller provided args to pass to the demangler.
bd5d07d9
FF
3040 * defs.h (enum language): Move further up in file so enum can
3041 be used in prototypes.
5e81259d
FF
3042 * defs.h (fputs_demangled, fprint_symbol): Remove prototypes.
3043 * defs.h (fprintf_symbol_filtered): Add prototype.
3044 * c-typeprint.c (cp_type_print_method_args): Replace calls to
3045 fputs_demangled with call to fprintf_symbol_filtered.
3046 * cp-valprint.c (demangle.h): Include
3047 * cp-valprint.c (cp_print_value_fields): Replace calls to
3048 fprint_symbol with calls to fprintf_symbol_filtered.
3049 * printcmd.c (print_frame_args): Replace call to fprint_symbol
3050 with call to fprintf_symbol_filtered.
bd5d07d9
FF
3051 * stack.c (print_frame_info): Remove obsolete code so we don't
3052 have to update fputs_demangled usage in it.
3053 * stack.c (print_frame_info, frame_info): Add language variable
5e81259d
FF
3054 to pass to fprintf_symbol_demangled and initialize it from the
3055 symbol's language. Replace calls to fputs_demangled with calls
3056 to fprintf_symbol_filtered.
3057 * symtab.c (find_methods): Replace call to fputs_demangled with
3058 call to fprintf_symbol_filtered.
5e81259d
FF
3059 * ch-valprint.c (demangle.h): Include.
3060 * ch-valprint.c (chill_print_value_fields): Replace call to
3061 fprint_symbol with call to new fprintf_symbol_filtered.
bd5d07d9 3062
f77ad505
FF
3063Wed Mar 10 17:37:11 1993 Fred Fish (fnf@cygnus.com)
3064
0b96ed06
FF
3065 * Makefile.in (VERSION): Bump version to 4.8.2.
3066
f77ad505
FF
3067 * main.c (source_command): Require an explicit pathname of file
3068 to source, since previous behavior of defaulting to gdb init file
3069 was troublesome and undocumented.
3070 * printcmd.c (disassemble_command): Add missing '{}' pair to
3071 else with two statements. Bug reported by Stephane Tsacas
3072 <slt@isoft.fr>.
3073 * symtab.c (find_pc_line): Don't complain about zero length or
3074 negative length line numbers for the moment, since we may not own
3075 the terminal when called, such as when single stepping. (FIXME)
3076 * language.h (CAST_IS_CONVERSION): True if current language is
3077 C++ as well as C. Fix from Peter Schauer.
3078 * environ.c (get_in_environ, set_in_environ, unset_in_environ):
3079 Use STREQN macro rather than bare '!strncmp()'.
3080 * environ.c (unset_in_environ): Avoid use of memcpy on
3081 overlapping memory regions, as suggested by Paul Eggert
3082 <eggert@twinsun.com>.
3083 * c-exp.y (%union struct): Remove unused ulval as suggested
3084 by Paul Eggert <eggert@twinsun.com>.
3085
3086Mon Mar 8 19:03:06 1993 Fred Fish (fnf@cygnus.com)
3087
3088 * main.c (gdbinit): Make static.
3089 * main.c (inhibit_gdbinit): Move to file scope.
3090 * main.c (main): Remove local inhibit_gdbinit.
3091 * main.c (source_command): Don't source '.gdbinit' file by
3092 default if gdb has been told to ignore it.
3093
aecc5459
ILT
3094Sun Mar 7 21:58:53 1993 Ian Lance Taylor (ian@cygnus.com)
3095
3096 * Makefile.in (MAKEOVERRIDES): Define to be empty for GNU Make
3097 3.63.
3098
19327ea5
JG
3099Fri Mar 5 17:39:45 1993 John Gilmore (gnu@cacophony.cygnus.com)
3100
aecc5459
ILT
3101 * printcmd.c (print_address_symbolic): Only print if offset
3102 is shorter than max_symbolic_offset.
3103 (initialize_printcmd): `set print max-symbolic-offset'.
3104
946f014b
JG
3105 * am29k-tdep.c (TAGWORD_ZERO_MASK): New #define.
3106 (examine_tag): Use it.
3107 (read_register_stack): Only look in the local registers for a
3108 memory address if it's between rfb and rsp; go to memory otherwise.
3109 (initialize_29k): Fix call_scratch_address doc. Remove reginv_com.
19327ea5
JG
3110 (reginv_com): Remove ancient kludge command.
3111
81029114
RP
3112Fri Mar 5 17:16:26 1993 K. Richard Pixley (rich@rtl.cygnus.com)
3113
24365af9
RP
3114 * tm-irix3.h (ZERO_REGNUM): copy this macro from tm-mips.h so that
3115 irix4 will again compile.
3116
5870d848
RP
3117 * tm-mips.h (GDB_TARGET_IS_MIPS): no longer used, now removed.
3118
81029114
RP
3119 * configure.in: accept mips-sgi-irix4* for irix4.
3120
3121Fri Mar 5 07:49:48 1993 Steve Chamberlain (sac@lisa.cygnus.com)
3122
3123 * z8k-tdep.c (print_register_hook): Lint.
3124
4966c17c
JG
3125Thu Mar 4 17:42:03 1993 John Gilmore (gnu@cygnus.com)
3126
3127 Lint fixes from Paul Eggert (eggert@twinsun.com):
3128
3129 * command.c (do_setshow_command): var_uintegers are unsigned.
3130 * sparc-tdep.c (save_insn_opcodes, restore_insn_opcodes):
3131 unsigned, since they use hex values with the high bit set.
3132
83386662
FF
3133Thu Mar 4 08:22:55 1993 Fred Fish (fnf@cygnus.com)
3134
2456bacb
FF
3135 Fixes submitted by Karl Berry (karl@nermal.hq.ileaf.com):
3136 * m88k-pinsn.c (sprint_address): Use SYMBOL_NAME macro to
3137 access symbol name.
e5bb7e61 3138 * m88k-nat-c (SXIP_OFFSET, SNIP_OFFSET, SFIP_OFFSET): Enclose
2456bacb 3139 macro definitions in parenthesis.
e5bb7e61 3140
83386662
FF
3141 * dbxread.c (dbx_symfile_init): Catch the case where there is
3142 no string table, but the only way we find out is by reading zero
3143 bytes from EOF.
3144
69a272c4
FF
3145Wed Mar 3 15:51:28 1993 Fred Fish (fnf@cygnus.com)
3146
3147 * dbxread.c (dbx_symfile_init): Make size of the string table
3148 size field a define (DBX_STRINGTAB_SIZE_SIZE). Ensure that the
3149 offset to the string table is nonzero and handle the nonexistant
3150 string table case, should it occur. Ensure that the string table
3151 size read from the file is reasonable, with a minimum lower bound
3152 of DBX_STRINGTAB_SIZE_SIZE instead of zero.
3153
b010e283
ILT
3154Wed Mar 3 07:23:03 1993 Ian Lance Taylor (ian@cygnus.com)
3155
3156 * Makefile.in: Changes to build testsuite correctly.
3157 (FLAGS_TO_PASS): Added CXX and CXXFLAGS.
3158 (CC_FOR_TARGET, CXX, CXX_FOR_TARGET): New variables.
3159 (TARGET_FLAGS_TO_PASS): New variable.
3160 (SUBDIRS): Added testsuite.
3161 (all): Build testsuite using TARGET_FLAGS_TO_PASS, so that
3162 testsuite is compiled with CC_FOR_TARGET rather than CC.
3163
45364c8a
FF
3164Tue Mar 2 17:57:56 1993 Fred Fish (fnf@cygnus.com)
3165
6985bc54
FF
3166 * dbxread.c (dbx_symfile_init): Fix for nonexistant string table,
3167 reported by mycroft@gnu.ai.mit.edu.
3168
3169 (Ultrix 2.2 support from Michael Rendell <michael@mercury.cs.mun.ca>)
3170 * configure.in (vax-*-ultrix2*): New triplet.
3171 * config/vaxult2.mh: New file.
3172 * xm-vaxult2.h: New file.
3173
45364c8a
FF
3174 * c-exp.y (parse_number): Change high_bit to unsigned.
3175 * demangle.c: Change all references to cfront to ARM, since the
3176 actual algorithm is the one specified in the Annotated Reference
3177 Manual. This was confusing users into thinking that full cfront
3178 support was implemented.
3179 * dwarfread.c (CFRONT_PRODUCER): Remove, was never really used.
3180 * eval.c (evaluate_subexp): For STRUCTOP_PTR pass the arg type
3181 directly to lookup_struct_elt_type, which will do the
3182 dereferencing itself.
3183 * gdbtypes.c (lookup_struct_elt_type): Expand comments. Fix
3184 NULL dereferencing bug for unnamed structs, comment out
3185 questionable code.
3186
fefe2ed9
JG
3187Mon Mar 1 17:54:41 1993 John Gilmore (gnu@cygnus.com)
3188
1d9449ab
JG
3189 * coffread.c (process_coff_symbol): Change PCC argument correction
3190 so that it only happens on big-endian targets; so that it only
3191 happens if the short or char argument is aligned on an int
3192 boundary; and so that it changes the location, rather than the
3193 type, of the argument. These changes tend to parallel similar
3194 (old) changes in stabsread.c.
3195
3196 * coffread.c (coff_read_enum_type): Use the specified size for
3197 enums, don't assume that they are int-sized.
3198
3199 * c-valprint.c (c_val_print): Don't assume enums are the same as
3200 ints.
3201
fefe2ed9
JG
3202 * coredep.c: Handle NO_PTRACE_H in coredep.c. Fix by Michael
3203 Rendell, <michael@mercury.cs.mun.ca>.
3204
58a66e24
FF
3205Mon Mar 1 09:25:57 1993 Fred Fish (fnf@cygnus.com)
3206
3207 * language.h (local_decimal_format_custom): Add prototype.
3208 * language.c (local_decimal_format_custom): Add function, bug
3209 reported by Robert R. Henry (rrh@tera.com).
3210
9116f7c7
JG
3211Fri Feb 26 18:33:18 1993 John Gilmore (gnu@cacophony.cygnus.com)
3212
3213 * xcoffexec.c (vmap_ldinfo): Fix "/" for '/' typo, reported
3214 by Josef Leherbauer, joe@takeFive.co.at.
3215
3216Wed Feb 24 19:17:11 1993 John Gilmore (gnu@cacophony.cygnus.com)
3217
3218 * symfile.c (syms_from_objfile), tm-29k.h, tm-3b1.h, tm-68k-un.h,
3219 tm-altos.h, tm-arm.h, tm-convex.h, tm-es1800.h, tm-h8300.h,
3220 tm-hp300bsd.h, tm-hp300hpux.h, tm-hppa.h, tm-i386bsd.h,
3221 tm-i386v.h, tm-i960.h, tm-irix3.h, tm-isi.h, tm-linux.h,
3222 tm-m88k.h, tm-merlin.h, tm-mips.h, tm-news.h, tm-np1.h, tm-pn.h,
3223 tm-pyr.h, tm-rs6000.h, tm-spc-un.h, tm-sun386.h, tm-sunos.h,
3224 tm-symmetry.h, tm-sysv4.h, tm-tahoe.h, tm-umax.h, tm-vax.h,
3225 tm-vx68.h, tm-z8k.h: Remove remnants of NAMES_HAVE_UNDERSCORE.
3226
8fbdca53
FF
3227Wed Feb 24 07:41:15 1993 Fred Fish (fnf@cygnus.com)
3228
f31e2e7a
FF
3229 * symtab.h (SYMBOL_INIT_DEMANGLED_NAME): Initialize contents
3230 of demangled name fields to NULL if no demangling exists for
3231 a symbol. SYMBOL_INIT_LANGUAGE_SPECIFIC does this for new
3232 symbols if their language is known at the time they are created,
3233 but sometimes the language is not known until later.
3234
8fbdca53
FF
3235 * ch-typeprint.c (chill_print_type_base): Name changed to
3236 chill_type_print_base to match pattern for C and C++ names.
3237 * ch-typeprint.c (chill_print_type): Change "char" to "CHAR"
3238 to be consistent with other usages.
3239 * ch-typeprint.c (chill_type_print_base): Add support for
3240 printing Chill STRUCT types.
3241 * ch-valprint.c: Include values.h.
3242 * ch-valprint.c (chill_print_value_fields): New function and
3243 prototype for printing Chill STRUCT values.
3244 * ch-valprint.c (chill_val_print): Fix call to val_print_string
3245 that was being called with two args instead of three.
3246 * ch-valprint.c (chill_val_print): Call chill_print_value_fields
3247 to print Chill STRUCT values.
8fbdca53 3248
b12529c1
MW
3249Tue Feb 23 18:58:11 1993 Mike Werner (mtw@poseidon.cygnus.com)
3250
3251 * configure.in: added testsuite to configdirs.
3252
c2dc518b
MS
3253Tue Feb 23 11:46:11 1993 Mike Stump (mrs@cygnus.com)
3254
3255 * doc/stabs.texi: The `this' pointer is now known by the name
3256 `this' instead of `$t'.
3257
b6236d6e
FF
3258Tue Feb 23 11:21:33 1993 Fred Fish (fnf@cygnus.com)
3259
bb6e8fe6
FF
3260 * dwarfread.c (read_tag_string_type): Rewrite to allow forward
3261 references of TAG_string_type DIEs in user defined types.
b6236d6e
FF
3262 * ch-lang.c (chill_create_fundamental_type): Track compiler
3263 change that now emits debugging info with the type long for Chill
3264 longs.
b6236d6e 3265
c2a0f1cb
ILT
3266Mon Feb 22 15:21:54 1993 Ian Lance Taylor (ian@cygnus.com)
3267
3268 * remote-mips.c: New file; implements MIPS remote debugging
3269 protocol.
3270 * config/idt.mt: New file; uses remote-mips.c
3271 * configure.in (mips-idt-ecoff): New target; uses idt.mt.
3272
3273 * mips-tdep.c (mips_fpu): New variable; controls use of MIPS
3274 floating point coprocessor.
3275 (mips_push_dummy_frame): If not mips_fpu, don't save floating
3276 point registers.
3277 (mips_pop_frame): If not mips_fpu, don't restore floating point
3278 registers.
3279 (_initialize_mips_tdep): New function; let the user reset mips_fpu
3280 variable.
3281 * tm-mips.h (EXTRACT_RETURN_VALUE, STORE_RETURN_VALUE): If not
3282 mips_fpu, don't use fp0 as floating point return register.
3283 (FIX_CALL_DUMMY): If not mips_fpu, don't save floating point
3284 registers.
3285
bf3d2b75
MW
3286Mon Feb 22 07:54:03 1993 Mike Werner (mtw@poseidon.cygnus.com)
3287
3288 * gdb/testsuite: made modifications to testcases, etc., to allow
3289 them to work properly given the reorganization of deja-gnu and the
3290 relocation of the testcases from deja-gnu to a "tool" subdirectory.
3291
19fa4a0a
MW
3292Sun Feb 21 10:55:55 1993 Mike Werner (mtw@poseidon.cygnus.com)
3293
3294 * gdb/testsuite: Initial creation of gdb/testsuite.
3295 Migrated dejagnu testcases and support files for testing nm to
3296 gdb/testsuite from deja-gnu. These files were moved "as is"
3297 with no modifications. This migration is part of a major overhaul
3298 of dejagnu. The modifications to these testcases, etc., which
3299 will allow them to work with the new version of dejagnu will be
3300 made in a future update.
3301
cb46c402
JG
3302Fri Feb 19 18:36:55 1993 John Gilmore (gnu@cygnus.com)
3303
3304 * NEWS: Add reminders for next release.
3305
254dec35
ILT
3306Fri Feb 19 10:01:39 1993 Ian Lance Taylor (ian@cygnus.com)
3307
3308 * mipsread.c (parse_lines): Correct check for files compiled with
3309 -g1.
3310
dba02c60
JG
3311Fri Feb 19 05:56:15 1993 John Gilmore (gnu@cygnus.com)
3312
3313 * Makefile.in (VERSION): 4.8.1 to distinguish local versions.
3314
c7cb1025 3315Fri Feb 19 01:32:58 1993 John Gilmore (gnu@cygnus.com)
ead97959
JG
3316
3317 * Makefile.in (VERSION): GDB-4.8 release!
dba02c60 3318 * README, NEWS: Update for release.
ead97959 3319
b9163d1a
SG
3320Thu Feb 18 22:44:40 1993 Stu Grossman (grossman@cygnus.com)
3321
3322 * am29k-pinsn.c (print_insn): Minor nits with const.
3323 * am29k-tdep.c: More minor nits with arg types for
3324 supply_register, NULL vs. 0, read_register_gen, & reginv_com.
3325
5e3d0ab0
JG
3326Thu Feb 18 22:38:03 1993 John Gilmore (gnu@cygnus.com)
3327
3328 * gcc.patch: Update for a different GCC (G++) bug.
3329 * main.c (print_gdb_version): Update copyright year to 1993.
3330 * nm-hp300bsd.h: Decide whether this is BSD 4.3 or 4.4,
3331 conditionalize this file on it. FIXME, right way is to split
3332 these into two config files.
3333 (ATTACH_DETACH): Define for BSD 4.4
3334 (PTRACE_ARG_TYPE): caddr_t for BSD 4.4, unset for 4.3.
3335 (U_REGS_OFFSET): Revise for 4.4.
3336 (REGISTER_U_ADDR): Separate for 4.4, but it doesn't work yet.
3337 * xm-hp300bsd.h: Move definitions of UINT_MAX, INT_MAX, INT_MIN,
3338 LONG_MAX into this file to avoid cpp "redefinition" warnings.
3339
add04f8b
RP
3340Thu Feb 18 16:13:28 1993 K. Richard Pixley (rich@rtl.cygnus.com)
3341
3342 * nm-hp300bsd.h (PTRACE_ARG3_TYPE): FSF's hp300's have int* not
3343 caddr_t.
3344
c5c00171
JG
3345Thu Feb 18 04:10:06 1993 John Gilmore (gnu@cygnus.com)
3346
961ccde6
JG
3347 * c-lang.c (c_printstr): Bugfix for length==0 case.
3348
c5c00171
JG
3349 * c-lang.c (c_printstr): If a C string ends in a null, don't
3350 print the null.
3351
eece984d
SG
3352Thu Feb 18 02:39:21 1993 Stu Grossman (grossman at cygnus.com)
3353
3354 * defs.h (STRCMP): Make it work for unsigned chars.
3355
ec4bf6a0
JG
3356Thu Feb 18 01:56:06 1993 John Gilmore (gnu@cygnus.com)
3357
3358 * nm-hp300bsd.h (ATTACH_DETACH, PTRACE_ATTACH, PTRACE_DETACH): define.
3359 * config/hp300bsd.mh (REGEX, REGEX1): Define.
3360 * m68k-pinsn.c (BREAK_UP_BIG_DECL, AND_OTHER_PART): #if __GNUC__,
3361 define to kludge the large opcode table into two smaller tables,
3362 since GCC take exponential space to build the table. Lint.
3363 (NOPCODES): Remove, use "numopcodes" from opcode/m68k.h instead.
3364
0ae975ea
JG
3365Wed Feb 17 19:24:40 1993 John Gilmore (gnu@cygnus.com)
3366
be220da1
JG
3367 * Makefile.in (VERSION): Roll to 4.7.9.
3368 * xm-hp300bsd.h: Define PSIGNAL_IN_SIGNAL_H and put a compatible
3369 definition here, to handle both BSD 4.3 and 4.4 systems.
5824e607
JG
3370 * mipsread.c (ZMAGIC): #undef to avoid duplicate define.
3371 * remote.c (alarm): Move declaration to global level, before
3372 first reference to it.
3373 * tm-i386bsd.h (NUM_REGS): There are only eleven, not twelve.
0ae975ea
JG
3374 * dbxread.c (process_one_symbol): Cast to unsigned char, not int.
3375
8631194d
RP
3376Wed Feb 17 13:40:29 1993 K. Richard Pixley (rich@cygnus.com)
3377
fce7f2d9
RP
3378 * remote.c (readchar): forward declare alarm which otherwise looks
3379 like an undeclared variable to gcc.
3380
040b9597
RP
3381 * dbxread.c (process_one_symbol): cast enum value N_SO into int
3382 when comparing against an int. Avoids superfluous warning from
3383 vax ultrix 4.2 cc.
3384
9549404e
RP
3385 * inflow.c (set_sigint_trap): add cast to assignment from signal.
3386 Avoids superfluous warnings from some systems and/or compilers
3387 (like vax ultrix 4.2.)
3388
8631194d
RP
3389 * language.c (struct op_print unk_op_print_tab): use the enum
3390 values rather naked zeros as initializers. Avoids warnings from
3391 ultrix type compilers.
3392
f4ed8840
JG
3393Tue Feb 16 00:53:20 1993 John Gilmore (gnu@cygnus.com)
3394
3395 * Makefile.in (VERSION): Roll to 4.7.6.
3396 (SFILES_SUBDIR): Add 29k-share/udi_soc.
3397 (SFILES_SUBSUBDIR): Move 29k-share/udi files to this macro.
62e859f0
JG
3398 (alldeps.mak): Make ALLDEPFILES_SUBSUBDIR for files in sub sub dirs.
3399 (ALLDEPFILES_SUBSUBDIR): Depend on this for deeper dep files.
f4ed8840
JG
3400 (HFILES): Remove all nm-* except nm-trash.h. Add ns32k-opcode.h.
3401 (depend): Fix bug where nm-files in config files weren't noticed.
3402 (make-proto-gdb-1): Avoid changing directories while building new
3403 prototype. Build SFILES_SUBSUBDIR with longer symlinks.
3404
7c622b41
JG
3405Mon Feb 15 20:48:09 1993 John Gilmore (gnu@cygnus.com)
3406
3407 * remote.c: Improve error recovery. Allow user to break out
3408 of initial connection attempt with INTERRUPT. Treat a timeout
3409 while waiting for remote packet like a retry, unless the remote
3410 side is actively running user code. Fix a few long printf_filtered's.
3411
3412 * xcoffread.c (read_xcoff_symtab): Don't use null symbol name for
3413 trampoline symbols.
3414
3415 * buildsym.c (start_subfile): Allow null file name.
3416
e9916390
RP
3417Fri Feb 12 15:46:49 1993 K. Richard Pixley (rich@cygnus.com)
3418
3419 * xcoffread.c (process_xcoff_symbol, read_symbol_lineno): complain
3420 expects a pointer to complaint rather than a complaint
3421 structure.
6d4ea3a5
RP
3422 (process_linenos): free the previously allocated subfile name,
3423 then allocate the new one from the heap.
e9916390 3424
256b4f37
SC
3425Fri Feb 12 08:06:05 1993 Steve Chamberlain (sac@thepub.cygnus.com)
3426
3427 * h8300-tdep.c, tm-h8300.h: turn off some experimental features
3428
e5eeaaf8
JG
3429Thu Feb 11 00:59:07 1993 John Gilmore (gnu@cygnus.com)
3430
256b4f37
SC
3431 * stabsread.c (dbx_lookup_type): Handle negative type numbers.
3432 Previously, would bogusly index off the bottom of type_vector.
3433 (rs6000_builtin_type): Accept type number as argument.
3434 (read_type, case '-'): Handle negatives like any other type number.
3435
3436 * symfile.c (deduce_language_from_filename): Handle null name.
3437
015605c5
JG
3438 * mips-tdep.c (isa_NAN): Fix byte order dependency.
3439 Reported by Nobuyuki Hikichi <hikichi@sra.co.jp>,
3440 fixed by sato@sm.sony.co.jp.
3441
e5eeaaf8
JG
3442 * xcoffread.c (parmsym): Don't use an initializer to set up
3443 this struct symbol. Set it up in initialize_xcoffread.
3444 (read_xcoff_symtab, xcoff_symfile_read): Surround code that only
3445 works on real rs/6000 target with #ifndef FAKING_RS6000.
3446
dd469789
JG
3447Wed Feb 10 23:42:37 1993 John Gilmore (gnu@cygnus.com)
3448
3449 * stabsread.c (rs6000_builtin_type): Move function from
3450 xcoffread.c:builtin_type.
3451 * xcoffread.c (builtin_type): Move to stabsread. Remove
3452 IBM6000_HOST dependency. Move misplaced comments.
3453 (various): Change printf's to complaints.
3454 (patch_block_stabs, process_xcoff_symbol case C_DECL): Add
3455 objfile argument to read_type calls under #if 0.
3456 (process_xcoff_symbol case C_RSYM): Fix typo in #ifdef.
3457 * xcoffexec.c (map_vmap): Don't allocate an objfile for the exec_file.
3458 * Makefile.in: xcoffread.o is not built by default.
364c1151 3459 * xm-rs6000.h (IBM6000_HOST): Remove.
dd469789
JG
3460 * config/rs6000.mh (NATDEPFILES): xcoffread.o is native only.
3461 * doc/gdbint.texinfo: Eliminate IBM6000_HOST, document
3462 IBM6000_TARGET.
3463
733a94e8
SG
3464Wed Feb 10 18:31:20 1993 Stu Grossman (grossman at cygnus.com)
3465
3466 * findvar.c (read_var_value): If REG_STRUCT_HAS_ADDR, then set
3467 VALUE_LVAL to be lval_memory so that we don't try to modify wild
3468 register numbers when user tries to modify elements in structs
3469 passed as arguments.
3470 * inflow.c (child_terminal_info): Move banner outside of system
3471 specific #ifdefs.
3472 * tm-hppa.h (REG_STRUCT_HAS_ADDR): Define this for HPPA, which
3473 passes struct/union arguments by address.
3474
3475Wed Feb 10 15:34:46 1993 Ian Lance Taylor (ian@cygnus.com)
3476
14b1f0d9 3477 * Based on patch from Kean Johnston <maw@netcom.com>:
733a94e8
SG
3478 * nm-i386sco4.h: New file. Like nm-i386sco.h, but define
3479 ATTACH_DETACH, PTRACE_ATTACH and PTRACE_DETACH.
3480 * config/i386sco4.mh (NAT_FILE): Use nm-i386sco4.h.
3481
79533adf
JG
3482Tue Feb 9 20:07:18 1993 John Gilmore (gnu@cygnus.com)
3483
3484 * remote-udi.c (FREEZE_MODE): Fix && for & typo. Found and
3485 fixed by Lynn D. Shumaker, shumaker@saifr00.cfsat.honeywell.com.
3486
2368ffb6
ILT
3487Tue Feb 9 08:18:07 1993 Ian Lance Taylor (ian@cygnus.com)
3488
3489 * config/i386sco4.mh (MUNCH_DEFINE): Pass -p to nm to avoid bug in
3490 cc debugging output.
3491
2a021f21
JG
3492Tue Feb 9 00:19:28 1993 John Gilmore (gnu@cygnus.com)
3493
3494 * stabsread.c (define_symbol): Complain about unrecognized names
3495 that begin with CPLUS_MARKER (often '$'), but don't die. Fix
3496 suggested by gb@cs.purdue.edu (Gerald Baumgartner).
3497 (read_cpp_abbrev): Don't use the class name as part of the
3498 vtable pointer member name (_vptr$) in $vf abbrevs or unrecognized
3499 abbrevs. Inspired by Mike Tiemann.
3500 (read_tilde_fields): Comment. Remove ancient dead code.
3501 Remove erroneous but non-dead code. Simplify. Add complaints.
3502 (in general): Remove extraneous (parentheses) in return
3503 statements.
3504
c653bc6d
JG
3505Fri Feb 5 14:01:22 1993 John Gilmore (gnu@cygnus.com)
3506
931bf12a
JG
3507 * coffread.c (coff_lookup_type): Fix fencepost error reported
3508 by Art Berggreen, <arg@opal.acc.com>.
3509
c653bc6d 3510 Fix long file name bug reported on SCO Open Desktop 2.0 by Ulf Lunde
931bf12a 3511 <Ulf.Lunde@kvatro.no> and Dag H. Wanvik <Dag.H.Wanvik@kvatro.no>:
c653bc6d
JG
3512
3513 * coffread.c (getfilename): Eliminate COFF_NO_LONG_FILE_NAMES
3514 test, which is apparently left over from when we used native
3515 include files and couldn't depend on the member names being there.
3516 * tm-3b1.h, tm-altos.h, tm-i386v.h: Don't set it.
3517
3518Thu Feb 4 12:23:15 1993 Ian Lance Taylor (ian@cygnus.com)
3519
3520 * mipsread.c: Major overhaul to use new BFD symbol table reading
3521 routines. Now swaps information as it is needed, rather than
3522 swapping everything when the file is read.
3523
b076f024
JG
3524Thu Feb 4 01:52:36 1993 John Gilmore (gnu@cygnus.com)
3525
3526 * Makefile.in (TARDIRS): Add sparclite demo dir.
3527 (*.tab.c): Change dependency on Makefile to depend on
3528 Makefile.in, otherwise it always rebuilds after configuring.
3529 Force output *.tab.c file into current directory even in "make"
3530 versions that rewrite dependent file names used in command lines.
3531
3532 * TODO: Remove some things we did.
3533 * am29k-opcode.h, convx-opcode: Remove; now in ../include/opcode.
3534 * os68k-xdep.c: Remove; useless file (os68k is a target only).
3535 * convex-pinsn.c: Use ../include/opcode/convex.h. Add CONST.
3536 * symtab.h: Eliminate unnamed unions and structs.
3537
ad89bdfd
JG
3538Wed Feb 3 14:48:08 1993 John Gilmore (gnu@cygnus.com)
3539
3540 * Makefile.in (VERSION): Roll to 4.7.5.
ad89bdfd 3541
ca5a72cd
JG
3542Tue Feb 2 20:47:42 1993 John Gilmore (gnu@cygnus.com)
3543
3544 * breakpoint.c (breakpoint_re_set_one): Handle watchpoints when
3545 re-evaluating symbol pointers.
3546
9da75ad3
FF
3547Tue Feb 2 16:10:31 1993 Fred Fish (fnf@cygnus.com)
3548
3549 * c-exp.y (lcurly, rcurly): New nonterminals.
3550 * c-exp.y (exp): Use lcurly and rcurly for arrays and UNOP_MEMVAL
3551 constructs.
3552 * parse.c (free_funcalls): Moved prototype from parser-defs.h,
3553 made function static.
3554 * parse.c (struct funcall): Moved struct def from parser-defs.h.
3555 * parse.c (funcall_chain): Moved from parser-defs.h, made static.
3556 * parse.c (start_arglist):
3557 * parser-defs.h (free_funcalls): Moved prototype to parse.c.
3558 * parser-defs.h (struct funcall): Moved struct def to parse.c.
3559 * parser-defs.h (funcall_chain): Moved to parse.c.
3560 * printcmd.c (print_frame_nameless_args): Fix prototype.
3561 * tm-mips.h (setup_arbitrary_frame): Fix prototype.
3562 * tm-sparc.h (setup_arbitrary_frame): Fix prototype.
3563 * valops.c (typecmp): Moved prototype from values.h.
3564 * value.h (typecmp): Moved prototype to valops.c, made static.
9da75ad3 3565 * ch-exp.y (yylex): Change way control sequences are disabled.
9da75ad3 3566
58bcc08c
JG
3567Tue Feb 2 16:11:43 1993 John Gilmore (gnu@cygnus.com)
3568
3569 * tm-mips.h, tm-sparc.h: Fix thinko in SETUP_ARBITRARY_FRAME.
3570
fee754c9
ILT
3571Tue Feb 2 15:30:33 1993 Ian Lance Taylor (ian@cygnus.com)
3572
3573 * mipsread.c (upgrade_type): Build array types correctly, using
3574 create_range_type and create_array_type.
3575
7dc15bb7
JG
3576Tue Feb 2 00:19:08 1993 John Gilmore (gnu@cygnus.com)
3577
58bcc08c
JG
3578 * remote-nindy.c: Cleanup.
3579
1b6a2087
JG
3580 * infrun.c (wait_for_inferior): When rolling back the PC after
3581 a breakpoint, call write_pc so that NPC gets rolled back as well
3582 (for the 29K).
3583
d122f257
JG
3584 * blockframe.c (inside_entry_file, inside_main_func,
3585 inside_entry_func): PC of zero is always "bottom of stack".
3586
7dc15bb7
JG
3587 * printcmd.c (print_frame_args, print_frame_nameless_args):
3588 Let print_frame_nameless_args decide whether there are any,
3589 laying groundwork for possibly later printing 29K args for
3590 functions where we have tag words but no symbols.
3591
2b21d8aa
RP
3592Mon Feb 1 18:09:58 1993 Roland H. Pesch (pesch@fowanton.cygnus.com)
3593
3594 * Makefile.in: fix GDB doc targets for new doc subdir structure
3595
07c2fa3e
JG
3596Mon Feb 1 17:56:47 1993 John Gilmore (gnu@cygnus.com)
3597
3598 * stack.c (parse_frame_specification): Parse as many arguments
3599 as there are (up to MAXARGS). Pass all of them in argc, argv
3600 format to SETUP_ARBITRARY_FRAME. Put the burden of checking how
3601 many there were, onto SETUP_ARBITRARY_FRAME.
3602 * tm-mips.h, tm-sparc.h: Corresponding changes.
3603 * mips-tdep.c, sparc-tdep.c: Ditto.
3604
6edd74ae
JG
3605Mon Feb 1 17:19:37 1993 John Gilmore (gnu@cygnus.com)
3606
3607 * hp300ux-nat.c: Update copyrights.
3608 * mipsread.c (parse_partial_symbols): Complain about block
3609 indexes that go backwards. Fix from Peter Schauer.
3610 * symfile.c (syms_from_objfile, symbol_file_add): Allow a
3611 symbol-file that has no linkage symbols to be read.
3612 * tm-rs6000.h, xm-rs6000.h: (SIGWINCH_HANDLER and friends): Move
3613 from tm- file to xm-file, since they're host dependent.
3614 * valarith.c (value_binop): Typo.
797bc12b 3615
6edd74ae 3616Mon Feb 1 16:16:59 1993 Stu Grossman (grossman at cygnus.com)
797bc12b
SG
3617
3618 * sparclite/aload.c: Add copyleft.
3619 * sparclite/crt0.s: Add comment at beginning.
3620
2431d063
SC
3621Mon Feb 1 14:36:11 1993 Steve Chamberlain (sac@thepub.cygnus.com)
3622
3623 * remote-z8k.c, z8k-tdep.c: support for the Z8001 and Z8002.
3624 * parse.c (std_regs): Only declare if NO_STD_REGS is defined.
3625
d112a0c6
MT
3626Sun Jan 31 04:32:48 1993 Michael Tiemann (tiemann@rtl.cygnus.com)
3627
7cb0f870
MT
3628 * values.c (value_headof): Fix typo in which VTBL and ARG were
3629 being confused for one another.
3630
a163ddec
MT
3631 * valops.c (typecmp): Now static.
3632
edf67bd1
MT
3633 * gdbtypes.c (fill_in_vptr_fieldno): Don't ignore the first
3634 baseclass--we don't always inherit its virtual function table
3635 pointer.
3636
271e5030
MT
3637 * eval.c (evaluate_subexp): In OP_FUNCALL case, adjust `this'
3638 pointer correctly in case value_struct_elt moves it around.
3639
3640 * valops.c (typecmp): Now static. Also, now groks references
3641 better.
3642
d112a0c6 3643 * gdbtypes.c (lookup_struct_elt_type): Pass NOERR instead of
271e5030 3644 zero on recursive call. If NAME is the name of TYPE, return TYPE.
d112a0c6 3645
3d9b9577
JG
3646Sat Jan 30 19:55:52 1993 John Gilmore (gnu@cygnus.com)
3647
ec68a93f
JG
3648 * hppah-nat.c: Eliminate <sys/user.h> and other unnecessary stuff,
3649 to avoid "too much defining" error from native C compiler (!).
3650
3d9b9577
JG
3651 * Makefile.in (HFILES): Add typeprint.h.
3652 * typeprint.[ch]: Update copyrights.
3653
926d7800
JG
3654Thu Jan 28 19:09:02 1993 John Gilmore (gnu@cygnus.com)
3655
bdec39b3
JG
3656 * Makefile.in: Update to match doc/ subdir changes.
3657
92063c3e 3658 * config/hp300hpux.mh: No cross-host file needed, just native.
71e60679
JG
3659 * config/go32.mh: Remove nonexistent "native" support.
3660
2a770cac
JG
3661 M88K fixes reported by Carl Greco, <cgreco@Creighton.Edu>:
3662 * tm-m88k.h (REGISTER_CONVERT_TO_RAW): Fix typo.
3663 * m88k-tdep.c (next_insn): Lint, cleanup.
3664 (store_parm_word): Lint.
3665
926d7800
JG
3666 * README: Fix typo (reported by karl@hq.ileaf.com).
3667
2fcc38b8
FF
3668Wed Jan 27 21:34:21 1993 Fred Fish (fnf@cygnus.com)
3669
3670 * expression.h (BINOP_CONCAT): Document use for self concatenation
3671 an integral number of times.
3672 * language.c (binop_type_check): Extend BINOP_CONCAT for self
3673 concatenation case.
3674 * valarith.c (value_concat): Rewrite to support self
3675 concatenation an integral number of times.
2fcc38b8
FF
3676 * Makefile.in (ch-exp.tab.c): Change "expect" message.
3677 * ch-exp.y (FIXME's): Make all FIXME tokens distinct, to
3678 eliminate hundreds of spurious shift/reduce and reduce/reduce
3679 conflicts that mask the 5 real ones.
3680 * ch-exp.y (STRING, CONSTANT, SC): Remove unused tokens.
3681 * ch-exp.y (integer_literal_expression): Remove production,
3682 no longer used.
2fcc38b8
FF
3683
3684Thu Jan 21 09:58:36 1993 Fred Fish (fnf@cygnus.com)
3685
3686 * eval.c (evaluate_subexp): Fix OP_ARRAY, remove code that
3687 implied that "no side effects" was nonfunctional.
3688 * eval.c (evaluate_subexp): Add BINOP_CONCAT case to deal with
3689 character string and bitstring concatenation.
3690 * expprint.c (dump_expression): Add case for BINOP_CONCAT.
3691 * expression.h (exp_opcode): Add BINOP_CONCAT.
3692 * gdbtypes.h (type_code): Add TYPE_CODE_BITSTRING.
3693 * language.c (string_type): Add function to determine if a type
3694 is a string type.
3695 * language.c (binop_type_check): Add case for BINOP_CONCAT.
3696 * valarith.c (value_concat): New function to concatenate two
3697 values, such as character strings or bitstrings.
3698 * valops.c (value_string): Remove error stub and implement
3699 function body.
3700 * value.h (value_concat): Add prototype.
2fcc38b8
FF
3701 * ch-exp.y (operand_3): Add actions for SLASH_SLASH (//).
3702 * ch-exp.y (yylex): Recognize SLASH_SLASH.
3703 * ch-lang.c (chill_op_print_tab): Add SLASH_SLASH (//) as
3704 BINOP_CONCAT.
2fcc38b8
FF
3705
3706Tue Jan 19 14:26:15 1993 Fred Fish (fnf@cygnus.com)
3707
3708 * c-exp.y (exp): Add production to support direct creation
3709 of array constants using the obvious syntax.
3710 * c-valprint.c (c_val_print): Set printed string length.
3711 * dwarfread.c (read_tag_string_type): New prototype and
3712 function that handles TAG_string_type DIEs.
3713 * dwarfread.c (process_dies): Add case for TAG_string_type
3714 that calls new read_tag_string_type function.
3715 * expprint.c (print_subexp): Add support for OP_ARRAY.
3716 * gdbtypes.c (create_range_type, create_array_type): Inherit
3717 objfile from the index type.
2fcc38b8
FF
3718 * ch-typeprint.c (chill_print_type): Add case for
3719 TYPE_CODE_STRING.
3720 * ch-valprint.c (chill_val_print): Fix case for
3721 TYPE_CODE_STRING.
2fcc38b8 3722
201c1243
ILT
3723Mon Jan 18 11:58:45 1993 Ian Lance Taylor (ian@cygnus.com)
3724
3725 * mipsread.c (CODE_MASK, MIPS_IS_STAB, MIPS_MARK_STAB,
3726 MIPS_UNMARK_STAB, STABS_SYMBOLS): Removed; now in
3727 include/coff/mips.h.
3728
c4413e2c
FF
3729Fri Jan 15 20:26:50 1993 Fred Fish (fnf@cygnus.com)
3730
3731 * c-exp.y (exp:STRING): Convert C strings into array-of-char
3732 constants with an explicit null byte terminator. OP_STRING is
3733 now used for real string types.
3734 * c-lang.c (builtin_type_*): Move declarations to lang.c since
3735 they are used by all languages.
3736 * c-lang.c (_initialize_c_language): Move initializations of
3737 builtin_type_* to lang.c.
3738 * c-typeprint.c (c_type_print_varspec_prefix,
3739 c_type_print_varspec_suffix): TYPE_CODE_PASCAL_ARRAY renamed
3740 to TYPE_CODE_STRING.
3741 * c-valprint.c (c_val_print): Change the way character arrays
3742 are printed as strings to be consistent with the way strings
3743 are printed when pointer-to-char types are dereferenced.
3744 Remove test of print_max before calling val_print_string, which
3745 now does it's own test.
3746 * eval.c (evaluate_subexp): Add case for OP_ARRAY.
3747 * expprint.c (print_subexp, dump_expression): Add case for OP_ARRAY.
3748 * expression.h (enum exp_opcode): Add OP_ARRAY and document.
3749 * gdbtypes.c (builtin_type_*): Add declarations moved from
3750 c-lang.c.
3751 * gdbtypes.c (create_string_type): New function to create real
3752 string types.
3753 * gdbtypes.c (recursive_dump_type): TYPE_CODE_PASCAL_ARRAY
3754 renamed to TYPE_CODE_STRING.
3755 * gdbtypes.c (_initialize_gdbtypes): Add initializations of
3756 builtin_type_* types moved from c-lang.c.
3757 * gdbtypes.h (enum type_code): TYPE_CODE_PASCAL_ARRAY renamed
3758 to TYPE_CODE_STRING.
3759 * gdbtypes.h (builtin_type_string): Add extern declaration.
3760 * gdbtypes.h (create_string_type): Add prototype.
3761 * m2-lang.c (m2_create_fundamental_type): TYPE_CODE_PASCAL_ARRAY
3762 renamed to TYPE_CODE_STRING.
3763 * m88k-tdep.c (pushed_size): TYPE_CODE_PASCAL_ARRAY renamed to
3764 TYPE_CODE_STRING.
3765 * mipsread.c (_initialize_mipsread): TYPE_CODE_PASCAL_ARRAY
3766 renamed to TYPE_CODE_STRING.
3767 * parse.c (length_of_subexp, prefixify_subexp): Add case for
3768 OP_ARRAY.
3769 * printcmd.c (print_formatted): Recognize TYPE_CODE_STRING.
3770 * typeprint.c (print_type_scalar): TYPE_CODE_PASCAL_ARRAY renamed
3771 to TYPE_CODE_STRING.
3772 * valops.c (allocate_space_in_inferior): New function and
3773 prototype, using code ripped out of value_string.
3774 * valops.c (value_string): Rewritten to use new function
3775 allocate_space_in_inferior, but temporarily disabled until some
3776 other support is in place.
3777 * valops.c (value_array): New function to create array constants.
3778 * valprint.c (val_print_string): Add comment to document use,
3779 complete rewrite to fix several small buglets.
3780 * value.h (value_array): Add prototype.
3781 * value.h (val_print_string): Change prototype to match rewrite.
c4413e2c
FF
3782 * ch-valprint.c (chill_val_print): Add case for TYPE_CODE_STRING.
3783 * ch-exp.y (match_character_literal): Disable recognition of
3784 control sequence form of character literals and document why.
c4413e2c 3785
6d1e8f54
SG
3786Thu Jan 14 15:48:12 1993 Stu Grossman (grossman at cygnus.com)
3787
3788 * nindy-share/nindy.c: Add comments to #endif's to clarify
3789 grouping.
3790
3791 * hppa-pinsn.c (print_insn): Use read_memory_integer, instead of
3792 read_memory to get byte order right.
3793 * hppah-tdep.c (find_unwind_info): Don't read in unwind info
3794 anymore. This is done in paread.c now. We expect unwind info
3795 to hang off of objfiles, and search all of the objfiles when until
3796 we find a match.
3797 * (skip_trampoline_code): Cast arg to target_read_memory.
3798 * objfiles.h (struct objfile): Add new field obj_private to hold
3799 per object file private data (unwind info in this case).
3800 * paread.c (read_unwind_info): New routine to read unwind info
3801 for the objfile. This data is hung off of obj_private.
3802 * tm-hppa.h: Define struct obj_unwind_info, to hold pointers to
3803 the unwind info for this objfile. Also define OBJ_UNWIND_INFO to
3804 make this easier to access.
3805
c7da3ed3
FF
3806Wed Jan 13 20:49:59 1993 Fred Fish (fnf@cygnus.com)
3807
3808 * c-valprint.c (cp_print_class_member): Add extern decl.
3809 * c-valprint.c (c_val_print): Extract code for printing methods
3810 and move it to cp_print_class_method in cp-valprint.c.
3811 * c-valprint.c (c_val_print): Extract code to print strings and
3812 move it to val_print_string in valprint.c.
3813 * cp-valprint.c (cp_print_class_method): New function using
3814 code extracted from c_val_print.
3815 * valprint.c (val_print_string): New function using code
3816 extracted from c_val_print.
3817 * value.h (val_print_string): Add prototype.
c7da3ed3
FF
3818 * ch-exp.y (CHARACTER_STRING_LITERAL): Set correct token type.
3819 * ch-exp.y (literal): Add action for CHARACTER_STRING_LITERAL.
3820 * ch-exp.y (tempbuf, tempbufsize, tempbufindex, GROWBY_MIN_SIZE,
3821 CHECKBUF, growbuf_by_size): New variables, macros, and support
3822 functions for implementing a dynamically expandable temp buffer.
3823 * ch-exp.y (match_string_literal): New lexer function.
3824 * ch-exp.y (match_bitstring_literal): Dynamic buffer code
3825 removed and replaced with new CHECKBUF macro.
3826 * ch-exp.y (yylex): Call match_string_literal when appropriate.
3827 * ch-valprint.c (ch_val_print): Add code for TYPE_CODE_PTR.
c7da3ed3 3828
0213d96f
SG
3829Sat Jan 9 19:59:33 1993 Stu Grossman (grossman at cygnus.com)
3830
78205fb6
SG
3831 * Makefile.in: Add info for paread.o.
3832 * config/hppahpux.mh: Add paread.o to NATDEPFILES.
3833
0213d96f
SG
3834 * blockframe.c (frameless_look_for_prologue): Correct the
3835 comment.
3836 * gdbtypes.h, gdbtypes.c: Use const in decl of
3837 cplus_struct_default, now that pa-gas assembler has been fixed.
3838 * hppah-nat.c: Formatting.
3839 * hppah-tdep.c: Remove lots of useless externs for variables we
3840 don't use.
3841 * (find_unwind_entry): Speed up by using binary search, and a one
3842 entry cache.
3843 * (rp_saved): New routine to see what unwind info says about RP
3844 being saved on the stack frame.
3845 * (frame_saved_pc): Look for prologue to see if we need to
3846 examine the stack for the saved RP or not.
3847 * (init_extra_frame_info): Check for prologue, instead of
3848 framesize to determine if we are frameless or not.
3849 * (frame_chain_valid): Stop backtraces when we run into _start.
3850 * (push_dummy_frame): Reformat to make more readable.
3851 * (find_dummy_frame_regs): ditto.
3852 * (hp_pop_frame): ditto.
3853 * (hp_restore_pc_queue): small cleanup.
3854 * (hp_push_arguments): ditto.
3855 * (pa_do_registers_info): ditto.
3856 * (skip_prologue): New routine created from SKIP_PROLOGUE macro.
3857 * tm-hppa.h: Move contents of SKIP_PROLOGUE into hppah-tdep.c.
3858 * Define FRAME_CHAIN_VALID.
3859 * Turn on BELIEVE_PCC_PROMOTION so that we can access char args
3860 passed to functions.
3861
3862 * paread.c (pa_symtab_read): Use new bfd conventions for
3863 accessing linker symbol table.
3864 * (pa_symfile_init): Access embedded STAB info via BFD section
3865 mechanism and related macros.
3866
3867
bfc55a5d
SG
3868Sat Jan 9 19:31:43 1993 Stu Grossman (grossman at cygnus.com)
3869
3870 * sparc-stub.c: Use a seperate stack for our traps.
3871 * Handle recursive traps.
3872 * Remove all trap init code. This needs to be done by the
3873 environment.
3874 * (set_mem_fault_trap): Call exceptionHandler() to setup this
3875 trap.
3876 * (handle_exception): See if we are at breakinst, if so, then
3877 advance PC sp that users can just step out of breakpoint().
3878 * (case 'G'): Don't let GDB hack CWP. Also, copy saved regs to
3879 new place if SP has changed.
3880 * (case 's'): Get rid of this, we can't do it yet.
3881 * (case 't'): New command to test any old random feature.
3882 * (case 'r'): New command to reset the system.
3883 * (breakpoint): Add label to breakpoint trap instruction so that
3884 handle_exception() can detect where we are and get past the
3885 breakpoint trivially.
3886
f92743ae
ILT
3887Thu Jan 7 13:33:06 1993 Ian Lance Taylor (ian@cygnus.com)
3888
3889 * mips-pinsn.c: Actual work now done by opcodes/mips-dis.c.
3890
bfc55a5d
SG
3891Thu Jan 7 09:21:51 1993 david d `zoo' zuhn (zoo at cirdan.cygnus.com)
3892
3893 * configure.in: recognise all sparclite variants
3894
f92743ae
ILT
3895Wed Jan 6 10:14:51 1993 Steve Chamberlain (sac@thepub.cygnus.com)
3896
3897 * symfile.c: If O_BINARY isn't defined, set it to 0, call openp for
3898 binary files oring in the right bit.
3899
3900 * main.c, source.c, state.c, symmisc.c: use macros defined in
3901 fopen-{bin|both} when fopening files.
3902
81028ab0
FF
3903Wed Jan 6 08:19:11 1993 Fred Fish (fnf@cygnus.com)
3904
3905 * defs.h (HOST_CHAR_BIT): New macro, defaults to either CHAR_BIT
3906 from a configuration file (typically including <limits.h>), or to
3907 TARGET_CHAR_BIT if CHAR_BIT is not defined.
3908 * eval.c (evaluate_subexp): Use new BYTES_TO_EXP_ELEM macro.
3909 * eval.c (evaluate_subexp): Add case for OP_BITSTRING.
3910 * expprint.c (print_subexp): Use new BYTES_TO_EXP_ELEM macro.
3911 * exppritn.c (print_subexp, dump_expression): Add case for
3912 OP_BITSTRING.
3913 * expression.h (OP_BITSTRING): New expression element type for
3914 packed bitstrings.
3915 * expression.h (EXP_ELEM_TO_BYTES, BYTES_TO_EXP_ELEM): New
3916 macros to convert between number of expression elements and bytes
3917 to store that many elements.
3918 * i960-tdep.c (leafproc_return): Use new macros to access
3919 minimal symbol name and address fields.
3920 * m88k-pinsn.c (sprint_address): Use new macros to access
3921 minimal symbol name and address fields.
3922 * nindy-tdep.c (nindy_frame_chain_valid): Use new macro to access
3923 minimal symbol address field.
3924 * parse.c (write_exp_elt, write_exp_string, prefixify_expression,
3925 parse_exp_1): Use new EXP_ELEM_TO_BYTES macro.
3926 * parse.c (write_exp_string, length_of_subexp, prefixify_expression):
3927 Use new BYTES_TO_EXP_ELEM macro.
3928 * parse.c (write_exp_bitstring): New function to write packed
3929 bitstrings into the expression element vector.
3930 * parse.c (length_of_subexp, prefixify_subexp): Add case for
3931 OP_BITSTRING.
3932 * parser-defs.h (struct stoken): Document that it is used for
3933 OP_BITSTRING as well as OP_STRING.
3934 * parser-defs.h (write_exp_bitstring): Add prototype.
81028ab0
FF
3935 * ch-exp.y (BIT_STRING_LITERAL): Change token type to sval.
3936 * ch-exp.y (NUM, PRED, SUCC, ABS, CARD, MAX, MIN, SIZE, UPPER,
3937 LOWER, LENGTH): New tokens for keywords.
3938 * ch-exp.y (chill_value_built_in_routine_call, mode_argument,
3939 upper_lower_argument, length_argument, array_mode_name,
3940 string_mode_name, variant_structure_mode_name): New non-terminals
3941 and productions.
3942 * ch-exp.y (literal): Useful production for BIT_STRING_LITERAL.
3943 * ch-exp.y (match_bitstring_literal): New lexer support function
3944 to recognize bitstring literals.
3945 * ch-exp.y (tokentab6): New token table for 6 character keywords.
3946 * ch-exp.y (tokentab5): Add LOWER, UPPER.
3947 * ch-exp.y (tokentab4): Add PRED, SUCC, CARD, SIZE.
3948 * ch-exp.y (tokentab3): Add NUM, ABS, MIN, MAX.
3949 * ch-exp.y (yylex): Check tokentab6.
3950 * ch-exp.y (yylex): Call match_bitstring_literal.
81028ab0 3951
76a0ffb4
FF
3952Mon Jan 4 16:54:18 1993 Fred Fish (fnf@cygnus.com)
3953
2eda1cdf
FF
3954 * xcoffexec.c (vmap_symtab): Use new macros to access minimal
3955 symbol name and value fields.
3956
533d1dc7
FF
3957 * c-exp.y (yylex): Make static, to match prototype and other
3958 <lang>-exp.y files.
3959
76a0ffb4
FF
3960 * expression.h (exp_opcode): Add BINOP_MOD.
3961 * eval.c (evaluate_subexp): Handle new BINOP_MOD.
3962 * expprint.c (dump_expression): Handle new BINOP_MOD.
3963 * language.c (binop_type_check): Handle new BINOP_MOD.
3964 * main.c (float_handler): Re-enable float handler when hit.
3965 * valarith.c (language.h): Include, need current_language.
3966 * valarith.c (TRUNCATION_TOWARDS_ZERO): Define default macro
3967 for integer divide truncates towards zero for negative results.
3968 * valarith.c (value_x_binop): Handle BINOP_MOD if seen.
3969 * valarith.c (value_binop): Allow arithmetic operations on
3970 TYPE_CODE_CHAR variables. Add case to handle new BINOP_MOD.
76a0ffb4
FF
3971 * ch-exp.y (operand_4): Add useful actions for MOD and REM.
3972 * ch-exp.y (tokentab3): Add MOD and REM.
3973 * ch-exp.y (yylex): Set innermost_block for symbols found
3974 in local scopes. Return LOCATION_NAME for local symbols.
3975 * ch-lang.c (chill_op_print_tab): Fix MOD entry to use
3976 BINOP_MOD instead of BINOP_REM. Add REM entry, using BINOP_REM.
76a0ffb4 3977
f92743ae
ILT
3978Mon Jan 4 07:35:31 1993 Steve Chamberlain (sac@wahini.cygnus.com)
3979
3980 * command.c (shell_escape, make_command, _initialize_command):
3981 don't create or use fork if CANT_FORK is defined.
3982 * serial.h, ser-go32.c: now compiles, but "the obvious problems of
3983 code written for the IBM PC" remain.
3984 * xm-go32.h: define CANT_FORK
3985
ec25d19b
SC
3986Sun Jan 3 14:24:56 1993 Steve Chamberlain (sac@thepub.cygnus.com)
3987
3988 * remote-sim.c: first attempt at general simulator interface
3989 * remote-hms.c: whitespace
3990 * h8300-tdep.c: (h8300_skip_prologue, examine_prologue):
3991 understand new stack layout. (print_register_hook): print ccr
3992 register in a fancy way.
3993
fb6e675f
FF
3994Sun Jan 3 14:16:10 1993 Fred Fish (fnf@cygnus.com)
3995
3996 * eval.c (language.h): Include.
3997 * eval.c (evaluate_subexp_with_coercion): Only coerce arrays
3998 to pointer types when the current language is C. It loses for
3999 other languages when the lower index bound is nonzero.
4000 * valarith.c (value_subscript): Take array lower bounds into
4001 account when performing subscripting operations.
4002 * valops.c (value_coerce_array): Add comment describing why
4003 arrays with nonzero lower bounds are dealt with in value_subscript,
4004 rather than in value_coerce_array.
4005
54bbbfb4
FF
4006Sat Jan 2 12:16:41 1993 Fred Fish (fnf@cygnus.com)
4007
1188fbbf
FF
4008 * ch-exp.y (FLOAT_LITERAL): Add token.
4009 * ch-exp.y (literal): Add FLOAT_LITERAL.
4010 * ch-exp.y (match_float_literal): New lexer routine.
4011 * ch-exp.y (convert_float): Remove.
4012 * ch-exp.y (yylex): Call match_float_literal.
4013 * ch-exp.y (yylex): Match single '.' after trying
4014 to match floating point literals.
1188fbbf 4015
54bbbfb4
FF
4016 * eval.c (evaluate_subexp): Add case MULTI_SUBSCRIPT.
4017 * expprint.c (print_subexp): Rename BINOP_MULTI_SUBSCRIPT to
4018 MULTI_SUBSCRIPT.
4019 * expprint.c (dump_expression): New function for dumping
4020 expression vectors during gdb debugging.
4021 * expression.h (BINOP_MULTI_SUBSCRIPT): Name changed to
4022 MULTI_SUBSCRIPT and moved out of BINOP range.
4023 * expression.h (DUMP_EXPRESSION): New macro that calls
4024 dump_expression if DEBUG_EXPRESSIONS is defined.
4025 * m2-exp.y (BINOP_MULTI_SUBSCRIPT): Changed to MULTI_SUBSCRIPT.
4026 * parse.c (length_of_subexp, prefixify_subexp): Change
4027 BINOP_MULTI_SUBSCRIPT to MULTI_SUBSCRIPT.
4028 * parse.c (parse_exp_1): Call DUMP_EXPRESSION before and after
4029 prefixify'ing the expression.
4030 * printcmd.c (print_command_1): Add comment.
54bbbfb4
FF
4031 * ch-exp.y (expression_list): Add useful actions.
4032 * ch-exp.y (value_array_element): Add useful actions.
4033 * ch-exp.y (array_primitive_value): Add production.
4034 * ch-exp.y (yylex): Recognize ',' as a token.
54bbbfb4 4035
ea81b10d
DZ
4036Fri Jan 1 18:22:02 1993 david d `zoo' zuhn (zoo at cirdan.cygnus.com)
4037
4038 * Makefile.in: pass prefix and exec_prefix via FLAGS_TO_PASS,
4039 POSIXize the recursive makes (make [variable assignments] target{s})
4040
7532cf10
FF
4041Fri Jan 1 11:56:23 1993 Fred Fish (fnf@cygnus.com)
4042
4043 * tm-sun4sol2.h (CPLUS_MARKER): Remove, now set in tm-sysv4.h.
4044 * tm-sysv4.h (CPLUS_MARKER): By default, g++ uses '.' as the
4045 CPLUS_MARKER for all SVR4 systems, so follow suit.
4046 * defs.h (strdup_demangled): Remove prototype.
4047 * dwarfread.c (enum_type, synthesize_typedef): Use new macro
4048 SYMBOL_INIT_LANGUAGE_SPECIFIC.
4049 * dwarfread.c (new_symbol): Use SYMBOL_INIT_DEMANGLED_NAME.
4050 * minsyms.c (install_minimal_symbols, prim_record_minimal_symbol,
4051 prim_record_minimal_symbol_and_info): Use new macro
4052 SYMBOL_INIT_LANGUAGE_SPECIFIC.
4053 * minsyms.c (install_minimal_symbols): Use new macro
4054 SYMBOL_INIT_DEMANGLED_NAME.
4055 * stabsread.c (define_symbol): Use new macro
4056 SYMBOL_INIT_DEMANGLED_NAME.
4057 * symfile.c (add_psymbol_to_list, add_psymbol_addr_to_list):
4058 Use new macro SYMBOL_INIT_DEMANGLED_NAME.
4059 * symfile.h (ADD_PSYMBOL_VT_TO_LIST): Use new macro
4060 SYMBOL_INIT_DEMANGLED_NAME.
4061 * symmisc.c (dump_msymbols, dump_symtab, print_partial_symbol):
4062 SYMBOL_DEMANGLED_NAME now tests language itself.
4063 * symtab.c (COMPLETION_LIST_ADD_SYMBOL): SYMBOL_DEMANGLED_NAME
4064 now tests language itself.
4065 * symtab.h (SYMBOL_CPLUS_DEMANGLED_NAME): New macro that does
4066 what SYMBOL_DEMANGLED_NAME used to do, directly access the C++
4067 mangled name member in the language dependent portion of a symbol.
4068 * symtab.h (SYMBOL_DEMANGLED_NAME): New macro that returns the
4069 mangled name member appropriate for a symbol's language.
4070 * symtab.h (SYMBOL_SOURCE_NAME, SYMBOL_LINKAGE_NAME,
4071 SYMBOL_MATCHES_NAME, SYMBOL_MATCHES_REGEXP):
4072 SYMBOL_DEMANGLED_NAME now tests language itself.
4073 * symtab.h (SYMBOL_INIT_LANGUAGE_SPECIFIC): New macro that
4074 initializes language dependent portion of symbol.
4075 * symtab.h (SYMBOL_INIT_DEMANGLED_NAME): New macro that
4076 demangles and caches the demangled form of symbol names.
4077 * utils.c (fputs_demangled, fprint_symbol): Use current language
4078 to select an appropriate demangling algorithm.
4079 * utils.c (strdup_demangled): Remove, no longer used.
7532cf10
FF
4080 * symtab.h (SYMBOL_CHILL_DEMANGLED_NAME): New macro that directly
4081 access the Chill mangled name member in the language dependent
4082 portion of a symbol.
4083 * ch-lang.c (chill_demangle): New function, simple demangler.
4084 * defs.h (chill_demangle): Add prototype.
4085 * symtab.h (language_dependent_info): Add struct for Chill.
7532cf10 4086
6e50aeb4 4087For older changes see ChangeLog-92
bd5635a1
RP
4088\f
4089Local Variables:
4090mode: indented-text
4091left-margin: 8
4092fill-column: 74
4093version-control: never
4094End:
This page took 0.35757 seconds and 4 git commands to generate.