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