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