6d9bd8847e5950300be2bb53869d9bba9b68bac2
[deliverable/binutils-gdb.git] / gdb / ChangeLog
1 2001-11-26 Jim Blandy <jimb@redhat.com>
2
3 * symtab.c (find_pc_sect_line): Revert change of 2001-11-13; add
4 comment explaining that hand-written assembly code can have line
5 number info but no debug info for an enclosing function.
6
7 2001-11-26 Jakub Jelinek <jakub@redhat.com>
8
9 * sparc-nat.c (fetch_inferior_registers): Don't rely
10 on CORE_ADDR being 32-bit.
11 (store_inferior_registers): Likewise.
12
13 2001-11-25 Eli Zaretskii <eliz@is.elta.co.il>
14
15 * config/djgpp/config.sed: Fix an error in etc/ at "make install"
16 time on non-LFN systems where standards*.inf* expands to nothing.
17
18 * go32-nat.c (save_npx): Avoid a warning from GCC 3.x.
19
20 2001-11-24 Pierre Muller <muller@ics.u-strasbg.fr>
21 Christopher Faylor <cgf@redhat.com>
22
23 * win32-nat.c (struct so_stuff): Add objfile *objfile field needed to
24 be able to remove the DLL when unloaded. Remove unused last field.
25 (handle_unload_dll): New function to handle unloading of DLL.
26 (solib_symbols_add): Change return type to struct objfile *.
27 (get_child_debug_event): Call handle_unload_dll function.
28
29 2001-11-24 Christopher Faylor <cgf@redhat.com>
30
31 * win32-nat.c (_initialize_check_for_gdb_ini): New function.
32 * config/i386/xm-cygwin.h: Remove obsolete handling of __CYGWIN32__.
33 (GDBINIT_FILENAME): Remove.
34
35 2001-11-23 Mark Kettenis <kettenis@gnu.org>
36
37 Add x86 OpenBSD native configuration.
38 * config/i386/obsd.mt, config/i386/tm-obsd.h, config/i386/obsd.mh,
39 config/i386/nm-obsd.h: New files.
40 * configure.host (i[3456]86-*-openbsd*): New host.
41 * configure.tgt (i[3456]86-*-openbsd*): New target.
42 * NEWS: Update.
43
44 2001-11-21 GDB Administrator <gdbadmin@sourceware.cygnus.com>
45
46 * GDB 5.1 was released.
47
48 2001-11-21 Tom Tromey <tromey@redhat.com>
49
50 Fix for PR gdb/209, PR gdb/156:
51 * gdbarch.c, gdbarch.h: Rebuilt.
52 * gdbarch.sh: Added `construct_inferior_arguments'.
53 * cli/cli-decode.h (cmd_list_element): Added pre_show_hook.
54 Typo fix.
55 * cli/cli-setshow.c (do_setshow_command): Call the pre_show_hook.
56 * infcmd.c (_initialize_infcmd): Set sfunc on `set args' command.
57 (inferior_argc, inferior_argv): New globals.
58 (notice_args_set): New function.
59 (set_inferior_args): Clear inferior_argc and inferior_argv.
60 (set_inferior_args_vector): New function.
61 (get_inferior_args): Handle inferior argument vector.
62 (run_command): Use get_inferior_args().
63 (notice_args_read): New function.
64 (_initialize_infcmd): Don't call set_inferior_args.
65 * command.h: Typo fix.
66 (cmd_list_element): Added pre_show_hook.
67 * main.c (captured_main): Added --args option.
68 (print_gdb_help): Document --args.
69 * inferior.h (construct_inferior_arguments): Declare.
70 (set_inferior_args_vector): Likewise.
71 * fork-child.c (construct_inferior_arguments): New function.
72
73 2001-11-21 Kevin Buettner <kevinb@redhat.com>
74
75 * lin-lwp.c (lin_lwp_attach_lwp): Make sure SIGCHLD is in set of
76 blocked signals.
77
78 * lin-lwp.c (lin_lwp_attach_lwp): Mark main thread as stopped.
79
80 2001-11-20 Jim Blandy <jimb@redhat.com>
81
82 * target.h (TARGET_RANGE_PROFITABLE_FOR_HW_WATCHPOINT): Delete
83 default definition; this is never used.
84
85 2001-11-20 Keith Seitz <keiths@redhat.com>
86
87 * varobj.c (c_value_of_child): Release memory for "name" when
88 finshed using it.
89 (c_type_of_child): Likewise.
90 (cplus_value_of_child): Isolate the use of name_of_child to
91 one case that needs it.
92 Release memory for "name" when finished using it.
93
94 2001-11-20 Keith Seitz <keiths@redhat.com>
95
96 * top.c (gdb_init): Call init_ui_hook before initializing
97 the default UI.
98
99 2001-11-19 Elena Zannoni <ezannoni@redhat.com>
100
101 * config/powerpc/nm-linux.h (ppc_register_u_addr): Add extern
102 declaration.
103
104 2001-11-19 Elena Zannoni <ezannoni@redhat.com>
105
106 * ppc-linux-nat.c (COPY_REG): Use regcache_collect instead of
107 accessing registers[].
108 (fill_fpregset): Ditto.
109
110 2001-11-19 Elena Zannoni <ezannoni@redhat.com>
111
112 * infptrace.c (fetch_register): Dynamically allocate buffer for
113 register.
114 (store_register): Use regcache_collect, instead of accessing the
115 register buffer directly.
116
117 2001-11-19 Daniel Jacobowitz <drow@mvista.com>
118
119 * mips-tdep.c (find_proc_desc): Add cur_frame argument. Pass
120 cur_frame to heuristic_proc_desc.
121 (heuristic_proc_desc): Add cur_frame argument. Do not read SP
122 if cur_frame == 0.
123 (after_prologue): Pass cur_frame == 0 to find_proc_desc.
124 (mips_frame_chain): Pass cur_frame == 1 to find_proc_desc.
125 (mips_init_extra_frame_info): Likewise.
126
127 2001-11-19 Andrew Cagney <ac131313@redhat.com>
128
129 * defs.h (return_to_top_level): Comment.
130
131 Mon Nov 19 14:58:52 2001 Andrew Cagney <cagney@redhat.com>
132
133 * remote.c (remote_open_1, remote_async_open_1): Use ISO C string
134 concatenation for error parameter.
135 (remote_cisco_open): Ditto.
136
137 2001-11-19 Keith Seitz <keiths@redhat.com>
138
139 * varobj.c (c_value_of_child): Use the wrapper function,
140 gdb_value_struct_elt.
141 (cplus_value_of_child): Likewise.
142
143 2001-11-18 Andrew Cagney <ac131313@redhat.com>
144
145 * i386-tdep.c (i386_gdbarch_init): Initialize num_regs.
146 * config/i386/tm-i386.h (NUM_REGS): Delete.
147
148 2001-11-18 Kevin Buettner <kevinb@redhat.com>
149
150 * i386-linux-nat.c (fill_gregset): Fix botched regcache_collect()
151 conversion for I386_LINUX_ORIG_EAX_REGNUM.
152
153 2001-11-18 Andrew Cagney <ac131313@redhat.com>
154
155 * config/i386/embed.mt (TM_FILE): Set to tm-i386.h.
156 * config/i386/tm-embed.h: Delete.
157
158 2001-11-17 Andrew Cagney <ac131313@redhat.com>
159
160 * Makefile.in (distclean): Explicitly delete Makefile et.al. in
161 gdbserver sub directory.
162
163 2001-11-17 Andrew Cagney <ac131313@redhat.com>
164
165 * README: Mention need for alloca(). Mention problems with
166 alpha-dec-osf4.0e. Clarify that comments refer to GDB 5.1.
167
168 2001-11-17 Kevin Buettner <kevinb@redhat.com>
169
170 * i386-linux-nat.c (fill_gregset): Use regcache_collect() instead
171 of accessing registers[] directly.
172
173 2001-11-17 Kevin Buettner <kevinb@redhat.com>
174
175 * i386-linux-nat.c (fill_gregset): Don't invoke read_register_gen()
176 when fetching ORIG_EAX.
177
178 2001-11-17 Daniel Jacobowitz <drow@mvista.com>
179
180 * arm-linux-nat.c: Don't include <asm/ptrace.h>.
181 (fetch_register): Use elf_gregset_t instead of struct pt_regs.
182 (fetch_regs): Likewise.
183 (store_register): Likewise.
184 (store_regs): Likewise.
185
186 2001-11-17 Daniel Jacobowitz <drow@mvista.com>
187
188 * sparc-linux-nat.c (fill_gregset): Replace read_register_gen
189 with regcache_collect.
190 (fill_fpregset): Likewise.
191
192 2001-11-17 Daniel Jacobowitz <drow@mvista.com>
193
194 * Makefile.in: Add mips-linux-nat.c, mips-linux-tdep.c,
195 and sparc-linux-nat.c to ALLDEPFILES. Add dependencies.
196 * config/sparc/linux.mh: Add sparc-linux-nat.o to NATDEPFILES.
197 * sparc-linux-nat.c: New file, from Mark Kettenis.
198
199 2001-11-16 Jakub Jelinek <jakub@redhat.com>
200
201 * dwarf2read.c (dwarf_str_buffer): New.
202 (struct dwarf2_pinfo): Add dwarf_str_buffer and dwarf_str_size.
203 (DWARF_STR_BUFFER, DWARF_STR_SIZE): Define.
204 (dwarf2_has_info): Clear dwarf_str_offset.
205 (dwarf2_build_psymtabs): Read .debug_str section if present.
206 (dwarf2_build_psymtabs_hard): Save DWARF_STR_BUFFER and
207 DWARF_STR_SIZE.
208 (psymtab_to_symtab_1): Restore DWARF_STR_BUFFER and DWARF_STR_SIZE.
209 (read_attribute): Handle DW_FORM_strp.
210 (read_n_bytes, read_string): Remove HOST_CHAR_BIT != 8
211 handling code.
212 (read_indirect_string): New.
213 (dump_die): Handle DW_FORM_strp.
214
215 2001-11-16 Jim Blandy <jimb@redhat.com>
216
217 * s390-tdep.c: Tweak argument-passing to match GCC bugs.
218 (is_float_singleton, is_struct_like, is_float_like): New
219 functions, that isolate the weirdness.
220 (is_double_or_float, is_simple_arg, pass_by_copy_ref,
221 is_double_arg): Use is_struct_like and is_float_like, rather than
222 testing the type codes ourselves.
223 (s390_push_arguments): When passing args on the stack, align each
224 on to a four-byte boundary, regardless of what the type itself
225 needs.
226
227 2001-11-16 Ben Harris <bjh21@netbsd.org>
228
229 * Makefile.in (os9kread.o): Replace $< with autoconf-approved
230 $(srcdir)/....
231 (procfs.o): Ditto.
232 (z8k-tdep.o): Ditto.
233
234 2001-11-16 Ben Harris <bjh21@netbsd.org>
235
236 * MAINTAINERS (write-after-approval): Add self.
237
238 2001-11-15 Jim Blandy <jimb@redhat.com>
239
240 * s390-tdep.c (is_simple_arg): Structs and unions exactly eight
241 bytes long should be handled as DOUBLE_ARGs; don't recognize them
242 as SIMPLE_ARGs.
243
244 2001-11-12 Andrew Cagney <ac131313@redhat.com>
245
246 * remote.c (struct packet_reg): Declare.
247 (struct remote_state): Add fields sizeof_g_packet and g_packet.
248 (init_remote_state): Initialize sizeof_g_packet and g_packet.
249 (free_remote_state): Free g_packet.
250 (packet_reg_from_pnum, packet_reg_by_regnum): New functions.
251 (remote_wait): Use above instead of gdbarch methods
252 REGISTER_RAW_SIZE and REGISTER_BYTES.
253 (remote_async_wait): Ditto.
254 (remote_fetch_registers, remote_store_registers): Ditto.
255 (store_register_using_P): Ditto.
256
257 2001-11-15 Andrew Cagney <ac131313@redhat.com>
258
259 * remote.c (_initialize_remote): Don't multi-arch swap tty_input.
260 Second attempt.
261
262 2001-11-15 Andrew Cagney <ac131313@redhat.com>
263
264 * utils.c (phex_nz): For default case, set str to phex_nz return
265 value.
266 (phex): Ditto.
267
268 2001-11-15 Andrew Cagney <ac131313@redhat.com>
269
270 * TODO (register_buffer): Delete.
271 * regcache.c (register_buffer): Make static.
272 (regcache_collect): New function.
273 * regcache.h (register_buffer): Delete declaration.
274 (regcache_collect): Declare.
275 * remote.c (store_register_using_P): Rewrite using
276 regcache_collect.
277 (remote_store_registers): Ditto.
278 * go32-nat.c (store_register): Ditto.
279
280 2001-11-14 Andrew Cagney <ac131313@redhat.com>
281
282 * remote.c (struct remote_state): Declare.
283 (get_remote_state): New function.
284 (init_remote_state): New function.
285 (remote_gdbarch_data_handle): New global.
286 (build_remote_packet_sizes): Delete function, moved to
287 init_remote_state.
288 (register_remote_packet_sizes): Delete function.
289 (actual_register_packet_size, remote_packet_size): Moved to
290 ``struct remote_state''.
291 (PBUFSIZE): Delete. Replaced by rs->remote_packet_size.
292 (free_remote_state): New function.
293 (get_memory_packet_size, get_memory_read_packet_size)
294 (set_thread, remote_unpack_thread_info_response)
295 (remote_get_threadinfo, parse_threadlist_response)
296 (remote_get_threadlist, remote_current_thread)
297 (remote_threads_info, remote_threads_extra_info)
298 (extended_remote_restart, get_offsets)
299 (get_offsets, remote_check_symbols, remote_open_1)
300 (remote_async_open_1, remote_detach, remote_async_detach)
301 (remote_resume, remote_async_resume, remote_wait)
302 (remote_async_wait, remote_fetch_registers)
303 (store_register_using_P, remote_store_registers)
304 (check_binary_download, putpkt_binary)
305 (remote_insert_breakpoint, remote_remove_breakpoint)
306 (remote_insert_watchpoint, remote_remove_watchpoint)
307 (remote_insert_hw_breakpoint, remote_remove_hw_breakpoint)
308 (compare_sections_command, remote_query)
309 (remote_rcmd, remote_rcmd, packet_command)
310 (remote_info_process): Update.
311
312 2001-11-14 Andrew Cagney <ac131313@redhat.com>
313
314 * remote.c: Include "gdb_assert.h".
315 (tty_input): Wire buffer to 400 bytes.
316 (readsocket): Check tty_input doesn't overflow.
317 (build_remote_gdbarch_data, _initialize_remote): Don't multi-arch
318 tty_input.
319
320 2001-11-14 Michael Snyder <msnyder@redhat.com>
321
322 * d10v-tdep.c (d10v_pointer_to_address): Use new type flag
323 TYPE_FLAG_CODE_SPACE to recognize a pointer that has been cast
324 into the instruction address space.
325 * Makefile.in (doublest.o): Add dependency on gdbtypes.h.
326
327 2001-11-14 Michael Snyder <msnyder@redhat.com>
328 Add address space identifiers to expression language for types.
329 * c-exp.y (space_identifier, cv_with_space_id,
330 const_or_volatile_or_space_identifier_noopt,
331 const_or_volatile_or_space_identifier): New terminals.
332 (ptype): Accept const_or_volatile_or_space_identifier.
333 (typebase): Accept const_or_volatile_or_space_identifier.
334 * c-typeprint.c (c_type_print_cv_qualifier): Rename to
335 c_type_print_modifier. Handle address space modified types.
336 * gdbtypes.h (TYPE_FLAG_CODE_SPACE, TYPE_FLAG_DATA_SPACE):
337 New type flags.
338 (struct type): Add new field as_type for addr-space qualified types.
339 (TYPE_AS_TYPE): New macro, retrieves the chain of types that are
340 identical to this one except for address-space qualification.
341 * gdbtypes.c (alloc_type): Initialize new field 'as_type'.
342 (address_space_name_to_int): New function.
343 (address_space_int_to_name): New function.
344 (make_type_with_address_space): New function.
345 (make_cv_type): Handle as_type field of new struct type object.
346 * parse.c (check_type_stack_depth): New function.
347 (push_type_address_space): New function.
348 (follow_types): Handle types with address-space qualifier.
349 * parser-defs.h (enum type_pieces): Add enum tp_space_identifier.
350
351 2001-11-14 Jim Blandy <jimb@redhat.com>
352
353 * s390-tdep.c (s390_pop_frame_regular): On the S/390, the frame
354 pointer and the SP are often the same, so we can't pop the frame
355 by setting the SP to the FP; we need to get the old SP from
356 saved_regs.
357
358 * s390-tdep.c (s390_extract_return_value): Returned `float' values
359 can simply be copied bitwise from the registers into the value
360 object's buffer.
361
362 * s390-tdep.c (s390_get_frame_info): Initialize SP's element of
363 the frame's saved_regs array correctly.
364
365 * symfile.c (simple_read_overlay_table): Make sure we can find
366 both `_novlys' and `_ovly_table' before we try anything else;
367 print a helpful error message.
368 (simple_overlay_update): No need to print error message here.
369
370 2001-11-14 Michael Snyder <msnyder@redhat.com>
371
372 * Makefile.in (doublest.o): Add dependency on gdbtypes.h.
373
374 2001-11-10 Andrew Cagney <ac131313@redhat.com>
375
376 * arm-tdep.c (arm_register_type): New function.
377 (arm_register_convertible): Delete.
378 (arm_register_convert_to_virtual): Delete.
379 (arm_register_convert_to_raw): Delete.
380 * config/arm/tm-arm.h (REGISTER_CONVERTIBLE): Delete.
381 (REGISTER_CONVERT_TO_VIRTUAL): Delete.
382 (REGISTER_CONVERT_TO_RAW): Delete.
383 (REGISTER_VIRTUAL_TYPE): Redefine as call to arm_register_type.
384 (arm_register_type): Declare.
385
386 2001-11-13 Elena Zannoni <ezannoni@redhat.com>
387
388 From Andrew Cagney <cagney@redhat.com>:
389 * gdbtypes.h (builtin_type_int128, builtin_type_uint128): Declare.
390 * gdbtypes.c (_initialize_gdbtypes, build_gdbtypes): Initialize
391 new builtin types.
392
393 2001-11-13 Jim Blandy <jimb@redhat.com>
394
395 * s390-tdep.c: Rewrite inferior function call code. This may
396 break zSeries support; that should be fixed soon.
397 #include "gdb_assert.h".
398 (is_integer_like, is_pointer_like, is_simple_arg,
399 pass_by_copy_ref, extend_simple_arg, is_double_arg, round_up,
400 round_down, alignment_of): New functions.
401 (s390_push_arguments): Rewritten to handle passing large arguments
402 by value, and to make more readable.
403
404 * s390-tdep.c (s390_pop_frame): Call generic_pop_current_frame, to
405 interact correctly with generic dummy frames.
406 (s390_pop_frame_regular): Move the guts of the frame-popping code
407 to here, to be called by generic_pop_current_frame. Use the
408 frame's saved_regs array; this works for `return' as well as
409 inferior function calls.
410
411 * s390-tdep.c (s390_gdbarch_init): Register the function
412 `standard_coerce_float_to_double', since GCC for the S/390 follows
413 the standard rules for passing floats.
414
415 * valops.c (default_coerce_float_to_double,
416 standard_coerce_float_to_double): Doc fixes.
417
418 Patch from Peter Schauer:
419
420 * symtab.c (find_pc_sect_line): If we can't find the function
421 containing PC, we certainly won't have line number information for
422 that location, so return zero immediately.
423
424 2001-11-10 Andrew Cagney <ac131313@redhat.com>
425
426 * config/i960/tm-nindy960.h (REGISTER_CONVERTIBLE)
427 (REGISTER_CONVERT_TO_RAW, REGISTER_CONVERT_TO_VIRTUAL): Delete
428 undef.
429 * i960-tdep.c (i960_register_type): New function.
430 * config/i960/tm-i960.h (REGISTER_CONVERTIBLE): Delete.
431 (REGISTER_CONVERT_TO_VIRTUAL): Delete.
432 (REGISTER_CONVERT_TO_RAW): Delete.
433 (REGISTER_VIRTUAL_TYPE): Update. Call i960_register_type.
434
435 2001-11-10 Andrew Cagney <ac131313@redhat.com>
436
437 * m88k-tdep.c (m88k_register_type): New function.
438 * config/m88k/tm-m88k.h (REGISTER_CONVERTIBLE): Delete.
439 (REGISTER_CONVERT_TO_VIRTUAL): Delete.
440 (REGISTER_CONVERT_TO_RAW): Delete.
441 (m88k_register_type): Declare.
442 (REGISTER_VIRTUAL_TYPE): Update. Call m88k_register_type.
443
444 2001-11-11 Mark Kettenis <kettenis@elgar.my.domain>
445
446 * i386-tdep.h (FPU_REG_RAW_SIZE): Define unconditionally.
447 * i387-nat.c, i387-tdep.c: Unconditionally include "i386-tdep.h".
448 * config/i386/tm-i386.h (FPU_REG_RAW_SIZE): Removed.
449 (SIZEOF_FPU_REGS): Don't use FPU_REG_RAW_SIZE here.
450
451 2001-11-12 Jim Blandy <jimb@redhat.com>
452
453 Patch from Andreas Schwab <schwab@suse.de>:
454 * eval.c (evaluate_subexp_standard): Fix memory leak: use alloca
455 instead of xmalloc.
456
457 2001-11-12 Jim Blandy <jimb@redhat.com>
458
459 * corefile.c (write_memory_unsigned_integer,
460 write_memory_signed_integer): New functions.
461 (write_memory): Move to be with other write_memory_* functions.
462 * gdbcore.h (write_memory_unsigned_integer,
463 write_memory_signed_integer): New declarations.
464
465 2001-11-11 Geoffrey Keating <geoffk@redhat.com>
466
467 * dwarf2read.c (dwarf_decode_lines): Properly deal with
468 unknown standard opcodes.
469
470 2001-11-11 Andrew Cagney <ac131313@redhat.com>
471
472 * README (alpha-dec-osf5.1): Mention -DUSE_LDR_ROUTINES.
473 (sparcv9-sun-solars2.8): Mention problem with 64 bit GCC 3.0.x.
474 (i586-sco-sysv5uw7.1.1): Mention problem with threads.
475
476 2001-11-11 Andrew Cagney <ac131313@redhat.com>
477
478 From Mark Kettenis <kettenis@gnu.org>:
479 * breakpoint.c (breakpoint_re_set_one): Don't discard SHLIB
480 breakpoints when they fail.
481
482 2001-11-10 Andrew Cagney <ac131313@redhat.com>
483
484 * printcmd.c, valprint.c, language.c, linespec.c, infcmd.c,
485 gnu-nat.c, findvar.c, expprint.c, typeprint.c, stack.c, top.c:
486 Replace value_ptr with struct value.
487
488 2001-11-10 Andrew Cagney <ac131313@redhat.com>
489
490 * c-valprint.c, ch-lang.c, ch-valprint.c, cp-valprint.c,
491 p-valprint.c, scm-exp.c, scm-lang.c, scm-valprint.c: Replace
492 value_ptr with struct value.
493
494 2001-11-10 Andrew Cagney <ac131313@redhat.com>
495
496 * eval.c: Replace most occurances of value_ptr with struct value.
497
498 2001-11-09 Jim Blandy <jimb@redhat.com>
499
500 * s390-tdep.c: Don't use a call dummy.
501 (s390_fix_call_dummy, s390_pc_in_call_dummy): Delete.
502 (s390_push_return_address): Put the address of the inferior call
503 breakpoint in r14.
504 (s390_gdbarch_init):
505 - Provide trivial definition of s390_call_dummy_words; register it
506 with the gdbarch appropriately.
507 - Delete S390x_call_dummy_words.
508 - Gather inferior-call-related settings into a group.
509 - Use generic dummy frames.
510 - Put the inferior call breakpoint at the entry point.
511 - Use generic gdbarch methods: pc_in_call_dummy_at_entry_point,
512 generic_push_dummy_frame, generic_fix_call_dummy.
513 - There is a call dummy breakpoint offset; it's zero.
514
515 * s390-tdep.c: (s390_push_arguments): Write a back chain pointer
516 into the dummy frame, to help us get backtraces.
517
518 * values.c (value_as_address): If VAL is a function or method,
519 just return its address; don't let COERCE_ARRAY convert its
520 address to a pointer, and then have unpack_long convert it back to
521 an address.
522
523 2001-11-06 Pierre Muller <muller@ics.u-strasbg.fr>
524
525 * p-lang.c (is_pascal_string_type): New function to determine if a
526 type is a string type.
527 * p-lang.h: Add prototype for is_pascal_string_type.
528 * p-valprint.c (pascal_val_print) : Use is_pascal_string_type function
529 to display strings nicely.
530
531 2001-11-06 Pierre Muller <muller@ics.u-strasbg.fr>
532
533 * p-exp.y (yylex): Only change case of expression if symbol is found.
534 Also check for GPC standard name form.
535
536 2001-11-08 Andrew Cagney <ac131313@redhat.com>
537
538 * gdb_indent.sh: New file.
539
540 2001-11-08 Jim Blandy <jimb@redhat.com>
541
542 * s390-tdep.c (s390_get_frame_info): Initialize got_load_addr and
543 got_load_len, to placate compiler.
544
545 2001-11-08 Mark Kettenis <kettenis@gnu.org>
546
547 * i386-tdep.c (i386_gdbarch_init): Fix typo.
548
549 2001-11-08 Jim Blandy <jimb@redhat.com>
550
551 * s390-tdep.c (s390_gdbarch_init): Use func_frame_chain_valid, not
552 file_frame_chain_valid.
553
554 * s390-tdep.c (s390_get_frame_info): If the prologue loads r12
555 from the constant pool, but doesn't add in the constant pool's
556 address to it, then this function probably isn't using r12 as a
557 GOT pointer, and that load probably wasn't part of the prologue.
558
559 * s390-tdep.c (s390_gdbarch_init): Use the default
560 prepare_to_proceed function established by config/nm-linux.h;
561 don't try to set it to linuxthreads_prepare_to_proceed.
562
563 Wed Nov 7 20:38:14 2001 Andrew Cagney <cagney@redhat.com>
564
565 * i386-tdep.c: Include "i386-tdep.h".
566 (XMALLOC): Define.
567 (i386_gdbarch_init): New function.
568 (_initialize_i386_tdep): Register bfd_arch_i386.
569 * config/i386/tm-i386.h (GDB_MULTI_ARCH): Define as
570 GDB_MULTI_ARCH_PARTIAL.
571 * i386-tdep.h: When partially multi-arch, conditionally define
572 all macros.
573
574 Wed Nov 7 20:45:32 2001 Andrew Cagney <cagney@redhat.com>
575
576 * i386-tdep.c (set_disassembly_flavor): Delete function.
577 (set_disassembly_flavor_sfunc): Delete function.
578
579 2001-11-07 Elena Zannoni <ezannoni@redhat.com>
580
581 * dbxread.c (set_namestring): New function, replacing the
582 SET_NAMESTRING macro.
583 (SET_NAMESTRING, CUR_SYMBOL_TYPE, CUR_SYMBOL_VALUE,
584 CUR_SYMBOL_STRX, DBXREAD_ONLY, START_PSYMTAB, END_PSYMTAB): Delete
585 definitions.
586 (read_dbx_symtab): Don't include partial-stab.h any more. Don't
587 reuse code in partial-stab.h, include the code directly, instead.
588
589 * Makefile.in (dbxread.o): Remove dependency on partial-stab.h.
590 (HFILES_NO_SRCDIR): Remove partial-stab.h.
591
592 * partial-stab.h: Remove file.
593
594 2001-11-07 Andrew Cagney <ac131313@redhat.com>
595
596 * gdbarch.sh: For multi-arch functions, check there is a
597 predefault and use it as the static default.
598 * gdbarch.c: Re-generate.
599
600 2001-11-08 Mark Kettenis <kettenis@gnu.org>
601
602 * config/i386/tm-linux.h (I386_LINUX_ORIG_EAX_REGNUM): Define in
603 terms of NUM_GREGS, NUM_FREGS and NUM_SSE_REGS instead of
604 hardcoding the register number.
605
606 2001-11-07 Andrew Cagney <ac131313@redhat.com>
607
608 * gdbarch.sh (USE_STRUCT_CONVENTION): Default to
609 generic_use_struct_convention.
610 * gdbarch.h, gdbarch.c: Regenerate.
611 * values.c (USE_STRUCT_CONVENTION): Delete definition, moved to
612 gdbarch.h.
613
614 2001-11-06 Andrew Cagney <ac131313@redhat.com>
615
616 * gdbarch.sh (PC_IN_CALL_DUMMY): Require a value.
617 * gdbarch.c: Regenerate.
618
619 2001-11-06 Fred Fish <fnf@redhat.com>
620
621 * complaints.c (info_verbose): Remove unneeded decl, is in defs.h.
622 * dbxread.c: Ditto
623 * dwarf2read.c: Ditto.
624 * dwarfread.c: Ditto.
625 * exec.c: Ditto.
626 * hpread.c: Ditto.
627 * hpread.h: Ditto.
628 * mdebugread.c: Ditto.
629 * os9kread.c: Ditto.
630 * stack.c: Ditto.
631 * symfile.c: Ditto.
632 * tracepoint.c: Ditto.
633
634 2001-11-06 Andrew Cagney <ac131313@redhat.com>
635
636 * MAINTAINERS: Update Andrew Cagney's responsibilities. Mention
637 David Taylor and Nick Duffek in past maintainers.
638
639 2001-11-06 Elena Zannoni <ezannoni@redhat.com>
640
641 * mdebugread.c (CUR_SYMBOL_TYPE, CUR_SYMBOL_VALUE, START_PSYMTAB,
642 END_PSYMTAB, SET_NAMESTRING, HANDLE_RBRAC): Delete definitions.
643 (parse_partial_symbols): Don't include partial-stab.h any
644 more. Don't reuse code in partial-stab.h, include the code
645 directly, instead. Simplify code from partial-stab.h eliminating
646 ifdef DBXREAD_ONLY code.
647
648 * Makefile.in (mdebugread.o): Remove dependency on partial-stab.h.
649
650 2001-11-06 Jim Blandy <jimb@redhat.com>
651
652 * s390-nat.c: #include "regcache.h", to get declaration for
653 `supply_register'. (The last change already added the dependency
654 of s390-nat.o on regcache.h. Oops.)
655
656 * Makefile.in (ALLDEPFILES): Add s390-tdep.c and s390-nat.c.
657 (s390-tdep.o, s390-nat.o): New rules.
658
659 * s390-nat.c (s390_register_u_addr): Pass proper arguments to
660 internal_error.
661
662 2001-11-06 Andrew Cagney <ac131313@redhat.com>
663
664 * gdbarch.sh (CALL_DUMMY_LOCATION): Require a value.
665 * gdbarch.c: Regenerate.
666
667 2001-11-06 Andrew Cagney <ac131313@redhat.com>
668
669 * blockframe.c (get_prev_frame): Replace #ifdef
670 INIT_EXTRA_FRAME_INFO with run-time test.
671
672 2001-11-05 Andrew Cagney <ac131313@redhat.com>
673
674 * gdbarch.sh (push_return_address): Change to a function with
675 predicate.
676 * gdbarch.h, gdbarch.c: Re-generate.
677 * valops.c (hand_function_call): Replace #ifdef
678 PUSH_RETURN_ADDRESS with run-time test of PUSH_RETURN_ADDRESS_P.
679
680 2001-11-06 Corinna Vinschen <vinschen@redhat.com>
681
682 * arch-utils.c (generic_in_function_epilogue_p): New function.
683 * arch-utils.h (generic_in_function_epilogue_p): Declare extern.
684 * breakpoint.c (watchpoint_check): Add test whether the pc is
685 currently in the epilogue of a function.
686 * gdbarch.c: Autogenerated from gdbarch.sh.
687 * gdbarch.h: Ditto.
688 * gdbarch.sh (function_list): Add `in_function_epilogue_p' definition.
689
690 2001-11-05 Jim Blandy <jimb@redhat.com>
691
692 * config/s390/s390.mh (NATDEPFILES): Don't split this across
693 several lines with backslashes; the `sed' command in
694 configure.in's AC_OUTPUT clause that comments out the NATDEPFILES
695 assignment doesn't handle lines extended with backslashes.
696
697 * configure.in (AC_OUTPUT): Handle assignments to NATDEPFILES
698 using `+=' as well as `='.
699 * configure: Regenerated.
700
701 2001-11-05 Andrew Cagney <ac131313@redhat.com>
702
703 * gdbarch.sh (init_extra_frame_info): Change to a function with
704 predicate.
705 * gdbarch.h, gdbarch.c: Re-generate.
706 * blockframe.c (create_new_frame): Replace #ifdef
707 INIT_EXTRA_FRAME_INFO with run-time test of
708 INIT_EXTRA_FRAME_INFO_P.
709
710 2001-11-05 Andrew Cagney <ac131313@redhat.com>
711
712 * gdbarch.sh (verify_gdbarch): Use a mem_file to accumulate all
713 error messages. Print in a single batch.
714 * gdbarch.c: Re-generate.
715
716 2001-11-04 Mark Kettenis <kettenis@gnu.org>
717
718 * i386-linux-nat.c (GETREGS_SUPPLIES, supply_gregset,
719 fill_gregset): Add support for "orig_eax" register.
720
721 Add support for "orig_eax" pseudo register on Linux/x86.
722 * i386-linux-tdep.c: Include "inferior.h".
723 (i386_linux_register_name, i386_linux_register_byte,
724 i386_linux_register_raw_size): New functions.
725 (i386_linux_write_pc): New function.
726 * config/i386/tm-linux.h (I386_LINUX_ORIG_EAX_REGNUM): New define.
727 (NUM_REGS, MAX_NUM_REGS, REGISTER_BYTES, REGISTER_NAME,
728 REGISTER_BYTE, REGISTER_RAW_SIZE): Define to deal with additional
729 register.
730 (i386_linux_register_name, i386_linux_register_byte,
731 i386_linux_register_raw_size): New prototypes.
732 (TARGET_WRITE_PC): New define.
733 (i386_linux_write_pc): New prototype.
734
735 * i386-tdep.c (i386_register_offset): Renamed from
736 i386_register_byte. Made static.
737 (i386_register_size): Renamed from i386_register_raw_size. Made
738 static.
739 (i386_register_virtual_size): Removed.
740 (i386_register_byte, i386_register_raw_size,
741 i386_register_virtual_size): New functions.
742 (_initialize_i386_tdep): Initialize i386_register_offset instead
743 of i386_register_byte. Remove code to initialize
744 i386_register_virtual_size.
745 * config/i386/tm-i386.h (REGISTER_BYTE): Redefine to use
746 i386_register_byte function.
747 (REGISTER_RAW_SIZE): Redefine to use i386_register_raw_size
748 function.
749 (REGISTER_VIRTUAL_SIZE): Redefine to use
750 i386_register_virtual_size function.
751 (i386_register_byte, i386_register_raw_size,
752 i386_register_virtual_size): New functions.
753
754 * Makefile.in (ALLDEPFILES): Add i387-nat.c.
755 (i387-nat.o): Add dependencies.
756
757 2001-11-02 Andrew Cagney <ac131313@redhat.com>
758
759 * README: Mention problem with alpha-dec-osf5.1.
760
761 2001-11-02 Andrew Cagney <ac131313@redhat.com>
762
763 * utils.c (internal_verror): Restore calls to abort().
764 Fix PR gdb/219.
765
766 2001-11-02 Michael Chastain <mec@shout.net>
767
768 * MAINTAINERS: Update my entry.
769
770 2001-11-01 Michael Snyder <msnyder@redhat.com>
771
772 * symtab.c (operator_chars): Allow '*' and '[' to be quoted in
773 operator names, to avoid regexp expansion.
774 (search_symbols): Alloca buffer is too small, may get clobbered.
775
776 2001-11-01 Fred Fish <fnf@redhat.com>
777
778 * coff-solib.c (coff_solib_add): Add new readsyms arg.
779 * irix5-nat.c (solib_add): Ditto.
780 * osfsolib.c (solib_add): Ditto.
781 * pa64solib.c (pa64_solib_add): Ditto.
782 * pa64solib.c (add_to_solist): Ditto.
783 * pa64solib.c (read_dld_descriptor): Ditto.
784 * solib.c (solib_add): Ditto.
785 * somsolib.c (som_solib_add): Ditto.
786 * win32-nat.c (child_solib_add): Ditto.
787 * xcoffsolib.c (solib_add): Ditto.
788
789 * coff-solib.h (coff_solib_add): Add new readsyms arg to prototype.
790 * pa64solib.c (add_to_solist): Ditto.
791 * pa64solib.c (read_dld_descriptor): Ditto.
792 * pa64solib.h (pa64_solib_add): Ditto.
793 * solib.h (solib_add): Ditto.
794 * somsolib.h (som_solib_add): Ditto.
795 * config/i386/tm-cygwin.h (child_solib_add): Ditto.
796
797 * coff-solib.c (coff_solib_add): If readsyms is zero don't read
798 symbols but do any other needed work for shared libs.
799 * irix5-nat.c: Ditto.
800 * osfsolib.c (solib_add): Ditto.
801 * solib.c (solib_add): Ditto.
802 * win32-nat.c (child_solib_add): Ditto.
803 * xcoffsolib.c (solib_add): Ditto.
804
805 * irix5-nat.c (sharedlibrary_command): Pass 1 as readsyms to
806 solib_add to force reading of shared library symbols.
807 * osfsolib.c (sharedlibrary_command;): Ditto.
808 * pa64solib.c (pa64_solib_sharedlibrary_command): Ditto.
809 * solib.c (sharedlibrary_command): Ditto.
810 * somsolib.c (som_solib_sharedlibrary_command): Ditto.
811 * xcoffsolib.c (sharedlibrary_command): Ditto.
812
813 * coff-solib.c (coff_solib_create_inferior_hook): Call solib_add
814 unconditionally with auto_solib_add.
815 * irix5-nat.c (solib_create_inferior_hook): Ditto.
816 * osfsolib.c (solib_create_inferior_hook): Ditto.
817 * solib.c (solib_create_inferior_hook): Ditto.
818 * solib-osf.c (osf_solib_create_inferior_hook): Ditto.
819 * solib-svr4.c (enable_break): Ditto.
820 * solib-sunos.c (sunos_solib_create_inferior_hook): Ditto.
821
822 * corelow.c (solib_add_stub): Add auto_solib_add to args passed
823 via SOLIB_ADD.
824 * sol-thread.c (sol_thread_attach): Ditto.
825 * config/rs6000/nm-rs6000.h (SOLIB_ADD): Ditto.
826
827 * infcmd.c (attach_command): Remove auto_solib_add decl.
828 Call SOLIB_ADD directly with auto_solib_add.
829 * infrun.c (handle_inferior_event): Ditto.
830
831 * coff-solib.h (SOLIB_ADD): Add readsyms arg.
832 * pa64solib.h (SOLIB_ADD): Ditto.
833 * solib.h (SOLIB_ADD): Ditto.
834 * somsolib.h (SOLIB_ADD): Ditto.
835 * config/i386/tm-cygwin.h (SOLIB_ADD): Ditto.
836
837 * fork-child.c (clone_and_follow_inferior): Remove unused
838 auto_solib_add decl.
839
840 * pa64solib.c (pa64_solib_add): Call add_to_solist with readsyms.
841 (read_dld_descriptor): Ditto.
842 (pa64_solib_add): Call read_dld_descriptor with readsyms.
843 (pa64_solib_in_dynamic_linker): Ditto.
844
845 * corelow.c (symfile.h): Need this for auto_solib_add declaration.
846 * sol-thread.c (symfile.h): Ditto.
847
848 2001-10-31 Andrew Cagney <ac131313@redhat.com>
849
850 * s390-nat.c (s390_remove_watchpoint): Use xfree.
851 (s390_insert_watchpoint): Use xmalloc.
852
853 2001-10-31 Andrew Cagney <ac131313@redhat.com>
854
855 * varobj.c: Replace value_ptr with ``struct value *''.
856
857 2001-10-31 Andrew Cagney <ac131313@redhat.com>
858
859 * varobj.c: Re-indent.
860
861 2001-10-31 Andrew Cagney <ac131313@redhat.com>
862
863 * x86-64-tdep.c (value_push, x86_64_push_arguments): Replace
864 ``value_ptr'' with ``struct value *''.
865 * s390-tdep.c (s390_push_arguments): Ditto.
866
867 2001-10-30 Andrew Cagney <ac131313@redhat.com>
868
869 * ppc-tdep.h: Add #ifndef wrapper. Replace value_ptr with
870 ``struct value *''.
871 (struct frame_info, struct value): Add opaque declarations.
872
873 2001-10-31 Corinna Vinschen <vinschen@redhat.com>
874
875 * arch-utils.c (generic_in_solib_call_trampoline): New function.
876 * arch-utils.h (generic_in_solib_call_trampoline): Extern declaration.
877 * gdbarch.c: Regenerated from gdbarch.sh.
878 * gdbarch.h: Ditto.
879 * gdbarch.sh (function_list): Add `IN_SOLIB_CALL_TRAMPOLINE' definition.
880 * infrun.c (IN_SOLIB_CALL_TRAMPOLINE): Remove macro.
881
882 2001-10-31 Andrew Cagney <ac131313@redhat.com>
883
884 From DJ Barrow.
885 * s390-tdep.c: (s390_gdbarch_init): Don't initialize
886 find_solib_trampoline_target.
887
888 2001-10-31 Andrew Cagney <ac131313@redhat.com>
889
890 * remote-vx.c (net_wait): Fix typo from PIDGET change.
891
892 2001-10-31 Mark Kettenis <kettenis@gnu.org>
893
894 * config/i386/tm-i386.h (REGISTER_NAMES): Remove.
895 (REGISTER_NAME): New define.
896 (i386_register_name): New prototype.
897 * i386-tdep.c (i386_register_names): New variable.
898 (i386_register_name): New function.
899 * config/i386/tm-i386os9k.h, config/i386/tm-ptx.h,
900 config/i386/tm-symmetry.h: Undefine REGISTER_NAME instead of
901 REGISTER_NAMES.
902
903 2001-10-31 Christopher Faylor <cgf@redhat.com>
904
905 * win32-nat.c (register_loaded_dll): Attempt to ensure that the case of
906 the loaded DLL matches the on-disk case since the debugging API does
907 not seem to ensure this. Calculate max name length here.
908 (handle_load_dll): Move max name length calculation to
909 register_loaded_dll.
910
911 2001-10-31 Daniel Jacobowitz <drow@mvista.com>
912
913 * arm-linux-nat.c: Include <asm/ptrace.h> explicitly.
914
915 2001-10-30 Keith Seitz <keiths@redhat.com>
916
917 * wrapper.h (gdb_value_struct_elt): New function.
918 * wrapper.c (gdb_value_struct_elt): Ditto.
919 (do_captured_value_struct_elt): Ditto.
920
921 2001-10-30 Andrew Cagney <ac131313@redhat.com>
922
923 * README, NEWS: Update for 5.1.
924
925 2001-10-30 Andrew Cagney <ac131313@redhat.com>
926
927 * configure.in (WERROR_CFLAGS): Use AC_TRY_COMPILE to test the
928 -W... flags.
929 * configure: Re-generate.
930
931 2001-10-30 Fred Fish <fnf@redhat.com>
932
933 * somsolib.c (som_solib_add): A megabyte is 1024*1024 bytes.
934 * pa64solib.c (add_to_solist): Ditto.
935 * win32-nat.c (_initialize_inftarg): Remove unnecessary
936 initialization of auto_solib_add, it defaults to 1.
937
938 2001-10-27 Fred Fish <fnf@redhat.com>
939
940 * symfile.c (auto_solib_add): Update comment to note that
941 this variable is now just used as a boolean to control shlib
942 autoloading, and clarify when it is used.
943 * symfile.h (auto_solib_add): Ditto.
944
945 * symfile.c (auto_solib_limit): New variable that holds the
946 autoloading threshold instead of overloading auto_solib_add.
947 * symfile.h (auto_solib_limit): Ditto.
948
949 * irix5-nat.c (_initialize_solib): Change auto-solib-add
950 variable from var_zinteger to var_boolean and update help.
951 * osfsolib.c (_initialize_solib): Ditto.
952 * pa64solib.c (_initialize_pa64_solib): Ditto.
953 * solib.c (_initialize_solib): Ditto.
954 * somsolib.c (_initialize_som_solib): Ditto.
955 * xcoffsolib.c (_initialize_solib): Ditto.
956
957 * pa64solib.c (pa64_solib_total_st_size): Update comment to
958 note that the new auto_solib_limit variable is used instead
959 of overloading auto_solib_add variable.
960 (_initialize_pa64_solib): Ditto.
961 * somsolib.c (som_solib_total_st_size): Ditto.
962 (_initialize_som_solib): Ditto.
963
964 * pa64solib.c (_initialize_pa64_solib): Add new set/show
965 commands for auto-solib-limit variable.
966 * somsolib.c (_initialize_som_solib): Ditto
967
968 * pa64solib.c (add_to_solist): Check that auto_solib_add is
969 set and use auto_solib_limit as the threshold size instead
970 of auto_solib_add.
971 * somsolib.c (som_solib_add): Ditto, and also change warning
972 text about size threshold exceeded.
973
974 2001-10-21 Mark Kettenis <kettenis@gnu.org>
975
976 * config/i386/tm-i386v.h: Don't include "regcache.h".
977 (EXTRACT_RETURN_VALUE, STORE_RETURN_VALUE, FRAME_CHAIN,
978 FRAMELESS_FUNCTION_INVOCATION, FRAME_SAVED_PC, FRAME_NUM_ARGS):
979 Remove macros. The versions from "tm-i386.h" should work fine
980 (and in most cases even better).
981
982 2001-10-30 Mark Kettenis <kettenis@gnu.org>
983
984 * i386-tdep.c (i386_extract_return_value): Use
985 convert_typed_floating to extract floating-point value from
986 register buffer.
987 (i386_store_return_value): Use convert_typed_floating to store
988 floating-point return balue in register buffer
989 (i386_register_virtual_type): Change type of floating-point
990 registers to builtin_type_i387_ext.
991 (i386_register_convert_to_virtual): Use convert_typed_floating to
992 do the conversion.
993 (i386_register_convert_to_raw): Likewise.
994
995 2001-10-29 Mark Kettenis <kettenis@gnu.org>
996
997 * doublest.h (convert_typed_floating): New prototype.
998 * doublest.c (convert_typed_floating): New function.
999
1000 2001-10-28 Mark Kettenis <kettenis@gnu.org>
1001
1002 * doublest.c: Improve comments a bit.
1003 (floatformat_from_length): New function.
1004 (NAN): Define to 0.0 if not already defined.
1005 (extract_floating): Rewrite to use floatformat_from_length. Warn
1006 instead of error if LEN doesn't match a known floating-point type,
1007 and return NaN (or 0.0 if NaN isn't available) in that case.
1008 (store_floating): Likewise, but zero out the target byte-stream if
1009 LEN doesn't match a known floating-point type.
1010 (extract_typed_floating): Reformat a bit.
1011 (store_typed_floating): Reformat a bit. Add comment about zeroing
1012 out padding in the target buffer.
1013 * doublest.h (extract_floating, store_floating): Fix comment about
1014 deprecation of these functions. Add parameter names to prototypes.
1015
1016 2001-10-28 Mark Kettenis <kettenis@gnu.org>
1017
1018 * i387-tdep.c (print_i387_value): Use extract_typed_floating to
1019 convert RAW to a DOUBLEST instead of extract_floating.
1020
1021 * gdbtypes.c (_initialize_gdbtypes): Set floating-point type for
1022 builtin_type_i387_ext to floatformat_i387_ext.
1023
1024 2001-10-24 Daniel Jacobowitz <drow@mvista.com>
1025
1026 * arm-linux-nat.c (fill_gregset): Do not check register_valid[].
1027 (fill_fpregset): Likewise.
1028
1029 2001-10-26 Orjan Friberg <orjanf@axis.com>
1030
1031 * cris-tdep.c (constraint): Loop through the whole cris_spec_regs
1032 struct, not just the NUM_SPECREGS first entries.
1033 (bdap_prefix): Read PC before autoincrement.
1034
1035 2001-10-24 Corinna Vinschen <vinschen@redhat.com>
1036
1037 * win32-nat.c (DebugSetProcessKillOnExit): New static function
1038 pointer to Windows' DebugSetProcessKillOnExit() function.
1039 (DebugActiveProcessStop): Ditto for DebugActiveProcessStop().
1040 (has_detach_ability): New function.
1041 (child_attach): If system has detach ability, enable it.
1042 (child_detach): If system has detach ability, actually
1043 detach from process.
1044 Change tty output to Linux format.
1045
1046 2001-10-23 Jim Blandy <jimb@redhat.com>
1047
1048 Isolate STABS readers' use of the `textlow' and `texthigh' fields
1049 of `struct partial_symtab' to only a few locations. This change
1050 is not supposed to affect the way the values are computed, only
1051 where they live.
1052
1053 * dbxread.c (struct symloc): Add `textlow' and `texthigh' fields
1054 to the reader-specific structure.
1055 * mdebugread.c (struct symloc): Same.
1056 * dbxread.c (TEXTLOW, TEXTHIGH): New accessor macros.
1057 * mdebugread.c (TEXTLOW, TEXTHIGH): Same.
1058 * dbxread.c (dbx_symfile_read): After we've built all our partial
1059 symbol tables, set each partial symtab's `textlow' and `texthigh'
1060 fields from our reader-specific structure.
1061 * mdebugread.c (mdebug_build_psymtabs): Same.
1062 * dbxread.c (start_psymtab): Initialize the reader-specific
1063 structure's `textlow' and `texthigh' from the new psymtab's.
1064 * mdebugread.c (parse_partial_symbols, new_psymtab): Same.
1065 * dbxread.c (read_dbx_symtab, end_psymtab, read_ofile_symtab): Use
1066 the reader-specific `textlow' and `texthigh', not the generic
1067 psymtab fields.
1068 * mdebugread.c (parse_lines, parse_partial_symbols,
1069 psymtab_to_symtab_1): Same.
1070 * partial-stab.h: Same.
1071
1072 Tue Oct 23 18:59:42 2001 Andrew Cagney <cagney@redhat.com>
1073
1074 * hp-psymtab-read.c, hppah-nat.c, hppa-tdep.c: Fix -Wformat
1075 problems.
1076
1077 Tue Oct 23 14:16:10 2001 Andrew Cagney <cagney@redhat.com>
1078
1079 * somsolib.c (som_solib_add): Use core_addr_to_host_pointer.
1080 (som_solib_desire_dynamic_linker_symbols): Compare integers with
1081 zero not NULL.
1082 * hp-psymtab-read.c (hpread_call_pxdb): Make parameter constant.
1083
1084 2001-10-21 Andrew Cagney <ac131313@redhat.com>
1085
1086 * top.c (print_gdb_version): Do not print ``(MI_OUT)''. MI
1087 interface is always enabled.
1088
1089 2001-10-21 Andrew Cagney <ac131313@redhat.com>
1090
1091 * Makefile.in: Replace top.h with $(top_h). Replace expression.h
1092 with $(expression_h). Replace command.h with $(command_h).
1093 (language_h): Define. Replace language.h with $(language_h).
1094 Replace call-cmds.h with $(call_cmds_h). Replace varobj.h with
1095 $(varobj_h).
1096 (wrapper_h, valprint_h, objfiles_h, complaints_h): Ditto.
1097 (serial_h, hpread_h, buildsym_h, stabsread_h): Ditto.
1098 (xcoffsolib_h, gdb_stabs_h, linespec_h): Ditto.
1099 (bcache_h, gdb_events_h, monitor_h): Ditto.
1100 (ser_unix_h, source_h): Ditto.
1101 (varobj_h): Update list.
1102
1103 * call-cmds.h: Add CALL_CMDS_H macro wrapper.
1104 * solist.h: Add SOLIST_H macro wrapper.
1105 * monitor.h: Add MONITOR_H macro wrapper.
1106 * typeprint.h: Add TYPEPRINT_H macro wrapper.
1107 * xcoffsolib.h: Add XCOFFSOLIB_H macro wrapper.
1108 * valprint.h: Add VALPRINT_H macro wrapper.
1109 * top.h: Add TOP_H macro wrapper.
1110
1111 2001-10-21 Andrew Cagney <ac131313@redhat.com>
1112
1113 * config/a29k/tm-vx29k.h, i386-tdep.c: Include "value.h".
1114 * arm-tdep.c, exec.c, ia64-tdep.c, infrun.c: Ditto.
1115 * ppc-linux-tdep.c, remote-es.c, remote.c: Ditto.
1116 * rs6000-tdep.c, s390-tdep.c, x86-64-tdep.c: Ditto.
1117 * Makefile.in (arm-tdep.o, exec.o, i386-tdep.o, ia64-tdep.o)
1118 (infrun.o, ppc-linux-tdep.o, remote.o, rs6000-tdep.o)
1119 (x86-64-tdep.o): Update dependencies.
1120 * gdbarch.sh [!GDB_MULTI_ARCH]: Include "value.h".
1121 * gdbarch.h, gdbarch.c: Re-generate.
1122
1123 2001-10-21 Mark Kettenis <kettenis@gnu.org>
1124
1125 * infptrace.c (child_xfer_memory): Fix a few coding standards
1126 violations.
1127
1128 2001-10-21 Eli Zaretskii <eliz@is.elta.co.il>
1129
1130 * config/djgpp/README: Fix a typo and tweak for GDB 5.1.
1131
1132 2001-10-20 Andrew Cagney <ac131313@redhat.com>
1133
1134 * jv-lang.h: Add #ifndef JV_LANG_H wrapper.
1135 (struct value): Add opaque declaration. Replace value_ptr with
1136 ``struct value *''.
1137 * jv-valprint.c, jv-lang.c: Replace value_ptr with equivalent
1138 struct.
1139
1140 * wrapper.h (struct value): Add opaque declaration. Replace
1141 value_ptr with ``struct value *''.
1142 * wrapper.c: Replace value_ptr with ``struct value *''.
1143 * breakpoint.h, breakpoint.c: Ditto.
1144 * cp-abi.h, hpacc-abi.c, gnu-v2-abi.c, cp-abi.c: Ditto.
1145
1146 2001-10-20 Andrew Cagney <ac131313@redhat.com>
1147
1148 * alpha-nat.c: Include <alpha/coreregs.h> instead of
1149 <machine/reg.h>.
1150 (fetch_osf_core_registers): Define core_reg_mapping in a way that
1151 works on OSF5 as well as previous OSF versions.
1152
1153 2001-10-20 Christopher Faylor <cgf@redhat.com>
1154
1155 * win32-nat.c (handle_load_dll): Avoid strlwr'ing loaded DLLs or cygwin
1156 may not be able to read them in certain situations.
1157
1158 2001-10-18 Andrew Cagney <ac131313@redhat.com>
1159
1160 * config/powerpc/nbsd.mt (SIM_OBS, SIM): Define.
1161 * config/powerpc/linux.mt (SIM, SIM_OBS): Ditto
1162
1163 2001-10-18 Andrew Cagney <ac131313@redhat.com>
1164
1165 * README: Mention problems with HP/UX.
1166
1167 2001-10-16 Andrew Cagney <ac131313@redhat.com>
1168
1169 Based on code by John Moore <jmore@redhat.com>:
1170
1171 * utils.c (core_addr_to_string): New function for conversion of
1172 CORE_ADDR to string.
1173 (string_to_core_addr): New function to convert from string to
1174 CORE_ADDR.
1175 * defs.h: Added extern statements for the above.
1176
1177 2001-10-17 Jason Molenda (jason-cl@molenda.com)
1178
1179 * symtab.c (lookup_block_symbol): Break out of linear search
1180 if we're past the range of possible matches.
1181
1182 2001-10-16 Christopher Faylor <cgf@redhat.com>
1183
1184 * win32-nat.c (safe_symbol_file_add_stub): Improve logic for avoiding
1185 load of already loaded DLL.
1186 (register_loaded_dll): Convert loaded DLL name to "posix" format or it
1187 will confuse subsequent opening of the filename due to dos paths.
1188 (dll_symbol_command): Pass from_tty parameter to safe_symbol_file_add.
1189
1190 2001-10-15 Elena Zannoni <ezannoni@redhat.com>
1191
1192 * symtab.c (lookup_block_symbol): Update comment.
1193
1194 2001-10-15 Andrew Cagney <ac131313@redhat.com>
1195
1196 * value.h (value_as_address): Rename value_as_pointer.
1197 * eval.c, findvar.c, gnu-v2-abi.c, gnu-v3-abi.c, jv-lang.c,
1198 jv-valprint.c, printcmd.c, stack.c, top.c, valarith.c, valops.c,
1199 values.c: Update.
1200
1201 202001-10-15 Jim Ingham <jingham@inghji.apple.com>
1202
1203 * valarith.c (value_sub): Don't pass a raw type to
1204 value_from_pointer, it has to go through check_typedef first.
1205
1206 2001-10-15 Andrew Cagney <ac131313@redhat.com>
1207
1208 * gdbarch.sh (fallbackdefault): Set to one when predefault is
1209 empty.
1210 * gdbarch.h: Regenerate.
1211
1212 2001-10-15 Andrew Cagney <ac131313@redhat.com>
1213
1214 * mips-tdep.c (mips_integer_to_address): New function.
1215 (mips_gdbarch_init): Initialize pointer_to_address,
1216 address_to_pointer and integer_to_address.
1217
1218 * config/mips/tm-mips.h (POINTER_TO_ADDRESS): Delete
1219 (ADDRESS_TO_POINTER): Delete.
1220
1221 * d10v-tdep.c (d10v_integer_to_address): New function.
1222 (d10v_gdbarch_init): Initialize integer_to_address.
1223
1224 * values.c (value_as_pointer): Use INTEGER_TO_ADDRESS when
1225 available.
1226
1227 * gdbarch.sh (INTEGER_TO_ADDRESS): New predicate and function.
1228 * gdbarch.h, gdbarch.c: Regenerate.
1229
1230 2001-10-14 Mark Kettenis <kettenis@gnu.org>
1231
1232 * config/s390/nm-linux.h: Don't include <signal.h>.
1233 (lin_lwp_attach_lwp, ATTACH_LWP, lin_thread_get_thread_signals,
1234 GET_THREAD_SIGNAL): Remove.
1235
1236 * config/nm-linux.h (struct objfile): Remove forward declaration.
1237 (linuxthreads_new_objfile): Remove prototype.
1238 (linuxthreads_pid_to_str): Remove prototype.
1239 (PREPARE_TO_PROCEED): Redefine in terms of
1240 lin_lwp_prepare_to_proceed.
1241 (struct target_waitstatus): Forward declaration.
1242 (child_wait): New prototype.
1243 (CHILD_WAIT): Define.
1244 (lin_lwp_attach_lwp, ATTACH_LWP, lin_thread_get_thread_signals,
1245 GET_THREAD_SIGNAL): Moved here from arch-specific files.
1246 * config/alpha/nm-linux.h, config/arm/nm-linux.h,
1247 config/ia64/nm-linux.h, config/mips/nm-linux.h,
1248 config/powerpc/nm-linux.h: Don't include <signal.h>.
1249 (lin_lwp_attach_lwp, ATTACH_LWP, lin_thread_get_thread_signals,
1250 GET_THREAD_SIGNAL): Remove.
1251 * config/i386/nm-linux.h: Likewise.
1252 (struct target_waitstatus, child_wait, CHILD_WAIT): Remove.
1253 * config/m68k/linux.mh, config/sparc/linux.mh (NATDEPFILES):
1254 Remove linux-thread.o. Add proc-service.o, thread-db.o and
1255 lin-lwp.o.
1256 (LOADLIBES): New variable.
1257
1258 * sparc-nat.c (fetch_core_registers): Remove redundant prototype.
1259
1260 * proc-service.c (BUILD_LWP): Redefine in terms of ptid_build.
1261
1262 Fix attaching to cloned processes. This fixes PR gdb/61.
1263 * lin-lwp.c (struct lwp_info): Add new member `cloned'.
1264 (is_cloned) Removed.
1265 (lin_lwp_attach_lwp): Don't call stop_wait_callback. Instead call
1266 waitpid explicitly. Mark the LWP as cloned if waitpid fails and
1267 retry with __WCLONE flag.
1268 (lin_lwp_attach): Likewise. Warn if attaching to a cloned process.
1269 (detach_callback): Replace use of is_cloned with explicit check on
1270 LWP id and process id.
1271 (stop_wait_callback): Replace use of is_cloned with check if LWP
1272 is marked as cloned.
1273 [CHILD_WAIT] (child_wait): New function.
1274 (lin_lwp_wait): Replace use of is_cloned with check if LWP is
1275 marked as cloned. Mark newly detected LWPs as cloned if detected
1276 by waitpid with __WCLONE flag.
1277 (kill_wait_callback): Replace use of is_cloned with check if LWP
1278 is marked as cloned.
1279 * config/i386/nm-linux.h (struct target_waitstatus): Add forward
1280 declaration.
1281 (child_wait): Add prototype.
1282 (CHILD_WAIT): Define.
1283
1284 2001-10-13 Andrew Cagney <ac131313@redhat.com>
1285
1286 S/390 31 & 64 bit target and GNU/Linux native support.
1287 Contributed by D.J. Barrow <djbarrow@de.ibm.com> of IBM.
1288 * s390-nat.c, s390-tdep.c: New file.
1289 * config/s390/nm-linux.h, config/s390/s390.mh: New file.
1290 * config/s390/s390.mt, config/s390/s390x.mt: New file.
1291 * config/s390/tm-linux.h, config/s390/tm-s390.h: New file.
1292 * config/s390/xm-linux.h: New file.
1293 * NEWS: Update.
1294 * MAINTAINERS: Update.
1295
1296 2001-10-13 Andrew Cagney <ac131313@redhat.com>
1297
1298 From 2001-07-09 D.J. Barrow <djbarrow@de.ibm.com>:
1299 * gdbarch.sh: Fixed CALL_DUMMY_BREAKPOINT_OFFSET to check
1300 CALL_DUMMY_BREAKPOINT_OFFSET_P.
1301 * gdbarch.c: Regenerate.
1302
1303 2001-10-13 Mark Kettenis <kettenis@gnu.org>
1304
1305 * thread-db.c: Fix a few formatting mistakes.
1306
1307 2001-10-12 Christopher Faylor <cgf@redhat.com>
1308
1309 * win32-nat.c (safe_symbol_file_add_stub): Properly initialize linked
1310 list pointer to beginning rather than one beyond beginning.
1311
1312 2001-10-12 Daniel Jacobowitz <drow@mvista.com>
1313
1314 * symtab.h (struct block): (ALL_BLOCK_SYMBOLS): New macro.
1315
1316 * symtab.c (find_pc_sect_symtab): Use ALL_BLOCK_SYMBOLS.
1317 (make_symbol_completion_list): Likewise.
1318 (make_symbol_overload_list): Likewise.
1319 * buildsym.c (finish_block): Likewise.
1320 * breakpoint.c (get_catch_sals): Likewise.
1321 * mdebugread.c (mylookup_symbol): Likewise.
1322 * objfiles.c (objfile_relocate): Likewise.
1323 * printcmd.c (print_frame_args): Likewise.
1324 * stack.c (print_block_frame_locals): Likewise.
1325 (print_block_frame_labels): Likewise.
1326 (print_frame_arg_vars): Likewise.
1327 * symmisc.c (dump_symtab): Likewise.
1328 * tracepoint.c (add_local_symbols): Likewise.
1329 (scope_info): Likewise.
1330
1331 2001-10-12 Daniel Jacobowitz <drow@mvista.com>
1332
1333 * minsyms.c (msymbol_hash): Use better hash function.
1334 (msymbol_hash_iw): Likewise. Terminate loop at '(' properly.
1335
1336 * objfiles.h: Increase MINIMAL_SYMBOL_HASH_SIZE to match modern
1337 binaries.
1338
1339 2001-10-12 Daniel Jacobowitz <drow@mvista.com>
1340
1341 * printcmd.c (print_frame_args): Move symbol iteration explicitly
1342 inside the func != NULL block.
1343
1344 2001-10-12 Fernando Nasser <fnasser@redhat.com>
1345
1346 * MAINTAINERS (Misc): Add Ian Roxborough as tcl/, tk/ and itcl/
1347 maintainer.
1348
1349 2001-10-12 Pierre Muller <muller@ics.u-strasbg.fr>
1350
1351 * config/i386/tm-cygwin.h: Include tm-i386.h instead of tm-i386v.h.
1352 This fixes errors in "long long" handling for 'finish' and 'return'
1353 commands.
1354
1355 2001-10-12 Christopher Faylor <cgf@redhat.com>
1356
1357 * win32-nat.c (safe_symbol_file_add_stub): Avoid adding a shared
1358 library if it has already been loaded.
1359 (safe_symbol_file_add_cleanup): Don't mess with stderr or we won't see
1360 any error messages.
1361 (safe_symbol_file_add): Ditto.
1362 (solib_symbols_add): Make static. Accept 'from_tty' parameter. Pass
1363 it to safe_symbol_file_add.
1364 (core_dll_symbols_add): Accomodate extra solib_symbols_add parameter.
1365 (child_solib_add): Ditto.
1366
1367 * win32-nat.c (handle_exception): Don't print "first chance"
1368 exceptions.
1369 (get_child_debug_event): Continue from exceptions if !handle_exception.
1370
1371 2001-10-11 Tom Tromey <tromey@redhat.com>
1372
1373 * symtab.c (lookup_symtab): Removed.
1374 (lookup_symtab_1): Renamed to lookup_symtab.
1375
1376 2001-10-10 Christopher Faylor <cgf@redhat.com>
1377
1378 * win32-nat.c (get_child_debug_event): Close file handles created after
1379 process creation and DLL load.
1380 (child_create_inferior): Close unneeded process/thread handle after
1381 thread creation.
1382
1383 2001-10-10 Jim Blandy <jimb@redhat.com>
1384
1385 * mn10300-tdep.c (mn10300_analyze_prologue): Doc fixes.
1386
1387 2001-10-10 Keith Seitz <keiths@redhat.com>
1388
1389 * varobj.c (cplus_value_of_child): Deal with a failure
1390 to dereference a pointer object.
1391
1392 2001-10-08 J. Brobecker <brobecker@gnat.com>
1393
1394 * hpux-thread.c: rewrite find_active_thread() and find_tcb()
1395 to use ptid_t, instead of overloading the thread and the pid
1396 into the same 32-bit value. Make associated necessary adaptations.
1397 Also remove unused variable cached_active_thread.
1398
1399 2001-10-08 Nicholas Duffek <nsd@redhat.com>
1400
1401 * MAINTAINERS (powerpc, SCO/Unixware, Solaris/x86): Remove my
1402 entries.
1403
1404 2001-10-06 Mark Kettenis <kettenis@beast.freebsd.org>
1405
1406 * config/alpha/tm-fbsd.h (FRAME_CHAIN_VALID): Define.
1407
1408 2001-10-04 Tom Tromey <tromey@redhat.com>
1409
1410 * main.c (enable_external_editor): Don't declare.
1411 (captured_main): Don't set enable_external_editor.
1412
1413 2001-10-02 Kevin Buettner <kevinb@redhat.com>
1414
1415 * Makefile.in (ALLDEPFILES): Add solib-svr4.c and solib-sunos.c
1416 to this list.
1417 (solib-sunos.o): Add dependencies.
1418 (solib-svr4.o): Revise dependencies.
1419 * solib-svr4.c: Remove SunOS shared library support.
1420 * solib-sunos.c: New file, created from solib-svr4.c, which still
1421 contains SunOS shared library support, but no SVR4 support.
1422
1423 * config/i386/nbsd.mh (NATDEPFILES): Remove solib-svr4.o and
1424 solib-legacy.o from this list. Add solib-sunos.o.
1425 * config/i386/sun386.mt (TDEPFILES): Likewise.
1426 * config/m68k/nbsd.mh (NATDEPFILES): Likewise.
1427 * config/m68k/sun2os4.mt (TDEPFILES): Likewise.
1428 * config/m68k/sun3os4.mt (TDEPFILES): Likewise.
1429 * config/ns32k/nbsd.mh (NATDEPFILES): Likewise.
1430 * config/sparc/nbsd.mh (NATDEPFILES): Likewise.
1431 * config/sparc/sun4os4.mt (TDEPFILES): Likewise.
1432
1433 2001-10-01 Elena Zannoni <ezannoni@redhat.com>
1434
1435 * Makefile.in (mipsread.o): Remove old dependency on partial-stab.h.
1436
1437 2001-10-01 Elena Zannoni <ezannoni@redhat.com>
1438
1439 * xcoffread.c (N_UNDF, N_ABS, N_TEXT, N_DATA, N_BSS, N_COMM, N_FN,
1440 N_EXT, N_INDR, N_SETA, N_SETT, N_SETD, N_SETB, N_SETV,
1441 CUR_SYMBOL_TYPE, CUR_SYMBOL_VALUE, START_PSYMTAB, END_PSYMTAB,
1442 SET_NAMESTRING): Delete definitions.
1443 Don't include language.h any more.
1444 Don't include partial-stab.h any more.
1445 (scan_xcoff_symtab): Don't jump through hoops to reuse code in
1446 partial-stab.h, include the code directly, instead.
1447
1448 * Makefile.in (xcoffread.o): Remove dependency on partial-stab.h.
1449
1450 2001-10-01 Andrew Cagney <ac131313@redhat.com>
1451
1452 * infcmd.c (do_registers_info): Delete code dumping large
1453 registers. Handled by val_print.
1454
1455 2001-09-30 Andrew Cagney <ac131313@redhat.com>
1456
1457 * gdbarch.sh (gdbarch_alloc): Name the new architecture
1458 ``current_gdbarch'' so that it, and not the identically named
1459 global is refered to by macros.
1460 * gdbarch.c: Regenerate.
1461
1462 2001-09-29 Andrew Cagney <ac131313@redhat.com>
1463
1464 * cli/cli-decode.c (add_set_boolean_cmd): Define.
1465 * cli/cli-decode.h (add_set_boolean_cmd): Declare.
1466 * command.h (add_set_boolean_cmd): Ditto.
1467 * remote.c (_initialize_remote): Use add_set_boolean_cmd for "set
1468 remotebreak"
1469
1470 2001-09-29 Andrew Cagney <ac131313@redhat.com>
1471
1472 * gdbarch.sh (gdbarch_dump): Sort output.
1473 * gdbarch.c: Regenerate.
1474
1475 2001-09-29 Andrew Cagney <ac131313@redhat.com>
1476
1477 * rs6000-tdep.c (rs6000_gdbarch_init): Don't use the previous
1478 architecture to infer the wordsize. Previous architecture may not
1479 be a PowerPC.
1480
1481 2001-09-27 J. Brobecker <brobecker@gnat.com>
1482
1483 * infttrace.c (kill_inferior): Issue a TT_PROC_EXIT request rather
1484 than a TT_PROC_STOP request to kill the inferior and its child
1485 processes. Otherwise, the inferior is not killed on HPUX 11.0.
1486 Removed the code that detaches the child processes since we just
1487 killed them.
1488
1489 2001-09-26 Andrew Cagney <ac131313@redhat.com>
1490
1491 * serial.c (serial_set_cmdlist, serial_show_cmdlist): New
1492 variables.
1493 (serial_set_cmd, serial_show_cmd): New functions.
1494 (_initialize_serial): Add "set/show serial" command.
1495
1496 2001-09-26 Andrew Cagney <ac131313@redhat.com>
1497
1498 * CONTRIBUTE: Update.
1499
1500 2001-09-26 Kevin Buettner <kevinb@redhat.com>
1501
1502 * solib-svr4.h (set_solib_svr4_fetch_link_map_offsets): Add
1503 argument ``gdbarch''.
1504 * solib-svr4.c (SVR4_FETCH_LINK_MAP_OFFSETS): Change default value.
1505 (default_svr4_fetch_link_map_offsets): Rename to
1506 legacy_fetch_link_map_offsets().
1507 (svr4_fetch_link_map_offsets): New function.
1508 (fetch_link_map_offsets, fetch_link_map_offsets_init): Deleted.
1509 (fetch_link_map_offsets_gdbarch_data): New static global.
1510 (set_solib_svr4_fetch_link_map_offsets): Add argument ``gdbarch''.
1511 Revise to invoke set_gdbarch_data().
1512 (init_fetch_link_map_offsets): Change return type and add an
1513 argument so that it may be used as a gdbarch_data initializer.
1514 (_initialize_svr4_solib): Eliminate use of gdbarch swap mechanism.
1515 Use gdbarch data mechanism instead.
1516
1517 2001-09-25 Jiri Smid <smid@suse.cz>
1518
1519 * x86-64-linux-tdep.c (LINUX_SIGINFO_SIZE): Add.
1520 (x86_64_linux_sigcontext_addr): Replace `sizeof (struct siginfo)'
1521 by LINUX_SIGINFO_SIZE.
1522
1523 2001-09-24 Andrew Cagney <ac131313@redhat.com>
1524
1525 * maint.c (maintenance_set_cmdlist, maintenance_show_cmdlist): New
1526 variables.
1527 (maintenance_set_profile_cmd): New function.
1528 (maintenance_show_cmd, maintenance_set_cmd): New functions.
1529 (_initialize_maint_cmds): Add "maintenance set" and "maintenance
1530 show" and, commented out, "maintenance set/show profile" commands.
1531
1532 2001-09-24 Andrew Cagney <ac131313@redhat.com>
1533
1534 * findvar.c (read_var_value): For LOC_INDIRECT and LOC_REF_ARG
1535 convert the pointer into a CORE_ADDRs.
1536
1537 2001-09-24 Andrew Cagney <ac131313@redhat.com>
1538
1539 * doublest.h (store_floating, extract_floating): Add comment
1540 indicating these functions are deprecated.
1541 (extract_typed_floating, store_typed_floating): Declare.
1542 * doublest.c: Include "gdbtypes.h".
1543 (extract_typed_floating, store_typed_floating): Define.
1544
1545 * stabsread.c (define_symbol): Use store_typed_floating.
1546 * valarith.c (value_binop): Ditto.
1547 * values.c (unpack_long): Use extract_typed_floating.
1548 (unpack_double): Ditto.
1549
1550 2001-09-24 Orjan Friberg <orjanf@axis.com>
1551
1552 * cris-tdep.c (reg_mode_add_sub_cmp_and_or_move_op): Fetch operand1
1553 from correct register.
1554
1555 2001-09-22 Mark Kettenis <kettenis@gnu.org>
1556
1557 * x86-64-linux-tdep.c (STRUCT_OFFSET): Removed.
1558
1559 2001-09-21 Jiri Smid <smid@suse.cz>
1560
1561 * config/i386/x86-64linux.mh: New file.
1562 * config/i386/x86-64linux.mt: New file.
1563 * config/i386/nm-x86_64.h: New file.
1564 * x86-64-linux-tdep.c: New file.
1565 * x86-64-linux-nat.c: New file.
1566 * x86-64-tdep.c: New file.
1567 * x86-64-tdep.h: New file.
1568 * i386-tdep.h: New file.
1569 * i387-nat.c: Include i386-tdep.h when multiarch.
1570 * i387-tdep.c: Ditto.
1571 * config/djgpp/fnchange.lst: Add entries for x86_64-linux-tdep.c
1572 and x86_64-linux-nat.c
1573 * Makefile.in: Add x86_64-linux-tdep.o, x86_64-tdep.o,
1574 x86_64-linux-tdep.o, x86_64-nat.o, update dependencies.
1575
1576 2001-09-21 Jiri Smid <smid@suse.cz>
1577
1578 * MAINTAINERS: Add myself to the write-after-approval list.
1579 * i386-nat.c (TARGET_HAS_DR_LEN_8, DR_LEN_8): Declare.
1580 (i386_length_and_rw_bits, i386_handle_nonaligned_watchpoint,
1581 i386_insert_watchpoint, i386_remove_watchpoint): Add support for
1582 8-byte wide watchpoints.
1583 (i386_show_dr): Debug message format string change.
1584
1585 2001-09-21 Michael Snyder <msnyder@redhat.com>
1586
1587 * c-exp.y (typebase): Accept (signed long long) as a type expr.
1588
1589 2001-09-20 Michael Snyder <msnyder@redhat.com>
1590 Changes by Daniel Berlin <dan@cgsoftware.com>, to support
1591 better parsing of const and volatile type expressions.
1592 * c-exp.y (const_and_volatile, const_or_volatile_noopt,
1593 const_or_volatile): New non-terminals.
1594 (ptype): Use new rule for const_or_volatile.
1595 (typebase): Use new rule for const_or_volatile_noopt.
1596 * parser-defs.h (enum type_pieces): New values tp_const, tp_volatile.
1597 * parse.c (follow_types): Handle tp_const and tp_volatile on the
1598 type stack: call make_cv_type to create new const/volatile type.
1599
1600 2001-09-20 Kevin Buettner <kevinb@redhat.com>
1601
1602 * solib-svr4.c (fetch_link_map_offsets): Add comment.
1603 (fetch_link_map_offsets_init): New static global.
1604 (set_solib_svr4_fetch_link_map_offsets, init_fetch_link_map_offsets):
1605 Revise implementation to use ``fetch_link_map_offsets_init''
1606 instead of ``fetch_link_map_offsets''.
1607
1608 2001-09-20 Alan Modra <amodra@bigpond.net.au>
1609
1610 * coffread.c: Replace all occurrences of bfd_read with bfd_bread.
1611 * dbxread.c: Likewise.
1612 * dwarf2read.c: Likewise.
1613 * dwarfread.c: Likewise.
1614 * somread.c: Likewise.
1615 * ultra3-nat.c: Likewise.
1616 * xcoffread.c: Likewise.
1617
1618 2001-09-19 Andrew Cagney <ac131313@redhat.com>
1619
1620 * cris-tdep.c (cris_get_signed_offset): Change return type to an
1621 explicitly signed char.
1622
1623 * config/mcore/tm-mcore.h (mcore_virtual_frame_pointer): Update
1624 function signature to match recent tracepoint.c:encode_actions
1625 changes.
1626 * mcore-tdep.c (mcore_virtual_frame_pointer): Ditto.
1627
1628 2001-09-18 Andrew Cagney <ac131313@redhat.com>
1629
1630 * thread.c (do_captured_thread_select): Add uiout parameter.
1631 (do_captured_list_thread_ids): Ditto.
1632 * breakpoint.c (do_captured_breakpoint_query): Ditto.
1633
1634 * breakpoint.c (gdb_breakpoint_query): Update. Use
1635 catch_exceptions.
1636 * thread.c (gdb_list_thread_ids): Ditto.
1637 (gdb_thread_select): Ditto.
1638 (thread_command): Pass uiout to gdb_thread_select.
1639
1640 * gdb.h (gdb_breakpoint_query): Add parameter ui_out.
1641 (gdb_thread_select, gdb_list_thread_ids): Ditto.
1642
1643 2001-09-13 Kevin Buettner <kevinb@redhat.com>
1644
1645 From Ilya Golubev <gin@mo.msk.ru>:
1646 * solib.c (clear_solib): Call `remove_target_sections' to fix
1647 stale pointers in `struct target_ops'.
1648 * irix5-nat.c (clear_solib): Likewise.
1649 * osfsolib.c (clear_solib): Likewise.
1650
1651 2001-09-13 Jim Blandy <jimb@redhat.com>
1652
1653 * monitor.c (monitor_load): Don't delete symtab users, or reset
1654 inferior_ptid.
1655
1656 * monitor.c (monitor_load): Fix indentation.
1657
1658 2001-09-11 Jim Blandy <jimb@redhat.com>
1659
1660 * printcmd.c (print_scalar_formatted): Compare the length of the
1661 value against the lengths of the target's floating-point types,
1662 not the host's. Add support for `long double'.
1663
1664 * printcmd.c (print_scalar_formatted): Fix indentation.
1665
1666 2001-09-10 Jim Blandy <jimb@redhat.com>
1667
1668 * rom68k-rom.c (init_rom68k_cmds): Set the flag indicating that
1669 programs running on the board can produce output.
1670
1671 2001-09-10 Jason Molenda (jmolenda@apple.com)
1672
1673 * NEWS: "ANS/ISO C" -> "ISO C".
1674 * MAINTAINERS (write-after-approval): Update my entry.
1675
1676 2001-09-08 Mark Kettenis <kettenis@gnu.org>
1677
1678 * config/xm-aix4.h (MEM_FNS_DECLARED): Removed.
1679
1680 * config/arm/xm-linux.h, config/ia64/xm-linux.h,
1681 config/m68k/xm-linux.h, config/mips/xm-linux.h,
1682 config/powerpc/xm-linux.h, config/sparc/xm-linux.h: Remove
1683 redundant inclusion of <unistd.h>.
1684
1685 * gdbtypes.h (struct block): Add forward declaration.
1686
1687 2001-09-07 Andrew Cagney <ac131313@redhat.com>
1688
1689 * defs.h (enum return_reason): Renumber so that all values are
1690 negative.
1691 (RETURN_MASK): Negate reason.
1692 (catch_exception_ftype): Declare.
1693 (catch_exceptions): Declare.
1694 * top.c (catcher): New function, based on catch_errors. Add in
1695 parameter func_uiout and out parameters func_val, func_caught and
1696 func_cleanup. Change type of func to catch_exceptions_ftype.
1697 Save/restore uiout.
1698 (struct catch_errors_args): Define.
1699 (do_catch_errors): New function.
1700 (catch_errors): Rewrite, use do_catch_errors and catcher.
1701 (catch_exceptions): New function, use catcher.
1702
1703 2001-09-07 Jim Blandy <jimb@redhat.com>
1704
1705 Correctly parse register values provided by the monitor.
1706 * rom68k-rom.c: #include "value.h".
1707 (is_hex_digit, hex_digit_value, is_whitespace,
1708 rom68k_supply_one_register): New static functions.
1709 (rom68k_supply_register): Call rom68k_supply_one_register, instead
1710 of monitor_supply_register; the latter was incorrectly parsing
1711 the values.
1712 * Makefile.in (rom68k-rom.o): Note that this now #includes value.h.
1713
1714 2001-09-07 Mark Kettenis <kettenis@gnu.org>
1715
1716 * config/rs6000/xm-rs6000.h (setpgrp): Remove macro. GDB defaults
1717 to using setpgid if available now.
1718
1719 2001-09-06 Keith Seitz <keiths@redhat.com>
1720
1721 From Ian Roxborough <irox@redhat.com>
1722 * configure.in: Use ITCL_LIB_FULL_PATH and
1723 ITK_LIB_FULL_PATH to set Itcl and Itk dependancies
1724 for gdb.
1725 * configure: Regenerated.
1726
1727 2001-09-06 Kevin Buettner <kevinb@redhat.com>
1728
1729 * dbxread.c (process_one_symbol): Don't use error result from
1730 find_stab_function_addr().
1731 * partial-stab.h (case 'F'): Likewise.
1732
1733 * partial-stab.h (case 'f'): Make SOFUN_ADDRESS_MAYBE_MISSING
1734 code match that used for case 'F'. This fixes the divergence
1735 that was introduced by my 1999-09-14 changes to partial-stab.h.
1736
1737 2001-09-05 Elena Zannoni <ezannoni@redhat.com>
1738
1739 * gdbarch.sh: Move include of dis-asm.h so it is generated earlier
1740 in gdbarch.h.
1741 (TARGET_PRINT_INSN): Multiarch.
1742 * gdbarch.h: Regenerate.
1743 * gdbarch.c: Regenerate.
1744
1745 * arch-utils.c (legacy_print_insn): New function.
1746 * arch-utils.h (legacy_print_insn): Export.
1747
1748 * cris-tdep.c (cris_delayed_get_disassembler): Use
1749 TARGET_PRINT_INSN, instead of tm_print_insn.
1750 * d10v-tdep.c (print_insn): Ditto.
1751 * d30v-tdep.c (print_insn): Ditto.
1752 * m32r-tdep.c (dump_insn): Ditto.
1753 * v850-tdep.c (v850_scan_prologue): Ditto.
1754 * mcore-tdep.c (mcore_dump_insn): Ditto.
1755 * sh-tdep.c (sh_gdbarch_init): Set print_insn gdbarch field.
1756
1757 2001-09-05 Jim Blandy <jimb@redhat.com>
1758
1759 * gdbtypes.h (struct type): Doc fix.
1760
1761 2001-09-04 Elena Zannoni <ezannoni@redhat.com>
1762
1763 From Daniel Jacobowitz <drow@mvista.com>
1764 * dbxread.c (free_header_files): Make global.
1765 (init_header_files): Likewise.
1766 * stabsread.h (free_header_files): Add prototype.
1767 (init_header_files): Likewise.
1768 * mdebugread.c (mdebug_build_psymtabs): Initialize
1769 properly before using the stabs debug reader.
1770
1771 2001-09-04 Elena Zannoni <ezannoni@redhat.com>
1772
1773 From Daniel Jacobowitz <drow@mvista.com>
1774 * dbxread.c (dbx_symfile_read): Only reinitialize
1775 the psymbol list if mainline or if both static
1776 and global lists are empty.
1777 * dwarf2read.c (dwarf2_build_psymtabs): Likewise.
1778 * dwarfread.c (dwarf_build_psymtabs): Likewise.
1779 * xcoffread.c (xcoff_initial_scan): Likewise.
1780 * os9kread.c (os9k_symfile_read): Likewise.
1781
1782 2001-09-04 Elena Zannoni <ezannoni@redhat.com>
1783
1784 From Daniel Jacobowitz <drow@mvista.com>
1785 * mdebugread.c (psymtab_to_symtab_1): Handle N_SO stabs without
1786 a name specially.
1787
1788 2001-09-01 Mark Kettenis <kettenis@gnu.org>
1789
1790 Make GDB use libiberty regex implementation.
1791 * gdb_regex.h: Normalize protection against multiple inclusion.
1792 Include "xregex.h" instead of "gnu-regex.h".
1793 * cli/cli-cmds.c: Include "gdb_regex.h" instead of "gnu-regex.h".
1794 * cli/cli-decode.c: Likewise.
1795 * Makefile.in (REGEX): Remove.
1796 (GDB_CFLAGS): Remove reference to gnu-regex.h in comment.
1797 (ADD_FILES, ADD_DEPS): Remove $(REGEX).
1798 (POSSLIBS): Remove.
1799 (TAGFILES_NO_SRCDIR): Remove $(POSSLIBS).
1800 (irix5-nat.o, solib.o, solib-svr4.o, source.o, symtab.o,
1801 xcoffsolib.o, cli-decode.o, cli-cmd.o): Replace gnu-regex.h with
1802 gdb_regex.h in list of dependencies.
1803 (gnu-regex.o): Remove rule.
1804 * gnu-regex.c, gnu-regex.h: Remove files.
1805
1806 2001-08-31 Jason Molenda (jmolenda@apple.com)
1807
1808 * c-valprint.c (c_val_print): Second call to check_typedef ()
1809 is no longer necessary.
1810
1811 2001-08-31 Kevin Buettner <kevinb@redhat.com>
1812
1813 * ia64-tdep.c (examine_prologue): Don't let a branch unit nop
1814 terminate the prologue scan.
1815
1816 2001-08-30 Jim Blandy <jimb@redhat.com>
1817
1818 * symfile.c (sections_overlap): New function.
1819 (map_overlay_command): Call sections_overlap, instead of using
1820 incorrect logic to recognize overlapping sections.
1821
1822 * symfile.c (load_command): Invalidate the overlay cache.
1823
1824 2001-08-30 Mark Kettenis <kettenis@gnu.org>
1825
1826 * config/i386/xm-i386.h (HOST_BYTE_ORDER): Removed.
1827
1828 2001-08-29 Kevin Buettner <kevinb@redhat.com>
1829
1830 From 2001-08-07 Daniel Jacobowitz <drow@mvista.com>:
1831 * solib-svr4.c (enable_break): Check the inferior link map
1832 before assuming the inferior PC is at the start of the dynamic
1833 loader.
1834
1835 2001-08-28 Andrew Cagney <cagney@toribio.toronto.redhat.com>
1836
1837 * frame.h (struct frame_info): Fix documentation on fields
1838 saved_regs, next and prev.
1839
1840 2001-08-23 Mark Kettenis <kettenis@gnu.org>
1841
1842 * event-top.c (async_stop_sig) [HAVE_SIGPROCMASK]: Some
1843 gratuitious whitespace changes.
1844 [!HAVE_SIGPROCMASK]: Call sigsetmask if HAVE_SIGSETMASK is defined.
1845 * top.c: Remove redundant logic to define HAVE_SIGSETMASK.
1846 (sigsetmask) Don't define macro.
1847 (stop_sig) [HAVE_SIGPROCMASK]: Add bit of code snatched from
1848 async_stop_sig from event-top.c.
1849 [!HAVE_SIGPROCMASK]: Call sigsetmask if HAVE_SIGSETMASK is
1850 defined.
1851 * configure.in (AC_CHECK_FUNCS): Put functions in alphabetical
1852 order. Add sigsetmask.
1853 (AC_FUNC_VFORK, AC_FUNC_ALLOCA): Reorder such that they're in
1854 alphabetical order.
1855 * config/xm-aix4.h, config/alpha/xm-alphalinux.h,
1856 config/i386/xm-cygwin.h, config/rs6000/xm-rs6000.h
1857 (HAVE_SIGSETMASK): Remove.
1858 * aclocal.m4, config.in, configure: Regenerated.
1859
1860 2001-08-26 Andrew Cagney <ac131313@redhat.com>
1861
1862 From 2001-06-29 Andrew Cagney <ac131313@redhat.com>:
1863 * config/powerpc/nbsd.mh (XM_FILE): Delete.
1864
1865 2001-08-21 Andrew Cagney <ac131313@redhat.com>
1866
1867 * doublest.h (HOST_FLOAT_FORMAT): Delete macro.
1868 (HOST_DOUBLE_FORMAT): Delete macro.
1869
1870 2001-08-24 Mark Kettenis <kettenis@gnu.org>
1871
1872 * config/xm-lynx.h, config/xm-nbsd.h, config/xm-sysv4.h,
1873 config/i386/xm-i386aix.h, config/m68k/xm-dpx2.h: Remove redundant
1874 inclusion of <limits.h>.
1875
1876 2001-08-24 Andrew Cagney <ac131313@redhat.com>
1877
1878 * regcache.c (read_register_bytes): When REGISTER_NAME indicates
1879 that a register should be ignored, supply a value for the register
1880 from the raw registers[] buffer.
1881
1882 2001-08-24 Andrew Cagney <ac131313@redhat.com>
1883
1884 * go32-nat.c (go32_create_inferior): Use xfree instead of free.
1885 * config/djgpp/fnchange.lst: Add entries for i386bsd-tdep.c and
1886 i386bsd-nat.c.
1887
1888 2001-08-21 Andrew Cagney <ac131313@redhat.com>
1889
1890 * gdbtypes.h (builtin_type_ieee_single_big)
1891 (builtin_type_ieee_single_little, builtin_type_ieee_double_big)
1892 (builtin_type_ieee_double_little)
1893 (builtin_type_ieee_double_littlebyte_bigword)
1894 (builtin_type_i387_ext, builtin_type_m68881_ext)
1895 (builtin_type_i960_ext, builtin_type_m88110_ext)
1896 (builtin_type_m88110_harris_ext, builtin_type_arm_ext_big)
1897 (builtin_type_arm_ext_littlebyte_bigword)
1898 (builtin_type_ia64_spill_big, builtin_type_ia64_spill_little)
1899 (builtin_type_ia64_quad_big)
1900 (builtin_type_ia64_quad_little): Declare.
1901 * gdbtypes.c (builtin_type_ieee_single_big)
1902 (builtin_type_ieee_single_little, builtin_type_ieee_double_big)
1903 (builtin_type_ieee_double_little)
1904 (builtin_type_ieee_double_littlebyte_bigword)
1905 (builtin_type_i387_ext, builtin_type_m68881_ext)
1906 (builtin_type_i960_ext, builtin_type_m88110_ext)
1907 (builtin_type_m88110_harris_ext, builtin_type_arm_ext_big)
1908 (builtin_type_arm_ext_littlebyte_bigword)
1909 (builtin_type_ia64_spill_big, builtin_type_ia64_spill_little)
1910 (builtin_type_ia64_quad_big)
1911 (builtin_type_ia64_quad_little): Define.
1912 (_initialize_gdbtypes): Initialize builtin floatformat types.
1913
1914 2001-08-23 Mark Kettenis <kettenis@gnu.org>
1915
1916 * tracepoint.c (read_actions): Add FIXME for code depending on
1917 STOP_SIGNAL.
1918
1919 2001-08-23 Martin M. Hunt <hunt@redhat.com>
1920
1921 * remote-mips.c (pmon_load_fast): Add ui_load_progress_hook
1922 to download loop.
1923 (mips_load_srec): Ditto.
1924
1925 2001-08-22 Andrew Cagney <ac131313@redhat.com>
1926
1927 * gdbtypes.c (build_gdbtypes): Initialize TYPE_FLOATFORMAT field
1928 of builtin_type_float, builtin_type_double and
1929 builtin_type_long_double.
1930 (recursive_dump_type): Print the floatformat name.
1931 * gdbtypes.h (struct type): Add type_specific field floatformat.
1932 (TYPE_FLOATFORMAT): Define
1933
1934 2001-08-21 Keith Seitz <keiths@redhat.com>
1935
1936 * printcmd.c (print_insn): Use the given stream for
1937 output.
1938
1939 2001-07-24 Andrew Cagney <ac131313@redhat.com>
1940
1941 * arm-tdep.c (convert_from_extended, convert_to_extended): Delete
1942 assembler version of function.
1943 (convert_from_extended, convert_to_extended): Rewrite. Use
1944 floatformat_to_doublest, floatformat_from_doublest,
1945 floatformat_arm_ext_big, floatformat_arm_ext_littlebyte_bigword.
1946 (arm_push_arguments): Use extract_floating and store_floating to
1947 perform floating point conversions.
1948 (SWAP_TARGET_AND_HOST): Delete macro.
1949 * arm-linux-tdep.c (arm_linux_push_arguments): Use
1950 extract_floating and store_floating to perform floating point
1951 conversions.
1952
1953 2001-08-20 Andrew Cagney <ac131313@redhat.com>
1954
1955 * gdbtypes.h (struct type): Clarify meaning of field ``length''.
1956
1957 2001-08-17 Keith Seitz <keiths@redhat.com>
1958
1959 * varobj.c (varobj_update): Change first parameter to
1960 pointer to struct varobj*. This function can delete
1961 varobjs, so we need to give callers the new varobj
1962 when this happens.
1963 (value_of_root): Update "var", too, if "var_handle"
1964 changes.
1965 * varobj.h (varobj_update): Likewise.
1966
1967 2001-08-17 Keith Seitz <keiths@redhat.com>
1968
1969 * Makefile.in (varobj_h): Define.
1970 (mi-cmd-var.o): Depends on varobj_h.
1971 (gdbtk-varobj.o): Change varobj.h to $(varobj_h).
1972
1973 2001-08-16 Keith Seitz <keiths@redhat.com>
1974
1975 * configure.in (GDBTK_SRC_DIR): We must have autoconf
1976 give us the absolute path to the source directory.
1977 * configure: Regenerated.
1978 * Makefile.in (GDBTK_SRC_DIR): Add variable so that
1979 autoconf can substitue it in for us.
1980 (gdbtk.o): Pass in GDBTK_SRC_DIR instead of srcdir. We
1981 really do need an absolute pathname.
1982
1983 2001-08-15 Keith Seitz <keiths@redhat.com>
1984
1985 * Makefile.in (GDBTK_VERSION): Set a version number.
1986 (GDBTK_LIBRARY): New variable to point to location where
1987 gdbtk will install its tcl library. Changed all refereneces
1988 to $(datadir)/insight1.0 to $(GDBTK_LIBRARY).
1989 (SUBDIR_GDBTK_ALL): Remove "all-gdbtk". No longer needed.
1990 (SUBDIR_GDBTK_CLEAN): Remove "clean-gdbtk". No longer needed.
1991 (all-gdbtk): Remove.
1992 (install-gdbtk): Remove.
1993 (gdbtk.o): Pass srcdir to file when compiling.
1994
1995 2001-08-15 Ian Roxborough <irox@redhat.com>
1996
1997 * Makefile.in: Changed all references to the install directory
1998 "gdbtcl" to read "insight1.0".
1999
2000 2001-08-15 Corinna Vinschen <vinschen@redhat.com>
2001
2002 * arch-utils.c (generic_skip_trampoline_code): New function.
2003 * arch-utils.h (generic_skip_trampoline_code): Declare external.
2004 * gdbarch.c: Regeberated from gdbarch.sh.
2005 * gdbarch.h: Ditto.
2006 * gdbarch.sh (SKIP_TRAMPOLINE_CODE): Multi-arch.
2007 * infrun.c: Remove default setting of SKIP_TRAMPOLINE_CODE macro.
2008
2009 2001-08-14 Daniel Jacobowitz <drow@mvista.com>
2010 H.J. Lu (hjl@gnu.org)
2011
2012 * partial-stab.h: valu should be a CORE_ADDR.
2013
2014 2001-08-14 H.J. Lu (hjl@gnu.org)
2015
2016 * dbxread.c (SWAP_SYMBOL): Removed.
2017 (INTERNALIZE_SYMBOL): Check sign extended vma.
2018
2019 2001-08-13 Christopher Faylor <cgf@cygnus.com>
2020
2021 * top.c (SIGSETJMP): Protect env argument with parentheses.
2022 (SIGLONGJMP): Protect env argument with parentheses.
2023
2024 2001-08-11 Andrew Cagney <ac131313@redhat.com>
2025
2026 * config/mn10300/mn10300.mt (TM_FILE): Delete.
2027 * configure.tgt: Add mn10300 to list of mulit-arch targets.
2028 * config/mn10300/tm-mn10300.h: Delete file. Move contents ...
2029 * mn10300-tdep.c: To here.
2030
2031 2001-08-11 Andrew Cagney <ac131313@redhat.com>
2032
2033 * config/i386/tm-symmetry.h (REGISTER_CONVERT_TO_VIRTUAL): Make
2034 val a DOUBLEST. Use floatformat_to_doublest.
2035 (REGISTER_CONVERT_TO_RAW): Ditto. Use foatformat_from_doublest.
2036 * config/m88k/tm-m88k.h (REGISTER_CONVERT_TO_VIRTUAL): Ditto.
2037 (REGISTER_CONVERT_TO_RAW): Ditto.
2038
2039 2001-08-11 Andrew Cagney <ac131313@redhat.com>
2040
2041 * config/mn10300/tm-mn10300.h (PC_REGNUM, SP_REGNUM): Delete.
2042 * mn10300-tdep.c (mn10300_gdbarch_init): Initialize pc_regnum and
2043 sp_regnum.
2044
2045 2001-08-11 Andrew Cagney <ac131313@redhat.com>
2046
2047 * doublest.c (convert_doublest_to_floatformat): Rename
2048 floatformat_from_doublest. Make static.
2049 (convert_floatformat_to_doublest): Rename floatformat_to_doublest.
2050 Make static.
2051 (floatformat_to_doublest): New function.
2052 (floatformat_from_doublest): New function.
2053 (host_float_format, host_double_format, host_long_double_format):
2054 New static variables.
2055 (store_floating, extract_floating): Always use
2056 floatformat_to_doublest and floatformat_from_doublest.
2057 * doublest.h (HOST_LONG_DOUBLE_FORMAT): Delete macro.
2058
2059 2001-08-11 Andrew Cagney <ac131313@redhat.com>
2060
2061 * config/mn10300/tm-mn10300.h (INIT_FRAME_PC): Delete.
2062 * mn10300-tdep.c (mn10300_gdbarch_init): Initialize init_frame_pc.
2063
2064 2001-08-07 Andrew Cagney <ac131313@redhat.com>
2065
2066 * target.h (TARGET_VIRTUAL_FRAME_POINTER): Delete, multi-arched.
2067 * gdbarch.sh (TARGET_VIRTUAL_FRAME_POINTER): Add.
2068 * gdbarch.h, gdbarch.c: Regenerate.
2069
2070 * arch-utils.h (legacy_virtual_frame_pointer): Declare.
2071 * arch-utils.c: Include "gdb_assert.h".
2072 (legacy_virtual_frame_pointer): Define.
2073 * Makefile.in (arch-utils.o): Depends on gdb_assert.h.
2074
2075 * tracepoint.c (encode_actions): Make frame_reg an int. Make
2076 frame_offset a LONGEST.
2077 * ax-gdb.c (gen_frame_args_address): Ditto.
2078 (gen_frame_locals_address): Ditto.
2079 * mn10300-tdep.c (mn10300_gdbarch_init): Initialize
2080 virtual_frame_pointer.
2081 (mn10300_virtual_frame_pointer): Make static. Update parameter
2082 list to match function signature.
2083 * config/mn10300/tm-mn10300.h (TARGET_VIRTUAL_FRAME_POINTER): Delete.
2084
2085 2001-08-10 Keith Seitz <keiths@redhat.com>
2086
2087 * gdb-events.sh: Add architecture_changed event.
2088 * gdbarch.sh: Include gdb-event.h.
2089 (gdbarch_update_p): Notify UIs when architecture changes.
2090 * gdb-events.h: Regenerated.
2091 * gdb-events.c: Regenerated.
2092 * gdbarch.c: Regenerated.
2093
2094 2001-08-10 Michael Snyder <msnyder@redhat.com>
2095
2096 * regcache.c (legacy_write_register_gen): Don't 'optimize out'
2097 a write_register to a pseudo-reg. Target_store_pseudo_register
2098 needs to get called, because these regs may be computed and may
2099 have side-effects.
2100
2101 2001-08-10 Keith Seitz <keiths@redhat.com>
2102
2103 * gdb-events.sh: Deal with event notifications with no
2104 arguments.
2105
2106 2001-08-10 Orjan Friberg <orjanf@axis.com>
2107
2108 * remote.c (read_frame): Correct off-by-one error in condition.
2109
2110 2001-08-08 Don Howard <dhoward@redhat.com>
2111
2112 * stabsread.c (read_type): Add support for const and volatile
2113 modifiers.
2114
2115 2001-08-02 Daniel Jacobowitz <drow@mvista.com>
2116
2117 * core-regset.c (fetch_core_registers): Remove HAVE_GREGSET_T
2118 and HAVE_FPREGSET_T checks. Use gdb_gregset_t and gdb_fpregset_t.
2119
2120 2001-08-02 Keith Seitz <keiths@redhat.com>
2121
2122 * defs.h (SLASH_STRING): If not defined, set
2123 to "/", regardless of _WIN32, __CYGWIN__, or
2124 whatnot.
2125
2126 2001-08-02 Mark Kettenis <kettenis@gnu.org>
2127
2128 * cli/cli-decode.h: Include "gdb_regex.h" instead of
2129 "gnu-regex.h".
2130
2131 * NEWS: Update.
2132
2133 2001-08-02 Eli Zaretskii <eliz@is.elta.co.il>
2134
2135 * config/i386/xm-go32.h: Include xm-i386.h.
2136 (HOST_BYTE_ORDER, HOST_LONG_DOUBLE_FORMAT): Remove definitions.
2137
2138 2001-08-02 Eli Zaretskii <eliz@is.elta.co.il>
2139
2140 The following changes avoid polluting global namespace with the
2141 `enable' and `disable' identifiers, because some platforms define
2142 in their system headers symbols with global scope that go by those
2143 names.
2144
2145 * breakpoint.h (enum enable_state): Rename from `enum enable'.
2146 Also rename all the enum members to have the "bp_" prefix.
2147 (struct breakpoint): Rename the `enable' member to `enable_state'.
2148 (enum bpdisp): Rename all members to have the "disp_" prefix.
2149
2150 * breakpoint.c: All users of `enum enable' and `enum bpdisp'
2151 changed.
2152 (args_for_catchpoint_enable): Rename the `enable' member to
2153 `enable_p'. All users changed.
2154
2155 * tracepoint.h (enum enable): Remove.
2156 (struct tracepoint): The member `enabled' is now `int enabled_p'.
2157
2158 * tracepoint.c: All users of the `enabled' member changed.
2159
2160 * printcmd.c (struct display): The `status' member is now an int.
2161
2162 * memattr.h (struct mem_region): Rename the `status' member to
2163 `enabled_p'.
2164 (enum enable): Remove.
2165
2166 * memattr.c: Change all users of the `status' member of struct
2167 mem_region to use `enabled_p' instead.
2168
2169 * infcmd.c (run_stack_dummy): Use disp_del instead of del.
2170
2171 * go32-nat.c: Remove the kludgey work-around for conflicts between
2172 <dos.h> and "breakpoint.h".
2173
2174 2001-08-02 Corinna Vinschen <vinschen@redhat.com>
2175
2176 * MAINTAINERS: Add myself to the write-after-approval list.
2177 * ser-tcp.c (tcp_open): Use `localhost' as default host if no
2178 hostname is given.
2179
2180 2001-08-01 Andrew Cagney <ac131313@redhat.com>
2181
2182 * doublest.h (store_floating, floatformat_to_doublest): Make IN
2183 paramter a const void pointer.
2184 (floatformat_from_doublest): Make IN const, Make OUT a void
2185 pointer.
2186 * doublest.c (floatformat_to_doublest): Update.
2187 (floatformat_from_doublest): Update.
2188 (extract_floating): Update.
2189
2190 2001-07-31 Andrew Cagney <ac131313@redhat.com>
2191
2192 * defs.h (HOST_FLOAT_FORMAT, HOST_DOUBLE_FORMAT)
2193 (HOST_FLOAT_FORMAT, HOST_DOUBLE_FORMAT)
2194 (HOST_LONG_DOUBLE_FORMAT, DOUBLEST)
2195 (floatformat_to_doublest, floatformat_from_doublest)
2196 (floatformat_is_negative, floatformat_is_nan)
2197 (floatformat_mantissa, store_floating)
2198 (extract_floating): Move declaration from here.
2199 * doublest.h: To here. New file.
2200 * utils.c (get_field, floatformat_to_doublest, put_field)
2201 (ldfrexp, floatformat_from_doublest, floatformat_is_negative)
2202 (floatformat_is_nan, floatformat_mantissa)
2203 (FLOATFORMAT_CHAR_BIT): Move from here.
2204 * doublest.c: To here. New file.
2205 * findvar.c (store_floating, extract_floating): Move from here.
2206 * doublest.c: To here.
2207 * Makefile.in (SFILES): Add doublest.c.
2208 (COMMON_OBS): Add doublest.o.
2209 (doublest.o): Specify dependencies.
2210 (doublest_h): Define.
2211
2212 * config/m88k/tm-m88k.h: Include "doublest.h".
2213 * config/i960/tm-i960.h: Ditto.
2214 * config/i386/tm-symmetry.h: Ditto.
2215 * rs6000-tdep.c, valarith.c: Ditto.
2216 * valprint.c, stabsread.c, sh-tdep.c: Ditto.
2217 * ia64-tdep.c, i387-tdep.c, i386-tdep.c: Ditto.
2218 * values.c, arm-tdep.c, arm-linux-tdep.c: Ditto.
2219 * alpha-tdep.c, ax.h, expression.h: Ditto.
2220 * sh-tdep.c, parse.c, top.c, value.h: Ditto.
2221
2222 * Makefile.in (arm-tdep.o): Add $(doublest_h).
2223 (i386-tdep.o, i387-tdep.o, ia64-tdep.o): Ditto.
2224 (rs6000-tdep.o, stabsread.o, valarith.o): Ditto.
2225 (values.o, valprint.o, arm-linux-tdep.o): Ditto.
2226 (alpha-tdep.o, ax_h, parse.o, top.o, value_h): Ditto.
2227 (parser_defs_h): Ditto.
2228 (expression_h): Add $(doublest_h) and $(symtab_h).
2229
2230 2001-08-01 Andrew Cagney <ac131313@redhat.com>
2231
2232 * Makefile.in: Sort header definitions.
2233 (parser_defs_h, dis_asm_h, annotate_h, gdbthread_h): Define.
2234 Replace parser-defs.h with $(parser_defs_h). Replace $(dis-asm_h)
2235 and $(dis-asm.h) with $(dis_asm_h). Replace annotate.h with
2236 $(annotate_h). Replace target.h with $(target_h). Replace
2237 gdbthread.h with $(gdb_thread_h). Replace symfile.h with $(symfile_h).
2238
2239 2001-07-31 Mark Kettenis <kettenis@gnu.org>
2240
2241 * config/i386/xm-i386.h: New file.
2242 * config/i386/xm-fbsd.h: Removed.
2243 * config/i386/xm-linux.h: Removed.
2244 * config/i386/fbsd.mh: Reorganize a bit.
2245 (XM_FILE): Set to xm-i386.h instead of xm-fbsd.h.
2246 * config/i386/linux.mh (XM_FILE): Set to xm-i386.h insread of
2247 xm-linux.h.
2248
2249 2001-07-30 Jim Blandy <jimb@redhat.com>
2250
2251 * dwarf2read.c (dwarf2_build_psymtabs_hard): Doc fix.
2252
2253 2001-07-27 Daniel Jacobowitz <drow@mvista.com>
2254
2255 * configure.in: Only invoke AC_FUNC_SETPGRP if not cross-compiling.
2256 Check for SETPGRP_VOID separately if cross-compiling and ISO C
2257 headers are available.
2258
2259 2001-07-30 Mark Kettenis <kettenis@gnu.org>
2260
2261 * config/i386/tm-i386sol2.h (STAB_REG_TO_REGNUM): Redefine to call
2262 i386_dwarf_reg_to_regnum.
2263
2264 * i386-tdep.c (i386_register_convert_to_virtual): Replace
2265 assertion with a warning if we're asked to convert towards a
2266 non-floating-point type. Zero out the the buffer where the data
2267 is supposed to be stored in that case.
2268
2269 2001-07-29 Eli Zaretskii <eliz@is.elta.co.il>
2270
2271 * config/djgpp/djconfig.sh: Unset CDPATH.
2272
2273 * go32-nat.c (get_cr3): Temporary disable support for page tables
2274 in UMBs, as it is incomplete.
2275
2276 Support for stepping through longjmp in DJGPP programs:
2277
2278 * config/i386/tm-go32.h (JB_ELEMENT_SIZE, JB_PC): New macros.
2279 (GET_LONGJMP_TARGET): Define to call get_longjmp_target.
2280 (get_longjmp_target): Add prototype.
2281
2282 2001-07-28 Andrew Cagney <ac131313@redhat.com>
2283
2284 Fix some PID/TPID fallout for HP/UX.
2285 From 2001-07-22 Rodney Brown <rbrown64@csc.com.au>:
2286 * infttrace.c (ptrace_wait): Match external declaration,
2287 and match target_post_wait declaration.
2288
2289 2001-07-28 Andrew Cagney <ac131313@redhat.com>
2290
2291 * MAINTAINERS: Add Orjan Friberg as cris target maintainer.
2292 (cris): Set --enable-gdb-build-warnings flag to -w.
2293
2294 2001-07-28 Andrew Cagney <ac131313@redhat.com>
2295
2296 From 2001-07-23 Andreas Schwab <schwab@suse.de>:
2297 * config/m68k/tm-m68k.h (TARGET_LONG_DOUBLE_FORMAT): Define.
2298 (TARGET_LONG_DOUBLE_BIT): Define.
2299 (REGISTER_VIRTUAL_SIZE): Return 12 for floating point registers.
2300 (MAX_REGISTER_VIRTUAL_SIZE): Increase to 12.
2301 (REGISTER_VIRTUAL_TYPE): Return builtin_type_long_double for
2302 floating point registers.
2303 (REGISTER_CONVERTIBLE, REGISTER_CONVERT_TO_VIRTUAL)
2304 (REGISTER_CONVERT_TO_RAW): Remove.
2305 * config/m68k/xm-linux.h (HOST_LONG_DOUBLE_FORMAT): Define.
2306
2307 2001-07-26 Andrew Cagney <ac131313@redhat.com>
2308
2309 * thread.c, breakpoint.c: Include "gdb.h".
2310 * Makefile.in (gdb_h): Define.
2311 (HFILES_NO_SRCDIR): Add gdb.h.
2312 (mi-cmd-break.o, mi-main.o, thread.o)
2313 (breakpoint.o): Add dependency on $(gdb_h).
2314
2315 * defs.h (enum gdb_rc, gdb_breakpoint_query)
2316 (gdb_breakpoint, gdb_thread_select)
2317 (gdb_list_thread_ids): Move declaration from here ...
2318 * gdb.h: To here. New file.
2319
2320 2001-07-28 Stephane Carrez <Stephane.Carrez@worldnet.fr>
2321
2322 * Makefile.in (SUBDIR_TUI_OBS): Add tui-out.o, tui-hooks.o.
2323 (SUBDIR_TUI_SRCS): Add tui-out.c tui-hooks.c
2324 (SFILES): Likewise.
2325 (tui-out.o): Define dependencies.
2326 (tui-hooks.o): Likewise.
2327
2328 2001-07-28 Andrew Cagney <ac131313@redhat.com>
2329
2330 * MAINTAINERS: Update e-mail address of active @cygnus.com
2331 maintainers to @redhat.com.
2332
2333 2001-07-28 Andrew Cagney <ac131313@redhat.com>
2334
2335 * README (Known bugs): Delete section.
2336 (Kernel debugging): Delete section.
2337 (Languages other than C): Delete section.
2338 (Host/target specific installation notes) New section.
2339
2340 2001-07-28 Mark Kettenis <kettenis@gnu.org>
2341
2342 * config/i386/tm-i386.h (STAB_REG_TO_REGNUM, SDB_REG_TO_REGNUM,
2343 DWARF_REG_TO_REGNUM, DWARF2_REG_TO_REGNUM): New defines.
2344 (i386_stab_reg_to_regnum, i386_dwarf_reg_to_regnum): New
2345 prototypes.
2346 * config/i386/tm-fbsd.h, config/i386/tm-i386gnu.h,
2347 config/i386/tm-linux.h (STAB_REG_TO_REGNUM): Redefine to call
2348 i386_dwarf_reg_to_regnum.
2349 * i386-tdep.c (i386_stab_reg_to_regnum, i386_dwarf_reg_to_regnum):
2350 New functions.
2351
2352 * i386-tdep.c: Include "gdb_assert.h"
2353 (i386_register_convert_to_virtual): Fix such that it can handle
2354 conversion to any floating-point type. Assert that we are dealing
2355 with a floating-point first.
2356 (i386_register_convert_to_raw): Assert that TYPE is a
2357 floating-point type with length 12.
2358
2359 2001-07-27 John R. Moore <jmoore@redhat.com>
2360
2361 * configure.in: Added dependency of gdb on tcl/tk libraries.
2362 * Makefile.in: Likewise.
2363 * configure: Regenerated with the above using autoconf.
2364
2365 2001-07-26 Elena Zannoni <ezannoni@redhat.com>
2366
2367 * sh-tdep.c (sh_gdbarch_init): Use SH_DEFAULT_NUM_REGS instead of
2368 NUM_REGS.
2369 (SH_DEFAULT_NUM_REGS): Define.
2370
2371 2001-07-26 Eli Zaretskii <eliz@is.elta.co.il>
2372
2373 * go32-nat.c (read_memory_region): Make sure the segment limit was
2374 indeed set, to work around a Windows 2000 bug.
2375
2376 2001-07-25 Daniel Jacobowitz <drow@mvista.com>
2377
2378 * infptrace.c (child_xfer_memory): Add cast to CORE_ADDR.
2379 * infttrace.c (child_xfer_memory): Likewise.
2380 * symm-nat.c (child_xfer_memory): Likewise.
2381 * gdbserver/low-hppabsd.c (read_inferior_memory): Likewise.
2382 (write_inferior_memory): Likewise.
2383 * gdbserver/low-linux.c (read_inferior_memory): Likewise.
2384 (write_inferior_memory): Likewise.
2385 * gdbserver/low-lynx.c (read_inferior_memory): Likewise.
2386 (write_inferior_memory): Likewise.
2387 * gdbserver/low-nbsd.c (read_inferior_memory): Likewise.
2388 (write_inferior_memory): Likewise.
2389 * gdbserver/low-sparc.c (read_inferior_memory): Likewise.
2390 (write_inferior_memory): Likewise.
2391 * gdbserver/low-sun3.c (read_inferior_memory): Likewise.
2392 (write_inferior_memory): Likewise.
2393
2394 2001-07-25 Eli Zaretskii <eliz@is.elta.co.il>
2395
2396 * README: Mention how to make gdb.pdf.
2397
2398 * NEWS: Update.
2399
2400 2001-07-24 Stephen P. Smith <ischis2@home.com>
2401
2402 * MAINTAINERS (Stephen P. Smith): Added to write after approval
2403 list.
2404
2405 2001-07-23 Andrew Cagney <ac131313@redhat.com>
2406
2407 * mips-tdep.c (mips_push_arguments): Add comment explaining
2408 problem with LE o32 GCC.
2409
2410 2001-07-23 Elena Zannoni <ezannoni@redhat.com>
2411
2412 * config/powerpc/aix.mh (MH_LDFLAGS): Don't set these, the Gnu linker
2413 doesn't understand them.
2414
2415 2001-07-23 Elena Zannoni <ezannoni@redhat.com>
2416
2417 * memattr.c (mem_info_command): Reformat output to look more like
2418 'info break' output.
2419 (_initialize_mem): Improve help.
2420
2421 2001-07-23 Mark Kettenis <kettenis@gnu.org>
2422
2423 * configure.in (AC_CHECK_FUNCS): Add setpggrp.
2424 (AC_FUNC_SETPGRP): Add.
2425 * aclocal.m4, configure, config.in: Regenerated.
2426 * inflow.c (gdb_setpgid): Get rid of NEED_POSIX_SETPGID and
2427 SETPGRP_ARGS. Always use setpgid if it is available, fall back on
2428 setpgrp if it isn't. Use SETPGRP_VOID (defined by autoconf) to
2429 distinguish between the two setpgrp flavours.
2430 * config/xm-sysv4.h, config/arm/xm-linux.h,
2431 config/i386/xm-i386aix.h, config/i386/xm-sco.h,
2432 config/i386/xm-linux.h, config/i386/xm-ptx.h,
2433 config/m68k/xm-linux.h, config/powerpc/xm-linux.h,
2434 config/sparc/xm-linux.h, config/sparc/xm-sun4sol2.h,
2435 config/ia64/xm-linux.h (NEED_POSIX_SETPGID): Remove.
2436 * config/rs6000/xm-rs6000.h (SETPGRP_ARGS): Remove.
2437
2438 2001-07-23 Eli Zaretskii <eliz@is.elta.co.il>
2439
2440 * go32-nat.c (read_memory_region): Set the granularity bit of the
2441 allocated segment according to its size, and adjust the limit to
2442 be page-aligned if the segment is page-granular.
2443
2444 * (get_cr3, get_pde, get_pte, display_ptable_entry, go32_pde)
2445 (display_page_table, go32_pte, go32_pte_for_address): New functions.
2446 (_initialize_go32_nat): Initialize and document them.
2447
2448 2001-07-22 Mark Kettenis <kettenis@gnu.org>
2449
2450 * i386gnu-nat.c: Include "i387-nat.h".
2451 (struct env387): Removed.
2452 (reg_offset): Fix comment.
2453 (fetch_fpregs): Use FCTRL_REGNUM and FOP_REGNUM instead of
2454 FIRST_FPU_CONTROL_REGNUM and LAST_FPU_CONTROL_REGNUM. Rewrite to
2455 use i387_supply_fsave.
2456 (gnu_fetch_registers): Remove spurious whitespace.
2457 (convert_to_env387): Remove.
2458 (store_fpregs): Add argument regno. Use i387_fill_fsave instead
2459 of convert_to_env387.
2460 (gnu_store_registers): Remove spurious whitespace. Pass REGNO to
2461 store_fpregs.
2462 * config/i386/i386gnu.mt (TDEPFILES): Add i387-tdep.o.
2463 * config/i386/i386gnu.mh (XDEPFILES): Remove i387-tdep.o.
2464 (NATDEPFILES): Add i387-nat.o.
2465
2466 2001-07-22 Stephane Carrez <Stephane.Carrez@worldnet.fr>
2467
2468 * Makefile.in (ALLDEPFILES): Add m68hc11-tdep.c.
2469 (m68hc11-tdep.o): Define dependencies.
2470
2471 2001-07-22 Stephane Carrez <Stephane.Carrez@worldnet.fr>
2472
2473 * m68hc11-tdep.c (m68hc11_gdbarch_init): Define int at 16-bits.
2474
2475 2001-07-21 Stephane Carrez <Stephane.Carrez@worldnet.fr>
2476
2477 * utils.c (init_page_info): Use tui_get_command_dimension.
2478 * printcmd.c (disassemble_command): Simplify tui specific code,
2479 use tui_is_window_visible, tui_show_assembly.
2480
2481 2001-07-21 Mark Kettenis <kettenis@gnu.org>
2482
2483 * i386bsd-nat.c: Do not include <sys/sysctl.h>.
2484 (_initialize_i386bsd_nat) [KERN_PS_STRINGS]: Move FreeBSD-specific
2485 code to ...
2486 * i386fbsd-nat.c: ... here. New file.
2487 * config/i386/fbsd.mh (NATDEPFILES): Add i386-fbsd.o.
2488 * config/i386/nm-fbsd.h (CHILD_RESUME): Define.
2489 * Makefile.in (ALLDEPFILES): Add i386fbsd-nat.c.
2490 (i386fbsd-nat.o): Add dependencies.
2491
2492 2001-07-19 Daniel Jacobowitz <drow@mvista.com>
2493
2494 * signals.c: New file.
2495 * Makefile.in: Add signals.o.
2496 * target.c (struct signals, target_signal_to_name)
2497 (target_signal_from_name, target_signal_from_host)
2498 (do_target_signal_to_host, target_signal_to_host_p)
2499 (target_signal_to_host, target_signal_from_command): Move to
2500 signals.c.
2501 (initialize_targets): Move check of struct signals to...
2502 * signals.c (_initialize_signals): Here.
2503
2504 2001-07-19 Andrew Cagney <ac131313@redhat.com>
2505
2506 * MAINTAINERS: Add Michael Chastain as C++ testsuite maintainer.
2507
2508 2001-07-19 Andrew Cagney <ac131313@redhat.com>
2509
2510 From Stephen Smith:
2511 * configure.tgt (i*86-*-pe*): New target.
2512
2513 2001-07-19 Andrew Cagney <ac131313@redhat.com>
2514
2515 From 2001-07-16 Rodney Brown <rbrown64@csc.com.au>:
2516 * infttrace.c (child_thread_alive): Fix gdb_tid typo.
2517 * somsolib.c (no_shared_libraries): Provide stub.
2518 * xcoffsolib.c (no_shared_libraries): Provide stub.
2519
2520 2001-07-18 Stephane Carrez <Stephane.Carrez@worldnet.fr>
2521
2522 * Makefile.in (COMMON_OBS): Remove tui-file.o.
2523 (SUBDIR_TUI_OBS): Add it here.
2524 (SUBDIR_TUI_SRCS): Move tui-file.c and tui-file.h here.
2525 (main.o): Remove dependency with tui-file.h.
2526
2527 2001-07-17 Elena Zannoni <ezannoni@redhat.com>
2528
2529 * Makefile.in (tui-file.o): Update dependencies.
2530
2531 2001-07-17 Elena Zannoni <ezannoni@redhat.com>
2532
2533 * top.c (catch_errors): Convert PTR to void * in parameters list.
2534 (quit_cover): Ditto.
2535
2536 2001-07-17 Stephane Carrez <Stephane.Carrez@worldnet.fr>
2537
2538 * source.c (find_source_lines): Remove tui test, must be replaced
2539 by appropriate warning hook.
2540 (print_source_lines): Remove tui hacks, must be replaced by cli.
2541 (forward_search_command): Remove tui hacks, can be replaced by
2542 appropriate calls to identify_source_line when tui scrolls.
2543 (reverse_search_command): Likewise.
2544
2545 2001-07-16 Nick Duffek <nsd@redhat.com>
2546
2547 * remote.c (init_remote_ops, init_remote_cisco_ops,
2548 init_remote_async_ops): Set to_pid_to_str and
2549 to_extra_thread_info correctly and in the same order as declared
2550 in target.h.
2551
2552 2001-07-16 Andrew Cagney <ac131313@redhat.com>
2553
2554 * remote.c: Revert below. Included more than intended.
2555
2556 2001-07-16 Nick Duffek <nsd@redhat.com>
2557
2558 * remote.c (init_remote_ops, init_remote_cisco_ops,
2559 init_remote_async_ops): Set to_pid_to_str and
2560 to_extra_thread_info correctly and in the same order as declared
2561 in target.h.
2562
2563 2001-07-16 Nick Duffek <nsd@redhat.com>
2564
2565 * findvar.c (read_var_value): Apply value_as_pointer() to
2566 addresses retrieved from the target for LOC_BASEREG and
2567 LOC_BASEREG_ARG variables.
2568
2569 2001-07-16 Orjan Friberg <orjanf@axis.com>
2570
2571 * NEWS: New target CRIS.
2572
2573 2001-07-16 Elena Zannoni <ezannoni@redhat.com>
2574
2575 * top.c (show_commands): Remove extern decl of history_get, it's
2576 already in readline/history.h.
2577
2578 2001-07-16 Elena Zannoni <ezannoni@redhat.com>
2579
2580 * top.c (is_complete_command, init_cmd_lists, init_cli_cmds,
2581 execute_user_command, do_setshow_command, get_prompt, init_proc,
2582 serial_log_command): Remove extern declarations. Include
2583 cli/cli-cmds.h, cli/cli-script.h, cli/cli-setshow.h, serial.h.
2584 * gdbcmd.h (execute_user_command): Remove declaration, it's already
2585 in cli/cli-script.h.
2586 * command.h (do_setshow_command): Remove declaration, it's already
2587 in cli/cli-setshow.h.
2588 * infrun.c: Include "cli/cli-script.h" for execute_user_command.
2589 * Makefile.in (infrun.o): Update dependencies.
2590 (top.o): Ditto.
2591 * cli/cli-setshow.h: Add comment for do_setshow_command.
2592
2593 2001-07-16 Eli Zaretskii <eliz@is.elta.co.il>
2594
2595 * cli/cli-cmds.c (shell_escape) [GLOBAL_CURDIR]: Condition the
2596 call to chdir on this symbol rather than on __DJGPP__.
2597 (CANT_FORK) [__MSDOS__]: Move from here...
2598 * defs.h (CANT_FORK) [__MSDOS__]: ...to here.
2599 (GLOBAL_CURDIR) [__MSDOS__]: Define.
2600
2601 2001-07-16 Orjan Friberg <orjanf@axis.com>
2602
2603 * configure.tgt: Recognise the CRIS architecture.
2604 * config/cris/cris.mt: New file for CRIS target.
2605 * cris-tdep.c: New file for CRIS target.
2606
2607 2001-07-15 Elena Zannoni <ezannoni@redhat.com>
2608
2609 * top.c (quit_cover, float_handler): Move definition up before use.
2610 (gdb_init): Move to end of file, to avoid calls to not yet defined
2611 functions.
2612 Delete prototypes.
2613
2614 2001-07-14 Andrew Cagney <ac131313@redhat.com>
2615
2616 * serial.h (SERIAL_ASYNC): Delete.
2617 (DEPRECATED_SERIAL_FD): Delete.
2618 (SERIAL_DEBUG): Delete.
2619 (SERIAL_DEBUG_P): Delete.
2620 (SERIAL_DRAIN_OUTPUT): Delete.
2621 (SERIAL_FLUSH_OUTPUT): Delete.
2622 (SERIAL_FLUSH_INPUT): Delete.
2623 (SERIAL_SEND_BREAK): Delete.
2624 (SERIAL_RAW): Delete.
2625 (SERIAL_GET_TTY_STATE): Delete.
2626 (SERIAL_SET_TTY_STATE): Delete.
2627 (SERIAL_PRINT_TTY_STATE): Delete.
2628 (SERIAL_NOFLUSH_SET_TTY_STATE): Delete.
2629 (SERIAL_SETBAUDRATE): Delete.
2630 (SERIAL_SETSTOPBITS): Delete.
2631 (SERIAL_CAN_ASYNC_P): Delete.
2632 (SERIAL_IS_ASYNC_P): Delete.
2633 (SERIAL_UN_FDOPEN): Delete.
2634 (SERIAL_READCHAR): Delete.
2635 (SERIAL_CLOSE): Delete.
2636 (SERIAL_FDOPEN): Delete.
2637 (SERIAL_OPEN): Delete.
2638 * ser-unix.c: Update.
2639 * sparclet-rom.c: Update.
2640 * remote-bug.c: Update.
2641 * dsrec.c: Update.
2642 * xmodem.c: Update.
2643 * nindy-share/ttyflush.c: Update.
2644 * nindy-share/Onindy.c: Update.
2645 * utils.c: Update.
2646 * serial.c: Update.
2647 * remote-nindy.c: Update.
2648 * inflow.c: Update.
2649 * sparcl-tdep.c: Update.
2650 * sh3-rom.c: Update.
2651 * remote.c: Update.
2652 * remote-utils.c: Update.
2653 * remote-st.c: Update.
2654 * remote-sds.c: Update.
2655 * remote-rdp.c: Update.
2656 * remote-os9k.c: Update.
2657 * remote-nrom.c: Update.
2658 * remote-mips.c: Update.
2659 * remote-es.c: Update.
2660 * remote-e7000.c: Update.
2661 * remote-array.c: Update.
2662 * ocd.c: Update.
2663 * nindy-share/nindy.c: Update.
2664 * monitor.c: Update.
2665
2666 2001-07-14 Andrew Cagney <ac131313@redhat.com>
2667
2668 * mn10200-tdep.c: Replace value_ptr with ``struct value *''.
2669 * mcore-tdep.c: Ditto.
2670 * sparc-tdep.c: Ditto.
2671 * sh-tdep.c: Ditto.
2672 * rs6000-tdep.c: Ditto.
2673 * ppc-linux-tdep.c: Ditto.
2674 * m68hc11-tdep.c: Ditto.
2675 * ia64-tdep.c: Ditto.
2676 * i386-tdep.c: Ditto.
2677 * arm-linux-tdep.c: Ditto.
2678 * hppa-tdep.c: Ditto.
2679 * h8500-tdep.c: Ditto.
2680 * fr30-tdep.c: Ditto.
2681 * arm-tdep.c: Ditto.
2682 * alpha-tdep.c: Ditto.
2683 * d30v-tdep.c: Ditto.
2684 * d10v-tdep.c: Ditto.
2685 * m32r-tdep.c: Ditto.
2686 * mips-tdep.c: Ditto.
2687 * v850-tdep.c: Ditto.
2688
2689 2001-07-15 Elena Zannoni <ezannoni@redhat.com>
2690
2691 * top.c (readline_line_completion_function, noop_completer): Move
2692 from here...
2693 * completer.c (readline_line_completion_function, noop_completer):
2694 ...to here.
2695 * gdbcmd.h (readline_line_completion_function, noop_completer):
2696 Move declarations from here...
2697 * completer.h (readline_line_completion_function, noop_completer):
2698 ...to here.
2699 * corefile.c: Include completer.h.
2700 * source.c: Ditto.
2701 * symfile.c: Ditto.
2702 * Makefile.in: Update dependencies.
2703
2704 2001-07-15 Eli Zaretskii <eliz@is.elta.co.il>
2705
2706 * go32-nat.c (go32_create_inferior): Support command lines longer
2707 than 126 characters.
2708
2709 2001-07-14 Stephane Carrez <Stephane.Carrez@worldnet.fr>
2710
2711 * NEWS: New target 68HC11/68HC12.
2712
2713 2001-07-14 Stephane Carrez <Stephane.Carrez@worldnet.fr>
2714
2715 * utils.c (query): Remove tui hacks; tui must use the query_hook.
2716 * top.c (command_loop): Remove tui insert_mode hacks; don't call
2717 tuiCleanUp because this must be made with atexit by tui.
2718 * symfile.c (symbol_file_command): Remove call to TUIDO
2719 * stack.c (show_and_print_stack_frame_stub): Remove tui check;
2720 not necessary when using the selected frame hooks.
2721 (print_stack_frame_stub): Likewise.
2722 (print_frame_info_base): Likewise.
2723 (print_frame_info): Likewise.
2724 (up_silently_command): Likewise.
2725 (down_silently_command): Likewise.
2726 (show_stack_frame): Likewise for TUIDO.
2727 (select_frame): Likewise.
2728 (select_and_print_frame): Likewise.
2729 (stack_publish_stopped_with_no_frame): Remove.
2730 (select_and_maybe_print_frame): Remove.
2731 * main.c (captured_main): Remove tui_fileopen and tuiInit; tui
2732 must use the initialize ui hook.
2733 * infrun.c (normal_stop): Remove call to TUIDO; tui must use the
2734 selected frame hooks.
2735 * event-top.c (command_handler): Remove tui insert_mode hack.
2736 * defs.h: Remove TUIDO; Only include tui.h.
2737 * breakpoint.c (mention): Remove calls to TUIDO.
2738 (delete_breakpoint): Remove tui hacks; tui must install
2739 the breakpoint hooks.
2740
2741 2001-07-14 Mark Kettenis <kettenis@gnu.org>
2742
2743 * config/i386/xm-linux.h (KERNEL_U_ADDR): Move from here...
2744 * config/i386/nm-linux.h: ...to here. Change comments about user
2745 area/struct a bit.
2746
2747 * config/i386/xm-linux.h (HAVE_TERMIOS): Really remove.
2748
2749 * Makefile.in (ALLDEPFILES): Add i386bsd-nat.c and i386bsd-tdep.c
2750 (i386bsd-tdep.o, i386bsd-nat.o): New targets.
2751
2752 2001-07-13 Elena Zannoni <ezannoni@redhat.com>
2753
2754 * remote-e7000.c (fetch_regs_from_dump): If register set is null,
2755 generate an internal error.
2756 (e7000_fetch_registers): Initialize variable 'wanted'.
2757 (e7000_wait): Initialize variable 'wanted_nopc'.
2758 (e7000_store_register): Fix sprintf compiler warnings.
2759 (sub2_from_pc): Ditto.
2760 (e7000_open): Close the descriptor, not the name.
2761 (e7000_load): Fix compiler warnings.
2762 (sub2_from_pc): Ditto.
2763 * Makefile.in (remote-e7000.o): Can now compile with -Werror.
2764
2765 2001-07-13 Mark Kettenis <kettenis@gnu.org>
2766
2767 * i386bsd-nat.c: Include <signal.h>, <stddef.h> and
2768 <sys/sysctl.h>.
2769 (store_inferior_registers): Wrap long line.
2770 (i386bsd_dr_get_status): Fix typo in comment.
2771 (_initialize_i386bsd_nat): New function. * i386bsd-tdep.c: New
2772 file. * config/i386/tm-fbsd.h (IN_SIGTRAMP): New define.
2773 (i386bsd_in_sigtramp): New prototype.
2774 (SIGTRAMP_START, SIGTRAMP_END): Redefine in terms...
2775 (i386bsd_sigtramp_start, i386bsd_sigtramp_end): ...these new
2776 (external) variables.
2777 (SIGCONTEXT_PC_OFFSET): Removed.
2778 (FRAME_SAVED_PC): New define.
2779 (i386bsd_frame_saved_pc): New function. * config/i386/fbsd.mt
2780 (TDEPFILES): Add i386bsd-tdep.o.
2781
2782 2001-07-12 Daniel Jacobowitz <drow@mvista.com>
2783
2784 * mips-linux-tdep.c (_initialize_mips_linux_tdep): Use ISO C
2785 definition.
2786
2787 2001-07-13 Mark Kettenis <kettenis@gnu.org>
2788
2789 * lin-lwp.c (lin_lwp_wait): Avoid check for resumed LWPs if there
2790 are no registered LWPs yet.
2791
2792 2001-07-12 Daniel Jacobowitz <drow@mvista.com>
2793
2794 * config/i386/nm-linux.h (CANNOT_FETCH_REGISTER): Call the right
2795 function.
2796 (CANNOT_STORE_REGISTER): Likewise.
2797
2798 2001-07-12 Keith Seitz <keiths@redhat.com>
2799
2800 * remote-rdp.c: Include "serial.h"
2801
2802 2001-07-12 Daniel Jacobowitz <drow@mvista.com>
2803
2804 * gdbserver/remote-utils.c (remote_open): Set VMIN to 1
2805 in HAVE_TERMIO/HAVE_TERMIOS cases.
2806
2807 2001-07-12 Mark Kettenis <kettenis@gnu.org>
2808
2809 * lin-lwp.c (stop_wait_callback): Add support for flushing
2810 signals. Use that in favour of the old code to get rid of
2811 superfluous SIGINTs.
2812 (lin_lwp_wait): Use the new support in stop_wait_callback to
2813 flush all but one SIGINT.
2814
2815 * i386-tdep.c (i386_extract_return_value): Undo 2001-07-11 changes
2816 to comment.
2817 (i386_store_return_value): Improve comments about storing
2818 floating-point return values.
2819
2820 * config/arm/xm-linux.h, config/i386/xm-linux.h,
2821 config/m68k/xm-linux.h, config/powerpc/xm-linux.h,
2822 config/sparc/xm-linux.h, config/ia64/xm-linux.h (HAVE_TERMIOS):
2823 Removed. Taken care of by autoconf and terminal.h.
2824
2825 2001-07-12 Daniel Jacobowitz <drow@mvista.com>
2826
2827 * mips-tdep.c (mips_type_needs_double_align): New function.
2828 (mips_push_arguments): Align o32 structs to even argument
2829 registers if necessary.
2830
2831 2001-07-11 Daniel Jacobowitz <drow@mvista.com>
2832
2833 * config/djgpp/fnchange.lst: Add entries for
2834 mips-linux-nat.c and mips-linux-tdep.c.
2835
2836 2001-07-12 Mark Kettenis <kettenis@gnu.org>
2837
2838 * config/powerpc/xm-linux.h: Fix corrupted file.
2839
2840 * configure.in: Add check for sigsetjmp.
2841 * config/m68k/xm-linux.h (HAVE_SIGSETJMP): Removed.
2842 * config/xm-sysv4.h (HAVE_SIGSETJMP): Removed.
2843 * configure, config.in: Regenerated.
2844
2845 2001-07-11 Elena Zannoni <ezannoni@redhat.com>
2846
2847 * config/sh/tm-sh.h (struct gdbarch_tdep): Add
2848 FLOAT_ARGLAST_REGNUM, RETURN_REGNUM, ARG0_REGNUM, ARGLAST_REGNUM,
2849 PR_REGNUM fields.
2850
2851 * sh-tdep.c (sh_skip_prologue_hard_way): Rename from
2852 skip_prologue_hard_way().
2853 (skip_prologue_hard_way): Make it a function pointer.
2854 (sh_print_register): Use function pointer do_pseudo_register,
2855 instead of sh_do_pseudo_register.
2856 (sh_do_registers_info): Ditto.
2857 (sh_gdbarch_init): Initialize do_pseudo_register.
2858 (IS_MOV_TO_R14): Rename from IS_MOV_R14.
2859 (skip_prologue_hard_way): Update.
2860 (sh_gdbarch_init): Move setting of frame_chain,
2861 get_saved_register, init_extra_frame_info, push_arguments,
2862 extract_return_value, pop_frame, store_struct_return,
2863 extract_struct_value_address, use_struct_convention,
2864 init_extra_frame_info to before target specific settings.
2865 (sh_gdbarch_init): Initialize new tdep fields
2866 FLOAT_ARGLAST_REGNUM, RETURN_REGNUM, ARG0_REGNUM, ARGLAST_REGNUM,
2867 PR_REGNUM.
2868 (sh_push_arguments): Use new gdbarch_tdep fields
2869 {ARG0,ARGLAST}_REGNUM.
2870 (sh_saved_pc_after_call, sh_nofp_frame_init_saved_regs,
2871 sh_init_extra_frame_info, sh_push_return_address,
2872 sh_generic_show_regs, sh3_show_regs, sh3e_show_regs,
2873 sh3_dsp_show_regs, sh4_show_regs, sh_dsp_show_regs): Update to use
2874 gdbarch_tdep->PR_REGNUM.
2875 (dr_reg_base_num, fv_reg_base_num): Move to earlier in the file.
2876
2877 2001-07-11 Daniel Jacobowitz <drow@mvista.com>
2878
2879 * config/mips/tm-linux.h: Include "tm-linux.h" instead of copying
2880 from it. Move definitions of REALTIME_LO and REALTIME_HI above
2881 include.
2882
2883 2001-07-11 Daniel Jacobowitz <drow@mvista.com>
2884
2885 * MAINTAINERS: List myself for MIPS/Linux
2886 port.
2887
2888 2001-07-11 Daniel Jacobowitz <drow@mvista.com>
2889
2890 * gdbserver/remote-utils.c (remote_open): Only
2891 check for F_SETOWN if we had F_SETFL and FASYNC.
2892
2893 2001-07-11 Daniel Jacobowitz <drow@mvista.com>
2894
2895 From Michael Fedrowitz <michael.fedrowitz@informatik.uni-ulm.de>:
2896
2897 * config/m68k/linux.mh: Remove core-regset.o.
2898 * m68klinux-nat.c: Fix comment.
2899 (supply_gregset): Change argument to elf_gregset_t *.
2900 (supply_fpregset): Change argument to elf_fpregset_t *.
2901 (fetch_core_registers): New function.
2902 (linux_elf_core_fns): Define.
2903 (_initialize_m68k_linux_nat): New function.
2904
2905 2001-07-11 Andrew Cagney <ac131313@redhat.com>
2906
2907 * configure.tgt: Mark d10v as pure multi-arch.
2908 * config/d10v/tm-d10v.h: Delete file.
2909 * config/d10v/d10v.mt (TM_FILE): Delete.
2910
2911 2001-07-10 Andrew Cagney <ac131313@redhat.com>
2912
2913 * serial.h (typedef serial_t): Delete. Replace all references to
2914 serial_t with `struct serial *'.
2915 * serial.c: Update.
2916 * nindy-share/ttyflush.c: Update.
2917 * nindy-share/ttyflush.c: Update.
2918 * nindy-share/Onindy.c: Update.
2919 * nindy-share/nindy.c: Update.
2920 * remote-rdp.c: Update.
2921 * remote-sds.c: Update.
2922 * remote-st.c: Update.
2923 * remote-nindy.c: Update.
2924 * remote-mips.c: Update.
2925 * remote-e7000.c: Update.
2926 * remote-os9k.c: Update.
2927 * remote-nrom.c: Update.
2928 * remote-es.c: Update.
2929 * remote-array.c: Update.
2930 * ocd.c: Update.
2931 * mon960-rom.c: Update.
2932 * dsrec.c: Update.
2933 * inflow.c: Update.
2934 * ser-e7kpc.c: Update.
2935 * sparclet-rom.c: Update.
2936 * srec.h: Update.
2937 * ser-tcp.c: Update.
2938 * ser-go32.c: Update.
2939 * sparcl-tdep.c: Update.
2940 * w89k-rom.c: Update.
2941 * utils.c: Update.
2942 * sh3-rom.c: Update.
2943 * remote.c: Update.
2944 * ser-pipe.c: Update.
2945 * ser-unix.c: Update.
2946 * ser-unix.h: Update.
2947 * xmodem.c: Update.
2948 * xmodem.h: Update.
2949
2950 2001-07-11 J.T. Conklin <jtc@redback.com>
2951
2952 From Greg McGary <greg@mcgary.org>:
2953 * gdbserver/remote-utils.c (remote_open): Set gdbserver as "owner"
2954 of SIGIO.
2955 (input_interrupt): Don't block on read, in case we got redundant
2956 SIGIO. Don't gripe about redundant SIGIO.
2957 * gdbserver/low-hppabsd.c (mywait): Use waitpid(). Enable SIGIO
2958 handler while waiting.
2959 * gdbserver/low-linux.c (mywait): Likewise.
2960 * gdbserver/low-nbsd.c (mywait): Likewise.
2961 * gdbserver/low-sparc.c (mywait): Likewise.
2962
2963 2001-07-11 Keith Seitz <keiths@redhat.com>
2964
2965 * infrun.c (print_stop_reason): Add missing uiout field
2966 "reason" for SIGNAL_RECEIVED case.
2967
2968 2001-07-11 Mark Kettenis <kettenis@gnu.org>
2969
2970 * config/alpha/nm-linux.h (TARGET_ELF64, PSIGNAL_IN_SIGNAL_H):
2971 Remove unused macro's.
2972
2973 * config/powerpc/nm-linux.h (NO_SYS_REG_H): Remove, it's no longer
2974 used.
2975
2976 2001-07-11 Eli Zaretskii <eliz@is.elta.co.il>
2977
2978 * go32-nat.c (info_dos_cmdlist): New variable.
2979 (go32_info_dos_command): New function.
2980 (_initialize_go32_nat): Convert all DOS-specific commands into
2981 subcommands of "info dos". Suggested by Andrew Cagney
2982 <ac131313@redhat.com>.
2983
2984 2001-07-11 Mark Kettenis <kettenis@gnu.org>
2985
2986 * config/nm-linux.h: Fix comments.
2987
2988 * thread-db.c (enable_thread_event_reporting): Correct warning
2989 message about getting thread death breakpoint.
2990 Reported by John S Kallal <jskallal@home.com>.
2991
2992 * i386-tdep.c (i386_extract_return_value): "Fix" comment.
2993 (i386_store_return_value): Frob FPU status and tag word to make
2994 sure the return value is the only value on the FPU stack.
2995
2996 * config/tm-linux.h: Do not include <signal.h>. Instead provide
2997 reasonable defaults for REALTIME_LO and REALTIME_HI if they're not
2998 already defined.
2999 * config/nm-linux.h: Include <signal.h>.
3000 [__SIGRTMIN] (REALTIME_LO, REALTIME_HI): Define to __SIGRTMIN and
3001 (__SIGRTMAX + 1) respectively.
3002
3003 2001-07-10 Andrew Cagney <ac131313@redhat.com>
3004
3005 * mcore-rom.c: Include "serial.h".
3006 * Makefile.in (mcore-rom.o): Depends on "serial.h".
3007
3008 2001-07-10 Andrew Cagney <ac131313@redhat.com>
3009
3010 * Makefile.in (remote-bug.o): Depends on serial.h.
3011 * remote-bug.c: Include "serial.h".
3012 * MAINTAINERS: Mark m88k target as buildable.
3013 * TODO: Update.
3014
3015 2001-07-10 Jim Blandy <jimb@redhat.com>
3016
3017 Clean up the D10V port so that GDB and the target program no
3018 longer disagree on how big pointers are.
3019 * findvar.c (value_from_register): Remove special case code for D10V.
3020 * printcmd.c (print_frame_args): Same.
3021 * valops.c (value_at, value_fetch_lazy): Same.
3022 * values.c (unpack_long): Same.
3023 * gdbarch.sh: Changes to effect the following:
3024 * gdbarch.h (GDB_TARGET_IS_D10V, D10V_MAKE_DADDR,
3025 gdbarch_d10v_make_daddr_ftype, gdbarch_d10v_make_daddr,
3026 set_gdbarch_d10v_make_daddr, D10V_MAKE_IADDR,
3027 gdbarch_d10v_make_iaddr_ftype, gdbarch_d10v_make_iaddr,
3028 set_gdbarch_d10v_make_iaddr, D10V_DADDR_P,
3029 gdbarch_d10v_daddr_p_ftype, gdbarch_d10v_daddr_p,
3030 set_gdbarch_d10v_daddr_p, D10V_IADDR_P,
3031 gdbarch_d10v_iaddr_p_ftype, gdbarch_d10v_iaddr_p,
3032 set_gdbarch_d10v_iaddr_p, D10V_CONVERT_DADDR_TO_RAW,
3033 gdbarch_d10v_convert_daddr_to_raw_ftype,
3034 gdbarch_d10v_convert_daddr_to_raw,
3035 set_gdbarch_d10v_convert_daddr_to_raw, D10V_CONVERT_IADDR_TO_RAW,
3036 gdbarch_d10v_convert_iaddr_to_raw_ftype,
3037 gdbarch_d10v_convert_iaddr_to_raw,
3038 set_gdbarch_d10v_convert_iaddr_to_raw): Delete declarations.
3039 * gdbarch.c: Delete the corresponding definitions.
3040 (struct gdbarch): Delete members d10v_make_daddr,
3041 d10v_make_iaddr, d10v_daddr_p, d10v_iaddr_p,
3042 d10v_convert_daddr_to_raw, and d10v_convert_iaddr_to_raw.
3043 (startup_gdbarch): Remove initializers for the above.
3044 (verify_gdbarch, gdbarch_dump): Don't verify or dump them any
3045 more.
3046 * d10v-tdep.c (d10v_register_virtual_type): Rather that
3047 claiming the stack pointer and PC are 32 bits long (which they
3048 aren't), say that the stack pointer is an int16_t, and the
3049 program counter is a function pointer. This allows the rest
3050 of GDB to make the appropriate conversions between the code
3051 pointer format and real addresses.
3052 (d10v_register_convertible, d10v_register_convert_to_virtual,
3053 d10v_register_convert_to_raw): Delete function; no registers
3054 are convertible now, so we use
3055 generic_register_convertible_not instead.
3056 (d10v_address_to_pointer, d10v_pointer_to_address): New gdbarch
3057 methods.
3058 (d10v_push_arguments, d10v_extract_return_value): Remove special
3059 cases for code and data pointers.
3060 (d10v_gdbarch_init): Set gdbarch_ptr_bit to 16, so that GDB and
3061 the target agree on how large pointers are. Say that addresses
3062 are 32 bits long. Register the address_to_pointer and
3063 pointer_to_address conversion functions. Since no registers are
3064 convertible now, register generic_register_convertible_not as the
3065 gdbarch_register_convertible method instead of
3066 d10v_register_convertible. Remove registrations for
3067 d10v_register_convert_to_virtual,
3068 d10v_register_convert_to_raw, gdbarch_d10v_make_daddr,
3069 gdbarch_d10v_make_iaddr, gdbarch_d10v_daddr_p,
3070 gdbarch_d10v_iaddr_p, gdbarch_d10v_convert_daddr_to_raw, and
3071 gdbarch_d10v_convert_iaddr_to_raw.
3072
3073 * printcmd.c (print_scalar_formatted): If we are printing an
3074 address, remember that TARGET_ADDR_BIT is not always equal to
3075 TARGET_PTR_BIT.
3076
3077 * valops.c (value_cast): When casting a pointer to an integer,
3078 don't convert it to an address.
3079
3080 2001-07-10 Andrew Cagney <ac131313@redhat.com>
3081
3082 * remote-utils.h (struct serial): Declare as opaque. Remove
3083 include of "serial.h".
3084 * Makefile.in (remote_utils_h): Update.
3085
3086 * monitor.h (struct serial): Declare as opaque. Remove include of
3087 "serial.h".
3088 (struct monitor_ops): Replace serial_t with `struct serial *'.
3089 * monitor.c (monitor_desc): Ditto.
3090
3091 2001-07-10 Daniel Jacobowitz <drow@mvista.com>
3092
3093 * mips-linux-tdep.c: New file.
3094 * mips-linux-nat.c: New file.
3095 * config/mips/linux.mh: New file.
3096 * config/mips/linux.mt: New file.
3097 * config/mips/xm-linux.h: New file.
3098 * config/mips/nm-linux.h: New file.
3099 * config/mips/tm-linux.h: New file.
3100 * configure.host: Recognize mips*-*-linux*.
3101 * configure.tgt: Likewise.
3102 * NEWS: Mention mips*-*-linux* port.
3103
3104 2001-07-09 Andrew Cagney <ac131313@redhat.com>
3105
3106 * serial.h (struct serial): Rename `struct _serial_t'.
3107 * serial.c (XMALLOC): Define.
3108 (serial_open): Update. Use XMALLOC.
3109 (serial_fdopen): Ditto.
3110
3111 2001-07-07 Andrew Cagney <ac131313@redhat.com>
3112
3113 * gdbtypes.h (builtin_type_void_data_ptr): Rename
3114 builtin_type_ptr.
3115 * gdbtypes.c (builtin_type_void_data_ptr): Update.
3116 (build_gdbtypes): Update.
3117 (_initialize_gdbtypes): Update.
3118 * values.c (value_as_pointer): Update.
3119 * utils.c (host_pointer_to_address): Update.
3120 (address_to_host_pointer): Update.
3121
3122 2001-07-08 Andrew Cagney <ac131313@redhat.com>
3123
3124 * remote-udi.c (udi_wait): Make type, instead of name, of first
3125 parameter a ptid_t.
3126
3127 2001-07-07 Andrew Cagney <ac131313@redhat.com>
3128
3129 * ser-mac.c: Make obsolete.
3130 * Makefile.in (ser-mac.o): Ditto.
3131
3132 2001-07-08 Eli Zaretskii <eliz@is.elta.co.il>
3133
3134 * go32-nat.c (go32_get_windows_version, print_mem, go32_sysinfo)
3135 (read_memory_region, get_descriptor, display_descriptor)
3136 (go32_sldt, go32_sgdt, go32_sidt): New functions.
3137 (top-level): Include ctype.h, utsname.h, dos.h, and go32.h. Ifdef
3138 away `disable' from dos.h, since breakpoint.h defines an enum
3139 member of the same name, and GCC 2.7.2 barfs.
3140 (_initialize_go32_nat): Provide new commands dos-sysinfo, dos-ldt,
3141 dos-gdt, and dos-idt, all of them in the "info" class
3142
3143 2001-07-07 Kevin Buettner <kevinb@redhat.com>
3144
3145 * procfs.c (create_procinfo): Allocate space for saved_entryset
3146 and saved_exitset.
3147 (destroy_one_procinfo): Free space allocated to saved_entryset
3148 and saved_exitset.
3149
3150 2001-07-07 Andrew Cagney <ac131313@redhat.com>
3151
3152 * TODO (5.1): Update.
3153
3154 2001-07-07 Andrew Cagney <ac131313@redhat.com>
3155
3156 * symtab.c (main_name): New function.
3157 (set_main_name): New function.
3158 * symtab.h: Declare.
3159 * TODO: Update
3160
3161 From 2000-03-05 Anthony Green <green@redhat.com>:
3162 * dbxread.c (process_one_symbol): Handle the N_MAIN stab by
3163 setting main_name.
3164 * blockframe.c (inside_main_func): Use main_name instead of
3165 "main".
3166 * symtab.c (find_main_psymtab): Ditto.
3167 * source.c (select_source_symtab): Ditto.
3168 * nlmread.c (nlm_symfile_read): Ditto.
3169 * rs6000-tdep.c (skip_prologue): Ditto.
3170
3171 2001-07-07 Andrew Cagney <ac131313@redhat.com>
3172
3173 * TODO: Convert most items into PRs.
3174
3175 2001-07-07 Mark Kettenis <kettenis@gnu.org>
3176
3177 * lin-lwp.c (status_to_str): New function.
3178 (lin_lwp_wait): Use it to print debug messages where appropriate.
3179
3180 2001-07-06 Michael Chastain <chastain@redhat.com>
3181
3182 * i387-tdep.c (print_i387_value): Fix pointer glitch.
3183
3184 2001-07-07 Mark Kettenis <kettenis@gnu.org>
3185
3186 * lin-lwp.c (count_events_callback): Fix formatting. Turn check
3187 commented with "paranoia" into gdb_assert.
3188 (select_event_lwp_callback): Likewise.
3189 (cancel_breakpoints_callback): Bail out early if LP is the event
3190 LWP. Add comment about backup up breakpoints. Fix formatting and
3191 debug message.
3192 (select_event_lwp): Make solely repsonsible for switching event
3193 LWP. Fix formatting and remove bogus "ERROR" debug message.
3194 Don't backup breakpoints from here.
3195 (lin_lwp_wait): Don't touch LP->status, let select_event_lwp
3196 handle that. Only call select_event_lwp if we're not waiting for
3197 a specific LWP, i.e. when PID == -1. Backup breakpoints from here.
3198
3199 2001-07-06 Michael Snyder <msnyder@redhat.com>
3200
3201 * procfs.c (procfs_resume): Silence noisy warning.
3202
3203 2001-06-12 Michael Snyder <msnyder@redhat.com>
3204
3205 * lin-lwp.c: Prevent thread starvation by using a monte carlo
3206 method to choose which of several event threads to handle next.
3207
3208 (stop_wait_callback): Defer pushback of breakpoint events until
3209 later; add SIGTRAP events to the queue of unhandled events.
3210 Keep calling waitpid until SIGSTOP retrieved. If more than one
3211 non-SIGSTOP event is retrieved, push them back onto the process
3212 queue using kill.
3213 (count_events_callback, select_singlestep_lwp_callback,
3214 select_event_lwp_callback, cancel_breakpoints_callback,
3215 select_event_lwp): New functions. Implement monte carlo method
3216 for selecting which of several SIGTRAP threads to handle next.
3217 Push back the breakpoint event for all threads other than the
3218 selected one.
3219 (lin_lwp_wait): Call select_event_lwp to decide which of several
3220 sigtrapped lwps to handle next.
3221 (resume_callback): Disable code that attempts to handle
3222 step_resume breakpoints. Let core gdb handle this.
3223
3224 2001-07-06 Jim Blandy <jimb@redhat.com>
3225
3226 * gdbtypes.h (builtin_type_void_func_ptr): New builtin type.
3227 * gdbtypes.c (builtin_type_void_func_ptr): Define the variable.
3228 (build_gdbtypes): Initialize it.
3229 (_initialize_gdbtypes): Swap it.
3230
3231 2001-07-04 Daniel Jacobowitz <drow@mvista.com>
3232
3233 * mips-tdep.c (mips32_op): Correct offset.
3234 (itype_op): Likewise.
3235 (itype_rs): Fix formatting.
3236 (itype_immediate): Fix formatting.
3237 (jtype_op): Correct offset.
3238 (jtype_target): Fix formatting.
3239 (rtype_op): Correct offset.
3240 (rtype_rs): Fix formatting.
3241 (rtype_rt): Likewise.
3242 (rtype_rd): Likewise.
3243 (rtype_shamt): Likewise.
3244 (rtype_funct): Likewise.
3245
3246 (mips32_next_pc): Fix formatting and comments. Recognize
3247 coprocessor 1 branches. Check the correct field for BLT family
3248 branches. Use itype_rt instead of itype_rs for the second register
3249 of a BNE or BNEL branch. Move (unreachable) default case.
3250
3251 2001-07-04 Andrew Cagney <ac131313@redhat.com>
3252
3253 * ui-out.h (struct ui_out_impl): Add field is_mi_like_p.
3254 (ui_out_is_mi_like_p): Declare.
3255 * ui-out.c (ui_out_is_mi_like_p): Define.
3256 (default_ui_out_impl): Initialize is_mi_like_p to zero.
3257 * cli-out.c (cli_ui_out_impl): Ditto.
3258 * breakpoint.c (print_it_typical): Use ui_out_is_mi_like_p.
3259 (watchpoint_check, print_one_breakpoint, mention): Ditto.
3260 * infrun.c (print_stop_reason, normal_stop): Ditto.
3261
3262 2001-07-05 Daniel Jacobowitz <drow@mvista.com>
3263
3264 * mips-tdep.c (mips_software_single_step): New function.
3265 * config/mips/tm-mips.h: Add prototype for
3266 mips_software_single_step.
3267
3268 2001-07-05 Daniel Jacobowitz <drow@mvista.com>
3269
3270 * ppc-linux-nat.c (supply_gregset): Use elf_greg_t instead
3271 of greg_t.
3272 (fill_gregset): Likewise.
3273
3274 2001-07-05 Andrew Cagney <ac131313@redhat.com>
3275
3276 * objfiles.c (open_mapped_file): Use lbasename instead of
3277 basename.
3278
3279 2001-07-05 Jim Blandy <jimb@redhat.com>
3280
3281 * d10v-tdep.c (d10v_frame_chain, d10v_frame_init_saved_regs,
3282 show_regs, d10v_read_pc, d10v_write_pc, d10v_read_sp,
3283 d10v_write_sp, d10v_write_fp, d10v_read_fp,
3284 d10v_push_return_address): Call the functions d10v_make_daddr,
3285 d10v_make_iaddr, d10v_convert_iaddr_to_raw, and
3286 d10v_convert_daddr_to_raw, not the global macros D10V_MAKE_DADDR,
3287 D10V_MAKE_IADDR, D10V_CONVERT_IADDR_TO_RAW, and
3288 D10V_CONVERT_DADDR_TO_RAW.
3289
3290 * dwarf2read (dwarf2_build_psymtabs_hard): Doc fix.
3291
3292 2001-07-05 Mark Kettenis <kettenis@gnu.org>
3293
3294 * config/i386/xm-go32.h (HOST_I386): Removed.
3295 * config/i386/xm-linux.h (HOST_I386): Removed.
3296
3297 2001-07-04 Mark Kettenis <kettenis@gnu.org>
3298
3299 * i387-tdep.c (print_i387_value): Add extra space after final full
3300 stop in comment.
3301
3302 2001-07-04 Andrew Cagney <ac131313@redhat.com>
3303
3304 * TODO (5.1): Update. Doco changes committed.
3305
3306 2001-06-29 Andrew Cagney <ac131313@redhat.com>
3307
3308 * config/arm/tm-arm.h: Include "floatformat.h".
3309
3310 2001-06-29 Andrew Cagney <ac131313@redhat.com>
3311
3312 * i387-tdep.c: Include "gdb_assert.h".
3313 (print_i387_value): Use extract_floating to extract the FP value
3314 from a zero padded local buffer.
3315
3316 2001-06-28 Andrew Cagney <ac131313@redhat.com>
3317
3318 * TODO: Delete all thread items. The thread code was overhauled.
3319
3320 2001-07-04 Elena Zannoni <ezannoni@redhat.com>
3321
3322 * memattr.c (create_mem_region): Move n to next memory region,
3323 to avoid infinite loop.
3324
3325 * memattr.h: Add copyright statement.
3326 * memattr.c: Ditto.
3327
3328 2001-07-04 Jim Blandy <jimb@redhat.com>
3329
3330 * dwarf2read.c (struct partial_die_info): New member: has_pc_info.
3331 (read_partial_die): Delete fourth argument; we return this info in
3332 the struct partial_die_info object itself now.
3333 (dwarf2_build_psymtabs_hard, scan_partial_symbols): Use the
3334 has_pc_info field of the partial die struct, rather than passing a
3335 variable by reference to read_partial_die.
3336
3337 * dwarf2read.c (dwarf2_build_psymtabs_hard): Remove extraneous
3338 code in loop condition.
3339
3340 2001-07-03 Michael Snyder <msnyder@redhat.com>
3341
3342 * thread_db (find_new_threads_callback, thread_db_thread_alive,
3343 attach_thread): Update comments.
3344
3345 2001-06-29 Ken Whaley <ken@believe.com>
3346
3347 * thread-db.c (attach_thread): Check for TD_THR_ZOMBIE in addition
3348 to TD_THR_UNKNOWN when looking for defunct zombie threads.
3349 (thread_db_thread_alive): Ditto.
3350 (find_new_threads_callback): Ditto.
3351
3352 2001-07-02 Daniel Jacobowitz <drow@mvista.com>
3353
3354 * MAINTAINERS: Add myself to the write-after-approval list.
3355
3356 2001-07-02 Daniel Jacobowitz <drow@mvista.com>
3357
3358 * solib-svr4.c: Include "elf/mips.h".
3359 (elf_locate_base): Make DT_MIPS_RLD_MAP block unconditional.
3360
3361 2001-07-02 Jim Blandy <jimb@redhat.com>
3362
3363 * dwarf2read.c (read_comp_unit, sibling_die, dump_die,
3364 dump_die_list, store_in_ref_table, follow_die_ref): Make these
3365 static; they're private functions.
3366
3367 2001-07-01 Mark Elbrecht <snowball@bigfoot.com>
3368
3369 * coffread.c (coff_symfile_read): Parse DWARF2 info if present.
3370
3371 2001-06-28 Elena Zannoni <ezannoni@redhat.com>
3372
3373 * TODO: Add import of readline 4.2 as a gdb 5.2 task.
3374
3375 2001-06-29 Andrew Cagney <ac131313@redhat.com>
3376
3377 * config/djgpp/fnchange.lst: Sort.
3378
3379 2001-06-28 Andrew Cagney <ac131313@redhat.com>
3380
3381 * config/djgpp/fnchange.lst: Rename mi0-var-block.exp,
3382 mi0-var-cmd.exp, mi0-var-child.exp and mi0-var-display.exp.
3383
3384 2001-06-29 Andreas Jaeger <aj@suse.de>
3385
3386 * MAINTAINERS: Add myself to the write-after-approval list.
3387
3388 2001-06-28 Andrew Cagney <ac131313@redhat.com>
3389
3390 * remote-array.c (SWAP_TARGET_AND_HOST): Delete macro.
3391 (get_hex_word): Don't use HOST_BYTE_ORDER.
3392 (array_fetch_registers): Add variable ``reg''. Use
3393 store_unsigned_integer to byte-swap the register. Delete unused
3394 local ``regs''.
3395
3396 2001-06-28 Andrew Cagney <ac131313@redhat.com>
3397
3398 * MAINTAINERS: Add Per Bothner to Java maintainers.
3399
3400 2001-06-28 Andrew Cagney <ac131313@redhat.com>
3401
3402 * rdi-share/unixcomm.c (SERIAL_PREFIX): Always provide a default.
3403 * rdi-share/hostchan.h (__unix): Hack, provide a default value.
3404 * rdi-share/host.h (__unix): Hack, define when __NetBSD__.
3405 * TODO: Update.
3406 * MAINTAINERS: Update. arm-elf builds.
3407
3408 2001-06-28 Jim Blandy <jimb@redhat.com>
3409
3410 * d10v-tdep.c (d10v_ts2_dmap_register): Doc fix.
3411
3412 * d10v-tdep.c (d10v_frame_chain_valid, d10v_use_struct_convention,
3413 d10v_breakpoint_from_pc, d10v_register_byte,
3414 d10v_register_raw_size, d10v_register_virtual_size,
3415 d10v_register_virtual_type, d10v_register_convertible,
3416 d10v_register_convert_to_virtual, d10v_register_convert_to_raw,
3417 d10v_make_daddr, d10v_make_iaddr, d10v_daddr_p, d10v_iaddr_p,
3418 d10v_convert_iaddr_to_raw, d10v_convert_daddr_to_raw,
3419 d10v_store_struct_return, d10v_store_return_value,
3420 d10v_extract_struct_value_address, d10v_frame_saved_pc,
3421 d10v_saved_pc_after_call, d10v_pop_frame, d10v_skip_prologue,
3422 d10v_frame_chain, d10v_frame_init_saved_regs,
3423 d10v_init_extra_frame_info, d10v_read_pc, d10v_write_pc,
3424 d10v_read_sp, d10v_write_sp, d10v_write_fp, d10v_read_fp,
3425 d10v_push_return_address, d10v_push_arguments,
3426 d10v_extract_return_value): Make these functions static.
3427
3428 2001-06-28 Andrew Cagney <ac131313@redhat.com>
3429
3430 From Fernando Nasser:
3431 * infrun.c (handle_inferior_event): Handle "nexti" inside function
3432 prologues.
3433
3434 2001-06-28 Michael Snyder <msnyder@redhat.com>
3435
3436 * infrun.c (handle_inferior_event): Replace prev_pc test in all
3437 calls to bpstat_stop_status (removed in 1999-09-24). This test
3438 helps distinguish stepping over a breakpoint trap from stepping
3439 thru a jump to the instruction after a breakpoint trap.
3440 (handle_inferior_event): Don't bother writing the PC if
3441 DECR_PC_AFTER_BREAK is zero (optimization).
3442 * breakpoint.c (bpstat_stop_status): Add comment explaining the
3443 purpose and usage of the "not_a_breakpoint" argument in computing
3444 the breakpoint address.
3445
3446 2001-06-28 Andrew Cagney <ac131313@redhat.com>
3447
3448 From 2000-12-03 Stephane Carrez <Stephane.Carrez@worldnet.fr>:
3449 * monitor.c (setmem_resp_delim_pattern): New regexp pattern.
3450 (setreg_resp_delim_pattern): Likewise.
3451 (setmem_resp_delim_fastmap): New buffer.
3452 (setreg_resp_delim_fastmap): Likewise.
3453 (monitor_open): Initialize above regexp if they are defined.
3454 (monitor_write_memory): Use regexp to check the result of write.
3455 (monitor_store_register): Likewise to check result of register set.
3456
3457 2001-06-28 Andrew Cagney <ac131313@redhat.com>
3458
3459 From 2000-06-14 John Marshall <john_w_marshall@palm.com>:
3460 * coff-solib.c: Include symfile.h and objfiles.h to make
3461 OBJF_SHARED visible.
3462
3463 2001-06-28 Andrew Cagney <ac131313@redhat.com>
3464
3465 * configure.in (--enable-gdbmi): Enable by default.
3466 * configure: Regenerate.
3467 * TODO: Update.
3468 * NEWS: Update
3469
3470 2001-06-28 Joel Brobecker <brobecker@act-europe.fr>
3471
3472 * solib-osf.c (osf_in_dynsym_resolve_code): Add a comment
3473 explaining the consequences of always returning zero. No code
3474 change.
3475
3476 2001-06-28 Andrew Cagney <ac131313@redhat.com>
3477
3478 From 2001-06-08 Daniel Jacobowitz <djacobowitz@mvista.com>:
3479 * defs.h (enum target_signal): Add TARGET_SIGNAL_REALTIME_65
3480 to TARGET_SIGNAL_REALTIME_127.
3481 * target.c (struct signals): Add SIG63 to SIG127.
3482 (target_signal_from_host): Handle up to 127 signals.
3483 (do_target_signal_to_host): Likewise.
3484
3485 2001-06-27 Andrew Cagney <ac131313@redhat.com>
3486
3487 * remote-sds.c (sds_start_remote): Change type of ``c'' to int
3488 from possibly unsigned char.
3489
3490 2001-06-27 Andrew Cagney <ac131313@redhat.com>
3491
3492 * ser-ocd.c: Delete file.
3493 * Makefile.in (ALLDEPFILES): Remove ser-ocd.c
3494 (ser-ocd.o): Delete target.
3495 * TODO: Update.
3496 * NEWS: Update.
3497
3498 2001-06-27 Andrew Cagney <ac131313@redhat.com>
3499
3500 * MAINTAINERS (Write After Approval): Sort.
3501 (Past Maintainers): Daniel Berlin stepped down as C++ maintainer.
3502
3503 2001-06-26 Andrew Cagney <ac131313@redhat.com>
3504
3505 * breakpoint.c (breakpoint_1): Always output the breakpoint
3506 headings. Leave it to ui-out to decide which
3507
3508 2001-06-25 Andrew Cagney <ac131313@redhat.com>
3509
3510 * stack.c (print_frame): For ui_out, output a list of arguments.
3511
3512 2001-06-25 Kevin Buettner <kevinb@redhat.com>
3513
3514 * MAINTAINERS (paper trail): Update.
3515
3516 2001-06-25 Michael Snyder <msnyder@redhat.com>
3517
3518 * infrun.c: Eliminate the "thread_step_needed" state variable,
3519 and replace it with a relatively simple test in resume.
3520 (resume): Replace thread_step_needed logic with a test for
3521 stepping, breakpoint_here_p and breakpoints_inserted.
3522 Move CANNOT_STEP_BREAKPOINT logic to after thread_step logic.
3523 (proceed): Discard thread_step_needed logic.
3524 (wait_for_inferior, fetch_inferior_event, handle_inferior_event):
3525 Discard thread_step_needed logic.
3526
3527 2001-06-24 Fernando Nasser <fnasser@redhat.com>
3528
3529 * remote-rdi.c (arm_rdi_wait): Fix return type in prototype.
3530 * rdi-share/host.h: Add missing parenthesis in conditional.
3531
3532 2001-06-22 J.T. Conklin <jtc@redback.com>
3533
3534 * configure.in: include nlist.h when checking for member som_addr
3535 in struct so_map.
3536 * configure: regenerate.
3537
3538 2001-06-21 Keith Seitz <keiths@redhat.com>
3539
3540 * cli-out.c (cli_out_new): Initialize new structure member
3541 "suppress_output".
3542
3543 2001-06-20 Andrew Cagney <ac131313@redhat.com>
3544
3545 * ui-out.h (ui_out_table_header): Add parameter ``col_name''.
3546 (table_header_ftype): Ditto.
3547 * cli-out.c (cli_table_header): Update.
3548 * ui-out.c (ui_out_table_header): Update.
3549 (uo_table_header): Update.
3550 (default_table_header): Update.
3551 (append_header_to_list): Update.
3552 (struct ui_out_header): Add field ``col_name''.
3553 (append_header_to_list): Use xstrdup. Initialize col_name.
3554 * breakpoint.c (breakpoint_1): Pass COL_NAME to
3555 ui_out_table_header.
3556
3557 2001-06-19 Andrew Cagney <ac131313@redhat.com>
3558
3559 * cli-out.c: Include "gdb_assert.h'.
3560 (struct ui_out_data): Add field ``suppress_output.
3561 (cli_table_begin): When NR_ROWS is zero, suppress_output.
3562 (cli_table_end): Clear suppress_output.
3563 (cli_table_body): Check suppress_output.
3564 (cli_table_header, cli_begin): Ditto.
3565 (cli_end, cli_field_int, cli_field_skip): Ditto.
3566 (cli_field_string, cli_field_fmt, cli_spaces): Ditto.
3567 (cli_text, cli_message, cli_wrap_hint): Ditto.
3568 * breakpoint.c (breakpoint_1): Close the ui_out table before
3569 printing the breakpoint not found message.
3570
3571 2001-06-18 Andrew Cagney <ac131313@redhat.com>
3572
3573 * ui-out.c (ui_out_table_begin): Add parameter ``nr_rows''.
3574 (default_table_begin): Ditto.
3575 (uo_table_begin): Ditto.
3576 * cli-out.c (cli_table_begin): Ditto.
3577 * ui-out.h (ui_out_table_begin): Update
3578 (table_begin_ftype): Update.
3579 * breakpoint.c (breakpoint_1): Pass nr_printable_breakpoints to
3580 ui_out_table_begin.
3581
3582 2001-06-16 Andrew Cagney <ac131313@redhat.com>
3583
3584 * breakpoint.c (breakpoint_1): Restructure. Compute the
3585 nr_printable_breakpoints. Move the header output to before the
3586 main print breakpoints loop.
3587 (user_settable_breakpoint): New function.
3588
3589 2001-06-18 Andrew Cagney <ac131313@redhat.com>
3590
3591 * infrun.c, breakpoint.c: Use strncmp as the "mi" test. Allow,
3592 "mi", "mi0" and "mi1".
3593
3594 2001-06-17 Andrew Cagney <ac131313@redhat.com>
3595
3596 * gdbarch.sh: Generate an error when conflicting macro
3597 definitions. Generate an error when both pure multi-arch and
3598 "tm.h".
3599 * gdbarch.h, gdbarch.c: Regenerate.
3600 * defs.h (GDB_MULTI_ARCH_TM): Rewrite definition.
3601
3602 2001-06-17 Andrew Cagney <ac131313@redhat.com>
3603
3604 * config/sparc/tm-sun4sol2.h (GDB_MULTI_ARCH): Down grade to
3605 GDB_MULTI_ARCH_PARTIAL from two.
3606
3607 2001-06-17 Fernando Nasser <fnasser@redhat.com>
3608
3609 From 2001-06-15 Eirik Fuller <eirik@hackrat.com>
3610 * cli/cli-script.c (free_command_lines): Reset list pointer.
3611
3612 2001-06-16 Andrew Cagney <ac131313@redhat.com>
3613
3614 * arch-utils.c (init_frame_pc_default): New function
3615 * arch-utils.h (init_frame_pc_default): Declare.
3616 * gdbarch.sh (INIT_FRAME_PC): Default to init_frame_pc_default and
3617 not init_frame_pc_noop.
3618 * gdbarch.h, gdbarch.c: Re-generate.
3619 * blockframe.c (INIT_FRAME_PC): Delete macro definition.
3620 * mips-tdep.c (mips_gdbarch_init): Set init_frame_pc to
3621 init_frame_pc_noop.
3622
3623 2001-06-16 Andrew Cagney <ac131313@redhat.com>
3624
3625 * gdbarch.c: Regenerate. Out-of-sync with gdbarch.sh.
3626
3627 2001-06-15 Andrew Cagney <ac131313@redhat.com>
3628
3629 * gdbarch.sh (CANNOT_FETCH_REGISTER): Multi-arch.
3630 (CANNOT_STORE_REGISTER): Ditto.
3631 * infptrace.c (CANNOT_FETCH_REGISTER): Delete definition.
3632 (CANNOT_STORE_REGISTER): Ditto.
3633 * regcache.c (CANNOT_STORE_REGISTER): Ditto.
3634 * lynx-nat.c (CANNOT_STORE_REGISTER): Ditto.
3635 * arch-utils.h (cannot_register_not): Define.
3636 * arch-utils.c (cannot_register_not): Declare.
3637
3638 2001-06-15 Andrew Cagney <ac131313@redhat.com>
3639
3640 * gdbarch.sh: Clarify pre/post default
3641 (INIT_FRAME_PC_FIRST, INIT_FRAME_PC): Multiarch.
3642 * blockframe.c (get_prev_frame): Remove #ifdef from around
3643 INIT_FRAME_PC_FIRST call.
3644 * arch-utils.c (init_frame_pc_noop): Define.
3645 * arch-utils.h (init_frame_pc_noop): Declare.
3646 * config/mips/tm-mips.h (INIT_FRAME_PC_FIRST): Delete.
3647 (INIT_FRAME_PC, mips_init_frame_pc_first): Ditto.
3648 * mips-tdep.c (mips_init_frame_pc_first): Make static.
3649 (mips_gdbarch_init): Initialize init_frame_pc_first.
3650 (mips_dump_tdep): Update.
3651
3652 2001-06-15 Michael Snyder <msnyder@redhat.com>
3653
3654 * infrun.c (context_switch): New function. Abstract the operation
3655 of saving and restoring infrun's state when switching threads.
3656 (handle_inferior_event): Normalize the handling of the 'thread hop'
3657 event (when the wrong thread hits a thread-specific breakpoint,
3658 and we need to solo-step that thread past the breakpoint).
3659 Call keep_going, instead of target_resume. Handle the subsequent
3660 singlestep-trap as a normal event instead of just resuming.
3661
3662 2001-06-15 Andrew Cagney <ac131313@redhat.com>
3663
3664 * arch-utils.c (core_addr_identity): New function. Rename
3665 default_convert_from_func_ptr_addr.
3666 * gdbarch.sh (CONVERT_FROM_FUNC_PTR_ADDR): Update.
3667 (ADDR_BITS_REMOVE): Define. Default to core_addr_identity.
3668 * defs.h (ADDR_BITS_REMOVE): Delete macro definition.
3669 * config/mips/tm-mips.h (ADDR_BITS_REMOVE): Delete definition.
3670 * mips-tdep.c (mips_addr_bits_remove): Make static.
3671 (mips_gdbarch_init): Initialize addr_bits_remove.
3672
3673 2001-06-15 Andrew Cagney <ac131313@redhat.com>
3674
3675 From 2001-02-26 D.J. Barrow <djbarrow@de.ibm.com>:
3676 * configure.tgt: Add S/390 31 & 64 bit target configuration.
3677 * configure.host: Ditto for host.
3678
3679 2001-06-15 Andrew Cagney <ac131313@redhat.com>
3680
3681 * gdbarch.sh (EXTRACT_STRUCT_VALUE_ADDRESS_P): Delete definition.
3682 (EXTRACT_STRUCT_VALUE_ADDRESS): Change to a function with
3683 predicate.
3684 * gdbarch.h, gdbarch.c: Regenerate.
3685 * values.c (value_being_returned): Change the reference to
3686 EXTRACT_STRUCT_VALUE_ADDRESS_P to a function call.
3687
3688 2001-06-15 Joel Brobecker <brobecker@act-europe.fr>
3689
3690 * MAINTAINERS: Add Paul Hilfinger and Joel Brobecker to the
3691 Write After Approval list.
3692
3693 2001-06-14 Michael Snyder <msnyder@redhat.com>
3694
3695 * remote.c (show_remote_protocol_qSymbol_packet_cmd,
3696 set_remote_protocol_qSymbol_packet_cmd): New functions.
3697 (init_all_packet_configs, show_remote_cmd): Add qSymbol packet.
3698 (remote_check_symbols): New function. Implement qSymbol packet,
3699 allowing target to request symbol lookup service from gdb.
3700 (remote_open_1, remote_async_open_1): Call remote_check_symbols,
3701 allowing symbol lookup from exec_bfd on connection to target.
3702 (remote_new_objfile): New function. Catch new objfile notifications
3703 from shared library module, and call remote_check_symbols.
3704 (_initialize_remote): Hook remote_new_objfile into the shared
3705 library notification chain. Add "set remote symbol-lookup" command.
3706
3707 2001-06-14 Keith Seitz <keiths@redhat.com>
3708
3709 * tracepoint.c (trace_command): We now have tracepoint
3710 events. Get rid of those ugly hooks.
3711 (tracepoint_operation): Likewise.
3712 (trace_pass_command): Likewise.
3713
3714 2001-06-13 Michael Snyder <msnyder@redhat.com>
3715
3716 * gdbthread.h (struct thread_info): Add new fields:
3717 current_line, current_symtab, step_sp, for saved infrun state.
3718 * thread.c (save_infrun_state, load_infrun_state): Save and
3719 restore current_line, current_symtab, and step_sp.
3720 (add_thread): Rather than adding assignments to initialize
3721 the new fields, just use memset (tp, 0, sizeof (*tp).
3722 This way future new fields will not be overlooked.
3723 * infrun.c (handle_inferior_event): Save and restore save_sp,
3724 current_line, and current_symtab when switching threads.
3725
3726 2001-06-13 Elena Zannoni <ezannoni@redhat.com>
3727
3728 * MAINTAINERS: Add Andrew Cagney as co-maintainer of
3729 testsuite/gdb.mi.
3730
3731 2001-06-11 Andrew Cagney <ac131313@redhat.com>
3732
3733 * symtab.c (lookup_symtab_1): Replace basename with lbasename.
3734 (lookup_partial_symtab, file_matches): Ditto.
3735 (make_source_files_completion_list): Ditto.
3736 (make_file_symbol_completion_list): Ditto. Make local char*
3737 variable ``tail'' constant.
3738 (make_source_files_completion_list): Ditto with ``base_name''.
3739 * source.c (open_source_file): Use lbasename. Make ``p'' const
3740 char *.
3741
3742 2001-06-13 Eli Zaretskii <eliz@is.elta.co.il>
3743
3744 * config/i386/xm-go32.h (SLASH_P, ROOTED_P, SLASH_CHAR)
3745 (SLASH_STRING): Remove unused definitions.
3746 * config/i386/xm-cygwin.h: Likewise.
3747
3748 2001-06-12 Andrew Cagney <ac131313@redhat.com>
3749
3750 * ui-out.c (ui_out_list_begin): Add parameter ``id''.
3751 (make_cleanup_ui_out_list_begin_end): Ditto. Open the list.
3752 * ui-out.h: Update declarations.
3753
3754 Mon Jun 11 17:26:43 2001 Andrew Cagney <cagney@b1.cygnus.com>
3755
3756 * source.c (openp): Make parameters ``path'' and ``string''
3757 constant.
3758 (openp): Use alloca to safely duplicate ``string''. Make local
3759 variables ``p'' and ``p1'' constant. Delete char* casts.
3760 * defs.h: Update.
3761
3762 * symtab.c (lookup_symtab_1): Make parameter ``name'' constant.
3763 (lookup_symtab, lookup_partial_symtab): Ditto.
3764 * symtab.h (lookup_symtab, lookup_partial_symtab): Update.
3765
3766 2001-06-11 Andrew Cagney <ac131313@redhat.com>
3767
3768 * ui-out.h (ui_out_table_begin): Make char* parameters constant.
3769 (ui_out_table_header, ui_out_field_int): Ditto.
3770 (ui_out_field_core_addr, ui_out_field_string): Ditto.
3771 (ui_out_field_stream, ui_out_field_fmt): Ditto.
3772 (ui_out_field_skip, ui_out_text, ui_out_message): Ditto.
3773 * ui-out.c (ui_out_table_begin, ui_out_table_header): Update.
3774 (ui_out_field_core_addr, ui_out_field_stream): Update.
3775 (ui_out_field_string, ui_out_field_fmt): Update.
3776 (ui_out_text, ui_out_message): Update.
3777 (append_header_to_list): Make char* parameters constant.
3778 (uo_table_header, uo_table_begin): Ditto.
3779 (uo_field_int, uo_field_skip): Ditto.
3780 (uo_field_string, uo_field_fmt): Ditto.
3781 (uo_text, uo_message): Ditto.
3782
3783 2001-06-11 Eli Zaretskii <eliz@is.elta.co.il>
3784
3785 * completer.c (gdb_completer_loc_break_characters): New variable.
3786 (line_completion_function): If we are completing on locations,
3787 back up the start of word pointer past all characters which can
3788 appear in a location spec.
3789 (location_completer): New function.
3790
3791 * completer.h: Add prototype for location_completer.
3792
3793 * symtab.c (make_source_files_completion_list)
3794 (add_filename_to_list, not_interesting_fname): New functions.
3795 (filename_seen): New function, body extracted from
3796 output_source_filename.
3797 (output_source_filename): Call filename_seen to check if the file
3798 was already printed.
3799 (make_symbol_completion_list): If TEXT includes a
3800 double-quoted string, return an empty list, not NULL.
3801 (make_file_symbol_completion_list): New function, similar to
3802 make_symbol_completion_list but with an additional argument
3803 SRCFILE.
3804
3805 * symtab.h (make_file_symbol_completion_list)
3806 (make_source_files_completion_list): Add prototypes.
3807
3808 * breakpoint.c (_initialize_breakpoint): Make location_completer
3809 be the completion function for all commands which set breakpoints
3810 and watchpoints.
3811 (top-level): #include "completer.h".
3812
3813 * tracepoint.c (_initialize_tracepoint): Make location_completer
3814 be the completion function for the "trace" command.
3815 (top-level): #include "completer.h".
3816
3817 * printcmd.c (_initialize_printcmd): Make location_completer be
3818 the completion function for the "print", "inspect", "call", and
3819 "disassemble" commands.
3820 (top-level): #include "completer.h".
3821
3822 * infcmd.c (_initialize_infcmd): Make location_completer be the
3823 completion function for the "go", "jump", and "until" commands.
3824 (top-level): #include "completer.h".
3825
3826 2001-06-10 Christopher Faylor <cgf@redhat.com>
3827
3828 * gnu-regex.c: Eliminate obsolete check for _MSC_VER.
3829 * utils.c (notice_quit): Remove dummy function only used for _MSC_VER.
3830 * values.c (unpack_double): Remove obsolete check for _MSC_VER.
3831 * defs.h: Ditto.
3832 * m32r-rom.c: Ditto.
3833 * p-exp.y: Ditto.
3834 * ser-e7kpc.c: Ditto. Define WIN32_LEAN_AND_MEAN under _WIN32, for
3835 faster compilation.
3836 (get_ds_base): Remove _MSC_VER version of this function.
3837 * nindy-share/ttyflush.c: Ditto.
3838 * rdi-share/host.h: Ditto.
3839 * ser-go32.c (dos_readchar): Remove call to obsolete function.
3840 * remote-sim.c (gdb_os_poll_quit): Ditto.
3841 * remote-e7000.c (expect): Remove obsolete #if 0'ed code.
3842
3843 * main.c (captured_main): Eliminate special Cygwin checks.
3844 * ser-tcp.c: Remove unneeded __CYGWIN__ guard against system include.
3845
3846 2001-06-09 Andrew Cagney <ac131313@redhat.com>
3847
3848 * Makefile.in (gdbcmd_h): Add ui_out_h.
3849 (breakpoint.o, infcmd.o, main.o, printcmd.o, stack.o): Ditto.
3850 (thread.o, top.o): Ditto.
3851
3852 * ui-out.h (table_begin_ftype): Make string parameters constant.
3853 (table_header_ftype): Ditto.
3854 (field_int_ftype): Ditto.
3855 (field_skip_ftype): Ditto.
3856 (field_string_ftype): Ditto.
3857 (field_fmt_ftype): Ditto.
3858 (text_ftype): Ditto.
3859 (message_ftype): Ditto.
3860 * cli-out.c (cli_table_begin): Ditto.
3861 (cli_table_header): Ditto.
3862 (cli_field_int): Ditto.
3863 (cli_field_skip): Ditto.
3864 (cli_field_string): Ditto.
3865 (cli_field_fmt): Ditto.
3866 (cli_text): Ditto.
3867 (cli_message): Ditto.
3868 (out_field_fmt): Ditto.
3869 * ui-out.c (default_table_begin): Ditto.
3870 (default_table_header): Ditto.
3871 (default_field_int): Ditto.
3872 (default_field_skip): Ditto.
3873 (default_field_string): Ditto.
3874 (default_field_fmt): Ditto.
3875 (default_text): Ditto.
3876 (default_message): Ditto.
3877
3878 2001-06-08 Michael Snyder <msnyder@redhat.com>
3879
3880 * breakpoint.c (delete_breakpoint): Pass mark_inserted to
3881 remove_breakpoint, so that the subsequent test for
3882 bpt->inserted will succeed, and duplicates will be fixed up.
3883
3884 2001-06-08 Per Bothner <per@bothner.com>
3885
3886 * dwarf2read.c (set_cu_language): Handle DW_LANG_Java.
3887
3888 2001-06-07 Keith Seitz <keiths@redhat.com>
3889
3890 * tracepoint.c (tracepoint_opertation): Add ui event
3891 notifications.
3892 (trace_pass_command): Ditto.
3893
3894 2001-06-07 Andrew Cagney <ac131313@redhat.com>
3895
3896 * MAINTAINERS (Write After Approval): Note the entry criteria.
3897 (HP/PA): Jeff Law stepped down
3898
3899 2001-06-07 Jim Blandy <jimb@redhat.com>
3900
3901 * gdbarch.sh: Make sure that '[' doesn't interpret interesting
3902 variable values as operators.
3903
3904 2001-06-07 Keith Seitz <keiths@redhat.com>
3905
3906 * gdb-events.sh: Fix quote escaping which was obsoleted
3907 by last patch.
3908
3909 2001-06-07 Keith Seitz <keiths@redhat.com>
3910
3911 * gdb-events.sh: Make if statements and tests
3912 a little more portable.
3913 Don't use shell's echo command to put strings containing
3914 escaped characeters into a file -- different flavors of /bin/sh
3915 require differnt levels of escaping. Use cat <<EOF instead.
3916 Our internal field separator is a colon. Change all
3917 commands which assume it is a space.
3918
3919 2001-06-06 Mark Kettenis <kettenis@gnu.org>
3920
3921 * lin-lwp.c (struct lwp_info): Add member `resumed'.
3922 (iterate_over_lwps): Make sure we can handle CALLBACK deleting the
3923 LWP it's called for.
3924 (lin_lwp_attach): Mark LWP as resumed to make sure the fake
3925 SIGSTOP is reported.
3926 (resume_clear_callback): New function.
3927 (resume_set_callback): New function.
3928 (lin_lwp_resume): Mark all LWP's that we're going to resume as
3929 resumed, and unmark all others.
3930 (status_callback): Only report a pending wait status if we pretend
3931 that LP has been resumed.
3932 (resumed_callback): New function.
3933 (lin_lwp_wait): Add assertions to check that LWP's are properly
3934 marked as resumed. Partially revert 2001-05-25 patch by Michael
3935 Snyder: do not resume all threads. Add comment explaining the
3936 problems associated with this bit of code.
3937
3938 2001-06-07 Keith Seitz <keiths@redhat.com>
3939
3940 * MAINTAINTERS: Syd Polk is stepping down from
3941 maintaining libgui. I am replacing him.
3942
3943 2001-06-07 Eli Zaretskii <elis@is.elta.co.il>
3944
3945 * config/mips/tm-irix6.h: New file.
3946
3947 * config/mips/irix6.mh: New file.
3948
3949 * config/mips/irix6.mt: New file.
3950
3951 * config/mips/xm-irix6.h: New file.
3952
3953 * config/mips/nm-irix6.h: New file.
3954
3955 * mips-tdep.c (mips_gdbarch_init) <MIPS_ABI_N32>: Set up the
3956 disassembler info in tm_print_insn_info as appropriate for the N32
3957 ABI. Force N32 ABI to be the default if the CPU is R8000 or
3958 R10000.
3959
3960 * configure.tgt (mips*-sgi-irix6*): Map to irix6.
3961
3962 * configure.host (mips*-sgi-irix6*): Ditto.
3963
3964 2001-06-07 Andrew Cagney <ac131313@redhat.com>
3965
3966 * gnu-v3-abi.c: Include "gdb_assert.h".
3967 (build_gdb_vtable_type): Replace abort() with gdb_assert().
3968
3969 2001-06-06 Jim Blandy <jimb@redhat.com>
3970
3971 * cp-abi.h: Rearrange code to put documentation comments above the
3972 functions we export. The actual function table itself simply
3973 refers to those functions. Minor doc fixes.
3974
3975 * gdbarch.sh: Changes to effect the following:
3976 * gdbarch.c (initialize_non_multiarch): New function.
3977 * gdbarch.h (initialize_non_multiarch): New declaration.
3978 * arch-utils.c (initialize_current_architecture): For
3979 non-multiarch configurations, call initialize_non_multiarch.
3980
3981 2001-06-06 Andrew Cagney <ac131313@redhat.com>
3982
3983 * symfile.c (compare_psymbols): Replace PTR with void*. Delete
3984 declaration.
3985 (compare_symbols): Ditto.
3986
3987 2001-06-06 Jonathan Larmour <jlarmour@redhat.com>
3988
3989 * arch-utils.c (generic_prepare_to_proceed): Allow for having
3990 stopped due to a Ctrl-C as well as breakpoints.
3991
3992 * hppa-tdep.c (hppa_prepare_to_proceed): Add FIXME as this may not
3993 support thread switches after Ctrl-C.
3994 * lin-lwp.c (lin_lwp_prepare_to_proceed): Ditto.
3995 * linux-thread.c (linuxthreads_prepare_to_proceed): Ditto.
3996 * m3-nat.c (mach3_prepare_to_proceed): Ditto.
3997
3998 2001-06-06 Jim Blandy <jimb@redhat.com>
3999
4000 * gdbarch.sh, gdbarch.c: Revert change of 2001-06-01; all
4001 per-architecture data should be registered at initialization time,
4002 before any gdbarch objects get used, so the generality is
4003 unnecessary.
4004
4005 2001-06-06 Keith Seitz <keiths@redhat.com>
4006
4007 * gdb-events.sh (function_list): Add tracepoint_create,
4008 tracepoint_delete, and tracepoint_modify events.
4009 * gdb-events.c: Regenerated.
4010 * gdb-events.h: Regenerated.
4011
4012 2001-06-06 Keith Seitz <keiths@redhat.com>
4013
4014 * gdb-events.sh: Update copyrights.
4015 Change free to xfree.
4016 * gdb-events.c: Regenerated.
4017 * gdb-events.h: Regenerated.
4018
4019 2001-06-06 Eli Zaretskii <eliz@is.elta.co.il>
4020
4021 * source.c (mod_path, openp): Use #ifdef HAVE_DOS_BASED_FILE_SYSTEM
4022 instead of #if HAVE_DOS_BASED_FILE_SYSTEM.
4023 * completer.c: Ditto.
4024 * cli/cli-cmds.c (cd_command): Ditto.
4025
4026 2001-06-04 Eli Zaretskii <eliz@is.elta.co.il>
4027
4028 * mips-tdep.c (show_mipsfpu_command): Remove unused variable msg.
4029 (mips_set_processor_type_command): Remove unused variable j.
4030 (mips_breakpoint_from_pc): Declare breakpoint instruction
4031 sequences as unsigned char, to avoid compiler warnings.
4032
4033 * source.c (mod_path, openp): Use HAVE_DOS_BASED_FILE_SYSTEM
4034 instead of system-specific define's like _WIN32 and __MSDOS__.
4035 Use IS_DIR_SEPARATOR and IS_ABSOLUTE_PATH instead of SLASH_P and
4036 ROOTED_P.
4037 (top-level): #include "filenames.h".
4038
4039 * solib.c (solib_open): Use IS_DIR_SEPARATOR and IS_ABSOLUTE_PATH
4040 instead of SLASH_CHAR, ROOTED_P and SLASH_P.
4041 (top-level): #include "filenames.h".
4042
4043 * defs.h (SLASH_P, SLASH_CHAR, ROOTED_P): Remove definitions.
4044 (SLASH_STRING): Define only for _WIN32.
4045
4046 * completer.c: Use HAVE_DOS_BASED_FILE_SYSTEM instead of
4047 __MSDOS_.
4048
4049 * cli/cli-cmds.c (cd_command): Use IS_DIR_SEPARATOR and
4050 IS_ABSOLUTE_PATH instead of SLASH_P and ROOTED_P. Replace
4051 system-specific ifdefs with HAVE_DOS_BASED_FILE_SYSTEM.
4052 (top-level): #include "filenames.h".
4053
4054 * go32-nat.c (go32_wait): Change the return value to ptid_t.
4055
4056 * config/djgpp/fnchange.lst: Add two new files in the
4057 gdb/testsuite/gdb.c++/ directory to the remapped names.
4058
4059 * config/djgpp/djconfig.sh (lt_cv_sys_max_cmd_len): Set to 12KB.
4060
4061 2001-06-01 Jim Blandy <jimb@redhat.com>
4062
4063 Expand the gdbarch per-architecture data vector as needed, rather
4064 than requiring that all per-architecture data be registered before
4065 the first gdbarch object is allocated.
4066 * gdbarch.sh: Changes to effect the following:
4067 * gdbarch.c (alloc_gdbarch_data, init_gdbarch_data): Delete
4068 declarations and definitions.
4069 (check_gdbarch_data): New function, and declaration.
4070 (gdbarch_alloc): Don't call alloc_gdbarch_data; leaving the fields
4071 zero is good enough.
4072 (free_gdbarch_data): Tolerate a null data pointer. Free only
4073 those data items gdbarch->data actually has allocated.
4074 (set_gdbarch_data, gdbarch_data): Call check_gdbarch_data.
4075 (gdbarch_update_p): No need to call init_gdbarch_data.
4076
4077 2001-06-01 Kevin Buettner <kevinb@redhat.com>
4078
4079 * ia64-tdep.c (is_float_or_hfa_type_recurse): Call check_typedef()
4080 on types that we wish to recurse on.
4081 (slot_alignment_is_next_even): New function.
4082 (ia64_push_arguments): Call slot_alignment_is_next_even() to
4083 examine the type in order to decide if it's necessary to skip
4084 an odd slot.
4085
4086 2001-06-01 Michael Snyder <msnyder@redhat.com>
4087
4088 * thread.c (delete_step_resume_breakpoint): New function.
4089 Maintain internal consistency of the thread list while deleting
4090 a step_resume_breakpoint.
4091 * gdbthread.h (delete_step_resume_breakpoint): Export.
4092 * breakpoint.c (bpstat_find_step_resume_breakpoint):
4093 Make thread-aware: don't return a step_resume_breakpoint
4094 for the wrong thread.
4095 * infrun.c (wait_for_inferior): Call delete_step_resume_breakpoint
4096 instead of delete_breakpoint_current_contents.
4097 (fetch_inferior_event): Ditto.
4098 (handle_inferior_event): Call delete_step_resume_breakpoint
4099 instead of delete_breakpoint.
4100 * infrun.c (handle_inferior_event): After singlestepping over a
4101 thread-specific breakpoint, use currently_stepping() to decide
4102 whether to step or continue.
4103
4104 2001-06-01 Jim Blandy <jimb@redhat.com>
4105
4106 * gnu-v3-abi.c (gnu_v3_abi_ops, vtable_type_gdbarch_data): Make
4107 these static --- there's no reason other files should use these.
4108
4109 * partial-stab.h (case N_FUN: case 'f':, case N_FUN: case 'F':)
4110 Fix memory leak.
4111
4112 * partial-stab.h: New complaint: function_outside_compilation_unit.
4113 (case N_FUN: case 'f':, case N_FUN: case 'F':): If pst is zero,
4114 complain, and don't try to set pst's start address.
4115
4116 2001-05-31 Kevin Buettner <kevinb@redhat.com>
4117
4118 * ia64-linux-tdep.c (IA64_LINUX_SIGCONTEXT_OFFSET): Revise to
4119 match the location at which the kernel is placing the sigcontext
4120 struct.
4121
4122 * ia64-tdep.c (max_skip_non_prologue_insns): New static global.
4123 (refine_prologue_limit): New function.
4124 (examine_prologue): Further limit number of instructions
4125 scanned by calling refine_prologue_limit(). Revise way in
4126 which the end of prologue address is computed for frameless
4127 functions.
4128
4129 2001-05-29 Christopher Faylor <cgf@redhat.com>
4130
4131 * partial-stab.h: Revert previous patch.
4132
4133 2001-05-29 Christopher Faylor <cgf@redhat.com>
4134
4135 * partial-stab.h: Consistently guard against pst being NULL.
4136
4137 2001-05-29 Alexandre Oliva <aoliva@redhat.com>
4138
4139 * symfile.c (compare_psymbols, compare_symbols): Declare using
4140 PTR, as in the definition.
4141 * minsyms.c (compare_minimal_symbols): Likewise.
4142 * coffread.c (find_targ_sec): Likewise.
4143 * elfread.c (free_elfinfo, elf_locate_sections): Likewise.
4144 * mipsread.c (alphacoff_locate_sections): Likewise.
4145 * mdebugread.c (compare_blocks): Likewise.
4146
4147 2001-05-25 Nick Duffek <nsd@redhat.com>
4148
4149 * solib.c (update_solib_list): Move target_resize_to_sections()
4150 into solib_map_sections() loop.
4151 (info_sharedlibrary_command): Try bfd_arch_bits_per_address() if
4152 bfd_get_arch_size() fails.
4153
4154 2001-05-25 Nick Duffek <nsd@redhat.com>
4155
4156 * Makefile.in (osfsolib.c, osfsolib.o): Rename to solib-osf.c and
4157 solib-osf.o.
4158 * config/alpha/alpha-osf1.mh (NATDEPFILES): Replace osfsolib.o
4159 with solib-osf.o and solib.o.
4160 * config/alpha/alpha-osf2.mh: Likewise.
4161 * config/alpha/alpha-osf3.mh: Likewise.
4162 * solib-osf.c: New file, renamed and largely rewritten from
4163 osfsolib.c.
4164
4165 2001-05-25 Michael Snyder <msnyder@redhat.com>
4166
4167 * lin-lwp.c (lin_lwp_attach_lwp): Call stop_wait_callback,
4168 to consume the SIGSTOP generated by PTRACE_ATTACH.
4169 (stop_wait_callback): If a SIGTRAP or a SIGINT event is consumed,
4170 try again to get the SIGSTOP event.
4171 (lin_lwp_wait): Resume all threads when ignoring a signal.
4172 This will insure that newly attached threads get resumed.
4173 * lin-lwp.c (stop_wait_callback): Discard redundant SIGINT events.
4174 * remote.c (remote_write_bytes): Update 'p' packet pointer.
4175
4176 2001-05-25 Jim Blandy <jimb@redhat.com>
4177
4178 * gnu-v2-abi.c (gnuv2_virtual_fn_field): There's no need to clear
4179 VALUE_POINTED_TO_OFFSET here; if value_cast doesn't return a
4180 useful value, then we should fix that instead.
4181
4182 2001-05-24 Nick Duffek <nsd@redhat.com>
4183
4184 * solist.h (struct so_list): Document the requirement that
4185 current_sos initialize some fields to 0.
4186
4187 2001-05-24 Mark Kettenis <kettenis@gnu.org>
4188
4189 * gnu-nat.c: Include <ctype.h>.
4190 (gnu_pid_to_exec_file): Add PID parameter.
4191 (set_sig_thread_cmd): Use PIDGET on return value from
4192 thread_id_to_pid.
4193 (proc_string): Use MERGEPID to construct argument to
4194 pid_to_thread_id.
4195
4196 2001-05-22 Kevin Buettner <kevinb@redhat.com>
4197
4198 * breakpoint.c (breakpoint_address_is_meaningful): New function.
4199 (check_duplicates): Don't compare non-meaningful addresses.
4200
4201 2001-05-22 Michael Snyder <msnyder@redhat.com>
4202
4203 * thread-db.c: Allow for defunct zombie threads.
4204 (attach_thread): Do not attempt to attach zombie thread.
4205 (thread_db_thread_alive): Return false for defunct zombie thread.
4206 (find_new_threads_callback): Don't add defunct zombie thread to list.
4207
4208 2001-05-22 Jim Blandy <jimb@redhat.com>
4209
4210 Add support for the GNU V3 C++ ABI.
4211 (Includes changes by Dan Berlin.)
4212
4213 * gnu-v3-abi.c: New file.
4214 * minsyms.c: #include "value.h" and "cp-abi.h".
4215 (install_minimal_symbols): Check the minimal symbol table for
4216 symbols that look mangled in the V3 style, and select the V3 ABI
4217 if we find any.
4218 * Makefile.in (SFILES): Add gnu-v3-abi.c.
4219 (COMMON_OBS): Add gnu-v3-abi.o.
4220 (gnu-v3-abi.o): Add new rule.
4221 (minsyms.o): Depend on $(cp_abi_h) and $(value_h).
4222
4223 2001-05-21 Jim Blandy <jimb@redhat.com>
4224
4225 * values.c (value_primitive_field): If we're extracting a base
4226 class, then the type of the result should be the base class being
4227 extracted, not the type of which it is a base class.
4228
4229 * value.h (struct value): Doc fix, and rearrange members to place
4230 them near their explanations.
4231
4232 2001-05-21 Michael Snyder <msnyder@redhat.com>
4233
4234 * remote.c (remote_async_wait): Added new variable fieldsize.
4235 Add fieldsize (return value of hex2bin) to string pointer p.
4236
4237 2001-05-20 Stephane Carrez <Stephane.Carrez@worldnet.fr>
4238
4239 * m68hc11-tdep.c (m68hc11_pop_frame): Fix stack pointer computation.
4240 (m68hc11_analyze_instruction): Update the pc correctly.
4241 (m68hc11_guess_from_prologue): Take into account the stack correction
4242 for the saving address.
4243
4244 2001-05-07 Daniel Berlin <dan@cgsoftware.com>
4245
4246 Changes by Jim Ingham:
4247
4248 * values.c (value_change_enclosing_type): New function. If the
4249 new enclosing type is larger than the old one, we need to allocate
4250 more space.
4251 * value.h: Add value_change_enclosing_type prototype.
4252 * valops.c (value_cast): Use it.
4253 (value_assign): Use it.
4254 (value_addr): Use it.
4255 (value_ind): Use it.
4256 (value_full_object): Use it.
4257
4258 2001-05-07 Daniel Berlin <dan@cgsoftware.com>
4259
4260 * values.c (value_static_field): Handle static fields that have a
4261 constant value.
4262
4263 2001-05-17 Michael Snyder <msnyder@redhat.com>
4264
4265 * blockframe.c (create_new_frame): Zero all the fields via memset,
4266 rather than zeroing them one by one.
4267
4268 2001-05-17 Eli Zaretskii <eliz@is.elta.co.il>
4269
4270 * top.c (user_args): Remove unused declaration.
4271
4272 2001-05-16 Michael Snyder <msnyder@redhat.com>
4273
4274 * infcmd.c (do_registers_info): Move alloca outside of loop.
4275
4276 2001-05-15 John S Kallal <jskallal@home.com>
4277
4278 * remote.c (remote_wait): Added new variable fieldsize.
4279 Add fieldsize (return value of hex2bin) to string pointer p.
4280
4281 2001-05-15 Mark Kettenis <kettenis@gnu.org>
4282
4283 * sparc-tdep.c (sparc_gdbarch_init): Get the architecture from
4284 info.bfd_arch_info.
4285
4286 2001-05-14 Kevin Buettner <kevinb@redhat.com>
4287
4288 * lin-lwp.c (detach_callback, lin_lwp_wait, lin_lwp_pid_to_str):
4289 Adjust format strings for printing LWPs to account for the fact
4290 that the type returned by GET_LWP() is now a long instead of an
4291 int.
4292
4293 2001-05-14 Kevin Buettner <kevinb@redhat.com>
4294
4295 * inferior.h (null_ptid, minus_one_ptid): New variable declarations.
4296 (ptid_build, pid_to_ptid, ptid_get_pid, ptid_get_lwp)
4297 (ptid_get_tid, ptid_equal): New function declarations.
4298 * infrun.c (null_ptid, minus_one_ptid): New variables.
4299 (ptid_build, pid_to_ptid, ptid_get_pid, ptid_get_lwp)
4300 (ptid_get_tid, ptid_equal): New functions.
4301 (_initialize_infrun): Initialize null_ptid, minus_one_ptid,
4302 inferior_ptid, and target_last_wait_ptid.
4303
4304 * defs.h (ptid_t): Redefine to be a struct rather than an int.
4305 (pid_to_ptid, null_ptid, ptid_equal): Delete these macros.
4306 (PIDGET, TIDGET, MERGEPID): Redefine these macros using the
4307 new ptid accessors and constructor.
4308
4309 * config/i386/tm-i386v42mp.h (PIDGET, TIDGET, LIDGET, MERGEPID,
4310 MKLID, MKTID, ISTID): Provide new definitions for these macros.
4311 The old macros are retained, but disabled via #if 0 in order
4312 to aid in future restructuring. See FIXME.
4313
4314 * arm-linux-nat.c (PIDGET, TIDGET): Delete macro definitions.
4315 * i386-linux-nat.c (PIDGET, TIDGET): Likewise.
4316 * infptrace.c (PIDGET, TIDGET): Likewise.
4317 * lin-lwp.c (PIDGET0, PIDGET, TIDGET, MERGEPID): Likewise.
4318 * lin-thread.c (PIDGET0, PIDGET, TIDGET, MERGEPID): Likewise.
4319 * proc-service.c (MERGEPID): Likewise.
4320 * procfs.c (PIDGET, TIDGET, MERGEPID): Likewise.
4321 * thread-db.c (PIDGET0, PIDGET, TIDGET, MERGEPID): Likewise.
4322 * config/nm-linux.h (PIDGET0, PIDGET, TIDGET, MERGEPID): Likewise.
4323 * config/i386/tm-i386sol2.h (PIDGET0, PIDGET, TIDGET, MERGEPID):
4324 Likewise.
4325 * config/sparc/tm-sun4sol2.h (PIDGET0, PIDGET, TIDGET, MERGEPID):
4326 Likewise.
4327
4328 * lin-lwp.c (THREAD_FLAG): Delete macro definition.
4329 (GET_LWP): Redefine in terms of ptid_get_lwp().
4330 (GET_PID): Redefine in terms of ptid_get_pid().
4331 (is_lwp): Redefine without the need for THREAD_FLAG.
4332 (BUILD_LWP): Redefine in terms of ptid_build().
4333 * lin-thread.c (THREAD_FLAG): Delete macro definition.
4334 (GET_LWP): Redefine in terms of ptid_get_lwp().
4335 (GET_PID): Redefine in terms of ptid_get_pid().
4336 (GET_THREAD): Redefine in terms of ptid_get_tid().
4337 (BUILD_THREAD, BUILD_LWP): Redefine in terms of ptid_build().
4338 (is_lwp, is_thread): Redefine.
4339 (linux_child_wait, check_all_signal_numbers)
4340 (linuxthreads_discard_global_state, attach_thread): Declare these
4341 functions to squash warnings about missing declarations.
4342 * sol-thread.c (THREAD_FLAG): Delete macro definition.
4343 (GET_PID): Redefine in terms of ptid_get_pid().
4344 (GET_LWP): Redefine in terms of ptid_get_lwp().
4345 (GET_THREAD): Redefine in terms of ptid_get_tid().
4346 (BUILD_THREAD, BUILD_LWP): Redefine in terms of ptid_build().
4347 (is_lwp, is_thread): Redefine.
4348 * thread-db.c (THREAD_FLAG): Delete macro definition.
4349 (GET_PID): Redefine in terms of ptid_get_pid().
4350 (GET_LWP): Redefine in terms of ptid_get_lwp().
4351 (GET_THREAD): Redefine in terms of ptid_get_tid().
4352 (BUILD_THREAD, BUILD_LWP): Redefine in terms of ptid_build().
4353 (is_lwp, is_thread): Redefine.
4354
4355 * corelow.c (add_to_thread_list, get_core_register_section):
4356 Eliminate hacks needed to prevent regressions when inferior_ptid
4357 wasn't wide enough to hold the core file thread id in the pid
4358 component of inferior_ptid.
4359
4360 2001-05-14 Michael Snyder <msnyder@redhat.com>
4361
4362 * remote.c (hex2bin): Make first argument const.
4363 Require explicit count, don't accept null-terminated str.
4364 (remote_resume, remote_async_resume): White space fix-up.
4365 (remote_write_bytes): Set nr_bytes to return value of bin2hex.
4366
4367 2001-05-13 Mark Kettenis <kettenis@gnu.org>
4368
4369 * symtab.c (lookup_symtab_1): Use lbasename (NAME) instead of
4370 basename (NAME). The FreeBSD basename returns a pointer to a
4371 static buffer, even if it's simply returning a string identical to
4372 its argument.
4373 (lookup_partial_symtab): Likewise.
4374
4375 2001-05-14 Michael Snyder <msnyder@redhat.com>
4376
4377 * solib.c, solib.h: Add comment for function no_shared_libraries.
4378
4379 2001-05-14 Kevin Buettner <kevinb@redhat.com>
4380
4381 * solib.h (no_shared_libraries): Make declaration match definition
4382 in solib.c.
4383
4384 2001-05-14 Andrew Cagney <ac131313@redhat.com>
4385
4386 * remote.c (remote_write_bytes): Set nr_bytes before returning it.
4387 * solib.h (no_shared_libraries): Declare.
4388
4389 2001-05-12 Andrew Cagney <ac131313@redhat.com>
4390
4391 * gdbarch.sh (struct gdbarch_info): Delete field bfd_architecture.
4392 (gdbarch_update_p): Rewrite logic filling in INFO struct. Use
4393 user specified values when available.
4394 * rs6000-tdep.c (rs6000_gdbarch_init): Update. Get the
4395 architecture from info.bfd_arch_info.
4396 * gdbarch.c, gdbarch.h: Regenerate.
4397
4398 2001-05-12 Fernando Nasser <fnasser@redhat.com>
4399
4400 * remote-e7000.c (e7000_open): Check for bad baud rate.
4401 * remote-st.c (st2000_open): Ditto.
4402
4403 2001-05-11 Jim Blandy <jimb@redhat.com>
4404
4405 * thread.c (do_captured_list_thread_ids): Use ui_out_tuple_begin
4406 and ui_out_tuple_end instead of ui_out_list_begin and
4407 ui_out_list_end.
4408
4409 * Makefile.in (gnu-v2-abi.o): Add $(demangle_h) to list of
4410 dependencies. Reorder dependencies to match #includes in file,
4411 for easier verification.
4412
4413 Fri May 11 13:32:50 2001 Andrew Cagney <cagney@b1.cygnus.com>
4414
4415 * breakpoint.c: Replace ui_out_list_begin, ui_out_list_end and
4416 make_cleanup_ui_out_list_end with ui_out_tuple_begin,
4417 ui_out_tuple_end and make_cleanup_ui_out_tuple_begin_end.
4418 * cli/cli-setshow.c: Ditto.
4419 * printcmd.c: Ditto.
4420 * stack.c: Ditto.
4421
4422 * ui-out.h (enum ui_out_type): Fix tipo - tupple -> tuple.
4423 * ui-out.c (ui_out_list_begin): Delete ``lstid'' parameter.
4424 (ui_out_tuple_begin): New function.
4425 (ui_out_tuple_end): New function.
4426 (ui_out_tuple_begin_end): New function.
4427 (make_cleanup_ui_out_list_begin_end): Replace
4428 make_cleanup_ui_out_list_end function.
4429 * ui-out.h (ui_out_list_begin): Update declaration.
4430 (make_cleanup_ui_out_list_begin_end): Replace
4431 make_cleanup_ui_out_list_end declaration.
4432 (ui_out_tuple_begin, ui_out_tuple_end): Declare.
4433 (ui_out_tuple_begin_end): Declare.
4434
4435 2001-05-11 Jim Blandy <jimb@redhat.com>
4436
4437 * gnu-v2-abi.c: Don't #include "gdb_regex.h". We don't use it.
4438
4439 2001-05-11 Andrew Cagney <ac131313@redhat.com>
4440
4441 From 2001-03-26 Rodney Brown <RodneyBrown@mynd.com>
4442 * config/pa/tm-hppa.h: Remove trigraph.
4443 * hp-symtab-read.c (hpread_type_translate): Provide return value.
4444 (hpread_read_struct_type): Remove trigraph. Add parameter in
4445 `warning'.
4446 (hpread_read_array_type): Provide return value.
4447 (hpread_type_lookup): Avoid ambiguous `else'. Provide return
4448 value.
4449 * hppa-tdep.c (initialize_hp_cxx_exception_support): Remove
4450 trigraph.
4451
4452 2001-05-11 Jim Blandy <jimb@redhat.com>
4453
4454 * mips-tdep.c (mips_store_return_value,
4455 mips_extract_return_value): Pass arguments to
4456 return_value_location in the proper order.
4457
4458 2001-05-11 Andrew Cagney <ac131313@redhat.com>
4459
4460 * Makefile.in (VERSION): Delete. Moved to file ``version.in''.
4461 (version.c): Depends on file ``version.in''. Extract version
4462 number from ``version.in'' file.
4463 (clean mostlyclean): Update.
4464 * version.in: New file.
4465 * NEWS: Update.
4466
4467 2001-05-11 Kevin Buettner <kevinb@redhat.com>
4468
4469 * breakpoint.c (set_raw_breakpoint): Add new parameter
4470 representing the breakpoint's type. Adjust all callers.
4471 (create_longjmp_breakpoint, create_temp_exception_breakpoint)
4472 (create_thread_event_breakpoint): Don't test for zero return
4473 value from set_raw_breakpoint(). It can never be zero.
4474 (create_exception_catchpoint, watch_command_1): Move logic
4475 which calculates the breakpoint type prior to the call to
4476 set_raw_breakpoint().
4477
4478 2001-05-11 Fernando Nasser <fnasser@redhat.com>
4479
4480 * ser-unix.c (rate_to_code): Issue warning if baud rate is invalid.
4481 (hardwire_setbaudrate): Set errno to EINVAL and return with error
4482 if the conversion of the baud rate to code fails.
4483
4484 2001-05-10 Andrew Cagney <ac131313@redhat.com>
4485
4486 * ui-out.h (make_cleanup_ui_out_begin_end): Declare.
4487 * ui-out.c (struct ui_out_end_cleanup_data): Define.
4488 (do_cleanup_end): New function. Replace do_list_end.
4489 (make_cleanup_ui_out_end): New function.
4490 (make_cleanup_ui_out_begin_end): New function.
4491 (make_cleanup_ui_out_list_end): Use make_cleanup_ui_out_end.
4492
4493 2001-05-10 Elena Zannoni <ezannoni@redhat.com>
4494
4495 * MAINTAINERS: Declare xcoffread.c open to all maintainers,
4496 and make Kevin Buettner (kevinb@redhat.com) the reference person.
4497
4498 2001-05-10 Elena Zannoni <ezannoni@redhat.com>
4499
4500 * proc-api.c (ioctl_with_trace): Fix uninitialized variable.
4501
4502 2001-05-10 Fernando Nasser <fnasser@redhat.com>
4503
4504 * MAINTAINERS: Add testsuite subdirectory co-maintainers.
4505
4506 Thu May 10 16:26:47 2001 Andrew Cagney <cagney@b1.cygnus.com>
4507
4508 * Makefile.in (mi-main.o): Compile with -Werror.
4509
4510 2001-05-10 Michael Snyder <msnyder@redhat.com>
4511
4512 * remote.c (remote_open_1): Call no_shared_libraries, so that
4513 symbols for shared libraries can be reloaded per session.
4514 (remote_async_open_1): Ditto.
4515 * remote.c (bin2hex, hex2bin): New functions. Factor out these
4516 two conversions which are coded for repeatedly in this module.
4517 (remote_threads_extra_info, remote_wait, remote_async_wait,
4518 store_register_using_P, remote_store_registers, remote_write_bytes,
4519 remote_read_bytes, remote_rcmd): Use bin2hex and hex2bin instead
4520 of coding the conversions inline.
4521 (fromhex): Not exported, change from extern to static.
4522
4523 2001-05-10 Andrew Cagney <ac131313@redhat.com>
4524
4525 * arch-utils.c (initialize_current_architecture): Delete obsolete
4526 ``info architecture'' command.
4527 (info_architecture): Delete function.
4528
4529 2001-05-10 Andrew Cagney <ac131313@redhat.com>
4530
4531 * TODO (5.1, 5.2): Update.
4532
4533 2001-05-09 Andrew Cagney <ac131313@redhat.com>
4534
4535 * MAINTAINERS: Jim Ingham is no longer maintaining Arm related
4536 stuff.
4537
4538 2001-05-10 Keith Seitz <keiths@cygnus.com>
4539
4540 * Makefile.in (SUBDIR_GDBTK_OBS): Add gdbtk-bp.o, gdbtk-register.o
4541 and gdbtk-stack.o.
4542 (SUBDIR_GDBTK_SRCS): Ditto for the sources.
4543 (gdbtk-bp.o): New rule.
4544 (gdbtk-register.o): New rule.
4545 (gdbtk-stack.o): New rule.
4546 (gdbtk-cmds.o): Update dependencies.
4547 (gdbtk.o): Ditto.
4548 (gdbtk-hooks.o): Ditto.
4549 (gdbtk-varobj.o): Ditto.
4550
4551 2001-05-10 Fernando Nasser <fnasser@redhat.com>
4552
4553 * varobj.c (c_number_of_children): Fix memory leak. Delete unwanted old
4554 variables, not just unregister them.
4555
4556 2001-05-10 Fernando Nasser <fnasser@redhat.com>
4557
4558 * varobj.c (c_number_of_children): Check for target type of void*,
4559 not the target type name. Allow dereferencing char*.
4560
4561 2001-05-10 Fernando Nasser <fnasser@redhat.com>
4562
4563 * symfile.c (symbol_file_add_main_1): New static function.
4564 Passes the flags arguments to symbol_file_add() and takes care
4565 of any necessary reinitializations.
4566 (symbol_file_command): Call symbol_file_add_main_1() instead of
4567 symbol_file_add().
4568 (symbol_file_add_main): Ditto.
4569
4570 2001-05-09 Kevin Buettner <kevinb@redhat.com>
4571
4572 * lin-lwp.c (lin_lwp_pid_to_str): Revert inadvertent format
4573 string change in 2001-05-03 changes.
4574 (lin_lwp_wait): Revert GET_LWP coercion introduced in 2001-05-03
4575 changes.
4576
4577 2001-05-09 Kevin Buettner <kevinb@redhat.com>
4578
4579 * lin-lwp.c (lin_lwp_attach): Use PIDGET() to fetch the pid
4580 component from inferior_ptid.
4581 (lin_lwp_detach): Use pid_to_ptid() to convert from a pid to a
4582 ptid.
4583
4584 2001-05-09 Elena Zannoni <ezannoni@redhat.com>
4585
4586 * sh3-rom.c (_initialize_sh3_rom): Get rid of specific _WINDOWS
4587 conditional for help with connections through parallel ports,
4588 given that the actual code for downloading through a parallel port
4589 is not conditionalized.
4590
4591 * sh-tdep.c: Remove WIN32_WCE conditional. The wince sh target is
4592 unmaintaned, and probably on its way to obsolescence.
4593
4594 2001-05-09 Mark Kettenis <kettenis@gnu.org>
4595
4596 * i386-tdep.c (i386_frame_saved_pc): New function.
4597 * config/i386/tm-i386.h (FRAME_SAVED_PC): Redefine in terms of
4598 i386_frame_saved_pc.
4599 (i386_frame_saved_pc): New prototype.
4600
4601 * i386-tdep.c (i386_register_virtual_type): New function.
4602 (i386_register_convertible): New function.
4603 * config/i386/tm-i386.h (REGISTER_VIRTUAL_TYPE): Redefine in terms
4604 of i386_register_virtual_type.
4605 (REGISTER_CONVERTIBLE): Redefine in terms of
4606 i386_register_convertible.
4607 (i386_register_virtual_type, i386_register_convertible): New
4608 prototypes.
4609
4610 2001-05-08 Jim Blandy <jimb@redhat.com>
4611
4612 * Makefile.in (mn10300-tdep.o): New rule.
4613
4614 * Makefile.in (gdb_string_h): Define. Use it throughout.
4615 Some rules were already using this, even though it isn't defined.
4616
4617 * Makefile.in (obstack_h, target_h): Define; these are already
4618 used elsewhere, but have been expanding to the empty string.
4619 (memattr_h): Define; needed by target_h.
4620
4621 * mn10300-tdep.c (mn10300_extract_return_value): Mark this as
4622 static. (This was accidentally omitted from the earlier patch.)
4623
4624 * mn10300-tdep.c (mn10300_dwarf2_reg_to_regnum): New function.
4625 (mn10300_gdbarch_init): Register it as the architecture's
4626 dwarf2_reg_to_regnum method.
4627
4628 Correct and expand handling of `movm' instruction, and register
4629 saves in general.
4630 * config/mn10300/tm-mn10300.h (D0_REGNUM, A0_REGNUM, MDRQ_REGNUM,
4631 MCRH_REGNUM, MCRL_REGNUM, MCVF_REGNUM): New definitions.
4632 (enum movm_register_bits): New enum.
4633 * mn10300-tdep.c (set_movm_offsets): Use symbolic names for the
4634 bits, not hex literals. Handle the `other', `exreg0', and
4635 `exother' bits. Correct handling of `exreg1': it saves r4, r5,
4636 r6, and r7, not r2, r3, r4, and r5.
4637 (saved_regs_size): New function.
4638 (mn10300_frame_chain, mn10300_frame_saved_pc): Use it, instead
4639 of computing the same thing inline, incorrectly.
4640
4641 * mn10300-tdep.c (mn10300_gdbarch_init): We do have a
4642 dummy_breakpoint_offset; it's zero.
4643
4644 * mn10300-tdep.c (mn10300_pop_frame): Split the mn10300-specific
4645 stuff out into mn10300_pop_frame_regular, and use
4646 generic_pop_current_frame. This lets us share code, and also
4647 makes this function's prototype match that expected by gdbarch.
4648 Make this function static.
4649 (mn10300_pop_frame_regular): New function.
4650 (mn10300_gdbarch_init): Register mn10300_pop_frame as the
4651 gdbarch's pop_frame method.
4652 * config/mn10300/tm-mn10300.h (POP_FRAME): Delete definition.
4653 (mn10300_pop_frame): Delete declaration.
4654
4655 * mn10300-tdep.c (mn10300_saved_pc_after_call,
4656 mn10300_extract_return_value,
4657 mn10300_extract_struct_value_address, mn10300_store_return_value,
4658 mn10300_use_struct_convention, mn10300_breakpoint_from_pc,
4659 mn10300_frame_chain, mn10300_skip_prologue,
4660 mn10300_push_arguments, mn10300_push_return_address,
4661 mn10300_store_struct_return, mn10300_frame_saved_pc,
4662 mn10300_init_extra_frame_info, mn10300_frame_init_saved_regs):
4663 Make these functions static; they should only be visible to the
4664 outside world as gdbarch methods.
4665
4666 * config/mn10300/tm-mn10300.h (mn10300_find_callers_reg): Delete
4667 unused declaration.
4668
4669 * mn10300-tdep.c (mn10300_gdbarch_init): Put the gdbarch methods
4670 in some rational order.
4671
4672 * mn10300-tdep.c (mn10300_gdbarch_init): Rather than using
4673 generic_pc_in_call_dummy, use pc_in_call_dummy_at_entry_point.
4674
4675 Use gdbarch for most target parameters for the MN10300, rather
4676 than the tm-*.h file.
4677 * config/mn10300/tm-mn10300.h (MAX_REGISTER_VIRTUAL_SIZE,
4678 REGISTER_BYTES, FP_REGNUM, BREAKPOINT_FROM_PC,
4679 FUNCTION_START_OFFSET, DECR_PC_AFTER_BREAK, INNER_THAN,
4680 SAVED_PC_AFTER_CALL, INIT_EXTRA_FRAME_INFO, FRAME_INIT_SAVED_REGS,
4681 FRAME_CHAIN, FRAME_CHAIN_VALID, FRAME_SAVED_PC,
4682 EXTRACT_RETURN_VALUE, EXTRACT_STRUCT_VALUE_ADDRESS,
4683 STORE_RETURN_VALUE, STORE_STRUCT_RETURN, SKIP_PROLOGUE,
4684 FRAME_ARGS_SKIP, FRAME_ARGS_ADDRESS, FRAME_LOCALS_ADDRESS,
4685 FRAME_NUM_ARGS, POP_FRAME, USE_GENERIC_DUMMY_FRAMES, CALL_DUMMY,
4686 CALL_DUMMY_START_OFFSET, CALL_DUMMY_BREAKPOINT_OFFSET,
4687 CALL_DUMMY_LOCATION, FIX_CALL_DUMMY, CALL_DUMMY_ADDRESS,
4688 TARGET_READ_FP, PUSH_RETURN_ADDRESS, PUSH_DUMMY_FRAME,
4689 SAVE_DUMMY_FRAME_TOS, PUSH_ARGUMENTS, PC_IN_CALL_DUMMY,
4690 REG_STRUCT_HAS_ADDR, USE_STRUCT_CONVENTION, GET_SAVED_REGISTER):
4691 Delete definitions. We register gdbarch methods for these now.
4692 (struct frame_info, struct type, struct value): Delete forward
4693 declarations of these types; they're no longer necessary, since we
4694 don't have function declarations here any more.
4695 * mn10300-tdep.c: #include "arch-utils.h", to get declarations for
4696 some default gdbarch methods.
4697 (mn10300_store_struct_return): Return void, as expected by
4698 gdbarch.
4699 (mn10300_init_extra_frame_info): Take initial `fromleaf' argument,
4700 as expected by gdbarch.
4701 (mn10300_frame_init_saved_regs): Provide dummy definition for
4702 this, as required by gdbarch.
4703 (mn10300_gdbarch_init): Add mn10300_call_dummy_words, as expected
4704 by gdbarch. Register gdbarch methods or values for all the stuff
4705 removed from tm-10300.h, listed above.
4706
4707 2001-05-08 Andrew Cagney <ac131313@redhat.com>
4708
4709 * cli-out.c (cli_begin, cli_end): Replace cli_list_begin and
4710 cli_list_end.
4711 (cli_ui_out_impl): Update.
4712
4713 * ui-out.c (default_begin, default_end): Replace
4714 default_list_begin and default_list_end.
4715 (default_ui_out_impl): Update.
4716 (uo_begin, uo_end): Replace ou_list_begin and uo_list_end.
4717 (ui_out_begin, ui_out_end): Replace ui_out_list_begin and
4718 ui_out_list_end.
4719 (ui_out_list_begin, ui_out_list_end): New. Compatibility
4720 functions.
4721 (struct ui_out_level): Add field type.
4722 (push_level, pop_level): Update. Add type parameter.
4723
4724 * ui-out.h (enum ui_out_type): Declare.
4725 (ui_out_begin, ui_out_end): Declare.
4726 (ui_out_begin_ftype, ui_out_end_ftype): Replace list_begin_ftype
4727 and list_end_ftype.
4728 (struct ui_out_impl): Update.
4729
4730 2001-05-07 Andrew Cagney <ac131313@redhat.com>
4731
4732 * ui-out.h (list_begin_ftype, list_end_ftype): Rename argument
4733 ``list_flag'' to ``depth''.
4734 * ui-out.c (default_list_begin, default_list_end): Update.
4735 (uo_list_begin, uo_list_end): Update.
4736 (MAX_UI_OUT_LEVELS): Define.
4737 (struct ui_out_level): Define.
4738 (top-level): Include "gdb_assert.h".
4739 (struct ui_out): Add fields ``level'' and ``levels''. Delete
4740 fields ``list_flag'' and ``field_count''.
4741 (ui_out_new): Update.
4742 (verify_field_proper_position): Update.
4743 (current_level, push_level, pop_level): New functions.
4744 (ui_out_list_begin): Use push_level.
4745 (ui_out_list_end): Use pop_level.
4746 (ui_out_field_int): Use current_level.
4747 (ui_out_field_skip): Ditto.
4748 (ui_out_field_fmt): Ditto.
4749
4750 2001-05-08 Michael Snyder <msnyder@redhat.com>
4751
4752 * language.c (longest_local_hex_string_custom): Strlen test is
4753 inverted -- reverse the sense of the test.
4754
4755 2001-05-08 Mark Kettenis <kettenis@gnu.org>
4756
4757 * config/i386/tm-i386v.h (struct frame_info, struct
4758 frame_saved_regs): Remove declarations.
4759 (i386_frame_num_args): Remove prototype.
4760
4761 2001-05-07 Andrew Cagney <ac131313@redhat.com>
4762
4763 * MAINTAINERS: I'm no longer actively maintaining the mn10300
4764 target.
4765
4766 2001-05-04 Andrew Cagney <ac131313@redhat.com>
4767
4768 * main.c (captured_main): Delete #ifndef _WIN32 conditional for
4769 WinGDB.
4770
4771 2001-05-06 Kevin Buettner <kevinb@redhat.com>
4772
4773 * inferior.h (save_inferior_ptid): Declare.
4774 * infrun.c (save_inferior_ptid, restore_inferior_ptid): Define.
4775
4776 * hpux-thread.c (save_inferior_ptid, restore_inferior_ptid):
4777 Delete these functions.
4778 * lin-lwp.c (save_inferior_ptid, restore_inferior_ptid): Likewise.
4779 * lin-thread.c (save_inferior_ptid, restore_inferior_ptid): Likewise.
4780 * linux-thread.c (save_inferior_ptid, restore_inferior_ptid):
4781 Likewise.
4782 * proc-service.c (save_inferior_ptid, restore_inferior_ptid):
4783 Likewise.
4784 * sol-thread.c (save_inferior_ptid, restore_inferior_ptid): Likewise.
4785 * thread-db.c (save_inferior_ptid, restore_inferior_ptid): Likewise.
4786
4787 * somsolib.c (reset_inferior_ptid): Delete.
4788 (som_solib_remove_inferior_hook): Use save_inferior_ptid() to
4789 build the cleanup struct.
4790
4791 * breakpoint.c (reattach_breakpoints, detach_breakpoints): Use
4792 a cleanup to save/restore inferior_ptid.
4793
4794 2001-05-06 Mark Kettenis <kettenis@gnu.org>
4795
4796 Implement attach/detach for multi-threaded programs on Linux.
4797 * thread-db.c (keep_thread_db): Adjust comment.
4798 (deactivate_target): Removed.
4799 (thread_db_new_objfile): Don't call deactivate_target. Implement
4800 guts of deactivate_target inline instead.
4801 (attach_thread): Call ATTACH_LWP unconditionally if defined.
4802 (thread_db_attach): New function.
4803 (thread_db_detach): Don't call deactivate_target. Do necessary
4804 cleanup inline instead. Set inferior_ptid to LWP corresponding to
4805 the current user-level thread.
4806 (thread_db_kill): Set inferior_ptid to LWP corresponding to the
4807 current user-level thread.
4808 (thread_db_create_inferior): Deactivate target vector if
4809 KEEP_THREAD_DB is zero.
4810 (thread_db_mourn_inferior): Don't call deactivate_target. Do
4811 necessary cleanup inline instead.
4812 (init_thread_db_ops): Initialize to_attach field to
4813 thread_db_attach.
4814 * lin-lwp.c (lin_lwp_mourn_inferior): Remove prototype.
4815 (stop_wait_callback): Add prototype.
4816 (init_lwp_list): Add comment about when to re-initialize the LWP
4817 list.
4818 (lin_lwp_attach_lwp): Only call ptrace for cloned processes.
4819 Avoid adding publicates to the LWP list. Only mark an LWP as
4820 signalled if it doesn't correspond to a cloned process.
4821 (lin_lwp_attach): Add initial process to the LWP list. Make sure
4822 it's stopped and fake a SIGSTOP.
4823 (detach_callback): New function.
4824 (lin_lwp_detach): Implement.
4825 (lin_lwp_create_inferior): Don't re-initialize LWP list here.
4826 Call child_ops.to_create_inferior directly instead of via
4827 target_beneath local.
4828 (lin_lwp_mourn_inferior): Call child_ops.to_mourn_inferior
4829 directly instead of via target_beneath local.
4830
4831 2001-05-06 Eli Zaretskii <eliz@is.elta.co.il>
4832
4833 * symtab.c (lookup_symtab_1, lookup_partial_symtab): Use basename
4834 instead of non-portable search for `/'. Use FILENAME_CMP instead
4835 of STREQ, to account for case-insensitive filesystems.
4836 (top-level): #include "filenames.h".
4837
4838 2001-05-05 Jim Blandy <jimb@redhat.com>
4839
4840 * breakpoint.c (check_duplicates): Use the breakpoint's type, not
4841 its address, to decide whether it's a watchpoint or not. Zero
4842 is a valid code address.
4843 (update_breakpoints_after_exec): Admonishing comments.
4844 * breakpoint.h (struct breakpoint): Doc fixes.
4845
4846 * breakpoint.c (check_duplicates): Take a breakpoint object as an
4847 argument, rather than an address and section. All callers changed.
4848
4849 2001-05-03 Kevin Buettner <kevinb@redhat.com>
4850
4851 * defs.h (ptid_t): New typedef.
4852 (pid_to_ptid, null_ptid, minus_one_ptid, ptid_equal): New macros.
4853
4854 * a68v-nat.c, alphabsd-nat.c, arch-utils.c, arm-linux-nat.c,
4855 blockframe.c, breakpoint.c, breakpoint.h,
4856 config/i386/nm-i386sol2.h, config/i386/tm-i386sco5.h,
4857 config/ia64/nm-linux.h, config/m68k/nm-hp300bsd.h,
4858 config/mips/nm-irix4.h, config/mips/nm-irix5.h,
4859 config/pa/nm-hppah.h, config/pa/tm-hppa.h,
4860 config/rs6000/nm-rs6000.h, config/sparc/nm-sun4sol2.h,
4861 corelow.c, cxux-nat.c, d10v-tdep.c, dink32-rom.c,
4862 dve3900-rom.c, fork-child.c, frame.c, gnu-nat.c, go32-nat.c,
4863 hp300ux-nat.c, hppa-tdep.c, hppab-nat.c, hppah-nat.c,
4864 hpux-thread.c, i386-linux-nat.c, i386aix-nat.c, i386b-nat.c,
4865 i386bsd-nat.c, i386gnu-nat.c, i386mach-nat.c, i386nbsd-nat.c,
4866 infcmd.c, inferior.h, inflow.c, infptrace.c, infrun.c,
4867 inftarg.c, infttrace.c, lin-lwp.c, lin-thread.c,
4868 linux-thread.c, lynx-nat.c, m3-nat.c, m32r-rom.c,
4869 m68knbsd-nat.c, m88k-nat.c, mac-nat.c, mips-nat.c,
4870 mon960-rom.c, monitor.c, ns32knbsd-nat.c, ocd.c, ppc-bdm.c,
4871 ppcnbsd-nat.c, proc-service.c, procfs.c, ptx4-nat.c,
4872 regcache.c, remote-adapt.c, remote-array.c, remote-bug.c,
4873 remote-e7000.c, remote-es.c, remote-mips.c, remote-mm.c,
4874 remote-nindy.c, remote-os9k.c, remote-rdi.c, remote-rdp.c,
4875 remote-sds.c, remote-sim.c, remote-st.c, remote-udi.c,
4876 remote-vx.c, remote.c, rs6000-nat.c, sol-thread.c,
4877 solib-aix5.c, solib-svr4.c, somsolib.c, sparc-nat.c,
4878 standalone.c, sun3-nat.c, sun386-nat.c, symm-nat.c, target.c,
4879 target.h, thread-db.c, thread.c, top.c, ultra3-nat.c,
4880 uw-thread.c, v850ice.c, win32-nat.c, wince.c, xcoffsolib.c
4881 (inferior_pid): Rename to inferior_ptid everywhere - even in
4882 comments and obsolete ports. In cases where this variable
4883 really is supposed to be used as a process id, use PIDGET() to
4884 extract the process id component from inferior_ptid. The
4885 other cases, either involving other variables whose types had
4886 to be changed or functions whose signatures had to changed
4887 are listed separately below.
4888
4889 * arm-linux-nat.c (get_thread_id): Change type of argument
4890 representing a combined process/thread id from ``int'' to
4891 ``ptid_t''. Also change parameter name to ptid.
4892 * breakpoint.h, breakpoint.c (breakpoint_thread_match): Likewise.
4893 * corelow.c (core_file_thread_alive): Likewise.
4894 * d10v-tdep.c (d10v_read_pc, d10v_write_pc): Likewise.
4895 * defs.h (*target_wait_hook): Likewise.
4896 * gdbthread.h (thread_info, delete_thread, pid_to_thread_id)
4897 (find_thread_pid, save_infrun_state, load_infrun_state): Likewise.
4898 * gnu-nat.c (gnu_thread_alive, gnu_pid_to_str, gnu_wait)
4899 (gnu_resume): Likewise.
4900 * go32-nat.c (go32_wait, go32_resume): Likewise.
4901 * h8500-tdep.c (h8500_read_pc, h8500_write_pc): Likewise.
4902 * hppa-tdep.c (target_read_pc, target_write_pc): Likewise.
4903 * hppah-nat.c (child_pid_to_str, hppa_tid_to_str,
4904 (hppa_pid_or_tid_to_str, child_post_startup_inferior)
4905 (child_thread_alive): Likewise.
4906 * hpux-thread.c (hpux_thread_notice_signals, hpux_thread_alive)
4907 (hpux_pid_to_str, hpux_thread_wait, hpux_thread_resume): Likewise.
4908 * i386-linux-nat.c (child_resume): Likewise.
4909 * ia64-linux-nat.c (enable_watchpoints_in_psr, fetch_debug_register)
4910 (store_debug_register, fetch_debug_register_pair)
4911 (store_debug_register_pair, ia64_linux_insert_watchpoint)
4912 (ia64_linux_remove_watchpoint, ia64_linux_stopped_by_watchpoint):
4913 Likewise.
4914 * ia64-tdep.c (ia64_read_pc, ia64_write_pc): Likewise.
4915 * inferior.h (read_pc_pid, generic_target_read_pc, write_pc_pid)
4916 (generic_target_write_pc, ptrace_wait, child_resume)
4917 (get_last_target_status): Likewise.
4918 * infptrace.c (ptrace_wait, child_resume): Likewise.
4919 * inftarg.c (child_wait, child_post_wait, child_thread_live)
4920 (child_pid_to_str): Likewise.
4921 * infttrace.c (ptrace_wait, child_thread_alive, child_resume)
4922 (hppa_pid_or_tid_to_str, child_post_startup_inferior): Likewise.
4923 * lin-lwp.c (add_lwp, delete_lwp, find_lwp_pid, lin_lwp_attach_lwp)
4924 (lin_lwp_resume, lin_lwp_wait, lin_lwp_thread_alive)
4925 (lin_lwp_pid_to_str): Likewise.
4926 * lin-thread.c (thread_db_alive, thread_db_pid_to_str)
4927 (thread_db_resume, thread_db_wait): Likewise.
4928 * linux-thread.c (linuxthreads_thread_alive, linuxthreads_pid_to_str)
4929 (linuxthreads_resume, linuxthreads_wait): Likewise.
4930 * lynx-nat.c (child_wait, child_thread_alive, child_resume)
4931 (child_pid_to_str): Likewise.
4932 * m3-nat.c (mach_really_wait, m3_resume): Likewise.
4933 * mac-nat.c (child_wait, child_resume): Likewise.
4934 * mips-tdep.c (mips_read_pc): Likewise.
4935 * monitor.c (monitor_wait, monitor_resume): Likewise.
4936 * ocd.c, ocd.h (ocd_thread_alive, ocd_resume): Likewise.
4937 * ppc-bdm.c (bdm_ppc_wait): Likewise.
4938 * procfs.c (do_attach, procfs_wait, procfs_resume)
4939 (procfs_notice_signals, procfs_thread_alive, procfs_pid_to_str)
4940 (procfs_set_watchpoint, procfs_stopped_by_watchpoint)
4941 (procfs_find_LDT_entry): Likewise.
4942 * regcache.c (read_register_pid, read_signed_register_pid)
4943 (write_register_pid, generic_target_read_pc, read_pc_pid)
4944 (generic_target_write_pc, write_pc_pid): Likewise.
4945 * regcache.h (read_register_pid, read_signed_register_pid)
4946 (write_register_pid): Likewise.
4947 * remote-adapt.c (adapt_wait, adapt_resume): Likewise.
4948 * remote-array.c (array_wait, array_resume): Likewise.
4949 * remote-bug.c (bug_wait, bug_resume): Likewise.
4950 * remote-e7000.c (e7000_wait, e7000_resume): Likewise.
4951 * remote-eb.c (eb_wait, eb_resume): Likewise.
4952 * remote-es.c (es1800_wait, es1800_resume): Likewise.
4953 * remote-mips.c (mips_wait, mips_resume): Likewise.
4954 * remote-mm.c (mm_wait, mm_resume): Likewise.
4955 * remote-nindy.c (nindy_wait, nindy_resume): Likewise.
4956 * remote-os9k.c (rombug_wait, rombug_resume): Likewise.
4957 * remote-rdi.c (arm_rdi_wait, arm_rdi_resume): Likewise.
4958 * remote-rdp.c (remote_rdp_resume, remote_rdp_wait): Likewise.
4959 * remote-sds.c (sds_wait, sds_resume): Likewise.
4960 * remote-sim.c (gdbsim_wait, gdbsim_resume): Likewise.
4961 * remote-st.c (st2000_wait, st2000_resume): Likewise.
4962 * remote-udi.c (udi_wait, udi_resume): Likewise.
4963 * remote-vx.c (vx_wait, vx_resume): Likewise.
4964 * remote.c (remote_current_thread, remote_resume, remote_wait)
4965 (remote_async_resume, remote_async_wait, remote_cisco_wait)
4966 (remote_thread_alive): Likewise.
4967 * sol-thread.c (thread_to_lwp, lwp_to_thread, sol_thread_resume)
4968 (sol_thread_wait, sol_thread_notice_signals, sol_thread_alive)
4969 (solaris_pid_to_str): Likewise.
4970 * symm-nat.c (child_wait, child_resume): Likewise.
4971 * target.c (debug_to_resume, debug_to_wait, debug_to_post_wait)
4972 (debug_to_notice_signals, debug_to_thread_alive)
4973 (normal_target_post_startup_inferior, normal_pid_to_str)
4974 (debug_to_post_startup_inferior): Likewise.
4975 * target.h (to_resume, to_wait, to_post_wait)
4976 (to_post_startup_inferior, to_notice_signals, to_thread_alive)
4977 (to_pid_to_str [all in struct target_ops]): Likewise.
4978 (child_post_wait, child_thread_alive, normal_pid_to_str): Likewise.
4979 * thread-db.c (thread_from_lwp, lwp_from_thread, thread_db_wait)
4980 (attach_thread, detach_thread, thread_db_resume, check_event)
4981 (thread_db_post_startup_inferior, thread_db_thread_alive)
4982 (thread_db_pid_to_str): Likewise.
4983 * thread.c (add_thread, delete_thread, find_thread_pid)
4984 (pid_to_thread_id, in_thread_list, load_infrun_state)
4985 (save_infrun_state, switch_to_thread, restore_current_thread)
4986 (make_cleanup_restore_current_thread): Likewise.
4987 * top.c (target_wait_hook): Likewise.
4988 * uw-thread.c (dbgpid, thr_to_lwp, lwp_to_thr, add_thread_uw)
4989 (uw_thread_resume, libtrhead_stub, uw_thread_wait, uw_thread_alive)
4990 (uw_thread_pid_to_str): Likewise.
4991 * v850ice.c (v850ice_wait, v850ice_resume): Likewise.
4992 * win32-nat.c (child_wait, child_resume, win32_child_thread_alive)
4993 (cywin_pid_to_str): Likewise.
4994 * wince.c (child_wait, child_resume, win32_child_thread_alive):
4995 Likewise.
4996 * config/nm-linux.h (linuxthreads_pid_to_str): Likewise.
4997 * config/nm-lynx.h (child_wait, lynx_pid_to_str): Likewise.
4998 * config/alpha/nm-linux.h (lin_lwp_attach_lwp): Likewise.
4999 * config/arm/nm-linux.h (lin_lwp_attach_lwp): Likewise.
5000 * config/h8500/tm-h8500.h (h8500_read_pc, h8500_write_pc): Likewise.
5001 * config/i386/nm-i386sol2.h (procfs_stopped_by_watchpoint)
5002 (procfs_set_watchpoint): Likewise.
5003 * config/i386/nm-linux.h (lin_lwp_attach_lwp): Likewise.
5004 * config/i386/nm-ptx4.h (child_wait): Likewise.
5005 * config/i386/nm-symmetry.h (child_wait): Likewise.
5006 * config/i386/tm-cygwin.h (cygwin_pid_to_str): Likewise.
5007 * config/ia64/nm-linux.h (ia64_linux_stopped_by_watchpoint)
5008 (ia64_linux_insert_watchpoint, ia64_linux_remove_watchpoint)
5009 (lin_lwp_attach_lwp): Likewise.
5010 * config/mips/nm-irix4.h, config/mips/nm-irix5.h
5011 (procfs_stopped_by_watchpoint, procfs_set_watchpoint): Likewise.
5012 * config/pa/nm-hppah.h (child_pid_to_str, hppa_tid_to_str)
5013 (hppa_pid_or_tid_to_str): Likewise.
5014 * config/pa/tm-hppa.h (target_read_pc, target_write_pc): Likewise.
5015 * config/powerpc/nm-linux.h (lin_lwp_attach_lwp): Likewise.
5016 * config/sparc/nm-sun4sol2.h (procfs_stopped_by_watchpoint)
5017 (procfs_set_watchpoint): Likewise.
5018
5019 * gdbthread.h (thread_id_to_pid): Change return type which
5020 represents a combined process/thread id from ``int'' to
5021 ``ptid_t''.
5022 * gnu-nat.c (gnu_wait): Likewise.
5023 * go32-nat.c (go32_wait): Likewise.
5024 * hpux-thread.c (hpux_thread_wait): Likewise.
5025 * inferior.h (procfs_first_available): Likewise.
5026 * inftarg.c (child_wait): Likewise.
5027 * infttrace.c (ptrace_wait): Likewise.
5028 * lin-lwp.c (lin_lwp_wait): Likewise.
5029 * lin-thread.c (thread_db_wait): Likewise.
5030 * linux-thread.c (linuxthreads_wait): Likewise.
5031 * lynx-nat.c (child_wait): Likewise.
5032 * m3-nat.c (mach_really_wait): Likewise.
5033 * mac-nat.c (child_wait): Likewise.
5034 * monitor.c (monitor_wait): Likewise.
5035 * ppc-bdm.c (bdm_ppc_wait): Likewise.
5036 * procfs.c (do_attach, procfs_wait, procfs_first_available): Likewise.
5037 * remote-adapt.c (adapt_wait): Likewise.
5038 * remote-array.c (array_wait): Likewise.
5039 * remote-bug.c (bug_wait): Likewise.
5040 * remote-e7000.c (e7000_wait): Likewise.
5041 * remote-eb.c (eb_wait): Likewise.
5042 * remote-es.c (es1800_wait): Likewise.
5043 * remote-mips.c (mips_wait): Likewise.
5044 * remote-mm.c (mm_wait): Likewise.
5045 * remote-nindy.c (nindy_wait): Likewise.
5046 * remote-os9k (rombug_wait): Likewise.
5047 * remote-rdi.c (arm_rdi_wait): Likewise.
5048 * remote-rdp.c (remote_rdp_wait): Likewise.
5049 * remote-sds.c (sds_wait): Likewise.
5050 * remote-sim.c (gdbsim_wait): Likewise.
5051 * remote-st.c (st2000_wait): Likewise.
5052 * remote-udi.c (udi_wait): Likewise.
5053 * remote-vx.c (vx_wait): Likewise.
5054 * remote.c (remote_wait, remote_async_wait, remote_current_thread)
5055 (remote_cisco_wait): Likewise.
5056 * sol-thread.c (thread_to_lwp, lwp_to_thread, sol_thread_wait):
5057 Likewise.
5058 * symm-nat.c (child_wait): Likewise.
5059 * target.c (debug_to_wait): Likewise.
5060 * target.h (to_wait [in struct target_ops]): Likewise.
5061 * thread.c (thread_id_to_pid): Likewise.
5062 * thread-db.c (thread_from_lwp, lwp_from_thread, thread_db_wait):
5063 Likewise.
5064 * top.c (*target_wait_hook): Likewise.
5065 * uw-thread.c (lwp_to_thr, uw_thread_wait): Likewise.
5066 * v850ice.c (v850ice_wait): Likewise.
5067 * win32-nat.c (child_wait): Likewise.
5068 * wince.c (child_wait): Likewise.
5069 * config/nm-lynx.h (child_wait): Likewise.
5070 * config/i386/nm-ptx4.h (child_wait): Likewise.
5071 * config/i386/nm-symmetry.h (child_wait): Likewise.
5072
5073 * arch-utils.c (generic_prepare_to_proceed): Rename wait_pid
5074 to wait_ptid and change its type from ``int'' to ``ptid_t''.
5075 * breakpoint.c (reattach_breakpoints, detach_breakpoints): Likewise,
5076 but rename saved_inferior_pid to saved_inferior_ptid.
5077 * d10v-tdep.c (d10v_read_pc, d10_write_pc): Likewise, but rename
5078 save_pid to save_ptid.
5079 * gdbthread.h (struct thread_info): Likewise, but rename pid to ptid.
5080 * hppah-nat.c (child_pid_to_exec): Likewise, but rename
5081 saved_inferior_pid to saved_inferior_ptid.
5082 * hpux-thread.c (main_ptid): Likewise, but rename from main_pid.
5083 * infrun.c (previous_inferior_pid [static global]): Likewise,
5084 but rename to previous_inferior_ptid.
5085 (resume): Likewise, but rename resume_pid to resume_ptid.
5086 (struct execution_control_state): Likewise, but rename
5087 pid to ptid, saved_inferior_pid to saved_inferior_ptid,
5088 and waiton_pid to waiton_ptid.
5089 (target_last_wait_pid): Likewise, but rename to
5090 target_last_wait_ptid.
5091 * infttrace.c (saved_real_pid): Likewise, but rename to
5092 saved_real_ptid.
5093 (child_pid_to_exec_file): Likewise, but rename saved_inferior_pid
5094 to saved_inferior_ptid.
5095 * lin-lwp.c (struct lwp_info): Likewise, but rename pid to ptid.
5096 (trap_ptid): Likewise, but renamed from trap_pid.
5097 * lin-thread.c (handle_new_thread): Likewise, but rename gdb_pid
5098 to gdb_ptid.
5099 * linux-thread.c (detach_thread): Likewise, but rename pid to ptid.
5100 (thread_db_wait): Likewise, but rename ret_pid to retptid.
5101 * procfs.c (procfs_wait): Likewise, for retval whose name
5102 doesn't change. Also, ``temp'' becomes two separate variables,
5103 one named temp_tid (an int) and the other temp_ptid.
5104 (procfs_notice_thread): Likewise (type change) for gdb_threadid
5105 whose name does not change.
5106 * regcache.c (registers_ptid): Likewise, but renamed from
5107 registers_pid.
5108 (read_register_pid, read_signed_register_pid, write_register_pid):
5109 Likewise, but rename save_pid to save_ptid.
5110 (read_pc_pid, write_pc_pid): Likewise, but rename saved_inferior_pid
5111 to saved_inferior_ptid.
5112 * remote.c (remote_newthread_step): Likewise, but rename pid to ptid.
5113 * sol-thread.c (struct ps_prochandle): Likewise.
5114 (sol_thread_resume): Likewise, for save_pid which becomes save_ptid.
5115 (sol_thread_wait): Likewise, for rtnval whose name does not
5116 change, and for save_pid which becomes save_ptid.
5117 (solaris_pid_to_str): Likewise for lwp whose name does not change.
5118 (sol_find_new_threads_callback): Likewise, for pid which becomes
5119 ptid.
5120 * target.h (target_resume, target_wait, target_post_wait)
5121 (target_post_startup_inferior, target_notice_signals)
5122 (target_thread_alive): Likewise.
5123 * thread.c (info_threads_command): Likewise, but rename
5124 current_pid to current_ptid.
5125 (struct current_thread_cleanup): Likewise, but rename field
5126 inferior_pid to inferior_ptid.
5127 * thread-db.c (find_new_threads_callback): Likewise, but rename
5128 pid to ptid.
5129 * uw-thread.c (thr_to_lwp): Likewise for lid whose name does not
5130 change.
5131 (lwp_to_tr): Likewise fo tid whose name remains unchanged.
5132 (thr_infpid, lwp_infpid, notice_thread, libthread_stub): Likewise,
5133 but rename pid to ptid.
5134 * config/alpha/nm-linux.h (ATTACH_LWP): Likewise.
5135 * config/arm/nm-linux.h (ATTACH_LWP): Likewise.
5136 * config/i386/nm-linux.h (ATTACH_LWP): Likewise.
5137 * config/ia64/nm-linux.h (ATTACH_LWP): Likewise.
5138 * config/pa/nm-hppah.h (target_tid_to_str): Likewise.
5139 * config/powerpc/nm-linux.h (ATTACH_LWP): Likewise.
5140
5141 * arch-utils.c (generic_prepare_to_proceed): Test for the
5142 "zero" ptid by using ptid_equal() to test to see if variable
5143 in question is the same as null_ptid. This replaces a direct
5144 test against zero.
5145 * cxux-nat.c (add_shared_symbol_files): Likewise.
5146 * i386aix-nat.c, i386b-nat.c (i386_float_info): Likewise.
5147 * infcmd.c (run_command): Likewise.
5148 * inflow.c (kill_command): Likewise.
5149 * infttrace.c (call_ttrace): Likewise.
5150 * lin-lwp.c (lin_lwp_prepare_to_proceed): Likewise.
5151 * lin-thread.c (thread_db_kill): Likewise.
5152 * procfs.c (procfs_kill_inferior, procfs_mourn_inferior): Likewise.
5153 * remote-es.c (es1800_kill): Likewise.
5154 * sol-thread.c (sol_thread_create_inferior): Likewise.
5155 * solib.c (locate_base): Likewise.
5156 * target.c (nosupport_runtime): Likewise.
5157 * thread-db.c (thread_db_wait): Likewise.
5158 * top.c (quit_confirm, quit_force): Likewise.
5159 * uw-thread (lwp_infpid, uw_thread_resume): Likewise.
5160
5161 * infrun.c (handle_inferior_event, stop_stepping, normal_stop):
5162 Use ptid_equal to compare value of process/thread ids instead of
5163 ``=='' and ``!='' operators.
5164 lin-lwp.c (delete_lwp, lin_lwp_prepare_to_proceed)
5165 (stop_wait_callback, lin_lwp_wait): Likewise.
5166 * procfs.c (procfs_wait): Likewise.
5167 * regcache.c (read_register_bytes, read_register_gen)
5168 (write_register_gen, read_register, read_register_pid)
5169 (read_signed_register, read_signed_register_pid, write_register)
5170 (write_register_pid, supply_register): Likewise.
5171 * remote-vx.c (vx_resume): Likewise.
5172 * sol-thread.c (sol_thread_wait): Likewise.
5173 * symm-nat.c (kill_inferior): Likewise.
5174 * thread.c (delete_thread, find_thread_pid, pid_to_thread_id)
5175 (in_thread_list, info_threads_command, switch_to_thread)
5176 (restore_current_thread): Likewise.
5177 * uw-thread (libtread_stub): Likewise.
5178
5179 * arm-linux-nat.c (GET_THREAD_ID): Change PID to PTID.
5180
5181 * corelow.c (add_to_thread_list): Convert argument in add_thread()
5182 call to a ptid_t.
5183 * gnu-nat.c (inf_validate_procs): Likewise.
5184 * linux-thread.c (stop_thread, update_stop_threads): Likewise.
5185 * remote.c (record_currthread, remote_threads_info): Likewise.
5186 * win32-nat.c (child_add_thread): Likewise.
5187
5188 * hpux-thread.c (save_inferior_pid, restore_inferior_pid): Rename,
5189 respectively, to save_inferior_ptid() and restore_inferior_ptid().
5190 Adjust implementations to operate on ``ptid_t'' instead of ``int''.
5191 * lin-lwp.c (save_inferior_pid, restore_inferior_pid): Likewise.
5192 * lin-thread.c (save_inferior_pid, restore_inferior_pid): Likewise.
5193 * linux-thread.c (save_inferior_pid, restore_inferior_pid): Likewise.
5194 * proc-service.c (save_inferior_pid, restore_inferior_pid): Likewise.
5195 * sol-thread.c (save_inferior_pid, restore_inferior_pid): Likewise.
5196 * thread-db.c (save_inferior_pid, restore_inferior_pid): Likewise.
5197
5198 * infrun.c (RESUME_ALL): New macro representing the -1 ptid
5199 to be passed to target_resume() when all threads should resume.
5200 (resume): Set resume_ptid to RESUME_ALL rather than -1.
5201 (handle_inferior_event): Invoke target_resume() with RESUME_ALL
5202 instead of -1.
5203 * irix5-nat.c (solib_create_inferior_hook): Convert -1 to
5204 a ptid_t in target_resume() call.
5205 * osfsolib.c (solib_create_inferior_hook): Likewise.
5206 * solib-svr4.c (solib_create_inferior_hook): Likewise.
5207
5208 * lin-lwp.c (PIDGET, PIDGET0): Rename original PIDGET macro to
5209 PIDGET0. Define new PIDGET macro which uses PIDGET0, the only
5210 difference being that the 0xffff pattern will be interpreted
5211 as -1.
5212 * lin-thread.c (PIDGET, PIDGET0): Likewise.
5213 * thread-db.c (PIDGET, PIDGET0): Likewise.
5214 * config/nm-linux.h (PIDGET, PIDGET0): Likewise.
5215 * config/i386/tm-i386sol2.h (PIDGET, PIDGET0): Likewise.
5216 * config/i386/tm-i386v42mp.h (PIDGET, PIDGET0): Likewise.
5217 * config/sparc/tm-sun4sol2.h (PIDGET, PIDGET0): Likewise.
5218
5219 * m3-nat.c (init_m3_ops): Fix typo; initialize to_wait field to
5220 mach_really_wait rather than mach_really__wait.
5221 * lin-thread.c (check_for_thread_event): Fix warning; make function
5222 actually return a value.
5223
5224 * gdbarch.sh (TARGET_READ_PC, TARGET_WRITE_PC): Change type of
5225 ``pid'' arguments from ``int'' to ``ptid_t''. Also renamed
5226 pid to ptid.
5227 * gdbarch.h, gdbarch.c: Regenerated.
5228
5229 2001-05-03 Jonathan Larmour <jlarmour@redhat.com>
5230
5231 * rdi-share/devsw.c: Include <time.h> for struct tm
5232
5233 2001-05-03 Eli Zaretskii <eliz@is.elta.co.il>
5234
5235 * config/djgpp/fnchange.lst: Add mappings for the new
5236 opcodes/openrisc-* files.
5237
5238 2001-05-01 Michael Snyder <msnyder@redhat.com>
5239
5240 * lin-lwp.c: Change printf to fprintf_unfiltered.
5241 * Makefile.in: Add rules for thread-db.o, lin-lwp.o, proc-service.o.
5242
5243 2001-05-01 Nicholas Duffek <nsd@redhat.com>
5244
5245 * config/rs6000/tm-rs6000.h (IN_SOLIB_RETURN_TRAMPOLINE): Define.
5246 (rs6000_in_solib_return_trampoline): Declare.
5247 * rs6000-tdep.c (rs6000_in_solib_return_trampoline): New
5248 function.
5249 (rs6000_skip_trampoline_code): Skip bigtoc fixup code.
5250 * xcoffread.c (read_xcoff_symtab): Perform the ISFCN function
5251 check after the CSECT check rather than before it. Allocate
5252 separate symtabs for CSECTs whose names begin with '@'.
5253 (scan_xcoff_symtab): Don't ignore symbols beginning with '@'.
5254 Activate the misc_func_recorded mechanism for whose names begin
5255 with '@'.
5256
5257 2001-04-30 J.T. Conklin <jtc@redback.com>
5258
5259 * ppcnbsd-nat.c (fetch_inferior_registers)
5260 (store_inferior_registers, fetch_core_registers): Changed to use
5261 fpreg[] instead of r_regs[] to access floating point registers.
5262
5263 2001-04-30 Elena Zannoni <ezannoni@redhat.com>
5264
5265 * sh-tdep.c: Get rid of the function prototypes.
5266 (sh_sh4_build_float_register_type): Move earlier in file.
5267 (fv_reg_base_num): Ditto.
5268 (dr_reg_base_num): Ditto.
5269
5270 2001-04-30 Michael Snyder <msnyder@redhat.com>
5271
5272 * thread-db.c: Revert 2001-04-26 change for debugging output.
5273 * lin-lwp.c: Ditto.
5274 * lin-lwp.c: Add set/show debug lin-lwp command. Use this
5275 command to turn extra debugging output on / off.
5276
5277 2001-04-30 Eli Zaretskii <eliz@is.elta.co.il>
5278
5279 * buildsym.c (start_subfile): Use FILENAME_CMP instead of STREQ.
5280 (top-level): #include filenames.h.
5281
5282 * dwarf2read.c (dwarf2_start_subfile): Use IS_ABSOLUTE_PATH and
5283 FILENAME_CMP, to DTRT on non-Posix platforms.
5284 (top-level): #include filenames.h.
5285
5286
5287 2001-04-27 Andrew Cagney <ac131313@redhat.com>
5288
5289 * gdbtypes.c (check_stub_method): Always initialize ``p''.
5290
5291 2001-04-27 Andrew Cagney <ac131313@redhat.com>
5292
5293 * configure.host: Delete romp host.
5294 * TODO: Update.
5295
5296 2001-04-27 Andrew Cagney <ac131313@redhat.com>
5297
5298 * TODO: Updates to 5.1. No more targets to obsolete.
5299
5300 2001-04-27 Don Howard <dhoward@redhat.com>
5301
5302 (Changes from Kevin Buettner, with minor update by Don Howard.)
5303
5304 * i387-nat.c (i387_supply_fxsave, i387_fill_fxsave, i387_tag): Fix
5305 typos in which hexadecimal constants were really intended to be
5306 binary constants.
5307 (i387_tag): Swap logic regarding zero vs non-zero exponents.
5308 * MAINTAINERS (Misc): Added myself to the write-after-approval
5309 list.
5310
5311 2001-04-26 Jim Blandy <jimb@redhat.com>
5312
5313 (Changes from Daniel Berlin, with revisions by Jim Blandy.)
5314
5315 Abstract out operations specific to particular C++ ABI's, and
5316 invoke them through a function table. This removes the C++ ABI
5317 dependencies scattered throughout the code, and allows us to
5318 cleanly add support for new C++ ABI's.
5319 * cp-abi.h, cp-abi.h, gnu-v2-abi.c, hpacc-abi.c: New files.
5320 * c-typeprint.c, c-valprint.c, dbxread.c, eval.c, gdbtypes.c,
5321 jv-typeprint.c, linespec.c, symtab.c, typeprint.c, valops.c:
5322 #include "cp-abi.h". These files all use functions now declared
5323 there.
5324 * symtab.h (OPNAME_PREFIX_P, VTBL_PREFIX_P, DESTRUCTOR_PREFIX_P):
5325 Deleted. These services are now provided by functions declared in
5326 cp-abi.h.
5327 * value.h (value_rtti_type, value_virtual_fn_field): Same.
5328 * values.c (value_virtual_fn_field): Same, for this definition.
5329 * valops.c (value_rtti_type): Same.
5330 * c-typeprint.c (c_type_print_base): Use the functions from
5331 "cp-abi.h", instead of the old macros, or hard-coded ABI-specific
5332 tests.
5333 * dbxread.c (record_minimal_symbol): Same.
5334 * gdbtypes.c (get_destructor_fn_field, virtual_base_index,
5335 virtual_base_index_skip_primaries): Same.
5336 * jv-typeprint.c (java_type_print_base): Same.
5337 * linespec.c (find_methods, decode_line_1): Same.
5338 * symtab.c (gdb_mangle_name): Same.
5339 * Makefile.in (SFILES): Add the new .c files mentioned above.
5340 (cp_abi_h): New variable.
5341 (COMMON_OBS): Add gnu-v2-abi.o, hpacc-abi.o, and cp-abi.o.
5342 (cp-abi.o, gnu-v2-abi.o, hpacc-abi.o): New targets.
5343 (c-typeprint.o, c-valprint.o, dbxread.o, eval.o, gdbtypes.o,
5344 jv-typeprint.o, symtab.o, linespec.o, typeprint.o, valops.o): Add
5345 dependency on $(cp_abi_h).
5346
5347 2001-04-26 Michael Snyder <msnyder@redhat.com>
5348
5349 * thread-db.c (_initialize_thread_db): Add set/show command
5350 "debug-linux-threads" for debugging output.
5351 * lin-lwp.c (various): Use global "debug_linux_threads to
5352 turn on extra debugging output.
5353 * lin-lwp.c: Minor cleanups in comments.
5354 * target.c (normal_pid_to_str): Get rid of an ancient hack.
5355 * remote.c (remote_pid_to_str): New function for remote target.
5356
5357 2001-04-24 Jim Blandy <jimb@redhat.com>
5358
5359 * c-typeprint.c (c_type_print_cv_qualifier): Don't print `const'
5360 qualifier on C++ references; all references are innately const.
5361
5362 2001-04-20 Mark Kettenis <kettenis@gnu.org>
5363
5364 * event-top.h: Fix formatting.
5365
5366 2001-04-17 Andrew Cagney <ac131313@redhat.com>
5367
5368 * source.c (openp): Obsolete #ifdef MPW code.
5369 (open_source_file): Ditto.
5370 * event-top.c (display_gdb_prompt): Ditto.
5371 * utils.c (query): Ditto.
5372 (init_page_info): Ditto.
5373 (init_page_info): Delete #ifndef MPW.
5374 * top.c (gdb_readline): Ditto.
5375 * mac-xdep.c: Obsolete.
5376 * mac-gdb.r: Obsolete.
5377 * config/powerpc/xm-mpw.h: Obsolete.
5378 * config/xm-mpw.h: Obsolete.
5379 * mpw-make.sed: Obsolete.
5380 * mpw-config.in: Obsolete.
5381 * TODO: Update
5382 * NEWS: Update
5383
5384 2001-04-19 Mark Kettenis <kettenis@gnu.org>
5385
5386 * i386-tdep.c (i386_frameless_function_invocation): New function.
5387 * config/i386/tm-i386.h (FRAMELESS_FUNCTION_INVOCATION): Redefine
5388 in terms of i386_frameless_function_invocation. Adjust comment.
5389 (i386_frameless_function_invocation): New prototype.
5390
5391 2001-04-18 Martin M. Hunt <hunt@redhat.com>
5392
5393 * top.c (gdb_init): Don't call cli_out_new() to
5394 create global uiout if init_ui_hook is set. uiout will
5395 have to be initialized there.
5396
5397 2001-04-18 Andrew Cagney <ac131313@redhat.com>
5398
5399 * arch-utils.c: Include "regcache.h".
5400
5401 2001-04-18 Mark Kettenis <kettenis@gnu.org>
5402
5403 * i386-tdep.c (i386_saved_pc_after_call): New function.
5404 * config/i386/tm-i386.h (SAVED_PC_AFTER_CALL): Redefine in terms
5405 of i386_saved_pc_after_call.
5406 (i386_saved_pc_after_call): New prototype.
5407
5408 2001-04-17 Michael Snyder <msnyder@redhat.com>
5409
5410 * i386-nat.c: Fix typo in comment.
5411 * solib.c (no_shared_libraries): New function. Discard all symbols
5412 from shared libraries.
5413 (_initialize_solib): Add command "nosharedlibrary" as complement
5414 to the command "sharedlibrary". Unloads symbols for all solibs.
5415
5416 2001-04-16 Andrew Cagney <ac131313@redhat.com>
5417
5418 * configure.host (m68030-sony-*, m68*-isi-*, m68*-sony-*):
5419 * configure.tgt (m68*-rom68k-*, m68*-*bug-*, m68*-monitor-*)
5420 (m68*-est-*, m68*-sony-*, m68*-isi-*):
5421 * Makefile.in (xm-news1000.h, tm-news.h, xm-news.h): Obsolete..
5422 * config/m68k/xm-news.h: Obsolete.
5423 * config/m68k/tm-news.h:
5424 * config/m68k/xm-news1000.h: Obsolete.
5425 * config/m68k/news.mh: Obsolete.
5426 * config/m68k/news.mt: Obsolete.
5427 * config/m68k/nm-news.h: Obsolete.
5428 * config/m68k/news1000.mh: Obsolete.
5429 * news-xdep.c: Obsolete.
5430 * Makefile.in (isi-xdep.o): Obsolete.
5431 (ALLDEPFILES): Delete isi-xdep.c.
5432 (tm-isi.h): Obsolete.
5433 * m68k-tdep.c (altos_skip_prologue): Update comments.
5434 (isi_skip_prologue): Obsolete.
5435 * isi-xdep.c: Obsolete.
5436 * config/m68k/xm-isi.h: Obsolete.
5437 * config/m68k/isi.mh: Obsolete.
5438 * config/m68k/tm-isi.h: Obsolete.
5439 * config/m68k/isi.mt: Obsolete.
5440
5441 * TODO: Update.
5442 * NEWS: Update.
5443
5444 2001-04-17 Michael Snyder <msnyder@redhat.com>
5445
5446 * remote.c (remote_open_1): On opening the remote target, activate
5447 the solib_create_inferior_hook, so that it can detect when the
5448 target loads shared libraries.
5449 (remote_async_open_1): Ditto.
5450
5451 2001-04-17 Michael Snyder <msnyder@redhat.com>
5452
5453 * breakpoint.c (print_one_breakpoint): Handle 64-bit addresses.
5454 * tracepoint.c (tracepoints_info): Handle 64-bit addresses.
5455 * testsuite/gdb.trace/deltrace.exp: Allow for 64-bit addresses.
5456 * testsuite/gdb.trace/infotrace.exp: Ditto.
5457 * testsuite/gdb.trace/passcount.exp: Ditto.
5458 * testsuite/gdb.trace/while-stepping.exp: Ditto.
5459
5460 2001-04-17 Michael Snyder <msnyder@redhat.com>
5461
5462 * thread-db.c (check_thread_signals): When looping over all
5463 signals, ignore signal zero.
5464 (disable_thread_signals): Ditto.
5465
5466 2001-04-17 Eirik Fuller <eirik@netapp.com>
5467
5468 * thread.c (do_captured_thread_select): Allow the argument to the
5469 thread command to be an expression rather than a literal integer.
5470
5471 2001-04-17 Mark Kettenis <kettenis@gnu.org>
5472
5473 * i386-linux-tdep.c (i386_linux_saved_pc_after_call): Use
5474 read_memory_unsigned_integer instead of read_memory_integer.
5475
5476 2001-04-16 Kevin Buettner <kevinb@redhat.com>
5477
5478 * solib-aix5.c (map_index_vs_section_name_okay): New function.
5479 (aix5_relocate_main_executable): Don't use file offsets for
5480 determining corresponding sections and map file entries. Call
5481 map_index_vs_section_name_okay() to do this instead.
5482
5483 2001-04-16 Kevin Buettner <kevinb@redhat.com>
5484
5485 * procfs.c (open_with_retry): New function.
5486 (open_procinfo_files, load_syscalls, proc_iterate_over_mappings)
5487 (proc_get_LDT_entry): Call open_with_retry() instead of open().
5488
5489 2001-04-16 Kevin Buettner <kevinb@redhat.com>
5490
5491 * ia64-linux-nat.c (ia64_linux_stopped_by_watchpoint): Adjust
5492 comparison against TRAP_HWBKPT constant yet again to account
5493 for the various values used by different kernel versions.
5494
5495 2001-04-16 Daniel Berlin <dan@cgsoftware.com>
5496
5497 * demangle.c (_initialize_demangler): Use xcalloc on the
5498 demangling_style_names, and make it a null terminated array of
5499 names, to avoid a crash.
5500
5501 2001-04-16 Mark Kettenis <kettenis@gnu.org>
5502
5503 * i386-tdep.c (i386_frame_chain): New function.
5504 * config/i386/tm-i386.h (FRAME_CHAIN): Redefine in terms of
5505 i386_frame_chain.
5506 (i386_frame_chain): New prototype.
5507
5508 2001-04-14 J.T. Conklin <jtc@redback.com>
5509
5510 * target.h (target_ops): Removed to_core_file_to_sym_file vector
5511 function.
5512 * corelow.c (core_ops): Updated for above change.
5513 * gnu-nat.c (core_ops): Likewise.
5514 * inftarg.c (child_ops): Likewise.
5515 * monitor.c (monitor_ops): Likewise.
5516 * ppc-bdm.c (bdm_ppc_ops): Likewise.
5517 * remote-adapt.c (adapt_ops): Likewise.
5518 * remote-bug.c (bug_ops): Likewise.
5519 * remote-e7000.c (e7000_ops): Likewise.
5520 * remote-eb.c (eb_ops): Likewise.
5521 * remote-es.c (es1800_ops, es1800_child_ops): Likewise.
5522 * remote-mm.c (mm_ops): Likewise.
5523 * remote-nindy.c (nindy_ops): Likewise.
5524 * remote-nrom.c (nrom_ops): Likewise.
5525 * remote-os9k.c (rombug_ops): Likewise.
5526 * remote-rdp.c (remote_rdp_ops): Likewise.
5527 * remote-sim.c (gdbsim_ops): Likewise.
5528 * remote-st.c (st2000_ops): Likewise.
5529 * v850ice.c (v850ice_ops): Likewise.
5530 * target.c (cleanup_target): Likewise
5531 (update_current_target): Likewise.
5532 (setup_target_debug): Likewise
5533 (debug_to_core_file_to_sym_file): Removed.
5534
5535 * corefile.c (core_file_command) [HPUXHPPA]: Removed code that
5536 sets symbol file from information obtained from the core file.
5537 * corelow.c (core_file_to_sym_file): Removed.
5538
5539 2001-04-13 Fernando Nasser <fnasser@redhat.com>
5540
5541 From Adam Mirowski <Adam.Mirowski@Sun.COM>
5542 Fixed Insight on Solaris. It was not possible to debug a process
5543 because of EINTR "errors".
5544 * procfs.c: (procfs_wait): if proc_wait_for_stop() fails
5545 with EINTR, retry the call.
5546
5547 2001-04-12 Kevin Buettner <kevinb@redhat.com>
5548
5549 * solib-aix5.c (enum maptype): Delete.
5550 (struct lm_info): Add new member ``nmappings''. Make ``mapping''
5551 member a pointer instead of a statically sized array.
5552 (build_so_list_from_mapfile): Dynamically allocate ``mapping''
5553 array.
5554 (aix5_relocate_main_executable, aix5_relocate_section_addresses,
5555 aix5_find_global_pointer): Search for correct mapping to use
5556 based on file offset instead of knowledge of whether the section
5557 is read-only or read/write.
5558 (aix5_find_gate_addresses): Use the first mapping instead of
5559 the (now defunct) MT_READONLY mapping.
5560
5561 2001-04-12 Nicholas Duffek <nsd@redhat.com>
5562
5563 * xcoffread.c (scan_xcoff_symtab): Ignore symbols beginning with
5564 "@".
5565
5566 2001-04-12 Kevin Buettner <kevinb@redhat.com>
5567
5568 * config/i386/fbsd.mh (NATDEPFILES): Add i386-nat.o.
5569
5570 2001-04-09 Andrew Cagney <ac131313@redhat.com>
5571
5572 Obsolete i[3456]86-*-sunos* (aka Sun386) host and target.
5573 * config/i386/sun386.mh: Obsolete.
5574 * config/i386/sun386.mt: Obsolete.
5575 * config/i386/xm-sun386.h: Obsolete.
5576 * config/i386/tm-sun386.h: Obsolete.
5577 * config/i386/nm-sun386.h: Obsolete.
5578 * Makefile.in (ALLDEPFILES): Delete sun386-nat.c.
5579 (sun386-nat.o): Target is obsolete.
5580 * sun386-nat.c: Obsolete.
5581 * configure.tgt (i[3456]86-*-sunos*): Obsolete.
5582 * configure.host (i[3456]86-*-sunos*): Obsolete.
5583 * NEWS: Update.
5584 * TODO: Update.
5585
5586 2001-04-10 J.T. Conklin <jtc@redback.com>
5587
5588 * maint.c: Fix typo in comment.
5589
5590 2001-04-09 Keith Seitz <keiths@cygnus.com>
5591
5592 * MAINTAINERS: Swap with Syd Polk as a gdbtk maintainer.
5593
5594 2001-04-08 Kevin Buettner <kevinb@redhat.com>
5595
5596 * fork-child.c (fork_inferior, clone_and_follow_inferior):
5597 Document fact that apparent call to vfork() might actually be
5598 a call to fork() instead.
5599 * ser-pipe.c (pipe_open): Likewise.
5600
5601 2001-04-08 Kevin Buettner <kevinb@redhat.com>
5602
5603 * printcmd.c (print_frame_args): Use a cleanup to invoke
5604 ui_out_list_end() so that the list count nesting flag will
5605 be decremented properly when an error occurs.
5606 * stack.c (print_frame): Likewise.
5607
5608 2001-04-06 J.T. Conklin <jtc@redback.com>
5609
5610 * dcache.c (dcache_write_line): Fixed bugs where cache line was
5611 not written to target correctly.
5612
5613 * gdbserver/low-hppabsd.c (read_inferior_memory): Add explicit
5614 void return value;
5615 * gdbserver/low-nbsd.c: Likewise.
5616 * gdbserver/low-sparc.c: Likewise.
5617 * gdbserver/low-sun3.c: Likewise.
5618
5619 2001-04-06 Geoffrey Keating <geoffk@redhat.com>
5620
5621 * config/rs6000/nm-rs6000.h (PTRACE_ATTACH): Don't define.
5622 (PTRACE_DETACH): Don't define.
5623
5624 2001-04-06 David Smith <dsmith@redhat.com>
5625
5626 * arch-utils.c (default_prepare_to_proceed)
5627 (generic_prepare_to_proceed): Added new functions.
5628 * arch-utils.h: New function declarations for
5629 default_prepare_to_proceed() and generic_prepare_to_proceed().
5630 * gdbarch.sh: Added PREPARE_TO_PROCEED.
5631 * gdbarch.c: Regenerated.
5632 * gdbarch.h: Regenerated.
5633 * inferior.h: Added get_last_target_status() declaration.
5634 * infrun.c (get_last_target_status): Added new function.
5635 (handle_inferior_event): Saves last pid and waitstatus, which will
5636 get returned by get_last_target_status().
5637
5638 * hppa-tdep.c (prepare_to_proceed): Added comment stating that
5639 prepare_to_proceed() is potentially redundant since
5640 default_prepare_to_proceed() has been added.
5641 * linux-thread.c (prepare_to_proceed): Ditto.
5642 * lin-lwp.c (prepare_to_proceed): Ditto.
5643 * m3-nat.c (prepare_to_proceed): Ditto.
5644
5645 2001-04-05 Andrew Cagney <ac131313@redhat.com>
5646
5647 Obsolete powerpcle-*-cygwin* and powerpcle-*-solaris* platforms
5648 and powerpc-*-netware* target.
5649 * configure.host (powerpcle-*-cygwin*, powerpcle-*-solaris*):
5650 Obsolete.
5651 * configure.tgt (powerpc-*-netware*, powerpcle-*-cygwin*)
5652 (powerpcle-*-solaris*): Obsolete.
5653 * config/powerpc/tm-cygwin.h: Obsolete.
5654 * config/powerpc/cygwin.mt: Obsolete.
5655 * config/powerpc/xm-cygwin.h: Obsolete.
5656 * config/powerpc/cygwin.mh: Obsolete.
5657 * config/powerpc/nm-solaris.h: Obsolete.
5658 * config/powerpc/xm-solaris.h: Obsolete.
5659 * config/powerpc/tm-solaris.h: Obsolete.
5660 * config/powerpc/solaris.mt: Obsolete.
5661 * config/powerpc/tm-ppc-nw.h: Obsolete.
5662 * config/powerpc/ppc-nw.mt: Obsolete.
5663 * TODO: Update.
5664 * NEWS: Update.
5665
5666 2001-04-06 Fernando Nasser <fnasser@redhat.com>
5667
5668 * buildsym.c (record_line): Turn off unused addr bits.
5669
5670 2001-04-06 Fernando Nasser <fnasser@redhat.com>
5671
5672 From David Deephanphongs <deephan@telocity.com>
5673 * inferior.h: Fix declarations of get_inferior_args and
5674 set_inferior_args, which were missing the trailing 's'.
5675
5676 2001-04-05 Jeff Holcomb <jeffh@redhat.com>
5677
5678 * monitor.c (monitor_supply_register): Only report an error if we
5679 don't get a valid value.
5680
5681 2001-04-05 Eli Zaretskii <eliz@is.elta.co.il>
5682
5683 * README: Don't mention gdba.el.
5684
5685 2001-04-05 Elena Zannoni <ezannoni@kwikemart.cygnus.com>
5686
5687 From Jimmy Guo <guo@cup.hp.com>
5688 * top.c (init_main): set prompt if annotation_level>1,
5689 this is necessary when annotation_level is set to 2 via
5690 --annotate=2 command line option.
5691
5692 2001-04-04 Andrew Cagney <ac131313@redhat.com>
5693
5694 Obsolete a29k-*-* host and a29k-*-sym1* and a29k-*-kern* targets.
5695 * configure.tgt (a29k-*-sym1*, a29k-*-kern*): Obsolete.
5696 * configure.host (a29k-*-*): Obsolete.
5697 * Makefile.in (ALLDEPFILES): Remove ultra3-nat.c and
5698 ultra3-xdep.c.
5699 (ultra3-nat.o, ultra3-xdep.o): Obsolete.
5700 * config/a29k/tm-ultra3.h: Obsolete.
5701 * config/a29k/ultra3.mt: Obsolete.
5702 * config/a29k/ultra3.mh: Obsolete.
5703 * config/a29k/nm-ultra3.h: Obsolete.
5704 * config/a29k/xm-ultra3.h: Obsolete.
5705 * ultra3-xdep.c: Obsolete.
5706 * ultra3-nat.c: Obsolete.
5707 * config/a29k/a29k-kern.mt: Obsolete.
5708 * NEWS: Update.
5709 * TODO: Update.
5710
5711 Wed Apr 4 21:48:42 2001 Christopher Faylor <cgf@cygnus.com>
5712
5713 * main.c: Remove windows.h use.
5714 (gdbtk_test): Use PATH_MAX for home var calculation.
5715 * remote-e7000.c (e7000_parse_device): Accomodate Cygwin as well as
5716 Win32 in colon test.
5717 * ser-tcp.c: Use modern __CYGWIN__ conditional.
5718 * source.c (mod_path): Add __CYGWIN__ conditional to WIN32 test.
5719 (openp): Ditto.
5720 * symfile.c (symfile_bfd_open): Ditto.
5721
5722 2001-04-04 Martin M. Hunt <hunt@redhat.com>
5723
5724 * main.c (captured_main): For GDBtk, don't use tui_fileopen().
5725 Handle all stream setup in gdbtk_init
5726
5727 2001-04-04 Mark Kettenis <kettenis@gnu.org>
5728
5729 * i386-tdep.c (i386_extract_return_value): Don't return the return
5730 value of a void function.
5731 (i386_store_return_value): Likewise.
5732
5733 2001-04-03 Andrew Cagney <ac131313@redhat.com>
5734
5735 Obsolete w65-*-* target.
5736 * configure.tgt (w65-*-*): Obsolete.
5737 * config/w65/w65.mt: Obsolete.
5738 * config/w65/tm-w65.h: Obsolete.
5739 * w65-tdep.c: Obsolete.
5740 * NEWS: Update. Fix TiC80 description.
5741 * TODO: Update.
5742
5743 2001-04-03 Andrew Cagney <ac131313@redhat.com>
5744
5745 Obsolete tic80-*-* target.
5746 * configure.tgt (tic80-*-*): Obsolete.
5747 * config/tic80/tic80.mt: Obsolete.
5748 * config/tic80/tm-tic80.h: Obsolete.
5749 * tic80-tdep.c: Obsolete.
5750 * TODO: Update
5751 * NEWS: Update.
5752
5753 2001-04-02 J.T. Conklin <jtc@redback.com>
5754
5755 * remote-mips.c (S_IROTH): Moved definition from here.
5756 * gdb_stat.h (S_IROTH): to here.
5757
5758 * remote.c (remote_protocol_e, remote_protocol_E): Define.
5759 (set_remote_protocol_e_packet_cmd)
5760 (set_remote_protocol_E_packet_cmd)
5761 (show_remote_protocol_e_packet_command)
5762 (show_remote_protocol_E_packet_command): New functions.
5763 (init_all_packet_configs): Initialize remote_protocol_e and
5764 remote_protocol_E.
5765 (remote_resume, remote_async_resume): Support e/E command
5766 packets.
5767 (show_remote_cmd): Show state of remote_protocol_e and
5768 remote_protocol_E.
5769 (_initialize_remote): Add "set remote step-over-range-packet"
5770 and "set remote step-over-range-w-signal-packet" to CLI.
5771
5772 2001-04-01 Andrew Cagney <ac131313@redhat.com>
5773
5774 Obsolete ns32k-*-mach3*, ns32k-umax-*, ns32k-utek-sysv* and
5775 ns32k-utek-*.
5776 * Makefile.in (ALLDEPFILES): Delete umax-xdep.c and ns32km3-nat.c.
5777 (umax-xdep.o, ns32km3-nat.o): Obsolete.
5778 * configure.tgt (ns32k-*-mach3*, ns32k-utek-sysv*, ns32k-utek-*):
5779 Obsolete.
5780 * configure.host (ns32k-*-mach3*, ns32k-umax-*, ns32k-utek-sysv*):
5781 Obsolete.
5782 * config/ns32k/merlin.mh: Obsolete.
5783 * config/ns32k/merlin.mt: Obsolete.
5784 * config/ns32k/xm-merlin.h: Obsolete.
5785 * config/ns32k/tm-merlin.h: Obsolete.
5786 * config/ns32k/nm-umax.h: Obsolete.
5787 * config/ns32k/umax.mh: Obsolete.
5788 * config/ns32k/umax.mt: Obsolete.
5789 * config/ns32k/xm-umax.h: Obsolete.
5790 * umax-xdep.c: Obsolete.
5791 * config/ns32k/ns32km3.mh: Obsolete.
5792 * config/ns32k/ns32km3.mt: Obsolete.
5793 * config/ns32k/tm-ns32km3.h: Obsolete.
5794 * config/ns32k/xm-ns32km3.h: Obsolete.
5795 * ns32km3-nat.c: Obsolete.
5796 * ns32k-tdep.c (merlin_skip_prologue): Obsolete.
5797 (merlin_frame_num_args): Ditto.
5798 * NEWS: Update.
5799 * TODO: Update.
5800
5801 2001-04-02 Eli Zaretskii <eliz@is.elta.co.il>
5802
5803 * config/djgpp/fnchange.lst: Tweak due to
5804 expect/example/chesslib.c.
5805
5806 2001-04-02 Kevin Buettner <kevinb@redhat.com>
5807
5808 * m88k-tdep.c (examine_prologue): Change type of ``insn'' from
5809 unsigned int to unsigned long. Also, fix format string.
5810 (pop_frame): Fix PC_IN_CALL_DUMMY() call so that it doesn't
5811 use an undeclared variable. Also, delete declaration and
5812 initialization of ``fp'' because it is otherwise unused.
5813 * remote-bug.c (sleep): Delete declaration.
5814 (bug_store_register, bug_write_memory, bug_read_memory)
5815 (bug_insert_breakpoint, bug_remove_breakpoint): Fix sprintf()
5816 format statements and cast certain sprintf() arguments to
5817 eliminate warnings.
5818 (bug_load): Likewise for call to printf_filtered().
5819 * config/m88k/tm-m88k.h (FIX_CALL_DUMMY): Eliminate
5820 assignment to ``pc''. The necessary assignment is done in
5821 hand_function_call() after the invocation of FIX_CALL_DUMMY().
5822
5823 2001-03-20 Daniel Berlin <dberlin@redhat.com>
5824
5825 * symtab.c (completion_list_add_name): Remove duplicate string checks,
5826 readline already does this, and it's much faster at it, too.
5827
5828 2001-04-01 Eli Zaretskii <eliz@is.elta.co.il>
5829
5830 * go32-nat.c: Minor tweaks, to pacify the ari script.
5831
5832 2001-04-01 Mark Kettenis <kettenis@gnu.org>
5833
5834 * i386-tdep.c (i386_extract_struct_value_address): New function.
5835 * config/i386/tm-i386.h (EXTRACT_STRUCT_VALUE_ADDRESS): Redefine
5836 in terms of i386_extract_struct_value_address.
5837 (i386_extract_struct_value_address): New prototype.
5838
5839 * i386-linux-nat.c (i386_linux_dr_get): Change type of return
5840 value to `unsigned long'. Change type of `value' to `unsigned
5841 long'.
5842 (i386_linux_dr_set): Change type of second argument to `unsigned
5843 long'.
5844 (i386_linux_dr_set_control): Change type of first argument to
5845 `unsigned long'.
5846 (i386_linux_dr_get_status): Change type of return value to
5847 unsigned long.
5848 * config/i386/nm-linux.h (i386_linux_dr_set_control,
5849 i386_linux_dr_get_status): Adjust prototypes accordingly.
5850
5851 2001-03-31 Kevin Buettner <kevinb@redhat.com>
5852
5853 * ia64-linux-nat.c (ia64_linux_stopped_by_watchpoint): Change
5854 TRAP_HWBKPT constant to match that in the kernel headers for
5855 Linux/IA-64.
5856
5857 2001-03-31 Mark Kettenis <kettenis@gnu.org>
5858
5859 * i386bsd-nat.c: Include "gdb_assert.h".
5860 [HAVE_PT_GETDBREGS] (DBREG_DRX): Define if not
5861 already defined.
5862 [HAVE_PT_GETDBREGS] (i386bsd_dr_set, i386bsd_dr_set_control,
5863 i386bsd_dr_set_addr, i386bsd_dr_reset_addr,
5864 i386bsd_dr_get_status): New functions.
5865 * config/i386/nm-fbsd.h [HAVE_PT_GETDBREGS]
5866 (I386_USE_GENERIC_WATCHPOINTS): Define.
5867 Include "i386/nm-i386.h".
5868 (I386_DR_LOW_SET_CONTROL, I386_DR_LOW_SET_ADDR,
5869 I386_DR_LOW_RESET_ADDR, I386_DR_LOW_GET_STATUS): New macros.
5870 (i386bsd_dr_set_control, i386bsd_dr_set_addr,
5871 i386bsd_dr_reset_addr, i386bsd_dr_get_status): New prototypes.
5872 * acconfig.h (HAVE_PT_GETDBREGS): New configure macro.
5873 * configure.in: Cleanup a few comments. Check for PT_GETDBREGS
5874 ptrace request.
5875 * config.in, configure: Regenerate.
5876
5877 * i386-nat.c (i386_insert_aligned_watchpoint): Set address
5878 register before enabling it by setting the control register.
5879 (i386_remove_aligned_watchpoint): Reset address register after
5880 disabling it by setting the control register.
5881
5882 * i386-tdep.c (i386_extract_return_value): If the type of the
5883 return value is TYPE_STRUCT and the number of fields is one, call
5884 ourselves with TYPE set tp the type of the first field.
5885 (i386_store_return_value): Likewise.
5886 This fixes a problem with returning structs consisting of a single
5887 `float' or `double' on *BSD.
5888
5889 2001-03-30 Mark Kettenis <kettenis@gnu.org>
5890
5891 * lin-lwp.c (lin_lwp_resume): Don't mark LWP as not stopped until
5892 we're absolutely sure we're going to resume it.
5893
5894 * thread-db.c (check_event): Don't report an error if we encounter
5895 a thread creation event for a thread that's already in the thread
5896 list, since that may legitemately happen. Instead only call
5897 attach_thread if it's not already in the thread list.
5898
5899 2001-03-28 Andrew Cagney <ac131313@redhat.com>
5900
5901 * config/pa/xm-hppah.h (malloc): Really delete declaration
5902 (MALLOC_INCOMPATIBLE): Really delete macro.
5903 * cli/cli-cmds.c (apropos_command): Use xcalloc.
5904
5905 2001-03-28 Andrew Cagney <ac131313@redhat.com>
5906
5907 * configure.in (build_warnings): Add -Wuninitialized.
5908 * configure: Regenerate.
5909
5910 * v850-tdep.c (v850_scan_prologue): Initialize ``insn2''.
5911 * sparc-tdep.c (sparc64_push_arguments): Add default case to
5912 switch.
5913 * sh-tdep.c (sh_do_fp_register): Replace ``?:'' printf format
5914 expression with if statement.
5915 * mn10200-tdep.c (mn10200_analyze_prologue): Initialize
5916 ``stack_size''.
5917 * mips-tdep.c (show_mipsfpu_command): Add default case to switch.
5918 (mips_dump_tdep): Fix setting of ef_mips_arch.
5919 * mcore-tdep.c (mcore_analyze_prologue): Initialize ``fp_regnum''.
5920 * dsrec.c (make_srec): Always initialize ``binbuf''.
5921 * monitor.c (monitor_read_memory_single): Do not pass an
5922 uninitialized buffer to monitor_error. Make ``i'' more local.
5923
5924 2001-03-28 Andrew Cagney <ac131313@redhat.com>
5925
5926 * MAINTAINERS: Change ns32k target to ,-Werror.
5927
5928 * ns32k-tdep.c: Include "gdbcore.h"
5929 (flip_bytes): Change first argument to void*. Add forward
5930 declaration.
5931 (sign_extend): Add declaration.
5932 (merlin_frame_num_args): Add final else clause to if-else chain.
5933 (umax_frame_num_args): Ditto.
5934 * config/ns32k/tm-umax.h (ns32k_localcount): Declare.
5935 (flip_bytes): Ditto.
5936
5937 2001-03-28 Mark Kettenis <kettenis@gnu.org>
5938
5939 * i386-linux-tdep.c (FRAMELESS_SIGNAL): Moved here from
5940 config/i386/nm-linux.h (including comment).
5941 (i386_linux_frame_chain): New function implementing guts of the
5942 former FRAME_CHAIN macro, but using read_memory_unsigned_integer
5943 instead of read_memory_integer.
5944 (i386_linux_frame_saved_pc): Removed doc pointing to
5945 i386/tm-linux.h for an explanation of FRAMELESS_SIGNAL since that
5946 now lives in this file.
5947 * config/i386/tm-linux.h (FRAMELESS_SIGNAL): Moved to
5948 i386-linux-tdep.c (including comment).
5949 (FRAME_CHAIN): Redefined in terms of i386_linux_frame_chain.
5950 (i386_linux_frame_chain): New prototype.
5951
5952 * gdbserver/low-linux.c [I386_GNULINUX_TARGET]: Cleanup code and
5953 make it work again.
5954 (NUM_FREGS): Redefine to 0.
5955 (NUM_REGS): Redefine as NUM_GREGS.
5956 (i386_register_byte, i386_register_raw_size): Update from
5957 i386-tdep.c. Add comment about their origin.
5958 (regmap, register_u_addr): Take these from i386-linux-nat.c.
5959 (i386_register_u_addr): Removed.
5960
5961 * i386-linux-nat.c (i386_linux_dr_get): Return 0 if ptrace call
5962 fails instead of calling perror_with_name. This should fix
5963 debugging remote i386 targets with a native Linux/x86 GDB. Add
5964 FIXME for this hack.
5965
5966 2001-03-19 J.T. Conklin <jtc@redback.com>
5967
5968 * arch-utils.c (#include "gdbthread.h"): Removed.
5969 (#include "symfile.h"): Removed.
5970 (XMALLOC): Removed unused macro.
5971 * breakpoint.c (tbreak_command): Removed local declaration.
5972 (awatch_command, do_enable_breakpoint, set_breakpoint_count):
5973 Remove duplicate declarations.
5974 (bpstat_should_step, bpstat_have_active_hw_watchpoints)
5975 (remove_solib_event_breakpoints): Fix indentation botch.
5976 * c-typeprint.c (#include "command.h"): Removed.
5977 (#include "gdbcmd.h"): Removed.
5978 * ch-exp.c (ch_terminal_match_float_literal, parse_expr)
5979 (parse_primval, parse_untyped_expr, parse_opt_untyped_expr):
5980 Removed duplicate declarations.
5981 * ch-typeprint.c (#include "command.h"): Removed.
5982 (#include "gdbcmd.h"): Removed.
5983 * corefile.c (#include "frame.h"): Removed
5984 (#include "symfile.h"): Removed.
5985 (#include "language.h"): Removed.
5986 * dbxread.c (#include "command.h"): Removed.
5987 * environ.c (#include "gdbcore.h"): Removed.
5988 * event-loop.c (#include "top.h"): Removed.
5989 * f-typeprint.c (#include "command.h"): Removed.
5990 (#include "gdbcmd.h"): Removed.
5991 (#include "language.h"): Removed.
5992 (#include "typeprint.h"): Removed.
5993 (#include "frame.h"): Removed.
5994 * gdbtypes.h (print_type_scalar): Removed declaration.
5995 * infcmd.c (#include "completer.h"): Removed.
5996 * language.c (#include "frame.h"): Removed.
5997 * m2-typeprint.c (#include "command.h"): Removed.
5998 (#include "gdbcmd.h"): Removed.
5999 (#include "language.h"): Removed.
6000 * m2-valprint.c (#include "valprint.h"): Removed.
6001 * p-typeprint.c (#include "command.h"): Removed.
6002 (#include "gdbcmd.h"): Removed.
6003 * p-valprint.c (#include "typeprint.h"): Removed.
6004 * parse.c (#include "linespec.h"): Removed.
6005 * regcache.c (#include "frame.h"): Removed.
6006 * remote.c (#include "frame.h"): Removed.
6007 (getpkt_sane): Make static.
6008 * source.c (#include "completer.h"): Removed.
6009 * stack.c (#include "symfile.h"): Removed.
6010 (#include "objfiles.h"): Removed.
6011 * symfile.c (#include "completer.h"): Removed.
6012 * tracepoint.c (#include "completer.h"): Removed.
6013 * values.c (#include "frame.h"): Removed.
6014 * varobj.c (#include "valprint.h"): Removed.
6015 * wrapper.c (#include "frame.h"): Removed.
6016
6017 * memattr.c (create_mem_region): Removed unused variable.
6018 * remote-nrom.c: Removed spurious semicolon after init_nrom_ops.
6019
6020 2001-03-27 Nick Clifton <nickc@redhat.com>
6021
6022 * remote-rdp.c (rdp_set_command_line): Add missing double quote.
6023
6024 2001-03-27 Kevin Buettner <kevinb@redhat.com>
6025
6026 * solib-aix5.c (build_so_lib_from_mapfile): Use xfree() instead
6027 of free().
6028
6029 2001-03-27 Eli Zaretskii <eliz@is.elta.co.il>
6030
6031 * TODO (Cleanups): Remove the item about converting docs to GFDL.
6032
6033 2001-03-26 Kevin Buettner <kevinb@redhat.com>
6034
6035 * ia64-tdep.c (slotN_contents, replace_slotN_contents): Change
6036 type of ``bundle'' from unsigned char * to char *.
6037 (ia64_get_saved_register): Use alloca() to allocate register
6038 buffers.
6039
6040 * solib-aix5.c (build_so_lib_from_mapfile): Fix xasprintf() usage.
6041
6042 2001-03-26 Kevin Buettner <kevinb@redhat.com>
6043
6044 * proc-utils.h (procfs_ctl_t): New typedef.
6045 * proc-api.c (write_with_trace): Change type of ``opcode'' from
6046 long to procfs_ctl_t. Don't assume that the target has defined
6047 BREAKPOINT. Handle case in which PCRESET is the same as PCUNSET.
6048 * proc-events.c (sys/syscall.h, sys/fault.h): Include conditionally.
6049 * procfs.c (sys/fault.h, sys/syscall.h): Include conditionally.
6050 (gdb_sigset_t, gdb_sigaction_t, gdb_siginfo_t, gdb_premptysysset)
6051 (gdb_praddsysset, gdb_prdelsysset, gdb_pr_issyssetmember):
6052 Conditionally define as appropriate for AIX/non-AIX systems. Use
6053 these defines/typedefs as appropriate elsewhere in file.
6054 (struct procinfo): Change type of saved_sigset and saved_sighold
6055 from sigset_t to gdb_sigset_t. Make saved_exitset and
6056 saved_entryset pointer variables. Add two new fields, num_syscalls
6057 and syscall_names.
6058 (DYNAMIC_SYSCALLS): Define when HAVE_PRSYSENT_T is defined.
6059 (sysset_t_size, sysset_t_alloc): New functions.
6060 (load_syscalls, free_syscalls, find_syscall): New functions for
6061 platforms which define DYNAMIC_SYSCALLS.
6062 (create_procinfo): Call load_syscalls.
6063 (destroy_one_procinfo): Call free_syscalls.
6064 (GDBRESET): Don't define twice.
6065 (proc_modify_flag): Change type of operation code array `arg'
6066 from long to procfs_ctl_t.
6067 (proc_stop_process, proc_wait_for_stop, proc_run_process)
6068 (proc_set_traced_signals, proc_set_traced_faults)
6069 (proc_set_traced_sysentry, proc_set_traced_sysexit)
6070 (proc_set_held_signals, proc_clear_current_fault)
6071 (proc_set_current_signal, proc_clear_current_signal, proc_set_gregs)
6072 (proc_set_fpregs, proc_kill, proc_set_watchpoint): Likewise for `cmd'.
6073 (proc_set_traced_sysentry): Dynamically allocate variable sized
6074 struct gdb_proc_ctl_pcsentry. Also, free it at function exit.
6075 (proc_set_traced_sysexit): Dynamically allocate variable
6076 sized struct gdb_proc_ctl_pcsexit. Also, free it at
6077 function exit.
6078 (proc_get_traced_sysentry, proc_get_traced_sysexit): Add new code
6079 for reading the sysset_t struct on AIX5.
6080 (procfs_debug_inferior): Don't assume that SYS_exit will be
6081 defined. Add new code for finding certain syscalls on AIX5.
6082 (syscall_is_lwp_exit, syscall_is_exit, syscall_is_exec)
6083 (syscall_is_lwp_create): New functions.
6084 (procfs_wait): Restructured code which checks for certain
6085 system calls to use the new syscall_is_... functions.
6086 (procfs_notice_signals): Account for the fact that saved_entryset
6087 and saved_exitset in struct procinfo are now pointers.
6088
6089 2001-03-26 Kevin Buettner <kevinb@redhat.com>
6090
6091 * symtab.c (find_pc_sect_line): Revise method used for finding
6092 the ending pc.
6093
6094 2001-03-26 Mark Kettenis <kettenis@gnu.org>
6095
6096 * i386-linux-tdep.c (i386_linux_sigtramp_saved_pc,
6097 i386_linux_sigtramp_saved_sp): Make static.
6098 (i386_linux_frame_saved_pc): New function based on the old
6099 FRAME_SAVED_PC macro, but use read_memory_unsigned_integer instead
6100 of read_memory_integer.
6101 * config/i386/tm-linux.h (sigtramp_saved_pc): Remove definition.
6102 (i386_linux_sigtramp_saved_pc): Remove prototype.
6103 (FRAME_SAVED_PC): Redefine in terms of i386_linux_frame_saved_pc.
6104 (i386_linux_frame_saved_pc): New prototype.
6105
6106 2001-03-26 Andrew Cagney <ac131313@redhat.com>
6107
6108 * MAINTAINERS: Document m88k as a ``Known problem in 5.1''.
6109 * TODO (GDB 5.1 - Cleanups): Update.
6110
6111 2001-03-26 Andrew Cagney <ac131313@redhat.com>
6112
6113 * fork-child.c (clone_and_follow_inferior): Delete #ifdef
6114 HAVE_VFORK.
6115
6116 2001-03-26 Mark Kettenis <kettenis@gnu.org>
6117
6118 * config/i386/tm-symmetry.h (PUSH_ARGUMENTS): #undef.
6119
6120 * i386-tdep.c (i386_push_arguments, i386_store_struct_return): New
6121 functions.
6122 * config/i386/tm-i386.h (PUSH_ARGUMENTS): New macro.
6123 (STORE_STRUCT_RETURN): Redefine in terms of
6124 i386_store_struct_return.
6125 (i386_push_arguments, i386_store_struct_return): New prototypes.
6126 * config/i386/tm-i386v.h (STORE_STRUCT_RETURN): Remove. It's
6127 definition was identical to the definition in "i386/tm-i386.h" so
6128 the new definition should suffice too.
6129
6130 2001-03-26 Eli Zaretskii <eliz@is.elta.co.il>
6131
6132 * event-loop.c (toplevel) [!HAVE_POLL] [NO_FD_SET]: Remove unused
6133 definitions for SELECT, NBBY, FD_SETSIZE, NFDBITS, and MASK_SIZE.
6134
6135 * config/djgpp/djconfig.sh: Add copyright notice.
6136
6137 * ser-go32.c (rawclock): Remove prototype; include time.h instead.
6138 (ISR, dos_hookirq, isr_t): Convert K&R definition to ANSI C.
6139 (top level) <string.h>: Include gdb_string.h instead.
6140 (dos_noop, dos_raw, dos_noflush_set_tty_state)
6141 (dos_print_tty_state, dos_info): Remove ATTRIBUTE_UNUSED.
6142
6143 * go32-nat.c (go32_create_inferior): Move the declaration of
6144 `environ' to here from the top level.
6145 (top level) <_initialize_go32_nat>: Remove redundant prototype.
6146 <gdb_string.h>: Include it instead of string.h.
6147 (store_register): Call register_buffer instead of accessing
6148 registers[] directly.
6149 (redir_cmdline_delete, redir_cmdline_parse, redir_to_debugger)
6150 (redir_to_debugger, redir_debug_init) [__DJGPP_MINOR__ < 3]: Put
6151 the function names at the start of the line.
6152 (go32_set_dr): Throw internal_error if the argument is not a valid
6153 debug register number.
6154 (go32_open, go32_close, go32_attach, go32_detach, go32_resume)
6155 (go32_wait, go32_xfer_memory, go32_files_info)
6156 (go32_terminal_info): Remove ATTRIBUTE_UNUSED.
6157
6158 2001-03-25 Jim Blandy <jimb@redhat.com>
6159
6160 * mips-tdep.c (mips_gdbarch_init): Tweak indentation.
6161
6162 2001-03-25 Elena Zannoni <ezannoni@kwikemart.cygnus.com>
6163
6164 From Andrew Cagney <ac131313@redhat.com>
6165
6166 * coffread.c: Include "gdb_assert.h".
6167 (coff_symtab_read): Cast the integer s_sclass to a long before
6168 casting it to a pointer.
6169
6170 2001-03-25 Elena Zannoni <ezannoni@kwikemart.cygnus.com>
6171
6172 From Andrew Cagney <ac131313@redhat.com>
6173
6174 * coffread.c (coff_symtab_read): Initialize
6175 ``fcn_first_line_addr''. Check that the ``.bf'' always preceeds
6176 the ``.ef'' info.
6177 * dbxread.c (find_text_range): Initialize ``start'' and ``end''.
6178
6179 2001-03-23 Andrew Cagney <ac131313@redhat.com>
6180
6181 * config/sparc/tm-sp64.h (GDB_MULTI_ARCH): Down grade to
6182 GDB_MULTI_ARCH_PARTIAL from two. SOFTWARE_SINGLE_STEP is not
6183 multi-arch.
6184
6185 * gdbarch.sh (SOFTWARE_SINGLE_STEP): Add.
6186 * gdbarch.h, gdbarch.c: Re-generate.
6187
6188 * target.h (SOFTWARE_SINGLE_STEP_P)
6189 (SOFTWARE_SINGLE_STEP): Delete macro definitions.
6190
6191 2001-03-23 Andrew Cagney <ac131313@redhat.com>
6192
6193 * gdbarch.sh (gdbarch_register_read, gdbarch_register_write): Add.
6194 * gdbarch.h, gdbarch.c: Regenerate.
6195
6196 * regcache.h (regcache_read, regcache_write): Declare.
6197 (registers, register_valid, register_buffer): Add note that these
6198 interfaces are deprecated.
6199
6200 * regcache.c: Include "gdb_assert.h".
6201 (legacy_write_register_gen): Rename write_register_gen.
6202 (legacy_read_register_gen): Rename read_register_gen.
6203 (regcache_read, regcache_write): New function.
6204 (read_register_gen, write_register_gen): New function.
6205 (write_register): Simplify. Use write_register_gen.
6206 (read_register): Ditto using read_register_gen.
6207 (read_signed_register): Ditto.
6208 (read_register_bytes): Ditto!!!!
6209 (supply_register): Add note that CLEANUP_REGISTER_VALUE is being
6210 replaced by gdbarch_register_read.
6211
6212 * TODO (GDB 5.2 - Cleanups): Add list of gdbarch methods to
6213 deprecate.
6214
6215 2001-03-23 Jim Blandy <jimb@redhat.com>
6216
6217 Fix from Dan Berlin:
6218
6219 * stabsread.c (read_cpp_abbrev): Properly construct the names of
6220 virtual function table pointer fields.
6221
6222 2001-03-19 Andrew Cagney <ac131313@redhat.com>
6223
6224 * defs.h (xfree, mcalloc, mmalloc, mrealloc, mfree, xmmalloc,
6225 xmrealloc): Move existing declarations to the one place and
6226 re-order to be consistent.
6227 (xmcalloc, xmfree): Declare.
6228 (xmmalloc, xmrealoc): Assume ISO-C - use size_t and void* in
6229 declaration.
6230
6231 * utils.c (size_t): Delete #ifdef defining size_t.
6232 (mmalloc, mrealloc, mcalloc, mfree): Re-order.
6233 (mmalloc, mrealloc, mcalloc): Document as only calls in GDB
6234 corresponding malloc, realloc, calloc.
6235 (mfree): Call free directly.
6236 (xmmalloc, xmrealloc): Clean up. Assume ISO-C.
6237 (xmcalloc, xmfree): New functions. Copy old xcalloc and xfree
6238 function bodies to here.
6239 (xcalloc, xfree): Call xmcalloc and xmfree respectfully.
6240
6241 2001-03-23 Andrew Cagney <ac131313@redhat.com>
6242
6243 * fork-child.c (fork_inferior): Make ``argv'', ``exec_file'' and
6244 ``shell_file'' static locals.
6245
6246 * jv-lang.c (java_link_class_type): Initialize ``field'' and
6247 ``method''.
6248
6249 * jv-valprint.c (java_value_print): Initialize ``next_element''.
6250
6251 2001-03-23 Mark Kettenis <kettenis@gnu.org>
6252
6253 * config/i386/nm-i386.h: Fix formatting and change reference to
6254 i386-tdep.c to i386-nat.c.
6255
6256 2001-03-23 David Smith <dsmith@redhat.com>
6257
6258 * configure.in: Corrected spelling errors.
6259 * configure: Regenerated.
6260
6261 2001-03-22 Andrew Cagney <ac131313@redhat.com>
6262
6263 * TODO (GDB 5.1 - Cleanups): Add more targets to obsolete.
6264
6265 2001-03-22 Andrew Cagney <ac131313@redhat.com>
6266
6267 * Makefile.in (NTSSTART): Delete.
6268 (NTSOBS): Delete.
6269 (kdb): Delete target.
6270 * kdb-start.c, stuff.c: Mark as obsolete.
6271 * NEWS: Update.
6272
6273 2001-03-22 Andrew Cagney <ac131313@redhat.com>
6274
6275 * config/pa/xm-hppah.h (HPPA_COMPILER_BUG): Delete. GDB only
6276 compiles using an ISO-C compiler.
6277 (MALLOC_INCOMPATIBLE): Ditto.
6278 * linespec.c (decode_line_1): Delete hack to work around
6279 HPPA_COMPILER_BUG.
6280
6281 2001-03-22 Andrew Cagney <ac131313@redhat.com>
6282
6283 * exec.c (xfer_memory): Always initialize section.
6284 * infrun.c (normal_stop): Always initialize source_flag.
6285
6286 2001-03-22 Andrew Cagney <ac131313@redhat.com>
6287
6288 * TODO (Remote Protocol Support): Review. Add notes about ``!'',
6289 non-use of a continue address and typical use of ``q'' packet.
6290
6291 2001-03-22 Eli Zaretskii <eliz@is.elta.co.il>
6292
6293 Make DJGPP use the new unified support for hardware
6294 breakpoints and watchpoints on x86 targets:
6295
6296 * config/i386/nm-go32.h <top level>: Don't include nm-i386v.h,
6297 include nm-i386.h instead.
6298 (TARGET_HAS_HARDWARE_WATCHPOINTS, HAVE_CONTINUABLE_WATCHPOINT)
6299 (TARGET_CAN_USE_HARDWARE_WATCHPOINT, STOPPED_BY_WATCHPOINT)
6300 (TARGET_REGION_OK_FOR_HW_WATCHPOINT, DECR_PC_AFTER_HW_BREAK)
6301 (target_stopped_data_address, target_insert_watchpoint)
6302 (target_remove_watchpoint, target_insert_hw_breakpoint)
6303 (target_remove_hw_breakpoint): Don't define.
6304 (I386_USE_GENERIC_WATCHPOINTS, I386_DR_LOW_SET_CONTROL)
6305 (I386_DR_LOW_SET_ADDR, I386_DR_LOW_RESET_ADDR)
6306 (I386_DR_LOW_GET_STATUS): Define to call appropriate go32_*
6307 functions from go32-nat.c.
6308
6309 * config/i386/go32.mh (NATDEPFILES): Add i386-nat.o.
6310
6311 * go32-nat.c <top level>: Remove prototypes for watchpoint-
6312 related functions. Remove definitions of watchpoint-related
6313 macros.
6314 (go32_mourn_inferior): Call i386_cleanup_dregs instead of the
6315 private cleanup_dregs function.
6316 (cleanup_dregs, go32_insert_watchpoint)
6317 (go32_insert_aligned_watchpoint, go32_handle_nonaligned_watchpoint)
6318 (go32_remove_watchpoint, go32_remove_aligned_watchpoint)
6319 (go32_region_ok_for_watchpoint, go32_stopped_by_watchpoint)
6320 (go32_remove_hw_breakpoint, go32_insert_hw_breakpoint): Remove.
6321 (go32_set_dr, go32_set_dr7, go32_get_dr6): New functions.
6322
6323 2001-03-21 Kevin Buettner <kevinb@redhat.com>
6324
6325 * ia64-tdep.c (fetch_instruction): Warn about slot numbers greater
6326 than two instead of generating an error.
6327
6328 2001-03-21 Jim Blandy <jimb@redhat.com>
6329
6330 * cp-valprint.c: Reformat to bring into line with GNU coding
6331 standards.
6332
6333 2001-03-21 Mark Kettenis <kettenis@gnu.org>
6334
6335 Make Linux use the new unified support for hardware breakpoints
6336 and watchpoints on x86 targets.
6337 * i386-linux-nat.c: Doc fixes. Include "gdb_assert.h".
6338 [HAVE_SYS_DEBUGREG_H]: Include <sys/debugreg.h>.
6339 (DR_FIRSTADDR, DR_LASTADDR, DR_STATUS, DR_CONTROL): Define to
6340 appropriate value if not already defined.
6341 (register_u_addr): New function.
6342 (kernel_u_size): New function.
6343 (i386_linux_dr_get, i386_linux_dr_set): New functions.
6344 (i386_linux_dr_set_control, i386_linux_dr_set_addr,
6345 i386_linux_reset_addr, i386_linux_dr_get_status): New functions.
6346 * config/i386/nm-linux.h: Don't include "nm-i386v.h".
6347 (I386_USE_GENERIC_WATCHPOINTS): Define and include "nm-i386.h".
6348 (TARGET_HAS_HARDWARE_WATCHPOINTS,
6349 TARGET_CAN_USE_HARDWARE_WATCHPOINTS, HAVE_CONTINUABLE_WATCHPOINT,
6350 STOPPED_BY_WATCHPOINT, target_insert_watchpoint,
6351 target_remove_watchpoint): Remove macros.
6352 (i386_stopped_by_watchpoint, i386_insert_watchpoint,
6353 i386_remove_watchpoint): Remove prototypes.
6354 (register_u_addr): New prototype.
6355 (REGISTER_U_ADDR): Define in terms of register_u_addr.
6356 (i386_linux_dr_set_control, i386_linux_dr_set_addr,
6357 i386_linux_reset_addr, i386_linux_dr_get_status): New prototypes.
6358 (I386_DR_LOW_SET_CONTROL, I386_DR_LOW_SET_ADDR,
6359 I386_DR_LOW_RESET_ADDR, I386_DR_LOW_GET_STATUS): New macros.
6360 * config/i386/linux.mh (NATDEPFILES): Replace i386v-nat.o with
6361 i386-nat.o.
6362
6363 2001-03-21 Jim Blandy <jimb@redhat.com>
6364
6365 Fix from Dan Berlin:
6366
6367 * linespec.c (find_methods): Whitespace differences aren't
6368 significant in *un*mangled method names. Use strcmp_iw to compare
6369 them, not STREQ.
6370
6371 2001-03-21 Andrew Cagney <ac131313@redhat.com>
6372
6373 * gdbarch.sh: Allow a non- multi-arch target to override a
6374 predicate.
6375 * gdbarch.h: Regenerate.
6376
6377 2001-03-21 Andrew Cagney <ac131313@redhat.com>
6378
6379 * gdbarch.sh: Avoid use of ``!''.
6380
6381 2001-03-20 Andrew Cagney <ac131313@redhat.com>
6382
6383 * target.h (enum target_signal): Move definition from here.
6384 * defs.h (enum target_signal): To here.
6385
6386 * config/arc/tm-arc.h (arc_software_single_step): Change type of
6387 first parameter to enum target_signal.
6388 * config/rs6000/tm-rs6000.h (rs6000_software_single_step): Ditto.
6389 * config/sparc/tm-sparc.h (sparc_software_single_step): Ditto.
6390 * rs6000-tdep.c (rs6000_software_single_step): Update.
6391
6392 2001-03-20 Andrew Cagney <ac131313@redhat.com>
6393
6394 * frame.h (SIZEOF_FRAME_SAVED_REGS): Report an error if macro
6395 already defined.
6396
6397 From 2000-08-25 Stephane Carrez <Stephane.Carrez@worldnet.fr>:
6398 * stabsread.c (define_symbol): A parameter ('R'), a local ('r'),
6399 or a reference ('a') can be in a pseudo register.
6400 * infcmd.c (do_registers_info): Must take into account the pseudo
6401 registers to print their value.
6402 (registers_info): Likewise.
6403 * stack.c (frame_info): Likewise.
6404 * frame.h (SIZEOF_FRAME_SAVED_REGS): Save the pseudo registers.
6405
6406 2001-03-21 Eli Zaretskii <eliz@is.elta.co.il>
6407
6408 Unified support for hardware breakpoints and watchpoints on
6409 x86 targets:
6410
6411 * config/i386/nm-i386.h: New file.
6412
6413 * config/i386/nm-i386.h: (i386_cleanup_dregs)
6414 (i386_insert_watchpoint, i386_remove_watchpoint)
6415 (i386_region_ok_for_watchpoint, i386_stopped_by_hwbp)
6416 (i386_stopped_data_address, i386_insert_hw_breakpoint)
6417 (i386_remove_hw_breakpoint): Declare prototypes.
6418 [I386_USE_GENERIC_WATCHPOINTS] (TARGET_CAN_USE_HARDWARE_WATCHPOINT):
6419 Define if not already defined.
6420 (TARGET_REGION_OK_FOR_HW_WATCHPOINT, HAVE_CONTINUABLE_WATCHPOINT)
6421 (STOPPED_BY_WATCHPOINT, target_stopped_data_address)
6422 (target_insert_watchpoint, target_remove_watchpoint)
6423 (target_insert_hw_breakpoint, target_remove_hw_breakpoint): Define
6424 to call the appropriate i386_* functions.
6425
6426 * i386-nat.c: New file.
6427
6428 * i386-nat.c (I386_DR_CONTROL_MASK, I386_DR_LOCAL_ENABLE)
6429 (I386_DR_GLOBAL_ENABLE, I386_DR_DISABLE, I386_DR_SET_RW_LEN)
6430 (I386_DR_GET_RW_LEN, I386_DR_WATCH_HIT): New macros.
6431 (dr_mirror, dr_status_mirror, dr_control_mirror, dr_ref_count)
6432 (maint_show_dr): New variables.
6433 (i386_cleanup_dregs, i386_show_dr, i386_length_and_rw_bits)
6434 (i386_insert_aligned_watchpoint, i386_remove_aligned_watchpoint)
6435 (i386_handle_nonaligned_watchpoint, i386_insert_watchpoint)
6436 (i386_remove_watchpoint, i386_region_ok_for_watchpoint)
6437 (i386_stopped_data_address, i386_stopped_by_hwbp)
6438 (i386_insert_hw_breakpoint, i386_remove_hw_breakpoint): New
6439 functions.
6440 (_initialize_i386_nat): New function.
6441 [I386_USE_GENERIC_WATCHPOINTS]: Add new maint command
6442 `show-debug-regs', sets maint_show_dr to non-zero value and
6443 activates debugging print-outs in functions which insert, remove,
6444 and test watchpoints and hardware breakpoints.
6445
6446 * Makefile.in (i386-nat.o): New target.
6447 (ALLDEPFILES): Add i386-nat.o.
6448
6449 2001-03-21 Mark Kettenis <kettenis@gnu.org>
6450
6451 * i386-tdep.c: Add back _initialize_i386_tdep prototype with
6452 appropriate comment.
6453
6454 2001-03-20 Kevin Buettner <kevinb@redhat.com>
6455
6456 * config/alpha/alpha-linux.mh (NATDEPFILES): Use proc-service.o,
6457 thread-db.o, and lin-lwp.o for thread support instead of
6458 linux-thread.o and lin-thread.o.
6459 * config/alpha/nm-linux.h (PREPARE_TO_PROCEED, GET_THREAD_SIGNALS)
6460 (ATTACH_LWP): Define to use the following lin-lwp.c functions...
6461 (lin_lwp_prepare_to_proceed, lin_thread_get_thread_signals)
6462 (lin_lwp_attach_lwp): Declare.
6463
6464 2001-03-20 Jim Blandy <jimb@redhat.com>
6465
6466 Fix from Dan Berlin:
6467
6468 * Makefile.in: Clean up dependencies on ../include/demangle.h.
6469 (demangle_h): New variable.
6470 (jv-typeprint.o, jv-valprint.o, linespec.o): Use it.
6471
6472 2001-03-20 Andrew Cagney <ac131313@redhat.com>
6473
6474 * target.h (SOFTWARE_SINGLE_STEP_P): Add empty parameter list.
6475 * breakpoint.c (bpstat_stop_status): Update.
6476 * infrun.c (handle_inferior_event): Ditto.
6477 * mips-tdep.c (mips_dump_tdep): Ditto.
6478 * infrun.c (resume): Ditto.
6479 * infptrace.c (child_resume): Ditto.
6480 * config/mips/tm-wince.h (SOFTWARE_SINGLE_STEP_P): Ditto.
6481 * config/sh/tm-wince.h (SOFTWARE_SINGLE_STEP_P): Ditto.
6482 * config/sparc/tm-sparc.h (SOFTWARE_SINGLE_STEP_P): Ditto.
6483 * config/powerpc/tm-linux.h (SOFTWARE_SINGLE_STEP_P): Ditto.
6484 * config/arm/tm-wince.h (SOFTWARE_SINGLE_STEP_P): Ditto.
6485 * config/arc/tm-arc.h (SOFTWARE_SINGLE_STEP_P): Ditto.
6486 * config/powerpc/tm-ppc-eabi.h (SOFTWARE_SINGLE_STEP_P): Ditto.
6487
6488 2001-03-20 Andrew Cagney <ac131313@redhat.com>
6489
6490 * config/powerpc/tm-linux.h (SOFTWARE_SINGLE_STEP): Replace abort
6491 with internal_error.
6492
6493 2001-03-20 Jim Blandy <jimb@redhat.com>
6494
6495 Fix from Dan Berlin:
6496
6497 * linespec.c (find_methods): Just call CHECK_TYPEDEF on t, rather
6498 than asking for sym_class's type; that's circuitous. Remove
6499 sym_class, since the last use of it is gone.
6500
6501 2001-03-20 Eli Zaretskii <eliz@is.elta.co.il>
6502
6503 * breakpoint.c (print_it_typical) <bp_access_watchpoint> [UI_OUT]:
6504 Correct the order of calls to ui_out_field_string and
6505 ui_out_list_begin when bs->old_val is NULL.
6506
6507 2001-03-19 Kevin Buettner <kevinb@redhat.com>
6508
6509 * configure.in (AC_CHECK_HEADERS): Check for existence of nlist.h.
6510 * configure: Regenerate.
6511 * config.in: Regenerate.
6512 * solib-legacy.c (nlist.h): Include if HAVE_NLIST_H is defined.
6513
6514 2001-03-19 Kevin Buettner <kevinb@redhat.com>
6515
6516 * config/i386/i386v42mp.mh (NATDEPFILES): List all files on
6517 same line to avoid problems with Unixware 7's make when building
6518 a cross debugger.
6519
6520 2001-03-19 Andrew Cagney <ac131313@redhat.com>
6521
6522 * defs.h (malloc): Move declaration from here.
6523 * utils.c (malloc): To here.
6524 * config/pa/xm-hppah.h (malloc): Delete declaration.
6525
6526 * gnu-nat.c (make_proc): Use xmalloc instead of malloc.
6527 * hp-psymtab-read.c (hpread_call_pxdb): Ditto.
6528 (hpread_quick_traverse): Ditto.
6529 * infttrace.c (create_thread_info): Ditto.
6530 (kill_inferior): Ditto.
6531 * gnu-nat.c (make_inf): Ditto, and don't check return value.
6532 * procfs.c (proc_update_threads): Ditto.
6533 * valprint.c (print_decimal_chars): Ditto.
6534 * gdbtypes.c (cfront_mangle_name): Use xasprintf instead of
6535 malloc and sprintf.
6536 * remote-rdp.c (rdp_set_command_line): Ditto.
6537
6538 2001-03-19 Andrew Cagney <ac131313@redhat.com>
6539
6540 * defs.h (realloc): Move declaration from here.
6541 * utils.c (realloc): To here.
6542 * config/pa/xm-hppah.h (realloc): Delete declaration.
6543 * lin-thread.c (insert_thread): Use xrealloc instead of realloc.
6544 * symfile.c (add_filename_language): Ditto.
6545 * event-loop.c (create_file_handler): Ditto.
6546
6547 2001-03-19 Andrew Cagney <ac131313@redhat.com>
6548
6549 * defs.h (free): Move declaration from here.
6550 * utils.c (free): To here.
6551 (xfree): Document as the only call to free().
6552 * config/pa/xm-hppah.h (free): Delete declaration.
6553
6554 2001-03-19 Kevin Buettner <kevinb@redhat.com>
6555
6556 * config/ia64/linux.mh (NATDEPFILES): Add proc-service.o to
6557 this list.
6558
6559 2001-03-19 Andrew Cagney <ac131313@redhat.com>
6560
6561 * eval.c (evaluate_subexp): Remove #ifdef __STDC__ and ``inline''.
6562 * config/mips/xm-mips.h (offsetof): Define when !GNUC not !STDC.
6563 * cli/cli-cmds.c (init_cli_cmds): Remove #ifdef __STDC__
6564
6565 2001-03-19 Andrew Cagney <ac131313@redhat.com>
6566
6567 * TODO: List known problems with TUI.
6568
6569 2001-03-19 Andrew Cagney <ac131313@redhat.com>
6570
6571 * MAINTAINERS: Jimmy Guo stepped down as a maintiner (TUI,
6572 gdb.hp).
6573
6574 2001-03-19 Andrew Cagney <ac131313@redhat.com>
6575
6576 * remote.c (remote_cisco_section_offsets): Do not cast result from
6577 bfd_get_section_name.
6578 (compare_sections_command): Ditto.
6579 (remote_cisco_section_offsets): Make ``p'' a const pointer.
6580 (compare_sections_command): Ditto for ``sectname''.
6581
6582 2001-03-19 Andrew Cagney <ac131313@redhat.com>
6583
6584 From Mon Nov 20 13:59:29 2000 Andrew Cagney <cagney@b1.cygnus.com>:
6585 * valops.c (hand_function_call): Simplify computation of the
6586 address of the pushed argument.
6587
6588 2001-03-17 Andrew Cagney <ac131313@redhat.com>
6589
6590 * p-exp.y (parse_number): Avoid shift overflow when ``long''.
6591 Code copied from c-exp.y.
6592
6593 2001-03-18 Kevin Buettner <kevinb@redhat.com>
6594
6595 * acconfig.h (HAVE_STRUCT_LINK_MAP_WITH_L_MEMBERS)
6596 (HAVE_STRUCT_LINK_MAP_WITH_LM_MEMBERS)
6597 (HAVE_STRUCT_SO_MAP_WITH_SOM_MEMBERS): New configure macros.
6598 * configure.in (HAVE_STRUCT_LINK_MAP32): Move this test out
6599 of the Solaris procfs testing section. Instead, group with...
6600 (HAVE_STRUCT_LINK_MAP_WITH_L_MEMBERS)
6601 (HAVE_STRUCT_LINK_MAP_WITH_LM_MEMBERS)
6602 (HAVE_STRUCT_SO_MAP_WITH_SOM_MEMBERS): New <link.h> tests.
6603 * configure: Regenerate.
6604 * config.in: Regenerate.
6605
6606 * solib-legacy.c (legacy_svr4_fetch_link_map_offsets): Use
6607 new configure macros to choose which (if any) code to
6608 compile in. Added code to explicitly handle *BSD systems;
6609 these systems were previously handled only through macro
6610 redefinition. Also, due to the way the autoconf tests are set
6611 up, this function will no longer return a non-zero value when
6612 GDB is configured as a cross debugger. I.e, cross debuggers
6613 will no longer be able to "accidentally" get the host system's
6614 link map offsets.
6615
6616 2001-03-18 Kevin Buettner <kevinb@redhat.com>
6617
6618 * config/i386/nbsd.mh (NATDEPFILES): List all files on the same
6619 line to avoid build problem on NetBSD 1.4.
6620
6621 2001-03-17 Michael Chastain <chastain@redhat.com>
6622
6623 * win32-nat.c (child_attach): check args for NULL before passing
6624 to strtoul. This fixes PR gdb/43.
6625
6626 2001-03-17 Mark Kettenis <kettenis@gnu.org>
6627
6628 * i387-nat.h: Doc Fix.
6629
6630 * i386-tdep.c: Fix formatting.
6631 (i386_get_frame_setup, i386_follow_jump, codestream_read,
6632 codestream_seek, codestream_fill, skip_trampoline_code,
6633 gdb_print_insn_i386, _initialize_i386_tdep): Remove redundant
6634 prototypoes.
6635
6636 2001-03-17 Mark Kettenis <kettenis@gnu.org>
6637
6638 * config/i386/tm-linux.h (TARGET_ANALYZE_FLOATING): Remove. It's
6639 no longer used. Also remove associated FIXME.
6640
6641 2001-03-16 Andrew Cagney <ac131313@redhat.com>
6642
6643 * gdbarch.sh: Add classes ``m'' and ``M'' for pure multi-arch. Do
6644 not generate macro wrappers for multi-arch functions or
6645 predicates.
6646 (class_is_info_p, class_is_predicate_p): Update.
6647 (class_is_function_p, class_is_variable_p): Ditto.
6648 (class_is_multiarch_p): New class function.
6649
6650 2001-03-16 J.T. Conklin <jtc@redback.com>
6651
6652 * config/h8300/tm-h8300.h (FRAME_ARGS_ADDRESS): Changed to use
6653 h8300_frame_args_address from frame_args_address.
6654 (FRAME_LOCALS_ADDRESS): Changed to use h8300_frame_locals_address
6655 from frame_locals_address.
6656 (PRINT_REGISTER_HOOK): Changed to use h8300_print_register_hook
6657 from print_register_hook.
6658 (h8300_frame_args_address): Declare.
6659 (h8300_frame_find_saved_regs): Declare.
6660 (h8300_frame_locals_address): Declare.
6661 (h8300_frame_saved_pc): Declare.
6662 (h8300_pop_frame): Declare.
6663 (h8300_print_register_hook): Declare.
6664 * h8300-tdep.c (h8300_frame_find_saved_regs): Removed declaration.
6665 (h8300_frame_args_address): Renamed from frame_args_address.
6666 (h8300_frame_locals_address): Renamed from frame_locals_address.
6667 (h8300_pop_frame): Renamed from pop_frame.
6668 (h8300_print_register_hook): Renamed from print_register_hook.
6669
6670 2001-03-16 Kevin Buettner <kevinb@redhat.com>
6671
6672 * solib-svr4.c (bfd_lookup_symbol): Change type of
6673 ``storage_needed'' from unsigned int to long in order to
6674 match return type of bfd_get_symtab_upper_bound() and
6675 bfd_get_dynamic_symtab_upper_bound().
6676 * solib-aix5.c (bfd_lookup_symbol): Likewise. Also, eliminate
6677 REASONABLE_LIMIT hack which had been added to work around this
6678 problem.
6679
6680 2001-03-15 Kevin Buettner <kevinb@redhat.com>
6681
6682 * solib-aix5.c (bfd_lookup_symbol, build_so_list_from_mapfile)
6683 (aix5_relocate_main_executable, aix5_clear_solib): Replace calls
6684 to free() with calls to xfree().
6685 (bfd_lookup_symbol): Eliminate use of PTR.
6686 (build_so_list_from_mapfile): Use xasprintf() instead of sprintf().
6687
6688 2001-03-15 Martin Hunt <hunt@redhat.com>
6689
6690 * linespec.c (decode_line_1): Remove trailing quote
6691 when parsing double quotes.
6692
6693 2001-03-15 Kevin Buettner <kevinb@redhat.com>
6694
6695 * uw-thread.c (read_thr_debug, read_map, read_lwp, thread_iter)
6696 (libthread_stub, libthread_init): Pass NULL for the mem_attrib
6697 argument in the to_xfer_memory calls.
6698
6699 2001-03-15 Andrew Cagney <ac131313@redhat.com>
6700
6701 * MAINTAINERS: Fix typo - w65 not w64. Still doesn't build.
6702 * TODO (GDB 5.1 - Cleanups): Add status of targets being obsoleted.
6703
6704 2001-03-15 Andrew Cagney <ac131313@redhat.com>
6705
6706 * wince.c (child_xfer_memory): Add attrib parameter.
6707 * symm-nat.c (child_xfer_memory): Ditto.
6708 * mac-nat.c (child_xfer_memory): Ditto.
6709 * infttrace.c (child_xfer_memory): Ditto.
6710 * procfs.c (procfs_xfer_memory): Ditto.
6711 * lin-thread.c (thread_db_xfer_memory): Ditto.
6712 * gnu-nat.c (gnu_xfer_memory): Ditto.
6713
6714 2001-03-14 Andrew Cagney <ac131313@redhat.com>
6715
6716 * NEWS: Mention that Harris/CXUX m88k is obsolete.
6717
6718 2001-03-13 Andrew Cagney <ac131313@redhat.com>
6719
6720 * config/mips/tm-mips.h: Include "regcache.h" for macros refering
6721 to regcache functions.
6722 * config/m68k/tm-m68k.h: Ditto.
6723 * config/i386/tm-i386v.h: Ditto.
6724 * config/mcore/tm-mcore.h: Ditto.
6725 * config/m88k/tm-m88k.h: Ditto.
6726 * config/m68k/tm-news.h: Ditto.
6727 * config/m68k/tm-linux.h: Ditto.
6728 * config/m68k/tm-delta68.h: Ditto.
6729 * config/m68k/nm-sun3.h: Ditto.
6730 * config/m32r/tm-m32r.h: Ditto.
6731 * config/i386/tm-symmetry.h: Ditto.
6732 * config/i386/tm-sun386.h: Ditto.
6733 * config/i386/tm-i386.h: Ditto.
6734 * config/i386/nm-symmetry.h: Ditto.
6735 * config/i386/nm-sun386.h: Ditto.
6736 * config/i386/nm-ptx4.h: Ditto.
6737 * config/i386/nm-i386mach.h: Ditto.
6738 * config/h8500/tm-h8500.h: Ditto.
6739 * config/h8300/tm-h8300.h: Ditto.
6740 * config/fr30/tm-fr30.h: Ditto.
6741 * config/d30v/tm-d30v.h: Ditto.
6742 * config/arm/tm-arm.h: Ditto.
6743 * config/arc/tm-arc.h: Ditto.
6744 * config/alpha/tm-alpha.h: Ditto.
6745 * config/a29k/tm-vx29k.h: Ditto.
6746 * config/a29k/tm-a29k.h: Ditto.
6747 * config/w65/tm-w65.h: Ditto.
6748 * config/vax/tm-vax.h: Ditto.
6749 * config/v850/tm-v850.h: Ditto.
6750 * config/tic80/tm-tic80.h: Ditto.
6751 * config/sparc/tm-sparclite.h: Ditto.
6752 * config/sparc/tm-sparclet.h: Ditto.
6753 * config/sparc/tm-sparc.h: Ditto.
6754 * config/sparc/nm-sun4sol2.h: Ditto.
6755 * config/sparc/nm-sun4os4.h: Ditto.
6756 * config/sparc/nm-nbsd.h: Ditto.
6757 * config/powerpc/nm-solaris.h: Ditto.
6758 * config/pa/tm-hppao.h: Ditto.
6759 * config/pa/tm-hppa.h: Ditto.
6760 * config/pa/nm-hppab.h: Ditto.
6761 * config/ns32k/tm-umax.h: Ditto.
6762 * config/ns32k/tm-merlin.h: Ditto.
6763 * config/nm-m3.h: Ditto.
6764 * config/nm-gnu.h: Ditto.
6765
6766 2001-03-14 Andrew Cagney <ac131313@redhat.com>
6767
6768 * MAINTAINERS: Update list of targets. Mark arm-* and v850-elf as
6769 broken. Mark sh-*, ia64-linux and ns32k-netbsd as buildable.
6770 Specify an m88k target. Include sample GAWK script to generate
6771 target list. Delete non-existant romp target.
6772 * TODO (GDB 5.1 - Cleanups): Update.
6773
6774 2001-03-14 Keith Seitz <keiths@cygnus.com>
6775
6776 * linespec.c (decode_line_1): Skip argptr over a leading
6777 double quote. Prevents alloc of 0 bytes and memcpy of -1 bytes.
6778
6779 2001-03-14 Kevin Buettner <kevinb@redhat.com>
6780
6781 * config/djgpp/fnchange.lst (ia64-aix-nat.c): Add entry.
6782
6783 2001-03-13 Andrew Cagney <ac131313@redhat.com>
6784
6785 * ui-out.h: Remove #if __STDC__, assume an ISO-C compiler.
6786 * m3-nat.c: Ditto.
6787 * p-lang.h: Ditto.
6788 * printcmd.c (printf_command): Ditto.
6789 * ch-exp.c (match_integer_literal): Ditto.
6790 * scm-tags.h: Ditto.
6791 * ser-go32.c: Ditto.
6792 * hppa-tdep.c (unwind_command): Ditto.
6793 * defs.h (volatile): Delete macro definition. Assume __STDC__.
6794 * remote-adapt.c (volatile): Ditto.
6795 * remote-eb.c (volatile): Ditto.
6796 * remote-mm.c (volatile): Ditto.
6797 * defs.h (alloca): Assume __STDC__, declare returning void *.
6798
6799 2001-03-08 Andrew Cagney <ac131313@redhat.com>
6800
6801 * inferior.h (ARCH_NUM_REGS): Delete definition.
6802 * stack.c (frame_info): Use NUM_REGS, not ARCH_NUM_REGS.
6803 * regcache.c (registers_changed): Ditto.
6804 (registers_fetched): Ditto.
6805 * infptrace.c (fetch_inferior_registers): Ditto.
6806 (store_inferior_registers): Ditto.
6807 * infcmd.c (do_registers_info): Ditto.
6808 (registers_info): Ditto.
6809 * i386-linux-nat.c (old_fetch_inferior_registers): Ditto.
6810 (old_store_inferior_registers): Ditto.
6811 * gdbserver/low-linux.c (register_addr): Ditto.
6812 * gdbserver/low-hppabsd.c (register_addr): Ditto.
6813 * core-aout.c: Don't include "inferior.h".
6814 (fetch_core_registers): Use NUM_REGS not ARCH_NUM_REGS.
6815 (register_addr): Ditto.
6816
6817 2001-03-13 Fernando Nasser <fnasser@redhat.com>
6818
6819 From Steven Johnson <sjohnson@neurizon.net>
6820 * cli/cli-script.c (define_command): Fix setting of post hooks.
6821
6822 2001-03-13 Mark Kettenis <kettenis@gnu.org>
6823
6824 * i386-linux-tdep.c: Fix formatting and clarify comments.
6825 (i386_linux_svr4_fetch_link_map_offsets): Use NULL instead of 0
6826 where appropriate.
6827
6828 2001-03-12 Andrew Cagney <ac131313@redhat.com>
6829
6830 * gnu-nat.c: Include "gdb_assert.h" instead of <assert.h>.
6831 (proc_update_sc): Use gdb_assert instead of assert.
6832 (proc_abort): Ditto.
6833 (inf_set_step_thread): Ditto.
6834 (gnu_wait): Ditto.
6835 (S_exception_raise_request): Ditto.
6836 (gnu_terminal_init_inferior): Ditto.
6837
6838 2001-03-09 Kevin Buettner <kevinb@redhat.com>
6839
6840 * Makefile.in (solib-svr4.o): Depend on solib-svr4.c, not solib.c.
6841 (solib-legacy.o): New makefile target.
6842 * solib-legacy.c: New file.
6843 * solib-svr4.h (SVR4_FETCH_LINK_MAP_OFFSETS): Delete.
6844 (default_svr4_fetch_link_map_offsets): Delete.
6845 (set_solib_svr4_fetch_link_map_offsets): Declare.
6846 (legacy_svr4_fetch_link_map_offsets_hook): Declare.
6847 * solib-svr4.c (elf/common.h): Include.
6848 (link.h): Only include for SunOS shared library support.
6849 (_SYSCALL32): Don't define.
6850 (SVR4_FETCH_LINK_MAP_OFFSETS): Define.
6851 (default_svr4_fetch_link_map_offsets): Made static; added forward
6852 declaration.
6853 (fetch_link_map_offsets): New static global.
6854 (legacy_svr4_fetch_link_map_offsets_hook): New global variable.
6855 (default_svr4_fetch_link_map_offsets): Rewritten. The guts
6856 of what used to be in this function now reside in
6857 legacy_svr4_fetch_link_map_offsets() in solib-legacy.c.
6858 (open_symbol_file_object): Fix declaration in SunOS section
6859 of the code.
6860 (set_solib_svr4_fetch_link_map_offsets): New extern function.
6861 (init_fetch_link_map_offsets): New static function.
6862 (_initialize_svr4_solib): Put static global fetch_link_map_offsets
6863 under multiarch control.
6864
6865 * config/alpha/alpha-linux.mt (TDEPFILES): Add solib-legacy.o to
6866 list.
6867 * config/alpha/fbsd.mh (NATDEPFILES): Likewise.
6868 * config/arm/linux.mt (TDEPFILES): Likewise.
6869 * config/i386/fbsd.mh (NATDEPFILES): Likewise.
6870 * config/i386/i386dgux.mh (NATDEPFILES): Likewise.
6871 * config/i386/i386gnu.mh (NATDEPFILES): Likewise.
6872 * config/i386/i386sco5.mh (NATDEPFILES): Likewise.
6873 * config/i386/i386sol2.mt (TDEPFILES): Likewise.
6874 * config/i386/i386v4.mh (NATDEPFILES): Likewise.
6875 * config/i386/i386v42mp.mh (NATDEPFILES): Likewise.
6876 * config/i386/linux.mt (TDEPFILES): Likewise.
6877 * config/i386/nbsd.mh (NATDEPFILES): Likewise.
6878 * config/i386/nbsdelf.mh (NATDEPFILES): Likewise.
6879 * config/i386/ncr3000.mt (TDEPFILES): Likewise.
6880 * config/i386/ptx4.mh (XDEPFILES): Likewise.
6881 * config/i386/sun386.mt (TDEPFILES): Likewise.
6882 * config/ia64/linux.mt (TDEPFILES): Likewise.
6883 * config/m68k/linux.mt (TDEPFILES): Likewise.
6884 * config/m68k/m68kv4.mh (NATDEPFILES): Likewise.
6885 * config/m68k/nbsd.mh (NATDEPFILES): Likewise.
6886 * config/m68k/sun2os4.mt (TDEPFILES): Likewise.
6887 * config/m68k/sun3os4.mt (TDEPFILES): Likewise.
6888 * config/m88k/delta88v4.mh (NATDEPFILES): Likewise.
6889 * config/mips/mipsv4.mh (NATDEPFILES): Likewise.
6890 * config/ns32k/nbsd.mh (NATDEPFILES): Likewise.
6891 * config/powerpc/linux.mt (TDEPFILES): Likewise.
6892 * config/powerpc/nbsd.mh (NATDEPFILES): Likewise.
6893 * config/powerpc/solaris.mh (NATDEPFILES): Likewise.
6894 * config/sh/linux.mt (TDEPFILES): Likewise.
6895 * config/sparc/linux.mt (TDEPFILES): Likewise.
6896 * config/sparc/nbsd.mh (NATDEPFILES): Likewise.
6897 * config/sparc/nbsdelf.mh (NATDEPFILES): Likewise.
6898 * config/sparc/sp64linux.mt (TDEPFILES): Likewise.
6899 * config/sparc/sun4os4.mt (TDEPFILES): Likewise.
6900 * config/sparc/sun4sol2.mh (NATDEPFILES): Likewise.
6901
6902 2001-03-09 Kevin Buettner <kevinb@redhat.com>
6903
6904 * utils.c (xmrealloc, xcalloc): Return NULL for zero-sized requests.
6905
6906 2001-03-09 Andrew Cagney <ac131313@redhat.com>
6907
6908 * MAINTAINERS (Write After Approval): Update Philip Blundell.
6909
6910 2001-03-09 Keith Seitz <keiths@cygnus.com>
6911
6912 * MAINTAINERS: Add myself to write after approval list.
6913
6914 2001-03-09 Mark Kettenis <kettenis@gnu.org>
6915
6916 * i387-tdep.c (print_i387_status_word): Fix printing of Stack
6917 fault flag. It is bit 6 of the x87 FPU status word, not bit 7.
6918
6919 2001-03-08 Andrew Cagney <ac131313@redhat.com>
6920
6921 * configure.host (m88*-harris-cxux*): Mark as obsolete.
6922 * configure.tgt: Ditto.
6923 * config/m88k/xm-cxux.h: Ditto.
6924 * config/m88k/tm-cxux.h: Ditto.
6925 * config/m88k/nm-cxux.h: Ditto.
6926 * config/m88k/cxux.mt: Ditto.
6927 * config/m88k/cxux.mh: Ditto.
6928
6929 2001-03-08 Andrew Cagney <ac131313@redhat.com>
6930
6931 * Makefile.in: Delete rules for obsolete files.
6932
6933 Thu Mar 8 15:43:40 2001 David Taylor <taylor@redhat.com>
6934
6935 * stack.c (parse_frame_specification): For one argument case,
6936 handle the situation where the argument is an integer, not an
6937 address -- arguably the most common case. This matters on
6938 targets where pointers and addresses are different.
6939
6940 2001-03-08 Andrew Cagney <ac131313@redhat.com>
6941
6942 * TODO: Revise 5.1 list. Delete PARAMS task. Add coding standard
6943 review. Clarify GNU/LINUX/sparc. Move other tasks to 5.2 or
6944 general.
6945
6946 2001-03-07 Andrew Cagney <ac131313@redhat.com>
6947
6948 * TODO (GDB 5.1 Known Problems): Document problem of building GDB
6949 with SID on Solaris 8.
6950
6951 2001-03-07 Mark Kettenis <kettenis@gnu.org>
6952
6953 * defs.h: Provide prototypes for floatformat_is_negative,
6954 floatformat_is_nan and floatformat_mantissa.
6955 * utils.c: Include "gdb_assert.h".
6956 (floatformat_is_negative): New function.
6957 (floatformat_is_nan): New function.
6958 (floatformat_mantissa): New function.
6959 * valprint.c: Include "floatformat.h".
6960 (print_floating): Get rid of the Linux-specific
6961 TARGET_ANALYZE_FLOATING macro and rewrite NaN detection with the
6962 help these new functions. Print NaN's in a format conforming to
6963 ISO C99.
6964
6965 2001-03-07 Eli Zaretskii <eliz@is.elta.co.il>
6966
6967 * top.c (init_main): Make `set history file name' complete on file
6968 names.
6969
6970 2001-03-06 J.T. Conklin <jtc@redback.com>
6971
6972 * Makefile.in (LINTFLAGS): Update to contain all of the macros
6973 which define include paths used when compiling.
6974
6975 * util.c (savestring, msavestring): Change type of length argument.
6976 * defs.h (savestring, msavestring): Update to match.
6977
6978 * symtab.h (decode_line_1): Removed declaration.
6979
6980 * symfile.c (#include <assert.h>): Removed.
6981
6982 * arch-utils.c (#include <ctype.h>): Removed.
6983 * c-typeprint.c: Likewise.
6984 * dbxread.c: Likewise.
6985 * gdbtypes.c: Likewise.
6986 * target.c: Likewise.
6987 * os9kread.c: Likewise.
6988
6989 * c-valprint.c (#include "demangle.h"): Removed.
6990 * ch-typeprint.c: Likewise.
6991 * eval.c: Likewise.
6992 * f-typeprint.c: Likewise.
6993 * f-valprint.c: Likewise.
6994 * m2-typeprint.c: Likewise.
6995 * typeprint.c: Likewise.
6996 * p-typeprint.c: Likewise.
6997 * valarith.c: Likewise.
6998 * valprint.c: Likewise.
6999
7000 * m2-typeprint.c (#include "gdb_string.h"): Removed.
7001 * nlmread.c: Likewise.
7002
7003 * mdebugread.c (#include "gdb-stabs.h"): Removed.
7004 * minsyms.c: Likewise.
7005 * mipsread.c: Likewise.
7006 * nlmread.c: Likewise.
7007
7008 * m2-typeprint.c (#include "obstack.h"): Removed.
7009 * m2-valprint.c: Likewise.
7010
7011 * event-loop.c (#include <setjmp.h>): Removed.
7012
7013 2001-03-06 Stan Shebs <shebs@apple.com>
7014
7015 * MAINTAINERS: Remove self from specific maintenance domains
7016 (macos, gdbserver, documentation, testsuite).
7017
7018 2001-03-06 Kevin Buettner <kevinb@redhat.com>
7019
7020 * 29k-share/udi/udip2soc.c, Makefile.in, a29k-tdep.c,
7021 a68v-nat.c, abug-rom.c, aclocal.m4, alpha-nat.c, alpha-tdep.c,
7022 annotate.c, annotate.h, arc-tdep.c, arch-utils.c,
7023 arch-utils.h, arm-tdep.c, ax-gdb.c, ax-gdb.h, ax-general.c,
7024 ax.h, bcache.c, bcache.h, blockframe.c, breakpoint.c,
7025 breakpoint.h, buildsym.c, buildsym.h, c-exp.y, c-lang.c,
7026 c-lang.h, c-typeprint.c, c-valprint.c, call-cmds.h, ch-exp.c,
7027 ch-lang.c, ch-lang.h, ch-typeprint.c, ch-valprint.c,
7028 cli/cli-cmds.h, cli/cli-decode.c, cli/cli-decode.h,
7029 cli/cli-script.c, cli/cli-script.h, cli/cli-setshow.h,
7030 cli/cli-utils.h, cli-out.c, cli-out.h, coff-solib.c,
7031 coff-solib.h, coffread.c, command.h, complaints.c,
7032 complaints.h, completer.c, completer.h,
7033 config/a29k/nm-ultra3.h, config/a29k/tm-a29k.h,
7034 config/a29k/tm-ultra3.h, config/a29k/tm-vx29k.h,
7035 config/a29k/xm-ultra3.h, config/alpha/nm-fbsd.h,
7036 config/alpha/nm-linux.h, config/alpha/nm-osf.h,
7037 config/alpha/nm-osf2.h, config/alpha/nm-osf3.h,
7038 config/alpha/tm-alpha.h, config/alpha/tm-alphalinux.h,
7039 config/alpha/xm-alphalinux.h, config/alpha/xm-alphaosf.h,
7040 config/alpha/xm-fbsd.h, config/arc/tm-arc.h,
7041 config/arm/nm-linux.h, config/arm/tm-arm.h,
7042 config/arm/tm-embed.h, config/d10v/tm-d10v.h,
7043 config/d30v/tm-d30v.h, config/fr30/tm-fr30.h,
7044 config/h8300/tm-h8300.h, config/h8500/tm-h8500.h,
7045 config/i386/nm-fbsd.h, config/i386/nm-gnu.h,
7046 config/i386/nm-i386bsd.h, config/i386/nm-i386mach.h,
7047 config/i386/nm-i386sco.h, config/i386/nm-i386sol2.h,
7048 config/i386/nm-i386v.h, config/i386/nm-i386v4.h,
7049 config/i386/nm-i386v42mp.h, config/i386/nm-linux.h,
7050 config/i386/nm-nbsd.h, config/i386/nm-nbsdelf.h,
7051 config/i386/nm-ptx4.h, config/i386/nm-sun386.h,
7052 config/i386/nm-symmetry.h, config/i386/tm-cygwin.h,
7053 config/i386/tm-fbsd.h, config/i386/tm-i386.h,
7054 config/i386/tm-i386aix.h, config/i386/tm-i386bsd.h,
7055 config/i386/tm-i386gnu.h, config/i386/tm-i386lynx.h,
7056 config/i386/tm-i386m3.h, config/i386/tm-i386mk.h,
7057 config/i386/tm-i386nw.h, config/i386/tm-i386os9k.h,
7058 config/i386/tm-i386sco5.h, config/i386/tm-i386sol2.h,
7059 config/i386/tm-i386v.h, config/i386/tm-i386v4.h,
7060 config/i386/tm-i386v42mp.h, config/i386/tm-linux.h,
7061 config/i386/tm-nbsd.h, config/i386/tm-ptx.h,
7062 config/i386/tm-ptx4.h, config/i386/tm-sun386.h,
7063 config/i386/tm-symmetry.h, config/i386/tm-vxworks.h,
7064 config/i386/xm-fbsd.h, config/i386/xm-i386bsd.h,
7065 config/i386/xm-i386gnu.h, config/i386/xm-i386m3.h,
7066 config/i386/xm-i386mach.h, config/i386/xm-i386mk.h,
7067 config/i386/xm-i386sco.h, config/i386/xm-i386v4.h,
7068 config/i386/xm-linux.h, config/i386/xm-nbsd.h,
7069 config/i386/xm-ptx.h, config/i386/xm-ptx4.h,
7070 config/i386/xm-sun386.h, config/i386/xm-symmetry.h,
7071 config/i960/tm-i960.h, config/i960/tm-mon960.h,
7072 config/i960/tm-nindy960.h, config/i960/tm-vx960.h,
7073 config/ia64/nm-aix.h, config/ia64/nm-linux.h,
7074 config/ia64/tm-aix.h, config/ia64/tm-ia64.h,
7075 config/ia64/tm-linux.h, config/ia64/xm-aix.h,
7076 config/ia64/xm-linux.h, config/m68k/nm-apollo68b.h,
7077 config/m68k/nm-delta68.h, config/m68k/nm-dpx2.h,
7078 config/m68k/nm-hp300bsd.h, config/m68k/nm-hp300hpux.h,
7079 config/m68k/nm-linux.h, config/m68k/nm-sun3.h,
7080 config/m68k/tm-apollo68b.h, config/m68k/tm-cisco.h,
7081 config/m68k/tm-dpx2.h, config/m68k/tm-es1800.h,
7082 config/m68k/tm-hp300bsd.h, config/m68k/tm-hp300hpux.h,
7083 config/m68k/tm-isi.h, config/m68k/tm-linux.h,
7084 config/m68k/tm-m68k.h, config/m68k/tm-m68kv4.h,
7085 config/m68k/tm-mac.h, config/m68k/tm-monitor.h,
7086 config/m68k/tm-nbsd.h, config/m68k/tm-news.h,
7087 config/m68k/tm-os68k.h, config/m68k/tm-sun3.h,
7088 config/m68k/tm-vx68.h, config/m68k/xm-3b1.h,
7089 config/m68k/xm-apollo68b.h, config/m68k/xm-dpx2.h,
7090 config/m68k/xm-hp300bsd.h, config/m68k/xm-hp300hpux.h,
7091 config/m68k/xm-linux.h, config/m68k/xm-m68kv4.h,
7092 config/m68k/xm-mpw.h, config/m68k/xm-news.h,
7093 config/m68k/xm-sun2.h, config/m68k/xm-sun3.h,
7094 config/m68k/xm-sun3os4.h, config/m88k/nm-delta88v4.h,
7095 config/m88k/tm-delta88.h, config/m88k/tm-delta88v4.h,
7096 config/m88k/tm-m88k.h, config/m88k/xm-cxux.h,
7097 config/m88k/xm-delta88.h, config/m88k/xm-delta88v4.h,
7098 config/m88k/xm-dgux.h, config/mcore/tm-mcore.h,
7099 config/mips/nm-irix3.h, config/mips/nm-irix4.h,
7100 config/mips/nm-irix5.h, config/mips/nm-mips.h,
7101 config/mips/nm-news-mips.h, config/mips/tm-bigmips.h,
7102 config/mips/tm-embed.h, config/mips/tm-embed64.h,
7103 config/mips/tm-embedl.h, config/mips/tm-embedl64.h,
7104 config/mips/tm-irix3.h, config/mips/tm-irix5.h,
7105 config/mips/tm-mips.h, config/mips/tm-mips64.h,
7106 config/mips/tm-mipsm3.h, config/mips/tm-mipsv4.h,
7107 config/mips/tm-tx39.h, config/mips/tm-tx39l.h,
7108 config/mips/tm-vr4100.h, config/mips/tm-vr4300.h,
7109 config/mips/tm-vr4300el.h, config/mips/tm-vr4xxx.h,
7110 config/mips/tm-vr4xxxel.h, config/mips/tm-vr5000.h,
7111 config/mips/tm-vr5000el.h, config/mips/xm-irix3.h,
7112 config/mips/xm-irix4.h, config/mips/xm-irix5.h,
7113 config/mips/xm-mips.h, config/mips/xm-mipsm3.h,
7114 config/mips/xm-mipsv4.h, config/mips/xm-news-mips.h,
7115 config/mips/xm-riscos.h, config/mn10200/tm-mn10200.h,
7116 config/mn10300/tm-mn10300.h, config/nm-gnu.h,
7117 config/nm-linux.h, config/nm-lynx.h, config/nm-m3.h,
7118 config/nm-sysv4.h, config/none/nm-none.h,
7119 config/none/tm-none.h, config/none/xm-none.h,
7120 config/ns32k/nm-nbsd.h, config/ns32k/nm-umax.h,
7121 config/ns32k/tm-merlin.h, config/ns32k/tm-nbsd.h,
7122 config/ns32k/tm-ns32km3.h, config/ns32k/tm-umax.h,
7123 config/ns32k/xm-merlin.h, config/ns32k/xm-ns32km3.h,
7124 config/pa/nm-hppab.h, config/pa/nm-hppah.h,
7125 config/pa/nm-hppao.h, config/pa/tm-hppa.h,
7126 config/pa/tm-hppa64.h, config/pa/tm-hppah.h,
7127 config/pa/xm-hppab.h, config/pa/xm-hppah.h,
7128 config/powerpc/nm-aix.h, config/powerpc/nm-linux.h,
7129 config/powerpc/nm-macos.h, config/powerpc/nm-nbsd.h,
7130 config/powerpc/tm-cygwin.h, config/powerpc/tm-linux.h,
7131 config/powerpc/tm-macos.h, config/powerpc/tm-ppc-aix.h,
7132 config/powerpc/tm-ppc-eabi.h, config/powerpc/tm-ppc-nw.h,
7133 config/powerpc/tm-ppcle-eabi.h, config/powerpc/tm-solaris.h,
7134 config/powerpc/xm-aix.h, config/powerpc/xm-linux.h,
7135 config/powerpc/xm-mpw.h, config/rs6000/nm-rs6000.h,
7136 config/rs6000/tm-rs6000.h, config/rs6000/tm-rs6000ly.h,
7137 config/rs6000/xm-aix4.h, config/rs6000/xm-rs6000.h,
7138 config/sh/tm-linux.h, config/sh/tm-sh.h, config/sh/tm-wince.h,
7139 config/sparc/nm-linux.h, config/sparc/nm-nbsd.h,
7140 config/sparc/nm-nbsdelf.h, config/sparc/nm-sparclynx.h,
7141 config/sparc/nm-sun4os4.h, config/sparc/nm-sun4sol2.h,
7142 config/sparc/tm-linux.h, config/sparc/tm-sp64.h,
7143 config/sparc/tm-sp64sim.h, config/sparc/tm-sparc.h,
7144 config/sparc/tm-sparclet.h, config/sparc/tm-sparclite.h,
7145 config/sparc/tm-sparclynx.h, config/sparc/tm-spc-em.h,
7146 config/sparc/tm-sun4os4.h, config/sparc/tm-sun4sol2.h,
7147 config/sparc/xm-sun4os4.h, config/sparc/xm-sun4sol2.h,
7148 config/tic80/tm-tic80.h, config/tm-linux.h, config/tm-lynx.h,
7149 config/tm-sysv4.h, config/v850/tm-v850.h, config/vax/tm-vax.h,
7150 config/w65/tm-w65.h, config/xm-aix4.h, config/xm-lynx.h,
7151 config/xm-mpw.h, config/xm-nbsd.h, config/xm-sysv4.h,
7152 config/z8k/tm-z8k.h, configure.in, core-aout.c, core-regset.c,
7153 core-sol2.c, corefile.c, corelow.c, cp-valprint.c,
7154 cpu32bug-rom.c, cxux-nat.c, d10v-tdep.c, d30v-tdep.c,
7155 dbug-rom.c, dbxread.c, dcache.c, dcache.h, defs.h,
7156 delta68-nat.c, demangle.c, dink32-rom.c, dpx2-nat.c, dsrec.c,
7157 dstread.c, dve3900-rom.c, dwarf2read.c, dwarfread.c,
7158 elfread.c, environ.c, environ.h, eval.c, event-loop.c,
7159 event-loop.h, event-top.c, exec.c, expprint.c, f-exp.y,
7160 f-lang.c, f-lang.h, f-typeprint.c, f-valprint.c, findvar.c,
7161 fork-child.c, fr30-tdep.c, frame.c, frame.h, gdb-events.c,
7162 gdb-events.h, gdb-events.sh, gdb-stabs.h, gdb.1, gdb_string.h,
7163 gdb_thread_db.h, gdbcmd.h, gdbcore.h, gdbserver/Makefile.in,
7164 gdbserver/gdbreplay.c, gdbserver/gdbserver.1,
7165 gdbserver/low-hppabsd.c, gdbserver/low-linux.c,
7166 gdbserver/low-lynx.c, gdbserver/low-nbsd.c,
7167 gdbserver/low-sim.c, gdbserver/low-sparc.c,
7168 gdbserver/low-sun3.c, gdbserver/remote-utils.c,
7169 gdbserver/server.c, gdbserver/server.h, gdbserver/utils.c,
7170 gdbthread.h, gdbtypes.c, gdbtypes.h, gnu-nat.c, gnu-nat.h,
7171 gnu-regex.c, gnu-regex.h, h8300-tdep.c, h8500-tdep.c,
7172 hp-psymtab-read.c, hp-symtab-read.c, hp300ux-nat.c,
7173 hppa-tdep.c, hppab-nat.c, hppah-nat.c, hppam3-nat.c, hpread.c,
7174 hpread.h, hpux-thread.c, i386-tdep.c, i386aix-nat.c,
7175 i386b-nat.c, i386gnu-nat.c, i386ly-tdep.c, i386m3-nat.c,
7176 i386mach-nat.c, i386nbsd-nat.c, i386nbsd-tdep.c, i386v-nat.c,
7177 i386v4-nat.c, i387-tdep.c, i960-tdep.c, infcmd.c, inferior.h,
7178 inflow.c, infptrace.c, infrun.c, inftarg.c, infttrace.c,
7179 irix4-nat.c, irix5-nat.c, isi-xdep.c, jv-exp.y, jv-lang.c,
7180 jv-lang.h, jv-typeprint.c, jv-valprint.c, kdb-start.c,
7181 kod-cisco.c, kod.c, language.c, language.h, lin-thread.c,
7182 linespec.c, linespec.h, linux-thread.c, lynx-nat.c, m2-exp.y,
7183 m2-lang.c, m2-lang.h, m2-typeprint.c, m2-valprint.c, m3-nat.c,
7184 m32r-rom.c, m32r-tdep.c, m68k-tdep.c, m68klinux-nat.c,
7185 m68knbsd-nat.c, m88k-nat.c, m88k-tdep.c, mac-nat.c,
7186 mac-xdep.c, main.c, maint.c, mcore-rom.c, mcore-tdep.c,
7187 mdebugread.c, mem-break.c, minimon.h, minsyms.c, mips-nat.c,
7188 mips-tdep.c, mipsm3-nat.c, mipsread.c, mipsv4-nat.c,
7189 mn10200-tdep.c, mn10300-tdep.c, mon960-rom.c, monitor.c,
7190 monitor.h, news-xdep.c, nindy-share/env.h, nindy-tdep.c,
7191 nlm/Makefile.in, nlmread.c, ns32k-tdep.c, ns32km3-nat.c,
7192 ns32knbsd-nat.c, objfiles.c, objfiles.h, ocd.c, ocd.h,
7193 op50-rom.c, os9kread.c, osfsolib.c, p-exp.y, pa64solib.c,
7194 pa64solib.h, parse.c, parser-defs.h, partial-stab.h,
7195 ppc-bdm.c, ppc-linux-nat.c, ppc-linux-tdep.c, ppcbug-rom.c,
7196 ppcnbsd-nat.c, printcmd.c, proc-api.c, proc-events.c,
7197 proc-flags.c, proc-utils.h, proc-why.c, procfs.c, ptx4-nat.c,
7198 rdi-share/Makefile.in, rdi-share/aclocal.m4, regcache.c,
7199 regcache.h, remote-adapt.c, remote-array.c, remote-bug.c,
7200 remote-e7000.c, remote-eb.c, remote-es.c, remote-est.c,
7201 remote-hms.c, remote-mips.c, remote-mm.c, remote-nindy.c,
7202 remote-nrom.c, remote-os9k.c, remote-rdi.c, remote-rdp.c,
7203 remote-sds.c, remote-sim.c, remote-st.c, remote-udi.c,
7204 remote-utils.c, remote-utils.h, remote-vx.c, remote.c,
7205 remote.h, reply_mig_hack.awk, rom68k-rom.c, rs6000-nat.c,
7206 rs6000-tdep.c, scm-exp.c, scm-lang.c, scm-lang.h, scm-tags.h,
7207 scm-valprint.c, ser-e7kpc.c, ser-mac.c, ser-ocd.c, ser-pipe.c,
7208 ser-tcp.c, ser-unix.c, serial.c, serial.h, sh-tdep.c,
7209 sh3-rom.c, sol-thread.c, solib-aix5.c, solib-svr4.c, solib.c,
7210 solib.h, solist.h, somread.c, somsolib.c, somsolib.h,
7211 source.c, sparc-nat.c, sparc-tdep.c, sparcl-tdep.c,
7212 sparclet-rom.c, srec.h, stabsread.c, stabsread.h, stack.c,
7213 standalone.c, stop-gdb.c, stuff.c, sun3-nat.c, sun386-nat.c,
7214 symfile.c, symfile.h, symm-nat.c, symm-tdep.c, symmisc.c,
7215 symtab.c, symtab.h, target.c, target.h, terminal.h, thread.c,
7216 tic80-tdep.c, top.c, top.h, tracepoint.c, tracepoint.h,
7217 typeprint.c, ui-file.c, ui-file.h, ui-out.h, ultra3-nat.c,
7218 ultra3-xdep.c, umax-xdep.c, utils.c, v850-tdep.c, v850ice.c,
7219 valarith.c, valops.c, valprint.c, value.h, values.c, varobj.h,
7220 vax-tdep.c, version.h, vx-share/vxWorks.h, vx-share/xdr_ld.c,
7221 vx-share/xdr_ptrace.c, vx-share/xdr_ptrace.h,
7222 vx-share/xdr_rdb.c, w65-tdep.c, w89k-rom.c, win32-nat.c,
7223 wrapper.c, wrapper.h, xcoffread.c, xcoffsolib.c, xcoffsolib.h,
7224 xmodem.c, xmodem.h, z8k-tdep.c: Update/correct copyright
7225 notices.
7226
7227 2001-03-05 Kevin Buettner <kevinb@redhat.com>
7228
7229 * acconfig.h (HAVE_PRSYSENT_T, HAVE_PR_SIGSET_T,
7230 HAVE_PR_SIGACTION64_T, HAVE_PR_SIGINFO64_T): New configure
7231 macros.
7232 * configure.in (prsysent_t, pr_sigset_t, pr_sigaction64_t,
7233 pr_siginfo64_t): Test for these typedefs in <sys/procfs.h>.
7234 (sys/fault.h, sys/select.h): Test for presence of these
7235 header files.
7236 (ia64-*-aix*): Define NEW_PROC_API for this host.
7237 * configure: Regenerate.
7238 * config.in: Regenerate.
7239
7240 * configure.host (ia64-*-aix*): New host.
7241 * configure.tgt (ia64-*-aix*): New target.
7242
7243 2001-03-05 Andrew Cagney <ac131313@redhat.com>
7244
7245 * TODO (GDB 5.1 Known Problems): Document z8k as broken.
7246
7247 Mon Mar 5 11:56:09 2001 Christopher Faylor <cgf@cygnus.com>
7248
7249 * wince.c: Change realloc to xrealloc throughout.
7250 (handle_load_dll): Use void * rather than PTR in argument.
7251
7252 2001-03-04 Andrew Cagney <ac131313@redhat.com>
7253
7254 * ocd.h (ocd_xfer_memory): Add ``attrib'' parameter.
7255 * ocd.c (ocd_xfer_memory): Ditto.
7256 * ser-ocd.c (ocd_setstopbits): New function. Add to ocd_ops.
7257 * MAINTAINERS: Document powerpc-eabi and powerpcle-eabi as
7258 buildable with ,-Werror.
7259
7260 * Makefile.in (symfile_h): Define.
7261 (mcore-tdep.o): Add $(symfile_h), $(gdbcore_h) and $(inferior_h).
7262 * mcore-tdep.c: Include "symfile.h", "gdbcore.h" and "inferior.h".
7263 * MAINTAINERS: Document mcore-elf and mcore-pe as buildable with
7264 ,-Werror.
7265
7266 * dsrec.c (make_srec): Fix internal_error fmt arg.
7267 * MAINTAINERS: Document i960-coff as buildable with ,-Werror.
7268
7269 2001-03-03 Kevin Buettner <kevinb@redhat.com>
7270
7271 * solib-aix5.c (aix5_relocate_main_executable): Don't use ANOFFSET
7272 as an lvalue.
7273
7274 2001-03-02 Andrew Cagney <ac131313@redhat.com>
7275
7276 * MAINTAINERS (paper trail): Update.
7277
7278 * CONTRIBUTE: Update note on ``Fix PR gdb/4706'' convention.
7279
7280 2001-03-02 Andrew Cagney <ac131313@redhat.com>
7281
7282 From 2001-03-01 Tom Rix <trix@redhat.com>:
7283 * mn10200-tdep.c (mn10200_frame_chain): Pass 0 for ``pc''
7284 parameter to mn10200_analyze_prologue.
7285
7286 * config/mn10200/tm-mn10200.h: Include "regcache.h".
7287 * MAINTAINERS: Document that mn10200-elf target is buildable.
7288
7289 2001-03-02 Kevin Buettner <kevinb@redhat.com>
7290
7291 * config/ia64/xm-aix.h (GDB_GREGSET_T, GDB_FPREGSET_T): Move defines
7292 from here...
7293 * config/ia64/nm-aix.h (GDB_GREGSET_T, GDB_FPREGSET_T): ...to here.
7294 (MONTEREY): Don't define.
7295 (AIX5): Define.
7296
7297 2001-03-02 Matt Hiller <hiller@redhat.com>
7298
7299 * config/mn10300/tm-mn10300.h (E0_REGNUM): Correct to 15.
7300
7301 2001-03-02 Kevin Buettner <kevinb@redhat.com>
7302
7303 * sparc-nat.c (sparc-nat.c): Don't include self.
7304
7305 2001-03-01 J.T. Conklin <jtc@redback.com>
7306
7307 * defs.h (__CYGWIN__): Moved conditional which defines __CYGWIN__
7308 if __CYGWIN32__ is set from here.
7309 * config/i386/xm-cygwin.h: To here.
7310 * config/powerpc/xm-cygwin.h: To here.
7311
7312 * i386-stub.c (handle_exception): Use 'T' response packet.
7313
7314 2001-03-01 Michael Snyder <msnyder@mvstp600e.cygnus.com>
7315
7316 * m32r-tdep.c: Fix cut and paste error in comment.
7317
7318 2001-02-28 Michael Snyder <msnyder@mvstp600e.cygnus.com>
7319
7320 * symtab.c (print_msymbol_info): Print addresses by portable method
7321 longest_local_hex_string_custom. Allow for 64-bit addresses.
7322
7323 2001-03-01 J.T. Conklin <jtc@redback.com>
7324
7325 * gdbtypes.h (builtin_type_f_integer): Removed duplicate declaration.
7326 (MAX_OF_TYPE): Wrap macro definition in parenthesis.
7327 (MIN_OF_TYPE): Likewise.
7328
7329 * memattr.h (mem_access_mode): Removed extraneous trailing comma.
7330
7331 2001-03-01 Andrew Cagney <ac131313@redhat.com>
7332
7333 * Makefile.in (os9kread.o): Do not compile with WERROR_CFLAGS.
7334 * os9kread.c (os9k_process_one_symbol): Add assert to detect
7335 ``loses if sizeof (char *) > sizeof (int)''.
7336
7337 2001-03-01 Andrew Cagney <ac131313@redhat.com>
7338
7339 * gdb_assert.h: Document pragmatics behind gdb_assert's case.
7340
7341 2001-03-01 Andrew Cagney <ac131313@redhat.com>
7342
7343 * Makefile.in (gdbtk-cmds.o): Add $(regcache_h) to dependency
7344 lists.
7345 (mi-main.o): Ditto.
7346
7347 2001-03-01 Andrew Cagney <ac131313@redhat.com>
7348
7349 * Makefile.in (regcache_h): Define. Add $(regcache_h) to
7350 dependency lists.
7351
7352 2001-02-28 Michael Snyder <msnyder@mvstp600e.cygnus.com>
7353
7354 * printcmd.c (print_address_numeric): Update comments to refer
7355 to sizeof addr, not sizeof pointer.
7356 (x_command): Remove needless whitespace (shorten long line).
7357
7358 * breakpoint.c (print_one_breakpoint): Formatting clean-up.
7359 (read_memory_nobpt): Ditto.
7360 (ep_is_catchpoint): Ditto.
7361 (ep_is_shlib_catchpoint): Ditto.
7362 (ep_is_exception_catchpoint): Ditto.
7363 (describe_other_breakpoints): Ditto.
7364
7365 Wed Feb 28 20:37:36 2001 Andrew Cagney <ac131313@redhat.com>
7366
7367 * regcache.h (register_valid): Fix comment documenting valid
7368 states.
7369
7370 Tue Feb 27 23:56:23 2001 Andrew Cagney <ac131313@redhat.com>
7371
7372 From Steven Johnson:
7373 * regcache.h: New file.
7374
7375 * value.h (read_register_bytes, read_register_gen)
7376 (write_register_gen, write_register_bytes)
7377 (read_register, read_register_pid)
7378 (read_signed_register, read_signed_register_pid)
7379 (write_register, write_register_pid)
7380 (register_cached, set_register_cached)
7381 (register_changed, register_buffer)
7382 (registers_changed, supply_register): Move declaration from here.
7383 * regcache.h: To here.
7384 * gdbcore.h (registers_fetched): Ditto.
7385 * inferior.h (registers, registers_valid): Ditto.
7386
7387 * regcache.c (generic_target_read_pc, read_pc_pid, read_pc,
7388 generic_target_write_pc, write_pc_pid, write_pc,
7389 generic_target_read_sp, read_sp, generic_target_write_sp,
7390 write_sp, generic_target_read_fp, read_fp,
7391 generic_target_write_fp, write_fp): Add note that these functions
7392 will be moved from this file.
7393
7394 * a29k-tdep.c: Include "regcache.h".
7395 * a68v-nat.c: Ditto.
7396 * abug-rom.c: Ditto.
7397 * alpha-nat.c: Ditto.
7398 * alpha-tdep.c: Ditto.
7399 * alphabsd-nat.c: Ditto.
7400 * arc-tdep.c: Ditto.
7401 * arm-linux-nat.c: Ditto.
7402 * arm-linux-tdep.c: Ditto.
7403 * arm-tdep.c: Ditto.
7404 * blockframe.c: Ditto.
7405 * core-aout.c: Ditto.
7406 * core-sol2.c: Ditto.
7407 * corelow.c: Ditto.
7408 * cpu32bug-rom.c: Ditto.
7409 * cxux-nat.c: Ditto.
7410 * d10v-tdep.c: Ditto.
7411 * d30v-tdep.c: Ditto.
7412 * dbug-rom.c: Ditto.
7413 * dink32-rom.c: Ditto.
7414 * dve3900-rom.c: Ditto.
7415 * findvar.c: Ditto.
7416 * fr30-tdep.c: Ditto.
7417 * frame.c: Ditto.
7418 * go32-nat.c: Ditto.
7419 * h8300-tdep.c: Ditto.
7420 * h8500-tdep.c: Ditto.
7421 * hp300ux-nat.c: Ditto.
7422 * hppa-tdep.c: Ditto.
7423 * hppab-nat.c: Ditto.
7424 * hppah-nat.c: Ditto.
7425 * hppam3-nat.c: Ditto.
7426 * hpux-thread.c: Ditto.
7427 * i386-linux-nat.c: Ditto.
7428 * i386-linux-tdep.c: Ditto.
7429 * i386-tdep.c: Ditto.
7430 * i386aix-nat.c: Ditto.
7431 * i386b-nat.c: Ditto.
7432 * i386bsd-nat.c: Ditto.
7433 * i386gnu-nat.c: Ditto.
7434 * i386ly-tdep.c: Ditto.
7435 * i386m3-nat.c: Ditto.
7436 * i386mach-nat.c: Ditto.
7437 * i386nbsd-nat.c: Ditto.
7438 * i386v4-nat.c: Ditto.
7439 * i387-nat.c: Ditto.
7440 * i387-tdep.c: Ditto.
7441 * i960-tdep.c: Ditto.
7442 * ia64-aix-nat.c: Ditto.
7443 * ia64-linux-nat.c: Ditto.
7444 * ia64-tdep.c: Ditto.
7445 * infptrace.c: Ditto.
7446 * infrun.c: Ditto.
7447 * irix4-nat.c: Ditto.
7448 * irix5-nat.c: Ditto.
7449 * lin-lwp.c: Ditto.
7450 * lin-thread.c: Ditto.
7451 * lynx-nat.c: Ditto.
7452 * m3-nat.c: Ditto.
7453 * m32r-rom.c: Ditto.
7454 * m32r-tdep.c: Ditto.
7455 * m68hc11-tdep.c: Ditto.
7456 * m68k-tdep.c: Ditto.
7457 * m68klinux-nat.c: Ditto.
7458 * m68knbsd-nat.c: Ditto.
7459 * m68knbsd-tdep.c: Ditto.
7460 * m88k-nat.c: Ditto.
7461 * m88k-tdep.c: Ditto.
7462 * mac-nat.c: Ditto.
7463 * mcore-rom.c: Ditto.
7464 * mcore-tdep.c: Ditto.
7465 * mi/mi-main.c: Ditto.
7466 * mips-nat.c: Ditto.
7467 * mips-tdep.c: Ditto.
7468 * mipsm3-nat.c: Ditto.
7469 * mipsv4-nat.c: Ditto.
7470 * mn10200-tdep.c: Ditto.
7471 * mn10300-tdep.c: Ditto.
7472 * monitor.c: Ditto.
7473 * ns32km3-nat.c: Ditto.
7474 * ns32knbsd-nat.c: Ditto.
7475 * ocd.c: Ditto.
7476 * pa64solib.c: Ditto.
7477 * ppc-bdm.c: Ditto.
7478 * ppc-linux-nat.c: Ditto.
7479 * ppc-linux-tdep.c: Ditto.
7480 * ppcbug-rom.c: Ditto.
7481 * ppcnbsd-nat.c: Ditto.
7482 * ptx4-nat.c: Ditto.
7483 * regcache.c: Ditto.
7484 * remote-adapt.c: Ditto.
7485 * remote-array.c: Ditto.
7486 * remote-bug.c: Ditto.
7487 * remote-e7000.c: Ditto.
7488 * remote-eb.c: Ditto.
7489 * remote-es.c: Ditto.
7490 * remote-est.c: Ditto.
7491 * remote-hms.c: Ditto.
7492 * remote-mips.c: Ditto.
7493 * remote-mm.c: Ditto.
7494 * remote-nindy.c: Ditto.
7495 * remote-os9k.c: Ditto.
7496 * remote-rdi.c: Ditto.
7497 * remote-rdp.c: Ditto.
7498 * remote-sds.c: Ditto.
7499 * remote-sim.c: Ditto.
7500 * remote-st.c: Ditto.
7501 * remote-udi.c: Ditto.
7502 * remote-utils.c: Ditto.
7503 * remote-vx.c: Ditto.
7504 * remote-vx29k.c: Ditto.
7505 * remote-vx68.c: Ditto.
7506 * remote-vx960.c: Ditto.
7507 * remote-vxmips.c: Ditto.
7508 * remote-vxsparc.c: Ditto.
7509 * remote.c: Ditto.
7510 * rom68k-rom.c: Ditto.
7511 * rs6000-nat.c: Ditto.
7512 * rs6000-tdep.c: Ditto.
7513 * sh-tdep.c: Ditto.
7514 * sh3-rom.c: Ditto.
7515 * sol-thread.c: Ditto.
7516 * solib-svr4.c: Ditto.
7517 * somsolib.c: Ditto.
7518 * sparc-nat.c: Ditto.
7519 * sparc-tdep.c: Ditto.
7520 * sparcl-tdep.c: Ditto.
7521 * sparclet-rom.c: Ditto.
7522 * sun3-nat.c: Ditto.
7523 * sun386-nat.c: Ditto.
7524 * symm-nat.c: Ditto.
7525 * target.c: Ditto.
7526 * thread-db.c: Ditto.
7527 * thread.c: Ditto.
7528 * tic80-tdep.c: Ditto.
7529 * tracepoint.c: Ditto.
7530 * ultra3-nat.c: Ditto.
7531 * umax-xdep.c: Ditto.
7532 * uw-thread.c: Ditto.
7533 * v850-tdep.c: Ditto.
7534 * v850ice.c: Ditto.
7535 * valops.c: Ditto.
7536 * w65-tdep.c: Ditto.
7537 * w89k-rom.c: Ditto.
7538 * win32-nat.c: Ditto.
7539 * wince.c: Ditto.
7540 * z8k-tdep.c: Ditto.
7541
7542 2001-02-28 Matt Hiller <hiller@redhat.com>
7543
7544 * MAINTAINERS: Add Matt Hiller to Write After Approval list.
7545
7546 2001-02-27 Matt Hiller <hiller@redhat.com>
7547
7548 * mn10300-tdep.c (mn10300_stab_reg_to_regnum): New function.
7549 (mn10300_gdbarch_init): Set appropriate elements of gdbarch to
7550 mn10300_stab_reg_to_regnum.
7551
7552 Tue Feb 27 16:56:13 2001 David Taylor <taylor@redhat.com>
7553
7554 * symtab.c (search_symbols): Fix off by one error in test for
7555 error.
7556
7557 2001-02-23 Andrew Cagney <ac131313@redhat.com>
7558
7559 * config/sparc/sp64linux.mt: New file.
7560 * configure.tgt: Recognize sparc64-*-linux* as a sp64linux target.
7561 * configure.host: Recognize sparc64-*-linux* as a linux host.
7562
7563 From 2000-03-17 Jakub Jelinek <jakub@redhat.com>:
7564 * config/sparc/tm-sp64linux.h: New file.
7565
7566 2001-02-24 Kevin Buettner <kevinb@redhat.com>
7567
7568 * buildsym.c (push_subfile, pop_subfile): Replace call to abort()
7569 with call to internal_error().
7570 * dbxread.c (process_one_symbol): Likewise.
7571 * exec.c (build_section_table, xfer_memory): Likewise.
7572 * h8500-tdep.c (h8500_register_size, h8500_register_virtual_type):
7573 Likewise.
7574 * hpread.c (hpread_type_translate, hpread_read_array_type)
7575 (hpread_type_lookup): Likewise.
7576 * i386-tdep.c (gdb_print_insn_i386): Likewise.
7577 * i960-tdep.c (mem): Likewise
7578 * inflow.c (set_sigio_trap, clear_sigio_trap): Likewise.
7579 * infptrace.c (child_resume): Likewise.
7580 * infttrace.c (_initialize_infttrace): Likewise.
7581 * language.c (binop_result_type, add_language): Likewise.
7582 * lynx-nat.c (store_inferior_registers): Likewise.
7583 * m3-nat.c (port_chain_insert, m3_trace_me): Likewise.
7584 * mdebugread.c (parse_partial_symbols): Likewise.
7585 * monitor.c (monitor_printf_noecho, monitor_printf)
7586 (monitor_dump_regs): Likewise.
7587 * ocd.c (stu_put_packet): Likewise.
7588 * printcmd.c (decode_format, print_scalar_formatted): Likewise.
7589 * remote-bug.c (bug_open): Likewise.
7590 * remote-e7000.c (fetch_regs_from_dump, e7000_wait): Likewise.
7591 * remote-es.c (es1800_read_bytes): Likewise.
7592 * remote-mips.c (common_breakpoint): Likewise.
7593 * remote-rdp.c (send_rdp): Likewise.
7594 * remote-sds.c (putmessage): Likewise.
7595 * sparc-nat.c (fetch_inferior_registers, store_inferior_registers):
7596 Likewise.
7597 * sparcl-tdep.c (sparclite_download): Likewise.
7598 * symtab.c (lookup_partial_symbol): Likewise.
7599 * target.c (push_target, pop_target, initialize_targets): Likewise.
7600 * utils.c (internal_verror, malloc_botch, wrap_here, decimal2str):
7601 Likewise.
7602 * valprint.c (print_decimal, print_longest, print_longest)
7603 (strcat_longest): Likewise.
7604 * w65-tdep.c (init_frame_pc, w65_push_dummy_frame): Likewise.
7605 * xmodem.c (xmodem_send_packet): Likewise.
7606 * z8k-tdep.c (init_frame_pc, z8k_push_dummy_frame): Likewise.
7607 * config/h8500/tm-h8500.h (STORE_STRUCT_RETURN): Likewise.
7608 * config/mn10200/tm-mn10200.h (EXTRACT_RETURN_VALUE)
7609 (STORE_RETURN_VALUE): Likewise.
7610 * config/ns32k/nm-umax.h (REGISTER_U_ADDR): Likewise.
7611 * config/ns32k/xm-merlin.h (REGISTER_U_ADDR): Likewise.
7612 * config/z8k/tm-z8k.h (STORE_STRUCT_RETURN, STORE_RETURN_VALUE):
7613 Likewise.
7614
7615 2001-02-23 Andrew Cagney <ac131313@redhat.com>
7616
7617 * CONTRIBUTE: Document how to cite a problem report.
7618 * TODO: Note need to replace CONTRIBUTE with generated file.
7619
7620 * CONTRIBUTE: Mention that patches do not need to include the
7621 generated files gdbarch.h and gdbarch.c.
7622
7623 2001-02-21 Andrew Cagney <ac131313@redhat.com>
7624
7625 * value.h (get_saved_register): Move from here.
7626 * frame.h: To here.
7627
7628 2001-02-21 Kevin Buettner <kevinb@redhat.com>
7629
7630 * solib.h (in_svr4_dynsym_resolve_code): Delete declaration.
7631 (in_solib_dynsym_resolve_code): Add declaration.
7632 (IN_SOLIB_DYNSYM_RESOLVE_CODE): Changed define to invoke
7633 in_solib_dynsym_resolve_code() rather than
7634 in_svr4_dynsym_resolve_code(). Also, removed the ifdefs
7635 which caused this macro to only be defined when
7636 SVR4_SHARED_LIBS is defined.
7637 * solib.c (in_solib_dynsym_resolve_code): New function.
7638 * solist.h (struct target_so_ops): Add new member
7639 in_dynsym_resolve_code.
7640 * solib-aix5.c (aix5_in_dynsym_resolve_code): Renamed from
7641 in_svr4_dynsym_resolve_code. Also, made static.
7642 (_initialize_aix5_solib): Initialize in_dynsym_resolve_code
7643 member in aix5_so_ops.
7644 * solib-svr4.c (svr4_in_dynsym_resolve_code): Renamed from
7645 in_svr4_dynsym_resolve_code. Also, added second version
7646 of this function which will be used when SVR4_SHARED_LIBS
7647 is not defined.
7648 (_initialize_svr4_solib): Initialize in_dynsym_resolve_code
7649 member in svr4_so_ops.
7650
7651 * ia64-aix-nat.c, ia64-aix-tdep.c, config/ia64/aix.mh,
7652 config/ia64/aix.mt, config/ia64/nm-aix.h, config/ia64/tm-aix.h,
7653 config/ia64/xm-aix.h: New files.
7654 * ia64-tdep.c (_initialize_ia64_tdep): Remove declaration.
7655 (ia64_aix_sigcontext_register_address): New declaration.
7656 (ia64_gdbarch_init): Provide for initialization of
7657 sigcontext_register_address member of struct tdep when
7658 on target is detected to be running AIX.
7659 * config/ia64/linux.mt (TDEPFILES): Add ia64-aix-tdep.o to
7660 this list.
7661
7662 2001-02-20 Kevin Buettner <kevinb@redhat.com>
7663
7664 * ia64-tdep.c (ia64_frameless_function_invocation): Implement.
7665 * config/ia64/linux.mh (NATDEPFILES): Use thread-db.o and lin-lwp.o
7666 for thread support instead of linux-thread.o and lin-thread.o.
7667 * config/ia64/nm-linux.h (PREPARE_TO_PROCEED, GET_THREAD_SIGNALS,
7668 ATTACH_LWP): Define to use the following lin-lwp.c functions...
7669 (lin_lwp_prepare_to_proceed, lin_thread_get_thread_signals,
7670 lin_lwp_attach_lwp): Declare.
7671
7672 2001-02-20 Andrew Cagney <ac131313@redhat.com>
7673
7674 * mips-tdep.c (do_fp_register_row, do_fp_register_row): Fix printf
7675 formatting.
7676
7677 2001-02-20 Kevin Buettner <kevinb@redhat.com>
7678
7679 * solib-aix5.c (solib-svr4.h): Remove include.
7680 (solib_break_names): Delete names which aren't actually
7681 used by AIX5.
7682 (bkpt_names): Remove.
7683 (aix5_relocate_main_executable, bfd_lookup_symbol): Replace calls
7684 to STREQ() with equivalent calls to strcmp().
7685 (in_svr4_dynsym_resolve_code, enable_break, bfd_lookup_symbol,
7686 aix5_solib_create_inferior_hook): Revise comments.
7687 (enable_break): Remove old ``bkpt_names'' code.
7688
7689 2001-02-19 Andrew Cagney <ac131313@redhat.com>
7690
7691 * Makefile.in (SFILES): Add frame.c .
7692 (COMMON_OBS): Add frame.o .
7693 (frame.o): New target.
7694
7695 * frame.c (find_saved_register):
7696 (default_get_saved_register):
7697 (get_saved_register):
7698 (read_relative_register_raw_bytes_for_frame):
7699 (read_relative_register_raw_bytes): Moved to here.
7700 * regcache.c: From here.
7701
7702 2001-02-20 Kevin Buettner <kevinb@redhat.com>
7703
7704 * solib-aix5.c: New file.
7705
7706 2001-02-20 Martin M. Hunt <hunt@redhat.com>
7707
7708 * solib.c (info_sharedlibrary_command): Don't assume pointers
7709 are the same size of long, call longest_local_hex_string_custom().
7710
7711 * solib-svr4.c (LM_ADDR): LM_ADDR is a signed offset, so
7712 extract_signed_integer() should be called instead of
7713 extract_address().
7714
7715 2001-02-20 Martin M. Hunt <hunt@redhat.com>
7716
7717 * MAINTAINERS: Add Martin Hunt to Write After Approval list.
7718
7719 2001-02-19 Andrew Cagney <ac131313@redhat.com>
7720
7721 Frm 2001-02-09 Jim Kingdon <jkingdon@engr.sgi.com>:
7722 * mips-tdep.c (mips_register_raw_size): If FP_REGISTER_DOUBLE,
7723 then floating point registers are 8 bytes.
7724
7725 2001-02-19 Michael Snyder <msnyder@mvstp600e.cygnus.com>
7726
7727 * parse.c (write_exp_msymbol): Make the type CORE_ADDR, to
7728 accomodate 64-bit addresses.
7729
7730 2001-02-19 Elena Zannoni <ezannoni@kwikemart.cygnus.com>
7731
7732 From Peter Schauer <Peter.Schauer@regent.e-technik.tu-muenchen.de>
7733 * symtab.c (lookup_symbol_aux): Call lookup_symbol_aux, not
7734 lookup_symbol, when trying to find a symbol with a mangled name,
7735 to avoid infinite recursion.
7736
7737 2001-02-18 Andrew Cagney <ac131313@redhat.com>
7738
7739 * TODO (5.2): Mention G++ 3.0 ABI. General cleanups.
7740
7741 2001-02-19 Jonathan Larmour <jlarmour@redhat.com>
7742
7743 * arm-tdep.c (check_prologue_cache): Fix off by 1 error.
7744 (save_prologue_cache): Ditto.
7745
7746 2001-02-19 Elena Zannoni <ezannoni@kwikemart.cygnus.com>
7747
7748 From: innadadadavida@yahoo.com:
7749 * partial-stab.h (switch): Check that pst is not null
7750 before dereferencing it.
7751
7752 2001-02-19 Elena Zannoni <ezannoni@kwikemart.cygnus.com>
7753
7754 From Andrew Cagney <cagney@b1.cygnus.com>:
7755 * symfile.c (add_symbol_file_command): Always initialize
7756 my_cleanup using a NULL cleanup.
7757
7758 2001-02-19 Eli Zaretskii <eliz@is.elta.co.il>
7759
7760 * demangle.c (demangling_style_names): New variable.
7761 (_initialize_demangler): Fill demangling_style_names with the
7762 names of known demangling styles from libiberty_demanglers[]. Use
7763 add_set_enum_cmd instead of add_set_cmd, to get completion on
7764 demangling style names.
7765
7766 * proc-api.c (_initialize_proc_api): Make `procfs-file' use
7767 file-name completion.
7768
7769 * remote-rdi.c (_initialize_remote_rdi): Ditto for `rdilogfile'.
7770
7771 * solib.c (_initialize_solib): Ditto for `solib-search-path' and
7772 `solib-absolute-prefix'.
7773
7774 * tracepoint.c (_initialize_tracepoint): Ditto for
7775 `save-tracepoints'.
7776
7777 * win32-nat.c (_initialize_inftarg): Ditto for `dll-symbols'.
7778
7779 * cli/cli-cmds.c (init_cli_cmds): Make `shell' and `make' use
7780 file-name completion.
7781
7782 * infcmd.c (_initialize_infcmd): Make the following commands use
7783 the file-name completer: `tty', `args', `path', `paths', and
7784 `run'.
7785
7786 2001-02-18 Eli Zaretskii <eliz@is.elta.co.il>
7787
7788 * go32-nat.c: Include i387-nat.h.
7789 (fetch_register): New function, uses some of the guts of
7790 go32_fetch_registers and calls i387_supply_register.
7791 (go32_fetch_registers): Most of the code moved into
7792 fetch_register. Use i387_supply_fsave.
7793 (store_register): Use i387_fill_fsave instead of custom code.
7794 (go32_store_registers): Use i387_fill_fsave.
7795
7796 * Makefile.in (go32-nat.o): Depend on i387-nat.h.
7797
7798 * config/i386/go32.mh (NATDEPFILES): Add i387-nat.o.
7799
7800 * completer.c (gdb_completer_file_name_break_characters): Remove
7801 slash from file-name break characters.
7802 [__MSDOS__]: Special definition for DOS/Windows file names.
7803 (line_completion_function): When completing on file names, bump
7804 `p' to the first file-name constituent character of `word', before
7805 invoking the completer.
7806
7807 2001-02-17 Mark Kettenis <kettenis@gnu.org>
7808
7809 * i387-nat.c: Include "i387-nat.h". Use regnum instead of regno
7810 consistently for parameter names. Fix comments accordingly.
7811 (i387_supply_register): New function.
7812 (i387_supply_fsave): Implement using i387_supply_register.
7813 * i387-nat.h: Use regnum instead of regno consistently for
7814 parameter names. Fix comments accordingly.
7815 (i387_supply_register): New prototype.
7816
7817 2001-02-16 Michael Snyder <msnyder@mvstp600e.cygnus.com>
7818
7819 * remote.c (build_remote_gdbarch_data): Use new TARGET_ADDR_BIT
7820 instead of TARGET_PTR_BIT (to support Harvard architectures).
7821
7822 2001-02-16 Andrew Cagney <ac131313@redhat.com>
7823
7824 From 2001-02-11 Paul Hilfinger <hilfingr@lisbon.int.act-europe.fr>
7825 * hpux-thread.c (hpux_thread_xfer_memory): Add mem_attrib
7826 argument to parameter list and to call in order to conform to
7827 to_xfer_memory field of struct target_ops.
7828
7829 2001-02-12 Michael Chastain <chastain@redhat.com>
7830
7831 * somsolib.c (som_solib_add_solib_objfile): Do not use
7832 section relocation feature of syms_from_objfile. Do my own
7833 section relocation, offsetting each section of the som by
7834 either text_addr - text_link_addr or data_start.
7835
7836 2001-02-16 Andrew Cagney <ac131313@redhat.com>
7837
7838 * TODO (5.1): Move ``Hardware watchpint problems'' out of 5.1.
7839
7840 2001-02-16 Andrew Cagney <ac131313@redhat.com>
7841
7842 * MAINTAINERS (paper trail): Update.
7843
7844 2001-02-16 Mark Kettenis <kettenis@gnu.org>
7845
7846 * target.h (target_fetch_registers): Fix comment.
7847
7848 2001-02-15 Andrew Cagney <ac131313@redhat.com>
7849
7850 * f-exp.y: Include <ctype.h>.
7851 (parse_number): Ensure that ``i'' is always initialized.
7852
7853 2001-02-14 Jim Kingdon <jkingdon@engr.sgi.com>
7854
7855 * MAINTAINERS: Add myself to paper trail section.
7856
7857 2001-02-14 Michael Sokolov <msokolov@ivan.Harhan.ORG>
7858
7859 * configure.in (AC_CHECK_HEADERS): Add sys/file.h.
7860 * configure, config.in: Regenerate.
7861 * corelow.c: Include <sys/file.h> if present.
7862
7863 2001-02-14 Andrew Cagney <ac131313@redhat.com>
7864
7865 * inflow.c (terminal_ours_1): Initialize ``osigtou''. Only
7866 declare when have SIGTTOU.
7867
7868 2001-02-14 Eli Zaretskii <eliz@is.elta.co.il>
7869
7870 * config/djgpp/fnchange.lst: Add entries for gdb/gdbtk/*/ChangeLog-*.
7871
7872 2001-02-12 Jim Kingdon <jkingdon@engr.sgi.com>
7873
7874 * MAINTAINERS: Update my email address.
7875
7876 2001-02-11 Eli Zaretskii <eliz@is.elta.co.il>
7877
7878 * NEWS: Document that "info symbol" works with COFF debug info and
7879 its variants.
7880
7881 * minsyms.c (lookup_minimal_symbol_by_pc_section): Don't skip
7882 symbols whose SYMBOL_BFD_SECTION is NULL.
7883
7884 2001-02-10 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
7885
7886 Get rid of AIX specific PC_LOAD_SEGMENT, replace with PC_SOLIB.
7887 * xcoffsolib.c (xcoff_solib_address): Renamed from
7888 pc_load_segment_name. Return NULL if address is not in a shared
7889 library. Cleanup shared library name construction, using xasprintf.
7890 Format shared library member names consistent with format in exec.c.
7891 (solib_info): Format shared library member names consistent with
7892 format in exec.c.
7893 * config/rs6000/nm-rs6000.h: Replace PC_LOAD_SEGMENT with PC_SOLIB,
7894 using xcoff_solib_address for PC_SOLIB definition.
7895 * stack.c (print_frame): Remove PC_LOAD_SEGMENT code, no longer
7896 needed.
7897
7898 2001-02-10 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
7899
7900 * mipsread.c (read_alphacoff_dynamic_symtab): Replace alloca calls
7901 with xmalloc calls and cleanups.
7902
7903 2001-02-10 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
7904
7905 * rs6000-nat.c (child_xfer_memory): Add missing parameter
7906 'struct mem_attrib *' required by 2001-01-23 change.
7907
7908 2001-02-08 Jim Kingdon <jkingdon@engr.sgi.com>
7909
7910 Updates to "make TAGS":
7911 * Makefile.in (ALLDEPFILES): Remove altos-xdep.c arm-convert.s
7912 arm-xdep.c convex-tdep.c convex-xdep.c pyr-tdep.c pyr-xdep.c
7913 tahoe-tdep.c.
7914 (TAGFILES_NO_SRCDIR): Add $(SUBDIR_CLI_SRCS).
7915
7916 2001-02-08 Eli Zaretskii <eliz@is.elta.co.il>
7917
7918 * config/djgpp/fnchange.lst: Remove extraneous "too many dots".
7919
7920 Wed Feb 7 22:39:26 2001 Andrew Cagney <cagney@redhat.com>
7921
7922 From Dean Luick <luick@cray.com>:
7923 * defs.h (continuation): Remove unused global variable.
7924
7925 Wed Feb 7 22:28:31 2001 Andrew Cagney <cagney@redhat.com>
7926
7927 * configure.tgt: Remove references to convex, pyramid, altos and
7928 tahoe.
7929 * configure.host: Ditto.
7930 * MAINTAINERS: Ditto.
7931 * NEWS: Update.
7932
7933 * tahoe-tdep.c: Delete obsolete file.
7934 * pyr-xdep.c: Ditto.
7935 * pyr-tdep.c: Ditto.
7936 * convex-tdep.c: Ditto.
7937 * convex-xdep.c: Ditto.
7938 * config/tahoe/xm-tahoe.h: Ditto.
7939 * config/tahoe/tm-tahoe.h: Ditto.
7940 * config/tahoe/tahoe.mt: Ditto.
7941 * config/tahoe/tahoe.mh: Ditto.
7942 * config/pyr/xm-pyr.h: Ditto.
7943 * config/pyr/tm-pyr.h: Ditto.
7944 * config/pyr/pyramid.mt: Ditto.
7945 * config/pyr/pyramid.mh: Ditto.
7946 * config/m68k/xm-altos.h: Ditto.
7947 * config/m68k/tm-altos.h: Ditto.
7948 * config/m68k/altos.mt: Ditto.
7949 * config/m68k/altos.mh: Ditto.
7950 * config/convex/xm-convex.h: Ditto.
7951 * config/convex/tm-convex.h: Ditto.
7952 * config/convex/convex.mt: Ditto.
7953 * config/convex/convex.mh: Ditto.
7954 * config/convex/Convex.notes: Ditto.
7955 * config/arm/xm-arm.h: Ditto.
7956 * config/arm/nm-arm.h: Ditto.
7957 * config/arm/arm.mt: Ditto.
7958 * config/arm/arm.mh: Ditto.
7959 * arm-convert.s: Ditto.
7960 * arm-xdep.c: Ditto.
7961 * altos-xdep.c: Ditto.
7962
7963 Wed Feb 7 19:41:21 2001 Andrew Cagney <cagney@redhat.com>
7964
7965 * defs.h (internal_error, internal_verror): Add __FILE__ and
7966 __LINE__ parameter.
7967 * utils.c (internal_error, internal_verror): Update.
7968
7969 * v850-tdep.c: Update calls to internal_error.
7970 * utils.c: Ditto.
7971 * ui-out.c: Ditto.
7972 * ui-file.c: Ditto.
7973 * target.h: Ditto.
7974 * symtab.h: Ditto.
7975 * symm-nat.c: Ditto.
7976 * sparc-tdep.c: Ditto.
7977 * source.c: Ditto.
7978 * serial.c: Ditto.
7979 * rs6000-tdep.c: Ditto.
7980 * rs6000-nat.c: Ditto.
7981 * remote.c: Ditto.
7982 * remote-vx.c: Ditto.
7983 * remote-sim.c: Ditto.
7984 * remote-mips.c: Ditto.
7985 * regcache.c: Ditto.
7986 * objfiles.h: Ditto.
7987 * objfiles.c: Ditto.
7988 * mn10300-tdep.c: Ditto.
7989 * mips-tdep.c: Ditto.
7990 * maint.c: Ditto.
7991 * m68k-tdep.c: Ditto.
7992 * m3-nat.c: Ditto.
7993 * language.c: Ditto.
7994 * infptrace.c: Ditto.
7995 * inferior.h: Ditto.
7996 * infcmd.c: Ditto.
7997 * ia64-tdep.c: Ditto.
7998 * i386-tdep.c: Ditto.
7999 * i386-linux-nat.c: Ditto.
8000 * hppah-nat.c: Ditto.
8001 * go32-nat.c: Ditto.
8002 * findvar.c: Ditto.
8003 * f-lang.c: Ditto.
8004 * elfread.c: Ditto.
8005 * event-loop.c: Ditto.
8006 * dwarf2read.c: Ditto.
8007 * dsrec.c: Ditto.
8008 * d30v-tdep.c: Ditto.
8009 * d10v-tdep.c: Ditto.
8010 * cli/cli-setshow.c: Ditto.
8011 * cli/cli-script.c: Ditto.
8012 * ch-exp.c: Ditto.
8013 * breakpoint.c: Ditto.
8014 * ax-gdb.c: Ditto.
8015 * arch-utils.c: Ditto.
8016 * a29k-tdep.c: Ditto.
8017 * gdb_assert.h: Ditto.
8018 * gdbarch.sh: Ditto.
8019 * gdbarch.h, gdbarch.c: Re-generate.
8020
8021 2001-02-07 Andrew Cagney <ac131313@redhat.com>
8022
8023 From Mark Kettenis <kettenis@gnu.org>:
8024 * event-top.h [!STOP_SIGNAL]: #include <signal.h>.
8025
8026 2001-02-07 Andrew Cagney <ac131313@redhat.com>
8027
8028 * remote-sim.c (dump_mem): Cleanup printf format argument.
8029 * MAINTAINERS: Update, mn10300-elf now builds.
8030
8031 2001-02-07 Mark Kettenis <kettenis@gnu.org>
8032
8033 * event-top.c: Remove duplicate #include <signal.h>.
8034
8035 2001-02-06 Andrew Cagney <ac131313@redhat.com>
8036
8037 * sol-thread.c (restore_inferior_pid): Save the PID in a freshly
8038 allocated buffer.
8039 (save_inferior_pid): Restore the PID from that tempoary
8040 buffer. Delete the buffer.
8041 * utils.c (make_cleanup_close, do_close_cleanup): Ditto for FD.
8042
8043 2001-02-06 Andrew Cagney <ac131313@redhat.com>
8044
8045 * MAINTAINERS: Add ``The Obvious Fix Rule''.
8046
8047 2001-02-06 Andrew Cagney <ac131313@redhat.com>
8048
8049 * MAINTAINERS: Add Michael Snyder to Solaris/SPARC list.
8050
8051 2001-02-06 Andrew Cagney <ac131313@cygnus.com>
8052
8053 * gdbarch.sh: Include "gdb_assert.h".
8054 (struct gdbarch): Change ``nr_data'' to unsigned.
8055 (alloc_gdbarch_data, free_gdbarch_data): New functions.
8056 (gdbarch_free): Free the data-pointer vector. Use xfree to delete
8057 architecture vector.
8058 (struct gdbarch_data, struct gdbarch_data_registration): Move init
8059 method to gdbarch_data. Add free method, make index unsigned.
8060 (struct gdbarch_data_registry): Make nr unsigned.
8061 (register_gdbarch_data): Add free parameter. Store in
8062 gdbarch_data.
8063 (init_gdbarch_data): Use set_gdbarch_data.
8064 (set_gdbarch_data): New function.
8065
8066 * gdbarch.h, gdbarch.c: Re-generate.
8067
8068 2001-02-06 Michael Sokolov <msokolov@ivan.Harhan.ORG>
8069
8070 * ser-unix.c (hardware_print_tty_state) [HAVE_SGTTY]: Call
8071 fprintf_filtered with correct arguments.
8072
8073 2001-02-06 Michael Snyder <msnyder@makita.cygnus.com>
8074 Submitted by Paul Hilfinger (hilfingr@gnat.com)
8075 and Andrei Petrov (and@genesyslab.com).
8076 * findvar.c: Buffers of size MAX_REGISTER_RAW_SIZE or REGISTER_BYTES
8077 must be allocated dynamically, since these are no longer constants.
8078 * infcmd.c: Ditto.
8079 * regcache.c: Ditto.
8080 * remote.c: Ditto.
8081 * sol-thread.c: Ditto.
8082 * valops.c: Ditto.
8083 * config/sparc/sun4sol2.mh (MH_CFLAGS): Add -I/usr/include/v9, as a
8084 work-around for a missing Sun header file in solaris for sparc64.
8085
8086 2001-02-04 Philip Blundell <philb@gnu.org>
8087
8088 * config/arm/linux.mh (NATDEPFILES): Add proc-service.o,
8089 thread-db.o, lin-lwp.o; remove lin-thread.o, linux-thread.o.
8090 * config/arm/nm-linux.h (PREPARE_TO_PROCEED, ATTACH_LWP,
8091 GET_THREAD_SIGNALS): Define.
8092 * arm-linux-nat.c (fill_gregset): Correct type of argument.
8093 (supply_gregset): Likewise.
8094 (fill_fpregset): Likewise.
8095 (supply_fpregset): Likewise.
8096
8097 Tue Feb 6 11:58:57 2001 David Taylor <taylor@redhat.com>
8098
8099 * valops.c (value_cast): If casting a scalar to a pointer, do not
8100 issue a message about truncation unless it exceeds the length of
8101 an address, not the length of a pointer. This is because what the
8102 user gives us is an address, not a pointer, and we will ultimately
8103 convert it (via ADDRESS_TO_POINTER) to a pointer, not truncate it
8104 to a pointer. This allows things like "print *(int *)0x01000234"
8105 to work without generating a misleading message on a target having
8106 two byte pointers and four byte addresses.
8107
8108 2001-02-05 Christopher Faylor <cgf@cygnus.com>
8109
8110 * win32-nat.c: Change PTR to void * throughout.
8111
8112 2001-02-05 J.T. Conklin <jtc@redback.com>
8113
8114 * signals.h: Removed.
8115 * event-top.c (#include <signal.h>): Changed from signals.h.
8116 * inflow.c: Likewise.
8117 * mac-xdep.c: Likewise.
8118 * ser-pipe.c: Likewise.
8119 * ser-tcp.c: Likewise.
8120 * standalone.c: Likewise.
8121 * top.c: Likewise.
8122 * utils.c: Likewise.
8123 * Makefile.in: Removed signals.h from dependencies.
8124
8125 2001-02-05 Christopher Faylor <cgf@cygnus.com>
8126
8127 Change suggested by Dean Luick <luick@cray.com>
8128 * inferior.h (step_over_calls_kind): Remove trailing comma from
8129 last enum element.
8130 (step_over_calls): Declare as extern rather than global.
8131
8132 2001-02-05 Elena Zannoni <ezannoni@kwikemart.cygnus.com>
8133
8134 * sh-tdep.c: Update copyright.
8135 (sh_extract_return_value): Rewrite.
8136 (sh3e_sh4_extract_return_value): New function.
8137 (sh_gdbarch_init): Initialize gdbarch_extract-return_value to new
8138 version of the function for sh3e and sh4 CPUs.
8139
8140 2001-02-05 Michael Chastain <chastain@redhat.com>
8141
8142 * hppah-nat.c (child_xfer_memory): Add parameter 'struct mem_attrib *'
8143 to conform with interface change.
8144
8145 2001-02-04 Eli Zaretskii <eliz@is.elta.co.il>
8146
8147 * config/djgpp/fnchange.lst: Tweak to make consistent with the
8148 new files.
8149
8150 * config/djgpp/djconfig.sh: Use explicit absolute file name when
8151 invoking `find'.
8152
8153 * ser-go32.c (dos_write) [UART_FIFO_WORKS]: Use outportsb only if
8154 UART_FIFO_WORKS is defined. Otherwise use outportb.
8155 From Francisco Pastor <fpastor.etra-id@etra.es>
8156
8157 * go32-nat.c (go32_xfer_memory): Make the argument list consistent
8158 with target.h's `to_xfer_memory' member.
8159
8160 2001-02-02 J.T. Conklin <jtc@redback.com>
8161
8162 * ppc-bdm.c (#include <signal.h>): Removed.
8163 * remote-array.c: Likewise.
8164 * remote-bug.c: Likewise.
8165 * remote-e7000.c: Likewise.
8166 * remote-mips.c: Likewise.
8167 * remote-os9k.c: Likewise.
8168 * remote-st.c: Likewise.
8169 * remote-udi.c: Likewise.
8170 * remote-vx29k.c: Likewise.
8171 * remote-vx68.c: Likewise.
8172 * remote-vx960.c: Likewise.
8173 * remote-vxmips.c: Likewise.
8174 * remote-vxsparc.c: Likewise.
8175
8176 2001-02-02 John Moore <jmoore@redhat.com>
8177
8178 * remote-utils.h (sr_set_device): Changed free() to xfree() where
8179 appropriate. Also changed Copyright to include 2001.
8180 * symtab.h (obstack_chunk_free, SYMBOL_INIT_DEMANGLED_NAME): Likewise.
8181 * value.h (value_free): Likewise.
8182 * gdbarch.sh (gdbarch_free): Likewise.
8183 * gdbarch.c, gdbarch.h: Regenerated.
8184
8185 2001-02-02 John Moore <jmoore@redhat.com>
8186
8187 * cli/cli-cmds.c (apropos_command): Changed occurance of free() to
8188 xfree(). Also changed Copyright to include 2001.
8189
8190 2001-02-02 J.T. Conklin <jtc@redback.com>
8191
8192 * monitor.c (#include "gdb_wait.h"): Removed.
8193 * ocd.c: Likewise.
8194 * ppc-bdm.c: Likewise.
8195 * remote-adapt.c: Likewise.
8196 * remote-array.c: Likewise.
8197 * remote-bug.c: Likewise.
8198 * remote-e7000.c: Likewise.
8199 * remote-eb.c: Likewise.
8200 * remote-es.c: Likewise.
8201 * remote-mips.c: Likewise.
8202 * remote-mm.c: Likewise.
8203 * remote-nindy.c: Likewise.
8204 * remote-os9k.c: Likewise.
8205 * remote-rdi.c: Likewise.
8206 * remote-rdp.c: Likewise.
8207 * remote-sds.c: Likewise.
8208 * remote-sim.c: Likewise.
8209 * remote-st.c: Likewise.
8210 * remote-udi.c: Likewise.
8211 * remote-vx.c: Likewise.
8212 * remote-vx29k.c: Likewise.
8213 * remote-vx68.c: Likewise.
8214 * remote-vx960.c: Likewise.
8215 * remote-vxmips.c: Likewise.
8216 * remote-vxsparc.c: Likewise.
8217 * remote.c: Likewise.
8218 * ser-pipe.c: Likewise.
8219 * ser-unix.c: Likewise.
8220 * Makefile.in: Updated dependencies.
8221
8222 2001-01-31 David Smith <dsmith@redhat.com>
8223
8224 * event-loop.c: Change inclusion of string.h to gdb_string.h and
8225 updated the copyright notice.
8226 * ser-pipe.c: Ditto.
8227 * mi/mi-cmds.c: Ditto.
8228 * mi/mi-console.c: Ditto.
8229 * mi/mi-getopt.c: Ditto.
8230 * mi/mi-parse.c: Ditto.
8231
8232 2001-01-31 David Smith <dsmith@redhat.com>
8233
8234 * MAINTAINERS: Add David Smith to Write After Approval list.
8235
8236 Tue Jan 30 15:43:08 2001 Andrew Cagney <cagney@cygnus.com>
8237
8238 * cli/cli-utils.c (putchar_filtered): Move function from here.
8239 * utils.c (putchar_filtered): To here.
8240 * cli/cli-utils.h (putchar_filtered): Move declaration from here.
8241 * defs.h (putchar_filtered): To here.
8242
8243 Tue Jan 30 17:27:11 2001 Andrew Cagney <cagney@redhat.com>
8244
8245 * configure.in (AC_CHECK_FUNCS): Replace vfork test with
8246 AC_FUNC_VFORK macro.
8247 * config.in, configure: Re-generate.
8248
8249 * gdb_vfork.h: New file.
8250 * ser-pipe.c (pipe_open): Update. Include "gdb_vfork.h".
8251 * fork-child.c (fork_inferior): Ditto.
8252
8253 Tue Jan 30 17:09:07 2001 Andrew Cagney <cagney@redhat.com>
8254
8255 * defs.h (strsave): Delete declaration.
8256 * utils.c (strsave): Delete definition.
8257 * TODO (strsave): Update
8258
8259 * mac-xdep.c (tilde_expand): Replace strsave with xstrdup.
8260 * sparcl-tdep.c (sparclite_open): Ditto.
8261 * mips-tdep.c (mips_set_processor_type_command): Ditto.
8262 (_initialize_mips_tdep): Ditto.
8263 * solib.c (solib_open): Ditto.
8264 * symfile.c (add_filename_language): Ditto.
8265 (set_ext_lang_command): Ditto.
8266 * source.c (init_source_path): Ditto.
8267 (mod_path): Ditto.
8268 * sh3-rom.c (sh3_open): Ditto.
8269 (sh3e_open): Ditto.
8270 * serial.c (serial_open): Ditto.
8271 * remote-mips.c (common_open): Ditto.
8272 * monitor.c (monitor_open): Ditto.
8273 * m32r-rom.c (m32r_upload_command): Ditto.
8274 * infcmd.c (path_command): Ditto.
8275 * f-exp.y (parse_number): Ditto.
8276 * breakpoint.c (create_longjmp_breakpoint): Ditto.
8277 (create_thread_event_breakpoint): Ditto.
8278 * arc-tdep.c (arc_set_cpu_type_command): Ditto.
8279 (_initialize_arc_tdep): Ditto.
8280
8281 Tue Jan 30 15:14:26 2001 Andrew Cagney <cagney@skil>
8282
8283 * cli/cli-script.c (define_command): Check for a bad hook value in
8284 switch statement.
8285
8286 2001-01-30 J.T. Conklin <jtc@redback.com>
8287
8288 * configure/sh/embed.mt: New file.
8289 * configure/sh/linux.mt: New file.
8290 * configure/sh/sh.mt: Removed.
8291 * configure.tgt (sh-*-hms,sh-*-coff*,sh-*-elf*,sh-*-linux): New targets.
8292 (sh-*-*): Removed.
8293
8294 2001-01-29 Michael Chastain <chastain@redhat.com>
8295
8296 * symtab.c (lookup_block_symbol): Use 'namespace' parameter in
8297 symbol comparisons in binary search.
8298
8299 2001-01-27 Christopher Faylor <cgf@cygnus.com>
8300
8301 * win32-nat.c (child_xfer_memory): Add missing argument required by
8302 2001-01-23 change.
8303
8304 2001-01-27 Mark Kettenis <kettenis@gnu.org>
8305
8306 * ui-out.c (do_list_end): New function.
8307 (make_cleanup_ui_out_list_end): New function.
8308 * ui-out.h: Provide prototype for make_cleanup_ui_out_list_end.
8309 * stack.c (print_frame) [UI_OUT]: Call
8310 make_cleanup_ui_out_list_end to make sure we mark the end of the
8311 list if we do a non-local exit. At the end of the function,
8312 instead of calling ui_out_list_end directly, let do_cleanups
8313 handle it.
8314
8315 2001-01-26 Fernando Nasser <fnasser@redhat.com>
8316
8317 Fix double parsing of filenames passed as command line arguments
8318 to GDB (causes weird handling of escape characters).
8319 Also, remove dependencies on the CLI from libgdb.
8320 * call-cmds.h: Remove declaration of exec_file_command().
8321 * gdbcore.h: Remove declaration of exec_file_command().
8322 Add declarations for exec_open() and exec_file_clear().
8323 * symfile.h: Add declarations for symbol_file_add_main() and
8324 symbol_file_clear().
8325 * exec.c (exec_open): New function. Implements to_open for exec
8326 targets.
8327 (exec_file_clear): New function. Makes GDB forget about a previously
8328 specified executable file.
8329 (exec_file_attach): Move parsing of arguments from here ...
8330 (exec_file_command): ... to here.
8331 (init_exec_ops): Use exec_open(), not exec_file_command() to
8332 implement to_open for exec targets.
8333 * symfile.c (symbol_file_add_main): New function. Call symbol_file_add()
8334 with default values. Used when the file name has already been parsed.
8335 (symbol_file_clear): New function. Makes GDB forget about previously
8336 read symbols.
8337 (symbol_file_command): Call the above function instead of inline code.
8338 * main.c: Include "symfile.h" and "gdbcore.h" instead of the deprecated
8339 "call-cmds.h".
8340 (captured_main): Call exec_file_attach() and symbol_file_add_main()
8341 instead of exec_file_command() and symbol_file_command().
8342 (captured_main): Add comment.
8343 * corefile.c: Include "symfile.h".
8344 (core_file_command): Call symbol_file_add_main() instead of
8345 symbol_file_command().
8346 (reopen_exec_file): Call exec_open() instead of exec_file_command().
8347 * infcmd.c: Include "symfile.h".
8348 (attach_command): Call symbol_file_add_main() instead of
8349 symbol_file_command().
8350 * infrun.c: Remove comment about the inclusion of "symfile.h",
8351 not any longer appropriate.
8352 (follow_exec): Call symbol_file_add_main() instead of
8353 symbol_file_command().
8354 * remote-es.c: Include "symfile.h".
8355 (es1800_load): Call symbol_file_add_main() instead of
8356 symbol_file_command().
8357 * remote-vx.c: Remove comment about the inclusion of "symfile.h",
8358 not any longer appropriate.
8359 (vx-wait): Call symbol_file_add_main() instead of
8360 symbol_file_command().
8361 * solib-svr4.c (open_symbol_file_object): Call symbol_file_add_main()
8362 instead of symbol_file_command().
8363 * v850ice.c (ice_file): Call exec_open(), exec_file_attach() and
8364 symbol_file_add_main() instead of exec_file_command() and
8365 symbol_file_command().
8366 * Makefile.in: Update dependencies.
8367
8368 2001-01-26 Jeff Holcomb <jeffh@redhat.com>
8369
8370 * remote-udi.c (udi_open): Change strdup to xstrdup.
8371 * thread.c (thread_apply_all_command): Change strdup to xstrdup.
8372 Update copyright message.
8373 * varobj.c (delete_variable_1): Likewise.
8374
8375 * gdb_string.h: Remove declaration of strdup. Update copyright
8376 message.
8377 * config/xm-mpw.h: Likewise.
8378 * config/i386/xm-i386mach.h: Likewise.
8379 * config/m68k/xm-apollo68b.h: Likewise.
8380 * config/m68k/xm-hp300bsd.h: Likewise.
8381 * config/rs6000/xm-rs6000.h: Likewise.
8382 * config/vax/xm-vaxult.h: Remove declaration of strdup.
8383 * config/vax/xm-vaxult2.h: Likewise.
8384
8385 2001-01-26 Jeff Holcomb <jeffh@redhat.com>
8386
8387 * MAINTAINERS: Add Jeff Holcomb to Write After Approval list.
8388
8389 2001-01-25 J.T. Conklin <jtc@redback.com>
8390
8391 * target.c (target_xfer_memory_partial): Return -1 on failure due
8392 to invalid access mode attribute.
8393
8394 2001-01-25 Christopher Faylor <cgf@cygnus.com>
8395
8396 * win32-nat.c (_initialize_core_win32): Prototype correctly.
8397
8398 2001-01-25 Mark Kettenis <kettenis@gnu.org>
8399
8400 * config/alpha/tm-fbsd.h: Update copyright.
8401 (USE_STRUCT_CONVENTION): Define in terms of
8402 alphabsd_use_struct_convention.
8403 * config/alpha/fbsd.mt (TDEPFILES): Add alphafbsd-tdep.c.
8404 * alphafbsd-tdep.c: New file.
8405
8406 2001-01-24 Fernando Nasser <fnasser@redhat.com>
8407
8408 * top.c (print_gdb_version): Update Copyright year.
8409
8410 2001-01-24 J.T. Conklin <jtc@redback.com>
8411
8412 * dcache.c (dcache_write_line): Fix typo.
8413
8414 * memattr.c (delete_mem_region): Replace free() with xfree().
8415 (mem_number): Add explicit type.
8416
8417 * sol-thread.c (sol_thread_xfer_memory): Add attrib argument.
8418 (rw_common): Likewise.
8419
8420 2001-01-24 Fernando Nasser <fnasser@redhat.com>
8421
8422 * infcmd.c (get_inferior_args, set_inferior_args): Accessor functions
8423 for the inferior program arguments.
8424 (run_command, run_no_args_command, init_infcmd)): Use accessor
8425 functions to set the inferior program arguments.
8426 * inferior.h: Add definitions to the accessor functions above.
8427
8428 2001-01-23 Jim Blandy <jimb@redhat.com>
8429
8430 * dwarf2read.c (read_tag_const_type, read_tag_volatile_type):
8431 Implement these correctly, using make_cv_type.
8432
8433 2001-01-23 J.T. Conklin <jtc@redback.com>
8434
8435 * exec.c (xfer_memory): Add attrib argument.
8436 * infptrace.c (child_xfer_memory): Likewise.
8437 * lin-lwp.c (lin_lwp_xfer_memory): Likewise.
8438 * monitor.c (monitor_xfer_memory): Likewise.
8439 * remote-adapt.c (adapt_xfer_inferior_memory): Likewise.
8440 * remote-array.c (array_xfer_memory): Likewise.
8441 * remote-bug.c (bug_xfer_memory): Likewise.
8442 * remote-e7000.c (e7000_xfer_inferior_memory): Likewise.
8443 * remote-eb.c (eb_xfer_inferior_memory): Likewise.
8444 * remote-es.c (es1800_xfer_inferior_memory): Likewise.
8445 * remote-mips.c (mips_xfer_memory): Likewise.
8446 * remote-mm.c (mm_xfer_inferior_memory): Likewise.
8447 * remote-nindy.c (nindy_xfer_inferior_memory): Likewise.
8448 * remote-os9k.c (rombug_xfer_inferior_memory): Likewise.
8449 * remote-rdi.c (arm_rdi_xfer_memory): Likewise.
8450 * remote-rdp.c (remote_rdp_xfer_inferior_memory): Likewise.
8451 * remote-sds.c (sds_xfer_memory): Likewise.
8452 * remote-sim.c (gdbsim_xfer_inferior_memory): Likewise.
8453 * remote-st.c (st2000_xfer_inferior_memory): Likewise.
8454 * remote-udi.c (udi_xfer_inferior_memory): Likewise.
8455 * remote-vx.c (vx_xfer_memory): Likewise.
8456 * remote.c (remote_xfer_memory): Likewise.
8457 * target.c (debug_to_xfer_memory, do_xfer_memory): Likewise.
8458 * target.h (child_xfer_memory, do_xfer_memory, xfer_memory): Likewise.
8459 * thread-db.c (thread_db_xfer_memory): Likewise.
8460
8461 * target.h (#include "memattr.h"): Added.
8462 (target_ops.to_xfer_memory): Add attrib argument.
8463
8464 * wince.c (_initialize_inftarg): Removed call to set_dcache_state.
8465 * dcache.h (set_dcache_state): Removed declaration.
8466 * dcache.c (set_dcache_state): Removed definition
8467
8468 * dcache.c: Update module comment, as dcache is now enabled and
8469 disabled with memory region attributes instead of by the global
8470 variable "remotecache". Add comment describing the interaction
8471 between dcache and memory region attributes.
8472 (dcache_xfer_memory): Add comment describing benefits of moving
8473 cache writeback to a higher level.
8474 (dcache_struct): Removed cache_has_stuff field. This was used to
8475 record whether the cache had been accessed in order to invalidate
8476 it when it was disabled. However, this is not needed because the
8477 cache is write through and the code that enables, disables, and
8478 deletes memory regions invalidate the cache. Add comment which
8479 suggests that we could be more selective and only invalidate those
8480 cache lines containing data from those memory regions.
8481 (dcache_invalidate): Updated.
8482 (dcache_xfer_memory): Updated.
8483
8484 (dcache_alloc): Don't abort() if dcache_enabled_p is clear.
8485 (dcache_xfer_memory): Removed code that called do_xfer_memory() to
8486 perform a uncached transfer if dcache_enabled_p was clear. This
8487 function is now only called if caching is enabled for the memory
8488 region.
8489 (dcache_info): Always print cache info.
8490
8491 * target.c (do_xfer_memory): Add attrib argument.
8492 (target_xfer_memory, target_xfer_memory_partial): Break transfer
8493 into chunks defined by memory regions, pass region attributes to
8494 do_xfer_memory().
8495 * dcache.c (dcache_read_line, dcache_write_line): Likewise.
8496
8497 * Makefile.in (SFILES): Add memattr.c.
8498 (COMMON_OBS): Add memattr.o.
8499 (dcache.o): Add target.h to dependencies.
8500 * memattr.c: New file.
8501 * memattr.h: Likewise.
8502
8503 * config/m32r/m32r.mt (GDBSERVER_LIBS): Added ../../intl/libintl.a.
8504 * config/mips/vr5000.mt (GDBSERVER_LIBS): Likewise.
8505 * config/tic80/tic80.mt (GDBSERVER_LIBS): Likewise.
8506 * gdbserver/low-sim.c (#include "defs.h"): Removed.
8507 (mygeneric_load): Rename from generic_load.
8508
8509 * gdbserver/low-hppabsd.c (#include "server.h"): Added.
8510 (#include "defs.h"): Removed.
8511 (inferior_pid, perror_with_name): Remove declarations.
8512 * gdbserver/low-linux.c: Likewise.
8513 * gdbserver/low-nbsd.c: Likewise.
8514 * gdbserver/low-sparc.c: Likewise.
8515 * gdbserver/low-sun3.c: Likewise.
8516
8517 * i386-stub.c: Re-indent.
8518 * m68k-stub.c: Re-indent.
8519
8520 2001-01-22 Nicholas Duffek <nsd@redhat.com>
8521
8522 * gdbarch.sh (PARM_BOUNDARY): Define.
8523 * gdbarch.c: Regenerate.
8524 * gdbarch.h: Regenerate.
8525
8526 2001-01-22 J.T. Conklin <jtc@redback.com>
8527
8528 * ns32k-tdep.c: #include "frame.h"
8529 * config/ns32k/tm-umax.h (FRAME_FIND_SAVED_REGS): Restore. It
8530 appears to have been inadvertantly removed sometime in May 1999.
8531
8532 * Revert 2000-11-09 changes where shared library objects were
8533 moved from NATDEPFILES to TDEPFILES on NetBSD targets. While
8534 we'd like to be able to debug dynamically linked executables,
8535 this makes it impossible to build a cross debugger on a many
8536 hosts.
8537
8538 * config/i386/nbsd.mt: Remove solib.o, solib-svr4.o from TDEPFILES.
8539 * config/i386/nbsdelf.mt: Likewise.
8540 * config/m68k/nbsd.mt: Likewise.
8541 * config/ns32k/nbsd.mt: Likewise.
8542 * config/powerpc/nbsd.mt: Likewise.
8543 * config/sparc/nbsd.mt: Likewise.
8544 * config/sparc/nbsdelf.mt: Likewise.
8545 * config/i386/nbsd.mh: Add solib.o, solib-svr4.o to NATDEPFILES.
8546 * config/i386/nbsdelf.mh: Likewise.
8547 * config/m68k/nbsd.mh: Likewise.
8548 * config/ns32k/nbsd.mh: Likewise.
8549 * config/powerpc/nbsd.mh: Likewise.
8550 * config/sparc/nbsd.mh: Likewise.
8551
8552 2001-01-19 Jason Merrill <jason@redhat.com>
8553
8554 * dbxread.c (read_ofile_symtab): Stay with AUTO_DEMANGLING for G++.
8555 (process_one_symbol): Likewise.
8556 * dwarfread.c (handle_producer): Likewise.
8557
8558 Thu Jan 18 12:08:57 2001 Andrew Cagney <cagney@b1.cygnus.com>
8559
8560 * configure.in (build_warnings): Disable -Wuninitialized until GDB
8561 compiles with -Wuninitialized,-Werror.
8562 * configure: Regenerate.
8563
8564 * MAINTAINERS: Add list of buildable targets.
8565
8566 Thu Jan 18 12:48:04 2001 Andrew Cagney <cagney@b1.cygnus.com>
8567
8568 * defs.h (STRCMP): Delete macro.
8569
8570 * objfiles.c (objfile_relocate): Replace STRCMP with call to
8571 strcmp.
8572 * symtab.c (lookup_partial_symbol, lookup_block_symbol): Ditto.
8573 * symfile.c (compare_symbols): Ditto.
8574 * standalone.c (open): Ditto.
8575 * remote-es.c (verify_break): Ditto.
8576 * cli/cli-decode.c (add_cmd, add_show_from_set): Ditto.
8577
8578 * symfile.c (compare_psymbols): Delete comment refering to STRCMP.
8579
8580 Thu Jan 18 12:25:06 2001 Andrew Cagney <cagney@b1.cygnus.com>
8581
8582 * varobj.c (FREEIF): Delete macro.
8583 (varobj_set_value, free_variable): Replace FREEIF with ``xfree''
8584 call.
8585
8586 2001-01-18 Nick Clifton <nickc@redhat.com>
8587
8588 * arc-tdep.c (arc_cpu_type_table): Add new arc core numbers.
8589 (arc_print_insn): No bfd available, so pass NULL to
8590 arc_get_disassembler.
8591
8592 2001-01-09 James Ingham <jingham@inghji.apple.com>
8593
8594 * symtab.c (lookup_symbol_aux): Call lookup_symbol_aux to lookup
8595 a mangled symbol rather than recursing into lookup_symbol, since
8596 this will just re-unmangle the name & call lookup_symbol_aux -
8597 leading to an infinite recursion.
8598
8599 2001-01-18 Mark Kettenis <kettenis@gnu.org>
8600
8601 * infcmd.c (print_return_value): Restore another space lost by
8602 switch to UIOUT. ``$NN='' should be ``$NN =''.
8603
8604 Fri Jan 19 02:31:40 2001 Andrew Cagney <cagney@b1.cygnus.com>
8605
8606 * target.h (TARGET_REGION_SIZE_OK_FOR_HW_WATCHPOINT)
8607 * breakpoint.c (TARGET_REGION_OK_FOR_HW_WATCHPOINT): Wrap macro
8608 definition in parenthesis.
8609
8610 Fri Jan 19 02:13:40 2001 Andrew Cagney <cagney@b1.cygnus.com>
8611
8612 From 2000-10-27 Mark Salter <msalter@redhat.com>:
8613 * remote.c (remote_remove_hw_breakpoint): Add 'len' field to Z
8614 packet.
8615 (remote_insert_hw_breakpoint): Ditto.
8616
8617 2001-01-17 J.T. Conklin <jtc@redback.com>
8618
8619 * config/m68k/tm-nbsd.h (USE_STRUCT_CONVENTION): Define.
8620 (BPT_VECTOR, REMOTE_BPT_VECTOR): Change to 0xf.
8621 * config/m68k/nbsd.mt (TDEPFILES): Add m68knbsd-tdep.o.
8622 * m68knbsd-tdep.c: New file.
8623
8624 * i386nbsd-tdep.c: Remove #if 0'd out #includes.
8625
8626 * m68knbsd-nat.c: #include gdbcore.h.
8627
8628 Wed Jan 17 09:41:58 2001 Andrew Cagney <cagney@b1.cygnus.com>
8629
8630 * MAINTAINERS: Add J.T. Conklin to Blanket Write Privs.
8631
8632 2001-01-16 Michael Snyder <msnyder@cleaver.cygnus.com>
8633
8634 * procfs.c (procfs_stopped_by_watchpoint): Don't die if process
8635 goes away -- just return false (ie. not stopped by watchpoint).
8636 * source.c (openp): Fix typo in comment.
8637
8638 2001-01-12 Nicholas Duffek <nsd@redhat.com>
8639
8640 * blockframe.c (generic_get_saved_register): Spelling fix.
8641 * frame.h (FRAME_FP): Spelling fix.
8642
8643 Fri Jan 12 18:29:46 2001 Andrew Cagney <cagney@b1.cygnus.com>
8644
8645 * infcmd.c (print_return_value): Restore space lost by switch to
8646 UIOUT. ``$NN='' should be ``$NN =''.
8647
8648 2001-01-08 Nicholas Duffek <nsd@redhat.com>
8649
8650 * regcache.c (set_register_cached, register_buffer,
8651 real_register, pseudo_register fetch_register, store_register):
8652 New functions.
8653 (register_changed, read_relative_register_raw_bytes_for_frame,
8654 registers_changed, registers_fetched, read_register_bytes,
8655 read_register_gen, write_register_gen, read_register,
8656 read_signed_register, write_register, supply_register): Replace
8657 register_valid[] with register_cached() and
8658 set_register_cached().
8659 (read_register_bytes, read_register_gen, write_register_gen,
8660 read_register, read_signed_register, write_register,
8661 supply_register): Replace registers[] with register_buffer().
8662 (read_register_bytes, read_register_gen, read_register,
8663 read_signed_register): Call fetch_register().
8664 (write_register_gen, write_register): Call real_register() and
8665 store_register().
8666 (write_register_bytes): Call store_register().
8667 * value.h (set_register_cached, register_buffer): Prototype.
8668 * remote.c (remote_fetch_registers): Allocate regs[] with a
8669 run-time size. Replace register_valid[] with
8670 set_register_cached().
8671 (store_register_using_P, remote_store_registers): Replace
8672 registers[] with register_buffer().
8673
8674 2001-01-08 Nicholas Duffek <nsd@redhat.com>
8675
8676 * regcache.c: Change "write-back" comment to "write-through".
8677 Change "regno" to "regnum".
8678 (read_register, read_signed_register): Remove "raw" from return
8679 value description.
8680 (supply_register): Spelling fix.
8681 * value.h: Change "regno" to "regnum".
8682
8683 2001-01-08 Fernando Nasser <fnasser@redhat.com>
8684
8685 * Makefile.in (install-gdbtk): Add .itcl files to the list of files
8686 to be installed.
8687
8688 2001-01-04 Michael Snyder <msnyder@mvstp600e.cygnus.com>
8689
8690 * mips-tdep.c (mips_coerce_float_to_double): Fix typo in comment.
8691
8692 2001-01-04 Nicholas Duffek <nsd@redhat.com>
8693
8694 * valops.c (VALUE_SUBSTRING_START): Delete.
8695
8696 2001-01-04 Nicholas Duffek <nsd@redhat.com>
8697
8698 * Makefile.in (SUBDIR_CLI_OBS): Add cli/cli-utils.o.
8699 (SUBDIR_CLI_SRCS): Add cli/cli-utils.c.
8700 (cli_utils_h): New variable.
8701 (cli/cli-utils.o): New rule.
8702 * cli/cli-utils.c: New file.
8703 * cli/cli-utils.h: New file.
8704
8705 2001-01-04 Nicholas Duffek <nsd@redhat.com>
8706
8707 * config/i386/tm-i386.h (REGISTER_CONVERT_TO_VIRTUAL,
8708 REGISTER_CONVERT_TO_RAW): Delete trailing semicolon.
8709
8710 2001-01-03 J.T. Conklin <jtc@redback.com>
8711
8712 * alphabsd-nat.c, i386-linux-nat.c, i386bsd-nat.c: Fix typo in
8713 comment.
8714
8715 2001-01-02 Michael Snyder <msnyder@cleaver.cygnus.com>
8716
8717 * sh-tdep.c (sh_default_store_return_value): Allow for small return type.
8718 (sh3e_sh4_store_return_value): Call sh_default_store_return_value for
8719 non-float types.
8720 * sparc-tdep.c (sparc_frame_chain): Fix typo in comment.
8721 Update copyright notice.
8722
8723 For older changes see ChangeLog-2000
8724 \f
8725 Local Variables:
8726 mode: change-log
8727 left-margin: 8
8728 fill-column: 74
8729 version-control: never
8730 End:
This page took 0.209614 seconds and 3 git commands to generate.