* config/i386/xm-cygwin.h: Revert inadvertent reinclusion of GDBINIT_FILENAME.
[deliverable/binutils-gdb.git] / gdb / ChangeLog
1 2002-02-14 Christopher Faylor <cgf@redhat.com>
2
3 * config/i386/xm-cygwin.h: Revert inadvertent reinclusion of
4 GDBINIT_FILENAME.
5
6 2002-02-14 Elena Zannoni <ezannoni@redhat.com>
7
8 * rs6000-tdep.c (rs6000_gdbarch_init): Don't call
9 find_variant_by_name, because it confuses the multiarch
10 framework. Return NULL if there isn't an architecture with the
11 user supplied name, instead of forcing a different one without
12 recording the change with the multiarch machinery.
13 (find_variant_by_name): Delete.
14
15 2002-02-14 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
16
17 * config/i386/i386sol2.mh (NATDEPFILES): Add i387-nat.o, needed by
18 i386v4-nat.o now. Add gcore.o, Solaris x86 supports gcore.
19
20 2002-02-13 Martin M. Hunt <hunt@redhat.com>
21
22 * stack.c (print_frame_info_base): When calling
23 print_frame_info_listing_hook, set current_source_symtab.
24
25 2002-02-14 Daniel Jacobowitz <drow@mvista.com>
26
27 * gdbserver/Makefile.in: Add regformats directory to INCLUDE_CFLAGS,
28 and remove unused $(INCLUDE_DIR).
29 Add regcache.c to OBS.
30 Add generated register protocol files to clean target.
31 Update dependencies for new objects, obsolete old target code.
32
33 * gdbserver/linux-low.c: Remove all platform-specific code to
34 new files. Remove various dead code. Update to use regcache
35 functionality.
36 * gdbserver/remote-utils.c (fromhex): Add return statement
37 to quiet warning.
38 (putpkt): Dynamically allocate buf2 because PBUFSIZ is no longer
39 constant.
40 (input_interrupt): Add integer parameter to match prototype
41 of a signal handler.
42 (outreg): Use register_data ().
43 (prepare_resume_reply): Use gdbserver_expedite_regs.
44 * gdbserver/server.c (main): Dynamically allocate own_buf because
45 PBUFSIZ is no longer constant. Use registers_to_string () and
46 registers_from_string ().
47 * gdbserver/server.h: No longer include "defs.h". Add prototypes
48 for error (), fatal (), and warning (). Update definition of
49 PBUFSIZ to use regcache functionality. Add include guard.
50 * gdbserver/utils.c (fatal): Add missing ``const''.
51 (warning): New function.
52
53 * regformats/regdat.sh: Include "regcache.h" in generated files.
54 Provide init_registers () function.
55 * regformats/regdef.h: Add prototype for set_register_cache ().
56 Add include guard.
57
58 * gdbserver/linux-arm-low.c: New file.
59 * gdbserver/linux-i386-low.c: New file.
60 * gdbserver/linux-ia64-low.c: New file.
61 * gdbserver/linux-m68k-low.c: New file.
62 * gdbserver/linux-mips-low.c: New file.
63 * gdbserver/linux-ppc-low.c: New file.
64 * gdbserver/linux-sh-low.c: New file.
65
66 * gdbserver/regcache.c: New file.
67 * gdbserver/regcache.h: New file.
68
69 * gdbserver/low-linux.c: Removed obsolete file.
70
71 2002-02-14 Daniel Jacobowitz <drow@mvista.com>
72
73 * config/arm/linux.mt: Update GDBSERVER_DEPFILES.
74 * config/i386/linux.mt: Likewise.
75 * config/ia64/linux.mt: Likewise.
76 * config/m68k/linux.mh: Likewise.
77 * config/powerpc/linux.mh: Likewise.
78 * config/mips/linux.mt: Likewise.
79
80 * config/sh/linux.mt: Add GDBSERVER_DEPFILES.
81
82 * config/i386/i386lynx.mh: Mark gdbserver variables
83 as (currently) obsolete for this target.
84 * config/i386/nbsd.mt: Likewise.
85 * config/i386/nbsdelf.mt: Likewise.
86 * config/m32r/m32r.mt: Likewise.
87 * config/m68k/m68klynx.mh: Likewise.
88 * config/m68k/nbsd.mt: Likewise.
89 * config/m68k/sun3os4.mh: Likewise.
90 * config/mips/vr5000.mt: Likewise.
91 * config/ns32k/nbsd.mt: Likewise.
92 * config/pa/hppabsd.mh: Likewise.
93 * config/pa/hppaosf.mh: Likewise.
94 * config/powerpc/nbsd.mt: Likewise.
95 * config/rs6000/rs6000lynx.mh: Likewise.
96 * config/s390/s390.mt: Likewise.
97 * config/s390/s390x.mt: Likewise.
98 * config/sparc/sparclynx.mh: Likewise.
99 * config/sparc/sun4os4.mh: Likewise.
100 * config/i386/x86-64linux.mt: Likewise.
101 * config/sparc/linux.mh: Likewise.
102
103 2002-02-14 Daniel Jacobowitz <drow@mvista.com>
104
105 * configure.tgt: Configure gdbserver only for known working
106 targets. Set ${build_gdbserver} instead of modifying ${configdirs}.
107 * configure.in: Check ${build_gdbserver}. Put gdbserver/ into
108 SUBDIRS if it is configured. Update comment for ${nativefile}.
109 * configure: Regenerated.
110
111 2002-02-13 Michael Snyder <msnyder@redhat.com>
112
113 * gcore.c (gcore_command): Use gcore_default_target instead of NULL.
114 (default_gcore_mach): Just return 0, work around a problem in bfd.
115 (default_gcore_target): OK to return NULL if exec_bfd is null.
116 (make_mem_sec): Use a cast, avoid a warning.
117
118 * procfs.c (find_memory_regions_callback): Use a cast instead of
119 calling host_pointer_to_address (which complains if
120 sizeof (host pointer) != sizeof (target pointer)).
121 (procfs_make_note_section): Avoid overflow in psargs string.
122
123 * procfs.c (procfs_make_note_section): Make the default
124 implementation return an error.
125
126 2002-02-13 Rodney Brown <rbrown64@csc.com.au>
127
128 * procfs.c (procfs_make_note_section): Provide a default definition
129 (for alpha-dec-osf4.0f). Fix typos.
130
131 2002-02-13 Elena Zannoni <ezannoni@redhat.com>
132
133 * linux-proc.c: Add include of regcache.h.
134 * Makefile.in (linux-proc.o): Add dependency on regcache.h.
135
136 2002-02-13 Andrew Cagney <ac131313@redhat.com>
137
138 From 2002-01-18 Greg McGary <greg@mcgary.org>:
139 * memattr.c (create_mem_region): Disallow useless empty region.
140 Regions are half-open intervals, so allow [A..B) [B..C) as
141 non-overlapping.
142
143 2002-02-13 Michael Chastain <mec@shout.net>
144
145 * defs.h: Kill CONST_PTR.
146 * c-lang.h (c_builtin_types): Change CONST_PTR to simple "const".
147 * c-lang.c (c_builtin_types): Likewise.
148 * ch-lang.c (ch_builtin_types): Likewise.
149 * f-lang.c (f_builtin_types): Likewise.
150 * language.c (unknown_builtin_types): Likewise.
151 * m2-lang.c (m2_builtin_types): Likewise.
152 * p-lang.c (pascal_builtin_types): Likewise.
153 * scm-lang.c (c_builtin_types): Likewise.
154
155 2002-02-13 Keith Seitz <keiths@redhat.com>
156
157 * arm-tdep.h (arm_get_next_pc): Add declaration.
158
159 2002-02-13 Richard Earnshaw <rearnsha@arm.com>
160
161 * arm-tdep.c (arm_use_struct_convention): Make static. Move to be
162 with other related struct-returning functions.
163 (arm_extract_struct_value_address): New function.
164 (arm_gdbarch_init): Initialize the above in multi-arch vector. Also
165 initialize float_format, double_format and long_double_format as
166 appropriate to the endianness of the target.
167 * config/arm/tm-arm.h (TARGET_DOUBLE_FORMAT): Delete.
168 (arm_use_struct_convention): Delete declaration.
169 (USE_STRUCT_CONVENTION, EXTRACT_STRUCT_VALUE_ADDRESS): Delete.
170
171 2002-02-13 Keith Seitz <keiths@redhat.com>
172
173 * defs.h (core_addr_to_string_nz): New function.
174
175 2002-02-13 Mark Kettenis <kettenis@gnu.org>
176
177 Apply missing bits of 2002-01-15 patch.
178 * i386v4-nat.c (supply_fpregset): Use i387_supply_fsave.
179 (fill_fpregset): Use i387_fill_fsave.
180
181 2002-02-12 Keith Seitz <keiths@redhat.com>
182
183 * utils.c (core_addr_to_string): Use phex instead of phex_nz.
184 (core_addr_to_string_nz): New function.
185
186 2002-02-11 Richard Earnshaw <rearnsha@arm.com>
187
188 * arm-linux-nat.c: Really include arm-tdep.h.
189 * config/arm/tm-linux.h (struct type, struct value): Declare.
190
191 2002-02-11 Michael Snyder <msnyder@redhat.com>
192
193 * procfs.c: Include elf-bfd.h (for elfcore_write functions).
194 (gcore section): Ifdef for Solaris and Unixware only.
195 (procfs_do_thread_registers): Unixware needs one lwpstatus
196 per thread (not one prstatus or pstatus).
197 (procfs_make_note_section): Iterate only over kernel threads (lwps),
198 not over all gdb threads. For unixware, call elfcore_write_pstatus
199 once before iterating over threads.
200
201 2002-02-11 Richard Earnshaw <rearnsha@arm.com>
202
203 * arm-tdep.h: New file.
204 * arm-tdep.c: Include arm-tdep.h.
205 (arm_addr_bits_remove, arm_smash_text_address, arm_saved_pc_after_call)
206 (arm_skip_prologue, arm_call_dummy_words, arm_fix_call_dummy)
207 (arm_print_float_info, arm_register_type, convert_to_extended)
208 (arm_elf_make_msymbols_special, arm_coff_make_msymbol_special)
209 (arm_extract_return_value, arm_register_name): Make static.
210 (arm_software_single_step): Similarly. Fix types in declaration.
211 (arm_register_byte, arm_register_raw_size, arm_register_virtual_size)
212 (arm_store_return_value, arm_store_struct_return): New functions.
213 (arm_gdbarch_init): Register the above functions. Also register
214 call_dummy_start_offset, sizeof_call_dummy_words,
215 function_start_offset, inner_than, decr_pc_after_break, fp_regnum,
216 sp_regnum, pc_regnum, register_bytes, num_regs, max_register_raw_size,
217 max_register_virtual_size, register_size. Set up
218 prologue_cache.saved_regs here, rather than ...
219 (_initialize_arm_tdep): ... here.
220 * config/arm/tm-arm.h (struct type, struct value): Delete forward
221 declarations.
222 (arm_addr_bits_remove, arm_smash_text_address, arm_saved_pc_after_call)
223 (arm_skip_prologue, arm_call_dummy_words, arm_fix_call_dummy)
224 (arm_print_float_info, arm_register_type, convert_to_extended)
225 (arm_elf_make_msymbols_special, arm_coff_make_msymbol_special)
226 (arm_extract_return_value, arm_register_name): Delete declarations.
227 (SMASH_TEXT_ADDRESS, ADDR_BITS_REMOVE, FUNCTION_START_OFFSET)
228 (SKIP_PROLOGUE, SAVED_PC_AFTER_CALL, INNER_THAN, BREAKPOINT_FROM_PC)
229 (DECR_PC_AFTER_BREAK, PRINT_FLOAT_INFO, REGISTER_SIZE, NUM_REGS)
230 (REGISTER_NAME, REGISTER_BYTES, REGISTER_BYTE, REGISTER_RAW_SIZE)
231 (REGISTER_VIRTUAL_SIZE, MAX_REGISTER_RAW_SIZE)
232 (MAX_REGISTER_VIRTUAL_SIZE, REGISTER_VIRTUAL_TYPE, STORE_STRUCT_RETURN)
233 (EXTRACT_RETURN_VALUE, STORE_RETURN_VALUE, CALL_DUMMY_WORDS)
234 (SIZEOF_CALL_DUMMY_WORDS, CALL_DUMMY_START_OFFSET, FIX_CALL_DUMMY)
235 (SOFTWARE_SINGLE_STEP_P, SOFTWARE_SINGLE_STEP)
236 (ELF_MAKE_MSYMBOL_SPECIAL, COFF_MAKE_MSYMBOL_SPECIAL) Delete.
237 (arm_pc_is_thumb, arm_pc_is_thumb_dummy, thumb_get_next_pc)
238 (arm_get_next_pc): No-longer static -- these are needed by the RDI
239 interface.
240 * arm-linux-nat.c arm-linux-tdep.c armnbsd-nat.c: Include arm-tdep.h.
241 * remote-rdi.c remote-rdp.c: Likewise.
242 * Makefile.in (arm-linux-nat.o, arm-linux-tdep.o arm-tdep.o)
243 (armnbsd-nat.o, remote-rdi.o, remote_rdp.o): Update dependencies.
244 * config/arm/tm-nbsd.h (SOFTWARE_SINGLE_STEP_P): Delete bogus
245 definition.
246
247 * arm-tdep.h (ARM_A1_REGNUM, ARM_A4_REGNUM, ARM_AP_REGNUM)
248 (ARM_SP_REGNUM, ARM_LR_REGNUM, ARM_PC_REGNUM, ARM_F0_REGNUM)
249 (ARM_F3_REGNUM, ARM_F7_REGNUM, ARM_FPS_REGNUM, ARM_PS_REGNUM): Renamed
250 from non-ARM_ prefixed definitions.
251 * arm-tdep.c armnbsd-nat.c arm-linux-nat.c arm-linux-tdep.c: Update
252 all uses of above.
253 * remote-rdi.c remote-rdp.c: Likewise.
254 * arm-linux-nat.c (ARM_CPSR_REGNUM): Renamed from CPSR_REGNUM.
255
256 2002-02-11 Richard Earnshaw <rearnsha@arm.com>
257
258 * arm-tdep.c (arm_frameless_function_invocation)
259 (arm_frame_args_address, arm_frame_locals_address, arm_frame_num_args)
260 (arm_frame_chain, arm_init_extra_frame_info, arm_frame_saved_pc)
261 (arm_read_fp, arm_frame_init_saved_regs, arm_push_dummy_frame)
262 (arm_pop_frame, arm_get_next_pc): Make static.
263 (arm_gdbarch_init): Register above in gdbarch structure.
264 (arm_read_fp): Renamed from arm_target_read_fp.
265 (arm_pc_is_thumb, arm_pc_is_thumb_dummy): Make static.
266 * config/arm/tm-arm.h (arm_frameless_function_invocation)
267 (arm_frame_args_address, arm_frame_locals_address, arm_frame_num_args)
268 (arm_frame_chain, arm_init_extra_frame_info, arm_frame_saved_pc)
269 (arm_target_read_fp, arm_frame_init_saved_regs, arm_push_dummy_frame)
270 (arm_pop_frame, arm_get_next_pc, arm_pc_is_thumb)
271 (arm_pc_is_thumb_dummy): Delete declarations.
272 (INIT_EXTRA_FRAME_INFO, TARGET_READ_FP, FRAME_CHAIN)
273 (FRAMELESS_FUNCTION_INVOCATION, FRAME_SAVED_PC, FRAME_ARGS_ADDRESS)
274 (FRAME_LOCALS_ADDRESS, FRAME_NUM_ARGS, FRAME_ARGS_SKIP)
275 (FRAME_INIT_SAVED_REGS, PUSH_DUMMY_FRAME, POP_FRAME): Delete.
276
277 2002-02-10 Daniel Jacobowitz <drow@mvista.com>
278
279 * symtab.c (compare_search_syms): New function.
280 (sort_search_symbols): New function.
281 (search_symbols): Sort symbols after searching rather than
282 before.
283
284 2002-02-10 Andrew Cagney <ac131313@redhat.com>
285
286 * NEWS: Linux -> GNU/Linux.
287
288 2002-02-10 Andrew Cagney <ac131313@redhat.com>
289
290 * gdbarch.sh: For for level one methods, disallow a definition
291 when partially multi-arched. Add comments explaining rationale.
292 * gdbarch.h: Re-generate.
293
294 2002-02-10 Andrew Cagney <ac131313@redhat.com>
295
296 * gdbarch.sh (EXTRA_STACK_ALIGNMENT_NEEDED): Don't require when
297 multi-arch partial.
298
299 2002-02-10 Andrew Cagney <ac131313@redhat.com>
300
301 * gdbarch.sh: Map LEVEL onto a symbolic GT_LEVEL. Exit on bad
302 field. Use diff -u.
303 * gdbarch.c: Re-generate.
304
305 2002-02-10 Andrew Cagney <ac131313@redhat.com>
306
307 * config/mips/tm-mips.h (CALL_DUMMY_LOCATION): Delete.
308 * gdbarch.sh (PUSH_RETURN_ADDRESS): Don't require when multi-arch
309 partial.
310
311 2002-02-10 Andrew Cagney <ac131313@redhat.com>
312
313 * gdbarch.sh (REGISTER_CONVERTIBLE): Don't require when
314 multi-arch partial.
315 (PUSH_ARGUMENTS): Switch to using predefault.
316 * gdbarch.c: Regenerate.
317
318 2002-02-10 Andrew Cagney <ac131313@redhat.com>
319
320 * valops.c (PUSH_ARGUMENTS): Delete definition.
321 * gdbarch.sh (PUSH_ARGUMENTS): Don't require when multi-arch
322 partial. Default to default_push_arguments.
323 * gdbarch.h, gdbarch.c: Regenerate.
324
325 2002-02-09 Andrew Cagney <ac131313@redhat.com>
326
327 * defs.h (throw_exception): Rename return_to_top_level. Update
328 comments.
329 * utils.c (error_stream, internal_verror, quit): Ditto.
330 * top.c (throw_exception, catcher): Ditto.
331 * sparclet-rom.c (sparclet_load): Ditto.
332 * remote.c (interrupt_query, minitelnet): Ditto.
333 * remote-sds.c (interrupt_query): Ditto.
334 * remote-mips.c (mips_error, mips_kill): Ditto.
335 * ocd.c (interrupt_query): Ditto.
336 * monitor.c (monitor_interrupt_query): Ditto.
337 * m3-nat.c (suspend_all_threads, thread_resume_command): Ditto.
338 * target.h: Update comment.
339
340 * m3-nat.c, ocd.c, sparclet-rom.c: Update copyright.
341
342 2002-02-09 Andrew Cagney <ac131313@redhat.com>
343
344 * gdbarch.sh (TARGET_LONG_DOUBLE_FORMAT): Default to
345 default_double_format.
346 * gdbarch.h, gdbarch.c: Re-generate.
347 * findvar.c (floatformat_unknown): Delete variable definition.
348 * doublest.h (floatformat_unknown): Delete variable declaration.
349
350 2002-02-09 Jim Blandy <jimb@redhat.com>
351
352 * stabsread.c (read_type): Add code to parse Sun's syntax for
353 prototyped function types.
354
355 2002-02-09 Andrew Cagney <ac131313@redhat.com>
356
357 * Makefile.in (SUBDIR_CLI_INITS): Set to SUBDIR_CLI_SRCS.
358 (SUBDIR_MI_INITS): Set to SUBDIR_MI_SRCS.
359
360 2002-02-09 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
361
362 * xcoffsolib.c (_initialize_xcoffsolib): Renamed from
363 _initialize_solib. Fixes name clash with solib.c:_initialize_solib,
364 now _initialize_xcoffsolib gets called again and overrides the
365 commands from solib.c in a native configuration.
366
367 2002-02-09 Mark Kettenis <kettenis@gnu.org>
368
369 * doublest.c (store_typed_floating): Don't try to return a value.
370 Fixes PR gdb/290.
371
372 2002-02-08 Jim Blandy <jimb@redhat.com>
373
374 * c-typeprint.c (c_type_print_varspec_suffix): If a function type
375 is prototyped and has no arguments, print its argument list as
376 `(void)'.
377
378 2002-02-08 Chris Demetriou <cgd@broadcom.com>
379
380 * MAINTAINERS (write-after-approval): Add myself.
381 (paper-trail): I've escaped!
382
383 2002-02-08 Christopher Faylor <cgf@redhat.com>
384
385 * win32-nat.c (cygwin_pid_to_str): Revert 2002-02-08 change xasprintf
386 changes.
387 (_initialize_check_for_gdb_ini): Ditto.
388
389 2002-02-08 Martin M. Hunt <hunt@redhat.com>
390
391 * win32-nat.c (cygwin_pid_to_str): Fix typo.
392 xaprintf -> xasprintf.
393
394 2002-02-08 Pierre Muller <muller@ics.u-strasbg.fr>
395
396 * win32-nat.c: Remove use of printf and sprintf functions.
397
398 2002-02-08 Richard Earnshaw <rearnsha@arm.com>
399
400 * arm-tdep.c (arm_frame_chain_valid): Make static.
401 (arm_push_arguments): Likewise.
402 (arm_gdbarch_init): New function.
403 (_initialize_arm_tdep): Call it.
404 * config/arm/tm-arm.h (GDB_MULTI_ARCH): Set to 1.
405 (TARGET_DOUBLE_FORMAT): Test TARGET_BYTE_ORDER, not target_byte_order.
406 (FRAME_CHAIN_VALID): Delete.
407 (arm_frame_chain_valid): Delete declaration.
408 (PUSH_ARGUMENTS): Delete.
409 (arm_push_arguments): Delete declaration.
410 (CALL_DUMMY_P): Delete.
411
412 2002-02-08 Andrew Cagney <ac131313@redhat.com>
413 Corinna Vinschen <vinschen@redhat.com>
414
415 * gdbtypes.c (build_gdbtypes): Disable setting a specific float format
416 on builtin float types.
417
418 2002-02-08 Daniel Jacobowitz <drow@mvista.com>
419
420 * utils.c: Include <curses.h> before "bfd.h".
421 * tui/tui-hooks.c: Likewise.
422 * tui/tui.c: Likewise.
423 * tui/tuiCommand.c: Likewise.
424 * tui/tuiData.c: Likewise.
425 * tui/tuiDataWin.c: Likewise.
426 * tui/tuiDisassem.c: Likewise.
427 * tui/tuiGeneralWin.c: Likewise.
428 * tui/tuiIO.c: Likewise.
429 * tui/tuiLayout.c: Likewise.
430 * tui/tuiRegs.c: Likewise.
431 * tui/tuiSource.c: Likewise.
432 * tui/tuiSourceWin.c: Likewise.
433 * tui/tuiStack.c: Likewise.
434 * tui/tuiWin.c: Likewise.
435
436 2002-02-07 Elena Zannoni <ezannoni@redhat.com>
437
438 * sh-tdep.c (sh_nofp_frame_init_saved_regs): Extend where[] array
439 to include space for pseudoregs as well. Update loops accordingly.
440 (sh_fp_frame_init_saved_regs): Ditto.
441 (sh_init_extra_frame_info, sh_pop_frame): Split long lines.
442
443 2002-02-07 Andrew Cagney <ac131313@redhat.com>
444
445 * MAINTAINERS: Andreas Schwab is GNU/Linux m68k maintainer.
446 Add Richard Earnshaw to Arm maintainers.
447
448 2002-02-07 Andrew Cagney <ac131313@redhat.com>
449
450 * defs.h (warning_begin): Delete declaration.
451
452 * config/powerpc/tm-ppcle-eabi.h (TARGET_BYTE_ORDER_DEFAULT):
453 Delete macro.
454
455 2002-02-07 Michael Snyder <msnyder@redhat.com>
456
457 * solib-legacy.c (legacy_svr4_fetch_link_map_offsets):
458 Logic bug, remove misplaced else.
459
460 2002-02-07 Klee Dienes <klee@apple.com>
461
462 * fork-inferior.c (fork_inferior): Add '!' to the list of
463 characters that need to be quoted when building a string for the
464 shell. Quote '!' specifically with a backslash, since CSH chokes
465 when trying to evaluate "str!str".
466
467 2002-02-06 Nick Clifton <nickc@cambridge.redhat.com>
468
469 * rdi-share/host.h: Only provide a typedef for bool if it is not
470 defined.
471
472 2002-02-04 Michael Snyder <msnyder@redhat.com>
473
474 * breakpoint.h (enum bptype): Add new overlay event bp type.
475 (enable_overlay_breakpoints, disable_overlay_breakpoints): Export.
476
477 * breakpoint.c (create_internal_breakpoint): New function.
478 (internal_breakpoint_number): Moved into create_internal_breakpoint.
479 (create_longjmp_breakpoint): Use create_internal_breakpoint.
480 (create_thread_event_breakpoint): Ditto.
481 (create_solib_event_breakpoint): Ditto.
482 (create_overlay_event_breakpoint): New function.
483 (enable_overlay_breakpoints, disable_overlay_breakpoints): New funcs.
484 (update_breakpoints_after_exec): Delete and re-initialize
485 overlay event breakpoints after an exec. Add FIXME comment
486 about longjmp breakpoint.
487 (print_it_typical): Ignore overlay event breakpoints.
488 (print_one_breakpoint): Ditto.
489 (mention): Ditto.
490 (bpstat_what): Do not stop for overlay event breakpoints.
491 (delete_breakpoint): Don't delete overlay event breakpoints.
492 (breakpoint_re_set_one): Delete the overlay event breakpoint.
493 (breakpoint_re_set): Re-create overlay event breakpoint.
494
495 * symfile.c (overlay_auto_command): Enable overlay breakpoints.
496 (overlay_manual_command): Disable overlay breakpoints.
497 (overlay_off_command): Disable overlay breakpoints.
498
499 2002-02-06 Richard Earnshaw <rearnsha@arm.com>
500
501 * arm-tdep.c: Include elf-bfd.h and coff/internal.h.
502 (MSYMBOL_SET_SPECIAL, MSYMBOL_IS_SPECIAL, MSYMBOL_SIZE): Move defines
503 to here from config/tm-arm.h.
504 (coff_sym_is_thumb): Make static.
505 (arm_elf_make_msymbol_special): New function.
506 (arm_coff_make_msymbol_special): New function.
507 * config/arm/tm-arm.h (MSYMBOL_SET_SPECIAL): Delete definition.
508 (MSYMBOL_IS_SPECIAL, MSYMBOL_SIZE): Likewise.
509 (coff_sym_is_thumb): Delete declaration.
510 (arm_elf_make_msymbol_special): Declare.
511 (arm_coff_make_msymbol_special): Declare.
512 (ELF_MAKE_MSYMBOL_SPECIAL): Call arm_elf_make_msymbol_special.
513 (COFF_MAKE_MSYMBOL_SPECIAL): Call arm_coff_make_msymbol_special.
514
515 2002-02-06 Richard Earnshaw <rearnsha@arm.com>
516
517 * arm-tdep.c (arm_software_single_step): ANSIfy function declaration.
518
519 2002-02-06 Richard Earnshaw <rearnsha@arm.com>
520
521 * gdbarch.sh (PRINT_FLOAT_INFO): Add rule.
522 * gdbarch.c gdbarch.h: Regenerate.
523 * arch-utils.c (default_print_float_info): New function.
524 * arch-utils.h (default_print_float_info): Prototype it.
525 * infcmd.c (float_info): Call PRINT_FLOAT_INFO.
526 * doc/gdbint.texinfo (FLOAT_INFO): Mark as deprecated.
527 (PRINT_FLOAT_INFO): Document it.
528
529 * arm-tdep.c (arm_print_float_info): Renamed from arm_float_info.
530 * config/arm/tm-arm.h (FLOAT_INFO): Delete.
531 (PRINT_FLOAT_INFO): Define.
532
533 2002-02-06 Pierre Muller <muller@ics.u-strasbg.fr>
534
535 * win32-nat.c (_initialize_check_for_gdb_ini):
536 Add typecast to sprintf argument to suppress a warning.
537
538 2002-02-05 Pierre Muller <muller@ics.u-strasbg.fr>
539
540 * win32-nat.c (last_sig): Changed type of variable to target_signal,
541 to allow easier handling of pass state.
542 (DEBUG_EXCEPTION_SIMPLE): New macro, used in handle_exception,
543 that gives exception name and address.
544 (handle_exception): Use DEBUG_EXCEPTION_SIMPLE macro
545 and set last_sig value to ourstatus->value.sig. Some missing
546 exceptions added.
547 (child_continue): Correctly report continue_status.
548 (get_child_debug_event,do_initial_child_stuff): Set last_sig to
549 TARGET_SIGNAL_0 (new default value).
550 (child_resume): consider sig argument passed to decide if
551 the exception should be passed to debuggee or not.
552
553 2002-02-05 Michael Snyder <msnyder@redhat.com>
554
555 * regcache.c (fetch_register): Call target_fetch_register
556 only if we don't call FETCH_PSEUDO_REGISTER.
557 (store_register): Call target_store_register only if we
558 don't call STORE_PSEUDO_REGISTER.
559
560 2002-02-05 Elena Zannoni <ezannoni@redhat.com>
561
562 * gdbarch.sh: Add definitions for COFF_MAKEMSYMBOL_SPECIAL and
563 ELF_MAKE_MSYMBOL_SPECIAL.
564 * gdbarch.c, gdbarch.h: Regenerate.
565 * arch-utils.c (default_make_msymbol_special): New function.
566 * arch-utils.h (default_make_msymbol_special): Export.
567 * elfread.c (elf_symtab_read): Compile use of
568 ELF_MAKE_MSYMBOL_SPECIAL unconditionally because it is now
569 multiarched.
570 * coffread.c (coff_symtab_read): Ditto, for
571 COFF_MAKE_MSYMBOL_SPECIAL.
572
573 2002-02-05 Jim Blandy <jimb@redhat.com>
574
575 * solib-svr4.c (svr4_truncate_ptr): New function.
576 (svr4_relocate_section_addresses): Do the address arithmetic with
577 the appropriate truncation for target addresses, even when
578 CORE_ADDR is larger than a target address.
579
580 2002-02-05 Daniel Jacobowitz <drow@mvista.com>
581
582 * gdbserver/linux-low.c (mywait): Cast second argument of waitpid
583 to (int *).
584
585 2002-02-05 Daniel Jacobowitz <drow@mvista.com>
586
587 * gdbserver/linux-low.c (kill_inferior): Remove commented out
588 code.
589
590 2002-02-05 Daniel Jacobowitz <drow@mvista.com>
591
592 * c-valprint.c (c_val_print): Handle TYPE_CODE_COMPLEX.
593
594 2002-02-05 Daniel Jacobowitz <drow@mvista.com>
595
596 * gdbserver/linux-low.c: Remove unused include files.
597
598 2002-02-05 Daniel Jacobowitz <drow@mvista.com>
599
600 * gdbserver/linux-low.c: Define PTRACE_ARG3_TYPE.
601 (read_inferior_memory): Use it.
602 (write_inferior_memory): Likewise.
603
604 2002-02-05 Daniel Jacobowitz <drow@mvista.com>
605
606 * gdbserver/linux-low.c (create_inferior): Call strerror instead of
607 grubbing through sys_errlist.
608
609 2002-02-05 Daniel Jacobowitz <drow@mvista.com>
610
611 * gdbserver/linux-low.c: New file, copied exactly from low-linux.c.
612
613 2002-02-04 Pierre Muller <muller@ics.u-strasbg.fr>
614 * win32-nat.c (handle_exception): Handle Ctrl-Break exception.
615
616 2002-02-04 Andrew Cagney <ac131313@redhat.com>
617
618 * cli/cli-decode.c (do_cfunc, set_cmd_cfunc): New functions.
619 (do_sfunc, set_cmd_sfunc): New functions.
620
621 * command.h (struct cmd_list_element): Add field func.
622 * cli/cli-decode.h (struct cmd_list_element): Ditto.
623 * command.h (set_cmd_sfunc, set_cmd_cfunc): Declare.
624 * cli/cli-decode.h: Ditto.
625
626 * cli/cli-decode.c (help_cmd): Test for func not cfunc/sfunc.
627 (help_all, help_cmd_list): Ditto.
628 (find_cmd, complete_on_cmdlist): Ditto.
629 * top.c (execute_command): Ditto.
630
631 * cli/cli-setshow.c (do_setshow_command): Call func instead of
632 function.sfunc.
633
634 * infcmd.c (notice_args_read): Fix function signature.
635
636 * cli/cli-cmds.c (init_cli_cmds): Use set_cmd_sfunc.
637 * cli/cli-decode.c (add_set_cmd): Ditto.
638 * utils.c (initialize_utils): Ditto.
639 * maint.c (_initialize_maint_cmds): Ditto.
640 * infrun.c (_initialize_infrun): Ditto.
641 * demangle.c (_initialize_demangler): Ditto.
642 * remote.c (add_packet_config_cmd): Ditto.
643 * mips-tdep.c (_initialize_mips_tdep): Ditto.
644 * cris-tdep.c (_initialize_cris_tdep): Ditto.
645 * proc-api.c (_initialize_proc_api): Ditto.
646 * kod.c (_initialize_kod): Ditto.
647 * valprint.c (_initialize_valprint): Ditto.
648 * top.c (init_main): Ditto.
649 * infcmd.c (_initialize_infcmd): Ditto.
650 * corefile.c (_initialize_core): Ditto.
651 * arm-tdep.c (_initialize_arm_tdep): Ditto.
652 * arch-utils.c (initialize_current_architecture): Ditto.
653 (_initialize_gdbarch_utils): Ditto.
654 * alpha-tdep.c (_initialize_alpha_tdep): Ditto.
655
656 * cli/cli-decode.c (add_cmd): Use set_cmd_cfunc.
657 * wince.c (_initialize_inftarg): Ditto.
658 * symfile.c (_initialize_symfile): Ditto.
659 * mips-tdep.c (_initialize_mips_tdep): Ditto.
660 * language.c (_initialize_language): Ditto.
661 * arc-tdep.c (_initialize_arc_tdep): Ditto.
662
663 2002-02-04 Michael Snyder <msnyder@redhat.com>
664
665 * memattr.c (_initialize_mem): Elaborate the help for 'mem' command.
666
667 2002-02-04 Daniel Jacobowitz <drow@mvista.com>
668
669 * gdbserver/Makefile.in: Add regformats directory to INCLUDE_CFLAGS.
670 Add rules for building the register data files.
671
672 2002-02-04 Daniel Jacobowitz <drow@mvista.com>
673
674 * regformats/regdat.sh: Add braces to the definition of
675 expedite_regs_${arch}.
676
677 2002-02-04 Daniel Jacobowitz <drow@mvista.com>
678
679 * regformats/regdef.h (struct reg): Add comment describing the
680 requirements for offset and size fields.
681
682 2002-02-04 Andreas Schwab <schwab@suse.de>
683
684 * config/ia64/linux.mh: Don't set NAT_CLIBS and REGEX.
685 * config/ia64/linux.mt: Don't set GDBSERVER_LIBS.
686
687 2002-02-04 Richard Earnshaw <rearnsha@arm.com>
688
689 * gdbarch.sh (copyright): Update years in generated header.
690 (SMASH_TEXT_ADDRESS): Add rule.
691 * gdbarch.h, gdbarch.c: Re-generate.
692 * coffread.c: Multi-arch uses of SMASH_TEXT_ADDRESS.
693 * dbxread.c: Likewise.
694 * dwarfread.c: Likewise.
695 * elfread.c: Likewise.
696 * somread.c: Likewise.
697
698 * arm-tdep.c (arm_smash_text_address): New function.
699 * config/arm/tm-arm.h (SMASH_TEXT_ADDRESS): Define in terms of above.
700
701 2002-02-04 Pierre Muller <muller@ics.u-strasbg.fr>
702
703 Add support for hardware watchpoints on win32 native.
704 * win32-nat.c (CONTEXT_DEBUG_DR macro): Add use of
705 CONTEXT_DEBUG_REGISTERS.
706 (dr variable): New variable. Static array containing a local copy
707 of debug registers.
708 (debug_registers_changed): New variable. Reflects when debug registers
709 are changed and need to be written to inferior.
710 (debug_registers_used): New variable. Reflects when any debug register
711 was set, used when new threads are created.
712 (cygwin_set_dr, cygwin_set_dr7, cygwin_get_dr6): New functions used by
713 i386-nat code.
714 (thread_rec): Set dr array if id is the thread of current_event .
715 (child_continue, child_resume): Change the debug registers for all
716 threads if debug_registers_changed.
717 (child_add_thread): Change the debug registers if debug_registers_used.
718 * config/i386/cygwin.mh: Add use of i386-nat.o file.
719 Link nm.h to new nm-cygwin.h file.
720 + config/i386/nm-cygwin.h: New file. Contains the macros used for use
721 of hardware registers.
722
723 2002-02-03 Andrew Cagney <ac131313@redhat.com>
724
725 * valprint.c (print_floating): Allow non TYPE_CODE_FLT types.
726 Restore behavour broken by 2002-01-20 Andrew Cagney
727 <ac131313@redhat.com> IEEE_FLOAT removal.
728
729 2002-02-03 Daniel Jacobowitz <drow@mvista.com>
730
731 * c-valprint.c (c_val_print): Pass a proper valaddr to
732 cp_print_class_method.
733 * valops.c (search_struct_method): If there is only one method
734 and args is NULL, return that method.
735
736 2002-02-03 Daniel Jacobowitz <drow@mvista.com>
737
738 * gdbtypes.c (init_simd_type): Use TYPE_TAG_NAME instead of
739 accessing tag_name directly.
740
741 2002-02-03 Daniel Jacobowitz <drow@mvista.com>
742
743 * ax-gdb.c (find_field): Use TYPE_TAG_NAME instead
744 of accessing tag_name directly.
745
746 2002-02-03 Daniel Jacobowitz <drow@mvista.com>
747
748 PR gdb/280
749 * gdbtypes.c (replace_type): New function.
750 * gdbtypes.h (replace_type): Add prototype.
751 * stabsread.c (read_type): Use replace_type.
752
753 2002-02-03 Richard Earnshaw <rearnsha@arm.com>
754
755 * Makefile.in (memattr.o): Add missing dependencies rule.
756
757 2002-02-03 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
758
759 * breakpoint.c (break_at_finish_command): Really export.
760 (break_at_finish_at_depth_command): Ditto.
761 (tbreak_at_finish_command): Ditto.
762 * hppa-tdep.c: Include completer.h.
763 * Makefile.in (hppa-tdep.o): Add dependency on $(completer_h).
764 (COMMON_OBS): Remove duplicate ui-file.o, frame.o, doublest.o.
765
766 2002-02-01 Andrew Cagney <ac131313@redhat.com>
767
768 * utils.c (do_write): New function.
769 (error_stream): Rewrite combining the code from error_begin and
770 verror.
771 (verror): Rewrite using error_stream.
772 (error_begin): Delete function.
773
774 2002-02-01 Andrew Cagney <ac131313@redhat.com>
775
776 * utils.c (error_begin): Make static.
777 * defs.h (error_begin): Delete declaration.
778
779 * linespec.c (cplusplus_error): Replace cplusplus_hint.
780 (decode_line_1): Use cplusplus_error instead of error_begin,
781 cplusplus_hint and return_to_top_level.
782 * coffread.c (coff_symfile_read): Use error instead of error_begin
783 and return_to_top_level.
784 * infrun.c (default_skip_permanent_breakpoint): Ditto.
785
786 2002-02-01 Andrew Cagney <ac131313@redhat.com>
787
788 * language.h (type_error, range_error): Make string parameter
789 constant.
790 * language.c (warning_pre_print): Delete extern declaration.
791 * dwarfread.c (warning_pre_print): Ditto.
792 * language.c (type_error, range_error): Rewrite to use verror and
793 vwarning instead of warning_begin.
794
795 2002-02-01 Michael Snyder <msnyder@redhat.com>
796
797 * breakpoint.c (breakpoint_re_set): Delete ancient #if 0 code.
798 (set_ignore_count): Move misplaced comment back where it belongs.
799
800 2002-02-01 Andrew Cagney <ac131313@redhat.com>
801
802 * command.h (NO_FUNCTION): Delete macro.
803 * cli/cli-decode.h (NO_FUNCTION): Ditto.
804 * top.c (execute_command): Replace NO_FUNCTION with NULL.
805 * tracepoint.c (_initialize_tracepoint): Ditto.
806 * cli/cli-decode.c (add_set_cmd): Ditto.
807 * cli/cli-cmds.c (init_cli_cmds): Ditto.
808
809 2002-02-01 Daniel Jacobowitz <drow@mvista.com>
810
811 * gnu-v3-abi.c (gnuv3_virtual_fn_field): Update comments.
812 Update ``this'' pointer when calling virtual functions.
813
814 2002-02-01 Michael Snyder <msnyder@redhat.com>
815
816 * breakpoint.c (create_temp_exception_breakpoint): Delete.
817 * hppa-tdep.c: Deprecate xbreak, txbreak and bx commands.
818
819 2002-02-01 Daniel Jacobowitz <drow@mvista.com>
820
821 * regformats/reg-arm.dat: New file.
822 * regformats/reg-i386.dat: New file.
823 * regformats/reg-ia64.dat: New file.
824 * regformats/reg-m68k.dat: New file.
825 * regformats/reg-mips.dat: New file.
826 * regformats/reg-ppc.dat: New file.
827 * regformats/reg-sh.dat: New file.
828 * regformats/regdef.h: New file.
829 * regformats/regdat.sh: New file.
830
831 2002-02-01 Richard Earnshaw <reanrsha@arm.com>
832
833 * arm-tdep.c (arm_frameless_function_invocation): Add some comments.
834 (arm_frame_args_address, arm_frame_locals_address): New functions.
835 (arm_frame_num_args): New function.
836 * config/tm-arm.h (FRAME_ARGS_ADDRESS): Call arm_frame_args_address.
837 (FRAME_LOCALS_ADDRESS): Call arm_frame_locals_address.
838 (FRMA_NUM_ARGS): Call arm_frame_num_args.
839
840 2002-01-31 Michael Snyder <msnyder@redhat.com>
841
842 * breakpoint.c (break_at_finish_command): Export.
843 (break_at_finish_at_depth_command): Export.
844 (tbreak_at_finish_command): Export.
845 (_initialize_breakpoint): Delete "xbreak" and "tbreak" commands.
846 * hppa-tdep.c (_initialize_hppa_tdep): Add "xbreak" and
847 "tbreak" commands, which are HPPA specific.
848
849 * printcmd.c (disassemble_command): Remove an ancient
850 artifact of an old merge.
851
852 * symfile.h (enum overlay_debugging_state):
853 Define enum constant values for overlay mode.
854 * symfile.c (overlay_debugging): Use enums instead of literals.
855 (overlay_is_mapped, overlay_auto_command,
856 overlay_manual_command): Ditto.
857
858 * breakpoint.c (insert_breakpoints, remove_breakpoint,
859 breakpoint_here_p, breakpoint_inserted_here_p,
860 breakpoint_thread_match, bpstat_stop_status,
861 describe_other_breakpoints, check_duplicates, clear_command):
862 Coding standard fixes.
863
864 * target.c (target_xfer_memory): Add spaces, coding standard.
865 (do_xfer_memory): Add missing line to trust-readonly
866 code: check bfd SEC_READONLY flag for section.
867
868 2002-01-31 Andrew Cagney <ac131313@redhat.com>
869
870 * PROBLEMS: Fix typo, 5.1->5.1.1.
871
872 2002-01-30 Daniel Jacobowitz <drow@mvista.com>
873
874 * symtab.c (find_pc_sect_psymtab): Do not search psymtabs for
875 data symbols, since we search based on textlow and texthigh.
876 (find_pc_sect_symtab): Likewise.
877
878 2002-01-30 Andrew Cagney <ac131313@redhat.com>
879
880 * defs.h (vwarning): Declare.
881 * utils.c (vwarning): New function.
882 (warning): Call vwarning.
883 (warning_begin): Delete function.
884
885 * rs6000-nat.c (vmap_ldinfo): Use the function warning to print
886 the warning message.
887 * d10v-tdep.c (d10v_address_to_pointer) [0]: Delete call to
888 warning_begin.
889
890 2002-01-30 Michael Snyder <msnyder@redhat.com>
891
892 * NEWS: Mention "set trust-readonly-sections" command.
893 Mention generate-core-file command.
894
895 2002-01-15 Michael Snyder <msnyder@redhat.com>
896
897 * target.c: New command, "set trust-readonly-sections on".
898 (do_xfer_memory): Honor the suggestion to trust readonly sections
899 by reading them from the object file instead of from the target.
900 (initialize_targets): Register command "set trust-readonly-sections".
901
902 2002-01-29 Andrew Cagney <ac131313@redhat.com>
903
904 * parse.c (target_map_name_to_register): Simplify, search regs and
905 pseudo-regs using a single loop.
906
907 2002-01-30 Andrew Cagney <ac131313@redhat.com>
908
909 * PROBLEMS: Note that the i386 fix was missing from 5.1.1.
910
911 2002-01-15 Rodney Brown <rbrown64@csc.com.au>
912
913 * config/i386/tm-i386v4.h: Define HAVE_I387_REGS.
914 * config/i386/i386v42mp.mh: Add i387-nat.o .
915 * i386v4-nat.c: Include i387-nat.h.
916 (supply_fpregset): Use i387_supply_fsave.
917 (fill_fpregset): Use i387_fill_fsave.
918
919 2002-01-30 Richard Earnshaw <rearnsha@arm.com>
920
921 * arm-tdep.c (arm_call_dummy_words): Define.
922 * arm-linux-tdep.c (arm_linux_call_dummy_words): Define.
923 * config/arm/tm-arm.h (CALL_DUMMY_P): Define.
924 (CALL_DUMMY_WORDS): Define.
925 (arm_call_dummy_words): Declare.
926 * config/arm/tm-linux.h (CALL_DUMMY_WORDS): Define.
927 (arm_linux_call_dummy_words): Declare.
928
929 2002-01-30 Andreas Schwab <schwab@suse.de>
930
931 * m68klinux-nat.c: Fix last change to use regcache_collect
932 instead of referencing registers[] directly.
933
934 2002-01-29 Andrew Cagney <ac131313@redhat.com>
935
936 * parse.c (target_map_name_to_register): Delete code wrapped in
937 #ifdef REGISTER_NAME_ALIAS_HOOK.
938
939 2002-01-28 Michael Snyder <msnyder@redhat.com>
940
941 * regcache.c (legacy_read_register_gen): Need to be able to
942 read pseudo-register as well as real register.
943 (legacy_write_register_gen): Ditto.
944
945 2002-01-28 Andrew Cagney <ac131313@redhat.com>
946
947 * config/mips/tm-wince.h (TARGET_BYTE_ORDER): Delete.
948 * config/sparc/tm-sparc.h (TARGET_BYTE_ORDER): Delete.
949 * config/ns32k/tm-umax.h (TARGET_BYTE_ORDER): Delete.
950 * config/ia64/tm-ia64.h (TARGET_BYTE_ORDER): Delete.
951 * config/m32r/tm-m32r.h (TARGET_BYTE_ORDER): Delete.
952 * config/m68k/tm-m68k.h (TARGET_BYTE_ORDER): Delete.
953 * config/m88k/tm-m88k.h (TARGET_BYTE_ORDER): Delete.
954 * config/mn10200/tm-mn10200.h (TARGET_BYTE_ORDER): Delete.
955 * config/pa/tm-hppa.h (TARGET_BYTE_ORDER): Delete.
956 * config/sh/tm-wince.h (TARGET_BYTE_ORDER): Delete.
957 * config/v850/tm-v850.h (TARGET_BYTE_ORDER): Delete.
958 * config/vax/tm-vax.h (TARGET_BYTE_ORDER): Delete.
959 * config/z8k/tm-z8k.h (TARGET_BYTE_ORDER): Delete.
960 * config/i960/tm-i960.h (TARGET_BYTE_ORDER): Delete.
961 * config/i386/tm-i386.h (TARGET_BYTE_ORDER): Delete.
962 * config/h8500/tm-h8500.h (TARGET_BYTE_ORDER): Delete.
963 * config/h8300/tm-h8300.h (TARGET_BYTE_ORDER): Delete.
964 * config/fr30/tm-fr30.h (TARGET_BYTE_ORDER): Delete.
965 * config/d30v/tm-d30v.h (TARGET_BYTE_ORDER): Delete.
966 * config/alpha/tm-alpha.h (TARGET_BYTE_ORDER): Delete.
967
968 2002-01-28 Andrew Cagney <ac131313@redhat.com>
969
970 * arch-utils.c (TARGET_BYTE_ORDER_DEFAULT): Delete macro.
971 (target_byte_order): Initialize to BFD_ENDIAN_BIG.
972 (initialize_current_architecture): Update target_byte_order using
973 information from BFD.
974 * config/mcore/tm-mcore.h (TARGET_BYTE_ORDER_DEFAULT):
975 * config/arm/tm-arm.h (TARGET_BYTE_ORDER_DEFAULT): Delete.
976
977 2002-01-28 Andrew Cagney <ac131313@redhat.com>
978
979 * config/vax/tm-vax.h (INVALID_FLOAT): Move macro from here...
980 * vax-tdep.c (INVALID_FLOAT): To here. Document why it is broken.
981
982 * rs6000-tdep.c (rs6000_do_registers_info): Delete code wrapped in
983 #ifdef INVALID_FLOAT.
984 * infcmd.c (do_registers_info): Ditto.
985 * values.c (unpack_double): Ditto. Add comment.
986
987 * config/ns32k/tm-umax.h (INVALID_FLOAT): Delete macro that was
988 already commented out.
989
990 2002-01-26 Andreas Schwab <schwab@suse.de>
991
992 * config/m68k/nm-linux.h (FETCH_INFERIOR_REGISTERS): Define.
993 * m68klinux-nat.c: Update ptrace interface for fetching/storing
994 registers and add support for PTRACE_GETREGS.
995
996 2002-01-24 Andrew Cagney <ac131313@redhat.com>
997
998 GDB 5.1.1 released from 5.1 branch.
999 * NEWS: Add 5.1.1 news.
1000 * README: Sync with 5.1 branch.
1001
1002 2002-01-23 Fred Fish <fnf@redhat.com>
1003
1004 * mdebugread.c (parse_partial_symbols): Only copy stabstring1 to
1005 stabstring on initial malloc. Reallocing will copy it for us,
1006 if necessary.
1007
1008 2002-01-23 Elena Zannoni <ezannoni@redhat.com>
1009
1010 * Makefile.in (hpread_h): Delete.
1011 (HFILES_NO_SRCDIR): Remove hpread.h.
1012 (ALLDEPFILES): Remove hp-psymtab-read.c and hp-symtab-read.c.
1013 (hpread.o): Update dependencies.
1014 (hp-psymtab-read.o, hp-symtab-read.o): Remove.
1015
1016 * hp-psymtab-read.c: Remove file.
1017 * hp-symtab-read.c: Remove file.
1018 * hpread.h: Remove file.
1019
1020 * hpread.c: Merge all contents of hp-psymtab-read.c,
1021 hp-symtab-read.c and hpread.h into this file, as it was prior to
1022 January 1999.
1023
1024 * config/pa/hpux11w.mh, config/pa/hpux11.mh,
1025 config/pa/hpux1020.mh, config/pa/hppaosf.mh,
1026 config/pa/hppahpux.mh, config/pa/hppabsd.mh (NATDEPFILES):
1027 Remove hp-psymtab-read.o and hp-symtab-read.o, add hpread.o.
1028
1029 2002-01-23 Elena Zannoni <ezannoni@redhat.com>
1030
1031 * ppc-linux-nat.c (ppc_register_u_addr, supply_gregset,
1032 fill_gregset): Call gdbarch_tdep() just once, assign result to
1033 variable and use that, instead of calling the function several
1034 times.
1035
1036 2002-01-24 Alexandre Oliva <aoliva@redhat.com>
1037
1038 * configure.host: Accept sparcv9 as alias for sparc64.
1039 * configure.tgt: Likewise.
1040
1041 2002-01-22 Kevin Buettner <kevinb@redhat.com>
1042
1043 * solib-aix5.c (build_so_list_from_mapfile)
1044 (aix5_relocate_main_executable): Fix xcalloc() calls so order of
1045 arguments is not reversed.
1046 * solib-sunos.c (sunos_relocate_main_executable): Likewise.
1047 * solib-svr4.c (svr4_relocate_main_executable): Likewise.
1048
1049 2002-01-22 Elena Zannoni <ezannoni@redhat.com>
1050
1051 * sh-tdep.c (sh_pseudo_register_read): New function. Renamed and
1052 modified version of obsolete sh_fetch_pseudo_register.
1053 (sh_fetch_pseudo_register): Rename to sh_pseudo_register_read.
1054 (sh4_register_read): New function.
1055 (sh_pseudo_register_write): New function. Renamed and modified
1056 version of obsolete sh_store_pseudo_register.
1057 (sh_store_pseudo_register): Rename to sh_pseudo_register_write.
1058 (sh4_register_write): New function.
1059 (sh_gdbarch_init): Remove setting of gdbarch function
1060 fetch_pseudo_register and store_pseudo_register. Remove setting of
1061 register_convert_to_raw, register_convert_to_virtual,
1062 register_convertible.
1063 (sh_sh4_register_convertible): Delete. No longer needed. All is
1064 taken care by architecture specific functions
1065 register_read/register_write.
1066 (sh_sh4_register_convert_to_virtual): Make static.
1067 (sh_sh4_register_convert_to_raw): Ditto.
1068
1069 2002-01-22 Andrew Cagney <ac131313@redhat.com>
1070
1071 * doublest.c (floatformat_is_negative): Assert FMT is non NULL.
1072 (floatformat_is_nan, floatformat_mantissa): Ditto.
1073
1074 * gdbtypes.c (_initialize_gdbtypes): Initialize TYPE_FLOATFORMAT
1075 for builtin_type_ieee_single_little, builtin_type_ieee_double_big,
1076 builtin_type_ieee_double_little,
1077 builtin_type_ieee_double_littlebyte_bigword,
1078 builtin_type_m68881_ext, builtin_type_i960_ext,
1079 builtin_type_m88110_ext, builtin_type_m88110_harris_ext,
1080 builtin_type_arm_ext_big, builtin_type_arm_ext_littlebyte_bigword,
1081 builtin_type_ia64_spill_big, builtin_type_ia64_spill_little and
1082 builtin_type_ia64_quad_big, builtin_type_ia64_quad_little.
1083
1084 2002-01-22 Corinna Vinschen <vinschen@redhat.com>
1085
1086 * xstormy16-tdep.c (xstormy16_scan_prologue): Add frameless
1087 parameter. Set frameless flag if it exists and depended of
1088 whether the scanned function is frameless or not.
1089 (xstormy16_skip_prologue): If function is frameless, return
1090 result of xstormy16_scan_prologue().
1091 (xstormy16_frame_init_saved_regs): Adjust xstormy16_scan_prologue()
1092 call.
1093
1094 2002-01-21 Elena Zannoni <ezannoni@redhat.com>
1095
1096 * sh-tdep.c (sh_fp_frame_init_saved_regs, sh_push_arguments,
1097 sh_generic_show_regs, sh3_show_regs, sh3e_show_regs,
1098 sh3_dsp_show_regs, sh4_show_regs, sh_dsp_show_regs,
1099 sh_sh4_register_byte, sh_sh4_register_raw_size,
1100 sh_sh3e_register_virtual_type, sh_sh4_register_virtual_type,
1101 sh_sh4_register_convertible, sh_sh4_register_convert_to_virtual,
1102 sh_sh4_register_convert_to_raw, sh_fetch_pseudo_register,
1103 sh_store_pseudo_register, sh_do_pseudo_register): Call
1104 gdbarch_tdep() just once, assign result to variable and use that,
1105 instead of calling the function several times.
1106
1107 2002-01-20 Mark Kettenis <kettenis@gnu.org>
1108
1109 * go32-nat.c (fetch_register): Use FP_REGNUM_P and FPC_REGNUM_P
1110 macros instead of LAST_FPU_CTRL_REGNUM.
1111 (store_register): Likewise.
1112
1113 2002-01-21 Jim Blandy <jimb@redhat.com>
1114
1115 * infcmd.c (run_command): Check that the `exec' target layer's BFD
1116 is up-to-date before running the program, not just when a program
1117 exits.
1118
1119 2002-01-21 Fred Fish <fnf@redhat.com>
1120
1121 * arm-tdep.c (thumb_skip_prologue): Quit scanning prologue
1122 when we have found all instructions we are looking for.
1123
1124 2002-01-21 Richard Earnshaw <rearnsha@arm.com>
1125
1126 * arm-tdep.c (arm_register_name): New function.
1127 (arm_registers_names): Make static.
1128 * config/arm/tm-arm.h (arm_register_names): Delete declaration.
1129 (arm_register_name): Declare.
1130 (REGISTER_NAME): Use it.
1131
1132 2002-01-21 Richard Earnshaw <rearnsha@arm.com>
1133 Kevin Buettner <kevinb@redhat.com>
1134
1135 Convert arm targets to new FRAME interface.
1136 * arm-tdep.c (struct frame_extra_info): Remove fsr.
1137 (arm_frame_find_save_regs): Delete.
1138 (arm_frame_init_saved_regs): New.
1139 (arm_init_extra_frame_info): Alloacte saved_regs as required.
1140 Allocate extra_info as required. Convert all uses of fsr.regs
1141 to use saved_regs, similarly all uses of EXTRA_FRAME_INFO fields
1142 to use extra_info.
1143 (thumb_scan_prologue, arm_scan_prologue, arm_find_callers_reg)
1144 (arm_frame_chain, arm_frame_saved_pc, arm_pop_frame): Likewise.
1145 (check_prologue_cache, save_prologue_cache): Likewise.
1146 (_initialize_arm_tdep): Ensure prologue_cache is correctly set up.
1147 * config/arm/tm-arm.h (EXTRA_FRAME_INFO): Delete.
1148 (FRAME_FIND_SAVED_REGS): Delete.
1149 (arm_frame_find_saved_regs): Delete prototype.
1150 (arm_frame_init_saved_regs): New prototype.
1151 (FRAME_INIT_SAVED_REGS): Define.
1152
1153 2002-01-20 Andrew Cagney <ac131313@redhat.com>
1154
1155 * config/arc/tm-arc.h (IEEE_FLOAT): Delete.
1156
1157 2002-01-20 Andrew Cagney <ac131313@redhat.com>
1158
1159 From Jeff Law <law@redhat.com>:
1160 * infttrace.c: Include <sys/pstat.h>.
1161 (child_pid_to_exec_file): Revamp. Use pstat call to get the
1162 exec file if the ttrace equivalent fails.
1163
1164 2002-01-20 Andrew Cagney <ac131313@redhat.com>
1165
1166 * rdi-share/devsw.c (openLogFile): Delete unused ``struct tm lt''.
1167 (closeLogFile): Ditto.
1168
1169 2002-01-20 Michael Chastain <mec@shout.net>
1170
1171 * top.c (print_gdb_version): Bump copyright year to 2002.
1172
1173 2002-01-20 Andrew Cagney <ac131313@redhat.com>
1174
1175 * MAINTAINERS (Blanket Write Privs): Add Kevin Buettner, Elena
1176 Zannoni and Eli Zaretskii.
1177
1178 2002-01-20 Daniel Jacobowitz <drow@mvista.com>
1179
1180 * buildsym.c: Update copyright years.
1181 * c-typeprint.c: Likewise.
1182 * dwarf2read.c: Likewise.
1183 * f-typeprint.c: Likewise.
1184 * gdbtypes.c: Likewise.
1185 * gdbtypes.h: Likewise.
1186 * hp-symtab-read.c: Likewise.
1187 * hpread.c: Likewise.
1188 * mdebugread.c: Likewise.
1189 * p-typeprint.c: Likewise.
1190
1191 2002-01-20 Andrew Cagney <ac131313@redhat.com>
1192
1193 * remote-sim.c (gdbsim_open): Simplify code testing the macro
1194 TARGET_BYTE_ORDER_SELECTABLE_P. Assume the target is always
1195 byte-order selectable.
1196 * sparc-tdep.c (sparc_target_architecture_hook): Ditto.
1197 * arch-utils.c: Ditto.
1198 (set_endian): Ditto.
1199 (set_endian_from_file): Ditto.
1200 * gdbserver/low-sim.c (create_inferior): Ditto.
1201 * gdbarch.sh: Ditto.
1202 * gdbarch.h: Re-generate.
1203 * config/powerpc/tm-ppc-eabi.h (TARGET_BYTE_ORDER_SELECTABLE_P):
1204 * config/sparc/tm-sparclite.h (TARGET_BYTE_ORDER_SELECTABLE):
1205 * config/sparc/tm-sparclet.h (TARGET_BYTE_ORDER_SELECTABLE):
1206 * config/mcore/tm-mcore.h (TARGET_BYTE_ORDER_SELECTABLE_P):
1207 * config/arm/tm-wince.h (TARGET_BYTE_ORDER_SELECTABLE_P):
1208 * config/arm/tm-linux.h (TARGET_BYTE_ORDER_SELECTABLE_P):
1209 * config/arc/tm-arc.h (TARGET_BYTE_ORDER_SELECTABLE):
1210 * config/arm/tm-arm.h (TARGET_BYTE_ORDER_SELECTABLE_P): Delete
1211 macro definition.
1212 * config/mips/tm-wince.h: Remove #undef of macro
1213 TARGET_BYTE_ORDER_SELECTABLE.
1214 * config/sh/tm-wince.h: Ditto.
1215
1216 2002-01-20 Daniel Jacobowitz <drow@mvista.com>
1217
1218 * gdbtypes.h (struct cplus_struct_type): Add is_artificial to
1219 member function fields. Add accessor macro
1220 TYPE_FN_FIELD_ARTIFICIAL.
1221 * dwarf2read.c (dwarf2_add_member_fn): Check for artificial methods.
1222 * c-typeprint.c (c_type_print_base): Skip artificial member
1223 functions.
1224
1225 2002-01-20 Daniel Jacobowitz <drow@mvista.com>
1226
1227 * f-typeprint.c: Delete unused function f_type_print_args.
1228 * p-typeprint.c: Delete unused function pascal_type_print_args.
1229
1230 2002-01-20 Daniel Jacobowitz <drow@mvista.com>
1231
1232 * gdbtypes.h (struct type): Fix whitespace. Remove obsolete
1233 comment. Add ``artificial'' to ``union field_location''.
1234
1235 * dwarf2read.c: Remove ad-hoc TYPE_FIELD_ARTIFICIAL.
1236
1237 * buildsym.c (finish_block): Initialize TYPE_FIELD_ARTIFICIAL to 0.
1238 * mdebugread.c (parse_symbol): Likewise.
1239 * stabsread.c (define_symbol): Likewise.
1240 * hp-symtab-read.c (hpread_function_type): Likewise, instead of
1241 initializing TYPE_FIELD_BITPOS to n (obsolete).
1242 (hpread_doc_function_type): Likewise.
1243 * hpread.c (hpread_function_type): Likewise.
1244
1245 2002-01-20 Andrew Cagney <ac131313@redhat.com>
1246
1247 * configure.in (host_makefile_frag): Only require a host makefile
1248 fragment when a native build.
1249 * configure: Re-generate.
1250
1251 2002-01-20 Andrew Cagney <ac131313@redhat.com>
1252
1253 * doublest.h (floatformat_from_type): Declare.
1254 * doublest.c (floatformat_from_type): New function.
1255 (convert_typed_floating): Use.
1256
1257 * valprint.c (print_floating): Replace checks for IEEE_FLOAT with
1258 call to function floatformat_from_type.
1259
1260 * gdbarch.sh (IEEE_FLOAT): Delete.
1261 * gdbarch.h, gdbarch.c: Re-generate.
1262 * config/i960/tm-i960.h (IEEE_FLOAT): Delete macro.
1263 * config/i386/tm-i386.h (IEEE_FLOAT): Ditto.
1264 * config/z8k/tm-z8k.h (IEEE_FLOAT): Ditto.
1265 * config/sparc/tm-sparc.h (IEEE_FLOAT): Ditto.
1266 * config/pa/tm-hppa.h (IEEE_FLOAT): Ditto.
1267 * config/m88k/tm-m88k.h (IEEE_FLOAT): Ditto.
1268 * config/m68k/tm-m68k.h (IEEE_FLOAT): Ditto.
1269 * config/h8500/tm-h8500.h (IEEE_FLOAT): Ditto.
1270 * config/h8300/tm-h8300.h (IEEE_FLOAT): Ditto.
1271 * config/fr30/tm-fr30.h (IEEE_FLOAT): Ditto.
1272 * config/arm/tm-arm.h (IEEE_FLOAT): Ditto.
1273 * config/alpha/tm-alpha.h (IEEE_FLOAT): Ditto.
1274
1275 * s390-tdep.c (s390_gdbarch_init): Do not set ieee_float.
1276 * x86-64-tdep.c (i386_gdbarch_init): Ditto.
1277 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
1278 * sh-tdep.c (sh_gdbarch_init): Ditto.
1279 * mips-tdep.c (mips_gdbarch_init): Ditto.
1280 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
1281 * cris-tdep.c (cris_gdbarch_init): Ditto.
1282
1283 2002-01-20 Jiri Smid <smid@suse.cz>
1284
1285 * configure.host, configure.tgt: Support x86-64.
1286 * NEWS: Note new target x86-64.
1287
1288 * config/i386/x86-64linux.mh (NATDEPFILES): x86-64-nat.o removed.
1289 * x86-64-linux-nat.c (x86_64_register_u_addr): New function.
1290 * config/i386/nm-x86-64.h (ATTACH_LWP): Removed.
1291 * Makefile.in (x86-64-tdep.o, x86-64-linux-tdep.o,
1292 x86-64-linux-nat.o): Fix dependencies.
1293
1294 2002-01-19 Andrew Cagney <ac131313@redhat.com>
1295
1296 * utils.c: Remove #ifndef MALLOC_INCOMPATIBLE.
1297 * config/sparc/xm-sun4os4.h (PTRACE_ARG3_TYPE): Move macro ....
1298 * config/sparc/nm-sun4os4.h (PTRACE_ARG3_TYPE): ... to here.
1299 * config/sparc/xm-sun4os4.h: Delete file.
1300 * config/sparc/sun4os4.mh (XM_FILE): Delete makefile variable.
1301
1302 2002-01-19 Andrew Cagney <ac131313@redhat.com>
1303
1304 * config/sparc/sparclynx.mh (XM_FILE): Delete.
1305 * config/rs6000/rs6000lynx.mh (XM_FILE): Delete.
1306 * config/m68k/m68klynx.mh (XM_FILE): Delete.
1307 * config/i386/i386lynx.mh (XM_FILE): Delete.
1308 * config/rs6000/xm-rs6000ly.h: Delete file.
1309 * config/sparc/xm-sparclynx.h: Delete file.
1310 * config/m68k/xm-m68klynx.h: Delete file.
1311 * config/i386/xm-i386lynx.h: Delete file.
1312 * config/xm-lynx.h: Delete file.
1313 * config/djgpp/fnchange.lst: Update.
1314
1315 2002-01-19 Jason Thorpe <thorpej@wasabisystems.com>
1316
1317 * alpha-tdep.c (alpha_register_byte): New function.
1318 (alpha_register_raw_size): Ditto.
1319 (alpha_register_virtual_size): Ditto.
1320 (alpha_skip_prologue_internal): Renamed from
1321 alpha_skip_prologue.
1322 (alpha_skip_prologue): New version that calls
1323 alpha_skip_prologue_internal.
1324 (alpha_in_lenient_prologue): Use alpha_skip_prologue_internal.
1325 * config/alpha/tm-alpha.h (SKIP_PROLOGUE): Remove
1326 second argument from alpha_skip_prologue.
1327 (REGISTER_BYTE): Use alpha_register_byte.
1328 (REGISTER_RAW_SIZE): Use alpha_register_raw_size.
1329 (REGISTER_VIRTUAL_SIZE): Use alpha_register_virtual_size.
1330 (FRAMELESS_FUNCTION_INVOCATION): Use
1331 generic_frameless_function_invocation_not.
1332 (FRAME_NUM_ARGS): Use frame_num_args_unknown.
1333 (COERCE_FLOAT_TO_DOUBLE): Use standard_coerce_float_to_double.
1334
1335 2002-01-19 Andrew Cagney <ac131313@redhat.com>
1336
1337 * config/mips/xm-news-mips.h: Delete file.
1338 * config/mips/news-mips.mh (XM_FILE): Delete makefile variable.
1339
1340 * config/m88k/xm-m88k.h: Delete file.
1341 * config/m88k/xm-dgux.h: Do not include xm-m88k.h.
1342 * config/m88k/xm-delta88v4.h: Ditto.
1343 * config/m88k/xm-delta88.h: Ditto.
1344
1345 * config/alpha/xm-fbsd.h: Delete file.
1346 * config/alpha/fbsd.mh (XM_FILE): Delete makefile variable.
1347
1348 * config/sparc/xm-sparc.h: Delete file.
1349 * Makefile.in (xm-sun4os4.h): Delete dependency.
1350 * config/sparc/xm-sun4sol2.h: Do not include xm-sparc.h.
1351 * config/sparc/xm-sun4os4.h: Ditto.
1352 * config/sparc/xm-linux.h: Ditto.
1353
1354 * config/i386/xm-windows.h: Delete file.
1355
1356 2002-01-19 Andrew Cagney <ac131313@redhat.com>
1357
1358 * utils.c: Include <sys/param.h> for MAXPATHLEN.
1359 (gdb_realpath): Use MAXPATHLEN when PATH_MAX is not defined.
1360
1361 2002-01-19 Jason Thorpe <thorpej@wasabisystems.com>
1362
1363 * alpha-tdep.c (alpha_call_dummy_words): New.
1364 * config/alpha/tm-alpha.h (CALL_DUMMY): Remove.
1365 (CALL_DUMMY_P): Define.
1366 (CALL_DUMMY_WORDS): Define.
1367 (SIZEOF_CALL_DUMMY_WORDS): Define.
1368
1369 2002-01-19 Per Bothner <per@bothner.com>
1370
1371 * gnu-v3-abi.c (gnuv3_rtti_type): Guard that vtable_symbol_name
1372 isn't NULL, which can happen with some gcj-3.x-produced code.
1373
1374 2002-01-19 Jason Thorpe <thorpej@wasabisystems.com>
1375
1376 * alpha-tdep.c (alpha_register_virtual_type): New function.
1377 (alpha_init_frame_pc_first): Ditto.
1378 (alpha_fix_call_dummy): Ditto.
1379 (alpha_store_struct_return): Ditto.
1380 (alpha_extract_struct_value_address): Ditto.
1381 * config/alpha/tm-alpha.h (REGISTER_VIRTUAL_TYPE): Use
1382 alpha_register_virtual_type.
1383 (STORE_STRUCT_RETURN): Use alpha_store_struct_return.
1384 (EXTRACT_STRUCT_VALUE_ADDRESS): Use
1385 alpha_extract_struct_value_address.
1386 (FIX_CALL_DUMMY): Use alpha_fix_call_dummy.
1387 (INIT_FRAME_PC): Use init_frame_pc_noop.
1388 (INIT_FRAME_PC_FIRST): Use alpha_init_frame_pc_first.
1389
1390 2002-01-19 Mark Kettenis <kettenis@gnu.org>
1391
1392 * i386gnu-nat.c: Include "i386-tdep.h".
1393 (fetch_fpregs): Simplify code dealing with uninitialized floating
1394 point states such that it doesn't require FP7_REGNUM.
1395
1396 2002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
1397
1398 * alpha-tdep.c (frame_extra_info): New.
1399 (alpha_find_saved_regs): Make static. Use
1400 frame->extra_info.
1401 (alpha_frame_init_saved_regs): New function.
1402 (alpha_frame_saved_pc): Use frame->extra_info.
1403 (temp_saved_regs): Don't declare as struct frame_saved_regs.
1404 (heuristic_proc_desc): Adjust for temp_saved_regs changes.
1405 (init_extra_frame_info): Rename to...
1406 (alpha_init_extra_frame_info): ...this. Use frame->extra_info.
1407 (alpha_print_extra_frame_info): New function.
1408 (alpha_frame_locals_address): Ditto.
1409 (alpha_frame_args_address): Ditto.
1410 (alpha_pop_frame): Use frame->extra_info.
1411 * config/alpha/tm-alpha.h (FRAME_ARGS_ADDRESS): Use
1412 alpha_frame_args_address.
1413 (FRAME_LOCALS_ADDRESS): Use alpha_frame_locals_address.
1414 (alpha_find_saved_regs): Remove prototype.
1415 (FRAME_INIT_SAVED_REGS): Use alpha_frame_init_saved_regs.
1416 (EXTRA_FRAME_INFO): Remove.
1417 (INIT_EXTRA_FRAME_INFO): Use alpha_init_extra_frame_info.
1418 (PRINT_EXTRA_FRAME_INFO): Use alpha_print_extra_frame_info.
1419
1420 2002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
1421
1422 * alpha-tdep.c (alpha_osf_in_sigtramp): New function.
1423 (alpha_cannot_fetch_register): Ditto.
1424 (alpha_cannot_store_register): Ditto.
1425 (alpha_register_convertible): Ditto.
1426 (alpha_use_struct_convention): Ditto.
1427 * config/alpha/tm-alpha.h: Update copyright years.
1428 (IN_SIGTRAMP): Use alpha_osf_in_sigtramp.
1429 (INNER_THAN): Use core_addr_lessthan.
1430 (CANNOT_FETCH_REGISTER): Use alpha_cannot_fetch_register.
1431 (CANNOT_STORE_REGISTER): Use alpha_cannot_store_register.
1432 (REGISTER_CONVERTIBLE): Use alpha_register_convertible.
1433 (USE_STRUCT_CONVENTION): Use alpha_use_struct_convention.
1434 (FRAME_CHAIN): Remove unnecessary cast.
1435
1436 2002-01-18 Andrew Cagney <ac131313@redhat.com>
1437
1438 * NEWS: Document that testsuite/gdb.hp/gdb.threads-hp/ is
1439 obsolete.
1440
1441 2002-01-18 Andrew Cagney <ac131313@redhat.com>
1442
1443 * infptrace.c: Remove ATTRIBUTE_UNUSED. Update copyright.
1444 * monitor.c, remote-array.c, remote-bug.c: Ditto.
1445 * remote-e7000.c, remote-es.c, remote-mips.c: Ditto.
1446 * remote-nindy.c, remote-os9k.c, remote-rdi.c: Ditto.
1447 * remote-rdp.c, remote-sds.c, remote-sim.c: Ditto.
1448 * remote-st.c, remote-vx.c, remote.c, win32-nat.c: Ditto.
1449 * x86-64-linux-nat.c: Ditto.
1450
1451 2002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
1452
1453 * alpha-tdep.c (alpha_register_name): New function.
1454 * config/alpha/tm-alpha.h (REGISTER_NAMES): Remove.
1455 (REGISTER_NAME): Define.
1456
1457 2002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
1458
1459 * config/nm-nbsd.h (KERNEL_U_ADDR): Remove.
1460
1461 2002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
1462
1463 * alpha-tdep.c: Update copyright years.
1464 (alpha_next_pc): New function.
1465 (alpha_software_single_step): Ditto.
1466 * config/alpha/tm-alpha.h: Add prototype for
1467 alpha_software_single_step.
1468
1469 2002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
1470
1471 * alphabsd-nat.c: Update copyright years.
1472 (fill_gregset): Use regcache_collect.
1473 (fill_fpregset): Likewise.
1474 (fetch_inferior_registers): Only fetch integer registers
1475 if requested to do so.
1476 (store_inferior_registers): Only store integer registers
1477 if requested to do so.
1478
1479 2002-01-17 Andrew Cagney <ac131313@redhat.com>
1480
1481 * config/alpha/alpha-osf3.mh (XDEPFILES): Delete.
1482 * config/alpha/alpha-osf2.mh (XDEPFILES): Delete.
1483 * config/alpha/alpha-osf1.mh (XDEPFILES): Delete.
1484 * config/alpha/alpha-linux.mh (XDEPFILES): Delete.
1485 * config/alpha/fbsd.mh (XDEPFILES): Delete.
1486 * config/arm/linux.mh (XDEPFILES): Delete.
1487 * config/arm/nbsd.mh (XDEPFILES): Delete.
1488 * config/i386/i386dgux.mh (XDEPFILES): Delete.
1489 * config/i386/i386sol2.mh (XDEPFILES): Delete.
1490 * config/i386/i386m3.mh (XDEPFILES): Delete.
1491 (NATDEPFILES): Move i387-tdep.o and core-aout.o to here.
1492 * config/i386/i386gnu.mh (XDEPFILES): Delete.
1493 * config/i386/fbsd.mh (XDEPFILES): Delete.
1494 * config/i386/i386bsd.mh (XDEPFILES): Delete.
1495 * config/i386/i386sco5.mh (XDEPFILES): Delete.
1496 * config/i386/i386v4.mh (XDEPFILES): Delete.
1497 * config/i386/i386v42mp.mh (XDEPFILES): Delete.
1498 * config/i386/i386sco4.mh (XDEPFILES): Delete.
1499 * config/i386/i386aix.mh (XDEPFILES): Delete.
1500 * config/i386/go32.mh (XDEPFILES): Delete.
1501 * config/i386/cygwin.mh (XDEPFILES): Delete.
1502 * config/i386/i386lynx.mh (XDEPFILES): Delete.
1503 * config/i386/i386mach.mh (XDEPFILES): Delete.
1504 * config/i386/i386v32.mh (XDEPFILES): Delete.
1505 * config/i386/linux.mh (XDEPFILES): Delete.
1506 * config/i386/nbsdelf.mh (XDEPFILES): Delete.
1507 * config/i386/ncr3000.mh (XDEPFILES): Delete.
1508 * config/i386/i386mk.mh (NATDEPFILES): Rename XDEPFILES.
1509 * config/i386/i386sco.mh (XDEPFILES): Delete.
1510 * config/i386/i386v.mh (XDEPFILES): Delete.
1511 * config/i386/nbsd.mh (XDEPFILES): Delete.
1512 * config/i386/ptx.mh (NATDEPFILES): Rename XDEPFILES.
1513 * config/i386/ptx4.mh (NATDEPFILES): Rename XDEPFILES.
1514 * config/i386/symmetry.mh (XDEPFILES): Delete.
1515 * config/i386/obsd.mh (XDEPFILES): Delete.
1516 * config/i386/x86-64linux.mh (XDEPFILES): Delete.
1517 * config/ia64/linux.mh (XDEPFILES): Delete.
1518 * config/ia64/aix.mh (XDEPFILES): Delete.
1519 * config/m68k/apollo68b.mh (XDEPFILES): Delete.
1520 * config/m68k/dpx2.mh (XDEPFILES): Delete.
1521 * config/m68k/3b1.mh (NATDEPFILES): Rename XDEPFILES.
1522 * config/m68k/apollo68v.mh (XDEPFILES): Delete.
1523 * config/m68k/hp300bsd.mh (XDEPFILES): Delete.
1524 * config/m68k/linux.mh (XDEPFILES): Delete.
1525 * config/m68k/m68klynx.mh (XDEPFILES): Delete.
1526 * config/m68k/m68kv4.mh (XDEPFILES): Delete.
1527 * config/m68k/nbsd.mh (XDEPFILES): Delete.
1528 * config/m68k/sun2os3.mh (XDEPFILES): Delete.
1529 * config/m68k/sun2os4.mh (XDEPFILES): Delete.
1530 * config/m68k/sun3os3.mh (XDEPFILES): Delete.
1531 * config/m68k/sun3os4.mh (XDEPFILES): Delete.
1532 * config/m88k/delta88.mh (XDEPFILES): Delete.
1533 * config/m88k/delta88v4.mh (XDEPFILES): Delete.
1534 * config/m88k/m88k.mh (XDEPFILES): Delete.
1535 * config/mips/littlemips.mh (NATDEPFILES): Rename XDEPFILES.
1536 * config/mips/linux.mh (XDEPFILES): Delete.
1537 * config/mips/irix6.mh (XDEPFILES): Delete.
1538 * config/mips/irix5.mh (XDEPFILES): Delete.
1539 * config/mips/irix4.mh (XDEPFILES): Delete.
1540 * config/mips/irix3.mh (XDEPFILES): Delete.
1541 * config/mips/decstation.mh (XDEPFILES): Delete.
1542 * config/mips/mipsm3.mh (XDEPFILES): Delete.
1543 (NATDEPFILES): Move core-aout.o to here.
1544 * config/ns32k/nbsd.mh (XDEPFILES): Delete.
1545 * config/pa/hpux1020.mh (XDEPFILES): Delete.
1546 * config/pa/hppabsd.mh (XDEPFILES): Delete.
1547 * config/pa/hppahpux.mh (XDEPFILES): Delete.
1548 * config/pa/hpux11w.mh (XDEPFILES): Delete.
1549 * config/pa/hppaosf.mh (XDEPFILES): Delete.
1550 * config/pa/hpux11.mh (XDEPFILES): Delete.
1551 * config/powerpc/aix.mh (XDEPFILES): Delete.
1552 * config/powerpc/nbsd.mh (XDEPFILES): Delete.
1553 * config/powerpc/linux.mh (XDEPFILES): Delete.
1554 * config/romp/rtbsd.mh: Rename XDEPFILES.
1555 * config/rs6000/rs6000lynx.mh (XDEPFILES): Delete.
1556 * config/rs6000/aix4.mh (XDEPFILES): Delete.
1557 * config/rs6000/rs6000.mh (XDEPFILES): Delete.
1558 * config/s390/s390.mh (XDEPFILES): Delete.
1559 * config/vax/vaxbsd.mh (NATDEPFILES): Rename XDEPFILES.
1560 * config/sparc/sun4sol2.mh (XDEPFILES): Delete.
1561 * config/sparc/sun4os4.mh (XDEPFILES): Delete.
1562 * config/sparc/sparclynx.mh (XDEPFILES): Delete.
1563 * config/sparc/nbsdelf.mh (XDEPFILES): Delete.
1564 * config/sparc/nbsd.mh (XDEPFILES): Delete.
1565 * config/sparc/linux.mh (XDEPFILES): Delete.
1566 * config/vax/vaxult.mh (XDEPFILES): Delete.
1567 * config/vax/vaxult2.mh (XDEPFILES): Delete.
1568 * Makefile.in (DEPFILES): Remove XDEPFILES.
1569
1570 2002-01-17 Andrew Cagney <ac131313@redhat.com>
1571
1572 * utils.c (internal_verror): Fix comments, default is yes not no.
1573 Update queries to match. Default to quit and dump core.
1574
1575 2002-01-17 Andrew Cagney <ac131313@redhat.com>
1576
1577 * breakpoint.c: Update assuming #if UI_OUT is always true. Update
1578 copyright.
1579 * defs.h, event-top.c, gdbcmd.h: Ditto.
1580 * infcmd.c, infrun.c, main.c, printcmd.c, remote.c: Ditto.
1581 * source.c, stack.c, symfile.c, symtab.c, thread.c: Ditto.
1582 * top.c, cli/cli-cmds.c, cli/cli-decode.c: Ditto.
1583 * cli/cli-script.c, cli/cli-script.h, cli/cli-setshow.c: Ditto.
1584 * mi/ChangeLog, mi/mi-cmd-break.c, mi/mi-cmd-stack.c: Ditto.
1585 * mi/mi-main.c:Ditto.
1586
1587 * stack.c, symfile.c: Update copyright.
1588
1589 2002-01-17 Daniel Jacobowitz <drow@mvista.com>
1590
1591 * gdbserver/low-hppabsd.c, gdbserver/low-lynx.c,
1592 gdbserver/low-nbsd.c, gdbserver/low-sim.c,
1593 gdbserver/low-sparc.c, gdbserver/low-sun3.c,
1594 gdbserver/low-linux.c, gdbserver/server.c: Correct copyright notices.
1595
1596 2002-01-17 Daniel Jacobowitz <drow@mvista.com>
1597
1598 * gdbserver/low-hppabsd.c (myattach): New function, returning -1.
1599 * gdbserver/low-lynx.c (myattach): Likewise.
1600 * gdbserver/low-nbsd.c (myattach): Likewise.
1601 * gdbserver/low-sim.c (myattach): Likewise.
1602 * gdbserver/low-sparc.c (myattach): Likewise.
1603 * gdbserver/low-sun3.c (myattach): Likewise.
1604
1605 * gdbserver/low-linux.c (myattach): New function.
1606
1607 * gdbserver/server.c (attach_inferior): New function.
1608 (main): Handle "--attach".
1609
1610 2002-01-16 Andrew Cagney <ac131313@redhat.com>
1611
1612 * MAINTAINERS (language support): Daniel Jacobwitz is C++
1613 maintainer.
1614
1615 2002-01-15 Daniel Jacobowitz <drow@mvista.com>
1616
1617 * c-typeprint.c (is_type_conversion_operator): Add additional
1618 check for non-conversion operators.
1619
1620 2002-01-15 Michael Snyder <msnyder@redhat.com>
1621
1622 * linux-proc.c: Add "info proc" command, a la procfs.c.
1623 (read_mapping): New function, abstract and re-use code.
1624 (linux_find_memory_regions): Use new func read_mapping.
1625 (linux_info_proc_cmd): New function, implement "info proc".
1626 (_initialize_linux_proc): Add new command "info proc".
1627
1628 2002-01-15 Michael Snyder <msnyder@redhat.com>
1629
1630 * symfile.c (generic_load): Use bfd_map_over_sections method
1631 instead of manipulating bfd structure members directly.
1632 (add_section_size_callback): New function, bfd sections callback
1633 used by generic_load.
1634 (load_sections_callback): New function, bfd sections callback
1635 used by generic_load.
1636
1637 2002-01-15 Elena Zannoni <ezannoni@redhat.com>
1638
1639 [Based on work by Jim Blandy]
1640 * gdbtypes.h (builtin_type_v16qi, builtin_type_v8hi): Export.
1641 (builtin_type_vec128): Export.
1642 * gdbtypes.c (builtin_type_v16qi, builtin_type_v8hi): New SIMD
1643 types.
1644 (builtin_type_vec128): New builtin type for 128 bit vector
1645 registers.
1646 (build_gdbtypes): Initialize builtin_type_v16qi and
1647 builtin_type_v8hi. Create the vec128 register builtin type
1648 structure.
1649 (build_builtin_type_vec128): New function.
1650 (_initialize_gdbtypes): Register builtin_type_v16qi and
1651 builtin_type_v8hi with gdbarch. Same for builtin_type_vec128.
1652 * rs6000-tdep.c (rs6000_register_virtual_type): Change type of
1653 AltiVec register to new builtin type.
1654
1655 2001-01-15 Daniel Jacobowitz <drow@mvista.com>
1656
1657 * stabsread.c (read_type): Pass dbx_lookup_type (typenums)
1658 to make_cv_type.
1659
1660 2002-01-14 Andrew Cagney <ac131313@redhat.com>
1661
1662 * config/pa/tm-hppa.h (DEPRECATED_CLEAN_UP_REGISTER_VALUE): Rename
1663 CLEAN_UP_REGISTER_VALUE.
1664 * regcache.c (supply_register): Update only call.
1665
1666 2002-01-14 Andrew Cagney <ac131313@redhat.com>
1667
1668 * configure.tgt: Mark a29k-*-aout*, a29k-*-coff*, a29k-*-elf*,
1669 a29k-*-ebmon*, a29k-*-kern*, a29k-*-none*, a29k-*-udi* and
1670 a29k-*-vxworks* targets as obsolete.
1671
1672 2002-01-14 Michael Snyder <msnyder@redhat.com>
1673
1674 * linux-proc.c (linux_do_thread_registers): Ignore fpxregs
1675 until we can resolve portability issues.
1676 * gregset.h: Remove references to fpxregs.
1677 * gcore.c (gcore_command): Initialize note_sec to NULL.
1678
1679 2002-01-13 Andrew Cagney <ac131313@redhat.com>
1680
1681 * signals.c (target_signal_to_name): Rewrite. Only use
1682 signals[].name when in bounds and non-NULL.
1683
1684 2002-01-13 Andrew Cagney <ac131313@redhat.com>
1685
1686 From Petr Ledvina <ledvinap@kae.zcu.cz>:
1687 * signals.c (target_signal_to_name): Verify that SIG is within the
1688 bounds of the signals array.
1689
1690 2002-01-13 Andrew Cagney <ac131313@redhat.com>
1691
1692 * MAINTAINERS: Remove arm-coff and arm-pe from target list.
1693
1694 2002-01-13 Keith Seitz <keiths@redhat.com>
1695
1696 * stack.c (print_frame_info_base): Print the frame's pc
1697 only if when print_frame_info_listing_hook is not defined.
1698
1699 2002-01-13 Keith Seitz <keiths@redhat.com>
1700
1701 * varobj.c (varobj_set_value): Make sure that there were no
1702 errors evaluating the object before attempting to set its
1703 value.
1704 value_cast now properly adjusts VALUE_ADDRESS for baseclasses,
1705 so this offset adjustment is no longer necessary.
1706 (create_child): Don't set the error flag if the child is
1707 a CPLUS_FAKE_CHILD.
1708 (value_of_child): If value_fetch_lazy fails, return NULL
1709 so that callers will be notified that an error occurred.
1710 (c_value_of_variable): Delay check of variable's validity
1711 until later. We actually want all structs and unions to have
1712 the value "{...}".
1713 Do not return "???" for variables which could not be evaluated.
1714 This error condition must be returned to the caller so that it
1715 can get the error condition from gdb.
1716 (cplus_name_of_child): Adjust index for vptr before figuring
1717 out the name of the child.
1718 (cplus_value_of_child): If a child's (real) parent is not valid,
1719 don't even bother trying to give a value for it. Just return
1720 an error. Change all instances in this function.
1721 (cplus_type_of_child): If our parent is one of the "fake"
1722 parents, we need to get at the type of the real parent, and
1723 derive the child's true type using this information.
1724
1725 2002-01-13 Andrew Cagney <ac131313@redhat.com>
1726
1727 From 2002-01-09 John Marshall <johnm@falch.net>:
1728 * CONTRIBUTE, README, TODO: Change sourceware.cygnus.com to
1729 sources.redhat.com, and tweak some related URLs which had
1730 suffered from linkrot.
1731
1732 2002-01-13 Andrew Cagney <ac131313@redhat.com>
1733
1734 From Jeff law:
1735 * hppa-tdep.c (hppa_push_arguments): Correct handling of 5-7 byte
1736 structures passed in registers.
1737
1738 2002-01-13 Eli Zaretskii <eliz@is.elta.co.il>
1739
1740 * go32-nat.c (save_npx) [__DJGPP_MINOR__ < 3]: Remove extraneous
1741 white space which prevented compilation. Reported by DSK
1742 <dsk@student.unsw.edu.au>.
1743
1744 2002-01-11 Michael Snyder <msnyder@redhat.com>
1745
1746 * symfile.c (build_section_addr_info_from_section_tab):
1747 Use bfd access method instead of manipulating bfd directly.
1748 (syms_from_objfile): Ditto.
1749 (simple_overlay_update_1): Ditto.
1750 (simple_overlay_update): Ditto.
1751 (generic_load): Ditto.
1752 (overlay_unmapped_address): FIXME comment, bfd access methods.
1753 (sections_overlap): FIXME comment, bfd access methods.
1754 (pc_in_mapped_range): FIXME comment, bfd access methods.
1755 (pc_in_unmapped_range): FIXME comment, bfd access methods.
1756 (section_is_mapped): FIXME comment, bfd access methods.
1757 (section_is_overlay): FIXME comment, bfd access methods.
1758
1759 * symfile.c (generic_load): Whitespace and long line cleanups.
1760 Remove duplicate variable, change several local variables to
1761 more appropriate data types.
1762 (print_transfer_performance): Use %lu instead of %ld for ulongs.
1763
1764 2002-01-12 Andrew Cagney <ac131313@redhat.com>
1765
1766 From Peter Schauer:
1767 * language.c (longest_local_hex_string_custom): Use phex_nz to
1768 convert NUM to a hex string.
1769
1770 2002-01-12 Elena Zannoni <ezannoni@redhat.com>
1771
1772 * sh-tdep.c (sh_gdbarch_init): Move setting of long_bit earlier in
1773 the function.
1774 Update Copyright year.
1775
1776 2002-01-12 Andrew Cagney <ac131313@redhat.com>
1777
1778 * language.c (longest_raw_hex_string): Delete unused function.
1779
1780 2002-01-11 Petr Sorfa <petrs@caldera.com>
1781
1782 * MAINTAINERS (write-after-approval): Add myself.
1783 * dwarf2read.c (read_tag_string_type): Handling of
1784 DW_AT_byte_size.
1785 (read_tag_string_type): FORTRAN fix to prevent propagation of
1786 first string size.
1787 (set_cu_language): Handling of DW_LANG_Fortran95
1788
1789 2002-01-11 Richard Earnshaw <rearnsha@arm.com>
1790
1791 * armnbsd-nat.c (fetch_inferior_registers): Change inferior_pid ->
1792 GETPID(inferior_ptid).
1793 (store_inferior_registers): Likewise.
1794
1795 2002-01-10 Jason Merrill <jason@redhat.com>
1796
1797 * dwarf2read.c (decode_locdesc): Implement DW_OP_litn, DW_OP_dup.
1798 Fix DW_OP_minus.
1799
1800 2002-01-10 Andrew Cagney <ac131313@redhat.com>
1801
1802 * config/djgpp/fnchange.lst: Add renames for bfd/ChangeLog-0001
1803 and bfd/elf32-sh-nbsd.c.
1804
1805 2002-01-10 Michael Snyder <msnyder@redhat.com>
1806
1807 * NEWS: Mention --pid and corefile/proc-id behavior change.
1808
1809 * Makefile.in: Add rules for gcore.o and linux-proc.o.
1810 * gcore.c: Include cli/cli-decode.h instead of command.h.
1811
1812 * main.c (captured_main): Add new command line option "--pid".
1813 If the second command line argument (following the symbol-file)
1814 begins with a digit, try to attach to it before trying to open
1815 it as a corefile.
1816 (print_gdb_help): Document the "--pid" argument.
1817
1818 2002-01-10 Eli Zaretskii <eliz@is.elta.co.il>
1819
1820 * completer.c (command_completer): New function.
1821
1822 * completer.h <command_completer>: Add prototype.
1823
1824 * cli/cli-cmds.c (init_cli_cmds): Make command_completer be the
1825 completer for the "help" command.
1826
1827 2002-01-09 Jason Merrill <jason@redhat.com>
1828
1829 * c-typeprint.c (is_type_conversion_operator): Fix thinko.
1830
1831 2002-01-09 Michael Snyder <msnyder@redhat.com>
1832
1833 * i386-linux-nat.c (fill_fpxregset): Make global.
1834 (store_fpxregset): Ditto.
1835
1836 * gregset.h (gdb_fpxregset_t): Define.
1837 (supply_fpxregset): Prototype.
1838 (fill_fpxregset): Prototype.
1839
1840 * exec.c (exec_make_note_section): Don't call elfcore_write_prpsinfo.
1841
1842 2002-01-09 Richard Earnshaw <rearnsha@arm.com>
1843
1844 * config/arm/arm-tdep.h (arm_software_single_step): Remove PARAMS.
1845 * config/arm/nm-nbsd.h (arm_register_u_addr): Likewise.
1846 * config/arm/tm-nbsd.h (get_longjmp_target): Likewise.
1847
1848 2002-01-09 Andrew Cagney <ac131313@redhat.com>
1849
1850 * MAINTAINERS: Update target maintainer rules so that any
1851 Maintainer can approve a tested patch for a maintenance-only
1852 target.
1853
1854 2002-01-09 Richard Earnshaw <rearnsha@arm.com>
1855
1856 * MAINTAINERS (write-after-approval): Add myself.
1857
1858 * arm-tdep.c (arm_init_extra_frame_info): Cast NULL argument to
1859 IN_SIGTRAMP.
1860
1861 2002-01-08 Michael Snyder <msnyder@redhat.com>
1862
1863 * linux-proc.c (child_pid_to_exec_file): Use readlink to get the
1864 real name of the executable, rather than the /proc name.
1865
1866 2002-01-03 Michael Snyder <msnyder@redhat.com>
1867
1868 Implement a "generate-core-file" command in gdb, save target state.
1869 * gcore.c: New file. Implement new command 'generate-core-file'.
1870 Save a corefile image of the current state of the inferior.
1871 * linux-proc.c: Add linux-specific code for saving corefiles.
1872 * target.h (struct target_ops): Add new target vectors for saving
1873 corefiles; to_find_memory_regions and to_make_corefile_notes.
1874 (target_find_memory_regions): New macro.
1875 (target_make_corefile_notes): New macro.
1876 * target.c (update_current_target): Inherit new target methods.
1877 (dummy_find_memory_regions): New place-holder method.
1878 (dummy_make_corefile_notes): New place-holder method.
1879 (init_dummy_target): Initialize new dummy target vectors.
1880 * exec.c (exec_set_find_memory_regions): New function.
1881 Allow the exec_ops vector for memory regions to be taken over.
1882 (exec_make_note_section): New function, target vector method.
1883 * defs.h (exec_set_find_memory_regions): Export prototype.
1884 * procfs.c (proc_find_memory_regions): New function, corefile method.
1885 (procfs_make_note_section): New function, corefile method.
1886 (init_procfs_ops): Set new target vector pointers.
1887 (find_memory_regions_callback): New function.
1888 (procfs_do_thread_registers): New function.
1889 (procfs_corefile_thread_callback): New function.
1890 * sol-thread.c (sol_find_memory_regions): New function.
1891 (sol_make_note_section): New function.
1892 (init_sol_thread_ops): Initialize new target vectors.
1893 * inftarg.c (inftarg_set_find_memory_regions): New function.
1894 Allow to_find_memory_regions vector to be taken over.
1895 (inftarg_set_make_corefile_notes): New function.
1896 Allow to_make_corefile_notes vector to be taken over.
1897 * thread-db.c (thread_db_new_objfile): Don't activate thread-db
1898 interface layer if not target_has_execution (may be a corefile).
1899 * config/i386/linux.mh: Add gcore.o to NATDEPFILES.
1900 * config/sparc/sun4sol2.mh: Ditto.
1901 * config/alpha/alpha-linux.mh: Ditto.
1902 * config/arm/linux.mh: Ditto.
1903 * config/i386/x86-64linux.mh: Ditto.
1904 * config/ia64/linux.mh: Ditto.
1905 * config/m68k/linux.mh: Ditto.
1906 * config/mips/linux.mh: Ditto.
1907 * config/powerpc/linux.mh: Ditto.
1908 * config/sparc/linux.mh: Ditto.
1909
1910 2002-01-07 Michael Snyder <msnyder@redhat.com>
1911
1912 * arm-linux-nat.c: Remove references to regcache.c internal data
1913 (registers[] and register_valid[]).
1914
1915 2002-01-07 Michael Snyder <msnyder@redhat.com>
1916
1917 * linux-proc.c: New file. Implement child_pid_to_exec_file,
1918 so that attaching to a pid will automatically read the process's
1919 symbol file and shlibs.
1920 * Makefile.in: Add rule for linux-proc.o.
1921 * config/nm-linux.h: Define CHILD_PID_TO_EXEC_FILE.
1922 * config/alpha/alpha-linux.mh: Add linux-proc.o to NATDEPFILES.
1923 * config/arm/linux.mh: Ditto.
1924 * config/i386/linux.mh: Ditto.
1925 * config/i386/x86-64linux.mh: Ditto.
1926 * config/ia64/linux.mh: Ditto.
1927 * config/m68k/linux.mh: Ditto.
1928 * config/mips/linux.mh: Ditto.
1929 * config/powerpc/linux.mh: Ditto.
1930 * config/sparc/linux.mh: Ditto.
1931
1932 2002-01-06 Pierre Muller <muller@ics.u-strasbg.fr>
1933
1934 * win32-nat.c: Add i386-tdep.h dependency.
1935
1936 2002-01-07 Michael Snyder <msnyder@redhat.com>
1937
1938 * solib.c (info_sharedlibrary_command): Use TARGET_PTR_BIT
1939 instead of bfd_get_arch_size. Don't bail out just because
1940 there's no exec_bfd.
1941
1942 * cp-valprint.c (cp_print_value): FIXME comment, alloca size.
1943 * p-valprint.c (pascal_object_print_value): Ditto.
1944 * somread.c (som_symtab_read): Ditto.
1945 * symfile.c (simple_free_overlay_region_table): Ditto.
1946 * valops.c (value_assign): Ditto.
1947
1948 * tracepoint.c (tracepoint_save_command): From Klee Dienes --
1949 use tilde_expand and strerror for opening save-tracepoints file.
1950
1951 * thread-db.c (thread_db_new_objfile): Indendation fix.
1952
1953 * infptrace.c (GDB_MAX_ALLOCA): New define.
1954 (child_xfer_memory): Use xmalloc/xfree instead of alloca if the
1955 size of the buffer exceeds GDB_MAX_ALLOCA (default 1 megabyte,
1956 can be overridden with whatever value is appropriate to the host).
1957 * infttrace.c (child_xfer_memory): Add FIXME warning about use of
1958 alloca to allocate potentially large buffer.
1959 * rs6000-nat.c (child_xfer_memory): Ditto.
1960 * symm-nat.c (child_xfer_memory): Ditto.
1961 * x86-64-linux-nat.c (child_xfer_memory): Ditto.
1962
1963 2002-01-07 Jackie Smith Cashion <jsmith@redhat.com>
1964
1965 From Nick Clifton <nickc@redhat.com>
1966 * d10v-tdep.c: Set STACK_START to 0x200bffe.
1967
1968 2002-01-07 Michael Snyder <msnyder@redhat.com>
1969
1970 * solib-legacy.c (legacy_svr4_fetch_link_map_offsets):
1971 Don't use exec_bfd if it's NULL.
1972
1973 2002-01-06 Mark Kettenis <kettenis@gnu.org>
1974
1975 * valops.c (value_arg_coerce): Fix formatting.
1976
1977 2002-01-06 Andrew Cagney <ac131313@redhat.com>
1978
1979 * hp-psymtab-read.c: Include "gdb_string.h" instead of <string.h>.
1980 * gnu-nat.c: Ditto.
1981
1982 2002-01-06 Andrew Cagney <ac131313@redhat.com>
1983
1984 * MAINTAINERS: Note that alpha-dec-osf4.0a, arc-elf, arm-coff,
1985 arm-elf, arm-pe, d30v-elf, fr30-elf, h8300hms, h8500hms,
1986 i960-coff, m32r-elf, m68k-elf, m88k, mcore-elf, mn10200-elf,
1987 ns32k-netbsd, hppa1.1-hp-proelf, v850-elf, vax-dec-vms5.5 and
1988 z8k-coff have not been multi-arched. Update z8k-coff build
1989 status.
1990
1991 2002-01-06 Andrew Cagney <ac131313@redhat.com>
1992
1993 * MAINTAINERS: Mark a29k target as obsolete.
1994 * Makefile.in (a29k-tdep.o, remote-adapt.o, remote-eb.o)
1995 (remote-mm.o, remote-udi.o): Obsolete. Remove references in
1996 comments.
1997 * NEWS: Note that a29k targets are obsolete.
1998 * a29k-tdep.c: Mark as obsolete.
1999 * configure.tgt: Mark a29k-*-aout*, a29k-*-coff*, a29k-*-elf*,
2000 a29k-*-ebmon*, a29k-*-kern*, a29k-*-none*, a29k-*-udi* and
2001 a29k-*-vxworks* targets as obsolete.
2002 * remote-adapt.c: Obsolete.
2003 * remote-eb.c: Obsolete.
2004 * remote-mm.c: Obsolete.
2005 * remote-udi.c: Obsolete.
2006 * config/a29k/a29k-udi.mt: Obsolete.
2007 * config/a29k/a29k.mt: Obsolete.
2008 * config/a29k/tm-a29k.h: Obsolete.
2009 * config/a29k/tm-vx29k.h: Obsolete.
2010 * config/a29k/vx29k.mt: Obsolete.
2011
2012 2002-01-05 Andrew Cagney <ac131313@redhat.com>
2013
2014 * rs6000-tdep.c (rs6000_do_registers_info): Replace BIG_ENDIAN
2015 with BFD_ENDIAN_BIG.
2016
2017 2002-01-05 Andrew Cagney <ac131313@redhat.com>
2018
2019 * configure.in (AC_CHECK_HEADERS): Do not check for <endian.h>.
2020 * configure, config.in: Re-generate.
2021 * config/vax/xm-vaxbsd.h: Do not include <machine/endian.h>.
2022 * defs.h: Do not include <endian.h>.
2023
2024 2002-01-05 Jason Thorpe <thorpej@wasabisystems.com>
2025
2026 * acconfig.h (HAVE_PT_GETXMMREGS): New.
2027 * config.in: Regenerate.
2028 * configure.in: Update copyright years.
2029 Add test for PT_GETXMMREGS supplied by <sys/ptrace.h>.
2030 * configure: Regenerate.
2031 * i386bsd-nat.c: Update copyright years.
2032 (fill_gregset): Use regcache_collect.
2033 (fetch_inferior_registers): Only fetch integer registers
2034 if requested to do so. Add support for XMM registers
2035 using PT_GETXMMREGS.
2036 (store_inferior_registers): Only store integer registers
2037 if requested to do so. Add support for XMM registers
2038 using PT_SETXMMREGS.
2039 * i386nbsd-nat.c (fetch_inferior_registers): Remove.
2040 (store_inferior_registers): Remove.
2041 (fetch_core_registers): Use supply_gregset and i387_supply_fsave.
2042 (fetch_elfcore_registers): New function.
2043 (i386nbsd_elfcore_fns): New.
2044 (_initialize_i386nbsd_nat): Register i386nbsd_elfcore_fns.
2045 * config/i386/nbsd.mh (NATDEPFILES): Add i387-nat.o and
2046 i386bsd-nat.o.
2047 * config/i386/nbsdelf.mh (NATDEPFILES): Likewise.
2048 * config/i386/nbsd.mt (TDEPFILES): Add i386bsd-nat.o.
2049 * config/i386/nbsdelf.mt (TDEPFILES): Likewise.
2050 * config/i386/tm-nbsd.h: Update copyright years.
2051 (HAVE_SSE_REGS): Define.
2052 (IN_SIGTRAMP): Define as i386bsd_in_sigtramp.
2053 (SIGTRAMP_START): Redefine as i386bsd_sigtramp_start.
2054 (SIGTRAMP_END): Redefine as i386bsd_sigtramp_end.
2055 (SIGCONTEXT_PC_OFFSET): Remove.
2056 (FRAME_SAVED_PC): Define as i386bsd_frame_saved_pc.
2057
2058 2002-01-05 Andrew Cagney <ac131313@redhat.com>
2059
2060 * configure.tgt: Remove powerpc-*-macos* target.
2061 * config/m68k/xm-mpw.h: Delete file.
2062 * config/xm-mpw.h: Delete file.
2063 * ser-mac.c: Delete file.
2064 * mpw-make.sed: Delete file.
2065 * mpw-config.in: Delete file.
2066 * mac-xdep.c: Delete file.
2067 * mac-gdb.r: Delete file.
2068 * mac-defs.h: Delete file.
2069 * mac-nat.c: Delete file.
2070 * config/powerpc/macos.mh: Delete file.
2071 * config/powerpc/macos.mt: Delete file.
2072 * config/powerpc/nm-macos.h: Delete file.
2073 * config/powerpc/tm-macos.h: Delete file.
2074 * source.c (openp, open_source_file): Remove obsolete code.
2075 * top.c (gdb_readline): Ditto.
2076 * utils.c (query): Ditto.
2077 * event-top.c (display_gdb_prompt): Ditto.
2078 * Makefile.in (ser-mac.o): Delete obsolete target.
2079 * NEWS: Update.
2080
2081 2002-01-04 Andrew Cagney <ac131313@redhat.com>
2082
2083 * defs.h (BIG_ENDIAN): Delete macro definition.
2084 * a29k-tdep.c, arch-utils.c, arm-tdep.c, ax-gdb.c, ch-exp.c,
2085 coffread.c, cris-tdep.c, d10v-tdep.c, d30v-tdep.c, defs.h,
2086 findvar.c, infcmd.c, mem-break.c, mips-tdep.c, mn10300-tdep.c,
2087 printcmd.c, remote-os9k.c, remote-rdi.c, remote-rdp.c,
2088 remote-sim.c, remote.c, rs6000-tdep.c, sh-tdep.c, sparcl-tdep.c,
2089 stabsread.c, valops.c, valprint.c, config/a29k/tm-a29k.h,
2090 config/a29k/tm-vx29k.h, config/arm/tm-arm.h,
2091 config/d30v/tm-d30v.h, config/fr30/tm-fr30.h,
2092 config/h8300/tm-h8300.h, config/h8500/tm-h8500.h,
2093 config/m32r/tm-m32r.h, config/m68k/tm-m68k.h,
2094 config/m88k/tm-m88k.h, config/mips/tm-mips.h, config/pa/tm-hppa.h,
2095 config/sparc/tm-sparc.h, config/z8k/tm-z8k.h, mi/mi-cmd-disas.c,
2096 mi/mi-main.c: Replace BIG_ENDIAN with BFD_ENDIAN_BIG.
2097 * gdbarch.sh: Replace BIG_ENDIAN with BFD_ENDIAN_BIG.
2098 * gdbarch.c: Re-generate.
2099
2100 2002-01-04 Daniel Jacobowitz <drow@mvista.com>
2101
2102 * thread-db.c (thread_db_new_objfile): Do not enable thread_db
2103 for core files.
2104
2105 2002-01-04 Jason Thorpe <thorpej@wasabisystems.com>
2106
2107 * config/arm/nbsd.mh (XDEPFILES): Remove ser-tcp.o.
2108
2109 2002-01-04 Andrew Cagney <ac131313@redhat.com>
2110
2111 * value.h (value_ptr): Delete typedef.
2112
2113 2002-01-04 Jason Thorpe <thorpej@wasabisystems.com>
2114
2115 * i386nbsd-nat.c: Update copyright years.
2116 Include i386-tdep.h.
2117
2118 2002-01-04 Elena Zannoni <ezannoni@redhat.com>
2119
2120 * stabsread.c: Update copyright years.
2121
2122 From Debashis Mahata <debashis.mahata@wipro.com>:
2123 (read_struct_fields): Deal with Sun C compiler erroneous stab
2124 output for structs and unions.
2125 Fix PR gdb/269.
2126
2127 2002-01-04 Daniel Jacobowitz <drow@mvista.com>
2128
2129 * p-valprint.c: Include "cp-abi.h" for baseclass_offset
2130 prototype.
2131
2132 2002-01-04 Daniel Jacobowitz <drow@mvista.com>
2133
2134 * cp-abi.c: Fix whitespace.
2135 (baseclass_offset): New wrapper function.
2136 * cp-abi.h (baseclass_offset): Add prototype.
2137 (struct cp_abi_ops): Add baseclass_offset pointer.
2138
2139 * valops.c (vb_match): Move to...
2140 * gnu-v2-abi.c (vb_match): here.
2141 * valops.c (baseclass_offset): Move to...
2142 * gnu-v2-abi.c (gnuv2_baseclass_offset): here, and rename.
2143
2144 * gnu-v3-abi.c (gnuv3_baseclass_offset): New function.
2145
2146 * gnu-v2-abi.c (init_gnuv2_ops): Initialize baseclass_offset.
2147 * gnu-v3-abi.c (init_gnuv3_ops): Likewise.
2148 * hpacc-abi.c (init_hpacc_ops): Likewise.
2149
2150 2002-01-04 Daniel Jacobowitz <drow@mvista.com>
2151
2152 * valops.c (find_overload_match): Accept obj as a
2153 reference parameter. Update it before returning.
2154 * value.h (find_overload_match): Update prototype.
2155 * eval.c (evaluate_subexp_standard): Pass object to
2156 find_overload_match by reference.
2157
2158 2002-01-03 Andrew Cagney <ac131313@redhat.com>
2159
2160 * valarith.c: Replace value_ptr with struct value pointer. Remove
2161 register attribute from value declarations.
2162 * valops.c: Ditto.
2163 * value.h: Ditto.
2164 * scm-lang.c (scm_lookup_name): Ditto.
2165
2166 2002-01-03 Michael Snyder <msnyder@redhat.com>
2167
2168 Abstract the functionality of iterating over mapped memory
2169 regions into a general purpose iterator function.
2170 * procfs.c (iterate_over_mappings): New function, general purpose
2171 iterator for memory sections.
2172 (proc_iterate_over_mappings): Reimplement using iterate_over_mappings.
2173 (solib_mappings_callback): New function, callback for above.
2174 (info_proc_mappings): Reimpliment using iterate_over_mappings.
2175 (info_mappings_callback): New function, callback for above.
2176
2177 * procfs.c (proc_set_watchpoint): Add cast to suppress warning.
2178
2179 2002-01-01 Mark Kettenis <kettenis@gnu.org>
2180
2181 * i386-tdep.h (struct gdbarch_tdep): Add `os_ident' member.
2182 * i386-tdep.c: Include "elf-bfd.h".
2183 (process_note_abi_tag_sections): New function.
2184 (i386_gdbarch_init): Add code to recognize various OS/ABI
2185 combinations.
2186
2187 * maint.c (_initialize_maint_cmds): Add missing \ in
2188 string-literal.
2189
2190 For older changes see ChangeLog-2001
2191 \f
2192 Local Variables:
2193 mode: change-log
2194 left-margin: 8
2195 fill-column: 74
2196 version-control: never
2197 End:
This page took 0.071853 seconds and 5 git commands to generate.