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