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