* Makefile.in: Use $(objdir)/tcl and $(objdir)/tk if they are
[deliverable/binutils-gdb.git] / gdb / ChangeLog
CommitLineData
cd2df226
SG
1Tue Nov 1 16:41:12 1994 Stu Grossman (grossman@cygnus.com)
2
3 * Makefile.in: Use $(objdir)/tcl and $(objdir)/tk if they are
4 available.
5 * configure.in (ENABLE_CLIBS): Use $(TCL) and $(TK) instead of
6 -ltcl and -ltk.
7 * gdbtk.c: Get rid of lots of unnecessary #includes.
8 * (gdbtk_init): Use ConnectionNumber macro instead of referencing
9 Display structure directly.
10 * gdbtk.tcl: Change exit button to quit button (makes shebs
11 happy).
12
c50e36c2
PS
13Tue Nov 1 13:00:46 1994 Peter Schauer (pes@regent.e-technik.tu-muenchen.de)
14
15 * c-valprint.c (c_value_print): Check for plain literal `char'
16 target type when suppressing `(char *)' output for strings.
17
7047c1d1
SS
18Mon Oct 31 19:19:51 1994 Stan Shebs (shebs@andros.cygnus.com)
19
20 * coffread.c (coff_symfile_init): Remove unused local abfd.
21 * utils.c [NO_MMALLOC] (mmalloc, mrealloc): Define and use size_t
22 instead of long, for compatibility with mmalloc.h.
23
9ed8604f
PS
24Sat Oct 29 02:40:40 1994 Peter Schauer (pes@regent.e-technik.tu-muenchen.de)
25
26 * top.c (line_completion_function): Renamed from
27 symbol_completion_function, takes the line buffer and the
28 point in the line buffer as additional arguments.
29 (readline_line_completion_function): New function, interface
30 between readline and line_completion_function.
31 (init_main): Use it.
32 (complete_command): Use line_completion_function instead of
33 abusing rl_line_buffer. Free completion strings after printing
34 them.
35 * symtab.c (completion_list_add_name): Recheck for duplicates
36 if we intend to add a modified symbol.
37
38 * gdbtypes.h (cplus_struct_type): nfn_fields_total no longer
39 includes the number of methods from the baseclasses.
40 * stabsread.c (attach_fn_fields_to_type): No longer add the
41 number of methods from the baseclasses to TYPE_NFN_FIELDS_TOTAL,
42 the baseclass type might not have been completely filled in yet.
43 * symtab.c (total_number_of_methods): New function to compute
44 the total number of methods for a type, including the methods
45 from baseclasses.
46 (decode_line_1): Use it instead of TYPE_NFN_FIELDS_TOTAL to
47 allocate the symbol array for find_methods.
48
49 * stabsread.c (scan_file_globals): Add default case to minimal
50 symbol type switch, to avoid gcc -Wall warnings.
51
52 * config/rs6000/tm-rs6000.h (INIT_EXTRA_FRAME_INFO):
53 Don't test for zero backchain pointer to recognize a signal
54 handler frame, if read() gets interrupted by a signal, the
55 backchain will be non zero.
56 (SIG_FRAME_FP_OFFSET): Move to here from rs6000-tdep.c,
57 improve comment.
58 (SIG_FRAME_PC_OFFSET): New definition.
59 (FRAME_SAVED_PC): Return saved pc from sigcontext if this
60 is a signal handler frame.
61 * rs6000-tdep.c (function_frame_info): Do not error out
62 if we can't access the instructions.
63
64 * config/rs6000/tm-rs6000.h (CONVERT_FROM_FUNC_PTR_ADDR):
65 New definition to get the function address from a function pointer.
66 * valops.c (find_function_addr): Use it when calling a user
67 function through a function pointer.
68
b7966a5a
SS
69Fri Oct 28 16:16:52 1994 Stan Shebs (shebs@andros.cygnus.com)
70
71 * Makefile.in (MMALLOC_DIR): New definition.
72 (MMALLOC): Use MMALLOC_DIR.
73 (MMALLOC_CFLAGS): Look in MMALLOC_DIR for mmalloc.h.
74 (OPCODES): Remove gratuitous "./".
75 * defs.h (mmalloc.h): Include.
76 (mmalloc, mrealloc, etc): Remove decls.
77 (cplus_demangle, cplus_demangle_opname): Remove decls.
78
c5197511
SG
79Wed Oct 26 15:41:07 1994 Stu Grossman (grossman@cygnus.com)
80
81 * defs.h, gdbtk.c, main.c, top.c: Change sense and name of
82 no_windows variable. Now called use_windows, and defaults to off
83 (for compatibility).
84
62fad389
JK
85Wed Oct 26 12:20:53 1994 Jim Kingdon <kingdon@cygnus.com>
86
87 * coffread.c (coff_symtab_read): If we get the address from
88 target_lookup_symbol, set the section to -2 not SECT_OFF_BSS.
89 (coff_symtab_read): Set value and section of symbol that
90 process_coff_symbol returns.
91
870ae9e6
C
92Tue Oct 25 09:53:04 1994 J.T. Conklin (jtc@phishhead.cygnus.com)
93
94 * config/i386/tm-nbsd.h: Enable longjmp support.
95
d2985684
PS
96Sat Oct 22 03:41:13 1994 Peter Schauer (pes@regent.e-technik.tu-muenchen.de)
97
98 * valarith.c (value_binop): Take care of ANSI `value preserving'
99 rule, which was not addressed by the previous change.
100
101 * rs6000-tdep.c (skip_prologue): Handle `mr r31,r1', which is
102 generated by gcc-2.6, as a synonym for `oril r31,r1,0'.
103
104 * TODO: Remove item about RS/6000 shared libraries.
105
479f0f18
SG
106Thu Oct 20 17:35:45 1994 Stu Grossman (grossman@cygnus.com)
107
108 * defs.h, infrun.c (wait_for_inferior), top.c: Call
109 target_wait_hook to allow GUI to handle blocking for inferior. Call
110 call_command_hook in execute_command to provide means for wrapping
111 commands with GUI state change updates.
112 * gdbtk.c (gdb_cmd): Force GUI into idle mode when errors occur.
113 * (gdb_stop): New tcl command to stop the target process.
114 * (x_event, gdbtk_wait): Allow GUI to interrupt gdb out of target
115 waits.
116 * (gdbtk_call_command): Wrapper around command processing to
117 alert GUI of target state changes.
118 * (gdbtk_init): Get the fd of X server for doing async
119 notification of X events (via x_event). Setup new hooks.
120 * gdbtk.tcl: Add scrollbars to assembly and command windows.
121 * Change window foreground & background colors.
122 * Create margin tag for breakpoints in source and assembly windows.
123 * Add new routines to be invoked when target state changes to/from
124 idle.
125 * Add start of expression window.
126 * Change bindings of mouse button 1 in assembly and source window
127 to just set or clear breakpoints when in the margin tag.
128 * Change shape of register window to be more vertical to better
129 reflect it's contents.
130 * Add stop button.
131 * Cleanup some code around command window bindings.
132
133 * infrun.c (wait_for_inferior): Make sure
134 through_sigtramp_breakpoint is non-null before deleting.
135
e1f49ff3
C
136Thu Oct 20 10:26:43 1994 J.T. Conklin (jtc@phishhead.cygnus.com)
137
138 * config/powerpc/ppc-nw.mt (TDEPFILES): Removed exec.o.
139
b4b5c9e9
JK
140Thu Oct 20 06:56:07 1994 Jim Kingdon (kingdon@lioth.cygnus.com)
141
142 * Makefile.in (coffread.o): Depend on target.h.
143 (remote-vx.o): Depend on gdb-stabs.h objfiles.h symfile.h $(bfd_h).
144
91dc42c5
JK
145Wed Oct 19 22:49:31 1994 Jim Kingdon (kingdon@lioth.cygnus.com)
146
147 * TODO: Fix typo.
148
3a470454
JK
149Wed Oct 19 11:32:15 1994 Jim Kingdon <kingdon@cygnus.com>
150
151 * objfiles.c (objfile_relocate): When relocating ->sections, use
152 objfile not symfile_objfile.
153
154 * symtab.h, minsyms.c (minsyms_sort): New function.
155 * objfiles.c (objfile_relocate): Call it.
156
157 * remote-vx.c (vx_add_symbols): Call breakpoint_re_set.
158
159 * objfiles.c, objfiles.h (objfile_to_front): New function.
160 * remote-vx.c (vx_add_symbols): Call it.
161
162 * coffread.c (coff_symtab_read): Handle common symbols the same
163 way that partial-stab.h does.
164
165Wed Oct 19 21:06:12 1994 Rob Savoye (rob@cirdan.cygnus.com)
166
167 * hppa-tdep.c: Remove include files a.out.h, ioctl.h, and
168 machine/psl.h. These are host files.
169
1e1e7a7a
JK
170Wed Oct 19 15:13:51 1994 Jim Kingdon (kingdon@lioth.cygnus.com)
171
172 * objfiles.h (struct objfile): Fix comment--minimal_symbol_count
173 does *not* include the terminating NULL msymbol.
174
fa52d491
RS
175Tue Oct 18 20:53:29 1994 Rob Savoye <rob@darkstar.cygnus.com>
176
177 * monitor.c (monitor_load_srec,monitor_make_srec): Add an asrecord
178 loader that reads files using BFD and converts it on the fly.
179
180Mon Oct 17 18:52:06 1994 Rob Savoye <rob@darkstar.cygnus.com>
181
182 * monitor.c (set_loadtype_command): Fixed so it doesn't core dump.
183 * monitor.c (monitor_load): check the load type and load the file
184 accordingly. Default to gr_load_image().
185 * monitor.c (monitor_load_ascii_srec): Load an ascii file in
186 srecord format by downloading to the monitor.
187 * w89k-rom.c, op50n-rom.c: set supported load types.
188
e7b5942b
JK
189Mon Oct 17 10:29:08 1994 Jim Kingdon (kingdon@lioth.cygnus.com)
190
191 * Makefile.in (ALLDEPFILES): Remove xcoffexec.c.
192 * Makefile.in: Remove xcoffexec.o rule.
193
194 * exec.c (exec_file_command): Add comment.
195
196 Fix data and bss relocation for VxWorks 5.1:
197 * remote-vx.c (vx_add_symbols): New function.
198 (vx_load_command, add_symbol_stub): Call it instead of
199 symbol_file_add.
200 (vx_wait): Remove comment which was wrong to useless.
201 * remote-vx.c: Reindent much of file.
202 * coffread.c (cs_to_section, find_targ_sec): New functions.
203 (process_coff_symbol): Set SYMBOL_SECTION to result
204 from cs_to_section.
ace354ea 205 (coff_symtab_read): Call cs_to_section and deal with result
e7b5942b
JK
206 rather than assuming sections are in a certain order. Deal with
207 BSS.
208 * coffread.c: Remove text_bfd_scnum variable.
209
62a64dde
SS
210Sat Oct 15 16:55:48 1994 Stan Shebs (shebs@andros.cygnus.com)
211
212 * corelow.c: Format to standard.
213 (core_close): Use name instead of bfd_filename.
214
e080a68f
JK
215Fri Oct 14 10:29:08 1994 Jim Kingdon (kingdon@lioth.cygnus.com)
216
217 * exec.c (map_vmap): Cast return from xmalloc to its proper type,
218 not to PTR.
219
220 * symfile.c (reread_symbols): Include bfd_errmsg string in error
221 message if bfd_close fails.
222 * exec.c (exec_close), solib.c (clear_solib), corelow.c
223 (core_close), objfiles.c (free_objfile), irix5-nat.c
9de0904c
JK
224 (clear_solib), osfsolib.c (clear_solib), remote-utils.c
225 (gr_load_image): Check for errors from bfd_close.
e080a68f
JK
226 * solib.c (look_for_base), remote-utils.c (gr_load_image),
227 remote-udi.c (download), corelow.c (core_open), symfile.c
228 (symfile_bfd_open), symfile.c (generic_load): Add comment
229 regarding error from bfd_close.
230 * remote-udi.c (download), remote-utils.c (gr_load_image): Add
231 comment about bogus handling of errors from bfd_openr.
232 * exec.c (exec_close): Add comment regarding memory leak and
233 dangling reference to vp->name.
234
07aa9fdc
PS
235Sat Oct 15 03:43:00 1994 Peter Schauer (pes@regent.e-technik.tu-muenchen.de)
236
237 * eval.c (evaluate_subexp): Make fnptr a LONGEST instead
238 of using longest_to_int.
239
240 * infcmd.c (run_stack_dummy): Reinstate set_current_frame call,
241 mips and alpha targets need the real breakpoint pc for
242 creating the breakpoint frame.
243
244 * stack.c (return_command): Cast return value to the return
245 type of the function from which we return.
246 * values.c (set_return_value): Pass VALUE_CONTENTS unmodified
247 to STORE_RETURN_VALUE.
248
249 * symtab.c (lookup_symbol): Remove search for `static mangled
250 symbols', the search for `static symbols' already looks for
251 mangled and demangled symbols via lookup_block_symbol.
252
253 * valarith.c (value_binop): Use ANSI C arithmetic conversions
254 when performing integral evaluations, implement BINOP_EQUAL and
255 BINOP_LESS.
256 (value_equal, value_less): Use value_binop to perform the
257 comparison if both operands have TYPE_CODE_INT.
258
259 * rs6000-tdep.c (pop_frame): Make sure all registers are valid,
260 as they are written back later. Handle sp restore for frameless
261 functions. Use fdata.nosavedpc instead of fdata.frameless to
262 determine if the pc has been saved.
263 (function_frame_info): Handle `mr r31,r1', which is generated by
264 gcc-2.6, as a synonym for `oril r31,r1,0'.
265 (skip_trampoline_code): Handle shared library trampolines.
266 * xcoffread.c (read_xcoff_symtabs): Record XMC_GL symbols with
267 their real name. Enables setting of breakpoints in shared libraries
268 before the executable is run.
269
df3cf84a
RS
270Fri Oct 14 19:39:47 1994 Rob Savoye <rob@darkstar.cygnus.com>
271
272 * monitor.h, remote-mon.c: Hack up to so the old ROM monitor
273 interface code still works with the new ROM monitor
274 structures. Fake out a couple of fields.
275
f4eb9968
SS
276Fri Oct 14 14:54:37 1994 Stan Shebs (shebs@andros.cygnus.com)
277
278 * h8500-tdep.c (target_read_sp, target_write_sp, target_read_pc,
279 target_write_pc, target_read_fp, target_write_fp): Rename to
280 h8500_read_sp, etc.
281 (h8500_read_pc, h8500_write_pc): Add pid argument.
282 * config/h8500/tm-h8500.h (TARGET_READ_SP, TARGET_WRITE_SP,
283 TARGET_READ_PC, TARGET_WRITE_PC, TARGET_READ_FP, TARGET_WRITE_FP):
284 Change to match functions above.
285
f3601320
JK
286Thu Oct 13 13:24:29 1994 Jim Kingdon (kingdon@lioth.cygnus.com)
287
be9d82b8
JK
288 * NEWS: Add item about if and while.
289
f3601320
JK
290 * .gdbinit: Restore `end'; it was not excess. Reindent
291 list-objfiles to make this clear. Comment out all of
292 list-objfiles because old gdb's choke on it.
293
b0e4cdbb
ILT
294Wed Oct 12 23:19:08 1994 Ian Lance Taylor <ian@sanguine.cygnus.com>
295
296 * config/mips/tm-bigmips64.h: Just define TARGET_BYTE_ORDER and
297 include tm-mips64.h.
298
806f810b
SS
299Wed Oct 12 18:02:17 1994 Stan Shebs (shebs@andros.cygnus.com)
300
b5bfe299
SS
301 * Makefile.in (ANNOTATE_OBS): New definition.
302 (COMMON_OBS): Add exec.o.
303 (annotate.o): Remove extra compile rule.
304 * config/*/*.mh, config/*/*.mt: Remove exec.o from *DEPFILES lists
305 everywhere.
306
468794fe
SS
307 * .gdbinit: Remove excess `end'.
308
806f810b
SS
309 * exec.c: Merge in RS6000 support from xcoffexec.c.
310 (symfile.h, objfiles.h, xcoffsolib.h): Include.
311 (vmap): New global variable.
312 (exec_close): Close and free objects in vmap chain.
313 (exec_file_command) [IBM6000_TARGET]: Set up initial vmap.
314 (bfdsec_to_vmap, map_vmap): Moved here from xcoffexec.c.
315 (exec_files_info): Print vmap information.
316 * xcoffexec.c: Remove.
317 * config/rs6000/rs6000.mt, config/rs6000/rs6000lynx.mt
318 (TDEPFILES): Use exec.o instead of xcoffexec.o.
319 * TODO: Remove pertinent items.
320
746eb2ac
JL
321Wed Oct 12 10:08:19 1994 Jeff Law (law@snake.cs.utah.edu)
322
323 * partial-stab.h (N_TEXT): Delete GDB_TARGET_IS_HPPA kludge; they
324 are no longer needed as of gcc-2.6.0.
325
60e86a67
ILT
326Tue Oct 11 15:51:01 1994 Ian Lance Taylor <ian@sanguine.cygnus.com>
327
328 * lynx-nat.c (child_wait): Correct handling of byte reversed SPARC
329 Lynx wait status.
330 (fetch_core_registers): Don't try to fetch a register if
331 regmap maps it to -1.
332 * sparc-tdep.c (sparc_frame_find_saved_regs): Use FRAME_SAVED_I0
333 and FRAME_SAVED_L0 when setting saved_regs_addr. SPARC Lynx
334 stores the registers in a weird order.
335
87888df6
JK
336Sat Oct 8 20:59:13 1994 Jim Kingdon (kingdon@lioth.cygnus.com)
337
338 * blockframe.c (reinit_frame_cache): Reinstate select_frame call
339 if inferior_pid is nonzero.
340
76212295
PS
341Sat Oct 8 04:27:21 1994 Peter Schauer (pes@regent.e-technik.tu-muenchen.de)
342
343 Speed up GDB startup time by not demangling partial symbols.
344 * symfile.h (ADD_PSYMBOL_VT_TO_LIST),
345 symfile.c (add_psymbol_to_list, add_psymbol_addr_to_list):
346 No longer demangle partial symbols.
347 * symtab.c (lookup_symbol, list_symbols): Handle mangled
348 variables, e.g. C++ static members, via the minimal symbols.
349
350 Handle reordered functions in an objfile, for Irix 5.2 shared
351 libraries.
352 * objfiles.h (OBJF_REORDERED): New bit in the objfile flags,
353 set if the functions in an objfile are reordered.
354 * mdebugread.c (parse_partial_symbols): Detect reordered
355 functions in an objfile.
356 * symtab.c (find_pc_psymtab, find_pc_symtab): Use expensive
357 lookup algorithm if the functions in the objfile are reordered.
358
359 * xcoffexec.c (exec_close): If the current target has a copy
360 of the exec_ops sections, reflect the freeing of the sections
361 in current_target.
362
363 * valops.c (call_function_by_hand): Use `sizeof dummy1', not
364 `sizeof dummy', for constructing the call dummy code.
365
366 * config/sparc/tm-sparc.h: Add PARAMS declarations to all
367 function declarations.
368 * sparc-tdep.c (sparc_pop_frame): Cast result of
369 read_memory_integer to CORE_ADDR when passing it to PC_ADJUST.
370
371 * irix5-nat.c (enable_break): Set breakpoint at the entry point
372 of the executable, to handle the case where main resides in a
373 shared library.
374 * irix5-nat.c (solib_create_inferior_hook): Reset stop_soon_quietly
375 after shared library symbol reading, to get rid of a warning from
376 heuristic_proc_start if the startup code has no symbolic debug info.
377
378 * breakpoint.h (struct breakpoint): Add new fields language
379 and input_radix, to enable breakpoint resetting with the
380 proper language and radix.
381 * breakpoint.c (set_raw_breakpoint): Initialize them.
382 (breakpoint_re_set_one): Use them when resetting the breakpoint.
383 (breakpoint_re_set): Preserve current language and input_radix
384 across breakpoint_re_set_one calls.
385
386 * symtab.c (decode_line_1): Do not build a canonical line
387 specification for `*expr' line specifications.
388
389 * breakpoint.h (bpstat_stop_status): Fix prototype declaration.
390
16726dd1
JK
391Fri Oct 7 08:48:18 1994 Jim Kingdon (kingdon@lioth.cygnus.com)
392
393 The point of these changes is to avoid reading the frame pointer
394 and stack pointer during stepping, to speed things up.
395 A. Changes to not select a frame until we need a selected frame:
396 * blockframe.c (flush_cached_frames): Call select_frame (NULL, -1).
397 * infrun.c (wait_for_inferior): Move call to select_frame back to
398 normal_stop. This reverts a change of 13 Apr 94 (it says Jeff
399 Law, but the change was my idea); the only reason for that change
400 was so we could save and restore the selected frame in
401 wait_for_inferior, and now that flush_cached frames clears the
402 selected frame, that should work OK now.
403 B. Changes to not create a current_frame until we need one:
404 * blockframe.c (get_current_frame): If current_frame is NULL, try
405 to create an innermost frame.
406 * sparc-tdep.c (sparc_pop_frame), infcmd.c (run-stack_dummy),
407 infrun.c (wait_for_inferior), thread.c (thread_switch),
408 convex-tdep.c (set_thread_command), a29k-tdep.c (pop_frame),
409 alpha-tdep.c (alpha_pop_frame), convex-xdep.c (core_file_command),
410 h8300-tdep.c (h8300_pop_frame), h8500-tdep.c (h8300_pop_frame),
411 hppa-tdep.c (hppa_pop_frame), i386-tdep.c (i386_pop_frame),
412 i960-tdep.c (pop_frame), m68k-tdep.c
413 (m68k_pop_frame), mips-tdep.c (mips_pop_frame), rs6000-tdep.c
414 (push_dummy_frame, pop_dummy_frame, pop_frame), sh-tdep.c
415 (pop_frame), config/arm/tm-arm.h (POP_FRAME),
416 config/convex/tm-convex.h (POP_FRAME), config/gould/tm-pn.h
417 (POP_FRAME), config/ns32k/tm-merlin.h (POP_FRAME),
418 config/ns32k/tm-umax.h (POP_FRAME), config/tahoe/tm-tahoe.h
419 (POP_FRAME), config/vax/tm-vax.h (POP_FRAME): Don't
420 call create_new_frame.
421 * corelow.c (core_open), altos-xdep.c (core_file_command),
422 arm-xdep.c (core_file_command), gould-xdep.c (core_file_command),
423 m3-nat.c (select_thread), sun386-nat.c (core_file_command),
424 umax-xdep.c (core_file_command): Don't call create_new_frame; do
425 call flush_cached_frames.
426 * blockframe.c (reinit_frame_cache): Don't call create_new_frame
427 or select_frame.
428 C. Changes to get rid of stop_frame_address and instead only
429 fetch the frame pointer when we need it.
430 * breakpoint.c (bpstat_stop_status): Remove argument
431 frame_address; use FRAME_FP (get_current_frame ()).
432 * infrun.c (wait_for_inferior): Don't pass frame pointer to
433 bpstat_stop_status.
434 * infrun.c (wait_for_inferior): Use FRAME_FP (get_current_frame
435 ()) instead of stop_frame_address.
436 * infrun.c (save_inferior_status, restore_inferior_status),
437 inferior.h (struct inferior_status): Don't save and restore
438 stop_frame_address.
439 * inferior.h, infcmd.c, thread.c (thread_switch), m3-nat.c
440 (select_thread): Remove stop_frame_address and uses thereof.
441 D. Same thing for the stack pointer.
442 * infrun.c (wait_for_inferior): Remove stop_sp and replace
443 uses thereof with read_sp ().
444 E. Change to eliminate one nasty little spot where we were
445 wanting to know the frame pointer from before the current step
446 (idea from GDB 3.5, which saved my ass, because my other ideas of
447 how to fix it were very baroque).
448 * infrun.c: Remove prev_frame_address.
449 * infrun.c (wait_for_inferior, step_over_function): Use
450 step_frame_address instead of prev_frame_address.
451 F. Same basic idea for the stack pointer.
452 * inferior.h, infcmd.c: New variable step_sp.
453 * infcmd.c (step_1, until_next_command): Set it.
454 * infrun.c: Remove prev_sp and replace uses by step_sp.
455 * infrun.c (wait_for_inferior): If we get out of the step
456 range, then set step_sp to the current stack pointer before we
457 start going again.
458
b83ed019
ILT
459Fri Oct 7 12:17:17 1994 Ian Lance Taylor <ian@sanguine.cygnus.com>
460
461 * top.c (target_byte_order_auto): New static variable.
462 (set_endian): Mention that ``auto'' is permitted.
463 (set_endian_auto): New static function.
464 (show_endian): Change message based on target_byte_order_auto.
465 (set_endian_from_file): New function.
466 (init_main): Add command ``auto'' to endianlist.
467 * exec.c (exec_file_command): Call set_endian_from_file.
468 * defs.h (set_endian_from_file): Declare.
469
c9228cfe
C
470Thu Oct 6 18:10:41 1994 J.T. Conklin (jtc@phishhead.cygnus.com)
471
472 * nlm/i386.c (flush_i_cache): New function, does nothing.
473 (frame_to_registers, registers_to_frame, set_step_traps,
474 clear_step_traps, do_status): Make non-static.
475
476Thu Oct 6 12:26:42 1994 Ian Lance Taylor <ian@sanguine.cygnus.com>
477
478 * config/mips/tm-mips.h (GDB_TARGET_IS_MIPS64): If not already
479 defined, define as 0.
480 (FIX_CALL_DUMMY): Rewrite to remove presumption that host and
481 target are similar.
482 * config/mips/tm-idt.h (TARGET_BYTE_ORDER_SELECTABLE): Define.
483 * config/mips/tm-idtl.h (TARGET_BYTE_ORDER_SELECTABLE): Define.
484 * config/mips/tm-idt64.h (TARGET_BYTE_ORDER_SELECTABLE): Define.
485 (BREAKPOINT): Remove definition.
486 * config/mips/tm-idtl64.h (TARGET_BYTE_ORDER_SELECTABLE): Define.
487 (BREAKPOINT): Remove definition.
488 * config/mips/tm-mips64.h (GDB_TARGET_IS_MIPS64): Define with a
489 value of 1, rather than without a value.
490 * config/mips/tm-bigmips64.h (GDB_TARGET_IS_MIPS64): Likewise.
491 * mips-tdep.c: Rewrite uses of GDB_TARGET_IS_MIPS64 to switch at
492 run time rather than at compile time.
493
494 * remote-mips.c (break_insn): Remove.
495 (BREAK_INSN, BREAK_INSN_SIZE): Define.
496 (mips_insert_breakpoint): Use BREAK_INSN, not break_insn.
497 (mips_remove_breakpoint): Likewise.
498
499 * defs.h: If TARGET_BYTE_ORDER_SELECTABLE is defined by tm.h,
500 define TARGET_BYTE_ORDER as target_byte_order, and declare
501 target_byte_order as an extern int, and define BITS_BIG_ENDIAN as
502 a test of TARGET_BYTE_ORDER.
503 * top.c: Several additions if TARGET_BYTE_ORDER_SELECTABLE is
504 defined:
505 (endianlist, target_byte_order): New variables.
506 (set_endian, set_endian_big, set_endian_little): New functions.
507 (show_endian): New function.
508 (init_cmd_lists): Initialize endianlist.
509 (init_main): Add commands ``set endian big'', ``set endian
510 little'', and ``show endian''.
511 * a29k-pinsn.c: Rewrite uses of TARGET_BYTE_ORDER and
512 BITS_BIG_ENDIAN to switch at run time rather than at compile time.
513 * coffread.c, dwarfread.c, findvar.c, mips-tdep.c: Likewise.
514 * remote-os9k.c, stabsread.c, valarith.c, valprint.c: Likewise.
515 * values.c: Likewise.
516
5bb8c3ea 517Wed Oct 5 11:41:24 1994 J.T. Conklin (jtc@phishhead.cygnus.com)
621e4c97 518
140b35b3
C
519 * nlm/configure.in: ${gdb_host_cpu} defaults to ${host_cpu}.
520
621e4c97 521 * nlm/Makefile.in: Get rid of NWINCLUDES.
2d912322 522 * config/{alpha,powerpc}/gdbserve.mt: Remove NWINCLUDES.
5bb8c3ea 523 User should now configure with --with-headers.
621e4c97 524
3bb27ebf
JK
525Mon Oct 3 07:48:34 1994 Jim Kingdon (kingdon@lioth.cygnus.com)
526
527 * gdbserver/server.c (main): Silently accept all unrecognized
528 requests and send back a zero length acknowledge. That is what
529 *-stub.c do and is what remote.c expects.
530
a91b6ec8
PS
531Mon Oct 3 05:11:47 1994 Peter Schauer (pes@regent.e-technik.tu-muenchen.de)
532
533 * corelow.c (core_open): Copy the modified to_sections_end
534 vector from current_target to core_ops too.
535
536 * gdbserver/server.c (main): Silently accept query requests
537 and send back a zero length acknowledge.
538
496b2222
C
539Fri Sep 30 17:17:21 1994 J.T. Conklin (jtc@phishhead.cygnus.com)
540
621e4c97 541 * nlm/Makefile.in: Don't define NWINCLUDES.
496b2222
C
542 * config/{alpha,powerpc}/gdbserve.mt: define NWINCLUDES.
543
d3006726
JK
544Fri Sep 30 15:59:55 1994 Jim Kingdon (kingdon@lioth.cygnus.com)
545
546 * gdbserver/low-lynx.c (create_inferior): Pass all 4 args to ptrace.
547
a5732a30
JK
548Fri Sep 30 06:42:42 1994 Ian Lance Taylor (ian@cygnus.com)
549
550 * lynx-nat.c (child_wait): Use status.w_status, not status, in
551 arithmetic. status is a `union wait'.
6adffcd8
JK
552
553 * config/nm-lynx.h (PTRACE_ARG3_TYPE): Define to int, not char *.
554
555 * lynx-nat.c (child_wait): Pass fourth argument to ptrace.
556
e90bd60d
JK
557Thu Sep 29 08:22:27 1994 Jim Kingdon (kingdon@lioth.cygnus.com)
558
559 * xcoffread.c (read_xcoff_symtab): Fix comment for yesterday's change.
560
ab93997d
JK
561Wed Sep 28 17:48:18 1994 Jim Kingdon (kingdon@lioth.cygnus.com)
562
563 * coffread.c (complete_symtab): If last_source_file is set upon
564 entry, free it.
565
d4cedfe4
JK
566Wed Sep 28 08:59:14 1994 Jim Kingdon (kingdon@cygnus.com)
567
67b9f394
JK
568 * xcoffread.c (read_xcoff_symtab, case C_FILE):
569 Set main_aux before using it.
570
331c1003
JK
571 * xcoffexec.c (exec_close): If quitting, don't call clear_symtab_users.
572
d4cedfe4
JK
573 * xcoffread.c (read_xcoff_symtab): Process XTY_LD symbols we were
574 ignoring before. But continue to ignore XMC_DS.
575
78751d4f
PS
576Mon Sep 26 02:59:00 1994 Peter Schauer (pes@regent.e-technik.tu-muenchen.de)
577
578 * defs.h (misc_command_type): Remove trailing comma from
579 enumerator list.
580
471fb8d8
JL
581Sun Sep 25 23:19:58 1994 Jeff Law (law@snake.cs.utah.edu)
582
583 * hppa-tdep.c (frame_saved_pc): Fix thinko in code to dig saved pc
584 out of an interrupt frame.
585
ac57e5ad
SS
586Sun Sep 25 12:50:17 1994 Stan Shebs (shebs@andros.cygnus.com)
587
588 * infcmd.c (do_registers_info) [INVALID_FLOAT]: Only use if
589 defined.
590 * values.c (unpack_double) [INVALID_FLOAT]: Ditto.
591 * mips-tdep.c (mips_print_register): Don't test float validity.
592 * config/a29k/tm-a29k.h, config/alpha/tm-alpha.h,
593 config/arm/tm-arm.h, config/convex/tm-convex.h,
594 config/h8300/tm-h8300.h, config/h8500/tm-h8500.h,
595 config/i386/tm-i386v.h, config/i386/tm-sun386.h,
596 config/i960/tm-i960.h, config/m68k/tm-m68k.h,
597 config/m88k/tm-m88k.h, config/mips/tm-mips.h,
598 config/ns32k/tm-merlin.h, config/ns32k/tm-nbsd.h,
599 config/ns32k/tm-ns32km3.h, config/ns32k/tm-umax.h,
600 config/pa/tm-hppa.h, config/pyr/tm-pyr.h,
601 config/rs6000/tm-rs6000.h, config/sh/tm-sh.h,
602 config/sparc/tm-sparc.h, config/z8k/tm-z8k.h (INVALID_FLOAT):
603 Remove definition.
604
605Sun Sep 25 06:07:37 1994 Jim Kingdon (kingdon@lioth.cygnus.com)
606
607 * TODO: Remove item about adding general multi-threaded stuff;
608 this is done.
609 Remove item about specifying arbitrary locations of stack frames
610 (this works on some machines).
611 Remove item about debugging functions without a frame pointer
612 (this works on some machines).
613 Remove item about re-writing macros which handle frame chaining and
614 frameless functions. They have been re-written at least once
615 since that item was written.
616 Remove item about gdb catching SIGINT when attached; this is done.
617 Remove item about having list_command not read symbols--why bother?
618
718bccf1
SS
619Sat Sep 24 17:40:10 1994 Stan Shebs (shebs@andros.cygnus.com)
620
621 * TODO: Append contents of Projects file.
622 * Projects: Remove.
623
9137a6f4
PS
624Sat Sep 24 01:47:25 1994 Peter Schauer (pes@regent.e-technik.tu-muenchen.de)
625
626 * corelow.c (add_solib_stub): Remove copying of to_sections,
627 pass current_target to SOLIB_ADD. The Sep 10 change failed
628 if SOLIB_ADD errored out, or if SOLIB_ADD was trying to access
629 target memory.
630 * corelow.c (core_open): After reading the shared libraries,
631 copy the modified to_sections vector from current_target to
632 core_ops, so that core_close can free it later.
633 * config/rs6000/nm-rs6000.h, rs6000-nat.c (xcoff_relocate_core):
634 Pass down target parameter from SOLIB_ADD and use it instead of
635 directly accessing core_ops.
636
84f652b1
C
637Fri Sep 23 14:58:49 1994 J.T. Conklin (jtc@rtl.cygnus.com)
638
639 * solib.c: *BSD systems need <a.out.h> to be included before
640 <link.h>.
641
642 * i386b-nat.c: Add i386_float_info(), etc.
643 * config/i386/nm-nbsd.h: #define FLOAT_INFO.
644
645 * config/nm-nbsd.h: New file, for generic NetBSD native support.
646 * config/i386/nm-nbsd.h: Use it.
647 * config/sparc/nm-nbsd.h: Use it.
648 * config/ns32k/nm-nbsd.h: Use it.
649
650 * configure.in (i386-*-netbsd): Use config/i386/nbsd.m[ht].
651 (ns32k-*-netbsd): Use config/ns32k/nbsd.m[ht].
652 * config/i386/{nbsd.mh,nbsd.mt,nm-nbsd.h,tm-nbsd.h,xm-nbsd.h}:
653 New files, support for NetBSD/i386.
654 * config/ns32k/{nbsd.mh,nbsd.mh,nm-nbsd.h,tm-nbsd.h,xm-nbsd.h}:
655 New files, support for NetBSD/ns32k.
656
940bb1dc
JK
657Tue Sep 20 11:34:27 1994 Jim Kingdon (kingdon@lioth.cygnus.com)
658
84f652b1
C
659 * .gdbinit: Add list-objfiles command.
660
a36a812c
JK
661 * TODO: Reword item regarding NO_STD_REGS.
662
940bb1dc
JK
663 * coffread.c (record_minimal_symbol, coff_read_enum_type,
664 coff_read_struct_type): Allocate on symbol_obstack, not directly
665 via malloc/savestring.
666
40e4117a
SS
667Tue Sep 20 15:42:02 1994 Stan Shebs (shebs@andros.cygnus.com)
668
669 * TODO: Add more items.
670 * tests: Remove the directory and all of its (obsolete) contents.
671
602d41e5
JK
672Tue Sep 20 11:34:27 1994 Jim Kingdon (kingdon@lioth.cygnus.com)
673
674 * coffread.c (init_stringtab): When copying length to stringtab,
675 use target format, not host format, since that is what the rest of
676 the code assumes.
677
d6a62067
C
678Mon Sep 19 15:48:10 1994 J.T. Conklin (jtc@phishhead.cygnus.com)
679
680 * Makefile.in: Removed prelude.o, i386-nlmstub.o, nlmstub.o,
681 nlmstub.nlm, and nlmstub targets. Removed NWSOURCE and
682 NWINCLUDES definitions.
683 * i386-nlmstub.c: Removed.
684
d21437b9
JK
685Mon Sep 19 07:48:36 1994 Peter Schauer (pes@regent.e-technik.tu-muenchen.de)
686
687 * dbxread.c (read_dbx_dynamic_symtab): Cast bfd_asymbol_name to
688 char * (from const char *) before assigning. Don't save string we
689 pass to record_minimal_symbol (it already saves it).
690
a5cffdc4
SG
691Sat Sep 17 17:05:14 1994 Stu Grossman (grossman@cygnus.com)
692
693 * gdbtk.tcl: Let ^U delete lines in the command window.
694
4c664b8d
PS
695Sat Sep 17 02:26:58 1994 Peter Schauer (pes@regent.e-technik.tu-muenchen.de)
696
697 * cp-valprint.c (static_field_print): New variable, controls
698 printing of static members.
699 (_initialize_cp_valprint): New print set subcommand
700 "static-members". Turn on printing of static members by default.
701 (cp_print_value_fields): Print static members if necessary.
702
703 * solib.c: Remove inclusion of libelf.h and elf/mips.h.
704 (elf_locate_base): Use only standard BFD functions to collect
705 information about the .dynamic section. Check for DT_MIPS_RLD_MAP
706 tag only if it got defined via the inclusion of <link.h>.
707
708 * f-exp.y: Write block for OP_VAR_VALUE.
709 * f-valprint.c (info_common_command): Handle `info common'
710 without an argument correctly.
711
712 * c-typeprint.c (c_type_print_base): Handle template constructors.
713 * symtab.c (gdb_mangle_name): Handle template method mangling,
714 get rid of GCC_MANGLE_BUG code, which only applied to gcc-2.2.2.
715
6f52d064
PB
716Fri Sep 16 16:06:08 1994 Per Bothner (bothner@kalessin.cygnus.com)
717
718 * gdbtypes.h (TYPE_INDEX_TYPE): New macro.
719 * ch-typeprint.c, ch-valprint.c: Use TYPE_INDEX_TYPE.
720 * ch-valprint.c (chill_val_print): Pass index type directly
721 (instead of its TYPE_TARGET_TYPE) to print_type_scalar.
722 * stabsread.c (read_type): Don't set TYPE_FLAG_TARGET_STUB
723 if the index type is a stub.
724
7f4a859c
SS
725Fri Sep 16 17:18:44 1994 Stan Shebs (shebs@andros.cygnus.com)
726
727 * config/i386/{i386aix.mh, i386bsd.mh, i386lynx.mh, i386sco.mh,
728 i386sco4.mh, i386sol2.mh, i386v.mh, i386v32.mh, i386v4.mh,
729 ncr3000.mh, ptx.mh, ptx4.mh}, config/m68k/{altos.mh, apollo68v.mh,
730 delta68.mh, dpx2.mh, hp300bsd.mh, hp300hpux.mh, m68klynx.mh,
731 m68kv4.mh}, config/m88k/{delta88.mh, delta88v4.mh},
732 config/mips/riscos.mh, config/pa/hppahpux.mh,
40e4117a
SS
733 config/rs6000/rs6000lynx.mh, config/sparc/{sparclynx.mh,
734 sun4sol2.mh}, config/tahoe/tahoe.mh, config/vax/{vaxbsd.mh,
735 vaxult.mh, vaxult2.mh} (REGEX, REGEX1, SYSV_DEFINE): No longer
736 define.
7f4a859c
SS
737 * config/i386/i386sco4.mh (MUNCH_DEFINE): No longer define.
738
637b1661
SG
739Fri Sep 16 15:40:34 1994 Stu Grossman (grossman@cygnus.com)
740
741 * defs.h (QUIT): Call interactive_hook to allow GUI to interrupt.
742 Also, add decl for symtab_to_filename.
743 * gdbtk.c: Replace calls to full_filename with symtab_to_filename.
744 * gdbtk.tcl: New routine pc_to_line replaces in line code. New
745 routine decr replaces in line code.
746 * (create_file_win): Use catch to handle open failures more
747 elegantly. Also, create special window to display file open
748 failure message. Move opening of file prior to creation of text
749 widget.
750 * (create_asm_win): Add PC as argument. We now base disassembly
751 on PC instead of function name, since function names can be
752 ambiguous (usually seen with shared libs). Also, use catch to
753 simplify code where we don't care about failures.
754 * source.c (symtab_to_filename): New. Returns the file
755 associated with a symtab.
756 * top.c: Define interactive_hook. Called during QUIT to animate
757 the GUI.
758
bdef6b60
PB
759Fri Sep 16 00:14:40 1994 Per Bothner (bothner@kalessin.cygnus.com)
760
576f9770
PB
761 * stabsread.c (read_type): Handle stub types for bitstrings.
762 * stabsread.c (read_array_type): Check for stub domain type
763 using TYPE_FLAG_STUB, not its length.
764 * gdbtypes.c (create_set_type): Handle a stub domain type.
765
bdef6b60
PB
766 * ch-exp.y: Get rid of some extra non-terminals, and move
767 their rules into primitive_value.
ddf54546
PB
768 * parser-defs.h: Add comment about unary postfix operators.
769 * ch-lang.c (chill_op_print_tab): Add '->', postfix and prefix.
bdef6b60
PB
770 * expprint.c (print_subexp): Recognize unary postfix operator.
771
791d4d7d
JM
772Wed Sep 14 18:27:42 1994 Jason Molenda (crash@phydeaux.cygnus.com)
773
774 * remote-hms.c: use remote_debug instead of hms_silent toggle.
775 Add warnings about depreciation of `snoop' cmd.
776
a87594a5
SC
777Wed Sep 14 18:18:58 1994 Steve Chamberlain (sac@jonny.cygnus.com)
778
779 * remote-hms.c (hms_read_inferior_memory): Cope when
780 target sends both \r and \n.
781
2b9fbee4
SS
782Wed Sep 14 17:14:57 1994 Stan Shebs (shebs@andros.cygnus.com)
783
784 * remote-mips.c (mips_error): Place NORETURN macro correctly.
785 * TODO: Add item about START_INFERIOR_TRAPS_EXPECTED.
786
f69ecb9c
JK
787Wed Sep 14 14:26:21 1994 Jim Kingdon (kingdon@lioth.cygnus.com)
788
789 * xcoffread.c (read_xcoff_symtab): Fix obsolete comment about
790 mst_solib_trampoline.
791
792 * f-valprint.c (f_val_print): Change cast of valaddr from
793 CORE_ADDR * to char **, since that is how it is used.
794
795 * dbxread.c (read_dbx_dynamic_symtab): Save copy of symbol names
796 using obsavestring, and pass that to prim_record_minimal_symbol.
797 Having the objfile point to bfd_asymbol_name directly doesn't work
798 if we save and restore a mapped symbol file.
799
335129a9
SG
800Wed Sep 14 00:55:26 1994 Stu Grossman (grossman@cygnus.com)
801
802 * gdbtk.tcl: Add ref counts to breakpoint tags.
803 * Put quotes around function name in disassemble command to better
804 handle assembler names containing `.'.
805 * Make pclist element 0 be filler to avoid off-by-one problem with
806 line numbers.
807 * Set names of top-level windows.
808 * Add register display window.
809 * Add PC to label of assembly window.
810
c9e7a4b4
RS
811Tue Sep 13 18:23:26 1994 Rob Savoye (rob@darkstar.cygnus.com)
812
2b9fbee4 813 * w89k-rom.c, op50-rom.c, monitor.c, config/pa/hppapro.mt: New files
c9e7a4b4
RS
814 to add a generic ROM monitor interface, and support file for the
815 WinBond W89K and the Oki OP50N PA based target boards.
816
8532893d
SG
817Tue Sep 13 08:59:04 1994 Stu Grossman (grossman@cygnus.com)
818
819 * gdbtk.c (gdbtk_flush gdbtk_fputs): Buffer up output to make
820 disassembly more efficient.
821 * (breakpoint_notify): Include pc in gdbtk_tcl_breakpoint
822 callback.
823 * (gdb_loc): Include pc in return value. Also, return function
824 name if arg was specified.
825 * (gdb_cmd_stub): Call gdb_flush to drain internal GDB buffers
826 after command completes.
827 * (gdbtk_init): Improve error handling.
828
829 * gdbtk.tcl: Add lots of comments. Clean up code.
830 * (gdbtk_tcl_fputs): Make output window redirectable.
831 * Add assembly window, and breapoint support.
832 * Make button 1 in margin toggle breakpoints.
833 * Use stippling to indicate breakpoint disabling.
834
30cbfbe2
JL
835Sun Sep 11 22:34:57 1994 Jeff Law (law@snake.cs.utah.edu)
836
837 * config/pa/tm-hppa.h (REGISTER_NAMES): Use r26-r23 for arg0-arg3.
838
54d478cd
PS
839Sun Sep 11 04:36:47 1994 Peter Schauer (pes@regent.e-technik.tu-muenchen.de)
840
841 * irix5-nat.c, osfsolib.c, solib.c (solib_add): Simplify last
842 change by replacing `symbols_added' with `so_last'.
843 * mdebugread.c (parse_external, parse_partial_symbols): Ignore
844 global common symbols, they will be resolved by the runtime loader.
845 * mdebugread.c (parse_symbol, parse_partial_symbols, cross_ref):
846 Handle scSCommon like scCommon symbols.
847
26a859ec
PS
848Sat Sep 10 01:43:28 1994 Peter Schauer (pes@regent.e-technik.tu-muenchen.de)
849
850 * corelow.c (add_solib_stub): Copy to_sections changes from
851 core_ops to current_target after adding the shared libraries.
852 * partial-stab.h (N_EXCL), dbxread.c (add_old_header_file,
853 find_corresponding_bincl_psymtab): Change `repeated header not seen'
854 error to a complaint, simplify complaint.
855 * procfs.c (signalname, errnoname): Make `name' const.
856 * symfile.c (reread_symbols): Use filename from old BFD to
857 reopen the objfile.
858 * values.c (record_latest_value): Don't record value in the
859 history chain until we are sure there won't be an error.
860
ec7cac38
C
861Fri Sep 9 15:52:09 1994 J.T. Conklin (jtc@phishhead.cygnus.com)
862
b35be510
C
863 * nlm/Makefile.in: remove MMALLOC, READLINE, TERMCAP, and other
864 cruft.
865
ec7cac38
C
866 * config/i386/gdbserve.mt: New file, defs for i386 nlm stub.
867
c4deed18
SC
868Thu Sep 8 17:14:43 1994 Steve Chamberlain (sac@jonny.cygnus.com)
869
870 * remote.c (fromhex): Make error more explicit.
871 (read_frame): Don't print bad checksum information unless
872 remote_debugging. Don't use repeat count unless it's > 0.
873 * remote-e7000.c (expect): When echoing, ignore multiple newlines.
54d478cd
PS
874 (e7000_insert_breakpoint, e7000_remove_breakpoint, target_ops):
875 Optionally cope with BC style breakpoints.
c4deed18
SC
876 (e7000_command): After command send directly to the E7000 mark
877 registers as changed.
878 (why_stop, e7000_wait: Understand BC style stop condition.
879 * sh-tdep.c (sh_skip_prologue): Understand more complicated
880 sequences. (frame_find_saved_regs): Likewise.
881 * config/h8500/tm-h8500.h (target_write_pc, TARGET_WRITE_PC):
882 Handle extra arg.
883 * config/i386/xm-go32.h (GDBINIT_FILENAME): Set to gdb.ini.
884 (more work here to come)
885 * config/sh/tm-sh.h (EXTRA_FRAME_INFO): Add f_offset and leaf_function
886 fields.
887
f9874160
C
888Thu Sep 8 16:15:34 1994 J.T. Conklin (jtc@rtl.cygnus.com)
889
890 * sparclite/Makefile.in: Assorted stuff needed for eload.
891
892 * sparclite/eload.c: Merge in command line argument parsing and
893 error message handling improvements orignally made to aload.c.
894
e52bfe0c
JL
895Wed Sep 7 23:24:50 1994 Jeff Law (law@snake.cs.utah.edu)
896
897 * defs.h (enum misc_command_type, command_control_type): Enums
898 for describing the command and control types.
899 (struct command_line): Add new fields to keep track of the command
900 type and body associated with the command.
901 * top.c: Include value.h. Delete whitespace at the end of lines.
902 (build_command_line, get_command_line): New functions.
903 (execute_control_command, while_command, if_command): Likewise.
904 (realloc_body_list, read_next_line): Likewise.
905 (recurse_read_control_structure): Likewise.
906 (execute_user_command): Call execute_control_command.
907 (read_command_lines): Simplify by calling read_next_line, call
908 read_control_structure for "if" and "while" commands.
909 (free_command_lines): Free new fields in the command structure.
910 (define_command): Reset control_level to zero.
911 (init_main): Install command handlers for "if" and "while" commands.
912
22d7f91e
SS
913Tue Sep 6 16:24:07 1994 Stan Shebs (shebs@andros.cygnus.com)
914
915 * c-typeprint.c (c_type_print_varspec_prefix,
916 c_type_print_varspec_suffix): Add cases for Fortran type codes.
917 * eval.c (evaluate_subexp): For OP_ARRAY expressions in Fortran,
918 call f77_value_literal_string instead.
919 * f_exp.y: Include <string.h>, move include of parser-defs.h.
920 (parse_number): Translate 'd' floats to 'e' so atof() works.
921 (yylex): Remove unused variables.
922 * f-lang.c: Include <string.h>.
923 (get_bf_for_fcn): Remove unused variable.
924 * f-typeprint.c (f_type_print_varspec_prefix,
925 f_type_print_varspec_suffix): Remove unused
926 variables, add cases to switch statements.
927 (f_type_print_base): Remove unused variables.
928 * f-valprint.c (gdbcore.h, command.h): Include.
929 (f77_get_dynamic_lowerbound, f77_get_dynamic_upperbound):
930 Call read_memory_integer with correct number of arguments.
931 (f77_get_dynamic_upperbound): Call f77_get_dynamic_lowerbound
932 with correct argument type.
933 (f77_print_array): Removed unused array array_size_array.
934 (f_val_print): Don't use a CORE_ADDR as a char *.
935 * valops.c (value_cast): Handle COMPLEX and BOOL types.
936 (value_assign): Handle Fortran literal string and complex values.
937 (f77_cast_into_complex, f77_assign_from_literal_string,
938 f77_assign_from_literal_complex): New functions.
939
42fca93e
PB
940Mon Sep 5 14:46:41 1994 Per Bothner (bothner@kalessin.cygnus.com)
941
942 * ch-typeprint.c (chill_type_print_base): Make TYPE_CODE_RANGE
943 case more robust.
944
6573c898
SS
945Sun Sep 4 16:06:34 1994 Stan Shebs (shebs@andros.cygnus.com)
946
b50e3283
SS
947 * i960-tdep.c (signal.h): Don't include.
948
43c99855
SS
949 * cxux-nat.c (target_is_m88110): Remove definition.
950
6573c898
SS
951 * configure.in (config/nm-empty.h): If cross only, use instead
952 of config/nm-trash.h.
953 * config/nm-trash.h: Remove.
954 * config/nm-empty.h: New file.
955 * config/i386/nm-m3.h: New file, includes config/nm-m3.h.
956 * config/mips/nm-m3.h: New file, includes config/nm-m3.h.
957 * config/m68k/nm-sysv4.h: New file, includes config/nm-sysv4.h.
958 * config/mips/nm-sysv4.h: New file, includes config/nm-sysv4.h.
959 * config/sparc/nm-sysv4.h: New file, includes config/nm-sysv4.h.
960
4b078dc3
SG
961Fri Sep 2 19:11:40 1994 Stu Grossman (grossman@cygnus.com)
962
6573c898 963 * configure.in: Don't symlink to gdbtk.tcl if it's already there.
4b078dc3 964
b40fa612
C
965Fri Sep 2 17:35:55 1994 J.T. Conklin (jtc@phishhead.cygnus.com)
966
6573c898 967 * configure.in: No longer look for nm, tm, and xm headers in
b40fa612
C
968 config/<header>; they are always in config/<cpu>/<header>.
969
7f4c8595
SS
970Fri Sep 2 16:40:03 1994 Stan Shebs (shebs@andros.cygnus.com)
971
972 * objfiles.c (allocate_objfile): Add the newly-created objfile to
973 the end of the list of objfiles, instead of at the beginning.
974
975 * xcoffread.c (allocate_include_entry): New function, abstracted
976 from code in record_include_begin.
977 (record_include_begin, record_include_end): Call it.
978
979 * blockframe.c (reinit_frame_cache): Test inferior_pid instead of
980 target_has_stack to decide whether to create a real stack frame
981 for the cache.
982
983 * coffread.c (process_coff_symbol) [CXUX_TARGET]: Ignore vendor
984 section.
985 * config/m88k/tm-cxux.h (CXUX_TARGET): Define.
986
987 * h8300-tdep.c: Include "dis-asm.h" instead of <dis-asm.h>.
988
989Fri Sep 2 09:51:46 1994 J.T. Conklin (jtc@cygnus.com)
990
991 * config/sparc/tm-nbsd.h: Add #defines to map NetBSD struct and
992 field names into what is expected by sparc-nat.c.
993
6a2eecac
PB
994Thu Sep 1 17:32:54 1994 Per Bothner (bothner@kalessin.cygnus.com)
995
996 * c-typeprint.c (c_typedef_print): Add missing Chill support.
997
9feea506
SG
998Thu Sep 1 15:41:21 1994 Stu Grossman (grossman@cygnus.com)
999
1000 * rs6000-pinsn.c (print_insn): Use powerpc disassembler when
1001 doing Power PC.
1002 * config/powerpc/tm-ppc-nw.h: Define GDB_TARGET_POWERPC.
1003
1004 * config/i386/i386lynx.mh, config/m68k/m68klynx.mh,
1005 config/rs6000/rs6000lynx.mh, config/sparc/sparclynx.mh: Enable
1006 ser-tcp.
1007
1008 * nlm/Makefile.in: Get rid of NWSOURCE.
1009 * nlm/alpha-io.S (inVti, outVti): Remove extraneous ldha's.
1010 * nlm/gdbserve.o: Add dummy __main routine.
1011 * nlm/gdbserve.def: Turn on debug.
1012
ac32cd08
JK
1013Thu Sep 1 12:36:39 1994 Jim Kingdon (kingdon@cygnus.com)
1014
1015 * config/xm-nbsd.h: Don't define SET_STACK_LIMIT_HUGE; it is obsolete.
1016
331d515a
C
1017Thu Sep 1 11:01:40 1994 J.T. Conklin (jtc@rtl.cygnus.com)
1018
1019 * config/tm-nbsd.h: New file, support for all NetBSD targets.
7f4c8595 1020 * config/xm-nbsd.h: fix typo.
331d515a
C
1021 * config/sparc/{nm,tm,xm}-nbsd.h: New files, renamed from
1022 {nm,tm,xm}-sparcnbsd.h to conform to prefered file naming
1023 conventions.
1024 * configure.in: (sparc-*-netbsd): use config/sparc/nbsd.m[ht].
1025
05781513
JM
1026Wed Aug 31 14:40:33 1994 Jason Molenda (crash@phydeaux.cygnus.com)
1027
1028 * remote-udi.c (udi_read_inferior_memory,udi_write_inferior_memory):
1029 change typeo in error msg (`inferrior' -> `inferior').
1030
c6623d2c
JK
1031Wed Aug 31 09:17:02 1994 Jim Kingdon (kingdon@cygnus.com)
1032
1e75b5f5
JK
1033 * inflow.c (set_sigint_trap, clear_sigint_trap): Check for
1034 attach_flag (this check was performed by the callers). Also check
1035 inferior_thisrun_terminal.
1036 * inftarg.c (child_wait), lynx-nat.c (child_wait),
1037 procfs.c (wait_fd), symm-nat.c (child_wait): Don't check
1038 attach_flag in deciding whether to call set_sigint_trap and
1039 clear_sigint_trap.
1040
c6623d2c
JK
1041 * value.h (struct value): Change literal_data from PTR to char *,
1042 since that is the way it is used.
1043
31b2518a
JL
1044Tue Aug 30 21:56:54 1994 Jeff Law (law@snake.cs.utah.edu)
1045
1046 * somread.c (som_symfile_read): Force unwinds to be re-read after
1047 reading in a new partial symbol table.
1048
bad5ceb8
SS
1049Tue Aug 30 13:14:16 1994 Stan Shebs (shebs@andros.cygnus.com)
1050
1051 * config/h8500/tm-8500.h (DONT_USE_REMOTE): Remove definition,
1052 an obsolete conditional.
1053 * config/pa/tm-hppa.h (BREAKPOINT) [KERNELDEBUG]: Remove use,
1054 an obsolete conditional.
1055 * config/rs6000/rs6000.mh, config/rs6000/rs6000.mt: Clean up
1056 comments.
1057
6d8dfa64
SS
1058Mon Aug 29 14:39:42 1994 Stan Shebs (shebs@andros.cygnus.com)
1059
1060 * Makefile.in (ns32k-opcode.h): Remove reference.
1061 (ns32k-pinsn.o): Update dependencies.
1062 * ns32k-opcode.h: Remove file.
1063 * ns32k-pinsn.c (print_insn): Call version in libopcodes, remove
1064 all other code in this file.
1065
dd55ca70
SG
1066Mon Aug 29 12:04:07 1994 Stu Grossman (grossman@cygnus.com)
1067
1068 * nlm/configure.in: Stop using cpu.c. Put it in TDEPFILES instead.
1069 * config/alpha/gdbserve.mt (TDEPFILES): Remove alpha-patch.o.
1070
1071 * nlm/Makefile.in: Add rule for .S.o.
1072 * nlm/aio.h: Protect from multiple inclusions.
1073 * nlm/alpha-io.S: Remove everything we don't need.
1074 * nlm/{alpha-patch.c, alpha-patch.h, alpha-uart.c, alpha-uart.h}:
1075 Remove, no longer needed.
1076 * nlm/alpha.c: Merge in lots of stuff from previous files.
1077 * nlm/alpha.h: Don't #include alpha-patch.h. Make
1078 breakpoint_insn extern.
1079 * Move stuff from alpha-patch.h into here.
1080
1081 * config/alpha/gdbserve.mt (TDEPFILES): Get rid of alpha-uart.o.
1082
0c070b57
JK
1083Mon Aug 29 11:34:34 1994 Jim Kingdon (kingdon@cygnus.com)
1084
1085 * annotate.c (annotate_starting): Flush output.
1086
46d185d3
PS
1087Sat Aug 27 23:32:43 1994 Peter Schauer (pes@regent.e-technik.tu-muenchen.de)
1088
1089 * symfile.c (symbol_file_add): Move reinit_frame_cache call to
1090 the callers of symbol_file_add. Gets rid of heuristic fence-post
1091 warnings on mips and alpha targets when the PC resides in a shared
1092 library which is not yet read in.
1093 * coff-solib.c (coff_solib_add), cxux-nat.c (add_shared_symbol_files),
1094 irix5-nat.c (solib_add), osfsolib.c (solib_add),
1095 remote-vx.c (vx_open), solib.c (solib_add):
1096 Add call to reinit_frame_cache after all shared libraries are read in.
1097 * remote-udi.c (udi_load), remote-vx.c (vx_load_command),
1098 symfile.c (symbol_file_command, add_symbol_file_command):
1099 Add call to reinit_frame_cache after symbol_file_add.
1100
74d319e0
C
1101Wed Aug 24 17:45:14 1994 J.T. Conklin (jtc@cygnus.com)
1102
1103 * config/xm-nbsd.h: New file, support for all NetBSD ports.
d7758a22
C
1104 * config/sparc/{nm-sparcnbsd.h,tm-sparcnbsd.h,xm-sparcnbsd.h,
1105 sparcnbsd.mh,sparcnbsd.mt}: New files, support for NetBSD/sparc.
74d319e0
C
1106 * configure.in: Add sparc-*-netbsd target.
1107
3d19ff2b
SS
1108Wed Aug 24 13:17:34 1994 Stan Shebs (shebs@andros.cygnus.com)
1109
1110 * remote-vx.c (vx_attach): Interpret the command argument as an
1111 unsigned long.
1112
7382b3b1
ILT
1113Wed Aug 24 13:08:08 1994 Ian Lance Taylor (ian@sanguine.cygnus.com)
1114
1115 * configure.in: Change i[34]86 to i[345]86.
1116 * nlm/configure.in: Likewise.
1117 * gdbserver/configure.in: Likewise.
1118
bdf218b3
C
1119Wed Aug 24 09:41:09 1994 J.T. Conklin (jtc@cygnus.com)
1120
1121 * configure.in (i386-*-netware): Automatically configure nlm
1122 subdir.
1123
513d7836
C
1124Tue Aug 23 17:51:13 1994 J.T. Conklin (jtc@cygnus.com)
1125
1126 * nlm/gdbserve.c: conditionalize header file inclusion for either
1127 NetWare 4.0 or PIN targets.
1128 * nlm/i386.c: include appropriate header files.
1129 * nlm/prelude.c: define TERMINATE_BY_UNLOAD for NetWare 4.0
1130 targets.
1131
8edf0016
SG
1132Tue Aug 23 16:54:16 1994 Stu Grossman (grossman@cygnus.com)
1133
1134 * nlm/ppc.c (set_step_traps clear_step_traps): Cleanups.
1135 * nlm/gdbserve.def: Autoload clib.
1136
e44075d3
JK
1137Tue Aug 23 12:05:19 1994 Jim Kingdon (kingdon@cygnus.com)
1138
8edf0016
SG
1139 * breakpoint.c (condition_command): Call breakpoints_changed.
1140
e44075d3
JK
1141 * gdbtypes.h: Declare f77_create_literal_string_type and
1142 f77_create_literal_complex_type.
1143 * valops.c (f77_value_literal_string, f77_value_substring,
1144 f77_value_literal_complex): Use xmalloc not malloc.
1145 * valops.c (f77_value_literal_string, f77_value_substring):
1146 Make addr char * not CORE_ADDR.
1147 * value.h (struct value): Add new field literal_data of aligner union.
1148 (VALUE_LITERAL_DATA): Use it.
1149 * f-lang.h: Declare find_common_for_function.
1150 * value.h, valops.c: Split VALUE_SUBSTRING_START into memaddr and
1151 myaddr fields of a union. Don't overload it with the frame field
1152 (not sure this is necessary; I'm not sure what lval_* codes
1153 VALUE_SUBSTRING_* can be used with).
1154
2656b343
SS
1155Mon Aug 22 11:45:01 1994 Stan Shebs (shebs@andros.cygnus.com)
1156
0cf4b3b7
SS
1157 * config/a29k/{a29k-kern.mt,a29k-udi.mt,a29k.mt,ultra3.mh,
1158 ultra3.mt}: Clean up comments, remove no-longer-used definitions.
1159
886955e7
SS
1160 * rs6000-nat.c: Include libbfd.h again, needed until reference
1161 to bfd_cache_lookup is cleaned out.
1162
2656b343
SS
1163 * config/i386/linux.mh (XM_CLIBS): Add -lm.
1164
be5e6fff
SC
1165Mon Aug 22 10:42:15 1994 Steve Chamberlain (sac@jonny.cygnus.com)
1166
1167 Work to reduce the interrupts-off duration when running in DOS.
1168 * ser-go32.c: (dos_async_ready): See if anything is in the buffer.
1169 (dos_async_rx): rewrite to unpack as many characters from the
1170 asynctsr as possible into a local buffer.
1171
a91a6192
SS
1172Fri Aug 19 14:55:45 1994 Stan Shebs (shebs@andros.cygnus.com)
1173
1174 Initial Fortran language support, adapted from work by Farooq Butt
1175 (fmbutt@engage.sps.mot.com).
1176 * Makefile.in: Add Fortran-related files and dependencies.
1177 * defs.h (language_fortran): New language enum.
1178 * language.h (_LANG_fortran): Define.
1179 (MAX_FORTRAN_DIMS): Define.
1180 * expression.h: Reformat to standard.
1181 (MULTI_F77_SUBSCRIPT, OP_F77_UNDETERMINED_ARGLIST,
1182 OP_F77_LITERAL_COMPLEX, OP_F77_SUBSTR): New expression opcodes.
1183 * gdbtypes.h (TYPE_CODE_COMPLEX, TYPE_CODE_LITERAL_COMPLEX,
1184 TYPE_CODE_LITERAL_STRING): New type codes.
1185 (type): New fields upper_bound_type and lower_bound_type.
1186 (TYPE_ARRAY_UPPER_BOUND_TYPE, TYPE_ARRAY_LOWER_BOUND_TYPE,
1187 TYPE_ARRAY_UPPER_BOUND_VALUE, TYPE_ARRAY_LOWER_BOUND_VALUE): New
1188 macros.
1189 (builtin_type_f_character, etc): Declare.
1190 * value.h (VALUE_LITERAL_DATA, VALUE_SUBSTRING_START): Define.
1191 * f-exp.y: New file, Fortran expression grammar.
1192 * f-lang.c: New file, Fortran language support functions.
1193 * f-lang.h: New file, Fortran language support declarations.
1194 * f-typeprint.c: New file, Fortran type printing.
1195 * f-valprint.c: New file, Fortran value printing.
1196 * eval.c (evaluate_subexp): Add code for new expression opcodes,
1197 fix wording of error message.
1198 * gdbtypes.c (f77_create_literal_complex_type,
1199 f77_create_literal_string_type): New functions.
1200 * language.c (set_language_command): Add Fortran info.
1201 (calc_f77_array_dims): New function.
1202 * parse.c (length_of_subexp, prefixify_subexp): Add cases for new
1203 expression opcodes.
1204 * symfile.c (deduce_language_from_filename): Recognize .f and .F
1205 as Fortran source files.
1206 * valops.c (f77_value_literal_string, f77_value_substring,
1207 f77_value_literal_complex): New functions.
1208
f3806e3b
PS
1209Fri Aug 19 13:35:01 1994 Peter Schauer (pes@regent.e-technik.tu-muenchen.de)
1210
1211 * c-typeprint.c (c_print_type): Assume demangled arguments
46d185d3 1212 if a '(' is found in varstring, looking for ')' at the end of
f3806e3b
PS
1213 varstring did fail with demangled const member functions, which
1214 have a trailing `const'.
1215 * remote.c (get_offsets, putpkt): Change to `char' buffers,
1216 to avoid errors when compiling with DEC c89.
1217 (remote_wait): Cast to `char *' before passing buffer to
1218 fputs_filtered, to avoid errors when compiling with DEC c89.
1219 (remote_wait): Do not return inferior_pid by default, this
1220 statement is never reached, which causes warnings from some
1221 compilers.
1222 * stabsread.c (scan_file_globals): Ignore static minimal symbols.
1223 * symfile.c (load_command): If called with no argument, try
1224 to get the filename from the executable file.
1225 (generic_load): Remove check for NULL filename, it is done
1226 in load_command now.
1227
4cbc4bf1
JL
1228Fri Aug 19 00:40:55 1994 Jeff Law (law@snake.cs.utah.edu)
1229
1230 * hppa-tdep.c (skip_trampoline_code): Revert incorrect change
1231 from June 2, 1994 (what was I thinking?!?). Fix it right this
1232 time.
1233
ef4b379a
C
1234Thu Aug 18 17:01:35 1994 J.T. Conklin (jtc@rtl.cygnus.com)
1235
1236 * nlm/i386.c, nlm/i386.h: New files that contain i386 specific code.
1237
78425afe
SS
1238Thu Aug 18 14:39:46 1994 Stan Shebs (shebs@andros.cygnus.com)
1239
1240 * README: Grammar improvements, clarifications, updates.
1241
b7da2494
SG
1242Wed Aug 17 23:08:53 1994 Stu Grossman (grossman@cygnus.com)
1243
1244 * Makefile.in (TARGET_FLAGS_TO_PASS): Pass down LD_FOR_TARGET and
1245 NLMCONV_FOR_TARGET. (SUBDIRS): Add nlm target.
1246 * configure.in (powerpc-*-netware*): Automatically configure nlm
1247 subdir.
1248 * nlm/Makefile.in: Add {CC NLMCONV LD}_FOR_TARGET. Remove alpha
1249 specific stuff. Make things more configurable.
1250 * nlm/configure.in: Add powerpc-*-netware* target. Use
1251 gdbserve.mt/cpu.c/cpu.h for target stuff. Get rid of tm/xm/nm.h
1252 files.
1253 * nlm/gdbserve.c: Move Alpha specific stuff into other files.
1254 Remove lots of architecture-specific stuff.
1255 * nlm/gdbserve.def: Add new imports.
1256 * nlm/ppc.c, nlm/ppc.h: New files that contain PowerPC specific code.
1257 * nlm/prelude.c: Don't include libhooks.h, get rid of call to
1258 register library.
1259 * nlm/prelude.o: What was this doing here?
a8f6da08
SG
1260 * config/alpha/gdbserve.mt: Defs for alpha nlm stub.
1261 * config/powerpc/gdbserve.mt: Defs for PowerPC nlm stub.
1262 * config/powerpc/ppc-nw.mt: Defs for PowerPC target for GDB.
1263 * config/powerpc/tm-ppc-nw.h: Ditto.
1264
1265 * nlmstub.def: New file, contains imports for 386 nlm stub.
b7da2494 1266
8c074d7a
RS
1267Wed Aug 17 23:17:33 1994 Rob Savoye (rob@darkstar.cygnus.com)
1268
1269 * remote-pa.c: New file for HPPA embedded support. Currently it's
1270 a copy of remote.c.
1271 * config/pa/hppabsd.mt,hppahpux.mt,hppaosf.mt: User remote-pa.c.
1272
ca3c57e5
SS
1273Wed Aug 17 13:19:52 1994 Stan Shebs (shebs@andros.cygnus.com)
1274
1275 * config/m68k/tm-delta68.h (EXTRACT_RETURN_VALUE,
1276 STORE_RETURN_VALUE): Define to use %a0 for pointers.
1277
e1f38ddf
JK
1278Wed Aug 17 07:43:06 1994 Jim Kingdon (kingdon@lioth.cygnus.com)
1279
1280 * remote-mips.c: Remove unused declaration of mips_load.
1281
d696808d
SS
1282Tue Aug 16 16:45:34 1994 Stan Shebs (shebs@andros.cygnus.com)
1283
1284 * coffread.c: General cleanup, and support for section offsets.
1285 (time.h, sys/types.h, libbfd.h): Don't include.
1286 (cur_src_start_addr, cur_src_end_addr): Rename to
1287 current_source_start_addr, current_source_end_addr.
1288 (nlist_stream_global): Remove.
1289 (nlist_bfd_global): New global variable.
1290 (coff_symfile_read): Remove code that gets and uses fileno()
1291 directly.
1292 (read_coff_symtab, enter_linenos, process_coff_symbol): Add
1293 section_offsets parameter, add text/data section offset to
1294 appropriate symbols' values.
1295 (read_one_sym): Use bfd_read instead of fread.
1296 (init_stringtab, init_lineno): Change first parameter to a bfd,
1297 use bfd routines instead of raw I/O.
1298
c8a1505a
JK
1299Tue Aug 16 15:24:03 1994 Jim Kingdon (kingdon@lioth.cygnus.com)
1300
0cec815f
JK
1301 * symtab.c (decode_line_1): If funfirstline and we get a
1302 non-LOC_BLOCK symbol (e.g. variable or type), then error().
1303
c8a1505a
JK
1304 * Makefile.in (TARFILES, NONSRC, SFILES_STAND, SFILES_KGDB):
1305 Remove; unused.
1306 (TAGFILES_NO_SRCDIR): Remove ALLPARAM.
1307 (HFILES_NO_SRCDIR): Remove all files in config sub-directory.
1308 (TAGS): Also pass result of find on config sub-directory to etags.
1309 (ALLPARAM): Remove; now unused.
1310
7de5c5e2
FF
1311Sun Aug 14 13:05:26 1994 Fred Fish (fnf@cygnus.com)
1312
1313 * Makefile.in (VERSION): Bump to 4.13.1
1314 * NEWS, README: Update to match gdb 4.13 release version.
1315
71ed485d
FF
1316Sat Aug 13 08:22:50 1994 Fred Fish (fnf@cygnus.com)
1317
96ff369d
FF
1318 Harris CX/UX support, from Bob Rusk (rrusk@mail.csd.harris.com).
1319 * cxux-nat.c: Remove dangling #else block.
d696808d 1320 (m88k_harris_core_register_addr): New function.
96ff369d 1321
71ed485d
FF
1322 * environ.c (init_environ): If no environment, do nothing.
1323
4fb7359d
SG
1324Fri Aug 12 15:52:37 1994 Stu Grossman (grossman@cygnus.com)
1325
1326 * remote.c (remote_wait): Return inferior_pid instead of 0 for
1327 `W` message.
1328
a9a53e43
C
1329Fri Aug 12 11:47:10 1994 J.T. Conklin (jtc@phishhead.cygnus.com)
1330
f9874160 1331 * sparclite/aload.c (sys_error, error): Use vfprintf for variable
a9a53e43
C
1332 argument lists.
1333
97e7b66f
DE
1334Thu Aug 11 04:06:42 1994 Doug Evans (dje@canuck.cygnus.com)
1335
1336 * defs.h (concat, basename, buildargv, freeargv, strerrno, strsigno,
1337 errno_max, signo_max, strtoerrno, strtosigno): Delete.
1338 Include "libiberty.h" instead.
1339
04dd69e1
FF
1340Wed Aug 10 13:23:47 1994 Rick Sladkey (jrs@world.std.com)
1341
1342 * i386v-nat.c (i386_insert_nonaligned_watchpoint):
1343 add additional argument specifying raw address to permit
1344 proper release of debug registers.
1345 (i386_insert_watchpoint, i386_insert_aligned_watchpoint):
1346 change all callers.
1347
8164ec2e
SG
1348Wed Aug 10 16:13:45 1994 Stu Grossman (grossman@cygnus.com)
1349
1350 * defs.h, top.c: Use `extern' in declarations of GUI hooks, and
1351 define them in top.c. Add comments to the hooks.
1352
1311f8d1
DE
1353Wed Aug 10 15:57:43 1994 Doug Evans (dje@canuck.cygnus.com)
1354
1355 * remote-sim.c (gdbsim_ops): Set `to_insert_breakpoint' and
1356 `to_remove_breakpoint' fields.
1357
ced992e4
JK
1358Wed Aug 10 15:46:03 1994 Jim Kingdon (kingdon@lioth.cygnus.com)
1359
1360 * infcmd.c (run_command): Remove comment suggesting using
1361 target_has_execution instead of inferior_pid.
1362
d48d9a28
KH
1363Wed Aug 10 10:33:20 1994 Kung Hsu (kung@mexican.cygnus.com)
1364
1365 * remote-mips.c (mips_open): add code to handle baud rate.
1366
eca4a350
SG
1367Tue Aug 9 09:44:42 1994 Stu Grossman (grossman@cygnus.com)
1368
1369 * infrun.c (wait_for_inferior): Call target_resume() upon
1370 detection of new processes.
1371
1372 * procfs.c (create_procinfo): Return pointer to new procinfo
1373 structure.
1374 * (do_detach): Spacing & formatting cleanup.
1375 * (procfs_wait): Move wait_again label to ensure that we really
1376 wait again. On exit from fork, release new child from gdbs'
1377 clutches.
1378 * (procfs_set_sproc_trap): Enable trapping of fork and vfork.
1379
1380Mon Aug 8 15:09:32 1994 J.T. Conklin (jtc@phishhead.cygnus.com)
1381
1382 * i386-nlmstub.c (handle_exception): Wait until the thread has
1383 been started before killing the NLM by pointing the PC at
1384 _exit().
1385
0d98155c
PS
1386Sat Aug 6 22:27:30 1994 Peter Schauer (pes@regent.e-technik.tu-muenchen.de)
1387
1388 * config/mips/tm-irix5.h (IN_SIGTRAMP): Redefine for Irix 5,
1389 Irix 5 has a standard _sigtramp signal handler.
1390 * irix5-nat.c (solib_add): Get rid of sigtramp_address handling,
1391 it is not needed for a standard _sigtramp signal handler.
1392 Add shared library sections to the section table of the target
1393 before adding the symbols.
1394 * mips-tdep.c (mips_skip_prologue): Do not skip load immediate
1395 instructions that do not prepare a stack adjustment.
1396 * regex.c (SIGN_EXTEND_CHAR): Update to emacs-19.25 definition,
1397 which does the right thing on machines where `char' is unsigned.
1398
5d621955
SG
1399Fri Aug 5 17:50:59 1994 Stu Grossman (grossman@cygnus.com)
1400
1401 * remote.c (remote_open): Move setting of inferior_pid prior to
1402 call to remote_start_remote. Also use unique value for pid to
1403 avoid confusion with read_register_pid & friends.
1404 * (remote_wait): Return inferior_pid instead of 0 in all cases.
1405
35930134
SS
1406Fri Aug 5 12:23:02 1994 Stan Shebs (shebs@andros.cygnus.com)
1407
1408 * dwarfread.c (bfd.h): Don't include.
1409
d375ce17
C
1410Fri Aug 5 09:08:34 1994 J.T. Conklin (jtc@phishhead.cygnus.com)
1411
1412 * i386-nlmstub.c (handle_exception): Point the PC at _exit() to
1413 kill the program being debugged. KillMe(), the undocumented
1414 call intended for this purpose, causes the server to hang.
1415
284f4ee9
SC
1416Thu Aug 4 16:26:06 1994 Steve Chamberlain (sac@jonny.cygnus.com)
1417
35930134
SS
1418 * remote.c (read_frame): Calculate run length encoded checksum
1419 correctly.
284f4ee9
SC
1420 * config/sh/stub.c: New file.
1421
7e01f50c
SG
1422Thu Aug 4 14:34:12 1994 Stu Grossman (grossman@cygnus.com)
1423
1424 * target.c (find_default_run_target): Make sure to_can_run is set
1425 before calling it.
1426
9da0e790
JMD
1427Thu Aug 4 11:46:27 1994 Jim Kingdon (kingdon@lioth.cygnus.com)
1428
1429 * TODO: Remove note about fast watchpoints and remove obsolete
1430 Mach stuff.
1431
e63d6469
SS
1432Thu Aug 4 11:08:03 1994 Stan Shebs (shebs@andros.cygnus.com)
1433
1434 * config/i386/xm-i386v4.h, config/m68k/xm-m68kv4.h,
1435 config/sparc/xm-sun4sol2.h (NORETURN): Don't define.
1436 * config/m88k/tm-cxux.h (ARCH_NUM_REGS): Undefine before defining.
1437
a1e0ba7a
SG
1438Thu Aug 4 10:26:36 1994 Stu Grossman (grossman@rtl.cygnus.com)
1439
a3ecbe7c
SG
1440 * target.c (add_target): Don't call clean_target on target
1441 vectors anymore.
1442 * (unpush_target): Test for to_close being set before calling.
1443 * (target_xfer_memory, target_info): Check for to_has_memory
1444 before playing with memory.
1445
a1e0ba7a
SG
1446 * remote.c (remote_open): Set inferior_pid to make kill command
1447 happy.
1448 * inflow.c (kill_command): Revert change of Aug 2. Use
1449 inferior_pid to determine whether to print out "The program is not
1450 being run." message.
1451
f4e0e098
JMD
1452Thu Aug 4 07:55:04 1994 Jim Kingdon (kingdon@lioth.cygnus.com)
1453
1454 * config/i386/i386m3.mh (NAT_CLIBS): Add -lmachid and -lnetname.
1455 * m3-nat.c, config/nm-m3.h: #if 0 REQUEST_QUIT stuff.
1456 * m3-nat.c: Pass argument to return_to_top_level.
1457 Declare m3_kill_inferior before use.
1458 (port_chain_insert): In "can't happen" case, abort rather than
1459 setting `mid' to large decimal constant (which gcc warns about).
1460 (get_thread_name): Use cast to convert const char * to char *.
1461 (add_mach_specific_commands): #if 0 "thread break" command.
1462 (m3_trace_him): Call push_target.
1463 (mach_really_wait): New argument pid; remove unused
1464 variable pid.
1465 (intercept_exec_calls): Call target_terminal_init and
1466 target_terminal_inferior once the child execs.
1467 * infrun.c (proceed): Pass argument to PREPARE_TO_PROCEED.
1468
cd4104e0
TL
1469Wed Aug 3 22:41:13 1994 Tom Lord (lord@x1.cygnus.com)
1470
35930134 1471 * procfs.c (procfs_mourn_inferior): don't dereference the
cd4104e0
TL
1472 procinfo pointer after it has been freed.
1473
043b05b2
SS
1474Wed Aug 3 12:05:13 1994 Stan Shebs (shebs@andros.cygnus.com)
1475
0bc2c400
SS
1476 * breakpoint.c (breakpoint_1): Improve pluralization in display
1477 of breakpoint hit counts.
1478
043b05b2
SS
1479 * language.h (struct language_defn): Remove unused field
1480 la_longest_float.
1481 (longest_float): Remove, no longer used.
1482 * language.c (unknown_language_defn, auto_language_defn,
1483 local_language_defn): Remove init of la_longest_float field.
1484 * c-lang.c (c_language_defn, cplus_language_defn,
1485 asm_language_defn): Ditto.
901c2f5f 1486 * ch-lang.c (chill_language_defn): Ditto.
043b05b2
SS
1487 * m2-lang.c (m2_language_defn): Ditto.
1488
356ff909
SS
1489Tue Aug 2 10:58:34 1994 Stan Shebs (shebs@andros.cygnus.com)
1490
1491 * defs.h (bfd_read, bfd_seek): Remove declarations.
1492 * os9kread.c, rs6000-nat.c (libbfd.h): Don't include.
1493
319faf21
C
1494Tue Aug 2 09:50:50 1994 J.T. Conklin (jtc@phishhead.cygnus.com)
1495
1496 * inflow.c (kill_command): Fix a bug which prevented target
1497 programs to be killed.
1498
6f54efdc
SS
1499Mon Aug 1 18:48:47 1994 Stan Shebs (shebs@andros.cygnus.com)
1500
1501 * defs.h: Change two-line declarations to one-line form.
1502 (NORETURN): Define as "volatile" only for older GCCs.
1503 (ATTR_NORETURN): Define for newer GCCs.
f4e0e098 1504 * procfs.c (proc_init_failed): Add ATTR_NORETURN to declaration.
6f54efdc 1505
d2a85f11
JMD
1506Mon Aug 1 16:43:24 1994 Jim Kingdon (kingdon@lioth.cygnus.com)
1507
1508 * breakpoint.c (mention), main.c (fputs_unfiltered): Add comments.
1509 * breakpoint.c (delete_breakpoint, enable_breakpoint,
1510 disable_breakpoint): Don't call breakpoints_changed; it is now
1511 called via the *_breakpoint_hook functions.
1512 * annotate.c (_initialize_annotate, breakpoint_changed): New functions.
1513
5a04f7d1
KH
1514Mon Aug 1 13:38:04 1994 Kung Hsu (kung@mexican.cygnus.com)
1515
1516 * stabsread.c (read_type): Fix a bug in enum size calculation.
1517
edd86fb0
JL
1518Mon Aug 1 01:36:13 1994 Jeff Law (law@snake.cs.utah.edu)
1519
f81eee9d
JL
1520 * hppa-tdep.c (compare_unwind_entries): Add "const" to both
1521 argument types to shut up GCC.
1522
edd86fb0
JL
1523 * hppa-tdep.c (saved_pc_after_call): If the saved PC is in a
1524 linker stub, then return the address the stub will return to.
1525 (frame_saved_pc): Correctly restart the search for the saved
1526 pc when a linker stub is encountered.
1527
1528 * hppa-tdep.c (inst_saves_gr): Handle 16 and 8 bit instruction
1529 register stores emitted by the version 9 HP compilers.
1530 (inst_saves_fr): Relax test for a specific base register (%r1);
1531 this avoids losing with the version 9 HP compilers.
1532 (skip_prologue): Try to skip argument stores emitted by the HP
1533 compilers. It's not perfect, but it's better than before.
1534
43b20641
SG
1535Fri Jul 29 23:20:30 1994 Stu Grossman (grossman@cygnus.com)
1536
1537 * findvar.c (write_pc write_pc_pid): Remove casts to long when
1538 calling write_register_pid.
1539 * (write_register_pid): Add prototype.
1540
205fc02b
SC
1541Fri Jul 29 21:56:23 1994 Steve Chamberlain (sac@jonny.cygnus.com)
1542
1543 * remote.c (read_frame): Split readchar/checksum calculation into
1544 two parts since evaluation order is undefined.
1545
0c18c737
FF
1546Fri Jul 29 13:46:08 1994 Fred Fish (fnf@cygnus.com)
1547
1548 From Kevin A. Buettner (kev@cujo.geg.mot.com).
1549 * Makefile.in (coredep.o): Add inferior.h as dependency.
1550 * inflow.c: Add F_SETOWN to list of defines to check
1551 around code that uses F_SETOWN.
1552
998b321b
C
1553Fri Jul 29 09:59:05 1994 J.T. Conklin (jtc@phishhead.cygnus.com)
1554
1555 * Makefile.in (CC_FOR_TARGET, CXX_FOR_TARGET): If using newlib,
1556 set the -L and -B directory prefixes so we can link with it.
1557
754e5da2
SG
1558Thu Jul 28 14:37:36 1994 Stu Grossman (grossman@cygnus.com)
1559
1560 * Makefile.in (INSTALLED_LIBS, CLIBS, DEPFILES): Add support for
1561 --enable-xxx configure option by adding ENABLE_{CLIBS DEPFILES}
1562 where appropriate.
1563
1564 * General hackery to support alternate user-interface.
1565 * breakpoint.c (mention, delete_breakpoint, enable_breakpoint,
1566 disable_breakpoint): Call hooks for alternate user-interface.
1567 * defs.h: Add declarations for alternate user-interface hooks.
1568 * main.c (main): Add --nw (and --nowindows) options to disable
1569 the GUI.
1570 * (near call to command_loop): Call command_loop_hook if set.
1571 * (fputs_unfiltered): Call fputs_unfiltered_hook if set.
1572 * stack.c: Call print_frame_info_listing_hook if set.
1573 * top.c (gdb_init): Initialize targets.c and utils.c prior to
1574 other files to make sure that calls to error and warning will
1575 work. Call init_ui_hook after everything else.
1576 * utils.c (query): Call query_hook if set.
1577 * (gdb_flush): Call flush_hook if set.
1578 * Change _initialize_utils to initialize_utils cuz we don't use
1579 automatic initialization of utils.c anymore.
1580
1581 * Support for TK GUI.
1582 * Makefile.in: Add rule for gdbtk.o.
1583 * configure.in: Add support for --enable-gdbtk.
1584 * gdbtk.c: New file. Contains support routines for TK interface.
1585 * gdbtk.tcl: New file. Implements GUI policy.
1586
1587 * remote.c: Get rid of #ifdef DONT_USE_REMOTE. It's no longer
1588 necessary.
1589
b98612f1
C
1590Thu Jul 28 14:52:01 1994 J.T. Conklin (jtc@phishhead.cygnus.com)
1591
1592 * Makefile.in (CC_FOR_TARGET, CXX_FOR_TARGET): Use newlib if it is
1593 there and we are using the gcc from the tree.
1594 (LD_FOR_TARGET): Look for ld in ../ld/ld.new.
1595
8aa8690c
FF
1596Thu Jul 28 10:43:36 1994 Fred Fish (fnf@cygnus.com)
1597
1598 * Makefile.in (annotate.o): Add dependencies.
1599
e356aae3
C
1600Wed Jul 27 14:34:42 1994 J.T. Conklin (jtc@phishhead.cygnus.com)
1601
ff59855b
C
1602 * sparclite/aload.c: Added new -q (quiet) option.
1603 return 0 exit status if file was successfully downloaded.
1604
1e47d512
C
1605 * nlm/gdbserve.c: merge in command line argument parsing changes
1606 and bug fixes made to i386-nlmstub.c.
1607
e356aae3
C
1608 * i386-nlmstub.c: The returnLength field must be initialized
1609 before portConfig is passed to AIOGetPortConfiguration.
1610 Compare command line arguments with strnicmp(); args are
1611 case insensitive on netware.
1612
de19d1ed
FF
1613Wed Jul 27 09:24:19 1994 Fred Fish (fnf@cygnus.com)
1614
1615 * Makefile.in (DISTSTUFF): Add definition.
1616 (diststuff): Add for new distribution support.
1617 (gdb.tar.Z, make-proto-gdb.dir, setup-to-dist,
1618 gdb-$(VERSION).tar.Z, make-proto-gdb-1, make-proto-testsuite.dir):
1619 Remove old distribution building rules, now uses standard
1620 distribution support in parent directory Makefile.in.
1621
f6d5d006
JK
1622Tue Jul 26 14:15:53 1994 Jim Kingdon (kingdon@lioth.cygnus.com)
1623
1624 * target.c (push_target): Cast result from xmalloc.
1625
d54b2c50
SS
1626Tue Jul 26 18:20:46 1994 Paul Flinders (ptf@smee)
1627
1628 * elfread.c (elf_symtab_read): Discard compiler labels generated
1629 by the Solaris 2.1/Intel SunPro compiler.
1630
4fc5969d
SG
1631Mon Jul 25 18:19:24 1994 Stu Grossman (grossman@cygnus.com)
1632
1633 * target.c (nomemory): Fix prototype and routine to take correct
1634 args.
1635
1ded65d1
JK
1636Mon Jul 25 15:38:23 1994 Jim Kingdon (kingdon@lioth.cygnus.com)
1637
1638 * Makefile.in (clean): Remove libgdb-files.
1639
9a989b1f
SS
1640Mon Jul 25 11:50:57 1994 Stan Shebs (shebs@andros.cygnus.com)
1641
1642 * coredep.c: Include inferior.h.
1643
159f3816
C
1644Mon Jul 25 11:36:02 1994 J.T. Conklin (jtc@phishhead.cygnus.com)
1645
159f3816
C
1646 * i386-nlmstub.c: Add support for NODE, PORT and BAUD command
1647 line arguments.
1648
557f3a0e
SS
1649Sat Jul 23 14:36:09 1994 Stan Shebs (shebs@andros.cygnus.com)
1650
9e38b2fa
SS
1651 * symfile.c (deduce_language_from_filename): Recognize .S as asm,
1652 .cp as C++, alphabetize better.
1653
557f3a0e
SS
1654 * breakpoint.c (ignore, condition): Move usage note into body of
1655 help text, so first line can be one-line summary.
1656
67e947de
SG
1657Sat Jul 23 00:58:15 1994 Stu Grossman (grossman@cygnus.com)
1658
1659 * target.c (unpush_target): Fix handling of removal of top target.
1660
cad1498f
SG
1661Fri Jul 22 17:30:39 1994 Stu Grossman (grossman@cygnus.com)
1662
1663 * Makefile.in: Add stuff to build nlmstub.
1664 * Add rule for annotate.o to keep Sun make happy.
1665 * configure.in: Add config for powerpc/Netware.
1666
1667 * partial-stab.h (near N_SO): Don't call START_PSYMTAB with null
1668 filename. This speeds up handling of trailing N_SO stabs (they
1669 mark the end of a .o file).
1670
1671 * target.c, target.h: Change the way pushing and popping of
1672 targets work to support target overlays and inheritance.
1673 * corelow.c, hppa-tdep.c, inflow.c, remote-nindy.c, utils.c:
1674 Fixup references to current_target, due to previous changes.
1675
1676 * config/i386/tm-i386nw.h: Enable longjmp support. More work is
1677 needed to get the address of longjmp out of the target.
1678
844750e3
SS
1679Tue Jul 19 13:25:06 1994 Stan Shebs (shebs@andros.cygnus.com)
1680
1681 * main.c: Include <ctype.h>.
1682
b0a0ee52
KH
1683Mon Jul 18 15:32:17 1994 Kung Hsu (kung@mexican.cygnus.com)
1684
1685 * remote-mips.c (mips_readchar): Fix a bug in checking <IDT>
1686 prompt.
1687
b0fbe5a2
SS
1688Mon Jul 18 14:26:35 1994 Stan Shebs (shebs@andros.cygnus.com)
1689
1690 * solib.c (look_for_base): Don't deref exec_bfd if NULL.
1691
0f221a69
FF
1692Sun Jul 17 15:38:36 1994 Fred Fish (fnf@cygnus.com)
1693
005234f5 1694 * Makefile.in (VERSION): Bump to 4.12.4.
0f221a69
FF
1695
1696Sun Jul 17 12:20:35 1994 Stan Shebs (shebs@andros.cygnus.com)
1697
1698 Harris CX/UX support, from Bob Rusk (rrusk@mail.csd.harris.com).
1699 * configure.in (m88*-harris-cxux*): New configuration.
1700 * cxux-nat.c, config/m88k/cxux.mh, config/m88k/cxux.mt,
1701 config/m88k/xm-cxux.h, config/m88k/tm-cxux.h, config/m88k/nm-cxux.h:
1702 New files.
1703 * config/m88k/tm-m88k.h: Add comment about Harris OS.
1704 (TARGET_WRITE_PC): Pass pid through to register writers.
1705
1706 * configure.in (m68*): Put vendor-only-specified host configs
1707 after vendor-and-os-specified configs.
1708 (m68*-atari-sysv4*, m68*-cbm-sysv4*): Replace with m68*-*-sysv4.
1709
1710 * config/m88k/delta88.mh (MUNCH_DEFINE): Remove.
1711 * config/m88k/delta88.mt, config/m88k/delta88v4.mh: Format
1712 consistently.
1713
00306b1e
PS
1714Sat Jul 16 23:39:17 1994 Peter Schauer (pes@regent.e-technik.tu-muenchen.de)
1715
1716 * elfread.c (elf_symtab_read): Handle error return from
1717 bfd_get_dynamic_symtab_upper_bound gracefully.
1718
49b476bd
SS
1719Sat Jul 16 14:43:17 1994 Stan Shebs (shebs@andros.cygnus.com)
1720
62a5dabc
SS
1721 * inferior.h (ARCH_NUM_REGS): New macro, actual number of
1722 registers in use by the inferior.
1723 * coredep.c (fetch_core_registers, register_addr): Use it.
1724 * findvar.c (registers_changed, registers_fetched,
1725 read_register_bytes): Ditto.
1726 * infcmd.c (do_registers_info, registers_info): Ditto.
1727 * infptrace.c (fetch_inferior_registers,
1728 store_inferior_registers): Ditto.
1729 * stack.c (frame_info): Ditto.
1730
1731 * coredep.c (CORE_REGISTER_ADDR): New macro.
1732 (fetch_core_registers): Use it.
1733
49b476bd
SS
1734 * breakpoint.c (ignore, condition): Add usage notes to help strings.
1735 * symfile.c (add-symbol-file): Add usage note to help string.
1736 (add_shared_symbol_files_command): New command.
1737
1738 gcc -Wall lint.
1739 * inferior.h (read_pc_pid): Declare.
1740 * breakpoint.c (watchpoint_check): Cache breakpoint in local
1741 variable b, remove unused variable other_type_used.
1742 * main.c (inferior.h, call-cmds.h): Include.
1743 (gdb_init): Declare.
1744 * remote.c (remote_wait): Return 0 by default.
1745
0568ccb0
SS
1746Fri Jul 15 16:43:33 1994 Stan Shebs (shebs@andros.cygnus.com)
1747
1748 Stop printing at null char option, from Oliver Meyer
1749 (omeyer@i3.informatik.rwth-aachen.de).
1750 * valprint.h, valprint.c (stop_print_at_null): New global.
1751 * valprint.c (_initialize_valprint): New print set subcommand
1752 "null-stop".
1753 * c-valprint.c (c_val_print): If stop_print_at_null is on, and
1754 printing a char array, adjust the number of chars to print.
1755
08f32e32
SS
1756Fri Jul 15 14:33:40 1994 Stan Shebs (shebs@andros.cygnus.com)
1757
1758 From Kevin A. Buettner (kev@cujo.geg.mot.com).
1759 * m88k-tdep.c (examine_prologue): Modified to handle prologues for
1760 pic code in addition to prologues where an instruction from the
1761 prologue gets moved into the delay slot of a branch instruction
1762 immediately following the prologue. A table of potential prologue
1763 instructions (prologue_insn_tbl) is now used for picking apart a
1764 function prologue.
1765 (frame_find_saved_regs): Changed the way in which limit gets set
1766 so that the delay slot of branch instructions immediately
1767 following the prologue gets examined.
1768 (pushed_size, store_parm_word, store_parm, push_parameters,
1769 collect_returned_value): Deleted.
1770
0b0ee55e
PS
1771Fri Jul 15 01:06:00 1994 Peter Schauer (pes@regent.e-technik.tu-muenchen.de)
1772
1773 * infrun.c (wait_for_inferior): Handle stepping into leaf
1774 functions whose prologue consists of gp loading code only.
1775
8e3ff823
SS
1776Thu Jul 14 14:22:12 1994 Stan Shebs (shebs@andros.cygnus.com)
1777
1778 * dbxread.c: Don't include libbfd.h.
1779 * dwarfread.c, elfread.c somread.c: Don't include libbfd.h,
1780 <time.h>, or <sys/types.h>.
1781 * elfread.c (elf_symfile_read): Use only standard BFD functions to
1782 collect information about the stab and stab string sections.
1783
8dbe58d8
KH
1784Thu Jul 14 13:17:39 1994 Kung Hsu (kung@x1.cygnus.com)
1785
1786 * stabsread.c (read_huge_number): handle large unsigned number
1787 for stabs generated by os9k C compiler.
1788
9f577285
SS
1789Wed Jul 13 18:58:15 1994 Stan Shebs (shebs@andros.cygnus.com)
1790
1791 Breakpoint hit counts, from Bob Rusk (rrusk@mail.csd.harris.com).
1792 * breakpoint.h (hit_count): New breakpoint field.
1793 * breakpoint.c (show_breakpoint_hit_counts): New variable.
1794 (clear_breakpoint_hit_counts): New function.
1795 (bpstat_stop_status): Increment the hit count.
1796 (breakpoint_1): Display the hit count.
1797 * infcmd.c (run_command): Reset breakpoint hit counts.
1798 * target.c (generic_mourn_inferior): Don't clear ignore counts if
1799 displaying hit counts.
1800
6d9b8a93
PS
1801Tue Jul 12 12:23:15 1994 Peter Schauer (pes@regent.e-technik.tu-muenchen.de)
1802
1803 * elfread.c (elf_symfile_read): Unconditionally add dynamic
1804 symbols for all symbol files. Makes skipping over the
1805 trampoline code work when stepping from a function in a shared
1806 library into a function in a different shared library for Irix 5.
1807 Other ELF targets do not have enough information in their
1808 dynamic symbol tables to make this work.
1809 (elf_symtab_read): Relocate mst_solib_trampoline address.
1810
02176ddb
SS
1811Mon Jul 11 16:38:49 1994 Stan Shebs (shebs@andros.cygnus.com)
1812
1813 Atari support, from Uwe Seimet (seimet@chemie.uni-kl.de).
1814 * configure.in (m68*-atari-sysv4*): New configuration.
1815 (m68*-cbm-sysv4*): Use m68kv4 instead of amix.
1816 * m68k-tdep.c (R_PS): Define as R_SR if necessary.
1817 * config/m68k/m68kv4.mh, config/m68k/m68kv4.mt,
1818 config/m68k/tm-m68kv4.h, config/m68k/xm-m68kv4.h: New files.
1819 * config/m68k/amix.mh, config/m68k/amix.mt,
1820 config/m68k/tm-amix.h, config/m68k/xm-amix.h: Removed, superseded
1821 by m68kv4 files.
1822
defa6c74
PS
1823Sat Jul 9 16:28:43 1994 Peter Schauer (pes@regent.e-technik.tu-muenchen.de)
1824
1825 * symtab.c (find_function_start_sal): New function to find
1826 the start of a function from a function symbol.
1827 (decode_line_1, decode_line_2): Use it instead of open coded
1828 partial copies of the code.
1829 (list_symbols): Quote symbol name before passing it to
1830 break_command to enable proper handling of mangled symbols.
1831
1832Wed Jul 6 20:22:07 1994 Per Bothner (bothner@kalessin.cygnus.com)
1833
1834 * ch-exp.y (match_simple_name_string): Don't lower-case here.
1835 * ch-exp.y (yylex): First try name lookup using exact name
1836 typed by user; if that fails, try lower-cased name.
1837
cef0333e
PS
1838Wed Jul 6 00:48:57 1994 Peter Schauer (pes@regent.e-technik.tu-muenchen.de)
1839
1840 * dbxread.c, elfread.c, mipsread.c, nlmread.c, os9kread.c:
1841 Move "no debugging symbols found" test to symfile.c.
1842 * symfile.c (syms_from_objfile, reread_symbols): Add
1843 "no debugging symbols found" test.
1844 * coffread.c (init_stringtab): Handle stripped files with a
1845 stringtab offset of zero gracefully.
1846 * osfsolib.c (solib_create_inferior_hook): Use DYNAMIC flag from
1847 BFD instead of stop_pc heuristic to determine if it is a dynamically
1848 linked object file.
1849 * procfs.c (wait_fd): Handle ENOENT error return from PIOCWSTOP
1850 ioctl, it indicates that the process has exited.
1851
0fc27289
JL
1852Mon Jul 4 19:28:56 1994 Jeff Law (law@snake.cs.utah.edu)
1853
1854 * hppa-tdep.c (read_unwind_info): ELF unwind information is in the
1855 .PARISC.unwind section now.
1856
51684caa
SS
1857Mon Jul 4 17:06:26 1994 Stan Shebs (shebs@andros.cygnus.com)
1858
1859 * breakpoint.c (mention): Always show breakpoint address if no
1860 source file.
1861
1862Sat Jul 2 01:51:33 1994 Peter Schauer (pes@regent.e-technik.tu-muenchen.de)
1863
1864 * solib.c (bfd_lookup_symbol, look_for_base): Reinstate to reenable
1865 handling of shared libraries for non-ELF executables, but only if
1866 HANDLE_SVR4_EXEC_EMULATORS is defined.
1867 (locate_base): Try to find debug_base in the dynamic linker
1868 for non-ELF executables if HANDLE_SVR4_EXEC_EMULATORS is defined.
1869 * config/sparc/tm-sun4sol2.h (HANDLE_SVR4_EXEC_EMULATORS):
1870 Define to enable handling of shared libraries for a.out executables,
1871 run under Solaris BCP.
1872
018d94f5
JK
1873Thu Jun 30 13:59:23 1994 Jim Kingdon (kingdon@lioth.cygnus.com)
1874
1875 * infrun.c (wait_for_inferior): Print "Program exited normally"
1876 regardless of batch_mode.
1877 * defs.h, top.c (batch_mode): Removed.
1878
7d13174e
SS
1879Wed Jun 29 18:53:36 1994 Stan Shebs (shebs@andros.cygnus.com)
1880
054308ad
SS
1881 * Makefile.in (dcache_h): Remove redundant definition.
1882 (init.c): Add a comment.
1883 (top.c): Remove explicit compile action.
1884 * breakpoint.c (mention): Share code indicating location of
1885 break/watchpoints, don't print address if addressprint is off.
1886 * breakpoint.c, c-typeprint.c, c-valprint.c, energize.c, symtab.h
1887 (demangle): Remove redundant declarations.
1888 * eval.c: Remove redundant function declarations.
1889 * objfiles.h: Cosmetic and grammatical improvements.
1890 * TODO: Various updates.
1891
7d13174e
SS
1892 * remote-mips.c: Replace all \r chars with \015.
1893 (mips_receive_header): Display control characters readably.
1894 (mips_xfer_memory): Add a simple progress display.
1895
402b0d2e
SC
1896Wed Jun 29 13:11:45 1994 Steve Chamberlain (sac@cirdan.cygnus.com)
1897
1898 * remote-e7000.c (e7000_open): Don't try a tcp open if we're
1899 using go32.
1900 * remote-hms.c (flush): New function.
1901 (expect): Get edge case right.
1902 (hms_read_inferior_memory): Be more tolerant of line noise.
1903
3563094d
JMD
1904Tue Jun 28 14:17:03 1994 Jim Kingdon (kingdon@lioth.cygnus.com)
1905
1906 * configure.in: Use i386m3.mh and i386m3.mt as names of host and
1907 target files, not non-existent mach3.mh and mach3.mt.
1908
ca694bfd
PS
1909Wed Jun 29 00:26:17 1994 Peter Schauer (pes@regent.e-technik.tu-muenchen.de)
1910
1911 * dbxread.c (dbx_symfile_read): Unconditionally add dynamic
1912 symbols for all symbol files. Makes skipping over the
1913 trampoline code work when stepping from a function in a shared
1914 library into a function in a different shared library.
1915 (read_dbx_dynamic_symtab): Relocate mst_solib_trampoline address.
1916
320f93f7
SG
1917Tue Jun 28 15:28:01 1994 Stu Grossman (grossman@cygnus.com)
1918
1919 * dbxread.c, partial-stab.h (near N_SO): SO stabs with blank
1920 names mean end of .o file.
1921 * infrun.c (wait_for_inferior): Clean up multi-thread logic near
1922 top of routine. Handle new thread notification cleanly.
1923 * lynx-nat.c (child_wait): General cleanups, handle new LynxOS
1924 thread notification scheme.
1925 * (child_resume): General cleanups, handle resumption of all
1926 threads properly.
1927
aa48187b
SC
1928Mon Jun 27 09:57:23 1994 Steve Chamberlain (sac@cirdan.cygnus.com)
1929
1930 * ser-go32.c: Rewrite to run under windows.
1931 * ser-e7kpc.c: New file to support the E7000 with the PC ISA
1932 bus interface.
1933 * serial.c (serial_open): Notice device "pc".
1934 * remote-e7000.c: Fix copyright date.
1935 (expect): Compare \n and \r the same.
1936 (e7000_open): Allow pc as a serial port
1937 * sh/sh.mt: Add ser-e7kpc.
1938 * h8300/h8300hms.mt: Add ser-e7kpc.
1939 * main.c (proc_wait): Don't wait if using go32.
1940
6a86fa48
JL
1941Mon Jun 27 00:35:51 1994 Jeff Law (law@snake.cs.utah.edu)
1942
1943 * somread.c: Simplify by using stabsect_build_psymtabs.
1944 * dbxread.c (stabsect_build_psymtabs): New argument "text_name"
1945 corresponding to the name of the text section. All references
1946 changed.
1947 (somstab_build_psymtabs): Delete function, no longer needed.
1948
bfe2f12b
JL
1949Sun Jun 26 23:54:08 1994 Jeff Law (law@snake.cs.utah.edu)
1950
1951 * somread.c: Renamed from paread.c. Changed function names and
1952 comments to reflect that this file deals with SOM (an object file
1953 format), rather than the PA (a cpu).
1954 (Makefile.in): Chaned appropriately.
1955 (config/pa/hppabsd.mh, config/pa/hppahpux.mh): Likewise.
1956 * dbxread.c (somstab_build_psymtabs): Renamed from
1957 pastab_build_psymtabs.
1958
a8044a2d
PS
1959Fri Jun 24 08:15:42 1994 Peter Schauer (pes@regent.e-technik.tu-muenchen.de)
1960
256533df
PS
1961 * core-sol2.c: New file to handle ELF and BCP core file flavours.
1962 * config/sparc/sun4sol2.mh (NATDEPFILES): Use it instead of
1963 core-svr4.
1964 * Makefile.in: Updated for core-sol2.c.
1965 * README: Add notes about SPARCworks cc under Solaris 2.x,
1966 from Casper H.S. Dik (casper@fwi.uva.nl).
a8044a2d
PS
1967 * config/mips/xm-makeva.h: Removed, no longer necessary.
1968 * Makefile.in, config/mips/xm-irix3.h, config/mips/xm-irix5.h,
1969 config/mips/xm-mips.h, config/mips/xm-news-mips.h,
1970 config/mips/xm-riscos.h: Remove references to xm-makeva.h
1971
cca32606
JK
1972Wed Jun 22 17:48:21 1994 Jim Kingdon (kingdon@lioth.cygnus.com)
1973
6ccc157f 1974 * gdba.el: Put program input and output in a separate buffer.
cca32606 1975
b7ec5b8d
FF
1976Wed Jun 22 16:54:15 1994 Fred Fish (fnf@cygnus.com)
1977
1978 * energize-patches, main.c (main), top.c (gdb_init, pwd_command),
1979 top.h: Change all occurances of dirbuf to gdb_dirbuf. Collides
1980 with global variable of same name in libnsl.so on UnixWare.
1981
c79b49bb
KH
1982Wed Jun 22 14:40:52 1994 Kung Hsu (kung@mexican.cygnus.com)
1983
1984 * symtab.c (decode_line_1): fix a bug in dealing with '<>'
1985 embedded in template name.
1986
416b47c6
KH
1987Tue Jun 21 14:06:46 1994 Kung Hsu (kung@mexican.cygnus.com)
1988
1989 * config/i386/nm-linux.h: change calling convention of
1990 TARGET_CAN_USE_HARDWARE_WATCHPOINT() and
1991 target_insert_watchpoint() and
1992 target_remove_watchpoint().
1993
1994 * config/mips/tm-mips64.h: define FORCE_LONG_LONG to force LONGEST
1995 to be long long in gdb.
1996 * config/mips/tm-bigmips.h: ditto.
1997
2c068010
PS
1998Mon Jun 20 23:54:37 1994 Peter Schauer (pes@regent.e-technik.tu-muenchen.de)
1999
2000 * c-lang.c (asm_language_defn): New definitions for language_asm,
2001 mostly copied from c_language_defn, to avoid warnings when
2002 switching between c and asm stack frames.
2003
6187dfac
ILT
2004Mon Jun 20 13:51:55 1994 Ian Lance Taylor (ian@sanguine.cygnus.com)
2005
2006 * mdebugread.c (parse_symbol): Don't call ecoff_swap_tir_in or
2007 ecoff_swap_rndx_in directly; use the debug_swap pointer instead.
2008 (upgrade_type, handle_psymbol_enumerators): Likewise.
2009 (has_opaque_xref, cross_ref): Likewise.
2010 (elfmdebug_build_psymtabs): Call swap->read_debug_info to read
2011 debugging information, rather than doing it here.
2012 * mipsread.c (mipscoff_symfile_read): Call read_debug_info entry
2013 point in ecoff_debug_swap backend structure, rather than calling
2014 ecoff_slurp_symbolic_info directly.
2015
afd3e3b1
JK
2016Fri Jun 17 20:58:58 1994 Jim Kingdon (kingdon@lioth.cygnus.com)
2017
fb71d422
JK
2018 * breakpoint.c: Include annotate.h. Call annotate_field rather
2019 than printing annotation directly.
2020
afd3e3b1
JK
2021 * main.c: Include string.h.
2022
6ec7e4d3
SS
2023Thu Jun 16 14:41:37 1994 Stan Shebs (shebs@andros.cygnus.com)
2024
9f8219f1
SS
2025 * fork-child.c (startup_inferior) [STARTUP_INFERIOR]: If defined,
2026 call it instead of doing normal loop.
2027 * infcmd.c (attach_command): Don't call wait_for_inferior if
2028 running Mach 3.
2029 * infrun.c (proceed) [PREPARE_TO_PROCEED]: If defined, call
2030 hook that can decide whether to step over the next breakpoint.
2031 * utils.c (wrap_here): Abort if wrap_buffer not allocated.
2032 (request_quit) [REQUEST_QUIT]: If defined, call it instead of
2033 doing normal quit.
2034
6ec7e4d3
SS
2035 * configure.in: Improve sorting/formatting of hosts and targets.
2036 (i[34]86-*-mach3*, i[34]86-*-osf1mk*, mips-*-mach3*,
2037 m88*-*-mach3*, ns32k-*-mach3*): Recognize.
9f8219f1
SS
2038 * Makefile.in (stop-gdb): New target.
2039 * stop-gdb.c: New file, utility to get attention of waiting GDBs
6ec7e4d3
SS
2040 in Mach 3.
2041
f36b58b1
TL
2042Wed Jun 15 00:41:03 1994 Tom Lord (lord@rtl.cygnus.com)
2043
2044 * top.c (gdb_init): Init current_directory in gdb_init. Probably
2045 the identical initialization can be deleted from main.c, but i
2046 haven't done so just in case.
2047
e91c1816
TL
2048Tue Jun 14 17:24:41 1994 Tom Lord (lord@x1.cygnus.com)
2049
2050 * gdba.el: Added menu windows and slightly improved window
2051 handling to gdba.el. Fixed numerous minor bugs that were causing
2052 emacs and gdb to fall out of sync.
2053
f2d9c058
KH
2054Tue Jun 14 16:18:44 1994 Kung Hsu (kung@mexican.cygnus.com)
2055
2056 * breakpoint.c: annotate changes lost at merge, put back in.
2057
e884f418 2058Mon Jun 13 17:28:50 1994 Stan Shebs (shebs@andros.cygnus.com)
2b14c195 2059
e884f418
SS
2060 * config/i386/i386sco.mh, i386sco4.mh (XDEPFILES): Remove
2061 i387-tdep.o.
2b14c195 2062
33c66e44
PS
2063Sun Jun 12 03:51:52 1994 Peter Schauer (pes@regent.e-technik.tu-muenchen.de)
2064
2065 * config/m68k/dpx2.mh (NATDEPFILES): Remove duplicate inclusion
2066 of inftarg.o.
2067 * config/m68k/tm-dpx2.h (CANNOT_STORE_REGISTER): Define to inhibit
2068 writing of floating registers, the dpx2 kernel disallows it.
2069 * irix5-nat.c (LM_ADDR): The loaded address of the shared library
2070 is contained in o_praw.
2071 * irix5-nat.c (solib_map_sections): Adjust sections by the
2072 difference between the loaded address and the prelinked address.
2073 * irix5-nat.c (solib_address): Use LM_ADDR for the loaded start
2074 address.
2075 * mdebugread.c (parse_symbol): Do not relocate stEnd/scText
2076 symbols, their value is absolute.
2077 * mdebugread.c (parse_partial_symbols): Handle Irix 5.2 shared
2078 libraries fh->adr fields of zero. Relocate minimal symbol values
2079 upon readin. Relocate non-stabs symbols upon readin.
2080 * mdebugread.c (psymtab_to_symtab_1): Use pst->textlow for the
2081 start address of the outermost block.
2082 * mdebugread.c (parse_lines, parse_procedure): Pass in pst
2083 instead of section_offsets and use relocated pst->textlow for
2084 line number and procedure address relocations.
2085
2086 From gmo@MicroUnity.com (Guillermo A. Loyola):
2087 * mdebugread.c (parse_symbol, parse_partial_symbols, cross_ref):
2088 Handle SGI Irix5 stIndirect symbol type.
2089
2c3fb46a
KH
2090Fri Jun 10 14:52:56 1994 Kung Hsu (kung@mexican.cygnus.com)
2091
11054881
KH
2092 * breakpoint.c: fix a syntax error native cc does not like.
2093
1782eb41
KH
2094 * Makefile.in: change sparclite-tdep.c to sparcl-tdep.c.
2095 * sparclite/Makefile.in: ditto.
2096 * sparcl-tdpe.c: change file name because first 8 chars has to be
2097 unique.
2098 * sparcl-stub.c: ditto.
2099
2100 * .Sanitize: add sparclite-stub.c sparclite-tdep.c to keep.
2101
2c3fb46a
KH
2102 * sparclite/Makefile.in: fix INCLUDE_CFLAGS to have {srcdir}/../config.
2103
e9a3cde8
JL
2104Fri Jun 10 10:38:15 1994 Jeff Law (law@snake.cs.utah.edu)
2105
2106 * hppa-tdep.c (target_read_pc, target_write_pc): Accept (and
2107 ignore) a PID argument.
2108 (hppa_pop_frame): Pass a PID to target_write_pc.
2109 * config/pa/tm-hppa.h (TARGET_READ_PC, TARGET_WRITE_PC): Accept
2110 and pass through a PID argument.
2111 (target_read_pc, target_write_pc): Update prototypes.
2112
2113Thu Jun 9 18:10:44 1994 Kung Hsu (kung@mexican.cygnus.com)
2114
2115 * Makefile.in: add new file sparclite-tdep.c.
2116 * sparclite/Makefile.in: add new file sparclite-stub.c.
2117 * sparclite/hw_breakpoint.note: note for SPARClite hardware breapoint
2118 support.
2119 * config/sparc/sparclite.mt: add sparclite-tdep.o.
2120 * config/sparc/tm-sparclite.h: add hardware breakpoints support
2121 defiines and code.
2122 * sparclite-tdep.c: new file, contains hardware breakpoint support
2123 code.
2124 * sparclite-stub.c: new file, stub code that add support hardware
2125 breakpoint support.
2126 * breakpoint.c: add hardware breakpoint support.
2127 * breakpoint.h: add new breakpoint type to support hardware
2128 breakpoint.
2129 * config/mips/nm-irix4.h: change interface for target dependent
2130 code supporting watch point.
2131 * config/pa/nm-hppab.h: change interface for target dependent
2132 code supporting watch point.
2133
2c012f9e
KH
2134Thu Jun 9 14:59:58 1994 Kung Hsu (kung@mexican.cygnus.com)
2135
2136 * remote-os9k.c (rombuf_command): fix a bug accepting rombug
2137 output.
2138 * stabsread.c (read_struct_fields): os9k nested structure does not
2139 have terminating ';', instead it just get to ',' and bit position
2140 and length.
2141
a4b4f520
SG
2142Wed Jun 8 23:20:45 1994 Stu Grossman (grossman@cygnus.com)
2143
2144 * nlmread.c (nlm_symtab_read): Clean up a bit.
2145 * (nlm_symfile_read): Record bounds of main() so that backtrace
2146 command will know where to stop.
2147 * objfiles.c (objfile_relocate): Relocate entry point/func info
2148 for backtrace as well.
2149 * objfiles.h: Define values for invalid PCs for entry point info.
2150 * symfile.c (init_entry_point_info): Initialize invalid values
2151 with aforementioned macros.
2152 * config/alpha/tm-alphanw.h: Turn on FRAME_CHAIN_VALID_ALTERNATE
2153 to cause backtrace to stop when it gets back to main().
2154 * config/i386/tm-i386nw.h: Ditto.
2155
e10cfcaa
PB
2156Sat Jun 4 18:17:03 1994 Per Bothner (bothner@kalessin.cygnus.com)
2157
e884f418 2158 Fix value_print, which used to be ostensibly language-independent,
e10cfcaa
PB
2159 but would print pointers and arrays in C syntax. Instead, call
2160 a language-specific function.
2161 * language.h (struct language_defn): New functional field
e884f418
SS
2162 la_value_print.
2163 (LA_VALUE_PRINT): New macro.
2164 * language.c (unk_lang_value_print): New stub/dummy function.
e10cfcaa
PB
2165 (unknown_language_defn, auto_language_defn, local_language_defn):
2166 Use it.
2167 * c-valprint.c (c_value_print): New function, with code moved from:
2168 * valprint.c (value_print): ... here. Now just invoke
2169 LA_VALUE_PRINT to do language-specific stuff.
2170 * valprint.c (value_print_array_elements): Make non-static.
2171 * c-lang.c (c_language_defn, cplus_language_defn): Add
e884f418 2172 c_value_print in the la_value_print field.
e10cfcaa
PB
2173 * m2-lang.c (m2_language_defn): Likewise.
2174 * ch-lang.c (chill_language_defn): But here use chill_value_print.
2175 * ch-valprint.c (chill_val_print): Print null pointer as NULL.
2176 * ch-valprint.c (chill_value_print): New function, based on
2177 c_value_print, but use Chill "look and feel."
2178 * c-lang.h (c_value_print): New prototype.
2179 * ch-lang.h (chill_value_print): New prototype.
2180 * value.h (value_print_array_elements): New prototype.
2181
2182 * ch-valprint.c (chill_val_print, case TYPE_CODE_BITSTRING
2183 and case TYPE_CODE_SET): Check that the element type isn't a stub.
2184
172559ec
JK
2185Fri Jun 3 09:15:00 1994 Jim Kingdon (kingdon@lioth.cygnus.com)
2186
2187 * main.c: Move entire file except for #ifndef MAIN_OVERRIDE code
2188 to new file top.c. Make things extern instead of static and
2189 similar rearrangements to deal with this.
2190 * top.h: New file.
2191 * utils.c: Move fputs_unfiltered to main.c. Remove
2192 FPUTS_UNFILTERED_OVERRIDE ifndef.
2193 * Makefile.in: Change so that gdb uses main.c, utils.c, and top.c,
2194 and libgdb uses utils.c and top.c.
2195
36af5ec6
JL
2196Thu Jun 2 23:19:10 1994 Jeff Law (law@snake.cs.utah.edu)
2197
2198 * hppa-tdep.c (skip_trampoline_code): Fix typo.
2199
35f8a588
PB
2200Thu Jun 2 18:09:59 1994 Per Bothner (bothner@kalessin.cygnus.com)
2201
2202 * ch-valprint.c (chill_val_print_array_elements): New function.
2203 A Chill version of val_print_array_elements, it prints the
2204 array index labels, in additions ot the array element values.
2205 (chill_val_print): Use the new function.
2206
2e6784a8
SG
2207Thu Jun 2 08:50:00 1994 Stu Grossman (grossman@cygnus.com)
2208
2209 * configure.in: Add nlm subdir to configdirs for alpha-*-netware
2210 target.
2211 * defs.h (enum language): Add language_asm.
2212 * findvar.c (read_register_bytes read_register_gen
2213 write_register_bytes read_register read_register_pid
2214 write_register write_register_pid supply_register): Move multi-
2215 thread handling down into these routines. Create XXX_pid routines
2216 that allow register references to specify the pid.
2217 * findvar.c infcmd.c (read_pc read_pc_pid write_pc write_pc_pid
2218 read_sp write_sp read_fp write_fp): Move these routines from
2219 infcmd to findvar to centralize the whole mess.
2220 * i386-nlmstub.c: Portability fixes.
2221 * infptrace.c (child_resume): Conditionalize to allow other natives
2222 to override it. Remove PIDGET gubbish, it's no longer necessary.
2223 * infrun.c (wait_for_inferior): Put registers_changed() before
2224 target_wait() to speed up remote debugging.
2225 * Replace code that reads registers from other threads with much
2226 nicer looking new function calls (see changes to findvar.c).
2227 * Don't skip prologues if debugging assembly source.
2228 * lynx-nat.c (child_resume): Lynx now needs it's own version of
2229 child_resume to handle multi-thread debugging properly.
2230 * remote.c: Add O response to get console output from target.
2231 * (readchar): Add timeout parameter. Handle SERIAL_EOF and
2232 SERIAL_ERROR here to simplify callers.
2233 * Change static var timeout to remote_timeout.
2234 * (fromhex): Remove unnecessary return -1 at end of routine.
2235 * (remote_wait): Turn this into a big switch statement. Add
2236 support for O response.
2237 * (putpkt): Remove unnecessary handling of SERIAL_EOF/ERROR.
2238 * (getpkt): Split getpkt into two parts. read_frame deals with
2239 all formatting issues, run-length encoding, and framing. getpkt
2240 now handles error recovery, and frame detection.
2241 * ser-tcp.c (tcp_readchar): Handle EINTR from read().
2242 * ser-unix.c (hardwire_raw): Set CLOCAL so that we ignore modem
2243 control. (hardwire_readchar): Handle EINTR from read().
2244 * symfile.c (deduce_language_from_filename): Add support for .s
2245 files.
2246 * config/nm-lynx.h: Define CHILD_WAIT so that lynx-nat.c can
2247 override infptrace's child_wait.
2248 * config/rs6000/rs6000lynx.mh: Use xm-rs6000ly.h & nm-rs6000ly.h
2249 instead of XXXlynx.h.
2250 * config/rs6000/rs6000lynx.mt: Use tm-rs6000ly.h instead of
2251 tm-rs6000lynx.h.
2252 * nlm/gdbserve.c: Portability fixes.
2253
d3507982
JK
2254Tue May 31 20:35:44 1994 Jim Kingdon (kingdon@lioth.cygnus.com)
2255
2256 * inftarg.c (child_wait): Call proc_wait, not wait.
2257 (child_mourn_inferior): Call proc_remove_foreign.
2258 * main.c (gdb_init): Call init_proc.
2259 * main.c: Provide dummy versions of init_proc, proc_wait, and
2260 proc_remove_foreign for the gdb case (the libgdb case provides its
2261 own versions of these functions).
2262 * Makefile.in (libgdb-files): Add libproc.a.
2263
6d40175d
SS
2264Wed Jun 1 11:08:52 1994 Stan Shebs (shebs@andros.cygnus.com)
2265
2266 Hardware watchpoints for Linux, from Rick Sladkey
2267 (jrs@world.std.com).
2268 * infrun.c (wait_for_inferior) [HAVE_CONTINUABLE_WATCHPOINT]: Add
2269 new hardware breakpoint recovery method.
2270 * i386v-nat.c (i386_insert_watchpoint,
2271 i386_insert_nonaligned_watchpoint, i386_remove_watchpoint,
2272 i386_stopped_by_watchpoint) [TARGET_CAN_USE_HARWARE_WATCHPOINT]:
2273 New functions to support the 386 hardware debugging registers.
2274 * config/i386/nm-linux.h (TARGET_CAN_USE_HARDWARE_WATCHPOINT,
2275 HAVE_CONTINUABLE_WATCHPOINT, STOPPED_BY_WATCHPOINT,
2276 target_insert_watchpoint, target_remove_watchpoint): Define these
2277 macros to use the hardware debugging functions in i386v-nat.c.
2278
667fb5c3
JK
2279Wed May 25 17:06:15 1994 Jim Kingdon (kingdon@lioth.cygnus.com)
2280
2281 * Makefile.in: Replace libgdb.a with libgdb-files. Make "all"
2282 build it.
2283
429f1c9f
JK
2284Thu May 19 09:56:20 1994 Jim Kingdon (kingdon@lioth.cygnus.com)
2285
2286 * target.c, target.h: New variables target_activity_function and
2287 target_activity_fd.
2288 * inflow.c, inferior.h: New functions set_sigio_trap and
2289 clear_sigio_trap.
2290 * inftarg.c (child_wait), procfs.c (wait_fd): Call them.
2291
bc67bf96
DE
2292Wed May 18 13:01:55 1994 Doug Evans (dje@canuck.cygnus.com)
2293
47424e79
DE
2294 * remote-sim.h (sim_verbose): Delete.
2295 Document callbacks needed.
2296 (sim_*): Change result to void where there isn't one.
2297 (sim_open): Clarify argument and error response.
2298 (sim_close): Declare.
2299 (sim_load): Change bfd_handle argument to file name. Clarify result.
2300 (sim_create_inferior): Renamed from sim_set_args.
2301 (sim_set_pc): Delete.
2302 (sim_info): Delete printf_fn argument.
2303 * remote-sim.c (gdbsim_kill): Add comment describing purpose.
2304 (gdbsim_load): Try sim_load first.
2305 (gdbsim_create_inferior): Call sim_create_inferior.
2306 (gdbsim_open): Handle args == NULL. Update call to sim_open.
2307 (gdbsim_close): Call sim_close.
2308 (gdbsim_files_info): Update call to sim_info.
2309 (gdbsim_ops): Realign comments.
2310
bc67bf96
DE
2311 * printcmd.c (decode_format): Allow TARGET_PTR_BIT to be non-constant.
2312
298f0428
SS
2313Tue May 17 16:45:20 1994 Stan Shebs (shebs@andros.cygnus.com)
2314
2315 * xcoffread.c (read_xcoff_symtab): For C_FILE symbols, only use
2316 the auxent if the symbol's name is ".file". From David Edelsohn
2317 <c1dje@watson.ibm.com>.
2318
9c036bd8
JK
2319Tue May 17 11:08:22 1994 Jim Kingdon (kingdon@lioth.cygnus.com)
2320
20b3c1aa
JK
2321 * breakpoint.c (breakpoint_1): Fix typo.
2322
2323 * annotate.c (annotate_field_end): Fix typo.
2324
2325 * Makefile.in: Move annotate.o from COMMON_OBS to OBS.
2326
2327 * Makefile.in (TSSTART): Remove; no longer used.
2328
9c036bd8
JK
2329 * utils.c (vfprintf_maybe_filtered, vfprintf_unfiltered): Call
2330 fputs_unfiltered and exit directly, rather than fatal. The latter
2331 calls vfprintf_unfiltered!
2332
2333 * gdbtypes.h, gdbtypes.c (can_dereference): New function.
2334 * value.h, printcmd.c (print_value_flags): Move from here...
2335 * annotate.c: ...to here, and make it use can_dereference.
2336
16d2cc80
SS
2337Sat May 14 15:13:52 1994 Stan Shebs (shebs@andros.cygnus.com)
2338
2339 * inflow.c (job_control, attach_flag, generic_mourn_inferior):
2340 Remove, needed for both native and cross.
2341 * target.c (attach_flag, generic_mourn_inferior): Put here.
2342 * utils.c (job_control): Put here.
2343 (terminal.h): Don't include anymore.
2344
d8fc8773
JK
2345Sat May 14 09:11:44 1994 Jim Kingdon (kingdon@lioth.cygnus.com)
2346
2347 * source.c (find_source_lines): Always use code that was #ifdef
2348 BROKEN_LARGE_ALLOCA. Do the cleanup before returning, rather than
2349 leaving it on the chain. Reindent much of this function.
2350 * config/sparc/{xm-sun4sol2.h,xm-sun4os4.h},
2351 config/i386/{xm-sun386.h,xm-i386m3.h,xm-i386mach.h},
2352 config/m68k/{sun3os4.h,xm-news.h,xm-hp300hpux.h},
2353 config/ns32k/xm-ns32km3.h: Remove all references to
2354 BROKEN_LARGE_ALLOCA; with the above change it is no longer needed.
2355 * main.c, fork-child.c, many config files: Remove all
2356 SET_STACK_LIMIT_HUGE code; with the above changes it should no
2357 longer be needed.
2358
2359 * symtab.c (lookup_partial_symbol): Use if and abort, not assert.
2360 This avoids __eprintf troubles.
2361
1c95d7ab
JK
2362Fri May 13 08:10:21 1994 Jim Kingdon (kingdon@lioth.cygnus.com)
2363
d8fc8773
JK
2364 * main.c (main): Surround in #ifndef MAIN_OVERRIDE. Move
2365 initialization code which needs to be called even if we bypass the
2366 command line stuff into gdb_init.
2367 * utils.c (fputs_unfiltered): Surround in #ifndef
2368 FPUTS_UNFILTERED_OVERRIDE.
2369 * Makefile.in (libgdb.a): New target.
2370
2371 * utils.c: Rearrange I/O stuff a bit so that all output goes
2372 through fputs_unfiltered. Use vasprintf; removes arbitrary limit
2373 which made %s not work with arbitrarily large strings.
2374 * printcmd.c (printf_command): Use printf_filtered, not
2375 printf_unfiltered and printf, now that arbitrary limit is gone.
2376
1c95d7ab
JK
2377 gcc -Wall lint:
2378 * breakpoint.c (watchpoint_check): Remove unused variable b.
2379 * stack.c (print_frame_info): Move sp and buf inside #if.
2380 * eval.c (evaluate_subexp): Remove unused variables pp,
2381 mangle_ptr, ptr, and mangle_tstr.
2382 * valarith.c (value_x_binop): Remove unused variables mangle_tstr
2383 and mangle_ptr.
2384 * symtab.c (lookup_symtab): Put variable copy inside #if.
2385 (decode_line_1): Put variable q1 inside #if 0.
2386 * target.h: Declare target_link.
2387 * infrun.c (wait_for_inferior): Remove unused variables signame.
2388 * remote.c (remote_resume): Remove unused variable name.
2389 * c-exp.y (parse_number): Parenthesize operand of shift.
2390 * dbxread.c (record_minimal_symbol): Parenthesize operand of &&
2391 (this is a semantic change, the warning seems to have detected a bug).
2392 * dbxread.c (end_psymtab): Move variable p1 inside #if.
2393 * coffread.c: Move variable temptype inside #if.
2394 * ch-typeprint.c (chill_type_print_base): Remove unused variable
2395 name.
2396 * ch-valprint.c: #include typeprint.h and ch-lang.h.
2397 (chill_val_print): Remove unused variable in_range.
2398 (chill_val_print): Remove statement "length > TYPE_LENGTH (type);".
2399 (chill_val_print): Add default case for switch.
2400 * stabsread.h: Declare stabsect_build_psymtabs.
2401 * os9kread.c (read_minimal_symbols): Make this return void.
2402 (os9k_symfile_read): Remove unused variables stb_exist and val.
2403 (os9k_symfile_init): Remove unused variable val.
2404 (fill_sym): Remove unused variable id.
2405 (read_os9k_psymtab): Put variable back_to inside #if 0. Remove
2406 unused variable nsl.
2407 Remove unused variable symfile_bfd.
2408 #if 0 unused variables lbrac_unmatched_complaint and
2409 lbrac_mismatch_complaint.
2410 Remove declaration for non-existent function os9k_next_symbol_text.
2411
2412 * annotate.c, annotate.h: New files, containing a function for
2413 each annotation which outputs it.
2414 * Move breakpoints_changed from breakpoint.c to annotate.c.
2415 * breakpoint.c, blockframe.c, infrun.c, cp-valprint.c, main.c,
2416 printcmd.c, source.c, stack.c, utils.c, valprint.c:
2417 Use annotate.c functions to output annotations.
2418 * Makefile.in (OBS): Add annotate.o.
2419
88b91d4a
JL
2420Thu May 12 10:46:27 1994 Jeff Law (law@snake.cs.utah.edu)
2421
f55179cb
JL
2422 * hppa-tdep.c (read_unwind_info): Make sure elf_unwind_size and
2423 elf_unwind_entries are always initialized.
2424
88b91d4a
JL
2425 * hppa-tdep.c (skip_trampoline_code): Handle argument relocation
2426 stubs which return directly to the caller rather than to the stub
2427 itself.
2428
8db1a922
SS
2429Wed May 11 20:11:51 1994 Stan Shebs (shebs@andros.cygnus.com)
2430
2431 * c-exp.y (yyerror): Display a more informative error message.
2432 * ch-exp.y (yyerror): Ditto, don't use global yychar.
2433 * m2-exp.y (yyerror): Ditto.
2434
91ecc8ef
SS
2435Tue May 10 11:57:53 1994 Stan Shebs (shebs@andros.cygnus.com)
2436
2437 * inflow.c (job_control): Move definition to front of file.
2438
0286d386
ILT
2439Tue May 10 14:42:37 1994 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
2440
2441 * maint.c (print_section_table): Rename SEC_SHARED_LIBRARY to
2442 SEC_COFF_SHARED_LIBRARY to match corresponding change in bfd.
2443
2444Fri May 6 13:30:22 1994 Stan Shebs (shebs@andros.cygnus.com)
2445
2446 * Makefile.in (kdb): Remove old init.c creation commands.
2447 * configure.in (sparclite): Match on sparclite*.
2448 * sparclite/aload.c (main): Only change section addresses for
2449 a.out format object files.
2450
5ff7b328
SC
2451Fri May 6 13:24:04 1994 Steve Chamberlain (sac@cygnus.com)
2452
2453 * config/i386/go32.mh: Define CC.
2454
b292fca8
SS
2455Fri May 6 11:56:54 1994 Stan Shebs (shebs@andros.cygnus.com)
2456
2457 * gdbserver/Makefile.in: Remove irrelevant definitions and
2458 comments inherited from the gdb Makefile.
2459 (BFD_DIR, BFD, BFD_SRC, BFD_CFLAGS): Add from gdb Makefile.
2460 (VERSION): Update to 4.12.3.
2461 (gdbserver): Remove any existing executable first.
2462 (distclean, realclean): Remove nm.h.
2463 * gdbserver/low-lynx.c: Add Sparc Lynx support.
2464 * gdbserver/low-sparc.c, gdbserver/low-sun3.c (sys/wait.h):
2465 Don't use absolute pathname.
2466
2467Thu May 5 12:00:22 1994 Stan Shebs (shebs@andros.cygnus.com)
2468
2469 * rs6000-nat.c (vmap_ldinfo): Don't fail if fstat returns an
2470 error.
2471
ee5fca1f
JK
2472Wed May 4 06:56:03 1994 Jim Kingdon (kingdon@lioth.cygnus.com)
2473
2474 * infrun.c (proceed, normal_stop, wait_for_inferior), breakpoint.c
2475 (print_it_normal): Add annotations for the inferior starting and
2476 stopping, and for all the various messages related to how it
2477 stopped.
2478
2479 * printcmd.c (do_one_display): Annotate.
2480 * stack.c (print_frame_info): Annotate printing of stack frames.
2481
731dca94
SG
2482Wed May 4 18:15:51 1994 Stu Grossman (grossman@cygnus.com)
2483
2484 * remote.c (get_offsets): Handle case where stub doesn't support
2485 qOffsets message.
2486
36a2283d
PB
2487Wed May 4 15:30:39 1994 Per Bothner (bothner@kalessin.cygnus.com)
2488
2489 Add partial support for g++ code compiled with -fvtable-thunks.
2490 * c-valprint.c (c_val_print): Add vtblprint support
2491 when using thunks.
2492 * cp-valprint.c (cp_is_vtbl_member): A vtable can be an array of
2493 pointers (if using thunks) as well as array of structs (otherwise).
2494 * cp-valprint.c (vtbl_ptr_name_old, vtbl_ptr_name): Move to global
2495 level, and make the latter non-static (so define_symbol can use it).
2496 * stabsread.c (define_symbol): If the type being defined is a
2497 pointer type named "__vtbl_ptr_type", set the TYPE_NAME to that name.
2498 * symtab.h (VTBL_PREFIX_P): Allow "_VT" as well as "_vt".
2499 * values.c (value_virtual_fn_field): Handle thunks.
2500 * values.c (value_headof): Minor efficiency hack.
2501 * values.c (value_headof): Incomplete thunk support. FIXME.
2502
997c6a1d
JK
2503Wed May 4 06:56:03 1994 Jim Kingdon (kingdon@lioth.cygnus.com)
2504
d24c0599
JK
2505 * valprint.c (print_longest): Clarify comment about use_local.
2506 * printcmd.c, defs.h (print_address_numeric), callers in
2507 symmisc.c, symfile.c, stack.c, source.c, remote.c, infcmd.c,
2508 cp-valprint.c, core.c, ch-valprint.c, c-valprint.c, breakpoint.c,
2509 exec.c: New argument use_local.
2510 * source.c (identify_source_line): Use filtered output. Use
2511 print_address_numeric.
2512
e16b9023
JK
2513 * core.c (memory_error), symtab.c (cplusplus_hint, decode_line_1),
2514 language.c (type_error, range_error): Use filtered output.
2515 * utils.c (error_begin): Update comment to tell people to use
2516 filtered output.
2517
997c6a1d
JK
2518 * Makefile.in (HFILES_WITH_SRCDIR): List bfd.h.
2519 (HFILES_NO_SRCDIR): List gdbcore.h not gdbcore_h, so as not to get
2520 bfd.h.
2521
3f5e2fb5
JK
2522Tue May 3 07:41:33 1994 Jim Kingdon (kingdon@cygnus.com)
2523
2524 * procfs.c (procfs_wait): Reinstate code which deduces the signal
2525 from the fault, #ifndef FAULTED_USE_SIGINFO.
2526 * config/sparc/tm-sun4sol2.h: Define FAULTED_USE_SIGINFO.
2527
47ebe8fd
JK
2528Fri Apr 29 18:15:04 1994 Jim Kingdon (kingdon@lioth.cygnus.com)
2529
2530 * breakpoint.c (breakpoint_1): Annotate each field of the headers.
2531 Explicitly annotate each record.
2532
0c4b30ea
SS
2533Fri Apr 29 15:56:18 1994 Stan Shebs (shebs@andros.cygnus.com)
2534
2535 * xcoffexec.c: Reformat to standards and lint.
2536 (language.h): Include.
2537 (exec_close): Declare arg "quitting".
2538 (file_command): Declare arg "from_tty".
2539 (map_vmap): Cast xmalloc result to PTR.
2540 * rs6000-nat.c: Reformat to standards and lint.
2541 (exec_one_dummy_insn): Use char array for saved instruction.
2542 (fixup_breakpoints): Declare.
2543 (vmap_ldinfo): Be more informative in fatal error messages.
2544 (xcoff_relocate_symtab): Define to return void.
2545 * xcoffsolib.h: Reformat to standards, improve comments.
2546 * config/rs6000/nm-rs6000.h (xcoff_relocate_symtab): Declare.
2547
d8742f46
JK
2548Thu Apr 28 08:40:56 1994 Jim Kingdon (kingdon@lioth.cygnus.com)
2549
a0cf4681
JK
2550 * utils.c, defs.h (error_begin): New function.
2551 (quit): Print annotation before printing the error message.
2552 * main.c (return_to_top_level): Print annotation before doing the
2553 longjmp.
2554 * symtab.c (decode_line_1): Call error not warning and then
2555 return_to_top_level. Call error_begin and printf_unfiltered
2556 rather calling warning (before calls to return_to_top_level).
2557 * core.c (memory_error): Use error_begin, printf_unfiltered,
2558 print_address_numeric and return_to_top_level instead of error.
2559 Cleans up a FIXME-32x64.
2560 * language.c (type_error, range_error): Call error_begin
2561 not just target_terminal_ours.
2562
21ad7c45
JK
2563 * dbxread.c (stabsect_build_psymtabs): Assign to sym_stab_info
2564 directly, rather than via DBX_SYMFILE_INFO. A cast on the left
2565 side of an assignment is non-portable.
2566
d8742f46
JK
2567 * utils.c (query): Change syntax of query annotations to be
2568 consistent with other input annotations.
4dd876ac 2569 (prompt_for_continue): Likewise for prompt-for-continue annotation.
d8742f46 2570
11d26982
PS
2571Thu Apr 28 01:20:39 1994 Peter Schauer (pes@regent.e-technik.tu-muenchen.de)
2572
2573 * mdebugread.c (psymtab_to_symtab_1): Do not call sort_blocks
2574 for stabs symtabs.
2575 * mips-tdep.c (mips_skip_prologue): Handle prologues for functions
2576 that have a stack frame size of 32k or larger (from Paul Flinders).
2577 Remove #if 0'd code.
2578
aa175216
SS
2579Wed Apr 27 16:33:51 1994 Stan Shebs (shebs@andros.cygnus.com)
2580
2581 * lynx-nat.c (CANNOT_STORE_REGISTER): Add a fallback definition
2582 for Lynx platforms that need it.
2583 * config/nm-lynx.h (__LYNXOS): Define if not already defined.
2584
890634ed
JK
2585Wed Apr 27 16:01:37 1994 Jim Kingdon (kingdon@cygnus.com)
2586
2587 * procfs.c (procfs_wait): Use the signal from the pr_info rather
2588 than trying to deduce it from the fault.
2589
c0c9b923
SC
2590Wed Apr 27 12:22:46 1994 Steve Chamberlain (sac@cygnus.com)
2591
2592 * printcmd.c (print_address_symbolic): Initialize name to empty
2593 string to avoid core dump if lookup fails.
2594 * remote-e7000.c (printf_e7000debug): Error if target not open.
2595
a49666fe
SG
2596Tue Apr 26 22:45:24 1994 Stu Grossman (grossman at cygnus.com)
2597
2598 * i386-nlmstub.c: Update to be more in line with PIN stub.
2599 * nlm/gdbserve.c (putDebugChar): Install bug fix from i386-nlmstub.
2600 * (hex2mem): Init ptr.
2601 * General cleanups to use ConsolePrintf, standard prologues, etc...
2602
d0e2b767
SG
2603Tue Apr 26 10:23:04 1994 Stu Grossman (grossman at cygnus.com)
2604
68ba2fa5
SG
2605 * i386-nlmstub.c: More changes to be compatible with remote.c.
2606
2607 * dbxread.c: Move a bunch of strncmps out of process_one_symbol
2608 into (the far less frequently called) dbx_symfile_read.
2609
d0e2b767
SG
2610 * i386-nlmstub.c: An interim version till we get PIN for the x86.
2611
a66e8382
SG
2612Tue Apr 26 09:50:45 1994 Stu Grossman (grossman at cygnus.com)
2613
2614 * dbxread.c (record_minimal_symbol): Record the section
2615 associated with the symbol to make dynmaic relocation work.
2616 * (dbx_symfile_read, process_one_symbol): Fixes to work around
2617 Solaris brain-damage which don't apply to relocatable object
2618 files.
2619 * (stabsect_build_psymtabs): New routine to read stabs out of an
2620 arbitrarily named section.
2621 * nlmread.c (nlm_symtab_read): Read ALL syms from the NLM, not just
2622 globals.
2623 * (nlm_symfile_read): Call stabsect_build_psymtabs to read the
2624 stabs out of the nlm.
2625 * partial-stabs.h (cases 'f' & 'F'): Fixes to work around Solaris
2626 brain-damage which don't apply to relocatable object files.
2627 * remote.c (putpkt): Improve error reporting and error handling.
1624c38f
SG
2628 * (get_offsets): Temporary kludge to force data & bss sections to
2629 have the same relocation.
a66e8382
SG
2630 * stabsread.c (define_symbol, scan_file_globals): Record section
2631 info in sym.
2632
fdb81aa1
JK
2633Sat Apr 23 19:05:52 1994 Jim Kingdon (kingdon@lioth.cygnus.com)
2634
2635 * breakpoint.c (breakpoint_1): Annotate each field of output. Add
2636 FIXME-32x64 comment.
2637
0a2e98a9
JK
2638Fri Apr 22 16:43:54 1994 Jim Kingdon (kingdon@lioth.cygnus.com)
2639
d084c93f
JK
2640 * infrun.c (wait_for_inferior): Move call to flush_cached_frames
2641 to after call to target_wait. This means that flush_cached_frames
2642 can call target_terminal_ours if it wants to.
2643 * infrun.c (wait_for_inferior) [HAVE_NONSTEPPABLE_WATCHPOINT]: Add
2644 comment about why the code is dubious.
2645
0a2e98a9
JK
2646 * stabsread.c (read_type): Call read_type, not nonexistent
2647 os9k_read_type.
2648
d5336fc5
KH
2649Fri Apr 22 14:25:36 1994 Kung Hsu (kung@mexican.cygnus.com)
2650
2651 * remote-os9k.c (rombug_fetch_registers): set trace mode
2652 correctly.
2653 * remote-os9k.c (rombug_read_inferior_memory): cache data in
2654 buffer.
2655 * os9kread,c (read_os9k_psymtab): process file symbol to truncate
2656 extra info.
2657 * os9kread.c (os9k_read_ofile_symtab): proper casting of args
2658 passed to process_one_symbol.
2659 * stabsread.c (read_type): process os9k functio prototype.
2660
f5a0908f
JK
2661Fri Apr 22 11:27:39 1994 Jim Kingdon (kingdon@lioth.cygnus.com)
2662
2663 * solib.c (symbol_add_stub): If so->textsection is NULL, don't
2664 dump core.
2665
9e8db445
JK
2666Thu Apr 21 07:45:49 1994 Jim Kingdon (kingdon@lioth.cygnus.com)
2667
da988c20
JK
2668 * utils.c (prompt_for_continue): Annotate prompt.
2669 (query): Annotate query.
2670 * printcmd.c (print_frame_args): Change syntax of argument
2671 annotation to make name and value part of a single group of
2672 annotations, not two separate groups.
2673 * cp-valprint.c (cp_print_value_fields): Likewise for fields.
2674 * valprint.c (val_print_array_elements): Change syntax of
2675 annotation to be more concise.
2676 * main.c, defs.h (command_line_input): New argument tells what
2677 string to include in the annotations.
2678 * symtab.c (decode_line_2), main.c (read_command_lines,
2679 command_loop): Change callers.
2680
9e8db445
JK
2681 * breakpoint.c (watch_command): Use (CORE_ADDR)0, not NULL, for
2682 target null pointer.
2683 * blockframe.c (find_frame_addr_in_frame_chain): Likewise.
2684
2685 * printcmd.c (output_command): Annotate things we print here too.
eb1e37a3 2686 * printcmd.c (print_command_1): Add "value-history-value" annotation.
9e8db445
JK
2687 * Move declaration of print_value_flags from defs.h to value.h.
2688 * main.c (command_line_input): Call wrap_here as well as gdb_flush.
2689
0683ac4b
PS
2690Thu Apr 21 09:29:37 1994 Peter Schauer (pes@regent.e-technik.tu-muenchen.de)
2691
2692 * dbxread.c (read_dbx_dynamic_symtab): Reinstall support for sun3,
2693 BFD handles sun3 dynamic relocations now.
2694 * elfread.c (elf_symtab_read, elf_symfile_read): Handle dynamic
2695 symbol table.
2696
96f7edbd
JK
2697Wed Apr 20 19:41:21 1994 Jim Kingdon (kingdon@lioth.cygnus.com)
2698
2699 * printcmd.c (print_command_1): Annotate the top-level expressions
2700 that we print.
2701 (print_frame_args): Annotate each argument.
2702 * printcmd.c, defs.h (print_value_flags): New function.
2703 * cp-valprint.c (cp_print_value_fields): Annotate each field.
2704 * valprint.c (val_print_array_elements): Annotate each array element.
2705
59746d9f
PS
2706Wed Apr 20 13:18:41 1994 Peter Schauer (pes@regent.e-technik.tu-muenchen.de)
2707
2708 * findvar.c (read_var_value): Handle LOC_REPARM_ADDR case correctly,
2709 the register contains a pointer to the type, not the type itself.
2710
6c803036
JK
2711Mon Apr 11 10:44:35 1994 Jim Kingdon (kingdon@deneb.cygnus.com)
2712
2713 * main.c (main): Accept --annotate=N option and make --fullname
2714 the same as --annotate=1.
2715 (command_line_input): Print annotatation before and after prompt.
2716 * blockframe.c (flush_cached_frames): Print annotation.
2717 * Rename frame_file_full_name to annotation_level and move it from
2718 symtab.h to defs.h.
2719 * source.c (identify_source_line): If annotation_level > 1,
2720 change output format.
2721 * breakpoint.c: Print annotation whenever a breakpoint changes.
2722 * main.c: New variable server_command.
2723 (command_line_input): Parse "server " and set server_command.
2724 (dont_repeat): Check server_command.
2725
d7a96d67
JK
2726Wed Apr 20 08:37:16 1994 Jim Kingdon (kingdon@lioth.cygnus.com)
2727
963dbabe
JK
2728 * xcoffread.c (xcoff_next_symbol_text): Don't return before
2729 updating raw_symbol and symnum. Return a value in the case where
2730 we complained.
2731
d7a96d67
JK
2732 * dstread.c, coffread.c: Don't define pending_blocks; buildsym.c
2733 takes care of it.
703e4251
JK
2734 * parse.c: Don't define block_found; it is defined in symtab.c.
2735 * parser-defs.h: Add comment regarding block_found.
d7a96d67 2736
d782a995
JL
2737Tue Apr 19 09:46:05 1994 Jeffrey A. Law (law@snake.cs.utah.edu)
2738
2739 * hppa-tdep.c (internalize_unwind_info): Delete unused indexp
2740 argument.
2741
be78eb1a
PS
2742Mon Apr 18 13:18:56 1994 Peter Schauer (pes@regent.e-technik.tu-muenchen.de)
2743
2744 * dbxread.c (read_dbx_dynamic_symtab): Relocate BFD symbols by
2745 section vma. Do not read dynamic relocs for sun3 executables to
2746 avoid BFD assertion message.
2747
9c842e0c
JL
2748Mon Apr 18 10:08:07 1994 Jeffrey A. Law (law@snake.cs.utah.edu)
2749
2750 * nm-hppab.h (KERNEL_U_ADDR): Define.
2751 (FIVE_ARG_PTRACE): Likewise.
2752 (CANNOT_STORE_REGISTER): Likewise.
8bd8cef2 2753 * nm-hppah.h (KERNEL_U_ADDR): Define.
9c842e0c
JL
2754 (FIVE_ARG_PTRACE): Likewise.
2755 (CANNOT_STORE_REGISTER): Likewise.
2756 (NEED_TEXT_START_END): Likewise.
2757
2758 * tm-hppah.h (NEED_TEXT_START_END): Delete definition.
2759 * xm-hppah.h (KERNEL_U_ADDR): Delete definition.
2760 (FIVE_ARG_PTRACE): Likewise.
2761 * xm-hppab.h (KERNEL_U_ADDR): Delete definition.
2762 (FIVE_ARG_PTRACE): Likewise.
2763
2764 * hppa-tdep.c (read_unwind_info): Make static.
2765 (restore_pc_queue): Indirect through the target vector to
2766 reload the register state.
2767
c5152d42
JL
2768Sat Apr 16 22:20:51 1994 Jeffrey A. Law (law@snake.cs.utah.edu)
2769
2770 * paread.c (compare_unwind_entries): Delete function. It's been
2771 moved into hppa-tdep.c.
2772 (read_unwind_info): Likewise.
2773 (pa_symfile_read): No longer call read_unwind_info. The unwind
2774 tables will be read in as they are needed.
2775
2776 * hppa-tdep.c (compare_unwind_entries): New function.
2777 (read_unwind_info, internalize_unwinds): Likewise.
2778 (find_unwind_entry): Read in unwind information on demand.
2779
fad466eb
SS
2780Fri Apr 15 11:53:46 1994 Stan Shebs (shebs@andros.cygnus.com)
2781
2782 * source.c (DIRNAME_SEPARATOR): New macro, replaces all references
2783 to : in search path processing.
2784 * defs.h (qsort): Rename argument in prototype.
2785 * symtab.h (SAYMBOL_VALUE): Rename value field, avoids bugs in
2786 some compilers.
2787 * breakpoint.c, exec.c, mdebugread.c, mipsread.c, xcoffexec.c
2788 (false): Eliminate usages.
2789
63eef03a
SC
2790Fri Apr 15 11:35:19 1994 Steve Chamberlain (sac@cygnus.com)
2791
2792 * h8500-tdep.c (initialize_h8500_tdep, large_command):
2793 All references to value changed to value_ptrlage_command is now
2794 called big_command.
2795 All references to value changed to value_ptr.
2796 * remote-e7000.c (e7000_wait): Use target_waitstatus and SETSTOP
2797 * remote-hms.c (hms_wait): Timeout after five seconds.
2798 * ser-go32.c (dosasync_read): Poll if timeout < 0.
2799 * config/tm/tm-h8500.h (BEFORE_MAIN_LOOP_HOOK): Deleted.
2800 * config/sh/tm-sh.h (BREAKPOINT): Is now sleep opcode.
2801
e6b8a171
JL
2802Thu Apr 14 07:01:56 1994 Jeffrey A. Law (law@snake.cs.utah.edu)
2803
2804 * procfs.c (procfs_wait): Protect watchpoint code with appropriate
2805 #ifdefs.
6bc194d2 2806 (procfs_set_watchpoint, procfs_stopped_by_watchpoint): Likewise.
e6b8a171 2807
999dd04b
JL
2808Wed Apr 13 14:52:46 1994 Jeffrey A. Law (law@snake.cs.utah.edu)
2809
2810 * breakpoint.h (enum bptype): Add bp_hardware_watchpoint and
2811 bp_watchpoint_scope breakpoints.
2812 (struct breakpoint): Add val_chain and related_breakpoint fields
2813 for use by watchpoints.
2814
2815 * breakpoint.c (within_scope): Delete. No longer used.
2816 (TARGET_CAN_USE_HARDWARE_WATCHPOINT): Provide default definition.
2817 (target_{remove,insert}_watchpoint): Likewise.
2818 (can_use_hardware_watchpoint): New function.
2819 (remove_breakpoint): New function to remove a single breakpoint
2820 or hardware watchpoint.
2821 (insert_breakpoints): Handle insertion of hardware watchpoints.
2822 Store a copy of the value chain derived from the watchpoint
2823 expression.
2824 (remove_breakpoints): Simplify by using remove_breakpoint.
2825 (delete_breakpoint): Likewise.
2826 (watchpoint_check): Delete the watchpoint and watchpoint scope
2827 breakpoints when the watchpoint goes out of scope. Save & restore
2828 the current frame after checking watchpoints.
2829 (breakpoint_init_inferior): Likewise (restarting the program
2830 makes all local watchpoints go out of scope).
2831 (bpstat_stop_status): Handle hardware watchpoints much like normal
2832 watchpoints. Delete the watchpoint and watchpoint scope breakpoint
2833 when the watchpoint goes out of scope. Remove and reinsert all
2834 breakpoints before returning if we stopped when a hardware watchpoint
2835 fired.
2836 (watch_command): Use a hardware watchpoint when possible. If
2837 watching a local expression, build a scope breakpoint too.
2838 (map_breakpoint_numbers): Also call given function for any
2839 related breakpoints.
2840 (disable_breakpoint): Never disable a scope breakpoint.
2841 (enable_breakpoint): Handle hardware breakpoints much like normal
2842 breakpoints, but recompute the watchpoint_scope breakpoint's
2843 frame and address (if we have an associated scope breakpoint).
2844 (read_memory_nobpt): Handle hardware watchpoints like normal
2845 watchpoints. When necessary handle watchpoint_scope breakpoints.
2846 (print_it_normal, bpstat_what, breakpoint_1, mention): Likewise.
2847 (clear_command, breakpoint_re_set_one, enable_command): Likewise.
2848 (disable_command): Likewise.
2849
2850 * blockframe.c (find_frame_addr_in_frame_chain): New function.
2851 Extern prototype added to frame.h
2852
2853 * infrun.c (wait_for_inferior): Set current_frame and select
2854 a frame before checking if we stopped due to a hardare watchpoint
2855 firing. Handle stepping over hardware watchpoints.
2856 (normal_stop): Remove unnecessary call to select_frame.
2857
2858 * value.h (value_release_to_mark): Declare.
2859 * values.c (value_release_to_mark): New function.
2860
2861 * procfs.c (procfs_wait): Add cases for hardware watchpoints.
2862 (procfs_set_watchpoint, procfs_stopped_by_watchpoint): New functions.
2863
2864 * hppab-nat.c (hppa_set_watchpoint): New function.
2865
2866 * config/pa/nm-hppab.h (STOPPED_BY_WATCHPOINT): Define.
2867 (HAVE_STEPPABLE_WATCHPOINT): Define.
2868 (TARGET_CAN_USE_HARDWARE_WATCHPOINT): Define.
2869 (target_{insert,delete}_watchpoint): Define.
2870
9ec76784
JL
2871 * config/mips/nm-irix4.h (TARGET_CAN_USE_HARDWARE_WATCHPOINT): Define.
2872 (STOPPED_BY_WATCHPOINT, HAVE_NONSTEPPABLE_WATCHPOINT): Likewise.
2873 (target_{insert,remove}_watchpoint): Likewise.
2874
70e375c3
SG
2875Mon Apr 11 19:21:27 1994 Stu Grossman (grossman at cygnus.com)
2876
2877 * xcoffread.c (read_xcoff_symtab): Ignore symbols of class C_EXT,
2878 smtyp XTY_LD, sclass XMC_DS (external data segment label). They
2879 often have the same names as debug symbols for functions, and
2880 confuse lookup_symbol().
2881
2ddeed27
JK
2882Mon Apr 11 10:44:35 1994 Jim Kingdon (kingdon@deneb.cygnus.com)
2883
2884 * remote.c: Around redefinition of PBUFSIZE, adjust whitespace.
2885 * config/pa/tm-hppa.h (REGISTER_BYTES): Use 4 rather than
2886 REGISTER_RAW_SIZE (1).
2887 Together these changes work around a bug in HP's compiler. Both
2888 seem to be necessary.
2889
699daa9c
JL
2890Mon Apr 11 09:18:24 1994 Jeffrey A. Law (law@snake.cs.utah.edu)
2891
2892 * paread.c (pa_symtab_read): Handle ST_STUB symbols and symbols
2893 with scope SS_EXTERNAL. ST_ENTRY symbols in dynamic executables
2894 are type mst_solib_trampoline.
2895
7b2b0758
JK
2896Fri Apr 8 17:14:37 1994 Jim Kingdon (kingdon@deneb.cygnus.com)
2897
2898 * config/m68k/es1800.mt: Change comments.
2899
2900Fri Apr 8 17:14:37 1994 Rob Savoye (rob@darkstar.cygnus.com)
2901
2902 * config/m68k/monitor.mt (TDEPFILES): Don't include remote-es.o.
2903
790a14a8
SG
2904Fri Apr 8 15:35:30 1994 Stu Grossman (grossman at cygnus.com)
2905
2906 * lynx-nat.c: Restore regmap structure for SPARC. It's needed
2907 for core files.
2908
f3e4ac4a
JK
2909Fri Apr 8 14:53:35 1994 Jim Kingdon (kingdon@deneb.cygnus.com)
2910
a110a1c3
JK
2911 * values.c (unpack_long): Remove obsolete comment about using a
2912 switch statement.
2913
f3e4ac4a
JK
2914 * symfile.c (symbol_file_command): Add comments about command syntax.
2915
2fe3b329
PS
2916Thu Apr 7 17:25:21 1994 Peter Schauer (pes@regent.e-technik.tu-muenchen.de)
2917 Jim Kingdon (kingdon@cygnus.com)
2918
2919 * infrun.c (IN_SOLIB_TRAMPOLINE): Correct comment, trampolines
2920 are in the .plt section.
2921 * minsyms.c (lookup_solib_trampoline_symbol_by_pc,
2922 find_solib_trampoline_target): New functions for handling
2923 stepping into -g compiled shared libraries.
2924 * symtab.h (lookup_solib_trampoline_symbol_by_pc,
2925 find_solib_trampoline_target): Add prototypes.
2926 * config/tm-sunos.h (IN_SOLIB_TRAMPOLINE, SKIP_TRAMPOLINE_CODE):
2927 Define to handle stepping into -g compiled shared libraries.
2928 * config/tm-sysv4.h (SKIP_TRAMPOLINE_CODE): Define to handle
2929 stepping into -g compiled shared libraries.
2930
2931Thu Apr 7 17:22:54 1994 Peter Schauer (pes@regent.e-technik.tu-muenchen.de)
2932
2933 * configure.in: Add mips-*-sysv4* support.
2934 * config/mips/mipsv4.mh, config/mips/mipsv4.mt,
2935 config/mips/tm-mipsv4.h, config/mips/xm-mipsv4.h, mipsv4-nat.c:
2936 New files for MIPS SVR4 support.
2937 * Makefile.in: Update for new mipsv4 files.
2938 * alpha-tdep.c (heuristic_proc_desc, find_proc_desc): Use
2939 read_next_frame_reg to obtain the frame relative stack pointer.
2940 * mips-tdep.c (heuristic_proc_desc): Use read_next_frame_reg to
2941 obtain the frame relative stack pointer.
2942 * mdebugread.c (parse_partial_symbols, psymtab_to_symtab1):
2943 Handle stStatic and stStaticProc symbols in stabs-in-ecoff output
2944 by entering them into the minimal symbol table.
2945 * printcmd.c (print_scalar_formatted): Do not try to unpack to
2946 a long for float formats.
2947 * solib.c: Include "elf/mips.h" only if DT_MIPS_RLD_MAP does not
2948 get defined in <link.h>.
2949 * solib.c (solib_add): Add shared library sections to the section
2950 table of the target before adding the symbols.
2951 * partial-stab.h: Relocate static and global functions.
2952 * dbxread.c (read_dbx_symtab): Remove unused variable
2953 end_of_text_address. Relocate text_addr when passing it
2954 to end_psymtab.
2955
2956 For Alpha OSF/1 targets, enable gdb to set breakpoints in shared
2957 library functions before the executable is run. Retrieve dynamic
2958 symbols from stripped executables.
2959 * mipsread.c (read_alphacoff_dynamic_symtab): New function.
2960 * mipsread.c (mipscoff_symfile_read): Use it. Issue warning message
2961 if no debugging symbols were found.
2962 * alpha-tdep.c (alpha_skip_prologue): Silently return the unaltered
2963 pc if memory at the pc is not accessible and GDB_TARGET_HAS_SHARED_LIBS
2964 is defined.
2965 * config/alpha/nm-alpha.h (GDB_TARGET_HAS_SHARED_LIBS): Define,
2966 OSF/1 has shared libraries.
2967
192b64e7
ILT
2968Thu Apr 7 15:11:11 1994 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
2969
2970 * dbxread.c (read_dbx_dynamic_symtab): Adjust for recent changes
2971 to BFD handling of dynamic symbols.
2972
45568424
JL
2973Tue Apr 5 15:29:25 1994 Jeffrey A. Law (law@snake.cs.utah.edu)
2974
4f915914
JL
2975 * hppa-tdep.c (hppa_fix_call_dummy): If FUN is a procedure label,
2976 then gets its real address into FUN and its GOT/DP value into %r19.
2977
2978 * tm-hppa.h (CALL_DUMMY): Use %r20, not %r19 as a temporary.
2979
7f43b9b7
JL
2980 * hppa-tdep.c (frameless_function_invocation): If no unwind
2981 descriptor was found, then assume this was not a frameless
2982 function invocation.
2983 (frame_saved_pc): If the saved PC is in a linker stub, then
2984 return the return address which the linker stub will return to.
2985
45568424
JL
2986 * xm-hppab.h: Never define USG.
2987 * xm-hppah.h: Always define USG.
2988
b96bc1e4
PB
2989Tue Apr 5 12:58:47 1994 Per Bothner (bothner@kalessin.cygnus.com)
2990
2991 * values.c (unpack_long, value_from_longest),
2992 valarith.c (value_binop): Allow TYPE_CODE_RANGE.
2993
d5412302
JK
2994Fri Apr 1 14:04:34 1994 Jason Merrill (jason@deneb.cygnus.com)
2995
2996 * symfile.c (deduce_language_from_filename): .cpp is a C++ extension.
2997
38b90473
PS
2998Fri Apr 1 00:44:00 1994 Peter Schauer (pes@regent.e-technik.tu-muenchen.de)
2999
3000 For SVR4 targets, enable gdb to set breakpoints in shared
3001 library functions before the executable is run.
3002 * elfread.c (elf_symtab_read): Handle symbols for shared library
3003 functions.
3004 * sparc-tdep.c (in_solib_trampoline): Renamed to in_plt_section
3005 and moved to objfiles.c.
3006 * objfiles.c (in_plt_section): Moved to here from sparc-tdep.
3007 * config/tm-sysv4.h (IN_SOLIB_TRAMPOLINE): Use new in_plt_section.
3008 * config/sparc/tm-sun4sol2.h (IN_SOLIB_TRAMPOLINE): Removed,
3009 the new generic definition from tm-sysv4.h works for Solaris.
3010
70f42bae
ILT
3011Wed Mar 30 16:14:27 1994 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
3012
3013 * elfread.c (elf_symtab_read): Change storage_needed,
3014 number_of_symbols and i to long. Rename get_symtab_upper_bound to
3015 bfd_get_symtab_upper_bound. Check for errors from
3016 bfd_get_symtab_upper_bound and bfd_canonicalize_symtab.
3017 * nlmread.c (nlm_symtab_read): Same changes.
3018
aece310f
JK
3019Wed Mar 30 11:43:29 1994 Jim Kingdon (kingdon@lioth.cygnus.com)
3020
34d265dc
JK
3021 * xcoffread.c (xcoff_next_symbol_text): New function.
3022 (read_xcoff_symtab): Set next_symbol_text_func to it.
3023 Move raw_symbol outside of read_xcoff_symtab.
3024
aece310f
JK
3025 * remote.c (getpkt): Remove unused "out" label.
3026
bd2f0c85
JL
3027Wed Mar 30 09:15:42 1994 Jeffrey A. Law (law@snake.cs.utah.edu)
3028
3029 * breakpoint.c (print_it_normal): Allow GDB to notify the user
3030 about more than one watchpoint being triggered.
3031
c2216bfd
JK
3032Wed Mar 30 08:24:18 1994 Jim Kingdon (kingdon@lioth.cygnus.com)
3033
3034 * config/m68k/tm-dpx2.h: Include tm-m68k.h not nonexistent tm-68k.h.
3035
db2302cb
PS
3036Wed Mar 30 00:31:49 1994 Peter Schauer (pes@regent.e-technik.tu-muenchen.de)
3037
9e837b37
PS
3038 * blockframe.c (find_pc_partial_function): mst_file_text
3039 symbols do not live in the shared library transfer table.
db2302cb
PS
3040 * ch-exp.y (decode_integer_value, match_character_literal,
3041 match_bitstring_literal): Guard tolower calls with isupper,
3042 tolower on old BSD systems blindly subtracts a constant.
3043 * dbxread.c (read_ofile_symtab): Check for __gnu_compiled_* as
3044 well when determining the producer of the object file.
3045 * mdebugread.c (has_opaque_xref): New function to check for
3046 cross reference to an opaque aggregate.
3047 * mdebugread.c (parse_symbol, parse_partial_symbols): Do not
3048 enter typedefs to opaque aggregates into the symbol tables.
3049 * mdebugread.c (parse_external): Remove skip_procedures argument,
3050 it has always been 1. Remove code that handled stProc symbols,
3051 it was never executed and was wrong, as the index of a
3052 stProc symbol points to the local symbol table and not to the
3053 auxiliary symbol info. Update caller.
3054 * mdebugread.c (parse_partial_symbols): Do not enter external
3055 stProc symbols into the partial symbol table, they are already
3056 entered into the minimal symbol table.
3057 * config/i386/tm-symmetry.h: Clean up, it is now only used for Dynix.
3058 Remove all conditionals and definitions for ptx.
3059 I386_REGNO_TO_SYMMETRY moved to here from symm-tdep.c.
3060 Fix addresses of floating point registers in REGISTER_U_ADDR.
3061 STORE_STRUCT_RETURN now handles cc and gcc conventions.
3062 FRAME_CHAIN, FRAMELESS_FUNCTION_INVOCATION, FRAME_SAVED_PC,
3063 IN_SIGTRAMP, SIGCONTEXT_PC_OFFSET defined to make backtracing through
3064 signal trampoline code work.
3065 * config/i386/xm-symmetry.h: Clean up, it is now only used for Dynix.
3066 Remove all conditionals and definitions for ptx.
3067 Remove KDB definitions.
3068 * symm-nat.c (store_inferior_registers): Fetch registers before
3069 storing them to obtain valid floating point control registers.
3070 Store fpu registers.
3071 * symm-nat.c (print_1167_control_word): Dynix 3.1.1 defines
3072 FPA_PCR_CC_C0 and FPA_PCR_CC_C1, avoid duplicate case value.
3073 * symm-nat.c (fetch_inferior_registers, child_xfer_memory):
3074 Fix typos.
3075 * symm-nat.c (child_resume): Update type of `signal' parameter.
3076 * symm-tdep.c (I386_REGNO_TO_SYMMETRY): Moved to tm-symmetry.h.
3077
19cd0c1f
JL
3078Tue Mar 29 23:01:33 1994 Jeffrey A. Law (law@snake.cs.utah.edu)
3079
3080 * hppa-tdep.c (hppa_fix_call_dummy): Use an alternate method for
3081 calling import stubs for functions in shared libraries.
3082
73cd3b49
PB
3083Tue Mar 29 21:14:04 1994 Per Bothner (bothner@kalessin.cygnus.com)
3084
58cda66e
PB
3085 * ch-exp.y: Implement SIZE(mode_name) and SIZE(expression).
3086
73cd3b49
PB
3087 * ch-lang.c (chill_is_varying_struct): Magic string is
3088 was "<var_length>" is now "__var_length" (more portable).
3089
0c993550
JK
3090Tue Mar 29 19:41:34 1994 Jim Kingdon (kingdon@lioth.cygnus.com)
3091
3092 * remote.c (getpkt): If we get a timeout, actually retry rather
3093 than just giving up the first time it happens.
3094 * remote.c: Document sequence numbers.
3095 (remote_store_registers): Change syntax of 'P' request so that it
3096 never looks like a sequence number.
3097
d80ff70c
KH
3098Tue Mar 29 16:06:01 1994 Kung Hsu (kung@mexican.cygnus.com)
3099
0c993550 3100 * os9kread.c (record_minimal_symbol): add section_offset to
d80ff70c
KH
3101 relocate minimal symbol table.
3102 * os9kread.c (read_minimal_symbols): ditto.
3103 * os9kread.c (os9k_symfile_init): increase size of dbg and stb
3104 file names.
3105 * os9kread.c (read_os9k_psymtab): if there's no dbg file, just
3106 return. Also if file addr is 0 leave it 0, not to relocate.
3107 * remote-os9k.c (_initialize_remote_os9k): add 'set remotexon',
3108 'set remotexoff' and 'set remotelog' commands.
3109
4aa6fe10
JK
3110Tue Mar 29 12:38:45 1994 Jim Kingdon (kingdon@lioth.cygnus.com)
3111
3112 * remote.c (remote_store_registers): Add 'P' request to set an
3113 individual register.
3114 (remote_write_bytes, remote_read_bytes): Use %lx, not %x, to print
3115 a target address.
3116
72e35288
JK
3117Sat Mar 26 07:05:18 1994 Jim Kingdon (kingdon@lioth.cygnus.com)
3118
649694ea
JK
3119 * config/sparc/tm-sparc.h: Define USE_REGISTER_NOT_ARG.
3120 * stabsread (define_symbol): If USE_REGISTER_NOT_ARG, go back to
3121 combining all 'p' and 'r' pairs into a LOC_REGPARM.
3122
72e35288
JK
3123 * command.c (do_setshow_command, case var_string): Never add a
3124 space to the end of the string.
3125 * NEWS: Document this change.
3126 * .gdbinit: Add a space to the "set prompt" command.
3127
59144a81
JK
3128Fri Mar 25 12:40:41 1994 Jim Kingdon (kingdon@lioth.cygnus.com)
3129
493424b1
JK
3130 * m3-nat.c, i386m3-nat.c, config/i386/i386m3.mh: Many minor
3131 changes to make it compile (it doesn't link yet).
3132
3133 * buildsym.c (start_subfile, patch_subfile_names), demangle.c
3134 (set_demangling_style, set_demangling_command): Use savestring not
3135 strdup. We were not dealing properly with a NULL return from
3136 strdup, and were not declaring strdup (the system header may or
3137 may not have it).
3138
59144a81
JK
3139 * valprint.c (val_print): Remove inaccurate comment about what
3140 types can be stub types.
3141
3142 * config/i386/ptx.mh (XDEPFILES): Add coredep.o. Delete infptrace.o.
3143 * symm-nat.c (child_wait, _initialize_symm_nat, kill_inferior):
3144 Supply alternate version if ATTACH_DETACH is not defined.
3145 * ptx4-nat.c, config/i386/{nm-ptx4.h, ptx4.mh, ptx.mt, ptx4.mt,
3146 tm-ptx.h, tm-ptx4.h, xm-ptx.h, xm-ptx4.h}: New files.
3147 * configure.in: Recognize i[34]86-sequent-sysv4* host.
3148
c8f75fe8
JL
3149Fri Mar 25 10:14:03 1994 Jeffrey A. Law (law@snake.cs.utah.edu)
3150
de482138
JL
3151 * hppa-tdep.c (skip_prologue): Do nothing if not at the beginning
3152 of a function.
3153 (skip_trampoline_code): Rewrite and add support for argument
3154 relocation stubs stubs, import/export stubs, calls through
3155 "_sr4export" and cascaded trampolines.
3156
fdafbfad
JL
3157 * hppa-tdep.c (skip_prologue): Return "pc" not zero
3158 if no unwind descriptor is found.
3159
eb1167c6
JL
3160 * tm-hppa.h (NUM_REGS): Bump to 128 registers.
3161 (REGISTER_NAMES): Add entries for "right-half" of FP registers.
3162 (REGISTER_RAW_SIZE, MAX_REGISTER_RAW_SIZE): Do not treat FP regs
3163 differently. All registers are four bytes.
3164 (REGISTER_BYTES, REGISTER_BYTE): Simplify now that all registers are
3165 the same size.
3166 (REGISTER_VIRTUAL_TYPE): Use builtin_type_float for all FP regs.
3167
3168 * hppa-tdep.c (pa_print_fp_reg): Update to print even numbered FP
3169 registers as both single and double values (fetching 2nd 32bit half
3170 as necessary). Annotate each register printed with its precision.
3171
c8f75fe8
JL
3172 * paread.c (read_unwind_info): Fix off-by-one error.
3173
0c1af47f
JK
3174Fri Mar 25 08:33:28 1994 Jim Kingdon (kingdon@lioth.cygnus.com)
3175
3176 * main.c (complete_command): Deal with it if arg is NULL.
3177
5801f348
JK
3178Thu Mar 24 07:12:09 1994 Jim Kingdon (kingdon@lioth.cygnus.com)
3179
4df6dcd1
JK
3180 * config/mips/tm-mips.h (SETUP_ARBITRARY_FRAME): Revise comment
3181 regarding using the PC--using the PC is necessary and all the
3182 FIXME comments in the world won't make it go away.
3183
2f3b7d8e
JK
3184 * valops.c (value_at, value_at_lazy): Give error if we dereference
3185 a pointer to void.
3186 * gdbtypes.h: Fix comments regarding TYPE_CODE_VOID.
3187 * stabsread.c: Use 1, not 0, for TYPE_LENGTH of void types.
3188
553e1862
JK
3189 * stabsread.c (patch_block_stabs): Add comment about what happens
3190 if the definition is in another compilation unit from the stab.
acdec954 3191
5801f348
JK
3192 * dbxread.c (end_psymtab): Add comment about empty psymtabs.
3193
09973223
JK
3194Wed Mar 23 07:50:33 1994 Jim Kingdon (kingdon@lioth.cygnus.com)
3195
3196 * main.c (complete_command): New command, from Rick Sladkey
3197 <jrs@world.std.com>.
3198 (symbol_completion_function): Don't declare rl_point and
3199 rl_line_buffer; they are now declared in readline.h.
3200 (show_commands): Don't declare history_base; it is declared in
3201 history.h.
3202 * command.c (lookup_cmd): Don't delete trailing whitespace.
acdec954 3203 Reverts change of 14 May 1989.
09973223
JK
3204
3205Wed Mar 23 16:14:52 1994 Stu Grossman (grossman at cygnus.com)
3206
3207 * minsyms.c (prim_record_minimal_symbol): Move section deduction
3208 code from prim_record_minimal_symbol_and_info() to here. Callers
3209 of the latter can legitimately supply a section number of -1.
3210
e552788b
JK
3211Wed Mar 23 07:50:33 1994 Jim Kingdon (kingdon@lioth.cygnus.com)
3212
3213 * gdbtypes.h, gdbtypes.c: Add comments regarding whether static
3214 member functions have an element in args for a (nonexistent) this
3215 pointer.
3216
84ad95c1
JL
3217Tue Mar 22 20:12:53 1994 Jeffrey A. Law (law@snake.cs.utah.edu)
3218
0a64709e
JL
3219 * config/pa/tm-hppao.h (NO_PC_SPACE_QUEUE_RESTORE): Define.
3220
3221 * hppa-tdep.c (hppa_pop_frame): Do not restore the PC space
3222 queue if NO_PC_SPACE_QUEUE_RESTORE is defined.
3223
84ad95c1
JL
3224 * stabsread.c (REG_STRUCT_HAS_ADDR): Accept additional argument
3225 for the structure's type. All callers changed.
3226
3227 * valops.c (call_function_by_hand): Check REG_STRUCT_HAS_ADDR
3228 for each structure argument rather than assuming it's either
3229 true or false for all structure arguments.
3230
3231 * config/pa/tm-hppa.h (REG_STRUCT_HAS_ADDR): Depend only
3232 on the length structure passed, not the compiler used.
3233
3234 * config/sparc/tm-sparc.h (REG_STRUCT_HAS_ADDR): Accept additional
3235 argument for the structure's type.
3236
29f2ceed
JK
3237Tue Mar 22 15:28:33 1994 Jim Kingdon (kingdon@lioth.cygnus.com)
3238
51f83933
JK
3239 * values.c (set_internalvar): Don't set var->value until we are
3240 sure there won't be an error().
3241
29f2ceed
JK
3242 * remote.c (get_offsets): Reinstate comment which was in
3243 remote_wait about use of SECT_OFF_TEXT and so on.
3244
3245Mon Mar 21 13:11:30 1994 Peter Schauer (pes@regent.e-technik.tu-muenchen.de)
3246
3247 * symmisc.c (maintenance_check_symtabs): New function to check
3248 consistency of psymtabs and symtabs.
3249 * symtab.h (maintenance_check_symtabs): Add prototype.
3250 * maint.c: Add new `maint check-symtabs' command.
3251 * config/i386/tm-i386aix.h, config/i386/tm-sun386.h,
3252 config/i386/tm-symmetry.h (REGISTER_CONVERT_TO_RAW): Fix typo.
3253 * config/i386/tm-symmetry.h: Make comment inside #if 0 a real
3254 comment.
3255 * config/i386/tm-symmetry.h (STORE_STRUCT_RETURN): Cast argument
3256 to write_memory to avoid warnings from gcc.
3257 * config/i386/xm-symmetry.h: Add missing #endif.
3258 * config/i386/nm-symmetry.h (NO_PTRACE_H): Add for Dynix.
3259 * config/i386/symmetry.mt (TDEPFILES): Add i386-tdep.o.
3260 * config/i386/symmetry.mh (NAT_FILE, NATDEPFILES): Add.
3261
4fd5eed4
JL
3262Mon Mar 21 11:50:28 1994 Jeffrey A. Law (law@snake.cs.utah.edu)
3263
3264 * hppa-tdep.c (hppa_fix_call_dummy): Use value_ptr.
3265 (hppa_push_arguments): Likewise.
3266
72bba93b
SG
3267Mon Mar 21 11:02:51 1994 Stu Grossman (grossman at cygnus.com)
3268
3269 * alpha-tdep.c: Gobs of changes (many imported from mips-tdep) to
3270 improve remote debugging efficiency. Also fixed problems with
3271 doing function calls for programs with no entry points.
3272 * infcmd.c (run_stack_dummy): Use CALL_DUMMY_ADDRESS instead of
3273 entry_point_address.
3274 * inferior.h (PC_IN_CALL_DUMMY): ditto.
3275 * mdebugread.c (parse_symbol, parse_procedure, parse_external,
3276 parse_lines): Pass section_offsets info to these routines so that
3277 we can relocate symbol table entries upon readin.
3278 * (psymtab_to_symtab_1): Set symtab->primary to tell
3279 objfile_relocate to do relocations for our symbols.
3280 * (ecoff_relocate_efi): New routine to relocate adr field of PDRs
3281 (which hang off of the symbol table).
3282 * Use prim_record_minimal_symbols_and_info instead of
3283 prim_record_minimal_symbols to supply section info to make minimal
3284 symbol relocations work.
3285 * minsyms.c (prim_record_minimal_symbols_and_info): If section is
3286 -1, try to deduce it from ms_type.
3287 * objfiles.c (objfile_relocate): Use ALL_OBJFILE_SYMTABS where
3288 appropriate. Handle relocation of MIPS_EFI symbols special. Also,
3289 add code to relocate objfile->sections data structure.
3290 * remote.c (get_offsets): Use new protocol message to acquire
3291 section offsets from the target.
3292 * (remote_wait): Get rid of relocation stuff. That's all handled
3293 by objfile_relocate now.
3294 * config/alpha/alpha-nw.mt (TM_FILE): Use tm-alphanw.h.
3295 * config/alpha/tm-alpha.h: Define CALL_DUMMY_ADDRESS, and
3296 VM_MIN_ADDRESS.
3297 * config/alpha/tm-alphanw.h: DECR_PC_AFTER_BREAK=0, VM_MIN_ADDRESS=0.
3298
d148e8c4
DE
3299Sun Mar 20 15:21:57 1994 Doug Evans (dje@cygnus.com)
3300
3301 * sparc-tdep.c (sparc_frame_find_save_regs): Use REGISTER_RAW_SIZE
3302 instead of 4.
d3688932
DE
3303 * sp64-tdep.c (target_ptr_bit, set_target_ptr_bit): Deleted,
3304 can no longer set this at run time.
7f695c07
DE
3305 * config/sparc/sp64.mt (SIMFILES): Use remote-sim.o now.
3306 (TM_CLIBS): Define to -lm, the simulator uses the sqrt() function.
3307 * config/sparc/tm-sp64.h (FPS_REGNUM, CPS_REGNUM): Define (so
3308 sparc-tdep.c compiles).
3309 (TARGET_PTR_BIT): Must be a constant now, fix at 64.
d3688932 3310
94d4b713
JK
3311Sat Mar 19 08:51:12 1994 Jim Kingdon (kingdon@lioth.cygnus.com)
3312
d0bff94e
JK
3313 * config/m68k/{cisco.mt,tm-cisco.h}: New files.
3314 * Makefile.in (ALLPARAM, ALLCONFIG): Add them.
3315 * configure.in: Recognize m68*-cisco*-*.
3316
94d4b713
JK
3317 * Makefile.in (TAGS): Use variables directly, rather than using
3318 find, to locate TM_FILE, XM_FILE, and NAT_FILE. This is faster
3319 and means that these filenames no longer need be unique across all
3320 the config/* directories.
3321 * configure.in: Put the config/*/ into TM_FILE, etc.
3322
3323 * m68k-stub.c (computeSignal): Return SIGFPE, not SIGURG, for chk
3324 and trapv exceptions.
3325
3326 * target.h (struct section_table), objfiles.h (struct obj_section):
3327 Change name of field sec_ptr to the_bfd_section. More mnemonic
3328 and avoids the (sort of, for the ptx compiler) name clash with
3329 the name of the typedef.
3330 * exec.c, xcoffexec.c, sparc-tdep.c, rs6000-nat.c, osfsolib.c,
3331 solib.c, irix5-nat.c, objfiles.c, remote.c: Change users.
3332
3333 * utils.c: Include readline.h.
3334 * Makefile.in (utils.o): Add dependency.
3335
3336 * remote.c (getpkt): Add support for run-length encoding.
3337
8eec3310
SC
3338Fri Mar 18 19:11:15 1994 Steve Chamberlain (sac@jonny.cygnus.com)
3339
3340 * utils.c (prompt_for_continue): Call readline, not gdb_readline.
3341
ee6d646a
JK
3342Fri Mar 18 10:25:55 1994 Jim Kingdon (kingdon@lioth.cygnus.com)
3343
20657f71
JK
3344 * dstread.c (record_minimal_symbol): New arg objfile. Pass it to
3345 prim_record_minimal_symbol.
3346 Callers: Pass it.
3347
ee6d646a
JK
3348 * regex.c (EXTEND_BUFFER): Adjust pointers within buffer by
3349 computing their offset from the start of the old buffer and adding
3350 to the new buffer, rather than by assuming we can add the
3351 difference between the old buffer and the new buffer (it might not
3352 fit in an int). Merge in cosmetic differences from emacs regex.c
3353 version of this macro.
3354
478d3811
JK
3355Wed Mar 16 15:28:54 1994 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
3356
3357 * Makefile.in (install-only): Fix use of program_transform_name.
3358
c42b8af8
JK
3359Wed Mar 16 07:18:43 1994 Jim Kingdon (kingdon@lioth.cygnus.com)
3360
f8715549 3361 * printcmd.c: Remove "set print fast-symbolic-addr off" command.
478d3811 3362 The bug which it worked around was fixed on 25 Feb 94 in coffread.c,
f8715549
JK
3363 so I'm nuking the command.
3364 * symtab.c (find_addr_symbol): Comment out, no longer used.
3365
a645ccc9
JK
3366 * main.c (main): Don't init_source_path for the -cd argument. Now
3367 that source_path doesn't contain the current_directory from when
3368 GDB started up, init_source_path is no longer useful (and is
3369 harmful because it clobbers a source_path set in $HOME/.gdbinit).
3370
c42b8af8
JK
3371 * TODO: Remove item about line numbers being off. It is useless
3372 and confusing without a reproducible test case (it mentions
3373 proceed(), but I was able to step through proceed without trouble).
3374
ae6d035d
PS
3375Tue Mar 15 13:39:23 1994 Peter Schauer (pes@regent.e-technik.tu-muenchen.de)
3376
3377 For Sunos 4.x targets, enable gdb to set breakpoints in shared
3378 library functions before the executable is run. Retrieve dynamic
3379 symbols from stripped executables.
3380 * symtab.h (minimal_symbol_type): Add mst_solib_trampoline type.
3381 * parse.c (write_exp_msymbol), symmisc.c (dump_msymbols),
3382 symtab.c (list_symbols): Handle mst_solib_trampoline.
3383 * minsyms.c (lookup_minimal_symbol): Handle mst_solib_trampoline
3384 for all targets, remove IBM6000_TARGET dependencies.
3385 * dbxread.c (read_dbx_dynamic_symtab): New function.
3386 * dbxread.c (dbx_symfile_read): Use it.
3387 * dbxread.c (SET_NAMESTRING): Set namestring to
3388 "<bad string table index>" instead of "foo" if the string index is
3389 corrupt.
3390 * xcoffread.c (read_xcoff_symtab): Use mst_solib_trampoline instead
3391 of mst_unknown.
3392 * symtab.c (list_symbols): Take from_tty as parameter and pass it
3393 to break_command. Handle mst_file_* minimal symbol types.
3394 * config/i386/tm-i386bsd.h: Give just macro name, not args, to #undef.
3395
b427690a
KH
3396Tue Mar 15 11:40:43 1994 Kung Hsu (kung@mexican.cygnus.com)
3397
3398 * c-exp.y(yylex): fix potential memory overflow.
3399
f93b941b
JK
3400Tue Mar 15 10:33:28 1994 Jim Kingdon (kingdon@lioth.cygnus.com)
3401
3402 * environ.c (set_in_environ): Eliminate special handling of PATH and
3403 GNUTARGET.
3404 * putenv.c: Removed, conflicts with system declaration of
3405 putenv on RS/6000 running AIX 3.2.5, and above change makes it
3406 unnecessary.
3407 * Makefile.in: Change accordingly.
3408 * procfs.c (procfs_create_inferior): Change comment accordingly.
3409
17221e41
JK
3410Tue Mar 15 10:05:27 1994 Jim Kingdon (kingdon@cygnus.com)
3411
3412 * rs6000-tdep.c: Change value to value_ptr.
3413
8eb79598
JK
3414Sun Mar 13 09:45:51 1994 Jim Kingdon (kingdon@lioth.cygnus.com)
3415
c4ad6b09
JK
3416 * i386m3-nat.c: Include floatformat.h.
3417 (get_i387_state): Use memset not bzero.
3418
5fa83062
JK
3419 * Version 4.12.3.
3420
3421 * Makefile.in: Enable commented out getopt_h, bfd_h, etc. Change
3422 ieee-float.h to floatformat.h.
3423
79f3d586
JK
3424 * valprint.c (val_print_string): Ignore error if the error
3425 happened after a terminating '\0'.
3426
3427 * c-valprint.c (c_val_print): Never add 1 to return value from
3428 val_print_string; just return what it returns.
3429
8eb79598
JK
3430 * target.h (enum target_signal): Add TARGET_SIGNAL_FIRST, for
3431 looping through all of the enums.
3432 * infrun.c (signals_info): Use it.
3433
c4de6b30
JK
3434Fri Mar 11 08:08:50 1994 Jim Kingdon (kingdon@lioth.cygnus.com)
3435
8e4c7b3e
JK
3436 * main.c (main): When printing warning about bad baud rate, don't
3437 use warning(); it relies on current_target which isn't set up yet.
3438
c4de6b30 3439 * breakpoint.c (_initialize_breakpoint): Update docstring for
d1bdad57
JK
3440 tbreak to match what the code actually does. Don't mention tbreak
3441 in docstrings for "enable once" or "enable breakpoints once".
c4de6b30 3442
d78d4d16
JK
3443Thu Mar 10 08:52:38 1994 Jim Kingdon (kingdon@lioth.cygnus.com)
3444
3445 * symfile.h (ADD_PSYMBOL_VT_TO_LIST): Don't put a semicolon after
3446 while (0). That defeats the whole purpose of using do . . . while (0).
3447 * mdebugread.c (parse_partial_symbols): Don't use ?: expression as
3448 list for ADD_PSYMBOL_TO_LIST; the macro takes its address and
3449 using a ?: expression as an lvalue is not portable.
3450
3451 * stabsread.c (define_symbol): If REG_STRUCT_HAS_ADDR, also
3452 convert a LOC_ARG to a LOC_REF_ARG. Update code which combines
3453 'p' and 'r' symbol descriptors into a single symbol to look for a
3454 LOC_REF_ARG.
3455 * README, config/sparc/tm-sparc.h: Update comments.
3456
10373914
PS
3457Wed Mar 9 21:43:24 1994 Peter Schauer (pes@regent.e-technik.tu-muenchen.de)
3458
3459 * mdebugread.c (parse_type): Do not complain for types with
3460 an `indexNil' aux index, these are simply undefined types.
3461 Remove indexNil check from caller of parse_type.
3462 * mdebugread.c (parse_partial_symbols): Do not enter
3463 stGlobal, scCommon symbols into the minimal symbol table, their
3464 value is the size of the common, not its address.
3465 Handle scInit, scFini, scPData and scXData sections.
3466 Use minimal symbol type mst_file_* for stLabel symbols, instead of
3467 mst_*.
3468 Enter stProc symbols into the global_psymbols list once, not into
3469 the static_psymbols_list.
3470 Get rid of dummy psymtab if it is empty, to allow proper detection
3471 of stripped executables.
3472 * mdebugread.c (cross_ref): Allow cross references to Fortran
3473 common blocks.
3474
fddb9bda
JK
3475Wed Mar 9 15:23:19 1994 Jim Kingdon (kingdon@lioth.cygnus.com)
3476
3477 * stabsread.c (common_block_end, fix_common_block): Stash the
3478 struct pending * in the SYMBOL_TYPE, not the SYMBOL_NAMESPACE, so
3479 as to not assume that a pointer fits in an enum.
3480
d9389f37
KH
3481Wed Mar 9 18:56:36 1994 Kung Hsu (kung@mexican.cygnus.com)
3482
3483 * os9kread.c (fill_sym): check compiler verion number for pre-
3484 UltraC compiler.
3485 * os9kread.c (os9k_process_one_symbol): address of symbol is
3486 relative to section not module.
3487 * stabsread.c (define_symbol): add symbol type 's' as local
3488 symbol for os9k.
3489 * remote-os9k.c: add command 'set monitor_log' to turn on or off
3490 monitor logging.
3491 * remote-os9k.c: fix bug in delete breakpoint, single step trace.
3492 * remote-os9k.c: fix bug in 'set remotebaud' function.
3493 * remote-os9k.c (rombug_link): minimize checking so to improve
3494 speed.
fddb9bda 3495 * symfile.c (symbol_file_command): check if failed to link, also make
d9389f37
KH
3496 the command be able to accept more than one filenames.
3497 * target.c (target_link): check if failed to link with rombug.
3498 * config/i386/tm-i386os9k.h : add #define DECR_PC_AFTER_BREAK 0.
3499
cdc7029d
JK
3500Wed Mar 9 15:23:19 1994 Jim Kingdon (kingdon@lioth.cygnus.com)
3501
3502 * remote-es.c (es1800_child_ops): Don't declare it static.
3503
352c21dd
JK
3504Tue Mar 8 11:42:39 1994 Jim Kingdon (kingdon@cygnus.com)
3505
3506 * config/i386/tm-i386v4.h: Give just macro name, not args, to #undef.
3507
ce2f21b2
JK
3508Tue Mar 8 06:56:13 1994 Jim Kingdon (kingdon@lioth.cygnus.com)
3509
9d2b8d50
JK
3510 * dbxread.c: New variable lowest_text_address.
3511 (record_minimal_symbol, read_dbx_symtab): Set it.
3512 (read_dbx_symtab): Use lowest_text_address + text_size instead of
3513 end_of_text_address.
3514 * config/gould/tm-pn.h: Add comment regarding END_OF_TEXT_DEFAULT.
3515
3516 * dbxread.c (end_psymtab): Remove old and commented out
3517 capping_global and capping_static. Fix comments regarding
3518 N_SO_ADDRESS_MAYBE_MISSING to match the real name of the macro.
3519
79448221
JK
3520 * parser-defs.h: Add "extern" to start of variable declarations so
3521 we don't end up with commons.
3522 * parse.c: Define these variables.
3523
ce2f21b2
JK
3524 * irix5-nat.c (find_solib): Cast o_path to CORE_ADDR when using it
3525 as one.
3526
7810d333
JK
3527Mon Mar 7 13:00:50 1994 Jim Kingdon (kingdon@lioth.cygnus.com)
3528
3529 * alpha-tdep.c: Change value to value_ptr.
3530
a6e21fba
PS
3531Sun Mar 6 17:36:53 1994 Peter Schauer (pes@regent.e-technik.tu-muenchen.de)
3532
3533 * solib.c (elf_locate_base): New function to locate the address
3534 of the dynamic linker's runtime structure in the dynamic info section.
3535 * solib.c (locate_base): Use it instead of iterating over the list
3536 of mapped address segments.
3537 * solib.c (look_for_base, bfd_lookup_symbol): Removed, no longer
3538 necessary.
3539
70e43abe
JL
3540Fri Mar 4 09:50:47 1994 Jeffrey A. Law (law@snake.cs.utah.edu)
3541
3542 * hppa-tdep.c (pc_in_linker_stub): Move decl to beginning of file.
3543 (pc_in_interrupt_handler): New function. Also add PARAM decl.
3544 (find_proc_framesize): Deal with HPUX setting SAVE_SP bit for
3545 signal trampoline and interrupt routines.
3546 (frame_saved_pc): Handle signal trampolines and interrupt routines.
3547 (frame_chain, frame_chain_valid): Likewise.
3548 (hppa_frame_find_saved_regs): Likewise. Also deal with special
3549 saved regs convention for SP.
3550
3551 * tm-hppa[bho].h: FRAME_FIND_SAVED_PC_IN_SIGTRAMP): Define.
3552 (FRAME_BASE_BEFORE_SIGTRAMP): Define.
3553 (FRAME_FIND_SAVED_REGS_IN_SIGTRAMP): Define.
3554
3555 * tm-hppah.h (IN_SIGTRAMP): Define.
3556
833a2895
JK
3557Thu Mar 3 12:41:16 1994 Jim Kingdon (kingdon@deneb.cygnus.com)
3558
93dc3414
JK
3559 * ch-exp.y (match_simple_name_string): Accept '_' as well as an
3560 alphabetic character as the start of a name.
3561
b855dfe7
JK
3562 * sparclite/Makefile.in (all install): Build and install aload.
3563
d9a5e91f
JK
3564 * configure.in: Accept i[34]86-*-*sysv32 because that is what
3565 config.guess and config.sub produce.
3566
833a2895
JK
3567 * mips-tdep.c: Change value to value_ptr.
3568
82a2edfb
JK
3569Wed Mar 2 09:17:55 1994 Jim Kingdon (kingdon@deneb.cygnus.com)
3570
3571 * breakpoint.c, breakpoint.h, c-valprint.c, ch-valprint.c,
3572 cp-valprint.c, eval.c, expprint.c, findvar.c, language.c,
3573 objfiles.h, infcmd.c, printcmd.c, stack.c, typeprint.c,
3574 valarith.c, valops.c, valprint.c, value.h, values.c: Replace
3575 value with value_ptr. This is for the ptx compiler.
3576 * objfiles.h, target.h: Don't declare a "sec_ptr" field using a
3577 "sec_ptr" typedef.
3578 * symm-nat.c: Add a bunch of stuff for symmetry's ptrace stuff.
3579 #if 0 i386_float_info.
3580 * symm-tdep.c (round): Remove. Also remove sgttyb.
3581 * symm-tdep.c: Remove lots of stuff which duplicates stuff from
3582 i386-tdep.c. Remove register_addr and ptx_coff_regno_to_gdb.
3583 * i386-tdep.c (i386_frame_find_saved_regs): Put in
3584 I386_REGNO_TO_SYMMETRY check in case it is needed for Dynix
3585 someday.
3586 * config/i386/nm-symmetry.h: Change KERNEL_U_ADDR. Move
3587 stuff from PTRACE_READ_REGS, PTRACE_WRITE_REGS macros to
3588 symm-nat.c. Define CHILD_WAIT and declare child_wait().
3589 * config/i386/tm-symmetry.h: Remove call function stuff; stuff in
3590 tm-i386v.h is apparently OK.
3591 * config/i386/xm-symmetry.h [_SEQUENT_]: Define HAVE_TERMIOS not
3592 HAVE_TERMIO. Define MEM_FNS_DECLARED, NEED_POSIX_SETPGID, and
3593 USE_O_NOCTTY.
3594
c485c7a9
PS
3595Wed Mar 2 11:31:08 1994 Peter Schauer (pes@regent.e-technik.tu-muenchen.de)
3596
3597 * osfsolib.c (xfer_link_map_member): Update to use new
3598 target_read_string interface.
3599
d1c0c6cf
JK
3600Wed Mar 2 09:17:55 1994 Jim Kingdon (kingdon@deneb.cygnus.com)
3601
3602 * infrun.c (wait_for_inferior): In checking
3603 remove_breakpoints_on_following_step, check
3604 through_sigtramp_breakpoint as well as step_resume_breakpoint.
3605
25200748
JK
3606Tue Mar 1 16:22:56 1994 Jim Kingdon (kingdon@deneb.cygnus.com)
3607
3608 * os9kread.c (os9k_process_one_symbol): Rename
3609 VARIABLES_INSIDE_BLOCK to OS9K_VARIABLES_INSIDE_BLOCK.
3610 * symfile.c (symbol_file_command): Check for (CORE_ADDR)-1, not
3611 (CORE_ADDR)0, from target_link, since that is what it uses.
3612 Process name at end, not during parsing (like we did before Kung's
3613 change), so that -readnow and -mapped can appear anywhere.
3614 Make text_relocation a local variable.
3615 * config/i386/i386os9k.mt: Fix comment.
3616 * Makefile.in (ALLDEPFILES): Add remote-os9k.c.
3617 * os9kread.c: Put "comments" after #endif inside /* */.
3618 * stabsread.h: Add os9k_stabs variable.
3619 * stabsread.c (start_stabs), os9kread.c (os9k_process_one_symbol):
3620 Set it.
3621 * stabsread.c (define_symbol): If os9k_stabs, put a 'V' symbol
3622 descriptor in global_symbols not local_symbols.
3623 (read_type): If os9k_stabs, accept 'c', 'i', and 'b' type
3624 descriptors.
3625 (read_type): If os9k_stabs, accept function parameters after 'f'
3626 type descriptor.
3627 (read_array_type): If os9k_stabs, don't expect index type and
3628 expect lower and upper to be separated by ',' not ';'.
3629 (read_enum_type): If os9k_stabs, read a number before the first
3630 enumeration constant.
3631 (os9k_init_type_vector): New function.
3632 (dbx_lookup_type): Call it when starting new type vector.
3633 * config/i386/tm-i386os9k.h: Define BELIEVE_PCC_PROMOTION.
3634 * (os9k_process_one_symbol): Call define_symbol not os9k_define_symbol.
3635 * os9kstab.c: Removed.
3636 * Makefile.in: Update accordingly.
3637 * objfiles.c (objfile_relocate_data): Removed.
3638 * remote-os9k.c (rombug_wait): Call objfile_relocate
3639 not objfile_relocate_data.
3640 * objfiles.h, objfiles.c: Remove find_pc_objfile.
3641 * remote-os9k.c (rombug_wait): Call find_pc_section not
3642 find_pc_objfile.
3643 * main.c (quit_command): Check inferior_pid; revert Kung change.
3644 * remote-os9k.c (rombug_create_inferior): Set inferior_pid.
3645
1340861c
KH
3646Tue Mar 1 14:56:14 1994 Kung Hsu (kung@mexican.cygnus.com)
3647
3648 * os9kread.c: New file to read os9000 style symbo table.
3649 * os9kstab.c: new file to read os9000 style stabs.
3650 * remote-os9k.c: remote protocol talking to os9000 rombug monitor.
3651 * objfiles.c (find_pc_objfile): new function to search objfile
3652 from pc.
3653 * objfiles.c (objfile_relocate_data): new function to relocate
3654 data symbols in symbol table.
3655 * objfiles.h: Add two aux fields in struct objfile to handle
3656 multiple symbol table files situation like in os9000.
3657 * symfile.c: Change so 'symbol-file' command can handle multiple
3658 files. Also call target_link() to get relocation infos.
3659 * target.c (target_link): new function to get relocation info when
3660 a symbol file is requested to load.
3661 * main.c (quit_command): take out 'inferior_pid != 0' condition,
3662 because in cross mode there's no inferior pid, bit they need to
3663 be detached.
3664 Makefile.in: add os9kread.c os9kstab.c and .o's.
3665 configure.in: add i386os9k target.
3666 config/i386/i386os9k.mt: new add.
3667 config/i386/tm-i386os9k.h: new add.
3668
137b6849
PS
3669Tue Mar 1 13:16:10 1994 Peter Schauer (pes@regent.e-technik.tu-muenchen.de)
3670
3671 * config/sparc/tm-sun4sol2.h (IN_SIGTRAMP): Handle ucbsigvechandler.
3672 * sparc-tdep.c (sparc_frame_saved_pc): Handle ucbsigvechandler.
3673
4ad0021e
JK
3674Tue Mar 1 11:54:11 1994 Jim Kingdon (kingdon@deneb.cygnus.com)
3675
3676 * target.c, target.h (target_read_string): Provide error detection to
3677 caller. Put string in malloc'd space, so caller need not impose
3678 arbitrary limits.
3679 * solib.c (find_solib): Update to use new interface.
3680 * irix5-nat.c (find_solib): Read o_path from inferior
3681 (clear_solib): Free storage for o_path.
3682 * valprint.c (val_print_string): Add comments.
3683
e3d6ec4a
PS
3684Mon Feb 28 23:54:39 1994 Peter Schauer (pes@regent.e-technik.tu-muenchen.de)
3685
3686 * symtab.c (decode_line_1): Handle the case when skip_quoted does not
3687 advance `p'.
3688
c8ff77be
JK
3689Mon Feb 28 12:40:46 1994 Jim Kingdon (kingdon@deneb.cygnus.com)
3690
30974778
JK
3691 * value.h (struct value): Add modifiable field.
3692 * values.c (allocate_value, record_latest_value, value_copy): Set it.
3693 (record_latest_value): Don't mess with VALUE_LVAL of value.
3694 * valops.c (value_assign): Check it. Reword existing error
3695 message on not_lval.
3696
b5aff268
JK
3697 * mips-tdep.c (mips_step_skips_delay), config/mips/tm-mips.h
3698 (STEP_SKIPS_DELAY): Added.
3699 * infrun.c (proceed) [STEP_SKIPS_DELAY]: Check for a breakpoint in
3700 the delay slot.
3701
c8ff77be
JK
3702 * valprint.c (val_print_string): If errcode is set, always print
3703 an error, regardless of force_ellipsis. In the non-EIO case,
3704 just print the error message rather than calling error(). Don't
3705 access *(bufptr-1) if bufptr points to the start of the buffer.
3706 When looking for '\0', don't increment bufptr and addr if bufptr
3707 started out already at limit. If an error happens on fetching the
3708 first character, don't print the string.
3709
2882219f
JK
3710Sun Feb 27 21:05:06 1994 Jim Kingdon (kingdon@deneb.cygnus.com)
3711
3712 * config/m68k/tm-apollo68b.h: Remove HAVE_68881 define; it is
3713 obsolete.
3714
3715 * i387-tdep.c, i386-tdep.c i386v-nat.c, i386aix-nat.c,
3716 i386m3-nat.c, config/m68k/tm-m68k.h, i960-tdep.c
3717 config/i960/tm-i960.h, remote-nindy.c, config/m88k/tm-m88k.h,
3718 m88k-tdep.c: Use floatformat.h instead of ieee-float.h.
3719 * sparc-tdep.c: Remove now-obsolete ieee-float.h stuff
3720 * findvar.c: Update comment regarding ieee-float.h.
3721
28ee4b42
PS
3722Sun Feb 27 21:39:48 1994 Peter Schauer (pes@regent.e-technik.tu-muenchen.de)
3723
3724 * config/i386/tm-i386v4.h (I386V4_SIGTRAMP_SAVED_PC, IN_SIGTRAMP,
3725 FRAME_CHAIN, FRAMELESS_FUNCTION_INVOCATION, FRAME_SAVED_PC):
3726 Define to make backtracing through the various sigtramp handlers
3727 work.
3728 * i386-tdep.c (i386v4_sigtramp_saved_pc): New routine to fetch
3729 the saved pc from ucontext on the stack for SVR4 signal handling.
3730
25354cef
JK
3731Fri Feb 25 09:41:11 1994 Jim Kingdon (kingdon@deneb.cygnus.com)
3732
c20c1bdf
JK
3733 * remote.c, remote-mon.c, remote-utils.c, remote-utils.h,
3734 target.h, remote-es.c, remote-nindy.c: Don't set baud rate if
3735 baud_rate is -1. Remove sr_get_baud_rate and sr_set_baud_rate;
3736 just use the global variable itself. When printing baud rate,
3737 don't print a baud rate if baud_rate is -1.
3738
25354cef
JK
3739 * coffread.c (read_coff_symtab): Pass mst_file_* to
3740 record_minimal_symbol for C_STAT symbols. Put C_EXT and C_STAT
3741 symbols in the minimal symbols regardless of SDB_TYPE.
3742
7126c1d0
JK
3743Thu Feb 24 08:30:33 1994 Jim Kingdon (kingdon@deneb.cygnus.com)
3744
bcc37718
JK
3745 * breakpoint.h (enum bptype): New type bp_through_sigtramp.
3746 (bpstat_what_main_action): New code BPSTAT_WHAT_THROUGH_SIGTRAMP.
3747 * breakpoint.c (bpstat_what): Return BPSTAT_WHAT_THROUGH_SIGTRAMP
3748 if we hit a bp_through_sigtramp breakpoint. Remove kludge which
3749 ignored bs->stop for a bp_step_resume breakpoint.
3750 * infrun.c (wait_for_inferior): Make a through_sigtramp_breakpoint
3751 which performs one (the check_sigtramp2 one) of the functions
3752 which had been handled by the step_resume_breakpoint. For each
3753 use of the step_resume_breakpoint, make it still use the
3754 step_resume_breakpoint, use the through_sigtramp_breakpoint, or
3755 operate on both.
3756 Deal with BPSTAT_WHAT_THROUGH_SIGTRAMP return from bpstat_what.
3757 When setting the frame address of the step resume breakpoint, set
3758 it to the address for frame *before* the call instruction is
3759 executed, not after.
3760
3fed1c4a
JK
3761 * mips-tdep.c (mips_print_register): Print integers using
3762 print_scalar_formatted rather than duplicating all the
3763 CC_HAS_LONG_LONG and so on.
3764 (mips_push_dummy_frame): Use read_register_gen rather than using
3765 read_register and then putting it back in target format with
3766 store_unsigned_integer. If registers are more than 4 bytes, give
3767 an error rather than have some registers overwrite other
3768 registers.
3769 #if 0 unused include of opcode/mips.h.
3770
3771 * symfile.h: Don't declare arguments for coff_getfilename.
3772
7126c1d0
JK
3773 * defs.h: Revert Kung change regarding FORCE_LONG_LONG.
3774
6bfd168c
JL
3775Thu Feb 24 08:06:52 1994 Jeffrey A. Law (law@snake.cs.utah.edu)
3776
3777 * configure.in (hppa*-*-osf*): New configuration.
3778 * config/pa/hppaosf.mt: New target makefile fragment.
3779 * config/pa/tm-hppao.h: New target include file.
3780
5c07a10b
PS
3781Thu Feb 24 04:29:19 1994 Peter Schauer (pes@regent.e-technik.tu-muenchen.de)
3782
3783 * exec.c (print_section_info): Print entry point for exec_bfd only.
3784 * ser-unix.c (wait_for): Fix typo in HAVE_TERMIO case.
8ce2cfc0
PS
3785 * dwarfread.c: Remove second inclusion of <sys/types.h>, which
3786 causes problems if <sys/types.h> has no multiple inclusion protection.
5c07a10b 3787
fce7695f
JL
3788Wed Feb 23 16:28:55 1994 Jeffrey A. Law (law@cygnus.com)
3789
3790 * tm-hppa.h (CALL_DUMMY): Add two NOP instructions to the end of
3791 the call dummy to avoid kernel bugs in HPUX, BSD, and OSF1.
3792 (CALL_DUMMY_LENGTH): Changed accordingly.
3793
318ee78a
SG
3794Wed Feb 23 16:21:25 1994 Stu Grossman (grossman at cygnus.com)
3795
75a006d9
SG
3796 * sparc-stub.c (trap_low): Make trap handler work for arbitrary
3797 numbers of register windows.
3798
318ee78a
SG
3799 * sparclite/hello.c: Add factorial function for testing.
3800 * salib.c: Use macros instead of constants for I/O addresses to
3801 make 931 support easier.
3802 * sparclite.h: Change constraint for LOC to "rJ" to force use of
3803 register in sta/lda instructions.
3804
56dd4126
JK
3805Wed Feb 23 10:39:18 1994 Jim Kingdon (kingdon@rtl.cygnus.com)
3806
3807 * dbxread.c (process_one_symbol): Set
3808 block_address_function_relative for COFF like we do for ELF and SOM.
3809
847d9775
PS
3810Sat Feb 19 03:17:32 1994 Peter Schauer (pes@regent.e-technik.tu-muenchen.de)
3811
3812 * mdebugread.c (new_psymtab): Pass in section_offsets and set
3813 them in the pst.
3814 * mdebugread.c (handle_psymbol_enumerators): New function to enter
3815 the enumerators of an ecoff enum into the partial symbol table.
3816 * mdebugread.c (parse_partial_symbols): Call it.
3817 * symfile.c (reread_symbols): Initialize objfile->*_psymbols.next.
3818 * symmisc.c (dump_psymtab): Fix typo, clean up output of section
3819 offsets. Cast psymtab->read_symtab to PTR before passing it to
3820 gdb_print_address.
3821 * i386-tdep.c (i386_skip_prologue): Skip over instructions that
3822 set up the global offset table pointer in pic compiled code.
3823 * config/mips/tm-mips.h (FIX_CALL_DUMMY): For big endian targets,
3824 error() on TYPE_CODE_FLT arguments whose size is greater than 8,
3825 swap all other TYPE_CODE_FLT arguments as mips_push_arguments
3826 ensures that floats are promoted to doubles before they are pushed
3827 on the stack.
3828
9f35e15a
SG
3829Fri Feb 18 23:12:59 1994 Stu Grossman (grossman at cygnus.com)
3830
3831 * sparclite/Makefile.in, sparclite/salib.c, sparclite/sparclite.h:
3832 Fixup cache_on and flush_i_cache so that they work for both the
3833 930 and 932 processors. Rewrite most low level funcs (uart
3834 access & cache stuff) to use new ASI access macros in sparclite.h.
3835 Also make it easy to access second serial port.
3836
56173dc5
ILT
3837Fri Feb 18 22:17:33 1994 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
3838
3839 * hp300ux-nat.c: Don't incloude <sys/dir.h>, <sys/ioctl.h>, or
3840 <sys/stat.h>; not needed.
3841
c84bab2d
JK
3842Fri Feb 18 08:26:29 1994 Jim Kingdon (kingdon@lioth.cygnus.com)
3843
3844 * stack.c (print_frame_info): In "pathological" case, don't
3845 distrust the line number information.
3846
748d77d7
KH
3847Fri Feb 18 16:51:14 1994 Kung Hsu (kung@mexican.cygnus.com)
3848
3849 * mips-tdep.c (mips_print_register): handle 64 bits register.
3850 * valprint.c (print_longest): fix a bug in printing 64 bits value.
3851
889f1f03
JK
3852Fri Feb 18 08:26:29 1994 Jim Kingdon (kingdon@lioth.cygnus.com)
3853
1eb89b9e
JK
3854 * Version 4.12.2.
3855
ef1a0540
JK
3856 * Makefile.in (install): Do the sed for program_transform_name
3857 ourselves instead of worrying about INSTALL_XFORM. This enables
3858 users to override INSTALL_PROGRAM in the standard way.
3859
3860 * Makefile.in (c-exp.tab.o, ch-exp.tab.o, m2-exp.tab.o): Don't
3861 depend on Makefile.in.
3862
fb0f4231
JK
3863 * defs.h, valprint.c: Make longest_to_int a function not a macro.
3864 Only test against INT_MIN if a LONGEST is bigger than an int.
3865
889f1f03
JK
3866 * README: Change GhostScript to Ghostscript.
3867
662f3b3f
JK
3868Fri Feb 18 07:30:55 1994 Jim Kingdon (kingdon@cygnus.com)
3869
d5cb2f7d
JK
3870 * config/rs6000/{tm-rs6000lynx.h,nm-rs6000lynx.h,xm-rs6000lynx.h}:
3871 Rename to tm-rs6000ly.h, nm-rs6000ly.h, xm-rs6000ly.h for 14
3872 character file names.
3873 * Makefile.in (ALLPARAM): Add these files.
3874
662f3b3f
JK
3875 * config/mips/littlemips64.mt: Rename to mipsel64.mt for 14
3876 character file names.
d5cb2f7d 3877 * Makefile.in: Add Kung's new mips64 files.
662f3b3f 3878
70126bf9
KH
3879Thu Feb 17 17:25:47 1994 Kung Hsu (kung@mexican.cygnus.com)
3880
3881 * configure.in: add mips64-*-elf, mips64-*-ecoff, mips64el-*-elf,
3882 mips64el-*-ecoff and mips64-big-*.
3883 * defs.h: get rid of FORCE_LONG_LONG.
3884 * mips-tdep.c (mips_find_saved_regs): add sd and sdc1 instruction
3885 parsing. Change register size to be MIPS_REGSIZE.
3886
c4a081e1
DM
3887Thu Feb 17 09:30:22 1994 David J. Mackenzie (djm@thepub.cygnus.com)
3888
3889 * corelow.c, exec.c, irix5-nat.c, mipsread.c, objfiles.c,
3890 osfsolib.c, rs6000-nat.c, solib.c, symfile.c, utils.c,
3891 xcoffexec.c: Use bfd_get_error and bfd_set_error and new error names.
3892
3b5442f9
SC
3893Fri Feb 11 21:47:24 1994 Steve Chamberlain (sac@sphagnum.cygnus.com)
3894
3895 * remote-hms.c (readchar, hms_open, hms_fetch_register): Made more robust.
3896 (remove_commands, add_commands): Add/remove hms-drain when target
3897 is connected.
3898
d87d7b10
SG
3899Fri Feb 11 16:11:38 1994 Stu Grossman (grossman at cygnus.com)
3900
3901 * configure.in: Add Lynx/rs6000 support.
3902 * lynx-nat.c: Clean up some Sparc stuff. Clean up ptrace error
3903 messages. Add rs6000 support. Don't try to modify unwritable
3904 registers.
3905 * rs6000-nat.c: Move lots of native dependent stuff (like core
3906 file support) from rs6000-tdep.c & xcoffexec.c to here.
3907 * rs6000-tdep.c: Move native dependent stuff to nat.c.
3908 * xcoffexec.c: Move native dependent stuff to nat.c.
3909 * config/rs6000/nm-rs6000.h: Move defs of SOLIB_* macros to here
3910 from tm file.
3911 * config/rs6000/tm-rs6000.h: Remove defs of SOLIB_* funcs, cuz they're
3912 really native.
3913 * config/rs6000/tm-rs6000lynx.h, config/rs6000/xm-rs6000lynx.h:
3914 New files to support Lynx/rs6000.
3915
ba47c66a
PS
3916Tue Feb 8 00:32:28 1994 Peter Schauer (pes@regent.e-technik.tu-muenchen.de)
3917
3918 * README: Remove note about gcc warnings on alpha, these should be
3919 gone now.
3920 * c-exp.y, ch-exp.y, core.c, corelow.c, eval.c, fork-child.c,
3921 m2-exp.y, minsyms.c, nlmread.c, parse.c, putenv.c, regex.c
3922 remote-utils.c, stabsread.c: Include <string.h>.
3923 * regex.c: Include "defs.h", change re_comp argument to const char *.
3924 * infptrace.c (fetch_register, store_inferior_registers): Change
3925 regaddr to type CORE_ADDR.
3926 * config/alpha/alpha-nw.mt, config/alpha/alpha-osf1.mt (MT_CFLAGS):
3927 Remove, no longer necessary now that we use bfd_vma for a CORE_ADDR.
3928
3929Mon Feb 7 09:21:17 1994 Jim Kingdon (kingdon@lioth.cygnus.com)
3930
3931 * symtab.h: Always define BYTE_BITFIELD to nothing.
3932
ea5dad7f
JK
3933Mon Feb 7 08:44:17 1994 Jim Kingdon (kingdon@deneb.cygnus.com)
3934
3935 * config/m68k/{m68k-em.mt,tm-m68k-em.h}: Remove; no longer used.
3936 * configure.in: Remove comment about m68k-em.mt.
3937 * Makefile.in: Remove references.
3938
6ddba992
JK
3939Mon Feb 7 08:22:42 1994 Jim Kingdon (kingdon@lioth.cygnus.com)
3940
3941 * defs.h [BFD64]: Use BFD_HOST_64_BIT, not nonexistent
3942 BFD_HOST_64_TYPE.
3943
01cd70b9
JK
3944Sun Feb 6 06:55:15 1994 Jim Kingdon (kingdon@lioth.cygnus.com)
3945
1dd29bef
JK
3946 * target.c (target_preopen): If target_kill doesn't remove the
3947 target from the stack, use pop_target to do it.
3948
704aea43
JK
3949 * coffread.c (process_coff_symbol, case C_TPDEF): Don't set name
3950 of TYPE_CODE_PTR or TYPE_CODE_FUNC types. This parallels similar
3951 changes to stabsread.c from summer 1993.
3952
4a00e1de
JK
3953 * remote-udi.c (udi_files_info): If prog_name is NULL, just skip
3954 printing the program, rather than passing NULL to printf.
3955 (udi_detach): Set udi_session_id to -1 so that udi_close doesn't
3956 try to call UDIDisconnect again. Print better message.
3957 (udi_kill): Just call UDIDisconnect ourselves, rather than doing
3958 it via udi_close.
4a00e1de
JK
3959 (udi_create_inferior): If udi_session_id is negative, open a new
3960 TIP rather than giving an error.
3961
01cd70b9
JK
3962 * config/mips/mipsm3.mh, config/i386/i386m3.mh,
3963 config/ns32k/ns32km3.mh: Define NAT_FILE.
3964 * config/nm-m3.h: Change guard from _OS_MACH3_H_ and _OS_MACH3_H
3965 (it was inconsistent and namespace-wrong) to NM_M3_H.
3966 * m3-nat.c (mach_really_wait): Change parameter name to ourstatus.
3967 (m3_open): New function.
3968 (m3_ops): Use it.
3969 * TODO: Update Mach section.
3970
3971 * Makefile.in: Remove "rapp" stuff; it is superseded by gdbserver.
3972
d41b3eed
PB
3973Sun Feb 6 13:26:21 1994 Per Bothner (bothner@kalessin.cygnus.com)
3974
3975 * printcmd.c (printf_command): Add missing single-letter
3976 backslash-escape sequences, and improve error message.
3977
7343d716
JK
3978Sun Feb 6 06:55:15 1994 Jim Kingdon (kingdon@lioth.cygnus.com)
3979
842cf831
JK
3980 * corelow.c (solib_add_stub, core_open): Pass address of from_tty
3981 rather than trying to shove an int into a pointer and back out
3982 again. This avoids compiler warnings.
3983
7343d716
JK
3984 * defs.h (alloca): Declare as void *, not char *, on hpux.
3985 Don't prototype it, just declare the return type.
3986
57a9fee3
PS
3987Sun Feb 6 03:25:41 1994 Peter Schauer (pes@regent.e-technik.tu-muenchen.de)
3988
3989 * config/i386/tm-sun386.h, config/i386/tm-symmetry.h
3990 (REGISTER_CONVERT_TO_RAW): Add missing backslash.
3991
a1bd6534
JK
3992Sat Feb 5 08:03:41 1994 Jim Kingdon (kingdon@lioth.cygnus.com)
3993
021b10e3
JK
3994 * remote-mips.c (mips_fetch_registers): If regno is FP_REGNUM or
3995 ZERO_REGNUM, just read it as zero without talking to the board.
3996
8b0a85ba
JK
3997 * config/i386/tm-i386aix.h (REGISTER_CONVERT_TO_RAW): Add missing
3998 backslash.
3999 * i386-tdep.c (i386_extract_return_value): Pass TYPE_LENGTH (type)
4000 to store_floating, not nonexistent variable len.
4001
aa56c716
JK
4002 * remote-mips.c (mips_insert_breakpoint, mips_remove_breakpoint):
4003 New functions.
4004 (mips_store_word): Change calling convention to return errors, and
4005 to provide old contents if the caller wants it.
4006 (mips_xfer_memory): Deal with errors from mips_store_word.
4007 * config/mips/tm-idt.h, config/mips/tm-idtl.h: Remove BREAKPOINT
4008 define now that remote-mips.c doesn't use BREAKPOINT.
4009
4010 * remote-mips.c (mips_create_inferior): Call warning if arguments
4011 specified, and then execute "set args" command. Call error, not
4012 mips_error, if executable file not specified.
4013
29fc92e8
JK
4014 * remote-e7000.c: Replace "snoop" command (e7000_noecho) with
4015 remote_debug.
4016
a1bd6534
JK
4017 * config/rs6000/tm-rs6000.h (STORE_STRUCT_RETURN): Don't cast
4018 to unsigned int.
4019
65e98f5b
PS
4020Sat Feb 5 05:27:05 1994 Peter Schauer (pes@regent.e-technik.tu-muenchen.de)
4021
4022 * value.h (print_longest): Rename "value" to "val" in prototype
4023 declaration because some compilers don't like arguments whose
4024 names are the same as types.
4025 * remote.c (remote_xfer_memory): Cast "myaddr" to unsigned char *
4026 before passing it to remote_*_bytes.
4027
edd01519
SC
4028Fri Feb 4 15:53:18 1994 Steve Chamberlain (sac@cygnus.com)
4029
4030 * h8500-tdep.c (saved_pc_after_call): The size of the
4031 pc is memory model dependent. (segmented_command,
4032 unsegmented_command, _initialize_h8500_tdep): New commands to
4033 change memory model.
29fc92e8 4034 * remote-e7000.c (_initialize_remote_e7000): Change name of snoop
edd01519 4035 command.
678ee700
SC
4036 * remote-hms.c (hms_load): Remove breakpoints when loaded.
4037 (hms_wait): Use new status structure
4038 (hms_open): Push the target here. (hms_before_main_loop): Not
4039 here. (supply_val, hms_fetch_register, hms_store_register): Cope
4040 with H8/500 names too. (hms_fetch_register): Take out REGISTER_TYPE.
4041 * sh-tdep.c (show_regs, initialize_sh_tdep): New command to print
4042 all registers in a compact way.
edd01519 4043
9c01440d
JK
4044Fri Feb 4 07:41:13 1994 Jim Kingdon (kingdon@deneb.cygnus.com)
4045
4046 * config/rs6000/tm-rs6000.h: Declare rs6000_struct_return_address
4047 as CORE_ADDR to match definition in rs6000-tdep.c.
4048
4386eff2
PS
4049Fri Feb 4 01:14:20 1994 Peter Schauer (pes@regent.e-technik.tu-muenchen.de)
4050
4051 * dwarfread.c (process_dies): Skip nested TAG_compile_unit DIEs.
4052 * dwarfread.c (add_partial_symbol): Do not enter opaque aggregate
4053 definitions into the psymtab.
4054
d351c7a6
JK
4055Thu Feb 3 12:38:58 1994 Jim Kingdon (kingdon@lioth.cygnus.com)
4056
4057 * m68k-stub.c: Treat mc68332 like mc68020 most places. Provide
4058 a special exceptionSize for the 68332.
4059
4060 * remote-udi.c (udi_attach): If no arguments, print error.
4061
4901e77d
FF
4062Thu Feb 3 17:34:05 1994 Fred Fish (fnf@cygnus.com)
4063
4064 * Makefile.in (VERSION): Bump to 4.12.1
4065 * NEWS, README: Update to match 4.12 release.
4066
159ada02
JK
4067Thu Feb 3 12:38:58 1994 Jim Kingdon (kingdon@lioth.cygnus.com)
4068
4901e77d
FF
4069 * command.c (empty_sfunc): New function.
4070 (add_set_cmd): Use it instead of not_just_help_class_command.
4071 (not_just_help_class_command): Change calling convention back to
4072 what it was before yesterday's change.
4073
159ada02
JK
4074 * stabsread.c (read_sun_builtin_type): Skip the semicolon at the end
4075 of the type if present.
4076
5b3591ab
JK
4077Wed Feb 2 11:16:45 1994 Jim Kingdon (kingdon@lioth.cygnus.com)
4078
eade0c6c
JK
4079 * printcmd.c (decode_format): Don't blithely set the size for
4080 an address to 'w'. Make it 'g' or 'h', depending on TARGET_PTR_BIT.
4081
4082 * defs.h: Just typedef CORE_ADDR to bfd_vma. Include bfd.h.
4083 If BFD64, make a LONGEST a BFD_HOST_64_BIT.
4084 * defs.h (longest_to_int): Don't depend on CC_HAS_LONG_LONG; instead
4085 always just check against INT_MIN and INT_MAX (this also fixes things
4086 if sizeof (long) > sizeof (int), e.g. Alpha).
4087 * config/pa/tm-hppa.h, config/i386/sun386.h, config/rs6000/tm-rs6000.h:
4088 Don't define LONGEST or BUILTIN_TYPE_LONGEST.
4089 * gdbtypes.h: Remove BUILTIN_TYPE_LONGEST and
4090 BUILTIN_TYPE_UNSIGNED_LONGEST.
ce855594
JK
4091 * language.h, c-lang.c, ch-lang.c, m2-lang.c, language.c: Remove
4092 longest_int and longest_unsigned_int.
eade0c6c
JK
4093 * value.h (struct value): Just align to LONGEST, rather than worrying
4094 about CC_HAS_LONG_LONG.
b1de1647
JK
4095 * valarith.c (value_binop): Figure out type ourself based on
4096 sizeof (LONGEST) rather than relying on BUILTIN_TYPE_LONGEST. The
4097 point is that we don't depend on CC_HAS_LONG_LONG anymore.
eade0c6c
JK
4098 * valprint.c (val_print_type_code_int): Just call
4099 extract_unsigned_integer directly, rather than going through
4100 unpack_long.
4101 * printcmd.c (decode_format): Remove code which would sometimes
4102 change 'g' size to 'w' for integers. print_scalar_formatted handles
4103 printing huge integers well enough, thank you.
4104
4901e77d 4105 * command.c (add_set_cmd, not_just_help_class_command): Change
719d9abb
JK
4106 to make this the sfunc, not cfunc, since that is how we call it.
4107 * command.h: Comment difference between sfunc and cfunc.
4108 * demangle.c (set_demangling_command): Add third arg since that
4109 is how it is called.
4110 (_initialize_demangler): Use sfunc, not cfunc, for
4111 set_demangling_command, since that is how it is called.
4112 Remove show_demangling_command; it has no effect.
4113
5b3591ab
JK
4114 * command.c (shell_escape): Report errors correctly (with error
4115 message from strerror).
4116
37f24dc9
ILT
4117Wed Feb 2 14:35:41 1994 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
4118
4119 * xcoffread.c (read_xcoff_symtab): Change CSECT_LEN to use
4120 x_scnlen.l rather than x_scnlen to match corresponding change in
4121 coff/internal.h.
4122
61932a8e
JK
4123Wed Feb 2 11:16:45 1994 Jim Kingdon (kingdon@lioth.cygnus.com)
4124
4125 * gdbtypes.h, ch-typeprint.c, ch-valprint.c:
4126 Change comments regarding TYPE_CODE_BOOL.
4127 * language.c (boolean_type): Always return 1 for TYPE_CODE_BOOL,
4128 regardless of the language.
4129 (value_true): Just call value_logical_not regardless of language.
4130 * coffread.c (coff_read_enum_type), stabsread.c (read_enum_type):
4131 Remove #if 0'd code which makes some enums TYPE_CODE_BOOL.
4132 * language.h: Improve comment for la_builtin_type_vector.
4133 * m2-lang.c (_initialize_m2_language): Don't add any fields to
4134 builtin_type_m2_bool.
4135
7bec77b4
JK
4136Tue Feb 1 17:13:32 1994 Kevin Buettner (kev@cujo.geg.mot.com)
4137
4138 * config/m88k/{tm-delta88.h,tm-delta88v4.h}, m88k-tdep.c:
4139 Define IN_SIGTRAMP and backtrace correctly through signal handlers.
4140
8afd05c0
JK
4141Tue Feb 1 22:13:25 1994 Peter Schauer (pes@regent.e-technik.tu-muenchen.de)
4142
4143 * procfs.c (wait_fd): Handle EINTR error return from PIOCWSTOP ioctl
4144 by restarting the ioctl.
4145
10b9bb56
JK
4146Tue Feb 1 16:16:25 1994 Jim Kingdon (kingdon@lioth.cygnus.com)
4147
4148 * target.h (target_wait): Add comment about calling
4149 return_to_top_level.
4150
bf8d9d28
ILT
4151Tue Feb 1 12:21:00 1994 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
4152
4153 * coffread.c (read_one_sym): bfd_coff_swap_aux_in now takes
4154 additional arguments.
4155 * xcoffread.c (read_xcoff_symtab, read_symbol_lineno): Likewise.
4156
efe3ff3e
SG
4157Mon Jan 31 16:10:41 1994 Stu Grossman (grossman at cygnus.com)
4158
4159 * sparc-stub.c: Remove unnecessary #include of memory.h.
4160
37dea45f
JK
4161Mon Jan 31 12:12:34 1994 Jim Kingdon (kingdon@lioth.cygnus.com)
4162
14d79562
JK
4163 * mips-tdep.c: Remove code which sets saved_regs from
4164 init_extra_frame_info and put it in new function mips_find_saved_regs.
4165 (READ_FRAME_REG): Remove macro and replace uses with the expansion.
4166 * mips-tdep.c, config/mips/tm-mips.h: When examining ->saved_regs,
4167 check if it is NULL and call mips_find_saved_regs if so.
4168
47d52968
JK
4169 * remote-mips.c: Use unfiltered, not filtered, output most places.
4170
37dea45f
JK
4171 * blockframe.c (get_prev_frame_info): Detect and stop an infinite
4172 backtrace. Revise comments.
4173
0434c1a0
PS
4174Mon Jan 31 09:40:33 1994 Peter Schauer (pes@regent.e-technik.tu-muenchen.de)
4175
4176 * mdebugread.c (parse_procedure): Remove _sigtramp kludges for
4177 alpha and irix. The _sigtramp case has to be handled properly
4178 in the tdep files if we have no ecoff debugging info.
4179 * alpha-tdep.c (alpha_frame_saved_pc, alpha_frame_chain),
4180 mips-tdep.c (mips_frame_saved_pc): Handle signal handler frames
4181 without PC_REGNUM kludge.
4182 * mdebugread.c (fixup_sigtramp), mips-tdep.c (read_next_frame_reg):
4183 Clean up handling of mips sigtramp frames, improve comments.
4184
d64956fa
JL
4185Sat Jan 29 23:25:57 1994 Jeffrey A. Law (law@snake.cs.utah.edu)
4186
4187 * paread.c (read_unwind_info): Fix typo.
4188
4189 * paread.c (pa_symtab_read): Update the "check_strange_names"
4190 filter to match GCC's current output. Filter out section symbols
4191 (which the HP linker sometimes puts in the wrong place).
4192
9db58d3a
JK
4193Sat Jan 29 07:44:59 1994 Jim Kingdon (kingdon@deneb.cygnus.com)
4194
3a479851
JK
4195 * serial.h (SERIAL_SET_TTY_STATE): Comment return value.
4196
a0b352c0
JK
4197 * Makefile.in (TAGS): Just echo one line, rather than the whole thing.
4198
4199 * Makefile.in: Remove all references to sparcly-nat.c.
4200
4201 * Makefile.in (HFILES_NO_SRCDIR): Include dcache.h remote-utils.h
4202 remote-sim.h directly, rather than via $(remote_utils_h). This avoids
4203 duplicating serial.h and target.h.
4204
7a78db15
JK
4205 * Makefile.in: Don't set M_INSTALL and M_UNINSTALL. These variables
4206 are not used anywhere (a 5 Oct 1993 change removed the uses).
4207
895efe6b
JK
4208 * config/m68k/monitor.mt (TDEPFILE): Add remote-es.o.
4209 * config/m68k/es1800.mt: Add comment.
3a479851 4210 * remote-es.c: Extensive changes to update to current conventions.
895efe6b 4211
9db58d3a
JK
4212 * ser-unix.c (wait_for, hardwire_readchar) [HAVE_TERMIO, HAVE_TERMIOS]:
4213 If the timeout is too big to fit in c_cc[VTIME], then do multiple reads
4214 to achieve the desired timeout.
4215 * serial.h (serial_t): Add field timeout_remaining.
4216
f28c6e38
JK
4217Fri Jan 28 08:45:02 1994 Jim Kingdon (kingdon@deneb.cygnus.com)
4218
4219 * c-exp.y (yylex): Reenable nested type code.
4220
b09f44d2
JK
4221Fri Jan 28 15:40:33 1994 Jim Kingdon (kingdon@lioth.cygnus.com)
4222
7f2ffa58
JK
4223 * a29k-tdep.c (examine_tag): Add comment regarding argcount.
4224
796d1fd3
JK
4225 * remote-mips.c (mips_ops): Fix docstring.
4226
97cc0428
JK
4227 * remote-bug.c (bug_ops): Remove spurious newline from docstring.
4228
ddd0223e
JK
4229 * config/m68k/tm-monitor.h: Changes to bring this into accordance
4230 with the old tm-m68k-em.h:
4231 (GDBINIT_FILENAME, DEFAULT_PROMPT): Remove.
97cc0428 4232 (HAVE_68881): Don't undefine; HAVE_68881 is obsolete.
ddd0223e
JK
4233 (REGISTER_NAMES): Don't muck with it; what tm-m68k.h has is fine.
4234 Add FIXME regarding GET_LONGJMP_TARGET.
4235
b09f44d2 4236 * remote-udi.c (udi_close, udi_detach, udi_kill): Add comments.
97cc0428
JK
4237 * infptrace.c (kill_inferior): Add comments.
4238 * main.c (quit_command): Call target_close after we kill or
4239 detach.
4240 * remote-udi.c (udi_close): Don't error() if QUITTING.
b09f44d2 4241
0ffba029
RS
4242Fri Jan 28 11:55:52 1994 Rob Savoye (rob@darkstar.cygnus.com)
4243
4244 * configure.in: Make m68k-coff and aout add monitor support in
4245 addition to the standard serial support.
4246
bb7cb982
JK
4247Fri Jan 28 08:45:02 1994 Jim Kingdon (kingdon@deneb.cygnus.com)
4248
4249 * mdebugread.c (psymtab_to_symtab_1): Don't complain on stLabel with
4250 index indexNil.
4251
9fdb3f7a
JK
4252Fri Jan 28 10:40:34 1994 Jim Kingdon (kingdon@lioth.cygnus.com)
4253
4254 * config/pa/tm-hppa.h: Define macro SMASH_TEXT_ADDRESS.
4255 * elfread.c (record_minimal_symbol_and_info),
4256 dwarfread.c (process_dies), paread.c (pa_symtab_read): Use it.
4257
a28d16d3
JK
4258Thu Jan 27 15:12:23 1994 Jim Kingdon (kingdon@lioth.cygnus.com)
4259
6202263d
JK
4260 * i386-stub.c: Add ".text" right before "mem_fault:".
4261
9c41f6a6
JK
4262 * main.c (baud_rate): Add FIXME comment about printing -1 value.
4263
4264 * remote-utils.c (usage): Fix message to be accurate and conform
4265 more closely to normal conventions.
4266
4267 * remote-utils.c (gr_files_info): Have the exec_bfd test control
4268 whether to show information about exec_bfd, and not control whether
4269 to show information about device and speed.
4270
4271 * remote-utils.c (gr_open): If sr_get_device returns NULL, give
4272 usage message, don't dump core.
4273
4274 * remote-bug.c (bug_write_memory): Use alloca, not GCC extension
4275 for variable size array.
4276 (bug_fetch_register, bug_store_register): Rename "value" to
4277 "fpreg_buf" because some compilers don't like variables whose
4278 names are the same as types.
4279 (bug_store_register): Use a cast when converting char * to
4280 unsigned char *.
4281
d5c551c9
JK
4282 * symmisc.c (maintenance_print_symbols): Don't refer to the name
4283 of the command in error message (the text was referring to the old
4284 name of the command).
4285
4286 * symmisc.c (dump_symtab): Fix args to fprintf_filtered.
4287
0e4ad984
JK
4288 * c-typeprint.c (c_type_print_base): Have SHOW == 0 mean to print
4289 full details on structure elements without names. This partially
4290 reverts the changes of 1 Jul 1993 and 31 Aug 1993; I think this aspect
4291 of those changes was accidental.
4292
577da8cb
JK
4293 * stack.c (parse_frame_specification): If SETUP_ARBITRARY_FRAME is
4294 defined, make it an error to specify a single argument which is not
4295 a frame number.
4296
a28d16d3
JK
4297 * Makefile.in (version.c), main.c (print_gdb_version): Use
4298 host_alias and target_alias, not host_canonical and
4299 target_canonical, to print configuration.
4300
833e0d94
JK
4301Wed Jan 26 10:57:21 1994 Jim Kingdon (kingdon@lioth.cygnus.com)
4302
d92f3f08
JK
4303 * parse.c (write_exp_msymbol): Use new type msymbol_addr_type instead
4304 of builtin_type_long. It is necessary to get a type which is
4305 TARGET_PTR_BIT bits in size; builtin_type_long might not be big enough.
4306
833e0d94
JK
4307 Fix many sins which will come up in 32 bit x 64 bit GDB, and
4308 various miscellaneous things discovered in the process:
4309 * printcmd.c, defs.h (print_address_numeric): New function.
4310 * c-valprint.c (c_val_print), ch-valprint.c (chill_val_print)
4311 breakpoint.c (describe_other_breakpoints, breakpoint_1, mention),
4312 cp-valprint.c (cplus_print_value), infcmd.c (jump_command),
4313 printcmd.c, stack.c, symfile.c, symmisc.c, valprint.c:
4314 Use it.
4315 * utils.c, defs.h (gdb_print_address): New function.
4316 * expprint (dump_expression), gdbtypes.h: Use it.
4317 * breakpoint.c (describe_other_breakpoints),
4318 symmisc.c (dump_symtab, print_symbol):
4319 Use filtered not unfiltered I/O.
4320 (remove_breakpoints): Remove BREAKPOINT_DEBUG code. Might as well
4321 just run gdb under a debugger for this (and it had problems with
4322 printing addresses, how to print b->shadow, etc.).
4323 * buildsym.c (make_blockvector), core.c (memory_error),
4324 exec.c (print_section_info), maint.c (print_section_table),
4325 mdebugread.c (parse_procedure), solib.c, source.c, symfile.c,
4326 symmisc.c, symtab.c, valops.c, valprint.c, xcoffexec.c:
4327 Add comments saying code is broken. Marked with "FIXME-32x64".
4328 * dbxread.c (process_one_symbol), partial-stab.h (default),
4329 remote-vx.c (vx_run_files_info):
4330 Don't cast int being passed to local_hex_string.
4331 * symmisc.c (print_symbol): Don't cast long being passed to %lx.
4332 * symtab.h (general_symbol_info): Add comment about SYMBOL_VALUE
4333 only being a long.
4334 * symmisc.c (print_symbol): Print "offset" in message for LOC_ARG
4335 and LOC_LOCAL.
4336 * printcmd.c (print_address): Remove #if 0 code with ADDR_BITS_REMOVE.
4337 * source.c: Include <sys/types.h> regardless of USG.
4338
67e9b3b3
PS
4339Tue Jan 25 12:58:26 1994 Peter Schauer (pes@regent.e-technik.tu-muenchen.de)
4340
4341 * valops.c (value_assign): Set `type' after coercing toval.
4342 * c-valprint.c (c_val_print), ch-valprint.c (chill_val_print):
4343 Use extract_unsigned_integer to get the address of a reference.
4344
36464897
JK
4345Tue Jan 25 11:31:53 1994 Jim Kingdon (kingdon@lioth.cygnus.com)
4346
91a0575c
JK
4347 * stabsread.c (STABS_CONTINUE, error_type), partial-stab.h:
4348 AIX can use ? instead of \ for continuation. Deal with it.
4349
36464897
JK
4350 * paread.c (read_unwind_info): Just assign to objfile->obj_private,
4351 not OBJ_UNWIND_INFO. Assigning to a cast is a GCC-ism which
4352 the HP compiler in ANSI mode doesn't like.
4353
4354 * main.c: When defaulting HAVE_SIGSETMASK based on USG, just do it
3bc45b7a
JK
4355 based on USG, rather than defining HAVE_SIGSETMASK to an
4356 expression containing defined. Having a macro used in #if expand
4357 to an expression containing "defined" is undefined according to
4358 ANSI, and the HP compiler in ANSI mode doesn't do what we wanted
4359 it to.
36464897 4360
2ba6182b
JG
4361Mon Jan 24 20:51:29 1994 John Gilmore (gnu@cygnus.com)
4362
4363 * sparc-nat.c (fetch_inferior_registers, store_inferior_registers):
4364 Clean up the changes of 11 Jan, as recommended by Peter Schauer.
4365
96b6b765
PB
4366Fri Jan 21 19:10:44 1994 Per Bothner (bothner@kalessin.cygnus.com)
4367
4368 * ch-exp.y (match_string_literal): Allow a zero-length string.
4369 * ch-lang.c (chill_printstr): Don't print zero-length string funny.
4370
dfd4c728
JK
4371Sat Jan 22 17:08:48 1994 Jim Kingdon (kingdon@lioth.cygnus.com)
4372
4373 * i386aix-nat.c (i386_float_info): Reverse order of registers before
4374 passing them to print_387_status.
4375 (print_387_status): Don't subtract top from 7 before using it.
4376 * i387-tdep.c: Remove comment about AIX wanting "top" subtracted
4377 from 7; the above explains it.
4378
5efd597b
PS
4379Sat Jan 22 20:25:11 1994 Peter Schauer (pes@regent.e-technik.tu-muenchen.de)
4380
4381 * mips-tdep.c (init_extra_frame_info): Use frame relative stack
67e9b3b3 4382 pointer value when fixing up the frame at the start of a function.
5efd597b 4383
e90445c9
SG
4384Sat Jan 22 12:29:13 1994 Stu Grossman (grossman at cygnus.com)
4385
4386 * lynx-nat.c (fetch_core_registers): Load the I & L regs for the
4387 Sparc from the stack.
4388
08f74b92
JK
4389Sat Jan 22 08:30:42 1994 Jim Kingdon (kingdon@deneb.cygnus.com)
4390
864df7e6
JK
4391 * remote-mips.c (mips_initialize): Clear mips_initializing via
4392 cleanup chain, not directly.
4393
4394 * ser-unix.c (wait_for) [HAVE_TERMIO, HAVE_TERMIOS]: Make a timeout
4395 of -1 mean forever, like in the HAVE_SGTTY case. Warn if we are
4396 munging the timeout due to the limited range of c_cc[VTIME].
4397
08f74b92
JK
4398 * fork-child.c, inferior.h (fork_inferior): New argument shell_file.
4399 * procfs.c (procfs_create_inferior), inftarg.c (child_create_inferior),
4400 m3-nat.c (m3_create_inferior): Pass it.
4401 * procfs.c: Remove ptrace function. It was declared in a way which
4402 conflicted with the prototype in unistd.h on Solaris.
4403
cdcf48be
PS
4404Sat Jan 22 01:37:40 1994 Peter Schauer (pes@regent.e-technik.tu-muenchen.de)
4405
4406 * sparc-tdep.c (frame_saved_pc): Get the pc from the saved pc
4407 in the sigcontext if it is a signal trampoline frame.
4408 * config/sparc/tm-sun4sol2.h (IN_SIGTRAMP, SIGCONTEXT_PC_OFFSET):
4409 Define for Solaris2.
4410
8bf94f44
SG
4411Sat Jan 22 00:34:47 1994 Stu Grossman (grossman at cygnus.com)
4412
4413 * sparc-tdep.c, lynx-nat.c, config/sparc/tm-sparc.h,
4414 config/sparc/tm-sparclynx.h: Move defs of FRAME_SAVED_I0/L0 to
4415 tm-sparc.h so they can be overridden if necessary.
4416
d575ddc0
SG
4417Fri Jan 21 17:49:28 1994 Stu Grossman (grossman at cygnus.com)
4418
4419 * lynx-nat.c: Add Sparc support.
4420 * sparcly-nat.c: Remove. It's useless.
4421 * config/sparc/nm-sparclynx.h: Rewrite.
4422 * config/sparc/sparclynx.mh (NATDEPFILES): Replace sparcly-nat.o
4423 with lynx-nat.o
4424 * config/sparc/tm-sparclynx.h: Rewrite.
4425
00240279
ILT
4426Fri Jan 21 19:08:48 1994 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
4427
4428 * rs6000-pinsn.c: Use the new disassembler in the opcodes
4429 directory. Old code was discarded, since the new opcode table has
4430 a different format.
4431
a2608ea1
FF
4432Fri Jan 21 14:28:30 1994 Fred Fish (fnf@cygnus.com)
4433
4434 * Makefile.in (realclean): Remove info files per make-stds.texi.
4435
6545c6a0
JK
4436Fri Jan 21 12:47:53 1994 Jim Kingdon (kingdon@lioth.cygnus.com)
4437
4438 * dbxread.c (end_psymtab): Only patch psymtab textlow and texthigh
4439 if N_SO_ADDRESS_MAYBE_MISSING is defined.
4440 * config/sparc/tm-sun4sol2.h: Define it.
4441
cd5ee294
JK
4442Thu Jan 20 15:04:24 1994 Peter Schauer (pes@regent.e-technik.tu-muenchen.de)
4443
4444 * printcmd.c (print_address_symbolic): Unconditionally use msymbol
4445 if we did not find a symbol.
4446
918fea3e
JL
4447Fri Jan 21 08:20:18 1994 Jeffrey A. Law (law@snake.cs.utah.edu)
4448
4449 * infptrace.c (child_xfer_memory): Only use if CHILD_XFER_MEMORY
4450 is not defined.
4451
4452 * hppab-nat.c (call_ptrace): Delete redundant function.
4453 (kill_inferior, attach, detach, child_resume): Likewise.
4454 (child_xfer_memory): Likewise.
4455
4456 * hppah-nat.c (call_ptrace): Delete redundant function.
4457 (kill_inferior, attach, detach, child_resume): Likewise.
4458
4459 * config/pa/hppabsd.mh (NATDEPFILES): Add infptrace.o.
4460
4461 * config/pa/hppahpux.mh (NATDEPFILES): Add infptrace.o.
4462
4463 * config/pa/nm-hppab.h (FETCH_INFERIOR_REGISTERS): Define.
4464
4465 * config/pa/nm-hppah.h (FETCH_INFERIOR_REGISTERS): define.
4466 (CHILD_XFER_MEMORY): Define.
4467 (PT_*): Define so that generic infptrace.c code can be used.
4468
27ad511f
JK
4469Fri Jan 21 09:23:33 1994 Jim Kingdon (kingdon@lioth.cygnus.com)
4470
1b880e74
JK
4471 * xcoffread.c (xcoff_symfile_read): Make second parameter a
4472 struct section_offsets *, not a (nonexistent) struct section_offset *.
4473
6657a0c7
JK
4474 * xcoffread.c (read_xcoff_symtab): Make main_aux just a union
4475 internal_xcoff_symtab, not an array of one of them. Change lots of
4476 "main_aux" to "&main_aux" and so on.
4477
27ad511f
JK
4478 * coffread.c, xcoffread.c: Include <coff/internal.h>
4479 before "symfile.h".
4480
d4a0983a
JK
4481Thu Jan 20 17:30:55 1994 Jim Kingdon (kingdon@lioth.cygnus.com)
4482
dbb0fae2
JK
4483 * coffread.c (coff_getfilename): Make it not static.
4484
d4a0983a
JK
4485 * xcoffread.c (read_xcoff_symtab): complain() not abort().
4486
4487 * xcoffread.c (struct coff_symbol): Rename c_nsyms to c_naux (removes
4488 a completely gratuitous difference between xcoffread.c and coffread.c).
4489
d7e7e851
JK
4490Wed Jan 19 15:09:44 1994 Jim Kingdon (kingdon@lioth.cygnus.com)
4491
4492 * infrun.c (wait_for_inferior): Don't set frame for
4493 step_resume_breakpoint for IN_SIGTRAMP cases.
4494
4495 * infrun.c (wait_for_inferior), breakpoint.h (struct bpstat_what),
4496 breakpoint.c (bpstat_what): Move step_resume from its own field of
4497 the struct bpstat_what into the main_action. Make it override
4498 other breakpoints. This is a conservative change in the sense
4499 that before the step resume breakpoint was a breakpoint.c
4500 breakpoint, hitting the step resume breakpoint overrode even
4501 calling bpstat_stop_status.
4502
f1de67d3
PS
4503Wed Jan 19 12:40:25 1994 Peter Schauer (pes@regent.e-technik.tu-muenchen.de)
4504
4505 * infrun.c (normal_stop): Set stop_pc after popping the dummy frame
4506 in case execution was stopped in the called function.
4507 * stack.c (print_frame_info, frame_info): If backtracing through
4508 a call dummy, handle the starting source line number on a line
4509 boundary like backtracing through sigtramp.
4510 * sparc-tdep.c (sparc_frame_find_saved_regs): Get frame address
4511 for call dummy frame right. Remove old test for dummy frame,
4512 it has been unused at least since gdb-3.5.
4513 * sparc-tdep.c (sparc_push_dummy_frame): Set return address register
4514 of the dummy frame.
4515
c6e0f918
JK
4516Tue Jan 18 16:16:35 1994 Jim Kingdon (kingdon@lioth.cygnus.com)
4517
4518 * infcmd.c (signal_command): Accept 0 as legitimate signal number.
4519
db4340a6
JK
4520Tue Jan 18 14:09:25 1994 Peter Schauer (pes@regent.e-technik.tu-muenchen.de)
4521
4522 * infrun.c (signals_info), target.c (target_signal_from_name):
4523 Use ugly casts to avoid enumvar < enumvar or enumvar++.
4524
4d4f2d50
JK
4525Mon Jan 17 22:00:15 1994 Jim Kingdon (kingdon@lioth.cygnus.com)
4526
d881dd86
JK
4527 * ser-unix.c (hardwire_noflush_set_tty_state): Don't muck with ICANON.
4528 * inflow.c (terminal_ours_1): When discussing how to deal with the
4529 tty state, make note of query() as well as readline.
4530
4d4f2d50
JK
4531 * infrun.c (_initialize_infrun): Add TARGET_SIGNAL_POLL to list of
4532 signals for which stop and print are cleared by default.
4533
5c38fcee
JL
4534Mon Jan 17 20:00:51 1994 Jeffrey A. Law (law@snake.cs.utah.edu)
4535
c7f3b703
JL
4536 * config/pa/tm-hppa.h (unwind_table_entry): Use one of the
4537 reserved fields to hold a stub unwind entry type. Fix typo.
4538 (stub_unwind_entry): New structure for raw stub unwind entries.
4539 (stub_unwind_types): The types of stubs we may encounter.
4540 (UNWIND_ENTRY_SIZE, STUB_UNWIND_ENTRY_SIZE): New defines.
4541 * hppa-tdep.c (rp_saved): Use additional information provided
4542 by linker stub unwind descriptors.
4543 (frameless_function_invocation): Likewise.
4544 (frame_chain_valid): Likewise.
4545 * paread.c (compare_unwind_entries): New function for sorting
4546 unwind table entries.
4547 (read_unwind_info): Rewrite to remove dependency on host endianness.
4548 Read in data from the $UNWIND_END$ subspace which contains linker
4549 stub unwind descriptors. Merge that data into the basic unwind
4550 table.
4551
5c38fcee
JL
4552 * hppab-nat.c (_initialize_kernel_u_addr): Delete unwanted functions.
4553
af8b7906
JK
4554Mon Jan 17 22:00:15 1994 Jim Kingdon (kingdon@lioth.cygnus.com)
4555
4556 * xcoffread.c (read_xcoff_symtab, case C_FILE): Accept the name
4557 from either the symbol name or the auxent.
4558 * coffread.c, symfile.h (coff_getfilename): Renamed from getfilename,
4559 no longer static.
4560
0e7da49c
FF
4561Mon Jan 17 13:35:01 1994 Fred Fish (fnf@cygnus.com)
4562
4563 * Makefile.in (ALLPARAM): Change irix5.h to nm-irix5.h.
4564
b90811f9
PS
4565Mon Jan 17 12:35:42 1994 Peter Schauer (pes@regent.e-technik.tu-muenchen.de)
4566
4567 * README: Update notes for alpha port.
4568
24a11a79
JK
4569Mon Jan 17 11:15:57 1994 Jim Kingdon (kingdon@lioth.cygnus.com)
4570
4571 * i960-tdep.c (i960_fault_to_signal): Return TARGET_SIGNAL_ILL
4572 for operation fault, constraint fault, and type fault.
4573
b76dcd4b
JK
4574Sun Jan 16 12:46:01 1994 Jim Kingdon (kingdon@lioth.cygnus.com)
4575
623d7380
JK
4576 * Makefile.in (init.c): Add comment explaining formatting conventions.
4577
a39f7739
JK
4578 * c-exp.y (parse_number): Assign to temporary between the right
4579 shifts, to work around a bug in the SCO compiler.
4580
07919221
JK
4581 * Makefile.in (ALLCONFIG, ALLPARAM, ALLDEPFILES, HFILES_NO_SRCDIR):
4582 Add various files which were added to GDB recently.
4583
91cc45da
JK
4584 * xcoffread.c (process_xcoff_symbol): Only change 'V' to 'S' if not
4585 within_function.
4586
b76dcd4b
JK
4587 * Makefile.in: Add mostlyclean target.
4588
d7a5ff3c
JK
4589Sat Jan 15 10:20:13 1994 Jim Kingdon (kingdon@lioth.cygnus.com)
4590
4591 * Version 4.11.4.
4592
8b564df8
PB
4593Sat Jan 15 18:27:34 1994 Per Bothner (bothner@kalessin.cygnus.com)
4594
4595 * main.c (show_commands): Make return type of extern
4596 history_get be HIST_ENTRY, rather than struct _hist_entry.
4597 (The latter loses with the upcoming merged readline.)
4598
dac317dc
JK
4599Sat Jan 15 10:20:13 1994 Jim Kingdon (kingdon@lioth.cygnus.com)
4600
ab5f7971
JK
4601 * minsyms.c (prim_record_minimal_symbol_and_info): Make tempstring
4602 const char *, not char *.
4603
fb155ce3
JK
4604 * symtab.h (struct symbol): Make section short, not unsigned short.
4605
87041845
JK
4606 * symtab.c (lookup_symbol): Add comment about QUIT here.
4607
f29351d9
JK
4608 * utils.c (fputs_unfiltered): Call fputs, not fputs_maybe_filtered.
4609
a9b32d61
JK
4610 * c-exp.y (parse_number): Check for overflow regardless of range
4611 checking. Fix overflow check to use unsigned LONGEST, not
4612 unsigned int.
4613
4614 * c-exp.y (parse_number): Make it so that integer constants are
4615 builtin_type_long_long if builtin_type_long isn't big enough or if
4616 an "LL" suffix is used. Properly handle "UL" or "LU" suffixes.
4617
dac317dc
JK
4618 * c-typeprint.c (c_type_print_varspec_suffix, case TYPE_CODE_FUNC):
4619 Print our "()" first, then recurse for the target type.
4620
4c0b3e57
JK
4621Fri Jan 14 21:55:39 1994 Jim Kingdon (kingdon@lioth.cygnus.com)
4622
831a39d7
JK
4623 * remote-udi.c (udi_create_inferior): Quote empty execfile argument.
4624
4c0b3e57
JK
4625 * gdbserver/low-lynx.c: Include <sys/wait.h> not "/usr/include/wait.h".
4626
44a09a68
JK
4627Fri Jan 14 14:17:06 1994 Jim Kingdon (kingdon@lioth.cygnus.com)
4628
4629 * utils.c (request_quit): Re-establish signal handler regardless
4630 of USG.
4631
4632 * config/mips/xm-irix4.h: Define HAVE_TERMIOS.
4633
98506620
JK
4634Fri Jan 14 21:55:39 1994 Jim Kingdon (kingdon@lioth.cygnus.com)
4635
4636 * i960-tdep.c: Include target.h.
4637
658821b9
SS
4638Fri Jan 14 17:12:28 1994 Stan Shebs (shebs@andros.cygnus.com)
4639
4640 * lynx-nat.c (sys/wait.h): Don't use absolute pathname.
4641
4642Fri Jan 14 11:06:10 1994 Jim Kingdon (kingdon@deneb.cygnus.com)
4643
4644 * lynx-nat.c (child_wait): Fix thinkos in struct target_waitstatus
4645 changes (status -> ourstatus; declare status, etc.).
4646 * config/nm-lynx.h: Fix child_wait prototype and include target.h.
4647
4e8bc56f
JK
4648Fri Jan 14 14:17:06 1994 Jim Kingdon (kingdon@lioth.cygnus.com)
4649
4650 * Makefile.in (ALLPARAM): Add config/nm-lynx.h.
4651
aeb145f8
ILT
4652Fri Jan 14 11:49:44 1994 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
4653
4654 * remote-mips.c (mips_request, mips_wait): Correct prototypes.
4655
d253eb7a
JK
4656Fri Jan 14 11:37:17 1994 Jim Kingdon (kingdon@lioth.cygnus.com)
4657
4658 * config/i386/xm-linux.h: Define HAVE_TERMIOS.
4659
52b3045e
PS
4660Fri Jan 14 01:04:36 1994 Peter Schauer (pes@regent.e-technik.tu-muenchen.de)
4661
4662 * config/alpha/tm-alpha.h (CALL_DUMMY): Improve comment.
4663
ae682b80
JK
4664Thu Jan 13 10:32:38 1994 Jim Kingdon (kingdon@lioth.cygnus.com)
4665
d0acb092
JK
4666 * remote-vx.c (vx_wait): Only call i960_fault_to_signal if I80960
4667 is defined. Otherwise just report TARGET_SIGNAL_UNKNOWN.
4668
4669 * mips-tdep.c (mips_push_arguments): Byteswap struct_addr before
4670 writing it.
4671
63dcc380
JK
4672 Add search to target vector (#if 0'd until after 4.12):
4673 * target.h (to_search, target_search): Add.
4674 * gdbcore.h, core.c (generic_search): Add.
4675 * remote.c (remote_search): Add.
4676 * a29k-tdep.c (init_frame_info): Use target_search to find traceback
4677 tag.
4678
d6596eee
JK
4679 * printcmd.c (print_address_symbolic): If set print fast-symbolic-addr
4680 is on, call find_pc_function rather than relying just on the minimal
4681 symbols (probably only matters for symbol readers which don't put
4682 statics in the minimal symbols, but changing this strikes me as
4683 not conservative enough).
4684 Initialize name_location in all cases.
4685 If no symbol and no msymbol, don't print anything symbolic.
4686
ae682b80
JK
4687 * a29k-tdep.c (push_dummy_frame): Add comment about saving lr0.
4688
314e6bf3
JG
4689Wed Jan 12 20:53:16 1994 John Gilmore (gnu@cygnus.com)
4690
4691 * printcmd.c (print_address_symbolic): Make it search the
4692 symtabs for variables as well as functions. Add `set print
4693 fast-symbolic-addr' and default it to fast (the old way).
4694 Print line numbers for data items as well as functions.
4695
4696 * symtab.c (find_addr_symbol): Return the symtab and the symbol
4697 address, if a symbol is found (take two more args pointing to
4698 where to store these results).
4699
4700 * symtab.h (find_addr_symbol): Add prototype.
4701
470dfa0c
JK
4702Wed Jan 12 19:32:11 1994 Jim Kingdon (kingdon@lioth.cygnus.com)
4703
4704 * objfiles.h: Fix comments to reflect the fact that the phrase
4705 "top of stack" always refers to where the pushing and popping takes
4706 place, regardless of whether it is at the highest or lowest address.
4707
a8c49897
PS
4708Wed Jan 12 13:23:37 1994 Peter Schauer (pes@regent.e-technik.tu-muenchen.de)
4709
4710 * mdebugread.c (parse_symbol): Do not set TYPE_TAG_NAME for
4711 compiler generated tag names.
4712 * mdebugread.c (parse_type): Handle cross references to qualified
4713 aggregate types.
4714 * valops.c (value_struct_elt): Improve error message if the
4715 address of a method is requested from an object instance.
4716 * valops.c (search_struct_method): Make name_matched non-static
4717 to get it initialized correctly.
4718 * config/i386/nm-i386sco.h (CANNOT_STORE_REGISTER): Define to
4719 exclude segment register which are not writable on newer SCO versions.
4720
4ad942bf
JK
4721Wed Jan 12 14:44:45 1994 Jim Kingdon (kingdon@lioth.cygnus.com)
4722
4723 * go32-xdep.c: Remove unused function uerror.
4724 (sigsetmask): Declare return type. Declare argument (to match the
4725 way it is called). Explicitly return 0.
4726
21578747
JG
4727Wed Jan 12 01:44:25 1994 John Gilmore (gnu@cygnus.com)
4728
4729 * symtab.h (struct symbol, general_symbol_info, minimal_symbol,
4730 partial_symbol): Shrink the storage sizes of symbols, by making
4731 enums into 1-byte bitfields when compiled __GNUC__, moving all the
4732 enums and small ints to the end of each struct to improve
4733 alignment, and switching the section number from int to unsigned
4734 short.
4735
e0ea0fbd
JG
4736Wed Jan 12 00:16:26 1994 John Gilmore (gnu@cygnus.com)
4737
4738 * symtab.c (find_addr_symbol): New routine that will find the nearest
4739 symbol associated with an address. It does so by exhaustive
4740 search of the symtabs, so it's slow but complete.
4741
011d4ed9
JG
4742Tue Jan 11 23:57:30 1994 John Gilmore (gnu@cygnus.com)
4743
4744 * coffread.c (read_coff_symtab): Set PC bounds of _globals_ symtab
4745 to [0,0] rather than [0, end of first source file]. This avoids
4746 problems with other parts of GDB looking for linetables in the
4747 _globals_ symtab. Eliminate variables num_object_files and
4748 first_object_file_end.
4749
eb5b74ca
JG
4750Tue Jan 11 00:53:46 1994 John Gilmore (gnu@cygnus.com)
4751
4752 * a29k-tdep.c (init_frame_info): Cast null arg to examine_tag.
4753 (pop_frame): Restore PC2 and LR0 from dummy frames.
4754 (push_dummy_frame): Save PC2 and LR0 into dummy frames.
4755 (setup_arbitrary_frame): Handle 3 args and set up real frames.
4756 * config/a29k/tm-a29k.h (FRAME_NUM_ARGS): Update comments.
4757 (DUMMY_FRAME_RSIZE): Add 2 longwords for PC2 and LR0.
4758 (SETUP_ARBITRARY_FRAME): Define.
4759
4d69cf57
JK
4760Tue Jan 11 06:59:10 1994 Jim Kingdon (kingdon@deneb.cygnus.com)
4761
4762 * infrun.c, config/mips/tm-irix5.h: Remove #if 0'd AT_FUNCTION_START.
4763
6a69975f
ILT
4764Tue Jan 11 14:27:03 1994 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
4765
4766 * remote-udi.c (udi_resume): Correct prototype.
4767
c598654a
JL
4768Tue Jan 11 11:10:30 1994 Jeffrey A. Law (law@snake.cs.utah.edu)
4769
4770 * config/pa/tm-hppa.h (FRAME_FIND_SAVED_REGS): Call
4771 hppa_frame_find_saved_regs.
4772 * hppa-tdep.c (dig_fp_from_stack): Delete function.
4773 (prologue_inst_adjust_sp): New function.
4774 (is_branch, inst_saves_gr, inst_saves_fr): New functions.
4775 (skip_prologue): Completely rewrite to use unwind information.
4776 (hppa_frame_find_saved_regs): Likewise.
4777
6397809b
JK
4778Tue Jan 11 06:59:10 1994 Jim Kingdon (kingdon@deneb.cygnus.com)
4779
f3fe8934
JK
4780 * remote-mips.c (mips_wait): Use new function mips_signal_from_protocol
4781 to convert a signal number with appropriate bounds checking.
4782
6397809b
JK
4783 * remote-mips.c (mips_wait): Fix typos (0x177 -> 0177, 0x377 -> 0377).
4784
c369b6a3
JG
4785Tue Jan 11 00:53:46 1994 John Gilmore (gnu@cygnus.com)
4786
a31f4b90
JG
4787 * stack.c (frame_info): If FRAME_FIND_SAVED_REGS isn't defined,
4788 print a newline to end the display anyway.
4789
c6d8db40
JG
4790 * sparc-tdep.c (sparc_pop_frame): Pop the fsr and csr (float and
4791 coprocessor status regs) when popping a frame. This fixes
4792 float exceptions that occur after calling inferior functions.
4793
c369b6a3
JG
4794 * sparc-nat.c (fetch_inferior_registers, store_inferior_registers):
4795 Read and write the fsr (float status register) to/from the child
c6d8db40
JG
4796 process along with the float regs. Remove Peter Schauer's change
4797 of May 24 '93, which has higher overhead and doesn't solve the
4798 real problem (which was that FSR wasn't being set).
c369b6a3 4799
7b2bcbf5
JG
4800Mon Jan 10 23:16:42 1994 John Gilmore (gnu@cygnus.com)
4801
4802 * a29k-tdep.c (examine_prologue): Don't worry if the ASGEQ
4803 stack overflow check isn't right after the register stack
4804 adjustment instruction. Metaware R2.3u compiler moves other
4805 things in front of it. This fix isn't perfect but is what's
4806 running.
4807
6aaa61de
JK
4808Mon Jan 10 20:08:23 1994 Jim Kingdon (kingdon@deneb.cygnus.com)
4809
85b8aa88
JK
4810 * c-valprint.c (c_val_print): Treat TYPE_CODE_RANGE like TYPE_CODE_INT.
4811
6aaa61de
JK
4812 * config/alpha/alpha-netware.mt: Rename to alpha-nw.mt for 14
4813 character filenames.
4814 * configure.in: Change accordingly.
4815
ef118278
TL
4816Mon Jan 10 15:48:36 1994 Tom Lord (lord@rtl.cygnus.com)
4817
4818 * m68k-stub.c, sparc-stub.c: removed spurious introduction of
4819 _filtered io routines from these two files.
4820
9d51b3c5
PS
4821Fri Jan 7 12:42:45 1994 Peter Schauer (pes@regent.e-technik.tu-muenchen.de)
4822
4823 * config/i386/tm-i386v.h, config/m68k/tm-m68k.h, config/mips/tm-mips.h,
4824 config/vax/tm-vax.h (CALL_DUMMY_BREAKPOINT_OFFSET): Define.
4825 * mdebugread.c (parse_symbol): Handle enum sh.type produced by
4826 DEC c89.
4827 * mdebugread.c (add_line): Handle zero linenos produced by DEC c89.
4828
11ebf939
JK
4829Fri Jan 7 12:55:25 1994 Jim Kingdon (kingdon@lioth.cygnus.com)
4830
17d059d4
JK
4831 * utils.c (print_sys_errmsg): Call gdb_flush (gdb_stdout) before
4832 printing to gdb_stderr.
4833
4834 * remote-udi.c (udi_kill): Don't close the connection, just set
4835 inferior_pid to zero.
4836 (udi_mourn): Call remove_breakpoints.
4837
4838 * remote-udi.c: Remove obsolete need_artificial_traps comment.
4839
11ebf939
JK
4840 * i386b-nat.c (sregmap): If sEAX, etc., not defined, use tEAX, etc.
4841
fcbc95a7
JK
4842Thu Jan 6 07:17:53 1994 Jim Kingdon (kingdon@deneb.cygnus.com)
4843
d8a66e60
JK
4844 * symtab.c (lookup_symbol): Don't try adding .c to the name.
4845
e3a7e9d5
JK
4846 * remote-bug.c: At the start of each section, reset srec_frame
4847 back to 160.
4848
fcbc95a7
JK
4849 * target.h: Add TARGET_WAITKIND_LOADED and TARGET_WAITKIND_SPURIOUS.
4850 * target.c (store_waitstatus): Add CHILD_SPECIAL_WAITSTATUS hook.
4851 * infrun.c (wait_for_inferior): Replace SIGTRAP_STOP_AFTER_LOAD with
4852 code which looks for those two waitkinds. Use switch statement.
4853 * config/rs6000/tm-rs6000.h: Replace SIGTRAP_STOP_AFTER_LOAD with
4854 CHILD_SPECIAL_WAITSTATUS.
4855
4856 * procfs.c (procfs_wait): Fix argument name to match 4 Jan changes.
4857 * Move target_signal_from_host, target_signal_to_host, and
4858 store_waitstatus from inftarg.c to target.c. procfs needs them.
4859 * target.c: Include "wait.h" and <signal.h>.
4860 * target.h, infrun.c (proceed), proceed callers: Pass new code
4861 TARGET_SIGNAL_DEFAULT instead of -1. This avoids problems with
4862 enums being treated as unsigned and is cleaner.
4863 * infrun.c (signals_info): Don't print TARGET_SIGNAL_DEFAULT or
4864 TARGET_SIGNAL_0.
4865 * infcmd.c (signal_command), infrun.c (signals_info):
4866 Don't allow user to specify numeric equivalent of
4867 TARGET_SIGNAL_DEFAULT.
4868
7f85a716
SG
4869Tue Jan 4 15:34:36 1994 Stu Grossman (grossman@cygnus.com)
4870
4871 * config/alpha/alpha-netware.mt: New target support for Alpha
4872 running Netware.
4873 * configure.in: Add alpha-*-netware* target.
4874
5efb3899
SS
4875Tue Jan 4 14:51:35 1994 Stan Shebs (shebs@andros.cygnus.com)
4876
4877 * remote-mips.c (mips_wait): Fix ref to TARGET_WAITKIND_STOPPED.
4878
67ac9759
JK
4879Tue Jan 4 09:47:14 1994 Jim Kingdon (kingdon@lioth.cygnus.com)
4880
4881 * target.h: Add enum target_waitkind, enum target_signal, and
4882 struct target_waitstatus. Change status argument to target_wait to
4883 be struct target_waitstatus * instead of int *.
4884 * target.h, infrun.c, all targets: Change type of signal arguments
4885 to resume(), proceed(), and target_resume() from int to enum
4886 target_signal.
4887 * All targets (*_wait, *_resume): Change accordingly.
4888 * infcmd.c (program_info, signal_command), throughout infrun.c,
4889 * fork-child.c, solib.c, hppa-tdep.c, osfsolib.c: Use this stuff.
4890 * convex-xdep.c, convex-tdep.c: Add FIXME's (getting the Convex
4891 signal code stuff right with the new signals would be non-trivial).
4892 * inferior.h (stop_signal): Make it enum target_signal not int.
4893 * target.c, target.h (target_signal_to_string, target_signal_to_name,
4894 target_signal_from_name): New functions.
4895 * inftarg.c, target.h (target_signal_to_host, target_signal_from_host,
4896 store_waitstatus): New functions.
4897 * procfs.c (procfs_notice_signals): Use them.
4898 * i960-tdep.c (i960_fault_to_signal): New function, to replace
4899 print_fault.
4900 * config/i960/tm-i960.h: Don't define PRINT_RANDOM_SIGNAL.
4901
4902 * objfiles.c (build_objfile_section_table): Don't abort() if
4903 objfile->sections is already set.
4904
4905 * objfiles.c (add_to_objfile_sections): Check SEC_ALLOC not SEC_LOAD
4906 to match recent change to exec.c.
4907
4908 * Version 4.11.3.
4909
4910 * main.c (print_gdb_version): Change year to 1994.
4911
4912 * ChangeLog, ChangeLog-93: Split ChangeLog at 1994.
4913 * Makefile.in (NONSRC): Add ChangeLog-93.
4914
b35885f2
JK
4915Mon Jan 3 11:57:29 1994 Jim Kingdon (kingdon@lioth.cygnus.com)
4916
4b404661
JK
4917 * stabsread.c (read_type): Allow defining several type numbers
4918 at once (e.g. "(1,2)=(3,4)="...).
4919
eaba7fae
JK
4920 * stabsread.c (read_enum_type): Use TARGET_INT_BIT not sizeof (int).
4921
b35885f2
JK
4922 * breakpoint.c (frame_in_dummy): Check PC as well as frame.
4923
ae5c71d6
PS
4924Mon Jan 3 02:47:03 1994 Peter Schauer (pes@regent.e-technik.tu-muenchen.de)
4925
4926 * mdebugread.c (psymtab_to_symtab_1): Only pass N_STAB symbols
4927 to process_one_symbol.
4928 * symtab.c (find_pc_psymbol): Search global_psymbols as well to
4929 avoid caching a bad endaddr in find_pc_partial_function.
4930
d568b76a
JK
4931Sun Jan 2 21:41:17 1994 Jim Kingdon (kingdon@lioth.cygnus.com)
4932
4933 * config/m68k/tm-sun3.h: Don't define BELIEVE_PCC_PROMOTION.
4934
9ddb33a8
PS
4935Sat Jan 1 04:35:23 1994 Peter Schauer (pes@regent.e-technik.tu-muenchen.de)
4936
4937 * infrun.c (wait_for_inferior): Do not step or step resume past
4938 the end of a one-line function we just stepped into.
4939
67ac9759 4940For older changes see ChangeLog-93
bd5635a1
RP
4941\f
4942Local Variables:
4943mode: indented-text
4944left-margin: 8
4945fill-column: 74
4946version-control: never
4947End:
This page took 0.508156 seconds and 4 git commands to generate.