]> git.ipfire.org Git - thirdparty/binutils-gdb.git/blob - gdb/ChangeLog
import gdb-1999-06-07 snapshot
[thirdparty/binutils-gdb.git] / gdb / ChangeLog
1 1999-06-07 Keith Seitz <keiths@cygnus.com>
2
3 * v850ice.c (init_hidden_window): Do not rely on the existence of
4 a gui for window creation. Return boolean status.
5 (v850ice_open): Use boolean status of init_hidden_window.
6 Allow any ICE execution command to run under CLI. Maybe one
7 day gdb will use a real event loop and allow this code to run.
8 * configure.tgt: Configure the v850 ice for all cygwin-hosted
9 toolchains.
10
11 Mon Jun 7 23:37:26 1999 Andrew Cagney <cagney@amy.cygnus.com>
12
13 * config/mips/tm-mips.h (EXTRA_FRAME_INFO): Delete.
14 * mips-tdep.c (mips_init_extra_frame_info): Allocate saved_regs.
15 (temp_saved_regs): Replace struct with a simple pointer.
16 (set_reg_offset, mips32_heuristic_proc_desc, heuristic_proc_desc,
17 mips_init_extra_frame_info): Update.
18
19 Mon Jun 7 21:40:12 1999 Andrew Cagney <cagney@amy.cygnus.com>
20
21 * config/mips/tm-mips.h (EXTRA_FRAME_INFO): Move elements from here.
22 * mips-tdep.c (struct frame_extra_info): To here.
23
24 * mips-tdep.c (mips_print_extra_frame_info, mips_find_saved_regs,
25 mips_init_extra_frame_info, mips_pop_frame): Update
26 (mips_init_extra_frame_info): Allocate space for the extra info.
27
28 Mon Jun 7 21:08:50 1999 Andrew Cagney <cagney@amy.cygnus.com>
29
30 * config/mips/tm-mips.h (mips_init_extra_frame_info), mips-tdep.c:
31 Rename init_extra_frame_info. Add argument ``fromleaf''.
32
33 * config/mips/tm-mips.h (mips_print_extra_frame_info),
34 mips-tdep.c: New function.
35 (PRINT_EXTRA_FRAME_INFO): Update definition.
36
37 Mon Jun 7 20:11:07 1999 Andrew Cagney <cagney@amy.cygnus.com>
38
39 * config/mips/tm-mips.h, config/mips/tm-irix3.h,
40 config/mips/tm-tx19.h, config/mips/tm-tx19l.h,
41 config/mips/tm-tx39.h, config/mips/tm-tx39l.h: Rename macro
42 REGISTER_NAMES to MIPS_REGISTER_NAMES.
43
44 * config/mips/tm-mips.h (REGISTER_NAME): Define.
45 * mips-tdep.c (mips_processor_reg_names): New static variable.
46 (mips_register_name): New function.
47 (mips_set_processor_type): Update mips_processor_reg_names.
48 (mips_generic_reg_names): Initialize using MIPS_REGISTER_NAMES.
49
50 Sun Jun 6 11:09:19 1999 Andrew Cagney <cagney@b1.cygnus.com>
51
52 * remote.c (PBUFSIZ): Re-define so that value is computed at
53 run-time.
54 (MAXBUFBYTES): Re-define as a macro function.
55
56 1999-06-05 Fernando Nasser <fnasser@totem.to.cygnus.com>
57
58 * symtab.c (decode_line_1): Accept filenames with spaces in
59 'linespecs' when enclosed in double quotation marks and handle
60 drive specification is DOS format (D:).
61
62 1999-06-04 Jim Blandy <jimb@zwingli.cygnus.com>
63
64 * parse.c: Don't include <ctype.h> twice.
65
66 1999-06-04 David Taylor <taylor@louisiana.cygnus.com>
67
68 Sat May 15 12:16:09 1999 Per Bothner <bothner@deneb.cygnus.com>
69
70 * eval.c (evaluate_subexp_standard): Remove Gilmore rant.
71 (Of course C has "expected types", at least if you allow
72 brace-initializer expressions - as in Gcc.)
73 Remove NULLing out expect_type. Do pass NULL_TYPE in place
74 the incoming expect_type where appropriate.
75
76 Fri Jun 4 10:56:23 1999 Jeffrey A Law (law@cygnus.com)
77
78 * hppa-tdep.c (hppa_fix_call_dummy): Make it work for GCC compiled
79 executables without end.o. Clean up lots of mis-guided comments.
80
81 Fri Jun 4 17:10:36 1999 Andrew Cagney <cagney@b1.cygnus.com>
82
83 * parser-defs.h (std_regs): Replace array with pointer.
84 * parse.c (build_parse): Build the std_regs table according to the
85 standard registers available.
86
87 1999-06-03 Michael Snyder <msnyder@cleaver.cygnus.com>
88
89 * thread.c: eliminate the target_thread_vector (functionality
90 moved into the standard target vector).
91 * gdbthread.h: eliminate target_thread_vector. Move all related
92 defines into remote.c, since they are no longer shared with thread.c.
93 * remote.c: eliminate the target_thread_vector.
94 (remote_find_new_threads): change return type to void, consistent
95 with the target vector table. (cont_thread): rename continue_thread.
96 (record_currthread): remove dead code. (remote_thread_alive):
97 clean up and simplify. (threadref etc.): move definitions to here
98 from gdbthread.h.
99
100 1999-06-02 Jason Molenda (jsm@bugshack.cygnus.com)
101
102 * inftarg.c (child_create_inferior): Remove dead HPUX specific code
103 which tries to find csh.
104 * fork-child.c: Remove DEBUGGING predefine and conditionalized
105 printfs.
106 (fork_inferior): Remove dead HPUX specific code which assumes shell
107 is csh.
108
109 * hppa-tdep.c: Remove DEBUGGING and #if 0 debugging printfs.
110 * parse.c: Ditto.
111 * somread.c: Ditto.
112
113 Thu Jun 3 10:12:38 1999 Andrew Cagney <cagney@b1.cygnus.com>
114
115 * d10v-tdep.c (do_d10v_pop_frame): Rename d10v_pop_frame. Make
116 static.
117 * d10v-tdep.c (d10v_pop_frame), config/d10v/tm-d10v.h: New
118 function. Call generic_pop_current_frame.
119 * config/d10v/tm-d10v.h (POP_FRAME): Update.
120 * gdbarch.h, gdbarch.c (frame_num_args_unknown): New function.
121 * config/d10v/tm-d10v.h (DMEM_START, IMEM_START, STACK_START,
122 ARG1_REGNUM, ARGN_REGNUM, RET1_REGNUM): Move definitions from
123 here.
124 * d10v-tdep.c: To here.
125 * config/d10v/tm-d10v.h (struct type): Move declaration from here.
126 * gdbarch.h: To here.
127 * config/d10v/tm-d10v.h (struct frame_info, struct
128 frame_saved_regs, struct type): Delete declarations.
129
130 1999-06-02 Robert Hoehne <robert.hoehne@gmx.net>
131
132 * go32-nat.c: go32_terminal_init, go32_terminal_inferior and
133 go32_terminal_ours are new functions to save/restore the inferior`s
134 stdin/stdout filemodes
135
136 1999-06-02 Stan Shebs <shebs@andros.cygnus.com>
137
138 * MAINTAINERS: Add Mark Kettenis, Jeff Law, and Philippe De Muyter
139 as maintainers for Hurd, HP/UX, and COFF, respectively.
140
141 1999-06-02 Mark Kettenis <kettenis@gnu.org>
142
143 * gnu-nat.c (inf_continue): New function.
144 (struct inf): Use `unsigned int' instead of `int' for bit-fields.
145 Add new bit-field named `nomsg'.
146 (inf_validate_procinfo): Renamed from inf_validate_stopped, all
147 callers changed. Also update the `nomsg' and `traced' fields of
148 INF.
149 (make_inf): Initialize INF->nomsg.
150 (inf_cleanup): Reset INF->nomsg.
151 (inf_detach): Call `inf_validate_procinfo'. Call `inf_continue'
152 instead of `inf_signal' if the inferior does not have a message
153 port.
154 (gnu_resume): Likewise.
155 (gnu_create_inferior): Reset INF->nomsg in `attach_to_child'.
156 Call `inf_validate_procinfo' after returning from `fork_inferior'.
157 (gnu_attach): Update signal thread and tracing state.
158
159 * config/i386/tm-i386gnu.h: Include "i386/tm-i386.h" instead of
160 "i386/tm-i386v.h".
161 (STACK_END_ADDR): Remove.
162 (SIGCONTEXT_PC_OFFSET): New define.
163 Include "tm-sysv4.h".
164
165 1999-06-02 J.T. Conklin <jtc@redback.com>
166
167 * config/tm-vxworks.h: New file, header for definitions common to
168 all vxWorks targets.
169 * config/a29k/tm-vx29k.h, config/i960/tm-vx960.h,
170 config/m68k/tm-vx68.h, config/mips/tm-vxmips.h,
171 config/sparc/tm-vxsparc.h: Include tm-vxworks.h.
172
173 Wed Jun 2 17:37:03 1999 Jeffrey A Law (law@cygnus.com)
174
175 * config/pa/tm-hppa.h (IMPORT_SHLIB): New unwind stub type.
176
177 1999-06-02 Christopher Faylor <cgf@cygnus.com>
178
179 * configure.tgt: Alphabetically reorder some targets.
180
181 1999-06-02 Keith Seitz <keiths@cygnus.com>
182
183 * v850ice.c (v850ice_xfer_memory): Insert lost "break".
184
185 1999-06-02 Jim Blandy <jimb@zwingli.cygnus.com>
186
187 * rs6000-tdep.c (variants): Fix description of 750 register set.
188 (Thanks to J. T. Conklin.)
189
190 Wed Jun 2 16:10:08 1999 Andrew Cagney <cagney@b1.cygnus.com>
191
192 * config/d10v/tm-d10v.h (FRAME_INIT_SAVED_REGS): Replace
193 FRAME_FIND_SAVED_REGS.
194 (d10v_frame_init_saved_regs): Replace d10v_frame_find_saved_regs.
195 * d10v-tdep.c (d10v_pop_frame, d10v_frame_chain,
196 d10v_frame_init_saved_regs): Update.
197
198 * config/d10v/tm-d10v.h (EXTRA_FRAME_INFO): Delete.
199 * d10v-tdep.c (struct frame_extra_info): Define.
200 (d10v_init_extra_frame_info, d10v_pop_frame, d10v_frame_chain,
201 d10v_frame_find_saved_regs): Update.
202
203 Tue Jun 1 13:36:31 1999 Philippe De Muyter <phdm@macqel.be>
204
205 * config/m68k/tm-delta68.h (FRAME_NUM_ARGS): Macro prototype fixed.
206 * config/m68k/tm-news.h, config/ns32k/tm-merlin.h: Ditto.
207 * config/ns32k/tm-umax.h (FRAME_NUM_ARGS): Old macro definition
208 removed; new macro prototype fixed.
209
210 Wed Jun 2 11:18:37 1999 Andrew Cagney <cagney@b1.cygnus.com>
211
212 * defs.h (REGISTER_NAME): Move compatibility definition from here.
213 * gdbarch.h: To here.
214
215 * frame.h, blockframe.c (generic_fix_call_dummy): New
216 stub function.
217
218 Tue Jun 1 18:47:54 1999 Andrew Cagney <cagney@b1.cygnus.com>
219
220 * parse.c (build_parse): New function. Initialize
221 msym_text_symbol_type, msym_data_symbol_type and
222 msym_unknown_symbol_type.
223 (_initialize_parse): Call build_parse.
224
225 Tue Jun 1 10:45:24 1999 Andrew Cagney <cagney@b1.cygnus.com>
226
227 * config/d10v/tm-d10v.h (REGISTER_CONVERTIBLE,
228 REGISTER_CONVERT_TO_RAW, REGISTER_CONVERT_TO_VIRTUAL): Convert
229 macros into functions.
230 * config/d10v/tm-d10v.h, d10v-tdep.c (d10v_register_convertable,
231 d10v_register_convert_to_virtual, d10v_register_convert_to_raw):
232 The new functions.
233
234 1999-05-31 Fernando Nasser <fnasser@totem.to.cygnus.com>
235
236 * stack.c (print_args_stub): Add missing stream parameter.
237
238 Mon May 31 15:50:08 1999 Andrew Cagney <cagney@b1.cygnus.com>
239
240 Fri May 28 16:51:00 1999 Martin Dorey <martin.dorey@madge.com>:
241 * valops.c, value.h (default_push_arguments): Fix order of
242 parameters to match PUSH_ARGUMENTS arguments.
243
244 Thu May 27 11:42:55 1999 Andrew Cagney <cagney@b1.cygnus.com>
245
246 * gdbarch.h (EXTRACT_STRUCT_VALUE_ADDRESS): Return 0.
247
248 * valops.c (value_assign): Delete redundant test of
249 REGISTER_CONVERTIBLE.
250
251 Thu May 27 11:33:57 1999 Andrew Cagney <cagney@b1.cygnus.com>
252
253 * config/w65/tm-w65.h, config/tic80/tm-tic80.h, config/sh/tm-sh.h,
254 config/i386/tm-i386m3.h, config/i386/tm-go32.h,
255 config/i386/tm-cygwin.h, config/h8500/tm-h8500.h,
256 config/d30v/tm-d30v.h, config/d10v/tm-d10v.h: Delete definition of
257 macro NAMES_HAVE_UNDERSCORE.
258
259 Thu May 27 09:31:06 1999 Andrew Cagney <cagney@b1.cygnus.com>
260
261 * gdbarch.h (EXTRACT_STRUCT_VALUE_ADDRESS,
262 EXTRACT_STRUCT_VALUE_ADDRESS_P): Provide default definitions.
263 * values.c (value_being_returned): Use
264 EXTRACT_STRUCT_VALUE_ADDRESS when EXTRACT_STRUCT_VALUE_ADDRESS_P.
265
266 Wed May 26 13:51:25 1999 Andrew Cagney <cagney@b1.cygnus.com>
267
268 * utils.c (tui_file_new, tui_file_delete, tui_fileopen): New
269 functions.
270 (tui_file_isatty): Rename gdb_file_isatty.
271 (gdb_file_init_astring): Use tui_file_new to create stream.
272 (gdb_file_get_strbuf, gdb_file_adjust_strbuf): Call gdb_file_data
273 to access the tui_stream.
274 (tui_file_flush): Rename gdb_flush. Call gdb_file_data to access
275 the tui_stream. Pass FILE and not STREAM down.
276
277 * utils.c (struct stdio_file, stdio_file_flush, stdio_file_fputs,
278 stdio_file_isatty, stdio_file_delete, stdio_file_new,
279 stdio_fileopen): Define type and functions. Implement a simple
280 STDIO based gdb_file.
281 (struct gdb_file, gdb_file_new, gdb_file_delete, null_file_isatty,
282 null_file_flush, null_file_fputs, null_file_delete, gdb_file_data,
283 set_gdb_file_flush, set_gdb_file_isatty, set_gdb_file_fputs,
284 set_gdb_file_data, fputs_unfiltered, gdb_flush, gdb_file_isatty):
285 Define type and functions. Implement virtual functions for
286 gdb_file.
287
288 * defs.h (struct gdb_file): Declare.
289 (GDB_FILE): Change type to struct gdb_file. Deprecate.
290 (gdb_file_flush_ftype, gdb_file_fputs_ftype,
291 gdb_file_isatty_ftype, gdb_file_delete_ftype): Add function type
292 declarations.
293
294 * defs.h (set_gdb_file_flush, set_gdb_file_fputs,
295 set_gdb_file_isatty, set_gdb_file_data, gdb_file_new,
296 gdb_file_delete, gdb_file_data, stdio_fileopen, tui_fileopen): Add
297 function declarations.
298 (gdb_fopen): Re-implement. Call stdio_file_new.
299 (gdb_fclose): Re-implement. Call gdb_file_delete.
300
301 * main.c (tui_file_fputs): Rename fputs_unfiltered. Use
302 gdb_file_data to gain access to the tui_stream data. Use FILE
303 instead of STREAM where applicable.
304 (main): Create gdb_stdout and gdb_stderr using tui_fileopen.
305
306 * defs.h (struct tui_stream): Add field ts_magic.
307 * utils.c (tui_file_magic): Local variable.
308 (tui_file_new): Set field ts_magic.
309 (tui_file_delete, tui_file_isatty, gdb_file_init_astring,
310 gdb_file_get_strbuf, gdb_file_adjust_strbuf, tui_file_flush):
311 Verify ts_magic.
312
313 1999-05-25 Jim Blandy <jimb@zwingli.cygnus.com>
314
315 * breakpoint.c (insert_breakpoints, remove_breakpoint,
316 breakpoint_1): Add a 'default' case, which prints a warning
317 message, to remove EGCS warnings.
318
319 1999-05-25 Fernando Nasser <fnasser@totem.to.cygnus.com>
320
321 * utils.c (gdb_file_adjust_strbuf): Take into account the
322 possibility that the buffer has not been allocated yet.
323
324 Tue May 25 16:05:11 1999 Andrew Cagney <cagney@b1.cygnus.com>
325
326 * gdbarch.h (REGISTER_CONVERTIBLE, REGISTER_CONVERT_TO_VIRTUAL,
327 REGISTER_CONVERT_TO_RAW): Provide default definition.
328
329 * valops.c (value_assign), infcmd.c (do_registers_info), findvar.c
330 (value_from_register, value_of_register): Remove #ifdef
331 REGISTER_CONVERTIBLE. Assume REGISTER_CONVERTIBLE etc defined.
332
333 Tue May 25 16:18:25 1999 Andrew Cagney <cagney@amy.cygnus.com>
334
335 * remote-d10v.c (d10v_eva_prepare_to_trace,
336 d10v_eva_get_trace_data), remote-sim.c (_initialize_remote_sim):
337 Add declaraton. Make static.
338
339 * remote-d10v.c (_initialize_remote_d10v), d10v-tdep.c
340 (_initialize_d10v_tdep): Add declaration.
341 * config/d10v/tm-d10v.h (d10v_frame_chain): Add declaration.
342
343 Tue May 25 15:20:58 1999 Andrew Cagney <cagney@amy.cygnus.com>
344
345 * main.c (init_proc, proc_remove_foreign): Delete function.
346 * inftarg.c (child_mourn_inferior): Update. Delete call to
347 proc_remove_foreign().
348 * top.c (gdb_init): Update. Delete call to init_proc().
349
350 * utils.c (pollquit, fmthex, hexlate): Delete function.
351
352 Tue May 25 13:01:43 1999 Andrew Cagney <cagney@amy.cygnus.com>
353
354 * main.c (gdb_init): Move declaration from here.
355 * top.h: To here.
356
357 * defs.h (init_page_info): Add declaration.
358
359 * top.c (initialize_utils): Move declaration from here.
360 * defs.h: To here.
361
362 * infcmd.c (target_map_name_to_register): Move declaration from
363 here.
364 * parser-defs.h: To here.
365
366 * c-typeprint.c (cp_type_print_method_args), target.c
367 (nosupport_runtime, normal_target_post_startup_inferior): Add
368 declaration. Make static.
369
370 Tue May 25 13:53:23 1999 Andrew Cagney <cagney@amy.cygnus.com>
371
372 * main.c: Include "event-loop.h".
373 * Makefile.in (main.o): Add dependency.
374
375 * top.h (setup_event_loop, async_init_signals), top.c
376 (set_async_editing_command, set_async_annotation_level,
377 set_async_prompt), event-loop.c (display_gdb_prompt): Move
378 declarations from here.
379 * event-loop.h: To here.
380
381 * event-loop.h (delete_async_signal_handler): Add function
382 declaration.
383
384 * event-top.c (change_annotation_level, command_handler): Add
385 declaration. Make static.
386
387 Tue May 25 12:44:58 1999 Andrew Cagney <cagney@amy.cygnus.com>
388
389 * tracepoint.c (free_actions_list, add_register): Add declaration.
390 Make static.
391 (free_actions_list_cleanup_wrapper): New function. Wraps
392 free_actions_list for make_cleanup.
393 (trace_start_command): Pass free_actions_list_cleanup_wrapper
394 instead of free_actions_list to make_cleanup.
395 (_initialize_tracepoint): Add extern declaration.
396
397 Tue May 25 12:23:39 1999 Andrew Cagney <cagney@amy.cygnus.com>
398
399 * jv-typeprint.c (java_type_print_base, jv-valprint.c
400 (java_print_value_fields): Add static declaration.
401
402 * jv-lang.c (java_lookup_type, get_java_utf8_name,
403 java_lookup_type): Add static declaration.
404 (get_java_class_symtab, java_class_is_primitive,
405 java_value_string): Add declaration. Make static.
406 (java_rerun_cleanup): Add extern declaration for this stub
407 function.
408
409 Mon May 24 16:16:29 1999 Andrew Cagney <cagney@amy.cygnus.com>
410
411 * inflow.c (_initialize_inflow), annotate.c
412 (_initialize_annotate), os9kread.c (_initialize_os9kread),
413 serial.c (_initialize_serial), nlmread.c (_initialize_nlmread),
414 f-valprint.c (_initialize_f_valprint), cp-valprint.c
415 (_initialize_cp_valprint), typeprint.c (_initialize_typeprint),
416 complaints.c (_initialize_complaints), scm-lang.c
417 (_initialize_scheme_language), m2-lang.c
418 (_initialize_m2_language), dbxread.c (_initialize_dbxread),
419 f-lang.c (_initialize_f_language), ch-lang.c
420 (_initialize_chill_language), c-lang.c (_initialize_c_language),
421 corefile.c (_initialize_core), stabsread.c
422 (_initialize_stabsread), mipsread.c (_initialize_mipsread),
423 elfread.c (_initialize_elfread), coffread.c
424 (_initialize_coffread), maint.c (_initialize_maint_cmds),
425 demangle.c (_initialize_demangler), maint.c
426 (_initialize_maint_cmds), language.c (_initialize_language): Add
427 external declaration.
428
429 Mon May 24 10:04:56 1999 Andrew Cagney <cagney@b1.cygnus.com>
430
431 * config/z8k/tm-z8k.h, config/w65/tm-w65.h, config/v850/tm-v850.h,
432 config/tic80/tm-tic80.h, config/tahoe/tm-tahoe.h,
433 config/rs6000/tm-rs6000.h, config/sparc/tm-sparc.h,
434 config/sh/tm-sh.h, config/pyr/tm-pyr.h, config/pa/tm-hppa.h,
435 config/ns32k/tm-merlin.h, config/mn10300/tm-mn10300.h,
436 config/mn10200/tm-mn10200.h, config/mips/tm-mips.h,
437 config/m88k/tm-m88k.h, config/m68k/tm-news.h,
438 config/m68k/tm-delta68.h, config/m68k/tm-isi.h,
439 config/m68k/tm-m68k.h, config/m32r/tm-m32r.h,
440 config/i960/tm-i960.h, config/i386/tm-i386v.h,
441 config/i386/tm-i386.h, config/h8500/tm-h8500.h,
442 config/h8300/tm-h8300.h, config/fr30/tm-fr30.h,
443 config/d30v/tm-d30v.h, config/d10v/tm-d10v.h,
444 config/convex/tm-convex.h, config/arc/tm-arc.h,
445 config/arm/tm-arm.h, config/alpha/tm-alpha.h,
446 config/a29k/tm-a29k.h: Re-write definition of FRAME_NUM_ARGS so
447 that it returns NUM_ARGS as a result instead of setting a variable
448 as a side effect.
449
450 * ns32k-tdep.c (merlin_frame_num_args), tahoe-tdep.c
451 (tahoe_frame_num_args), vax-tdep.c (vax_frame_num_args),
452 m68k-tdep.c (news_frame_num_args, delta68_frame_num_args,
453 isi_frame_num_args), convex-tdep.c (convex_frame_num_args): New
454 functions.
455
456 * stack.c (print_args_stub): Update use of FRAME_NUM_ARGS.
457
458 Mon May 24 11:57:04 1999 Andrew Cagney <cagney@b1.cygnus.com>
459
460 * remote.c (remote_xfer_memory): Re-write with assumption that
461 REMOTE_TRANSLATE_XFER_ADDRESS is defined. Pass targ_addr and
462 targ_len by reference.
463 (REMOTE_TRANSLATE_XFER_ADDRESS): Provide default definition.
464
465 * remote-d10v.c (remote_d10v_translate_xfer_address): Update.
466 * config/d10v/tm-d10v.h (REMOTE_TRANSLATE_XFER_ADDRESS): Update.
467
468 Mon May 24 12:10:58 1999 Andrew Cagney <cagney@amy.cygnus.com>
469
470 * value.h (default_push_arguments): Add function declaration.
471
472 * alpha-tdep.c (alpha_about_to_return), gdbarch.c (verify_gdbarch,
473 arch_ok, set_arch), command.c (find_cmd), infrun.c
474 (follow_inferior_fork, follow_fork, follow_vfork,
475 set_schedlock_func, is_internal_shlib_eventpoint,
476 stopped_for_internal_shlib_event, stopped_for_shlib_catchpoint,
477 xdb_handle_command), infcmd.c (run_no_args_command, go_command),
478 symfile.c (add_filename_language, set_ext_lang_command,
479 info_ext_lang_command, init_filename_language_table), symtab.c
480 (overload_list_add_symbol), defs.h (default_get_saved_register),
481 ax-general.c (grow_expr, append_const, read_const, generic_ext):
482 Ditto.
483
484 * infrun.c (currently_stepping): Ditto. Make static.
485
486 * valops.c (hand_function_call): Explictly type static variable
487 ``checked''.
488
489 Mon May 24 08:36:18 1999 Andrew Cagney <cagney@b1.cygnus.com>
490
491 * d10v-tdep.c (d10v_breakpoint_from_pc, d10v_register_name,
492 d10v_register_byte, d10v_register_raw_size,
493 d10v_register_virtual_size, d10v_register_virtual_type,
494 d10v_make_daddr, d10v_make_iaddr, d10v_daddr_p, d10v_iaddr_p,
495 d10v_convert_iaddr_to_raw, d10v_convert_daddr_to_raw,
496 d10v_store_struct_return, d10v_store_return_value,
497 d10v_extract_struct_value_address, d10v_frame_saved_pc,
498 d10v_frame_args_address, d10v_frame_locals_address,
499 d10v_saved_pc_after_call): New functions.
500
501 * config/d10v/tm-d10v.h (REGISTER_BYTE, REGISTER_RAW_SIZE,
502 REGISTER_VIRTUAL_SIZE, REGISTER_VIRTUAL_TYPE, STORE_STRUCT_RETURN,
503 D10V_MAKE_DADDR, D10V_MAKE_IADDR, D10V_DADDR_P, D10V_IADDR_P,
504 D10V_CONVERT_DADDR_TO_RAW, D10V_CONVERT_IADDR_TO_RAW,
505 STORE_STRUCT_RETURN, STORE_RETURN_VALUE,
506 EXTRACT_STRUCT_VALUE_ADDRESS, SAVED_PC_AFTER_CALL, FRAME_SAVED_PC,
507 FRAME_ARGS_ADDRESS): Re-define using new functions.
508
509 * config/d10v/tm-d10v.h (BREAKPOINT_FROM_PC): Replace BREAKPOINT.
510 (REGISTER_NAME): Replace REGISTER_NAMES.
511
512 * utils.c (core_addr_lessthan, core_addr_greaterthan): New
513 functions.
514 * defs.h (core_addr_lessthan, core_addr_greaterthan): Declare.
515
516 Sat May 22 16:44:06 1999 Andrew Cagney <cagney@b1.cygnus.com>
517
518 * utils.c (n_spaces): Handle case where first call has N equal to
519 zero.
520 (print_spaces): Use n_spaces.
521
522 Fri May 21 11:23:54 1999 Andrew Cagney <cagney@b1.cygnus.com>
523
524 * valops.c (value_push): Remove conditional definition based on
525 absense of macro PUSH_ARGUMENTS. Pass SP and STRUCT_ADDR by
526 reference.
527 (default_push_arguments): New function.
528
529 * config/v850/tm-v850.h, config/tic80/tm-tic80.h,
530 config/sparc/tm-sparc.h, config/sparc/tm-sp64.h,
531 config/sh/tm-sh.h, config/rs6000/tm-rs6000.h, config/pa/tm-hppa.h,
532 config/mn10300/tm-mn10300.h, config/mn10200/tm-mn10200.h,
533 config/mips/tm-mips.h, config/m32r/tm-m32r.h,
534 config/h8300/tm-h8300.h, config/fr30/tm-fr30.h,
535 config/d30v/tm-d30v.h, config/d10v/tm-d10v.h, config/arm/tm-arm.h,
536 config/alpha/tm-alpha.h: Update definition of PUSH_ARGUMENTS.
537 Return updated SP.
538
539 * rs6000-tdep.c (rs6000_push_arguments): Rename push_arguments.
540
541 Thu May 20 12:18:28 1999 Andrew Cagney <cagney@b1.cygnus.com>
542
543 * blockframe.c (get_prev_frame): Remove #ifdef around test for
544 FRAMELESS_FUNCTION_INVOCATION.
545 (get_prev_frame): Change FRAMELESS_FUNCTION_INVOCATION call to a
546 function invocation.
547 * i386-tdep.c (i386_frame_num_args), stack.c (frame_info): Ditto.
548 * config/z8k/tm-z8k.h, config/w65/tm-w65.h, config/vax/tm-vax.h,
549 config/sparc/tm-sparc.h, config/sh/tm-sh.h,
550 config/rs6000/tm-rs6000.h, config/pa/tm-hppa.h,
551 config/mips/tm-mips.h, config/m88k/tm-m88k.h,
552 config/m68k/tm-m68k.h, config/i960/tm-i960.h,
553 config/i386/tm-sun386.h, config/i386/tm-i386v.h,
554 config/i386/tm-i386.h, config/h8500/tm-h8500.h,
555 config/h8300/tm-h8300.h, config/fr30/tm-fr30.h,
556 config/d30v/tm-d30v.h, config/d10v/tm-d10v.h,
557 config/convex/tm-convex.h, config/arm/tm-arm.h,
558 config/arc/tm-arc.h, config/alpha/tm-alpha.h,
559 config/a29k/tm-a29k.h: Update FRAMELESS_FUNCTION_INVOCATION.
560 * fr30-tdep.c (fr30_frameless_function_invocation), convex-tdep.c
561 (convex_frameless_function_invocation), arm-tdep.c
562 (arm_frameless_function_invocation): New functions.
563
564 1999-05-20 Elena Zannoni <ezannoni@kwikemart.cygnus.com>
565
566 * top.c: Change dates in comments to ISO format.
567
568 * event-top.c: Ditto.
569 * event-loop.c: Ditto.
570 * main.c: Ditto.
571
572 1999-05-19 Keith Seitz <keiths@cygnus.com>
573
574 * monitor.c (monitor_open): Only assume we have eight
575 breakpoints if the monitor implementation does not tell
576 us how many there really are. Alloc memory for these
577 dynamically.
578 (monitor_close): Free memory associated with breakpoint
579 storage.
580 (monitor_insert_breakpoint): Don't rely on a hardcoded
581 number of breakpoints.
582 (monitor_remove_breakpoint): Ditto.
583 (NUM_MONITOR_BREAKPOINTS): Removed and replaced with monitor_ops
584 specification.
585 * monitor.h (struct monitor_ops): Add new member so that the
586 individual monitor implementations can tell us how many
587 breakpoints the monitor supports.
588
589 1999-05-18 Elena Zannoni <ezannoni@kwikemart.cygnus.com>
590
591 From Philippe De Muyter <phdm@macqel.be>:
592 * event-loop.h: Include sys/wait.h only if HAVE_SYS_WAIT_H.
593
594 1999-05-17 Fernando Nasser <fnasser@totem.to.cygnus.com>
595
596 * top.c (print_command_line): Added the missing stream argument.
597 * gdbcmd.h: Added argument to prototype.
598 * command.c: Fixed call to include extra argument.
599 * breakpoint.c: Same.
600
601 1999-05-14 Jim Blandy <jimb@zwingli.cygnus.com>
602
603 Targets are #defining PREPARE_TO_PROCEED with inconsistent numbers
604 of arguments. Since the Mach 3 target needs an argument, we'll
605 make things consistent by adding an argument everywhere.
606 * infrun.c (proceed): Pass an argument to PREPARE_TO_PROCEED.
607 * config/pa/nm-hppah.h (PREPARE_TO_PROCEED): Add ignored argument
608 to definition.
609
610 1999-05-11 Stan Shebs <shebs@andros.cygnus.com>
611
612 Fri Apr 23 13:27:34 PDT 1999 Toshiyasu Morita (tm@netcom.com)
613 * sh-stub.c: Mostly localize processor dependencies.
614
615 1999-05-10 Martin Hunt <hunt@cygnus.com>
616
617 * debugify.c, debugify.h: Removed because they are no
618 longer used.
619
620 1999-05-08 Jim Blandy <jimb@zwingli.cygnus.com>
621
622 * infrun.c (_initialize_infrun): Handle TARGET_SIGNAL_LWP,
623 TARGET_SIGNAL_WAITING, and TARGET_SIGNAL_CANCEL like SIGALRM or
624 SIGIO --- pass them through to the inferior silently.
625 * target.h (enum target_signals): Add TARGET_SIGNAL_CANCEL, for
626 Solaris's SIGCANCEL.
627 * target.c (target_signal_from_host, target_signal_to_host): Add
628 mapping between SIGCANCEL and TARGET_SIGNAL_CANCEL.
629 (signals): Add entry for SIGCANCEL.
630
631 1999-05-07 Stan Shebs <shebs@andros.cygnus.com>
632
633 After years of talking about it, finally break up the
634 wait_for_inferior loop.
635 * infrun.c (struct execution_control_state): New struct,
636 holds what used to be local vars governing wfi behavior.
637 (init_execution_control_state): New function, was code in
638 wfi that set up execution control state.
639 (handle_inferior_event): New function, was body of main
640 wfi loop. Rewrite all local var references to go through
641 the ecs structure passed into this function.
642 (wait_for_inferior): Rewrite to set up and use execution control
643 state, and to call the new functions.
644 (currently_stepping): New function, was the macro
645 CURRENTLY_STEPPING.
646 (enum infwait_states): Rename from wfi_states.
647 (infwait_normal_state, etc): Similarly.
648
649 Thu May 6 15:25:32 1999 Philippe De Muyter <phdm@macqel.be>
650
651 * coffread.c (coff_symtab_read): Call `record_line' with the line
652 number of the ".bf" symbol only for one-line functions.
653
654 1999-05-06 Michael Snyder <msnyder@cleaver.cygnus.com>
655
656 * Makefile.in: thread.o depends on target.h.
657
658 1999-05-06 Elena Zannoni <ezannoni@kwikemart.cygnus.com>
659
660 * event-top.c (change_line_handler): Use POLLIN instead of
661 POLLRDNORM, for compatibility with Linux.
662 (setup_event_loop): Ditto.
663
664 1999-05-06 Jim Blandy <jimb@zwingli.cygnus.com>
665
666 * mips-tdep.c (heuristic_proc_start): Rewrite cryptic error
667 message about hitting the "heuristic fence post" with something
668 that actually gives the user a fighting chance of figuring out
669 why GDB is unhappy.
670
671 1999-05-06 Elena Zannoni <ezannoni@kwikemart.cygnus.com>
672
673 * top.c: Include event-loop.h.
674 (init_main): Add async version of 'set prompt' command.
675 If in async mode define the editing and annotate set
676 commands in a different way.
677 Initialize new variable asyn_command_editing_p to 1.
678 Initialize the gdb prompt for async mode.
679 (quit_cover): Make not static, for use by the event loop.
680 (gdb_init): Call async_init_signals for the asynchronous case.
681 (source_line_number, source_file_name, source_error,
682 source_pre_error, history_expansion_p): Make non-static, so
683 event-top.c can use them.
684 (command_loop_marker): Make non-static, for use in event-top.c.
685 Include event-loop.h.
686
687 * top.h: Add prototype for async_init_signals.
688 (SET_TOP_LEVEL): Move here from main.c.
689 Add setup_event_loop to exported functions.
690
691 * defs.h: Add async_hook to exported variables.
692
693 * main.c (SET_TOP_LEVEL): Move to top.h, so that it is visible in
694 event-loop.c. Add new global variable async to determine whether
695 we are running in async mode or not.
696 (main): Add support for --async switch. Use async_hook to call
697 setup_event_loop, when running in async mode.
698
699 * event-top.c: New file. Gdb input line handler and command line
700 handler for the event loop. Initialization of signal handlers.
701 All the handled signals have handlers called handle_<signalname>.
702 Set up all the appropriate tokens for asynchronous signal
703 handling.
704
705 * event-loop.h: New file. Data structures and definitions for the
706 event loop.
707
708 * event-loop.c: New file. Functions for the event loop
709 implementation.
710
711 * config.in: Regenerate with autoheader.
712
713 * configure.in (AC_CHECK_FUNCS): Add poll to list of functions
714 to be checked for.
715
716 * configure: Regenerate.
717
718 * Makefile.in (SFILES): Add new source files.
719 (eventloop_h): Define.
720 (COMMON_OBS): Add new object files.
721 (event-loop.o): Add rule for target object.
722 (event-top.o): Ditto.
723
724 1999-05-05 Stan Shebs <shebs@andros.cygnus.com>
725
726 * infrun.c (wait_for_inferior): Transform breaks and continues
727 into gotos, move the target_wait to the very top of the loop.
728
729 1999-05-05 Jonathan Larmour <jlarmour@cygnus.co.uk>
730
731 * configure.in: Ensure that GDB links with libuser32.a under
732 cygwin because libreadline requires it.
733 * Makefile.in (WIN32LIBS): Substitute in result from configure
734 * configure: regenerate
735
736 1999-05-04 Jim Blandy <jimb@zwingli.cygnus.com>
737
738 Fix from John Rigby. Richard Henderson says it seems okay.
739 * alpha-tdep.c (PROC_DUMMY_FRAME): As long as we're abusing fields
740 of (proc)->pdr, we ought to at least abuse one large enough to
741 hold the value we're trying to store in it. iopt is only 32 bits
742 wide; cbLineOffset is a bfd_vma.
743
744 1999-05-04 DJ Delorie <dj@cygnus.com>
745
746 DJGPP changes from Robert Hoehne <robert.hoehne@gmx.net>
747
748 * ser-go32.c: correct includes
749 * source.c (openp): use ROOTED_P instead of SLASH_P
750 * go32-nat.c: enhance exception and NPX handling
751 (go32_kill_inferior): fix small bug killing inferior
752 * configure.in: don't look for termcap with djgpp
753 * configure: rebuild
754
755 1999-05-04 Elena Zannoni <ezannoni@kwikemart.cygnus.com>
756
757 * main.c (main): Comment out unused and undocumented command line
758 option '-'.
759
760 1999-04-30 Jim Blandy <jimb@zwingli.cygnus.com>
761
762 Cleanup from Philippe De Muyter:
763 * configure.in (BFD_NEED_DECLARATION): Check also for strstr.
764 * acconfig.h (NEED_DECLARATION_MALLOC, NEED_DECLARATION_REALLOC,
765 NEED_DECLARATION_FREE, NEED_DECLARATION_STRERROR): Define slots
766 removed; they are now generated automatically.
767 * gdb_string.h (strstr): Provide function prototype if
768 NEED_DECLARATION_STRSTR.
769 * configure, config.in: Regenerated.
770
771 Fri Apr 30 11:16:09 1999 Michael Snyder <msnyder@cleaver.cygnus.com>
772
773 * target.h (to_find_new_threads): new target ops vector.
774 (target_find_new_threads): define.
775 * target.c (update_current_target): inherit new target ops vector.
776 * remote.c: Setup to_find_new_threads vector.
777 * sol-thread.c: ditto.
778 * thread.c (target_find_new_threads): rename: local_find_new_threads.
779 (info_threads_command): call target_find_new_threads by new method,
780 as a target ops vector, rather than previous macro definition method.
781 * infcmd.c (go_command): define only if in xdb mode.
782 * procfs.c: fix typo in comment.
783
784 Fri Apr 30 01:02:05 1999 Jeffrey A Law (law@cygnus.com)
785
786 * hppah-nat.c: Fix various coding convention violations introduced
787 by HP.
788 (child_acknowledge_created_inferior): Do nothing if PT_SET_EVENT_MASK
789 is not defined.
790
791 1999-04-28 Stan Shebs <shebs@andros.cygnus.com>
792
793 * TODO: Add some items inspired by review of the manual.
794
795 Tue Apr 27 17:38:19 1999 Andrew Cagney <cagney@b1.cygnus.com>
796
797 * config/z8k/tm-z8k.h, config/v850/tm-v850.h,
798 config/tic80/tm-tic80.h, config/sparc/tm-sparc.h,
799 config/sh/tm-sh.h, config/pyr/tm-pyr.h, config/pa/tm-hppa.h,
800 config/mn10300/tm-mn10300.h, config/mn10200/tm-mn10200.h,
801 config/mips/tm-mips.h, config/m88k/tm-m88k.h,
802 config/m68k/tm-m68k.h, config/m32r/tm-m32r.h,
803 config/i960/tm-i960.h, config/i386/tm-i386.h,
804 config/h8500/tm-h8500.h, config/h8300/tm-h8300.h,
805 config/fr30/tm-fr30.h, config/d30v/tm-d30v.h,
806 config/d10v/tm-d10v.h, config/alpha/tm-alpha.h,
807 config/arm/tm-arm.h, config/a29k/tm-a29k.h, config/arc/tm-arc.h:
808 Change SKIP_PROLOGUE and SKIP_PROLOGUE_FRAMELESS_P macros so that
809 they return the new address.
810
811 * sparc-tdep.c (sparc_skip_prologue), hppa-tdep.c
812 (hppa_skip_prologue), m88k-tdep.c
813 (m88k_skip_prologue), i960-tdep.c
814 (i960_skip_prologue), arc-tdep.c
815 (arc_skip_prologue), a29k-tdep.c (a29k_skip_prologue): Rename
816 skip_prologue function.
817
818 * config/m68k/tm-isi.h: Convert macro SKIP_PROLOGUE into a new
819 function.
820 * m68k-tdep.c (isi_skip_prologue): That new function.
821 * vax-tdep.c (vax_skip_prologue), config/vax/tm-vax.h: Ditto.
822 * tahoe-tdep.c (tahoe_skip_prologue), config/tahoe/tm-tahoe.h: Ditto.
823 * rs6000-tdep.c (rs6000_skip_prologue), config/rs6000/tm-rs6000.h:
824 Ditto.
825 * ns32k-tdep.c (umax_skip_prologue), config/ns32k/tm-umax.h: Ditto.
826 * config/ns32k/tm-merlin.h, ns32k-tdep.c (merlin_skip_prologue):
827 Ditto.
828 * config/m68k/tm-altos.h, m68k-tdep.c (altos_skip_prologue): Ditto.
829 * config/convex/tm-convex.h, convex-tdep.c (convex_skip_prologue):
830 Ditto.
831
832 * symtab.c (in_prologue, find_function_start_sal, decode_line_1),
833 infrun.c (wait_for_inferior), blockframe.c
834 (frameless_look_for_prologue): Update.
835 * config/fr30/tm-fr30.h (FRAMELESS_FUNCTION_INVOCATION): Update.
836
837 1999-04-27 Stan Shebs <shebs@andros.cygnus.com>
838
839 * TODO: Remove item about DEBUG_EXPRESSIONS, no longer meaningful.
840
841 * infrun.c (enum wfi_state): New enum.
842 (wait_for_inferior): Merge all but one of the target_wait calls
843 into a single call, add a wfi_state variable to encode which of
844 the calls is being made.
845
846 1999-04-26 Jim Blandy <jimb@zwingli.cygnus.com>
847
848 Fix from Dave Holcomb.
849 * hpux-thread.c (init_hpux_thread_ops): Use the right function
850 name when initializing hpux_thread_ops.to_thread_alive.
851
852 * coffread.c (coff_symfile_read): If we have a `.stab' section,
853 but no `.stabstr' section, then print an error message; don't
854 crash.
855
856 1999-04-26 Jim Blandy <jimb@zwingli.cygnus.com>
857
858 1999-04-25 Mark Kettenis <kettenis@gnu.org>
859
860 * gnu-nat.c (gnu_attach): Call target_terminal_init before calling
861 inf_set_traced, since that function calls code that might try to
862 restore the terminal settings.
863
864 Mon Apr 26 08:55:46 1999 Andrew Cagney <cagney@b1.cygnus.com>
865
866 * gdbarch.h, gdbarch.c: More format cleanups.
867
868 Fri Apr 23 15:00:25 1999 Andrew Cagney <cagney@b1.cygnus.com>
869
870 * gdbarch.c (arch_ok): New function. Fix logic test for a valid
871 architecture.
872 (set_arch): Use.
873
874 1999-04-22 Jason Molenda (jsm@bugshack.cygnus.com)
875
876 * README: Note that readline is not installed as a part of
877 make install.
878
879 Thu Apr 22 21:02:28 1999 Andrew Cagney <cagney@b1.cygnus.com>
880
881 * value.h (get_saved_register): Cleanup prototype.
882 * findvar.c (default_get_saved_register): Rename function
883 get_saved_register.
884 (GET_SAVED_REGISTER): Define as default_get_saved_register when
885 undefined.
886 (get_saved_register): Always declare. Call GET_SAVED_REGISTER.
887
888 * sparc-tdep.c (sparc_get_saved_register): Rename function
889 get_saved_register.
890 * config/sparc/tm-sparc.h (GET_SAVED_REGISTER): Update.
891 * a29k-tdep.c (a29k_get_saved_register): Rename function
892 get_saved_register.
893 * config/a29k/tm-a29k.h (GET_SAVED_REGISTER): Update.
894
895 * config/d10v/tm-d10v.h, config/powerpc/tm-ppc-eabi.h,
896 config/h8300/tm-h8300.h, config/m32r/tm-m32r.h,
897 config/mn10200/tm-mn10200.h, config/mn10300/tm-mn10300.h,
898 config/sh/tm-sh.h, config/tic80/tm-tic80.h, config/v850/tm-v850.h:
899 Update macro GET_SAVED_REGISTER so that it calls
900 generic_get_saved_register.
901 * v850-tdep.c, tic80-tdep.c, sh-tdep.c, mn10300-tdep.c,
902 mn10200-tdep.c, m32r-tdep.c, h8300-tdep.c, rs6000-tdep.c: Delete
903 function get_saved_register.
904
905 Thu Apr 22 11:07:21 1999 Andrew Cagney <cagney@b1.cygnus.com>
906
907 * config/v850/tm-v850.h, config/tic80/tm-tic80.h,
908 config/sh/tm-sh.h, config/powerpc/tm-ppc-eabi.h,
909 config/mn10300/tm-mn10300.h, config/mn10200/tm-mn10200.h,
910 config/m32r/tm-m32r.h, config/h8300/tm-h8300.h,
911 config/fr30/tm-fr30.h, config/d10v/tm-d10v.h: Give the
912 USE_GENERIC_DUMMY_FRAMES macro the value one.
913 * inferior.h (USE_GENERIC_DUMMY_FRAMES): Default to a value of
914 zero.
915
916 * blockframe.c (generic_find_dummy_frame,
917 generic_pc_in_call_dummy, generic_read_register_dummy,
918 generic_push_dummy_frame, generic_pop_current_frame,
919 generic_pop_dummy_frame, generic_frame_chain_valid,
920 generic_get_saved_register): Always define.
921
922 * breakpoint.c (frame_in_dummy): Convert #ifdef
923 USE_GENERIC_DUMMY_FRAMES to runtime test.
924
925 * rs6000-tdep.c (pop_frame, push_arguments, push_arguments,
926 push_arguments, frame_saved_pc, rs6000_frame_chain,
927 rs6000_frame_chain): Convert #ifdef USE_GENERIC_DUMMY_FRAMES to
928 runtime test.
929 (get_saved_register): Always define.
930
931 Wed Apr 21 14:45:44 1999 Andrew Cagney <cagney@b1.cygnus.com>
932
933 * gdbarch.c (enum set_arch): Declare.
934 (set_arch): Add type parameter. Only disable
935 ``target_architecture_auto'' when set_arch_manual.
936 (set_architecture, set_architecture_from_arch_mach,
937 set_architecture_from_file): Update.
938
939 Wed Apr 21 10:48:53 1999 Andrew Cagney <cagney@b1.cygnus.com>
940
941 * frame.h (generic_pc_in_call_dummy): Make signature consistent
942 with other pc_in_call_dummy functions by adding SP parameter.
943 * blockframe.c (generic_pc_in_call_dummy): Update. Pass SP and
944 not FP to generic_find_dummy_frame().
945 * breakpoint.c (frame_in_dummy): Update.
946 * config/v850/tm-v850.h, config/tic80/tm-tic80.h,
947 config/sh/tm-sh.h, config/mn10300/tm-mn10300.h,
948 config/mn10200/tm-mn10200.h, config/m32r/tm-m32r.h,
949 config/h8300/tm-h8300.h, config/fr30/tm-fr30.h,
950 config/d10v/tm-d10v.h: Update PC_IN_CALL_DUMMY definition.
951
952 Tue Apr 20 12:15:45 1999 Andrew Cagney <cagney@b1.cygnus.com>
953
954 * config/d10v/tm-d10v.h (GDB_TARGET_IS_D10V): Move from here.
955 * gdbarch.h (GDB_TARGET_IS_D10V): To here. Implement using
956 TARGET_ARCHITECTURE.
957 (D10V_MAKE_DADDR, D10V_MAKE_IADDR): Provide fatal default
958 definitions.
959
960 * valops.c (value_at): Replace #ifdef GDB_TARGET_IS_D10V code with
961 runtime test.
962 (value_fetch_lazy): Ditto.
963 * values.c (unpack_long): Ditto.
964 * printcmd.c (print_frame_args): Ditto.
965
966 1999-04-15 Stan Shebs <shebs@andros.cygnus.com>
967
968 * infrun.c (wait_for_inferior) [HAVE_STEPPABLE_WATCHPOINT,
969 HAVE_NONSTEPPABLE_WATCHPOINT, HAVE_CONTINUABLE_WATCHPOINT]: Test
970 at runtime instead of compile time.
971
972 1999-04-14 Philippe De Muyter <phdm@macqel.be>
973
974 * breakpoint.c (maintenance_info_breakpoints): Function made
975 static to match previous prototype.
976
977 * coffread.c (coff_record_line): Static function removed.
978 (enter_linenos): Call `record_line' instead of `coff_record_line'.
979 (FILE-LEVEL, coff_start_symtab, coff_end_symtab): `coff_record_line'
980 -related stuff removed.
981 (coff_symfile_read): Redundant statement removed.
982 (coff_symtab_read): `record_line' is now called with the first line
983 number of each function, given by the ".bf" symbol. This solves
984 the line-number bug for one-line functions.
985
986 Wed Apr 14 11:09:45 1999 Andrew Cagney <cagney@b1.cygnus.com>
987
988 * stabsread.c (BELIEVE_PCC_PROMOTION_TYPE): Provide default.
989 (define_symbol): Change #if BELIEVE_PCC_PROMOTION_TYPE and #if
990 BELIEVE_PCC_PROMOTION to if().
991
992 1999-04-13 Jason Molenda (jsm@bugshack.cygnus.com)
993
994 * configure.in (HAVE_MULTIPLE_PROC_FDS): Don't define if we're
995 on a Solaris host (of any architecture).
996 * configure: Regenerated.
997
998 1999-04-13 Jason Molenda (jsm@bugshack.cygnus.com)
999
1000 * rom68k-rom.c (init_rom68k_cmds): Fix an accidental substitution
1001 in monitor command strings, fix some formatting mistakes.
1002
1003 1999-04-13 Stan Shebs <shebs@andros.cygnus.com>
1004
1005 * configure.tgt (arm-*-*): Whack another vestige of wingdb.
1006
1007 1999-04-12 James Ingham <jingham@cygnus.com>
1008
1009 * arm-tdep.c (arm_pop_frame): don't clobber the previous frame's
1010 stack pointer (stored in frame->framereg's register) BEFORE
1011 reading it. This was causing "return" to behave very oddly.
1012
1013 1999-04-12 Stan Shebs <shebs@andros.cygnus.com>
1014
1015 * NEWS: Mention tic80.
1016
1017 1999-04-12 Elena Zannoni <ezannoni@kwikemart.cygnus.com>
1018
1019 * a68v-nat.c: Remove reference to 'extern char registers[]' throughout.
1020 * altos-xdep.c: Ditto.
1021 * arm-xdep.c: Ditto.
1022 * convex-xdep.c: Ditto.
1023 * cxux-nat.c: Ditto.
1024 * hp300ux-nat.c: Ditto.
1025 * hppab-nat.c: Ditto.
1026 * i386aix-nat.c: Ditto.
1027 * i386mach-nat.c: Ditto.
1028 * m88k-nat.c: Ditto.
1029 * ptx4-nat.c: Ditto.
1030 * pyr-xdep.c: Ditto.
1031 * rs6000-nat.c: Ditto.
1032 * sun3-nat.c: Ditto.
1033 * sun386-nat.c: Ditto.
1034 * symm-nat.c: Ditto.
1035 * umax-xdep.c: Ditto.
1036 * i386v4-nat.c: Ditto. Also include inferior.h.
1037 * m68k-tdep.c: Ditto. Also include inferior.h.
1038
1039 Mon Apr 12 15:57:16 1999 Andrew Cagney <cagney@b1.cygnus.com>
1040
1041 * inferior.h (CALL_DUMMY_STACK_ADJUST, CALL_DUMMY_STACK_ADJUST_P):
1042 Provide default definitions.
1043 * valops.c (hand_function_call): Replace #ifdef
1044 CALL_DUMMY_STACK_ADJUST with if (CALL_DUMMY_STACK_ADJUST_P).
1045
1046 1999-04-09 Jim Blandy <jimb@zwingli.cygnus.com>
1047
1048 * ax-gdb.c, ax-gdb.h, ax-general.c, ax.h: Remove RCS Id strings.
1049 They're a pain.
1050
1051 * GDB 4.18 released.
1052 * Makefile.in (VERSION): Bump to 4.18.1.
1053
1054 Thu Apr 8 16:04:34 1999 Andrew Cagney <cagney@b1.cygnus.com>
1055
1056 * inferior.h (CALL_DUMMY_P, CALL_DUMMY_WORDS,
1057 SIZEOF_CALL_DUMMY_WORDS): Define macros.
1058 (PUSH_DUMMY_FRAME, FIX_CALL_DUMMY, STORE_STRUCT_RETURN): Provide
1059 fatal default.
1060
1061 * inferior.h, gdbarch.c (call_dummy_words,
1062 sizeof_call_dummy_words): Declare/Define variables.
1063 * valops.c (value_arg_coerce, find_function_addr,
1064 call_function_by_hand): Always define.
1065 (hand_function_call): Rename CALL_DUMMY version of
1066 call_function_by_hand. Make static. Add prototype.
1067 (hand_function_call): Update. Allocate space for *dummy and
1068 *dummy1 using alloca.
1069 * breakpoint.c (frame_in_dummy): Update.
1070
1071 1999-04-08 Jason Molenda (jsm@bugshack.cygnus.com)
1072
1073 * monitor.c (monitor_read_memory): If a MO_GETMEM_NEEDS_RANGE
1074 monitor, increase the end address by one byte.
1075
1076 1999-04-08 Jason Molenda (jsm@bugshack.cygnus.com)
1077
1078 * dbug-rom.c (init_dbug_cmds): Fix strings in
1079 dbug_cmds.{step,clr_break,clr_all_break,fill} to send correct
1080 commands to the monitor.
1081
1082 1999-04-08 Keith Seitz <keiths@cygnus.com>
1083
1084 * m32r-stub.c (branchDestination): Undo overly ambitious
1085 sed script's conversion of cast from "char" to "unsigned char".
1086 Return offset should now be properly computed.
1087
1088 Thu Apr 8 14:13:19 1999 Andrew Cagney <cagney@b1.cygnus.com>
1089
1090 * inferior.h (CALL_DUMMY_BREAKPOINT_OFFSET_P): New macro.
1091 Non-zero when CALL_DUMMY_BREAKPOINT_OFFSET is valid.
1092
1093 * infcmd.c (breakpoint_auto_delete_contents): Always define.
1094 (run_stack_dummy): Update.
1095 * infrun.c (wait_for_inferior): Update
1096
1097 1999-04-07 Stan Shebs <shebs@andros.cygnus.com>
1098
1099 * MAINTAINERS: Mark Alexander can no longer maintain
1100 h8300 and other embedded targets, sniff.
1101
1102 1999-04-06 Stan Shebs <shebs@andros.cygnus.com>
1103
1104 * inftarg.c (child_wait): Initialize execd_pathname.
1105 * target.c (debug_to_has_execd): Handle NULL execd_pathname.
1106
1107 * solib.c (clear_solib): Don't call disable_breakpoints_in_shlibs,
1108 this breaks rerunning on sun4 native.
1109
1110 1999-04-06 Jim Blandy <jimb@zwingli.cygnus.com>
1111
1112 * config/sparc/nm-linux.h: Don't redefine PT_ATTACH to use the
1113 deprecated PTRACE_SUNATTACH compatibility commands. The
1114 definitions from <sys/ptrace.h> are fine.
1115
1116 1999-04-06 Martin Hunt <hunt@cygnus.com>
1117
1118 * annotate.h: Declare annotate_signal_hook.
1119
1120 * annotate.c (annotate_signal): Add a call to
1121 annotate_signal_hook().
1122
1123 1999-04-06 Jim Blandy <jimb@zwingli.cygnus.com>
1124
1125 * dwarf2read.c (dwarf_decode_lines): Don't call record_line when
1126 we hit a DW_LNE_end_sequence instruction.
1127
1128 * README: Note that GDB requires an ANSI C compiler, and explain
1129 how to get GCC.
1130
1131 * README: Update.
1132
1133 1999-04-05 Stan Shebs <shebs@andros.cygnus.com>
1134
1135 * NEWS: Add more notes about user-visible changes.
1136
1137 Mon Apr 5 14:56:59 1999 Michael Snyder <msnyder@cleaver.cygnus.com>
1138
1139 * target.c (target_signal_to_string): check for signal
1140 number in range; otherwise if the target board returns
1141 a bogus signal number we might core dump (per David Taylor).
1142
1143 1999-04-05 David Taylor <taylor@ryobi.cygnus.com>
1144
1145 * utils.c (fputs_maybe_filtered): test value of
1146 pagination_enabled before paginating.
1147
1148 1999-04-02 James Ingham <jingham@cygnus.com>
1149
1150 * blockframe.c (get_prev_frame): Remove the redundant
1151 get_prev_frame_info. It is now exactly the same as
1152 get_prev_frame, so there is no reason to have both functions.
1153
1154 * rs6000-tdep.c (rs6000_init_extra_frame_info):
1155 frame.h:
1156 a29k-tdep.c (init_extra_frame_info):
1157 config/a29k/tm-a29k.h:
1158 i386-tdep.c:
1159 Change all references to get_prev_frame_info to get_prev_frame.
1160
1161 1999-04-02 Stan Shebs <shebs@andros.cygnus.com>
1162
1163 * bcache.c, bcache.h, breakpoint.c, defs.h, expprint.c,
1164 expression.h, gdbarch.c, gdbtypes.c, gdbtypes.h, gnu-nat.c,
1165 gnu-nat.h, hppa-tdep.c, maint.c, monitor.c, objfiles.h, parse.c,
1166 remote-mips.c, remote-sds.c, remote.c, sol-thread.c, symmisc.c,
1167 symtab.h, target.c, top.c, typeprint.c, config/nm-gnu.h: Evaporate
1168 the unused MAINTENANCE_CMDS conditional.
1169
1170 1999-04-02 James Ingham <jingham@cygnus.com>
1171
1172 * config/arm/tm-arm.h: (EXTRACT_STRUCT_VALUE_ADDRESS): This needs
1173 to call extract_address, not just cast the first 4 bytes, since
1174 the result will be passed to value_at which expects host-byte
1175 order.
1176
1177 * arm-tdep.c (arm_scan_prologue): The prologue_start address was
1178 directly &'ed with 0x03fffffc, rather than using
1179 ADDR_BITS_REMOVE. This would cause inferior function calls to
1180 report the stack incorrectly on return.
1181
1182
1183 1999-04-02 Keith Seitz <keiths@cygnus.com>
1184
1185 * top.c (ui_loop_hook): Change declaration. Now returns an int.
1186 * win32-nat.c (child_wait): Timeout WaitForDebugEvent and call
1187 the ui_loop_hook if there was no debug event.
1188 * top.c (ui_loop_hook): Change to return an int and include
1189 on all non-Cygwin builds.
1190 * v850ice.c: Change prototype of ui_loop_hook.
1191 (v850ice_wait): Update call to ui_loop_hook.
1192 * ser-unix.c (hardwire_readchar): Enable ui_loop_hook callbacks
1193 for non-Cygwin builds. Check return status of ui_loop_hook and
1194 return a timeout if told to detach. Add more documentation.
1195 * ser-tcp.c (tcp_readchar): Break up timeouts into one second
1196 intervals and call ui_loop_hook so that other UIs can
1197 keep up to date. If ui_loop_hook returns non-zero, then
1198 return SERIAL_TIMEOUT to facilitate detaching from the
1199 target.
1200 * remote.c (remote_interrupted_already): Remove.
1201 (remote_interrupt_twice): Revive.
1202 (remote_interrupt): Call remote_stop to interrupt the target
1203 and install remote_interrupt_twice to take more severe
1204 actions if this fails.
1205 (remote_stop): Only attempt to stop the target. This separates
1206 the command line from other UIs.
1207 * remote-sim.c (gdb_os_poll_quit): Add a call to ui_loop_hook,
1208 if it is defined.
1209
1210 1999-04-01 Jim Blandy <jimb@zwingli.cygnus.com>
1211
1212 Fix for cross-debugging on an AIX host from Johanna Svenningsson:
1213 * ax-gdb.h (enum axs_lvalue_kind): Remove trailing comma from enum.
1214 * ax.h (enum agent_op): Same.
1215 * tracepoint.h (enum actionline_type): Same.
1216 * config/xm-aix4.h: Add declaration for termdef.
1217
1218 1999-03-31 Stan Shebs <shebs@andros.cygnus.com>
1219
1220 * jv-lang.h (dynamics_objfile): Remove decl, conflicts with static
1221 decl in jv-lang.c.
1222
1223 * infrun.c (follow_inferior_fork): Add ifdefs around
1224 SOLIB_REMOVE_INFERIOR_HOOK.
1225
1226 Wed Mar 31 11:39:49 1999 David Taylor <taylor@ryobi.cygnus.com>
1227
1228 * valops.c (search_struct_field): revert HP merge change
1229 to this function -- it causes messages to be printed about
1230 member class ambiguity when the compiler is happy.
1231 (search_struct_field_aux): delete -- added as part of HP merge
1232 change; with aforementioned change it is no longer called.
1233
1234 1999-03-30 Stan Shebs <shebs@andros.cygnus.com>
1235
1236 Make more HPUX-specific code generic.
1237 * infrun.c: Include top.h.
1238 (MAY_SWITCH_FROM_INFERIOR_PID, MAY_FOLLOW_EXEC,
1239 USE_THREAD_STEP_NEEDED): New native macros.
1240 (may_switch_from_inferior_pid, may_follow_exec,
1241 use_thread_step_needed): New globals.
1242 (follow_inferior_fork): Remove HPUXHPPA ifdef.
1243 (follow_exec): Ditto, also save run target and re-push instead of
1244 always pushing child_ops, add ifdefs around SOLIB_RESTART and
1245 SOLIB_CREATE_INFERIOR_HOOK.
1246 (wait_for_inferior): Use new globals instead of ifdefing HPUXHPPA,
1247 always use printf_filtered to report new threads.
1248 (normal_stop): Ditto.
1249 * target.h, target.c (find_run_target): New function.
1250 * config/pa/nm-hppah.h: Define new macros.
1251
1252 1999-03-29 Stan Shebs <shebs@andros.cygnus.com>
1253
1254 * top.h: Include setjmp.h here.
1255 * main.c, top.c: Don't include it here.
1256
1257 1999-03-29 Keith Seitz <keiths@cygnus.com>
1258
1259 * symtab.c (decode_line_1): Take out change which breaks symbols
1260 which include class names and methods, e.g., "Foo::bar".
1261
1262 1999-03-26 Stan Shebs <shebs@andros.cygnus.com>
1263
1264 * configure.tgt (i[3456]86-*-sysv4.2MP, i[3456]86-*-sysv4.2uw2*):
1265 Recognize both, as i[3456]86-*-sysv4.2*.
1266 (i[3456]86-*-sysv5*): Recognize.
1267
1268 * infrun.c (wait_for_inferior): Remove most #if 0 segments.
1269
1270 Fri Mar 26 17:27:27 1999 Andrew Cagney <cagney@b1.cygnus.com>
1271
1272 * blockframe.c (pc_in_call_dummy_on_stack): Fix. Had copied code
1273 from at_entry_point.
1274
1275 Thu Mar 25 19:30:02 1999 Andrew Cagney <cagney@amy.cygnus.com>
1276
1277 * gdbarch.c: Include all headers.
1278
1279 * inferior.h, blockframe.c (pc_in_call_dummy_before_text_end,
1280 pc_in_call_dummy_after_text_end, pc_in_call_dummy_on_stack,
1281 pc_in_call_dummy_at_entry_point): Convert PC_IN_CALL_DUMMY macro's
1282 into functions.
1283
1284 Tue Mar 23 17:22:57 1999 Philippe De Muyter <phdm@macqel.be>
1285
1286 * remote.c, parse.c: Include ctype.h.
1287
1288 1999-03-24 Stan Shebs <shebs@andros.cygnus.com>
1289
1290 * configure.host (mips-dec-mach3*): Use mipsm3 not mach3.
1291
1292 Attempt to sort out SCO-related configs.
1293 * configure.host (i[3456]86-*-sysv4.2*): Use instead of
1294 i[3456]86-*-sysv4.2MP and i[3456]86-*-sysv4.2uw2*.
1295 (i[3456]86-*-sysv5*): Recognize.
1296 * configure.tgt (i[3456]86-*-sco3.2v5*, i[3456]86-*-sco3.2v4*):
1297 Recognize.
1298
1299 Wed Mar 24 16:19:01 1999 Christopher Faylor <cgf@cygnus.com>
1300
1301 * MAINTAINERS: Add DJ Delorie (dj@cygnus.com) as the djgpp
1302 maintainer.
1303
1304 Wed Mar 24 21:19:57 1999 Andrew Cagney <cagney@amy.cygnus.com>
1305
1306 * target.h (enum target_signal): Do not hardwire values of MACH
1307 signals.
1308
1309 1999-03-14 Ken Raeburn <raeburn@raeburn.org>
1310
1311 * target.h (enum target_signal): Add TARGET_SIGNAL_INFO.
1312 * target.c (signals): Add SIGINFO description.
1313 (target_signal_from_host, target_signal_to_host): Translate
1314 SIGINFO to/from TARGET_SIGNAL_INFO.
1315
1316 Wed Mar 24 01:01:27 1999 Andrew Cagney <cagney@sludge.cygnus.com>
1317
1318 * rs6000-tdep.c (rs6000_software_single_step): Change SIGNAL to
1319 unsigned int.
1320
1321 From Rodney Brown <rodneybrown@pmsc.com>
1322 * target.h (enum thread_control_capabilities), breakpoint.h (enum
1323 bptype), breakpoint.c (enum insertion_state_t): Strict ISO-C
1324 doesn't allow trailing comma in enum definition.
1325
1326 Mon Mar 22 15:56:04 1999 Andrew Cagney <cagney@b1.cygnus.com>
1327
1328 * blockframe.c (inside_entry_file, inside_entry_func): Convert #if
1329 CALL_DUMMY_LOCATION to if.
1330 * valops.c (call_function_by_hand): Ditto.
1331 * infcmd.c (run_stack_dummy): Ditto.
1332 * inferior.h (CALL_DUMMY_ADDRESS, CALL_DUMMY_START_OFFSET,
1333 CALL_DUMMY_BREAKPOINT_OFFSET): Provide default.
1334
1335 1999-03-23 Jason Molenda (jsm@bugshack.cygnus.com)
1336
1337 * hppa-tdep.c (pa_register_look_aside): Remove CPU_HPPA_RISC_20
1338 check, test for presence of struct save_state_t and the ss_wide
1339 member directly.
1340 * configure.in: Remove CPU_HPPA_RISC_20 test. Add tests for
1341 HAVE_STRUCT_SAVE_STATE_T and HAVE_STRUCT_MEMBER_SS_WIDE.
1342 * acconfig.h: Add HAVE_STRUCT_SAVE_STATE_T HAVE_STRUCT_MEMBER_SS_WIDE.
1343 * configure, config.in: Regenerated.
1344
1345 Mon Mar 22 13:25:13 1999 Michael Snyder <msnyder@cleaver.cygnus.com>
1346
1347 * infttrace.c (proc_wait): rename to ptrace_wait.
1348
1349 1999-03-18 Jim Blandy <jimb@zwingli.cygnus.com>
1350
1351 * dwarf2read.c: Correctly recognize location expressions that
1352 designate LOC_REF_ARG arguments. Doc fixes.
1353 (isderef): New global. (Yuck.)
1354 (dwarf2_complex_location_expr): New complaint.
1355 (read_func_scope): Reject frame_base attributes that use the
1356 `deref' opcode as too complex.
1357 (new_symbol): If both regoff and isderef are set, and the base
1358 register is the frame pointer, then it's a LOC_REF_ARG argument.
1359 (decode_locdesc): Recognize the `deref' opcode in location
1360 expressions. Complain if it's not the last op in the expression.
1361
1362 * config/fr30/tm-fr30.h (COERCE_FLOAT_TO_DOUBLE): #define this to
1363 be true, or else value_arg_coere won't respect the (accurate)
1364 information we have about whether a function is prototyped.
1365
1366 1999-03-17 Jim Blandy <jimb@zwingli.cygnus.com>
1367
1368 * config/fr30/tm-fr30.h (STACK_ALIGN): Define this here, so
1369 calling functions by hand with odd-sized arguments doesn't munge
1370 the stack.
1371
1372 1999-03-17 Jason Molenda (jsm@bugshack.cygnus.com)
1373
1374 * configure.in (HAVE_MULTIPLE_PROC_FDS): Don't define for Solaris
1375 hosts--gdb doesn't support this yet.
1376 * configure: Regenerated.
1377
1378 1999-03-16 Keith Seitz <keiths@cygnus.com>
1379
1380 * remote.c (remote_binary_checked): New file global.
1381 (check_binary_download): New function to check if
1382 stub supports binary downloading that works with
1383 stubs that are not eight bit clean.
1384 (remote_write_bytes): Check for binary download capability
1385 and use it if available.
1386 Remove references to global remote_binary_length. What a hack.
1387 (putpkt_binary): New function.
1388 (putpkt): Call putpkt_binary.
1389 Use xor to escape trouble characters.
1390 * m32r-stub.c (bin2mem): Follow escape char convention change.
1391
1392 Tue Mar 16 01:11:33 1999 Andrew Cagney <cagney@rhino.cygnus.com>
1393
1394 * target.h (struct target_ops), target.c (debug_to_query),
1395 remote.c (pack_hex_byte, remote_query): Promote char parameters to
1396 int. Stops compile problems with pedantic ISO-C compilers.
1397
1398 Tue Mar 16 15:29:04 1999 Stan Shebs <shebs@andros.cygnus.com>
1399
1400 * go32-xdep.c: Remove, no longer used by anything.
1401 * Makefile.in: Remove references.
1402
1403 * jv-lang.c, jv-lang.h (java_primitive_type): Declare argument
1404 as int instead of char.
1405
1406 Mon Mar 15 11:42:43 1999 Andrew Cagney <cagney@b1.cygnus.com>
1407
1408 * d10v-tdep.c (push_stack_item, pop_stack_item): New function.
1409 (d10v_push_arguments): Use.
1410
1411 From Martin M. Hunt <hunt@cygnus.com>:
1412 * d10v-tdep.c (d10v_push_arguments): When arguments
1413 must be pushed onto the stack, they go on in
1414 reverse order.
1415
1416 1999-03-16 Jim Blandy <jimb@zwingli.cygnus.com>
1417
1418 * symtab.c (make_symbol_overload_list): Don't try to stuff minimal
1419 or partial symbols into the overload list; we don't know their
1420 types. (Thanks to Rajiv Mirani.)
1421
1422 1999-03-15 Jason Molenda (jsm@bugshack.cygnus.com)
1423
1424 * acinclude.m4 (--with-itclconfig, --with-itkconfig, --with-tixconfig):
1425 Fix whitespace so --help messages line up.
1426 * configure.in (--with-cpu): Fix capitalization for --help messages.
1427 * configure, aclocal.m4: Regenerated.
1428
1429 Mon Mar 15 11:39:03 1999 Ian Carmichael <iancarm@cygnus.com>
1430
1431 Support building gdb w/o simulator:
1432 * configure.in: Support --disable-sim. Check for sim directory.
1433 * Makefile.in (IGNORE_SIM, IGNORE_SIM_OBS): New.
1434 * acconfig.h (WITH_SIM): Define.
1435 * configure, config.in: Regenerate.
1436
1437 Mon Mar 15 08:01:33 1999 Elena Zannoni <ezannoni@cygnus.com>
1438
1439 Patch from Andreas Schwab <schwab@issan.cs.uni-dortmund.de>
1440
1441 * top.c (read_command_lines): Reset control_level to 0.
1442 (define_command): Don't do it here.
1443
1444 Sun Mar 14 16:12:15 1999 Andrew Cagney <cagney@rhino.cygnus.com>
1445
1446 * hppah-nat.c (store_inferior_registers): Delete extern
1447 registers[] declaration.
1448
1449 Sun Mar 14 19:17:30 1999 Andrew Cagney <cagney@b1.cygnus.com>
1450
1451 * infrun.c (write_inferior_status_register): New function. Provide
1452 update access to an inf_status register buffer. Only used by HP.
1453 * inferior.h (write_inferior_status_register): Add prototype.
1454
1455 * hppa-tdep.c (push_dummy_frame): Use
1456 write_inferior_status_register when hacking around a sleeping
1457 inferior. Accidently fix byte-order problem.
1458
1459 Sun Mar 14 16:40:10 1999 Andrew Cagney <cagney@b1.cygnus.com>
1460
1461 * config/pa/tm-hppa.h (PUSH_DUMMY_FRAME): Fix parameter. Address
1462 not needed.
1463
1464 Fri Mar 12 13:11:48 1999 Michael Snyder <msnyder@cleaver.cygnus.com>
1465
1466 * remote.c (remote_write_bytes): fix 'X' packet protocol so that it
1467 can't overwrite the end of its buffer with escaped characters.
1468
1469 1999-03-12 Jim Blandy <jimb@zwingli.cygnus.com>
1470
1471 Alpha patches from Richard Henderson:
1472
1473 * alpha-tdep.c (alpha_skip_prologue): Recognize subq.
1474
1475 * config/alpha/tm-alpha.h (REGISTER_NAMES): No f31, but fpcr.
1476 (FPCR_REGNUM): New.
1477 (REGISTER_CONVERTIBLE): Don't convert fpcr.
1478 (REGISTER_VIRTUAL_TYPE): Don't make fpcr a double.
1479
1480 * stabsread.c (define_symbol): Only consider live range extension
1481 if we have an open parenthesis.
1482
1483 1999-03-11 Jim Blandy <jimb@zwingli.cygnus.com>
1484
1485 * monitor.c (monitor_fetch_register): Print RDEBUG info correctly
1486 when the register name is null.
1487
1488 Thu Mar 11 19:33:07 1999 Stan Shebs <shebs@andros.cygnus.com>
1489
1490 * infrun.c (wait_for_inferior): Change #if DECR_PC_AFTER_BREAK
1491 uses to expressions, remove redundant extern decls.
1492
1493 Thu Mar 11 18:05:11 1999 Michael Snyder <msnyder@cleaver.cygnus.com>
1494
1495 * infptrace.c (proc_wait): Rename to ptrace_wait.
1496 * inftarg.c (child_wait): call ptrace_wait instead of proc_wait.
1497 * inferior.h: Declare ptrace_wait instead of proc_wait.
1498
1499 Thu Mar 11 11:46:25 1999 Andrew Cagney <cagney@amy.cygnus.com>
1500
1501 * breakpoint.c (create_solib_load_unload_event_breakpoint,
1502 create_fork_vfork_event_catchpoint, tcatch_command,
1503 create_exception_catchpoint, break_at_finish_at_depth_command_1,
1504 catch_fork_command_1, ep_skip_leading_whitespace,
1505 break_at_finish_command_1, catch_exec_command_1,
1506 catch_exception_command_1, stop_command, stopin_command,
1507 stopat_command, ep_parse_optional_filename,
1508 ep_find_event_name_end, ep_parse_optional_if_clause,
1509 catch_fork_command_1), stack.c (show_and_print_stack_frame_stub,
1510 print_stack_frame_stub, print_only_stack_frame_stub,
1511 backtrace_command_1, backtrace_full_command, func_command),
1512 valprint.c (print_decimal), source.c (print_source_lines_base):
1513 Add prototype.
1514
1515 * stack.c (print_stack_frame_stub, show_and_print_stack_frame_stub,
1516 print_only_stack_frame_stub): Make param void*.
1517
1518 Wed Mar 10 19:33:28 1999 Geoffrey Noer <noer@cygnus.com>
1519
1520 * win32-nat.c: If old Cygwin Win32 API headers aren't being used,
1521 define some gdb-specific defines that shouldn't have been in the
1522 global headers.
1523
1524 Wed Mar 10 21:20:25 1999 Andrew Cagney <cagney@b1.cygnus.com>
1525
1526 * findvar.c (registers, register_valid): Replace array with pointer.
1527 (build_findvar): New function. Allocate space for REGISTERS and
1528 REGISTER_VALID.
1529 (_initialize_findvar): Call build_findvar.
1530
1531 * inferior.h (registers, register_valid): Replace array with
1532 pointer.
1533
1534 * inferior.h (struct inferior_status): Move definition from here.
1535
1536 * infrun.c (struct inferior_status): To here.
1537 (struct inferior_status): Change ``stop_registers'' and
1538 ``registers'' to pointers.
1539 (xmalloc_inferior_status, free_inferior_status): New functions.
1540 (restore_inferior_status): Call free_inferior_status.
1541 (save_inferior_status): Call xmalloc_inferior_status.
1542 (discard_inferior_status): New function, discard inf_status
1543 buffer. Call free_inferior_status.
1544
1545 * inferior.h (stop_registers): Replace array with pointer.
1546 * infrun.c (stop_registers): Update.
1547 (build_infrun): Initialize stop_registers.
1548 (_initialize_infrun): Call build_infrun.
1549
1550 Wed Mar 10 14:50:42 1999 Andrew Cagney <cagney@amy.cygnus.com>
1551
1552 * alpha-tdep.c (alpha_linux_sigtramp_offset): Only compile when
1553 LINUXALPHA target. Hack.
1554
1555 * infrun.c (set_follow_fork_mode_command): Make static. Add
1556 prototype.
1557 * tracepoint.c (add_register): Ditto.
1558 * valprint.c (strcat_longest): Comment out. Does not appear to be
1559 used.
1560 * valops.c (find_method_list): Make static. Add prototype.
1561 * thread.c (target_find_new_threads): Make static. Add prototype.
1562 * stack.c (stack_publish_stopped_with_no_frame,
1563 select_and_maybe_print_frame): Comment out. Does not appear to be
1564 used.
1565 (current_frame_command): Add prototype.
1566 * breakpoint.c (break_at_finish_command,
1567 break_at_finish_at_depth_command, tbreak_at_finish_command): Make
1568 static. Add prototype.
1569 * findvar.c (read_relative_register_raw_bytes_for_frame): Ditto.
1570
1571 Wed Mar 10 23:38:54 1999 Andrew Cagney <cagney@b1.cygnus.com>
1572
1573 * corefile.c (registers): Delete redundant variable declaration.
1574 * inferior.h (run_stack_dummy): Change array argument to pointer.
1575 * infcmd.c (run_stack_dummy): Update.
1576 * value.h (value_being_returned): Change RETBUF to a pointer.
1577 * values.c (value_being_returned): Update.
1578
1579 Wed Mar 10 11:08:16 1999 Andrew Cagney <cagney@amy.cygnus.com>
1580
1581 * source.c (list_command): GCC suggested explicit braces to avoid
1582 ambiguous `else'.
1583
1584 * jv-typeprint.c: Include "c-lang.h".
1585 * Makefile.in (jv-typeprint.o): Add dependency.
1586 * jv-valprint.c: Include "gdbcore.h", "annotate.h".
1587 * Makefile.in (jv-valprint.o): Add dependencies.
1588 * objfiles.c: Include "breakpoint.h".
1589 * Makefile.in (objfiles.o): Add dependency.
1590 * main.c: Include <unistd.h>.
1591 * parse.c: Include <ctype.h>.
1592 * remote.c: Include <ctype.h>.
1593 * ser-tcp.c: Include <unistd.h>.
1594 * ax-general.c: Include "value.h".
1595 * Makefile.in (ax-general.o): Add dependency.
1596
1597 * alpha-tdep.c (alpha_push_arguments): Make ``i'' an int instead
1598 of a register.
1599 * frame.h (show_and_print_stack_frame): Add function prototype.
1600 * language.h (language_enum): Add function prototype.
1601 * value.h (find_overload_match): Add function prototype.
1602
1603 * defs.h, utils.c (subset_compare): Rename subsetCompare. Add
1604 prototype.
1605 * stack.c (backtrace_command): Update.
1606
1607 Wed Mar 10 13:58:36 1999 Andrew Cagney <cagney@b1.cygnus.com>
1608
1609 * configure.in (AC_CHECK_HEADERS): Check for <sys/select.h>
1610 * configure, config.in: Re-generate.
1611 * inflow.c: Conditionally include <sys/select.h>.
1612
1613 Wed Mar 10 13:44:38 1999 Andrew Cagney <cagney@b1.cygnus.com>
1614
1615 * frame.h (struct dummy_frame): Move from here.
1616 * blockframe.c (struct dummy_frame): To here.
1617
1618 * blockframe.c (struct dummy_frame): Replace ``regs'' with pointer
1619 ``registers''.
1620 (generic_pop_dummy_frame): Free it.
1621 (generic_push_dummy_frame): Allocate dummy frame register buffer.
1622
1623 Wed Mar 10 11:08:16 1999 Andrew Cagney <cagney@amy.cygnus.com>
1624
1625 * thread.c (_initialize_thread): Delete redundant ``extern struct
1626 cmd_list_element *cmdlist''.
1627 * printcmd.c (print_command_1): Ditto for ``objectprint'';
1628
1629 1999-03-09 Stan Shebs <shebs@andros.cygnus.com>
1630
1631 * MAINTAINERS: New file, list of maintainers and areas they
1632 maintain.
1633
1634 1999-03-09 Rodney Brown <RodneyBrown@pmsc.com>
1635
1636 Get working on UnixWare 2.1.1.
1637 * acconfig.h: Update for defines for procfs.c.
1638 * configure.in: Identify defines for procfs.c.
1639 * configure.host: i386-*-sysv4.2uw2* => i386v42mp
1640 * configure.tgt: i386-*-sysv4.2uw2* => i386v42mp
1641 * configure, config.in: Regenerate.
1642 * procfs.c: Rename HAVE_NO_PRRUN_T to HAVE_PRRUN_T (autoconf
1643 standard), wrap UNIXWARE difference in THE_PR_LWP macro for
1644 legibility.
1645 * config/i386/tm-i386v42mp.h: Remove HAVE_PSTATUS_T,
1646 HAVE_NO_PRRUN_T; now set by configure.
1647
1648 Tue Mar 9 16:29:24 1999 Andrew Cagney <cagney@b1.cygnus.com>
1649
1650 * i386-tdep.c (gdb_print_insn_i386): Abort when disassembly_flavor
1651 undefined..
1652
1653 * fr30-tdep.c (_initialize_fr30_tdep): Add prototype. Fix
1654 coding style.
1655
1656 * target.c (debug_to_enable_exception_callback,
1657 debug_to_get_current_exception_event): Return result of call to
1658 debug_target().
1659
1660 1999-03-09 Jim Blandy <jimb@zwingli.cygnus.com>
1661
1662 Another HURD fix from Mark Kettenis:
1663 * gnu-nat.c: Include <string.h>. Remove declaration of strerror.
1664 Include <bits/waitflags.h> instead of <waitflags.h> and define
1665 _SYS_WAIT_H to prevent the warning that we should not include it.
1666 (gnu_create_inferior): Change return type of attach_to_child to
1667 void. Do not return INFERIOR_PID.
1668 (gnu_pid_to_exec_file): Change return type to char *.
1669 Return NULL.
1670
1671 Fix for the HURD from Mark Kettenis:
1672 * configure.in: Add AC_PROG_AWK. Needed by the machine-dependent
1673 makefile fragments for the Hurd.
1674 * Makefile.in (AWK): Add. Set by configure.
1675 * configure: Regenerated.
1676
1677 1999-03-08 Jason Molenda (jsm@bugshack.cygnus.com)
1678
1679 * infttrace.c (hppa_get_process_events): Removed. Function only
1680 usable on HPUX 10 and above. It is not called by any other part
1681 of GDB.
1682 * hppah-nat.c (hppa_get_process_events): Ditto.
1683 (child_pid_to_exec_file): Only call ptrace with
1684 PT_GET_PROCESS_PATHNAME if that symbol has been defined.
1685 * config/pa/nm-hppah.h: Don't set up prototypes et al for
1686 hppa_get_process_events.
1687
1688 * config/pa/hppahpux.mh (TERM_LIB): Do not initialize, let autoconf
1689 determine best library automatically.
1690 * config/pa/hpux1020.mh: Ditto.
1691 * config/pa/hpux1100.mh: Ditto.
1692 * configure.in (TERM_LIB): Also check for libHcurses.
1693 * configure: Regenerated.
1694
1695 Thu Mar 4 17:16:04 1999 Michael Snyder <msnyder@cleaver.cygnus.com>
1696
1697 * m32r-stub.c: add support for crc "Compare" command.
1698
1699 1999-03-04 Jim Blandy <jimb@zwingli.cygnus.com>
1700
1701 * fr30-tdep.c (fr30_store_return_value): Allocate zeroes
1702 dynamically, to save BSS space, and to remove assumptions about
1703 the size of the largest value we'll return.
1704
1705 * config/fr30/tm-fr30.h (fr30_store_return_value): Use PARAMS in
1706 prototype.
1707
1708 Thu Mar 4 08:37:35 1999 Andrew Cagney <cagney@b1.cygnus.com>
1709
1710 * sh3-rom.c (sh3_supply_register, sh3_supply_register),
1711 mips-tdep.c (mips_push_arguments), m32r-rom.c
1712 (m32r_upload_command), m32r-tdep.c (decode_prologue), monitor.c
1713 (longlong_hexchars), tracepoint.c (validate_actionline,
1714 read_actions), mdebugread.c
1715 (parse_symbol), jv-typeprint.c
1716 (java_type_print_base, java_type_print_base), mdebugread.c
1717 (parse_symbol), top.c (source_command), utils.c
1718 (floatformat_to_doublest): GCC suggest explicit braces to avoid
1719 ambiguous `else'.
1720
1721 * tracepoint.c (map_args_over_tracepoints, trace_actions_command),
1722 m32r-rom.c (m32r_supply_register), win32-nat.c
1723 (handle_output_debug_string, child_continue), i960-tdep.c
1724 (pop_frame), m32r-rom.c (m32r_upload_command): GCC suggested
1725 parentheses around assignment used as truth value.
1726
1727 * remote-sds.c (sds_wait), monitor.c (monitor_fetch_register),
1728 ser-e7kpc.c, (dosasync_write), arc-tdep.c (arc_get_frame_setup):
1729 GCC suggested parentheses around operands.
1730
1731 * c-typeprint.c (c_type_print_base): GCC suggested enclosing
1732 "while" expression in paren.
1733
1734 Wed Mar 3 18:14:33 1999 Andrew Cagney <cagney@chook.cygnus.com>
1735
1736 * sol-thread.c (save_inferior_pid): Cast the saved pid to void*.
1737 (restore_inferior_pid): Takes void* as required by make_cleanup.
1738 Casts pid back to an int.
1739
1740 * procfs.c (make_cleanup_close_proc_file,
1741 close_proc_file_cleanup): Create a proc_file cleanup.
1742 (info_proc): Use.
1743
1744 * defs.h (make_cleanup_freeargv): Helper function. Establish
1745 cleanup using freeargv. Can not just typecast/pass freeargv as it
1746 violates ISO-C.
1747 * utils.c (do_freeargv): Helper.
1748 (make_cleanup_freeargv): New function.
1749
1750 * symmisc.c (maintenance_print_symbols,
1751 maintenance_print_psymbols, maintenance_print_msymbols), symfile.c
1752 (symbol_file_command), stack.c (backtrace_command), remote-sim.c
1753 (gdbsim_create_inferior, gdbsim_open), remote-mips.c
1754 (common_open), procfs.c (info_proc), infrun.c (handle_command,
1755 xdb_handle_command), exec.c (exec_file_attach): Call
1756 make_cleanup_freeargv.
1757
1758 1999-03-03 James Ingham <jingham@cygnus.com>
1759
1760 * i386-tdep.c (_initialize_i386_tdep): Set the inital value for
1761 disassembly flavor at startup, rather than hardcoding it.
1762
1763 1999-03-03 Jim Blandy <jimb@zwingli.cygnus.com>
1764
1765 Put return values in the right place.
1766 * fr30-tdep.c (fr30_store_return_value): New function.
1767 * config/fr30/tm-fr30.h (STORE_RETURN_VALUE): Call
1768 fr30_store_return_value.
1769
1770 Wed Mar 3 18:10:55 1999 Andrew Cagney <cagney@chook.cygnus.com>
1771
1772 * gdbtypes.c (virtual_base_list_aux): Return void. Add prototype.
1773
1774 * breakpoint.c (map_catch_names): Comment out unused function.
1775
1776 1999-03-02 Jason Molenda (jsm@bugshack.cygnus.com)
1777
1778 * hppa-tdep.c (pa_register_look_aside): Only refer to save_state_t
1779 structure on PA 2.0 systems.
1780
1781 1999-03-02 Stan Shebs <shebs@andros.cygnus.com>
1782
1783 From Gary Thomas <gthomas@cygnus.co.uk>:
1784 * arm-tdep.c (ARM_LE_BREAKPOINT, ARM_BE_BREAKPOINT,
1785 THUMB_LE_BREAKPOINT, THUMB_BE_BREAKPOINT): Use illegal instruction
1786 instead of SWI 24.
1787 * config/arm/tm-arm.h (CALL_DUMMY): Ditto.
1788 (IN_SIGTRAMP): Define.
1789
1790 1999-03-02 Nick Clifton <nickc@cygnus.com>
1791
1792 * findvar.c (store_address): Delete incorrect big endian
1793 code.
1794
1795 Tue Mar 2 18:02:42 1999 Andrew Cagney <cagney@chook>
1796
1797 * configure.in (gdb_cv_os_cygwin): Compat. Continue to reconize
1798 __CYGWIN32__.
1799
1800 1999-03-01 Jason Molenda (jsm@bugshack.cygnus.com)
1801
1802 * configure.in: Move setting of gdb_cv_os_cygwin to before
1803 setting of TERM_LIB. Check for __CYGWIN__ instead of __CYGWIN32__.
1804 * configure: Regenerated.
1805
1806 1999-03-01 DJ Delorie <dj@cygnus.com>
1807
1808 * configure.in: Change -cygwin32* to -cygwin*.
1809 * configure: Ditto.
1810
1811 1999-02-25 Stan Shebs <shebs@andros.cygnus.com>
1812
1813 * breakpoint.c (SOLIB_LOADED_LIBRARY_PATHNAME,
1814 SOLIB_UNLOADED_LIBRARY_PATHNAME, SOLIB_CREATE_CATCH_LOAD_HOOK,
1815 SOLIB_CREATE_CATCH_UNLOAD_HOOK): Supply default definitions.
1816 * infrun.c (SOLIB_IN_DYNAMIC_LINKER): Ditto.
1817
1818 1999-02-25 Keith Seitz <keiths@cygnus.com>
1819
1820 * corelow.c (core_close): Clear out solib state before
1821 closing the bfd associated with the core file.
1822 * solib.c (clear_solib): Mention that clear_solib requires
1823 an open BFD in order for disable_breakpoints_in_shlibs to
1824 determine whether breakpoints live in shared libraries.
1825
1826 1999-02-24 Jason Molenda (jsm@bugshack.cygnus.com)
1827
1828 * configure.in: Set CPU_HPPA_RISC_20 if the host CPU is a PA 2.0
1829 processor.
1830 * acconfig.h: Add CPU_HPPA_RISC_20
1831 * config.in, configure: Regenerated.
1832 * hppa-tdep.c (pa_register_look_aside): Only refer to new
1833 structure elements if we are on a PA2.0 system.
1834 * defs.h: Include limits.h.
1835
1836 Tue Feb 23 14:37:08 1999 Michael Snyder <msnyder@cleaver.cygnus.com>
1837
1838 * infrun.c (wait_for_inferior): Check scheduler_locking state
1839 before resuming after a thread-specific breakpoint.
1840
1841 1999-02-23 Jim Blandy <jimb@zwingli.cygnus.com>
1842
1843 * aclocal.m4, config.in, configure: Regenerated with latest
1844 autotools.
1845
1846 Mon Feb 22 12:32:19 1999 Per Bothner <bothner@cygnus.com>
1847
1848 * jv-valprint.c (java_val_print): Restore line that somehow got lost.
1849
1850 * jv-valprint.c (java_print_value_fields): Check for NULL type.
1851
1852 1999-02-21 Jim Blandy <jimb@zwingli.cygnus.com>
1853
1854 * tm-h8500.h, i386lynx-nat.c: Removed. These files are long
1855 dead; it seems that they only appeared due to some CVS weirdness.
1856 If they appear again, we may need to distribute garlic and holy
1857 water.
1858
1859 1999-02-19 Jason Molenda (jsm@bugshack.cygnus.com)
1860
1861 * configure.in (TERM_LIB): Move checking for TERM_LIB, substituting.
1862 * configure: Regenerated.
1863
1864 1999-02-19 Robert Hoehne (robert.hoehne@gmx.net)
1865
1866 * configure.host (i[3456]86-*-msdosdjgpp*): New host.
1867 * configure.tgt (i[3456]86-*-msdosdjgpp*): New target.
1868 * go32-nat.c: New file, native DJGPP support.
1869 * config/i386/go32.mh: Rewrite for DJGPP (go32) host.
1870 * config/i386/go32.mt: New file, DJGPP (go32) target.
1871 * config/i386/nm-go32.h: New file.
1872 * config/i386/tm-go32.h: New file.
1873 * config/i386/xm-go32.h: Rewritten for current DJGPP.
1874
1875 1999-02-18 Jason Molenda (jsm@bugshack.cygnus.com)
1876
1877 * reply_mig_hack.awk, config/nm-gnu.h, config/alpha/nm-linux.h
1878 config/alpha/xm-alphalinux.h, config/alpha/xm-alphaosf.h
1879 config/i386/nm-i386sco5.h, config/i386/tm-fbsd.h, config/i386/tm-i386.h
1880 config/powerpc/nm-aix.h, config/powerpc/tm-macos.h
1881 config/powerpc/tm-ppc-aix.h, config/powerpc/xm-aix.h
1882 config/rs6000/tm-rs6000-aix4.h, testsuite/gdb.chill/tests1.ch
1883 testsuite/gdb.chill/tests2.ch, testsuite/gdb.chill/tests2.exp:
1884 Update FSF address in copyright notices.
1885
1886 1999-02-18 Jason Molenda (jsm@bugshack.cygnus.com)
1887
1888 * configure.in: Quote "$GCC" correctly.
1889 * configure: Regenerated.
1890
1891 1999-02-18 Jim Blandy <jimb@zwingli.cygnus.com>
1892
1893 * dbxread.c (elfstab_build_psymtabs): Don't assume that there's a
1894 section named ".text", which has all the code in it. Instead, look
1895 at all the sections in the file with the `code' flag set.
1896 (find_text_range): New function, that does all the work.
1897
1898 Thu Feb 18 17:50:45 1999 Andrew Cagney <cagney@b1.cygnus.com>
1899
1900 * mips-tdep.c (FP_REGISTER_DOUBLE): Conditionally define.
1901
1902 Fri Jan 29 16:51:11 1999 Andrew Cagney <cagney@chook.cygnus.com>
1903
1904 * mips-tdep.c (return_value_location): New function. Merge/rewrite
1905 of return-value code in mips_extract_return_value,
1906 mips_store_return_value. Stop buffer overflow when 64 bit value
1907 in 32 bit registers. Extract 64bit float from 32 bit register
1908 pair of correct order.
1909 (mips_extract_return_value, mips_store_return_value): Call
1910 return_value_location. For store, ensure that remainder of
1911 register is zero.
1912
1913 Wed Feb 17 10:10:27 1999 Stu Grossman <grossman@babylon-5.cygnus.com>
1914
1915 * gdbtypes.h (get_discrete_bounds): Remove duplicate decl.
1916
1917 * jv-typeprint.c (java_type_print_base): Change fputs => fputs_filtered.
1918
1919 Mon Jan 25 18:30:57 1999 Per Bothner <bothner@cygnus.com>
1920
1921 * jv-lang.h (JAVA_OBJECT_SIZE): Change from hard-wired constant.
1922 (java_primitive_type_from_name, get_java_object_header_size): Declare.
1923 * jv-lang.c (java_class_from_object): Use get_java_object_type.
1924 * jv-lang.c: Update Class field names: dtable->vtable,
1925 msize->method_count, nfields->field_count, bfsize->size_in_bytes,
1926 nmethods->method_count.
1927 (type_from_class): Demangle array type names.
1928 (java_link_class_type): Array type names are now demangled.
1929 (get_java_object_type): If not defined yet, try looking it up.
1930 (get_java_object_header_size): New function.
1931 (java_primitive_type_from_name): New function.
1932 (java_demangled_signature_length, java_demangled_signature_copy): New.
1933 (java_demangle_type_signature): Re-implement using above functions.
1934 (evaluate_subexp_java): For UNOP_IND, call evaluate_subexp_java
1935 to evaluate subexp (not evaluate_subexp_standard).
1936 For BINOP_SUBSCRIPT update for new array type naming scheme.
1937 * jv-valprint.c (java_value_print): Use java_class_from_object.
1938 Update array printing to new array type naming convention.
1939 (java_val_print): Doing check_typedef when printing a pointer is
1940 is a waste of effort. Also, handle TYPE_CODE_INT, to make sure
1941 Java bytes as not printed as C chars.
1942
1943 Fri Jan 8 16:58:22 1999 Stu Grossman <grossman@babylon-5.cygnus.com>
1944
1945 * blockframe.c (find_pc_sect_partial_function): Search full symtabs as
1946 a last ditch effort (after the partial & minimal symtabs).
1947 * defs.h utils.c: Fixup prototypes for vprintf_filtered,
1948 vfprintf_filtered, vfprintf_unfiltered and vprintf_unfiltered to return
1949 ints to match their standard equivalents.
1950 * defs.h symtab.c top.c: Create skip_prologue_hook to allow Java to
1951 control the prologue skipping process.
1952 * jv-typeprint.c (java_type_print_base): Remove extern for
1953 jv_class_demangle, add new arg for objfile (NULL).
1954 * symtab.h: Remove struct sourcevector and struct source. Definately
1955 not needed.
1956 * values.c (value_virtual_fn_field): Fixes code to handle new vtable
1957 debug info format. Patch from marka.
1958
1959 Wed Dec 16 23:11:25 1998 Stu Grossman <grossman@fencer.cygnus.com>
1960
1961 * jv-lang.c (java_class_from_object java_class_is_primitive
1962 is_object_type): Change dtable to vtable.
1963 * (java_primitive_type): Change arg to type char.
1964 * (_initialize_java_language): Make java_char_type be unsigned.
1965 * jv-lang.h: Fixup prototypes.
1966
1967 Mon Dec 7 19:02:15 1998 Stu Grossman <grossman@babylon-5.cygnus.com>
1968
1969 * jv-valprint.c (java_value_print): Fix printing of values where
1970 run time type != compile time type.
1971
1972 Fri Dec 4 15:23:38 1998 Stu Grossman <grossman@fencer.cygnus.com>
1973
1974 * Makefile.in: Whack out m2-typeprint.c.
1975 * c-typeprint.c (c_type_print_varspec_suffix) typeprint.h: Make this
1976 global. It's needed by Java.
1977 * (c_type_print_base): Whack prefix off of qualified method names
1978 (names with name spaces).
1979 * gdbtypes.h (struct cplus_struct_type): Add bits for Java attributes.
1980 Shrink voffset
1981 to 16 bits to compensate for added bits above (hopefully this is still
1982 enough).
1983 * Add new accessor macros (TYPE_FND_FIELD_PUBLIC, ...) for all new
1984 attribute bits.
1985 * jv-typeprint.c (java_type_print_base): Fix printing of method
1986 attributes. Handle JVM style manglings.
1987 * (java_print_type): Enable code type print varspec_suffix to allow
1988 array indices to print out.
1989 * jv-valprint.c (java_val_print): Minor formatting.
1990 * m2-lang.c (m2_language_d): Change m2_print_type to c_print_type.
1991 * stabsread.c (read_member_functions): Save public and static attributes.
1992
1993 Wed Feb 17 15:32:57 1999 Elena Zannoni <ezannoni@kwikemart.cygnus.com>
1994
1995 * breakpoint.c (watch_command_1): Reformat comment.
1996
1997 * c-typeprint.c (c_type_print_base): Reformat comments.
1998
1999 1999-02-17 Jim Blandy <jimb@zwingli.cygnus.com>
2000
2001 * Makefile.in (VERSION): Bump version to 4.17.2.
2002
2003 Tue Feb 16 15:48:20 1999 Edith Epstein <eepstein@sophia.cygnus.com>
2004
2005 * config/pa/nm-hppah.h: Added prototype declarations for
2006 hppa_enable_page_protection_events and
2007 hppa_disable_page_protection_events.
2008
2009 * inftarg.c (child_wait): Fixed code that checks whether
2010 or not the target program has done a fork/vfork.
2011 related_pid does not have a value unless the target
2012 program has forked/vforked.
2013
2014 * infttrace.c (hppa_insert_hw_watchpoint): Make sure that
2015 function always returns a value.
2016 (hppa_remove_hw_watchpoint): Make sure that function always
2017 returns a value.
2018
2019 Tue Feb 16 06:31:58 1999 Keith Seitz <keiths@cygnus.com>
2020
2021 * config/powerpc/tm-ppc-eabi.h: Do not define PC_IN_CALL_DUMMY,
2022 let the generic call dummy infrastructure do it.
2023
2024 Sun Feb 14 18:21:08 1999 Mark Alexander <marka@cygnus.com>
2025
2026 * config/sh/tm-sh.h (BELIEVE_PCC_PROMOTION): Define, so that
2027 coffread.c will correctly handle char or short function parameters.
2028
2029 1999-02-11 Jason Molenda (jsm@bugshack.cygnus.com)
2030
2031 * configure, aclocal.m4: Regenerate with correct version of aclocal.
2032
2033 1999-02-10 Syd Polk <spolk@cygnus.com>
2034
2035 * acinclude.m4: Fix for new location of itclConfig.sh and itkConfig.sh.
2036 * aclocal.m4: Regnerate.
2037 * configure: Regenerate.
2038
2039 1999-02-10 Jason Molenda (jsm@bugshack.cygnus.com)
2040
2041 * demangle.c: Fix comments to mention "set demangle-style"
2042 instead of "set demangle".
2043 Run through indent to fix minor indenting problems.
2044
2045 Wed Feb 10 17:53:09 1999 Bob Manson <manson@charmed.cygnus.com>
2046
2047 * i386-tdep.c (gdb_print_insn_i386): Add missing returns.
2048
2049 Wed Feb 10 13:17:21 1999 Stan Shebs <shebs@andros.cygnus.com>
2050
2051 Declare Gould configuration obsolete:
2052 * configure.host, configure.tgt: Comment out Gould configs.
2053 * Makefile.in: Comment out Gould-related actions.
2054 * gould-xdep.c, gould-tdep.c, config/gould/*: Comment out.
2055 * NEWS: Mention obsolete status.
2056
2057 1999-02-09 DJ Delorie <dj@cygnus.com>
2058
2059 * sparcl-tdep.c: UDP download works in cygwin
2060
2061 1999-02-08 Jason Molenda (jsm@bugshack.cygnus.com)
2062
2063 * gnu-regex.c: Check ENABLE_NLS instead of HAVE_LIBINTL_H.
2064 * configure.in: Don't check for libintl.h.
2065 * configure, config.in: Regenerated.
2066
2067 Mon Feb 8 18:10:50 1999 Stan Shebs <shebs@andros.cygnus.com>
2068
2069 * NEWS: Mention new X packet and PowerPC variant support.
2070
2071 1999-02-08 Nick Clifton <nickc@cygnus.com>
2072
2073 * configure.host: Add support for StrongARM host.
2074 * configure.tgt: Add support for StrongARM target.
2075
2076 Mon Feb 8 12:05:05 1999 David Taylor <taylor@texas.cygnus.com>
2077
2078 * dsrec.c (make_srec): Cast targ_addr to int in call to sprintf
2079 otherwise on big endian machine with a bfd_vma of 64 bits,
2080 *everything* gets loaded at location 0.
2081
2082 Mon Feb 7 10:05:43 1999 Frank Ch. Eigler <fche@cygnus.com>
2083
2084 * infrun.c (wait_for_inferior): Allow SIGTRAP to be "pass"ed
2085 to target program.
2086
2087 Fri Feb 5 16:46:14 1999 Stan Shebs <shebs@andros.cygnus.com>
2088
2089 * NEWS: Add mentions of various new things.
2090
2091 Thu Feb 4 00:19:14 1999 Christopher Faylor <cgf@cygnus.com>
2092
2093 * configure.in: Move termcap determination later in the
2094 file to catch setting of cygwin flag.
2095 * configure: Regenerate.
2096
2097 Wed Feb 3 14:16:38 1999 Christopher Faylor <cgf@cygnus.com>
2098
2099 * config/i386/cygwin.mh: Move TERMCAP test code to configure.in.
2100 * configure.in: Treat libtermcap.a detection as a special case
2101 when hosting on cygwin.
2102 * configure: Regenerate.
2103
2104 1999-02-03 Keith Seitz <keiths@cygnus.com>
2105
2106 * remote.c (remote_binary_download, remote_binary_length): New
2107 static globals for dealing with binary transmissions.
2108 (remote_write_bytes): Add support for binary downloads
2109 by shadowing the "M" packet with a new "X" packet. This
2110 defaults to ON; if the stub does not understand this, it
2111 will fall back to using "M".
2112 (putpkt): Add support for binary downloading.
2113 * monitor.c (monitor_expect): The mon2000 monitor
2114 on the MSA2000 will also emit random DC1/DC3 chars.
2115 * m32r-stub.c: Change all char's to unsigned char's
2116 to support binary downloading.
2117 (handle_exception): Add support for binary downloading
2118 via a new "X" packet.
2119 (getpacket): Do NOT strip eighth bit of incoming chars.
2120 Watch out for escaped characters in the incoming stream.
2121 (putpacket): Do NOT strip eighth bit of incoming chars.
2122 (bin2mem): New function to write binary data directly to
2123 memory.
2124 * m32r-rom.c: Add new "mon2000" target.
2125
2126 Tue Feb 2 18:40:29 1999 Elena Zannoni <ezannoni@kwikemart.cygnus.com>
2127
2128 * hp-psymtab-read.c (hpread_build_psymtabs): Coerce first arg
2129 passed to make_cleanup to the correct type.
2130 (hpread_quick_traverse): Change fifth arg to call to
2131 hpread_end_psymtab to be 0.
2132 Compare CURR_MODULE_END to 0 rather than NULL.
2133 Get rid of ifdef'ed out code.
2134 (scan_procs): Get rid of ifdef'ed out code.
2135
2136 * somread.c (som_symfile_read): Coerce first argument passed to
2137 make_cleanup to the correct type.
2138
2139 Tue Feb 2 17:36:29 1999 Elena Zannoni <ezannoni@kwikemart.cygnus.com>
2140
2141 * hp-psymtab-read.c (do_pxdb): New function. Check whether the
2142 file needs to be processed by pxdb (an HP debug info massaging
2143 tool), if so call it.
2144 (hpread_build_psymtabs): Initialize scan_start to 0 and
2145 simplify flow of control.
2146
2147 * somread.c (som_symfile_read): Add call to do_pxdb (),
2148 in hp-psymtab-read.c.
2149
2150 * symfile.c (symbol_file_add): Remove ifdef'ed out HPUX specific
2151 code.
2152 (symfile_bfd_open): Remove HPUXHPPA ifdef'ed code. Code is now
2153 in hp-psymtab-read.c.
2154
2155 1999-02-02 Martin Hunt <hunt@cygnus.com>
2156
2157 * printcmd.c (print_scalar_formatted): Use strcat to concat all
2158 the output together before calling fprintf_filtered().
2159
2160 1999-02-01 Jason Molenda (jsm@bugshack.cygnus.com)
2161
2162 * configure.in: Require autoconf 2.13.
2163 (AM_EXEEXT): Replace with new AC_EXEEXT.
2164 * acinclude.m4: Move itcl header macros from aclocal.m4 to here.
2165 * aclocal.m4: Regenerated.
2166 * configure: Regenerated.
2167
2168 1999-02-01 Jim Blandy <jimb@zwingli.cygnus.com>
2169
2170 Allow PPC users to select which PPC/RS6000 variant they're
2171 debugging at run-time. At the moment, the only thing this affects
2172 is the set of registers visible.
2173 * config/rs6000/tm-rs6000.h (REGISTER_NAME): Define this as a call
2174 to the function rs6000_register_name.
2175 (rs6000_register_name): Include extern decl.
2176 (NUM_REGS): Bump to 183. What's the right way to do this?
2177 (FIRST_UISA_SP_REGNUM, LAST_UISA_SP_REGNUM): Renamed from
2178 FIRST_SP_REGNUM, LAST_SP_REGNUM.
2179 (REGISTER_BYTES): Recompute this.
2180 * rs6000-tdep.c: Renamed all uses of FIRST_SP_REGNUM and
2181 LAST_SP_REGNUM to FIRST_UISA_SP_REGNUM and LAST_UISA_SP_REGNUM, with
2182 some concomitant formatting changes.
2183 #include "gdbcmd.h", so we can define commands here.
2184 (struct variant): New structure.
2185 (COMMON_UISA_REG_NAMES, PPC_UISA_SPR_NAMES, PPC_SEGMENT_REG_NAMES,
2186 PPC_32_OEA_SPR_NAMES, num_registers): New macros.
2187 (register_names_rs6000, register_names_uisa, register_names_403,
2188 register_names_403GC, register_names_505, register_names_860,
2189 register_names_601, register_names_602, register_names_603,
2190 register_names_604, register_names_750, variants): New variables.
2191 (rs6000_register_name, install_variant, find_variant_by_name,
2192 install_variant_by_name, list_variants, show_current_variant,
2193 set_processor, show_processor): New functions.
2194 (_initialize_rs6000_tdep): Define new commands `set processor' and
2195 `show processor', and call install_variant_by_name to set the
2196 default variant.
2197 * rs6000-nat.c: Renamed all uses of FIRST_SP_REGNUM and
2198 LAST_SP_REGNUM to FIRST_UISA_SP_REGNUM and LAST_UISA_SP_REGNUM, with
2199 some concomitant formatting changes.
2200 * configure.in: Accept the `--with-cpu' flag, to specify a default
2201 processor variant.
2202 * acconfig.h: Provide a blurb for TARGET_CPU_DEFAULT, which is set
2203 by configure's `--with-cpu' flag.
2204 * config.in, configure: Regenerated.
2205
2206 Sun Jan 31 15:24:24 1999 Stan Shebs <shebs@andros.cygnus.com>
2207
2208 * buildsym.h, buildsym.c: Convert to ANSI-only.
2209
2210 * buildsym.h, buildsym.c: Reformat to standard.
2211
2212 * buildsym.c (merge_symbol_lists): Remove unused variable.
2213 (_initialize_buildsym): Remove, does nothing.
2214
2215 1999-01-31 J.T. Conklin <jtc@redbacknetworks.com>
2216
2217 * i386-stub.c, m32r-stub.c, m68k-stub.c, sh-stub.c, sparc-stub.c,
2218 sparcl-stub, sparclet-stub.c: Change declaration of putDebugChar
2219 to include explicit void return type as per documentation. Fix up
2220 occasions where stubs erroneously checked return type.
2221
2222 Sun Jan 31 13:18:33 1999 Stan Shebs <shebs@andros.cygnus.com>
2223
2224 From J.T. Conklin <jtc@redbacknetworks.com>:
2225 * remote.c (remote_query): Fix tipo.
2226
2227 Fri Jan 29 15:25:09 1999 Stan Shebs <shebs@andros.cygnus.com>
2228
2229 * configure.tgt (v850): Add wildcard to match.
2230
2231 Fri Jan 29 16:44:01 1999 Edith Epstein <eepstein@sophia.cygnus.com>
2232
2233 * inferior.h: Ran indent.
2234
2235 * fork-child.c: Ran indent.
2236
2237 * infrun.c : Ran indent.
2238
2239 Fri Jan 29 12:57:34 1999 Elena Zannoni <ezannoni@kwikemart.cygnus.com>
2240
2241 * infrun.c (_initialize_infrun): Do not stop or print anything
2242 when a SIGWINCH is received.
2243
2244 * Makefile.in (m2-exp.tab.c): Use YACC not BISON.
2245 (f-exp.tab.c): Ditto.
2246 (jv-exp.tab.c): Ditto.
2247 (c-exp.tab.c): Ditto.
2248 (YACC): Define as @YACC@.
2249
2250 1999-01-29 Martin Hunt <hunt@cygnus.com>
2251
2252 Changes from Keith Seitz <keiths@cygnus.com>
2253 * valops.c (value_assign): Add calls to register_changed_hook and
2254 memory_changed_hook to inform UIs that the user has changed
2255 the target's registers/memory.
2256 * findvar.c (write_register_gen): Remove call to pc_changed_hook.
2257 * defs.h: Remove declaration for pc_changed_hook and
2258 add declarations for register_changed_hook and
2259 memory_changed_hook.
2260 * top.c: Ditto.
2261
2262 1999-01-29 Mark Alexander <marka@cygnus.com>
2263
2264 * procfs.c (wait_fd): Handle deleted threads correctly.
2265
2266 1999-01-28 Jason Molenda (jsm@bugshack.cygnus.com)
2267
2268 * utils.c (init_page_info): Force window size if running under emacs.
2269
2270 1999-01-27 James Ingham <jingham@cygnus.com>
2271
2272 * typeprint.c (whatis_exp): Remove static declaration.
2273
2274 Wed Jan 27 16:50:25 1999 Elena Zannoni <ezannoni@kwikemart.cygnus.com>
2275
2276 * hp-psymtab-read.c: Reformat using indent.
2277
2278 Wed Jan 27 13:20:25 1999 Elena Zannoni <ezannoni@kwikemart.cygnus.com>
2279
2280 * hp-psymtab-read.c: Reformat comments, update copyright.
2281
2282 Tue Jan 26 16:02:47 1999 Mark Alexander <marka@cygnus.com>
2283
2284 * v850-tdep.c (v850_generic_reg_names, v850e_reg_names,
2285 v850_register_names, v850_processor_type_table): Declare tables
2286 and structures for handling differences in register names for
2287 v850 and v850e.
2288 (struct reg_list): Define new structure for creating tables
2289 of register bit masks in v850e instrutions.
2290 (handle_prepare, handle_pushm): New helpers for v850_scan_prologue.
2291 (v850_scan_prologue): Recognize v850e instructions: callt, prepare,
2292 and pushm.
2293 (v850_target_architecture_hook): New function to set register
2294 names based on current machine.
2295 (_initialize_v850_tdep): Set up target_architecture_hook.
2296 * config/v850/tm-v850.h (v850_register_names): Declare.
2297 (REGISTER_NAME): Define to refer to v850_register_names.
2298 (SR0_REGNUM, CTBP_REGNUM): Define.
2299 (PS_REGNUM): Redefine in terms of SR0_REGNUM.
2300
2301 Tue Jan 26 18:27:26 1999 Elena Zannoni <ezannoni@kwikemart.cygnus.com>
2302
2303 * Makefile.in (c-exp.tab.c): Use BISON instead of YACC, to pick
2304 the correct value from configure output.
2305 (jv-exp.tab.c): Ditto.
2306 (f-exp.tab.c): Ditto.
2307 (m2-exp.tab.c): Ditto.
2308
2309 1999-01-26 Jason Molenda (jsm@bugshack.cygnus.com)
2310
2311 * breakpoint.h (ep_is_exception_catchpoint): Add prototype.
2312 * frame.h (select_and_print_frame): Add prototype.
2313 * stack.c (func_command): Call select_and_print_frame with correct
2314 number of arguments. Reformat whitespace.
2315
2316 Tue Jan 26 16:53:54 1999 Fernando Nasser <fnasser@cygnus.com>
2317
2318 * remote.c (remote_query): fix maximum packet size to account for
2319 remote_debug use.
2320 (putpkt): add comment to alert about extra byte need.
2321
2322 Mon Jan 25 19:55:30 1999 Mark Alexander <marka@cygnus.com>
2323
2324 * sh-tdep.c (sh_target_architecture_hook): Return immediately
2325 when a matching machine is found.
2326
2327 Fri Jan 22 09:10:35 1999 Mark Alexander <marka@cygnus.com>
2328
2329 * remote-mips.c (mips_initialize): Fix parameters to clear_breakpoint.
2330 (common_breakpoint): Restore support for instruction breakpoints
2331 on non-LSI targets.
2332
2333 Thu Jan 21 17:16:19 1999 Andrew Cagney <cagney@b1.cygnus.com>
2334
2335 * stack.c: Close open comment.
2336 * symtab.c (find_pc_sect_line): Ditto.
2337
2338 Thu Jan 21 17:51:51 1999 Stan Shebs <shebs@andros.cygnus.com>
2339
2340 * procfs.c (init_procfs_ops): New function, fills in procfs_ops,
2341 init only nonzero fields, leave to_require_attach and
2342 to_require_detach empty, not needed for /proc systems yet.
2343 (_initialize_procfs): Call init_procfs_ops.
2344
2345 From J.T. Conklin <jtc@redbacknetworks.com>:
2346 * top.c (init_main): Fix tipo in description of the remotetimeout
2347 variable.
2348 * breakpoint.c (bpstat_stop_status): Handle systems where
2349 DECR_PC_AFTER_BREAK != DECR_PC_AFTER_HW_BREAK.
2350
2351 Thu Jan 21 17:25:46 1999 Mark Alexander <marka@cygnus.com>
2352
2353 * mon960-rom.c (_initialize_mon960): Call init_mon960_cmds
2354 to fill in mon960_cmds structure properly.
2355
2356 Wed Jan 20 17:53:22 1999 Stan Shebs <shebs@andros.cygnus.com>
2357
2358 * remote-sds.c (sds_ops): Define only once.
2359 (init_sds_ops, sds_command, _initialize_remote_sds): Declare.
2360 (init_sds_ops): Init only non-zero fields.
2361
2362 Wed Jan 20 15:45:15 1999 Mark Alexander <marka@cygnus.com>
2363
2364 * h8300-tdep.c (original_register_names, h8300h_register_names,
2365 h8300_register_names): Define new variables.
2366 (set_register_names): New function to set register names based on
2367 current CPU type.
2368 (h8300_command, h8300h_command, h8300s_command): Call
2369 set_register_names.
2370 * config/h8300/tm-h8300.h (h8300_register_names): Declare.
2371 (REGISTER_NAME): Define to refer to h8300_register_names.
2372
2373 1999-01-19 Fernando Nasser <fnasser@totem.to.cygnus.com>
2374
2375 * sol-thread.c abug-rom.c cpu32bug-rom.c dbug-rom.c m32r-rom.c
2376 mac-nat.c mon960-rom.c op50-rom.c ppc-bdm.c remote-adapt.c
2377 remote-array.c remote-bug.c remote-e7000.c remote-eb.c remote-es.c
2378 remote-est.c remote-hms.c remote-mm.c remote-nindy.c remote-nrom.c
2379 remote-os9k.c remote-rdp.c remote-sds.c remote-sim.c remote-st.c
2380 remote-udi.c rom68k-rom.c sh3-rom.c sparcl-tdep.c sparclet-rom.c
2381 v850ice.c win32-nat.c: cosmetic changes to conform to coding
2382 standards.
2383
2384 1999-01-19 Jim Blandy <jimb@zwingli.cygnus.com>
2385
2386 Use aclocal to generate GDB's aclocal.m4 script.
2387 * acinclude.m4: New file, containing the hand-written local macro
2388 definitions that used to be in aclocal.m4. Don't sinclude
2389 ../bfd/aclocal.m4 any more; running aclocal in this directory will
2390 get us the definitions we need. HOWEVER: Do sinclude
2391 ../bfd/acinclude.m4, because we need the definition of
2392 BFD_NEED_DECLARATION.
2393 * aclocal.m4: Regenerated by aclocal.
2394 * configure: Regenerated by autoconf.
2395
2396 Tue Jan 19 10:27:23 1999 David Taylor <taylor@texas.cygnus.com>
2397
2398 * breakpoint.c (disable_breakpoints_in_shlibs): new parameter,
2399 silent, controls whether to print message about removal of shared
2400 library breakpoints.
2401 * breakpoint.h (disable_breakpoints_in_shlibs): decl updated.
2402 * irix5-nat.c (clear_solib): call disable_breakpoints_in_shlibs.
2403 * osfsolib.c (clear_solib): ditto.
2404 * solib.c (clear_solib): ditto.
2405 * somsolib.c (som_solib_restart): update call to
2406 disable_breakpoints_in_shlibs.
2407
2408 * target.h (child_post_attach): only declare if CHILD_POST_ATTACH
2409 is define.
2410
2411 Tue Jan 19 18:07:11 1999 Andrew Cagney <cagney@b1.cygnus.com>
2412
2413 * corelow.c (solib_add_stub): Ditto.
2414 (core_file_to_sym_file): Cast make_cleanup parameter.
2415
2416 * solib.c (symbol_add_stub, solib_map_sections): Change argument
2417 to PTR insted of a char*. Matches catch_errors interface.
2418
2419 Mon Jan 18 14:01:24 1999 Andrew Cagney <cagney@b1.cygnus.com>
2420
2421 * remote-array.c (array_open): Don't use fprintf_filtered to send
2422 data to the log file.
2423
2424 * remote-array.c (handle_load_dll): Change argument type to PTR so
2425 that it is compatible with catch_errors.
2426 * ocd.c (ocd_start_remote): Ditto.
2427 * remote-sds.c (sds_start_remote): Ditto.
2428
2429 * win32-nat.c (win32_child_thread_alive): Namespace proof
2430 child_thread_alive.
2431 (init_child_ops): Update.
2432
2433 Mon Jan 18 12:03:47 1999 Andrew Cagney <cagney@b1.cygnus.com>
2434
2435 * remote-rdi.c (arm_rdi_open): Set gdb_hostif.hostosarg and
2436 gdb_hostif.dbgarg to NULL instead of stdout.
2437 (voiddummy, myprint, mywritec): Use gdb_stdout instead of stdout.
2438
2439 Mon Jan 18 16:40:50 1999 Stan Shebs <shebs@andros.cygnus.com>
2440
2441 * ser-ocd.c (ocd_open): Handle Unix case gracefully.
2442
2443 * target.c (dummy_target): Don't initialize statically.
2444 (init_dummy_target): New function, fills in dummy_target.
2445 (initialize_targets): Use it.
2446 * hpux-thread.c (hpux_thread_ops): Don't initialize statically.
2447 (init_hpux_thread_ops): New function, fills in hpux_thread_ops.
2448 (_initialize_hpux_thread): Use it.
2449 * m3-nat.c (m3_ops): Don't initialize statically.
2450 (init_m3_ops): New function, fills in m3_ops.
2451 (_initialize_m3): Use it.
2452
2453 1999-01-18 Fernando Nasser <fnasser@totem.to.cygnus.com>
2454
2455 * sol-thread.c: delete compile time initialization of target_ops
2456 (_initialize_sol_thread): initialize target_ops at run time.
2457 * hpux-thread.c: added target_ops entry.
2458 * m3-nat.c: ditto.
2459
2460 Mon Jan 18 15:19:13 1999 David Taylor <taylor@texas.cygnus.com>
2461
2462 * procfs.c (procfs_ops): delete compile time initialization.
2463 (_initialize_procfs): initialize procfs_ops at run time.
2464
2465 Mon Jan 18 12:51:44 1999 Christopher Faylor <cgf@cygnus.com>
2466
2467 * configure.in: Ensure that -luser32 is always linked in
2468 for cygwin build.
2469 * configure: Regenerated.
2470
2471 Mon Jan 18 08:38:05 1999 Mark Alexander <marka@cygnus.com>
2472
2473 * values.c (value_virtual_fn_field): Clear the pointed-to
2474 offset when casting to the base class.
2475
2476 Mon Jan 18 10:30:51 1999 David Taylor <taylor@texas.cygnus.com>
2477
2478 * remote-udi.c (init_udi_ops): change non-existant udi_run_ops to
2479 udi_ops; delete NULL initializers.
2480
2481 Mon Jan 18 12:03:47 1999 Andrew Cagney <cagney@b1.cygnus.com>
2482
2483 * serial.c (serial_close): gdb_fclose tages gdb_file** arg, not
2484 gdb_file*.
2485
2486 * f-valprint.c, target.c, gdbarch.c: Pass gdb_stderr not stderr.
2487
2488 Mon Jan 18 10:46:12 1999 Andrew Cagney <cagney@b1.cygnus.com>
2489
2490 * stack.c (print_frame_info_base): Don't cast call to
2491 catch_errors.
2492 (print_args_stub): Change char* arg to PTR.
2493 * symmisc.c (print_symbol): Ditto.
2494 * top.c (quit_cover): Ditto.
2495 * remote.c (remote_open_1, remote_start_remote): Ditto.
2496 * infrun.c (normal_stop, hook_stop_stub, restore_selected_frame):
2497 Ditto.
2498
2499 * stack.c (backtrace_command): Cast first arg of make_cleanup to
2500 make_cleanup_func.
2501 * remote.c (remote_kill): Cast putpkt arg to catch_errors_ftype.
2502
2503 Mon Jan 18 08:47:02 1999 Andrew Cagney <cagney@b1.cygnus.com>
2504
2505 * defs.h (catch_errors_ftype): Define.
2506 (catch_errors): Replace char* arg with PTR arg.
2507 * top.c (catch_errors): Update
2508
2509 * breakpoint.c (bpstat_stop_status, bpstat_stop_status,
2510 delete_breakpoint, breakpoint_re_set): Delete all casts in call to
2511 catch_errors.
2512 (breakpoint_cond_eval, watchpoint_check,
2513 cover_target_enable_exception_callback, breakpoint_re_set_one):
2514 Arg is PTR not char*.
2515
2516 * breakpoint.c (cover_target_enable_exception_callback): Change
2517 type to int. Check for cast values of 0 and -1. Return a result!
2518 (insert_breakpoints): Move declaration of SAL and ARGS to where
2519 they are used.
2520
2521 1999-01-16 Fernando Nasser <fnasser@totem.to.cygnus.com>
2522
2523 * remote.c (remote_query): new function - creates proper interface
2524 to the remote protocol "q" command.
2525
2526 Fri Jan 15 17:11:48 EST 1999 Zdenek Radouch (radouch@cygnus.com)
2527
2528 * config/fr30/tm-fr30.h: Changed ABI to match GCC change
2529 (always use pointer for structs passed by value).
2530
2531 1999-01-15 Fernando Nasser <fnasser@totem.to.cygnus.com>
2532
2533 * target.h: added entry for target queries (to_query)
2534 target.c: ditto.
2535
2536 Thu Jan 14 18:29:17 1999 David Taylor <taylor@texas.cygnus.com>
2537
2538 * remote-mm.c (mm_wait): fix stream arg to gdb_flush.
2539 * remote-udi.c (udi_wait): fix stream arg to fwrite.
2540 * symmisc.c (maintenance_check_symtabs): fix stream argument to
2541 print_address_numeric.
2542
2543 Wed Jan 13 19:33:16 1999 David Taylor <taylor@texas.cygnus.com>
2544
2545 * breakpoint.c (insert_breakpoints): insert cast to eliminate
2546 warning.
2547
2548 Wed Jan 13 14:59:02 1999 Michael Snyder <msnyder@cleaver.cygnus.com>
2549
2550 * infrun.c (set/show scheduler-locking) New command. Set a
2551 mode bit that will control how GDB attempts to control thread
2552 scheduling for step, continue, etc. (resume): make use of
2553 the schedule-locking mode.
2554 * target.h (struct target_ops): new field to_has_thread_control.
2555 * sol-thread.c: initialize target_ops to_has_thread_control.
2556 * procfs.c: ditto.
2557 * target.c: ditto.
2558 * m3-nat.c: ditto.
2559 * remote.c: ditto.
2560 * hpux-thread.c: ditto.
2561 * thread.c: cull duplicate prototypes. Move prototypes to top.
2562 * serial.c: indentation cleanup.
2563 * breakpoint.c: add casts to eliminate compiler warnings.
2564
2565 Tue Jan 12 17:00:00 1999 Edith Epstein <eepstein@sophia.cygnus.com>
2566
2567 * inftarg.c (child_create_inferior): fixed HPUXHPPA specific
2568 call to fork_inferior. The shell param is now NULL.
2569
2570 1999-01-12 Jason Molenda (jsm@bugshack.cygnus.com)
2571
2572 * monitor.c (init_base_monitor_ops): Whitespace cleanup.
2573 (_initialize_remote_monitors): Same.
2574
2575 1999-01-12 Jason Molenda (jsm@bugshack.cygnus.com)
2576
2577 * monitor.c (init_monitor_ops): Initialize the monitor_ops
2578 structure if it hasn't already been done.
2579
2580 Tue Jan 12 14:50:10 1999 Stan Shebs <shebs@andros.cygnus.com>
2581
2582 * inftarg.c (child_ops): Don't initialize statically.
2583 (init_child_ops): New function, fills in child_ops.
2584 (_initialize_inftarg): Use it.
2585 (child_post_attach): Declare extern.
2586 (child_wait): Fix ambiguous parens.
2587 (child_attach_to_process): Remove unused local wstatus.
2588 (child_insert_fork_catchpoint, child_remove_fork_catchpoint,
2589 child_insert_vfork_catchpoint, child_remove_vfork_catchpoint,
2590 child_has_forked, child_insert_exec_catchpoint,
2591 child_remove_exec_catchpoint): Return a value.
2592
2593 Mon Jan 11 16:43:44 1999 Michael Snyder <msnyder@cleaver.cygnus.com>
2594
2595 * remote.c (remote_wait): Add inferior_pid to thread list only
2596 if it is not already there.
2597
2598 1999-01-11 Jason Molenda (jsm@bugshack.cygnus.com)
2599
2600 * scm-tags.h: Update FSF's address on copyright notice.
2601 * ser-e7kpc.c: Same.
2602 * gnu-nat.h: Same.
2603
2604 Mon Jan 11 13:45:57 1999 Stu Grossman <grossman@babylon-5.cygnus.com>
2605
2606 * dwarf2read.c (dump_die): Change stderr to gdb_stderr.
2607 * expprint.c (print_subexp): fprintf => fprintf_unfiltered.
2608 * jv-typeprint.c (java_type_print_base): fputs => fputs_filtered.
2609 * stack.c (struct function_bounds): Remove superfluous `typedef'.
2610 * symfile.c (list_overlays_command): stdout => gdb_stdout.
2611 * symmisc.c (maintenance_check_symtabs): stdout => gdb_stdout.
2612 * utils.c (print_spaces): Make more efficient.
2613
2614 Mon Jan 11 13:55:51 1999 David Taylor <taylor@texas.cygnus.com>
2615
2616 * utils (print_spaces): fix arg to strcat; fix formatting.
2617
2618 Fri Jan 8 11:57:24 1999 Stan Shebs <shebs@andros.cygnus.com>
2619
2620 * exec.c (exec_ops): Don't initialize statically.
2621 (init_exec_ops): New function, fills in exec_ops.
2622 (_initialize_exec): Use it.
2623
2624 Thu Jan 7 17:50:15 EST 1999 Zdenek Radouch (radouch@cygnus.com)
2625
2626 Beta FR30 port.
2627 * fr30-tdep.c
2628 * config/fr30/tm-fr30.h
2629
2630 Wed Jan 6 12:28:35 1999 David Taylor <taylor@texas.cygnus.com>
2631
2632 * configure.in: Add an --enable-tui argument. Construct
2633 tui/Makefile from tui/Makefile.in. Use AM_PROG_CC_STDC. If we
2634 have the GUI, then we need this to process libgui.h.
2635 (ENABLE_CFLAGS): define and export BUILD_TUI.
2636 (AC_CHECK_HEADERS): Add check for term.h.
2637
2638 * configure.host (hppa-*-hpux10.20, hppa-*-hpux11.0*): New configs.
2639
2640 * config.in, configure : regenerated.
2641
2642 * Makefile.in: Allow the TUI code to be conditionally enabled.
2643 (TUI_LIBRARY): New variable, value are set by the configuration
2644 script. Set to the empty string when the TUI isn't enabled.
2645 (gdb$(GDBEXT)): Use those, instead of referring to all-tui and
2646 tui/libtui.a directly.
2647 (BUILD_TUI): build the tui -- only when configured with
2648 --enable-tui.
2649 (YLWRAP): use ylwrap to avoid problems on systems w/o bison.
2650 (gdb$(EXEEXT)): make it dependent on BUILD_TUI.
2651 (all-tui): remove dependency from phony target.
2652 (c-exp.tab.c): use ylwrap instead of bison.
2653 (jv-exp.tab.c): ditto.
2654 (f-exp.tab.c): ditto.
2655 (m2-exp.tab.c): ditto.
2656 (ALLDEPFILES): add somread.c, hp-psymtab-read.c, hp-symtab-read.c.
2657 (SFILES): remove the above files
2658 (COMMON_OBS): remove somread.o
2659 (SFILES): Add the tui files to this, so they get included in etags
2660 tables.
2661 (gdb$(EXEEXT)): Add all-tui to the list of dependencies, and add
2662 tui/libtui.a to the link list.
2663 (all-tui): New rule, which does a recursive make in the tui
2664 subdir.
2665 (tui/libtui.a): When recursing, pass down ${FLAGS_TO_PASS}. And
2666 don't echo the make command. This is closer to what the other
2667 recursions do.
2668 (HFILES_NO_SRCDIR): add hpread.h
2669 (COMMON_OBS): add hp-psymtab-read.o, hp-symtab-read.o
2670 (SFILES): add hp-psymtab-read.c, hp-symtab-read.c add rules for
2671 the new files. Remove hpread.c, hpread.o
2672 (gdb$(EXEEXT)): Depend on the actual tui library, not on a
2673 fictitious target. Since the fictitious target never existed,
2674 make would always relink.
2675 (tui/libtui.a): Always recurse to make sure the library is up to
2676 date.
2677
2678 Wed Jan 6 12:05:12 1999 Stan Shebs <shebs@andros.cygnus.com>
2679
2680 * remote.c: Pacify --enable-build-warnings, reformat code
2681 to conform to standards, fix spelling errors.
2682 (ishex, stubhex, record_currthread, etc): Declare.
2683 (ishex, stubhex): Declare char arg as int.
2684 (pack_string): Comment out, never used but possibly useful.
2685 (threadref_to_int, remote_get_threadinfo, etc): Make static.
2686
2687 Wed Jan 6 11:43:32 1999 David Taylor <taylor@texas.cygnus.com>
2688
2689 The following changes were made by Elena Zannoni
2690 <ezannoni@cygnus.com> and Edith Epstein <eepstein@cygnus.com> as
2691 part of a project to merge in changes made by HP.
2692
2693 * c-exp.y: use external flag hp_som_som_object_present to decide
2694 whether code was compiled by HP's compilers. Add two new C++
2695 tokens for true and false.
2696 (yylex): check for template name is done differently for the
2697 HP/aCC compiler case. Change some of the template processing code
2698 for handling HP aCC templates. Handle true and false tokens.
2699
2700 Tue Jan 5 11:13:36 1999 Michael Snyder <msnyder@cleaver.cygnus.com>
2701
2702 * remote.c (record_curthread): Must not modify inferior_pid when
2703 called from wait_for_inferior. Instead, if a new thread-id is
2704 detected, call add_thread.
2705 (MAGIC_NULL_PID): new macro, use instead of the magic number
2706 "42000".
2707 (remote_find_new_threads): if inferior_pid is unknown, get and use
2708 the current thread id.
2709 (remote_start_remote): on connecting, attempt to get the current
2710 thread id for inferior_pid.
2711 (remote_resume): If pid == -1, then resume any-thread (not the
2712 current thread specifically). Also some cosmetic fixups.
2713
2714 * thread.c (info_threads_command): don't initialize current_pid
2715 until after call to FIND_NEW_THREADS (which may change inferior_pid).
2716 Also some cosmetic fixups.
2717 * infrun.c: cosmetic fixups and casts to avoid warnings.
2718 * infcmd.c: cosmetic fixups, mainly long lines.
2719
2720 Tue Jan 5 11:55:57 1999 David Taylor <taylor@texas.cygnus.com>
2721
2722 * target.c (noprocess): terminate sentence with a period.
2723 * breakpoint.c (catch_command_1): ditto.
2724
2725 * c-valprint.c (c_value_print): remove hack^2 from HP; it causes
2726 testsuite losses with no real gain.
2727
2728 * inferior.h (START_INFERIOR_TRAPS_EXPECTED): restore, but only
2729 if tm-*.h hasn't overridden default value.
2730
2731 1999-01-04 Jason Molenda (jsm@bugshack.cygnus.com)
2732
2733 * configure.in: Fix whitespace indentation for --help.
2734 * configure: Regenerated.
2735
2736 1999-01-04 Manuel Bouyer <bouyer@antioche.lip6.fr>
2737
2738 * main.c: Add --write command line option, document -w.
2739 * gdb.1: Document --write.
2740
2741 1999-01-04 Jason Molenda (jsm@bugshack.cygnus.com)
2742
2743 * configure.in: Require autoconf 2.12.1 or higher.
2744 * doc/configure.in: Ditto.
2745 * nlm/configure.in: Ditto.
2746 * rdi-share/configure.in: Ditto.
2747 * testsuite/configure.in: Ditto.
2748 * doc/Makefile.in: Don't hardcode $(SHELL).
2749 * nlm/Makefile.in: Ditto.
2750 * rdi-share/Makefile.in: Ditto.
2751 * testsuite/Makefile.in: Ditto.
2752
2753 Mon Jan 4 12:53:03 1999 Stan Shebs <shebs@andros.cygnus.com>
2754
2755 * remote-vx.c (init_vx_ops, init_vx_run_ops): Remove unneeded
2756 inits of new fields, including ref to bogus field.
2757 (vx_ops, vx_run_ops): Make static.
2758
2759 Mon Jan 4 15:05:29 1999 David Taylor <taylor@texas.cygnus.com>
2760
2761 * inferior.h (START_INFERIOR_TRAPS_EXPECTED): delete,
2762 already defined in tm.h.
2763
2764 * inftarg.c: change <sys/unistd.h> to <unistd.h> and
2765 conditionalize its inclusion.
2766 * infttrace.c: ditto.
2767
2768 For older changes see ChangeLog-98
2769 \f
2770 Local Variables:
2771 mode: change-log
2772 left-margin: 8
2773 fill-column: 74
2774 version-control: never
2775 End: