1 Fri Jun 28 05:25:18 1996 Dawn Perchik <dawn@cygnus.com>
3 * remote-e7000.c,remote.c,target.h,top.c:
4 Add set option "remote_timeout" for setting remote_timeout.
5 Add set option "use_hard_breakpoints" for setting hardware
6 .vs. memory breakpoints.
8 Fri Jun 28 04:32:18 1996 Dawn Perchik <dawn@cygnus.com>
10 * remote-e7000.c (e7000_parse_device): New function.
11 Add option "tcp_remote" to target command if using
12 tcp to connect to a remote host which is then connected
13 via serial port to the e7000 (for exampole, a port master).
14 (e7000_open): Change to call e7000_parse_device.
16 Fri Jun 28 03:47:17 1996 Dawn Perchik <dawn@cygnus.com>
18 * monitor.c (monitor_debug): Fix remotedebug buffering.
20 Thu Jun 27 18:24:17 1996 Stan Shebs <shebs@andros.cygnus.com>
22 * config/i386/cygwin32.mh, config/powerpc/cygwin32.mh
23 (NATDEPFILES): Add a space.
25 Wed Jun 26 06:05:39 1996 Wilfried Moser (Alcatel) <moser@rtl.cygnus.com>
27 * gdbtypes.c (create_array_type): If TYPE_LENGTH (result_type)
28 is zero, set TYPE_FLAG_TARGET_STUB to force reevaluation of the type.
30 * ch-exp.c (calculate_array_length): Function removed.
32 Tue Jun 25 17:41:06 1996 Martin M. Hunt <hunt@pizza.cygnus.com>
34 * remote-e7000.c (e7000_read_inferior_memory_large): New function.
35 (e7000_xfer_inferior_memory): Call it.
37 Tue Jun 25 23:14:07 1996 Jason Molenda (crash@godzilla.cygnus.co.jp)
39 * gdb/gdbserver/Makefile.in (docdir): Removed.
41 Tue Jun 25 22:05:38 1996 Jason Molenda (crash@godzilla.cygnus.co.jp)
43 * Makefile.in (bindir, libdir, datadir, mandir, infodir, includedir):
44 Use autoconf set values.
46 * configure.in (AC_PREREQ): autoconf 2.5 or higher.
47 * nlm/Makefile.in (bindir, libdir, datadir, mandir, infodir,
48 includedir): Use autoconf set values.
50 * nlm/configure.in (AC_PREREQ): autoconf 2.5 or higher.
51 * nlm/configure: Rebuilt.
52 * gdb/gdbserver/Makefile.in (datadir): Set to $(prefix)/share.
54 Mon Jun 24 09:56:14 1996 Angela Marie Thomas (angela@cygnus.com)
56 * stabsread.c (read_cfront_member_functions): add type
58 Sun Jun 23 23:40:48 1996 Doug Evans <dje@canuck.cygnus.com>
60 * win32-nat.c: #include <unistd.h>.
61 (unix_paths_to_dos_paths, dos_paths_to_unix_paths): Delete.
62 (child_create_inferior): Convert only env var PATH to win32 style.
63 (set_pathstyle_dos): Delete.
64 (_initialize_inftarg): Delete dos-path-style command.
67 Fri Jun 21 11:04:47 1996 Fred Fish <fnf@cygnus.com>
69 * gdbtk.tcl (create_register_windows): Include missing '$'s.
70 Add global declarations for various reg_format_* variables.
71 * gdbtk.tcl (populate_register_window): Make initial window one
72 line taller to account for new column header line.
74 Fri Jun 21 09:46:47 1996 Fred Fish <fnf@cygnus.com>
76 * gdbtk.c (get_register): Support for printing raw formats.
77 * gdbtk.tcl: Add hint for using debug_interface.
78 (center_window, add_breakpoint_frame, delete_breakpoint_frame):
79 Enclose arg in braces for consistency.
80 (create_registers_window, populate_reg_window, update_registers):
81 Major rewrite to support displaying multiple formats in the register
83 (init_reg_info): New function.
84 (recompute_reg_display_list): Reset reg_display_list, start
85 register display lines at line 2.
88 Thu Jun 20 13:42:23 1996 Doug Evans <dje@canuck.cygnus.com>
90 * configure.in: Revise sol-thread.o test.
91 * configure: Regenerated.
93 * source.c (find_source_lines): Reassign size to result of read.
96 Thu Jun 20 08:18:59 1996 Fred Fish <fnf@cygnus.com>
98 * gdbtk.tcl (gdbtk_tcl_readline_begin): Handle backspace to
99 avoid backing up over prompt. At every input, make sure insert
100 point is at least after command start, handle control-u to delete
102 (tclsh): Handle backspace to avoid backing up over prompt. Handle
103 control-u to delete current input line.
105 Wed Jun 19 17:23:38 1996 Geoffrey Noer <noer@cygnus.com>
107 * configure.in: disable gdbtk for *cygwin32* hosted compiles
108 * configure: regenerated with autoconf 2.8
112 Tue Jun 18 16:25:54 1996 Jeffrey A. Law <law@rtl.cygnus.com>
114 * h8300-dep.c (gdb_print_insn_h8300): Handle the H8/S.
115 (h8300_command): Likewise.
116 (set_machine): Likewise.
117 (set_machine_hook): Likewise.
118 (_initialize_h8300m): Likewise.
120 * config/h8300/tm-h8300.h (h8300smode): Declare.
123 Sun Jun 16 15:21:51 1996 Jeffrey A. Law <law@rtl.cygnus.com>
125 * somsolib.c (som_solib_create_inferior_hook): Handle tracking
126 of shl_load calls for hpux10.
128 Thu Jun 13 11:16:10 1996 Tom Tromey <tromey@thepub.cygnus.com>
130 * config.in: Regenerated.
131 * acconfig.h (HAVE_THREAD_DB_LIB): Added entry.
133 * configure: Regenerated.
134 * aclocal.m4 (CY_AC_PATH_TCLH, CY_AC_PATH_TKH): Use odd names to
135 avoid name clashes with SunOS headers.
137 Tue Jun 11 19:52:50 1996 Fred Fish <fnf@cygnus.com>
139 From Michael Snyder <Michael_Snyder@next.com>:
140 * bcache.c (print_bcache_statistics): Avoid divide-by-zero
141 exception if one or more objfile has no symbols, such as when
142 a dynamic library has been stripped.
144 Tue Jun 11 12:02:55 1996 Stu Grossman (grossman@critters.cygnus.com)
146 * Makefile.in (INTERNAL_LDFLAGS): Add in flags from configure.
147 * configure configure.in: Only make sol-thread.o for native.
148 Also, switch to dlopened libthread_db.so.1.
149 * sol-thread.c: Switch to using dlopen to get the thread_db
152 Mon Jun 10 14:17:19 1996 Fred Fish <fnf@cygnus.com>
154 * config/sparc/{xm-sun4sol2.h,xm-sun4os4.h} (MMAP_BASE_ADDRESS):
155 Change from 0xE0000000 to 0xC0000000.
157 Thu Jun 6 17:10:32 1996 Michael Meissner <meissner@tiktok.cygnus.com>
159 * config/powerpc/xm-solaris.h: Initial version of support for
162 Wed Jun 5 01:52:57 1996 James G. Smith <jsmith@cygnus.co.uk>
164 * configure.in (configdirs): Force 4100 builds to use 4300 GDB
166 * configure: Rebuild.
168 * config/mips/vr4300el.mt (SIM_OBS): Include simulator in
169 little-endian builds.
171 Mon Jun 3 11:48:29 1996 Jeffrey A Law (law@cygnus.com)
173 * inftarg.c (child_thread_alive): Protect declaration with
174 #ifndef CHILD_THREAD_ALIVE.
176 * source.c (find_source_lines): Check the time on the symtab's bfd if
177 it exists, else check the time on the exec_bfd.
179 Thu May 30 09:43:17 1996 Mark Alexander <marka@cygnus.com>
181 * dsrec.c (make_srec): Fix calculation of address size
182 to allow addresses less than 0x100.
184 Thu May 30 04:24:09 1996 Wilfried Moser (Alcatel) <moser@rtl.cygnus.com>
186 * ch-exp.c (ch_lex): In case of LOC_TYPEDEF call calculate_array_length.
188 Tue May 28 16:15:47 1996 Geoffrey Noer <noer@cygnus.com>
190 * remote-mips.c: cannot use EINVAL for breakpoint test since
191 its value varies for different hosts (e.g. go32's is 19, while
192 sunos is 22). Changed to hardcoded 22 since that is what the
195 Tue May 28 11:14:58 1996 Tom Tromey <tromey@creche.cygnus.com>
197 * configure: Regenerated.
198 * aclocal.m4 (CY_AC_PATH_TCLH): Don't use AC_TRY_RUN.
199 (CY_AC_PATH_TKH): Don't use AC_TRY_RUN.
201 Sun May 26 14:14:49 1996 Fred Fish <fnf@cygnus.com>
203 Changes from: David Mosberger-Tang <davidm@azstarnet.com>
205 * NEWS: Add Alpha Linux as a new native configuration.
207 * mdebugread.c (parse_symbol): When we find a malloc() symbol with
208 return type VOID, assume no debugging info is available for that
209 object file and patch the return value into VOID *. Otherwise,
210 operations requiring an implicit call to malloc() will fail.
212 * infrun.c (wait_for_inferior): The criterion to detect entering a
213 sigtramp handler is now: (a) the current pc is inside a sigtramp
214 handler, (b) the previous pc is not in a sigtramp handler, and (c)
215 the current stack pointer is "inner" than the old one. Condition
216 (c) is new to avoid mistaking a return from a signal handler into
217 sigtramp as a new sigtramp invocation.
219 * dcache.c (struct dcache_block): Declare addr as CORE_ADDR. An
220 int may not be big enough to hold an address.
222 (dcache_peek_byte): Fix indentation.
224 * configure.in (alpha-*-linux*): Add target.
227 * config/alpha/tm-alpha.h (PROC_DESC_IS_DYN_SIGTRAMP): New macro.
228 (SET_PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
229 (DYNAMIC_SIGTRAMP_OFFSET): Ditto.
230 (SIGCONTEXT_ADDR): Ditto.
231 (FRAME_PAST_SIGTRAMP_FRAME): Ditto.
233 * config/alpha/alpha-linux.mh: New file.
234 * config/alpha/alpha-linux.mt: Ditto.
235 * config/alpha/nm-linux.h: Ditto.
236 * config/alpha/tm-alphalinux.h: Ditto.
237 * config/alpha/xm-alphalinux.h: Ditto.
238 * config/alpha/xm-alphaosf.h: Renamed from xm-alpha.h.
239 * config/alpha/alpha-osf1.mh (XM_FILE): Change from xm-alpha.h to
241 * config/alpha/alpha-osf2.mh: Ditto.
243 * blockframe.c (find_pc_partial_function): Pass PC to
244 SIGTRAMP_START and SIGTRAMP_END macros for the benefit of systems
245 that detect sigtramp code via designated code sequences (as is the
246 case for Linux/Alpha, for example).
248 * config/i386/tm-i386bsd.h: Change SIGTRAMP_START and SIGTRAMP_END
249 to ignore new PC argument.
250 * config/m68k/tm-hp300bsd.h: Ditto.
251 * config/vax/tm-vax.h: Ditto.
253 * alpha-tdep.c (alpha_linux_sigtramp_offset): New function.
254 (alpha_osf_skip_sigtramp_frame): Ditto.
255 (push_sigtramp_desc): Ditto.
256 (alpha_find_saved_regs): Use SIGCONTEXT_ADDR macro to extract
257 sigcontext address from frame.
258 (alpha_saved_pc_after_call): When in sigtramp, use
259 alpha_frame_saved_pc() instead of read-register().
260 (after_prologue): When inside a dynamically generated sigtramp
261 function, there is no prologue, so return address of first
263 (alpha_in_prologue): Fix typo in comment.
264 (find_proc_desc): Use macro DYNAMIC_SIGTRAMP_OFFSET to determine
265 whether we're inside a dynamicaly generated sigtramp function. If
266 so, create and push and appropriate procedure descriptor.
267 (alpha_frame_chain): Use macro FRAME_PAST_SIGTRAMP_FRAME to obtain
268 the frame past a sigtramp frame (if the current frame is indeed a
270 (init_extra_frame_info): Don't read next frame register off of
271 stack-pointer when inside a dynamiccaly generated sigtramp.
272 (alpha_pop_frame): Also unlink and destroy procedure descriptors
273 created for dynamically generated sigtramp functions.
275 * alpha-nat.c: When compiling under Linux, include <asm/reg.h> and
276 <alpha/ptrace.h> instead of <machine/reg.h>
278 Thu May 23 15:13:56 1996 Jeffrey A Law (law@cygnus.com)
280 * h8300-tdep.c (IS_PUSH): Refine.
281 (IS_MOVE_FP, IS_MOV_SP_FP): Accept H8/300H varaints.
282 (IS_SUB4_SP, IS_SUBL_SP): New macros.
283 (h8300_skip_prologue): Handle H8/300H prologue code sequences.
284 (examine_prologue): Handle addresses from 0x010000 to 0xffffff
285 when in H8/300H mode. Get the return pointer's address correctly
286 for the H8/300H. Handle H8/300H prolouge code sequences.
288 * symfile.c (generic_load): Print the starting address
289 of the file just loaded.
291 Thu May 23 12:09:52 1996 Stan Shebs <shebs@andros.cygnus.com>
293 * mpw-make.sed: Edit @THREAD_DB_OBS@ out of makefile.
295 Tue May 21 11:53:56 1996 Peter Schauer (pes@regent.e-technik.tu-muenchen.de)
297 * breakpoint.c (bpstat_do_actions): Avoid endless recursion
298 if a `source' command is contained in bs->commands.
300 * infrun.c (wait_for_inferior): Update step_frame_address when
301 stepping into a new line.
303 From schwab@issan.informatik.uni-dortmund.de (Andreas Schwab):
304 * breakpoint.c (breakpoint_1): Add shlib_disabled case to
307 Mon May 20 22:52:00 1996 Mark Alexander <marka@cygnus.com>
309 * dsrec.c (load_srec): Add WAITACK parameter, for machines
310 like EST visionICE that send back an ACK after each S-record.
311 * monitor.c (monitor_wait_srec_ack): New function.
312 (monitor_load): Pass monitor_wait_srec_ack to load_srec
313 if the monitor's MO_SREC_ACK flag is set.
314 * monitor.h: Define MO_SREC_ACK flag.
315 * remote-est.c (est_cmds): Add MO_SREC_ACK flag.
316 * sh3-rom.c (sh3_load): Accomodate change in load_srec prototype.
317 * srec.h: Add WAITACK parameter to load_srec prototype.
319 Sun May 19 21:22:00 1996 Rob Savoye <rob@chinadoll>
321 * config/sparc/sparclite.mt: Add the sparc simulator.
323 Sun May 19 16:49:37 1996 Fred Fish <fnf@cygnus.com>
325 * defs.h (read_command_lines, query_hook): Update prototypes.
326 (readline_begin_hook, readline_hook, readline_end_hook): Declare.
327 * breakpoint.c (commands_command): Build message in temporary buffer
328 and pass that, as well as tty control flag, to read_command_lines.
329 * top.c (readline_begin_hook, readline_hook, readline_end_hook):
331 (command_loop): Check for non-NULL instream before looping.
332 (command_line_input): Use readline_hook when appropriate, to get
333 user input from a GUI window.
334 (read_next_line): Also build prompt if getting user input from a GUI.
335 (recurse_read_control_structure): Fix typo in comment.
336 (read_command_lines): Use passed in prompt and tty flag to decide how
337 to build message. Use readline_begin_hook when appropriate, to set
338 up a GUI interaction window. Just return head, whether NULL or not,
339 after using readline_end_hook to complete GUI interaction.
340 (define_command, document_command): Build message in a temporary
341 buffer and pass it to read_command_lines, along with tty flag.
344 * gdbtk.c (gdbtk_readline_begin, gdbtk_readline, gdbtk_readline_end):
346 (tk_command_loop): Set instream to NULL to enable Tk user interaction.
347 (gdbtk_init): Set readline_begin_hook, readline_hook,
348 and readline_end_hook.
349 * gdbtk.tcl (gdbtk_tcl_readline_begin, gdbtk_tcl_readline,
350 gdbtk_tcl_readline_end): New functions.
351 (tclsh): Pack scroll bar on right side of window, not left.
354 Sat May 18 02:43:58 1996 Peter Schauer (pes@regent.e-technik.tu-muenchen.de)
356 * blockframe.c (frameless_look_for_prologue):
357 Add FUNCTION_START_OFFSET only if func_start is non-zero.
358 * minsyms.c (lookup_minimal_symbol_by_pc): Return NULL if
359 pc is not in a known section.
360 * stack.c (print_frame_info): Remove check for fi->pc in known
361 section, now handled by lookup_minimal_symbol_by_pc.
364 Fri May 17 13:54:34 1996 Fred Fish <fnf@cygnus.com>
366 * gdbtk.tcl (create_command_window): Change a misspelled "get"
367 to the intended "cget".
368 (delete_line): Fix so it deletes the current line at the
372 Fri May 17 13:31:04 1996 Stan Shebs <shebs@andros.cygnus.com>
374 * sh-stub.c: New file, was config/sh/stub.c.
377 Thu May 16 19:20:29 1996 Fred Fish <fnf@fishfood.ninemoons.com>
379 * gdbtk.tcl (gdb_prompt): Set this early on.
380 (create_command_window): Use gdb_prompt rather than "(gdb) ".
381 (gdbtk_tcl_preloop): Proc executed just prior to Tk main loop.
382 (tclsh): If an evaluation window already exists, just bring it
383 to the front instead of trying to create another.
384 * gdbtk.c (tk_command_loop): New function.
385 (gdbtk_init): Call tk_command_loop rather than Tk_MainLoop.
387 Thu May 16 16:16:35 1996 Fred Fish <fnf@cygnus.com>
389 * gdbtk.tcl (evaluate_tcl_command, tclsh): New functions that
390 implement a tcl evaluation window for gdbtk maintainers to use.
392 Thu May 16 11:42:58 1996 Tom Tromey <tromey@creche.cygnus.com>
394 * gdbtk.tcl (files_command): Correctly insert list of files into
397 * gdbtk.tcl (files_command): listbox command no longer accepts
400 Wed May 15 16:04:09 1996 Stan Shebs <shebs@andros.cygnus.com>
402 * gdbtk.tcl (create_command_window): If command window's buffer
403 is disabled, don't execute any of the key bindings.
406 Wed May 15 08:25:12 1996 Jeffrey A Law (law@cygnus.com)
408 * top.c (read_next_line): Fix thinkos. From Donn Seeley.
410 * coffread.c (coff_symtab_read): Handle C_LABEL symbols like
412 * h8300-tdep.c (h8300_pop_frame): Reset $sp and $pc correctly.
413 Flush cached frames just before exiting.
414 * remote-sim.c (gdbsim_resume): Complain if the program isn't
416 * config/h8300/tm-h8300.h (BELIEVE_PCC_PROMOTION): Define.
418 Tue May 14 18:05:16 1996 Stu Grossman (grossman@critters.cygnus.com)
420 * procfs.c (procfs_thread_alive procfs_stop): Make static.
421 (procfs_pid_to_str): New routine to print out thread id's in an
423 * sol-thread.c (sol_thread_fetch_registers): Re-order manner in
424 which supply_register is called to fix bug with writing
426 * config/sparc/tm-sun4sol2.h: Define default for
427 target_pid_to_str in case host lacks libthread_db.
429 Mon May 13 23:53:30 1996 Stu Grossman (grossman@critters.cygnus.com)
431 * Makefile.in config.in configure configure.in
432 config/sparc/nm-sun4sol2.h config/sparc/sun4sol2.mh
433 config/sparc/tm-sun4sol2.h: Use autoconf to config Solaris thread
434 and pthread support, since pre-2.5 systems don't come with
437 * procfs.c (info_proc): Use int instead of id_t. Old versions of
438 Irix don't seem to define this.
441 Mon May 13 13:43:25 1996 Fred Fish <fnf@cygnus.com>
443 * gdbtk.c (tk_command): Catch case where no argument is given
444 since this will cause the tcl interpreter to dump core.
447 Mon May 13 17:40:58 1996 Jeffrey A Law (law@cygnus.com)
449 * top.c (execute_control_command, case while_control): Allow
450 a while command to be interrupted.
452 Mon May 13 16:17:36 1996 Stu Grossman (grossman@critters.cygnus.com)
454 * sol-thread.c: More cleanup, add comments.
455 (sol_thread_resume): Prevent people from trying to step
457 (sol_thread_wait sol_thread_fetch_registers
458 sol_thread_store_registers): Remove unnecessary check for
459 sol_thread_active. These routines won't get called unless threads
462 Mon May 13 11:29:37 1996 Stan Shebs <shebs@andros.cygnus.com>
464 SH3-E support from Allan Tajii <atajii@hmsi.com>:
465 * sh-tdep.c (sh_reg_names, sh3_reg_names): Add empty names for
467 (sh3e_reg_names): New register name array.
468 (sh_processor_type_table): Add sh3e processor type.
469 * config/sh/tm-sh.h (REGISTER_VIRTUAL_TYPE): Fix test.
470 (REGISTER_NAMES, NUM_REGS, NUM_REALREGS, etc): Adjust for
471 full set of registers.
472 * remote-e7000.c (want_sh3, want_sh3_nopc): New globals.
473 (e7000_fetch_registers, e7000_wait): Use them.
474 * sh3-rom.c (sh3_regnames): Add float registers.
475 (sh3e_cmds, sh3e_ops): New globals.
476 (sh3e_open): New function.
477 (_initialize_sh3_rom): Rename from _initialize_sh3, set up
480 Fri May 10 15:53:38 1996 Stu Grossman (grossman@lisa.cygnus.com)
482 * sol-thread.c: Cleanup. gcc -Wall fixes. Add prototypes.
483 Print out messages instead of codes for thread_db errors. Make
484 access macros for thread and lwp manipulation. Make cleanups to
485 fixup inferior_pid in case of errors.
487 Thu May 9 19:06:02 1996 Fred Fish <fnf@cygnus.com>
489 * aclocal.m4: Remove unused definition of AC_C_CROSS.
490 * configure.in: Add powerpcle-*-solaris* host and target config
491 so April 30th change does not get lost next time configure is
494 Thu May 9 14:13:08 1996 Stu Grossman (grossman@critters.cygnus.com)
496 * Makefile.in, breakpoint.c, corelow.c, fork-child.c, inflow.c,
497 infrun.c, mac-nat.c, procfs.c, remote.c, sol-thread.c, thread.c,
498 win32-nat.c, config/nm-lynx.h: Rename thread.h to gdbthread.h to
499 avoid conflict with Solaris /usr/include/thread.h.
501 Thu May 9 12:33:32 1996 Rob Savoye <rob@chinadoll.cygnus.com>
503 * abug-rom.c: Config file for the older style ABug monitor that
504 runs on the mvme13x boards.
505 * config/m68k/monitor.mt: Add abug support for m68k cross
508 Wed May 8 20:33:24 1996 Fred Fish <fnf@cygnus.com>
510 * infcmd.c (do_registers_info): Always print the raw floating
511 point value's bytes in big endian order, so the the leftmost bit
512 is the most significant.
513 * breakpoint.c (clear_momentary_breakpoints): Remove dead code
514 that is referenced nowhere else.
515 (set_breakpoint): Ditto.
516 (do_enable_breakpoint): Created from enable_once_breakpoint
517 with a couple of changes.
518 (enable_breakpoint): Call do_enable_breakpoint with an appropriate
519 bpdisp enum value to set disposition of breakpoint.
520 (enable_once_breakpoint): Ditto.
521 (enable_delete_breakpoint): Ditto.
522 * breakpoint.h (clear_momentary_breakpoints): Remove prototype.
523 * symtab.c (find_pc_line): Improve comments.
525 * gdbtk.c: Fix a couple of misspellings.
527 * xcoffread.c: Ditto.
529 Tue May 7 18:37:06 1996 Stan Shebs <shebs@andros.cygnus.com>
531 * target.c (debug_to_xfer_memory): Insert line breaks when
532 dumping the memory block.
534 Mon May 6 13:52:52 1996 Stu Grossman (grossman@critters.cygnus.com)
536 * fork-child.c (fork_inferior), inferior.h: init_trace_fun now
537 returns a possibly modified pid.
538 * inftarg.c (ptrace_him): Now returns pid;
539 * m3-nat.c (m3_trace_him): Now returns pid;
540 * infcmd.c (run_command): Minor cleanup.
541 * infrun.c (wait_for_inferior): Add another check for one_stepped
542 near where we read the pc to avoid erroneously setting
543 random_signal for multi-threaded support.
544 * procfs.c: Add support for Solaris LWPs. Remove def of
545 LOSING_POLL. Many cleanups... Several workarounds for Solaris
546 lossage. System call entry and exit are now handled by
547 dynamically registered handlers.
548 * (syscallname): Don't barf when handed an unknown syscall
550 * (info_proc_syscalls): Ditto.
551 * sol-thread.c: New file. Implements Solaris thread support.
552 * symfile.c (symbol_file_add): Add call to target_new_objfile to
553 notify target-dependent code about new symbol tables.
554 * (clear_symtab_users): Call target_new_objfile to notify it of
555 the removal of all symbol tables.
556 * target.c (push_target): Make sure that to_close is non-zero
558 * target.h (target_new_objfile): Provide default.
559 * config/alpha/nm-osf2.h: Define LOSING_POLL because this version
560 of OSF can't hack using poll with /proc.
561 * config/sparc/nm-sun4sol2.h (target_new_objfile): Define to be
562 sol-thread-new-objfile.
563 * config/sparc/sun4sol2.mh: Add sol-thread.o to NATDEFFILES, and
564 add libthread_db.so.1 to NAT_CLIBS.
565 * config/sparc/tm-sun4sol2.h: Define PIDGET, TIDGET, and
568 Sat May 4 02:13:34 1996 N Srin Kumar <nsrin@wipinfo.soft.net>
570 * procfs.c (remove_fd): Fix copy of fds to fill hole left after
571 removal of the requested fd.
573 Mon May 6 07:52:48 1996 Michael Meissner <meissner@tiktok.cygnus.com>
575 * rs6000-tdep.c (_initialize_rs6000_tdep): Don't do XCOFF specific
578 * config/powerpc/tm-ppc-eabi.h: Define ELF_OBJECT_FORMAT.
581 Thu May 2 19:17:49 1996 Stan Shebs <shebs@andros.cygnus.com>
583 * gdbtk.tcl (debug_interface): New global, use to aid debugging.
584 (insert_breakpoint_tag, delete_breakpoint_tag): Fix range.
585 (file_popup_menu): Delete, never used.
586 (listing_window_popup): Rename from listing_window_button_1,
587 remove breakpoint toggling code.
588 (toggle_breakpoint): New procedure.
589 (create_file_win): Bind popup menu to button 2, toggle breakpoints
590 with button 1 in breakpoint area, add display of tagged areas if
594 Thu May 2 12:46:14 1996 Jeffrey A Law (law@cygnus.com)
597 * breakpoint.h (enum bpdisp): Add del_at_next_stop.
598 * breakpoint.c (insert_breakpoints, watchpoint_check,
599 bpstat_stop_status): Avoid bad references to memory freed via
600 delete_breakpoint on watchpoints going out of scope.
601 Do not delete these watchpoints, disable them and change their
602 disposition to del_at_next_stop instead.
603 (breakpoint_auto_delete): Delete all breakpoints whose disposition
605 (breakpoint_init_inferior): Use switch to avoid reference to
606 already deleted breakpoint.
608 Wed May 1 17:29:18 1996 Fred Fish <fnf@cygnus.com>
610 * Makefile.in (rs6000-nat.o): Depend on xcoffsolib.h.
611 * config/rs6000/rs6000.mh (NATDEPFILES): Move xcoffread.o ...
612 * config/rs6000/rs6000.mt (TDEPFILES): ... to here.
613 * xcoffsolib.c (xcoff_relocate_symtab_hook): Define and initialize.
614 (solib_info): Call xcoff_relocate_symtab via the hook.
615 (sharedlibrary_command): Ditto.
616 * xcoffread.c: Remove all FAKING_RS6000 comments and defines.
617 (xcoff_add_toc_to_loadinfo_hook): Define and initialize here.
618 (xcoff_init_loadinfo_hook): Define and initialize here.
619 (scan_xcoff_symtab): Call xcoff_add_toc_to_loadinfo via the hook.
620 (xcoff_initial_scan): Call xcoff_init_loadinfo via the hook.
621 * xcoffsolib.h (xcoff_relocate_symtab_hook): Declare extern func.
622 * rs6000-tdep.c (_initialize_rs6000_tdep): Add initializations
623 of xcoff_add_toc_to_loadinfo_hook and xcoff_init_loadinfo_hook.
624 * rs6000-nat.c (_initialize_core_rs6000): Add initialization
625 of xcoff_relocate_symtab_hook.
627 Tue Apr 30 13:22:02 1996 Michael Meissner <meissner@tiktok.cygnus.com>
629 * configure (powerpcle-*-solaris*): Add Solaris support.
631 * config/powerpc/{solaris.m[ht],tm-solaris.h}: New files for
634 Mon Apr 29 16:17:31 1996 Dawn Perchik <dawn@cygnus.com>
636 * c-valprint.c (c_val_print): Fix printing for arrays defined
639 Sun Apr 28 15:08:05 1996 Stan Shebs <shebs@andros.cygnus.com>
641 Support for bi-endian remote breakpoints.
642 * remote.c (big_break_insn, little_break_insn): New globals.
643 (break_insn): Remove.
644 (remote_insert_breakpoint, remote_remove_breakpoint): Use own
645 code if REMOTE_BREAKPOINT defined, otherwise call memory
646 breakpoint functions.
647 * config/sh/tm-sh.h (REMOTE_BREAKPOINT): Remove.
648 (BIG_REMOTE_BREAKPOINT, LITTLE_REMOTE_BREAKPOINT): Define.
650 * mon960-rom.c (mon960_cmds): Remove forward decl.
651 (mon960_load): Use current_monitor instead of mon960_cmds.
652 (mon960_regnames): Remove backslashes from line ends.
653 (_initialize_mon960): Fix documentation string.
655 Sun Apr 28 12:10:35 1996 Fred Fish <fnf@cygnus.com>
657 * symfile.h (psymbol_allocation_list): Expand comments which
658 describe the psymbol allocation list and how each field is
661 Sun Apr 28 03:44:30 1996 Peter Schauer (pes@regent.e-technik.tu-muenchen.de)
663 * breakpoint.c (delete_breakpoint): Fix bpt->val, bpt->exp
665 (breakpoint_re_set_one): Fix b->exp, b->val, b->cond storage leaks.
667 * infcmd.c (run_command), solib.c (locate_base): Check for
668 target_has_execution in addition to inferior_pid, a core file
669 from a threaded program is yielding a non-zero inferior_pid.
671 * sparc-tdep.c (get_saved_register): Handle window registers
672 in a dummy frame correctly.
674 Sat Apr 27 20:38:32 1996 Fred Fish <fnf@cygnus.com>
676 * Makefile.in (CLIBS): Move $(MMALLOC) past all other libs,
677 so that anything that wants an allocation function not yet pulled
678 in, will get it from mmalloc rather than a system library.
679 * Makefile.in (INSTALLED_LIBS): Reorder to match order of CLIBS,
680 to avoid surprising results when used.
682 Sat Apr 27 00:12:05 1996 Dawn Perchik (dawn@cygnus.com)
684 * stabsread.c: Changes and bug fixes for cfront support.
685 Fix bug for class data members.
686 Fix parsing bug when no base classes exist.
687 Fix memory bug - allocate space for cplusplus specific info.
688 Add support for static data.
689 Add prototypes for static functions.
690 Enhance comments to show what each function expects to parse.
692 * stabsread.c(resolve_cont),dbxread.c(resolve_cont): Rename
693 function to resolve_cfront_continuation.
695 Fri Apr 26 23:58:26 1996 Jeffrey A Law (law@cygnus.com)
697 * infrun.c (wait_for_inferior): Call registers_changed when
698 restarting the inferior to get over a nullified instruction.
700 Tue Apr 24 12:12:55 1996 Dawn Perchik (dawn@cygnus.com)
702 * dbxread.c,stabsread.c,gdbtypes.c,partial-stab.h,valops.c:
703 Add new support for parsing cfront stabs.
705 Wed Apr 24 00:32:55 1996 Jeffrey A Law (law@cygnus.com)
707 * infrun.c (wait_for_inferior): Move "have_waited" label
708 outside of #ifdef conditionals. Don't trash the wait status
709 if we get a signal and the current instruction is nullified.
711 Mon Apr 22 20:17:01 1996 Fred Fish <fnf@cygnus.com>
713 * Makefile.in (VERSION): Bump version number to 4.16.1.
714 * NEWS: Update for 4.16 release.
716 Mon Apr 22 16:32:29 1996 Stan Shebs <shebs@andros.cygnus.com>
718 * monitor.h: Clean up comment formatting.
719 (current_monitor): Remove decl.
720 (LOADTYPES, LOADPROTOS, INIT_CMD, etc): Remove definitions.
721 (push_monitor, SREC_SIZE): Remove.
722 * monitor.c: Expand old macro into current_monitor derefs
724 * remote-os9k.c (current_monitor): Remove definition.
726 Mon Apr 22 14:54:45 1996 Mark Alexander <marka@superball.cygnus.com>
728 * corefile.c (specify_exec_file_hook): Allow arbitrary number of
730 (call_extra_exec_file_hooks): New function.
731 * h8300-tdep.c: Lint; add .h files to provide missing declarations,
732 remove unused variables.
733 (set_machine_hook): New function.
734 (_initialize_h8300m): Initialize it.
736 Fri Apr 19 15:03:49 1996 Ian Lance Taylor <ian@cygnus.com>
738 * remote-mips.c (encoding): Don't specify size, to avoid bug in
739 SunOS native compiler.
741 Thu Apr 18 18:46:57 1996 Stan Shebs <shebs@andros.cygnus.com>
743 * monitor.c: Use int rather than LONGEST for values, since
744 the formatting strings are not prepared to accept long longs.
746 Wed Apr 17 20:17:27 1996 Doug Evans <dje@canuck.cygnus.com>
748 * arm-tdep.c (initialize_arm_tdep): Make apcs32 a `zinteger'.
750 Tue Apr 16 17:38:23 1996 Stu Grossman (grossman@critters.cygnus.com)
752 * corelow.c (add_to_thread_list): Make sure reg_sect is non-null
753 before de-referencing it. Prevents deref of NULL pointer if core
754 file lacks .reg section.
755 * defs.h: Rename floatformat_{to from}_long_double to
756 floatformat_{to from}_doublest. Get rid of FLOATFORMAT_{TO
758 * findvar.c (extract_floating store_floating): Change all refs to
759 FLOATFORMAT_{FROM TO}... to floatformat_{from to}_doublest.
760 * utils.c: Change floatformat_{to from}_long_double to
761 floatformat_{to from}_doublest cuz the new routines will use
762 whatever size (double or long double) is appropriate.
763 * config/i960/tm-i960.h (REGISTER_CONVERT_TO_VIRTUAL
764 REGISTER_CONVERT_TO_RAW): Change FLOATFORMAT... macros to
765 floatformat... routine calls.
767 Mon Apr 15 16:34:11 1996 Per Bothner <bothner@kalessin.cygnus.com>
769 * stabsread.c (read_type): Move handling of '@' from type
770 number handling to handling of types proper (as emitted by gcc!).
771 For typedefs, allocate the typedef type before reading its
772 definition, to properly handling recursive types.
774 Mon Apr 15 11:19:26 1996 Jeffrey A Law (law@cygnus.com)
776 * ch-exp.c (calculate_array_length): Fix prototype.
778 Sat Apr 13 14:21:16 1996 Stu Grossman (grossman@critters.cygnus.com)
780 * remote-nindy.c (nindy_open): Acquire more target state so that
781 user can attach to a previously running program.
782 * (nindy_fetch_registers nindy_store_registers): Get rid of fp
783 conversion code. That's all handled in {extract store}_floating
785 * utils.c (floatformat_to_double): Don't bias exponent when
786 handling zero's, denorms or NaNs.
787 * config/i960/tm-i960.h (REGISTER_CONVERT_TO_VIRTUAL
788 REGISTER_CONVERT_TO_RAW): Change to using DOUBLST and
789 FLOATFORMAT_TO/FROM_DOUBLEST macros.
790 * config/i960/tm-nindy960.h: Undefine
791 REGISTER_CONVERT_TO_VIRTUAL, REGISTER_CONVERT_TO_RAW, and
792 REGISTER_CONVERTIBLE. These are no longer necessary now that all
793 the magic happens in extract/store_floating.
795 Sat Apr 13 02:58:02 1996 Peter Schauer (pes@regent.e-technik.tu-muenchen.de)
797 * eval.c (evaluate_subexp_standard): Report error when attempting to
798 evaluate subscripts for types which cannot be subscripted.
800 * valarith.c (value_x_binop, value_x_unop): Add noside parameter.
801 Return a zero value with the return type of the member function
802 if noside is EVAL_AVOID_SIDE_EFFECTS instead of calling the member
804 * values.h (value_x_binop, value_x_unop): Update prototypes
806 * eval.c (evaluate_subexp_standard): Update all callers of
807 value_x_binop, value_x_unop accordingly.
809 * valarith.c (value_neg, value_complement): Perform ANSI C/C++
810 integral promotion on operands.
812 Fri Apr 12 13:19:27 1996 Fred Fish <fnf@cygnus.com>
814 * README: Update for 4.16 release.
815 * configure.in (AC_CHECK_FUNCS): Also check for sbrk.
816 * configure: Regenerate with autoconf.
817 * config.in: Regenerate with autoheader.
818 * main.c (main): Only use sbrk() when HAVE_SBRK is defined.
819 * top.c (command_loop): Ditto.
821 Fri Apr 12 09:45:29 1996 Stu Grossman (grossman@critters.cygnus.com)
823 * defs.h: Define TARGET_{FLOAT DOUBLE LONG_DOUBLE}_FORMAT
824 defaults for bi-endian targets. Replace function pointers for
825 floatformat routines with macros. No need for these to be runtime
827 * findvar.c: Get rid of floatformat function pointers. Use
828 macros in extract_floating and store_floating.
829 * remote-nindy.c (nindy_fetch_registers nindy_store_registers):
830 Use floatformat macros.
832 Thu Apr 11 21:28:02 1996 Fred Fish <fnf@cygnus.com>
834 From: Miles Bader <miles@gnu.ai.mit.edu>
835 * configure.in (AC_CHECK_HEADERS): check for endian.h.
836 Use AC_CHECK_TOOL to find AR & RANLIB. Add AC_PROG_AWK.
837 Add host & target cases for i[345]86-*-gnu*.
838 * config.in: Regenerate with autoheader.
839 * configure: Regenerate with autoconf.
840 * Makefile.in (AR, AWK): Set from corresponding autoconf substs.
841 (init.c): Don't scan mig-generated files.
842 * defs.h (endian.h): Include if HAVE_ENDIAN_H defined.
843 * config/nm-m3.h (ATTACH_NO_WAIT): Define.
844 * infcmd.c (attach_command): Use "#ifndef ATTACH_NO_WAIT"
845 rather than "#ifndef MACH".
847 Thu Apr 11 18:49:42 1996 Stan Shebs <shebs@andros.cygnus.com>
849 * remote.c (remotewritesize): New GDB variable, controls size
850 of memory packets sent to the target.
852 Thu Apr 11 13:47:52 1996 Stu Grossman (grossman@critters.cygnus.com)
854 * dcache.c: Add prototypes. Make many functions static.
855 * (dcache_peek dcache_fetch dcache_poke): Make dcache_fetch and
856 dcache_poke call dcache_xfer_memory directly in order to fix
857 problems with turning off dcache. dcache_peek is now unnecessary,
860 * defs.h: Define new macros HOST_{FLOAT DOUBLE LONG_DOUBLE}_FORMAT
861 and TARGET_{FLOAT DOUBLE LONG_DOUBLE}_FORMAT to specify a pointer
862 to a struct floatformat. This allows for better handling of
863 targets whose floating point formats differ from the host by more
864 than just byte order.
865 * (floatformat_to_long_double floatformat_from_long_double):
866 Prototypes for new functions in utils.c.
867 * (floatformat_to_doublest floatformat_from_doublest): Prototypes
868 for pointers to floating point conversion functions. The actual
869 function uses either double or long double if the host supports it.
870 * findvar.c (floatformat_to_doublest floatformat_from_doublest):
871 Initialize to point at correct function depending on HAVE_LONG_DOUBLE.
872 * (extract_floating store_floating): Rewrite. Now, if host fp
873 format is the same as the target, we just do a copy. Otherwise,
874 we call floatformat_{to from}_doublest.
875 * remote-nindy.c (nindy_xfer_inferior_memory): Change param
876 `write' to `should_write'.
877 * utils.c (floatformat_to_long_double
878 floatformat_from_long_double): New routines that implement long
879 double versions of functions in libiberty/floatformat.c.
880 * config/i960/tm-i960.h (TARGET_LONG_DOUBLE_FORMAT): Define this for
881 i960 extended real (80 bit) numbers.
882 * nindy-share/nindy.c (ninMemGet ninMemPut): Return number of bytes
883 actually read or written.
885 Wed Apr 10 02:56:06 1996 Wilfried Moser (Alcatel) <moser@rtl.cygnus.com>
887 * ch-valprint.c (chill_val_print): Remove call to calculate_array_length.
888 (calculate_array_length): Move function from here ...
890 * ch-exp.c (calculate_array_length): ... to here.
891 (parse_primval): If we have a symbol with an array type
892 and the length is 0, call calculate_array_length.
894 Tue Apr 9 01:23:05 1996 Wilfried Moser (Alcatel) <moser@rtl.cygnus.com>
896 * eval.c (evaluate_subexp_standard): In case of TYPE_CODE_SET:
897 Add some checks for powerset compatibility.
899 * valops.c (value_slice): Use lowbound instead of lowerbound for
900 call to slice_range_type to get correct bounds.
902 Mon Apr 8 12:53:56 1996 Fred Fish <fnf@cygnus.com>
904 * Makefile.in (scm-exp.o, scm-lang.o, scm-valprint.o): Add targets and
906 * scm-lang.c (gdb_string.h): Include.
907 * objfiles.c (add_to_objfile_sections): Cast second arg of obstack_grow
908 call to correct type (char *).
909 * cp-valprint.c (cp_print_static_field): Ditto.
910 * somsolib.c (som_solib_create_inferior_hook): Add a declaration
911 for external find_unwind_entry function (from hppa-tdep.c).
912 * remote-pa.c (remote_write_bytes, remote_read_bytes): Change
913 type of second arg to "char *" to be type compatible with
915 (remote_wait): Cast second arg to strtol to correct type.
916 * hppa-tdep.c (compare_unwind_entries): Change argument types to
917 "const void *" to be type compatible with qsort, and then
918 assign to local args prior to use.
920 Mon Apr 8 15:35:52 1996 Jeffrey A Law (law@cygnus.com)
922 * infptrace.c (kill_inferior): Remove call to "kill"; update
925 Mon Apr 8 14:05:07 1996 Geoffrey Noer <noer@cygnus.com>
927 * remote-e7000.c: don't append :23 to target port if __WIN32__
928 is defined (it's WinGDB).
930 Sun Apr 7 22:34:29 1996 Fred Fish <fnf@cygnus.com>
932 From: Miles Bader <miles@gnu.ai.mit.edu>
933 * gnu-nat.c, gnu-nat.h, msg.defs, exc_request.defs, i386gnu-nat.c,
934 msg_reply.defs, notify.defs, process_reply.defs, reply_mig_hack.awk,
935 config/nm-gnu.h, config/i386/{i386gnu.mh, i386gnu.mt, nm-gnu.h,
936 m-i386gnu.h, xm-i386gnu.h}: New files for GNU hurd.
938 Sun Apr 7 13:32:41 1996 Fred Fish <fnf@cygnus.com>
940 * configure.in (case host): Add i386sco5 host.
941 * configure: Regenerate.
943 From: Robert Lipe <robertl@dgii.com>
944 Add support for SCO OpenServer 5 (a.k.a. 3.2v5*) This
945 target is an SVR3.2 with COFF, ELF, and shared libes, but
947 * config/i386/i386sco5.mh: New file.
948 * config/i386/nm-i386sco5.h: New file.
950 Sat Apr 6 08:55:22 1996 Fred Fish <fnf@cygnus.com>
952 * bcache.c (bcache): When size of chunk to cache is exactly equal to
953 BCACHE_MAXLENGTH, stash chunk as unique copy.
955 Sat Apr 6 00:46:26 1996 Fred Fish <fnf@cygnus.com>
957 * symfile.c (INLINE_ADD_PSYMBOL): Remove ifdef.
958 (add_psymbol_to_list): Add an arg for passing CORE_ADDR values and
959 use it, rather than calling add_psymbol_addr_to_list.
960 (add_psymbol_addr_to_list): Delete.
961 (add_psymbol_to_list): Make psymbol static to avoid random data in
962 gaps due to alignment of structure members.
963 * symfile.h (INLINE_ADD_PSYMBOL, ADD_PSYMBOL_TO_LIST,
964 ADD_PSYMBOL_ADDR_TO_LIST): Remove. Real world tests show no
965 performance improvements by inlining via complicated macros and
966 they just make gdb larger and harder to maintain.
967 * dwarfread.c (add_enum_psymbol): Replace ADD_PSYMBOL_TO_LIST
968 and/or ADD_PSYMBOL_ADDR_TO_LIST macro(s) with call to
969 add_psymbol_to_list with appropriate long or CORE_ADDR args.
970 (add_partial_symbol): Ditto.
971 * partial-stab.h: Ditto.
972 * os9kread.c (read_os9k_psymtab): Ditto
973 * mdebugread.c (parse_partial_symbols): Ditto.
974 (handle_psymbol_enumerators): Ditto.
975 (demangle.h): Include.
976 * hpread.c (hpread_build_psymtabs): Ditto.
977 (hpread_build_psymtabs): Ditto.
978 (demangle.h): Include
981 Fri Apr 5 13:44:40 1996 Stan Shebs <shebs@andros.cygnus.com>
983 * gdbtk.c (running_now): New global variable.
984 (gdb_cmd): Test it before executing any command.
985 (gdbtk_call_command): Set it when inferior is running.
986 * gdbtk.tcl (gdbtk_tcl_busy, gdbtk_tcl_idle): Enable and
987 disable interaction with command window's text appropriately.
989 Fri Apr 5 13:25:42 1996 Michael Meissner <meissner@tiktok.cygnus.com>
991 * gdbtk.c (SIOCSPGRP, linux): If on Linux, undef SIOCSPGRP, since
992 some versions of the kernel don't support it.
995 Thu Apr 4 20:16:55 1996 Fred Fish <fnf@cygnus.com>
997 * configure.in: Check for setpgid function.
998 * config.in: Regenerate with autoheader.
999 * configure: Regenerate with autoconf.
1000 * inflow.c (_initialize_inflow): Only try to use _SC_JOB_CONTROL
1001 if it is actually defined.
1002 (gdb_setpgid): Use HAVE_SETPGID.
1003 * ch-exp.c: Change include of <string.h> to "gdb_string.h".
1004 * c-exp.y, f-exp.y, m2-exp.y: Ditto.
1005 * c-exp.y, serial.c: Include <ctype.h>.
1006 * config/m68k/nm-news.h: Add typedef for pid_t which is
1007 apparently missing from <sys/types.h>. Enclose entire
1008 file in NM_NEWS_H ifndef and define when included.
1009 * config/mips/nm-news-mips.h: Ditto.
1010 * config/m68k/tm-m68k.h (REGISTER_CONVERT_TO_VIRTUAL,
1011 REGISTER_CONVERT_TO_RAW): Change name of temporary variable.
1013 Thu Apr 4 19:04:18 1996 Stan Shebs <shebs@andros.cygnus.com>
1015 * arm-xdep.c: Move native-specific code to here from arm-tdep.c.
1016 * arm-tdep.c (arm_apcs_32): New global.
1017 (arm_addr_bits_remove, arm_saved_pc_after_call,
1018 arm_push_dummy_frame, arm_pop_frame): New functions.
1019 (arm_skip_prologue): Updated version from Richard Earnshaw.
1020 (_initialize_arm_tdep): Add set/show "apcs32".
1021 * config/arm/tm-arm.h (ADDR_BITS_REMOVE): Call
1022 arm_addr_bits_remove.
1023 (SAVED_PC_AFTER_CALL): Call arm_saved_pc_after_call.
1024 (frame_find_saved_regs): Declare properly.
1025 (PUSH_DUMMY_FRAME): Call arm_push_dummy_frame.
1026 (POP_FRAME): Call arm_pop_frame, use ADDR_BITS_REMOVE instead of
1028 * config/arm/nm-arm.h: New file.
1029 * config/arm/xm-arm.h (KERNEL_U_ADDR, FETCH_INFERIOR_REGISTERS):
1030 Move definitions to nm-arm.h.
1031 * config/arm/arm.mh (NAT_FILE): Define.
1033 * symfile.c (generic_load): Initialize data_count properly.
1035 Thu Apr 4 17:17:53 1996 Fred Fish <fnf@cygnus.com>
1037 * symmisc.c (print_objfile_statistics): Print memory used by
1038 psymbol cache obstack.
1040 Thu Apr 4 15:43:07 1996 Stan Shebs <shebs@andros.cygnus.com>
1042 * symfile.c (report_transfer_performance): New function.
1043 (generic_load): Call it to report transfer rate.
1044 * remote-e7000.c (e7000_load): Ditto.
1046 Mon Apr 1 16:31:00 1996 Stan Shebs <shebs@andros.cygnus.com>
1048 * mpw-make.sed: Change references to config.h to be in objdir,
1049 edit out rules to rebuild config.h.
1051 Mon Apr 1 08:32:23 1996 Fred Fish <fnf@cygnus.com>
1053 * hppa-tdep.c (hppa_pop_frame): Call clear_proceed_status before
1056 Sun Mar 31 16:15:43 1996 Fred Fish <fnf@cygnus.com>
1058 * hppah-nat.c (store_inferior_registers, store_inferior_registers,
1059 fetch_register, child_xfer_memory): Use call_ptrace function supplied
1060 by infptrace.c rather than calling ptrace directly.
1062 Sun Mar 31 15:39:00 1996 Stan Shebs <shebs@andros.cygnus.com>
1064 * mon960-rom.c: Cleanups and elimination of unused code,
1065 clarify documentation string.
1066 (mon960_serial, mon960_ttyname): Remove.
1067 * config/i960/tm-mon960.h (ADDITIONAL_OPTIONS,
1068 ADDITIONAL_OPTION_CASES, ADDITIONAL_OPTION_HELP): Remove.
1070 Sat Mar 30 11:00:22 1996 Fred Fish <fnf@cygnus.com>
1072 * configure.in: Check whether printf family supports printing
1073 long doubles or not and define PRINTF_HAS_LONG_DOUBLE if so.
1074 * acconfig.h: Provide default undef for PRINTF_HAS_LONG_DOUBLE.
1075 * configure: Regenerate.
1076 * valprint.c (print_floating): Use PRINTF_HAS_LONG_DOUBLE.
1077 * c-exp.y (parse_number): Use PRINTF_HAS_LONG_DOUBLE.
1078 * configure.in: Fix have_gregset and have_fpregset autoconf
1079 variable names so that they match the pattern required to
1082 Fri Mar 29 21:39:56 1996 Fred Fish <fnf@cygnus.com>
1084 * core-aout.c (fetch_core_registers): Cast core_reg_size to int
1085 before testing against reg_ptr.
1086 * eval.c (evaluate_subexp_standard): Cast type of
1087 TYPE_FN_FIELD_VOFFSET to int.
1088 * findvar.c (extract_signed_integer, extract_unsigned_integer,
1089 extract_long_unsigned_integer): Cast type of sizeof to int.
1090 * values.c (unpack_field_as_long, modify_field): Ditto.
1091 * valops.c (value_assign, call_function_by_hand): Ditto.
1092 * infcmd.c (do_registers_info): Ditto.
1093 * ser-tcp.c (tcp_open): Ditto.
1094 * remote.c (putpkt): Ditto.
1095 * dcache.c (dcache_peek): Ditto.
1096 * dcache.c (dcache_poke): Ditto.
1097 * m2-exp.y (yylex): Ditto.
1098 * gnu-regex.c (re_match_2): Ditto.
1099 * f-lang.c (ADD_BF_SYMNUM, saved_bf_list_end, tmp_bf_ptr): Ifdef
1100 out unused macro definition and variables.
1101 * inftarg.c (proc_wait): Move from main.c to here, and make static.
1102 * valprint.c (val_print_string): Change bufsize from int to unsigned.
1103 * main.c (wait.h): Include.
1104 * top.c (command_line_input): Remove unused variable "c".
1105 * f-typeprint.c (f_type_print_varspec_prefix): Add missing enum
1106 value TYPE_CODE_TYPEDEF to switch statement.
1107 (f_type_print_varspec_suffix): Add missing enum value
1108 TYPE_CODE_TYPEDEF to switch statement.
1109 * ch-exp.c (parse_primval): Add remaining enumeration values to
1110 switch statement, with no specific action.
1111 (ch_lex): Add LOC_UNRESOLVED in switch statement.
1112 (pushback_token): Ifdef out, since code using it is ifdef'd out.
1113 * stabsread.c (cleanup_undefined_types): Remove unused label
1115 * objfiles.h (print_symbol_bcache_statistics): Add prototype.
1116 * maint.c (objfiles.h): Include.
1117 (maintenance_print_statistics): Remove unused variable "temp".
1118 * minsyms.c (lookup_minimal_symbol_solib_trampoline): Remove
1119 unused variable "found_file_symbol".
1120 * m2-exp.y (yylex): Add LOC_UNRESOLVED case to switch.
1121 * language.c (lang_bool_type): Use existing function local type
1122 variable rather than create block local variables.
1123 * solib.c (disable_break): Enclose in ifndef SVR4_SHARED_LIBS.
1124 * infptrace.c (wait.h, command.h): Include.
1125 * ser-tcp.c (gdb_string.h): Include
1126 * i386-tdep.c (codestream_seek): Change "place" to CORE_ADDR.
1127 (i386_get_frame_setup): Change "pc" from int to CORE_ADDR.
1128 * command.c (complete_on_enum): Make assignment used as truth value
1129 explictly check against NULL.
1131 * infrun.c (wait_for_inferior): Ifdef out prologue_pc since code
1132 that uses it is ifdef'd out.
1133 * parser-defs.h: Add prototype for write_dollar_variable.
1134 * infrun.c: Add prototype for write_pc_pid.
1135 * breakpoint.h: Add prototype for re_enable_breakpoints_in_shlibs.
1136 * symmisc.c (bcache.h): Include.
1137 * bcache.h: Add prototype for print_bcache_statistics.
1138 * symfile.c: Include <time.h>.
1139 * printcmd.c (print_scalar_formatted): Change len to unsigned int.
1140 * valarith.c (value_equal): Cast result of TYPE_LENGTH to int.
1141 * valarith.c (value_binop): Change result_len, promoted_len1,
1142 and promoted_len2 to unsigned int.
1143 * valarith.c (value_subscripted_rvalue): Change elt_offs and
1144 elt_size to unsigned int.
1145 * valops.c (value_array): Change typelength to unsigned int.
1146 (destructor_name_p): Change len to unsigned int.
1147 * scm-lang.h (scm_parse): Add prototype for scm_unpack.
1148 * symfile.c (decrement_reading_symtab): Change return type to void.
1149 * valarith.c (value_subscript): Remove unused variable "word".
1150 (value_subscript): Remove unused variable "tint".
1151 * valops.c (auto_abandon): Ifdef out, since code using it is also
1153 * eval.c (init_array_element): Remove unused variable "val".
1154 * Makefile.in (values.o): Depends on scm-lang.h.
1155 (command.o): Depends upon wait_h.
1156 (ser-tcp.o): Depends upon gdb_string.h.
1157 (infptrace.o): Depends upon wait_h and command_h.
1158 (maint.o): Depends on objfiles.h and symfile.h.
1159 * values.c (allocate_repeat_value): Remove unused variable
1161 (scm-lang.h): Include.
1162 * breakpoint.c (create_longjmp_breakpoint): Enclose in
1163 GET_LONGJMP_TARGET define, unused otherwise.
1164 * config/i386/nm-linux.h: Add prototypes for i386_insert_watchpoint,
1165 i386_remove_watchpoint and i386_stopped_by_watchpoint.
1167 Thu Mar 28 12:53:19 1996 Doug Evans <dje@canuck.cygnus.com>
1169 * configure.in (sparc64-*-solaris2*): Delete.
1170 Stick with sparc-*-solaris2*.
1171 * configure: Regenerated.
1173 Thu Mar 28 06:51:26 1996 Fred Fish <fnf@cygnus.com>
1175 * valops.c (value_assign): Make copy of internal variable value
1176 before returning it as a new value, since it is owned by the
1177 internal variable and will be freed along with it.
1179 Wed Mar 27 08:36:17 1996 Jeffrey A Law (law@cygnus.com)
1181 * From Peter Schauer.
1182 * breakpoint.c (breakpoint_re_set_one): Keep temporary
1183 breakpoints bp_until, bp_finish, bp_watchpoint_cope, bp_call_dummy
1184 and bp_step_resume in case breakpoint_re_set_one is called due
1185 to a step over a dlopen call.
1186 * infrun.c (wait_for_inferior): Always remove breakpoints from
1187 inferior in BPSTAT_WHAT_CHECK_SHLIBS case.
1189 Tue Mar 26 13:15:32 1996 Fred Fish <fnf@cygnus.com>
1191 * config/mips/tm-mips.h (COERCE_FLOAT_TO_DOUBLE): Only prefer
1192 non-prototyped case over prototyped case for C.
1193 * config/pa/tm-hppa.h (COERCE_FLOAT_TO_DOUBLE): Ditto.
1195 Sat Mar 23 17:24:28 1996 Fred Fish <fnf@cygnus.com>
1197 * os9kread.c (os9k_process_one_symbol): Note nonportable
1198 assumption that an int can hold a char *.
1200 * bcache.h (struct hashlink): Wrap data[] inside union with
1201 double to force longest alignment.
1202 (BCACHE_DATA): New macro to access data[].
1203 (BCACHE_ALIGNMENT): New macro to get offset to data[].
1204 * bcache.c (lookup_cache, bcache): Use BCACHE_DATA to get
1205 address of cached data. Use BCACHE_ALIGNMENT to compute
1206 amount of space to allocate for each hashlink struct.
1208 Sat Mar 23 12:14:02 1996 Fred Fish <fnf@cygnus.com>
1210 * ch-lang.c (evaluate_subexp_chill): Fix typo.
1212 Thu Mar 21 08:27:19 1996 Fred Fish <fnf@cygnus.com>
1214 * Makefile.in (VERSION): Bump version to 4.15.3
1216 Thu Mar 21 10:56:41 1996 Ian Lance Taylor <ian@cygnus.com>
1218 * config.in: Rename from config.h.in.
1219 * configure.in: Call AC_CONFIG_HEADER with config.h:config.in.
1220 Change CONFIG_HEADERS test in AC_OUTPUT accordingly.
1221 * configure: Rebuild.
1222 * Makefile.in (stamp-h): Depend upon config.in, not config.h.in.
1223 Set CONFIG_HEADERS to config.h:config.in.
1225 Tue Mar 19 12:47:51 1996 Peter Schauer (pes@regent.e-technik.tu-muenchen.de)
1227 * partial-stab.h (case N_ENDM): Finish current partial symbol
1228 table for Solaris 2 cc.
1230 Tue Mar 19 10:39:15 1996 Jeffrey A Law (law@cygnus.com)
1232 * rs6000-nat.c (exec_one_dummy_insn): Don't clobber the
1233 PC in the registers array. From Peter Schauer.
1235 Mon Mar 18 13:47:09 1996 Fred Fish <fnf@cygnus.com>
1237 * symfile.c (reread_symbols): Reinitialize bcache struct
1238 members to zero using memset. Also use memset to reinit
1239 global_psymbols and static_psymbols, rather than explicitly
1240 resetting each structure member.
1242 Sat Mar 16 19:47:36 1996 Fred Fish <fnf@cygnus.com>
1244 * configure.in: Add fragment to create stamp-h.
1246 From Peter Schauer <Peter.Schauer@Regent.E-Technik.TU-Muenchen.DE>
1247 * configure.in (AC_CHECK_HEADERS): Check for link.h.
1248 * configure: Regenerate with autoconf.
1249 * config.h.in: Regenerate with autoheader.
1250 * config/i386/nm-linux.h: Include solib.h only if HAVE_LINK_H
1252 * solib.c: Exclude most of the code if HAVE_LINK_H is not defined.
1253 * config/i386/linux.mh: Reinstate XM_CLIBS, it is needed for
1254 older a.out based systems.
1256 Sat Mar 16 16:45:43 1996 Fred Fish <fnf@cygnus.com>
1258 * config.h.in: New file.
1259 * acconfig.h: New file, for autoheader.
1260 * configure.in (AC_CONFIG_HEADER): Add, generate config.h.
1261 * configure: Regenerate.
1262 * Makefile.in (defs_h): Add config.h
1263 (distclean): Remove config.h and stamp-h during distclean.
1264 (config.h, stamp-h): New targets to remake config.h when necessary.
1265 * defs.h (config.h): Include before any other includes or defines.
1266 * i386-tdep.c (gdb_string.h): Move include after include of defs.h.
1267 * i386v4-nat.c (defs.h): Include before testing HAVE_SYS_PROCFS_H.
1269 Sat Mar 16 14:55:27 1996 Fred Fish <fnf@cygnus.com>
1271 From Peter Schauer <Peter.Schauer@Regent.E-Technik.TU-Muenchen.DE>
1272 * Makefile.in (INSTALLED_LIBS): Make sure that @LIBS@ will not
1273 result in an empty line, to work around a bug in native Ultrix 4.4
1274 and OSF/1-3.2C make.
1276 Sat Mar 16 13:33:17 1996 Fred Fish <fnf@cygnus.com>
1278 * configure.in: Add gdbserver to configdirs under linux.
1279 * configure: Regenerate.
1281 Fri Mar 15 12:06:58 1996 J.T. Conklin <jtc@rtl.cygnus.com>
1283 * config/i386/nm-nbsd.h (FLOAT_INFO): Comment out.
1284 * config/i386/tm-nbsd.h (NUM_REGS): Define.
1286 Thu Mar 14 10:31:18 1996 Jeffrey A Law (law@cygnus.com)
1288 * solib.c (solib_break_names): Add _r_debug_state for
1289 vanilla SVR4 implementations. From Peter Schauer.
1291 Mon Mar 11 14:24:57 1996 Dawn Perchik <dawn@critters.cygnus.com>
1293 * mon960-rom.c: New file; support mon960 rom monitor on i960.
1294 * monitor.c (monitor_debug): Change remotedebug to buffer strings.
1295 * monitor.c (monitor_open): Add test for flag MO_NO_ECHO_ON_OPEN before
1296 epecting prompt and echo during open.
1297 * monitor.c (monitor_stop): Add test for flag MO_SEND_BREAK_ON_OPEN to
1298 determine if break should be sent as stop command.
1299 * monitor.h: Add flags MO_NO_ECHO_ON_OPEN and MO_SEND_BREAK_ON_OPEN.
1300 * i960-tdep.c (mon960_frame_chain_valid): New function for getting
1301 stack frame on mon960.
1302 * Makefile.in: Add mon960 files.
1303 * configure.in: Changed i960-*-coff* and i960-*-elf* to target mon960;
1304 added i960-nindy-coff* and i960-nindy-elf* for target nindy.
1305 * configure: Regenerated.
1306 * config/i960/mon960.mt, config/i960/tm-mon960.h: New files;
1307 support mon960 rom monitor on i960.
1309 Mon Mar 11 11:02:47 1996 Steve Chamberlain <sac@slash.cygnus.com>
1311 With Michael Snyder:
1312 * i386-tdep.c (skip_trampoline_code): Fix strncmp length.
1313 * win32-nat.c (CHECK, DEBUG*, debug_*): New.
1314 (handle_load_dll): Don't reload symbols.
1315 (handle_exception): Use the DEBUG_* names.
1316 (child_wait): Add DEBUG_* code.
1317 (_initialize_inftarg): Add new commands to set debug_ names.
1319 Mon Mar 11 09:19:58 1996 Jeffrey A Law (law@cygnus.com)
1321 * From Peter Schauer:
1322 * breakpoint.c (insert_breakpoints): Use ALL_BREAKPOINTS_SAFE.
1323 (bpstat_stop_status): Likewise.
1324 (remove_solib_event_breakpoints): Likewise.
1325 (clear_momentary_breakpoints): Likewise.
1326 (re_enable_breakpoints_in_shlibs): Don't reenable a breakpoint
1327 if we still can't read the memory for that breakpoint.
1328 (mention): Add bp_shlib_event case to keep gcc quiet.
1330 Fri Mar 8 12:08:12 1996 Jeffrey A Law (law@cygnus.com)
1332 * breakpoint.h (enum enable): New enum shlib_disabled for
1333 shared library breakpoints that have been temporarily disabled.
1334 * breakpoint.c: Handle temporarily disabled shared library
1335 breakpoints like disabled breakpoints in most places.
1336 (insert_breakpoints): Use shlib_disabled to indicate
1337 that an unsettable breakpoint is only temporarily disabled.
1338 (re_enable_breakpoints_in_shlibs): New function.
1339 * corelow.c (solib_add_stub): After adding shared libraries,
1340 try to reenable any temporarily disabled breakpoints.
1341 * infcmd.c (attach_command): Likewise.
1342 * infrun.c (wait_for_inferior): Likewise.
1344 Fri Mar 8 11:41:25 1996 Ian Lance Taylor <ian@cygnus.com>
1346 * defs.h (extract_long_unsigned_integer): Declare.
1347 * findvar.c (extract_long_unsigned_integer): New function.
1348 * printcmd.c (print_scalar_formatted): Use it.
1349 * valprint.c (val_print_type_code_int): Likewise.
1351 Thu Mar 7 17:40:50 1996 Stan Shebs <shebs@andros.cygnus.com>
1353 * infcmd.c (do_registers_info): Ignore anonymous registers.
1354 * sh-tdep.c (set processor): New command to set specific
1356 (sh_reg_names, sh3_reg_names): Arrays of register names for
1357 SH and SH3 processors.
1358 (sh_set_processor_type): New function.
1359 * sh3-rom.c (sh3_open): Call it.
1360 (sh3_regname): Add names of all the bank registers.
1361 (sh3_supply_register): Clean up formatting.
1362 * config/sh/tm-sh.h (NUM_REGS, NUM_REALREGS): Increase to include
1364 (REGISTER_NAMES): Add names of bank registers.
1365 (FP15_REGNUM): Define.
1366 (REGISTER_VIRTUAL_TYPE): Use it.
1367 * monitor.c: Clean up some comments.
1369 Thu Mar 7 12:09:51 1996 J.T. Conklin <jtc@rtl.cygnus.com>
1371 * i386b-nat.c: Revert part of Mar 5 change. FreeBSD collapsed the
1372 s* and t* symbols too.
1374 Thu Mar 7 15:18:51 1996 James G. Smith <jsmith@cygnus.co.uk>
1376 * symfile.c (generic_load): Avoid division by zero.
1378 Wed Mar 6 17:57:59 1996 Jeffrey A Law (law@cygnus.com)
1380 * breakpoint.c (bfd_lookup_symbol): Provide for all SVR4 systems,
1381 not just those with HANDLE_SVR4_EXEC_EMULATORS.
1384 * breakpoint.c (internal_breakpoint_number): Move to file scope.
1385 (create_solib_event_breakpoint): Use an internal breakpoint number.
1387 Wed Mar 6 00:32:44 1996 Wilfried Moser (Alcatel) <moser@rtl.cygnus.com>
1389 * valarith.c (value_in): Change builtin_type_chill_bool to
1392 Tue Mar 5 23:48:36 1996 Wilfried Moser (Alcatel) <moser@rtl.cygnus.com>
1394 * ch-exp.c (parse_primval): Handle CARD, MAX, MIN.
1395 (match_string_literal): Handle control sequence.
1396 (match_character_literal): Deto.
1398 * ch-lang.c (chill_printchar): Change formating of nonprintable
1399 characters from C'xx' to ^(num).
1400 (chill_printstr): Deto.
1401 (value_chill_card, value_chill_max_min): New functions to process
1402 Chill's CARD, MAX, MIN.
1403 (evaluate_subexp_chill): Process UNOP_CARD, UNOP_CHMAX, UNOP_CHMIN.
1405 * expression.h (exp_opcode): Add UNOP_CARD, UNOP_CHMAX, UNOP_CHMIN
1406 for Chill's CARD, MAX, MIN.
1408 * valarith.c (value_in): Add processing of TYPE_CODE_RANGE
1409 and change return type from builtin_type_int to
1410 builtin_type_chill_bool.
1412 Tue Mar 5 18:54:04 1996 Stan Shebs <shebs@andros.cygnus.com>
1414 * config/nm-nbsd.h (link_object, lo_name, etc): Move to here
1415 from config/nm-nbsd.h.
1416 * config/sparc/nm-nbsd.h (regs, fp_status, etc): Move to here
1417 from config/sparc/tm-nbsd.h.
1419 * config/m68k/nm-hp300hpux.h (FIVE_ARG_PTRACE): Define here
1420 instead of in config/m68k/xm-hp300hpux.h.
1422 Tue Mar 5 12:05:35 1996 J.T. Conklin <jtc@rtl.cygnus.com>
1424 * i386b-nat.c, m68knbsd-nat.c (fetch_core_registers): Provide
1425 implementation for NetBSD systems.
1427 Mon Mar 4 23:44:16 1996 Per Bothner <bothner@kalessin.cygnus.com>
1429 * valarith.c (binop_user_defined_p): Return 0 for BINOP_CONCAT.
1430 (value_concat): Handle varying strings (add COERCE_VARYING_ARRAY).
1432 * ch-lang.c (evaluate_subexp_chill case MULTI_SUBSCRIPT): Error
1433 if "function" is pointer to non-function.
1435 Mon Mar 4 17:47:03 1996 Stan Shebs <shebs@andros.cygnus.com>
1437 * top.c (print_gdb_version): Update copyright year.
1439 Mon Mar 4 14:44:54 1996 Jeffrey A Law (law@cygnus.com)
1442 * infrun.c (wait_for_inferior): Remove breakpoints and
1443 switch terminal settings before calling SOLIB_ADD.
1444 * solib.c (enable_break, SVR4 variant): Don't map in symbols
1445 for the dynamic linker, the namespace pollution causes real
1448 Sun Mar 3 17:18:57 1996 James G. Smith <jsmith@cygnus.co.uk>
1450 * remote-mips.c (common_breakpoint): Explicitly terminate the
1453 Wed Feb 28 22:32:18 1996 Stan Shebs <shebs@andros.cygnus.com>
1455 From Wilfried Moser <wilfried.moser@aut.alcatel.at>:
1456 * remote.c (remote_detach): Send a command 'D' to the target
1457 when detaching, update the function's comments.
1459 Wed Feb 28 15:50:12 1996 Fred Fish <fnf@cygnus.com>
1461 * Makefile.in (VERSION): Bump version to 4.15.2 to establish
1462 baseline for gdb 4.16 rerelease testing.
1464 Wed Feb 28 13:32:05 1996 Jeffrey A Law (law@cygnus.com)
1466 * somsolib.c (som_solib_create_inferior_hook): Before returning
1467 call clear_symtab_users.
1469 Tue Feb 27 00:04:46 1996 Stu Grossman (grossman@critters.cygnus.com)
1471 * remote-e7000.c (e7000_open): Delete all breakpoints when
1472 connecting to e7000. Change connect message to allow use of
1473 monitor.exp in test suite.
1474 * (e7000_load): Print transfer rate of download.
1475 * symfile.c (generic_load): Print transfer rate of download.
1477 Sun Feb 25 13:58:33 1996 Stan Shebs <shebs@andros.cygnus.com>
1479 * configure.in (mips*-*-vxworks*): New config.
1480 * configure: Regenerated.
1482 * config/mips/vxmips.mt, config/mips/tm-vxmips.h: New files.
1483 * remote-vxmips.c (vx_convert_to_virtual, vx_convert_from_virtual):
1486 Sat Feb 24 12:30:28 1996 Peter Schauer (pes@regent.e-technik.tu-muenchen.de)
1488 * partial-stab.h (case N_FUN): Function symbols generated
1489 by SPARCworks cc have a meaningless zero value, do not update
1490 pst->textlow if the function symbol value is zero.
1492 * stabsread.c (define_symbol): Initialize SYMBOL_TYPE field
1493 for function prototype declaration symbols.
1495 Fri Feb 23 22:33:04 1996 Stu Grossman (grossman@critters.cygnus.com)
1497 * remote-e7000.c (e7000_load): New routine to download via the
1499 * (e7000_wait): Don't backup PC when we hit a breakpoint.
1500 Apparantly new sh2 pods get this right...
1501 * (e7000_ops): Add call to e7000_load.
1503 Thu Feb 22 00:52:42 1996 J.T. Conklin <jtc@rtl.cygnus.com>
1505 * config/m68k/{nbsd.mh,nbsd.mt,nm-nbsd.h,tm-nbsd.h,xm-nbsd.h},
1506 m68knbsd-nat.c: New files, support for NetBSD/m68k.
1508 * configure.in (m68k-*-netbsd*): New config.
1509 * configure: Regenerated.
1511 Wed Feb 21 19:00:21 1996 Fred Fish <fnf@cygnus.com>
1513 * standalone.c (open, _initialize_standalone): Fix obvious typos
1514 reported by Martin Pool <martin@citr.uq.oz.au>.
1516 Wed Feb 21 14:24:04 1996 Jeffrey A Law (law@cygnus.com)
1518 * solib.c (solib_create_inferior_hook): Fix thinko.
1520 Tue Feb 20 23:59:19 1996 Jeffrey A Law (law@cygnus.com)
1522 * solib.c (solib_break_names): Define for Solaris and Linux.
1523 (enable_break): For SVR4 systems, first try to use the debugger
1524 interfaces in the dynamic linker to track shared library events
1525 as they happen, then fall back to BKPT_AT_SYMBOL code. Convert
1526 BKPT_AT_SYMBOL code to use shared library event breakpoints.
1527 (solib_create_inferior_hook): Simplify BKPT_AT_SYMBOL code,
1528 it no longer needs to restart/wait on the inferior.
1529 * symfile.c (find_lowest_section): No longer static.
1530 * symfile.h (find_lowest_section): Corresponding changes.
1532 Tue Feb 20 18:54:08 1996 Fred Fish <fnf@cygnus.com>
1534 * valops.c (COERCE_FLOAT_TO_DOUBLE): Define default value.
1535 (value_arg_coerce): Use COERCE_FLOAT_TO_DOUBLE.
1536 * config/alpha/tm-alpha.h (COERCE_FLOAT_TO_DOUBLE): Define to 1.
1537 * config/mips/tm-mips.h: Ditto.
1538 * config/pa/tm-hppa.h: Ditto.
1539 * config/rs6000/tm-rs6000.h: Ditto.
1540 * config/sparc/tm-sparc.h: Ditto.
1542 Tue Feb 20 17:32:05 1996 J.T. Conklin <jtc@rtl.cygnus.com>
1544 * config/{i386,ns32k}/nbsd.mh (NATDEPFILES): Remove core-aout.o.
1546 * config/nm-nbsd.h (FETCH_INFERIOR_REGISTERS): Defined.
1547 * config/xm-nbsd.h (CC_HAS_LONG_LONG, PRINTF_HAS_LONG_LONG):
1548 #ifdef'd out definitions --- Causes serious gdb failures on
1549 the i386. Need to investigate further before enabling.
1551 * i386b-nat.c (fetch_inferior_registers, store_inferior_registers,
1552 fetch_core_registers): New functions. These functions are defined
1553 if FETCH_INFERIOR_REGISTERS is set. Registers are fetched/stored
1554 with ptrace PT_GETREGS/PT_SETREGS.
1556 Tue Feb 20 16:55:06 1996 Stu Grossman (grossman@critters.cygnus.com)
1558 * findvar.c (extract_floating store_floating): Replace `long
1559 double' with `DOUBLEST'.
1561 Mon Feb 19 15:25:51 1996 J.T. Conklin <jtc@rtl.cygnus.com>
1563 * config/xm-nbsd.h (CC_HAS_LONG_LONG, PRINTF_HAS_LONG_LONG):
1566 Mon Feb 19 10:32:05 1996 Jeffrey A Law (law@cygnus.com)
1568 * symtab.h (looup_minimal_symbol_solib_trampoline): Declare.
1570 * breakpoint.h (remove_solib_event_breakpoints): Declare.
1571 * breakpoint.c (remove_solib_event_breakpoints): New function.
1572 * somsolib.c (solib_create_inferior_hook): Remove all solib event
1573 breakpoints before inserting any new ones. Use a solib event
1574 breakpoint for the breakpoint at "_start".
1575 Remove extraneous "\n" from calls to warning.
1577 * breakpoint.c (breakpoint_1): Add missing "sigtramp" to bptypes
1580 Mon Feb 19 01:09:32 1996 Doug Evans <dje@cygnus.com>
1582 * dwarfread.c (add_partial_symbol): Use ADD_PSYMBOL_ADDR_TO_LIST
1583 for CORE_ADDR values.
1584 (new_symbol): Use SYMBOL_VALUE_ADDRESS for CORE_ADDR values.
1585 * symfile.h (add_psymbol_{,addr}to_list): Add prototypes.
1587 Sun Feb 18 14:37:13 1996 Peter Schauer (pes@regent.e-technik.tu-muenchen.de)
1589 * mipsread.c (mipscoff_symfile_read): Unconditionally add
1590 alpha coff dynamic symbols for all symbol files. Makes skipping
1591 over the trampoline code work when stepping from a function in a
1592 shared library into a function in a different shared library.
1594 Sun Feb 18 09:27:10 1996 Stu Grossman (grossman@cygnus.com)
1596 * config/sparc/tm-sparc.h: Define PS_FLAG_CARRY. Define
1597 RETURN_VALUE_ON_STACK to return long doubles on the stack.
1599 Sat Feb 17 16:33:11 1996 Fred Fish <fnf@cygnus.com>
1601 * Makefile.in (ch-exp.o): Add dependencies.
1602 (various): Add gdb_string.h to dependencies that need it.
1604 Sat Feb 17 08:57:50 1996 Fred Fish <fnf@cygnus.com>
1606 * symmisc.c (print_symbol_bcache_statistics): Update description for
1607 printing byte cache statistics.
1609 Thu Feb 16 16:02:03 1996 Stu Grossman (grossman@cygnus.com)
1611 * Add native support for long double data type.
1612 * c-exp.y (%union): Change dval to typed_val_float. Use DOUBLEST
1613 to store actual data. Change types of INT and FLOAT tokens to
1614 typed_val_int and typed_val_float respectively. Create new token
1615 DOUBLE_KEYWORD to specify the string `double'. Make production
1616 for FLOAT use type determined by parse_number. Add production for
1617 "long double" data type.
1618 * (parse_number): Use sscanf to parse numbers as float, double or
1619 long double depending upon the type of typed_val_float.dval. Also
1620 allow user to specify `f' or `l' suffix to explicitly specify
1621 float or long double constants. Change typed_val to
1623 * (yylex): Change typed_val to typed_val_int. Also, scan for
1625 * coffread.c (decode_base_type): Add support for T_LNGDBL basic
1627 * configure, configure.in: Add check for long double support in
1629 * defs.h: Define DOUBLEST appropriatly depending on whether
1630 HAVE_LONG_DOUBLE (from autoconf) is defined. Also, fix prototypes
1631 for functions that handle this type.
1632 * expression.h (union exp_element): doubleconst is now type
1634 * m2-exp.y f-exp.y (%union): dval becomes type DOUBLEST.
1635 * findvar.c (extract_floating): Make return value be DOUBLEST.
1636 Also, add support for numbers with size of long double.
1637 * (store_floating): Arg `val' is now type DOUBLEST. Handle all
1639 * parser-defs.h parse.c (write_exp_elt_dblcst): Arg expelt is now
1641 * valarith.c (value_binop): Change temp variables v1, v2 and v to
1642 type DOUBLEST. Coerce type of result to long double if either op
1644 * valops.c (value_arg_coerce): If argument type is bigger than
1645 double, coerce to long double.
1646 * (call_function_by_hand): If REG_STRUCT_HAS_ADDR is defined, and
1647 arg type is float and > 8 bytes, then use pointer-to-object
1648 calling conventions.
1649 * valprint.c (print_floating): Arg doub is now type DOUBLEST.
1650 Use appropriate format and precision to print out floating point
1652 * value.h: Fixup prototypes for value_as_double,
1653 value_from_double, and unpack_double to use DOUBLEST.
1654 * values.c (record_latest_value): Remove check for invalid
1655 floats. Allow history to store them so that people may examine
1656 them in hex if they want.
1657 * (value_as_double unpack_double): Change return value to DOUBLEST.
1658 * (value_from_double): Arg `num' is now DOUBLEST.
1659 * (using_struct_return): Use RETURN_VALUE_ON_STACK macro (target
1660 specific) to expect certain types to always be returned on the stack.
1662 Fri Feb 16 14:00:54 1996 Fred Fish <fnf@cygnus.com>
1664 * bcache.c, bcache.h: New files to implement a byte cache.
1665 * Makefile.in (SFILES): Add bcache.c.
1666 (symtab_h): Add bcache.h.
1667 (HFILES_NO_SRCDIR): add bcache.h
1668 (COMMON_OBJS): Add bcache.o
1669 (bcache.o): New target.
1670 * dbxread.c (start_psymtab): Make global_syms & static_syms
1671 type "partial_symbol **".
1672 * hpread.c (hpread_start_symtab): Ditto.
1673 * os9kread.c (os9k_start_psymtab): Ditto.
1674 * stabsread.h (start_psymtab): Ditto.
1675 * {symfile.c, symfile.h} (start_psymtab_common): Ditto.
1676 * maint.c (maintenance_print_statistics): Call
1677 print_symbol_bcache_statistics.
1678 * objfiles.c (allocate_objfile): Initialize psymbol bcache malloc
1680 * solib.c (allocate_rt_common_objfile): Ditto.
1681 * symfile.c (reread_symbols): Ditto.
1682 (free_objfile): Free psymbol bcache when objfile is freed.
1683 (objfile_relocate): Use new indirect psymbol pointers.
1684 * objfiles.h (struct objfile): Add psymbol cache.
1685 * symfile.c (compare_psymbols): Now passed pointers to pointers to
1687 (reread_symbols): Free psymbol bcache when freeing other objfile
1689 (add_psymbol_to_list, add_psymbol_addr_to_list): Initialize new
1690 psymbol using the psymbol bcache.
1691 (init_psymbol_list): Psymbol lists now contain pointers rather than
1692 the actual psymbols.
1693 * symfile.h (psymbol_allocation_list): Psymbol lists now dynamically
1694 grown arrays of pointers.
1695 (ADD_PSYMBOL_VT_TO_LIST): Initialize new symbol using the psymbol
1697 * symmisc.c (print_partial_symbols): Now takes pointer to pointer
1699 (print_symbol_bcache_statistics): New function to print per objfile
1701 (print_partial_symbol, print_partial_symbols,
1702 maintenance_check_symtabs, extend_psymbol_list):
1703 Account for change to pointer to pointer to partial symbol.
1704 * symtab.c (find_pc_psymbol, lookup_partial_symbol, decode_line_2,
1705 make_symbol_completion_list):
1706 Account for change to pointer to pointer to partial symbol.
1707 * symtab.h (bcache.h): Include.
1708 * xcoffread.c (xcoff_start_psymtab): Make global_syms & static_syms
1709 type "partial_symbol **".
1711 Fri Feb 16 10:02:34 1996 Fred Fish <fnf@cygnus.com>
1713 * dwarfread.c (free_utypes): New function.
1714 (read_file_scope): Call free_utypes as cleanup, rather than just
1715 freeing the utypes pointer.
1717 Thu Feb 15 21:40:52 1996 Peter Schauer (pes@regent.e-technik.tu-muenchen.de)
1719 * demangle.c (is_cplus_marker): New function, checks if a
1720 character is one of the commonly used C++ marker characters.
1721 * defs.h (is_cplus_marker): Add prototype.
1722 * c-typeprint.c (c_type_print_base), ch-lang.c (chill_demangle),
1723 cp-valprint.c (cp_print_class_method), mdebugread.c (parse_symbol),
1724 stabsread.c (define_symbol, read_member_functions, read_struct_fields),
1725 symtab.h (OPNAME_PREFIX_P, VTBL_PREFIX_P, DESTRUCTOR_PREFIX_P),
1726 values.c (vb_match): Use is_cplus_marker instead of comparison
1729 Thu Feb 15 18:08:13 1996 Fred Fish <fnf@cygnus.com>
1731 * symfile.h (INLINE_ADD_PSYMBOL): Default this to 0 and possibly
1732 delete entirely someday.
1734 Thu Feb 15 15:25:34 1996 Stan Shebs <shebs@andros.cygnus.com>
1736 * mpw-make.sed: Edit out makefile rebuild rule.
1737 (host_alias, target_alias): Comment out instead of deleting.
1738 (@LIBS@): Edit out references.
1740 Tue Feb 13 22:56:46 1996 Fred Fish <fnf@cygnus.com>
1742 * symfile.c (add_psymbol_to_list, add_psymbol_addr_to_list):
1743 Use n_psyms in OBJSTAT, not psyms.
1745 Mon Feb 12 15:59:31 1996 Doug Evans <dje@charmed.cygnus.com>
1747 * configure.in (sparclet-*-aout*): New config.
1748 * configure: Regenerated.
1750 Mon Feb 12 14:17:52 1996 Fred Fish <fnf@cygnus.com>
1752 * somsolib.c (som_solib_add): Use xmalloc rather than bare
1753 unchecked call to malloc.
1754 * remote-mips.c (pmon_load_fast): ditto.
1755 * remote-mm.c (mm_open): ditto.
1756 * hpread.c (hpread_lookup_type): ditto.
1757 * remote-adapt.c (adapt_open): ditto.
1759 Mon Feb 12 13:11:32 1996 Fred Fish <fnf@cygnus.com>
1761 * f-lang.c (allocate_saved_bf_node, allocate_saved_function_node,
1762 allocate_saved_f77_common_node, allocate_common_entry_node,
1763 add_common_block): Use xmalloc rather than malloc, some of which
1765 * gnu-regex.c: At same point as other gdb specific changes
1766 #undef malloc and then #define it to xmalloc.
1767 * ch-exp.c (growbuf_by_size): Use xmalloc/xrealloc rather than
1768 bare unchecked calls to malloc/realloc.
1769 * stabsread.c (dbx_lookup_type): Use xmalloc rather than bare
1770 unchecked call to malloc.
1772 Wed Feb 7 11:31:26 1996 Stu Grossman (grossman@cygnus.com)
1774 * symtab.c (gdb_mangle_name): Change opname var to be const to
1775 match return val of cplus_mangle_name.
1776 * i960-tdep.c: Change arg types of next_insn to match callers.
1778 Wed Feb 7 07:34:24 1996 Fred Fish <fnf@cygnus.com>
1780 * config/i386/linux.mh (XM_CLIBS, GDBSERVER_LIBS): Remove. These
1781 apparently aren't needed in any reasonably recent version of
1784 Tue Feb 6 21:37:03 1996 Per Bothner <bothner@kalessin.cygnus.com>
1786 * stabsread.c (read_range_type): If !self-subrange and language
1787 is Chill, assume a true range. If a true_range is a sub_subrange,
1788 use builtin_type_int for index_type.
1790 Tue Feb 6 18:38:51 1996 J.T. Conklin <jtc@slave.cygnus.com>
1792 * nindy-share/nindy.c (say): Use stdarg.h macros when compiling
1793 with an ANSI compiler.
1795 start-sanitize-gdbtk
1796 Tue Feb 6 16:31:25 1996 Tom Tromey <tromey@creche.cygnus.com>
1798 * gdbtk.tcl (create_file_win): Eliminate text widget B1 binding so
1799 double-clicking will work again.
1800 (create_asm_win): Put "break" at end of all B1 bindings.
1801 (create_file_win): Lower "sel" tag, don't raise it.
1802 (ensure_line_visible): New proc.
1803 (update_listing, update_assembly): Use it.
1804 (create_copyright_window): Destroy window on Leave event.
1805 (create_command_window): Put "break" at end of all B2 bindings.
1808 Mon Feb 5 18:24:28 1996 Steve Chamberlain <sac@slash.cygnus.com>
1810 From Michael_Snyder@NeXT.COM (Michael Snyder):
1811 * valops.c (value_arg_coerce): Coerce float to double, unless the
1812 function prototype specifies float.
1814 Mon Feb 5 09:51:55 1996 Tom Tromey <tromey@creche.cygnus.com>
1816 * language.c (set_language_command): Use languages table when
1817 printing available languages.
1819 Sat Feb 3 12:22:05 1996 Fred Fish <fnf@cygnus.com>
1821 Fix problems reported by Hans Verkuil (hans@wyst.hobby.nl):
1822 * command.c (add_cmd): Add missing initialization for enums member.
1823 Reorder members to match structure declaration to make it easier to
1824 tell when one is missing.
1825 * exec.c (exec_file_command): Fix problem where filename in malloc'd
1826 memory is referenced after being freed.
1828 Sat Feb 3 03:26:21 1996 Peter Schauer (pes@regent.e-technik.tu-muenchen.de)
1830 * dwarfread.c (read_func_scope): Avoid GDB core dumps if
1831 AT_name tag is missing.
1833 * procfs.c (procfs_stopped_by_watchpoint): Fix logic when
1834 FLTWATCH and FLTKWATCH are defined.
1836 * remote.c (remote_read_bytes): Advance memaddr for transfers,
1837 return number of bytes transferred for partial reads.
1839 * top.c (init_signals): Reset SIGTRAP to SIG_DFL.
1841 Fri Feb 2 13:40:50 1996 Steve Chamberlain <sac@slash.cygnus.com>
1843 * win32-nat.c (mappings): Add ppc registers.
1844 (child_resume): Turn off step for ppc.
1846 Thu Feb 1 10:29:31 1996 Steve Chamberlain <sac@slash.cygnus.com>
1848 * config/powerpc/(cygwin32.mh, cygwin32.mt, tm-cygwin32.h,
1849 xm-cygwin32.h): New.
1850 * config/i386/(*win32*): Becomes *cygwin32*.
1851 * configure.in (i[3456]86-*-win32*): Becomes i[3456]86-*-cygwin32.
1852 (powerpcle-*-cygwin32): New.
1853 * configure: Regenerate.
1854 * win32-nat.c (child_create_inferior): Call CreateProcess
1855 with the right program arg.
1857 Thu Feb 1 11:01:10 1996 Jeffrey A Law (law@cygnus.com)
1859 * config/pa/tm-hppa.h (SOFT_FLOAT): Provide a default definition.
1861 Wed Jan 31 19:01:28 1996 Fred Fish <fnf@cygnus.com>
1863 * serial.c: Change fputc/fputs/fprintf to _unfiltered forms.
1865 Wed Jan 31 18:36:27 1996 Stan Shebs <shebs@andros.cygnus.com>
1867 * config/sparc/xm-sun4os4.h (HAVE_TERMIOS): Remove.
1869 * config/sparc/xm-sparc.h (HAVE_WAIT_STRUCT): Remove, never used.
1871 * config/i386/nm-i386mach.h (CHILD_PREPARE_TO_STORE): Move to
1872 here from config/i386/xm-i386mach.h, fix name.
1873 * config/i386/nm-sun386.h: Ditto, from config/i386/xm-sun386.h.
1874 * config/i386/nm-ptx4.h (CHILD_PREPARE_TO_STORE): Move to
1875 here from config/i386/xm-ptx4.h.
1876 * config/i386/nm-ptx4.h: Ditto, from config/i386/xm-ptx.h.
1877 * config/i386/nm-symmetry.h: Ditto, from config/i386/xm-symmetry.h.
1878 * config/m68k/nm-sun3.h: Ditto, from config/m68k/xm-sun3.h.
1879 * config/sparc/nm-nbsd.h: Ditto, from config/sparc/xm-nbsd.h.
1880 * config/sparc/nm-sun4os4: Ditto, from config/sparc/xm-sparc.h.
1882 * config/sparc/nm-sun4sol2.h: New file, renamed from nm-sysv4.h.
1883 (PRSVADDR_BROKEN): Move here from xm-sun4sol2.h.
1884 * config/sparc/sun4sol2.mh (NAT_FILE): Update.
1886 Wed Jan 31 17:20:26 1996 Jeffrey A Law (law@cygnus.com)
1888 * config/pa/tm-hppa.h (EXTRACT_RETURN_VALUE): Handle software
1889 floating point correctly.
1890 (STORE_RETURN_VALUE): Likewise.
1891 * config/pa/tm-pro.h (SOFT_FLOAT): define.
1893 Wed Jan 31 13:34:52 1996 Fred Fish <fnf@cygnus.com>
1895 * config/i386/xm-linux.h (MMAP_BASE_ADDRESS, MMAP_INCREMENT):
1896 Define to what should be reasonable values. However, apparently
1897 a bug in linux mmap prevents mapped symbol tables from working.
1899 Tue Jan 30 18:26:19 1996 Fred Fish <fnf@cygnus.com>
1901 * defs.h (errno.h>: Move #include closer to head of file to solve
1902 obscure problem with systems that declare perror with const arg, in
1903 both errno.h and stdio.h, and const is defined away by intervening
1906 Tue Jan 30 15:41:10 1996 Fred Fish <fnf@cygnus.com>
1908 From Jon Reeves <reeves@zk3.dec.com>:
1909 * i386-stub.c (getpacket): Change fprintf stream from "gdb" to stderr.
1910 (mem_fault_routine): Fix misplaced volatile type qualifier in decl.
1912 Mon Jan 29 19:05:58 1996 Fred Fish <fnf@cygnus.com>
1914 * Makefile.in (diststuff): Make all-doc; diststuff target does not
1915 exist in doc/Makefile.in.
1917 Mon Jan 29 18:44:57 1996 Stan Shebs <shebs@andros.cygnus.com>
1919 * config/m88k/xm-cxux.h (BP_HIT_COUNT): Remove, never used.
1921 Mon Jan 29 00:10:35 1996 Wilfried Moser (Alcatel) <moser@rtl.cygnus.com>
1923 * ch-valprint.c (calculate_array_length): New function to
1924 determine the length of an array type.
1925 (chill_val_print (case TYPE_CODE_ARRAY)): If the length of an
1926 array type is zero, call calculate_array_length.
1928 * gdbtypes.c (get_discrete_bounds (case TYPE_CODE_ENUM)): The
1929 values may not be sorted. Scan all entries and set the real lower
1932 Sun Jan 28 15:50:42 1996 Fred Fish <fnf@cygnus.com>
1934 * config/xm-linux.h: Move include of solib.h and #define of
1935 SVR4_SHARED_LIBS from here ...
1936 * config/nm-linux.h: ...to here.
1938 Sat Jan 27 10:34:05 1996 Fred Fish <fnf@cygnus.com>
1940 * configure.in (AC_CHECK_HEADERS): Check for sys/procfs.h.
1941 Also check for gregset_t and fpregset_t types.
1942 * configure: Regenerate.
1943 * core-regset.c (sys/procfs.h): Only include if HAVE_SYS_PROCFS_H
1945 (fetch_core_registers): Turn into stub unless both HAVE_GREGSET_T
1946 and HAVE_FPREGSET_T are defined. These changes allow systems
1947 like linux that are migrating to /proc support to use a single
1948 configuration for both new and old versions.
1950 * config/i386/linux.mt: Note that this is now for both a.out and
1952 * config/i386/linux.mh (NATDEPFILES): Add solib.o, core-regset.o,
1954 * config/i386/tm-linux.h (tm-sysv4.h): Include.
1955 * config/i386/xm-linux.h (solib.h): Include
1956 (SVR4_SHARED_LIBS): Define.
1957 * i386v4-nat.c: Only compile if HAVE_SYS_PROCFS_H is defined.
1958 (supply_gregset, fill_gregset): Compile if HAVE_GREGSET_T defined.
1959 (supply_fpregset, fill_fpregset): Compile if HAVE_FPREGSET_T
1962 Fri Jan 26 13:48:14 1996 Stan Shebs <shebs@andros.cygnus.com>
1964 * config/sparc/xm-sparc.h (NEW_SUN_CORE): Remove, never used.
1965 * config/i386/xm-sun386.h: Ditto.
1966 * config/m68k/xm-sun2.h, config/m68k/xm-sun3.h: Ditto.
1968 Thu Jan 25 16:05:53 1996 Tom Tromey <tromey@creche.cygnus.com>
1970 * Makefile.in (INSTALLED_LIBS, CLIBS): Include @LIBS@.
1972 Thu Jan 25 09:22:15 1996 Steve Chamberlain <sac@slash.cygnus.com>
1974 From Greg McGary <gkm@gnu.ai.mit.edu>:
1975 * dcache.c (dcache_peek, dcache_poke): Advance addr for
1978 Thu Jan 25 13:08:51 1996 Doug Evans (dje@cygnus.com)
1980 * infrun.c (normal_stop): Fix test for shared library event.
1982 Thu Jan 25 03:26:38 1996 Doug Evans <dje@charmed.cygnus.com>
1984 * configure.in (sparc64-*-*): Add default host configuration.
1985 start-sanitize-gdbtk
1986 (sparc64-*-solaris2* host): Link statically if GCC used.
1988 (sparc64-*-solaris2*): Add target configuration.
1989 * configure: Regenerated.
1990 * sparc/sp64sol2.mt: New file.
1992 Wed Jan 24 22:31:37 1996 Doug Evans <dje@charmed.cygnus.com>
1994 * Makefile.in (RUNTEST): srcdir renamed to rootsrc.
1996 Wed Jan 24 15:42:24 1996 Tom Tromey <tromey@creche.cygnus.com>
1998 * Makefile.in (lint): Close backquotes.
2000 start-sanitize-gdbtk
2001 Wed Jan 24 15:28:41 1996 Tom Tromey <tromey@creche.cygnus.com>
2003 * gdbtk.tcl, gdbtk.c: Updated copyrights.
2005 * configure.in: Look for -ldl or -ldld when using Tcl 7.5 or
2007 * configure: Rebuilt.
2010 Wed Jan 24 13:19:10 1996 Fred Fish <fnf@cygnus.com>
2012 * NEWS: Make note of new record and replay feature for
2013 remote debug sessions.
2014 * serial.c (gdbcmd.h): Include.
2015 (serial_logfile, serial_logfp, serial_reading, serial_writing):
2016 Define here, for remote debug session logging.
2017 (serial_log_command, serial_logchar, serial_write, serial_readchar):
2018 New functions for remote debug session logging.
2019 (serial_open): Open remote debug session log file when needed.
2020 (serial_close): Close remote debug session log file when needed.
2021 (_initialize_serial): Add set/show commands for name of remote
2022 debug session log file.
2023 * serial.h (serial_readchar): Declare
2024 (SERIAL_READCHAR): Call serial_readchar().
2025 (SERIAL_WRITE): Call serial_write().
2026 (serial_close): Declare as extern.
2027 (serial_logfile, serial_logfp): Declare.
2028 * top.c (execute_command): Declare serial_logfp. Log user command
2029 in remote debug session log if log file is open.
2030 * remote-array.c (array_wait): #ifdef out echo to gdb_stdout.
2031 (array_read_inferior_memory): Rewrite to fix memory overwrite bug.
2032 * remote-array.c (SREC_SIZE): Remove, duplicates define in
2034 * remote-array.c (hexchars, hex2mem): Remove, unused.
2035 * gdbserver/low-linux.c (store_inferior_registers): Remove
2036 unnecessary extern declaration of registers[].
2037 * gdbserver/Makefile.in (all): Add gdbreplay.
2038 * gdbserver/gdbreplay.c: New file.
2039 * gdbserver/README: Give example of recording a remote
2040 debug session with gdb and then replaying it with gdbreplay.
2042 Tue Jan 23 18:02:35 1996 Per Bothner <bothner@kalessin.cygnus.com>
2044 * stabsread.c (rs6000_builtin_type): Make bool type unsigned.
2045 (read_one_struct_field): Support boolean bitfields.
2046 * c-valprint.c (c_val_print): Print booleans properly.
2048 Tue Jan 23 18:54:09 1996 Stan Shebs <shebs@andros.cygnus.com>
2050 * remote-vxsparc.c (vx_convert_to_virtual, vx_convert_from_virtual):
2052 * config/sparc/vxsparc.mt (TDEPFILES): Add remote-vxsparc.o.
2054 Tue Jan 23 14:36:05 1996 Per Bothner <bothner@kalessin.cygnus.com>
2056 * ch-exp.c (parse_tuple): Error if invalid mode.
2058 * value.h (COERCE_ARRAY): Don't coerce enums.
2059 (COERCE_ENUM): Don't COERCE_REF.
2060 (COERCE_NUMBER): New macro (same as COERCE_ARRAY then COERCE_ENUM).
2061 * valops.c (value_assign): Only do COERCE_ARRAY if internalvar (let
2062 value_cast handle it otherwise); do *not* COERCE_ENUM either way.
2063 * valarith.c: Use COERCE_NUMBER instead od COEREC_ARRAY.
2064 Add COERCE_REF before COERCE_ENUM.
2065 * values.c (value_as_long): Simplify.
2067 * valops.c (value_array): Create internalvar if !c_style_arrays.
2069 * language.c (lang_bool_type): Add Fortran support.
2070 * eval.c (OP_BOOL): Use LA_BOOL_TYPE.
2072 Tue Jan 23 13:08:26 1996 Jeffrey A Law (law@cygnus.com)
2074 * symfile.c (auto_solib_add): Renamed from auto_solib_add_at_startup.
2075 All references changed.
2076 * breakpoint.c (bpstat_what): Add shlib_event to the class types.
2077 Update state table. Reformat so that it's still readable.
2078 When we hit the shlib_event breakpoint, set the calss of shlib_event.
2079 (breakpoint_1): Add "shlib events" as a breakpoint type.
2080 Print the shlib_event breakpoint like other breakpoints.
2081 (create_solib_event_breakpoint): New function.
2082 (breakpoint_re_set_one): Handle solib_event breakpoints.
2083 * breakpoint.h (enum bytype): Add bp_shlib_event breakpoint type.
2084 (enum bpstat_what_main_action): Add BPSTAT_WHAT_CHECK_SHLIBS
2086 (create_solib_event_breakpoint): Declare.
2087 * infrun.c (wait_for_inferior): Handle CHECK_SHLIBS bpstat.
2088 (normal_stop): Inform the user when the inferior stoped due
2089 to a shared library event.
2090 (_initialize_infrun): Add new set/show variable "stop-on-solib-events"
2091 to control whether or not gdb continues the inferior or stops it when
2092 a shared library event occurs.
2093 * minsyms.c (lookup_minimal_symbol_solib_trampoline): New function.
2094 * somsolib.c (TODO list): Update.
2095 (som_solib_create_inferior_hook): Arrange for gdb to be notified
2096 when significant shared library events occur.
2097 * hppa-tdep.c (find_unwind_entry): No longer static.
2099 Tue Jan 23 09:00:48 1996 Doug Evans <dje@charmed.cygnus.com>
2101 * printcmd.c (print_insn): Pass fprintf_unfiltered to
2102 INIT_DISASSEMBLE_INFO.
2103 start-sanitize-gdbtk
2104 * gdbtk.c (gdb_disassemble): Likewise.
2107 Mon Jan 22 16:59:40 1996 Stan Shebs <shebs@andros.cygnus.com>
2109 * remote.c (remotebreak): New GDB variable.
2110 (remote_break): New global.
2111 (remote_interrupt): Send a break instead of ^C if remote_break.
2112 * NEWS: Describe the new variable.
2114 Mon Jan 22 16:24:11 1996 Doug Evans <dje@charmed.cygnus.com>
2116 * sparc-tdep.c (_initialize_sparc_tdep): Always use print_insn_sparc.
2118 Fri Jan 19 07:19:38 1996 Fred Fish <fnf@cygnus.com>
2120 * hp300ux-nat.c (getpagesize): Remove unused function
2121 fetch_core_registers.
2122 (hp300ux_core_fns): Remove, is unused.
2123 (_initialize_core_hp300ux): Remove, is unused.
2124 (gdbcore.h): Remove #include, no longer needed.
2126 Fri Jan 19 00:59:53 1996 Jeffrey A Law (law@cygnus.com)
2128 * rs6000-nat.c (exec_one_dummy_insn): Rework to avoid
2129 ptrace bug in aix4.1.3 on the rs6000.
2131 Wed Jan 17 13:22:27 1996 Stan Shebs <shebs@andros.cygnus.com>
2133 * remote-hms.c (hms_ops): Add value for to_thread_alive.
2134 * remote-nindy.c (nindy_ops): Ditto.
2135 * remote-udi.c (udi_ops): Ditto.
2137 Tue Jan 16 18:00:35 1996 James G. Smith <jsmith@cygnus.co.uk>
2139 * remote-mips.c (pmon_opn, pmon_wait, pmon_makeb64, pmon_zeroset,
2140 pmon_checkset, pmon_make_fastrec, pmon_check_ack,
2141 pmon_load_fast): New functions. Support for the PMON monitor world.
2142 (common_open): New function to merge support for different monitors.
2143 (mips_open): Use common_open().
2144 (mips_send_command): New function.
2145 (mips_send_packet): Scan out-of-sequence packets.
2146 (mips_enter_debug, mips_exit_debug): New functions.
2147 (pmon_ops): New target definition structure.
2149 Tue Jan 16 11:22:58 1996 Stu Grossman (grossman@cygnus.com)
2151 * Makefile.in (CLIBS): Add LIBS to allow libraries to be
2152 specified on the make command line (via make LIBS=xxx).
2154 * configure.in (enable-gm): magic.o -> gmagic.o.
2157 start-sanitize-gdbtk
2158 Mon Jan 15 09:58:41 1996 Tom Tromey <tromey@creche.cygnus.com>
2160 * gdbtk.tcl (create_expr_window): Many changes to update GUI.
2161 (add_expr): Changes from create_expr_window.
2162 (create_command_window): Set focus.
2163 (delete_expr): Rewrote.
2164 (expr_update_button): New proc.
2165 (add_expr): Put bindings on FocusIn, FocusOut.
2166 Don't allow .file_popup to be torn off.
2169 Fri Jan 12 21:41:58 1996 Jeffrey A Law (law@cygnus.com)
2171 * symtab.c (find_pc_symtab): Don't lose if OBJF_REORDERED
2172 is set but there are no psymtabs.
2174 Fri Jan 12 15:56:12 1996 Steve Chamberlain <sac@slash.cygnus.com>
2176 * dsrec.c (load_srec): Remove unused variable.
2177 * monitor.c (monitor_expect): Don't expect a ^C to echo.
2178 * serial.c (serial_open): Add parallel interface.
2179 * sh3-rom.c (parallel, parallel_in_use): New.
2180 (sh3_load): If parallel_in_use, download though the
2182 (sh3_open): Open parallel port if specified.
2183 (sh3_close): New function.
2184 (_inititalize_sh3): Add sh3_close hook and documentation.
2185 * monitor.c (monitor_close): Export.
2186 * monitor.h (monitor_close): Add prototype.
2188 Fri Jan 12 13:11:42 1996 Stan Shebs <shebs@andros.cygnus.com>
2190 From Wilfried Moser <wilfried.moser@aut.alcatel.at>:
2191 * remote.c (remotetimeout): New GDB variable, use to set the
2192 remote timeout for reading.
2194 start-sanitize-gdbtk
2195 Fri Jan 12 09:36:17 1996 Tom Tromey <tromey@creche.cygnus.com>
2197 * gdbtk.tcl (gdbtk_tcl_query): Swap Yes and No buttons.
2198 (update_listing): Use lassign. Use "see" to scroll. Don't need
2199 screen_top, screen_bot, screen_height.
2200 (update_assembly): Use "see" to scroll.
2201 (textscrollproc): Removed.
2202 (create_file_win): Don't use textscrollproc.
2203 (asmscrollproc): Removed.
2204 (create_asm_window): Don't use asmscrollproc.
2205 (create_asm_win): Ditto.
2206 (screen_height, screen_top, screen_bot): Removed.
2207 (run_editor): New proc.
2208 (build_framework): Use it.
2209 (create_file_win, create_source_window): Don't use textscrollproc.
2210 (create_breakpoints_window): Set -xscrollcommand on canvas.
2211 (not_implemented_yet): Default button is 0.
2212 (delete_char): Don't use tk_textBackspace.
2213 (create_command_window): Allow Tk bindings to fire after deleting
2215 (create_command_window): Make Delete delete left, not right.
2218 Fri Jan 12 07:14:27 1996 Fred Fish <fnf@cygnus.com>
2220 * lynx-nat.c, irix4-nat.c, sparc-nat.c: Include gdbcore.h
2221 to get "struct core_fns" defined.
2222 * Makefile.in (lynx-nat.o, irix4-nat.o, sparc-nat.o):
2223 Are dependent upon gdbcore_h.
2225 Thu Jan 11 23:13:24 1996 Per Bothner <bothner@cygnus.com>
2227 * symfile.c (decrement_reading_symtab): New function.
2228 * symfile.c, symtab.h (currently_reading_symtab): New variable.
2229 * symfile.c (psymtab_to_symtab): Adjust currently_reading_symtab.
2230 * gdbtypes.c (check_typedef): Don't call lookup_symbol if
2231 currently_reading_symtab (since that could infinitely recurse).
2233 Thu Jan 11 17:21:25 1996 Per Bothner <bothner@kalessin.cygnus.com>
2235 * stabsread.c (read_struct_type): Trivial simplification.
2237 * stabsread.c (define-symbol): Use invisible references
2238 for TYPE_CODE_SET and TYPE_CODE_BITSTRING too.
2239 * valops.c (call_function_by_hand): Likewise.
2240 * eval.c (evaluate_subexp_standard): When known, use the formal
2241 parameter type as the expected type when evaluating arg expressions.
2242 * ch-lang.c (evaluate_subexp_chill): Likewise (for MULTI_SUBSCRIPT).
2244 start-sanitize-gdbtk
2245 Thu Jan 11 10:08:14 1996 Tom Tromey <tromey@creche.cygnus.com>
2247 * main.c (main): Disable window interface if --help or --version
2250 * gdbtk.tcl (FSBox): Don't use tk_listboxSingleSelect.
2252 Changes in sync with expect:
2253 * configure.in (ENABLE_GDBTK): Use CY_AC_PATH_TCL and
2255 * aclocal.m4: Replaced with version from expect.
2256 * configure: Regenerated.
2259 Wed Jan 10 16:08:49 1996 Brendan Kehoe <brendan@lisa.cygnus.com>
2261 * configure.in, configure: Recognize rs6000-*-aix4*.
2262 * config/powerpc/xm-aix.h: Reduce to include "xm-aix4.h".
2263 * config/rs6000/aix4.mh (XM_FILE): Point to xm-aix4.h.
2264 * config/rs6000/xm-aix4.h: New file.
2265 * config/xm-aix4.h: New file.
2267 Wed Jan 10 11:25:37 1996 Fred Fish <fnf@cygnus.com>
2269 From Wilfried Moser <wilfried.moser@aut.alcatel.at>:
2270 * gdbserver/low-linux.c: New file.
2271 * remote.c (remote_read_bytes): Fix aborts on larger packets.
2273 * config/i386/linux.mh (GDBSERVER_DEPFILES, GDBSERVER_LIBS):
2275 * stabsread.c (define_symbol): If register value is too large,
2276 tell what it is and what max is.
2278 start-sanitize-gdbtk
2279 Wed Jan 10 09:07:22 1996 Tom Tromey <tromey@creche.cygnus.com>
2281 * gdbtk.tcl (gdbtk_tcl_fputs, gdbtk_tcl_fputs_error,
2282 gdbtk_tcl_flush): Use "see", not "yview".
2283 (gdbtk_tcl_query): Use questhead bitmap.
2284 various: Always wrap condition of 'if' in {...}.
2285 (add_breakpoint_frame): Set -value on radiobuttons.
2286 (lassign): New proc.
2287 (add_breakpoint_frame): Use lassign, not series of assignments.
2288 (decr): Made faster.
2289 (interactive_cmd): Use "see", not "yview".
2290 (not_implemented_yet): Use warning bitmap.
2291 (update_expr): Don't allow $expr to be evalled by Tcl.
2292 (create_expr_window): Don't use "focus".
2293 (delete_char, delete_line): Define globally.
2294 (delete_line, delete_char, create_command_window, update_autocmd,
2295 build_framework, create_asm_win, create_file_win): Use "see", not
2297 (create_copyright_window, center_window, bind_widget_after_class):
2299 (FSBox,create_command_window, create_autocmd_window): Binding
2301 (textscrollproc): Define globally.
2302 (build_framework): tk_menuBar no longer needed. Keys Prior, Next,
2303 Home, End, Up, and Down are all defined by Tk.
2304 (apply_filespec): Use error bitmap in dialog.
2305 (files_command): Don't use tk_listboxSingleSelect.
2306 (files_command): Don't use "uniq" to remove duplicates from a
2308 (update_assembly): Use lassign.
2309 (create_asm_win): Removed redundant bindings.
2310 (listing_window_button_1, file_popup_menu): Use tk_popup.
2311 (ButtonRelease-1 binding): Just remove tag from window; rest
2314 * gdbtk.c (gdbtk_query): Use Tcl_Merge to provide quoting.
2315 (call_wrapper): Use Tcl_Eval, not Tcl_VarEval.
2316 (gdbtk_call_command): Ditto.
2319 Tue Jan 9 09:33:53 1996 Jeffrey A Law (law@cygnus.com)
2321 * hpread.c (hpread_build_psymtabs): Finish Jan 4th
2322 enum namespace -> enum_namespace change.
2324 Tue Jan 9 04:44:47 1996 Wilfried Moser (Alcatel) <moser@rtl.cygnus.com>
2326 * ch-exp.c (parse_primval): In case ARRAY, add missing
2329 Mon Jan 8 13:29:34 1996 Stan Shebs <shebs@andros.cygnus.com>
2331 * remote-mips.c (mips_receive_header): Recognize \012 instead
2332 of \n, but write \n when program sends a \012.
2333 * ser-mac.c (mac_input_buffer): Increase size of buffer.
2335 Mon Jan 8 12:00:40 1996 Jeffrey A Law (law@cygnus.com)
2337 * infptrace.c (initialize_infptrace): Move function out of
2338 #ifdef conditional; put code within the function inside an
2341 * buildsym.c (end_symtab): Remove sort_pending and sort_linevec
2342 arguments. Sorting is now dependent on OBJF_REORDERED. All
2343 callers/references changed.
2344 * dbxread.c (read_ofile_symtab): Correctly determine value for
2345 last_source_start_addr for reordered executables.
2346 (process_one_symbol): Handle N_FUN with no name as an end of
2348 * partial-stab.h (case N_FN, N_TEXT): Don't assume CUR_SYMBOL_VALUE
2349 is the high text address for a psymtab.
2350 (case N_SO): Likewise.
2351 (case N_FUN): Handle N_FUN with no name as an end of function
2353 * minsyms.c (lookup_minimal_symbol_by_pc): Examine all symbols
2354 at the same address rather than a random subset of them.
2355 * coffread.c (coff_symfile_init): Set OBJF_REORDERED.
2356 * elfread.c (elf_symfile_init): Similarly.
2357 * somread.c (som_symfile_init): Similarly.
2358 * xcoffread.c (xcoff_symfile_init): Similarly.
2360 Fri Jan 5 17:46:01 1996 Stu Grossman (grossman@cygnus.com)
2362 * stack.c (print_stack_frame print_frame_info) symmisc.c
2363 (dump_symtab): Change RETURN_MASK_ERROR to RETURN_MASK_ALL so
2364 that catch_errors doesn't get blindsided by QUIT and lose the
2365 cleanup chain. This fixes a problem where ^C while in a
2366 user-defined command sometimes leaves instream NULL and causes a
2367 segfault in command_loop.
2369 Fri Jan 5 13:59:16 1996 Brendan Kehoe <brendan@lisa.cygnus.com>
2371 * configure.in, configure: Add `-ldl -lw' for Solaris linking.
2373 Fri Jan 5 12:02:00 1996 Steve Chamberlain <sac@slash.cygnus.com>
2375 * config/sh/sh.mt, config/powerpc/*.mt, config/pa/hppapro.mt,
2376 config/m68k/monitor.mt, config/h8500/h8500.mt, config/h8300/h8300.mt:
2377 srec.o renamed to dsrec.o.
2379 Thu Jan 4 16:04:54 1996 Stu Grossman (grossman@cygnus.com)
2381 * breakpoint.c (remove_breakpoint): Change error to warning so
2382 that hardware watchpoint removal problems won't leave breakpoint
2383 traps in the target.
2384 start-sanitize-gdbtk
2385 * configure configure.in: Make --enable-gdbtk be the default.
2387 * remote-e7000.c (e7000_insert_breakpoint,
2388 e7000_remove_breakpoint): Use e7000 based breakpoints, not memory
2390 * (e7000_wait): Adjust PC back by two when we see a breakpoint to
2391 compensate for e7000 maladjustment.
2392 * sparcl-tdep.c (sparclite_check_watch_resources): Fix logic bug
2393 which prevented hardware watchpoints from working.
2395 Thu Jan 4 10:44:17 1996 Fred Fish <fnf@cygnus.com>
2397 * infptrace.c (udot_info): New function.
2398 (PT_*): Define each individually if that one is not defined.
2399 * rs6000-nat.c (kernel_u_size): New function
2400 Include <sys/user.h> for "struct user"
2401 * alpha-nat.c (kernel_u_size): New function.
2402 Include <sys/user.h> for "struct user"
2403 * sparc-nat.c (kernel_u_size): New function.
2404 Include <sys/user.h> for "struct user"
2405 * i386b-nat.c (kernel_u_size): New function.
2406 * i386v-nat.c (kernel_u_size): New function.
2407 * config/i386/nm-fbsd.h (KERNEL_U_SIZE): Define.
2408 (kernel_u_size): Declare.
2409 * config/i386/nm-linux.h (KERNEL_U_SIZE): Define.
2410 (kernel_u_size): Declare.
2411 * config/sparc/nm-sun4os4.h (KERNEL_U_SIZE): Define.
2412 (kernel_u_size): Declare.
2413 * config/alpha/nm-osf2.h (KERNEL_U_SIZE): Define.
2414 (kernel_u_size): Declare.
2415 * config/rs6000/nm-rs6000.h (KERNEL_U_SIZE): Define.
2416 (kernel_u_size): Declare.
2418 Thu Jan 4 11:00:01 1996 steve chamberlain <sac@slash.cygnus.com>
2420 * mdebugread.c (mylookup_symbol): enum namespace becomes
2421 enum_namespace type.
2422 * symfile.c (add_psymbol_to_list)
2423 (add_psymbol_addr_to_list): Ditto.
2424 * symtab.c (lookup_partial_symbol): Ditto.
2425 (lookup_symbol): Ditto.
2426 (lookup_block_symbol): Ditto.
2427 * win32-nat.c (handle_load_dll): Use incoming dll base.
2428 (child_wait): Catch DLL load errors.
2429 (create_child_inferior): Translated between paths correctly.
2431 Wed Jan 3 23:13:53 1996 Fred Fish <fnf@cygnus.com>
2433 * i386v4-nat.c (supply_gregset, fill_gregset): Subtract NUM_FREGS
2434 from NUM_REGS to get number of general registers that we care about.
2435 * config/i386/tm-i386.h (REGISTER_BYTES): Define in terms
2436 of number of general regs and number of floating point regs.
2438 Wed Jan 3 19:49:54 1996 steve chamberlain <sac@slash.cygnus.com>
2440 * config/i386/tm-win32.h (IN_SOLIB_CALL_TRAMPOLINE): New.
2441 (SKIP_TRAMPOLINE_CODE): New.
2442 * config/i386/xm-win32.h (CANT_FORK): Deleted.
2443 (SLASH*) Changed to use unix style slash.
2444 * symtab.h (namespace enum): becomes typedef to avoid namespace
2446 * infcmd.c (path_command): Use empty string if PATH name not set.
2447 * i386-tdep.c (skip_trampoline_code): New function.
2448 * srec.c: Renamed dsrec.c to avoid filename collision.
2449 * Makefile.in: Cope with renaming.
2451 Wed Jan 3 13:09:04 1996 Fred Fish <fnf@cygnus.com>
2453 * symmisc.c (print_objfile_statistics): Print memory use statistics
2454 for objfile psymbol, symbol, and type obstacks.
2456 Tue Jan 2 13:41:14 1996 Stan Shebs <shebs@andros.cygnus.com>
2458 * config/mips/nm-irix5.h: Restore.
2459 (TARGET_HAS_HARDWARE_WATCHPOINTS, etc): Define as for Irix 4;
2460 from Lee Iverson <leei@ai.sri.com>.
2461 * config/mips/irix5.mh (NAT_FILE): Use nm-irix5.h.
2462 * config/mips/irix[345].mh (MUNCH_DEFINE): Remove.
2464 For older changes see ChangeLog-95
2470 version-control: never