import gdb-1999-12-13 snapshot
[deliverable/binutils-gdb.git] / gdb / ChangeLog
CommitLineData
c4093a6a
JM
11999-12-13 Michael Snyder <msnyder@cleaver.cygnus.com>
2
3 * breakpoint.h (enum bptype): add new BP type bp_thread_event.
4 This will be used when a target needs to set an invisible
5 breakpoint to detect events such as thread creation.
6 * breakpoint.c (interlan_breakpoint_number): remove ifdefs.
7 (create_thread_event_breakpoint): new function.
8 (remove_thread_event_breakpoints): new function.
9 (bpstat_what): don't stop at invisible thread_event breakpoints.
10 (update_breakpoints_after_exec): if bp_thread_event breakpoins
11 still exist after an exec, delete them. They'll need to be
12 found and installed anew anyway.
13 (print_it_typical): don't announce bp_thread_event breakpoints.
14 (print_one_breakpoint): account for new breakpoint type.
15 (mention): don't mention invisible bp_thread_event breakpoints.
16 (delete_command): don't delete invisible bp_thread_event bp's.
17 (breakpoint_re_set_one): don't touch bp_thread_event bp's.
18
19Mon Dec 13 11:10:59 1999 Jimmy Guo <guo@cup.hp.com>
20
21 * language.h (longest_raw_hex_string, longest_local_hex_string,
22 longest_local_hex_string_custom): Declare.
23 * language.c: New functions, and misc. fixes.
24 (longest_raw_hex_string, longest_local_hex_string,
25 longest_local_hex_string_custom): New functions.
26
27 * c-typeprint.c
28 (c_type_print_varspec_prefix,c_type_print_varpsec_suffix): Add
29 TYPE_CODE_TEMPLATE case and default case.
30 (c_type_print_base): Revise how demangled_no_class is found;
31 print '}' before printing local file:line info.
32 * c-valprint.c (c_value_print): print reference type to class.
33
34 * valarith.c (value_binop): Add support for exponentiation,
35 equal, not equal.
36 (my_strcmp): New function.
37 (value_equal,value_less): Add string equality comparison support.
38
39 * m2-exp.y (lex): add default case statement to capture
40 unhandled token and call error().
41
421999-12-13 Elena Zannoni <ezannoni@kwikemart.cygnus.com>
43
44 * main.c (main): Remove unused variable.
45
46 From Hubert VERSTRAETE (hubertV@bigfoot.com):
47 * main.c (captured_main): Disambiguate command line option '-d' by
48 preferring --directory over --dbx.
49
50 * top.c (return_to_top_level): Do not do exec cleanups if the
51 target is executing. Those cleanups are supposed to be done when
52 the target has stopped.
53
54Mon Dec 13 20:52:37 1999 Andrew Cagney <cagney@b1.cygnus.com>
55
56 * breakpoint.c (do_captured_breakpoint_query,
57 gdb_breakpoint_query): New functions. Implement a breakpoint
58 query.
59
60 * defs.h (enum gdb_rc): Declare.
61 (gdb_breakpoint_query): Declare.
62
63Mon Dec 13 14:18:06 1999 Andrew Cagney <cagney@b1.cygnus.com>
64
65 * gdb-events.h: Fix typo in description of breakpoint events.
66 * gdb-events.sh: Update.
67
68Mon Dec 13 13:57:26 1999 Andrew Cagney <cagney@b1.cygnus.com>
69
70 * breakpoint.c (ep_type_description_t): Delete.
71 (print_one_breakpoint): Add local declaration of struct
72 ep_type_description.
73
74Mon Dec 13 12:38:31 1999 Andrew Cagney <cagney@b1.cygnus.com>
75
76 * top.h: Delete #include <setjmp.h>. Moved to top.c.
77 (SIGJMP_BUF, SIGSETJMP, SIGLONGJMP, SIGJMP_BUF, SIGSETJMP,
78 SIGLONGJMP): Delete. Moved to top.c
79 (error_return, quit_return): Delete extern declarations.
80
81 * top.c: #include <setjmp.h>.
82 (error_return, quit_return): Make static.
83 (SIGJMP_BUF, SIGSETJMP, SIGLONGJMP, SIGJMP_BUF, SIGSETJMP,
84 SIGLONGJMP): Define.
85
86Mon Dec 13 11:54:12 1999 Andrew Cagney <cagney@b1.cygnus.com>
87
88 * tracepoint.c (trace_start_command, tracepoints_info): Print
89 step_count using %ld.
90 * Makefile.in (tracepoint.o): Compile tracepoint.o with -Werror.
91
921999-12-12 Elena Zannoni <ezannoni@kwikemart.cygnus.com>
93
94 * target.h (enum target_waitkind): Add new enumeration value
95 TARGET_WAITKIND_IGNORE. For inferior events that we should do
96 nothing about.
97
98 * remote.c (remote_async_wait): After each character of console
99 output from the inferior, return to the event loop with an event
100 kind of TARGET_WAITKIND_IGNORE instead of looping here.
101
102 * infrun.c (handle_inferior_event): In case of
103 TARGET_WAITKIND_IGNORE, return immediately, and set things up so
104 that we are still waiting for the inferior.
105
1061999-12-12 Elena Zannoni <ezannoni@kwikemart.cygnus.com>
107
108 * event-loop.c (handle_timer_event): When calling the timer
109 procedure, use the saved_timer data, not the timer_ptr data,
110 because the latter has been already freed.
111
112Fri Dec 10 12:01:43 1999 Andrew Cagney <cagney@b1.cygnus.com>
113
114 * eval.c (evaluate_subexp): Only inline when GNUC and not STDC.
115
116Sat Dec 11 17:52:03 1999 Andrew Cagney <cagney@b1.cygnus.com>
117
118 * breakpoint.c (print_one_breakpoint): New function. Move
119 breakpoint print code to here.
120 (breakpoint_1): From here.
121
122Mon Dec 6 20:31:28 1999 Andrew Cagney <cagney@b1.cygnus.com>
123
124 * gdbarch.sh: Replace field init_p with invalid_p.
125 (TARGET_BFD_VMA_BIT): New architecture vector method. Defaults to
126 architecture bits_per_address.
127 * gdbarch.h, gdbarch.c: Update.
128 * defs.h (TARGET_BFD_VMA_BIT): Provide default of TARGET_PTR_BIT
129 for non- multi-arch case.
130
131 * gdbtypes.h (builtin_type_bfd_vma, builtin_type_ptr,
132 builtin_type_CORE_ADDR): New GDB specific address types.
133 * gdbtypes.c (_initialize_gdbtypes, build_gdbtypes): Initialize
134 new builtin types.
135
136Wed Dec 8 17:48:56 1999 Andrew Cagney <cagney@b1.cygnus.com>
137
138 * config/sparc/nm-nbsd.h (FETCH_INFERIOR_REGISTERS): Delete
139 definition. Already defined in config/nm-nbsd.h. Include the
140 more explicit config/nm-nbsd.h.
141
142 * config/sparc/nbsd.mt (TDEPFILES): Move solib.o from here.
143 * config/sparc/nbsd.mh (NATDEPFILES): To here.
144 * config/xm-nbsd.h: #include <sys/param.h> to get definition of
145 NGROUPS needed by <limits.h> and missing on some systems.
146 * config/nm-nbsd.h: Only macro's that match NetBSD definitions
147 with what is expected by solib.c when not SVR4_SHARED_LIBS.
148
149 * configure.host: Add patterns for sparc-*-netbsdaout* and
150 sparc-*-netbsdelf*.
151 * config/sparc/nm-nbsdelf.h: New file.
152 * config/sparc/nbsdelf.mh: New file.
153
154Wed Dec 8 19:56:48 1999 Andrew Cagney <cagney@b1.cygnus.com>
155
156 * frame.h, blockframe.c: Rename default_frame_chain_valid to
157 file_frame_chain_valid. Rename alternate_frame_chain_valid to
158 func_frame_chain_valid.
159
160 * config/sparc/tm-sparclite.h, config/mips/tm-mipsv4.h,
161 config/m88k/tm-delta88v4.h, config/m68k/tm-m68kv4.h,
162 config/m68k/tm-monitor.h, config/i386/tm-i386nw.h,
163 config/i386/tm-i386v4.h, config/h8300/tm-h8300.h: Update.
164 * mips-tdep.c (mips_gdbarch_init): Update.
165
166Wed Dec 8 19:12:17 1999 Andrew Cagney <cagney@b1.cygnus.com>
167
168 * blockframe.c (generic_file_frame_chain_valid): Rename
169 generic_file_frame_chain_valid.
170 * frame.h: Update.
171 * config/fr30/tm-fr30.h, config/m32r/tm-m32r.h,
172 config/mn10200/tm-mn10200.h, config/mn10300/tm-mn10300.h,
173 config/sh/tm-sh.h, config/v850/tm-v850.h, config/mcore/tm-mcore.h:
174 Update.
175
176 * blockframe.c (generic_func_frame_chain_valid): New function.
177 Implement dummy-frame equivalent of function based frame chain
178 valid.
179 * frame.h (generic_func_frame_chain_valid): Declare.
180
181Wed Dec 8 16:26:27 1999 Andrew Cagney <cagney@b1.cygnus.com>
182
183 * blockframe.c (alternate_frame_chain_valid,
184 default_frame_chain_valid): Swap implementations. The change Mon
185 Nov 30 11:18:48 1998 Andrew Cagney <cagney@chook> which converted
186 several macros to functions was backwards.
187
188 * mips-tdep.c (mips_gdbarch_init): Update. Call
189 alternate_frame_chain_valid and not default_frame_chain_valid.
190
191Wed Dec 8 15:29:48 1999 Andrew Cagney <cagney@b1.cygnus.com>
192
193 * infptrace.c: Simplify handling of <sys/wait.h>. Always include
194 "wait.h" from the ../include/wait.h directory. #include
195 <sys/wait.h> was added as part of Mon Nov 29 12:14:10 1999 Andrew
196 Cagney <cagney@b1.cygnus.com> but the ChangeLog was omitted.
197
de57eccd
JM
1981999-12-07 Jim Blandy <jimb@cygnus.com>
199
200 Add support for SSE registers in core files.
201 * corelow.c (get_core_register_section): New function.
202 (get_core_registers): Fetch the new ".reg-xfp" sections,
203 in addition to the traditional ".reg" and ".reg2" sections.
204 Check for per-thread variants of all three. Use
205 get_core_register_section, instead of writing it out over and over
206 again.
207 * i386-linux-nat.c (i386_linux_fetch_core_registers): New function.
208 (i386_linux_nat_core_fns): New core_fns structure. We do our own
209 core handling now, instead of using the generic code in core-regset.c.
210 (_initialize_i386_linux_nat): New function, needed to register
211 i386_linux_nat_core_fns.
212 * config/i386/linux.mh (NATDEPFILES): Remove core-regset.o;
213 i386-linux-nat.c has its own sniffer now.
214 * gdbcore.h: (struct core_fns): Doc fix.
215
216 * i386v-nat.c (i386_float_info): Definition is #if 0'd; delete it
217 altogether. This should use the function i387-tdep.c.
218
219 Patch from Mark Kettenis <kettenis@gnu.org>:
220
221 * config/i386/tm-i386.h (FLOAT_INFO): New define.
222 * i387-tdep.c (print_i387_value, print_i387_ext,
223 print_i387_status_word, print_i387_control_word, i387_float_info):
224 New functions, used to implement generic `info float' command.
225
c2d11a7d
JM
2261999-12-06 Christopher Faylor <cgf@cygnus.com>
227
228 * dcache.c (set_dcache_state): New function.
229 * dcache.h: Declare set_dcache_state().
230
231Sat Dec 4 15:17:44 1999 Andrew Cagney <cagney@b1.cygnus.com>
232
233 * remote.c (build_remote_packet_sizes): Reduce the default packet
234 size of 400 bytes by one to 399. Stops GDB trashing stubs that
235 append a trailing NUL to an already full buffer.
236
237Sat Dec 4 01:16:47 1999 Andrew Cagney <cagney@b1.cygnus.com>
238
239 * tracepoint.c (remote_get_noisy_reply): Add parameter sizeof_buf.
240 (finish_tfind_command): Add parameter sizeof_msg.
241
242 * remote.c (remote_threads_info): Move assignment operator to
243 outside of function call.
244 (remote_send): Add parameter sizeof_buf.
245 (getpkt): Add parameter sizeof_buf. Call read_frame passing in
246 sizeof_buf.
247
248 * remote.h (getpkt): Update.
249
250 * tracepoint.c (remote_set_transparent_ranges,
251 remote_get_noisy_reply, trace_start_command, trace_stop_command,
252 trace_status_command, finish_tfind_command, trace_find_pc_command,
253 trace_find_tracepoint_command, trace_find_line_command,
254 trace_find_range_command, trace_find_outside_command): Update.
255
256 * remote.c (set_thread, remote_thread_alive,
257 remote_get_threadinfo, remote_get_threadlist,
258 remote_current_thread, remote_threads_info,
259 extended_remote_restart, get_offsets, remote_open_1,
260 remote_async_open_1, remote_wait, remote_async_wait,
261 remote_fetch_registers, check_binary_download, remote_write_bytes,
262 remote_read_bytes, remote_send, remote_detach,
263 remote_async_detach, remote_fetch_registers,
264 store_register_using_P, store_register_using_P,
265 remote_fetch_registers, remote_store_registers, putpkt_binary,
266 remote_insert_breakpoint, remote_remove_breakpoint,
267 compare_sections_command, remote_rcmd, packet_command,
268 remote_info_process, remote_query, remote_insert_watchpoint,
269 remote_search, remote_remove_watchpoint,
270 remote_insert_hw_breakpoint, remote_remove_hw_breakpoint): Update.
271
272Fri Dec 3 17:38:06 1999 Andrew Cagney <cagney@b1.cygnus.com>
273
274 * (read_frame): Add sizeof_buf parameter. Don't allow repeat when
275 first character. Always leave space at the end of the buffer.
276 Return size of packet or -1.
277 (getpkt): Update. Pass in PBUFSIZ.
278
279Thu Dec 2 17:14:53 1999 Andrew Cagney <cagney@b1.cygnus.com>
280
281 * ser-pipe.c: Include <string.h> for memset().
282
de57eccd
JM
2831999-12-01 Jim Blandy <jimb@cygnus.com>
284
285 * gdbtypes.c (builtin_type_v4si, builtin_type_v8qi,
286 builtin_type_v4hi, builtin_type_v2si): New SIMD types.
287 (build_gdbtypes): Initialize them.
288 (_initialize_gdbtypes): Gdbarch_swap them.
289 * gdbtypes.h (builtin_type_v4si, builtin_type_v8qi,
290 builtin_type_v4hi, builtin_type_v2si): Declare them.
291
292 * findvar.c (read_register_bytes, write_register_bytes): Correctly
293 determine how the region the caller is writing overlaps with each
294 register's bytes.
295
296 * value.h (struct value): Doc fixes.
297
298 * valops.c (value_assign): Clarify error message.
299
c2d11a7d
JM
3001999-12-01 Christopher Faylor <cgf@cygnus.com>
301
302 * config/i386/tm-cygwin.h: Change tm-i386.h include back to tm-i386v.h.
303
3041999-12-01 Elena Zannoni <ezannoni@kwikemart.cygnus.com>
305
306 * inf-loop.c (inferior_event_handler): In case of
307 INF_EXEC_CONTINUE, don't do all the regular continuations, but
308 just the intermediate ones.
309
310 * infcmd.c (step_once): Add the continuation to the
311 intermediate_continuation list instead of the regular continuation
312 list.
313
314 * utils.c (add_intermediate_continuation): New function, to add
315 continuations to the intermedite_continuation list.
316 (do_all_intermediate_continuations): New function, do all the
317 continuations in the intermediate list.
318 (discard_all_intermediate_continuations): New function, discard
319 all the continuations in the intermediate list.
320 (intermediate_continuation): New global list for use by step_1().
321
322 * defs.h: Export intermediate_continuation,
323 add_intermediate_continuation, do_all_intermediate_continuations,
324 discard_all_intermediate_continuations.
325
3261999-11-30 Christopher Faylor <cgf@cygnus.com>
327
328 * win32-nat.c (mappings): Reorganize slightly for new uniform i386
329 register configuration.
330 (do_child_fetch_inferior_registers): Handle special case floating point
331 registers.
332 (handle_output_debug_string): Handle cygwin-specific signals broadcast
333 from the cygwin DLL.
334 (handle_exceptions): Add code to properly allow continuation after a
335 CTRL-C.
336 (child_continue): Accept propagated "continue_status" which controls
337 how the inferior should be continued.
338 (get_child_debug_event): New function.
339 (child_wait): Use above function to handle debug events.
340 (child_create_inferior): Add more intelligent method for running the
341 inferior to the appropriate point before handing it off to the rest of
342 gdb.
343 (child_stop): Specifically send a CTRL-C to the debugged process.
344 (child_kill_inferior): Set global continue status here to cause
345 inferior to run to completion.
346 (child_resume): Eliminate code which attempts to decide how to continue
347 the inferior. This is now handled by child_continue.
348 * config/i386/tm-cygwin.h: Gut and reorganize for consistency with new
349 tm-i386.h.
350
351 Patch from Egor Duda (deo@logos-m.ru)
352 * win32-nat.c (psapi_get_dll_name): New function.
353 (handle_load_dll): Correctly load DLL symbol tables after attaching to
354 a running pid.
355
3561999-11-30 Michael Snyder <msnyder@cleaver.cygnus.com>
357
358 * infrun.c (handle_inferior_pid): revert 11-29 change: resuming
359 a thread other than the current thread with a signal. Apparently
360 target_resume with a specific pid, a specific signal, and no step
361 means to continue ALL threads but to only send the signal to one
362 (and not, as I had assumed, to continue only the specified thread).
363 * i386-linux-nat.c (fill_gregset): guard against invalid input.
364
3651999-11-30 Elena Zannoni <ezannoni@kwikemart.cygnus.com>
366
367 * infcmd.c (step_once): New function. Used to do just one step
368 operation.
369 (step_1_continuation): New function. Figure out if we need to step
370 again before returning control to the user.
371 (step_1): If we are in asynchronous mode, don't do the for loop,
372 but rather delegate to continuations the task of repeating the
373 step operation.
374
375 * utils.c (do_all_continuations): Copy the continuation list aside
376 before working on it.
377
378 * target.h (enum inferior_event_type): Add new enum
379 INF_EXEC_CONTINUE.
380
381 * inf-loop.c (inferior_event_handler): Handle new case
382 INF_EXEC_CONTINUE.
383
384 * infrun.c (fetch_inferior_event): If we are in the middle of a
385 'step n' type command, don't say that the execution is complete,
386 but that it will have to continue.
387
3881999-11-30 Kevin Buettner <kevinb@cygnus.com>
389
390 * utils.c (verror): Don't traverse va_list argument twice. Also,
391 removed extraneous va_end() call.
392
3931999-11-29 Michael Snyder <msnyder@cleaver.cygnus.com>
394
395 * infrun.c (handle_inferior_pid): If a child thread stops on a
396 signal that we are ignoring, and GDB silently resumes the child,
397 resume ALL threads (not just the one that got the signal). All
398 threads are stopped, so all must be resumed.
399 (handle_inferior_pid): on detecting a thread context switch,
400 swap infrun_state ONLY if both the old thread and the new one
401 are in the thread list. Otherwise state information will be lost!
402 Problem may arise with flaky back-ends.
403
4041999-11-29 Elena Zannoni <ezannoni@kwikemart.cygnus.com>
405
406 * breakpoint.c (bpstat_stop_status): Don't decrease hit_count
407 in case of a wp that has not changed.
408
409Mon Nov 29 12:14:10 1999 Andrew Cagney <cagney@b1.cygnus.com>
410
411 * gdbtypes.c (init_simd_type): Make static.
412
413 * configure.in (AC_CHECK_HEADERS): Check for <sys/ioctl.h>.
414 * configure, config.h: Re-generate.
415 * inflow.c: Include <sys/ioctl.h>
416
417 * i386b-nat.c: Include "gdbcore.h".
418 * fork-child.c: Include "command.h".
419
420 * remote.c (remote_cisco_section_offsets,
421 remote_start_remote_dummy, store_register_using_P,
422 remote_info_process, remote_cisco_open, remote_cisco_close,
423 readsocket, readtty, minitelnet, remote_cisco_wait,
424 init_remote_async_ops, init_extended_async_remote_ops,
425 set_remote_cmd), infrun.c (default_skip_permanent_breakpoint): Use
426 ISO-C syntax for function definition.
427
428Mon Nov 29 11:28:21 1999 Andrew Cagney <cagney@b1.cygnus.com>
429
430 * stabsread.c: Revert 1999-11-09 Jim Blandy
431 <jimb@zwingli.cygnus.com> and 1999-11-08 Jim Blandy
de57eccd 432 <jimb@cygnus.com>. Broken on non-Linux targets.
c2d11a7d
JM
433
4341999-11-26 Elena Zannoni <ezannoni@kwikemart.cygnus.com>
435
436 * symfile.c (show_load_progress): Add total sent so far to the
437 information passsed to the hook users.
438 (generic_load): Collect total sent so far and pass that to the
439 progress hook.
440
441 * defs.h (show_load_progress): Update.
442
4431999-11-25 Nick Clifton <nickc@cygnus.com>
444
445 * coffread.c (coff_symfile_read): Treat "epoc-pe" targets as "pe"
446 targets.
447 * dbxread.c (dbx_read_symfile): Treat "epoc-pe" targets as "pe"
448 targets.
449
450Wed Nov 24 17:07:28 1999 Andrew Cagney <cagney@b1.cygnus.com>
451
452 * Makefile.in (init.c): Add SUBDIR_INIT_FILES so that sub
453 directories can hook in extra init files.
454
4551999-11-23 Elena Zannoni <ezannoni@kwikemart.cygnus.com>
456
457 * defs.h (show_load_progress): Export.
458
459 * symfile.c (show_load_progress): New hook for download.
460 (generic_load): Collect total size of executable to load.
461 Call progress hook when downloading.
462
463Thu Nov 18 11:54:24 1999 Andrew Cagney <cagney@b1.cygnus.com>
464
465 * arc-tdep.c (codestream_fill): Rewrite byte swap code using
466 function extract_unsigned_integer.
467
468Wed Nov 17 17:01:06 1999 Andrew Cagney <cagney@b1.cygnus.com>
469
470 * arm-xdep.c: #include "arm-opcode.h" -> "opcode/arm.h".
471
4721999-11-22 Jim Blandy <jimb@cygnus.com>
473
474 * Makefile.in (i386-tdep.o): Update list of dependencies.
475
de57eccd 4761999-11-22 Jim Blandy <jimb@cygnus.com>
c2d11a7d
JM
477
478 * config/i386/tm-i386v.h (NUM_REGS, REGISTER_NAMES,
479 REGISTER_BYTES, REGISTER_BYTE, REGISTER_RAW_SIZE,
480 REGISTER_VIRTUAL_SIZE, MAX_REGISTER_RAW_SIZE,
481 MAX_REGISTER_VIRTUAL_SIZE, REGISTER_VIRTUAL_TYPE): Deleted. All
482 of these should inherit identical or compatible values from
483 tm-i386.h, as long as you don't define HAVE_SSE_REGS or
484 HAVE_I387_REGS, which are new anyway.
485
486Mon Nov 22 21:39:27 1999 Andrew Cagney <cagney@b1.cygnus.com>
487
488 * target.c (do_target_signal_to_host): New function. Indicate of
489 the conversion was successful to the caller via an additional
490 parameter.
491 (target_signal_to_host_p): New function. Return non-zero if the
492 GDB signal exists on the host system.
493 (target_signal_to_host): Rewrite. Use do_target_signal_to_host.
494 * target.h (target_signal_to_host_p): Add declaration. Document
495 target_singal vs host signal vs target OS signal confusion.
496
497 From 1999-11-08 Jimmy Guo <guo@cup.hp.com>:
498 * hppah-nat.c (require_notification_of_events): Start by ignoring
499 all signals and then adding back in ones we're interested in.
500
501Thu Nov 18 18:12:48 1999 Andrew Cagney <cagney@b1.cygnus.com>
502
503 * jv-typeprint.c (java_type_print_base), kod-cisco.c
504 (cisco_kod_open), kod.c (kod_set_os), xcoffread.c
505 (process_linenos), symfile.c (add_symbol_file_command),
506 remote-rdi.c (arm_rdi_open, rdilogfile_command), main.c
507 (captured_main), go32-nat.c (go32_create_inferior), exec.c
508 (exec_file_attach), corefile.c (core_file_command,
509 reopen_exec_file): Replace strdup with xstrdup.
510
511Mon Nov 22 12:02:47 1999 Andrew Cagney <cagney@b1.cygnus.com>
512
513 * bcache.c (print_bcache_statistics): Fix printf_filtered
514 arguments.
515 (print_percentage): Make function void.
516
de57eccd 5171999-11-21 Jim Blandy <jimb@cygnus.com>
c2d11a7d
JM
518
519 Make the bcache hash table grow.
520 * bcache.h (BCACHE_NUM_BUCKETS): Delete definition.
521 (struct bcache): Add new element: num_buckets. Make bucket be a
522 pointer to an array, not an array.
523 (free_bcache): New extern declaration.
524 * bcache.c (CHAIN_LENGTH_THRESHOLD): New constant.
525 (expand_hash_table): New function.
526 (bcache): Grow the hash table if the average chain length reaches
527 CHAIN_LENGTH_THRESHOLD.
528 (free_bcache): New function.
529 (print_bcache_statistics): Don't assume that the number of buckets
530 is constant any more.
531 (BSTRING_SIZE): Moved down to just above 'bcache' function, where
532 it's used.
533 * objfiles.c (free_objfile): Call free_bcache, instead of just
534 freeing the bcache's obstack directly.
535 * symfile.c (reread_symbols): Same.
536
de57eccd 5371999-11-20 Jim Blandy <jimb@cygnus.com>
c2d11a7d
JM
538
539 * bcache.c, bcache.h: Rewritten. New version imposes less memory
540 overhead, and has a more effective hash function, so it's probably
541 faster, too.
542
543 * config/nm-linux.h: No need to check whether __STDC__ is
544 #defined --- GDB requires ANSI C now.
545
546 * config/i386/nm-linux.h (linuxthreads_pid_to_str,
547 linuxthreads_prepare_to_proceed): Delete declarations --- they're
548 provided by config/nm-linux.h now.
549
5501999-11-19 Elena Zannoni <ezannoni@kwikemart.cygnus.com>
551
552 * top.c (print_command_lines): Remove unused var.
553
5541999-11-19 Jim Kingdon <kingdon@redhat.com>
555
556 Patch applied by Jim Blandy <jimb@cygnus.com>:
557
558 Enable threads for all linux architectures:
559 * config/nm-linux.h: New file.
560 config/alpha/nm-linux.h, config/i386/nm-linux.h,
561 config/m68k/nm-linux.h, config/sparc/nm-linux.h: Use it.
562 * config/tm-linux.h: New file.
563 * config/i386/tm-linux.h, config/m68k/tm-linux.h,
564 config/sparc/tm-linux.h, config/alpha/tm-alphalinux.h: Use it.
565 * config/m68k/linux.mh, config/sparc/linux.mh,
566 config/alpha/alpha-linux.mh: Add linux-thread.o.
567
5681999-11-18 Tom Tromey <tromey@cygnus.com>
569
570 * tracepoint.h (get_tracepoint_by_number): Updated declaration.
571 * tracepoint.c (trace_pass_command): Better error message. Fixed
572 logic when `all' not specified.
573 (get_tracepoint_by_number): Added `optional_p' argument. Fixed
574 all callers.
575
576Wed Nov 17 17:40:30 1999 Andrew Cagney <cagney@b1.cygnus.com>
577
578 * findvar.c (SWAP_FLOATING): Delete macro. Unused.
579
4ce44c66
JM
5801999-11-16 Mark Salter <msalter@cygnus.com>
581
582 * monitor.c (monitor_supply_register): Initialize value to zero.
583
5841999-11-15 Eli Zaretskii <eliz@is.elta.co.il>
585
586 (Patches applied by Jim Blandy <jimb@zwingli.cygnus.com>)
587
588 Change DJGPP target use the common register layout in
589 config/i386/tm-i386.h.
590 * config/i386/tm-go32.h: #include "i386/tm-i386.h", not
591 "i386/tm-i386v.h".
592 (HAVE_I387_REGS): Define.
593 (HAVE_SSE_REGS): Undefine.
594 (NUM_FREGS, NUM_REGS, REGISTER_NAMES, FP_REGNUM, SP_REGNUM,
595 PS_REGNUM, PC_REGNUM, FP0_REGNUM, FPC_REGNUM, FPCWD_REGNUM,
596 FPSWD_REGNUM, FPTWD_REGNUM, FPIPO_REGNUM, FPIPS_REGNUM,
597 FPOOS_REGNUM, FPOPS_REGNUM, REGISTER_BYTES, REGISTER_BYTE,
598 REGBYTE_0, REGBYTE_10 REGBYTE_16, REGBYTE_24, REGBYTE_29,
599 REGISTER_RAW_SIZE, REGISTER_VIRTUAL_SIZE, MAX_REGISTER_RAW_SIZE,
600 MAX_REGISTER_VIRTUAL_SIZE, REGISTER_CONVERTIBLE): Definitions
601 deleted.
602 (i387_to_double, double_to_i387): Declarations deleted.
603 (REGISTER_CONVERT_TO_VIRTUAL, REGISTER_CONVERT_TO_RAW,
604 REGISTER_VIRTUAL_TYPE): Use definitions from
605 config/i386/tm-i386.h, unless LD_I387 is #defined.
606
607 * go32-nat.c (go32_fetch_registers, store_register)
608 (go32_create_inferior, init_go32_ops): Replace fatal with
609 internal_error.
610 (sig_map): Map exception 7 to TARGET_SIGNAL_EMT.
611
612 * utils.c (notice_quit): Doc fixes.
613
6141999-11-15 Kevin Buettner <kevinb@cygnus.com>
615
616 * gdbserver/server.h (initialize_low): Declare this target
617 specific function.
618 * gdbserver/server.c (main): Call initialize_low.
619 * gdbserver/low-hppabsd.c, gdbserver/low-linux.c,
620 gdbserver/low-sim.c, gdbserver/low-sparc.c, gdbserver/low-sun3.c
621 (initialize_low): Renamed from initialize. Also removed
622 initialization of inferior_pid.
623 (have_inferior_p): Removed.
624 * gdbserver/low-lynx.c (initialize_low): New function.
625
6261999-11-12 Fernando Nasser <fnasser@totem.to.cygnus.com>
627
628 * remote-rdi.c: Fix indentation accordingly to GNU standards.
629
630Thu Oct 28 00:28:51 1999 Andrew Cagney <cagney@b1.cygnus.com>
631
632 * d10v-tdep.c (d10v_gdbarch_init): Make the d10v:ts3 the default.
633
634Tue Oct 26 09:57:29 1999 Andrew Cagney <cagney@b1.cygnus.com>
635
636 * gdbarch.sh: Re-sync with Cagney's earlier const change.
637
638Sun Oct 24 20:07:31 1999 Andrew Cagney <cagney@b1.cygnus.com>
639
640 * d10v-tdep.c (struct gdbarch_tdep): Replace nr_a_regs,
641 imap0_regnum, nr_imap_regs, dmap0_regnum, with dmap_register and
642 imap_register.
643 (R0_REGNUM, LR_REGNUM, PSW_REGNUM, NR_IMAP_REGS, NR_A_REGS):
644 Convert to enums.
645 (TS2_NR_A_REGS, TS2_NR_IMAP_REGS, TS3_NR_IMAP_REGS,
646 TS3_NR_A_REGS): Delete.
647 (d10v_ts2_dmap_register, d10v_ts3_dmap_register,
648 d10v_ts2_imap_register, d10v_ts3_imap_register): New functions.
649 (d10v_dmap_register, d10v_imap_register,
650 d10v_ts2_register_sim_regno, d10v_ts3_register_sim_regno,
651 show_regs): Update.
652 (remote_d10v_translate_xfer_address): Rewrite. Use
653 sim_d10v_translate_addr to translate addresses.
654 (d10v_gdbarch_init): Initialize tdep members dmap_register and
655 imap_register.
656
657Sun Oct 24 00:12:44 1999 Andrew Cagney <cagney@b1.cygnus.com>
658
659 * d10v-tdep.c (struct gdbarch_tdep): Declare.
660 (NR_IMAP_REGS, NR_DMAP_REGS, A0_REGNUM, NR_A_REGS): Redefine using
661 value in gdbarch_tdep.
662 (d10v_dmap_register, d10v_imap_register): Ditto.
663 (d10v_ts2_register_name, d10v_ts2_register_sim_regno): Rename
664 d10v_register_name and d10v_register_sim_regno
665 (enum ts3_regnums, d10v_ts3_register_name,
666 d10v_ts3_register_sim_regno, d10v_register_sim_regno): New.
667 (d10v_gdbarch_init): Configure registers and G packet according to
668 d10v/ts2 and d10v/ts3.
669
670Sat Oct 23 21:28:02 1999 Andrew Cagney <cagney@b1.cygnus.com>
671
672 * config/d10v/tm-d10v.h (IMAP0_REGNUM, IMAP1_REGNUM, DMAP_REGNUM):
673 Delete macro.
674 (R0_REGNUM, LR_REGNUM, PSW_REGNUM, A0_REGNUM): Move from here.
675 * d10v-tdep.c: To here.
676
677 * d10v-tdep.c: (NR_DMAP_REGS, NR_IMAP_REGS, NR_A_REGS): Define.
678 (d10v_dmap_register, d10v_imap_register): New functions.
679 (remote_d10v_translate_xfer_address): Make static.
680 (d10v_register_virtual_size): Use TYPE_LENGTH of
681 REGISTER_VIRTUAL_TYPE.
682 (d10v_register_byte, do_d10v_pop_frame,
683 remote_d10v_translate_xfer_address, show_regs,
684 d10v_register_raw_size): Ditto.
685 (d10v_register_virtual_type): Ditto. Use explicitly sized builtin
686 types.
687
688Sat Oct 23 19:08:39 1999 Andrew Cagney <cagney@b1.cygnus.com>
689
690 * d10v-tdep.c: Include "sim-d10v.h".
691 (enum ts2_regnums): Declare.
692 (d10v_register_sim_regno): New function.
693
694 * config/d10v/tm-d10v.h: Delete pre multi-arch code.
695 (REGISTER_SIM_REGNO): Define.
696 (d10v_register_sim_regno): Declare.
697
698Sat Oct 23 16:39:34 1999 Andrew Cagney <cagney@b1.cygnus.com>
699
700 * gdbarch.c (initialize_current_architecture): Make ``choice''
701 const.
702
703Wed Nov 10 16:10:22 1999 Jeffrey A Law (law@cygnus.com)
704
705 * hppa-tdep.c (hppa_fix_call_dummy): Fix typo in error message.
706
707Wed Nov 10 16:47:06 1999 Andrew Cagney <cagney@b1.cygnus.com>
708
709 * utils.c (error_last_message): Use gdb_file_xstrdup.
710
711 * defs.h (verror, internal_verror): Declare.
712
713 * utils.c (verror, internal_error): New functions.
714 (error, internal_error): Use verror / internal_verror.
715 (error_stream): Use gdb_file_xstrdup. Correctly handle %s in
716 error message body.
717 (error_init): Use mem_fileopen.
718
719 * corefile.c (memory_error): Use mem_fileopen instead of
720 tui_sfileopen. Don't call error_begin.
721 * remote-sim.c (gdb_os_error): Rewrite using verror. Don't call
722 error_begin.
723
724Wed Nov 10 14:21:43 1999 Andrew Cagney <cagney@b1.cygnus.com>
725
726 * defs.h (gdb_file_xstrdup): New function.
727 * utils.c (gdb_file_xstrdup, do_gdb_file_xstrdup): Implement.
728
7291999-11-09 Stan Shebs <shebs@andros.cygnus.com>
730
731 * exec.c (exec_file_attach), irix5-nat.c, osfsolib.c, solib.c
732 (info_sharedlibrary_command), pa64solib.c
733 (pa64_sharedlibrary_info_command), somsolib.c
734 (som_sharedlibrary_info_command): Replace "exec file" with
735 "executable file" in messages.
736
7371999-11-09 Jim Blandy <jimb@zwingli.cygnus.com>
738
739 Finish the job attempted by the previous change.
740 * stabsread.c (read_range_type): Make n2 and n3 LONGEST. Adjust
741 the various tests that check for maximum values, bit counts, etc.
742 In the long run, it might have been simpler just to give GDB bignums.
743
744Tue Nov 9 18:34:13 1999 Andrew Cagney <cagney@amy.cygnus.com>
745
746 * defs.h (gdb_file_put): Add parameter write.
747 (gdb_file_put_method_ftype): New typedef.
748 * utils.c (gdb_file_put, mem_file_put, tui_file_put,
749 null_file_put): Update.
750
751 * utils.c (struct gdb_file): Add field magic.
752 (gdb_file_new): Initialize.
753 (gdb_file_data): Verify.
754
755 * utils.c (mem_file_fputs): Delete. Replaced by.
756 (mem_file_write): New function. Rewrite mem_file.
757 (mem_file_new): Update.
758
759Tue Nov 9 17:51:12 1999 Andrew Cagney <cagney@b1.cygnus.com>
760
761 * remote-sim.c (gdb_os_write_stdout): Use gdb_file_write.
762 (gdb_os_flush_stdout): Flush gdb_stdtarg instead of gdb_stdout.
763
764Tue Nov 9 15:33:43 1999 Andrew Cagney <cagney@b1.cygnus.com>
765
766 * Makefile.in (procfs.o): Don't compile with -Werror for moment.
767 * sol-thread.c (info_cb): Move assignments to outside of if
768 statement.
769 (info_cb): Use paddr when printing addresses.
770
de57eccd 7711999-11-08 Jim Blandy <jimb@cygnus.com>
4ce44c66
JM
772
773 * defs.h (ULONGEST_MAX, LONGEST_MAX): New definitions.
774 * stabsread.c (read_huge_number): Parse and return LONGEST values.
775
11cf8741
JM
7761999-11-08 Mark Salter <msalter@cygnus.com>
777
778 * utils.c (floatformat_to_doublest): Fix conversion of denormals.
779
780Mon Nov 8 20:14:13 1999 Andrew Cagney <cagney@amy.cygnus.com>
781
782 * remote.c (get_memory_read_packet_size): For moment limit read
783 size to PBUFSIZ.
784 (putpkt_binary): Remove check on packet size. Allocate ``cnt +
785 6'' characters for output buffer.
786 (get_memory_packet_size): When packet size is ``fixed'' and the
787 size is zero, return MAX_REMOTE_PACKET_SIZE. Check that packets
788 are at least MIN_REMOTE_PACKET_SIZE.
789 (set_memory_packet_size): Print usage when ``args'' is NULL.
790
791Mon Nov 8 18:18:07 1999 Andrew Cagney <cagney@b1.cygnus.com>
792
793 * defs.h, utils.c (gdb_file_deallocate): Delete.
794 * corefile.c (memory_error): Use make_cleanup_gdb_file_delete.
795
796 * defs.h, utils.c (gdb_file_init_astring): Delete.
797
798 * defs.h, utils.c (tui_file_get_strbuf): Rename
799 gdb_file_get_strbuf.
800 (tui_file_adjust_strbuf): Rename gdb_file_adjust_strbuf.
801 * utils.c (error_stream, error_last_message): Update.
802
803Mon Nov 8 16:28:00 1999 Andrew Cagney <cagney@b1.cygnus.com>
804
805 * defs.h, utils.c (gdb_fclose): Delete.
806 * defs.h (make_cleanup_gdb_file): Declare.
807 * utils.c (make_cleanup_gdb_file_delete, do_gdb_file_delete): New
808 functions.
809
810 * symmisc.c (maintenance_print_symbols,
811 maintenance_print_psymbols, maintenance_print_msymbols): Use
812 make_cleanup_gdb_file_delete.
813 * serial.c (do_serial_close): Use gdb_file_delete.
814
815Mon Nov 8 14:16:32 1999 Andrew Cagney <cagney@b1.cygnus.com>
816
817 * defs.h (gdb_file_write_ftype, set_gdb_file_write,
818 gdb_file_write): Declare.
819
820 * utils.c (struct gdb_file): Add to_write member.
821 (gdb_file_write, set_gdb_file_write): New functions.
822 (gdb_file_new): Initialize the write method.
823 (null_file_write): New function.
824 (null_file_fputs, null_file_write): ``write'' calls ``fputs'' and
825 ``fputs'' calls ``write'' when the other is implemented.
826 (stdio_file_new): Initialize write method.
827 (stdio_file_write): New function.
828
829 * utils.c (putchar_unfiltered, fputc_unfiltered): Use
830 gdb_file_write.
831
832Thu Nov 4 11:59:24 1999 Andrew Cagney <cagney@b1.cygnus.com>
833
834 * remote.c (get_memory_packet_size, set_memory_packet_size,
835 build_memory_packet_size): New functions. Set / compute / update
836 the size of a memory read / write packet.
837 (set_memory_read_packet_size, set_memory_write_packet_size): New
838 functions. Verify changes to the memory read / write packet size.
839 (prefered_memory_write_packet_size,
840 current_memory_write_packet_size, prefered_memory_read_packet_size,
841 current_memory_read_packet_size): New variables.
842 (get_memory_read_packet_size, get_memory_write_packet_size): New
843 functions. Determine the current memory read/write packet size. A
844 function is needed as ``current_register_packet_size'', a variable
845 is used in the calculation.
846 (register_remote_packet_sizes, build_remote_packet_sizes):
847 Initialize packet sizes according the current architecture.
848 (remote_fetch_registers, remote_write_bytes, remote_read_bytes,
849 build_remote_gdbarch_data): Update.
850 (_initialize_remote): Add the commands ``set remote
851 memory-read-packet-size'' and ``set remote
852 memory-write-packet-size''. Deprecate ``set remotepacketsize''.
853
854Sun Nov 7 18:09:54 1999 Andrew Cagney <cagney@b1.cygnus.com>
855
856 * target.h, target.c (target_load): Replace macro with a function.
857
858 * config/i960/tm-nindy960.h (ADDITIONAL_OPTION_HANDLER): Rewrite
859 replacing SET_TOP_LEVEL with catch_command_errors.
860 (nindy_open): Add extern declaration.
861
862 * top.h (top_level_val, SET_TOP_LEVEL): Delete.
863 * defs.h (catch_command_errors_ftype, catch_command_errors): Add
864 declarations.
865 * top.c (struct captured_command_args): Declare.
866 (do_captured_command, catch_command_errors): New functions. Call
867 the command function via catch_errors.
868 (catch_errors): Add more comments.
869
870 * main.c (struct captured_main_args): Define.
871 (captured_main): New. Rewrite main. Replace SET_TOP_LEVEL with
872 calls to catch_command_errors. Delete calls to do_cleanups which
873 are now handled by catch_errors. Call the command loop via
874 captured_command_loop and catch_errors.
875 (main): Move code body to captured_main. Call captured_main via
876 catch_errors.
877 (captured_command_loop): New function. Wrap call to command_loop.
878
8791999-11-05 Elena Zannoni <ezannoni@kwikemart.cygnus.com>
880
881 * procfs.c (unconditionally_kill_inferior) (init_procinfo)
882 (create_procinfo) (procfs_exit_handler) (proc_set_exec_trap)
883 (do_attach) (do_detach) (procfs_wait) (set_proc_siginfo)
884 (procfs_resume) (info_proc_mappings)
885 (modify_run_on_last_close_flag) (procfs_lwp_creation_handler)
886 (procfs_thread_alive): Remove unused variables, conditionalize
887 vars declarations to eliminate compiler warnings.
888
889Fri Nov 5 16:32:04 1999 Andrew Cagney <cagney@b1.cygnus.com>
890
891 * inferior.h (CALL_DUMMY_ADDRESS, CALL_DUMMY_START_OFFSET,
892 CALL_DUMMY_BREAKPOINT_OFFSET, CALL_DUMMY_LENGTH,
893 CALL_DUMMY_STACK_ADJUST, CALL_DUMMY_WORDS,
894 SIZEOF_CALL_DUMMY_WORDS, PUSH_DUMMY_FRAME, FIX_CALL_DUMMY,
895 STORE_STRUCT_RETURN), d10v-tdep.c (print_insn), d30v-tdep.c
896 (print_insn), target.h (SOFTWARE_SINGLE_STEP): Call internal_error
897 instead of abort.
898
899 * utils.c (stdio_file_delete, stdio_file_flush, stdio_file_fputs,
900 stdio_file_isatty, tui_file_delete, tui_file_isatty,
901 tui_file_rewind, tui_file_put, gdb_file_init_astring,
902 gdb_file_get_strbuf, gdb_file_adjust_strbuf): Call internal_error
903 instead of error.
904
9051999-11-04 Kevin Buettner <kevinb@cygnus.com>
906
907 * remote.c (build_remote_gdbarch_data): Set remote_address_size...
908 (_initialize_remote) ...but don't set it here. Also, tie
909 remote_address_size to the target architecture via call to
910 register_gdbarch_swap().
911
9121999-11-04 Jeff Holcomb <jeffh@cygnus.com>
913
914 * remote-rdp.c (send_rdp): Fix typo.
915
9161999-11-04 Michael Snyder <msnyder@cleaver.cygnus.com>
917
918 * breakpoint.c (commands_command): remove unprotected ref to
919 args pointer (which may be null).
920
9211999-11-04 Elena Zannoni <ezannoni@kwikemart.cygnus.com>
922
923 * infcmd.c (print_return_value): New function. Print return value
924 from finish command.
925 (finish_command_continuation): Call print_return_value().
926 (finish_command): Ditto.
927
9281999-11-04 Elena Zannoni <ezannoni@kwikemart.cygnus.com>
929
930 * infrun.c (handle_inferior_event): Add calls to print_stop_reason()
931 for end of stepping range cases.
932
933Thu Nov 4 17:46:36 1999 Andrew Cagney <cagney@b1.cygnus.com>
934
935 * event-loop.c (gdb_do_one_event): Delete SET_TOP_LEVEL call.
936 Move error code to start_event_loop.
937 (start_event_loop): Call gdb_do_one_event via catch_errors.
938 Handle caught errors.
939
940Thu Nov 4 17:36:27 1999 Andrew Cagney <cagney@b1.cygnus.com>
941
942 * breakpoint.c (get_number): Delete static declaration.
943
9441999-11-03 Michael Snyder <msnyder@cleaver.cygnus.com>
945
946 * breakpoint.c (map_breakpoint_numbers): use a match count
947 instead of a goto.
948
9491999-11-03 Nick Clifton <nickc@cygnus.com>
950
951 * config/mcore/tm-mcore.h (TARGET_BYTE_ORDER_DEFAULT): Change to
952 little endian.
953
9541999-11-02 Michael Snyder <msnyder@cleaver.cygnus.com>
955
956 * target.h (target_new_objfile) replace macro with function pointer
957 hook. Any module needing notification of new objfiles may claim
958 this hook. Multiple notification clients must cooperate by saving
959 the previous pointer (if any) and calling it.
960 * sol-thread.c (_initialize_sol_thread): point new_objfile hook at
961 sol_thread_new_objfile. Save old pointer if any.
962 (sol_thread_new_objfile): call old owner of event hook if any.
963 * hpux-thread.c (_initialize_hpux_thread, hpux_thread_new_objfile):
964 ditto.
965 * linux-thread.c (_initialize_linux_thread, linux_thread_new_objfile):
966 ditto.
967 symfile.c (symbol_file_add, clear_symtab_users) call the new
968 function pointer hook, instead of the macro.
969 * config/sparc/nm-sun4sol2.h: remove define of target_new_objfile.
970 * config/pa/nm-hppah.h: ditto.
971 * config/i386/nm-i386sol2.h: ditto.
972 * config/i386/nm-linux.h: ditto.
973
9741999-11-02 Tom Tromey <tromey@cygnus.com>
975
976 * NEWS: Mention breakpoint ranges.
977
9781999-11-02 Fernando Nasser <fnasser@totem.to.cygnus.com>
979
980 * rdi-share/devsw.c (openLogFile): Change a call to setlinebuf()
981 to an equivalent call to setvbuf() to prevent an unresolved
982 reference when building on cygwin.
983
9841999-11-02 Elena Zannoni <ezannoni@kwikemart.cygnus.com>
985
986 * infrun.c (inferior_stop_reason): New enum, explicitly name the
987 resons for which the inferior stops.
988 (handle_inferior_event): Case TARGET_WAITKIND_EXITED: replace
989 printf's with call to print_stop_reason(). Case
990 TARGET_WAITKIND_SIGNALLED: Same. When stopped by random signal:
991 Same.
992 (print_stop_reason): New static function. Print relevant messages
993 when stopping.
994
9951999-11-02 Fernando Nasser <fnasser@totem.to.cygnus.com>
996
997 * rdi-share/Makefile.in: Rename dependency from bytesex.o to
998 angel_bytesex.o.
999
10001999-11-02 Fernando Nasser <fnasser@totem.to.cygnus.com>
1001
1002 * kod.c: Remove prototype for show_kod() which is no longer used.
1003
5c44784c
JM
10041999-11-01 Michael Snyder <msnyder@cygnus.com>
1005 Tom Tromey <tromey@cygnus.com>
1006
1007 * tracepoint.h (get_tracepoint_by_number): Updated declaration.
1008 * tracepoint.c (get_tracepoint_by_number): Added `multi_p'
1009 argument. Now uses get_number_or_range and get_number.
1010 (trace_pass_command): Allow a tracepoint range.
1011 * breakpoint.h (get_number, get_number_or_range): Declare.
1012 * breakpoint.c (get_number_trailer): New function.
1013 (get_number): Rewrote to use get_number_trailer.
1014 (get_number_or_range): New function.
1015 (condition_command): Check `get_number' return value.
1016 (commands_command): Likewise.
1017 (ignore_command): Likewise.
1018 (map_breakpoint_numbers): Use get_number_or_range.
1019
10201999-11-01 Fernando Nasser <fnasser@totem.to.cygnus.com>
1021
1022 * remote-rdi.c (_initialize_remote_rdi): Make log commands
1023 subcommands of maintenance. Remove improper identation from
1024 command documentation.
1025
10261999-11-01 Fernando Nasser <fnasser@totem.to.cygnus.com>
1027
1028 From Grant Edwards <grante@visi.com>:
1029 * rdi-share/etherdrv.c (fetch_ports): Print out additional TCP/IP
1030 port information in ethernet driver if the DEBUG flag is set.
1031 * rdi-share/hostchan.c (Adp_addToQueue): Changed #if statement in
1032 hostchan.c to avoid compiler complaint when DEBUG macro was
1033 undefined.
1034 * rdi-share/unixcomm.c (Unix_ReadSerial): Print system error code
1035 if read() system call fails.
1036
10371999-11-01 Fernando Nasser <fnasser@totem.to.cygnus.com>
1038
1039 * rdi-share/bytesex.h: Deleted. Conflicts with a system header file
1040 on some systems like Linux Red Hat 5.2.
1041 * rdi-share/angel_bytesex.h: New file. Replaces the above.
1042 * rdi-share/bytesex.c: Deleted. Name changed to match the header
1043 mentioned above (this is the implementation file).
1044 * rdi-share/angel_bytesex.c: New file. Replaces the above.
1045 * rdi-share/Makefile.am: Reflect above changes.
1046 * rdi-share/Makefile.in: Reflect above changes.
1047
10481999-11-01 Jimmy Guo <guo@cup.hp.com>
1049
1050 * annotate.c (breakpoints_changed, annotate_ignore_count_change,
1051 annotate_stopped): Provide annotation for breakpoint ignore_count
1052 changes but only provide once at annotate_stopped time for
1053 sucessive ignore_count triggered breakpoint changes, to make GUIs
1054 happy yet lazy.
1055 * annotate.h (annotate_ignore_count_change): Declare.
1056 * breakpoint.c (bpstat_stop_status): Call
1057 annotate_ignore_count_change when ignore_count changes.
1058
10591999-11-01 Fernando Nasser <fnasser@totem.to.cygnus.com>
1060
1061 From Grant Edwards <grante@visi.com>:
1062 * rdi-share/ardi.c (HandleStoppedMessage): Changed code that
1063 handles the "stop" message so that unrecognized errors are
1064 returned as "Error" rather than "NoError". The old code resulted
1065 in some error conditions not being reported to the user.
1066
10671999-11-01 Fernando Nasser <fnasser@totem.to.cygnus.com>
1068
1069 From Grant Edwards <grante@visi.com>:
1070 * remote-rdi.c (arm_rdi_open): Added a call to Adp_CloseDevice()
1071 before attempting to open a connection. This allows the user to
1072 issue the "target rdi" command multiple times (in case the user
1073 needs to change options or re-initialize the link).
1074
10751999-11-01 Fernando Nasser <fnasser@totem.to.cygnus.com>
1076
1077 From Grant Edwards <grante@visi.com>:
1078 * rdi-share/endian.h: Deleted. Name clash with
1079 /usr/include/endian.h. This was causing the wrong byte order to
1080 be used by htons() in the RDI Ethernet driver.
1081 * rdi-share/angel_endian.h: New file. Replaces the above.
1082 * rdi-share/ardi.c: Replace include to reflect the above change.
1083 * rdi-share/etherdrv.c: Ditto.
1084 * rdi-share/hsys.c: Ditto.
1085 * rdi-share/msgbuild.c: Ditto.
1086 * rdi-share/params.c: Ditto.
1087 * rdi-share/rx.c: Ditto.
1088 * rdi-share/tx.c: Ditto.
1089 * rdi-share/Makefile.am: Reflect above changes.
1090 * rdi-share/Makefile.in: Reflect above changes.
1091
10921999-11-01 Fernando Nasser <fnasser@totem.to.cygnus.com>
1093
1094 From Grant Edwards <grante@visi.com>:
1095 * remote-rdi.c (_initialize_remote_rdi): Added command
1096 rdilogenable. Allows the user to log ADP packets that are
1097 exchanged between gdb and the target. Both the raw packets are
1098 shown and some minimal decoding is attempted. Default state is
1099 disabled.
1100 (_initialize_remote_rdi): Added command rdilogfile. Allows the
1101 user to specify the filename to which the ADP packet log is to be
1102 written. Default state is "rdi.log".
1103 (rdilogenable_command): New function. Related to rdilogenable.
1104 (rdilogfile_command): New function. Related to rdilogfile.
1105 * rdi-share/devsw.c (openLogFile, closeLogFile,
1106 DevSW_SetLogEnable, DevSW_SetLogfile, dumpPacket): New
1107 functions. Implement logging.
1108 (DevSW_Read): Log if requested.
1109 (DevSW_Write): Log if requested.
1110 * rdi-share/devsw.h: Add prototypes for DevSW_SetLogfile and
1111 DevSW_SetLogEnable.
1112 * rdi-share/hostchan.c (Adp_SetLogEnable, Adp_SetLogfile): New
1113 functions. Related to rdilogenable and rdilogfile.
1114 * rdi-share/hostchan.h: Add prototypes for the above functions.
1115
11161999-11-01 Fernando Nasser <fnasser@totem.to.cygnus.com>
1117
1118 From Grant Edwards <grante@visi.com>:
1119 * remote-rdi.c (arm_rdi_open): Added code to split the arguments
1120 to the 'target rdi' command at the first space. The first word is
1121 passed to Adp_OpenDevice as the device name, the tail is passed as
1122 the "arguments" parameter. This allows user specified baud rates
1123 -- among other things that still need to be documented [e.g. (gdb)
1124 target rdi /dev/ttyS1 19200]. NB: With very limited testing, the
1125 ARM Embedded-ICE seems to run at 19.2K (though it is reported to
1126 be unreliable above 9600), and the EPI Jeeni seems to run at
1127 38.4K.
1128
11291999-11-01 Fernando Nasser <fnasser@totem.to.cygnus.com>
1130
1131 From Grant Edwards <grante@visi.com>:
1132 * remote-rdi.c (_initialize_remote_rdi): Added the boolean
1133 set/show variable rdiromatzero. Should be set to true if the
1134 target has ROM at address 0. If true, then gdb will not tell the
1135 target to trap fetches to interrupt vectors (which are located at
1136 address 0). Using the Angel monitor, attempting to set
1137 breakpoints in ROM is an error. Using JTAG debugging of the
1138 ARM7TDMI, attempting to set more than two breakpoints in ROM is an
1139 error. Default state is false (vectors will be trapped) -- used to
1140 be hardwired false.
1141
11421999-11-01 Fernando Nasser <fnasser@totem.to.cygnus.com>
1143
1144 From Grant Edwards <grante@visi.com>:
1145 * remote-rdi.c (_initialize_remote_rdi): Added the boolean
1146 set/show variable rdiheartbeat. This enables or disables ADP
1147 link-check "heartbeat" packets sent by the host to the target.
1148 Heartbeat packets can cause both the ARM Embedded-ICE and the EPI
1149 Jeeni to malfunction: If a heartbeat packet is received by the
1150 target while it is sending a packet, that packet will be aborted,
1151 and the ADP protocol engine then gets very confused. Default state
1152 is off -- used to hardwired on.
1153
11541999-10-29 Kevin Buettner <kevinb@cygnus.com>
1155
1156 * i386-linux-nat.c (dummy_sse_values): Also define for systems
1157 without PTRACE_GETXFPREGS.
1158
11591999-10-29 Jim Blandy <jimb@zwingli.cygnus.com>
1160
1161 Hardware watchpoint fix from Eli Zaretskii <eliz@gnu.org>:
1162
1163 * breakpoint.c (insert_breakpoints): Fetch the value of the
1164 expression we need to watch. If it's a lazy memory lvalue, then
1165 we need to fetch it now, before we start the inferior again.
1166 (insert_breakpoints, remove_breakpoint, bpstat_stop_status,
1167 can_use_hardware_watchpoint): Only those values representing
1168 memory we actually fetched need to be watched.
1169
11701999-10-29 Elena Zannoni <ezannoni@kwikemart.cygnus.com>
1171
1172 * breakpoint.h (bpstat_print): Return 'enum print_stop_action',
1173 not 'int'.
1174
11751999-10-29 Jim Blandy <jimb@zwingli.cygnus.com>
1176
1177 * acconfig.h: Fix entries for HAVE_STRUCT_SAVE_STATE_T,
1178 HAVE_STRUCT_MEMBER_SS_WIDE, and HAVE_PTRACE_GETXFPREGS.
1179 * config.h.in: Regenerated.
1180
11811999-10-28 Jim Blandy <jimb@zwingli.cygnus.com>
1182
1183 Fixes for warnings from Andreas Jaeger <aj@suse.de>.
1184 * linux-thread.c (linuxthreads_sig_restart,
1185 linuxthreads_sig_cancel, linuxthreads_sig_debug): Add missing
1186 initializers to avoid gcc warnings.
1187 (resume_thread): Add braces as recommended by gcc -Wparentheses.
1188 (stop_thread): Likewise.
1189 (linuxthreads_wait): Likewise.
1190 (linuxthreads_find_trap): Likewise.
1191
11921999-10-28 Elena Zannoni <ezannoni@kwikemart.cygnus.com>
1193
1194 * infcmd.c: Fix typo.
1195
de57eccd 11961999-10-28 Jim Blandy <jimb@cygnus.com>
5c44784c
JM
1197
1198 * gdbtypes.c (init_simd_type): The upper bound to
1199 create_range_type is inclusive, not exclusive.
1200
4ce44c66
JM
1201 Add preliminary support for the Pentium-III's Streaming SIMD
1202 Extensions --- specifically, the ability to read the XMM
1203 registers.
1204 * Configure.in: Check for PTRACE_GETXFPREGS, and #define
5c44784c
JM
1205 HAVE_PTRACE_GETXFPREGS if we have it.
1206 * acconfig.h: Add entry for HAVE_PTRACE_GETXFPREGS.
1207 * configure, config.in: Regenerated.
1208 * config/i386/tm-linux.h (HAVE_SSE_REGS): #define, iff the
1209 configure script #defined HAVE_PTRACE_GETXFPREGS.
1210 (REGISTER_VIRTUAL_TYPE): Provide the proper types for the pointer
1211 registers and the SSE registers.
1212 * i386-linux-nat.c (GETREGS_SUPPLIES, GETFPREGS_SUPPLIES,
1213 GETXFPREGS_SUPPLIES): New macros.
1214 (have_ptrace_getxfpregs): New variable.
1215 (FPREGSET_T_FPREG_ADDR): Renamed from FPREGSET_T_FPREG_OFFSET.
1216 (supply_fpregset, convert_to_fpregset): Callers changed.
1217 (supply_xfpregset, convert_to_xfpregset, fetch_xfpregs,
1218 store_xfpregs, dummy_sse_values): New functions.
1219 (fetch_inferior_registers, store_inferior_registers): Use the
1220 *_SUPPLIES macros to decide how to fetch a given register. Use
1221 {fetch,store}_xfpregs and dummy_sse_values to provide access to
1222 the SSE registers, on systems where they are present.
1223
12241999-10-28 Kevin Buettner <kevinb@cygnus.com>
1225
1226 * gdbserver/gdbreplay.c (config.h, errno.h): Include.
1227 (perror_with_name): Don't declare sys_nerr, sys_errlist, or errno
1228 when STDC_HEADERS is defined.
1229 * gdbserver/utils.c (STDC_HEADERS): Likewise.
1230
1231 * gdbserver/low-hppabsd.c, gdbserver/low-linux.c,
1232 gdbserver/low-lynx.c, gdbserver/low-sim.c, gdbserver/low-sparc.c,
1233 gdbserver/low-sun3.c (my_registers): Declare.
1234 (registers): Changed from array type to pointer type in order
1235 to match declaration in inferior.h in main gdb sources.
1236 * gdbserver/server.h (registers): Likewise.
1237 * gdbserver/remote-utils.c (outreg): Removed declaration of
1238 registers[].
1239
1240 * gdbserver/low-linux.c (fetch_register): Changed PTRACE_PEEKUSR to
1241 PTRACE_PEEKUSER. [Note the missing 'E'.]
1242 (store_inferior_registers): Likewise for PTRACE_POKEUSER.
1243
1244 * gdbserver/low-linux.c (sys/ptrace.h): Move include to
1245 avoid conflict with #defines coming from <sys/user.h>.
1246 (sys/reg.h): Only include when HAVE_SYS_REG_H is defined.
1247 (PTRACE_XFER_TYPE): Provide a default type in case
1248 the target doesn't define it.
1249 (fetch_register, read_inferior_memory, write_inferior_memory):
1250 Use PTRACE_XFER_TYPE instead of int for ptrace() transfers.
1251 (I386_GNULINUX_TARGET): Use #ifdef with this symbol instead
1252 of assuming it's an x86 target when it's not a m68k target.
1253 (i386_register_raw_size, i386_register_byte): Define these arrays
1254 to match other changes that've been occuring to the x86 target
1255 in the main gdb sources.
1256 (initialize_arch): New (static) function for doing target arch
1257 specific initializations.
1258
1259 * gdbserver/server.h (MAXBUFBYTES, PBUFSIZ): New defines
1260 [actually stolen from remote.c].
1261 * gdbserver/remote-utils.c (putpkt): Use PBUFSIZ to make
1262 sure that buffer is big enough.
1263 * gdbserver/server.c (main): Ditto.
1264
1265 * gdbserver/remote-utils.c (outreg): Allow register numbers
1266 bigger than 255.
1267 (prepare_resume_reply): Provide alternate mechanism,
1268 GDBSERVER_RESUME_REGS, for defining list of registers to send
1269 to gdb.
1270 * gdbserver/Makefile.in (INTERNAL_CFLAGS): Swapped order of
1271 INCLUDE_CFLAGS and BFD_CFLAGS to ensure that gdb's config.h
1272 gets found before bfd's config.h. Also added -DGDBSERVER
1273 switch.
1274 (INCLUDE_CFLAGS): Added -I.. .
1275
12761999-10-27 Nick Clifton <nickc@cygnus.com>
1277
1278 * arm-tdep.c (THUMB_BE_BREAKPOINT): Change to 0xbebe.
1279 (THUMB_LE_BREAKPOINT): Change to 0xbebe.
1280
e514a9d6
JM
1281Mon Oct 25 18:22:06 1999 Andrew Cagney <cagney@b1.cygnus.com>
1282
1283 * remote.c: Document future of compare_sections_command.
1284 (remote_insert_breakpoint, remote_remove_breakpoint,
1285 remote_insert_watchpoint, remote_insert_watchpoint,
1286 remote_remove_watchpoint, remote_insert_hw_breakpoint,
1287 remote_remove_hw_breakpoint): Use alloca instead of GCC's dynamic
1288 array feature.
1289
1290Mon Oct 25 18:08:31 1999 Andrew Cagney <cagney@b1.cygnus.com>
1291
1292 * gdbarch.h (REGISTER_GDBARCH_SWAP): Define.
1293 * gdbarch.sh: Update.
1294
1295Sat Oct 23 16:39:34 1999 Andrew Cagney <cagney@b1.cygnus.com>
1296
1297 * gdbarch.c (initialize_current_architecture): Make ``choice''
1298 const.
1299
13001999-10-22 Tom Tromey <tromey@cygnus.com>
1301
1302 * gdbarch.sh: Updated for gdbarch.[ch] changes.
1303 * top.c (gdb_init): Call initialize_current_architecture.
1304 * gdbarch.h (initialize_current_architecture): Declare.
1305 * gdbarch.c (initialize_current_architecture): New function.
1306
13071999-10-21 Michael Snyder <msnyder@cleaver.cygnus.com>
1308
1309 * utils.c (chars_per_line): fix typo in comment.
1310
13111999-10-21 Elena Zannoni <ezannoni@kwikemart.cygnus.com>
1312
1313 * breakpoint.h (bp_print_how): New enum, used for deciding how to
1314 print bpstat information when we stop, instead of having 3
1315 different functions.
1316 (struct bpstat): Change print_it field to be an enum instead of a
1317 function pointer.
1318
1319 * breakpoint.c (print_it_typical): New name for print_it_normal().
1320 (print_bp_stop_message): New function. High level routine for
1321 printing of why we stopped.
1322 (bpstat_print): Call print_bp_stop_message instead of using the
1323 print_it function pointer.
1324 (print_it_done, print_it_noop): Delete these functions.
1325
13261999-10-21 Elena Zannoni <ezannoni@kwikemart.cygnus.com>
1327
1328 * breakpoint.c (print_it_normal): Reorganize into a switch
1329 statement.
1330
13311999-10-21 Elena Zannoni <ezannoni@kwikemart.cygnus.com>
1332
1333 * Makefile.in (event-top.o): Add dependency on target.h.
1334 * event-top.c: Make dependency on target.h explicit.
1335
1336 * breakpoint.c (bpstat_print): Clean up logic. Remove recursion.
1337 (catch_exec_command_1): Surround with appropriate ifdef's,
1338 to avoid compiler warnings.
1339 (catch_fork_command_1): Ditto.
1340
de57eccd 13411999-10-20 Jim Blandy <jimb@cygnus.com>
e514a9d6
JM
1342
1343 * Makefile.in (dwarf2read.o): Note that this depends on bfd/elf-bfd.h.
1344 (elf_bfd_h): New variable.
1345
de57eccd 13461999-10-19 Jim Blandy <jimb@cygnus.com>
e514a9d6
JM
1347
1348 * config/i386/tm-i386.h (REGISTER_NAMES): Change names of FPU
1349 instruction and operand pointer registers to improve consistency,
1350 following J. T. Conklin's suggestions.
1351
917317f4
JM
13521999-10-18 Elena Zannoni <ezannoni@kwikemart.cygnus.com>
1353
1354 * breakpoint.h: Change return type of field print_it of struct
1355 bpstats to enumeration print_stop_action.
1356 Define new enumeration print_stop_action.
1357
1358 * breakpoint.c (print_it_normal): Change return type to
1359 enumeration type print_stop_action. Handle bp_shlib_event here
1360 instead of in normal_stop().
1361 (bpstat_print): Change return type to enumeration type
1362 print_stop_action.
1363 (print_it_done): Ditto.
1364 (print_it_noop): Ditto.
1365
1366 * infrun.c (is_internal_shlib_eventpoint): Delete this function.
1367 (stopped_for_internal_shlib_event): Delete.
1368 (normal_stop): Move logic to handle bp_shlib_event from here to
1369 print_it_normal(). Use switch to handle return value from
1370 bpstat_print().
1371
1372Mon Oct 18 17:32:51 1999 Andrew Cagney <cagney@b1.cygnus.com>
1373
1374 * symfile.c (generic_load): Rewrite. Make the size of each
1375 chunk/block write a run-time option. Check for quit_flag.
1376 Use target_write_memory_partial for downloads.
1377
de57eccd 13781999-10-18 Jim Blandy <jimb@cygnus.com>
917317f4
JM
1379
1380 Change Linux x86 register support to use the new tm-i386.h layout.
1381 * config/i386/tm-linux.h (HAVE_I387_REGS): #define this, so we get
1382 the full set of FP register definitions from tm-i386.h.
1383 (REGISTER_RAW_SIZE, REGISTER_NAMES, REGISTER_BYTES, REGISTER_BYTE,
1384 MAX_REGISTER_VIRTUAL_SIZE, MAX_REGISTER_RAW_SIZE, NUM_REGS,
1385 NUM_FREGS): Remove #undefs and subsequent redefinitions: we're
1386 using the values from tm-i386.h now.
1387 (FPSTART_REGNUM, FPCONTROL_REGNUM, FPSTATUS_REGNUM, FPTAG_REGNUM,
1388 FPDATA_REGNUM, FPEND_REGNUM, FPENV_BYTES, FPREG_RAW_SIZE,
1389 FPREG_BYTES): Deleted.
1390 (TARGET_LONG_DOUBLE_BIT): Deleted.
1391 (REGISTER_CONVERTIBLE, REGISTER_CONVERT_TO_VIRTUAL,
1392 REGISTER_CONVERT_TO_RAW): Redefine these only if LD_I387 is #defined.
1393 * i386-linux-nat.c (convert_to_gregset, convert_to_fpregset,
1394 FPREGSET_T_FPREG_OFFSET): New functions and macros.
1395 (supply_gregset, fill_gregset, supply_fpregset,
1396 fill_fpregset, fetch_fpregs, store_fpregs, fetch_regs,
1397 store_regs, fetch_inferior_registers, store_inferior_registers):
1398 Adjusted to use new macros from tm-i386.h.
1399
1400 * config/i386/tm-i386.h: Provide a decent x86 FPU description here,
1401 so that the various i386 targets can share more FPU handling code.
1402 (NUM_GREGS): New macro.
1403 (NUM_SSE_REGS): New macro, dependent on HAVE_SSE_REGS
1404 (NUM_FREGS): Depend on HAVE_I387_REGS.
1405 (NUM_REGS, REGISTER_BYTES): Define in terms of NUM_GREGS,
1406 NUM_FREGS, and NUM_SSE_REGS.
1407 (MAX_NUM_REGS): New macro.
1408 (REGISTER_NAMES): Expand name list with FPU control registers and
1409 SSE registers.
1410 (FP7_REGNUM, FCTRL_REGNUM, FSTAT_REGNUM, FTAG_REGNUM, FCS_REGNUM,
1411 FCOFF_REGNUM, FDS_REGNUM, FDOFF_REGNUM, FOP_REGNUM,
1412 FIRST_FPU_CTRL_REGNUM, LAST_FPU_CTRL_REGNUM): New macros, more
1413 fully describing the FPU register set.
1414 (XMM0_REGNUM, XMM7_REGNUM, MXCSR_REGNUM): New macros, describing
1415 the SSE register set.
1416 (IS_FP_REGNUM, IS_SSE_REGNUM, FPU_REG_RAW_SIZE, SIZEOF_GREGS,
1417 SIZEOF_FPU_REGS, SIZEOF_FPU_CTRL_REGS, SIZEOF_SSE_REGS): New
1418 convenience macros.
1419 (REGISTER_BYTE, REGISTER_RAW_SIZE, REGISTER_VIRTUAL_SIZE): Turn
1420 these into tables, since the register sizes are pretty irregular.
1421 (i386_register_byte, i386_register_raw_size,
1422 i386_register_virtual_size): New extern declarations.
1423 (TARGET_LONG_DOUBLE_BIT): Define.
1424 (MAX_REGISTER_RAW_SIZE): Bump to 16, for the SSE registers.
1425 (REGISTER_VIRTUAL_TYPE, REGISTER_CONVERTIBLE,
1426 REGISTER_CONVERT_TO_VIRTUAL, REGISTER_CONVERT_TO_RAW): New macros
1427 for handling floating-point registers.
1428 (i387_to_double, double_to_i387): New extern declarations.
1429 * i386-tdep.c (i386_register_byte, i386_register_raw_size,
1430 i386_register_virtual_size): New arrays.
1431 (_initialize_i386_tdep): Initialize i386_register_byte and
1432 i386_register_virtual_size.
1433
1434 * i386-tdep.c (_initialize_i386_tdep): Move new_cmd to a block
1435 created specially for its use.
1436
1437Mon Oct 18 23:36:58 1999 Andrew Cagney <cagney@b1.cygnus.com>
1438
1439 * symfile.c (generic_load): Cleanup the validate code - remove
1440 #ifdef, use paddr to print address.
1441 (validate_download): Static, replace VALIDATE_DOWNLOAD
1442
1443 * symfile.c (generic_load): Use strtoul to scan the optional load
1444 offset. Allocate a filename of the correct size.
1445
1446Mon Oct 18 17:32:51 1999 Andrew Cagney <cagney@b1.cygnus.com>
1447
1448 * symfile.c (generic_load): Don't filter output. Use
1449 print_transfer_performance for summary. Use paddr for addresses.
1450 (print_transfer_performance): New function. Includes write count.
1451 (report_transfer_performance): Call
1452 print_transfer_performance. Deprecate.
1453
1454 * defs.h (print_transfer_performance): Add declaration.
1455 (generic_load): Move declaration to here.
1456 * symfile.h (generic_load): From here.
1457
1458Mon Oct 18 16:29:52 1999 Andrew Cagney <cagney@amy.cygnus.com>
1459
1460 * remote.c (remote_write_bytes): Re-write. Transfer a single
1461 packet and then return the that packets byte size.
1462
1463Sun Oct 17 15:09:00 1999 Andrew Cagney <cagney@b1.cygnus.com>
1464
1465 * remote.c (remote_console_output): Flush gdb_stdtarg after
1466 processing an ``O'' packet.
1467 * remote.h (remote_console_output): Strip PARAMS.
1468
1469Sun Oct 17 15:12:33 1999 Andrew Cagney <cagney@b1.cygnus.com>
1470
1471 * target.c (target_xfer_memory_partial): New function. Simple
1472 implementation of partial memory reads.
1473 (target_read_memory_partial): New function. Replaces old
1474 target_read_memory_partial.
1475 (target_write_memory_partial): New function.
1476 * target.h: Update.
1477
1478 * valprint.c (partial_memory_read): New function, based on old
1479 memory_read_partial. Implement partial memory reads the way that
1480 val_print_string likes.
1481 (val_print_string): Use partial_memory_read.
1482
1483Sun Oct 17 13:58:56 1999 Andrew Cagney <cagney@b1.cygnus.com>
1484
1485 * defs.h (ui_load_progress_hook): Add declaration.
1486 * dsrec.c (ui_load_progress_hook): Delete extern declaration.
1487
1488 * symfile.c (ui_load_progress_hook): Make first argument const.
1489 (generic_load): Don't cast the result of bfd_get_section_name.
1490 Replace ``sect'' with ``sect_name'', use consistently.
1491
de57eccd 14921999-10-15 Jim Blandy <jimb@cygnus.com>
917317f4
JM
1493
1494 Add beginnings of support for SIMD register types.
1495 * gdbtypes.c (init_simd_type): New function for building
1496 types for registers consisting of arrays of objects.
1497 (builtin_type_v4sf): New built-in type.
1498 (build_gdbtypes): Initialize it.
1499 (_initialize_gdbtypes): Arrange for gdbarch swapping.
1500 * gdbtypes.h (builtin_type_v4sf): Add external decl.
1501
1502Fri Oct 15 18:20:33 1999 Andrew Cagney <cagney@b1.cygnus.com>
1503
1504 * remote-hms.c: Commented out H8 code.
1505
1506Fri Oct 15 17:46:39 1999 Andrew Cagney <cagney@b1.cygnus.com>
1507
1508 * dcache.c (dcache_p): Rename variable remote_dcache. Make
1509 static.
1510 (_initialize_dcache): Fix description of ``set remotecache''.
1511 Cache is OFF by default.
1512
de57eccd 15131999-10-13 Jim Blandy <jimb@cygnus.com>
917317f4
JM
1514
1515 * valops.c (value_push): Don't forget to initialize container_len.
1516
1517Wed Oct 13 17:58:20 1999 Andrew Cagney <cagney@b1.cygnus.com>
1518
1519 * utils.c (tui_file_flush): Don't call flush_hook. Don't try to
1520 flush ``astring''.
1521 * gdb-events.sh: Update
1522 * top.c (flush_hook): Delete.
1523
15241999-10-13 Kevin Buettner <kevinb@cygnus.com>
1525
1526 * mem-break.c (memory_insert_breakpoint,
1527 memory_remove_breakpoint): Added missing return statements.
1528
1529Wed Oct 13 20:53:42 1999 Andrew Cagney <cagney@b1.cygnus.com>
1530
1531 * utils.c (mem_fileopen, mem_file_delete, mem_file_new,
1532 mem_file_rewind, mem_file_put, mem_file_fputs): New functions.
1533 * defs.h (mem_fileopen): Declare.
1534
15351999-10-13 Kevin Buettner <kevinb@cygnus.com>
1536
1537 * mem-break.c (default_memory_insert_breakpoint): Renamed from
1538 memory_insert_breakpoint.
1539 (default_memory_remove_breakpoint): Renamed from
1540 memory_remove_breakpoint.
1541 (memory_insert_breakpoint, memory_remove_breakpoint,
1542 MEMORY_INSERT_BREAKPOINT, MEMORY_REMOVE_BREAKPOINT): New
1543 wrappers.
1544 * target.h (default_memory_remove_breakpoint,
1545 default_memory_insert_breakpoint): Added declarations.
1546 * gdbarch.sh (MEMORY_INSERT_BREAKPOINT, MEMORY_REMOVE_BREAKPOINT):
1547 New methods.
1548 * gdbarch.h, gdbarch.c (MEMORY_INSERT_BREAKPOINT,
1549 MEMORY_REMOVE_BREAKPOINT, gdbarch_memory_insert_breakpoint,
1550 gdbarch_memory_remove_breakpoint, set_gdbarch_memory_insert_breakpoint,
1551 set_gdbarch_memory_remove_breakpoint) : Generated from gdbarch.sh.
1552
1553Wed Oct 13 19:15:51 1999 Andrew Cagney <cagney@b1.cygnus.com>
1554
1555 * defs.h: Remove PARAMS from all declarations. Re-indent. Clean
1556 up the gdb_file declarations.
1557
1558Tue Oct 12 12:19:07 1999 David Taylor <taylor@texas.cygnus.com>
1559
1560 * i386-linux-nat.c (supply_fpregset, fill_fpregset): copy
1561 from/to start of fpregsetp not start of st_space as the first
1562 stuff we copy is the FP control registers not the actual FP values.
1563
15641999-10-12 Fernando Nasser <fnasser@totem.to.cygnus.com>
1565
1566 * eval.c (evaluate_subexp_standard): Fix gdb invocation of
1567 inferior C functions when debugging C++ code.
1568 * valops.c (find_overload_match): Ditto.
1569 * symtab.c (make_symbol_overload_list): Ditto.
1570
2df3850c
JM
15711999-10-11 Jim Blandy <jimb@zwingli.cygnus.com>
1572
1573 * config/pa/tm-hppa.h (SYMBOLS_CAN_START_WITH_DOLLAR): It's not
1574 enough to #define this; you have to give it a non-zero value.
1575
de57eccd 15761999-10-11 Jim Blandy <jimb@cygnus.com>
2df3850c
JM
1577
1578 Fix from Jim Kingdon <kingdon@redhat.com>, with tweaks to make it
1579 gdbarch- and bigendian-friendly:
1580 * valops.c (PARM_BOUNDARY): If not #defined, default to zero.
1581 (value_push): If PARM_BOUNDARY is not zero, align arguments to
1582 that boundary.
1583 * config/i386/tm-i386.h: Define PARM_BOUNDARY.
1584
1585Mon Oct 11 14:23:55 1999 Fred Fish <fnf@cygnus.com>
1586
1587 * config/mips/tm-irix3.h (PS_REGNUM): Don't undef if we aren't
1588 going to redefine it to something else.
1589
15901999-10-11 Jason Merrill <jason@yorick.cygnus.com>
1591
1592 * dwarfread.c (read_func_scope): Don't try to set main_func_*;
1593 we handle that in blockframe.c:inside_main_func.
1594 * dwarf2read.c (read_func_scope): Likewise.
1595 (dwarf2_add_field, dwarf2_add_member_fn): Get member function name
1596 directly, not from mangled name.
1597 (skip_member_fn_name): Lose.
1598
1599Mon Oct 11 12:24:52 1999 Andrew Cagney <cagney@b1.cygnus.com>
1600
1601 * serial.h (enum serial_rc): Clarify SERIAL_TIMEOUT and
1602 restrictions on TIMEOUT in ASYNC mode.
1603
1604 * serial.c (serial_readchar): Check for invalid timeout when in
1605 async mode. Disable test.
1606
1607Thu Oct 7 17:20:01 1999 Andrew Cagney <cagney@amy.cygnus.com>
1608
1609 * monitor.c (monitor_printable_string): Add length argument. Don't
1610 return final string length.
1611 (monitor_printf_noecho, monitor_printf, monitor_expect): Update.
1612 (monitor_error): Pass real_len to monitor_printable_string.
1613 (monitor_error): Rewrite. Replace printf fmt string parameter with
1614 function name and message parameters.
1615 (monitor_read_memory_single, monitor_read_memory): Update.
1616
16171999-10-07 Stan Shebs <shebs@andros.cygnus.com>
1618
1619 * main.c (print_gdb_help): Fix bug reporting address.
1620 * gnu-regex.h, gnu-regex.c: Ditto.
1621
16221999-10-07 Jim Blandy <jimb@zwingli.cygnus.com>
1623
1624 * parse.c (SYMBOLS_CAN_START_WITH_DOLLAR): New macro,
1625 whose value can be overridden by target files.
1626 (write_dollar_variable): Don't check the symbol table for
1627 identifiers beginning with `$' unless
1628 SYMBOLS_CAN_START_WITH_DOLLAR is non-zero.
1629 * config/pa/tm-hppa.h (SYMBOLS_CAN_START_WITH_DOLLAR): Define.
1630 * doc/gdbint.texinfo (SYMBOLS_CAN_START_WITH_DOLLAR): Document.
1631
1632 Remove all traces of the BINOP_SCOPE operator. It's never
1633 generated, and not implemented.
1634 * expression.h (enum exp_opcode): Delete BINOP_SCOPE.
1635 * c-lang.c (c_op_print_tab): Delete entry for BINOP_SCOPE.
1636 * eval.c (evaluate_subexp_standard): Doc fix.
1637 * expprint.c (op_name): Remove case for BINOP_SCOPE.
1638 (dump_subexp): Same.
1639
1640 * dwarf2read.c (dwarf2_const_value): Treat DW_FORM_data1,
1641 DW_FORM_data2, DW_FORM_data4, and DW_FORM_data8 as signed values,
1642 since that's what read_var_value will do anyway.
1643
16441999-10-07 Fred Fish <fnf@cygnus.com>
1645
1646 * objfiles.h (struct objfile): Delete is_solib member, now handled
1647 by OBJF_SHARED bit in struct objfile's flags.
1648 * objfiles.c (objfile_purge_solibs): Check OBJF_SHARED bit in flags
1649 instead of old is_solib int member in objfile struct.
1650
1651 * objfiles.c (allocate_objfile): Remove is_solib arg. Now passed
1652 as a bit in combined flags arg.
1653 * symfile.c (symbol_file_add): Ditto.
1654 * objfiles.h (allocate_objfile): Adjust prototype after removal
1655 of is_solib arg.
1656 * symtab.h (symbol_file_add): Ditto.
1657
1658 * cxux-nat.c (add_shared_symbol_files): Remove zero passed to
1659 symbol_file_add in old is_solib arg, defaults to zero now in
1660 flags.
1661 * irix5-nat.c (symbol_add_stub): Ditto.
1662 * remote-mm.c (mm_load): Ditto.
1663 * remote-udi.c (udi_load): Ditto.
1664 * remote-vx.c (vx_add_symbols): Ditto.
1665 * symfile.c (symbol_file_command): Ditto.
1666 (add_symbol_file_command): Ditto.
1667
1668 * coff-solib.c (coff_solib_add): Call symbol_file_add with
1669 OBJF_SHARED in flags bit, rather than 1 in old is_solib
1670 arg.
1671 * osfsolib.c (symbol_add_stub): Ditto.
1672 * pa64solib.c (pa64_solib_add_solib_objfile): Ditto.
1673 * solib.c (symbol_add_stub): Ditto.
1674 * somsolib.c (som_solib_add_solib_objfile): Ditto.
1675 * win32-nat.c (handle_load_dll): Ditto.
1676
1677 * objfiles.c (allocate_objfile): Remove old args "mapped" and
1678 "user_loaded". Replaced with new arg "flags" containing specific
1679 If global var mapped_symbol_files is nonzero
1680 then set OBJF_MAPPED in flags arg. Check for OBJF_MAPPED bit in
1681 flags where we used to check mapped arg.
1682 Pass flags to open_mapped_file instead of mapped arg.
1683 Ensure that OBJF_MAPPED bit is reset in flags when the objfile
1684 is not mapped. Add passed flags bits to objfile's flags bits.
1685 (open_mapped_file): Replace "mapped" arg with new "flags" arg.
1686 Adjust prototype. Pass flags to open_existing_mapped_file.
1687 (open_existing_mapped_file): Replace "mapped" arg with new "flags".
1688 Check flags for OBJF_MAPPED.
1689 * objfiles.h (allocate_objfile): Adjust prototype.
1690 * rs6000-nat.c (add_vmap): Pass zero for combined flags, rather
1691 than separate zero ints for old "mapped" and "user_loaded" flags.
1692 * symfile.c (symbol_file_add): Pass allocate_objfile combined flags
1693 rather than individual mapped and user loaded bits.
1694
1695 * symfile.c (symbol_file_add): Delete user_loaded arg.
1696 * symtab.h (symbol_file_add): Adjust prototype for deleted
1697 user_loaded arg.
1698 * objfiles.h (struct objfile): Delete user_loaded member.
1699 (OBJF_USERLOADED): New flag bit to replace user_loaded.
1700
1701 * symfile.c (symbol_file_command): Add OBJF_USER_LOADED to flags
1702 passed to symbol_file_add. Delete previous passing of explicit 1
1703 for user_loaded.
1704 (add_symbol_file_command): Ditto.
1705
1706 * coff-solib.c (coff_solib_add): No longer pass zero for user loaded,
1707 now defaults to zero in flags.
1708 * cxux-nat.c (add_shared_symbol_files): Ditto.
1709 * irix5-nat.c (symbol_add_stub): Ditto.
1710 * osfsolib.c (symbol_add_stub): Ditto.
1711 * remote-mm.c (mm_load): Ditto.
1712 * pa64solib.c (pa64_solib_add_solib_objfile): Ditto.
1713 * remote-udi.c (udi_load): Ditto.
1714 * remote-vx.c (vx_add_symbols): Ditto.
1715 * solib.c (symbol_add_stub): Ditto.
1716 * somsolib.c (som_solib_add_solib_objfile): Ditto.
1717 * win32-nat.c (handle_load_dll): Ditto.
1718
1719Thu Oct 7 19:24:05 1999 Andrew Cagney <cagney@b1.cygnus.com>
1720
1721 * Makefile.in (monitor.o): Allow monitor.o to be compiled with
1722 -Werror.
1723
1724 * monitor.c (monitor_debug_p): New variable. Replaces macro.
1725 (EXTRA_RDEBUG): Delete. Update all uses.
1726 (monitor_debug): New function. Replaces macro.
1727 (RDEBUG): Delete macro. Update all uses.
1728 debug output to gdb_stdlog and not the console.
1729
1730 * monitor.c: Fix printf formating. Replace printf calls with
1731 fprintf_unfiltered.
1732
17331999-10-06 Stan Shebs <shebs@andros.cygnus.com>
1734
1735 * MAINTAINERS: Switch ARM target maintenance from Elena
1736 Zannoni to Jim Ingham.
1737
17381999-10-06 Frank Ch. Eigler <fche@cygnus.com>
1739
1740 * remote.c (hexnumnstr): New function. Allow setting of width.
1741 (hexnumstr): Call the above.
1742 (remote_write_bytes): Fill in X-protocol address field more
1743 reliably.
1744
17451999-10-06 Fred Fish <fnf@cygnus.com>
1746
1747 * xcoffread.c (xcoff_symfile_offsets): Fix typo, addr->addrs.
1748
17491999-10-06 Elena Zannoni <ezannoni@kwikemart.cygnus.com>
1750
1751 * remote.c (handle_remote_sigint_twice): Make this signal be
1752 handled by inferior_event_handler, via the wrapper function.
1753 (async_remote_interrupt_twice): Make not static. Add debug print.
1754 * remote.h (async_remote_interrupt_twice): Export for use in
1755 inf-loop.c.
1756
1757 * inf-loop.c (inferior_event_handler_wrapper): New function.
1758 (inferior_event_handler): Handle a request to quit and kill the
1759 target.
1760 Include remote.h.
1761 * inf-loop.h (inferior_event_handler_wrapper): Export.
1762
2acceee2
JM
17631999-10-04 James Ingham <jingham@leda.cygnus.com>
1764
1765 * remote-rdi.c (arm_rdi_open): If the angel_RDI_Open fails, close
1766 the serial port and raise an error. If you try to go on, you will
1767 stall forever down in the rdi-share code.
1768
17691999-10-04 Fernando Nasser <fnasser@totem.to.cygnus.com>
1770
1771 * printcmd.c (output_command): Makes sure result from the output
1772 command is printed before the next prompt.
1773
17741999-10-04 Fernando Nasser <fnasser@totem.to.cygnus.com>
1775
1776 * printcmd.c (print_formatted): Add missing stream parameter.
1777 (do_examine, print_command_1, output_command, do_one_display):
1778 Adjust call to print_formatted().
1779
17801999-10-04 Elena Zannoni <ezannoni@kwikemart.cygnus.com>
1781
1782 * infcmd.c: Remove include of event-loop.h.
1783 * utils.c: Ditto.
1784 * top.c: Ditto.
1785
1786 * infrun.c (fetch_inferior_event): Call inferior_event_handler
1787 when inferior stops, instead of doing work ourselves.
1788 (fetch_inferior_event): Use void* instead of gdb_client_data.
1789 Remove includes of event-top.h and event-loop.h. Add include of
1790 inf-loop.h.
1791 (complete_execution): Move from here.
1792
1793 * inf-loop.c (complete_execution): To here.
1794 (inferior_event_handler): Handle inferior's execution completion
1795 case as well.
1796 * inf-loop.h: Add def of INF_LOOP_H.
1797
1798 * event-top.h: Don't use gdb_client_data, use void*, to avoid
1799 dependency on event-loop.h.
1800
1801 * remote.c (remote_async_resume): Set target_executing only after we
1802 actually register the inferior with the event loop.
1803
18041999-10-04 Fernando Nasser <fnasser@totem.to.cygnus.com>
1805
1806 * corefile.c (memory_error): Use error_stream() and eliminate call
1807 to return_to_top_level().
1808
18091999-10-04 Fernando Nasser <fnasser@totem.to.cygnus.com>
1810
1811 * utils.c (error): Save error message text (w/o new line).
1812 (error_last_message): New function. Returns the last message
1813 issued by gdb.
1814 (error_init): New function. Initializes error handling machinery.
1815 (error_stream): New function. Allows the error message to be
1816 passed on a stream buffer.
1817 * defs.h: Add prototypes for error_stream() and
1818 error_last_message().
1819 * main.c (main): Add call to error_init().
1820
18211999-10-04 Fernando Nasser <fnasser@totem.to.cygnus.com>
1822
1823 * utils.c (tui_sfileopen): New function. Replaces
1824 gdb_file_init_astring().
1825 * defs.h: Add prototype for the above.
1826
1827Mon Oct 4 19:25:55 1999 Andrew Cagney <cagney@b1.cygnus.com>
1828
1829 * symfile.c (add_symbol_file_command): Fix -Wformat on query call.
1830
18311999-10-01 Elena Zannoni <ezannoni@kwikemart.cygnus.com>
1832
1833 * target.c (cleanup_target): Type of to_async param is now
1834 function with enum inferior_event_type param.
1835
1836 * target.h (target_ops): Adjust to_async accordingly. Move enum
1837 inferior_event_type to this file. Don't have a typedef for
1838 inferior_event_type. Add more enumeration constants INF_QUIT_REQ,
1839 INF_EXEC_COMPLETE. Remove INF_SIGINT_FIRST, INF_SIGINT_SECOND.
1840
1841 * inf-loop.c (inferior_event_handler): Change first param to tell
1842 the type of event we are dealing with. Deal with INF_ERROR and
1843 INF_REG_EVENT, for the moment.
1844 Include target.h.
1845
1846 * inf-loop.h (inferior_event_handler): Adjust prototype. Remove
1847 enum inferior_event_type from here.
1848
1849 * remote.c (remote_async_serial_handler): Pass INF_REG_EVENT to
1850 the client callback.
1851 (remote_async): Change callback's param type to inferior_event_type.
1852 (async_client_callback): Change type as above.
1853
18541999-10-01 Elena Zannoni <ezannoni@kwikemart.cygnus.com>
1855
1856 * event-top.c (stdin_event_handler): Delete fd parameter, use
1857 input_fd instead.
1858 * event-top.h (stdin_event_handler): Delete fd parameter.
1859
1860 * inf-loop.c (inferior_event_handler): Delete fd parameter. Use
1861 target_async() to unregister the inferior fd in case of errors.
1862 * inf-loop.h(inferior_event_handler): Delete fd parameter.
1863
1864 * ser-unix.c (fd_event): Delete fd parameter. Use scb->fd,
1865 instead.
1866
1867 * remote.c (async_client_callback): Delete fd parameter.
1868 (remote_async_serial_handler): Ditto.
1869 (remote_async): Adjust to new type of callback function.
1870
1871 * target.c (cleanup_target): Adjust parameters for to_async
1872 default case.
1873 * target.h (*to_async): Delete fd parameter from cb function.
1874
1875 * event-loop.h (handler_func): Delete fd parameter.
1876 * event-loop.c (handle_file_event): Delete fd param from call to
1877 proc. Do not include inferior.h.
1878
18791999-10-01 Elena Zannoni <ezannoni@kwikemart.cygnus.com>
1880
1881 * event-loop.c (inferior_event_handler,
1882 inferior_event_handler_wrapper): Move from here.
1883 * inf-loop.c: To here. New file.
1884
1885 * event-loop.h (inferior_event_handler): Move from here.
1886 * inf-loop.h: To here. New file.
1887
1888 * remote.c: Include inf-loop.h.
1889 (set_extende_protocol): Remove unused prototpye.
1890
1891 * Makefile.in (SFILES): Add inf-loop.c.
1892 (inf_loop_h): Define.
1893 (COMMON_OBS): Add inf-loop.o.
1894 (inf-loop.o): Add rule.
1895 (remote.o): Add dependency on inf-loop.h.
1896
1897Fri Oct 1 19:59:31 1999 Andrew Cagney <cagney@b1.cygnus.com>
1898
1899 * ser-unix.c: Add some notes on how the async code works.
1900
1901Fri Oct 1 01:45:32 1999 Jeffrey A Law (law@cygnus.com)
1902
1903 * somread.c (som_symfile_offsets): Fix typo in last change.
1904
19051999-09-30 Fred Fish <fnf@cygnus.com>
1906
1907 * coff-solib.c (coff_solib_add): Adjust call to symbol_file_add.
1908 * cxux-nat.c (add_shared_symbol_files): Ditto.
1909 * irix5-nat.c (symbol_add_stub): Ditto.
1910 * osfsolib.c (symbol_add_stub): Ditto.
1911 * pa64solib.c (pa64_solib_add_solib_objfile): Ditto.
1912 * remote-mm.c (mm_load): Ditto.
1913 * remote-udi.c (udi_load): Ditto.
1914 * remote-vx.c (vx_add_symbols): Ditto.
1915 * solib.c (symbol_add_stub): Ditto.
1916 * somsolib.c (som_solib_add_solib_objfile): Ditto.
1917 * win32-nat.c (handle_load_dll): Ditto.
1918
1919 * irix5-nat.c (symbol_add_stub): Add section_addrs, zero it.
1920 * cxux-nat.c (add_shared_symbol_files): Ditto.
1921 * osfsolib.c (symbol_add_stub): Ditto.
1922 * pa64solib.c (pa64_solib_add_solib_objfile): Ditto.
1923 * solib.c (symbol_add_stub): Ditto.
1924 * somsolib.c (som_solib_add_solib_objfile): Ditto.
1925 * symfile.c (symbol_file_command): Ditto.
1926 * win32-nat.c (handle_load_dll): Ditto.
1927
1928 * irix5-nat.c (symbol_add_stub): Use section_addrs to pass text addr.
1929 * cxux-nat.c (add_shared_symbol_files): Ditto.
1930 * osfsolib.c (symbol_add_stub): Ditto.
1931 * pa64solib.c (pa64_solib_add_solib_objfile): Ditto.
1932 * solib.c (symbol_add_stub): Ditto.
1933 * somsolib.c (som_solib_add_solib_objfile): Ditto.
1934 * symfile.c (symbol_file_command): Ditto.
1935 * win32-nat.c (handle_load_dll): Ditto.
1936
1937 * coff-solib.c (coff_solib_add): Call symbol_file_add with NULL ptr.
1938 * cxux-nat.c (add_shared_symbol_files): Ditto.
1939 * remote-udi.c (udi_load): Ditto.
1940 * remote-vx.c (vx_add_symbols): Ditto.
1941 * symfile.c (symbol_file_command): Ditto.
1942
1943 * dstread.c (dst_symfile_offsets): Take "section_addr_info *"
1944 instead of CORE_ADDR.
1945 * somread.c (som_symfile_offsets): Ditto.
1946 * symfile.c (default_symfile_offsets): Ditto.
1947 * xcoffread.c (xcoff_symfile_offsets): Ditto.
1948
1949 * symfile.h (default_symfile_offsets): Adjust prototype.
1950 (syms_from_objfile): Ditto.
1951 * symtab.h (symbol_file_add): Ditto.
1952
1953 * rs6000-nat.c (objfile_symbol_add): Call syms_from_objfile with NULL.
1954 * xcoffsolib.c (solib_add): Ditto.
1955 * gdb-stabs.h (SECT_OFF_MAX): Increase from 4 to 16.
1956 * symtab.h (MAX_SECTIONS): Define.
1957 (struct section_addr_info): New struct for better control over
1958 changing load addresses of sections.
1959 * objfiles.h (OBJF_READNOW): Add new flag bit.
1960 * symfile.h (sym_offsets): Change second param from CORE_ADDR to
1961 "section_addr_info *".
1962
1963 * symfile.c (symbol_file_add): Replace scalar arg "CORE_ADDR addr"
1964 with "struct section_addr_info *addrs".
1965 (syms_from_objfile): Ditto.
1966 (add_symbol_file_command): Remove local variables "readnow" and
1967 "mapped". Replaced with general "flags" variable.
1968 (symbol_file_command): Ditto.
1969 (add_symbol_file_command): Add local variables i, sec_num, argcnt,
1970 expecting_option, option_index, and opt. Rework option parsing code
1971 to handle additional options.
1972 (_initialize_symfile): Adjust add-symbol-file usage to match new
1973 option handling.
1974 (symbol_file_add): Remove parameters "mapped" and "readnow",
1975 replace with general "flags".
1976 (symbol_file_add): In call to allocate_objfile, replace "mapped"
1977 with extracted OBJF_MAPPED bit from flags.
1978 (symbol_file_add): Use OBJF_READNOW bit from flags, instead of
1979 "readnow" variable.
1980 (symbol_file_command): Set OBJF_MAPPED and OBJF_READNOW bits
1981 from parsed options. Pass flags to symbol_file_add.
1982 (add_symbol_file_command): Ditto.
1983 (syms_from_objfile): Add local variables i, sect, lower_sect,
1984 lower_offset, and local_addr. Substitute local_addr for addrs
1985 when addrs is NULL. Find lowest loadable section to be used as
1986 starting point for contiguous sections. Adjust offsets if segments
1987 are not contiguous. Call sym_offsets with section_addr_info
1988 instead of single addr.
1989 (default_symfile_offsets): Initialize objfile's section_offsets
1990 with user specified offsets.
1991 (symbol_file_add): Call syms_from_objfile with offsets.
1992 (unknown_option_complaint): Add.
1993 (add_symbol_file_command): Add "section_addrs", zero it with memset.
1994
19951999-09-30 Jason Molenda (jsm@bugshack.cygnus.com)
1996
1997 * configure.in: Call config.sub explicitly instead of misusing the
1998 autoconf internal variable $ac_config_sub.
1999 * configure: Regenerated.
2000
2001Thu Sep 30 15:53:59 1999 Andrew Cagney <cagney@b1.cygnus.com>
2002
2003 * remote.c (readchar): When EOF mourn the inferior.
2004 (getpkt): Try QUIT. Might not be a watchdog timer timeout.
2005 (remote_async_serial_handler): Pass ``-1'' as the dummy FD. Safer
2006 than ZERO == STDIN.
2007
2008 * serial.h (enum serial_rc): Replace #define SERIAL_ERROR,
2009 SERIAL_TIMEOUT and SERIAL_EOF.
2010 (struct _serial_t): Add more notes on termios specific fields.
2011
2012 * ser-unix.c (generic_readchar): Make SERIAL_ERROR sticky.
2013 (do_hardwire_readchar, do_unix_readchar): Don't use bufcnt as a
2014 tempoary for the return-value from read.
2015
2016 * serial.c (serial_logchar): Add a stream parameter.
2017 (serial_readchar, serial_write, serial_send_break): Update.
2018 (serial_readchar): Add serial debug trace.
2019
2020Thu Sep 30 12:07:03 1999 Andrew Cagney <cagney@b1.cygnus.com>
2021
2022 * serial.h (struct _serial_t): Add field async_state. Better
2023 document field bufcnt.
2024 (SERIAL_ERROR): Delete comment about errno.
2025 * serial.c (serial_open, serial_fdopen): Initialize async_state.
2026
2027 * ser-unix.c (push_event, fd_event, reschedule): New functions.
2028 Handle ASYNC serial input.
2029 (ser_unix_async): Update.
2030 (generic_readchar): New function. Handle event scheduling. Make
2031 EOF condition sticky.
2032 (do_unix_readchar): Rename ser_unix_readchar.
2033 (ser_unix_readchar): New function, call do_unix_readchar via
2034 generic_readchar.
2035 (do_hardwire_readchar, hardwire_readchar): Ditto.
2036
2037 * ser-unix.c (ser_unix_readchar): Delete code working around ASYNC
2038 fifo bugs.
2039 (hardwire_readchar): Delete code working around ASYNC fifo bugs.
2040
2041Wed Sep 29 21:27:16 1999 Jeffrey A Law (law@cygnus.com)
2042
2043 * breakpoint.c (insert_breakpoints): Addresses are CORE_ADDRs,
2044 not "int"s.
2045 (remove_breakpoint): Likewise.
2046
20471999-09-29 Fred Fish <fnf@cygnus.com>
2048
2049 * breakpoint.c (breakpoint_1): Replace cast "(CORE_ADDR) - 1"
2050 with the more obviously intended expression "(CORE_ADDR) -1".
2051 * dwarf2read.c (scan_partial_symbols, read_file_scope): Ditto.
2052 * gnu-nat.c (gnu_create_inferior): Ditto.
2053 * go32-nat.c (go32_create_inferior): Ditto.
2054 * hppa-tdep.c (hppa_pop_frame): Ditto.
2055 * infcmd.c (continue_command, step_1, signal_command): Ditto.
2056 (until_next_command, finish_command): Ditto.
2057 * infrun.c (proceed): Ditto.
2058 * inftarg.c (child_create_inferior): Ditto.
2059 * m3-nat.c (m3_create_inferior): Ditto.
2060 * mac-nat.c (child_create_inferior): Ditto.
2061 * procfs.c (procfs_create_inferior): Ditto.
2062 * remote-sim.c (gdbsim_create_inferior): Ditto.
2063 * target.c (target_link): Ditto.
2064 * win32-nat.c (child_create_inferior): Ditto.
2acceee2
JM
2065
2066Thu Sep 30 10:36:19 1999 Andrew Cagney <cagney@b1.cygnus.com>
2067
2068 * ser-unix.c (ser_unix_flush_input): New function. Discard input
2069 buffer.
2070 (hardwire_flush_input): Use ser_unix_flush_input.
2071 (ser_unix_nop_flush_input): Delete.
2072 * ser-unix.h (ser_unix_flush_input): Update.
2073 ser-tcp.c (_initialize_ser_tcp), ser-pipe.c
2074 (_initialize_ser_pipe): Update.
2075
2076 * ser-unix.c (hardwire_write): Delete.
2077 (_initialize_ser_hardwire): Update, use ser_unix_write.
2078
2079Thu Sep 30 10:16:50 1999 Andrew Cagney <cagney@b1.cygnus.com>
2080
2081 * ser-pipe.c (pipe_open): Don't make the FD non-blocking. Already
2082 being handled in ser_unix_wait_for by a select.
2083
2084Thu Sep 30 10:00:32 1999 Andrew Cagney <cagney@b1.cygnus.com>
2085
2086 * serial.h (struct _serial_t): Add field debug_p.
2087 (SERIAL_DEBUG, SERIAL_DEBUG_P): Define.
2088
2089 * serial.c (serial_open, serial_fdopen): Initialize debug_p.
2090 (serial_debug, serial_debug_p): New functions.
2091 (global_serial_debug_p): New variable.
2092 (_initialize_serial): Add ``set serialdebug'' command.
2093
2094Thu Sep 30 09:09:38 1999 Andrew Cagney <cagney@b1.cygnus.com>
2095
2096 * serial.h (serial_event_ftype): Replace FD and ERROR args with
2097 SERRIAL_T arg.
2098 * ser-unix.c (ser_unix_event): Update.
2099
2100 * remote.c (remote_async_serial_handler): New function. Handle
2101 serial events.
2102 (remote_async): Pass remote_async_serial_handler to SERIAL.
2103 (async_client_callback, async_client_context): New variables.
2104
2105 * remote.c (extended_remote_async_create_inferior): Use
2106 target_async to register the inferior event handler.
2107
2108Thu Sep 30 00:02:03 1999 Andrew Cagney <cagney@b1.cygnus.com>
2109
2110 * configure.in (AC_CHECK_FUNCS): Test for sigprocmask.
2111 * configure, config.in: Re-generate.
2112 * event-top.c (async_stop_sig): Use sigprocmask when available.
2113
21141999-09-29 Doug Evans <devans@casey.cygnus.com>
2115
2116 * sh-stub.c (handle_exception): Fix typo in patch of 1999-08-26.
2117 * m68k-stub.c (handle_exception): Ditto.
2118
21191999-09-28 Fred Fish <fnf@cygnus.com>
2120
2121 * alpha-nat.c (alpha_osf_core_fns, alpha_elf_core_fns):
2122 Add default entries for check_format and core_sniffer.
2123 * core-aout.c (aout_core_fns): Ditto.
2124 * core-regset.c (regset_core_fns): Ditto.
2125 * core-sol2.c (solaris_core_fns): Ditto.
2126 * i386aix-nat.c (i386aix_core_fns): Ditto.
2127 * i386mach-nat.c (i386mach_core_fns): Ditto.
2128 * irix4-nat.c (irix4_core_fns): Ditto.
2129 * irix5-nat.c (irix5_core_fns): Ditto.
2130 * lynx-nat.c (lynx_core_fns): Ditto.
2131 * mips-nat.c (mips_core_fns): Ditto.
2132 * ns32knbsd-nat.c (nat_core_fns): Ditto.
2133 * rs6000-nat.c (rs6000_core_fns): Ditto.
2134 * sparc-nat.c (sparc_core_fns): Ditto.
2135 * sun-nat.c (sun3_core_fns): Ditto.
2136 * ultra3-nat.c (ultra3_core_fns): Ditto.
2137
2138 * corelow.c (core_vec): New, for selected core file handler.
2139 (sniff_core_bfd): New function.
2140 (gdb_check_format): New function.
2141 (default_check_format): New function.
2142 (default_core_sniffer): New function.
2143 (sniff_core_bfd): New function.
2144 (core_close): Reset core_vec to NULL.
2145 (core_open): Fall back to gdb_check_format if bfd_check_format
2146 does not identify the file format. Call sniff_core_bfd to pick
2147 a core file handler.
2148 (get_core_registers): Remove code that is now in sniff_core_bfd.
2149 Use current core_vec.
2150
2151 * gdbcore.h (check_format): New core_fns function, points to function
2152 to try and identify a core file format.
2153 (core_sniffer): New core_fns function, points to function to select
2154 a specific handler for the selected core file format.
2155 (default_core_sniffer): Add prototype.
2156 (default_check_format): Add prototype.
2157
2158 * i960-tdep.c (inferior.h): Include.
2159 * mips-tdep.c (read_next_frame_reg): Use ADDR_BITS_REMOVE
2160 on addresses pulled from stack.
2161
21621999-09-29 Elena Zannoni <ezannoni@kwikemart.cygnus.com>
2163
2164 * event-loop.c (poll_timers): Check whether the timer list has any
2165 element on it by looking at the first element pointer, instead of
2166 num_timers.
2167
2168Wed Sep 29 18:02:31 1999 Andrew Cagney <cagney@amy.cygnus.com>
2169
2170 * command.c: Attempt to include POSIX <sys/wait.h> before
2171 <wait.h>.
2172
2173 * ser-unix.c (hardwire_print_tty_state): Ditto.
2174 * inflow.c (child_terminal_info): Fix printf args.
2175
21761999-09-28 Elena Zannoni <ezannoni@kwikemart.cygnus.com>
2177
2178 * remote.c (remote_async_resume): Register the inferior with the
2179 event loop.
2180 (remote_async_open_1): Don't put the target in async mode here,
2181 just do it when executing.
2182
2183 * infrun.c (complete_execution): Unregister the inferior from the
2184 event loop.
2185
2186 * event-top.c (async_disable_stdin): Don't add
2187 async_enable_stdin() to the exec_cleanups chain.
2188
6426a772
JM
2189Tue Sep 28 11:08:34 1999 Jeffrey A Law (law@cygnus.com)
2190
2191 * hppa-tdep.c (hppa_fix_call_dummy): Ignore IMPORT_SHLIB stubs
2192 except for hpux11 native. Break out of the loop to find a
2193 stub as soon as we find an IMPORT stub.
2194 (skip_prologue_hard_way): Also recognize copy %ret1,target and
2195 all PA64 argument stores as prologue instructions.
2196
21971999-09-28 Elena Zannoni <ezannoni@kwikemart.cygnus.com>
2198
2199 * breakpoint.c, defs.h, event-top.c, infcmd.c, infrun.c, main.c,
2200 remote.c, top.c, tracepoint.c, utils.c (async_p): Change var name
2201 to event_loop_p.
2202
de57eccd 22031999-09-28 Jim Blandy <jimb@cygnus.com>
6426a772
JM
2204
2205 * hppa-tdep.c (skip_prologue_hard_way): Recognize ldo insns
2206 which generate pointers into the argument list.
2207
2208Tue Sep 28 13:56:49 1999 Andrew Cagney <cagney@b1.cygnus.com>
2209
2210 * remote.h (cleanup_sigint_signal_handler,
2211 initialize_sigint_signal_handler): Delete extern declarations.
2212 * event-top.c, infrun.c: No longer need to include "remote.h".
2213 * remote.c (cleanup_sigint_signal_handler,
2214 initialize_sigint_signal_handler): Make static.
2215 * Makefile.in (event-top.o): Delete dependency on "remote.h".
2216
2217 * remote.c (remote_async_terminal_ours_p): New static global. Keep
2218 track of who currently owns the terminal.
2219 (remote_async_open_1): Initialize.
2220 (remote_async_terminal_inferior): Test
2221 remote_async_terminal_ours_p. Claim CNTRL-C handler as part of
2222 transfering the terminal to the target.
2223 (remote_async_terminal_ours): Similar.
2224
2225Mon Sep 27 12:33:45 1999 Andrew Cagney <cagney@b1.cygnus.com>
2226
2227 * remote.c (async_interrupt_query): Delete function. Merged into
2228 interrupt_query. Async cases handled by target_terminal_ours,
2229 target_terminal_inferior and SERIAL_CLOSE.
2230 (async_remote_interrupt_twice): Update.
2231 (remote_async_terminal_ours, remote_async_terminal_inferior): New
2232 functions. Steal STDIN from GDB's CLI.
2233 (init_remote_async_ops): Initialize to_terminal_ours and
2234 to_terminal_inferior.
2235
2236 * event-top.c (async_disable_stdin, async_disable_stdin): Use
2237 target_terminal_ours / target_terminal_inferior to transfer
2238 ownership of the terminal between GDB and the target.
2239
22401999-09-27 Elena Zannoni <ezannoni@kwikemart.cygnus.com>
2241
2242 * infcmd.c (run_command): Call async_disable_stdin() only if
2243 dealing with an asynchronous target.
2244
2245Mon Sep 27 11:48:38 1999 Andrew Cagney <cagney@b1.cygnus.com>
2246
2247 * target.h (struct target_ops): Add to_can_async_p, to_is_async_p,
2248 to_async. Delete to_has_async. These correspond well with
2249 SERIAL* async methods.
2250 (target_can_async_p, target_is_async_p, target_async): Define.
2251 * target.c (update_current_target, cleanup_target): Update.
2252
2253 * remote.c (remote_async_open_1): Change target to async using
2254 target_async.
2255 (remote_can_async_p, remote_is_async_p, remote_async): New
2256 functions.
2257 (remote_async_wait, remote_async_open_1): Add FIXME about how
2258 wait_forever_enabled_p can almost be deleted once the client can
2259 enable/disable target_async.
2260
2261 * breakpoint.c (until_break_command), infrun.c (proceed), infcmd.c
2262 (run_command, continue_command, step_1, jump_command,
2263 until_command, finish_command, interrupt_target_command), top.c
2264 (return_to_top_level, execute_command), event-top.c
2265 (command_handler): Replace target_has_async with
2266 target_can_async_p.
2267
2268Sun Sep 26 02:10:47 1999 Andrew Cagney <cagney@b1.cygnus.com>
2269
2270 * remote.c (remote_async_open_1): If we go into async mode, never
2271 wait for ever.
2272
2273 * infcmd.c: Include "event-top.h".
2274 (run_command, continue_command, jump_command, until_command,
2275 finish_command): Use async_disable_stdin to disable the console
2276 for synchronous commands.
2277
2278 * remote.c (async_interrupt_query): Only disconnect the console
2279 from the terminal when sync_execution.
2280
2281 * remote.c (initialize_sigint_signal_handler): Move declaration
2282 from here.
2283 * remote.h: To here. Make non-static.
2284
2285 * remote.c (remote_async_resume, async_interrupt_query): Move
2286 prompt code from here.
2287 * event-top.c (async_disable_stdin, async_enable_stdin): To
2288 here. New function.
2289
2290 * infrun.c (start_remote): Delete commented out code.
2291
2292Fri Sep 24 12:38:31 1999 Andrew Cagney <cagney@b1.cygnus.com>
2293
2294 * remote.c (remote_async_open_1): Perform the initial async_open
2295 using only synchronous calls. Only after the target is fully
2296 connected, switch to async mode. Include FIXME about now it
2297 currently works VS how it should be working.
2298 (remote_async_open_1, set_extended_protocol): Delete function
2299 set_extended_protocol. All open communication is now done
2300 synchronously.
2301 (forever_enabled_p): New variable. Determine if remote_async_wait
2302 should block FOREVER when fetching target information.
2303 (remote_cisco_open, remote_open_1): Set forever_enabled_p.
2304
2305 * infrun.c (start_remote): During the initial connect, always use
2306 a synchronous wait.
2307
2308Sat Sep 25 18:13:38 1999 Andrew Cagney <cagney@b1.cygnus.com>
2309
2310 * Makefile.in (event-top.o): Add dependency.
2311 * event-top.c: Include "remote.h".
2312 * remote.c (async_interrupt_query), event-top.c:
2313 (async_enable_stdin): Pass dummy parameter to
2314 cleanup_sigint_signal_handler.
2315 * remote.c (cleanup_sigint_signal_handler), remote.h
2316 (cleanup_sigint_signal_handler), event-top.c (async_enable_stdin),
2317 event-top.h (async_enable_stdin): Change signature to match
2318 make_exec_error_cleanup handler pararameter.
2319
2320Thu Sep 23 20:48:22 1999 Andrew Cagney <cagney@b1.cygnus.com>
2321
2322 * defs.h (enum command_class): Move from here.
2323 * command.h (command_class): To here.
2324
23251999-09-24 Kevin Buettner <kevinb@cygnus.com>
2326 * breakpoint.c (bpstat_stop_status): Use not_a_breakpoint to
2327 help properly set bp_addr.
2328 * infrun.c (handle_inferior_event): Simplify calls to
2329 bp_stop_status.
2330
23311999-09-24 Elena Zannoni <ezannoni@kwikemart.cygnus.com>
2332
2333 * top.c (return_to_top_level): Do exec_error cleanups if are
2334 interrupting a simulated synchronous execution command.
2335
2336 * infrun.c (start_remote): Create a cleanup to enable stdin in
2337 case of error from this command.
2338 (complete_execution): Do the enabling of stdin via the exec_error
2339 cleanups, when needed.
2340
2341 * remote.c (remote_async_resume): Make sure we re-enable stdin in
2342 case of error from the target.
2343 (handle_remote_sigint_twice): The handler to be set is
2344 async_remote_interrupt_twice, not async_remote_interrupt.
2345 (async_remote_interrupt_twice): Don't do anything if the target
2346 has been killed already. Call async_interrupt_query, instead of
2347 interrupt_query.
2348 (async_interrupt_query): New function. Async case of
2349 interrupt_query().
2350
2351 * event-top.c (async_enable_stdin): New function. Reinstate stdin
2352 with the event loop.
2353 * event-top.h (async_enable_stdin): Export.
2354
2355 * utils.c (exec_error_cleanup_chain): New cleanup chain.
2356 (make_exec_error_cleanup, do_exec_error_cleanups,
2357 discard_exec_error_cleanups): New functions.
2358 * defs.h (make_exec_error_cleanup, do_exec_error_cleanups,
2359 discard_exec_error_cleanups): Export.
2360
23611999-09-24 Jim Blandy <jimb@zwingli.cygnus.com>
2362
2363 * ax-gdb.c (expr_to_agent): Don't forget to pass argument to
2364 new_agent_expr.
2365
23661999-09-24 Elena Zannoni <ezannoni@kwikemart.cygnus.com>
2367
2368 * event-loop.c (fetch_inferior_event_wrapper): New
2369 function. Wrapper to pass to catch_errors.
2370 (inferior_event_handler): Pop the target if things go bad with it.
2371 Call fetch_inferior_event() from within catch_errors().
2372
23731999-09-24 Jim Blandy <jimb@zwingli.cygnus.com>
2374
2375 * ax-gdb.c: Use internal_error instead of error, where
2376 appropriate.
2377
23781999-09-23 James Ingham <jingham@leda.cygnus.com>
2379
2380 * target.c (target_resize_to_sections): New function. Gather the
2381 resizing code for the to_sections field into one place, and make
2382 sure you update the other targets that are sharing the to_sections
2383 structure.
2384 * target.h: Declare the target_resize_to_sections function.
2385 * solib.c (solib_add): use target_resize_to_sections.
2386 * somsolib.c (som_solib_load_symbols): ditto
2387 * rs6000-nat.c (xcoff_relocate_core): ditto
2388 * pa64solib.c (pa64_solib_load_symbols): ditto
2389 * irix5-nat.c (solib_add):ditto
2390
2391 * top.c: Define the attach & detach hooks
2392 * defs.h: Declare the attach & detach hooks.
2393 * infcmd.c (attach_command): call the attach hook if it exists.
2394 (detach_command): call the detach hook if it exists.
2395
2396 * complaints.c (complain): Send the complaints to stderr rather
2397 than stdout, so they don't get mixed into the result stream from
2398 commands.
2399
24001999-09-23 Elena Zannoni <ezannoni@kwikemart.cygnus.com>
2401
2402 * event-loop.c (poll_timers): Use correct timeval field names,
2403 when setting the notifier timeouts, in case of select() used.
2404 (gdb_wait_for_event): Pass a pointer to the timeout structure to
2405 select(), not the structure.
2406
2407Wed Sep 22 10:35:32 1999 Andrew Cagney <cagney@b1.cygnus.com>
2408
2409 * Makefile.in (init.c): Change generated file to include "defs.h"
2410 and "call-cmds.h". Use initialize_file_ftype when declaring
2411 each initialize functions.
2412 (call_cmds_h): Add definition.
2413 (init.o): Add target and dependencies.
2414 (init.c): Don't grep for _initialize* in init.c.
2415
2416 * defs.h (initialize_file_ftype): Add function typedef.
2417
24181999-09-22 Michael Snyder <msnyder@cleaver.cygnus.com>
2419
2420 * procfs.c (init_procinfo): move fltset initialization to caller.
2421 (do_attach, create_procinfo): initialize fltset.
2422
24231999-09-22 Elena Zannoni <ezannoni@kwikemart.cygnus.com>
2424
2425 * event-loop.c, event-top.c, event-loop.h: Rerun indent.
2426
24271999-09-21 Doug Evans <devans@casey.cygnus.com>
2428
2429 * m32r-stub.c (handle_exception): Fix typo in patch of 1999-08-26.
2430
c2c6d25f
JM
2431Tue Sep 21 14:55:29 1999 Andrew Cagney <cagney@b1.cygnus.com>
2432
2433 From 1999-08-20 J.T. Conklin <jtc@redback.com>:
2434 * remote.c (read_frame): expand cisco run-length encoding variant
2435 inline as is done for the standard encoding.
2436 (remote_cisco_expand): Removed.
2437
24381999-09-20 Elena Zannoni <ezannoni@kwikemart.cygnus.com>
2439
2440 * event-loop.c: Include <sys/time.h>.
2441
24421999-09-20 Elena Zannoni <ezannoni@kwikemart.cygnus.com>
2443
2444 * ser-ocd.c: (ser_ocd_open, ser_ocd_raw, ser_ocd_readchar,
2445 ser_ocd_setbaudrate, ser_ocd_write, ser_ocd_close,
2446 ser_ocd_get_tty_state, ser_ocd_set_tty_state): Remove unused
2447 prototypes.
2448 (ocd_readremote): Remove.
2449 (ocd_write): Remove unused var 'c'.
2450
24511999-09-20 Elena Zannoni <ezannoni@kwikemart.cygnus.com>
2452
2453 * event-top.c (change_line_handler): Cleanup dead code. Add comments.
2454 * event-loop.c: Cleanup #if 0 code.
2455
2456 * event-loop.h (timer_handler_func): New function type.
2457 (create_timer): Export function.
2458 (delete_timer): Export function.
2459
2460 * event-loop.c: Add timeout and timeout_valid fields to
2461 gdb_notifier. New structures gdb_timer and timer_list.
2462 (gdb_do_one_event): Check whether there are any timers tht are
2463 ready, before going to wait.
2464 (gdb_wait_for_event): If the timeout structure is meaningful, pass
2465 that to select()/poll().
2466 (create_timer): New function. Creates a timer.
2467 (delete_timer): New function. Deletes a timer.
2468 (handle_timer_event): New function. Deals with timers that are ready.
2469 (poll_timers): New Function. Chack whether timers have expired.
2470
2471Mon Sep 20 17:00:06 1999 Andrew Cagney <cagney@b1.cygnus.com>
2472
2473 * remote.c (getpkt, putpkt, remote_console_output): Move
2474 declaration from here.
2475 * remote.h: To here. New file.
2476 * tracepoint.c(putpkt, getpkt, remote_console_output): Delete
2477 declarations. Moved to "remote.h".
2478 * Makefile.in (remote_h): Define.
2479 * remote.c, tracepoint.c: Include "remote.h".
2480 * Makefile.in (tracepoint.o, remote.o): Add dependency on
2481 "remote.h".
2482
2483 * remote.h (remote_cisco_objfile_relocate,
2484 cleanup_sigint_signal_handler): Add declaration. Include FIXME.
2485 * infrun.c: Include "remote.h".
2486 (complete_execution): Delete local extern declaration
2487 of ``cleanup_sigint_signal_handler''.
2488 * Makefile.in (infrun.o): Add dependency on remote.h.
2489
2490Mon Sep 20 13:41:04 1999 Andrew Cagney <cagney@b1.cygnus.com>
2491
2492 * kod.c (ecos_kod_open, ecos_kod_request, ecos_kod_close,
2493 cisco_kod_open, cisco_kod_request, cisco_kod_close): Move
2494 declarations from here.
2495 * kod.h: To here. New file.
2496 * kod-cisco.c, kod.c: Include "kod.h".
2497 * Makefile.in (kod-cisco.o, kod.o): Add dependency on "kod.h".
2498
2499 * kod.h (kod_display_callback_ftype, kod_query_callback_ftype):
2500 New function types.
2501 * kod.h (kod_cisco_open): Use in declaration.
2502 * kod.c (gdb_kod_open): Update definition.
2503 * kod-cisco.c (cisco_kod_open): Update definition.
2504
2505Mon Sep 20 12:13:27 1999 Andrew Cagney <cagney@b1.cygnus.com>
2506
2507 * mn10300-tdep.c (_initialize_mn10300_tdep): Add declaration.
2508
2509 * breakpoint.c (until_break_command_continuation): Add
2510 declaration. Make static.
2511 * event-top.c (rl_callback_read_char_wrapper): Ditto.
2512
2513Fri Sep 17 19:28:17 1999 Andrew Cagney <cagney@b1.cygnus.com>
2514
2515 * source.c: Include "source.h".
2516 (open_source_file, find_source_lines): Move declaration from here.
2517 * source.h: New file. To here.
2518 * Makefile.in (source.o): Add dependency on source.h.
2519
2520 * breakpoints.c (delete_command): Move declaration from here.
2521 * breakpoints.h (delete_command): To here.
2522
de57eccd 25231999-09-18 Jim Blandy <jimb@cygnus.com>
c2c6d25f
JM
2524
2525 * hppa-tdep.c (in_solib_call_trampoline): If we can't recognize
2526 the instruction we're at, we're not in a stub.
2527
2528Sat Sep 18 07:13:03 1999 Jeffrey A Law (law@cygnus.com)
2529
2530 * dwarf2read.c (dwarf_decode_lines): Correctly handle
2531 DW_LNS_const_add_pc.
2532
25331999-09-18 Elena Zannoni <ezannoni@kwikemart.cygnus.com>
2534
2535 * remote.c (remote_async_open_1): Use inferior_event_handler to
2536 handle inferior events.
2537 (extended_remote_async_create_inferior): Ditto.
2538
2539 * serial.h (serial_event_ftype): Add two pars.
2540
2541 * ser-unix.c (ser_unix_event): Add two parameters, error and fd.
2542 Pass those into the call to the actual inferior event handler.
2543
2544 * infrun.c (complete_execution): Stdin handler is stdin_event_handler.
2545
2546 * event-top.h (stdin_event_handler): Export new function.
2547
2548 * event-top.c (stdin_event_handler): New function. Smarter handler
2549 for events on stdin.
2550 (change_line_handler): Don't need to update the handler for stdin
2551 here anymore.
2552 (_initialize_event_loop): Stdin handler is now stdin_event_handler.
2553
2554 * event-loop.h: (handler_func): Change signature, adding two new
2555 args.
2556 (sig_handler_func): New function type. It is the old handler_func.
2557 (create_async_signal_handler): Update to use sig_handler_func.
2558 (delete_async_signal_handler): Prototype for new function.
2559
2560 * event-loop.c: Include "inferior.h".
2561 (struct file_handler): Add field error, to indicate error
2562 condition on fd.
2563 (struct async_signal_handler): Rename type of proc field.
2564 (add_file_handler): Add exception condition as something select()
2565 should report.
2566 (handle_file_event): In case of error on the fd, record this in
2567 the file_handler structure. Update call to (*proc)() to match new
2568 signature.
2569 (gdb_wait_for_event): If select() or poll() return error, report
2570 this to user.
2571 (create_async_signal_handler): Change first param type to
2572 sig_handler_func*.
2573 (inferior_event_handler): New function. Smarter inferior event
2574 handling.
2575
de57eccd 25761999-09-18 Jim Blandy <jimb@cygnus.com>
c2c6d25f
JM
2577
2578 * pa64solib.c (pa64_solib_create_inferior_hook): Remove code which
2579 tries to set __d_pid; it's not relevant to PA64 shared libraries.
2580
2581 A psymtab's texthigh element, and a block's endaddr element, are
2582 the address past the end of the address range, never the address
2583 of the last byte. These data structures mean the same thing on
2584 forty different architectures; there's no reason they should be
2585 different on HP/UX.
2586 * symtab.c (find_pc_sect_psymtab): Remove special case for HP/UX.
2587 (find_pc_sect_symtab): Same.
2588 * objfiles.c (find_pc_sect_section): Same.
2589
2590Sat Sep 18 07:13:03 1999 Jeffrey A Law (law@cygnus.com)
2591
2592 * hppa-tdep.c (internalize_unwinds): Handle PA64 shared libraries
2593 correctly
2594
2595 * hppa-tdep.c (in_solib_call_trampoline): Handle PA64 shared library
2596 trampolines.
2597
25981999-09-17 Jim Blandy <jimb@zwingli.cygnus.com>
2599
2600 * breakpoint.c (permanent_breakpoint_here_p): Delete.
2601 Accidentally left over from previous changes.
2602
de57eccd 26031999-09-17 Jim Blandy <jimb@cygnus.com>
c2c6d25f
JM
2604
2605 * config/pa/tm-hppa64.h (ARGS_GROW_DOWNWARD): Deleted. There are
2606 many more differences between the 32- and 64-bit ABI's than the
2607 direction the arguments grow, so this name is misleading.
2608 (PA20W_CALLING_CONVENTIONS): Define this instead.
2609 * config/pa/tm-hppa.h (ARGS_GROW_DOWNWARD): Delete.
2610 * hppa-tdep.c (hppa_push_arguments): Split into two separate
2611 functions, depending on whether PA20W_CALLING_CONVENTIONS is
2612 #defined. These implement completely separate specifications,
2613 they don't really share that much code anyway, and this is much
2614 more readable. Specifically: leave a 16-byte, not 32-byte, frame
2615 marker; correctly align objects larger than eight bytes; promote
2616 all integral scalar arguments smaller than eight bytes to a full
2617 register width; pad aggregates smaller than eight bytes on the
2618 right.
2619
2620Thu Sep 16 17:33:35 1999 Andrew Cagney <cagney@b1.cygnus.com>
2621
2622 * remote.c (remote_async_open_1): Use SERIAL_ASYNC to
2623 enable/disable async event callback on serial port. Use
2624 SERIAL_CAN_ASYNC_P / SERIAL_IS_ASYNC_P to determine if / when
2625 async mode.
2626 (remote_async_resume, remote_async_detach, remote_async_kill,
2627 extended_remote_async_create_inferior, remote_async_wait): Ditto.
2628
2629 * ser-unix.c (hardwire_readchar): When ASYNC, only read a single
2630 character.
2631 (ser_unix_readchar): Ditto. Problems occure with back-to-back
2632 data from a target. The ASYNC code can loose the second data
2633 chunk.
2634
2635 * serial.c (serial_fdopen): Initialize async_handler and
2636 async_context.
2637
26381999-09-16 Elena Zannoni <ezannoni@kwikemart.cygnus.com>
2639
2640 * utils.c (discard_all_continuations): New function.
2641 * defs.h: (discard_all_continuations): Add prototype.
2642
26431999-09-16 Elena Zannoni <ezannoni@kwikemart.cygnus.com>
2644
2645 * valops.c: Remove prototype for search_struct_field_aux(). THe
2646 function was nowhere in the file.
2647 (value_ind): Remove unused var real_val.
2648 (value_find_oload_method_list): Remove unused var v.
2649 (find_overload_match): Remove extra declaration of var jj.
2650
2651 * Makefile.in (event_top_h): Define. Add dependency on this for
2652 every file that includes event-top.h.
2653
2654Thu Sep 16 17:33:35 1999 Andrew Cagney <cagney@b1.cygnus.com>
2655
2656 * serial.c (serial_open): Delete ``&'' device.
2657 * ser-unix.c (_initialize_ser_hardwire): Make the "hardwire"
2658 device async. Delete temporary "async-hardwire" device.
2659
2660Thu Sep 16 16:27:13 1999 Andrew Cagney <cagney@b1.cygnus.com>
2661
2662 * serial.h (SERIAL_IS_ASYNC_P): Define. Non-zero when serial
2663 device is in async mode.
2664 (SERIAL_CAN_ASYNC_P): Rename SERIAL_ASYNC_P.
2665 * serial.c (serial_is_async_p): Implement.
2666 (serial_can_async_p): Rename serial_async_p.
2667 (serial_open): Initialize ASYNC_HANDLER and ASYNC_CONTEXT. Save
2668 the original name in SCB instead of the stripped name.
2669
2670Thu Sep 16 12:20:11 1999 Andrew Cagney <cagney@b1.cygnus.com>
2671
2672 * serial.h (struct serial_ops): Add field ASYNC.
2673 (SERIAL_ASYNC, SERIAL_ASYNC_P): New macros.
2674 (struct _serial_t): Add fields async_context and async_handler.
2675 * serial.c (serial_async, serial_async_p): Implement.
2676
2677 * ser-unix.c: Include "event-loop.h".
2678 (ser_unix_async), ser-unix.c: New function. Implement async mode.
2679 (async_event): Handle async events.
2680 * ser-unix.c (_initialize_ser_hardwire), ser-tcp.c
2681 (_initialize_ser_tcp), ser-pipe.c (_initialize_ser_pipe): Enable
2682 ASYNC.
2683
2684 * serial.c (serial_open): Discard leading ``|'' before opening a
2685 pipe device.
2686 * ser-pipe.c (pipe_open): Adjust.
2687 * serial.c (serial_open): Add ``&'' prefix so that
2688 "async-hardwire" device can be explicitly selected. Work in
2689 progress.
2690 * ser-unix.c: Register "async-hardwire" device.
2691
2692Thu Sep 16 09:04:53 1999 Andrew Cagney <cagney@b1.cygnus.com>
2693
2694 * ser-unix.h: New file. Declare generic ser_unix functions.
2695 * ser-unix.c (ser_unix_nop_get_tty_state,
2696 ser_unix_nop_set_tty_state, ser_unix_nop_raw, ser_unix_wait_for,
2697 ser_unix_readchar, ser_unix_nop_noflush_set_tty_state,
2698 ser_unix_nop_print_tty_state, ser_unix_nop_setbaudrate,
2699 ser_unix_nop_setstopbits, ser_unix_write,
2700 ser_unix_nop_flush_output, ser_unix_nop_flush_input,
2701 ser_unix_nop_send_break, ser_unix_nop_drain_output): New
2702 functions.
2703 * ser-unix.c: Include <sys/wait.h>, <sys/socket.h>,
2704 "gdb_string.h".
2705
2706 * ser-tcp.c (_initialize_ser_tcp), ser-unix.c
2707 (_initialize_ser_hardwire), ser-pipe.c (_initialize_ser_tcp):
2708 Initialize ops vector using assignment.
2709
2710 * ser-pipe.c, ser-tcp.c, ser-unix.c: Include ser-unix.h.
2711
2712 * ser-pipe.c (pipe_get_tty_state, pipe_set_tty_state,
2713 pipe_return_0, pipe_raw, wait_for, pipe_readchar,
2714 pipe_noflush_set_tty_state, pipe_print_tty_state,
2715 pipe_setbaudrate, pipe_setstopbits, pipe_write), ser-tcp.c
2716 (tcp_get_tty_state, tcp_set_tty_state, tcp_return_0, tcp_raw,
2717 wait_for, tcp_readchar, tcp_noflush_set_tty_state,
2718 tcp_print_tty_state, tcp_setbaudrate, tcp_setstopbits, tcp_write):
2719 Delete functions.
2720
27211999-09-15 Stan Shebs <shebs@andros.cygnus.com>
2722
2723 * d10v-tdep.c (remote_d10v_translate_xfer_address): Move to here
2724 from remote-d10v.c, also change the memory translation to its
2725 previous version.
2726 * remote-d10v.c: Remove.
2727 * config/d10v/d10v.mt (TDEPFILES): Remove remote-d10v.o.
2728
de57eccd 27291999-09-15 Jim Blandy <jimb@cygnus.com>
c2c6d25f
JM
2730
2731 * breakpoint.c (remove_breakpoint): Return zero, not nothing.
2732
de57eccd 27331999-09-14 Jim Blandy <jimb@cygnus.com>
c2c6d25f
JM
2734
2735 * hppa-tdep.c (frame_chain): If the unwind info says we've saved
2736 r3, don't trust it. Call get_frame_saved_regs and see if we can
2737 actually find an address for r3 there.
2738
2739 * pa64solib.c (pa64_sharedlibrary_info_command): Text fix.
2740
2741Tue Sep 14 14:34:28 1999 Andrew Cagney <cagney@b1.cygnus.com>
2742
2743 * serial.h (DEPRECATED_SERIAL_FD): Define.
2744 * serial.c (deprecated_serial_fd): New function.
2745
2746 * remote.c (remote_async_open_1, remote_async_open_1,
2747 remote_async_detach, remote_async_kill,
2748 extended_remote_async_create_inferior, minitelnet): Update.
2749 * remote-es.c (es1800_open, es1800_close, es1800_transparent): Update.
2750
2751 * remote-st.c (connect_command), remote-os9k.c (connect_command):
2752 Fix. Call FD_SET et.al. with FD instead of serial_t.
2753
de57eccd 27541999-09-14 Jim Blandy <jimb@cygnus.com>
c2c6d25f
JM
2755
2756 * hppa-tdep.c (hppa_frame_find_saved_regs): The two possible
2757 instructions for saving the return pointer (32- and 64-bit) save
2758 it at different offsets.
2759
2760 * config/pa/tm-hppa64.h: Doc fix.
2761
2762 * defs.h (continuation): Make this a typedef.
2763
2764 * Makefile.in (gdbtk.o, gdbtk-cmds.o): Depend on $(top_h).
2765
2766 * Makefile.in (i386-linux-nat.o): Depend on symfile.h, not
2767 $(symfile_h); the latter has no definition.
2768
2769 * breakpoint.c (breakpoint_here_p): Remove meaningless code,
2770 testing b->enable against shlib_disabled and call_disabled after
2771 we know it is enabled.
2772
2773 Implement "permanent breakpoints" --- breakpoints that are
2774 hardwired into the inferior's code. GDB knows they're there, but
2775 doesn't try to insert or remove them, etc.
2776 * breakpoint.h (enum enable): Add `permanent' enablement state.
2777 * breakpoint.c (make_breakpoint_permanent): New function.
2778 * breakpoint.h (make_breakpoint_permanent): Add declaration.
2779 * breakpoint.c (insert_breakpoints): Don't bother to insert
2780 permanent breakpoints...
2781 (remove_breakpoint): ... or remove them.
2782 (breakpoint_here_p): Handle `permanent' like `enabled'. Change
2783 return value to indicate whether it's a permanent breakpoint here,
2784 or an ordinary breakpoint.
2785 * breakpoint.h (enum breakpoint_here): New enum.
2786 (breakpoint_here_p): Change declaration.
2787 * breakpoint.h (breakpoint_1): Extend bpenables to cover all the
2788 enablement states.
2789 (describe_other_breakpoints): Describe permanent breakpoints.
2790 (check_duplicates): If one of the breakpoints at ADDRESS is a
2791 permanent breakpoint, treat all the others as the duplicates, so
2792 we don't try to insert or remove any of them. Verify that only
2793 the permanent breakpoint is actually inserted.
2794 (delete_breakpoint): Complain if we discover that another
2795 breakpoint was inserted at the same place as a permanent
2796 breakpoint.
2797 (disable_breakpoint): Fail silently if asked to disable a
2798 permanent breakpoint.
2799 (do_enable_breakpoint): Don't change a permanent breakpoint's
2800 enablement to ordinary `enabled'. Leave it alone.
2801 (create_solib_event_breakpoint): Return the
2802 breakpoint object created.
2803 * breakpoint.h (create_solib_event_breakpoint): Fix declaration.
2804 * pa64solib.c (pa64_solib_create_inferior_hook): Do turn on the
2805 DT_HP_DEBUG_CALLBACK flag in the dynamic linker, so it will call
2806 __dld_break, which contains the permanent breakpoint, when interesting
2807 things happen. Tell GDB that the breakpoint in __dld_break is
2808 permanent.
2809 * gdbtk-cmds.c (gdb_get_breakpoint_info): Report a permanent
2810 breakpoint as enabled.
2811 * infrun.c (SKIP_PERMANENT_BREAKPOINT): Provide default definition.
2812 (default_skip_permanent_breakpoint): New function.
2813 (resume): If we're trying to resume at a permanent breakpoint, use
2814 SKIP_PERMANENT_BREAKPOINT to step over it.
2815 * hppa-tdep.c (hppa_skip_permanent_breakpoint): New function.
2816 * config/pa/tm-hppa.h (hppa_skip_permanent_breakpoint): Declare.
2817 (SKIP_PERMANENT_BREAKPOINT): Define.
2818
28191999-09-14 Kevin Buettner <kevinb@cygnus.com>
2820
2821 * symtab.h, minsyms.c (find_stab_function_addr): Changed
2822 type of second parameter from partial_symtab * to char *.
2823 Fixed all callers.
2824 * minsyms.c (find_stab_function_addr): Look for minimal
2825 symbol without filename if filename based search fails.
2826 * dbxread.c (process_one_symbol): Call find_stab_function_addr()
2827 in place of inline code with identical functionality.
2828 * partial-stab.h (case N_FUN, descriptors 'F' and 'f'): Look
2829 up symbol's address from minimal symbol table when N_FUN
2830 address is missing. Also, make sure this value is used for
2831 calculating the value of the texthigh field.
2832
28331999-09-14 Elena Zannoni <ezannoni@kwikemart.cygnus.com>
2834
2835 * event-loop.c (create_file_handler): Increment the total number
2836 of file descriptors for the poll case, only if this is a new file
2837 desc.
2838
28391999-09-14 Eli Zaretskii <eliz@is.elta.co.il>
2840
2841 * go32-nat.c: misc minor cleanups and fixes missed in last patch.
2842
2843Tue Sep 14 12:37:33 1999 Andrew Cagney <cagney@b1.cygnus.com>
2844
2845 * serial.h (SERIAL_PRINT_TTY_STATE): Add STREAM parameter.
2846 (union serial_ops): Update.
2847
2848 * ser-unix.c (hardwire_print_tty_state, ser-tcp.c
2849 (tcp_print_tty_state), ser-pipe.c (pipe_print_tty_state,
2850 ser-go32.c (dos_print_tty_state, ser-mac.c (mac_print_tty_state,
2851 ser-ocd.c (ocd_print_tty_state, ser-e7kpc.c
2852 (e7000pc_print_tty_state): Update.
2853 * inflow.c (child_terminal_info): Update.
2854 * serial.c (serial_print_tty_state): Update.
2855
2856Tue Sep 14 11:41:37 1999 Andrew Cagney <cagney@b1.cygnus.com>
2857
2858 * serial.c, serial.h, ser-tcp.c, ser-unix.c, ser-pipe.c: Convert
2859 all functions to ISO-C.
2860 * serial.h, serial.c: Move all indirect macro function calls from
2861 serial.h into serial.c.
2862 (serial_drain_output, serial_flush_output, serial_flush_input,
2863 serial_raw, serial_get_tty_state, serial_set_tty_state,
2864 serial_print_tty_state, serial_noflush_set_tty_state,
2865 serial_setbaudrate, serial_setstopbits): New functions.
2866 (do_serial_close): Rename serial_close.
2867 (serial_close, serial_un_fdopen): New functions. Call
2868 do_serial_close.
2869
28701999-09-13 James Ingham <jingham@leda.cygnus.com>
2871
2872 * symtab.c (decode_line_1): Find the rightmost parenthesis in the
2873 expression, not the leftmost. This allows us to parse function
2874 declarations with embedded function prototypes.
2875
2876Mon Sep 13 18:39:31 1999 Jeffrey A Law (law@cygnus.com)
2877
2878 * pa64solib.c (pa64_sharedlibrary_info_command): Fix typos.
2879
28801999-09-13 Kevin Buettner <kevinb@cygnus.com>
2881
2882 * i386-tdep.c (i386_extract_return_value): ifdef'd so that
2883 non-linux targets will work again.
2884 (i386_do_registers_info, i386_print_register): Revert changes
2885 of 1999-09-03; these functions have been removed because they
2886 are Linux specific and break non-Linux builds. This functionality
2887 will be restored after FP support unification has been achieved.
2888 * i387-tdep.c (i387_print_register, void i387_float_info):
2889 Likewise.
2890 * config/i386/tm-linux.h (i387_float_info, FLOAT_INFO,
2891 DO_REGISTERS_INFO, i386_do_registers_info,
2892 i387_print_register): Likewise.
2893
28941999-09-13 Elena Zannoni <ezannoni@kwikemart.cygnus.com>
2895
2896 * event-top.c (call_readline): Change to accept gdb_client_data as
2897 param.
2898 (rl_callback_read_char_wrapper): New function to match what the
2899 event loop expects and what readline expects.
2900 (change_line_handler): Make call_readline point to
2901 rl_callback_read_char_wrapper, instead of rl_callback_read_char.
2902 (_initialize_event_loop): Ditto.
2903 (gdb_readline2): Change parameter to gdb_client_data.
2904 * event-top.h (call_readline, gdb_readline2): Change accordingly.
2905
2906 * event-loop.c (add_file_handler): Change 2nd par to
2907 handler_func*. No more need for casting.
2908 * event-loop.h (create_async_signal_handler): Change accordingly.
2909
2910 * inferior.h (fetch_inferior_event): Change parameter to void*.
2911 * infrun.c (fetch_inferior_event): Ditto.
2912
29131999-09-13 Stan Shebs <shebs@andros.cygnus.com>
2914
2915 * infrun.c (step_into_function): New function, broken out from the
2916 step_into_function label in handle_inferior_event.
2917 (handle_inferior_event): Change a goto into a function call.
2918
29191999-09-13 Elena Zannoni <ezannoni@kwikemart.cygnus.com>
2920
2921 * event-top.h: New file. All the exported vars and functions from
2922 event-top.c.
2923
2924 * event-loop.h (struct gdb_event, event_handler_func,
2925 file_handler, async_signal_handler, SELECT_MASK, fd_mask, NBBY,
2926 FD_SETSIZE, howmany, NFDBITS, MASK_SIZE): Move to event-loop.c.
2927 (struct prompts, PROMPT, PREFIX, SUFFIX, display_gdb_prompt,
2928 async_init_signals, set_async_editing_command,
2929 set_async_annotation_level, set_async_prompt, handle_stop_sig,
2930 handle_sigint, pop_prompt, push_prompt, gdb_readline2,
2931 mark_async_signal_handler_wrapper, async_request_quit,
2932 async_command_editing_p, exec_done_display_p,
2933 async_annotation_suffix, new_async_prompt, the_prompts,
2934 call_readline, input_handler, input_fd): Move to event-top.h.
2935 (All function prototypes): Don't use PARAMS anymore.
2936
2937 * event-loop.c: (struct gdb_event, event_handler_func,
2938 file_handler, async_signal_handler, SELECT_MASK, fd_mask, NBBY,
2939 FD_SETSIZE, howmany, NFDBITS, MASK_SIZE): Move to here from
2940 event-loop.h.
2941 Include event-top.h. Remove use of PARAMS. ANSIfy functions headers.
2942
2943 * event-top.c: Include event-top.h. Include "signals.h", not
2944 <signals.h>.
2945 Remove use of PARAMS. ANSIfy functions headers.
2946 (handle_stop_sig): move prototype to event-top.h.
2947
2948 * remote.c: Include event-top.h. Make it understand
2949 async_signal_handler type.
2950 * infrun.c: Include event-top.h.
2951 * mi-main.c: Ditto.
2952 * top.c Ditto.
2953 * utils.c: Ditto.
2954
cff3e48b
JM
2955Mon Sep 13 18:54:05 1999 Andrew Cagney <cagney@b1.cygnus.com>
2956
2957 * gdbarch.sh: Describe each of the fields.
2958
2959Mon Sep 13 17:51:28 1999 Andrew Cagney <cagney@b1.cygnus.com>
2960
de57eccd 2961 From 1999-09-12 Jim Blandy <jimb@cygnus.com>:
cff3e48b
JM
2962 * gdbarch.sh (generating setters): Use sed to generate the proper
2963 indentation, not tr; tr's behavior is notoriously unportable.
2964
29651999-09-10 Jim Blandy <jimb@zwingli.cygnus.com>
2966
2967 * i387-tdep.c (print_387_control_bits): Don't print newline; the
2968 callers take care of that. (Thanks to H.J. Lu.)
2969
29701999-09-09 Stan Shebs <shebs@andros.cygnus.com>
2971
2972 * d10v-tdep.c (DMEM_START): Set to 0x2000000.
2973 (itrace, iuntrace, info itrace, itdisassemble, itracedisplay,
2974 itracesource): Add 'i' prefix to commands, so as not to conflict
2975 with generic trace commands.
2976
29771999-09-09 Fernando Nasser <fnasser@totem.to.cygnus.com>
2978
2979 * remote.c (_initialize_remote): Fix the specification of the
2980 "remote" prefix to set and show commands.
2981
29821999-09-09 Elena Zannoni <ezannoni@kwikemart.cygnus.com>
2983
2984 * event-loop.c (create_file_event): New function. Creates a gdb
2985 event for a given fd.
2986 (gdb_wait_for_event): Use create_file_event().
2987 * event-loop.h: export create_file_event().
2988
2989 * event-loop.c (delete_file_handler): Move the clearing of the
2990 mask to later on in the function, because we need it in order to
2991 deactivate the correct fd when using select().
2992
2993 * m32r-tdep.c (decode_prologue): Fix typo. Instructions starting
2994 with 0xf are branch instructions.
2995 (m32r_scan_prologue): Initialize framesize to 0.
2996
d4f3574e
SS
29971999-09-07 J.T. Conklin <jtc@redback.com>
2998
2999 * i386-stub.c (exceptionHook, oldExceptionHook): Removed.
3000 (handle_exception): Removed #if'd out exception hook code.
3001
3002 * i386-stub.c, m68k-stub.c (error): Removed unused variable.
3003
3004 * i386-stub.c, m68k-stub.c, sh-stub.c, sparc-stub.c,
3005 sparcl-stub.c, sparclet-stub.c (remcomInBuffer, remcomOutBuffer):
3006 Make static.
3007
3008Tue Sep 7 14:06:22 1999 Kevin Buettner <kevinb@cygnus.com>
3009
3010 * config/i386/tm-linux.h (SOFUN_ADDRESS_MAYBE_MISSING):
3011 Define.
3012
3013Tue Sep 7 08:18:01 1999 Kevin Buettner <kevinb@cygnus.com>
3014
3015 From Jim Blandy <jimb@cygnus.com>:
3016
3017 Step into calls to functions in shared libraries properly. See
3018 the comments for SKIP_SOLIB_RESOLVER atop infrun.c for details.
3019 * infrun.c (SKIP_SOLIB_RESOLVER): New macro.
3020
30211999-09-05 Fred Fish <fnf@cygnus.com>
3022
3023 * elfread.c (elf_symtab_read): Remove separately passed bfd
3024 pointer and offset. Pick up bfd pointer from objfile, and
3025 get offset from objfile's section_offsets.
3026
3027Fri Sep 3 22:29:39 1999 Kevin Buettner <kevinb@cygnus.com>
3028
3029 * config/i386/tm-linux.h (REGISTER_NAMES): Changed register
3030 named "foo" to "fopo" which more accurately describes the FPU
3031 Operand Pointer Offset. The real reason for this change, of
3032 course, is that many programmers use $foo as a convenience
3033 variable and are likely to be unpleasantly surprised to find
3034 that they're unwittingly changing the state of their ia32 FPU.
3035
30361999-09-03 Jason Molenda (jsm@bugshack.cygnus.com)
3037
3038 * monitor.c (monitor_supply_register): Stop scanning val string
3039 if a newline is encountered.
3040
30411999-09-03 Jason Molenda (jsm@bugshack.cygnus.com)
3042
3043 monitor.c (TARGET_BUF_SIZE): New macro, defined to 2048.
3044 (monitor_expect_regexp, monitor_wait, monitor_dump_reg_block,
3045 monitor_dump_reg_block): Dump hard-coded constants in favor
3046 of TARGET_BUF_SIZE.
3047
3048 (readchar): Re-enable output of characters read from monitor when
3049 remotedebug is set.
3050
3051 (monitor_supply_register): Use ULONGEST to hold value.
3052 Replace strtoul() call with hand-coded loop to handle values
3053 larger than 'long'.
3054
3055 (monitor_store_register): Use ULONGEST to hold value.
3056
3057Fri Sep 3 00:47:44 1999 Kevin Buettner <kevinb@cygnus.com>
3058
3059 [Merged linux/x86 floating point code from Bill Metzenthen,
cff3e48b 3060 Jim Blandy, Anthony Green, H. J. Lu, and possibly others. The
d4f3574e
SS
3061 following remarks are Jim Blandy's.]
3062
3063 * findvar.c (extract_floating): Call TARGET_EXTRACT_FLOATING, if
3064 #defined.
3065 (store_floating): Call TARGET_STORE_FLOATING, if #defined.
3066
3067 * i386-tdep.c (i386_print_register, i386_do_registers_info): New
3068 functions.
3069 (i386_extract_return_value): GNU/Linux returns floating point
3070 values in a floating point register too.
3071 (set_disassembly_flavor): Add prototype.
3072 (i386_extract_return_value): Use FPDATA_REGNUM, not FP0_REGNUM (
3073 which wasn't the first FP data register).
3074 (i386_do_registers_info): Use FPSTART_REGNUM and FPEND_REGNUM as
3075 the limits of the FPU-related registers.
3076 (i386_extract_return_value): Tell GDB how to find return values
3077 larger than four bytes. (Thanks to Paul N. Hilfinger for the bug
3078 report.)
3079
3080 * i387-tdep.c (print_387_control_word): Break out bit-splitting into...
3081 (print_387_control_bits): New function.
3082 (print_387_status_word): Break out bit-splitting into...
3083 (print_387_status_bits): New function.
3084 (i387_print_register, i387_float_info, i387_hex_float_input): New
3085 functions.
3086 (i387_extract_floating, i387_store_floating): New functions.
3087
3088 * valprint.c (print_floating): Use macro TARGET_ANALYZE_FLOATING,
3089 if it's #defined. Tolerate values of `nonnegative' other than
3090 zero and one.
3091
3092 * i386-linux-nat.c: New file.
3093 * Makefile.in (ALLDEPFILES): Mention i386-linux-nat.c.
3094 (i386-linux-nat.o): New rule, listing dependencies.
3095 * config/i386/linux.mh (NATDEPFILES): Use i386-linux-nat.o, not
3096 the plain i386v4-nat.o.
3097 * config/i386/nm-linux.h (FETCH_INFERIOR_REGISTERS): Define.
3098 * config/i386/xm-linux.h: Define HOST_I386.
3099
3100 * config/i386/tm-linux.h (FP0_REGNUM): Replaced by...
3101 (FPSTART_REGNUM, FPCONTROL_REGNUM, FPSTATUS_REGNUM, FPTAG_REGNUM,
3102 FPDATA_REGNUM, FPEND_REGNUM): New definitions.
3103 (REGISTER_BYTES): Changed accordingly.
3104 (SKIP_SOLIB_RESOLVER): #define this.
3105 (i386_linux_skip_solib_resolver): New declaration.
3106 (i387_float_info): Added extern decl for this function.
3107 (TARGET_EXTRACT_FLOATING, TARGET_STORE_FLOATING,
3108 TARGET_ANALYZE_FLOATING): Define.
3109 (i387_extract_floating, i387_store_floating): New extern decls.
3110 (I386_GNULINUX_TARGET): Define.
3111 (NUM_REGS, NUM_FREGS, REGISTER_NAMES, FP0_REGNUM, FPDATA_REGNUM,
3112 FPENV_BYTES, FPREG_RAW_SIZE, FPREG_BYTES, REGISTER_BYTES,
3113 REGISTER_BYTE, REGISTER_RAW_SIZE, REGISTER_VIRTUAL_SIZE,
3114 MAX_REGISTER_RAW_SIZE, MAX_REGISTER_VIRTUAL_SIZE,
3115 TARGET_LONG_DOUBLE_BIT, FLOAT_INFO, DO_REGISTERS_INFO): New
3116 definitions, perhaps overriding those inherited from
3117 config/i386/tm-i386.h.
3118 (i386_do_registers_info, i387_print_register, double_to_i387,
3119 i387_to_double): New declarations.
3120 (LD_I387): Define iff both the host and target are using i387
3121 FPU's.
3122 (HEX_FLOAT_INPUT, REGISTER_CONVERTIBLE,
3123 REGISTER_CONVERT_TO_VIRTUAL, REGISTER_CONVERT_TO_RAW,
3124 REGISTER_VIRTUAL_TYPE): Define these if LD_I387 is defined.
3125
3126 * source.c (list_command): List the right number of source lines,
3127 even if we're at the top of the file.
3128
31291999-09-02 Stan Shebs <shebs@andros.cygnus.com>
3130
3131 * infrun.c (step_over_function): New function, broken out from the
3132 step_over_function label in handle_inferior_event.
3133 (handle_inferior_event): Change a goto into a function call.
3134
3135Thu Sep 2 18:26:04 1999 Andrew Cagney <cagney@b1.cygnus.com>
3136
3137 * Makefile.in (GDB_WERROR_CFLAGS, GBB_WARN_CFLAGS): Define.
3138 (INTERNAL_CFLAGS): Update
3139 * configure.in (WERROR_CFLAGS, WARN_CFLAGS): Sync with
3140 ../sim/common/aclocal.m4.
3141 * configure: Re-generate.
3142
3143Thu Sep 2 00:27:36 1999 Andrew Cagney <cagney@b1.cygnus.com>
3144
3145 * Makefile.in (z8k-tdep.o): For moment, don't try to compile with
3146 -Werror. See Makefile.in.
3147 * z8k-tdep.c (z8k_set_pointer_size): Document problem.
3148
3149 * config/z8k/tm-z8k.h (z8k_print_register_hook, z8k_frame_chain,
3150 z8k_saved_pc_after_call, z8k_frame_saved_pc,
3151 z8k_set_pointer_size): Declare.
3152 (z8k_skip_prologue): Fix typo. Was mz8k_skip_prologue.
3153 (FRAME_CHAIN, PRINT_REGISTER_HOOK, FRAME_SAVED_PC,
3154 SAVED_PC_AFTER_CALL): Update.
3155 * z8k-tdep.c (z8k_print_register_hook): Rename
3156 z8k_print_register_hook.
3157 (z8k_frame_chain): Rename frame_chain.
3158 (z8k_saved_pc_after_call): Rename saved_pc_after_call.
3159 (z8k_frame_saved_pc): Rename frame_saved_pc.
3160 (z8k_print_register_hook): Fix printf.
3161 (read_memory_pointer): Add declaration.
3162 ("value.h"): Include.
3163 * Makefile.in (z8k-tdep.o): Add dependency on value.h.
3164
3165 * config/sparc/tm-sparc.h (PRINT_EXTRA_FRAME_INFO): Fix
3166 printf. calls
3167 * Makefile.in (remote-e7000.o): For moment, don't try to compile
3168 with -Werror. See Makefile.in.
3169 * sh-tdep.c (sh_show_regs): Fix printf calls.
3170 * xcoffsolib.c (solib_info): Fix Printf calls.
3171 * dink32-rom.c: #include "symfile.h" for generic_load and
3172 "inferior.h" for write_pc.
3173 * Makefile.in (dink32-rom.o): Update.
3174
3175 * config/mn10300/tm-mn10300.h (mn10300_store_struct_return),
3176 config/mn10200/tm-mn10200.h (mn10200_store_struct_return): Add
3177 declarations.
3178
3179Tue Aug 31 00:48:27 1999 Andrew Cagney <cagney@amy.cygnus.com>
3180
3181 * config/mips/tm-tx49el.h (REGISTER_SIM_REGNO): Define.
3182
3183 * remote-sim.c (gdbsim_fetch_register, gdbsim_store_register):
3184 Pass REGISTER_SIM_REGNO converted register number to the
3185 simulator.
3186
31871999-09-01 Tom Tromey <tromey@cygnus.com>
3188
3189 * config/i386/nm-linux.h (PREPARE_TO_PROCEED): Added argument.
3190
31911999-09-01 Elena Zannoni <ezannoni@kwikemart.cygnus.com>
3192
3193 * values.c (value_virtual_fn_field): Remove unused var(s).
3194 * thread.c (prune_threads): Ditto.
3195 * symtab.c (lookup_transparent_type): Ditto.
3196 (decode_line_1): Ditto.
3197 (make_symbol_overload_list): Ditto.
3198 * rs6000-tdep.c (frame_get_saved_regs): Ditto.
3199 (set_processor): Ditto.
3200 * remote.c (remote_remove_breakpoint): Ditto.
3201 (remote_query): Ditto.
3202 (readtty): Ditto.
3203 * remote-sds.c (sds_fetch_registers): Ditto.
3204 (putmessage): Ditto.
3205 * ppcbug-rom.c (ppcbug_supply_register): Ditto.
3206 (ppcbug_open): Remove unused prototype.
3207 * parse.c (parse_nested_classes_for_hpacc): Remove unused var(s).
3208 * ocd.c (ocd_open): Ditto.
3209 (ocd_get_packet): Ditto.
3210 * monitor.c (monitor_error): Ditto.
3211 (monitor_wait_srec_ack): Ditto.
3212 * main.c (main): Ditto.
3213 * gdbtypes.c (count_virtual_fns): Ditto.
3214 * exec.c (exec_file_command): Ditto.
3215
3216 * event-top.c: Include handle_sigwinch() function prototype within
3217 appropriate #ifdef.
3218
3219 * eval.c (evaluate_subexp_standard): Remove unused variable.
3220 (evaluate_subexp_standard): Remove unused variables.
3221 * dink32-rom.c (dink32_supply_register): Remove unused variable.
3222 * dbxread.c (elfstab_build_psymtabs): Ditto.
3223 * command.c (do_setshow_command): Ditto.
3224 * breakpoint.c (solib_load_unload_1): Remove unused variables 'i'
3225 and 'sal'.
3226 (until_break_command): Remove unused variables 'arg1' and 'arg2'.
3227 (create_exception_catchpoint): Remove unused variable 'i'.
3228 * ax-gdb.c (gen_sub): Remove unused variable.
3229 (_initialize_ax_gdb): Ditto.
3230
3231 * ser-pipe.c (pipe_readchar): If timeout is expired return
3232 SERIAL_TIMEOUT.
3233 * ser-tcp.c (tcp_readchar): If timeout is expired return
3234 SERIAL_TIMEOUT.
3235
3236Wed Sep 1 15:07:25 1999 Andrew Cagney <cagney@b1.cygnus.com>
3237
3238 * version.h: New file.
3239 * Makefile.in (version_h): Define.
3240 (version.o): Add target.
3241
3242 * remote-array.c: #include "version.h".
3243 (version): Delete extern declarations.
3244 * Makefile.in (remote-array.o): Add dependency on version.h.
3245
3246 * top.c: #include "version.h".
3247 (version, host_name, target_name): Delete extern declarations.
3248 * Makefile.in (top.o): Add dependency on version.h.
3249
3250 * remote.c (remote_remove_watchpoint, remote_insert_watchpoint),
3251 remote-array.c (array_open), remote-mips.c (send_srec),
3252 dve3900-rom.c (store_bitmapped_register): Fix Printfs.
3253
3254 * mips-tdep.c (mips_print_extra_frame_info, print_unpack),
3255 m32r-rom.c (m32r_load_section), m32r-tdep.c (m32r_frame_chain),
3256 dsrec.c (load_srec): Fix printf problems.
3257
3258Wed Sep 1 13:16:49 1999 Andrew Cagney <cagney@b1.cygnus.com>
3259
3260 * Makefile.in (monitor.o): For moment, don't try to compile with
3261 -Werror. monitor.c has -Wformat problems. See Makefile.in for
3262 more info.
3263
3264Tue Aug 31 21:23:38 1999 Jeffrey A Law (law@cygnus.com)
3265
3266 * hppa-tdep.c (prologue_inst_adjust_sp): Correct offset computation
3267 for doubleword store instructions.
3268 (hppa_frame_find_saved_regs): Similarly.
3269
3270Wed Sep 1 09:22:50 1999 Andrew Cagney <cagney@b1.cygnus.com>
3271
3272 * d30v-tdep.c (d30v_print_register):
3273 (tdisassemble_command):
3274
3275 * d10v-tdep.c (show_regs, trace_info, tdisassemble_command): Fix
3276 printf problems.
3277
3278 * remote-sim.c (dump_mem), remote-rdi.c (arm_rdi_create_inferior):
3279 Fix printf arguments.
3280
3281 * remote-mips.c, mips-tdep.c: Move declaration of
3282 ``mips_set_processor_type_command'' from here.
3283 * config/mips/tm-mips.h: To here.
3284 * remote-array.c: #include "inferior.h".
3285 * config/mips/tm-embed.h (remote_mips_stopped_by_watchpoint): Add
3286 declaration.
3287 * remote-mips.c (remote_mips_stopped_by_watchpoint): Define using
3288 ISO-C prototype.
3289 (monitor_supports_breakpoints): Integer variable.
3290
3291 * m32r-rom.c: #include "inferior.h" and <ctype.h>
3292 * config/m32r/tm-m32r.h (m32r_write_sp): Add declaration.
3293
3294 * config/i960/tm-i960.h (leafproc_return, i960_pop_frame): Add
3295 declaration.
3296 (POP_FRAME): Call i960_pop_frame.
3297 * i960-tdep.c (i960_pop_frame): Rename pop_frame.
3298 * mon960-rom.c: #include "inferior.h" for declaration of write_pc.
3299
33001999-08-15 Fred Fish <fnf@cygnus.com>
3301
3302 * objfiles.c (objfile_relocate): Use SIZEOF_SECTION_OFFSETS when
3303 allocating section_offsets array.
3304 * remote-os9k.c (rombug_wait): Ditto.
3305 * remote-vx.c (vx_add_symbols): Ditto.
3306 * remote.c (get_offsets): Ditto.
3307 (remote_cisco_objfile_relocate): Ditto.
3308 * rs6000-nat.c (vmap_symtab): Ditto.
3309
3310 * dstread.c (dst_symfile_offsets): Set section_offsets directly instead
3311 of returning a pointer to section offsets.
3312 * somread.c (som_symfile_offsets): Ditto.
3313 * xcoffread.c (xcoff_symfile_offsets): Ditto.
3314 * symfile.c (default_symfile_offsets): Ditto.
3315 (syms_from_objfile): The sym_offsets function has already set section
3316 offsets and no longer returns a value.
3317
3318 * xcoffread.c (scan_xcoff_symtab): Eliminate section_offsets passed
3319 separate from objfile.
3320 (xcoff_start_psymtab): Ditto.
3321 (START_PSYMTAB): Ditto.
3322 * os9kread.c (read_minimal_symbols): Ditto.
3323 (read_os9k_psymtab): Ditto.
3324 (os9k_start_psymtab): Ditto.
3325 (record_minimal_symbol): Ditto.
3326 * dbxread.c (START_PSYMTAB): Ditto.
3327 (start_psymtab): Ditto.
3328 * mdebugread.c (START_PSYMTAB): Ditto.
3329 (elfmdebug_build_psymtabs): Ditto.
3330 (mdebug_build_psymtabs): Ditto.
3331 (parse_partial_symbols): Ditto.
3332 (new_psymtab): Ditto.
3333 * dwarfread.c (dwarf_build_psymtabs): Ditto.
3334 * partial-stab.h (START_PSYMTAB): Ditto.
3335 * stabsread.h (start_psymtab): Ditto.
3336 * dwarf2read.c (dwarf2_build_psymtabs): Ditto.
3337 (dwarf2_build_psymtabs_easy): Ditto.
3338 (dwarf2_build_psymtabs_hard): Ditto.
3339 * hp-psymtab-read.c (hpread_build_psymtabs): Ditto.
3340 (hpread_quick_traverse): Ditto.
3341 (hpread_start_psymtab): Ditto.
3342 (scan_procs): Ditto.
3343 * hpread.c (hpread_build_psymtabs): Ditto.
3344 * symfile.h (dwarf2_build_psymtabs): Ditto.
3345
3346 * dbxread.c (read_dbx_symtab): Use ANOFFSET to access section
3347 offsets.
d4f3574e
SS
3348 * coffread.c (enter_linenos): Pass objfile instead of section
3349 offsets.
d4f3574e
SS
3350
3351 * dbxread.c (dbx_symfile_read): No need to explicitly pass
3352 text addr and size. Let read_dbx_symtab find them.
3353 (read_dbx_symtab): Get text addr and size from objfile.
3354 (dbx_symfile_read): Remove dead code (call to strlen);
3355
33561999-08-31 Michael Snyder <msnyder@cleaver.cygnus.com>
3357
3358 * Makefile.in: add rule for sol-thread.o.
3359 Add rule for linux-thread.o.
3360
33611999-08-13 Jim Kingdon <kingdon@redhat.com>
3362
3363 Threads code from gdb 4.18-codefusion-990706
cff3e48b 3364 [Thanks to Eric Paire, H. J. Lu, Jim Blandy and others]
d4f3574e
SS
3365 * infrun.c (signal_stop_update, signal_print_update,
3366 signal_pass_update): new functions.
3367 * inferior.h: new prototypes for above functions.
3368 * target.h (enum strata): add thread stratum.
3369 * linux-thread.c: new file. Support for debugging linux threads.
3370 * config/i386/nm-linux.h: several new prototypes for above.
3371 * config/i386/linux.mh: add linux-thread.o to NATDEPFILES.
3372
3373 More threads code from the same place:
3374 * config/i386/tm-linux.h (REALTIME_LO, REALTIME_HI): Add
3375 definitions.
3376 * target.h (enum target_signal): Add TARGET_SIGNAL_REALTIME_32.
3377 * target.c (signals, target_signal_from_host,
3378 target_signal_to_host): Add clauses for
3379 TARGET_SIGNAL_REALTIME_32.
3380
33811999-08-31 Neil Schellenberger <neil.schellenberger@crosskeys.com>
3382
3383 * sol-thread.c (sol_thread_detach): strip thread-id out of
3384 inferior_pid, so that procfs_detach can't choke on it.
3385
33861999-08-31 J.T. Conklin <jtc@redback.com>
3387
3388 * i386-stub.c, m32r-stub.c, m68k-stub.c, sh-stub.c, sparc-stub.c,
3389 sparcl-stub.c, sparclet-stub.c (getpacket): Remove 'buffer' arg,
3390 define it as a pointer to &remcomInBuffer[0].
3391 (handle_exception): Update.
3392
3393 * sparc-stub.c, sparcl-stub.c, sparclet-stub.c (handle_exception):
3394 Removed #ifdef'd out code which implements the non-standard 'b'
3395 (set baud rate) command.
3396
33971999-08-31 Stan Shebs <shebs@andros.cygnus.com>
3398
3399 * infrun.c (keep_going): New function, broken out from the
3400 keep_going label in handle_inferior_event.
3401 (handle_inferior_event): Change more gotos into function calls.
3402
3403Tue Aug 31 02:29:27 1999 Jeffrey A Law (law@cygnus.com)
3404
3405 * hppa-tdep.c (read_unwind_info): Handle multiple unwind sections.
3406
3407Tue Aug 31 15:28:44 1999 Andrew Cagney <cagney@b1.cygnus.com>
3408
3409 * config/alpha/tm-alpha.h (PRINT_EXTRA_FRAME_INFO): Fix printf
3410 format argument.
3411 * alpha-tdep.c (heuristic_proc_start): Ditto.
3412
3413 From Stan Shebs <shebs@andros.cygnus.com>:
3414 * defs.h (strlen_paddr): Fix prototype - add void argument list.
3415
3416Tue Aug 31 14:02:12 1999 Andrew Cagney <cagney@b1.cygnus.com>
3417
3418 * defs.h (gdb_print_host_address), utils.c
3419 (gdb_print_host_address): Rename gdb_print_address.
3420
3421 * expprint.c, gdbtypes.c, symmisc.c: Update.
3422
3423 *expprint.c: Use gdb_print_host_address when displaying native
3424 pointers.
3425
3426Sat Aug 28 14:23:29 1999 Andrew Cagney <cagney@b1.cygnus.com>
3427
3428 * scm-valprint.c (scm_ipruk), jv-valprint.c (java_value_print),
3429 cp-valprint.c (cp_print_class_member), exec.c (exec_files_info),
3430 remote.c (putpkt_binary, compare_sections_command,
3431 remote_cisco_section_offsets), dcache.c (dcache_info),
3432 breakpoint.c (break_at_finish_at_depth_command_1,
3433 break_at_finish_command_1), symfile.c (generic_load),
3434 (report_transfer_performance), top.c (get_prompt_1), f-valprint.c
3435 (f_val_print), maint.c (maintenance_translate_address): Fix printf
3436 -Wformat warnings. Use paddr, paddr_nz, sizeof_paddr, paddr_u and
3437 paddr_d to print addresses. Change ``d'' to ``ld''.
3438
3439 * utils.c (strlen_paddr): New function.
3440
3441Tue Aug 31 01:36:44 1999 Andrew Cagney <cagney@b1.cygnus.com>
3442
3443 * config/d30v/tm-d30v.h (d30v_frame_chain,
3444 d30v_init_frame_pc): Add declaration.
3445
3446 * arc-tdep.c (arc_pop_frame): Rename pop_frame.
3447 (arc_push_dummy_frame): Rename push_dummy_frame.
3448 (arc_set_cpu_type_command): Add declaration.
3449
3450 * config/arc/tm-arc.h (arc_pop_frame, arc_push_dummy_frame): Add
3451 declaration.
3452
104c1213
JM
34531999-08-30 Stan Shebs <shebs@andros.cygnus.com>
3454
3455 * infrun.c (prepare_to_wait): New function, broken out from the
3456 wfi_continue label in handle_inferior_event.
3457 (handle_inferior_event): Change more gotos into function calls.
3458
34591999-08-30 Michael Snyder <msnyder@cleaver.cygnus.com>
3460
3461 * tracepoint.c: -Wall warning cleanup.
3462 (parse_and_eval_memrange): remove (unused).
3463 (output_command, args_info, locals_info, registers_info): add decls.
3464 (getpkt, putpkt, remote_console_output): add decls.
3465 (isalnum, isspace): cast arg to avoid warning.
3466 (printf, fprintf, sprintf): use [fs]printf_vma for printing addrs.
3467
3468Mon Aug 30 21:47:58 1999 Andrew Cagney <cagney@b1.cygnus.com>
3469
3470 * d10v-tdep.c: #include "language.h".
3471
3472Mon Aug 30 20:38:57 1999 Andrew Cagney <cagney@b1.cygnus.com>
3473
3474 * configure.in (AC_CHECK_HEADERS): Check for <time.h>.
3475 * configure, acconfig.in: Re-generate.
3476
3477 * remote-rdp.c: #include <time.h>
3478
3479 * config/arm/tm-arm.h (arm_float_info): Add declaration.
3480
3481 * arm-tdep.c (convert_from_extended, convert_to_extended): Change
3482 double ptr arg to void ptr arg.
3483
3484 * config/arm/tm-arm.h (arm_frameless_function_invocation): Add
3485 declaration.
3486 (arm_frame_find_saved_regs): Rename frame_find_saved_regs.
3487 (convert_from_extended, convert_to_extended): Add declaration.
3488
3489Mon Aug 30 19:05:32 1999 Andrew Cagney <cagney@b1.cygnus.com>
3490
3491 * configure.in (WERR_CFLAGS): Separate the -Werror flag.
3492 * configure: Re-generate.
3493
3494 * Makefile.in (INTERNAL_CFLAGS): Re-define using
3495 INTERNAL_WARN_CFLAGS.
3496 (INTERNAL_WARN_CFLAGS): Define. Leave off WERR_CFLAGS.
3497 (tracepoint.o): Add explicit rule.
3498 (WERR_CFLAGS): Add definition.
3499
3500Mon Aug 30 17:52:17 1999 Andrew Cagney <cagney@b1.cygnus.com>
3501
3502 * utils.c: #include "event-loop.h" for declaration of
3503 async_request_quit.
3504 * Makefile.in (utils.o): Add dependency on event-loop.h.
3505
3506 * event-top.c (mark_async_signal_handler_wrapper,
3507 async_request_quit): Move declaration from here.
3508 * event-loop.h: To here.
3509
3510 * defs.h: Add declaration of exec.c:exec_set_section_offsets.
3511
3512 * event-top.c: #include "gdbcmd.h" which includes "command.h" and
3513 hence expose declaration of function dont_repeat.
3514
3515 * top.c (ISATTY), tracepoint.c (ISATTY), utils.c (ISATTY),
3516 event-top.c (ISATTY): Move definitions from here.
3517 * defs.h (ISATTY): To here. #include <unistd.h>.
3518
3519 * sol-thread.c, solib.c, source.c, sparcl-tdep.c, tracepoint.c,
3520 utils.c, win32-nat.c, wince.c, top.c, symfile.c, ser-unix.c,
3521 ser-tcp.c, procfs.c, maint.c, infttrace.c, hppa-tdep.c,
3522 ser-pipe.c, remote-rdp.c, main.c, inftarg.c, inflow.c,
3523 hpux-thread.c, hp-psymtab-read.c, go32-nat.c, fork-child.c,
3524 corelow.c, command.c: Do not #include <unistd.h>, moved to defs.h.
3525
3526Mon Aug 30 15:14:43 1999 Andrew Cagney <cagney@b1.cygnus.com>
3527
3528 * defs.h (struct tui_stream, enum streamtype): Move from here.
3529 * utils.c: To here.
3530
3531 * main.c (tui_file_fputs): Move from here.
3532 * utils.c: To here.
3533
3534Sun Aug 29 10:03:32 1999 Andrew Cagney <cagney@b1.cygnus.com>
3535
3536 * gdb-events.h, gdb-events.c, gdb-events.sh: New files.
3537
35381999-08-27 Michael Snyder <msnyder@cleaver.cygnus.com>
3539
3540 * solib.c (open_symbol_file_object): new function.
3541 Called when attaching to a new process, if there is no loaded
3542 symbol file. Attempts to locate the executable file for the
3543 attached process and load symbols from it.
3544 (solib_add): Call open_symbol_file_object if attaching to a
3545 new process and no open symbol file.
3546
35471999-08-27 Jason Molenda (jsm@bugshack.cygnus.com)
3548
3549 * config/i386/tm-sun386.h (GDB_TARGET_IS_SUN386): Definition
3550 removed--no longer checked anywhere in gdb.
3551
35521999-08-27 Stan Shebs <shebs@andros.cygnus.com>
3553
3554 * infrun.c (stop_stepping): New function, broken out from
3555 stop_stepping label in handle_inferior_event.
3556 (handle_inferior_event): Change gotos into function calls.
3557
3558Fri Aug 27 20:13:22 1999 Andrew Cagney <cagney@b1.cygnus.com>
3559
3560 * defs.h (LONGEST): Move definition to earlier in file - to just
3561 after BFD.
3562 (paddr_u, paddr_d): Declare.
3563 * utils.c (decimal2str): New function.
3564 (paddr_u, paddr_d): Define.
3565
3566 * remote.c (remote_cisco_section_offsets,
3567 compare_sections_command): Fix XprintfX arguments. Use paddr...
3568 (putpkt_binary): Fix XprintfX arguments.
3569
3570Tue Aug 24 21:30:36 1999 Andrew Cagney <cagney@b1.cygnus.com>
3571
3572 * arm-tdep.c (arm_init_extra_frame_info): Add braces. Recommended
3573 by gcc -Wparentheses.
3574
35751999-08-26 Stan Shebs <shebs@andros.cygnus.com>
3576
3577 * infrun.c (check_sigtramp2): New function, broken out from
3578 check_sigtramp2 label in handle_inferior_event.
3579 (handle_inferior_event): Change gotos into function calls.
3580
3581 Declare Tahoe configuration obsolete.
3582 * configure.host, configure.tgt: Comment out Tahoe configs.
3583 * Makefile.in: Comment out Tahoe-related action.
3584 * tahoe-tdep.c, config/tahoe/*: Comment out.
3585 * NEWS: Mention obsolete status.
3586
35871999-08-26 J.T. Conklin <jtc@redback.com>
3588
3589 * i386-stub.c, m32r-stub.c, m68k-stub.c, sh-stub.c, sh-stub.c,
3590 sparc-stub, sparcl-stub.c sparclet-stub.c (getpacket): If '$',
3591 the packet start character is received in the 'middle' of a
3592 packet, assume that packet end character has been lost and
3593 start a new packet.
3594
3595 * i386-stub.c, m32r-stub.c, m68k-stub.c, sh-stub.c, sparc-stub.c,
3596 sparcl-stub.c sparclet-stub.c (getpacket): Changed to return ptr
3597 to first character of input buffer. Removed & 0x7f masks.
3598 (handle_exception): Don't access remcomInBuffer directly.
3599
36001999-08-25 Stan Shebs <shebs@andros.cygnus.com>
3601
3602 * breakpoint.c (disable_breakpoints_in_shlibs): Only disable
3603 enabled breakpoints.
3604
3605Tue Aug 24 14:59:23 1999 Andrew Cagney <cagney@b1.cygnus.com>
3606
3607 * tracepoint.c, remote.c, pa64solib.h, value.h, somsolib.h,
3608 solib.h, scm-lang.h, language.h, inferior.h, defs.h, coff-solib.h,
3609 ch-lang.h, breakpoint.h, annotate.h: Remove #if __STDC__ wrapping
3610 struct declarations.
3611
3612 * config/sparc/nm-sun4sol2.h, config/mn10300/tm-mn10300.h,
3613 config/mn10200/tm-mn10200.h, config/i386/tm-i386.h,
3614 config/i386/tm-i386v.h, config/i386/nm-i386sol2.h,
3615 config/pa/nm-hppah.h, config/rs6000/nm-rs6000.h,
3616 config/sparc/tm-sp64.h, config/v850/tm-v850.h,
3617 config/tic80/tm-tic80.h, config/sparc/tm-sparc.h,
3618 config/sh/tm-sh.h, config/rs6000/tm-rs6000.h, config/pa/tm-hppa.h,
3619 config/mips/tm-mips.h, config/m68k/tm-m68k.h,
3620 config/m32r/tm-m32r.h, config/i960/tm-mon960.h,
3621 config/fr30/tm-fr30.h, config/h8300/tm-h8300.h,
3622 config/arm/tm-arm.h, config/alpha/tm-alpha.h,
3623 config/a29k/tm-a29k.h: Ditto.
3624
3625Wed Aug 25 10:45:33 1999 Andrew Cagney <cagney@b1.cygnus.com>
3626
3627 * Makefile.in (gdb$(EXEEXT)): Add dependency on TDEPLIBS.
3628
3629 * config/arm/arm.mt (TDEPLIBS): Define. Move libangsd.a to here.
3630 (TDEPFILES): From here.
3631
36321999-08-24 Elena Zannoni <ezannoni@kwikemart.cygnus.com>
3633
3634 * top.c (init_main): Add new set/show command exec-done-display,
3635 default value is off.
3636 * event-loop.h: Export exec_done_display_p.
3637 * event-top.c: New variable exec_done_display_p.
3638 * infrun.c (complete_execution): Print completion message if
3639 corresponding flag is set.
3640
3641 * top.c (DEFAULT_PROMPT): Add space after "(gdb)" at end of prompt.
3642
3643 From: J.T. Conklin <jtc@redback.com>
3644 * top.c (DEFAULT_PROMPT): Set to "(gdb)" if not already defined.
3645 (init_main): Always use DEFAULT_PROMPT.
3646
3647Tue Aug 24 03:23:31 1999 Jeffrey A Law (law@cygnus.com)
3648
3649 * hppa-tdep.c: Remove useless "purecov: deadcode" comments.
3650 (hppa_use_struct_convention): Update for PA64.
3651 (hppa_frame_saved_pc): Properly extract the saved PC in a call
3652 dummy frame.
3653 (in_solib_call_trampoline): Return nonzero if we are in a function
3654 called ".stub".
3655 (prologue_inst_adjust_sp): Handle std,ma.
3656 (skip_prologue_hard_way): Handle more PA2.0/PA64 insns.
3657 (hppa_frame_find_saved_regs): Similarly. Handle indirect save of
3658 %r3 into the stack.
3659
3660 * config/pa/tm-hppa64.h (CALL_DUMMY_BREAKPOINT_OFFSET_P): Define.
3661 (CALL_DUMMY_BREAKPOINT_OFFSET): Define.
3662
3663Tue Aug 24 14:59:23 1999 Andrew Cagney <cagney@b1.cygnus.com>
3664
3665 * Makefile.in (gdb$(EXEEXT)): Add dependency on main.o that was
3666 lost when libgdb.a was added.
3667
3668Tue Aug 24 14:26:34 1999 Andrew Cagney <cagney@b1.cygnus.com>
3669
3670 * gdbarch.c, gdbarch.h: Convert to pure ISO-C.
3671
3672 * gdbarch.sh: New file.
3673 * gdbarch.c, gdbarch.h: Add note describing gdbarch.sh
3674
3675Mon Aug 23 19:36:17 1999 Andrew Cagney <cagney@b1.cygnus.com>
3676
3677 * Makefile.in (libgdb.a): New target.
3678 (gdb$(EXEEXT)): Add dependency on libgdb.a.
3679 (libgdb-files, LIBGDB_OBS, libgdb, LIBGDBDEPS, LIBGDBFILES): Delete.
3680
53a5351d
JM
3681Mon Aug 23 10:16:32 1999 Jeffrey A Law (law@cygnus.com)
3682
104c1213
JM
3683 * infttrate.c (child_pid_to_exec_file): Find the correct base
3684 of the stack for PA64.
3685
53a5351d
JM
3686 * pa64solib.c: Fix some minor whitespace problems.
3687 (bfd_lookup_symbol): New function.
3688 (pa64_solib_create_inferior_hook): Find the address __dld_break
3689 in the dynamic linker. Try to set a shlib event breakpoint in
3690 that function.
3691 (add_to_solist): Do not add the same shared library to the shlib
3692 list more than once.
3693
3694Sun Aug 22 14:49:40 1999 Andrew Cagney <cagney@b1.cygnus.com>
3695
3696 * value.h (enum lval_type): Move declaration from here.
3697 * defs.h (enum lval_type): To here.
3698 * frame.h, gdbarch.h: Delete incomplete declaration of ``enum
3699 lval_type''.
3700
37011999-08-20 Michael Snyder <msnyder@cleaver.cygnus.com>
3702
3703 * breakpoint.c (can_use_hardware_watchpoint): reject expressions
3704 that refer to registers or register variables.
3705
3706Fri Aug 20 10:53:38 1999 Jeffrey A Law (law@cygnus.com)
3707
3708 * hppa-tdep.c (hppa_fix_call_dummy): Provide PA2.0W aware code.
3709
3710 * pa64solib.c pa64solib.h: New files.
3711
3712 * config/pa/hppa64.mt: Delete commented out code that is and
3713 never will be appropriate for this target.
3714 * config/pa/hpux11w.mt (TDEPFILES): Remove SOM references. Also
3715 remove pa64solib.o.
3716 * config/pa/hpux11w.mh (NATDEPFILES): Remove SOM references.
3717
3718 * configure.host; Use "hpux11w" and "hpux11" instead of
3719 "hpux1100w" and "hpux1100" respectively
3720 * config/pa/hpux11w.mh: Renamed from hpux1100w.mh.
3721 * config/pa/hpux11w.mt, config/pa/hpux11.mh: Likewise.
3722 * config/pa/hpux11.mt: Likewise.
3723
37241999-08-19 Michael Snyder <msnyder@cleaver.cygnus.com>
3725
3726 * breakpoint.h (target_hw_bp_type): new enum.
3727 * breakpoint.c (insert_breakpoints): use enum instead of consts.
3728 (remove_breakpoint): use enum instead of consts.
104c1213 3729 (throughout): use "warning" instead of "fprintf(stderr, ..."
53a5351d
JM
3730 [Also clean up a bunch of excessively long lines.]
3731
37321999-08-19 J.T. Conklin <jtc@redback.com>
3733
3734 * i386-stub.c (waitabit): Removed.
3735 (breakpoint): Update.
3736
3737 * i386-stub.c, m32r-stub.c, sparc-stub.c, sparcl-stub.c,
3738 sparclet-stub.c (set_debug_traps): Don't send gratuitous ACK.
3739
3740 * m68k-stub.c (putpacket): Restore code so that packets are sent
3741 until an ACK is received.
3742
37431999-08-19 Eli Zaretskii <eliz@is.elta.co.il>
3744
3745 * breakpoint.c (bpstat_stop_status): Accept triggered addresses
3746 anywhere inside the region occupied by a watched variable as a
3747 sign that the watchpoint fired. Don't stop if some watchpoint
3748 was triggered, but its address doesn't match the address of this
3749 watchpoint.
3750 (TARGET_REGION_OK_FOR_HW_WATCHPOINT): New macro.
3751 Default definition is to call TARGET_REGION_SIZE_OK_FOR_HW_WATCHPOINT.
3752 (can_use_hardware_watchpoint): Call TARGET_REGION_OK_FOR_HW_WATCHPOINT;
3753 if it returns zero, return zero immediately.
3754 (insert_breakpoints): Try to insert watchpoints for all the values
3755 on the value chain, even if some of them fail to insert. Remove
3756 the breakpoint if parts of its value chain couldn't be inserted.
3757
37581999-08-19 Eli Zaretskii <eliz@is.elta.co.il>
3759
3760 * go32-nat.c (go32_stopped_by_watchpoint): Remove unused code.
3761
37621999-08-19 Eli Zaretskii <eliz@is.elta.co.il>
3763
3764 * go32-nat.c (tcgetpgrp, tcsetpgrp): New functions.
3765
37661999-08-19 Eli Zaretskii <eliz@is.elta.co.il>
3767
3768 * go32-nat.c (go32_wait): If we are in a single-step mode, and the
3769 next instruction is INT nn or INTO, use a temporary breakpoint to
3770 simulate single-step mode, and reset the trace flag.
3771
37721999-08-19 Eli Zaretskii <eliz@is.elta.co.il>
3773
3774 * go32-nat.c (wp_op): New typedef.
3775 (SHOW_DR): Print the length of watched region as well.
3776 (go32_insert_aligned_watchpoint): Remove unused argument PID. All
3777 callers and the prototype changed.
3778 (go32_handle_nonaligned_watchpoint): Renamed from
3779 go32_insert_nonaligned_watchpoint. Now handles all operations on
3780 non-aligned watchpoints: insertion, deletion, and counting. If
3781 called with wp_count as the first argument, return the count of
3782 debug registers needed to watch the region. Don't break out of
3783 the loop before all the addresses in the region are processed.
3784 (go32_remove_watchpoint): Call go32_remove_aligned_watchpoint to
3785 do the actual work.
3786 (go32_remove_aligned_watchpoint): New function, modeled after
3787 go32_insert_aligned_watchpoint. Removes watchpoints that watch
3788 regions of arbitrary length by calling
3789 go32_handle_nonaligned_watchpoint as needed.
3790 (go32_region_ok_for_watchpoint): New function, called from
3791 can_use_hardware_watchpoint via the new macro
3792 TARGET_REGION_OK_FOR_HW_WATCHPOINT.
3793
3794 * config/i386/nm-go32.h (TARGET_REGION_OK_FOR_HW_WATCHPOINT):
3795 Define to call go32_region_ok_for_watchpoint.
3796 (DECR_PC_AFTER_HW_BREAK): Define back to zero (previous redefinition
3797 to 1 was due to a bug in go32-nat.c).
3798
37991999-08-19 Eli Zaretskii <eliz@is.elta.co.il>
3800
3801 * go32-nat.c (cleanup_dregs): New function.
3802 (go32_mourn_inferior): Call it.
3803 (IS_REG_FREE, LOCAL_ENABLE_REG, GLOBAL_ENABLE_REG, DISABLE_REG,
3804 SET_BREAK, SET_WATCH, IS_WATCH, WATCH_HIT): Protect arguments with
3805 parentheses.
3806 (SET_BREAK): Increment the debug register's reference count.
3807 (DR_DEF): New macro, returns the access and length bits of the
3808 breakpoint.
3809 (SHOW_DR): Print the reference count of each register. Disable or
3810 enable print-out depending on an environment variable GDB_SHOW_DR.
3811 (go32_insert_aligned_watchpoint): Look for an occupied debug
3812 register with the same address and access/length bits, and reuse
3813 it by incrementing reference the count, before occupying another
3814 register. Return zero upon success.
3815 (go32_insert_nonaligned_watchpoint): Pass the read/write bits to
3816 go32_remove_watchpoint.
3817 (go32_remove_watchpoint): Accept an additional parameter: the
3818 read/write bits of the watchpoint to remove, and only remove a
3819 watchpoint if it's occupied and its address and read/write bits
3820 match. Only disable the register if its reference count is zero;
3821 otherwise just decrease the reference count.
3822 (go32_remove_hw_breakpoint): Only decrease reference count and
3823 disable the debug register if it is occupied and its access bits
3824 match those of an instruction breakpoint.
3825 (go32_insert_hw_breakpoint): Before occupying another debug
3826 register, look for an already occupied register that defines an
3827 instruction breakpoint with the same address. If found, increment
3828 its reference count. Call SHOW_DR even if failed to insert a
3829 breakpoint.
3830
3831 * config/i386/nm-go32.h (target_remove_watchpoint): Accept the
3832 TYPE argument as well.
3833
3834Wed Aug 18 17:47:25 1999 Andrew Cagney <cagney@b1.cygnus.com>
3835
3836 * mips-tdep.c: Add more comments.
3837
38381999-08-17 Stan Shebs <shebs@andros.cygnus.com>
3839
3840 * blockframe.c: Don't use PARAMS anymore, remove obsolete comment
3841 about frameless functions.
3842
38431999-08-16 Michael Snyder <msnyder@cleaver.cygnus.com>
3844
3845 * thread.c (delete_thread): delete any step_resume breakpoint
3846 held by the thread. (prune_threads): call delete_thread.
3847 * breakpoint.c (breakpoint_init_inferior): if startup, then
3848 delete any remaining step_resume breakpoints.
3849 * infrun.c (handle_inferior_event): add cautionary comment.
3850
38511999-08-16 Fernando Nasser <fnasser@totem.to.cygnus.com>
3852
3853 * remote.c (remote_async_mourn): New function. Async version of
3854 remote_mourn().
3855
38561999-08-16 Eli Zaretskii <eliz@is.elta.co.il>
3857
3858 * terminal.h [__GO32__]: Remove conditional; DJGPP now supports
3859 termios.
3860
38611999-08-16 Eli Zaretskii <eliz@is.elta.co.il>
3862
3863 * command.c (CANT_FORK) [__MSDOS__]: Define.
3864 (shell_escape) [CANT_FORK]: If ARG is NULL, pass an empty string
3865 to `system'.
3866 [__DJGPP__]: Return to the original directory after the shell
3867 exits.
3868
38691999-08-16 Eli Zaretskii <eliz@is.elta.co.il>
3870
3871 * config/i386/xm-go32.h (ROOTED_P): Don't reference X[1] if X[0]
3872 is a null character.
3873
3874 * config/i386/nm-go32.h (DECR_PC_AFTER_HW_BREAK): Define to 1.
3875
38761999-08-16 Eli Zaretskii <eliz@is.elta.co.il>
3877
3878 * go32-nat.c (redir_cmdline_parse, redir_cmdline_delete,
3879 redir_to_child, redir_to_debugger, redir_debug_init)
3880 [__DJGPP_MINOR__ < 3]: Dummy stubs for redirecting debuggee's
3881 standard handles.
3882 (print_387_status): Print "last FP instruction", not "last
3883 exception". Restore the upper 5 bits of the opcode that aren't
3884 stored in the FPU state. Print the FPU stack in its physical
3885 order, not relative to ST(0). Print "special", not "trap" for
3886 unnormals and infinities. Print all 10 bytes of each FP register,
3887 and print them with 19 significant digits.
3888 (regno_mapping): Make the mapping consistent with tm-go32.h.
3889 (sig_map): Add mappings for SIGQUIT, SIGFPE, SIGALRM. Map NMI to
3890 SIGBUS.
3891 (excep_map): New variable, maps GDB signals to DJGPP exceptions.
3892 (go32_attach): Signal an error: we cannot attach to other
3893 processes.
3894 (go32_resume): Record the signal with which the inferior should be
3895 resumed, mapped to the DJGPP exception number.
3896 (go32_wait): Pass the signal recorded in go32_resume to the
3897 debuggee. Save and restore debugger's and debuggee's current
3898 working directory.
3899 [__DJGPP_MINOR__ < 3]: Save and restore inferior's FPU state.
3900 (store_register): FPU regsiters have numbers less than 31.
3901 (go32_kill_inferior): Delete the parsed command-line storage.
3902 (go32_create_inferior): Initialize the parsed command-line
3903 storage. Parse the command line and create the redirections for
3904 inferior's standard handles.
3905 [__DJGPP_MINOR__ < 3]: Init the inferior's FPU state.
3906 (ignore2): Function deleted.
3907 (device_mode): New function, switches a character device between
3908 raw and cooked mode.
3909 (go32_terminal_init): Invalidate the raw/cooked mode information.
3910 (go32_terminal_info): Print whether the inferior's terminal is in
3911 raw or cooked mode.
3912 [__DJGPP_MINOR__ > 2]: Say if standard handles are redirected or
3913 closed by the inferior.
3914 (go32_terminal_inferior): Switch standard handles to the
3915 inferior's files/devices. Put the inferior's input device to
3916 raw/cooked mode, exactly like we found it last time.
3917 (go32_terminal_ours): Restore debugger's standard handles and put
3918 the terminal into cooked mode. Save the mode of inferior's input
3919 device.
3920 (init_go32_ops): Assign go32_ops.to_attach,
3921 go32_ops.to_terminal_info, go32_ops.to_terminal_ours_for_output.
3922 Initialize inferior's cwd and the command-line storage.
3923
3924Mon Aug 16 14:29:30 1999 Jeffrey A Law (law@cygnus.com)
3925
3926 * config/pa/tm-hppa.h (ARGS_GROW_DOWNWARD): Define.
3927 * config/pa/tm-hppa64.h (ARGS_GROW_DOWNWARD): Undefine.
3928 * hppa-tdep.c (hppa_push_arguments): Handle arguments growing in
3929 both directions depending ARGS_GROW_DOWNWARD.
3930 (hppa_find_saved_regs): Update for 64bit wide registers & pointers
3931 and PA64 ABI.
3932
3933 * hppa-tdep.c (hppa_pop_frame): Various fixes for 64bit wide
3934 registers and pointers.
3935 (hppa_fix_call_dummy, skip_trampoline_code): Likewise.
3936 (restore_pc_queue): Update tests for width of memory loads.
3937 (hppa_push_arguments): Delete version that was #if 0'd out.
3938
3939 * hppa-tdep.c (push_dummy_frame): Handle the new 64it ABI.
3940 (find_dummy_frame_regs): Corresponding changes.
3941
3942 * hppa-tdep.c (read_unwind_info): Initialize obj_private->dp.
3943 (internalize_unwinds): Improve test for when to use segment
3944 relative code for unwinder bounds.
3945 (rp_saved): Fix offset of saved return pointer for the 64bit ABI.
3946 (hppa_frame_saved_pc): Various updates to handle 64bit registers
3947 and pointers.
3948 (frame_chain, restore_pc_queue): Likewise.
3949
3950 * hppa-tdep.c (rp_saved): RP is saved at frame-16 when
3951 pointers are 64bits wide.
3952
3953 * hppa-tdep.c (record_text_segment_lowaddr): New function.
3954 (internalize_unwinds): Use it if addressess are 8 bytes wide.
3955
3956 * symfile.c (syms_from_objfile): No longer warn if the lowest
3957 section does not have SEC_CODE set.
3958
3959 * Makefile.in (pa64solib.o): Add dependencies.
3960
3961 * hppah-nat.c (store_inferior_registers): Do not try to write a
3962 nonzero value to the high part of IPSW. Fix typo in unable to store
3963 warning.
3964
3965 * config/pa/tm-hppa.h (opd_data structure): Delete. Not actually
3966 needed.
3967 (struct obj_private_struct): Add new entry for the objfile's DP
3968 value.
3969 * config/pa/tm-hppa64.h (CALL_DUMMY): Add a nop to make it an even
3970 number of instructions. Pack the dummy into word sized hunks.
3971 (CALL_DUMMY_LENGTH): Update appropriately.
3972 (PC_IN_CALL_DUMMY, CALL_DUMMY_LOCATION_AFTER_TEXT_END): Delete.
3973
7be570e7
JM
3974Mon Aug 16 19:08:19 1999 Andrew Cagney <cagney@b1.cygnus.com>
3975
3976 * configure.in: Try -lsocket when looking for socketpair.
3977 * configure, config.h: Re-generate.
3978
39791999-08-13 Elena Zannoni <ezannoni@kwikemart.cygnus.com>
3980
3981 From Christopher Faylor <cgf@cygnus.com>:
3982
3983 * event-loop.c (gdb_wait_for_event): Before going to wait for
3984 another event with select or poll, flush the error and the output
3985 streams.
3986
3987 * event-top.c (gdb_readline2): Do not buffer the input, because
3988 doing so can interfere with select/poll in bad ways.
3989
3990Fri Aug 13 17:36:56 1999 Eli Zaretskii <eliz@is.elta.co.il>
3991
3992 * maint.c (maintenance_dump_me) [__DJGPP__]: Simulate a core dump
3993 with SIGABRT.
3994 * utils.c (quit) [__MSDOS__]: Don't mention SIGINT, since it's not
3995 gonna happen.
3996 (notice_quit): No need to define this function for the DJGPP port.
3997
39981999-08-13 James Ingham <jingham@leda.cygnus.com>
3999
4000 * arm-tdep.c (arm_frameless_function_invocation): SKIP_PROLOGUE
4001 macro no longer modifies its argument. Update uses to accord.
4002
4003 * config/arm/arm.mt (TDEPFILES): Add the remote-rdi.o to the
4004 TDEPFILES.
4005 * configure.tgt: Add rdi-share to configdir for the Arm targets.
4006
4007Fri Aug 13 11:16:32 1999 Jeffrey A Law (law@cygnus.com)
4008
4009 * hppah-nat.c (store_inferior_registers): Revamp to be PA2.0W
4010 aware.
4011
4012 * infttrace.c (ttrace_write_reg_64): New function.
4013
4014 * hp-symtab-read.c (is_in_import_list): Delete extern declaration.
4015 * somread.c (is_in_import_list): Delete function.
4016 * objfiles.c (is_in_import_list): New function.
4017 * objfiles.h (is_in_import_list): Declare.
4018
4019 * config/pa/tm-hppa64.h (GDB_TARGET_IS_HPPA20W): Define before
4020 including tm-hppah.h.
4021 (PC_IN_CALL_DUMMY): Define.
4022 (HPUX_1100): Similarly.
4023 * config/pa/tm-hppa.h (somsolib.h, pa64solib.h): Conditionalize
4024 includes on GDB_TARGET_IS_HPPA20W.
4025
4026 * configure.host: Distinguish between wide and narrow modes
4027 for hpux11.
4028 * config/pa/hpux1100w.mh, config/pa/hpux1100w.mt: New files.
4029
4030 * config/pa/tm-hppa64.h (STACK_ALIGN): Redefine.
4031 (REG_PARM_STACK_SPACE): Likewise.
4032
4033 * config/pa/tm-hppa.h (CLEAN_UP_REGISTER_VALUE): Handle 64bit
4034 PA target correctly.
4035 (REG_PARM_STACK_SPACE): Define.
4036 (struct unwind_table_entry): region_start and region_end are
4037 CORE_ADDRs.
4038 (typedef opd_data): New.
4039 (obj_private_data_t): Include pointer to opd_data structure.
4040
40411999-08-13 Keith Seitz <keiths@cygnus.com>
4042
4043 * stabsread.c (stabsread_clear_cache): New funciton which clears
4044 an optimization cache of the reader.
4045
4046 * coffread.c (coff_symfile_finish): Give stabs reader a chance to
4047 clean up.
4048
4049 * win32-nat.c (handle_load_dll): Don't suppress re-reading symbols
4050 from a DLL if an objfile for it already exists. (Not that this should
4051 happen anymore anyway...)
4052
40531999-08-13 Keith Seitz <keiths@cygnus.com>
4054
4055 * config/mcore/tm-mcore.h (SAVE_DUMMY_FRAME_TOS): Define for MCore,
4056 which also requires that the stack pointer be saved for call
4057 dummies BEFORE arguments get pushed onto it.
4058
40591999-08-12 Stan Shebs <shebs@andros.cygnus.com>
4060
4061 From Eli Zaretskii <eliz@is.elta.co.il>:
4062 * source.c (mod_path) [_WIN32 || __DJGPP__]: Don't remove trailing
4063 slash from "d:/". Don't overstep the beginning of name.
4064 [_WIN32 || __MSDOS__]: Convert "d:" to "d:.", otherwise appending
4065 a slash changes its meaning.
4066 (openp): Use SLASH_P, not equality with SLASH_CHAR.
4067 (print_source_lines_base) [CRLF_SOURCE_FILES]: Skip \r only before
4068 a \n.
4069 (forward_search_command) [CRLF_SOURCE_FILES]: Remove \r at the end
4070 of all lines.
4071 (reverse_search_command) [CRLF_SOURCE_FILES]: Likewise.
4072
4073 * gnu-regex.c (CHAR_CLASS_MAX_LENGTH): Don't use wide characters
4074 unless HAVE_BTOWC is defined.
4075
4076Fri Aug 13 10:20:12 1999 Andrew Cagney <cagney@b1.cygnus.com>
4077
4078 From J.T. Conklin <jtc@redback.com>:
4079 * gdbinit.in: Change the template .gdbinit to match the recent
4080 fatal error handling change.
4081
40821999-08-11 Keith Seitz <keiths@cygnus.com>
4083
4084 * maint.c (maintenance_internal_error): Fix typo in prototype.
4085
4086Wed Aug 11 15:38:05 1999 Andrew Cagney <cagney@amy.cygnus.com>
4087
4088 * remote.c (remote_rcmd): Pass an empty command across to the
4089 target. Check for and handle an ``Enn'' return status.
4090
4091Tue Aug 10 13:59:45 1999 Andrew Cagney <cagney@b1.cygnus.com>
4092
4093 * maint.c (_initialize_maint_cmds): Add ``maintenance
4094 internal-error'' command.
4095 (maintenance_internal_error): New function.
4096
40971999-08-10 James Ingham <jingham@leda.cygnus.com>
4098
4099 * top.c: Remove the disassembly_flavor_hook, use the new set_hook
4100 instead.
4101 * defs.h: Ditto.
4102 * arm-tdep.c (set_disassembly_flavor_sfunc): Ditto.
4103
41041999-08-10 Michael Snyder <msnyder@cleaver.cygnus.com>
4105
4106 * config/i386/nm-i386sol2.h (FIND_NEW_THREADS): remove, obsolete.
4107 * config/sparc/nm-sun4sol2.h (FIND_NEW_THREADS): remove, obsolete.
4108
41091999-08-10 J.T. Conklin <jtc@redback.com>
4110
4111 * configure.tgt (i[3456]86-*-aout*, i[3456]86-*-coff*,
4112 i[3456]86-*-elf*): Use embed.mt.
4113 * config/i386/embed.mt: New file.
4114
41151999-08-10 Elena Zannoni <ezannoni@kwikemart.cygnus.com>
4116
4117 * remote.c (remote_async_open_1): Remove casting in call to
4118 add_file_handler.
4119 (extended_remote_async_create_inferior): Ditto.
4120
4121 * event-top.c (change_line_handler): Ditto.
4122 (_initialize_event_loop): Ditto.
4123
4124 * infrun.c (complete_execution): Ditto.
4125
4126 * event-loop.c (add_file_handler): Change proc parameter to be ptr
4127 to func with void parameter, rather than void*. Coerce second
4128 paramter in calls to create_file_handler. Replace
4129 async_handler_func and file_handler_func with handler_func.
4130
4131 * event-loop.h: Get rid of typedefs for file_handler_func and
4132 async_handler_func, just have one, and call it handler_func.
4133 Replace async_handler_func and file_handler_func occurrences with
4134 handler_func.
4135
4136Tue Aug 10 03:13:03 1999 Jeffrey A Law (law@cygnus.com)
4137
4138 * hppa-tdep.c: Delete random #if 0 code.
4139 (is_branch): Handle new branching opcodes from PA2.0
4140 (inst_saves_gr, inst_saves_fr): Handle additional instructions
4141 used to save general and floating point registers in the stack.
4142 (skip_prologue_hard_way): Handle additional instructions to
4143 save the return pointer in the stack.
4144 (after_prologue): Fix mis-guided and incorrect code to find
4145 the end of the prologue using debug symbols.
4146 (hppa_skip_prologue): Generally clean up comments, lose code
4147 which does not apply to the PA, etc.
4148
4149Sun Aug 8 17:53:41 1999 Andrew Cagney <cagney@amy.cygnus.com>
4150
4151 * MAINTAINERS: Make Andrew Cagney the mn10300 maintainer.
4152 Transfer responsibility for the PowerPC from Andrew Cagney to
4153 Elena Zannoni.
4154
4155Tue Aug 10 13:59:45 1999 Andrew Cagney <cagney@b1.cygnus.com>
4156
4157 Based on code from J.T. Conklin <jtc@redback.com>:
4158 * utils.c (internal_error): Make quit? and coredump? separate
4159 questions so that the user can dump-core and not quit.
4160 (internal_error): Cleanup error message.
4161
41621999-08-09 Tom Tromey <tromey@cygnus.com>
4163
4164 * kod-cisco.c (cisco_kod_open): Removed incorrect `arg' argument.
4165
96baa820
JM
4166Sun Aug 8 12:06:47 1999 Fred Fish <fnf@cygnus.com>
4167
4168 * coffread.c (process_coff_symbol): Remove section_offsets from
4169 prototype and function definition. Get section_offsets from the
4170 passed objfile and pass it on to callees the same way.
4171 (coff_symtab_read): Ditto.
4172 (coff_symfile_read): Ditto.
4173 * dbxread.c (read_dbx_dynamic_symtab): Ditto.
4174 (read_dbx_symtab): Ditto.
4175 (dbx_symfile_read): Ditto.
4176 (coffstab_build_psymtabs): Ditto.
4177 (elfstab_build_psymtabs): Ditto.
4178 (stabsect_build_psymtabs): Ditto.
4179 * dstread.c (dst_symfile_read): Ditto.
4180 * elfread.c (elf_symfile_read): Ditto.
4181 * jv-class.c (jv_class_symfile_read): Ditto.
4182 * mipsread.c (mipscoff_symfile_read): Ditto.
4183 * nlmread.c (nlm_symfile_read): Ditto.
4184 * os9kread.c (os9k_symfile_read): Ditto.
4185 * somread.c (som_symfile_read): Ditto.
4186 * stabsread.h (elfstab_build_psymtabs): Ditto.
4187 * xcoffread.c (xcoff_initial_scan): Ditto.
4188
4189 * symfile.h (sym_read): Remove section_offsets from prototype.
4190 * symfile.c (syms_from_objfile): Call sym_read without
4191 section_offsets.
4192 (reread_symbols): Ditto.
4193
4194 * elfread.c (elfstab_offset_sections): Use SIZEOF_SECTION_OFFSETS
4195 to allocate sections offsets array.
4196 * xcoffread.c (xcoff_symfile_offsets): Ditto.
4197
4198 * partial-stab.h (section_offsets): Get from objfile.
4199 * dbxread.c (read_dbx_symtab): Fix typo that made -1 casted
4200 to a CORE_ADDR look like an subtraction expression.
4201 * objfiles.h: Add some comments.
4202 * symfile.c: Add some comments.
4203 * objfiles.c: Add some comments.
4204 (objfile_relocated): Use ALL_OBJFILE_OSECTIONS to iterate over
4205 sections.
4206 (find_pc_sect_sections): Use ALL_OBJSECTIONS to iterate over all
4207 sections in all objfiles.
4208 * symfile.c (syms_from_objfile): Use ALL_OBJFILE_OSECTIONS.
4209
4210 * irix5-nat.c (symbol_add_stub): Fix typo that made taking the
4211 address of lowest_sect with '&' look like a bitwise and op.
4212 * osfsolib.c (symbol_add_stub): Ditto.
4213 * solib.c (symbol_add_stub): Ditto.
4214 * symfile.c (syms_from_objfile): Ditto.
4215
4216 * dwarf2read.c (dwarf2_build_psymtabs_hard): Minor format tweak.
4217 * symfile.c (syms_from_objfile): Ditto, and fix typo.
4218 * top.c (init_main): Fix typo in comment (DEFULAT_PROMPT).
4219 * doc/gdbint.texinfo (find_sym_fns): This replaces symfile_init.
4220
42211999-08-08 James Ingham <jingham@leda.cygnus.com>
4222
4223 * remote.c (remote_insert_breakpoint): Fix typo in Z packet support.
104c1213
JM
4224 Also move Z packet support OUTSIDE of REMOTE_BREAKPOINT ifdef,
4225 since this is not set for all targets that support the Z packet.
96baa820
JM
4226
4227Fri Aug 6 17:17:28 1999 Andrew Cagney <cagney@b1.cygnus.com>
4228
4229 * defs.h (fatal): Delete declaration.
4230 (internal_error): Declare.
4231 * utils.c (nomem): Call internal_error instead of fatal.
4232 (fatal_dump_core): Delete.
4233 (malloc_botch): Print message direct to stderr.
4234 (fatal): Delete definition.
4235 * utils.c (internal_error): Define.
4236
4237 * gdbarch.h, gdbarch.c, hppah-nat.c, ch-exp.c, dsrec.c, sh-tdep.c,
4238 infptrace.c, f-lang.c, symm-nat.c, top.c, m3-nat.c, v850-tdep.c,
4239 remote-vx.c, remote-sim.c, remote-mips.c, source.c, infcmd.c,
4240 findvar.c, remote.c: Replace fatal with call to internal_error.
4241
4242Sun Aug 8 15:28:33 1999 Andrew Cagney <cagney@b1.cygnus.com>
4243
4244 * ser-pipe.c (STDIN_FILENO, STDOUT_FILENO, STDERR_FILENO): Move
4245 definition from here.
4246 * defs.h: To here.
4247
4248Sat Aug 7 21:44:59 1999 Fred Fish <fnf@cygnus.com>
4249
4250 * remote.c (remote_insert_breakpoint): Fix typo, missing ';'.
4251
4252Sun Aug 8 11:26:57 1999 Andrew Cagney <cagney@b1.cygnus.com>
4253
4254 * mips-tdep.c (mips_gdbarch_init): Add break; to the default case.
4255
4256Fri Aug 6 19:26:03 1999 Andrew Cagney <cagney@b1.cygnus.com>
4257
4258 * defs.h: Delete #if ANSI_PROTOTYPES code, GDB assumes ISO-C.
4259 * remote-rdp.c (send_rdp), remote-os9k.c (printf_monitor),
4260 remote-mips.c: (mips_error), remote-array.c: (printf_monitor,
4261 debuglogs), complaints.c (complain), monitor.c:
4262 (monitor_printf_noecho, monitor_printf), language.c (type_error,
4263 range_error), remote-st.c: (printf_stdebug), remote-sim.c
4264 (gdb_os_printf_filtered, gdb_os_vprintf_filtered,
4265 gdb_os_evprintf_filtered, gdb_os_error), serial.c (serial_printf),
4266 utils.c (warning, error, fatal, fatal_dump_core, (query,
4267 fprintf_filtered, fprintf_unfiltered, fprintfi_filtered,
4268 printf_filtered, printf_unfiltered, printfi_filtered): Delete
4269 legacy #ifndef ANSI_PROTOTYPES varargs code.
4270
4271 * defs.h: Don't #include <varargs.h>.
4272 * remote-rdp.c, remote-os9k.c, remote-mips.c, remote-array.c,
4273 monitor.c, remote-st.c: Don't include <varargs.h> or <stdarg.h>.
4274
42751999-08-06 James Ingham <jingham@leda.cygnus.com>
4276
4277 * configure.in, configure: add the --enable-multi-ice to determine
4278 whether to configure and build the multi-ice-gdb-server. Note,
4279 for now this only builds on cygwin, so don't enable it for other
4280 platforms...
4281
42821999-08-06 Tom Tromey <tromey@cygnus.com>
4283
4284 * Makefile.in (SFILES): Added kod.c and kod-cisco.c.
4285 (COMMON_OBS): Added kod.o and kod-cisco.o.
4286 (kod-cisco.o): New target.
4287 (kod.o): New target.
4288 * kod-cisco.c: New file.
4289 * kod.c: New file.
4290
42911999-08-06 James Ingham <jingham@leda.cygnus.com>
4292
4293 These are some fixups for the Arm, and support for the
4294 disassembly-flavor for the ARM.
4295
4296 * defs.h: Declare the disassembly_flavor_hook
4297 * top.c: Define the disassembly_flavor_hook
4298 * i386-tdep.c: Remove unnecessary declaration of the
4299 disassembly_flavor_hook.
4300
4301 * config/arm/tm-arm.h: Change definition of
4302 arm_init_extra_frame_info.
4303 Add a few more comments.
4304 * arm-tdep.c (arm_init_extra_frame_info): Listen to and use the
4305 fromleaf parameter passed into init_extra_frame_info.
4306 (set_disassembly_flavor_sfunc): New Function.
4307 (set_disassembly_flavor): New Function.
4308 (arm_othernames): Use the set_disassembly_flavor.
4309 (_initialize_arm_tdep): Setup the disassembly flavor commands, and
4310 initialize the flavor.
104c1213 4311 (arm_frameless_function_invocation): Adjust for
96baa820
JM
4312 frameless functions that have 1 or 2 instructions that mimic the
4313 standard APCS form.
4314 (arm_scan_prologue): Be more careful about scanning the function
4315 prologue. Don't match things that just have a few of the prologue
4316 instructions out of order, and don't get thrown by the scheduler
4317 migrating instructions into the prologue.
4318
4319 Add support for the "Z" and "z" packets to request the stub
4320 to set a breakpoint.
4321
4322 * remote.c (set_remote_protocol_Z_packet_cmd): New function.
4323 (show_remote_protocol_Z_packet_cmd): New Function.
4324 (remote_open_1): Init the Z packet config.
4325 (remote_async_open_1): Init the Z packet config.
4326 (remote_insert_breakpoint): Use the "Z" packet if supported.
4327 (remote_remove_breakpoint): Use the "z" packet if supported.
4328 (remote_insert_watchpoint): New Function - currently wired to
4329 nothing.
4330 (remote_remove_watchpoint): Ditto.
4331 (remote_insert_hw_breakpoint): Ditto.
4332 (remote_remove_hw_breakpoint): Ditto.
4333
43341999-08-06 Stan Shebs <shebs@andros.cygnus.com>
4335
4336 * infcmd.c: Include parser-defs.h.
4337 (interrupt_target_command): Declare.
4338 (stack_dummy_testing): Remove old funky flag.
4339 (run_stack_dummy): Remove unused reference to old funky flag.
4340
43411999-08-06 Tom Tromey <tromey@cygnus.com>
4342
4343 * command.c (do_setshow_command): Call set_hook if not NULL.
4344 * top.c (set_hook): New hook definition.
4345 * defs.h (set_hook): Declare.
4346
43471999-08-05 Stan Shebs <shebs@andros.cygnus.com>
4348
4349 * infrun.c: Convert code to pure standard C, elim some warnings.
4350 (stopped_for_shlib_catchpoint): Remove, never used.
4351
43521999-08-05 Keith Seitz <keiths@cygnus.com>
4353
4354 * NEWS: Mention new Motorola MCore target.
4355
4356 * sparc-tdep.c (gdb_print_insn_sparc): Print insns of the current
4357 architecture.
4358
4359Thu Aug 5 20:41:22 1999 Andrew Cagney <cagney@b1.cygnus.com>
4360
4361 * configure.in (configdirs): Add check for socketpair.
4362 * configure, config.in: Re-generate.
4363
4364 From Mon Jul 19 10:46:18 1999 Philippe De Muyter <phdm@macqel.be>:
4365 * ser-pipe.c (sys/wait.h): Include this file only #if HAVE_SYS_WAIT_H.
4366 (STDIN_FILENO, STDOUT_FILENO, STDERR_FILENO): Macros defined if needed.
4367
4368Thu Aug 5 20:04:17 1999 Andrew Cagney <cagney@b1.cygnus.com>
4369
4370 * target.c (debug_to_open, debug_to_attach, debug_to_post_attach,
4371 debug_to_require_attach, debug_to_detach, debug_to_require_detach,
4372 debug_to_wait, debug_to_post_wait, debug_to_fetch_registers,
4373 debug_to_store_registers, debug_to_prepare_to_store,
4374 debug_to_xfer_memory, debug_to_files_info,
4375 debug_to_insert_breakpoint, debug_to_remove_breakpoint,
4376 debug_to_terminal_init, debug_to_terminal_inferior,
4377 debug_to_terminal_ours_for_output, debug_to_terminal_ours,
4378 debug_to_terminal_info, debug_to_kill, debug_to_load,
4379 debug_to_lookup_symbol, debug_to_create_inferior,
4380 debug_to_post_startup_inferior,
4381 debug_to_acknowledge_created_inferior,
4382 debug_to_clone_and_follow_inferior,
4383 debug_to_post_follow_inferior_by_clone,
4384 debug_to_insert_fork_catchpoint, debug_to_remove_fork_catchpoint,
4385 debug_to_insert_vfork_catchpoint,
4386 debug_to_remove_vfork_catchpoint, debug_to_has_forked,
4387 debug_to_has_vforked, debug_to_can_follow_vfork_prior_to_exec,
4388 debug_to_post_follow_vfork, debug_to_insert_exec_catchpoint,
4389 debug_to_remove_exec_catchpoint, debug_to_has_execd,
4390 debug_to_reported_exec_events_per_exec_call,
4391 debug_to_has_syscall_event, debug_to_has_exited,
4392 debug_to_mourn_inferior, debug_to_can_run,
4393 debug_to_notice_signals, debug_to_thread_alive, debug_to_stop,
4394 debug_to_query, debug_to_rcmd, debug_to_enable_exception_callback,
4395 debug_to_get_current_exception_event, debug_to_pid_to_exec_file,
4396 debug_to_core_file_to_sym_file, debug_to_close): Send trace output
4397 to ``gdb_stdlog'' instead of ``gdb_stderr''.
4398
4399Thu Aug 5 16:22:10 1999 Andrew Cagney <cagney@b1.cygnus.com>
4400
4401 * remote.c (init_remote_ops): Initialize remote_ops.to_rcmd.
4402 (init_remote_async_ops): Initialize remote_async_ops.to_query.
4403 (remote_rcmd): New function.
4404
4405 * monitor.c (monitor_rcmd): Rename monitor_command.
4406 (init_base_monitor_ops): Initialize monitor_ops.to_rcmd.
4407 (_initialize_remote_monitors): Move "monitor" command from here.
4408 * target.c (initialize_targets): To here.
4409 (monitor_command): New function. Implement "monitor" command.
4410
4411 * target.c (cleanup_target): de_fault to_rcmd.
4412 (update_current_target): INHERIT to_rcmd.
4413 (debug_to_rcmd): New function.
4414 (setup_target_debug): Initialize current_target.to_rcmd.
4415
4416 * target.h (struct target_ops): Add field to_rcmd.
4417 (target_rcmd): Define.
4418
4419Thu Aug 5 14:24:07 1999 Andrew Cagney <cagney@b1.cygnus.com>
4420
4421 * remote.c: Replace comment describing remote protocol with
4422 pointer to official document.
4423
4424Thu Aug 5 11:59:06 1999 Andrew Cagney <cagney@b1.cygnus.com>
4425
4426 * remote.c (remote_protocol_binary_download): New variable.
4427 Replace ``remote_binary_download'' and ``remote_binary_checked''.
4428 (set_remote_protocol_binary_download_cmd,
4429 show_remote_protocol_binary_download_cmd): New functions.
4430 (remote_open_1, remote_async_open_1, remote_cisco_open):
4431 Initialize ``remote_protocol_binary_download'' instead of
4432 ``remote_binary_download''.
4433 (check_binary_download): Re-write.
4434 (remote_write_bytes): Ditto.
4435 (_initialize_remote): Add ``set remote X-packet'' and ``show
4436 remote X-packet'' commands. Disable old ``set
4437 remotebinarydownload'' command.
4438
44391999-08-04 Keith Seitz <keiths@cygnus.com>
4440
4441 * remote-rdi.c (arm_rdi_close): Close the transport device, too.
4442
4443Wed Aug 4 10:42:58 1999 Fred Fish <fnf@cygnus.com>
4444
4445 * xcoffread.c (scan_xcoff_symtab): Change main_aux into
4446 an array of 5 internal_auxent to leave room for bfd to
4447 write n_numaux entries. Change code to use the first one.
4448
44491999-08-02 Stan Shebs <shebs@andros.cygnus.com>
4450
4451 * c-valprint.c (c_val_print): When printing decimal equivalent
4452 of a char, cast appropriately.
4453
44541999-08-02 Elena Zannoni <ezannoni@kwikemart.cygnus.com>
4455
4456 From Jonathan Larmour <jlarmour@cygnus.co.uk>:
4457 * main.c (print_gdb_help): Use gdbinit variable to determine file
4458 name used for --nx help
4459
a0b3c4fd
JM
44601999-08-01 Jason Molenda (jsm@bugshack.cygnus.com)
4461
4462 * config/mips/tm-mips.h (BIG_ENDIAN): Don't define here.
4463
44641999-08-01 Jim Blandy <jimb@zwingli.cygnus.com>
4465
4466 * stabsread.c (read_range_type): Handle an unsigned range type
4467 whose length in bytes is any power of two, not just a few
4468 common ones.
4469
4470 * monitor.c (monitor_expect): When we receive a character that
4471 isn't part of the string we were expecting, don't just start
4472 matching again at the beginning of the string --- some shorter
4473 suffix of the input might be a prefix of the string too.
4474
44751999-07-31 Fred Fish <fnf@cygnus.com>
4476
4477 * symfile.c (symbol_file_command): Fix typo that made -1 casted
4478 to a CORE_ADDR look like an subtraction expression.
4479 (add_symbol_file_command): Ditto.
4480
de57eccd 44811999-07-30 Jim Blandy <jimb@cygnus.com>
a0b3c4fd
JM
4482
4483 * hppa-tdep.c (pa_print_registers): Frob register output some more.
4484
de57eccd 44851999-07-29 Jim Blandy <jimb@cygnus.com>
a0b3c4fd
JM
4486
4487 * config/pa/nm-hppah.h (PTRACE_ARG3_TYPE): After more
4488 consideration, make this a CORE_ADDR, like WDB did.
4489
4490 Rather than casting every single use of really_free_pendings to
4491 make_cleanup_func, why not actually make it have that type? Golly!
4492 * buildsym.c (really_free_pendings): Change argument type to PTR.
4493 buildsym.h (really_free_pendings): Fix declaration.
4494 * dbxread.c (dbx_symfile_read, dbx_psymtab_to_symtab_1),
4495 dwarf2read.c (psymtab_to_symtab_1), dwarfread
4496 (psymtab_to_symtab_1), hp-psymtab-read.c (hpread_build_psymtabs),
4497 os9kread.c (os9k_symfile_read, os9k_psymtab_to_symtab_1),
4498 xcoffread.c (xcoff_psymtab_to_symtab_1, xcoff_initial_scan):
4499 Remove casts.
4500
4501 Pass a CORE_ADDR safely through catch_errors.
4502 * hppa-tdep.c (args_for_find_stub): New member, return_val.
4503 (cover_find_stub_with_shl_get): Change argument and return type to
4504 match catch_errors. Save return value of find_stub_with_shl_get
4505 in *args.
4506 (initialize_hp_cxx_exception_support): Collect value of
4507 eh_notify_callback_addr from args.
4508
4509 Get rid of some noise. It would be nice to get helpful warnings
4510 from the compiler about lossy conversions.
4511 * hppa-tdep.c (eh_notify_hook_addr, eh_notify_callback_addr,
4512 eh_break_addr, eh_catch_catch_addr, eh_catch_throw_addr,
4513 break_callback_sal): Initialize these to zero, not NULL, to shush
4514 warnings.
4515 * infttrace.c (thread_fake_step): Compare signal to
4516 TARGET_SIGNAL_0, not NULL, to avoid warnings.
4517 (_initialize_infttrace): Add sanity check.
4518
4519 * config/pa/nm-hppah.h (PTRACE_ARG3_TYPE): Define this to be
4520 long, so we can pass arguments properly to ptrace.
4521
4522 * hppah-nat.c (child_xfer_memory): Correctly compute mask to round
4523 address to an int boundary.
4524
de57eccd 45251999-07-29 Jim Blandy <jimb@cygnus.com>
a0b3c4fd
JM
4526
4527 Change from Ian Lance Taylor <ian@zembu.com>. The
4528 i386_linux_sigtramp* functions should be moved to
4529 i386-linux-tdep.c, when that file is introduced.
4530
4531 * config/i386/tm-linux.h (LINUX_SIGCONTEXT_SIZE): Define.
4532 (LINUX_SIGCONTEXT_PC_OFFSET): Define.
4533 (LINUX_SIGCONTEXT_SP_OFFSET): Define.
4534 (SIGCONTEXT_PC_OFFSET): Don't define.
4535 (I386_LINUX_SIGTRAMP): Define.
4536 (IN_SIGTRAMP): Define.
4537 (i386_linux_sigtramp): Declare.
4538 (sigtramp_saved_pc): Define.
4539 (i386_linux_sigtramp_saved_pc): Declare.
4540 (FRAMELESS_SIGNAL): Define.
4541 (FRAME_CHAIN, FRAME_SAVED_PC): Define after #undef.
4542 * i386-tdep.c (i386_linux_sigtramp_start): New static function if
4543 I386_LINUX_SIGTRAMP.
4544 (i386_linux_sigtramp): New function if I386_LINUX_SIGTRAMP.
4545 (i386_linux_sigtramp_saved_pc): Likewise.
4546 (i386_linux_sigtramp_saved_sp): Likewise.
4547
de57eccd 45481999-07-28 Jim Blandy <jimb@cygnus.com>
a0b3c4fd
JM
4549
4550 * infrun.c (handle_inferior_event): Don't try to use the code for
4551 stepping over a function call to also handle stepping out of a
4552 sigtramp on HP-UX. That ends up trashing step-resume breakpoints.
4553 This change reverts some of David Taylor's change of 31 Dec 1998.
4554 The HP-UX maintainer needs to submit a new change for whatever
4555 problem the original change was trying to fix.
4556
45571999-07-28 Elena Zannoni <ezannoni@kwikemart.cygnus.com>
4558
4559 * event-top.c (command_line_handler): Don't treat an empty line
4560 from readline the same way as a multiline command. This avoids
4561 missing detecting when the user presses just 'enter'.
4562
de57eccd 45631999-07-28 Jim Blandy <jimb@cygnus.com>
a0b3c4fd
JM
4564
4565 Provide more sanity checking:
4566 * infrun.c (handle_inferior_event): Before assigning a new
4567 breakpoint to step_resume_breakpoint, make sure it's not already
4568 pointing at one; if it is, that's a bug.
4569 (check_for_old_step_resume_breakpoint): New function.
4570
45711999-07-28 Elena Zannoni <ezannoni@kwikemart.cygnus.com>
4572
104c1213 4573 From Eli Zaretskii <eliz@is.elta.co.il>:
a0b3c4fd
JM
4574 * top.c (gdb_init) [__MSDOS__]: Arrange for GDB to return to the
4575 original directory before exiting.
4576 (cd_command) [_WIN32 || __MSDOS__]: Canonicalize the new directory
4577 name explicitly. Handle "d:/" names correctly.
4578 (init_history) [__MSDOS__]: Use _gdb_history as the default GDB
4579 history file name.
4580
5a2468f5
JM
4581Mon Jul 26 17:13:39 1999 Andrew Cagney <cagney@b1.cygnus.com>
4582
4583 * remote.c (enum packet_support, enum packet_detect, struct
4584 packet_config): Define.
4585 (set_packet_config_cmd, show_packet_config_cmd,
4586 add_packet_config_cmd, init_packet_config): New functions.
4587 Generic support for optional packets.
4588 (remote_protocol_P): Replace stub_supports_P.
4589 (set_remote_protocol_P_packet_cmd, show_remote_protocol_P_packet_cmd):
4590 New functions.
4591 (_initialize_remote): Add ``set remote-protocol-P-packet'' command.
4592 (remote_open_1, remote_async_open_1, remote_cisco_open):
4593 Initialize ``remote_protocol_P''.
4594 (remote_store_registers): Re-write ``P'' probe logic.
4595 (store_register_using_P): New function.
4596
4597 From Ian Lance Taylor <ian@airs.com>:
4598 (remote_prepare_to_store): Only read registers when ``P'' packet
4599 is in state unsupported or support-unknown.
4600
46011999-07-24 Fred Fish <fnf@cygnus.com>
4602
104c1213
JM
4603 * symfile.c (default_symfile_offsets): Clear section_offsets
4604 before filling it in.
5a2468f5 4605
adf40b2e
JM
46061999-07-16 Keith Seitz <keiths@cygnus.com>
4607
4608 * remote.c (_initialize_remote): "remotebreak" should be a var_boolean.
4609
de57eccd 46101999-07-15 Jim Blandy <jimb@cygnus.com>
adf40b2e
JM
4611
4612 Make the output from "info registers" fit withinin 80 columns.
a0b3c4fd
JM
4613 * hppa-tdep.c (pa_print_registers): Make it easy to change row and
4614 column counts. Switch to three columns, instead of four, and
4615 adjust spacing.
adf40b2e
JM
4616
4617 First cut at supporting HPPA2.0 in "wide" (64-bit) mode.
4618 * configure.tgt: Add hppa2.0w target.
4619 * config/pa/hppa64.mt, config/pa/tm-hppa64.h: New files.
4620 * hppa-tdep.c (hppa_fix_call_dummy): Dyke out code to tweak the
4621 call dummy, if target is PA2.0w. This is temporary, until I get
4622 function calls working.
4623 * hppah-nat.c (fetch_register): Rewritten to handle both narrow
4624 and wide register requests.
4625 (HPPAH_OFFSETOF): New macro.
4626
4627 * gdbtypes.c (is_integral_type): New function.
4628 * gdbtypes.h: Prototype for above.
4629
46301999-07-15 J.T. Conklin <jtc@redback.com>
4631
4632 * configure.tgt (i[3456]86-*-vxworks*): New target.
4633 * config/i386/vxworks.mt: New file, x86 VxWorks target
4634 * config/i386/tm-vxworks.h: New file.
4635
4636 * configure.tgt (powerpc-*-vxworks*): New target.
4637 * config/powerpc/vxworks.mt: New file, PowerPC VxWorks target
4638 * config/powerpc/tm-vxworks.h: New file.
4639
4640 * NEWS: Mention the new configs.
4641
46421999-07-15 Fernando Nasser <fnasser@cygnus.com>
4643
4644 * target.c (target_preopen): Prevent query when not from_tty.
4645 * infcmd.c (run_command): Prevent query when not from_tty.
4646
46471999-07-15 Fernando Nasser <fnasser@cygnus.com>
4648
4649 * event-loop.c: Fix typo in comment.
4650
4651Wed Jul 14 17:29:31 1999 Andrew Cagney <cagney@b1.cygnus.com>
4652
4653 * ser-pipe.c (struct pipe_state): Define.
4654 (pipe_close): Retain the PID of the sub-process using ``struct
4655 pipe_state''. Delete #ifdef code that used popen().
4656 (pipe_close): Kill of the sub-process as part of the cleanup.
4657
4658 * serial.h (struct _serial_t): Add field ``state''.
4659
46601999-07-13 Elena Zannoni <ezannoni@kwikemart.cygnus.com>
4661
4662 * event-top.c (display_gdb_prompt): Don't display the prompt if we
4663 are in the middle of an execution command. Also trick readline so
4664 it doesn't try to display the prompt.
4665 (command_line_handler): Get rid of change_prompt, unused variable.
4666 Use {push, pop}_prompt mechanism in case of multiline commands.
4667
4668 * infrun.c (complete_execution): Set target_executing to 0 as
4669 first thing, so that display_gdb_prompt does the right thing.
4670
4671Tue Jul 13 20:29:46 1999 Andrew Cagney <cagney@b1.cygnus.com>
4672
4673 * parse.c (build_parse): Fix conditional increment of num_std_regs
4674 for SP_REGNUM. Was conditional on FP_REGNUM.
4675
4676Tue Jul 13 16:44:58 1999 Andrew Cagney <cagney@b1.cygnus.com>
4677
4678 * gdbarch.h, gdbarch.c: Revert 1999-07-07 Stan Shebs
4679 <shebs@andros.cygnus.com> indentation change. Don't let indent
4680 mess with these files.
4681
43e526b9
JM
4682Mon Jul 12 11:15:09 1999 Andrew Cagney <cagney@b1.cygnus.com>
4683
4684 * config/mips/tm-mips.h (REGISTER_CONVERT_TO_RAW,
4685 REGISTER_CONVERT_TO_VIRTUAL, REGISTER_CONVERTIBLE): Define.
4686 (REGISTER_RAW_SIZE): Re-define as mips_register_convert_to_raw.
4687 * mips-tdep.c (mips_register_convert_to_raw,
4688 mips_register_convert_to_virtual, ): New functions.
4689 (mips_register_raw_size, mips_register_convertible): New
4690 functions. Handle bug introduced by ``Wed Apr 1 23:13:23 1998
4691 Andrew Cagney <cagney@b1.cygnus.com>'' where remote mips64 target
4692 transfers SR as 64 bits yet GDB expected only 32 bits.
4693 (mips64_transfers_32bit_regs): New static variable.
4694 (_initialize_mips_tdep): Add obscure command ``set
4695 remote-mips64-transfers-32bit-regs'' that provides backward
4696 compatibility.
4697 (do_gp_register_row): Extract register values from raw buffer.
4698
4699 * NEWS: Document protocol change.
4700
adf40b2e
JM
47011999-07-12 Keith Seitz <keiths@cygnus.com>
4702
104c1213 4703 * rdi-share/unixcomm.c (Unix_ResetSerial): Remove CYGWIN32
adf40b2e 4704 conditional. It's no longer needed.
104c1213
JM
4705 (SERPORT1, SERPORT2): Linux serial ports are "/dev/ttyX", not
4706 "/dev/cuaX" (X=0,1,2,3,...).
adf40b2e 4707
43e526b9
JM
4708Mon Jul 12 02:02:00 1999 Andrew Cagney <cagney@amy.cygnus.com>
4709
4710 * defs.h, utils.c (fputstrn_filtered, fputstrn_unfiltered,
4711 fputstrnn_unfiltered): New functions.
4712 (gdb_printchar): Delete.
4713
4714 * remote.c (print_packet): Replace gdb_printchar with
4715 fputstrn_filtered.
4716 (getpkt): Use fputstrn_unfiltered to dump packet received.
4717 (putpkt_binary): Use fputstrnn_unfiltered to dump packet sent.
4718
47191999-07-09 Keith Seitz <keiths@cygnus.com>
4720
4721 * blockframe.c (blockvector_for_pc_sect): When looking for a block,
4722 we want the one whose end is greater than our PC, not greater or equal.
4723
47241999-07-08 Stan Shebs <shebs@andros.cygnus.com>
4725
4726 * sparcl-tdep.c (init_sparclite_ops): Fix doc strings, remove
4727 useless inits.
4728 (sparclite_ops): Remove redundant decl.
4729
4730Thu Jul 8 16:48:40 1999 Andrew Cagney <cagney@b1.cygnus.com>
4731
4732 * ser-pipe.c (pipe_open): Bi-directional popen found on both
4733 NetBSD and OpenBSD.
4734 * ser-pipe.c: New file. Implement popen() style serial interface.
4735 * NEWS: Mention.
4736 * Makefile.in (ALLDEPFILES): Add ser-pipe.c.
4737 (ser-pipe.o): Add new target. Specify dependencies.
4738 (SER_HARDWIRE): Add ser-pipe.o.
4739 * serial.c (serial_open): Recognize a serial pipe ``|''.
4740
9846de1b
JM
47411999-07-07 Stan Shebs <shebs@andros.cygnus.com>
4742
c5aa993b
JM
4743 * All C files except *-stub.c and *-share/*: Indent to GNU
4744 standard, using indent 1.9.1.
4745 * defs.h: Make indent ignore this file, macros confuse it.
4746
9846de1b
JM
4747 * gnu-regex.c, gnu-regex.h: Don't let indent mess with these.
4748
4749Wed Jul 7 13:06:24 1999 Andrew Cagney <cagney@b1.cygnus.com>
4750
4751 * remote-mips.c (fputs_readable): Rename puts_readable, add struct
4752 gdb_file argument.
4753 (fputc_readable): Rename putc_readable, add struct gdb_file
4754 argument.
4755
4756 * remote-mips.c (mips_expect_timeout, mips_receive_header,
4757 mips_send_packet, mips_receive_packet), remote-rdp.c (put_byte,
4758 get_byte, put_word, rdp_init, rdp_init), remote-sds.c
4759 (sds_interrupt, sds_wait, readchar, putmessage, read_frame,
4760 getmessage), remote-udi.c (udi_store_registers, fetch_register):
4761 (store_register), xmodem.c (readchar), utils.c (puts_debug),
4762 gnu-nat.h (debug), parse.c (parse_exp_1): Cleanup - send debug/log
4763 messages to gdb_stdlog.
4764
47651999-07-06 Stan Shebs <shebs@andros.cygnus.com>
4766
4767 * exec.c: Remove long-#ifed-out section of code that confuses
4768 indent.
4769 * gdbtypes.c (add_mangled_type): Add some braces to indicate
4770 grouping better.
4771 * gnu-nat.c: Remove literal newlines embedded in strings,
4772 causes indent to weird out.
4773 * language.c (binop_result_type): Remove extra paren.
4774 * lynx-nat.c: Add a missing paren to fetch_core_registers decl.
4775 * nec4102rom.c (vr4102_insert_step): Fix typos.
4776 (_initialize_vr4102_rom): Remove literal newline in string.
4777 * config/a29k/tm-a29k.h: Suppress formatting of pictures.
4778 * config/m68k/xm-3b1.h: Remove excess #endif.
4779
4780 Declare Pyramid configuration obsolete.
4781 * configure.host, configure.tgt: Comment out Pyramid configs.
4782 * Makefile.in: Comment out Pyramid-related actions.
4783 * pyr-xdep.c, pyr-tdep.c, config/pyr/*: Comment out.
4784 * NEWS: Mention obsolete status.
4785
47861999-07-06 Jason Molenda (jsm@bugshack.cygnus.com)
4787
4788 * remote.c: Include <sys/time.h> to pick up FD_SET et al defns on
4789 some old Linux distributions.
4790 * remote-os9k.c, remote-st.c, ser-tcp.c, ser-unix.c,
4791 sparcl-tdep.c, remote.c: Back out inclusion of <sys/select.h>.
4792 It isn't necessary after all.
4793
47941999-07-06 Elena Zannoni <ezannoni@kwikemart.cygnus.com>
4795
4796 * infcmd.c (strip_bg_char): Remove assignment from 'if' condition.
4797
43ff13b4
JM
47981999-07-05 Jason Molenda (jsm@bugshack.cygnus.com)
4799
4800 * remote.c: Include <sys/select.h> if it exists in order to pick up
4801 FD_SET et al defns.
4802 * remote-os9k.c: Same.
4803 * remote-st.c: Same.
4804 * ser-tcp.c: Same.
4805 * ser-unix.c: Same.
4806 * sparcl-tdep.c: Same.
4807
4808Fri Jul 2 19:38:43 1999 Andrew Cagney <cagney@b1.cygnus.com>
4809
4810 * top.c (target_output_hook): Delete definition.
4811 * defs.h (target_output_hook): Delete declaration.
4812
4813 * remote.c (remote_console_output): Delete call to
4814 target_output_hook(). Send target output to gdb_stdtarg using an
4815 unfiltered write. Make more robust.
4816
4817 * remote-sim.c (gdb_os_write_stdout, gdb_os_write_stderr):
4818 Ditto. For moment, do not try to separate target stdout and stderr
4819 streams.
4820
4821 * defs.h (gdb_stdtarg): New global. Output from target and
4822 simulators.
4823
48241999-07-02 Elena Zannoni <ezannoni@kwikemart.cygnus.com>
4825
4826 * top.c (return_to_top_level): Do all the exec_cleanups too.
4827
4828 * event-top.c (command_handler): Set up for a continuation, if we
4829 are in the middle of running an execution command which will
4830 finish later on. Do cleanups, an display of time/space only if not
4831 running with an async target or not running an execution command.
4832 (command_line_handler_continuation): New function. Continuation
4833 for command_line_handler.
4834
4835 * utils.c (exec_cleanup_chain): New cleanup chain to be used in
4836 async mode for the execution commands.
4837 (make_exec_cleanup): New function. Add a cleanup to the
4838 exec_cleanup_chain.
4839 (do_exec_cleanups): New Function. Do cleanups on the
4840 exec_cleanup_chain.
4841 (add_continuation): New function. Add a new continuation to the
4842 cmd_continuation list.
4843 (do_all_continuations): New function. Do all the continuations on
4844 the cmd_continuation list.
4845
4846 * top.h (ALL_CLEANUPS): Move from here to defs.h.
4847
4848 * defs.h (struct continuation_arg): New structure. Arg to pass to
4849 the call to a command continuation.
4850 (struct continuation): New structure. Continuation for an
4851 execution command.
4852 (ALL_CLEANUPS): Move here from top.h.
4853
4854 * remote.c (remote_async_open_1): Set things up for telling the
4855 target we are running the extended protocol, only after the target
4856 has stopped.
4857 (set_extended_protocol): New function. Tell the target we are
4858 using the extended protocol.
4859 (remote_async_resume): Set things up for sync execution only if
4860 this is the first time we are called.
4861
4862 * breakpoint.c (until_break_command_continuation): New function.
4863 Stuff to be done after the target stops during the 'until'
4864 command.
4865 (until_break_command): Set things up for completing the 'until'
4866 command later on. Do the final cleanups only if not running
4867 asynchronously or async execution is not supported by the target.
4868
4869 * infcmd.c (until_command): Recognize '&' at end of command and
4870 handle it properly.
4871 (finish_command_continuation): New function. Do whatever is needed
4872 after the target has stopped.
4873 (finish_command): Recognize '&' at end of command and handle it
4874 properly. Don't do stuff needed after target has stopped if
4875 running asynchronously and target has async. Use exec_cleanup_chain
4876 if running asynchronously and target is asynchronous.
4877
4878 * infrun.c (cmd_continuation): New gloabl variable. Used to
4879 coplete execution commands in async mode, after the target has
4880 stoped.
4881 (fetch_inferior_event): Use exec_cleanup_chain, instead of
4882 cleanup_chain. Do all the exec cleanups at the end. Do all the
4883 continuations at the end. Call complete_execution from here,
4884 instead of normal_stop.
4885 (complete_execution): Cleanup the signals handlers for SIGINT
4886 before displaying the prompt.
4887 (start_remote): Set target_executing to 1.
4888 (normal_stop): Don't call complete_execution from here.
4889
4890Thu Jul 1 19:14:30 1999 Andrew Cagney <cagney@b1.cygnus.com>
4891
4892 * blockframe.c (struct dummy_frame): Add member ``top''.
4893 (generic_push_dummy_frame): Initialize top to sp.
4894 (generic_save_dummy_frame_tos): New function. Initialize top.
4895 (generic_find_dummy_frame): Check for the top of the frame.
4896
4897 * blockframe.c (generic_push_dummy_frame): Free the dummy_frame
4898 registers.
4899
4900 * config/mn10300/tm-mn10300.h (SAVE_DUMMY_FRAME_TOS): Define.
4901 (TARGET_READ_FP): Return the SP as a best guess.
4902
4903Wed Jun 30 15:45:48 1999 Jeffrey A Law (law@cygnus.com)
4904
4905 * configure.host (hppa*-*-hpux11*): Accept any version of hpux11
4906 instead of hpux11.0*.
4907
49081999-06-30 Fernando Nasser <fnasser@totem.to.cygnus.com>
4909
4910 * source.c (directory_command): Add missing test for from_tty.
4911
49121999-06-29 Elena Zannoni <ezannoni@kwikemart.cygnus.com>
4913
4914 * remote.c: Include event-loop.h.
4915 (remote_async_ops, extended_async_remote_ops): Define new target
4916 vector structures for asynchronous debugging.
4917 (remote_async_open): New function. Asynchronous version of
4918 remote_open.
4919 (extended_remote_async_open): New function. Asynchronous version
4920 of extended_remote_open.
4921 (remote_async_open_1): New function. Async version of
4922 remote_open_1.
4923 (remote_async_detach): New function. Async version of
4924 remote_detach.
4925 (remote_async_resume): New function. Async version of
4926 remote_resume.
4927 (initialize_sigint_signal_handler, handle_remote_sigint,
4928 handle_remote_sigint_twice, async_remote_interrupt,
4929 async_remote_interrupt_twice, cleanup_sigint_signal_handler): New
4930 functions. Used for handling ^C while target is running.
4931 (remote_async_wait): New function. Async version of remote_wait.
4932 (remote_async_kill): New function. Async version of remote_kill.
4933 (extended_remote_async_create_inferior): New function. Async
4934 version of extended_remote_create_inferior.
4935 (init_remote_async_ops): New function. Initialize target vector
4936 for target async.
4937 (init_extended_async_remote_ops): New function. Initialize target
4938 vector for target extended-async.
4939 (_initialize_remote): Initialize remote_async_ops and
4940 extended_async_remote_ops.
4941
4942 * infrun.c: Include "event-loop.h".
4943 (sync_execution): new global variable.
4944 (proceed): Invoke wait_for_inferior and normal_stop only if not
4945 running in async mode or if target doesn't support async
4946 execution.
4947 (start_remote): Don't call wait_for_inferior and normal_stop if
4948 not running in async mode or if target not async. If running async
4949 and target is async, start the target in simulated synchronous
4950 mode.
4951 (async_ecss, async_ecs): New global vars, for inferior state.
4952 (fetch_inferior_event): New function. Async version of
4953 wait_for_inferior.
4954 (complete_execution): New function. Reset of gdb prompt and stdin,
4955 after inferior execution has completed.
4956 (normal_stop): Call complete_execution at end of asynchronous
4957 execution.
4958
4959 * infcmd.c (strip_bg_char): New function to detect the background
4960 execution char '&'.
4961 (run_command): Modify to support background and foreground
4962 execution in async mode.
4963 (continue_command): Ditto.
4964 (step_1): Ditto.
4965 (jump_command): Ditto.
4966 (interrupt_target_command): New function. Interrupt the
4967 target execution.
4968 (_initialize_infcmd): Add new command 'interrupt'.
4969
4970 * top.c (target_executing): New global variable.
4971 (execute_command): Reject commands that cannot be executed while
4972 the target is running asynchronously.
4973
4974 * event-top.c (push_prompt): Make non static.
4975 (pop_prompt): Make non static. If the current prompt is empty,
4976 don't try to copy it over the previous one.
4977 (handle_sigint): Make non static.
4978 (command_handler): Do the cleanups only when not executing with an
4979 asynchronous target.
4980
4981 * event-loop.c (delete_async_signal_handler): Pass a pointer to a
4982 pointer to a signal handler, so that is can be freed at the end.
4983
4984 * target.c (update_current_target): Inherit to_has_async_exec.
4985
4986 * inferior.h: Add global variables target_executing, and
4987 sync_execution. Export function fetch_inferior_event.
4988
4989 * event-loop.h: Add push_prompt, pop_prompt, handle_sigint to the
4990 exported functions. Update prototype for delete_signal_handler.
4991
4992 * target.h (struct target_ops): New target op: to_has_async_exec.
4993 (target_has_async): New macro.
4994
4995 * Makefile.in (infrun.o): Add dependency on event-loop.h.
4996 (remote.o): Ditto.
4997
085dd6e6
JM
49981999-06-28 Jim Blandy <jimb@zwingli.cygnus.com>
4999
5000 * solib.c (clear_solib): Don't disable breakpoints if we're
5001 running an a.out executable (Solaris's SunOS emulation).
5002
50031999-06-25 Elena Zannoni <ezannoni@kwikemart.cygnus.com>
5004
5005 * main.c (main): Remove intialization of command_loop_hook, it
5006 is now done in _initialize_event_loop().
5007 * event-loop.c (gdb_do_one_event): Make static.
5008 (start_event_loop): New function. Just start the event loop.
5009 * event-top.c (cli_command_loop): New name for start_event_loop().
5010 (gdb_readline2): Make non static.
5011 (_initialize_event_loop): Set command_loop_hook to cli_command_loop.
5012 * event-loop.h: Adjust exported functions accordingly.
5013
5014 * top.c (init_main): Move setting of async_command_editing_p from
5015 here.
5016 * event-top.c (_initialize_event_loop): To here.
5017 (change_line_handler): Revert previous change. Add comment.
5018 (_initialize_event_loop): Revert previous change.
5019 (cli_command_loop): New name for start_event_loop().
5020 (start_event_loop): New function. This just starts up the event loop.
5021 (gdb_readline2): Make non static.
5022 (_initialize_event_loop): Set command_loop_hook to cli_command_loop.
5023
50241999-06-25 Elena Zannoni <ezannoni@kwikemart.cygnus.com>
5025
5026 * event-top.c (change_line_handler): Get rid of the global
5027 variable input_fd, use `fileno (instream)' instead.
5028 (_initialize_event_loop): Ditto
5029
5030 * event-loop.c (add_file_handler): New function. Wrapper for
5031 create_file_handler.
5032 (create_file_handler): Make static.
5033 * event-top.c (_initialize_event_loop): Call add_file_handler,
5034 instead of create_file_handler.
5035 (change_line_handler): Ditto.
5036 Remove poll.h include.
5037 * event-loop.h: Export add_file_handler instead of
5038 create_file_handler.
5039
50401999-06-24 Stan Shebs <shebs@andros.cygnus.com>
5041
5042 Declare Altos configuration obsolete.
5043 * configure.host, configure.tgt: Comment out Altos config.
5044 * Makefile.in: Comment out Altos-related actions.
5045 * altos-xdep.c, config/m68k/altos.mh, altos.mt, tm-altos.h,
5046 xm-altos.h: Comment out.
5047 * NEWS: Mention obsolete status.
5048
50491999-06-24 Jason Molenda (jsm@bugshack.cygnus.com)
5050
5051 * Makefile.in: Add MAKEHTML and MAKEHTMLFLAGS; pass them down;
5052 recognize html and install-html targets.
5053 * gdbserver/Makefile.in: Add empty html and install-html targets.
5054 * nlm/Makefile.in: Ditto.
5055 * rdi-share/Makefile.in: Ditto.
5056
50571999-06-24 Jim Blandy <jimb@zwingli.cygnus.com>
5058
5059 * ax-gdb.c (agent_command): Remove vestigial call to ax_reqs.
5060
50611999-06-24 James Ingham <jingham@leda.cygnus.com>
5062
5063 * arm-tdep.c (arm_othernames): Change both gdb's register display
5064 AND the opcode disassembly register naming if the othernames
5065 command. Fixes the gdb part of CR 101177.
5066
50671999-06-23 Stan Shebs <shebs@andros.cygnus.com>
5068
5069 Declare Convex configuration obsolete.
5070 * configure.host, configure.tgt: Comment out Convex configs.
5071 * Makefile.in: Comment out Convex-related actions.
5072 * convex-xdep.c, convex-tdep.c, config/convex/*: Comment out.
5073 * NEWS: Mention obsolete status.
5074
50751999-06-23 Elena Zannoni <ezannoni@kwikemart.cygnus.com>
5076
5077 * main.c: Turn on async by default by setting async_p to 1.
5078
5079Wed Jun 23 15:44:39 1999 Andrew Cagney <cagney@b1.cygnus.com>
5080
5081 From Jimmy Guo <guo@cup.hp.com>:
5082 * frame.h (enum lval_type): Delcare when an __STDC__ compiler.
5083 Reverts Mon Aug 11 16:08:52 1997 Fred Fish <fnf@cygnus.com>
5084 change.
5085 * utils.c (gdb_file_rewind, gdb_file_put): Fix. A void function
5086 does not return a result.
5087
5088Wed Jun 23 15:30:46 1999 Andrew Cagney <cagney@b1.cygnus.com>
5089
5090 * remote.c (set_thread, remote_get_threadinfo,
5091 remote_threads_info, remote_current_thread, remote_get_threadlist,
5092 extended_remote_restart, get_offsets, remote_open_1,
5093 remote_detach, remote_resume, remote_wait, remote_fetch_registers,
5094 remote_store_registers, check_binary_download, remote_write_bytes,
5095 remote_read_bytes, remote_search, putpkt_binary, putpkt_binary,
5096 read_frame, compare_sections_command, remote_query,
5097 packet_command, remote_info_process): Use alloca to create space
5098 for arrays of size PBUFSIZ.
5099
51001999-06-22 Jason Molenda (jsm@bugshack.cygnus.com)
5101
5102 * top.c: Update copyright years to include 1999.
5103
9e0b60a8
JM
51041999-06-18 Elena Zannoni <ezannoni@kwikemart.cygnus.com>
5105
5106 * top.c: Move include of event-loop.h, to avoid redefinition of
5107 NFDBITS.
5108
5109 * event-loop.c (create_file_handler): Do not do a realloc of the
5110 pollfd structure of the notifier, unless there is already one.
5111 Include <sys/types.h> for platforms that have no poll.
5112
5113 * event-top.c: Fix prototype for _initialize_event_loop.
5114 (_initialize_event_loop): Do something only if running in async
5115 mode.
5116
51171999-06-17 Jim Blandy <jimb@zwingli.cygnus.com>
5118
5119 Make the '/c' print format use a true character type. This is
5120 more appropriate than builtin_type_char for languages other than
5121 C, and C tolerates it.
5122 * gdbtypes.c (builtin_type_true_char): New variable.
5123 (build_gdbtypes): Initialize it.
5124 * gdbtypes.h (builtin_type_true_char): New declaration.
5125 * printcmd.c (print_scalar_formatted): When the format is 'c',
5126 extract the value as a builtin_type_true_char.
5127
5128 * jv-exp.y (yylex): Say character literals are java_char_type, not
5129 builtin_type_char. Java treats the latter like `byte'.
5130
51311999-06-17 Elena Zannoni <ezannoni@kwikemart.cygnus.com>
5132
5133 * Makefile.in (top_h): Define.
5134 (event-loop.o): Add dependencies on top.h and defs.h.
5135 (event-top.o): Add dependency on terminal.h.
43ff13b4 5136
9e0b60a8
JM
5137 * event-loop.c: Get rid of #include <readline.h>.
5138
5139 * event-loop.h: Get rid of nested #include's.
5140 * event-loop.c: Rearrange includes to accomodate change in
5141 event-loop.h. Include poll.h, not sys/poll.h.
5142 * event-top.c: Ditto.
5143 * main.c: Ditto.
5144
51451999-06-16 David Taylor <taylor@louisiana.cygnus.com>
5146
5147 * alpha-tdep.c (alpha_pop_frame): if frame->proc_desc
5148 is NULL, call find_proc_desc so we know how to restore
5149 the registers.
5150
51511999-06-15 Michael Snyder <msnyder@cleaver.cygnus.com>
5152
5153 * event-top.c (start_event_loop): call get_prompt.
5154 (display_gdb_prompt): call get_prompt.
5155 (async_stop_sig): call get_prompt.
5156
51571999-06-15 Elena Zannoni <ezannoni@kwikemart.cygnus.com>
5158
5159 * event-loop.c (delete_file_handler): When positioning prev_ptr,
5160 keep looping while the one after is not equal to file_ptr, instead
5161 of equal.
5162
0f71a2f6
JM
51631999-06-14 Stan Shebs <shebs@andros.cygnus.com>
5164
5165 * MAINTAINERS: Add Jimmy Guo and Jim Blandy as HP testsuite and
5166 SVR4 solib maintainers, respectively.
5167
51681999-06-14 Michael Snyder <msnyder@cleaver.cygnus.com>
5169
5170 Add parameters to the gdb prompt.
5171 * top.c (prompt): Rename to gdb_prompt_string for clarity.
5172 (command_line_input): rename "prrompt" to prompt_arg for clarity.
5173 (gdb_readline): rename "prrompt" to prompt_arg for clarity.
5174 (read_command_lines): rename "prompt" to prompt_arg for clarity.
5175 (stop_sig): call get_prompt instead of reading prompt string directly.
5176 (command_loop): ditto.
0f71a2f6
JM
5177 (gdb_prompt_escape): New variable. Esc char for prompt parameters.
5178 (get_prompt_1): New function, workhorse for get_prompt.
5179 (get_prompt): Completely rewrite. Add functionality for a
5180 parameterized prompt, ie. the displayed prompt can change according
5181 to the value of one or more expressions given as parameters in the
5182 prompt string.
5183 (init_main): use renamed variable gdb_prompt_string. Add new
5184 command "set prompt-escape-char" to set gdb_prompt_escape.
5185
5186Sun Jun 13 10:44:13 1999 Andrew Cagney <cagney@b1.cygnus.com>
5187
5188 * defs.h (gdb_stdlog), main.c: Declare.
5189 * main.c (main): Initialize.
5190 * gdbarch.c: Write trace messages to the log file.
5191 * remote.c: Update any debug/log prints.
5192
51931999-06-11 Michael Snyder <msnyder@cleaver.cygnus.com>
5194
5195 * remote.c (remote_wait): Clean up new thread handling.
5196 (record_currthread): Announce new threads.
5197
51981999-06-11 Jim Blandy <jimb@zwingli.cygnus.com>
5199
5200 * partial-stab.h (case N_LSYM, 'T' descriptor): Don't create
5201 partial symbol table entries for nameless enums, even if the type
5202 name is " ". (We still pick up the enum elements, though.)
5203
5204 * partial-stab.h: Remove #if 0'd sections, dating back to 1992,
5205 which set a variable which exists nowhere else in the source.
5206 Please examine your test suite output carefully, and report any
5207 problems to me.
5208
52091999-06-11 Elena Zannoni <ezannoni@kwikemart.cygnus.com>
5210
5211 * event-top.c (setup_event_loop): Change name to start_event_loop.
5212 Move the intialization of event-loop variables to
5213 _initialize_event_loop.
5214 (_initialize_event_loop): New function. Called at init time, to
5215 set up important event-loop variables.
5216
5217 * event-loop.h: setup_event_loop is now start_event_loop.
5218 * main.c (main): Ditto.
5219
5220Fri Jun 11 18:34:33 1999 Andrew Cagney <cagney@b1.cygnus.com>
5221
5222 * defs.h (gdb_file_rewind_ftype, gdb_file_rewind,
5223 set_gdb_file_rewind, gdb_file_put_ftype, gdb_file_put,
5224 set_gdb_file_put): Declare.
5225
5226 * utils.c (gdb_file_new): Initialize ``rewind'' and ``put''.
5227 (struct gdb_file): Add to_rewind and to_put.
5228 (null_file_put, null_file_rewind, gdb_file_put, gdb_file_rewind,
5229 set_gdb_file_put, set_gdb_file_rewind): New functions.
5230 (tui_file_rewind, tui_file_put): New functions.
5231 (tui_file_new): Add rewind and put.
5232
5233Fri Jun 11 15:10:32 1999 Andrew Cagney <cagney@b1.cygnus.com>
5234
5235 * d10v-tdep.c (d10v_push_arguments): Fix order of arguments passed
5236 to store_address.
5237
5238Fri Jun 11 10:31:29 1999 Andrew Cagney <cagney@b1.cygnus.com>
5239
5240 * remote.c (tty_input): Change array to pointer.
5241 (_initialize_remote): Call build_remote_gdbarch_data.
5242 (build_remote_gdbarch_data): New function. Allocate space for
5243 tty_input.
5244 (readsocket, readtty): Delete extern declaration of tty_input.
5245
52461999-06-10 Elena Zannoni <ezannoni@kwikemart.cygnus.com>
5247
5248 * event-top.c (gdb_readline2): Call the command handling function
5249 via the input_handler pointer.
5250 (change_line_handler): When turning off editing, set input_handler
5251 as well.
5252
5253 * utils.c (prompt_for_continue): If running asynchronously, call
5254 async_request_quit, instead of request_quit.
5255
5256 * tracepoint.c (read_actions): If running asynchronously, set the
5257 signal handler for STOP_SIGNAL to handle_stop_sig.
5258
5259 * top.h: (source_line_number, source_file_name, source_error,
5260 source_pre_error, history_expansion_p, server_command): export for
5261 use of event-top.c.
5262
5263 * event-top.c: Include top.h and terminal.h.
5264 (instream): Remove extern declaration.
5265 (handle_sigint, handle_sigquit, handle_sighup, handle_sigfpe,
5266 handle_sigwinch, async_do_nothing, async_disconnect,
5267 async_float_handler, async_stop_sig): Make static.
5268 (async_request_quit, async_do_nothing, async_disconnect,
5269 async_float_handler, async_stop_sig): Add gdb_glient_data
5270 argument.
5271 (handle_stop_sig): New function.
5272 (sigtstp_token): New variable.
5273 (sigint_token, sigquit_token, sigfpe_token, sigwinch_token):
5274 Change their type tp PTR.
5275 (mark_async_signal_handler_wrapper): New function.
5276 (setup_event_loop): Initialize all the variables used by readline
5277 only if not already done while reading the .gdbinit file. Display
5278 the initial gdb prompt, if .gdbinit took care of setting things up
5279 for readline.
5280 (change_line_handler): When turning on the use of readline,
5281 initialize input_handler as well.
5282 (command_line_handler): Set up the signal handler for STOP_SIGNAL
5283 to be handle_stop_sig.
5284 (async_init_signals): Remove coercion of signal handlers in calls
5285 to create_async_signal_handler. Initialize token for stop signal.
5286 (handle_sigint): Call async_request_quit using one argument.
5287 (handle_sigint, handle_sigquit, handle_sighup, handle_sigfpe,
5288 handle_sigwinch): Call mark_async_signal_handler_wrapper instead
5289 of mark_async_signal_handler.
5290
5291 * event-loop.h: Add extern declarations for handle_stop_sig,
5292 async_command_editing_p, async_annotation_suffix,
5293 new_async_prompt, the_prompts.
5294
5295 * top.c (command_line_input): Set the signal handler to be
5296 handle_stop_sig, in case gdb is running asynchronously.
5297 (get_prompt): Return the top of the prompt stack if running
5298 asynchronously.
5299 (set_prompt): Set the top of the prompt stack if running
5300 asynchronously.
5301 (init_main): Move ``extern'' vars from here to event-loop.h.
5302
53031999-06-10 Michael Snyder <msnyder@cleaver.cygnus.com>
5304
5305 * values.c (value_from_string): new function. Make a value_ptr
5306 from a string, with storage in local GDB memory (not in inferior).
5307 * value.h (value_from_string): add prototype.
5308 * remote.c (remote_cisco_ops): New remote target, "target cisco".
5309 (init_remote_cisco_ops): New function, initialize new target.
5310 (remote_cisco_mourn, remote_cisco_wait, remote_cisco_open,
5311 remote_cisco_close): New functions, implement new target cisco.
5312 (minitelnet, readtty, readsocket) New functions, implement the
5313 I/O pass-through mode for target cisco.
5314 (remote_wait): Detect special enhanced version of the 'S' packet
5315 for target cisco.
5316 (remote_cisco_expand): Perform Cisco variant of RLL decoding.
5317
53181999-06-10 Elena Zannoni <ezannoni@kwikemart.cygnus.com>
5319
5320 * event-loop.c (gdb_wait_for_event): Initialize num_found to 0.
5321
5322 * top.c (print_prompt): Delete this function.
5323
5324 From: Andrew Cagney <cagney@b1.cygnus.com>
5325
5326 * event-top.c (async_hook): Delete extern declaration.
5327
5328 * defs.h: Replace ``async_hook'' with ``async_p''.
5329 * top.c (gdb_init, init_main, init_main, init_main, init_main):
5330 Replace ``async_hook'' with ``async_p''.
5331
5332 * main.c: Rename ``async'' to ``async_p''.
5333 (main): Add --noasync option.
5334 (main): Hook in the asynchronous event-loop based CLI using
5335 command_loop_hook instead of async_hook. Delete call to
5336 async_hook().
5337
5338Thu Jun 10 21:14:16 1999 Andrew Cagney <cagney@b1.cygnus.com>
5339
5340 * mn10300-tdep.c (mn10300_store_return_value,
5341 mn10300_extract_struct_value_address,
5342 mn10300_extract_return_value), config/mn10300/tm-mn10300.h: New
5343 functions.
5344 * config/mn10300/tm-mn10300.h (EXTRACT_STRUCT_VALUE_ADDRESS,
5345 STORE_RETURN_VALUE, EXTRACT_RETURN_VALUE): Update.
5346 (TARGET_MN10300): Delete macro. Not used.
5347
5348Thu Jun 10 20:04:02 1999 Andrew Cagney <cagney@b1.cygnus.com>
5349
5350 * mn10300-tdep.c (mn10300_register_names): Make static.
5351 (STORE_STRUCT_RETURN): Do not modify SP.
5352
5353 * config/mn10300/tm-mn10300.h(mn10300_register_name),
5354 mn10300-tdep.c : New function.
5355 * config/mn10300/tm-mn10300.h (REGISTER_NAME): Update.
5356 * config/mn10300/tm-mn10300.h (mn10300_saved_pc_after_call),
5357 mn10300-tdep.c: New function.
5358 * config/mn10300/tm-mn10300.h (SAVED_PC_AFTER_CALL): Update.
5359
96baa820
JM
53601999-06-10 Keith Seitz <keiths@cygnus.com>
5361
5362 * mcore-rom.c (picobug_dumpregs): Return a value. Any value, it
5363 doesn't matter.
5364 * mcore-tdep.c (mcore_analyze_prologue): Set NO_MORE_FRAMES
5365 if the start of the function is the entry point.
5366 (mcore_analyze_prologue): rotli takes an immediate, not an
5367 offset immediate.
5368 (mcore_push_arguments): Fix compiler warning.
5369
0f71a2f6 53701999-06-09 Peter Schauer (pes@regent.e-technik.tu-muenchen.de)
104c1213 5371
0f71a2f6
JM
5372 * rs6000-tdep.c (skip_prologue): Don't mistake a branch for a
5373 subroutine call.
5374
53751999-06-08 Michael Snyder <msnyder@cleaver.cygnus.com>
5376
5377 * remote.c (remote_wait): Add 'N' response packet, which is a
5378 stop with signal number plus section offsets for .text, .data and
5379 .bss. This is used by Cisco to indicate relocation offsets.
5380 (remote_cisco_section_offsets, remote_cisco_objfile_relocate):
5381 new files to support 'N' packet.
5382 (remote_info_process): New function. Implements the
5383 "info remote-process" command, by means of which the remote target
5384 can report anything it wants to about the remote process/app being
5385 debugged.
5386 (_initialize_remote): add info remote-proc command.
5387 (remote_threads_info): New function for "info threads" command.
5388 Attempts to use new query "qfThreadInfo" instead of the old
5389 undocumented query.
5390 * exec.c (exec_set_section_offsets) new files to support 'N' packet.
5391
5392Tue Jun 8 13:33:42 1999 Andrew Cagney <cagney@amy.cygnus.com>
5393
5394 * inferior.h (generic_target_read_pc, generic_target_write_pc,
5395 generic_target_read_fp, generic_target_write_fp,
5396 generic_target_read_sp, generic_target_write_sp): Declare new
5397 functions.
5398 * findvar.c (generic_target_read_pc, generic_target_write_pc,
5399 generic_target_read_fp, generic_target_write_fp,
5400 generic_target_read_sp, generic_target_write_sp): New functions.
5401 (TARGET_READ_PC, TARGET_WRITE_PC, TARGET_READ_FP, TARGET_WRITE_FP,
5402 TARGET_READ_SP, TARGET_WRITE_SP): Default to corresponding generic
5403 function.
5404 (write_pc_pid, write_pc_pid, read_sp, write_sp, read_fp,
5405 write_fp): Simplify.
5406
5407 * gdbarch.c (verify_gdbarch): Always verify TARGET_PTR_BIT,
5408 TARGET_SHORT_BIT, TARGET_INT_BIT, TARGET_LONG_BIT,
5409 TARGET_LONG_LONG_BIT, TARGET_FLOAT_BIT, TARGET_DOUBLE_BIT,
5410 TARGET_LONG_DOUBLE_BIT, TARGET_READ_PC, TARGET_WRITE_PC,
5411 TARGET_READ_FP, TARGET_WRITE_FP, TARGET_READ_SP, TARGET_WRITE_SP,
5412 USE_GENERIC_DUMMY_FRAMES, CALL_DUMMY_BREAKPOINT_OFFSET_P,
5413 CALL_DUMMY_P, CALL_DUMMY_STACK_ADJUST_P, GET_SAVED_REGISTER,
5414 REGISTER_CONVERTIBLE, PUSH_ARGUMENTS, PUSH_RETURN_ADDRESS,
5415 FRAME_CHAIN_VALID.
5416 (GET_GDBARCH, SET_GDBARCH): Delete macros. Implement functions
5417 directly.
5418 * gdbarch.h, gdbarch.c: Call fatal() instead of abort(). Identify
5419 the function / macro with a problem. Always verify a architecture
5420 attribute before returning it.
5421 * gdbarch.h, gdbarch.c (generic_register_convertible_not): New
5422 function.
5423
5424 * mips-tdep.c (mips_push_return_address): New function.
5425 * config/mips/tm-mips.h (PUSH_RETURN_ADDRESS): Define.
5426
5427 * mips-tdep.c (mips_gdbarch_init): Initialize short_bit,
5428 double_bit, long_double_bit, read_pc, write_pc, read_fp, write_fp,
5429 read_sp, write_sp, frame_chain_valid, get_saved_register,
5430 push_arguments, push_return_address, register_convertible,
5431 call_dummy_p, use_generic_dummy_frames,
5432 call_dummy_breakpoint_offset_p, call_dummy_stack_adjust_p,
5433 call_dummy_words and sizeof_call_dummy_words.
5434 * config/mips/tm-mips.h: Don't define CALL_DUMMY when multi-arch.
5435
cce74817
JM
54361999-06-07 Keith Seitz <keiths@cygnus.com>
5437
5438 * v850ice.c (init_hidden_window): Do not rely on the existence of
5439 a gui for window creation. Return boolean status.
5440 (v850ice_open): Use boolean status of init_hidden_window.
5441 Allow any ICE execution command to run under CLI. Maybe one
5442 day gdb will use a real event loop and allow this code to run.
5443 * configure.tgt: Configure the v850 ice for all cygwin-hosted
5444 toolchains.
5445
5446Mon Jun 7 23:37:26 1999 Andrew Cagney <cagney@amy.cygnus.com>
5447
5448 * config/mips/tm-mips.h (EXTRA_FRAME_INFO): Delete.
5449 * mips-tdep.c (mips_init_extra_frame_info): Allocate saved_regs.
5450 (temp_saved_regs): Replace struct with a simple pointer.
5451 (set_reg_offset, mips32_heuristic_proc_desc, heuristic_proc_desc,
5452 mips_init_extra_frame_info): Update.
5453
5454Mon Jun 7 21:40:12 1999 Andrew Cagney <cagney@amy.cygnus.com>
5455
5456 * config/mips/tm-mips.h (EXTRA_FRAME_INFO): Move elements from here.
5457 * mips-tdep.c (struct frame_extra_info): To here.
5458
5459 * mips-tdep.c (mips_print_extra_frame_info, mips_find_saved_regs,
5460 mips_init_extra_frame_info, mips_pop_frame): Update
5461 (mips_init_extra_frame_info): Allocate space for the extra info.
5462
5463Mon Jun 7 21:08:50 1999 Andrew Cagney <cagney@amy.cygnus.com>
5464
5465 * config/mips/tm-mips.h (mips_init_extra_frame_info), mips-tdep.c:
5466 Rename init_extra_frame_info. Add argument ``fromleaf''.
c2d11a7d 5467 mips-tdep.c (mips_gdbarch_init): Add mips_init_extra_frame_info.
cce74817
JM
5468
5469 * config/mips/tm-mips.h (mips_print_extra_frame_info),
5470 mips-tdep.c: New function.
5471 (PRINT_EXTRA_FRAME_INFO): Update definition.
5472
5473Mon Jun 7 20:11:07 1999 Andrew Cagney <cagney@amy.cygnus.com>
5474
5475 * config/mips/tm-mips.h, config/mips/tm-irix3.h,
5476 config/mips/tm-tx19.h, config/mips/tm-tx19l.h,
5477 config/mips/tm-tx39.h, config/mips/tm-tx39l.h: Rename macro
5478 REGISTER_NAMES to MIPS_REGISTER_NAMES.
5479
5480 * config/mips/tm-mips.h (REGISTER_NAME): Define.
5481 * mips-tdep.c (mips_processor_reg_names): New static variable.
5482 (mips_register_name): New function.
5483 (mips_set_processor_type): Update mips_processor_reg_names.
5484 (mips_generic_reg_names): Initialize using MIPS_REGISTER_NAMES.
c2d11a7d 5485 (mips_gdbarch_init): Add mips_register_name.
cce74817
JM
5486
5487Sun Jun 6 11:09:19 1999 Andrew Cagney <cagney@b1.cygnus.com>
5488
5489 * remote.c (PBUFSIZ): Re-define so that value is computed at
5490 run-time.
5491 (MAXBUFBYTES): Re-define as a macro function.
0f71a2f6
JM
5492 * gdbarch.h, gdbarch.c: Add multi-arch support for REGISTER_BYTES.
5493 * d10v-tdep.c, config/d10v/tm-d10v.h: Update.
cce74817
JM
5494
54951999-06-05 Fernando Nasser <fnasser@totem.to.cygnus.com>
5496
5497 * symtab.c (decode_line_1): Accept filenames with spaces in
5498 'linespecs' when enclosed in double quotation marks and handle
5499 drive specification is DOS format (D:).
5500
55011999-06-04 Jim Blandy <jimb@zwingli.cygnus.com>
5502
5503 * parse.c: Don't include <ctype.h> twice.
5504
55051999-06-04 David Taylor <taylor@louisiana.cygnus.com>
5506
5507 Sat May 15 12:16:09 1999 Per Bothner <bothner@deneb.cygnus.com>
5508
5509 * eval.c (evaluate_subexp_standard): Remove Gilmore rant.
5510 (Of course C has "expected types", at least if you allow
5511 brace-initializer expressions - as in Gcc.)
5512 Remove NULLing out expect_type. Do pass NULL_TYPE in place
5513 the incoming expect_type where appropriate.
5514
5515Fri Jun 4 10:56:23 1999 Jeffrey A Law (law@cygnus.com)
5516
5517 * hppa-tdep.c (hppa_fix_call_dummy): Make it work for GCC compiled
5518 executables without end.o. Clean up lots of mis-guided comments.
5519
5520Fri Jun 4 17:10:36 1999 Andrew Cagney <cagney@b1.cygnus.com>
5521
5522 * parser-defs.h (std_regs): Replace array with pointer.
5523 * parse.c (build_parse): Build the std_regs table according to the
5524 standard registers available.
0f71a2f6
JM
5525 (_initialize_parse): Register std_regs and num_std_regs as
5526 architecture specific.
5527 * gdbarch.h, gdbarch.c: Add multi-arch support for SP_REGNUM,
5528 FP_REGNUM, PC_REGNUM, NUM_REGS, REGISTER_NAME.
5529 * d10v-tdep.c, config/d10v/tm-d10v.h: Update.
cce74817
JM
5530
55311999-06-03 Michael Snyder <msnyder@cleaver.cygnus.com>
5532
5533 * thread.c: eliminate the target_thread_vector (functionality
5534 moved into the standard target vector).
5535 * gdbthread.h: eliminate target_thread_vector. Move all related
5536 defines into remote.c, since they are no longer shared with thread.c.
5537 * remote.c: eliminate the target_thread_vector.
5538 (remote_find_new_threads): change return type to void, consistent
5539 with the target vector table. (cont_thread): rename continue_thread.
5540 (record_currthread): remove dead code. (remote_thread_alive):
5541 clean up and simplify. (threadref etc.): move definitions to here
5542 from gdbthread.h.
5543
55441999-06-02 Jason Molenda (jsm@bugshack.cygnus.com)
5545
5546 * inftarg.c (child_create_inferior): Remove dead HPUX specific code
5547 which tries to find csh.
5548 * fork-child.c: Remove DEBUGGING predefine and conditionalized
5549 printfs.
5550 (fork_inferior): Remove dead HPUX specific code which assumes shell
5551 is csh.
5552
5553 * hppa-tdep.c: Remove DEBUGGING and #if 0 debugging printfs.
5554 * parse.c: Ditto.
5555 * somread.c: Ditto.
5556
0f71a2f6
JM
5557 * gdbarch.h: Forward decl of struct value.
5558
cce74817
JM
5559Thu Jun 3 10:12:38 1999 Andrew Cagney <cagney@b1.cygnus.com>
5560
5561 * d10v-tdep.c (do_d10v_pop_frame): Rename d10v_pop_frame. Make
5562 static.
5563 * d10v-tdep.c (d10v_pop_frame), config/d10v/tm-d10v.h: New
5564 function. Call generic_pop_current_frame.
5565 * config/d10v/tm-d10v.h (POP_FRAME): Update.
5566 * gdbarch.h, gdbarch.c (frame_num_args_unknown): New function.
0f71a2f6
JM
5567 * gdbarch.h, gdbarch.c: Add multi-arch support for POP_FRAME,
5568 SKIP_PROLOGUE, INNER_THAN, DECR_PC_AFTER_BREAK,
5569 FUNCTION_START_OFFSET, REMOTE_TRANSLATE_XFER_ADDRESS, FRAME_CHAIN,
5570 FRAME_CHAIN_VALID, FRAME_SAVED_PC, FRAME_ARGS_ADDRESS,
5571 FRAME_LOCALS_ADDRESS, FRAME_ARGS_SKIP,
5572 FRAMELESS_FUNCTION_INVOCATION, REGISTER_BYTE, REGISTER_RAW_SIZE,
5573 REGISTER_VIRTUAL_SIZE, REGISTER_VIRTUAL_TYPE, SAVED_PC_AFTER_CALL,
5574 FRAME_NUM_ARGS, MAX_REGISTER_RAW_SIZE, MAX_REGISTER_VIRTUAL_SIZE,
5575 REGISTER_SIZE.
5576 * d10v-tdep.c, config/d10v/tm-d10v.h: Update.
cce74817
JM
5577 * config/d10v/tm-d10v.h (DMEM_START, IMEM_START, STACK_START,
5578 ARG1_REGNUM, ARGN_REGNUM, RET1_REGNUM): Move definitions from
5579 here.
5580 * d10v-tdep.c: To here.
5581 * config/d10v/tm-d10v.h (struct type): Move declaration from here.
5582 * gdbarch.h: To here.
5583 * config/d10v/tm-d10v.h (struct frame_info, struct
5584 frame_saved_regs, struct type): Delete declarations.
5585
55861999-06-02 Robert Hoehne <robert.hoehne@gmx.net>
5587
5588 * go32-nat.c: go32_terminal_init, go32_terminal_inferior and
5589 go32_terminal_ours are new functions to save/restore the inferior`s
5590 stdin/stdout filemodes
5591
55921999-06-02 Stan Shebs <shebs@andros.cygnus.com>
5593
5594 * MAINTAINERS: Add Mark Kettenis, Jeff Law, and Philippe De Muyter
5595 as maintainers for Hurd, HP/UX, and COFF, respectively.
5596
55971999-06-02 Mark Kettenis <kettenis@gnu.org>
5598
5599 * gnu-nat.c (inf_continue): New function.
5600 (struct inf): Use `unsigned int' instead of `int' for bit-fields.
5601 Add new bit-field named `nomsg'.
5602 (inf_validate_procinfo): Renamed from inf_validate_stopped, all
5603 callers changed. Also update the `nomsg' and `traced' fields of
5604 INF.
5605 (make_inf): Initialize INF->nomsg.
5606 (inf_cleanup): Reset INF->nomsg.
5607 (inf_detach): Call `inf_validate_procinfo'. Call `inf_continue'
5608 instead of `inf_signal' if the inferior does not have a message
5609 port.
5610 (gnu_resume): Likewise.
5611 (gnu_create_inferior): Reset INF->nomsg in `attach_to_child'.
5612 Call `inf_validate_procinfo' after returning from `fork_inferior'.
5613 (gnu_attach): Update signal thread and tracing state.
5614
5615 * config/i386/tm-i386gnu.h: Include "i386/tm-i386.h" instead of
5616 "i386/tm-i386v.h".
5617 (STACK_END_ADDR): Remove.
5618 (SIGCONTEXT_PC_OFFSET): New define.
5619 Include "tm-sysv4.h".
5620
56211999-06-02 J.T. Conklin <jtc@redback.com>
5622
5623 * config/tm-vxworks.h: New file, header for definitions common to
5624 all vxWorks targets.
5625 * config/a29k/tm-vx29k.h, config/i960/tm-vx960.h,
5626 config/m68k/tm-vx68.h, config/mips/tm-vxmips.h,
5627 config/sparc/tm-vxsparc.h: Include tm-vxworks.h.
5628
5629Wed Jun 2 17:37:03 1999 Jeffrey A Law (law@cygnus.com)
5630
5631 * config/pa/tm-hppa.h (IMPORT_SHLIB): New unwind stub type.
5632
56331999-06-02 Christopher Faylor <cgf@cygnus.com>
5634
5635 * configure.tgt: Alphabetically reorder some targets.
5636
56371999-06-02 Keith Seitz <keiths@cygnus.com>
5638
5639 * v850ice.c (v850ice_xfer_memory): Insert lost "break".
5640
56411999-06-02 Jim Blandy <jimb@zwingli.cygnus.com>
5642
5643 * rs6000-tdep.c (variants): Fix description of 750 register set.
5644 (Thanks to J. T. Conklin.)
5645
5646Wed Jun 2 16:10:08 1999 Andrew Cagney <cagney@b1.cygnus.com>
5647
0f71a2f6
JM
5648 * gdbarch.h, gdbarch.c: Add multi-arch support for
5649 STORE_STRUCT_RETURN, STORE_RETURN_VALUE,
5650 EXTRACT_STRUCT_VALUE_ADDRESS, USE_STRUCT_CONVENTION,
5651 FRAME_INIT_SAVED_REGS and INIT_EXTRA_FRAME_INFO.
5652 * d10v-tdep.c, config/d10v/tm-d10v.h: Update.
5653
cce74817
JM
5654 * config/d10v/tm-d10v.h (FRAME_INIT_SAVED_REGS): Replace
5655 FRAME_FIND_SAVED_REGS.
5656 (d10v_frame_init_saved_regs): Replace d10v_frame_find_saved_regs.
5657 * d10v-tdep.c (d10v_pop_frame, d10v_frame_chain,
5658 d10v_frame_init_saved_regs): Update.
0f71a2f6
JM
5659 * gdbarch.h: Disallow FRAME_FIND_SAVED_REGS when multi-arch.
5660
5661 * gdbarch.h, gdbarch.c: Add multi-arch support for
5662 D10V_MAKE_DADDR, D10V_MAKE_IADDR, D10V_DADDR_P, D10V_IADDR_P,
5663 D10V_CONVERT_DADDR_TO_RAW and D10V_CONVERT_IADDR_TO_RAW.
5664 * d10v-tdep.c, config/d10v/tm-d10v.h: Update.
cce74817
JM
5665
5666 * config/d10v/tm-d10v.h (EXTRA_FRAME_INFO): Delete.
5667 * d10v-tdep.c (struct frame_extra_info): Define.
5668 (d10v_init_extra_frame_info, d10v_pop_frame, d10v_frame_chain,
5669 d10v_frame_find_saved_regs): Update.
0f71a2f6 5670 * gdbarch.h: Disallow EXTRA_FRAME_INFO when multi-arch.
cce74817
JM
5671
5672Tue Jun 1 13:36:31 1999 Philippe De Muyter <phdm@macqel.be>
5673
5674 * config/m68k/tm-delta68.h (FRAME_NUM_ARGS): Macro prototype fixed.
5675 * config/m68k/tm-news.h, config/ns32k/tm-merlin.h: Ditto.
5676 * config/ns32k/tm-umax.h (FRAME_NUM_ARGS): Old macro definition
5677 removed; new macro prototype fixed.
5678
5679Wed Jun 2 11:18:37 1999 Andrew Cagney <cagney@b1.cygnus.com>
5680
0f71a2f6
JM
5681 * gdbarch.h, gdbarch.c: Add multi-arch support for
5682 EXTRACT_RETURN_VALUE, PUSH_ARGUMENTS, PUSH_DUMMY_FRAME,
5683 PUSH_RETURN_ADDRESS, POP_FRAME, FRAME_FIND_SAVED_REGS.
5684 * d10v-tdep.c, config/d10v/tm-d10v.h: Update.
5685
5686 * gdbarch.h, gdbarch.c: Add multi-arch support for
5687 REGISTER_CONVERTIBLE, REGISTER_CONVERT_TO_VIRTUAL,
5688 REGISTER_CONVERT_TO_RAW.
5689 * config/d10v/tm-d10v.h, d10v-tdep.c (d10v_gdbarch_init): Update.
5690
cce74817
JM
5691 * defs.h (REGISTER_NAME): Move compatibility definition from here.
5692 * gdbarch.h: To here.
5693
5694 * frame.h, blockframe.c (generic_fix_call_dummy): New
5695 stub function.
0f71a2f6
JM
5696 * gdbarch.h, gdbarch.c: Add multi-arch support for FIX_CALL_DUMMY.
5697 * config/d10v/tm-d10v.h, d10v-tdep.c (d10v_gdbarch_init): Update.
5698
5699Tue Jun 1 20:06:38 1999 Andrew Cagney <cagney@b1.cygnus.com>
5700
5701 * d10v-tdep.c (d10v_gdbarch_init): Set get_saved_register.
5702 * config/d10v/tm-d10v.h: Update.
5703
5704Tue Jun 1 19:50:05 1999 Andrew Cagney <cagney@b1.cygnus.com>
5705
5706 * gdbarch.h, gdbarch.c: Add multi-arch support for TARGET_READ_PC,
5707 TARGET_WRITE_PC, TARGET_READ_FP, TARGET_WRITE_FP, TARGET_READ_SP
5708 and TARGET_WRITE_SP.
5709 * config/d10v/tm-d10v.h, d10v-tdep.c (d10v_gdbarch_init): Update.
5710
5711Tue Jun 1 19:19:02 1999 Andrew Cagney <cagney@b1.cygnus.com>
5712
5713 * gdbarch.c (default_gdbarch): Set field GET_SAVED_REGISTER to
5714 generic_get_saved_register.
5715 * gdbarch.c: Change update dispatch functions so that they check
5716 for a NULL function pointer.
5717
5718Tue Jun 1 19:19:02 1999 Andrew Cagney <cagney@b1.cygnus.com>
cce74817 5719
0f71a2f6
JM
5720 * gdbarch.h, gdbarch.c: Add multi-arch support for TARGET_INT_BIT,
5721 TARGET_CHAR_BIT, TARGET_SHORT_BIT, TARGET_FLOAT_BIT,
5722 TARGET_DOUBLE_BIT and TARGET_LONG_DOUBLE_BIT.
5723 * config/d10v/tm-d10v.h, d10v-tdep.c (d10v_gdbarch_init): Update.
5724
ac9a91a7
JM
5725Tue Jun 1 18:47:54 1999 Andrew Cagney <cagney@b1.cygnus.com>
5726
5727 * parse.c (build_parse): New function. Initialize
5728 msym_text_symbol_type, msym_data_symbol_type and
5729 msym_unknown_symbol_type.
5730 (_initialize_parse): Call build_parse.
0f71a2f6
JM
5731 (_initialize_parse): Register variables msym_text_symbol_type,
5732 msym_data_symbol_type as msym_unknown_symbol_type as
5733 per-architecture.
5734
5735Tue Jun 1 11:30:09 1999 Andrew Cagney <cagney@b1.cygnus.com>
5736
5737 * d10v-tdep.c (_initialize_d10v_tdep): Register d10v as an
5738 architecture.
5739 (d10v_gdbarch_init): New function.
5740 * confg/d10v/tm-d10v.h (GDB_MULTI_ARCH): Define.
ac9a91a7
JM
5741
5742Tue Jun 1 10:45:24 1999 Andrew Cagney <cagney@b1.cygnus.com>
5743
5744 * config/d10v/tm-d10v.h (REGISTER_CONVERTIBLE,
5745 REGISTER_CONVERT_TO_RAW, REGISTER_CONVERT_TO_VIRTUAL): Convert
5746 macros into functions.
5747 * config/d10v/tm-d10v.h, d10v-tdep.c (d10v_register_convertable,
5748 d10v_register_convert_to_virtual, d10v_register_convert_to_raw):
5749 The new functions.
5750
57511999-05-31 Fernando Nasser <fnasser@totem.to.cygnus.com>
5752
5753 * stack.c (print_args_stub): Add missing stream parameter.
5754
5755Mon May 31 15:50:08 1999 Andrew Cagney <cagney@b1.cygnus.com>
5756
5757 Fri May 28 16:51:00 1999 Martin Dorey <martin.dorey@madge.com>:
5758 * valops.c, value.h (default_push_arguments): Fix order of
5759 parameters to match PUSH_ARGUMENTS arguments.
5760
5761Thu May 27 11:42:55 1999 Andrew Cagney <cagney@b1.cygnus.com>
5762
5763 * gdbarch.h (EXTRACT_STRUCT_VALUE_ADDRESS): Return 0.
5764
5765 * valops.c (value_assign): Delete redundant test of
5766 REGISTER_CONVERTIBLE.
5767
5768Thu May 27 11:33:57 1999 Andrew Cagney <cagney@b1.cygnus.com>
5769
5770 * config/w65/tm-w65.h, config/tic80/tm-tic80.h, config/sh/tm-sh.h,
5771 config/i386/tm-i386m3.h, config/i386/tm-go32.h,
5772 config/i386/tm-cygwin.h, config/h8500/tm-h8500.h,
5773 config/d30v/tm-d30v.h, config/d10v/tm-d10v.h: Delete definition of
5774 macro NAMES_HAVE_UNDERSCORE.
5775
5776Thu May 27 09:31:06 1999 Andrew Cagney <cagney@b1.cygnus.com>
5777
5778 * gdbarch.h (EXTRACT_STRUCT_VALUE_ADDRESS,
5779 EXTRACT_STRUCT_VALUE_ADDRESS_P): Provide default definitions.
5780 * values.c (value_being_returned): Use
5781 EXTRACT_STRUCT_VALUE_ADDRESS when EXTRACT_STRUCT_VALUE_ADDRESS_P.
5782
5783Wed May 26 13:51:25 1999 Andrew Cagney <cagney@b1.cygnus.com>
5784
5785 * utils.c (tui_file_new, tui_file_delete, tui_fileopen): New
5786 functions.
5787 (tui_file_isatty): Rename gdb_file_isatty.
5788 (gdb_file_init_astring): Use tui_file_new to create stream.
5789 (gdb_file_get_strbuf, gdb_file_adjust_strbuf): Call gdb_file_data
5790 to access the tui_stream.
5791 (tui_file_flush): Rename gdb_flush. Call gdb_file_data to access
5792 the tui_stream. Pass FILE and not STREAM down.
5793
5794 * utils.c (struct stdio_file, stdio_file_flush, stdio_file_fputs,
5795 stdio_file_isatty, stdio_file_delete, stdio_file_new,
5796 stdio_fileopen): Define type and functions. Implement a simple
5797 STDIO based gdb_file.
5798 (struct gdb_file, gdb_file_new, gdb_file_delete, null_file_isatty,
5799 null_file_flush, null_file_fputs, null_file_delete, gdb_file_data,
5800 set_gdb_file_flush, set_gdb_file_isatty, set_gdb_file_fputs,
5801 set_gdb_file_data, fputs_unfiltered, gdb_flush, gdb_file_isatty):
5802 Define type and functions. Implement virtual functions for
5803 gdb_file.
5804
5805 * defs.h (struct gdb_file): Declare.
5806 (GDB_FILE): Change type to struct gdb_file. Deprecate.
5807 (gdb_file_flush_ftype, gdb_file_fputs_ftype,
5808 gdb_file_isatty_ftype, gdb_file_delete_ftype): Add function type
5809 declarations.
5810
5811 * defs.h (set_gdb_file_flush, set_gdb_file_fputs,
5812 set_gdb_file_isatty, set_gdb_file_data, gdb_file_new,
5813 gdb_file_delete, gdb_file_data, stdio_fileopen, tui_fileopen): Add
5814 function declarations.
5815 (gdb_fopen): Re-implement. Call stdio_file_new.
5816 (gdb_fclose): Re-implement. Call gdb_file_delete.
5817
5818 * main.c (tui_file_fputs): Rename fputs_unfiltered. Use
5819 gdb_file_data to gain access to the tui_stream data. Use FILE
5820 instead of STREAM where applicable.
5821 (main): Create gdb_stdout and gdb_stderr using tui_fileopen.
5822
5823 * defs.h (struct tui_stream): Add field ts_magic.
5824 * utils.c (tui_file_magic): Local variable.
5825 (tui_file_new): Set field ts_magic.
5826 (tui_file_delete, tui_file_isatty, gdb_file_init_astring,
5827 gdb_file_get_strbuf, gdb_file_adjust_strbuf, tui_file_flush):
5828 Verify ts_magic.
5829
58301999-05-25 Jim Blandy <jimb@zwingli.cygnus.com>
5831
5832 * breakpoint.c (insert_breakpoints, remove_breakpoint,
5833 breakpoint_1): Add a 'default' case, which prints a warning
5834 message, to remove EGCS warnings.
5835
392a587b
JM
58361999-05-25 Fernando Nasser <fnasser@totem.to.cygnus.com>
5837
5838 * utils.c (gdb_file_adjust_strbuf): Take into account the
5839 possibility that the buffer has not been allocated yet.
5840
5841Tue May 25 16:05:11 1999 Andrew Cagney <cagney@b1.cygnus.com>
5842
5843 * gdbarch.h (REGISTER_CONVERTIBLE, REGISTER_CONVERT_TO_VIRTUAL,
5844 REGISTER_CONVERT_TO_RAW): Provide default definition.
5845
5846 * valops.c (value_assign), infcmd.c (do_registers_info), findvar.c
5847 (value_from_register, value_of_register): Remove #ifdef
5848 REGISTER_CONVERTIBLE. Assume REGISTER_CONVERTIBLE etc defined.
5849
96baa820
JM
58501999-05-25 Keith Seitz <keiths@cygnus.com>
5851
5852 * config/mcore/tm-mcore.h (FRAME_NUM_ARGS): Re-write definition of
5853 FRAME_NUM_ARGS so that it returns NUM_ARGS as a result instead of
5854 setting a variable as a side effect.
5855
392a587b
JM
5856Tue May 25 16:18:25 1999 Andrew Cagney <cagney@amy.cygnus.com>
5857
5858 * remote-d10v.c (d10v_eva_prepare_to_trace,
5859 d10v_eva_get_trace_data), remote-sim.c (_initialize_remote_sim):
5860 Add declaraton. Make static.
5861
5862 * remote-d10v.c (_initialize_remote_d10v), d10v-tdep.c
5863 (_initialize_d10v_tdep): Add declaration.
5864 * config/d10v/tm-d10v.h (d10v_frame_chain): Add declaration.
5865
5866Tue May 25 15:20:58 1999 Andrew Cagney <cagney@amy.cygnus.com>
5867
5868 * main.c (init_proc, proc_remove_foreign): Delete function.
5869 * inftarg.c (child_mourn_inferior): Update. Delete call to
5870 proc_remove_foreign().
5871 * top.c (gdb_init): Update. Delete call to init_proc().
5872
5873 * utils.c (pollquit, fmthex, hexlate): Delete function.
5874
5875Tue May 25 13:01:43 1999 Andrew Cagney <cagney@amy.cygnus.com>
5876
5877 * main.c (gdb_init): Move declaration from here.
5878 * top.h: To here.
5879
5880 * defs.h (init_page_info): Add declaration.
5881
5882 * top.c (initialize_utils): Move declaration from here.
5883 * defs.h: To here.
5884
5885 * infcmd.c (target_map_name_to_register): Move declaration from
5886 here.
5887 * parser-defs.h: To here.
5888
5889 * c-typeprint.c (cp_type_print_method_args), target.c
5890 (nosupport_runtime, normal_target_post_startup_inferior): Add
5891 declaration. Make static.
5892
5893Tue May 25 13:53:23 1999 Andrew Cagney <cagney@amy.cygnus.com>
5894
5895 * main.c: Include "event-loop.h".
5896 * Makefile.in (main.o): Add dependency.
5897
5898 * top.h (setup_event_loop, async_init_signals), top.c
5899 (set_async_editing_command, set_async_annotation_level,
5900 set_async_prompt), event-loop.c (display_gdb_prompt): Move
5901 declarations from here.
5902 * event-loop.h: To here.
5903
5904 * event-loop.h (delete_async_signal_handler): Add function
5905 declaration.
5906
5907 * event-top.c (change_annotation_level, command_handler): Add
5908 declaration. Make static.
5909
5910Tue May 25 12:44:58 1999 Andrew Cagney <cagney@amy.cygnus.com>
5911
5912 * tracepoint.c (free_actions_list, add_register): Add declaration.
5913 Make static.
5914 (free_actions_list_cleanup_wrapper): New function. Wraps
5915 free_actions_list for make_cleanup.
5916 (trace_start_command): Pass free_actions_list_cleanup_wrapper
5917 instead of free_actions_list to make_cleanup.
5918 (_initialize_tracepoint): Add extern declaration.
5919
5920Tue May 25 12:23:39 1999 Andrew Cagney <cagney@amy.cygnus.com>
5921
5922 * jv-typeprint.c (java_type_print_base, jv-valprint.c
5923 (java_print_value_fields): Add static declaration.
5924
5925 * jv-lang.c (java_lookup_type, get_java_utf8_name,
5926 java_lookup_type): Add static declaration.
5927 (get_java_class_symtab, java_class_is_primitive,
5928 java_value_string): Add declaration. Make static.
5929 (java_rerun_cleanup): Add extern declaration for this stub
5930 function.
5931
0f71a2f6
JM
5932Tue May 25 12:06:29 1999 Andrew Cagney <cagney@b1.cygnus.com>
5933
5934 * gdbarch.h: When multi-arch, check that REGISTER_NAMES was not
5935 defined.
5936
392a587b
JM
5937Mon May 24 16:16:29 1999 Andrew Cagney <cagney@amy.cygnus.com>
5938
5939 * inflow.c (_initialize_inflow), annotate.c
5940 (_initialize_annotate), os9kread.c (_initialize_os9kread),
5941 serial.c (_initialize_serial), nlmread.c (_initialize_nlmread),
5942 f-valprint.c (_initialize_f_valprint), cp-valprint.c
5943 (_initialize_cp_valprint), typeprint.c (_initialize_typeprint),
5944 complaints.c (_initialize_complaints), scm-lang.c
5945 (_initialize_scheme_language), m2-lang.c
5946 (_initialize_m2_language), dbxread.c (_initialize_dbxread),
5947 f-lang.c (_initialize_f_language), ch-lang.c
5948 (_initialize_chill_language), c-lang.c (_initialize_c_language),
5949 corefile.c (_initialize_core), stabsread.c
5950 (_initialize_stabsread), mipsread.c (_initialize_mipsread),
5951 elfread.c (_initialize_elfread), coffread.c
5952 (_initialize_coffread), maint.c (_initialize_maint_cmds),
5953 demangle.c (_initialize_demangler), maint.c
5954 (_initialize_maint_cmds), language.c (_initialize_language): Add
5955 external declaration.
5956
5957Mon May 24 10:04:56 1999 Andrew Cagney <cagney@b1.cygnus.com>
5958
5959 * config/z8k/tm-z8k.h, config/w65/tm-w65.h, config/v850/tm-v850.h,
5960 config/tic80/tm-tic80.h, config/tahoe/tm-tahoe.h,
5961 config/rs6000/tm-rs6000.h, config/sparc/tm-sparc.h,
5962 config/sh/tm-sh.h, config/pyr/tm-pyr.h, config/pa/tm-hppa.h,
5963 config/ns32k/tm-merlin.h, config/mn10300/tm-mn10300.h,
5964 config/mn10200/tm-mn10200.h, config/mips/tm-mips.h,
5965 config/m88k/tm-m88k.h, config/m68k/tm-news.h,
5966 config/m68k/tm-delta68.h, config/m68k/tm-isi.h,
5967 config/m68k/tm-m68k.h, config/m32r/tm-m32r.h,
5968 config/i960/tm-i960.h, config/i386/tm-i386v.h,
5969 config/i386/tm-i386.h, config/h8500/tm-h8500.h,
5970 config/h8300/tm-h8300.h, config/fr30/tm-fr30.h,
5971 config/d30v/tm-d30v.h, config/d10v/tm-d10v.h,
5972 config/convex/tm-convex.h, config/arc/tm-arc.h,
5973 config/arm/tm-arm.h, config/alpha/tm-alpha.h,
5974 config/a29k/tm-a29k.h: Re-write definition of FRAME_NUM_ARGS so
5975 that it returns NUM_ARGS as a result instead of setting a variable
5976 as a side effect.
5977
5978 * ns32k-tdep.c (merlin_frame_num_args), tahoe-tdep.c
5979 (tahoe_frame_num_args), vax-tdep.c (vax_frame_num_args),
5980 m68k-tdep.c (news_frame_num_args, delta68_frame_num_args,
5981 isi_frame_num_args), convex-tdep.c (convex_frame_num_args): New
5982 functions.
5983
5984 * stack.c (print_args_stub): Update use of FRAME_NUM_ARGS.
5985
5986Mon May 24 11:57:04 1999 Andrew Cagney <cagney@b1.cygnus.com>
5987
5988 * remote.c (remote_xfer_memory): Re-write with assumption that
5989 REMOTE_TRANSLATE_XFER_ADDRESS is defined. Pass targ_addr and
5990 targ_len by reference.
5991 (REMOTE_TRANSLATE_XFER_ADDRESS): Provide default definition.
5992
5993 * remote-d10v.c (remote_d10v_translate_xfer_address): Update.
5994 * config/d10v/tm-d10v.h (REMOTE_TRANSLATE_XFER_ADDRESS): Update.
5995
5996Mon May 24 12:10:58 1999 Andrew Cagney <cagney@amy.cygnus.com>
5997
5998 * value.h (default_push_arguments): Add function declaration.
5999
6000 * alpha-tdep.c (alpha_about_to_return), gdbarch.c (verify_gdbarch,
6001 arch_ok, set_arch), command.c (find_cmd), infrun.c
6002 (follow_inferior_fork, follow_fork, follow_vfork,
6003 set_schedlock_func, is_internal_shlib_eventpoint,
6004 stopped_for_internal_shlib_event, stopped_for_shlib_catchpoint,
6005 xdb_handle_command), infcmd.c (run_no_args_command, go_command),
6006 symfile.c (add_filename_language, set_ext_lang_command,
6007 info_ext_lang_command, init_filename_language_table), symtab.c
6008 (overload_list_add_symbol), defs.h (default_get_saved_register),
6009 ax-general.c (grow_expr, append_const, read_const, generic_ext):
6010 Ditto.
6011
6012 * infrun.c (currently_stepping): Ditto. Make static.
6013
6014 * valops.c (hand_function_call): Explictly type static variable
6015 ``checked''.
6016
6017Mon May 24 08:36:18 1999 Andrew Cagney <cagney@b1.cygnus.com>
6018
6019 * d10v-tdep.c (d10v_breakpoint_from_pc, d10v_register_name,
6020 d10v_register_byte, d10v_register_raw_size,
6021 d10v_register_virtual_size, d10v_register_virtual_type,
6022 d10v_make_daddr, d10v_make_iaddr, d10v_daddr_p, d10v_iaddr_p,
6023 d10v_convert_iaddr_to_raw, d10v_convert_daddr_to_raw,
6024 d10v_store_struct_return, d10v_store_return_value,
6025 d10v_extract_struct_value_address, d10v_frame_saved_pc,
6026 d10v_frame_args_address, d10v_frame_locals_address,
6027 d10v_saved_pc_after_call): New functions.
6028
6029 * config/d10v/tm-d10v.h (REGISTER_BYTE, REGISTER_RAW_SIZE,
6030 REGISTER_VIRTUAL_SIZE, REGISTER_VIRTUAL_TYPE, STORE_STRUCT_RETURN,
6031 D10V_MAKE_DADDR, D10V_MAKE_IADDR, D10V_DADDR_P, D10V_IADDR_P,
6032 D10V_CONVERT_DADDR_TO_RAW, D10V_CONVERT_IADDR_TO_RAW,
6033 STORE_STRUCT_RETURN, STORE_RETURN_VALUE,
6034 EXTRACT_STRUCT_VALUE_ADDRESS, SAVED_PC_AFTER_CALL, FRAME_SAVED_PC,
6035 FRAME_ARGS_ADDRESS): Re-define using new functions.
6036
6037 * config/d10v/tm-d10v.h (BREAKPOINT_FROM_PC): Replace BREAKPOINT.
6038 (REGISTER_NAME): Replace REGISTER_NAMES.
6039
6040 * utils.c (core_addr_lessthan, core_addr_greaterthan): New
6041 functions.
6042 * defs.h (core_addr_lessthan, core_addr_greaterthan): Declare.
6043
6044Sat May 22 16:44:06 1999 Andrew Cagney <cagney@b1.cygnus.com>
6045
6046 * utils.c (n_spaces): Handle case where first call has N equal to
6047 zero.
6048 (print_spaces): Use n_spaces.
6049
6050Fri May 21 11:23:54 1999 Andrew Cagney <cagney@b1.cygnus.com>
6051
6052 * valops.c (value_push): Remove conditional definition based on
6053 absense of macro PUSH_ARGUMENTS. Pass SP and STRUCT_ADDR by
6054 reference.
6055 (default_push_arguments): New function.
6056
6057 * config/v850/tm-v850.h, config/tic80/tm-tic80.h,
6058 config/sparc/tm-sparc.h, config/sparc/tm-sp64.h,
6059 config/sh/tm-sh.h, config/rs6000/tm-rs6000.h, config/pa/tm-hppa.h,
6060 config/mn10300/tm-mn10300.h, config/mn10200/tm-mn10200.h,
6061 config/mips/tm-mips.h, config/m32r/tm-m32r.h,
6062 config/h8300/tm-h8300.h, config/fr30/tm-fr30.h,
6063 config/d30v/tm-d30v.h, config/d10v/tm-d10v.h, config/arm/tm-arm.h,
6064 config/alpha/tm-alpha.h: Update definition of PUSH_ARGUMENTS.
6065 Return updated SP.
6066
6067 * rs6000-tdep.c (rs6000_push_arguments): Rename push_arguments.
6068
6069Thu May 20 12:18:28 1999 Andrew Cagney <cagney@b1.cygnus.com>
6070
6071 * blockframe.c (get_prev_frame): Remove #ifdef around test for
6072 FRAMELESS_FUNCTION_INVOCATION.
6073 (get_prev_frame): Change FRAMELESS_FUNCTION_INVOCATION call to a
6074 function invocation.
6075 * i386-tdep.c (i386_frame_num_args), stack.c (frame_info): Ditto.
6076 * config/z8k/tm-z8k.h, config/w65/tm-w65.h, config/vax/tm-vax.h,
6077 config/sparc/tm-sparc.h, config/sh/tm-sh.h,
6078 config/rs6000/tm-rs6000.h, config/pa/tm-hppa.h,
6079 config/mips/tm-mips.h, config/m88k/tm-m88k.h,
6080 config/m68k/tm-m68k.h, config/i960/tm-i960.h,
6081 config/i386/tm-sun386.h, config/i386/tm-i386v.h,
6082 config/i386/tm-i386.h, config/h8500/tm-h8500.h,
6083 config/h8300/tm-h8300.h, config/fr30/tm-fr30.h,
6084 config/d30v/tm-d30v.h, config/d10v/tm-d10v.h,
6085 config/convex/tm-convex.h, config/arm/tm-arm.h,
6086 config/arc/tm-arc.h, config/alpha/tm-alpha.h,
6087 config/a29k/tm-a29k.h: Update FRAMELESS_FUNCTION_INVOCATION.
6088 * fr30-tdep.c (fr30_frameless_function_invocation), convex-tdep.c
6089 (convex_frameless_function_invocation), arm-tdep.c
6090 (arm_frameless_function_invocation): New functions.
6091
60921999-05-20 Elena Zannoni <ezannoni@kwikemart.cygnus.com>
6093
6094 * top.c: Change dates in comments to ISO format.
6095
6096 * event-top.c: Ditto.
6097 * event-loop.c: Ditto.
6098 * main.c: Ditto.
6099
9e086581
JM
61001999-05-19 Keith Seitz <keiths@cygnus.com>
6101
96baa820
JM
6102 * config/mcore/tm-mcore.h (BELIEVE_PCC_PROMOTION): Define. We
6103 really do want to believe what gcc tells us about types...
6104
61051999-05-19 Keith Seitz <keiths@cygnus.com>
6106
6107 * config/mcore/tm-mcore.h (FRAME_ARGS_ADDRESS): Define to a function.
6108 (FRAME_LOCALS_ADDRESS): Ditto.
6109 * mcore-tdep.c (mcore_frame_args_addcress): New function.
6110 (mcore_frame_locals_address): New function.
6111
9e086581
JM
6112 * monitor.c (monitor_open): Only assume we have eight
6113 breakpoints if the monitor implementation does not tell
6114 us how many there really are. Alloc memory for these
6115 dynamically.
6116 (monitor_close): Free memory associated with breakpoint
6117 storage.
6118 (monitor_insert_breakpoint): Don't rely on a hardcoded
6119 number of breakpoints.
6120 (monitor_remove_breakpoint): Ditto.
6121 (NUM_MONITOR_BREAKPOINTS): Removed and replaced with monitor_ops
6122 specification.
6123 * monitor.h (struct monitor_ops): Add new member so that the
6124 individual monitor implementations can tell us how many
6125 breakpoints the monitor supports.
6126
96baa820
JM
6127 * mcore-rom.c (init_picobug_cmds): Add number of breakpoints supported
6128 by picobug monitor.
6129
9e086581
JM
61301999-05-18 Elena Zannoni <ezannoni@kwikemart.cygnus.com>
6131
6132 From Philippe De Muyter <phdm@macqel.be>:
6133 * event-loop.h: Include sys/wait.h only if HAVE_SYS_WAIT_H.
6134
96baa820
JM
61351999-05-17 Keith Seitz <keiths@cygnus.com>
6136
6137 * configure.tgt: Add MCore target.
6138 * Makefile.in: Add mcore-tdep.c and mcore-rom.c
6139 * config/mcore/tm-mcore.h: New file.
6140 * config/mcore/mcore.mt: New file.
6141 * mcore-rom.c: New file.
6142 * mcore-tdep.c: New file.
6143
9e086581
JM
61441999-05-17 Fernando Nasser <fnasser@totem.to.cygnus.com>
6145
392a587b
JM
6146 * top.c (print_command_line): Added the missing stream argument.
6147 * gdbcmd.h: Added argument to prototype.
6148 * command.c: Fixed call to include extra argument.
6149 * breakpoint.c: Same.
9e086581
JM
6150
61511999-05-14 Jim Blandy <jimb@zwingli.cygnus.com>
6152
6153 Targets are #defining PREPARE_TO_PROCEED with inconsistent numbers
6154 of arguments. Since the Mach 3 target needs an argument, we'll
6155 make things consistent by adding an argument everywhere.
6156 * infrun.c (proceed): Pass an argument to PREPARE_TO_PROCEED.
6157 * config/pa/nm-hppah.h (PREPARE_TO_PROCEED): Add ignored argument
6158 to definition.
6159
61601999-05-11 Stan Shebs <shebs@andros.cygnus.com>
6161
6162 Fri Apr 23 13:27:34 PDT 1999 Toshiyasu Morita (tm@netcom.com)
6163 * sh-stub.c: Mostly localize processor dependencies.
6164
cd0fc7c3
SS
61651999-05-10 Martin Hunt <hunt@cygnus.com>
6166
6167 * debugify.c, debugify.h: Removed because they are no
6168 longer used.
6169
61701999-05-08 Jim Blandy <jimb@zwingli.cygnus.com>
6171
6172 * infrun.c (_initialize_infrun): Handle TARGET_SIGNAL_LWP,
6173 TARGET_SIGNAL_WAITING, and TARGET_SIGNAL_CANCEL like SIGALRM or
6174 SIGIO --- pass them through to the inferior silently.
6175 * target.h (enum target_signals): Add TARGET_SIGNAL_CANCEL, for
6176 Solaris's SIGCANCEL.
6177 * target.c (target_signal_from_host, target_signal_to_host): Add
6178 mapping between SIGCANCEL and TARGET_SIGNAL_CANCEL.
6179 (signals): Add entry for SIGCANCEL.
6180
61811999-05-07 Stan Shebs <shebs@andros.cygnus.com>
6182
6183 After years of talking about it, finally break up the
6184 wait_for_inferior loop.
6185 * infrun.c (struct execution_control_state): New struct,
6186 holds what used to be local vars governing wfi behavior.
6187 (init_execution_control_state): New function, was code in
6188 wfi that set up execution control state.
6189 (handle_inferior_event): New function, was body of main
6190 wfi loop. Rewrite all local var references to go through
6191 the ecs structure passed into this function.
6192 (wait_for_inferior): Rewrite to set up and use execution control
6193 state, and to call the new functions.
6194 (currently_stepping): New function, was the macro
6195 CURRENTLY_STEPPING.
6196 (enum infwait_states): Rename from wfi_states.
6197 (infwait_normal_state, etc): Similarly.
6198
6199Thu May 6 15:25:32 1999 Philippe De Muyter <phdm@macqel.be>
6200
6201 * coffread.c (coff_symtab_read): Call `record_line' with the line
6202 number of the ".bf" symbol only for one-line functions.
6203
62041999-05-06 Michael Snyder <msnyder@cleaver.cygnus.com>
6205
6206 * Makefile.in: thread.o depends on target.h.
6207
62081999-05-06 Elena Zannoni <ezannoni@kwikemart.cygnus.com>
6209
6210 * event-top.c (change_line_handler): Use POLLIN instead of
6211 POLLRDNORM, for compatibility with Linux.
6212 (setup_event_loop): Ditto.
6213
62141999-05-06 Jim Blandy <jimb@zwingli.cygnus.com>
6215
6216 * mips-tdep.c (heuristic_proc_start): Rewrite cryptic error
6217 message about hitting the "heuristic fence post" with something
6218 that actually gives the user a fighting chance of figuring out
6219 why GDB is unhappy.
6220
62211999-05-06 Elena Zannoni <ezannoni@kwikemart.cygnus.com>
6222
6223 * top.c: Include event-loop.h.
6224 (init_main): Add async version of 'set prompt' command.
6225 If in async mode define the editing and annotate set
6226 commands in a different way.
6227 Initialize new variable asyn_command_editing_p to 1.
6228 Initialize the gdb prompt for async mode.
6229 (quit_cover): Make not static, for use by the event loop.
6230 (gdb_init): Call async_init_signals for the asynchronous case.
6231 (source_line_number, source_file_name, source_error,
6232 source_pre_error, history_expansion_p): Make non-static, so
6233 event-top.c can use them.
6234 (command_loop_marker): Make non-static, for use in event-top.c.
6235 Include event-loop.h.
6236
6237 * top.h: Add prototype for async_init_signals.
6238 (SET_TOP_LEVEL): Move here from main.c.
6239 Add setup_event_loop to exported functions.
6240
6241 * defs.h: Add async_hook to exported variables.
6242
6243 * main.c (SET_TOP_LEVEL): Move to top.h, so that it is visible in
6244 event-loop.c. Add new global variable async to determine whether
6245 we are running in async mode or not.
6246 (main): Add support for --async switch. Use async_hook to call
6247 setup_event_loop, when running in async mode.
6248
6249 * event-top.c: New file. Gdb input line handler and command line
6250 handler for the event loop. Initialization of signal handlers.
6251 All the handled signals have handlers called handle_<signalname>.
6252 Set up all the appropriate tokens for asynchronous signal
6253 handling.
6254
6255 * event-loop.h: New file. Data structures and definitions for the
6256 event loop.
6257
6258 * event-loop.c: New file. Functions for the event loop
6259 implementation.
6260
6261 * config.in: Regenerate with autoheader.
6262
6263 * configure.in (AC_CHECK_FUNCS): Add poll to list of functions
6264 to be checked for.
6265
6266 * configure: Regenerate.
6267
6268 * Makefile.in (SFILES): Add new source files.
6269 (eventloop_h): Define.
6270 (COMMON_OBS): Add new object files.
6271 (event-loop.o): Add rule for target object.
6272 (event-top.o): Ditto.
6273
62741999-05-05 Stan Shebs <shebs@andros.cygnus.com>
6275
6276 * infrun.c (wait_for_inferior): Transform breaks and continues
6277 into gotos, move the target_wait to the very top of the loop.
6278
62791999-05-05 Jonathan Larmour <jlarmour@cygnus.co.uk>
6280
6281 * configure.in: Ensure that GDB links with libuser32.a under
6282 cygwin because libreadline requires it.
6283 * Makefile.in (WIN32LIBS): Substitute in result from configure
6284 * configure: regenerate
6285
62861999-05-04 Jim Blandy <jimb@zwingli.cygnus.com>
6287
6288 Fix from John Rigby. Richard Henderson says it seems okay.
6289 * alpha-tdep.c (PROC_DUMMY_FRAME): As long as we're abusing fields
6290 of (proc)->pdr, we ought to at least abuse one large enough to
6291 hold the value we're trying to store in it. iopt is only 32 bits
6292 wide; cbLineOffset is a bfd_vma.
6293
b83266a0
SS
62941999-05-04 DJ Delorie <dj@cygnus.com>
6295
6296 DJGPP changes from Robert Hoehne <robert.hoehne@gmx.net>
6297
6298 * ser-go32.c: correct includes
6299 * source.c (openp): use ROOTED_P instead of SLASH_P
6300 * go32-nat.c: enhance exception and NPX handling
6301 (go32_kill_inferior): fix small bug killing inferior
6302 * configure.in: don't look for termcap with djgpp
6303 * configure: rebuild
6304
63051999-05-04 Elena Zannoni <ezannoni@kwikemart.cygnus.com>
6306
6307 * main.c (main): Comment out unused and undocumented command line
6308 option '-'.
6309
63101999-04-30 Jim Blandy <jimb@zwingli.cygnus.com>
6311
6312 Cleanup from Philippe De Muyter:
6313 * configure.in (BFD_NEED_DECLARATION): Check also for strstr.
6314 * acconfig.h (NEED_DECLARATION_MALLOC, NEED_DECLARATION_REALLOC,
6315 NEED_DECLARATION_FREE, NEED_DECLARATION_STRERROR): Define slots
6316 removed; they are now generated automatically.
6317 * gdb_string.h (strstr): Provide function prototype if
6318 NEED_DECLARATION_STRSTR.
6319 * configure, config.in: Regenerated.
6320
6321Fri Apr 30 11:16:09 1999 Michael Snyder <msnyder@cleaver.cygnus.com>
6322
6323 * target.h (to_find_new_threads): new target ops vector.
6324 (target_find_new_threads): define.
6325 * target.c (update_current_target): inherit new target ops vector.
6326 * remote.c: Setup to_find_new_threads vector.
6327 * sol-thread.c: ditto.
6328 * thread.c (target_find_new_threads): rename: local_find_new_threads.
6329 (info_threads_command): call target_find_new_threads by new method,
6330 as a target ops vector, rather than previous macro definition method.
6331 * infcmd.c (go_command): define only if in xdb mode.
6332 * procfs.c: fix typo in comment.
6333
6334Fri Apr 30 01:02:05 1999 Jeffrey A Law (law@cygnus.com)
6335
6336 * hppah-nat.c: Fix various coding convention violations introduced
6337 by HP.
6338 (child_acknowledge_created_inferior): Do nothing if PT_SET_EVENT_MASK
6339 is not defined.
6340
63411999-04-28 Stan Shebs <shebs@andros.cygnus.com>
6342
6343 * TODO: Add some items inspired by review of the manual.
6344
6345Tue Apr 27 17:38:19 1999 Andrew Cagney <cagney@b1.cygnus.com>
6346
6347 * config/z8k/tm-z8k.h, config/v850/tm-v850.h,
6348 config/tic80/tm-tic80.h, config/sparc/tm-sparc.h,
6349 config/sh/tm-sh.h, config/pyr/tm-pyr.h, config/pa/tm-hppa.h,
6350 config/mn10300/tm-mn10300.h, config/mn10200/tm-mn10200.h,
6351 config/mips/tm-mips.h, config/m88k/tm-m88k.h,
6352 config/m68k/tm-m68k.h, config/m32r/tm-m32r.h,
6353 config/i960/tm-i960.h, config/i386/tm-i386.h,
6354 config/h8500/tm-h8500.h, config/h8300/tm-h8300.h,
6355 config/fr30/tm-fr30.h, config/d30v/tm-d30v.h,
6356 config/d10v/tm-d10v.h, config/alpha/tm-alpha.h,
6357 config/arm/tm-arm.h, config/a29k/tm-a29k.h, config/arc/tm-arc.h:
6358 Change SKIP_PROLOGUE and SKIP_PROLOGUE_FRAMELESS_P macros so that
6359 they return the new address.
6360
6361 * sparc-tdep.c (sparc_skip_prologue), hppa-tdep.c
6362 (hppa_skip_prologue), m88k-tdep.c
6363 (m88k_skip_prologue), i960-tdep.c
6364 (i960_skip_prologue), arc-tdep.c
6365 (arc_skip_prologue), a29k-tdep.c (a29k_skip_prologue): Rename
6366 skip_prologue function.
6367
6368 * config/m68k/tm-isi.h: Convert macro SKIP_PROLOGUE into a new
6369 function.
6370 * m68k-tdep.c (isi_skip_prologue): That new function.
6371 * vax-tdep.c (vax_skip_prologue), config/vax/tm-vax.h: Ditto.
6372 * tahoe-tdep.c (tahoe_skip_prologue), config/tahoe/tm-tahoe.h: Ditto.
6373 * rs6000-tdep.c (rs6000_skip_prologue), config/rs6000/tm-rs6000.h:
6374 Ditto.
6375 * ns32k-tdep.c (umax_skip_prologue), config/ns32k/tm-umax.h: Ditto.
6376 * config/ns32k/tm-merlin.h, ns32k-tdep.c (merlin_skip_prologue):
6377 Ditto.
6378 * config/m68k/tm-altos.h, m68k-tdep.c (altos_skip_prologue): Ditto.
6379 * config/convex/tm-convex.h, convex-tdep.c (convex_skip_prologue):
6380 Ditto.
6381
6382 * symtab.c (in_prologue, find_function_start_sal, decode_line_1),
6383 infrun.c (wait_for_inferior), blockframe.c
6384 (frameless_look_for_prologue): Update.
6385 * config/fr30/tm-fr30.h (FRAMELESS_FUNCTION_INVOCATION): Update.
6386
63871999-04-27 Stan Shebs <shebs@andros.cygnus.com>
6388
6389 * TODO: Remove item about DEBUG_EXPRESSIONS, no longer meaningful.
6390
6391 * infrun.c (enum wfi_state): New enum.
6392 (wait_for_inferior): Merge all but one of the target_wait calls
6393 into a single call, add a wfi_state variable to encode which of
6394 the calls is being made.
6395
63961999-04-26 Jim Blandy <jimb@zwingli.cygnus.com>
6397
6398 Fix from Dave Holcomb.
6399 * hpux-thread.c (init_hpux_thread_ops): Use the right function
6400 name when initializing hpux_thread_ops.to_thread_alive.
6401
6402 * coffread.c (coff_symfile_read): If we have a `.stab' section,
6403 but no `.stabstr' section, then print an error message; don't
6404 crash.
6405
64061999-04-26 Jim Blandy <jimb@zwingli.cygnus.com>
6407
6408 1999-04-25 Mark Kettenis <kettenis@gnu.org>
6409
6410 * gnu-nat.c (gnu_attach): Call target_terminal_init before calling
6411 inf_set_traced, since that function calls code that might try to
6412 restore the terminal settings.
6413
6414Mon Apr 26 08:55:46 1999 Andrew Cagney <cagney@b1.cygnus.com>
6415
6416 * gdbarch.h, gdbarch.c: More format cleanups.
6417
0f71a2f6
JM
6418Sun Apr 25 18:54:51 1999 Andrew Cagney <cagney@b1.cygnus.com>
6419
6420 * gdbarch.h (CALL_DUMMY_STACK_ADJUST_P): Replace
6421 SIZEOF_CALL_DUMMY_STACK_ADJUST_P.
6422 (CALL_DUMMY_STACK_ADJUST): Replace
6423 SIZEOF_CALL_DUMMY_STACK_ADJUST_P.
6424 * gdbarch.c (gdbarch_call_dummy_stack_adjust,
6425 set_gdbarch_call_dummy_stack_adjust): Define.
6426
b83266a0
SS
6427Fri Apr 23 15:00:25 1999 Andrew Cagney <cagney@b1.cygnus.com>
6428
6429 * gdbarch.c (arch_ok): New function. Fix logic test for a valid
6430 architecture.
6431 (set_arch): Use.
6432
7a292a7a
SS
64331999-04-22 Jason Molenda (jsm@bugshack.cygnus.com)
6434
6435 * README: Note that readline is not installed as a part of
6436 make install.
6437
6438Thu Apr 22 21:02:28 1999 Andrew Cagney <cagney@b1.cygnus.com>
6439
0f71a2f6
JM
6440 * gdbarch.h, gdbarch.c (GET_SAVED_REGISTER, get_saved_register):
6441 Add.
6442 (struct gdbarch, verify_gdbarch, gdbarch_alloc, gdbarch_dump,
6443 default_gdbarch): Update.
6444
7a292a7a
SS
6445 * value.h (get_saved_register): Cleanup prototype.
6446 * findvar.c (default_get_saved_register): Rename function
6447 get_saved_register.
6448 (GET_SAVED_REGISTER): Define as default_get_saved_register when
6449 undefined.
6450 (get_saved_register): Always declare. Call GET_SAVED_REGISTER.
6451
6452 * sparc-tdep.c (sparc_get_saved_register): Rename function
6453 get_saved_register.
6454 * config/sparc/tm-sparc.h (GET_SAVED_REGISTER): Update.
6455 * a29k-tdep.c (a29k_get_saved_register): Rename function
6456 get_saved_register.
6457 * config/a29k/tm-a29k.h (GET_SAVED_REGISTER): Update.
6458
6459 * config/d10v/tm-d10v.h, config/powerpc/tm-ppc-eabi.h,
6460 config/h8300/tm-h8300.h, config/m32r/tm-m32r.h,
6461 config/mn10200/tm-mn10200.h, config/mn10300/tm-mn10300.h,
6462 config/sh/tm-sh.h, config/tic80/tm-tic80.h, config/v850/tm-v850.h:
6463 Update macro GET_SAVED_REGISTER so that it calls
6464 generic_get_saved_register.
6465 * v850-tdep.c, tic80-tdep.c, sh-tdep.c, mn10300-tdep.c,
6466 mn10200-tdep.c, m32r-tdep.c, h8300-tdep.c, rs6000-tdep.c: Delete
6467 function get_saved_register.
6468
0f71a2f6
JM
6469Thu Apr 22 13:32:23 1999 Andrew Cagney <cagney@b1.cygnus.com>
6470
6471 * gdbarch.c: Cleanup. Re-order the definition of the ``struct
6472 gdbarch'' initialization functions so that maintenance is more
6473 straightforward.
6474
7a292a7a
SS
6475Thu Apr 22 11:07:21 1999 Andrew Cagney <cagney@b1.cygnus.com>
6476
0f71a2f6
JM
6477 * gdbarch.h, gdbarch.c (use_generic_dummy_frames,
6478 USE_GENERIC_DUMMY_FRAMES): Add.
6479 (struct gdbarch, verify_gdbarch, gdbarch_alloc, gdbarch_dump,
6480 default_gdbarch): Update.
6481
7a292a7a
SS
6482 * config/v850/tm-v850.h, config/tic80/tm-tic80.h,
6483 config/sh/tm-sh.h, config/powerpc/tm-ppc-eabi.h,
6484 config/mn10300/tm-mn10300.h, config/mn10200/tm-mn10200.h,
6485 config/m32r/tm-m32r.h, config/h8300/tm-h8300.h,
6486 config/fr30/tm-fr30.h, config/d10v/tm-d10v.h: Give the
6487 USE_GENERIC_DUMMY_FRAMES macro the value one.
6488 * inferior.h (USE_GENERIC_DUMMY_FRAMES): Default to a value of
6489 zero.
6490
6491 * blockframe.c (generic_find_dummy_frame,
6492 generic_pc_in_call_dummy, generic_read_register_dummy,
6493 generic_push_dummy_frame, generic_pop_current_frame,
6494 generic_pop_dummy_frame, generic_frame_chain_valid,
6495 generic_get_saved_register): Always define.
6496
6497 * breakpoint.c (frame_in_dummy): Convert #ifdef
6498 USE_GENERIC_DUMMY_FRAMES to runtime test.
6499
6500 * rs6000-tdep.c (pop_frame, push_arguments, push_arguments,
6501 push_arguments, frame_saved_pc, rs6000_frame_chain,
6502 rs6000_frame_chain): Convert #ifdef USE_GENERIC_DUMMY_FRAMES to
6503 runtime test.
6504 (get_saved_register): Always define.
6505
0f71a2f6
JM
6506Wed Apr 21 17:15:52 1999 Andrew Cagney <cagney@b1.cygnus.com>
6507
6508 * gdbarch.c (gdbarch_dump): Fix robustness check on
6509 BELIEVE_PCC_PROMOTION_TYPE.
6510
6511Wed Apr 21 15:39:27 1999 Andrew Cagney <cagney@b1.cygnus.com>
6512
6513 * gdbarch.h (TARGET_BYTE_ORDER_SELECTABLE_P): When multi-arch,
6514 force selectable byte order.
6515 (CALL_DUMMY): Check for CALL_DUMMY definition when multi-arch. Are
6516 incompatible.
6517 * gdbarch.c (verify_gdbarch): Check call_dummy_stack_adjust.
6518
7a292a7a
SS
6519Wed Apr 21 14:45:44 1999 Andrew Cagney <cagney@b1.cygnus.com>
6520
0f71a2f6
JM
6521 * gdbarch.c (gdbarch_update): Move dump-arch code from here.
6522 (gdbarch_dump): To here. Make more robust.
6523 * gdbarch.h (gdbarch_dump): Add prototype.
6524
7a292a7a
SS
6525 * gdbarch.c (enum set_arch): Declare.
6526 (set_arch): Add type parameter. Only disable
6527 ``target_architecture_auto'' when set_arch_manual.
6528 (set_architecture, set_architecture_from_arch_mach,
6529 set_architecture_from_file): Update.
0f71a2f6
JM
6530 (set_arch): When ``gdbarch_debug'', gdbarch_dump() the current
6531 architecture.
7a292a7a
SS
6532
6533Wed Apr 21 10:48:53 1999 Andrew Cagney <cagney@b1.cygnus.com>
6534
6535 * frame.h (generic_pc_in_call_dummy): Make signature consistent
6536 with other pc_in_call_dummy functions by adding SP parameter.
6537 * blockframe.c (generic_pc_in_call_dummy): Update. Pass SP and
6538 not FP to generic_find_dummy_frame().
6539 * breakpoint.c (frame_in_dummy): Update.
6540 * config/v850/tm-v850.h, config/tic80/tm-tic80.h,
6541 config/sh/tm-sh.h, config/mn10300/tm-mn10300.h,
6542 config/mn10200/tm-mn10200.h, config/m32r/tm-m32r.h,
6543 config/h8300/tm-h8300.h, config/fr30/tm-fr30.h,
6544 config/d10v/tm-d10v.h: Update PC_IN_CALL_DUMMY definition.
6545
6546Tue Apr 20 12:15:45 1999 Andrew Cagney <cagney@b1.cygnus.com>
6547
6548 * config/d10v/tm-d10v.h (GDB_TARGET_IS_D10V): Move from here.
6549 * gdbarch.h (GDB_TARGET_IS_D10V): To here. Implement using
6550 TARGET_ARCHITECTURE.
6551 (D10V_MAKE_DADDR, D10V_MAKE_IADDR): Provide fatal default
6552 definitions.
6553
6554 * valops.c (value_at): Replace #ifdef GDB_TARGET_IS_D10V code with
6555 runtime test.
6556 (value_fetch_lazy): Ditto.
6557 * values.c (unpack_long): Ditto.
6558 * printcmd.c (print_frame_args): Ditto.
6559
0f71a2f6
JM
6560Sat Apr 17 15:39:33 1999 Andrew Cagney <cagney@b1.cygnus.com>
6561
6562 * gdbarch.h: Cleanup multi-arch comments.
6563
6564Fri Apr 16 15:39:10 1999 Andrew Cagney <cagney@b1.cygnus.com>
6565
6566 * gdbarch.h: Provide definition if GDB_MULTI_ARCH > 1 or
6567 GDB_MULTI_ARCH > 0 and no previous definition.
6568 * gdbarch.c (verify_gdbarch): Only verify a full multi-arch
6569 target.
6570
7a292a7a
SS
65711999-04-15 Stan Shebs <shebs@andros.cygnus.com>
6572
6573 * infrun.c (wait_for_inferior) [HAVE_STEPPABLE_WATCHPOINT,
6574 HAVE_NONSTEPPABLE_WATCHPOINT, HAVE_CONTINUABLE_WATCHPOINT]: Test
6575 at runtime instead of compile time.
6576
c2d11a7d
JM
6577Thu Apr 15 15:15:07 1999 Andrew Cagney <cagney@amy.cygnus.com>
6578
6579 * mips-tdep.c (struct gdbarch_tdep): Rename elf_abi to
6580 elf_flags. Check ABFD is elf_flavour before extracting elf_flags.
6581 Match ARCH against entire elf_flags instead of just the
6582 EF_MIPS_ABI field.
6583 (mips_gdbarch_init): Extract/print ef_mips_arch and
6584 ef_mips_bitptrs and ef_mips_abi fields from elf_flags.
6585
7a292a7a
SS
65861999-04-14 Philippe De Muyter <phdm@macqel.be>
6587
6588 * breakpoint.c (maintenance_info_breakpoints): Function made
6589 static to match previous prototype.
6590
6591 * coffread.c (coff_record_line): Static function removed.
6592 (enter_linenos): Call `record_line' instead of `coff_record_line'.
6593 (FILE-LEVEL, coff_start_symtab, coff_end_symtab): `coff_record_line'
6594 -related stuff removed.
6595 (coff_symfile_read): Redundant statement removed.
6596 (coff_symtab_read): `record_line' is now called with the first line
6597 number of each function, given by the ".bf" symbol. This solves
6598 the line-number bug for one-line functions.
6599
6600Wed Apr 14 11:09:45 1999 Andrew Cagney <cagney@b1.cygnus.com>
6601
0f71a2f6
JM
6602 * gdbarch.h (BELIEVE_PCC_PROMOTION_TYPE, BELIEVE_PCC_PROMOTION):
6603 Add multi-arch definitions.
6604 * gdbarch.c (gdbarch_believe_pcc_promotion,
6605 gdbarch_believe_pcc_promotion_type): New functions.
6606 (gdbarch_update): Update
6607 (struct gdbarch default_gdbarch): Update.
6608
7a292a7a
SS
6609 * stabsread.c (BELIEVE_PCC_PROMOTION_TYPE): Provide default.
6610 (define_symbol): Change #if BELIEVE_PCC_PROMOTION_TYPE and #if
6611 BELIEVE_PCC_PROMOTION to if().
6612
66131999-04-13 Jason Molenda (jsm@bugshack.cygnus.com)
6614
6615 * configure.in (HAVE_MULTIPLE_PROC_FDS): Don't define if we're
6616 on a Solaris host (of any architecture).
6617 * configure: Regenerated.
6618
0f71a2f6
JM
6619Wed Apr 14 08:23:32 1999 Andrew Cagney <cagney@b1.cygnus.com>
6620
6621 * gdbarch.c (SET_GDBARCH, GET_GDBARCH, FSET_GDBARCH): New macros.
6622 (gdbarch_byte_order, gdbarch_long_bit, gdbarch_long_long_bit,
6623 gdbarch_ptr_bit, gdbarch_call_dummy_location,
6624 gdbarch_call_dummy_address, gdbarch_call_dummy_address,
6625 gdbarch_call_dummy_breakpoint_offset,
6626 gdbarch_call_dummy_breakpoint_offset, gdbarch_call_dummy_length,
6627 gdbarch_pc_in_call_dummy, dbarch_call_dummy_breakpoint_offset_p,
6628 dbarch_call_dummy_p, dbarch_call_dummy_words,
6629 dbarch_sizeof_call_dummy_words, dbarch_call_dummy_stack_adjust,
6630 dbarch_call_dummy_stack_adjust_p): Define using new macros.
6631
7a292a7a
SS
66321999-04-13 Jason Molenda (jsm@bugshack.cygnus.com)
6633
6634 * rom68k-rom.c (init_rom68k_cmds): Fix an accidental substitution
6635 in monitor command strings, fix some formatting mistakes.
6636
66371999-04-13 Stan Shebs <shebs@andros.cygnus.com>
6638
6639 * configure.tgt (arm-*-*): Whack another vestige of wingdb.
6640
66411999-04-12 James Ingham <jingham@cygnus.com>
6642
6643 * arm-tdep.c (arm_pop_frame): don't clobber the previous frame's
6644 stack pointer (stored in frame->framereg's register) BEFORE
6645 reading it. This was causing "return" to behave very oddly.
6646
66471999-04-12 Stan Shebs <shebs@andros.cygnus.com>
6648
6649 * NEWS: Mention tic80.
6650
66511999-04-12 Elena Zannoni <ezannoni@kwikemart.cygnus.com>
6652
6653 * a68v-nat.c: Remove reference to 'extern char registers[]' throughout.
6654 * altos-xdep.c: Ditto.
6655 * arm-xdep.c: Ditto.
6656 * convex-xdep.c: Ditto.
6657 * cxux-nat.c: Ditto.
6658 * hp300ux-nat.c: Ditto.
6659 * hppab-nat.c: Ditto.
6660 * i386aix-nat.c: Ditto.
6661 * i386mach-nat.c: Ditto.
6662 * m88k-nat.c: Ditto.
6663 * ptx4-nat.c: Ditto.
6664 * pyr-xdep.c: Ditto.
6665 * rs6000-nat.c: Ditto.
6666 * sun3-nat.c: Ditto.
6667 * sun386-nat.c: Ditto.
6668 * symm-nat.c: Ditto.
6669 * umax-xdep.c: Ditto.
6670 * i386v4-nat.c: Ditto. Also include inferior.h.
6671 * m68k-tdep.c: Ditto. Also include inferior.h.
6672
6673Mon Apr 12 15:57:16 1999 Andrew Cagney <cagney@b1.cygnus.com>
6674
6675 * inferior.h (CALL_DUMMY_STACK_ADJUST, CALL_DUMMY_STACK_ADJUST_P):
6676 Provide default definitions.
6677 * valops.c (hand_function_call): Replace #ifdef
6678 CALL_DUMMY_STACK_ADJUST with if (CALL_DUMMY_STACK_ADJUST_P).
6679
0f71a2f6
JM
6680 * gdbarch.h (SIZEOF_CALL_DUMMY_STACK_ADJUST,
6681 (SIZEOF_CALL_DUMMY_STACK_ADJUST_P): Define
6682 * gdbarch.c (struct gdbarch): Add call_dummy_stack_adjust,
6683 call_dummy_stack_adjust_p.
6684 (gdbarch_call_dummy_stack_adjust,
6685 set_gdbarch_call_dummy_stack_adjust,
6686 gdbarch_call_dummy_stack_adjust_p,
6687 set_gdbarch_call_dummy_stack_adjust_p): New functions.
6688 (default_gdbarch): Update.
6689
7a292a7a
SS
66901999-04-09 Jim Blandy <jimb@zwingli.cygnus.com>
6691
6692 * ax-gdb.c, ax-gdb.h, ax-general.c, ax.h: Remove RCS Id strings.
6693 They're a pain.
c906108c
SS
6694
6695 * GDB 4.18 released.
7a292a7a 6696 * Makefile.in (VERSION): Bump to 4.18.1.
c906108c 6697
7a292a7a
SS
6698Thu Apr 8 16:04:34 1999 Andrew Cagney <cagney@b1.cygnus.com>
6699
6700 * inferior.h (CALL_DUMMY_P, CALL_DUMMY_WORDS,
6701 SIZEOF_CALL_DUMMY_WORDS): Define macros.
6702 (PUSH_DUMMY_FRAME, FIX_CALL_DUMMY, STORE_STRUCT_RETURN): Provide
6703 fatal default.
6704
6705 * inferior.h, gdbarch.c (call_dummy_words,
6706 sizeof_call_dummy_words): Declare/Define variables.
6707 * valops.c (value_arg_coerce, find_function_addr,
6708 call_function_by_hand): Always define.
6709 (hand_function_call): Rename CALL_DUMMY version of
6710 call_function_by_hand. Make static. Add prototype.
6711 (hand_function_call): Update. Allocate space for *dummy and
6712 *dummy1 using alloca.
6713 * breakpoint.c (frame_in_dummy): Update.
c906108c 6714
0f71a2f6
JM
6715 * gdbarch.h (CALL_DUMMY_P, CALL_DUMMY_WORDS,
6716 SIZEOF_CALL_DUMMY_WORDS): Define.
6717 * gdbarch.c (gdbarch_call_dummy_p, set_gdbarch_call_dummy_p,
6718 gdbarch_call_dummy_words, set_gdbarch_call_dummy_words,
6719 gdbarch_sizeof_call_dummy_words,
6720 set_gdbarch_sizeof_call_dummy_words): New functions.
6721 (gdbarch_alloc, verify_gdbarch, gdbarch_update, struct
6722 default_gdbarch): Update.
6723
7a292a7a
SS
67241999-04-08 Jason Molenda (jsm@bugshack.cygnus.com)
6725
6726 * monitor.c (monitor_read_memory): If a MO_GETMEM_NEEDS_RANGE
6727 monitor, increase the end address by one byte.
6728
67291999-04-08 Jason Molenda (jsm@bugshack.cygnus.com)
6730
6731 * dbug-rom.c (init_dbug_cmds): Fix strings in
6732 dbug_cmds.{step,clr_break,clr_all_break,fill} to send correct
6733 commands to the monitor.
6734
67351999-04-08 Keith Seitz <keiths@cygnus.com>
6736
6737 * m32r-stub.c (branchDestination): Undo overly ambitious
6738 sed script's conversion of cast from "char" to "unsigned char".
6739 Return offset should now be properly computed.
6740
6741Thu Apr 8 14:13:19 1999 Andrew Cagney <cagney@b1.cygnus.com>
6742
6743 * inferior.h (CALL_DUMMY_BREAKPOINT_OFFSET_P): New macro.
6744 Non-zero when CALL_DUMMY_BREAKPOINT_OFFSET is valid.
6745
6746 * infcmd.c (breakpoint_auto_delete_contents): Always define.
6747 (run_stack_dummy): Update.
6748 * infrun.c (wait_for_inferior): Update
6749
0f71a2f6
JM
6750 * gdbarch.h (CALL_DUMMY_BREAKPOINT_OFFSET_P): New macro.
6751 * gdbarch.c (set_gdbarch_call_dummy_breakpoint_offset_p,
6752 gdbarch_call_dummy_breakpoint_offset_p): New functions.
6753 (struct gdbarch, gdbarch_alloc, default_gdbarch, gdbarch_update):
6754 Update.
6755
7a292a7a
SS
67561999-04-07 Stan Shebs <shebs@andros.cygnus.com>
6757
6758 * MAINTAINERS: Mark Alexander can no longer maintain
6759 h8300 and other embedded targets, sniff.
c906108c
SS
6760
67611999-04-06 Stan Shebs <shebs@andros.cygnus.com>
6762
7a292a7a
SS
6763 * inftarg.c (child_wait): Initialize execd_pathname.
6764 * target.c (debug_to_has_execd): Handle NULL execd_pathname.
6765
c906108c
SS
6766 * solib.c (clear_solib): Don't call disable_breakpoints_in_shlibs,
6767 this breaks rerunning on sun4 native.
6768
7a292a7a 67691999-04-06 Jim Blandy <jimb@zwingli.cygnus.com>
c906108c 6770
7a292a7a
SS
6771 * config/sparc/nm-linux.h: Don't redefine PT_ATTACH to use the
6772 deprecated PTRACE_SUNATTACH compatibility commands. The
6773 definitions from <sys/ptrace.h> are fine.
6774
67751999-04-06 Martin Hunt <hunt@cygnus.com>
6776
6777 * annotate.h: Declare annotate_signal_hook.
6778
6779 * annotate.c (annotate_signal): Add a call to
6780 annotate_signal_hook().
6781
67821999-04-06 Jim Blandy <jimb@zwingli.cygnus.com>
6783
6784 * dwarf2read.c (dwarf_decode_lines): Don't call record_line when
6785 we hit a DW_LNE_end_sequence instruction.
c906108c
SS
6786
6787 * README: Note that GDB requires an ANSI C compiler, and explain
6788 how to get GCC.
6789
6790 * README: Update.
c906108c 6791
7a292a7a 67921999-04-05 Stan Shebs <shebs@andros.cygnus.com>
c906108c
SS
6793
6794 * NEWS: Add more notes about user-visible changes.
6795
7a292a7a
SS
6796Mon Apr 5 14:56:59 1999 Michael Snyder <msnyder@cleaver.cygnus.com>
6797
6798 * target.c (target_signal_to_string): check for signal
6799 number in range; otherwise if the target board returns
6800 a bogus signal number we might core dump (per David Taylor).
6801
68021999-04-05 David Taylor <taylor@ryobi.cygnus.com>
6803
6804 * utils.c (fputs_maybe_filtered): test value of
6805 pagination_enabled before paginating.
6806
68071999-04-02 James Ingham <jingham@cygnus.com>
6808
6809 * blockframe.c (get_prev_frame): Remove the redundant
6810 get_prev_frame_info. It is now exactly the same as
6811 get_prev_frame, so there is no reason to have both functions.
6812
6813 * rs6000-tdep.c (rs6000_init_extra_frame_info):
6814 frame.h:
6815 a29k-tdep.c (init_extra_frame_info):
6816 config/a29k/tm-a29k.h:
6817 i386-tdep.c:
6818 Change all references to get_prev_frame_info to get_prev_frame.
6819
68201999-04-02 Stan Shebs <shebs@andros.cygnus.com>
6821
6822 * bcache.c, bcache.h, breakpoint.c, defs.h, expprint.c,
6823 expression.h, gdbarch.c, gdbtypes.c, gdbtypes.h, gnu-nat.c,
6824 gnu-nat.h, hppa-tdep.c, maint.c, monitor.c, objfiles.h, parse.c,
6825 remote-mips.c, remote-sds.c, remote.c, sol-thread.c, symmisc.c,
6826 symtab.h, target.c, top.c, typeprint.c, config/nm-gnu.h: Evaporate
6827 the unused MAINTENANCE_CMDS conditional.
6828
68291999-04-02 James Ingham <jingham@cygnus.com>
6830
6831 * config/arm/tm-arm.h: (EXTRACT_STRUCT_VALUE_ADDRESS): This needs
6832 to call extract_address, not just cast the first 4 bytes, since
6833 the result will be passed to value_at which expects host-byte
6834 order.
6835
6836 * arm-tdep.c (arm_scan_prologue): The prologue_start address was
6837 directly &'ed with 0x03fffffc, rather than using
6838 ADDR_BITS_REMOVE. This would cause inferior function calls to
6839 report the stack incorrectly on return.
6840
6841
68421999-04-02 Keith Seitz <keiths@cygnus.com>
6843
6844 * top.c (ui_loop_hook): Change declaration. Now returns an int.
6845 * win32-nat.c (child_wait): Timeout WaitForDebugEvent and call
6846 the ui_loop_hook if there was no debug event.
6847 * top.c (ui_loop_hook): Change to return an int and include
6848 on all non-Cygwin builds.
6849 * v850ice.c: Change prototype of ui_loop_hook.
6850 (v850ice_wait): Update call to ui_loop_hook.
6851 * ser-unix.c (hardwire_readchar): Enable ui_loop_hook callbacks
6852 for non-Cygwin builds. Check return status of ui_loop_hook and
6853 return a timeout if told to detach. Add more documentation.
6854 * ser-tcp.c (tcp_readchar): Break up timeouts into one second
6855 intervals and call ui_loop_hook so that other UIs can
6856 keep up to date. If ui_loop_hook returns non-zero, then
6857 return SERIAL_TIMEOUT to facilitate detaching from the
6858 target.
6859 * remote.c (remote_interrupted_already): Remove.
6860 (remote_interrupt_twice): Revive.
6861 (remote_interrupt): Call remote_stop to interrupt the target
6862 and install remote_interrupt_twice to take more severe
6863 actions if this fails.
6864 (remote_stop): Only attempt to stop the target. This separates
6865 the command line from other UIs.
6866 * remote-sim.c (gdb_os_poll_quit): Add a call to ui_loop_hook,
6867 if it is defined.
6868
c906108c
SS
68691999-04-01 Jim Blandy <jimb@zwingli.cygnus.com>
6870
6871 Fix for cross-debugging on an AIX host from Johanna Svenningsson:
6872 * ax-gdb.h (enum axs_lvalue_kind): Remove trailing comma from enum.
7a292a7a 6873 * ax.h (enum agent_op): Same.
c906108c
SS
6874 * tracepoint.h (enum actionline_type): Same.
6875 * config/xm-aix4.h: Add declaration for termdef.
6876
68771999-03-31 Stan Shebs <shebs@andros.cygnus.com>
6878
6879 * jv-lang.h (dynamics_objfile): Remove decl, conflicts with static
6880 decl in jv-lang.c.
6881
7a292a7a
SS
6882 * infrun.c (follow_inferior_fork): Add ifdefs around
6883 SOLIB_REMOVE_INFERIOR_HOOK.
c906108c 6884
7a292a7a 6885Wed Mar 31 11:39:49 1999 David Taylor <taylor@ryobi.cygnus.com>
c906108c
SS
6886
6887 * valops.c (search_struct_field): revert HP merge change
6888 to this function -- it causes messages to be printed about
6889 member class ambiguity when the compiler is happy.
6890 (search_struct_field_aux): delete -- added as part of HP merge
6891 change; with aforementioned change it is no longer called.
6892
7a292a7a 68931999-03-30 Stan Shebs <shebs@andros.cygnus.com>
c906108c 6894
7a292a7a
SS
6895 Make more HPUX-specific code generic.
6896 * infrun.c: Include top.h.
6897 (MAY_SWITCH_FROM_INFERIOR_PID, MAY_FOLLOW_EXEC,
6898 USE_THREAD_STEP_NEEDED): New native macros.
6899 (may_switch_from_inferior_pid, may_follow_exec,
6900 use_thread_step_needed): New globals.
6901 (follow_inferior_fork): Remove HPUXHPPA ifdef.
6902 (follow_exec): Ditto, also save run target and re-push instead of
6903 always pushing child_ops, add ifdefs around SOLIB_RESTART and
6904 SOLIB_CREATE_INFERIOR_HOOK.
6905 (wait_for_inferior): Use new globals instead of ifdefing HPUXHPPA,
6906 always use printf_filtered to report new threads.
6907 (normal_stop): Ditto.
6908 * target.h, target.c (find_run_target): New function.
6909 * config/pa/nm-hppah.h: Define new macros.
c906108c 6910
7a292a7a 69111999-03-29 Stan Shebs <shebs@andros.cygnus.com>
c906108c 6912
7a292a7a
SS
6913 * top.h: Include setjmp.h here.
6914 * main.c, top.c: Don't include it here.
c906108c 6915
7a292a7a 69161999-03-29 Keith Seitz <keiths@cygnus.com>
c906108c 6917
7a292a7a
SS
6918 * symtab.c (decode_line_1): Take out change which breaks symbols
6919 which include class names and methods, e.g., "Foo::bar".
6920
69211999-03-26 Stan Shebs <shebs@andros.cygnus.com>
6922
6923 * configure.tgt (i[3456]86-*-sysv4.2MP, i[3456]86-*-sysv4.2uw2*):
6924 Recognize both, as i[3456]86-*-sysv4.2*.
6925 (i[3456]86-*-sysv5*): Recognize.
6926
6927 * infrun.c (wait_for_inferior): Remove most #if 0 segments.
6928
6929Fri Mar 26 17:27:27 1999 Andrew Cagney <cagney@b1.cygnus.com>
6930
6931 * blockframe.c (pc_in_call_dummy_on_stack): Fix. Had copied code
6932 from at_entry_point.
6933
6934Thu Mar 25 19:30:02 1999 Andrew Cagney <cagney@amy.cygnus.com>
6935
6936 * gdbarch.c: Include all headers.
0f71a2f6
JM
6937 (struct gdbarch), gdbarch.h (CALL_DUMMY_LOCATION,
6938 CALL_DUMMY_ADDRESS, CALL_DUMMY_START_OFFSET,
6939 CALL_DUMMY_BREAKPOINT_OFFSET, CALL_DUMMY_LENGTH,
6940 PC_IN_CALL_DUMMY): Add ``call_dummy_location'',
6941 ``call_dummy_length'', ``pc_in_call_dummy'',
6942 ``call_dummy_start_offset'', ``call_dummy_breakpoint_offset'' to
6943 multi-arch framework.
7a292a7a
SS
6944
6945 * inferior.h, blockframe.c (pc_in_call_dummy_before_text_end,
6946 pc_in_call_dummy_after_text_end, pc_in_call_dummy_on_stack,
6947 pc_in_call_dummy_at_entry_point): Convert PC_IN_CALL_DUMMY macro's
6948 into functions.
6949
c2d11a7d
JM
6950 * mips-tdep.c (mips_gdbarch_init): Initialize above
6951
7a292a7a
SS
6952Tue Mar 23 17:22:57 1999 Philippe De Muyter <phdm@macqel.be>
6953
6954 * remote.c, parse.c: Include ctype.h.
c906108c
SS
6955
69561999-03-24 Stan Shebs <shebs@andros.cygnus.com>
6957
7a292a7a 6958 * configure.host (mips-dec-mach3*): Use mipsm3 not mach3.
c906108c
SS
6959
6960 Attempt to sort out SCO-related configs.
6961 * configure.host (i[3456]86-*-sysv4.2*): Use instead of
6962 i[3456]86-*-sysv4.2MP and i[3456]86-*-sysv4.2uw2*.
6963 (i[3456]86-*-sysv5*): Recognize.
6964 * configure.tgt (i[3456]86-*-sco3.2v5*, i[3456]86-*-sco3.2v4*):
6965 Recognize.
6966
7a292a7a
SS
6967Wed Mar 24 16:19:01 1999 Christopher Faylor <cgf@cygnus.com>
6968
6969 * MAINTAINERS: Add DJ Delorie (dj@cygnus.com) as the djgpp
6970 maintainer.
6971
6972Wed Mar 24 21:19:57 1999 Andrew Cagney <cagney@amy.cygnus.com>
6973
6974 * target.h (enum target_signal): Do not hardwire values of MACH
6975 signals.
6976
69771999-03-14 Ken Raeburn <raeburn@raeburn.org>
6978
6979 * target.h (enum target_signal): Add TARGET_SIGNAL_INFO.
6980 * target.c (signals): Add SIGINFO description.
6981 (target_signal_from_host, target_signal_to_host): Translate
6982 SIGINFO to/from TARGET_SIGNAL_INFO.
6983
c906108c
SS
6984Wed Mar 24 01:01:27 1999 Andrew Cagney <cagney@sludge.cygnus.com>
6985
6986 * rs6000-tdep.c (rs6000_software_single_step): Change SIGNAL to
6987 unsigned int.
6988
7a292a7a 6989 From Rodney Brown <rodneybrown@pmsc.com>
c906108c
SS
6990 * target.h (enum thread_control_capabilities), breakpoint.h (enum
6991 bptype), breakpoint.c (enum insertion_state_t): Strict ISO-C
6992 doesn't allow trailing comma in enum definition.
6993
7a292a7a 6994Mon Mar 22 15:56:04 1999 Andrew Cagney <cagney@b1.cygnus.com>
c906108c 6995
7a292a7a
SS
6996 * blockframe.c (inside_entry_file, inside_entry_func): Convert #if
6997 CALL_DUMMY_LOCATION to if.
6998 * valops.c (call_function_by_hand): Ditto.
6999 * infcmd.c (run_stack_dummy): Ditto.
7000 * inferior.h (CALL_DUMMY_ADDRESS, CALL_DUMMY_START_OFFSET,
7001 CALL_DUMMY_BREAKPOINT_OFFSET): Provide default.
c906108c 7002
7a292a7a 70031999-03-23 Jason Molenda (jsm@bugshack.cygnus.com)
c906108c 7004
7a292a7a
SS
7005 * hppa-tdep.c (pa_register_look_aside): Remove CPU_HPPA_RISC_20
7006 check, test for presence of struct save_state_t and the ss_wide
7007 member directly.
7008 * configure.in: Remove CPU_HPPA_RISC_20 test. Add tests for
7009 HAVE_STRUCT_SAVE_STATE_T and HAVE_STRUCT_MEMBER_SS_WIDE.
7010 * acconfig.h: Add HAVE_STRUCT_SAVE_STATE_T HAVE_STRUCT_MEMBER_SS_WIDE.
7011 * configure, config.in: Regenerated.
c906108c
SS
7012
7013Mon Mar 22 13:25:13 1999 Michael Snyder <msnyder@cleaver.cygnus.com>
7014
7015 * infttrace.c (proc_wait): rename to ptrace_wait.
7016
7a292a7a
SS
70171999-03-18 Jim Blandy <jimb@zwingli.cygnus.com>
7018
7019 * dwarf2read.c: Correctly recognize location expressions that
7020 designate LOC_REF_ARG arguments. Doc fixes.
7021 (isderef): New global. (Yuck.)
7022 (dwarf2_complex_location_expr): New complaint.
7023 (read_func_scope): Reject frame_base attributes that use the
7024 `deref' opcode as too complex.
7025 (new_symbol): If both regoff and isderef are set, and the base
7026 register is the frame pointer, then it's a LOC_REF_ARG argument.
7027 (decode_locdesc): Recognize the `deref' opcode in location
7028 expressions. Complain if it's not the last op in the expression.
7029
7030 * config/fr30/tm-fr30.h (COERCE_FLOAT_TO_DOUBLE): #define this to
7031 be true, or else value_arg_coere won't respect the (accurate)
7032 information we have about whether a function is prototyped.
7033
70341999-03-17 Jim Blandy <jimb@zwingli.cygnus.com>
7035
7036 * config/fr30/tm-fr30.h (STACK_ALIGN): Define this here, so
7037 calling functions by hand with odd-sized arguments doesn't munge
7038 the stack.
7039
c906108c
SS
70401999-03-17 Jason Molenda (jsm@bugshack.cygnus.com)
7041
7042 * configure.in (HAVE_MULTIPLE_PROC_FDS): Don't define for Solaris
7043 hosts--gdb doesn't support this yet.
7044 * configure: Regenerated.
7045
7a292a7a
SS
70461999-03-16 Keith Seitz <keiths@cygnus.com>
7047
7048 * remote.c (remote_binary_checked): New file global.
7049 (check_binary_download): New function to check if
7050 stub supports binary downloading that works with
7051 stubs that are not eight bit clean.
7052 (remote_write_bytes): Check for binary download capability
7053 and use it if available.
7054 Remove references to global remote_binary_length. What a hack.
7055 (putpkt_binary): New function.
7056 (putpkt): Call putpkt_binary.
7057 Use xor to escape trouble characters.
7058 * m32r-stub.c (bin2mem): Follow escape char convention change.
7059
c906108c
SS
7060Tue Mar 16 01:11:33 1999 Andrew Cagney <cagney@rhino.cygnus.com>
7061
7062 * target.h (struct target_ops), target.c (debug_to_query),
7063 remote.c (pack_hex_byte, remote_query): Promote char parameters to
7064 int. Stops compile problems with pedantic ISO-C compilers.
7a292a7a 7065
c906108c
SS
7066Tue Mar 16 15:29:04 1999 Stan Shebs <shebs@andros.cygnus.com>
7067
7a292a7a
SS
7068 * go32-xdep.c: Remove, no longer used by anything.
7069 * Makefile.in: Remove references.
7070
c906108c
SS
7071 * jv-lang.c, jv-lang.h (java_primitive_type): Declare argument
7072 as int instead of char.
7073
7a292a7a 7074Mon Mar 15 11:42:43 1999 Andrew Cagney <cagney@b1.cygnus.com>
c906108c 7075
7a292a7a
SS
7076 * d10v-tdep.c (push_stack_item, pop_stack_item): New function.
7077 (d10v_push_arguments): Use.
c906108c 7078
7a292a7a
SS
7079 From Martin M. Hunt <hunt@cygnus.com>:
7080 * d10v-tdep.c (d10v_push_arguments): When arguments
7081 must be pushed onto the stack, they go on in
7082 reverse order.
c906108c 7083
7a292a7a
SS
70841999-03-16 Jim Blandy <jimb@zwingli.cygnus.com>
7085
7086 * symtab.c (make_symbol_overload_list): Don't try to stuff minimal
7087 or partial symbols into the overload list; we don't know their
7088 types. (Thanks to Rajiv Mirani.)
7089
70901999-03-15 Jason Molenda (jsm@bugshack.cygnus.com)
7091
7092 * acinclude.m4 (--with-itclconfig, --with-itkconfig, --with-tixconfig):
7093 Fix whitespace so --help messages line up.
7094 * configure.in (--with-cpu): Fix capitalization for --help messages.
7095 * configure, aclocal.m4: Regenerated.
7096
7097Mon Mar 15 11:39:03 1999 Ian Carmichael <iancarm@cygnus.com>
7098
7099 Support building gdb w/o simulator:
7100 * configure.in: Support --disable-sim. Check for sim directory.
7101 * Makefile.in (IGNORE_SIM, IGNORE_SIM_OBS): New.
7102 * acconfig.h (WITH_SIM): Define.
7103 * configure, config.in: Regenerate.
7104
7105Mon Mar 15 08:01:33 1999 Elena Zannoni <ezannoni@cygnus.com>
7106
7107 Patch from Andreas Schwab <schwab@issan.cs.uni-dortmund.de>
7108
7109 * top.c (read_command_lines): Reset control_level to 0.
7110 (define_command): Don't do it here.
7111
7112Sun Mar 14 16:12:15 1999 Andrew Cagney <cagney@rhino.cygnus.com>
7113
7114 * hppah-nat.c (store_inferior_registers): Delete extern
7115 registers[] declaration.
7116
7117Sun Mar 14 19:17:30 1999 Andrew Cagney <cagney@b1.cygnus.com>
7118
7119 * infrun.c (write_inferior_status_register): New function. Provide
7120 update access to an inf_status register buffer. Only used by HP.
7121 * inferior.h (write_inferior_status_register): Add prototype.
7122
7123 * hppa-tdep.c (push_dummy_frame): Use
7124 write_inferior_status_register when hacking around a sleeping
7125 inferior. Accidently fix byte-order problem.
7126
7127Sun Mar 14 16:40:10 1999 Andrew Cagney <cagney@b1.cygnus.com>
7128
7129 * config/pa/tm-hppa.h (PUSH_DUMMY_FRAME): Fix parameter. Address
7130 not needed.
7131
7132Fri Mar 12 13:11:48 1999 Michael Snyder <msnyder@cleaver.cygnus.com>
7133
7134 * remote.c (remote_write_bytes): fix 'X' packet protocol so that it
7135 can't overwrite the end of its buffer with escaped characters.
c906108c
SS
7136
71371999-03-12 Jim Blandy <jimb@zwingli.cygnus.com>
7138
7a292a7a 7139 Alpha patches from Richard Henderson:
c906108c 7140
7a292a7a 7141 * alpha-tdep.c (alpha_skip_prologue): Recognize subq.
c906108c 7142
7a292a7a
SS
7143 * config/alpha/tm-alpha.h (REGISTER_NAMES): No f31, but fpcr.
7144 (FPCR_REGNUM): New.
7145 (REGISTER_CONVERTIBLE): Don't convert fpcr.
7146 (REGISTER_VIRTUAL_TYPE): Don't make fpcr a double.
c906108c 7147
7a292a7a
SS
7148 * stabsread.c (define_symbol): Only consider live range extension
7149 if we have an open parenthesis.
c906108c 7150
7a292a7a
SS
71511999-03-11 Jim Blandy <jimb@zwingli.cygnus.com>
7152
7153 * monitor.c (monitor_fetch_register): Print RDEBUG info correctly
7154 when the register name is null.
7155
7156Thu Mar 11 19:33:07 1999 Stan Shebs <shebs@andros.cygnus.com>
7157
7158 * infrun.c (wait_for_inferior): Change #if DECR_PC_AFTER_BREAK
7159 uses to expressions, remove redundant extern decls.
7160
7161Thu Mar 11 18:05:11 1999 Michael Snyder <msnyder@cleaver.cygnus.com>
c906108c
SS
7162
7163 * infptrace.c (proc_wait): Rename to ptrace_wait.
7164 * inftarg.c (child_wait): call ptrace_wait instead of proc_wait.
7165 * inferior.h: Declare ptrace_wait instead of proc_wait.
7166
7a292a7a
SS
7167Thu Mar 11 11:46:25 1999 Andrew Cagney <cagney@amy.cygnus.com>
7168
7169 * breakpoint.c (create_solib_load_unload_event_breakpoint,
7170 create_fork_vfork_event_catchpoint, tcatch_command,
7171 create_exception_catchpoint, break_at_finish_at_depth_command_1,
7172 catch_fork_command_1, ep_skip_leading_whitespace,
7173 break_at_finish_command_1, catch_exec_command_1,
7174 catch_exception_command_1, stop_command, stopin_command,
7175 stopat_command, ep_parse_optional_filename,
7176 ep_find_event_name_end, ep_parse_optional_if_clause,
7177 catch_fork_command_1), stack.c (show_and_print_stack_frame_stub,
7178 print_stack_frame_stub, print_only_stack_frame_stub,
7179 backtrace_command_1, backtrace_full_command, func_command),
7180 valprint.c (print_decimal), source.c (print_source_lines_base):
7181 Add prototype.
7182
7183 * stack.c (print_stack_frame_stub, show_and_print_stack_frame_stub,
7184 print_only_stack_frame_stub): Make param void*.
7185
7186Wed Mar 10 19:33:28 1999 Geoffrey Noer <noer@cygnus.com>
7187
7188 * win32-nat.c: If old Cygwin Win32 API headers aren't being used,
7189 define some gdb-specific defines that shouldn't have been in the
7190 global headers.
7191
7192Wed Mar 10 21:20:25 1999 Andrew Cagney <cagney@b1.cygnus.com>
7193
7194 * findvar.c (registers, register_valid): Replace array with pointer.
7195 (build_findvar): New function. Allocate space for REGISTERS and
7196 REGISTER_VALID.
7197 (_initialize_findvar): Call build_findvar.
0f71a2f6
JM
7198 (_initialize_findvar): Register REGISTERS and REGISTER_VALID as
7199 arch dependant.
7a292a7a
SS
7200
7201 * inferior.h (registers, register_valid): Replace array with
7202 pointer.
7203
7204 * inferior.h (struct inferior_status): Move definition from here.
7205
7206 * infrun.c (struct inferior_status): To here.
7207 (struct inferior_status): Change ``stop_registers'' and
7208 ``registers'' to pointers.
7209 (xmalloc_inferior_status, free_inferior_status): New functions.
7210 (restore_inferior_status): Call free_inferior_status.
7211 (save_inferior_status): Call xmalloc_inferior_status.
7212 (discard_inferior_status): New function, discard inf_status
7213 buffer. Call free_inferior_status.
7214
7215 * inferior.h (stop_registers): Replace array with pointer.
7216 * infrun.c (stop_registers): Update.
7217 (build_infrun): Initialize stop_registers.
7218 (_initialize_infrun): Call build_infrun.
0f71a2f6 7219 (_initialize_infrun): Register ``stop_registers'' as arch dependant.
7a292a7a
SS
7220
7221Wed Mar 10 14:50:42 1999 Andrew Cagney <cagney@amy.cygnus.com>
7222
7223 * alpha-tdep.c (alpha_linux_sigtramp_offset): Only compile when
7224 LINUXALPHA target. Hack.
7225
7226 * infrun.c (set_follow_fork_mode_command): Make static. Add
7227 prototype.
7228 * tracepoint.c (add_register): Ditto.
7229 * valprint.c (strcat_longest): Comment out. Does not appear to be
7230 used.
7231 * valops.c (find_method_list): Make static. Add prototype.
7232 * thread.c (target_find_new_threads): Make static. Add prototype.
7233 * stack.c (stack_publish_stopped_with_no_frame,
7234 select_and_maybe_print_frame): Comment out. Does not appear to be
7235 used.
7236 (current_frame_command): Add prototype.
7237 * breakpoint.c (break_at_finish_command,
7238 break_at_finish_at_depth_command, tbreak_at_finish_command): Make
7239 static. Add prototype.
7240 * findvar.c (read_relative_register_raw_bytes_for_frame): Ditto.
7241
7242Wed Mar 10 23:38:54 1999 Andrew Cagney <cagney@b1.cygnus.com>
7243
7244 * corefile.c (registers): Delete redundant variable declaration.
7245 * inferior.h (run_stack_dummy): Change array argument to pointer.
7246 * infcmd.c (run_stack_dummy): Update.
7247 * value.h (value_being_returned): Change RETBUF to a pointer.
7248 * values.c (value_being_returned): Update.
7249
7250Wed Mar 10 11:08:16 1999 Andrew Cagney <cagney@amy.cygnus.com>
7251
7252 * source.c (list_command): GCC suggested explicit braces to avoid
7253 ambiguous `else'.
7254
7255 * jv-typeprint.c: Include "c-lang.h".
7256 * Makefile.in (jv-typeprint.o): Add dependency.
7257 * jv-valprint.c: Include "gdbcore.h", "annotate.h".
7258 * Makefile.in (jv-valprint.o): Add dependencies.
7259 * objfiles.c: Include "breakpoint.h".
7260 * Makefile.in (objfiles.o): Add dependency.
7261 * main.c: Include <unistd.h>.
7262 * parse.c: Include <ctype.h>.
7263 * remote.c: Include <ctype.h>.
7264 * ser-tcp.c: Include <unistd.h>.
7265 * ax-general.c: Include "value.h".
7266 * Makefile.in (ax-general.o): Add dependency.
7267
7268 * alpha-tdep.c (alpha_push_arguments): Make ``i'' an int instead
7269 of a register.
7270 * frame.h (show_and_print_stack_frame): Add function prototype.
7271 * language.h (language_enum): Add function prototype.
7272 * value.h (find_overload_match): Add function prototype.
7273
7274 * defs.h, utils.c (subset_compare): Rename subsetCompare. Add
7275 prototype.
7276 * stack.c (backtrace_command): Update.
7277
7278Wed Mar 10 13:58:36 1999 Andrew Cagney <cagney@b1.cygnus.com>
7279
7280 * configure.in (AC_CHECK_HEADERS): Check for <sys/select.h>
7281 * configure, config.in: Re-generate.
7282 * inflow.c: Conditionally include <sys/select.h>.
7283
7284Wed Mar 10 13:44:38 1999 Andrew Cagney <cagney@b1.cygnus.com>
7285
7286 * frame.h (struct dummy_frame): Move from here.
7287 * blockframe.c (struct dummy_frame): To here.
7288
7289 * blockframe.c (struct dummy_frame): Replace ``regs'' with pointer
7290 ``registers''.
7291 (generic_pop_dummy_frame): Free it.
7292 (generic_push_dummy_frame): Allocate dummy frame register buffer.
7293
7294Wed Mar 10 11:08:16 1999 Andrew Cagney <cagney@amy.cygnus.com>
7295
7296 * thread.c (_initialize_thread): Delete redundant ``extern struct
7297 cmd_list_element *cmdlist''.
7298 * printcmd.c (print_command_1): Ditto for ``objectprint'';
7299
73001999-03-09 Stan Shebs <shebs@andros.cygnus.com>
7301
7302 * MAINTAINERS: New file, list of maintainers and areas they
7303 maintain.
c906108c
SS
7304
73051999-03-09 Rodney Brown <RodneyBrown@pmsc.com>
7306
7307 Get working on UnixWare 2.1.1.
7308 * acconfig.h: Update for defines for procfs.c.
7309 * configure.in: Identify defines for procfs.c.
7310 * configure.host: i386-*-sysv4.2uw2* => i386v42mp
7311 * configure.tgt: i386-*-sysv4.2uw2* => i386v42mp
7312 * configure, config.in: Regenerate.
7313 * procfs.c: Rename HAVE_NO_PRRUN_T to HAVE_PRRUN_T (autoconf
7314 standard), wrap UNIXWARE difference in THE_PR_LWP macro for
7315 legibility.
7316 * config/i386/tm-i386v42mp.h: Remove HAVE_PSTATUS_T,
7317 HAVE_NO_PRRUN_T; now set by configure.
7318
7a292a7a
SS
7319Tue Mar 9 16:29:24 1999 Andrew Cagney <cagney@b1.cygnus.com>
7320
7321 * i386-tdep.c (gdb_print_insn_i386): Abort when disassembly_flavor
7322 undefined..
7323
7324 * fr30-tdep.c (_initialize_fr30_tdep): Add prototype. Fix
7325 coding style.
7326
7327 * target.c (debug_to_enable_exception_callback,
7328 debug_to_get_current_exception_event): Return result of call to
7329 debug_target().
7330
73311999-03-09 Jim Blandy <jimb@zwingli.cygnus.com>
7332
7333 Another HURD fix from Mark Kettenis:
7334 * gnu-nat.c: Include <string.h>. Remove declaration of strerror.
7335 Include <bits/waitflags.h> instead of <waitflags.h> and define
7336 _SYS_WAIT_H to prevent the warning that we should not include it.
7337 (gnu_create_inferior): Change return type of attach_to_child to
7338 void. Do not return INFERIOR_PID.
7339 (gnu_pid_to_exec_file): Change return type to char *.
7340 Return NULL.
7341
7342 Fix for the HURD from Mark Kettenis:
7343 * configure.in: Add AC_PROG_AWK. Needed by the machine-dependent
7344 makefile fragments for the Hurd.
7345 * Makefile.in (AWK): Add. Set by configure.
7346 * configure: Regenerated.
7347
73481999-03-08 Jason Molenda (jsm@bugshack.cygnus.com)
7349
7350 * infttrace.c (hppa_get_process_events): Removed. Function only
7351 usable on HPUX 10 and above. It is not called by any other part
7352 of GDB.
7353 * hppah-nat.c (hppa_get_process_events): Ditto.
7354 (child_pid_to_exec_file): Only call ptrace with
7355 PT_GET_PROCESS_PATHNAME if that symbol has been defined.
7356 * config/pa/nm-hppah.h: Don't set up prototypes et al for
7357 hppa_get_process_events.
7358
7359 * config/pa/hppahpux.mh (TERM_LIB): Do not initialize, let autoconf
7360 determine best library automatically.
7361 * config/pa/hpux1020.mh: Ditto.
7362 * config/pa/hpux1100.mh: Ditto.
7363 * configure.in (TERM_LIB): Also check for libHcurses.
7364 * configure: Regenerated.
7365
7366Thu Mar 4 17:16:04 1999 Michael Snyder <msnyder@cleaver.cygnus.com>
7367
7368 * m32r-stub.c: add support for crc "Compare" command.
7369
c906108c
SS
73701999-03-04 Jim Blandy <jimb@zwingli.cygnus.com>
7371
7a292a7a
SS
7372 * fr30-tdep.c (fr30_store_return_value): Allocate zeroes
7373 dynamically, to save BSS space, and to remove assumptions about
7374 the size of the largest value we'll return.
7375
7376 * config/fr30/tm-fr30.h (fr30_store_return_value): Use PARAMS in
7377 prototype.
7378
7379Thu Mar 4 08:37:35 1999 Andrew Cagney <cagney@b1.cygnus.com>
7380
7381 * sh3-rom.c (sh3_supply_register, sh3_supply_register),
7382 mips-tdep.c (mips_push_arguments), m32r-rom.c
7383 (m32r_upload_command), m32r-tdep.c (decode_prologue), monitor.c
7384 (longlong_hexchars), tracepoint.c (validate_actionline,
7385 read_actions), mdebugread.c
7386 (parse_symbol), jv-typeprint.c
7387 (java_type_print_base, java_type_print_base), mdebugread.c
7388 (parse_symbol), top.c (source_command), utils.c
7389 (floatformat_to_doublest): GCC suggest explicit braces to avoid
7390 ambiguous `else'.
c906108c 7391
7a292a7a
SS
7392 * tracepoint.c (map_args_over_tracepoints, trace_actions_command),
7393 m32r-rom.c (m32r_supply_register), win32-nat.c
7394 (handle_output_debug_string, child_continue), i960-tdep.c
7395 (pop_frame), m32r-rom.c (m32r_upload_command): GCC suggested
7396 parentheses around assignment used as truth value.
7397
7398 * remote-sds.c (sds_wait), monitor.c (monitor_fetch_register),
7399 ser-e7kpc.c, (dosasync_write), arc-tdep.c (arc_get_frame_setup):
7400 GCC suggested parentheses around operands.
7401
7402 * c-typeprint.c (c_type_print_base): GCC suggested enclosing
7403 "while" expression in paren.
7404
7405Wed Mar 3 18:14:33 1999 Andrew Cagney <cagney@chook.cygnus.com>
7406
7407 * sol-thread.c (save_inferior_pid): Cast the saved pid to void*.
7408 (restore_inferior_pid): Takes void* as required by make_cleanup.
7409 Casts pid back to an int.
7410
7411 * procfs.c (make_cleanup_close_proc_file,
7412 close_proc_file_cleanup): Create a proc_file cleanup.
7413 (info_proc): Use.
7414
7415 * defs.h (make_cleanup_freeargv): Helper function. Establish
7416 cleanup using freeargv. Can not just typecast/pass freeargv as it
7417 violates ISO-C.
7418 * utils.c (do_freeargv): Helper.
7419 (make_cleanup_freeargv): New function.
7420
7421 * symmisc.c (maintenance_print_symbols,
7422 maintenance_print_psymbols, maintenance_print_msymbols), symfile.c
7423 (symbol_file_command), stack.c (backtrace_command), remote-sim.c
7424 (gdbsim_create_inferior, gdbsim_open), remote-mips.c
7425 (common_open), procfs.c (info_proc), infrun.c (handle_command,
7426 xdb_handle_command), exec.c (exec_file_attach): Call
7427 make_cleanup_freeargv.
7428
74291999-03-03 James Ingham <jingham@cygnus.com>
7430
7431 * i386-tdep.c (_initialize_i386_tdep): Set the inital value for
7432 disassembly flavor at startup, rather than hardcoding it.
7433
74341999-03-03 Jim Blandy <jimb@zwingli.cygnus.com>
7435
7436 Put return values in the right place.
7437 * fr30-tdep.c (fr30_store_return_value): New function.
7438 * config/fr30/tm-fr30.h (STORE_RETURN_VALUE): Call
7439 fr30_store_return_value.
7440
7441Wed Mar 3 18:10:55 1999 Andrew Cagney <cagney@chook.cygnus.com>
7442
7443 * gdbtypes.c (virtual_base_list_aux): Return void. Add prototype.
7444
7445 * breakpoint.c (map_catch_names): Comment out unused function.
7446
74471999-03-02 Jason Molenda (jsm@bugshack.cygnus.com)
7448
7449 * hppa-tdep.c (pa_register_look_aside): Only refer to save_state_t
7450 structure on PA 2.0 systems.
7451
74521999-03-02 Stan Shebs <shebs@andros.cygnus.com>
7453
7454 From Gary Thomas <gthomas@cygnus.co.uk>:
7455 * arm-tdep.c (ARM_LE_BREAKPOINT, ARM_BE_BREAKPOINT,
7456 THUMB_LE_BREAKPOINT, THUMB_BE_BREAKPOINT): Use illegal instruction
7457 instead of SWI 24.
7458 * config/arm/tm-arm.h (CALL_DUMMY): Ditto.
7459 (IN_SIGTRAMP): Define.
7460
74611999-03-02 Nick Clifton <nickc@cygnus.com>
7462
7463 * findvar.c (store_address): Delete incorrect big endian
7464 code.
7465
7466Tue Mar 2 18:02:42 1999 Andrew Cagney <cagney@chook>
7467
7468 * configure.in (gdb_cv_os_cygwin): Compat. Continue to reconize
7469 __CYGWIN32__.
7470
74711999-03-01 Jason Molenda (jsm@bugshack.cygnus.com)
7472
7473 * configure.in: Move setting of gdb_cv_os_cygwin to before
7474 setting of TERM_LIB. Check for __CYGWIN__ instead of __CYGWIN32__.
7475 * configure: Regenerated.
7476
74771999-03-01 DJ Delorie <dj@cygnus.com>
7478
7479 * configure.in: Change -cygwin32* to -cygwin*.
7480 * configure: Ditto.
7481
74821999-02-25 Stan Shebs <shebs@andros.cygnus.com>
7483
7484 * breakpoint.c (SOLIB_LOADED_LIBRARY_PATHNAME,
7485 SOLIB_UNLOADED_LIBRARY_PATHNAME, SOLIB_CREATE_CATCH_LOAD_HOOK,
7486 SOLIB_CREATE_CATCH_UNLOAD_HOOK): Supply default definitions.
7487 * infrun.c (SOLIB_IN_DYNAMIC_LINKER): Ditto.
7488
74891999-02-25 Keith Seitz <keiths@cygnus.com>
7490
7491 * corelow.c (core_close): Clear out solib state before
7492 closing the bfd associated with the core file.
7493 * solib.c (clear_solib): Mention that clear_solib requires
7494 an open BFD in order for disable_breakpoints_in_shlibs to
7495 determine whether breakpoints live in shared libraries.
7496
74971999-02-24 Jason Molenda (jsm@bugshack.cygnus.com)
c906108c
SS
7498
7499 * configure.in: Set CPU_HPPA_RISC_20 if the host CPU is a PA 2.0
7500 processor.
7501 * acconfig.h: Add CPU_HPPA_RISC_20
7502 * config.in, configure: Regenerated.
7503 * hppa-tdep.c (pa_register_look_aside): Only refer to new
7504 structure elements if we are on a PA2.0 system.
7505 * defs.h: Include limits.h.
7506
7a292a7a
SS
7507Tue Feb 23 14:37:08 1999 Michael Snyder <msnyder@cleaver.cygnus.com>
7508
7509 * infrun.c (wait_for_inferior): Check scheduler_locking state
7510 before resuming after a thread-specific breakpoint.
7511
75121999-02-23 Jim Blandy <jimb@zwingli.cygnus.com>
7513
7514 * aclocal.m4, config.in, configure: Regenerated with latest
7515 autotools.
7516
7517Mon Feb 22 12:32:19 1999 Per Bothner <bothner@cygnus.com>
7518
7519 * jv-valprint.c (java_val_print): Restore line that somehow got lost.
7520
7521 * jv-valprint.c (java_print_value_fields): Check for NULL type.
7522
75231999-02-21 Jim Blandy <jimb@zwingli.cygnus.com>
7524
7525 * tm-h8500.h, i386lynx-nat.c: Removed. These files are long
7526 dead; it seems that they only appeared due to some CVS weirdness.
7527 If they appear again, we may need to distribute garlic and holy
7528 water.
7529
75301999-02-19 Jason Molenda (jsm@bugshack.cygnus.com)
7531
7532 * configure.in (TERM_LIB): Move checking for TERM_LIB, substituting.
7533 * configure: Regenerated.
7534
75351999-02-19 Robert Hoehne (robert.hoehne@gmx.net)
7536
7537 * configure.host (i[3456]86-*-msdosdjgpp*): New host.
7538 * configure.tgt (i[3456]86-*-msdosdjgpp*): New target.
7539 * go32-nat.c: New file, native DJGPP support.
7540 * config/i386/go32.mh: Rewrite for DJGPP (go32) host.
7541 * config/i386/go32.mt: New file, DJGPP (go32) target.
7542 * config/i386/nm-go32.h: New file.
7543 * config/i386/tm-go32.h: New file.
7544 * config/i386/xm-go32.h: Rewritten for current DJGPP.
7545
75461999-02-18 Jason Molenda (jsm@bugshack.cygnus.com)
7547
7548 * reply_mig_hack.awk, config/nm-gnu.h, config/alpha/nm-linux.h
7549 config/alpha/xm-alphalinux.h, config/alpha/xm-alphaosf.h
7550 config/i386/nm-i386sco5.h, config/i386/tm-fbsd.h, config/i386/tm-i386.h
7551 config/powerpc/nm-aix.h, config/powerpc/tm-macos.h
7552 config/powerpc/tm-ppc-aix.h, config/powerpc/xm-aix.h
7553 config/rs6000/tm-rs6000-aix4.h, testsuite/gdb.chill/tests1.ch
7554 testsuite/gdb.chill/tests2.ch, testsuite/gdb.chill/tests2.exp:
7555 Update FSF address in copyright notices.
7556
75571999-02-18 Jason Molenda (jsm@bugshack.cygnus.com)
7558
7559 * configure.in: Quote "$GCC" correctly.
7560 * configure: Regenerated.
7561
75621999-02-18 Jim Blandy <jimb@zwingli.cygnus.com>
7563
7564 * dbxread.c (elfstab_build_psymtabs): Don't assume that there's a
7565 section named ".text", which has all the code in it. Instead, look
7566 at all the sections in the file with the `code' flag set.
7567 (find_text_range): New function, that does all the work.
7568
7569Thu Feb 18 17:50:45 1999 Andrew Cagney <cagney@b1.cygnus.com>
7570
7571 * mips-tdep.c (FP_REGISTER_DOUBLE): Conditionally define.
7572
7573Fri Jan 29 16:51:11 1999 Andrew Cagney <cagney@chook.cygnus.com>
7574
7575 * mips-tdep.c (return_value_location): New function. Merge/rewrite
7576 of return-value code in mips_extract_return_value,
7577 mips_store_return_value. Stop buffer overflow when 64 bit value
7578 in 32 bit registers. Extract 64bit float from 32 bit register
7579 pair of correct order.
7580 (mips_extract_return_value, mips_store_return_value): Call
7581 return_value_location. For store, ensure that remainder of
7582 register is zero.
c906108c 7583
c2d11a7d
JM
7584Thu Jan 28 18:58:02 1999 Andrew Cagney <cagney@chook.cygnus.com>
7585
7586 From John Metzler <jmetzler@cygnus.com>:
7587 * mips-tdep.c (struct gdbarch_tdep): Add mips_saved_regsize.
7588 (MIPS_SAVED_REGSIZE): Define.
7589 (mips_find_saved_regs, read_next_frame_reg, mips_pop_frame):
7590 Read/write MIPS_SAVED_REGSIZE bytes of register on stack instead
7591 of MIPS_REGSIZE.
7592 (mips_gdbarch_init): Initialize mips_saved_regsize.
7593
7594 * mips-tdep.c (mips_frame_saved_pc, mips16_heuristic_proc_desc,
7595 mips_push_arguments, mips_push_dummy_frame,
7596 mips_use_struct_convention): Ditto. For MIPS_SAVED_REGSIZE <
7597 REGISTER_RAW_SIZE, handle little/big endian issues from only using
7598 half the register.
7599 (STACK_ARGSIZE): Default to MIPS_SAVED_REGSIZE instead of
7600 MIPS_REGSIZE.
7601
7602 * mips-tdep.c (struct gdbarch_tdep, FP_REGISTER_DOUBLE,
7603 mips_gdbarch_init): Apply similar changes. Add
7604 mips_fp_register_double to struct.
7605
7a292a7a 7606Wed Feb 17 10:10:27 1999 Stu Grossman <grossman@babylon-5.cygnus.com>
c906108c
SS
7607
7608 * gdbtypes.h (get_discrete_bounds): Remove duplicate decl.
7609
7610 * jv-typeprint.c (java_type_print_base): Change fputs => fputs_filtered.
7611
7a292a7a 7612Mon Jan 25 18:30:57 1999 Per Bothner <bothner@cygnus.com>
c906108c
SS
7613
7614 * jv-lang.h (JAVA_OBJECT_SIZE): Change from hard-wired constant.
7615 (java_primitive_type_from_name, get_java_object_header_size): Declare.
7616 * jv-lang.c (java_class_from_object): Use get_java_object_type.
7617 * jv-lang.c: Update Class field names: dtable->vtable,
7618 msize->method_count, nfields->field_count, bfsize->size_in_bytes,
7619 nmethods->method_count.
7620 (type_from_class): Demangle array type names.
7621 (java_link_class_type): Array type names are now demangled.
7622 (get_java_object_type): If not defined yet, try looking it up.
7623 (get_java_object_header_size): New function.
7624 (java_primitive_type_from_name): New function.
7625 (java_demangled_signature_length, java_demangled_signature_copy): New.
7626 (java_demangle_type_signature): Re-implement using above functions.
7627 (evaluate_subexp_java): For UNOP_IND, call evaluate_subexp_java
7628 to evaluate subexp (not evaluate_subexp_standard).
7629 For BINOP_SUBSCRIPT update for new array type naming scheme.
7630 * jv-valprint.c (java_value_print): Use java_class_from_object.
7631 Update array printing to new array type naming convention.
7632 (java_val_print): Doing check_typedef when printing a pointer is
7633 is a waste of effort. Also, handle TYPE_CODE_INT, to make sure
7634 Java bytes as not printed as C chars.
7635
7a292a7a 7636Fri Jan 8 16:58:22 1999 Stu Grossman <grossman@babylon-5.cygnus.com>
c906108c
SS
7637
7638 * blockframe.c (find_pc_sect_partial_function): Search full symtabs as
7639 a last ditch effort (after the partial & minimal symtabs).
7640 * defs.h utils.c: Fixup prototypes for vprintf_filtered,
7641 vfprintf_filtered, vfprintf_unfiltered and vprintf_unfiltered to return
7642 ints to match their standard equivalents.
7643 * defs.h symtab.c top.c: Create skip_prologue_hook to allow Java to
7644 control the prologue skipping process.
7645 * jv-typeprint.c (java_type_print_base): Remove extern for
7646 jv_class_demangle, add new arg for objfile (NULL).
7647 * symtab.h: Remove struct sourcevector and struct source. Definately
7648 not needed.
7649 * values.c (value_virtual_fn_field): Fixes code to handle new vtable
7650 debug info format. Patch from marka.
7651
7a292a7a 7652Wed Dec 16 23:11:25 1998 Stu Grossman <grossman@fencer.cygnus.com>
c906108c
SS
7653
7654 * jv-lang.c (java_class_from_object java_class_is_primitive
7655 is_object_type): Change dtable to vtable.
7656 * (java_primitive_type): Change arg to type char.
7657 * (_initialize_java_language): Make java_char_type be unsigned.
7658 * jv-lang.h: Fixup prototypes.
7659
7a292a7a 7660Mon Dec 7 19:02:15 1998 Stu Grossman <grossman@babylon-5.cygnus.com>
c906108c
SS
7661
7662 * jv-valprint.c (java_value_print): Fix printing of values where
7663 run time type != compile time type.
7664
7a292a7a
SS
7665Fri Dec 4 15:23:38 1998 Stu Grossman <grossman@fencer.cygnus.com>
7666
c906108c
SS
7667 * Makefile.in: Whack out m2-typeprint.c.
7668 * c-typeprint.c (c_type_print_varspec_suffix) typeprint.h: Make this
7669 global. It's needed by Java.
7670 * (c_type_print_base): Whack prefix off of qualified method names
7671 (names with name spaces).
7672 * gdbtypes.h (struct cplus_struct_type): Add bits for Java attributes.
7673 Shrink voffset
7674 to 16 bits to compensate for added bits above (hopefully this is still
7675 enough).
7676 * Add new accessor macros (TYPE_FND_FIELD_PUBLIC, ...) for all new
7677 attribute bits.
7678 * jv-typeprint.c (java_type_print_base): Fix printing of method
7679 attributes. Handle JVM style manglings.
7680 * (java_print_type): Enable code type print varspec_suffix to allow
7681 array indices to print out.
7682 * jv-valprint.c (java_val_print): Minor formatting.
7683 * m2-lang.c (m2_language_d): Change m2_print_type to c_print_type.
7684 * stabsread.c (read_member_functions): Save public and static attributes.
7a292a7a
SS
7685
7686Wed Feb 17 15:32:57 1999 Elena Zannoni <ezannoni@kwikemart.cygnus.com>
c906108c 7687
c906108c
SS
7688 * breakpoint.c (watch_command_1): Reformat comment.
7689
c906108c
SS
7690 * c-typeprint.c (c_type_print_base): Reformat comments.
7691
7a292a7a
SS
76921999-02-17 Jim Blandy <jimb@zwingli.cygnus.com>
7693
7694 * Makefile.in (VERSION): Bump version to 4.17.2.
7695
7696Tue Feb 16 15:48:20 1999 Edith Epstein <eepstein@sophia.cygnus.com>
7697
c906108c
SS
7698 * config/pa/nm-hppah.h: Added prototype declarations for
7699 hppa_enable_page_protection_events and
7700 hppa_disable_page_protection_events.
7a292a7a 7701
c906108c
SS
7702 * inftarg.c (child_wait): Fixed code that checks whether
7703 or not the target program has done a fork/vfork.
7704 related_pid does not have a value unless the target
7705 program has forked/vforked.
7a292a7a
SS
7706
7707 * infttrace.c (hppa_insert_hw_watchpoint): Make sure that
7708 function always returns a value.
7709 (hppa_remove_hw_watchpoint): Make sure that function always
7710 returns a value.
c906108c 7711
7a292a7a 7712Tue Feb 16 06:31:58 1999 Keith Seitz <keiths@cygnus.com>
c906108c 7713
7a292a7a
SS
7714 * config/powerpc/tm-ppc-eabi.h: Do not define PC_IN_CALL_DUMMY,
7715 let the generic call dummy infrastructure do it.
c906108c
SS
7716
7717Sun Feb 14 18:21:08 1999 Mark Alexander <marka@cygnus.com>
7718
7719 * config/sh/tm-sh.h (BELIEVE_PCC_PROMOTION): Define, so that
7720 coffread.c will correctly handle char or short function parameters.
7721
77221999-02-11 Jason Molenda (jsm@bugshack.cygnus.com)
7723
7724 * configure, aclocal.m4: Regenerate with correct version of aclocal.
7725
77261999-02-10 Syd Polk <spolk@cygnus.com>
7727
7728 * acinclude.m4: Fix for new location of itclConfig.sh and itkConfig.sh.
7729 * aclocal.m4: Regnerate.
7730 * configure: Regenerate.
7731
77321999-02-10 Jason Molenda (jsm@bugshack.cygnus.com)
7733
7734 * demangle.c: Fix comments to mention "set demangle-style"
7735 instead of "set demangle".
7736 Run through indent to fix minor indenting problems.
7737
7738Wed Feb 10 17:53:09 1999 Bob Manson <manson@charmed.cygnus.com>
7739
7740 * i386-tdep.c (gdb_print_insn_i386): Add missing returns.
7741
7742Wed Feb 10 13:17:21 1999 Stan Shebs <shebs@andros.cygnus.com>
7743
7744 Declare Gould configuration obsolete:
7745 * configure.host, configure.tgt: Comment out Gould configs.
7746 * Makefile.in: Comment out Gould-related actions.
7747 * gould-xdep.c, gould-tdep.c, config/gould/*: Comment out.
7748 * NEWS: Mention obsolete status.
7749
77501999-02-09 DJ Delorie <dj@cygnus.com>
7751
7752 * sparcl-tdep.c: UDP download works in cygwin
7753
77541999-02-08 Jason Molenda (jsm@bugshack.cygnus.com)
7755
7756 * gnu-regex.c: Check ENABLE_NLS instead of HAVE_LIBINTL_H.
7757 * configure.in: Don't check for libintl.h.
7758 * configure, config.in: Regenerated.
7759
7760Mon Feb 8 18:10:50 1999 Stan Shebs <shebs@andros.cygnus.com>
7761
7762 * NEWS: Mention new X packet and PowerPC variant support.
7763
77641999-02-08 Nick Clifton <nickc@cygnus.com>
7765
7766 * configure.host: Add support for StrongARM host.
7767 * configure.tgt: Add support for StrongARM target.
7768
7769Mon Feb 8 12:05:05 1999 David Taylor <taylor@texas.cygnus.com>
7770
7771 * dsrec.c (make_srec): Cast targ_addr to int in call to sprintf
7772 otherwise on big endian machine with a bfd_vma of 64 bits,
7773 *everything* gets loaded at location 0.
7774
7775Mon Feb 7 10:05:43 1999 Frank Ch. Eigler <fche@cygnus.com>
7776
7777 * infrun.c (wait_for_inferior): Allow SIGTRAP to be "pass"ed
7778 to target program.
7779
7780Fri Feb 5 16:46:14 1999 Stan Shebs <shebs@andros.cygnus.com>
7781
7782 * NEWS: Add mentions of various new things.
7783
7784Thu Feb 4 00:19:14 1999 Christopher Faylor <cgf@cygnus.com>
7785
7786 * configure.in: Move termcap determination later in the
7787 file to catch setting of cygwin flag.
7788 * configure: Regenerate.
7789
7790Wed Feb 3 14:16:38 1999 Christopher Faylor <cgf@cygnus.com>
7791
7792 * config/i386/cygwin.mh: Move TERMCAP test code to configure.in.
7793 * configure.in: Treat libtermcap.a detection as a special case
7794 when hosting on cygwin.
7795 * configure: Regenerate.
7796
77971999-02-03 Keith Seitz <keiths@cygnus.com>
7798
7799 * remote.c (remote_binary_download, remote_binary_length): New
7800 static globals for dealing with binary transmissions.
7801 (remote_write_bytes): Add support for binary downloads
7802 by shadowing the "M" packet with a new "X" packet. This
7803 defaults to ON; if the stub does not understand this, it
7804 will fall back to using "M".
7805 (putpkt): Add support for binary downloading.
7806 * monitor.c (monitor_expect): The mon2000 monitor
7807 on the MSA2000 will also emit random DC1/DC3 chars.
7808 * m32r-stub.c: Change all char's to unsigned char's
7809 to support binary downloading.
7810 (handle_exception): Add support for binary downloading
7811 via a new "X" packet.
7812 (getpacket): Do NOT strip eighth bit of incoming chars.
7813 Watch out for escaped characters in the incoming stream.
7814 (putpacket): Do NOT strip eighth bit of incoming chars.
7815 (bin2mem): New function to write binary data directly to
7816 memory.
7817 * m32r-rom.c: Add new "mon2000" target.
7818
7819Tue Feb 2 18:40:29 1999 Elena Zannoni <ezannoni@kwikemart.cygnus.com>
7820
7821 * hp-psymtab-read.c (hpread_build_psymtabs): Coerce first arg
7822 passed to make_cleanup to the correct type.
7823 (hpread_quick_traverse): Change fifth arg to call to
7824 hpread_end_psymtab to be 0.
7825 Compare CURR_MODULE_END to 0 rather than NULL.
7826 Get rid of ifdef'ed out code.
7827 (scan_procs): Get rid of ifdef'ed out code.
7828
7829 * somread.c (som_symfile_read): Coerce first argument passed to
7830 make_cleanup to the correct type.
7831
7832Tue Feb 2 17:36:29 1999 Elena Zannoni <ezannoni@kwikemart.cygnus.com>
7833
7834 * hp-psymtab-read.c (do_pxdb): New function. Check whether the
7835 file needs to be processed by pxdb (an HP debug info massaging
7836 tool), if so call it.
7837 (hpread_build_psymtabs): Initialize scan_start to 0 and
7838 simplify flow of control.
7839
7840 * somread.c (som_symfile_read): Add call to do_pxdb (),
7841 in hp-psymtab-read.c.
7842
7843 * symfile.c (symbol_file_add): Remove ifdef'ed out HPUX specific
7844 code.
7845 (symfile_bfd_open): Remove HPUXHPPA ifdef'ed code. Code is now
7846 in hp-psymtab-read.c.
7847
78481999-02-02 Martin Hunt <hunt@cygnus.com>
7849
7850 * printcmd.c (print_scalar_formatted): Use strcat to concat all
7851 the output together before calling fprintf_filtered().
7852
78531999-02-01 Jason Molenda (jsm@bugshack.cygnus.com)
7854
7855 * configure.in: Require autoconf 2.13.
7856 (AM_EXEEXT): Replace with new AC_EXEEXT.
7857 * acinclude.m4: Move itcl header macros from aclocal.m4 to here.
7858 * aclocal.m4: Regenerated.
7859 * configure: Regenerated.
7860
78611999-02-01 Jim Blandy <jimb@zwingli.cygnus.com>
7862
7863 Allow PPC users to select which PPC/RS6000 variant they're
7864 debugging at run-time. At the moment, the only thing this affects
7865 is the set of registers visible.
7866 * config/rs6000/tm-rs6000.h (REGISTER_NAME): Define this as a call
7867 to the function rs6000_register_name.
7868 (rs6000_register_name): Include extern decl.
7869 (NUM_REGS): Bump to 183. What's the right way to do this?
7870 (FIRST_UISA_SP_REGNUM, LAST_UISA_SP_REGNUM): Renamed from
7871 FIRST_SP_REGNUM, LAST_SP_REGNUM.
7872 (REGISTER_BYTES): Recompute this.
7873 * rs6000-tdep.c: Renamed all uses of FIRST_SP_REGNUM and
7874 LAST_SP_REGNUM to FIRST_UISA_SP_REGNUM and LAST_UISA_SP_REGNUM, with
7875 some concomitant formatting changes.
7876 #include "gdbcmd.h", so we can define commands here.
7877 (struct variant): New structure.
7878 (COMMON_UISA_REG_NAMES, PPC_UISA_SPR_NAMES, PPC_SEGMENT_REG_NAMES,
7879 PPC_32_OEA_SPR_NAMES, num_registers): New macros.
7880 (register_names_rs6000, register_names_uisa, register_names_403,
7881 register_names_403GC, register_names_505, register_names_860,
7882 register_names_601, register_names_602, register_names_603,
7883 register_names_604, register_names_750, variants): New variables.
7884 (rs6000_register_name, install_variant, find_variant_by_name,
7885 install_variant_by_name, list_variants, show_current_variant,
7886 set_processor, show_processor): New functions.
7887 (_initialize_rs6000_tdep): Define new commands `set processor' and
7888 `show processor', and call install_variant_by_name to set the
7889 default variant.
7890 * rs6000-nat.c: Renamed all uses of FIRST_SP_REGNUM and
7891 LAST_SP_REGNUM to FIRST_UISA_SP_REGNUM and LAST_UISA_SP_REGNUM, with
7892 some concomitant formatting changes.
7893 * configure.in: Accept the `--with-cpu' flag, to specify a default
7894 processor variant.
7895 * acconfig.h: Provide a blurb for TARGET_CPU_DEFAULT, which is set
7896 by configure's `--with-cpu' flag.
7897 * config.in, configure: Regenerated.
7898
7899Sun Jan 31 15:24:24 1999 Stan Shebs <shebs@andros.cygnus.com>
7900
7901 * buildsym.h, buildsym.c: Convert to ANSI-only.
7902
7903 * buildsym.h, buildsym.c: Reformat to standard.
7904
7905 * buildsym.c (merge_symbol_lists): Remove unused variable.
7906 (_initialize_buildsym): Remove, does nothing.
7907
79081999-01-31 J.T. Conklin <jtc@redbacknetworks.com>
7909
7910 * i386-stub.c, m32r-stub.c, m68k-stub.c, sh-stub.c, sparc-stub.c,
7911 sparcl-stub, sparclet-stub.c: Change declaration of putDebugChar
7912 to include explicit void return type as per documentation. Fix up
7913 occasions where stubs erroneously checked return type.
7914
7915Sun Jan 31 13:18:33 1999 Stan Shebs <shebs@andros.cygnus.com>
7916
7917 From J.T. Conklin <jtc@redbacknetworks.com>:
7918 * remote.c (remote_query): Fix tipo.
7919
7920Fri Jan 29 15:25:09 1999 Stan Shebs <shebs@andros.cygnus.com>
7921
7922 * configure.tgt (v850): Add wildcard to match.
7923
7924Fri Jan 29 16:44:01 1999 Edith Epstein <eepstein@sophia.cygnus.com>
7925
7926 * inferior.h: Ran indent.
7927
7928 * fork-child.c: Ran indent.
7929
7930 * infrun.c : Ran indent.
7931
7932Fri Jan 29 12:57:34 1999 Elena Zannoni <ezannoni@kwikemart.cygnus.com>
7933
7934 * infrun.c (_initialize_infrun): Do not stop or print anything
7935 when a SIGWINCH is received.
7936
7937 * Makefile.in (m2-exp.tab.c): Use YACC not BISON.
7938 (f-exp.tab.c): Ditto.
7939 (jv-exp.tab.c): Ditto.
7940 (c-exp.tab.c): Ditto.
7941 (YACC): Define as @YACC@.
7942
79431999-01-29 Martin Hunt <hunt@cygnus.com>
7944
7945 Changes from Keith Seitz <keiths@cygnus.com>
7946 * valops.c (value_assign): Add calls to register_changed_hook and
7947 memory_changed_hook to inform UIs that the user has changed
7948 the target's registers/memory.
7949 * findvar.c (write_register_gen): Remove call to pc_changed_hook.
7950 * defs.h: Remove declaration for pc_changed_hook and
7951 add declarations for register_changed_hook and
7952 memory_changed_hook.
7953 * top.c: Ditto.
7954
79551999-01-29 Mark Alexander <marka@cygnus.com>
7956
7957 * procfs.c (wait_fd): Handle deleted threads correctly.
7958
79591999-01-28 Jason Molenda (jsm@bugshack.cygnus.com)
7960
7961 * utils.c (init_page_info): Force window size if running under emacs.
7962
79631999-01-27 James Ingham <jingham@cygnus.com>
7964
7965 * typeprint.c (whatis_exp): Remove static declaration.
7966
7967Wed Jan 27 16:50:25 1999 Elena Zannoni <ezannoni@kwikemart.cygnus.com>
7968
7969 * hp-psymtab-read.c: Reformat using indent.
7970
7971Wed Jan 27 13:20:25 1999 Elena Zannoni <ezannoni@kwikemart.cygnus.com>
7972
7973 * hp-psymtab-read.c: Reformat comments, update copyright.
7974
c2d11a7d
JM
7975Wed Jan 27 15:09:22 1999 Andrew Cagney <cagney@chook.cygnus.com>
7976
7977 * mips-tdep.c (mips_gdbarch_init): Trace e_flags from BFD
7978 elf_info.
7979
c906108c
SS
7980Tue Jan 26 16:02:47 1999 Mark Alexander <marka@cygnus.com>
7981
7982 * v850-tdep.c (v850_generic_reg_names, v850e_reg_names,
7983 v850_register_names, v850_processor_type_table): Declare tables
7984 and structures for handling differences in register names for
7985 v850 and v850e.
7986 (struct reg_list): Define new structure for creating tables
7987 of register bit masks in v850e instrutions.
7988 (handle_prepare, handle_pushm): New helpers for v850_scan_prologue.
7989 (v850_scan_prologue): Recognize v850e instructions: callt, prepare,
7990 and pushm.
7991 (v850_target_architecture_hook): New function to set register
7992 names based on current machine.
7993 (_initialize_v850_tdep): Set up target_architecture_hook.
7994 * config/v850/tm-v850.h (v850_register_names): Declare.
7995 (REGISTER_NAME): Define to refer to v850_register_names.
7996 (SR0_REGNUM, CTBP_REGNUM): Define.
7997 (PS_REGNUM): Redefine in terms of SR0_REGNUM.
7998
7999Tue Jan 26 18:27:26 1999 Elena Zannoni <ezannoni@kwikemart.cygnus.com>
8000
8001 * Makefile.in (c-exp.tab.c): Use BISON instead of YACC, to pick
8002 the correct value from configure output.
8003 (jv-exp.tab.c): Ditto.
8004 (f-exp.tab.c): Ditto.
8005 (m2-exp.tab.c): Ditto.
8006
80071999-01-26 Jason Molenda (jsm@bugshack.cygnus.com)
8008
8009 * breakpoint.h (ep_is_exception_catchpoint): Add prototype.
8010 * frame.h (select_and_print_frame): Add prototype.
8011 * stack.c (func_command): Call select_and_print_frame with correct
8012 number of arguments. Reformat whitespace.
8013
8014Tue Jan 26 16:53:54 1999 Fernando Nasser <fnasser@cygnus.com>
8015
8016 * remote.c (remote_query): fix maximum packet size to account for
8017 remote_debug use.
8018 (putpkt): add comment to alert about extra byte need.
8019
8020Mon Jan 25 19:55:30 1999 Mark Alexander <marka@cygnus.com>
8021
8022 * sh-tdep.c (sh_target_architecture_hook): Return immediately
8023 when a matching machine is found.
8024
8025Fri Jan 22 09:10:35 1999 Mark Alexander <marka@cygnus.com>
8026
8027 * remote-mips.c (mips_initialize): Fix parameters to clear_breakpoint.
8028 (common_breakpoint): Restore support for instruction breakpoints
8029 on non-LSI targets.
8030
8031Thu Jan 21 17:16:19 1999 Andrew Cagney <cagney@b1.cygnus.com>
8032
8033 * stack.c: Close open comment.
8034 * symtab.c (find_pc_sect_line): Ditto.
8035
8036Thu Jan 21 17:51:51 1999 Stan Shebs <shebs@andros.cygnus.com>
8037
8038 * procfs.c (init_procfs_ops): New function, fills in procfs_ops,
8039 init only nonzero fields, leave to_require_attach and
8040 to_require_detach empty, not needed for /proc systems yet.
8041 (_initialize_procfs): Call init_procfs_ops.
8042
8043 From J.T. Conklin <jtc@redbacknetworks.com>:
8044 * top.c (init_main): Fix tipo in description of the remotetimeout
8045 variable.
8046 * breakpoint.c (bpstat_stop_status): Handle systems where
8047 DECR_PC_AFTER_BREAK != DECR_PC_AFTER_HW_BREAK.
8048
8049Thu Jan 21 17:25:46 1999 Mark Alexander <marka@cygnus.com>
8050
8051 * mon960-rom.c (_initialize_mon960): Call init_mon960_cmds
8052 to fill in mon960_cmds structure properly.
8053
8054Wed Jan 20 17:53:22 1999 Stan Shebs <shebs@andros.cygnus.com>
8055
8056 * remote-sds.c (sds_ops): Define only once.
8057 (init_sds_ops, sds_command, _initialize_remote_sds): Declare.
8058 (init_sds_ops): Init only non-zero fields.
8059
8060Wed Jan 20 15:45:15 1999 Mark Alexander <marka@cygnus.com>
8061
8062 * h8300-tdep.c (original_register_names, h8300h_register_names,
8063 h8300_register_names): Define new variables.
8064 (set_register_names): New function to set register names based on
8065 current CPU type.
8066 (h8300_command, h8300h_command, h8300s_command): Call
8067 set_register_names.
8068 * config/h8300/tm-h8300.h (h8300_register_names): Declare.
8069 (REGISTER_NAME): Define to refer to h8300_register_names.
8070
80711999-01-19 Fernando Nasser <fnasser@totem.to.cygnus.com>
8072
8073 * sol-thread.c abug-rom.c cpu32bug-rom.c dbug-rom.c m32r-rom.c
8074 mac-nat.c mon960-rom.c op50-rom.c ppc-bdm.c remote-adapt.c
8075 remote-array.c remote-bug.c remote-e7000.c remote-eb.c remote-es.c
8076 remote-est.c remote-hms.c remote-mm.c remote-nindy.c remote-nrom.c
8077 remote-os9k.c remote-rdp.c remote-sds.c remote-sim.c remote-st.c
8078 remote-udi.c rom68k-rom.c sh3-rom.c sparcl-tdep.c sparclet-rom.c
8079 v850ice.c win32-nat.c: cosmetic changes to conform to coding
8080 standards.
8081
80821999-01-19 Jim Blandy <jimb@zwingli.cygnus.com>
8083
8084 Use aclocal to generate GDB's aclocal.m4 script.
8085 * acinclude.m4: New file, containing the hand-written local macro
8086 definitions that used to be in aclocal.m4. Don't sinclude
8087 ../bfd/aclocal.m4 any more; running aclocal in this directory will
8088 get us the definitions we need. HOWEVER: Do sinclude
8089 ../bfd/acinclude.m4, because we need the definition of
8090 BFD_NEED_DECLARATION.
8091 * aclocal.m4: Regenerated by aclocal.
8092 * configure: Regenerated by autoconf.
8093
8094Tue Jan 19 10:27:23 1999 David Taylor <taylor@texas.cygnus.com>
8095
8096 * breakpoint.c (disable_breakpoints_in_shlibs): new parameter,
8097 silent, controls whether to print message about removal of shared
8098 library breakpoints.
8099 * breakpoint.h (disable_breakpoints_in_shlibs): decl updated.
8100 * irix5-nat.c (clear_solib): call disable_breakpoints_in_shlibs.
8101 * osfsolib.c (clear_solib): ditto.
8102 * solib.c (clear_solib): ditto.
8103 * somsolib.c (som_solib_restart): update call to
8104 disable_breakpoints_in_shlibs.
8105
8106 * target.h (child_post_attach): only declare if CHILD_POST_ATTACH
8107 is define.
8108
8109Tue Jan 19 18:07:11 1999 Andrew Cagney <cagney@b1.cygnus.com>
8110
8111 * corelow.c (solib_add_stub): Ditto.
8112 (core_file_to_sym_file): Cast make_cleanup parameter.
8113
8114 * solib.c (symbol_add_stub, solib_map_sections): Change argument
8115 to PTR insted of a char*. Matches catch_errors interface.
8116
8117Mon Jan 18 14:01:24 1999 Andrew Cagney <cagney@b1.cygnus.com>
8118
8119 * remote-array.c (array_open): Don't use fprintf_filtered to send
8120 data to the log file.
8121
8122 * remote-array.c (handle_load_dll): Change argument type to PTR so
8123 that it is compatible with catch_errors.
8124 * ocd.c (ocd_start_remote): Ditto.
8125 * remote-sds.c (sds_start_remote): Ditto.
8126
8127 * win32-nat.c (win32_child_thread_alive): Namespace proof
8128 child_thread_alive.
8129 (init_child_ops): Update.
8130
8131Mon Jan 18 12:03:47 1999 Andrew Cagney <cagney@b1.cygnus.com>
8132
8133 * remote-rdi.c (arm_rdi_open): Set gdb_hostif.hostosarg and
8134 gdb_hostif.dbgarg to NULL instead of stdout.
8135 (voiddummy, myprint, mywritec): Use gdb_stdout instead of stdout.
8136
8137Mon Jan 18 16:40:50 1999 Stan Shebs <shebs@andros.cygnus.com>
8138
8139 * ser-ocd.c (ocd_open): Handle Unix case gracefully.
8140
8141 * target.c (dummy_target): Don't initialize statically.
8142 (init_dummy_target): New function, fills in dummy_target.
8143 (initialize_targets): Use it.
8144 * hpux-thread.c (hpux_thread_ops): Don't initialize statically.
8145 (init_hpux_thread_ops): New function, fills in hpux_thread_ops.
8146 (_initialize_hpux_thread): Use it.
8147 * m3-nat.c (m3_ops): Don't initialize statically.
8148 (init_m3_ops): New function, fills in m3_ops.
8149 (_initialize_m3): Use it.
8150
81511999-01-18 Fernando Nasser <fnasser@totem.to.cygnus.com>
8152
8153 * sol-thread.c: delete compile time initialization of target_ops
8154 (_initialize_sol_thread): initialize target_ops at run time.
8155 * hpux-thread.c: added target_ops entry.
8156 * m3-nat.c: ditto.
8157
8158Mon Jan 18 15:19:13 1999 David Taylor <taylor@texas.cygnus.com>
8159
8160 * procfs.c (procfs_ops): delete compile time initialization.
8161 (_initialize_procfs): initialize procfs_ops at run time.
8162
8163Mon Jan 18 12:51:44 1999 Christopher Faylor <cgf@cygnus.com>
8164
8165 * configure.in: Ensure that -luser32 is always linked in
8166 for cygwin build.
8167 * configure: Regenerated.
8168
8169Mon Jan 18 08:38:05 1999 Mark Alexander <marka@cygnus.com>
8170
8171 * values.c (value_virtual_fn_field): Clear the pointed-to
8172 offset when casting to the base class.
8173
8174Mon Jan 18 10:30:51 1999 David Taylor <taylor@texas.cygnus.com>
8175
8176 * remote-udi.c (init_udi_ops): change non-existant udi_run_ops to
8177 udi_ops; delete NULL initializers.
8178
8179Mon Jan 18 12:03:47 1999 Andrew Cagney <cagney@b1.cygnus.com>
8180
8181 * serial.c (serial_close): gdb_fclose tages gdb_file** arg, not
8182 gdb_file*.
8183
8184 * f-valprint.c, target.c, gdbarch.c: Pass gdb_stderr not stderr.
8185
8186Mon Jan 18 10:46:12 1999 Andrew Cagney <cagney@b1.cygnus.com>
8187
8188 * stack.c (print_frame_info_base): Don't cast call to
8189 catch_errors.
8190 (print_args_stub): Change char* arg to PTR.
8191 * symmisc.c (print_symbol): Ditto.
8192 * top.c (quit_cover): Ditto.
8193 * remote.c (remote_open_1, remote_start_remote): Ditto.
8194 * infrun.c (normal_stop, hook_stop_stub, restore_selected_frame):
8195 Ditto.
8196
8197 * stack.c (backtrace_command): Cast first arg of make_cleanup to
8198 make_cleanup_func.
8199 * remote.c (remote_kill): Cast putpkt arg to catch_errors_ftype.
8200
8201Mon Jan 18 08:47:02 1999 Andrew Cagney <cagney@b1.cygnus.com>
8202
8203 * defs.h (catch_errors_ftype): Define.
8204 (catch_errors): Replace char* arg with PTR arg.
8205 * top.c (catch_errors): Update
8206
8207 * breakpoint.c (bpstat_stop_status, bpstat_stop_status,
8208 delete_breakpoint, breakpoint_re_set): Delete all casts in call to
8209 catch_errors.
8210 (breakpoint_cond_eval, watchpoint_check,
8211 cover_target_enable_exception_callback, breakpoint_re_set_one):
8212 Arg is PTR not char*.
8213
8214 * breakpoint.c (cover_target_enable_exception_callback): Change
8215 type to int. Check for cast values of 0 and -1. Return a result!
8216 (insert_breakpoints): Move declaration of SAL and ARGS to where
8217 they are used.
8218
82191999-01-16 Fernando Nasser <fnasser@totem.to.cygnus.com>
8220
8221 * remote.c (remote_query): new function - creates proper interface
8222 to the remote protocol "q" command.
8223
8224Fri Jan 15 17:11:48 EST 1999 Zdenek Radouch (radouch@cygnus.com)
8225
8226 * config/fr30/tm-fr30.h: Changed ABI to match GCC change
8227 (always use pointer for structs passed by value).
8228
82291999-01-15 Fernando Nasser <fnasser@totem.to.cygnus.com>
8230
8231 * target.h: added entry for target queries (to_query)
8232 target.c: ditto.
8233
8234Thu Jan 14 18:29:17 1999 David Taylor <taylor@texas.cygnus.com>
8235
c2d11a7d
JM
8236 * mips-tdep.c (mips_gdbarch_init): fix stream arg in
8237 fprintf_unfiltered calls.
c906108c
SS
8238 * remote-mm.c (mm_wait): fix stream arg to gdb_flush.
8239 * remote-udi.c (udi_wait): fix stream arg to fwrite.
8240 * symmisc.c (maintenance_check_symtabs): fix stream argument to
8241 print_address_numeric.
8242
8243Wed Jan 13 19:33:16 1999 David Taylor <taylor@texas.cygnus.com>
8244
8245 * breakpoint.c (insert_breakpoints): insert cast to eliminate
8246 warning.
8247
8248Wed Jan 13 14:59:02 1999 Michael Snyder <msnyder@cleaver.cygnus.com>
8249
8250 * infrun.c (set/show scheduler-locking) New command. Set a
8251 mode bit that will control how GDB attempts to control thread
8252 scheduling for step, continue, etc. (resume): make use of
8253 the schedule-locking mode.
8254 * target.h (struct target_ops): new field to_has_thread_control.
8255 * sol-thread.c: initialize target_ops to_has_thread_control.
8256 * procfs.c: ditto.
8257 * target.c: ditto.
8258 * m3-nat.c: ditto.
8259 * remote.c: ditto.
8260 * hpux-thread.c: ditto.
8261 * thread.c: cull duplicate prototypes. Move prototypes to top.
8262 * serial.c: indentation cleanup.
8263 * breakpoint.c: add casts to eliminate compiler warnings.
8264
8265Tue Jan 12 17:00:00 1999 Edith Epstein <eepstein@sophia.cygnus.com>
8266
8267 * inftarg.c (child_create_inferior): fixed HPUXHPPA specific
8268 call to fork_inferior. The shell param is now NULL.
8269
82701999-01-12 Jason Molenda (jsm@bugshack.cygnus.com)
8271
8272 * monitor.c (init_base_monitor_ops): Whitespace cleanup.
8273 (_initialize_remote_monitors): Same.
8274
82751999-01-12 Jason Molenda (jsm@bugshack.cygnus.com)
8276
8277 * monitor.c (init_monitor_ops): Initialize the monitor_ops
8278 structure if it hasn't already been done.
8279
8280Tue Jan 12 14:50:10 1999 Stan Shebs <shebs@andros.cygnus.com>
8281
8282 * inftarg.c (child_ops): Don't initialize statically.
8283 (init_child_ops): New function, fills in child_ops.
8284 (_initialize_inftarg): Use it.
8285 (child_post_attach): Declare extern.
8286 (child_wait): Fix ambiguous parens.
8287 (child_attach_to_process): Remove unused local wstatus.
8288 (child_insert_fork_catchpoint, child_remove_fork_catchpoint,
8289 child_insert_vfork_catchpoint, child_remove_vfork_catchpoint,
8290 child_has_forked, child_insert_exec_catchpoint,
8291 child_remove_exec_catchpoint): Return a value.
8292
8293Mon Jan 11 16:43:44 1999 Michael Snyder <msnyder@cleaver.cygnus.com>
8294
8295 * remote.c (remote_wait): Add inferior_pid to thread list only
8296 if it is not already there.
8297
82981999-01-11 Jason Molenda (jsm@bugshack.cygnus.com)
8299
8300 * scm-tags.h: Update FSF's address on copyright notice.
8301 * ser-e7kpc.c: Same.
8302 * gnu-nat.h: Same.
8303
8304Mon Jan 11 13:45:57 1999 Stu Grossman <grossman@babylon-5.cygnus.com>
8305
8306 * dwarf2read.c (dump_die): Change stderr to gdb_stderr.
8307 * expprint.c (print_subexp): fprintf => fprintf_unfiltered.
8308 * jv-typeprint.c (java_type_print_base): fputs => fputs_filtered.
8309 * stack.c (struct function_bounds): Remove superfluous `typedef'.
8310 * symfile.c (list_overlays_command): stdout => gdb_stdout.
8311 * symmisc.c (maintenance_check_symtabs): stdout => gdb_stdout.
8312 * utils.c (print_spaces): Make more efficient.
8313
8314Mon Jan 11 13:55:51 1999 David Taylor <taylor@texas.cygnus.com>
8315
8316 * utils (print_spaces): fix arg to strcat; fix formatting.
8317
8318Fri Jan 8 11:57:24 1999 Stan Shebs <shebs@andros.cygnus.com>
8319
8320 * exec.c (exec_ops): Don't initialize statically.
8321 (init_exec_ops): New function, fills in exec_ops.
8322 (_initialize_exec): Use it.
8323
8324Thu Jan 7 17:50:15 EST 1999 Zdenek Radouch (radouch@cygnus.com)
8325
8326 Beta FR30 port.
8327 * fr30-tdep.c
8328 * config/fr30/tm-fr30.h
8329
8330Wed Jan 6 12:28:35 1999 David Taylor <taylor@texas.cygnus.com>
8331
8332 * configure.in: Add an --enable-tui argument. Construct
8333 tui/Makefile from tui/Makefile.in. Use AM_PROG_CC_STDC. If we
8334 have the GUI, then we need this to process libgui.h.
8335 (ENABLE_CFLAGS): define and export BUILD_TUI.
8336 (AC_CHECK_HEADERS): Add check for term.h.
8337
8338 * configure.host (hppa-*-hpux10.20, hppa-*-hpux11.0*): New configs.
8339
8340 * config.in, configure : regenerated.
8341
8342 * Makefile.in: Allow the TUI code to be conditionally enabled.
8343 (TUI_LIBRARY): New variable, value are set by the configuration
8344 script. Set to the empty string when the TUI isn't enabled.
8345 (gdb$(GDBEXT)): Use those, instead of referring to all-tui and
8346 tui/libtui.a directly.
8347 (BUILD_TUI): build the tui -- only when configured with
8348 --enable-tui.
8349 (YLWRAP): use ylwrap to avoid problems on systems w/o bison.
8350 (gdb$(EXEEXT)): make it dependent on BUILD_TUI.
8351 (all-tui): remove dependency from phony target.
8352 (c-exp.tab.c): use ylwrap instead of bison.
8353 (jv-exp.tab.c): ditto.
8354 (f-exp.tab.c): ditto.
8355 (m2-exp.tab.c): ditto.
8356 (ALLDEPFILES): add somread.c, hp-psymtab-read.c, hp-symtab-read.c.
8357 (SFILES): remove the above files
8358 (COMMON_OBS): remove somread.o
8359 (SFILES): Add the tui files to this, so they get included in etags
8360 tables.
8361 (gdb$(EXEEXT)): Add all-tui to the list of dependencies, and add
8362 tui/libtui.a to the link list.
8363 (all-tui): New rule, which does a recursive make in the tui
8364 subdir.
8365 (tui/libtui.a): When recursing, pass down ${FLAGS_TO_PASS}. And
8366 don't echo the make command. This is closer to what the other
8367 recursions do.
8368 (HFILES_NO_SRCDIR): add hpread.h
8369 (COMMON_OBS): add hp-psymtab-read.o, hp-symtab-read.o
8370 (SFILES): add hp-psymtab-read.c, hp-symtab-read.c add rules for
8371 the new files. Remove hpread.c, hpread.o
8372 (gdb$(EXEEXT)): Depend on the actual tui library, not on a
8373 fictitious target. Since the fictitious target never existed,
8374 make would always relink.
8375 (tui/libtui.a): Always recurse to make sure the library is up to
8376 date.
8377
8378Wed Jan 6 12:05:12 1999 Stan Shebs <shebs@andros.cygnus.com>
8379
8380 * remote.c: Pacify --enable-build-warnings, reformat code
8381 to conform to standards, fix spelling errors.
8382 (ishex, stubhex, record_currthread, etc): Declare.
8383 (ishex, stubhex): Declare char arg as int.
8384 (pack_string): Comment out, never used but possibly useful.
8385 (threadref_to_int, remote_get_threadinfo, etc): Make static.
8386
8387Wed Jan 6 11:43:32 1999 David Taylor <taylor@texas.cygnus.com>
8388
8389 The following changes were made by Elena Zannoni
8390 <ezannoni@cygnus.com> and Edith Epstein <eepstein@cygnus.com> as
8391 part of a project to merge in changes made by HP.
8392
8393 * c-exp.y: use external flag hp_som_som_object_present to decide
8394 whether code was compiled by HP's compilers. Add two new C++
8395 tokens for true and false.
8396 (yylex): check for template name is done differently for the
8397 HP/aCC compiler case. Change some of the template processing code
8398 for handling HP aCC templates. Handle true and false tokens.
8399
8400Tue Jan 5 11:13:36 1999 Michael Snyder <msnyder@cleaver.cygnus.com>
8401
8402 * remote.c (record_curthread): Must not modify inferior_pid when
8403 called from wait_for_inferior. Instead, if a new thread-id is
8404 detected, call add_thread.
8405 (MAGIC_NULL_PID): new macro, use instead of the magic number
8406 "42000".
8407 (remote_find_new_threads): if inferior_pid is unknown, get and use
8408 the current thread id.
8409 (remote_start_remote): on connecting, attempt to get the current
8410 thread id for inferior_pid.
8411 (remote_resume): If pid == -1, then resume any-thread (not the
8412 current thread specifically). Also some cosmetic fixups.
8413
8414 * thread.c (info_threads_command): don't initialize current_pid
8415 until after call to FIND_NEW_THREADS (which may change inferior_pid).
8416 Also some cosmetic fixups.
8417 * infrun.c: cosmetic fixups and casts to avoid warnings.
8418 * infcmd.c: cosmetic fixups, mainly long lines.
8419
8420Tue Jan 5 11:55:57 1999 David Taylor <taylor@texas.cygnus.com>
8421
8422 * target.c (noprocess): terminate sentence with a period.
8423 * breakpoint.c (catch_command_1): ditto.
8424
8425 * c-valprint.c (c_value_print): remove hack^2 from HP; it causes
8426 testsuite losses with no real gain.
8427
8428 * inferior.h (START_INFERIOR_TRAPS_EXPECTED): restore, but only
8429 if tm-*.h hasn't overridden default value.
8430
84311999-01-04 Jason Molenda (jsm@bugshack.cygnus.com)
8432
8433 * configure.in: Fix whitespace indentation for --help.
8434 * configure: Regenerated.
8435
84361999-01-04 Manuel Bouyer <bouyer@antioche.lip6.fr>
8437
8438 * main.c: Add --write command line option, document -w.
8439 * gdb.1: Document --write.
8440
84411999-01-04 Jason Molenda (jsm@bugshack.cygnus.com)
8442
8443 * configure.in: Require autoconf 2.12.1 or higher.
8444 * doc/configure.in: Ditto.
8445 * nlm/configure.in: Ditto.
8446 * rdi-share/configure.in: Ditto.
8447 * testsuite/configure.in: Ditto.
8448 * doc/Makefile.in: Don't hardcode $(SHELL).
8449 * nlm/Makefile.in: Ditto.
8450 * rdi-share/Makefile.in: Ditto.
8451 * testsuite/Makefile.in: Ditto.
8452
8453Mon Jan 4 12:53:03 1999 Stan Shebs <shebs@andros.cygnus.com>
8454
8455 * remote-vx.c (init_vx_ops, init_vx_run_ops): Remove unneeded
8456 inits of new fields, including ref to bogus field.
8457 (vx_ops, vx_run_ops): Make static.
8458
8459Mon Jan 4 15:05:29 1999 David Taylor <taylor@texas.cygnus.com>
8460
8461 * inferior.h (START_INFERIOR_TRAPS_EXPECTED): delete,
8462 already defined in tm.h.
8463
8464 * inftarg.c: change <sys/unistd.h> to <unistd.h> and
8465 conditionalize its inclusion.
8466 * infttrace.c: ditto.
8467
8468For older changes see ChangeLog-98
8469\f
8470Local Variables:
8471mode: change-log
8472left-margin: 8
8473fill-column: 74
8474version-control: never
8475End:
This page took 0.38932 seconds and 4 git commands to generate.