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