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