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