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